Public Member Functions | List of all members
hpp::fcl::BVFitter< BV > Class Template Reference

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

#include <hpp/fcl/BVH/BV_fitter.h>

Inheritance diagram for hpp::fcl::BVFitter< BV >:
[legend]
Collaboration diagram for hpp::fcl::BVFitter< BV >:
[legend]

Public Member Functions

virtual ~BVFitter ()
 default deconstructor More...
 
void set (Vec3f *vertices_, Triangle *tri_indices_, BVHModelType type_)
 Prepare the geometry primitive data for fitting. More...
 
void set (Vec3f *vertices_, Vec3f *prev_vertices_, Triangle *tri_indices_, BVHModelType type_)
 Prepare the geometry primitive data for fitting, for deformable mesh. More...
 
BV fit (unsigned int *primitive_indices, int num_primitives)
 Compute a bounding volume that fits a set of primitives (points or triangles). More...
 
void clear ()
 Clear the geometry primitive data. More...
 

Detailed Description

template<typename BV>
class hpp::fcl::BVFitter< BV >

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

Constructor & Destructor Documentation

template<typename BV >
virtual hpp::fcl::BVFitter< BV >::~BVFitter ( )
inlinevirtual

default deconstructor

Member Function Documentation

template<typename BV >
void hpp::fcl::BVFitter< BV >::clear ( )
inlinevirtual

Clear the geometry primitive data.

Implements hpp::fcl::BVFitterBase< BV >.

References hpp::fcl::BVH_MODEL_UNKNOWN.

template<typename BV >
BV hpp::fcl::BVFitter< BV >::fit ( unsigned int *  primitive_indices,
int  num_primitives 
)
inlinevirtual

Compute a bounding volume that fits a set of primitives (points or triangles).

The primitive data was set by set function and primitive_indices is the primitive index relative to the data

The primitive is triangle

can fitting both current and previous frame

The primitive is point

can fitting both current and previous frame

Implements hpp::fcl::BVFitterBase< BV >.

References hpp::fcl::BVH_MODEL_POINTCLOUD, and hpp::fcl::BVH_MODEL_TRIANGLES.

template<typename BV >
void hpp::fcl::BVFitter< BV >::set ( Vec3f vertices_,
Triangle tri_indices_,
BVHModelType  type_ 
)
inlinevirtual

Prepare the geometry primitive data for fitting.

Implements hpp::fcl::BVFitterBase< BV >.

template<typename BV >
void hpp::fcl::BVFitter< BV >::set ( Vec3f vertices_,
Vec3f prev_vertices_,
Triangle tri_indices_,
BVHModelType  type_ 
)
inlinevirtual

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

Implements hpp::fcl::BVFitterBase< BV >.