[vtk-developers] Patch for vtkHierarchicalBoxDataSet

Matthew Turk matthewturk at gmail.com
Wed Oct 1 18:58:02 EDT 2008


> Correct me if I am wrong but this patch is not enough by itself. Did
> you by any chance modify the wrapping hints file?

I did not, and testing it against a clean install & checkout of VTK, I
get the appropriate (newly exposed) method:

--
>>> import vtk
>>> a = vtk.vtkHierarchicalBoxDataSet()
>>> help(a.SetDataSet)
Help on built-in function SetDataSet:

SetDataSet(...)
    V.SetDataSet(vtkCompositeDataIterator, vtkDataObject)
    C++: virtual void SetDataSet (vtkCompositeDataIterator *iter,
vtkDataObject *dataObj);this Superclass SetDataSet iter dataObj
    V.SetDataSet(int, int, (int, int, int), (int, int, int), vtkUniformGrid)
    C++: void SetDataSet (unsigned int level, unsigned int id, int
LoCorner[3], int HiCorner[3], vtkUniformGrid *dataSet);

     Set the dataset pointer for a given node. This will resize the number of
     levels and the number of datasets in the level to fit level, id requested.
--

Perhaps I'm not understanding what isn't working?

> Also, it should be relatively easy to make vtkAMRBox subclass of VTK
> data object as long as we are not storing it in the meta-data. If that
> is going to make your life easier, I would be happy to give some
> pointers.

I would be willing to do that, and I'll send you my previous attempt
at this off-list.

> Also, are you considering expanding the capabilities of the AMR
> support in VTK? If the answer is yes, I would love to collaborate.

I definitely am.  My time right now is being divided in a couple
different ways, but I'd definitely like to collaborate.  I'm doing my
thesis work on astrophysical AMR, specifically very deep AMR
(typically my simulations go between 25 - 35 levels) and I've so far
been approaching VTK by extracting sub-volumes and examining those.
I've found -- even as is -- the VTK interface to be invaluable, so I'd
like to see it expanded to work more broadly.

Thanks!

-Matt



More information about the vtk-developers mailing list