[vtkusers] mirror image of poly data

David Gobbi dgobbi at irus.rri.ca
Wed Jan 16 12:22:52 EST 2002


Hi Sarika,

Put the ReverseSense in anyway.  Otherwise the inside vs.
outside of the polydata will be swapped, and also if the
data has normals they will point in the wrong direction
with respect to the polygons.

 - David

On Wed, 16 Jan 2002, Sarika Paranjape wrote:

>
> Hi david,
>
> thanks! it helpes a lot! Actually SetScale alone worked!
>
> -sarika
>
> >From: David Gobbi
> >To: Sarika Paranjape
> >CC:
> >Subject: Re: [vtkusers] mirror image of poly data
> >Date: Wed, 16 Jan 2002 12:13:42 -0500 (EST)
> >
> >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
> > >
> >
>
> ________________________________________________________________________________
> Chat with friends online, try MSN Messenger: Click Here
>
>




More information about the vtkusers mailing list