POV-Ray : Newsgroups : povray.unofficial.patches : slope question : Re: slope question Server Time
2 Sep 2024 12:18:23 EDT (-0400)
  Re: slope question  
From: Hans-Detlev Fink
Date: 19 Jan 2000 03:49:19
Message: <3885796F.4CA0CB26@pecos.no-spam.de>
Hans-Detlev Fink wrote:
> 
> Hi Tom,
> 
> Tom Melly wrote:
> >
> > Hi, just started using megapov and have a few questions due to some
> > unexpected results of trying out "slope".
> >
> > 1. If I have "slope y", is the following correct?
> >     normal vector <  0, -1, 0 > returns 0.0
> >     normal vector <  1,  0, 0 > returns 0.5
> >     normal vector < -1,  0, 0 > returns 0.5
> >     normal vector <  0,  0, 1 > returns 0.5
> >     normal vector <  1,  0, 1 > returns 0.5
> >     normal vector <  1,  1, 1 > returns 0.75 (?)
> 
> Yes, except the last one which yields ~0.85 ( (1/sqrt(2) + 1) * 0.5 ).

Which of course should read "... ~0.79 ( (1/sqrt(3) + 1) * 0.5 )".
Too bad I use to think in 2 dimensions only ;-)

Hans


Post a reply to this message

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