How to use the VertexNormalsHelper function from three
Find comprehensive JavaScript three.VertexNormalsHelper code examples handpicked from public code repositorys.
GitHub: Cherna/cherna.github.io
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);
0
1
0
GitHub: Cherna/cherna.github.io
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); };
0
1
0
three.Vector3 is the most popular function in three (22341 examples)