Browse Source

Merge remote-tracking branch 'jox81/patch-9' into dev

Mr.doob 11 years ago
parent
commit
e9dc63ae59
1 changed files with 9 additions and 0 deletions
  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>