Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a personalized Christmas bauble decoration. Start by creating a main circular ring with an outer diameter of 78mm and a wall thickness of 7mm. At the top of this ring, add a hanger consisting of a small circular loop with an 8mm inner hole and a thickness of 7mm, integrated into the ring's structure. In the cen...
Text = "Codey"; Font = "Liberation Sans:style=Bold"; Other_Font = ""; Font_Size = 20; Letter_Spacing = 0.79; Text_H_Offset = -2; Text_V_Offset = 0; Text_Rotation = 0; Text_Underline = 0; Text_Underline_Thickness = 3; Text_Underline_Offset = -6; Text_Overline = 0; Text_Overline_Thickness = 3; Text_Overline_...
glb/cad_bad9892cfb2e.glb
Create a symmetrical pluggable container consisting of a main body and a lid, both based on a 6-sided regular polygon with a total diameter and height of 100mm. The walls of the container should be 1.6mm thick with 6mm fillets on the edges. Construct the main body as a hollow hexagonal prism with a height of 100mm. Th...
$fn=25; numSides=6; totalLen=100; totalHei=100.0; filletRad=6.0; wallThic=1.6; lidHei=25.0; lidOve=10.0; clearence=0.08; minThic=0.05; cutSize=max(totalLen,totalHei); assert(lidHei<totalHei, "ERROR: lid cannot be taller than rest of body!"); assert(lidOve<lidHei, "ERROR: lid overlap cannot be greater than l...
glb/cad_3f5b05ba1120.glb
Create a rim dynamo conversion wheel by constructing a central disc with a total thickness of 6mm. The main body is a cylinder with a radius of 19mm and a height of 6mm, though the top and bottom faces are slightly tapered, each reducing in radius by 1.5mm over a height of 3mm. Through the center of this disc, create a...
ri=9.4/2; ra=19; d=6; d_o_ring=3; $fn=75; difference() { union() { for(rot=[0,180]) { rotate([rot,0,0]) cylinder(r1=ra, r2=ra-(d/4), h=d/2); } } rotate_extrude() translate([ra-(d_o_ring/8),0,0]) circle(r=d_o_ring/2,$fn=25); cylinder(r=ri, h=2*d, center=true,$fn=6); }
glb/cad_9e5c04897645.glb
Create a cylindrical projection tool consisting of a solid vertical cylinder with a radius of 40mm and a height of 140mm. The cylinder should be rendered with a facet resolution of 64 sides to ensure a smooth circular profile.
use <handyfunctions.scad>; module wrap_cylinder(r, extrusion, segmentSize=1, minAngle=0, maxAngle=360, minHeight=0, maxHeight=1000) { for (theta = [minAngle:segmentSize:(maxAngle-segmentSize)]) { rz(theta) rotate_extrude(angle=segmentSize) { dx(r) projection(cut=true) { dz(theta) rz(90) ry(90) rx(9...
glb/cad_262999e16efa.glb
Create a circuit breaker mount enclosure. Start with a solid rectangular block measuring 21.2mm in width, 49.9mm in depth, and 56.2mm in height. Hollow out the center of this block by removing a smaller rectangular volume of 18.8mm by 47.5mm by 55mm, leaving a wall thickness of 1.2mm on all sides, though the top remain...
$fn = 64; idx = 18.8; idy = 47.5; idz = 55.0; wall = 1.2; module catch() { rotate([0,90,0]) difference() { cylinder(h=idx,d=4); translate([-2,0,0]) cube([4,4,idx]); } } module foot() { rotate([-90,0,0]) difference() { cylinder(h=3*wall,d=20); translate ([-5,0,0]) cylinder(h=5*wall,d=5.0);...
glb/cad_6ed6952bfb1c.glb
Create a Raspberry Pi Breadboard Case consisting of a hollow rectangular enclosure with a split-level design to accommodate a PCB and its connectors. The main body has an internal cavity of 86mm by 57mm. The walls are 2mm thick with rounded corners (radius 4mm). Construct the bottom shell as a shallow tray. On the int...
use<write.scad> DRAWfull = 0; DRAWtop = 0; DRAWbottom = 1; DRAWtopinlet = 0; DRAWbottominlet = 0; DRAWpcb = 0; GPIOHOLE = 2; GPIOsize = 2; topframe = false; topinlet = false; topholes = false; holeofs=5; holesiz=2.5; holestep=6; noholes=12; holelen=30; holeangle...
glb/cad_662b13bdf848.glb
Create a railcar bogie designed for H0 scale. The main body is a flat rectangular plate with a length of 21.5mm and a width of 6.6mm. At the center of the top surface, create a vertical mounting hole with a radius of 2mm to accommodate the railcar chassis pin. Position two axle holes on opposite sides of the center, ...
m=1000/32; bogie_dist_between_axies=1.6*m; wheel_cone_margin = 0.4; coupling_type = 2; coupling_length=bogie_dist_between_axies/2+1.6*m; wheel_pin=0; bogie_width_between_wheels_cone=1.95*m; bogie_width_between_wheels_pin=1.94*m; bogie_width_between_wheels = (wheel_pin == 0) ? bogie_width_between_wheels_cone : bog...
glb/cad_977f0abb9fde.glb
Create a terminal strip cover by starting with a rectangular hollow shell. The outer dimensions of the shell should be 77.4mm in length, 24.9mm in width, and 6.2mm in height, with a wall thickness of 1.2mm. At each of the four corners of the base, add a cylindrical mounting post with a diameter of 6mm and a height of...
dimx = 75.0; dimy = 22.5; dimz = 5.0; wall = 1.2; ccx = 66.5; ccy = 7.9; $fn = 32; module posts() { translate([5.5,8,wall]) { translate([0,0,0]) cylinder(h=dimz,d=6); translate([ccx,0,0]) cylinder(h=dimz,d=6); translate([0,ccy,0]) cylinder(h=dimz,d=6); translate([ccx,ccy,0]) cylinder(h=dimz,d=6);...
glb/cad_93fadb52b5b7.glb
Create a "chewie" shirt clip consisting of a textured rectangular base and matching clips. First, construct the main body as a rectangular block 40mm wide, 40mm deep, and 8mm high. Divide this block into two main sections separated by a 10mm wide central gap. On the left section, add a grid of spheres, each 2.5mm in ...
print = 1; width = 40; bar = 4; height=8; thin = 1; gap=10; wall=1; step=5; shape = 2; shape2 = 5; numClips = 4; clipAngle = 1; loose = 0.5; clipSize = bar-loose; clipStep = width/(numClips+1); foldGap = gap/2; clipGap = foldGap+2*bar+2; module clips() { for (y = [0:clipGap:clipGap*(numClips-1)]) { tr...
glb/cad_58a016a3a1dc.glb
Create a parametric ball bearing with an external diameter of 40mm, an internal diameter of 20mm, and a total height of 9mm. The main body is a hollow cylinder (a ring) defined by these diameters and height. Within the wall of this ring, create a circular channel to house balls with a diameter of 6mm. This channel sho...
external_diameter=40; internal_diameter=20; ball_diameter=6; height=9; get_ball_lid = false; input_hole="E"; ball_rows = 1; ball_columns = 1; tolerance=0.4; layer_height = 0.20; wall_thickness = 0.4; round_borders = false; round_factor = 1.20; round_factor_apply = 1 + round_factor/10; fn = 150; top_margin...
glb/cad_26d8cb119d41.glb
Create a Settlers of Catan Scorekeeper board as a rectangular slab measuring 170mm in width, 138mm in length, and 13.5mm in thickness. On the top surface, carve a grid of 66 square holes, arranged in 6 rows of 11 holes each. Each hole must be 5.5mm wide and 5.5mm long, with a depth of 12.5mm. The holes should be spac...
roadwidth = 5.5; roaddepth = 12.5; numplayers = 6; numholes = 11; startingpoints = 2; lanewidth = 12; borderwidth = 5; depth = 13.5; textSize = 7; textboarder = 15; textlocation = 0.59; labels = [ for (i = [0 : 1 : numholes-1]) str(i+startingpoints) ]; echo(labels); union() { difference() { cube([2*bor...
glb/cad_11d0cd224a6f.glb
Create a resource card holder for a board game. The holder consists of a main container with four card slots arranged in a row. The overall outer dimensions of the container are based on a card size of 56mm width, 14mm thickness, and 80mm height. The container walls are 2mm thick. The front wall of the holder should ...
nRows = 4; nCols = 2; function VScale(x, y) = [ x[0] * y[0], x[1] * y[1], x[2] * y[2] ]; module shearAlongZ(x) { multmatrix([ [1,0,0,0], [0,1,x*g(x),0], [0,0,g(x),0] ]) children(); } module shearAlongY(x) { multmatrix([ [1,0,0,0], [0,1,0,0], [0,x,1,0] ...
glb/cad_c9620c317cd8.glb
Create a Circular Gallifreyan Coin by starting with a solid cylinder that has a radius of 32mm and a thickness of 2mm. Engrave a decorative pattern into the top surface of the coin to a depth of 1mm. The pattern consists of a series of geometric symbols arranged in a circle with a radius of 20mm. These symbols are co...
word = "thingiverse"; outer_radius = 32; coin_thickness = 2; pendant_radius = 20; letter_radius = 10; line_thickness = 1; line_height = 1; large_circle_radius = letter_radius; small_circle_radius = letter_radius/4; large_dot_radius = letter_radius/7; small_dot_radius = letter_radius/8; dot_offset = large_circl...
glb/cad_2d8f25c02eba.glb
Create a Bottle Holder consisting of two identical cylindrical tube sections separated by a vertical gap. Each tube is a hollow cylinder with an outer radius of 6.5mm, an inner radius of 5.5mm, and a height of 25mm. For each tube, add a small rectangular brace measuring 5mm in reach, 3mm in width, and 6mm in height, ...
include <common.scad> wallThickness = 2; tubeHeight = 25; tubeTolerance = .5; braceHeight = 6; braceWidth = 3; braceReach = 5; braceEmbedding = .5; supportHeight = 20; outerCylinderRadius = postRadius+tubeTolerance+wallThickness; braceStartingX = outerCylinderRadius-braceEmbedding; tube(); fortyFives(); translate([0...
glb/cad_8fcbe0f4c2c5.glb
Create a Nut and Bolt Construction Kit rectangular plate. Start with a rectangular base that is 2mm thick. The overall dimensions are determined by a grid of 3 holes across and 2 holes down. The spacing between the centers of the holes is 6mm (calculated as the screw diameter of 3mm multiplied by a hole ratio of 2, p...
shape = "plate"; x_holes=3; y_holes= 2; z_holes = 2; angle = 120; thickness = 2; screw_diameter = 3; hole_ratio = 1; cord_diameter = 1.5; clearance = 0.5; round_corners = "yes"; quality = 20; construction_set_part( _shape = shape,...
glb/cad_957267ae37f9.glb
Create a beer holder designed to hang on a fence. Start by creating a main cylindrical shell with an inner diameter of 70mm and an outer diameter of 77mm, with a wall thickness of 3.5mm and a total height of 63.5mm. This cylinder should be open at the top and have a hollow center. On the side of the cylinder, add a re...
innerDiameter=68+2; holeDiameter=25; fenceWidth=20.5; wallThickness=3.5; rounedSize=3; wallHeight=60; cutSize=10; cutDepth=20; cutRounding=20; fn=200; fnInner=100; fnCut=200; outerDiameter=innerDiameter+wallThickness; mountWidth=20; mountHeight=130; mountDepth=8; wallTotalHeight=wallThickness+wallHeight; topHeight=5; m...
glb/cad_c36dfb0339e6.glb
Create a Kettle Plug Mount Cover with a base footprint of 26.75mm by 30.4mm and a total height of 54mm. The main body is a hollowed shell with a wall thickness of 4mm. The top face features a central circular opening with a diameter of 10mm for wire passage. At the top of this wire hole, integrate a strain relief str...
width=26.75; height=30.4; cutWidth=(width-14.4)/2; cutHeight=cutWidth; clearance=0.2; depthSmall=19; depth=40+10; wallSize=4; wireHoleDiameter=10; screwHoleDiameter=3.5; fnWireHole=30; mountHoleHeight=height/2; mountHoleWidth=36/2; diameterMountHole=3+0.5; fnMountHole=30; fnMountHoleWall=30; msNutDiameter=6.08+2*0.35...
glb/cad_bd8f8d6d2334.glb
Create a Nut Integration Test piece. Start by constructing a base shape consisting of a rectangular block with semi-circular ends. The central block is 60mm long, 15mm wide, and 6.9mm high, capped at both ends by hemispheres with a 7.5mm radius to create a pill-shaped slab. Within this slab, create five vertical hole...
msNutDiameter=6.08+2*0.2; msNutHeight=2.4+0.5; fnScrew=50; diameterMountScrew=3+0.5; height=msNutHeight+4; testBlockDiameter=15; distanceTest=msNutDiameter*1.5; testCnt=5; clearanceArray=[-0.2,-0.1,0,0.1,0.2]; echo(msNutHeight+(height-msNutHeight)/2); difference(){ union(){ cylinder(r=testBlockDiameter/2,h...
glb/cad_79fb7f21ec6a.glb
Create a K40 Air Assist with Lens Protection. Start by constructing a main cylindrical mount with an outer diameter of 29mm and a height of 12mm. This mount should have a central hole with a diameter of 26.4mm and a smaller concentric hole at the bottom with a diameter of 5mm. Around the upper perimeter of this mount,...
testOnly=0; lDia=26+0.15*2+0.2*2; lHeiUncut=1.5; lHeiNotch=8.3-0.5; lHeiTop=12; lWallSize=3; lSegCnt=12; lSegNotch=[1,1,1,1,1,1]; lSegAllNotch=1; lSegCut=[0,0,0,0,0,0]; lSegCutWidth=0.5; lNoDia=1.7; lMountDiaOutter=lDia+2.5; lSegCutAngle=atan(lSegCutWidth/(lDia/2+lWallSize)); lSegAngle=360/lSegCnt; lSegInnerAngle=lSe...
glb/cad_065476944e00.glb
Create a parametric pulley holder. Start with a main cylindrical body with a radius of 15.5mm and a height of 15mm, centered on the origin. Hollow out the center of this cylinder with a slightly smaller cylinder of 13.5mm radius to create a thin wall. Add two rectangular blocks to the sides of the main body, each wit...
$fn = 100; pulley_r = 9; pulley_h = 9; spacer = 2; wall = 6; height = pulley_r*2 - 3; rounded = 7; screw_r = 2.5; backscrew_r = 2; module spacer() { translate([0,0,spacer/-2]) rotate_extrude() polygon( points=[[0,0],[screw_r*2,0],[screw_r+.5,spacer],[0,spacer]] ); } difference() { union() { differenc...
glb/cad_e0c74b85e807.glb
Create a webcam arm consisting of two identical connector blocks joined by a central beam. Each connector block is a combination of a cube measuring 12mm wide, 11mm high, and 10mm deep, with a semi-cylindrical cap of 10mm diameter on one end. Each connector features a central 3.6mm diameter hole passing through the hei...
$fa=1; $fs=0.3; length=50; angle=45; pHeight=11; pWidth=10; pRatio=pHeight/pWidth ; gap=2.5; module hole (d,h) { cylinder (d=d,h=h) ; } module M3hole (h) { hole (3.6,h); } module connector () { difference () { union () { translate ([0,0,pWidth/2]) { rotate ([-90,0,0]) { cylin...
glb/cad_f12c817a94dc.glb
Create a webcam arm mount by starting with a solid rectangular block measuring 8mm wide, 30mm deep, and 13mm high. From this base, remove several geometric volumes to create specific cutouts. First, center a cylindrical hole with a radius of 11.75mm and a height of 20mm vertically through the block, starting at a depth...
$fa=1; $fs=0.1; module screwhole() { cylinder (r=1.5,h=20); } module nuthole() { union () { cube ([10,2.5,6]); translate ([5,9,3]) { rotate ([90,0,0]){ cylinder (r=3.5/2,h=10); } } } } module camIC() { cylinder (r=23.5/2, h=20); } module componentGap () { union () { cub...
glb/cad_5337a13a1d63.glb
Create a webcam arm mount consisting of a central base and two symmetrical clamping arms. Start with a rectangular base measuring 32mm wide, 3mm high, and 3mm thick. At each end of the base, center a cylinder with a 3mm diameter that passes through the height of the base. On both the left and right sides of the base, ...
use <MCAD/regular_shapes.scad> use <nutsnbolts/cyl_head_bolt.scad> $fa=1; $fs=0.2 ; boardRadius = 16 ; boardHeight = 1.3 ; boardClamX = 3 ; boardClamY = 21 ; boardClamZ = 3 ; nutLockX = 6; nutLockY = 8; baseX = boardRadius*2; baseY = boardClamX; baseZ = 3; cableLockX = 6; cableLockY = baseY; cableLockZ = 5;...
glb/cad_b1f2f5431dbf.glb
Create a webcam arm gimbal by combining two intersecting rectangular prisms. First, create a vertical prism with a width of 8mm, a depth of 3mm, and a height of 23mm. Second, create a horizontal prism with the same width of 8mm and depth of 3mm, but with a length of 17mm (the total width of the combined shape), oriente...
$fa=1; $fs=0.1; width = 2+3+12 ; height = 23 ; pWidth = 8; pHeight = 3; module shape () { union () { cube ([pWidth,pHeight,height]); cube ([pWidth,width,pHeight]); translate ([pWidth/2, width,0]) { cylinder (d=pWidth, h=pHeight) ; } translate ([pWidth/2, 0,height]) { rotate (...
glb/cad_0c7a7f19b572.glb
Create a webcam arm connector by combining a base block and a cylindrical housing. Start with a rectangular base measuring 11mm wide, 10mm high, and 5mm thick. Centered on top of this base, construct a cylindrical outer shape with a diameter of 11mm and a height of 10mm. To create the internal mounting space, remove ...
$fa=1; $fs=0.5; module hole (d,h) { cylinder (d=d,h=h) ; } module M3hole (h) { hole (3.6,h); } module connector2x (cWidth,cHeight,gap) { module outerShape() { union () { translate ([0,0,cWidth]) { rotate ([90,0,0]) { cylinder (d=cWidth,h=cHeight) ; } } translate...
glb/cad_72c61cb8389d.glb
Create a Movember moustache ornament by mirroring a single complex half-shape across the YZ plane. To build the half-shape, start with a sphere of radius 15mm centered at (12, 18, 0). Combine this with a series of connected, angled conical sections. The first section is a cone with a base radius of 15mm and a height of...
a1 = 12; w1 = 15; l1 = 25; a2 = -12; w2 = 12; l2 = 20; a3 = -22; w3 = 8; l3 = 10; a4 = -15; w4 = 5; l4 = 10; a5 = -15; w5 = 4; l5 = 10; w6 = 3; scale([0.5,0.5,0.5]){ difference(){ union(){ mirror() HalfMo(); HalfMo(); } *union(){ translate([30,20,-10]){ cylinder(r=3,h=100); } translate(...
glb/cad_111278641bfc.glb
Create a set of four different plug shims, each with a uniform thickness of 3mm. Every shim must feature two vertical through-holes for plug pins, positioned 18.8mm apart (center-to-center), with each hole having a diameter of 3.9mm (3.5mm pin diameter plus a 0.25mm gap on all sides). The four shim shapes are as follo...
shape=5; round_dia=36.3; rec_xsize=33.4; rec_ysize=12.5; end_round_rec_xsize=37.5; end_round_rec_ysize=17; hex_xsize=35.0; hex_ysize=13.5; pin_dia=3.5; pin2pin=18.8; hole_gap=0.25; shim_thick=3; rounding=2; $fn=80; if (shape==1){ round_plug();} if (shape==2){ rectangle_plug();} if (shape==3){ end_rect...
glb/cad_ec5cf7a1b56e.glb
Create a standing multi-line text plaque. Start by creating a rectangular plate 30mm wide, 18mm high, and 5mm thick. On the face of the plate, create four lines of embossed text centered horizontally and spaced evenly vertically. The text for each line should be "Top line", "Top middle line", "Lower middle line", and...
Lines_Amount = 4; Line_1_Text = "Top line"; Line_2_Text = "Top middle line"; Line_3_Text = "Lower middle line"; Line_4_Text = "Bottom line"; Text_Indent = 2; Plate_Thickness = 5; Font = "Liberation Sans:style=Bold"; Plate_Height = 18; plate_width = 30; Standing = true; Stand_Angle = -10; Stand_Lenth_Multipl...
glb/cad_93e1cdefa93d.glb
Create a Bullseye multi-Ring consisting of three concentric circular bands of varying diameters and a supporting structure. Start by creating a central ring with an inner diameter of 10.5mm, an outer diameter of 14.5mm, and a width of 2mm. Position a second, larger ring around it with an inner diameter of 21mm and an o...
th=2; w=2; size=21; thc=2; two_circles_only = 0; module ring(dInner, thickness, width){ difference() { cylinder(d=dInner+2*thickness, h=width, center=true, $fn=64); translate([0,0,0]) cylinder(d=dInner, h=width+1, center=true, $fn=64); } } module uRing() { difference() { rotate([90,0,0]) ring(size,th,w...
glb/cad_6318669e3a3e.glb
Create a Garbage Can Wall Spacer with a height of 25.4mm. Start with a central rectangular block that is 146.05mm wide and 127mm deep. From this block, remove a large circular section from the top edge with a radius of 146.05mm to create a concave cutout for the trash can. On the left and right sides of the block, remo...
$fn = 240; function inch(x) = 25.4 * x; can_r = inch(11.5) / 2; can_to_wall_d = inch(5); spacer_w = can_r; spacer_h = inch(1); side_cutaway_r = inch(5); top_cut_r = 200; quarterround_h = inch(0.75); can_cutaway_d = can_r - sqrt(can_r^2 - (spacer_w/2)^2); total_d = can_to_wall_d + can_cutaway_d; %color("red") tran...
glb/cad_beb0e23f3af0.glb
Create a Movember moustache ornament by mirroring and joining two symmetrical halves. For each half, start with a central cylinder of radius 6mm and height 12mm, centered on the Z-axis. Merge this with the intersection of a 34x12x12mm box and a 20x10x12mm box positioned at x=-34, y=10. From this combined volume, remove...
a1=35; a2=35; $fn=100; difference(){ union(){ mirror() HalfMo(); HalfMo(); } translate([0,0,8])scale([1,1,0.5])rotate([0,45,0]) cube([5,25,5], center =true); *union(){ translate([15,-1,-10]){ cylinder(r=1.5,h=100); } translate([-15,-1,-10]){ cylinder(r=1.5,h=100); } } *translate([-25,-5...
glb/cad_4f6f95f9f879.glb
Create a 10-32 T-nut for OpenBuild V-Slot extrusion by designing a single nut unit and repeating it in a grid of 10 columns and 5 rows. For each unit, start with a base block that is 10.5mm wide, 14mm long, and 3.9mm high. The top profile of this block is a polygon with vertices at [0,0], [10.5, 0], [10.5, 1.4], [7.75,...
module box(w,h,d) { scale ([w,h,d]) cube(1, true); } module hexagon(height, depth) { boxWidth=height/1.75; union() { box(boxWidth, height, depth); rotate([0,0,60]) box(boxWidth, height, depth); rotate([0,0,-60]) box(boxWidth, height, depth); } } module nut() { rotate([180,0,0]) difference() { translat...
glb/cad_bf4b77806e5b.glb
Create a rectangular base plate for a reusable gingerbread house component measuring 100mm wide, 130mm deep, and 6mm thick. On the top surface, create a grid of circular protrusions. These circles should have a radius of 13mm and a height of 2mm. Arrange them in seven columns. The x-coordinates for these columns shou...
$fn=64; difference() { union() { cube([100,130,6]); tileWidth = 26; translate([.9,tileWidth/2,0]) for(xi = [0 : 6] ) { xCord = xi == 0 ? xi*tileWidth/2 : (xi*tileWidth/2)+(.35*xi); yCord = xi%2==0 ? 0 : -(tileWidth/2); tileCount = xi%2==0 ? 4 ...
glb/cad_537426c31660.glb
Create a reusable gingerbread house structural component by starting with a central rectangular slab measuring 120mm in length, 81mm in width, and 4mm in height. From this main slab, remove six small rectangular notches to create slots for other pieces to snap into. Position four of these notches at the far edges of th...
difference() { cube([120,81,4], center=true); translate([58,-36.25,0])rotate([-5.711,0,0])cube([4.25,9,6], center=true); translate([-58,36.25,0])rotate([-5.711,0,0])cube([4.25,9,6], center=true); translate([58,36.25,0])rotate([-5.711,0,0])cube([4.25,9,6], center=true); translate([-58,-36.25,0])rotat...
glb/cad_2a8e45e04c53.glb
Create a customizable tray with a total length of 100mm, width of 100mm, and height of 40mm. The main body is a hollow shell with walls 1.61mm thick and a floor 1.75mm thick. All four outer vertical corners are rounded with a 5mm radius. To facilitate removing items, add a 3mm rounded bevel to the interior bottom edge ...
length = 100; width = 100; height = 40; crad1=5; crad2=5; crad3=5; crad4=5; bevel=3; brim=0; labelsize=9; fontsize=6; labeltext="BITS AND BOBS"; labelthickness=0.7; sectionslong = 2; sectionswide = 2; dividerheight = 40; walls=1.61; thick=1.75; divs=1.61; translate([0, 0, 0]){ union(){ d...
glb/cad_9c301caf7e15.glb
Create a wide cable passthrough consisting of a hollow rectangular sleeve and an optional base plate. The main sleeve should have an outer width of 11.9mm, a length of 33.8mm, and a total height of 51.5mm. All vertical corners of the sleeve must be rounded with a radius of 5.95mm. The walls of the sleeve should be 0.8m...
use <MCAD/boxes.scad> $fn = 90; passthrough_width = 11.9; passthrough_length = 33.8; passthrough_height = 51.5; passthrough_brim_width = 8; material_strength = 0.8; show_top = true; show_bottom = true; if ( show_top ) { difference() { union() { roundedBox([passthrough_width,passthrough_length,passthrou...
glb/cad_ad8a48ed0109.glb
Create a Tetris Bookshelf in the shape of a "T" tetrimino. The overall structure is based on a grid of blocks where each block is 60mm wide, 60mm high, and 60mm deep. Construct the outer shell by combining a horizontal rectangular prism measuring 180mm wide, 60mm high, and 60mm deep with a vertical rectangular prism ...
use <utils/build_plate.scad> _1_piece = "T"; _2_size = 60; _3_depth = 60; _4_thickness = 2; module createPart(type, size, depth, thickness) { eps = 0.1; translate([0,0,depth/2]) { if (type == "I") { difference() { cube(size=[size*4, size, depth], center=true); cube(size=[size*4-thickness*2, size-th...
glb/cad_8607d3836426.glb
Create a 2D Mongolia Soyombo symbol. Start by placing two vertical rectangles, each 5mm wide and 24mm high, spaced 12mm apart from center to center. Position two downward-pointing triangles, each with a base of 10mm and a height of 3mm; place one at the bottom center between the rectangles and one at the top center. Ad...
use <handyfunctions.scad> $fn=64; *soyombo(); *rotate_extrude(angle=180) dx(9) soyombo(); flag(); module soyombo() { square([5, 24]); dx(17) square([5, 24]); dx(11) polygon([[0, 0], [-5, 3], [5, 3]]); dx(11) dy(21) polygon([[0, 0], [-5, 3], [5, 3]]); dx(6) dy(4) square([10, 2]); dx(6) dy(18) square([10...
glb/cad_d3082536bfac.glb
Create a Narrow Prusa X Carriage for a 3D printer. Start with a central base plate 70mm wide, 50mm deep, and 4mm thick. In the center, create a cylindrical cutout with a diameter of 42mm and a height of 6mm to accommodate a groovemount. Add two belt clamps positioned 40mm apart, centered along the Y-axis at an offset ...
include <LM8UU_holder_ziptie.scad> screw_thread_diameter = 3.5; nut_wrench_size = 6.1; nut_height = 3.2; groovemount_screw_diameter = 4.2; nut_diameter = nut_wrench_size / cos(30); FANMOUNT_left = false; FANMOUNT_right = false; LEDMOUNT = false; FanHingeW=15; FanHingeL=9; FanHingeT=7; M3NutD = nut_diameter; bel...
glb/cad_ea10910cb017.glb
Create a parametric mechanical keyboard keycap. The main body is a hollowed-out frustum with a square base and a smaller, recessed top surface. The base dimensions are 18.16mm by 18.16mm, and the total depth is 11.5mm. The top surface is smaller than the base, with a width reduction of 6mm and a height reduction of 4mm...
key_length = 1; key_height = 1; key_profile_index = 0; keytop_thickness = 1; wall_thickness = 3; has_brim = 0; brim_radius = 11; brim_depth = .3; stabilizers = 0; stabilizer_distance = 50; inverted_dish = 0; stem_profile = 0; stem_inset = 0; stem_offset = 0; $fn = 32; unit = 19.05; minkowski_radius = 1....
glb/cad_523102972a33.glb
Create a Spring Loaded Contact Plate consisting of a main cylindrical body. The body has a diameter of 50mm and a total height of 25mm. From the center of the bottom face, remove a cylindrical core with a diameter of 41mm that extends upwards to a height of 21mm. At the very bottom of this central void, create a coni...
$fn=30; springDiameter = 4.65; springLength = 23; shellThickness = 2; bodyDiameter = 50; M3 = 3; numberOfScrews = 3; SD = springDiameter; SL = springLength; T = shellThickness; D = bodyDiameter; H = SL+T; NOS = numberOfScrews; A = D-M3*3; translate([0,0,0]) bod...
glb/cad_461b02c3a10f.glb
Create a customizable idler pulley with a central hole 30mm in diameter. The main body is a cylinder with an outer diameter of 40mm and a total height composed of a 2.5mm wide central belt channel flanked by two retaining lips. Each lip is 1.25mm thick and extends the outer diameter to 45mm. The profile between the lip...
idlerID = 30; idlerOD = 40; beltwidth= 2.5; $fn=120; lipheight = 5; lipthickness = 1.25; topangle = 60; difference(){ union(){ cylinder(r=lipheight+idlerOD/2, h=lipthickness); cylinder(r=idlerOD/2, h = lipthickness*2+beltwidth+lipheight*cos(topangle)); translate([0,0,lipthickness+beltwidth+lipheight*cos...
glb/cad_f0a214ffa141.glb
Create a dehydrator spool roller consisting of a circular frame with three equidistant axle holes. Start by creating a hollow cylindrical ring with an outer diameter of 141mm and a height of 3.5mm. The inner diameter of this ring should be 134mm, resulting in a wall thickness of 3.5mm. At three points around the ring...
$fn = 128; ringDiam = 150.0; ringWidth = 10.0; ringThick = 1.5; ringWall = 1.5; ringHeigth = 3.0; frameWidth = 3.5; frameDiam = ringDiam - ringWidth + 1.0; wheelDiam = 10.0; wheelAxis = 2.2; wheelWidth = 4.0; screwHeadDiam = 5.5; module ring() { difference() { cylinder(d = ringDiam, h = ringThick); ...
glb/cad_8cf1959f83fe.glb
Create a Thinkpad T490s and Thunderbolt 3 dock holder. The base is a flat plate 180mm deep, 55mm wide, and 5mm thick with rounded top edges. From this base, extend three vertical uprights, each 180mm deep, 5mm wide, and 55mm high, with rounded top edges. Position the first upright at the left edge (y=0). Position the...
$fn=10; holderHeight=50; holderDepth=180; laptopThickness=17.3; dockThickness=30; leftLegLength=20; rightLegLength=20; quarterRound=5; union(){ color("green") roundedcube([holderDepth,5,5+holderHeight], false,2,"zmax"); color("blue") translate([0,5+laptopThickness,0]) roundedcube([holderDepth,5,5+holderHeigh...
glb/cad_1708cdc5ad73.glb
Create a Roomba anti-drag mount consisting of a U-shaped cradle and a mounting plate. Start by creating a semi-cylindrical clamp with an outer radius of 25.5mm and an inner radius of 22mm, with a total height of 15mm and a wall thickness of 3mm. This clamp should be open on one side to allow a device to slide in. Posi...
$fn=25; measured_w=118.5; measured_d=44; bracket_h=15; bracket_gap=50; charger_d=measured_d; wall_offset=8; material_t=3; bracket_spacing=1.5; hole_dia=4; bighole_dia=8; charger_width=measured_w+bracket_spacing; dock_width=charger_width+material_t*2; helper_w=measured_w-charger_d+bracket_spacing; mnt_t=material_t; mnt...
glb/cad_eaecba4224d8.glb
Create a Customizable Multi Stand designed to hold a tablet. The model consists of two primary mirrored components: a main support body and a lid. Construct the main support body as a rectangular block with a width of 10mm and a height based on the tablet's height (190mm). Within this body, create a series of evenly s...
tablet_thickness = 11.2; tablet_height = 190; slot_depth = 10.0; extra_length_percent=0; number_of_lids = 1; stand_width = 10; calibration = 0; plate = "FullPlate"; patternID = 0; pattern_offset_x = 0; pattern_offset_y = 0; pattern_size = 35; pattern_overlap_percent = 105; pattern_overlap = pattern_overlap...
glb/cad_9d097421021c.glb
Create a Randomized Circular Gallifreyan Coin by starting with a solid cylinder of 84mm diameter and 2mm thickness. Engrave a series of geometric patterns into the top surface to a depth of 1mm, using lines that are 1mm wide. The patterns are arranged circularly around the center, based on a writing radius of 30mm. T...
$fn=64; word = "thingiverse"; outer_radius = 42; coin_thickness = 2; pendant_radius = 30; letter_radius = 10; line_thickness = 1; line_height = 1; seed=70; random_vect=rands(-30,30,20,seed); echo(random_vect); large_circle_radius = letter_radius; small_circle_radius = letter_radius/4; large_dot_radius = lett...
glb/cad_25e4439660cb.glb
Create a casino chip by modeling a smooth, solid cylinder with a radius of 20mm and a height of 3.3mm.
cylinder(h=3.3, r=20, $fn=100);
glb/cad_b5e19a4ba6e6.glb
Create a parametric box with a sliding lid. The main body is a rectangular prism with dimensions 120mm in length, 40mm in width, and 20mm in height. All four vertical corners of the body must be rounded with a radius of 4mm. The walls of the box are 3mm thick. Hollow out the center of the box to create a storage compa...
width = 40; length = 120; height = 20; wall_thickness = 3; edge_roundness = 4; tolerance = 0.3; $fn = 20; inner_box_dimentions = [length,width,height]; difference () { hull() { addOutterCorners(0,0); addOutterCorners(1,0); addOutterCorners(0,1); addOutterCorners(1,1); } translate([0,0,wall_thickness])...
glb/cad_ef448de018a6.glb
Create a Raspberry Pi Mounting Bracket consisting of a flat base plate with two vertical side walls and four corner mounting pegs. The base plate is a rectangle measuring 87mm by 70mm with a thickness of 1.4mm. From this base, extend two vertical walls, each 24mm high and 1mm thick, positioned along the shorter 70mm ...
use <pibase.scad> small = 0.1; board_x = 85.0; board_y = 56.0; clearance = 1.0; base_thickness = 1.0; floor_thickness = 1.4; base_x = board_x + base_thickness*2 + clearance*2; base_y = 70.0; base_z = 24.0; board_dx = base_thickness + clearance; board_dy = (base_y-board_y)/2; board_dz = 4.0+2.0; $fa = 1; $fs = 1; ...
glb/cad_20ded54262ad.glb
Create a Raspberry Pi Mounting Bracket designed to hold a board measuring 85mm by 56mm. The base consists of two parallel support spars, each 5mm wide and 2mm thick, separated by the width of the board. These spars are connected at the ends to form a rectangular frame. Along the edges of these spars, place six identic...
small = 0.1; peg_bite = 1.0; bite_extra = 0.2; peg_gap = 2.0; peg_width = 5.0; peg_depth = 3.0; peg_sep = 56 - 2; peg_raise = 4.0; board_x = 85.0; board_y = 56.0; board_z = 1.1; module peg() { extra = 1; translate([0, -peg_depth+peg_bite,-peg_raise]) { cube([peg_width,peg_depth,peg_raise], cent...
glb/cad_b85a26acfd12.glb
Create a Raspberry Pi mounting bracket consisting of a rectangular sleeve and a rounded bezel. Start by creating a solid rectangular base for the sleeve with dimensions 26.4mm in width, 10.4mm in depth, and 1.8mm in height. Centered within this base, remove a rectangular volume of 25mm by 9mm with a height that fully p...
inner_dx = 25.0; inner_dy = 9.0; outer_dx = inner_dx + 7.0; outer_dy = inner_dy + 7.0; bezel_dz = 1.2; sleeve_wall = 0.7; sleeve_dx = inner_dx + 2 * sleeve_wall; sleeve_dy = inner_dy + 2 * sleeve_wall; sleeve_dz = 1.8; bezel_r1 = 3; bezel_r2 = 2; $fa = 1; $fs = 1; small = 0.1; module sleeve() { translate([-sleeve...
glb/cad_113c753186fe.glb
Create a Yoshimoto Double Cube puzzle consisting of two identical star-shaped rhombic dodecahedrons that assemble into a single cube. The overall cube edge length is 4.32mm (calculated as 6 hinge elements of 0.6mm plus 5 clearances of 0.24mm). Construct the two main polyhedral elements by combining pyramids and cylind...
epi=0.12; E_epi=26; R_epi = 23; r_epi=10; J_epi=2; j_epi=2; fn=60; E=E_epi*epi; R=R_epi*epi; r=r_epi*epi; J=J_epi*epi; j=j_epi*epi; cote=6*E+5*j; echo("==========================="); echo("Côté du cube :",cote); echo("==========================="); T=E/3; translate([cote/sqrt(2),cote/sqrt(2),-J/2]) Impres...
glb/cad_7a606e1b1a47.glb
Create a DIP IC Test Clip consisting of a wedge-shaped base and a hinge mechanism. The base is 40mm long and has a width of 22.7mm (calculated from 8 pins at a 2.54mm pitch plus one pitch interval). The base thickness tapers from 4.5mm at the top to 3mm at the bottom. At the bottom edge, add a 1.5mm chamfer to allow fo...
ic_width = 8; ic_pin_count = 16; pin_pitch = 2.54; pin_dia = 0.95; hinge_pin_dia = 2.15; pin_count = ic_pin_count / 2; pin_slot_length = 10; pin_slot_dia = pin_pitch*1.0; base_length = 40; base_width = (pin_count * pin_pitch) + pin_pitch; tip_chamfer_length = 1.5; base_height_t = 4.5; base_height_b = 3; hin...
glb/cad_e3c23ade2849.glb
Create a dual spool holder consisting of a central mounting base and two extending arms. Start with a central rectangular mount base measuring 5mm thick, 27mm wide, and 32mm high. Attached to this base, create two symmetrical arms extending outwards, each 150mm long, 21.6mm wide, and 6mm thick, with rounded corners of ...
$fn =16; spoolbase_w = 27; spoolbase_h = 32; spoolbase_d = 5; spoolarm_w = 150; spoolarm_d = 6; filament_r = 4.5; filament_p = 87.5; filament_sp = 90; difference(){ union(){ cube([spoolbase_d,spoolbase_w,spoolbase_h],center=true); translate([spoolarm_w/2,0,0]){ translate([0,-spoolbase_w*0.2/2,0])roundedBox...
glb/cad_ba3c659c4950.glb
Create a dual spool holder consisting of a central base and two symmetrical arms. Start with a rectangular base measuring 50mm wide, 12.5mm high, and 5mm thick. Attached to this base, create two identical arm structures. Each arm begins with a rectangular section 12.5mm wide, 8mm high, and 35mm long, which then transit...
$fn = 32; hole_r = 4.25; hole_w = 70; rotate([-90,0,0]) difference(){ union(){ translate([-17.5,-1.25,0])cube([50,12.5,5], center=true); translate([-5-1.25,-3,0])cube([12.5,8,35], center=false); translate([-5,-3,58])cube([10,8,55], center=false); translate([0,1,45])difference(){ rotate([90,0,0])roundedB...
glb/cad_e24ca9ff3ed4.glb
Create a jewelry box insert for necklaces with overall outer dimensions of 140mm width, 150mm depth, and a total height of 8.67mm. Start by constructing a solid rectangular base of these dimensions. Hollow out the center of this base to create a rectangular tray, leaving a wall thickness of 0.8mm on all four sides and ...
$fn=100+0; NumberOfInsertLayers = 3; LightWeight = 1; WallThickness = (LightWeight==1) ? 0.8:1; FloorThickness = (LightWeight==1) ? 0.7:1; FullOuterHeight = 26; OuterWidth = 140; OuterDepth = 150; OuterHeight = FullOuterHeight/NumberOfInsertLayers; InnerWidth = OuterWidth-WallThickness*2; InnerDepth = OuterDepth...
glb/cad_a0bdc98634b2.glb
Create a magnetic picture frame designed for a 4x6 inch print. The model consists of two separate parts: a front frame and a back frame. First, create the general frame shape. Start with a rectangular base of 152.4mm by 101.6mm and a thickness of 5.08mm. Apply a rounded fillet of 5mm to all exterior edges. Carve out a...
frameWidthOffset=15; bevelOffset=15; width=6 * 25.4; height=4 * 25.4; depth=0.2 * 25.4; rotate([0,180,0])frontFrame(); *translate([0,width,0])backFrame(); *union(){ translate([0,0,0.1])color("red")frontFrame(); color("gray")backFrame(); } module frontFrame() { difference(){ frame(); tran...
glb/cad_b30e3ff6f5fd.glb
Create a coffee cozy consisting of a tapered cylindrical sleeve with an attached handle. The main body is a hollow frustum with a height of 75mm, a bottom inner diameter of 64mm, and a wall thickness of 4mm. The outer walls taper outward from the bottom to the top. Attach a C-shaped handle to the side of the sleeve. T...
include <write/Write.scad> Diameter=64; Height=75; Wall=4; SUPPORT=0; Message1 = "I Love Coffee"; Message2="A Lot!!!"; Font = "write/Letters.dxf"; Logo=4; CupMode = 0; module Tim_Hortons(h){ scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[-3...
glb/cad_f85ea14a4264.glb
Create a coffee cozy with a tapered cylindrical body and a side handle. The main body is a conical shell with a height of 75mm, a bottom inner diameter of 64mm, and a wall thickness of 4mm. The outer wall tapers outward from the bottom to the top. Cut a vertical slot completely through the wall along one side of the cy...
include <write/Write.scad> Diameter=64; Height=75; Wall=4; SUPPORT=0; Message1 = "I Love Coffee"; Message2="A Lot!!!"; Font = "write/Letters.dxf"; Logo=4; module Tim_Hortons(h){ scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[-39.030249,-3.3...
glb/cad_df84569f174c.glb
Create a parametric flange adapter by combining two concentric cylinders and removing a central core. First, create a wide, thin base disk with a diameter of 131mm and a height of 10mm. Centered on this base, place a taller vertical cylinder with a diameter of 71mm and a height of 64mm. Finally, bore a cylindrical hole...
SEGMENTS=128; SOURCE_OD=53; INNER_WALL_OD_OFFSET=18; INNER_WALL_OD=SOURCE_OD+INNER_WALL_OD_OFFSET; INNER_WALL_HEIGHT=64; BRIM_OD_OFFSET=40; BRIM_OD=INNER_WALL_OD+BRIM_OD_OFFSET; BRIM_HEIGHT=10; difference () { union () { color("azure", 0.75) translate([0,0,(BRIM_HEIGHT/2)]) ...
glb/cad_2e75d352e44c.glb
Create a PCB card mount rail by starting with a base rectangular block measuring 140mm in length, 7mm in width, and 7mm in height. This block is modified by a central cylindrical core with a diameter of 7mm running the full 140mm length. Carve a rectangular slot along the top edge for the PCB to slide into, measuring...
$fn=16; dimx = 140.0; dimy = 7.0; dimz = 7.0; slotx = dimx; sloty = 2.5; slotz = 1.7; hole = 0.089 * 25.4; module body() { cube([dimx,dimy,dimz]); translate([0,dimy/2,dimz]) rotate([0,90,0])cylinder(d=dimy,h=dimx); } module slot(x,y,z) { echo(x,y,z); translate([0,3*y,z/2]) rotate([90,0,0]) cylinder(h=4*y,d=z)...
glb/cad_62c56382234e.glb
Create a magnetic memo peg socket. Start by creating a rectangular base with rounded corners of radius 3mm. The overall outer dimensions of the base should be 34mm in width (X), 30mm in depth (Y), and 6.75mm in height (Z). Inside this base, center a rectangular cutout to house a neodymium magnet measuring 24mm by 24mm...
mag_x = 24; mag_y = 24; mag_z = 2; mag_z_sup = 0.75; mag_z_off = 1.2; mag_z_ovr = 2; t_border = 5; call = "*MíŠA*"; dim_x = t_border + mag_x+1 + t_border; dim_y = t_border + mag_y+1 + t_border; dim_z = mag_z_sup + mag_z + mag_z_off + mag_z_ovr; radius = 3; clp_x = 13; clp_z = 6.5; clp_dia = 2; c_x = 30; c_y = 90; ...
glb/cad_25484b716dfa.glb
Create a connector for an NXT motor base and Tetrix channel. The main body is a flat plate with a thickness of 7.8mm. The overall footprint is formed by the union of several hulls of 20-sided prisms (cylinders) with a radius of 3.9mm, spaced at intervals of 8mm along the X and Y axes. The base geometry extends from X=...
technicBeamWidth = 7.8; tetrixWidth = 3; tetrixScrewHoleRad = 2.25; holeSpacing = 8; technicHoleRad = 2.63; technicNubRad = 3.1; holeTol = 0.35; difference() { union() { hull() { translate([(2)*holeSpacing, 0, 0]) cylinder(r=technicBeamWidth/2, h=technicBeamWidth, $fn=20); translate([0, 0, 0]) cylinder...
glb/cad_07e03d81b47f.glb
Create a Popup Swatch Box designed to hold multiple rectangular filament swatches. The system consists of three main components: a front frame, a back frame, and multiple middle sliding inserts. Each frame is a rectangular profile with an outer width of 105.5mm and a height of 30.2mm. The frames feature a wall thickne...
show_assembled = false; show_swatches = true; show_swatches_colored = true; show_colored = false; show_middle = true; show_front = true; show_back = true; lid_type = 1; box_sections = 20; swatch_h = 30.2; swatch_w = 79.6; swatch_thk = 2.15; swatch_corner = 5; sidewall = 1.6; lid_hex = 10; ef_w = .2; ef_h = .4;...
glb/cad_dc1786a45ee2.glb
Create a Parametric N-Sided Dreidel with a base diameter of 15mm. The main body is formed by the intersection of a 6-sided prism (since there are 6 characters) and an elliptical cone. The cone should have a length of 30mm and a base radius of approximately 17.55mm, positioned so the body sits on the XY plane. Around t...
use <nosecones.scad> cone_fn = 32; chars = ["\u05E0", "\u05D2", "\u05D4", "\u05E9", "\u05E4", "\u05D0"]; dreidel_diameter = 15; stem_radius = dreidel_diameter/7; stem_depth = dreidel_diameter/3; stem_height = dreidel_diameter*1.5; letter_extrusion = 1.0; dreidel(chars, dreidel_diameter, stem_radius, stem_dep...
glb/cad_aaab6f36c4f4.glb
Create a Parkside Hand Vacuum Cleaner to Dyson Accessories adapter. The model is a hollow cylindrical ring with a height of 5mm. The outer diameter of the ring is 41mm and the inner diameter is 36mm. Use a facet resolution of 80 for the cylinders to ensure a smooth circular profile.
use <polyround.scad>; module parkside_adapter_rounded_cube(size=[10,10,10], corner=2, margin=undef) { adapter_size=[size[0]-2*corner,size[1]-2*corner, size[2]]; radiiPoints=[ [0,0,0], [adapter_size[0],0,0], [adapter_size[0],adapter_size[1],0], [0,adapter_size[1],0] ]; if (is_undef(margin)) { linear_ex...
glb/cad_0d3dfbedabbf.glb
Create a CC2531 Flash adapter block with a base rectangular prism measuring 2.85mm in length, 11.45mm in width, and 4mm in height. Remove material from this block by drilling a series of vertical holes through the entire height. Create two parallel rows of holes. In the first row, centered along the length at 0.25mm,...
g=0.05; l=1.65; w=5.45; h=4; p_s=0.51; p_r=p_s/2; d=(w-p_r-p_r)/4; p_rg=p_r+g; p1_s=0.8; p1_r=p1_s/2; p1_rg=p1_r+g; lc=p1_rg*6+0.25; wc=p1_rg*4+1; difference() { translate([-lc/2, -wc/2, 0]) cube([l+lc, w+wc, h]); translate([p_r, p_r, -g]) cylinder(2*g+h, r=p_rg,$fn=90); translate([p_r, p_r+d, -g]) cylinder(2*g+h, r=...
glb/cad_5e76d91f9a64.glb
Create a Moire Coaster by starting with a solid cylinder 80mm in diameter and 3mm thick. Add a thin outer rim by creating a concentric circular wall with a width of 1mm. In the center of the coaster, carve out a shallow inset 1mm deep. Within this inset, create a moire pattern consisting of 10 curved, blade-like shap...
outer_diam = 80; thickness = 3; lip_width = 1; inset_thickness = 1; moire_count = 10; moire_diam = 70; moire_thickness = 3; moire_join_angle = 40; center_diam = 10; moire_mirror_angle = 66; difference() { linear_extrude(height=thickness) circle(outer_diam/2); translate([0, 0, thickness - inset_thickne...
glb/cad_dfdd6ca4ea5c.glb
Create a rectangular organizer box with dimensions of 120mm in width, 56mm in depth, and 20mm in height. Within this solid block, remove a 4 by 2 grid of tapered cylindrical holes. Each hole should have a top diameter of 20mm and a depth of 15mm, tapering inward at an angle of 1 degree toward the bottom. Position the...
box_size_x = 120; box_size_y = 56; box_size_z = 20; margin_x = 5; margin_y = 5; number_of_holes_x = 4; number_of_holes_y = 2; diameter = 20; depth = 15; taper_angle_deg = 1; box_with_hole_array([box_size_x, box_size_y, box_size_z], margin_x, margin_y, number_of_holes_x, number_of_holes_y, diameter, depth, tap...
glb/cad_0c37e8dcae57.glb
Create a pipe flange consisting of a semi-circular collar and an attached sleeve. Start by creating a hollow cylinder with an inner diameter of 49.41mm and an outer diameter of 63.5mm, with a total height of 17.78mm. The wall thickness of this sleeve is 7.011mm. At the base of this sleeve, add a flat, circular flange ...
pipeOD = 1.9 * 25.4; flangeOD = 3.5 * 25.4; wall = .275 * 25.4; tolerance = .05 * 25.4; height = .7 * 25.4; holeDiameter = (pipeOD + 2 * tolerance); $fa = 4; difference() { union() { difference() { union() { cylinder(h = wall/2, d = flangeOD); cylinder(h = height, d = pipeOD + 2 * wall + 2 * tolerance); ...
glb/cad_e4fe9ce2b776.glb
Create a simple tape dispenser with a total height of 18mm. Start by constructing a rectangular outer case measuring 70mm in length, 60mm in width, and 18mm in height. Hollow out the center of this case to create walls that are 2mm thick, leaving a solid base. In the center of the case, create a core for the tape roll...
hi = 18; module case() { cube([70,60,hi], center=false); } module dig() { translate([2,2,2]) cube([70-4,60-4,hi+1-2], center=false); } module build1() { difference() { case(); dig(); } } module core() { translate([40,30,hi/2]) rotate([0,0,0]) cube([25.5,4,hi], center=true); transl...
glb/cad_e4edcb9e1cb1.glb
Create a faucet lever consisting of a central base and two extending arms. Start by creating a central cylindrical base with a height of 6mm and a diameter of 18mm. The base must have a central vertical cutout that is 11.5mm in diameter, but this hole is not a perfect circle; it is modified by two flat parallel sides t...
smooth=60; $fn=smooth; i_tol=0.5; rounding=0.75; part=2; base_hi=6; base_dia=18; lever_wid=4; lever_leng=25; socket_dia=11; socket_wid=9.2; faucet_lever(); module faucet_lever(){ ep=0.001; dia=socket_dia+i_tol; difference(){ hull(){ end_round_cylin(rad=base_dia/2); if (part>=1) ...
glb/cad_6ef2e540e43a.glb
Create a Snowflake Factory ornament by constructing a symmetric, fractal-like snowflake. Start with a central point and generate 6 identical arms (6-fold symmetry) spaced 60 degrees apart. Each arm is built using a recursive algorithm across 5 segments. For each segment, create a central rectangular spike that extend...
iSeed=0; flakeDiameter = 30; flakeThickness = 3; sThickness = 1.0; nSides = 6; nSegments = 5; fracP = 1.0; minR = 0.5; dendriteRotate=0; dendriteRandTilt = 15; recurseProb = 0.1; dMinSize = 0.5; sdLength = 3; sMinAspect = 1; sMaxAspect = 4; dMinAspect = sdLength; dMaxAspect = 10; addHangers = t...
glb/cad_39b45aef6bdf.glb
Create an egg holder consisting of a rectangular base plate with two conical wells for holding eggs. The base plate is 43.2mm wide and 84.4mm long. Construct two identical egg wells. Each well is a hollowed-out truncated cone. The outer shell of each well has a bottom diameter of 45.6mm and a top diameter of 33.6mm, w...
ws=0.8; hd=50-(4*ws); ol=2*ws; ed1=32; h1=5; ed2=48-(4*ws); h2=18; $fn=100; module Trapez2D(l1, l2, h) { d=(l1-l2)/2; polygon([ [-l1/2,0], [-l1/2+d,h], [l1/2-d,h], [l1/2,0] ]); } module EggHolder() { if(ed1>ed2) { text("error: ed1>ed2"); } else if(h2<5) { text("error: h2<5"); } else if((ed2+2...
glb/cad_e2a8d368c559.glb
Create a Customizable Throttle Fixture designed to hold a slider potentiometer. Start by creating a main rectangular body with a total length of 173mm (128mm for the slider plus 45mm for the mounting section), a width of 27mm, and a height of 24mm. Hollow out the center to create a rectangular slot for the potentiome...
sliderLength = 128; sliderWidth = 15; sliderDepth = 6; rodDiameter = 5; screwDiameter = 2; tolerance = 0.2; ThrottleMount(); module ThrottleMount() { $fn = 32; backWall = 3; sideWall = 6; frontWall = 5; slotWidth = 3; faceplateDepth = 7.4; channelWidth = 2; channelDepth = sliderDepth / 2; difference() { un...
glb/cad_fc00a5a47275.glb
Create a clothes button with an overall diameter of 18mm. The main body consists of a central cylinder 2mm thick with a radius of 7.75mm, surrounded by a rounded outer rim created by revolving a circle with a 1.25mm radius around the center. This results in a total maximum thickness of 2.5mm at the edge. Pierce the but...
$fa=3; $fs=0.05; Dout=18; thickness=2; border_height=2.5; hole_diameter=2.25; hole_offset=5.75/2; R1=border_height/2; R0=Dout/2 - R1; difference() { union() { cylinder(h=thickness,r=R0); rotate_extrude() translate([R0,R1]) circle(R1); } translate([hole_offset,0...
glb/cad_ccf7ab6c140f.glb
Create a Customizable Quad Hanger for a drone frame. The main body consists of two mirrored, flat triangular plates, each 2mm thick. Each triangle is defined by vertices at (0,0), (0, 35), and (35, 0), with corners rounded by a 4mm bevel. A smaller triangular hole is cut out from the center of each plate, leaving a bor...
quadSupportDistance = 70; quadFrameThickness = 2; screwHoleWidth = 2; bevel = 4; thickness = 2; $fn=50; width = quadSupportDistance; height = width / 2; supportWidth = quadFrameThickness + 1; rotate([0,0,90]) difference() { union() { halfMount(); mirror([0, 1, 0]) halfMount();...
glb/cad_50c9a1489bde.glb
Create a Customizable Angle Corner Holder inner main holder. Start by creating a base plate with a thickness of 20mm. The plate is a polygon defined by a corner angle of 120 degrees and a side length of 120mm. The inner corner of the plate should have a 10mm chamfer. On the top surface of the plate, create two rectang...
$fa=1*1; $fs=0.25*1; holder_angle = 120; holder_thickness = 20; part_type = "inner"; holder_side_length = 120; corner_chamfer = 10; clamp_cutout_width = 30; clamp_cutout_height = 30; clamp_offset = 12; flat_offset = 0; use_fence = "no"; fence_thickness = 4; fence_width = 7.5; p2_clamp_width = 30; p2_arm_l...
glb/cad_72f06a17c98e.glb
Create three rounded corner cubes, each with overall dimensions of 50mm x 40mm x 30mm, positioned linearly along the Y-axis. The first cube, located at [0, -60, 0], should have a corner radius of 10mm and a facet resolution of 8. The second cube, located at [0, 0, 0], should have a corner radius of 8mm and a facet re...
translate([0, -60, 0]) rcorn_cube([50, 40, 30], 10, 8); translate([0, 0, 0]) rcorn_cube([50, 40, 30], [8, 4], 24); translate([0, 60, 0]) rcorn_cube([50, 40, 30], [10, 5, -5], 64); module rcorn_cube(size, r, f, center = true) { r = (len(r) == undef) ? [r] : r; sh = size / 2; rs = r[0] / cos(90 / ce...
glb/cad_358896e63001.glb
Create three rounded corner cubes, each with different dimensions and resolutions, positioned side-by-side along the X-axis with 70mm spacing between their origins. The first cube is 50mm wide, 40mm deep, and 25mm high. Give it a corner radius of 10mm and use a low facet count of 8 for all rounded surfaces. The secon...
for (i = [0:2]) { translate([i*70, -60, 0]) rcorn_cube([50, 40 - 2*i, 25 - 4*i], 10, fn = 8, center = false); translate([i*70, 0, 0]) rcorn_cube([50, 40 - 4*i, 25 - 8*i], [8, 4], fn = 24, center = false); translate([i*70, 60, 0]) rcorn_cube([50, 40 - 6*i, 25 - 12*i], [10, 5, -...
glb/cad_a38b49bcc12d.glb
Create a customizable zip tie model with a thickness of 0.4mm. The main body is a flat, flexible strap 104mm long and 16mm wide, featuring a symmetrical zig-zag pattern of teeth along both long edges. Each tooth is created by repeating a geometric profile every 6mm along the length. At one end, construct an angular he...
length = 104; width = 16; thickness = 0.4; doubleSlots = 1; roundHead = 0; labelLength = 0; labelText = "Hello World"; labelFont = "Big Shoulders Stencil Text:style=Black"; module copy_mirror(vec) { children(); mirror(vec) children(); } module half_slot(pos, width) { translate(pos) { polygo...
glb/cad_cb0a90ea466e.glb
Create an impossible dovetail joint puzzle consisting of two interlocking pieces. Start by creating a primary rectangular block measuring 45mm x 135mm x 27.5mm. From this block, remove three distinct geometric volumes to create the interlocking voids. The first void is a hull formed by points at [0,0,12.5], [0,0,27.5],...
g=1; v=[ [0, 0, 0], [0, 0, 12.5], [0, 0, 27.5], [0, 50, 0], [0, 50, 27.5], [5, 0, 27.5], [10, 50, 27.5], [35, 50, 27.5], [40, 0, 27.5], [45, 0, 0], [45, 0, 12.5], [45, 0, 27.5], [45, 50, 0], [45, 50, 27.5] ]; module x(p) { translate(v[p]) cube(g); } module cut1() { hull() { x(1); x(2); x(3); x(4); ...
glb/cad_7a5e9c57ea3b.glb
Create a parametric snap fit connector. Start with a central main column by creating a cylinder with a radius of 1mm and a height of 2mm, centered on the origin. At the top of this column, construct a snap-head assembly consisting of a small cylinder with a radius of 0.95mm and a height of 1mm, topped with a cylinder o...
w=2; h=2; s=0.7; f=1; cf=0.7; m=1; l=0.05; cl=0.5; t=1.01; c=0.5; dpt=0.05; cs=0; $fn=100; module half_sphere(){ resize([s*2,s*2,f*cf]) difference(){ sphere (r=s); translate([-s,-s,-s*2]) cube(size=s*2); } } module triangle(){ translate([0,0,h/2])polyhedron( points=[ [(s-l)*c...
glb/cad_84357d0bd594.glb
Create a set of six stitch markers arranged in three rows and two columns. Each marker is a flat, circular clip with a height of 2mm and an outer diameter of 15mm. To form the main body of a single marker, create a cylinder with the specified diameter and height. Remove a smaller concentric cylinder from the center w...
rows = 3; cols = 2; outer_diameter = 15; height = 2; thickness = 1.6; slot_width = 2; spacing = outer_diameter * 1.5; for(ox=[0:spacing:spacing * rows - 1], oy=[0:spacing:spacing * cols - 1]) { translate([ox, oy, 0]) { union() { difference() { cylinder(d=outer_diamet...
glb/cad_3ebf998d3cf7.glb
Create a shower handle holder by starting with a main cylinder 35mm in diameter and 46mm high. Remove a central vertical cylinder with a 4.5mm diameter and 50mm height, and a small central cube measuring 8mm by 8mm by 33mm. At a height of 21mm, remove a small cylinder with a diameter of 8.5mm and a height of 3mm. To cr...
difference (){ difference (){ cylinder (r=35/2,h=46,$fn=100); cylinder (r=4.5/2,h=50,$fn=30); cube ([8,8,33], center=true); translate ([0,0,21]) cylinder (r=8.5/2,h=3,$fn=30); translate ([0,0,22.5+23/2]) rotate ([0,90,0]) cylinder (r1=23/2,r2=20/2,h=47,$fn=100, center=true); } translate ([0,...
glb/cad_80b9377cce95.glb
Create a customizable hole cover and plug. Start by designing a main circular flange with a radius of 13mm and a height of 1mm. The top surface of this flange should be beveled at a 50-degree angle, tapering from a smaller top radius to the full 13mm outer radius. From the underside of this flange, extend a cylindrica...
$fn=100; hole_r = 11; hole_h = 5; tab_thick = 1; protrusion_w = 0.5; tab_nr = 3; tab_ratio = 0.2; flange_r = 2; flange_h = 1; flange_bevel_angle = 50; module tab_outline_2d() { hull() { square([tab_thick, hole_h]); prot_h = hole_h/5; prot_w = protrusion_w; translate([tab_thick, hole...
glb/cad_e7cc34c27c4a.glb
Create a 9 Ball Rack designed for 57.2mm balls. The rack is a flat plate with a height of 25mm and a wall thickness of 8mm. The main body is formed by creating a hull around a triangular arrangement of ten circles, each 57.2mm in diameter, with 1mm of spacing between them. The outer boundary of the rack is an offset of...
$fn=50; BallSize = 57.2; Spacing = 1; HorFactor = 1.15; Height = 25; Width = 8; PenDepth = 10; Peg(); module HalfRack(){ HalfLenght = (BallSize / HorFactor) * 2; HalfWidth = (((BallSize + Spacing / 2) * 3) / 2) + Width / 2; difference(){ FullRack(); translate([0- BallSize*2,0-BallSize,-1...
glb/cad_b38e08d0c4e1.glb
Create a PSU fan cover with a thickness of 2mm. The main body is a circular frame with an outer diameter of 70mm and an inner cutout diameter of 58mm. The cover features a series of curved, concentric ventilation slots. Create these by removing four curved strips from the face of the disk, each with a width of 2mm. T...
dScrew=5; t=2; dFan=58; distanceScrews=70; h=10; angle=45; fn=64; module c1inner(delta, a=180) { rotate_extrude(angle=a, $fn=fn*4) { square([dFan/2-h, h+delta]); translate([dFan/2-h, h+delta,0]) difference() { circle(r=h+delta,$fn=fn); translate([-h-delta, 0, ...
glb/cad_db69a4d928ac.glb
Create a M5Stack holder by starting with a solid rectangular block measuring 58mm wide, 58mm deep, and 21.5mm high. Hollow out the center to create a pocket for the device, leaving a wall thickness of approximately 4mm on the sides. The interior cavity should be 46.5mm wide and 46.5mm deep, with a height of 17.5mm. To...
$fs=0.1; H = 17.5; module case1() { color([1,0,0,0.5]) cube([54+4,54+4,H+3+2], center=false); } module inside1() { translate([(4+1.75), (4+1.75) ,2]) color([0,1,1,1]) minkowski() { cube([54-8+0.5, 54-8+0.5, H]); cylinder(r=4); } } module cutter1() { translate([8,0,2+3...
glb/cad_b81517df2fac.glb
Create a Dimple Hinge consisting of two mirrored mating parts. For the male side, construct a base rectangular block 20mm wide, 4mm deep, and 2mm high. At each end of this base, add a vertical post 2mm wide, 4mm deep, and 6mm high. On the inner face of each post, centered at a height of 6mm and a depth of 2mm, attach a...
union() { cube([2,4,6]); translate([0,2,6]) rotate([0,90,0]) cylinder(2,2,2,$fs=.25); translate([1.9,2,6]) sphere(1.3,$fs=.25); translate([20,0,0]) mirror([1, 0, 0 ]) { cube([2,4,6]); translate([0,2,6]) rotate([0,90,0]) cylinder(2,2,2,$fs=.25); translate([1.9,2,6]) sphere(1.3,$fs=.25); } translate([0,0,0]) c...
glb/cad_7c2ce93a71dd.glb
Create an Airbrush Turn Table consisting of two main components: a top platform and a bottom base. For the top platform, create a cylinder 100mm in diameter and 15mm high. Hollow out the center by removing a concentric cylinder starting 1.2mm from the bottom, with a diameter of 97.5mm. Around the outer vertical wall, ...
table_d = 100; table_h = 15; table_fn = 50; wall_w = 0.5; surface_w = 1.2; groove_w = 3; groove_fn = 20; groove_round = false; bearing = [6.2, 22, 7]; table_top(); translate([table_d/2 + table_d/4 + 10, 0, 0]) table_bottom(); module table_bottom() translate([0, 0, 15 + bearing[2]/2]) rotate([0, 180, 0]) { ...
glb/cad_177d41b1ff3e.glb
Create a dishwasher cutlery basket bottom with overall dimensions of 55mm width, 40mm depth, and 3mm height. Start by constructing a rectangular outer frame with a wall thickness of 2mm. The four exterior corners of this frame must be rounded with a radius of 4mm, and the interior corners where the walls meet must al...
width = 55; depth = 40; height = 3; outerBarWidth = 2; innerBarWidth = 1.5; ccWidth = 5; radius = true; $fn = 100; union() { frame(); if (radius) { outerRadius(); innerRadius(); } grid(); } module frame() { color("red") for (Xbar = [-width / 2 + outerBarWidth / 2, width / 2 - outerBarWi...
glb/cad_7403a854fec4.glb
Create a linkage part by combining a central rectangular block with two cylindrical end caps. Start with a central cube that is 50mm long, 8mm wide, and 8mm high, centered at the origin. At each end of this block, centered on the X-axis at 25mm and -25mm respectively, place a cylinder with a radius of 4mm and a height ...
module linkage(height, width, length, resolution){ translate ([length/2,0,0]) cylinder(center=true, h=height, r=width/2, $fn=resolution); cube(center=true,[length,width, height]); translate ([-length/2,0,0]) cylinder(center=true, h=height, r=width/2, $fn=resolution); } linkage(8,8,50, 64);
glb/cad_1f5383998003.glb
Create a linkage part by starting with a central rectangular block that is 50mm long, 13mm wide, and 5mm thick, centered on the origin. At each end of the block, centered on the width and thickness, add a cylinder with a radius of 6.5mm and a height of 5mm to create rounded ends. Finally, bore two circular holes throug...
module linkage(height, width, length, holeSize, resolution){ difference(){ union(){ translate ([length/2,0,0]) cylinder(center=true, h=height, r=width/2, $fn=resolution); cube(center=true,[length,width, height]); translate ([-length/2,0,0]) cylinder(center=true, h=height, ...
glb/cad_f4642d8129cc.glb
Create a linkage part by combining a central rectangular block with two cylinders at each end. The central block should be 20mm long, 13mm wide, and 5mm thick. At each end of the block, centered on the width and thickness, add a cylinder with a radius of 6.5mm and a height of 5mm. Through the center of each of these en...
module linkage(height, width, length, holeSize, resolution){ difference(){ union(){ translate ([length/2,0,0]) cylinder(center=true, h=height, r=width/2, $fn=resolution); cube(center=true,[length,width, height]); translate ([-length/2,0,0]) cylinder(center=true, h=height, ...
glb/cad_91105e3958e2.glb
Create a motor mount clamp by starting with a central rectangular block measuring 26mm in width, 20mm in depth, and 6mm in height. Carve a cylindrical hole with a radius of 6.5mm through the center of the block along its vertical axis. Remove a thin rectangular slice 1.5mm wide and 8mm high from the center of the block...
$fn=50; module torus2(r1, r2) { rotate_extrude() translate([r1,0,0]) circle(r2); } module oval_torus(inner_radius, thickness=[0, 0]) { rotate_extrude() translate([inner_radius+thickness[0]/2,0,0]) ellipse(width=thickness[0], height=thickness[1]); } difference(){ cube([26,20,6],center=true); cylinder(h=8,r=6.5,center...
glb/cad_cacee94af4d1.glb
Create a telescopic stick composed of six stacked, hollow conical segments. Each segment must have a height of 50mm and a wall thickness of 0.8mm. The segments are designed to nest inside one another, with the bottom-most segment having a base radius of 17mm and the top-most segment tapering to a top radius of 1.6mm. ...
ep =0.8; hseg = 50; nseg =6; rb = 17; rt = 1.6; deploie=0; nocsg=0; rdelta = (rb - rt) /nseg; pente = hseg / rdelta; zz = ep * pente ; echo(str("<h2>overlap:",zz,"mm<br>size when extended: " , nseg*hseg-(nseg-1)*zz , " mm</h2><br>")); for (n=[0:nseg-1]) { translate([0,0,deploie*n*(hseg-zz)]) { d...
glb/cad_ee52c1824eca.glb
Create a multipurpose stuff holder. Start with a main vertical body that is 25mm thick. This body features a rounded profile on the left side and a flat edge on the right. Within this body, create two circular holes, each 20mm in diameter, spaced 5mm apart. These holes are centered vertically and are partially open on ...
hook_h = 15; hook_t = 10; height = 25; diameter = 20; nb_holes = 2; thickness = 3; border = 3; spacing = 5; l_corner = true; r_corner = false; gaps = true; reverse_gaps = true; gaps_s = 5; mt_holder(hook_h, hook_t, height, diameter, nb_holes, thickness, border, spacing, l_corner, r_corner, gaps,reverse_gaps, gaps_s); ...
glb/cad_fbaf2c37c59f.glb
Create a twisted basket container with a total height of 70mm and a radius of 40mm. Start by creating a solid circular base with a radius of 42mm and a thickness of 2mm. At the top of the structure, 70mm above the base, create a matching circular ring with an outer radius of 42mm and an inner radius of 38mm, resulting ...
height=70; radius=40; th=20; an1=120; nsp=20; twist = "clockwise"; thickness = th / 10; module spoke(ang, h, r) { x=r - cos(ang) * r; y=sin(ang) * r; h1=sqrt(x*x+y*y); h2=sqrt(x * x + y * y + h * h); a1=atan2(h1, h); a2=atan2(x, y); translate([r, 0, 0]) { if (twist == "clockwise") { rotate([0, 0, a2]...
glb/cad_aa45bd35fdd8.glb