9 lidinner_thick_allow = 20;
15 // ----- calculated -----
18 gppB = gppA - [ wall_thick, 0 ];
20 gppL = [ gppB[0], -(lidinner_thick_allow + space + base_thick) ];
24 anchor_b = anchor_thick + anchor_rad;
25 appM = gppL + anchor_b * [1,1];
27 a_bevel = 2 * anchor_b * (1 + sqrt(0.5));
29 module upp_app_Vars(t_bevel){
30 $xppE = gppL + t_bevel * [0,1];
31 $xppF = gppL + t_bevel * [1,0];
33 $xppJ = $xppE + wall_thick * [ 1, tan(22.5) ];
34 $xppI = $xppF + base_thick * [ tan(22.5), 1 ];
39 module upp_app_Profile(){
50 module UsualProfile(){
51 upp_app_Vars(bevel) upp_app_Profile();
54 module NearAnchorProfile(){
55 upp_app_Vars(a_bevel) upp_app_Profile();
58 module AnchorProfile(){
59 upp_app_Vars(a_bevel) {
69 translate(appM) circle(r= anchor_b);
71 translate(appM) circle(r= anchor_rad);
76 module AnchorWallProfile(){
80 for (bev = [bevel, a_bevel]) {
92 translate([0,0,-2]) color("yellow") AnchorWallProfile();
93 color("red") AnchorProfile();
94 translate([0,0,2]) color("black") NearAnchorProfile();
95 translate([0,0,4]) color("blue") UsualProfile();