[Paraview] Creating ImageData w/Programmable Source

Eric E. Monson emonson at cs.duke.edu
Fri Feb 6 14:32:48 EST 2009


Hey David,

Thanks, but that doesn't do it for me. Even if I set the output data  
type before ever hitting Apply, it has the same outcome.

-Eric


On Feb 6, 2009, at 11:33 AM, David E DeMarle wrote:

> I've seen a bug before where the output data type is fixed at the
> first apply. If you did something like this it might explain what you
> are seeing:
> output type = polydata
> enter python code to populate the image data
> apply
> change output type to image data
> apply
>
> See if this fixes the problem:
> save the code somewhere (like the clip board)
> delete the source
> set output type = image data
> past in python code
> apply
>
>
> 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
>>
>
>
>
> -- 
> David E DeMarle
> Kitware, Inc.
> R&D Engineer
> 28 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-371-3971 x109



More information about the ParaView mailing list