提交 3586b45b 编写于 作者: M Mr.doob

More Curve/CurvePath clean up.

上级 122481d1
......@@ -67,15 +67,15 @@ THREE.Curve.prototype = {
if ( ! divisions ) divisions = 5;
var d, pts = [];
var points = [];
for ( d = 0; d <= divisions; d ++ ) {
for ( var d = 0; d <= divisions; d ++ ) {
pts.push( this.getPoint( d / divisions ) );
points.push( this.getPoint( d / divisions ) );
}
return pts;
return points;
},
......@@ -85,15 +85,15 @@ THREE.Curve.prototype = {
if ( ! divisions ) divisions = 5;
var d, pts = [];
var points = [];
for ( d = 0; d <= divisions; d ++ ) {
for ( var d = 0; d <= divisions; d ++ ) {
pts.push( this.getPointAt( d / divisions ) );
points.push( this.getPointAt( d / divisions ) );
}
return pts;
return points;
},
......
......@@ -162,7 +162,7 @@ THREE.CurvePath.prototype = Object.assign( Object.create( THREE.Curve.prototype
for ( var i = 0, curves = this.curves; i < curves.length; i ++ ) {
var curve = curves[i];
var curve = curves[ i ];
var pts = curve.getPoints( curve instanceof THREE.LineCurve ? 1 : divisions );
for ( var j = 0; j < pts.length; j++ ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册