How to use the WireframeGeometry function from three
Find comprehensive JavaScript three.WireframeGeometry code examples handpicked from public code repositorys.
13 14 15 16 17 18 19 20 21 22
function updateGroupGeometry(mesh, geometry) { mesh.children[0].geometry.dispose(); mesh.children[1].geometry.dispose(); mesh.children[0].geometry = new THREE.WireframeGeometry(geometry); mesh.children[1].geometry = geometry; mesh.children[0].geometry.computeBoundingSphere(); mesh.children[1].geometry.computeBoundingSphere();
5
14
0
GitHub: Cherna/cherna.github.io
192 193 194 195 196 197 198 199 200 201
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); // scene.add(vertexNormals);
0
1
0
125 126 127 128 129 130 131 132 133 134
}, fromMesh: function ( mesh ) { this.fromWireframeGeometry( new THREE.WireframeGeometry( mesh.geometry ) ); // set colors, maybe return this;
0
0
1
+ 16 other calls in file
three.Vector3 is the most popular function in three (22341 examples)