Move libs to repository/submodule

This commit is contained in:
maride 2018-01-20 01:32:25 +01:00
parent 16a9f50de8
commit 008556a92e
4 changed files with 6 additions and 23 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "lib"]
path = lib
url = https://git.darknebu.la/maride/3dlib

View File

@ -11,7 +11,7 @@ resulting_y=abs(cos(CAMERA_ROTATION)*(PIN_SPACING_X + THICKNESS*2));
$fn=36;
include <lib2020.scad>
include <lib/2020.scad>
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);
__2020(resulting_x, THICKNESS);

1
lib Submodule

@ -0,0 +1 @@
Subproject commit 16cf0a7b53ac8e8c98235239576d73d26544b8af

View File

@ -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]);
}
}