You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vargeom=newTHREE.Geometry();varv1=newTHREE.Vector3(0,0,10);varv2=newTHREE.Vector3(0,500,10);varv3=newTHREE.Vector3(500,500,10);geom.vertices.push(newTHREE.Vertex(v1));geom.vertices.push(newTHREE.Vertex(v2));geom.vertices.push(newTHREE.Vertex(v3));geom.faces.push(newTHREE.Face3(0,1,2));geom.computeFaceNormals();// your geometry needs normals if you want to use MeshNormalMaterialvarobject=newTHREE.Mesh(geom,newTHREE.MeshNormalMaterial());scene.add(object);// scene.addObject is supposed to be used internally only, sorry about that.
This didn't work:
The text was updated successfully, but these errors were encountered: