Skip to content

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

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

Public Functions Documentation

function Octree

uipc::geometry::Octree::Octree () 

function build

Build the octree from a list of AABBs.

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

Parameters:

  • aabbs AABBs

function clear

void uipc::geometry::Octree::clear () 

function detect

Detect the self-intersections of the octree.

void uipc::geometry::Octree::detect (
    std::function< void(IndexT, IndexT)> && QF
) const

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 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 octree's AABBs.

function ~Octree

uipc::geometry::Octree::~Octree () 


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