POV-Ray : Newsgroups : povray.text.scene-files : Mercator projection : Re: Mercator projection Server Time
2 Jul 2024 03:00:01 EDT (-0400)
  Re: Mercator projection  
From: Greg M  Johnson
Date: 26 Nov 2002 08:53:49
Message: <3de37ced$1@news.povray.org>
Most design problems are due to my coding inefficiency.

However:

"Tor Olav Kristensen" <tor### [at] hotmailcom> wrote in message
news:web.3de2cd0940c56e9238149fba0@news.povray.org...
> 2.
> I can't understand why you use these
> kind of expressions:
>
> pow(_AnyExpression_, 1)
>
> Is there any reason why you cannot just
> write _AnyExpression_ ?
>
> Is it to avoid some kind of bug ?
> Please explain.
>

Yes, the bug that was introduced to the final release of 3.5.

I had forgotten that I'd left that code there.

My first draft had the macro proceed stepwise from say 0 to 360 or 0 to 180,
(for theta or phi).  Then I tried an artistic effect where I would have the
top of something be more spherical and less faceted and the bottom be more
faceted: hence a nonlinear stepwise increase in the angle.   And to do so, I
was forced to use pow(_AnyExpression_, 2) .   In going back to a linear
system, I just replaced the 2 with a 1 but forgot to delete the pow.

I would certainly not be offended it you rewrote this utility to be more
elegant and efficient.

Thanks for the consideration..............


Post a reply to this message

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