coal 3.0.2
Coal, The Collision Detection Library. Previously known as HPP-FCL, fork of FCL -- The Flexible Collision Library
Loading...
Searching...
No Matches
coal::BVFitterTpl< BV > Class Template Referenceabstract

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::BVFitterTpl< BV >:
coal::BVFitter< BV >

Public Member Functions

virtual ~BVFitterTpl ()
 default deconstructor
void set (Vec3s *vertices_, Triangle *tri_indices_, BVHModelType type_)
 Prepare the geometry primitive data for fitting.
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.
void clear ()
 Clear the geometry primitive data.

Protected Attributes

Vec3svertices
Vec3sprev_vertices
Triangletri_indices
BVHModelType type

Detailed Description

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

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

Constructor & Destructor Documentation

◆ ~BVFitterTpl()

template<typename BV>
virtual coal::BVFitterTpl< BV >::~BVFitterTpl()
inlinevirtual

default deconstructor

Member Function Documentation

◆ clear()

template<typename BV>
void coal::BVFitterTpl< BV >::clear()
inline

Clear the geometry primitive data.

◆ fit()

template<typename BV>
virtual BV coal::BVFitterTpl< BV >::fit(unsigned int *primitive_indices,
unsigned intnum_primitives )
pure virtual

◆ set() [1/2]

template<typename BV>
void coal::BVFitterTpl< BV >::set(Vec3s *vertices_,
Triangle *tri_indices_,
BVHModelTypetype_ )
inline

Prepare the geometry primitive data for fitting.

◆ set() [2/2]

template<typename BV>
void coal::BVFitterTpl< BV >::set(Vec3s *vertices_,
Vec3s *prev_vertices_,
Triangle *tri_indices_,
BVHModelTypetype_ )
inline

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

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