[vtkusers] Slice in 3D
Yoan BLANC
greut.lists at dosimple.ch
Wed Dec 28 04:38:46 EST 2005
Richard Layman wrote:
> Yoan,
>
> I am not an expert but the vtkImagePlaneWidget class and the
> ImagePlaneWidget example in the GUI directory should provide some
> guidance.
I've tried that :
plane = vtk.vtkImagePlaneWidget()
plane.DisplayTextOn()
plane.SetInput(image_reader.GetOutput())
plane.SetOrigin(origin)
plane.SetPoint1(point1)
plane.SetPoint2(point2)
plane.SetInteractor(interactor)
plane.On()
The behaviour is strange. There is a plane displayed at origin - point1
- point2, but a white square on the side and no texture - just black.
(See the attached picture)
Thanks
Yoan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ipw.png
Type: image/png
Size: 34811 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20051228/e252f9fc/attachment.png>
More information about the vtkusers
mailing list