The main class for styling mesh data is MeshStyleMeshStyleMeshStyle.
You can use it to define several expressions to visualize, filter, and change your dataset:
-
colorExpression: use an expression to choose the color of your mesh. You can also use the color encoded in your dataset by usingStyleExpressionFactory::defaultColor. A color expression overrides any texture color in the dataset. -
visibilityExpression: use an expression to make meshes partly visible or invisible based on available attributes and parameters. -
displacementExpression: use an expression to partly displace meshes based on available attributes and parameters. -
shadingModel: choose how the mesh is shaded by the map’s light and environment map. By default a mesh is shaded with physically based rendering (PBR). See How to configure shading models.
|
If your expression results in transparent colors, see Transparent colors how to enable transparency support. |
See Style your 3D data using expressions for more information on how to create expressions.