Go to the documentation of this file.
   38 #ifndef COAL_BVH_UTILITY_H 
   39 #define COAL_BVH_UTILITY_H 
   46 template <
typename BV>
 
   47 COAL_DLLAPI BVHModel<BV>* 
BVHExtract(
const BVHModel<BV>& model,
 
   48                                      const Transform3s& pose, 
const AABB& aabb);
 
   51 COAL_DLLAPI BVHModel<OBB>* 
BVHExtract(
const BVHModel<OBB>& model,
 
   52                                       const Transform3s& pose,
 
   55 COAL_DLLAPI BVHModel<AABB>* 
BVHExtract(
const BVHModel<AABB>& model,
 
   56                                        const Transform3s& pose,
 
   59 COAL_DLLAPI BVHModel<RSS>* 
BVHExtract(
const BVHModel<RSS>& model,
 
   60                                       const Transform3s& pose,
 
   63 COAL_DLLAPI BVHModel<kIOS>* 
BVHExtract(
const BVHModel<kIOS>& model,
 
   64                                        const Transform3s& pose,
 
   67 COAL_DLLAPI BVHModel<OBBRSS>* 
BVHExtract(
const BVHModel<OBBRSS>& model,
 
   68                                          const Transform3s& pose,
 
   71 COAL_DLLAPI BVHModel<KDOP<16> >* 
BVHExtract(
const BVHModel<KDOP<16> >& model,
 
   72                                             const Transform3s& pose,
 
   75 COAL_DLLAPI BVHModel<KDOP<18> >* 
BVHExtract(
const BVHModel<KDOP<18> >& model,
 
   76                                             const Transform3s& pose,
 
   79 COAL_DLLAPI BVHModel<KDOP<24> >* 
BVHExtract(
const BVHModel<KDOP<24> >& model,
 
   80                                             const Transform3s& pose,
 
   86                                unsigned int* indices, 
unsigned int n,
 
   92     Vec3s* ps, 
Vec3s* ps2, Triangle* ts, 
unsigned int* indices, 
unsigned int n,
 
   98                                     unsigned int* indices, 
unsigned int n,
 
  110                                        unsigned int* indices, 
unsigned int n,
 
  
Eigen::Matrix< CoalScalar, 3, 1 > Vec3s
COAL_DLLAPI void circumCircleComputation(const Vec3s &a, const Vec3s &b, const Vec3s &c, Vec3s ¢er, CoalScalar &radius)
Compute the center and radius for a triangle's circumcircle.
COAL_DLLAPI void getExtentAndCenter(Vec3s *ps, Vec3s *ps2, Triangle *ts, unsigned int *indices, unsigned int n, Matrix3s &axes, Vec3s ¢er, Vec3s &extent)
Compute the bounding volume extent and center for a set or subset of points, given the BV axises.
COAL_DLLAPI CoalScalar maximumDistance(Vec3s *ps, Vec3s *ps2, Triangle *ts, unsigned int *indices, unsigned int n, const Vec3s &query)
Compute the maximum distance from a given center point to a point cloud.
COAL_DLLAPI BVHModel< BV > * BVHExtract(const BVHModel< BV > &model, const Transform3s &pose, const AABB &aabb)
Extract the part of the BVHModel that is inside an AABB. A triangle in collision with the AABB is con...
COAL_DLLAPI void getRadiusAndOriginAndRectangleSize(Vec3s *ps, Vec3s *ps2, Triangle *ts, unsigned int *indices, unsigned int n, const Matrix3s &axes, Vec3s &origin, CoalScalar l[2], CoalScalar &r)
Compute the RSS bounding volume parameters: radius, rectangle size and the origin,...
Eigen::Matrix< CoalScalar, 3, 3 > Matrix3s
COAL_DLLAPI void getCovariance(Vec3s *ps, Vec3s *ps2, Triangle *ts, unsigned int *indices, unsigned int n, Matrix3s &M)
Compute the covariance matrix for a set or subset of points. if ts = null, then indices refer to poin...
hpp-fcl
Author(s): 
autogenerated on Fri Feb 14 2025 03:45:50