//Tiago Saad - 971717 //Bezier #include "colors.inc" #include "textures.inc" background { color red 1 green 1 blue 1 } camera{ location<10, 10, 10 > look_at<5, 1, 4> } light_source{ <10, 20, -10> color White } light_source{ <0, -1, 9> color White } #declare a00 = < 0, 0, 0>; #declare a01 = < 1, 0, 0>; #declare a02 = < 2, 0, 0>; #declare a03 = < 3, 0, 0>; #declare a10 = < 0, 0, 1>; #declare a11 = < 1, 6, 1>; #declare a12 = < 2, 1.5, 1>; #declare a13 = < 3, 0.5, 1>; #declare a20 = < 0, 0, 2>; #declare a21 = < 1, 6, 2>; #declare a22 = < 2, 1.5, 2>; #declare a23 = < 3, 0.5, 2>; #declare a30 = < 0, 0, 3>; #declare a31 = < 1, 4, 3>; #declare a32 = < 2, 1, 3>; #declare a33 = < 3, 0.5, 3>; #declare b00 = < 3, 0, 0>; #declare b01 = < 5, 0, 0>; #declare b02 = < 7, 0, 0>; #declare b03 = < 9, 0, 0>; #declare b10 = < 3, 0.5, 1>; #declare b11 = < 5, -1, 1>; #declare b12 = < 7, 3, 1>; #declare b13 = < 9, 0, 1>; #declare b20 = < 3, .5, 2>; #declare b21 = < 5, -1, 2>; #declare b22 = < 7, 3, 2>; #declare b23 = < 9, .5, 2>; #declare b30 = < 3, 0.5, 3>; #declare b31 = < 5, -1.5, 3>; #declare b32 = < 7, 2, 3>; #declare b33 = < 9, 0, 3>; #declare BigMalha = bicubic_patch{ type 0 flatness 0.1 u_steps 4 v_steps 4 a00, a01, a02, a03, a10, a11, a12, a13, a20, a21, a22, a23, a30, a31, a32, a33 pigment {color rgb<1, 0, 0>} finish{phong 1 reflection .5} } #declare SmallMalha = bicubic_patch{ type 0 flatness 0.1 u_steps 4 v_steps 4 b00, b01, b02, b03, b10, b11, b12, b13, b20, b21, b22, b23, b30, b31, b32, b33 pigment {color rgb<0, 0, 1>} finish{phong 1 reflection .5} } object { BigMalha } object { SmallMalha } object { BigMalha scale < 1, 1,-1> } object { SmallMalha scale < 1, 1, -1> } sphere{a00, 0.1 pigment{color rgb<0,1,0>}} sphere{a01, 0.1 pigment{color rgb<0,1,0>}} sphere{a02, 0.1 pigment{color rgb<0,1,0>}} sphere{a03, 0.1 pigment{color rgb<0,1,0>}} sphere{a10, 0.1 pigment{color rgb<0,1,0>}} sphere{a11, 0.1 pigment{color rgb<0,1,0>}} sphere{a12, 0.1 pigment{color rgb<0,1,0>}} sphere{a13, 0.1 pigment{color rgb<0,1,0>}} sphere{a20, 0.1 pigment{color rgb<0,1,0>}} sphere{a21, 0.1 pigment{color rgb<0,1,0>}} sphere{a22, 0.1 pigment{color rgb<0,1,0>}} sphere{a23, 0.1 pigment{color rgb<0,1,0>}} sphere{a30, 0.1 pigment{color rgb<0,1,0>}} sphere{a31, 0.1 pigment{color rgb<0,1,0>}} sphere{a32, 0.1 pigment{color rgb<0,1,0>}} sphere{a33, 0.1 pigment{color rgb<0,1,0>}} sphere{b00, 0.1 pigment{color rgb<0,1,0>}} sphere{b01, 0.1 pigment{color rgb<0,1,0>}} sphere{b02, 0.1 pigment{color rgb<0,1,0>}} sphere{b03, 0.1 pigment{color rgb<0,1,0>}} sphere{b10, 0.1 pigment{color rgb<0,1,0>}} sphere{b11, 0.1 pigment{color rgb<0,1,0>}} sphere{b12, 0.1 pigment{color rgb<0,1,0>}} sphere{b13, 0.1 pigment{color rgb<0,1,0>}} sphere{b20, 0.1 pigment{color rgb<0,1,0>}} sphere{b21, 0.1 pigment{color rgb<0,1,0>}} sphere{b22, 0.1 pigment{color rgb<0,1,0>}} sphere{b23, 0.1 pigment{color rgb<0,1,0>}} sphere{b30, 0.1 pigment{color rgb<0,1,0>}} sphere{b31, 0.1 pigment{color rgb<0,1,0>}} sphere{b32, 0.1 pigment{color rgb<0,1,0>}} sphere{b33, 0.1 pigment{color rgb<0,1,0>}} plane{ y, -2 pigment {checker color White color rgb<0.9, 0.9, 0.9>} }