[vtkusers] reducing triangles
Patrick Schuska
schuska at dbi.udel.edu
Wed Oct 29 11:05:15 EST 2003
Hi
I`m reading triangle datas out of an object file. I have no problems to
render them.
But when I try to reduce the triangles, the result looks weird. It only
deletes some triangles and doesn`t compute the others new, so that I get
a closed survey, instead, I get a lot of holes in my image.
What is in my code wrong, or what can I do, so that I got a reduced,
good looking result???
# Create the reader for the data
vtkOBJReader reader1
reader1 SetFileName "D:/amira/fulltriangles/kidneysfull.obj"
vtkDecimatePro decimator
decimator SetInput [reader1 GetOutput]
decimator SetTargetReduction 0.77
decimator PreserveTopologyOn
vtkSmoothPolyDataFilter smoother
smoother SetInput [decimator GetOutput]
smoother SetNumberOfIterations 50
vtkPolyDataNormals normals
normals SetInput [smoother GetOutput]
normals FlipNormalsOn
vtkPolyDataMapper mapOutline1
mapOutline1 SetInput [normals GetOutput]
Greetz, Patrick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20031029/786fb6af/attachment.htm>
More information about the vtkusers
mailing list