[Paraview] Update Extent / Whole Extent mismatch error when using Programmable Filter

Cory Quammen cory.quammen at kitware.com
Tue Jan 5 11:37:42 EST 2016


Evan,

Sorry for the late reply.

You'll need to add a RequestUpdateExtent script with something like

import vtk
connection = 1 # maybe 0?
inInfo = self.GetInputInformation(0, connection)
wholeExtent =
inInfo.Get(vtk.vtkStreamingDemandDrivenPipeline.WHOLE_EXTENT())
inInfo.Set(vtk.vtkStreamingDemandDrivenPipeline.UPDATE_EXTENT(),
wholeExtent, len(wholeExtent))


HTH,
Cory

On Wed, Nov 4, 2015 at 5:47 PM, Evan Kao <tossin at gmail.com> wrote:

> Hi all,
>
> I'm trying to perform an operation on 2 data objects using the Python
> Programmable Filter, specifically 2 structured grids  However, one of them
> is in 2D:
>
>
>>
>
> This appears to force the output to be 2D as well, and I get the following
> error:
>
> ERROR: In
> C:\DBD\pvs-x64\paraview\src\paraview\VTK\Common\ExecutionModel\vtkStreamingDemandDrivenPipeline.cxx,
> line 857
>
> vtkPVPostFilterExecutive (0000000011A65E20): The update extent specified
> in the information for output port 0 on algorithm
> vtkPVPostFilter(0000000011985EB0) is 0 191 0 255 0 0, which is outside the
> whole extent 0 131 0 175 0 31.
>
> If I perform the following snippet:
>
> in1 = self.GetInputDataObject(0,0)
>
> in2 = self.GetInputDataObject(0,1)
>
> out1 = self.GetOutputDataObject(0)
>
>
> if in1.GetDimensions()[2] == 1:
>
> 	out1.DeepCopy(in2)
>
> else:
>
> 	out1.DeepCopy(in1)
>>
> The output data has only 2 dimensions (the green surface):
>
>
>>
> If I examine the data in the Spreadsheet View though, it seems all the
> information has been copied over (all points and cells), so only the view
> is incorrect.
>
> How do I fix this?
>
> Thanks,
> Evan Kao
>
>
>
> _______________________________________________
> 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
>
>


-- 
Cory Quammen
R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160105/d94d5b5c/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Paraview error2.png
Type: image/png
Size: 71933 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160105/d94d5b5c/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Paraview error1.png
Type: image/png
Size: 80553 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160105/d94d5b5c/attachment-0003.png>


More information about the ParaView mailing list