Removed unneeded calls to render

This commit is contained in:
2022-03-06 17:08:07 +01:00
parent 21f8e15dda
commit 9f8fdb55ec
2 changed files with 96 additions and 83 deletions

View File

@@ -4,5 +4,11 @@
* Add place to mount electronics (likely just an extra part) * Add place to mount electronics (likely just an extra part)
* add slot for motor electronic connection * add slot for motor electronic connection
* Add screw holes for idler mounts in rear corner * Add screw holes for idler mounts in rear corner
* Raise motor mount on front left motor
## Electronics ## Electronics
Must contain:
* Two TMC2209 drivers
* Two 4-pin screw terminals for motors
* Arduino?

View File

@@ -237,7 +237,7 @@ module idler_post(belt_height, toothed = true) {
module flcorner() { module flcorner() {
bom_item(); bom_item();
render() { union() {
rotate([ 0, 0, 0 ]) { rotate([ 0, 0, 0 ]) {
corner_base(); corner_base();
rail_holder(false); rail_holder(false);
@@ -270,7 +270,7 @@ module flcorner() {
module frcorner() { module frcorner() {
bom_item(); bom_item();
render() { union() {
rotate([ 0, 0, 90 ]) { rotate([ 0, 0, 90 ]) {
corner_base(); corner_base();
rail_holder(true); rail_holder(true);
@@ -304,7 +304,7 @@ module frcorner() {
module blcorner() { module blcorner() {
bom_item(); bom_item();
render() union()
rotate([ 0, 0, 270 ]) { rotate([ 0, 0, 270 ]) {
corner_base(extension = rail_holder_width); corner_base(extension = rail_holder_width);
rail_holder(true); rail_holder(true);
@@ -320,7 +320,7 @@ module blcorner() {
module brcorner() { module brcorner() {
bom_item(); bom_item();
render() union()
rotate([ 0, 0, 180 ]) { rotate([ 0, 0, 180 ]) {
corner_base(extension = rail_holder_width); corner_base(extension = rail_holder_width);
rail_holder(false); rail_holder(false);
@@ -339,7 +339,7 @@ module xsled_slider() {
screw_tab_len = 20; screw_tab_len = 20;
screw_tab_thickness = 10; screw_tab_thickness = 10;
render() union()
// translate([screw_tab_len, 0, 0]) // translate([screw_tab_len, 0, 0])
difference() { difference() {
union() { union() {
@@ -517,6 +517,7 @@ module xsled2() {
echo("Ledge width: ", ledge_width - outside_ledge_width); echo("Ledge width: ", ledge_width - outside_ledge_width);
// rail attachment points // rail attachment points
render() {
for (xsign = [1, - 1], ysign = [1, - 1]) { for (xsign = [1, - 1], ysign = [1, - 1]) {
translate([sled_xsize / 2 * xsign, sled_ysize / 2 * ysign, 0]) translate([sled_xsize / 2 * xsign, sled_ysize / 2 * ysign, 0])
rotate([0, - 90 * xsign, 0]) { rotate([0, - 90 * xsign, 0]) {
@@ -532,9 +533,6 @@ module xsled2() {
cylinder(d = rail_diam * 1.1, h = tab_len + 1); cylinder(d = rail_diam * 1.1, h = tab_len + 1);
} }
} }
if ($preview) {
bushing();
}
} }
} }
@@ -583,23 +581,32 @@ module xsled2() {
// belt attachment points // belt attachment points
idler_spacing = sled_ysize / 6; idler_spacing = sled_ysize / 6;
for (params = [ for (params = [
[true, [-sled_xsize/2, idler_spacing, belt_height1 ]], [true, [- sled_xsize / 2, idler_spacing, belt_height1]],
[false, [-sled_xsize/2, -idler_spacing, belt_height2]], [false, [- sled_xsize / 2, - idler_spacing, belt_height2]],
[true, [sled_xsize/2, idler_spacing, belt_height2]], [true, [sled_xsize / 2, idler_spacing, belt_height2]],
[false, [sled_xsize/2, -idler_spacing, belt_height1]] [false, [sled_xsize / 2, - idler_spacing, belt_height1]]
]) { ]) {
should_mirror = params[1][0] > 0 ? params[0] : !params[0]; should_mirror = params[1][0] > 0 ? params[0] : !params[0];
translate(params[1]) translate(params[1])
rotate([0,0,params[1][0] > 0 ? 90 : -90]) { rotate([0, 0, params[1][0] > 0 ? 90 : - 90]) {
if (should_mirror ) { if (should_mirror) {
mirror([1,0,0]) mirror([1, 0, 0])
gt2_clip(params[0]); gt2_clip(params[0]);
} else { } else {
gt2_clip(params[0]); gt2_clip(params[0]);
} }
} }
} }
}
if ($preview) {
for (xsign = [1, - 1], ysign = [1, - 1]) {
translate([sled_xsize / 2 * xsign, sled_ysize / 2 * ysign, 0])
rotate([0, - 90 * xsign, 0]) {
bushing();
}
}
}
color("#fff3") if ($preview) { color("#fff3") if ($preview) {
// draw glass sheets // draw glass sheets
translate( translate(