diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-11-27 02:50:06 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-11-27 02:50:06 +0000 |
commit | 2e1a91564c4765dbdc3f633ba0ff8a4af7164503 (patch) | |
tree | 9b7d9890df268a2766a3aa880ccd8d8489cd8b8c /game/geoData.h | |
parent | Surface walk to set face surface property (diff) | |
download | ilt-2e1a91564c4765dbdc3f633ba0ff8a4af7164503.tar.bz2 ilt-2e1a91564c4765dbdc3f633ba0ff8a4af7164503.tar.xz ilt-2e1a91564c4765dbdc3f633ba0ff8a4af7164503.zip |
Update new/moved vertex normals
Diffstat (limited to 'game/geoData.h')
-rw-r--r-- | game/geoData.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/game/geoData.h b/game/geoData.h index c28dd14..71ec85f 100644 --- a/game/geoData.h +++ b/game/geoData.h @@ -200,8 +200,9 @@ protected: [[nodiscard]] RelativeDistance length(const HalfedgeHandle) const; [[nodiscard]] GlobalPosition3D centre(const HalfedgeHandle) const; - void update_vertex_normals_only(); - void update_vertex_normals_only(VertexIter start); + void updateAllVertexNormals(); + template<std::ranges::range R> void updateAllVertexNormals(const R &); + void updateVertexNormal(VertexHandle); private: GlobalPosition3D lowerExtent {}, upperExtent {}; |