38 #ifndef COAL_MESH_LOADER_LOADER_H
39 #define COAL_MESH_LOADER_LOADER_H
57 const Vec3s& scale = Vec3s::Ones());
85 Key(
const std::string& f,
const Vec3s& s) : filename(f), scale(s) {}
virtual ~CachedMeshLoader()
Definition: loader.h:75
CachedMeshLoader(const NODE_TYPE &bvType=BV_OBBRSS)
Definition: loader.h:77
std::map< Key, Value > Cache_t
Definition: loader.h:93
virtual BVHModelPtr_t load(const std::string &filename, const Vec3s &scale)
const Cache_t & cache() const
Definition: loader.h:95
virtual ~MeshLoader()
Definition: loader.h:54
virtual CollisionGeometryPtr_t loadOctree(const std::string &filename)
virtual BVHModelPtr_t load(const std::string &filename, const Vec3s &scale=Vec3s::Ones())
MeshLoader(const NODE_TYPE &bvType=BV_OBBRSS)
Definition: loader.h:63
#define COAL_DLLAPI
Definition: config.hh:88
@ BV_OBBRSS
Definition: collision_object.h:70
Main namespace.
Definition: broadphase_bruteforce.h:44
NODE_TYPE
traversal node type: bounding volume (AABB, OBB, RSS, kIOS, OBBRSS, KDOP16, KDOP18,...
Definition: collision_object.h:64
shared_ptr< CollisionGeometry > CollisionGeometryPtr_t
Definition: fwd.hh:134
Eigen::Matrix< Scalar, 3, 1 > Vec3s
Definition: data_types.h:70
shared_ptr< BVHModelBase > BVHModelPtr_t
Definition: fwd.hh:141
Vec3s scale
Definition: loader.h:83
Key(const std::string &f, const Vec3s &s)
Definition: loader.h:85
bool operator<(const CachedMeshLoader::Key &b) const
std::string filename
Definition: loader.h:82
std::time_t mtime
Definition: loader.h:91
BVHModelPtr_t model
Definition: loader.h:90