16 #ifndef SURGSIM_DATASTRUCTURES_MESHELEMENT_H 17 #define SURGSIM_DATASTRUCTURES_MESHELEMENT_H 25 namespace DataStructures
43 template <
size_t N,
class Data>
50 verticesId(verticesId),
59 verticesId(verticesId),
75 typedef std::array<size_t, N> IdType;
99 return !((*this) == element);
109 #endif // SURGSIM_DATASTRUCTURES_MESHELEMENT_H Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
MeshElement(const std::array< size_t, N > &verticesId)
Constructor where the Data is constructed by its default constructor.
Definition: MeshElement.h:58
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
bool operator!=(const MeshElement< N, Data > &element) const
Compare the element with another one (inequality)
Definition: MeshElement.h:97
bool operator==(const MeshElement< N, Data > &element) const
Compare the element with another one (equality)
Definition: MeshElement.h:89
IdType verticesId
Element vertices.
Definition: MeshElement.h:78
MeshElement(const std::array< size_t, N > &verticesId, const Data &data)
Constructor.
Definition: MeshElement.h:49
Element structure for meshes.
Definition: MeshElement.h:44
Data data
Extra element data.
Definition: MeshElement.h:81
bool isValid
Is this a valid element.
Definition: MeshElement.h:84