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.
|
|
|
|
|
|
|
|
| |||
Constructor initializing the class to base and setting the point property map of the class to ppmap.
|
|
| Returns the point property map. |
Search_traits_adapter<Key,PointPropertyMap,BaseTraits>