X-Git-Url: https://git.sur5r.net/?p=fstl;a=blobdiff_plain;f=src%2Fmesh.h;h=141278139b64d3086234e08c66632233a6bca395;hp=e8a02f09a2c369b0788b90f7ca0ad97fd7166b18;hb=refs%2Fheads%2Fupstream;hpb=967d178c4343c689c728571bb10d5c94ab8d9d13 diff --git a/src/mesh.h b/src/mesh.h index e8a02f0..9e2ab0c 100644 --- a/src/mesh.h +++ b/src/mesh.h @@ -9,7 +9,7 @@ class Mesh { public: - Mesh(std::vector vertices, std::vector indices); + Mesh(std::vector&& vertices, std::vector&& indices); float min(size_t start) const; float max(size_t start) const; @@ -21,6 +21,9 @@ public: float ymax() const { return max(1); } float zmax() const { return max(2); } + int triCount() const; + bool empty() const; + private: std::vector vertices; std::vector indices;