[vtkusers] how to access to vertices,faces... with vtk

Syn3DDM haythem.jaidi at hotmail.com
Fri Mar 23 13:37:27 EDT 2007


I am a new user of vtk. I am trying to access vertices,faces in a charged
mesh.
i tried this code but it doesn't work:

vtkOBJReader *OBJreader=vtkOBJReader::New();

OBJreader->SetFileName("F:\\Y6689_VENUS.obj");

vtkPolyData *mydata=vtkPolyData::New();

mydata=OBJreader->GetOutput();

vtkPoints *mypoints=mydata->GetPoints();//this instruction does'nt work
                                                           //it causes a
problem when I execute the program!

this code doesn't work. I have even tried with vtkPLYReader but also it
doesn't work!
If someone has a solution please help me.
-- 
View this message in context: http://www.nabble.com/how-to-access-to-vertices%2Cfaces...-with-vtk-tf3455320.html#a9639837
Sent from the VTK - Users mailing list archive at Nabble.com.




More information about the vtkusers mailing list