From 008556a92eba8bcdd90353ae2b32093193d04aea Mon Sep 17 00:00:00 2001 From: maride Date: Sat, 20 Jan 2018 01:32:25 +0100 Subject: [PATCH] Move libs to repository/submodule --- .gitmodules | 3 +++ Camera_2020_Mount.scad | 4 ++-- lib | 1 + lib2020.scad | 21 --------------------- 4 files changed, 6 insertions(+), 23 deletions(-) create mode 100644 .gitmodules create mode 160000 lib delete mode 100644 lib2020.scad diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..4dbebda --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "lib"] + path = lib + url = https://git.darknebu.la/maride/3dlib diff --git a/Camera_2020_Mount.scad b/Camera_2020_Mount.scad index 740df65..418fa97 100644 --- a/Camera_2020_Mount.scad +++ b/Camera_2020_Mount.scad @@ -11,7 +11,7 @@ resulting_y=abs(cos(CAMERA_ROTATION)*(PIN_SPACING_X + THICKNESS*2)); $fn=36; -include +include module camera_mount() { @@ -44,4 +44,4 @@ translate([resulting_y/2, 0, resulting_x/2]) { } translate([-21-THICKNESS*2, -21/2 - THICKNESS, 0]) -__2020(resulting_x, THICKNESS); \ No newline at end of file +__2020(resulting_x, THICKNESS); diff --git a/lib b/lib new file mode 160000 index 0000000..16cf0a7 --- /dev/null +++ b/lib @@ -0,0 +1 @@ +Subproject commit 16cf0a7b53ac8e8c98235239576d73d26544b8af diff --git a/lib2020.scad b/lib2020.scad deleted file mode 100644 index 8669929..0000000 --- a/lib2020.scad +++ /dev/null @@ -1,21 +0,0 @@ -// example: __2020(2, 3); - -module __2020(height, thickness) { - // these values are measured off of a 2020 frame including tolerance (!!) - inner_size = 21; - inner_pin_width=5.5; - inner_pin_height=1.5; - - difference() { - cube([inner_size + thickness*2, inner_size + thickness*2, height]); - translate([thickness, thickness, 0]) - cube([inner_size, inner_size, height]); - } - - translate([inner_size/2 + thickness, inner_size/2 + thickness, 0]) - for(i = [0:90:270]) { - rotate([0, 0, i]) - translate([-inner_pin_width/2, inner_size/2 - inner_pin_height, 0]) - cube([inner_pin_width, inner_pin_height, height]); - } -} \ No newline at end of file