fix warnings

This commit is contained in:
Sébastien Loriot 2023-04-05 17:24:04 +02:00
parent e816f17ef4
commit 5828644133
2 changed files with 8 additions and 5 deletions

View File

@ -22,6 +22,7 @@
#endif
#include <CGAL/boost/graph/iterator.h>
#include <CGAL/boost/graph/Euler_operations.h>
#include <CGAL/use.h>
#include <vector>
namespace CGAL {
@ -107,6 +108,11 @@ triangulate_hole_polygon_mesh(PolygonMesh& pmesh,
Visitor& visitor,
const typename Kernel::FT max_squared_distance)
{
#ifdef CGAL_HOLE_FILLING_DO_NOT_USE_CDT2
CGAL_USE(use_cdt);
CGAL_USE(max_squared_distance);
#endif
typedef Halfedge_around_face_circulator<PolygonMesh> Hedge_around_face_circulator;
typedef typename boost::graph_traits<PolygonMesh>::vertex_descriptor vertex_descriptor;
typedef typename boost::graph_traits<PolygonMesh>::halfedge_descriptor halfedge_descriptor;

View File

@ -729,11 +729,8 @@ namespace Polygon_mesh_processing {
using parameters::get_parameter;
using parameters::get_parameter_reference;
bool use_cdt =
#ifdef CGAL_HOLE_FILLING_DO_NOT_USE_CDT2
false;
#else
choose_parameter(get_parameter(np, internal_np::use_2d_constrained_delaunay_triangulation), false);
#ifndef CGAL_HOLE_FILLING_DO_NOT_USE_CDT2
bool use_cdt = choose_parameter(get_parameter(np, internal_np::use_2d_constrained_delaunay_triangulation), false);
#endif
bool use_dt3 =
#ifdef CGAL_HOLE_FILLING_DO_NOT_USE_DT3