|
@@ -66,7 +66,7 @@ THREE.OBJExporter.prototype = {
|
|
vertex.y = vertices.getY( i );
|
|
vertex.y = vertices.getY( i );
|
|
vertex.z = vertices.getZ( i );
|
|
vertex.z = vertices.getZ( i );
|
|
|
|
|
|
- // transfrom the vertex to world space
|
|
|
|
|
|
+ // transform the vertex to world space
|
|
vertex.applyMatrix4( mesh.matrixWorld );
|
|
vertex.applyMatrix4( mesh.matrixWorld );
|
|
|
|
|
|
// transform the vertex to export format
|
|
// transform the vertex to export format
|
|
@@ -104,7 +104,7 @@ THREE.OBJExporter.prototype = {
|
|
normal.y = normals.getY( i );
|
|
normal.y = normals.getY( i );
|
|
normal.z = normals.getZ( i );
|
|
normal.z = normals.getZ( i );
|
|
|
|
|
|
- // transfrom the normal to world space
|
|
|
|
|
|
+ // transform the normal to world space
|
|
normal.applyMatrix3( normalMatrixWorld ).normalize();
|
|
normal.applyMatrix3( normalMatrixWorld ).normalize();
|
|
|
|
|
|
// transform the normal to export format
|
|
// transform the normal to export format
|
|
@@ -194,7 +194,7 @@ THREE.OBJExporter.prototype = {
|
|
vertex.y = vertices.getY( i );
|
|
vertex.y = vertices.getY( i );
|
|
vertex.z = vertices.getZ( i );
|
|
vertex.z = vertices.getZ( i );
|
|
|
|
|
|
- // transfrom the vertex to world space
|
|
|
|
|
|
+ // transform the vertex to world space
|
|
vertex.applyMatrix4( line.matrixWorld );
|
|
vertex.applyMatrix4( line.matrixWorld );
|
|
|
|
|
|
// transform the vertex to export format
|
|
// transform the vertex to export format
|