Skip to content

Warnings deprecated declaration regarding triangulate_and_refine_hole #7714

Answered by sloriot
stla asked this question in Q&A
Discussion options

You must be logged in to vote

From https://github.com/CGAL/cgal/blob/master/Installation/CHANGES.md

Deprecated the overloads of functions CGAL::Polygon_mesh_processing::triangulate_hole(), CGAL::Polygon_mesh_processing::triangulate_and_refine_hole(), and CGAL::Polygon_mesh_processing::triangulate_refine_and_fair_hole() which have output iterators for vertices and faces as parameter. They are replaced by overloads with two additional named parameters.

In your code you can use:

PMP::triangulate_and_refine_hole(
  mesh, h, 
  CGAL::parameters::face_output_iterator(std::back_inserter(patch_faces)).
                    vertex_output_iterator(std::back_inserter(patch_vertices))  
);

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@stla
Comment options

Answer selected by stla
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants