Adding Image/Polydata in HyperTreeGrid

HyperTreeGrids (htgs) are under heavy code refactoring. When everything is clean and stable, we’ll add some examples. As for now, you can look at how the htgs are being created from scratch in a plugin of ParaView. Look for vtkResampleToHyperTreeGrid.cxx in the master branch, and in particular at method vtkResampleToHyperTreeGrid::GenerateTrees.

I can also point you to a code example I posted here.

In short, you need to initialize a cursor that allows you to subdivide htg leaves and recursively walk in the trees. You can get a global index from the cursors that you can map to you scalar fields (see vtkResampleToHyperTreeGrid::SubdivideLeaves for an example).

If you need any more help to get started, please let me know, I’ll be happy to help.