mirror of
https://github.com/nophead/Mendel90.git
synced 2025-08-13 16:53:57 +02:00
Cleaned up atx_long_bracket.
This commit is contained in:
Binary file not shown.
Before Width: | Height: | Size: 93 KiB After Width: | Height: | Size: 93 KiB |
File diff suppressed because it is too large
Load Diff
@@ -28,40 +28,48 @@ nut_depth = frame_nut_traps ? nut_trap_depth(frame_nut) : 0;
|
|||||||
module atx_long_bracket_stl() {
|
module atx_long_bracket_stl() {
|
||||||
stl("atx_long_bracket");
|
stl("atx_long_bracket");
|
||||||
|
|
||||||
translate([offset, width / 2, thickness / 2]) difference() {
|
rotate([0, 0, 180])
|
||||||
|
translate([-offset, 0, 0]) difference() {
|
||||||
union() {
|
union() {
|
||||||
|
// base
|
||||||
|
linear_extrude(height = thickness)
|
||||||
hull() {
|
hull() {
|
||||||
translate([0, -width / 4, 0])
|
translate([0, -width / 4, 0])
|
||||||
cube([length - 2 * tab_length, width / 2, thickness], center = true);
|
square([length - 2 * tab_length, width / 2], center = true);
|
||||||
|
|
||||||
for(end = [-1, 1])
|
for(end = [-1, 1])
|
||||||
translate([end * (length / 2 - tab_length - width / 2), 0, 0])
|
translate([end * (length / 2 - tab_length - width / 2), -width / 2])
|
||||||
cylinder(r = width / 2, h = thickness, center = true);
|
circle(width / 2);
|
||||||
}
|
}
|
||||||
for(end = [-1, 1]) assign(height = end == -1 ? tab_height : tab_height2)
|
// tabs
|
||||||
translate([end * (length / 2 - tab_length / 2 - eta), -(width - tab_thickness) / 2, (height - thickness) / 2])
|
for(end = [-1, 1]) {
|
||||||
|
height = end == 1 ? tab_height : tab_height2;
|
||||||
|
translate([end * (length / 2 - tab_length / 2 - eta), -tab_thickness / 2, height / 2])
|
||||||
cube([tab_length, tab_thickness, height], center = true);
|
cube([tab_length, tab_thickness, height], center = true);
|
||||||
|
}
|
||||||
|
// nut traps
|
||||||
if(frame_nut_traps)
|
if(frame_nut_traps)
|
||||||
for(end = [-1, 1])
|
for(end = [-1, 1])
|
||||||
translate([end * (length / 2 - tab_length - width / 2), 0, eta])
|
translate([end * (length / 2 - tab_length - width / 2), 0, 0])
|
||||||
linear_extrude(height = thickness / 2 + nut_depth, convexity = 5)
|
linear_extrude(height = thickness + nut_depth, convexity = 5)
|
||||||
union() {
|
union() {
|
||||||
translate([end * width / 2, (tab_thickness - width) / 2])
|
translate([end * width / 4, -tab_thickness / 2])
|
||||||
square([tab_length, tab_thickness], center = true);
|
square([width / 2 + eta, tab_thickness], center = true);
|
||||||
circle(r = width / 2 - eta);
|
|
||||||
|
translate([2 * end * eta, -width / 2 -eta])
|
||||||
|
circle(r = width / 2 + eta);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rotate([0, 0, 180])
|
rotate([0, 0, 180])
|
||||||
for(end = [-1, 1])
|
for(end = [-1, 1])
|
||||||
translate([end * (length / 2 - tab_length - width / 2), 0, thickness / 2 + nut_depth + eta])
|
translate([end * (length / 2 - tab_length - width / 2), width / 2, thickness + nut_depth + eta])
|
||||||
if(frame_nut_traps)
|
if(frame_nut_traps)
|
||||||
nut_trap(screw_clearance_radius(frame_screw), nut_radius(frame_nut), nut_depth);
|
nut_trap(screw_clearance_radius(frame_screw), nut_radius(frame_nut), nut_depth);
|
||||||
else
|
else
|
||||||
poly_cylinder(r = screw_clearance_radius(frame_screw), h = 100, center = true);
|
poly_cylinder(r = screw_clearance_radius(frame_screw), h = 100, center = true);
|
||||||
|
|
||||||
for(end = [-1, 1])
|
for(end = [-1, 1])
|
||||||
translate([end * (length / 2 - psu_hole_x), 0, (end == -1 ? psu_hole_z : psu_hole_z2) - thickness / 2])
|
translate([end * (length / 2 - psu_hole_x), 0, end == 1 ? psu_hole_z : psu_hole_z2])
|
||||||
rotate([90, 0, 0])
|
rotate([90, 0, 0])
|
||||||
teardrop_plus(r = screw_clearance_radius(No632_pan_screw), h = 100, center = true);
|
teardrop_plus(r = screw_clearance_radius(No632_pan_screw), h = 100, center = true);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user