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

Lim, Theodore T.Lim at hw.ac.uk
Thu Mar 29 06:02:12 EDT 2007


Hi,
 
Try using OBJreader->UpdateWholeExtent();
 
Theo.

________________________________

From: vtkusers-bounces+t.lim=hw.ac.uk at vtk.org on behalf of Syn3DDM
Sent: Fri 23/03/2007 17:37
To: vtkusers at vtk.org
Subject: [vtkusers] how to access to vertices,faces... with vtk




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.

_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070329/81890683/attachment.htm>


More information about the vtkusers mailing list