|
|
On 17 Dec 2003 10:04:10 -0500, Warp <war### [at] tagpovrayorg> wrote:
> How about just using file_exists()? (See section 6.1.3.6 of the POV-Ray
>documentation.)
You can check whether the file is there but not if does not generate a
parsing error. It can be an invalid image file, invalid density file,
or simply an include file generated from an external utility that for
some reason gives an error. You and ABX are right though, in that
file_exists() should be enough in most cases. Just not all.
File i/o aside, there are situations where some primitive exception
handling comes to the rescue. Even for debugging if not for release.
In any case such a feature could be useful for parse-intensive
applications such as particle systems, surface subdivision, your own
and Chris' mesh macros etc.
Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG e-mail : pet### [at] tagpovrayorg
Post a reply to this message
|
|