[vtkusers] assign different colors to cells in vtk unstructured grid

Bill Lorensen bill.lorensen at gmail.com
Sun Dec 1 07:51:24 EST 2013


Here are two approaches:
http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ColorCells
http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ColorCellsWithRGB


On Sun, Dec 1, 2013 at 4:23 AM, sepideh20 <sce2020sahaf at yahoo.com> wrote:
> Hello all,
>
> Actually I have built an unstructured grid including several cells (each
> cell is a hexahedron). Now I want to assign different colors to each of
> these cells. I do not know how I should do that.
>
> Please kindly help me with any idea or any sample code.
>
> Many many thanks in advance.
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/assign-different-colors-to-cells-in-vtk-unstructured-grid-tp5724757.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