importCSG reverse polyhedra if they have negative volume

This commit is contained in:
Sebastian Hoogen 2013-01-07 12:55:59 +01:00 committed by wmayer
parent 0a876e18c9
commit de9c17ec07

View File

@ -939,7 +939,10 @@ def p_polyhedron_action(p) :
f = make_face(v[int(i[0])],v[int(i[1])],v[int(i[2])])
faces_list.append(f)
shell=Part.makeShell(faces_list)
mypolyhed.Shape=Part.Solid(shell)
solid=Part.Solid(shell).removeSplitter()
if solid.Volume < 0:
solid.reverse()
mypolyhed.Shape=solid
p[0] = [mypolyhed]
def p_projection_action(p) :