Hello,

I'm trying to use a programmable filter to apply colors to an ExodusII data
set.  What I'd like to do is to use some of the cell data arrays to
calculate the rgb colors I want to apply, and then insert them into the
data set for display.

I found a partial answer (maybe?) in the mailing list archives
http://www.paraview.org/pipermail/paraview/2012-February/024097.html

>From that what I assume I have to do is create a vtkUnsignedCharArray with
length equal to the number of cells in the model, assign my colors, and
then display.  The problem I'm having is with the ExodusIIReader data
structure.

1) I understand the ExodusIIReader is, well, a reader -- it will generate
the data blocks, it's not actually representing the data.  But I don't get
how to access at the generated data.  Say I have a single block of elements
called 'hexes' with cell data 'stresses', how do I access that cell data in
the programmable filter?

2) Where should I insert the new array of rgb colors in the filter output
so that I can display them?  (Answering 1 may answer this equation).

Thanks,

Mark
_______________________________________________
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to