[vtkusers] one actor to display multiple lines with different colors
Malcolm Drummond
malcolm at geovision.co.za
Fri Aug 16 12:29:57 EDT 2002
Hi Marc
Here's a script from when I was experimenting with adding wedges
dynamically - shouldn't be much trouble converting for lines. Also, you
might try using polydata instead of unstructured-grid.
Malcolm
----- Original Message -----
From: Marc Niethammer <marcn at ece.gatech.edu>
To: <vtkusers at public.kitware.com>
Sent: Friday, August 16, 2002 3:44 PM
Subject: [vtkusers] one actor to display multiple lines with different
colors
> Hi,
>
> I would like to display multiple lines (of possibly different
> color) using just one actor. Furthermore I should be able to add
> additional lines dynamically. I played around with the vtkUnstructuredGrid
> data structure, but was never able to get multiple colors to work.
>
> Does anyone know how to do this? (does anybody have a source code
> example?)
>
> Thanks for your help.
>
> -- Marc
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: addwedges.tcl
Type: application/octet-stream
Size: 1413 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020816/5d9d09bc/attachment.obj>
More information about the vtkusers
mailing list