+ }
+}
+
+module BraceProfileInitial(){
+ p = phone + phone_slop;
+ pbo = p[2] + button_dz_outer;
+ pbc = p[2] + button_dz_centre;
+ polygon([[ button_dy_outer/2 + 0.2, p[2] ],
+ [ button_dy_outer/2 + 0.2, pbo + wall[2] ],
+ [ button_dy_outer/2 , pbo + wall[2] ],
+ [ button_dy_outer/2 , p[2] ],
+ ]);
+}
+
+module BraceProfileFinal(){
+ p = phone + phone_slop;
+ pbo = p[2] + button_dz_outer;
+ pbc = p[2] + button_dz_centre;
+ polygon([[ -1, p[2] ],
+ [ -1, pbc + wall[2] ],
+ [ 0, pbc + wall[2] ],
+ [ 0, p[2] ]
+ ]);
+}
+
+module Brace(){
+ for (m=[0,1]) mirror([0,m,0]) {
+ hull(){
+ for (e=[0,1]) {
+ translate([ nrbutton_brace_x + e * phone[1]/2,
+ 0, 0 ]){
+ rotate([ 90,0,90 ]){
+ linear_extrude(height= (e==0 ? wall[0] : 0.1)){
+ hull(){
+ BraceProfileInitial();
+ if (e==0) BraceProfileFinal();
+ }
+ }
+ }
+ }
+ }
+ }