MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / assert_success

Function assert_success

src/IO/PLYWriter.cpp:18–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17namespace 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.

Callers 4

write_meshMethod · 0.70

Calls 1

RuntimeErrorClass · 0.85

Tested by

no test coverage detected