Skip to content

Commit

Permalink
Merge pull request CGAL#8070 from sloriot/Shape_detection-vpm_polylin…
Browse files Browse the repository at this point in the history
…e_graph

Forward the VPM to polyline graph
  • Loading branch information
lrineau committed Mar 14, 2024
2 parents 2fc4a76 + 3bfc61a commit 24cbbc6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ detect_corners_of_regions(
using parameters::get_parameter;
using parameters::is_default_parameter;

using VPM = typename GetVertexPointMap < PolygonMesh, NamedParameters>::const_type;
using Traits = typename GetGeomTraits<PolygonMesh, NamedParameters>::type;
using Graph_traits = boost::graph_traits<PolygonMesh>;
using halfedge_descriptor = typename Graph_traits::halfedge_descriptor;
Expand All @@ -377,7 +378,7 @@ detect_corners_of_regions(
}
Ecm ecm = choose_parameter(get_parameter(np, internal_np::edge_is_constrained), dynamic_ecm);

using Polyline_graph = CGAL::Shape_detection::Polygon_mesh::Polyline_graph<PolygonMesh>;
using Polyline_graph = CGAL::Shape_detection::Polygon_mesh::Polyline_graph<PolygonMesh, VPM>;
using Segment_map = typename Polyline_graph::Segment_map;
using Item = typename Polyline_graph::Item;

Expand Down Expand Up @@ -424,7 +425,7 @@ detect_corners_of_regions(
filtered_edges.push_back(e);
}

Polyline_graph pgraph(mesh, filtered_edges, region_map);
Polyline_graph pgraph(mesh, filtered_edges, region_map, np);
const auto& segment_range = pgraph.segment_range();

Line_region line_region(np.segment_map(pgraph.segment_map()));
Expand Down

0 comments on commit 24cbbc6

Please sign in to comment.