Fix hole algorithm and update values to inner crate measurements

This commit is contained in:
maride 2017-12-21 17:06:39 +01:00
parent 01d5343f5f
commit db68ca554b

View File

@ -1,4 +1,4 @@
round_psu_cable_fan_plane(390, 280, 6.5, 20, 20, 10, 41, 83, 90, 90); round_psu_cable_fan_plane(360, 250, 6.5, 300, 180, 10, 41, 83, 90, 90);
RESOLUTION=36; RESOLUTION=36;
/* /*
@ -10,13 +10,13 @@ module base_plane(width, height, hole_size, hole_spacing_x, hole_spacing_y) {
square([width, height]); square([width, height]);
// holes // holes
translate([hole_spacing_x, hole_spacing_y]) translate([(width-hole_spacing_x)/2, (height-hole_spacing_y)/2])
circle(d=hole_size, $fn=RESOLUTION); circle(d=hole_size, $fn=RESOLUTION);
translate([width - hole_spacing_x, hole_spacing_y]) translate([hole_spacing_x+(width-hole_spacing_x)/2, (height-hole_spacing_y)/2])
circle(d=hole_size, $fn=RESOLUTION); circle(d=hole_size, $fn=RESOLUTION);
translate([hole_spacing_x, height - hole_spacing_y]) translate([(width-hole_spacing_x)/2, height-(height-hole_spacing_y)/2])
circle(d=hole_size, $fn=RESOLUTION); circle(d=hole_size, $fn=RESOLUTION);
translate([width - hole_spacing_x, height - hole_spacing_y]) translate([hole_spacing_x+(width-hole_spacing_x)/2, height-(height-hole_spacing_y)/2])
circle(d=hole_size, $fn=RESOLUTION); circle(d=hole_size, $fn=RESOLUTION);
} }
} }