Skip to content

Commit

Permalink
Visitor of triangulate_faces must be a visitor of HoleFilling too
Browse files Browse the repository at this point in the history
  • Loading branch information
MaelRL committed Mar 29, 2023
1 parent 70363a3 commit 8a39016
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ namespace Triangulate_faces {
*/
template<class PolygonMesh>
struct Default_visitor
: public Hole_filling::Default_visitor
{
typedef boost::graph_traits<PolygonMesh> GT;
typedef typename GT::face_descriptor face_descriptor;
Expand Down Expand Up @@ -266,7 +267,7 @@ class Triangulate_polygon_mesh_modifier
*
* \cgalParamNBegin{visitor}
* \cgalParamDescription{a visitor that enables to track how faces are triangulated into subfaces}
* \cgalParamType{a class model of `PMPTriangulateFaceVisitor`}
* \cgalParamType{a class model of `PMPTriangulateFaceVisitor` and `PMPHolefillingVisitor`}
* \cgalParamDefault{`Triangulate_faces::Default_visitor<PolygonMesh>`}
* \cgalParamExtra{Note that the visitor will be copied, so
* it must not have any data member that does not have a reference-like type.}
Expand Down Expand Up @@ -325,7 +326,7 @@ bool triangulate_face(typename boost::graph_traits<PolygonMesh>::face_descriptor
*
* \cgalParamNBegin{visitor}
* \cgalParamDescription{a visitor that enables to track how faces are triangulated into subfaces}
* \cgalParamType{a class model of `PMPTriangulateFaceVisitor`}
* \cgalParamType{a class model of `PMPTriangulateFaceVisitor` and `PMPHolefillingVisitor`}
* \cgalParamDefault{`Triangulate_faces::Default_visitor<PolygonMesh>`}
* \cgalParamExtra{Note that the visitor will be copied, so
* it must not have any data member that does not have a reference-like type.}
Expand Down Expand Up @@ -398,7 +399,7 @@ bool triangulate_faces(FaceRange face_range,
*
* \cgalParamNBegin{visitor}
* \cgalParamDescription{a visitor that enables to track how faces are triangulated into subfaces}
* \cgalParamType{a class model of `PMPTriangulateFaceVisitor`}
* \cgalParamType{a class model of `PMPTriangulateFaceVisitor` and `PMPHolefillingVisitor`}
* \cgalParamDefault{`Triangulate_faces::Default_visitor<PolygonMesh>`}
* \cgalParamExtra{Note that the visitor will be copied, so
* it must not have any data member that does not have a reference-like type.}
Expand Down Expand Up @@ -436,6 +437,7 @@ namespace Triangulate_polygons {
* overridden.
*/
struct Default_visitor
: public Hole_filling::Default_visitor
{
template <typename Polygon>
void before_subface_creations(const Polygon& /*f_old*/) {}
Expand Down Expand Up @@ -622,7 +624,7 @@ class Triangulate_polygon_soup_modifier
*
* \cgalParamNBegin{visitor}
* \cgalParamDescription{a visitor that enables to track how polygons are triangulated into triangles}
* \cgalParamType{a class model of `PMPTriangulateFaceVisitor`}
* \cgalParamType{a class model of `PMPTriangulateFaceVisitor` and `PMPHolefillingVisitor`}
* \cgalParamDefault{`Triangulate_polygons::Default_visitor`}
* \cgalParamExtra{Note that the visitor will be copied, so
* it must not have any data member that does not have a reference-like type.}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class Polyhedron_demo_triangulate_facets_plugin :
typedef boost::graph_traits<FaceGraph>::face_descriptor face_descriptor;

struct Visitor
: public CGAL::Polygon_mesh_processing::Hole_filling::Default_visitor
{
typedef typename Scene_polyhedron_selection_item::Selection_set_facet Container;
Container& faces;
Expand Down

0 comments on commit 8a39016

Please sign in to comment.