Split room boundaries in simple shapes

Hi there,
I need to split the room shape in simple shapes to perform some analysis and calculations.
In brief if I have a corridor or a shaped room with a complex shape I need to divide it to 2 or more simple sub shapes (read trisngles or squares/rectangles).
I can’t think of a possible algorithm to use and I’m asking your advice to tackle this request.
I attach a sketch, a picture is worth a thousand words.

I assumed the cut lines can be at angle 0°,45° or 90° but the angles might change according to room orientation in the project.

Thanks for your help.

Hello @paolo.pozzoli

look at this similar topic

3 Likes

Thank you @c.poupin!
Very interesting!
And very similar to my topic indeed.
In my case I don’t need such a high output precision but I’ll give it a try and tweak the accuracy acc01 value if needed.
I’ll be back in the next few days to report.
Merci!

1 Like