[vtkusers] Can a VTK file contain POLYGONS and LINES?

Amy Squillacote amy.squillacote at kitware.com
Thu Sep 13 08:32:03 EDT 2007


Yes. There is no problem with your file containing both POLYGONS and LINES.

- Amy

Olumide wrote:
> Like this:
>
> # vtk DataFile Version 1.0
> tes File
> ASCII
>
> DATASET POLYDATA
> POINTS 8 float
> 5.411033 3.118523 0.000000
> 4.881898 2.831560 0.773217
> 4.942752 2.831560 0.000000
> 5.411033 3.118523 0.000000
> 5.344419 3.118523 -0.846471
> 4.942752 2.831560 0.000000
> 0.378225 0.347981 0.000000
> 0.366649 0.347656 0.000000
>
> POLYGONS 2 8
> 3 0 1 2
> 3 3 4 5
>
> LINES 1 3
> 2 6 7
>
>
> Thanks.
>
> _______________________________________________
> 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
>

-- 
Amy Squillacote
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
Phone: (518) 371-3971 x106




More information about the vtkusers mailing list