summaryrefslogtreecommitdiff
path: root/game/geoDataMesh.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-02-18 19:25:34 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2025-02-18 19:25:34 +0000
commit9c4b26ce6781584ddcd60da8a013ac5757ec05b1 (patch)
tree4a770728ebe00009c1de56a37f4af754ae021da6 /game/geoDataMesh.h
parentOnly build/run GeoDataMesh::sanityCheck for debug (diff)
downloadilt-9c4b26ce6781584ddcd60da8a013ac5757ec05b1.tar.bz2
ilt-9c4b26ce6781584ddcd60da8a013ac5757ec05b1.tar.xz
ilt-9c4b26ce6781584ddcd60da8a013ac5757ec05b1.zip
Expand new verts collection once
Before doing vertex normal recalc only, not on every insert
Diffstat (limited to 'game/geoDataMesh.h')
-rw-r--r--game/geoDataMesh.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/game/geoDataMesh.h b/game/geoDataMesh.h
index befe9fe..72b069e 100644
--- a/game/geoDataMesh.h
+++ b/game/geoDataMesh.h
@@ -3,6 +3,7 @@
#include "config/types.h"
#include "triangle.h"
#include <OpenMesh/Core/Mesh/TriMesh_ArrayKernelT.hh>
+#include <set>
#include <source_location>
#include <thirdparty/openmesh/glmcompat.h>
#include <thirdparty/openmesh/helpers.h>
@@ -90,6 +91,7 @@ protected:
[[nodiscard]] bool canFlip(HalfedgeHandle edge) const;
[[nodiscard]] std::optional<EdgeHandle> shouldFlip(HalfedgeHandle next, GlobalPosition2D startPoint) const;
+ void expandVerts(std::set<VertexHandle> & verts) const;
template<glm::length_t D>
[[nodiscard]] RelativeDistance