70 lines
1.5 KiB
OpenSCAD
70 lines
1.5 KiB
OpenSCAD
|
// Changable constants
|
||
|
res=200; //Auflösung
|
||
|
d=120; //Durchmesser (Int in mm)
|
||
|
R=d/2;
|
||
|
a=10;
|
||
|
b=10;
|
||
|
|
||
|
$fn=res;
|
||
|
|
||
|
rotate_extrude(angle=350)
|
||
|
translate([R,0,0])
|
||
|
square([a,b],center=true);
|
||
|
|
||
|
difference() {
|
||
|
rotate_extrude(angle=3) translate([R+12,0,0]) square([a+6,b],center=true);
|
||
|
rotate([0,0,1]) rotate([90,0,0]) translate([R+15,0,0]) cylinder(h=8,d=5,center=true);
|
||
|
}
|
||
|
|
||
|
difference() {
|
||
|
rotate([0,0,347]) rotate_extrude(angle=3) translate([R+12,0,0]) square([a+6,b],center=true);
|
||
|
rotate([0,0,348]) rotate([90,0,0]) translate([R+15,0,0]) cylinder(h=8,d=5,center=true);
|
||
|
}
|
||
|
//module Ring(a,b,rad=R,n=res){
|
||
|
// inner_R=rad/4;
|
||
|
// rotate_extrude($fn=n){
|
||
|
// translate([inner_R*x,0,0])
|
||
|
// union(){
|
||
|
// for (i=[0:1:1]){
|
||
|
// translate([(x/2)*((-1)^i),0,0]) square([x,y],center=true);
|
||
|
// }
|
||
|
// }
|
||
|
// }
|
||
|
//}
|
||
|
|
||
|
|
||
|
//// Kugellager
|
||
|
//module Kugellager(R=d/2){
|
||
|
//// Constants
|
||
|
////R=d/2; //Außenradius
|
||
|
//n_Balls=R; //Anzahl der Kugeln
|
||
|
|
||
|
//// Assaamble Modules
|
||
|
//module Hull(x=1.5*R,y=1.5*R,rad=R,n=res){
|
||
|
// rotate_extrude($fn=n){
|
||
|
// translate([inner_R*x,0,0])
|
||
|
// union(){
|
||
|
// for (i=[0:1:1]){
|
||
|
// translate([(x/2)*((-1)^i),0,0]) square([x,y],center=true);
|
||
|
// }
|
||
|
// }
|
||
|
// }
|
||
|
//}
|
||
|
|
||
|
//module Ball(rad=R,phi=360/n_Balls,n=res){
|
||
|
// for (i = [0:1:n_Balls]){
|
||
|
// translate([inner_R*1.5*rad*sin(i*phi),inner_R*1.5*rad*cos(i*phi)]) sphere(r=rad,$fn=n);
|
||
|
// }
|
||
|
// }
|
||
|
|
||
|
//module Balled_Bearring(z_scale=1.25){
|
||
|
// Ball();
|
||
|
// scale([1,1,z_scale]) Hull();
|
||
|
// }
|
||
|
|
||
|
|
||
|
//// Geometry
|
||
|
//Balled_Bearring();
|
||
|
//}
|
||
|
//Kugellager();
|
||
|
//Ring();
|