summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-09-06 22:47:01 (GMT)
committerMarius Kintel <marius@kintel.net>2011-09-06 22:47:01 (GMT)
commit9ec9111dcbac7414e503a8a3d01cfb66ce7184c9 (patch)
treeacbf9239ea03180cb51cb781ce6636e2f49d9cd4 /src
parent820a886fac9cdfa669e4ca2d19bc2b1933668775 (diff)
Fixed another projection() crash bug; only 3D children
Diffstat (limited to 'src')
-rw-r--r--src/PolySetCGALEvaluator.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/PolySetCGALEvaluator.cc b/src/PolySetCGALEvaluator.cc
index 1ac053f..ff02359 100644
--- a/src/PolySetCGALEvaluator.cc
+++ b/src/PolySetCGALEvaluator.cc
@@ -29,6 +29,10 @@ PolySet *PolySetCGALEvaluator::evaluatePolySet(const ProjectionNode &node, Abstr
else sum += N;
}
if (sum.empty()) return NULL;
+ if (sum.dim != 2) {
+ PRINTF("WARNING: Body of projection() must be a 3D object");
+ return NULL;
+ }
PolySet *ps = new PolySet();
ps->convexity = node.convexity;
contact: Jan Huwald // Impressum