|
| | SimplexTree ()=default |
| | Empty tree (indexes no simplices).
|
| |
| | SimplexTree (std::vector< Simplex > simplices, int num_threads=0) |
| | Index a collection of simplices, precomputing each affine-coordinate transform and building the tree over their bounding boxes.
|
| |
| | SimplexTree (const Eigen::Ref< const Eigen::MatrixXd > &vertices, const Eigen::Ref< const Eigen::MatrixXi > &cells, int num_threads=0) |
| | Mesh convenience: vertices (dim x num_vertices), cells (K x num_cells) of vertex indices; one simplex per cell column.
|
| |
| int | size () const |
| | Number of indexed simplices.
|
| |
| int | dim () const |
| | Spatial dimension of the indexed simplices.
|
| |
| const Simplex & | object (int ii) const |
| | The ii-th indexed simplex.
|
| |
| const std::vector< Simplex > & | objects () const |
| | All indexed simplices, in index order.
|
| |
| const AABBTree & | tree () const |
| | The underlying AABB tree over the elements' bounding boxes.
|
| |
| Eigen::VectorXd | affine_coordinates (int ii, const Eigen::Ref< const Eigen::VectorXd > &p) const |
| | Affine (barycentric) coordinates of p with respect to element ii.
|
| |
| std::vector< int > | collisions (const Eigen::Ref< const Eigen::VectorXd > &p) const |
| | Indices of the simplices containing the query point.
|
| |
| int | first_collision (const Eigen::Ref< const Eigen::VectorXd > &p) const |
| | Index of one element containing p, or -1 (early-exit traversal).
|
| |
| std::vector< int > | collisions (const Box &q) const |
| | Indices of the simplices intersecting the query box.
|
| |
| std::vector< int > | collisions (const Simplex &q) const |
| | Indices of the simplices intersecting the query simplex.
|
| |
| std::vector< int > | collisions (const Ball &q) const |
| | Indices of the simplices intersecting the query ball.
|
| |
| std::vector< int > | collisions (const Ellipsoid &q, double tau) const |
| | Indices of the simplices intersecting the query ellipsoid at scale tau.
|
| |
| std::vector< int > | collisions (const Segment &q) const |
| | Indices of the simplices intersecting the query segment.
|
| |
| std::vector< int > | collisions (const Halfspace &q) const |
| | Indices of the simplices intersecting the query halfspace.
|
| |
| std::vector< std::pair< int, int > > | self_collision_pairs () const |
| | Every intersecting pair within the family of simplices (the overlap graph).
|
| |
Spatial index over a collection of simplices (e.g. a mesh).