Grasshopper

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)

*current

*aim

Views: 19051

Replies to This Discussion

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

Attachments:

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

Attachments:

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service