38 #ifndef HPP_FCL_BV_FITTER_H 39 #define HPP_FCL_BV_FITTER_H 56 for(
int i = 0; i < n; ++i)
104 virtual BV
fit(
unsigned int* primitive_indices,
int num_primitives) = 0;
124 template<
typename BV>
130 BV
fit(
unsigned int* primitive_indices,
int num_primitives)
136 for(
int i = 0; i < num_primitives; ++i)
153 for(
int i = 0; i < num_primitives; ++i)
155 bv +=
vertices[primitive_indices[i]];
181 OBB fit(
unsigned int* primitive_indices,
int num_primitives);
191 RSS fit(
unsigned int* primitive_indices,
int num_primitives);
201 kIOS fit(
unsigned int* primitive_indices,
int num_primitives);
211 OBBRSS fit(
unsigned int* primitive_indices,
int num_primitives);
221 AABB fit(
unsigned int* primitive_indices,
int num_primitives);
Vec3f * vertices
Definition: BV_fitter.h:117
void fit< RSS >(Vec3f *ps, int n, RSS &bv)
void fit< AABB >(Vec3f *ps, int n, AABB &bv)
Main namespace.
Definition: AABB.h:43
void fit< OBB >(Vec3f *ps, int n, OBB &bv)
Definition: BVH_internal.h:79
Triangle * tri_indices
Definition: BV_fitter.h:119
Oriented bounding box class.
Definition: OBB.h:54
The class for the default algorithm fitting a bounding volume to a set of points. ...
Definition: BV_fitter.h:79
void clear()
Clear the geometry primitive data.
Definition: BV_fitter.h:107
A class describing the kIOS collision structure, which is a set of spheres.
Definition: kIOS.h:55
virtual ~BVFitterTpl()
default deconstructor
Definition: BV_fitter.h:83
unknown model type
Definition: BVH_internal.h:80
void fit(Vec3f *ps, int n, BV &bv)
Compute a bounding volume that fits a set of n points.
Definition: BV_fitter.h:54
void fit< OBBRSS >(Vec3f *ps, int n, OBBRSS &bv)
BVHModelType
BVH model type.
Definition: BVH_internal.h:77
A class describing the AABB collision structure, which is a box in 3D space determined by two diagona...
Definition: AABB.h:55
void fit< kIOS >(Vec3f *ps, int n, kIOS &bv)
Triangle with 3 indices for points.
Definition: data_types.h:77
virtual BV fit(unsigned int *primitive_indices, int num_primitives)=0
Compute the fitting BV.
Vec3f * prev_vertices
Definition: BV_fitter.h:118
The class for the default algorithm fitting a bounding volume to a set of points. ...
Definition: BVH_model.h:58
Eigen::Matrix< FCL_REAL, 3, 1 > Vec3f
Definition: data_types.h:73
triangle model
Definition: BVH_internal.h:81
BVHModelType type
Definition: BV_fitter.h:120
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...
Definition: BV_fitter.h:130