memononen / nanosvg

Simple stupid SVG parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to find the outer loop and internal loops(holes) of a path?

Vishnu-C opened this issue · comments

I have a path displayed as below by inkscape,
image

NSVGpath gives no information about loops or discontinuity between points. On piloting the points from NSVGpath I see the loops connected (off course it should)
image

How to find the outer loop and internal loops(holes) of a path?
Thanks!

I would expect there to be multiple paths in this case. How does the file look like?

Yes, I was wrong, the shape has multiple paths. Thanks for looking into it.