1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-29 17:30:11 +02:00
This commit is contained in:
Justin Lin
2021-07-31 16:23:26 +08:00
parent 1544546cdd
commit 3784469c59

View File

@@ -1,4 +1,5 @@
use <experimental/tile_wfc.scad>; use <experimental/tile_wfc.scad>;
use <experimental/select.scad>;
sample = [ sample = [
[ 6, 12, 0, 0, 0, 0, 0, 0, 0, 6, 12], [ 6, 12, 0, 0, 0, 0, 0, 0, 0, 6, 12],
@@ -104,53 +105,27 @@ module tube_tile(n, width) {
rotate(90) rotate(90)
tile5(); tile5();
} }
module tile0() {
// nope
}
if(n == 0) { select(n) {
// no tube tile0();
}
else if(n == 1) {
tile1(); tile1();
}
else if(n == 2) {
rotate(-90) tile1(); rotate(-90) tile1();
}
else if(n == 3) {
tile3(); tile3();
}
else if(n == 4) {
rotate(-180) tile1(); rotate(-180) tile1();
}
else if(n == 5) {
tile5(); tile5();
}
else if(n == 6) {
rotate(-90) tile3(); rotate(-90) tile3();
}
else if(n == 7) {
tile7(); tile7();
}
else if(n == 8) {
rotate(90) tile1(); rotate(90) tile1();
}
else if(n == 9) {
rotate(90) tile3(); rotate(90) tile3();
}
else if(n == 10) {
rotate(90) tile5(); rotate(90) tile5();
}
else if(n == 11) {
rotate(90) tile7(); rotate(90) tile7();
}
else if(n == 12) {
rotate(-180) tile3(); rotate(-180) tile3();
}
else if(n == 13) {
rotate(180) tile7(); rotate(180) tile7();
}
else if(n == 14) {
rotate(270) tile7(); rotate(270) tile7();
}
else if(n == 15) {
tile15(); tile15();
} }
} }