Thank @Sunderlandkyl !
I used seg.SetMasterRepresentationToClosedSurface() to get the following seg. Why is the dyeing area of green slices different from that of other slices?
Probably the slicing of the surface along the coronal plane isn’t able to correctly distinguish between the inside/outside of the model.
It looks like your surface mesh is not actually a closed surface. Displaying the segmentation in 2D and converting it to a labelmap representation is likely going to have unexpected results since the algorithms cannot determine what is “inside” vs what is “outside”,
It is impossible to solve this problem automatically. It is better to generate a closed surface when the surface is created (e.g., enable capping when cutting the surface).