Move libs to repository/submodule
This commit is contained in:
parent
16a9f50de8
commit
008556a92e
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[submodule "lib"]
|
||||||
|
path = lib
|
||||||
|
url = https://git.darknebu.la/maride/3dlib
|
@ -11,7 +11,7 @@ resulting_y=abs(cos(CAMERA_ROTATION)*(PIN_SPACING_X + THICKNESS*2));
|
|||||||
|
|
||||||
$fn=36;
|
$fn=36;
|
||||||
|
|
||||||
include <lib2020.scad>
|
include <lib/2020.scad>
|
||||||
|
|
||||||
|
|
||||||
module camera_mount() {
|
module camera_mount() {
|
||||||
|
1
lib
Submodule
1
lib
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 16cf0a7b53ac8e8c98235239576d73d26544b8af
|
21
lib2020.scad
21
lib2020.scad
@ -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]);
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user