POV-Ray : Newsgroups : povray.general : general geometry question : Re: general geometry question Server Time
7 Aug 2024 21:20:19 EDT (-0400)
  Re: general geometry question  
From: Tor Olav Kristensen
Date: 21 Aug 2001 20:33:25
Message: <3B82FDB9.45E83FA@hotmail.com>
Tor Olav Kristensen wrote:
>...
> The code also shows how to make a sphere
> touch any 4 points in 3D-space that are
> not co-planar (Hmmm... I wonder if it's
> correct to say that about points.)
>...

To see an interesting property of this 
sphere, uncomment my code as described
within it, and add these lines of code to
the end of the script.


Tor Olav


// ===== 1 ======= 2 ======= 3 ======= 4 ======= 5 ======= 6 ======= 7 =

CircleTouches3Points(pA, pB, pD, pCtr, R, vPl)

difference {
  cylinder { -0.05*vPl, 0.05*vPl, R + 0.04 }
  cylinder { -0.06*vPl, 0.06*vPl, R - 0.04 }
  translate pCtr
  pigment { color Cyan } 
}

CircleTouches3Points(pA, pC, pD, pCtr, R, vPl)

difference {
  cylinder { -0.05*vPl, 0.05*vPl, R + 0.04 }
  cylinder { -0.06*vPl, 0.06*vPl, R - 0.04 }
  translate pCtr
  pigment { color Cyan } 
}

CircleTouches3Points(pB, pC, pD, pCtr, R, vPl)

difference {
  cylinder { -0.05*vPl, 0.05*vPl, R + 0.04 }
  cylinder { -0.06*vPl, 0.06*vPl, R - 0.04 }
  translate pCtr
  pigment { color Cyan } 
}

// ===== 1 ======= 2 ======= 3 ======= 4 ======= 5 ======= 6 ======= 7 =


Post a reply to this message

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