Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a mounting bracket for Elfa drawer file channels. Start with two vertical rectangular plates, each 3mm thick, 10.5mm wide, and 10.5mm high. Position these plates 10.5mm apart along the x-axis, with the second plate shifted 10.5mm from the first. Connect these plates with a central block that is 10.5mm wide, 10.5...
b_size = 10.5; b_thick = 3; hole_rad1 = 2; hole_rad2 = 1.75; $fn = 50; difference() { union() { cube([b_thick,b_size,b_size]); translate([b_size+b_thick,0,0]) cube([b_thick,b_size,b_size]); } translate([-0.1*b_size,0.5*b_size,0.5*b_size]) rotate([0,90,0]) cylinder(r=hole_rad1,h=2*b_size); } difference() { t...
glb/cad_0f015a9cc10e.glb
Create a two-piece interlocking Lego Heart Necklace. For the first piece, start with a 20mm x 20mm x 3mm centered cube. On the top face, place four cylinders with a radius of 2.35mm and a height of 3mm, centered at coordinates (±4.5mm, ±4.5mm). To create the heart shape, add a cylinder with a 10mm radius and 6mm height...
module heart_male() { difference() { union() { cube([20,20,3], center = true); translate([4.5,4.5,3]) cylinder(r=4.7/2, h=3, $fn=100, center = true); translate([4.5,-4.5,3]) cylinder(r=4.7/2, h=3, $fn=100, center = true); translate([-4.5,4.5,3]) cylinder(r=4.7/2, h=3, $fn=100, center = true); tran...
glb/cad_6505a7ebe197.glb
Create a two-piece interlocking Lego Heart Necklace. Each piece begins with a 20mm x 20mm x 3mm square base. For the first piece, add four cylinders to the top face, each with a radius of 2.4mm and a height of 3mm. Position these cylinders at the coordinates (4.5, 4.5), (4.5, -4.5), (-4.5, 4.5), and (-4.5, -4.5). On ...
module heart_male() { difference() { union() { cube([20,20,3], center = true); translate([4.5,4.5,3]) cylinder(r=4.8/2, h=3, $fn=100, center = true); translate([4.5,-4.5,3]) cylinder(r=4.8/2, h=3, $fn=100, center = true); translate([-4.5,4.5,3]) cylinder(r=4.8/2, h=3, $fn=100, center = true); tran...
glb/cad_a68237b106df.glb
Create a two-piece interlocking Lego Heart Necklace. For the first piece, start with a 20mm x 20mm x 3mm centered cube. On the top face, add four cylinders with a radius of 2.3mm and a height of 3mm, positioned at coordinates (4.5, 4.5), (4.5, -4.5), (-4.5, 4.5), and (-4.5, -4.5). To create the heart shape, add a cyl...
module heart_male() { difference() { union() { cube([20,20,3], center = true); translate([4.5,4.5,3]) cylinder(r=4.6/2, h=3, $fn=100, center = true); translate([4.5,-4.5,3]) cylinder(r=4.6/2, h=3, $fn=100, center = true); translate([-4.5,4.5,3]) cylinder(r=4.6/2, h=3, $fn=100, center = true); tran...
glb/cad_523421d9688c.glb
Create a parametric shelf consisting of a horizontal platform and a curved vertical support. First, create the platform as a rectangular block measuring 120mm x 120mm x 10mm. Apply a corner radius of 5mm to the front corners, while keeping the back edge perfectly flat to sit flush against a wall. On the underside of ...
$fn = 60; platformSize = [120,120,10]; platformCornerRadius = 5; curveWallCorners = 0; supportStyle = 0; supportHollow = 0; supportNumber = 1; supportSize = [60,10,100]; supportOffset = 10; adhesiveStripThickness = .5; usePlatformCutout = 1; platformCutoutDepth = curveWallCorners ? platformSize[1]-2*platfor...
glb/cad_5ad7579187c4.glb
Create a Galaxy SmartTag2 Enclosure consisting of a main container and a separate lid. For the container, create a rounded rectangular block 70mm long, 40mm wide, and 11mm high with a corner radius of 2mm. Hollow out the center to create a cavity for the tag that is 53.2mm long, 29.4mm wide, and 8.3mm deep. Within th...
what_to_generate = "tag-container"; container_w = 40.0; container_l = 70.0; container_h = 11.0; container_r = 2.0; lid_h = 3; gst2_length = 52.6; gst2_width = 28.8; gst2_height = 7.9; wl_play = 0.6; h_play = 0.4; mouth_length = 57.5; mouth_width = 34.0; mouth_radius = 15.0; lip_width = 1.6; lip_height = ...
glb/cad_eaf96d77c95c.glb
Create a letter keychain by starting with a main cylinder that is 20mm in diameter and 7mm high. Subtract a smaller concentric cylinder from the center that is 10mm in diameter and 10mm high to create a ring shape. To form the letter "C", remove a rectangular block measuring 30mm wide, 90mm deep, and 12mm high, positio...
union() { difference() { union() { cylinder(7,20,20); translate([-20,10,0])cylinder(7,5,5); } translate([0,0,-1]) cylinder(12,10,10); translate([6,-40,-1]) cube([30,90,12]); translate([-20,10,-1])cylinder(12,2.2,2.2); } }
glb/cad_c59284a925e1.glb
Create a 3D model of a letter B keychain. Start by forming the main body as a solid block 11mm wide, 40mm tall, and 7mm thick. Shape the right side of this block into two stacked semi-circles to form the curves of the letter B, ensuring the overall height remains 40mm. Cut two holes through the center of the letter to ...
union() { difference(){ union() { cube([11,40,7]); translate([10,24,0]) cube([5,16,7]); translate([15,32,0]) cylinder(7,8,8); translate([10,0,0]) cube([5,24,7]); translate([15,12,0]) cylinder(7,12,12); } translate([6,28,-1]) cube([9,8,12]); translate([15,32,-1]) cylinder(12,4,4); ...
glb/cad_d60ea7212770.glb
Create a letter N keychain by constructing three rectangular prisms, each measuring 10mm wide, 40mm long, and 7mm thick. Position the first prism vertically. Place the second prism at the same location but rotate it 30 degrees around the Z-axis. Position the third prism 21mm to the left of the first along the X-axis. C...
difference(){ union(){ cube([10,40,7]); rotate([0,0,30])cube([10,40,7]); translate([-21,0,0]) cube([10,40,7]); } translate([5,5,-1]) cylinder(12,2.5,2.5); }
glb/cad_5afa353d1356.glb
Create a 3D model of a letter P keychain. Start by forming the main body from two joined sections: a rectangular base measuring 10mm wide, 40mm long, and 7mm thick, and a second rectangular block measuring 16.5mm wide, 24mm long, and 7mm thick, positioned to extend from the first. Attach a cylinder with a radius of 7mm...
union(){ difference(){ union(){ cube([10,40,7]); translate([0,16,0])cube([16.5,24,7]); translate([17,28,0]) cylinder(7,12,12); } translate([10,21.7,-1]) cube([8,13,12]); translate([17,28.2,-1]) cylinder(12,6.5,6.5); translate([4,36,-1]) cylinder(12,2.5,2.5); } }
glb/cad_8121793d3be3.glb
Create a letter keychain in the shape of a stylized "W". Construct the main body by combining four rectangular blocks, each measuring 10mm by 40mm by 7mm. Position the first block vertically. Place the second block at a 50-degree angle relative to the first, overlapping it. Position the third block vertically, offset 2...
difference(){ union(){ cube([10,40,7]); rotate([0,0,50]) cube([10,20,7]); translate([-28,0,0]) cube([10,40,7]); translate([-24.5,7.6,0]) rotate([0,0,-50]) cube([10,20,7]); } translate ([5,5,-1]) cylinder(12,2.5,2.5); }
glb/cad_c014364ee0f7.glb
Create a letter S key chain by constructing two interlocking C-shaped segments. First, create a vertical cylinder with a radius of 10mm and a height of 20mm. From this cylinder, remove a smaller concentric cylinder with a radius of 10mm and a height of 12mm positioned slightly below the base, a cube of 20mm per side to...
union() { difference() { cylinder(10,20,20,$fa=1); translate([0,0,-1]) cylinder(12,10,10,$fa=1); translate([0,0,-1]) cube(20); translate([-15,0,-1]) cylinder(12,3,3,$fa=1); } difference() { translate([30,0,0]) cylinder(10,20,20,$fa=1); translate([30,0,-1]) cylinder(12...
glb/cad_b7ddcecc0a05.glb
Create a letter key chain by forming an L-shaped base. Start by combining two rectangular prisms: one measuring 10mm wide, 40mm long, and 7mm high, and a second prism of the same height measuring 10mm by 20mm, rotated 90 degrees and joined to the side of the first to create the corner. From this combined solid, remove ...
difference(){ union(){ cube([10,40,7]); rotate([0,0,90])cube([10,20,7]); } translate([5,35,-1]) cylinder(15,2.5,2.5); }
glb/cad_04090639936a.glb
Create a dowel drilling guide with a total height of 40mm. The main body is a tapered cylinder that narrows from a base radius of 32mm to a top radius of 24mm. Center a vertical hole through the entire height with a diameter of 8mm. Within this central void, create a wider internal cylindrical chamber with a diameter...
Height=40; cutout_h = 10; CS1=32; CS2=22; ID=22.1; DrillDiam=8; OD=max(CS1,CS2)*2; $fn=40; rotate([180]) difference() { disc(); translate([0,0,cutout_h/2-0.002]) { cube([CS1,OD+10,cutout_h],center=true); rotate([0,0,90]) cube([CS2,OD+10,cutout_h],center=true); } translate([0,0,Height+2.002]) ...
glb/cad_3b486d0dcecf.glb
Create a marker and wipe holder with a total height of 78mm and a wall thickness of 3mm. The main body consists of a large cylindrical section joined to a rectangular block. First, create a cylinder with a radius of 45mm and a height of 78mm. Hollow out the center of this cylinder with a hole of radius 42mm and a hei...
markers = 8; rows = 2; height = 75; wall_thickness = 3; wipe_rad = 42; marker_rad = 9; marker_ridge_height = 5; marker_spacing = 2; precision = 100; nudge = 0.1; marker_size = function() marker_rad * 2 + marker_spacing; marker_block_y_offset = function() -(wipe_rad + wall_thickness); marker_hole_x_offset = ...
glb/cad_5be7484c3388.glb
Create a Universal Battery Adapter extension cap. The object is a rotationally symmetrical disc with a total height of 4mm and a diameter of 18.3mm. The main body is a cylinder with a 1mm chamfer on both the top and bottom edges. To create the central feature, remove two opposing rectangular slots from the body. Each...
layer_height = 0.2; $fa=1; $fs=layer_height; dim_18650 = [18.3, 65.5]; dim_26650A = [26.2, 66.5]; dim_32650 = [32.2, 65.5]; dim_32700 = [32.2, 70.5]; battery_extender(dim_18650, 4); module battery_extender(dim, length = 4, chamfer = 1, slot = [1,3]) { c = chamfer; d = dim.x/2; a = (d - 3*c)/2; b =...
glb/cad_f528a17e7b1d.glb
Create a Kluppenhalter, a holder for a clothes peg, by starting with a central rectangular slab measuring 100mm by 60mm with a thickness of 1mm. Centered on this slab, carve out a rectangular groove that is 20mm wide, 10mm deep, and 3mm high. To create the symmetrical nesting structure, duplicate this slab and groove a...
ws_mid=1; groove_size=[20,10,6]; base_size=[100,60]; ws_layers=groove_size[2]/2; module groove(o=0){ difference() { translate([0+o/2,0,0]) cube(size = [base_size[0]+o,base_size[1]+2*o,ws_layers], center = true); translate([-40,0,0]) cube(size = [groove_size[0],groove_size[1],ws_layers], center = true); } } tra...
glb/cad_ead6b0d80597.glb
Create a Kluppenhalter, a holder for a clothes peg, by constructing a series of stacked rectangular plates. Start with a base rectangular block measuring 60mm wide, 50mm deep, and 3mm high. Centered along the width of this block, remove a rectangular slot 10mm wide and 20mm deep, extending from the front edge to a dept...
groove_width=10; mid_layer_height=1; flat=0; x=[0*flat,65*flat,65*2*flat,65*3*flat,65*4*flat,65*5*flat]; module kluppenhalter(){ translate([x[0],0,0]){ difference(){ cube([60,50,3]); translate([(60-groove_width)/2,0,0]) cube([groove_width,20,3]); }} translate([x[1],0,3]){ difference(){ cube([60,50,3]); transla...
glb/cad_c28120041b66.glb
Create a Plug Follower tool by constructing a hollow cylinder with a height of 60mm and an outer radius of 6.3mm. The interior should be hollowed out by removing a concentric cylinder with a radius of 4.3mm, leaving a wall thickness of 2mm. At the top end of the cylinder, create a rectangular slot that cuts through the...
s398 = 5; s498 = 6.3; s500 = 6.4; s550 = 6.9; style = s498; plug_z = 60; slot_x = style * 2; slot_y = 4; slot_z = 3.5; module plugFollower(height, width) { difference() { cylinder(h=height, r=width); translate(v = [0, 0, -2]) { cylinder(h=height+4, r=width-2); } translate(v = [-slot_x/2,sl...
glb/cad_588b32b34832.glb
Create a Cylinder Wall Mount consisting of a semi-circular bracket and a flat rectangular backplate. First, construct the bracket by creating a hollow cylinder with an outer diameter of 56mm, an inner diameter of 50mm, and a height of 10mm. Cut a section out of this cylinder using a 50mm cube centered on the ring to cr...
$fn=60; bracket_diamiter=50; height=10; bracket_thickness=3; back_width_extra=height; screw_hole_diamiter=6; back_width=bracket_diamiter+(bracket_thickness * 2)+(back_width_extra*2); difference(){ cylinder(r=(bracket_diamiter/2)+bracket_thickness,h=height); cylinder(r=(bracket_diamiter/2),h=height); rotate([0,0,...
glb/cad_57acf6d8fbfc.glb
Create a cardboard spool cap by combining several geometric primitives. Start with a wide, flat base cylinder that is 35mm in diameter and 4mm high, with a 10mm diameter hole bored through its center. Centered on top of this base, add a second, narrower tube that is 10mm high with an outer diameter of 13mm and the same...
module tube(h, id, od) { difference() { cylinder( h = h, r = od / 2, center = true); cylinder( h = h, r = id / 2, center = true); } } module spike() { translate( [0, 0, 5] ) cylinder( h = 10, r1 = 3, r2 = 0, center = true); } spindleDiam = 10; module spoolCap() { union() { tube( h = 4, id = s...
glb/cad_664f5064cd3c.glb
Create a dollar coin wallet holder by starting with a rectangular base measuring 86mm wide, 56mm long, and 2mm thick. Within this base, create six circular holes arranged in two rows of three. Each hole is a tapered cylinder designed to hold a coin; the bottom of each hole has a radius of 13.1mm, while the top opening ...
coin_d = 26.4 + 1; coin_r = coin_d / 2; coin_h = 2; buffer = 0.75; card_w = (3 * coin_d) + (5 * buffer); card_l = (2 * coin_d) + (3 * buffer); card_h = coin_h; difference() { cube([card_w, card_l, card_h]); translate([coin_r+buffer, coin_r+buffer, -1]){ cylinder(r1=coin_r-0.1, r2=coin_r+0.05, h=4); } translat...
glb/cad_55716afdff78.glb
Create a Color Swatch tool with a main rectangular body measuring 64mm by 42mm and a thickness of 2.56mm. The body should have rounded corners with a radius of 1.5mm. On the top surface, center a recessed rectangular channel measuring 58mm by 36mm with a depth of 0.64mm and rounded corners of 1.5mm. Within this recess...
Brand = "Brand"; Color = "Color"; Material = "Material"; Print_Temp = "240C"; $fn = 24; x1 = 64; y1 = 42; z1 = 2.56; d1 = 3; w1 = 3; cd = 0.64; margin = 3; Zmargin = 1.5; module fillet2d(r) { offset(r = -r) offset(delta = r) children(0); } module rounding2d(r) { offset(r = r) offset(delta = -r) children...
glb/cad_3d708912220c.glb
Create a spool suspender holder by combining a mounting base with a cylindrical socket. Start with a flat mounting base consisting of a central rectangular plate 76mm long, 24mm wide, and 3mm thick. Attach three rectangular tabs to this plate along its length: one measuring 2mm by 24mm by 4mm at the far left, one measu...
dowelDiam = 18; dowelAngle = 19.5; sleeveHeight = 20; sleeveThickness = 3; partThickness = dowelDiam + 2 * sleeveThickness; module clippy() { translate([23, 0, -15]) { union() { cube(size = [76, partThickness, 3], center = true); translate([-37, 0, -2]) cube(size = [2, partThickness, 4], ce...
glb/cad_d3667514beea.glb
Create a spool suspender mount consisting of a base and a tilted cylindrical socket. Start by constructing a base assembly centered on the X-axis: combine a central rectangular block measuring 26mm by 24mm by 3mm, a smaller 2mm by 24mm by 4mm block positioned at X-12, a 2mm by 24mm by 10mm block at X12, and a 6mm by 24...
dowelDiam = 18; dowelAngle = 19.5; sleeveHeight = 20; sleeveThickness = 3; partThickness = dowelDiam + 2 * sleeveThickness; module clippy() { translate([0, 0, -15]) { union() { cube(size = [26, partThickness, 3], center = true); translate([-12, 0, -2]) cube(size = [2, partThickness, 4], cen...
glb/cad_16bc76b7b268.glb
Create a spool suspender joint by combining a central spindle holder with two angled dowel sockets. Start with a central cylinder for the spindle holder that has a radius of 12mm and a height of 24mm, oriented along the X-axis. Remove a concentric cylindrical hole from this center piece with a radius of 5mm and a heigh...
spindleDiam = 10; dowelDiam = 18; jointAngle = 39; sleeveHeight = 30; sleeveThickness = 3; partThickness = dowelDiam + 2 * sleeveThickness; module spindleHolder() { rotate(90, [0, 1, 0]) { cylinder(r = partThickness, h = partThickness, center = true); } } module spindleHole() { rotate(90, [0, 1, 0]) { ...
glb/cad_4a2aec29fc5f.glb
Create a parametric bench consisting of five flat boards, each 2420mm long and 4mm thick. Start by placing a horizontal rectangular seating board with a depth of 350mm. To create the support structure, add four angled boards that extend downwards from the seating board. Position two outer feet and two inner feet symm...
bench_length=242.0; seating_height=43; seating_depth=35; board_thickness=4; boards_thickness=board_thickness/10; feet_height=seating_height-boards_thickness; board_surfacic_price=19.50; volumetric_mass_density=450; feet_top_spacing_ratio=.75; feet_top_spacing=seating_depth*feet_top_spacing_ratio; inside_feet_spac...
glb/cad_6f7ca96a52f2.glb
Create a 3D model by finding the intersection of a sphere and a rectangular prism. The sphere must have a diameter of 60mm. The rectangular prism should be centered on the same origin as the sphere, with dimensions of 30mm in width (X-axis), 60mm in length (Y-axis), and 30mm in height (Z-axis). The resulting shape will...
intersection(){ cube([30, 60, 30],center=true); sphere(30); }
glb/cad_0aeedb933fc5.glb
Create a bench hinge for an Urban Arrow Family Cargo bike. Start with a main block that is 30mm wide, 14mm thick, and 50mm high. Round the bottom edge of the block with a radius of 7mm. At an elevation of 14mm, create a horizontal cylindrical hole through the block with a diameter of 10.2mm and a depth of 6mm. To all...
what_to_generate = "bench-hinge_left_opened"; hinge_base_bolt_dia = 10.2; hinge_base_bolt_depth = 6.0; hinge_base_bolt_elevation = 14.0; hinge_height = 50.0; hinge_width = 30.0; hinge_th = 14.0; cutout_offset = 11.0; hinge_hole_scaling = 1.05; bolt_tunnel_pr = 0.97; bolt_tunnel_mid_elevation = 6.4; bolt_tunn...
glb/cad_56d288789c54.glb
Create a slatted frame end cap consisting of a rectangular main box and two protruding attachment plugs. The main box should have outer dimensions of 28mm width, 58mm length, and 12.5mm height. Hollow out the center of the box to a wall thickness of 1.5mm, leaving one of the shorter 28mm sides completely open. On the ...
breite = 28; hoehe=12.5; laenge=58; wandstaerke=1.5; zapfenabstand=38; zapfendurchmesser = 6.65; hauptteilhoehe=8; sperrdurchmesser = 8.6; sperrhoehe=2; konushoehe=5; langloch_laenge=7; langloch_breite=3.5; offset=0.5; $fn=80; difference() { cube([breite, laenge, hoehe],center=true); translate([wandstaer...
glb/cad_9ec41366a285.glb
Create a fan box for a Thing-O-Matic fan by constructing a hollow rectangular shell with an outer dimension of 48mm x 48mm and a total height of 32mm. The walls should be 3mm thick. The bottom of the box is open, and the top is open, leaving a frame-like structure. Remove a central rectangular volume of 46mm x 46mm x...
module fanbox() { translate([0,0,-10]) cube([2,48,11]); difference() { union() { cube([48,48,12]); } union() { translate([1,1,1]) linear_extrude(height=13) union() { square([46,46]); translate([10,-2,0]) square([5,10]); translate([10,40,0]) square([5,10]); } translate([3,3...
glb/cad_98ddefc7de9c.glb
Create two window switch guards with a hollow interior to act as covers. The first guard should have an outer width of 40mm, a depth of 30mm, and a height of 6.75mm. The second guard should be identical in depth and height but have an outer width of 62mm. For both guards, create a shell with a wall thickness of 2.5mm....
$fn=0; $fa=0.01; $fs=0.25; X=[1,0,0]; Y=[0,1,0]; Z=[0,0,1]; module torus(outerRadius, innerRadius) { r=(outerRadius-innerRadius)/2; rotate_extrude() translate([innerRadius+r,0,0]) circle(r); } module outer_roundy_corner(rxy,rz) { translate([-rxy,-rxy,-rz]) { difference() { union() ...
glb/cad_a9a20bfd3917.glb
Create a Promaster USB Port replacement cover. Start by creating a rectangular base plate with a thickness of 2mm. The main body is a rounded rectangular block with a total width of 62mm (from -31mm to +31mm on the X-axis) and a height of 41.66mm (from -20.83mm to +20.83mm on the Y-axis). Apply a corner radius of 4mm t...
$fn=0; $fa=0.01; $fs=0.25; ftrue=false; X=[1,0,0]; Y=[0,1,0]; Z=[0,0,1]; module torus(outerRadius, innerRadius) { r=(outerRadius-innerRadius)/2; rotate_extrude() translate([innerRadius+r,0,0]) circle(r); } module r_torus(outerRadius, tubeRadius) { rotate_extrude() translate([outerRadius-tubeRadius,...
glb/cad_005e7bdbe66f.glb
Create a Cutlery Organizer for a van or RV drawer. Start with a solid rectangular base measuring 313.7mm wide by 464.8mm long with a total height of 73.7mm. From this base, carve out several specialized compartments and slots to hold silverware. Create dedicated cutouts for large forks, small forks, big spoons, and s...
$fn=0; $fa=0.01; $fs=1.0; X=[1,0,0]; Y=[0,1,0]; Z=[0,0,1]; module torus(outerRadius, innerRadius) { r=(outerRadius-innerRadius)/2; rotate_extrude() translate([innerRadius+r,0,0]) circle(r); } module r_torus(outerRadius, tubeRadius) { rotate_extrude() translate([outerRadius-tubeRadius,0,0]) cir...
glb/cad_ecffd8265c5c.glb
Create a Topeak F25 Wedge Pack Fixer. Start with a main vertical cylinder 56mm high with a radius of 6.35mm. Bore a horizontal hole through the center of this cylinder at a height of 28mm with a radius of 2.9mm, extending 14mm from the center. At the top and bottom of the cylinder, remove a central rectangular section ...
res=300; difference(){ cylinder(h=56,r=6.35,$fn=res); translate([0,7,28]){ rotate([90,0,0]){ cylinder(h=14,r=2.9,$fn=res);}} translate([-7,7,6.5]){ translate([7,0,-3.5]){cube([14,7,7],center=true);} rotate([0,90,0]){ cylinder(h=14,r=3.5,$fn=res);}} translate([-7,7,56-6.5]){ translate([7,0,3.5]){cube([14,7,7],cent...
glb/cad_b00bab37e84b.glb
Create a Topeak F25 Wedge Pack Fixer by starting with a solid vertical cylinder 56mm tall with a radius of 6.35mm. Remove a horizontal cylindrical hole with a radius of 2.9mm that passes completely through the center of the main body, positioned 28mm from the base. Additionally, create two smaller circular openings wit...
res=200; difference(){ cylinder(h=56,r=6.35,$fn=res); translate([0,7,28]){ rotate([90,0,0]){ cylinder(h=14,r=2.9,$fn=res);}} translate([-7,7,6.5]){ rotate([0,90,0]){ cylinder(h=14,r=3.5,$fn=res);}} translate([-7,7,56-6.5]){ rotate([0,90,0]){ cylinder(h=14,r=3.5,$fn=res);}} translate([-7,4,13]){ cube([14,3,30]);} }
glb/cad_a6731314dbea.glb
Create a set of tinker toy replacement parts consisting of two long pipes and one central connector hub. For the two pipes, create two hollow cylinders, each 76mm tall with an outer diameter of 9.5mm and an inner diameter of 9mm. For the connector hub, create a central cylinder 13.81mm tall with an outer diameter of ...
d = 9.21; r = d/2; r1 = 9.5/2; module tinkerM() { translate([4.9,0,r]) rotate([90,0,90]) difference() { union() { cylinder(21,r,r); translate([0,0,10]) scale([1,0.96,1]) cylinder(11,r,9.5/2); } translate([0,0,15]) cube([1.3,10,20],true); } } module tinkerF() { difference() { cylinder(d,13...
glb/cad_60c860f65ce3.glb
Create a set of Tinker toy replacement parts consisting of several hollow pipes and a connector wheel. First, create eight identical hollow pipes. Each pipe should be 76mm long with an outer diameter of 9.5mm and an inner bore of 9mm. Next, create a connector wheel. Start with a central cylinder that is 6.2mm high a...
d = 9.21; r = d/2; r1 = 9.5/2; module tinkerWheel() { difference() { union() { difference() { cylinder(6.2,38.33/2,38.33/2); translate([0,0,4.01]) cylinder(3,18,18); } translate([0,0,0.01]) cylinder(6.2,6,6); translate([12.01,0.01,0.01]) cylinder(6.2,6,6); translate([-12,0,0.01]) c...
glb/cad_5aef4edab60d.glb
Create a Tinker toy replacement part consisting of two intersecting cylindrical components. First, create a vertical hollow cylinder with an outer diameter of 13.81mm, an inner diameter of 9.8mm, and a height of 16mm. Cut a vertical slot 2mm wide through the center of this cylinder to create an opening. Second, create ...
module tinkerM() { difference() { union() { cylinder(21,9.21/2,9.21/2); translate([0,0,10]) scale([1,0.96,1]) cylinder(11,9.21/2,9.5/2); } translate([0,0,15]) cube([1.3,10,20],true); } } module tinkerF() { difference() { cylinder(16,13.81/2,13.81/2, true); cylinder(17,9.8/2,9.8/2, true);...
glb/cad_db1b4ce44ca0.glb
Create a 3D sculpture consisting of the intersection of two extruded words. First, create the word "LOVE" using a bold Helvetica font. Extrude this text into a 3D shape where the total width, height, and depth of the bounding box are all equal to 40mm (based on the length of the longest word multiplied by 10mm). Center...
first_word = "LOVE"; second_word = "HATE"; font = "Helvetica"; boldness = 0.5; module Word(word) { resize([size,0], auto=1) linear_extrude(height = size, convexity = 10, center=true) offset(boldness) text(word, size=10, halign="center", valign="center", font = font); } $fn=64; size = ma...
glb/cad_4bcca45c7ffc.glb
Create a PrintrBot Guide Washer by constructing a thin, flat disc with a total height of 1mm and an outer radius of 8mm. Center a circular hole through the entire thickness of the disc with a radius of 2.5mm. Ensure the geometry is rendered with a low facet count so that the edges appear as a polygon rather than a smoo...
difference() { cylinder(r=8,h=1); cylinder(r=2.5,h=1); }
glb/cad_6a40ebcf9190.glb
Create a Parametric Webcam Mount consisting of two interlocking parts: a base and a top bracket. The base is a rectangular block 45mm wide, 50mm deep, and 15mm high. The bottom face is a rounded rectangle with a corner radius of 7.5mm. The base features a cutout on its top surface that is 45mm wide and 48mm deep, lea...
$fn = 40; width = 45; depth = 50; height = 15; overbite = 2; clearanceHole = 10.2; screwDiameter = 6; screwCutoutThickness = 1; fingerCutoutDiameter= depth > width ? width-2 : depth-2; module rotate_about_axis(axis_position, rotation_angles) { translate([axis_position[0], axis_position[1], axis_position[2]]) ...
glb/cad_ef18638aac3c.glb
Create a Customizable & Supportless Tray with a total length of 250mm and a width of 150mm. Start by constructing a rectangular base plate that is 2mm thick. On the top surface of this base, create a drainage pattern consisting of strips 3mm wide with gaps of 10mm between them, oriented at 45-degree angles to form a di...
length=250; width=150; wall_height=10; wall_thick=2; base_thick=2; strip_width=3; gap_width=10; foot_height=5; foot_width=10; x_feet_count=5; y_feet_count=3; union(){ feet(length,width,-foot_height-base_thick/2, foot_width,foot_height,x_feet_count,y_feet_count); translate([0,width/2,-base_thick/2]) rota...
glb/cad_9f0bbe85b6e5.glb
Create a headphone holder consisting of a thick L-shaped base with rounded vertical walls. The base plate is 20mm thick, 40mm wide, and 60mm long. From this base, two vertical walls extend upwards: a back wall 100mm high and a front wall 50mm high. Both vertical walls must have fully rounded top edges with a radius of ...
$fs=.5; $fa=.5; width = 40; hole_size = 3; screw_counter_sync_size=5; back_height=100; front_height=50; thickness=20; bottom_hole_height=40; top_hole_height=80; front_length=60; module curvedCube() { translate([-20,-20,-5])cube([front_length,width,thickness/2]); translate([0,0,thickness/4])cube([front_length,width...
glb/cad_5fd2cc3b95d7.glb
Create a hollow rectangular box for an Art Controller with outer dimensions of 103mm in length, 84mm in width, and 34mm in height. The walls should be 2mm thick, creating an interior cavity of 99mm by 79mm. The top of the box must remain open, though a 4mm thick lip is removed from the top edges, leaving only a 1mm thi...
difference(){ cube([103, 84, 34]); translate([2,3,2]) cube([99, 79, 34]); translate([1,1,32]) cube([101, 82, 4]); rotate([0,90,0]) translate([-20,64,-1]) cylinder(h=8, d=10); translate([25,0,17]) sphere(d=17); translate([75,0,17]) sphere(d=17); } ...
glb/cad_2926fbe39ef9.glb
Create a box for an Art Controller by constructing a rectangular base and a thin outer rim. Start with a solid rectangular slab measuring 103mm by 84mm with a height of 4mm. To create the hollow interior, remove a central rectangular block measuring 99mm by 80mm with a height of 4mm, positioned 2mm from the edges along...
rotate ([180, 0, 0]){ difference(){ union(){ translate([0, 0, 2]) cube([103, 84, 4]); translate([1,1,0]) cube([101, 82, 4]); } translate([2, 2, -2]) cube([99, 80, 4]); translate([5,5,0]) cylinder(h=10, d=2); translate([98,79,0]) cylinder(h=10, d=2); translate([5,79,0...
glb/cad_f3c3c8a132fd.glb
Create a rectangular box for an Art Controller with outer dimensions of 103mm in length, 84mm in width, and 34mm in height. Hollow out the center by removing a rectangular block of 99mm by 80mm by 32mm, positioned 2mm from the length and width edges and 2mm from the bottom, leaving a 2mm thick base and 2mm thick walls....
difference(){ cube([103, 84, 34]); translate([2,2,2]) cube([99, 80, 34]); translate([1,1,32]) cube([101, 82, 4]); } difference(){ translate([95,76,0]) cube([8,8,32]); translate([98,79,10]) cylinder(h=30, d=3); } difference(){ translate([0,76,0]) cube([8,8,32]); ...
glb/cad_9452e42fcadb.glb
Create an adjustable belt tensioner consisting of two connected vertical columns joined by a flat base. Start by creating a base plate 2.7mm thick that connects two circular sections. The first section is a cylinder with a radius of 4.5mm and a total height of 5.95mm. The second section, positioned 9mm away along the x...
$fn=18; base=2.7; offset=9; difference() { union() { hull() { cylinder(r=4.5,h=base); translate([offset,0,0]) cylinder(r=3,h=base); } translate([0,0,base]) cylinder(r=4.5,3.25); translate([offset,0,base]) cylinder(r=3,h=6.5); } cylinder(r=1.8,h=20); translate([0,0,-.5]) cylinder(r=3.3,h=base+1,$fn=6); t...
glb/cad_865746e266f5.glb
Create an adjustable belt tensioner consisting of two connected vertical columns joined by a flat base. First, create a base plate by forming a convex hull between two cylinders: one with a radius of 4.5mm and another with a radius of 3mm positioned 9mm away along the x-axis, both with a height of 2.7mm. On top of th...
$fn=18; base=2.7; offset=9; difference() { union() { hull() { cylinder(r=4.5,h=base); translate([offset,0,0]) cylinder(r=3,h=base); } translate([0,0,base]) cylinder(r=4.5,3.25); translate([offset,0,base]) cylinder(r=3,h=6.5); } cylinder(r=1.8,h=20); translate([0,0,-.5]) cylinder(r=3.3,h=base+1); transla...
glb/cad_727be4462a52.glb
Create a parametric ball bearing with an outer diameter of 22mm, an inner diameter of 8mm, and a total thickness of 7mm. First, construct the races by creating a hollow cylinder with the outer and inner diameters mentioned above and a height of 7mm. Carve a circular groove into the walls of this cylinder to create a ...
YES = 1; yes = 1; NO = 0; no = 1; PI=3.1415926535897932384626433832795; OD = 22; ID = 8; B = 7; cage = YES; balls = YES; calc_no_balls= NO; ball_num_overide = 7; rad_out = OD / 2; rad_in = ID /2; thick = B; body = rad_out - rad_in; rad_split = ((body)/2) + rad_in; rad_ball = body / 4 ; circ_race = PI * 2 * rad_split;...
glb/cad_fbbd6eb7311b.glb
Create a 3D text ship model for a tabletop game. Start by creating a flat, rectangular base plate with a total width of 109mm, a depth of 51mm, and a height of 8.75mm. The base should have a slight chamfer or notch removed from the two corners on one of the shorter ends. Centered on top of this base, add the 3D text "...
ship_mass = 4; text_scale_x = 2.2; text_ship_type = "SUSPICIOUS 4"; ship_height = 10 + (ship_mass * 2); text_font = "Gill Sans Ultra Bold:style=Regular"; text_size = 4; text_scale_y = 1.85+ship_mass; text_scale_z = 1; ship_base_height = ship_height/1.6; ship_aof_height = ship_base_height + 1 + (ship_mass/2); ship_te...
glb/cad_c82e6454b417.glb
Create a Sliding Lid RAMPS 1.4 box by starting with a solid rectangular base measuring 62mm in length, 31mm in width, and 1.5mm in height, centered on the origin. From this base, remove a smaller rectangular volume to create a hollow interior. This cutout should be 51mm long, 31mm wide, and 4mm high, positioned 5mm alo...
difference() { union() { cube([62,31,1.5],center=true); } union () { translate([0,5,-1]) cube([51,31,4],center=true); } }
glb/cad_d2b836ed11c3.glb
Create four identical wall mount discs. For each disc, construct a cylinder with a diameter of 30mm and a height of 1.5mm. Centered within each cylinder, create a square hole that passes completely through the height of the disc; this hole must measure 3mm by 3mm and have a depth of 10mm. Arrange the four completed dis...
module wallmount() { difference() { cylinder(1.5,15,15); cube([3,3,10], true); } } translate([17,17,0]) wallmount(); translate([-17,17,0]) wallmount(); translate([17,-17,0]) wallmount(); translate([-17,-17,0]) wallmount();
glb/cad_bb2712a11b8e.glb
Create a Customizable Corner Bumper by constructing a main body with a width of 25mm, a height of 36mm, and a depth of 25mm. The body should be an L-shaped shell with a wall thickness of 5mm, featuring rounded exterior corners with a smoothing radius of 2mm. The front face of the bumper is reduced in size, with a width...
what_to_generate = "basic-view"; bumper_width = 25.0; bumper_front_width = 13.0; bumper_height = 36.0; bumper_front_height = 13.0; bumper_depth = 25.0; smoothing_radius = 2.0; wall_thickness = 5.0; side_screw_holes_enabler = true; dist_to_front = 15.0; screw1W_dist = 15.0; screw2W_from_s1 = 0.0; screw1H_dis...
glb/cad_d8268f41357a.glb
Create a set of heart-shaped magnetic buttons. For each button, construct a heart shape with a total height of 8.5mm. The main body of the heart should be 7mm thick, with an outer rim or outline that extends to a total height of 8mm and is 2mm wide. Inside this heart, create a cylindrical hole in the center to accomm...
text = "I_Love You _"; neodym_1_diameter = 8.5; neodym_1_height = 3.5; neodym_2_diameter = 5.5; neodym_2_height = 2.5; outline_width = 2; text_font = "knewave.dxf"; text_height = 16; text_space_factor = 0.75; build_shift = 40; link_level = 4.0; big_heart_level = 7.0; big_heart_outline_level = 8.0; small_heart_...
glb/cad_7e4e196247e3.glb
Create a Hall-effect end stop mount for an M8 rod. Start with a base block 15mm wide, 11.2mm deep, and 7mm high. Attached to the side of this block, add a rectangular extension 22.6mm wide, 2.5mm deep, and 7mm high, positioned so it extends the overall width. Integrate a vertical cylinder with a radius of 0.7mm and a h...
$fn=24; module tear(r, h) { union() { cylinder(r=r, h=h); rotate([0, 0, 135]) cube([r, r, h]); } } difference() { union() { translate([1,.5,0]) cube([15, 11.2, 7]); translate([-12+1.4, 17, 0]) cube([24-1.4, 2.5, 7]); translate([-11.5+1.4, 19.2, 0]) cylinder(r=.7, h=7); translate([10,19....
glb/cad_42042ca40d32.glb
Create a stylized owl cable wrapper with a total thickness of 3mm. Start with a central body 100mm wide by 60mm deep. At the top, add two rectangular ears, each 7.5mm wide and 15mm deep, positioned symmetrically 17.5mm from the center. In the middle of the face, add a small triangular nose with a base of 10mm and a hei...
eye_r = 9; eye_distance = 2*eye_r+4; wing_offset = 5; plug_width = 5; plug_height = 22; plug_offset = 13; size_factor = 1; height_size_factor = 1.; difference() { union () { intersection() { union() { cube(size=[100*size_factor, 60*size_factor, 3*height_size_fa...
glb/cad_5fdb9efc0872.glb
Create a Cupcake Gen3 Extruder Controller and Relay Board Mount. Start with a base plate 5mm thick and 8mm wide. The mount features two distinct board mounting areas separated by 18mm. The first area, for the extruder controller, is defined by two holes spaced 62mm apart along the Y-axis. The second area, for the rel...
width = 8; height = 5; standoffheight = 5; relayscrewspacing = 43; ECscrewspacing = 62; mountscrewspacing = 18; boardseparation = 18; difference() { union() { linear_extrude(height = height + standoffheight, convexity = 2) difference() { union(){ translate([-boardseparation / 2, 0, 0]) { for(side = [1,...
glb/cad_a6e709b53799.glb
Create a parametric box frame with overall dimensions of 115mm in length, 93mm in width, and 75mm in height. The frame is constructed from 12 beams, each with a square cross-section of 20mm by 20mm. Every beam must have its four long edges chamfered by 4mm. Position the beams so that their centerlines align with the ...
frame_length = 115; frame_width = 93; frame_height = 75; beam_thickness = 20; beam_chamfer = 4; module parametric_box_frame(box, thickness, chamfer){ length = box[0]; width = box[1]; height = box[2]; beam_thickness = thickness; half_length = length / 2; half_width = width / 2; half_hei...
glb/cad_d013ba6ae8eb.glb
Create a rectangular display frame and mounting bracket for a Waveshare 8-inch display. Start with a main body that is a solid rectangular slab measuring 207mm wide, 154mm high, and 3.5mm thick. Center a rectangular cutout through the body measuring 173mm by 108mm. Around this cutout, create a shallow rectangular rec...
WIDTH=207; HEIGHT=154; THICKNESS=3.5; THICKNESS_PADDED=THICKNESS+2; CUTOUT_WIDTH=173; CUTOUT_HEIGHT=108; INDENT_WIDTH=195; INDENT_HEIGHT=120; INDENT_DEPTH=2; INDENT_DEPTH_PADDED=INDENT_DEPTH+1; SCREW_DIAMETER=5; SCREW_HOFFSET=-3; SCREW_VOFFSET=8; $fn=200; module body() { cube([WIDTH, HEIGHT, THICKNESS], center...
glb/cad_64788bc0120a.glb
Create a mounting bracket for a display with a total width of 220.5mm and a thickness of 1mm. The main body is formed by two overlapping rectangular plates: a bottom plate measuring 220.5mm by 40mm and a top plate measuring 220.5mm by 75mm, centered relative to each other along the X-axis. Remove a central rectangular...
WIDTH=220.5; BOTTOM_HEIGHT=40; TOP_HEIGHT=75; THICKNESS=1; CABINET_HOLE_DIAMETER=4; DISPLAY_HOLE_DIAMETER=3; $fn=250; difference() { union() { cube([WIDTH, BOTTOM_HEIGHT, THICKNESS], center=true); translate([0, (BOTTOM_HEIGHT + TOP_HEIGHT) / 2, 0]) cube([WIDTH, TOP_HEIGHT, THICKNESS], center=true)...
glb/cad_27b56f832066.glb
Create a sweeping name plate featuring the text "YourText" using the Orbitron font. The text should have a height of 16mm. The main body of the text is created by extruding the characters along a circular arc. Position the text so it is centered and then rotate-extrude it around a central axis. The distance from the ...
textstring="YourText"; textsize=16; fontname="Orbitron"; base_radius_add=3; baseheight=1; cutangle=75; text_excenter_factor=1; direction="up"; RoundBase=1; cutcube_x=textsize*(len(textstring)+1); cutcube_yz=textsize*2+text_excenter_factor*textsize; module writetext(textstr, sizeit) { text(textstr,size...
glb/cad_4437dce09f29.glb
Create a Parametric Honeycomb Mesh by starting with a solid rectangular block measuring 80mm in width, 80mm in length, and 5mm in height, centered on the origin. Subtract a repeating grid of hexagonal holes from this block. Each hexagonal hole should have a corner-to-corner diameter of 10mm, with a frame thickness of...
hc_length = 80; hc_width = 80; hc_height = 5; hexagon_diameter = 10; hexagon_frame_thickness = 4; hexagon_chamfer = 1; tolerance = 0.001; hc_box = [hc_width, hc_length, hc_height]; module right_angled_triangle(length) { polygon(points = [[0, 0], [length, 0], [0, length]]); } module hexagonal_grid(box, hex...
glb/cad_a9c4cab88930.glb
Create a stylized human-shaped smartphone holder with a uniform thickness of 7mm. The central body is a rectangle 80mm long and 20mm wide. At the left end, center a cylindrical head with a radius of 20mm. On the face, place two small cylindrical eyes with a radius of 5mm and a crescent-shaped mouth created by subtracti...
$fn=100; thickness = 7; cellphoneWidth = 75; cellphoneThickness = 12; bodyWidth = 20 * 1; difference(){ union(){ difference() { union(){ cube([80,bodyWidth,thickness]); translate([80,0,0]) cylinder(h=thickness, r=10); translate([80,bodyWidth,0]) cylinder(h=thickness, r=(bodyWidth/2)); translate([80,-10,0]) cub...
glb/cad_8764bd484369.glb
Create a smartphone holder base by starting with a rectangular slab measuring 40mm in length, 20mm in width, and 3mm in height. Centered on top of this slab, add a smaller rectangular block that is 15mm long, 15mm wide, and 10mm high, positioned 12.5mm from the front edge and 2.5mm from the side edges. To finish the pi...
$fn=100; bodyWidth = 20; thickness = 7; difference() { union(){ cube([40,bodyWidth,3]); translate([12.5,2.5,0]) cube([15,15,10]); } translate([10,bodyWidth/2,-1]) cylinder(h=thickness+2,r=1.75); translate([10+20,bodyWidth/2,-1]) cylinder(h=thickness+2,r=1.75); translate([15,9,1]) rotate(a=[40,0,0]) cube([10,...
glb/cad_4b7d085051b6.glb
Create a smartphone holder base by starting with a rectangular slab measuring 40mm in length, 20mm in width, and 3mm in height. Centered on top of this slab, add a smaller rectangular block that is 15mm long, 15mm wide, and 10mm high, positioned 12.5mm from the front edge and 2.5mm from the side edges. To create the ph...
$fn=100; bodyWidth = 20; thickness = 7; difference() { union(){ cube([40,bodyWidth,3]); translate([12.5,2.5,0]) cube([15,15,10]); } translate([10,bodyWidth/2,-1]) cylinder(h=thickness+2,r=1.75); translate([10+20,bodyWidth/2,-1]) cylinder(h=thickness+2,r=1.75); translate([15,5,10]) rotate(a=[0,40,0]) cube([10...
glb/cad_fa41802b9d06.glb
Create a smartphone holder base by constructing a T-shaped structure. Start with a main rectangular beam that is 80mm long, 10mm wide, and 8mm high, positioned so its starting corner is at x=5, y=5, and z=0. Attach a smaller perpendicular rectangular block to the front end of this beam, measuring 5mm wide, 20mm deep, a...
difference() { union() { cube([5,20,8]); translate([5,5,0]) cube([80,10,8]); } translate([3,2,-10]) cube([4,3,20]); translate([3,15,-10]) cube([4,3,20]); }
glb/cad_4527cf9aa62f.glb
Create a Printrbot Jr. Filament Guide adapter by constructing a hollow vertical cylinder with an outer radius of 6mm and a total height of 20mm. Center this cylinder on its Z-axis. Remove a smaller internal cylinder with a radius of 4mm and a height of 17mm, also centered on the Z-axis, to create a thick-walled tube. F...
render () { translate([0,0,10]) difference() { cylinder(h=20, r=6, center=true, $fs=0.2); translate([0,0,3]) cylinder(h=17, r=4, center=true, $fs=0.2); translate([0,0,13]) sphere(r=6,center=true, $fs=0.2); } }
glb/cad_a9f3b2af3d61.glb
Create a Tricopter Motor Mount by starting with a main cylinder 18mm high with a radius of 15mm. Remove a central vertical hole with a radius of 4.5mm that passes completely through the height of the cylinder. Create four smaller vertical holes, each with a radius of 1.75mm and a 20-sided polygonal profile. Position ...
difference() { cylinder(h = 18, r=15, $fn=100); cylinder(h = 20, r=4.5); translate([0,-9.5,0]) cylinder(h = 20, r=1.75, $fn=20); translate([0,9.5,0]) cylinder(h = 20, r=1.75, $fn=20); translate([8,0,0]) cylinder(h = 20, r=1.75, $fn=20); translate([-8,0,0]) cylinder(h = 20, r=1.75, $fn=20); translate([-5.75,-18,3...
glb/cad_19ddc47e3687.glb
Create a Tricopter Motor Mount by starting with a main cylinder 18mm high with a radius of 15mm. Remove a central vertical hole with a radius of 4.5mm that passes completely through the height of the cylinder. Create four smaller vertical holes, each with a radius of 1.75mm and a 20-sided polygonal profile; position tw...
difference() { cylinder(h = 18, r=15, $fn=100); cylinder(h = 20, r=4.5); translate([0,-8,0]) cylinder(h = 20, r=1.75, $fn=20); translate([0,8,0]) cylinder(h = 20, r=1.75, $fn=20); translate([9.5,0,0]) cylinder(h = 20, r=1.75, $fn=20); translate([-9.5,0,0]) cylinder(h = 20, r=1.75, $fn=20); translate([-5.75,-18,3...
glb/cad_660978bb4387.glb
Create a flexible coupling with a total height of 50mm and an outer diameter of 25mm. The model consists of two identical end caps connected by a central flexible spring section. Each end cap is a cylinder 10mm high. The bottom cap has a central hole with a diameter of 6mm, while the top cap has a central hole with a ...
D1 = 25; D2 = 6; D2B = 8; H1 = 50; H2 = 10; N = 12; D3 = 3.5; Dnut=6.5; Hnut=2.5; B=8.5; H3=4; SLICES=16; Re = D1/2; Ri = D2/2; Ri2 = D2B/2; fn = 4*N; R3 = D3/2; Rnut=Dnut/2; B2 = B-Ri; Hspring=H1-2*H2; module sq_spring(in_R,out_R,height,rot) { width=out_R-in_R; linear_extrude(height = height, center = ...
glb/cad_9b344a88c41f.glb
Create a laser mount by starting with a cylinder 15mm tall with a radius of 8mm. Attach a rectangular block measuring 14mm wide, 16mm deep, and 15mm tall to the side, centered at the origin but shifted 8mm along the Y-axis. Extend this shape by creating a hull between a 14mm by 1mm by 15mm block at the same position an...
$fn=100; difference() { union() { cylinder(r=8, h=15); translate([0,-8,0]) cube([14,16,15]); hull() { translate([0,-8,0]) cube([14,1,15]); translate([10,-14,7.5]) rotate([0,90,90]) cylinder(r=3, h=1); } } cylinder(r=6.2, h=15); translate([0,-1,0])...
glb/cad_1f64154fd2e1.glb
Create a Piclop camera and laser mount by starting with a main body formed from the union of a cylinder with a 20mm radius and 25mm height, centered on the origin, and a scaled elliptical prism created by scaling a 10mm radius, 25mm high cylinder by a factor of 2 along the X-axis and 1 along the Y-axis, positioned at [...
$fn=100; mirror([1,0,0]) difference() { union() { scale([1,1.5,1]) cylinder(r=20, h=25, center=true); translate([0,-20,0]) scale([2,1,1]) difference() { cylinder(r=10,h=25, center=true); translate([10,0,0]) cube([20,20,25], center=true); } } scale([1,3,1]) cy...
glb/cad_bdbe2c76df81.glb
Create a honeycomb pattern generator for a perforated plate. The pattern consists of a grid of hexagonal holes subtracted from a solid base. Each hexagon is defined by an edge length of 4mm. The walls between the hexagons should have a thickness of 0.8mm (calculated as two 0.4mm print walls). Arrange the hexagons in a...
$print_wall_thickness = 0.4; module honeycomb_pattern( width=undef, depth=undef, height=undef, edge_length=4, wall_count=2, wall_thickness=undef, tolerance=0.01 ) { if (is_undef(width) || is_undef(depth) || is_undef(height)) { echo("Error: honeycomb_pattern() module require...
glb/cad_12515669ce12.glb
Create a leg for a miniITX Thermaltake Suppressor F1 Mini-Tower. Start by constructing a base using a hull that connects a cylinder with a diameter of 27mm and a height of 15mm to a smaller cylinder with a diameter of 25mm and a height of 2mm, positioned 8.5mm below the first. Remove a central cylindrical hole with a d...
$fn=180; translate([0,0, 9.5]) union(){ difference(){ hull(){ cylinder ( h=15, d=27, center=true); translate([0,0, -8.5]) cylinder ( h=2, d=25, center=true); } translate([0,0, 1]) cylinder ( h=14, d=24, center=true); } translate([0,0, 0.5]) difference(){ union(){ cylinder...
glb/cad_e51d97ace475.glb
Create a MeteoStation phone stand. Start with a base plate that is 146mm wide, 73mm deep, and 3mm thick. At the center of the base, create a phone support structure that is 146mm wide and 11mm thick, tilted at a 22-degree angle. Within the base, carve out a circular cavity for a wireless charger with a diameter of 71...
WINDAGE = 0.5; W = 144 + 2; H = 72+1; TH = 9+1; CHARGER_D = 70+1.5; CHARGER_TH = 10+0.5; g7_fix1 = 5; PHONE_ANGLE = 22; THERMOMETER_ANGLE = 30; CHARGER_FLAG = 1; THERMOMETER_FLAG = 1; PEN_STANDS_FLAG = 1; if(THERMOMETER_FLAG==1) translate([-W/2*0.65,30-g7_fix1,10]) difference() { cube([20,20,20], center=true);...
glb/cad_3ed3868a3e2d.glb
The provided data consists of a large set of coordinates and rotation values, which appear to describe a complex 3D geometric structure. Based on the repeated patterns of coordinates, rotations (often in increments of $60^\circ$ or $120^\circ$), and the accompanying images, this data describes a **fractal-like 3D latti...
l = 10; w = 2; h = 4; mark = 2; if (mark==1) linear_extrude(height=h) terone(); else if (mark==2) linear_extrude(height=h) tertwo(); else if (mark==3) linear_extrude(height=h) terthree(); else if (mark==4) linear_extrude(height=h) terfour(); else if (mark==5) linear_extrude(height=h) terfive(); else if (mark==6) ...
glb/cad_0c1c4d666942.glb
Create a knurled hex nut holder by starting with a main cylinder 30mm in diameter and 8mm high, using a 25-facet resolution. Remove a hexagonal hole from the center with a point-to-point diameter of 18mm and a height of 8mm, using a 6-facet resolution for the hexagon. To create the knurled grip, remove 12 equally space...
totd=30; height=8; nutd=18; knurls=12; difference() { cylinder(h=height,r=totd/2,$fn=25); cylinder(h=height,r=nutd/2,$fn=6); for (r=[0:360/knurls:360]) { rotate([0,0,r]) translate([totd/1.8,0,0]) cylinder(h=height,r=(totd/5)/2,$fn=15); } }
glb/cad_22fb1beea723.glb
Create a USB grommet consisting of a flange and a locking ring. First, construct the flange. Create a central cylinder with a radius of 8.8mm and a height of 14.6mm. Add a circular base flange with a radius of 13.8mm and a height of 5mm. At the top of the central cylinder, add a rectangular anti-rotation key measurin...
Show="all"; View="exploded"; ViewUSB="showusb"; MountingHoleD=17.6; HoleR=MountingHoleD/2; PanelH=1.6; PanelBurrBevel=1.5; holeos=0.3; FlangeW=5; FlangeOR=(MountingHoleD+FlangeW*2) /2; FlangeH=FlangeW; FlangeBevel=FlangeW*2/3; KeyW=2; KeyH=4; InternalH=8; ScrewD=2.4; ScrewIR=(ScrewD+holeos)/2; USBX=16.1;...
glb/cad_4b7c168178c7.glb
Create a flexible coupling with a total height of 50mm and an outer diameter of 25mm. The object consists of two identical cylindrical end caps and a central spring section. Each end cap has a height of 10mm. The bottom cap features a central hole with a diameter of 2mm, while the top cap features a central hole with ...
D1 = 25; D2 = 2; D2B = 8; D2S = 20; H1 = 50; H2 = 10; N = 12; D3 = 3.5; Dnut=6.5; Hnut=2.5; B=8.5; H3=4; SLICES=16; Re = D1/2; Ri = D2/2; Ri2 = D2B/2; RiS = D2S/2; fn = 4*N; R3 = D3/2; Rnut=Dnut/2; B2 = B-Ri; Hspring=H1-2*H2; module sq_spring(in_R,out_R,height,rot) { width=out_R-in_R; linear_extrude(he...
glb/cad_ccb852c48827.glb
Create a Wii Nunchuck Interface with a total length of 40mm and a total width of 22mm, maintaining a consistent thickness of 1.14mm. Start by forming a base that consists of two outer rectangular blocks, each measuring 4.5mm by 15mm by 1.14mm, positioned at the far left and right edges. Connect these with a central rec...
length = 40; outerwidth = 22; innerwidth = 13; extwidth = 8; insetwidth = 5.5; groove = 15; conlength = 8.75; difference() { union() { cube([(outerwidth-innerwidth)/2,groove,1.14]); translate([outerwidth-(outerwidth-innerwidth)/2,0,0]) cube([(outerwidth-innerwidth)/2,groove,1.14]); translate([0,conlength,0]) c...
glb/cad_8ab3898e543d.glb
Create a modular loop attachment for a door hanger. Start by creating a trapezoidal base with a thickness of 2.7mm, a length of 13mm, and a width that tapers from 21.3mm at the bottom to 16.3mm at the top. Centered on top of this trapezoid, add a rectangular block measuring 4mm wide, 13mm long, and 6.125mm high. Po...
joinfactor = 0.125; goldenratio = 1.61803399; grabfactor = 0.5; gDoorWidth = 34.5; gHangerWidth = gDoorWidth/goldenratio; gHangerBase = gDoorWidth+grabfactor; gHangerShortLength = gHangerBase; gHangerLongLength = gHangerBase*goldenratio; gGrooveWallHeight = 6; gGrooveWallThickness = 3; gGrooveLength =gHangerShortLen...
glb/cad_2747c16256d9.glb
Create a Mendel Platform Level Tool consisting of a mounting bracket and a sliding rod. First, construct the bracket by combining a central cylinder with a height of 30mm and a radius of 7mm, two smaller cylinders with a height of 5mm and a radius of 7mm positioned 50mm apart (25mm from the center in opposite direction...
module block() { color([0.4, 0.4, 0.4]) translate(v = [0, 0, 0]) cube(size = [200,200,0.01], center = true); color([0, 0.5, 0.8]) difference() { union() { translate(v = [0, 0, 30]) cube(size = [60,90,15], center = true); translate(v = [0, 0, 50]) cube(size = [60,90,15], center = true); translate(v = ...
glb/cad_7248fc12460e.glb
Create a Customizable Filleted Corner Guard consisting of three intersecting beams meeting at a central origin. The beams extend along the X, Y, and Z axes with lengths of 30mm, 40mm, and 50mm respectively. Each beam has a width of 10mm and a wall thickness of 1.5mm. The structure is hollowed out to fit over an orthog...
length_x = 30; length_y = 40; length_z = 50; width_x = 10; width_y = 10; width_z = 10; thickness_x = 1.5; thickness_y = 1.5; thickness_z = 1.5; inner_fillet_x = 3; inner_fillet_y = 3; inner_fillet_z = 3; outer_fillet_x = 4; outer_fillet_y = 4; outer_fillet_z = 4; chamfer_flag = "On"; corner_guard(length...
glb/cad_f5a69cd93186.glb
Create a 4-way hinged baseplate foot consisting of a hinge, a lever, and a wood bracket. First, create the hinge as a vertical block with a width and depth of 40mm and a height of 70mm. Subtract a central vertical channel and two perpendicular slots of 6mm width and 20mm depth from the top to accommodate printer wall...
$fn=48; rt=0.1; i2mm=25.4; lf=0.15; ut=6; fw=40; sh=20; hwd=15; ot=4; ht=6; il=ot+ht/2; pt=.25*i2mm; bt=ht*4+pt; MinimumExtraSpace=4*ht; RequiredHeight=50; ExtraSpaceRequired = RequiredHeight - MinimumExtraSpace; fh=sh+ExtraSpaceRequired; lo=ot+ut*1.5; ch=ut*.7; cw=fw-lo+ch; cd=15; lpr=str("<tr><td align=rig...
glb/cad_7c679488ce2e.glb
Create a hexagonal antiprism bowl with a side length of 40mm and a height of 40mm. The bowl is hollowed out by removing a smaller hexagonal antiprism from the center, with the inner shape having a side length of 38mm and a height of 38mm, shifted 2mm upward along the Z-axis. Decorate the exterior walls of the bowl wit...
use <fish_plaques.scad> lside = 40; height = 40; sc = 0.7; cside = lside*cos(30); ang = atan((lside - cside)/height); echo(lside,lside-cside,ang); difference() { union() { union() { hexagonal_antiprism( lside,height); column_1(6,cside+1.2,29); } column_2(6,cside+1.2,11); } translate([0,0,2]) hexagonal_antiprism( ls...
glb/cad_cb43a7a5a9c3.glb
Create a hexagonal antiprism bowl with a height of 40mm and a base side length of 40mm. The outer shell is a hexagonal antiprism defined by two parallel hexagonal faces: a bottom hexagon centered at the origin and a top hexagon rotated 30 degrees relative to the base, connected by a band of alternating triangles. To cr...
lside = 40; height = 40; difference() { hexagonal_antiprism( lside,height); translate([0,0,2]) hexagonal_antiprism( lside-2,height-2); } module hexagonal_antiprism (l,dz) { rr = l; polyhedron( points = [ [ rr,0 ], [ cos(60)*rr,sin(60)*rr,0], [ cos(120)*rr,sin(120)*rr,0], [...
glb/cad_7d347ce335d2.glb
Create an Egg Painter tool consisting of three main components. First, create two identical vertical rods. Each rod is a composite shape starting with a cylinder 70mm tall with a 3.5mm radius, topped with a wider cylinder 5mm tall with an 8mm radius. Remove a central vertical hole with a 2mm radius from the bottom 75mm...
$fn=60; rods(); translate([0,20,0]) rods(); translate([0,40,0]) holder(); module rods(){ difference(){ union(){ translate([0,0,0]) cylinder(h=70,r=3.5); translate([0,0,0]) cylinder(h=5,r=8); } translate([0,0,0]) cylinder(h=75,r=2); } difference(){ translate([30,0,0]) cylinder(h=5,r1=3.5,r2=8); translate([30,0,2]...
glb/cad_da4d7f400477.glb
Create a "Drop Thing" object by combining a series of concentric rings and twelve radially symmetric teardrop-shaped shells. First, construct a single teardrop shell by merging a sphere with a radius of 20mm and a cone that has a base radius of 17.32mm and a height of 30mm, with its tip pointing upwards. Cut this shape...
module drop() { union() { sphere(r = 20); translate([0, 0, 20 * sin(30)]) cylinder(h = 30, r1 = 20 * cos(30), r2 = 0); } } module half_drop(){ difference() { drop(); translate([-20,-20.5,-30])cube([140,20,150]); translate([-20,0.5,-30])cube([140,25,150]); } } module drop_border(){ difference(){ half...
glb/cad_d26fba1cdfa1.glb
Create a brick wall consisting of 6 horizontal lines of bricks, with 3 bricks per line. Each brick has a nominal length of 25mm, height of 6.5mm, and thickness of 5mm. Maintain a consistent gap of 1mm between all adjacent bricks. The wall is built upon a base layer that is 5mm thick. The bricks are arranged in a runni...
brick_length = 25.0; brick_height = 6.5; brick_thickness = 5.0; brick_length_var_level = 0.01; brick_height_var_level = 0.055; brick_brick_thickness_var_level = 0.075; no_of_bricks_in_line = 3; no_of_brick_lines = 6; gap_between_bricks = 1.0; wall_base_thickness = 5.0; trimming_amount = 0.2; chamfer_diamond_...
glb/cad_0080482df090.glb
Create a Steinmetz Bicylinder by finding the intersection of two identical cylinders. Each cylinder must have a radius of 10mm and a length of 20mm. Position the first cylinder so its central axis runs along the Y-axis and the second cylinder so its central axis runs along the X-axis, ensuring both are centered at the ...
radius = 10; $fn = 128; tricylinder = false; intersection(){ rotate([0,90,0]) cylinder(radius*2,radius,radius, true); rotate([90,0,0]) cylinder(radius*2,radius,radius, true); if (tricylinder) cylinder(radius*2,radius,radius, true); }
glb/cad_9a09f7818a08.glb
Create an inductive LED toy housing consisting of two main concentric cylindrical sections. First, construct a wide, shallow base cylinder with a diameter of 80mm and a height of 1.5mm. Centered atop this base, create a larger main cylindrical body with an outer diameter of 73.5mm and a height of 10.5mm. This main body...
$fn=90; translate([0,0,-18])difference(){ cylinder(d=73.5,h=10.5,center=true); cylinder(d=71,h=11.7,center=true); translate([-33,0,-1])rotate([0,90,0])cylinder(d=3.5,h=8,center=true); translate([-33,0,4])cube([8,3.5,10],center=true); } translate([0,0,-23.5])difference(){ cylinder(d=80,h=1.5,center...
glb/cad_545f7a54f1d5.glb
Create a filament guide clamp by starting with a solid rectangular block 25mm wide, 40mm long, and 7mm high. Center a cylindrical hole with a radius of 12.5mm and a height of 7mm through the block to create a circular opening. To form the guide's walls, ensure the remaining material thickness is 2mm. Cut a rectangular ...
l=40; h=7; w=25; thck=2; ft=1.75; $fn=100; module fillament_clip(l=l, h=h, w=w, thck=thck, ft=ft) { translate([-w/2-thck,0,thck]) { difference() { union() { translate([-w/2-thck,thck,-thck]) cube([w+2*thck,l+w/2+thck,h+2*thck]); translate([0,0,-thck]) cylinder(r=w/2+thck, h=h+2*thck); } u...
glb/cad_3b2b1a9b74c0.glb
Create a 3D model of a .45 ACP cartridge consisting of a series of stacked, coaxial cylinders with a 30-facet resolution. Start with a base rim cylinder 12.19mm in diameter and 1.24mm high. Directly on top of this, add a second cylinder 10.16mm in diameter and 0.89mm high. Above that, create a tapered transition sectio...
rim_diam = 12.19; rim_height = 1.24; narrow_diam = 10.16; narrow_height = 0.89; angled_diam1 = 10.16; angled_diam2 = 12.09; angled_height = 1.98; main_case_diam1 = 12.09; main_case_diam2 = 12.01; main_case_height = 18.70; bullet_diam1 = 11.48; bullet_length1 = 1.8; bullet_length2 = 7.78; bullet_diam2 = 7.80; $fn = 30;...
glb/cad_76948acfc798.glb
Create a T-profile belt by repeating a specific tooth and gap pattern 10 times along the Y-axis, with each full segment spaced 10mm apart. For a single segment, start with a base rectangular belt body measuring 1mm wide, 10mm long, and 5mm high. Carve two V-shaped grooves into this body: the first centered at Y=2.5mm...
i=5; module single() { difference() { cube([1,5,5]); translate([1,2.90-0.4,0]) rotate([0,0,5]) cube([0.5,1.25,5]); translate([0.89,4.15-0.4,0]) rotate([0,0,-5]) cube([0.5,1.25,5]); } difference() { translate([0.52,-0.07,0]) rotate([0,0,9]) cube([2,2,5]); translate([-0.20,-1,-0.5]) cube([3,1,6]); ...
glb/cad_ff03698f3e08.glb
Create a spool side consisting of a circular disk with a diameter of 70mm and a thickness of 2.4mm. In the center of this disk, create a circular cutout with a diameter of 21mm. To reduce material, remove six equal wedge-shaped sections from the disk. Each wedge should extend from the center cutout to the outer edge,...
use <threads.scad> fn=100; innerDM=21; width=62; outerDM=70; wallThickness=2.4; threadClearance=1.4; centerHole=true; sideHoles=true; build=1; if(build==0 && centerHole==true){ difference(){ translate([outerDM+5,0,0]) sideB(); translate([outerDM+5,0,0]) centerHole(); } difference(){ sideA(); centerHole...
glb/cad_efcca1de6de7.glb
Create a Z-axis stepper flex coupling by starting with a main cylinder that is 34mm long with an outer radius of 5mm. Remove a central coaxial cylinder with a radius of 3mm and a length of 10mm, centered along the main body. To create the flexible joints, carve out a series of slots along the length of the cylinder. Sp...
rotate([0,90,0]) translate([-34,-5,-5]) difference(){ intersection() { union(){ cube ([10,10,10]); translate([10,0,3]) cube([2,10,4]); translate([12,0,0]) cube([2,10,10]); translate([14,3,0]) cube([2,4,10]); translate([16,0,0]) cube([2,10,10]); translate([18,0,3]) cube([2,10,4]); ...
glb/cad_a11f53a8d442.glb
Create a Tennis Ball Holder consisting of two mirrored hexagonal components, an upper and lower holder, separated by a small vertical gap of 0.67mm. Both components are based on a hexagonal prism with a radius of 42.7mm and a height of 42.7mm. For the lower holder, center a spherical cutout with a radius of 32.7mm. At...
$fs = 0.25; BallDiameter = 65.4; BallRadius = BallDiameter/2; SlitLength = 1.5*BallRadius; WallThickness = 10; Gap = 10; Slit = 3; Extreme = WallThickness + BallRadius; Facets = 6; difference() { difference() { difference() { difference() { translate([0,0,-Extreme]) color("red") cylinder(r=BallRadius+Gap, h=(Extre...
glb/cad_f9c82bbb3dcf.glb
Create a Powerstrip Wallhook consisting of a flat rectangular base and a protruding wedge-shaped hook. Start with a rectangular base plate measuring 21mm wide, 65mm long, and 1mm thick. Centered on this base, construct a hook that rises to a total height of 6mm. The hook's footprint starts at the base with a width of 2...
powerstrip_type = "first"; width = 21; height = 65; base_thickness = 1; hook_gap = 6; two_strip_version = 1; ts=two_strip_version; z = hook_gap; z_base = base_thickness; print_part(); module print_part(){ if (powerstrip_type == "first"){ stripMutable(width,height); } else if (powerstrip_type == "...
glb/cad_41994a0ba716.glb
Create a hollow cat ball consisting of two interlocking hemispherical shells. Each hemisphere should have an outer diameter of 40mm and a wall thickness of 2mm. For each hemisphere, create a central circular hole with a diameter of 10mm passing through the top. To allow the two halves to screw together, add a thread...
diameter = 40; hole_diameter = 10; component = "FullPlate"; wall_thickness = 2*1; $fs=0.3*1; $fa=5*1; radius = diameter*0.5; thick = wall_thickness; hole_rad = hole_diameter*0.5; thread_gap = 0.4*1; loops = 2*1; threadpiece_width1 = 2*1; threadpiece_width2 = 2+thread_gap; threadpiece_length = 2*1; height = loops*t...
glb/cad_4681d9dab7dc.glb