瀏覽代碼

Update TorusKnotGeometry.html

jox81 11 年之前
父節點
當前提交
15e10b1469
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      docs/api/extras/geometries/TorusKnotGeometry.html

+ 9 - 0
docs/api/extras/geometries/TorusKnotGeometry.html

@@ -14,6 +14,15 @@
 		<div class="desc">Creates a torus knot, the particular shape of which is defined by a pair of coprime integers, p and q.  If p and q are not coprime, the result will be a torus link.</div>
 
 
+		<h2>Example</h2>
+		
+		<code>var geometry = new THREE.TorusKnotGeometry( 10, 3, 100, 16 );
+		var material = new THREE.MeshBasicMaterial( { color: 0xffff00 } );
+		var torusKnot = new THREE.Mesh( geometry, material );
+		scene.add( torusKnot );
+		</code>
+
+
 		<h2>Constructor</h2>