<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Nachricht</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<STYLE>BODY {
        FONT-SIZE: 9pt; FONT-FAMILY: Gulim
}
P {
        MARGIN-TOP: 2px; MARGIN-BOTTOM: 2px
}
</STYLE>
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=765244612-13062007><FONT face=Gulim size=2>I think the mistake
is in ine the line:</FONT></SPAN></DIV>
<DIV><SPAN class=765244612-13062007><FONT size=2> normals->
SetInputConnection(part -> GetOutputPort());</FONT></SPAN></DIV>
<DIV><SPAN class=765244612-13062007><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=765244612-13062007><FONT size=2><FONT face=Gulim>it should
be:</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=765244612-13062007><FONT size=2> normals->
SetInputConnection(deci -> GetOutputPort());</FONT></SPAN></DIV>
<DIV><SPAN class=765244612-13062007><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=765244612-13062007><FONT size=2><FONT face=Gulim>You just
render the original, because you do not use the decimated mesh as
input.</FONT></DIV>
<DIV><BR></DIV></FONT>
<DIV><FONT size=2><BR></FONT></DIV></SPAN>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left><FONT face=Tahoma
size=2>-----Ursprüngliche Nachricht-----<BR><B>Von:</B>
vtkusers-bounces+markus.erbacher=med.uni-heidelberg.de@vtk.org
[mailto:vtkusers-bounces+markus.erbacher=med.uni-heidelberg.de@vtk.org] <B>Im
Auftrag von </B>madness78@pusan.ac.kr<BR><B>Gesendet:</B> Mittwoch, 13. Juni
2007 14:45<BR><B>An:</B> vtkusers@vtk.org<BR><B>Betreff:</B> [vtkusers]
vtkDecimatePro Problem<BR><BR></FONT></DIV>
<P>I'm graduated student from South Korea.<BR>While looking for the data for
vtk, I found this page.<BR>Can I have a question?<BR>I have just started vtk
for my project.<BR>In vtk, there are four kinds of mesh simplication and now
I'm trying to do it.</P>
<P>This is the simple source from book.</P>
<P> </P>
<P>void main()<BR>{<BR> vtkPolyDataReader *part =
vtkPolyDataReader::New();<BR> part
->SetFileName("C:/VTK/vtkdata/Data/fran_cut.vtk");<BR> <BR>
vtkDecimatePro *deci = vtkDecimatePro::New();<BR> deci ->
SetInputConnection (part-> GetOutputPort());<BR> deci ->
SetTargetReduction( 0.9);<BR> deci -> PreserveTopologyOn();</P>
<P>
vtkPolyDataNormals *normals =vtkPolyDataNormals::New();<BR> normals->
SetInputConnection(part -> GetOutputPort());<BR> normals ->
FlipNormalsOn();</P>
<P> </P>
<P> vtkPolyDataMapper *partMapper =
vtkPolyDataMapper::New();<BR>
partMapper -> SetInputConnection(normals -> GetOutputPort());</P>
<P><BR>
vtkActor *partActor = vtkActor::New();<BR> partActor ->
SetMapper(partMapper);<BR> partActor -> GetProperty() ->
SetColor(1.0,0.49,0.25);</P>
<P> vtkRenderer *ren1 = vtkRenderer::New();<BR> vtkRenderWindow
*renWin =
vtkRenderWindow::New();<BR>
renWin -> AddRenderer (ren1);<BR> vtkRenderWindowInteractor *iren =
vtkRenderWindowInteractor::New();<BR>
iren -> SetRenderWindow(renWin);</P>
<P> ren1 -> AddActor( partActor);<BR> ren1 -> SetBackground (1
,1, 1);<BR> renWin -> SetSize (800, 800);</P>
<P> renWin -> Render();</P>
<P> </P>
<P> vtkCamera *cam1 =
vtkCamera::New();<BR>
cam1 -> SetClippingRange (0.0475572,
2.37786);<BR>
cam1 -> SetFocalPoint (0.052665, -0.129454
,-0.0573973);<BR>
cam1 -> SetPosition (0.327637, -0.116299,
-0.256418);<BR>
cam1 -> SetViewUp (-0.0225386, 0.999137, 0.034901);<BR> ren1 ->
SetActiveCamera(cam1);</P>
<P> iren -> Initialize();</P>
<P>
iren->Start();</P>
<P><BR>}</P>
<P><BR>I tried many things, but I couldn't get decimated image.<BR>Just, I
could get Original Image.<BR>What is the problem??<BR>Please answer
me.</P>
<P>Have a Nice day!</P>
<P> </P><IMG height=1
src="http://webmail.pusan.ac.kr/cgi-bin/setconfirm.cgi?k=118173872858336050277&u=madness78&d=pusan.ac.kr"
width=1 NOSEND="1"> </BLOCKQUOTE></BODY></HTML>