Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
objarray deinterleave <obj> <num_components>

Reorder the array to separate each component in consecutive blocks. The array size must be multiple of num_components

...

.

<obj> the objarray to be reordered

<num_components> integer>0

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

e.g.

Code Block
set obj {x0 y0 x1 y1 x2 y2}
set num_components 2
objarray deinterleave $obj $num_components
-> x0 x1 x2 y0 y1 y2

...