Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Plugged Tube consisting of a hollow cylinder and a matching plug. First, construct the main tube as a hollow cylinder with an internal diameter of 60mm, a wall thickness of 3mm, and a total length of 120mm. The tube should feature a central axial hole with a diameter of 7mm running through its length. Addition...
ahd=7; cid=60; pld=cid-1; plw=20; shd1=4.5; shd2=4; rl=120; rxh=5; rgw=5; rgd=40; lip=false; twoholes=false; $fn=40; wt=3; xw=0.4; module plug(){ difference(){ union(){ cylinder(r=(pld-xw)/2,h=plw, center=true, $fn=120); if(lip && !twoholes){ for(i = [-1,1]){ ...
glb/cad_a894d6aa98ca.glb
Create a watch opening tool consisting of a cylindrical handle and a notched lifting ring. Start by creating a base handle as a cylinder with a diameter of 60mm and a height of 4mm. Remove a concentric inner cylinder from this base with a diameter of 31.5mm to create a hollow ring. On top of this base, centered at a ...
$fn=90; id1 = 35.5; od1 = 38.3; h_ = 1; l_ = 2; h2 = 4; d2 = 60; translate([0, 0, h2-0.01]) { difference() { cylinder(d=od1, h=h_); translate([0,0,-0.01]) cylinder(d=id1-4, h=h_+0.02); } for (i = [1:6]) { rotate ([0,0,60*i]) translate([id1/2, -l_/2, h_-0.01]) cube([(od1-id1)/2, ...
glb/cad_90bbec873400.glb
Create an M10 toolkit consisting of a hexagonal nut and matching bolts. For the nut, start with a hexagonal prism with a flat-to-flat width of 16mm and a height of 8mm. Center a vertical hole through the prism with a major diameter of 10mm. The interior of this hole must be threaded with a metric M10 profile, featuring...
use <guided_extrude.scad>; xw=0.4; il=24; fl=30; cr=2; nh=8; ww=1; mXlength=nh*2; mXD=10; bD=16; mXP=1.5; mXDmin=mXD - 5*sqrt(3)/8*mXP; mXDp=mXD - 3*sqrt(3)/8*mXP; mXH=sqrt(3)/2 * mXP; mXR=mXH/(mXP/2); mXppr=24; mXloops=mXlength/mXP; mXtid=mXD-mXP; type="bolt"; mXmyPoints = [[mXH*3/8+xw,-mXP/16], [mXH*3/8+xw,mXP/16]...
glb/cad_41ef8f0eba77.glb
Create an M10 Toolkit consisting of a bolt and matching nuts. For the bolt, create a cylinder with a major diameter of 10mm and a total length of 62mm. Incorporate a metric screw thread along the exterior with a pitch of 1.5mm and a minor diameter of approximately 8.97mm. The thread profile should be based on an ISO me...
use <guided_extrude.scad>; xw=0.4; il=24; fl=30; cr=2; fh=8; ww=1; mXlength=60+xw+2; mXD=10; bD=16; mXP=1.5; mXDmin=mXD - 5*sqrt(3)/8*mXP; mXDp=mXD - 3*sqrt(3)/8*mXP; mXH=sqrt(3)/2 * mXP; mXR=mXH/(mXP/2); mXppr=24; mXloops=mXlength/mXP; mXtid=mXD-mXP; type="bolt"; mXmyPoints = [[mXH*3/8-xw/2,-mXP/16], [mXH*3/8-xw/2,...
glb/cad_5e5bc2e9a3f4.glb
Create an M10 bolt consisting of a hexagonal head and a threaded shaft. Start by creating a hexagonal prism for the head with a flat-to-flat diameter of 16mm and a height of 8mm. Centered on top of this head, add a threaded cylindrical shaft with a major diameter of 10mm and a pitch of 1.5mm. The shaft should extend up...
use <guided_extrude.scad>; xw=0.4; il=24; fl=30; cr=2; fh=8; ww=1; mXlength=15+fh+xw; mXD=10; bD=16; mXP=1.5; mXDmin=mXD - 5*sqrt(3)/8*mXP; mXDp=mXD - 3*sqrt(3)/8*mXP; mXH=sqrt(3)/2 * mXP; mXR=mXH/(mXP/2); mXppr=24; mXloops=mXlength/mXP; mXtid=mXD-mXP; type="bolt"; mXmyPoints = [[mXH*3/8-xw,-mXP/16], [mXH*3/8-xw,mXP...
glb/cad_3446ccf38b31.glb
Create an M10 Toolkit bolt consisting of a hexagonal head and a threaded shaft. Start by creating a hexagonal prism for the bolt head with a diameter of 16mm and a height of 8mm. Attached to the head, create a cylindrical shaft with a major diameter of 10mm and a total length of 30mm. Along the length of this shaft, ...
use <guided_extrude.scad>; xw=0.4; il=24; fl=30; cr=2; fh=8; ww=1; mXlength=30+fh+xw; mXD=10; bD=16; mXP=1.5; mXDmin=mXD - 5*sqrt(3)/8*mXP; mXDp=mXD - 3*sqrt(3)/8*mXP; mXH=sqrt(3)/2 * mXP; mXR=mXH/(mXP/2); mXppr=24; mXloops=mXlength/mXP; mXtid=mXD-mXP; type="bolt"; mXmyPoints = [[mXH*3/8-xw/2,-mXP/16], [mXH*3/8-xw/2...
glb/cad_d24e9d7f1012.glb
Create a 3D model consisting of a central cylinder and an extruded decorative shell. First, create a cylinder with a diameter of 6mm and a height of 10mm, positioned so its base is at z=5mm. Next, generate a complex extruded shape that wraps around this cylinder. The cross-section of this extrusion is a 30-sided regu...
use <../path_extrude/path_extrude.scad>; myPoints = [ for(t = [0:12:359]) [3*cos(t-18),3*sin(t-18)] ]; myPath = [ for(t = [0:0.01:1]) [0 + 0.25*cos(5*t*360),0.25*sin(5*t*360),t*5] ]; myScale = [ for(t = [0:0.01:1]) 0.167*(cos(t*360)+1)+0.667 ]; translate([0,0,5-0.001]) cylinder(d=6, h=10.001, $fn=31); path_extrude(po...
glb/cad_dc9a76e690fe.glb
Create an M16 Nut by constructing a hexagonal prism with a height of 8mm and a diameter of 17mm. At the center of the prism, remove a cylindrical core with a major diameter of 10mm and a length of 8mm. To create the internal screw thread, extrude a specific 2D profile along a helical path. The profile is a four-point...
use <path_extrude.scad>; length=8; D=10; P=1.5; ND=17; H=sqrt(3)/2 * P; R=H/(P/2); ppr=25; loops=length/P; xw=0.4; myPoints = [ [-H/2+xw+0.1*R,-P/2+0.1], [1/4*H+xw,-P/8], [1/4*H+xw,P/8], [-H/2+xw+0.1*R,P/2-0.1] ]; myPath = [ for(t = [-(180/loops):(360/(ppr*loops)):360+(180/loops)]) [(D/2)*cos(loops*t),(D/2)*sin(...
glb/cad_0aef3fd08a70.glb
Create a 3D model of a trefoil knot by extruding a 2D octagon along a specific 3D path. The path follows a trefoil knot curve, defined parametrically where the X, Y, and Z coordinates are determined by combinations of sine and cosine functions of a parameter $t$ (from 0 to 359 degrees), specifically scaled by a facto...
function project(p, c, n) = p - (n * (p - c)) * n / (n * n); function getPlanarAngle(p1, p2, c1, n1) = let(p1 = p1-c1, n1=n1 / norm(n1), p2=p2-c1) atan2((p1[0]*p2[1]*n1[2] + p2[0]*n1[1]*p1[2] + n1[0]*p1[1]*p2[2]) - (n1[0]*p2[1]*p1[2] + p1[0]*n1[1]*p2[2] + p2[0]*p1[1]*n1[2]), p1 * p2); function c...
glb/cad_502ecc75766d.glb
Create an M16 Nut by constructing a hexagonal prism with a height of 8mm and a width across flats of approximately 24mm. First, create the main body by taking a hexagonal cylinder with a height of 6mm and a radius of approximately 11mm, and apply a Minkowski sum with a sphere of radius 1mm to round the edges. Subtr...
use <path_extrude.scad>; length=8; P=2; H=sqrt(3)/2 * P; R=H/(P/2); ppr=30; loops=length/P; D=16; xw=0.4; myPoints = [ [-H/2+xw+0.1*R,-P/2+0.1], [1/4*H+xw,-P/8], [1/4*H+xw,P/8], [-H/2+xw+0.1*R,P/2-0.1] ]; myPath = [ for(t = [-(180/loops):(360/(ppr*loops)):360+(180/loops)]) [(D/2)*cos(loops*t),(D/2)*sin(loops*t),...
glb/cad_9da2139ccb75.glb
Create an M16 Bolt model. Start by creating a central cylindrical core with a diameter of 6.5mm and a total height of 30.8mm, centered on the Z-axis. Around this core, generate a screw thread by extruding a specific 2D profile along a helical path. The profile is a four-point polygon with vertices at approximately [-...
use <path_extrude.scad>; length=30; D=10; P=1.5; H=sqrt(3)/2 * P; R=H/(P/2); ppr=15; loops=length/P; xw=0.4; fh=3; fd=100; cd=20; myPoints = [ [-H/2-xw+0.1*R,-P/2+0.1], [1/4*H-xw,-P/8], [1/4*H-xw,P/8], [-H/2-xw+0.1*R,P/2-0.1] ]; myPath = [ for(t = [-(180/loops):(360/(ppr*loops)):360+(180/loops)]) [(D/2)*cos(loop...
glb/cad_98b1cbab69a8.glb
Create an M16 bolt consisting of a hexagonal head and a threaded cylindrical shaft. First, construct the main body by creating a cylinder with a height of 20.8mm and a radius of approximately 6.5mm, centered on the Z-axis. Around this cylinder, extrude a screw thread profile along a helical path. The profile is a sma...
use <path_extrude.scad>; length=20; P=2; H=sqrt(3)/2 * P; R=H/(P/2); ppr=20; loops=length/P; D=16; xw=0.4; myPoints = [ [-H/2-xw+0.1*R,-P/2+0.1], [1/4*H-xw,-P/8], [1/4*H-xw,P/8], [-H/2-xw+0.1*R,P/2-0.1] ]; myPath = [ for(t = [-(180/loops):(360/(ppr*loops)):360+(180/loops)]) [(D/2)*cos(loops*t),(D/2)*...
glb/cad_975e78efb936.glb
Create a Todo Stencil by starting with a rectangular base plate measuring 35mm wide, 300mm long, and 1mm thick. Cut a series of square holes through the plate to create checkboxes, each measuring 10mm by 10mm. These holes should be arranged in a single vertical column, spaced evenly apart. Position the column so that t...
stencilWidth=35; thickness=1; checkboxSize=10; initialMargin=(checkboxSize/1.5); pageHeight=300; difference(){ cube([stencilWidth, pageHeight, thickness]); for (i = [1 : 2 : 100]){ if (pageHeight-(checkboxSize*i)-initialMargin > (checkboxSize/2)-initialMargin) translate([stencilWidth-checkboxSize-i...
glb/cad_cdfaf399511c.glb
Create a Bolt filament feeder consisting of two identical mirrored halves. For each half, start with a central rectangular enclosure measuring 48.4mm in width, 24.4mm in depth, and 60.4mm in height. Within this enclosure, carve out a cylindrical void to accommodate a bolt with a radius of 4.2mm and a height of 60mm. ...
xw = 0.4; bd = 8; bh = 60; fd = 3; cd = 0.3; for(i=[-1,1]){ translate([0,0,i*bh]) difference(){ difference(){ translate([0,0,-3]) cube([bd * 6,bd * 3,bh], center = true); translate([-bd/2-fd/2-cd,0,0]) cylinder(r=bd/2+xw, h = bh, center = true, $fn=40); translate([-bd/2-fd/2-cd,0,bh/2+2]) cylinder(h=4+xw, r=8,$fa...
glb/cad_ed8b4e1092d1.glb
Create a Truncated Octahedron Gear. The object is a cylindrical gear with a height of 10mm and a central bore with a diameter of 6mm. The gear features 7 teeth. The gear's profile is defined by a truncated octahedron meshing shape. The teeth are formed by a wave pattern that varies in radius along the height of the cy...
function octWave(t, delta) = let(y = triWave(t)) (abs(y) > abs(delta)) ? sign(y) * delta : y*sign(delta); function triWave(t) = 1-abs(t*4-2); function octCurve(posX, posZ, pitchX=1, pitchZ=1) = let(fracX=(((posX % pitchX)+pitchX) % pitchX) / pitchX, fracZ=((posZ % pitchZ) / pitchZ), triZ=triWave(frac...
glb/cad_21489000573a.glb
Create a battery magazine holder designed to store AA and AAA batteries. The object consists of a series of vertical slots formed by thin walls. First, construct a base structure containing two distinct sections. The AAA section consists of two adjacent towers, each with an outer width and depth of 12.5mm and a total ...
qo=0.01; $fn=21; Numbers=2; Strings="foo"; Labeled_values=10; Labeled_value="S"; sliderWithMax1=34; sliderWithRange=34; stepSlider=2; sliderCentered=0; sliderWithMax2=34; Variable=true; Spinbox1=5; Spinbox2=5.5; String1="hello"; String2="length"; VectorRange3=[12,34,46]; VectorRange4=[12,34,45,23]; Vect...
glb/cad_c1c4e570b32f.glb
Create a rectangular storage box for a board game organizer. The main body is a hollow cube with outer dimensions of 46.6mm in length, 46.6mm in width, and 39.9mm in height. The walls have a thickness of 1.6mm, and the base is a solid floor with a thickness of 0.8mm. At the top rim of the box, create a lid holder syst...
PNW = 0.4; PLH = 0.2; TL = 0.4; Width = 45; Length = 45; Depth = 41.9 - TL; StartWallHeight = 1.6; EndWallHeight = StartWallHeight * 2; OuterWallThickness = PNW * 4; InnerWallThickness = PNW * 2; OuterWallThicknessHalf = OuterWallThickness / 2; BoxOuterWidth = Width + OuterWallThickness; BoxInnerWidth = Width - O...
glb/cad_cd67b1e9adde.glb
Create a rectangular storage box for Carcassonne game components with outer dimensions of 127mm in length, 34.5mm in width, and 45.6mm in depth. The box should have a floor thickness of 0.8mm and walls with a thickness of 1.6mm. To create the interior cavity, remove a central block that leaves the specified wall and fl...
PNW = 0.4; PLH = 0.2; Width = 34.5; Length = 127; Depth = 45.6; OuterWallThickness = PNW * 4; FloorThickness = PLH * 4; difference(){ group(){ difference(){ cube([Length, Width, Depth], center = true); translate([0,0, OuterWallThickness / 2]){ cube([Length - Oute...
glb/cad_a904f9c34bc0.glb
Create a Symmetric Vertical Ear Saver consisting of a long central band with small protruding hooks. Start by creating a main horizontal band 140mm long, 5mm wide, and 0.75mm thick, with fully rounded ends. Along the top surface of this band, place a series of 12 small hooks (6 on each side, mirrored symmetrically from...
totalLength = 140; bandThick = 0.75; bandWidth = 5; hookDepth = 3; hookCount = 5; hookThickness = 1.2; minDist = totalLength * 0.55; hull(){ for(trx = [bandWidth/4, totalLength-bandWidth/4]){ translate([trx, 0, bandWidth/2]) rotate([90,0,0]) linear_extrude(height=bandThick, center=true) scale([0.5,...
glb/cad_144d49cd6200.glb
Create a customizable wall hook consisting of a rectangular base plate and three protruding hooks. The base plate should be 180mm long, 60mm wide, and 5mm thick, with rounded corners having a radius of 2.5mm. Along the width of the plate, create two countersunk screw holes centered 15mm from the side edges. Each hole...
base_length = 60; base_width = 180; base_height = 5; base_curvature = 2.5; hook_count = 3; hook_angle = 30; hook_base_diameter = 15; hook_tip_diameter = 10; hook_length = 35; hook_off_center = 0; holes_corners = false; holes_x = true; holes_y = false; holes_inset_x = 15; holes_inset_y = 15; holes_inner_diameter = 4...
glb/cad_fbbac99fcde2.glb
Create a construction kit for a truncated octahedron consisting of two distinct flat plate geometries, both with a thickness of 3mm. First, create the joiner piece: a rectangular plate measuring 13.8mm by 5.8mm. At each of the two shorter ends, remove a centered rectangular notch measuring 6.2mm wide by 3.2mm deep to...
bt=3; xw=-0.1; sl=30; pw=6 - xw*2; jl=10; cl=(sl - jl)/2; sigma=0; translate([(jl+bt*2-xw)/2 - bt + xw/2,-pw*1.25]) linear_extrude(height=bt) difference(){ square([jl+bt*2-xw,pw-xw], center=true); for(xi = [-1, 1]){ translate([xi * (jl + bt * 2)/2,0]) square([bt*2+xw,bt+xw], center=true); } } tran...
glb/cad_f54ca0ab3603.glb
Create a Bee Honeycomb Foundation consisting of a rectangular base plate and a grid of hexagonal cells. Start by creating a solid rectangular base plate measuring 120mm wide by 80mm high with a thickness of 2mm. On top of this base, construct a honeycomb lattice with a total height of 2mm. The lattice should be compose...
cw=10; cww=1; bt=2; bbwt=1; hct=2; hcw=120; hch=80; xw=0.4; translate([0,0,-xw]) linear_extrude(height=hct+xw) difference(){ square([hcw, hch], center=true); for(x = [-(0.5*hcw/cw+1):(0.5*hcw/cw+1)]){ for(y = [-(0.5*hch/cw+1):(0.5*hch/cw+1)]){ translate([(y)%2*(cw/2) + x*cw,y*cw*cos(30)]) r...
glb/cad_c99a52d2ccc4.glb
Create a Falcon Tube Holder designed to hold both 15ml and 50ml tubes. Start by constructing a circular base with a flat bottom. From this base, create a vertically extruded, rotationally symmetrical body that transitions in diameter to accommodate two different tube sizes. The upper section should be a hollow cylinde...
otd = 28; itd = 16; ohh = 30; ihh = 50; ihx = 15; ohbh = 15; ihbh = 22.5; otbd = 7.5; itbd = 5; ww = 1.5; fla = 40; hxd = 5.5; xw = 0.4; holes=true; $fn = 60; o1 = otd/2 + ww/2 + xw; o2 = otbd/2 + ww/2 + xw; i1 = itd/2 + ww/2 + xw; itProp = (i1 - o2) / (o1 - o2); module holder_slice(){ translate([0,ihx]){ h...
glb/cad_1ffb4ee219d2.glb
Create a Mouse Helmet by constructing a hollow, tapered conical shell. The outer shape is formed by a hull of two cylinders aligned along a central axis: a larger cylinder with a radius of 16.25mm at the base and a smaller cylinder with a radius of 11.25mm at the top, spanning a total length of 41.5mm. The shell must h...
so=15; hl=40; h1=25; h2=8; w1=30; w2=15; ehw=5; ehl=10; eho=15; function hw2rad(h, w) = ((w/2)*(w/2) + h*h) / (2*h); hr1 = hw2rad(h1,w1); hr2 = hw2rad(h2,w2); hsxd = (h1-hr1) - (h2-hr2); hra = atan2(hsxd,hl); hca = atan2(hr1 - hr2, hl); echo(hca); tk=1.5; xw=0.4; rotate([90,0,0]) scale([0.75,1,1]) rotate([hra...
glb/cad_cfbaa85fe5ec.glb
Create a Mouse Helmet designed as a tapered, hollow protective shell. The main body is a conical frustum with a length of 40mm, transitioning from a larger circular opening at the base to a smaller circular opening at the top. The base has a width of 30mm and a height of 25mm, while the top narrows to a width of 15mm a...
so=15; hl=40; h1=25; h2=12; w1=30; w2=15; ehw=5; ehl=10; eho=15; function hw2rad(h, w) = ((w/2)*(w/2) + h*h) / (2*h); hr1 = hw2rad(h1,w1); hr2 = hw2rad(h2,w2); hsxd = (h1-hr1) - (h2-hr2); hra = atan2(hsxd,hl); hca = atan2(hr1 - hr2, hl); echo(hca); tk=2; xw=0.4; rotate([hra,0,0]) difference(){ translate([...
glb/cad_2d4b0b59f1bc.glb
Create a Mouse Helmet designed as a tapered, hollow protective shell. The main body is a conical section with a wall thickness of 1mm. The larger end has a radius of 18.5mm and the smaller end has a radius of 7.5mm, extending over a length of 40mm. The shell is tilted slightly along its longitudinal axis. To form the ...
so=15; hl=40; h1=25; h2=8; w1=30; w2=15; ehw=5; ehl=10; eho=15; function hw2rad(h, w) = ((w/2)*(w/2) + h*h) / (2*h); hr1 = hw2rad(h1,w1); hr2 = hw2rad(h2,w2); hsxd = (h1-hr1) - (h2-hr2); hra = atan2(hsxd,hl); hca = atan2(hr1 - hr2, hl); echo(hca); tk=1; xw=0.4; difference(){ scale([0.75,1,1]) rotate([hra,0,0]...
glb/cad_4c25433496f7.glb
Create a Mouse Helmet designed as a tapered, hollow protective shell. The main body is a conical frustum with a wall thickness of 1mm. The larger opening at the base has a radius of approximately 17.68mm, while the smaller opening at the top has a radius of approximately 7.23mm. The total length of this conical section...
so=15; hl=40; h1=25; h2=8; w1=30; w2=15; ehw=5; ehl=10; eho=15; function hw2rad(h, w) = ((w/2)*(w/2) + h*h) / (2*h); hr1 = hw2rad(h1,w1); hr2 = hw2rad(h2,w2); hsxd = (h1-hr1) - (h2-hr2); hra = atan2(hsxd,hl); hca = atan2(hr1 - hr2, hl); echo(hca); tk=1; xw=0.4; rotate([hra,0,0]) difference(){ translate([0...
glb/cad_4e24bde42b69.glb
Create a Mouse Helmet designed as a tapered, hollow protective shell. The main body is a conical frustum with a length of 40mm. The larger opening at the rear has a radius of 12.5mm, while the smaller opening at the front has a radius of 6.25mm. The shell wall thickness is 1.5mm. The exterior consists of a hull formed...
so=15; hl=40; h1=25; h2=8; w1=30; w2=15; ehw=5; ehl=10; eho=15; function hw2rad(h, w) = ((w/2)*(w/2) + h*h) / (2*h); hr1 = hw2rad(h1,w1); hr2 = hw2rad(h2,w2); hsxd = (h1-hr1) - (h2-hr2); hra = atan2(hsxd,hl); hca = atan2(hr1 - hr2, hl); echo(hca); tk=1.5; xw=0.4; rotate([90,0,0]) scale([0.75,1,1]) rotate([hra...
glb/cad_1fb65a4da0f6.glb
Create a Mouse Helmet by constructing a hollow rectangular shell. Start with a solid rectangular block measuring 27mm in length, 53mm in width, and 53mm in height. From the center of this block, remove a smaller rectangular interior volume measuring 10mm in length, 50mm in width, and 53mm in height, leaving a wall thic...
tk=1.5; wd=50; ht=50; lt=10; so=15; hl=40; h1=25; h2=8; w1=30; w2=15; hr1 = hw2rad(h1,w1); hr2 = hw2rad(h2,w2); hca = atan2(hr1 - hr2, hl); function hw2rad(h, w) = ((w/2)*(w/2) + h*h) / (2*h); xw=0.4; translate([lt/2+tk*2.5+xw,0,0]) difference(){ translate([-tk*1.5,0,0]) cube([lt+tk*7+xw*2,wd+tk*2+...
glb/cad_3d89f16818f5.glb
Create a Mouse Helmet designed as a tapered, hollowed-out conical shell. The main body is a truncated cone with a length of 40mm. The larger opening at the front has a radius of 14.5mm, tapering down to a radius of 7.5mm at the rear. The walls of this shell are 1.5mm thick. The helmet is open at the bottom to allow fo...
so=15; hl=40; h1=25; h2=8; w1=30; w2=15; ehw=5; ehl=10; eho=15; function hw2rad(h, w) = ((w/2)*(w/2) + h*h) / (2*h); hr1 = hw2rad(h1,w1); hr2 = hw2rad(h2,w2); hsxd = (h1-hr1) - (h2-hr2); hra = atan2(hsxd,hl); hca = atan2(hr1 - hr2, hl); echo(hca); tk=1.5; xw=0.4; addBodyShield = false; scale([0.75,1,1]) rota...
glb/cad_e3832501927c.glb
Create a Laser Holder designed to house a laser unit and three 45mm filter discs. Start by constructing the main body as a rectangular enclosure with an outer width of 49mm and a depth of 6mm. In the center, carve out a laser tray measuring 33mm wide by 63mm long. At the front of the holder, create a lens opening wit...
xw=0.4; ft = 5; fsd = 5; fw = 45; fh = 45; fww = 2; fc = 3; ltd = 6; ltw = 33; ltl = 63; llg = 15; lww = 4; hd = 4; nd = 8; nh = 3; lrd = 15; lrl = 11; spl = fc*(fww+ft+xw*2)+fww; hw = fw+fww*2; translate([0,-(ltl+spl)/2,0]) difference(){ union(){ translate([-hw/2,0,0]) cube([hw,ltl+lww+llg+spl,ltd+fww])...
glb/cad_74fce003abe7.glb
Create a pair of Rain Dear earrings. Start by constructing a ring with an outer diameter of 20mm and an inner diameter of 15mm, extruded to a height of 1.5mm. Below this, create a stylized cloud shape by combining a series of small circles with a larger central mass, extruded to a height of 2mm. Embed the text "OH OH...
a = rands(0,1,50); b = rands(0,1,50); c = rands(0,1,50); xw = 0.4; linear_extrude(height=1.5) translate([0,15]) difference(){ circle(d=20, $fn=24); circle(d=15, $fn=24); } color("grey") linear_extrude(height=2){ minkowski(){ polygon([for (th = [0:15:359]) [(4*a[th/15]+18)*cos(th),(4*a[th/15]+6)*si...
glb/cad_0d3f8a10528c.glb
Create a Rain Dear earring by constructing a stylized reindeer head silhouette. Start with a large outer ring with a diameter of 47mm and a wall thickness of 2mm. Cut a square hole through the center of this ring, where the square is 45mm wide and rotated 45 degrees. Add two smaller circular eye elements, each with a...
ed=45; ww=2; $fn=32; minkowski(){ scale([0.71,1,1]) intersection(){ linear_extrude(height=ed/6){ difference(){ circle(d=ed+ww); circle(d=ed-ww); translate([0,cos(45)*ed]) rotate(45) square([ed,ed], center=true); } translat...
glb/cad_0b5344bf4569.glb
Create a Truncated Octahedral Vase. The object is a hollow cylinder with a wall thickness defined by a complex, woven outer surface. The overall dimensions are based on a volume of 250,000 cubic mm, with a radius derived from five patterns per circle and 2.25 patterns per height. Construct the outer wall using a trunc...
function octWave(t, delta) = let(y = triWave(t)) (abs(y) > abs(delta)) ? sign(y) * delta : y*sign(delta); function triWave(t) = 1-abs(t*4-2); function octCurve(posX, posZ, pitch=1) = let(fracX=(((posX % pitch)+pitch) % pitch) / pitch, fracZ=((posZ % pitch) / pitch), triZ=triWave(fracZ)*0.5) [posX, ...
glb/cad_9ce851fc2d4a.glb
Create a Truncated Octahedral Vase. The object is a cylindrical vessel where the outer wall is formed by a repeating weave of truncated octahedra. The overall structure is a cylinder with a radius of 30mm. The outer surface consists of 5 vertical cycles of a geometric pattern. Each unit of the pattern is a truncated ...
gear_teeth_count = -1; gear_radius = 30; gear_pitch = -1; start_angle = 0; clipTop = false; highTop = false; num_cycles = 5; height_multiplier = 1; make_flat = true; axle_type = "none"; axle_diameter = 4.8; xw=0.35; extra_base_height=0; ring_gear = false; module __Customizer_Limit__ () {} delta = 0.01; ...
glb/cad_d0aa1d8d5315.glb
Create a cylinder with a radius of 60mm and a height of 100mm, centered on the origin. Engrave the words "ENGRAVED TEXT" into the outer curved surface of the cylinder. The letters should be formed by removing material from the cylinder's volume. Each letter is constructed from a series of paths with a thickness of 4mm,...
use <alphabet_points.scad>; use <guided_extrude.scad>; myPath = [[58,0,0], [62,0,0]]; module extrudeLetter(pointSets, extrudeType, path){ for(ps = pointSets){ mapExtrude(extrudeType, ps, path, $fn=5); } } rotate([0,0,-$t * 360+180]){ difference(){ cylinder(r=60, h=100, $fn=100, center=true); for(lt...
glb/cad_579004729829.glb
Create a Flicker Fidget Cube consisting of a main frame and several removable mechanical inserts. Construct the main frame as a cube with a width of 37mm. The frame should have a wall thickness of 2mm and rounded corners with a 3mm fillet radius. Create four circular holes with a diameter of 6.4mm (6mm plus a 0.4mm t...
cw = 37; ww = 2; flr = 3; xw = 0.4; axd = 6; fod = 14; fww = 0.5; style = "side"; module frame(inner=false){ difference(){ union(){ difference(){ minkowski(){ translate([-cw/2+flr,-cw/2+flr]) cube([cw-flr*2,cw-flr*2, cw/2-flr]); cylinder(r1=0, r2=flr, $fn=4, h=flr); } ...
glb/cad_791334493670.glb
Create a prosthetic leg for a 30cm doll. Start with a foot base created by the convex hull of six spheres with a radius of 3mm, positioned to form a rectangular footprint 15mm wide, 35mm long, and 10mm high. Above the foot, construct a lower leg section. This section begins with a threaded bolt featuring a major diam...
use <path_extrude.scad>; fl=35; fh=10; fw=15; fsr=3; xh=24; pi=3.1415927; ml=25; mh = 5; ww = 1.75; ri = 5; xw = 0.4; gh = 15; nh = 4; function muscleCurve(frac, rad, ht) = (sin(frac * 130) + 1) * ht/2 + rad; hull(){ translate([-fw/2+fsr,fl-fsr*2,0]) sphere(r=fsr, $fn=24); translate([fw/2-fsr,fl-fsr*2,0]) ...
glb/cad_e40d7d7bdf26.glb
Create a Moonboot Toe Protector consisting of a hollowed, curved shell and a rectangular attachment tag. The main body is a curved cover with a wall thickness of 2mm. The outer shell is defined by a hull connecting four 24-facet spheres with a radius of 27.5mm. These spheres are positioned to create a tapered form: two...
cwb=100; cwf=55; ch=27.5; sk=0.3; ma=45; cl=30; ww=2; fll=50; flw=20; foot="left"; ska=(foot == "left" ? sk : 1 - sk); mht=sin(ma); poss=[[-(cwb-ch)/2, 0], [(cwb-ch)/2, 0], [-(cwf+ch)*ska/2, cl], [(cwf+ch)*(1-ska)/2, cl]]; rotate([180,0,0]){ difference(){ hull(){ for(pi = [0:(len(poss)-1)]){ tran...
glb/cad_b0d09897b0a3.glb
Create a One-way Valve consisting of a thick, flat base with a complex internal channel system. The overall structure is defined by a path radius of 10mm and a wall width of 6mm. Construct the main body by extruding a series of interlocking, right-angled teardrop shapes that combine sine waves and semicircular curves...
pr = 10; nc = 2; ww = 6; xw = 0.4; module fast_curve(r=20, ww=ww, $fn=90){ polygon([for (theta = [0:(360 / $fn) : ((ww == 0) ? 360 : 450)]) (theta <= 135) ? [r - 2*r*((theta)/180), (-r/4)*sin((theta-135)*180/135+90)-r/4+ww/2] : (theta <= 180) ? [(r/2-ww/2)*cos(-(theta+90)*2) - r/2, ...
glb/cad_0d9a9af2c3fc.glb
Create a one-way valve based on the Tesla valve geometry. The model consists of a continuous, winding path with a wall thickness of 2mm and a total extrusion height of 0.8mm. The main structure is formed by four repeating cycles of a teardrop-shaped loop. Each cycle consists of a path with a radius of 10mm that combi...
pr = 10; nc = 4; ww = 2; xw = 0.4; module fast_curve(r=20, ww=ww, $fn=90){ polygon([for (theta = [0:(360 / $fn) : ((ww == 0) ? 360 : 450)]) (theta <= 135) ? [r - 2*r*((theta)/180), (-r/4)*sin((theta-135)*180/135+90)-r/4+ww/2] : (theta <= 180) ? [(r/2-ww/2)*cos(-(theta+90)*2) - r/2, ...
glb/cad_a9cb0ae1b555.glb
Create a one-way valve based on the Tesla valve geometry. The model is a flat, extruded plate with a thickness of 0.8mm. The main body is a rectangular slab measuring 150mm in length and 30mm in width. Within this slab, carve out a series of repeating internal channels. The pattern consists of four cycles of teardrop...
pr = 10; nc = 4; ww = 2; xw = 0.4; module fast_curve(r=20, ww=ww, $fn=90){ polygon([for (theta = [0:(360 / $fn) : ((ww == 0) ? 360 : 450)]) (theta <= 135) ? [r - 2*r*((theta)/180), (-r/4)*sin((theta-135)*180/135+90)-r/4+ww/2] : (theta <= 180) ? [(r/2-ww/2)*cos(-(theta+90)*2) - r/2, ...
glb/cad_ccf0d50c96b4.glb
Create a dessicator grille clamp consisting of a main body and a clip. The main body is a block 24mm thick with a central rectangular cutout. The cutout is 20mm wide and 15mm deep, with a 12mm wide wall. Within this body, center a vertical hole 5mm in diameter. The body features rounded corners with a 4mm radius. The ...
cgh=20; cgd=15; ct=24; ww=12; cww=4; xw=0.4; hd=5; cd=4; clw=ct-cww*2; cll=40; rotate([0,0,0]) union(){ difference(){ linear_extrude(height=ct) { difference() { union(){ pts = [[[0+cd/2,0+cd/2], [ww-cd/2,0+cd/2], [0+cd/2,cgd+ww-cd/2], [ww-cd/2,cgd+ww-cd/2]], ...
glb/cad_09259f7a324e.glb
Create a Double Helix Spring consisting of two intertwined helical coils capped by two flat rings. Start by creating two identical rings with an outer radius of 24mm, an inner radius of 16mm, and a thickness of 4mm; position one ring at the base and the other at a height of 51mm. Between these rings, construct two inte...
use <path_extrude.scad>; sh = 55; sr = 20; td = 0.8; ww = 4; ns = 8; myPointsHexagon = [ for(t = [0:(360/24):359]) [td * cos(t),td * sin(t)]]; myPathHelixInner = [for(t = [0:5:360]) [(sr-ww/2) * cos(t), (sr-ww/2) * sin(t), t / 360 * (sh-ww) + ww/2]]; myPathHel...
glb/cad_8d3130922aa8.glb
Create a Double Helix Spring model. Start by designing a hexagonal profile with a diameter of 2mm. Use this profile to extrude two intertwined helical paths that wrap around a central axis. The first helix should have a radius of 11.5mm and the second a radius of 16.5mm; both should complete two full rotations over a t...
use <path_extrude.scad>; sh = 120; sr = 14; td = 2; ww = 5; ns = 6; myPointsHexagon = [ for(t = [0:(360/6):359]) [td * cos(t),td * sin(t)]]; myPathHelixInner = [for(t = [0:15:720]) [(sr-ww/2) * cos(t), (sr-ww/2) * sin(t), t / 720 * (sh-ww) + ww/2]]; myPathHeli...
glb/cad_91f072d329cc.glb
Create a Disc Motor Electric Scooter wheel assembly. Start by creating two identical wheels, each 125mm in diameter and 24mm wide. For each wheel, center a hole for a 22mm diameter bearing with a thickness of 7mm, and within that, a central axle hole 8mm in diameter. In the thickness of each wheel, embed 16 rectangula...
magDim = [19,3,3]; xw=0.4; ww=1.5; mdx = magDim + [xw*4, xw*2, xw*4]; whd=125; whw=24; brd=22; brt=7; axd=8; pi=3.1415927; cldx=4; cldi=(whd-whw)- mdx[0]*2 - cldx*2; cldo=(whd-whw) + cldx*2; clt=10; clw=(cldi * pi) / 30 - (ww-xw); clhd=5; clshd=8; clshh=4; mgc = 16; clc = (mgc / 2) * 3; module bearing(){ transla...
glb/cad_f1a2de8608f9.glb
Create a small fishing hook with a total thickness of 1.5mm. Start by designing a flat profile that consists of two circles, each with a diameter of 4mm, positioned 10mm apart center-to-center. Connect these two circles with a rectangular bridge that is 1.5mm wide and 10mm long, angled at 15 degrees. To form the hook's...
fhd=4; fhl=10; fht=1.5; xw=0.4; linear_extrude(height=fht) difference(){ union(){ circle(d=fhd, $fn=24); rotate(15) { translate([-fht/2,0]) square([fht,10]); translate([0,fhl]) circle(d=fhd, $fn=24); } } circle(d=fhd-1, $fn=24); rotate(15) { trans...
glb/cad_bd3044831472.glb
Create a Tukutuku Panel consisting of a series of parallel vertical slats and horizontal bars. Construct 33 vertical slats, each 1.5mm high and 0.75mm wide, spaced evenly apart. These slats should be arranged in a row such that the distance between the center of one slat and the next is 3.1mm. Across these slats, pla...
xw=0.4; rows=8 * 2 + 2; width=30 * 3 + 3; hw=xw*1.5; cw=1.5; sh=1.5; sigma=0.01; translate([0,0,sh]) rotate([-90,0,90]) linear_extrude(height=width*(cw/2+hw+xw)-hw*2, center=true){ for(row = [1:rows]){ color(["red","green","blue"][row % 3]) translate([(row-rows/2) * (cw*2+hw*2),0]) difference(){ ...
glb/cad_b5a33a8739ee.glb
Create a flexible door stop with a total length of 80mm, a height of 20mm, and a tapered profile. The outer shape is defined by a hull connecting a circle with a 20mm diameter at one end to a circle with a 4mm diameter at the other. Hollow out the center by removing a smaller hull that connects a 16mm diameter circle a...
size="small"; d1=(size == "small" ? 20 : 30); d2=(size == "small" ? 4 : 6); l12=(size == "small" ? 80 : 120); ww=(size == "small" ? 2 : 3); tk=20; grip=false; linear_extrude(height=tk){ difference(){ hull(){ translate([0,0]) circle(d=d1, $fn=120); translate([l12,0]) circle(d=d2, $...
glb/cad_2cf58095e89f.glb
Create an award holder designed to hold a coin-type award with a diameter of 70mm and a thickness of 5mm. The main body is a flat plate with a total thickness of 10mm. Start with a square base that is extruded to this thickness. Within this base, create a central cutout for the award: a cylinder with a diameter of 70.8...
ad = 70; at = 5; ww = 2.5; xw = 0.4; %translate([0,0,ad*5/6]) rotate([90,0,0]) cylinder(d=ad, h=at, $fn=120, center=true); difference(){ rotate([90,0,0]) linear_extrude(height=at+ww*2, center=true) difference(){ cd=ad*1.5 + ww*4; circle(d=cd, $fn=4); translate([0,(cd)/2]) circle(r=ww*4); ...
glb/cad_ffc8d3137127.glb
Create an award holder by constructing a base and a supporting structure that features a slot for a coin. Start with a rectangular base measuring 60mm by 60mm with a height of 5mm. Attached to this base, create a vertical rectangular pillar 60mm wide and 15mm thick, extending upwards to a total height of 70mm. At the t...
ad = 60; at = 5; xw = 0.4; difference(){ union(){ translate([0,-ad/2,0]) cube([ad,ad,5]); translate([0,-7.5,0]) cube([ad,15,ad+10]); translate([ad/2,0,ad]) rotate([20,0,0]) { cube([ad,ad,5], center=true); translate([0,ad/2,0]) rotate([-20,0,0]) cube([ad,5,10], cente...
glb/cad_5aa7922bbbb4.glb
Create an award holder designed to hold a coin-shaped object. Start by constructing a profile that is a hull of four circles, each with a diameter of 10mm. Position two circles at the far left and right edges, 30mm from the center on the x-axis. Position the other two circles at the top, with one at x=30mm and y=25.36m...
ad = 60; at = 5; xw = 0.4; la = 20; difference(){ rotate([90,0,0]) linear_extrude(height=ad, center=true) difference(){ hull(){ translate([-ad/2,0]) circle(d=at*2, $fn=60); translate([ ad/2,0]) circle(d=at*2, $fn=60); translate([ ad/2,ad-ad/2*sin(la)]) circle(d=at*2, $fn...
glb/cad_0094bb26fa4a.glb
Create a Halbach Effect Motor/Generator consisting of two primary components: a magnet holder and a wire holder. First, construct the magnet holder. Create a cylindrical disc with a center axle hole 10.8mm in diameter. The main body has a height of 19mm. Around the perimeter, create 20 rectangular slots to house 5x5x1...
id=55; xw=0.4; ww=2; ct=2; wtd=25; whd=100; axd=10; rskd=22; rskh=7; shd=5; shh=3; snd=8; snh=3; ag=1; animate=1; mgd=[3,3,19]; HBArrayCount=5; sg = 3; pi = 3.1415927; hw=360/(HBArrayCount*4); wsj=(pi*id) / (HBArrayCount*2*3); wsa=(wsj-ww) / (pi*id) * 360; module sliced_trapezium(or=id){ polygon([[id/4 * co...
glb/cad_a5d9a2c4c90a.glb
Create a Halbach Effect Motor/Generator consisting of two primary components: a magnet holder and a wire holder. First, construct the magnet holder. Create a cylindrical base with a diameter of 53.6mm (inner diameter 55mm minus air gaps) and a height of 12.5mm. Center a vertical axle hole with a diameter of 6.8mm. Aro...
id=55; xw=0.4; ww=2; ct=2; wtd=25; whd=100; axd=6; rskd=22; rskh=7; shd=5; shh=15; ag=1.5; animate=1; mgd=[5,5,25]; HBArrayCount=5; sg = 3; pi = 3.1415927; hw=360/(HBArrayCount*4); wsj=(pi*id) / (HBArrayCount*2*3); wsa=(wsj-ww) / (pi*id) * 360; module sliced_trapezium(or=id){ polygon([[id/4 * cos(-wsa/2), i...
glb/cad_eacdb5ac4f4b.glb
Create a Hex Pastry Roller consisting of a central cylinder with a radius of approximately 17.32mm and a height of 80mm. Wrap a repeating pattern of raised hexagonal ridges around the surface of the cylinder. Each hexagon in the pattern should have a radius of 20mm. To form the ridges, create a series of small, four-...
pr=20; pi=3.1415927; cr=(3*pr/sin(60))/(2*pi); function flatten(pointArray, done=0, res=[]) = (done == len(pointArray)) ? res : flatten(pointArray=pointArray, done=done+1, res=concat(res,pointArray[done])); function c3D(tPoints) = (len(tPoints[0]) < 3) ? tPoints * [[1,0,0],...
glb/cad_e88b36d46369.glb
Create a Scalpel Holder by constructing a flat, elongated handle with a total length of 100mm and a width of 10mm. The main body should be a rounded rectangular prism with semi-circular ends of 10mm diameter. At one end, integrate a specialized blade attachment slot. This slot begins with a circular opening 4mm in diam...
hl=100; hw=10; bja=30; sst=10; s1d=1.5; s2d=4; bl=32; xw=0.4; difference(){ linear_extrude(height=hw/2){ hull(){ circle(d=hw, $fn=30); translate([hl,0]) circle(d=hw, $fn=30); } hull(){ circle(d=hw, $fn=30); translate([-sst,0]) circle(d=s2d, $f...
glb/cad_9cd0daf00ea9.glb
Create a Scalpel Holder by starting with a main handle body that is 100mm long and 10mm wide. The handle should have a semi-cylindrical profile with rounded ends. At one end of the handle, create a blade attachment slot. This slot begins 13.5mm from the center of the handle's end radius and extends 7mm further outward....
hl=100; hw=10; bja=30; sst=13.5; s1d=1; s2d=2.5; bsl=7; xw=0.4; difference(){ linear_extrude(height=hw/2){ hull(){ circle(d=hw, $fn=30); translate([hl,0]) circle(d=hw, $fn=30); } hull(){ circle(d=hw, $fn=30); translate([-sst,0]) circle(d=s2d, ...
glb/cad_46b222efe728.glb
Create a 3D model of the Ihrie Irish tSNE plots. Construct two identical sets of elements, each consisting of a base surface and two text labels. For each set, create a surface based on a tSNE plot image scaled to 138mm in width and depth, with a thickness of 0.3mm. On this surface, place two extruded text labels, each...
wd=138; difference(){ union(){ translate([wd/2+5,wd/2+5,0]){ translate([-wd/2,-wd/2,0]) scale([1,1,0.3]) surface("/home/grinja/models/tSNE/tSNE_A_1-2merge_highGamma.png"); translate([0,-wd/2+2.5,0.5]) linear_extrude(height=18){ text("tSNE1", font="Linux Libertine:style=Bold", size=12, halign="c...
glb/cad_725dc3527f17.glb
Create a Rotated Polygon Thingy consisting of two identical mirrored halves. For one half, start with a 50mm radius profile. Generate a solid by rotating a series of 1mm diameter circles around a central axis; these circles are positioned at the outer radius, spaced to form a 6-sided polygon pattern. Use a hull operati...
edges = 6; radius = 50; rotate_count = 2; edge_diameter = 1; scoop_diameter = 16; scoop = true; axle_diameter = 10; axle_depth = 10; module ignore_variables(){ } ea = 360 / edges; eo = ((edges/2)-1) * ea/2; xw = 0.35; epts = [for(i = [0:(edges/2-0.25)]) [cos(i*ea-eo),sin(i*ea-eo)]]; module halfSlice(){ differen...
glb/cad_f9b9c532579a.glb
Create a Hearty Magnetic Rack for microcentrifuge tubes. The main body is a block with a width of 15mm and a base offset of 3mm. At the center, create a vertical rectangular slot to house a magnet measuring 25mm in height, 12.5mm in width, and 3.5mm in thickness. This slot should be accessible from the bottom of the ...
tubeCount=1; th=25; td=10.5; tbh=15; tbd=5.5; bw=5.5; cw=15; mhd=[[12.7,6.35,3.175], [18.8,11.5,3.175], [12,5,2], [25,12.5,3.5] ]; magnet_type=3; mh=mhd[magnet_type][0]; mw=mhd[magnet_type][1]; mt=mhd[magnet_type][2]; ww=1.5; xw=0.35; tba=atan((td-tbd)/(2*tbh)); txa=7; ma=tba; bo=ww*2; modul...
glb/cad_5aa56732d67a.glb
Create a Hearty Magnetic Rack designed to hold six microcentrifuge tubes. The main body consists of six repeating cells, each 14mm wide. For each cell, create a solid block that is 14mm wide, 35mm high, and approximately 17.5mm deep. From this block, carve out a central tube cavity. This cavity starts with a spherica...
tubeCount=6; angledTube=false; angledMagnet=true; includeBase=false; th=35; td=10.5; tbh=(angledTube || angledMagnet) ? 15 : 0; tbd=(angledTube || angledMagnet) ? 5 : 2; bw=5.5; sw=6.75; sd=12; cw=14; mh=12.7; mw=6.35; mt=3.175; ww=1.5; xw=0.35; tba=atan((td-tbd)/(2*tbh)); ea=(angledMagnet) ? tba : 0; ta=(angledTub...
glb/cad_533ace991a2b.glb
Create a bolt with a hexagonal head and a threaded shaft. Start by constructing a hexagonal base with a flat-to-flat width of 16mm and a height of 8mm. From the center of this base, extend a cylindrical shaft with a major diameter of 10mm and a total length of 40mm. Apply a metric screw thread to the shaft with a pit...
use <path_extrude.scad>; xw=0.4; il=24; fl=30; cr=2; fh=8; ww=1; mXlength=40+fh+xw; mXD=10; bD=16; mXP=1.5; mXDmin=mXD - 5*sqrt(3)/8*mXP; mXDp=mXD - 3*sqrt(3)/8*mXP; mXH=sqrt(3)/2 * mXP; mXR=mXH/(mXP/2); mXppr=24; mXloops=mXlength/mXP; mXtid=mXD-mXP; type="bolt"; mXmyPoints = [[mXH*3/8-xw,-mXP/16], [mXH*3/8-xw,mXP/1...
glb/cad_d6e23bdd380c.glb
Create a Scooping Cat Feeder consisting of three distinct geometric components. First, create two identical trefoil knots. Each knot is formed by extruding an octagonal profile along a trefoil path. The profile should be a regular octagon with a diameter of 4mm. The extrusion must follow the mathematical path of a tr...
function project(p1, c1, n1) = p1 - (n1 * (p1 - c1)) * n1 / (n1 * n1); function getAngle(p1, c1, p2) = acos(((p1-c1)*(p1-c1) + (p2-c1)*(p2-c1) - (p1-p2)*(p1-p2)) / (2*norm(p1-c1)*norm(p2-c1))); module line3D(tp1,tp2, tk=1, dp=1){ p1 = c3D(tp1); p2 = c3D(tp2); sRot = (rToS(p1-p2)); ll =...
glb/cad_293f5f675345.glb
Create a Scooping Cat Feeder consisting of a central cylindrical hub and radiating arms. Start by creating a main outer ring with an outer diameter of 82mm, an inner diameter of 78mm, and a height of 20mm. In the center of this ring, create a hollow circular hole with a diameter of 12mm. From this central hub, extend ...
wd=80; ad=20; ww=2; wr=50; hd=10; ll=5; xw = 0.4; pi=3.141592654; curvel = [for(r = [(wd/wr+ww/2):(wd/(wr*2)):(wd/2+ww)]) [r * cos(-r/(wd/2) * 120-(180*ww/(pi*1.5*r))), r * sin(-r/(wd/2) * 120-(180*ww/(pi*1.5*r)))]]; curver = [for(r = [(wd/2+ww):(-wd/(wr*2)):(wd/wr+ww/2)]) [r * cos(-r/(wd/2...
glb/cad_68e2db39bf78.glb
Create a parametric braille keycap for a Cherry MX switch. Start by constructing the main keycap body as a rectangular block with a width and depth of 18mm and a height of 11.5mm. Smooth the upper edges of the keycap with a 2mm radius. At the base, create a circular switch holder to accommodate standard and low-profil...
sf=18 / 23; wd=18; dp=18; xw=0.2; useSprue=true; sprueHeight=2; ht=11.5; crt = 1.17; crl = 4.1; hd=6-xw; rotate(90) scale([1,1,sf]){ translate([dp/2,wd/2,0]) union() { difference(){ hull(){ translate([-2,-2,-2]) cylinder(d=4, h=2, $fn=48); translate([-2,-(wd-2),-2]) c...
glb/cad_00544a9bd9f1.glb
Create a Door-able Stop, a wedge-shaped doorstop designed as a stylized human figure. The main body is a wide, low-profile wedge. The base consists of two symmetrical legs extending backward, each 40mm long and 6mm thick, separated by a 10mm gap. These legs merge into a central body that is 20mm wide, 30mm long, and 20...
type = "GameStop"; ll=40; lt=6; ls=10; bw=20; bl=30; bh=20; aa=60; al=30; sh=20; nh=5; hd=20; wa=10; wsh=2; na=55; cd=lt/4; cw=cd * 3; echo(wa); $fn=24; scale([type=="GameStop"?2:1,type=="GameStop"?2:1,type=="GameStop"?3:1]){ difference(){ union(){ for(yi = [1,-1]) hull(){ translate(...
glb/cad_a3bf1a24add2.glb
Create a DNA Bottle Opener consisting of a functional opener tool integrated with a decorative double-helix structure. First, construct the bottle opener head. Create a flat, heavy-duty metal-style plate with a circular cutout and a precise notch on the edge to grip a bottle cap. Position a small cylindrical hole adj...
function project(p1, c1, n1) = p1 - (n1 * (p1 - c1)) * n1 / (n1 * n1); function getAngle(p1, c1, p2) = acos(((p1-c1)*(p1-c1) + (p2-c1)*(p2-c1) - (p1-p2)*(p1-p2)) / (2*norm(p1-c1)*norm(p2-c1))); module line3D(tp1,tp2, tk=1, dp=1){ p1 = c3D(tp1); p2 = c3D(tp2); sRot = (rToS(p1-p2)); ll =...
glb/cad_9c1ff41cb1c8.glb
Create a Parameterized Rugged Box consisting of a bottom tub and a matching lid. For the bottom tub, create a rectangular hollow container with an inner width of 120mm and an inner length of 100mm. The walls should have a thickness of 3.5mm and a total height of 30mm. The exterior corners of the tub should be rounded...
width = 120; depth = 100; thickness = 3.5; heightTOP = 20; heightBOT = 30; boltLength = 30; widthCLIP = boltLength/2-0.6; widthCLIPsupport = boltLength/4; diameterCLIP = 3; heightjoins=2; disableHINGE = 0; enableTOPinside = 0; enableBOTinside = 0; arangeForPrint = 0; DXFexport = 0; openingAngle = 120; ...
glb/cad_03077e4c3a9d.glb
Create a Petri Dish Stencil by starting with a thin circular disc 1.25mm thick with a diameter of approximately 56.2mm. On the face of this disc, carve a series of parallel horizontal slots that are 2mm wide and 8mm apart, spanning the width of the circle to create a grid. To allow for easy removal and handling, crea...
pd=55; ww=4; tw=4; ls=8; xw=0.4; ih=1.25; lw=2; pww=0.6; sigma=0.01; union() { color("orange") linear_extrude(height=ih){ difference(){ union(){ circle(d=pd+pww+lw*2+xw, $fn=120); } minkowski(){ intersection(){ circle(d...
glb/cad_e3e8dcca17e4.glb
Create a Dual-action Turbine magnet holder. Start with a circular base disk with a diameter of 100mm and a height of 1mm. At the center of the disk, create a cylindrical bearing holder with an outer diameter of 22mm and a height of 7mm. Inside this holder, create a central hole for a motor shaft with a diameter of 10...
component = "magnets"; direction = "P"; rd=100; hd=1; xw=0.4; ww=(component == "blade") ? 1 : 1 + xw; $fn=120; bh=1; msd=10; msl=10; shd=4; shds=3.5; ssds=9; brd=22; brt=7; axd=2; axsd=8; aMin = 0; aMax = 72; dAng = 1; magnetCount = 18; magnetDims = [5,5,5]; magnetCycles = magnetCount / 4; sigma = 0.01; function...
glb/cad_58af75c456a1.glb
Create a Dual-action Turbine base. Start with a main cylindrical disk with a diameter of 106.4mm and a height of 1.5mm. At the center of the disk, create a vertical cylindrical hole with a diameter of 10.8mm and a height of 10mm to accommodate a motor shaft. Around this center, place six screw holes with a diameter o...
tbd=100; bh=1.5; xw=0.4; sigma=0.01; ww=1; component="base"; shd=4; msd=10; msl=10; function triWave(t) = let(tNorm = abs(t/360) % 1) 1 - abs(tNorm * 4 - 2); function octWave(t, delta) = let(y = triWave(t)) (abs(y) > abs(delta)) ? sign(y) * delta : y*sign(delta); hMax = 10; adjustFn = function(x, h) (h < 0)...
glb/cad_4b4cdb82f751.glb
Create a Beat Whistle consisting of a rectangular main body with a rounded end. The body is 11mm high and 6mm wide. The main structure is a block that extends from x = -25mm to x = 26.6mm, with a width of 11mm (from y = -5mm to y = 6mm). At the right end (x = 26.6mm), add a cylindrical protrusion with a radius of 5mm. ...
xw=0.4; gw=2; hw=5; hh=6; cl=[26.6,25]; ml=25; clMax=(cl[0]>cl[1])?cl[0]:cl[1]; clMin=(cl[0]>cl[1])?cl[1]:cl[0]; difference(){ color("blue") minkowski(){ translate([0,0,gw/2]) linear_extrude(height=hh+gw){ hull(){ translate([clMax,-gw,0]) square(gw, center=true); ...
glb/cad_23cde3004261.glb
Create a stubby ice scoop consisting of a cylindrical basin and a handle. The basin is a hollow cylinder with an outer diameter of 65mm, a height of 100mm, and wall thickness of 3mm. The bottom of the basin is not flat; it is carved out by a large sphere to create a curved, scoop-like profile. Attached to the side of ...
glass_id=65; scoop_len=100; handle_len=62; wall_thick=3; handle_thick=6; handle_wide=10; handle_ext=20; module scoop_handle() { difference() { union() { cylinder(r=glass_id/2,h=handle_len,$fn=64); hull() { translate([0,-(handle_wide-handle_thick),handle_thick/2]) rot...
glb/cad_177fd614e393.glb
Create a cupboard door knob by revolving a specific profile around a central vertical axis. The profile begins at the base with a flat circular bottom of radius 15.5mm. From this base, the shape curves upward and outward to a maximum radius of 20mm, then curves back inward to form a rounded, dome-like top. The total he...
hw=4; ph=28; prMax=20; prMin=11; pcHt=28; xw=0.4; bo=4; pi=3.14159; function getcr(bw, bh) = (((bw)/2)*((bw)/2) - bh*bh) / (2*bh) + bh; ca = atan(ph / ((prMax - prMin)*pi))+2; rc = (prMax + prMin) / 2; rs = rc / cos(ca); function form(t) = (t < 1) ? [(-sin(t * 360) + 1) * (prMax - prMin)/2 + prMin, t*p...
glb/cad_157d8b578524.glb
Create a chair foot designed for a square tube. Start with a square base plate measuring 22mm by 22mm with a thickness of 3mm and rounded corners with a 2mm radius. Centered on this base, add a hollow square sleeve that extends upwards. The outer dimensions of this sleeve are 18.5mm by 18.5mm, with a wall thickness of ...
xw=0.4; fwo=22; tko=3; fwi=18.5; tki=1; hti=17; cr=2; fang=10; color("red") translate([-fwo/2,-fwo/2]) intersection(){ translate([cr,cr,cr]) minkowski(){ cube([fwo-cr*2,fwo-cr*2,tko]); sphere(r=cr,$fn=30); } cube([fwo+xw,fwo+xw,tko]); } translate([0,(fwo-fwi) * sin(fang),0]) difference(){ rotate([fang,0,0...
glb/cad_f344736e4f55.glb
Create a Face Pad Holder by constructing a hollow cylinder with an outer diameter of 59.4mm, an inner diameter of 57mm, and a total height of 112mm, resulting in a wall thickness of 1.2mm. Cut a vertical slot 18mm wide through the entire height of the cylinder to allow access. Perforate the walls with a series of 10m...
diameter=57; height=112; thickness=1.2; hole_dia=10; hole_angle=50; hole_num=10; hole_fn1=3; hole_fn2=6; gap_thickness=3; gap_width=15; $fn=100; holder_complete(); module holder_complete(){ difference(){ add_holes(); translate([0,diameter/2-thickness*2,height/2+thickness]) cube([gap_width+gap_thickness,thickness*6,h...
glb/cad_d77e97a0f040.glb
Create an Incubator Latch consisting of a main body and a cylindrical mounting head. Start by creating a flat, elongated base with a total length of 50mm. The base should taper from a wide, rounded end to a narrower section. At the narrow end, integrate a cylindrical head with a diameter of 19mm and a height of 8mm. T...
lt=65; wd=20; xlt=30; xwd=18; phod=8; phid=3; sang=30; tk=6; bh=1; lwd=14; lad=19; lah=8; llt=25; lch=1.5; sd=3.5; mxd=8; mxh=5; ghd=8; ghx=2; ph=2; pw=3; pbo=3; hl=50; xw=0.25; module mimr(){ linear_extrude(height=1.5){ polygon([[0,0], [0,10], [1.5,10], [3.5,6], [4,6], [6,10], [7.5,10], [7.5,0], [6,0]...
glb/cad_af0298dfadca.glb
Create an Incubator Latch consisting of a central threaded rod. Start with a cylinder that has a diameter of 9.6mm and a total height of 20mm. Cut a helical trapezoidal groove into the surface of the cylinder to create threads. The thread pitch is 1.5mm. The trapezoid profile for the groove should have a width of 0.4...
function flatten(l) = [ for (a = l) for (b = a) b ]; function mapfuncConstantX(shape, pathPoint) = [ for(i = [0 : (len(shape) - 1)]) [0, shape[i][0], shape[i][1]] + pathPoint ]; function mapfuncConstantY(shape, pathPoint) = [ for(i = [0 : (len(shape) - 1)]) [shape[i][1], 0, shape[i][0]] + pathPoin...
glb/cad_0a0b97479321.glb
Create a Chilly Bin storage container and lid. For the main bin, construct a rectangular block with a width of 50mm, length of 60mm, and height of 50mm. Apply a fillet radius of 3mm to all exterior edges. Hollow out the center of this block to create a cavity, leaving a wall thickness of 10mm on all sides and the botto...
bw = 50; bh = 50; bl = 60; ww = 10; fr = 3; lp = 0.2; lx = ww/2; xw = 0.35; module box() { difference(){ minkowski(){ cube([bw,bl,bh], center = true); sphere(r=fr); } } } translate([-bw*0.75,0,0]) difference(){ difference(){ box(); translate([0,0,ww/2]) cube([bw-ww+xw,bl-ww+xw,bh-ww+xw], center = ...
glb/cad_8961a24b824f.glb
Create a Noise Maker consisting of a central gear mechanism housed within a rectangular frame. Start by creating a gear wheel with a radius of 8mm, 8 teeth, and a thickness of 3mm. Attach a cylindrical handle to the top of the gear with a radius of 5mm and a height of 60mm. Construct a surrounding rectangular frame wi...
or8 = 10.940; gr8 = 8.000; pt8 = 6.283; gt8 = 8.000; xw = 0.35; gw = 1.5; hh = 3; hr = 5; sh = 20; hdh = 60; ww = 2; sw = ww; spw = 0.6; includeSupports = true; color("red"){ cylinder(r=hr,h=hh+xw); render() translate([0,0,hh]){ intersection(){ rotate([0,0,360 / (gt8*2)]) linear_extrude(height=sh) gear8(); ...
glb/cad_ae90ce56141a.glb
Create a Radio/Nav Panel for a flight simulator. Start with a rectangular base plate measuring 174mm in width, 80mm in depth, and 1mm in height. Construct a surrounding enclosure by adding four walls, each 10mm high. Two walls run the full 80mm depth at the left and right edges, and two walls run the full 174mm width...
rh = 115; rv = 14; dh = 8; dv = 25-1; but = 4/2; bv = 50; bh = 178/2; ld = 14; wd = 62; hd = 15; wv = 79; wh = 0; hr = 4.2/2; hh = 0; hv = 0; difference(){ translate([0, wh, 1]) cube([1, 80, 10]); translate([0, 20, 5.5]) rotate([0,90,0]) cylinder(h=4, r=4/2, center=true); translate([0, 60...
glb/cad_af5eedab726d.glb
Create a toothbrush holder by constructing a hollow vertical cylinder. The outer wall should have a diameter of 50mm and a total height of 90mm. To create the interior cavity, remove a concentric cylinder from the center with a diameter of 46mm and a height of 86mm. Position this inner cutout so that it is shifted 2mm ...
$fn=100; d_dira=50; z_objektu=90; difference() { cylinder(h=z_objektu,r=d_dira/2,center=true); translate([0,0,2])cylinder(h=z_objektu,r=d_dira/2-2,center=true); }
glb/cad_a76dfadcc498.glb
Create a toothbrush holder by constructing a hollow cylinder with an outer diameter of 40mm and a total height of 60mm. The walls of the cylinder should be 2mm thick. To achieve this, create a solid cylinder with a radius of 20mm and a height of 60mm, then remove a concentric inner cylinder with a radius of 18mm and a ...
$fn=100; d_dira=40; z_objektu=60; difference() { cylinder(h=z_objektu,r=d_dira/2,center=true); translate([0,0,2])cylinder(h=z_objektu,r=d_dira/2-2,center=true); }
glb/cad_b1e4b4a5c34a.glb
Create a toothbrush and toothpaste holder consisting of a rectangular base with dimensions 245mm in width, 120mm in depth, and 20mm in height. From this base, remove several cylindrical sections to create storage holes. On the left side, create a large circular cutout with a radius of 25mm and a depth of 10mm, and an...
$fn=100; x_objektu=245; y_objektu=120; z_objektu=20; z_kartacek=40; z_kelimek=10; r_kelimek=52; r_kelimek_2=42; r_kelimek_3=50; r_kartacek=20; r_kartacek_vyrez=10; r_pasta=27; r_pasta_vyrez=28; z_pasta=30; dira_posun=102; difference() { cube([x_objektu,y_objektu,z_objektu],center=true); color("green")transla...
glb/cad_82a9f6be3062.glb
Create a wireless charging dock for an iPhone X. The main body is a rectangular block with rounded corners, measuring 73.2mm in width, 144.4mm in length, and 9.9mm in height. The corners should have a radius of 11.81mm. Carve a central cavity into the block to fit the phone, based on the iPhone X dimensions of 70.94mm...
include <tomasf.scad> module symmetric(dimensions) { on = [-1,1]; off = [1]; for (xs = dimensions[0] ? on : off) for (ys = dimensions[1] ? on : off) for (zs = dimensions[2] ? on : off) scale([xs, ys, zs]) children(); } module semiCircleSlice(d) rotate([90, 0, 0]) linear_extrude(height=0.01) int...
glb/cad_b7644f6c9169.glb
Create a wireless charging dock for an iPhone X. The main body is a rounded cuboid base with a width of 84.5mm, a length of 115.5mm, and a height of 11.5mm, featuring corner radii of 10mm. Cut a phone-shaped void into the top of the base, angled at 20 degrees, to hold the device. Within the base, create a rectangular...
$fa=0.4; $fs=0.4; module xyRoundedCuboid(size, radius=2) { height = size[2]; radii = [for (r = (len(radius) == undef) ? [radius, radius, radius, radius] : radius) max(r, 1/100) ]; hull() { translate([radii[0], radii[0]]) cylinder(r=radii[0], h=height); translate([size[0]-radii[1], radii[1]]) cylinder(...
glb/cad_b82066c0e086.glb
Create a Miele floor brush wall bracket. Start with a main block that is 20mm wide, 41.8mm long, and approximately 20mm high. The front face of the block should be angled backward at 41 degrees. Carve a central vertical channel through the block to hold the brush head. This channel begins at the bottom with a width of...
$fn=36; twa=14.0; twb=16.0; tha=4.5; thb=10; ts=10; tl=35+10; ex=0.1; angle=35+6; ba=38; bw=20; bl=35+6.8; gk=sin(angle)*bl; ak=cos(angle)*bl; echo(gk=gk, ak=ak); bb=13+5; bh=tha+2; off=20-8; %translate([-5,bl-4,0]) cube([10,10,50]); difference() { hull() { difference(){ translate([0,sin(angle)*bh,off+1.5...
glb/cad_c8586ca73c55.glb
Create a Puzzle Cube for SLA consisting of a central core and an outer box. The core is a cylinder with a height of 48.2mm and a diameter of 40.5mm. It features a complex internal geometry including a central hollow payload cavity with a diameter of 6mm and a height of 48.2mm. The core's exterior is defined by a seri...
part = "core"; gen=undef; scl = 1000; cube_w_ = 76.2; cube_w = cube_w_*scl; core_h_=48.2; core_h=scl*core_h_; core_h2 = (cube_w-core_h)/2; pegs=2; outer_d_ = 40.5; outer_d = scl*outer_d_; wall_ = 3.1; wall = scl*wall_; Negative = 0; draft = 0; hollow = 1; section = 0; support = 0; altcore = 1; spring_d_ = 4....
glb/cad_6c697907ff2a.glb
Create a Customizable Surprise Cube, which is a hollowed-out calibration cube with a hinged lid. Start by creating a solid cube with dimensions 20mm x 20mm x 20mm. Hollow out the center of the cube to create a shell with a wall thickness of 2mm. To allow the cube to open, create a midline cut along the X-axis with a ...
part="hollow"; cal=1; sd=0; font="Liberation Mono:style=Bold"; size=0.8; a=1.3; d=1; egg_w=20; egg_h=20; off=0; l=3; lw=4; m=5; n=4; r=3.2; p=1.2; w=3.2; tol=0.4; t=2; layer_h=0.2; $fn=96; AT=1/64; ST=2*AT; difference(){ egg(egg_w,egg_h,0,off); difference(){ translate([-egg_w/2,-t...
glb/cad_2f599e365baa.glb
Create a Gate Perch consisting of two parallel horizontal rods connected by vertical supports. Start by creating two main horizontal perches, each a cylinder with a diameter of 9.5mm and a length of 103mm. Position these perches parallel to each other with a center-to-center spacing of 30mm. At each end of the perches...
perch_diameter = 9.5; perch_width = 103; perch_spacing = 30; perch_count = 2; hook_height = 7.5; bar_thickness = 3; lesser_bar_thickness = 1; lock_nub = 1; bar_offset = 1; extra_strength = 0; base_cut = 0.6; side_hooks = 1; $fn=24; difference(){ union(){ for (j=[0:1])hull() for (i=[0:1]) trans...
glb/cad_debba12f1d2f.glb
Create an iceberg display platform by starting with a semi-circular base. This base is formed by rotating a polygon with vertices at [0,0], [10,0], [7,1.2], and [0,1.2] 180 degrees around the Z-axis, resulting in a rounded, wedge-like slab with a maximum thickness of 12mm. From this base, remove several cylindrical se...
echo(version=version()); $fn=200; scale(10,10,10) { difference() { group() { color("magenta") translate([0,0,0]){ rotate_extrude(angle=180) polygon(points=[[0,0],[10,0],[7,1.2],[0,1.2]]); } } translate([5,5,0.65]){ cylinder(h=10,d=2.5,center=false); } tra...
glb/cad_b009de1e62b4.glb
Create a simple cable clip by starting with a rectangular base block measuring 40mm in length, 8mm in width, and 8mm in height. Centered along the length of this block, carve out six identical circular channels to hold cables. Each channel should be a cylinder with a radius of 3mm and a height of 8mm, positioned to cut...
$fs = $preview ? 1 : 0.05; $fa = $preview ? 1 : 0.05; cable_dim = 6; gap = 2; cables = 6; length = gap+(gap+cable_dim)*cables; width = cable_dim + gap; difference() { cube([length, width, width], center=true); union() { for (dx=[gap+cable_dim/2:gap+cable_dim:length-gap]) translate([dx - l...
glb/cad_656b4780a07d.glb
Create a round miniature base with a total height of 4mm and a top diameter of 25mm. The sides should taper slightly inward toward the bottom, where the diameter is 22mm. From the top surface, carve out a centered cylindrical depression that is 3mm deep and has a diameter of 22mm, leaving a 1.5mm thick outer rim. In th...
width=25; baseThickness=1; baseHeight=4; magnetDiameter=6; magnetRadius=magnetDiameter/2 + 0.15; magnetHeight=1; $fn=100; difference() { cylinder(h=baseHeight, r2=width/2, r1=(width-3)/2); translate([0,0,baseHeight-baseThickness-0.1]) cylinder(h=baseHeight/2, r2=(width-(baseThickness*2))/2, r1=(width-(baseThickne...
glb/cad_20f3c3046827.glb
Create an angular cabinet handle. Start with a main body that is 15mm wide, 65mm long, and 25mm high. Apply a 2mm fillet radius to all exterior edges. To create the handle's grip area, remove a central rectangular section from the top and middle, leaving a recessed opening that is 15mm wide, 55mm long, and 10mm high. F...
width_y = 15; width_x = 15; height = 25; length = 50; handle_height = 10; edge_radius = 2; hole_diameter = 3; hole_depth = 10; fn = 30; module angular_handle(edge_radius, width_y, width_x, height, length, handle_height, hole_diameter, hole_depth, fn){ difference(){ minkowski(){ sphere(r = edge_...
glb/cad_1be9cd64c8b2.glb
Create a Petbank CY-109 Autofeeder Mount. Start with a central cylindrical base 120mm in diameter and 5mm thick. On the left and right sides of this base, add two rectangular blocks, each 10mm wide, 60mm deep, and 60mm high, positioned symmetrically. Between these blocks, add two smaller vertical pillars, each 5mm wide...
$fa = 5; $fs = 1; module right_triangle(side1,side2,corner_radius,triangle_height){ translate([corner_radius,corner_radius,0]){ hull(){ cylinder(r=corner_radius,h=triangle_height); translate([side1 - corner_radius * 2,0,0])cylinder(r=corner_radius,h=triangle_height); translate([0,side2 - corn...
glb/cad_1c2a896cc9c1.glb
Create a prescription bottle tray by constructing a hollow rectangular box. Start with a solid outer rectangular block that is 63.25mm wide, 239.75mm deep, and 47mm high. From the center of this block, remove a smaller rectangular volume to create the interior cavity, leaving a wall thickness of 2mm on all four sides a...
$fn = 25; printerx = 220; printery = 220; diameter = 59.25; wall_thickness = 2; Width = 1; Depth = 3; Tray_height = 45; difference(){ cube([diameter*Width+wall_thickness*2,diameter*Depth+wall_thickness*2,Tray_height+wall_thickness],center=true); translate([0,0,wall_thickness]) cube([diameter*Width,diameter*Dep...
glb/cad_4a4d4d305199.glb
Create a TPU sock for a machine leveling foot by constructing a hollowed-out conical base. Start with a truncated cone that is 10mm high, centered vertically, with a bottom radius of 25mm and a top radius of 22mm. On top of this cone, add a cylinder with a radius of 22mm and a height of 5.6mm, centered at a vertical of...
$fn=64; difference() { union() { cylinder(h=10,r1=25,r2=22,center=true); translate([0,0,7.8]) cylinder(h=5.6,r=22,center=true); } translate([0,0,9.9]) cylinder(h=10,r=20.5,center=true); }
glb/cad_2b52895c6368.glb
Create a PC power/reset button holder consisting of two separate parts: a main cylindrical holder and a removable button cap. For the holder, create a cylinder with a total height of 16mm and a radius of 8.2mm. Add a small 2mm thick flange at the top with a radius of 9.2mm. Carve a square central shaft out of the cyl...
$fn = 256; MainRadius = 16.4 / 2; TotalHeight = 16; ButtonCutSize = 8.5; ButtonTravelCut = 5; ButtonCutRadius = 7; CapSize = ButtonCutSize - 0.5; CapHeight = 1.5; ButtonTipCutX = 2.2; ButtonTipCutY = 3.2; module holder() { difference() { union() { cylinder(TotalHeight, MainRadius, MainR...
glb/cad_93eee5d54b16.glb
Create a rectangular plaque with rounded corners, measuring 80mm wide, 60mm high, and 4mm thick. The corners should have a radius of 5mm. On the front face, extrude the text "Never Applogize For Eating" in a bold sans-serif font. The text should be 10mm high and arranged in three left-aligned rows, starting from a bot...
text_size = 10; text_font = "DejaVu Sans:style=bold"; Plaques = [ ["Never", text_size], ["Applogize", text_size], ["For Eating", text_size] ]; plt_wd = 80.0; plt_ht = 60.0; plt_th = 4.0; plt_rad = 5.0; BotRow = -22; RowHght = text_size + 3.0; pos = [for( i=[l...
glb/cad_39cd56a19f9b.glb
Create a set of nine rectangular plaques for a "Wheel of Whatever" decision maker. Each plaque should have a base thickness of 4mm, a width of 55mm, and a height of 17mm. The four corners of each plaque must be chamfered at 45 degrees. For each plaque, center a text label on the top surface with a height of 1mm. The l...
text_size = 8; text_font = "DejaVu Sans:style=bold"; Plaques = [ ["FRENCH", text_size], ["THAI", text_size], ["OTHER", text_size-1], ["MEXICAN", text_size-1.0], ["ITALIAN", text_size],["GREEK", text_size], ["SPANISH", text_size], ["LEBANESE", text_size-1.0], ["IND...
glb/cad_124ca85addb2.glb