Changing folder colors, changes the normals of segmentation 3D surface inside of that folder

This only happens to one segmentation I am working on…

Other segmentations look perfectly fine.

I realized that I can put hundreds of segmentations into one folder and change the color for the entire folder and that way have them red or green temporarily as long as they are inside of the folder. Which is kind of cool for quick changes to pin point and show different segmentations or pathologies.

Problem: one segmentation, once put inside of a folder, and applied a color, has its normals flipped and surface is displayed inside-out. I wonder, why?

Can you provide a minimal .mrb file that we can use to reproduce this issue?

Dear Lassoan,

here is the link to the file:

I don’t know how to upload a file to our discourse forum besides images so I uploaded it to google drive.

Here is a description of what you will find in the scene:
image

with red encircled is the segmentation inside of a folder, with flipped normals for some reason.
with green is encircled segmentation OUTSIDE of the folder, with okay surface and okay normals. I have hidden it so you can see the first semgnetation with flipped normals.

Keep in mind I have just copied the segmentation, and just dragged it out of the folder and then surface looked perfectly normal.

Thank you for the example. The problem is that for some reason the surface normals are inverted in the generated surface (we can investigate it separately, if needed) and by default the folder display node hides backfaces (backface culling is enabled by default).

You can fix the issue by disabling backface culling for the folder by typing this into the Python console:

slicer.util.getNodesByClass("vtkMRMLFolderDisplayNode")[0].BackfaceCullingOff()

We’ll turn off backface culling in folder display nodes by default to avoid similar issues in the future.