Grasshopper

algorithmic modeling for Rhino

So I have some geometry, and sometimes it is a polysurface and other times it is a single surface.

Is there a way to test whether it is one or the other then dispatches it based on what it is?

For example, the logic I'm working towards is this:

If polysurface:

do transformation A

If single surface:

do transformation B

I'm oversimplifying it but that is the essence of what I'm trying to do. Let me know if I can provide more explanation because I'm probably not making myself clear :(

Views: 428

Replies to This Discussion

You can use a Surface Param, if the result is null then it is not a surface

Cool! Thanks Danny!

Would this not be a better/quicker way? Can't find the original post i saved this image from now, as i did not give the answer just found it useful so i saved it for reference.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service