diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-02-17 18:50:30 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-02-17 18:50:30 +0000 |
commit | f36a3c4b51b1305548e3f645d645b20f1a192f1d (patch) | |
tree | f0061bd613ae6148859863b43b5ebcec99bf9ae3 /game/geoDataMesh.cpp | |
parent | Refactor GeoData::setHeights until a struct made of a logical breakdown of th... (diff) | |
download | ilt-f36a3c4b51b1305548e3f645d645b20f1a192f1d.tar.bz2 ilt-f36a3c4b51b1305548e3f645d645b20f1a192f1d.tar.xz ilt-f36a3c4b51b1305548e3f645d645b20f1a192f1d.zip |
Only build/run GeoDataMesh::sanityCheck for debug
Diffstat (limited to 'game/geoDataMesh.cpp')
-rw-r--r-- | game/geoDataMesh.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/game/geoDataMesh.cpp b/game/geoDataMesh.cpp index 687a025..60af061 100644 --- a/game/geoDataMesh.cpp +++ b/game/geoDataMesh.cpp @@ -98,16 +98,15 @@ GeoDataMesh::centre(const HalfedgeHandle heh) const return midpoint(hehPoints.first, hehPoints.second); } +#ifndef NDEBUG void GeoDataMesh::sanityCheck(const std::source_location & loc) const { if (const auto upSideDown = std::ranges::count_if(faces(), [this](const auto face) { if (!triangle<2>(face).isUp()) { -#ifndef NDEBUG for (const auto vertex : fv_range(face)) { CLOG(point(vertex)); } -#endif return true; } return false; @@ -116,6 +115,7 @@ GeoDataMesh::sanityCheck(const std::source_location & loc) const "{} upside down faces detected - checked from {}:{}", upSideDown, loc.function_name(), loc.line())); } } +#endif bool GeoDataMesh::canFlip(const HalfedgeHandle edge) const |