Browse Source

Merge pull request #18531 from feilin-flexcompute/patch-1

Update Face3.html
Mr.doob 5 years ago
parent
commit
66dda35e05
2 changed files with 2 additions and 2 deletions
  1. 1 1
      docs/api/en/core/Face3.html
  2. 1 1
      docs/api/zh/core/Face3.html

+ 1 - 1
docs/api/en/core/Face3.html

@@ -34,7 +34,7 @@ geometry.vertices.push( new THREE.Vector3(  50, -50, 0 ) );
 geometry.vertices.push( new THREE.Vector3(  50,  50, 0 ) );
 
 //create a new face using vertices 0, 1, 2
-var normal = new THREE.Vector3( 0, 1, 0 ); //optional
+var normal = new THREE.Vector3( 0, 0, 1 ); //optional
 var color = new THREE.Color( 0xffaa00 ); //optional
 var materialIndex = 0; //optional
 var face = new THREE.Face3( 0, 1, 2, normal, color, materialIndex );

+ 1 - 1
docs/api/zh/core/Face3.html

@@ -33,7 +33,7 @@ geometry.vertices.push( new THREE.Vector3(  50, -50, 0 ) );
 geometry.vertices.push( new THREE.Vector3(  50,  50, 0 ) );
 
 // 利用顶点 0, 1, 2 创建一个面
-var normal = new THREE.Vector3( 0, 1, 0 ); //optional
+var normal = new THREE.Vector3( 0, 0, 1 ); //optional
 var color = new THREE.Color( 0xffaa00 ); //optional
 var materialIndex = 0; //optional
 var face = new THREE.Face3( 0, 1, 2, normal, color, materialIndex );