diff --git a/src/CSGTermEvaluator.cc b/src/CSGTermEvaluator.cc index 6416f29..b3753cf 100644 --- a/src/CSGTermEvaluator.cc +++ b/src/CSGTermEvaluator.cc @@ -109,7 +109,7 @@ static shared_ptr evaluate_csg_term_from_geometry(const State &state, shared_ptr ps = dynamic_pointer_cast(geom); // Since is_convex() doesn't handle non-planar faces, we need to tessellate // also in the indeterminate state so we cannot just use a boolean comparison. See #1061 - bool convex = ps->convexValue(); + bool convex{ps->convexValue()}; if (ps && !convex) { assert(ps->getDimension() == 3); PolySet *ps_tri = new PolySet(3, ps->convexValue());