From 48a307f919caffc05c19c4174a1a771ee71a5cdb Mon Sep 17 00:00:00 2001 From: "Jan \"Yenya\" Kasprzak" Date: Mon, 12 Feb 2024 08:35:08 +0100 Subject: [PATCH] vesak-filip: obe verze v jednom --- vesak-filip-aktovka.scad | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/vesak-filip-aktovka.scad b/vesak-filip-aktovka.scad index 41a9696..0fa36a0 100644 --- a/vesak-filip-aktovka.scad +++ b/vesak-filip-aktovka.scad @@ -3,13 +3,15 @@ include ; eps = 0.01; infty = 200; +thin_version = 0; wall = 8; inner_w = 82; outer_w = inner_w + 2*30; inner_w_round_r = 2; -body_h = 8; -bottom_w = 35; +body_h = thin_version ? 8 : 30; +bottom_w = thin_version ? 35 : 70; + top_w = bottom_w + 3*wall; bottom_h = 60; @@ -35,14 +37,14 @@ module top_part() { } } -hole_d = 20; +hole_d = thin_version ? 20 : 35; hole_l = 1.25*hole_d; hole_xoff = 0.2*(bottom_w-hole_d); hole_yoff = bottom_h - 0.2*hole_d; hole_top_yoff = 7; -hole_top_l = 30; -hook_top_rx = 4; -hook_top_ry = 6; +hole_top_l = thin_version ? 30 : 20; +hook_top_rx = thin_version ? 4 : 8; +hook_top_ry = thin_version ? 6 : 12; module bottom_part() { difference() { hull() { @@ -90,7 +92,11 @@ module bottom_part() { } module rounding() { - Mz() cylinder(r1 = 2, r2 = 0, h = 3, $fn = 8); + if (thin_version) { + Mz() cylinder(r1 = 2, r2 = 0, h = 3, $fn = 8); + } else { + Mz() cylinder(r1 = 3, r2 = 0, h = 4.5, $fn = 8); + } } -- 2.43.0