Hi guys.

I'm using paraview to generate a display the results of my lipids
simulation.

Each runtime I print to file exactly 3008 points which are divided into 4
types:

   1. 8 stationary particles. I used to set the size of the display as
   constant (marking the corners positions). They get a value of 100
   2. 1000 Hydrophilic particles. It doesn't matter what are those, it is
   only important to know that they get a value of 1
   3. 1000 Hydrophobic particles which get the value of 2.
   4. 1000 Hydrophobic particles which are different that those in the
   previous line but should appear similar on the output. They get a value of
   3.


What I want is to create is an image with 2 colors for each of the 3000
particles. The image should have red color for particle number 1 and any
other color for particles number 2 and 3. I also want to remove the 8
stationary particles of value 100 which I think I can do by creating another
file.

I tried to create a costume color map:

<ColorMap name="a" space="RGB">
<Point x="100" o="1" r="0" g="0" b="0"/>
<Point x="1" o="1" r="1,0" g="0" b="0"/>
<Point x="2" o="1" r="0" g="1.0" b="0"/>
<Point x="3" o="1" r="0" g="1.0" b="0"/>
</ColorMap>

but I get a gradient between red and black.

What have I missed?

Thanks.
_______________________________________________
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