|
@@ -12,7 +12,8 @@
|
|
|
|
|
|
<h1>[name]</h1>
|
|
|
|
|
|
- <div class="desc">Create a smooth 3d spline curve from a series of points using the Catmull-Rom algorithm</div>
|
|
|
+ <div class="desc">Create a smooth 3d spline curve from a series of points using the
|
|
|
+ [link:https://en.wikipedia.org/wiki/Centripetal_Catmull-Rom_spline Catmull-Rom] algorithm.</div>
|
|
|
|
|
|
<h2>Example</h2>
|
|
|
|
|
@@ -37,23 +38,30 @@ var material = new THREE.LineBasicMaterial( { color : 0xff0000 } );
|
|
|
|
|
|
<h2>Constructor</h2>
|
|
|
|
|
|
-
|
|
|
<h3>[name]( [page:Array points] )</h3>
|
|
|
<div>points – An array of [page:Vector3] points</div>
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
<h2>Properties</h2>
|
|
|
+ <div>See the base [page:Curve] class for common properties.</div>
|
|
|
|
|
|
<h3>[property:Array points]</h3>
|
|
|
-
|
|
|
- <h3>[property:Boolean closed] – curve loops back onto itself when true. False by default.</h3>
|
|
|
-
|
|
|
- <h3>[property:String type] - possible values are `centripetal` (default), `chordal` and `catmullrom`</h3>
|
|
|
-
|
|
|
- <h3>[property:float tension] - when type is `catmullrom`, defines catmullrom's tension. Defaults to 0.5</h3>
|
|
|
+ <div>The array of array of [page:Vector3] points that define the curve.</div>
|
|
|
|
|
|
- <h2>Methods</h2>
|
|
|
+ <h3>[property:Boolean closed]</h3>
|
|
|
+ <div>The curve will loop back onto itself when this is true. False by default</div>
|
|
|
|
|
|
- <h3>See [page:Curve] for inherited methods</h3>
|
|
|
+ <h3>[property:String type]</h3>
|
|
|
+ <div>Possible values are `centripetal` (default), `chordal` and `catmullrom`.</div>
|
|
|
+
|
|
|
+ <h3>[property:float tension]</h3>
|
|
|
+ <div>When [page:.type] is `catmullrom`, defines catmullrom's tension. Defaults is *0.5*.</div>
|
|
|
+
|
|
|
+
|
|
|
+ <h2>Methods</h2>
|
|
|
+ <div>See the base [page:Curve] class for common methods.</div>
|
|
|
|
|
|
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|
|
|
</body>
|