|
CGAL 5.0 - K Discrete Oriented Polytope Tree (K-DOP Tree)
|
#include <Concepts/KDOPTree.h>
The concept 'KDOPTree' provides functions of a k-dop tree, including building up the tree, traversing the tree, intersection computation, etc.
^^
Types | |
| typedef unspecified_type | FT |
| Number type of the geometry kernel. | |
| typedef unspecified_type | Point |
| Type of 3D point. | |
| typedef unspecified_type | Primitive |
| Type of input primitive. | |
| typedef unspecified_type | Primitive_id |
| Identifier for a primitive in the tree. | |
| typedef unspecified_type | size_type |
| Unsigned integer size type. | |
| typedef unspecified_type | Kdop |
| Type of k-dop. | |
| typedef unspecified_type | Direction_type |
| Type of direction. | |
| typedef unspecified_type | Point_and_primitive_id |
| 3D point and primitive id type | |
| typedef unspecified_type | Intersection_and_primitive_id |
An alias to KDOPTraits::Intersection_and_primitive_id<Query> | |
Tree build | |
| unspecified_type | build () |
| Build the k-dop tree with a binary tree and compute k-dops in the process. | |
| unspecified_type | insert (const Primitive &p) |
| Add a primitive to the k-dop tree. | |
| unspecified_type | insert (unspecified_type first, unspeficified_type beyond) |
| Add a sequence of primitives to the k-dop tree. | |
| unspecified_type | set_kdop_directions (const unspecified_type &directions) |
| Set user-defined directions. | |
Intersection tests | |
| unspecified_type | do_intersect (const unspecified_type &query) |
| Check if a query intersects the k-dop tree of the primitives. | |
| unspecified_type | num_of_intersected_primitives (const unspecified_type &query) |
| Return the number of intersected primitives by the query. | |
| unspecified_type | all_intersected_primitives (const unspecified_type &query, unspecified_type out) |
| Return all intersected primitives by the query. | |
| unspecified_type | any_intersected_primitive (const unspecified_type &query) |
| Return the id of the intersected primitive which is encountered first in the tree traversal. More... | |
| unspecified_type | first_intersected_primitive (const unspecified_type &query) |
| Return the id of the first intersected primitive closest to the source point of the ray query. | |
Intersections | |
| unspecified_type | all_intersections (const unspecified_type &query, unspecified_type out) |
| Return the list of all intersections by the query. | |
| unspecified_type | any_intersection (const unspecified_type &query) |
| Return the intersection encountered first in the tree traversal. | |
| unspecified_type | first_intersection (const unspecified_type &query, const unspecified_type &skip) |
| Return the first intersection and primitive id closest to the source point of the ray query. More... | |
Distance queries | |
| unspecified_type | closest_point (const unspecified_type &query) |
| Return the point in all input primitives closest to the query. | |
| unspecified_type | squared_distance (const unspecified_type &query) |
| Return the squared distance between the query point and the closest point. | |
| unspecified_type | closest_point_and_primitive (const unspecified_type &query) |
| Return the point and the primitive id closest to the query. | |
| unspecified_type KDOPTree::any_intersected_primitive | ( | const unspecified_type & | query | ) |
Return the id of the intersected primitive which is encountered first in the tree traversal.
| unspecified_type KDOPTree::first_intersection | ( | const unspecified_type & | query, |
| const unspecified_type & | skip | ||
| ) |
Return the first intersection and primitive id closest to the source point of the ray query.