Grasshopper

algorithmic modeling for Rhino

Hu,

first I thought that should be quite easy, maybe it is, but I didn't get.

As you can see in the image, there a bunch of cells and a 'shortestWalk' path in between.

I want to push the closest points of each cell in the direction of the cell center.

I tried to work with the closestpoint- component, but I get in trouble with the amount of closest point, sometimes there a four per cell, sometimes just three, so my list get disordered.

Hope you can help me :), I think there must be a quite simple solution...

Views: 705

Attachments:

Replies to This Discussion

It should be easy to measure the distance from your cell vertices to your shortestwalk path curve using a Curve CP component...then you just set a distance threshold...any point that is less than x away from the path gets drawn to its cell center.  Just make sure that your cell vertices and cell centers share the same data structure.

yeah, that works brilliant!

Thank you so much.

Hi all,

hi David.

The solution you gave me works fine with one polyline (created from shortest walk). But if I use a bunch of polylines it doesn't :/ Hope you can help me again :)

Thank you.

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