diff --git a/Polygon_mesh_processing/test/Polygon_mesh_processing/test_corefinement_bool_op.cpp b/Polygon_mesh_processing/test/Polygon_mesh_processing/test_corefinement_bool_op.cpp index cc012385996..244c4601cc0 100644 --- a/Polygon_mesh_processing/test/Polygon_mesh_processing/test_corefinement_bool_op.cpp +++ b/Polygon_mesh_processing/test/Polygon_mesh_processing/test_corefinement_bool_op.cpp @@ -1,5 +1,6 @@ // #define CGAL_COREFINEMENT_POLYHEDRA_DEBUG // #define CGAL_COREFINEMENT_DEBUG +#define CGAL_USE_DERIVED_SURFACE_MESH #include #include @@ -13,9 +14,17 @@ #include #include +#include typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel; -typedef CGAL::Surface_mesh Surface_mesh; +typedef Kernel::Point_3 Point_3; + + +#ifdef CGAL_USE_DERIVED_SURFACE_MESH +typedef CGAL::Testsuite::DerivedSurfaceMesh Surface_mesh; +#else +typedef CGAL::Surface_mesh Surface_mesh; +#endif namespace PMP = CGAL::Polygon_mesh_processing; namespace CFR = PMP::Corefinement; diff --git a/Testsuite/include/CGAL/Testsuite/DerivedSurfaceMesh.h b/Testsuite/include/CGAL/Testsuite/DerivedSurfaceMesh.h new file mode 100644 index 00000000000..fe202ea6295 --- /dev/null +++ b/Testsuite/include/CGAL/Testsuite/DerivedSurfaceMesh.h @@ -0,0 +1,33 @@ +// Copyright (c) 2023 GeometryFactory Sophia-Antipolis (France). +// All rights reserved. +// +// This file is part of CGAL (www.cgal.org) +// +// $URL$ +// $Id$ +// SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-Commercial +// +// Author(s) : Andreas Fabri + +#ifndef CGAL_TESTSUITE_DERIVED_SURFACE_MESH_H +#define CGAL_TESTSUITE_DERIVED_SURFACE_MESH_H + +namespace CGAL { namespace Testsuite { + + template + struct DerivedSurfaceMesh: public CGAL::Surface_mesh

{ + typedef CGAL::Surface_mesh

Base; + std::string name; + }; + + + } // namespace Testsuite +} // namespace CGAL + + +#define CGAL_GRAPH_TRAITS_INHERITANCE_TEMPLATE_PARAMS typename P +#define CGAL_GRAPH_TRAITS_INHERITANCE_CLASS_NAME CGAL::Testsuite::DerivedSurfaceMesh

+#define CGAL_GRAPH_TRAITS_INHERITANCE_BASE_CLASS_NAME CGAL::Surface_mesh

+#include + +#endif CGAL_TESTSUITE_DERIVED_SURFACE_MESH_H