mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-16 14:17:14 +00:00
The convexity check looked at 32 points along each segment, so a cubic that bends the other way for a short stretch between two of those points was taken as convex. Each segment is now also checked whole: the cross product of its first and second derivatives, a quadratic in t, must not turn against the way the outline turns anywhere on the segment.