POV-Ray : Newsgroups : povray.general : Checker or me? : Checker or me? Server Time
9 Aug 2024 03:18:11 EDT (-0400)
  Checker or me?  
From: Dejan Milosavljevic
Date: 20 Aug 2000 04:20:47
Message: <399f94df@news.povray.org>
//What's wrong and why?

#include "colors.inc"

//camera { }

#declare TEST_SPHERE   = 0;
#declare TEST_CYLINDER = 1;

//I expect to see only two black and two white square.
//But...

#switch( clock )
 #case ( TEST_SPHERE )
   sphere
  #break
 #case ( TEST_CYLINDER )
   cone
  #break
#end
 {
   #switch( clock )
     #case ( TEST_SPHERE )
      < 0, 0, 0 >, 1
      #break
     #case ( TEST_CYLINDER )
       -x, 1,  x, 1
      #break
    #end

   pigment {  checker color White color Black }
 }

light_source {  <-0.5 0.5, -0.5> color White }


//***************************
//      dmi### [at] xoommailcom
//http://members.xoom.com/dmilos/
//***************************


Post a reply to this message

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