// Last edited on 2022-04-16 23:22:36 by stolfi // Woodworking project: drawer chest(s) to put under Fercar bench. #version 3.7; global_settings{ max_trace_level 50 assumed_gamma 1.0 } background{ color rgb < 0.75, 0.80, 0.85 > } #include "js_texture_macros.inc" #include "write_pieces.inc" // Fudge factors for proper CSG: #declare eps = 0.001; #declare eps3 = < eps, eps, eps >; #fopen pieces "out/pieces.txt" write // For {write_pieces}. // ---------------------------------------------------------------------- // THING TO SHOW // #local debug_tx = true; // Set to true to use different color for each plate. #local debug_tx = false; // Set to true to use different color for each plate. #include "holder_textures.inc" #include "holder_with_tubes.inc" //#declare view = 0; // Top right from front. // #declare view = 4; // Top right corner small detail. // #declare view = 8; // Top right edge middle from back. #declare view = 9; // Left edge middle frontal full height. #declare xplode = 0.00; // Relative explosion amount (global). // #declare xplode = 0.25; // Relative explosion amount (global). #local N = 20; // Number of test tube slots. #local M = min(N-1, 5); // Number of test tubes to show. #local libox_show = true; #local libox_disp = < -30, 0, +30 >; // #local libox_disp = < 0, 0, 0 >; #local thing = object{ holder_with_tubes(N, M, libox_show, libox_disp) } // #local thing = object{ holder( N, <35,600,200>, 17.8, 21.0, 38.0, 80.0, 5.0, 5.0, 5.0, 5.0, 3.0, 0.75 ) } // #local thing = object{ test_tube( 15.8, 150.0, 0.200 ) } // #local thing = object{ light_box( <60,600,200>, 5.0, 5.0, 5.0 ) } // ---------------------------------------------------------------------- #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)