From 85a20b3a08d02072e06bcbf0315e61c20ee85378 Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Mon, 15 Oct 2012 07:41:09 +0200
Subject: [PATCH] added Element::setValue() method to reset the value

---
 MeshLib/Elements/Element.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/MeshLib/Elements/Element.h b/MeshLib/Elements/Element.h
index fc68abb83b6..d66ea9dd0e7 100644
--- a/MeshLib/Elements/Element.h
+++ b/MeshLib/Elements/Element.h
@@ -131,6 +131,12 @@ public:
 	 */
 	unsigned getValue() const { return _value; };
 
+	/**
+	 * Set the index value for external information.
+	 * @param value an unsigned value for linking with external information
+	 */
+	void setValue(unsigned value) { _value = value; }
+
 	/// Returns true if elem is a neighbour of this element and false otherwise.
 	bool hasNeighbor(Element* elem) const;
 
-- 
GitLab