// This include file creates a simple red car, called "car". #include "colors.inc" #declare cbody = superellipsoid { <0.25, 0.25> pigment { Red} translate <0, .5, 0> scale <3,.7,1.5> } #declare ctop = superellipsoid { <0.25, 0.25> pigment { Red} translate <0, 1.3, 0> scale <1.5,.9,1.5> } #declare headlight = sphere { <0, 0, 0> // center of sphere 0.3 // radius of sphere scale <.5,1,1> translate <3, .5, .9> pigment { color Yellow } } #declare wheel = union { cylinder { .15*z, -.15*z, .5 pigment { color White } } torus { 0.5, 0.2 rotate 90*x pigment { color rgb .3 } } } #declare license = box { <.05, .2, .3> // one corner position < -.05, -.2, -.3> // other corner position pigment {color Green } translate <-3,.2,0> } #declare car = union { object {cbody} object {ctop} object {license} object {headlight} object {headlight translate -1.8*z} object { wheel translate <1.5, 0, 1.5>} object { wheel translate <-1.5, 0, 1.5>} object { wheel translate <-1.5, 0, -1.5>} object { wheel translate <1.5, 0, -1.5>} }