volmetrics

diff src/mesh.cc @ 9:40febfed6cff

rendering isosurfaces / added simple gui
author Eleni Maria Stea <elene.mst@gmail.com>
date Sun, 26 Jan 2014 23:13:37 +0200
parents 928954bfefd7
children df4a277adb82
line diff
     1.1 --- a/src/mesh.cc	Sat Jan 25 19:25:32 2014 +0200
     1.2 +++ b/src/mesh.cc	Sun Jan 26 23:13:37 2014 +0200
     1.3 @@ -21,6 +21,11 @@
     1.4  	normals.clear();
     1.5  }
     1.6  
     1.7 +bool Mesh::is_empty() const
     1.8 +{
     1.9 +	return vertices.empty();
    1.10 +}
    1.11 +
    1.12  void Mesh::draw() const
    1.13  {
    1.14  	size_t sz = vertices.size();