I use the operation smtk::operation::AssignColors in the Operations panel of CMB to assign colors to selected faces. As demonstrated in the video below on the example data file data/model/3d/netcdf/pillbox.ncdf of SMTK, there are glitches.
Do you have an idea what causes it?
There is no such glitch in other files, such as data/model/3d/smtk/coarse-knee.smtk.
The “glitch” is called z-fighting because there are two meshes colored differently which share the same surface. As OpenGL renders each (overlapping) triangle, some pixels have a green triangle on top and some have a grey triangle on top. Using the visibility controls, you should be able to hide all but one of the overlapping objects.
Do they really share a common surface? When I open the model in CMB, surface 1 and surface 2 are disjoint. More precisely, they meet in a common edge. How can be there overlapping triangles?
There is an object representing the volume mesh and several other surface-mesh objects representing the boundaries of the volume mesh (to which boundary conditions are applied). Either hide the volumetric object or the surface objects.