From: Ian Jackson Date: Tue, 2 Oct 2012 17:24:08 +0000 (+0100) Subject: pawn wip new template X-Git-Tag: filamentspool-v2-release~760 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=62eabe19345912c93324231ed8a4f7318dc52960;p=reprap-play.git pawn wip new template --- 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);