#pragma once

#include <glm/vec3.hpp>

typedef glm::vec3 XYZ;

struct TRIANGLE {
	XYZ p[3];
};

struct GRIDCELL {
	XYZ p[8];
	double val[8];
} ;

int Polygonise(GRIDCELL &grid, double isolevel, TRIANGLE *triangles);
