Hey Yotam, (Please reply to the list, also, so everyone can contribute and learn together)
The Table to Points filter creates polydata with many points but one cell. (You can see this in teh Information tab.) The Threshold filter (from the documentation) "...extracts cells that have point or cell scalars in the specified range." So, you need to run another filter before the threshold which breaks your data out into one cell per point. The Triangulate filter happens to do this, so apply that before the Threshold. (Maybe someone else has a solution which is more intuitive, but this works...) A small point: you should probably remove the trailing comma at the end of your header line -- it's causing ParaView to create an attribute column with undefined values. This wasn't affecting your results, it just isn't necessary if you remove the extra comma. Talk to you later, -Eric On Nov 17, 2010, at 2:59 AM, Yotam Avital wrote: > Hi Eric. > > I think that my paraView installation is screwed up since I can't do any > treshhold filtering. If I set my upper limit to 99 then all the molecules > disappear. Is there any way to confirm that? At any rate, here are the first > several lines of my file > > > x,y,z,val,LID, > 0,0,0,100,-1 > 0,0,8.8,100,-1 > 0,30.8,0,100,-1 > 0,30.8,8.8,100,-1 > 30.8,0,0,100,-1 > 30.8,0,8.8,100,-1 > 30.8,30.8,0,100,-1 > 30.8,30.8,8.8,100,-1 > 1.20015, 1.19936, 1.49993, 1, 1 > 1.19988, 1.19979, 2.49993, 2, 1 > 1.19961, 1.20023, 3.49993, 3, 1 > 1.1999, 1.20003, 6.80002, 1, 2 > 1.19989, 1.19976, 5.80002, 2, 2 > 1.19988, 1.19949, 4.80002, 3, 2 > 1.20016, 2.40075, 1.49995, 1, 3 > 1.19995, 2.40032, 2.49995, 2, 3 > 1.19973, 2.39989, 3.49995, 3, 3 > 1.19957, 3.59985, 1.50002, 1, 4 > 1.19998, 3.59983, 2.50002, 2, 4 > > Thank you > > Yotam > > On Tue, Nov 16, 2010 at 4:03 PM, Eric E. Monson <[email protected]> wrote: > Hey Yotam, > > Personally, I would first do a Threshold filter to remove the points with > value 100 rather than try to adapt the color map to these "unwanted" points > or make another data file. Then, just remove the 100 value color from your > map and it might be more obvious that it's working. > > I'm not sure why it doesn't work the way you have it now, though. When I load > this colormap in to ParaView 3.8.1 it looks fine to me. (You're mixing commas > and periods for the decimal markers, but it seems to deal with that fine...) > If you hit "Edit Color Map" to get to the Color Scale Editor, does the scale > (min,max) of your color map range match your data values range? Can you check > in the Information tab and make sure your scalar values are getting read in > properly? > > -Eric > > ------------------------------------------------------ > Eric E Monson > Duke Visualization Technology Group > > > On Nov 16, 2010, at 3:15 AM, Yotam Avital wrote: > >> 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: >> 8 stationary particles. I used to set the size of the display as constant >> (marking the corners positions). They get a value of 100 >> 1000 Hydrophilic particles. It doesn't matter what are those, it is only >> important to know that they get a value of 1 >> 1000 Hydrophobic particles which get the value of 2. >> 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 > >
_______________________________________________ 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
