Skip to content

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

using uipc::geometry::BVH::AABB =  Eigen::AlignedBox<Float, 3>;

Public Functions Documentation

function BVH

uipc::geometry::BVH::BVH () 

function build

Build the BVH tree from a list of AABBs.

void uipc::geometry::BVH::build (
    span< const AABB > aabbs
) 

Parameters:

  • aabbs AABBs

function clear

void uipc::geometry::BVH::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 AABBs
  • QF 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

uipc::geometry::BVH::~BVH () 


The documentation for this class was generated from the following file include/uipc/geometry/utils/bvh.h