Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Zombicide Card Holder consisting of three adjacent rectangular slots. The overall base is a solid block with a thickness of 3mm. The back wall is 23mm high. Each of the three slots must have internal dimensions of 43.5mm in width and 65.7mm in depth to accommodate sleeved cards. The walls separating the slots...
card_length = 63.7; card_width = 41.5; card_spacing = 1; wall_size = 3; stack_height = 20; lip_size = 3; num_slots = 3; slope_size = 4; slope_height = 5; outer_length = (card_width + card_spacing * 2 + wall_size) * num_slots + wall_size; outer_height = wall_size + stack_height; outer_depth = card_length + card_spacing...
glb/cad_3e30c1e35119.glb
Create a Customizable Strap End by constructing a rectangular base and removing a central channel. Start with a solid rectangular block that is 19mm wide, 10mm deep, and 2mm high. Centered within this block, remove a rectangular slot that is 15mm wide and 4mm deep, leaving a 2mm border on all sides. To refine the ends ...
$fn=12; border=2; height=2; width=15; gap=4; offset=gap/2; fudge=0+.1; union(){ translate([0,0,-height/2]) difference(){ translate([0,-(border+height+gap/2),0]) cube([width+2*border,border+height+gap+height+border,height]); color("red") translate([border,-gap/2,-fudge]) cube([width,gap,height+fudge*2]); } transla...
glb/cad_466da6f8752a.glb
Create a parametric battery holder with a total length of 24mm and a central width of 6.5mm. The main body consists of a rectangular backing plate 2mm thick. At each end of the length, create a mounting block that is 6.5mm wide, 2mm thick, and extends 5mm outward from the center. On the outer face of each mounting bloc...
$fn = 100; d = 5.00; w = 13.00; l = 24.00; thk = 2.00; rbh = 2.00; rbd = 4.00; hole = false; hd1 = 1.00; hd2 = 2.00; pegl = 7.00; pegd = 2.00; module mount_bare() { translate( [-w/4, 0, -d/2] ) { cube( [w/2, thk, d] ); } } module mount(hole=true) { if (hole) { difference() { mount_bare(); ...
glb/cad_d49ee05b8db1.glb
Create a parametric clip mount for holding a rod. Start by designing the clip itself: create a hollow semi-cylindrical shell with an inside diameter of 7.75mm, a wall thickness of 2mm (resulting in an outside diameter of 11.75mm), and a total width of 5mm. The clip should be an open C-shape, formed by removing a wedge ...
$fn = 100; id = 7.75; thk = 2; od = id+thk*2; len = 5; screw_d = 2.5; screw_cs_d = 4.5; screw_cs_depth = 2; screw_ovp = 3; mount_thk = thk; mount_ext = 2; mount_l = od + mount_ext*2; spc = 2; module clip() { linear_extrude(height=len) { difference() { difference() { circle(d=od); polygon(points=[[0,0...
glb/cad_e7ad54fde77a.glb
Create a tiling puzzle consisting of seven distinct heptominoes, each composed of seven cubes with a side length of 10mm. The seven pieces must fit together perfectly to form a larger 7x7x1 cube with total dimensions of 70mm x 70mm x 10mm. Construct the seven pieces based on the following coordinate sets (x, y), where...
view(t4405749_3); module view(file) { color("lavender") join_cubes(file,1,7); color("ivory") join_cubes(file,8,7); color("DarkSalmon") join_cubes(file,15,7); color("pink") join_cubes(file,22,7); color("lightblue") join_cubes(file,29,7); color("orange") join_cubes(file,36,7); color("red") join_cubes(fil...
glb/cad_8f88ab0a21dd.glb
Create a filter snap-on light hood. Start by constructing a hollow, tapered cylinder with a wall thickness of 1.75mm and a total height of 50mm. The inner diameter should taper linearly from 31.5mm at the base to 39mm at the top. At the base of this tapered shell, add a solid cylindrical ring that extends downwards b...
filterDia = 31.5; filterHeight = 5.5; hoodHeight=50; hoodTopDia = 39; thickness = 1.75; $fn=180; union() { translate([0,0,filterHeight-0.1]) difference() { cylinder(h=hoodHeight,d1 = filterDia+2*thickness, d2=hoodTopDia+2*thickness); translate([0,0,-0.5]) cylinder(h=hoodHeight+1,d1=filterDia, d2=hoodTopDia); } ...
glb/cad_bbbcdf980562.glb
Create a webcam bracket for a Microsoft LifeCam HD5000. Start with a central rectangular web that is 150mm wide, 30mm high, and 5mm thick. At one end of the web, construct a main mounting flange. This flange is formed by a block 35mm high, 5mm wide, and 40mm thick, rotated 45 degrees. Add a hook to this flange consis...
use <write.scad> Layout = "both"; web_height = 30; web_width = 150; web_thickness = 5; main_flange_height = 50; main_flange_width = 5; main_flange_thickness = 40; main_flange_hook_width = 3.5; main_flange_rotation = 45.0; camera_flange_height = 35; camera_flange_width = 10; camera_flange_thickness = 50; camera_slot...
glb/cad_ec5090ac8743.glb
Create a Yazzo Shafted Motor Horn consisting of a circular base and an attached cylindrical shaft. Start with a disc centered at the origin with a radius of 10.44mm and a thickness of 8mm. Remove a central vertical hole from the disc with a radius of 2.5mm to accommodate a motor shaft. Create a horizontal hole for a ...
goldenratio = 1.618003399; joinfactor = 0.25; gDefaultThickness = 8; gDefaultKeyBase = 12; gDefaultKeyTop = gDefaultKeyBase/goldenratio; gDefaultKeyHeight = gDefaultKeyBase/goldenratio; gDefaultDiscRadius = 1/4*25.4*goldenratio*goldenratio; gDefaultDiscThickness = gDefaultThickness; gDefaultPrimaryIR = 11.34/2*1.05...
glb/cad_b14fe6b5eb9f.glb
Create an improved lens cap designed for a 77mm lens, consisting of four interlocking parts. The main body is based on a diameter of 76mm. First, create the cap frame. Construct a cylinder with a radius of 38mm and a total height of 7mm (combining a 3mm thread height and 4mm top height). Add an outer rim (overhang) th...
threadHeight = 3; topHeight = 4; springHeight = 2; gap = 1; wall = 1.5; springY=15; springThickness = 2; travel = 2; diameter = 76; capDiameter = 80; holeDiameter = 6; numStuds = 3; lensRadius = diameter/2; overhang = (capDiameter - diameter)/2; channelWidth=lensRadius; springBase = threadHeight+topHeight-(springHeigh...
glb/cad_fcd0a8d402a8.glb
Create an improved lens cap designed for a 77mm lens, consisting of four interlocking parts. The main body is based on a central diameter of 76mm with a total cap diameter of 80mm. Construct the main frame as a cylinder with a height of 7mm (the sum of a 3mm thread height and 4mm top height). The frame should feature ...
threadHeight = 3; topHeight = 4; springHeight = 2; gap = 1; wall = 1.5; springY=15; springThickness = 2; travel = 2; diameter = 76; capDiameter = 80; holeDiameter = 6; numStuds = 3; lensRadius = diameter/2; overhang = (capDiameter - diameter)/2; channelWidth=lensRadius; springBase = threadHeight+topHeight-(springHeigh...
glb/cad_2b07b853b5f6.glb
Create an improved lens cap designed for a 77mm lens, consisting of four interlocking parts. The main body is based on a diameter of 76mm. First, create the cap frame. Construct a cylinder with a radius of 38mm and a total height of 7mm (combining a 3mm thread height and 4mm top height). Add an outer rim by creating a...
threadHeight = 3; topHeight = 4; springHeight = 2; gap = 1; wall = 1.5; springY=15; springThickness = 2; travel = 2; diameter = 76; capDiameter = 80; holeDiameter = 6; numStuds = 3; lensRadius = diameter/2; overhang = (capDiameter - diameter)/2; channelWidth=lensRadius; springBase = threadHeight+topHeight-(springHeigh...
glb/cad_09e660704d06.glb
Create a 3D silhouette of a woman's head in profile, known as the Barbie Polygon, with a uniform thickness of 2mm. The shape is defined by a complex 2D polygon extruded along the Z-axis. The outline begins at the base with a neck and shoulder area, curving upward from coordinates (120, 5) and (115, 3.4) through a seri...
xpos=120; ypos=5; %translate([xpos,ypos,1.6])color("indigo")cylinder(r1=.1,r2=1.2,h=6,$fn=30); linear_extrude(height=2) polygon( points=[[120,5],[114.4,10],[110,15],[106.3,20],[103.6,25],[101.3,30],[100,35],[98.8,40],[98,45],[97.7,50],[97.6,55],[98,60],[99,65],[102.5,72],[105,73.3],[110,73],[115,72.2],[120,71.4],[125,...
glb/cad_6ba0394a2dc0.glb
Create a socket for an ESP-03 or ESP-04 module. Start with a rectangular base block measuring 20.32mm wide, 17.78mm long, and 4mm high. From the top surface, remove a central rectangular volume to create a cavity for the module body, measuring 12.7mm wide and 18mm long, with a depth of 5mm (extending below the base)....
esp_w = 12.7; esp_l = 18; esp_ps = 2.0; esp_po = 1.3; esp_po = 2.9; esp_pc = 7; esp_h = 4; esp_d = 1; wd = 1; sw = 8; sl = 7; difference() { translate([-sw*2.54/2,0,0]) cube([sw*2.54,sl*2.54,esp_h]); translate([-esp_w/2,0,1]) cube([esp_w,esp_l,5]); for(i = [1:esp_pc]) { translate([0,esp_po+(i-1)*esp_ps,3]) ...
glb/cad_5cf2c9d55d13.glb
Create a customizable plant pot by constructing a hollowed-out tapered vessel. Start with a main body consisting of a cylinder with a height of 100mm, a bottom radius of 50mm, and a top radius of 60mm. Add a shallow rim on top by placing a second cylinder with a height of 15mm, a bottom radius of 64mm, and a top radius...
size = 100; wallthickness = 2; hole = 1; resolution = 100; difference(){ difference(){ union(){ translate([0,0,0])cylinder(h = size, r1 = size/2, r2 = size*1.2/2, $fn = resolution); translate([0,0,size*0.85])cylinder(h = size*0.15, r1 = size*1.28/2, r2 = size*1.3/2, $fn = resolution); } translate([0,0,wal...
glb/cad_f25f42926664.glb
Create a curved rail segment for a particle accelerator track. The segment is a 22.5-degree arc with an inner radius of 380mm and a total thickness of 2.6mm. The cross-section of the rail is asymmetrical: the inner face is flat, while the outer face features a stepped profile. It consists of a bottom edge 6.4mm high,...
radialAdj = 1.07; railThickness = 2.6; railInnerRadius = 380; railAngle = 22.5; technicHoleInnerDiam = 4.8*radialAdj; technicHoleInnerLength = 8; technicHoleRimDiam = 6.2*radialAdj; technicHoleRimHeight = 0.9; technicPartHeight = 7.8 ; $fn = 20; use <MCAD/fonts.scad> module testBrick() { difference() { tran...
glb/cad_c978162ab64e.glb
Create a customizable plant pot coaster. Start by creating a shallow outer cylinder with a height of 10mm, a bottom radius of 57.5mm, and a top radius of 60mm. Hollow out the center by removing a concentric cylinder from the top, leaving a wall thickness of 2mm and a base thickness of 2mm, with the inner cylinder havin...
size = 100; wallthickness = 2; resolution = 100; union(){ difference(){ translate([0,0,0])cylinder(h = size*.1, r1 = size*1.15/2, r2 = size*1.2/2, $fn = resolution); translate([0,0,wallthickness])cylinder(h = size-wallthickness, r1 = (size-2*wallthickness)*1.15/2, r2 = (size-2*wallthickness)*1.2/2, $fn = resoluti...
glb/cad_dc109b641e4e.glb
Create a customizable funnel with a total height of 100mm. Start by constructing the main body as a hollowed-out conical frustum with a height of 60mm, a base radius of 50mm, and a top radius of 7.5mm. The walls of this section should have a uniform thickness of 1mm. On top of this base section, add a narrower cylind...
size = 100; wallthickness = 1; resolution = 100; union(){ difference(){ union(){ translate([0,0,0])cylinder(h = size*0.6, r1 = size/2, r2 = size*0.15/2, $fn = resolution); translate([-0.5,-0.6,0]) translate([0,size*0.12,0]) rotate([1/tan(size*0.1/(size*0.4)*180/PI),0,0]) cube([1,1.2,size]); rotate([0,0,120...
glb/cad_0d4fda73e182.glb
Create a custom simple lens hood by constructing a hollow cylindrical tube with an inner diameter of 4mm and a total height of 4mm. The main wall thickness of the tube should be 0.1mm. Add a brim at both the bottom and top ends of the cylinder; these brims should have a thickness of 0.2mm and a length of 0.75mm, extend...
length=4; InnerDiameter=4; radius=InnerDiameter/2; wallThickness=0.1; brimThickness=0.2; brimLength=0.75; holeDiameter=.09375; holeOffset=.2; numberOfHoles=4; topHoles=1; res=50; difference() { union() { cylinder(r=radius+wallThickness,h=length,$fn=res); cylinder(r=radius+brimThickness,h=brimLength,$fn=res); ...
glb/cad_ea2f2970f9d2.glb
Create a 4x2 LEGO-style brick by starting with a solid rectangular base measuring 15.928mm wide, 31.956mm long, and 9.6mm high. Hollow out the center of the block by removing a smaller rectangular volume of 12.814mm by 28.842mm by 9mm, positioned 1.557mm from the side and front edges and offset 1mm from the bottom. On ...
$fa=0.1; $fs=0.1; difference() { cube (size=[15.928,31.956,9.6]); translate ([1.557,1.557,-1]){cube (size=[12.814,28.842,9]);} } for (holePos = [7.964,15.978,23.992]) { translate([7.964,holePos,0]) { difference() { cylinder (r=3.267, h=8.5); cylinder (r=2.417, h=8.5); } } } for (x = [3.957,11.971]) for (y = [...
glb/cad_4aa120aefdf1.glb
Create a Rep 1 Filament Monitor Mount. Start with a main rectangular block 78mm wide, 26mm deep, and 15mm high. At the bottom center, add a vertical rectangular tab 78mm wide, 2.2mm thick, and 14mm high that extends downwards. Create two symmetrical filament guide holes through the body. Each hole is a conical void ce...
width = 78; difference() { union () { difference() { translate ([-width/2, 10-2.2/2, -14]) cube (size = [width, 2.2, 14]); translate ([22+5, 10, -37]) cylinder (h = 30, d2 = 5, d1 = 55, $fn =30); mirror ([1, 0, 0]) translate ([22+5, 10, -37]) cylinder (h = 30, d2 = 5,d1 = 55, $fn =30); } translate ([...
glb/cad_b3a0185ce82f.glb
Create a parametric bicycle bag wall mount. Start with a rectangular base measuring 40mm in length, 45mm in width, and 5mm in thickness. On the top surface of this base, add a centered, semi-cylindrical protrusion that is 10mm in diameter and 45mm long, extending across the width of the base. To form the side supports,...
diameter = 10; offset = 8; height = 40; width = 45; wallStrength = 5; holeDiameter = 3.2; $fn=60; difference(){ union(){ side(); translate([0,width-5,0])side(); cube([height,width,wallStrength]); translate([height/4+diameter/2,0,diameter/2+offset+wallStrength])rotate([-90,0,0])cyli...
glb/cad_8d2c92c6b4f6.glb
Create a bicycle bag clip consisting of two main components: a trigger and a case. First, construct the trigger. Start with a central cylinder 11mm in diameter and 11mm high. Attach a rectangular strip mount measuring 15mm by 8.5mm by 11mm, rotated -60 degrees on the Z-axis and offset by 2mm in X and Y. Add a small cy...
renderTrigger = true; renderClip = true; clipAngle = 0; $fn = 40; diameter = 11; triggerWidth = 11; clipWidth = 26; g = triggerWidth+1; module trigger(){ difference(){ union(){ union(){ cylinder(triggerWidth,5,5); rotate([0,0,-60])translate([2,2,0])cube([15,8.5,triggerWidth]); ...
glb/cad_ad5f64e0eb01.glb
Create a parametric bicycle bag clip by constructing a composite body and removing a central axis. Start with a main form created by the convex hull of three elements: a rectangular block 16mm wide, 60mm long, and 3mm thick positioned at the top; a cylinder with a 15mm radius and 6mm height; and a cylinder with a 15mm ...
diameter = 30; height = 12; length = 60; width = 16; holeDiameter = 4; $fn = 40; difference(){ union(){ hull(){ translate([-width/2,0,height/2+1])cube([width,length,3]); translate([0,0,height/2-1])cylinder(1,diameter/2,diameter/2); translate([0,0,height/2])cylinder(6,wi...
glb/cad_0e70d09064f1.glb
Create a mounting bracket for an HC-SR04 ultrasonic sensor. Start with a rectangular base measuring 49.35mm in length, 21mm in width, and 5mm in thickness. The base should have rounded edges and a central mounting tab at the front. On the top surface of the base, create a recessed slot to hold the sensor PCB. This slo...
slop = 0.25; SSEP = 25.4; SZ = 11.9; SOD = 16.0+slop; PCBX = 45.35+slop; PCBY = 20.5; PCBZ = 1.6+slop; XTLX = 10.3; XTLY = 4.53; XTLZ = 3.7; HOD = 0; HCX = 42.35; HCY = 17.0; fn = 60; eps = 0.03; module xducer() { translate([SSEP/2,0,0]) cylinder(d=SOD, h=SZ, $fn=fn); translate([-SSEP/2,0,0]) cylinder(...
glb/cad_c58b58173fe4.glb
Create a mounting bracket for an HC-SR04 ultrasonic sensor. Start with a rectangular base measuring 49.35mm in length, 21mm in width, and 5mm in thickness. Round the front and back edges of this base using a large radius. On the underside of the base, create three 3.2mm diameter holes: two positioned 32mm apart along...
slop = 0.25; SSEP = 25.4; SZ = 11.9; SOD = 16.0+slop; PCBX = 45.35+slop; PCBY = 20.5; PCBZ = 1.6+slop; XTLX = 10.3; XTLY = 4.53; XTLZ = 3.7; HOD = 0; HCX = 42.35; HCY = 17.0; fn = 60; eps = 0.03; module xducer() { translate([SSEP/2,0,0]) cylinder(d=SOD, h=SZ, $fn=fn); translate([-SSEP/2,0,0]) cylinder(...
glb/cad_cc1236154690.glb
Create a flying base for gaming miniatures consisting of three stacked, 16-sided polygonal cylinders aligned on a central vertical axis. Start by creating a main central pillar with a height of 55mm, tapering slightly from a bottom radius of 2.5mm to a top radius of 2mm. Attach a short 16-sided polygonal cylinder to th...
$fn=16; height=55; fudge=0.05; union() { cylinder(r1=2.5, r2=2, h=height); translate([0,0,-3.39]) cylinder(h=3.4,r=1.5-fudge); translate([0,0,height-.01]) cylinder(h=3.4,r=1-fudge); }
glb/cad_4c41364fbfd2.glb
Create a 60mm flying base for gaming miniatures. Start by creating a solid cylinder with a radius of 30mm and a height of 7mm. Modify the top surface of this cylinder by carving it with a large sphere of 200mm radius, centered 3.5mm above the base's bottom plane, to create a subtle, shallow convex dome. Finally, remove...
$fn=256; difference() { translate([0,0,3.5]) intersection() { translate([0,0,-200]) sphere(r=200); translate([0,0,-20]) cylinder(r=30, h=400); } translate([0,0,-50]) cube([100,100,100],center=true); }
glb/cad_db447b450429.glb
Create a 60mm flying base for gaming miniatures. Start by creating a solid cylinder with a radius of 30mm and a height of 7mm. Modify the top surface of this cylinder by rounding it using the curvature of a sphere with a radius of 200mm, centered 3.5mm above the base's bottom plane, to create a slightly convex, dome-li...
$fn=256; difference() { translate([0,0,3.5]) intersection() { translate([0,0,-200]) sphere(r=200); translate([0,0,-20]) cylinder(r=30, h=400); } translate([0,0,-50]) cube([100,100,100],center=true); translate([0,0,-5]) cylinder(r=1.5,h=10); }
glb/cad_ddd96d5dbec3.glb
Create a flying base for gaming miniatures consisting of three stacked, 16-sided polygonal cylinders aligned on a single vertical axis. Start by creating a central main pillar with a height of 35mm, tapering slightly from a bottom radius of 2.5mm to a top radius of 2mm. Attach a small 16-sided polygonal cylinder to the...
$fn=16; height=35; fudge=0.05; union() { cylinder(r1=2.5, r2=2, h=height); translate([0,0,-3.39]) cylinder(h=3.4,r=1.5-fudge); translate([0,0,height-.01]) cylinder(h=3.4,r=1-fudge); }
glb/cad_a33b35e6a7cd.glb
Create a flying base for gaming miniatures consisting of three stacked cylindrical sections aligned on a single vertical axis. The central component is a 16-sided prism with a height of 45mm, tapering slightly from a bottom radius of 2.5mm to a top radius of 2mm. At the bottom of this main pillar, add a 16-sided cylind...
$fn=16; height=45; fudge=0.05; union() { cylinder(r1=2.5, r2=2, h=height); translate([0,0,-3.39]) cylinder(h=3.4,r=1.5-fudge); translate([0,0,height-.01]) cylinder(h=3.4,r=1-fudge); }
glb/cad_451b29b3d5a9.glb
Create a blunt weaving needle with a total length of 150mm and a diameter of 8mm. The main body is a long cylinder with hemispherical caps at both ends. To create the eye of the needle, remove a central rectangular slot from the body. This slot should be 4mm wide and 36mm long, positioned 10mm from one end of the needl...
$fn=50; thickness=8; totalLength=150; eyeoffset=10; eyelength=36; eyewidth=4; length=totalLength-eyeoffset-eyelength; sidewalls="cylinders"; difference() { union() { translate([0,0,eyeoffset+eyelength]){ pill(length,thickness/2); } pill(eyeoffset,thickness/2); if (sidewalls == "pills") { ...
glb/cad_bc70663673c1.glb
Create a HerringBone Extruder Gear consisting of two separate gears designed to mesh with a distance of 40.4555mm between their axles. First, create a small gear with 11 teeth. This gear should have a total height of 20mm (composed of two 10mm mirrored herringbone sections). Center a vertical shaft hole with a diamete...
include <MCAD/involute_gears.scad> include <MCAD/teardrop.scad> printing = 1; distance_between_axles = 40.4555; gear_h = 10; gear_shaft_h = 10; gear1_teeth = 11; gear1_shaft_d = 5.4; gear1_shaft_r = gear1_shaft_d/2; gear1_setscrew_offset = gear_h / 2; gear1_setscrew_d = 3 / cos(180 / 8) + 0.4; gear1_setscr...
glb/cad_3f97921052f2.glb
Create a Diva Ring by combining a central band with decorative spikes and a gemstone setting. Start with an offset channel ring that has an outer diameter of 25mm (based on a 20mm ring size plus 5mm thickness), a width of 7mm, and an interior hole of 20mm. Add two flanges to the ring, each 2mm thick, offset by 1.8mm. ...
module gemQD(gemRadius=4){ union(){ translate([0,0,.001]) mirror([0,0,1]) cylinder(center=false, h=gemRadius/8, r1=gemRadius/2, r2=gemRadius/2*.75, $fn=100); cylinder(center=false, h=gemRadius/2, r1=gemRadius/2, r2=.1, $fn=100); cylinder(center=true, h=20, r=gemRadius/4, ...
glb/cad_eab904c0dfbd.glb
Create a Diva Ring by combining a central band with decorative spikes and gemstone settings. Start with a ring band that has an inner diameter of 20mm and a width of 7mm. The band should feature an offset channel design with two outer flanges, each 2mm thick, positioned at the top and bottom edges of the band. Add 10 ...
module ringBlank(width=4,ringSize=18, thickness=3, res=64){ difference(){ cylinder(center=true, h=width, r=(ringSize+thickness)/2, $fn=res); cylinder(center=true, h=width+2, r=(ringSize)/2, $fn=100); } } module gemQD(gemRadius=4){ union(){ translate([0,0,.001]) mirror([0,0,1]) ...
glb/cad_fa389c549f27.glb
Create an underdesk drawer system consisting of a main tray and two mounting rails. First, construct the tray as a hollowed-out rectangular box with dimensions 190mm wide, 255mm long, and 60mm high. The tray should have rounded corners with a 3mm radius. The walls should be 2.48mm thick. Create a cutout in the front ...
$fn = $preview ? 10 : 200; $nozzle = 0.8; use <common.scad> $corners_radius = 3; $tray_w = 190; $tray_l = 255; $tray_h = 60; $rail_w = 30; $clearance = 0.3; $handle_w = $tray_w / 4; $handle_h = $tray_h / 2; $screw_d = 4; $screw_head_d = 8; $screw_head_h = 3.5; $screwdriver_hole_d = 15; $wall_w = 3.1 * $nozzle;...
glb/cad_263b3597fba9.glb
Create a high-performance bowden link consisting of a central mounting block and a flat base. Start with a rectangular base plate 50mm wide, 16mm deep, and 7.5mm high. At the center of this base, add a cube that is 16mm wide, 16mm deep, and 15mm high. Remove a vertical cylindrical hole with a 3mm radius from the cente...
bl_cable_r = 6.0/2; bl_filament_r = 3.5/2; bl_bolt_r = 3.0/2; bl_bolt_l = 20.0; bl_mount_sep = 50.0; bl_mount_r = 4.0/2; bl_overlap = 0.75; bl_block_side = bl_bolt_l-4; bl_block_height = 15.0; bl_base_height=7.5; bl_m = 0.05; bl_fn = 40; bl_cone_base_r = 5.0; bowden_link(0); module bowden_link() { union() { ...
glb/cad_9437daa47ef3.glb
Create a stackable parts collection box and matching lid. The main box is a rectangular container with outer dimensions of 100mm width, 200mm length, and 30mm height. The walls and bottom base are 2mm thick. The interior is divided by two internal splitter walls, each 20mm high and 2mm thick, spaced evenly along the le...
Width = 100; Length = 200; Height = 30; Border = 2; Bottom = 3; Iron_Diameter = 6; Iron_Height = 2.5; Magnet_Diameter = 5; Magnet_Height = 10; module innerBox(height) { cube([Width-Border*2, Length-Border*2, height]); } module innerSplitter(height=20) { cube([Width-Border*2, Border, height]); } bottomBorder = Bo...
glb/cad_03f91cfc8dc8.glb
Create an around-the-nozzle cooling ring. Start by creating a main cylinder with a height of 10mm, an outer radius of 21.1mm, and an inner radius of 13mm. Hollow out the center of this cylinder with a hole of radius 13mm that extends through the bottom. Within the main body, create a larger internal void to form a cha...
$fa = 5; $fs = 0.5; slot_r = 2; slot_angle = 40; tubing_inner_r = 6.5/2; inner_r = 13; thickness = 0.7; inlet_h = 5; nozzle_h = 10; outer_r = inner_r + nozzle_h * tan(slot_angle) + thickness*2; barb_h = tubing_inner_r * 4; barb_h2 = barb_h * 0.6; barb_r = tubing_inner_r * 1.4; barb_inner_r = tubing_inner_r - thickne...
glb/cad_a731cc15bca6.glb
Create an around-the-nozzle cooling ring fan adaptor. Start with a main cylindrical body with an outer radius of 23mm and a total height of 31mm. The bottom 15mm of this cylinder serves as the fan mount; create a hollow interior for the fan by removing a concentric cylinder with a radius of 23mm, leaving a wall thickne...
$fa = 5; $fs = 0.5; fan_outer_r = 40/2 + 3; fan_hub_r = 19/2; fan_h = 16; tubing_inner_r = 6.5/2; thickness = 0.7; enclosure_wall = 3; wire_r = 1.25; fan_mount_h = 15; outlet_h = 8; barb_h = tubing_inner_r * 4; barb_h2 = barb_h * 0.6; barb_r = tubing_inner_r * 1.4; barb_inner_r = tubing_inner_r - thickness; fan_floo...
glb/cad_4062cb65c008.glb
Create a Servo Size Adaptor by starting with a solid rectangular base measuring 31mm in width, 66.5mm in length, and 8mm in height. From this base, remove a central rectangular volume to create a cutout that is 20.5mm wide and 41mm long. Position this cutout so that it is centered along the width of the base and offset...
width805bb = 31; length805bb = 66.5; shaftOff805bb = 14; widthStd = 20.5; lengthStd = 41; shaftOffStd = 10; thickness = 8; offWidth = (width805bb - widthStd)/2; offLength = shaftOff805bb - shaftOffStd; difference() { cube([width805bb, length805bb, thickness]); translate([offWidth,offLength,-1]) { cube([widthStd...
glb/cad_4ed357dbec5c.glb
Create a remote battery cover with a main body 61.85mm long, 22.25mm wide, and 1.35mm thick. The body features two angled sections, each 9mm wide and 1.35mm thick, oriented at 45-degree angles to the center. At the ends, add clips that are 4.9mm wide, 2.2mm long, and 2.65mm high. Extend these clips with sections 4.75mm...
module mx1000_bat_cov() { L1 = 61.85; L2 = 22.25; L3 = 9; L4 = 14.75; L5 = 4-1.35; L6 = 2.2; L7 = 4.9; L8 = 16.25; L9 = 11.75; L10 = 5.25; L11 = 3; T1 = 1.35; T2 = 1.1; T3 = 1; T4 = 2.25; D1 = 6; D2 = D1 - 2*T3; A1 = 7.5; CL1 = sqrt(((L3/2)*(L3/2))/2); CL2 = CL1 + L2/2; CL3 = CL2 - sqrt(((T1/2)*(T1/2))/2); unio...
glb/cad_60b5c277b286.glb
Create a perpetual calendar container consisting of a heptagonal prism and a matching rotatable lid. The main body is a hollow heptagonal prism with a height of 55mm and a side length of 25mm. The walls are formed by subtracting a smaller heptagonal prism from the center, with the inner prism having a side length of 23...
use <font.scad> hh = 55; ll = 25; xx = 27; tz1 = 10.3; tz2 = 8.5; sc = 4.0; rotate([0,180,0]) translate([0,0,-hh]) difference() { union() { column(day_table,0,0); column(day_table,5,1); column(day_table,10,2); column(day_table,15,3); column(day_table,20,4); column(day_table,25,5); column(day_table,30,6); linear_extru...
glb/cad_2e3704435093.glb
Create a Perpetual Calendar consisting of a heptagonal container and a matching rotating lid. The main body is a heptagonal prism with a height of 16mm and a side length of 25mm. Hollow out the center of this prism by removing a smaller heptagonal prism with a side length of 22mm, leaving a wall thickness of 3mm. At th...
use <font.scad> hh = 16; ll = 25; xx = 27; sc = 7.0; mark = 1; difference() { union() { difference() { linear_extrude(height=hh) rotate([0,0,360/28]) septagon(ll); translate([0,0,-3.5]) linear_extrude(height=hh) rotate([0,0,360/28]) septagon(22); } translate([0,0,-3]) difference() { translate([0,0,-5]) linear_ex...
glb/cad_84510a7fc611.glb
Create a Fourplex Receptacle Plate for 12VDC sockets. Start with a main rectangular base measuring 70mm wide by 114mm long and 1.5mm thick. Add a 4mm thick border around the left, right, top, and bottom edges. Integrate three vertical reinforcement bars on the face: two measuring 5mm by 65mm by 3mm positioned at x=18...
difference() { union() { cube([70,114,1.5]); cube([4,114,4]); cube([70,4,4]); translate([66,0,0]) { cube([4,114,4]); } translate([0,110,0]) { cube([70,4,4]); } translate([18,25,0]) { cube([5,65,3]); } translate([47,25,0]) { cube([5,65,3]); } translate([32,15,0]) { cube([6,84,3]); } translate([35,1...
glb/cad_aa37e4f33a82.glb
Create a Sonoff DUALR3 enclosure consisting of a main body and a lid. For the main body, create a rectangular box with rounded corners (radius 3mm) and a total height of 27mm. The walls should be 3mm thick. Hollow out the center to create a compartment for the module and a separate room for WAGO connectors (30mm leng...
cable_dia1 = 7.65; cable_dia23 = 6.65; insert_hole_dia = 4.7; $fn=150; cc = 0.01; module_height = 24; module_width = 54; module_length = 49; module_width_top = 31; module_width_bottom = 42; module_length_top_bezel = 11; module_length_bottom_bezel = 6; m_d_play = 0.5; m_h_play = 0.4; box_wall = 3; box_bottom_wall = ...
glb/cad_afc060dc3bae.glb
Create a Car Cigarette Lighter Socket to CAT Standard Socket Adapter consisting of three main components: a tapered end cap, a central barrel, and a keyed end piece. First, create the tapered end cap. Start with a cylinder 17mm high with a 10mm radius. Add a flat circular base flange with a radius of 12.5mm and a thic...
difference() { union() { cylinder(h=17,r=10); cylinder(h=1.2,r=12.5); translate([30,0,0]) { cylinder(h=8.1,r=10 ); } translate([30,0,8]) { cylinder(h=14,r1=10, r2=3); } translate([-30,0,0]) { cylinder(h=20.8,r=8.1 ); } translate([-30.75,-8.5,0]) { cube([1.5,2,20.8]); } } translate([0,0,1.2]) { cylinder(h=5...
glb/cad_6eb83ef23870.glb
Create a dishwasher tray lock consisting of two mirrored components. For each component, start by creating a primary elongated body formed by the convex hull of two cylinders, each 4mm in diameter and 20mm long, positioned 21.5mm apart. Attach a rectangular stop block measuring 8mm by 15mm by 15mm to this body, positio...
include <MCAD/libtriangles.scad>; module tray_lock() { $fs=0.01; tab_depth = 20; rotate([0,90,0]) { rotate([-90,0,0]) { hull() { cylinder(tab_depth,d=4); translate([0,21.5,0]) cylinder(tab_depth,d=4); } } translate([-10,5,-18]) cube([8,15,15]); translate([-5.2,20,-10]) rotate([-90,0,0...
glb/cad_9b2d3879e00a.glb
Create a modular pegboard panel and base. Start by creating a rectangular panel 154 mm wide, 142 mm high, and 3.175 mm thick. Within this panel, create a grid of circular holes, each with a diameter of 6.35 mm. The holes should be spaced 25.4 mm apart from each other, with a border of 10.3 mm between the holes and the ...
width = 154.0; height = 142.0; pegboardThickness = 3.175; holeDiameter = 6.35; holeSpacing = 25.4; holeFacets = 48; borderWidth = 10.3; baseHeight = 8.0; numHolesWidth = floor((width-holeDiameter-borderWidth*2)/holeSpacing); numHolesHeight = floor((height-holeDiameter-borderWidth*2)/holeSpacing); module create...
glb/cad_bed0713e9d56.glb
Create a Blinkytile ball solder jig by constructing a central base and three radiating arms. Start with a central triangular prism base, 11mm in height and 30mm in diameter, with a concentric 28mm diameter triangular hole removed from its center. Position a second, smaller triangular prism 2.5mm below the center, 5mm i...
for (i=[0:2]) rotate([0,0,120*i]) rotate([0,-37.5,0])translate([-25.4-1.6,0,0])difference() {cylinder(1.6,25.4,25.4,center=true,$fn=5); cylinder(2,10,10,center=true,$fn=50);} translate([0,0,-2.5])difference() {cylinder(5,14.6,14.6,center=true,$fn=3); cylinder(6,13,13,center=true,$fn=3);} translate([0,0,-0.5])rotate([...
glb/cad_72532724348e.glb
Create a Screwdriver Pegboard Holder consisting of a mounting base and three vertical tool slots. First, create the mounting base as a flat plate with a thickness of 5mm. Integrate three cylindrical pegboard pins into this base, each with a diameter of 6mm. The pins should be spaced 25.4mm apart on center. Construct...
holder_x_size = 6.35; holder_y_size = 25.4; holder_height = 14; wall_thickness = 2.75; holder_x_count = 3; holder_y_count = 1; corner_radius = 3; holder_offset = 0.0; strength_factor = 0.55; holder_ratio = 1.00; closed_bottom = 0.0; holder_cutout_side = 0.0; holder_angle = 0; holder_sides = max(60, min(20,...
glb/cad_d4493a86f2e3.glb
Create a Tissue Box Holder consisting of two symmetrical brackets. Each bracket is based on a rectangular block 240mm long, 80mm wide, and 130mm high, with a wall thickness of 3mm. Hollow out the center of each bracket to create a sleeve, leaving a 130mm long open slot at the top for the tissue box to enter. The inte...
box_length = 240; box_width = 80; box_height = 130; wall_thickness = 3; slot_length = 130; hole_size = 4; decoration_shape = 6; big_fillet = true; module mirror_copy(mirror_vector) { children(); mirror(mirror_vector) children(); } module rectangular_array(rows, cols, distance) { for (i = [0:1:row...
glb/cad_1e30f5c51ccd.glb
Create a stepper mounted extruder cable harness strain relief. Start by constructing a base mount consisting of two mirrored blocks, each 17.2mm wide, 6mm deep, and 8mm high, joined at the center. At the outer edge of each block, add a 6mm cube rotated 45 degrees on the Z-axis to create a tapered end. Cut a horizontal ...
module strf() { difference() { union() { union() { cube([17.2,6,8]); translate([17.2,0,0]) rotate([0,0,45]) cube([6,6,8]); } mirror([1,0,0]) union() { cube([17.2,6,8]); translate([17.2,0,0]) rotate([0,0,45]) cube([6,6,8]); } } translate([-25,2.2,2.3]) cube([50,1.7,3.4]); tra...
glb/cad_4361ea3eefd9.glb
Create a stepper mounted extruder cable harness strain relief. Start with a base mount consisting of two mirrored sections; each section is a block 17.2mm wide, 6mm deep, and 8mm high, with an additional 6mm cube rotated 45 degrees on the Z-axis positioned at the outer edge of each section. Cut a horizontal tunnel thro...
module strf() { difference() { union() { union() { cube([17.2,6,8]); translate([17.2,0,0]) rotate([0,0,45]) cube([6,6,8]); } mirror([1,0,0]) union() { cube([17.2,6,8]); translate([17.2,0,0]) rotate([0,0,45]) cube([6,6,8]); } } translate([-25,2.2,2.3]) cube([50,1.7,3.4]); tra...
glb/cad_3c14119c7475.glb
Create a rack mount bracket for a network switch. Start with a solid rectangular block that is 482.6mm wide (total 19" rack width), 43.9mm high, and 47.7mm deep. From this block, carve out the interior to leave walls with a thickness of 3mm. The interior cutout should be a centered rectangular void that extends from ...
$fn = 256; switch_depth = 173.0; switch_width = 330.0; switch_height = 43.9; m4_spacing = 22; m4_offset = 19.7; extent_past_m4 = 7; total_width = 19.0*25.4; m6_distance = 18.3*25.4; m6_spacing = 0.625*25.4; m6_elongation = 6; inside_clearance = 17.8*25.4 - m6_elongation; wall = 3; %translate([switch_width/-2, ...
glb/cad_e3fd2e037c52.glb
Create a customizable hook or knob by constructing a symmetrical, tiered circular object. Start with a central cylinder that has a diameter of 20mm and a height of 10mm. Build a base by stacking a series of thin, concentric discs beneath this center; these discs should gradually increase in radius from the center's 10m...
middlediameter = 20; backdiameter = 50; frontdiameter = 30; with_hole = 0; hole = 5; fase = 8; with_fase_front = 0; resolution = 25; back = backdiameter/middlediameter*10; front = frontdiameter/middlediameter*10; function radius(i, x) = x/(x*x)*(i*i)+x/4; difference(){ union(){ for ( i = [back : -1 : 1] ){ tra...
glb/cad_1ee2aa12652c.glb
Create an Unscrewable Screw puzzle consisting of three parts: a bolt, a small screw piece, and a nut. First, create the bolt. Start with a cylinder of radius 10mm and height 33mm. Add a double-threaded helical profile to the exterior with a tooth height of 3.6mm, a tooth width of 2mm, and a pitch of 13mm. At the top o...
$fn = 100; h_bolt = 33; h_nut = 14; r_bolt = 10; r_head = 20; center_offset = 3; r_fillet = 24; h_teeth = 3.6; w_teeth = 2; pitch = 13; turns = h_bolt/pitch; cl = 0.4; useDoubleThread = true; function rotateZ(vertex,angle) = [ [cos(angle), -sin(angle), 0], [sin(angle), cos(angle), 0], [ ...
glb/cad_0aa8c6beb75c.glb
Create a flying round base platform for tabletop miniatures. Start by creating a vertical riser beam that is 50.8mm wide and 50.8mm tall. The beam's cross-section is a polygon with vertices at [1, 25.4], [-3, 24.4], [-3, -24.4], and [1, -25.4]. At the bottom of this riser, create a circular base platform. The platform...
rise_feet = 10; size = "medium"; inch_to_mm = 25.4; platform_grids = (size=="large" || size=="\"large\"")?2:1; platform_width = platform_grids*inch_to_mm+2; riser_height = rise_feet/5*inch_to_mm; label = str(rise_feet, " ft"); module complete_model() { fn = $preview?32:64; h = riser_height; w = platform_...
glb/cad_810183b645d4.glb
Create a replacement antenna for a Beetle game consisting of a curved rod with three spherical beads at one end. Start by creating a cylinder with a diameter of 2.85mm and a length of 10mm. Extend this rod into a circular arc with a radius of 15mm. At the end of this curved section, place three spheres in a linear sequ...
diam = 2.85; rad = diam/2; straight = 10; curveR = 15; bubble1 = 4; bubble2 = 5; bubble3 = 5.5; $fn = 60; antenna(); module flattened(){ difference(){ translate([0,0,rad*.95])antenna(); translate([-50,-50,-100])cube(100); } } module antenna(){ rotate([0,90,-90])cylinder(r = rad, h = straight); intersection(){ trans...
glb/cad_dda4a812dfbe.glb
Create a Remixed Angular Dice Tower with folding catch trays. First, construct the tower body. Build a series of ramps with a wall thickness of 2mm and a ramp width of 30mm. The ramps should be angled at 40 degrees, except for the final exit ramp, which is angled at 27 degrees. The tower consists of four levels, each...
displaytray = 1; displaytower = 0; root_2 = sqrt(2); slope = 40; exit_slope = 27; wall = 2; ramp_width = 30; overhang=7; total_width = wall + ramp_width*2; level_height = (ramp_width-wall)*tan(slope); trim=(wall/sin(slope) - wall)*tan(slope); module ramp(corner=true, angle=slope, cut_top=true){ translate([-...
glb/cad_fa125b6f1318.glb
Create a parametric drain grate consisting of a tapered cylindrical body with a solid base and top. Start by creating a solid bottom cylindrical extension with an outer diameter of 74mm and a height of 20mm, featuring a concentric hollow center with a wall thickness of 3.75mm. Above this, add a base ring with an outer ...
$fn = 100; thk = 3.75; module spoke(top_d, bot_d, height) { translate( [bot_d/2, thk/2, 0] ) rotate( [90, 0, 0] ) linear_extrude( height=thk ) polygon( points=[ [0,0], [-bot_d/2+top_d/2-thk/2, height-thk], [-bot_d/2+top_d/2, height], [thk, 0] ] ); } module drain(top_d, bot_d,...
glb/cad_ddeadf7be560.glb
Create a parametric screwdriver handle. Start with a main body consisting of a cylinder with a diameter of 12mm and a height of 60mm, topped with a wider base cylinder of 14mm diameter and 6mm height. Carve a hexagonal hole through the center of the entire length, starting 1mm below the base, with a diameter of appro...
$fn=100; $d=4; $h=34; $hex_hole=true; $od=12; $oh=60; $edges=6; module CenterHole() { translate([0,0,-1]) if ($hex_hole == true) { cylinder($h,$d/1.7+0.2,$d/1.7+0.2,$fn=6); } else { cylinder(d=$d, h=$h); } } module Skirt() { color("red") rotate_extrude() ...
glb/cad_f81ff9216548.glb
Create an adjustable carriage tensioner consisting of two main components. First, create a base plate as a rectangular prism measuring 15mm wide, 60mm long, and 3mm thick, centered on the origin. At the center of this plate, add a smaller rectangular block measuring 3mm wide, 8mm long, and 8mm high, positioned 5mm abov...
$fn=40; module kosselCarriageTensioner() { difference(){ union(){ cube([15, 60, 3], center = true); translate([6, 0, 5]) cube([3, 8, 8], center = true); } translate([-2.5, 25, 0]) cylinder(r=1.75, h=4, center=true); translate([-2.5, -25, 0]) cylinder(r=1.75, h=4, center=true); translate([6, 0, 5]) ro...
glb/cad_d14aba88a715.glb
Create a motor mount for a DC motor on a Prusa i3 x-axis. Start with a central cylinder that has a radius of 13.75mm and a height of 19mm. On top of this cylinder, add a square platform created by the hull of three 21mm cubes, each 3mm thick, rotated at 0, 90, and 270 degrees around the center. To create the pulley an...
$fn=30; rotate([180,0,0]) difference() { union() { cylinder(r=27.5/2,h=19); translate([0,0,16]) hull() { for(a=[0,90,270]) rotate(a) cube([21,21,3]); } } hull() { cylinder(r=12/2,h=20); translate([12,0,0]) cylinder(r=12/2,h=20); } translate([0, 8, 0]) cylinder(r=1.3,h=4.8); translate([0, -8, 0]) cylinder(r=1.3,h=4...
glb/cad_9444ba279899.glb
Create a lens holder bracket designed to hold a 127mm diameter biconvex lens upright. Start with a rectangular base measuring 114.3mm in length, 52.5mm in width, and 2.5mm in thickness. Centered on this base, create a vertical support structure. This structure consists of a central vertical fin 5mm wide and 40mm high...
slop = 0.15; LOD = 127; ETH = 3.5; CTH = 35; FL = 1000/8; SR = 136; OFFZ = 3; BX = LOD*0.9; BY = CTH * 1.5; BZ = 2.5; FW = 5; WW = 2.5; WH = 40; WL = BY/2; MHID = 4.5; fn = 160; eps = 0.03; module lens() { intersection() { translate([0,0,-CTH/2]) cylinder(d=LOD, h=CTH, $fn=fn); translate([0,0,CTH/2-SR]) spher...
glb/cad_619c844bcb9f.glb
Create a lens holder bracket designed to hold a 127mm diameter biconvex lens upright. Start with a rectangular base measuring 114.3mm in length, 52.5mm in width, and 2.5mm in thickness. Centered on this base, add a vertical support fin that is 5mm wide and 40mm high. This fin should feature a semi-circular cutout at ...
slop = 0.15; LOD = 127; ETH = 3.5; CTH = 35; FL = 1000/8; SR = 136; OFFZ = 3; BX = LOD*0.9; BY = CTH * 1.5; BZ = 2.5; FW = 5; WW = 2.5; WH = 40; WL = BY/2; MHID = 4.5; PD = 10; PH = 7; CR = 1.3; fn = 160; eps = 0.03; module lens() { intersection() { translate([0,0,-CTH/2]) cylinder(d=LOD, h=CTH, $fn=fn); tra...
glb/cad_d299ebe8ed2f.glb
Create a Patio Umbrella Adapter by starting with a main body in the shape of a rounded cube. This base should be 43.25mm wide, 43.25mm deep, and 35mm high, with a corner radius of 5mm. On top of this base, add a wider rounded lip that is 5mm high with the same 5mm corner radius; this lip should extend the overall width...
$fa = 2; $fs = 0.25; adapter_width = 43.25; adapter_depth = 43.25; adapter_height = 35; lip_size = 8; lip_height = 5; umbrella_hole_diameter = 38.5; corner_radius = 5; difference() { group() { color("blue") { roundedCube(adapter_width, adapter_depth, adapter_height, ...
glb/cad_84d3ea27c188.glb
Create a Fiber test bridging model. Start by constructing a base block that is 25mm long, 50mm wide, and 2mm thick. Along the 50mm length of this base, add a series of thin rectangular ribs spaced every 2mm. Each rib should be 0.5mm wide, 50mm long, and 0.2mm thick, extending outward from the base. To finish the shape,...
length = 50; width = 2; bridge = 0.5; bridge_thickness=0.2; step = 2; module bridge() { union() { difference() { cube(size=[length/2,length,width]); translate(v=[1,length/2,-length/2]) rotate(a=[0,0,-45]) cube(size=length); } for (i=[0:length/2/step]) { translate(v=[i*step,0,width-bridge_thickness]) cu...
glb/cad_afd82846800f.glb
Create a Duplicator 4S hood locker consisting of a thin baseplate and a securing top piece. First, construct the securing top piece by creating a hull that encompasses a polygon with vertices at [0,0], [8.1421, 8.1421], and [1,0], extruded to a height of 2mm. To this shape, add four cylinders with a radius of 0.5mm and...
$fn=20; h1 = 2; h2 = 2; module stopper() { hull() { linear_extrude(height=h1) polygon([[0,0],[8.1421,8.1421],[1,0]]); translate([0.5,-5.5,0]) cylinder(r=0.5,h=h1); translate([5.7929,-5.5,0]) cylinder(r=0.5,h=h1); translate([13.6421,2.3492,0]) cylinder(r=0.5,h=h1); translate([13.6421,7.6421,0]) cylinder(r=...
glb/cad_44bf665e4371.glb
Create a Puzzlepiece Bluetooth Keyboard Tablet Holder consisting of three flat components, each 5mm thick. First, create two identical side supports. Each side is a flat plate defined by a complex polygon with vertices at [70, -27.54], [-6.63, -16.59], [-4, 0], [0, 0], [0, -13], [25.3, -13], [25.3, 1.5], [27.8, 1.5],...
module fillet(r, h,v) { translate([r / 2, r / 2, 0]){ difference() { cube([r + 0.01, r + 0.01, h], center = true); translate([r/2, r/2, 0]){ cylinder(r = r, h = h + 1, center = true, $fn=v); } } } } module side(){ difference(){ uni...
glb/cad_f18bce9136e0.glb
Create a Stackable Box for parts collection with an outer footprint of 100mm width, 200mm length, and 40mm height. The box features a base and walls with a thickness of 1mm and rounded corners with a 2mm radius. The bottom of the box is a solid slab 3mm thick with rounded edges. The side walls are 40mm high, but the t...
Name = "Stackable Box v3.1"; Width = 100; Length = 200; Height = 40; Border = 2; Bottom = 3; Thickness = 1; Partition_1_Position = 0.50; Partition_2_Position = 0.20; Partition_3_Position = 0.00; Partition_4_Position = 0.00; module utilBox(height, thickness) { translate([thickness, thickness, 0]) cube([Width-thickn...
glb/cad_77f165bb7445.glb
Create a control panel knob with a total height of 26mm. Start with a main cylinder 23.4mm in diameter and 26mm tall. Remove a concentric inner cylinder with a diameter of 16mm and a height of 20.1mm to create a hollow core. Around the outer wall of this cylinder, create 30 vertical grooves by placing 1mm by 1mm square...
$fn=100; rotate([180, 0, 0]) difference() { union() { difference() { cylinder(d=23.4, h=26); translate([0, 0, -0.1]) { cylinder(d=16, h=20.1); } for(i=[12:12:360]) { rotate([0, 0, i]) translate([11.6, 0, -0.1]) rotate([0, 0, 45]) cube([1, 1, 27]); } } difference() { translate([-17.05, -17.05, 0]) interse...
glb/cad_1359e50f6329.glb
Create a flashlight stand consisting of a central rectangular base and two semi-cylindrical cradles. The central base is a rectangular block 25mm wide, 145.5mm long, and 13mm high. At each end of the base, integrate a cradle to hold the flashlight. The first cradle is designed for the LED end: create a cylinder with ...
module 3T6Stand() { D1 = 31; D2 = 28; D3 = 55.5; L1 = 132; L2 = 5; L3 = 13; L4 = 25; T1 = 7; E1 = 1.01; SC = 100; union() { translate([0,-(L1+L3)/2,-(((D3/2)+L2)-L3/2)]) cube([L4, L1+L3, L3], center = true); translate([0,-L3/2,0]) rotate([90,0,0]) difference () { scale([1/SC,1/1...
glb/cad_01eb3ee1506b.glb
Create a replacement defrost duct for a vehicle. Start by constructing a rectangular base with a width of 41mm, a length of 81mm, and a height of 20mm. The base should have rounded corners with a radius of 3mm and a wall thickness of 3mm. From the top of this base, create a conical transition that extends upwards and...
width=41; length=81; height=20; rad=3; rad1=0.5; wall=3; screw_hole=2.5; screw_head=5; all_screw_z=8; w_screw_offset=15; l_screw1_offset=20; l_screw2_offset=60; tube_rad=25; $fn=70; mirror([1,0,0]) { base(); cone(); } module cone (){ difference(){ union() { hull() { translate ([-wall/2,-wall/2,height]) minkows...
glb/cad_92b370467a34.glb
Create a Flipper Zero WiFi Dev Board Cap with an overall outer dimension of 86mm x 14mm x 22mm. The main body should be a rounded rectangular prism with a corner radius of 2mm. Hollow out the center to create a shell with a bottom thickness of 2.3mm. The internal cavity should measure 82.2mm x 9.8mm x 22mm. To accomm...
CapX = 86; CapY = 14; CapZ = 22; CornerRad = 2; BottomThick = 2.3; CaseX = 82.2; CaseY = 9.8; PinOffsetX = 20; PinX = 28; PinZ = 8; TextFrontBack = 180; TextOffsetX = 0; TextOffsetZ = 0; Font = "Bitstream Vera Sans"; FontSize = 4.1; TextDepth = 0.4; CustomText = "FLIPPER WIFI DEV BOARD"; WiFi_Dolphin_LogoFrontBack ...
glb/cad_1297043cec65.glb
Create a drop spindle whorl by starting with a sphere of radius 40mm, then flatten it along the Z-axis by scaling it to 30% of its original height. Carve out two concave spherical recesses from the top and bottom, each with a radius of 40mm, scaled to 80% in the X and Y dimensions and 20% in the Z dimension, positioned...
$fa=6; module whorl (){ difference () { scale ([1,1,.3]) sphere (r=40) ; union (){ translate ([0,0,12]) scale ([.8,.8,.2]) sphere (r=40) ; translate ([0,0,-12]) scale ([.8,.8,.2]) sphere (r=40) ; } } translate ([0,0,-10]) cylinder (r=8, h=20); } difference (){ whorl (); translate ([0,0,-20]) cylinder (r=4, h=...
glb/cad_dd1495c9a7e0.glb
Create a Wedge Expander consisting of two identical mirrored components. For each component, start with a cylinder that has a diameter of 20mm and a height of 17.5mm. From this cylinder, remove a central core to create a hole. This hole is not a simple cylinder; it is a flared opening that starts with a diameter of 1...
outer_diameter = 20; core_diameter = 10; nut_diameter = 17.5; flare_angle = 7; nut_seat = 1.5; outer_radius = outer_diameter / 2; core_radius = core_diameter / 2; nut_radius = nut_diameter / 2; center_height = outer_radius + nut_diameter / 2; double_height = center_height * 2; module wedge(has_nut) { module flar...
glb/cad_3355288d7f36.glb
Create a playing card box consisting of a hollow rectangular container and a separate lid. For the main box, create a solid rectangular prism with outer dimensions of 93mm in length, 62mm in width, and 35mm in height. Hollow out the center by removing a rectangular prism starting 2mm from the bottom and 2mm from each s...
card_width = 56; card_length = 87; card_height = 32; lid_height = 10; thickness = 2; card_relief = 3; lid_relief = 1; box_width = card_width + card_relief; box_length = card_length + card_relief; box_height = card_height + card_relief; lid_width = box_width + 2*thickness + lid_relief; lid_length = box_length + 2*thic...
glb/cad_cad79d65af34.glb
Create a ball map prop by starting with a solid sphere with a radius of 100mm. Carve out a series of circular ring-shaped channels from the sphere's surface to create a geometric pattern. Each channel is formed by a hollow pipe with an inner radius of 80mm, a wall thickness of 20mm, and a depth of 55mm. First, create...
circlesRadius = 80; circlesDepth = 55; $fn = 50; animation_rotation = false; is_animated = animation_rotation; $vpt = is_animated?[0, 0, 0]:$vpt; $vpr = is_animated?[60, 0, animation_rotation?(365 * $t):45]:$vpr; $vpd = is_animated?1000:$vpd; ballMap(circlesRadius, circlesDepth); module ballMap(circlesRadius, circ...
glb/cad_7aa85886130a.glb
Create a bed fly pole holder by combining a central cylinder and a rectangular stem. Start with a main cylinder that has a diameter of 32mm and a total height of 34mm. Bore a hole through the center of this cylinder with a diameter of 12.5mm, and add a wider counterbore on one face with a diameter of 25mm and a depth o...
module pole_holder() { thickness_cylinder = 34.0; thickness_stem = 15.0; length_stem = 64.0; offset_stem = length_stem*0.8; diameter_thread = 12.5; diameter_nut = 25.0; diameter_pole = 26.0; width = 32.0; width_stem = 32.0; thickness_web = 8.0; depth_web = 6.0; angle = 30.0; $fn = 128; r...
glb/cad_d5c23a3c646b.glb
Create an Anagyre rattleback by constructing a hollowed-out, asymmetric ellipsoidal shell. Start with a primary solid shape formed by the intersection of a sphere with a radius of 150mm and a cube of 150mm, where the sphere is scaled by a factor of 1/3 along its Y-axis to create a flattened, disc-like profile. To creat...
C=150;D=3;E=4; $fn=100; module m(C) rotate([0,90,0]) intersection(){ translate([.9*C,0,0]) scale([1,1/D,1])sphere(C); translate([-C,-C/2,-C/2])cube(C); } difference() { m(C); m(C*.9); } intersection() { m(C); union() { cube(C/E); rotate([0,0,180])cube(C/E); } }
glb/cad_0be4509725d8.glb
Create an Anagyre rattleback by constructing a hollowed-out, asymmetric ellipsoidal shell. Start by creating a solid shape formed from the intersection of a sphere with a radius of 150mm and a cube with a side length of 150mm, where the sphere is scaled by a factor of 1/3 along its Y-axis to create a flattened, disc-li...
C=150;D=3;E=4; $fn=100; module m(C) rotate([0,90,0]) intersection(){ translate([.9*C,0,0]) scale([1,1/D,1])sphere(C); translate([-C,-C/2,-C/2])cube(C); } difference() { m(C); m(C*.9); } mirror([0,1,0])intersection() { m(C); union() { cube(C/E); rotate([0,0,180])cube(C/E); ...
glb/cad_ca69429c4684.glb
Create an Anagyre rattleback by constructing a hollowed-out, asymmetric elliptical shell. Start by generating a solid of revolution created by rotating a circle with a radius of 33.33mm around an axis located 100mm away from the circle's center. This rotation should create a large torus with an outer diameter of 266.67...
C=100;D=3;E=1.2; $fn=100; module m(C,D,E) translate([0,0,-E*C]) intersection() { rotate([90,0,0]) rotate_extrude() translate([C,0,0]) circle(C/D); translate([-C,-C,E*C]) cube(2*C); } difference() { m(C,D,E); m(C*.9,D,E); } intersection() { m(C,D,E); union() { cube(C); rotate([0,0,180])cube(C); ...
glb/cad_703485630387.glb
Create an Art-Deco speaker grill consisting of a circular rim and a domed internal grate. Start by creating a base rim with an outer diameter of 87mm and a thickness of 3mm. Carve a central hole through this rim with a diameter of 57mm. Above this hole, add a tapered collar that rises 8mm, narrowing from the outer diam...
innerdia = 57; rimwidth = 15; rimthick = 3; rimchamferthk = 8; rimchamferwid = 12; barcount = 10; barwidth = 3; barheight = 12; baroverscan = 4; barsphererad = 120; baroverheight = -1; innerrad = innerdia / 2.0; oarad = innerrad + rimwidth; barspacing = oarad / (barcount / 2.0); barspheredownoffset = -(barsphererad -...
glb/cad_b3b3a2862960.glb
Create a strap clamp designed to secure a cable. Start by creating a central base that follows a full ellipse shape with a width of 20mm and a height of 20mm. This central part should have a wall thickness of 3mm and be extruded to a total breadth of 16mm. Extend two flat end tabs outward from the sides of the central...
shape = "full_ellipse"; strap_breadth = 16; cable_width = 20; cable_height = 0; strap_thickness = 3; tab_length = 16; tab_thickness = 3; tab_radius = 4; number_screws = 1; screw_type = "round_head"; hole_diameter = 3.3; flathead_top_diameter = 6; flathead_taper_height = 2; module __Customizer_Limit__ () {}...
glb/cad_f0492e6f2a32.glb
Create a Pulley Wheel for a Serpentine Belt. Start with a central cylindrical hub that has a total height of approximately 51.84mm and a radius of 8.45mm. Around this hub, build a main body with an outer diameter of 88.82mm and an inner diameter of 85.82mm, maintaining a wall thickness of 2.16mm. The overall thickness ...
inches = 25.4; thickness = 4.32/2; OD = 88.82; ID = 85.82; bearingID = 16.9; bearingHeight = 12; hexSize= 10.86; numberOfHoles= 5; holeSize= 25; holeShape= 24; magnetSize=6.35; module cuttingDisc(){ cylinder (h=thickness/2, r1=OD/2, r2=ID/2, $fn= 64); translate ([0,0,-thickness/2]) cylinder (h=thickness/2, r...
glb/cad_039669582371.glb
Create a Pulley Wheel for a Serpentine Belt. Start with a central cylindrical hub that has a total height of 54mm and a radius of 12.65mm. Through the center of this hub, create a hexagonal hole with a flat-to-flat width of 12.9mm that extends through the entire height of the object. Build the main body as a series of...
inches = 25.4; thickness = 4.32/2; OD = 138.82; ID = 135.82; bearingID = 25.3; bearingHeight = 18; hexSize= 12.9; numberOfHoles= 7; holeSize= 30; holeShape= 24; rim=3; module cuttingDisc(){ cylinder (h=thickness/2, r1=OD/2, r2=ID/2, $fn= 64); translate ([0,0,-thickness/2]) cylinder (h=thickness/2, r1=ID/2, r2...
glb/cad_5beb72bef21d.glb
Create a ramekin stacker consisting of three concentric cylindrical sections stacked vertically. Start with a base cylinder that is 6mm high, with an outer diameter of 67.5mm at the bottom tapering slightly to 67.5mm at the top, and a concentric hole removed from the center with a constant diameter of 62.5mm. Directl...
top_inner_diameter = 67.5; top_outer_diameter = 77.0; bottom_outer_diameter = 80.0; bottom_chamfer = 1; thickness = bottom_outer_diameter - top_inner_diameter; flange_height = 6; top_depth = 4; inside_depth = 6; outer_ring_width = 2; overall_diameter = bottom_outer_diameter + outer_ring_width + 1; $fn=70; module...
glb/cad_b28b11efa80a.glb
Create a Geomag sticks storage set consisting of a box and a sliding cover. For the box, create a rectangular shell with an outer width of 113.5mm, a depth of 63mm, and a height of 37.5mm. The walls are 2mm thick. Hollow out the center to create a cavity of 109.5mm by 59mm by 37.5mm, starting from a base thickness of...
pieces = "both"; sticks_per_columns = 5; columns_per_box = 15; wall_thickness = 2; if(pieces == "both" || pieces == "box only") { BOX(); } if(pieces == "both" || pieces == "cover only") { COVER(); } totalWidth = columns_per_box*7.3+.5; totalHeight = sticks_per_columns*7.3+1; tn = wall_thickness; module COVER() { ...
glb/cad_67f7ffe632e6.glb
Create a cooling tower pen holder with a total height of 90mm. Start by creating a circular base with a diameter of 80mm and a thickness of 2mm. At the top of the structure, add a circular rim with a diameter of 60mm and a thickness of 2mm. Construct the walls using 20 clockwise blades and 20 counter-clockwise blades....
top_dia=60; bottom_dia=80; height=90; base_thickness=2; num_blades=20; blade_thickness=1.6; clockwise_blade="yes"; cw_blade_len=16; anti_clockwise_blade="yes"; acw_blade_len=16; blade_on_X_Y_or_Z="Y"; blades_taper_to_top="yes"; blade_angle=90; $fn=60; bcwx= clockwise_blade=="yes" && blade_on_X_Y_or_Z=="X" ? cw_blade_l...
glb/cad_90b26b48cea1.glb
Create a display stand base for a tube. Start with a circular base that has a total height of 23mm. The bottom 3mm is a flat cylinder with a diameter of 150mm. On top of this flat section, add a truncated cone that tapers from the 150mm base diameter up to a top diameter of 40mm over a height of 20mm. Create a central...
include <chamfer.scad> rodOD = 25.75; rodID = 22.0; baseOD = 150.0; topOD = 40.0; baseZ = 20.0; rimZ = 3.0; knobZ = 20; stemZ = 25; indents = 6; indentDiam = 5; indentDepth = 0.25; slotWidth = 2; $fn = 50; module base() { difference() { union() { cylinder(d = baseOD, h = rimZ); translate( [0, 0, rimZ] )...
glb/cad_bc130b934ed3.glb
Create a set of tank track components consisting of track plates and drive gears. First, create a track plate with a width of 80mm, a depth of 18mm, and a height of 2mm. The plate should have rounded corners with a 2mm radius. Add two guidance blocks to the plate, each with a height of 10mm (2mm base height plus 8mm g...
demo(); module demo(){ translate([-25,-25,2.5]) track_gear(); translate([25,-25,0]) track_mount_gear(); translate([0,20,2.5]) track("trackPlate.dxf"); translate([0,45,2.5]) strongTrack("trackPlate.dxf"); } module round_block(r,x,y,z){ translate([-x/2,0,0])difference(){ union(){ translate([0,y-r,z-r])rotate(...
glb/cad_d40565275737.glb
Create a Cupcake CNC Optoendstop Trigger by extruding a specific 2D profile to a height of 9mm. The profile is composed of several overlapping and adjacent rectangles. Start with a main rectangular base measuring 36.25mm by 1.5mm. Attach a second rectangle measuring 30mm by 2mm to the bottom edge, centered horizontally...
module trigger() { square([36.25,1.5]); square([30,2.0]); translate([0,-10,0]) square([2,14.4]); translate([-5.6,-10,0]) square([2,14]); translate([-5.6,2.7,0]) square([7,1.7]); translate([2.0,-10,0]) rotate([0,0,20]) square([29,2]); } linear_extrude(height = 9) trigger();
glb/cad_5554f6a74c34.glb
Create a Cupcake CNC Optoendstop Trigger for X Minimum by extruding a specific 2D profile to a height of 9mm. The profile is composed of several joined rectangular sections. Start with a main rectangular base measuring 36.25mm by 1.5mm. Attach a second rectangle measuring 30mm by 2mm to the bottom edge, centered horizo...
module trigger() { square([36.25,1.5]); square([30,2.0]); translate([0,-10,0]) square([2,14.1]); translate([-7.6,-10,0]) square([2,14]); translate([-7.6,2.7,0]) square([9,1.4]); translate([2.0,-10,0]) rotate([0,0,20]) square([29.5,2]); } linear_extrude(height = 9) trigger();
glb/cad_83924dabcdd2.glb
Create a microscope base platform with a total width of 209mm, a depth of 260mm, and a base thickness of 4mm. The main body is a rectangular slab with rounded corners of 15mm radius. On the left and right sides, add two raised rectangular sections that extend from the base thickness up to a total height of 33.1mm. Thes...
module roundedcube(xx, yy, height, radius) { difference(){ cube([xx,yy,height]); difference(){ translate([-.5,-.5,-.2]) cube([radius+.5,radius+.5,height+.5]); translate([radius,radius,height/2]) cylinder(height,radius,radius,true); } translate([xx,0,0]) rotate(90)...
glb/cad_97a0d8b5bf59.glb
Create a custom bike grip with a total length of 150mm. Start by constructing a main hollow cylinder with an inner diameter of 30mm and a wall thickness of 5mm, resulting in an outer diameter of 35mm. At the top end of the grip, add a wider circular collar with a diameter of 45mm and a thickness of 5mm. Along the main...
inner_diameter = 30; length = 150; collar_width = 10; wall_thickness = 5; outer_diameter = inner_diameter + wall_thickness; difference() { union() { hull() { cylinder(h=length - collar_width, d=outer_diameter, center=false, $fn=300); translate([0, 0, -5]) cylinder(h=5, d=outer_diameter - 5, center...
glb/cad_36e0ce87fcda.glb
Create a Fridge Scissors Holder by starting with a rounded rectangular block measuring 29.06mm in width, 116mm in length, and 17.74mm in thickness, with a corner radius of 3mm. Carve a tapered slot into the top face to hold scissors. This slot should start at the top edge with a width of 17.06mm and a depth of 12.4mm...
$fn = $preview ? 15 : 40; EPSILON = 0.01; module roundedcube(size = [ 1, 1, 1 ], center = false, radius = 0.5, apply_to = "all") { size = (size[0] == undef) ? [ size, size, size ] : size; translate_min = radius; translate_xmax = size[0] - radius; translate_ymax = size[1] - radius; trans...
glb/cad_bfd42c78ab05.glb
Create a Cubicle Wall Headset Hook with a total width of 25mm. Start by constructing a U-shaped bracket designed to fit over a wall. The top section of the bracket is a hollow cylinder with an outer diameter of 41mm and an inner diameter of 33mm, both centered, with a height of 25mm. This cylinder is open on one side t...
cube_wall = 33; bracket_round=1; wall_thickness = 6; front_height = 35; back_height = 25; hook_height = 20; hook_length = 35; width = 25; $fn = 48; rounding_size = hook_length / 4; union() { translate([-(cube_wall+wall_thickness), (front_height - back_height + wall_thickness), 0]) { cube([wall_th...
glb/cad_5d493c3eb2af.glb
Create a printable weaving shuttle by starting with a flattened cylinder that serves as the main body. This base shape should have a radius of 35mm and a height of 5mm, but scaled along the Y-axis to 25% of its original size to create a thin, wide oval disc. From this main body, remove several geometric sections to cre...
difference() { scale( v=[1,0.25,1] ) { translate( v=[0,0,2.5] ) { cylinder( r = 35, h=5, center=true ); } } union() { union() { translate( v=[-15,0,3] ) { cylinder( r = 3, h = 6, center=true ) ; } translate( v=[15,-3]) { cube( size=[20,6,6] ); } translate( v=[15,0,3] ) { cylinder...
glb/cad_b0d9c644032b.glb
Create a parametric bird feeder tray with a total length of 60mm, a width of 30mm, and a depth of 15mm. The main body is a rectangular basin with walls 2mm thick. The bottom of the tray is a solid base, but the sides are open at the bottom to allow it to slide onto cage bars. The tray features a mounting hook system c...
barSize = 1; barSpacing = 8; feederLength = 60; feederDepth=15; feederWidth=30; feederWallThickness=2; hookThickness = 2; perchWidth = 8; perchHeight = 0.5*feederDepth; union() { difference() { cube( [feederLength, feederWidth+2*barSize+hookThickness, feederDepth]); translate( [feederWallThickness, 2*ba...
glb/cad_1c74566b468e.glb
Create a PSU mount for a K250 printer consisting of two parallel vertical brackets connected by a base plate. First, construct the PSU-side bracket. Create a vertical wall 4mm thick, 45mm long, and 15mm wide. The top and bottom edges of the wall should be rounded with a 4mm diameter radius. Drill two holes through th...
$fn=25; X=0.25; thick=4; wing_thick=3; psu_l=25+10+10; psu_w=15; psu_screw=4; psu_hole=[10,10+25]; frame_l=20+20+20; frame_w=15; frame_screw=5; frame_hole=[10,frame_l-10]; frame_offset=5; distance=45; brim_hight=0.4; brim_r=6; brims=[ [0,0], [0,psu_l], [distance,frame_offset], [distance,frame_offset+frame...
glb/cad_a549dbfc548c.glb