Taking inspiration from an example posted by Andrew Heumann to create a magnetic floor plan organizer in Kangaroo 2, with the following objectives in mind:
- subdivide floor plan into grids
- create program rectangles based on drawn polylines
- keep rectangle lines parallel to the bounding rectangle lines
- keep all vertices of program rectangles inside the bounding rectangle
- magnetize program vertices so they can “snap” and travel together
Posted video preview is here: Magnetic Floor Plan in Grasshopper Rhino 7.0 using Kangaroo solver - YouTube