[vtkusers] This post has NOT been accepted by the mailing list yet.
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...
More information about the vtkusers