The class for the default algorithm fitting a bounding volume to a set of points. More...
#include <BV_fitter.h>
Public Member Functions | |
void | clear () |
Clear the geometry primitive data. | |
BV | fit (unsigned int *primitive_indices, int num_primitives) |
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. | |
void | set (Vec3f *vertices_, Triangle *tri_indices_, BVHModelType type_) |
Prepare the geometry primitive data for fitting. | |
void | set (Vec3f *vertices_, Vec3f *prev_vertices_, Triangle *tri_indices_, BVHModelType type_) |
Prepare the geometry primitive data for fitting, for deformable mesh. | |
virtual | ~BVFitter () |
default deconstructor | |
Private Attributes | |
Vec3f * | prev_vertices |
Triangle * | tri_indices |
BVHModelType | type |
Vec3f * | vertices |
The class for the default algorithm fitting a bounding volume to a set of points.
Definition at line 92 of file BV_fitter.h.
virtual fcl::BVFitter< BV >::~BVFitter | ( | ) | [inline, virtual] |
default deconstructor
Definition at line 96 of file BV_fitter.h.
void fcl::BVFitter< BV >::clear | ( | ) | [inline, virtual] |
Clear the geometry primitive data.
Implements fcl::BVFitterBase< BV >.
Definition at line 156 of file BV_fitter.h.
BV fcl::BVFitter< BV >::fit | ( | unsigned int * | primitive_indices, |
int | num_primitives | ||
) | [inline, virtual] |
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 fcl::BVFitterBase< BV >.
Definition at line 118 of file BV_fitter.h.
void fcl::BVFitter< BV >::set | ( | Vec3f * | vertices_, |
Triangle * | tri_indices_, | ||
BVHModelType | type_ | ||
) | [inline, virtual] |
Prepare the geometry primitive data for fitting.
Implements fcl::BVFitterBase< BV >.
Definition at line 99 of file BV_fitter.h.
void fcl::BVFitter< BV >::set | ( | Vec3f * | vertices_, |
Vec3f * | prev_vertices_, | ||
Triangle * | tri_indices_, | ||
BVHModelType | type_ | ||
) | [inline, virtual] |
Prepare the geometry primitive data for fitting, for deformable mesh.
Implements fcl::BVFitterBase< BV >.
Definition at line 108 of file BV_fitter.h.
Vec3f* fcl::BVFitter< BV >::prev_vertices [private] |
Definition at line 167 of file BV_fitter.h.
Triangle* fcl::BVFitter< BV >::tri_indices [private] |
Definition at line 168 of file BV_fitter.h.
BVHModelType fcl::BVFitter< BV >::type [private] |
Definition at line 169 of file BV_fitter.h.
Vec3f* fcl::BVFitter< BV >::vertices [private] |
Definition at line 166 of file BV_fitter.h.