Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a µNES-CRT-ESP32 Console case. Start with a main rectangular body measuring 57mm x 29mm x 8mm. Hollow out the center by removing a 55mm x 27mm x 7mm rectangular block from the top, leaving a wall thickness of 1mm on the sides and 1mm at the bottom. Add two rectangular protrusions on the left side: one measuring...
$fs = 0.1; $fa = 5; union(){ translate([0,0,0])difference() { union(){ translate([-1,-1,0])cube([59-2+2,31+2,8]); } translate([1,1,1])cube([59-2-2,31-2,8]); translate([-1,10.5,2])cube([5,10,8]); translate([1,10-7+0.5,0])difference() { translate([0...
glb/cad_c51227ee735a.glb
Create a flat, rectangular base plate for a µNES-CRT-ESP32 console. The main body is a rounded rectangle created by combining a 90mm by 85mm rectangle with a 4mm fillet radius on all corners, with a total thickness of 1mm. From this base, remove several cylindrical holes and slots to accommodate electronics. Place fou...
$fs = 0.1; $fa = 5; union(){ translate([0,0,0])difference() { translate([12,12,0]) minkowski(){ cube([98-8,93-8,1]); cylinder(r=4,h=1); } translate([7+5,7+5,0]) cylinder(r=3.5/2,h=40); translate([7+5+80+10,7+5,0]) cylinder(r=3.5/2,h=40); translate([...
glb/cad_c2ed64aa4267.glb
Create a µNES-CRT-ESP32 Console case. Start with a main body that is a rounded rectangular block. The base shape is a cube of 90mm by 85mm with a height of 6mm, but the edges are rounded with a radius of 4mm. Remove several cylindrical holes from this body to accommodate components. Create four primary mounting holes ...
$fs = 0.1; $fa = 5; union(){ translate([0,0,0])difference() { translate([12,12,0]) minkowski(){ cube([98-8,93-8,7-1]); cylinder(r=4,h=1); } translate([7+5,7+5,0]) cylinder(r=2.5/2,h=40); translate([7+5+80+10,7+5,0]) cylinder(r=2.5/2,h=40); translate...
glb/cad_0a92181bf72c.glb
Create a µNES-CRT-ESP32 Console case. Start by constructing a main rectangular body with rounded corners. The outer dimensions are 106mm in width and 101mm in depth, with a total height of 5mm. The corners are rounded with a radius of 4mm. Inside this body, create a rectangular cutout to form a hollow frame. This inne...
$fs = 0.1; $fa = 5; union(){ translate([0,0,0])difference() { translate([12,12,0]) minkowski(){ cube([98-8,93-8,4]); cylinder(r=4,h=1); } translate([7+5,7+5,0]) cylinder(r=3.5/2,h=40); translate([7+5+80+10,7+5,0]) cylinder(r=3.5/2,h=40); translate([...
glb/cad_e17d746dd77f.glb
Create a handheld game console case called the µNES-CRT-ESP32. The main body is a rounded rectangular shell. Start with a base block approximately 114mm wide, 97mm deep, and 25mm high. Apply a 4mm fillet to all exterior edges to soften the corners. Hollow out the interior to create a wall thickness of approximately 4m...
$fs = 0.1; $fa = 5; union(){ translate([0,0,0])difference() { union(){ translate([2.5,2.5,0]) minkowski(){ cube([103+7+7-8,93+7+7-8,3-1]); cylinder(r=4,h=1); } translate([9,9,-20]) minkowski(){ cube([96,86,25-2]); ...
glb/cad_452d4ce6b787.glb
Create two separate plates for a GM 3800 motor mount template. First, create a test plate measuring 152.4mm by 127mm with a thickness of 1mm and corner radii of 10mm. In this plate, place three holes with a diameter of 12mm. Position two holes along the top, spaced 107mm apart center-to-center and offset 15mm down fr...
drill_template(); test_plate(); plate_x=25.4 * 6; plate_y=25.4 * 5; thickness= 1 ; corner_rad= 10 ; d_plate_x=25.4 * 6; d_plate_y=25.4 * 3; d_thickness= 2 ; d_corner_rad= 1 ; guide_height= 30 ; guide_walls= 5 ; dia= 12 ; drill_dia= 3.175 ; x_spacing= 107 ; top_offset_y= 15 ; lower_offset_y= 44 ; lower_offset_x...
glb/cad_2c6be71b300e.glb
Create two separate templates for a GM 3800 motor mount. First, create a test plate as a rectangular slab measuring 152.4mm by 127mm with a thickness of 1mm and corner radii of 10mm. In this plate, place three holes with a diameter of 12mm. Position two holes along the top, spaced 108mm apart center-to-center and off...
drill_template(); test_plate(); plate_x=25.4 * 6; plate_y=25.4 * 5; thickness= 1 ; corner_rad= 10 ; d_plate_x=25.4 * 6; d_plate_y=25.4 * 3; d_thickness= 2 ; d_corner_rad= 1 ; guide_height= 30 ; guide_walls= 5 ; dia= 12 ; drill_dia= 3.175 ; x_spacing= 108 ; top_offset_y= 15 ; lower_offset_y= 35 ; lower_offset_x...
glb/cad_03df842817bc.glb
Create a Mickey Mouse-shaped MagSafe charger and Apple Watch stand. Start by constructing the head as a cylinder with a diameter of 50mm and a height of 20mm. Position two smaller cylinders for ears, each with a diameter of 30mm and a height of 15mm, placed symmetrically on the sides of the head. Within the head, crea...
include <variables.scad>; difference() { union() { cylinder(h=depth_of_body, d=head_diameter, $fn=60); translate([(head_diameter)*(10/20),(head_diameter)*(10/20),0]) cylinder(h=depth_of_ears, d=ear_diameter, $fn=60); translate([(head_diameter)*(10/20),-1*(head_diameter)*(10/20),0]...
glb/cad_034d8f9655f7.glb
Create a parameterized cable clip with a total width of 50mm, height of 15mm, and depth of 13mm. The walls should have a consistent thickness of 2mm. Construct the main body as a flat base with a rounded end. At the rounded end, create a semi-circular cutout with an outer diameter of 15mm and an inner diameter of 11m...
$fn=360; Clip_X = 50; Clip_Y = 15; Clip_Z = 13; Clip_thickness = 2; Clip_Guard_X=10; Clip_Guard_Lip_X=2; Clip_Guard_Spacing=0.5; Screwhole = true; Screwhole_D = 8; Clip_MinusGuard = Clip_X - Clip_Guard_X; if(Screwhole){ difference(){ Clip(); translate([Clip_Guard_X+(Clip_MinusGuard/2)-(Clip_Y/4),Cli...
glb/cad_fc3568338bb0.glb
Create a Modular Drawer Organizer section. The main body is a hollow rectangular bin with a height of 52mm and a constant wall thickness of 1.8mm. The outer dimensions are based on a module size of 59mm by 59mm. The bin features rounded inner corners with a radius of 15mm. The bottom edges are chamfered by 10mm. The ...
$fn=150; modx=59; mody=59; height=52; wall=1.8; edger=15; edgec=10; tilt_size=8.3; tiltl=0; tiltr=0; collar=3; openl=0; openr=0; stepb=0; multx=6; multy=2; model=201; echo ("Building a section x,y:", multx, multy); echo ("Model:", model); echo ("Tilt L,R:", tiltl, tiltr); echo ("Open L,R:",openl, openr); echo ("Colla...
glb/cad_53dacc9faf9a.glb
Create a cable duct cover and insert for a table. The main duct is a tapered cylinder with a base diameter of 67.5mm and a top diameter of 63.5mm, reaching a total height of 27.5mm. The walls of this duct are 2.5mm thick. This main body features six equidistant vertical cutouts spaced every 60 degrees around its circum...
DIA = 51; THI = 22.5; WALL= 2.5; NR = 6; duct(); cover(0.2); module cover(DISTANCE){ difference(){ translate([0,0,0]) cylinder(h=WALL-DISTANCE, d1=DIA-2*WALL+WALL*0.5-DISTANCE*2, d2=DIA-2*WALL+WALL*0.88-DISTANCE, center=false, $fn=DIA*3); for (i = [0:360/NR:359]) { rotate(...
glb/cad_3a7cbea9b322.glb
Create a square plate for an Arkham Horror LCG token storage insert with overall dimensions of 245mm by 245mm and a thickness of 3mm. At each of the four corners, create a cylindrical hole with a radius of 2.5mm and a depth of 2mm, centered 4.5mm from each adjacent edge. Additionally, create four semicircular notches w...
x = 245; y = 245; z = 3; difference() { cube([x, y, z]); translate([4.5,4.5,1]) magnet_hole(); translate([4.5,y - 4.5,1]) magnet_hole(); translate([x - 4.5,4.5,1]) magnet_hole(); translate([x - 4.5, y - 4.5,1]) magnet_hole(); translate([x/2, 0, 2]) c...
glb/cad_6887e9bfebf4.glb
Create a token storage insert as a rectangular box with outer dimensions of 245mm x 245mm and a height of 45mm. The box should have a base thickness of 2mm and walls that are 2mm thick. Inside the box, create a grid of 11 compartments. Arrange these in a 4x3 layout, where the compartments are separated by 2mm walls. ...
wall = 2; bottom = 2; token_radius = 15; x = 245; y = 245; z = 45; finger_size = 20; union() { difference() { cube([x, y, z]); for ( i = [0:1]) translate([0, (2*token_radius + wall)*i, 0]) token_grooves(); y_offset = 3 * wall + 4*token_radius; compartment...
glb/cad_ec683a652a31.glb
Create a 51st State Master Set Insert by starting with a solid rectangular block measuring 95mm wide, 165mm long, and 69mm high. Hollow out the center of this block to create a container with walls and a bottom that are each 1mm thick. To create the internal compartments, add three dividers across the width of the box....
x = 95; y = 165; z = 69; wall = 1; bottom = 1; divider_thickness = 2; difference() { box(); translate([x/2,0,z]) rotate([-90, 0, 0]) cylinder(r=z/2, h=y, $fn=80); } module box() { union() { difference() { cube([x,y,z]); translate([wall, wall, bottom]) ...
glb/cad_20992e501daf.glb
Create a rectangular storage insert for a board game with overall outer dimensions of 120mm in width, 142.5mm in depth, and 24.5mm in height. The object should have a base thickness of 1mm and external walls that are 2mm thick. The interior is divided into five equal rectangular compartments. To achieve this, carve out...
x = 120; y = 142.5; z = 24.5; wall = 2; bottom = 1; difference() { cube([x, y, z]); box_x = x-2*wall; box_y = (y-6*wall)/5; for (i = [1:5]) translate([wall, i*wall + (i-1)*box_y, bottom]) cube([box_x, box_y, z-bottom]); }
glb/cad_742b4bb45dbd.glb
Create a 51st State Master Set Insert by starting with a solid rectangular block measuring 95mm wide, 165mm long, and 69mm high. Hollow out the center of this block to create a shell with walls 1mm thick and a bottom 1mm thick. To create the main opening, remove a half-cylinder with a radius of 34.5mm from the top surf...
x = 95; y = 165; z = 69; wall = 1; bottom = 1; divider_thickness = 2; difference() { box(); translate([x/2,0,z]) rotate([-90, 0, 0]) cylinder(r=z/2, h=y, $fn=80); } module box() { union() { difference() { cube([x,y,z]); translate([wall, wall, bottom]) ...
glb/cad_feeacbbc7a40.glb
Create a 51st State Master Set Insert by starting with a solid rectangular block measuring 120mm in width, 142.5mm in depth, and 24.5mm in height. From the top surface, carve out four identical rectangular compartments to create a 2x2 grid of open bins. Each bin should be positioned so that the outer walls and the inte...
x = 120; y = 142.5; z = 24.5; wall = 2; bottom = 1; difference() { cube([x, y, z]); box_x = (x-3*wall)/2; box_y = (y-3*wall)/2; for (i = [1,2]) for (j = [1,2]) translate([i*wall + (i-1)*box_x, j*wall + (j-1)*box_y, bottom]) cube([box_x, box_y, z-bottom]); }
glb/cad_ee7dcca3dfb2.glb
Create a 51st State Master Set Insert by starting with a solid rectangular block measuring 120mm in width, 142.5mm in depth, and 24.5mm in height. Hollow out this block to create a series of compartments, leaving a base thickness of 1mm and wall thicknesses of 2mm throughout. First, carve out two large side-by-side r...
x = 120; y = 142.5; z = 24.5; wall = 2; bottom = 1; difference() { cube([x, y, z]); box_x = (x-3*wall)/2; box_y = (y-3*wall)/2; small_box_y = (box_y - 2*wall)/3; for (i = [1,2]) translate([i*wall + (i-1)*box_x, wall, bottom]) cube([box_x, box_y, z-bottom]); for (i =...
glb/cad_e5528055ecd7.glb
Create a rectangular open-top box for a board game insert with outer dimensions of 120mm in width, 142.5mm in depth, and 20mm in height. The box should have a flat bottom with a thickness of 1mm and vertical walls that are 2mm thick. The interior cavity should be centered, leaving the walls and bottom consistent, resul...
x = 120; y = 142.5; z = 20; wall = 2; bottom = 1; difference() { cube([x, y, z]); translate([wall, wall, bottom]) cube([x-2*wall, y-wall, z-bottom]); }
glb/cad_fa848607ab77.glb
Create a rectangular open-top box for a 51st State Master Set insert with outer dimensions of 120mm in width, 285mm in length, and 20mm in height. The box should have a uniform wall thickness of 2mm and a bottom base thickness of 1mm. To achieve this, start with a solid rectangular block of the full outer dimensions an...
x = 120; y = 285; z = 20; wall = 2; bottom = 1; difference() { cube([x, y, z]); translate([wall, wall, bottom]) cube([x-2*wall, y-2*wall, z-bottom]); }
glb/cad_8b887c465f4e.glb
Create a rectangular box for a 51st State Master Set insert with outer dimensions of 95mm in width, 165mm in length, and 69mm in height. The box should have a uniform wall thickness of 2mm and a bottom base thickness of 1mm. To create the interior cavity, remove a rectangular section from the top that is 91mm wide and ...
x = 95; y = 165; z = 69; wall = 2; bottom = 1; divider_thickness = 2; difference() { cube([x,y,z]); translate([wall, y*.25-wall, z/2]) cube([x - 2*wall, y*.75, z/2]); }
glb/cad_e7358c5b786b.glb
Create an Elder Sign Omens Box Insert by starting with a solid rectangular block measuring 122mm wide, 127mm deep, and 32mm high. From this base, carve out three distinct compartments, all leaving a 1mm thick floor at the bottom. First, create a large rectangular cavity 74mm wide and 125mm deep, positioned 1mm from the...
x = 122; y = 127; z = 32; lg_cardx = 74; lg_cardy = 125; sm_cardx = 45; sm_cardy = 69; bottom = 1; difference() { cube([x, y, z]); translate([1,(y - lg_cardy)/2,bottom]) cube([lg_cardx, lg_cardy, z-bottom]); translate([x-sm_cardx-1, 1, bottom]) cube([sm_cardx, sm_cardy,z-bottom]); tra...
glb/cad_ef5795803688.glb
Create an Elder Sign Omens Box Insert by starting with a solid rectangular block measuring 122mm in length, 56mm in width, and 32mm in height. Carve out two identical rectangular voids from the top of the block to create two side-by-side compartments. Each void should be 120mm long, 26.5mm wide, and 31mm deep. Position...
x = 122; y = 56; z = 32; bottom = 1; difference() { cube([x, y, z]); translate([1,1,bottom]) cube([x-2,26.5,z-bottom]); translate([1,29,bottom]) cube([x-2,26.5,z-bottom]); }
glb/cad_e17a86261e06.glb
Create a dial gauge cover and mount. Start with a main circular lid that has an outer diameter of 50mm and a total height of 2.5mm. Hollow out the center of this lid by removing a cylinder with a diameter of 42mm and a height of 1mm, leaving a ring wall. Within this ring wall, create four symmetrical screw holes. Eac...
use <MCAD/boxes.scad> use <MCAD/nuts_and_bolts.scad> $fa = 1; $fs = 0.4; lid_size_outside_radius = 50/2; lid_size_inside_radius = 42/2; lid_size_middle = (lid_size_outside_radius-lid_size_inside_radius)/2; lid_height_outside = 2.5; lid_height_inside = 1; screew_holes_lower_radius =2/2; screew_holes_upper_readius =3...
glb/cad_8b85262b27dd.glb
Create a toaster oven spacer block with a height of 20mm. The overall footprint is a rectangle measuring 48mm in width and 40mm in depth. From this rectangular volume, remove a centered semi-circular cutout from the front face to accommodate the appliance foot. This cutout should be a cylinder with a radius of 8mm an...
foot_to_wall=32; foot_width=44; spacer_height=20; foot_radius=8; spacer_radius=3.0; wall_width=2.0; $fn=100; module unitcube() { cube([1,1,1],center=false); } module spacer_block() { foot_surround_len=foot_width/8; intersection() { linear_extrude(height=spacer_height) { difference() { ...
glb/cad_ba5a766f77dd.glb
Create a Camera Lens Filter Holder and a matching protective case. For the holder, create a main cap as a ring with an inner diameter of 50mm and an outer diameter of 74.8mm, with a face thickness of 1mm. Add a retaining rim around the outside of this cap, extending the outer diameter to 77.8mm and the height to 8.1mm...
slot_margins_mm=0.4; slot_margins_deg=0.4; holder_cap_rim_id=74.8; holder_aperture=50; holder_slot_size=0.1; holder_cap_rim_inner_height=8.1; holder_cap_rim_thickness=1.5; holder_cap_face_thickness=1; holder_insert_thickness=1; holder_insert_od_margin=0.2; holder_insert_start_height=holder_cap_face_thickness +...
glb/cad_5d6deed766ce.glb
Create a Hexagon Cylinder holder by starting with a main cylinder that has a diameter of 80mm and a height of 100mm. Hollow out the center to create a container with a wall thickness of 2mm and a bottom floor thickness of 2mm. Perforate the side walls of the cylinder with a pattern of hexagonal holes. Each hexagon sho...
cylinder_wall_count = 256; cylinder_width = 80; cylinder_height = 100; wall_size = 2; floor_height = 2; hexagon_wall_count = 6; hexagon_size = 5; hexagon_spacing_top = 0; hexagon_spacing_bottom = 1; hexagon_spacing_vertical = 1; hexagon_spacing_horizontal = 2; hexagon_rotation = 33; difference() { $fn = cylind...
glb/cad_5bbb17edcb20.glb
Create an arrester for a fan by starting with a wide, low base cylinder that has a radius of 8.5mm and a height of 6mm. Centered on top of this base, place a taller vertical cylinder with a radius of 5mm and a height of 29mm, starting at a height of 4mm from the bottom. Bore a central hole through the entire assembly, ...
cylinder(h=6, r=17/2, center=false); difference(){ translate([0,0,4]) cylinder(h=29, r=10/2, center=false); translate([0,0,0]) cylinder(h=35, r=6.4/2, center=false); translate([-1.3,-15,22]) cube([2,30,11]); }
glb/cad_79a562c16854.glb
Create a Parametric Combo Scope/Laser Mount consisting of a main mounting block and an optional laser clamp. The main block is a rounded rectangular prism with a length of 85mm, a width of 17mm, and a height of 25mm, featuring 2mm corner radii. On the top surface, create a dovetail-shaped cutout that is 12.7mm wide a...
mm = 25.4; xos = [0,0.5,2.875-0.5,2.875]*mm; basel = 85; basew = 17; baseh = 25; cr = 2; screwcbd = 0.25*mm; screwpd = 4.3; screwtd = 4; screwpad = 0.200*mm; clampcbd = 5.8; clamppd = 3.4; clamptd = 2.6; clampcbl = 4; dlaser = 0.755*mm; llaser = 30; bandth = 2; lugangle = 30; addlaser = true; drawtestparts = true; ...
glb/cad_8db1f7c29ceb.glb
Create a safety razor blade case consisting of two interlocking halves, a top and a bottom, designed to hold a double-edge razor blade. The internal cavity for the blade is 3mm high. The overall external dimensions of each half are approximately 47mm long, 26mm wide, and 4.5mm thick, with a wall thickness of 1.5mm. T...
mode="explode"; blade="on"; blade_minw=13; blade_majw=22; blade_minl=37; blade_majl=43; blade_holew=2; blade_holel=35.5; bc_h=3; bc_cl=1; caseth=1.5; relief=0.98; module squilinder(dims,radius){ hull(){ translate([dims[0]/2-radius, dims[1]/2-radius, 0]) cylinder(r=radius, h=dims[2], center=true); translate([-...
glb/cad_553fbdd4daf7.glb
Create a parametric snap-on cover for a safety razor. The main body is a hollow shell with a wall thickness of 3mm, designed to fit over a razor head. The internal cavity is based on a composite shape: a central rectangular block 20mm wide, 41.8mm long, and 7.9mm high, combined with a lower guard section 24mm wide, 4...
mode = "shell"; drawblade = false; nfaces = 100; guard_w = 24; guard_l = 41.8; guard_h = 2.0; head_w = 20; head_h = 7.9; blade_eh = 2.5; blade_sh = 3.95; shell_th = 3; blade_ew = 22; blade_sw = 14; blade_minw = 13; blade_majw = 22; blade_minl = 37; blade_majl = 43; blade_holew = 2; blade_holel = 35.5; $fn = 0; $fs ...
glb/cad_8068d9e35976.glb
Create a drawer handle by starting with a base plate that is 45mm wide, 106mm long, and 24mm high, featuring fully rounded corners with a radius of 16mm. From this base, remove a central rectangular volume to create a grip area that is 40mm wide, 80mm long, and 42mm deep, with rounded corners of 10mm. To finish the h...
$fa = 1; $fs = 1; breite = 106; hoehe = 24; griffbreite = 80; d_schrauben = 5; module roundedcube(l,b,h,r) { hull(){ translate([r,r,h-r]) sphere(r); translate([l-r,r,h-r]) sphere(r); translate([r,r,r]) sphere(r); translate([l-r,r,r]) sphere(r); translate([r,b-r,r]) sphere(r); translate([l-r,b-...
glb/cad_acb89bbcf4e6.glb
Create a horizontal sundial consisting of an octagonal base and a protruding gnomon. Construct the base as an octagonal cylinder with a radius of 78mm (calculated from a 70mm dial half-width plus 8mm) and a thickness of approximately 2.2mm. On the top surface of this base, center a gnomon that is 4mm thick. The gnomo...
latitude = 52.20; longitude = -6.22; label = "Rapallo"; ind = "roman"; timeZone = 0; DST = 1; DS = "Summer Time"; scale = 1.35; dialHalfWidth=70; dotRadius=2; dialThickness = 3; gnomonThickness=4 ; lineWidth=1; lineHeight = 0.5; textHeight = 2; intervalLen = 1.5; gapRadius=7*lineWidth; aLot=dialHalfWidth*3; hourFrac...
glb/cad_e8995e4e31b3.glb
Create a keyboard holder for the Ikea Nissafors. Start by constructing a hollow rectangular box with outer dimensions of 145mm width, 29mm depth, and 55mm height. The walls of this box should be 2.5mm thick, leaving an interior cavity of 140mm by 24mm. Attached to the rear bottom edge of this box, add a clip mechanis...
$fn = 50; holder_wall_thickness = 2.5; clip_clearance = 2.5; holder_width = 140+holder_wall_thickness*2; holder_depth = 25+holder_wall_thickness*2; holder_height = 55; keyboardbox(holder_width, holder_depth, holder_height, holder_wall_thickness); clip(holder_width*0.8, clip_clearance, holder_wall_thickness, holder_h...
glb/cad_5c71c33bffc0.glb
Create a protective case for an XYS3580 Buck-Boost Converter. Start with a solid rectangular block measuring 75.9mm in length, 46mm in width, and 43.6mm in height. Hollow out the center by removing a smaller rectangular block of 71.9mm by 46mm by 39.6mm, positioned 2mm from the bottom and sides, to create a shell with ...
difference(){ difference(){ difference(){ difference(){ difference(){ difference(){ difference(){ difference(){ difference(){ difference(){ difference(){ difference(){ difference(){ difference(){ difference(){ difference(){ color("green",0.1) cube([75.9, 46, 43.6],center=false); translate([2,-2,2]) color("red",1) cube...
glb/cad_16b908491ecf.glb
Create two types of panel connectors: a 4-way "Plus" connector and a 3-way "T" connector. Both connectors are based on a trapezoidal extrusion with a height of 40mm and a total thickness of 10mm. The trapezoid has a top edge length of 40mm and a bottom edge length of 60mm. For the 4-way connector, create two identical...
$wall_thickness = 2; $floor_thickness = 6; $groove_width = 6.5; $top_edge_length = 40; $bot_edge_length = 60; $height = 40; thickness = $wall_thickness*2 + $groove_width; module trapezoid_extrusion(tl, bl, hh, fh, th, full) { tl2 = tl/2; bl2 = bl/2; x1 = full?-bl2:0; x2 = full?-tl2:0; rotate([90,0...
glb/cad_bbf700335a3e.glb
Create a keyboard keycap with a hollow interior. The outer shell is a rounded rectangular prism with dimensions 19mm wide, 36.75mm long, and 12.75mm high, featuring a corner radius of 2mm. The top surface is slightly recessed. Inside the shell, centered along the length, create two vertical cylindrical shafts. The pri...
AY=36.75; AX=19.0; BY=31.75; BLX=14.5; EZ=11.0; FLZ=14.0; H=12.75; SHAFT_OFF_Y=28.0; BLIND_SHAFT_OFF_Y=9.0; CYL_OFF_Z=150; CYL_DEPTH=0.1; CLIP_X=2; CLIP_Y=0.75; CLIP_H=3*CLIP_Y; CORNER_RADIUS=2; INNER_GUARD_RADIUS=6.5; OUTER_GUARD_RADIUS=7.5; BLIND_SHAFT_OUTER_DIAMETER=4.0; BLIND_SHAFT_INNER_DIAMETER=2.0; SHAFT_X=8.0; ...
glb/cad_db34f0093861.glb
Create a keyboard keycap with a hollow interior and a specialized stem assembly. The main body is a rounded rectangular prism with dimensions of 19mm width, 50.5mm length, and 12.75mm height. The corners should have a radius of 2mm. The top surface is slightly curved, and the interior is hollowed out with a wall thickn...
AY=50.5; AX=19.0; BY=45.5; BLX=14.5; EZ=11.0; FLZ=14.0; H=12.75; SHAFT_OFF_Y=33.0; BLIND_SHAFT_OFF_Y=9.0; CYL_OFF_Z=200; CYL_DEPTH=0.1; CLIP_X=2; CLIP_Y=0.75; CLIP_H=3*CLIP_Y; CORNER_RADIUS=2; INNER_GUARD_RADIUS=6.5; OUTER_GUARD_RADIUS=7.5; BLIND_SHAFT_OUTER_DIAMETER=4.0; BLIND_SHAFT_INNER_DIAMETER=2.0; SHAFT_X=8.0; SH...
glb/cad_bc8943f297ac.glb
Create a keycap for an IBM Model M keyboard. The main body is a hollowed-out truncated pyramid with a rectangular top and a wider rectangular base. The outer dimensions of the base are 19mm by 18.5mm, with a height of 12.75mm. The top surface is smaller, measuring 14.5mm by 12.5mm, and is centered relative to the base....
AY=18.5; AX=19.0; BY=12.5; BLX=14.5; EZ=11.0; FLZ=14.0; H=12.75; CYL_OFF_Z=50; CYL_DEPTH=0.1; CLIP_X=2; CLIP_Y=0.75; CLIP_H=3*CLIP_Y; CORNER_RADIUS=2; WallThickness=0.75; ClipWidth=2.2; ClipDepth=0.75; alpha=asin((H-EZ)/BLX); beta=asin(H/FLZ); gamma=90-asin((0.5*(AY-BY))/EZ); module keycap(){ scale([AX/(AX+2*CORNER...
glb/cad_372e8dd56cbc.glb
Create a keyboard keycap with a hollow interior. The outer shell is a rounded rectangular prism with a width of 19mm, a length of 37mm, and a height of 12.75mm. The corners have a radius of 2mm. The top surface is slightly recessed, and the side walls have a thickness of 0.75mm. Inside the hollow cavity, centered alon...
AY=37.0; AX=19.0; BY=32.0; BLX=14.5; EZ=11.0; FLZ=14.0; H=12.75; SHAFT_OFF_Y=28.0; BLIND_SHAFT_OFF_Y=9.0; CYL_OFF_Z=200; CYL_DEPTH=0.1; CLIP_X=2; CLIP_Y=0.75; CLIP_H=3*CLIP_Y; CORNER_RADIUS=2; INNER_GUARD_RADIUS=6.5; OUTER_GUARD_RADIUS=7.5; BLIND_SHAFT_OUTER_DIAMETER=4.0; BLIND_SHAFT_INNER_DIAMETER=2.0; SHAFT_X=8.0; SH...
glb/cad_a0187d729600.glb
Create a keyboard keycap with a main body measuring 41mm in length, 18mm in width, and 12.75mm in height. The top surface should be slightly recessed and the corners rounded with a 2mm radius. The overall shape is a rectangular prism with a sloped top and rounded edges. On the underside, center a complex shaft mechani...
AY=18.0; AX=41.0; BY=13.0; BLX=33; EZ=11.0; FLZ=15.0; H=12.75; SLOPE_X=AX/2; SLOPE_Z=2.0; CYL_OFF_Z=40; CYL_DEPTH=1; CLIP_X=2; CLIP_Y=0.75; CLIP_H=3*CLIP_Y; CORNER_RADIUS=2; INNER_GUARD_RADIUS=6.5; OUTER_GUARD_RADIUS=7.5; BLIND_SHAFT_OUTER_DIAMETER=4.0; BLIND_SHAFT_INNER_DIAMETER=2.0; SHAFT_X=8.0; SHAFT_Y=6.0; SHAFT_LE...
glb/cad_77e16f08c314.glb
Create a keyboard keycap and its internal shaft mechanism. The keycap is a rounded rectangular block with a top surface height of 12.75mm. The outer dimensions are 19mm by 25mm, with a corner radius of 2mm. The top surface is slightly recessed and angled. Inside the keycap, create a hollow cavity with a wall thickness...
AY=25.0; AX=19.0; EXTRA_Y=8.0; EXTRA_Z=5.5; BY=20.0; BLX=14.5; EZ=11.0; FLZ=14.0; H=12.75; CYL_OFF_Z=70; CYL_DEPTH=0.1; CLIP_X=2; CLIP_Y=0.75; CLIP_H=3*CLIP_Y; CORNER_RADIUS=2; INNER_GUARD_RADIUS=6.5; OUTER_GUARD_RADIUS=7.5; SHAFT_OFF_Y=15.0; SHAFT_X=8.0; SHAFT_Y=6.0; SHAFT_LENGTH=9.0; SHAFT_THICKNESS=1.0; SHAFT_CLIP_W...
glb/cad_489caf233b6f.glb
Create a keyboard keycap with a hollow interior and a specialized stem for a spring mechanism. The main body is a rounded rectangular prism with a top surface measuring 19mm by 132.5mm and a height of 12.75mm. The walls should have a uniform thickness of 2mm. At the base, centered along the Y-axis at 66.25mm and offse...
AY=132.5; AX=19.0; BY=127.5; BLX=14.5; EZ=11.0; FLZ=14.0; H=12.75; SHAFT_OFF_Y=AY/2; SHAFT_OFF_X=8.0; CLIP_X=2; CLIP_Y=0.75; CLIP_H=3*CLIP_Y; CORNER_RADIUS=2; SHAFT_X=8.0; SHAFT_Y=6.0; SHAFT_LENGTH=9.0; SHAFT_THICKNESS=1.0; SHAFT_CLIP_WIDTH=3.0; SHAFT_CLIP_THICKNESS=0.75; SHAFT_CLIP_HEIGHT=2.0; SHAFT_CLIP_SLOPE_DEPTH=1...
glb/cad_b3f9814113f1.glb
Create a keyboard keycap with a total height of 12.75mm. The outer shell is a rectangular block with rounded corners of 2mm radius, measuring 19mm in width (X) and 27mm in depth (Y). The top surface is slightly recessed and the side walls have a thickness of 0.75mm. Inside the shell, create a hollow cavity that follow...
AY=27.0; AX=19.0; INNER_AY=18.5; INNER_BY=12.5; BY=22.0; BLX=14.5; EZ=11.0; FLZ=14.0; H=12.75; CYL_OFF_Z=100; CYL_DEPTH=0.05; CLIP_X=2; CLIP_Y=0.75; CLIP_H=3*CLIP_Y; CLIP_DISTANCE=17.0; CORNER_RADIUS=2; WallThickness=0.75; ClipWidth=2.2; ClipDepth=0.75; alpha=asin((H-EZ)/BLX); beta=asin(H/FLZ); gamma=90-asin((0.5*(AY...
glb/cad_c82143d3175d.glb
Create a keyboard keycap for an IBM Model M. The main body is a hollowed rectangular shell with rounded corners, measuring 19mm by 18.5mm at the base and 12.75mm in height. The walls are 0.75mm thick. Centered at the bottom of the shell, construct a cylindrical shaft assembly. The shaft consists of an outer cylinder w...
WallThickness=0.75; AY=18.5; AX=19.0; BY=12.5; BLX=14.5; EZ=11.0; FLZ=14.0; H=12.75; CYL_OFF_Z=50; CYL_DEPTH=0.1; CLIP_X=2; CLIP_Y=0.75; CLIP_H=3*CLIP_Y; CORNER_RADIUS=2; SHAFT_OFF_Y=(AY-2*WallThickness)/2; INNER_GUARD_RADIUS=6.5; OUTER_GUARD_RADIUS=7.5; BLIND_SHAFT_OUTER_DIAMETER=4.0; BLIND_SHAFT_INNER_DIAMETER=2.0; S...
glb/cad_b04321060edc.glb
Create a keyboard keycap with a hollow interior. The outer shell is a rectangular block with dimensions 41mm in width (X), 22.5mm in depth (Y), and 12.75mm in height (Z). The top surface is slightly curved, and the vertical corners are rounded with a 2mm radius. Inside the hollow cavity, create a support structure con...
AY=22.5; AX=41.0; EXTRA_X=19.0; EXTRA_Y=4.5; EXTRA_Z=5.5; BY=17.0; BLX=33; EZ=11.0; FLZ=15.0; H=12.75; SLOPE_X=AX/2; SLOPE_Z=2.0; CYL_OFF_Z=40; CYL_DEPTH=1; CLIP_X=2; CLIP_Y=0.75; CLIP_H=3*CLIP_Y; CORNER_RADIUS=2; INNER_GUARD_RADIUS=6.5; OUTER_GUARD_RADIUS=7.5; BLIND_SHAFT_OUTER_DIAMETER=4.0; BLIND_SHAFT_INNER_DIAMETER...
glb/cad_9e4c17ef2f9a.glb
Create a drainage valve cap consisting of two stacked cylindrical sections. Start with a wide base cylinder 9mm in diameter and 5.75mm in height. Atop this base, add a narrower cylinder 6.8mm in diameter and 8.2mm in height. Hollow out the center of the combined structure to create a shaft. The cutout begins near the...
$fn=80; springPlateau = 1; baseHeight = 5.75; tolerance = 0.2; grabHeight = 8.2; grabDiameter = 6.8; baseDiameter = 9; thickCutout = 5; thinCutout = 4.5; cylinder(h=springPlateau,d=5.75); difference() { union() { translate([0,0,springPlateau]) cylinder(h=baseHeight,d=baseDiameter); translate([...
glb/cad_5d487e3d3c30.glb
Create a parametric zip tie holder and anchor. Start with a rectangular base block measuring 19mm in length, 10mm in width, and 12mm in height, with all vertical edges rounded by a 2mm radius. Center a vertical screw hole through the block. This hole begins with a 3.5mm diameter shaft. At a height of 2mm from the bot...
cable_diameter = 8; screw_diameter = 3.5; screw_head_diameter = 6; screw_head_height = 3; countersunk = true; zip_tie_width = 3; zip_tie_height = 2; width = screw_head_diameter + 4; height = min(cable_diameter / 2 + screw_head_height + 2, 12); length = screw_head_diameter + 6 + zip_tie_width; $fa = 4; $fs = 0.4; m...
glb/cad_d5bad830fa6b.glb
Create a set of mechanical joint components for an articulated figure. First, construct a wheel assembly by combining three stacked cylinders. The bottom cylinder has a radius of 10mm and a height of 5mm; the middle cylinder has a radius of 10mm and a height of 5mm, positioned 5mm above the base; and the top cylinder...
include <pins.scad> tolerance = 0.3; plate(); module pins() { translate([-21, 0, 0]) pinpeg(h=20); translate([0, 0, 0]) pintack(h=11); translate([21, 0, 0]) pintack(h=11); } module wheel() { difference() { union() { translate([0, 0, 10]) cylinder(h=5, r1=20/2, r2=17/2); translate([0, 0, 5]) ...
glb/cad_750475a79735.glb
Create a rubber foot by revolving a specific profile around a central axis. The foot has a total height of 10mm. The base is a flat circle with a diameter of 18mm. From the base, the outer wall rises vertically for 0.8mm before tapering linearly inward to a top diameter of 15mm. The center of the foot is hollowed out...
baseDiameter = 18; footHeight = 10; endDiameter = 15; baseStep = 0.8; screwDiameter = 4; headDepth = 6; headDiameter = 8; detail = 180; baseRad = baseDiameter / 2; endRad = endDiameter / 2; screwRad = screwDiameter / 2; headRad = headDiameter / 2; profile_points = [ [screwRad, 0], [baseRad, 0], [ba...
glb/cad_1b687ca7e521.glb
Create a solder wire spool adapter by constructing a cylinder with a diameter of 20mm and a height of 48mm, centered on the origin. Remove a smaller concentric cylindrical hole with a diameter of 5mm that passes completely through the center along the vertical axis, extending slightly beyond the main height to 49mm to ...
diameter=20; width=48; $fa=6; $fs=0.5; difference() { cylinder(h=width,d=diameter,center=true); cylinder(h=width+1,d=5,center=true); }
glb/cad_6798c7d74867.glb
Create a label holder consisting of a front frame and a rear anchor. Start with the front frame: create a rounded rectangular slab with overall dimensions of 93mm width, 32mm height, and 2.7mm depth. The corners of this slab should have a 2mm radius. Carve out a centered rectangular pocket from the face of this slab, l...
$fs = 0.1; labelWidth = 89; labelHeight = 28; labelCornerRadius = 1; frameWidth = 2; frameDepth = 0.7; framePadding = 0.5; frameCornerRadius = 2; backingThickness = 2; anchorDepth = 16.3; anchorFrontWidth = 50; anchorRearWidth = 20; anchorBottomWidth = 15; anchorHeight = 30; anchorTopThickness = 2.0; anchorHoleFrame...
glb/cad_d7e8fa25ab7c.glb
Create a fractal "Fairy Crystal" based on a 3rd-order Sierpinski pyramid. Start with a base unit that is a square-based pyramid with a height of 2.5mm and a base width of 2.5mm. Recursively arrange these pyramids so that five smaller versions form the vertices and center of a larger pyramid, repeating this process for ...
order = 3; size = 2.5; eps = 0.25; epsr = 0.05; epsh = 2.5*eps; sq2 = 1.41421356; epsl = 0.5; epsy = 0.12; module ss(ord){ k = pow(2,ord); w = size *k; if (k<1){ rotate([0,0,45])cylinder(r1=size,r2 = epsr, h = 1.0*size, $fn=4); } else { difference() { union () { ...
glb/cad_4989f57044c6.glb
Create a fractal "Fairy Crystal" based on a 3rd-order Sierpinski pyramid. Start with a base unit that is a 4-sided pyramid with a square base, where the height is equal to the base width. Construct the fractal by recursively replacing the pyramid with five smaller versions of itself: four at the corners of the base a...
order = 3; size = 2.5; eps = 0.25; epsr = 0.05; epsh = 2.5*eps; sq2 = 1.41421356; epsl = 0.5; epsy = 0.12; module ss(ord){ k = pow(2,ord); w = size *k; if (k<1){ rotate([0,0,45])cylinder(r1=size,r2 = epsr, h = 1.0*size, $fn=4); } else { difference() { union () { ...
glb/cad_62419d8d32ee.glb
Create a fractal "Fairy Crystal" based on a Sierpinski pyramid. The core geometry is a recursive fractal of order 3, where the smallest constituent pyramids have a base size of 2.5mm and a height of 2.5mm. Each smallest unit is a 4-sided pyramid (a square-based pyramid with a low facet count). Construct the fractal by...
order = 3; size = 2.5; eps = 0.25; epsr = 0.05; epsh = 2.5*eps; sq2 = 1.41421356; epsl = 0.5; epsy = 0.12; module ss(ord){ k = pow(2,ord); w = size *k; if (k<1){ rotate([0,0,45])cylinder(r1=size,r2 = epsr, h = 1.0*size, $fn=4); } else { difference() { union () { ...
glb/cad_1c4d28463e67.glb
Create a fractal "Fairy Crystal" based on a 3rd-order Sierpinski pyramid. The base unit is a square-based pyramid with a height of 2.5mm and a 4-sided facet resolution. Construct the fractal by recursively arranging five of these smaller pyramids to form a larger pyramid, repeating this process for three orders. The ...
order = 3; size = 2.5; eps = 0.25; epsr = 0.05; epsh = 2.5*eps; sq2 = 1.41421356; epsl = 0.5; epsy = 0.12; bottom=6.0; module s7(){ scale([1,1,0.97]) difference(){ union(){ difference() { ss(order-1); translate([-120,-120,-3])cube([240,240,3]); } mi...
glb/cad_76ec768487fe.glb
Create a Fractal Fairy Crystal Box designed to hold five four-sided crystals. The main body is a pentagonal tray with a radius of 31.5mm and a height of approximately 7mm. The tray features a central pentagonal bore with a radius of 15.5mm and a height of 60mm. Around the outer perimeter, create five equidistant rece...
order = 3; size = 2.5; eps = 0.25; epsr = 0.05; epsh = 2.5*eps; sq2 = 1.41421356; epsl = 0.5; epsy = 0.12; layer = 0.3; thick = 17.5; z=3; tdeep = 1.5; z0=-26; bottom=6.0; trayz=3; zfoot=8; zrise=2; module s7(){ scale([1,1,0.97]) difference(){ union(){ difference() { ss(order-1);...
glb/cad_cae06939374c.glb
Create a protective cap for a PL connector. Start by constructing an octagonal prism with a total height of 14mm. The base of this prism should be a 2mm tall octagonal section with a diameter of 15.6mm. Above this base, add a second octagonal section 12mm in height that tapers slightly from a diameter of 19.6mm at the ...
difference(){ union(){ translate([0, 0, 2]) cylinder(h=12-2, d1=15.6+4, d2=15.6+0.5+4, $fn=8, center=false); translate([0, 0, 0]) cylinder(h=2.01, d1=15.6+0, d2=15.6+4, $fn=8, center=false); } translate([0, 0, 2]) cylinder(h=12, d1=15.6-0.2, d2=15.6+0.5, $fn=200, center=false); }
glb/cad_5b1fad0d2227.glb
Create a smartmeter board case consisting of a cylindrical container with a flat base. The main body is a cylinder with an outer diameter of 27.5mm and a total height of 12mm. The bottom of the case is a solid circular baseplate with a radius of 20mm and a thickness of 4mm. Inside the case, create a hollow cavity to a...
qo=0.01; $fn=55; function qo2() = 2*qo; module case(){ difference(){ union(){ cylinder(h=9+3,d=1+26.5+1); cylinder(h=4,r=20); }; translate([0,0,6]) board(); translate([-3.5,7,4+qo]) linear_extrude(2) text("T",size=8,halign="center",valign="center",font="A...
glb/cad_3c07a039495b.glb
Create a model of a rocket-like projectile body with the following geometric specifications. Start with a main central body that is 206mm long, 7.3mm wide, and 8mm high. This body should feature a track-like profile along its length. At the rear, add a rudder assembly consisting of a vertical fin and two horizontal fi...
$fs = 0.1; $fa = 0.1; main_width = 7.3; main_track_x = 0.8; main_track_y0 = 0.9; main_track_y1 = 0.9; main_height = 8; main_length = 206; inset_angle = 30; inset_length = 1.4; fin_y_offset = 10.5; fin_y_size_inside = 24; fin_y_size_outside = 14; fin_x_size = 7; fin_thickness = 0.4; fin_thickness_thick = 0.6; lower_f...
glb/cad_f44fa269da5b.glb
Create a rocket-style projectile body consisting of a main cylinder and two stabilizing fins. Start by creating a central cylinder with a diameter of 10.4mm and a height of 40mm. Add two rectangular fins to the sides of the cylinder. Each fin should have a thickness of 0.8mm and a height of 55mm. Position the fins so...
hole_diameter = 9.63; height = 40; height_taper = 30; fin_height_offset = 5; fin_height = 55; fin_width = 8; nozzle_width = 0.4; fin_rotate = 0; fin_trimscale_bot = 1; fin_trimscale_top = 2.5; outside_diameter = hole_diameter + (nozzle_width * 2); cylinder (d = outside_diameter, h = height, $fn = 3600); module fins ...
glb/cad_b75b7672d3b4.glb
Create a projectile model consisting of a cylindrical base, a conical tip, and two stabilizing fins. Start by creating a main cylinder with a diameter of 10.43mm and a height of 30mm. On top of this cylinder, add a cone with a base diameter of 10.43mm that tapers to a point over a height of 30mm. Add two symmetrical...
hole_diameter = 9.63; height = 30; height_taper = 30; fin_height_offset = 5; fin_height = 55; fin_width = 8; nozzle_width = 0.4; fin_rotate = 0; fin_trimscale_bot = 1; fin_trimscale_top = 2.5; outside_diameter = hole_diameter + (nozzle_width * 2); cylinder (d = outside_diameter, h = height, $fn = 3600); translate ([0...
glb/cad_6fc965971134.glb
Create a model of a model rocket body. Start with a main central fuselage that is 140mm long, 7.5mm wide, and 8mm high. The fuselage should feature a recessed track along its length. At the rear of the fuselage, add a rudder. The rudder is a thin vertical plate with a thickness of 0.4mm. Its shape is a polygon with a ...
$fs = 0.1; $fa = 0.1; main_width = 7.5; main_track_x = 0.8; main_track_y0 = 0.9; main_track_y1 = 0.9; main_height = 8; main_length = 140; inset_angle = 30; inset_length = 1.4; fin_y_offset = 10.5; fin_y_size_inside = 24; fin_y_size_outside = 14; fin_x_size = 7; fin_thickness = 0.4; fin_thickness_thick = 0.6; lower_f...
glb/cad_95327069f5e5.glb
Create a model of a rocket-like fuselage with fins. Start with a main central body that is 140mm long, 7.5mm wide, and 8mm high. The body should feature a recessed track along its length. At the rear, add a rudder: a thin vertical plate 0.4mm thick, with a height based on the average of 24mm and 14mm, and a width of 7...
$fs = 0.1; $fa = 0.1; main_width = 7.5; main_track_x = 0.8; main_track_y0 = 0.9; main_track_y1 = 0.9; main_height = 8; main_length = 140; inset_angle = 30; inset_length = 1.4; fin_y_offset = 10.5; fin_y_size_inside = 24; fin_y_size_outside = 14; fin_x_size = 7; fin_thickness = 0.4; fin_thickness_thick = 0.6; lower_f...
glb/cad_0ec895f8ab6d.glb
Create a model of a model rocket fuselage with fins. Start with a main central body that is 140mm long, 7.5mm wide, and 8mm high. This body should feature a recessed track along its length. At the rear, add a rudder and two symmetrical fins. Each fin is 0.4mm thick, with an inner length of 24mm and an outer length of ...
$fs = 0.1; $fa = 0.1; main_width = 7.5; main_track_x = 0.8; main_track_y0 = 0.9; main_track_y1 = 0.9; main_height = 8; main_length = 140; inset_angle = 30; inset_length = 1.4; fin_y_offset = 10.5; fin_y_size_inside = 24; fin_y_size_outside = 14; fin_x_size = 7; fin_thickness = 0.4; fin_thickness_thick = 0.6; lower_f...
glb/cad_af3277c1baa3.glb
Create a hollow tapered cylinder with a total height of 80mm. The outer diameter at the bottom is 10.4mm and tapers to 10.4mm at the top. The interior is a hollow shaft with a constant diameter of 9.6mm running through the center. From the bottom of the object, at a height of 5mm, add two opposing rectangular fins. E...
hole_diameter_bot = 9.60; hole_diameter_top = 9.60; height = 80; height_taper = 30; fin_height_offset = 5; fin_height = 55; fin_width = 8; nozzle_width = 0.4; fin_rotate = 0; fin_trimscale_bot = 1; fin_trimscale_top = 2.5; diameter_rod = 4.00; height_rod = 20; outside_diameter_bot = hole_diameter_bot + (nozzle_width ...
glb/cad_42b06734917b.glb
Create a top sight extension rail. Start with a main rail body that is 166mm long and 12mm high. Add a lower mounting block centered along the rail. This block has an outer width of 32.5mm and an outer height of 30mm, with an inner cavity measuring 26.9mm wide and 25mm high. Extend the bottom of this mount with a low...
$fn = 64; ptr_below_width = 15.5; ptr_middle_width = 21.0; ptr_above_width = ptr_below_width; ptr_base_height = ptr_middle_width - ptr_below_width; ptr_above_height = 1.0; ptr_total_width = 30.0; ptr_below_height = 6.0; ptr_total_height = ptr_above_height + ptr_base_height + ptr_below_height; mate_round_rad = 3.0; gri...
glb/cad_149df626490d.glb
Create a hollow cylindrical enclosure with a height of 60mm. The cylinder should have a consistent outer diameter of 10.36mm and a consistent inner hole diameter of 9.56mm, resulting in a wall thickness of 0.4mm. The top and bottom faces should be flat and parallel.
hole_diameter_bot = 9.56; hole_diameter_top = 9.56; height = 60; height_taper = 30; fin_height_offset = 5; fin_height = 55; fin_width = 8; nozzle_width = 0.4; fin_rotate = 0; fin_trimscale_bot = 1; fin_trimscale_top = 2.5; outside_diameter_bot = hole_diameter_bot + (nozzle_width * 2); outside_diameter_top = hole_diame...
glb/cad_6f0c3284fb19.glb
Create a tapered cylindrical enclosure for a Modular SlingXBow shaft. The main body is a cylinder with a total height of 60mm. The bottom diameter is 10.43mm and the top diameter is 10.43mm, creating a straight vertical wall. The interior is hollowed out with a consistent hole diameter of 9.63mm running through the cen...
hole_diameter_bot = 9.63; hole_diameter_top = 9.63; height = 60; height_taper = 30; fin_height_offset = 5; fin_height = 55; fin_width = 8; nozzle_width = 0.4; fin_rotate = 0; fin_trimscale_bot = 1; fin_trimscale_top = 2.5; outside_diameter_bot = hole_diameter_bot + (nozzle_width * 2); outside_diameter_top = hole_diame...
glb/cad_ea1a289ab5fd.glb
Create a projectile model consisting of a central shaft and two stabilizing fins. Start by creating a vertical cylinder with a diameter of 10.43mm and a height of 65mm. Position two rectangular fins on opposite sides of the shaft. Each fin should have a width of 8mm, a height of 50mm, and a thickness of 0.8mm. Place ...
hole_diameter = 9.63; height = 65; fin_height_offset = 15; fin_height = 50; fin_width = 8; nozzle_width = 0.4; fin_rotate = 3.6; fin_trimscale = 1; fin2_height_offset = 60; outside_diameter = hole_diameter + (nozzle_width * 2); cylinder (d = outside_diameter, h = height, $fn = 3600); translate ([0,0,fin_height_offse...
glb/cad_99d8912302e8.glb
Create a projectile model consisting of a central shaft and two sets of stabilizing fins. Start by creating a vertical cylinder with a diameter of 10.43mm and a height of 110mm. Add two sets of fins to this shaft. The first set is positioned 15mm from the bottom, and the second set is positioned 60mm from the bottom. ...
hole_diameter = 9.63; height = 110; fin_height_offset = 15; fin_height = 50; fin_width = 8; nozzle_width = 0.4; fin_rotate = 3.6; fin_trimscale = 1; fin2_height_offset = 60; outside_diameter = hole_diameter + (nozzle_width * 2); cylinder (d = outside_diameter, h = height, $fn = 3600); translate ([0,0,fin_height_offs...
glb/cad_f7d2636f9cc6.glb
Create a rocket-style projectile consisting of a central cylinder and three sets of stabilizing fins. The main body is a cylinder with a diameter of 10.4mm and a height of 110mm. Add three pairs of fins distributed along the height of the cylinder. The first pair is positioned 10mm from the bottom, and the second pair...
hole_diameter = 9.63; height = 110; fin_height_offset = 10; fin_height = 32; fin_width = 8; nozzle_width = 0.4; fin_rotate = 5.0; fin_trimscale = 0.9; fin2_height_offset = 35; fin3_height_offset = 60; fin_top_rotate = 3.0; fin_top_height = 46; outside_diameter = hole_diameter + (nozzle_width * 2); cylinder (d = outsi...
glb/cad_47825eff0b04.glb
Create a model of a model rocket fuselage with fins and a nose cone. Start with a main central body that is 170mm long, 7.5mm wide, and 8mm high. This body should feature a recessed track along its length. At the rear, add a rear skirt consisting of several small rectangular plates (approximately 1.6mm x 10mm x 0.2mm)...
$fs = 0.1; $fa = 0.1; main_width = 7.5; main_track_x = 0.8; main_track_y0 = 0.9; main_track_y1 = 0.9; main_height = 8; main_length = 170; inset_angle = 30; inset_length = 1.4; fin_y_offset = 10.5; fin_y_size_inside = 24; fin_y_size_outside = 14; fin_x_size = 7; fin_thickness = 0.4; fin_thickness_thick = 0.6; lower_f...
glb/cad_23f0e8ace246.glb
Create a Solder Fan fume extractor enclosure. Start with a main outer body that is 220mm long, 40mm deep, and 20mm high. This body should have a central rectangular cutout to house a fan that is 180mm long, 35mm deep, and 35mm high, with the corners of both the outer body and the inner cutout rounded to radii of 3mm an...
$fn=60; fanLen = 180; fanDepth = 35; fanRoundingRad = 10; rimLen = 20; rimDepth = fanDepth + 5; rimRoundingRad = 3; bananaHeadLen = 21.1; bananaHeadDia = 10.3; bananaRodLen=20; bananaRodDia=5; bananaNutLen=4.1; bananaNutDia=9.2; bananaNutSidelen = bananaNutDia/2.0; bananaNutInsideDia = (sqrt(3) * bananaNutSidelen);...
glb/cad_ed035014bdb8.glb
Create a Magnetic Yes/No marker tag by constructing a rounded square plaque measuring 50mm by 50mm with a total thickness of 4mm. The main body is formed by the convex hull of four 10mm diameter cylinders positioned at the corners, specifically centered at (6,6), (44,6), (6,44), and (44,44). Embed four circular holes...
magnet_dia = 6.5; magnet_height = 3; $fn=80; difference() { hull() { translate([6,6,0]) cylinder(d=10, h=0.1); translate([44,6,0]) cylinder(d=10, h=0.1); translate([6,44,0]) cylinder(d=10, h=0.1); translate([44,44,0]) cylinder(d=10, h=0.1); translate([5,5,1]) cylinder(d=10, h=2...
glb/cad_19c217806b64.glb
Create a Marine Instrument Cover designed as a hollow, thin-walled shell with a thickness of 2mm. The base is a rounded rectangle with a corner radius of 2.5mm, measuring 140mm in length and 87mm in width at the corners. The base should bow outward slightly, reaching a maximum length of 150mm and a maximum width of 98m...
rectl=140; rectw=87; overl=150; overw=98; cornrad=2.5; thick=2; tweakl=-0.5; tweakw=-0.1; recth=20; $fn=100; minkh=1; hl=(overl-rectl)/2; hw=(overw-rectw)/2; rl=((rectw*rectw)/4+hl*hl)/(hl*2); rw=(rectl*rectl/4+hw*hw)/(hw*2); dl=rl*2; dw=rw*2; angl1=2*asin(rectw/2/dl); angl2=2*asin(rectl/2/dw); driftl=dl/2*cos(angl1)-...
glb/cad_bc9dc001c8d9.glb
Create a bench stop for a Stanley workbench. Start by constructing a central vertical cylinder with a diameter of 19.8mm and a height of 36mm. Directly beneath this, add a second, shorter cylinder with a diameter of 20.8mm and a height of 6mm, positioned so that its center is 7mm below the center of the first cylinder....
rotate([170,0,0]) { difference() { cube([44,35,20],center=true); translate([22,0,0]) rotate([0,45,0]) cube([3,100,3],center=true); translate([-22,0,0]) rotate([0,45,0]) cube([3,100,3],center=true); translate([0,17.5,0]) rotate([0,45,90]) cube([3,100,3],center=true); translate([0,17.5...
glb/cad_2e4c63c1b6d6.glb
Create a versatile enclosure for Arduino MKR circuitry consisting of a main box and a separate lid. Construct the main box as a hollow rectangular shell with outer dimensions of 66mm length, 67mm width, and 17mm height, with a wall thickness of 2mm. At each of the four corners, integrate cylindrical supports with a r...
hw=67/2; hl=66/2; hh=17/2; hh2=6/2; TwoCards=false; pillarDecrement=0; RS232Hole=true; LEDHole=true; Is7805=true; $fn=30; translate([0,hw*2+10,-hh+hh2]) difference() { union() { pillars(pillarDecrement); minisupports(); difference() { cube([hl*2,hw*2,hh2*2],center=true); translate([0,...
glb/cad_1bb188eeeeb2.glb
Create a coffee grounds container by starting with a solid cube measuring 100mm in width, 100mm in depth, and 80mm in height. Hollow out the interior by removing a smaller centered block that is 94.6mm wide, 94.6mm deep, and 80mm high, leaving a wall thickness of 2.7mm on the sides. To create the open top, remove three...
difference() { block(); translate ([2.8,2.8,2.8]) scale([.946,.946,1]) block(); } module block() { difference() { cube ([100,100,80]); translate([0,50,-1]) rotate([0,0,55]) cube([100,80,102]); translate([-39,-85,-1]) rotate([0,0,45]) cube([1...
glb/cad_893eb14c919b.glb
Create a hyperboloid office pencil and pen holder. The main body consists of 16 intersecting cylinders arranged in a circular pattern. Each cylinder has an outer radius of 7.5mm (4.5mm pen radius plus 3mm thickness) and is positioned with its center 46mm from the central axis of the holder. Tilt each cylinder 30 degree...
holder_radius = 46; holder_thickness = 3.0; holder_height = 30; tube_bottom_thickness = 1; pen_count = 16; pen_radius = 4.5; pen_length = 150; rotx = 30; rotz = -60; countr = 0; { countr = 0; for (a=[1:360/pen_count:360]) { rotate([0,0,a]) translate([holder_radius,0,0]) rotate([rotx,0,...
glb/cad_881123bc9b0d.glb
Create a mounting bracket for a printer extruder motor. Start with a main rectangular base measuring 45mm wide, 63mm long, and 3.2mm thick. Add two vertical ridges, each 2.4mm wide and 5.2mm high, running the full 63mm length of the base; position one ridge along the left edge and one along the right edge. Remove six...
$fn=50; gr=31; difference() { cube([45,63,3.2]); hole(2.5,7.5,7.5); hole(2.5,7.5+gr,7.5); hole(2.5,7.5,7.5+gr); hole(2.5,7.5+gr,7.5+gr); hole(2.5,7.5,7.5+gr+15); hole(2.5,7.5+gr,7.5+gr+15); hole(11.1,7.5+gr/2,7.5+gr/2); } translate([-2.4,0,0.0]) cu...
glb/cad_539f3ad14eb8.glb
Create a bean hopper for a coffee machine. Start with a main rectangular body measuring 80mm wide, 153mm long, and 54mm high. Hollow out the center of this body by removing a rectangular block measuring 75.2mm by 148.6mm, starting from a height of 2mm and extending upwards, leaving a wall thickness of 2.4mm on the side...
block(); module block() { union() { translate([-0.5,-.5,0]) difference() { union() { translate([-2.9,-2.9,53.9]) cube([85.8,158.8,6]); translate([0.0,0,51.0]) chamfer(); } translate([0.4,0.4,40]) cube([80.0,153,20]); ...
glb/cad_9e6515e9bd06.glb
Create a bean hopper baffle by starting with a rectangular base measuring 74.2mm in width, 147.6mm in length, and 4mm in height. From this base, remove a large semi-cylindrical volume to create a wide opening. This cutout is formed by a cylinder with a radius of 100mm, positioned with its center at x=35.1mm and y=73.8m...
cube([74.2,147.6,4]); difference() { difference() { translate([35.1,73.8,-80]) rotate([0,90,0]) cylinder(h=4,r=100); translate([32,73.8,12]) rotate([0,90,0]) cylinder(h=10,r=4); } translate ([0,-50,-250]) cube([200,300,250]); }
glb/cad_963e7702c33b.glb
Create a PCB Probe arm. Start with a rectangular base that is 40mm long, 10mm wide, and 6mm thick. Round the two far ends of the rectangle with a radius of 5mm. At each rounded end, center a vertical hole with a diameter of 3.4mm (1.7mm radius) that passes completely through the thickness of the arm. To allow for wir...
use <./tslot.scad> use <./tplug.scad> use <./rounder.scad> zpost = 30; arm1x = 40; arm1angle = 45; arm2x = 40; arm2angle = 130; arm2x0 = arm1x*cos(arm1angle); arm2y0 = arm1x*sin(arm1angle); arm3x = 40; arm3angle = 130; arm3x0 = arm2x*cos(arm2angle); arm3y0 = arm2x*sin(arm2angle); start=48; x1 = 167.5+10.5+30; y1 ...
glb/cad_ead4732f36d4.glb
Create a PCB Probe mount consisting of a vertical post and an adjustable arm. Start with a base post that is a cube 12mm wide, 12mm deep, and 30mm high. At the top of this post, create a cylindrical protrusion with a diameter of 12mm and a height of 5mm. Within this cylindrical top, create a vertical hole 4mm in diam...
module rounder( r=10, h=10, f=22, extra=0.01 ){ difference(){ translate([-extra,-extra,-extra]) cube([r+extra,r+extra,h+2*extra]); translate([r,r,-1]) cylinder(r=r,h=h+2,$fn=f); } } module bevel(x=1,y=1,h=10){ linear_extrude(height=h) polygon(points=[[0,0],[x,0],[0,y]]); } rounder(); translate([0,20,0]) ...
glb/cad_156f275635ad.glb
Create a T-slot plug consisting of a rounded square cap and integrated tabs. Start with a main square body 30mm wide, 30mm deep, and 3mm thick, with all corners rounded to a 1.5mm radius. Remove a 32mm square section from the bottom of this body, leaving only a thin 3mm perimeter wall and the rounded corners. Attached...
module tab(z2=6){ pts=[ [0,6], [4.7,6], [8.2,9.6], [8.2,13], [4.1,13], [4.1,15], [0,15] ]; translate([0,0,-z2]) linear_extrude(height=z2,scale=1.015) offset(r=0.2,$fn=44) offset(r=-0.4) union(){ polygon(pts); mirror([1,0,0]) polygon(pts); } } module tplug(type=1,tabs=4){ rx=1.5; z1=3; if(type==1){ differen...
glb/cad_127b8eb1514a.glb
Create a model rocket display stand consisting of a central cylindrical pillar and three radiating support legs. Start by forming a central disc with a radius of 20mm and a height of 10mm. From the center of this disc, extend a vertical cylinder upwards with a radius of 9mm and a height of 65mm. To create the base supp...
$fa = 1; $fs = 0.4; legWidth = 10; legLength = 100; legHeight = 10; centerHeight = 10; centerRadius = 20; bottomPostRadius = 9.5; bottomPostHeight = 65; topPostHeight = 65; topPostRadius = 9; cube([legWidth, legLength, legHeight], center = true); rotate([0, 0, 90]) cube([legWidth, legLength, legHeight], center = true);...
glb/cad_d4d416352001.glb
Create a Stove Knob Cover adapter ring. Start with a main cylinder that has an outer diameter of 79mm, a height of 14mm, and a wall thickness of 5mm. Hollow out the center to create a ring, and remove a thin slice from the top and bottom faces to create slots. Cut a central vertical hole with a diameter of 14.8mm thro...
include <MCAD/boxes.scad> Select_Model="Stove"; Screw_Hole_Diam=4.4; Screw_Hole_Len=58; Griddle_Screws_Diam=8; Griddle_Screws_Len=24; Overlap_Lip=4; Ring_Diam=74; Ring_Upper_Slot=27; Ring_T_Slot=8.4; Ring_Height=10; Ring_Thick=5; Screw_Support_Length=20; Lock_Screw_Length=10; Lock_Screw_Diam=3.3; Screw_Guide_Top_Notc...
glb/cad_b71a45905463.glb
Create a serial adapter board case with an outer shell measuring 17.9mm in width, 22.7mm in depth, and 5.7mm in height. The shell should have walls 1mm thick, forming a hollow rectangular enclosure with a floor 1mm thick. On the bottom face, center a rectangular cutout 13.5mm wide and 3mm deep to allow for a USB cable....
board_w = 15.7; board_h = 20.5; board_d = 1.5; clearance = 0.1; under_clearance = 2; wall = 1; clip_w = 1; clip_d = 3; clip_h = 1; clip_clearance = 0.2; clip_offset = 20.5 - 3 - clip_d; under_support_size = 3; support_placements = [ [-clearance, -clearance], [board_w + clearance - under_support_size...
glb/cad_665442dd6d8f.glb
Create a spool holder consisting of a flat plate with two holes. Start by creating two cylinders, each with a diameter of 22mm and a height of 10mm, and position them 122mm apart from each other along one axis. Enclose these two cylinders within a convex hull to form a single solid, rounded rectangular plate that is 10...
hole_distance=122; hole_height=30; hole_diameter=12; thickness=10; tollerance=0.2; fs=128; difference(){ hull(){ translate([hole_height/2,-hole_distance/2,0])cylinder(h=thickness, d=hole_diameter+thickness, center=true); translate([-hole_height/2,+hole_distance/2,0])cylinder(h=thickness, d=hole_diameter+thickn...
glb/cad_5ec74f3ba739.glb
Create a set of two sewing corner rounding guides, each 1mm thick. The first guide is a 90-degree pie slice with a radius of 100mm. Remove five concentric curved channels from this slice, each 2mm wide, centered at radii of 46mm, 56mm, 66mm, 76mm, and 86mm. On the straight edge of this guide, emboss the numbers 5, 6, 7...
use <MCAD/2Dshapes.scad> use <MCAD/layouts.scad> list(110) { union() { linear_extrude(1) difference() { pieSlice(100, 0, 90); translate([5, 5]) { donutSlice(45, 47, 0, 90); donutSlice(55, 57, 0, 90); donutSlice(65, 67, 0, 90); ...
glb/cad_2e2fc4466a4f.glb
Create a universal bicycle chain guard consisting of two concentric circular disks of different thicknesses. First, create a wide, flat annular ring with an outer diameter of 180mm, an inner diameter of 110mm, and a height of 2mm. Centered on top of this base, add a second, narrower annular ring with an outer diameter ...
difference() { union() { linear_extrude(2) difference() { circle(d=180); circle(d=110); } linear_extrude(6) difference() { circle(d=130); circle(d=110); } } for (a = [0 : 360/12 : 360]) { rotate(a) translate([60, 0]) cyl...
glb/cad_1b930531bece.glb
Create a Dig2Analog enclosure consisting of a hollow rectangular box. The outer dimensions of the shell are 45.2mm wide, 47.5mm long, and 22.2mm high. The walls and the bottom base are 2mm thick. The interior cavity is 41.25mm wide and 45mm long, leaving a 2mm wall thickness around the sides. Inside the enclosure, add...
hole_size = 1.5; holder=false; fudge_factor = 1.1; wall_size = 2; module enclosure(length = 45, width = 41.25, bottom = 1.5, height = 18.5, wall = wall_size, standoffs = [[3.5,3.375],[3.5+34.25,3.375],[3.5+34.25,3.375+38.25],[3.5,3.375+38.25]]) { outer_shell = [(width*fudge_factor)+2*wall, (length)*fudge_factor+2...
glb/cad_7ba4e1ca1806.glb
Create a Raspberry Pi Zero W 2 OctoPrint stand. Start with a rectangular base measuring 126.67mm in length, 40mm in width, and 8mm in thickness. At the rear of the base, construct a vertical support block 40mm wide and 40mm high. Within this block, create a cylindrical hole with a diameter of 25mm and a depth of 6.5m...
back_width = 40.0; back_length = 190.0; thickness = 8.0; coin_thickness = 1.5; coin_hole_depth = coin_thickness * 4 + 0.5; coin_hole = 25.0; base_length = back_length / 3 * 2; pi_thickness = 13.5; pi_bracket_lip = 7.0; pi_width = 37.5; pi_length = 70.0; small_support_points = [ [0,0], [thickness, 0], [...
glb/cad_1160f68a483b.glb
Create a half pin by constructing a rounded bar with a flat bottom. The main body consists of a cylinder 45mm long with a diameter of 15mm, capped at both ends by hemispheres with a 15mm diameter. The entire shape is then sliced in half along its longitudinal center, removing the bottom half to leave a flat base. At ...
pin_width = 15; pin_length = 60; hole_diameter = 5; hole_countersink_diameter = 12; hole_countersink_depth = 3; sphere_offset_x = ((pin_length - pin_width) / 2); module screwHole() { cylinder(h = pin_width, d = hole_diameter, center = true, $fn = 36);}; module screwCountersink() { cylinder(h = hole_countersink_dept...
glb/cad_65ff464e80d8.glb
Create a customizable grommet consisting of a main body and a wider top flange. First, construct the main body as a rounded rectangular prism with a total length of 57mm, a width of 19mm, and a height of 12mm. The ends of this body should be semicircular with a radius of 9.5mm. Next, create a flange that sits on top ...
plug_width = 19; plug_length = 57; depth = 12; thickness = 3; flange_overlap = 6; flange_thickness = 3; module Plug() { radius = plug_width / 2; cylinder (depth, radius, radius); translate([0, - plug_width / 2, 0]) { cube([plug_length - plug_width, radius * 2, depth]); }; translate(...
glb/cad_e2ca907c2946.glb
Create a keyed cutout for an IEC320 C14 socket within a rectangular plate. Start with a solid rectangular block measuring 55mm wide, 38mm high, and 2mm thick. From the center of this block, remove a central rectangular volume measuring 47.8mm wide and 34mm high that extends through the full 2mm thickness. Within this...
outer_w = 47.8; outer_h = 27.8; module body_cut(thickness, center=false){ if (!center){ polygon(points=[ [0,0], [41.4, 0], [outer_w, 6.15], [outer_w, 6.15 + 15.4], [41.4, outer_h], [0, outer_h] ]); } else { translate([-47.8/2, -27.8/2, 0]...
glb/cad_34d78ae2b295.glb
Create a Laboratory Peristaltic Pump housing consisting of a bottom base, a top cover, and an internal mounting plate. Construct the bottom base as a hollow rectangular box with outer dimensions of 95mm width, 70mm length, and 50mm height, using a wall thickness of 2.4mm. On the rear face, center a circular hole with ...
$fn=32; bot_wid= 95; bot_len= 70; bot_height= 50; wall_thick= 2.4; plate_angle= 45; cutout_wid= 72.0; cutout_len= 39.4; cutout_push_len= 12; cutout_push_wid= 76.3; plate_thick= wall_thick; plate_wid= bot_wid; top_wid= bot_wid; top_len= bot_len; top_height= 36; top_len2= top_height / tan(plate_angle); plate_len= sqr...
glb/cad_57473231b0e0.glb
Create a Wave Interference Tray by constructing a rectangular plate with a base width of 100mm, a depth of 60mm, and a uniform thickness of 2mm. The top surface of the plate is not flat but is shaped by the interference of two circular wave patterns. Position the first wave origin at 20% of the width and 40% of the d...
plate_dims = [100, 10, 60]; mesh_divs = [200,120]; drop_pos = [[0.2, 0.4], [0.6, 0.5]]; drop_amp = [0.5,1]; drop_phase = [0, 0.5]; drop_dieoff = [0.9, 0.7]; drop_wavelength = [0.03,0.06]; plate_thickness = 2; sigma = 0.01; sgn = function(x) (x < 0) ? -1 : 1; waveFun = function(x, phaseProp) let(fPP = (phase...
glb/cad_9fed38fccaab.glb
Create a board game coin with a total height of 2mm. The main body is a cylinder with a specified diameter (for example, 15mm for a 1000 denomination or 20mm for a 5000 denomination). The coin features a recessed center to create a raised outer rim. To achieve this, remove a concentric cylinder from both the top and ...
$rim=3; $rim2=2; $dip=0.4; module coin(face_text="1000", diameter=15, font_size=3.4, height=2) { $inner=diameter-$rim; rotate([0,0,22]) union() { difference() { cylinder(d=diameter, h=height); translate ([0,0,height-$dip]) cylinder(d=$inner, h=$dip*2); translate ([0,0,-$dip]) cylinder(d=$inner, h=$dip*2...
glb/cad_25fef453e9b9.glb