I think for efficiency the best way would be to replace the description + reconstruction method with a direct assignment. This can be done in several way:
- You can update the code on your side to export directly the data array corresponding to HTG structure (I would recommend this article to get a better understanding of the internal memory layout).
- A more generic approach would be to use a conduit descriptor, which is a way to describe your own memory layout in a generic way and let VTK do the translation to its datamodel. Unfortunately, in its current state VTK handles some AMR data sets, but not the Hyper Tree Grid, so some work could be done on the VTK side. Do not hesitate to reach us for this.
Looking quickly at the VLSV format, it looks like it is meant to describe a regular grid. HTG is mainly relevant when you need adaptive resolution, is it the case for you ?