How to combine sub paths?

Hi All…
I have a path that’s made of 5 sub paths. I want to combine them all into one path, close them off, and then fill the path.
Is there any easy way to do this? I’m guessing I could make a new path by iterating the existing path and then closing it, but this seems wrong!

Any help appreciated :slight_smile:

There is Path::addPath() for that purpose. But I can’t tell, if then a closePath will connect the first subPath with the last subPath. That is something you have to try…

Good luck

Yeah, closing the path and filling it actually fills each individual sub path. I need to combine them into one path.

At this point I’m thinking of making an array of points, rather than making sub paths and make a path out of the array afterwards.