GiD - The personal pre and post processor
snap
objarray snap <obj> <value> <tolerance> <index_start> <index_increment>
To modify the values that are closed to <value>, within <tolerance. <index_start> and <index_increment> allow to jump some indices
<obj> an objarray with x y z values to be modified
<value> a real number
<tolerance> a real number>0
<index_start> integer>=0 (usually 0)
<index_increment> to jump indices (usually 1)
A scenario could be to set z=0 in an obj with values {x y z ... x y z}, to loop only on z values the index_start=2 and the index_increment=3
Â
e.g.
set obj [objarray new doublearray -values {10.0 0.001 0.8 1.5 -5.02 0.0000004}]
objarray snap $obj 0.0 1e-4 2 3
-> 10.0 0.001 0.8 1.5 -5.02 0.0
COPYRIGHT © 2022 · GID · CIMNE