Skip to content
Snippets Groups Projects
Commit 4f4f47ce authored by Tom Fischer's avatar Tom Fischer
Browse files

added documentation

parent 09339000
No related branches found
No related tags found
No related merge requests found
......@@ -18,11 +18,6 @@
namespace MeshLib {
/*
Element::Element(Node** nodes, MshElemType::type type, unsigned value)
{
}
*/
Element::Element(unsigned value)
: _nodes(NULL), _value(value), _neighbors(NULL)
{
......
......@@ -124,7 +124,11 @@ public:
*/
virtual FEMElemType::type getFEMType() const = 0;
/// Get the value for this element.
/**
* Get the value for this element. The value can be used to store a link
* to external information (for instance an index of a field) like material groups.
* @return
*/
unsigned getValue() const { return _value; };
/// Returns true if elem is a neighbour of this element and false otherwise.
......@@ -172,6 +176,9 @@ protected:
Node** _nodes;
/**
* this is an index for external additional information like materials
*/
unsigned _value;
Element** _neighbors;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment