| 16 | |
| 17 | namespace PLYWriterHelper { |
| 18 | void assert_success(bool val, std::string message="") { |
| 19 | if (!val) { |
| 20 | if (message == "") { |
| 21 | throw RuntimeError("PLY writing failed"); |
| 22 | } else { |
| 23 | throw RuntimeError(message); |
| 24 | } |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | /** |
| 29 | * Return the string name with prefix stripped. |
no test coverage detected