[vtkusers] using vtkHyperOctree

Rob Harris rharris at iastate.edu
Tue Oct 14 17:23:02 EDT 2008


Hi all,

I am interested in plotting contours on a quadtree mesh (2D vtkHyperOctree).
I have been having trouble getting a simple test case to work, and could
really use some help. For example, to plot the function f(x,y)=x on a unit
square of 16 cells I have (in a *.vto file):

.....
<DataArray ............>
0 0 1 1 1 1 0 1 1 1 1 0 1 1 1 1 0 1 1 1 1
</DataArray>
......
<PointData .............>
  <DataArray .............>
  0.125 0.375 0.125 0.375 0.625 0.875
  0.625 0.875 0.125 0.375 0.125 0.375
  0.625 0.875 0.625 0.875
  </DataArray>
</PointData>

So, I am providing cell-centered data on the leaves in the orientation (-x
-y, +x -y, -x +y, +x +y). The above just produces junk, so I must be missing
something. Any help you can give is greatly appreciated!

-Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081014/2daa34e1/attachment.htm>


More information about the vtkusers mailing list