Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a shelf-mounted spool holder drilling template. The main body is a rectangular block with a length of 96.5mm, a depth of 32mm, and a thickness of 1.7mm. Center a hole with a diameter of 2mm through the block. Position two additional 2mm diameter holes along the length of the block, spaced 115mm apart (calculat...
template_type_drilling = false; space_inbetween = 96.50; holder_height = 18.50; hole_distance = space_inbetween+holder_height; template_height = 16.10; template_depth = 32.00; template_strength = 1.70; hole_dia = 2.00; $fa = 1; $fs = 0.25; module temp...
glb/cad_49aea3387490.glb
Create a geometric object formed by the intersection of two cylinders. First, create a cylinder with a diameter of 7.3mm and a height of 23mm, centered on the origin. Rotate this cylinder 45 degrees around the X-axis and shift it along the Y-axis by 3.65mm. Then, create a second cylinder with a diameter of 23mm and a h...
$fa = 1; $fs = 0.25; epsilon = 0.01; dia = 7.30; height = 11.50; intersection() { rotate([45, 0, 0]) translate([0, dia/2, 0]) cylinder(d = dia, h = 2*height, center = true); #cylinder(d = 2*height, h = height+dia/2, center = false); }
glb/cad_61c4718318df.glb
Create an ESP32 Environmental Sensor Enclosure consisting of a main chassis and a separate cover. For the chassis, construct a base body by combining three primary sections. First, create a motion sensor holder as a block 22.7mm x 46mm x 5.75mm with a 36-facet cylindrical profile, subtracting a central volume of 25mm...
chassis(); module chassis() { translate([0, 10, 0]) difference() { union() { translate([0, -16, 12]) difference() { union() { cube([22.7, 46, 5.75], center = true); translate([0, -15, 0]) ...
glb/cad_3f0951a1e400.glb
Create a light guide mount for a Roco Blokkendoos. Start with a base block that is 21mm wide, 4mm deep, and 30mm tall. The top surface of this block is not flat but is curved with a radius of 32mm. Subtract two vertical cylindrical holes from the top surface, each with a diameter of 2.75mm. These holes should be cent...
$fn=144; square_guide = [3.56, 0, 2.7]; d_guide = 1 + 0.2; sep_round_guide = 9.5; d_calipers = 16; h_roof = 1; r_roof = d_calipers^2 / (8*h_roof) + (h_roof / 2); echo("r_roof=", r_roof); base = [20, 4, 30] + [1, 0, 0]; h_guides = r_roof - 4.65 + 0.55; led = [4.15, 3.7, 4.15]; sep_roof_align = (19.59 + 14.27) / 2; ...
glb/cad_598ea951312d.glb
Create a Raspberry Pi Pico board model starting with a main rectangular base measuring 51mm in length, 21mm in width, and 1mm in height. Centered on the top surface toward one end, add a smaller rectangular block measuring 5mm by 8mm with a height of 2mm. Pierce the main base with four mounting holes, each 2.1mm in d...
picoW(); module picoW() { translate([-(51-48.26)/2, -1.61, 0]) { difference() { union() { cube([51, 21, 1]); color("silver") translate([-1.3,(21-8)/2,1]) cube([5,8,2]); } mountingHoles(); pinHoles(17.78); pinHoles(2...
glb/cad_fcdbb7a97b14.glb
Create a water bowl spacer by first constructing a hollow cylinder with an outer diameter of 80mm, an inner diameter of 70mm, and a height of 20mm, centered on the origin. To refine the top edge, remove the material from the center of the cylinder using a sphere with a diameter of 132mm. Position this sphere so that it...
$fn=100; dI=70/2; thickness=10; dO=dI+thickness; h1=20; dS=132; difference () { difference () { cylinder (r=dO, h=h1, center=true); cylinder (r=dI, h=h1+1, center=true); } color ("red") translate([0,0,dS/2-6]) sphere(d=dS, $fa=5, $fs=0.1); }
glb/cad_cfceda091c07.glb
Create a 5.25" drive bay mount for three 40mm fans. The overall dimensions are 147mm wide, 160mm long, and 42mm high. Construct two side rails, each 4mm thick, 160mm long, and 42mm high, positioned at the outer edges of the 147mm width. In each rail, create four holes for M3 heat-set inserts. These holes are 5.1mm in ...
$fn=100; z_height = 42; y_length = 160; x_width = 147; edge_x_thickness = 4; fan_width = 40; fan_height = 40; fan_length = 20; front_y_thickness = 3; side_x_offset = x_width / 2 - edge_x_thickness / 2; fan_spacing = 7; fan_x_offsets = [0, -fan_width - fan_spacing, fan_width + fan_spacing]; front_y_offset = - y_length ...
glb/cad_804b1471ceb9.glb
Create a Braun ThermoScan and lens filters storage box consisting of a main container and a friction-fit lid. For the main container, create a base block with rounded corners (5mm fillet) and a total height of 37.5mm. Carve out two primary internal sections. The first is a large, complex hollow for the thermometer: i...
FILLET = 5; THANDLE_X = 41; THANDLE_Y = 123; THANDLE_Z = 35; THEAD_X = THANDLE_X; THEAD_Y = 55; THEAD_Z = THANDLE_Z; TANGLE = 58; FNOTCH_X = cos(90-TANGLE)*THEAD_Y+sin(90-TANGLE)*THEAD_X - THANDLE_X; FNOTCH_Y = 25; FNOTCH_Z = THANDLE_Z; BOX_X = cos(90-TANGLE)*THEAD_Y + sin(90-TANGLE)*...
glb/cad_44d3d44a5138.glb
Create an adapter plate for a bike doll seat consisting of a rectangular base and a central mounting cylinder. Start by creating a rectangular plate with dimensions 125mm in width, 70mm in length, and 5mm in height. The corners of this plate should be rounded with a radius of 2.5mm. Remove six circular holes, each wit...
mount_h = 22; mount_d = 25; plate_w = 125; plate_l = 70; plate_h= 5; holes_d = 5; difference() { hull() { translate([plate_w/2-holes_d/2, plate_l/2-holes_d/2 ,plate_h/2]) cylinder($fn=128, plate_h, holes_d/2, holes_d/2, center = true); translate([plate_w/2-holes_d/2, -plate_l/2+holes...
glb/cad_89186e631eaf.glb
Create a dust collection adapter that transitions from an oval base to a circular top. Start by creating a hollow base section with a height of 10mm and a wall thickness of 1.67mm. The outer profile of this base is a stadium shape formed by the hull of two circles with diameters of 23mm, positioned 17.5mm apart along t...
a_outer_x = 23; a_outer_y = 40.5; a_outer_z = 10; b_inner_diameter = 32; b_outer_z = 15; middle_z = 15; wall = 1.67; $fn = 64; b_outer_diameter = b_inner_diameter + 2 * wall; a_cpos = [[0, (a_outer_y - a_outer_x) / +2],[0, (a_outer_y - a_outer_x) / -2]]; linear_extrude(a_outer_z) difference() { shape_a(); ...
glb/cad_57b0997473d3.glb
Create a liner dryer consisting of a cylindrical sleeve mounted on a rounded base. Start by creating a solid base that is a combination of a cylinder with a diameter of 66mm and a height of 60mm, merged with a torus-like ring formed by rotating a circle of 15mm radius around the center axis. Within this base, center a ...
$fn =100; diametre_tube =32.5 ; difference (){ corps(); color ("red" ) translate([0,0,5])cylinder ( d=diametre_tube , h= 400 ); translate ([0,-1,30])cube ([30,2,80] ); translate ([21,5,43]) rotate([90,0,0])cylinder ( d=3, h=100); translate ([21,5,43]) rotate([-90,0,0])cylinder ( d=6, h=100,$fn=6.6); trans...
glb/cad_ed4bd6b09385.glb
Create a liner dryer stand consisting of a central vertical socket and three radiating support legs. Start by creating a central cylinder with an outer diameter of 38.5mm and a height of 60mm. Inside this cylinder, create a concentric hollow bore with a diameter of 32.5mm that extends through the top to hold a pipe. C...
diametre_tube =32.5 ; $fn = 100; difference (){ corps(); color ("red" ) translate([0,0,5])cylinder ( d=diametre_tube , h= 400 ); translate ([0,-1,30])cube ([30,2,80] ); #translate ([21,5,43]) rotate([90,0,0])cylinder ( d=3, h=100); #translate ([21,5,43]) rotate([-90,0,0])cylinder ( d=6, h=100,$fn=6.6);...
glb/cad_04a19f852b5b.glb
Create a liner dryer holder consisting of a central cylindrical socket and three radiating support arms. Start by creating a central vertical cylinder with an outer diameter of 38.5mm and a height of 60mm. Inside this cylinder, remove a coaxial hole with a diameter of 32.5mm and a height of 400mm to accommodate a pipe....
diametre_tube =32.5 ; $fn = 100; difference (){ corps(); color ("red" ) translate([0,0,5])cylinder ( d=diametre_tube , h= 400 ); translate ([0,-1,30])cube ([30,2,80] ); #translate ([21,5,43]) rotate([90,0,0])cylinder ( d=3, h=100); #translate ([21,5,43]) rotate([-90,0,0])cylinder ( d=6, h=100,$fn=6.6);...
glb/cad_8e5fb4913523.glb
Create a Sushi Go! game insert by starting with a solid rectangular base measuring 140mm in width, 96mm in depth, and 34mm in height. Round the four vertical corners of this base with a radius of 9mm. Carve out two primary rectangular deck compartments, each 61mm wide and 96mm deep. Position the first compartment at ...
$fn = 100; err = 0.02; border = 2; finger_diameter = 30; fillet_radius = 10; test = false; box_x = 140; box_y = 96; box_z = 34; box_corner_radius = 9; deck_x = 61; hearts_x = box_x - border * 3 - deck_x * 2; hole_x = box_x - deck_x * 2 - border * 3; module fillet_shape(r) { difference() { square([r, r...
glb/cad_970124d5295c.glb
Create a Dexcom G6 Applicator Storage rack by starting with a solid rectangular block measuring 89.5mm in length, 57mm in width, and 55mm in height. From the top of this block, carve out three identical rectangular slots arranged in a row along the length. Each slot must be 87mm wide, 161.5mm deep (extending beyond the...
columns = 1; rows = 3; holeTolerance = 1.5; podOuterWidth = 85.5 + holeTolerance; podOuterHeight = 160 + holeTolerance; podWallThickness = 1.2 + holeTolerance; podBubbleWidth = 85.5-14 + holeTolerance; podBubbleHeight = 130 + 12 + holeTolerance; podBubbleThickness = 53 + holeTolerance; wallThickness = 2; baseThicknes...
glb/cad_9acc235e0c7f.glb
Create an Insulin Vial Holder consisting of a rectangular block base with a total height of 25mm. The base is composed of a grid of six identical cubic units arranged in two rows and three columns. Each unit is a cube with a side length of approximately 30.5mm. Within each individual unit, carve out two vertical cyli...
$fn = 100; columns = 3; rows = 2; vial_diameter = 24; vial_hole_height = 22; syringe_diameter = 7.1; syring_hole_height = vial_hole_height; wall_thickness = 2; base_thickness = 3; diagonal = vial_diameter + 2*syringe_diameter + 2*wall_thickness + 2*(sqrt(2)*(wall_thickness + syringe_diameter/2) - syringe_diameter/2)...
glb/cad_e5b2bc5428ff.glb
Create a Freestyle Test Strip Vial Holder by constructing a rectangular block and removing six cylindrical holes. The overall block should have a base thickness of 2mm and a total height of 27mm. The footprint of the block is a square measuring 36mm by 36mm, formed by a 3x2 grid of individual units. Each unit is a cube...
$fn = 100; columns = 3; rows = 2; vial_diameter = 27.2; vial_hole_height = 25; wall_thickness = 4.5; base_thickness = 2; length = vial_diameter + 2*wall_thickness; width = length; height = vial_hole_height + base_thickness; vial_hole_tx = length/2; vial_hole_ty = width/2; vial_hole_tz = base_thickness; module unit(...
glb/cad_eb794fafa7e9.glb
Create an OmniPod 5 Blister Pack Holder by starting with a solid rectangular block that is 91.5mm long, 22mm wide, and 45mm high. From the top of this block, remove a rectangular section to create a hollow cavity. This interior cutout should be 88.5mm long and 18.5mm deep, leaving a base thickness of 2mm and side walls...
columns = 1; rows = 1; holeTolerance = 0.5; podOuterWidth = 87.5 + holeTolerance; podOuterHeight = 96.1 + holeTolerance; podWallThickness = 0.7 + holeTolerance; podBubbleWidth = 72.5 + holeTolerance; podBubbleHeight = 82.2 + holeTolerance; podBubbleThickness = 18 + holeTolerance; wallThickness = 2; baseThickness = 2;...
glb/cad_04e1cc234573.glb
Create a guide frame for a horizontal mortiser. Start with a rectangular base measuring 203.2mm long, 50.8mm wide, and 6.35mm thick. Hollow out the center of this base by removing a smaller rectangle that leaves a wall thickness of 12.7mm on all sides. Pierce four holes completely through the base, each with a diamete...
inch=25.4; $fn=60; thik = inch/4; long = 8*inch; wide = 2*inch; bore = 3*inch/16; dent = inch/2; p750 = 3*inch/4; p625 = 5*inch/8; p375 = 3*inch/8; half = inch/2; quar = inch/4; difference(){ cube([long,wide,thik]); translate([dent,dent,0])cube([long-2*dent,wide-2*dent,thik]); translate([dent/2,wide/5,0])cylind...
glb/cad_8fa15b2bf8b9.glb
Create three identical pucks for a Horizontal Mortiser tool. Each puck is a short cylinder with a diameter of 19.05mm (3/4 inch) and a height of 6.35mm (1/4 inch). For each puck, remove a central vertical hole to accommodate a flat-head #8 wood screw. This hole consists of three coaxial sections: a narrow cylinder wi...
$fn = 120; inch = 25.4; translate([0,0,0])puck(); translate([24,0,0])puck(); translate([12,18,0])puck(); module puck(){ difference(){ cylinder(d=3*inch/4, h=inch/4); FH8(inch/4); } } module FH8(top){ cylinder(d=3,h=top); translate([0,0,top-6])cylinder(d1=3,d2=8.2,h=5); translate([0,0,top-1])cylinder...
glb/cad_c7aaed4db3bb.glb
Create a Matchfit Grid 8x8, which is a square base plate measuring 203.2mm by 203.2mm with a thickness of 15.875mm. On the top surface of the base, integrate four cylindrical pucks with a diameter of 19.05mm and a height of 25.4mm. Position these pucks at the following center coordinates (X, Y): (38.1mm, 38.1mm), (13...
inch = 25.4; $fn = 120; thik = inch/2 + 1; long = 8*inch; wide = 8*inch; puck_hite = 3*inch/4 + 1; puck_diam = 3*inch/4; dove_base = 7*inch/16 + 1; difference(){ union(){ cube([long,wide,thik]); translate([3*inch/2,3*inch/2,0]) cylinder(d=puck_diam,h=puck_hite); translate([11*inch/2,3*inch/2,0]) ...
glb/cad_9ae330c50fc8.glb
Create an L-shaped platform fence for a horizontal mortiser. The structure consists of two intersecting rectangular walls, both with a height of 19.05mm (3/4 inch) and a thickness of 3.175mm (1/8 inch). The first wall, which forms the side, is 104.775mm long (4 inches plus the thickness of the intersecting wall). The...
$fn = 30; inch = 25.4; high = 3*inch/4; thik = inch/8; long = 4*inch+thik; wide = 3*inch+thik; quar = inch/4; aith = inch/8; difference(){ union(){ cube([long,thik,high]); cube([thik,wide,high]); } translate([long/2,0,high/2]) rotate([-90,0,0]) cylinder(d=quar,h=aith); translate([0,wide/2,hig...
glb/cad_5decdbe80de4.glb
Create a truck for a horizontal mortiser. Start with a rectangular frame measuring 152.4mm long, 165.1mm wide, and 3.175mm thick. Hollow out the center of this frame by removing a rectangular section that leaves a border of 12.7mm on all sides. At each of the four corners of the frame, create a countersunk mounting ho...
$fn=30; inch = 25.4; long = 6*inch; wide = 13*inch/2; thik = inch/8; half = inch/2; difference(){ cube([long,wide,thik]); translate([half,half,0]) cube([long-inch,wide-inch,thik]); translate([inch/4,inch,0])No8Head(thik); translate([inch/4,wide-inch,0])No8Head(thik); translate([long-inch/4,inch,0])No8Hea...
glb/cad_552ef324d145.glb
Create a platform side fence for a horizontal mortiser. Start with a main rectangular slab measuring 104.3mm long, 3.175mm thick, and 19.05mm high. At each end of this slab, add a vertical rectangular tab that is 3.175mm wide, 19.05mm high, and 3.175mm thick, extending upwards from the main slab. Remove three cylindri...
$fn = 30; inch = 25.4; high = 3*inch/4; thik = inch/8; long = 4*inch+thik; wide = 3*inch+thik; quar = inch/4; aith = inch/8; lowe = high-quar; rotate([90,0,0]){ difference(){ union(){ cube([long,thik,high]); translate([-thik/2,0,(high-lowe)/2]) cube([thik,.6*wide,lowe]); translate([long...
glb/cad_49b1df25ea45.glb
Create a ramp for a horizontal mortiser tool. Start with a rectangular base measuring 177.8mm long, 76.2mm wide, and 6.35mm thick. Subtract two cylindrical holes from this base, each with a diameter of 57.15mm. Position the first hole's center at (38.1mm, 38.1mm, 0) and the second at (139.7mm, 38.1mm, 0). Along the ...
$fn=60; inch=25.4; base = inch/2; thik = inch/2; long = 7*inch; wide = 3*inch; thin = inch/4; diam = 3*inch/4; difference(){ cube([long,wide,thin]); translate([wide/2,wide/2,0])cylinder(d=diam,h=thin); translate([long-wide/2,wide/2,0])cylinder(d=diam,h=thin); } translate([0,0,0])long_lower(); translate([0,wide-...
glb/cad_408194e5f35e.glb
Create a side-track for a horizontal mortiser. Start with a rectangular base plate measuring 196.85mm long, 33.02mm wide, and 3.175mm thick. Hollow out the interior of the plate by removing a central rectangular section that is 196.85mm long and 25.4mm wide, leaving a border of 12.7mm on the sides and 6.35mm on the e...
$fn = 240; inch = 25.4; long = 31*inch/4; wide = inch/2; half = inch/2; thik = inch/4; quar = inch/4; thin = inch/8; p750 = 3*inch/4; diam = 8; difference(){ cube([long,long,thin]); translate([half,inch,0]) cube([long-inch,long-3*inch/2,thin]); translate([0,wide/2,thik]) rotate([0,90,0]) cylinder(...
glb/cad_5f2242c90524.glb
Create a router brace by starting with a rectangular block 127mm long, 25.4mm wide, and 44.45mm high. Carve a cylindrical cutout from the top center to accommodate a router body, with the cylinder having a diameter of 69mm and a depth of 25.4mm. At each end of the block, create vertical holes to house 1/4-20 bolts an...
$fn=120; inch = 25.4; thik = inch; half = inch/2; long = 5*inch; tall = 7*inch/4-inch/16; high = 2*inch-inch/16; p75i = 3*inch/4; diam = 69; inst = (long-diam)/2; difference(){ cube([long,thik,high]); translate([long/2,thik,high]) rotate([90,0,0]) cylinder(d=diam,h=thik); translate([inst/2,thik/2,0]...
glb/cad_9029a555a465.glb
Create a platform for a horizontal mortiser that measures 4 inches long, 3 inches wide, and 0.25 inches thick. Add two vertical struts, each 0.5 inches wide and 0.5 inches thick, positioned at the front and rear ends of the platform. Along the two long sides of the platform, create sawtoothed walls consisting of a se...
inch = 25.4; base = inch/2; wall = 2*base; wide = inch/2; half = inch/2; quar = inch/4; difference(){ union(){ cube([4*inch,3*inch,inch/4]); cube([half,3*inch,half]); translate([7*inch/2,0,0]) cube([half,3*inch,half]); difference(){ union(){ translate([0,0,0])teeth(); trans...
glb/cad_491cd27fc5e3.glb
Create a Gameboy Color AA cell adapter consisting of two parallel cylinders connected by a central bridge. Each cylinder must have a diameter of 14mm and a length of 47mm. Position the cylinders so there is a 1.5mm gap between them. Connect the two cylinders with a rectangular bridge that is 5mm high and spans the dis...
difference() { doubleAA(); translate([18,-12,-0.5]) mirror([1,0,0]) rotate([0,0,270]) resize(newsize=[22,0,1], auto=true) linear_extrude(1) text(text="GBC", size=7); } module doubleAA() { multiCellAdapter( cell_count = 2, cell_diam = 14, cell_length = 47, gap = 1.5, bridge_height = 5 ); }...
glb/cad_28d54d267fc8.glb
Create a nut driver for a horizontal mortiser. Start by creating a solid cylinder with a diameter of 16.5mm and a height of 45mm. The cylinder should have a low facet count to appear as a prism. From the top of this cylinder, remove a hexagonal hole with a flat-to-flat diameter of 13mm. This hexagonal cutout should be ...
difference(){ cylinder(d=16.5,h=45); translate([0,0,41])cylinder(d=13,h=5,$fn=6); }
glb/cad_d43037be31dd.glb
Create a riser for a horizontal mortiser router brace. The main body is a rectangular block measuring 127mm long, 25.4mm wide, and 12.7mm high. On the top surface, add a "grippy fence" that runs the full length and width of the block. This fence is created by forming a hull around four cylinders placed at the corners...
$fn = 120; inch = 25.4; p750 = 3*inch/4; half = inch/2; quar = inch/4; long = 5*inch; hite = half; cube([long,inch,hite]); translate([0,0,hite-quar])ramparts(); module ramparts(){ difference(){ hull(){ translate([0,0,0]) cylinder(d1=0.1, d2=quar, h=half); translate([long,0,0]) cylind...
glb/cad_c2a475ead999.glb
Create three alignment pins for a horizontal mortiser, each with a total height of 25.4mm. For the first pin, create a cylinder with a diameter of 6.35mm and remove a rectangular section measuring 6.35mm wide, 3.175mm high, and 6.35mm deep, positioned 19.05mm from the base. For the second pin, create a cylinder with a ...
$fn = 120; inch = 25.4; p750 = 3*inch/4; half = inch/2; p375 = 3*inch/8; quar = inch/4; difference(){ cylinder(d=quar, h=inch); translate([-inch/8,0,p750])cube([quar,inch/8,quar]); } translate([15,0,0]){ difference(){ union(){ cylinder(d=quar, h=half); translate([0,0,half])cylinder(d1=quar,d2=p3...
glb/cad_12f75f2f46b7.glb
Create a frame spacer for a horizontal mortiser. Start by constructing a base rectangular block that is 25.4mm wide, 25.4mm deep, and 12.7mm high. Centered on top of this base, add a second rectangular block that is 16.13mm wide and 25.4mm deep, with a height of 12.7mm, positioned so its front face aligns with the fron...
inch = 25.4; half = inch/2; push = 3*inch/16; quar = inch/4; aith = inch/8; thin = inch/16; p750 = 3*inch/4; difference(){ union(){ cube([inch,inch,half]); translate([push,0,half]) cube([5*inch/8,inch,half]); } translate([quar,aith,0]) cube([inch/2,p750,inch]); }
glb/cad_19d676bd0454.glb
Create a vacuum hose adapter by revolving a specific profile around a central axis. The profile consists of three connected sections. First, create a cylindrical base for the tool insertion with an inner diameter of 59mm and a wall thickness of 3mm, extending to a height of 30mm. At the top of this cylinder, add a 5mm ...
SawInnerDia=59; SawInsertionDepth = 30; Thk=3; HoseTipDia=44; HoseTaperDia=45.5; HoseTaperLen=46; SawStopDist=5; AngledSectionLength = 30; rotate_extrude(convexity = 10,$fn=200){ union(){ color("Red") {polygon(points=[[SawInnerDia/2,0],[SawInnerDia/2,SawInsertionDepth],[SawInnerDia/2,SawInsertionDepth-1],[...
glb/cad_ddcaf54968ad.glb
Create a LED strip diffuser channel. The main body is a long, hollowed-out rectangular housing designed to hold an LED strip. The exterior width is approximately 15.6mm, with a base thickness of 1.5mm. The interior features a recessed cavity for the LED strip and a series of internal baffles spaced every 6.94mm (base...
part="test_channel"; channel_tol=0.2; ew=0.4; max_half_strip_w=6; strip_t=3.4; strip_w=12; pcb_t=0.8; leds_per_m=144; leds_per_seg=36; short=0; pin_hole=2.2; outer_sleve_t=2; bracket_t=2; bracket_w=20; screw_head_d=6.5; screw_head_h=1.5; screw_hole_d=3; mount_clip=1; screw_head_shp=0; corner_angle=90...
glb/cad_459406d5f896.glb
Create a lid for an ESP32 box. Start with a rectangular plate measuring 102.4mm by 62.4mm with a thickness of 1.2mm, centered on the origin. Subtract four circular holes from the plate to create screw recesses. Each hole should have a diameter of 2.9mm and a depth that penetrates the plate. Add four cylindrical mou...
$fn=32; tol=0.2; pwr_d=4; sig_d=4; div_1=50; board_t=5.2; antenna_slot_space=3.5; antenna_slot_t=1; antenna_slot_shorten=5; board_w=28; board_l=60; box_w=100; box_l=board_l; box_h=board_w+pwr_d+1; box_t=1.2; lid_t=1.2; board_tab=5; board2_mounts=[10-box_w/2,-47/2,23,47]; board2_mount_id=1.9; board2_mount_od=board2...
glb/cad_b235b8cb9285.glb
Create a G Hook fastener with a total thickness of 5mm. Start with a solid rectangular base measuring 29mm in width and 31.5mm in length. From this base, remove a central rectangular slot starting 5mm from the bottom and 5mm from each side, measuring 19mm by 1.5mm, to create a ladder-like cutout for webbing. Above th...
webbing_width = 19; webbing_thickness = 0.5; hook_thickness = 5; webbing_clearance=webbing_thickness*3; difference() { cube([webbing_width+2*hook_thickness,4*hook_thickness+3*webbing_clearance,hook_thickness]); translate([hook_thickness,hook_thickness,0]) cube([webbing_width,webbing_clearance,hook_thickn...
glb/cad_c129f4f9a3d9.glb
Create a dishwasher cutlery basket inlet in the shape of a thin rectangular plate. The overall outer dimensions are 54mm wide, 36mm deep, and 1.75mm thick. The plate has rounded corners with a radius of 2mm. Within the interior of the plate, create a grid of rectangular holes. The grid consists of 5 columns and 4 row...
width = 54.00; depth = 36.00; height = 1.75; borderDist = 2; $fn = 160; innerAreaX = width-2*borderDist; innerAreaY = depth-2*borderDist; percentage = 0.10; pocketX = innerAreaX*percentage; pocketY = innerAreaY*percentage; minPocketDist = 0.75; numPockX = floor(innerAreaX/(pocketX+minPocketDist)); numPockY = floor(i...
glb/cad_2ba8be8b3473.glb
Create a non-slip stand for an IKEA Dagotto by starting with a solid rectangular block measuring 40mm in length, 30mm in width, and 20.6mm in height. Hollow out the center of the block from the bottom by removing a smaller rectangular volume of 38mm by 28mm, leaving a wall thickness of 1mm on the sides and a base thick...
tubeDiameter = 8; nonSlipMatThickness = 10; cubeHeight = nonSlipMatThickness + tubeDiameter + 2.6; difference() { cube([40, 30, cubeHeight]); translate([1, 1, 0]) cube([38, 28, nonSlipMatThickness - 2]); translate([0, 15, cubeHeight - 1]) rotate(a=[0, 90, 0]) { cylinder(r=tubeDiameter, h=40, $fn=100); } ...
glb/cad_8fbd302250be.glb
Create a Prusament spool hole clip designed as a flat, symmetrical bracket. Start with a central rectangular bar that is 2.5mm wide and 100mm long. At each end of this bar, construct a square head measuring 61mm by 61mm with a thickness of 11mm. From each square head, remove a cylindrical section with a radius of 25m...
$fa = 1; $fs = 0.4; translate(v = [0, 0, -1.2500000000]) { rotate(a = [0, 90, 0]) { difference() { union() { difference() { union() { difference() { union() { translate(v = [-25.5000000000, -25.5000000000, 0]) { cube(size = [51, 51, 11]); } translate(v = [-1...
glb/cad_c6354a08cbcc.glb
Create a Z Endstop mount for a PCB. Start by creating a main cylindrical clamp with an outer radius of 6mm and a height of 10mm, centered around a central vertical hole with a radius of 4.2mm. Integrate a rectangular block extending from this clamp, measuring 29mm in length, 6mm in width, and 10mm in height, rotated 76...
$fn = 80; extra = 0.2; rodDia = 8; rodWallTh = 2; zEndStpHeight = 10; rodDistance = 0.0; M3NutX = 6; M3NutWall = 2; pcbHoleDiff = 20; pcbHolderX = 29; module zEndstop() { difference() { union() { translate([rodDistance,0,0]) screwClamp(); translate([5.5+rodDistance+rodDia/2,-10.4,0]) ...
glb/cad_08fb0a8d832c.glb
Create a Tool Tray for Allen Keys by starting with a solid rectangular base measuring 50mm wide, 110mm long, and 8mm thick. Carve five L-shaped channels into the top surface to hold the keys. Each channel consists of a long arm and a short arm connected by a rounded elbow. The cross-section of these channels is a hex...
include <BOSL2/std.scad> $fn=64; function hexTol(d_key) = max(0.5, d_key/4); module hexKey(d_key, l1, l2, r_key, korr_Angle=0){ d_key_tol = d_key + hexTol(d_key); translate([0,0,-d_key/2]){ rotate_extrude(angle=90+korr_Angle, convexity = 10) translate([r_key,0,0]) rotate([0,0,90]) { circle(d=d_ke...
glb/cad_922d4520011f.glb
Create a game insert for the Samurai Sword and Rising Sun board games. Start with a base rectangular block measuring 183mm in width, 130mm in depth, and 41mm in height. Carve out two primary card deck compartments, each 66mm wide and 91mm deep, starting from the front left. The first deck is positioned at the origin,...
$fn = 100; err = 0.02; border = 2.5; finger_diameter = 30; hole_fillet_radius = 20; fillet_radius = 10; test = false; box_x = 183; box_z = 41; box_y = 130; deck_x = 66; deck_y = 91; hearts_x = box_x - border * 3 - deck_x * 2; hole_x = box_x - deck_x * 2 - border * 3; module fillet_shape(r) { difference() { ...
glb/cad_e5bfb28cd99e.glb
Create a caster wheel mount by combining two concentric cylinders. First, construct a wide, short base cylinder with a radius of 15mm and a height of 4mm. Centered on top of this base, add a taller, narrower cylinder with a radius of 6mm and a height of 20mm. Finally, bore a vertical hole with a radius of 4.1mm straigh...
$fs=0.2; $fa=6.0; difference() { union(){ cylinder(h=20,r=6); cylinder(h=4,r=15); } cylinder(h=32,r=4.1,center=true); }
glb/cad_350fc8039769.glb
Create a circular "Conduite Accompagnée" badge with a diameter of 150mm. The model consists of two main components: an outer shell and an inner insert. First, create the outer shell. Start with a thin circular base 0.5mm thick and 150mm in diameter. On top of this base, add a raised ring (annulus) with an outer diamet...
outer = true; tolerance = 1.1; basis = .5; groove = 1.5; pbasis = true; pgroove = true; if(outer) aussen(basis = basis, muster= groove, tol= tolerance/5, printbasis = pbasis, printgroove= pgroove); else { innen(tol = tolerance, h= groove/2); translate([0,0,-basis]) %aussen(basis = basis, muster= groove, tol= -...
glb/cad_6e003c8933dc.glb
Create an Arcade Gun Holster designed to mount to a board with a thickness of 18mm. The main body is a bracket that wraps around the board edge. Start by creating a rectangular base plate 12mm thick and 1000mm long, with a central slot 10mm deep and 1200mm long that matches the 18mm board thickness. Attached to this ...
board_thickness = 18; $fn = 60; type="overhang"; module holster(thickness) { radius = 20; hull() { translate([radius/2, 0, radius/2]) rotate([-90, 0, 0]) cylinder(d=radius-thickness, h=60+thickness); translate([40+12-radius/2, 0, radius/2]) rotate([-90, 0, 0]) cylinder(d=radius-thickness, h=60...
glb/cad_073497a977c0.glb
Create an enclosure for the Black Magic Probe v2.3 consisting of a bottom shell, a top cover, and an optional connector shroud. Create the bottom shell as a rounded cube with overall dimensions 41.9mm x 20.9mm x 8.4mm and a corner radius of 1.5mm. Hollow out the center to fit a PCB of 39.4mm x 17.4mm x 1.6mm, leaving ...
PCB_cx = 39.4; PCB_cy = 17.4; PCB_thickness = 1.6; PCB_radius = 1; UART_cx = 6; UART_cy = 10; UART_cz = 3.3; UART_window_cx = 3.5; UART_window_cy = 7.6; SlideSwitch = true; Switch_cx = 6.8; Switch_slot = 4; Switch_cz = 1.5; Switch_offsx = 9.5; USB_cx = 8.5; USB_cy = 9; USB_cz = 3.75; Debug_Shroud_cz = 1.6; Debug_of...
glb/cad_b00b55222d14.glb
Create a door knob for a Silhouette ALTA+ printer by constructing a symmetrical, tapered cylindrical body. Start with a central cylinder that has a diameter of 23.5mm and a height of 13.5mm. Add two conical chamfers to the ends of this cylinder: one 4mm high section that tapers from 23.5mm down to 19.5mm, and another 4...
width = 19.5; length = 19.5; thickness = 2; hole = width-16; translate([0,0,length+4]) rotate([0,180,0]) difference() { union() { translate([0,0,4]) cylinder(d=width+4, h=length-6, $fn=32); translate([0,0,length-2]) cylinder(d2=width,d1=width+4,h=4,$fn=32); cylinder(d1=width,d2=width+4,h=4,$fn=32); } tr...
glb/cad_3fbe72c3a011.glb
Create a "Steal Your Face" drink coaster as a circular disc with a diameter of 100mm and a total thickness of 2mm. The design is a multi-layered composite of geometric shapes. Start with a base cylinder of 100mm diameter and 0.2mm height. Add a top capping cylinder of the same diameter and 0.2mm height, leaving the m...
L0=0.2; N=7; BaseOn = 0; BlackOn = 0; WhiteOn = 0; RedOn = 0; BlueOn = 0; EyesOn = 0; TopOn = 1; Z0=L0*N; module white() { minx=1370; miny=1385; maxx=18536; maxy=18553; dx=maxx-minx; dy=maxy-miny; maxd=dy; scale([1/maxd, 1/maxd, 1]) translate([-minx-dx/2, -miny-dy/2, 0]) linear_extrude(height=Z0, convexi...
glb/cad_32256b72c0f1.glb
Create a Rewinder Spring consisting of two separate parts: a spiral spring and a housing. First, create the spring. Start with a central cylinder with a radius of 6mm and a height of 12.5mm. Subtract a central hole with a radius of 4.1mm and a rectangular cutout measuring 10mm by 10mm to create a shaft collar. From th...
Thick = 1.4; SpringOn = 1; HousingOn = 0; module line(point1, point2, width = 1, cap_round = true) { angle = 90 - atan((point2[1] - point1[1]) / (point2[0] - point1[0])); offset_x = 0.5 * width * cos(angle); offset_y = 0.5 * width * sin(angle); offset1 = [-offset_x, offset_y]; offset2 = [offset_...
glb/cad_480c4372741f.glb
Create a Fan Grid for Voron 2.4. Start with a square base plate measuring 60mm by 60mm with a thickness of 3.2mm. Round the four corners of the plate with a radius of 4.81mm. At each corner, create a mounting hole with a diameter of 3.5mm. Surround these holes with a larger cylindrical countersink of 6.125mm in diamet...
Part = "A"; Pattern_model = "Honeycomb"; Logo = "Voron"; Pattern_angle = 0; hole_dia = 9; line_width= 0.8; variable_line_width = 0; $variable_hole=variable_line_width; fan_grid( grid_pattern = Pattern_model, model=Part, hole_dia=hole_dia, line_width=line_width, logo = Logo, pattern_angle=...
glb/cad_c2fdd6225a2d.glb
Create a silencer dryer consisting of a cylindrical holder mounted on a circular base. Start with a circular base 65mm in diameter and 55mm high. In the center of this base, carve out a 41mm cubic slot that extends from the bottom up to 40mm. Above this slot, create a conical funnel transition that narrows from the 4...
diameter = 52; hole_diameter = 20; height = 40; separator_height = 3; thickness = 3; base_height = 55; base_diameter = 65; base_thickness = 3; fan_sidelength = 41; fan_height = 10; funnel_height=15; mount_thickness = 4; vents_height = 45; vents_width = 30; facets = 240; module fan_mount(fan,shell,holes,holes_offset,he...
glb/cad_c20919d9747c.glb
Create a two-part Autotrickler straw replacement consisting of a mounting base and a detachable funnel. First, create the mounting base as a cylinder with a radius of 20mm and a thickness of 3mm. Center a 10mm diameter hole through the middle. Add three 3.2mm diameter screw holes passing through the base: the first a...
include <Bayonet_Lock.scad> gap = 0.1; diameter_top = 40; outer_radius = 20; diameter_bottom = 15; powder_hole_diameter = 10; center_offset = 10; cone_height = 20; cylinder_height = 12; wall_thickness = 1.5; mount_thickness = 3; lip_height = 0; mount_height = 0.1; screwhole_diameter = 3.2; countersink_depth = 2; scr...
glb/cad_f92c5adb39c3.glb
Create a Z-Motor Alignment Block by constructing a rectangular cuboid. The block must have a total height of 9mm and a depth of 35mm. Set the width of the block to 12mm. Ensure all angles are sharp 90-degree corners with no fillets or rounded edges.
block_width = 12; number_of_blocks = 1; size_increase_increments = 0.1; for (numblocks=[1:1:number_of_blocks]) { translate([(numblocks-1)* 20,0,0]) cube([block_width + (numblocks * size_increase_increments), 35, 9]); }
glb/cad_381462196f01.glb
Create a Dart Magnet by constructing a composite aerodynamic shape. Start with a central shaft consisting of a cylinder with a diameter of 3.15mm and a total height of 40mm, topped with a hemisphere of the same diameter. At the base, add a wider cylindrical section with a diameter of 8.1mm and a height of 10mm. Transit...
magnet_diameter = 6.3; magnet_height = 2.6; dart_length = 40; wall_thickness = 0.9; wing_thickness = 1; $fn = 50; module dart_wing_elem() { rotate([90, 0, 0]) cylinder(d=magnet_diameter/2, h=wing_thickness, center=true); } module dart_wing() { hull() { translate([0,0,-dart_length/10]) dart_wing_elem(...
glb/cad_834ba75ae9f3.glb
Create a Gridfinity Hanger consisting of a baseplate and an attached hanging bracket. First, construct a skeletonized baseplate for a single 42mm x 42mm grid unit. The baseplate should be a thin rounded rectangle with a height of 2mm, featuring a skeletonized pattern of cutouts to reduce material. Attached to the ba...
include <gridfinity-rebuilt-utility.scad> $fa = 8; $fs = 0.25; gridx = 1; gridy = 1; length = 42; d_screw = 3.35; d_screw_head = 5; screw_spacing = .5; n_screws = 1; distancex = 0; distancey = 0; style_plate = 2; enable_magnet = true; style_hole = 0; hanger_type = 1; hanger_height = 20.0; hanger_thickness...
glb/cad_249d35101aa4.glb
Create a tissue box holder designed to clip onto a shelf. Start by creating a vertical back spine that is 3mm wide, 121mm tall, and 10mm deep. From the top of this spine, extend a horizontal upper arm 69mm long, 3mm wide, and 10mm deep. At the end of this upper arm, add a small vertical hook that is 3mm wide, 10mm de...
$fn=250; dt1=0.01; dt2=dt1*2; prt_delta=0.4; mat_y=3; mat_x = mat_y; mat_h=mat_y; mat_z=10; plt_y=5; union(){ color("yellow") translate([0, -(plt_y), 0]) cube([mat_x, plt_y, mat_z]); color("blue") translate([0, -(mat_y+plt_y), 0]) cube([10+mat_h, mat_y, mat_z]); } box_x=69; box_y = 115; hook_y=7; color("Li...
glb/cad_bcdea7f3a945.glb
Create a business card holder by starting with a rectangular base measuring 130mm in length, 6mm in height, and 35mm in depth. At the top of this base, centered along the length, place the uppercase letters "ABC" using an Arial font with a height of 40mm and a thickness of 5mm. These letters should be positioned so tha...
initials = "ABC"; height = 40; depth = 30; text_depth = 5; translate([115,0,0]){ mirror([1,0,0]){ linear_extrude(text_depth){ text(initials, size = height, font="Arial"); } } } translate([-5,0,depth]){ linear_extrude(text_depth){ text(initials, size = height, font="Arial"); } } translate([-10,-6,0]){ cube([130...
glb/cad_3ea2f90b7bb7.glb
Create a USB Power Supply Case consisting of a hollowed cylinder and an integrated mounting bracket. Start by creating a main cylinder with a height of 40mm and an outer radius of 20mm. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a radius of 19mm, leaving a wall thickness of 1m...
$fa=4; $fs=0.4; module tslot(length) { tolerance = 0.1; top_width = 6.2-tolerance; top_height = 2; middle_width = 11-tolerance; middle_height = 2-tolerance; base_height = 3-tolerance; base_angle = 45; base_width = middle_width; difference () { union() { trans...
glb/cad_7d89095469c6.glb
Create a USB Power Supply Case consisting of a hollowed cylindrical body and a T-slot mounting bracket. Start by creating a main cylinder with a radius of 20mm and a height of 25mm. Add a second, slightly smaller cylinder with a radius of 18.93mm and a height of 30mm, centered on the same axis. Hollow out the center of...
$fa=4; $fs=0.4; module tslot(length) { tolerance = 0.1; top_width = 6.2-tolerance; top_height = 2; middle_width = 11-tolerance; middle_height = 2-tolerance; base_height = 3-tolerance; base_angle = 45; base_width = middle_width; difference () { union() { trans...
glb/cad_25ec34b38635.glb
Create a Raspberry Pi 4 case consisting of a base and a lid. The overall footprint is 85mm by 56mm. For the base, create a shell with a height of 15mm and a wall thickness of 1.25mm. The floor of the base should be raised by 3.25mm using four cylindrical posts at the corners (positioned at [3.5, 3.5], [3.5, 52.5], [61...
Part="both"; Extrusion_Mount="Yes"; Include_Camera_Slot="No"; cameraSlot= (Include_Camera_Slot == "Yes") ? true : false; mount3030= (Extrusion_Mount == "Yes") ? true : false; epsilon=0.01; baseGap=3.25; PCBThick=1.3; baseThick=1.25; totalHeight=21.5; baseHeight=15; mountHeight=10; topHeight=totalHeight-baseHeight; t...
glb/cad_f20396bbbd2e.glb
Create a Universal Knife Rack as a solid rectangular block with a width of 200mm, a depth of 75mm, and a height of 50mm. Carve seven identical knife slots into the top surface. Each slot must be 2.5mm wide and 40mm deep, extending vertically through the block. Space these slots evenly across the width of the rack. To...
N = 7; W = 200; H = 50; D = 75; S = 2.5; K = 40; C = 5; M = W/N; difference(){ cube([W,D,H]); for(i=[0.5:1:N-0.5]) translate([M*i-S/2,-D*0.1,H-K]) cube([S,D*1.2,K*1.1]); for(i=[0.5:1:N-0.5]) translate([M*i,-D*0.1,H]) scale([1,1,C]) rotate([-90,0,0]) cylinder(h=D*1.2,d=3*S,$fn=4); }
glb/cad_a1363dedf2fd.glb
Create a Universal Knife Handle Support in the form of a solid rectangular block. The block should have an overall width of 200mm, an overall depth of 75mm, and an overall height of 25mm.
W = 200; H = 25; D = 75; cube([W,D,H]);
glb/cad_1c2e177660b0.glb
Create a makeshift light bracket by starting with a solid rectangular block measuring 30mm wide, 27.5mm deep, and 50mm high. Hollow out the center of the block by removing a rectangular section 25mm wide and 22.5mm deep, extending from the bottom face upward to leave a 5mm thick wall on the sides and a closed bottom. T...
$fa = 1; $fs = 0.4; module bracket(outerShellX=30,outerShellY=30,outerShellZ=50,screwHoleSize=3){ difference() { cube([outerShellX,outerShellY,outerShellZ],center=true); translate([0,0,-25]) cube([outerShellX - 5,outerShellY - 5,outerShellZ + 45],center=true); tra...
glb/cad_c49b5d91adb0.glb
Create two rectangular card inserts for a board game. The first insert is a solid block measuring 70mm wide, 120mm long, and 29mm high. Carve out a central rectangular cavity starting 2.5mm from the bottom and 2.5mm from the side walls, with dimensions of 60mm wide, 91mm long, and 26.5mm deep. At the top opening of thi...
$fn = 100; err = 0.02; border = 2.5; finger_diameter = 30; hole_fillet_radius = 20; fillet_radius = 10; test = false; box_x = 70; box_y = 120; box_z = 29; deck_x = 60; deck_y = 91; deck_z = 18; mini_deck_x = 49; mini_deck_y = 71; mini_deck_z = 15; box_1 = true; box_2 = true; module fillet_shape(r) { difference...
glb/cad_872407720808.glb
Create a Citadels Game Insert designed as a storage box with overall dimensions of 119mm x 119mm x 39mm. Start with a solid base cube of these dimensions and carve out the following internal spaces: First, create two primary deck compartments. The first is a rectangular void measuring 60mm x 91mm with a depth of 36mm....
$fn = 100; err = 0.02; border = 2; finger_diameter = 30; fillet_radius = 10; box_x = 119; box_y = 119; box_z = 39; box_corner_radius = 9; deck_x = 60; deck_y = 91; deck1_z = 36; deck2_z = 9; deck2_angle = 28; deck2_offset = 6; show_box = false; show_cards = false; module fillet_shape(r) { difference() { ...
glb/cad_9ee1d9f2e16a.glb
Create a camera holder bracket by starting with a base plate that is 20mm wide, 5mm thick, and 105mm long. At the mounting end, add a vertical rectangular extension that is 20mm high, 5mm wide, and 60mm tall, oriented perpendicular to the base plate. On this vertical extension, create two through-holes with a diameter ...
$fn=50; translate([0,0,20]) difference() { linear_extrude(20) { polygon([[0,0],[105,0],[105,5],[65,5],[0,20]]); } translate([85,0,10]) rotate([90,0,0]) cylinder(12,r1=3.25,r2=3.25,center=true); } difference() { cube([5,20,60]); translate([0,10,5]) rotate([0,90,0]) cylinder(12,r1=1.5,r2=1.5,...
glb/cad_6c1dd8337d63.glb
Create an OralB Toothbrush Holder consisting of a rectangular backplate and two protruding flanges. The backplate should be 60mm wide, 22mm high, and 4mm thick, with all corners rounded to a 2mm radius. At each end of the backplate, add a flange that extends forward. Each flange is 6mm wide and 11mm tall, tapering fr...
$fn=96; sd=2.25; sl=10; ss=6; wt=2; pt=4; pw=60; pr=2; ph=22; fw=sd+2*wt; r2=sqrt(2); module corner() { translate([0, 0, pt-pr]) sphere(pr); cylinder(pt-pr, r=pr); } module backplate() { hull() { translate([0, 0, 0]) corner(); translate([pw, 0, 0]) corner(); translate([pw, ph, 0]) corner(); tr...
glb/cad_8e5c8c8d34e5.glb
Create a Customizable Aeropress Funnel designed as a rotationally symmetrical vessel. Start by creating a hollow funnel with a wall thickness of 2mm. The bottom of the funnel is a narrow spout with an external diameter of 18.5mm and a length of 30mm. The body of the funnel expands upward and outward at a 50-degree angl...
Height= 50; BottleID = 18.5; BottleIDHeight=30; AeropressOD = 70; AeropressHeight=11; thickness=2; lip=10; intersect_angle=50; Rout=5; Rin=25; $fn=150; function flatten(l) = [ for (a = l) for (b = a) b ] ; function reverse(list) = [for (i = [len(list)-1:-1:0]) list[i]]; function translate2d(X,M)=[for(x=X) x+M]; m...
glb/cad_a6a76a08c81e.glb
Create a glasses holder and bookend consisting of a solid base and a decorative stepped front. Start by creating a solid rectangular base block that is 50mm wide, 60mm deep, and 1mm thick. On top of this base, construct a vertical wall that is 50mm wide, 1.5mm thick, and 20mm high, positioned at the front edge. Add a...
breite=0; union(){ for (r =[0:23]){ if(r<6){ hor(r,9); } else if (r<7) { hor(r,7); } else if (r<8) { hor(r,6); } else if (r<10) { hor(r,5); } else if (r<12) { hor(r,4); } else if (r<14) { hor(r,3); } else if (r<17) { hor(r,2); } else if (r<20) { hor(r,1); } else { h...
glb/cad_4a4711f46035.glb
Create a machinist jack consisting of a hexagonal base and a threaded hexagonal nut connected by three supports. Start by creating a hexagonal base ring with an outer diameter of 40mm and a height of 4mm. The center of this hexagon should be hollowed out by a smaller concentric hexagon with a diameter of 32mm. At th...
use <threads.scad> stand(); module stand( height = 40, top_diam = 15, top_height = 15, stand_od = 40, stand_strength = 4, diameter = 8, pitch = 1.25 ) { stand_id = stand_od - 2 * stand_strength; union() { translate([0,0,height - top_height]) difference() { cylinder(d=top_diam, h=top_height, $f...
glb/cad_0e46d31147ad.glb
Create a machinist jack stand with a total height of 40mm. The base is a hexagonal ring with an outer diameter of 40mm and a wall thickness of 4mm, creating an inner hexagonal void of 32mm. At the top of the stand, centered above the base, place a hexagonal nut with a diameter of 15mm and a height of 15mm. This nut m...
use <threads.scad> stand(); module stand( height = 40, top_diam = 15, top_height = 15, stand_od = 40, stand_strength = 4, pitch = "coarse" ) { stand_id = stand_od - 2 * stand_strength; m8pitch = pitch == "fine" ? 1 : 1.25; union() { translate([0,0,height - top_height]) difference() { cylinder(d...
glb/cad_df68b422df4e.glb
Create a kitchen insert separator with a total height of 44.8mm and a thickness of 7.5mm. The main body is a tapered vertical wall that is 54mm wide at the base and widens linearly to 87mm wide at the top. At the top of this wall, add a horizontal ledge that extends the full 7.5mm thickness. This ledge should be 2mm ...
$fn=64; x1=54; x2=87; x3=7.9; z=44.8; wallY=7.5; wallOver = 2; wallTest = 3; wall=2; difference(){ union(){ hull(){ translate([-x1/2,0,0]) cube([x1, wallY, 1]); translate([-x2/2,0,z]) cube([x2, wallY, wallOver]); } difference(){ hull(){ ...
glb/cad_645b538948cf.glb
Create an aquarium bubbler consisting of a main cylindrical body and a connecting tip. Form the main body as a cylinder with a diameter of 10mm and a height of 20mm. Drill a central vertical hole through the entire length of this body with a diameter of 2mm. Around the outer wall of the main body, create a pattern of...
mainh=20; maind=10; holed=1; holes=3; holerows=10; tipd=5; tiph1=5; tiph2=2; inholed=2; $fs=0.1; $fa=0.1; module bubblerbody() { cylinder(h=mainh, d=maind); } module holesrow() { for (i = [0:holes]) { rotate([0,0,180/holes*i]) translate([0,25, 0]) rotate([90,0,0]) cylinder(h=50, d=holed); } } ...
glb/cad_e770a4a2788f.glb
Create a Steam Deck charger model consisting of a main body, a plug, and a cable attachment. Start with a main cube measuring 53mm in width and length and 28.7mm in height, applying a fillet radius of 7.8mm to all vertical edges. On one side, attach a plug assembly. The plug base is a complex rounded shape with a len...
$fn = 100; err = 0.1; charger_width = 53; charger_length = charger_width; charger_height = 28.7; fillet_radius = 7.8; plug_length = 35.3; plug_rounding = 2; plug_height = 18.2; plug_depth = 13.8; plug_indent = 5.7; prong_diameter = 4; prong_height = 20; prong_indent = 6.2; plug_displacement = 10; cable_base_d = 15;...
glb/cad_f49805cc99b8.glb
Create a ventilation hose adapter mounting. Start by creating a circular base flange with a diameter of 120mm and a thickness of 3mm. Centered on this base, add a hollow cylinder with an outer diameter of 100mm and an inner diameter of 97mm, extending to a total height of 43mm. Within this hollow cylinder, create a r...
$fn=100; flange_diameter = 120; flange_thickness = 3; adapter_outer_diameter = 100; adapter_inner_diameter = 97; necking_diameter = 99.5; necking_height = 12; necking_transition_height = 2; necking_position = 14; difference(){ difference(){ union() { cylinder(flange_thickness,flange_diameter/2,f...
glb/cad_41679e6c6624.glb
Create a kitchen scale holder by extruding a specific profile to a total length of 150mm. The profile is a 2D polygon defined by the following vertices: (0,0), (0,25), (23,25), (23,20), (20,20), (13,10), and (12,0). To allow for mounting, remove three identical screw holes from the body. Each hole consists of a 5mm d...
$fn=55; qo=0.001; len=150; module screwhole(){ translate([6,0,0]) cylinder(h=25+qo,d=5); translate([6,0,-qo]) cylinder(h=25-5,d=9); }; frame = [ [0,0], [0,25], [23,25], [23,20], [20,20], [13,10], [12,0] ]; difference...
glb/cad_27439aeedf7f.glb
Create an antenna wire eyelet for a carbon pole. Start by constructing a hollow vertical tube with a total height of 40mm and a wall thickness of 0.75mm. The interior of the tube should be slightly tapered, with a bottom inner diameter of 3.1mm and a top inner diameter of 3.0mm. Ensure all exterior edges of the tube ar...
high = 40; dia1 = 3.1; dia2 = 3.0; wall = 0.75; $fn = 100; difference(){ minkowski() { cube([dia1 + wall, dia1 + wall, high], center = true); cylinder (r=wall, h=wall, center = true); } cylinder(h = high + 10, d1 = dia1, d2 = dia2, center = true); } translate([dia1*0.90, dia1/-2, high/-4]){ diff...
glb/cad_468531b4e155.glb
Create a side adapter for a display frame by starting with a central rectangular base measuring 75mm wide, 40mm deep, and 6mm thick. Attach a vertical wall to one end of this base; this wall should be 5mm wide, 40mm deep, and 40mm high, positioned so its outer edge aligns with the edge of the base. Add two thin rectang...
$fn=60; difference() { union() {cube([75,40,6],center=true); translate([75/2-2.5,0,17.])cube([5,40,40],center=true); translate([27.50-27.5,17.5,7.5]) cube([75,5,10],center=true); translate([27.50-27.5,-17.5,7.5]) cube([75,5,10],center=true); } translate([75/2-30-37.5,10,0]) cylinder(d=4.5,h=40,center=true); translate([...
glb/cad_eff021705056.glb
Create a Girl Scout S.W.A.P. badge holder starting with a circular base 30mm in diameter and 1.25mm thick. On the top surface, engrave the word "Fearless" near the top edge and the word "Leader" near the bottom edge, both centered and oriented upside down relative to the center. On the bottom surface, emboss the te...
base_diameter = 30; base_height = 1.25; holder_width = 15; holder_diameter = 2; text_size = 3.6; text_spacing = 1; holder_outer_diameter = holder_diameter + base_height * 2; fudge = 1; difference(){ cylinder(d = base_diameter, h = base_height, $fn = 64); translate([0, +holder_outer_diameter / 2 + text_spacing...
glb/cad_98545dd0c0f1.glb
Create a funnel adaptor for brewing by constructing three stacked concentric sections. Start with a base cylinder 15mm high with an outer diameter of 67mm and an inner hole 59mm in diameter. On top of this base, add a 30mm tall conical section that tapers from an outer diameter of 67mm at the bottom to 29mm at the top;...
$fn=360; x1=59; x2=29; difference(){ cylinder(h=15, d1=x1+8, d2=x1+8); cylinder(h=15, d1=x1, d2=x1); } translate([0,0,15]) difference(){ cylinder(h=30, d1=x1+8, d2=x2); cylinder(h=30, d1=x1, d2=x2-4); } translate([0,0,45]) difference(){ cylinder(h=15, d1=x2, d2=x2); cylinder(h=15, d1=x2-4, d2=x2-4); }
glb/cad_98a91bdf931e.glb
Create a Gigamons card holder and three decorative stones. The card holder consists of two adjacent rectangular boxes. Each box has an outer footprint of 45.8mm by 45.8mm and a height of 54mm. The walls are 1.5mm thick. The interior of each box is a hollow cavity designed to hold cards, with the corners slightly roun...
number_of_corners = 30; stone_scale = 1; medium_stones = 5; wiggle=.4; width=45+2*wiggle; length=45+2*wiggle; corner=1.5; wall=1.5; height=54; num_boxes=2; radius = 15; corner_size = 2; module randomRockFormation(radius) { intersection() { union() { scale([1,1,stone_scale]) ...
glb/cad_8e49eada9f65.glb
Create a customizable birthday cake topper consisting of three stacked lines of text and a supporting stake. Using a script-style italic font with a size of 20mm and a thickness of 1mm, center the word "Happy" at the top. Position the word "Birthday" 20mm below the first line, and position the name "Elena" 20mm below t...
happy = "Happy"; birthday = "Birthday"; name = "Elena"; linear_extrude(1) text(happy,font="Brush Script MT:style=Italic", spacing=.8, size=20, halign="center"); linear_extrude(1) translate([0, -20, 0]) text(birthday, spacing=.9, size=20,font="Brush Script MT:style=Italic", halign="center"); linear_extrude(1) transla...
glb/cad_1027e77fe576.glb
Create a combadge backing by starting with a main cylinder that has a radius of 13mm and a height of 3mm, centered on the origin. Within this disc, create four circular holes to hold magnets, each with a radius of 3.05mm and a height of 2mm. Position these holes so they are centered vertically at 0.5mm. Place two holes...
rad = 3.05; difference() { cylinder(h=3,r=13,center=true); translate([0,7.3,.5]) { cylinder(h=2,r=rad,center=true); } translate([0,-7.3,.5]) { cylinder(h=2,r=rad,center=true); } translate([5.45,0,.5]) { cylinder(h=2,r=rad,center=true); } translate([-5.45,0,.5]) {...
glb/cad_a22c6f91248c.glb
Create a Macintosh SE ZuluSCSI bracket. Start with a front rectangular face measuring 95mm wide by 15mm high and 1.2mm thick. Attach two mounting tabs to the sides of this face, extending the total width to 113mm and the height to 15mm. In these tabs, create two holes for #6-32 threaded inserts, positioned 104.5mm apar...
e = 0.01; $fs=0.5; mounting_holes = 104.5; mounting_w = 113; face_w = 95; face_h = 15; face_inset = 14; face_th = 1.2; board_w = 90.5; board_d = 100.5; board_th = 1.5 + 0.1; board_h_offset = -1.5; hole_w = 61.5; hole_d = 76.5; hole_d_offset = 4.5 + 0.5; insert_h = 3.81; module threaded_insert_cut(){ cylinder(d1=...
glb/cad_1e2835cb2182.glb
Create a Corner XYZ Probe consisting of a flat base and two perpendicular vertical walls. The base is a square plate measuring 63.5mm by 63.5mm with a thickness of 2.5mm. From this base, extend two vertical walls, each 10mm wide and 10mm high, along two adjacent edges to form an L-shaped corner. The interior edges of...
jig_l_w = 2.5 * 25.4; jig_bott_t = 2.5; jig_side_t = 10; jig_side_h = 10; jig_bott_l_w = jig_l_w - jig_side_t; jig_total_h = jig_bott_t + jig_side_h; jig_cyl_cut_r = jig_side_t/2; jig_cyl_cut_h = jig_side_h; scr_d = 2.85; round_r = 2; $fs = 0.2; module round_corner_side() { square_s = 1; hull() { ...
glb/cad_65653ac643f2.glb
Create a replacement tire for luggage rollers by constructing a revolved geometric profile. The overall outer diameter of the tire is 55mm with a total width of 11.8mm. The cross-section is defined by a series of concentric steps: the main body is a ring with an outer diameter of 55mm and a width of 11.8mm, but it feat...
$fa=1; $fs=0.2; d=55; id=49; g=1; gd=id-2*g; w=11.8; iw=w-1.5; gw=w-5; l=[[d, w], [id, w], [id, iw], [gd, gw]]/2; rotate_extrude() intersection() { circle(d=d); polygon(concat(l, [for (i = [len(l)-1:-1:0]) [l[i].x, -l[i].y]])); }
glb/cad_22085d47bfd2.glb
Create a Farmers to Frame Flange by combining a hollow cylindrical sleeve with a rectangular housing. First, construct a hollow cylinder with an outer radius of 30mm and an inner radius of 25.5mm, with a total height of 50mm, centered on the origin. Next, create a rectangular block measuring 50mm wide, 100mm long, and ...
$fn = 60; module Barbell_Flange() { difference() { cylinder(r=30, h=40+10, center=true); cylinder(r=25.5, h=65, center=true); } } module 2x4_Flange() { Flange_IX = 50; Flange_IY = 90; Flange_IZ = 40; Wall = 5; Flange_OX = Flange_IX; Flange_OY = Flange_IY + (Wall * 2); Flange_OZ = Flange_IZ ...
glb/cad_8ef80663d329.glb
Create a 35mm DIN Profile rail. The rail is an extrusion of a specific cross-section along a length of 60mm. The cross-section is a symmetrical "top hat" shape with a total width of 35mm and a total height of 7.5mm. The base is 25mm wide. The side walls rise vertically from the base to a height of 7.5mm, then fold in...
rail_length = 60; body_Thinkness = 1.5; hole_diameter = 4; hole_slot = 15; hole_distance = 10; DIN_Outer_Width= 35; DIN_Height = 7.5; DIN_Inside_Width = 25; DIN_Upper_Thinkness = 1; Rounding_Radius = 1; dinInnerWidth = DIN_Inside_Width + 2*body_Thinkness; wing=(DIN_Outer_Width - dinInnerWidth )/2; thicknessAd...
glb/cad_82ecde2f9f08.glb
Create a customizable cable duct consisting of a body and a lid. For the body, create a symmetrical profile extruded to a length of 56mm. The profile is based on a total width of 14mm and a height of 14mm. The base of the body is a flat wall 1.2mm thick. From this base, two vertical walls rise, but they are not simple ...
part = "body"; width = 14; height = 14; length = 56; wallThickness = 1.2; tolerance = 0.2; numberOfScrewHoles = 0; screwHoleDiameter = 3; countersink = "yes"; $fn = 128; module body() { body45DegDiffToWall = wallThickness-sqrt((wallThickness*wallThickness)/2); body45DegOffset = sqrt((body45DegDiffToWal...
glb/cad_888b8e67972b.glb
Create a transport clip for a camping cup and lid. Start by creating a central rectangular block that is 20mm wide and 3mm thick. This block should be integrated into a larger cylindrical structure with a diameter of 92.5mm (lid diameter plus twice the clip thickness) and a total height of 14.48mm. From this main bod...
globalFn = 128; tolerance = 0.4; cupDiameter = 81.4; lidDiameter = 86.10; lidLipHeight = 4.48; lidClipWidth = 20; lidClipThickness = 3; hangerCutOutDiameter = 35; hangerCutOutOffset = 4; cupDiameterT = cupDiameter + tolerance; lidDiameterT = lidDiameter + tolerance; lidLipHeightT = lidLipHeight + tolerance; li...
glb/cad_ec475b2ce9d5.glb
Create a bicycle handlebar end cap consisting of a circular head and an internal plug. First, construct the cap head as a cylinder with a diameter of 26mm and a height of 4mm. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a diameter of 24mm and a height of 3mm, leaving a thin o...
capDiameter = 26; plugDiameter = 17.2; perimeterWidth = 0.4; union() { intersection() { hull () { translate([0,0,24]) cylinder(h=2, d=plugDiameter-3, center=false, $fn=120); translate([0,0,2.2]) cylinder(h=12, d=plugDiameter, center=false, $fn=12...
glb/cad_c0beb0040d31.glb
Create a business card holder by constructing a U-shaped base with a height of 5mm. Form the base using two straight parallel walls, each 60mm long and 1mm thick, connected by a curved segment that is a 160-degree arc with an inner radius of 9mm and an outer radius of 10mm. Position one straight wall at x=9 and the oth...
$fa = 1; $fs = 0.1; module ringsegment(r1, r2, h, a) { rotate_extrude(angle = a) translate([r1,0,0]) square([r2-r1,h], center = false); } module bcard() { cube([86,1,55]); } difference() { union() { translate([9,-60,0]) cube([1,60,5]); rotate([0,0,-20]) translate([-10,-60,0]) cube([1,60,5]); ...
glb/cad_1542dc0df129.glb
Create a pocket box organizer with overall dimensions of 103mm width, 103mm depth, and 31.5mm height. Start with a solid base block of 103mm by 103mm and a height of 28.5mm. From this base, remove several geometric volumes to create storage slots. First, create a rectangular cutout for alibi cards: 84.5mm wide and 50....
TILE_HEIGHT = 1.5; BOX_WIDTH = 103; BOX_DEPTH = 103; BOX_HEIGHT = 31.5; BOOK_HEIGHT = 3; WALL_WIDTH = 5; SLOT_WIDTH = 15; function tile_h(count) = count * TILE_HEIGHT; base_height = BOX_HEIGHT - BOOK_HEIGHT; area_edge = BOX_WIDTH - WALL_WIDTH; AREA_WIDTH = 84.5; AREA_DEPTH = 84.5; AREA_COUNT = 9; AREA_HEIGHT = tile...
glb/cad_d1725aef1154.glb
Create a pocket box organizer by starting with a solid rectangular base measuring 103mm in width, 103mm in depth, and 24mm in height. From this base, remove several geometric volumes to create specific storage compartments. First, carve out a large rectangular section for alibi cards measuring 84.5mm wide and 50.5mm d...
TILE_HEIGHT = 1.5; function tile_h(count) = count * TILE_HEIGHT; AREA_WIDTH = 84.5; AREA_DEPTH = 84.5; AREA_COUNT = 9; AREA_HEIGHT = tile_h(AREA_COUNT); ALIBI_WIDTH = 84.5; ALIBI_DEPTH = 50.5; ALIBI_COUNT = 9; ALIBI_HEIGHT = tile_h(ALIBI_COUNT); BOX_WIDTH = 103; BOX_DEPTH = 103; BOX_HEIGHT = AREA_HEIGHT + ALIBI_HEIG...
glb/cad_670134c74074.glb
Create an Ablaze box organizer by starting with a solid rectangular base block measuring 122.5mm wide, 169.5mm deep, and 36mm high. From this base, carve out several negative spaces to create storage compartments. First, create a central card area by removing a volume 113mm long and 62mm wide with a depth of 21mm, cen...
use <../roundedcube.scad> TILE_HEIGHT = 3; BOX_WIDTH = 122.5; BOX_DEPTH = 169.5; BOX_HEIGHT = 36; BOOK_HEIGHT = 3; WALL_WIDTH = 5; SLOT_WIDTH = 15; function tile_h(count) = count * TILE_HEIGHT; area_edge = BOX_WIDTH - WALL_WIDTH; INFLUENCE_LENGTH = 70; INFLUENCE_WIDTH = 70; INFLUENCE_HEIGHT = 30; BRIBERY_LENGTH =...
glb/cad_f060baf94823.glb
Create a solder fume extractor consisting of a filter holder and an attached wiring box. For the filter holder, create a main body with outer dimensions of 136x136x27mm. Hollow out the center to create a space for a 130x130x9mm filter, leaving 3mm walls. At the bottom, create a circular opening with a radius of 52.5m...
$fs = $preview ? 2 : 0.5; filter_w = 130; filter_t = 9; wall = 3; fan_w = 120; fan_r = 63; fan_hole = 105/2; fan_hole_r = 2; angle = 20; corner = 10; box_w = 20; box_l = 75; box_h = 25; module grating(w, h, t, holes_x, holes_y, grate_wall) { translate([-w/2, -h/2, 0]) { difference() { cube([w,...
glb/cad_957fc4f29be1.glb
Create a Cross Roller Bearing consisting of an outer race, two inner races (high and low), a carrier, and a set of rollers. Create the rollers as cylinders with a diameter of 9.2mm and a height of 8.4mm. Each roller should have beveled ends with a height of 1.2mm and a reduced diameter of 9mm. Construct the outer rac...
use <../Parts/threads.scad> CarrierOn = 0; RollersOn = 0; RollerPrint = 1; OuterRaceOn = 0; InnerHiOn = 0; InnerLowOn = 0; CutawayOn = 0; CutawayAngle = 0; rod=9.0; rodx=9.2; rid=5.8; rhi=rod-0.6; rbevel=1.2; Nr = 6; ood=36; oid=16; ohi=15; iooff=0.52; iogap=4; Nholei=4; rholei=1.55; oholei=3.0; CutAngle=3...
glb/cad_eeda7a39b438.glb
Create a book end by constructing a vertical rectangular slab with dimensions 5mm wide, 100mm high, and 100mm deep. Apply a 10mm rounding radius to the top front and top back edges of this slab. Centered on the face of this slab, carve out a hollow letter "E" using a script-style font. The letter should be 80mm in size...
include <BOSL2/std.scad> cuboid(p1=[0,-25,0],size=[50,50,0.5],rounding=10, edges=edges([FRONT+LEFT,BACK+LEFT])); cuboid(p1=[25,-50,0],size=[25,100,1],rounding=10, edges=edges([FRONT+RIGHT, BACK+RIGHT])); difference() { cuboid(p1=[22.5,-50,0],size=[5,100,100],rounding=10, edges=edges([TOP+FRO...
glb/cad_4f980bc2b860.glb
Create an e6000 to Luer Lock Syringe Adaptor consisting of a series of stacked, hollow conical sections with a wall thickness of 1mm. Start at the base with a hollow cone 3mm high, tapering from a bottom outer diameter of 6.5mm to a top outer diameter of 6.3mm. Around this base, add two external screw threads with a ...
$fn=128; module Helicoid(hRadius,hLength,hTwist,hN,hGap) { hSlices=10*hLength; linear_extrude(height=hLength,twist = hTwist,center=true,slices=hSlices) projection(cut=true) { for(i=[1:hN]) { rotate(a=[0,0,(360*i)/hN]) translate([-hGap,-hGap/2,-1]) cube([hRadius+hGap,hGap,2]); } } } module Empty...
glb/cad_23303557de78.glb