Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create an external HDD stand with a total length of 90mm and a width of 49mm. The structure consists of a base floor and several vertical support braces. Construct the base floor by placing two parallel rows of small cylinders, each 1.4mm in diameter and 2.8mm high, spaced every 22.5mm along the length at the outer w...
$fn=60; thick=1.4; L=90; W=49; H=60; BH=7; module brace(tt=thick, CH=H, rnd=0) { ang=atan2(CH,W/2); zadj=rnd*(1/cos(ang)+tan(ang)); yadj=rnd*(1/sin(ang)+1/tan(ang)); rotate([0,-90,0]) linear_extrude(height=tt, convexity=10,center=true) offset(r=rnd) polygon([[rnd,-W+yadj], [CH-zadj,-W/2-rnd], [B...
glb/cad_f24a0da5f466.glb
Create a USB type A hole plug by constructing two rectangular prisms. First, create a main flat rectangular base measuring 8.5mm in width, 12mm in depth, and 1.9mm in height. Then, attach a smaller rectangular handle to the side of this base. This handle should be 1mm wide, 12mm deep, and 3.5mm high, positioned so that...
cube([8.5, 12, 1.9]); handle_thickness = 1; translate([-handle_thickness, 0, 0]) { cube([handle_thickness, 12, 3.5]); }
glb/cad_0cf7ff3388b0.glb
Create a rectangular frame with an outer boundary of 126mm in length, 15mm in width, and 65mm in height. Construct this main body by combining a base plate of 126mm by 2mm by 65mm, a bottom ledge of 126mm by 15mm by 2mm, and a top ledge of 127mm by 15mm by 2mm positioned at a height of 65mm. Add two vertical pillars of...
difference(){ union(){ cube([126,2,65]); cube([126,15,2]); translate([0,0,65]) cube([127,15,2]); cube([2,15,65]); translate([125,0,0]) cube([2,10,65]); translate([125,10,0]) cube([2,5,10]); color("black") rotate([90,0,0]) translate([3,63,-15]) cylinder(r=6/2,h=13); color("black") rotate([90,0,0])...
glb/cad_09c3a40eca2d.glb
Create a linear gear rack with 38 teeth. The rack is built around a central cylindrical void with a radius of 3.1mm. The main body of the rack has a total height of 11.2mm (calculated as 20 times the module). The teeth are designed with a diametral pitch of 12 and a pressure angle of 20 degrees. Each tooth profile co...
pi=3.1415926535897932384626433832795; innerRadius=3.1; borders=2.5; diametralPitch=12; numberOfTeeth=38; pressureAngle=20*pi/180; centerAngle=25; rack(innerRadius,borders,diametralPitch,numberOfTeeth,pressureAngle,centerAngle); module rack(innerRadius,borders,P,N,PA,CA) { a = 1/P; d = 1.25/P; multiplier=20; heig...
glb/cad_f74b23aec79d.glb
Create a rack mountable cable clip with a total height of 8.4mm. The main body is a U-shaped loop with an outer width of 75mm and a depth of 45mm. The walls of this loop have a uniform thickness of 6mm, leaving an internal gap of 4.3mm for cables. Attached to the bottom of this loop is a mounting peg designed to snap ...
width=75; depth=45; height=8.4; thickness=6; cablethickness=4.3; pegh=9; pegw=8.88; peglen=20; peggap=2.5; sheetthickness=2.1; $fn=30; module roundcube(x,y,z) { if (x>y) { d=y; translate([d/2,0,0]) { translate([0,d/2,0]) cylinder(d=d, h=z); cube([x-d,y,z]);...
glb/cad_96ab9d5d611c.glb
To make your code functional, you need to define the variables that are used in the final part of the script but are not declared anywhere. Based on the context of your geometry (a cap with holes for sticks), I have added a "Configuration" section. I have also corrected a few logic errors: 1. **`extradim`**: This was ...
cap_height=10; cap_diameter=70; stick=[5.1,6.4]; $fn=120; extradim=0.001; function __THREADLIB_VERSION() = 0.3; function vec3(p) = len(p) < 3 ? concat(p,0) : p; function vec4(p) = let (v3=vec3(p)) len(v3) < 4 ? concat(v3,1) : v3; function unit(v) = v/norm(v); function identity3()=[[1,0,0],[0,1,0],[0,0,1]]; functi...
glb/cad_19c3023c3f89.glb
Create a Customizable Tape Dispenser. Start with a base cylinder 112mm in diameter and 4mm high. Centered on this base, add a main body cylinder with a diameter of 112mm and a height of 56.5mm. Inside this main body, create a hollow vertical bore with a diameter of 72mm. At the top of the main body, add a circular rid...
$fn = 160; tape_inner_d = 76; tape_outer_d = 100; tape_h = 50; dispenser_tape_inner_gap = 2; dispenser_tape_outer_gap = 4; dispenser_tape_h_gap = 1.5; dispenser_thickness = 4; dispenser_holder_d = 2.5; dispenser_stand = 1; tape_teeth_deg = 7.5; teeth = 8; dispenser_h = tape_h + dispenser_tape_h_gap*2 + disp...
glb/cad_481ac56279d8.glb
Create a Clip on Comfort Strip for a visor frame. Start with a base rectangular plate measuring 70mm in length, 12mm in width, and 0.8mm in thickness. On top of this base, construct a mounting profile that is 6mm high and 5mm deep to accommodate the visor frame. This profile runs the full 70mm length of the strip. To...
layer_height=0.2; module band(l=60,w=12,cd=5,co=6, offset=20,xh=3*layer_height,clip_w=15,clips=3,one_sided=true){ gap= (l-clip_w*clips)/(clips-1); echo (gap=gap); translate([0,0,layer_height/2+xh/2])cube([l,cd,layer_height+xh],center=true); difference(){ union(){difference(){ hull(){ ...
glb/cad_2b1379feea45.glb
Create a ring by constructing a hollow cylinder with an outer radius of 12mm, an inner radius of 10mm, and a height of 9mm. Within the wall of this cylinder, carve out a circular channel with a radius of 11.25mm and a height of 9mm to create a thin inner sleeve. On the outer surface of the ring, emboss the text "Go WO!...
include <Write.scad> difference () {translate([0,0,0]) cylinder(r=11.25,h=9); cylinder(r=10,h=9); } use <write.scad> difference () {translate([0,0,0]) cylinder(r=12,h=9); cylinder(r=11.25,h=9); writecylinder("Go WO! ",[0,0,0],10.5,9,t=3,h=8,space=1.2,rotate=0,east=90); }
glb/cad_d9e621bc50d7.glb
Create a U-shaped router wall mount bracket with a wall thickness of 4mm. The bracket consists of a base plate and a vertical back wall. The base plate is a rectangle 40mm wide and 30mm long. The vertical back wall is 40mm wide and 37mm deep. Connect these two sections with a fillet radius of 5mm to create a smooth i...
sShape = 0; r = 5; wThick = 4; deep = 37; width = 40; bHeight = 30; tHeight = 20; rCover = false; lCover = false; screwCenterDis = 9; screwDiameter = 3.5; screwHeadDiam = 7; screwHeadHeight = 2; $fn=100; difference (){ union() { translate ([(bHeight+wThick+r)/2,0,0]) cube ([bHeight-r,width,...
glb/cad_12ccb4a587c9.glb
Create a wall socket cover plate for RJ11 and RJ45 mechanisms. Start with a solid rectangular base measuring 68mm wide, 59mm high, and 6.5mm deep, with all four corners rounded to a 4mm radius. Hollow out the back of the plate to create a shell with a wall thickness of 1.5mm, maintaining the 4mm corner radius for the i...
width = 68; height = 59; rCorner=4; deep = 6.5; deepInc = 0; wThick = 1.5; $fn = 360; r = ( pow(height/2,2) + pow (deepInc,2) )/ (2* deepInc); echo (r); difference() { union() { roundCube ([width,height,deep], rCorner); intersection(){ translate ([0,0,(deep+deepInc)/2]) roundCu...
glb/cad_23cafd59df47.glb
Create a Skadis pegboard hook by combining several rectangular prisms. Start with a main vertical base that is 50mm high, 5mm deep, and 4.4mm wide. At the top of this base, add a 5mm cube to create a shoulder, and attach a 12mm high by 5mm deep by 4.4mm wide rectangular block to the back of the base. Position a small p...
$fn = 10; CLIP_HEIGHT = 12; CLIP_PIN_INNER_DISTANCE = 26; PIN_LENGTH = 7; BASE_WIDTH = 4.4; BASE_DEPTH = 5; BASE_HEIGHT = 50; ENABLE_SMOOTH_EDGES = true; ENABLE_HOOK_NICE = true; HOOK_SIZE_H = 15; HOOK_SIZE_V = 10; HOOK_ROTATION = 0; minkowskiOutsideRound(1, ENABLE_SMOOTH_EDGES) { hook( base_height = BASE_H...
glb/cad_d642cef629c9.glb
Create a Universal Decathlon Easybreath V1 snorkel mask coupler consisting of a main coupler body and an attached clip. First, construct the coupler body. Create a central rectangular channel 18mm wide and 19.1mm deep. Flank this with two side channels, each consisting of a 3.8mm wide straight section and a semi-cylin...
$fn=90; center_channel_width = 18; channel_straight_width = 3.8; channel_seperator_width = 2; side_channel_width = 9.55; depth = 19.1; rubber_height = 5; rubber_width = 0.75; male_connector_height = 20; coupler_center_delta = 17; coupler_thickness = 3; coupler_height = 19; clip_width = 24; clip_depth = 5; clip_reinfo...
glb/cad_520cd29b6d8b.glb
Create a toothbrush support stand consisting of a circular base and a hollow vertical holder. Start by creating a flat, circular base with a radius of 25mm and a height of 3mm. In this base, create a grid of small drainage holes, each 3.6mm in diameter, spaced every 6mm in both X and Y directions, excluding holes that ...
difference(){ cylinder(r=25, h=3, $fn=100); for(x=[-9:6:9]){ for(y=[-9:6:9]){ if(x*x + y*y < 162){ translate([x,y,-1]) cylinder(r=1.8, h=10, $fn=20); } } } for(x=[-9:6:9]){ translate([x, 0, 0]) scale([0.5,1,1]) rotate(v=[0,1,0], a=45) cube([3, 100, 3], center=true) ; } for(y=[-9:6:9]){ translate...
glb/cad_60838483be13.glb
Create a tube rack for microtubes and conicals consisting of a hollow rectangular frame with four distinct sides. The overall outer dimensions of the frame are 90mm in length, 50mm in width, and 4.5mm in thickness for the walls. The first side features a grid of 12 small holes for 1.5-mL Eppendorf tubes, each with a r...
flat_length=90; flat_width=50; side_depth=0.05*flat_length; hole_spacing=18; small_epi_rad=6; fifty_falcon_rad=15.8; fifteen_falcon_rad=8.75; TLA_rad=7.375; $fn=50; module tube_rack(){ union(){ difference(){ translate([-flat_length/2+side_depth,0,flat_length/2]) rotate([90,90,90]) cube([flat_length,flat_width,side...
glb/cad_9ae34178e732.glb
Create a parametric bumper foot consisting of a circular base and a central mounting holder. Start by creating a cylinder with a diameter of 15mm and a height of 2mm to serve as the base. Centered on top of this base, construct a mounting holder that is 5mm tall. This holder is formed by the intersection of two rectang...
footDiameterMM = 15; footTicknessMM = 2; holderHeightMM = 5; holderTicknessMM = 2; holderWidthMM = 4.8; union() { cylinder(d = footDiameterMM, h = footTicknessMM); union() { translate([0, 0 ,holderHeightMM / 2 + holderTicknessMM]) cube(size = [holderWidthMM, holderTicknessMM, holderHeightMM], center = ...
glb/cad_b445adbb98c4.glb
Create a name tag consisting of a rectangular base plate and several cylindrical elements. Start with a rectangular base measuring 15mm in width, 22.5mm in length, and 2mm in height. Place four cylinders with a height of 2mm and a radius of 7.5mm on the plate. Position two on the right side: one at coordinates (2, 0,...
x_size=15; y_size=22.5; z_size=2; color([1,0,0,1]) cube([x_size,y_size,z_size]); color([0,1,0,1]) translate ([2,0,0]) cylinder (h=z_size, r=x_size/2, $fn=50); color([0,1,0,1]) translate ([x_size-2,0,0]) cylinder (h=z_size, r=x_size/2, $fn=50); color([0,1,0,1]) translate ([2,y_size,0]) cylinder (h=z_size, r=x_size/2,...
glb/cad_58aef80eaefb.glb
Create a customizable ear relief band for face masks. The object is a flat, thin strip with a thickness of 1mm. Construct a central rectangular body that is 96mm wide and 11mm tall. Within this body, center the text "JAVIERDDN" in a bold, sans-serif font with a height of 9mm. On both the left and right ends of the c...
echo(version=version()); text = "javierddn"; font = "Liberation Sans"; style = "bold"; size=9; r = 3; circle_pos = 9; pos_circle = 46.5; linear_extrude(height = 1, $fn = 100){ text( size = size, text = upper(text), font = is_empty(style)? font : join([font,style],":style="), halign...
glb/cad_3f87a2f47531.glb
Create a spool attachment for a hard drive spindle filament holder. Start with a central cylindrical body that has a height of 80mm and an outer diameter of 28mm. Create a hollow center by removing a concentric cylinder with a diameter of 24mm. Add two screw holes to this body. Each hole is a cylinder with a diameter ...
spool_attachment(); largest_circle=32; mount_plate = 25; mount_plate_height = 1.5; center_width = 15; center_height = 2.5; screw_width = 2; screw_distance_from_center = 10.1; fudge = 0.15; holder_foot_height = 20; holder_foot_thickness = 3; spool_axis_width = 18; spool_axis_height = 80; spring_hole_width = 4.41; m3_sc...
glb/cad_b50208c272a6.glb
Create a 3.5" hard drive spindle filament spool holder consisting of a circular base with a mounted cubic block. Start with a main cylinder that has a diameter of 51mm and a height of 13mm. Remove a smaller concentric cylinder from the center with a diameter of 35mm and a height of 8mm. Create three vertical holes, eac...
fdg=0.2; tny=0.01; spindle_holder(); module spindle_holder(){ hole_d = 3; c_of_hole_from_c = 22; inner_cyl_d =35; inner_cyl_h = 8; outer_cyl_d = 51; outer_cyl_h = inner_cyl_h + 5; rod = 20; rod_attachment=30; difference(){ cylinder(d=outer_cyl_d, h=outer_cyl_h, center=true, $fn=50); translate([0,0,(inner_...
glb/cad_dddc2e009d20.glb
Create a set of plastic parts for an Estes MX Missile rocket. First, construct a nose cone consisting of a series of stacked conical and cylindrical segments. Start with a base cylinder of 0.5mm height and 48.2mm diameter, followed by a 0.6mm segment of the same diameter, a 1.75mm segment tapering to 18.4mm, a 2.64mm...
$fn = 100; include <Estes.scad> include <rocketry.scad> include <fillet.scad> module jog (h = -0.001) { translate ([0, 0, h]) children (); }; module stack (a, s) { if (s == 0) { children (); } else { if (a[0] > 0) { stack (a, s - 1) translate ([0, 0, a[s - 1]]) children (); } else { tr...
glb/cad_064f63ba8d4f.glb
Create a tricopter body frame by starting with a base plate 100mm wide, 120mm long, and 3mm thick. From this base, remove two large elliptical cutouts, each 70mm tall and 35mm wide, positioned symmetrically on the left and right sides. Cut two rectangular notches, each 30mm wide and 70mm tall, from the top edge, one at...
bolt_radius=2.1; difference() { union() { linear_extrude(height=3) { difference() { minkowski() { difference() { square([100,120]); scale([1,2]) circle(r=35); translate([100,0]) scale([1,2]) circle(r=35); translate([0,90]) square([30,70]); translate([70,90]) square([30,70...
glb/cad_6f52dd3fd33a.glb
Create a sheet of spiked chain mail by repeating a basic interlocking link unit across a 100mm by 100mm area. Each link unit is formed by two intersecting crossbars, one oriented along the X-axis and one along the Y-axis. Each crossbar is a hull of two cylinders with a diameter of 10mm and a height of 3mm, rotated 45 d...
print_area_x_width_in_mm = 100; print_area_y_width_in_mm = 100; link_length_in_mm = 25; spike_height_in_mm = 5; left_edge_connector_slots = false; right_edge_connector_slots = false; top_edge_connector_slots = false; bottom_edge_connector_slots = false; $fn = 8; hole2hole_length = 15; link_size = (link_length_in_mm*0....
glb/cad_d1894c998917.glb
Create a Robot-Head Pencil Topper by starting with a central rectangular head measuring 34mm wide, 24mm deep, and 24mm high, centered on the origin. To form the mouth, add three rectangular blocks to the bottom front: one centered block measuring 10mm wide, 5mm deep, and 10mm high positioned at [0, -12, -8], and two fl...
module mouth() { translate([0,-12,-8]) cube([10,5,10], center=true); translate([0,-11,-11]) cube([2,10,10], center=true); translate([-3,-11,-11]) cube([2,10,10], center=true); translate([3,-11,-11]) cube([2,10,10], center=true); } module eyes () { rotate([90,0,0]) translate([+10,5,5]) cylinder (10,5,5); rotate...
glb/cad_089d4a73a5cd.glb
Create a Robot-Head Pencil Topper by starting with a central cube that is 24mm on all sides. To form the mouth, attach a rectangular block measuring 12mm wide, 5mm deep, and 10mm high, centered horizontally and positioned at the bottom front of the head. Add two vertical rectangular pillars, each 2mm wide, 10mm deep, a...
module mouth() { translate([0,-12,-8]) cube([12,5,10], center=true); translate([0,-11,-13]) cube([2,10,15], center=true); translate([-3,-11,-13]) cube([2,10,15], center=true); translate([3,-11,-13]) cube([2,10,15], center=true); } module eyes () { rotate([90,0,0]) translate([+6,5,5]) cylinder (10,3,5)...
glb/cad_3913eeab2fa8.glb
Create a "Base para salva orejas" (ear saver base) consisting of a flat rectangular base with two vertical uprights. Start by creating a rectangular base 180mm long, 30mm wide, and 3mm thick. Centered on the top surface of this base, add the word "GRACIAS" in a bold, sans-serif font with a height of 2mm. Position tw...
echo(version=version()); text = "gracias"; font = "Liberation Sans"; style = "bold"; length=180; width=30; height=200; base_height=3; model_height=2; text_size=9; r = 3; clips=4; supports_ref_x=0.6; circle_y = 9; circle_x = length/2*0.52; stabiliser_size_x=14; stabiliser_size_y=2; polygon_s_offset_x=0; polygon_e_offs...
glb/cad_31fc523fd446.glb
Create a face mask ear saver holder with a total length of 180mm, a width of 30mm, and a thickness of 1mm. The main body is a flat plate. In the center, emboss the text "JAVIERDDN" in a bold sans-serif font with a height of 9mm. The plate features a central rectangular cutout measuring 94.8mm by 11mm (centered on the...
echo(version=version()); text = "javierddn"; font = "Liberation Sans"; style = "bold"; length=180; width=30; height=270; model_height=1; text_size=9; r = 3; clips=4; supports_ref_x=0.6; circle_y = 9; circle_x = length/2*0.52; linear_extrude(height = model_height, $fn = 100){ text( size = text_size, ...
glb/cad_a35147aaa33d.glb
Create a COVID-19 HEPA Subea Decathlon EasyBreath adapter valve. The object is a flat, thin geometric plate with a thickness of 5mm. Start by creating a solid base plate based on a complex organic closed-loop polygon. From this base, remove two distinct holes to create the valve functionality: first, a large elongate...
fudge = 0.1; zsize = 5; line_fn = 4; min_line_width = 1.0; line_width_scale = 1.0; function min_line_mm(w) = max(min_line_width, w * line_width_scale) * 96/25.4; path3803_0_center = [1.068299,-47.024898]; path3803_0_points = [[-77.616789,-8.699061],[79.753387,-8.699061],[79.753387,-50.955756],[79.628776,-54.845115],[7...
glb/cad_e8404d467b13.glb
Create a COVID-19 HEPA Subea adapter consisting of a hollow tube and a base plate. First, construct the main tube by creating a hull of two cylinders, each with a radius of 12.5mm, positioned 25.9mm apart (center-to-center) along the X-axis. Extrude this shape to a height of 30mm. Hollow out the center of this tube u...
$fn = 100; Wall_in_thickness = 1.4; Dist_in_walls = 18.2; Det_in_walls = 15.2; R_out = 12.5; Dist_center = 45 - 2*9.55; H_tube = 30; H_change = 10; fudge = 0.1; zsize = 5; line_fn = 4; min_line_width = 1.0; line_width_scale = 1.0; function min_line_mm(w) = max(min_line_width, w * line_width_scale) * 96/25.4; modu...
glb/cad_05cc4d60debf.glb
Create a COVID-19 HEPA Subea adapter consisting of a rectangular housing and a valve assembly. Start by constructing a main box with a width of 145mm, a height of 102mm, and a thickness of 26mm. The box features a hollow interior with wall thicknesses of 6mm. On the front face, create a grid-like mesh pattern by remov...
$fn = 100; Wall_in_thickness = 1.4; Dist_in_walls = 18.2; R_out = 13; T_box = 2*R_out; W_box = 145; H_box = 102; Wall_frame_thick = 6; Frame_transl = 1.5; zsize = 5; line_fn = 4; min_line_width = 1.0; line_width_scale = 1.0; function min_line_mm(w) = max(min_line_width, w * line_width_scale) * 96/25.4; Div_thick =...
glb/cad_3d6f4c839cbd.glb
Create a COVID-19 HEPA Subea Decathlon EasyBreath adapter. Start by creating a central rectangular block that is 10mm wide, 12mm deep, and 3mm high, centered on the origin. Drill a vertical cylindrical hole through the center of this block with a radius of 1.6mm and a total height of 20mm, extending from -10mm to 10mm ...
translate([-0,-4.5,4]) cube([10,3,6.3], center = true); difference(){ cube([10,12,3], center = true); translate([0,0,-10]) cylinder(h = 20, r = 1.6, $fn=100); }
glb/cad_28f673ff7ece.glb
Create a Universal Extruder Carriage consisting of a backplate and a shelf with integrated side walls. The backplate is a rectangular slab 100mm wide, 85mm high, and 5mm thick, with 4mm rounded corners. Attached to this is a shelf measuring 55mm by 92mm by 5mm, also with 4mm rounded corners. The assembly features two t...
$fn=60; srad = 4; sthick = 5; refholetop = 80; mkrslide_sep = 64.6; eccentric_radius = 3.6; M5_radius = 5.2/2; M4_radius = 4.2/2; module extruder_carrier() { difference() { union() { rotate([90,0,90]) { translate([srad,srad,0]) minkowski() { cube([100-2*srad,85,sthick-1]); cylinde...
glb/cad_51dc97b76267.glb
Create an espressobin case. Start with a base and walls formed by the convex hull of four cylinders with a 16mm diameter, positioned at coordinates (±47, 37) and (±47, -31.5). The base is 3mm thick, and the walls extend to a height of 27.5mm. Hollow out the walls by removing a similar hull of 12mm diameter cylinders, l...
wallH = 27.5; difference() { union() { hull() { translate([ 47, 37 ,0]) cylinder(d=16, h=3, center=true, $fn=128); translate([-47, 37 ,0]) cylinder(d=16, h=3, center=true, $fn=128); translate([ 47,-31.5,0]) cylinder(d=16, h=3, center=true, $fn=128); translate([-47,-31.5,0]) cylinder(d=16, h=3, center=...
glb/cad_842b7922e535.glb
Create a rectangular electronics case for an ESPRESSObin. The main base is a flat plate with rounded corners, formed by the convex hull of four cylinders with 13mm diameters centered at coordinates (±47, ±37) and (±47, ±31.5), with a total thickness of 10mm. At each of the four rounded corners, add a cylindrical pill...
module fixingHole() { translate([0,-3,0]) { hull() { cylinder(d1=4.5, d2=6.5, h=6, center=true, $fn=32); translate([0,2,0]) cylinder(d1=4.5, d2=6.5, h=6, center=true, $fn=32); } translate([0,6,0]) cylinder(d=9, h=6, center=true, $fn=64); } } module fixingHoleCover() { cube([15,15,2], center=true); tran...
glb/cad_90d19859f3fc.glb
Create a hollow cylindrical case for an espressobin. Start by creating a solid cylinder with a diameter of 12mm and a height of 10mm, centered on the origin. From this main body, remove a smaller concentric cylinder with a diameter of 4mm and a height of 20mm to create a deep central bore. Additionally, remove a concen...
difference() { cylinder(d=12, h=10, center=true, $fn=128); cylinder(d=4, h=20, center=true, $fn=64); translate([0,0,5/2]) cylinder(d=8, h=5, center=true, $fn=64); }
glb/cad_32a7ddc81773.glb
Create a parametric printable bearing with an overall width of 12mm, an inner diameter of 10mm, and an outer diameter of 22mm. Construct the inner ring by creating a cylinder with a 10mm diameter hole running through its center. The ring's profile should feature a central wide section with a diameter of 12mm, flanked...
bid = 10; bod = 22; bwd = 12; msp = 0.1; dmod = (bod-bid)%6; bsd = (bod-bid-dmod)/6; bsw = (bwd-(bwd%6))/6 ; rid = bsd-msp*2; rod = bsd*2-msp*2; rdm = (bid+bsd*3)*PI; rmod = rdm%(rod+msp); nbr = (rdm-rmod)/(rod+msp); difference() { union() { cylinder(d1=bid+bsd*2,d2=bid+bsd*2,h=bsw,$fn=bid*4); ...
glb/cad_72d3e207e86f.glb
Create an LED mount for a 20mm aluminum extrusion. Start by constructing a hollow rectangular frame with an outer dimension of 14.1mm by 19.1mm and a height of 5.9mm. The walls of this frame should be 2.4mm thick, leaving a central rectangular opening of 9.2mm by 14.7mm. Rotate this frame 60 degrees around the Z-axis. ...
top_angle=60; $fn=150; X=0.2; h=9; LED_width=14.5; thick=2.4; mount_width=5.9; union() { rotate ([0,0,top_angle]) translate([-(2*thick+h+X)/2,(2*thick+LED_width+X)/2,0]) difference() { cube([2*thick+h+X,2*thick+LED_width+X,mount_width],center=true); cube([h+X,LED_width+X,mount_width],center=true); ...
glb/cad_09a72f89b7e4.glb
Create distance rings for pen turning by constructing a composite cylindrical object with a total height of 16mm. Start by creating a central cylindrical hole with a diameter of 6.3mm that runs through the entire 16mm length of the object. Around this hole, build two stacked sections. The bottom section is a cylinder w...
penouterdiameter = 13; peninnerdiameter = 9.7; mandreldiameter = 6.3; segmentlength = 8; difference() { union() { cylinder(d=penouterdiameter, h=segmentlength); cylinder(d=peninnerdiameter, h=segmentlength*2); } cylinder(d=mandreldiameter, h=segmentlength*2); }
glb/cad_f5efb59e8a47.glb
Create a Hole Test Print consisting of a rectangular base with a grid of cylindrical holes. Start by creating a rectangular slab with a height of 1mm. The slab's overall dimensions should accommodate a grid of holes based on a spacing of 6mm (the sum of the maximum hole diameter and the gap). Generate a series of hole...
_1_style = 2; _2_start = 0.1; _3_end = 3; _4_increment = 0.1; _5_gap = 3.0; _6_height = 4; _7_baseHeight = 1.0; _8_numColumns = 10; module addPillar(diameter, spacing, xpos, ypos, height) { echo (ypos, xpos, diameter); translate([spacing * xpos, -spacing * ypos, 0]) { cylinder(h=height, r=diameter/2, center...
glb/cad_757c94ad54e9.glb
Create a C-bracket by starting with a hollow cylinder that has an outer diameter of 50mm, an inner diameter of 30mm, and a height of 50mm. Cut this cylinder in half lengthwise to create a semi-circular trough. Attach a rectangular mounting wing to the side of this trough; the wing should be 40mm long, 10mm thick, and 5...
module cbracket() { $fa = 0.01; $fs = 0.1; outerDiam = 50; innerDiam = 30; bracketWidth = 50; bracketLength = 40; overLap = 1; bracketThickness = 10; cabletieWidth = 8; cabletieThickness = 4; boltDiam = 6.5; difference() { union() { difference() { difference() { cylinder(h = brack...
glb/cad_a047b2f49335.glb
Create a Bell Siphon Demonstration model consisting of a hexagonal bell and a surrounding tray. First, construct the bell as a hexagonal prism with a height of 40mm and an outer radius of 22mm. The bell should be hollow with a wall thickness of 4mm and a floor thickness of 4mm. To create the siphon effect, cut six vert...
pipe_od = 25; sides = 6; walls = 4; bell_height = 40; flt = 4; filth = 0.5; tol = 0.5; module bell(){ difference(){ cylinder(h=bell_height+3, $fn=sides, r=(pipe_od/2)+(walls*filth)+10,center=true); translate([0,0,flt]) cylinder(h=bell_height+3, $fn=sides, r=(pipe_od/2)+10,center=true); for(i=[1:sides]){ rot...
glb/cad_b5772980b231.glb
Create an RD40 thread adapter by starting with a solid cylinder that has a diameter of 44.5mm and a height of 6mm, positioned 0.5mm above the base plane. From the center of this cylinder, remove a metric internal thread with a diameter of 42.66mm, a pitch of 3.629mm, and a depth of 10mm. Ensure the final geometry is re...
$fn=90; include <threads.scad>; difference() { translate([0,0,0.5]) { cylinder(h=6, d=44.5); } metric_thread(diameter = 42.66, pitch = 3.629, length = 10, internal = true); }
glb/cad_b8a085871a7e.glb
Create a MakeBlock plate by starting with a rectangular block that is 24mm wide, 48mm long, and 4mm thick. In this block, create a grid of 15 cylindrical holes, each with a radius of 2.05mm, that pass completely through the thickness of the plate. The holes should be arranged in 3 columns and 5 rows. Position the holes...
holes_step_by_x = 8; holes_step_by_y = 8; plate_height = 4; holes_shift_x = 4; holes_shift_y = 4; holes_radius = 2.05; module holes(holes_by_x, holes_by_y, step_by_x, step_by_y) { for (j = [0 : holes_by_x]) { for ( i = [0 : holes_by_y] ) { translate([holes_shift_x + j*step_by_x, holes_shift_y + i*step_by_y, -1...
glb/cad_f7c324c33906.glb
Create a MakeBlock bracket consisting of two identical rectangular plates joined at a 90-degree angle. Each plate must be 24mm wide, 16mm deep, and 4mm thick. For each plate, create a grid of six circular holes, each with a radius of 2.05mm. The holes should be arranged in two rows of three. Position the holes so the...
holes_step_by_x = 8; holes_step_by_y = 8; plate_height = 4; holes_shift_x = 4; holes_shift_y = 4; holes_radius = 2.05; module holes(holes_by_x, holes_by_y, step_by_x, step_by_y) { for (j = [0 : holes_by_x]) { for ( i = [0 : holes_by_y] ) { translate([holes_shift_x + j*step_by_x, holes_shift_y + i*step_by_y, -1...
glb/cad_441b9be0cce7.glb
Create a MakeBlock bracket and plate assembly consisting of a horizontal bumper plate and a vertical mounting bracket. First, create the horizontal bumper plate as a rectangular block measuring 16mm wide, 8mm deep, and 4mm high. Remove a central rectangular slot from the top of this block, measuring 8mm wide by 4.2mm...
holes_step_by_x = 8; holes_step_by_y = 8; plate_height = 4; holes_shift_x = 4; holes_shift_y = 4; holes_radius = 2.05; module holes(holes_by_x, holes_by_y, step_by_x, step_by_y) { for (j = [0 : holes_by_x]) { for ( i = [0 : holes_by_y] ) { translate([holes_shift_x + j*step_by_x, holes_shift_y + i*step_by_y, -1...
glb/cad_d2bbfcb4a532.glb
Create a MakeBlock bracket bumper screw by combining two coaxial cylinders. Start with a base cylinder that has a radius of 3.5mm and a height of 4mm. Centered on top of this base, add a second, taller cylinder with a radius of 2.05mm and a height of 16mm. The final object should be a single integrated piece where the ...
screw_head_len = 4; screw_head_radius = 3.5; screw_len = 16; screw_radius = 2.05; module mkb_bracket_bumper() { union() { color("Orange") translate([0, 0, 0]) { cylinder(h = screw_head_len, r = screw_head_radius, $fn=100); } color("Green") translate([0, 0, screw_head_len]) { cylinder(h = screw_...
glb/cad_e9d87734274e.glb
Create a Window Water Drain Cover. Start by constructing a hollow tapered shell with a base width of 42.5mm, a depth of 17mm, and a total height of 7mm. The bottom 3mm of the shell should have straight vertical walls, while the upper 4mm tapers inward to a top width of 33mm and a top depth of 12mm. All walls must be 1....
$fn=50; WidthBottom = 42.5; WidthTop = 33; Height = 7; HeightStraight = 3; WallThickness = 1.5; Depth = 17; DepthTop = 12; PinWidth=3; PinHeight=8; PinY = 10.7; PinDistance=27.4; LipWidth=18.8; LipDepth=2; LipHole=1.5; difference(){ hull(){ cube([WidthBottom,Depth,HeightStraight],center=true); translate...
glb/cad_dc1e77fd0186.glb
Create a Decathlon Easybreath V1 to RD40 filter coupler. Start by constructing a main body that consists of a central rectangular block 18mm wide, 19.1mm deep, and 65.25mm high. Flanking this central block, add two rectangular separators each 3.8mm wide and 19.1mm deep, extending to the same height. On the outer sides ...
$fn=90; center_channel_width = 18; channel_seperator_width = 3.8; side_channel_width = 9.55; outer_wall_width = 3; depth = 19.1; mask_connector_height = 65.25; mask_connector_center_height = 17; rubber_height = 5; rubber_width = 0.75; adapter_wall = 3; adapter_height = 65.25; include <threads.scad>; difference() { ...
glb/cad_9d9da1078c18.glb
Create a customizable ring with a width of 5mm. Start by constructing a hollow cylinder with an outer diameter of 12mm and an inner diameter of 10mm. The outer wall of this cylinder must be faceted with exactly 12 flat faces rather than being smooth. Around the outer perimeter of the ring, add 13 small cubes, each meas...
Inner_Diameter = 10; Outer_Diameter = 12; Ring_Width = 5; Outer_Faces = 12; Feature_Shape = 1; Indented_Features = false; module ring() { difference() { cylinder(d=Outer_Diameter,h=Ring_Width,$fn=Outer_Faces); translate([0,0,-1]) cylinder(d=Inner_Diameter,h=Ring_Width*2); } } module feature() ...
glb/cad_5573b86dd0eb.glb
Create a Bahtinov Mask for telescope focusing. Start by creating a flat circular disk with an exterior diameter of 60mm, an interior diameter of 54mm, and a thickness of 1.5mm. This forms a stabilizing outer ring. On the face of the disk, add two support bars: a horizontal bar and a vertical bar, both 3mm wide and 1.5...
dia_ext = 60; dia_int = 54; hbar = 3; vbar = 3; thickness = 1.5; holder_height = 20; holder_wall = 1.5; holder_thinning = 3; angle = 15; focal_length = 200; bahtinov_const = 150; bahtinov_factor = 1; step = round(10* focal_length / bahtinov_const * bahtinov_factor)/10; echo("step = ", step); portion = 1/2; $f...
glb/cad_8d0d0f08545c.glb
Create a PVC Pipe Screw In Mount. Start with a cylindrical base that has a diameter of 53mm and a height of 7mm. On top of this base, add a second cylindrical section with a height of 10mm that tapers from a bottom diameter of 53mm to a top diameter of 37mm. Carve a central vertical hole through both sections with a d...
pipe_od=32; fudge_factor=0.5; shelf_l=10; shelf_t=4; mount_h=7; screw_dia=4; screw_head_dia=11; screw_head_h=5; holes = 3; _od = pipe_od + fudge_factor; _tot_od = _od + (2*screw_dia) + (2*screw_head_dia); assert(mount_h > screw_head_h, "ERROR: mount height must be at least the screw head height"); $fa=1; $fs=0.5;...
glb/cad_98ad36ec76fd.glb
Create a DVD cover for a Dell Optiplex 790 SFF by constructing a primary rectangular base measuring 15mm wide, 130mm long, and 2.5mm thick. Attach a second, thinner rectangular slab to the side of this base, measuring 16mm wide, 130mm long, and 1mm thick, positioned so it starts 1mm offset from the side and sits atop t...
difference() { union() { cube([15,130,2.5]); translate([-1,0,2.5]) cube([16,130,1]); translate([4,-2,2.5]) cube([6,5,1]); translate([4,128,2.5]) cube([6,4,4.6]); } translate([1.44,1.44,1]) cube([12.12,127.12,7]); }
glb/cad_65a6d81d8346.glb
Create an Ikea Ivar short board support. The model consists of a main support body and two cylindrical pins. First, create the main support body. The base is a rectangular block with a width of 44mm and a depth of 6mm. Extend this body forward by 210mm. At the top of this extension, add a joining plate that is 25mm wi...
use_separate_pins=true; support_ext=210; height_in_holes=4; plate_width=25; board_thickness=12; use_board_grabber=true; $fn=100; module pin (length=16) { cylinder(h=length, d=hole_dia); } hole_dia=6; hole_rad=hole_dia/2; hole_hor_dist=20; hole_hor_spacing=26; hole_vert_dist=26; hole_vert_spacing=32; pole_wi...
glb/cad_7d7236f02157.glb
Create a lightweight card holder consisting of a tilted base plate and two supporting side walls. Start by creating a rectangular base plate 9mm wide, 6mm long, and 0.3mm thick. Tilt this base plate at a 20-degree angle. Construct two side walls that are 10mm high and 0.2mm thick. Position these walls on opposite end...
$fn=100; Bed_Length = 6; Bed_Width = 9; Tilt_Angle = 20; Cut_Circle_Altitude=0.5; End_Wall_Height=1; End_Wall_Width=0.2; Bed_Thickness = 0.3; color([0.5,0.5,0.5,1]){ difference(){ union(){ difference(){ cube(size=[0.25,Bed_Length*cos(Tilt_Angle),Bed_Length*sin(Tilt_Angle)+Bed_Thickness/cos(Tilt_Angle)]); unio...
glb/cad_c03fe023f2b6.glb
Create a TAN Generator holder by starting with a rounded box that has overall dimensions of 70mm in height, 17.5mm in depth, and 74mm in width, with a corner radius of 3mm. Hollow out the center of this box by removing a smaller rounded box measuring 66mm by 13.5mm by 70mm, leaving a wall thickness of 2mm. To create th...
use <MCAD/boxes.scad> use <utils/build_plate.scad> use <write/write.scad> $fn=60; tgh_Height = 66; tgh_Width = 70; tgh_Depth = 13.5; tgh_Thickness = 2; hook_Thickness = 29; build_plate_selector = 3; build_plate_manual_x = 200; build_plate_manual_y = 200; build_plate(build_plate_selector,build_plate_manual_x,buil...
glb/cad_353dd1bc7f4f.glb
Create a Techzone USB-TTL Mount consisting of two symmetrical mirrored halves. Each half is based on a main rectangular block with a total width of 23.8mm, a length of 34.5mm, and a total height of 6.8mm. The interior of each half must be hollowed out to accommodate a PCB of 19.5mm width and 27.5mm length. Within thi...
b_l=27.5; b_w=19.5; b_t=1.5; component_height=3.3-1.5; edge_clearance=1.7; usb_w=13.5; usb_h=11.5; usb_l=17; usb_overlap=10; usb_clearance=1.8; ttl_w=16; ttl_h=5; ttl_l=11.5; ttl_overlap=2.5; hole=5; surround=1.9; full_height=component_height+b_t+usb_h+surround; full_length=b_l+surround+usb_l-usb_overlap+surround; fu...
glb/cad_b73ec89a4f81.glb
Create a simple adjustable foot consisting of four separate components. First, create a hexagonal base with a diameter of 30mm and a height of 10mm. Remove a central cylindrical hole with a diameter of 23mm and a depth of 2mm from the top, and a smaller hexagonal hole with a diameter of 11.6mm and a depth of 12mm from ...
$fn=90; foot_color = "MediumAquamarine"; cut_color = "Teal"; model_color = "LightGrey"; screw_length = 40; screw_thread_diam = 6.3; screw_height = 4.3; screw_diam = 11.5; base_diam = 30; base_height = 10; cover_diam = 23; cover_height = 2.5; cover_inlay = 2; tightener_diam = 19.6; tightener_height = 5; gap = 0.1; ...
glb/cad_ea060fa3ea8c.glb
Create a replacement clip for a diving mask by constructing a base shape that combines a rectangular block and a semi-circular end. Start with a rectangular prism measuring 20mm wide, 25.25mm deep, and 4.25mm thick. Attach a second rectangular prism to this base, measuring 23mm wide, 21.25mm deep, and 4.25mm thick, pos...
difference(){ union() { cube(size=[20.0,25.25,4.25]); hull() { translate([0,2,0]) cube(size=[23.0,21.25,4.25]); translate ([23.5,25.25/2,0]) cylinder(r=12.8/2,h=4.25); } } translate([6,2,-0.01]) cube(size=[6.5,21.25,4.27]); translate ([23,25.25/2,-0.01]) cylinder(r=8.8/2,h=5); }
glb/cad_15744fd70b2e.glb
Create a drawer lock consisting of a flat base and a vertical latch mechanism. Start by creating a rectangular base plate measuring 40mm in length, 25mm in width, and 2mm in thickness. At one end of this base, construct a vertical latch assembly. This assembly begins with a rectangular block 2mm wide, 25mm deep, and 13...
kaapin_lukon_paksuus = 2; kaapin_lukon_tukipinta = 25; kaapin_lukon_varsi = 40; kaapin_lukon_salpa = 11; module kaapin_lukko(paksuus, tukipinta, varsi, salpa) { translate([varsi-20,0,paksuus]) rotate([90,0,0]) linear_extrude(paksuus, center = true) polygon([[0,0],[20,0],[20,salpa]]); translate([0,-tukipinta/2,0]) { ...
glb/cad_4f727ce2abff.glb
Create a filament spool holder consisting of a central vertical cylinder and a base. Start by creating a main vertical cylinder with a diameter of 19mm and a height of 56mm. At the bottom of this cylinder, add a circular base with a diameter of 39.6mm and a thickness of 2.7mm. Integrate two small rectangular handle tab...
bodyHeight=56; bodyDiameter=19; stubHeight=3.85; stubDiameter=8.8; flangeHeight=3.7; flangeDiameter=18.5; flangeWidth=stubDiameter; baseDiameter=39.6; baseWidth=bodyDiameter; baseHeight=2.7; handleLength=11.6; handleHeight=10; handleThickness=4; union() { intersection() { translate([baseDiameter/2 - handleLeng...
glb/cad_cb87f727d66c.glb
Create a Lightstand Bar Mount consisting of a cylindrical base and a saddle-shaped top. Start by creating a solid cylinder with a diameter of 22mm and a total height of 33mm. From the top center of this cylinder, remove a conical hole that begins with a diameter of 16mm at the top surface and tapers down to a diameter ...
$fn=96; hole_diameter=16; hole_depth=30; hole_taper_angle=35; hole_cap_diameter=9.5; saddle_diameter=17; saddle_blend_distance=8; wall_thickness=3; body_outer_dia=hole_diameter+wall_thickness*2; saddle_outer_dia=saddle_diameter+wall_thickness*2; saddle_bounds=max(body_outer_dia,saddle_outer_dia); module body(){ ...
glb/cad_4167a30fe7c9.glb
Create a customizable spindle rounder consisting of a main handle and a spacer. For the main handle, create a cylinder with a radius of 25mm and a height of 85mm. Subtract a central vertical trench 27mm wide and 50mm high from this cylinder. Additionally, remove a bottom slice 15mm from the base and two rectangular fac...
tl=100; sl=15; sh=15; rr=25; iw=27; ow=40; handle=true; spacer=true; sr=rr-3; module milling(l) { translate([-iw/2,0,-1]) cube([iw,rr*2,l+2]); translate([-rr,sh,-1]) cube([rr*2,rr,l+2]); translate([-ow/2-10,-6,-1]) cube([10,rr,l+2]); translate([ow/2,-6,-1]) cube([10,rr,l+2]); trans...
glb/cad_69a6a5be1992.glb
Create a Shisha Diffusor consisting of three stacked concentric sections. Start with a base ring that is a flat disc with an outer diameter of 22.6mm and a thickness of 1mm, featuring a central hole of 21mm. Above this base, build a hollow cylinder with an outer diameter of 22.6mm and a height of 40mm. This cylinder ...
ShishaTubeOuterDiameter = 21; DiffusorHeight = 40; DiffusorWall = 1.2; HoldingRingHeight = 10; HoldingRingWall = 0.8; BottomThickness = 1; HolesAround = 8; HolesRow = 5; HoleDiameter = 3; HoleFormat = 6; color("black") rotate_extrude($fn = 360) square([ShishaTubeOuterDiameter/2+HoldingRingWall, BottomThi...
glb/cad_30f3fcd8a678.glb
Create a Shisha Diffusor consisting of three concentric cylindrical sections stacked vertically. Start with a base ring centered at the origin with an outer diameter of 22.65mm (21.05mm tube diameter plus 0.8mm wall on each side) and a height of 1mm. Above this base, build a main diffuser body with an inner diameter o...
ShishaTubeOuterDiameter = 21.05; DiffusorHeight = 20; DiffusorWall = 1.2; HoldingRingHeight = 10; HoldingRingWall = 0.8; BottomThickness = 1; HolesAround = 3; HolesRow = 4; HoleDiameter = 3; HoleFormat = 6; HoleTurn = 0; LowerBoarder = 1; UpperBoarder = 1; b = 18/HolesAround; color("black") rotate_extrude($fn...
glb/cad_8fda9ce4bd94.glb
Create a replacement peg for Peg-Lok shelving by starting with a cylinder that has a diameter of 22.2mm and a height of 38.1mm. Center the cylinder so that it is bisected along its length. To create the tapered ends, remove a wedge-shaped section from the top of the cylinder using a rectangular cutout. This cutout shou...
height=38.1; diameter=22.2; large_side=14; small_side=7.7; radius = diameter/2; base = large_side - small_side; angle = atan(base/height); difference () { cylinder(h=height,r=radius, center=true); translate([0,(large_side + small_side)/2.0,0]) rotate([angle,0,0]) cube(size=[diameter, diameter, height+30], cente...
glb/cad_fb4cf22c9df9.glb
Create a napkin ring by constructing a cylinder with a height of 60mm and an outer diameter of 60mm. The exterior surface must feature a knurled texture consisting of a repeating diamond pattern, where each knurl has a width of 10mm, a height of 10mm, and a depth of 5mm. Ensure the top and bottom ends of the cylinder a...
include <knurledFinishLib.scad> height = 60; diameter = 60; kWidth = 10; kHeight = 10; kDepth = 5; endSmoothing = 25; surfaceSmoothing = 30; difference() { knurled_cyl(height, diameter, kWidth, kHeight, kDepth, endSmoothing, surfaceSmoothing); cylinder(200, r=25, center=true); }
glb/cad_6e01798584e5.glb
Create a customizable LCD 2004 case consisting of a front panel and a back housing. The front panel is a rounded rectangle with outer dimensions of 120mm by 80mm, a thickness of 3mm, and corner radii of 4mm. Centered on this panel, create a rectangular cutout for the display measuring 98mm by 40mm. Add four M3 mounti...
$fs=0.5; $fa=6; TYPE = "preview"; CREATE_CUTOUTS = true; M3_HOLE_DIA = 3.8; M3_TAP_DIA = 2.8; FRONT_OUTER_WIDTH = 120; FRONT_OUTER_HEIGHT = 80; FRONT_EDGE_DIA = 8; FRONT_THICKNESS = 3; FRONT_MOUNT_LENGTH = 30; TOP_LENGTH = 30; BOTTOM_LENGTH = 90; FRONT_ANGLE=65; WALL_THICKNESS = 3; LCD_CUTOUT_WIDTH =98; ...
glb/cad_ee0e9e03f35d.glb
Create a Eurorack panel with a total width of 40.64mm (8hp), a height of 128.5mm, and a thickness of 2mm. Along both the left and right vertical edges, add reinforcement ribs that are 2mm wide and 110mm high, centered vertically on the panel, extending 10mm outward from the face of the panel. Create a series of moun...
panelThickness = 2; panelHp=8; holeCount=4; holeWidth = 5.08; threeUHeight = 133.35; panelOuterHeight = 128.5; panelInnerHeight = 110; railHeight = (threeUHeight-panelOuterHeight)/2; mountSurfaceHeight = (panelOuterHeight-panelInnerHeight-railHeight*2)/2; echo("mountSurfaceHeight",mountSurfaceHeight); hp=5.08; mount...
glb/cad_4a26d440c303.glb
Create a Eurorack panel with a total width of 40.64mm (8hp) and a height of 128.5mm, with a uniform thickness of 2mm. On the top and bottom edges, create four mounting holes on each side (eight total). Each mounting hole consists of a 3.2mm diameter circle connected by a rectangular slot 1.84mm wide and 3.2mm high, c...
panelThickness = 2; panelHp=8; holeCount=4; holeWidth = 5.08; threeUHeight = 133.35; panelOuterHeight = 128.5; panelInnerHeight = 110; railHeight = (threeUHeight-panelOuterHeight)/2; mountSurfaceHeight = (panelOuterHeight-panelInnerHeight-railHeight*2)/2; echo("mountSurfaceHeight",mountSurfaceHeight); hp=5.08; mount...
glb/cad_ac17dca28573.glb
Create a parametric container with a threaded lid and an optional seal. The container body is a cylinder with an outside diameter of 59mm and an inside diameter of 51mm at the neck. The main body has an internal diameter of 55mm and a bottom thickness of 3mm. The total internal height is 106mm. The top of the contain...
use <Nut_Job.scad>; use <Chamfer.scad>; diameter_outside = 59; diameter_inside = 51; diameter_body = 55; height_inside = 106; thickness_bottom = 3; thickness_lid = 3; seal_recess = false; seal_thickness = 1; seal_width = 4; type = "all"; total_thread_length = 6; non...
glb/cad_ed73feabc895.glb
Create a Gersung switch holder for MakeBlock by starting with a rectangular base plate measuring 56mm in length, 24mm in width, and 4mm in height. From this base, remove several cylindrical holes of varying sizes and positions to create mounting points. First, create four switch mounting holes with a radius of 1.55mm....
holes_step_by_x = 8; holes_step_by_y = 8; plate_height = 4; holes_shift_x = 4; holes_shift_y = 4; holes_radius = 2.05; module holes(holes_by_x, holes_by_y, step_by_x, step_by_y) { for (j = [0 : holes_by_x]) { for ( i = [0 : holes_by_y] ) { translate([holes_shift_x + j*step_by_x, holes_shift_y + i*step_by_y, -1...
glb/cad_5a5f60370eef.glb
Create a battery holder for a Samsung AB03446BE battery. Start by constructing a base platform that is 50mm wide, 50mm long, and 2mm thick. From this base, build two perpendicular walls to create a rectangular enclosure. One wall should be 35mm long and 8mm high, positioned along the side, and the other wall should be ...
difference(){ union(){ cube([50,5,2]); translate([25,-15,0]) cube([5,35,2]); translate([-3,-15,0]) cube([3,35,8]); translate([50,-15,0]) cube([2,35,8]); translate([-3,-17,0]) cube([55,2,8]); translate([-3,20,0]) cube([55,2,8]); } union(){ translate([-5,6.5,2]) rotate([0,90,0]) cylinder(h=10, r=1); translate([-5,11.5,2...
glb/cad_215d616f34c3.glb
Create a Soothing Busy Work Puzzle consisting of a rectangular box and several puzzle pieces. The box should have external dimensions of 55mm width, 65mm length, and 13mm height, with a wall thickness of 2mm. The bottom and four side walls of the box must be perforated with a pattern of small diamond-shaped holes. Con...
bw = 55; bl = 65; bh = 13; th = 2; box_face(); module box_t() { t = [[2,1,0],[2,2,0],[2,3,0],[2,4,0],[1,4,0],[3,4,0],]; difference() { union() { sides(bw,bl,bh,th); frame(bw,bl,bh,th); translate([0,0,5.]) scale([1,1,(10/9.2)]) translate([-20,-25,0]) join_cubes(t,1,6); } for ( i= [-15:10:15]){ translate([...
glb/cad_8fa5cd718aee.glb
Create a puzzle consisting of five interlocking pieces that fit together to form a rectangular block measuring 50mm by 60mm by 10mm. Each piece is composed of 10mm cubes. Construct the following five pieces: 1. A pentomino piece consisting of five cubes in a "P" shape: a 2x2 square block with one additional cube attac...
view_ans_5(apuz_1); module picture2() { translate([-90,0,0]) view_ans_5(apuz_6); translate([-30,0,0]) view_ans_5(apuz_7); translate([30,0,0]) view_ans_5(apuz_8); translate([90,0,0]) view_ans_5(bpuz_3); translate([-90,80,0]) view_ans_5(dpuz_14); translate([-30,80,0]) view_ans_5(dpuz_15); translate([30,80,0]) view_ans_5...
glb/cad_c4a1e8f81e5e.glb
Create a customizable checkers piece by starting with a base token that is 30mm in diameter and 5mm high. The token should have rounded top and bottom edges, achieved by using a rounding radius of approximately 1.67mm (one-third of the height). On the top surface of this token, carve out a recessed crown shape. The c...
diameter_mm=30; height_mm=5; crown_depth_mm=-1; rounding_factor=3; fn=100; module crown(width, height, depth) { translate([-width/2,-height/2,0]) { cube_width=width*0.75; cube_height=height*0.2; cube_gap=height*0.1; translate([(width-cube_width)/2,0,0]) cube(size=[cu...
glb/cad_a6e2e22d6d22.glb
Create a laser engraver hood and camera holder. Start with a main rectangular block measuring 37.2mm wide, 65.2mm deep, and 53mm high. Hollow out the center of this block by removing a smaller rectangular volume of 33.2mm width and 33.2mm depth, leaving a wall thickness of 2mm on the sides and bottom. On the front fac...
$fn = 50; laser_width = 33.2; thick = 2; focus = 22; lens=11; mount_height = 20; mount_diam = 2.5; mh1 = 11.8; mh2 = 23.6; space = 30; fan_diam = 28; fan_mount_diam = 3; camera_mount_diam = 1; camera_mount_dist = 18; difference() { union() { difference() { cube([laser_width+thick*2, laser_width+thick*2+space,...
glb/cad_3e454045aaf6.glb
Create a treasure chest key by starting with a flat rectangular shaft 3mm thick, 46mm long, and 3mm wide. Along one side of the shaft, add three small rectangular teeth, each 2.5mm wide and 3mm high. Position the first tooth at the base, the second 6.5mm from the start of the shaft, and the third 13mm from the start. A...
$fn=50; cube([3,46,3]); translate(v=[3,3,0]){cube([3.5,2.5,3]);}; translate(v=[3,9.5,0]){cube([5.5,2.5,3]);}; translate(v=[3,16,0]){cube([5.5,2.5,3]);}; difference(){ translate(v=[1.5,50,0]){scale([1.2,1,1]) cylinder(r=8,h=3);} translate(v=[1.5,50,0]){scale([1.2,1,1]) cylinder(r=3,h=3);} }
glb/cad_bf67783fae2e.glb
Create a key for a treasure chest by constructing a flat 3D shape with a consistent thickness of 3mm. Start with a rectangular shaft that is 3mm wide and 46mm long. At the bottom end of this shaft, add two small rectangular teeth: one measuring 3.5mm by 2.5mm positioned 3mm from the base, and another measuring 5.5mm by...
$fn=50; cube([3,46,3]); translate(v=[3,3,0]){cube([3.5,2.5,3]);}; translate(v=[3,9.5,0]){cube([5.5,2.5,3]);}; translate(v=[3,12,0]){cube([5.5,2.5,3]);}; difference(){ translate(v=[1.5,50,0]){scale([1.2,1,1]) cylinder(r=8,h=3);} translate(v=[1.5,50,0]){scale([1.2,1,1]) cylinder(r=3,h=3);} }
glb/cad_9e6d75818382.glb
Create a Customizable Toy Car by constructing a central body and adding captured wheels. The body is a rectangular block 60mm long, 30mm wide, and 10mm high. At the front and rear of the body, create wheel wells. Each well is a cutout designed to house a wheel with a radius of 12mm. The wheels are 24-facet prisms wit...
00_build_plate = 0; 01_length = 60; 02_width_factor = 50; 03_wheel_size = 100; 04_max_number_of_wheels = 8; 05_wheel_facets = 24; 06_tire_width_factor = 0; 07_axel_radius_factor = 0; 08_tread_density = 0; 09_tread_depth_factor = 100; 10_tread_size_factor = 50; 11_wheel_well_coverage_factor = 50; 12_platform...
glb/cad_7113cc1ee12f.glb
Create a protective visor frame consisting of a brow piece and two symmetrical arms. All components have a uniform thickness of 4mm and a total height of 1.5mm. First, construct the brow. Create a curved "roof" section with a radius of 90mm that will sit against the forehead. Extend two straight pillars from the ends ...
clearance = 25; roof_radius = 90; approximate_height = 5; layer_height = 0.3; thickness = 4; support_layer_count = 3; custom_color_allowed = false; protective_visor_height = ceil(approximate_height / layer_height) * layer_height; *stacked_protective_visor(count = 10); protective_visor(height = protective_visor_heig...
glb/cad_8196d0af640a.glb
Create a Customizable Ear Saver consisting of a central oval ring with two symmetrical arms extending from the sides. The entire object has a thickness of 1mm. Start with a central oval that is 54mm long and 25mm high. Hollow out the center of this oval by removing an inner oval that is 79% of the outer dimensions in ...
Length = 150; Width = 10; Hook_Count = 4; Hook_Spacing = 10; Oval_Lenth = 54; Oval_Height = 25; Ratio = .79; Fill = false; Rotation = 6; $fn = 200; LegLength = Length/2.0 - Oval_Lenth / 2.0 * Ratio + 2; module rotateAround(angles, orig) { translate(orig) rotate(angles) translate(-orig) ...
glb/cad_e1ef6f0a5862.glb
Create a rectangular project enclosure for an electric energy tester with outer dimensions of 55mm width, 80mm depth, and 45mm height. The box should have a wall thickness of 1.52mm, leaving the top open. On the front face, create three circular pass-through holes for banana plugs: two positioned symmetrically on the...
$fn=50; holes_for_USB = 1; outside_box = [55, 80, 45]; wall_thickness = 1.52; mounting_screw = 4; mounting_screw_gap = 7; difference() { difference() { cube(outside_box, center=false); translate([wall_thickness, wall_thickness, wall_thickness]){ cube([outside_box[0]-2*wall_thickness, outside_box[1]-2*...
glb/cad_846eb1d41dd6.glb
Create a housing for an electric energy tester. Start with a rectangular base measuring 55mm by 80mm with a height of 1.6mm. On top of this base, add four rectangular corner blocks, each measuring 12mm by 12mm with a height of 5mm, positioned at the corners but offset from the edges by 1.52mm. In the center of the bas...
$fn=50; outside_box = [55, 80, 1.6]; wall_thickness = 1.52; mounting_screw = 4; mounting_screw_gap = 7; inserts_high = 5; holding_box = 2*(mounting_screw_gap-wall_thickness)+mounting_screw/2; union(){ difference() { union(){ cube(outside_box, center=false); translate([wall_thickness, wall_thickne...
glb/cad_b79c3d2a88ba.glb
Create a card box by starting with a solid rectangular block measuring 66mm wide, 91mm deep, and 25mm high. Hollow out the center of this block by removing a smaller rectangular volume of 64mm by 93mm by 23mm, positioned 1mm from the front, side, and bottom edges, to create a thin-walled open container. To further refi...
color("green", 1) { difference(){ difference(){ cube(size = [66, 91,25], center = false); translate([1, -1, 1]) cube(size = [64, 93,23], center = false); } translate([13.9, -1, .5]) cube(size = [3.2, 93, 1], center = false); translate([47.9, -1, .5]) cube(size = [3.2, 93, 1], center = fa...
glb/cad_3b7fec2b6bf8.glb
Create a card box for organizing a 54-card game. Start by constructing a flat rectangular base measuring 66mm wide, 25mm deep, and 2mm thick, positioned from x=0, y=-2, z=-1. Build two outer side walls, each 2mm wide, 91mm long, and 21mm high, located at x=2 and x=62, extending from y=-2 to y=89 and z=2 to z=23. Add tw...
translate([0,-0,0]) color("orange") { translate([0, -2, -1]) cube(size = [66, 2,25], center = false); translate([2, -2, 2]) cube(size = [2, 91,21], center = false); translate([62, -2, 2]) cube(size = [2, 91,21], center = false); } color("blue") { difference(){ translate([14, 0, 0.5])...
glb/cad_a64ec5ad5a3f.glb
Create a circular bracelet with an outer diameter of 68mm, a width of 12.5mm, and a wall thickness of 1.5mm. The main body is a hollow ring formed by subtracting a smaller cylinder from a larger one. Apply a small 0.5mm bevel to the top and bottom outer and inner edges of the ring. Embed the text "RepRap" into the wal...
use <write/Write.scad> text = "TEXT"; rounded_text = "yes"; letters_inside = "no"; bracelet_diameter = 68; bracelet_width = 12.5; bracelet_thickness = 1.5; bracelet_text = "RepRap"; bracelet_font = "DejaVu Sans:style=Bold"; bracelet_font_size = 7; bracelet_spacing = 7; bracelet_text_rep = 3; bracelet_voffset = 3...
glb/cad_356c7f53e4e7.glb
Create a filament spool stand leg by starting with a central cylinder that has a diameter of 21.75mm and a height of 12.7mm, centered on the origin. Bore a hole through the center of this cylinder with a diameter of 16.83mm. To form the support structure, add two identical rectangular beams, each measuring 120mm by 2mm...
mmpin=25.4; dowel = 5/8 *mmpin+1; module leg() { rotate([45, 0, 0]) translate([60, 0, 0]) cube([120, 2, 20], true); rotate([-45, 0, 0]) translate([60, 0, 0]) cube([120, 2, 20], true); } difference() { union() { cylinder(d=dowel +4, h=mmpin/2, center=true); rotate([0, 0, 25]) leg(); rotate([0, 0...
glb/cad_56089f097151.glb
Create a Universal Frame Connector consisting of a central hub with four radiating arms. Start with a central cube measuring 17mm x 17mm x 11mm. To this hub, add eight rectangular blocks, each 3mm thick, 20mm long, and 11mm wide. Position these blocks in pairs extending from the four sides of the hub; each pair is offs...
w = 11; l = 20; p = 3.5; t = 3; n = 4; $fn = 8; difference() { union() { for ( z = [ 1 : n ] ) rz( z * 90 ) for ( x = [ -1, +1 ] ) txy( x*( t/2 + w/2 ), l/2 + w/2 + t ) cbox( t, l, w ); for ( a = [ -1, +1 ], b = [ -1, +1 ] ) txy( a*w/2+a*t/2, b*w/2+b*t/2 ) ccyl( r = t*1.5, h = w, $fn = 4...
glb/cad_421b595bdedd.glb
Create two wireguides for aluminum extrusions. Each guide is a hollow cylinder with a height of 10mm. The first guide has an outer diameter of 12.7mm and an inner diameter of 9.15mm. The second guide has an outer diameter of 19mm and an inner diameter of 15mm. For each guide, create a C-shaped clip attached to the si...
thickness=10; $fn=100; module clip() { translate([-1,0,0])linear_extrude (height=thickness, convexity=4) { polygon(points=[[0,.75],[0,6.75],[3,6.75],[3,7.5],[4.25,7.5],[5,6.75],[5,4.5], [1,4.5],[1,3],[5,3],[5,.75],[4.25,0],[3,0],[3,.75],[0,.75]]); } } module wireguide(size) { rad=size/2; shift = rad - sqrt(r...
glb/cad_876239752726.glb
Create a camera mount adjustment knob by starting with a primary cylinder 9mm high with a radius of 10mm, using 36 facets for the circular profile. On top of this cylinder, add a second, shorter cylinder 1mm high that tapers from a radius of 10mm down to 9mm. Remove a central vertical hole with a radius of 2.3mm and 16...
difference(){ union(){ translate([0,0,0]) cylinder(h=9, r=10, $fn=36); translate([0,0,9]) cylinder(h=1, r1=10, r2=9); } translate([0,0,0]) cylinder(h=20, r=2.3, $fn=16); translate([-4.2,-2.3,2]) cube([8.4,4.6,10]); for ( i = [0 : 11] ) { rotate( i * 360 / 12, [0, 0, 1]) translate([0, ...
glb/cad_2aa40348a389.glb
Create a camera mount for telescopes by starting with a central cylinder 10mm high with a radius of 13mm. From the center of this base, remove a vertical cylindrical hole with a radius of 4.7mm that starts 4mm from the bottom and extends 9mm upward. To create the grip, add four identical arms extending from the center....
difference(){ union(){ translate([0,0,0]) cylinder(h=10, r=13, $fn=64); } translate([0,0,4]) cylinder(h=9, r=4.7, $fn=36); for ( i = [0 : 3] ) { rotate( i * 360 / 4, [0, 0, 1]) translate([0, 19, 0]) cylinder(h=18, r=12, $fn=10); } } translate([0,0,0]) cylinder(h=6, r=2.7, $fn=6);
glb/cad_28cdb1400b52.glb
Create a camera mount for telescopes consisting of two joined rectangular blocks. First, construct a base rectangular prism measuring 12mm wide, 14.5mm deep, and 8mm high. Attached to the top of this base, position a second rectangular prism measuring 8mm wide, 10mm deep, and 12mm high, centered such that it starts 2mm...
$fn=12; difference(){ union(){ translate([0,0,0]) cube([12,14.5,8]); translate([2,14.5,0]) cube([8,10,12]); } translate([-1,7.25,4.25]) rotate([0,90,0]) cylinder(h=20, r=1.9); translate([6,19.5,0]) cylinder(h=16, r=2); }
glb/cad_c072698830e5.glb
Create a Camera Mount for Telescopes consisting of a tiered cylindrical body with a central vertical hole. Start by creating a base cylinder 10mm high with a radius of 10mm and a 36-facet resolution. Directly above this, add a second cylinder 20mm high with a radius of 6mm and a 36-facet resolution, centered on the sam...
difference(){ union(){ translate([0,0,0]) cylinder(h=10, r=10, $fn=36); translate([0,0,0]) cylinder(h=20, r=6, $fn=36); } translate([0,0,0]) cylinder(h=30, r=2.3, $fn=16); translate([0,0,0]) cylinder(h=4, r=4.5, $fn=6); for ( i = [0 : 11] ) { rotate( i * 360 / 12, [0, 0, 1]) translat...
glb/cad_054b35971c9a.glb
Create a camera mount for telescopes consisting of a main rectangular plate and a perpendicular base. Start with a main plate 37mm wide, 55mm long, and 3.5mm thick, with rounded corners using a 5mm radius. On the bottom surface of this plate, center a rectangular block that is 58mm wide, 15mm deep, and 16mm high. This ...
$fn=36; rotate([-90,0,0]) difference(){ union(){ minkowski(){ translate([-18.5,-60,0]) cube([37,55,3.5]); cylinder(r=5); } translate([-29,-20.5,0]) cube([58,20.5,4.5]); translate([-29,-15,0]) cube([5,15,16]); translate([24,-15,0]) cube([5,15,16]); translate([-29,-15,13]) cube([58,15,3]); } t...
glb/cad_4bafc546b213.glb
Create a camera mount for a telescope eyepiece. Start with a main cylindrical ring that has an inner diameter of 34.4mm and an outer diameter of 42mm, with a height of 14mm. The ring should have a small vertical gap cut through one side. Attached to the side of this ring, create a rectangular base extending outwards. T...
$fn=16; difference(){ union(){ translate([0,0,0]) cylinder(h=14, r=21, $fn=64); minkowski(){ translate([-6,-67,0]) cube([12,47.3,9]); cylinder(r=2.5); } translate([-12,17,0]) cube([24,12,14]); } translate([0,0,0]) cylinder(h=20, r=17.2, $fn=64); translate([-4.25,-65,0]) cube([8.5,40,20]); transl...
glb/cad_c76c98ecf147.glb
Create an Ohm's Law Medallion consisting of a main circular disc with a diameter of 105mm and a thickness of 1mm. Add a concentric raised circular hub in the center with a diameter of 63mm and a total height of 2mm. Divide the face of the medallion into four equal quadrants using two thin rectangular dividers, each 1.0...
$fn=64; tsiz = 7; dia = 15*tsiz; thk = 1; module mysqrt(x,y) { translate([x,y,0]) cube([tsiz*2.5,tsiz/5,thk*2]); translate([x,y+tsiz*0.2,0]) rotate([0,0,-110]) cube([tsiz*1.75,tsiz/5,thk*2]); translate([x-tsiz*0.4,y-tsiz*1.5,0]) rotate([0,0,110]) cube([tsiz*0.5,tsiz/5,thk*2]); } module mysq(x,y) { translate([x...
glb/cad_a30886c39f97.glb
Create a filament spool base consisting of a series of concentric rings and radial slots. Start with a main circular disk with an outer diameter of 164mm and a thickness of 4mm. Remove a central cylinder with a diameter of 50mm to create a ring. Within this disk, create a series of concentric circular ridges (walls) t...
$fn = 2 * 8; build = 2; d_holder = 50; d_inner = 82; d_outer = 164; sp_width = 20; thick = 4; h_spa = thick * 1; h_height = 18; delta = 0.2; fil_r = 1.2; r_holder = d_holder / 2; r_inner = d_inner / 2; r_outer = d_outer / 2; n_segs = 8; R360 = 360; module a_h_seg (ahs_i, ahs_r_in, ahs_r_out, ahs_height) { ...
glb/cad_1007f728b6fb.glb
Create a Prusa MK3 Filament Sensor Cover. Start with a rectangular base measuring 39mm in width, 28mm in depth, and 5mm in height, centered such that it spans from -17mm to 22mm on the X-axis and -17mm to 11mm on the Y-axis. On the top surface, add a central cylindrical protrusion with a total height of 15mm; this prot...
$fn = 90; union() { difference() { union() { translate([-17, -17, 0]) cube([39, 28, 5]); union() { translate([0, -10, 5]) cylinder(d = 10, h = 1); translate([0, 0, 5]) cylinder(d = 10, h = 1); translate([-5, -10, 5]) cube([10, 10, 1]); }; translate([0, 0, 11]) cylinder(d = 8, h = 10, cent...
glb/cad_be49ebc7a314.glb
Create a Tassimo T-Disc Dispenser by constructing a hollow vertical cylinder with an outer radius of 36.5mm and a total height of 83mm. The base should be a solid disc 1.5mm thick. The main body is a hollow tube with an inner radius of 35mm. To allow for the removal of discs, create a wide vertical cutout on one side ...
high=83; rad=36.5; difference(){ union(){ translate(v = [0, 0, -1]) cylinder(h = 1.5, r=rad,center=false); cylinder(h = high, r= rad,center=false); translate(v = [0, rad-14, 14]) cylinder(h = high-14, r= rad/2+3,center=false); } translate(v = [-rad, 0, -2]) cube([rad+rad,rad,5],center=false); minkowski(){ translate...
glb/cad_0e0547183a89.glb
Create a Brustruder and grooved hotend mount with a total thickness of 5mm. The main body is composed of a central cylindrical section with a radius of 14.6mm (diameter 29.2mm) that blends into rectangular extensions. Add a horizontal rectangular base measuring 20mm by 60mm and a vertical base measuring 75mm by 20mm, b...
insulator_type = "groove"; mount_height = 5; insulator_diameter = 17.2; bolt_diameter = 4.7; groove_diameter = 13.1; module wade_mount_base() { translate([0, 0, 0]) { union() { translate([0, 8, 0]) { cube([20, 60, mount_height], center=true); } translate([8, 0, 0]) { cube([75, 20, mount_heigh...
glb/cad_4e3c2c5b646d.glb