Hi Alireza,<br><br>For smooth shading, it&#39;s necessary to the data through vtkPolyDataNormals.  This will compute a normal at each vertex.  These normals are used for smooth lighting computations.<br><br>   David<br><br>

<br>On Thu, Feb 11, 2010 at 5:44 AM, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div><div class="gmail_quote">On Thu, Feb 11, 2010 at 1:08 AM, alireza ghahari <span dir="ltr">&lt;<a href="mailto:ghahari_ar@yahoo.com" target="_blank">ghahari_ar@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">

<div>Dear David</div>
<div>Hello.</div>
<div> </div>
<div>Attached, I have provided you with a *.<span>tcl</span> script developed in VTK 5.4.</div>
<div> </div>
<div>It is about an avatar face visualization. I used a polygonal file with triangle <span>strips</span></div>
<div> </div>
<div>topology to render the 3D vertices data imported from a Matlab script. I also used a look up </div>
<div> </div>
<div>table of Point Data to specific the rgba color of each faces.</div>
<div> </div>
<div>Running the script, (with data file &#39;&#39;natural.<span>vtk</span>&#39;&#39; &#39;s root folder changed to your specified PC </div>
<div> </div>
<div>folder in TCL file 3rd line) you will see it renders, but I want to smooth the faces so that the </div>
<div> </div>
<div>sharpness of tetrahedral triangles could be less felt. I also need some effects make my </div>
<div> </div>
<div>model as realistic as it can may be a lighting model, other mapper, etc.</div>
<div> </div>
<div>Would you please provide me with some code/classes up coming this issue?</div>
<div> </div>
<div>Your attention is greatly appreciated.</div>
<div> </div>
<div>Sincerely yours,</div>
<div>VTK WWW Member</div>
<div>Alireza Ghahari</div></td></tr></tbody></table><br><br></blockquote><div> </div>Alireza,<div><br></div><div>Please keep the discussion on the mailing list so everyone can help and benefit from the discussion.</div><div>


<br></div><div>To smooth the mesh, you&#39;ll want to use a filter like this:</div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/WindowedSincPolyDataFilter" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/WindowedSincPolyDataFilter</a></div>


<div><br></div><div>I&#39;ve never done anything complicated with scene lighting rendering - maybe someone else can help with this issue?</div><div><br clear="all">Thanks,<br><br></div><div>David</div></div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<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></blockquote></div><br>