summaryrefslogtreecommitdiff
path: root/game/geoDataMesh.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/geoDataMesh.cpp')
-rw-r--r--game/geoDataMesh.cpp4
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