[vtk-developers] BoostPrimMinimumSpanningTree doesn't copy Points to output

David Doria daviddoria+vtk at gmail.com
Sun May 2 16:33:43 EDT 2010


The number of output points (output->GetPoints()->GetNumberOfPoints()
) is correct, but it seems like all of the points are (0,0,0).

Here is an example:

http://www.rpi.edu/~doriad/VTK_List/vtkBoostPrimMinimumSpanningTree/BoostPrimMinimumSpanningTree.cxx

The output is:

Number of vertices: 3
Number of edges: 3
Number of points: 3
p: 1 0 0
Number of vertices: 3
Number of edges: 2
Number of points: 3
p: 0 0 0

where the last "p: 0 0 0" should be "p: 1 0 0" (like the first one).

By adding:

output->SetPoints(input->GetPoints());

after line 264 (at the very end of RequestData), this problem is fixed.

Anyone care to verify and commit?

Thanks,

David



More information about the vtk-developers mailing list