// Last edited on 2008-08-13 13:47:29 by stolfi // The L-desk #macro desk(sx,sy,sz, wx,wy, rad, dims) // The L-shaped desk. // The overall dimensions are {dx,dy,dz}. // The desk width are {wx,wy}. // The indentation has radius {rad}. // The X-axis is parallel to the main hall. // The Z-axis points up. // Dimensions are in meters. // // The desk has a corner at <0,0,0> and extends into // positive X,Y,Z. // If {dims} is true, shows the dimension arrows. // Thickness of side panels: #local side_thk = desk_side_thk; // Thickness of side panels. #local topp_thk = desk_topp_thk; // Thickness of top board. #local eps = 0.0001; union { box { <0,0,0> texture { desk_texture } } } #end