marching cubes and my own triangle mesh class