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

Amy Squillacote amy.squillacote at kitware.com
Thu Sep 20 08:13:12 EDT 2007


Olumide wrote:
> Amy Squillacote wrote:
>> Yes. There is no problem with your file containing both POLYGONS and 
>> LINES.
>
> Thanks. Here's another n00b question. Is it possible to specify/give 
> color attributes to the lines and polys? (All the objects are rendered 
> as white paraview, so that I can't tell them apart.)
>
> Thanks,
>
> - Olumide
>
You need to assign scalar values to the cells in your dataset (i.e., 
cell data). You can do this in your data file as well. Look pages 5 - 11 
of this PDF: http://www.vtk.org/pdf/file-formats.pdf, or see pages 328 - 
336 in The VTK User's Guide.

- Amy

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




More information about the vtkusers mailing list