| 49 | namespace mesh { |
| 50 | |
| 51 | EUnwrapMethod 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 | |
| 65 | std::string EUnwrapMethod_enumToString(EUnwrapMethod method) |
| 66 | { |