[Paraview] [EXT] Re: Stupid question on Programmable Source

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Fri Oct 23 13:35:22 EDT 2015


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 :).


More information about the ParaView mailing list