[vtkusers] Help! scalar colors to RGB colors

Bill Lorensen bill.lorensen at gmail.com
Wed Mar 5 08:58:30 EST 2014


http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ColorCells


On Wed, Mar 5, 2014 at 7:07 AM, -Daniel- <ich_daniel at habmalnefrage.de> wrote:
> Hi all,
>
> can I change scalar colors to RGB colors?
>
>
> //code snippet
> ..
> polydata.GetPointData().SetScalars(colors);
> polydata.Modified();
>
> vtkPolyDataMapper mapper = new vtkPolyDataMapper();
> mapper.SetInputData(polydata);
> mapper.SetScalarModeToUsePointData();
> mapper.ScalarVisibilityOn();
> ..
> //end of code snippet
>
> Maybe changes in the vtkPolydataMapper?
>
>
> Any suggestions or hints?
>
>
>
>
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/Help-scalar-colors-to-RGB-colors-tp5726198.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtkusers mailing list