![]() |
The concept AABBTraits provides the geometric primitive types and methods for the class AABB_tree<AT>.
AABBTraits::FT | |
Value type of the Squared_distance functor.
| |
AABBTraits::Point_3 | |
Type of a 3D point.
| |
AABBTraits::Primitive | |
Type of primitive.
Must be a model of the concept AABBPrimitive.
| |
AABBTraits::Bounding_box | |
Bounding box type.
| |
AABBTraits::enum Axis { X_AXIS, Y_AXIS, Z_AXIS } |
typedef std::pair<Point_3, Primitive::Id> | ||
Point_and_primitive_id; | ||
typedef std::pair<Object, Primitive::Id> | ||
Object_and_primitive_id; |
AABBTraits::Compare_distance | |
A functor object to compute distance comparisons between the query and the nodes of the tree. Provides the operators:
bool operator()(const Query & query, const Bounding_box& box, const Point & closest); which returns true iff the bounding box is closer to query than closest is, and bool operator()(const Query & query, const Primitive & primitive, const Point & closest); which returns true iff primitive is closer to the query than closest is.
| |
AABBTraits::Closest_point | |
A functor object to compute closest point from the query on a primitive. Provides the operator:
Point_3 operator()(const Query& query, const Primitive& primitive, const Point_3 & closest); which returns the closest point to query, among closest and all points of the primitive.
| |
AABBTraits::Squared_distance | |
A functor object to compute the squared distance between the query and a point. Provides the operator:
FT operator()(const Query& query, const Point_3 & p); which returns the squared distance between query and p.
|