CGAL::AABB_traits<GeomTraits,Primitive>

Definition

The class AABB_traits<GeomTraits,Primitive> is a model of the concept AABBTraits. This traits class handles any type of 3D geometric primitives provided that the proper intersection tests and constructions are implemented. It handles points, rays, lines and segments as query types for intersection detection and computations, and it handles points as query type for distance queries.

Parameters

The template parameter GeomTraits provides the geometric types as well as the intersection tests and computations required. This type must be a model of the concept AABBGeomTraits. The template parameter Primitive provides the type of primitives stored in the AABB tree. This parameter must be a model of the concept AABBPrimitive.

#include <CGAL/AABB_traits.h>

Types

typedef GeomTraits::Point_3 Point_3; Point query type.
typedef GeomTraits::Ray_3 Ray_3; Ray query type.
typedef GeomTraits::Line_3 Line_3; Line query type.
typedef GeomTraits::Segment_3 Segment_3; Segment query type.
AABB_traits<GeomTraits,Primitive>::size_type
Unsigned integral type.


AABB_traits<GeomTraits,Primitive> traits ( GeomTraits gt = GeomTraits());
Default constructor.

See Also

AABBTraits,
AABB_tree<AT>,
AABBPrimitive