Template Function coal::loadPolyhedronFromResource

Function Documentation

template<class BoundingVolume>
inline void coal::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.

Parameters:
  • resource_path[in] Path to the ressource mesh file to be read

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

  • polyhedron[out] The resulted polyhedron