Location: PHPKode > projects > PHP Cad and Drawing Program > povray/cooler.inc
#include "colors.inc"           
#include "textures.inc"         
#include "shapes.inc"

#declare cooler=
union { // water cooler
	union { // water bottle
		cylinder { //main
		<(6/12),(38.25/12),(6/12)>,
		<(6/12),(53.5/12),(6/12)>,
		(5.25/12)
		}
		cylinder { // base
		<(6/12),(37.5/12),(6/12)>,
		<(6/12),(38.25/12),(6/12)>,
		((4+(5/8))/12)
		}
		cylinder { //top bulge
		<(6/12),(51.5/12),(6/12)>,
		<(6/12),(53.5/12),(6/12)>,
		((5.25+(3/8))/12)
		}
		cylinder { //middle bulge
		<(6/12),(43.75/12),(6/12)>,
		<(6/12),(45.5/12),(6/12)>,
		((5.25+(3/8))/12)
		}
		cylinder { //bottom bulge
		<(6/12),(38.75/12),(6/12)>,
		<(6/12),(40.5/12),(6/12)>,
		((5.25+(3/8))/12)
		}
	texture { NBoldglass }
	}
	union { //cooler
		difference { //cooler
			box { //cooler
			<0,0,0>
			<(12/12),(37.5/12),(12/12)>
			}
			box { // tap area
			<(1/12),(17.5/12),-.1>
			<(11/12),(32.5/12),(2.25/12)>
			}
		pigment { color Tan }
		}
		box { // blue pan
		<(1/12),(17.5/12),0>
		<(11/12),(19.5/12),(2.25/12)>
		pigment { color Cyan }
		}
		cylinder { //left tap
		<(4/12),(29.5/12),((3/8)/12)>,
		<(4/12),(29.5/12),(2.25/12)>,
		((3/8)/12)
		pigment { color White }
		}
		cylinder { //left tap spigot
		<(4/12),(28.5/12),((3/8)/12)>,
		<(4/12),(30/12),((3/8)/12)>,
		((3/8)/12)
		pigment { color White }
		}
		cylinder { //right tap
		<(7/12),(29.5/12),((3/8)/12)>,
		<(7/12),(29.5/12),(2.25/12)>,
		((3/8)/12)
		pigment { color Blue }
		}
		cylinder { //right tap spigot
		<(7/12),(28.5/12),((3/8)/12)>,
		<(7/12),(30/12),((3/8)/12)>,
		((3/8)/12)
		pigment { color Blue }
		}
	}
}

Return current item: PHP Cad and Drawing Program