Sfoglia il codice sorgente

Updated code example catmullrom doc

looeee 8 anni fa
parent
commit
9a09bee7a2
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      docs/api/extras/curves/CatmullRomCurve3.html

+ 3 - 0
docs/api/extras/curves/CatmullRomCurve3.html

@@ -31,6 +31,9 @@ var geometry = new THREE.Geometry();
 geometry.vertices = curve.getPoints( 50 );
 
 var material = new THREE.LineBasicMaterial( { color : 0xff0000 } );
+
+// Create the final object to add to the scene
+var curveObject = new THREE.Line( geometry, material );
 </code>
 
 		<h3>[example:webgl_geometry_extrude_splines geometry / extrude / splines]</h3>