hpp-fcl
2.4.1
HPP fork of FCL -- The Flexible Collision Library
|
Go to the documentation of this file.
38 #ifndef HPP_FCL_MESH_LOADER_ASSIMP_H
39 #define HPP_FCL_MESH_LOADER_ASSIMP_H
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
#define HPP_FCL_DLLAPI
Definition: config.hh:88
Eigen::Matrix< FCL_REAL, 3, 1 > Vec3f
Definition: data_types.h:66
void meshFromAssimpScene(const fcl::Vec3f &scale, const aiScene *scene, const shared_ptr< BVHModel< BoundingVolume > > &mesh)
Convert an assimp scene to a mesh.
Definition: assimp.h:91
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.
Definition: assimp.h:118
Assimp::Importer * importer
Definition: assimp.h:67
aiScene const * scene
Definition: assimp.h:68
@ BVH_OK
Definition: BVH_internal.h:65
std::vector< fcl::Triangle > triangles_
Definition: assimp.h:58
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_
Definition: assimp.h:57
void load(Archive &ar, hpp::fcl::BVSplitter< BV > &splitter_, const unsigned int)
Definition: BV_splitter.h:44
Main namespace.
Definition: broadphase_bruteforce.h:44
A class describing the bounding hierarchy of a mesh model or a point cloud model (which is viewed as ...
Definition: BVH_model.h:273
void load(const std::string &resource_path)
#define HPP_FCL_THROW_PRETTY(message, exception)
Definition: fwd.hh:57