[vtkusers] medical2 again!!

Jeremy Winston winston at cat.rpi.edu
Thu Feb 20 13:16:39 EST 2003


yasser salman wrote:
> hi all..
> when i run  medical2.cxx under vc++6 the output appears like an empty rectangle
> which can be render but there is no data inside it!!
> 
>>i do the following modification:
>>
>>   v16->SetFilePrefix (argv[1]); (in the original file)
>>   v16->SetFilePrefix ("d:/ DATADIR/headsq/quarter");(MODIFICATION done)
                             ^^^
>>[...]
>>ERROR: In C:\martink\vtk40\VTK\IO\vtkVolume16Reader.cxx, line 390
>>vtkVolume16Reader (0x00EC4B20): Can't find file: d:/ex/DATADIR/headsq/quarter.1
                                                      ^^^^^

The prefix MODIFICATION you did doesn't match the location
in the error message.

I believe "DATADIR" is an environment variable, and it is not
necessary to have an actual directory named DATADIR.

I.e., you could do

     v16->SetFilePrefix ("d:/ex/headsq/quarter");

and put your quarter.* data files in the d:\ex\headsq directory.

HTH,
-Jeremy





More information about the vtkusers mailing list