#version 3.7; global_settings { } background {rgbt<0.05, 0.05, 0.05, 0>} //--------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------- #declare A1=spline { cubic_spline -0.028571, <-0.249962,-0.004363,0.000000> 0.000000, <0.000000,0.000000,0.000000> 0.028571, <0.249962,0.004363,0.000000> 0.057143, <0.499924,0.008726,0.000000> 0.085714, <0.749886,0.013089,0.000000> 0.114286, <0.999848,0.017452,0.000000> 0.142857, <1.249810,0.021816,0.000000> 0.171429, <1.499772,0.026179,0.000000> 0.200000, <1.749733,0.030542,0.000000> 0.228571, <1.999695,0.034905,0.000000> 0.257143, <1.999695,0.034905,0.250000> 0.285714, <1.999695,0.034905,0.500000> 0.314286, <1.999695,0.034905,0.750000> 0.342857, <1.999695,0.034905,1.000000> 0.371429, <1.999695,0.034905,1.250000> 0.400000, <1.999695,0.034905,1.500000> 0.428571, <1.999695,0.034905,1.750000> 0.457143, <1.999695,0.034905,2.000000> 0.485714, <1.949703,0.034032,2.000000> 0.514286, <1.949703,0.034032,1.762500> 0.542857, <1.949703,0.034032,1.525000> 0.571429, <1.949703,0.034032,1.287500> 0.600000, <1.949703,0.034032,1.050000> 0.628571, <1.949703,0.034032,0.812500> 0.657143, <1.949703,0.034032,0.575000> 0.685714, <1.949703,0.034032,0.337500> 0.714286, <1.949703,0.034032,0.100000> 0.742857, <1.754733,0.030629,0.100000> 0.771429, <1.559762,0.027226,0.100000> 0.800000, <1.364792,0.023823,0.100000> 0.828571, <1.169822,0.020419,0.100000> 0.857143, <0.974851,0.017016,0.100000> 0.885714, <0.779881,0.013613,0.100000> 0.914286, <0.584911,0.010210,0.100000> 0.942857, <0.389941,0.006806,0.100000> 0.971429, <0.194970,0.003403,0.100000> 1.000000, <-0.000000,-0.000000,0.100000> 1.028571, <-0.194970,-0.003403,0.100000> #declare A2=spline { cubic_spline -0.028571, <-0.173665,-0.179835,0.000000> 0.000000, <0.000000,0.000000,0.000000> 0.028571, <0.173665,0.179835,0.000000> 0.057143, <0.347329,0.359670,0.000000> 0.085714, <0.520994,0.539505,0.000000> 0.114286, <0.694658,0.719340,0.000000> 0.142857, <0.868323,0.899175,0.000000> 0.171429, <1.041988,1.079010,0.000000> 0.200000, <1.215652,1.258845,0.000000> 0.228571, <1.389317,1.438680,0.000000> 0.257143, <1.389317,1.438680,0.250000> 0.285714, <1.389317,1.438680,0.500000> 0.314286, <1.389317,1.438680,0.750000> 0.342857, <1.389317,1.438680,1.000000> 0.371429, <1.389317,1.438680,1.250000> 0.400000, <1.389317,1.438680,1.500000> 0.428571, <1.389317,1.438680,1.750000> 0.457143, <1.389317,1.438680,2.000000> 0.485714, <1.354584,1.402713,2.000000> 0.514286, <1.354584,1.402713,1.762500> 0.542857, <1.354584,1.402713,1.525000> 0.571429, <1.354584,1.402713,1.287500> 0.600000, <1.354584,1.402713,1.050000> 0.628571, <1.354584,1.402713,0.812500> 0.657143, <1.354584,1.402713,0.575000> 0.685714, <1.354584,1.402713,0.337500> 0.714286, <1.354584,1.402713,0.100000> 0.742857, <1.219125,1.262441,0.100000> 0.771429, <1.083667,1.122170,0.100000> 0.800000, <0.948209,0.981899,0.100000> 0.828571, <0.812750,0.841628,0.100000> 0.857143, <0.677292,0.701356,0.100000> 0.885714, <0.541834,0.561085,0.100000> 0.914286, <0.406375,0.420814,0.100000> 0.942857, <0.270917,0.280543,0.100000> 0.971429, <0.135458,0.140271,0.100000> 1.000000, <-0.000000,-0.000000,0.100000> 1.028571, <-0.135458,-0.140271,0.100000> #declare A3=spline { cubic_spline -0.028571, <0.004363,-0.249962,0.000000> 0.000000, <-0.000000,0.000000,0.000000> 0.028571, <-0.004363,0.249962,0.000000> 0.057143, <-0.008726,0.499924,0.000000> 0.085714, <-0.013089,0.749886,0.000000> 0.114286, <-0.017452,0.999848,0.000000> 0.142857, <-0.021816,1.249810,0.000000> 0.171429, <-0.026179,1.499772,0.000000> 0.200000, <-0.030542,1.749733,0.000000> 0.228571, <-0.034905,1.999695,0.000000> 0.257143, <-0.034905,1.999695,0.250000> 0.285714, <-0.034905,1.999695,0.500000> 0.314286, <-0.034905,1.999695,0.750000> 0.342857, <-0.034905,1.999695,1.000000> 0.371429, <-0.034905,1.999695,1.250000> 0.400000, <-0.034905,1.999695,1.500000> 0.428571, <-0.034905,1.999695,1.750000> 0.457143, <-0.034905,1.999695,2.000000> 0.485714, <-0.034032,1.949703,2.000000> 0.514286, <-0.034032,1.949703,1.762500> 0.542857, <-0.034032,1.949703,1.525000> 0.571429, <-0.034032,1.949703,1.287500> 0.600000, <-0.034032,1.949703,1.050000> 0.628571, <-0.034032,1.949703,0.812500> 0.657143, <-0.034032,1.949703,0.575000> 0.685714, <-0.034032,1.949703,0.337500> 0.714286, <-0.034032,1.949703,0.100000> 0.742857, <-0.030629,1.754733,0.100000> 0.771429, <-0.027226,1.559762,0.100000> 0.800000, <-0.023823,1.364792,0.100000> 0.828571, <-0.020419,1.169822,0.100000> 0.857143, <-0.017016,0.974851,0.100000> 0.885714, <-0.013613,0.779881,0.100000> 0.914286, <-0.010210,0.584911,0.100000> 0.942857, <-0.006806,0.389941,0.100000> 0.971429, <-0.003403,0.194970,0.100000> 1.000000, <0.000000,-0.000000,0.100000> 1.028571, <0.003403,-0.194970,0.100000> #declare A4=spline { cubic_spline -0.028571, <0.179835,-0.173665,0.000000> 0.000000, <-0.000000,0.000000,0.000000> 0.028571, <-0.179835,0.173665,0.000000> 0.057143, <-0.359670,0.347329,0.000000> 0.085714, <-0.539505,0.520994,0.000000> 0.114286, <-0.719340,0.694658,0.000000> 0.142857, <-0.899175,0.868323,0.000000> 0.171429, <-1.079010,1.041988,0.000000> 0.200000, <-1.258845,1.215652,0.000000> 0.228571, <-1.438680,1.389317,0.000000> 0.257143, <-1.438680,1.389317,0.250000> 0.285714, <-1.438680,1.389317,0.500000> 0.314286, <-1.438680,1.389317,0.750000> 0.342857, <-1.438680,1.389317,1.000000> 0.371429, <-1.438680,1.389317,1.250000> 0.400000, <-1.438680,1.389317,1.500000> 0.428571, <-1.438680,1.389317,1.750000> 0.457143, <-1.438680,1.389317,2.000000> 0.485714, <-1.402713,1.354584,2.000000> 0.514286, <-1.402713,1.354584,1.762500> 0.542857, <-1.402713,1.354584,1.525000> 0.571429, <-1.402713,1.354584,1.287500> 0.600000, <-1.402713,1.354584,1.050000> 0.628571, <-1.402713,1.354584,0.812500> 0.657143, <-1.402713,1.354584,0.575000> 0.685714, <-1.402713,1.354584,0.337500> 0.714286, <-1.402713,1.354584,0.100000> 0.742857, <-1.262441,1.219125,0.100000> 0.771429, <-1.122170,1.083667,0.100000> 0.800000, <-0.981899,0.948209,0.100000> 0.828571, <-0.841628,0.812750,0.100000> 0.857143, <-0.701356,0.677292,0.100000> 0.885714, <-0.561085,0.541834,0.100000> 0.914286, <-0.420814,0.406375,0.100000> 0.942857, <-0.280543,0.270917,0.100000> 0.971429, <-0.140271,0.135458,0.100000> 1.000000, <0.000000,-0.000000,0.100000> 1.028571, <0.140271,-0.135458,0.100000> #declare A5=spline { cubic_spline -0.028571, <0.249962,0.004363,0.000000> 0.000000, <-0.000000,-0.000000,0.000000> 0.028571, <-0.249962,-0.004363,0.000000> 0.057143, <-0.499924,-0.008726,0.000000> 0.085714, <-0.749886,-0.013089,0.000000> 0.114286, <-0.999848,-0.017452,0.000000> 0.142857, <-1.249810,-0.021816,0.000000> 0.171429, <-1.499772,-0.026179,0.000000> 0.200000, <-1.749733,-0.030542,0.000000> 0.228571, <-1.999695,-0.034905,0.000000> 0.257143, <-1.999695,-0.034905,0.250000> 0.285714, <-1.999695,-0.034905,0.500000> 0.314286, <-1.999695,-0.034905,0.750000> 0.342857, <-1.999695,-0.034905,1.000000> 0.371429, <-1.999695,-0.034905,1.250000> 0.400000, <-1.999695,-0.034905,1.500000> 0.428571, <-1.999695,-0.034905,1.750000> 0.457143, <-1.999695,-0.034905,2.000000> 0.485714, <-1.949703,-0.034032,2.000000> 0.514286, <-1.949703,-0.034032,1.762500> 0.542857, <-1.949703,-0.034032,1.525000> 0.571429, <-1.949703,-0.034032,1.287500> 0.600000, <-1.949703,-0.034032,1.050000> 0.628571, <-1.949703,-0.034032,0.812500> 0.657143, <-1.949703,-0.034032,0.575000> 0.685714, <-1.949703,-0.034032,0.337500> 0.714286, <-1.949703,-0.034032,0.100000> 0.742857, <-1.754733,-0.030629,0.100000> 0.771429, <-1.559762,-0.027226,0.100000> 0.800000, <-1.364792,-0.023823,0.100000> 0.828571, <-1.169822,-0.020419,0.100000> 0.857143, <-0.974851,-0.017016,0.100000> 0.885714, <-0.779881,-0.013613,0.100000> 0.914286, <-0.584911,-0.010210,0.100000> 0.942857, <-0.389941,-0.006806,0.100000> 0.971429, <-0.194970,-0.003403,0.100000> 1.000000, <0.000000,0.000000,0.100000> 1.028571, <0.194970,0.003403,0.100000> #declare A6=spline { cubic_spline -0.028571, <0.173665,0.179835,0.000000> 0.000000, <-0.000000,-0.000000,0.000000> 0.028571, <-0.173665,-0.179835,0.000000> 0.057143, <-0.347329,-0.359670,0.000000> 0.085714, <-0.520994,-0.539505,0.000000> 0.114286, <-0.694658,-0.719340,0.000000> 0.142857, <-0.868323,-0.899175,0.000000> 0.171429, <-1.041988,-1.079010,0.000000> 0.200000, <-1.215652,-1.258845,0.000000> 0.228571, <-1.389317,-1.438680,0.000000> 0.257143, <-1.389317,-1.438680,0.250000> 0.285714, <-1.389317,-1.438680,0.500000> 0.314286, <-1.389317,-1.438680,0.750000> 0.342857, <-1.389317,-1.438680,1.000000> 0.371429, <-1.389317,-1.438680,1.250000> 0.400000, <-1.389317,-1.438680,1.500000> 0.428571, <-1.389317,-1.438680,1.750000> 0.457143, <-1.389317,-1.438680,2.000000> 0.485714, <-1.354584,-1.402713,2.000000> 0.514286, <-1.354584,-1.402713,1.762500> 0.542857, <-1.354584,-1.402713,1.525000> 0.571429, <-1.354584,-1.402713,1.287500> 0.600000, <-1.354584,-1.402713,1.050000> 0.628571, <-1.354584,-1.402713,0.812500> 0.657143, <-1.354584,-1.402713,0.575000> 0.685714, <-1.354584,-1.402713,0.337500> 0.714286, <-1.354584,-1.402713,0.100000> 0.742857, <-1.219125,-1.262441,0.100000> 0.771429, <-1.083667,-1.122170,0.100000> 0.800000, <-0.948209,-0.981899,0.100000> 0.828571, <-0.812750,-0.841628,0.100000> 0.857143, <-0.677292,-0.701356,0.100000> 0.885714, <-0.541834,-0.561085,0.100000> 0.914286, <-0.406375,-0.420814,0.100000> 0.942857, <-0.270917,-0.280543,0.100000> 0.971429, <-0.135458,-0.140271,0.100000> 1.000000, <0.000000,0.000000,0.100000> 1.028571, <0.135458,0.140271,0.100000> #declare A7=spline { cubic_spline -0.028571, <-0.004363,0.249962,0.000000> 0.000000, <0.000000,-0.000000,0.000000> 0.028571, <0.004363,-0.249962,0.000000> 0.057143, <0.008726,-0.499924,0.000000> 0.085714, <0.013089,-0.749886,0.000000> 0.114286, <0.017452,-0.999848,0.000000> 0.142857, <0.021816,-1.249810,0.000000> 0.171429, <0.026179,-1.499772,0.000000> 0.200000, <0.030542,-1.749733,0.000000> 0.228571, <0.034905,-1.999695,0.000000> 0.257143, <0.034905,-1.999695,0.250000> 0.285714, <0.034905,-1.999695,0.500000> 0.314286, <0.034905,-1.999695,0.750000> 0.342857, <0.034905,-1.999695,1.000000> 0.371429, <0.034905,-1.999695,1.250000> 0.400000, <0.034905,-1.999695,1.500000> 0.428571, <0.034905,-1.999695,1.750000> 0.457143, <0.034905,-1.999695,2.000000> 0.485714, <0.034032,-1.949703,2.000000> 0.514286, <0.034032,-1.949703,1.762500> 0.542857, <0.034032,-1.949703,1.525000> 0.571429, <0.034032,-1.949703,1.287500> 0.600000, <0.034032,-1.949703,1.050000> 0.628571, <0.034032,-1.949703,0.812500> 0.657143, <0.034032,-1.949703,0.575000> 0.685714, <0.034032,-1.949703,0.337500> 0.714286, <0.034032,-1.949703,0.100000> 0.742857, <0.030629,-1.754733,0.100000> 0.771429, <0.027226,-1.559762,0.100000> 0.800000, <0.023823,-1.364792,0.100000> 0.828571, <0.020419,-1.169822,0.100000> 0.857143, <0.017016,-0.974851,0.100000> 0.885714, <0.013613,-0.779881,0.100000> 0.914286, <0.010210,-0.584911,0.100000> 0.942857, <0.006806,-0.389941,0.100000> 0.971429, <0.003403,-0.194970,0.100000> 1.000000, <-0.000000,0.000000,0.100000> 1.028571, <-0.003403,0.194970,0.100000> #declare A8=spline { cubic_spline -0.028571, <-0.179835,0.173665,0.000000> 0.000000, <0.000000,-0.000000,0.000000> 0.028571, <0.179835,-0.173665,0.000000> 0.057143, <0.359670,-0.347329,0.000000> 0.085714, <0.539505,-0.520994,0.000000> 0.114286, <0.719340,-0.694658,0.000000> 0.142857, <0.899175,-0.868323,0.000000> 0.171429, <1.079010,-1.041988,0.000000> 0.200000, <1.258845,-1.215652,0.000000> 0.228571, <1.438680,-1.389317,0.000000> 0.257143, <1.438680,-1.389317,0.250000> 0.285714, <1.438680,-1.389317,0.500000> 0.314286, <1.438680,-1.389317,0.750000> 0.342857, <1.438680,-1.389317,1.000000> 0.371429, <1.438680,-1.389317,1.250000> 0.400000, <1.438680,-1.389317,1.500000> 0.428571, <1.438680,-1.389317,1.750000> 0.457143, <1.438680,-1.389317,2.000000> 0.485714, <1.402713,-1.354584,2.000000> 0.514286, <1.402713,-1.354584,1.762500> 0.542857, <1.402713,-1.354584,1.525000> 0.571429, <1.402713,-1.354584,1.287500> 0.600000, <1.402713,-1.354584,1.050000> 0.628571, <1.402713,-1.354584,0.812500> 0.657143, <1.402713,-1.354584,0.575000> 0.685714, <1.402713,-1.354584,0.337500> 0.714286, <1.402713,-1.354584,0.100000> 0.742857, <1.262441,-1.219125,0.100000> 0.771429, <1.122170,-1.083667,0.100000> 0.800000, <0.981899,-0.948209,0.100000> 0.828571, <0.841628,-0.812750,0.100000> 0.857143, <0.701356,-0.677292,0.100000> 0.885714, <0.561085,-0.541834,0.100000> 0.914286, <0.420814,-0.406375,0.100000> 0.942857, <0.280543,-0.270917,0.100000> 0.971429, <0.140271,-0.135458,0.100000> 1.000000, <-0.000000,0.000000,0.100000> 1.028571, <-0.140271,0.135458,0.100000> } #declare An = array[11]{ spline{A8}, spline{A1}, spline{A2}, spline{A3}, spline{A4}, spline{A5}, spline{A6}, spline{A7}, spline{A8}, spline{A1}, spline{A2} } //---------------------------------------------- //---------------------------------------------------------------------------------------------------- #include "meshmaker.inc" //---------------------------------------------------------------------------------------------------- object { // MSM(SplineArray, SplRes, Interp_type, InterpRes, FileName) // Generates a surface from an array of splines, (the white curves). // From these input splines the points with the same t-values are // connected by newly generated splines (red curves). // From these the surface is build. MSM( An, // array of splines 100, // amount of triangles, in the direction of the input splines. "c", // type of interpolation ( string!) // "C" or "c": cubic_spline; "L" or "l": linear_spline; // "N" or "n": natural_spline; "Q" or "q": quadratic_spline 100, // amount of triangles, in the direction of the new splines. "" // FileName: ""= non, "NAME.obj'= Wavefront objectfile, "NAME.pcm" compressed mesh file // "NAME.arr" include file with arrays to build a mesh2 from, // others: includefile with a mesh2 object ) // ------------------------------------------------------------------------------------------ texture{ // outside texture uv_mapping pigment {checker color rgb <0.3,0.2,0.6> rgb <1,1,1> scale <0.035,0.1,1>} finish{specular 0.5} } // interior_texture{ // inside texture uv_mapping pigment {checker color rgb <0.0,0,0.0> rgb <1,0.8,0.8> scale <0.035,0.1,1>} finish{specular 0.5} } // rotate <0,45,0> translate <2,0,0> } // end of object //---------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------- light_source { <4.08,5.9,5.1> color rgb<1, 1, 1> } camera { location <0, 0, 0> look_at <0, 0, -1> right <-1.7777777777777777, 0, 0> up <0, 1, 0> angle 49.134343 rotate <-27.098163, 46.688390, -0.903519> translate <7.481132, 5.343666, 6.507640> }