<div dir="ltr">Yes, you don't need to call update() everytime.<br><br><div class="gmail_quote">On Tue, Nov 2, 2010 at 3:59 PM, Nicolas Sarrasin <span dir="ltr"><<a 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;">
<div 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 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 href="mailto:nsarrasin@phenix-systems.com" target="_blank">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 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 href="http://www.kitware.com" target="_blank">www.kitware.com</a><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>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<div>-- <br>
<hr style="width: 100%; min-height: 2px;">
<table style="text-align: left; font-family: Verdana; width: 500px; min-height: 110px;" border="0" cellpadding="2" cellspacing="0">
<tbody>
<tr>
<td style="text-align: center; width: 80px; font-family: Verdana;"><a href="http://www.phenix-systems.com" target="_blank"><img style="border: 0px solid; width: 75px; min-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="http://www.phenix-systems.com" target="_blank">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 color="#36a629" size="2">Pensez environnement !</font><br>
<font color="#36a629" size="1">N'imprimez ce mail que si
c'est vraiment nécessaire</font></td>
</tr>
</tbody>
</table>
<br style="font-family: Verdana;">
</div>
</div>
</blockquote></div><br></div>