template<typename PolygonMesh, typename VertexPointMap = typename boost::property_map<PolygonMesh, CGAL::vertex_point_t>::const_type>
class CGAL::Shape_detection::Polygon_mesh::Polyline_graph< PolygonMesh, VertexPointMap >
Polygon mesh edges connected into a graph.
This class returns all edges, which form polylines splitting the polygon mesh being a PolygonMesh
into planar regions.
- Template Parameters
-
- Is Model Of:
NeighborQuery
- Examples:
- Shape_detection/region_growing_lines_on_segment_set.cpp.
|
template<typename FaceToRegionMap , typename NamedParameters = CGAL::parameters::Default_named_parameters> |
| Polyline_graph (const PolygonMesh &pmesh, FaceToRegionMap face_to_region_map, const NamedParameters &np=parameters::default_values()) |
| initializes all internal data structures. More...
|
|
template<typename FaceToRegionMap , typename EdgeRange , typename NamedParameters = parameters::Default_named_parameters> |
| Polyline_graph (const PolygonMesh &pmesh, const EdgeRange &edge_range, FaceToRegionMap face_to_region_map, const NamedParameters &np=parameters::default_values()) |
| initializes all internal data structures. More...
|
|
template<typename PolygonMesh , typename VertexPointMap = typename boost::property_map<PolygonMesh, CGAL::vertex_point_t>::const_type>
template<typename FaceToRegionMap , typename EdgeRange , typename NamedParameters = parameters::Default_named_parameters>
initializes all internal data structures.
- Template Parameters
-
FaceToRegionMap | a model of ReadablePropertyMap whose key type is face_descriptor of the PolygonMesh and value type is std::size_t |
EdgeRange | a model of ConstRange with edge_descriptor as iterator value type. |
NamedParameters | a sequence of optional Named Parameters |
- Parameters
-
pmesh | a polygon mesh |
edge_range | contains all edges in pmesh to be considered in the graph |
face_to_region_map | maps each face of pmesh to a corresponding planar region id |
np | a sequence of Named Parameters among the ones listed below |
- Optional Named Parameters
-
an instance of
VertexPointMap that maps a polygon mesh vertex to Kernel::Point_3
-
Default:
boost::get(CGAL::vertex_point, pmesh)
| |
- Precondition
faces(pmesh).size() > 0
-
edges(pmesh).size() > 0