You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

74 lines
1.7 KiB

<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8" />
<base href="../../../../" />
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body>
[page:Curve] &rarr;
<h1>曲线路径([name])</h1>
<p class="desc">
一个扩展了[page:Curve]的抽象基类。CurvePath仅仅是一个已连接的曲线的数组,但保留了曲线的API。
</p>
<h2>构造函数</h2>
<h3>[name]()</h3>
<p>
构造函数中不传入参数。
</p>
<h2>属性</h2>
<p>共有属性请参见其基类[page:Curve]。</p>
<h3>[property:Array curves]</h3>
<p>[page:Curve Curves]数组。</p>
<h3>[property:Boolean autoClose]</h3>
<p>是否自动闭合路径。</p>
<h2>方法</h2>
<p>共有方法请参见其基类[page:Curve]。</p>
<h3>[method:undefined add]( [param:Curve curve] )</h3>
<p>添加一条曲线到[page:.curves]数组中。</p>
<h3>[method:undefined closePath]()</h3>
<p>添加一条[page:LineCurve lineCurve]用于闭合路径。</p>
<h3>[method:Array getCurveLengths]()</h3>
<p>Get list of cumulative curve lengths of the curves in the [page:.curves] array.</p>
<h3>[method:Array getPoints]( [param:Integer divisions] )</h3>
<p>
divisions -- 曲线分段数量。默认值为*12*。<br /><br />
返回一组使用getPoint( t )获得的divisions + 1个点。
</p>
<h3>[method:Array getSpacedPoints]( [param:Integer divisions] )</h3>
<p>
divisions -- 曲线分段数量。默认值为*40*。<br /><br />
返回一组使用getPointAt( u )获得的divisions + 1个均分点。
</p>
<h2>源代码</h2>
<p>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</p>
</body>
</html>