<HTML>
<HEAD>
<TITLE>Re: [Paraview] coloring by cell normals not preserved in undo stack</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Geoff,<BR>
<BR>
The magnitude of the cell normals (which is what you are coloring by) should be 1 for all of them. The different colors you are seeing initially are simply due to numerical error. As you are doing undo/redo, some (non-significant) precision must be lost. I don’t know why there is a change, but it should not be an issue. When I try the undo/redo with color mapping with changes in the significant digits, the results are consistent. Let us know if you come with a counterexample.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 12/2/08 9:13 AM, "Geoff Draper" <<a href="draperg@cs.utah.edu">draperg@cs.utah.edu</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi all,<BR>
<BR>
I'm not sure if this is a bug or not, but here's how to duplicate what I'm<BR>
seeing:<BR>
<BR>
1. Create a basic object (Sources -> Sphere, then click Apply)<BR>
2. On the Display tab, change "Color by: Solid Color" to "Color by:<BR>
cellNormals". Notice the different colors on the faces of the sphere.<BR>
3. Click the Undo button. The sphere returns to the default color.<BR>
4. Click the Redo button. The sphere is now colored, but now each face has<BR>
the same color, instead of the mixture as before the Undo.<BR>
<BR>
Is this expected/correct? (I'm running yesterday's snapshot from CVS,<BR>
but have noticed this behavior in previous builds, too. My OS is Windows<BR>
XP and my compiler is Visual C++ 2008 Express Edition.)<BR>
<BR>
Thank you for any insight you could offer!<BR>
--Geoff<BR>
_______________________________________________<BR>
ParaView mailing list<BR>
<a href="ParaView@paraview.org">ParaView@paraview.org</a><BR>
<a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="1"><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:7.5pt'><BR>
**** Kenneth Moreland<BR>
*** Sandia National Laboratories<BR>
*********** <BR>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>