summaryrefslogtreecommitdiff
path: root/game/geoData.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-04-01 20:07:00 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2024-04-01 20:07:00 +0100
commita4b3f04803aceb9c750d4317a3e7cf3e56996518 (patch)
tree7f7ae6c8a5dad3b111567e5a168eb20e6a80e4d3 /game/geoData.h
parentFactor out some helper lambdas into members (diff)
downloadilt-a4b3f04803aceb9c750d4317a3e7cf3e56996518.tar.bz2
ilt-a4b3f04803aceb9c750d4317a3e7cf3e56996518.tar.xz
ilt-a4b3f04803aceb9c750d4317a3e7cf3e56996518.zip
Replace face 4-way split
Fixes integer rounding issue and returns the new face handles
Diffstat (limited to 'game/geoData.h')
-rw-r--r--game/geoData.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/game/geoData.h b/game/geoData.h
index 88eb304..6dacd9a 100644
--- a/game/geoData.h
+++ b/game/geoData.h
@@ -115,6 +115,9 @@ protected:
void update_vertex_normals_only();
+ using OpenMesh::TriMesh_ArrayKernelT<GeoDataTraits>::split;
+ std::array<FaceHandle, 4> split(FaceHandle);
+
private:
GlobalPosition3D lowerExtent {}, upperExtent {};
};