[Paraview] AMR reader - more questions

Randy Hudson hudson at mcs.anl.gov
Thu Jun 9 14:36:45 EDT 2005


I'm trying to determine, by looking at vtkTestHierarchicalDataReader, how I'll load multiple scalars (or vectors for that matter) into the AMR structure.  I see that each image dataset read by the vtkXMLImageDataReader in vtkTestHierarchicalDataReader::RequestData() is passed to vtkHierarchicalBoxDataSet::SetDataSet().

My data is an octree of what are called "blocks", which are regular grids.  I expect I will have to either 

o  load all the scalars from a block into its vtkUniformGrid, and then pass that once to SetDataSet(), or 

o  load one scalar, pass the vtkUniformGrid to SetDataSet(), then somehow load the rest of the scalars into that vtkUniformGrid, which has already been made part of the vtkHierarchicalBoxDataSet.


1)  Which of those two, if any, sounds right?
2)  Are the vtkUniformGrid's you define for vtkTestHierarchicalDataReader all leaves, or are some of them parents of others?

Thanks.



Randy.
630 252 8690.



More information about the ParaView mailing list