// Last edited on 2020-04-06 07:04:10 by jstolfi // Woodworking project: drawer chest(s) to put under Fercar bench. #version 3.7; global_settings{ max_trace_level 6 assumed_gamma 1.0 } background{ color rgb < 0.75, 0.80, 0.85 > } // ---------------------------------------------------------------------- // THING TO SHOW #include "js_texture_macros.inc" #include "round_funcs.inc" #include "write_pieces.inc" #fopen pieces "out/pieces.txt" write // For {write_pieces}. #include "straight_tube.inc" #include "curved_tube.inc" #include "tube_stool.inc" #declare view = 0; // Top right from back. // #declare view = 8; // Top right edge middle from back. #declare xplode = 0.0; // Relative explosion amount (global). #local tx_metal = texture_brushed_metal( < 1.000, 1.000, 0.980 > ) //#local thing = // union{ // object{ straight_tube( 20, 150, 15, 2.0, 0.001) translate -60*y } // object{ curved_tube( 15, 2.0, 80, 30, 395, 0.001) translate -30*y } // object{ curved_tube( 15, 2.0, 80, 60, 270, 0.001) translate 00*y } // object{ curved_tube( 15, 2.0, 80, 90, 270, 0.001) translate +30*y } // object{ curved_tube( 15, 2.0, 80, 120, 180, 0.001) translate +60*y } // texture{ tx_metal } // } #local thing = object{ tube_stool( "TS" ) } // ---------------------------------------------------------------------- #include "camlight.inc" #include "standard_view.inc" standard_view(thing, true, true, view) #declare intens_luz = 1.00; camlight(centro_cena, raio_cena, dir_camera, dist_camera, z, intens_luz)