[vtkusers] Migration to VTK6

Arno Klein binarybottle at gmail.com
Wed Dec 2 17:56:12 EST 2015


I am trying to update my code to migrate to VTK6 according to:

http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Removal_of_Update

According to the examples on that site, I understand that:

    vtkDataObject* dobj = someAlgorithm->GetOutput(1);
    dobj->Update();

should become:

    someAlgorithm->Update(1);


However, I don’t know how to deal with the following pattern:

void PointAreaComputer::WriteIntoFile(char *fileName)
{
    vtkPolyDataWriter* writer=vtkPolyDataWriter::New();
    writer->SetFileName(fileName);
    m_mesh->GetPointData()->SetScalars(m_pointsArea);
    writer->SetInputData(m_mesh);
    writer->Update();
    writer->Write();
    writer->Delete();
}

What should I do to make this compatible with VTK6?

Cheers,
@rno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20151202/ee91e51a/attachment.html>


More information about the vtkusers mailing list