[vtkusers] vtkPolyData DataSet

saurisaran at aol.com saurisaran at aol.com
Thu Apr 2 09:03:18 EDT 2009


Hi,
i am still new to VTK but i have al little problem. i want to create a vtkPolyData DataSet from scratch. In my programm
i have a list of point with their coordinates and a list of triangles. A triangle is defined by the indices of the pointlist points.
My question is how can I create the DataSet. I use the Java wrapper classes. My first step was to create an vtkPoints
object and use the insertnextpoint method with the coordinates. Now i have the problem with the triangles/polygons.
I don´t know to handle with the vtkCellArray or how i can create a triangle/polygon and insert it in vtkCellArray.
Bye then arne.
________________________________________________________________________
AOL eMail auf Ihrem Handy! Ab sofort können Sie auch unterwegs Ihre AOL email abrufen. Registrieren Sie sich jetzt kostenlos.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090402/a3783839/attachment.htm>


More information about the vtkusers mailing list