How to divide polygon into squares?

   9575   4   2
User Avatar
Member
44 posts
Joined: April 2017
Offline
Hey everyone! I know that in Houdini there are millions of ways to do something easily. Before going into hardcode coding, want to find out, maybe there are some easy ways to take this poly:


and nicely divide it into rectangles, keeping some minimal rectange size and respecting the shape (to avoid very small rectangles); (using VOP SOP)

Or, alternatively, just fill this with hexes, and cut out unsued geometry, like
Edited by assignators - May 28, 2018 12:31:46

Attachments:
hexes.png (185.8 KB)
psquares.png (295.7 KB)

User Avatar
Member
340 posts
Joined: June 2017
Offline
You could make the edge cuts (polysplit), which is the easiest way, by far. A semi automatic way would be to select the 36 edges (the boundary) and extrude along some other direction. Then delete the top and select one of the edges and polyfill with quad grid. Then delete out the extruded polygons.
Edited by anon_user_38315714 - May 30, 2018 13:13:00
User Avatar
Member
44 posts
Joined: April 2017
Offline
Thanks for the ideas! I'll try them out and see which works best
User Avatar
Member
44 posts
Joined: April 2017
Offline
Actually OMG, I just found ‘divide’ with ‘compute dual’ and it does miracles. Love Houdini ))
User Avatar
Member
340 posts
Joined: June 2017
Offline
Have you tried just using polysplit?

Attachments:
DividePolygon.hiplc (67.5 KB)

  • Quick Links