|
@@ -169,7 +169,7 @@ THREE.Path.prototype.absellipse = function ( aX, aY, xRadius, yRadius, aStartAng
|
|
|
|
|
|
};
|
|
};
|
|
|
|
|
|
-THREE.Path.prototype.getSpacedPoints = function ( divisions, closedPath ) {
|
|
|
|
|
|
+THREE.Path.prototype.getSpacedPoints = function ( divisions ) {
|
|
|
|
|
|
if ( ! divisions ) divisions = 40;
|
|
if ( ! divisions ) divisions = 40;
|
|
|
|
|
|
@@ -183,11 +183,11 @@ THREE.Path.prototype.getSpacedPoints = function ( divisions, closedPath ) {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- // if ( closedPath ) {
|
|
|
|
- //
|
|
|
|
- // points.push( points[ 0 ] );
|
|
|
|
- //
|
|
|
|
- // }
|
|
|
|
|
|
+ if ( this.autoClose ) {
|
|
|
|
+
|
|
|
|
+ points.push( points[ 0 ] );
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
|
|
return points;
|
|
return points;
|
|
|
|
|
|
@@ -195,7 +195,7 @@ THREE.Path.prototype.getSpacedPoints = function ( divisions, closedPath ) {
|
|
|
|
|
|
/* Return an array of vectors based on contour of the path */
|
|
/* Return an array of vectors based on contour of the path */
|
|
|
|
|
|
-THREE.Path.prototype.getPoints = function( divisions, closedPath ) {
|
|
|
|
|
|
+THREE.Path.prototype.getPoints = function( divisions ) {
|
|
|
|
|
|
divisions = divisions || 12;
|
|
divisions = divisions || 12;
|
|
|
|
|
|
@@ -431,7 +431,8 @@ THREE.Path.prototype.getPoints = function( divisions, closedPath ) {
|
|
if ( Math.abs( lastPoint.x - points[ 0 ].x ) < Number.EPSILON &&
|
|
if ( Math.abs( lastPoint.x - points[ 0 ].x ) < Number.EPSILON &&
|
|
Math.abs( lastPoint.y - points[ 0 ].y ) < Number.EPSILON )
|
|
Math.abs( lastPoint.y - points[ 0 ].y ) < Number.EPSILON )
|
|
points.splice( points.length - 1, 1 );
|
|
points.splice( points.length - 1, 1 );
|
|
- if ( closedPath ) {
|
|
|
|
|
|
+
|
|
|
|
+ if ( this.autoClose ) {
|
|
|
|
|
|
points.push( points[ 0 ] );
|
|
points.push( points[ 0 ] );
|
|
|
|
|