|
|
Another advert for a new v4.0 inbuilt function.
The f_planar() function in povr can be used to mimic the inbuilt planar
pattern with:
function { -max(0.0,f_planar(y,1,1)) }
However, as an inbuilt function, f_planar() can more generically create
shells about a function's roots. The f_planar() function 'fattens' the
surface-root creating a new shell function from the original function-shape:
// Below works only with povr fork.
...
#include "functions.inc"
// Function f_planar defined in functions.inc
#declare Fn03 = function (x,y,z) { (cos(x) + cos(y) + cos(z))*(1/3) }
#declare Fn05 = function (x,y,z) {
f_planar(Fn03(x*10,y*10,z*10),0.050,1)
}
#declare Iso99 = isosurface {
function { Fn05(x,y,z) }
contained_by { box { <-0.95,-0.175,-0.95>,<0.95,0.175,0.95> } }
...
Bill P.
Post a reply to this message
Attachments:
Download 'f_planar.jpg' (92 KB)
Preview of image 'f_planar.jpg'
|
|