[vtkusers] This post has NOT been accepted by the mailing list yet.

David Doria daviddoria at gmail.com
Mon Dec 2 09:04:59 EST 2013

On Sun, Dec 1, 2013 at 3:47 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 how I should do that.
> Please kindly help me with any idea or any sample code.
> Many many thanks in advance.

You have to create a color array and set that array as the "scalars" of
your cells. Here is an example:


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20131202/ceb8fa93/attachment.htm>

More information about the vtkusers mailing list