|
@@ -12,11 +12,14 @@
|
|
|
|
|
|
<h1>[name]</h1>
|
|
|
|
|
|
- <div class="desc">Create a smooth 3d spline curve from a series of points</div>
|
|
|
+ <div class="desc">Create a smooth 3d spline curve from a series of points.. Internally this uses
|
|
|
+ [page:CurveUtils.interpolate] to create the curve.</div>
|
|
|
|
|
|
<h2>Example</h2>
|
|
|
|
|
|
-<code>
|
|
|
+ <div>[example:webgl_geometry_extrude_splines geometry / extrude / splines ] (choose PipeSpline)</div>
|
|
|
+
|
|
|
+ <code>
|
|
|
//Create a closed bent a sine-like wave
|
|
|
var curve = new THREE.SplineCurve3( [
|
|
|
new THREE.Vector3( -10, 0, 10 ),
|
|
@@ -31,11 +34,11 @@ geometry.vertices = curve.getPoints( 50 );
|
|
|
|
|
|
var material = new THREE.LineBasicMaterial( { color : 0xff0000 } );
|
|
|
|
|
|
-//Create the final Object3d to add to the scene
|
|
|
+//Create the final object to add to the scene
|
|
|
var splineObject = new THREE.Line( geometry, material );
|
|
|
-</code>
|
|
|
+ </code>
|
|
|
+
|
|
|
|
|
|
- <h3>[example:webgl_geometry_extrude_splines geometry / extrude / splines ] (choose PipeSpline)</h3>
|
|
|
|
|
|
|
|
|
<h2>Constructor</h2>
|