diff --git a/MeshLib/Elements/Cell.cpp b/MeshLib/Elements/Cell.cpp index 01253939f0134c2f066ceb34fa49a1326d28ecd5..b1f86db40f527375c421cc181956f328d3c1c894 100644 --- a/MeshLib/Elements/Cell.cpp +++ b/MeshLib/Elements/Cell.cpp @@ -20,12 +20,6 @@ namespace MeshLib { -/* -Cell::Cell(Node** nodes, MeshElemType type, unsigned value) - : Element(nodes, type, value) -{ -} -*/ Cell::Cell(unsigned value, std::size_t id) : Element(value, id) { diff --git a/MeshLib/Elements/Cell.h b/MeshLib/Elements/Cell.h index 8c06822cf839e2026b3827afde2cb6532d549c74..fac3a678b8cfb612b3ce615c4461fe6bd3945a8f 100644 --- a/MeshLib/Elements/Cell.h +++ b/MeshLib/Elements/Cell.h @@ -42,12 +42,10 @@ public: virtual bool testElementNodeOrder() const; protected: -/* - /// Constructor for a generic mesh element containing an array of mesh nodes. - Cell(Node** nodes, MeshElemType type, unsigned value = 0); -*/ - /// Constructor for a generic mesh element without an array of mesh nodes. - Cell(unsigned value = 0, std::size_t id = std::numeric_limits<std::size_t>::max()); + /// Constructor + /// @param value element value + /// @param id element id + Cell(unsigned value, std::size_t id); }; /* class */ } diff --git a/MeshLib/Elements/Edge.h b/MeshLib/Elements/Edge.h index d7cc1ff77d8d3649a9f7b4ab985737ee033bbe0f..6a212caf60f0db7b7b8f1ecd44af16a327255b99 100644 --- a/MeshLib/Elements/Edge.h +++ b/MeshLib/Elements/Edge.h @@ -15,8 +15,6 @@ #ifndef EDGE_H_ #define EDGE_H_ -#include <limits> - #include "Element.h" namespace MeshLib { @@ -34,15 +32,16 @@ public: virtual ~Edge() {} /** - * Checks if the node order of an element is correct by testing surface normals. - * For 1D elements this always returns true. - */ + * Checks if the node order of an element is correct by testing surface normals. + * For 1D elements this always returns true. + */ virtual bool testElementNodeOrder() const { return true; } protected: - /// Constructor for a generic mesh element without an array of mesh nodes. - Edge(unsigned value = 0, std::size_t id = std::numeric_limits<std::size_t>::max()) : Element(value, id) {} - + /// Constructor + /// @param value element value + /// @param id element id + Edge(unsigned value, std::size_t id) : Element(value, id) {} }; /* class */ diff --git a/MeshLib/Elements/Element.h b/MeshLib/Elements/Element.h index bcffc2cd401967d8ef078f0a19af123f0a396c56..6f8c856e03916a6ca6af7b28821e9daac90111b1 100644 --- a/MeshLib/Elements/Element.h +++ b/MeshLib/Elements/Element.h @@ -216,7 +216,9 @@ public: protected: /// Constructor for a generic mesh element without an array of mesh nodes. - Element(unsigned value = 0, std::size_t id = std::numeric_limits<std::size_t>::max()); + /// @param value element value + /// @param id element id + Element(unsigned value, std::size_t id); /// Sets the element ID. virtual void setID(std::size_t id) { this->_id = id; } diff --git a/MeshLib/Elements/Face.cpp b/MeshLib/Elements/Face.cpp index 600468da609b5a6249ec1eae5680a66841d401d1..0c5748b9f16daa9e594ac7421af4627f28faf948 100644 --- a/MeshLib/Elements/Face.cpp +++ b/MeshLib/Elements/Face.cpp @@ -21,12 +21,6 @@ namespace MeshLib { -/* -Face::Face(Node** nodes, MeshElemType type, unsigned value) - : Element(nodes, type, value) -{ -} -*/ Face::Face(unsigned value, std::size_t id) : Element(value, id) { diff --git a/MeshLib/Elements/Face.h b/MeshLib/Elements/Face.h index 14209d906d42d098db2856b7bcc80795e2170b88..e9c006dfc4e4bd85d19a850f5db2f799c4d04113 100644 --- a/MeshLib/Elements/Face.h +++ b/MeshLib/Elements/Face.h @@ -15,8 +15,6 @@ #ifndef FACE_H_ #define FACE_H_ -#include <limits> - #include "GeoLib/Point.h" #include "MathLib/Vector3.h" @@ -47,12 +45,10 @@ public: virtual bool testElementNodeOrder() const; protected: -/* - /// Constructor for a generic mesh element containing an array of mesh nodes. - Face(Node** nodes, MeshElemType type, unsigned value = 0); -*/ - /// Constructor for a generic mesh element without an array of mesh nodes. - Face(unsigned value = 0, std::size_t id = std::numeric_limits<std::size_t>::max()); + /// Constructor + /// @param value element value + /// @param id element id + Face(unsigned value, std::size_t id); private: