Mini code cleaning

This commit is contained in:
Mael Rouxel-Labbé 2020-02-05 18:11:26 +01:00
parent 0bd5511803
commit e72756eb0a
2 changed files with 6 additions and 6 deletions

View File

@ -183,7 +183,7 @@ void smooth_mesh(const FaceRange& faces,
} }
ECMap ecmap = choose_parameter(get_parameter(np, internal_np::edge_is_constrained), ECMap ecmap = choose_parameter(get_parameter(np, internal_np::edge_is_constrained),
Constant_property_map<edge_descriptor, bool>(false)); Constant_property_map<edge_descriptor, bool>(false));
// a constrained edge has constrained extremities // a constrained edge has constrained extremities
for(face_descriptor f : faces) for(face_descriptor f : faces)

View File

@ -843,7 +843,7 @@ std::size_t stitch_borders(PolygonMesh& pmesh,
template <typename PolygonMesh, template <typename PolygonMesh,
typename HalfedgePairsRange> typename HalfedgePairsRange>
std::size_t stitch_borders(PolygonMesh& pmesh, std::size_t stitch_borders(PolygonMesh& pmesh,
const HalfedgePairsRange& hedge_pairs_to_stitch) const HalfedgePairsRange& hedge_pairs_to_stitch)
{ {
return stitch_borders(pmesh, hedge_pairs_to_stitch, CGAL::parameters::all_default()); return stitch_borders(pmesh, hedge_pairs_to_stitch, CGAL::parameters::all_default());
} }
@ -890,9 +890,9 @@ std::size_t stitch_borders(PolygonMesh& pmesh,
halfedge_descriptor; halfedge_descriptor;
std::vector< std::pair<halfedge_descriptor, halfedge_descriptor> > hedge_pairs_to_stitch; std::vector< std::pair<halfedge_descriptor, halfedge_descriptor> > hedge_pairs_to_stitch;
typedef typename GetVertexPointMap<PolygonMesh, CGAL_PMP_NP_CLASS>::const_type VPMap; typedef typename GetVertexPointMap<PolygonMesh, CGAL_PMP_NP_CLASS>::const_type VPM
VPMap vpm = choose_parameter(get_parameter(np, internal_np::vertex_point), VPM vpm = choose_parameter(get_parameter(np, internal_np::vertex_point),
get_const_property_map(vertex_point, pmesh)); get_const_property_map(vertex_point, pmesh));
#ifdef CGAL_PMP_STITCHING_DEBUG #ifdef CGAL_PMP_STITCHING_DEBUG
std::cout << "------- Stitch cycles..." << std::endl; std::cout << "------- Stitch cycles..." << std::endl;
@ -907,7 +907,7 @@ std::size_t stitch_borders(PolygonMesh& pmesh,
internal::collect_duplicated_stitchable_boundary_edges(pmesh, internal::collect_duplicated_stitchable_boundary_edges(pmesh,
std::back_inserter(hedge_pairs_to_stitch), std::back_inserter(hedge_pairs_to_stitch),
internal::Less_for_halfedge<PolygonMesh, VPMap>(pmesh, vpm), internal::Less_for_halfedge<PolygonMesh, VPM>(pmesh, vpm),
vpm, np); vpm, np);
res += stitch_borders(pmesh, hedge_pairs_to_stitch, np); res += stitch_borders(pmesh, hedge_pairs_to_stitch, np);