Grasshopper

algorithmic modeling for Rhino

Firstly apologies for what will seem like quite a simple task to achieve the and also for the simplistic way I’m about to describe it.

 

I am trying to take each individual rectangle/curve (from the geometry file) and move it to the underside of the contoured surface. Whilst keeping it in the same plane, so not just a simple project.

 

The attached files are just a simple test file I’m working on. Once it works properly I will use it on my actually model, where it will have around 7000 rectangles to move.

 

The process I’m using is: drawing a vertical line to the underside of the surface (on each corner of the rectangle); then finding out which is the shortest in distance; then moving the rectangle up that far.

 

The definition works fine when just dealing with one rectangle. But when I input multiple rectangles/curves it does one rectangle properly, then just moves the rest of them the same distance.

I understand that what is happening is that at the moment all of the curves are being processed through the definition together.

When in fact I want the definition to work out one, then move onto the next, then the next, etc. I just don’t know how to rectify it.

 

Any help/advice would be greatly appreciated.

 

Cheers

Views: 249

Attachments:

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service