Rhino.Geometry.Mesh.SolidOrientation() bug?

Hi @dale,

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()


It prints 1 as expected. Now _Flip the mesh box and run it again. It still prints 1 ?
Shouldn’t it now print -1 as the mesh has inward facing normals ?

Is rhino mesh box by default welded?
As far as I remember you can explode box into 6 mesh groups, so it is just joined mesh.

After welding does the result change?

1 Like

Hi @Petras_Vestartas, no it is not but you can repeat above with a mesh sphere as well.