Prepare to implement marching cubes algorithm