[vtkusers] mirror image of poly data

David Gobbi dgobbi at irus.rri.ca
Wed Jan 16 12:13:42 EST 2002


Hi Sarika,

It's a two step process.  First use vtkTransformPolyDataFilter
with a vtkTransform that does a flip -- use transform->SetScale(1,1,-1)
to do create the flip in e.g. the Z axis.

Then put the output of vtkTransformPolyDataFilter into vtkReverseSense
to fix the orientation of the polygons.

 - David

--
  David Gobbi, MSc                       dgobbi at irus.rri.ca
  Advanced Imaging Research Group
  Robarts Research Institute, University of Western Ontario

On Wed, 16 Jan 2002, Sarika Paranjape wrote:

>
>
> Hi all,
>
> Is there any class available to get mirror image of poly data (.vtk
> file)?  rotate in vtkTransform does not give mirror image of the data. It
> rotates it. So it doesn't work for the data having different front and
> back.
>
> any help greatly appreciated
>
> thanks
>
> sarika
>
>  
>
>
> ________________________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com.
> _______________________________________________ This is the private VTK
> discussion list. Please keep messages on-topic. Check the FAQ at: Follow
> this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>




More information about the vtkusers mailing list