[vtkusers] SLC Reader eror

Amy Henderson amy.henderson at kitware.com
Thu Oct 12 13:56:59 EDT 2000


Maybe you have the environment variable VTK_DATA set to "../../../vtkdata" 
on your machine.  If that's the case, then the vtkSLCReader is trying to 
open your vtkdata directory as a file.  Try changing your script as follows:

if { [catch {set VTK_DATA $env(VTK_DATA)}] != 0} \
         { set VTK_DATA"../../../vtkdata" }
   reader SetFileName "$VTK_DATA/mridata/breast3.slc"

I hope this helps.

Amy

At 12:48 PM 10/12/2000 -0500, Wolfram H Volpi wrote:
>I get this error when I run my tcl script:
>
>ERROR: In C:\VTK31CD\vtk\graphics\vtkSLCReader.cxx, line 145
>vtkSLCReader (0x00416730): File ../../../vtkdata not found
>
>This is from the tcl script:
>
>   if { [catch {set VTK_DATA $env(VTK_DATA)}] != 0} \
>         { set VTK_DATA"../mridata/breast3.slc" }
>   reader SetFileName "$VTK_DATA"
>
>
>I can see directory C:\VTK31CD\vtkdata\  on Explorer.
>Why would SLCReader look for File ../../../vtkdata and not find it?
>How can I fix this?
>
>
>Thank you in advance,
>Wolfram Volpi.
>
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: 
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers





More information about the vtkusers mailing list