How to get a 3D model of a closed surface

hello. everyone.

I am practicing the example in this link.
https://kitware.github.io/vtk-examples/site/Cxx/Medical/MedicalDemo1/

In this example, a marching cube is used to obtain a surface,
Looking at the resulting image (https://github.com/Kitware/vtk-examples/blob/gh-pages/src/Testing/Baseline/Cxx/Medical/TestMedicalDemo1.png?raw=true), the upper surface is not closed.

Please let me know how can I get a closed surface.

thank you.