<div dir="ltr"><div><div><div><div><div>Hi all,<br><br></div>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:<br><br><img style="margin-right: 0px;" src="cid:ii_igle46160_150d4aabd1ce7a00" height="477" width="696"><br><br><br><br>This appears to force the output to be 2D as well, and I get the following error:<br><br><span style="font-family:"Courier";font-size:8.25pt;color:rgb(128,0,0)">ERROR: In C:\DBD\pvs-x64\paraview\src\paraview\VTK\Common\ExecutionModel\vtkStreamingDemandDrivenPipeline.cxx, line 857</span>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Courier";font-size:8.25pt;color:rgb(128,0,0)">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.</span></p><br></div>If I perform the following snippet:<br><br><span style="font-family:monospace,monospace">in1 <span style="color:rgb(102,102,102)">=</span> <span style="color:rgb(0,128,0)">self</span><span style="color:rgb(102,102,102)">.</span>GetInputDataObject(<span style="color:rgb(102,102,102)">0</span>,<span style="color:rgb(102,102,102)">0</span>)
</span><pre style="margin:0px;text-indent:0px"><span style="font-family:monospace,monospace">in2 <span style="color:rgb(102,102,102)">=</span> <span style="color:rgb(0,128,0)">self</span><span style="color:rgb(102,102,102)">.</span>GetInputDataObject(<span style="color:rgb(102,102,102)">0</span>,<span style="color:rgb(102,102,102)">1</span>)</span></pre><span style="font-family:monospace,monospace">
</span><pre style="margin:0px;text-indent:0px"><span style="font-family:monospace,monospace">out1 <span style="color:rgb(102,102,102)">=</span> <span style="color:rgb(0,128,0)">self</span><span style="color:rgb(102,102,102)">.</span>GetOutputDataObject(<span style="color:rgb(102,102,102)">0</span>)</span></pre><span style="font-family:monospace,monospace">
</span><pre style="margin:0px;text-indent:0px"><span style="font-family:monospace,monospace"><br></span></pre><span style="font-family:monospace,monospace">
</span><pre style="margin:0px;text-indent:0px"><span style="font-family:monospace,monospace"><span style="font-weight:600;color:rgb(0,128,0)">if</span> in1<span style="color:rgb(102,102,102)">.</span>GetDimensions()[<span style="color:rgb(102,102,102)">2</span>] <span style="color:rgb(102,102,102)">==</span> <span style="color:rgb(102,102,102)">1</span>:</span></pre><span style="font-family:monospace,monospace">
</span><pre style="margin:0px;text-indent:0px"><span style="font-family:monospace,monospace"><span style="background-color:rgb(255,0,0)"> </span>out1<span style="color:rgb(102,102,102)">.</span>DeepCopy(in2)</span></pre><span style="font-family:monospace,monospace">
</span><pre style="margin:0px;text-indent:0px"><span style="font-family:monospace,monospace"><span style="font-weight:600;color:rgb(0,128,0)">else</span>:</span></pre><span style="font-family:monospace,monospace">
</span><pre style="margin:0px 0px 12px;text-indent:0px"><span style="font-family:monospace,monospace"><span style="background-color:rgb(255,0,0)"> </span>out1<span style="color:rgb(102,102,102)">.</span>DeepCopy(in1)<br></span></pre></div>The output data has only 2 dimensions (the green surface):<br><br><img src="cid:ii_igle63k32_150d4ac1c8fe95a6" height="384" width="561"><br><br><br></div><div>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.<br></div><div><br></div>How do I fix this?<br><br></div>Thanks,<br>Evan Kao<br><div><div><div><div><div><br><br></div></div></div></div></div></div>