Prompt
stringlengths
96
2.17k
Code
stringlengths
27
249k
3d_glb
stringlengths
24
24
Create an optics bench lens holder and stand. Start by creating a cylindrical holder with an outer diameter of 93.36mm and a height of 15mm. Remove a concentric center cylinder with a diameter of 25.2mm and a height of 25mm to create a ring. Attach this holder to a vertical stand. The stand consists of a central squar...
include <threads_v2.scad> use <knurledFinishLib_v2.scad> $fn=128; maxLensDiameter = 65; height = 35; boltLength = 15; boltScaling = 0.95; extrusionNutHeightScaling = 1; outerDiameter = maxLensDiameter + (14.18*2); outerRadius = outerDiameter/2; innerDiameter = outerDiameter - (9.75*2); module holder() { uni...
glb/cad_677422753e8e.glb
Create a backpack waist belt buckle with a total height of 11.4mm. The main body is a vertical block with a central hollow cavity. This cavity is formed by a central rectangular slot 7mm wide and 8.2mm high, flanked by two symmetrical side walls. The interior cavity features a rounded bottom with a radius of 3.4mm. Th...
$fn=180; inner_h=6.8; inner_center_h=8.2; h=inner_center_h+3.2; center_h=h; face_r=h/2; r1=33; x_max=44.5; loop_x=39.35; o=1.2; o2=1; ratio=45/180; convex_x1=13.9; convex_x2=29.5; module file_to_profile(file,w,h,scale,x,y,angle,threshold) translate([x,y]) rotate(angle) scale([scale,scale,0.1/threshol...
glb/cad_216078d7290d.glb
Create a Nuova Simonelli MCF Spout consisting of two friction-fit components: an adapter plate and a spout. First, construct the adapter plate as a hollowed cylindrical section with an outer radius of 48mm and a wall thickness of 3.5mm. The plate features a central rectangular cutout measuring 27mm in height and 34mm ...
$fn = $preview ? 0 : 100; screw_angle=55; outer_rad=96/2; inner_rad=outer_rad-3.5; screw_rad=4.5/2; cutout_w=34; cutout_h=27; spout_angle=30; top_of_cutout=4.3; screw_dia=7; screw_height=top_of_cutout+screw_dia/2+6.25; height=top_of_cutout*2+cutout_h; module cylinder_body(){ difference(){ cylinder(heigh...
glb/cad_9af0fba601f6.glb
Create a Rebar Seat Chair Jack designed to support a reinforcement bar. Start with a circular base 73.025mm in diameter and 2.54mm thick. From this base, extend a tapered hollow cone upwards to a total height of 50.8mm. The cone should have a bottom outer diameter of 54.255mm and a top outer diameter of 41.27mm. Integ...
rebar_size = 3; height = 2.0; { assert(rebar_size == round(rebar_size) && rebar_size >= 2 && rebar_size <= 6, "rebar_size must be integer between 2 and 6"); rebar_diameter = 0.125*rebar_size; assert(height >= (2 * rebar_diameter + 0.25), "height must be sufficient to allow for rebar plus 1/4\""); asse...
glb/cad_78b76277ce3a.glb
Create a screw head cover consisting of a solid circular base and a tapered hollow ring. Start by creating a solid cylinder for the base with a diameter of 11.8mm and a height of 1.1mm. Centered on this base, construct a hollow ring with a total height of 2.4mm and a consistent inner diameter of 7.7mm. The outer wall o...
$fn = 100; $fa = 6; $fs = 1.75 / 2; module tapered_hollow_ring_with_bevel_and_base() { total_height = 2.4; inner_diameter = 7.7; wall_thickness = 1; bottom_outer_diameter = inner_diameter + 2 * wall_thickness; taper_height = 0.5; base_diameter = 11.8; base_height = 1.1; overlap = 0.2;...
glb/cad_016906ac2df6.glb
Create a UniFi E7 AP leg with a total thickness of 18mm. The base is a flat foot 160mm long. From this base, extend a vertical bracket 8mm thick that reaches a total height of 190mm (calculated as the 110mm leg length plus 75mm screw spacing plus a small offset). The foot should transition from a 3mm diameter rounded...
screw_hole_spacing = 75; screw_dia = 4.3; leg_length = 110; leg_thickness = 18; bracket_thickness = 8; foot_length = 160; e7_center_of_mass_offset = 20; cable_thickness = 5; $fn = 60; epsilon = 0.01; ankle_dia = 16; difference() { union() { hull() { toe_dia = 3; translate(...
glb/cad_4ee0c0fabc69.glb
Create a space-efficient bit holder consisting of a grid of 100 hexagonal cells arranged in 10 rows and 10 columns. Each individual cell is constructed as a hexagonal prism with a total height of 9mm and an outer diameter of approximately 8.66mm (calculated as $(6.35 + 2) / \sqrt{3} \times 2$). For each cell, create ...
eps = 0.001; bit_width = 6.35; bit_length = 7; thickness_bottom = 2; thickness_side = 1; notch = true; notch_width = 1; notch_height = 2; Nx = 10; Ny = 10; module single_bit(){ render() difference(){ cylinder(d = (bit_width+thickness_side*2)/sqrt(3)*2, h = bit_length+thickness_bottom, $fn=6); t...
glb/cad_0538d43712e9.glb
Create a rug cleat consisting of a thin rectangular base pad with a 5x5 grid of protruding spikes. The base pad should be 60mm by 60mm with a thickness of 0.86mm and have rounded corners with a 5mm radius. Position 25 spikes in a 5x5 grid on top of the pad, spaced 12mm apart from center to center. Each spike is a comp...
nx = 5; ny = 5; hb = 0.86; cr = 5; dxy = 12; d1 = 4; d2 = 2; hs = 8; osdir = [1,0]; ossor = [1,1]; tos = -1.2; hr = 0.7; $fn = 24; wx = nx*dxy; wy = ny*dxy; hwx = (nx-1)*dxy/2; hwy = (ny-1)*dxy/2; df = d1*1.5; kd = d1 - (d1-d2)*hr; kh = min(max(hr,0),1); translate([0,0,hb/2]) squilinder([wx,wy,hb],cr); for (xos...
glb/cad_0bd0fc5c1ad0.glb
Create a dust cap for an air coupling consisting of a protective cover attached to a retaining ring by a flexible strap. The cover is a multi-stage hollow vessel. Start with a decagonal cylinder 7.6mm in diameter and 25mm tall. On top of this, add a 2.5mm tall tapered section that expands from 7.6mm to 11.6mm in diam...
d1 = 7.2+0.4; d2 = 11.2+0.4; l1 = 25; l2 = 12; ltap = 2.5; tw = 1.5; ts = 1.0; ws = 4; ls = 120; tr = 2; lr = 3; dr = 16.2; fng = 10; fnr = 6; $fn = 100; difference(){ union(){ cylinder(d = d1+2*tw,h = l1+tw,$fn = fng); translate([0,0,l1-ltap]) cylinder(d1 = d1+2*tw,d2 = d2+2*tw,h = ltap,$fn = fng); tran...
glb/cad_055a836de038.glb
Create a valve seal consisting of two concentric cylindrical sections with a central hole. Start by creating a wide base cylinder with a diameter of 16mm and a height of 3mm. Centered on top of this base, add a second, narrower cylinder with a diameter of 12mm and a height of 6mm. Remove a central vertical bore from ...
od1 = 16; od2 = 12; id = 8; th = 3; $fn = 100; difference(){ union(){ cylinder(h = th, d = od1); cylinder(h = 2*th, d = od2); } cylinder(h = 5*th, d = id, center=true); translate([0,0,1]) cylinder(h = 2*th, d1 = id, d2 = od2-1.5); }
glb/cad_dfe9b10675dc.glb
Create a Low-Profile USB-A Male Insert by starting with a solid rectangular block measuring 12mm in width, 4.5mm in depth, and 9.5mm in height. Hollow out the center of this block by removing a smaller rectangular section measuring 11.2mm by 3.7mm by 9.5mm, leaving a wall thickness of 0.4mm on the sides and bottom. R...
$fn = 40; difference() { translate([0,0,0]){cube([12,4.5,9.5]);} translate([0.4,0.4,0]){cube([11.2,3.7,9.5]);} translate([1.5,0,0]){cube([2.5,0.4,8.5]);} translate([8,0,0]){cube([2.5,0.4,8.5]);} translate([1.5,4.1,1]){cube([2.5,0.4,7.5]);} translate([8,4.1,1]){cube([2.5,0.4,7.5]);} } difference() { translate([0.4,0...
glb/cad_d4fc9956d623.glb
Create a HOTO NEX O1 PRO Sleeve consisting of a main hollow cylinder and an attached side storage compartment. The main body is a hollow tube with an outer radius of 18.5mm, an inner radius of 17.5mm, and a total height of 136.5mm, centered vertically. Cut a circular hole with a radius of 7.5mm through the bottom wal...
$fn = 40; wt = 1; sdep = 32; bslotl = 48+sdep; bslotw = 7.5; lslotl = 8; lslotw = 2; rad = 17.5; dep = 135.5+sdep; usbcr = 7.5; bwt = 1; bsrad = 4.5; bsdep = dep-28; difference() { translate([0,0,0]){rotate([0,0,0]){cylinder(r = rad+wt, h = dep+wt, center=true);}} translate([0,0,1]){rotate([0,0,0]){cylinder...
glb/cad_c774902f7734.glb
Create a Simple Lipped Bathroom Plunger Tray by constructing a shallow circular base and a recessed interior. Start by creating a solid cylinder with a radius of 82mm and a height of 5mm. From this base, remove a smaller concentric cylinder with a radius of 80mm and a height of 3mm, positioned 2mm above the bottom surf...
$fn = 40; difference() { translate([0,0,0]){cylinder(h=5,r=82);} translate([0,0,2]){cylinder(h=3,r=80);} }
glb/cad_b51dd0e9abd6.glb
Create a Radxa Rock 5B+ Case consisting of a main body and a lid. For the body, create a rectangular enclosure with an outer footprint of approximately 108mm by 128mm and a height of 31mm. The walls should be 3.5mm thick. On the north, south, east, and west vertical walls, integrate a hexagonal grid pattern for venti...
include <BOSL2/std.scad> $fn = 50; heightOffset = 2.4+8+1+2+.2; xOffset = 15; yOffset = 14; boardh = 18 + heightOffset; boardx = 74; boardy = 100; boardholex = 49; boardholey = 93.7; boardholer = 1.15; boardholeouterr = 2.3; boardoffsetx = -0.2+1.5; boardoffsetz = 3.5; boardoffsety = 0; boardholeoff...
glb/cad_7623ba830871.glb
Create a GT2 pulley for a vacuum motorized agitator brush. The pulley should have 46 teeth and a toothed section width of 6.5mm. At the center, create a vertical hole for a motor shaft with a diameter of 3mm. Incorporate a captive hex nut trap with a flat-to-flat width of 5.7mm and a depth of 2.7mm, positioned at a h...
teeth = 46; profile = 12; motor_shaft = 3.0; m3_dia = 3.2; m3_nut_hex = 1; m3_nut_flats = 5.7; m3_nut_depth = 2.7; retainer = 0; retainer_ht = 1.2; idler = 1; idler_ht = 1.2; pulley_t_ht = 6.5; pulley_b_ht = 1.2; pulley_b_dia = 20; no_of_nuts = 1; nut_angle = 90; nut_shaft_distance = 1.2; additional_to...
glb/cad_5a68e4b697ae.glb
Create a vacuum cleaner storage attachment consisting of a hollow cylindrical sleeve and a triangular mounting hook. Start by creating a cylinder with an inner diameter of 36mm, an outer diameter of 44mm, and a height of 28mm. Cut a vertical slot 1mm wide through the cylinder wall to allow for clamping. On one side...
innerDia = 36; wall = 4; clr = 1; h = 28; nutDia = 7; screwDia = 3.5; screwHeadDia = 6; screwHeadH = 2; nutH = 2; $fn = 128; difference(){ union(){ cylinder(d=innerDia+2*wall, h=h); } union(){ cylinder(d=innerDia, h=h); translate([innerDia/2-wall,-clr/2,0]){ cube(size=[10,clr,h]); ...
glb/cad_0d28dc7df158.glb
Create a dust shield for a coffee grinder by constructing a composite cylindrical shell. Start with a primary cylinder 50mm in diameter and 25mm high. Attach a second, wider cylinder with a 55mm diameter and 20mm height, positioned so its base starts 5mm above the bottom of the first cylinder. Hollow out the center of ...
$fn=128; hTop = 25; hLower = hTop-5; thick = 3; difference(){ union(){ cylinder(d=50,h=hTop); translate([0,0,5]){ cylinder(d=55,h=hLower); } } union(){ cylinder(d=45,h=hTop-thick); translate([-27/2,-55/2,0]){ cube(size=[27,26,hTop]); } } }
glb/cad_1f9106e8e020.glb
Create a dust shield for a coffee grinder by constructing a tiered cylindrical vessel. Start with a base cylinder 50mm in diameter and 10mm high. Centered on top of this base, add a second cylinder with a diameter of 55mm and a height of 5mm, positioned so that its bottom sits 5mm above the base's bottom surface. Final...
$fn=128; hTop = 10; hLower = hTop-5; thick = 3; difference(){ union(){ cylinder(d=50,h=hTop); translate([0,0,5]){ cylinder(d=55,h=hLower); } } union(){ cylinder(d=45,h=hTop-thick); } }
glb/cad_946df555f0bc.glb
Create a gliding furniture pad by starting with a cylinder 29.5mm in diameter and 20mm in height. Shape the bottom of this cylinder into a convex dome by intersecting it with a sphere 45mm in diameter centered 17mm below the cylinder's base. From the center of the top face, remove a vertical hole consisting of two coax...
$fn = 100; difference() { intersection() { color ("Red") cylinder (d=29.5, h=20); translate([0,0,-17]) sphere (d=45); } translate([0,0,6]) union() { cylinder(h=5, d=4, center=true); cylinder(h=20, d=2, center=true); } for(i = [0:60:120]) { translate([0,0,0]...
glb/cad_eabf3a7eb22c.glb
Create a set of six locomotive wheel buttons based on the DRG Class 86, scaled at 1/50. Each button is a thin disc with a total thickness of 1.6mm. The main body of each wheel consists of a circular rim with an outer diameter of 17mm and a thickness of 0.6mm. For the first and sixth wheels, create a simple spoked whe...
$fn=120; N=0.088; T=0.025; W=0.063; D=0.023; z=25.4; n=N*z; t=T*z; w=W*z; d=D*z; s=7; nr=1.5; nd=0.8; for(i=[1:6]) translate([0,30*i,0]) { rad(i); *translate([0,0,0]) rad(4); translate([12,-15,0])nabe(); } module rad(x) { if(x==1||x==6) { speichenrad(850,7); } else if (x==2||x==5) { ...
glb/cad_fc5ec5aed4b6.glb
Create a Cup Holder Insert consisting of a top plate, a bottom plate, a flexible middle pad, and two axle pins. Create a top plate 158.5mm wide, 34.5mm deep, and 7.5mm thick. Subtract two large cylindrical cutouts (75mm diameter) for cups. Add six cylindrical screw bosses (7.5mm diameter) protruding from the top surfa...
wall = 2.6; zthick = 7.5; rot_top = 0; trans_top = zthick; trans_bot = 0; trans_bot_z = 0; trans_pad = 0; trans_pin = 50; rot_top = 180; trans_top = zthick; trans_bot = 25; trans_bot_z = wall; trans_pad = 75; trans_pin = 120; dotop = true; dobot = true; dopad = true; dopin = true; holepos = false; $fn = 128; eps...
glb/cad_c826e5f795c7.glb
Create two identical rectangular friction pads. Each pad should be a thin plate measuring 8mm in width, 34mm in length, and 0.3mm in thickness.
LIP_WIDTH = 10; LIP_OVERLAP = 2; ADJUST = 1; LIP = LIP_WIDTH - LIP_OVERLAP - ADJUST; THICK = 0.3; CAN_Y1=42/2; LENGTH = CAN_Y1*2-LIP_WIDTH - 2*ADJUST; shift = LIP_WIDTH + 2; cube([LIP,LENGTH,THICK]); translate([shift,0,0]){ cube([LIP,LENGTH,THICK]);}
glb/cad_fa132005b82a.glb
Create a Garbage Can and Lifting Lever set. First, construct the garbage can. Create a hollow container with a height of 70mm. The main body should be a rounded rectangular prism with a base of approximately 36mm by 36mm, expanding slightly at the top to 42mm by 42mm with a corner radius of 5mm. At the top of the can...
use <syms.scad> use <roundedcube.scad> mode = "trashPrint"; AS_U=12; AS_V=3; W=2; RZ=13; ATT_DIST=10; ATT_V=4; ATT_H=2; HOLE_DIST=4; HOLE_Y=1; HOLE_D=1; P_DIST=0.7; HOLDER_THICKNESS=4; HOLDER_Y=3; CAN_X0=36/2; CAN_Y0=36/2; CAN_X1=42/2; CAN_Y1=42/2; CAN_X2=CAN_X1+W/2; CAN_Y2=CAN_Y1+W/2; CAN_R=5; CAN_H=70; LIP_THI...
glb/cad_1c02c42f42a4.glb
Create a lifting lever for a toy garbage truck. Start by creating a central sleeve with an inner diameter of 17.7mm and an outer diameter of 21.7mm, and a total height of 10mm. This sleeve should be a hollow cylinder. Extend a rectangular lever arm from the side of the sleeve. The arm should be 40mm long, 10mm wide, a...
use <roundedcube.scad> $fn = 64; tiny = 0.001; gap = 0.2; inner_d = 17.5 + gap; thick = 4; outer_d = inner_d + thick; length = 10; number_flutes = 8; flute_pos_d = 15; flute_d = 4; lever_length = 40; lever_width = length; lever_thick_max = length; lever_thick_min = 4; lever_D = 3*lever_length; module rounded_cylin...
glb/cad_4754aa1d79f2.glb
Create a hygrometer stand by starting with a base rectangular block measuring 52mm wide, 40mm deep, and 5mm thick. On top of this base, center a rounded cube with a width of 52mm, a depth of 30mm, and a height of 58mm, using a corner radius of 3mm. To create the mounting space, carve out a cylindrical hole with a dia...
use <MCAD/boxes.scad> $fn=50; innerDia = 43; partHeight = 55; hygangle = 75; hygroStand(); module hygroStand() { difference() { union() { translate([-52/2,14,-29]) cube([52,40,5]); translate([0,2,0]) roundedCube([52,30,58], 3, true, true); } translate([0...
glb/cad_e36fe397da06.glb
Create a customizable clothes button. Start by creating a main cylindrical body with a diameter of 20mm, a height of 3mm, and a 60-facet resolution to ensure a smooth circular profile. On the top face, create a concentric circular recess centered on the button. This recess should have a diameter of 15mm (calculated a...
button_diameter = 20; button_heigh = 3; button_face_number = 60; button_rounded = 0; hole_number = 4; hole_diameter = 2; hole_distance = 4; recess = true; recess_depth = 1; recess_thickness = 5; recess_rounded = 0; recess_custom_face_number = false; recess_face_number = 6; hole_fn = 16; epsilon = 0.01; rou...
glb/cad_f62d911578f8.glb
Create a Fidlock Bottle Dryer consisting of four identical arms radiating from a central point. Each arm is formed by the convex hull of a 25mm x 25mm x 8mm centered cube, positioned 4mm above the base plane, and a cylinder with a 10mm diameter and 2mm height located 90mm from the center. Arrange these four arms by rot...
$fn=100; module base(){ for(i=[0:4]){ rotate([0,0,i*90]){ hull(){ translate([0,0,4])cube([25,25,8],center=true); translate([90,0,0]){ cylinder(h=2,d=10); } } } } } difference(){ base(); translate...
glb/cad_d43abb59b84a.glb
Create a Fidlock Bottle Dryer consisting of a vertical spine with a base and two hinge mounts. Start by creating a base that is a hull of a 35mm diameter cylinder with a height of 5mm and a rectangular block measuring 50mm by 25mm by 5mm. From this base, extend a vertical spine that is a hull of several cylinders: two ...
$fn=200; module hinge(){ difference(){ union(){ hull(){ cylinder(h=5,d=18,center=true); translate([15,0,-1.]) cube([1.5,25,5],center=true); } hull(){ cylinder(h=5,d=18,center=true); translate([0,0,-3]) cylin...
glb/cad_41c7f63c33f8.glb
Create a Fidlock Bottle Dryer consisting of a vertical mounting plate with two protruding arms. Start with a central vertical plate that is 4mm thick, 25mm wide, and 84mm tall. The plate has rounded ends with a radius of 12.5mm. At the top and bottom of the plate, create two identical hinge arms. Each arm is formed b...
$fn=200; module hinge(){ difference(){ union(){ hull(){ cylinder(h=5,d=18,center=true); translate([15,0,-1.]) cube([1.5,25,5],center=true); } hull(){ cylinder(h=5,d=18,center=true); translate([0,0,-3]) cylin...
glb/cad_1084f3fdeb1d.glb
Create a TODO list bookmark with a thickness of 1mm. Start by constructing a base plate that is 18mm wide and 262mm long. The top of the plate should be rectangular, while the bottom should taper into a semi-circle with a diameter of 9mm. Within this plate, carve out a central recessed area that is 10mm wide and 250m...
$fn=32; longueur=250; carre=10; marge=4; largeur=carre+marge*2; espace=16; epaisseur=1; module marquePageBase(long=longueur, larg=largeur, ep=epaisseur){ hull(){ cube([larg, long, ep]); translate([larg/2,-larg/2]) cylinder(ep, d=larg/2); } } module marquePage(){ difference(){ marq...
glb/cad_b2f10643a3a6.glb
Create a "Last Rescue Buttons" card, which is a credit-card-sized holder containing spare buttons of three different sizes. Start by creating a flat rectangular base plate measuring 82mm by 50mm with a thickness of 1mm. Within this plate, create recessed circular slots to hold the buttons. Position three large buttons...
$fn = 60; translate([0,0,0]) karta(); module karta() { translate([-30.0,0.0,-0.5]) cube([1.0,50,0.4],center=true); translate([-13.0,0.0,-0.5]) cube([1.0,50,0.4],center=true); translate([0.0,0.0,-0.5]) cube([82,1.0,0.4],center=true); translate([7.0,0.0,-0.5]) cube([1.2,50,0.4],center=true); translate([29.0...
glb/cad_18097311c7fe.glb
Create a Drag Chain link with a width of 40mm, length of 40mm, and height of 15mm. The main body is a rectangular block with rounded ends. The top and bottom faces are modified by removing material to create a nested, interlocking structure. Specifically, create a central cutout that allows the link to bend. The oute...
width= 40; length=40; height=15; max_angle = 50; under_angle=0; over_angle=45; inner_axis=1; closed=0; clip=1; tolerance = 0.2; toothpick = 2.1; multicolor_block=0; mcb_height=2; toggle_angle=1; copies=1; module outline(width, length, height, radius, l1, angle) { y_ofs = l1 / 2; t = radius / 2; d...
glb/cad_4855d5d1e4fa.glb
Create a hex bit box consisting of a base and a lid connected by a knuckle hinge. For the base, create a rectangular block with an overall thickness of 2.5mm. The main body should be 127.5mm wide and 62.5mm deep. Within this base, create a grid of 112 hexagonal holes (16 across and 7 deep) to hold 4mm driver bits. Ea...
sides = true; lid = true; base_extension = true; holes_x = 16; holes_y = 7; overall_thickness = 2.5; side_height = 18; base_extension_y = 20; hole_depth = 14; bit_size = 4.51; bit_tolerance = 10; hole_spacing_in = 7.5; hole_spacing_out = 0.5; base_ext_y_len = base_extension ? base_extension_y : 0; base_z =...
glb/cad_801ea1911cfb.glb
Create a wall mount for circular objects. Start with a rectangular base plate 20mm wide, 60mm high, and 5mm thick. Centered on this plate, construct a cylindrical clip with an outer diameter of 52mm and an inner diameter of 42mm, maintaining a wall thickness of 4mm. The clip should be 5mm thick and integrated into the ...
create_drill_holes = 2; overall_thickness = 5; clip_thickness = 4; mount_inside_diameter = 42; mount_width = 20; mount_height = 60; $fn = 50; centerline = (mount_height - overall_thickness) / 2; drill_dia = overall_thickness * 1.25; mount_od = mount_inside_diameter + (overall_thickness * 2); rotate([90,0,0]) { ...
glb/cad_92eca81d728d.glb
Create a scalable bushing or washer by constructing a flat cylinder with an outside diameter of 30mm and a thickness of 3.5mm. Center a circular hole through the entire height of the object with an inside diameter of 3.175mm. Ensure the outer circular profile is rendered with a resolution of 50 facets.
inside_diameter = 3.175; outside_diameter = 30; overall_thickness = 3.5; $fn = 50; difference() { cylinder(d = outside_diameter,h = overall_thickness); translate([0,0,-2]) cylinder(d = inside_diameter,h = overall_thickness + 2); }
glb/cad_db12e6930d1b.glb
Create a tool cup with an optional parts bin. The main body is a rectangular container with an overall height of 101mm and wall thickness of 1mm. The exterior dimensions are 63mm in width and 63mm in depth. Inside the main body, create three compartments: two small bins at the front, each 30mm wide and 20mm deep, and...
generate_parts_bin = 1; parts_bin_height = 2/7; small_bin_width = 30; small_bin_length = 20; model_height = 100; overall_thickness = 1.0; cutaway = 1; cutaway_ratio = 1/3; ext_x = small_bin_width * 2 + 3 * overall_thickness; ext_y = small_bin_length * 2 + 3 * overall_thickness; ext_z = model_height + overall_th...
glb/cad_4992f57afefe.glb
Create a skipping rope handle that is 125mm long. The outer shape is a tapered cylinder with rounded ends. The base is a cylinder with a diameter of 25mm and a height of 20mm. From this base, the handle tapers upward to a top diameter of 15mm over the remaining length. Apply a 3mm fillet radius to all outer edges and c...
$fn = $preview ? 15 : 50; embossed_text = ""; length = 125; small_length = 20; _diameter0 = 25; _diameter1 = 18; _diameter2 = 15; corner_radius = 3; big_hole_diameter = 15; big_hole_depth = 15; small_hole_diameter = 7; module skipping_rope_handle_out(d0, d1, d2) { minkowski() { union() { ...
glb/cad_7add9abbb4f2.glb
Create an Altoids Nest Case consisting of a main body and a lid. For the body, construct a rounded rectangular box with outer dimensions of 104mm in width, 190mm in length, and 20mm in height, using a corner radius of 16mm. Hollow out the center to create a storage compartment measuring 100mm by 186mm with a wall thick...
$fn= 100; radius=14; length=62 * 3; width=100; height=20; ident=5; wll_thck = 2; module rounded_corner_box(length, width, height, cnr_rd){ cnr_dmtr = 2*cnr_rd; minkowski(){ cube([width-cnr_dmtr, length-cnr_dmtr, height], center=true); cylinder(h=.1, r=cnr_rd...
glb/cad_07a48227cebf.glb
Create an M18 to M22 water tap adapter by constructing a thick ring with internal and external threading. Start with a cylinder that has an outer diameter of 21.2mm and a height of 3mm. Use a 30-facet resolution for the circular geometry. Remove a central cylindrical core with a diameter of 18mm and a height of 40mm to...
include <ISOThread.scad> thread_in_pitch(18,3,1); thread_out_pitch(22,3,1); difference() { cylinder(d=21.2,h=3,$fn=30); cylinder(d=18,h=40,center=true,$fn=30); }
glb/cad_cbde7d6d6c0a.glb
Create an Amiga 3000D power button consisting of a vertical rod, a mounting plate, and a tapered button head. Start by creating a square rod with a cross-section of 5.5mm by 5.5mm and a length of 176mm. At the top of this rod, center a rectangular mounting plate with a width of 25.7mm, a length of 12.8mm, and a thick...
$fn = 100; rod_length = 176; rod_size = 5.5; plate_width = 25.7; plate_length = 12.8; plate_thickness = 2; plate_round_radius = 0.75; button_bottom_width = 22.7; button_top_width = 22; button_bottom_len = 8.8; button_top_len = 8.4; button_height = 11; button_round_ra...
glb/cad_d4c365552209.glb
Create a False Screw 3M Command Strip Mount consisting of a rectangular base and a separate pin. First, create the base as a rounded rectangular slab measuring 18mm by 60mm with a thickness of 2mm. In the center of this base, create a tapered hexagonal hole that allows a pin to be inserted from the rear. Construct t...
pin_diameter = 3; screw_height = 4.5; screw_head = 7.5; mount_base = [18, 60, 2]; split_pins = true; solid_piece = false; removable_pin = false; pin_only = false; show_text = true; pin_text = "+"; pin_height = screw_height - 3; radius =.5+0; mb_x = mount_base[0] - radius; mb_y = mount_base[1] - radius; mb_z = m...
glb/cad_a2c4982162a0.glb
Create a power button bracket consisting of a base plate and a perpendicular vertical wall, both with a material thickness of 1.5mm. The base plate is an L-shaped flat piece formed by two intersecting rectangles: one measuring 51mm by 18mm and another measuring 10mm by 79mm, joined to create a total footprint of 51mm b...
base_long = 79; base_short = 51; wall_height = 30; wall_width = 44; hole_diameter = 3.6; square_hole_size = 6.5; tab_width = 15; tab_height = 8; tab_offset = 20; vertical_wall_offset = 0; thickness = 1.5; module base_plate() { difference() { union() { cube([base_short, thickness, 18]); ...
glb/cad_e21783d8e51c.glb
Create an L-shaped power button bracket consisting of a horizontal base plate and a vertical wall. The base plate is a rectangular slab measuring 51mm by 79mm with a thickness of 1mm. In this base plate, create a square cutout of 6.5mm by 6.5mm centered 17.5mm from the left edge and 6.5mm from the front edge. Additiona...
base_long = 79; base_short = 51; wall_height = 30; wall_width = 44; hole_diameter = 3.6; square_hole_size = 6.5; tab_width = 15; tab_height = 8; tab_offset = 20; vertical_wall_offset = 3; module base_plate() { difference() { union() { cube([base_short, 1, 18]); cube([10,1,base_long...
glb/cad_3906d07327a9.glb
Create a Bang Dice game insert as a rectangular block measuring 181mm x 83mm x 30mm with a wall thickness of 0.8mm. Subtract the following volumes from the block to create storage compartments: 1. A main card deck holder measuring 89mm x 64mm x 28mm, positioned 0.8mm from the left and bottom edges. Within this holder...
wall_thickness = 0.8; token_thickness = 1.6; standard_margin = 0.5; box = [181, 83, 30]; card = [89, 64, 28]; card_finger_slot = [20, 0, card.z]; mini_card = [69, 45, 10]; die = [18, 18, 18]; die_box = [18*3, 18*3, 18*3]; arrow = [15, 40, token_thickness]; arrow_count = 10; arrow_box = [arrow.y, arrow.z * arrow_count,...
glb/cad_0a7f4243d0f6.glb
Create a cable chain end piece. Start with a base that combines a semi-circular plate and a rectangular section. The main body consists of two mirrored side walls, each 16mm wide and 32mm high, connected by a central 16mm by 20mm by 3mm rectangular block. Within these side walls, create two vertical cylindrical cutou...
$fn = 50; ChainLinkEnd2(); module ChainLinkEnd2() { difference() { union() { translate([36, 32, 0]) rotate([0, 0, 180]) ChainLink(); translate([15, 0, 0]) cube([36-20, 32, 3]); translate([15+36-20, 13+3, 0]) cylinder(h=3, d=32); translate([28, 0, 8]) rotate...
glb/cad_289668cd676c.glb
Create a cable chain end piece. Start with a base link structure consisting of two outer plates connected by a central block. Each outer plate is a 20mm by 16mm rectangle with a 16mm diameter semi-circle on the outer edge. The central block is a 16mm by 20mm by 3mm rectangular prism. Within these plates, create two al...
$fn = 50; ChainLinkEnd1(); module ChainLinkEnd1() { difference() { union() { ChainLink(); translate([15, 3, 0]) cube([36, 26, 3]); translate([15+36, 13+3, 0]) cylinder(h=3, d=26); translate([28, 3, 8]) rotate([-90, 0, 0]) cylinder(h=3, d=16); tr...
glb/cad_ba055c768286.glb
Create a cable chain link consisting of two identical side plates connected by a central spacer. Each side plate is a 20mm wide by 16mm high rectangle with a 16mm diameter semi-circle centered on the outer vertical edges, creating a rounded end. Within each side plate, center a circular hole with a 17mm diameter and ...
$fn = 50; ChainLink(); module ChainLink() { difference() { union() { ChainLinkSide(); translate([0, 32, 16]) rotate([-180, 0, 0]) ChainLinkSide(); translate([10, 6, 0]) cube([16, 20, 3]); } translate([8, 6, 8]) rotate([-90, 0, 0]) cylinder(h=20, d=17); ...
glb/cad_4391abbd1fa2.glb
Create a cable chain mount for a CNC router. Start with a base rectangular block measuring 17mm wide, 42mm deep, and 14mm high. Attached to the top of this base, add a rectangular section on the left side that is 8mm wide, 42mm deep, and 35mm high. On top of that section, add a horizontal arm that is 8mm wide, 90mm lon...
$fn=150; rotate([0, -90, 0]) LimitZ(); module LimitZ() { difference() { union() { cube([17, 42, 14]); translate([0, 0, 14]) cube([8, 42, 35]); translate([0, 0, 14+35]) cube([8, 90, 12]); translate([0, 90-18, 14+35]) cube([18, 18, 12]); } tran...
glb/cad_35321f535dfd.glb
Create a step clamp for a CNC workbed. Start with a base rectangular block 44mm long, 20mm wide, and 4mm high. On top of this base, centered along the width, add a second rectangular block 38mm long, 20mm wide, and 6mm high, starting 2mm from the left edge. To create the clamping slot, remove a central rectangular vol...
$fn = 50; StepClamp(); module StepClamp() { difference() { union() { translate([2, 0, 0]) cube([42, 20, 4]); translate([0, 0, 2]) cube([43-5, 20, 6]); translate([43.5, 0, 4]) rotate([-90, 0, 0]) cylinder(h=20, d=1); translate([0.5, 0, 8]) rotate([-90, 0, 0])...
glb/cad_d3c4e3709d67.glb
Create a step clamp for 3/4" material. Start with a base rectangular block measuring 38mm in width, 6mm in height, and 20mm in depth. On top of this base, centered along the width, add a second rectangular block measuring 36mm wide, 2mm high, and 20mm deep, leaving a 1mm margin on each side. To create the clamping hea...
$fn = 50; StepClamp34(); module StepClamp34() { difference() { union() { translate([0, 0, 0]) cube([38, 6, 20]); translate([2, 6, 0]) cube([36, 2, 20]); translate([0.5, 0, 0]) cylinder(h=20, d=1); translate([2, 6, 0]) cylinder(h=20, d=4); transla...
glb/cad_7144040754b5.glb
Create a step block for a clamping set. Start with a base rectangular prism measuring 22mm in length, 20mm in width, and 8mm in height. Stack three additional rectangular prisms on top of this base, each 22mm long, but with decreasing widths and increasing heights. The first additive layer should be 15mm wide and 4mm h...
$fn = 50; StepBlock(); module StepBlock() { difference() { union() { cube([22, 5*4, 8]); translate([0, 0, 8]) cube([22, 5*3, 4]); translate([0, 0, 12]) cube([22, 5*2, 4]); translate([0, 0, 16]) cube([22, 5*1, 4]); } translate([0, 5*4-4.25, 8]...
glb/cad_1d5c57af064f.glb
Create a Genmitsu 3018 Pro E-Stop Mount. Start with a rectangular base measuring 63mm in length, 20mm in width, and 3mm in thickness. At one end of this base, center a cylindrical protrusion with a diameter of 20mm and a height of 3mm. On the top surface of the base, add a rectangular block measuring 33mm in length, ...
$fn=150; EStop(); module EStop() { difference() { union() { translate([10, 0, 10]) rotate([-90, 0, 0]) cylinder(h=3, d=20); translate([10, 0, 0]) cube([30+10+30+3, 3, 20]); translate([10+30+10, -30, 20-3]) cube([30+3, 30, 3]); translate([10+30+10+30, -30, 20...
glb/cad_710d625f1d5c.glb
Create a cushion foot for a CNC router by starting with a solid block defined by a polygon base. The outer profile is a 2D shape with vertices at [0,0], [0,29], [28,29], and [39,0], which is then extruded to a total height of 23.5mm. From this volume, remove several rectangular sections to create mounting slots: firs...
$fn=150; Foot1(); module Foot1() { difference() { linear_extrude(13.5+6+4) polygon([ [0,0],[0,25+4], [20+8,25+4], [35+4, 10.5+8],[35+4, 0] ]); translate([4, 4, 4+6]) cube([20, 25.0, 13.5]); translate([4, 4, 4]) cube([2...
glb/cad_c513f6993c70.glb
Create a cushion foot for a CNC router by starting with a base shape defined by a polygon with vertices at [0,0], [0,39], [18.5,39], and [29,20] then [29,0], extruded to a total height of 23.5mm. From this volume, remove several rectangular sections to create mounting voids: a 25mm by 20mm by 13.5mm block positioned ...
$fn=150; Foot2(); module Foot2() { difference() { linear_extrude(13.5+6+4) polygon([ [0,0],[0,35+4], [10.5+8,35+4], [25+4, 20+8],[25+4, 0] ]); translate([4, 4, 4+6]) cube([25.0, 20, 13.5]); translate([4, 4, 4]) cube([1...
glb/cad_bfe68b60641d.glb
Create a limit switch mount for a CNC router consisting of a main arm and a rail attachment. Start with a main rectangular arm measuring 81mm in length, 10mm in width, and 6mm in height. At one end of this arm, integrate a rail mounting section that is 20mm long, 10mm wide, and 6mm high. This section should feature a s...
$fn=150; translate([0, 0, 6]) rotate([0, 180, 0]) LimitXRight(); module LimitXRight() { difference() { union() { cube([61+1+20, 10, 6]); translate([0, -9, 0]) cube([20, 10, 6]); translate([10, -9, 0]) cylinder(h=6, d=20); translate([10-3, -18, -4]) cube([6, ...
glb/cad_77a8d041eba3.glb
Create a limit switch mount for a CNC router consisting of a main rectangular arm and a mounting block for an 8020 rail. The main arm is a rectangular prism measuring 81mm in length, 10mm in width, and 6mm in height. At one end of this arm, add a vertical mounting block that is 20mm wide, 10mm deep, and 6mm high. Int...
$fn=150; translate([0, 0, 6]) rotate([0, 180, 0]) LimitXLeft(); module LimitXLeft() { difference() { union() { cube([61+1+20, 10, 6]); translate([0, 10, 0]) cube([20, 10, 6]); translate([10, 10+9, 0]) cylinder(h=6, d=20); translate([10-3, 10, -4]) cube([6, 1...
glb/cad_0e681ca726c5.glb
Create a Y Limit Lever mount for a CNC router. Start with a rectangular base block measuring 40mm in length, 16mm in width, and 12mm in height. Centered on the top surface of this base, add a smaller rectangular protrusion that is 15mm long, 8mm wide, and 4mm high, positioned 15mm from the front edge and 4mm from the s...
$fn = 50; LimitYLever(); module LimitYLever() { difference() { union() { cube([40, 16, 12]); translate([15, 4, 12]) cube([15, 8, 4]); } translate([8, 8, 0]) cylinder(h=12, d=8); } }
glb/cad_5a9fb8bdfc33.glb
Create a Y Limit Switch Mount consisting of a main L-shaped bracket. Start with a rectangular base measuring 28mm in length, 20mm in width, and 3mm in thickness. Attached to the end of this base, add a vertical mounting block that is 6mm long, 20mm wide, and 12mm high. To create a slot tab, add a small rectangular exte...
$fn = 50; translate([4, 0, 28]) rotate([0, 90, 0]) LimitYMount(); module LimitYMount() { difference() { union() { cube([28, 20, 3]); translate([22, 0, 0]) cube([6, 20, 12]); translate([18, 7, -4]) cube([10, 6, 4]); } translate([8, 10, 0]) cylinder(h=3, ...
glb/cad_1a1d331958eb.glb
Create a vacuum hose adapter consisting of a tiered cylindrical shell with a hollow center. Start by creating a base cylinder 22mm high with a bottom diameter of 42mm and a top diameter of 41.5mm. On top of this base, add a second cylinder 5mm high that tapers from a bottom diameter of 41.5mm to a top diameter of 33mm....
$fn=150; VacAdapt(); module VacAdapt() { difference() { union() { cylinder(h=22, d1=38+4, d2=37.5+4); translate([0, 0, 22]) cylinder(h=5, d1=37.5+4, d2=33); translate([0, 0, 27]) cylinder(h=20, d=33); translate([0, 0, 27+20]) cylinder(h=3, d1=33, d2=31); ...
glb/cad_35de72321564.glb
Create a Radius Gauge for Calipers. Start with a main body that is 10mm thick. The central section is a rectangular block 60mm long and 20.3mm wide (calculated as 16mm caliper width plus 2mm tolerance and 2mm side walls on each side). This block contains a longitudinal cutout 60mm long, 16.3mm wide, and 3.8mm deep to a...
interior_angle=30; maximum_radius=40; caliper_support_length=60; total_thickness=10; caliper_side_wall=2; arm_width=10; minimum_radius=0; caliper_width=16; caliper_thickness=3.6; caliper_slide_width=3.8; caliper_slide_thickness=2; caliper_slide_tip_width=2; caliper_plate_width=7; caliper_plate_depth=2; cl...
glb/cad_d3aefae1b009.glb
Create a keycap for a 3x6 keyboard. Start with a main body shaped as a rounded cube with a width of 17mm, a depth of 16mm, and a height of 2mm, using a corner radius of 2mm. Centered on the top surface, extrude the letter "Q" by 0.2mm. Below the main body, add a skirt that is 0.5mm high. This skirt should be a rounded...
$fs = 0.1; $fa = 0.1; keycap_width = 17.0; keycap_depth = 16.0; keycap_height = 2.0; keycap_r = 2.0; keycap_skart_height = 0.5; keycap_skart_thin = 1.0; backlight_position_north = true; thin_spot_width = 8.0; thin_spot_depth = 1.0; thin_spot_height = 0.8; text_extrusion_height = 0.1; font="Intel Mono Nerd Font Sans...
glb/cad_53dcec0c5d13.glb
Create a keycap for a 3x6 keyboard. Start with a main body that is a rounded cube measuring 17mm wide, 16mm deep, and 2mm high, with a corner radius of 2mm. At the base of this body, add a thinner skirt that is 0.5mm high, 17mm wide, and 16mm deep, with the same 2mm corner radius, but with a 1mm thick wall. On the top...
$fs = 0.1; $fa = 0.1; keycap_width = 17.0; keycap_depth = 16.0; keycap_height = 2.0; keycap_r = 2.0; keycap_skart_height = 0.5; keycap_skart_thin = 1.0; text_size = 6; text_extrusion_height = 1; font="Intel Mono Nerd Font Sans:style=Medium"; symbol_font="IntoneMono Nerd Font Propo:style=Medium"; bump = false; rota...
glb/cad_a36340f271fd.glb
Create a keycap for a 3x6 keyboard with a main body measuring 17mm wide, 16mm deep, and 2mm high. The body should be a rounded cube with a corner radius of 2mm. In the center of the top surface, create a shallow circular depression with a radius of 7mm. At the base, add a skirt that is 0.5mm high and 1mm thick, follow...
$fs = 0.1; $fa = 0.1; keycap_width = 17.0; keycap_depth = 16.0; keycap_height = 2.0; keycap_r = 2.0; keycap_skart_height = 0.5; keycap_skart_thin = 1.0; text_size = 6; symbol_size = 6; text_extrusion_height = 0.7; font="Intel Mono Nerd Font Sans:style=Bold"; symbol_font="IntoneMono Nerd Font Propo:style=Bold"; bump...
glb/cad_633e5dc64271.glb
Create a low-profile rectangular keycap for a 3x6 keyboard. The main body is a rounded cube with a width of 25.5mm, a depth of 16mm, and a height of 2mm, featuring a corner radius of 2mm. The base of the keycap consists of a thinner skirt that is 0.5mm high with a wall thickness of 1mm. In the center of the top surfac...
$fs = 0.1; $fa = 0.1; keycap_width = 25.5; keycap_depth = 16.0; keycap_height = 2.0; keycap_r = 2.0; keycap_skart_height = 0.5; keycap_skart_thin = 1.0; text_size = 5; text_extrusion_height = 0.9; font="Intel Mono Nerd Font Sans:style=Medium"; symbol_font="IntoneMono Nerd Font Propo:style=Medium"; bump = false; ro...
glb/cad_a55440474cc9.glb
Create a keycap for a 3x6 keyboard with a main body that is a rounded cube measuring 17mm wide, 16mm deep, and 2mm high, with a corner radius of 2mm. Attached to the bottom is a thinner skirt, also a rounded cube with a 2mm radius, measuring 17mm by 16mm with a height of 0.5mm and a wall thickness of 1mm. On the top s...
$fs = 0.1; $fa = 0.1; keycap_width = 17.0; keycap_depth = 16.0; keycap_height = 2.0; keycap_r = 2.0; keycap_skart_height = 0.5; keycap_skart_thin = 1.0; backlight_position_north = true; thin_spot_width = 8.0; thin_spot_depth = 1.0; thin_spot_height = 0.8; text_size = 5; symbol_size = 5; text_extrusion_height = 0.9; ...
glb/cad_703b6a034c9b.glb
Create a Rotass Dispenser Accessories Organizer consisting of a rectangular tray and a matching cover. The main tray is a rectangular block 122mm wide, 83mm deep, and 27mm high, with the corners slightly rounded. Inside this tray, carve out several storage compartments: a large rectangular slot measuring 39mm by 26.5mm...
$fn=24; *union() { difference() { translate([2,-1,1/128]) linear_extrude(11) square([118,85]); linear_extrude(10) square([122,83]); rotate([0,45,0]) cube([18,500,18],center=true); } knobs(dia=1.5); } difference() { translate([0,0,-17]) linear_extrude(27) offset(r=2) offset(r=-2) squ...
glb/cad_5bae38404701.glb
Create a Gaggia Classic Pump OPV Boot by constructing a main vertical cylinder with a height of 20.75mm and a diameter of 15mm. Bore a central hole through the entire length of this cylinder with a diameter of 3.25mm. From the bottom of the main cylinder, extend a smaller horizontal cylinder protruding outwards. This p...
$fn = $preview ? 0 : 100; inner_diameter=9; difference(){ union(){ difference(){ cylinder(20.75,7.5,7.5); translate([0,0,4])rotate([90,0,0])cylinder(18,1.625,1.625); } translate([0,0,4])rotate([90,0,0])difference(){ union(){ cylinder(18,3...
glb/cad_689d15a7112e.glb
Create a wire spool under-shelf hanger by starting with a solid rectangular block measuring 40.3mm in width, 170mm in length, and 7.5mm in height. Carve out a central rectangular channel from the top of the block to create a U-shaped profile. This channel should be 15mm wide and 5mm deep, centered along the length of t...
difference(){ cube([(36.3+2+2),170,(3.5+2+2)],false); translate([2,-10,2]){ cube([(36.6),190,(3.8)],false); } translate([12.65,-10,4]){ cube([(15),190,(5)],false); } }
glb/cad_b3aa0f3bb86e.glb
Create a bottle cap with hose barbs by starting with a standard PCO 1810 cap base. From the top center of the cap, extend a vertical cylindrical hose barb with a total height of 16mm and a diameter of 3.1mm. Along the length of this barb, add three concentric rings to create a grip for tubing; position the first ring a...
$fn = $preview ? 0 : 100; include <std.scad> include <bottlecaps.scad> difference(){ pco1810_cap(); translate([0,0,-20])cylinder(40,1.625,1.625); translate([0,10,-20])cylinder(40,1.625,1.625); } translate([0,0,0])difference(){ union(){ cylinder(16,3.1,3.1); translate([0,0,16-2.2])cylin...
glb/cad_86db849f5dca.glb
Create a bottle cap with hose barbs. Start with a standard PCO 1810 bottle cap base. On the top surface of the cap, center a primary vertical cylinder with a height of 16mm and a diameter of 3.1mm. To create the barb effect on this cylinder, add three smaller stacked cylinders on top of it, each with a diameter of 3.45...
$fn = $preview ? 0 : 100; include <std.scad> include <bottlecaps.scad> difference(){ pco1810_cap(); translate([-5,-5,-20])cylinder(40,1.625,1.625); translate([5,5,-20])cylinder(40,1.625,1.625); translate([-5,5,-20])cylinder(40,1.625,1.625); translate([5,-5,-20])cylinder(40,1.625,1.625); } translat...
glb/cad_50b620383990.glb
Create a circular button with a flat back. The main body is a cylinder with a diameter of 20.1mm. Around the outer edge, add a raised rim that is 2.1mm high and 2.1mm wide, featuring a chamfer of 0.9mm. The center of the button consists of a recessed circular plate. This plate has a height of 2.1mm and is designed to...
button_diameter=20.1; rim_height=2.1; rim_width=2.1; rim_chamfer=0.9; plate_ha=1.8; plate_hi=2.1; holes_number=4; hole_plate_h=2.1; holes_size=1.6; hole_distance=2.9; $fn=48; module ring(r,R){ rotate_extrude() translate([R,0,0]) circle(height); } module arc_section(n, r, ha, dx, dy){ angl...
glb/cad_7caeb05dbde7.glb
Create a Coffee Gaggia Classic Primer Valve Plug consisting of a central cylindrical body and a protruding top post. Start by creating a main cylinder with a diameter of 5.56mm and a height of 6mm. On the bottom face of this cylinder, attach a hemisphere with a radius of 2.5mm, centered on the base. On the top face of ...
$fn = $preview ? 0 : 100; union(){ union(){ translate([0,0,2.5-2.5])cylinder(9.41-1.52-6.33+2.5+.5,3,3); cylinder(9.41-1.52-6.33+2+.5+2+2,1,1); } sphere(2.5); }
glb/cad_b0111e756137.glb
Create a flashlight handle consisting of a main cylindrical grip and an attached hook. Start with a cylinder 20mm in diameter and 80mm in length. Hollow out the center of this cylinder to create a wall thickness of 1.6mm. On the exterior surface of this cylinder, carve a diamond-shaped lattice pattern consisting of 5mm...
h_dia = 20; h_length = 80; diamond_size = [5,5]; r2 = 1.41421356237; wall_th = 1.6; hook_d1 = 40; hook_th = 2; hook_ledge_th = 4; finger_gap = 20; bar_th = 4; $fn=80; difference(){ cylinder(d=h_dia, h = h_length, center = true); scale([1,3,1])intersection(){ cylinder(d=h_dia-2*wall_th, h = h_lengt...
glb/cad_6305b3fa6d6c.glb
Create a cable hook with a total thickness of 4mm. Start by forming a flat, elongated base loop by connecting two cylinders of 50mm diameter centered at (20, -60, 0) and (-20, -60, 0) using a convex hull. From the center of this base, extend a narrowing neck forward by connecting a 20mm diameter cylinder at (0, -40, 0)...
$fn = 30; difference() { union() { hull() { translate([20,-60,0]) cylinder(d=50,h=4,center=true); translate([-20,-60,0]) cylinder(d=50,h=4,center=true); } hull() { translate([0,-40,0]) cylinder(d=20,h=4,center=true); translate([0,-10,0]) cylinder(d=10,h=4,center=true); ...
glb/cad_af72fc28d8fa.glb
Create a Custom Aeropress Cap consisting of a central disc and an outer support ring with locking tabs. Start with a central cylinder with a radius of 31.5075mm and a height of 4mm. Subtract a pattern of holes from this disc; for the "classic" layout, create a mirrored grid of circular holes with a radius of 1.5mm, s...
include <2dgraph.scad> hole_type = "classic"; center_radius = 31.5075; number_of_supports = 16; angle_between_supports = 360/number_of_supports; height_as_measured = 16.55; tab_height = 2.5; tab_width = 12.7; tab_depth = 5.05; hex_walls = 1; hole_r = 6; nozzles = false; full_height_hex = false; super_base = false; i...
glb/cad_4bf3d9333f54.glb
Create a cable clip with a total height of 6mm. The main body is formed by a continuous, winding path that creates a curved, open-ended channel. Start by placing two small cylinders with a diameter of 4mm and a height of 6mm, centered at coordinates (-3.5, 5.5, 0) and (13, -2.3, 0). Connect these two cylinders using a ...
$fn = 30; difference() { union() { translate([-3.5,5.5,0]) cylinder(d=4,h=6,center=true); translate([13.0,-2.3,0]) cylinder(d=4,h=6,center=true); hull() { translate([9.5,15.5,0]) cylinder(d=12,h=6,center=true); translate([9.5,0,0]) cube([10,2,6],center=true); } for(i=[60:2:270])...
glb/cad_6e504b29df19.glb
Create a model of a coffee cup consisting of a tapered body, a sleeve, and a lid. For the body, create a hollow truncated cone with a height of 180mm, a bottom radius of 29.1mm, and a top radius of 45mm. The wall thickness should be 1mm. At the top rim of the body, add a rounded lip created by rotating a circle with ...
Coffee_cup_size = 1; include_lid = true; include_collar = true; solid_cup = false; just_the_lid = false; lid_holes = false; $fn = 80; if (just_the_lid) { example_lid(); } else if (Coffee_cup_size == 1) { example_12oz(); } else if (Coffee_cup_size == 2) { example_16oz(); } else if (Coffee_cup_size == ...
glb/cad_86db87d240b2.glb
Create a drilling template for a camera mount by starting with a rectangular base measuring 80mm wide, 60mm high, and 3mm thick. In this base, create three circular holes, each with a diameter of 6mm, that pass completely through the thickness of the plate. Position the first two holes along a horizontal line near the ...
$fn = 100; template_width = 80; template_height = 60; template_thickness = 3; hole_spacing = 49.5; center_hole_offset = 20.6; hole_diameter = 6; difference() { cube([template_width, template_height, template_thickness]); for (x = [-hole_spacing/2, hole_spacing/2]) { translate([template_width/2 + x, ...
glb/cad_34e09265d7ed.glb
Create a miniature magnet insert by starting with a solid cylinder that has a diameter of 20mm and a height of 2.4mm. From this base, remove two smaller cylindrical holes to create slots for magnets. Each hole must have a radius of 2.65mm and a height of 1mm. Position these two holes symmetrically along the center axis...
width=20; baseHeight=2.4; magnetDiameter=5; magnetRadius=magnetDiameter/2 + 0.15; magnetHeight=1; $fn=100; difference() { cylinder(h=baseHeight, r=width/2); translate([0,6,1.4]) cylinder(h=baseHeight, r=magnetRadius); translate([0,-6,1.4]) cylinder(h=baseHeight, r=magnetRadius); } module magnet(){ differenc...
glb/cad_11718b50408c.glb
Create a cable bundler consisting of a linear array of five identical roller units held together by a connecting frame. Each roller unit is based on a revolved profile: create a ring with an outer diameter of 20mm and an inner diameter of 15mm, with a total thickness of 10mm. Through the center of each ring, create a h...
$fn=60; tol=0.3; fork_t=5; fork_len=5; roller_gap=10; roller_od=20; roller_id=15; roller_t=10; pin_d=1.8; shaft_d=10; thumb(); module thumb() { assembled(); translate([(roller_od*2+roller_gap)*(fork_len-0.5),roller_od*1.5,0])rotate([0,0,180])assembled(); } module assembled() { fork(); for(i=[0:1:for...
glb/cad_fd5d4ac22487.glb
Create a telescope focus motor bracket consisting of a mounting base and a separate knob adapter. For the base, start with a rectangular block 45mm wide, 45mm deep, and 5mm thick. Carve a semi-circular channel through the center of the base with a diameter of 120mm to allow it to fit flush against a telescope tube. On ...
h_axis = 35; d_knob = 30; h_knob = 20; w_base = 45; d_tube = 120; t_wall = 5; $fa = 4; $fs = 0.5; module stepper() { translate([0,0,-8]) union() { rotate([-90,0,0]) cylinder(d=28.4,h=20); translate([-15/2,0,-17]) cube([15,20,10]); translate([-17/2,0,-13]) cube([17,20,10]); translat...
glb/cad_cb876fa11859.glb
Create a sanding block consisting of a main body and two separate bolt holders. The main body is a rectangular slab with a width of 20mm, a height of 10mm, and a total length of 150mm (composed of a 50mm center section and two 50mm extensions). The body has rounded corners with a 2mm radius. Cut two identical holes t...
$fn = $preview ? 15 : 90; width = 20; lengthUp = 50; lengthDown = 100; height = 10; boltD = 3.2; boltHead = 3.5; boltHeadD = 5.7; nutHeight = 3; nutWidth = 6.5; offsetR = 2; difference() { rotate ([-90, 0, 0]) { linear_extrude(height = width) { _2d_basis(); } } translate([1...
glb/cad_fe493d186556.glb
Create a dishwasher basket roller by constructing a revolved geometric profile around a central axis. The overall shape is a thick, rounded disc with a central hole. Start by defining a cross-section profile that is 8.5mm high. This profile begins at the center axis with a void for a hole with a radius of 4.25mm. From ...
$fn=200; height_wheel=8.5; width_wheel=22.8/2; triangle_width=3.5; triangle_height=3.2; width_top=2; width_hole=8.5/2; rotate_extrude() template_hole(); module template_hole() { height=height_wheel-(height_wheel-triangle_height); tilt=0.4; translate([width_hole,height_wheel-triangle_height,0]) { ...
glb/cad_42a52f298ab7.glb
Create a Nut Knob by starting with a central cylinder 10mm high with a diameter of 10.5mm. Around the outer surface of this central cylinder, add 11 smaller cylinders, each 10mm high and 3mm in diameter. These smaller cylinders should be positioned with their centers 4.75mm from the central axis, spaced evenly every 32...
$fn = $preview ? 15 : 90; height = 10; boltD = 3.2; nutHeight = 3; nutWidth = 6.5; surfaceCylinderNumber = 11; rotate([180, 0, 0]) { difference() { union() { cylinder(h = height, d1 = nutWidth + 4, d2 = nutWidth + 4); for (i = [0:(surfaceCylinderNumber - 1)]) { r...
glb/cad_a1bbf1715e3a.glb
Create a 3D bead in the shape of the letter "A" using a regular Arial font. The letter should be extruded to a thickness of 8mm and have a font size of 18mm. Apply a rounding effect of 2mm to all edges and corners of the letter to soften the geometry. Center the letter and bore a cylindrical hole completely through the...
letter = "A"; font_size = 18; font_name = "Arial:style=Regular"; thickness = 8; rounding = 2; hole_diameter = 6; x_offset = 0; hole_length = 60; $fn = $preview ? 10 : 20; module draw_letter() { text(letter, size = font_size, font = font_name, halign = "center"); } module main() { difference() { color(...
glb/cad_08971297f46e.glb
Create a Gaggia Classic Solenoid Drain Tube Fitting set consisting of a bolt and a matching nut. For the bolt, create a cylinder with a total height of 16mm and an outer diameter of 10mm. The bottom 6mm of this bolt should be a ribbed hose barb, featuring three concentric rings with a diameter of 3.45mm and a height of...
$fa = 1; $fs = $preview ? 2 : 0.5; include </home/service/Downloads/threads.scad> diameter=10; length=10; difference(){ union(){ translate([0,0,5])rotate([0,180,0])difference(){ union(){ cylinder(16,3.1,3.1); translate([0,0,16-2.2])cylinder(2.2,3.45,3.1); ...
glb/cad_53300f7f2273.glb
Create an 8 Ball Pocket Marker by starting with a main disc that is 30mm in diameter and 2mm thick. Centered on the top surface of this disc, create a shallower circular inset with a diameter of 22.5mm and a thickness of 1mm. Within this inset, carve out the number "8" using a sans-serif font. The number should be cent...
$fn=1000; dia=30; module main(){ cylinder(d=dia,h=2,center=true); } module inset(){ translate([0,0,.51]) difference(){ cylinder(d=dia/4*3,h=1,center=true); textInset(); } } module textInset(){ linear_extrude(1) text("8", font = "Liberation Sans",valign="center",halign="center",size=di...
glb/cad_e4b5f8a194f9.glb
Create a door stop by extruding a 2D profile to a height of 20mm. The profile is formed by connecting a series of 2.8mm diameter circles using convex hulls to create a continuous, rounded path. Start at the origin (0,0) and create a segment to (-8.8, 0), then a short segment down to (-8.8, -3). From the origin, extend ...
$fn=128; linear_extrude(height = 20, twist = 0, slices = 0, center = false) { union() { hull() { translate(v = [0, 0]) { circle(d = 2.8); } translate(v = [-8.8, 0]) { circle(d = 2.8); } } hull() { translate(v = [-8.8, 0]) { circle(d = 2.8); } ...
glb/cad_b9e77f024dc1.glb
Create a butterfly capacitor clutch by starting with a main cylinder 12mm in diameter and 16mm in length, centered on the origin. Remove a smaller concentric cylinder with a 4mm diameter and 6mm length from the top end. At the bottom end, create a flat-sided slot by removing a central volume 5mm wide and 6mm long, with...
$fn=300; dlug=16; srednica=12; dlug_sruba=6; dlug_wpust=6; d_wpust=5; sciecie_wpust=3; d_gwint=2.5; difference() { cylinder(dlug,d=srednica,center = true); translate([0,0,dlug/2-dlug_sruba/2+0.001]) { cylinder(dlug_sruba,d=4,center = true); } translate([0,0,-dlug/2+dlug_wpust/2-0.001]){ ...
glb/cad_a4d59c9d2caa.glb
Create a top cover for an ADB-USB Wombat case. Start with a solid rectangular plate measuring 74.8mm in width and depth, with a height of 2.4mm. Round all four outer corners with a radius of 12.4mm. To create the recessed center area, remove a smaller rectangular section from the top face, leaving a wall thickness of ...
margin=1; width=70+margin*2; depth=70+margin*2; height=13.5 ; thickness=2.4; standoff_height=3; standoff_inset=5.5 + margin; inner_radius=10; outer_radius=inner_radius + thickness; fastener="pegs"; $fn=30; top(); module top() { difference() { union() { base_shape(width+thickness*2, depth+thic...
glb/cad_893512479549.glb
Create a Pelikan Griffix fountain pen cap. Start by creating a hollow, tapered cylindrical body with a total length of 36mm. The base of the cap should have an outer diameter of 17mm, tapering linearly to an outer diameter of 11mm at the top. The walls should be 3mm thick. At the base, integrate an internal female ISO...
Initial="J"; font="Spicy Rice"; fontsize=8; length=36; dia_end=11; dia=14; screw_height=5; dia_outer=17; wall=dia_outer-dia; pitch=1.5; angle=30; fn=64; fnstep=4; depth=.5; rotate([180,0,0]) { nut(screw_height, ISO_ext_thread_profile(), depth, dia=dia, diaouter=dia_outer, pitch=pitch, rshift=0.1, fn=fn, fnstep=...
glb/cad_0a9528b47e91.glb
Create an IKEA Bondis hook by starting with a vertical rectangular backplate that is 2mm thick, 20mm wide, and 40mm high. Attached to this plate, create a protruding hook assembly. Begin the hook with a cylinder 5mm in diameter and 13mm long, extending perpendicularly from the backplate starting 2mm from the bottom. At...
$fs = $preview ? 2 : 0.2; $fa = $preview ? 12 : 2; eps = 0.05; difference() { union() { translate([-2, -10, 0]) cube([2, 20, 40]); translate([-2, 0, 2]) rotate([0, 90, 0]) rotate([0, 0, 90]) union() { cylinder(d=5, 11 + 2); translate([0, 0, 11 + 2]) cylinder(d=8, 2); ...
glb/cad_d3d4026e1c22.glb
Create a toy disc holder consisting of a rectangular housing containing eight identical slots for circular discs. First, create the housing as a solid block with a width and depth slightly larger than the discs. The discs have a diameter of 88mm and a thickness of 5mm. Each disc is composed of a main cylinder 88mm in...
$fn=64; numdiscs=8; dia=88; h_plate=5; h_plate_inner=2; outer_ring_th=2; conn_dia=16; conn_inner_dia=14; conn_h_total=10; conn_h_min=8; conn_ring_maxdia=17.8; gapw=19.4; gapdepth=4; wiggle=1; disc_distance=conn_h_total+2*wiggle; module disccomplete(dia_disc=dia) { cylinder(d=dia_disc,h=h_plate_inner); d...
glb/cad_0a8a5c40a2ee.glb
Create a screw-on glass lid with an inner diameter of 80mm and a total inner depth of 15mm. The main body is a hollow cylinder with a wall thickness of 2mm. The top of the lid is a flat disc with a radius of 40mm and a thickness of 2mm. Inside the cylinder, create a single internal thread that starts 3mm from the bott...
precision=3; wallThickness=2; innerDiameter=80; innerDepth=15; threadPitch=5; threadDepth=2; threadWidth=1.3; threadTurns=1.5; threads=1; threadStart=3; ridges=25; smoothness=(precision==1)?4:((precision==2)?6:20); facets=(precision==1)?6:((precision==10)?20:50); segments=facets*threadTurns; $fn=max(20,face...
glb/cad_920232c1b09a.glb
Create an Over-Travel Butt Hinge consisting of a wedge-shaped base plate and a series of interlocking barrels. Start with a base plate that is 20mm wide and 60mm long. The plate's thickness should taper from 0.05mm on one side to a height of approximately 8.5mm on the other, creating a slope based on a 45-degree angle....
wing=20; drillloc=0.5; step=10; steps=3; tolerance=0.25; shaft=2; thick=2; cylthick=1.6; drillhole=3.2; angle=45; $fn=120; high=tan(angle/2)*wing; module fill() { hull() { cube([wing,step*steps*2,0.05]); cube([0.05,step*steps*2,high-tolerance]); } translate([0,0,high]) rotate([270,0,0]) ...
glb/cad_dd2d9fbf4ca4.glb
Create a vertical stand for a Focusrite Scarlett 2i2 (Gen 4) consisting of a flat base and three upright walls. Start by creating a rectangular base plate with a thickness of 6mm, overall dimensions of 57.3mm by 117.01mm, and rounded corners with a 2mm radius. From this base, extend two parallel side walls and one co...
$fn = 100; $fs = 0.1; SCARLETT_DIMENSIONS = [180, 117, 47.5]; DIMENSION_ADJUSTMENTS = [1.65, 9, 11]; WALL_THICKNESS = 4; BACK_WALL_HEIGHT = 17; DEFAULT_CORNER_RADIUS = 2; BASE_EXTENSION = 7; BASE_FRONT_BACK_OFFSET = 4.2; BASE_THICKNESS = WALL_THICKNESS * 1.5; MARGIN = .01; OFFSET = 0.002; swidth = SCARLETT_DIMENSI...
glb/cad_cf165e97b8af.glb
Create a pocket organizer consisting of four rectangular open-topped compartments aligned in a single row. Each compartment is a hollowed-out shell with a total height of 10mm and a wall thickness of 2.4mm, featuring rounded exterior corners with a radius of 2.4mm. The compartments are joined side-by-side along the X-a...
thickness = 10; wall_thickness = 2.4; holders([ [24, 24], [40, 20], [26, 26], [15, 15], ]); function first(lst) = lst[0]; function rest(lst) = (len(lst) <= 1) ? [] : [for (i = [1:len(lst)-1]) lst[i]]; module holder(width, height) { translate([width/2,height/2+1.5*wall_t...
glb/cad_3aa34bc2f1b5.glb
Create a stand for a Triaxial Numechron clock consisting of a honeycomb base and four support posts. Start with a honeycomb base 3mm thick. The honeycomb pattern should be composed of hexagonal cells with an outer radius of 12mm and a wall thickness of 3mm. The overall footprint of the base should accommodate a clock...
clearance = 1; radius = 12; strength = 3; elevation = 37.5; wall = 3.5; wall_height = 6; post_width = 17.5; post_depth = 12.5; comb_height = 3; base_width = 144; base_depth = 91.2; base_back = 78; base_thickness = 6; $fs = $preview ? 1 : 0.15; $fa = $preview ? 3 : 2; epsilon = 0.01; calculated_columns = base_wid...
glb/cad_d5e46b7638f1.glb
Create a Bead carousel cover consisting of a circular base and a raised outer rim. Start by creating a solid cylinder with a diameter of 95mm and a height of 2mm. On top of this base, add a concentric raised ring (rim) with an outer diameter of 90mm and a wall thickness of 1mm, extending the total height of the rim to ...
$fn= $preview ? 16:64; d=[6-.2,87+.5,90,95]; pin=0.3; h=2; wall=2; wall2=1; gap=0.3; inf=100; d(){ u(){ cylinderRounded(d=[d[0],d[3]],h=wall); cylinderRounded(d=[d[1]-2*wall2,d[1]],h=wall+h); t([0,0,wall+h-pin]) torus(r1=d[1]/2,r2=pin); } for(a=[0:10:360]) r(a) cubeRounded([gap,inf,inf],center=[1,0,1]); } ...
glb/cad_b4af516a6638.glb
Create a plug for a 63mm ball valve blast gate. Start by creating a thin circular base with a diameter of 47mm and a thickness of 1.2mm. On top of this base, add a concentric hollow cylinder with an outer diameter of 40mm and a height of 10mm. The walls of this cylinder should have a thickness of 0.84mm. Finally, add a...
$fn = 200; shape = "Round"; type = "Plug"; base = 1.2; height = 10; ww = 0.84; di = 47; inner_di = 40; base_chamfer = "Yes"; r_1 = 40; r_1_int = 38; r_2 = 30; r_2_int = 28; module round_pipe(chamfer, add, sub) { difference() { cylinder(h = base, d = di + add); if (chamfer == "Yes") { ...
glb/cad_9b4556ddbcdf.glb