Srf Selection via Normal Directions

Hi, is there a way to select planar surfaces based on their normal directions? Thanks

Scriptwise, yes… Are you looking for something very strict - like exactly this normal angle and nothing else - or something more general like something that vaguely faces the camera or a certain direction?

Something more general please.

Well, since you didn’t list any criteria, below is just an example of a script I adapted from my library. All surfaces whose normals face more towards the camera than away from the camera will be selected.

SelSrfNormalsView.py (1.2 KB)

This can be easily adapted to select surfaces whose normals face in one particular direction (like world Z) within a given angle tolerance…

1 Like

Thanks.

Hi Mitch,
For some reason I get this error message when I try to run this script…
Any idea on how to fix this? (zero programming experience…)
cheers

I’m trying to replicate the problem, but mine works fine.
Have you tried re-downloading the script?

If you run cmd ‘editpythonscript’, then open the script, does line 26 state:
srf_objs=rs.ObjectsByType(8,state=1)
and line 39
RunSelSrfNormalsView()

Hello - are you in V5 or V6?

-Pascal

@Jaxx What version of Rhino are you using? Early versions of V5 for Windows and Mac did not support the state argument. You could try the one below, I guess. Or update your Rhino.

SelSrfNormalsViewEX.py (1.3 KB)