未验证 提交 9983568d 编写于 作者: T Tim Gates

docs: Fix simple typo, transfrom -> transform

There is a small typo in examples/js/exporters/OBJExporter.js, examples/js/loaders/3MFLoader.js, examples/js/loaders/ColladaLoader.js, examples/jsm/exporters/OBJExporter.js, examples/jsm/loaders/3MFLoader.js, examples/jsm/loaders/ColladaLoader.js.

Should read `transform` rather than `transfrom`.
上级 043e5c93
......@@ -66,7 +66,7 @@ THREE.OBJExporter.prototype = {
vertex.y = vertices.getY( i );
vertex.z = vertices.getZ( i );
// transfrom the vertex to world space
// transform the vertex to world space
vertex.applyMatrix4( mesh.matrixWorld );
// transform the vertex to export format
......@@ -104,7 +104,7 @@ THREE.OBJExporter.prototype = {
normal.y = normals.getY( i );
normal.z = normals.getZ( i );
// transfrom the normal to world space
// transform the normal to world space
normal.applyMatrix3( normalMatrixWorld ).normalize();
// transform the normal to export format
......@@ -194,7 +194,7 @@ THREE.OBJExporter.prototype = {
vertex.y = vertices.getY( i );
vertex.z = vertices.getZ( i );
// transfrom the vertex to world space
// transform the vertex to world space
vertex.applyMatrix4( line.matrixWorld );
// transform the vertex to export format
......
......@@ -1275,7 +1275,7 @@ THREE.ThreeMFLoader.prototype = Object.assign( Object.create( THREE.Loader.proto
var object3D = build.clone();
// apply component transfrom
// apply component transform
var transform = component.transform;
......
......@@ -2907,7 +2907,7 @@ THREE.ColladaLoader.prototype = Object.assign( Object.create( THREE.Loader.proto
if ( targetElement ) {
// get the parent of the transfrom element
// get the parent of the transform element
var parentVisualElement = targetElement.parentElement;
......
......@@ -76,7 +76,7 @@ OBJExporter.prototype = {
vertex.y = vertices.getY( i );
vertex.z = vertices.getZ( i );
// transfrom the vertex to world space
// transform the vertex to world space
vertex.applyMatrix4( mesh.matrixWorld );
// transform the vertex to export format
......@@ -114,7 +114,7 @@ OBJExporter.prototype = {
normal.y = normals.getY( i );
normal.z = normals.getZ( i );
// transfrom the normal to world space
// transform the normal to world space
normal.applyMatrix3( normalMatrixWorld ).normalize();
// transform the normal to export format
......@@ -204,7 +204,7 @@ OBJExporter.prototype = {
vertex.y = vertices.getY( i );
vertex.z = vertices.getZ( i );
// transfrom the vertex to world space
// transform the vertex to world space
vertex.applyMatrix4( line.matrixWorld );
// transform the vertex to export format
......
......@@ -1298,7 +1298,7 @@ ThreeMFLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
var object3D = build.clone();
// apply component transfrom
// apply component transform
var transform = component.transform;
......
......@@ -2947,7 +2947,7 @@ ColladaLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
if ( targetElement ) {
// get the parent of the transfrom element
// get the parent of the transform element
var parentVisualElement = targetElement.parentElement;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册