POV-Ray : Newsgroups : povray.general : Re: Difference Small objects and Glass Cube : Re: Difference Small objects and Glass Cube Server Time
2 Aug 2024 22:17:58 EDT (-0400)
  Re: Difference Small objects and Glass Cube  
From: Warp
Date: 16 Sep 2004 19:52:09
Message: <414a2729@news.povray.org>
Slime <fak### [at] emailaddress> wrote:
> And you can! Looks good. =)

  Oh! Seems like 3.6 has more surprises than I expected. :-o

  During the beta-test of POV-Ray 3.5 I was working with Thorsten
testing the possibility of adding support for recursive calls in
functions, and they more or less worked ok, but due to some problems
which were difficult to solve back then it was decided that recursion
would not be supported (and explicitly disallowed).

  During the development of 3.6 I never heard of anything related
to this, so I assumed that no change had been done. However, seems
that something has been done (either purposely or inadvertedly, I don't
know which).

  Cool. This opens a whole new set of possibilities for functions.
(I just hope this was not just a mistake which will be "corrected"
in the next release... ;) )

> (I find it impressive that you could do that from memory without actually
> checking if it worked... though I think the > 2 should be > 4)

  I have written the mandelbrot set code so many times that I can do
it in my dreams... Except that this time I didn't remember to raise
the 2 to the square, so you are right: It should be 4, not 2. Perhaps
I'm getting old.

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