/
renumber

GiD - The personal pre and post processor

renumber

objarray renumber <obj> <old_ids> ?<new_ids>?

Replace in <obj>, that must be of integer type, the values of the list <old_ids> by the values of <new_ids>
<old_ids> and <new_ids> must be intarray, and if <new_ids> is missing it is assumed as an increasing array starting from 0

Warning: the values of <obj> itself are modified, without creating another copy of the object

e.g.

set obj [objarray new intarray -values {10 15 3 15 20 3}] -> 10 15 3 15 20 3 set old_ids [objarray new intarray -values {3 10 15 20}] objarray renumber $obj $old_ids -> 1 2 0 2 3 0

 

COPYRIGHT © 2022 · GID · CIMNE