diff options
author | Marius Kintel <marius@kintel.net> | 2011-09-06 22:10:21 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-09-06 22:10:21 (GMT) |
commit | ac01975b02055c6e66bb8c9d97f0d9bc876913b5 (patch) | |
tree | c80856570645e9179bc8fc09fc66283f7eac2818 /src | |
parent | f9b026a2f0bb3c0a59b430c651e6c9151af3826d (diff) |
bugfix: fixed crash bugs on empty projection()
Diffstat (limited to 'src')
-rw-r--r-- | src/PolySetCGALEvaluator.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/PolySetCGALEvaluator.cc b/src/PolySetCGALEvaluator.cc index 50dc358..1ac053f 100644 --- a/src/PolySetCGALEvaluator.cc +++ b/src/PolySetCGALEvaluator.cc @@ -28,6 +28,7 @@ PolySet *PolySetCGALEvaluator::evaluatePolySet(const ProjectionNode &node, Abstr if (sum.empty()) sum = N.copy(); else sum += N; } + if (sum.empty()) return NULL; PolySet *ps = new PolySet(); ps->convexity = node.convexity; |