POV-Ray : Newsgroups : povray.advanced-users : Pappus Chain : Re: Pappus Chain Server Time
27 Jul 2024 12:15:16 EDT (-0400)
  Re: Pappus Chain  
From: Bald Eagle
Date: 29 May 2024 06:55:00
Message: <web.665709583bd24dfe1f9dae3025979125@news.povray.org>
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

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