<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<br><br>To smooth and improve the visualization your best option is generate normals and shading.<br>Threre is very nice sample, find in google who name is "decimate.tcl"<br><br>Pablo<br><br>--- El <b>jue, 11/2/10, David Doria <i>&lt;daviddoria+vtk@gmail.com&gt;</i></b> escribió:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>De: David Doria &lt;daviddoria+vtk@gmail.com&gt;<br>Asunto: Re: [vtkusers] Question about TCL script<br>Para: "alireza ghahari" &lt;ghahari_ar@yahoo.com&gt;, vtkusers@vtk.org<br>Fecha: jueves, 11 de febrero, 2010 13:44<br><br><div id="yiv1297457223"><div><div class="gmail_quote">On Thu, Feb 11, 2010 at 1:08 AM, alireza ghahari <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:ghahari_ar@yahoo.com" target="_blank"
 href="/mc/compose?to=ghahari_ar@yahoo.com">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; -x-system-font: none;" valign="top"><div>Dear David</div>
<div>Hello.</div>
<div>&nbsp;</div>
<div>Attached, I have provided you with a *.<span>tcl</span> script developed in VTK 5.4.</div>
<div>&nbsp;</div>
<div>It is about an avatar face visualization. I used a polygonal file with triangle <span>strips</span></div>
<div>&nbsp;</div>
<div>topology to render the 3D vertices data imported from a Matlab script. I also used a look up </div>
<div>&nbsp;</div>
<div>table of Point Data to specific the rgba color of each faces.</div>
<div>&nbsp;</div>
<div>Running the script, (with data file ''natural.<span>vtk</span>'' 's&nbsp;root folder changed to your specified PC </div>
<div>&nbsp;</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>&nbsp;</div>
<div>sharpness of tetrahedral triangles could be less felt. I also need some effects&nbsp;make my </div>
<div>&nbsp;</div>
<div>model as realistic as it can may be a lighting model, other mapper, etc.</div>
<div>&nbsp;</div>
<div>Would you please provide me with some code/classes up coming this issue?</div>
<div>&nbsp;</div>
<div>Your attention is greatly appreciated.</div>
<div>&nbsp;</div>
<div>Sincerely yours,</div>
<div>VTK WWW Member</div>
<div>Alireza Ghahari</div></td></tr></tbody></table><br><br></blockquote><div>&nbsp;</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'll want to use a filter like this:</div><div><a rel="nofollow" target="_blank" href="http://www.vtk.org/Wiki/VTK/Examples/WindowedSincPolyDataFilter">http://www.vtk.org/Wiki/VTK/Examples/WindowedSincPolyDataFilter</a></div>
<div><br></div><div>I'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>
</div><br>-----Adjunto en línea a continuación-----<br><br><div class="plainMail">_______________________________________________<br>Powered by www.kitware.com<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></div></blockquote></td></tr></table><br>