-
Hello, While compiling my R package, g++ v12 finds the following "significant warnings" (not acceptable by CRAN):
Could you enlighten me please? What is deprecated and what should I do? Here is my code: Rcpp::XPtr<EMesh3> fillBoundaryHole(int border, bool fairhole) {
std::vector<halfedge_descriptor> border_cycles;
PMP::extract_boundary_cycles(mesh, std::back_inserter(border_cycles));
const int nborders = border_cycles.size();
if(nborders == 0) {
Rcpp::stop("There's no border in this mesh.");
}
if(border >= nborders) {
std::string msg;
if(nborders == 1) {
msg = "There's only one border in this mesh.";
} else {
msg = "There are only " + std::to_string(nborders) + " borders.";
}
Rcpp::stop(msg);
}
halfedge_descriptor h = border_cycles[border];
std::vector<face_descriptor> patch_faces;
std::vector<vertex_descriptor> patch_vertices;
if(fairhole) {
const bool success = std::get<0>(
PMP::triangulate_refine_and_fair_hole( // <-- this is line 1063
mesh, h,
std::back_inserter(patch_faces), std::back_inserter(patch_vertices)
)
);
if(!success) {
Message("Fairing failed.");
}
} else {
PMP::triangulate_and_refine_hole( // <-- this is line 1072
mesh, h,
std::back_inserter(patch_faces), std::back_inserter(patch_vertices)
);
}
Face_index_map fimap = mesh.add_property_map<face_descriptor, std::size_t>(
"f:i", 0
).first;
for(int i = 0; i < patch_faces.size(); i++) {
fimap[patch_faces[i]] = 2;
}
EMesh3 hole;
Filtered_graph ffg(mesh, 2, fimap);
CGAL::copy_face_graph(ffg, hole);
mesh.remove_property_map(fimap);
return Rcpp::XPtr<EMesh3>(new EMesh3(hole), false);
} It's CGAL 5.6 compiled in C++17. |
Beta Was this translation helpful? Give feedback.
Answered by
sloriot
Dec 19, 2023
Replies: 1 comment 1 reply
-
Should be something like:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
stla
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Should be something like: