Arbitrary Plane for Cutting
David Gobbi
dgobbi at irus.rri.on.ca
Mon Sep 13 23:27:20 EDT 1999
Hi (again) Sathya,
In the nightly releases there is an example called
vtk/contrib/examples(Tcl|Python)/TextureReslice.(tcl|py).
It demonstrates how to texture map an arbitrary oblique
slice.
- David
--David Gobbi, MSc dgobbi at irus.rri.on.ca
Advanced Imaging Research Group
Robarts Research Institute, University of Western Ontario
On Mon, 13 Sep 1999, Sathya wrote:
> Hi
>
> I am currently using the following method to extract any axial, coronal and
> sagittal. I use the following method
>
> vtkImageReader *reader
>
> vtkImageClip *imageclip (reader->GetOutput ())
> imageclip->SetExtent (Xmin, Xmax, Ymin , Ymax, Zmin, Zmax)
>
> vtkPlaneSource *plane
>
> vtkTexture *texture
> texture->SetTexture (imageclip->GetOutput ())
>
> vtkPolyDataMapper *pdata
> pdata->SetInput (plane->GetOutput ())
>
> vtkActor *actor ->SetInput (pdata->GetOutput ())
> actor->SetTexture (texture)
>
> The problem with this method is the planes are limited to the axes. I am not
> able to extract any arbitrary planes .
>
> Can somebody help me how to do it.. ?
>
> Your help on vtkTexture was great .. thanks a lot.
>
>
> thanks again
> Sincerely
> Sathya
>
> Sathya Krishnamurthy
> Res: 317-630-5412
> Off: 317-278-1357
> http://omirf.iusd.iupui.edu/~ksathya
>
>
>
> -----------------------------------------------------------------------------
> This is the private VTK discussion list. Please keep messages on-topic.
> Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
> To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
> <majordomo at gsao.med.ge.com>. For help, send message body containing
> "info vtkusers" to the same address. Live long and prosper.
> -----------------------------------------------------------------------------
>
-----------------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>. For help, send message body containing
"info vtkusers" to the same address. Live long and prosper.
-----------------------------------------------------------------------------
More information about the vtkusers
mailing list