1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
group() {
group();
color([1, 0, 0, 1]) {
multmatrix([[1, 0, 0, 0], [0, 1, 0, -30], [0, 0, 1, 0], [0, 0, 0, 1]]) {
linear_extrude(height = 20, center = false, convexity = 1, scale = [1, 1], $fn = 0, $fa = 12, $fs = 2) {
square(size = [20, 10], center = true);
}
}
}
color([0, 0.501961, 0, 1]) {
multmatrix([[1, 0, 0, -30], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
linear_extrude(height = 20, center = false, convexity = 1, scale = [0.2, 0.2], $fn = 0, $fa = 12, $fs = 2) {
square(size = [20, 10], center = true);
}
}
}
color([0, 1, 1, 1]) {
multmatrix([[1, 0, 0, 30], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
linear_extrude(height = 20, center = false, convexity = 1, twist = 90, slices = 7, scale = [1, 1], $fn = 0, $fa = 12, $fs = 2) {
square(size = [20, 10], center = true);
}
}
}
color([0.501961, 0.501961, 0.501961, 1]) {
multmatrix([[1, 0, 0, 0], [0, 1, 0, 30], [0, 0, 1, 0], [0, 0, 0, 1]]) {
linear_extrude(height = 40, center = true, convexity = 1, twist = -360, slices = 200, scale = [0, 0], $fn = 0, $fa = 12, $fs = 2) {
square(size = [20, 10], center = true);
}
}
}
}
|