From b9b0d04594a0ae8ceb6089fd303e205330c7e931 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 1 Jun 2014 10:48:50 +0100 Subject: [PATCH] topeak-seatstay-lock: break out PiecePrint --- topeak-seatstay-lock.scad | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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(){ -- 2.30.2