Go to the documentation of this file.
16 #ifndef SURGSIM_DATASTRUCTURES_MESHELEMENT_H
17 #define SURGSIM_DATASTRUCTURES_MESHELEMENT_H
25 namespace DataStructures
43 template <
size_t N,
class Data>
75 typedef std::array<size_t, N>
IdType;
99 return !((*this) == element);
109 #endif // SURGSIM_DATASTRUCTURES_MESHELEMENT_H
MeshElement(const MeshElement< N, T > &other)
Copy constructor when the template data is a different type In this case, no data will be copied.
Definition: MeshElement.h:69
MeshElement(const std::array< size_t, N > &verticesId)
Constructor where the Data is constructed by its default constructor.
Definition: MeshElement.h:58
bool operator!=(const MeshElement< N, Data > &element) const
Compare the element with another one (inequality)
Definition: MeshElement.h:97
Element structure for meshes.
Definition: MeshElement.h:45
bool operator==(const MeshElement< N, Data > &element) const
Compare the element with another one (equality)
Definition: MeshElement.h:89
Definition: CompoundShapeToGraphics.cpp:30
IdType verticesId
Element vertices.
Definition: MeshElement.h:78
MeshElement(const std::array< size_t, N > &verticesId, const Data &data)
Constructor.
Definition: MeshElement.h:49
Data data
Extra element data.
Definition: MeshElement.h:81
std::array< size_t, N > IdType
Definition: MeshElement.h:75
bool isValid
Is this a valid element.
Definition: MeshElement.h:84