Click or drag to resize
PbMeshAddValuesSet Method (Int32, Single, PbMeshDataBindings, String)

Adds a set of scalar values that can be located either at nodes or at cells.

Namespace: OIV.MeshViz.Data
Assembly: OIV.MeshViz (in OIV.MeshViz.dll) Version: 2023.1.3.0 (2023.1.3)
Syntax
public void AddValuesSet(
	int set_index,
	float[] val,
	PbMeshDataBindings binding,
	string set_name
)

Parameters

set_index
Type: SystemInt32

the index of the new set added.

val
Type: SystemSingle

the array of values. Its size must be either the number of nodes or the number of cells depending on the binding argument.

binding
Type: OIV.MeshViz.DataPbMeshDataBindings

specifies the location of the values.

set_name
Type: SystemString

string associated with this set of values.

Remarks

Warning: At this time, the PER_CELL data binding is taken into account only by the following classes:

The other classes use inherited coloring mode when the PER_CELL binding is used.

NOTE: This method must be called after a setGeometry method because the size of the argument val is determined by the number of nodes in the mesh. The setGeometry methods are defined in subclasses of OIV.MeshViz.Data.PbMesh.

See Also