csharp-libs
csharp-libs copied to clipboard
Errors in computing events for very small polygons
Line:
https://github.com/reinterpretcat/csharp-libs/blob/c5cd4ce18ef96911acc5a4c2821ed25044a358be/straight_skeleton/StraightSkeletonNet/SkeletonBuilder.cs#L899
should be:
Math.Abs(Math.Max(0, distance1 - SplitEpsilon))
Line:
https://github.com/reinterpretcat/csharp-libs/blob/c5cd4ce18ef96911acc5a4c2821ed25044a358be/straight_skeleton/StraightSkeletonNet/SkeletonBuilder.cs#L901
should be:
Math.Abs(Math.Max(0, distance2 - SplitEpsilon))
Hi! Thanks for reporting it, can you make a pull request?