Skip to main content
1 of 3
ttsesm
  • 419
  • 3
  • 13

Apply a given number of extrusions randomly on a rectangular mesh keeping the same area size

I have the following rectangular mesh which kind of simulates the structure of a room (no window or doors at the moment), so I have four objects a floor, a ceiling, walls and a light. This has a specific floor area which is related to the area of the floor plane.

enter image description here

Now I would like to apply a given number of extrusions randomly to the mesh so that to create variations of the room but keeping the same floor area and without the created "corridor" being smaller than a specific area size so that I do not have long and slim extrusions. Any ideas how to do that efficiently with a script.

Thanks.

ttsesm
  • 419
  • 3
  • 13