<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">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>