How to use the VertexNormalsHelper function from three

Find comprehensive JavaScript three.VertexNormalsHelper code examples handpicked from public code repositorys.

191
192
193
194
195
196
197
198
199
200
scene.add(mainObject);

recognizeVertex('mainObject');

var facesNormals = new THREE.FaceNormalsHelper(mainObject, 0.2, 0xff0000, 0.2);
var vertexNormals = new THREE.VertexNormalsHelper(mainObject, 0.2, 0x000000, 0.2);
var wireframe = new THREE.WireframeGeometry(mainObject);
facesNormals.name = 'facesNormals';
// scene.add(facesNormals);
// scene.add(wireframe);
fork icon0
star icon1
watch icon0

191
192
193
194
195
196
197
198
199
200
201
202
  }


  recognizeVertex('mainObject');


  var facesNormals = new THREE.FaceNormalsHelper(mainObject, 0.2, 0xff0000, 0.2);
  // var vertexNormals = new THREE.VertexNormalsHelper(mainObject, 0.2, 0x000000, 0.2);
  facesNormals.name = 'facesNormals';
  // scene.add(facesNormals);
  // scene.add(vertexNormals);
};
fork icon0
star icon1
watch icon0

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)