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
public void AddValuesSet( int set_index, float[] val, PbMeshDataBindings binding, string set_name )
the index of the new set added.
the array of values. Its size must be either the number of nodes or the number of cells depending on the binding argument.
specifies the location of the values.
string associated with this set of values.
Warning: At this time, the PER_CELL data binding is taken into account only by the following classes:
OIV.MeshViz.Data.PoMeshLevelSurf (just for coloring, the level surface of value per cell is not taken into account)
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.