Volume Rendering
Asa'd Abu-Tarif
tarifa at rpi.edu
Sat May 6 19:27:59 EDT 2000
Hi,
I was trying to volume render the head data set using the volProt.cxx
example. The example runs fine. However, when I change the following code:
/////////////
vtkStructuredPointsReader *reader = vtkStructuredPointsReader::New();
reader->SetFileName("c:\\vtk\\vtkdata\\ironProt.vtk");
reader->Update();
/////////////////////
to the following:
////////////////////
vtkVolume16Reader *v16 = vtkVolume16Reader::New();
v16->SetDataDimensions(64,64);
v16->SetDataByteOrderToLittleEndian();
v16->SetFilePrefix ("c:\\vtk\\vtkdata\\headsq\\quarter");
v16->SetImageRange(1, 93);
v16->SetDataSpacing (3.2, 3.2, 1.5);
v16->Update();
////////////////////
the program crashes.
Can anyone tell me what I'm doing wrong?
Thanks
Asad
--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------
More information about the vtkusers
mailing list