[vtkusers] vtkCutter->Update doesn't update the vtkCutter->GetOutput()

Jothy jothybasu at gmail.com
Tue Nov 2 10:42:54 EDT 2010


I think you need to update the plane "Origin" as well by
plane->Setorigin(x,x,x).

Jothy

On Tue, Nov 2, 2010 at 1:35 PM, nsarrasin <nsarrasin at phenix-systems.com>wrote:

>
> Hi all,
>
> Why the output of vtkCutter isn't update when I do Update()?
> I always get the same slice (the first to be compute).
>
>
> cutter->SetInput(polydata);
> cutter->SetCutFunction(plane);
>
> for(int step=0; step<nbsteps; step++)
> {
>        cutter->Update();
>        vtkAppendpolyData->AddInput( cutter->GetOutput() ); //here it's not
> updated
> !!!
>
>        //rotation of the plane normal
>        vtkMatrix4x4->MultiplyPoint(plane->GetNormal(), new_normal);
>
>        //update the plane
>        plane->SetNormal(new_normal);
> }
>
> Thanks for explaining me.
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/vtkCutter-Update-doesn-t-update-the-vtkCutter-GetOutput-tp3246712p3246712.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101102/d2bf71fb/attachment.htm>


More information about the vtkusers mailing list