mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Merge branch 'boolean-debug' into remove-resolve-crossings
This commit is contained in:
commit
8b094926be
1 changed files with 5 additions and 2 deletions
|
@ -855,6 +855,7 @@ PathItem.inject(new function() {
|
||||||
nx1 = inter && inter._next,
|
nx1 = inter && inter._next,
|
||||||
nx2 = nx1 && nx1._next,
|
nx2 = nx1 && nx1._next,
|
||||||
nx3 = nx2 && nx2._next,
|
nx3 = nx2 && nx2._next,
|
||||||
|
wind = seg._winding,
|
||||||
intersections = {
|
intersections = {
|
||||||
'ix': inter,
|
'ix': inter,
|
||||||
'nx¹': nx1,
|
'nx¹': nx1,
|
||||||
|
@ -862,7 +863,9 @@ PathItem.inject(new function() {
|
||||||
'nx³': nx3
|
'nx³': nx3
|
||||||
};
|
};
|
||||||
if (windingOnly) {
|
if (windingOnly) {
|
||||||
label += (seg._winding && seg._winding.winding);
|
if (wind) {
|
||||||
|
label += wind.winding + ', (' + wind.windingL + ', ' + wind.windingR + ')';
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
label += ' id: ' + path._id + '.' + seg._index
|
label += ' id: ' + path._id + '.' + seg._index
|
||||||
+ (other ? ' -> ' + other._path._id + '.' + other._index
|
+ (other ? ' -> ' + other._path._id + '.' + other._index
|
||||||
|
@ -871,7 +874,7 @@ PathItem.inject(new function() {
|
||||||
+ ' pt: ' + seg._point
|
+ ' pt: ' + seg._point
|
||||||
+ ' vd: ' + (isValid(seg) || starts && isStart(seg))
|
+ ' vd: ' + (isValid(seg) || starts && isStart(seg))
|
||||||
+ ' ov: ' + !!(inter && inter.hasOverlap())
|
+ ' ov: ' + !!(inter && inter.hasOverlap())
|
||||||
+ ' wi: ' + (seg._winding && seg._winding.winding);
|
+ ' wi: ' + (wind && wind.winding);
|
||||||
for (var key in intersections) {
|
for (var key in intersections) {
|
||||||
var ix = intersections[key],
|
var ix = intersections[key],
|
||||||
s = ix && ix._segment;
|
s = ix && ix._segment;
|
||||||
|
|
Loading…
Reference in a new issue