[vtkusers] vtk40 Tcl Examples problem

Sebastien BARRE sebastien.barre at kitware.com
Thu Jan 24 09:10:22 EST 2002


At 1/24/2002 01:12 PM, forzakim wrote:

>D:\vtk40\Examples\Annotation\Tcl\cubeAxes.tcl
>
>ERROR: In C:\martink\vtk40\VTK\IO\vtkBYUReader.cxx, line 111
>vtkBYUReader (0x02147F70): Geometry file: D:\PROGRA~1\vtk40
>Wrapping\Tcl\vtkbase\..\..\..\..\VTKData/Data/teapot.g not found
>
>ERROR: In C:\martink\vtk40\VTK\Graphics\vtkPolyDataNormals.cxx, line 111
>vtkPolyDataNormals (0x02146F40): No data to generate normals for!
>
>Can execute it when I change a script.
>
>vtkBYUReader fohe
>     fohe SetGeometryFileName "$VTK_DATA_ROOT/Data/teapot.g"
>
>vtkBYUReader fohe
>     fohe SetGeometryFileName "D:/vtk40data/Data/teapot.g"
>
>All the examples to read data of an example are so.
>Where does a $VTK_DATA_ROOT variable set it?

There is a problem because you changed the default name of the VTKData 
repository :) If you downloaded the data from either vtk40Data.zip or 
vtk40Data.tar.gz, etc., all data files come within a VTKData directory. VTK 
tries different directory to find its data. It it does not find one, it 
defaults to ..\..\..\..\VTKData. There is no way to guess that you chose 
vtk40data :)

BUT, the safe and usual way to avoid that problem is very simple, just set 
your VTK_DATA_ROOT environment variable to the path where you data are 
(here, D:/vtk40data).

Hope this helps


--
Sebastien Barre




More information about the vtkusers mailing list