Class uipc::geometry::Octree
ClassList > uipc > geometry > Octree
Public Types
Type | Name |
---|---|
typedef Eigen::AlignedBox< Float, 3 > | AABB |
Public Functions
Type | Name |
---|---|
Octree () |
|
void | build (span< const AABB > aabbs) Build the octree from a list of AABBs. |
void | clear () Clear the octree. |
void | detect (std::function< void(IndexT, IndexT)> && QF) const Detect the self-intersections of the octree. |
void | query (span< const AABB > aabbs, std::function< void(IndexT, IndexT)> && QF) const Query the octree with a list of AABBs. |
~Octree () |
Public Types Documentation
typedef AABB
Public Functions Documentation
function Octree
function build
Build the octree from a list of AABBs.
Parameters:
aabbs
AABBs
function clear
function detect
Detect the self-intersections of the octree.
Parameters:
QF
f:void(IndexT, IndexT), where the two indices are the indices of the two AABBs that intersect, the two indices are from the octree's AABBs.
function query
Query the octree with a list of AABBs.
void uipc::geometry::Octree::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 octree's AABBs.
function ~Octree
The documentation for this class was generated from the following file include/uipc/geometry/utils/octree.h