[vtkusers] mirror image of poly data

David Gobbi dgobbi at irus.rri.ca
Wed Jan 16 12:51:08 EST 2002


Hi Sarika,

Also, please keep these discussions on the mailing list.  Don't
reply to my email personally, there are others who might be
interested.  It's also much more time efficient for us experienced
VTK users if we can get information out to several people at
once, rather than answering the same questions over and over
in private emails to different users.

 - 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 david,
>
> Thanks a lot! I tried it and it gives me better results. I didn't know
> this. Thanks for replying me so soon.
>
> -sarika 
>
>
> >From: David Gobbi
> >To: Sarika Paranjape
> >CC: VTK Mailing List
> >Subject: Re: [vtkusers] mirror image of poly data
> >Date: Wed, 16 Jan 2002 12:22:52 -0500 (EST)
> >
> >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
> > >
> > >
> >
>
> ________________________________________________________________________________
> Join the world’s largest e-mail service with MSN Hotmail. Click Here
>
>




More information about the vtkusers mailing list