[vtkusers] Transform a clipping plane

WangQ wangq1979 at outlook.com
Tue Jan 5 07:32:08 EST 2016


Hello vtkusers,
I used vtkplane to clip a volume. Everything is find until the volume is transformed. The plane is still at the original position. I then applied vtkTransform to the plane, but the plane is still the same place. The code snippet is as below:
    vtkSmartPointer<vtkPlane> plane =        vtkSmartPointer<vtkPlane>::New();    plane->SetOrigin(0, tomo2DDims / 2, 0);    plane->SetNormal(0, 1, 0);    vtkSmartPointer<vtkTransform> transPlane = vtkSmartPointer<vtkTransform>::New();    transPlane->RotateY(90);    transPlane->RotateZ(90);    transPlane->RotateX(55);    transPlane->RotateY(3);    plane->SetTransform(transPlane);
    cutVolumeMapper->AddClippingPlane(plane);

Appreciate your help in advance!
cheers,
Chiang 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160105/b8827983/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lipeline-2.png
Type: image/png
Size: 56050 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160105/b8827983/attachment.png>


More information about the vtkusers mailing list