POV-Ray : Newsgroups : povray.newusers : Pigments in CGS Difference : Re: Pigments in CGS Difference Server Time
5 Sep 2024 12:15:09 EDT (-0400)
  Re: Pigments in CGS Difference  
From: Steve
Date: 2 Nov 2000 14:16:39
Message: <slrn903fb1.li4.steve@zero-pps.localdomain>
On Thu, 02 Nov 2000 16:15:49 +0000, Graham wrote:
>Hi,
>
>Taking the simple example from the pov-ray docs :

It'd be nice if all the examples in the docuenation were numbered
then we'd know exactly what you were refering to.  

Let's make it a bit more readable:

difference{
           intersection{
                        sphere{<0, 0,0>, 1
                               translate -0.5*x
                              }

                        sphere{<0, 0,0>, 1
                               translate 0.5*x
                              }

                      //  pigment { Red }  comented out. 
                        rotate 90*y

                       } // End of intersection.
 
           cylinder {<0, 0, -1> <0, 0, 1>, 0.35
                    // pigment { Blue } Here only colours the cylinder.
                    }

           pigment {Blue} // colours the difference. 

          } // End of difference 

This does work, I've just tried it, read the comments I've put in the
code.  

Best viewed with fixed width font.  


-- 
Cheers
Steve              email mailto:ste### [at] zeroppsuklinuxnet

%HAV-A-NICEDAY Error not enough coffee  0 pps. 

web http://www.zeropps.uklinux.net/

or  http://start.at/zero-pps

  6:53pm  up 22 days, 21:14,  3 users,  load average: 1.08, 1.06, 1.02


Post a reply to this message

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