From 62eabe19345912c93324231ed8a4f7318dc52960 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 2 Oct 2012 18:24:08 +0100 Subject: [PATCH] pawn wip new template --- pawn.scad | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/pawn.scad b/pawn.scad index b7c2bed..2aeaae1 100644 --- a/pawn.scad +++ b/pawn.scad @@ -29,6 +29,9 @@ x5 = xc5 - r5 * cos(a6); x6 = x5 - h6 * tan(a6); +htotal = r1 - z6; +echo("height", htotal); + $fa=1; $fs=0.1; @@ -60,4 +63,14 @@ module PawnTemplate(){ [0.01, z6]]); } -PawnTemplate(); +module Pawn(h=htotal){ + scale(h/htotal) { + rotate_extrude($fn=100){ + assign($fn=undef){ + PawnTemplate(); + } + } + } +} + +Pawn(h=20); -- 2.30.2