Skip to content

Commit

Permalink
Update MCAD submodule.
Browse files Browse the repository at this point in the history
  • Loading branch information
t-paul committed Mar 24, 2021
1 parent df36a1e commit 20dfb43
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 121 deletions.
28 changes: 28 additions & 0 deletions tests/regression/astdumptest/include-tests-expected.ast
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,34 @@ module test6() {
module test7() {
cube([0.5, 0.5, 1], center = true);
}
module towerprosg90(position = undef, rotation = undef, screws = 0, axle_length = 0, cables = 0) {
translate(position) rotate(rotation) {
difference() {
union() {
translate([-5.9, (-11.8 / 2), 0]) cube([22.5, 11.8, 22.7]);
translate([0, 0, (22.7 - 0.1)]) {
cylinder(d = 11.8, h = (4 + 0.1));
hull() {
translate([(8.8 - (5 / 2)), 0, 0]) cylinder(d = 5, h = (4 + 0.1));
cylinder(d = 5, h = (4 + 0.1));
}
translate([0, 0, 4]) cylinder(d = 4.6, h = 3.2);
}
translate([(-4.7 - 5.9), (-11.8 / 2), 15.9]) cube([(22.5 + (4.7 * 2)), 11.8, 2.5]);
}
translate([(-2.3 - 5.9), 0, (15.9 + 1.25)]) cylinder(d = 2, h = 5, center = true);
translate([((-2.3 - 5.9) - 2), 0, (15.9 + 1.25)]) cube([3, 1.3, 5], center = true);
translate([((2.3 + 22.5) - 5.9), 0, (15.9 + 1.25)]) cylinder(d = 2, h = 5, center = true);
translate([(((2.3 + 22.5) - 5.9) + 2), 0, (15.9 + 1.25)]) cube([3, 1.3, 5], center = true);
}
if((axle_length > 0)) color("red", 0.3) translate([0, 0, (29.9 / 2)]) cylinder(r = 1, h = (29.9 + axle_length), center = true);
if((cables > 0)) color("red", 0.3) translate([-12.4, -1.8, 4.5]) cube([10, 3.6, 1.2]);
if((screws > 0)) color("red", 0.3) {
translate([(-2.3 - 5.9), 0, (15.9 + 1.25)]) cylinder(d = 2, h = 10, center = true);
translate([((2.3 + 22.5) - 5.9), 0, (15.9 + 1.25)]) cylinder(d = 2, h = 10, center = true);
}
}
}
module alignds420(position, rotation, screws = 0, axle_lenght = 0) {
translate(position) rotate(rotation) {
union() {
Expand Down
Loading

0 comments on commit 20dfb43

Please sign in to comment.