summaryrefslogtreecommitdiff
path: root/src/PolySetCGALEvaluator.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-06-15 16:48:09 (GMT)
committerMarius Kintel <marius@kintel.net>2013-06-15 16:48:09 (GMT)
commit3f936099faa34ff47f5226b21b640828532637dc (patch)
tree99df28024caf98797a68726afa3629f7245a73b3 /src/PolySetCGALEvaluator.cc
parent75a5dad6b7f65c52568d2cd82f556caa538439c6 (diff)
Clamp linear_extrude height to 0. Fixes #405
Diffstat (limited to 'src/PolySetCGALEvaluator.cc')
-rw-r--r--src/PolySetCGALEvaluator.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/PolySetCGALEvaluator.cc b/src/PolySetCGALEvaluator.cc
index f0c274f..bc9206f 100644
--- a/src/PolySetCGALEvaluator.cc
+++ b/src/PolySetCGALEvaluator.cc
@@ -324,6 +324,7 @@ PolySet *PolySetCGALEvaluator::extrudeDxfData(const LinearExtrudeNode &node, Dxf
{
PolySet *ps = new PolySet();
ps->convexity = node.convexity;
+ if (node.height <= 0) return ps;
double h1, h2;
contact: Jan Huwald // Impressum