Hi Luiz, here’s my procedure :
A) I create a collection of N rooms, integer sized (1-4 unit long, 2-4 unit large) and I uv-pack them together (uv layout). B) Boolean / convertline the result, so I have unique polyline primitives between all the points. C) I create this red inside polyline structures D) Intersectionanalysis between the red and the black lines, so I can delete every red lines that touch nothing … E) and also keep only one red primitive primitive, randomly, for every black wall line. F) polyexpand the red line G) boolean subtract with the black wall.
The Game Jam version was slightly more complex because I also added a corridor in the mix, but the idea is the same.
Attachments in this post:
http://fx-td.com/houdiniandchill/wp-content/uploads/discord/20181911/04/18/Logic.jpg