Class uipc::geometry::BVH
ClassList > uipc > geometry > BVH
Public Types
Type | Name |
---|---|
typedef Eigen::AlignedBox< Float, 3 > | AABB |
Public Functions
Type | Name |
---|---|
BVH () |
|
void | build (span< const AABB > aabbs) Build the BVH tree from a list of AABBs. |
void | clear () Clear the BVH tree. |
void | query (span< const AABB > aabbs, std::function< void(IndexT, IndexT)> && QF) const Query the BVH tree with a list of AABBs. |
~BVH () |
Public Types Documentation
typedef AABB
Public Functions Documentation
function BVH
function build
Build the BVH tree from a list of AABBs.
Parameters:
aabbs
AABBs
function clear
function query
Query the BVH tree with a list of AABBs.
void uipc::geometry::BVH::query (
span< const AABB > aabbs,
std::function< void(IndexT, IndexT)> && QF
) const
Parameters:
aabbs
AABBsQF
f:void(IndexT, IndexT), where the two indices are the indices of the two AABBs that intersect, the first index is from the input list, and the second index is from the BVH tree's AABBs.
function ~BVH
The documentation for this class was generated from the following file include/uipc/geometry/utils/bvh.h