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.
Tags:
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
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.
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
Matt, that's really great! thanks!
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by