From 57370a6577cee954973436a4f41b7206dc391265 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 9 Jun 2013 00:24:44 +0100 Subject: [PATCH] crossbar-computer-led-mount: cross sections done? --- crossbar-computer-led-mount.scad | 38 ++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/crossbar-computer-led-mount.scad b/crossbar-computer-led-mount.scad index 45f1f2d..b86b4b9 100644 --- a/crossbar-computer-led-mount.scad +++ b/crossbar-computer-led-mount.scad @@ -70,6 +70,17 @@ module TowerWallCrossSection(){ [-backfront_mate_extra, -tower_base_height]]); } +module TowerWallSomeEdge(front){ + minkowski(){ + difference(){ + TowerWallCrossSection(); + translate([front ? 0.10 : -0.10, 0]) + TowerWallCrossSection(); + } + circle(r=tower_wall_thick, $fn=8); + } +} + module TowerBulkCrossSection(){ intersection(){ TowerWallCrossSection(); @@ -77,9 +88,32 @@ module TowerBulkCrossSection(){ translate([-tower_over_max_y/2, tower_frontheight + tower_overhang*sin(tower_over_angle)/2]) circle(r = led_depth); + TowerWallSomeEdge(true); + translate([-50, -50]) + square([100, 50]); + } + } +} + +module TowerRearWallCrossSection(){ + intersection(){ + TowerWallCrossSection(); + union(){ + intersection(){ + translate([0,-10]) square([100, 10+tower_frontheight]); + TowerWallSomeEdge(false); + } + TowerBulkCrossSection(); } } } -%TowerWallCrossSection(); -TowerBulkCrossSection(); +module TowerDemo(){ + %TowerWallCrossSection(); + //TowerBulkCrossSection(); + TowerRearWallCrossSection(); +} + +TowerDemo(); +//TowerWallSomeEdge(false); +//TowerWallFrontEdge(); -- 2.30.2