POV-Ray : Newsgroups : povray.binaries.scene-files : Simulated urbanism macro scene: version 2013.03.29 : Re: Simulated urbanism macro scene: version 2013.03.29 Server Time
3 May 2024 09:00:49 EDT (-0400)
  Re: Simulated urbanism macro scene: version 2013.03.29  
From: Christian Froeschlin
Date: 29 Mar 2013 15:56:36
Message: <5155f1f4@news.povray.org>
I haven't used this, but is there a specific reason why the macro
returns the result in a fixed variable name? If you simply write

union {
   object {HouseBlock}
   object {Single}
}

without #declare you can use the macro like this

#declare HouseBlock = Urbanism(
   ...
)

or like this

object
{
   Urbanism(...)
   textures {...}
}

Also there are some other uses of #declare in the macro
that are probably intended to be #local.

Not a criticisms, just a general observation that coding is
usually less confusing if something you call "returns a value"
as opposed to having "side effects".


Post a reply to this message

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