[Paraview] Creating ImageData w/Programmable Source

Berk Geveci berk.geveci at kitware.com
Tue Feb 10 12:50:34 EST 2009


Did you set the whole extent in the RequestInformation script?

-berk

On Fri, Feb 6, 2009 at 11:28 AM, Eric E. Monson <emonson at cs.duke.edu> wrote:
> 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
>
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>


More information about the ParaView mailing list