Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Customizable Compartments Box by starting with a solid rectangular block measuring 200mm in length, 100mm in width, and 50mm in height. Hollow out this block by removing a grid of 30 rectangular holes, arranged in 10 columns along the length and 3 rows along the width. Each hole should be positioned to leave a...
lg = 200; wd = 100; ht = 50; extTk = 4; intTk = 2; divX = 10; divY = 3; module box(lg, wd, ht, extTk, intTk, divX, divY) { difference() { cube([lg,wd,ht]); sizeX = (lg - extTk*2 - intTk*(divX-1))/divX; sizeY = (wd - extTk*2 - intTk*(divY-1))/divY; sizeZ = ht - extTk + ...
glb/cad_e9ee6df0d636.glb
Create a Customizable Compartments Box by starting with a solid rectangular block. The overall external dimensions of this block should be 40 mm for the height (Z), 44 mm for the total width (Y), and 41 mm for the total length (X), calculated based on the provided multipliers and thicknesses. Specifically, the external...
lg = 40; wd = 60; dp = 100; extTk = 4; intTk = 2; multX = 9; multY = 3; module box(lg, wd, dp, extTk, intTk, multX, multY) { difference () { sizeX = lg*multX + 2*extTk + (multX-1)*intTk; sizeY = wd*multY + 2*extTk + (multY-1)*intTk; sizeZ = dp + extTk; cube([sizeX, siz...
glb/cad_ea53863de555.glb
Create a Printrbot Printable Bed Frame consisting of two identical, mirrored longitudinal rails. For each rail, start with a base rectangular block 209mm long, 15mm wide, and 5mm thick. Round the two far ends of the block with a radius of 7.5mm to create semi-circular caps. On each rail, create four vertical holes wi...
D=4; R=D/2; hole_distance = 209; y_belt_mount_offset = 52; module X_cross() { difference() { union() { cube([hole_distance, 15, 5], center = true); translate([0,0,5]) cube([50,15,5], center = true); translate([-25,0,5]) cube([140,5,5], center = true); translate([hole_distance/2, 0, 0]) cylinder(h...
glb/cad_25c29a2c12e8.glb
Create a Printrbot Printable Bed Frame consisting of two identical mirrored rails. For each rail, start with a central rectangular base measuring 320mm in length, 15mm in width, and 5mm in height. Round the two far ends of the base with a radius of 7.5mm. On each rail, create four vertical holes with a diameter of 4m...
D=4; R=D/2; hole_distance = 209; total_length = 320; heat_bed_offset = 92; module Y_cross() { difference() { union() { cube([total_length, 15, 5], center = true); translate([0,0,5]) cube([50,15,5], center = true); translate([0, 0, 5]) cube([total_length-30, 5, 5], center = true); translate...
glb/cad_e450c7e3636d.glb
Create a double-sided Keyforge token by starting with a square base that is 12mm wide and 12mm deep, with a height of 2mm. The base should have rounded corners with a radius of 2mm. On the top and bottom faces, engrave the Roman numeral "I" centered in the middle of the token. The central numeral should be 7mm tall. ...
include <morphology.scad>; function isArray(v) = len(v) != undef; tokenSize=12; tokenHeight=2; smoothness=100; logo_scale = 4; engrave_depth = 0.8; e = .01; printToken=0; tokenNumber="I"; if (printToken==0) { difference() { union() { translate([tokenSize*sqrt(2)/2,0,0]) { ro...
glb/cad_e0cd97284c77.glb
Create a Keyforge Damage Token by starting with a smooth cylinder 20mm in diameter and 2mm in height. On the top face of the cylinder, center a bold, sans-serif numeral "I" with a height of 6.5mm, extruding it slightly above the surface. To create the decorative notches around the perimeter, place eight circular holes,...
function isArray(v) = len(v) != undef; tokenDiameter=20; tokenHeight=2; smoothness=100; printToken=0; tokenNumber="I"; if (printToken==0) { difference() { translate([tokenDiameter/2,tokenDiameter/2,0]) cylinder(h=tokenHeight,d=tokenDiameter, $fn=smoothness); translate([tokenDiameter/...
glb/cad_1b8f4a058b17.glb
The provided data describes a series of 3D puzzle tilings (represented as arrays of coordinates) and their corresponding solutions. The patterns are categorized by puzzle IDs (e.g., `apuz_75655` through `apuz_75999`). ### Summary of the Data Structure: 1. **Puzzle Definitions:** Each `apuz_XXXXX` entry represents a s...
view_both(puzzle_1); module view_answers(file) { color("blue") join_cubes(file,1,9); color("yellow") join_cubes(file,10,9); color("green") join_cubes(file,19,9); } module view_pieces(file) { translate([0,0,-40]) color("blue") join_cubes(file,1,9); translate([-50,0,0]) color("yellow") join_cu...
glb/cad_de938bf41d26.glb
Create a Geometric Bracelet consisting of a complex woven band. The structure is based on a central ring with an inner diameter of 75mm and a band thickness of 5mm. Construct the main body by sweeping a sphere with a radius of 0.625mm along a toroidal helical path. This path must wrap around the ring 3 times while si...
whole_periods =2; turns = 3; height = 28; width = 5; inner_diameter = 75; rail_diameter =1.25; mirror_reinforced = "yes"; top_and_bottom_reinforced = "yes"; solid_ring = "no"; segments_per_turn = 27; fragments_per_segment = 8; periods = 1/turns+whole_periods; twoPi = 2*3.1415; radialShift = (inner_diameter/2...
glb/cad_243828f9998e.glb
Create an Ender Bracket by extruding a specific 2D profile to a height of 25mm. The profile begins with a rectangle 2mm wide and 6mm deep, positioned from x = -2 to x = 0 and y = 2 to y = 8. Attached to this is a polygonal shape defined by the vertices [0,0], [0,10], [1.3,10], [4, 7], [4, 5], and [1.3,0]. Combine these...
length = 25; width = 2; A = 10; B = 6; C = 1.3; D = 4; E = 6; module bracket(){ translate([-width, A/2-E/2, 0]) cube([width, E, length]); linear_extrude(length){ polygon([[0,0], [0,A], [C,A], [D,(A-B)/2+B], [D,(A-B)/2], [C,0]]); } } bracket();
glb/cad_e8278ca7d585.glb
Create a Thirteen Peg Puzzle Board by starting with a cube that is 100mm wide, 100mm long, and 20mm deep. Trim this cube into an equilateral triangle shape. In this triangular board, create 15 cylindrical holes, each with a radius of 2.5mm and a depth of 15mm, arranged in a triangular grid. Position the holes in five...
l=100; d=20; difference() { cube([l,l,d]); rotate(a=[0,0,60]) cube([l+20,l,d]); translate([100,0,0]) rotate(a=[0,0,30]) cube([l,l+20,d]); translate([10, 5, 10])cylinder(h=15,r=2.5); translate([30, 5, 10])cylinder(h=15,r=2.5); translate([50, 5, 10])cylinder(h=15,r=2.5); translate([70, 5, 10])cylinder(h=15,r=2.5); transl...
glb/cad_a618c946f543.glb
Create a peg for a puzzle board. Construct the peg by combining two coaxial cylinders of different heights and radii. First, create a thin main shaft with a radius of 2.25mm and a total height of 30mm. At the base of this shaft, add a wider, shorter cylindrical cap with a radius of 5.625mm and a height of 5mm. Ensure t...
pl=30; pr=2.25; union() { cylinder(h=pl,r=pr); #cylinder(h=pl-25, r=pr*2.5); }
glb/cad_5c226efb04a3.glb
Create a parametric fan duct consisting of a base plate and a protruding rectangular shroud. Start with a base plate that is 60mm by 60mm with a height of 2mm. Center a circular hole through this base with a diameter of 70mm, but clip this circle so it only exists within the 60mm square footprint. At the four corners ...
base_height=2; fan_size=60; fan_hole_diameter=70; base_screw_diameter=4.3; base_screw_margin=3; duct_shape = "squared"; duct_height=20; duct_width=.80; duct_length=.50; duct_rotation_x=20; duct_rotation_y=0; duct_rotation_z=0; duct_delta_x=0; duct_delta_y=5; duct_border_width=2; union() { base(); duc...
glb/cad_ff1675f849d7.glb
Create a Parametric Mini Fishtank Filter System consisting of a hollow pipe and a filter bay. First, construct the pipe with an inner diameter of 8mm and an outer diameter of 11mm. The pipe should have a total length of 95mm. Create a hollow channel running through the center of the pipe with a diameter of 8mm. Next...
outerd=11; inerd=8; tubelength=95; coslength=0.86*tubelength; sinlength=0.5*tubelength; length=15; thickness=(outerd-inerd)/2; screw=3; difference() { union() { rotate([30,0,0]) translate([0,0,tubelength]) sphere(d=outerd,$fs=1,center=true); translate([0,-sinlength,coslength+(length/2)]) cylinder(h=length,...
glb/cad_d1b90eaf14f2.glb
Create a 26650 battery case consisting of a main body and a lid. For the body, create a container by forming a hull between two cylinders, each with a diameter of 33.5mm and a height of 48.5mm, positioned symmetrically along the X-axis. Subtract a central cylindrical void with a diameter of 33mm and a height of 69.4mm,...
batd=26.5; bath=68.4; clear=.5; wall=3; $fn = $preview ? 32 : 128; translate([0,batd+4*wall+4*clear,0]) body(); lid(); module batt(){ cylinder(d=batd, h=bath); } module lid(){ union(){ difference(){ hull(){ translate([batd/2+wall/2+clear,0,0]) ...
glb/cad_00873d66917a.glb
Create a protective electronics box for an LM2596 DC-DC converter with a separate lid. The main case is a rounded rectangular prism with external dimensions of 73.2mm in length, 33.2mm in width, and 23.2mm in height, featuring a corner radius of 2mm. The interior is hollowed out to a space of 70mm by 30mm by 20mm. On...
Board_Length = 70; Board_Width = 30; Board_Height = 20; Voltage_Window = 15; Voltage_Window_offset = 5; Hole_radius = 2.5; Security_Margin = 1; Wall_Thickness = 1.6; Xtra = Security_Margin + 2*Wall_Thickness; Hole_pos_x = (Board_Length + Xtra) / 2; translate([0, -Board_Width, (Board_Height + Xtra)/2]) LM2596_...
glb/cad_439309b1ec44.glb
Create a wall-mounted tealight holder consisting of a mounting bracket and a decorative shell. First, construct the bracket. Create a cylinder with a diameter of 50mm and a height of 5mm. Extend a rectangular block from this cylinder measuring 70mm in length, 50mm in width, and 5mm in height. At the far end of this b...
shell(); frame(); module frame(thick=5,width=50,length=70){ difference(){ union(){ cylinder(thick, d=width); translate([0,-width/2,0]) cube([length,width,thick]); translate([length,-width/2,0]) cube([thick,width,length]); translate(...
glb/cad_8e10a59d6ff9.glb
Create a low insertion force hex bit holder. Start with a solid rectangular block measuring 26.5mm in width, 9.9mm in depth, and 15.5mm in height. Subtract three vertical cylindrical holes from the top face, each with a diameter of 7.7mm. These holes should be spaced with 1.6mm of separation between them and 1.1mm fr...
slot_num = 3; bit_separate_space = 1.6; holder_height = 15.5; side_wall_thickness = 1.1; hole_diam = 7.7; latch_thickness = 1.9; latch_height = 5; latch_width = 3; latch_pos_z = 4.2; $fn = 60; spring_thicknes...
glb/cad_d35879b60790.glb
Create a low insertion force hex bit holder. Start with a rectangular block that is 15.5mm high, 2.2mm thick on the side walls, and wide enough to accommodate three bit slots. Create three vertical cylindrical holes, each 7.7mm in diameter, spaced 1.5mm apart. These holes should pass through the block from the top. ...
slot_num = 3; bit_separate_space = 1.5; holder_height = 15.5; side_wall_thickness = 1.1; hole_diam = 7.7; latch_thickness = 1.6; latch_height = 4; latch_width = 3; latch_pos_z = 4.2; $fn = 60; spring_thicknes...
glb/cad_d6017a041ff1.glb
Create a small wire roll spool with a total height of 22mm. The core of the spool is a central cylinder with a diameter of 19mm and a height of 22mm. From the top and bottom faces of this core, add conical transitions that flare outwards to create two circular flanges. Each flange starts at the core's 19mm diameter and...
zf = 0.01; zf2 = zf*2; h = 22.0; m = 15.0; w = 2.0; $fn = 90; mw = m+w*2; spd = 45.0; hlz = 2.5; module outside() { union() { translate([0,0,w-zf]) cylinder(h=h/4, d1=spd, d2=mw); cylinder(h=w+zf, d=spd); } } difference() { union () { cylinder(h=h,...
glb/cad_bccebab3a2d4.glb
Create a webcam bracket for an aluminum extrusion. Start with a rectangular base plate measuring 60mm by 40mm with a thickness of 5mm. At the position (40, 20), remove a cylindrical hole with a radius of 8mm that passes completely through the plate. Add two cylindrical chamfers, each with a radius of 2.5mm and a lengt...
echo(version=version()); module example_translate() { translate([0, 0, -120]) { difference() { cylinder(h = 50, r = 100); translate([0, 0, 10]) cylinder(h = 50, r = 80); translate([100, 0, 35]) cube(50, center = true); } for (i = [0:5]) { echo(360*i/6, sin(360*i/6)*80, cos(360*i/6)*80); translate([sin(360*i/6)*80, cos...
glb/cad_c694c8ddfaaf.glb
Create a planetary gear bearing with an outer ring and an internal gear system. The outer ring is a cylinder with a diameter of 50mm and a thickness of 15mm. Carve a hexagonal hole with a width of 6.7mm through the center of the entire assembly. Inside the ring, create a central sun gear and five planet gears. The sun...
include <write/Write.scad> text="Your Text Here"; font="write/Letters.dxf"; t_size=6; t_vert=0; depth=1; D=50; T=15; tol=0.25; number_of_planets=5; number_of_teeth_on_planets=7; approximate_number_of_teeth_on_sun=9; P=45; nTwist=1; w=6.7; DR=0.5*1; m=round(number_of_planets); np=round(number_of_teeth_on_pl...
glb/cad_e48d4358357e.glb
Create a front skirt bumper extension for a vacuum robot. Start by constructing a curved wall that follows a 172mm outer radius and a 170mm inner radius, creating a wall thickness of 2mm. This wall should be 20mm high and span a 90-degree arc. To the inner face of this wall, add a profile that extends from the 170mm ra...
$fn=240; intersection() { difference() { union(){ linear_extrude(20) difference(){ circle(r=172); circle(r=170); } rotate_extrude(angle=90) translate([170-4,0,0])polygon([ [0,2.5], [4,0],...
glb/cad_81af4db29ef7.glb
Create a Parameterized Calibration Cube Cave by starting with a solid cube measuring 20mm on all sides. From this main volume, remove three labels to create recessed letters, each with a depth of 0.5mm and a size of approximately 12.36mm. Center the letter "X" on the front face, the letter "Y" on the side face, and the...
cube_size = 20; letter_devider = 1.61803398875; letter_depth = 0.5; wall_thicknes = 1; sphere_faces = 128; font = "Mono:style=Bold"; x_text = "X"; y_text = "Y"; z_text = "Z"; letter_size = cube_size / letter_devider; letter_shift = cube_size / 2; module label(text, size, depth, font){ resize([size, size, depth * 2]...
glb/cad_fe30e5399acd.glb
Create a parametric bamboo cap designed to fit over a pipe. Start by constructing a main cylindrical body with a height of 10mm. This body consists of two concentric rings: an outer ring with a radius of 23mm (derived from a 40mm external diameter plus a 3mm wall thickness) and an inner ring with a radius of 17.5mm (de...
internal_D=35; external_D=40; Ep=3; Height=10; $fs=0.5; $fa=0.5; difference(){ union(){ difference(){ cylinder(r=(external_D/2)+Ep,h=Height); translate([0,0,-1])cylinder(r=external_D/2,h=Height+2); } difference(){ cylinder(r=(internal_D/2),h=Height); translate([0,0,-1])cylinder(r=internal_...
glb/cad_1f75f02b038b.glb
Create a governor linkage ball joint socket. Start with a main cylindrical body 15.5mm high with an outer radius of 4.9mm. Drill a 2mm radius hole through the center of this cylinder. At the top of the cylinder, center a spherical shell with an outer radius of 6.25mm and an inner void radius of 3.96mm to accommodate a ...
$fn=100; sphereshellrad=6.25; ballrad=0.310*25.4/2; echo(str("Ball radius is ", ballrad)); sidecutrad=90; sphereflatoffset=3.4; bodyflatoffset=3.8; bodyholewidth=5.6; bodyholehight=5; slotwidth=1; slothight=8; translate([0, 0, bodyflatoffset]) rotate([-90, 0, 0]) { difference() { union() { translate([0, 0, 21.5]) ...
glb/cad_79e711d216e0.glb
Create a Periodic Bathymetry model consisting of a 6x6 grid of identical tiles. Each tile is a block with a square base of 20mm x 20mm and a total height that varies based on a cosine function to create a undulating top surface. The height of each tile is determined by the formula $2 + 2 \times (5/20) - \cos(x \times 3...
function maxvr(v,i,s=0) = (i==s) ? v[i] : max(v[i],maxvr(v,i-1,s)); function minvr(v,i,s=0) = (i==s) ? v[i] : min(v[i],minvr(v,i-1,s)); function maxv(v) = maxvr(v,len(v)-1,0); function minv(v) = minvr(v,len(v)-1,0); function sumv(v,i,s=0) = (i==s ? v[i] : v[i] + sumv(v,i-1,s)); function avgv(v) = sumv(v,len(v)-1,0...
glb/cad_c73ef18bb771.glb
Create a Mosfet case for P3Steel by starting with a main rectangular body measuring 65mm x 55mm x 48mm. Hollow out the center of this body with a smaller rectangular cavity measuring 61mm x 51mm x 48mm. At the four corners of the case, create mounting holes. Each corner should feature a composite hole consisting of a...
difference() { difference() { difference() { difference() { translate([0,0,-5]) color("red") cube(size=[65,55,48], center=true); difference() { translate([0,0,-6]) color("lemonchiffon") cube(size=[61...
glb/cad_0716d7936f85.glb
Create a Beaded Cord Spool designed as a pulley for a ball chain. Start with a main wheel that is 6.75mm thick and has a radius of approximately 13.4mm. Centered within this wheel, create a vertical cylindrical hole with a radius of 2.7mm. Around the outer edge of the wheel, place 15 spheres, each with a radius of 2....
shaft_size = 2.7; ball_size = 2.5; link_size = 1.5; link_length = 0.75; ball_count = 15; grub_size=2; PI = 3.1415927; wheel_radius = (ball_count*(2*ball_size+link_length))/(2*PI); boss_height = 10; boss_radius = shaft_size*3; wheel_height = ball_size*2.7; rescale = 1; module ball(bs) { union() { scale([rescale,r...
glb/cad_2419d3ffaf8c.glb
Create a drag chain link consisting of a hollow rectangular body with a central channel. The main body is a rectangular prism 100mm long, 10mm wide, and 11mm high. Carve a hollow channel through the center of the body, leaving walls that are 2mm thick on the top and bottom. At each end of the link, create a circular ...
$fn=32; module linkp(){ cube([6,18,15]); translate([12.5,0,7.5])rotate([-90,0,0])cylinder(d=15,h=2); translate([12.5,16,7.5])rotate([-90,0,0])cylinder(d=15,h=2); cube([12.5,2,15]); translate([0,16,0])cube([12.5,2,15]); translate([-4,2,0])cube([4,14,15]); translate([-8,2,7.5])rotate([-90,0,0]...
glb/cad_88b152d8e73a.glb
Create a drag chain link with an overall outer dimension of 25mm wide by 15mm high. The main body is a hollowed-out rectangular frame with a central void measuring 100mm long, 10mm wide, and 11mm high. At the center of the side walls, create a cylindrical hole with a diameter of 5.5mm that passes through the entire 5...
$fn=32; module linkp(){ cube([6,18,15]); translate([12.5,0,7.5])rotate([-90,0,0])cylinder(d=15,h=2); translate([12.5,16,7.5])rotate([-90,0,0])cylinder(d=15,h=2); cube([12.5,2,15]); translate([0,16,0])cube([12.5,2,15]); translate([-4,2,0])cube([4,14,15]); translate([-8,2,7.5])rotate([-90,0,0]...
glb/cad_87830467a1e7.glb
Create a speaker mount designed to hold a 45mm x 44.8mm x 45mm cube speaker. Start with a base block that is 51mm wide, 50.8mm deep, and 11mm high. From this base, create a central hollow cutout for the speaker that is 45mm wide, 44.8mm deep, and 45mm high, positioned 3mm from the bottom and sides. Extend a back wall ...
$fa = 3; $fs = .5; speaker_width=45; speaker_depth=44.8; speaker_height=45; speaker_cutout_size_d = 42; wire_notch = 6; holder_thickness=3; holder_back_thickness = 6; screw_recess_depth = 4; screw_recess_size_r = 12 / 2; holder_height = 8; wire_notch_height = 25; back_screw_height = holder_thickness + (speaker_heigh...
glb/cad_5cf4f8b91a82.glb
Create a parametric electronics box with an inner cavity of 40mm width, 40mm length, and 10mm height. The walls should be 2.4mm thick with rounded exterior corners. At the base of the interior, place four cylindrical mounting studs with a diameter of 8mm and a height of 4mm. Position these studs at the coordinates [4...
inner_width = 40; inner_length = 40; inner_height = 10; overlap_height = 5; overlap_clear = .2; stud_pos = [[4,4],[4,36],[36,4],[36,36]]; stud_cs_type = [ 1 , 1 , 1 , 1 ]; stud_cs_dia = [ 6.4 , 6.4 , 6.4 , 6.4 ]; stud_cs_height = [ 3.2 , 3.2 , 3.2 , 3.2 ]; stud_drill = [ 3.2...
glb/cad_f77e8ff9cd12.glb
Create a Kossel Mini glass bed holder with a total height of 19.25mm and a width of 15mm. The main body is a composite shape consisting of a central cube with a width of 15mm and a height of 19.25mm, merged with a hexagonal prism. This hexagonal section is created by scaling a 6-sided cylinder (radius 7.5mm, height 19....
epsilon = 0.1; extra_radius = 0.1; m3_major = 2.85; m3_radius = m3_major / 2 + extra_radius; m3_wide_radius = m3_major / 2 + extra_radius + 0.2; m3_head_radius = 3 + extra_radius; dia2waf = 0.866; top_thickness = 4.0; glass_thickness = 5.25; bottom_thickness = 9.0; notch_thickness = 1.5; height = top_thickness + g...
glb/cad_832adb97ba51.glb
Create a bevel gear designed for an M8 bolt. Start with a conical base that has a height of 9mm, a maximum radius of 31.8mm at the top, and a bottom radius of 27.3mm. Around the perimeter of this cone, create 11 evenly spaced teeth. Each tooth is formed by the intersection of the cone and a complex shape consisting of ...
include <rroofl.inc>; bevel_height=9; bevel_max_rad=31.8; tooth_width=6; teeth=11; module tooth() { translate([0,(bevel_max_rad+1)/2,bevel_height/2]) difference() { cube([tooth_width,bevel_max_rad+1,bevel_height],center=true); rotate([0,-25.0]) translate([tooth_width*0.85,0,0]) cube([tooth_widt...
glb/cad_f56be4a58af6.glb
Create a comb stand for hair clipper guards consisting of a base and a back support connected by a 45-degree angled joint. The base and back are flat plates with a thickness of 3mm and a width of 45mm. The base extends forward to support six upright slots. Create six rectangular uprights, each 45mm wide, 3mm thick, an...
sizes = [1,2,3,4,6,8]; spacing = 25; showText = true; w = 45; d = 3; h = 28; textDepth = 1; textSize = 18; textHOffset = 15; textVOffset = 6; count=len(sizes); structure(); module structure() { translate([0,count*spacing*sin(45)+d,0]) rotate([90,0,0]) linear_extrude(d)square([w,count*spacing*si...
glb/cad_74fa19517b27.glb
Create a rear shift-rod guide consisting of a hollow cylindrical sleeve with an outer diameter of 21mm and an inner diameter of 14mm, extending to a total height of 40mm. The main body is a tube with a wall thickness of 3.5mm. At the base of the cylinder, integrate a bulbous section formed by a sphere with a 10.5mm rad...
od = 21; id = 14; length = 40; wall = 2; $fs = 0.1; difference(){ union(){ cylinder (r=(id+wall)/2,h=length); difference(){ translate ([0,0,od-12]) scale([1,1,2])sphere (r=od/2); for(i=[0:36:360]) rotate([0,0,i]) translate([0,-1.5,0]) cube([20,3,40]); } } union(){ translate ([0,0,wall]) cylinder (r...
glb/cad_354fa0603335.glb
Create a USB Key Storage holder by starting with a main rectangular block that is 10mm wide, 19mm deep, and 14mm high. Carve a rectangular hole out of the center of this block to create a slot for a USB connector; this opening should be 5mm wide, 13mm deep, and 15mm high, positioned so that it is centered along the dep...
LengthOfBody=44; BottomHalfBodyThickness=5; HeightOfLatch=5; difference() { cube([10,19,14]); translate([((BottomHalfBodyThickness*2)-5)/2,(19-13)/2,0]) cube([5,13,15]); } translate([-3,0,0]) cube([3,19,LengthOfBody+14]); translate([-3,0,LengthOfBody+14]) cube([HeightOfLatch,19,3]);
glb/cad_eae76a25b328.glb
Create a digital indicator mount for a printer hot end. Start by forming the main body as a hull that connects a cylinder of diameter 61mm and height 25.5mm, positioned at [0, 17, 18], to a rectangular base measuring 65.2mm by 46.2mm with a height of 18mm, centered at [-32.6, -23.1, 0]. Extend the base with a small 3.6...
$fn = 96; dial_dia = 57.0 + 0.5; dial_ht = 25.5; dial_wall = 2.0; dial_ofs = 17.0; top_cutout = 8.77; bot_cutout = 8.0; he_x = 58.2 + 0.5; he_y = 46.0 + 0.2; he_z = 18.0; he_wall = 3.6; mag_dia = 12.0 + 0.1; mag_tk = 2.8 + 0.1; difference() { hull() { translate([0,dial_ofs,he_z]) cylinder(h=dial_ht,d=dia...
glb/cad_c2260c039b73.glb
Create a console case consisting of a rectangular base and a matching lid. The base is a hollowed rectangular box with external dimensions of approximately 216mm in length and 76mm in width. The walls are thick, with rounded corners defined by an 8mm diameter radius. The lid is a flat plate with a thickness of 2mm, ma...
$fn=100; Lid=1; Base=1; W=3; CLid="white"; if(Lid) color(CLid)translate([0,0,30]){ difference() { hull() { cylinder(d=8,h=2); translate([210,0,0])cylinder(d=8,h=2); translate([210,70,0])cylinder(d=8,h=2); translate([0,70,0])cylinder(d=8,h=2); } translate([0,0,-11]) translate([0,0,4])cylinder(d=3.6...
glb/cad_66afac0807eb.glb
Create a replacement clip for a steam mop by constructing a composite geometric form. Start with a central rounded rectangular block measuring 12.9mm by 14.4mm with a height of 7mm and corner radii of 3mm, positioned at the top. Below this, add a larger rounded rectangular base measuring 15.25mm by 17.05mm with a heigh...
include <..\libraries\Libs.scad> difference() { union() { translate([0,0,2.35])roundRect([12.9,14.4,7],3,true); difference(){ translate([0,0,-5])roundRect([15.25,17.05,10],3,true); translate([0,-5.15,-10])cube([20,10,5],center=true); translate([0,-1.389,-10.8])rotate([25,0,0])cube([20,5,5],center=true); ...
glb/cad_15a986f1d55e.glb
Create a twisted hexagon with a total height of 30mm. Start with a regular hexagonal base centered on the origin, where the vertices are positioned at [20,0], [10,-17], [-10,-17], [-20,0], [-10,17], and [10,17]. Extrude this hexagonal profile vertically to the 30mm height, applying a continuous 30-degree twist around t...
linear_extrude(height = 30, center = false, convexity = 10, twist = 30, slices = 400, scale = 1.0) polygon(points=[[20,0],[10,-17],[-10,-17],[-20,0],[-10,17],[10,17]], paths=[[0,1,2,3,4,5]]);
glb/cad_ca272b11238f.glb
Create a holder for a mini iPad by constructing a base and a supporting backrest. Start with a rectangular base measuring 200.2mm in length, 40mm in width, and 6mm in height. In this base, create two rectangular indentations for Velcro fasteners, each measuring 30mm by 30mm with a depth of 3mm; position the first at co...
difference() { cube([200.2,40, 6]); #translate([20,5,0])cube([30,30,3]); #translate([160,5,0])cube([30,30,3]); } rotate(60,[30,0,0]) translate([0,15,-20]) cube([200.2,35, 6]); rotate(60,[30,0,0]) translate([0,6,-6.5]) difference() { cube([200,20, 6]); translate([6,6,0]) cube([188,14, 7]); }
glb/cad_d57ed571fc79.glb
Create a Groove Mount adapter by starting with a rectangular base plate measuring 40mm in length, 25mm in width, and 10mm in height. At the center of the plate, create a vertical cylindrical cutout with a diameter of 16.9mm that passes through the top half of the plate. Directly beneath this, create a smaller concent...
barrel_diameter = 16.9; barrel_inset_diameter = 13.4; plate_length = 40; plate_width = 25; plate_height = 10; mounting_bolt_diameter = 3.4; left_mounting_bolt_distance = 13; right_mounting_bolt_distance = 13; clamp_bolt_diameter = 4.2; $fn = 32; module teardrop(radius,height,truncated) { truncateMM = 1; union(...
glb/cad_fc0bf884b8f6.glb
Create a Lazy Man's Kapton Jig by constructing a base plate and removing specific volumes to create a thin-walled frame. Start with a solid rectangular block measuring 133mm wide, 163mm long, and 4mm high. From this block, remove a central rectangular volume measuring 120mm wide, 163mm long, and 2mm high, positioned su...
kaptonWidth = 120; bpLength = 150; lipSize = 6.5; lipThickness = 2; jigSize = 13; jigThickness = 2; main(); module main(){ difference(){ translate([0, 0, -lipThickness]) cube([kaptonWidth + jigSize, bpLength + jigSize, jigThickness + lipThickness]); cube([kaptonWidth, bpLength + jigSize, jigThicknes...
glb/cad_d71544cfeee8.glb
Create a snap-click electronics enclosure consisting of a main box and a matching lid. For the main box, create a rectangular base with inner dimensions of 75mm x 42mm and a height of 15mm. The walls and floor should have a uniform thickness of 3mm. Round all external corners with a radius of 5mm and internal corners...
$fn=100; box_x = 75; box_y = 42; box_z = 15; lid_z = 3; wall = 3.0; rim = wall; tol = 2.2*.15; icr = 2; snap = .17; with_screws = true; module obox() { rect = [ box_x-2*icr, box_y-2*icr ]; difference() { translate([wall+box_x/2,wall+box_y/2,0]) { difference() { linear_extrude(height=wall+bo...
glb/cad_ee4a5f2ecef7.glb
Create a Customizable Compartments Box consisting of a series of concentric cylindrical rings with a total height of 50mm and a base thickness of 10mm. The structure is built from the center outward using five nested rings. The innermost ring has an outer radius of 44mm and an inner radius of 40mm. Moving outward, each...
ht = 50; circles = [[2,40], [3,40],[5,40],[7,60],[10,20]]; intTk = 4; extTk = 10; $fn=100; module circle(circles, ht, iTk, eTk, i=0, sumR=0) { union () { difference () { cylinder(h=ht, r=circles[i][1]+sumR+((i<len(circles))?iTk:eTk)); translate([0,0,eTk]) ...
glb/cad_a690606bde5b.glb
Create a horizontal material spool holder by constructing a rotationally symmetric body around a central vertical axis. Start with a profile that is rotated 360 degrees to create a solid of revolution. This profile begins at the origin, extends outward to a radius of 28mm for a height of 2mm, then steps inward to a rad...
d1 = 22.6; d2 = 45; d3 = 51.7; d4 = 56; h1 = 2; h2 = 11; h3 = 20; chamfer = 0.5; boltHoles = 3; boltDia = 34; boltHoleDia = 3; difference(){ rotate_extrude($fn=200) polygon(points=[[0,0],[d4/2,0],[d4/2,h1],[d3/2,h1],[d3/2,h3-chamfer],[d3/2-chamfer,h3],[d2/2+chamfer,h3],[d2/2,h3-chamfer], [d2/2,h2],[0,h2]], paths=[[...
glb/cad_3bc60d084423.glb
Create a horizontal material spool holder consisting of two stacked cylindrical sections with a central vertical hole. First, create a base cylinder with a diameter of 14mm and a height of 4mm. Directly on top of this base, add a second cylinder with a diameter of 9.6mm and a height of 5mm. Finally, bore a circular hol...
postDia = 9.6; postHeight = 5; shoulderDia = 14; shoulderHeight = 4; holeDia = 3.2; difference() { union() { cylinder($fn=36,r=postDia/2,h=postHeight); cylinder($fn=36,r=shoulderDia/2,h=shoulderHeight); } cylinder($fn=36,r=holeDia/2,h=15); }
glb/cad_40feb25acece.glb
Create a horizontal material spool holder consisting of two stacked cylindrical sections with a central vertical hole. First, construct a wide base cylinder with a diameter of 16mm and a height of 3mm. Directly on top of this base, center a narrower cylinder with a diameter of 9.6mm and a height of 8mm. Finally, bore a...
postDia = 9.6; postHeight = 8; shoulderDia = 16; shoulderHeight = 3; holeDia = 3.5; difference() { union() { cylinder($fn=36,r=postDia/2,h=postHeight); cylinder($fn=36,r=shoulderDia/2,h=shoulderHeight); } cylinder($fn=36,r=holeDia/2,h=15); }
glb/cad_b3c56eb5469a.glb
Create a horizontal material spool holder by first constructing a rotationally symmetric base. Start with a profile that is extruded around a central axis to create a circular body. This profile begins at the origin, extends 22mm outward along the base, rises 5mm vertically, steps inward to a radius of 11mm, and then r...
d1 = 16; d2 = 16; d3 = 22; d4 = 44; h1 = 5; h2 = 0; h3 = 10; chamfer = 0.2; boltHoles = 3; boltDia = 34; boltHoleDia = 3.5; difference(){ rotate_extrude($fn=200) polygon(points=[[0,0],[d4/2,0],[d4/2,h1],[d3/2,h1],[d3/2,h3-chamfer],[d3/2-chamfer,h3],[d2/2+chamfer,h3],[d2/2,h3-chamfer], [d2/2,h2],[0,h2]], paths=[[0,1...
glb/cad_e669bbbdd4c2.glb
Create a spool roller with a total length of 93mm. The main body is a cambered cylinder that starts with a maximum diameter of 22mm at both ends and tapers to a minimum diameter of 18mm at the center point (46.5mm). Remove a central bore with a diameter of 14mm running the full length of the part. At both ends of the...
$fa = 1; $fs = 0.5; len = 93 ; dia = 22; min_dia = 18; bore_dia = 14; brg_dia = 16.4; brg_wid = 5; difference(){ union(){ cylinder(h=len/2,r1=dia/2,r2=min_dia/2); translate([0, 0, len/2]) cylinder(h=len/2,r1=min_dia/2, r2=dia/2); } union(){ cylinder(h=brg_wid,r=brg_dia/2); translate([0, 0, brg_wid])cylinder(h=1,r1...
glb/cad_94bf0accbd80.glb
Create a solar panel support pillar by starting with a rectangular block measuring 20mm by 20mm by 110mm. Cut a rectangular notch out of the top of the block that is 25mm wide and 21mm deep, angled at 21 degrees. Along the length of the block, create four circular holes, each with a diameter of 15mm and a depth of 22...
a=0; s_w=10.2; mutterhoehe=5; gw_stk=6; rotate([0,-90,0]){ difference(){ difference(){ difference(){ difference(){ difference(){ difference(){ difference(){ difference(){ cube([20,20,110]); translate([0,0,110]){ rotate([0,21,0]){ translate([-2,0,0]) cube([25,21,21]); } } } } translate([(22/2)-1,(22/2)-1,a+20]){...
glb/cad_b5b6cd9fee71.glb
Create a Condition Marker consisting of a flat circular ring with raised text. Start by creating a ring with an inner diameter of 25.5mm, an outer diameter of 29.5mm, and a height of 3.6mm. Add uppercase text that reads "CUSTOMISABLE" wrapped around the outer circumference of the ring. The letters should be 4mm tal...
baseSize = 1; text = "Custom"; customText = "customisable"; textDuplication = 1; ringThickness = 2; ringHeight = 3.6; baseSizeTolerance = 0.1; textOrientation = 1; textInstanceCount = 0; textHeight = 4; textExtrusionHeight = 1.2; ringDiameterOverride = 0; textStrokeThickness = 0.2; textOverlap = 0.2; lett...
glb/cad_33f0ef7e161e.glb
Create a parametric small parts dish by revolving a specific 2D profile around a central vertical axis. The finished dish should have an outer diameter of 40mm and a total height of 5mm. The walls of the dish should be 1.8mm thick and angled outward at 75 degrees from the horizontal. The base of the dish is a flat ci...
preview = 1; dish_d = 40; dish_h = 5; dish_angle = 75; w = 1.8; c = 0.4; r_r = 2; tau = 2 * PI; xy_factor = 1/tan(dish_angle); z_factor = tan(dish_angle); r_d = dish_d/2; r_a = r_r + w; r_m = r_r + w/2; x_k = r_m * sin(dish_angle); h_k = r_m * (1 - cos(dish_angle)); h_r = dish_h - h_k - w; x_r = h_r * xy_fac...
glb/cad_64b77a448c1d.glb
Create a parametric aquarium shrimp tube structure consisting of a cluster of ten hollow hexagonal prisms. Each individual hexagonal tube must have an inner radius of 10mm and a wall thickness of 0.8mm, with a total height of 70mm. The outer boundary of each tube is defined by a 6-sided polygon. Arrange these tubes i...
wall = 0.8; r_inner = 20/2; r_outer = r_inner + sqrt(4/3)*wall; height = 70; dist = 2*sqrt(3/4)*r_inner+wall; eps=1e-3; module hex() { difference() { cylinder(r=r_outer, h=height, $fn=6); translate([0,0,-eps]) cylinder(r=r_inner, h=height+2*eps, $fn=6); } } hex(); translate([0,dist,0]) hex();...
glb/cad_c809c70f2cb1.glb
Create a customizable pole mount part with a total length of 62mm, a width of 16mm, and a material thickness of 4.1mm. The object consists of two identical flat end sections connected by a curved central bridge. Each end section is a 16mm by 16mm square with rounded corners of 3mm radius. Center a circular hole with ...
$fn=100; corner_radius=3; thickness=4.1; width=16; length=16; boring_dia=5.5; border=3.6; height=12.1; total_length=62; gap_length=total_length-2*length; a=gap_length/2; h=height-thickness; radius=(a*a+h*h)/(2*h); module ende(){ difference(){ union(){ translate([width/2-corner_radius,corner_radius,thickn...
glb/cad_180113473591.glb
Create a Tie Hanger with a total thickness of 4mm. Start by constructing a main hook at the top: create a rounded, elongated shape by hulling two cylinders with a diameter of 45.5mm (35.5mm inner diameter plus 5mm walls) and subtract a smaller inner hull of 35.5mm diameter cylinders to create a hollow ring. Leave an op...
thickness=4; wall_thickness=5; hook_size=35.5; hook_extra_space=0; tie_count=8; double_sided=true; tie_section_width=40; tie_section_hook_height=2.5; tie_section_gap_height=9; tie_section_shift=0.5; top_bar_y=wall_thickness/2; each_bar_y_multiplier=-(wall_thickness+tie_section_hook_height+tie_section_gap_heig...
glb/cad_321eb12bf378.glb
Create a WireGuide screw thread with a major diameter of 11mm and a pitch of 2mm. The geometry should consist of five full rotations of a triangular thread profile. Each rotation is formed by a series of hull operations that create a consistent helical ridge around a central cylindrical core. The core cylinder should h...
module screwthread_triangle(P) { difference() { translate([-sqrt(3)/3*P+sqrt(3)/2*P/8,0,0]) rotate([90,0,0]) cylinder(r=sqrt(3)/3*P,h=0.00001,$fn=3,center=true); translate([0,-P/2,-P/2]) cube([P,P,P]); } } module screwthread_onerotation(P,D_maj,step) { H = sqrt(3)/2*P; D_min = D_maj - 5*sqrt(3)/8*P; f...
glb/cad_6eb00ba0bc3a.glb
Create a WireGuide consisting of two main components: a nozzle body and a screw cap. For the nozzle body, create a main cylindrical base with a diameter of 15mm and a height of 25mm. Remove a central vertical hole with a diameter of 3mm that extends 22.1mm deep. At the top of this cylinder, create a conical tip that t...
use <screwthread_v2.scad> q=14; di1 = 4.75; di2 = 2.40; len = 10.00; ofset = 0.00; module wireNozzle() { difference() { union() { translate([0, 0, ofset]) cylinder(d1=di1, d2=di2, h=len, center = false, $fn=4*q); difference() { translate([0, 0,-12 ]) thread(2,12,100/q,6); ...
glb/cad_5789bfaff031.glb
Create a WireGuide consisting of a main body and a separate cap. For the main body, construct a central vertical passage with a diameter of 3mm that extends 22.1mm upward. Above this, add a conical section that transitions from a base diameter of 4.75mm down to 2.4mm over a height of 10mm. Surround the lower section of...
use <screwthread_v2.scad> q=4; di1 = 4.75; di2 = 2.40; len = 10.00; ofset = 0.00; module wireNozzle() { difference() { union() { translate([0, 0, ofset]) cylinder(d1=di1, d2=di2, h=len, center = false, $fn=4*q); difference() { translate([0, 0,-12 ]) thread(2,12,100/q,6); d...
glb/cad_30e27f105da1.glb
Create a battery box for four AA batteries. The main body is a rectangular enclosure with a total exterior dimension of 58.4mm in length, 16.2mm in width, and 11.8mm in height. Divide the interior into four equal compartments, each designed to hold a single battery. At the base of each compartment, integrate a printed...
m3d=3+0.3; m3nd=6.2+0.3; m3nh=2.5; m8d=8+0.5; m8shd=16+0.3; batcnt=4; kd=9; kh=4; d=14.5+0.2; le=49; w=0.4*4; kw=1+2; ks=11-kw; kw1=1; ks1=0; pl=7; py=10; ppl=4; ppz=2.4; psp=0.8; pz=3.8; pw=7; dw=pz+1; kz=6; x=d+w; y=w+ks+kw+le+kw1+ks1+w; z=dw+d; uz=1.2; upz=uz; zs=8; oh=11; $fn=32; module upc(ux,uy,uz,...
glb/cad_fdb48ab5ab42.glb
Create a parametric clutch alignment tool consisting of a handle and a splined shaft. Start by creating a cylindrical handle with a radius of 12.45mm and a height of 20mm. Atop this handle, add a splined section with a total height of 40mm. This section is formed by a cylinder with a major radius of 12.45mm from which ...
spline_major=24.9; spline_minor=21; spline_count=24; pilot_diam=14.9; spline_length=40; handle_length=20; spline_depth=(spline_major-spline_minor)/2; major_circumference=3.14159*spline_major; minor_circumference=3.14159*spline_minor; spline_bottom_width=minor_circumference/(spline_count*2); spline_width=(major_circu...
glb/cad_619030774690.glb
Create a Table Foot Wedge by constructing a series of five rectangular prisms arranged as ascending steps. Each step must have a width of 12mm and a depth of 19mm. The first step should be a block 3mm high. Each subsequent step must increase in height by an additional 3mm, resulting in heights of 6mm, 9mm, 12mm, and 15...
NumberofSteps = 5; WidthofStep = 12; DepthofStep = 19; HeightofStep =3; for(Step = [1:NumberofSteps]) { translate([0,DepthofStep*(Step-1),0]) cube([WidthofStep,DepthofStep,HeightofStep*Step]); }
glb/cad_e9c414fbf74c.glb
Create a Picture Frame Holder consisting of two identical geometric components positioned 25mm apart along the y-axis. To create one component, start with a sphere with a radius of 10mm. Remove a rectangular slot from this sphere by centering a 4.1mm by 11mm rectangle at coordinates (-2.05, 0, 2), rotating it 20 degree...
module corner(){ difference(){ sphere(10); translate([-2.05,0,2]) rotate([0,20,0]) linear_extrude(11) square([4.1,11]); translate([0,0,-11]) cylinder(11,11,11); } } corner(); translate([0,25,0]) mirror([0,1,0]) corner();
glb/cad_a85bccc78ead.glb
Create a window lock consisting of a base plate and a pivoting handle. First, construct the base. Create a central vertical cylinder with a radius of 9mm and a height of 20mm. Around this, form a rectangular housing by combining a central block of 20mm by 76mm by 4mm, centered on the cylinder. Add two small cylindric...
$fn=45; module qSphere() { intersection() { sphere(10, $fn=90); translate ([0,-10,0]) cube(20); } } module slice() { difference() { scale ([.75,4.33,1.2]) qSphere(); translate ([-8,-10,-1]) cube([11,20,9]); } } module slice2() { difference() { scale ([.33,1,1]) slice(); translate ([-35,-37,-1])...
glb/cad_bee54d759a87.glb
Create a protective enclosure for a Makerdiary NRF52840 USB dongle consisting of two mirrored halves. The internal cavity for the PCB must be 30.1mm long, 18.1mm wide, and 6.1mm high. The outer walls should be 1.6mm thick with a corner radius of 1.6mm. For the bottom half, create a hollow shell with a rectangular open...
create_whole = false; $fn = 50; tolerance = 0.1; pcb_length = 30.0; pcb_width = 18; pcb_board_height = 2; pcb_bottomcomponents_height = 2; pcb_topcomponents_height = 2; pcb_height = pcb_board_height + pcb_topcomp...
glb/cad_b8d00f57e646.glb
Create a parametric hook consisting of a curved arm attached to a flat base. Start by creating a base plate that is 45mm long, 20mm wide, and 5mm thick. The base should have a rounded profile, formed by the hull of two circles with 10mm radii, one at each end of the 25mm distance between their centers. At one end of t...
$fa = 15; $fs = 1; o = 0.01; width = 20; height = 45; hookRadius = 15; baseDepth = 5; plugWidth = 3; plugDepth = 15; plugBaseDepth = 3; plugBaseWidth = 7; plugOffset = height-width; plugExtraDepth = 1; circlesScaleZ = 1; translate([0,0,baseDepth]) { rotate([0,-90,0]) { difference() { union() { hook(width*0.5...
glb/cad_fe5a6cf810c0.glb
Create a parametric flag wall mount consisting of a rectangular base and an angled cylindrical tube. Start with a rectangular base plate measuring 20mm wide, 40mm long, and 5mm high. Round the corners of this plate with a 3mm radius. Position four screw holes with a diameter of 3mm at each corner, leaving a 3mm margi...
base_width=20; base_lenght=40; base_height=5; screw_diameter=3; screw_margin=3; diameter=10; rod_l=40; tube_offset=10; thick=1.5; rotate_x=30; support_enable=1; support_diameter=2; mode="normal"; rotate_y=0; rotate_z=0; rod_r_in=(diameter+1)/2; rod_r_out=rod_r_in + thick; main(); module main() { trans...
glb/cad_d0cccc527c9a.glb
Create a Winged Ball model consisting of a central sphere and two symmetrical wings. Start by creating a central sphere with a radius of 15mm, using a facet resolution of 50. Add four semi-torus decorative ridges to the sphere's surface. Place two on the top, rotated -40 degrees and -46 degrees respectively, each with...
$fn =20; module torus(girth, radius) { rotate_extrude(convexity = 10) translate([girth, 0, 0]) circle(r = radius); } module semi_torus(girth, radius) { union() { difference() { rotate_extrude(convexity = 10) translate([girth, 0, 0]) circle(r = radius); translate([0,-girth-radius,-(radius+2)/2...
glb/cad_687322dfdbe5.glb
Create a DNA clothes clip by constructing a double helix structure centered around a central cylindrical hub. Start by creating two intertwined helical strands, each with a circular cross-section of 3mm diameter, that wind around a central axis for a total length of 80mm. The helices should complete 1.25 full rotations...
pw = 80; dw = pw * (1 / 450); cr = (pw / 9); fl = 2; chw = 3; xw = 0.4; translate([0,0,(cr+3)/fl]) difference(){ union(){ scale([1,1,-1/fl]) { for(i=[-6:6]) { translate([i * dw * 36, (sin(i*36 + 225)+cos(i*36+225))/2*cr, (-sin(i*36 + 225)+cos(i*36+225))/2*cr]) rotate([-i*...
glb/cad_b2a19843a642.glb
Create a DNA clothes clip by constructing a flat rectangular base and adding a central cylindrical peg. Start with a rectangular plate measuring 80mm in length, 8.89mm in width, and 1.5mm in height. In the center of this plate, place a vertical cylinder with a radius of 2.8mm and a height of 1.5mm. To create the clip m...
pw = 80; dw = pw * (1 / 450); cr = (pw / 9); fl = 2; chw = 3; xw = 0.4; clh = 1.5; union(){ cylinder(h=2+clh+2*(cr+3)/fl,r=3-xw/2); scale([2,2,1]){ difference(){ translate([0,0,clh/2]) cube([pw/2,cr,clh], center = true); translate([-pw/7,-cr*0.3,clh/2]) cube([pw/6,1+xw/2,clh*1.1], center = true); translat...
glb/cad_f744b3a76160.glb
Create a simple spiral vase mode box and lid. The box is a rectangular prism with internal dimensions of 50mm width, 25mm depth, and 70mm height. The walls and bottom are 0.6mm thick. The lid is a rectangular shell designed to fit over the box. Its internal dimensions are the box's outer dimensions plus a 0.1mm tolera...
render = "both"; width = 50.0; depth = 25.0; height = 70.0; lid = 25.0; tolerance = 0.1; wall = 0.60; shape = "rectangle"; cylinder_segments = 64; box_width = width + 2 * wall; box_depth = depth + 2 * wall; box_height = height + wall; lid_width = box_width + tolerance + 2 * wall; lid_depth = box_depth + tolera...
glb/cad_44a47a3bf812.glb
Create a curtain retention clip by starting with a rectangular block measuring 14mm wide, 70mm long, and 20mm high. Carve out a central channel from the top and front faces to leave a U-shaped profile, specifically removing a block that is 6mm wide, 70mm long, and 20mm high, centered along the length and width. Finally...
$fn=30; i=1; if (i==1) { RightClip(); } else if (i==2) { LeftClip(); } else if (i==3) { RetensionArm(); } module RetensionArm() { difference() { union() { cylinder(d=10,h=25,center=true); translate([0,5,-7.5]) cylinder(d=10,h=10,center=true); } translate([0,0,5]) cylinder(d=2.9,...
glb/cad_6500d3a05fba.glb
Create an RC airplane wheel with a radius of 35mm. Start with a sphere of that radius, scaled along the Z-axis to 60% of its original height to create a flattened spheroid. Trim the top and bottom of this shape by removing two cylinders, each with a radius of 35mm and a height of 24.5mm, centered vertically. Hollow out...
radius=35; axle_hole=3.4; $fn=60; difference() { scale([1,1,.6]) sphere(r=radius); translate([0,0,radius*.45]) cylinder(h=radius*.7,r=radius,center=true); translate([0,0,-radius*.45]) cylinder(h=radius*.7,r=radius,center=true); translate([0,0,radius*.15]) scale([1,1,.13]) sphere(r=radius*.9); tran...
glb/cad_8f53a08c091c.glb
Create a 57-face brilliant cut diamond with a maximum diameter of 40mm and a total height of 24.6mm. Start with a base cylinder of 40mm diameter and 24.6mm height, centered on the Z-axis and shifted down by 17.24mm, and carve the following facets into it. First, create the pavilion by removing 16 symmetrical facets ro...
dd=40; hr=0.615; pag1=42.45; pag2=40.75; cag3=40.16; cag4=34.5; cag5=24.6; dh=dd*hr; difference() { translate([0,0,-dd*0.431]) cylinder(h=dh,r=dd/2,$fn=48); union() { for (i = [0 : 16-1]) { rotate([0,0,360/16*i]) translate([dd/2,0,0]) rotate([0,90-pag1,0]) translate([0, -dd/4, -dd]) ...
glb/cad_aa38ab9c2a3c.glb
Create a pair of identical spur gears. For each gear, create a central hub with a diameter of 15mm and a height of 17mm, featuring a central bore hole with a diameter of 5mm. Around the hub, add a rim with a thickness of 15mm and a width of 5mm. The outer edge of the rim must be shaped into 15 involute teeth with a cir...
test_backlash (); pi=3.1415926535897932384626433832795; module bevel_gear_pair ( gear1_teeth = 41, gear2_teeth = 7, axis_angle = 90, outside_circular_pitch=1000) { outside_pitch_radius1 = gear1_teeth * outside_circular_pitch / 360; outside_pitch_radius2 = gear2_teeth * outside_circular_pitch / 360; pitch_apex1...
glb/cad_f38e1b12daf6.glb
Create a porthole greeble by first constructing a ring with a height of 1mm, an outer radius of 5mm, and an inner radius of 3mm. Centered on top of this ring, add a torus with a major radius of 4mm and a minor radius of 1mm. Finally, place a cross-shaped handle structure on the base of the model consisting of two inter...
large_r = 4; small_r = 1; handle_wide = 0.8; translate([0,0,small_r]) rotate_extrude(convexity = 10, $fn=50) translate([large_r, 0, 0]) circle(r = small_r, $fn = 50); difference() { cylinder(r=large_r+small_r, h=small_r, $fn=50); cylinder(r=large_r-small_r, h=small_r, $fn=50); } translate([-large_r,-handle_w...
glb/cad_6a27fdb52e86.glb
Create a wall mount base for a stapler. Start by creating a rectangular base plate measuring 60mm wide, 80mm high, and 0.5mm thick. On top of this base, add a second layer that is also 60mm wide and 80mm high, but with a thickness of 0.1mm. This second layer should be slightly inset from the edges of the first plate by...
echo(version=version()); base_W = 60; base_H = 80; base_T = 0.5; default_S = 12; default_T = 2.0; $fn = 60; staple_base(base_T,base_W,base_H,default_S,default_T); # translate([base_W / 4, base_H / 4, 22]) rotate([45, 45, 45]) cube(base_W / 2); module stapler_area(bt,bw,ds,dt) { hull() { translate([0, 0,...
glb/cad_4dbf9a433184.glb
Create a mounting clamp consisting of a central cylindrical body with a total length of 80mm and a radius of 16mm. At both ends of this cylinder, add hemispherical caps with a radius of 16mm. Carve a continuous horizontal channel through the center of the model to create a void. This void should include a central sphe...
module pipe (length, width1, width2, thickness) { difference () { cylinder (h=length, r1=width1, r2=width2); translate([0,0,-0.05*length]) cylinder (h=1.1*length, r1=width1-thickness, r2=width2-thickness); } } module moer5 () { h1=3.5; d1=8.15; b1=4.7; translate (v=[-b1/2, -d1/2, 0]) cube (size=[b1, d1, h]); ro...
glb/cad_67e8a7d9f898.glb
Create a Ram compatible mounting clamp. Start with a main body consisting of a cylinder with a length of 80mm and a radius of 16mm, oriented horizontally. Place a sphere with a radius of 16mm at each end of this cylinder to create rounded caps. At the center of the cylinder, create a hexagonal nut-shaped cavity with a...
module pipe (length, width1, width2, thickness) { difference () { cylinder (h=length, r1=width1, r2=width2); translate([0,0,-0.05*length]) cylinder (h=1.1*length, r1=width1-thickness, r2=width2-thickness); } } module moer5 () { h1=3.5; d1=8.15; b1=4.7; translate (v=[-b1/2, -d1/2, 0]) cube (size=[b1, d1, h]); ro...
glb/cad_e97bb34a7da4.glb
Create a Ram compatible mounting clamp consisting of a central body with two symmetrical outer wings. The main body is a cylinder with a height of 13mm, tapering from a bottom radius of 9mm to a top radius of 7mm. At the center of this cylinder, create a vertical hole with a radius of 3.2mm. Within this central hole,...
module pipe (length, width1, width2, thickness) { difference () { cylinder (h=length, r1=width1, r2=width2); translate([0,0,-0.05*length]) cylinder (h=1.1*length, r1=width1-thickness, r2=width2-thickness); } } module moer5 () { h1=3.5; d1=8.15; b1=4.7; translate (v=[-b1/2, -d1/2, 0]) cube (size=[b1, d1, h]); ro...
glb/cad_d5fc2fc9295c.glb
Create a Ram compatible mounting system consisting of three distinct components: a socket, a plate, and a ball joint. First, create the ball joint by forming two hemispheres, each with a radius of 12.5mm. Join them to create a full sphere. At the top of the sphere, add a cylindrical protrusion with a radius of 4mm and...
module pipe (length, width1, width2, thickness) { difference () { cylinder (h=length, r1=width1, r2=width2); translate([0,0,-0.05*length]) cylinder (h=1.1*length, r1=width1-thickness, r2=width2-thickness); } } module moer5 () { h1=3.5; d1=8.15; b1=4.7; translate (v=[-b1/2, -d1/2, 0]) cube (size=[b1, d1, h]); ro...
glb/cad_a4073a787d02.glb
Create a mounting clamp with a total length of 80mm. The main body is a cylinder with a radius of 16mm and a height of 32mm, capped at both ends by hemispheres with a radius of 16mm. Carve a central channel through the length of the object to create a cradle. Within this structure, remove two spheres with a radius of...
module pipe (length, width1, width2, thickness) { difference () { cylinder (h=length, r1=width1, r2=width2); translate([0,0,-0.05*length]) cylinder (h=1.1*length, r1=width1-thickness, r2=width2-thickness); } } module moer5 () { h1=3.5; d1=8.15; b1=4.7; translate (v=[-b1/2, -d1/2, 0]) cube (size=[b1, d1, h]); ro...
glb/cad_da61e743625e.glb
Create a Ram compatible mounting clamp. The main body is a cylinder with a length of 80mm and a radius of 16mm, oriented horizontally. At both ends of this cylinder, add a hemisphere with a radius of 16mm. Cut a longitudinal channel through the center of the body to create a gap. Within the main body, create a central...
module pipe (length, width1, width2, thickness) { difference () { cylinder (h=length, r1=width1, r2=width2); translate([0,0,-0.05*length]) cylinder (h=1.1*length, r1=width1-thickness, r2=width2-thickness); } } module moer5 () { h1=3.5; d1=8.15; b1=4.7; translate (v=[-b1/2, -d1/2, 0]) cube (size=[b1, d1, h]); ro...
glb/cad_cfb595afdbf0.glb
Create a parametric cable catcher designed to hold a wire against a flat surface. Start by creating a solid rectangular base measuring 26mm wide, 24mm deep, and 3mm thick. On top of this base, center a semi-cylindrical body with a radius of 12mm and a width of 26mm, effectively creating a rounded hump. Carve a cylindr...
$fs=0.35; $fa=1; tol = 0.01; basew = 25/2+1; hole = 9; gap = 6; wall = 3; basel = (hole + wall)*2; sidecurveoff = wall*0.3; sidecurvez = wall*0.9; sidecurveh = basel/2+sidecurvez; sidecurvew = basew/3; difference() { union(){ translate([0 , -basel/2, -wall]) cube([ basew, basel, wall ]); intersection() { ...
glb/cad_46ad0f9bc7a2.glb
Create a fairy sized stool by constructing a seat and two legs. Start with a rectangular seat measuring 20mm by 50mm with a thickness of 5mm. Attach two identical rectangular legs to the underside of the seat. Each leg must measure 5mm in width, 50mm in depth, and 15mm in height. Position the legs at opposite ends of t...
module chair(width = 20, stool = false) { rotate(a=[90,0,90], v=[0,0,0])union () { cube([20,width,5]); if (!stool) cube([5,width,30]); translate([0,0,-15])cube([5,width,15]); translate([15,0,-15])cube([5,width,15]); } } module table() { cube([60,5,30]); translate([20,0,0])cube([5,30,30]); translate([35,0,...
glb/cad_5ebf1a71ef9e.glb
Create a Nema 17 motor mount with a baseplate and two supporting side walls, all with a uniform thickness of 4mm. The baseplate is a rectangle measuring 55mm wide by 60mm long. In the center of this plate, create a circular cutout with a diameter of 23mm. Around this center hole, place four M3 screw holes (3.4mm diamet...
$fn = 24; thickness = 4; m3_d = 3.4; mountplate_width = 55; mountplate_length = 60; backplate_len = 30; NEMA17_holedist = 31; NEMA17_holelen = 6; NEMA17_midhole_d = 23; NEMA17_X_edgedist = (mountplate_width - NEMA17_holedist) / 2; NEMA17_Y_edgedist = 10 + thickness; linear_extrude(thickness) { difference() { sq...
glb/cad_30421e137095.glb
Create a Kinect Riser Stand by constructing a hollowed-out rectangular box with rounded corners. The outer dimensions of the main body should be 99mm wide, 82mm long, and 35mm high, with a corner radius of 28mm. Inside this volume, carve out a central cavity that is 91mm wide, 74mm long, and 24mm deep, maintaining a ...
include <MCAD/boxes.scad> w = 87; l = 70; h = 20; cr = 25; cable = 8; standoff = 15; wall = 6; wiggle = 2; o_x = -1*((w+wall*2)/2); o_y = -1*((l+wall*2)/2); o_z = -1*((h+wall)/2); cable_guide_w = 8; cable_guide_h = h+wall*2; union() { difference() { translate([0,0,-(standoff/2)]) roundedBox([w+wall*2, l+wall*...
glb/cad_f0f36b080aa9.glb
Create a set of four different molecular model connectors. Each connector starts with a base spherical shape with a diameter of 25mm to 26mm, modified by specific intersections and holes for sticks with a diameter of 4.45mm. All holes are 20mm long and start 4mm from the center of the solid. First, create a mono-conne...
$fn=30; d_hole = 4.2+0.25; h_hole = 20.0; from_center = 4; d_connector = 25.0; sres = 40; module mono_connector(){ difference(){ intersection(){ rotate([0,0,45/2]) cylinder(d=30, h=15.0, center=true, $fn=sres); rotate([0,0,0]) sphere(d=18.0, $fn=sres); } color("red") rotate([0,0,0]) translate([0,0,0]) c...
glb/cad_aeda8e3a06b8.glb
Create a Spiral Jigsaw puzzle model. Start with a solid cylinder 200mm in diameter and 2mm thick. Carve a spiral pattern of jigsaw-style interlocking cuts into the top face. The spiral should originate from an inner radius of 45mm and extend to an outer radius of 100mm, completing approximately 4 full rotations. Th...
pi=3.14159254; function spiralCurve(sr=40, er=80, loops=4, steps=180, span=9.9) = concat( [for (t =[(-360/steps) : (360/steps) : (360*loops + (360/steps))]) [(sr+(er-sr)*(t/(360*loops)))*cos(t), (sr+(er-sr)*(t/(360*loops)))*sin(t)]], [for (t =[(36...
glb/cad_88d1910cdb2a.glb
Create a door alarm mounting bracket. Start by constructing a base plate with a total width of 28mm and a length of 48mm, with rounded corners using a 4mm radius. The base should have a thickness of 1mm. Cut a rectangular opening in the center of the base measuring 13mm wide by 22mm long, with a depth of 6mm. On one ...
bq_door_alarm(); module bq_door_alarm(){ difference(){ base(); translate([0,4,0]) #sensor_octopus_holes(); } translate([0,-19,8]) rotate([90,0,0]) difference(){ scale([1,0.4,1]) base(); cube([17,20,20],center=true); } } module base(){ difference(){ minkowski(){ cube([20,40...
glb/cad_95bddd0b6310.glb
Create a bq door alarm mounting bracket. Start by constructing a base plate that is 28mm wide, 48mm long, and 1mm thick, with rounded corners using a 4mm radius. Remove a rectangular section from the front edge of this base, measuring 40mm wide by 4mm deep and 4mm high. On top of this base, center a rectangular cutout...
bq_door_alarm(); module bq_door_alarm(){ difference(){ base(); translate([0,4,0]) #sensor_octopus_holes(); } translate([0,-19,8]) rotate([90,0,0]) scale([1,0.4,1]) base(); translate([0,-10,0]) corner(); } module base(){ difference(){ minkowski(){ cube([20,40,1], center=true); ...
glb/cad_1f6e6ae8fa27.glb
Create an endstop rail holder consisting of a mounting arm and a sliding rail. First, create the mounting arm as a rectangular block 10mm high, 30mm long, and 5mm wide. Center two 3.5mm diameter screw holes along the length of the arm, spaced 10mm apart. Next, construct the rail. The rail is 60mm long with a total h...
rail_len = 60; arm_len = 30; arm_elevation = -20; support1 = true; support2 = false; arm_screwcount = 2; arm_screwdistance = 10; rail_width = 5; rail_screws = 4; rail_height = 9; arm_width = 5; arm_height = 10; arm_screws = 3.5; $fn = 24; s = arm_elevation > 0 ? arm_elevation + arm_width/2 : -arm_elevation...
glb/cad_daaa44d197a6.glb
Create a two-part protective case for an RFID-RC522 reader module. The case consists of a bottom base and a top cover, both with a total height of 5mm and rounded corners with a 5mm diameter. The overall outer dimensions of the base are 50.5mm by 72mm. For the bottom part, create a rectangular shell with a central cav...
board_x = 40.5 ; board_y = 62.0 ; base_x = board_x + 10 ; base_y = board_y + 10 ; total_h = 5 ; module draw_base( size_x=25, size_y=25, thick_z=5, corner_dia=10, center=false, skip_last_corner=false, clip=0, clip_factor=1.5, slot_factor=1, slot=0) { corner_rad=corner_dia/2; clip_less=abs(clip); corne...
glb/cad_b63ade390401.glb
Create a simple paperclip model with a total width of 20mm, a total height of 40mm, and a thickness of 1mm. The overall shape is a pill-shaped silhouette consisting of a solid outer boundary and a nested inner loop. Start by creating a solid pill shape 20mm wide and 40mm high. From this, remove a smaller concentric p...
CLIP_WIDTH = 20; CLIP_HEIGHT = 40; CLIP_DEPTH = 1; CLIP_GAP = 3; CLIP_BORDER = 2; RESOLUTION = 0.3; module pillshape(width = CLIP_WIDTH, height = CLIP_HEIGHT, depth = CLIP_DEPTH) { union() { translate(v = [ 0, (height - width) / 2, 0 ]) { cylinder(r = width / 2, h = depth, center = true, $fs = RESO...
glb/cad_91df9424fac5.glb
Create a bezel cover for a 41mm watch by constructing a large outer cylinder with a radius of 22.5mm and a total height of 60mm. Hollow out this shape by removing two smaller concentric cylinders from its center. First, remove a cylinder with a radius of 15.5mm and a height of 80mm, positioned so that it starts 5mm bel...
difference() { cylinder(h = 60, r=225); union() { translate([0,0,20]) { cylinder(h = 45, r =205); } translate([0,0,-5]) { cylinder(h = 80, r=155); } } }
glb/cad_7410d09ea1a1.glb
Create a 1/4 leadscrew x-end mount. Start with a central body that is 40mm long and has a height and width based on a rod distance of 50mm and a rod diameter of 8mm. Incorporate a rod mount featuring a central hole for an 8mm rod with a 0.2mm clearance. Add a rod clamp that is 20mm shorter than the body length, with a ...
use <jonaskuehling-default.scad> include <lm8uu-holder-slim_double-vertical.scad> rod_dia = 8; rod_dist = 50; zrod_leadscrew_dist = 30; clearance = 0.2; wall = 3; wall_thin = 3; xend_body_length = 40; m3_screw_dia = 3; m3_screw_head_dia = 5.5; m3_screw_head_height = 3; m3_nut_wrench_size = 5.5; m3_nut_height = 2.4; ...
glb/cad_2c2c97fb9b16.glb
Create a two-part cylindrical container consisting of a cap and a base. Both parts are based on a tube with an outer diameter of 17.8mm, an inner diameter of 15mm, and a wall thickness of 1.4mm. For the cap, create a hollow cylinder with an interior length of 70mm. One end of the cylinder must be closed with a hemisp...
$fn = 50; id = 15; il = 70; width = 1.4; od = id + 2 * width; intersection_length = 15; module tube() { difference() { union() { cylinder(d = od, h = il / 2 + width, center = true); translate([0, 0, il / 4]) sphere(d = od); } translate([0, 0, -1]) union() { cylinder(d = id, h = il / 2 ...
glb/cad_0113875ea2fd.glb
Create a Great Printer Hook designed to hold a filament spool. Start by creating a main vertical support body. This body consists of a rectangular base measuring 60mm by 167mm with a thickness of 10mm. Attached to this body, construct a hook assembly. The hook is formed by two cylinders with a radius of 6.25mm. The...
use <MCAD/boxes.scad> use <MCAD/triangles.scad> use <../dovetail.scad>; spacer=2; cutup=0; module Post() { difference() { cylinder(r=8,h=28); cylinder(r=4,h=30); } } module Stand() { difference() { union() { translate([0,0,27/2]) roundedBox([60,20,27],2); translate([-30,4,0]) cube([60,167,10]);...
glb/cad_26ca5e5162bc.glb
Create a cylindrical grid with an outer diameter of 22mm, an inner diameter of 20mm, and a total height of 16mm, centered on the origin. The wall thickness is 1mm. Perforate the walls with a series of 4.5mm diameter holes arranged in a staggered grid. The holes should be spaced every 45 degrees around the circumference...
id = 20; width = 1; height = 16; hole_diameter = 4.5; hole_spacing_angle = 45; row_shift_angle = hole_spacing_angle / 2; row_shift_length = 5; rn = (floor(height / row_shift_length) - 1) / 2; difference() { cylinder(d = id + 2 * width, h = height, center = true, $fn = 50); cylinder(d = id, h = height + 2, center ...
glb/cad_c973361280f4.glb