[vtkusers] Trouble with the Examples

Jonathan Winterflood jonathan.winterflood at gmail.com
Fri Mar 19 05:06:00 EDT 2010


Hi,

>From what I can tell, Medical1 should be called with a path to the data (eg.
VTKData/Data/headsq/quarter), and complains if you do not.

>From your run, it looks like it thinks "DATA" is the path you gave it.

The path should be the folder and the prefix of the files:
$ ls VTKData/Data/headsq/
quarter.1
quarter.2
....
quarter.81

If you gave a path like that, maybe there is a space in your path? (eg.
./Medical1 DATA VTK/Data/headsq/quarter)
The space will make Medical1 think there are 2 arguments, "DATA" and
"VTK/Data/headsq/quarter", and it only uses the first.
In this case, you should enclose the path in double quotes (eg. ./Medical1
"DATA VTK/Data/headsq/quarter"), or escape any spaces with backslashes (eg.
./Medical1 DATA\ VTK/Data/headsq/quarter)

I'm assuming you're on some flavor of *nix, but quotes will also work on
Windows (backslashes will not)


Developers: Medical/Cxx/Medical*.cxx and Infovis/Cxx/TreeLayout.cxx test for
(argc < 2), testing for (argc != 2) would catch this (like
Array/Cxx/IdentityMatrix.cxx)
[Not a particularly critical problem mind you]

--
Jonathan


2010/3/19 조봉수 <hinice11 at naver.com>

>  When tried with the examples, this error came up.
>
>
>
> Is there anyone who help me???
>
>
>
> Thanks.
>
>
>
> ./Medical1 ~~~~~~~~
>
>
>
> ERROR: In /home/hinice/vtk-5.4.2/IO/vtkVolume16Reader.cxx, line 355
>
> vtkVolume16Reader (ox1a707bo) : Cant't find file: DATA.1
>
>
>
> Jo, Bong Su
>
> Tel) 010-9366-5313
>
> Life is too short not to be fun.
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100319/3589eb00/attachment.htm>


More information about the vtkusers mailing list