[vtkusers] vtkPolyData
Ahmed Mahmoud
ahmedmm at gega.net
Tue May 29 12:40:36 EDT 2001
Hello All,
I have a 3D file I want to access the data attributes. I used this code(vtk
2.3 )
vtkPolyDataReader *reader=vtkPolyDataReader::New();
reader->SetFileName (STUDY);
reader->Update ();
reader->GetOutput()->ReleaseDataFlagOn();
vtkPolyData *poly =vtkPolyData ::New();
poly = reader ->GetOutput ();
vtkScalars * scalar=vtkScalars :: New();
scalar = poly->GetPointData()->GetScalars();
but I found that scalar is NULL . What is the reason?
Thank you.
Ahmed
More information about the vtkusers
mailing list