diff options
Diffstat (limited to 'connector_front.scad')
-rw-r--r-- | connector_front.scad | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/connector_front.scad b/connector_front.scad index 56c7431..c3382cc 100644 --- a/connector_front.scad +++ b/connector_front.scad @@ -41,15 +41,27 @@ module half() difference() { translate([rail_width, bar_thickness / 2, tray_height]) nipple(pla_epsilon); } -difference() { - union() { - half(); - mirror() half(); + +module front_connector( + border_left = false, + border_right = false, + border_top = false, + border_bottom = false +) { + difference() { + union() { + half(border_right); + mirror() half(border_left); + } + + // female leftward positioning nippel + if (!border_left) + translate([-tray_width/2, bar_thickness / 2, tray_height - bar_thickness / 2]) rotate([0, 270, 0]) nipple(pla_epsilon); } - // female leftward positioning nippel - # translate([-tray_width/2, bar_thickness / 2, tray_height - bar_thickness / 2]) rotate([0, 270, 0]) nipple(pla_epsilon); + // male rightward positioning nippel + if (!border_right) + translate([tray_width / 2, bar_thickness / 2, tray_height - bar_thickness / 2]) rotate([0, 270, 0]) nipple(); } -// male rightward positioning nippel -translate([tray_width / 2, bar_thickness / 2, tray_height - bar_thickness / 2]) rotate([0, 270, 0]) nipple(); +front_connector(border_right=true);
\ No newline at end of file |