Browse Source

LatheGeometry: Fixed generated side.

Mr.doob 9 years ago
parent
commit
38c36e910a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/extras/geometries/LatheGeometry.js

+ 2 - 2
src/extras/geometries/LatheGeometry.js

@@ -44,9 +44,9 @@ THREE.LatheGeometry = function ( points, segments, phiStart, phiLength ) {
 
 			var vertex = new THREE.Vector3();
 
-			vertex.x = point.x * cos;
+			vertex.x = point.x * sin;
 			vertex.y = point.y;
-			vertex.z = point.x * sin;
+			vertex.z = point.x * cos;
 
 			this.vertices.push( vertex );