hpi-swa-teaching / SVGMorph

(SWT22-04)
MIT License
5 stars 2 forks source link

Bezier: Self-intersecting shapes result in holes #66

Open Nils1729 opened 2 years ago

Nils1729 commented 2 years ago

Screenshot from 2022-07-05 11-51-55 In the image, the radius of the shape is smaller than half the stroke width, thus the stroke boundaries form a husk. The renderer uses evenodd fill rule. Hence, these husks appear as holes.

One Solution would be to convert the shape to emulate the behavior of nonzero fill rule. This would also be necessary for similar issues with the shape itself, not only the outline as well as the fill-rule SVG attribute.

Possible algorithms