How to get correct mask value from one segment from Segment Editor?

Marching cubes algorithm is for generating smooth surfaces. In general, conversion between smooth surface and binary labelmap representations is a lossy operation. If you don’t need smooth surface then you can use vtkDiscreteMarchingCubes algorithm instead, which generates small cubes (see picture below - left: smooth surface, right: cubes):