From ec07d95657d52aab375b3b2acb95c87b369d2194 Mon Sep 17 00:00:00 2001 From: Martin Budden Date: Sun, 30 May 2021 16:00:13 +0100 Subject: [PATCH] Added assertion to check colour format in module thread. --- utils/thread.scad | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/thread.scad b/utils/thread.scad index 4c42cb7..18ad3dc 100644 --- a/utils/thread.scad +++ b/utils/thread.scad @@ -50,6 +50,7 @@ function thread_profile(h, crest, angle, overlap = 0.1) = //! Create thread prof [[-base / 2, -overlap, 0], [-crest / 2, h, 0], [crest / 2, h, 0], [base / 2, -overlap, 0]]; module thread(dia, pitch, length, profile, center = true, top = -1, bot = -1, starts = 1, solid = true, female = false, colour = undef) { //! Create male or female thread, ends can be tapered, chamfered or square + assert(is_undef(colour) || is_list(colour), "Thread colour must be in [r, g, b] form"); // // Apply colour if defined //