Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use <threads-scad/threads.scad>;
- $fa=1;
- $fs= 0.4;
- $fn = $preview ? 64:360;
- // For BambuLabs Printer
- // H=249,W-238,D=256
- // Safe bet is a 225 mm cube
- // This drawing is 200 mm, or 7.87 inches
- //Cntrl-Shift-V Show all, Max Zoom
- // Cad "Front View = Elevation" Top View = "Plan" The X-Y View?
- //https://openscad.org/cheatsheet/
- //https://openscad.org/cheatsheet/snapshot.html
- //https://en.wikibooks.org/wiki/OpenSCAD_Tutorial
- //PasteBin
- $vpr=[90,0,0]; // Front
- //$vpr=[0,0,0]; // Top
- c_h = 100; // height
- c_r = 100; // radius
- c_t = 5; //thickness
- c_2t = 2*c_t;
- pi_l= 85+3; // +3 is the overhang of usb/ether
- pi_w= 56;
- pi_h= 20;
- pi_hole_r= 2.7;
- pi_edge_off = 3.5;
- pi_hole_wid_dist = 49;
- pi_hole_len_dist = 58;
- module main_hull(){
- // If I don't spesicfy r= for radius, it becomes a cone?
- difference() {
- cylinder(h=c_h,r=c_r,false);
- translate([0,0,-10])
- cylinder(h=1.2*c_h,r=c_r-c_2t,true);
- // Lens Cutout
- rotate([0,0,45])
- %cylinder(h=3,r= 25.5,false);
- }
- }
- module pi_footprint() {
- color("crimson",1.0)
- translate([c_h - ((c_h-pi_l)/2),40,0])
- rotate([0,-45,90])
- cube([pi_w, pi_l,pi_h],center=false);
- }
- rotate([0,90,0])
- main_hull();
- pi_footprint();
Advertisement
Add Comment
Please, Sign In to add comment