Grasshopper

algorithmic modeling for Rhino

I have two surfaces (produced by a surface split component) - and I want to choose the one with the larger area.

I suspect there is a simple, elegant way to do this but apart from using an area component, I don't know what to do.


Can someone recommend the best way to do this? I'm having trouble comparing area sizes, and it seems like there should be an easier method.

Views: 1407

Attachments:

Replies to This Discussion

Hello Christopher,

You need to use the Larger Than component with Pick and Choose, like below.

You're almost there, Christopher, just overcomplicating things for yourself a tad!

If you sort the areas, then co-sort the split surfaces using these keys you can just reverse the list and pick the first item:

Attachments:

You can even get rid of the reverse list and pick the last item by using index=-1.

Thanks Joe and FRiou, these are really lovely solutions - sorting with keys / values solves so many problems that I've had.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service