Classes | Functions

OpenTissue::obb_tree Namespace Reference

Classes

class  CollisionPolicy
class  CollisionQuery
class  TopDownPolicy
class  OBBTreeTypes

Functions

template<typename obb_tree_types >
void init (typename obb_tree_types::mesh_type &mesh, typename obb_tree_types::bvh_type &tree, size_t const &degree=2)

Function Documentation

template<typename obb_tree_types >
void OpenTissue::obb_tree::init ( typename obb_tree_types::mesh_type mesh,
typename obb_tree_types::bvh_type &  tree,
size_t const &  degree = 2 
)

Initialize Oriented Bounding Box (OBB) volume hierarchy.

Parameters:
mesh The mesh containing the geometry of the hiearchy.
tree Upon return this argument holds the generated hiearchy.
degree The desired degree of the resulting hierarchy. Legal values are 2, 4, and 8. Default value is 2.