CGAL 6.1.2 - Shape Detection: CGAL::Shape_detection::Point_to_shape_index_map< Traits > Class Template Reference

CGAL 6.1.2 - Shape Detection

Loading...
Searching...
No Matches
List of all members | Public Types | Public Member Functions | Friends
CGAL::Shape_detection::Point_to_shape_index_map< Traits > Class Template Reference
Reference Manual » Efficient RANSAC » Property Maps

`#include <CGAL/Shape_detection/Efficient_RANSAC/property_map.h>`

## Definition

template<typename Traits>
class CGAL::Shape_detection::Point_to_shape_index_map< Traits >

Property map that associates a point index to its assigned shape found by the `CGAL::Shape_detection::Efficient_RANSAC` algorithm.

## Public Types
typedef std::size_t | key_type
| Index of the point in the random access point range.
typedef int | value_type
| Index of the shape (-1 if the point is not assigned to any shape).
typedef value_type | reference
typedef boost::readable_property_map_tag | category

## Public Member Functions
template<typename PointRange , typename ShapeRange >
| Point_to_shape_index_map (const PointRange &points, const ShapeRange &shapes)
| Constructs a property map to map points to their associated shape.

## Friends
value_type | get (const Point_to_shape_index_map &pm, const key_type &k)

## Constructor & Destructor Documentation

## ◆ Point_to_shape_index_map()

template<typename Traits >
template<typename PointRange , typename ShapeRange >

CGAL::Shape_detection::Point_to_shape_index_map< Traits >::Point_to_shape_index_map | ( | const PointRange & | points,
|  | const ShapeRange & | shapes
| ) |  |

Constructs a property map to map points to their associated shape.

Note
  `shapes` must be a range of shapes detected using `points`.

Template Parameters

  ShapeRange | must be an `Iterator_range` with a bidirectional constant iterator type with value type `std::shared_ptr<CGAL::Shape_detection::Shape_base<Traits> >`.