vtkImplicitVolume with vtkImageReader

Dr. Jasjit Suri jsuri at enya.picker.com
Wed Sep 29 10:27:44 EDT 1999


Hi,

I think this pipeline does not work:

METHOD 1 :
vtkImageReader-->vtkImageToStructuredPoints--->vtkImplicitVolume ????


However,

METHOD 2: vtkVolume16Reader--->vtkImplicitVolume does work...


Can any body please tell me if there is an alternative how to use
vtkImplicitVolume with vtkImageReader ?

Thanks very much.

..jas..


--------------------------------------------
vtkImageReader reader
reader SetFilePrefix "$vtk_data_dir/test"
reader SetDataExtent 0 255  0 255 20 250
reader SetDataSpacing 1.0 1.0 1.0
reader SetDataVOI 0 255 0 255 21  216
reader SetHeaderSize 0
[reader GetOutput] SetOrigin 0.0 0.0 0.0
reader SetDataMask 0x7fff;
reader SetDataScalarTypeToUnsignedChar
reader SetDataByteOrderToBigEndian
reader Update

#
# change to the Structured points
#
vtkImageToStructuredPoints SP
    SP SetInput [reader GetOutput]
    SP Update

vtkTransform transform
  transform Identity
  transform Scale .75 .75 .75
  transform Inverse
  transform Scale 1 1 0


set xp1 50
vtkImplicitVolume aVolume
  aVolume SetVolume [SP GetOutput]
  aVolume SetTransform transform
  aVolume SetOutValue $xp1
------------------------------------------



-----------------------------------------------------------------------------
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