X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fmesh.cpp;h=2c44a2c5e19fc4c70f40bf3a3ba59637a53fbef4;hb=ad939fd369a167867efb455ef1c1e482af5f77de;hp=b971029bdbb4aea31b4e023bfbd6161e07897642;hpb=9e9c2e84ac7826bfcaf00c5c0c770f64e16c4abf;p=fstl diff --git a/src/mesh.cpp b/src/mesh.cpp index b971029..2c44a2c 100644 --- a/src/mesh.cpp +++ b/src/mesh.cpp @@ -42,6 +42,10 @@ float Mesh::max(size_t start) const return v; } +int Mesh::triCount() const +{ + return indices.size()/3; +} bool Mesh::empty() const { return vertices.size() == 0;