[vtk-developers] Big in vtkTreeReader - doesn't get Points correctly
David Doria
daviddoria+vtk at gmail.com
Fri May 21 15:08:26 EDT 2010
When reading a tree from a file, the Points coordinates are lost.
After tracing through vtkTreeReader.cxx, the reader gets the points
correctly initially. It then adds edges to a "builder":
builder->AddEdge(parent, child);
then when it copies the builder to the output:
output->GetPoints is correct here...
//copy the builder to the output
if (!output->CheckedShallowCopy(builder))
'output' no longer has the correct point coordinates (they are all zero).
Here is an example that creates a tree, writes it (correctly), then
fails to have the points when it reads it back in.
http://www.rpi.edu/~doriad/VTK_List/Problems/TreeReader/
Can someone who is familiar with this reader please take a look?
Thanks,
David
More information about the vtk-developers
mailing list