|
@@ -276,7 +276,7 @@ THREE.PLYExporter.prototype = {
|
|
|
vertex.y = normals.getY( i );
|
|
|
vertex.z = normals.getZ( i );
|
|
|
|
|
|
- vertex.applyMatrix3( normalMatrixWorld );
|
|
|
+ vertex.applyMatrix3( normalMatrixWorld ).normalize();
|
|
|
|
|
|
output.setFloat32( vOffset, vertex.x );
|
|
|
vOffset += 4;
|
|
@@ -452,7 +452,7 @@ THREE.PLYExporter.prototype = {
|
|
|
vertex.y = normals.getY( i );
|
|
|
vertex.z = normals.getZ( i );
|
|
|
|
|
|
- vertex.applyMatrix3( normalMatrixWorld );
|
|
|
+ vertex.applyMatrix3( normalMatrixWorld ).normalize();
|
|
|
|
|
|
line += ' ' +
|
|
|
vertex.x + ' ' +
|