Переглянути джерело

Documentation: Starting Face3

Mr.doob 13 роки тому
батько
коміт
ab22cf4c74
2 змінених файлів з 30 додано та 8 видалено
  1. 5 0
      docs/api/core/Color.html
  2. 25 8
      docs/api/core/Face3.html

+ 5 - 0
docs/api/core/Color.html

@@ -5,6 +5,11 @@ Represents a color. See also [page:ColorUtils].
 </div>
 
 
+<h2>Example</h2>
+
+<code>var color = new THREE.Color( 0xff0000 );</code>
+
+
 <h2>Constructor</h2>
 
 <h3>[name]( [page:Number hex])</h3>

+ 25 - 8
docs/api/core/Face3.html

@@ -1,24 +1,41 @@
 <h1>[name]</h1>
 
-<div class="desc">todo</div>
+<div class="desc">
+Triangle face.
+</div>
+
+
+<h2>Example</h2>
+
+<code>var face = new THREE.Face3( 0, 1, 2, new THREE.Vector3( 0, 1, 0 ), new THREE.Color( 0xffaa00 ), 0 );</code>
 
 
 <h2>Constructor</h2>
 
-<h3>[name]()</h3>
+<h3>[name]( [page:Number a], [page:Number b], [page:Number c], [page:Vector3 normal], [page:Color color], [page:Number materialIndex] )</h3>
 
 
 <h2>Properties</h2>
 
-<h3>.[page:Vector3 todo]</h3>
+<h3>.[page:Number a]</h3>
 
+<h3>.[page:Number b]</h3>
 
-<h2>Methods</h2>
+<h3>.[page:Number c]</h3>
 
-<h3>.todo( [page:Vector3 todo] )</h3>
-<div>
-todo — todo<br />
-</div>
+<h3>.[page:Vector3 normal]</h3>
+
+<h3>.[page:Array vertexNormals]</h3>
+
+<h3>.[page:Color color]</h3>
+
+<h3>.[page:Array vertexColors]</h3>
+
+<h3>.[page:Array vertexTangets]</h3>
+
+<h3>.[page:Number materialIndex]</h3>
+
+<h3>.[page:Vector3 centroid]</h3>
 
 
 <h2>Source</h2>