composite { rotate(45.0, z) rotate(90.0, y) colour 1.0, 0.0, 0.0 material 0.0, 0.95, 0.00, 0.0 sphere { center(0.0, 0.0, 0.0) radius 1.0 } sphere { center(2.0, 0.0, 0.0) radius 0.5 } } |
csg { sphere s1 { colour 1.0, 1.0, 1.0 center (2.0, 2.0, 2.0) radius 1.0 } sphere s2 { colour 1.0, 1.0, 1.0 center (-2.0, -2.0, 2.0) radius 2.0 } box b1 { colour 1.0, 1.0, 1.0 vertex (2.0, 2.0, 2.0) vertex (-2.0, -2.0, -2.0) } (b1 - s1) - s2 } |
box b1 { colour 1.0, 1.0, 1.0 vertex (0.8, 0.8, 0.8) vertex (-0.8, -0.8, -0.8) } b1 { translate (-2, 0, 0) } b1 { translate (0, 0, 0) } b1 { translate (2, 0, 1) } sphere s1 { colour 1.0, 1.0, 1.0 center (-4, 2, 0) } repeat 3 { translate (2, 0, 0) s1 } |