POV-Ray : Newsgroups : povray.pov4.discussion.general : Using f_planar() v4.0 proposal with 3 cos Fn. Server Time
27 Dec 2024 04:21:41 EST (-0500)
  Using f_planar() v4.0 proposal with 3 cos Fn. (Message 1 to 1 of 1)  
From: William F Pokorny
Subject: Using f_planar() v4.0 proposal with 3 cos Fn.
Date: 20 Feb 2023 08:55:16
Message: <63f37bc4$1@news.povray.org>
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'
f_planar.jpg


 

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