<div dir="ltr"><div>Sorry, forgot to mention that: After my pipeline renders, my points/data is gone.<br></div>Thanks in advance for any help or comments.<br><div><div><br>> I am doing upgrading our software from vtk 5.7 to vtk 6.0. But here is<br>
<div class="gmail_quote">
> a very strange problem. Exactly the same code works in vtk 5.7 but not<br>
> in vtk 6.0.<br>
><br>
> The code is the following:<br>
> -----------------------------------<br>
> std::cout << "before drawing pipeline: mb size: " <<<br>
> mb->GetNumberOfBlocks() << "pts: " << mb->GetNumberOfPoints() <<<br>
> std::endl;<br>
> vtkPointSet *ps = vtkPointSet::SafeDownCast(mb->GetBlock(0));<br>
> std::cout << "__1 mb: " << mb << "ps: " << ps << " mb size: " <<<br>
> mb->GetNumberOfBlocks() << " pts pts:" << ps->GetNumberOfPoints() <<<br>
> std::endl;<br>
><br>
> { // Drawing pipeline<br>
> m_Mapper = vtkPolyDataMapper::New();<br>
> m_Renderer->AddActor(m_Actor);<br>
> vtkCompositeDataGeometryFilter *sgfilter =<br>
> vtkCompositeDataGeometryFilter::New();<br>
> sgfilter->SetInputData(mb);<br>
><br>
> m_Mapper->ScalarVisibilityOff();<br>
> m_Mapper->SetInputConnection(0, sgfilter->GetOutputPort());<br>
><br>
> m_Actor->GetProperty()->SetRepresentation(1);<br>
> m_Actor->GetProperty()->SetColor(.7,.7,.7);<br>
> m_Actor->SetMapper(m_Mapper);<br>
><br>
> m_Renderer->GetRenderWindow()->Render();<br>
><br>
> //sgfilter->Delete();<br>
> //m_Mapper->Delete();<br>
> //m_Actor->Delete();<br>
><br>
><br>
> }<br>
> std::cout << "after drawing pipeline: mb size: " <<<br>
> mb->GetNumberOfBlocks() << "pts: " << mb->GetNumberOfPoints() <<<br>
> std::endl;<br>
> std::cout << "__2 mb: " << mb << "ps: " << ps << " mb size: " <<<br>
> mb->GetNumberOfBlocks() << " pts pts:" << ps->GetNumberOfPoints() <<<br>
> std::endl;<br>
> ---------------------------------------------------------------------------------------------------------------------<br>
><br>
> This code, when work in vtk 5.7, we can successfully read in plot3D<br>
> and tecplot files;<br>
> but when in vtk 6.0, we only can successfully read in tecplot file,<br>
> when read in plot3D file, the points data is gone. Please see attached<br>
> print screen shot.<br>
><br>
> I really don't know what is going on here, why the points data is<br>
> gone? It is very strange.<br>
><br>
> Any help is appreciated and thanks in advance.<br>
><br>
> Chao<br>
><br>
</div><br></div></div></div>