From bacf53e7026a98044bda5a66a5e175f52d10127b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 6 Jun 2020 12:03:27 +0100 Subject: [PATCH] bike-phone-mount: wip diagonal Signed-off-by: Ian Jackson --- bike-phone-mount.scad | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/bike-phone-mount.scad b/bike-phone-mount.scad index 2d8a6a1..b8d4fc1 100644 --- a/bike-phone-mount.scad +++ b/bike-phone-mount.scad @@ -9,6 +9,9 @@ mount_lip_depth = 2.5 /*?*/ - 0.30; mount_neck_width = 26.5 - 0.55 - 0.15; mount_neck_length = 1.5 + 0.50; +mount_diag_outer = 34.8 - 0.50; +mount_diag_inner = 34.6 - 0.20 - 0.50; + mount_slope = .65; mount_extra_slope = 3; @@ -41,7 +44,7 @@ module MountNeckEdgePlan() { mnep7 ]); } -module MountNeck() { +module MountNeckSquare() { intersection_for (r=[0,90]) { rotate([0,0,r]){ linextr_y_xz(-100,100,convexity=10){ @@ -57,6 +60,20 @@ module MountNeck() { } } +module MountDiagonal() { + rotate([0,0,45]){ + translate([0,0, -mount_total_height]){ + linextr(0, mount_lip_height) + square(center=true, mount_diag_outer); + linextr(0, mount_total_height) + square(center=true, mount_diag_inner); + linextr(mount_lip_height + mount_neck_length, + mount_total_height + 1) + square(center=true, 100); + } + } +} + module MountDemoCeil() { c = mount_demo_ceil + mount_extra_slope; linextr(0, 0.8) { @@ -65,12 +82,20 @@ module MountDemoCeil() { } } +module Mount(){ + intersection(){ + MountNeckSquare(); + MountDiagonal(); + } +} + module MountDemo(){ - MountNeck(); + Mount(); MountDemoCeil(); } //MountNeckEdgePlan(); //MountNeck(); //MountDemoCeil(); +//MountDiagonal(); MountDemo(); -- 2.30.2