[vtkusers] problem with warp

anast.jm at pg.com anast.jm at pg.com
Wed Jul 9 13:13:16 EDT 2003


This script works as expected on my system, the image is warped and 
rendered.......recent CVS build (vtk4.3) on WinXP and MSVC 6  ...john

Internet Mail Message
Received from host:     public.kitware.com []

"thomas" <thomas at cs.uno.edu>
Sent by: vtkusers-admin at vtk.org
07/08/2003 06:33 PM

        To:     <vtkusers at vtk.org>
        cc:     (bcc: John Anast-JM/PGI)
        Subject:        [vtkusers] problem with warp

Hi everybody
I am having a problem displaying an image. I want to read the image an 
create a 3D image from it.  The script is OK and the display window 
appears but there is no rendering in the window, the window is just empty. 
Can someone please help me ?
thanks for your help
here is my script :
package require vtklocal
vtkTIFFReader r1
r1 SetFileName "tazc.tif"
vtkImageDataGeometryFilter itop
itop SetInput [r1 GetOutput]
vtkWarpScalar warp
  warp SetInput [itop GetOutput]
  warp SetScaleFactor 1
vtkWindowLevelLookupTable look
vtkPolyDataMapper m
m SetInput [warp GetPolyDataOutput]
m SetScalarRange 0 2000
m ImmediateModeRenderingOff
m SetLookupTable look
vtkActor a 
a SetMapper m
vtkRenderer ren
ren AddActor a
vtkRenderWindow renWin
renWin AddRenderer ren
renWin SetSize 800 600
vtkRenderWindowInteractor iren
iren SetRenderWindow renWin
puts "rendering..."
renWin Render
puts "done"
iren Start

(ReplyTextOnly removed attachment: tazc.tif)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030709/fdf4d280/attachment.htm>

More information about the vtkusers mailing list