# porting vtkHyperOctree to vtkHyperTreeGrid

**URL:** https://discourse.vtk.org/t/porting-vtkhyperoctree-to-vtkhypertreegrid/265
**Category:** Support
**Created:** [February 12, 2019, 11:57pm UTC](https://discourse.vtk.org/t/porting-vtkhyperoctree-to-vtkhypertreegrid/265 "2019-02-12T23:57:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![tirons](https://discourse.vtk.org/user_avatar/discourse.vtk.org/tirons/32/136_2.png) [@tirons](https://discourse.vtk.org/u/tirons)
#### Post date: [February 12, 2019, 11:57pm UTC](https://discourse.vtk.org/t/porting-vtkhyperoctree-to-vtkhypertreegrid/265/1 "2019-02-12T23:57:18Z")

</div>

Hi, I’m looking for any resources which might be available as I try to port some code which used vtkHyperOctree. The new classes of vtkHyperTree(Grid) don’t great documentation regarding how the pieces fit together, for instance the differences in the types of cursors, or even how to set up the initial HyperTrees within the dual grid.

Any help greatly appreciated.

Regards,  
-T

---

<div class="post-metadata">

### Author: ![tirons](https://discourse.vtk.org/user_avatar/discourse.vtk.org/tirons/32/136_2.png) [@tirons](https://discourse.vtk.org/u/tirons)
#### Post date: [February 27, 2019, 5:02am UTC](https://discourse.vtk.org/t/porting-vtkhyperoctree-to-vtkhypertreegrid/265/2 "2019-02-27T05:02:40Z")

</div>

Follow up question, I’ve soft of slogged my way through this, but I can’t figure out how to set cell data at the leaves only. In vtkHyperOctree it was possible to use  
hyperTree-\>GetLeafData()-\>AddArray( myArrayOfData );

but I can’t figure out where this functionality lives now?

Thanks,

Trevor
