![]() |
A class that uses a point property map to adapt a distance class to work on a key as point type. When using Search_traits_adapter<Key,PointPropertyMap,BaseTraits> in a nearest neighbor search algorithm, this class must be used as distance.
#include <CGAL/Search_traits_adapter.h>
GeneralDistance if Base_distance is a model of GeneralDistance.
OrthogonalDistance if Base_distance is a model of OrthogonalDistance.
| Base_distance::FT | FT; | |
| Key | Point_d; | |
| Base_distance::Query_item | Query_item; | |
| |||
|
Constructor initializing the class to base and setting the point property map of the class to ppmap.
| |||
| PointPropertyMap | d.point_property_map () const | Returns the point property map. |
Search_traits_adapter<Key,PointPropertyMap,BaseTraits>