Browse Source

Updated code example catmullrom doc

looeee 8 năm trước cách đây
mục cha
commit
9a09bee7a2
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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>