Grasshopper

algorithmic modeling for Rhino

I am using a Cull index to remove trimmed surfaces from a larger surface. I have managed to do it bu culling multiple integers from the list of surfaces. Is there a way to populate this list automatically as my list of trimmed surfaces change in quantity? I am hoping that's clear...

See my screengrab attached.

Views: 6541

Replies to This Discussion

Hi Omar,

it depends on what your decision making process is for picking certain surfaces and not others. If you want to pick the biggest surface in a list, then there are ways to make it automatic. Is that what you're after?

--

David Rutten

david@mcneel.com

Thanks Dave. I want to remove all the trimmed (hole) surfaces. I figured out that I can create range of numbers at one step intervals equal to the total number of surfaces and input that on the cull index The next step is to make that automatic so that the number (amount) of surfaces trimmed equals the cull index.

There are several ways forward I think. You can get the boundingox of all surfaces, sort them by diagonal length, and whichever surface has the longest diagonal is the one you want to keep right? That should always work for geometry like this.

--

David Rutten

david@mcneel.com

Yes. Many thanks!

Sorry Omar, but i may have given you the wrong workflow the other night after the Split Surface component, from having a look at your list the one number your not culling is 0, so instead of using cull index just try using a item component with the item index 0, and see if the  surface you want to keep is always the first.

 

matt

Thank you both for your help. In the list I am culling, item 0 turned out to be the "wall" surface that I intend to keep. The "openings" start at item 1 onward... I set up  a simple range component where i match the number of cutting polylines generated starting with item 1. That seem to do the trick.See a screen grab and the definition attached.

Attachments:

Did a quick edit of you code adding in a couple of components i had spoke of to speed it up and removed the pull to srf as you should not need this if the Map to Srf has worked correct

Attachments:

Matt, that's really great! thanks!

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