home *** CD-ROM | disk | FTP | other *** search
- //Raytracer's little helpers.
-
- #declare Pill=
- object {
- union {
- object {
- sphere { <-0.5, 0.25, 0> 0.25
- pigment { color White } finish { reflection 0.45
- phong 1 phong_size 80 }}
- }
-
- object {
- cylinder { <-0.5, 0.25, 0> <0, 0.25, 0> 0.25
- pigment { color White } finish { reflection 0.45
- phong 1 phong_size 80 }}
- }
-
- object {
- cylinder { <0, 0.25, 0> <0.5, 0.25, 0> 0.25
- pigment { color Red } finish { reflection 0.45
- phong 1 phong_size 80 }}
- }
-
- object {
- sphere { <0.5, 0.25, 0> 0.25
- pigment { color Red } finish { reflection 0.45
- phong 1 phong_size 80 }}
- }
- }
- }
-
- object {
- Pill translate <3.5, 0, -1.5> }
- object {
- Pill rotate <0, 45, 0> translate <3, 0, 0> }
- object {
- Pill rotate <0, 60, 0> translate <4.5, 0, 0> }
- object {
- Pill rotate <0, 60, 0> translate <2.25, 0, -2.25> }
- object {
- Pill translate <0, 0, -2.5> }
- object {
- Pill rotate <0, 45, 0> translate <-5.5, 0, -1> }
-
-
-