From df40bf4f6f5a299202a25acfbc7ea1e7b68b5b00 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 26 Aug 2016 20:10:57 +0100 Subject: [PATCH] flyscreen-handle: wip pegs --- flyscreen-handle.scad | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/flyscreen-handle.scad b/flyscreen-handle.scad index af3941f..5d8a65f 100644 --- a/flyscreen-handle.scad +++ b/flyscreen-handle.scad @@ -36,6 +36,8 @@ basics_len = 8; overret_hch = 5; +peg_width_slop = 0.5; + // calculated ins_irad = openingcnr_dia/2 + gap; @@ -58,6 +60,13 @@ retain_cutout_h = retain_rad * 2 + retain_bend_gap; overret_gaplen = retain_cutout_h / cos(retain_empir_angle); +peg_width = retain_stalk_len - + (handle_x0 - retain_mxy[0]) / cos(retain_empir_angle) + - peg_width_slop; + +peg_height = retain_cutout_h - (retain_rad + retain_stalk_h) + + retain_pushmore_adj; + retain1_len = retain_len + retain_stalk_len; retain1_base = total_len - retain1_len; @@ -122,6 +131,19 @@ module RetainSection(){ } } +module PegSection(delta){ + square([peg_width, + peg_height + delta]); +} + +module PegSectionForDemo(delta){ + translate(retain_mxy) + rotate(retain_empir_angle) + translate([retain_stalk_len - peg_width - peg_width_slop/2, + retain_stalk_h - retain_pushmore_adj]) + PegSection(delta); +} + module RetainCutout(gapping=false){ translate(retain_mxy) { rotate(retain_empir_angle) { @@ -202,6 +224,7 @@ module Handle(){ module Demo(){ color("red") translate([0,0,-3]) BasicSection(); color("blue") translate([0,0,3]) WithRetainSection(); + color("orange") translate([0,0,7]) PegSectionForDemo(0); } module Test(){ @@ -212,7 +235,7 @@ module Test(){ } } -//Demo(); +Demo(); //HandleSection(); //InsertSection(); //WithRetainSection(); @@ -220,4 +243,4 @@ module Test(){ //GappingSection(); //Test(); //Demo(); -Handle(); +//Handle(); -- 2.30.2