Added more example files to showcase dependency tracking.

This commit is contained in:
Michael Schwarz 2014-12-12 11:44:51 +01:00
parent f9fa53eef8
commit b690038009
4 changed files with 22 additions and 17 deletions

2
src/_settings.scad Normal file
View file

@ -0,0 +1,2 @@
plate_height = 2;
struts_height = 1;

View file

@ -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);
}
}

6
src/example_1.scad Normal file
View file

@ -0,0 +1,6 @@
include <_settings.scad>
render(convexity = 10) {
linear_extrude(plate_height)
import("example.dxf", layer = "text");
}

14
src/example_2.scad Normal file
View file

@ -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");
}
}