Go to the documentation of this file.
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
Eigen::Matrix< FCL_REAL, 3, 1 > Vec3f
void meshFromAssimpScene(const fcl::Vec3f &scale, const aiScene *scene, const shared_ptr< BVHModel< BoundingVolume > > &mesh)
Convert an assimp scene to a mesh.
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
std::vector< fcl::Triangle > triangles_
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::Vec3f > vertices_
void load(Archive &ar, hpp::fcl::BVSplitter< BV > &splitter_, const unsigned int)
#define HPP_FCL_THROW_PRETTY(message, exception)
A class describing the bounding hierarchy of a mesh model or a point cloud model (which is viewed as ...
void load(const std::string &resource_path)
hpp-fcl
Author(s):
autogenerated on Fri Aug 2 2024 02:45:12