提交 8eb356db 编写于 作者: M Mr.doob

Now we just need to make sure geometry.computeCentroids() is called at the end...

Now we just need to make sure geometry.computeCentroids() is called at the end of creating/modifying the geometry, otherwise things break...
上级 daf2700c
......@@ -92,6 +92,9 @@
}
plane.computeNormals();
plane.computeCentroids();
mesh = new THREE.Mesh( plane, material );
mesh.rotation.x = -90 * Math.PI / 180;
mesh.overdraw = true;
......
......@@ -170,6 +170,7 @@
}
geometry.computeNormals();
geometry.computeCentroids();
mesh = new THREE.Mesh( geometry, [ new THREE.MeshFaceMaterial(), new THREE.MeshColorStrokeMaterial( 0xff0000, 0.5, 10 ) ] );
mesh.doubleSided = true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册