The class for the default algorithm fitting a bounding volume to a set of points.
More...
|
BV | fit (unsigned int *primitive_indices, unsigned 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. More...
|
|
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...
|
|
void | clear () |
| Clear the geometry primitive data. More...
|
|
template<typename BV>
class coal::BVFitter< BV >
The class for the default algorithm fitting a bounding volume to a set of points.
template<typename BV >
BV coal::BVFitter< BV >::fit |
( |
unsigned int * |
primitive_indices, |
|
|
unsigned 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 coal::BVFitterTpl< BV >.