@@ -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;