Color gradient on vtkLine

"Michel Mürner" <[email protected]> Wed, 27 Feb 2019 14:31:26 +0100
Newsgroups gmane.comp.lib.vtk.user
Message-ID <trinity-6f11c1a7-9a82-4e9f-8636-0e2818da2c03-1551274286442@3c-app-gmx-bs37>
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