CurvePath.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <!DOCTYPE html>
  2. <html lang="zh">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../../" />
  6. <script src="page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="page.css" />
  8. </head>
  9. <body>
  10. [page:Curve] &rarr;
  11. <h1>曲线路径([name])</h1>
  12. <p class="desc">
  13. 一个扩展了[page:Curve]的抽象基类。CurvePath仅仅是一个已连接的曲线的数组,但保留了曲线的API。
  14. </p>
  15. <h2>构造函数</h2>
  16. <h3>[name]()</h3>
  17. <p>
  18. 构造函数中不传入参数。
  19. </p>
  20. <h2>属性</h2>
  21. <p>共有属性请参见其基类[page:Curve]。</p>
  22. <h3>[property:Array curves]</h3>
  23. <p>[page:Curve Curves]数组。</p>
  24. <h3>[property:Boolean autoClose]</h3>
  25. <p>是否自动闭合路径。</p>
  26. <h2>方法</h2>
  27. <p>共有方法请参见其基类[page:Curve]。</p>
  28. <h3>[method:undefined add]( [param:Curve curve] )</h3>
  29. <p>添加一条曲线到[page:.curves]数组中。</p>
  30. <h3>[method:this closePath]()</h3>
  31. <p>添加一条[page:LineCurve lineCurve]用于闭合路径。</p>
  32. <h3>[method:Array getCurveLengths]()</h3>
  33. <p>Get list of cumulative curve lengths of the curves in the [page:.curves] array.</p>
  34. <h3>[method:Array getPoints]( [param:Integer divisions] )</h3>
  35. <p>
  36. divisions -- 曲线分段数量。默认值为*12*。<br /><br />
  37. 返回一组使用getPoint( t )获得的divisions + 1个点。
  38. </p>
  39. <h3>[method:Array getSpacedPoints]( [param:Integer divisions] )</h3>
  40. <p>
  41. divisions -- 曲线分段数量。默认值为*40*。<br /><br />
  42. 返回一组使用getPointAt( u )获得的divisions + 1个均分点。
  43. </p>
  44. <h2>源代码</h2>
  45. <p>
  46. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  47. </p>
  48. </body>
  49. </html>