diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-01-05 01:09:01 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-01-05 01:09:01 +0000 |
commit | 917c081ddc1651381f83d8a9b0e095440419814a (patch) | |
tree | 978c5fcc7b79b5ebe1c2abd938124eb8bee52adb /game/geoData.h | |
parent | Fix curve walk edge case where the curve legitimately returns to the previous... (diff) | |
download | ilt-917c081ddc1651381f83d8a9b0e095440419814a.tar.bz2 ilt-917c081ddc1651381f83d8a9b0e095440419814a.tar.xz ilt-917c081ddc1651381f83d8a9b0e095440419814a.zip |
Helper to declare and add OpenMesh property declaratively
Diffstat (limited to 'game/geoData.h')
-rw-r--r-- | game/geoData.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/game/geoData.h b/game/geoData.h index e3fc313..11ba568 100644 --- a/game/geoData.h +++ b/game/geoData.h @@ -10,6 +10,7 @@ #include <glm/vec2.hpp> #include <optional> #include <thirdparty/openmesh/glmcompat.h> +#include <thirdparty/openmesh/helpers.h> struct GeoDataTraits : public OpenMesh::DefaultTraits { FaceAttributes(OpenMesh::Attributes::Status); @@ -22,9 +23,7 @@ struct GeoDataTraits : public OpenMesh::DefaultTraits { class GeoData : public OpenMesh::TriMesh_ArrayKernelT<GeoDataTraits> { private: - GeoData(); - - OpenMesh::FPropHandleT<const Surface *> surface; + const OpenMesh::Helpers::Property<const Surface *, OpenMesh::FPropHandleT> surface {this}; public: static GeoData loadFromAsciiGrid(const std::filesystem::path &); |