Added initialization and conversion to marching cubes format.