i’ve found the following, which i am not quite sure if it is a bug. Please create a mesh box and run the following:
import Rhino import scriptcontext import rhinoscriptsyntax as rs def DoSomething(): mesh_id = rs.GetObject("Mesh", 32, True, True) if not mesh_id: return mesh = rs.coercemesh(mesh_id) print mesh.SolidOrientation() DoSomething()
1 as expected. Now
_Flip the mesh box and run it again. It still prints
Shouldn’t it now print
-1 as the mesh has inward facing normals ?