|
@@ -185,7 +185,7 @@ var ShapeUtils = {
|
|
if ( indices ) return vertIndices;
|
|
if ( indices ) return vertIndices;
|
|
return result;
|
|
return result;
|
|
|
|
|
|
- }
|
|
|
|
|
|
+ };
|
|
|
|
|
|
} )(),
|
|
} )(),
|
|
|
|
|
|
@@ -523,7 +523,7 @@ var ShapeUtils = {
|
|
hIdx, nextIdx, intersection;
|
|
hIdx, nextIdx, intersection;
|
|
for ( ihIdx = 0; ihIdx < indepHoles.length; ihIdx ++ ) {
|
|
for ( ihIdx = 0; ihIdx < indepHoles.length; ihIdx ++ ) {
|
|
|
|
|
|
- chkHole = holes[ indepHoles[ ihIdx ]];
|
|
|
|
|
|
+ chkHole = holes[ indepHoles[ ihIdx ] ];
|
|
for ( hIdx = 0; hIdx < chkHole.length; hIdx ++ ) {
|
|
for ( hIdx = 0; hIdx < chkHole.length; hIdx ++ ) {
|
|
|
|
|
|
nextIdx = hIdx + 1; nextIdx %= chkHole.length;
|
|
nextIdx = hIdx + 1; nextIdx %= chkHole.length;
|
|
@@ -556,7 +556,7 @@ var ShapeUtils = {
|
|
counter --;
|
|
counter --;
|
|
if ( counter < 0 ) {
|
|
if ( counter < 0 ) {
|
|
|
|
|
|
- console.log( "Infinite Loop! Holes left:" + indepHoles.length + ", Probably Hole outside Shape!" );
|
|
|
|
|
|
+ console.log( 'THREE.ShapeUtils: Infinite Loop! Holes left:" + indepHoles.length + ", Probably Hole outside Shape!' );
|
|
break;
|
|
break;
|
|
|
|
|
|
}
|
|
}
|
|
@@ -574,7 +574,7 @@ var ShapeUtils = {
|
|
holeIdx = indepHoles[ h ];
|
|
holeIdx = indepHoles[ h ];
|
|
|
|
|
|
// prevent multiple checks
|
|
// prevent multiple checks
|
|
- cutKey = shapePt.x + ":" + shapePt.y + ":" + holeIdx;
|
|
|
|
|
|
+ cutKey = shapePt.x + ':' + shapePt.y + ':' + holeIdx;
|
|
if ( failedCuts[ cutKey ] !== undefined ) continue;
|
|
if ( failedCuts[ cutKey ] !== undefined ) continue;
|
|
|
|
|
|
hole = holes[ holeIdx ];
|
|
hole = holes[ holeIdx ];
|
|
@@ -639,11 +639,11 @@ var ShapeUtils = {
|
|
|
|
|
|
for ( i = 0, il = allpoints.length; i < il; i ++ ) {
|
|
for ( i = 0, il = allpoints.length; i < il; i ++ ) {
|
|
|
|
|
|
- key = allpoints[ i ].x + ":" + allpoints[ i ].y;
|
|
|
|
|
|
+ key = allpoints[ i ].x + ':' + allpoints[ i ].y;
|
|
|
|
|
|
if ( allPointsMap[ key ] !== undefined ) {
|
|
if ( allPointsMap[ key ] !== undefined ) {
|
|
|
|
|
|
- console.warn( "THREE.ShapeUtils: Duplicate point", key, i );
|
|
|
|
|
|
+ console.warn( 'THREE.ShapeUtils: Duplicate point', key, i );
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -665,7 +665,7 @@ var ShapeUtils = {
|
|
|
|
|
|
for ( f = 0; f < 3; f ++ ) {
|
|
for ( f = 0; f < 3; f ++ ) {
|
|
|
|
|
|
- key = face[ f ].x + ":" + face[ f ].y;
|
|
|
|
|
|
+ key = face[ f ].x + ':' + face[ f ].y;
|
|
|
|
|
|
index = allPointsMap[ key ];
|
|
index = allPointsMap[ key ];
|
|
|
|
|