coal  3.0.1
Coal, The Collision Detection Library. Previously known as HPP-FCL, fork of FCL -- The Flexible Collision Library
coal::BVFitterTpl< BV > Class Template Referenceabstract

The class for the default algorithm fitting a bounding volume to a set of points. More...

#include <coal/internal/BV_fitter.h>

Inheritance diagram for coal::BVFitterTpl< BV >:
Collaboration diagram for coal::BVFitterTpl< BV >:

Public Member Functions

virtual ~BVFitterTpl ()
 default deconstructor More...
 
void set (Vec3s *vertices_, Triangle *tri_indices_, BVHModelType type_)
 Prepare the geometry primitive data for fitting. More...
 
void set (Vec3s *vertices_, Vec3s *prev_vertices_, Triangle *tri_indices_, BVHModelType type_)
 Prepare the geometry primitive data for fitting, for deformable mesh. More...
 
virtual BV fit (unsigned int *primitive_indices, unsigned int num_primitives)=0
 Compute the fitting BV. More...
 
void clear ()
 Clear the geometry primitive data. More...
 

Protected Attributes

Vec3svertices
 
Vec3sprev_vertices
 
Triangletri_indices
 
BVHModelType type
 

Detailed Description

template<typename BV>
class coal::BVFitterTpl< BV >

The class for the default algorithm fitting a bounding volume to a set of points.

Constructor & Destructor Documentation

◆ ~BVFitterTpl()

template<typename BV >
virtual coal::BVFitterTpl< BV >::~BVFitterTpl ( )
inlinevirtual

default deconstructor

Member Function Documentation

◆ clear()

template<typename BV >
void coal::BVFitterTpl< BV >::clear ( )
inline

Clear the geometry primitive data.

◆ fit()

template<typename BV >
virtual BV coal::BVFitterTpl< BV >::fit ( unsigned int *  primitive_indices,
unsigned int  num_primitives 
)
pure virtual

◆ set() [1/2]

template<typename BV >
void coal::BVFitterTpl< BV >::set ( Vec3s vertices_,
Triangle tri_indices_,
BVHModelType  type_ 
)
inline

Prepare the geometry primitive data for fitting.

◆ set() [2/2]

template<typename BV >
void coal::BVFitterTpl< BV >::set ( Vec3s vertices_,
Vec3s prev_vertices_,
Triangle tri_indices_,
BVHModelType  type_ 
)
inline

Prepare the geometry primitive data for fitting, for deformable mesh.

Member Data Documentation

◆ prev_vertices

template<typename BV >
Vec3s* coal::BVFitterTpl< BV >::prev_vertices
protected

◆ tri_indices

template<typename BV >
Triangle* coal::BVFitterTpl< BV >::tri_indices
protected

◆ type

template<typename BV >
BVHModelType coal::BVFitterTpl< BV >::type
protected

◆ vertices

template<typename BV >
Vec3s* coal::BVFitterTpl< BV >::vertices
protected

The documentation for this class was generated from the following file: