Cleaned up and added openscad parametric box

This commit is contained in:
maks-ddembinski
2019-12-31 10:18:19 -05:00
parent ada7d1cc43
commit daf3aee26e
11 changed files with 77 additions and 2687 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

77
Box.scad Normal file
View File

@@ -0,0 +1,77 @@
$fn=25;
x = 20;
y = 10;
z = 10;
wall = 2;
bottom = 1;
difference() {
minkowski(){
cube([x+wall,y+wall,z+bottom], center=true);
cylinder();
}
translate([0,0,bottom])
minkowski(){
cube([x,y,z], center=true);
cylinder();
}
translate([0,0,(z/2)]){
linear_extrude(height=1.5){
minkowski(){
square([x+(wall/2),y+(wall/2)], center=true);
circle();
}
}
}
}
translate([x+10,0,2.5])
rotate([180,1,0])
difference() {
difference(){
translate([0,0,z/2+1])
minkowski(){
cube([x+wall,y+wall,2],center=true);
cylinder();
}
difference() {
minkowski(){
cube([x+wall,y+wall,z+bottom], center=true);
cylinder();
}
translate([0,0,bottom])
minkowski(){
cube([x,y,z], center=true);
cylinder();
}
translate([0,0,(z/2)]){
linear_extrude(height=1.5){
minkowski(){
square([x+(wall/2),y+(wall/2)], center=true);
circle();
}
}
}
}
cube([x+wall/2,y+wall/2,z+5],center=true);
cylinder(z*2,2,2,$fn=5, center=true);
}
}

View File

@@ -1,24 +0,0 @@
difference()
{
//Base
translate([0,10,0])
{
cube([5,20,3]);
}
//Cutout
translate([-3,20,-18])
{
rotate([0,90,0])
{
cylinder(20,20,20);
}
}
//Hole
translate([2.5,20,0])
{
cylinder(10,1.5,1.5);
}
}
//Stick
cylinder(50,1.5,.5);

View File

@@ -1,28 +0,0 @@
armlength=60;
armthick=4;
hookdepth=20;
width=20;
armspace=28.09;
wire=5;
doorhook=14;
difference(){
union(){
cube([width,armlength, armthick], center=true);
translate([0,-1*armlength/2,0])
cylinder(armthick,width/2,width/2, center=true);
}
union(){
translate([0,-1*armlength/2+2,0])
cylinder(10,15.5/2,18/2, center=true);
translate([width/2,-1*armlength/2+2,0])
cube([width/2,wire,armthick*2],center=true);
}
}
translate([0,armlength/2-armthick/2,-1*(hookdepth/2-armthick/2)])
cube([doorhook,armthick,hookdepth],center=true);
translate([0,armlength/2-armspace,-1*((hookdepth/2)/2-armthick/2)])
cube([width,armthick,hookdepth/2],center=true);

2583
cube.gcode

File diff suppressed because it is too large Load Diff

View File

@@ -1 +0,0 @@
cube(10);

View File

@@ -1,27 +0,0 @@
difference()
{
cylinder(10,10,10);
translate([0,0,2])
{
cylinder(11,9,9);
}
}
//Triangle
scale(.3)
{
rotate([0,90,0])
{
difference()
{
cube(10);
translate([-3,10,0])
{
rotate([45,0,0])
{
cube(30);
}
}
}
}
}

BIN
misc/.DS_Store vendored Normal file

Binary file not shown.

View File

@@ -1,24 +0,0 @@
//base
cylinder(3,4,4);
translate([0,0,3])
{
cylinder(12,4,2);
}
//stick
translate([0,0,15])
{
cylinder(50,2,2);
}
//bottom rounded bit
translate([0,0,-5])
{
cylinder(5,2,4);
}
//sphere at bottom
translate([0,0,-5])
{
sphere(4);
}