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

Convenience method to add a new set of scalar values to the mesh.

Namespace: OIV.MeshViz.Nodes
Assembly: OIV.MeshViz (in OIV.MeshViz.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax
public virtual void AddValuesSet(
	int index,
	float[] val,
	string set_name
)

Parameters

index
Type: SystemInt32

the index of the new set added

val
Type: SystemSingle

the array of values. Its size must be the number of nodes

set_name
Type: SystemString

string associated to this set of values

Remarks

The values are localized at nodes so the number of values in a set must be equal to the number of nodes in the mesh.

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.Nodes.PoMeshProperty.

See Also

Reference

OIV.MeshViz.Data.PbMesh.AddValuesSet(System.Int32, System.Single[], System.String)