diff --git a/src/ifcgeom/kernels/cgal/nef_to_halfspace_tree.h b/src/ifcgeom/kernels/cgal/nef_to_halfspace_tree.h index 60c6aac30b..8f0afd5c59 100644 --- a/src/ifcgeom/kernels/cgal/nef_to_halfspace_tree.h +++ b/src/ifcgeom/kernels/cgal/nef_to_halfspace_tree.h @@ -1287,7 +1287,7 @@ bool convert_to_polyhedron(const CGAL::Nef_polyhedron_3& a, CGAL::Polyhe for (auto jt = it->shells_begin(); jt != it->shells_end(); ++jt) { if (v++ == volume_index) { Polysoup_builder vis; - a.visit_shell_objects(CGAL::Nef_polyhedron_3::SFace_const_handle(jt), vis); + a.visit_shell_objects(typename CGAL::Nef_polyhedron_3::SFace_const_handle(jt), vis); vis.build(b); return true; } @@ -1306,7 +1306,7 @@ bool write_to_obj(const CGAL::Nef_polyhedron_3& a, std::ostream& ofs, si } for (auto jt = it->shells_begin(); jt != it->shells_end(); ++jt) { if (v++ == volume_index || volume_index == std::numeric_limits::max()) { - a.visit_shell_objects(CGAL::Nef_polyhedron_3::SFace_const_handle(jt), vis); + a.visit_shell_objects(typename CGAL::Nef_polyhedron_3::SFace_const_handle(jt), vis); if (volume_index != std::numeric_limits::max()) { vis.write(ofs); return true;