POV-Ray : Newsgroups : povray.binaries.images : Another Quiz (77KB) : Re: Another Quiz (77KB) - Solution Server Time
2 Oct 2024 16:28:19 EDT (-0400)
  Re: Another Quiz (77KB) - Solution  
From: Tor Olav Kristensen
Date: 13 May 2000 14:45:20
Message: <391DA2B0.BFC382F9@hotmail.com>
"Chris S." wrote:
> 
> Alright then...so how'd you do it?

Just an intersection of 4 torii.

Like this:

// ============================================================

#macro Quadra(Thing)

  #local Angle = 180 - degrees(acos(1/3));

  object { Thing rotate 60*y }
  object { Thing rotate Angle*x }
  object { Thing rotate Angle*x + 120*y }
  object { Thing rotate Angle*x - 120*y }

#end // macro Quadra

#declare aTorus = torus { 2.445, 2 }

#declare StrangeShape =
intersection {
  Quadra(aTorus)
}

/*
#declare StrangeShape =
merge {
  Quadra(object { StrangeShape translate 3.95*y } )
}
*/

object {
  StrangeShape
  pigment { color Yellow }
}

// ============================================================

Also try to remove the commented code

Tor Olav
--
mailto:tor### [at] hotmailcom
http://www.crosswinds.net/~tok/tokrays.html


Post a reply to this message

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