38 #ifndef HPP_FCL_MESH_LOADER_ASSIMP_H 39 #define HPP_FCL_MESH_LOADER_ASSIMP_H 42 #include <hpp/fcl/config.hh> 65 void load(
const std::string& resource_path);
80 unsigned vertices_offset,
90 template <
class BoundingVolume>
96 int res = mesh->beginModel();
102 buildMesh(scale, scene, (
unsigned)mesh->num_vertices, tv);
117 template <
class BoundingVolume>
119 const std::string& resource_path,
const fcl::Vec3f& scale,
122 scene.
load(resource_path);
130 #endif // HPP_FCL_MESH_LOADER_ASSIMP_H
HPP_FCL_DLLAPI void buildMesh(const fcl::Vec3f &scale, const aiScene *scene, unsigned vertices_offset, TriangleAndVertices &tv)
Recursive procedure for building a mesh.
std::vector< fcl::Triangle > triangles_
void meshFromAssimpScene(const fcl::Vec3f &scale, const aiScene *scene, const shared_ptr< BVHModel< BoundingVolume > > &mesh)
Convert an assimp scene to a mesh.
A class describing the bounding hierarchy of a mesh model or a point cloud model (which is viewed as ...
std::vector< fcl::Vec3f > vertices_
Eigen::Matrix< FCL_REAL, 3, 1 > Vec3f
void load(Archive &ar, hpp::fcl::BVSplitter< BV > &splitter_, const unsigned int)
void load(const std::string &resource_path)
void loadPolyhedronFromResource(const std::string &resource_path, const fcl::Vec3f &scale, const shared_ptr< BVHModel< BoundingVolume > > &polyhedron)
Read a mesh file and convert it to a polyhedral mesh.
Assimp::Importer * importer
#define HPP_FCL_THROW_PRETTY(message, exception)