Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a 3D model of a GEB Rubik's Cube puzzle. Start by constructing the internal core mechanism consisting of three intersecting cylinders with a radius of 5mm and a height of 55mm, aligned along the X, Y, and Z axes. Add six center caps, which are cylinders with a radius of 7.5mm and a height of 5mm, positioned 25mm...
module centerBeams() { union(){ rotate(90, [0, 1, 0]) cylinder(h = 55, r1 = 5, r2 = 5, center = true); rotate(90, [1, 0, 0]) cylinder(h = 55, r1 = 5, r2 = 5, center = true); rotate(90, [0, 0, 1]) cylinder(h = 55, r1 = 5, r2 = 5, center = true); translate([ 0, 0, 25 ]) cylinder(h = 5, r1 = 7.5, r2 = 7.5, center...
glb/cad_4429012470d3.glb
Create a 6-fold symmetrical decorative plaque by constructing a single motif and rotating it six times around a central Z-axis at 60-degree intervals. The motif is composed of 11 extruded rectangular bars, each with a width of 2mm and a height of 4mm. Each bar has a length of 16.5mm (15mm plus a 10% overlap). These b...
length = 15; width = 2; height = 4; translate_x =0.5; translate_y = 1; mark =1005; l = length; w = width; h = height; tx = translate_x * l; ty = translate_y * sqrt(3) *l; if (mark==1) triangles_3(); else if (mark==2) triangles_5(); else if (mark==3) triangles_6(); else if (mark==4) triangles_9(); else if (mark...
glb/cad_31b372a94fc6.glb
Create a Parametric 3D Puzzle consisting of three identical interlocking plates. Each plate begins as a rectangular block measuring 30mm wide, 18mm high, and 5.5mm thick, centered on its origin. On each plate, add a cylinder with a radius of 9mm and a height of 5.5mm, centered at both the left and right edges of the wi...
tolerance = .5; module plate(w,h,t) { cube([w,h,t],center=true); for (x=[-w/2,w/2]) translate([x,0,0]) cylinder(r= h/2, h=t, center=true); } module p1(w,h,t){ difference(){ plate(w,h,t); cube([w*3/5 + 4*tolerance, h/3 + 2*tolerance, t], center=true); } } module p2(w,h,t){ difference(){ ...
glb/cad_fc93a9eefe2f.glb
Create a potentiometer dial by starting with a conical shape that transitions from a circular base with a diameter of 20mm to a circular top with a diameter of 7mm, reaching a total height of 28mm. From the center of this shape, remove a vertical cylindrical core with a diameter of 7mm that extends from the bottom up t...
shaft_d = 7; shaft_r = shaft_d/2; shaft_h = 23; shaft_flat = 10; dial_d = 20; dial_r = dial_d/2; dial_h = 5; flange_w = 3; c=0.02; difference() { dial_shape(); #pot_shaft(); } module pot_shaft() { translate([0,0,-c/2]) cylinder(h=shaft_h - shaft_flat + c, r=shaft_r); translate([0,0,shaft_h - shaft_flat]) diffe...
glb/cad_e1ae54b2ba02.glb
Create a motorbike brake/clutch fluid reservoir switchbox. Start with a solid rectangular block measuring 73mm wide, 35mm deep, and 22mm high. Hollow out the interior to create a shell with a wall thickness of 3mm, ensuring all interior corners are rounded with a 3mm radius. On the top face, create three identical rec...
$fn=60; left_right = -40; r=3; switch_size=[19.2,15,12.9]; fudge = 0.1; module poly_path2989(h) { scale([9.1/90, -9.1/90, 1]) union() { linear_extrude(height=h) polygon([[408.102499,-109.859500],[412.224533,-92.957389],[415.293390,-77.568672],[417.461708,-63.681150],[418.882124,-51.282625],[419.70727...
glb/cad_41a90e871b4b.glb
Create a fan guard for a 40mm fan. Start with a square plate that is 40mm by 40mm with a thickness of 3mm. The plate should have slightly rounded corners with a radius of 0.1mm. Center a large circular cutout in the plate with a radius of 19mm to create a solid outer border of 1mm. Within this circular area, create a ...
module fan(){ fan_side_length=40; mount_hole_width=32; mount_hole_d=3.5; mesh_kind="hex"; mesh_holes_d=6; mesh_thickness=2; mesh_clearance=1; mesh_density_ratio= 98; solid_outer_border=1; outer_roundness=0.01; mesh_offset=68; tol=0.1+0; $fa=1+0; $fs=0.33+0; dholes= mesh_holes_d; marginhole= (fan_side_lengt...
glb/cad_67be1a4b8762.glb
Create a nameplate for "Ada" consisting of the letters "A", "D", "A" resting behind a rectangular support base. First, construct the support base as a rectangular slab measuring 30mm in length, 4mm in width, and 2mm in height. Cut three rectangular holes through the slab: two square holes measuring 2mm by 1mm and one...
module d(){ rotate([0,0,270]) { difference(){ cylinder(r=4,h=1.5, center=true, $fn=100); translate([0,1,0]) cylinder(r=3,h=1.6, center=true, $fn=100); translate([0,3,0]) cube(size=[10,2,2],center=true); } translate([0,1.25,0]) cube(size=[7,1.5,1.5],center=true); } } module a() { differe...
glb/cad_8faa46ba2fe8.glb
Create a bed nut holder with a total height of 21mm. Start with a base rectangular block 15mm wide, 14mm deep, and 7mm tall. On top of this base, add a second rectangular section 15mm wide and 10mm deep, extending from a height of 7mm up to 21mm. Add a third section 15mm wide and 4.5mm deep that rises from the base to ...
height = 21; frame_size = 20; frame_screw_size = 5; frame_nose_width = 4; bed_screw = 3; include <MCAD/nuts_and_bolts.scad> difference() { union() { cube([15, 14, 7]); translate([0,4,7]) cube([15, 10, height-7]); difference() { translate([0,4,height-6.5]) cube([15,19,6.5]); color([...
glb/cad_d3f1b209bf0f.glb
Create a clothing hook consisting of a central wall-mounting base and two symmetrical projecting arms. The base is a rounded block with a total height of 22mm. Centered on the back face, create two aligned screw holes: a primary hole with a 2mm radius and a larger 4mm radius countersink recess. From this base, exten...
use <nut_hole.scad> screw_recess_r = 4; screw_recess_d = 2; screw_r = 2; hook_r= 5; hook_er = 3; hook_l = 20; turn_r=30; wall_r = 7; wall_top_r = 7; wall_h = 5*screw_recess_r + 2*wall_r; hook_a=60; between_a = 20; s=0.7; module hook_part() { translate([turn_r+hook_r,-turn_r]) intersection() { rotate_ex...
glb/cad_09cae95f7746.glb
Create a fan mount for a 40mm fan by starting with a square base plate measuring 40mm by 40mm with a thickness of 5mm. In the center of this plate, remove a cylindrical hole with a radius of 18mm that passes completely through the thickness. Position four mounting holes, each with a radius of 2mm, passing through the...
$fn = 50; w_mount = 40; t_mount = 5; w_holes = 32; r_holes = 2; r_main = 0.5*w_mount - 2; xy1 = 0.5*(w_mount-w_holes); xy2 = 0.5*(w_mount+w_holes); mh_xy1 = xy2 - 11.3; mh_xy2 = xy2 + 11.3; difference() { cube([w_mount,w_mount,t_mount]); translate([xy1,xy1,0]) cylinder(r=r_holes,h=t_mount); translate([xy1,xy2,0]...
glb/cad_a22053c04cb3.glb
Create a chit holder designed to hold one-inch square tiles. The base unit is a square with a total width and length of 33mm and a height of 17mm. The walls are 2mm thick. Inside this square, create a central square opening of 29mm by 29mm that extends from the base to a height of 15mm. From the four interior corners...
$fa=0.5; $fs=0.5; chitWidth=29; fingerWidth=15; wallThickness=2; stackHeight=15; wallLength=wallThickness * 2 + chitWidth; postClearance=1; postXLength=chitWidth-fingerWidth-wallThickness; postYLength=fingerWidth-wallThickness*2; postHeight=stackHeight+wallThickness; module triangleCut(base, height) { translate([-b...
glb/cad_90de8ef286e1.glb
Create a Plücker's conoid, a ruled surface generated by connecting two concentric circular paths with straight lines. The outer boundary is a circle with a radius of 30mm. The inner boundary is a point at the center, as the inner radius is 0mm. The surface reaches a maximum height of 10mm. The vertical profile of the ...
Outer_N=3; Inner_N=3; Height=10; Outer_Radius=30; Inner_Radius=0; Inner_Ratio=1; Thickness=2; Steps=200; Sides=10; function norm(v) = pow(v.x*v.x + v.y*v.y + v.z*v.z,0.5); module orient_to(origin, normal) { translate(origin) rotate([0, 0, atan2(normal.y, normal.x)]) rotate([0, atan2(sqrt(pow(no...
glb/cad_74fa7501a4bf.glb
Create a Dog Poop Bag Holder by constructing a rectangular box with an open top. The outer dimensions of the box should be 56mm in length, 31mm in width, and 31mm in height, with a uniform wall thickness of 3mm. The interior cavity measures 50mm by 25mm. On the two shorter side walls, create two vertical rectangular a...
cav_len = 50; cav_wid = 25; wall_thick = 3; slot_thick = 3; slot_depth = 5; attch_wid = 5; attch_len = 8; attch_sep = 3; union() { difference() { cube([cav_len + 2 * wall_thick, cav_wid + 2 * wall_thick, cav_wid + 2 * wall_thick], center = false); translate([wall_thick, wall_thick, wall_thick]) { cube([cav_l...
glb/cad_a4ed09930958.glb
Create an internal tube structure by starting with a solid central block measuring 14mm by 9mm by 2.7mm. From this block, remove a series of intersecting octagonal tubes to create a hollow lattice. Each tube must have a radius of 1.25mm and a cross-section defined by 8 facets. Arrange these octagonal voids in a repeat...
d=2.5 ; a=d*(2+1/7); xdim=14; ydim=9.0; zdim=2.7; detail=8; module test() { intersection(){ cylinder (h=19.1,r=15.1,center=true,$fn=22); difference(){ cube([xdim,ydim,zdim],center=true); for (s=[0,1]) for (y=[-4:1:4]) for (x=[-4:1:4]) translate([a*x-s*a/2-a/2,a*y+s*a/2,0])rotate([0,0,360/detail/2])cylinder (h...
glb/cad_bfce76abd055.glb
Create an internal tube structure contained within a cylinder with a radius of 10.1mm and a height of 19.1mm, centered at the origin. The structure is formed by removing a grid of intersecting octagonal tubes from a central solid cube measuring 20mm x 20mm x 10mm. The tubes have a radius of 1.25mm and are arranged in...
d=2.5 ; a=d*(2+1/7); xdim=20; ydim=20; zdim=10; detail=8; module test() { intersection(){ cylinder (h=19.1,r=10.1,center=true,$fn=22); difference(){ cube([xdim,ydim,zdim],center=true); for (s=[0,1]) for (y=[-4:1:4]) for (x=[-4:1:4]) translate([a*x-s*a/2-a/2,a*y+s*a/2,0])rotate([0,0,360/detail/2])cylinder (h=z...
glb/cad_1f143431893b.glb
Create a Makita LXT battery clip by constructing a U-shaped channel with a base and two vertical walls. The base is a rectangular plate measuring 68mm wide by 30mm long with a thickness of 3.5mm. From this base, extend two vertical walls upward to a total height of 13.5mm. These walls should be 3.5mm thick and position...
inside_width=54; outside_width=61; outside_height=10; inside_height=4; thickness=3.5; length=30; difference(){ union(){ linear_extrude(height=thickness){ square([outside_width+2*thickness,length]); } translate([0,0]){ linear_extrude(height=thickness+outside_height){ square([thickness,length]); } ...
glb/cad_a16cf2dcf4e8.glb
Create a Customizable Chopstick Holder consisting of a central semi-circular bridge and two symmetrical angled side holders. First, construct the bridge as a hollowed-out semi-cylinder with a height of 10.8mm. The outer radius is 7.5mm and the wall thickness is 2mm. The bridge is a 180-degree arc with a rectangular s...
bridge_length = 15; bridge_thickness = 2; bridge_height = 10.8; holder_length = 15; holder_clearence = 0.2; holder_angle = 5; chopstick_width = 6; chopstick_height = 6; $fs = .1; $fa = 1; holder_wall_thickness = 2; bridge_angle = 180; bridge_radius = bridge_length/(2*sin(bridge_angle/2)); holder_retainer_length ...
glb/cad_6a0a814dcfe9.glb
Create a universal handlebar gadget mount consisting of a C-shaped handlebar clamp and a rectangular gadget cradle. First, construct the handlebar clamp by creating a cylinder with a 25mm inner diameter and a 30mm outer diameter, with a total length of 25mm. Cut a rectangular notch out of the bottom of this cylinder ...
gadget_width = 69; gadget_thickness = 13; bracket_thickness = 3; mount_thickness = 5; height = 25; dia = 25; $fn=200; module mount() { rotate([0, 90, 0]) { difference() { union () { difference () { rotate([0, 90, 0]) cylinder (height, dia/2+mount_thickness, dia/2+mount_thickness, center=...
glb/cad_5d52d3de54b7.glb
Create a control station for an RGB LED controller. The main body is a hollowed enclosure with a height of 35mm. The exterior is defined by a central cylinder with a radius of 42.5mm and a height of 35mm, intersected by a rectangular block measuring 85mm by 88mm. The front panel is angled upwards at 15 degrees and ra...
station_y = 88; station_x=85; panel_angle = 15; panel_rise = 15; station_h=35; mainboard_y=77; c = 0.02; bolt_d=3.5; bolt_r =bolt_d/2; bolt_margin=2; bolt_length = 60; pins_x=10; pins_z=3; stationprint(); module stationprint() { second_split=26; difference() { translate([second_split,0,0]) union() { station();...
glb/cad_33e38abcf384.glb
Create a 3D model of a biohazard symbol integrated into a circular base. Start by creating a flat, extruded biohazard symbol with a total diameter of 62mm and a height of 15mm. Surround this symbol with a concentric circular channel. This channel is formed by a large outer cylinder with a radius of 37mm and a height of...
use <biohazard.scad> symbol_d = 60; symbol_r = symbol_d/2; symbol_h = 15; led_channel_d = 4; led_channel_h = 10; led_channel_margin = 3; led_symbol_overlap = 2; led_channel(); module led_channel() { difference() { difference() { cylinder(r=symbol_r + (led_channel_margin*2) + led_channel_d, h=led_channel_h...
glb/cad_7bfbfd92f1ae.glb
Create a Holesphere by starting with a sphere that has a radius of 10mm. Remove three identical cylindrical holes from this sphere, each with a radius of 5mm and a length of 20mm. Position the first cylinder vertically so its center axis aligns with the sphere's center and passes through the Z-axis. Position the second...
sphere_radius = 10; hole_radius = 5; difference(){ translate([sphere_radius,0,sphere_radius]) sphere(sphere_radius); union(){ translate([sphere_radius,0,0]) cylinder(2*sphere_radius,hole_radius,hole_radius); translate([sphere_radius,sphere_radius,sphere_radius]) rotate([90,0,0]) cylinder(2*sphere_radius...
glb/cad_0aa67c6a269a.glb
Create a parametric spool wall hanger. Start with a base plate that is 5mm thick. This base consists of a cylinder with a radius of 14.25mm, but with a rectangular section removed from the center to create a flat edge, specifically a cube of 31.5mm per side centered on the Y-axis. In the center of this base, create a v...
$fs=0.1; drawSpool = false; spoolWidth = 31.5; spoolLipWidth = 10; bodyHeight = 5; screwHoleWidth = 3.5; if (drawSpool) translate([0, 0, bodyHeight / 2]) difference() { cylinder(h = 10, r=131.5); cylinder(h = 10, r=spoolWidth/2); } translate([0, 0, bodyHeight / 2]) difference() { cylinder(h = spoolLipWidth, r=spo...
glb/cad_e7b129d44a8f.glb
Create a Customizable Dome by starting with a sphere that has a radius of 10mm and a low facet resolution of 6, resulting in a hexagonal cross-section. Cut this sphere in half by removing the bottom hemisphere using a cube with a side length of 20mm, centered such that the bottom face of the cube is aligned with the bo...
resolution = 6; dome_size= 10; print_part(); module print_part() { difference() { sphere (dome_size,$fn=resolution); translate([0,0,-dome_size]) { cube(dome_size*2, center =true); } } }
glb/cad_55e173047d3e.glb
Create a 3D scene containing two separate geometric solids. First, create a cube with side lengths of 10mm, centered on its X and Y axes and positioned so its base is 5mm above the origin. Second, create a cylinder with a radius of 5mm and a height of 10mm, positioned so its base sits on the origin. Place these two obj...
part = "both"; cube_size = 10; cylinder_size = 10; secret = 42; preview_tab = ""; print_part(); module print_part() { if (part == "first") { mycube(); } else if (part == "second") { mycylinder(); } else if (part == "both") { both(); } else { both(); } } module both() { translate([-cube_size, 0, 0]) ...
glb/cad_801125917b85.glb
Create a Printbot Simple Metal Filament Spool Holder consisting of two vertical support arms connected by a base and top caps. Each support arm is a rectangular block 12mm wide and 122mm high. Position these arms 82mm apart from center to center. Through the top of both arms, create a horizontal cylindrical hole with...
delta=0.1; spool_width = 80; spool_hub_hgt = 116; clearance = 2; rail_dia = 8; rail_clearance = 1; rail_rad = rail_dia /2.0; rod_dia = 12; rod_clearance = 0.1; rod_rad = rod_dia/2.0; corner_rad=6; arm_width = 12; arm_height = spool_hub_hgt + clearance + corner_rad + rod_rad; arm_space = spool_width + clearance; a...
glb/cad_b10a95613468.glb
Create a bracket for a brushless e-bike motor controller. Start with a central rectangular block measuring 50mm by 50mm by 180mm. At the top, add a centered rectangular grip measuring 80mm by 50mm by 15mm. Carve a hollow cylindrical space through the center of the assembly to accommodate a frame pipe with a diameter ...
$fn=64; splitandprint(); module splitandprint() { difference(){ rotate([90,0,0]) bracket(); translate([-100,-200,0]) cube([300,400,50]); } difference(){ translate([0,30,0]) rotate([-90,0,0]) bracket(); translate([-100,-200,0]) cube([300,400,50]); } } module bracket() ...
glb/cad_23e2ecd5c909.glb
Create a chair foot for a corner-joined tube chair. Start by constructing a base pad using a convex hull of eight small spheres, each with a radius of 0.75mm, positioned at the corners of a rectangular volume measuring 18.5mm by 8.5mm with a height of 1.5mm. Centered atop this base, add a rectangular block measuring 17...
fl=20; fw=10; ph=3; tr=3; xw=0.35; $fn=20; difference() { union(){ hull() { for(zi = [-1,1]){ for(yi = [-1,1]){ for(xi = [-1,1]){ translate([xi*(fl/2-ph/4),yi*(fw/2-ph/4),zi*ph/4]) sphere(r=ph/4); } } } } translate([tr*2.5,0,tr]) cube([ph,tr*2.75,tr*2], center=true); }...
glb/cad_057392b6c1e1.glb
Create a chair foot for a tube base. Start by creating a solid cylinder with a radius of 11mm and a height of 2mm to serve as the base pad. Centered on this pad, build a hollow vertical cylinder with an outer diameter of 19.2mm and an inner diameter of 13.6mm, extending upwards to a total height of 10mm. To create the ...
id = 17; od = 20; xw = 0.4; tk = 2; fph = 2; fh = 10; translate([0,0,-(fph)/2]) cylinder(r1 = od/2, r2 = od/2+fph/2, h = fph+xw, center = true, $fn = 60); difference(){ cylinder(r1 = id/2-xw, r2 = id/2-xw, h = fh, $fn = 60); cylinder(r1 = id/2-xw-tk, r2 = id/2-xw-tk, h = fh+xw, $fn = 60); translate([2,-2 - ...
glb/cad_34db8fe15f9a.glb
Create a chair foot for a tube base by constructing two concentric cylindrical sections. First, create a wide, flat circular base pad with a diameter of 24mm and a height of 2.4mm. Centered on top of this base, add a taller hollow cylinder with an outer diameter of 23mm and a total height of 7.4mm. This upper cylinder ...
id = 20; od = 23; xw = 0.4; tk = 2.5; fp = 2; fh = 5; difference(){ union(){ translate([0,0,-fh/2]) cylinder(r1 = od/2, r2 = od/2+fp/2, h = fp+xw, center = true, $fn=60); cylinder(r1 = id/2 - xw/2 + 0.5, r2 = id/2 - 1 - xw/2, h = fp + fh, center = true, $fn = 60); } translate([0,0,fp]) cylinder(r = (id/...
glb/cad_74544533d758.glb
Create a chair foot designed for a tube base. Start by creating a wide, flat cylindrical base pad with a radius of 9.5mm and a height of 2.4mm. Centered on top of this pad, place a main vertical cylinder with a diameter of 13.2mm and a height of 10mm. This vertical cylinder must be hollowed out by removing a central co...
id = 14; od = id+3; xw = 0.4; tk = 1; fph = 2; fh = 10; translate([0,0,-(fph)/2]) cylinder(r1 = od/2+tk, r2 = od/2+fph/2+tk, h = fph+xw, center = true, $fn = 60); difference(){ cylinder(r1 = id/2-xw, r2 = id/2-xw, h = fh, $fn = 60); translate([2,-2 - id,0]) cube([id,id,fh+xw]); } for(i = [0:30:270]){ rotat...
glb/cad_a94d126e6101.glb
Create a Parametric PowerPole Stackable Breakout Box consisting of two matching halves that fit together. Each half is based on a rounded rectangular block with a corner radius of 2mm. The overall case dimensions are derived from a shell thickness of 3mm and a PowerPole connector height of 8mm. For the internal cavity...
powerPoleCount = 4; caseThickness = 3; rounder = 2; pinpos = 9; ppfromborder = 3.5; $fn=60; ppLength = 24.5; ppWidth = 16; ppHeight = 8; numSides = 360; ppSpacing = 3; internalCavity = 5; caseHeight = caseThickness + ppHeight + internalCavity + ppLength; caseLength = (ppLength-13+ppfromborder) + (ppHeight+ppSpacing...
glb/cad_dc5a9efb77c6.glb
Create a miter box for 15mm square aluminum extrusions. Start with a central rectangular block measuring 16mm wide, 49.5mm long, and 15mm high. From this base, remove a central channel 16mm wide and 49.5mm long that runs the length of the block to create a slot for the material. To create the cutting guides, carve tw...
fudge=0.5; mat_ht=15.0; mat_wd=15.0+fudge*2; miter_len=mat_ht*3.0; miter_ht=mat_ht*1.2; wall_wd=4.0; module wall_saw(blade_wd, angle) { hole_len=(mat_wd+wall_wd*4)/sin(angle); rotate(a=angle,v=[0,0,1]) translate(-hole_len, v=[sin(angle),cos(angle),0]) cube([wall_wd*2+blade_wd,hole_len,miter_ht],cente...
glb/cad_5d850249e509.glb
Create a Medicine Divider consisting of two intersecting rectangular walls and four small stabilizing stubs. First, construct a central cross by intersecting two rectangular prisms, each with a height of 9.5mm and a thickness of 2mm. One prism should be 70.5mm wide and run along the x-axis, while the second prism shoul...
height = 9.5; thickness = 2; box_width = 70.5; box_depth = 59.75; stubs = 10; union() { cube([box_width, thickness, height], center = true); cube([thickness, box_depth, height], center = true); translate([-(box_width/2-thickness/2),0,0]) cube([thickness,stubs,height], center = true); translate([box_width/2-thickne...
glb/cad_8dca4e835368.glb
Create a Celtic Cross pendant. Start by constructing a central knotwork pattern based on a grid of 4mm wide by 5mm high tiles. The knot should follow a specific woven sequence: a pointed top, a central vertical section with interlocking loops, and a pointed base. At the top of the assembly, centered 32mm from the ori...
use <celtic-knots.scad> tile_width = 4; tile_height = 5; pointy = true; k = [ (pointy ? " <~> " : " ,~. "), " !&; ", (pointy ? "<~w&e~>" : ",~w&e~."), "|(&&&):", (pointy ? "[-a&s-]" : "{-a&s-}"), " !&; ", " !&; ", " ...
glb/cad_e1749aa28293.glb
Create a plastic keychain tag consisting of two matching rectangular plates that sandwich a label. Each plate should be 50mm long and 25mm wide. For the bottom plate, create a base 4mm thick. Carve a central rectangular pocket 42mm long and 21mm wide, leaving a 4mm border. At each end of the plate, center a cylindric...
$fn=35; module tag (length=40, width=30, border=4) { lbl_length = length - (border*2); lbl_width = width - border; bottom_height = 4; top_height = 2; difference () { union () { cube([length, width, bottom_height]); translate([0, (width/2), 0]) cyl...
glb/cad_18849cab7fb4.glb
Create a Universal Device Mount Bracket consisting of two mirrored arms connected by a central fixation piece. Each arm is 10mm high and is constructed from a main beam 47.5mm long, 2mm thick, and 10mm high. At the end of each beam, create a rounded corner using a cylinder with a 4mm outer radius and a 2mm inner radius...
device_height=101.5; device_depth=9; height=10; hook_length=7; thickness=2; width=device_height-2*thickness; depth=device_depth-2*thickness; module arm () { cube([width/2, thickness, height]); difference() { difference() { translate([width/2,-thickness,0])cylinder(r=2*thickness, h=height, $fn=60); tra...
glb/cad_807a79d9c720.glb
Create a pencil holder clamp consisting of two separate components. First, create a C-shaped clamp designed to fit around a tube. The main body is a ring with an inner radius of 4.25mm and a wall thickness of 1.5mm. The ring is not a complete circle; it has a gap to allow it to snap onto a cylinder. Extend a flat, re...
module clamp(r,t,sr) { w= r+2*(t+2*sr); h= sr+2*t; difference() { linear_extrude(height= h) difference() { union() { circle(r+t); translate([-w,-3*t/2]) square([w + sr,3*t]); } circle(r); translate([-2*w,-t/2]) square([2*w + s...
glb/cad_95474e0f1e2e.glb
Create a stylized Baymax figure standing on a base. For the body, create a central form by blending a sphere of radius 25mm at height 35mm with a scaled sphere of 30x30x40mm at height 55mm. Add two arms by placing spheres scaled to 18x20x45mm at positions [-20, 0, 48] and [20, 0, 48], each rotated 30 degrees. For the h...
$fn=100; word("感觉萌萌哒"); translate([-8,0,10]) rotate([0,-10,0]) resize(newsize=[15,20,50])sphere(10); mirror(){ translate([-8,0,10]) rotate([0,-10,0]) resize(newsize=[15,20,50])sphere(10); } intersection(){ rotate([-15,0,0]) translate([-50,-15,-50]) cube([100,100,100]); translate([0,-25,-15]){ intersection(...
glb/cad_2af50d2b4461.glb
Create a replacement tape dispenser part consisting of a main cylindrical hub and a separate pin. For the hub, create a cylinder 14mm high with a radius of 12.5mm. Remove a central vertical hole with a radius of 3.075mm. Around this center, remove five smaller vertical holes, each with a radius of 3.5mm; these should b...
module sproket() { difference () { union (){ cylinder(h = 14, r1 = 12.5, r2 = 12.5 , center = true); } for ( i = [0 : 4] ) { rotate( i * 360 / 5, [0, 0, 1]) translate([0, 7.25 , 0]) cylinder(h = 60, r1 = 3.5, r2 = 3.5, center = true); } } } translate ([0,0,7]) { difference () { sproket(); cylinder(h = 3...
glb/cad_4afbbede097e.glb
Create a smartphone slider carriage. Start with a main body formed by the convex hull of a 42x5x24mm box and an 8x9x24mm box centered within it. From the center of this body, remove a rectangular cutout measuring 8x14x28mm to accommodate the phone. At each end of the main body, centered at x=25 and x=-25, add a toothe...
type_of_phone = "first"; print_endcaps = "Yes"; end_vis(); module end(){ union(){ translate([-21,20,-12])cube([42,5,16]); difference(){ union(){ translate([-25,20,-12])cylinder(16,7,7); translate([-32,5,-12])cube([14,16,16]); } translate([-25,20,-10])cylinder(18,4.2,4.2); } difference(){ union(){translate([25,20,-12...
glb/cad_b4b4d8375f0e.glb
Create a 3D model of the Smurfit Kappa logo. The design consists of a thick, rounded rectangular frame containing a stylized, geometric emblem. First, construct the outer frame as a rounded rectangular ring with a height of 5mm. The frame should have a smooth, continuous outer boundary and a hollow center to house the...
fudge = 0.1; module poly_path22(h) { scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[-234.484593,-15.781717],[-234.737582,-19.655519],[-235.320338,-24.096142],[-236.353834,-28.772071],[-237.959040,-33.351794],[-240.256930,-37.503797],[-241.703434,-3...
glb/cad_76a1219242c7.glb
Create a 3D model of the Smurfit Kappa logo. The model consists of a stylized graphic symbol followed by the brand name "Smurfit Kappa" in a bold, sans-serif typeface. First, construct the graphic symbol to the left of the text. This symbol is a complex, abstract organic shape with a thickness of 5mm. It is characteri...
fudge = 0.1; module poly_path22(h) { scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[-234.484593,-15.781717],[-234.737582,-19.655519],[-235.320338,-24.096142],[-236.353834,-28.772071],[-237.959040,-33.351794],[-240.256930,-37.503797],[-241.703434,-3...
glb/cad_0c1656a20842.glb
Create a 3D model of the Bethesda Game Studios logo. The design consists of a stylized, thick-walled circular ring that is partially broken, with text integrated into and around it. First, construct the main circular emblem. Create a flat, ring-like disk with a thickness of 3mm. The ring should not be a perfect circle...
fudge = 0.1; module poly_path2995(h) { scale([25.4/90, -25.4/90, 1]) union() { linear_extrude(height=h) polygon([[-151.591600,218.753581],[-160.654177,217.623873],[-171.031005,215.791968],[-181.910694,213.418395],[-192.481850,210.663681],[-205.101113,206.607694],[-217.484694,201.710417],[-229.582276,196....
glb/cad_cae6f12eac73.glb
Create a simple cable holder by starting with a rectangular base block measuring 12.1mm in width, 4.1mm in depth, and 6.35mm in height. Remove a semi-cylindrical channel from the center of the bottom face to hold the cable; this cutout should have a radius of 2.5mm and a depth of 3.1mm. Drill two vertical holes throu...
bolt_d = 3; cable_d = 5; squeeze = 1; squeeze_factor = 1; $fn = 50; bolt_extra = bolt_d*0.7; cable_extra = cable_d*0.35; module base(){ cube([cable_d+bolt_d*2+bolt_extra*2, bolt_d+bolt_extra, cable_d+cable_extra]); } module cable(){ translate([(cable_d+bolt_d*2+bolt_extra*2)/2, 0, cable_d/2]){ rotat...
glb/cad_725733d58c1f.glb
Create a braille font module consisting of a rectangular base plate with raised spherical dots. The base plate should be 10mm wide and 2mm thick. The raised dots are spheres with a radius of 0.25mm. These spheres are arranged in a grid where each braille cell is 6.25mm wide (calculated as a 3.75mm distance plus 2.5mm ...
radius = 0.25; spacing = 2.5; distance = 3.75 + spacing; plate_height = 10; plate_thickness = 2; $fn = 10; module letter(bitmap) { row_size = 2; col_size = 3; bitmap_size = row_size * col_size; function loc_x(loc) = floor(loc / row_size) * spacing + spacing; function loc_y(loc) = loc % row_size * spacing + (d...
glb/cad_64871c7d1fbd.glb
Create a Dish Scrubber Holder by starting with a vertical cylinder 200mm tall with a radius of 30mm. Attach a horizontal cylinder of the same radius to this vertical one, centered at a height of 30mm, extending 65mm along the Y-axis. Integrate a rectangular block measuring 60mm wide, 74mm deep, and 30mm high, positione...
height = 200; length = 65; radius = 30; res=1000; union() { difference() { union() { cylinder(height, radius, radius, $fn=res); translate([0, 0, radius]) rotate([90,0,0]) cylinder(length, radius, radius); translate([-30, -length-9, 0]) cube([60, length+9, 30]); } translate([0, -5, radius])...
glb/cad_9c2c738476f0.glb
Create a Dish Scrubber Holder consisting of a cylindrical base with a hollowed-out interior. Start by creating a solid cylinder with a radius of 40mm and a height of 45mm. From the top of this cylinder, remove a large hemispherical void with a radius of 35mm to create a bowl-like basin. To allow for drainage, carve s...
top_height = 160; top_radius = 18; base_radius = 40; res=100; module base(base_radius=40) { base_height=base_radius+5; difference() { cylinder(base_height, base_radius, base_radius, $fn=res); translate([0, 0, base_height]) { sphere(base_radius-5, $fn=res); } translate([0, 0, 10]) { sphere(2, $fn=res); ...
glb/cad_ba03e46507a4.glb
Create a Makergear M2 Foot Stop by constructing a hollow cylindrical ring with a height of 7.5mm. The outer diameter of the ring should be 54mm and the inner diameter should be 39mm. To complete the part, add three circular holes, each 4mm in diameter, passing vertically through the wall of the ring. These holes should...
i_d = 39; r_w = 15; ht = 7.5; f=(i_d + r_w/2)/2; $fn=64; difference () { cylinder(ht, d=i_d + r_w); cylinder(ht, d=i_d); for (x=[0:2]) { translate([f*sin(x*120), f*cos(x*120), -ht/2]) cylinder(ht*2, d=4); } }
glb/cad_133f63e9b953.glb
Create a Bitbeam Servo Mount by starting with a rectangular base block measuring 56mm wide, 20mm deep, and 8mm high. Drill seven vertical holes through the base, each with a diameter of 5.2mm, spaced evenly apart every 8mm along the center line of the depth, starting 4mm from the left edge. In the center of the block...
A = 19.82; B = 13.47; C = 33.79; D = 10.17; E = 9.66; F = 30.22; G = 11.68; H = 26.67; J = 52.84; K = 9.35; L = 4.38; M = 39.88; X = 3.05; servo_hole_radius = 3.8/2; beam_width = 8; hole_diameter = 5.2; hole_radius = hole_diameter / 2; module servo() { x1 = (J-(B+C))/2; y1 = (A-D)/2; x2 = x1+B+C; ...
glb/cad_e79f75b2c6bb.glb
Create a Filament RunOut Sensor arm by constructing a base composed of three joined rectangular blocks. First, create a main rectangular base measuring 20mm wide, 12mm deep, and 10mm high. Attach a second rectangular block measuring 5mm wide, 30mm deep, and 10mm high to the side of the base, positioned so it extends fr...
$fn=30; difference() { union() { translate ([0,-2,0]) cube ([20,12,10]); translate ([15,10,0]) cube ([5,30,10]); translate ([20,30,0]) cube ([5,10,20]); } translate ([4,-2,-1]) cube ([12,9,12]); translate ([-10,2.5,5]) rotate ([0,90,0]) cylinder (r=1.7,h=40); translate ([-10,35,15]) rotate ([0,90,0]) cylinder (r=1.7,h...
glb/cad_9a61c2dba820.glb
Create a Filament RunOut Sensor mount consisting of two main components: a main body and a lever arm. For the main body, construct a base using a combination of rectangular blocks. Start with a primary block 18mm wide, 15mm deep, and 14mm high, joined to a second block 38mm wide, 10mm deep, and 14mm high shifted 10mm...
$fn=20; hole_r = 1.85; module cuerpo() { difference() { union() { translate ([0,0,0]) cube ([18,15,14]); translate ([-10,0,0]) cube ([38,10,14]); hull(){ translate ([4,-0.2,9]) cube ([10,0.2,1]); translate ([4,-3,31]) rotate ([0,90,0]) cylinder (r=3,h=10); } } translate ([2,2,2]) cube ([14,7,14]); translate ([1.8,2,11]...
glb/cad_8a21e7e98d68.glb
Create a dominoes box with a base width of 17.4mm, a depth of 6.52mm, and a height of 6.59mm. Start with a rectangular base plate that is 17.4mm by 6.52mm with a thickness of 0.3mm. Construct two side walls along the depth of the base. Each wall should be 6.59mm high (minus the base thickness) and 0.73mm thick (calcu...
use <dominoes.scad> box_width=17.4; box_depth=6.52; box_height=6.59; box_base_height=.3; box_cut_height=(box_height - box_base_height) /9; box_incut_margin=.05; dent = (box_height - box_base_height) /9; dominoes_box( mode = 1); module dominoes_box( mode ) { if( mode == 0 || mode == 1) { dominoes_box...
glb/cad_685b41321bfd.glb
Create a Vase-O-Matic pencil cup by constructing a hollowed, twisted geometric shell. Start with a central square of 50mm, centered on the XY plane. Extrude this square vertically to a height of 120mm. During the extrusion, apply a 90-degree clockwise twist and a scale factor of 1 to maintain the proportions from base ...
square_size = 50; outer_rad = 10; iterations = 1; which_twists = 1; twist_deg = 90; base_shell_thickness = 3; vase_h = 120; floor_thickness = 10; scale_factor = 1; smoothness = 18; $fn = smoothness; inner_rad = outer_rad - base_shell_thickness; module base_solid() { if ((which_twists == 1) || (which_twis...
glb/cad_40eaff06bdad.glb
Create a spool spacer by constructing a hollow cylinder with an outer diameter of 60mm and an inner diameter of 52.5mm. The wall thickness should be consistent throughout the ring. Set the total height of the cylinder to 6.35mm. Ensure the circular profiles are smooth with high facet resolution to maintain a precise cy...
ID = 52.5; OD = 60; Spacing = 25.4/4; $fn = 100; difference() { cylinder(d=OD, h=Spacing); cylinder(d=ID, h=Spacing); }
glb/cad_f2f5473e126e.glb
Create a cable organization clip consisting of a rectangular base with five identical semi-cylindrical retaining clips. Start with a rectangular base measuring 54mm in length, 25mm in width, and 2mm in height. Along the center line of the base, place five identical clips spaced 6mm apart. Each clip is formed by a cylin...
module clip(r=0.5*5.45,wall=2,len=12) translate([r+wall,0,r]) intersection(){ translate([0,0,-r*(2-1.8)*0.5]) cube([len+2,len+2,r*1.8],center=true); translate([0,len*0.5,0]) rotate(90,[1,0,0]) difference() { union() { cylinder(r=r+wall,h=len,$fn=20); translate([-(r+wall),-2*(r+wall),0]) cube([2*(r+wall),2*(r...
glb/cad_6306d1addb12.glb
Create a Parametric Spool Hub designed to fit a spool with a 53.5mm hole diameter and a 9mm wall thickness. The object is centered around a vertical axis with a total height of 20mm. Start with a base cylinder of 61.5mm diameter and 3mm height. Above this, create a central core that transitions from a bottom radius of...
spool_hole_diam = 53.5; spool_wall_thickness=9; threaded_rod_radius = 15; r_spool = 45; edge_cut=1; h = 20; w = 20; br=threaded_rod_radius; bh = 7; 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); ...
glb/cad_b6ce58527003.glb
Create a PCB mount bracket with a thickness of 3.2mm. The main body is a flat, triangular-shaped frame with rounded corners. The base of the frame is 85mm long. At each end of this base, create a circular mounting hole with a radius of 4mm. From the ends of the base, extend two arms that meet at a point to form a tri...
$fn = 50; r1 = 8/2; r2 = 3.4/2; a = 85; b = 100; d = 56; c = d+20; tab_size = 10; thickness = 3.2; sc = 0.8; mink = 1.5; union() { linear_extrude(height = thickness) difference() { minkowski() { polygon(points = [[0,0], [a,0], [b*cos(acos((pow(a,2)+pow(b,2)-pow(c,2))/(2*a*b))), b*sin(acos((pow(a,2)+pow(b,2...
glb/cad_05335d39a43b.glb
Create a PCB mount bracket with a thickness of 3.2mm. The main body is a flat, triangular-shaped frame with rounded corners. The frame is defined by two primary mounting points spaced 85mm apart along the base. At each of these points, create a circular hole with a radius of 4mm. The frame extends upward and inward to...
$fn = 50; r1 = 8/2; r2 = 3.4/2; a = 85; b = 100; d = 56; c = d+20; tab_size = 10; thickness = 3.2; sc = 0.8; mink = 1.5; translate([0,0,thickness]) rotate([180,0,0]) union() { linear_extrude(height = thickness) difference() { minkowski() { polygon(points = [[0,0], [a,0], [b*cos(acos((pow(a,2)+pow(b,2)-pow(...
glb/cad_b30e90388967.glb
Create a bag holder consisting of a curved, semi-circular arm with a thickness of 6mm. The main body is a curved strip with an outer radius of approximately 35.5mm and an inner radius of 29.5mm. Along the center of the curved arm, create a series of 10 small cylindrical holes. Each hole should have a radius of 2mm an...
cl= 260; pi=3.141592653589793; r= cl/(2+pi); echo(2*r); fd = 25; fr = 2; t= 6; mr = -9; mh = t; worry_stickiness = true; ct = -15; cd = 3; ch = 50; h = max(2*mr+t/2, 2*t); inf=2*(h+r); skimmer=true; module magnet_hole() { rotate([90,0]) translate([0,h/2,-mh]) cylinder(r=mr,h=2*mh); } module feature_hole(...
glb/cad_e7fe59a44e98.glb
Create a Customizable Spool for Pololu motor hubs. Start by creating a central cylinder with a radius of 15mm and a height of 15mm. Add two conical caps to the top and bottom, each 5mm thick, that taper from an outer radius of 20mm down to the 15mm radius of the central cylinder. Surround these caps with thin rings of ...
Polygon_Count = 128; $fn = Polygon_Count*1; spoolR = 15; Num_holes = 3; numSides = Polygon_Count; holeR = Num_holes==6 ? 9.5 : (Num_holes==4 ? 6.35:6.2); smallHubR = Num_holes==6 ? 6.5 : (Num_holes==4 ? 1:19/2); screwOffset = Num_holes==6 ? 0 : 20; hubOD = Num_holes==6 ? 26.5 : (Num_holes==4 ? 20:22); spoolW=15; n...
glb/cad_9af704b7bb68.glb
Create a Foam Gun Grip designed to hold a 1/4 inch hose. Start with a base plate that is 105mm wide, 80mm deep, and 14mm thick. All exterior corners of this base must be rounded with a radius of 3mm. Carve out several voids from this base to create the grip's handle and finger slots. First, remove a semi-circular sec...
thickness = 14; corner_radius = 3; difference() { translate([0,0,corner_radius]) minkowski() { union() { difference() { cube([105,80,thickness-2*corner_radius]); translate([55,95,0]) cylinder(h=thickness-2*corner_radius,r=30); translate([50,65.25,0]) cube([65, 20, thickness-2*corner_radius]); translate(...
glb/cad_5a50a080a26b.glb
Create a Foam Gun Grip designed to hold a 1/4 inch hose. Start with a main body that is 14mm thick. The primary shape is a rounded rectangular slab with a total footprint of 105mm by 80mm, featuring a consistent corner radius of 3mm on all outer edges. Within this body, carve out several geometric voids. Create a lar...
thickness = 14; corner_radius = 3; difference() { render() translate([corner_radius,corner_radius,corner_radius]) minkowski() { sphere(r=corner_radius,$fn=20); union() { difference() { cube([105,80,thickness-2*corner_radius]); translate([55,95,0]) cylinder(h=thickness-2*corner_radius,r=30); translate([50,65....
glb/cad_4b837863dcad.glb
Create a unicorn horn by generating a twisted, tapered spire. Start with a base shape that is a square with a side length of 20mm. Extrude this shape vertically to a total height of 70mm. During the extrusion, apply a linear scale that reduces the square's dimensions to 15% of their original size at the peak, while sim...
$fa=1; x=[1,0,0]; y=[0,1,0]; z=[0,0,1]; pi=3.1415926; n=30; $fn=60; v=0; module horn(){ linear_extrude(slices=100,height = 70, center = true, convexity = 10, scale=[.15,.15], $fn=100,twist=400) translate(x*1) square(20,15,center=true); translate(z*35) sphere(r=1.7,$fn=20); translate(0) cylinder(r1=12,r2=0,center=true...
glb/cad_b3d47d959899.glb
Create a unicorn horn by generating a twisted, tapering spire 80mm in height. Start with a base profile consisting of six circles, each with a radius of 8mm, arranged in a circular pattern centered around the vertical axis with a 10mm offset from the center. Extrude this profile linearly to a height of 80mm, applying a...
x=[1,0,0]; y=[0,1,0]; z=[0,0,1]; $fn=40; module horn(){ linear_extrude(steps=100,twist=600,scale=.2,height=80,convexity=10) translate(x*2) for(i=[0:5]){ rotate(i*64) translate(10*x) circle(r=8,center=true); } translate(z*80)sphere(r=4,center=true); cylinder(r2=.1,r1=10,h=80,center=false); } horn();
glb/cad_b8fa8d6f274a.glb
Create a Parametric Stable Finely Adjustable z-Endstop holder. Start with a central clamp designed to fit an 8mm axle. This clamp is a cylinder with a height of 20mm and an outer radius of 6mm, featuring a concentric 4mm radius hole running through its center to accommodate the axle. The clamp is split along one side b...
bh = 10; bt = 3.5; ch = 20; cl = 15; ct = 2; ad = 8; hd = 3; shd = 3; shs = 20; bl = shs+bh/2; difference() { union() { translate([0,0,0]) cylinder(ch,ad/2+ct,ad/2+ct); translate([ad/2-0.5,0,0]) cube([ct+0.5,cl,ch]); translate([-ad/2-2,0,0]) cube([ct+0.5,cl,ch]); translate([-bl/2,-ad,0]) cube([bl,bt,bh]); } ...
glb/cad_6be702360266.glb
Create a toilet brush holder top piece by constructing a hollowed-out dome. Start with a composite solid consisting of a cylinder with a radius of 80mm and a height of 170mm, topped with a hemisphere of the same 80mm radius. Hollow out the center of this shape by removing a sphere with a 60mm radius centered at a heigh...
res = 100; module full_toilet_brush_holder() { difference() { union() { cylinder(50, 100, 70, $fn=res); cylinder(170, 80, 80, $fn=res); translate([0, 0, 170]) sphere(80, $fn=res); } translate([0, 0, 65]) cylinder(190, 60, 60, $fn=res); translate([0, 0, 65]) sphere(60, $fn=res); } } module...
glb/cad_ccaf9ad4904b.glb
Create a parametric syringe consisting of a body, a piston, and a plunger. For the syringe body, create a main cylinder with a radius of 0.795mm and a height of 8.5mm. At the top of this cylinder, add a conical transition that tapers from the main radius down to a nozzle with an outer diameter of 0.52mm and a height o...
$fn=128; mode = 0; diameter = 1.59; height = 8.5; wall = .08; boca = .24; nozzleoffset = .2; nansa = .24; syringe( diameter, height, wall, boca, nansa, nozzleoffset, mode); module syringe( diameter, height, wall, boca, nansa, nozzleoffset, mode) { if( mode == 0) { color([.7,.7,.7,.5]) translate([...
glb/cad_c51f3721098a.glb
Create a 3D model of a data-driven relief map consisting of a base plate and a grid of tapered pillars. Start by creating a rectangular base plate with a thickness of 1mm, measuring 36mm by 36mm. On top of this base, arrange a grid of 9 by 9 tapered pillars. Each pillar is positioned at 4mm intervals. Every pillar sh...
rotation = 45; invert="NO"; values = 2; value = [0,0.50]; rows = 8 + 0; columns = 8 + 0; red_data_points = [ [147,147,147,146,154,163,164,148 ] ,[147,147,146,148,172,212,203,168 ] ,[146,149,154,156,198,205,206,183 ] ,[154,172,189,188,191,205,190,169 ] ,[163,199,190,213,196,160,150,145 ] ,[178,214,200,213,195,152,145...
glb/cad_04578655e2a0.glb
Create a PX4FLOW mount for a UAV consisting of two primary components. First, create a thin square plate measuring 40mm by 40mm with a thickness of 2.5mm. In this plate, place three circular holes with a radius of 2mm and a depth of 22mm, positioned at coordinates (15, 15.5), (-9, 15.5), and (15, -15.5) relative to the...
hold_knob = 2; rotate([0,0,30]) translate ([23,20,-3.75]) mount(); difference(){ cube ([19,70,10], center = true); translate ([-10,-20,0]) rotate ([0,90,0]) cylinder (h=20, r = 1.8, $fn=64); translate ([0,5,16]) rotate ([-25,0,0]) cube ([20,80,20], center = true); } translate ([-11,-35,0]) rotate ([0,90,0]) cylinder ...
glb/cad_c8f71f131de6.glb
Create a 3D model of David's Ring Extruder. Construct the main body by combining several rectangular blocks: a central support for the drive ring axle (25x25x30mm), a support for the pressure ring axle (12x25x22mm), and a larger support structure for the motor (42x10x48mm and 42x20x10mm). Add a cylindrical cutout wit...
# vitamins(); module vitamins() { translate([-26,3.5,0]) rotate ([90,0,0,]) cylinder_tube(7, 25, 2); translate([-14,3.5,0]) rotate ([90,0,0,]) cylinder_tube(7, 11, 7); translate([-14,9,0]) rotate ([90,0,0,]) cylinder(24, 4, 4); difference () { translate([26,3.5,0]) rotate ([90,0,0,]) cylinder_tube(12, 25, 2); ...
glb/cad_a0c2ab3fdbce.glb
Create a 3D model of David's Ring Extruder. Start by constructing the main body, which consists of several joined rectangular blocks. Create a central base block measuring 25mm x 30mm x 34mm, and attach a second block measuring 12mm x 30mm x 25mm to its side. Add a larger support block for the motor measuring 43mm x ...
# vitamins(); rings(); body(); module vitamins() { difference () { translate([26,8.5,0]) rotate ([90,0,0,]) cylinder_tube(12, 25, 2); translate([26,6.5,0]) rotate ([90,0,0,]) filamentTeeth(); }; translate([14,8.5,0]) rotate ([90,0,0,]) cylinder_tube(7, 11, 7); translate([14,15,0]) rotate ([90,0,0,]) cylinder(...
glb/cad_b00f966f6b98.glb
Create a 3D representation of a data map titled "earth" consisting of a base plate and a grid of tapered pillars. Start by creating a rectangular base plate with a thickness of 1mm, measuring 36mm in width and 36mm in length. On top of this base, construct an 8x8 grid of tapered pillars. Each pillar should be positio...
rotation = 45; invert="NO"; values = 2; value = [0,0.50]; rows = 8 + 0; columns = 8 + 0; red_data_points = [ [14,11,18,41,29,14,14,14 ] ,[00,37,132,160,102,33,00,00 ] ,[06,104,186,173,123,77,09,00 ] ,[24,145,201,184,146,98,13,01 ] ,[41,121,150,163,97,58,47,00 ] ,[13,91,111,107,118,152,57,00 ] ,[00,29,89,132,166,107,...
glb/cad_019742d8d0bc.glb
Create a tensile stress test sample with a total length of 200mm, a total width of 20mm, and a uniform thickness of 4mm. The shape is a symmetric "dog bone" centered on the origin. Start with a central gauge section that is 80mm long and 10mm wide. At each end of this gauge section, create a smooth transition to the wi...
gauge_length=80; total_length=200; transition_radius=25; corner_radius = 2; gauge_width=10; grip_width=20; sample_depth=4; smooth=45; module sample() { difference() { cube(size=[total_length-(corner_radius*2), grip_width, sample_depth], center=true); translate([0,grip_width/2,0]) cube([gauge_length, (grip_width-g...
glb/cad_eac94e3df5b7.glb
Create a Simple Laptop Stand consisting of six identical rectangular connector bars. Each connector bar must be 180mm long, 15mm wide, and 7mm thick. To create the specific profile of each bar, start with the solid rectangular volume and remove two vertical rectangular slots to create a central protruding tab and two...
module triangle(x1,y1,x2,y2,x3,y3,z1,z2) { polyhedron( points=[ [x1,y1,z1], [x2,y2,z1], [x3,y3,z1], [x1,y1,z2], [x2,y2,z2], [x3,y3,z2] ], faces=[ [0,2,1], [0,1,4,3], [0,3,5,2], [1,2,5,4], [4,5,3] ],convexity=2 ); } module side() { union() { difference() { tri...
glb/cad_e64023749eb5.glb
Create a torus by revolving a circle around a central axis. The circle used to generate the ring should have a radius of 5mm. Position the center of this circle 10mm away from the axis of revolution. Ensure the final geometry is smooth by using a high facet resolution of 140 segments for the rotation.
$fn = 140; ring (10, 5); module ring (outerRadius = 10, ringRadius = 1) { rotate_extrude (convexity = 10) translate ([outerRadius, 0, 0]) circle (r = ringRadius); }
glb/cad_557938555b81.glb
Create a 3D name plate of the word "Thing" using the Orbitron font. The model is constructed as a stacked pyramid of 9 layers, each with a height of 0.56mm, for a total height of 5.06mm. The layers are centered and stacked vertically. The first 8 layers gradually increase in width, while the final 9th layer is slightl...
textstring="Thing"; fontname="Orbitron"; textsize=16; textheight=4.5; steps_bigger=8; steps_smaller=1; basetype="round"; change_percent=.035; change=textsize*change_percent; steps=steps_bigger + 1 + steps_smaller; baseheight=textheight/steps; module RiseText(textstr, textsize,textheight) { module dotext() ...
glb/cad_097b90ba8a3a.glb
Create a triangular lock holder for a bike mudguard. Start by forming a base shape using a hull of three cylinders: one centered at the top with a radius of 7mm and a height of 2.5mm, and two others positioned at the bottom corners, each with a radius of 7mm and a height of 6.5mm, spaced 29.5mm apart. Build upon this b...
$fn=40; basew = 29.5; based = 16.5; baseh = 30; trid = 51; holedia = 4.1; holesep = 19.7; trih1 = 2.5; trih2 = 6.5; trir = 7; sparew = 14.2; spareh = 6.5; hull() { translate([0, trid-trir*2, 0]) cylinder(r=trir, h=trih1); translate([basew/2-trir, 0, 0]) cylinder(r=trir, h=trih2); translate([-(basew/2-trir), 0, 0]...
glb/cad_2be2ac5bf803.glb
Create a triangular lock holder for a bike mudguard. Start by forming a base shape that is a hybrid between a cylinder and a rounded rectangle: create a hull encompassing three cylinders, each with a radius of 7mm and a height of 30mm, positioned at the origin (0, 37, 0), (7.75, 0, 0), and (-7.75, 0, 0). To this, add a...
$fn=40; basew = 29.5; based = 16.5; baseh = 30; trid = 51; holedia = 4.1; holesep = 19.7; trih1 = 2.5; trih2 = 6.5; trir = 7; sparew = 14.2; spareh = 6.5; hull() { translate([0, trid-trir*2, 0]) cylinder(r=trir, h=trih1); translate([basew/2-trir, 0, 0]) cylinder(r=trir, h=trih2); translate([-(basew/2-trir), 0, 0]...
glb/cad_b7bacb6237fd.glb
Create a disposable coffee cup holder by first constructing a hollow tapered cylinder with a height of 60mm, a bottom radius of 41mm, and a top radius of 35mm. Remove a central cylindrical core from this shape that has a height of 70mm, a bottom radius of 38mm, and a top radius of 32mm, ensuring the core extends 5mm be...
module body() { cylinder(h=60, r1=41, r2=35); } module handle() { difference() { cylinder(h=10, r=27.5); cylinder(h=10, r=24); } } difference () { union () { body(); translate([-5,-38,30]) rotate ([0,90,0]) handle(); } translate ([0, 0, -5]) cylinder(h= 70, r1=38, r2=32); }
glb/cad_3de8a3a18ebc.glb
Create an Automoblox Connector by constructing a central cylindrical body with a total length of 15mm. Start with a main cylinder of 6.67mm diameter and 15mm height, centered on the origin. Add a thin disc at the center with a 7mm diameter and 1mm thickness, and place two additional 1mm thick discs with 7mm diameters a...
render_part=1; module Automoblox_Connector(length=15.0) { cylinder(r=6.8/2,h=4.0,center=true); cylinder(r=7.0/2,h=1.0,center=true); difference() { union() { cylinder(r=6.67/2,h=length,center=true); translate([0,0,length/2-0.5]) cylinder(r=7.0/2,h=1.0,center=true); translate([0,0,-length/2+0...
glb/cad_4828d90cc9ce.glb
Create a 12V power supply cover with an internal cavity measuring 113.8mm wide, 50.7mm deep, and 41mm high. The walls should be 2.5mm thick. On the bottom surface, create a recessed indentation 14mm deep. On the side walls, integrate four screw mounting points. Each mounting point consists of a cylindrical extension w...
zi=41; xi=113.8; yi=50.7; thick=2.5; screw_y=[15.0, 23.0]; screw_z=18+12.1; screw_d=3.4; screw_ext_d=7; screw_ext_len=6; screw_ext_spacethick=2.3; screw_ext_holderthick=6; screw_ext_hole_d=2.9; head_d=6; fixz=34; catchy=10; catcha=10; catchb=10; catchc=25; catchoff=[catcha/2-6,0,catchc-21+5]; c8x=23; c8y=18; c8holes=30...
glb/cad_7b2acce83db5.glb
Create a Key Chain ID Tag by constructing a flat, rounded rectangular plaque with a total height of 1.75mm, a width of 25.26mm, and a length of 30mm. The main body is formed by two semicircles of radius 12.63mm placed at each end of a central rectangle that is 25.26mm wide and 15mm long. Cut a rectangular window out ...
$fn = 100; height = 1.75; length = 30; width = 25.26; cutoutWidth = width-3; cutoutLength = length+4; cutoutWindowFrame = 8; module keychain(){ difference(){ union(){ translate([0,0,-height/2]) cylinder(r=width/2,h=height); translate([0,length,-height/2]) cylinder(r=width/2,h=height); translate([0,length/2,0]) cube(...
glb/cad_984511a700b6.glb
Create a replacement switch lever for a Metcal MX500. Start with a central rectangular base measuring 30mm wide, 15mm deep, and 1.9mm thick. In the center of this base, create a rectangular raised section measuring 4mm wide, 15mm deep, and 4.7mm high. On the left side of the base, add a semi-cylindrical thumbpiece. T...
include <./MCAD/units.scad> include <./MCAD/boxes.scad> module zcube(dim, is_cutout=false) { zshift = dim[2]/2 - (is_cutout ? epsilon:0); xdim = dim[0]; ydim = dim[1]; zdim = dim[2] + (is_cutout ? (2 * epsilon):0); echo([xdim, ydim,zdim]); translate(Z * zshift) { cube([xdim, ydim, zd...
glb/cad_d9bd28272946.glb
Create a hanging parametric deathstar ornament consisting of two hemispherical shells, a connecting threaded joiner, and a gasket ring. Construct the two main shells by starting with a sphere of radius 20mm. For each shell, carve out a central hollow and remove several intersecting rectangular slabs and thin planar s...
include <../screw_library/polyScrewThread.scad> PI=3.141592; $fn=50; x=[1,0,0]; y=[0,1,0]; z=[0,0,1]; module join(nn) {translate(z*-2)screw_thread(nn,4,55,18,PI/2,1); translate(z*-25)cube([50,50,50],center=true); } module joiner(nn) { difference(){ screw_thread(nn,4,55,25,PI/2,2); cylinder(r=(nn/2)-4,h=60,center=tru...
glb/cad_58f22bde9479.glb
Create a screw-together hanging ornament shaped like a Death Star. The model consists of two hemispherical shells, a joining threaded piece, and a gasket ring. Construct the main body from a sphere with a radius of 20mm. Carve out the sphere using a series of intersecting rectangular prisms and thin plates to create a...
include <../screw_library/polyScrewThread.scad> PI=3.141592; $fn=60; x=[1,0,0]; y=[0,1,0]; z=[0,0,1]; module join(nn) {translate(z*-2)screw_thread(nn,4,55,18,PI/2,1); translate(z*-25)cube([50,50,50],center=true); } module joiner(nn) { screw_thread(nn,4,55,25,PI/2,2); } module deathstar(){ difference(){ union(){ ...
glb/cad_8cb9b068151a.glb
Create a Dragon Head Trophy by combining a detailed dragon head mesh with a custom mounting base. Position the dragon head mesh so it is rotated 180 degrees on the Z-axis and merged with a base plate. Construct the base plate by starting with a primary shape formed from the intersection of a cylinder with a 50mm radi...
include <OpenScadFont.scad> dragonhead_trophy(); module dragonhead_trophy() { union() { rotate([0,0,180]) import_stl("dragonhead.stl", convexity = 5); base_plate(); } } module base_plate() { difference() { union() { scale([1.2,1,1]) base_shape(); scale([1.2+0.3,1-0.3,1.5]) base_shape(); } translat...
glb/cad_578c3d7777f9.glb
Create a mesh screen for a 7 ounce cup by constructing a thin, circular disc with a diameter of 69mm and a height of 0.5mm. Within this disc, create a hollow center by removing a concentric circular area with a diameter of 64mm, leaving a solid outer rim 2.5mm wide. Fill the interior of the disc with a grid of narrow s...
$fn = 50; intersection(){ translate([35,35,0]) cylinder(r=69/2,h=0.5); for(i=[0:1.2:69]) translate([i,0,0]) cube([0.67,70,0.67]); } translate([70/2,70/2,0]){ difference(){ cylinder(r=69/2,h=5); cylinder(r=64/2,h=5); } }
glb/cad_0b9e22eef74c.glb
Create a Ninja Shuriken with a total thickness of 1.5mm. The model consists of five identical blades arranged in a radial pattern around a central point. Start by creating a single blade unit. Each blade is based on a cylinder with a radius of 10mm and a height of 1.5mm. From this cylinder, remove a large circular se...
H = 1.5; FN = 256; NUM = 5; TX = -2.4; TY = 5; MAG = 0; MAG_X = 7; MAG_Y = 12; MAG_Z = 2; MAG_SPACE = 0.75; CUT_ROT = [0, -10, 75]; CUT_TRANS = [17, 19, 0]; module magnet() { translate([1.25,0,0]) cube([MAG_X+MAG_SPACE, MAG_Y+MAG_SPACE, MAG_Z + MAG_SPACE*2]); } module blade() { translate([TX, TY, 0]) differen...
glb/cad_1fb803d03384.glb
Create a Mendelmax 1.5 switchplate by starting with a rectangular base measuring 97mm by 70mm with a thickness of 4.4mm. The corners of this base must be rounded with a 6mm radius. Remove four octagonal mounting holes with a radius of 3mm, positioned at the corners: two at x=10mm and two at x=89mm, with y-coordinates...
use <write.scad> render() { difference() { union() { minkowski() { minkowski() { union() { translate([6, 6, 0]) cube ([85,58, 2]); } cylinder(r=6,h=.1,center=false); } translate([0,0,1]) sphere(r=1); } } translate([10,10,0]) cylinder(r=3,h=4.4,center=false,$fn=8); tra...
glb/cad_f6fe131e0998.glb
Create a Honeycomb roller press consisting of a vertically extruded gear-like cylinder with a total height of 30mm. The profile of the cylinder is a modified circle with a base radius of 20mm, featuring 36 evenly spaced sinusoidal lobes that radiate from the center. Each lobe should have an amplitude of 1mm, creating a...
rawradius=20; lobes=36; loberadius=1; sides=lobes*32; step=360/sides; function x(a,b,c) = (rawradius + sin(a*b)*loberadius)* sin(a); function y(a,b,c) = (rawradius + sin(a*b)*loberadius)* cos(a); pa=[for (a = [0 : step : 360+step]) [ a == (360+step) ? 0 : x(a,lobes,loberadius), a == (360+step) ? 0 : y(a...
glb/cad_b82c42bc6100.glb
Create an iPad wall stand starting with a main rectangular block measuring 10mm by 140mm by 140mm. Carve out a large central section by removing three overlapping rectangular volumes, each 234mm by 120mm by 140mm, rotated 5 degrees from the vertical axis and shifted to create a slanted cradle for the tablet. Within t...
difference() { translate([0,0,0])cube([10,140,140]); rotate([10,0,355])translate([-28,70,10])cube([234,10,185]); rotate([10,0,355])translate([-28,79,33])cube([234,120,140]); rotate([10,0,355])translate([-28,95,-30])cube([234,120,140]); translate([10,-8,-10])cube([85,120,155]); translate([-5,14,23])rotate([0,90,0])cy...
glb/cad_4b75b6e40f41.glb
Create an iPad wall stand starting with a solid rectangular block measuring 200mm x 140mm x 140mm. Carve out a large central section to create a slot for the tablet, defined by removing two rectangular volumes rotated 10 degrees on the X-axis and 355 degrees on the Z-axis, positioned to leave a thin support structure. ...
difference() { translate([0,0,0])cube([200,140,140]); rotate([10,0,355])translate([-28,70,10])cube([234,10,185]); rotate([10,0,355])translate([-28,79,33])cube([234,120,140]); rotate([10,0,355])translate([-28,95,-30])cube([234,120,140]); translate([-10,-8,-10])cube([105,120,155]); translate([105,-8,-10])cube([105,120,...
glb/cad_5dd386c00e3d.glb
Create an iPad wall stand starting with a solid rectangular block measuring 200mm x 140mm x 140mm. Carve out a large central section to create a slanted cradle for the tablet; this is achieved by removing three rectangular volumes, each 234mm x 120mm x 140mm (or similar), rotated 10 degrees on the X-axis and 355 degree...
difference() { translate([0,0,0])cube([200,140,140]); rotate([10,0,355])translate([-28,70,10])cube([234,10,185]); rotate([10,0,355])translate([-28,79,33])cube([234,120,140]); rotate([10,0,355])translate([-28,95,-30])cube([234,120,140]); translate([-10,-8,-10])cube([200,120,155]); translate([185,18,31])rotate([0,90,0...
glb/cad_b4790f67cbd1.glb
Create an iPad wall stand consisting of two identical elongated support rails. For each rail, start with a rectangular prism measuring 210mm in length, 7.55mm in width, and 7.55mm in height. To create the specific angled profile, remove a large rectangular section from each rail. Specifically, remove a block measuring ...
difference() { translate([-1,0,0])rotate([0,0,0])cube([210,7.55,7.55]); translate([-20,-2,-2])cube([20,50,50]); translate([190,-2,-2])cube([20,80,50]); } difference() { translate([-1,40,0])rotate([0,0,355])cube([210,7.55,7.55]); translate([-20,-2,-2])cube([20,50,50]); translate([190,-2,-2])cube([20,80,50]); }
glb/cad_f0f26ff51ef6.glb
Create a turbine housing for an ER11 drill vacuum. Start by creating a solid cylinder with a diameter of 52mm and a height of 25mm. Remove a concentric inner cylinder from the center with a diameter of 36mm and a height that slightly exceeds the housing to ensure a clean through-hole. To complete the part, create eight...
quality=360; diameter=52; diameter_internal=36; heigh=25; difference(){ cylinder(d=diameter, h=heigh, $fn=quality); cylinder(d=diameter_internal, h=heigh+0.01, $fn=quality); for ( i = [0 : 7] ){ rotate( i * 360 / 8, [0, 0, 1]) translate([0, diameter/2-3.3-1, 0]) cylinder(d=3.3, h=heigh+0.01, $fn=quality); ...
glb/cad_5fa8f583992f.glb
Create a Quick bridge calibration test consisting of several rectangular prisms. Start by placing a base rectangular prism with dimensions 30mm in length, 4mm in width, and 3.5mm in height. Add two smaller supporting blocks, each measuring 4mm by 10mm with a height of 3.5mm; position one at the start of the base extend...
cube([30,4,3.5]); translate([0,-9,0]) cube([4,10,3.5]); translate([0,24,0]) cube([4,10,3.5]); translate([0,24,0]) cube([30,4,3.5]); translate([0,0,3]) cube([4,28,0.5]);
glb/cad_3ec39d1c27e0.glb
Create a customizable name tag consisting of a base plate and raised text. Start by constructing the base plate as a rectangular slab 58mm wide, 15mm high, and 2mm thick. The four corners of this slab must be rounded with a radius of 5mm. At the bottom edge of the plate, add a supporting foot by attaching a thin rectan...
include <write/Write.scad> Text = "Claudia"; Plate_width=58; Plate_Height =15; Plate_thickness=2; Text_Height=12; Text_depth=.8; Plate_Border=2; Foot = "yes"; Foot_angle = 45; Font = "orbitron.dxf"; part="back"; module label(Text_Height,Plate_Border,Font,Plate_thickness,Plate_Height,Plate_width,Text,Text_depth) { c...
glb/cad_d9406f68f568.glb
Create a Dyson to Kress ST 500 E adapter. Start by creating a central body composed of two stacked cylinders. The bottom section is a cylinder with a radius of 17.6mm and a height of 60mm, centered vertically at -30mm. The top section is a cylinder with a radius of 18.5mm and a height of 32mm, centered vertically at 16...
qq =100; union(){ difference(){ union(){ translate ([0,0,-30]) cylinder (h=60,r =35.2/2,center = true,$fn=qq); translate ([0,0,32/2]) cylinder (h=32,r =37/2,center = true,$fn=qq); } translate ([0,0,-30]) cylinder (h=70,r =30/2,center = true,$fn=qq); translate ([0,0,37/2]) cylinder (h=30,r =30/2,center = true,$fn=...
glb/cad_43fee6e0798e.glb
Create a furniture connector called an Easyshelves free form generator. Start by creating a central rectangular block with a depth of 50mm and a height of 11mm (calculated as the wood thickness of 5mm plus two 3mm walls). From this center, extend several bracket arms. The first bracket is a rectangular block 50mm dee...
depth=50; wood_thickness=5; wall_thickness=3; front_side_length=35; add_foot = "no"; foot_height = 38; fillet_size_user = 0.5; number_of_screws = 1; screw_diameter = 4; interior_screws = "no"; exterior_screws = "no"; first_bracket = "yes"; angle_2 = 45; angle_3 = 90; angle_4 = 135 ; angle_5 = 180; angle...
glb/cad_2b61ae4790d2.glb
Create a proximity sensor mount with a total height of 9.4mm and a base thickness of 4mm. Start with a rectangular block 4mm wide and 9.4mm high, extending along the Y-axis to a length of 31.1mm. At the end of this block, integrate a cylindrical housing for the sensor. This housing consists of a larger cylinder with a ...
height = 9.4; thickness = 4; screws_spacing = 22.1; screws_diameter = 3; sensor_diameter = 18; sensor_spacing = 3; mount_start = thickness+sensor_spacing+screws_spacing+screws_diameter; $fn=50; difference() { cube([thickness, mount_start+thickness+sensor_diameter/2, height]); translate([-0.5, thickness+thickness...
glb/cad_d5025e5ce18f.glb