Don't assert dimension - groups without geometry will have dimension 0

stl_dim
Marius Kintel 2010-07-09 00:47:43 +02:00
parent a38cd8d0f1
commit 8fafb720ca
1 changed files with 2 additions and 1 deletions

View File

@ -172,7 +172,8 @@ Response CGALRenderer::visit(const State &state, const TransformNode &node)
// Then apply transform
CGAL_Nef_polyhedron N = this->cache[this->tree.getString(node)];
assert(N.dim >= 2 && N.dim <= 3);
// If there is no geometry under the transform, N will be empty and of dim 0,
// just just silently ignore such nodes
if (N.dim == 2) {
// Unfortunately CGAL provides no transform method for CGAL_Nef_polyhedron2
// objects. So we convert in to our internal 2d data format, transform it,