Extraction of mesh from volume renders incorrect mesh

Hello!
I am using the compute iso surface method of marching cubes (ImFusion::MarchingCubes::computeIsosurface) to extract the surface mesh from CT Volume using my
C++ code. The extracted mesh does not look correct (fig.1). However, if i extract the mesh from ImFusion Suite using Segmentation->Extract Mesh, it looks correct (fig.2). Are there methods available in ImFusion Suite SDK that will ensure that the extracted surface mesh from my code will be the same as the surface mesh generated by the suite.
Fig.1:

Fig.2:

The Extract Mesh algorithm from the Suite does internally use the method ImFusion::MarchingCubes::computeIsosurface .
Could it be that you are calling it with the wrong arguments (especially the boolean flag aboveIsoValue or the threshold isoValue)?