Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* VARIABLES INITIALIZATION */
- $fn=20;
- // MAIN CYLINDER
- h=2; // main cylinder height
- w=5; // main cylinder width
- // CENTER AXLE
- ad=2.01 * h; // deepth of the center axle
- aw = 0.5; // width of the center axle
- // SIDE HOLLOW'S
- angle=21.2; // angle in bewween side holes and center of the cylinder
- tangent_angle = 30;
- hd = 0.7; // deepth of the hollow
- hs = 0.5; // size of the hollow
- /* CODE */
- difference() {
- cylinder(h,r=w); // Draw the main cylinder
- cylinder(ad, r=aw, center=true); // Draw the axle in the middle
- #for (curr_angle = [0 : angle : 360])
- {
- rotate([0,0,curr_angle])
- translate([w, 0 , h / 2])
- rotate([0,90,tangent_angle])
- cylinder(d=hs, h=hd, center = true);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement