<div dir="ltr"><p class="">I am trying to update my code to migrate to VTK6 according to:<br><br><a href="http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Removal_of_Update">http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Removal_of_Update</a><br><br>According to the examples on that site, I understand that:<br><br> vtkDataObject* dobj = someAlgorithm->GetOutput(1);<br> dobj->Update();<br><br>should become:<br><br> someAlgorithm->Update(1);<br><br><br>However, I don’t know how to deal with the following pattern:<br><br>void PointAreaComputer::WriteIntoFile(char *fileName)<br>{<br> vtkPolyDataWriter* writer=vtkPolyDataWriter::New();<br> writer->SetFileName(fileName);<br> m_mesh->GetPointData()->SetScalars(m_pointsArea);<br> writer->SetInputData(m_mesh);<br> writer->Update();<br> writer->Write();<br> writer->Delete();<br>}<br><br>What should I do to make this compatible with VTK6?</p><p class="">Cheers,<br>@rno<br></p><div><div class="gmail_signature"><div dir="ltr"><div dir="ltr"></div></div></div></div>
</div>