From b69003800917a93c5c2b240ede6f83b80f1095cc Mon Sep 17 00:00:00 2001 From: Michael Schwarz Date: Fri, 12 Dec 2014 11:44:51 +0100 Subject: Added more example files to showcase dependency tracking. --- src/_settings.scad | 2 ++ src/example.scad | 17 ----------------- src/example_1.scad | 6 ++++++ src/example_2.scad | 14 ++++++++++++++ 4 files changed, 22 insertions(+), 17 deletions(-) create mode 100644 src/_settings.scad delete mode 100644 src/example.scad create mode 100644 src/example_1.scad create mode 100644 src/example_2.scad diff --git a/src/_settings.scad b/src/_settings.scad new file mode 100644 index 0000000..1f84b17 --- /dev/null +++ b/src/_settings.scad @@ -0,0 +1,2 @@ +plate_height = 2; +struts_height = 1; diff --git a/src/example.scad b/src/example.scad deleted file mode 100644 index e4e5022..0000000 --- a/src/example.scad +++ /dev/null @@ -1,17 +0,0 @@ -module extrude_layer(layer, height) { - linear_extrude(height = height) - import("example.dxf", layer = layer); -} - -render(convexity = 10) { - union() { - difference() { - extrude_layer("base", 2); - - translate([0, 0, -1e6]) - extrude_layer("text", 2e6); - } - - extrude_layer("struts", 1); - } -} diff --git a/src/example_1.scad b/src/example_1.scad new file mode 100644 index 0000000..b6e8931 --- /dev/null +++ b/src/example_1.scad @@ -0,0 +1,6 @@ +include <_settings.scad> + +render(convexity = 10) { + linear_extrude(plate_height) + import("example.dxf", layer = "text"); +} diff --git a/src/example_2.scad b/src/example_2.scad new file mode 100644 index 0000000..2dd57e6 --- /dev/null +++ b/src/example_2.scad @@ -0,0 +1,14 @@ +include <_settings.scad> + +render(convexity = 10) { + union() { + linear_extrude(plate_height) + difference() { + import("example.dxf", layer = "base"); + import("example.dxf", layer = "text"); + } + + linear_extrude(struts_height) + import("example.dxf", layer = "struts"); + } +} -- cgit