CurvePath.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. <div 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. </div>
  17. <h2>Constructor</h2>
  18. <h3>[name]()</h3>
  19. <div>
  20. The constructor take no parameters.
  21. </div>
  22. <h2>Properties</h2>
  23. <div>See the base [page:Curve] class for common properties.</div>
  24. <h3>[property:array curves]</h3>
  25. <div>The array of [page:Curve Curves].</div>
  26. <h3>[property:boolean autoClose]</h3>
  27. <div>Whether or not to automatically close the path.</div>
  28. <h2>Methods</h2>
  29. <div>See the base [page:Curve] class for common methods.</div>
  30. <h3>[method:null add]( [page:Curve curve] )</h3>
  31. <div>Add a curve to the [page:.curves] array.</div>
  32. <h3>[method:null closePath]()</h3>
  33. <div>Adds a [page:LineCurve lineCurve] to close the path.</div>
  34. <h3>[method:Float getCurveLengths]()</h3>
  35. <div>Adds together the lengths of the curves in the [page:.curves] array.</div>
  36. <h2>Source</h2>
  37. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  38. </body>
  39. </html>