/* A 40' container has 41 ribs; a 20' has 20. The 40' one I saw had much flatter angles on the ribs, meaning there was less straight area and more angled. Looks like there's MOUNTAINS of variations possible - we'll have to talk to someone about what is and isn't possible. Saw a 57' (or whatever it is - looks more like 47') container go by today [19/7/02] - it has the corner posts not at the corners! In fact, in the same place as a 40'! So all that's needed to accommodate a 47'/57' container is more room on each side! Absolutely standard: Corner pillars, twist locks Normal: Height 8'6" or 9'6" Utterly unregulated: ribs */ //Definition of two types of shipping container //<0,0,0> is the bottom left front corner. #declare FlatContainer=box {<0,0,0>,<22.2,9.6,9.6>} #declare RibbedContainer=union { union { prism { linear_sweep linear_spline 0.5001,9.0999, 237, //Points <0,0>,<.6,0>,<.6,.2>,<1,.2>,<1.1,0.05>,<1.5,0.05>,<1.6,.2>,<2,.2>,<2.1,0.05>,<2.5,0.05>,<2.6,.2>,<3.8,.2>,<3.9,0.05>,<4.3,0.05>,<4.4,.2>,<4.8,.2>,<4.9,0.05>,<5.3,0.05>,<5.4,.2>,<5.8,.2>,<5.9,0.05>,<6.3,0.05>,<6.4,.2>,<6.8,.2>,<6.9,0.05>,<7.3,0.05>,<7.4,.2>,<7.8,.2>,<7.9,0.05>,<8.3,0.05>,<8.4,.2>,<8.8,.2>,<8.9,0.05>,<9.3,0.05>,<9.4,.2>,<9.8,.2>,<9.9,0.05>,<10.3,0.05>,<10.4,.2>,<10.8,.2>,<10.9,0.05>,<11.3,0.05>,<11.4,.2>, <11.8,.2>,<11.9,0.05>,<12.3,0.05>,<12.4,.2>,<12.8,.2>,<12.9,0.05>,<13.3,0.05>,<13.4,.2>,<13.8,.2>,<13.9,0.05>,<14.3,0.05>,<14.4,.2>,<14.8,.2>,<14.9,0.05>,<15.3,0.05>,<15.4,.2>,<15.8,.2>,<15.9,0.05>,<16.3,0.05>,<16.4,.2>,<16.8,.2>,<16.9,0.05>,<17.3,0.05>,<17.4,.2>,<17.8,.2>,<17.9,0.05>,<18.3,0.05>,<18.4,.2>,<19.6,.2>,<19.7,0.05>,<20.1,0.05>,<20.2,.2>,<20.6,.2>,<20.7,0.05>,<21.1,0.05>,<21.2,.2>, <21.6,.2>,<21.6,0>,<22.2,0>,<22.2,.6>,<22,.6>,<22,1>,<22.15,1.1>,<22.15,1.5>,<22,1.6>,<22,2>,<22.15,2.1>,<22.15,2.5>,<22,2.6>,<22,3>,<22.15,3.1>,<22.15,3.5>,<22,3.6>,<22,4>,<22.15,4.1>,<22.15,4.5>,<22,4.6>,<22,5>,<22.15,5.1>,<22.15,5.5>,<22,5.6>,<22,6>,<22.15,6.1>,<22.15,6.5>,<22,6.6>,<22,7>,<22.15,7.1>,<22.15,7.5>,<22,7.6>,<22,8>,<22.15,8.1>,<22.15,8.5>,<22,8.6>, <22,9>,<22.2,9>,<22.2,9.6>,<21.6,9.6>,<21.6,9.4>,<21.2,9.4>,<21.1,9.55>,<20.7,9.55>,<20.6,9.4>,<20.2,9.4>,<20.1,9.55>,<19.7,9.55>,<18.8,9.4>,<18.4,9.4>,<18.3,9.55>,<17.9,9.55>,<17.8,9.4>,<17.4,9.4>,<17.3,9.55>,<16.9,9.55>,<16.8,9.4>,<16.4,9.4>,<16.3,9.55>,<15.9,9.55>,<15.8,9.4>,<15.4,9.4>,<15.3,9.55>,<14.9,9.55>,<14.8,9.4>,<14.4,9.4>,<14.3,9.55>,<13.9,9.55>,<13.8,9.4>,<13.4,9.4>,<13.3,9.55>,<12.9,9.55>,<12.8,9.4>, <12.4,9.4>,<12.3,9.55>,<11.9,9.55>,<11.8,9.4>,<11.4,9.4>,<11.3,9.55>,<10.9,9.55>,<10.8,9.4>,<10.4,9.4>,<10.3,9.55>,<9.9,9.55>,<9.8,9.4>,<9.4,9.4>,<9.3,9.55>,<8.9,9.55>,<8.8,9.4>,<8.4,9.4>,<8.3,9.55>,<7.9,9.55>,<7.8,9.4>,<7.4,9.4>,<7.3,9.55>,<6.9,9.55>,<6.8,9.4>,<6.4,9.4>,<6.3,9.55>,<5.9,9.55>,<5.8,9.4>,<5.4,9.4>,<5.3,9.55>,<4.9,9.55>,<4.8,9.4>,<4.4,9.4>,<4.3,9.55>,<3.9,9.55>,<3.8,9.4>,<2.6,9.4>,<2.5,9.55>,<2.1,9.55>,<2,9.4>,<1.6,9.4>,<1.5,9.55>,<1.1,9.55>,<1,9.4>, <.6,9.4>,<.6,9.6>,<0,9.6>,<0,9>,<.2,9>,<0.2,8.6>,<0.05,8.5>,<0.05,8.1>,<0.2,8>,<0.2,7.6>,<0.05,7.5>,<0.05,7.1>,<0.2,7>,<0.2,6.6>,<0.05,6.5>,<0.05,6.1>,<0.2,6>,<0.2,5.6>,<0.05,5.5>,<0.05,5.1>,<0.2,5>,<0.2,4.6>,<0.05,4.5>,<0.05,4.1>,<0.2,4>,<0.2,3.6>,<0.05,3.5>,<0.05,3.1>,<0.2,3>,<0.2,2.6>,<0.05,2.5>,<0.05,2.1>,<0.2,2>,<0.2,1.6>,<0.05,1.5>,<0.05,1.1>,<0.2,1>, <.2,.6>,<0,.6>,<0,0> } box {<0,9.6,0>,<22.2,9.1,9.6>} box {<0,0,0>,<22.2,.5,9.6>} } box {<6.4,0.01,0>,<7.8,.49,9.6> pigment {rgbt <0,1,0,0.5>}} //Forklift holes box {<14.4,0.01,0>,<15.8,.49,9.6> pigment {rgbt <0,1,0,0.5>}} } #declare Cont_SCT= texture {pigment {rgb <1,1,1>}} texture {pigment {image_map {png "SCT.PNG" once transmit 1,1.0} scale <14,9,1>}} #declare Cont_Refrig= texture {pigment {rgb <1,1,1>}} texture {pigment {image_map {png "Refrig.PNG" once transmit 0,1.0} scale <20,15,1> translate <1,-.5,0>}} #declare Cont_Mayne= texture {pigment {rgb <1,1,1>}} texture {pigment {image_map {png "Mayne.PNG" once transmit 1,1.0} scale <14,9,1>}} #declare Cont_KandS= texture {pigment {rgb <1,0,0>}} texture {pigment {image_map {png "K&S.PNG" once transmit 0,1.0} scale <20,15,1> translate <1,-.5,0>}}