AttType, Rank and Interp are typedef enums which
are available if one
includes "mstkla.h". The specific names (which are pretty much
the strings
that are used in LaGriT) are given in mstkla_types.h (See MSTKLA
typedefs)
'persist' must be 0 for temporary atts and 1 for permanent attribs
'ioflags' is a string as in lagrit (may be any combination of
'a', 'g', 'f', 's', 'x', 'no' for
AVS, GMV, FEHM, SGI, LaGriT or None)
mtype is MVERTEX if the attribute is to be node based and is
MFACE or
MREGION if the attribute is to be element based depending on
whether the mesh
is 2D or 3D respectively.
Here depending on the fieldname, one has to fill the right value for
inew,
rnew or cnew.
*** NOT TESTED ***
*** NOT TESTED ***
If psetname is specified ifirst is ignored
*** NOT TESTED ***
Once attributes have been created, one can go to an individual mesh
entity
and ask for the value of an attribute for that entity or change the
value.
The entities can be Mesh Vertices (always), Mesh Faces (for a surface
mesh
only), Mesh Regions (for a solid mesh only).
For example one can use MR_GetAttVal operator to get the value
of an
attribute for a given element or use MR_SetAttVal to set it.
See attribute operators for Mesh
Vertices, Mesh Regions
and Mesh Faces