Details
-
Technical task
-
Resolution: Won't Do
-
P3: Somewhat important
-
None
-
None
Description
If a QPainterPath contains self-overlapping parts, it will mostly be handled by the triangulator (so the hull will be correct) and a proper concave/convex check to make sure the curves are solved correctly. For placing a hole in the middle of the letter A for instance, this is sufficient.
But there may be shapes where overlaps cause issues, for instance, if a curve slices through another curve to generate new curves. For shapes like this:
We might have to first run some sort of simplification on the shape to solve the overlaps and generate a non-overlapping painter path and then use this as source for the algorithm.