<font size=2 face="sans-serif">Hi all,</font>
<br><font size=2 face="sans-serif">during moving from vtk 6.2 to vtk 7
(with enabled OpenGL2 backend rendering) we found serious bug in vtkDepthSortPolyData
filter. There is a problem with generating of output vtkPolyData object.
There are usage of wrong sizes for vtkCellArray for Vert, Lines, Polys,...
Instead of real size the allocated size is used. Later in the rendering
request uninitialised cell ids are used and rendering can crash.</font>
<br><font size=2 face="sans-serif">I changed the code like this and it
works now. Should be good to fix it also in VTK7 source code repository.</font>
<br>
<br><font size=1 face="}">int vtkDepthSortPolyData::RequestData(</font>
<br><font size=1 face="}">    vtkInformation *vtkNotUsed(request),</font>
<br><font size=1 face="}">    vtkInformationVector **inputVector,</font>
<br><font size=1 face="}">    vtkInformationVector *outputVector)</font>
<br><font size=1 face="}">{</font>
<br><font size=1 face="}">.</font>
<br><font size=1 face="}">.</font>
<br><font size=1 face="}">.</font>
<br><font size=1 face="}">    vtkIdType *pOutputPolys = NULL;</font>
<br><font size=1 face="}">    if (nPolys)</font>
<br><font size=1 face="}">    {</font>
<br><font size=1 face="}">        vtkCellArray *outputPolyCells
= vtkCellArray::New();</font>
<br><font size=1 face="}">        outputPolyCells->SetNumberOfCells(nPolys);</font>
<br><font size=1 face="}">        output->SetPolys(outputPolyCells);</font>
<br><font size=1 face="}">        outputPolyCells->Delete();</font>
<br><font size=1 face="}">        vtkIdTypeArray *outputPolys
= outputPolyCells->GetData();</font>
<br><font size=1 face="}">-        outputPolys->SetNumberOfTuples(input->GetPolys()->GetSize());</font>
<br><font size=1 face="}">+        outputPolys->SetNumberOfTuples(input->GetPolys()->GetNumberOfConnectivityEntries());</font>
<br><font size=1 face="}">        pOutputPolys = outputPolys->GetPointer(0);</font>
<br><font size=1 face="}">    }</font>
<br><font size=2 face="sans-serif">.</font>
<br><font size=2 face="sans-serif">.</font>
<br><font size=2 face="sans-serif">.</font>
<br><font size=2 face="sans-serif">}</font>
<br>
<br><font size=2 face="sans-serif">Kind regards</font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif">Pavel Krebs</font>
<br><font size=2 face="sans-serif">Software Engineer</font>
<br>
<br><font size=1 face="sans-serif">AMBERG Engineering Brno, a.s.</font>
<br><font size=1 face="sans-serif">Ptašínského 10</font>
<br><font size=1 face="sans-serif">602 00 Brno - Czech Republic</font>
<br>
<br><font size=1 face="sans-serif">Phone: +420 541 432 662</font>
<br><font size=1 face="sans-serif">E-Mail: pkrebs@amberg.cz</font>
<br><a href=http://www.amberg.ch/at><font size=1 color=blue face="sans-serif">www.amberg.ch/at</font></a>
<br>
<br><font size=1 face="SansSerif">Follow us on: </font><a href=https://plus.google.com/u/0/115687889920250804536/posts><img src=cid:_2_0B6C39D00B6C365400355075C1258017 style="border:0px solid;"></a><font size=1 face="SansSerif"> </font><a href="http://www.leica-geosystems.com/facebook"></a><a href=www.facebook.com/AmbergTech><img src=cid:_1_0B6C40200B6C365400355075C1258017 style="border:0px solid;"></a><a href=www.facebool.com/AmbergTech></a><font size=1 face="SansSerif">
</font><a href="www.linkedin.com/company/amberg-technologies"><img src=cid:_1_0B6C46700B6C365400355075C1258017 width=23 height=23 style="border:0px solid;"></a><font size=1 face="SansSerif"> </font><a href=www.twitter.com/AmbergTech><img src=cid:_1_0B6C4ABC0B6C365400355075C1258017 style="border:0px solid;"></a><font size=1 face="SansSerif">
</font><a href=www.youtube.com/user/AmbergTechnologies><img src=cid:_1_0B6C4F080B6C365400355075C1258017 width=25 height=23 style="border:0px solid;"></a>
<br>
<br><font size=1 face="sans-serif">Visit us at these exhibitions, we are
looking forward to meeting you!</font>
<br><a href=http://hxgnlive.com/en/anaheim></a><a href=www.retc.org></a><img src=cid:_2_0B6C5DD40B6C577C00355075C1258017 style="border:0px solid;"><font size=1 color=blue face="sans-serif"> 
      </font><img src=cid:_2_0B6C601C0B6C577C00355075C1258017 style="border:0px solid;">
<br><font size=1 face="sans-serif">Hall 25, booth no. 314    
           Hall A3, booth
no. D3.001</font>
<br><font size=1 face="sans-serif">September 20 - 23, 2016    
            October 11 -
13, 2016</font>
<br><font size=1 face="sans-serif">Berlin, Germany      
               
 Hamburg, Germany</font>