POV-Ray : Newsgroups : povray.general : #local shapes : Re: #local shapes Server Time
1 Aug 2024 22:23:32 EDT (-0400)
  Re: #local shapes  
From: Warp
Date: 8 Apr 2005 07:08:40
Message: <42566638@news.povray.org>
Steely <nomail@nomail> wrote:



  I don't really understand what you are asking.

  #local is a special version of #declare which limits the visibility
of an identifier inside the include file or the macro in which it is
used. That is the precise purpose of #local. It helps to keep the
global namespace of identifiers cleaner (to avoid name collisions).
  If something has been declared #local in an include file then it is
something private to that include file, not intended to be seen from
the outside (and thus potentially collide with something having the
same name somewhere else).

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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