47std::optional<Mesh>
loadStlMesh(
const filesystem::path& filepath);
56std::optional<Mesh>
loadObjMesh(
const filesystem::path& filepath);
69 const std::string& filename,
70 const filesystem::path& urdfDir);
Mesh generateCylinderMesh(float radius, float length, int segments)
Generates a cylinder mesh centered at the origin with the Z axis as its axis.
Mesh generateSphereMesh(float radius, int latSegments, int lonSegments)
Generates a UV sphere mesh centered at the origin.
Mesh generateBoxMesh(float dimX, float dimY, float dimZ)
Generates a box mesh with the given dimensions centered at the origin.
std::optional< filesystem::path > resolveMeshPath(const std::string &filename, const filesystem::path &urdfDir)
Resolves a mesh filename from a URDF visual element to a filesystem path.
std::optional< Mesh > loadStlMesh(const filesystem::path &filepath)
Loads a mesh from an STL file (binary or ASCII).
std::optional< Mesh > loadObjMesh(const filesystem::path &filepath)
Loads a mesh from a Wavefront OBJ file (vertices and triangular/polygon faces).