diff options
Diffstat (limited to 'thirdparty/thekla_atlas/nvmesh/TriMesh.h')
-rw-r--r-- | thirdparty/thekla_atlas/nvmesh/TriMesh.h | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/thirdparty/thekla_atlas/nvmesh/TriMesh.h b/thirdparty/thekla_atlas/nvmesh/TriMesh.h deleted file mode 100644 index bc5672c1ac..0000000000 --- a/thirdparty/thekla_atlas/nvmesh/TriMesh.h +++ /dev/null @@ -1,51 +0,0 @@ -// This code is in the public domain -- Ignacio Castaņo <castano@gmail.com> - -#pragma once -#ifndef NV_MESH_TRIMESH_H -#define NV_MESH_TRIMESH_H - -#include "nvcore/Array.h" -#include "nvmath/Vector.inl" -#include "nvmesh/nvmesh.h" -#include "nvmesh/BaseMesh.h" - -namespace nv -{ - /// Triangle mesh. - class TriMesh : public BaseMesh - { - public: - struct Face; - typedef BaseMesh::Vertex Vertex; - - TriMesh(uint faceCount, uint vertexCount) : BaseMesh(vertexCount), m_faceArray(faceCount) {} - - // Face methods. - uint faceCount() const { return m_faceArray.count(); } - const Face & faceAt(uint i) const { return m_faceArray[i]; } - Face & faceAt(uint i) { return m_faceArray[i]; } - const Array<Face> & faces() const { return m_faceArray; } - Array<Face> & faces() { return m_faceArray; } - - NVMESH_API Vector3 faceNormal(uint f) const; - NVMESH_API const Vertex & faceVertex(uint f, uint v) const; - - friend Stream & operator<< (Stream & s, BaseMesh & obj); - - private: - - Array<Face> m_faceArray; - - }; - - - /// TriMesh face. - struct TriMesh::Face - { - uint id; - uint v[3]; - }; - -} // nv namespace - -#endif // NV_MESH_TRIMESH_H |