Fixed another projection() crash bug; only 3D children

stl_dim
Marius Kintel 2011-09-07 00:47:01 +02:00
parent 820a886fac
commit 9ec9111dcb
1 changed files with 4 additions and 0 deletions

View File

@ -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;