POV-Ray : Newsgroups : povray.advanced-users : Un-defined Objects : Re: Un-defined Objects Server Time
29 Jul 2024 20:23:19 EDT (-0400)
  Re: Un-defined Objects  
From: Chris Colefax
Date: 14 Feb 2001 01:59:40
Message: <3a8a2cdc@news.povray.org>
David Vincent-Jones <geo### [at] galaxynetcom> wrote:
> I am reading in a long list of objects along with their locations.
> Some of the objects are defined in an inc file and some in the main file.
> Some objects may not be defined at all .........
> Is there some way to us a #ifdef type of statement so that the pov file
will
> just skip any non-defined object and display only the defined items?

How about using #ifdef?!  The function works exactly the same, whether a
variable is declared as a float, vector, object, texture, whatever..., e.g.:

#include "Objects.inc"

#ifdef (Object1) object {Object1} #end
#ifdef (Object2) object {Object2} #end


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.