CGAL 6.0 - Fast Intersection and Distance Computation (AABB Tree)
Loading...
Searching...
No Matches
CGAL::AABB_segment_primitive_2< GeomTraits, Iterator, CacheDatum > Class Template Reference

#include <CGAL/AABB_segment_primitive_2.h>

Definition

template<class GeomTraits, class Iterator, class CacheDatum = Tag_false>
class CGAL::AABB_segment_primitive_2< GeomTraits, Iterator, CacheDatum >

Primitive type that uses as identifier an iterator with a 2D segment as value_type.

The iterator from which the primitive is built should not be invalided while the AABB tree holding the primitive is in use.

Is model of
AABBPrimitive
Template Parameters
GeomTraitsis a traits class providing the nested type Point_2 and Segment_2. It also provides the functor Construct_source_2 that has an operator taking a Segment_2 and returning its source as a type convertible to Point_2.
Iteratoris a model of ForwardIterator with its value type convertible to GeomTraits::Segment_2
CacheDatumis either CGAL::Tag_true or CGAL::Tag_false. In the former case, the datum is stored in the primitive, while in the latter it is constructed on the fly to reduce the memory footprint. The default is CGAL::Tag_false (datum is not stored).
See also
AABBPrimitive
AABB_primitive<Id,ObjectPropertyMap,PointPropertyMapPolyhedron,ExternalPropertyMaps,CacheDatum>
AABB_segment_primitive_3<GeomTraits,Iterator,CacheDatum>
AABB_triangle_primitive_2<GeomTraits,Iterator,CacheDatum>
Examples
AABB_tree/AABB_segment_2_example.cpp.

Public Member Functions

 AABB_segment_primitive_2 (Iterator it)
 constructor from an iterator