|
|
William F Pokorny <ano### [at] anonymousorg> wrote:
> Cool!
Isn't it?
You can invert anything, even whole patterns, like so:
#declare Inversion = function {Radius*Radius / ( pow (x-CenterX, 2) + pow
(y-CenterY, 2) + pow (z-CenterZ, 2))}
#declare Checker_Inv = function {
Checker (
x*Inversion (x, y, z),
y*Inversion (x, y, z),
z*Inversion (x, y, z)
).red
}
plane {z, 0 pigment {function {Checker_Inv (x, y, z)}}}
I was trying to figure out a way to plug this into a matrix transform, but
POV-Ray doesn't allow that kind of thing.
/*
#declare M_Inversion =
function {
transform {
matrix <
Inversion (x, y, z), 0, 0,
0, Inversion (x, y, z), 0,
0, 0, Inversion (x, y, z),
0, 0, 0
>
}
}
*/
Post a reply to this message
|
|