GiD - The personal pre and post processor

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

objarray set <obj> {<value_1> ... <value_n>}|<index> <value>

Set the value of the item $index (from 0 to n-1) with the value $value, or all values from a list {value_1 ... value_n}. To set some index the array space must be allocated previously with a size greater of the index.

e.g.

set obj [objarray new intarray 3 0]
-> 0 0 0
objarray set $obj {6 3 8}
-> 6 3 8

# in floating point arrays, 'nan' values are also allowed
set oa [ objarray new doublearray 10 nan]
--> nan nan nan nan nan nan nan nan nan nan
objarray set $oa 3 0.123
--> nan nan nan 0.123 nan nan nan nan nan nan
objarray set $oa 3 nan
--> nan nan nan nan nan nan nan nan nan nan
  • No labels