diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..ecd2909 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "lib/MCAD"] + path = lib/MCAD + url = https://gitea.bgenc.net/kaan/MCAD-Library.git diff --git a/Gridfinity/EnderTopBarBase/2x1-with-teardrop.3mf b/Gridfinity/EnderTopBarBase/2x1-with-teardrop.3mf new file mode 100644 index 0000000..f366e37 Binary files /dev/null and b/Gridfinity/EnderTopBarBase/2x1-with-teardrop.3mf differ diff --git a/Gridfinity/EnderTopBarBase/2x1-with-teardrop.scad b/Gridfinity/EnderTopBarBase/2x1-with-teardrop.scad new file mode 100644 index 0000000..8d6f61e --- /dev/null +++ b/Gridfinity/EnderTopBarBase/2x1-with-teardrop.scad @@ -0,0 +1,41 @@ +include<../../lib/MCAD/teardrop.scad>; + + +$fn = $preview ? 8 : 360; + +if ($preview) { + union() { + base(); + cutouts(); + } +} else { + difference() { + base(); + cutouts(); + } +} + +module base() { + translate([-100, -100, 0]) + import("2x1.stl"); +} + +module cutouts() { + for (k=[0:1:1]) { + // Repeat for the second plate + for (j=[0:1:1]) { + // vertical + for(i=[0:1:1]) { + // horizontal + translate([0, -3 + i*26, 8 + j*26 + k*42]) + magnet_teardrop(); + } + } + } +} + + +module magnet_teardrop() { + color("red") + teardrop(3.2, 2.85, 90); +} \ No newline at end of file diff --git a/Gridfinity/EnderTopBarBase/2x1-with-teardrop.stl b/Gridfinity/EnderTopBarBase/2x1-with-teardrop.stl new file mode 100644 index 0000000..ba4a123 --- /dev/null +++ b/Gridfinity/EnderTopBarBase/2x1-with-teardrop.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b4084aadb87aa35cce8808e9d037f50f576a5ff241b80cc81e848e47ad87baba +size 544284 diff --git a/Gridfinity/EnderTopBarBase/2x1.stl b/Gridfinity/EnderTopBarBase/2x1.stl new file mode 100644 index 0000000..53a368c --- /dev/null +++ b/Gridfinity/EnderTopBarBase/2x1.stl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a3d2f9f95d0abd67d3bed52259e3317c7033728c0a8ca114316cc0b5320f5e1e +size 110084 diff --git a/lib/MCAD b/lib/MCAD new file mode 160000 index 0000000..265ce06 --- /dev/null +++ b/lib/MCAD @@ -0,0 +1 @@ +Subproject commit 265ce0600cd3b86d7a96a5c30f29070c26c2368a