Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a knife handle oiling stand consisting of a hollow vertical sheath and a flat oval base. First, construct the sheath by creating a cylinder with a length of 115mm and an outer diameter of 33mm. Scale this cylinder along its width to 24mm and its height to 30mm to create an elliptical profile. Hollow out the cent...
wall_thickness=1.5; width=24; height=30; $fn=100; handle_lenght=115; difference(){ scale([1,width/height,1]){ cylinder(handle_lenght + wall_thickness,d=max(height,width)+2*wall_thickness,center=true); } scale([1,width/height,1]){ translate([0,0,0.8]) cylinder(handle_lenght,d=max(height,width),center=true); } } sc...
glb/cad_39dacc904b42.glb
Create a sake cup by forming a hollowed-out hemispherical bowl. Start with a solid sphere with a diameter of 110mm, positioned so its lowest point is at the origin. Attach a cylinder to the bottom of this sphere, centered on the Z-axis, with a height of 55mm and a constant diameter of 12mm. To create the interior cavit...
d = 110; b = 30; t = 1; n = 100; $fn = n; difference(){ difference(){ union(){ translate([0,0,d/2]) sphere(d = d,center = false); cylinder(h = d/2, r1 = b/2.5, r2 = b/2.5, center = false); } translate([0,0,d/2]) sphere(d=(d-2*t),center=false); } translate([0,0,d-45]) cube(...
glb/cad_cfbef513a88a.glb
Create three different types of Iceblock Stick Joiners, each with a total height of 5.4mm. First, create a linear joiner. Start with a central rectangular block 70mm long, 15mm wide, and 5.4mm high. Remove four identical slots from the top face to accommodate sticks. Each slot is 10mm wide and 1.8mm deep. Position two...
xw = 0.4; sw = 10; sl = 100; sh = 1.8; jl = 15; cd = 50; module stick_end(cx, cy, cz, rot) { translate([cx,cy,cz]) rotate([0,0,rot]) translate([0,(jl-sw/2)/2,sh/2+xw/2]){ hull(){ translate([0,xw/4,0]) cube([sw,jl-sw/2+xw/2,sh+xw], center = true); translate([0,(jl-sw/2)/2,0]) cylinder(r = sw/2, h = sh...
glb/cad_c860c96ee5ce.glb
Create a pipe cutting guide consisting of a hollowed cylindrical structure. Start by creating a main outer cylinder with a radius of 27.25mm and a total height of 50mm. Add a second, shorter outer cylinder centered at the base with a radius of 29.25mm and a height of approximately 13.61mm. To create the internal taper,...
pipe_od = 50; total_ht = 50; fudge = .25; wall_thick = 2; cyl_res = 64; difference() { union() { cylinder(r=(pipe_od/2)+(wall_thick*2)+fudge,h=total_ht,$fn=cyl_res); cylinder(r=(pipe_od/2)+((wall_thick*2)+(wall_thick*2)+fudge),h=total_ht/3.66666,$fn=cyl_res); translate([0,0,total_ht/3.66666]) cylinder(r1=...
glb/cad_6851bfd51653.glb
Create a customized MEEM model by constructing a main body and subtracting specific cuts. Start with a base rectangular block 55mm wide, 60mm deep, and 80mm high. Add a top section on this base that is 55mm wide, 68mm deep (extending 4mm beyond the base on both front and back), and 32mm high. Smooth the transition betw...
b_height = 80; t_height = 32; length = 60; width = 55; overhang = 4; cuts = 7; cut_width = 1; cut_depth =5; finL_width = 8; finL_length = 10; finL_recess = 30; finL_overhang = 4; finS_width = 0; finS_length = 6; finS_recess = 20; finS_overhang = 4; cutS_width = 4; cutS_length = 1; cutL_width = 6; dif...
glb/cad_7aebdb4760aa.glb
Create a parametric tactical vehicle body. Start by placing four wheels, each a cylinder with a diameter of 80mm and a width of 30mm, positioned at the corners of a rectangle defined by a wheelbase of 190mm and a wheel distance of 130mm. Construct the main chassis using a combination of hull operations. Create a machi...
whdm=80; whwd=30; whbs=190; whds=130; whos=1.3; whss=1.3; color([0.4,0.4,0.4]) { translate([whbs/2,whds/2,0]) rotate([90,0,0]) cylinder(h=whwd,d1=whdm,d2=whdm,$fn=whdm*4,center=true); translate([-whbs/2,whds/2,0]) rotate([90,0,0]) cylinder(h=whwd,d1=whdm,d2=whdm,$fn=whdm*4,center=true); translate([whbs/2,-whds/2,0]) r...
glb/cad_873e5cca15eb.glb
Create a mobile box projector cover by constructing a layered rectangular assembly. Start with a solid base plate measuring 170mm in length, 200mm in width, and 5mm in height. Centered on top of this base, create a rectangular frame that is 150mm long, 190mm wide, and 4mm high. This frame must be hollowed out by removi...
length=150; width=73.5; thickness=9.5; daimeter=72; l=length+20;l1=length-2;l2=length+2; w=width+20;w1=width+9;w2=width+11; t=20; tl=thickness+2; t1=18-tl; module cover(){ union(){ cube([l+20,200,5]); translate([l/2+10,105,5]) difference(){ cube([l,190,4],center=true); cube([l-10,180,4],cente...
glb/cad_fc9692274c27.glb
Create a Small Mobile Box Projector by constructing a hollow rectangular enclosure. Start with a solid base block measuring 170mm in length, 93.5mm in width, and 20mm in height. From the top surface, remove a central rectangular volume measuring 148mm in length and 82.5mm in width, extending 8.5mm deep into the block t...
length=150; width=73.5; thickness=9.5; daimeter=72; l=length+20;l1=length-2;l2=length+2; w=width+20;w1=width+9;w2=width+11; t=20; tl=thickness+2; t1=18-tl; module mobholder(){ union(){ difference(){ cube([l,width+15,t]); translate([11,11,18]) cube([l1,w1,2]); translate([9,9,t1]) cube([l2,w2,tl]); } translate([-5,...
glb/cad_6e5ae1715d5d.glb
Create a Small Mobile Box Projector by constructing a hollow rectangular enclosure. Start with a solid block measuring 170mm in length, 200mm in width, and 93.5mm in height. Carve out a central cavity starting 9.5mm from the front and 10mm from the bottom, with dimensions of 151mm in length, 190mm in width, and 73.5mm ...
length=150; width=73.5; thickness=9.5; daimeter=72; l=length+20;l1=length-2;l2=length+2; w=width+20;w1=width+9;w2=width+11; t=20; tl=thickness+2; t1=18-tl; module box(){ difference(){ cube([l+20,200,w+5]); translate([9.5,10,5]) cube([l+1,190,w]); translate([4.5,10,width]) cube([6,190,6]); translate([l...
glb/cad_f4cc4f103968.glb
Create a customizable deck box consisting of a male inner container and a female outer sleeve. First, construct the inner box as a solid rectangular prism measuring 116mm wide, 74mm deep, and 71mm high, centered on its X and Y axes. Hollow out this inner box by removing a central rectangular volume of 110mm by 68mm by ...
c=110; module box(){ cube([c+6,74,71],true); translate([0,86,0]) cube([c+12,80,77],true); } module cut(){ cube([c,68,65],true); translate([0,86,0]) cube([c+7,75,72],true); } difference() { box(); translate([0,0,7]) cut(); }
glb/cad_6d0ccc7df783.glb
Create a name tag by first constructing a rectangular base plate 56mm long, 25mm wide, and 8mm high. Hollow out the center of this plate by removing a smaller rectangular block from the top, leaving a outer wall thickness of 3mm on all sides and a bottom floor thickness of 3mm. Inside this recessed area, add the 3D tex...
$fn=50; txt="Chuck"; length=56; width=25; height=8; border = 3; inset = 3; base = 3; module base(){ translate([ border, border, 0 ]) difference(){ cube([ length - 2*border, width - 2*border, height ]); ; translate([ border, border, base ]) cube...
glb/cad_08fe37b9f528.glb
Create a circular filters box consisting of a base and a lid connected by a flat hinge. The base is a rectangular enclosure with a wall thickness of 0.8mm. Inside the base, create two circular filter holes arranged in a 2x1 grid. Each hole consists of a primary cylinder with a diameter of 37mm and a height of 11mm, top...
externalFilterDiameter = 44; filterDiameter = 37; filtersInX = 2; filtersInY = 1; filterHeight = 11; margin = 1.6; wall = 0.8; fingerHoles = true; tolerance = 0.25; hingeType = "Flat"; hingeSupport = "Strong"; threadHeight = 2.5; boxHeight = (filterHeight/2) + wall; boxBorder = boxHeight*0.66; holeHeight = b...
glb/cad_a2db6fec0d2d.glb
Create a 3D model of a hyperbola figure. Start by creating two cones, each with a base radius of 50mm and a height of 50mm, positioned so they meet tip-to-tip along a shared central axis. Intersect this double-cone structure with a very thin rectangular slab, 400mm wide and 400mm deep, with a thickness of 0.2mm, positi...
$fn=64; figure=0; if(figure==0) { scale([1.5,1.5,1]) linear_extrude(height=2) projection() difference() { translate([0,0,10]) scale([100,100,.005]) translate([-.5,-.5,-.5]) cube(1); intersection() { rotate([0,90,0]) { cylinder(r1=0,r2=50,h=50); mirror([0,0,1]) cylinder(r1=0,r2=50...
glb/cad_ab9571bcd7f4.glb
Create a Useless Machine Arm with a uniform thickness of 10mm. Start with a primary circular disk that has an outer radius of 29.5mm. From this disk, remove a concentric inner cylinder with a radius of 23.5mm and a central rectangular slot measuring 59mm by 59mm to create a curved, C-shaped ring. To this ring, attach...
module useless_arm(thickness) { function r_from_dia(d) = d / 2; outer = 59; delta = 6; difference() { cylinder(h = thickness, r=outer); translate( z = -.1) { union () { cylinder(h = thickness+.2, r=(outer-delta) ); translate( v = [-(outer/2),-outer,0] ) {cube( size = [outer*2,outer*2,thickness+...
glb/cad_cd2bb19d44d7.glb
Create a Zombie Cookie Cutter by constructing a thin-walled vertical shell based on a stylized zombie silhouette. First, define the outer perimeter of the zombie shape. The figure should feature a rounded head at the top, a torso with a slightly protruding belly, and two arms extending outward. One arm should end in ...
fudge = 0.1; module poly_path3052(h) { scale([25.4/90, -25.4/90, 1]) union() { linear_extrude(height=h) polygon([[-102.517075,-38.097565],[-90.741465,-53.336585],[-86.585365,-66.497565],[-89.356095,-81.043905],[-94.897555,-90.048785],[-88.663415,-108.058535],[-60.956095,-114.985365],[-56.107315,-121.9121...
glb/cad_52058ec0f996.glb
Create a custom name plate by starting with a rectangular base measuring 45mm in length, 15mm in width, and 3mm in thickness. Center the base on the origin. Remove two cylindrical holes, each with a diameter of 3mm and a height of 6mm, to create mounting points. Position these holes so their centers are aligned with th...
xSize = 45; ySize = 15; zSize = 3; holeDiameter = 3; textHeight = 2; textSize = 7.5; myFont = "Liberation Sans"; textInput = "Antonio"; module base() { cube([xSize,ySize,zSize], center = true); } module holes() { holeRadius = holeDiameter/2; translate([-xSize/2+holeDiameter, ySize/2-holeDiameter,0]...
glb/cad_106b91776d1e.glb
Create a Paper Towel Holder Finial consisting of a stacked cylindrical body and a decorative heart. Start by creating a base cylinder 2mm high with a bottom radius of 9.5mm and a top radius of 11.5mm. Directly on top of this base, add a second cylinder 13mm high with a constant radius of 11.5mm. Cap the structure with ...
cylinder(h= 2,r1=23/2-2,r2=23/2); translate([0,0,2]) cylinder(h=15-2,r=23/2); translate([0,0,15]) cylinder(h=2,r1=23/2,r2=23/2+2); translate([0,0,6]) intersection() { cylinder(h=3,r1=23/2,r2=26/2); cube([30,12,10], center=true); } translate([0,0,27])scale([0.4,0.4,0.4])import_stl("heart.stl", convexity=2);
glb/cad_28ffd67721ff.glb
Create a hand-toe rockwall hold by starting with a sphere with a radius of 60mm. From this main sphere, remove a large cube with a side length of 40mm, positioned with its center at x=0, y=0, z=-20, to create a flat base. Subtract two identical bolt-shaped holes from the main body, one positioned at x=-40, y=0, z=-65...
B=25; h=120; l=69.5; d=11; $fn=10; module bolt(){ union(){ translate([0,0,l-0.1]) cylinder(h=h, r=B/2); cylinder(h=l, r=d/2); } } module example(){ translate([-10,-13,9.5]) rotate([90,0,0]) cylinder(h = 20, r1 = 3.5, r2 = 3.5, center = true); } module main(){ difference() { sph...
glb/cad_8e8b43d771e3.glb
Create a Pop Can Rock Wall Hold by constructing a central cylindrical body with a height of 100mm and a radius of 35mm. Extend this main body with a slightly longer concentric cylinder of 120mm in height and a radius of 25mm to form a reinforced rim. Within this inner structure, remove a smaller concentric cylinder of ...
$fn = 100; height = 100; BottomRadius = 35; TopRadius = BottomRadius; deg_a = 180; height2 = height + 20; smallr = BottomRadius - 10; height3 = height2 + 5; height4 = (height3 - height2)/2; smallerr = smallr - 1; cut = height + 100; difference(){ difference(){ difference(){ rotate (a = deg_a, v = [1, 0,...
glb/cad_974d053c310e.glb
Create a bottle holder for essential oils consisting of a flat rectangular base with three vertical cylindrical rings. Start by creating a rectangular base plate measuring 34mm wide, 108mm long, and 20mm high. Centered on this base, place three identical hollow cylindrical rings aligned in a row along the length of the...
h1=20; d1=29; dcomp=-1.5; module cilly() { difference() { cylinder(h=h1,r=d1/2+2+dcomp, center=true); cylinder(h=h1+2,r=d1/2+dcomp, center=true); } } translate(v=[0,0,h1/2]) { difference() { cube(size=[34,108,h1], center=true); translate(v=[0,0,2]) cube(size=[34+2,108+2,h1], center=true); } } translate(v...
glb/cad_10e095c340b5.glb
Create a bottle holder for essential oils consisting of a flat rectangular base with vertical dividers. The overall outer dimensions of the base are 34mm wide by 108mm long, with a total height of 54mm. The base has a thickness of 2mm. Within this footprint, create six cylindrical holes to hold bottles. Each hole must...
h1=54; w1=2; w2=8; dpipet=8; dtop=20; dcomp=0.5; skip=17; module pipet() { cylinder(h=w1*100,r=dpipet/2+dcomp, center=true); } translate(v=[0,0,h1/2]) { difference() { cube(size=[34,108,h1], center=true); translate(v=[0,0,w1]) cube(size=[34-w2,108-w2,h1], center=true); translate(v=[0,0,w1]) cube(size=[34+2,2...
glb/cad_7c41199944fb.glb
Create an Illustrated Bomb Rock Wall Hold by starting with a main spherical body with a radius of 100mm. Remove the bottom half of this sphere to create a hemispherical base. Carve a vertical hole through the center of the model to accommodate a bolt. This hole consists of two parts: a main shaft with a diameter of 1...
frag_main_body = 100; angles_main_body = 120; frag_size_main_body = 2; main_body_radius = 100; bolt_body_diameter = 11; bolt_length = 1000; bolt_head_diameter = 25; frag_first_cylinder = 20; angles_first_cylinder = 12; frag_size_first_cylinder = 2; first_cylinder_length = 75; first_cylinder_top_radius = 37.5; first_c...
glb/cad_98d79e59374b.glb
Create a customizable headphone hook by combining a base support and a curved arm. Start with a vertical base block that is 30mm wide, 30mm deep, and 25mm tall. Remove a central rectangular section from this block, leaving a 10mm thick wall on the left and right sides and a 10mm deep ledge at the bottom, resulting in a...
wth=25; thk=10; ldg=10; length=150; r=20; a=160; $fn=8; module length(){ difference(){ cube([ldg+thk*2,ldg+thk*2,wth]); translate([thk,thk,0])cube([ldg,ldg*2,wth]); } cube([thk,length-r-thk,wth]); } module hook(){ translate([-r-thk/2,length-r-thk,0])rotate (a=0, v=[2,0,0]) { translate([0,0,0]) rotate_ext...
glb/cad_1e3c33a1f939.glb
Create a MakerGear M2 z-axis knob bracket. Start with a rectangular base plate measuring 43.18mm wide by 53.975mm long with a thickness of 1.27mm. Add two side walls to the outer left and right edges of the base; these walls should be 2.54mm thick and 6.35mm high. At the center of the base plate, create an octagonal ...
knob_rad=1.45/2; side_thick=0.1; top_thick=0.05; side_height=0.2; corner=0.45; wx=1.6 + side_thick*2; wy=2.125; pad=0.1; scale(25.4) { difference() { union() { cube([wx,wy,top_thick]); translate([0,0,0]) cube([side_thick,wy,top_thick+side_height]); translate([wx-side_thick,0,0]) cube([side_thick,wy,top_thick+s...
glb/cad_84934f8335a5.glb
Create a USB Christmas star base by constructing a five-pointed star shape. Start with a star piece that has a height of 20mm and a central decagonal hole with a radius of 2.5mm. To this star, add five small cubic connectors, each measuring 3.6mm by 3.6mm by 3.6mm, positioned at the inner points of the star's arms, rot...
starbase(); module grip() { translate([-5,0,5])cube([4,10,10],center=true); translate([0,0,5])cube([10,4,10],center=true); translate([5,0,5])cube([4,10,10],center=true); } module griper() { translate([-5.2,0,2.5])scale(0.9) cube([4,10,4],center=true); translate([0,0,2.5]) scale(0.9) cube([10,4,4],center=true); t...
glb/cad_3d6c9c49c3bb.glb
Create a mount for a Sainsmart 12864 Smart Controller Case. Start by constructing a main holder block with a total width of 28mm, a depth of 105mm, and a height of 20mm. Hollow out the center of this block to create a pocket that is 24mm wide and 101mm deep, leaving a wall thickness of 2mm on all sides. From the front ...
$fn=12; lcdCaseWidth = 101; lcdCaseDepth = 24; lcdButtonFromBottom = 8; lcdSafeEdge = 10; wallThickness = 2; topLeftZScrewDistanceApart = 20; topLeftZScrewDistancFromTop = 10; topLeftZScrewDistanceFromLeft = 11; aluminiumFrameThickness = 6.6; module CaseHolder() { difference() { cube([lcdCaseDepth + wallThickness...
glb/cad_c3d2d84f7a79.glb
Create a mount for a smart controller case. Start by creating a main outer rectangular block with dimensions 28mm wide, 105mm deep, and 20mm high. Hollow out the center of this block by removing a smaller rectangular volume of 24mm by 101mm by 18mm, leaving a wall thickness of 2mm on the sides and bottom. To create an ...
$fn=12; lcdCaseWidth = 101; lcdCaseDepth = 24; lcdButtonFromBottom = 8; lcdSafeEdge = 9; wallThickness = 2; topLeftZScrewDistanceApart = 20; topLeftZScrewDistancFromTop = 10; topLeftZScrewDistanceFromLeft = 11; aluminiumFrameThickness = 6.6; module CaseHolder() { difference() { cube([lcdCaseDepth + wallThickness ...
glb/cad_5f1ef71c5205.glb
Create a little drawer system consisting of a drawer and a matching mounting bracket. The drawer is a symmetrical container with a total width of 90mm, a depth of 100mm, and a height of 50mm. The main body is hollowed out with walls 2mm thick. At the top front edge, center a handle cutout 10mm wide and 20mm deep. On ...
$fs = 0.3; $fa = 0.3; klemm = 19; x = 90; y = 100; x_p = 5.5; z_p = 3; o = 0.1; o2 = o + o; tol_z = 2; tol_x = 1; schub_z = 50; wand = 2; module ts(x=0,y=0,z=0) {translate([x,y,z]) children([0]);} module rundeckig(x,y,z,r, side) { ra = 2; module cy(z, r) {cylinder(z, r= r);} module cu(z) {cube([0....
glb/cad_31737b5965b3.glb
Create a Memory Card Box and Lid consisting of two separate parts. First, construct the box as a rectangular block with rounded corners (radius 2.2mm) and a total height of 20mm. The box features a base ledge 5mm high. On the top surface, carve out 7 rows of slots. Each row contains one SD card slot and one microSD c...
number_of_card_slot_rows = 7; SD_card_orientation = "Horizontal"; generate_box = "Yes"; generate_lid = "Yes"; module fake_news() { } num_sd = (number_of_card_slot_rows < 0 || number_of_card_slot_rows > 50) ? 7 : number_of_card_slot_rows; sd_horiz = (SD_card_orientation == "Horizontal") ...
glb/cad_22e5f662db85.glb
Create a Makerbot Cupcake Bowden cable adapter with overall dimensions of 92mm width, 34.5mm depth, and 25mm height. The main body is a rectangular block with a large central rectangular cutout measuring 100mm by 30.5mm in depth, leaving walls of 2mm thickness on the sides. Round the bottom edges of the main body with ...
overallWidth=92; overallDepth=34.5; overallHeight=25; bottomRadius=5; plastruderWidth=100; plastruderDepth=30.5; wallThickness=(overallDepth-plastruderDepth)/2; nutOffsetX=-10; nutOffsetY=2.5; nutMinDepth=2.5; nutDepth=4; nutAccPoints=11.75; boreRadius=3.125; boreLength= nutMinDepth + nutDepth; mountHoleOffsetX=...
glb/cad_77e24aa85a14.glb
Create a DIY Colorimeter housing starting with a main rectangular block measuring 37mm in length, 22mm in width, and 22mm in height. Extend the base by adding two thin rectangular tabs, each 10mm wide and 2mm thick, protruding from the front and back faces along the width. Carve a square central opening through the t...
$fn=100; eps=0.6; Wc=12.1; ddiode=10; dldr=8.24; dvis=4.5; wpate=10; epate=2; W=22; L=37; difference() { union() { cube([L,W,W]); translate([0,-wpate,0]) cube([wpate,2*wpate+W,epate]); translate([L-wpate,-wpate,0]) cube([wpate,2*wpate+W,epate]); } translate([(L-Wc)/2,(W-Wc)/2,2...
glb/cad_19b3b84c8daf.glb
Create a cablecam dolly pulley half by constructing a series of stacked concentric cylinders with a central hole. Start with a base cylinder 1mm high with a radius of 15mm. On top of this base, add a second cylinder 2.5mm high that tapers from a bottom radius of 15mm to a top radius of 11mm. Above that, add a third cyl...
Rod = 8; Contr = 0.1; Diametro = Rod + Contr ; difference() { union() { cylinder(h=1, r=15, $fn=180); translate([0,0,1]) { cylinder(h=2.5, r1=15, r2=11, $fn=180); } translate([0,0,3.5]) { cylinder(h=1.5, r=11, $fn=180); } } cylinder(h=10, r=Diametro, $fn=180); }
glb/cad_d7a9b8128c65.glb
Create a baseball bat by assembling five coaxial sections along a vertical axis. Start at the base with a knob formed by a sphere with a 20mm radius merged with a thin cylinder of 60.5mm diameter and 1mm height, scaled by 0.508. Above this, add a grip consisting of a 254mm tall cylinder with a 25.4mm diameter, topped b...
$fn=60; knob(); grip(); translate([0,0,350])taper(); translate([0,0,575])barrel(); translate([0,0,675])end(); module knob(){ scale(.508) minkowski() { cylinder(h=1,d=60.5,center=true); sphere(20); } } module grip(){ translate([0,0,254/2])cylinder(h=254,d=25.4,center=true); taper =...
glb/cad_e65aeedd9066.glb
Create a RAMPS mount bracket for a MendelMax printer. Start by constructing a baseplate with a total width of 88.55mm and a height of 48mm. The baseplate should be 4mm thick. Within this baseplate, create a rectangular cutout measuring 77.55mm by 30mm, centered such that it leaves a border around the edges. Add two ve...
module ramps_holes(h, d) { space=15.2+27.9+5.1; p = .5; translate(v=[14, 0, 0]) { cylinder(r=d/2, h=h, $fs=p); translate(v=[1.3, space, 0]) cylinder(r=d/2, h=h, $fs=p); translate(v=[82.55, 0]) cylinder(r=d/2, h=h, $fs=p); translate(v=[1.3+50.8+24.1, space]) cylinder(r=d/2, h=h, $fs=p); } } module ...
glb/cad_f258e633d09d.glb
Create a 3D glasses clip consisting of two symmetrical lens frames connected by a central bridge. Each lens frame is a flat, extruded ring with a thickness of 1mm. The outer boundary of each lens is an organic, rounded quadrilateral shape, and the inner cutout is a slightly smaller version of that same shape, creating ...
fudge = 0.1; module poly_path3843() { scale([25.4/90, -25.4/90, 1]) union() { polygon([[-95.774326,-14.149882],[-95.590213,-15.965288],[-94.301420,-20.723292],[-92.897556,-23.883168],[-90.803267,-27.391573],[-87.880469,-31.119467],[-83.991076,-34.937809],[-78.997003,-38.717560],[-72.760166,-42.329680],[-65.142...
glb/cad_de1692163bed.glb
Create a Modified RapMan Z Switch holder consisting of a main body and a separate actuator arm. For the main body, start with a rectangular base measuring 40mm by 22mm by 6mm. Position two vertical holes with a radius of 2.2mm passing through the base at coordinates (-18, 6) and (-8, -3). Build a vertical housing on ...
print_layout = 0; angle=45; $fn=16; module base() { difference() { union() { translate([-23,-10,-16]) cube([40,22,6]); } translate([-18,6,-100]) cylinder(r=2.2, h=100); translate([-8,-3,-100]) cylinder(r=2.2, h=100); } } module z_switch() { difference() { union() { translate([-1...
glb/cad_58061136befb.glb
Create a MakerGear M2 plate clip designed to hold a glass and heated plate together. Start with a solid rectangular block measuring 8.382mm in width, 15.365mm in height, and 19.05mm in length. From this main body, remove a central rectangular channel that is 5.08mm wide and 7.78mm high, running the full length of the c...
use <write.scad> W=0.20; H=0.305; XT=0.125; YT=0.1; X=W+XT; Y=H+2*YT; Z=0.75; pad = 0.1; fudge = 0.001; corner=XT; scale(25.4) { rotate([0,-90,0]) difference() { cube([X,Y,Z]); translate([XT,YT,-pad]) cube([W+pad,H,Z+2*pad]); translate([XT+fudge,-pad,Z]) rotate([-90,0,0]) linear_extrude(height=Y+2*pad) ...
glb/cad_09de7af308b2.glb
Create a garden mesh hoop spike consisting of three coaxial cylindrical sections aligned along a single axis. Start by creating a wide, thin disc at the top with a diameter of 18mm and a height of 2mm. Directly beneath this disc, attach a cylinder with a diameter of 16mm and a height of 20mm. Finally, extend the shape ...
$fn=100; rotate ([0,90,0]){ cylinder(2,d=18,d=18); cylinder(20, d=16, d=16); translate([0,0,-120]){ cylinder(120, d1=2,d2=16); }}
glb/cad_eb38d80b9a2a.glb
Create a spike for garden mesh hoops by combining three coaxial cylindrical sections. Start with a long, sharp cone that is 120mm in length, tapering from a base diameter of 16mm down to a point of 0mm. On top of this cone, add a cylinder with a diameter of 16mm and a height of 20mm. Finally, cap the assembly with a wi...
$fn=100; rotate ([0,90,0]){ cylinder(2,d=18,d=18); cylinder(20, d=16, d=16); translate([0,0,-120]){ cylinder(120, d1=0,d2=16); }}
glb/cad_173a209477a4.glb
Create a Webcam Microscope Mount consisting of two main holders connected by a flat base. The entire assembly sits on a base plate with a thickness of 1.5mm. First, create a board holder on one side. This is a rectangular block with a height of 20mm, a width of 3.5mm plus a 2.5mm wall thickness on each side, and a len...
BaseThickness = 1.5; WallThickness = 2.5; MountHeight = 20; BoardEdgeClearance = 2.8; BoardWidth = 24.2; BoardLength = 37.5; BoardDepth = 3.5; LightGuideLength = 13.5; LightGuideRad = 7; SparFromCentreDistance = 13.1; SparWidth = 4.1; SparHeight = 4; LensLength = 11.42; LensLedgeLength = 5; LensRad = 8.46; LensLedge...
glb/cad_4832588e5ca1.glb
Create a protective corner for a sheet. Start with a solid cylinder that has a diameter of 60mm and a height of 3mm. Remove a square section from this cylinder by centering a cube with a side length of 60mm and a height of 3.6mm, positioned such that it cuts away one quadrant of the cylinder, leaving a 90-degree rounde...
$fn=100; DO = 60; TH=3; DI =3.5; ST=0.5; MT =0.3; RO = 0.5*DO; RI = 0.5*DI; RH = TH*RI; CD =TH/2; MV = RO*MT; difference(){ rotate_extrude(convexity=RO) { translate ([-(RO),CD,-(RO)])circle(CD , $fn=100); } translate ([-MV,-MV, TH-ST]) cube ([DO,DO,TH*1.2]); } difference() { cylinder (h=TH, r=RO, center=false);...
glb/cad_403c4ffa65a3.glb
Create a motorbike stop lamp housing. Start with a central rectangular base measuring 126mm in length, 40mm in width, and 70mm in height. The base should have a tiered structure where the outer edges are slightly recessed by 0.8mm. At the top and bottom of the base, center two hexagonal mounting pillars. Each pillar i...
m3d=3+0.3; m3nd=6.2+0.3; m3nh=2.5; m3shd=7+0.7; m6d=6+0.3; m6nd=11.6+0.4; m6nh=5; x=126; y=40; z=70; zs=2; h0=15; hst=8; std=10; w=0.4*2; wr=8; px=37.5; py=11; kx=79; pd=12.5; fk=12; fx=x-w*4-fk; $fn=32; module osn(ox,oy,oz) { difference() { translate([0,0,oz/2]) cube([ox,oy,oz], true); for (m=[0,1]) { mir...
glb/cad_8b4a6b3b5128.glb
Create a Chuck Twist puzzle consisting of six interlocking pieces. Each piece is based on a rounded box with a base width of 20mm, a height of 20mm, and a length of 60mm (3 times the width), featuring rounded edges with a 1.5mm radius. The pieces are organized into three pairs, each rotated around a different axis to ...
include <MCAD/boxes.scad> tol=.4; width=20; length=3; radius=1.5; p1x=14; p2y=10; p3z=6; plate(); module plate() { rotate([0,0,90]) { translate([0,1+width/2,width]) rotate([-90-p1x,0,0]) redPiece(); translate([0,-1-width/2,width]) rotate([90-p1x,0,0]) bluePiece(); translate([0,2+width*1.5,width]) rotate([...
glb/cad_28080a166127.glb
Create a bracelet by constructing a circular ring with a complex cross-section. Start by defining a 2D profile consisting of a circle with a 6mm radius merged with a 25mm by 10mm rectangle centered 5mm below the circle's center. Rotate this profile 360 degrees around the Z-axis at a distance of 35mm from the center to ...
module D() { hull () { circle (r=6); translate ([-15,-5,0]) square ([25,10]); } } difference() { rotate_extrude(convexity = 10, $fn = 100) translate([35, 0, 0]) D(); for (i=[0:19]) { rotate (i * 30) translate ([0,47,-30]) cylinder (r=10,h=60); } rotate_extrude(convexity = 10, $fn = 100) translate([70, 0, 0]) c...
glb/cad_6c1c8ffc8b17.glb
Create a customizable drawer insert in the form of an open-top rectangular box. The outer dimensions of the box should be 50mm in width, 100mm in depth, and 35mm in height. The four vertical walls should be constructed with a consistent outer corner radius of 4mm. The base of the box is a solid flat plane, while the ...
insertWidth = 50; insertDepth = 100; insertHeight = 35; wallAngleTop = 1; wallAngleRight = 1; wallAngleLeft = 1; wallAngleBottom = 1; outerRadius = 4; sphereResolution = 100; removeOffset = 0.1; buildRoundedBoxAngled(insertWidth, insertHeight, insertDepth, outerRadius, wallAngleTop, wallAngleRight, wallAngleLe...
glb/cad_34d3a8fc83b8.glb
Create a Corner Fixing Block designed to join sheet materials. Start by constructing a base plate that is a cylinder with a radius of 40mm and a thickness of 2.5mm. Remove a 40mm wide rectangular section from the center of this cylinder along one axis and a 40mm wide rectangular section along the perpendicular axis, le...
thickness = 2.5; length = 40; hole = 3; manifold_offset = 0.05; module plate() { translate([0,0,thickness/2]) difference() { cylinder(h=thickness, r=length, $fn=50, center=true); translate([0, length/2, 0]) cube([2*length, length, thickness+1], center =true); translate([length/2, 0, 0]) cube([length, 2*length...
glb/cad_2da0f6c93f70.glb
Create a Reprapdiscount LCD holder by starting with a rectangular base plate measuring 156mm wide, 68mm high, and 4mm thick. Round all four corners of this plate with a 7mm radius. Cut a large rectangular opening in the center of the plate, 99mm wide and 41mm high, to accommodate the screen. On the right side of the ...
w = 156; h = 68; t = 4; corner_rad = 7; tab_rad = 6; difference(){ union(){ cube([w,h,t]); translate([0,0,-12]){ translate([4.5,0,0]){ translate([0,62,0])cylinder(d=8,h=12, $fn=15); translate([0,12,0])cylinder(d=8,h=12, $fn=15); } translate([w-7,0,0]){ translate([0,62,0])cylinder(d=8,h=12,...
glb/cad_ec81b516cce8.glb
Create a customizable shipping container model based on the following dimensions: 6.06m length, 2.44m width, and 2.59m height. Scale the final model by 1:100. Construct a rectangular frame using bars with a thickness of 0.10m. The frame should include eight ISO 1161 corner castings at the vertices. The walls and cover...
TYPE = 0; DIR = 1; STRING = 1; X = 2; Y = 3; W = 4; FONT_SIZE = 4; H = 5; ROTATE = 5; D = 6; OPENING = "O"; WINDOW = "W"; WALL = "D"; TEXT_INT = "TI"; TEXT_EXT = "TE"; TOP = 0; FRONT = 1; BACK = 2; RIGHT = 3; LEFT = 4; BOTTOM = 5; INPLACE = 0; FACEUP = 1; FACEDOWN = 2; CONTAINER_LENGTH = 6.06; CONTAINER_WIDTH = 2...
glb/cad_c834bbe0bde5.glb
Create a vacuum hose adapter consisting of two concentric hollow cylindrical segments joined by a central junction. The bottom segment is a hollow cylinder with a height of 40mm. Its inner diameter starts at 49.5mm at the base and tapers slightly to 50.5mm at the top. The outer diameter of this bottom segment starts ...
ws = 5; bg = 0; br = 50; bh = 40; bn = 1; jh = 10; tg = 0; tr = 35; th = 40; tn = 1; bri = bg == 1 ? br - (ws*2) : br; bng = bg == 1 ? bn : -bn; tri = tg == 1 ? tr - (ws*2) : tr; tng = tg == 1 ? tn : -tn; bbi = bri - (bng/2); bti = bri + (bng/2); bbo = (ws*2) + bri - (bng/2); bto = (ws*2) + bri + (bng...
glb/cad_6839794181fe.glb
Create a CAT Standard 12 VDC Plug. The main body is a rectangular block measuring 21mm in width, 22mm in depth, and 4mm in height. At the front end, remove two rectangular sections to create hand grips: one block measuring 3mm by 18.5mm by 7mm at the left edge, and another at the right edge, each capped with a cylind...
for(n=[0:1]) { for(m=[0:1]) { translate([n*52,m*25,0]) { difference() { translate([-2,0,0]) { cube([21,22,4], center=false); } translate([-3,-.5,-.5]) { cube([3,18.5,7]); } translate ([-3,18,-.5]) { cylinder(h=7,r=3); } translate([17,-.5,-.5]) { cube([3,18.5,7]); } translate ([20,18,-.5]) { cylinder(h=7,r=...
glb/cad_30ee7ab10bed.glb
Create a plant clone stand consisting of a semi-circular support structure. Form the base and top of the stand using two concentric half-rings: a larger outer half-ring with a diameter of 40mm and a cross-section diameter of 5mm, and a smaller inner half-ring with a diameter of 30mm and a cross-section diameter of 3.5m...
$fn=90; difference() { union() { legs(); rings(); } translate([0,0,-2.5]) cube([50,50,5], true); } module legs() { union() { translate([20,0,-.5]) rotate([0,353,0]) cylinder(d=3.5, h=41); translate([-20,0,-.5]) rotate([0,7,0]) cylinder(d=3.5, h=41); translate([0,...
glb/cad_9dc7d9d4fd99.glb
Create a MakerGear M2 Z Adjustment Wrench by constructing a bent, open-socket tool. Start with a main cylindrical body with a radius of 6mm and a height of 40mm. Create a second identical cylinder and position it 35mm away from the first along the x-axis, rotating it 40 degrees around the y-axis. Join these two cylinde...
module hole7mm() { union() { cylinder(r=7/(2*cos(180/6)), h=100, center=true, $fn=6); translate([7/2, 0, 0]) cube([7, 7, 100], center=true); } } difference() { union() { intersection() { union() { cylinder(r=12/2, h=42+6, $fn=90); hull() { translate([-35, 0, 0]) rotate([0, 40, 0]) ...
glb/cad_dac925c58d59.glb
Create a CAT 12 VDC Socket consisting of two identical mirrored halves. For each half, start with a rectangular block measuring 17mm x 21mm x 4mm. Within this block, carve out two primary blade socket voids: one measuring 3mm x 8mm x 7mm positioned at [2, 1, 0.5], and a second measuring 7.2mm x 8mm x 3mm positioned a...
mirror([ 1, 0,0 ]) { difference() { cube([17,21,4], center=false); translate([2,1,.5]) { cube([3,8,7]); } translate([8.9,1,2.3]) { cube([7.2,8,3]); } translate([2.5,-.5,1]) { cube([1,2,6]); } translate([9.75,-.5,3.25]) { cube([5.4,2,1]); } translate([1.5,9,2]) { cube([4,7,4]); } translate([10.5,9,1]) ...
glb/cad_9d978a1e95e1.glb
Create a CAT Socket Duplex 1110 electrical box cover plate consisting of two main components. First, create a main rectangular plate measuring 33.15mm by 66.15mm with a thickness of 2mm and rounded corners with a radius of 2.15mm. On top of this plate, add a central mounting wall measuring 12mm by 50mm with a height of...
difference() { union() { minkowski() { cube([29,62,1]); cylinder(r=2.15,h=1); } translate([8.55,6,0]) { cube([12,50,9]); } } translate([10.125,7.75,-1]) { cube([8.75,17.5,12]); } translate([10.125,36.75,-1]) { cube([8.75,17.5,12]); } translate([10.125,27.625,1.5]) { cube([8.75,7,12]); } translate([...
glb/cad_4d7533ff2bc3.glb
Create a mini car toy consisting of a central body and two axle assemblies. First, construct the body as a combination of three shapes centered at the origin: a rectangular block measuring 40mm long, 9.25mm high, and 20mm wide; a second block of the same height (9.25mm) and width (20mm) but 21.21mm long, rotated 45 d...
xw = 0.4; ad = 5; wd = ad*2.5; as = 30; aw = 30; ww = 10; cw = aw - ww*2; ch = wd/2+3; gw = 1.5; cl = as+ad*2; dl = sqrt((as+ad/2-gw*3) * (as+ad/2-gw*3)/2); for(ai = [-1,1]) translate([ai*as/2,0,0]){ for(wi = [-1,1]){ hull() { translate([0,0,wi*(aw/2-ww+ww/6)]) cylinder(r1=(wi>0)?ad/2:wd/2, r2=(wi>0)?wd/2:...
glb/cad_05c86779d645.glb
Create a mini car toy consisting of a central rectangular chassis with two axles and four wheels. The chassis is a centered rectangular block measuring 52mm in length, 7mm in height, and 37mm in width. Position two axles along the length of the chassis, each 20mm from the center (40mm apart). Each axle is a cylinder ...
xw = 0.35; axr = 3; ww = 12; axl = 25; axs = 40; gw = 1; cw = axl + ww; cl = axs + axr*2 + gw*6 + ww*2; ch = axr + gw*3; module wheel(axr, ht) { translate([0,0,-ht/2]) cylinder(r1 = axr, r2 = axr + ht/3-xw, h = ht/3, $fn = 37); cylinder(r=axr+ht/3, h = ht/3+xw, center=true, $fn = 43); translate([0,0,ht/6]) cylinde...
glb/cad_567c1ac1c971.glb
Create a mini car toy consisting of a chassis and two gear wheels. First, construct the chassis as a rectangular frame centered at the origin. The main body is a rounded box with a total length of 48mm, a width of 14mm, and a height of 44mm. Create two vertical cylindrical holes through the chassis, each with a radiu...
or8 = 10.940; gr8 = 8.000; pt8 = 6.283; gt8 = 8.000; xw = 0.35; gw = 1; hh = 3; hr = 5; cl = 40; cw = 40; hdh = 60; ww = 2; sw = ww; for(a = [-cl/2,cl/2]){ translate([a,0,0]) color("red"){ for (i = [-1,1]){ translate([0,0,i*(cw+hh-xw)/2]) cylinder(r=hr,h=hh+xw, center = true); } intersection(){ line...
glb/cad_285506601e5c.glb
Create a mini car model consisting of a rectangular outer frame and two internal wheel assemblies. Construct the outer frame as a centered box with dimensions 70mm in length, 24mm in width, and 48mm in height, with a hollow interior of 66mm by 22mm by 40mm. At each end of the frame, centered along the length, create ...
or8 = 14; gr8 = 8.000; pt8 = 6.283; gt8 = 8.000; xw = 0.35; gw = 1.5; hh = 4; hr = 5; cl = 60; cw = 40; hdh = 60; ww = 2; sw = ww; for(a = [-cl/2,cl/2]){ translate([a,0,0]){ cylinder(r=hr,h=cw+hh*2, center = true); translate([0,0,(cw-or8-gw*3)/2-xw*3]) cylinder(r2=hr-xw, r1 = or8, h = (or8-hr+xw*2)); trans...
glb/cad_0e39206a60d2.glb
Create a mini car toy consisting of a rectangular chassis and two wheel assemblies. Start by creating a central rectangular body with a length of 40mm, a width of 10mm, and a height of 40mm. At each end of the chassis, centered along the length, construct a wheel assembly. Each wheel is composed of a central cylinder...
or8 = 10.940; gr8 = 8.000; pt8 = 6.283; gt8 = 8.000; xw = 0.35; gw = 1.5; hh = 3; hr = 5; sh = 40; cl = 40; ww = 2; sw = ww; for(xi = [-cl/2,cl/2]){ translate([xi,0,0]) color("red"){ cylinder(r=hr,h=hh+xw); render() translate([0,0,hh]){ union() { cylinder(r1=hr, ...
glb/cad_f1120937fc4c.glb
Create a TIPI case for the TI-99/4A. The main body is a hollow rectangular shell with outer dimensions of 7.4mm in width, 83mm in length, and 67mm in height. The shell walls are 2mm thick. Inside the shell, create two vertical slots to hold PCBs. The first slot is 12.6mm wide, and the second slot is 1.6mm wide. These ...
pcbw = 1.6; cardx = pcbw; cardy = 79; cardz = 57; cardspace = 12.6; pex = cardspace; pey = 56.7; pez = 5; ledwindowx = cardspace-2; ledwindowy = 2; ledwindowz = 2; boxx = 1.8 + 2*(pcbw+cardspace); boxy = cardy; boxz = cardz; $fn = 15; module jedipcb() { union() { cube([cardx+0.3, cardy, cardz]); ...
glb/cad_ebb6b9ecfe06.glb
Create a Puddle Jumper spinning toy. Start by constructing a central hub consisting of a cylinder with a radius of 7.6mm and a height of 6.4mm. From this hub, extend two opposing blades. Each blade is composed of a central rectangular slab 80mm long, 8mm wide, and 1mm thick. At the outer end of each blade, add a semi-c...
bw = 8; bl = bw * 10; bt = bw / 8; br = 60; xw = 0.4; sw = sin(45)*cos(br)*(bw*1.4); module blade(cx,cy,cz,rot,dir=1){ translate([cx,cy,cz]) rotate([rot,0,(dir==1)?0:180]) translate([-bl/2,0,0]) union(){ cylinder(r=bw/2+bt/4, h = bt, center = true, $fn = 40); translate([bl/4,0,0]) cube([bl/2,bw+sin(rot)*bt/2+xw,b...
glb/cad_7902394de102.glb
Create a circular hex bit holder. Start with a solid cylindrical base that has a diameter of 126mm and a height of 10mm. Within this base, create a grid of hexagonal holes to hold bits. Each hexagonal hole should be designed for a 6.35mm bit, but include a 0.8mm tolerance to ensure a proper fit. Space these holes wit...
_diameter = 126; _bitSize = 6.35; _height = 10; _padding = 2; _tolerance = 0.8; _holeThrough = 1; _slotted = 1; outerRadius = outRadius(_bitSize + _tolerance,6); x1 = 0; y1 = 0; z1 = 0; outer_diameter = outerRadius * 2; _row = floor (_diameter / (outer_diameter + _padding)); _col = floor (_diameter / (outer_...
glb/cad_15d4920e992f.glb
Create a Parametrized Crystal Generator consisting of a central base with numerous crystal shards protruding from its upper surface. Start by creating a hemisphere with a radius of 10mm and 10 facets to serve as the base. Generate 50 individual crystals to grow from this base. Each crystal should be a multi-stage pri...
base_radius = 10; base_sides = 10; randomize_crystal_sides = false; crystal_sides = 6; crystals_count = 50; base_radius_percents = 100; body_radius_percents = 100; tip_radius_percents = 100; tip_length_percents = 100; base_radius_coefficient = base_radius_percents / 100; body_radius_coefficient = body_radius_p...
glb/cad_9745078724a2.glb
Create an Adjustable Sports Sight for Hot Shoe consisting of three main components: a foot, a strap, and two frames. First, create the foot. Start with a base rectangular block 18.1mm wide, 20mm long, and 1.99mm high with 2mm rounded corners. On top of this, center a second rectangular block 12.5mm wide and 20mm long ...
part = "_all_"; form = "_rounded_"; type = "_straight_"; sight_lenght = 70; sight_width = 30; sight_height = 20; sight_diameter = 20; wall_thickness = 1.2; view_distance = 300; inner_sight_radius = 3; leg_width = 18.0; leg_height = 3; strap_width = 18.0; strap_height = 3; strap_offset = 5; strap_bonk = 5; c...
glb/cad_24086f6af551.glb
This OpenSCAD code is a collection of modules designed to generate 2D vector-style icons (like a cake, mail, cogwheel, etc.) using **Cubic Bézier curves**. The script uses a custom implementation of Bézier mathematics to convert a set of four control points (start, two handles, and end) into a series of linear segmen...
special_character="TXT"; special_text="STOP"; special_text_size=10; star_cone(1); R_MIN = 4; R_MAX = 15.5; WALL = 1.5; HEIGHT = 50; $fn = 5; function remap(value, start1, stop1, start2, stop2) = start2 + (value - start1) * (stop2 - start2) / (stop1 - start1); function type(x)= ( x==undef?undef : floor(x)==x?...
glb/cad_224f56670765.glb
Create a Container Constructed with a Key consisting of five polycubes assembled from smaller cubes with a side length of 8mm. Four of these pieces are identical octacubes, and one is a nonacube that serves as the key. To create an octacube, arrange 8 cubes of 8mm each into a specific non-solid geometry. To create the...
cube_size = 8; overlap = 0.25; makex(inverse_8); module makex(inverse_set) { difference() { cube(size=7*cube_size); union() { for (i = [0:1:len(inverse_set)-1]) { x = cube_size*inverse_set[[i][0]]; { translate(v=x) cube(size=cube_size+overlap); } }}}} inverse_8 = [ [-1,-1,-1],[ 0,-1,-1],[ 1,...
glb/cad_7b23300a2968.glb
Create a container constructed from five interlocking polycubes, where each individual cube unit measures 10mm. Four of these pieces are identical 8-cube components, and one is a 9-cube "key" piece that secures the assembly. To build the four identical 8-cube pieces, arrange the cubes in a path that moves from [2,0,0]...
assembly_diagram(); module assembly_diagram() { rotate([180,0,]) view_answers(apuz_7); rotate([180,0,0]) view_pieces(apuz_7); translate([0,120,0]) rotate([180,0,0]) view_answer(apuz_7); } module view_answer(file) { color("red") join_cubes(file,1,9); color("yellow") join_...
glb/cad_3f5ea49a6bfa.glb
Create a Half Pan Watercolor Kit consisting of a bottom tray and a hinged top lid. For the bottom tray, create a rectangular block with a total width of 64.1mm and a total height of 73.5mm, with a depth of 9.5mm. Within this block, carve out a grid of 9 rectangular cells (3 columns and 3 rows) to hold half-pans. Each...
panWidth = 15.7; panHeight = 19; panDepth = 9.5; panColumns = 3; panRows = 3; spacing = 2; hingeGap = 0.1; hingeSegments = 5; filletRadius = 2; hingeThickness = 1.5; pinDiameter = 2.5; module pan(panWidth, panHeight, panDepth){ scale([panWidth, panHeight, panDepth]) cube(); } module pans(panRows, pa...
glb/cad_1037533a2b8f.glb
Create a Blade MCPX swash leveling tool consisting of a central vertical post and a wide, flat base. Start by creating a central cylinder with an outer diameter of 5.6mm and a height of 12mm, centered vertically. Bore a hole through the entire length of this central cylinder with a diameter of 3.6mm. For the base, cons...
$fn = 100; shaft_diam = 3.6; outer_diam = shaft_diam + 2; difference() { union() { translate([0,0,1]) cylinder(r=outer_diam/2, h=12, center=true); difference() { translate([0,0,0]) difference() { translate([0,0,-2.5]) cylinder(r=outer_diam*3, h=5, center=true); translate([0,0,0.2]...
glb/cad_f819af9d6207.glb
Create a Chair Protector designed to block a vacuum from climbing chair legs. Start by creating a solid rectangular block 21mm wide, 37mm deep, and 25mm high, centered on the origin. From this block, remove a smaller centered rectangular volume measuring 15mm wide, 31mm deep, and 30mm high to create a hollow interior. ...
z = 25; difference() { #cube(size = [21,37,z], center = true); #cube(size = [15,31,z+5], center = true); translate([10,0,0]) #cube(size = [5,25,z], center = true); } translate([-20,-19,8]) #cube(size = [31,37,5], center = false);
glb/cad_cbfec8552335.glb
Create a wire trap for a mounting bracket. Start with a rectangular base plate that is 4.2mm high. On top of this base, center a rectangular neck that is 18mm wide, 5mm deep, and 7.3mm high. Attached to this neck, build a main body that is 8mm high and 4mm thick. The body should be a hollowed-out rectangular shell; c...
include <costmo Bracket.scad> include <Module- Generic baseplates.scad> wtOnTopBaseWidth = distanceBetweenTopNutTraps; wtBaseHeight = 4.2; wtNutTrapOffset = (cutoutXY/2) - (wtOnTopBaseWidth/2); wtBasePlateCornerDiameter = 3; wtTopNeckWidth = 18; wtTopNeckDepth = 5; wtTopNeckHeight = 7.3; wtBodyHeight = 8; wtBodyT...
glb/cad_2abe3c9fbcc9.glb
Create a Z index adjustment arm for a costmo Bracket. Start by constructing a base plate with a total height of 5.7mm. The main body is a rectangular block with a width of 15mm and a height of 5.7mm, featuring rounded corners with a radius of 1.2mm. The geometry is defined by a hull that connects a central rectangula...
include <costmo Bracket.scad> baseCornerRoundness = 1.2; bpPlatformHeightBase = 5.7; cornerBaseExtensionLength = (bpPlatformHeightBase - 4.2); module topBase() { connectedM3Spacers( 4.2, distanceBetweenTopNutTraps, 0 ); } module sideBase() { connectedM3Spacers( 4.2, distanceBetweenInternalNutTraps, 0 ); } ...
glb/cad_a1c804412ed8.glb
Create a Z index adjustment arm for a costmo Bracket. Start by creating a corner base plate. Attached to this base, add a rectangular platform that extends forward. This platform should have a length of 24mm, a height of 6mm, and a width of 15mm, with all dimensions adjusted by subtracting the base corner roundness. W...
include <costmo Bracket.scad> include <Module- Generic baseplates.scad> lsaHeight = 6 - (baseCornerRoundness); lsaWidth = 15 - (baseCornerRoundness); lsaLength = 24 + 4.2 - (baseCornerRoundness); renderSidePlatform = false; renderFrontPlatform = true; if( renderSidePlatform ) { translate( [-1 * ((bpPlatformHeigh...
glb/cad_f6fa02a7102c.glb
Create a spoon stand consisting of a circular dish and an attached upright holder. First, create a circular dish with a diameter of 50mm and a height of 5mm. The dish should have a wall thickness of 1.8mm and a bottom thickness of 1.8mm, with a rounding radius of 4mm on the interior edges. Attached to the side of th...
preview = 1; dish_d = 50; dish_h = 5; grip_width = 8; grip_thickness = 3.6; holder_length = 30; w = 1.8; c = 1; dish_angle = 60; r_r = 4; spoon_angle = 15; g_thick = grip_thickness + c; g_w = grip_width + c; tau = 2 * PI; xy_factor = 1/tan(dish_angle); z_factor = tan(dish_angle); r_d = dish_d/2; r_a = r_r + w;...
glb/cad_a779eb4dfc05.glb
Create a metal detector coil base. Start with a main ring that has an outer diameter of 200mm, an inner diameter of 180mm, and a height of 15mm. Carve a concentric channel into the top of this ring that is 9mm deep with an inner diameter of 190mm. At the center of the ring, create a solid cylinder with a radius of 30...
$fn=120; module ring( ro, ri, rh ) { difference() { cylinder( r=ro, h=rh ); cylinder( r=ri, h=rh ); } } module hinge( h, w, th, d ) { difference() { union() { cylinder( r=w/2, h=th ); translate( [0, -w/2, 0] ) cube( [h, w, th] ); } ...
glb/cad_f230a729dfa5.glb
Create a High-tech Koozie designed to insulate a cylindrical can. The model consists of a hollow outer cylinder with an outer diameter of 76.76mm and a total height of 102.8mm. The interior is defined by a central cylindrical void with a diameter of 66.3mm and a height of 99mm, creating a wall thickness of 0.76mm for t...
can_dia = 66.2; can_height = 99.0; tolerance = 0.10; air_gap = 5.0; baffle_wall = 0.76; outer_wall = 0.76; bottom_thick = 0.80; test_slice = "no"; baffle_dist = 8.0; support_height = 3.0; support_width = 1.2; segments = 80; top_cut = 0.4; outer_dia = can_dia + 2*(tolerance + air_gap + outer_wall); chamfer ...
glb/cad_e183cf4ac0e0.glb
Create a universal joint consisting of a central ball and two connecting clevis arms. First, construct the central ball by creating a sphere with a 20mm outer diameter. Flatten two opposite sides of the sphere to create a width of 15mm across the flats. Remove two perpendicular cylindrical channels with a 3.4mm diame...
include <M3_screw.scad> eps = 0.01; fn=50; MBOD = 9.77; MBID = 3.15; MBH = 3.96; MBSINK = 0.95; module minibearing() { difference() { cylinder(r=MBOD/2,h=MBH,$fn=fn); translate([0,0,-eps]) cylinder(r=MBID/2,h=MBH+2*eps,$fn=fn); } } module 4bearings() { for (i = [0 : 4]) { rotate([i*90,0,0]) translate...
glb/cad_d2e03ee1f1c2.glb
Create a universal joint central ball and two connecting clevis arms. Start by creating a central sphere with a diameter of 20mm. Flatten two opposite sides of the sphere to create a width of 15mm across the flats. Inside this central ball, create two orthogonal cylindrical holes with a diameter of 3.4mm that pass th...
eps = 0.01; fn=50; MBOD = 9.77; MBID = 3.15; MBH = 3.96; MBSINK = 0.95; module minibearing() { difference() { cylinder(r=MBOD/2,h=MBH,$fn=fn); translate([0,0,-eps]) cylinder(r=MBID/2,h=MBH+2*eps,$fn=fn); } } module 4bearings() { for (i = [0 : 4]) { rotate([i*90,0,0]) translate([0,0,-((BOD/2)-MBSINK)])...
glb/cad_4e8c4063dcee.glb
Create an earbud box consisting of a main holder and a snap-on lid. For the holder, create a rounded rectangular base with external dimensions of 40mm width, 21mm depth, and 16mm height. The walls should be 2.5mm thick, leaving an internal cavity of 35mm by 16mm. The top edges of the walls should taper slightly to fa...
iwidth = 35; idepth = 16; iheight = 16; theight = 5; theight2 = 5; wall = 2.5; radius = 4; wrap_height = 20; wire_width = 0; $fs=0.3; lip = 4; holder(); lid(); module holder(){ difference() { headphone_protect(); translate([0,17,30.5+wall]) cube([8,40,61], true); for(x=[-iwidth*0.4:(iwidth*0.8)/3:iwidth*...
glb/cad_a0daa6c35833.glb
Create a Parametric Rubber Foot Mount designed to clip onto a board. Start by creating a cylindrical base with a radius of 7.5mm and a total height of 5mm. Hollow out the center of this base by removing a cylinder with a radius of 6.5mm and a height of 2.5mm, leaving a bottom thickness of 3mm and a retaining lip of 1mm...
BoardThickness = 6; RubberFootRadius = 6.5; Recess = 2; RimThickness = 1; ClipHeight = 6; BaseThickness = 3; $fn =75; union() { difference() { cylinder(Recess+BaseThickness, RubberFootRadius+ RimThickness, RubberFootRadius+ RimThickness); translate([0,0,-.5])cylinder(Recess+.5, RubberFootRadius, RubberFootRadius); ...
glb/cad_727426fd810b.glb
Create a neodymium magnet container by starting with a solid cube that measures 1.5mm in width, 1.5mm in depth, and 0.6mm in height. In this cube, carve out four vertical cylindrical holes, each with a diameter of 0.5mm and a depth of 0.6mm. Position the centers of these holes in a 2x2 grid pattern at the following coo...
module cylin(){ $fn=100; translate ([0.4,0.4,0.1]) cylinder(h=0.6,d=0.5); translate ([1.1,1.1,0.1]) cylinder(h=0.6,d=0.5); translate ([1.1,0.4,0.1]) cylinder(h=0.6,d=0.5); translate ([0.4,1.1,0.1]) cylinder(h=0.6,d=0.5); }; difference (){ cube([1.5,1.5,0.6]); cylin(); };
glb/cad_079f9472406e.glb
Create a neodymium magnet container by starting with a solid cube that measures 15mm in width, 15mm in depth, and 6mm in height. From the top face of this cube, remove four cylindrical holes to create storage slots for magnets. Each hole must have a diameter of 5mm and a depth of 5mm, leaving a 1mm thick base at the bo...
$fn=100; difference (){ cube([15,15,6]); translate ([4,4,1]) cylinder(h=6,d=5); translate ([11,11,1]) cylinder(h=6,d=5); translate ([11,4,1]) cylinder(h=6,d=5); translate ([4,11,1]) cylinder(h=6,d=5); };
glb/cad_4985e910ae74.glb
Create a neodymium magnet container by starting with a solid cube that is 37.5mm wide, 37.5mm long, and 6mm high. Within this cube, carve out a grid of cylindrical holes to hold magnets. Each hole must have a radius of 2.5mm and a depth of 5mm, leaving a 1mm thick base at the bottom of the container. Arrange the holes ...
n=37.5; h=6; r=2.5; z=100; b=1; module cylin(){ $fn=z; for (i=[0:round(n/15)+1]){ for (j=[0:round(n/15)+1]) translate([3*r*i,1.5*r,1]) translate([1.5*r,3*r*j,1]) cylinder(h,r,r); } }; difference (){ cube([n,n,h]); cylin(); };
glb/cad_789f24120d67.glb
Create a neodymium magnet container by starting with a solid cube that is 15mm wide, 15mm long, and 6mm high. In this cube, create four vertical cylindrical holes, each with a radius of 2.5mm and a height of 5mm. These holes should be positioned such that their centers are located at the four coordinates (3.75mm, 3.75m...
n=15; h=6; r=2.5; module cylin(){ $fn=100; translate ([1.5*r,1.5*r,1]) cylinder(h,r,r); translate ([n-1.5*r,n-1.5*r,1]) cylinder(h,r,r); translate ([n-1.5*r,1.5*r,1]) cylinder(h,r,r); translate ([1.5*r,n-1.5*r,1]) cylinder(h,r,r); }; difference (){ cube([n,n,h]); cylin(); };
glb/cad_874fd6052a38.glb
Create a Spool Clip with a total width of 10mm. Start with a rectangular base measuring 82mm wide by 16mm high and 10mm thick. Carve out a central rectangular slot 74mm wide by 6mm high, leaving a wall thickness of 4mm on the top, left, and right sides, and a bottom wall thickness of 1.5mm. On the right side of the o...
SPOOL_WIDTH = 74; SPOOL_RIM = 6; SPOOL_RIM_OVERHANG = 1.5; FILAMENT_DIAMETER =3.2; CLIP_THICKNESS = 4; CLIP_WIDTH = 10; $fn = 150; make(); module make(){ linear_extrude(center = true, height = CLIP_WIDTH)build2dObject(); } module build2dObject(){ union(){ 2dClip(); translate([SPOOL_WIDTH/2+CLIP_THICKNESS,CLIP...
glb/cad_646b2a7bdbac.glb
Create a Kossel carriage for a 3D printer. Start with a main body consisting of a central rectangular block 27mm wide, 40mm long, and 6mm thick. At each end of the long axis, add ball joint mount horns that are 13mm thick and 18mm high, shaped by intersecting a block with a cone that tapers from a radius of 14mm down t...
include <configuration.scad>; belt_width_clamp = 6; belt_thickness = 1.0 - 0.05; belt_pitch = 2.0; tooth_radius = 0.8; separation = 40; thickness = 6; horn_thickness = 13; horn_x = 8; belt_width = 5; belt_x = 5.6; belt_z = 7; corner_radius = 3.5; m3_nut_radius = 3.0; m3_wide_radius = 1.5; module carriage() { t...
glb/cad_0882d2dd6916.glb
Create a tiered paint bottle stand with a total depth of 105mm and a width of 126mm. The stand consists of three rectangular platforms of increasing height: the front row is 20mm high and 105mm deep, the middle row is 40mm high and 70mm deep, and the back row is 60mm high and 35mm deep. These platforms are aligned to c...
bottle_count = 4; preset_dia = 24.5; preset_inset = 15; custom_dia = 32.2; custom_inset = 5; chamfer_bottom = 0; stand_row = 0; tolerance = 2.0; spacing = 5.0; fillet = 0; bottle_dia = (preset_dia == 0) ? custom_dia + tolerance : preset_dia + tolerance; bottle_inset = (preset_inset == 0) ? custom_inset : pres...
glb/cad_e1b52f8ffcf2.glb
Create a paint bottle stand with a tiered, open-top rectangular structure. The overall base footprint is 126mm wide and 105mm deep. The stand consists of three stepped layers of varying heights and depths to hold bottles. The front layer is 20mm high and 105mm deep. The middle layer is 40mm high and 70mm deep. The bac...
bottle_count = 4; preset_dia = 24.5; custom_dia = 32.2; chamfer_bottom = 0; stand_row = 0; thickness = 3.0; tolerance = 2.0; spacing = 5.0; fillet = 0; bottle_dia = (preset_dia == 0) ? custom_dia + tolerance : preset_dia + tolerance; dia = bottle_dia + (fillet*2); w = bottle_count * (dia + spacing) - (fillet*...
glb/cad_f77679750578.glb
Create a CoreXY Cube endstop bracket. Start with a rectangular base block that is 19.5mm wide, 4mm high, and has a length calculated as the sum of 26.75mm (the distance between endstop holes plus a nut diameter) and 34.2mm (two times the M4 bolt diameter plus 30mm). From this base, remove a central rectangular slot t...
m3_od = 3.2; m4_od = 4.2; m3_nut_od = 6.75; endstop_hole_spacing = 19.0; jack = 9.0; fw = 20.0 - 0.5; sw = 6.0 - 0.3; wt = 2.0; extra = 30.0; L1 = endstop_hole_spacing + m3_nut_od; L2 = 2 * m4_od + extra; L = L1 + L2; H = 4.0; FOO=extra/2.0 - m4_od - 2.0; module block() { union() { cube([fw, L, H/2]); ...
glb/cad_4eaebc82bbb6.glb
Create a CoreXY Cube rod clamp. Start with a base block that combines a rectangular bar and a cylinder. The cylinder has an outer diameter of 14mm and a height of 13.75mm. The rectangular bar section has a width of 23.75mm and a depth of 9.75mm. To create the clamp mechanism, remove a central vertical cylinder with a d...
clamp_id = 10.0; clamp_od = clamp_id + 4; bolt_od = 3.2; nut_od = 6.75; bar_hole_spacing = 19.0; bar_margin = 2.0; bar_w = bar_hole_spacing + 2 * ( 0.5 * ( nut_od ) + bar_margin ); bar_h = nut_od + 2 * bar_margin + 3.0; bar_d = clamp_od / 2 + 4; extra = 5.0; module rough_block() { union() { transl...
glb/cad_af6bea9e7d48.glb
Create a CoreXY Cube mounting bracket with a total height of 8mm. Start by creating a main cylinder with a radius of 13.5mm and a height of 8mm, centered on the Z-axis. Remove a concentric inner cylinder with a radius of 9.5mm and a height of 9mm to create a ring. Attached to the side of this ring, add a rectangular b...
H = 8; D = 19; E = 8; difference() { union() { cylinder(r=(D+E)/2, h=H, center=true, $fn=100); translate([4/2+(D+E)/2, 0, 0]) difference() { cube([8+2, 8, H], center=true); # translate([1, 0, 0]) rotate([90, 0, 0]) cylinder(r=3.4/2, h=9, center=true, $fn=8); # ...
glb/cad_afba31cb2ae0.glb
Create a bubble wand consisting of a flat handle and a circular head containing five holes. Start by creating a thin rectangular handle 50mm long, 2.2mm wide, and 2.2mm thick. At one end of the handle, construct a circular head by arranging four rings around a central point. Each ring should have an outer radius of 6mm...
thickness = 2.2; radius = 6; length = 50; $fn = 50; wand(); module double(){ wand(); translate([length+ radius,2*radius+5,0])rotate([0,0,180])wand(); } module wand(){ difference(){ union() { rotate( 45, [0, 0, 1]) union() { for (x = [-1, 1]) { translate([(x * (radius - (thickness / 2))) , 0, 0]) for (y =...
glb/cad_52d5e2fce5e1.glb
Create a 3D model of a "130 Size" hobby DC motor. The total length of the assembly along the central axle is 38mm. Start with the main motor body, which is a cylinder with a diameter of 20mm and a length of 25mm (composed of a 20mm main section and a 5mm rear housing). Flatten the top of this body to a width of 15mm. ...
motor_body_x = 20; motor_body_y = 20; motor_body_z = 15; motor_body_y_flat_top = 13; motor_axle_outset_length_front = 8; motor_front_protrusion_x = 2; motor_front_protrusion_diameter = 4.95; motor_front_side_notch_x_inset_from_front = 3.5; motor_front_side_notch_x_length = 2; motor_front_side_notch_y_depth = 1; mot...
glb/cad_cb5382694fa9.glb
Create a 6-piece burr puzzle called "Drunk Chuck Twists" where each piece is based on a rounded rectangular prism with a width of 20mm, a length of 60mm (3 times the width), and rounded edges with a 1.5mm radius. The puzzle consists of three pairs of pieces. The first pair is rotated 6 degrees about the x-axis and sk...
include <MCAD/boxes.scad> tol=.5; width=20; length=3; radius=1.5; p1x=6; p1s=-6; p2y=6; p2s=-6; p3z=-6; p3s=-6; spacing=3; plate(); p1m=[ [1,0,0,0], [(tan(p1s)*cos(p1x))-(tan(-p1s)*sin(p1x)),cos(p1x),-sin(p1x),0], [(tan(-p1s)*cos(p1x))+(tan(p1s)*sin(p1x)),sin(p1x),cos(p1x),0], [0,0,0,1]]; p1mi=[[cos(-p1s)*co...
glb/cad_e8a737d74277.glb
Create a 6-piece burr puzzle called "Drunk Chuck Twists" where each piece is based on a rectangular prism with dimensions of 20mm width, 20mm height, and 60mm length (3 times the width), featuring rounded edges with a 1.5mm radius. The puzzle consists of three pairs of pieces. The first pair is rotated 0 degrees abou...
include <MCAD/boxes.scad> tol=.4; width=20; length=3; radius=1.5; p1x=0; p1s=-13; p2y=0; p2s=13; p3z=0; p3s=13; spacing=3; plate(); p1m=[ [1,0,0,0], [(tan(p1s)*cos(p1x))-(tan(-p1s)*sin(p1x)),cos(p1x),-sin(p1x),0], [(tan(-p1s)*cos(p1x))+(tan(p1s)*sin(p1x)),sin(p1x),cos(p1x),0], [0,0,0,1]]; p1mi=[[cos(-p1s)*co...
glb/cad_a7971c61f960.glb
Create a 6-piece burr puzzle called "Drunk Chuck Twists" where each piece is based on a rectangular prism with a width of 20mm, a height of 20mm, and a length of 60mm (3 times the width), featuring rounded edges with a 1.5mm radius. Construct the six pieces by creating three pairs of interlocking components. Each pai...
include <MCAD/boxes.scad> tol=.4; width=20; length=3; radius=1.5; p1x=-2; p1s=-4; p2y=6; p2s=8; p3z=10; p3s=12; spacing=2; plate(); p1m=[ [1,0,0,0], [(tan(p1s)*cos(p1x))-(tan(-p1s)*sin(p1x)),cos(p1x),-sin(p1x),0], [(tan(-p1s)*cos(p1x))+(tan(p1s)*sin(p1x)),sin(p1x),cos(p1x),0], [0,0,0,1]]; p1mi=[[cos(-p1s)*co...
glb/cad_ca06e2848c64.glb
Create a Speak&Spell battery cover consisting of a flat square base and a central locking mechanism. Start with a main square plate measuring 59mm by 59mm with a thickness of 1mm. On top of this base, add a second recessed square layer measuring 55mm by 57mm with a thickness of 1mm, centered to leave a 2mm border on th...
EPS = 0.005; thick = 1.0; space = 1.5; lidWidth = 59.0; lidLength = 59.0; lidRecess = 2.0; lidOver = 2.0; fixPress = 0.0; fixWidth = 20.0 - 2*space; fixToothHeight = 10.0; fixHeight = fixToothHeight +14.0; fixDepth = 2.5; fixRecess = 2.0; fixThick = 0.75; fixToothThick = fixRecess + 1.5; bossThick = 5.0; bosses = 2;...
glb/cad_3a87d1c14f4d.glb
Create a Speak&Spell Battery Cover consisting of a flat square base and a complex integrated locking clip. Start with a square base plate measuring 59mm by 59mm with a thickness of 1mm. On top of this base, add a second centered square layer measuring 55mm by 57mm with a thickness of 1mm, leaving a 2mm border on the si...
EPS = 0.005; thick = 1.0; space = 1.0; lidWidth = 59.0; lidLength = 59.0; lidRecess = 2.0; lidOver = 2.0; fixPress = 6; fixWidth = 20.0; fixToothHeight = 10.0; fixHeight = fixToothHeight +14.0; fixDepth = 2.5; fixRecess = 5; fixThick = 0.5; fixToothThick = fixRecess + 1.0; fixToothOver = 1.0; angle=25; module lid() {...
glb/cad_5405525ba0b4.glb
Create a two-part protective case for a Sipeed MAix BiT. The design consists of a base and a top cover that mirror each other to enclose the device. The main body is a rectangular housing with external dimensions of 64.5mm in width and 46.5mm in height. The walls are 2mm thick. Inside, create a central cavity to hold ...
$fn = 50; display_width = 60.2 + 1.3; display_height = 42.5 + 1; display_depth = 2.5 + 0.3; display_frame = 1; display_frame_cable = 7; bit_width = 53.5; bit_height = 25.5; bit_depth = 16.5 + 3; bit_board_depth = 9; bit_pin_distance = 20; bit_pin_width = (bit_height-bit_pin_distance)/2; cable_housing = 8; cable_heig...
glb/cad_943ebc439a39.glb
Create a Cables Holder consisting of a main comb body and two support brackets. For the main body, create a rectangular base 105mm long, 40mm wide, and 5mm thick. Along the length of this base, create 11 parallel cable slots. Each slot is formed by two opposing arms 35mm long and 5mm wide, separated by a 5mm gap to hol...
h_w=25.0; h_h=35.0; h_e=5.0; h_l=25.0; c_l=105.0; c_w=40.0; c_e=5.0; c_s=5.0; $fn=10; module support_holder() { linear_extrude(height=h_l) union() { difference() { hull() { square([h_w,h_e]); translate([0.5*h_e,h_h-0.5*h_e]) circle(r=0.5*h_e); translate([h_w-0.5*h_e,h_h-0.5*h_e]) circle(r=0....
glb/cad_f83c19d7de2a.glb