POV-Ray : Newsgroups : povray.text.scene-files : Proximity Pattern and 3.5 : Re: Proximity Pattern and 3.5 Server Time
3 Jul 2024 01:54:20 EDT (-0400)
  Re: Proximity Pattern and 3.5  
From:
Date: 11 Feb 2002 03:47:45
Message: <411f6ukkqp1uplrl14b1sn582vk372o0hb@4ax.com>
On Fri, 08 Feb 2002 20:38:22 -0500, Christopher James Huff <chr### [at] maccom>
wrote:
> > That's exactly what my macro does.
>
> No, your macro returns the percentage of the surrounding space occupied 
> by the object, which is quite different though it gives a similar 
> effect. It is just a blurred object pattern...hmm. Your macro could be 
> modified to blur almost any pattern or function...just remove the 
> definition of P and pass it in as a parameter, replacing "Object".

Yes, I know, but then speed optimization with boundary will not work.

> BTW, why use "(1/C)*(...)" instead of just "(...)/C"?

Becouse C is index for loop and after loop it has value 0.
Afaik 1/C is optimized to one float at parse time so it not the problem for
parser.

> "max(int(Count)1)" should be "max(int(Count), 1)".

It's result of shortest code contest :-)

ABX


Post a reply to this message

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