Template Class BVFitterTpl

Inheritance Relationships

Derived Type

Class Documentation

template<typename BV>
class BVFitterTpl

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

Subclassed by coal::BVFitter< BV >

Public Functions

inline virtual ~BVFitterTpl()

default deconstructor

inline void set(Vec3s *vertices_, Triangle *tri_indices_, BVHModelType type_)

Prepare the geometry primitive data for fitting.

inline void set(Vec3s *vertices_, Vec3s *prev_vertices_, Triangle *tri_indices_, BVHModelType type_)

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

virtual BV fit(unsigned int *primitive_indices, unsigned int num_primitives) = 0

Compute the fitting BV.

inline void clear()

Clear the geometry primitive data.

Protected Attributes

Vec3s *vertices
Vec3s *prev_vertices
Triangle *tri_indices
BVHModelType type