global_settings { hf_gray_16 } #declare Debug=true; /* Debug short messages */ #declare Hollow=false; /* if true all level2 sponge in the final sponge will be hollow. */ #declare Write_X_Wall_Only=false; /* only the wall parallel to x-axis will be written */ #declare DP=3; /* number of decimal points */ #declare INC=false; /* output a POV inc-file only triangles are written the filehandle is "INC_FILE" */ #declare PRINT_COMMAS=false; /* write commas between vectors in inc-file: true: triangle {,,} false: triangle {} this is to reduce the file size */ #declare RAW=true; /* output a raw_file the filehandle is "RAW_FILE" */ #declare RAW_COMMENTS=false; /* split the raw-file in objects the objects will be named according to their x,(y,)z coords */ #if (RAW) #fopen RAW_FILE "m:\SPONGE3.RAW" write #end #if (INC) #fopen INC_FILE "m:\SPONGE3.INC" write #end #include "spng_out.inc" //SPONGE2(0,0,0,9) SPONGE3(0,0,0,9) //SPONGE4() //NOTE: The size of SPONGE4.RAW is ~20 MB! #if (INC) #fclose INC_FILE #end #if (RAW) #fclose RAW_FILE #end #declare txt_str = concat(str(tc,1,0)," triangles.") #declare len=strlen(txt_str); text { ttf "crystal.ttf",txt_str, 0.1, 0 pigment {rgb 0} scale <1,1.5,1> } background { rgb 1 } camera { location direction z } light_source {-z*100 rgb 1.2 shadowless}