瀏覽代碼

Updated code example catmullrom doc

looeee 8 年之前
父節點
當前提交
9a09bee7a2
共有 1 個文件被更改,包括 3 次插入0 次删除
  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>