From d3611493fbac6e1284fc527da20a6000a6f089bc Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Wed, 25 Sep 2019 15:34:43 +0800 Subject: [PATCH] add wall_radius --- examples/walk_torus83_fort.scad | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/walk_torus83_fort.scad b/examples/walk_torus83_fort.scad index f0d60efa..ce5dc541 100644 --- a/examples/walk_torus83_fort.scad +++ b/examples/walk_torus83_fort.scad @@ -6,11 +6,10 @@ include ; thickness = 4; height = 15; -radius = 80; +torus_radius = 60; +wall_radius = 71.49125; -// wall_radius still requires some math. -wall_radius = radius + thickness * 3.39375; -walk_torus83_fort(radius, thickness, height, $fn = 36); +walk_torus83_fort(torus_radius, thickness, height, $fn = 36); wall(wall_radius, height, thickness, $fn = 36); module wall(radius, height, thickness) { @@ -24,7 +23,7 @@ module wall(radius, height, thickness) { module bk() { for(i = [0:bk_number + 2]) { translate([(2 * i + 1) * bk_w, 0]) - square(bk_w, center = true); + square([bk_w, bk_w * 2], center = true); } }