[vtkusers] Attaching meta data to vtkPolyline/vtkPolydata

David Doria daviddoria at gmail.com
Tue May 28 07:58:17 EDT 2013


On Fri, May 24, 2013 at 8:32 AM, Luke Bloy <luke.bloy at gmail.com> wrote:
> Hi all,
> In my application I generate a large number of polylines, which I then
> collect into a polydata object to store. What I would like to do is to
> attach some meta data to each polyline. I have thought about using the
> SetPointdata or SetCelldata of the polydata object but since this
> information is related directly to the lines themselves that seems like a
> less than ideal solution. SetCellData seems like it might be a possibility
> but I’m not entirely sure what it’s intended usage was.
>
>
>
> So I’m here for ideas on best to handle this.
>
>
>
> Thanks for the help.
>
> Best,
>
> Luke

It sounds like you're looking for FieldData:

http://www.vtk.org/Wiki/VTK/Tutorials/DataStorage

David



More information about the vtkusers mailing list