From: Ian Jackson Date: Sun, 1 Jun 2014 09:48:50 +0000 (+0100) Subject: topeak-seatstay-lock: break out PiecePrint X-Git-Tag: filamentspool-v2-release~341 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=b9b0d04594a0ae8ceb6089fd303e205330c7e931;p=reprap-play.git topeak-seatstay-lock: break out PiecePrint --- diff --git a/topeak-seatstay-lock.scad b/topeak-seatstay-lock.scad index f5265e6..b856324 100644 --- a/topeak-seatstay-lock.scad +++ b/topeak-seatstay-lock.scad @@ -111,11 +111,15 @@ module Piece(pc,interval){ } } -module PiecesPrint(){ +module PiecePrint(pc){ rotate([0,180,0]) - for (pc=[0,1]){ - Piece(pc,4); - } + Piece(pc,4); +} + +module PiecesPrint(pcs=[0,1]){ + for (pc=pcs){ + PiecePrint(); + } } module Demo(){