POV-Ray : Newsgroups : povray.newusers : Macro Woes : Re: Macro Woes Server Time
5 Sep 2024 20:21:09 EDT (-0400)
  Re: Macro Woes  
From: Nieminen Juha
Date: 30 Sep 1999 03:32:40
Message: <37f31218@news.povray.org>
Jon A. Cruz <jon### [at] geocitiescom> wrote:
: Or, if you really want to use 'object', then just

: #delcare anInstance = SphereMacro(15, 1, 1.5, 10)
: object {
:   anInstance
: }

  What's wrong with

object { SphereMacro(15, 1, 1.5, 10) }

?

  It's shorter and as clear as using a previous #declare.
  It's easy to add transformations:

object
{ SphereMacro(15, 1, 1.5, 10)
  scale 10 translate -x*5
}


-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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