moved marching cubes into its own class