Grasshopper

algorithmic modeling for Rhino

I'm new to Grasshopper, and I'm trying to figure out how to select only one brep object from a large group, specifically the one that is closest to a given point.

What I've managed to figure out is this:

The surface is the grid on which the objects are placed, and the brep param has selected the multiple breps I'm selecting from. This only gives me a range of distances from my point to the nearest points on all breps.

I can only seem to figure out how to find the nearest point on all breps, but I would like to be able to manipulate only one brep at a time. How might I do this?

Views: 5567

Replies to This Discussion

Hi Lauren,

 

you're very close as far as I can tell. Sorting the breps based on the CP distance is the correct first step. I think all you need to do now is use the List Item component to extract the first object in the list of sorted Breps (the object at index = 0).

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Just to add an image to David's explanation:

or

Thanks! 

Hi, I have a mesh, with the vertices, and i found the list of points that are above a certain distance from one point in the group, and now i want to somehow have a list of all the mesh faces associated with those points... is that possible? i've been trying but to no avail...

Image attached.

Attachments:
Please start a new discussion for this entirely new topic.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service