Debugging features.
More...
|
using | logicErr = std::logic_error |
|
|
ExecutionParams & | ManifoldParams () |
|
std::string | ToString (const Manifold::Error &error) |
|
std::ostream & | operator<< (std::ostream &stream, const Manifold::Error &error) |
|
template<typename Ex> |
void | AssertFail (const char *file, int line, const char *cond, const char *msg) |
|
template<typename Ex> |
void | AssertFail (const char *file, int line, const std::string &cond, const std::string &msg) |
|
Debugging features.
The features require compiler flags to be enabled. Assertions are enabled with the MANIFOLD_DEBUG flag and then controlled with ExecutionParams.
◆ manifold::ExecutionParams
struct manifold::ExecutionParams |
Global parameters that control debugging output. Only has an effect when compiled with the MANIFOLD_DEBUG flag.
Class Members |
bool |
intermediateChecks = false |
Perform extra sanity checks and assertions on the intermediate data structures.
|
bool |
selfIntersectionChecks = false |
Perform 3D mesh self-intersection test on intermediate boolean results to test for ϵ-validity. For debug purposes only.
|
bool |
processOverlaps = true |
If processOverlaps is false, a geometric check will be performed to assert all triangles are CCW.
|
bool |
suppressErrors = false |
Suppresses printed errors regarding CW triangles. Has no effect if processOverlaps is true.
|
bool |
cleanupTriangles = true |
Perform optional but recommended triangle cleanups in SimplifyTopology() |
int |
verbose = 0 |
Verbose level:
- 0 for no verbose output
- 1 for verbose output for the Boolean, including timing info and vector sizes.
- 2 for verbose output with triangulator action as well.
|
◆ DEBUG_ASSERT
#define DEBUG_ASSERT |
( |
| condition, |
|
|
| EX, |
|
|
| msg ) |
Value: if (!(condition)) AssertFail<EX>(__FILE__, __LINE__, #condition, msg);
◆ ASSERT
#define ASSERT |
( |
| condition, |
|
|
| EX ) |
Value: if (!(condition)) throw(EX);
◆ ManifoldParams()
Allows modification of the assertions checked in MANIFOLD_DEBUG mode.
- Returns
- ExecutionParams&