16 #ifndef SURGSIM_GRAPHICS_MESH_H 17 #define SURGSIM_GRAPHICS_MESH_H 21 #include "SurgSim/DataStructures/EmptyData.h" 22 #include "SurgSim/DataStructures/TriangleMesh.h" 23 #include "SurgSim/DataStructures/OptionalValue.h" 42 return texture == rhs.texture &&
51 return !((*this) == rhs);
55 SURGSIM_STATIC_REGISTRATION(
Mesh);
58 SurgSim::DataStructures::EmptyData>
64 typedef TriangleMesh<VertexData, DataStructures::EmptyData, DataStructures::EmptyData> BaseType;
72 template <
class V,
class E,
class T>
73 explicit Mesh(
const TriangleMesh<V, E, T>& other);
99 void initialize(
const std::vector<SurgSim::Math::Vector3d>& vertices,
100 const std::vector<SurgSim::Math::Vector4d>& colors,
101 const std::vector<SurgSim::Math::Vector2d>& textures,
102 const std::vector<size_t>& triangles);
109 size_t getUpdateCount()
const;
113 bool doLoad(
const std::string& fileName)
override;
123 #include "SurgSim/Graphics/Mesh-inl.h" 125 #endif // SURGSIM_GRAPHICS_MESH_H Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
size_t m_updateCount
For checking whether the mesh has changed.
Definition: Mesh.h:116
bool operator==(const SurgSim::Graphics::VertexData &rhs) const
Equality operator.
Definition: Mesh.h:40
Definitions of small fixed-size vector types.
bool operator!=(const SurgSim::Graphics::VertexData &rhs) const
Inequality operator.
Definition: Mesh.h:49
Basic class for storing Triangle Meshes, handling basic vertex, edge, and triangle functionality...
Definition: TriangleMesh.h:62