|
|
On 2/15/23 05:34, William F Pokorny wrote:
> Yes. Functions as used in height_fields never see called x,y values
> outside the [0-1] range.
Forgot to plug a new povr function called f_boom() I believe should be
in any v4.0 release.
#include "functions.inc"
#declare FnChkVals = function (x) {
select(((x<0.0) | (x>1.0)),
0,
0,
f_boom(x,2,3,4,5,6)
)
}
height_field {
function 500, 500 { FnChkVals(y) }
...
A little ugly in that it throws after printing six values, but it offers
a quick way for 'users' to test values in functions. Above we're testing
that y as seen in the HF called function is never outside the [0,1]
range.
Bill P.
Post a reply to this message
|
|