mirror of https://github.com/vitalif/openscad
177 lines
5.4 KiB
Plaintext
177 lines
5.4 KiB
Plaintext
group() {
|
|
color([1, 0, 0, 1]) {
|
|
multmatrix([[1, 0, 0, -16], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
multmatrix([[3, 0, 0, 0], [0, 3, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
group() {
|
|
difference() {
|
|
square(size = [5, 5], center = false);
|
|
multmatrix([[1, 0, 0, 1], [0, 1, 0, 1], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
square(size = [1, 1], center = false);
|
|
}
|
|
multmatrix([[1, 0, 0, 3], [0, 1, 0, 3], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
circle($fn = 10, $fa = 12, $fs = 2, r = 1);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
multmatrix([[1, 0, 0, -16], [0, 1, 0, 16], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
multmatrix([[3, 0, 0, 0], [0, 3, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
group() {
|
|
difference() {
|
|
square(size = [5, 5], center = false);
|
|
multmatrix([[1, 0, 0, 1], [0, 1, 0, 1], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
square(size = [1, 1], center = false);
|
|
}
|
|
multmatrix([[1, 0, 0, 2], [0, 1, 0, 2], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
square(size = [1, 1], center = false);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
multmatrix([[1, 0, 0, -16], [0, 1, 0, 32], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
multmatrix([[3, 0, 0, 0], [0, 3, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
group() {
|
|
difference() {
|
|
square(size = [5, 5], center = false);
|
|
multmatrix([[1, 0, 0, 0], [0, 1, 0, 2.5], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
square(size = [5, 1], center = false);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
multmatrix([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
resize(newsize = [15,15,0], auto = [0,0,0]) {
|
|
group() {
|
|
difference() {
|
|
square(size = [5, 5], center = false);
|
|
multmatrix([[1, 0, 0, 1], [0, 1, 0, 1], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
square(size = [1, 1], center = false);
|
|
}
|
|
multmatrix([[1, 0, 0, 3], [0, 1, 0, 3], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
circle($fn = 10, $fa = 12, $fs = 2, r = 1);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
multmatrix([[1, 0, 0, 0], [0, 1, 0, 16], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
resize(newsize = [15,15,0], auto = [0,0,0]) {
|
|
group() {
|
|
difference() {
|
|
square(size = [5, 5], center = false);
|
|
multmatrix([[1, 0, 0, 1], [0, 1, 0, 1], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
square(size = [1, 1], center = false);
|
|
}
|
|
multmatrix([[1, 0, 0, 2], [0, 1, 0, 2], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
square(size = [1, 1], center = false);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
multmatrix([[1, 0, 0, 0], [0, 1, 0, 32], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
resize(newsize = [15,15,0], auto = [0,0,0]) {
|
|
group() {
|
|
difference() {
|
|
square(size = [5, 5], center = false);
|
|
multmatrix([[1, 0, 0, 0], [0, 1, 0, 2.5], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
square(size = [5, 1], center = false);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
color([0, 0.501961, 0, 1]) {
|
|
multmatrix([[1, 0, 0, 16], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
resize(newsize = [15,0,0], auto = [1,1,1]) {
|
|
group() {
|
|
difference() {
|
|
square(size = [5, 5], center = false);
|
|
multmatrix([[1, 0, 0, 1], [0, 1, 0, 1], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
square(size = [1, 1], center = false);
|
|
}
|
|
multmatrix([[1, 0, 0, 3], [0, 1, 0, 3], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
circle($fn = 10, $fa = 12, $fs = 2, r = 1);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
multmatrix([[1, 0, 0, 16], [0, 1, 0, 16], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
resize(newsize = [0,15,0], auto = [1,1,1]) {
|
|
group() {
|
|
difference() {
|
|
square(size = [5, 5], center = false);
|
|
multmatrix([[1, 0, 0, 1], [0, 1, 0, 1], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
square(size = [1, 1], center = false);
|
|
}
|
|
multmatrix([[1, 0, 0, 2], [0, 1, 0, 2], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
square(size = [1, 1], center = false);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
multmatrix([[1, 0, 0, 16], [0, 1, 0, 32], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
resize(newsize = [0,15,0], auto = [1,0,0]) {
|
|
group() {
|
|
difference() {
|
|
square(size = [5, 5], center = false);
|
|
multmatrix([[1, 0, 0, 0], [0, 1, 0, 2.5], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
square(size = [5, 1], center = false);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
color([1, 0.752941, 0.796078, 1]) {
|
|
multmatrix([[1, 0, 0, 32], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
resize(newsize = [0,0,0], auto = [0,1,0]) {
|
|
group() {
|
|
difference() {
|
|
square(size = [5, 5], center = false);
|
|
multmatrix([[1, 0, 0, 1], [0, 1, 0, 1], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
square(size = [1, 1], center = false);
|
|
}
|
|
multmatrix([[1, 0, 0, 3], [0, 1, 0, 3], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
circle($fn = 10, $fa = 12, $fs = 2, r = 1);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
multmatrix([[1, 0, 0, 32], [0, 1, 0, 16], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
resize(newsize = [0,0,15], auto = [1,1,1]) {
|
|
group() {
|
|
difference() {
|
|
square(size = [5, 5], center = false);
|
|
multmatrix([[1, 0, 0, 1], [0, 1, 0, 1], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
square(size = [1, 1], center = false);
|
|
}
|
|
multmatrix([[1, 0, 0, 2], [0, 1, 0, 2], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
square(size = [1, 1], center = false);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
multmatrix([[1, 0, 0, 32], [0, 1, 0, 32], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
resize(newsize = [0,0,15], auto = [0,0,0]) {
|
|
group() {
|
|
difference() {
|
|
square(size = [5, 5], center = false);
|
|
multmatrix([[1, 0, 0, 0], [0, 1, 0, 2.5], [0, 0, 1, 0], [0, 0, 0, 1]]) {
|
|
square(size = [5, 1], center = false);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|