Browse Source

LatheBufferGeometry: Correct comments

Mugen87 9 years ago
parent
commit
f5778ab990
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/extras/geometries/LatheBufferGeometry.js

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

@@ -113,7 +113,7 @@ THREE.LatheBufferGeometry = function ( points, segments, phiStart, phiLength ) {
 
 
 	this.computeVertexNormals();
 	this.computeVertexNormals();
 
 
-	// if the geometry is closed, we need to merge the first and last normal of a vertex row
+	// if the geometry is closed, we need to average the normals along the seam.
 	// because the corresponding vertices are identical (but still have different UVs).
 	// because the corresponding vertices are identical (but still have different UVs).
 
 
 	if( phiLength === Math.PI * 2 ) {
 	if( phiLength === Math.PI * 2 ) {
@@ -138,7 +138,7 @@ THREE.LatheBufferGeometry = function ( points, segments, phiStart, phiLength ) {
 			n2.y = normals[ base + j + 1 ];
 			n2.y = normals[ base + j + 1 ];
 			n2.z = normals[ base + j + 2 ];
 			n2.z = normals[ base + j + 2 ];
 
 
-			// merge normals
+			// average normals
 			n.addVectors( n1, n2 ).normalize();
 			n.addVectors( n1, n2 ).normalize();
 
 
 			// assign the new values to both normals
 			// assign the new values to both normals