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();
fork icon5
star icon14
watch icon0

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);
fork icon0
star icon1
watch icon0

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;
fork icon0
star icon0
watch icon1

+ 16 other calls in file

Other functions in three

Sorted by popularity

function icon

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