// POVRAY description of button with national flag #declare empty = object{ sphere{ <0,0,0>, 0 } } #declare highlight_color = color rgb <1.00, 1.00, 1.00> // Name of button_flag_file, button_label_file: #declare button_flag_file = "flags/brazil.gif" #declare button_label_file = "button-label-port-1.inc" // Definition of button shape: #declare button_shape_HX = 1.0 #declare button_shape_HY = 0.25 #declare button_shape_HZ = 2.0/3.0 #declare button_shape_cap_HY = 0.15 #declare button_max_disp_Y = 0.0 #declare button_min_disp_Y = -0.40 #declare button_hole_clearance = 0.05 #include "superellipses.inc" #declare button_cyl = object{ super_cyl } #declare button_ball = object{ super_ball } #include "button-shape-simple.inc" // Definitions of button_relief, button_dugout: // #include button_label_file #declare button_relief_HY = 0.0 #declare button_relief = object{ empty } #declare button_dugout = object{ empty } // Definition of button_plunger_texture: #include "button-flag-texture-1.inc" #declare button_plunger_texture = texture{ button_texture_flag } // Definition of button plunger: #include "button-plunger-2.inc" // Definition of button_hole, button_frame: #include "button-hole-simple.inc" // Definition of button_wall_texture, button_frame_texture: #declare matte_color = color bgColor #include "textures/matte.inc" #declare button_wall_texture = texture{ texture_matte } #declare button_frame_texture = texture{ texture_matte } // Definition of button_wall_hole_frame: #include "button-wall-hole-frame.inc" // Definitions of button_in, button_out #include "button-in-hole.inc" #declare img_aspect = 3/2 #declare win_width = 2.8 #declare win_height = win_width / img_aspect #declare win_center_X = 00.00 #declare win_center_Y = 00.00 #declare win_center_Z = -0.10 #declare camDX = 000.00 #declare camDY = +50.00 #declare camDZ = 000.00 #declare skyX = 0 #declare skyY = 0 #declare skyZ = 1 background{ color rgb <1,0,0> } intersection{ object{ button_in translate < -1.25*button_hole_frame_HX, 0, 0 > } plane{ <+1,0.01,0>, +0.001 } } intersection{ plane{ <-1,0.01,0>, +0.001 } object{ button_out translate < +1.25*button_hole_frame_HX, 0, 0 > } }