2
0
Эх сурвалжийг харах

Updated code example catmullrom doc

looeee 8 жил өмнө
parent
commit
9a09bee7a2

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

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