[vtkusers] vtkpolydata please help
Ahmed Mahmoud
ahmedmm at gega.net
Sat Jun 2 03:36:20 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 ();
poly->Update ();
vtkScalars * scalar=vtkScalars :: New();
scalar = poly->GetPointData()->GetScalars();
but I found that scalar is NULL . What is the reason?
Thank you.
Ahmed
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list