Template Function coal::internal::meshFromAssimpScene

Function Documentation

template<class BoundingVolume>
inline void coal::internal::meshFromAssimpScene(const coal::Vec3s &scale, const aiScene *scene, const shared_ptr<BVHModel<BoundingVolume>> &mesh)

Convert an assimp scene to a mesh.

Parameters:
  • scale[in] Scale to apply when reading the ressource

  • scene[in] Pointer to the assimp scene

  • mesh[out] The mesh that must be built