Add cups as oscad files

This commit is contained in:
Kaisa Marysia 2024-07-30 20:44:34 +00:00
parent 80007e0c9a
commit db9892f52a
5 changed files with 134 additions and 0 deletions

18
OSCAD/coffee_cup.scad Normal file
View file

@ -0,0 +1,18 @@
difference() {
cylinder(h = 90, r = 40);
translate([0,0,10])
cylinder(h = 90, r =35);
}
difference(){
rotate([90,0,0])
translate ([40,50,-5])
difference(){
cylinder(h = 10, r = 35);
translate([2,0,-3])
cylinder(h = 15, r = 30);
}
translate([-50,-50,0])
cube(90);
}

View file

@ -0,0 +1,19 @@
difference() {
translate([0,0,20])
cylinder(h = 70, r = 40);
translate([0,0,10])
cylinder(h = 90, r =35);
}
cylinder(h = 20, r = 35);
difference(){
rotate([90,0,0])
translate ([40,60,-5])
difference(){
cylinder(h = 10, r = 30);
translate([2,0,-3])
cylinder(h = 15, r = 25);
}
translate([-50,-50,0])
cube(90);
}

View file

@ -0,0 +1,43 @@
module ring(d=d,l=l){
hull(){
circle(d=d);
translate([l-d,0]) circle(d=d);
}
}
translate([0,0,10])
difference(){
union(){
translate([0,0,30])
cylinder(h = 30, d1 = 90, d2= 98);
cylinder(h = 30, d1 = 60, d2= 90);
}
translate([0,0,5])
union(){
translate([0,0,30])
cylinder(h = 30, d1 = 88, d2= 96);
cylinder(h = 30, d1 = 60, d2= 90);
}
}
d=25;
l=5;
translate([0,0,10])
difference(){
$fs=.5;
$fa=1;
translate([55,0,45])
rotate([90,-45,0])
linear_extrude(5)difference(){
offset(3)ring();
ring();
}
union(){
translate([0,0,30])
cylinder(h = 30, d1 = 90, d2= 98);
cylinder(h = 30, d1 = 60, d2= 90);
}
}
difference(){
cylinder(h = 10, d1 = 80, d2= 60);
cylinder(h = 8, d1 = 78, d2= 58);
}

View file

@ -0,0 +1,48 @@
module ring(d=d,l=l){
hull(){
circle(d=d);
translate([l-d,0]) circle(d=d);
}
}
translate([0,0,10])
difference(){
union(){
translate([0,0,30])
cylinder(h = 30, d1 = 90, d2= 98);
cylinder(h = 30, d1 = 60, d2= 90);
}
translate([0,0,5])
union(){
translate([0,0,30])
cylinder(h = 30, d1 = 88, d2= 96);
cylinder(h = 30, d1 = 60, d2= 90);
}
}
d=25;
l=5;
translate([0,0,10])
difference(){
$fs=.5;
$fa=1;
translate([55,0,45])
rotate([90,-45,0])
linear_extrude(5)difference(){
offset(3)ring();
ring();
}
union(){
translate([0,0,30])
cylinder(h = 30, d1 = 90, d2= 98);
cylinder(h = 30, d1 = 60, d2= 90);
}
}
difference(){
cylinder(h = 10, d1 = 80, d2= 60);
cylinder(h = 8, d1 = 78, d2= 58);
}
difference(){
cylinder(h = 5, d1 = 200, d2 = 220);
translate([0,0,3])
cylinder(h = 5, d1 = 180, d2 = 220);
}

6
OSCAD/cup_plate.scad Normal file
View file

@ -0,0 +1,6 @@
difference(){
cylinder(h = 5, d1 = 200, d2 = 220);
translate([0,0,3])
cylinder(h = 5, d1 = 180, d2 = 220);
}