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

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::BVFitter< BV >:
Collaboration diagram for coal::BVFitter< BV >:

Public Member Functions

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...
 
- Public Member Functions inherited from coal::BVFitterTpl< BV >
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...
 

Protected Attributes

Vec3sprev_vertices
 
Triangletri_indices
 
BVHModelType type
 
Vec3svertices
 
- Protected Attributes inherited from coal::BVFitterTpl< BV >
Vec3svertices
 
Vec3sprev_vertices
 
Triangletri_indices
 
BVHModelType type
 

Detailed Description

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

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

Member Function Documentation

◆ fit()

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 >.

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 files: