// Last edited on 2021-04-30 22:31:33 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.50, 0.52, 0.55 > } #include "inertial_balance_textures.inc" // Fudge factors for proper CSG: #declare eps = 0.001; #declare eps3 = < eps, eps, eps >; // ---------------------------------------------------------------------- // THING TO SHOW #include "inertial_balance_textures.inc" #include "inertial_balance_table.inc" #include "inertial_balance_labels.inc" #include "inertial_balance_half_beam.inc" #include "inertial_balance_mass.inc" #include "inertial_balance_rail.inc" #include "inertial_balance.inc" #include "misc_arrows.inc" #declare show_axes = false; #declare show_ground = true; #declare show_dims = true; // #declare view = 0; // General from 1st octant. #declare view = 4; // Detail at end of beams. // #declare view = 5; // Detail at pivot. // #declare view = 8; // Top right edge middle from back. #declare xplode = 1.0; // Relative explosion amount (global). #local brot = 0; // Rotation of beam. #local thing = object{ inertial_balance( 50, 250, 250, 50, brot, show_dims ) } #if (show_axes) #local axes = object{ eixos(1.3*thrad, 0.005*thrad) } #else #local axes = union{ } #end #if (show_ground) #local ground = object{ inertial_balance_table() } #else #local ground = union{ } #end // ---------------------------------------------------------------------- #include "camlight.inc" #include "inertial_balance_view.inc" inertial_balance_view(thing, axes, ground, view) #declare intens_luz = 1.00; #declare centro_cena = centro_cena - 30*z; cam_place(centro_cena, raio_cena, dir_camera, dist_camera, z) light_place(centro_cena, dir_camera, dist_camera, z, intens_luz, 4, 20)