POV-Ray : Newsgroups : povray.text.scene-files : Fractal Macro : Re: Fractal Macro Server Time
28 Jul 2024 14:19:56 EDT (-0400)
  Re: Fractal Macro  
From: Warp
Date: 10 May 2000 05:53:04
Message: <39193180@news.povray.org>
Tony Micklus <ton### [at] j4tbcom> wrote:
: 1..Your cone statement has a radius of (.125*.6) why are the numbers
: seperated why not make the radius .075?

  I think it's just easier to understand for him (and for anyone trying to
read the code) that way.
  For example, if I have something that's usually 2.5 units long, and then
I want that same thing half that long, it's easier to read if I write
"2.5*0.5" (or "2.5/2") instead of "1.25".

: 2...When rendering  the image the radii of the cones and torii get
: progressively smaller yet I all your radii are constants. What is it that
: causes them to get smaller?

  The scaling is done recursively, ie. the same "scale .65" is applied
several times to the objects. That's what's making them smaller.
  If you thing about it, what happens is something like this:

union
{ union
  { object { MyObject }
    object { MyObject }
    scale .65
  }
  object { MyObject }
  scale .65
}

  The objects in the inner union will get smaller than the object in the
outer union because the former are scaled twice by 0.65, ie. they are
actually scaled by 0.65*0.65 = 0.4225.
  It may be a bit hard to see this in the original code because the
objects in the inner unions are generated by a recursive macro call.

-- 
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.