removing openGL dependencies from marching cubes