How to have a list with the cardinal orientations of a geometry

Dear Ladybugger,

I would need your precious help.
There is a component of Ladybug Tools, that automatically give me a list with the cardinal orientation of a given surface, based on his indicees number, like the image?

Thanks in advance and best regards

@Sonny.Weaver ,

What’s the use case that you need this for? It’s tough to write something that’s reliable for all Rhino geometry because you can have Rhino solids that need to be deconstructed into individual surfaces and you can also have curved Rhino surfaces where the concept of orientation goes out the window.

But here’s a small component with a few lines of Python that uses ladybug’s SDK to deconstruct & planarize any Rhino geometry and then give aligned lists of planar breps and orientations:


Orientation Labeler.gh (5.7 KB)

1 Like

Awesome @chris,

for me is very important, because I always have to specify the orientation of the analyzed surfaces (facades / windows), and the results, based on the code requirements.
With this way, I no longer need to go and check the numbering of the surfaces one by one and check where it is oriented. With a high number of surfaces, this script saves me a lot of time.

This is a little example, export from Grasshopper with the WriteToExcel component.

Thanks Again for your invaluable help.