Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a filament guide for a modular spool mount. Start with a base plate that is 45mm wide, 60mm deep, and 2.5mm thick. On the top surface of this base, create two vertical walls, each 2.5mm thick and 10mm high. Position the first wall at x=2.5mm and the second wall at x=40mm; both should run from y=10mm to y=50mm....
$fn=360; bmvier=4.3; lochab=15; co=2; difference(){ hull(){ cube([3*lochab,10,2.5]); translate([5,55,0]) cylinder(2.5,d=10); translate([40,55,0]) cylinder(2.5,d=10); } hull(){ translate([9,48.5,-1]) cylinder(2.5+co,d=3); translate([36,48.5,-1]) cylinder(2.5+co,d=3); translate([9,11.5,-1]) cylinder(2.5+co,d=3); transla...
glb/cad_bc5138353077.glb
Create a filament guide for a spool holder. Start with a main block that is a hull of a cube measuring 10mm x 17.5mm x 15mm and a cylinder with a diameter of 6mm and a height of 10mm, centered and oriented horizontally. From this main body, remove a horizontal cylindrical hole with a diameter of 3mm (1.75mm plus 1.25...
$fn=100; um=10; fd=1.75+1.25; LA=15; co=2; t=2.5; m=4; bm=m+0.25; gap=1; module intake(){ hull(){ translate([-0.75,0,t-0.5])sphere(1); translate([-0.75,0,um+t+0.5])sphere(1); translate([0,-4,(um/2)+t])sphere(2.25); } } translate([0,0,um])rotate([0,90,0]){ difference(){ hull(){ cube([um,um+(LA/2)+t,um+(2*t)]); transl...
glb/cad_abaf7ebd1bac.glb
Create a filament guide and cleaning module for a spool holder. Start with a main rectangular block measuring 36mm in width, 27.5mm in depth, and 15mm in height. On the top surface, center a rectangular cutout measuring 15mm by 10mm by 12mm deep to hold a piece of cleaning foam. On the left side of the block, create ...
$fn=100; um=10; fd=1.75+1.1; LA=15; co=2; t=2.5; m=4; bm=m+0.25; gap=1; module intake(){ hull(){ translate([-0.75,0,t-0.5])sphere(1); translate([-0.75,0,um+t+0.5])sphere(1); translate([-0.75,-10,t-0.5])sphere(1); translate([-0.75,-10,um+t+0.5])sphere(1); translate([2,-5,(um/2)+t])sphere(2.25); } } difference(){ tran...
glb/cad_54bdce80c92e.glb
Create a switch box for two rocker switches designed to mount on a modular spool holder. Start with a main rectangular body that is 10mm wide, 125mm long, and 10mm high. From this body, remove a smaller rectangular section measuring 10mm by 125mm by 10mm, leaving a thin outer shell. Integrate two rocker switch hous...
Schalter=1; Halter=1; $fn=360; m=3; co=2; um=10; LA=15; t=2.5; bm=m+0.25; gap=1; sh=13; sb=13; st=10; stt=14; sd=6+0.5; ss=9; module schalter(){ color("black") cube([sh,sb,st]); color("grey") { translate([sh/2,sh/2,st])rotate([0,0,0])cylinder(ss,d=sd); translate([sh/2,sh/2,st+ss-2])rotate([0,-15,0])cylinder(13.5,d=...
glb/cad_9a8121de281f.glb
Create a filament guide and cleaning module for a spool holder. Start with a main rectangular block measuring 36mm in length, 22.5mm in height, and 15mm in width. On the top surface, create a rectangular cutout measuring 10mm by 15mm, centered horizontally and positioned to leave a wall thickness of 2.5mm on the side...
$fn=100; um=10; fd=1.75+1.1; LA=15; co=2; t=2.5; m=4; bm=m+0.25; gap=1; module intake(){ hull(){ translate([-0.75,0,t-0.5])sphere(1); translate([-0.75,0,um+t+0.5])sphere(1); translate([-0.75,-10,t-0.5])sphere(1); translate([-0.75,-10,um+t+0.5])sphere(1); translate([2,-5,(um/2)+t])sphere(2.25); } } translate([0,0,12]...
glb/cad_4fe95b63f7b3.glb
Create a Hairy Cube by starting with a central solid cube that is 4mm wide, 4mm long, and 4mm high. On the faces of this cube, add a grid of small protruding rectangular prisms, acting as hairs, each with a thickness of 0.16mm. These protrusions are arranged in a repeating pattern where for every integer coordinate fro...
hair_width=0.16; width=4; length=4; height=4; hw=hair_width; hair(width,length,height); scale([width,length,height]) cube(); module hair(w,l,h) { for(x=[1:w-1],y=[1:l-1], z=[1:h]) { translate([x,y,z]) scale([4, hw, hw]) translate([0,(z%2-0.5)*3,-0.5]) cube(center=true); translate([x,y,z]) scale([hw, 4, hw]) ...
glb/cad_e09ee367b51c.glb
Create a pocket dice tower and storage case consisting of a main tower body and a snapping lid. For the tower body, create a rectangular box with an outer length of 52mm, width of 27mm, and depth of 26mm. The walls and bottom base should be 1mm thick. Hollow out the interior to a length of 50mm and width of 25mm. Ins...
piece = "both"; die_diameter = 25; wall_thickness = 1; toprim = 0; lid_lipDepth = 10; airgap = 0.05; lid_overhang = 3; module endParam(){} endParam(); eps=0.007; $fn=32; bumper_length = die_diameter*1; bumper_slope = 60; bumperCount = 3; interior_length = die_diameter + bumper_length; interior_width = die_...
glb/cad_aee3b2b5a209.glb
Create a Ukrainian Trident latte stencil. Start by creating a thin, flat circular disk with a thickness of 1mm. On one side of the disk, cut out a central void in the shape of the Ukrainian Trident (Tryzub). The trident should be centered and proportional to the disk, featuring its characteristic symmetrical three-pron...
fudge = 0.1; module poly_path3004(h) { scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[43.437509,-185.984360],[24.428480,-185.022737],[5.968751,-182.203110],[-11.868121,-177.616757],[-28.968756,-171.359361],[-45.211608,-163.523278],[-60.531263,-154....
glb/cad_7e510f642b20.glb
Create a Pulley Library model by stacking several concentric components along a central vertical axis. Start with a cylindrical base 20mm in diameter and 8mm in height. Subtract a captive nut cavity from this base, consisting of a hexagonal prism for an M3 large nut (5.7mm across flats, 2.7mm deep) and a central vert...
Belts = [ ["MXL", [2.032, 0.254], 0.508 , 1.321 , [[-0.660421,-0.5],[-0.660421,0],[-0.621898,0.006033],[-0.587714,0.023037],[-0.560056,0.049424],[-0.541182,0.083609],[-0.417357,0.424392],[-0.398413,0.458752],[-0.370649,0.48514],[-0.336324,0.502074],[-0.297744,0.508035],[0.297744,0.508035],[0.336268,0.50207...
glb/cad_f1de956d05b5.glb
Create a Pulley Library model consisting of a base, a gear section, and retaining rings. Start by creating a cylindrical base with a diameter of 20mm and a height of 8mm. Subtract a captive nut cavity from the center of this base to accommodate an M3 large nut (6 sides, 5.7mm flat diameter, 2.7mm depth). Above the ...
Belts = [ ["MXL", [2.032, 0.254], 0.508 , 1.321 , [[-0.660421,-0.5],[-0.660421,0],[-0.621898,0.006033],[-0.587714,0.023037],[-0.560056,0.049424],[-0.541182,0.083609],[-0.417357,0.424392],[-0.398413,0.458752],[-0.370649,0.48514],[-0.336324,0.502074],[-0.297744,0.508035],[0.297744,0.508035],[0.336268,0.50207...
glb/cad_7d8d17de333b.glb
Create a Parametric Magnetic Box consisting of a bottom section and a lid. Both parts are rounded rectangular prisms with an outside width of 40mm, length of 40mm, and a wall thickness of 1.5mm. The bottom section has a height of 20mm, while the lid has a height of 20mm and includes a handle 10mm wide, 2mm deep, and 5m...
render_object = "both"; box_width = 40; box_length = 40; bottom_box_height = 20; top_box_height = 20; box_rounded_corner_factor = 1.5; wall_thickness = 1.5; handle_width = 10; handle_depth = 2; handle_height = 5; handle_rounded_corner_factor = 1.0; hinge_rod_diameter = 1.75; hinge_rod_tolerance = 0.3; hinge_...
glb/cad_d2f5f2c4bcdc.glb
Create a Spin Spiral model by constructing a vertical stack of 69 thin rectangular slabs. Each slab must have a width of 25mm and a thickness of 3mm. The total height of the model is 100mm. Arrange the slabs along the Z-axis with a consistent vertical gap of approximately 1.43mm between them. Each slab is centered on ...
TOF=637; height=100; width=25; thickness=3; smoothing=1*100; gap=height/70; module twisty(z, startRot, endRot) { rotate([0, 0, startRot]) translate([0, 0, z]) linear_extrude(gap, center=false, convexity=10, twist=-endRot, $fn=smoothing) translate([-width/2,-thickness/2,0]) square([width,thickness],[0...
glb/cad_9fa1ea5a34bd.glb
Create a wire clip by starting with a main cylinder 6mm in diameter and 9mm high. Remove a smaller concentric cylinder from the bottom with a diameter of 7.5mm and a height of 5mm to create a hollow ring. Cut a wide rectangular slot through the center of this ring, 2mm wide and 11mm long, to allow the clip to open. E...
difference() { cylinder(6, 9, 9, $fn=150); translate ([0, 0, -1]) cylinder(7.5, 5, 5, $fn=150); translate ([0, -5.0, -0.5]) cube ([112, 2, 11]); translate ([1.5, -5.8, -0.5]) cube ([ 3.5, 5, 11]); } translate ([5.2, -3.3, 0]) { cube ([20, 4, 6]); } translate ([25, -1.8, 0]) { cylinder (6, 2.5...
glb/cad_8dfb10d13989.glb
Create a Customizable Phone Wall Mount consisting of a backplate and a front support structure. Start with a rectangular backplate measuring 60mm wide, 60mm high, and 5mm thick. To this, add a front plate that is 66mm wide, 23mm high, and 3mm thick, positioned so it extends 3mm beyond the left and right edges of the ba...
backplateHeight = 60; backplateWidth = 60; frontPlateHeight = 20; phoneThickness = 9; module plate(){ cube([backplateWidth, backplateHeight, 5]); translate([-3, -3, 5 + phoneThickness]) cube([backplateWidth + 6, frontPlateHeight + 3, 3]); translate([-3, -3, 0]) cube([backplateWidth + 6, 3, phoneThickness + 5]); ...
glb/cad_bef367b0b10c.glb
Create a shower enclosure hook with a uniform thickness of 8.5mm. Start by forming a C-shaped clip consisting of two parallel vertical walls connected by a horizontal base. The inner gap of the clip must be 9.53mm wide to accommodate the glass, and the vertical walls should be 25.4mm high. Each wall and the base must h...
clip_width=9.53; clip_height=25.4; wall_thickness=6; hook_width=8.5; hook_radius=12.7; chamfer=3; union() { difference() { cube([clip_width+wall_thickness*2,clip_height+wall_thickness,hook_width]); translate([wall_thickness,0,0]) cube([clip_width,clip_height,hook_width]); } intersection() { translate([-hoo...
glb/cad_4ed3ccf6fcc2.glb
Create a Rack-Mount Threaded Bar Holder. Start with a central rectangular block 4mm thick, 15.625mm wide, and 27.8125mm high. At the center of the block's thickness, create a cylindrical hole with a 5mm diameter that passes completely through the part. At one end of the block, construct a housing for a nut. This housi...
inch_to_mm = 25.4; depth = 12; distance_hole = 19; nut_diameter = 12.5; bar_diameter = 5.0 / 16.0 * inch_to_mm; hole_diameter = 5; tickness = 4; half_tickness = tickness * 0.5; width = bar_diameter * 2; height = distance_hole + hole_diameter + bar_diameter; clip_height = 5; bar_radius = bar_diameter * 0.5; $fn = 100...
glb/cad_b82dc50228c9.glb
Create a click-in support and base for figurines consisting of two main parts: a base plate and a removable support insert. First, create the base plate as a truncated square pyramid with a bottom footprint of 50mm by 50mm, a height of 4mm, and a top surface measuring 47mm by 47mm (sloping inward by 1.5mm on all side...
bw=50; bl=50; bh=4; bs=1.5; sw=20; sl=40; sb=0.25*bh; sboff=0.7*bs; skey=0.2; object=6; assert(bw>(sw+4),"bw too small"); assert(bl>sl+8,"bl too small"); if(object==1){base();} else if(object==2){basehole();} else if(object==3){support();} else if(object==4){ translate([0,0,0]) basehole(); translate([0,0,10]...
glb/cad_0dd71edf9e80.glb
Create a Universal Powerstrip Bracket by starting with a main rectangular block that is 30mm wide, 36.5mm deep (strip thickness plus two 4mm walls), and 58.5mm tall (strip height plus two 4mm walls). From this block, remove a central rectangular volume to create a slot for the powerstrip that is 22mm wide (30mm minus...
has_button_port = true; has_cable_port = true; strip_y = 28.5; strip_z = 50.5; bracket_x = 30; wall_thickness = 4; cable_y = 7.1; cable_z = 0; cable_diameter = 12; cable_radius = cable_diameter / 2; button_y = 7.1; button_z = 22.7; button_diameter = 12.5; button_radius = button_diameter / 2; screw_diameter ...
glb/cad_092ddadb2a89.glb
Create a HobbyKing Mini MWC case by starting with a solid rectangular block measuring 36mm wide, 55mm long, and 15mm high. Hollow out the center of the block with a smaller rectangular cutout measuring 32mm by 51mm by 15mm, starting from a 2mm offset from the edges and the base. Remove additional rectangular sections t...
difference() { cube([36, 55, 15]); translate([2, 2, 2]) { cube([32, 51, 15]); } translate([7.5, -2, 2]) { cube([21, 5, 13]); } translate([7.5, 52, 4.75]) { cube([21, 5, 13]); } translate([0, 19.5, 4.75]) { cube([40, 10, 13]); } translate([-1, 1...
glb/cad_00baf07a1182.glb
Create a HobbyKing Mini MWC case by starting with a rectangular base measuring 36mm by 55mm with a height of 2mm. On top of this base, add a centered rectangular insert measuring 31.6mm by 50.6mm with a height of 1mm. To create the outer walls, add a front bay measuring 20.6mm by 2.2mm with a height of 2.75mm positione...
difference() { union() { cube([36, 55, 2]); translate([2.2, 2.2, 2]) { cube([31.6, 50.6, 1]); } translate([7.7, 52.8, 2]) { cube([20.6, 2.2, 2.75]); } translate([0, 19.5, 2]) { cube([2.2, 10, 2.75]); } translate(...
glb/cad_d5a2f8d838c3.glb
Create a stylized Christmas tree ornament consisting of interlocking spiral arms and rings. Start by generating eight identical spiral arms that wind upwards to a total height of 100mm. Each arm should start at a radius of 30mm at the base and taper inward as it ascends, completing one full rotation. Create a second se...
HEIGHT=100; RADIUS=30; THICKNESS=2; E = 0.1; $fa=3; $fs=1; module piped(from, to, width=1) { translate(from) multmatrix(m=[ [1, 0, to[0] - from[0], 0], [0, 1, to[1] - from[1], 0], [0, 0, to[2] - from[2], 0], [0, 0, 0, 1], ]) translate([0, 0, 0.5]) cube([width, width, 1], center=true); ...
glb/cad_725262e7c01e.glb
Create a parametric solenoid spool consisting of two identical circular bases connected by a central cylindrical sleeve. Each base should be a cylinder with a diameter of 50mm and a thickness of 4mm. From each base, remove a concentric central hole with a diameter of 14mm. Additionally, drill two smaller holes through ...
module solenoid(i_diameter, o_diameter, i_height, base_diameter, base_thickness, in_hole_offset, out_hole_offset, hole_diameter){ union() { base(base_diameter, base_thickness, i_diameter, in_hole_offset, out_hole_offset, hole_diameter); translate([0, 0, base_thickness]) s_cylinder(i_diameter, o_diameter, i_he...
glb/cad_62e643c65461.glb
Create a Snowflake Ornament with a uniform thickness of 3mm. The design is based on two sets of radially repeating text elements. First, create six main branches. Each branch consists of the character "/" in a cursive font with a size of 10.1mm. For each branch, place the character and a mirrored version of it reflec...
main_text = "/"; main_text_size = 10.1; main_text_vertical_offset = 0.1; main_font = "5th Grade Cursive"; main_text_style = ""; main_number_of_branches = 6; additional_text = "MT"; additional_text_size = 5.1; additional_text_vertical_offset = 0.1; additional_font = "5th Grade Cursive"; additional_text_style = "...
glb/cad_2ad24a9666f5.glb
Create a spool holder consisting of a central cylindrical core and two perpendicular support arms. Start by creating a main cylinder with a diameter of 25mm and a total length of 74mm. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a diameter of 17mm and a length of 66mm, leaving ...
D = 25; Th= 4; SL = 62; SS = 3.2; ST = 8; SH = 30; HL = SL+3*Th; EH = 5; sc = (EH+D)/(D); module spoolHolder(){ union(){ difference(){ difference(){ union(){ cylinder(h=HL,r=D/2,$fn=100, center = false); translate([-D/2,0,0]) cube(size = [D,D/4,HL]); translate([0,0,0]) scale([1, sc, 1]) ...
glb/cad_8cbf013a7b51.glb
Create a Dado Box by starting with a central cube of 75mm on all sides, centered at the origin. To this cube, add four protruding cylinders to create interlocking tabs. Position two cylinders along the X-axis at x = ±33.75mm and two along the Y-axis at y = ±33.75mm. Each of these four cylinders must have a radius of 4....
$fn=40; module placeDadoBox(boxSize, dadoSize) { difference() { union() { cube([boxSize, boxSize, boxSize], center=true); translate([boxSize / 2 + dadoSize * 3 / 8, 0, 0]) cylinder(r=dadoSize / 2 * 0.9, h = boxSize + 0.2, center=true); translate([0, boxSize / 2 + dadoSize * 3 / 8, 0]) cylinder(r=dadoSize /...
glb/cad_190a1139be9f.glb
Create a tube organizer consisting of a grid of open-topped rectangular bins arranged in 3 tiers and 5 columns. Each individual bin unit has an outer width of 40mm, an outer depth of 27mm, and a total height that increases per tier. The first tier's outer shell is 34mm tall (33mm inner height plus a 1mm floor). The sec...
Tiers = 3; Across = 5; Inner_Width = 28; Inner_Depth = 25; Inner_Height = 33; Outer_Width = 40; Outer_Depth = 27; Floor_Depth = 1; Tier_Height = 40; union(){ for (a=[1:Across]){ translate([Outer_Width*(a-1),0,0]) tiers() ;} ;} module tiers() { union(){ for (t=[1:Tiers]){ ...
glb/cad_db46bc46df9c.glb
Create a Parametric Dice Tower and Tablet Stand. Start by constructing a hollow vertical dice chute with an inner rectangular cross-section of 50mm by 50mm (based on a 25mm die diameter) and a wall thickness of 2mm. At the top of the chute, add a funnel that widens outward at a 45-degree angle with a depth of 17.19mm t...
design = "stable"; die_diameter = 25; tablet_tilt = 20; tablet_wide = 250; tablet_tall = 153; tablet_deep = 20; tray_width = 50; tray_depth = 25; tray_fingerCutout_enable = true; topfunnel_enable = true; topfunnel_depth = 17.19; topfunnel_angle = 45; support_enable = true; wall_depth = 2; shelfStopper_hei...
glb/cad_c5d98e53ee8b.glb
Create a customizable knob consisting of a wide, fluted head and a central cylindrical axle. Start by creating the knob head with a height of 6mm and a base radius of 25mm. The head should feature 24 evenly spaced, rounded protrusions around its perimeter, created by overlapping scaled circles to give it a gear-like or...
KnobHeight = 6; NumberOfSides=24; radius=25; rimple=0.6; heightAxel = 24; OuterDiameter = 14; InnerDiameter = 8; InsertExtraNut = 0; NutDiameter = 13; NutHeight = 4.6; $fn=72; Cr =radius*sin(180/NumberOfSides); offset= sqrt(pow(radius,2)-pow(Cr,2)); echo(Cr); echo(offset); module oval() { scale([rimple,...
glb/cad_8623b661842f.glb
Create a Calibration Test Print consisting of three thin square plates. Each plate must be 25mm wide, 25mm long, and 0.3mm thick. Position the first square centered on the X-axis at a Y-coordinate of 64.5mm. Position the second square at a Y-coordinate of -64.5mm and an X-coordinate of -47.5mm. Position the third squar...
squareSize = 25; topOffsetY = 153/2; bottomOffsetY= topOffsetY; bottomOffsetX = 120/2; layerThickness = 0.3; translate([0,0,layerThickness/2]) { translate([0,topOffsetY-(squareSize/2),0]) { cube([squareSize, squareSize, layerThickness], center=true); } translate([-bottomOffsetX+(squareSize/2),-(bottomOffset...
glb/cad_a368f982c127.glb
Create a parametric filament spool hub designed to hold a 608ZZ bearing and fit an 8mm rod. Start with a base cylinder of 3mm height and a radius of 30.75mm. In the center, create a vertical hole with a radius of 4.3mm to accommodate the rod. Build a central core to house the bearing. This core consists of a cylinder ...
spool_hole_diam = 53.5; spool_wall_thickness=9; r_spool = 45; edge_cut=1; h = 20; w = 20; br = 11.1; bh = 7; ir = 4.3; t = 4; e = 0.02; $fn = 64; module cutouts() { cube([5,100,50], center=true); cube([100,5,50], center=true); rotate([0,0,45]) cube([5,100,50], center=true); rotate([0,0,45]) cube([100,5,...
glb/cad_f167b509d457.glb
Create a Sorting Tray consisting of a main body, a removable gate, a separator, and a stylus. The main body is a rectangular box with dimensions 120mm in length, 90mm in width, and 10mm in depth, with a wall thickness of 2mm. The interior is hollowed out, leaving a floor 2mm thick. At the bottom, incorporate a bevel ...
$fn = 30; $EC = .3; Body = true; Stackable = true; Stylus = true; Gate = true; Separator = true; Length = 120; Width = 90; Depth = 10; Thk = 2; Port_W = 30; Port_L = 30; Depth1 = Depth-Thk; Body_Dim = [Length,Width,Depth]; if (Body) Body(); if (Separator) color("red") Separator(); if (Sty...
glb/cad_c78a6b589b8f.glb
Create a cabinet hook by constructing a flat, U-shaped bracket. Start with a solid rectangular base measuring 110mm in width and 60mm in depth, with a uniform thickness of 4mm. From the center of this base, remove a rectangular section measuring 70mm in width and 40mm in depth to create the inner opening, leaving two l...
Size=70; Heigth=40; Leg_Width=20; Thickness=4; Handle=true; boden(Size, Heigth, Leg_Width, Thickness, Handle); module boden(S, H, L, T, HandleFlag) { union() { color("pink"){ translate([-(S+2*L)/2,-(H+2*L)/2,0]) difference() { cube([S+2*L,H+2*L,T]); translate([L,L,-T]) cube([S+0.01,H...
glb/cad_e54cbc23914a.glb
Create a Lighting Element bracket consisting of a hexagonal base with a central circular cutout and integrated snap-fit hinges. Start by creating a hexagonal plate with a total height of 8mm. The outer boundary is a hexagon with a radius of approximately 20.36mm. In the center, remove a cylindrical hole with a radius...
module nub(h=2,k=5,r=10,r1=5,l=1.2){ difference() { union(){ cylinder(k,r1,0,$fn=30); translate([0,0,-h]){ cylinder(r=r,h=h,$fn=30); translate([0,-r,0]){cube([r+l,2*r,h]);} translate([-r,0,0]){cube([r,r,h]);} } } translate([0,0,-h]){cylinder(k,r1,0,$fn=30);} } } module rack(n=5,space=4,clear=0.4,r=...
glb/cad_fedadcc0a2db.glb
Create a mock LED model by stacking three geometric primitives along a central vertical axis. Start with a cylindrical base that has a diameter of 6mm and a height of 1mm. Directly on top of this base, center a second cylinder with a diameter of 5mm and a height of 8.6mm. Finally, cap the structure by placing a sphere ...
led="3mm"; led_d=4.7; led_h=5.5; base_d=6; base_h=1; $fn=60; module END_OF_VARS(){}; presets=[ ["3mm",3,4.49,3.73,1], ["5mm",5,8.6,6,1], ["8mm",7.8,9,9.2,2] ]; module draw_led(led_d,led_h,base_d,base_h){ cylinder(d=base_d,h=base_h); translate([0,0,base_h]) cylinder(d=led_d,h=led_h); translate([0,0,led_h...
glb/cad_911e996c1c16.glb
Create a Soviet R-7 rocket model by stacking several geometric primitives. Start with a central main body consisting of a cylinder 65mm tall with a diameter of 7mm. On top of this, add a conical transition section 10mm high that expands from a 7mm diameter to a 10mm diameter. Above that, place a second cylinder 20mm ta...
$fa=1; $fs=0.05; difference() { union() { translate([0,0,70]) cylinder(h=8, d1=8.5, d2=0); translate([0,0,50]) cylinder(h=20, d1=10, d2=8.5); translate([0,0,40]) cylinder(h=10, d1=7, d2=10); cylinder(h=65, d=7); for(i = [0:3]) { rotate(i * 360 / 4, [0,0,1]) { translate([0,9,0]) { hu...
glb/cad_8beaccc28b98.glb
Create a Soviet R-7 rocket model. Start with a central body consisting of a main cylinder 7mm in diameter and 65mm tall. Above this, stack a 10mm tall frustum tapering from 10mm down to 8.5mm, topped with an 8mm tall cone tapering from 8.5mm to a point. Surround the base with four identical booster rockets arranged sy...
$fa=1; $fs=0.2; both(); module both() { body(); translate([0,0,1]) rotate([180,0,0]) boat_tail(); } module boat_tail() { difference() { union() { for(i = [0:3]) { rotate(i * 360 / 4, [0,0,1]) { translate([0,8.56,0]) { difference() { translate([0,0,-4]) rotate([-5,0,0]) ...
glb/cad_83a12607406a.glb
Create a Parametric Focus Extender consisting of a hollow cylindrical assembly. Start by creating a base screw thread with an outer diameter of 42mm, a height of 5mm, and a pitch of 0.75mm. Above this thread, add a main cylindrical body with an outer diameter of 45mm and a length of 90mm. At the top of the assembly, at...
$fa = 1; $fs = 0.4; include <threads.scad> thread_diameter = 42; thread_height = 5; thread_pitch = 0.75; outer_diameter = 45; length = 90; thickness = 4; holder_diameter = 31.75; holder_length = 22; difference() { union() { translate([ 0, 0, thread_height ]) cylinder(h = length, r = outer_diameter ...
glb/cad_766e1f2f8087.glb
Create a braille generator consisting of a rectangular backing plate with raised spherical dots. The backing plate should be a thin slab with a height of 0.5mm, with its total length automatically adjusting to fit the generated text, including one empty braille cell of padding on both the left and right ends. The brai...
dot_height = .5; dot_diameter = 1.5; dot_radius = dot_diameter/2; dot_dist_same_cell = 2.5; dot_dist_next_cell = 6.1; dot_dist_next_row = 10; line_one = "H3llo"; add_line_two = true; line_two = "W0rld!"; add_line_three=false; line_three = ""; add_line_four =false; line_four= ""; Backing_plate=true; braille...
glb/cad_313481da23b3.glb
Create a stackable container with a total height of 56mm, a width of 42mm, and a length of 83mm. The outer shell should be a rounded rectangle with a corner radius of 5mm. The walls and the base should have a thickness of 1.2mm. Hollow out the interior of the container to the same rounded rectangular profile, leaving...
H = 56; N = 2; W = 42; L = 83; nozzle = 0.6; T = 2*nozzle; TB = 1; R = 5; S = 0; C = 1; l = 0.5; D = 0; Sep = 1; TS = T; $fn=100; module round_rect_shape(w=W,l=L,radius=R) { w = w - 2*R; l = l - 2*R; points = [ [0,0,0], [w,0,0], [0,l,0], [w,l,0] ]; translate([R, R, 0]) projection(cut ...
glb/cad_ad9ab078b8e3.glb
Create a customizable pedestal consisting of a circular platform supported by a decorative base. The platform is a cylinder with a diameter of 50mm at the bottom and 46mm at the top, and a height of 3mm. The base is composed of three identical support structures arranged symmetrically every 120 degrees. Each support ...
$fn=60; $EC = 0.3; Platform = true; Base = true; Height = 20; PostD = 4; Size = 1; Toe_PL = [[5.5,23.3,0],[3.8,25,0],[10.9,6,0],[9.,6.2,6.6],[8.,6.2,7.1],[4.5,23.5,2.1],[3.6,23,3.1]]; SEC = (Size >1)? $EC/Size: $EC; scale(Size) { if (Base) Base(); if (Platform) Platform(); } module Platform() { ...
glb/cad_e113e9b9851c.glb
Create a cigarette filter adaptor consisting of three stacked coaxial sections. Start with a base cylinder 10mm high with an outer radius of 5.3mm and a concentric inner hole 10.01mm high with a radius of 4.5mm that tapers slightly to 4mm at the top. On top of this base, add a transition piece 2mm high. This piece sh...
mp_inner = 9; mp_len = 10; strength=0.8; color("Red",1) difference() { cylinder(r = (mp_inner/2)+strength, h = mp_len, center = true, $fn=100); cylinder(r1 = mp_inner/2, r2 = mp_inner/2-0.5, h = mp_len+0.01, center = true, $fn=100); } transition_length=2; translate( [0, 0, (mp_len/2)+(transition_length/2)] ) col...
glb/cad_25743ebf0410.glb
Create a Cross Tubular Frame Joint consisting of two mirrored clamping halves. Each half starts as a cylinder with an outer diameter of 25.4mm and a height of 25.4mm, using 30 facets for its circular profile. Remove a central cylindrical core with a diameter of 15.8mm and a height of 50.8mm to create a hollow sleeve. ...
$fn = ($preview)? 30: 90; $EC = .3; Half = false; ID = 15.8; Thk = 4.75; H = 25.4; Sides = 30; Phase = 0; Sep = 0; Angle = 0; Nut_D = 9; Head_D = 9; Shaft_D = 5.5; Max_Inset = 3; OD = ID + 2*Thk; Gap1 = 2.5*ID/16; Gap = (Gap1 < 1.5)? 1.5: Gap1; echo("|-------------------------|") echo("| 25....
glb/cad_7a9b7b766915.glb
Create a wall plate customizer called "Wally with extra depth." Start by creating a main rectangular plate with a height of 114.3mm and a thickness of 6mm. The plate should feature beveled edges on the top, bottom, and sides. To provide extra depth for shallow electrical boxes, add a recessed extension box to the back...
plate_width = 1; plate_size = 0; 1st_plate = "none"; 1st_plate_bottom_hole = "none"; 2nd_plate = "none"; 2nd_plate_bottom_hole = "none"; 3rd_plate = "none"; 3rd_plate_bottom_hole = "none"; 4th_plate = "none"; 4th_plate_bottom_hole = "none"; 5th_plate = "none"; 5th_plate_bottom_hole = "none"; plate_sticks_ou...
glb/cad_5e67bac19ef8.glb
Create a wall mount for an IKEA Koppla power extension. Start by constructing a main rectangular base that is 57.55mm wide, 20mm deep, and 41.2mm high. From this main body, remove a central rectangular section to create a U-shaped channel that is 53.55mm wide and 20mm deep, leaving two outer walls and a back panel. The...
rotate([90,0,0]){ difference(){ union(){ difference(){ translate([-2,0,0]) cube([53.55+4,2,41.20]); translate([53.55/2,10,21]){ rotate([90,0,0]){ hull(){ translate([0,30,0]) cylinder(d=14, h=20,$fn=100); cylinder(d=14, h=20,$fn=100); } } } } translate([0,0,-2]) cube([53.55,20,2]); translate([-2,0,-2]) cube([2,20,20])...
glb/cad_f004699339e7.glb
Create a Fidget Hinge consisting of two identical mirrored halves connected by a series of interlocking cylindrical barrels. Each half starts with a rectangular plate measuring 80mm in width, 5mm in height, and 10mm in depth. Along the center axis of the hinge, construct a sequence of alternating barrels and sockets. ...
height = 5; width = 80; depth = 10; tolerance = 0.2; enable_bevel = true; module endParams(){} endParams(); param = [ 32, height, width, depth, true, 6, tolerance, 0.3, 0.33, false, 3 ]; difference(){ hinge(param); if (enable_bevel){ translate([-width/2,-(depth+height+toler...
glb/cad_c745c95b1468.glb
Create a Measuring Spoon Lid consisting of two main components: a lid cap and a spoon attachment. First, construct the lid cap. Create a thin cylinder with a radius of 23.65mm and a height of 3mm. Add a cylindrical lip to the bottom of this cap with an outer radius of 23.65mm, an inner radius of 20.65mm, and a depth o...
function us_tablespoon_volume(n) = n * 14786.7648; function us_teaspoon_volume(n) = n * 4928.92159; function measurement_radius(v) = 0.78159 * v^(1/3); $fn = 100 + 0; MEASURMENT_RADIUSES = [ ["0_TBSP", measurement_radius(us_tablespoon_volume(1))], ["1_HALF_TBSP", measurement_radius(us_tablespoon_volume(0.5))], ...
glb/cad_c6b9690969d1.glb
Create a door handle collar by starting with a solid cylinder 22mm in diameter and 10mm in height. Remove a central vertical hole from the top, 17.4mm in diameter and 4mm deep. Create a second, deeper concentric void from the top with a diameter of 14.3mm and a depth of 7.5mm, but restrict this second void to a 100-deg...
use <MCAD/shapes/polyhole.scad> use <MCAD/shapes/2Dshapes.scad> use <MCAD/fasteners/nuts_and_bolts.scad> include <MCAD/units/metric.scad> $fa = 1; $fs = 0.5; outer_d = 22; outer_h = 10; inner_d = 17.4; inner_h = 4; inner_d2 = 14.3; inner_h2 = inner_h + 3.5; shaft_w = 8.3; screw_d = 3.3; screw_size = M3; differenc...
glb/cad_2515e34e5e56.glb
Create a CardPod phone tripod with the overall dimensions of a standard credit card: 54mm wide, 86mm long, and 0.8mm thick, featuring rounded corners with a 4mm radius. The main body is a flat plate with a central hinge area. Create two symmetrical phone-holding slots cut into the upper half of the card. The first sl...
Phone_Thickness = 9.4; Tripod_Base_Width = 40; Holder_Angle_A = 0; Holder_Angle_B = 10; Holder_Angle_A2 = 20; Holder_Angle_B2 = 0; Holder_Distance = 24; Holder_Height = 5; Single_Support = 1; Support_Position = 2; Text = "CardPod"; CardX = 54; CardY = 86; CardZ = 0.8; CardFillet = 4; HingeY = (CardY-Tripod_...
glb/cad_b41d2ba92a31.glb
Create a decorative pipe rosette. Start with a base consisting of a 12-sided prism with a height of 17mm, where the bottom face is a regular dodecagon with a radius of 28mm and the top face tapers to a point. In the center, remove a hexagonal hole with a diameter of 24mm that passes vertically through the entire object...
HoleDiameter=24; NumberOfSidesForHole=6; NumberOfLeaves=12; LeafLength=20; LeafWidth=15; LeafThickness=3; LeafPointyness=4; HalfOrFull="Full"; $fn=15; difference(){ union(){ translate([0,0,-0.1]) cylinder(r1=28,r2=0,h=17,$fn=12); translate([0,0,15]) for(i=[1:NumberOfLeaves]){ rotate([0,27,i*360/NumberOfLeaves]) inter...
glb/cad_3a71c55a5d6f.glb
Create a Xmas Ball Ornament consisting of a spherical cage formed by intersecting spiral bands. The overall structure is based on a sphere with a radius of 37.5mm. Construct the main body by creating 24 spiral arms—12 winding clockwise and 12 winding counter-clockwise—each with a thickness of 2mm. These spirals shoul...
PART = "ball"; HEIGHT=75; RADIUS=30; THICKNESS=2; E = 0.1; $fa=3; $fs=1; module piped(from, to, width=1) { translate(from) multmatrix(m=[ [1, 0, to[0] - from[0], 0], [0, 1, to[1] - from[1], 0], [0, 0, to[2] - from[2], 0], [0, 0, 0, 1], ]) translate([0, 0, 0.5]) cube([width, width, 1],...
glb/cad_5c86b1786c56.glb
Create a cube with equal dimensions of 10mm for its width, depth, and height.
able = 10; baker= 10; charlie = 10; cube([able,baker,charlie]);
glb/cad_f284b544d2a4.glb
Create a replacement Options-Button for a PS4 controller by constructing a tiered cylindrical plunger. Start with a main body consisting of a cylinder with a base diameter of 5.4mm and a top diameter of 4.8mm, extending to a height of 10.2mm. Within this body, remove a concentric cylindrical core with a diameter of 2mm...
$fn=50; rotate([180,0,0]) group(){ difference(){ translate([0,0,-4]) cylinder(d=3.5, h=4); translate([0,0,-5]) cylinder(d=2, h=4); } hull(){ cylinder(d1=5.4,d2=4.8, h=8.4+1.8); translate([0,(9.2-5.4),0]) cylinder(d1=5.4,d2=4.8, h=7.4+1.8); cylinder(d1=5.4,d2=3, h=8.4+2); translate([0,(9.2-5.4),0]) cylinder(d1=5.4,d...
glb/cad_8a8601b680ea.glb
Create a replacement Options-Button for a PS4 controller. Start by constructing a central vertical pillar that is 4mm tall with a diameter of 3.5mm. Around this pillar, build a larger tapered body using a hull operation between two circular profiles: the base is a circle with a diameter of 5.4mm, and the top is a circl...
$fn=50; rotate([180,0,0]) group(){ translate([0,0,-4]) cylinder(d=3.5, h=4); hull(){ cylinder(d1=5.4,d2=4.8, h=8.4+1.8); translate([0,(9.2-5.4),0]) cylinder(d1=5.4,d2=4.8, h=7.4+1.8); cylinder(d1=5.4,d2=3, h=8.4+2); translate([0,(9.2-5.4),0]) cylinder(d1=5.4,d2=3, h=7.4+2); } translate([-2 , -((5.4/2)+0.9) , 0]) c...
glb/cad_3ed135759edb.glb
Create an Omni Wheel Adapter hub by constructing a dodecagonal prism with a diameter of 12.2mm and a total height of 26.6mm. The main body should be composed of three stacked 12-sided sections: a central cylinder of 12.2mm diameter and 20.6mm height, topped and bottomed by two shorter 12-sided transition segments each ...
$fn=50; Radius1 = 5.0/2; Plus_Height = 50; Plus_Width = 2.0*1.0; Overhang = 0.05*1.0; hubDiameter = 12.2; hubHeight = 26.6; difference() { union() { translate([0,0,hubHeight/2-1.55]) cylinder(d1=hubDiameter, d2=hubDiameter-0.5, h=3, $fn=12, center=true); translate([0,...
glb/cad_da7a2cd5611b.glb
Create an Intellivision Cartridge Shell consisting of two mirrored halves. The overall outer dimensions of the shell are 68mm wide, 74mm long, and 15mm high. For each half, create a main body with a wall thickness of 1.6mm. The interior should be hollowed out to accommodate a circuit board that is 58.5mm wide, 37mm lo...
$fn=40; $EC=.3; Front = true; Back = true; Slice1 = false; Slice2 = false; CartWid = 68; CartLen = 74; CartHit = 15; WallThk = 1.6; PCB_Thk = 1.8; PCB_Wid = 58.5; PCB_Len = 37; BackThk = 5.9; Split_H = CartHit-BackThk; FrnThk = Split_H; LblWid = 54; LblLen = 70; PostD = 10; PostInD = 5.8; PostInH = 3; Po...
glb/cad_c1a29219ab3b.glb
Create a Parametric Change Caddy consisting of a circular base and a vertical holder body. Start by creating a solid cylinder for the base with a diameter of 70mm and a thickness of 30mm. On top of this base, add a second cylindrical body with a height of 60mm. The diameter of this upper body should be slightly small...
Penny_Slots = 1; Nickel_Slots = 1; Dime_Slots = 1; Quarter_Slots = 1; Half_Dollar_Slots = 0; Dollar_Slots = 0; Slot_Padding = 0.15; Depth_Type = "Fixed"; Fixed_Depth = 60; Coin_Count_Type = "Quarter"; Coin_Count_Number = 40; Label_Type = "Value"; Label_Size = 5; Label_Pips_Diameter = 2; Base_Thickness = 30; B...
glb/cad_850044485ddb.glb
Create a Customizable Vase Spiral Mode Organiser consisting of a grid of 25 open-top rectangular compartments arranged in a 5 by 5 layout. The overall outer dimensions of the block are 156mm in width, 156mm in depth, and 21.12mm in height. Start with a solid base block of these dimensions. The floor of the organiser ...
compartmentSize = [30, 30, 20]; compartmentCount = [5, 5]; nozzleWidth = 0.5; cutWidth = 0.04; layerThickness = 0.28; bottomLayerCount = 4; innerWallWidth = nozzleWidth * 2 + cutWidth; bottomThickness = layerThickness * bottomLayerCount; totalSize = [ (compartmentSize[0] + innerWallWidth) * (compartmentCount[0] - ...
glb/cad_beab51096354.glb
Create a VESA adapter for a Raspberry Pi aluminum enclosure. Start by creating a flat rectangular base plate with a thickness of 2mm, measuring 100mm by 100mm. At each of the four corners of this base plate, center a circular hole with a diameter of 3.525mm to serve as the VESA mounting points. To secure the Raspber...
include <MCAD/MScrew.scad> vesaScrewDia=3.525/2; vesaScrewSpacing=100; baseThickness=2; encOuterWidth = 94.5; encOuterHeight = 72.5; encInnerWidth = encOuterWidth; encInnerHeight = 60.4; encScrewInset = 3.0/2; encInnerOffset = encScrewInset + ((vesaScrewDia*2)/2); module makeBaseplate() { difference() { color("re...
glb/cad_030f4066abcb.glb
Create a Phone Charging Caddie consisting of three identical handset cradles arranged side-by-side. For each cradle, start with a main outer block measuring 58mm wide, 28mm deep, and 33mm high. Hollow out the center to create a pocket 52mm wide and 22mm deep, leaving a wall thickness of 3mm. At the rear of each cradl...
number_of_handsets = 3; handset_width = 52; handset_depth = 22; cradle_depth = 30; wall_thickness = 3; for(i=[1:number_of_handsets]) { translate([i*(handset_width+wall_thickness*2),0,0]) handset(i); } module handset() { handset_cradle(); powersupply_support(); cradle_base(); } module handset_cradle(...
glb/cad_bdd39198b05b.glb
Create a drive coupler for a sumo bot. Start by building a base cylinder with a radius of 5mm and a height of 16mm. On top of this base, add a truncated cone that transitions from a radius of 5mm at the bottom to 7.5mm at the top over a height of 5mm, positioned to start at a height of 10mm. Above the cone, place a cyl...
$fn=30; difference(){ union(){ translate([0,0,15])cylinder(r=7.5, h=22); cylinder(r=5, h=16); translate([0,0,15])cylinder(r=7, h=26, $fn=6); translate([0,0,10])cylinder(r1=5, r2=7.5, h=5); } difference(){ translate([0,0,-1])cylinder(r=2, h=16, $fn=30); translate([0,2.5,8])cube([4,2,16], center=true); } translate([0,0,3...
glb/cad_2e5bc5bded72.glb
Create a battery mount for a sumo bot. Start with a solid rectangular block measuring 40mm in width, 30mm in depth, and 17mm in height. From this block, remove a rectangular section measuring 42mm by 3.7mm by 15mm, positioned at x=-1, y=3, and z=3. Additionally, remove a second rectangular section measuring 42mm by 40m...
module batterymount() { difference(){ cube([40,30,17]); translate([-1,3,3])cube([42,3.7,15]); translate([-1,9.7,3])cube([42,40,15]); translate([12,-1,10])rotate([0,90,90])cylinder(r=2.5, h=15, $fn =7); translate([28,-1,10])rotate([0,90,90])cylinder(r=2.5, h=15, $fn =7); } } batterymount();
glb/cad_31ceb4105792.glb
Create a battery mount for a sumo bot. Start with a main rectangular block measuring 18mm wide, 6mm deep, and 32mm tall. Attached to the side of this block, add a second rectangular slab measuring 22mm wide, 6mm deep, and 10mm tall, positioned 11.5mm up from the base. On the side of the main structure, integrate a cyl...
module batterymount() { rotate([90,0,0]){ difference(){ union(){ cube([18,6,32]); translate([22,0,16.5])rotate([0,90,90])cylinder(r=5, h=6, $fn =20); translate([0,0,11.5])cube([22,6,10]); } translate([22,-1,16.5])rotate([0,90,90])cylinder(r=2.25, h=15, $fn =20); translate([-1,3,-1])cube([16,3.7,42]); translate([10,-1,...
glb/cad_1f8c3e5b8eea.glb
Create a battery mount for a sumo bot. Start with a rectangular base block measuring 29mm by 6mm by 32mm. From this base, remove a rectangular section measuring 16mm by 3.7mm by 42mm, positioned starting at x=-1, y=3, and z=-1. Within the remaining structure, create three holes that pass through the block along the y...
module batterymount() { rotate([90,0,0]){ difference(){ cube([29,6,32]); translate([22,-1,16.5])rotate([0,90,90])cylinder(r=4, h=15, $fn =20); translate([22,-1,8])rotate([0,90,90])cylinder(r=2, h=15, $fn =20); translate([22,-1,25])rotate([0,90,90])cylinder(r=2, h=15, $fn =20); translate([-1,3,-1])cube([16,3.7,42]); tra...
glb/cad_92db3b516513.glb
Create a hexagonal hub for a sumo bot. Start by creating a hexagonal prism with a radius of 7mm and a height of 4mm. Centered within this prism, create a square hole that passes completely through the top and bottom faces. The square hole should have a width and depth of 3.175mm and a total height of 40mm to ensure it ...
$fn=30; difference(){ cylinder(r=7, h=4, $fn=6); cube([3.175,3.175,40], center=true); }
glb/cad_cee22f961bac.glb
Create a custom grid consisting of a network of thin walls. The grid should have a total length of 80mm along the X-axis and 40mm along the Y-axis, with a uniform wall height of 2mm and a wall thickness of 0.4mm. Construct the grid by placing parallel walls every 4mm. First, create a series of longitudinal walls alon...
$fn=200; grid(thickness,distance,height,length_x,length_y); module grid(thickness,distance,height,length_x,length_y){ union(){ for(posic = [thickness : distance : length_y+thickness]){ translate([thickness,posic,height])rotate([-90,0,-90]) cube([thickness,height,length_x],false); }; ...
glb/cad_325544f642f1.glb
Create a cylinder with a height of 20mm and a diameter of 20mm, using a 64-facet resolution for the circular cross-section. To apply a wood-like texture to the vertical sides, carve a series of parallel, diagonal grooves into the outer surface. These grooves should be created by subtracting thin rectangular slices, eac...
module wood_texture(size, depth=0.2, width=0.5, spacing=1.65, angle=6, disable=false, fn=4){ undersize = 0.6*width; if(disable){ children(0); }else if($preview){ intersection(){ union(){ resize([size.x-2*depth-undersize, size.y-2*depth-undersize, size.z]) ...
glb/cad_20b6c37e8a05.glb
Create an accessible keyboard cover by starting with a solid rectangular plate measuring 258mm in width, 174mm in height, and 2mm in thickness. From this plate, remove a grid of 36 rectangular holes to create 36 individual buttons arranged in 6 columns and 6 rows. Position the grid so that the left and right margins ...
total_width = 258; total_height = 174; thickness = 2; number_columns = 6; number_rows = 6; left_margin = 25; right_margin = 25; top_margin = 36; bottom_margin = 36; horizontal_gap = 5; vertical_gap = 5; module makebuttons(number_columns,number_rows,left_margin,top_margin,button_width,button_height,horizontal...
glb/cad_4b4bd7f3213a.glb
Create a fruitfly trap consisting of a conical body and a threaded lid. The main body is a hollow cone with a total height of 55mm. The base of the cone is a circular rim with an outer diameter of 53mm (52mm plus 0.5mm clearance) and a wall thickness of 1.2mm. The interior of the cone tapers upward to a small circular ...
outer_thread_diameter = 52; height = 55; thread_starts = 4; lid_inner_height = 11; fa_final = 2; fs_final = 0.5; fa_preview = 9; fs_preview = 1; $fa = $preview ? fa_preview : fa_final; $fs = $preview ? fs_preview : fs_final; module _customizer_end() {} CLEARANCE = 0.5; CHAMFER = 0.6; RIM_WIDTH = 5.5; WALL_T...
glb/cad_c59d2bfbf7b5.glb
Create a Keurig Cup Stand by constructing a hollowed-out cylindrical vessel. Start with a solid outer cylinder 30mm high with a diameter of 25mm. From the center of this cylinder, remove a tiered internal void to create the holder. This void begins at the top and extends 18.1mm deep with a diameter of 25.1mm. Above thi...
difference() { cylinder(30,25,20.5); translate([0,0,82]) rotate([180,0,0]) union() { cylinder(62,25.1,18.1); translate([0,0,62]) cylinder(12,18,8); translate([0,0,74]) cylinder(8.01,8,5); } }
glb/cad_9fac366817be.glb
Create a reusable coffee filter cup and filling stand. Start by constructing the main cup body as a hollow cylinder with an outer diameter of 46mm, an inner diameter of 44mm, and a height of 10mm. Inside this cup, build a support basket base. This base consists of a series of thin rectangular slats and cross-bars. Cr...
difference() { cylinder(10,23,23); translate([0,0,-0.01]) cylinder(10.02,22,22); } difference() { union() { for ( y = [-15,-12,-9,-6,-3,-.25,3,6,9,12,15] ) translate([-22,y,6]) cube([44,.5,2]); for ( x = [-12,-6,-.25,6,12] ) translate([x,-22,8]) cube([.5,44,2]); } difference() { cylind...
glb/cad_a9d3b6806ca1.glb
Create a coffee scoop consisting of a hollow cylindrical head and a long handle. For the head, create a cylinder 13mm in diameter and 11mm high with 25 facets. Hollow out the center of this cylinder by removing a smaller cylinder 11.5mm in diameter and 9.5mm high, shifted 1.5mm down from the base. Attach a handle to th...
translate([-60,0,0]){ difference() { cylinder(25,13,11); translate([0,0,-1.5]) cylinder(25,11.5,9.5); } difference() { union() { translate([11.5,0,1]) rotate([0,90,0]) cylinder(120,5,5); translate([131.5,0,1]) sphere(5); } translate([11,-6,-5]) cube([132,12,5]); } }
glb/cad_0147bc4200e2.glb
Create a reusable coffee filter cup consisting of a tiered cylindrical body. Start with a base flange that is 4mm high with a diameter of 56mm (28mm radius). Above this, add a main cylindrical body 62mm high with a diameter of 50mm (25mm radius). On top of the main body, add a tapered section starting with a cylinder 1...
difference() { union() { cylinder(4,28,28); cylinder(62,25,18); translate([0,0,62]) cylinder(12,18,8); translate([0,0,74]) cylinder(8,8,5); } translate([0,0,-0.01]) cylinder(62.01,24,17); translate([0,0,61.99]) cylinder(12.01,17,7); translate([0,0,73.99]) cylinder(8.02,7,4); translate([-15,25,0]) cu...
glb/cad_7f7322895c07.glb
Create a reusable coffee filter cup and accessory set. For the main cup, construct a hollow cylinder with an outer diameter of 61mm and a height of 9mm. The walls should be 2.5mm thick. Inside this cup, place a smaller concentric cylinder with a diameter of 8.2mm and a height of 12.5mm to act as a central pedestal. Cre...
difference() { union() { difference() { cylinder(9,30.5,30.5); translate([0,0,2]) cylinder(8,28.5,28.5); } cylinder(4.1,12.5,12.5); } translate([0,0,-0.5]) cylinder(5.5,12,9); } translate([-9,26,6.6]) cube([18,3,2.4]); translate([-12,26,6.6]) cube([24,1,2.4]); rotate([0,0,120]) translate([-9,2...
glb/cad_7e61782af09a.glb
Create a reusable coffee filter container and cap. First, construct the main container as a hollow cylinder with an outer diameter of 64mm and a height of 88mm, featuring a wall thickness of 1mm. Next, create a separate cap by forming a cylinder with an outer diameter of 66.2mm and a height of 12mm, then hollow out the...
$fn=100; difference() { cylinder(88,32,32); translate([0,0,1]) cylinder(88,31,31); } translate([0,70,0]) difference() { cylinder(12,33.1,33.1); translate([0,0,1]) cylinder(12,32.1,32.1); }
glb/cad_b30f88980112.glb
Create a parametric sponge holder with a uniform thickness of 6.8mm. Start by creating a base rectangular plate that is 1.5mm wide and 27mm long. Attach a square section to the top of this plate that is 10mm wide and 1.5mm thick. From the end of that section, extend a horizontal arm that is 42mm long and 1.5mm thick. A...
z_depth = 6.8; x_depth = 1.5; incassi_w = 10; width1 = 27; height1 = 42; width2 = 16.5; height2 = 200; width3 = 5; incasso3_w = 4; union(){ linear_extrude(height=z_depth) square([x_depth, width1], center = false); translate([x_depth, 0, 0]) linear_extrude(height=z_depth) square...
glb/cad_11f4b8dfd2a1.glb
Create a Prusa i3 spool mount by starting with a main body composed of two joined blocks: a 14x20x14mm cube and a second 14x18x14mm cube attached to the top, rotated 45 degrees along the X-axis. From this combined volume, remove a rectangular section measuring 20x8x10mm positioned at coordinates -3, 3, 8 to create a sl...
translate([0,-33,14]) rotate(a=90, v=[0,1,0])difference() { union() { union() { cube([14,20,14]); translate([0,20,0]) rotate([45,0,0]) cube([14,18,14]); } } union() { union() { translate([-3,3,8]) cube([20,8,10]); translate([-3,7,8]) rotate(a=90, v=[0,1,0]) cylinder(r=4, h=20); } tra...
glb/cad_b5685a02b298.glb
Create a Prusa i3 Spool Mount by starting with a main block that is 14mm wide, 20mm deep, and 30mm high. Attach a second rectangular block to the top of this main body, measuring 30mm wide, 20mm deep, and 10mm high, but rotate it 45 degrees along the X-axis. From this combined volume, remove a rectangular section measu...
translate([10,47,0]) rotate(a=90, v=[1,0,0]) difference() { union() { cube([14,20,30]); translate([-10,0,40]) rotate([0,45,0]) cube([30,20,10]); } union() { translate([3.5,0,0]) cube([7,30,24]); translate([14,0,20]) cube([20,20,10]); translate([-10,10,30]) rotate(a=45, v=[0,1,0]) cylinder(r=3.5, h=20); } }
glb/cad_a133eb64e709.glb
Create a Spool Adapter consisting of two stacked cylindrical sections with a central hole. First, create a wide, thin base cylinder with a diameter of 36mm and a height of 5mm. On top of this base, center a second cylinder with a diameter of 31mm and a height of 10mm. Finally, bore a vertical hole completely through th...
shaftSize = 8; spoolOpeningSize = 31; spoolDepth = 10; spoolLipSize = spoolOpeningSize + 5; spoolLipDepth = 5; translate([0,0,0]) rotate(a=0, v=[0,0,0]) difference() { union() { translate([0,0,spoolLipDepth]) cylinder(r=spoolOpeningSize/2, h=spoolDepth); cylinder(r=spoolLipSize/2, h=spoolLipDepth); } union() {...
glb/cad_8018fede086e.glb
Create an SMT pick and place vacuum hand picker handle. The main body is a revolved profile with a total height of 116.01mm and a maximum diameter of 16mm. At the top of the handle, create a tapered tip 9mm high, transitioning from a bottom diameter of 4.5mm to a slightly smaller top diameter. Add a support ring with...
$fn=72; enable_release_hole = 1; enable_cross_cut = 1; contour_file_name = "handle_contour.dxf"; eps = 0.01; eps2 = 2*eps; dxf_import_y_offset = 197.02; body_height = 116.01; body_max_diameter = 16; release_hole_offset = 14; release_hole_diameter = 2; tip_bottom_diameter = 4.5; tip_height = 9; tip_taper_perce...
glb/cad_9a4b0db3d67d.glb
Create an SMT pick and place vacuum hand picker handle. Start by constructing the main body, which consists of a base and a grip. The base is a truncated sphere with a diameter of 52mm and a height of 13mm, blended into a cylinder with a diameter of 26mm. Above this, create a grip section that transitions into a bulbou...
$fn=72; eps=0.01; eps2 = 2 * eps; enable_cross_cut = 0; bump_sphere_diameter = 15; bump_support_height = 3; bump_root_height = 9; bump_stretch_factor = 1.5; bump_root_diameter = 8; base_diameter = 26; base_height = 13; connector_height = 10; connector_diameter = 5.3; air_path_diameter = 3.5; module donut(r1, r2) { ...
glb/cad_2779192669ba.glb
Create a 3D Tux Logo by extruding a flat, stylized penguin silhouette to a height of 3mm. The overall figure should be scaled so that the total height of the penguin is 50mm. The shape is defined by a complex outer boundary forming the penguin's body, wings, and head, with internal cutouts to create the distinct whit...
demo=1; module Tux(h=2,size=50) { factor = size/50; scale ([factor,factor,1]) linear_extrude(height=h) polygon(points=[[-0.6833382,26.32171],[1.106461,26.21181],[2.566561,25.89781],[3.885361,25.37971],[4.96866,24.72031],[5.910662,23.87251],[6.67996,22.78921],[7.166662,21.70591],[7.417862,20.62261],[7.606...
glb/cad_2261f7c584d8.glb
Create a Cube Gears mechanical assembly consisting of eight bevel gears and a central hub. The overall assembly fits within a 50mm cube. First, create a central octahedral hub by intersecting three 50mm cubes, each rotated 90 degrees relative to the others. Drill a 3mm diameter hole through the center of this hub. Co...
use <MCAD/involute_gears.scad> twogears(); cs=50; rf1=0.72*cs; cp=1/3; td=3; cd=4; hd=7; Ls=20; ps=10; $fs=td/6; n1=18; n2=9; r1=0.7493; r2=0.3746; dc=rf1/sqrt(1-pow(r1,2)); theta=asin(1/sqrt(3)); pitch=360*r1*dc/n1; rf2=sqrt(pow(dc,2)-pow(r2*dc,2)); phi1=90/n1; phi2=90/n2; module twogears(){ center(); rotate(a...
glb/cad_4502e1df56ed.glb
Create a crank sprocket with an outer diameter of 60mm and a thickness of 3mm. The main body is a cylinder with a central core diameter of 6.75mm. Add a central hub by creating a cylinder with a height of 3.5mm and a radius of 7.75mm (core diameter plus 1.3mm) that sits on top of the main body, centered at the origin...
module crankSprocket(OD, thickness, linkOD, coreDiameter,sprocketScalar, numberOfHoles,holeSize=3.5,res=64){ difference(){ union(){ translate([0,0,-thickness/4]) cylinder(center=true, h= thickness/2, r1=OD/2, r2=(OD+1)/2, $fn=res); translate([0,0,thickness/4]) cylinder(center=true, h= thickness/2, r1=(...
glb/cad_eff56803e201.glb
Create a mechanical crank for a linkage system. Start with a central rectangular bar that is 75mm long, 13mm wide, and 5mm thick. At both ends of this bar, center a cylinder with a radius of 6.5mm and a height of 5mm. At one end of the bar, construct a mounting hub by adding a cylinder with a diameter of 3mm and a hei...
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_a03914e471e1.glb
Create a 2.5-inch HDD tray by starting with a base rectangular block measuring 135mm x 113mm x 13mm, centered on the origin. Hollow out the center of this block by removing a central volume of 135mm x 70mm x 13mm, and further remove a wide central slab of 135mm x 90mm x 6mm to create a shallow tray structure. Carve out...
module kelkka() { $fs=0.9; difference() { cube([135,113, 13], center = true); union() { translate([1,0,1]) cube([135, 70, 13], center = true); translate([0,0,5]) cube([135, 90, 6], center = true); translate([0,45.5,1]) cube([135, 18, 13], center = true); translate([0,-45.5,1]) cube([...
glb/cad_7e3b1248882b.glb
Create a picture frame with an overall outer dimension of 155mm by 130mm and a thickness of 15mm. The frame consists of a rectangular border with a width of 15mm. Carve out a central rectangular opening measuring 125mm by 100mm that extends to a depth of 10mm from the front face, leaving a 5mm deep ledge at the bottom....
use <utils/build_plate.scad>; picture_width=125; picture_height=100; frame_width=15; frame_thickness=15; stand="yes"; stand_tilt=15; frame_lip=7; frame_depth=5; build_plate(3,230,200); difference() { translate([-(picture_width/2+frame_width),-(picture_height/2+frame_width),0]) linear_extrude(height=frame_thic...
glb/cad_c705d893581d.glb
Create four spiral towers, each composed of a vertical stack of square prisms. Each individual prism must have a side length of 10mm and a height of 3mm. To form a tower, stack these prisms such that each subsequent prism is placed directly on top of the previous one, shifted upward by 3mm and rotated by 10 degrees aro...
module torre(elementos, lado=10){ altura_elemento = 3; for ( i = [0 : elementos] ){ rotate([0,0,10*i]) translate([0,0,i*altura_elemento]) cylinder(r=lado,h=altura_elemento,$fn=4); } } torre(25); translate([30,50,0]) torre(20); translate([80,70,0]) torre(35); translate([120,20,0]) torre(30);
glb/cad_b7992b8a2db7.glb
Create a Wii wireless sensor bar support consisting of a flat base and two vertical mounting posts. Start by creating a base plate 2mm thick. The base is formed by the convex hull of two cylinders with a 7mm diameter centered at x = -24.25mm and x = 24.25mm, extended to form a rectangular middle section that reaches 21...
$fn=50; d=48.5; bT=2; union(){ supports(d,6,3.2,2.5,2); base(d,7,21,8,3); } module base(d,d1,h,d2,d3){ hull(){ translate([-d/2,0,0]) cylinder(d=d1,h=bT); translate([d/2,0,0]) cylinder(d=d1,h=bT); } difference(){ hull(){ cylinder(d=d1,h=bT); translate([0,h,0]) cylinder(d=d2,h=bT); } tran...
glb/cad_ea92830475ed.glb
Create a Hook and Loop Sanding Disk Organizer consisting of a flat rectangular base and two vertical pegs. Start by creating a rectangular base plate 50.8mm long, 8mm wide, and 2mm thick. At each end of the base, centered along the width, place a vertical peg assembly. Each assembly consists of a main vertical shaft 10...
module pipe(l,r) { assign(distance=l-2*r) { difference() { rotate([180,0,0]) { hull() { translate([0,0,0]) sphere(r=r); translate([0,0,distance]) sphere(r=r); } } translate([-5,...
glb/cad_aa32c675308e.glb
Create a Hook and Loop Sanding Disk Organizer designed for a pegboard. The main body is a vertical backplate 58.42mm wide, 2mm thick, and approximately 78mm tall. Construct six stacked rectangular compartments. Each compartment has an outer height of 15mm and a depth of 50.8mm. The walls of these compartments are 2mm...
NO_COMPARTMENTS=6; SIZE = "600 320 220 180 120 80"; DISK_SIZE=2; CONV=25.4; THICKNESS=2; COMPARTMENT_H=13+(THICKNESS*2); DISK_SIZE=2; BACKPLATE_W=(DISK_SIZE*CONV)+(.25*CONV); NO_COMPARTMENTS=6; HANG_TAB=18; HOLE_RADIUS=3.3; PULLOUT_RADIUS=15; TXT_H_SPACE=4; module make_peg_holes(cp_h) { translate([((BACKPLAT...
glb/cad_2228f281606e.glb
Create two identical bag strap clips. For each clip, start with a central rectangular block measuring 15mm in width, 43.5mm in length, and 9mm in height, centered on the origin. At both the front and back ends of the block, remove a semi-cylindrical cutout with a radius of 4.5mm that spans the full width of the block...
x = 15; y = 43.5; z = 9; union() { intersection() { translate(v = [-(x-3)/2, 0, -(z/6)]) cube(size = [3,(y+20),(z/3)], center = true); union() { translate(v = [-(x-3)/2, -1, 0]) rotate(a=[70,0,0]) cube(size = [10,(y+20),(z/1.5)], center = true); translate(v = [-(x-3)/2, 1, 0]) rotate(a=[-70,0,0]) cube(size = [10,(y+2...
glb/cad_fb76dbc9f6c7.glb
Create a parametric fan duct for a filament cooler. Start with a square base 50mm wide and 4mm thick, featuring rounded corners with a 1mm radius. In this base, center a circular opening with a radius of 22mm and place four mounting holes with a 1.65mm radius, positioned at a pitch of 40mm. Attached to the base, const...
$fn=32; fan_size = 50; hole_pitch = fan_size < 50 ? fan_size-8 : fan_size-10; corner_r = 1; base_thickness = 4; hinge_th = 3; hinge_sp = 3.2; hole_diam = 3.3; hole_r = hole_diam/2; nut_diam = 6.9; wall_th = 1.5; arm_th=8.5; width = fan_size-3; Ho = 0.1; Hi = 0.2; module funnel() { difference() { union() { ...
glb/cad_fba48a7963ad.glb
Create a Customizable Tower of 3D Skill Badges by stacking four individual badge units vertically. Each badge unit is based on a rounded cube with an initial size of 80mm x 80mm and a height of 20mm (25% Z-stretch). For each badge, create a hollowed-out shell by removing a central rectangular volume that is 75% of th...
use <MCAD/boxes.scad> use <utils/build_plate.scad> use <write/Write.scad> debug_flag = false; stack_this_high = 4; echo ( "stack_this_high" , stack_this_high ); initial_cube_size = 80; echo ( "initial_cube_size" , initial_cube_size ); left_side_text = "6050"; echo ( "left_side_text" , left_side_text ); right_side_...
glb/cad_3ce813137590.glb
Create a parametric bearing support. Start with a main cylindrical body that has an outer diameter of 17mm (13mm external diameter plus 2mm walls on each side) and a total height of 9mm. This body should have a central coaxial hole with a diameter of 13mm to accommodate a bearing. On one side of the cylinder, create a...
Resolucion = 100; Diametro_Externo = 13; Diametro_interno = 11; Pared = 2; Alto = 5; Alto_Cabeza_Tornillo_Abraza = 3; Diametro_Tornillo_Abraza = 2.9; Diametro_Cabeza_Tornillo_Abraza = 5.4; Diametro_Tornillo= 2.9; Diametro_Cabeza_Tornillo= 5.4; Radio_Externo = Diametro_Externo/2; Radio_interno = Diametro_interno/2; ...
glb/cad_29d99ebe2f70.glb
Create a serpentine spring with a total length of 50mm, a width of 12mm, and a thickness of 4mm. The body consists of 4 repeating wave cycles. Each wave is formed by a continuous line 2mm thick that oscillates between the outer edges of the 12mm width. The path of the spring is a rounded zig-zag. Each turn is a 90-deg...
Frequency = 4; Length = 50; Width = 12; Thickness = 2; Depth = 4; Angle = 15; Roundness = 0.75; Corner = false; Extension = 6; Centered = true; Design = "Hole"; BoolComp = 0.1; $fa = 12; $fs = 1; Clearance = 0.3; Guides = false; InitialSeg...
glb/cad_87752ed4de72.glb
Create a parametric hand tool organizer consisting of a series of tool slots. For each tool, create a hollow slot with a wall thickness of 1.6mm. The slot is defined by a top length, a bottom length, and a horizontal width. The outer frame of each slot is a polygon with a depth of 90mm, where the top and bottom lengths...
dims = [ [22,16,16,1], [40,13,11,1], [40,13,11,2], [55,16,14,0] ]; depth = 90; thickness = 1.6; screw_size = 3; edge_screw = 1; rotation = 108; plate_length = depth*1.045; function holder_width(index) = dims[index][2]+thickness*2+dims[index][3]; function holder_position(index, sum=0) = index == 0 ? sum...
glb/cad_bb52c73b61cd.glb
Create a Randomized Retraction Test model consisting of a thin base plate and a field of tapered spires. Start by creating a rectangular base plate measuring 29mm by 29mm with a thickness of 0.5mm and rounded corners with a radius of 4mm. On top of this base, place 100 randomly positioned tapered cylinders (spires). E...
_width = 25; _length = 25; _height = 25; _spireCount = 100; _minSpireDiameter = 1; _maxSpireDiameter = 4; _heightDistribution = .25; _sizeDistribution = 2; _baseHeight = 0.5; _eps = 0.1*1; module rrect(h, w, l, r) { r = min(r, min(w/2, l/2)); w = max(w, _eps); l = max(l, _eps); h = max(h, _eps); if (r <=...
glb/cad_7bbc8c24cf1f.glb
Create a laptop camera privacy shield by constructing a hollowed-out rectangular block. Start with a main outer body that is 10mm wide, 18mm high, and 7mm thick. Remove a central rectangular section from this body to create a shell, leaving a wall thickness of 2mm on the sides and a base thickness of 5mm at the bottom,...
lid_thickness = 5; width = 10; height = 15; buldge = 2; rotate([0,90,90]) { difference() { cube([width, height+3, lid_thickness+buldge], center=true); translate(v=[0,-1,0]) cube([width+4, height+2, lid_thickness], center=true); } translate(v=[0,height-(height*0.34),0]) cube([width,5,2],center=true); }
glb/cad_5bf9c7e5c9f9.glb
Create a Dog Chair by constructing a rocking chair frame. Start with a curved rocking rail at the base, formed by a large outer cylinder with a radius of 100mm and a height of 5mm, with a concentric inner cylinder of 97mm radius removed to create a thin curved strip. Build the seat area using a rectangular rail measu...
union() translate([0,0,0]) rotate ([0,0,0]) { translate([-28,0,0]) rotate ([0,0,0]) color([0,1,0]) cube(size = [50,3,8]); translate([-1.5,-30,0]) rotate ([0,0,0]) color([0,1,0]) cube(size = [3,30,3]); translate([-16.5,-30,0]) rotate ([0,0,0]) color([0,1,0]) cube(size = [3,30,3]); translate([13.5,-30,0])...
glb/cad_a76aa176f32d.glb
Create a Dog Chair backrest by starting with a rectangular base measuring 48mm by 47mm with a thickness of 5mm, centered at x=-17, y=-23.5. Remove material to create four small vertical screw holes with a radius of 1mm and a depth of 15mm, positioned at [24, 28], [-9, 30], [24, -13], and [-9, -15] relative to the ori...
union() translate([0,0,0]) rotate ([0,0,0]) { difference() { translate([-17,-23.5,0]) rotate ([0,0,0]) color([0,1,0]) cube(size = [48,47,5]); translate([24,28,2.5]) rotate ([90,0,0]) cylinder (h = 15, r=1); translate([-9,30,2.5]) rotate ([90,0,0]) cylinder (h = 15, r=1); translate([24,-13,2.5]) rota...
glb/cad_ba288aa2e9ba.glb