algorithmic modeling for Rhino
Wondering if anyone know of a way to drop a collection of objects to a mesh?
I'm trying to align buildings to topography which was made using Delaunay Mesh.
(big thanks to Hannes Löschke for his mesh_contours definition found here: mesh_contours.gh)
Tags:
If you want them to sink in so the footprint will be completely in the topo-surface.
For each building outline:
- project corner points onto mesh
- calculate largest distance
- move building down that distance
The actual implementation of that depends on how your buildings are created.
Hannes' suggestion is good, if your buildings are all boxes then you can implement it in this way:
The trick here is to project the four corners of your buildings onto the mesh, get the bounding-boxes of these point lists, evaluate these boxes at the bottom (w=0.0) and then the MoveToPlane component to perform the move.
--
David Rutten
david@mcneel.com
Tirol, Austria
Thanks Hannes and David! Works a treat.
I also spoke to Pascal who provided a Rhino Script which does the same thing.
(drag into open Rhino window, use command: _MoveProjectEach)
PS
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by