Fix of Build failed with CGAL 5.5: UserVisitor’ {aka ‘struct priv::Visitor’}

has no member named ‘start_filtering_intersections’
Fixes #9582
Co-authored-by: @hexane360
This commit is contained in:
Vojtech Bubnik 2023-03-03 13:07:32 +01:00
parent 39df7582c0
commit 65ab83d6a9
2 changed files with 17 additions and 19 deletions

View file

@ -848,7 +848,16 @@ TEST_CASE("Emboss extrude cut", "[Emboss-Cut]")
using EcmType = CGAL::internal::Dynamic<MyMesh, ecm_it>;
EcmType ecm = get(d_prop_bool(), cgal_object);
struct Visitor {
struct Visitor : public CGAL::Polygon_mesh_processing::Corefinement::Default_visitor<MyMesh> {
Visitor(const MyMesh &object, const MyMesh &shape,
MyMesh::Property_map<CGAL::SM_Edge_index, IntersectingElemnt> edge_shape_map,
MyMesh::Property_map<CGAL::SM_Face_index, IntersectingElemnt> face_shape_map,
MyMesh::Property_map<CGAL::SM_Face_index, int32_t> face_map,
MyMesh::Property_map<CGAL::SM_Vertex_index, IntersectingElemnt> vert_shape_map) :
object(object), shape(shape), edge_shape_map(edge_shape_map), face_shape_map(face_shape_map),
face_map(face_map), vert_shape_map(vert_shape_map)
{}
const MyMesh &object;
const MyMesh &shape;
// Properties of the shape mesh:
@ -946,13 +955,6 @@ TEST_CASE("Emboss extrude cut", "[Emboss-Cut]")
assert(glyph->point_index != -1);
vert_shape_map[vh] = glyph ? *glyph : IntersectingElemnt{};
}
void after_subface_creations(MyMesh&) {}
void before_subface_created(MyMesh&) {}
void before_edge_split(halfedge_descriptor /* h */, MyMesh& /* tm */) {}
void edge_split(halfedge_descriptor /* hnew */, MyMesh& /* tm */) {}
void after_edge_split() {}
void add_retriangulation_edge(halfedge_descriptor /* h */, MyMesh& /* tm */) {}
} visitor{cgal_object, cgal_shape, edge_shape_map, face_shape_map,
face_map, vert_shape_map};