[vtkusers] Difference between cells and polygons

David E DeMarle dave.demarle at kitware.com
Fri Jul 13 10:27:27 EDT 2007


In vtk a polygon is just one type of cell. The vtkPolyData class can hold
VTK_VERTEX'es for example, as well as VTK_POLYGONS. See
http://www.vtk.org/doc/nightly/html/classvtkPolyData.html or the books for
more information. Use GetPoly's to get a list of only the polygonal cells,
then use getcellpoints and getcellneighbors on each cell id from that list.

cheers
Dave DeMarle


On 7/13/07, David Goldsmith <d_l_goldsmith at yahoo.com> wrote:
>
> Hi!  In plain English, what is (are) the difference(s) between cells and
> polygons?  And if I'm trying to loop over the triangles (are these cells or
> polygons?) created by vtkDelaunay2D from numbered points to get the point
> numbers of each triangle's vertices, as well as each triangle's neighboring
> triangle objects, which vtkPolyData method do I use for each of these
> tasks?  Thanks!
>
> DG
> Python: It just works! <http://www.python.org>
>
> ------------------------------
> Ready for the edge of your seat? Check out tonight's top picks<http://us.rd.yahoo.com/evt=48220/*http://tv.yahoo.com/>on Yahoo! TV.
>
> _______________________________________________
> 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/20070713/53ee56d9/attachment.htm>


More information about the vtkusers mailing list