Add models
This commit is contained in:
@@ -1,2 +1,10 @@
|
|||||||
# 3d-printer-models
|
# 3D Printer Models
|
||||||
Models that I developed for my 3D printer
|
|
||||||
|
Various models that I developed for my 3D printer.
|
||||||
|
|
||||||
|
The models come with
|
||||||
|
|
||||||
|
* a `.scad` file with the OpenSCAD source code,
|
||||||
|
* a `.stl` file with the exported model,
|
||||||
|
* a `.png` file with a preview, and sometimes
|
||||||
|
* a `.3mf` file with a Bambu Lab printer profile.
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 64 KiB |
@@ -0,0 +1,23 @@
|
|||||||
|
/* https://danielupshaw.com/openscad-rounded-corners */
|
||||||
|
include <roundedcube.scad>;
|
||||||
|
|
||||||
|
cube_size=40;
|
||||||
|
cutout_size=15;
|
||||||
|
|
||||||
|
$fn=80;
|
||||||
|
|
||||||
|
difference() {
|
||||||
|
roundedcube(cube_size, center=true, radius=2);
|
||||||
|
|
||||||
|
group() {
|
||||||
|
rotate([45,0,0]) {
|
||||||
|
cube([60,cutout_size,cutout_size], center=true);
|
||||||
|
}
|
||||||
|
rotate([45,90,0]) {
|
||||||
|
cube([60,cutout_size,cutout_size], center=true);
|
||||||
|
}
|
||||||
|
rotate([45,0,90]) {
|
||||||
|
cube([60,cutout_size,cutout_size], center=true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 101 KiB |
@@ -0,0 +1,57 @@
|
|||||||
|
/* https://github.com/BelfrySCAD/BOSL2 */
|
||||||
|
include <BOSL2/std.scad>
|
||||||
|
include <BOSL2/skin.scad>
|
||||||
|
|
||||||
|
loop_r = 30;
|
||||||
|
hook_d = 15;
|
||||||
|
hook_angle = 145;
|
||||||
|
straight_l = 85;
|
||||||
|
flatten_h = hook_d/20;
|
||||||
|
|
||||||
|
$fn=80;
|
||||||
|
|
||||||
|
difference() {
|
||||||
|
/* Hook */
|
||||||
|
group() {
|
||||||
|
/* Start cap */
|
||||||
|
rotate([0,-90,0]) {
|
||||||
|
rotate_extrude(){
|
||||||
|
intersection(){
|
||||||
|
circle(d=hook_d);
|
||||||
|
square(hook_d);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Draw the hook */
|
||||||
|
turtle_cmds = ["arcrightto", loop_r, hook_angle,
|
||||||
|
"move", straight_l,
|
||||||
|
"arcleftto", loop_r, 0];
|
||||||
|
path = turtle(turtle_cmds,
|
||||||
|
state=[0,0],
|
||||||
|
full_state=false);
|
||||||
|
path_sweep(circle(d = hook_d), path);
|
||||||
|
|
||||||
|
/* End cap */
|
||||||
|
translate(path[len(path) - 1]) {
|
||||||
|
rotate([0,90,0]) {
|
||||||
|
rotate_extrude(){
|
||||||
|
intersection(){
|
||||||
|
circle(d=hook_d);
|
||||||
|
square(hook_d);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Flatten the hook with two */
|
||||||
|
group(){
|
||||||
|
translate([-4*straight_l+2*loop_r,-2*straight_l+loop_r,(hook_d/2)-flatten_h]) {
|
||||||
|
cube([4*straight_l,2*straight_l,flatten_h]);
|
||||||
|
}
|
||||||
|
translate([-4*straight_l+2*loop_r,-2*straight_l+loop_r,-(hook_d/2)]) {
|
||||||
|
cube([4*straight_l,2*straight_l,flatten_h]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 37 KiB |
@@ -0,0 +1,48 @@
|
|||||||
|
ellipse_w = 46;
|
||||||
|
ellipse_d = 40;
|
||||||
|
ellipse_h = 2;
|
||||||
|
lip = 2;
|
||||||
|
peg_h = 6;
|
||||||
|
peg_d = 6;
|
||||||
|
|
||||||
|
$fn=100;
|
||||||
|
|
||||||
|
linear_extrude(ellipse_h) {
|
||||||
|
resize([ellipse_w+2*lip,ellipse_d+2*lip]) {
|
||||||
|
circle(d=ellipse_w);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
translate([0,0,ellipse_h]){
|
||||||
|
difference() {
|
||||||
|
linear_extrude(lip) {
|
||||||
|
resize([ellipse_w+2*lip,ellipse_d+2*lip]) {
|
||||||
|
circle(d=ellipse_w);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
linear_extrude(lip) {
|
||||||
|
group() {
|
||||||
|
resize([ellipse_w,ellipse_d]) {
|
||||||
|
circle(d=ellipse_w);
|
||||||
|
}
|
||||||
|
translate([ellipse_w/2,0,0]) {
|
||||||
|
square([ellipse_w,ellipse_d], center=true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
linear_extrude(peg_h) {
|
||||||
|
circle(d = peg_d);
|
||||||
|
}
|
||||||
|
|
||||||
|
translate([0,0,peg_h]) {
|
||||||
|
rotate_extrude(){
|
||||||
|
intersection(){
|
||||||
|
circle(d=peg_d);
|
||||||
|
square(peg_d);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
Reference in New Issue
Block a user