// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2000-09-21 09:50:30 by stolfi background{ color rgb < 1.00, 1.00, 1.00 > } light_source { < 10.00, 10.00, 5.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 10.00, 14.00, 12.00 > right < 2.40, 0.00, 0.00 > up < 0.00, 0.00, 1.80 > sky < 0.00, 0.00, 1.00 > look_at < 0.00, 0.00, 0.00 > } #declare roda = cylinder { < 0.00, 0.00, 0.00 >, < 0.00, 0.00, 1.00 >, 1.50 pigment { color rgb < 0.00, 0.00, 1.00 > } rotate x*90 } #declare calota = cylinder { < 0.00, 0.00, 0.00 >, < 0.00, 0.00, 1.02 >, 0.50 pigment { color rgb < 0.50, 0.50, 0.50 > } rotate x*90 } #declare carroceria = union{ box { < -2.50, -0.99, 0.00 >, // Near lower left corner < 9.50, 4.99, 1.50 > // Far upper right corner pigment { color rgb < 1.00, 0.00, 0.00 > } } prism { linear_sweep linear_spline -1, // sweep the following shape from here ... 5.00, // ... up through here 4, // the number of points making up the shape ... <9.50, 1.50>, <-2.50, 1.50>, <-2.50, 4.00> <4.50, 4.00> pigment { color rgb < 1.00, 0.00, 0.00 > } } } #declare parabrisa = prism { linear_sweep linear_spline -1, // sweep the following shape from here ... 5.00, // ... up through here 4, // the number of points making up the shape ... <8.50, 2.00>, <3.50, 2.00>, <3.50, 4.01> <4.50, 4.01> pigment { color rgb < 0.50, 0.50, 0.75 > } } #declare suportehelice = union { cone { <0.50, 2, 5.00>, 1.00 // Center and radius of one end <0.50, 2, 4.00>, 2.00 // Center and radius of other end pigment { color rgb < 1.00, 0.00, 0.00 > } } cylinder { < 0.50, 2, 5.00 >, < 0.50, 2, 6.50 >, 0.50 pigment { color rgb < 0.00, 0.00, 0.00 > } } } #declare helice = union{ box { < 0.00, -2.00, 6.50 >, // Near lower left corner < 1.00, 6.00, 7.00 > // Far upper right corner pigment { color rgb < 0.50, 0.50, 0.50 > } } box { < -3.50, 1.50, 6.50 >, // Near lower left corner < 4.50, 2.50, 7.00 > // Far upper right corner pigment { color rgb < 0.50, 0.50, 0.50 > } } } // Aqui está a cena, finalmente: object { carroceria } object { roda } // roda traseira direita object { roda translate < 6, 0, 0 > // roda traseira esquerda } object { roda translate < 0, 5, 0 > // roda dianteira esquerda } object { roda translate < 6, 5, 0 > // roda dianteira direita } object { calota } // calota traseira esquerda object { calota translate < 6, 0, 0 > // calota traseira direita } object { calota translate < 0, 5, 0 > // calota dianteira esquerda } object { calota translate < 6.01, 5.01, 0 > // calota dianteira direita } object { parabrisa } object { suportehelice} object { helice }