Click or drag to resize
PoMeshcoloringType Property

Defines the type of method used to color each mesh element, mesh edge or mesh contour line of a representation.

Namespace: OIV.MeshViz.Data
Assembly: OIV.MeshViz (in OIV.MeshViz.dll) Version: 2023.1.3.0 (2023.1.3)
Syntax
public SoSFEnum<PoMeshColoringTypes> coloringType { get; }

Property Value

Type: SoSFEnumPoMeshColoringTypes
Remarks

OIV.MeshViz.Data.PoMesh.ColoringTypes.COLOR_INHERITED: Each element of a mesh representation is colored with the same inherited color, even if valuesIndex field is defined (valuesIndex >= 0).

OIV.MeshViz.Data.PoMesh.ColoringTypes.COLOR_AVERAGE: Each edge of a wireframe representation of the mesh (classes OIV.MeshViz.Data.PoMeshLimit, OIV.MeshViz.Data.PoMeshLines) is colored by a single color defined by the average value of its extremities mapped on a OIV.MeshViz.Graph.PbDataMapping object. Each element of a solid surface representation of the mesh (classes OIV.MeshViz.Data.PoMeshSides, OIV.MeshViz.Data.PoMeshFilled) is colored by a single color defined by the average value of its nodes mapped on a OIV.MeshViz.Graph.PbDataMapping object. However, an inherited coloring is done if the field valuesIndex is not defined or if there is no set of values of which the index is valuesIndex.

OIV.MeshViz.Data.PoMesh.ColoringTypes.COLOR_MAPPING: Each mesh edge or mesh element of a representation is colored by using the "data mapping" method defined by a OIV.MeshViz.Graph.PbDataMapping object. The OIV.MeshViz.Graph.PbDataMapping object defines how the mesh values (referenced by valuesIndex field) are transformed into colors. However, an inherited coloring is done if the valuesIndex field is not defined or if there is no set of values of which index is valuesIndex.

OIV.MeshViz.Data.PoMesh.ColoringTypes.COLOR_CONTOURING: Each mesh edge of a wireframe representation is colored relating to both of its extremity values v1 and v2, to the isovalues between v1 and v2, and to the OIV.MeshViz.Graph.PbDataMapping object which defines the color associated to these values. If some isovalues of the OIV.MeshViz.Graph.PbIsovaluesList object exist between v1 and v2, the edge is cut into several segments. Each segment is colored with a single color. Each mesh element of a filled representation is colored relating to its node values, to the isovalues between these values, and to the OIV.MeshViz.Graph.PbDataMapping object which defines the color associated to these values. If some isovalues of the OIV.MeshViz.Graph.PbIsovaluesList object exist between these values, the element is cut up into several small surfaces. Each small surface is colored with a single color. The boundary between 2 small surfaces is part of a contour line. However, an inherited coloring is done if the valuesIndex field is not defined or if there is no set of values of which the index is valuesIndex.

OIV.MeshViz.Data.PoMesh.ColoringTypes.COLOR_TEXTURE_CONTOURING: Same as OIV.MeshViz.Data.PoMesh.ColoringTypes.COLOR_CONTOURING but a texture is used for creating contours. This method dramatically decreases the amount of generated geometry and speeds up the computation time of filled representations relative to the OIV.MeshViz.Data.PoMesh.ColoringTypes.COLOR_CONTOURING method. This mode should be used for all animations.

The catalog part appearance.texture2 contains the contour texture and the catalog part appearance.complexity.textureQuality is set to 0.1f to activate nearest (as opposed to linear) texture filtering.

This method should not be used for wireframe representations because texturing is not active in wireframe. Also, you may see some slight differences compared to OIV.MeshViz.Data.PoMesh.ColoringTypes.COLOR_CONTOURING for meshes with few cells. Shapes or cells that contain an undefined value will not be discarded. For example, cells that are more transparent than the value specified by OIV.MeshViz.Nodes.PoDataMapping.transparencyValueDeletedParts will not be discarded when using this mode.

See Also