POV-Ray : Newsgroups : povray.general : undocumented isosurfaces functions Server Time
1 Nov 2024 10:18:50 EDT (-0400)
  undocumented isosurfaces functions (Message 1 to 4 of 4)  
From: Fabien Mosen
Subject: undocumented isosurfaces functions
Date: 27 Jul 2000 04:38:58
Message: <397FF3F8.1CD236F3@skynet.be>
Could someone explain to me, briefly, the meaning of the following
isosurfaces functions : 

r, s, %, min(), max().

Thank you very much.
Fabien.


Post a reply to this message

From: Gilles Tran
Subject: Re: undocumented isosurfaces functions
Date: 27 Jul 2000 08:15:22
Message: <398026F5.1A04EED9@inapg.inra.fr>
Fabien Mosen wrote:

> Could someone explain to me, briefly, the meaning of the following
> isosurfaces functions :
>
> r, s, %, min(), max().

min and max : see the file texture1.pov in the megapov demos, for
instance :
#declare GRID1=    function  {min(min(abs(cos(z)),
abs(cos(y))),abs(cos(x)))}

r,s : something from the isoblob ?

G.


>
>
> Thank you very much.
> Fabien.


Post a reply to this message

From: Ron Parker
Subject: Re: undocumented isosurfaces functions
Date: 27 Jul 2000 09:10:08
Message: <slrn8o0dsu.udn.ron.parker@fwi.com>
On Thu, 27 Jul 2000 14:11:33 +0200, Gilles Tran wrote:
>Fabien Mosen wrote:
>
>> Could someone explain to me, briefly, the meaning of the following
>> isosurfaces functions :
>>
>> r, s, %, min(), max().
>
>min and max : see the file texture1.pov in the megapov demos, for
>instance :
>#declare GRID1=    function  {min(min(abs(cos(z)),
>abs(cos(y))),abs(cos(x)))}
>
>r,s : something from the isoblob ?

% is the modulo operator, I'd guess.  (a%b) is the remainder when you divide
a by b.

I think r and s are reserved words but they don't actually do anything.  It
was a feature that was never completely implemented or something.

-- 
Ron Parker   http://www2.fwi.com/~parkerr/traces.html
My opinions.  Mine.  Not anyone else's.


Post a reply to this message

From: Chris Huff
Subject: Re: undocumented isosurfaces functions
Date: 27 Jul 2000 11:07:24
Message: <chrishuff-29B6FF.10080727072000@news.povray.org>
In article <397FF3F8.1CD236F3@skynet.be>, Fabien Mosen 
<fab### [at] skynetbe> wrote:

> Could someone explain to me, briefly, the meaning of the following
> isosurfaces functions : 
> 
> r, s, %, min(), max().

min() and max() take two parameters, and return the lesser and greater 
of the two respectively. min(A, B) will return A if it is lower than B, 
and B if it is lower than A, max() does the opposite, returning the 
greater value.

% is modulus
! is factorial
^ is exponentiation

t is the clock value, according to the function pattern documentation, 
however, the isoblob functions also use r, s, and t. In isoblobs, they 
are the coordinates of something...I'm not sure what, though. Looking at 
the code, it seems to be coordinates in "component space", after the 
transformations are done, while x, y, and z would be absolute, 
non-transformed coordinates.
Take this with a grain of salt though...I find this portion of the code 
difficult to read(argh, more global variables!).

-- 
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/


Post a reply to this message

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