Skip to content

How to recognize disconnected shapes from booleanops #2857

Answered by Sieff
Sieff asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, I found a solution for myself, sleeping over it really does help!
Yesterday I already read that the booleanOps are represented as Bézier curves. Didn't think hard enough about it...

Well today I looked again and saw that at least for my orthogonal shapes each line consists of 4 points, not sure if this holds true for more complex shapes. Well, so iterated along pairs of 4 points to get all the lines, then connected the lines into shapes by checking when a closed loop occurs. Afterwards, I just check which of the shapes contains my starting point to get the shape that I need.

Well then have a nice day everyone.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Sieff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant