Grasshopper

algorithmic modeling for Rhino

Hi all,

I'd like to cull (delete) faces if them are less then 60 mm distant.

I tried to do this attached GH definition, but I'm able only to select the distant ones. If I use the B channel in dispatch, I have thousands and thousands of duplicate.

Any suggestions?

Thank you

Views: 390

Attachments:

Replies to This Discussion

I believe this does it:

instead of the cross reference component, just graft one of the 2 inputs.

this way you have multiple lists inside a tree and each list has the distances from one face to all the others.

In order to find the minimum distance in each list, sort them and select item 1 (item 0 will always be 0 because it is the distance from each face to itself).

Now you have for every face the distance to the closest face.

flatten the output so that the data structure matches the one of the faces.

find the distances that are larger than a number and cull the rest.

Uhm, actually I tried to use your function, but it's not working...:(

it worked with a brep I created.

could you post your definition so I can check it there?

(do you have multiple breps or just one?)

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