Hi ,
I attached 2 files (vdetclass_v1.tar.gz and vdetclass_v2.tar.gz).
The v1 is the corrected version of your last code … which ‘just’ needed to have the actually copy of the axis added (and also needed the copy constructor to actually create the arrays).
The v2 is an enhanced version that avoid having to copy the axis object.
Cheers,
Philippe.
vdetclass_v1.tar.gz (2.2 KB) vdetclass_v2.tar.gz (2.2 KB)