From 67e8552dece631d987d29e75f0f4f4c6162aafe2 Mon Sep 17 00:00:00 2001 From: ede1998 Date: Thu, 23 Jul 2026 21:58:33 +0200 Subject: [PATCH] scad: visual component debuggability --- model/combined.scad | 5 +++++ model/common.scad | 1 + model/left-half.scad | 7 ++++++- model/right-half.scad | 11 ++++++++--- 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/model/combined.scad b/model/combined.scad index 419e330..1def17c 100644 --- a/model/combined.scad +++ b/model/combined.scad @@ -4,3 +4,8 @@ use left_half(); right_half(); + +#union() { + right_half_components(); + left_half_components(); +} diff --git a/model/common.scad b/model/common.scad index a3a5540..ada38eb 100644 --- a/model/common.scad +++ b/model/common.scad @@ -1,4 +1,5 @@ BASE_MODEL_SCALE = [1,1,1]; +BASE_MODEL_TRANSLATE = [0,0,16]; module main_display(){ // Outer dimensions, height currently unknown diff --git a/model/left-half.scad b/model/left-half.scad index 6da758e..ebcbe9c 100644 --- a/model/left-half.scad +++ b/model/left-half.scad @@ -1,7 +1,12 @@ include +module left_half_components() { + cube([1,1,1]); +} + module left_half() { - import(file = "left-half.3mf"); + translate(BASE_MODEL_TRANSLATE) import(file = "left-half.3mf"); } left_half(); +#left_half_components(); \ No newline at end of file diff --git a/model/right-half.scad b/model/right-half.scad index 62b53f3..1724786 100644 --- a/model/right-half.scad +++ b/model/right-half.scad @@ -1,7 +1,12 @@ include -module right_half() { - import(file = "right-half.3mf"); +module right_half_components() { + cube([1,1,1]); } -right_half(); \ No newline at end of file +module right_half() { + translate(BASE_MODEL_TRANSLATE) import(file = "right-half.3mf"); +} + +right_half(); +#right_half_components(); \ No newline at end of file