Various part settings can be applied to the different parts in the model to improve the visual representation of the data.
Part settings are, for instance, visibility, highlighting, draw style, colors and result visibility.
Each part has its own settings.
This tutorial shows how to apply some part settings to parts in the model.
The demo file (contact.vtfx) contains a geometry with four parts. This tutorial shows how to set the following settings on these parts:
Load the file and setup the model specification to show the result. For a more thorough explanation on creating a data source from a file interface and setup the model specification, see the Load VTFx tutorial: UnstructGrid: Load model from file and set up model specification
Create the model and a VTFx file interface data source. Open the file and set the created data source in the model.
Set the first state as current.
Set the first state as current in the model specification.
Get the part ids for the four parts in this model. Part info is available in the data sources metadata directory. We know this model only has one geometry and four parts.
Set the first part invisible
Give the second part the color blue
Use surface mesh draw style at the third part
Set the fourth part transparent
The model is ready to use and can be added to the view. Exactly where the view exists depends on the platform and solution. These examples uses Qt and the view is set up in a cee::qt::ViewerWidget.