I need a function to use in densities that is like the existing spherical
density, but gets weaker based on the square of the distance instead of a linear
radius.
I couldn't find one in "functions.inc" unless I missed it.
Thanks!!
Mike
> I need a function to use in densities that is like the existing spherical> density, but gets weaker based on the square of the distance instead of a linear> radius.
Something like this:
#declare f_Example = function{ 1/(x*x + y*y + z*z) }
scott <sco### [at] scottcom> wrote:
> > I need a function to use in densities that is like the existing spherical> > density, but gets weaker based on the square of the distance instead of a linear> > radius.>> Something like this:>> #declare f_Example = function{ 1/(x*x + y*y + z*z) }
I think that works. Thanks!
Mike