Each part has part settings that can be configured to make a better visual appearance of your data, for instance settings such as visibility, draw style, coloring, highlighting and result visibility.
The demo file (contact.vtfx) contains a geometry with four parts. This example shows how to set the following settings on these parts:
- Part 1: Set invisible
- Part 2: Set color to red
- Part 3: Set draw style surface mesh
- Part 4: Set transparent
cee::Str vtfxFile = TutorialUtils::testDataDir() +
"contact.vtfx";
if (!source->
open(vtfxFile, 0))
{
return;
}
int stateId = stateInfos[0].id();
int firstPartId = partInfos[0].id();
int secondPartId = partInfos[1].id();
int thirdPartId = partInfos[2].id();
int fourthPartId = partInfos[3].id();