Public Types | Public Member Functions | Private Attributes | Friends | List of all members
fcl::detail::BVFitter< BV > Class Template Reference

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

#include <BV_fitter.h>

Inheritance diagram for fcl::detail::BVFitter< BV >:
Inheritance graph
[legend]

Public Types

using S = typename BVFitterBase< BV >::S
 
- Public Types inherited from fcl::detail::BVFitterBase< BV >
using S = typename BV::S
 

Public Member Functions

void clear ()
 Clear the geometry primitive data. More...
 
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. More...
 
void set (Vector3< S > *vertices_, Triangle *tri_indices_, BVHModelType type_)
 Prepare the geometry primitive data for fitting. More...
 
void set (Vector3< S > *vertices_, Vector3< S > *prev_vertices_, Triangle *tri_indices_, BVHModelType type_)
 Prepare the geometry primitive data for fitting, for deformable mesh. More...
 
virtual ~BVFitter ()
 default deconstructor More...
 
- Public Member Functions inherited from fcl::detail::BVFitterBase< BV >
virtual void set (Vector3< S > *vertices_, Triangle *tri_indices_, BVHModelType type_)=0
 Set the primitives to be processed by the fitter. More...
 
virtual void set (Vector3< S > *vertices_, Vector3< S > *prev_vertices_, Triangle *tri_indices_, BVHModelType type_)=0
 Set the primitives to be processed by the fitter, for deformable mesh. More...
 

Private Attributes

Vector3< S > * prev_vertices
 
Triangletri_indices
 
BVHModelType type
 
Vector3< S > * vertices
 

Friends

template<typename , typename >
struct FitImpl
 
template<typename , typename >
struct SetImpl
 

Detailed Description

template<typename BV>
class fcl::detail::BVFitter< BV >

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

Definition at line 56 of file BV_fitter.h.

Member Typedef Documentation

◆ S

template<typename BV >
using fcl::detail::BVFitter< BV >::S = typename BVFitterBase<BV>::S

Definition at line 60 of file BV_fitter.h.

Constructor & Destructor Documentation

◆ ~BVFitter()

template<typename BV >
fcl::detail::BVFitter< BV >::~BVFitter
virtual

default deconstructor

Definition at line 51 of file BV_fitter-inl.h.

Member Function Documentation

◆ clear()

template<typename BV >
void fcl::detail::BVFitter< BV >::clear
virtual

Clear the geometry primitive data.

Implements fcl::detail::BVFitterBase< BV >.

Definition at line 96 of file BV_fitter-inl.h.

◆ fit()

template<typename BV >
BV fcl::detail::BVFitter< BV >::fit ( unsigned int *  primitive_indices,
int  num_primitives 
)
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.

Implements fcl::detail::BVFitterBase< BV >.

Definition at line 88 of file BV_fitter-inl.h.

◆ set() [1/2]

template<typename BV >
void fcl::detail::BVFitter< BV >::set ( Vector3< S > *  vertices_,
Triangle tri_indices_,
BVHModelType  type_ 
)

Prepare the geometry primitive data for fitting.

◆ set() [2/2]

template<typename BV >
void fcl::detail::BVFitter< BV >::set ( Vector3< S > *  vertices_,
Vector3< S > *  prev_vertices_,
Triangle tri_indices_,
BVHModelType  type_ 
)

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

Friends And Related Function Documentation

◆ FitImpl

template<typename BV >
template<typename , typename >
friend struct FitImpl
friend

Definition at line 94 of file BV_fitter.h.

◆ SetImpl

template<typename BV >
template<typename , typename >
friend struct SetImpl
friend

Definition at line 91 of file BV_fitter.h.

Member Data Documentation

◆ prev_vertices

template<typename BV >
Vector3<S>* fcl::detail::BVFitter< BV >::prev_vertices
private

Definition at line 86 of file BV_fitter.h.

◆ tri_indices

template<typename BV >
Triangle* fcl::detail::BVFitter< BV >::tri_indices
private

Definition at line 87 of file BV_fitter.h.

◆ type

template<typename BV >
BVHModelType fcl::detail::BVFitter< BV >::type
private

Definition at line 88 of file BV_fitter.h.

◆ vertices

template<typename BV >
Vector3<S>* fcl::detail::BVFitter< BV >::vertices
private

Definition at line 85 of file BV_fitter.h.


The documentation for this class was generated from the following files:


fcl
Author(s):
autogenerated on Fri Apr 2 2021 02:38:02