CGAL 6.2 - Shape Detection: NeighborQuery Concept Reference

CGAL 6.2 - Shape Detection

Loading...
Searching...
No Matches
List of all members | Public Types | Public Member Functions
NeighborQuery Concept Reference
Reference Manual » Region Growing » Concepts

## Definition

A concept that describes the set of methods used by the `CGAL::Shape_detection::Region_growing` to access neighbors of an item.

Has models
  `CGAL::Shape_detection::Point_set::K_neighbor_query`
  `CGAL::Shape_detection::Point_set::Sphere_neighbor_query`
  `CGAL::Shape_detection::Polygon_mesh::Polyline_graph`
  `CGAL::Shape_detection::Polygon_mesh::One_ring_neighbor_query`

## Public Types
typedef unspecified_type | Item
| The reference type to the elements of the input range, e.g., a `const_iterator` of the input range. Must be a model of `Hashable`.

## Public Member Functions
void | operator() (Item query_index, std::vector< Item > &neighbors)
| fills `neighbors` with the `Items` of all items, which are connected to the `Item` query.

## Member Function Documentation

## ◆ operator()()

void NeighborQuery::operator() | ( | Item | query_index,
|  | std::vector< Item > & | neighbors
| ) |  |

fills `neighbors` with the `Items` of all items, which are connected to the `Item` query.

`CGAL::Shape_detection::Region_growing` calls this function each time when a new query item is selected.