Added more example files to showcase dependency tracking.
This commit is contained in:
parent
f9fa53eef8
commit
b690038009
4 changed files with 22 additions and 17 deletions
2
src/_settings.scad
Normal file
2
src/_settings.scad
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
plate_height = 2;
|
||||
struts_height = 1;
|
||||
|
|
@ -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
6
src/example_1.scad
Normal 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
14
src/example_2.scad
Normal 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");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue