<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#003333">
<font size="-1"><font face="Tahoma">Thanks for your reply,<br>
<br>
but i still have the same result.<br>
<br>
To force the update I have to use a temporary vtkPolyData with
deepcopy such as :<br>
<br>
</font></font>for(int step=0; step<nbsteps; step++)<br>
{<br>
cutter->Update();<br>
<br>
vtkPolyData* tmp = vtkpolyData::New(); <br>
tmp->DeepCopy( cutter->GetOutput() );<br>
<br>
vtkAppendpolyData->AddInput( tmp ); //here it's updated<br>
<br>
<font size="-1"><font face="Tahoma">But it's increase the time of
execution and I'd like to optimize it as much as possible.<br>
<br>
I thought Update() was called everytime GetOutput() was called,
isn't it the case ?<br>
<br>
<br>
</font></font>Le 02/11/2010 15:42, Jothy a écrit :
<blockquote
cite="mid:AANLkTi=3-g0YpA9TWPPqiNVXL+V8gYJbi6LU24fEXOR=@mail.gmail.com"
type="cite">
<div dir="ltr">I think you need to update the plane "Origin" as
well by plane->Setorigin(x,x,x).<br>
<br>
Jothy<br>
<br>
<div class="gmail_quote">On Tue, Nov 2, 2010 at 1:35 PM,
nsarrasin <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:nsarrasin@phenix-systems.com">nsarrasin@phenix-systems.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;"><br>
Hi all,<br>
<br>
Why the output of vtkCutter isn't update when I do Update()?<br>
I always get the same slice (the first to be compute).<br>
<br>
<br>
cutter->SetInput(polydata);<br>
cutter->SetCutFunction(plane);<br>
<br>
for(int step=0; step<nbsteps; step++)<br>
{<br>
cutter->Update();<br>
vtkAppendpolyData->AddInput(
cutter->GetOutput() ); //here it's not updated<br>
!!!<br>
<br>
//rotation of the plane normal<br>
vtkMatrix4x4->MultiplyPoint(plane->GetNormal(),
new_normal);<br>
<br>
//update the plane<br>
plane->SetNormal(new_normal);<br>
}<br>
<br>
Thanks for explaining me.<br>
<br>
--<br>
View this message in context: <a moz-do-not-send="true"
href="http://vtk.1045678.n5.nabble.com/vtkCutter-Update-doesn-t-update-the-vtkCutter-GetOutput-tp3246712p3246712.html"
target="_blank">http://vtk.1045678.n5.nabble.com/vtkCutter-Update-doesn-t-update-the-vtkCutter-GetOutput-tp3246712p3246712.html</a><br>
Sent from the VTK - Users mailing list archive at
Nabble.com.<br>
_______________________________________________<br>
Powered by <a moz-do-not-send="true"
href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a
moz-do-not-send="true"
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
moz-do-not-send="true"
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 moz-do-not-send="true"
href="http://www.vtk.org/mailman/listinfo/vtkusers"
target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>Test_Signature</title>
<hr style="width: 100%; height: 2px;">
<table style="text-align: left; font-family: Verdana; width:
500px; height: 110px;" border="0" cellpadding="2"
cellspacing="0">
<tbody>
<tr>
<td style="text-align: center; width: 80px; font-family:
Verdana;"><a href="www.phenix-systems.com"><img
style="border: 0px solid; width: 75px; height: 66px;"
alt="Logo Phenix Systems"
src="cid:part1.09040304.07070304@phenix-systems.com"></a></td>
<td style="width: 506px; font-family: Verdana;"><small
style="color: rgb(51, 102, 102);"><span
style="font-weight: bold;">Nicolas Sarrasin -
Ingénieur Developpement 3D CFAO</span><br
style="background-color: transparent;">
<a style="background-color: transparent;
text-decoration: underline;"
href="www.phenix-systems.com">Phenix systems</a><br
style="background-color: transparent; font-style:
italic;">
<small><span style="background-color: transparent;
font-style: italic;"> Parc Européen d'Entreprises </span><br
style="background-color: transparent; font-style:
italic;">
<span style="background-color: transparent;
font-style: italic;">
rue Richard Wagner - 63200 Riom FRANCE </span><br
style="font-style: italic;">
<span style="font-style: italic;">
tel : +33 (0)4 73 33 45 85 | fax : +33 (0)4 73 33 45
86 </span></small></small></td>
</tr>
<tr style="font-family: Verdana;">
<td colspan="2" rowspan="1" style="width: 80px;"><font
size="2" color="#36a629">Pensez environnement !</font><br>
<font size="1" color="#36a629">N'imprimez ce mail que si
c'est vraiment nécessaire</font></td>
</tr>
</tbody>
</table>
<br style="font-family: Verdana;">
</div>
</body>
</html>