[vtkusers] Question about TCL script

pablo p del castillo pablodecastillo at yahoo.es
Thu Feb 11 16:44:12 EST 2010


Hi,

To smooth and improve the visualization your best option is generate normals and shading.
Threre is very nice sample, find in google who name is "decimate.tcl"

Pablo

--- El jue, 11/2/10, David Doria <daviddoria+vtk at gmail.com> escribió:

De: David Doria <daviddoria+vtk at gmail.com>
Asunto: Re: [vtkusers] Question about TCL script
Para: "alireza ghahari" <ghahari_ar at yahoo.com>, vtkusers at vtk.org
Fecha: jueves, 11 de febrero, 2010 13:44

On Thu, Feb 11, 2010 at 1:08 AM, alireza ghahari <ghahari_ar at yahoo.com> wrote:

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

 Alireza,
Please keep the discussion on the mailing list so everyone can help and benefit from the discussion.

To smooth the mesh, you'll want to use a filter like this:http://www.vtk.org/Wiki/VTK/Examples/WindowedSincPolyDataFilter

I've never done anything complicated with scene lighting rendering - maybe someone else can help with this issue?
Thanks,

David

-----Adjunto en línea a continuación-----

_______________________________________________
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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100211/deab8a10/attachment.htm>


More information about the vtkusers mailing list