PoMeshPropertyAddValuesSet Method (Int32, Single, String) |
Convenience method to add a new set of scalar values to the mesh.
Namespace: OIV.MeshViz.NodesAssembly: OIV.MeshViz (in OIV.MeshViz.dll) Version: 2023.1.3.0 (2023.1.3)
Syntax public virtual void AddValuesSet(
int index,
float[] val,
string set_name
)
Public Overridable Sub AddValuesSet (
index As Integer,
val As Single(),
set_name As String
)
public:
virtual void AddValuesSet(
int index,
array<float>^ val,
String^ set_name
)
abstract AddValuesSet :
index : int *
val : float32[] *
set_name : string -> unit
override AddValuesSet :
index : int *
val : float32[] *
set_name : string -> unit
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)