VertexNormalsHelper 法向量助手

—> LineSegments —> Object3D

function VertexNormalsHelper( object, size, hex, linewidth ) { } var geometry = new THREE.BoxGeometry(8, 8, 8), material = new THREE.MeshBasicMaterial({color: 0x663399, wireframe: true, opacity: 0.5}), mesh = new THREE.Mesh( geometry, material ); scene.add(mesh); var helper = new THREE.VertexNormalsHelper(mesh, 1, 0xffffff); scene.add(helper);

Constructor

object size hex linewidth
Object3D 1 0xff0000 1
3D对象 尺寸 颜色 线宽

Attributes

object : ?

Default value : ?
Description : ?

size : ?

Default value : 1
Description : ?

matrixAutoUpdate : Boolean

Default value : false
Description : 矩阵自动更新。

Methods

update( ) : null

基于相机的投影矩阵来更新助手。