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::internal Namespace Reference

Classes

struct  Loader
struct  memory_footprint_evaluator
struct  memory_footprint_evaluator<::coal::BVHModel< BV > >
struct  TriangleAndVertices

Functions

void updateDistanceLowerBoundFromBV (const CollisionRequest &, CollisionResult &res, const CoalScalar sqrDistLowerBound)
void updateDistanceLowerBoundFromLeaf (const CollisionRequest &, CollisionResult &res, const CoalScalar &distance, const Vec3s &p0, const Vec3s &p1, const Vec3s &normal)
void buildMesh (const coal::Vec3s &scale, const aiScene *scene, unsigned vertices_offset, TriangleAndVertices &tv)
 Recursive procedure for building a mesh.
template<class BoundingVolume>
void meshFromAssimpScene (const coal::Vec3s &scale, const aiScene *scene, const shared_ptr< BVHModel< BoundingVolume > > &mesh)
 Convert an assimp scene to a mesh.

Function Documentation

◆ buildMesh()

void coal::internal::buildMesh(const coal::Vec3s &scale,
const aiScene *scene,
unsignedvertices_offset,
TriangleAndVertices &tv )

Recursive procedure for building a mesh.

Parameters
[in]scaleScale to apply when reading the ressource
[in]scenePointer to the assimp scene
[in]vertices_offsetCurrent number of vertices in the model
tvTriangles and Vertices of the mesh submodels

◆ meshFromAssimpScene()

template<class BoundingVolume>
void coal::internal::meshFromAssimpScene(const coal::Vec3s &scale,
const aiScene *scene,
const shared_ptr< BVHModel< BoundingVolume > > &mesh )
inline

Convert an assimp scene to a mesh.

Parameters
[in]scaleScale to apply when reading the ressource
[in]scenePointer to the assimp scene
[out]meshThe mesh that must be built

◆ updateDistanceLowerBoundFromBV()

void coal::internal::updateDistanceLowerBoundFromBV(const CollisionRequest &,
CollisionResult &res,
const CoalScalarsqrDistLowerBound )
inline

◆ updateDistanceLowerBoundFromLeaf()

void coal::internal::updateDistanceLowerBoundFromLeaf(const CollisionRequest &,
CollisionResult &res,
const CoalScalar &distance,
const Vec3s &p0,
const Vec3s &p1,
const Vec3s &normal )
inline