POV-Ray : Newsgroups : povray.general : #local shapes : Re: #local shapes Server Time
1 Aug 2024 22:23:32 EDT (-0400)
  Re: #local shapes  
From: Ross
Date: 7 Apr 2005 16:11:16
Message: <425593e4$1@news.povray.org>
"Steely" <nomail@nomail> wrote in message
news:web.425591b4f49c80836fd49c30@news.povray.org...
> Hi there!
>
> Just out of curiousity: while you are free to define nearly everything

this:
>
> #local my_shape =
> sphere { ... }
> // inside the my_shape.inc
>
> and
>
> #include "my_shape.inc"
> object {my_shape}
> // inside the main .pov-file
>

> work?
>
> Thanks
>
> Steely
>

#local is for things that are only available in the file (or in the case of
a macro, available only in the macro) which they are defined in, to my
understanding. if you want it to be available from an included file, it has
to be #declared

3.1.2.2.2  #declare vs. #local

-ross


Post a reply to this message

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