Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
FreeCAD
FreeCAD
Commits
8e2ae905
Commit
8e2ae905
authored
Jan 07, 2013
by
Sebastian Hoogen
Committed by
wmayer
Jan 09, 2013
Browse files
importCSG reverse polyhedra if they have negative volume
parent
f1f7238d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Mod/OpenSCAD/importCSG.py
View file @
8e2ae905
...
...
@@ -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
)
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment