// Last edited on 2019-07-17 02:58:47 by stolfilocal // Processed by remove-cam-lights background{ color rgb < 0, 0, 0 > } #declare tx = texture{ pigment{ color rgb < 1, 1, 1 > } } #macro interpolacao(t0, v0, t1, v1, tt) #local r = (tt-t0)/(t1-t0); #local s = 1-r; #local vv = s*v0 + r*v1; vv //retorno #end #macro arcobezier(t0, t1, A, B, C, D, tt) #local AB = interpolacao(t0, A, t1, B, tt); #local BC = interpolacao(t0, B, t1, C, tt); #local CD = interpolacao(t0, C, t1, D, tt); #local ABC = interpolacao(t0, AB, t1, BC, tt); #local BCD = interpolacao(t0, BC, t1, CD, tt); #local ABCD = interpolacao(t0, ABC, t1, BCD, tt); ABCD #end #include "eixos.inc" union { // object{} } #include "camlight.inc" #declare centro_cena = < -50, 0.00, 10 >; #declare raio_cena = 100.0; #declare dir_camera = < 14.00, 7.00, 4.00 >; #declare dist_camera = 5*raio_cena; #declare intens_luz = 1.20; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)