Grasshopper

algorithmic modeling for Rhino

If I select three entities in Rhino with the Geometry Parameter!

So, I have the 3 items, one is a Point, the second one is a curve and the last one a Solid = BRep.

 

So I have a list with these 3 items, how can I select only the BREP, in other words, how can I filter the list and find the only Solid = BREP.

 

Thanks for your help!

 

Andres

Views: 6896

Replies to This Discussion

With the List Item component.

 

Luca

Thanks Luca, I like your solution, but may I add something new, how about if you do not know the INDEX number of the Brep? How can you filter, find the BRep?

 

Thanks!

Provided you don't have a closed Planar curve you could simply pass the geometry list into a BRep Param component which will Error when trying to convert the curve and point to a BRep, but the output will only be the BRep. If it is a closed planar curve then this will be converted to a planar srf. Otherwise you could use something similar to this: http://www.grasshopper3d.com/forum/topics/extracting-a-specific-ite...

 

I think this is the best I can do.

 

Thanks Danny!

Thank you Danny...I know the solution with the error,but your link is very useful for the future.

Nice expression!!!

Thanks again

This is a slightly modified version of Danny's function.

- Giulio
_____________

giulio@mcneel.com

McNeel Europe, Barcelona

Hi Giulio,

 

That's much better, thank you!

 

Danny

Thanks man, problems solved!

I have a slight different problem to the same topic.

I have 3 sets of each 3 items. In the first set the item is in position 2 in the second set in position 3 and in set 3 in Position 1. How can I erease the non needed balance? 

It might help that the not needed lines are always equal but not overlapping.

This would be applied in a further instance to 1400 triangles with each 3 sets.

Hi Stefano,

provided that the lines you always want are equal and never more than three in a path then this approach will work.

I generates a cull pattern based on the "most of" lengths.

Attachments:

Same Logic as before but with fewer components after I saw Matt's Set Majority method.

 

Nice Mix of both our methods :D

Though i mine gives the inverted output of yours. Though this can be changed by inverting the cull pattern as you know.

Shame we can't like replys.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service