[Paraview] Creating ImageData w/Programmable Source
Eric E. Monson
emonson at cs.duke.edu
Fri Feb 6 11:28:43 EST 2009
Hello,
I'm having trouble creating vtkImageData with the Python Programmable
Source. The PolyData Helix example works fine for me, but when I try
to create ImageData it seems to build the data structure within Python
(i.e. I can print the characteristics of the ImageData and it looks
fine in the Output Messages), but no data shows in the Information tab
or the 3d render view.
Here's the simplest case of the things I've tried (after selecting
vtkImageData from the combo box):
pdo = self.GetImageDataOutput()
pdo.SetDimensions(10,10,10)
pdo.SetOrigin(0,0,0)
pdo.SetSpacing(1,1,1)
print pdo
I can add scalars to it, or create a new vtkImageData and then shallow
or deep copy that over to the output, and those things look like
they're working fine at the print statement, but they don't seem to
help get the data to really show up in the pipeline.
I hope someone can just point out something I'm forgetting to do...
(PV 3.4 & CVS, OS X 10.5.6 & WinXP)
Thanks,
-Eric
------------------------------------------------------
Eric E Monson
Duke Visualization Technology Group
More information about the ParaView
mailing list