- a tag indicating if the task should be done using one or several threads.
- Type: Either CGAL::Sequential_tag, or CGAL::Parallel_tag, or CGAL::Parallel_if_available_tag
- Default: CGAL::Sequential_tag
- Extra: np1 only
|
CGAL 6.3-beta1 - Fast Intersection and Distance Computation (AABB Tree)
|
Topics | |
| Concepts | |
Classes | |
| class | CGAL::AABB_face_graph_triangle_primitive< FaceGraph, VertexPointPMap, OneFaceGraphPerTree, CacheDatum > |
| Primitive type for a facet of a polyhedral surface. More... | |
| class | CGAL::AABB_halfedge_graph_segment_primitive< HalfedgeGraph, VertexPointPMap, OneHalfedgeGraphPerTree, CacheDatum > |
| Primitive type for an edge of a polyhedral surface. More... | |
| class | CGAL::AABB_indexed_triangle_primitive_2< GeomTraits, IndexIterator, PointRange, CacheDatum, PointMap > |
| Primitive type that uses as identifier an iterator with a range of three indices as value_type. More... | |
| class | CGAL::AABB_indexed_triangle_primitive_3< GeomTraits, PointRange, FaceRange, CacheDatum, PointMap > |
| Primitive type that uses as an identifier an index into a range of triplets of indices. More... | |
| class | CGAL::AABB_polyline_segment_primitive_2< GeomTraits, Iterator, PointRange, CacheDatum, PointMap > |
| Primitive type that uses as identifier an iterator with a 2D point as value_type. More... | |
| struct | CGAL::AABB_primitive< Id, ObjectPropertyMap, PointPropertyMap, ExternalPropertyMaps, CacheDatum > |
| Generic primitive type. More... | |
| class | CGAL::AABB_segment_primitive_2< GeomTraits, Iterator, CacheDatum > |
| Primitive type that uses as identifier an iterator with a 2D segment as value_type. More... | |
| class | CGAL::AABB_segment_primitive_3< GeomTraits, Iterator, CacheDatum > |
| Primitive type that uses as identifier an iterator with a 3D segment as value_type. More... | |
| class | CGAL::AABB_tree< AABBTraits > |
| Static data structure for efficient intersection and distance computations in 2D and 3D. More... | |
| class | CGAL::AABB_traits_2< GeomTraits, AABBPrimitive, BboxMap > |
| This traits class handles any type of 2D geometric primitives provided that the proper intersection tests and constructions are implemented. More... | |
| class | CGAL::AABB_traits_3< GeomTraits, AABBPrimitive, BboxMap > |
| This traits class handles any type of 3D geometric primitives provided that the proper intersection tests and constructions are implemented. More... | |
| class | CGAL::AABB_triangle_primitive_2< GeomTraits, Iterator, CacheDatum > |
| Primitive type that uses as identifier an iterator with a 2D triangle as value_type. More... | |
| class | CGAL::AABB_triangle_primitive_3< GeomTraits, Iterator, CacheDatum > |
| Primitive type that uses as identifier an iterator with a 3D triangle as value_type. More... | |
Typedefs | |
| template<class GeomTraits, class Iterator, class CacheDatum = Tag_false> | |
| using | CGAL::AABB_segment_primitive = AABB_segment_primitive_3<GeomTraits, Iterator, CacheDatum> |
| template alias for backward compatibility | |
| template<typename GeomTraits, typename AABBPrimitive, typename BboxMap = Default> | |
| using | CGAL::AABB_traits = AABB_traits_3<GeomTraits, AABBPrimitive, BboxMap> |
| template alias for backward compatibility | |
| template<class GeomTraits, class Iterator, class CacheDatum = Tag_false> | |
| using | CGAL::AABB_triangle_primitive = AABB_triangle_primitive_3<GeomTraits, Iterator, CacheDatum> |
| template alias for backward compatibility | |
Functions | |
| template<typename AABBTree1, typename AABBTree2, typename NamedParameters1 = parameters::Default_named_parameters, typename NamedParameters2 = parameters::Default_named_parameters> | |
| bool | CGAL::AABB_trees::do_intersect (const AABBTree1 &tree1, const AABBTree2 &tree2, const NamedParameters1 &np1=parameters::default_values(), const NamedParameters2 &np2=parameters::default_values()) |
| tests if two AABB trees intersect, i.e. | |
| template<typename AABBTree1, typename AABBTree2, typename OutputIterator, typename NamedParameters1 = parameters::Default_named_parameters, typename NamedParameters2 = parameters::Default_named_parameters> | |
| OutputIterator | CGAL::AABB_trees::all_pairs_of_intersecting_primitives (const AABBTree1 &tree1, const AABBTree2 &tree2, OutputIterator out, const NamedParameters1 &np1=parameters::default_values(), const NamedParameters2 &np2=parameters::default_values()) |
| computes all pairs of intersecting primitives from two AABB trees. | |
| template<typename Concurrency_tag = Sequential_tag, typename AABBTree, typename OutputIterator> | |
| OutputIterator | CGAL::AABB_trees::all_pairs_of_intersecting_primitives (const AABBTree &tree, OutputIterator out) |
| computes all pairs of primitives of a tree that are intersecting. | |
| OutputIterator CGAL::AABB_trees::all_pairs_of_intersecting_primitives | ( | const AABBTree & | tree, |
| OutputIterator | out ) |
#include <CGAL/AABB_trees/intersection.h>
computes all pairs of primitives of a tree that are intersecting.
The intersection of a primitive with itself is not reported, and each pair of distinct, intersecting primitives is reported only once.
| OutputIterator CGAL::AABB_trees::all_pairs_of_intersecting_primitives | ( | const AABBTree1 & | tree1, |
| const AABBTree2 & | tree2, | ||
| OutputIterator | out, | ||
| const NamedParameters1 & | np1 = parameters::default_values(), | ||
| const NamedParameters2 & | np2 = parameters::default_values() ) |
#include <CGAL/AABB_trees/intersection.h>
computes all pairs of intersecting primitives from two AABB trees.
Both trees are traversed and all pairs of primitives that intersect are collected. Each output element is a pair (id1, id2) where:
Two primitives intersect if their data intersect according to the traits of the tree. Thus, with all documented traits in CGAL, two triangles sharing a vertex are considered to intersect, and similarly for other primitive types and types of intersection.
| AABBTree1 | type of the first AABB tree. |
| AABBTree2 | type of the second AABB tree. |
| OutputIterator | output iterator storing std::pair<AABBTree1::Primitive::Id, AABBTree2::Primitive::Id>. |
| NamedParameters1 | a sequence of Named Parameters |
| NamedParameters2 | a sequence of Named Parameters |
| |
|
| bool CGAL::AABB_trees::do_intersect | ( | const AABBTree1 & | tree1, |
| const AABBTree2 & | tree2, | ||
| const NamedParameters1 & | np1 = parameters::default_values(), | ||
| const NamedParameters2 & | np2 = parameters::default_values() ) |
#include <CGAL/AABB_trees/intersection.h>
tests if two AABB trees intersect, i.e.
if there exists a primitive of tree1 and a primitive of tree2 that intersect.
Two primitives intersect if their data intersect according to the traits of the tree. Thus, with all documented traits in CGAL, two triangles sharing a vertex are considered to intersect, and similarly for other primitive types and types of intersection.
| |
| |
|