From 74e4e72c6325d38fca930bd102a86b97dc6368b1 Mon Sep 17 00:00:00 2001 From: Martin Schultz Date: Thu, 8 Dec 2016 18:15:17 +0100 Subject: [PATCH] Added function to copy all properties from one baseKernel to another --- src/OpenMesh/Core/Mesh/BaseKernel.hh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/OpenMesh/Core/Mesh/BaseKernel.hh b/src/OpenMesh/Core/Mesh/BaseKernel.hh index dde5f7f4..6bca014d 100644 --- a/src/OpenMesh/Core/Mesh/BaseKernel.hh +++ b/src/OpenMesh/Core/Mesh/BaseKernel.hh @@ -583,6 +583,18 @@ public: } + /** + * @brief copy_all_kernel_properties uses the = operator to copy all properties from a given other BaseKernel. + * @param _other Another BaseKernel, to copy the properties from. + */ + void copy_all_kernel_properties(const BaseKernel & _other) + { + this->vprops_ = _other.vprops_; + this->eprops_ = _other.eprops_; + this->hprops_ = _other.hprops_; + this->fprops_ = _other.fprops_; + } + protected: //------------------------------------------------- low-level access public: // used by non-native kernel and MeshIO, should be protected