#include <CGAL/Shape_detection/Region_growing/Polygon_mesh/One_ring_neighbor_query.h>
template<typename PolygonMesh>
class CGAL::Shape_detection::Polygon_mesh::One_ring_neighbor_query< PolygonMesh >
Edge-adjacent faces connectivity in a polygon mesh.
This class returns all faces, which are edge-adjacent to a query face in a polygon mesh being a PolygonMesh.
- Template Parameters
-
- Is model of
NeighborQuery
- Examples
- Shape_detection/region_growing_lines_on_segment_set.cpp, and Shape_detection/region_growing_planes_on_polygon_mesh.cpp.
|
|
using | Item = typename boost::graph_traits< PolygonMesh >::face_descriptor |
| | Item type.
|
| |
|
using | Region = std::vector< Item > |
| |
◆ One_ring_neighbor_query()
template<typename PolygonMesh >
initializes all internal data structures.
- Parameters
-
| pmesh | an instance of a PolygonMesh that represents a polygon mesh |
- Precondition
faces(pmesh).size() > 0
◆ operator()()
template<typename PolygonMesh >
implements NeighborQuery::operator()().
This operator retrieves all faces, which are edge-adjacent to the face query. These Items are returned in neighbors.
- Parameters
-
| query | Item of the query face |
| neighbors | Items of faces, which are neighbors of the query face |
- Precondition
query_index < faces(pmesh).size()