importCSG reverse polyhedra if they have negative volume
This commit is contained in:
parent
0a876e18c9
commit
de9c17ec07
|
@ -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) :
|
||||
|
|
Loading…
Reference in New Issue
Block a user