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

Function EUnwrapMethod_stringToEnum

src/aliceVision/mesh/Texturing.cpp:51–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49namespace mesh {
50
51EUnwrapMethod EUnwrapMethod_stringToEnum(const std::string& method)
52{
53 std::string m = method;
54 boost::to_lower(m);
55
56 if (m == "basic")
57 return EUnwrapMethod::Basic;
58 if (m == "abf")
59 return EUnwrapMethod::ABF;
60 if (m == "lscm")
61 return EUnwrapMethod::LSCM;
62 throw std::out_of_range("Invalid unwrap method " + method);
63}
64
65std::string EUnwrapMethod_enumToString(EUnwrapMethod method)
66{

Callers 1

aliceVision_mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected