MCPcopy Create free account
hub / github.com/alicevision/AliceVision / EFileType_enumToString

Function EFileType_enumToString

src/aliceVision/mesh/Mesh.cpp:39–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37Mesh::~Mesh() {}
38
39std::string EFileType_enumToString(const EFileType meshFileType)
40{
41 switch (meshFileType)
42 {
43 case EFileType::OBJ:
44 return "obj";
45 case EFileType::FBX:
46 return "fbx";
47 case EFileType::GLTF:
48 return "gltf";
49 case EFileType::GLB:
50 return "glb";
51 case EFileType::STL:
52 return "stl";
53 case EFileType::PLY:
54 return "ply";
55 }
56 throw std::out_of_range("Unrecognized EMeshFileType");
57}
58
59EFileType EFileType_stringToEnum(const std::string& meshFileType)
60{

Callers 2

Mesh.cppFile · 0.85
saveAsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected