iShapeTriangulation icon indicating copy to clipboard operation
iShapeTriangulation copied to clipboard

Ignore unused points?

Open max-christian opened this issue 1 year ago • 1 comments

I'm getting this exception thrown from PlainShape.split(). Seems to happen when a polygon has two very nearby vertices.

                throw SplitError.unusedPoint

Is it safe to ignore the unused point by replacing the throw with the following code?

                i += 1
                continue nextNode

Any advice much appreciated!

max-christian avatar Apr 07 '23 16:04 max-christian