Dennis,

> In my routine if I:
> 1.  Do not declare any output (just accept the predefined output, which is 
> set to vtkUnstructuredGrd).   Then your print statements work but my program 
> kills Paraview with a segmentation fault

I always change the output type using the Output Type property on the
Properties panel for the Programmable source. Then the "output" is
indeed the type I expect it to be.


> 2.  If I declare an output with:
> output=self.GetUnstructuredGridOutput()
> Then my program succeeds and I get my mesh (just not many cell variables yet 
> as I haven't figured out how to do that 97 times efficiently).  If I turn on 
> your print statements it complains that there is no CellData available.

You don't need do this at all, I am sure this working only when the
"Output Type" is set properly on the Properties panel. Just use the
output variable provided to you in the Programamble Filters
environment (similar to inputs, self, etc). In otherwords, if your
script, just remove the output = self.... line :).
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to