Go to the documentation of this file.
38 #ifndef COAL_MESH_LOADER_ASSIMP_H
39 #define COAL_MESH_LOADER_ASSIMP_H
42 #include "coal/config.hh"
64 void load(
const std::string& resource_path);
88 template <
class BoundingVolume>
94 int res = mesh->beginModel();
100 buildMesh(scale, scene, (
unsigned)mesh->num_vertices, tv);
115 template <
class BoundingVolume>
117 const std::string& resource_path,
const coal::Vec3s& scale,
120 scene.
load(resource_path);
127 #endif // COAL_MESH_LOADER_ASSIMP_H
void load(Archive &ar, coal::BVSplitter< BV > &splitter_, const unsigned int)
Eigen::Matrix< CoalScalar, 3, 1 > Vec3s
std::vector< coal::Vec3s > vertices_
void loadPolyhedronFromResource(const std::string &resource_path, const coal::Vec3s &scale, const shared_ptr< BVHModel< BoundingVolume > > &polyhedron)
Read a mesh file and convert it to a polyhedral mesh.
std::vector< coal::Triangle > triangles_
#define COAL_THROW_PRETTY(message, exception)
void meshFromAssimpScene(const coal::Vec3s &scale, const aiScene *scene, const shared_ptr< BVHModel< BoundingVolume > > &mesh)
Convert an assimp scene to a mesh.
Assimp::Importer * importer
A class describing the bounding hierarchy of a mesh model or a point cloud model (which is viewed as ...
COAL_DLLAPI void buildMesh(const coal::Vec3s &scale, const aiScene *scene, unsigned vertices_offset, TriangleAndVertices &tv)
Recursive procedure for building a mesh.
void load(const std::string &resource_path)
hpp-fcl
Author(s):
autogenerated on Sat Nov 23 2024 03:44:57