Prompt
stringlengths
96
2.17k
Code
stringlengths
27
249k
3d_glb
stringlengths
24
24
Create a Leatherman FREE P2 Tool Holder by starting with a solid rectangular block measuring 40.5mm wide, 104mm long, and 21mm high, centered on the origin. Carve out a central rectangular cavity 33.5mm wide, 104mm long, and 17mm deep, leaving walls of 3.5mm on the sides and a base of 2mm. Inside this cavity, remove ...
$fn=30; difference(){ cube([33.5+7,104,17+4],center=true); translate([0,0,5/2]) cube([33.5,104,17],center=true); translate([0,0,-17/2+5/2-1]){ cube([9.25,104,2],center=true); for(i=[-1:2:1]){ translate([i*9.25,0,0]) cube([6.25,104,2],center=true); } } for(i=[-1:2:1]){ translate([-33.5/2*i,104/2,-5+1.84]) rotate([90,...
glb/cad_dfd1035e9b6f.glb
Create a Car Accessory Port Power AC-DC Adapter housing consisting of a main enclosure and a separate clamp ring. For the enclosure, create a central rectangular base measuring 40mm by 114mm with a height of 4mm. Add two side walls extending upwards from the long edges, each 53.8mm high and 4mm thick. In the center o...
$fn=50; module enclosure(){ translate([-2,0,48.8+4+1]) cube([18.5+40+4,113+1,4],center=true); translate([18.5/2,0,4]) cube([40,113+1,4],center=true); for(i=[-1:2:1]) translate([-30/2,i*((113+1)/2+2),48.8/2+4+0.5]) cube([18.5+40+15+15,4,48.8+4+1],center=true); difference(){ translate([(18.5+40)/2-2,0,48.8/2+2+0.5]) ...
glb/cad_fdf280d9a554.glb
Create a Buster Beagle ball knob by constructing a composite shape that blends a sphere and a truncated cone. Start by creating a sphere with a diameter of 35mm. Below the sphere, create a truncated cone (frustum) with a height of 10mm, a bottom diameter of 13mm, and a top diameter of 15mm, positioned so it connects se...
$fn=100; difference(){ hull(){ cylinder(d1=13,d2=15,h=10); translate([0,0,10+35/2]) sphere(d=35); } color([0,1,0]) cylinder(d=(0.25*25.4)+1,h=35); color([1,0,0]) translate([0,0,15]) difference(){ cube([11.5,11.5,5.1],center=true); } color([1,0,0]) translate([0,0,30]) difference(){ cube([11.5,11.5,5.1],center=true); ...
glb/cad_ac7722b44576.glb
Create a Shower Valve Spacer by starting with a solid cylinder that has a diameter of 21mm and a height of 12.5mm. From this main body, remove a slot-shaped void that runs through the entire height of the object. This void is formed by the convex hull of two smaller cylinders, each with a diameter of 5mm and a height o...
$fn=200; difference(){ cylinder(d=21,h=12.5); hull(){ translate([2.5,0,0]) cylinder(d=5,h=12.5); translate([-10,0,0]) cylinder(d=5,h=12.5); } }
glb/cad_3cc19748bff2.glb
Create a blade guard for a 4-inch scraper by constructing a rectangular sleeve. Start with a solid rectangular block that is 7.2mm wide, 113.12mm long, and 15mm high. From the center of this block, remove a smaller rectangular section to create a hollow channel. This internal cutout should be 2.2mm wide and 101.12mm lo...
rotate([180,0,08]) difference(){ translate([0,0,15/2]) cube([2.2+5,101.12+12,15],center=true); scale(1.05) translate([0,0,2.5]) hull(){ translate([1.1-0.01/2,0,5]) cube([0.01, 101.12, 5.5],center=true); cube([2.2, 101.12, 5],center=true); } }
glb/cad_eb4170ae5b7c.glb
Create a Chuck Key Socket adapter. Start with a base cylinder 17.33mm in diameter and 15mm high. Inside this base, create a square-shaped hole 6.5mm wide and 10.1mm deep, centered and extending from the bottom, to fit a 1/4" drive. On the top surface of this base, add a 1mm thick bevel that tapers from a diameter of 17...
$fn=200; translate([0,0,-6+-7]){ difference(){ cylinder(d=17.33,h=15); hull(){ translate([0,0,4]){ translate([0,0,4]) cube([0.1,0.1,4],center=true); cube([6.3+0.2,6.3+0.2,10.1],center=true); } } } } translate([0,0,...
glb/cad_f35df0a737bd.glb
Create a light switch cover plate with a base measuring 75mm wide by 125mm high and 2mm thick. The base should have rounded corners with a radius of 10mm. On top of this base, add a raised rectangular border that is 70mm wide by 120mm high and 1mm thick, also featuring 10mm rounded corners, leaving a 2.5mm lip around t...
$fn=50; difference(){ union(){ roundRect(75,125,2,10,0.75); translate([0,0,2]) difference(){ roundRect(75,125,4,10,1); roundRect(70,120,5,10,1); } } for(i=[-1:2:1]) translate([0,i*-95.27/2,-1]) cylinder(d1=8,d2=4,h=4); translate([0,96.77/2-26,-1]) cylinder(d=17,h=5); translate([0,-96.77/2+24.14,0]) cube([19,8,10],c...
glb/cad_fb9568e5ccdd.glb
Create a plant pot stand by starting with a main cylindrical base that has a diameter of 101.6mm and a height of 5mm. In the center of this base, remove a vertical cylindrical hole with a diameter of 20mm that passes completely through the object. To create the support legs, place two concentric rings of truncated con...
$fn=50; difference(){ union(){ cylinder(d=25.4*4,h=5); for(i=[0:30:360]) translate([ ((25.4*4/2-10))*cos(i), ((25.4*4/2-10))*sin(i),5]) leg(); for(i=[0:60:360]) translate([ ((25.4*4/2-30))*cos(i), ((25.4*4/2-30))*sin(i),5]) leg(); } translate([0,0,-0.01]) cylinder(d=20,h=5.1); for(i=[0:30:360]) translate([ ((25.4*4/...
glb/cad_9d6846296e6f.glb
Create a Sandal Repair Reinforcement Token by starting with a flat cylinder that has a diameter of 30mm and a height of 3mm. From the center of this disk, remove a smaller concentric cylinder with a diameter of 12mm and a height of 5mm to create a central hole. Additionally, remove a thin cylindrical slice from the cen...
$fn=100; rotate([180,0,0]) difference(){ cylinder(d=30,h=3); translate([0,0,-0.5]){ translate([0,0,-0.5]) cylinder(d=13.5-1.5,h=5); translate([0,0,-0.1]) cylinder(d=14.5,h=2); translate([0,0,2.9]) cube([14.5,6,6],center=true); } }
glb/cad_fa2a4f7267ed.glb
Create a Bike Cup Holder Knob by starting with a central cylinder 35.5mm in diameter and 19mm in height. Cap this cylinder with a flattened sphere of the same 35.5mm diameter, scaled to a height of 7.6mm, to create a rounded top. Drill a vertical center hole 10.7mm in diameter through the entire height of the object. ...
$fn=200; module knob(){ difference(){ union(){ translate([0,0,19]) scale(v=[1,1,0.40]) sphere(d=35.5); cylinder(d=35.5,h=19); } for(i=[0:60:360]) translate([sin(i)*35.5/2,cos(i)*35.5/2,-1]) cylinder(d=10,h=19+10); } } difference(){ union(){ difference(){ knob(); } translate([0,0,19/2]) for(i=[0:120:360]) rotate(60+i...
glb/cad_237a6718b7cb.glb
Create a Hex Key Socket Tray by constructing a rectangular open-top box with outer dimensions of 119.16mm in width, 61.15mm in length, and 23.47mm in height. The walls and the base should have a uniform thickness of 5mm. The interior cavity should be 114.16mm wide and 56.15mm long. Inside this box, create a grid of six...
wallThickness = 5; innerGap = 0.25; outerWidth = 114.16; outerLength = 56.15; outerHeight = 23.47; difference(){ cube([outerWidth+wallThickness,outerLength+wallThickness+1,outerHeight+wallThickness/2],center=true); translate([0,0,wallThickness/2]) cube([outerWidth+innerGap,outerLength+innerGap,outerHeight+wallThickne...
glb/cad_a226870abb36.glb
Create a handlebar extension plug consisting of a tapered main body and a flat circular base. Start by creating a tapered cylinder with a height of 18mm, a bottom diameter of 19.5mm, and a top diameter of 18mm. Hollow out the center of this tapered cylinder by removing a smaller cylinder with a diameter of 12mm and a h...
$fn=50; translate([0,0,3.64]){ difference(){ cylinder(d1=19.5,d2=18,h=18); cylinder(d=12,h=18); translate([0,0,15]){ cube([25,1,27],center=true); cube([1,25,27],center=true); } } } difference(){ translate([0,0,4]){ scale([1,1,0.4]) sphere(d=22.31); }...
glb/cad_9b35fa018554.glb
Create a handlebar plug designed to fit a 19mm inner diameter tube. Start by constructing a tapered cylinder with a height of 20mm, where the base diameter is 19.25mm and the top diameter narrows to 18mm. Surround the base of this tapered cylinder with a larger, thin circular flange. To allow for insertion and flexibil...
$fn=50; difference(){ union(){ cylinder(d1=19.25,d2=18,h=20); cylinder(d=22,h=0); } translate([0,0,17.5]){ #cube([2,20,30],center=true); #cube([20,2,30],center=true); } cylinder(d=13,h=30); } difference(){ translate([0,0,0.75]) scale([1,1,0.35]){ sphere(r=11); } tran...
glb/cad_44d5add4440b.glb
Create an infrared repeater case consisting of a rectangular hollow container with a base and four walls. The main body is a rectangular prism measuring 87mm in length, 45mm in width, and 4mm in height. Inside this container, create two distinct mounting footprints. The first footprint is for a microcontroller, defin...
$fn=50; module espFootPrint(){ difference(){ cube([57,31,1.5],center=true); for(i=[-1,1,1],j=[-1,1,1]){ translate([i*(57/2-3.5/2-1),j*(31/2-3.5/2-1),-1.5-25]){ cylinder(d=3.5,h=25+1.5*2); } } } } module irRecieverFootPrint(){ color([0,0,0,0.5]) difference(){ cube([23,21,1.25],center=true); for(i=[-1],j=[-1,1]){ trans...
glb/cad_23084049ae3e.glb
Create an infrared repeater case consisting of a shallow rectangular tray. Start by creating a main outer box with dimensions 90mm in length, 44mm in width, and 4mm in height. Centered within this outer box, remove a rectangular section to create a hollow interior cavity that measures 82mm by 35mm, leaving a wall thick...
$fn=50; module espFootPrint(){ difference(){ cube([57,31,1.5],center=true); for(i=[-1,1,1],j=[-1,1,1]){ translate([i*(57/2-3.5/2-1),j*(31/2-3.5/2-1),-1.5-25]){ cylinder(d=3.5,h=25+1.5*2); } } } } module irRecieverFootPrint(){ color([0,0,0,0.5]) difference(){ cube([23,21,1.25],center=true); for(i=[-1],j=[-1,1]){ trans...
glb/cad_d100fecf6d60.glb
Create a Bracelet Maker consisting of a circular band with embossed text. Start by creating a hollow cylindrical ring with an outer diameter of 68.5mm (65mm diameter plus 3.5mm thickness), a wall thickness of 3.5mm, and a height of 10mm. The cross-section of the band should be slightly rounded on the top and bottom e...
use <utils/hsvtorgb.scad> $fn = 100; text = "your text here"; font = "Lemon"; size = 6.5; spacing = 1; diameter = 65; thickness = 3.5; height = 10; clasp = "no"; claspSizes = 5; hue = 306; saturation = 0.5; brightness = 0.8; alpha = 0.66; color(hsvToRGB(hue,saturation,brightness,alpha)){ difference(){ ...
glb/cad_c04224fb753c.glb
Create a spacer for a fan duct by constructing a smooth cylinder with an outer diameter of 8mm and a height of 6.5mm. Centered along the vertical axis, remove a smaller cylindrical core with a diameter of 3mm and a height of 6.5mm to create a hollow tube.
$fn=100; difference(){ cylinder(d=8,h=6.5); cylinder(d=3,h=6.5); }
glb/cad_efbe646cf53d.glb
Create an autolevel plate for a CTC PI3 Pro B by starting with a rectangular base measuring 40mm wide, 47mm deep, and 3mm thick. Center this base on the origin. Remove two sets of holes from this plate. First, create two circular holes with a diameter of 3mm and a depth of 10mm; position these holes at x = -14.5mm and ...
$fn=100; rotate([180,0,0]) difference(){ union(){ translate([0,-2.5,0]) cube([40,47,3],center=true); } for(i=[-1:2:1]){ translate([i*14.5,15,-2.25]){ cylinder(d=3,h=10); } translate([i*5.5,-55/2+13,-2.25]){ cylinder(r = 5.5 / 2 / cos(180 / 6)...
glb/cad_487d2892a96c.glb
Create a Mini Trampoline Rubber Foot consisting of two stacked cylindrical sections. Start with a base cylinder that has a diameter of 39mm and a height of 4mm. Centered on top of this base, add a second cylindrical section with a height of 11.28mm. This upper section begins with a base diameter of 33.6mm and tapers li...
$fn=300; translate([0,0,4]){ difference(){ union(){ cylinder(d=39,h=15.28-4); translate([0,0,15.28-4]) cylinder(d1=33.6,d2=30.39,h=20.21); } translate([0,0,8]) cylinder(d=24.72,h=15.28+20.21-4-8); } } translate(){ difference(){ cylinder(d=39,h=4); cylinder(d=30.34,h=4); } difference(){ cylinder(d=24,h=4); cy...
glb/cad_ad3b4697a722.glb
Create an Anet A8 Auto Level Replacement Plate by starting with a base plate 58mm wide, 96mm long, and 2.5mm thick. The base should have rounded corners with a radius of 5mm. Remove several cylindrical holes from this plate, all with a depth of 2.5mm. Place two small 1.5mm diameter holes centered along the X-axis at ...
$fn=100; difference(){ hull(){ for(i=[-1:2:1]){ for(j=[-1:2:1]){ translate([(58-10)/2*i,(96-10)/2*j,0]) cylinder(d=10,h=2.5); } } } translate([0,10,0]){ for(i=[-1:2:1]){ translate([i*(29-10),-26+8,0]) cylind...
glb/cad_16f716887092.glb
Create a power supply switch and socket plate by constructing an L-shaped bracket. Start with a main rectangular base measuring 124mm in width, 4mm in thickness, and 55mm in height. Attach a perpendicular vertical wall to the right edge of this base, which should also be 4mm thick and 55mm high, but extending 67mm furt...
rotate([90,0,0]){ difference(){ union(){ cube([124,4,55]); translate([124,0,0]) cube([4,67,55]); } translate([15,0,14.25]) cube([50,22,27]); } }
glb/cad_b4d46af605ac.glb
Create a strain relief part with a central vertical hole 9.42mm in diameter running through the entire height of the object. The base consists of a rectangular block 4.95mm wide, 19.91mm deep, and 7.78mm high, with a 2.8mm cube removed from the center of the bottom face at a 45-degree angle. Attached to this base is a ...
$fn=300; difference(){ union(){ translate([-5.5,0,0]){ bottom(); middle(); } notch(); top(); } centerHole(); } module bottom(){ difference(){ translate([0,0,7.78/2]){ cube([4.95,19.91,7.78],center=true); } tra...
glb/cad_b378dfa083c0.glb
Create a switch cover by starting with a rectangular block measuring 17mm in width, 8mm in depth, and 13.4mm in height. Apply a 0.25mm fillet or rounding to all exterior edges and corners. Hollow out the top of the block to create a shell, leaving a base thickness of 4.12mm and wall thicknesses of approximately 1.2mm. ...
$fn=50; difference(){ minkowski(){ translate([0,0,(13.65-0.25)/2]) cube([17.25-0.25,8-0.25,13.65-0.25],center=true); sphere(0.25); } translate([0,0,11.85-4.12]) cube([17.25-1.15-0.25,8-1.2-0.25,11.85],center=true); } difference(){ translate([0,0,(13.65-0.67)/2]) cube([5.32,8-1.2,13.65-1],center=true); translate([0,0,...
glb/cad_07b709cd3d42.glb
Create a camera holder for a Raspberry Pi v2 camera designed for a Prusa MK3. The model consists of three main components: a mounting arm, a camera front holder, and a camera rear support. First, construct the mounting arm. Create a rectangular block that is 50mm deep under the hotbed and extends 100mm outside the hea...
part="test - all"; dl=50; zd=100; m=0.25; bm=0.1; lh=30; twl=31; twd=5; a1=0; a2=30; hhd=7; module end_of_settings() {} hh=hhd + m; hw=12.5 + m; hd=6 +0.25 + m; dd=7+6; el=10; fmb=-5; fma=6; fms=2; dms=sqrt(2)*10; aw=14; ah=dd-5; module box(pos,size) { translate(pos) cube(size); } module rrbox(pos=[0,0,...
glb/cad_0777af38164d.glb
Create a lint removal tool consisting of a thin flat profile with a total thickness of 0.4mm. First, construct a long, thin needle section by creating a rectangular strip that is 2mm wide and 10mm long. Attached to the base of this needle, add a square handle that measures 10mm by 10mm. The handle and needle should be ...
h=0.4; d=10.0; w=2.0; hw=10.0; hd=10.0; hh=1.0; linear_extrude(height=h) polygon([[-hd/2,0], [d,0], [d-w,w], [-hd/2,w]]); translate([0,w/2,0]) rotate([0,0,135]) linear_extrude(height=hh) polygon([[0,0], [hd,0], [hd,hw], [0,hw]]);
glb/cad_eb44d3177a61.glb
Create a Litz wire twister consisting of a frame, a spool stack, spools with holders, and a spool adapter. For the frame, create a front plate and a back plate connected by three backbones. The front plate should be mostly solid and include a hole for one 6804 bearing. Construct the spool stack with two end pieces ...
intersection(){ union(){ difference(){ union(){ translate([0,0,-1]) intersection(){ rotate([0,0,60]) cylinder(r=90 + 83.2,h=15,$fn=3); cylinder(r=116.8 + 83.2,h=15,$fn=3); cylinder...
glb/cad_51700afd8b15.glb
Create a Litz wire twister component by starting with a combined solid consisting of a rectangular block measuring 4.5mm by 5.4mm by 3mm, positioned at [0, -2.7, 0.1], and a second rectangular block measuring 4.5mm by 3.2mm by 9.9mm, positioned at [0, -1.6, 0.1]. From this combined volume, remove three specific geometr...
difference(){ union(){ translate([0,-2.7,0.1]) cube([4.5,5.4,3]); translate([0,-1.6,0.1]) cube([4.5,3.2,9.9]); } union(){ cylinder(r=3,h=3.2, $fn=50); cylinder(r=1.9,h=10.1, $fn=50); translate([-9,-5,0]) cube([10,10,11]); } }
glb/cad_8f9dc9598e66.glb
Create a Litz wire twister component consisting of two stacked cylindrical sections. The base section is a cylinder with a radius of 8.5mm and a height of 13.1mm. Remove a central core from this base by intersecting a 3-sided prism (radius 9.2mm, height 20.2mm, rotated 60 degrees) with a cylinder of radius 7.1mm and he...
union(){ translate([0,0,-15.1]){ difference(){ cylinder(r=8.5,h=13.1,$fn=100); translate([0,0,-0.1]) intersection(){ rotate([0,0,60]) cylinder(r=9.2,h= 20.2,$fn= 3); cylinder(r=7.1,h=20.2,$fn=50); ...
glb/cad_f5e6892c2e5d.glb
Create a Litz wire twister frame consisting of three main rectangular components. First, create a central rectangular bar measuring 10mm by 185mm by 14mm. Drill five cylindrical holes through the width of this bar, each with a radius of 1.7mm and a length of 10.2mm; position these holes centered along the width at Y-co...
difference(){ cube([10,185,14]); union(){ translate([-0.1,19,7]) rotate([0,90,0]) cylinder(r=1.7,h=10.2,$fn=50); translate([-0.1,179,7]) rotate([0,90,0]) cylinder(r=1.7,h=10.2,$fn=50); translate([-0.1,59,7]) rotate([0,90,0])...
glb/cad_5a9503f4c966.glb
Create a Litz wire twister component by starting with a thick hollow cylinder with an outer radius of 82mm, an inner radius of 39mm, and a height of 49mm. The base of this cylinder is a solid disc 5mm thick. Around the inner wall, place six vertical rectangular walls, each 46mm wide, 6mm thick, and 44mm high, spaced e...
intersection(){ difference(){ cylinder(r=82,h=49,$fn=200); translate([0,0,-0.1]) cylinder(r=39,h=49.2, $fn=200); } difference(){ union(){ cylinder(r=82,h=5,$fn=200); for(i=[0:5]) rotate([0,0,60*i]){ translate(...
glb/cad_a7adfaa0389c.glb
Create a Litz wire twister base consisting of a primary disc and a concentric raised ring. Start with a solid bottom cylinder with a radius of 82mm and a height of 5mm. Centered on top of this disc, add a second cylinder with a radius of 55mm and a height of 10mm. From this second cylinder, remove a central core consis...
difference(){ union(){ cylinder(r=82,h=5,$fn=200); difference(){ translate([0,0,5]) cylinder(r=55,h=10,$fn=200); union(){ translate([0,0,10]) cylinder(r=50,h=10.2,$fn=200); ...
glb/cad_8eea27b8d3a6.glb
Create a spool for a litz wire twister. Start by constructing a central body consisting of three stacked coaxial sections. The bottom section is a flat cylinder with a radius of 20mm and a height of 1mm. Above this, add a middle cylinder with a radius of 9.5mm and a height of 12mm. Top this with another flat cylinder, ...
difference(){ union(){ translate([0,0,1]) cylinder(r=20,h=1.5,$fn=100); translate([0,0,2.5]) cylinder(r=9.5,h=12,$fn=100); translate([0,0,14.5]) cylinder(r=20,h=1.5,$fn=100); } union(){ translate([0,0,0.9]) cylinder(r1=8.1,r2=7,...
glb/cad_12518a57c82d.glb
Create a Litz wire twister component by starting with a triangular prism formed by the intersection of a cylinder with a radius of 11.5mm and a height of 20.3mm, using a 3-facet resolution. From this base, remove a central core consisting of three combined shapes: a cylinder with a bottom radius of 8.9mm, a top radius ...
intersection(){ cylinder(r=11.5,h=20.3,$fn=3); difference(){ union(){ cylinder(r1=8.9,r2=6.8,h=2.1,$fn=100); translate([0,0,2]) cylinder(r=6.8,h=13.3,$fn=100); translate([0,0,15.1]) cylinder(r1=6.8,r2=8.3,h=1.5,$fn=100); transla...
glb/cad_650e312e1659.glb
Create a Litz wire twister component by starting with a triangular prism that has a base radius varying from 9mm at the bottom to 10.1mm at the top and a total height of 19mm. From this primary volume, remove a central vertical cylinder with a radius of 1.7mm and a height of 19.2mm, positioned to start slightly below t...
intersection(){ difference(){ translate([0,0,0]) cylinder(r1=9, r2=10.1, h=19, $fn=3); translate([0,0,-0.1]) cylinder(r=1.7,h=19.2,$fn=50); translate([0,0,-0.1]) cylinder(r=3.2,h=2.6,$fn=6); translate([0,0,10]) cylinder(r=3.2,h=9.6,$fn=...
glb/cad_abc6e87254a1.glb
Create a geometric object by combining and subtracting several cylindrical and prismatic shapes. Start with a central union of three cylinders: one with a radius of 8mm and height of 2mm, one with a radius of 7mm and height of 30mm positioned at Z=-15, and one with a radius of 5mm and height of 40mm positioned at Z=-40...
difference(){ intersection(){ union(){ translate([0,0,0]) cylinder(r=8,h=2,$fn=100); translate([0,0,-15]) cylinder(r=7,h=30,$fn=100); translate([0,0,-40]) rotate([0,0,30]) cylinder(r=5,h=40, $fn=100); ...
glb/cad_c0fa80a1ca95.glb
Create a stamp handle by starting with a square base plate measuring 35mm by 35mm with a thickness of 2mm. Centered on this base, place a vertical rectangular block that is 6mm wide, 10mm high, and 24.5mm deep. This vertical block should be modified by removing two large cylindrical sections from its left and right sid...
WIDTH = 35; LENGTH = 35; translate([0,0,1.25]) cube(size = [LENGTH,WIDTH,2], center = true); translate([0,0,7]) { difference() { color("green") cube(size = [6,WIDTH-WIDTH*0.3,10], center = true); translate([101,0,0]) cylinder(h = 10.1, r = 100, $fn=700, center = true); translate([-101,0,0]) cylinder(h = 10....
glb/cad_ac123d015feb.glb
Create a Classic Sliding Puzzle consisting of a frame and 16 square tiles. First, construct the frame. Create a square outer wall with a width of 72mm and a height of 6mm. Hollow out the center to create an inner opening of 64.8mm. Within this inner cavity, add thin guide rails (tabs) that are 2mm high and 2mm deep, ...
$ntiles = 4; $size = 16; $tabh = 2; $toler = 0.4; $height = $tabh*3; $depth = $size/8; $border = $depth*3; $inner = $ntiles*($size + $toler); $outer = $inner + $border; $path = "C:/shared/sliding_puzzle"; $frame = 1; $tiles = 1; $names = 1; $arts = 0; module xfoo(in) { s = in ? 1 : -1; off = in ? 0 : $depth; t...
glb/cad_2b5d3a0b4e11.glb
Create a Leftover Filament Spool side disk. The main body is a circular plate with an outer diameter of 130mm and a thickness of 5mm. At the center, create a circular hub with a diameter of 54mm and a height of 15mm. The hub features a central hole with a diameter of 40mm. Around the outer perimeter of the main disk,...
difference(){ for(i=[0:5]){ rotate([0,0,2*i*30]) rotate_extrude(angle = 28.3, convexity = 10, $fn = 200) polygon([[40,1.5],[40,11.5],[36.5,11.5],[31.4,11.5],[31.4,25.9],[28.6,25.9],[28.6,11.5],[27,11.5], [27,0],[28.4,0],[28.4,3.1],[31.6,3.1],[31.6,0],[65,0],[...
glb/cad_60719dc94dea.glb
Create a modular filament spool side with a total diameter of 200mm and a height of 4mm. The part is a circular disc featuring a central hub and a series of radial cutouts. Start with a main disc of 200mm diameter. In the center, create a circular hub with a diameter of 109.2mm. Within this hub, place six equally spac...
difference(){ for(i=[0:5]){ rotate([0,0,2*i*30]) rotate_extrude(angle = 28.3, convexity = 10, $fn = 200) polygon([[45,3],[40,7],[30,7],[27,5], [27,0],[28.4,0],[28.4,3.1],[31.6,3.1],[31.6,0],[100,0],[100,3]]); rotate([0,0,2*i*30 + 28.3]) r...
glb/cad_1caa91492f64.glb
Create a modular side plate for a filament spool. The main body is a ring with an outer diameter of 90mm and a central circular hole. The ring's cross-section is not uniform; it features a repeating pattern of six segments around its circumference. Each segment consists of a raised outer rim and a recessed inner sect...
difference(){ for(i=[0:5]){ rotate([0,0,2*i*30]) rotate_extrude(angle = 28.3, convexity = 10, $fn = 200) polygon([[45,3],[40,7],[30,7],[27,5], [27,1],[28.4,1],[28.4,4.1],[31.6,4.1],[31.6,1],[45,1]]); rotate([0,0,2*i*30 + 28.3]) rotate_ex...
glb/cad_7c4670bb01bc.glb
Create a spool holder bracket with a base thickness of 4mm, a width of 20mm, and a length of 40mm. The main body extends vertically to a total height of 125mm. The structure is designed to fit over a 20mm wide extrusion, featuring a central rectangular cutout that is 24.4mm wide and 117mm high, leaving a wall thickness...
base_thickness = 4; base_width = 20; base_length = 40; base_height = 40; clearance = .2; height = 125; prong_length = 15; prong_start = 10; top_length = 12; hole_dia = 9; mounting_hole_dia = 5.5; mounting_holes = [[10, 10], [10, 30], [30, 10], [30, 30]]; thickness = 8; $fn = 50; cutout_width = base_width+2*(cleara...
glb/cad_e4f7b284be9f.glb
Create an ATX PSU mount consisting of a main bracket and a separate bottom support. For the main bracket, create a base plate 150mm long, 86mm wide, and 4mm thick. Add two perpendicular side walls, each 4mm thick, extending 60mm high from the base. On the base plate, create a rectangular cutout for power plugs and sw...
use <dotSCAD/voronoi2d.scad> L = 150; W = 86; H = 60; atx_holes = [ [6, 16], [120, 6], [144, 80], [6, 80] ]; atx_cutout = [62.5, 30, 80, 30]; thickness = 4; atx_hole_dia = 3.5; indent_dia = 8; indent_depth = 1; $fn = 50; clearance = .2; mounting_hole_heights = [12+thickness, H+thickness-12]; mou...
glb/cad_727beab14d15.glb
Create a RAMPS and MOSFET box consisting of a main case, a lid, and an optional support bracket. The main case is a rectangular enclosure with a width of 150mm, height of 180mm, and depth of 60mm. The walls and back plate have a thickness of 2.4mm. The back plate features several cylindrical standoffs with a diameter ...
use <dotSCAD/voronoi2d.scad> back_plate_thickness = 2.4; chamfer_size = 5; wall_thickness = 2.4; width = 150; height = 180; depth = 60; vertical_offset = 40; horizontal_offset = 20; am8_mounting_holes = [ [10., 20.], [30., 20.], [10., height/2], [30., height/2], [10., height-20], [30., height-...
glb/cad_444a3eab0cea.glb
Create a set of connectable boxes and connector bars. Each box is based on a grid of 40mm square units. For a box of 3x2 units with a height of 40mm, create a rectangular shell with walls 2mm thick. The floor consists of a bottom layer 2mm thick and a top layer 1.6mm thick, separated by a 0.4mm gap. In the bottom flo...
simplify = true; unit_size = 40; demo_box_width = 3; demo_box_depth = 2; demo_box_height = 40; wall_thickness = 2.0; wall_edge_taper = 1.5; top_floor_height = 1.6; connector_height = 1.6; floor_distance = 0.4; bar_width = -1; bar_overlap = -1; connector_overlap = 12; connector_radius = -1; connector_margi...
glb/cad_2022230c0d48.glb
Create an unlock lever for a child safety gate. Start with a base plate that is 25mm long, 19mm wide, and 4.2mm thick, with rounded corners of 1.5mm on the bottom face. In the center of this plate, create a rectangular cutout measuring 12mm by 5.53mm and 1mm deep. Attached to the top of the base plate, build a tiered ...
knob_side_up = true; rotate([0,knob_side_up ? -90 : 0,0]) union() { intersection() { difference() { translate ([0, 0, -2.1]) roundedcube ([25,19,4.2], true, 1.5, "zmin"); translate ([(-12 - 4.3) / 2 , 0, 0]) scale ([12,5.53,1]) cube(1,true); } } translate ([0, 0,...
glb/cad_bd6e3f6ef9a0.glb
Create a curved bottle opener with a thickness of 8mm. The main body is formed by rotating a 2D profile around a central axis to create an arc with a radius of 30 degrees. The 2D profile to be extruded consists of a square with a side length of 25mm and rounded corners of 4mm. From this square, remove a smaller centr...
$fa = 1; $fs = 0.4; linear_opener_thickness = 8; inside_arc_distance = 10; opener_radius = 30; bottle_cap_opening = 8; module sample_cap() { rotate([90,0,0]) linear_extrude(6) circle(d = 29); } module parallelogram(height = 10, length = 20, slant = 10) { translate([-(length + slant)/2.0,-height/2.0]) polygon(...
glb/cad_e022cae2fee7.glb
Create a Positioning Square consisting of two identical arms joined at a 90-degree angle. Each arm is a rectangular block with a length of 139.7mm, a width of 25.4mm, and a thickness of 25.4mm. The cross-section of each arm is not a simple rectangle; it features a recessed center. The outer walls have a thickness of 5...
$fn = 25; length = 139.70; targetWidth = 25.4; width = targetWidth <= length/2 ? targetWidth : length/2; thickness = 25.4; maxRecessAngle = 35; minThicknessRatio = .25; targetMinWallThickness = 5; minWallThickness = targetMinWallThickness * 2 <= width ? targetMinWallThickness : width/2; targetChamferWidth = .75...
glb/cad_2c5126c384eb.glb
Create a mounting plate for an EA120-12V voltage converter. Start with a central rectangular base plate measuring 53.5mm in length, 65.4mm in width, and 1mm in height. Add four mounting features to the top surface. Place two cylindrical posts at coordinates (7.625, 28.7) and (7.625, -28.7). Each post consists of a bas...
$fn = 100; ea120Mount_screws = [ [ 7.625, 28.700, 0] , [ 7.625,-28.700, 0] ]; ea120Mount_slots = [ [-19.000, 21.000, 0] , [-19.000,-21.000, 0] ]; ea120Mount_compL = 53; ea120Mount_standTol = .25; ea120Mount_h = 1.00; ea120Mount_postD = 2.70; ea120Mount_postH = 2.00; ea120Mount_...
glb/cad_c0c089a28dde.glb
Create a mount for an EA120-12V voltage converter. Start with a main central body that is a rectangular prism measuring 38mm x 50mm x 20mm. At the bottom, create a base plate that extends the overall width to 53mm (15mm beyond the main body) and has a thickness of 1.5mm. The base should have rounded corners with a ra...
$fn = 25; ea120_tol = .001; ea120_screws = [ [ 7.625, 28.700, 0] , [ 7.625,-28.700, 0] ]; ea120_slots = [ [-19.000, 21.000, 0] , [-19.000,-21.000, 0] ]; ea120_main = [38.00, 50.00, 20.00]; ea120_front = [15.00, 50.00, 1.50]; ea120_terminal = [13.25, 34.50, 18.50]; ea120_overall = [ ea120...
glb/cad_45a1aa56f7e0.glb
Create a Raspberry Pi Zero 2 mount layout consisting of a central rectangular base plate and four corner mounting posts with integrated clips. The base plate is a centered rectangle measuring 62mm by 25mm with a thickness of 1mm. At each of the four corners, centered at x ±29mm and y ±11.5mm, place a mounting post as...
$fn = 100; postMount_h = 1.00; postMount_xOffset = 29.00; postMount_yOffset = 11.50; postMount_postD = 2.50; postMount_postH = 1.00; postMount_postBaseD = postMount_postD * 2; postMount_postBaseH = 5.00; postMount_clipBaseH = 2.00; postMount_clipW = ...
glb/cad_cb55e9607c97.glb
Create a mount for a U6223 Buck Converter. Start with a rectangular base plate measuring 67.4mm in length, 31.35mm in width, and 1mm in height. Add four flexible retaining clips to the long edges of the base. Position two clips on the top edge at x-coordinates -19.25mm and 13.00mm, and two on the bottom edge at x-coor...
$fn = 100; clipMount_baseH = 1.00; clipMount_boardL = 63.40; clipMount_boardW = 27.35; clipMount_boardTol = 0.15; clipMount_clipBaseH = 3.00; clipMount_clipW = 2.50; clipMount_clipAFlatH = 1.00; clip...
glb/cad_6a9081fc2eb2.glb
Create a customizable screw hole mount for self-tapping screws. Start by constructing a base post with a square footprint of 4.455mm (calculated as 1.35 times the top diameter) and rounded corners with a radius of 0.356mm. The post should transition upward to a circular top with a diameter of 9.075mm and a total height...
$fn = 25; ScrewHole_defaults_nominalHoleD = 3.30; ScrewHole_defaults_holeD_X = 0.87; ScrewHole_defaults_h = 4.25; ScrewHole_defaults_holeChamfer = 0.50; ScrewHole_defaults_topD_X = 2.75; ScrewHole_defaults_baseW_X = 1.35; ScrewHole_defaults_baseR_X = 0.08; ScrewHole_defau...
glb/cad_e24c623d5856.glb
Create a Roller Blind Connector by starting with a central rectangular block measuring 7mm by 7mm with a height of 20mm. From this main body, remove a vertical cylindrical hole with a diameter of 2mm that runs through the entire height. Additionally, remove a wider cylindrical section with a diameter of 5mm and a heigh...
$fn = 100; difference() { cube([7, 7, 20], center=true); cylinder(d=2, h=H+2, center=true); cylinder(d=5, h=16, center=true); translate([5,0,0]) cube([10, 1.5, 22], center=true); rotate([0,90,0]) cylinder(d=4.5, h=16); }
glb/cad_64735b64e5b5.glb
Create a Customizable USB, USB-C, SD, and MicroSD Holder. Start by creating a solid rectangular block with a base slightly larger than the top, featuring exterior rounded corners with a radius of 1.8mm. The block's overall height is 13.8mm. Subtract the following slots from the top of the block: 1. A central SD card s...
SdWidth = 25.1; SdThickness = 2.3; SdDepth = 12; USBWidth = 12.4; USBThickness = 4.7; USBDepth = 12; MicroWidth = 9.8; MicroThickness = 0.9; MicroDepth = 8; UsbCWidth = 8.4; UsbCThick...
glb/cad_b3c1975478f0.glb
Create a folding camp chair clip with a total height of 10mm. The main body consists of two parallel circular rings centered 26.25mm apart. Each ring has an inner radius of 8.5mm and an outer radius of 13.5mm, with a thin outer rib extending the radius to 14mm. Connect the two rings with a central rectangular block th...
DistanceBetweenCircles = 26.25; LegRadius = 8.5; RibThick = 2.5; InnerThick = 3; LegOpeningAngle = 120; LeftCircleOffsetAngle = 55; RightCircleOffsetAngle = 55; ThumbOffsetAngle=45; ThumbOpenAngle=120; ThumbRadius=8.5; InnerHeight=10; RibHeight=4; $fn = $preview ? 60 : 120; ep=$preview ? 000001 : 0; R2=LegRadius + I...
glb/cad_3447697da127.glb
Create a violin plate drill thickness marking jig consisting of a main rectangular base and a supporting block. The main base is a rectangular prism measuring 35.4mm wide, 250.3mm long, and 25.4mm high. At the top end of this base, centered along the length, create a vertical cylindrical hole with a diameter of 5.16mm ...
include <threads.scad>; $fn=100; module Top(){ difference(){ union(){ translate([-25.4/2,-25.4/2,0])cube([25.4,250,25.4]); translate([0,0,0])rotate([-90,0,0])cylinder(d=25.4,h=250-25.4/2); translate([-(25.4+2)/2,250-25.4,25.4/2])rotate([0,90,0])cylinder(d=8,h=25.4+2); }; union(){ DremelNose(); ...
glb/cad_28c85730eb33.glb
Create a set of cycloidal gears consisting of two circular discs. The first disc is a small gear with 6 teeth, and the second is a larger gear with 36 teeth. Both gears should have a face width (thickness) of 4mm. To construct the teeth, use a semicircular tool profile rather than a trapezoidal one. For the small gear...
iterations = 150; verbose = true; $fa=0.4; $fs=0.2; cycloid = true; rotate([0,0,-60*$t])gear(z = 6, m = 1, x =0.05, h = 4, clearance=0); translate([6/2+36/2,0,0])rotate([0,0,10*$t+90])gear(z = 36, m = 1, x = 0.05, h = 4, clearance=0); module help_gears() { helpstr = "gears library - Rudolf Huttay \n iterations = 1...
glb/cad_7e02fab2e79d.glb
Create a Sapphire Pro NF-Mellow and Mosquito mount consisting of a part cooling duct, a hotend mount, and two support braces. First, construct the part cooling duct by creating a central block 17mm wide, 8mm deep, and 13mm high. Add a larger surrounding shell 21mm wide, 5mm deep, and 17mm high, then remove a central ...
translate([8.5,17,25]){ rotate([90,-180,90]){ rotate_extrude(convexity = 10, angle = 90, $fn=30){ translate([11.6, 0, 0]){ polygon( points=[[0,0],[0,4],[5,4],[5,0]] ); }; }; }; }; translate([-(8.5+4),17,25]){ rotate([90,-180,90]){ ...
glb/cad_4b3f727f24cf.glb
Create a Sapphire Pro BLTouch and hotend mount. Start by forming a central block that is a union of a cube measuring 30mm wide, 20mm deep, and 5.9mm high, centered on the X and Z axes, and a cylinder with a 22mm diameter and 5.9mm height, also centered. From this combined volume, remove a central vertical cylinder wi...
$fn=100; difference(){ union(){ translate([0,-5,0])cube([20+10,20,5.9], center=true); cylinder(h=5.9,d=22, center=true); }; union(){ cylinder(h=10,d=12.1, center=true); translate([0,0,0])rotate([90,0,0])union(){ translate([-12,0,-10])cylinder(h=120, d=2); ...
glb/cad_c685d10f5671.glb
Create a Ukraine Peace Ring consisting of a circular band and a flat decorative base. Start by constructing a ring with an inner diameter of 17.25mm, a thickness of 2mm, and a width of 6mm. The ring's cross-section should be rounded, formed by a hull of two 2mm diameter circles. Attached to the bottom of the ring, cre...
$fn= 100; yourFingerDiameter = 17.25; difference(){ union(){ ring(innerDiameter = yourFingerDiameter); roundedDisc(); } translate([0,0,-0.6]) rotate([180,0,0]) linear_extrude(height=3) peaceSign(); } module roundedDisc(rad=11,height=2){ hull(){ rotate_extrude(angle=360) translate([rad,0,0]) circle(d=height); }...
glb/cad_9b3db212af63.glb
Create a snap-on bracket for an L-Tek dance pad. The main body is a flat plate with a thickness of 4.5mm. The overall shape is a rectangular joiner with a width of 44mm (twice the top distance of 22mm) and a height of 24mm (the radius of 12mm doubled), capped at each end by two circular discs with a radius of 12mm. At...
topDistance=22; topGapDepth=1.5; topRadius = 12; topSnap = 0.2; edgeDistance=25; pad=30; padHeight=25; thickness=4.5; screwRadius=2.25; screwHead=11/2; holeSize=screwHead-2; chamfer=1; module spacer() { difference() { cylinder(h=thickness, r=holeSize, $fn=20); cylinder(h=thickness+1, r=screwRadius...
glb/cad_8835c27126d2.glb
Create an adjustable drawing tablet easel storage hook. Start by constructing a main L-shaped bracket with a base plate and a vertical wall, both 3mm thick. The base plate is a rectangle measuring 25mm wide by 20mm deep. From this base, extend a vertical wall 20mm high and 25mm wide. On the outer face of this vertica...
width=25; desk=20; lip=40; thick=3; offset=7; hook=17; module pin(r=thick) { rotate([0,90,0]) cylinder(r=r,h=width,$fn=12); } color("red") difference() { union() { difference() { cube([width,desk,thick]); translate([width/2,desk/2,0]) { cylinder(r=1.5,h=thi...
glb/cad_a625ab66ee58.glb
Create a double-step adjustment pin for a coffee grinder by extruding a specific 2D polygon to a height of 4mm. The polygon is defined by the following vertices in sequence: start at (0,0), move to (6.25, 0), then to (7, 0.75), then to (6.25, 1.5), then to (7, 2.25), then to (6.25, 3), and finally to (0, 3) before clos...
w=7; c=3/4; b=w-c; linear_extrude(4) polygon([ [0,0], [b,0], [w,c], [b,c*2], [w,c*3], [b,c*4], [0,c*4] ]);
glb/cad_ad80d33a3911.glb
Create a minimal wire shelving garbage hoop by constructing a semi-circular ring with a thickness of 10mm and a height of 2mm. The ring should have an outer radius of 90mm and be centered so that it forms a half-moon shape. Along the flat diameter of this semi-circle, place two identical mounting brackets. Each bracket...
module halfmoon(r,h,od) { minkowski() { intersection() { translate([0,od/2,0]) cylinder(r=r-od,h=h,$fn=60); translate([-r,0,0]) cube([2*r,r,h]); } sphere(r=od); } } minkowski() { intersection() { translate([-250,0,2]) cube([500,500,2]); transl...
glb/cad_b801e51ceb54.glb
Create a monitor camcorder mount consisting of a main body and a separate mounting plate. First, construct the main body by starting with a cylinder 70mm high with a radius of 18mm. Carve a vertical slot through the center of this body using a custom polygon profile defined by the coordinates: (-0.4, 1), (13, 0), (17...
module monitor_profile() { polygon([ [-0.4,1], [13,0], [17,1], [35,94], [-100,85], [-6,0], [-4,8], [-2,10], [-0.4,11], ]); } module base_plate() { cylinder(h=70,r=18); translate([0,10,0]) cylinder(r1=17,r2=13,h=70); } if(false) li...
glb/cad_5647dfefa2e5.glb
Create a carpet spike bracket for a dance pad. Start by constructing an L-shaped base consisting of two perpendicular rectangular prisms that meet at a corner. One prism should measure 50mm in length, 3mm in width, and 20mm in height, while the second prism should measure 3mm in width, 50mm in length, and 20mm in heigh...
translate([0,0,20]) { cube([50,50,3]); for(i=[10:15:45]) for(j=[10:15:45]) translate([i,j,0]) cylinder(r1=5,r2=0,h=15); } cube([50,3,20]); cube([3,50,20]);
glb/cad_b7e8b07b3850.glb
Create a carpet spike bracket for a dance pad. Start with a main rectangular block measuring 50mm wide, 50mm deep, and 28mm high, with the bottom 2mm of the block forming a base. On the top surface of this block, create a 4x4 grid of nine conical spikes. Each spike is a truncated cone starting with a base radius of 5mm...
$fn=50; difference() { union() { translate([0,0,2]) cube([50,50,28]); translate([2,1,2]) rotate([-90,0,0]) cylinder(r=3,h=49); translate([1,2,2]) rotate([0,90,0]) cylinder(r=3,h=49); translate([1.5,1.5,2]) sphere(r=3); for(i=[8:15:45]) { for(j=[8:15:45]) { ...
glb/cad_486cbe2cd58d.glb
Create a carpet spike bracket for a dance pad. Start with a main body that is a cube measuring 50mm x 50mm x 28mm, positioned 2mm above the base plane. Add a rounded bead along the edges by placing cylinders with a 3mm radius and a length of 49mm along the X and Y axes, and place spheres with a 3mm radius at the corner...
$fn=50; difference() { union() { translate([0,0,2]) cube([50,50,28]); translate([2,1,2]) rotate([-90,0,0]) cylinder(r=3,h=49); translate([1,2,2]) rotate([0,90,0]) cylinder(r=3,h=49); translate([1.5,1.5,2]) sphere(r=3); translate([50,1.5,2]) sphere(r=3); translate([...
glb/cad_2fb44ca12734.glb
Create a carpet spike bracket for a dance pad. Start with a main rectangular body measuring 50mm wide, 75mm long, and 28mm high, positioned 2mm above the base plane. Integrate a rounded bead along the length of the body by adding a cylinder with a 3mm radius running 74mm long, centered at x=2, y=1, and z=2, capped at b...
$fn=50; difference() { union() { translate([0,0,2]) cube([50,75,28]); translate([2,1,2]) rotate([-90,0,0]) cylinder(r=3,h=74); translate([1.5,0,2]) sphere(r=3); translate([1.5,75,2]) sphere(r=3); for(i=[-1:1:1]) { for(j=[-2:1:2]) { x = 23 + 15*...
glb/cad_5b74232a9ab9.glb
Create a minimal charging stand for a watch. Start by constructing a circular base ring with a radius of 20mm and a cross-sectional radius of 3mm. From the top of this ring, extend a vertical support structure that curves upward and forward to hold a charger. The charger holder is a C-shaped clip designed to cradle a ...
face_clip=2; mount_clip=1.5; $fn=50; module horseshoe(gap,ir,or) { rotate([0,0,gap]) rotate_extrude(angle=360-2*gap) translate([ir,0,0]) circle(r=or); translate([cos(gap)*ir,sin(gap)*ir,0]) sphere(r=or); translate([cos(-gap)*ir,sin(-gap)*ir,0]) sphere(r=or); } translate([0,5,28]) rotate([60,0,0]) differe...
glb/cad_df7b1ab09cfa.glb
Create an espresso tamper consisting of a central core and an outer grip. Start by creating the core as a revolved solid around a central vertical axis. The profile of this revolution begins at the origin, extends to a maximum width of 19.8mm from the center, and reaches a total height of 70mm. The base is a flat disc ...
d=39.6; taper=.25; fillet=1.2; module tamper() { rotate_extrude($fn=360/4) { polygon([ [0,0], [(d-taper)/2-fillet,0], [(d-taper)/2,fillet], [d/2,9.8], [d/2-0.2,10.2], [d/4,15], [9.5,16], [9,18], [...
glb/cad_e1a2597aba6a.glb
Create a garbage disposal stopper-strainer consisting of a circular base and a central handle. Start by constructing the base as a series of stacked cylinders: a bottom disc with a radius of 38mm and height of 0.5mm, a middle section with a radius of 38.5mm and height of 2mm, and a top section with a radius tapering fr...
difference() { union() { translate([0,0,0]) cylinder(r1=38,r2=38.5,h=0.5,$fn=90); translate([0,0,0.5]) cylinder(r=38.5,h=2,$fn=90); translate([0,0,2.5]) cylinder(r1=38.5,r2=38,h=0.5,$fn=90); difference() { union() { cylinder(r=8, h=15); t...
glb/cad_1cf270f8f006.glb
Create a wall-mounted cable management hook with a depth of 15mm and a consistent thickness of 3mm. The main body is a semi-circular arc with an inner radius of 22mm and an outer radius of 25mm. Attached to the end of this arc is a flat rectangular mounting tab measuring 45mm in length, 3mm in thickness, and 15mm in de...
part = 1; thickness = 3; depth = 15; radius = 25; tabs = 45; nails = 1; height=25; difference() { cylinder(r=radius,h=depth); translate([0,0,-1]) cylinder(r=radius-thickness,h=depth+2); translate([-radius,0,-1]) cube([radius,radius+thickness,depth+2]); rotate([0,0,30]) translate([-radius,0,-1]) c...
glb/cad_e7203e75c004.glb
Create a keyboard tent stand wedge. Start with a main rectangular base measuring 120mm in length, 25mm in width, and 5mm in height. Attached to the end of this base, add a vertical plate that is 25mm wide and 80mm tall (extending from -27.5mm to 27.5mm relative to the center), with a thickness of 3mm. On this vertical...
tent_height=15; baseplate=25; wings=40; tower_width=15; difference() { union() { cube([120,baseplate,5]); translate([120 - baseplate,-wings,0]) cube([baseplate,2*wings + baseplate,3]); translate([120 - baseplate,-wings,0]) cube([baseplate,tower_width,35]); translate([120 - bas...
glb/cad_89f38473f49a.glb
Create a project enclosure for a PGA2311 preamp consisting of a hollow rectangular bottom box and a matching top cover. Construct the bottom section as a rectangular shell with outer dimensions of 175.1mm in length, 96.1mm in width, and 36.99mm in height. Hollow out the interior to create a cavity measuring 169.05mm ...
module rca_jack() { rotate([-90,0,0]) { translate([0,0,-1]) cylinder(r=4,h=10); translate([0,0,1.5]) cylinder(r=6,h=10); } } module standoff(l1=5,l2=10) { translate([0,0,-l1]) cylinder($fn=6,r=2.5,h=l1); translate([0,0,-l2]) cylinder($fn=20,r=1.4,h=l2); } module display_panel() { u...
glb/cad_ae5fb4fc13d9.glb
Create a parametric zip-tie holder consisting of three adjacent rectangular bins of varying heights arranged in descending order. Each bin must have an internal width of 40mm and an internal depth of 60mm. The first bin should have an internal height of 140mm, the second 105mm, and the third 70mm. Construct the holde...
heights = [140, 105, 70]; width = 40; depth = 60; wall = 1.4; base = 2; for(i = [0:len(heights)-1]) { let( t_wall = i == 0 ? 2*wall : wall, x_off = i == 0 ? 0 : wall+i*(width+wall), x_off_inner = i == 0 ? wall : x_off ) { difference() { translate([x_off, 0, 0]) c...
glb/cad_a6ae9b2c52b9.glb
Create a Wi-Fi antenna PC case mount. Start with a main rectangular box measuring 62mm in width, 15.25mm in height, and 45mm in depth. Add a 3mm thick lip that extends 5mm beyond the height of the box on the top and right side. On the right side, create a cylindrical cutout for a case screw with a radius of 6.5mm and ...
$fn = 50; thickness = 3.0; screw_cap_r = 6.0; screw_cap_h = 7.4; screw_thread_r = 1.7; screw_thread_h = 11.1 - screw_cap_h; screw_cap_tolerance = 0.5; screw_hole_y = 11.2; screw_hole_receiver = 2.0; box_x = 62.0; box_y = 12.25 + thickness; box_z = 45.0; lip_overhang = 5.0; antenna_tolerance = 0.5; antenna_x = 35.8 ...
glb/cad_99f8d35b2132.glb
Create a dimmer slide switch knob by starting with a main body that is a scaled cylinder. The body should have a total height of 10mm, with a base diameter of 20mm and a top diameter of 16mm, scaled by 0.78 on the X-axis and 0.39 on the Y-axis to create an elliptical profile. Apply a small rounded bevel to the edges. O...
knobHeight = 10; bevelMargin = 0.30; slotWidth = 2; slotDepth = 7; slotHeight = 6; bumpIndent = 0.25; bumpPosition = 3.83; $fn = 40; difference(){ scale([0.78,0.39,1]){ minkowski(){ scale([1,1,1]){ cylinder(knobHeight-(((bevelMargin)*knobHeight)),10,8,false); }; ...
glb/cad_2cc77c21facc.glb
Create an Owl Lantern Battery Cover with a main rectangular body measuring 55mm in length, 27.2mm in width, and 2.7mm in thickness. Centered on the bottom of the main body, add a rectangular center fin that is 23.8mm long, 1.5mm thick, and 14.2mm high. To secure batteries, add four ridges with a height of 1.6mm and t...
coverThickness = 2.7; coverLength = 55.0; coverWidth = 27.2; flangeWidth = 8.7; flangeLength = 14.5; finHeight = 14.2; finThickness = 1.5; finLength = 23.8; ridgeHeight = 1....
glb/cad_cd535220a7b1.glb
Create a rounded table corner protector with a total thickness of 26.1mm, a width of 25mm, and a length of 25mm. The main body is a cube with heavily rounded exterior edges and corners, achieved by applying a 2mm radius fillet to all outer surfaces. Carve a square channel through the center of the block to accommodat...
tableThickness = 16.1; cornerWidth = 25; cornerTopThickness = 5; cornerBottomThickness = 5; cornerThickness = tableThickness + cornerTopThickness + cornerBottomThickness; cornerAngleThickness = sqrt(((cornerThickness/2)*(cornerThickness/2))); minkowskiFactor = 1; cutInsert = ta...
glb/cad_273adbfdbbd0.glb
Create a Laminate Flooring Edge Guard by starting with a main rectangular block 150mm long, 22.7mm wide, and 10mm thick. Centered along the length, add a rectangular tongue extending from the bottom, measuring 150mm long, 3.9mm wide, and 1.9mm thick, positioned 3.6mm up from the base. Above this, add a top flange 150mm...
guardType = "EDGE"; guardLength = 150; guardCornerLength = 155.8; guardWidth = 22.7; guardThickness = 10; guardTongueOffset = 3.6; guardTongueDepth = 3.9; guardTongueThickness = 1.9; guardTongueLength = guardLength; guardTopFlangeLength = guardLength; guardTopF...
glb/cad_3b0de9b4ed27.glb
Create a Graco Swing Frame Bracket by first constructing a hollow cylindrical sleeve. The sleeve should have an outer diameter of 34.7mm, an inner diameter of 29.7mm, and a total length of 100mm. This sleeve is split lengthwise, with a rectangular section removed from the bottom to create a C-shaped channel that is 29....
bracketLength = 100; bracketWidth = 29.7; bracketThickness = 5; peg1and2Width = 8.4; peg1Length = 29.7; peg2Length = 25.7; peg1Offset = -13.93; peg2Offset = 0; peg3Width = 12.38; peg3Length = 29.7; peg3Offset = 16.3; $fn = 40; union(){ difference(){ translat...
glb/cad_95562644047c.glb
Create a Window End Cap with an overall height of 54.3mm and a width of 36mm. The main body consists of two sections: an upper section 43mm high with a thickness of 8.4mm, and a lower section 11.3mm high with a thickness of 11.37mm. Hollow out the center of the cap to create a channel. The internal cavity should be 2...
capHeight = 54.3; capUpperHeight = 43.0; capThickness = 8.4; capMinThickness = 3.2; capWidth = 36.0; capInsideWidth = 29.9; capLowerInsideWidth = 30.5; capLowerInsideHeight = 7.3; capLowerThickness = 11.37; strutWidth = 3.2; strutThickness = 5.8; screwHolePosition = 10.3; screwHoleWidth ...
glb/cad_e521ceb311f7.glb
Create a Supermicro SC743 Drive Tray consisting of two parallel side rails connected by a front handle section. Each rail is a rectangular block 150mm long, 26.1mm wide, and 7.7mm thick. On the inner face of each rail, carve a main longitudinal groove 150mm long, 8.9mm wide, and 5mm deep, offset 3.1mm from the bottom...
railLength = 150; railWidth = 26.1; railThickness = 7.7; railGrooveWidth = 8.9; railGrooveOffset = 3.1; railGrooveDepth = 5.0; railGrooveLength = railLength; railOtherGrooveWidth = 9.0; railOtherGrooveOffset = 2.4; railOtherGrooveDepth = 2.4; railToRailInside ...
glb/cad_38d35e654b2c.glb
Create a wall mounting bracket for a Xiaomi Aqara dual switch. Start by creating a solid base frame using a hull of two centered rectangles: a larger bottom rectangle measuring 87.07mm by 87.45mm with a height of 0.01mm, and a slightly smaller upper rectangle measuring 89.56mm by 86.68mm with a height of 12mm. From t...
switchWidth = 86.07; switchHeight = 86.45; switchThickness = 8; switchFrontWidth = 85.56; switchFrontHeight = 85.68; widthTolerance = 0.5; heightTolerance = 0.5; bracketThickness = 4; rearThickness = 2; frontHoleSize = 30; holeWidth = 8; holeRoundness = 5; fastenerType = "SCREW"; screwDistance = 50; screwOffset...
glb/cad_d31aa590dd46.glb
Create a Xiaomi Temperature Sensor Bracket designed to hold a sensor with a width of 35.6mm and a height of 9mm. Start by constructing a main cylindrical body with an outer diameter of 36.6mm and a total height of 11.5mm. Hollow out the center of this cylinder to create a sleeve with an inner diameter of 36.1mm and a b...
sensorWidth = 35.6; sensorHeight = 9; widthTolerance = 0.5; heightTolerance = 0.5; internalSensorWidth = sensorWidth+widthTolerance; internalSensorHeight = sensorHeight+heightTolerance; bracketThickness = 4; rearThickness = 2; frontHoleSize = 30; holeWidth = 8; holeHeight = internalSensorHeight/3; holeRoundness =...
glb/cad_10eaa4298a26.glb
Create a M6 Buzz Bike Rack Knob. Start by creating a cylindrical base with a total height of 40mm. The bottom section is a tapered transition that leads into a hexagonal cavity designed to hold a nut. Create a hexagonal hole centered in the base with a width of 10mm across the flats and a depth of 5mm to accommodate an...
part = "rounded"; nut_width = 10; nut_thickness = 5; height=40; knurled_height=50; echo("nut_diameter",nut_diameter); diameter_1=190; function get_diameter_1()=hex_nut_diameter*diameter_1/100; diameter_2=200; function get_diameter_2()=get_diameter_1()*diameter_2/100; screw_hole_diameter = 55; function get_screw_...
glb/cad_ee977a66a01f.glb
Create a Quicko Mini STC T12 Panel as a flat rectangular plate with a total width of 86mm (66mm plus 20mm extension), a length of 34mm (24mm plus 10mm extension), and a thickness of 3mm. On the top face, center a rectangular cutout for a display measuring 23mm by 14.5mm, positioned 21mm from the left and 4.75mm from ...
$fn = 50; width = 66; length = 24; height = 3; x_add = 20; x_shift = -1.35; y_add = 10; disp_w = 23; disp_h = 14.5; disp_x = 21; disp_y = 4.75; rotate([180,0,0]) difference() { union() { translate([-x_add/2+x_shift,-y_add/2,0]) cube([width+x_add,length+y_add,height]); translate([disp_x-1,disp_y-1,-1]) cube([...
glb/cad_424b4cf86447.glb
Create a BrewPi Sensor Breakout Box consisting of a main case body and a lid. For the case body, create a rectangular enclosure with an exterior width of 54.6mm, depth of 54mm, and height of 23.1mm. The walls should be 3mm thick. In the front panel, center a rectangular cutout measuring 17mm wide by 13.8mm high. At t...
front_post_hole_offset = 24.7; front_post_to_pcb_front = 3.6; front_to_rear_post_hole_offset = 30.5; panel_depth = 3; panel_offset = max(0.5, panel_depth-3); post_height = 2.5; rear_tab_height = 2; rear_tab_height_offset = 1; tab_side_clearance = 2; pcb_width = 31.6; pcb_depth = 38+6; pcb_height = 1.6; rj_11_width ...
glb/cad_b7ce0d5f826d.glb
Create a BrewPi Sensor Breakout Box consisting of a main case body and a separate lid. For the case body, create a rectangular box with exterior dimensions of 54.6mm width, 54mm depth, and 23.1mm height. The walls should be 3mm thick. In the front wall, center a rectangular cutout measuring 17mm wide by 13.8mm high t...
front_post_hole_offset = 24.7; front_post_to_pcb_front = 3.6; front_to_rear_post_hole_offset = 30.5; panel_depth = 3; panel_offset = max(0.5, panel_depth-3); post_height = 2.5; rear_tab_height = 2; rear_tab_height_offset = 1; tab_side_clearance = 2; pcb_width = 31.6; pcb_depth = 38+6; pcb_height = 1.6; rj_11_width ...
glb/cad_baaf449b399c.glb
Create a TiltBridge ESP32 OLED Enclosure consisting of a main rectangular basin and four integrated mounting posts. The main outer body is a hollow rectangular shell with external dimensions of 68mm in width, 31.66mm in depth, and 6.7mm in height, featuring a wall thickness of 1.9mm. The interior cavity measures 64.4mm...
wall_thickness = 1.9; nut_width = 5.5; nut_height = 2.5; nut_post_width = nut_width + 2.3; nut_hole_height = nut_height + 1.2; nut_hole_width = nut_width + 0.4; nut_hole_depth = (nut_post_width-nut_width)/2 + nut_width; nut_post_height = nut_hole_height + 2; pcb_width = 64.2+0.2; pcb_depth = 27.41+0.5; post_offset...
glb/cad_981c0c6e2f24.glb
Create a TiltBridge ESP32 OLED Enclosure consisting of a base and a lid. For the base, create a rectangular shell with outer dimensions of 68mm by 31.71mm and a total height of 7.8mm. The interior is hollowed out to 64.2mm by 27.41mm, leaving a wall thickness of 1.9mm. At each of the four interior corners, place a squ...
lcd_hole_y_offset = 8.6; part = "lid"; print_part(); module print_part() { if (part == "lid") { print_lid(); } else { print_base(); } } module print_lid() { pcb_width = 64.2+0.2; pcb_depth = 27.41+0.5; post_offset_x = 59.6+0.25; post_offset_y = 23.4+0.25; wall_th...
glb/cad_45703e963da5.glb
Create a TiltBridge ESP32 OLED Enclosure consisting of a main body and a lid. For the main body, create a rectangular shell with outer dimensions of 68mm width, 32.31mm depth, and 4.4mm height. Hollow out the center to create a void for the PCB measuring 23.4mm wide and 21.41mm deep with a depth of 2.5mm. In the four c...
lcd_hole_y_offset = 8.6; pcb_width = 64.2+0.2; pcb_depth = 27.41+0.5; post_offset_x = 59.6+0.25; post_offset_y = 23.4+0.25; wall_thickness = 1.9; inside_area_depth = 2.5; lcd_hole_width = 23.8; lcd_hole_height = 13.6; slope_width=2.6; slope_height=inside_area_depth; module make_holes() { post_height = 8; h...
glb/cad_9558f95877c4.glb
Create a TiltBridge TTGO ESP32 OLED Enclosure. Start with a rectangular base plate measuring 53mm wide, 31.2mm deep, and 1mm thick. In the top surface of this plate, center a rectangular cutout for an LCD screen measuring 23.8mm wide by 13.6mm deep. On the left edge of the base, create a small rectangular notch measuri...
wall_thickness=1; case_depth=3.5+3.7+1.5+wall_thickness+1; pcb_length=50.3; case_width=51; insert_height=case_depth-1.5-3.7-0.8; nut_width = 5.5; nut_height = 2.5; nut_post_width = nut_width + 2.3; nut_hole_height = nut_height + 1.2; nut_hole_width = nut_width + 0.4; nut_hole_depth = (nut_post_width-nut_width)/2 + n...
glb/cad_b04732253a8b.glb
Create a TiltBridge TTGO ESP32 OLED Enclosure. Start with a main outer box measuring 53mm in width, 27.7mm in depth, and 9.4mm in height, with a wall thickness of 1mm. Carve out a central rectangular cavity for the PCB, measuring 50.3mm by 21.1mm, positioned to leave a 1mm wall around the perimeter. This cavity shoul...
wall_thickness=1; case_depth=3.5+3.7+1.5+wall_thickness+1; pcb_length=50.3; case_width = 51; riser_height = 4.6; module below_pcb_carveout() { translate([0, (25.7-21.1)/2,-riser_height]) cube([pcb_length,21.1,3.7+0.01+riser_height]); } difference() { translate([-wall_thickness, -wall_thickness, 0]) cube([ca...
glb/cad_99a3e9b2744b.glb
Create a BrewPi-ESP8266 Box lid. Start with a rectangular plate measuring 140mm wide, 135mm deep, and 5mm high. From this plate, remove a central rectangular cutout measuring 98mm wide and 60mm high, centered along the width and positioned 90mm from the back edge. At each of the four corners of the lid, create a ci...
wall_thickness = 3; case_depth = 135; case_width = 140; case_height = 72; hole_radius = 2; lid_height = 5; tab_width = 20; wall_tolerance = 1; tab_tolerance = .8; screw_radius = (4 / 2); screw_length = ((15 - 5) / 2); LCD2004_BOARD_WIDTH = 98; LCD2004_BOARD_HEIGHT = 60; module LCD2004() { screw_hole_diameter ...
glb/cad_ab8dc737efed.glb
Create a BrewPi-ESP8266 Box lid. Start with a rectangular plate measuring 140mm wide, 135mm deep, and 5mm high. From this plate, remove a central rectangular section to create a window for an LCD screen. This cutout should be 60.8mm wide and 42mm high, centered along the width and positioned 90mm from the front edge....
wall_thickness = 3; case_depth = 135; case_width = 140; case_height = 72; hole_radius = 2; lid_height = 5; tab_width = 20; wall_tolerance = 1; tab_tolerance = .8; screw_radius = (4 / 2); screw_length = ((15 - 5) / 2); LCD2004_BOARD_WIDTH = 60.8; LCD2004_BOARD_HEIGHT = 42; module LCD2004() { screw_hole_diamet...
glb/cad_e410f4b362f9.glb
Create a BrewPi-ESP8266 Box, which is an open-top rectangular enclosure. The outer dimensions of the box are 140mm wide, 135mm deep, and 72mm high. All walls have a thickness of 3mm. The two side walls are solid except for a pattern of ventilation holes. These holes have a radius of 2mm and are arranged in staggered r...
wall_thickness = 3; case_depth = 135; case_width = 140; case_height = 72; hole_radius = 2; lid_height = 5; tab_width = 20; screw_radius = (2.8 / 2); screw_length = ((15 - 5) / 2); plate_width = 114.3/2+6; plate_height = 114.3-1.5; plate_thickness = wall_thickness+.02; module add_vent...
glb/cad_771289dc2603.glb
Create a sensor box case consisting of a main body and a lid. The main body is a rectangular shell with an exterior width of 56mm, a depth of 67mm, and a height of 23mm. The walls of the case are 3mm thick. On the front face, center a rectangular cutout measuring 14mm wide by 15.7mm high to accommodate an RJ-11 jack. ...
front_post_hole_offset = 22.6; front_post_to_pcb_front = 3.8; front_to_rear_post_hole_offset = 42; panel_depth = 3; panel_offset = panel_depth-3; post_height = 4; rear_tab_height = 2; rear_tab_height_offset = 1; tab_side_clearance = 2; pcb_width = 30.3; pcb_depth = 51.2; pcb_height = 1.6; rj_11_width = 14; rj_11_he...
glb/cad_0e9f0808c25b.glb
Create a sensor box case with a base and three walls, leaving the top and rear open. The base is a rectangular slab 56.3mm wide, 67.2mm deep, and 3mm thick. Construct the front wall 21.7mm high with a thickness of 3mm. Center a rectangular cutout in this front wall measuring 14mm wide and 12.7mm high. Add two side wa...
front_post_hole_offset = 22.6; front_post_to_pcb_front = 3.8; front_to_rear_post_hole_offset = 42; panel_depth = 3; panel_offset = panel_depth-3; post_height = 4; rear_tab_height = 2; rear_tab_height_offset = 1; tab_side_clearance = 2; pcb_width = 30.3; pcb_depth = 51.2; pcb_height = 1.6; rj_11_width = 14; rj_11_he...
glb/cad_6aa010e337fa.glb