Data structures specialized to classify clusters.
|
template<typename ItemRange , typename ItemMap , typename IndexMap > |
std::size_t | CGAL::Classification::create_clusters_from_indices (const ItemRange &range, ItemMap item_map, IndexMap index_map, std::vector< Cluster< ItemRange, ItemMap > > &clusters) |
| Given a set of cluster indices, segments the input range into Cluster objects.
|
|
◆ create_clusters_from_indices()
template<typename ItemRange , typename ItemMap , typename IndexMap >
std::size_t CGAL::Classification::create_clusters_from_indices |
( |
const ItemRange & |
range, |
|
|
ItemMap |
item_map, |
|
|
IndexMap |
index_map, |
|
|
std::vector< Cluster< ItemRange, ItemMap > > & |
clusters |
|
) |
| |
#include <CGAL/Classification/Cluster.h>
Given a set of cluster indices, segments the input range
into Cluster
objects.
All items whose index value idx
(accessed through index_map
) is the same are stored in the same cluster at position idx
in the clusters
vector.
- Template Parameters
-
- Parameters
-
range | input range. |
item_map | property map to access the input items. |
index_map | property map that associates the index of an item in the input range to the index of a cluster (-1 if item is not assigned to a cluster). |
clusters | container where generated Cluster objects are stored. |