| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- include <../config/angle_connector.scad>
- module angle_connector_base_shape() {
- rounding = angle_rounding;
- width = angle_connector_depth;
- height = angle_connector_height;
- margin = angle_connector_thickness;
- module shape(width, height) {
- move_x = width / 2;
- move_y = height / 2;
- hull() {
- translate([-move_x + rounding, move_y - rounding]) {
- circle(r = rounding);
- }
- translate([-move_x + rounding, -move_y + rounding]) {
- circle(r = rounding);
- }
- translate([move_x - rounding, move_y - rounding]) {
- circle(r = rounding);
- }
- }
- }
- difference() {
- shape(width, height);
- x = 20 * sqrt(2);
- translate([-x / 2, x / 2]) {
- shape(width - margin * 2 - x, height - margin * 2 - x);
- }
- }
- }
- module angle_connector_base_object() {
- linear_extrude(height = angle_connector_width, center = true) {
- angle_connector_base_shape();
- }
- }
- module angle_connector_object() {
- angle_connector_base_object();
- }
|