[Paraview] [EXTERNAL] Map scalars, User question

Scott, W Alan wascott at sandia.gov
Tue Aug 12 19:40:13 EDT 2014


I figured it out.  Thanks.

The block of VTK that works is as follows.  Makes a 3 component array of UInt8's.

        <DataArray type="UInt8" NumberOfComponents="3" Name="temperature" format="ascii">
          0 0 0
          255 0 0
          0 255 0
          0 0 255
          255 255 0
          255 0 255
          255 255 0
          255 255 255
          64 64 64
          128 128 128
        </DataArray>


Alan

From: ParaView [mailto:paraview-bounces at paraview.org] On Behalf Of Scott, W Alan
Sent: Tuesday, August 12, 2014 4:50 PM
To: paraview at paraview.org
Subject: [EXTERNAL] [Paraview] Map scalars, User question

I have a user that is trying to do the following:


I am trying to do something very similar to what is shown under "Visualizing the Microstructure" at the following site:

http://dream3d.bluequartz.net/Documentation/DREAM3D/tutorialebsdreconstruction.html

I believe they essentially associate IPFColor_Z with red, green, and blue colors in the XDMF file.  Then, they load the file into Paraview and when they disable the "Map Scalars" option, Paraview just displays the proper RGB color for IPFColor_Z.

Is this possible with exodus instead of XDMF?  So far I have been unsuccessful.




Anyone have any ideas?

I have been able to create a .vtk file, with a UInt8 array.  When I turn off Map Scalars, this variable correctly paints from black to white.  But, if I try to create three UInt8's, for RGB, I can't get it to work.  I even tried creating an array in the calculator.

So, I believe the part that concerns ParaView is as follows - how to I create a dataset that  has 0xRRGGBBAA type data, that Paraview will just display as its color?  For instance, if I have 0xff000000, I want to see red.

Ideas?

Thanks,

Alan



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20140812/3e12d124/attachment.html>


More information about the ParaView mailing list