diff options
author | Marius Kintel <marius@kintel.net> | 2011-09-06 22:47:01 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-09-06 22:47:01 (GMT) |
commit | 9ec9111dcbac7414e503a8a3d01cfb66ce7184c9 (patch) | |
tree | acbf9239ea03180cb51cb781ce6636e2f49d9cd4 /src | |
parent | 820a886fac9cdfa669e4ca2d19bc2b1933668775 (diff) |
Fixed another projection() crash bug; only 3D children
Diffstat (limited to 'src')
-rw-r--r-- | src/PolySetCGALEvaluator.cc | 4 |
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; |