<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Hi Randall,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Thanks a lot for the help.</span></font><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Naim Himrane<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span lang=FR-CA style='font-size:12.0pt'>ElectromagneticWorks
Inc.</span><o:p></o:p></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Randall Hand
[mailto:randall.hand@gmail.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> August 18, 2006 12:11 PM<br>
<b><span style='font-weight:bold'>To:</span></b> Naim; VTK Users<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [vtkusers] Continuous
colors</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>The problem isn't in your
filters, it's in your Mapper.. L?ook at vtkMapper's
InterpolateColorsBeforeMapping ( <a
href="http://www.vtk.org/doc/nightly/html/classvtkMapper.html#9e0262837bb18752277a6a9c7b972583">http://www.vtk.org/doc/nightly/html/classvtkMapper.html#9e0262837bb18752277a6a9c7b972583
</a>) .. You probably want to InterpolateColorsBeforeMappingOff, so that it
will use the 1D Texture.<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><span class=gmailquote><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>On 8/18/06, <b><span style='font-weight:bold'>Naim</span></b>
&lt;<a href="mailto:naim@electromagneticworks.com">
naim@electromagneticworks.com</a>&gt; wrote:</span></font></span><o:p></o:p></p>

<div>

<div link=blue vlink=purple>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Hi all,<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>I used an
unstructured grid to plot a continuous fringe (see ContinuousFringe.jpg) below.
The graduation of colors doesn't look smooth in the circled area, it goes from
red to blue right away and not as suppose to be gradient from red to blue. I
used this portion of code to plot my unstructured grid:<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<p><font size=2 color=green face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:green'>// convert from unstructuredGrid to
PolyData</span></font><o:p></o:p></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>vtkGeometryFilter *extract = vtkGeometryFilter::New();</span></font><o:p></o:p></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
extract-&gt;SetInput(m_pUnstructuredGrid);</span></font><o:p></o:p></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; extract-&gt;GetOutput()-&gt;ReleaseDataFlagOn();</span></font><o:p></o:p></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>vtkPolyDataNormals *normals = vtkPolyDataNormals::New(); <font
color=green><span style='color:green'>// none</span></font></span></font><o:p></o:p></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
normals-&gt;SetInputConnection(extract-&gt;GetOutputPort());</span></font><o:p></o:p></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
normals-&gt;SetFeatureAngle(60.0);</span></font><o:p></o:p></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color=green><span
style='color:green'>normals-&gt;GetOutput()-&gt;ReleaseDataFlagOn();</span></font></span></font><o:p></o:p></p>

<p><font size=2 color=green face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:green'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>vtkStripper *stripper = vtkStripper::New(); <font color=green><span
style='color:green'>// none</span></font></span></font><o:p></o:p></p>

<p style='margin-bottom:12.0pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
stripper-&gt;SetInputConnection(normals-&gt;GetOutputPort());</span></font><o:p></o:p></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Please
take a look at the attached file and let me know if&nbsp; i am using the right
filters to do my plot.<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Thanks.<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span lang=FR-CA style='font-size:12.0pt'>Naim
Himrane </span><o:p></o:p></font></p>

<p><font size=3 face="Times New Roman"><span lang=FR-CA style='font-size:12.0pt'>ElectromagneticWorks
Inc.</span><o:p></o:p></font></p>

<p><font size=2 face=Arial><span lang=FR-CA style='font-size:10.0pt;font-family:
Arial'>&nbsp;</span></font><o:p></o:p></p>

</div>

</div>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a
href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers
</a><br>
<br>
<br>
<br clear=all>
<o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br clear=all>
<br>
-- <br>
----------------------------------------<br>
Randall Hand<br>
Visualization Scientist<br>
ERDC MSRC-ITL <o:p></o:p></span></font></p>

</div>

</body>

</html>