Color gradient on vtkLine

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Color gradient on vtkLine

"Michel Mürner"
At the moment I use vtkLine which is added to the vtkPolyData then on the polyData the color is set using "polyData->GetCellData()->SetScalars(colors);". This works fine if I want to set a single color per line. Is there a way to set a color gradient for each line?

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtkusers