CurvePath.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. [page:Curve] &rarr;
  12. <h1>[name]</h1>
  13. <p class="desc">
  14. An abstract base class extending [page:Curve]. A CurvePath is simply an array of connected curves,
  15. but retains the api of a curve.
  16. </p>
  17. <h2>Constructor</h2>
  18. <h3>[name]()</h3>
  19. <p>
  20. The constructor take no parameters.
  21. </p>
  22. <h2>Properties</h2>
  23. <p>See the base [page:Curve] class for common properties.</p>
  24. <h3>[property:array curves]</h3>
  25. <p>The array of [page:Curve Curves].</p>
  26. <h3>[property:boolean autoClose]</h3>
  27. <p>Whether or not to automatically close the path.</p>
  28. <h2>Methods</h2>
  29. <p>See the base [page:Curve] class for common methods.</p>
  30. <h3>[method:null add]( [param:Curve curve] )</h3>
  31. <p>Add a curve to the [page:.curves] array.</p>
  32. <h3>[method:null closePath]()</h3>
  33. <p>Adds a [page:LineCurve lineCurve] to close the path.</p>
  34. <h3>[method:Float getCurveLengths]()</h3>
  35. <p>Adds together the lengths of the curves in the [page:.curves] array.</p>
  36. <h3>[method:Array getPoints]( [param:Integer divisions] )</h3>
  37. <p>
  38. divisions -- number of pieces to divide the curve into. Default is *12*.<br /><br />
  39. Returns a set of divisions + 1 points using getPoint( t ).
  40. </p>
  41. <h3>[method:Array getSpacedPoints]( [param:Integer divisions] )</h3>
  42. <p>
  43. divisions -- number of pieces to divide the curve into. Default is *40*.<br /><br />
  44. Returns a set of divisions + 1 equi-spaced points using getPointAt( u ).
  45. </p>
  46. <h2>Source</h2>
  47. <p>
  48. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  49. </p>
  50. </body>
  51. </html>