Curve.html 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. <h1>[name]</h1>
  12. <div class="desc">
  13. An abstract base class for creating a curve object that contains methods for interpolation.
  14. For an array of Curves see [page:CurvePath].
  15. </div>
  16. <h2>Examples</h2>
  17. <h3>[example:webgl_geometry_extrude_splines geometry / extrude / splines ]</h3>
  18. <h2>Constructor</h2>
  19. <h3>[name]()</h3>
  20. <div>
  21. This constructor creates a new [name].
  22. </div>
  23. <h2>Methods</h2>
  24. <h3>[method:Vector getPoint]( t )</h3>
  25. <div>Returns a vector for point t of the curve where t is between 0 and 1. Must be implemented in the extending class.</div>
  26. <h3>[method:Vector getPointAt]( u )</h3>
  27. <div>Returns a vector for point at relative position in curve according to arc length</div>
  28. <h3>[method:Array getPoints]( divisions )</h3>
  29. <div>Get sequence of points using getPoint( t ) </div>
  30. <h3>[method:Array getSpacedPoints]( divisions )</h3>
  31. <div>Get sequence of equi-spaced points using getPointAt( u )</div>
  32. <h3>[method:Float getLength]()</h3>
  33. <div>Get total curve arc length</div>
  34. <h3>[method:Array getLengths]( divisions )</h3>
  35. <div>Get list of cumulative segment lengths</div>
  36. <h3>[method:null updateArcLengths]()</h3>
  37. <div>Update the cumlative segment distance cache</div>
  38. <h3>[method:Float getUtoTmapping]( u, distance )</h3>
  39. <div>Given u ( 0 .. 1 ), get a t to find p. This gives you points which are equidistant</div>
  40. <h3>[method:Vector getTangent]( t )</h3>
  41. <div>Returns a unit vector tangent at t. If the subclassed curve do not implement its tangent derivation, 2 points a small delta apart will be used to find its gradient which seems to give a reasonable approximation</div>
  42. <h3>[method:Vector getTangentAt]( u )</h3>
  43. <div>Returns tangent at equidistant point u on the curve</div>
  44. <h3>[method:Object computeFrenetFrames]( segments, closed )</h3>
  45. <div>
  46. Generates the Frenet Frames. Used in geometries like [page:TubeGeometry] or [page:ExtrudeGeometry].
  47. </div>
  48. <h2>Source</h2>
  49. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  50. </body>
  51. </html>