|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hello,
Documentation POVRay 2.4.5 :
parametric {
function { FUNCTION_ITEMS },
function { FUNCTION_ITEMS },
function { FUNCTION_ITEMS }
<u1,v1>, <u2,v2>
...
}
I run into the following problem : how to introduce in the three
functions f(x), g(y) and h(z), a parameter that also depends
on u and v ?
For exemple :
parametric {
function { sin(u)*cos(v)*K }
function { sin(u)*sin(v)*K }
function { cos(u)/K }
...
}
with K = k*sin(2*u)*sin(nv)
'k' and 'n' are constants.
I have to add the complete calculation of the parameter 'K' in the three
functions ?
--
Kurtz le pirate
Compagnie de la Banquise
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 06/04/2023 16:15, kurtz le pirate wrote:
>
> I have to add the complete calculation of the parameter 'K' in the three
> functions ?
>
Find the solution.
#declare fnK = function(u,v) { ... }
parametric {
function { fnK(u,v)*(...) }
function { fnK(u,v)*(...) }
function { fnK(u,v)*(...) }
Must also specify the parameters for fnK().
--
Kurtz le pirate
Compagnie de la Banquise
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
kurtz le pirate <kur### [at] gmailcom> wrote:
> Find the solution.
>
> #declare fnK = function(u,v) { ... }
> parametric {
> function { fnK(u,v)*(...) }
> function { fnK(u,v)*(...) }
> function { fnK(u,v)*(...) }
>
> Must also specify the parameters for fnK().
Yes. This is what I often refer to as "daisy-chaining".
https://www.props4shows.co.uk/Portals/1/product/images/prd35729f1d-79d7-4e7b-9f10-8aa76ed62377.jpg
One function depends on the result of another function, which may depend on yet
another function....
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|