POV-Ray : Newsgroups : povray.general : Some simple geometric puzzles : Some simple geometric puzzles Server Time
30 Jul 2024 08:14:54 EDT (-0400)
  Some simple geometric puzzles  
From: Warp
Date: 8 Jun 2009 14:45:35
Message: <4a2d5c4f@news.povray.org>
To be solved with SDL. No #includes, though. And of course the simpler
the answer, the better. Try to solve these before looking at other people's
answers... :)

1) Transform a "box { 0, 1 }" with one single 'rotate' so that the box
   corner at <1,1,1> ends up exactly on the y axis.

2) Create 4 spheres of the same size so that 3 of them are sitting on
   the x-z plane, each one touching the other two at one single point,
   and the 4th sphere is on top of the three, touching all these other
   three spheres at one single point each.

3) Add a fifth, smaller sphere to the previous scene so that it touches
   all the four larger spheres at a single point each.

  Commented code is preferable. :)

-- 
                                                          - Warp


Post a reply to this message

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