diff options
Diffstat (limited to 'thirdparty')
-rw-r--r-- | thirdparty/openmesh/helpers.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/thirdparty/openmesh/helpers.h b/thirdparty/openmesh/helpers.h new file mode 100644 index 0000000..bed885c --- /dev/null +++ b/thirdparty/openmesh/helpers.h @@ -0,0 +1,11 @@ +#pragma once +#include <OpenMesh/Core/Mesh/BaseKernel.hh> + +namespace OpenMesh::Helpers { + template<typename Type, template<typename> typename PropertyT> struct Property : public PropertyT<Type> { + template<typename... Params> explicit Property(OpenMesh::BaseKernel * kernel, Params &&... params) + { + kernel->add_property(*this, std::forward<Params>(params)...); + } + }; +} |