Is there a Python method for finding surfaces aligned to a plane?

I would like to be able to find all surfaces that are aligned to a specific plane (not necessarily residing on the plane). Something like this:

Thanks,

Dan

Maybe with this?
https://developer.rhino3d.com/api/RhinoCommon/html/Overload_Rhino_Geometry_Surface_TryGetPlane.htm

And then compare z vectors

1 Like

Hi Dan,
Below is sort of a “generic” script from my library - you can probably refine it somewhat…

The optional (hard-coded) arguments at the end can be used to create different aliases or toolbar buttons to select either in-plane or parallel planes to one of the 3 principal planes. I did not take the time when I made it to give it command-line options that you can change on the fly, but maybe it’s useful anyway…

Discourse is playing tricks on me again - drag and drop the script into the window, but it’s the wrong one that appears. :confounded:

SelParallelToPlane.py (2.3 KB)

1 Like

Thanks guys, this should be helpful.