Grasshopper

algorithmic modeling for Rhino

I have a bunch of breps, kindof like a web, that split eachother where they connect at the ends.  Each Brep is then a branch with several surfaces.  I want to remove the trimmed surfaces, but the only way I can think to do it is keeping the largest surface of each branch and removing the others.

So I sorted them (image below) and got the largest one, but the list is sorted differently now and doesn't match the original list of surfaces.  How can I tell it to get the largest surface of each branch?  Or maybe this is the wrong way to go about it.

Views: 723

Replies to This Discussion

plug your surfaces into A of sort, plug a of sort into L of list item, then reverse L, set i as 0. You may need to graft but I cannot tell as your "fancy wires" are off or you are working with a flat list.

hmmmm, I must be close now, neither of these returned any surfaces for some reason...

just attach the file.

your gonna wanna do something like this.

*went out for a run, needed a break from the computer :)

and yes, that's exactly right Michael, brilliant.  I was trying to make those last few steps too complicated.  I also hadn't realized how the "optional list of values to sort synchronously worked", good things

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service