bt.cover mangles polylines1 when polylines2 fits entirely within its boundaries.
Elijah-Bodden opened this issue · comments
See here for an example. This is a more general problem - whenever the outline of the covering shape fits completely within the covered shape, vertices on the covered shape get set to apparently random positions off-canvas. If the coverer is outside the shape, or it overlaps with its lines even a little bit, no problem. But as soon as they're over each other, this bug happens.
I traced the bug to the addToNdp
function in cutCover.js. Replacing calls to it with ndp.push seems to fix the problem but apparently we need addToNdp
for other reasons