refactor MarchingCubes to use only a single static method (never instantiated)