Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a snap-together case for an Orange Pi 5 board. The case consists of a bottom shell and a top cover. The bottom shell is a rectangular tray with a wall height of 20mm and a thickness of 2mm. The walls feature several precise cutouts for board access: a 21mm wide opening for a ribbon connector, a 9.25mm wide open...
include <common.scad> $fn=32; wall_height = 20; fan_middle_x = l/2; fan_middle_y = w/2; module top1() { difference() { cube([l, w, t]); for (i = [1:7]) { translate([t+5, 7.75*i+t, 0]) slat(); } } translate([0,0,t]) { difference() { cube([l,t,wall_...
glb/cad_e55b592f7003.glb
Create a snap-together case for an Orange Pi 5 board. The main body is a rectangular enclosure with a base thickness of 2mm. The outer dimensions of the base are 128mm in length and 82mm in width. Along the long sides of the base, create seven rectangular slats spaced approximately 11mm apart, each 2mm wide and 2mm dee...
include <common.scad> $fn=32; module base() { difference() { cube([l, w, t]); for (i = [1:7]) { translate([t+5, 7.75*i+t, 0]) slat(); } } translate([t+post_offset,t+post_offset,t]) post(); translate([l-t-post_offset,t+post_offset,t]) post(); translate([t+post_of...
glb/cad_634bcf5b846e.glb
Create an M.2 NVMe drive riser clip. Start with a central vertical post that is 1.6mm in radius and 5.8mm tall. At the base of this post, center a sphere with a radius of 3mm, but resize it to 3.6mm wide, 3.6mm deep, and 2.8mm tall to create a flattened, rounded base. Above the post, add a circular board rest with a ...
$fn=32; opening = 3.2; board_depth = 1.4; riser_height = 1; nvme_thickness = 1.5; height = board_depth + riser_height + nvme_thickness + 2; module part1() { difference() { union() { resize([3.6,3.6,2.8]) sphere(r=3); translate([0,0,0.65]) cylinder(h = height, r = opening/2); ...
glb/cad_778236181715.glb
Create a 3D model of an Aperiodic Monotile Pipe. Start by constructing the base "Hat" tile as a 2mm thick extruded polygon. The polygon vertices are defined on an isometric grid with a unit length of 10mm: (0,0), (17.32,0), (25.98, 15), (34.64, 30), (51.96, 60), (51.96, 90), (34.64, 90), (25.98, 135), (17.32, 120), (8....
module tile(unit_lenght, height){ dX = sqrt(3)*unit_lenght/2; dY = unit_lenght/2; V = [[0*dX, 0*dY], [2*dX, 0*dY], [3*dX, 3*dY], [4*dX, 2*dY], [6*dX, 4*dY], [6*dX, 6*dY], [4*dX, 6*dY], [3*dX, 9*dY], [2*dX, 8*dY], [1*dX, 9*dY], [0*dX, 6*dY], [1*dX, 3*dY], [0*dX, ...
glb/cad_9f6d0b71b5e3.glb
Create an AquaNet Anti-Roll Base by starting with a solid cube that is 70mm on each side. From this cube, remove a cylinder with a diameter of 29mm and a length of 120mm, centered on the X and Y axes and oriented along the Z axis, to create a vertical semi-circular channel. Finally, remove a smaller cube measuring 80mm...
difference() { cube(70, center = true); rotate ([90, 0, 0]) translate([0, 0, 0]) cylinder(120, 29, 29, $fn=256, center = true); translate([0, 0, 45]) cube(80, center = true); }
glb/cad_d51982445925.glb
Create a carbine protection cover by extruding a specific profile 180 degrees around a central axis to form a semi-circular shell. Start with a 2D cross-section consisting of two concentric circles. The inner circle has a diameter of 7.8mm and the outer circle has a diameter of 10.8mm (creating a wall thickness of 1....
$fn=100; thickness=1.5; metalDiameter=7.8; innerDiameter=24; extraMetalAngel=35; module base(){ rotate([0,0,90]) difference(){ circle(d=metalDiameter+2*thickness); circle(d=metalDiameter); rotate([0,0,-extraMetalAngel])square([metalDiameter,metalDiameter]); rotate([0,0,extraMetalAn...
glb/cad_f5b2e8ea5728.glb
Create a Gridfinity storage box with a footprint of 3 by 2 modules. Start by constructing the base using the standard Gridfinity plane insert geometry. The base should be a solid mass with a total height of 7mm, centered at the origin. Above the base, at a Z-offset of 7mm, extrude vertical walls to a height of 14mm....
$fn=40; epsilon = 0.001; module_side=41.5; module_radius_1=3.75; module_radius_2=1.6; module_radius_3=0.8; module_base_height=5; module_spacing=42; module_unit_height=7; module_internal_square = module_side - 2*module_radius_1; internal_radius = module_radius_3; internal_side=module_side - 2*(1.9 + 0.7); hole_offset_f...
glb/cad_78b5d95ae5e4.glb
Create a rectangular block with a total height of 6mm, a depth of 6mm, and a width calculated by the sum of 7 holes and 8 spacing gaps, where each gap is 5mm and the holes vary in size. The total width is 77mm. Starting from the left, carve out 7 rectangular holes from the bottom face. Each hole has a depth of 6mm and...
median_hole_width=6.0; step_size=0.1; number_of_holes=7; hole_height=2.2; floor_height=0.4; object_depth=6; object_height=6; interhole_spacing=5; module customizer_stop () {} epsilon=0.005; module hole_sampler() { holes_to_either_side = (number_of_holes-1)/2; first_hole = median_hole_width - holes_to_e...
glb/cad_bc600e7af3eb.glb
Create a parametric bird feeder for a camera. Start by constructing a camera housing: create a rectangular box 56mm wide, 62mm high, and 65mm deep with a wall thickness of 2mm. Inside this housing, remove a central block 53mm wide, 60mm high, and 63mm deep to create a hollow cavity. Add a small rectangular cutout 15mm ...
cam_width=53; cam_depth=62.1; cam_height=60; cam_offset=15; usb_width=15; usb_depth=10; house_height=225; house_width=175; house_depth=220; roof_extension=10; roof_angle=45; roof_radius=2; square_roof=5; screw_dia=4.5; thickness=2; feeder_width=165; feeder_depth=60; feeder_radius=2; feeding_length=120; feeding_radius=1...
glb/cad_49612c5f9355.glb
Create an Electronic Tape Measure for Component Reels bracket. Start by constructing a primary Y-shaped body based on a central cylinder with a diameter of 53.25mm and a height of 15.1mm. The walls of this structure should be 3mm thick. From this central cylinder, remove three equal 120-degree pie-shaped slices that ...
$fn=400; diameter = 53.25; height = 15.1; wall = 3; module pieSlice(a, r, h){ rotate_extrude(angle=a) square([r,h]); } rotate([0,0,60]) difference() { union(){ translate([0,0,0])cylinder((height+wall),wall+diameter/2,wall+diameter/2); } union() { cylinder(height,diameter/2,diameter/2)...
glb/cad_45bb59d80050.glb
Create a LiFePo Terminal Cover by constructing a hollow rectangular shell with an outer dimension of 93.4mm in length, 23.4mm in width, and 16.2mm in height, using a uniform wall thickness of 1.2mm. The interior cavity should be 91mm long, 21mm wide, and 15mm high. On the two shorter side walls, centered along the leng...
$fn=50; l=91; b=21; h=15; a=73.5; bd=6; hb=1; w=1.2; ah=10; ab=6; difference(){ cube([l+2*w,b+2*w,h+w],true); { translate([0,0,w/2]) cube([l,b,h],true); translate([a/2,b/2+w/2,(h-ah+w)/2]) cube([ab,w,ah],true); translate([-a/2,b/2+w/2,(h-ah+w)/2]...
glb/cad_116e938a6849.glb
Create a screw-mounted hook by starting with a circular base plate 3mm thick and 14mm in diameter. In the center of this base, create a vertical cylindrical hole with a radius of 3.5mm that passes completely through the plate. From the edge of the base, extend a rectangular bridge 8mm long and 10mm wide with a thickn...
bolt_r = 3.5; bridge = 8; washer = 3; hook = 20; thickness = 4; $fn=120; difference() { cylinder(h=washer, r=7); cylinder(h=washer + 0.1, r=bolt_r); } translate([washer + 1, -5, 0]) { cube([bridge + (thickness - washer) / 2, 10, washer]); } difference() { hull() { translate([6, -5, 0]) { ...
glb/cad_ef71aad40726.glb
Create a square miniature base for a tabletop figure. The base should be a solid block measuring 30mm by 30mm with a height of 3.4mm. The sides of the base are not vertical but taper inward from the top edge to the bottom, with an inset of 1.0mm. On the top surface, carve a centered rectangular slot to hold a miniatur...
base="30x30_rslot"; oval_base="c25"; BASES = [ ["20x20", [false, 20.0, 20.0, 3.4, 1.0]], ["25x25", [false, 25.0, 25.0, 3.4, 1.0]], ["20x20_slot", [false, 20.0, 20.0, 3.4, 1.0, [[16.0, 2.0, 8.0], 0, [0, -1.0, 0]]]], ["25x25_slot", [false, 25.0, 25.0, 3.4, 1.0, [[21.0, 2.0, 8.0], 0, [0, -1.0, 0]]]], ["30x30_sl...
glb/cad_9ccb317ff4b8.glb
Create a cable management guide by constructing a composite cylindrical body with a total height of 16mm. Start by creating a lower cylinder with a diameter of 8mm and a height of 8mm. Directly on top of this, add a second cylinder that transitions from a base diameter of 8mm to a top diameter of 5.2mm over a height of...
fn=100; difference() { union() { cylinder(d1=8, d2=5.2,h=8, $fn=fn); translate([0,0,-8]) cylinder(d1=8, d2=8,h=8, $fn=fn); } # translate([0,0,-10]) cylinder(d=5.1, h=105, $fn=fn); # translate([2.5,0,0]) cube([3,0.3,20], center=true); }
glb/cad_3be44e28e1da.glb
Create a Bosch Powertube battery cap and discovery bracket. The main body is a vertical rectangular block with a total length of 212mm. Within this body, carve out a central void to accommodate the battery. This cutout consists of a rectangular section measuring 47mm by 66mm in cross-section, combined with two semi-c...
$fn=80; batteryCap(212); module battery(length){ union(){ difference() { rotate([0,0,90])translate([-70,-13,+length/2+0.1])linear_extrude(height = length, center = true, convexity = 10) import(file = "battery.dxf", layer="0"); batteryCutout(0.2, length); } ...
glb/cad_53a08fbf0a4d.glb
Create a Brother P-Touch TZ Label Holder consisting of a series of adjacent slots designed to hold label cassettes. The overall structure is built from a base wall thickness of 1.2mm. Construct six slots in total. The first four slots should have a width of 18mm each, and the final two slots should have a width of 24m...
$fn=360; dt1=0.01; dt2=dt1*2; prt_delta=0.4; cas_x=89; cas_y = 0; cas12_y=18; cas_z=67-15; cas18_y=24; cas24_y=30; mat=1.2; cl_h = mat; cl_l = 23; cl_dh = 1; cut_z=25; cut_dz=cl_l+1; slot_width = [cas12_y,cas12_y,cas18_y,cas18_y,cas24_y,cas24_y]; slots=len(slot_width); y_trans = [0, for (a=1, b=slot_width[0];...
glb/cad_8f46ed67f627.glb
Create a Customizable Lithophane Box consisting of a base and a lid. For the base, create a rectangular block with a width and length of 108.4mm (calculated as lithw 100mm + adj 8.4mm) and a height of 10mm. Hollow out the center to create a cavity for a lithophane that is 100mm wide, 72mm high, and 4mm deep, leaving ...
part = "both"; lithw = 100; lithh = 72; lithd = 4; lithb = 2; baseh = 10; floorh = 5; cylr=18; cylrthick=2; cylround=60; connector = "clip"; magneth = 1.1; magnetd = 4.1; cablediameter = 4.2; jackw = 5.6; jackl = 13.1; textmode = "emboss"; texta = "John & Jane"; textb = "Married"; textc = "July 17, 2...
glb/cad_b5859e8f9e59.glb
Create a Solder Iron Holder for a battery adapter. Start by constructing a main rectangular body with dimensions 104mm in length, 63mm in height, and a depth determined by the mount width of 25.11mm plus wall thickness. Within this body, create a hollow inner shell with a wall thickness of 1.75mm. At the top of the b...
use <roundedcube.scad>; enable_rounding = 0; option_box0_slimtube1 = 0; enable_draw_tip_cleaner_drawer = 1; wall_thickness = 1.75; friction_fit = 0.02; sliding_fit = 0.20; loose_fit = 2.00; body_z = 63; body_x = 104; body_shelf_depth = 9; solder_iron_tube_diameter = 16.91; solder_iron_tube_length = 105.72;...
glb/cad_940fbc1da77b.glb
Create a Janod Rocket nose cone replacement. The main body is a spherically blunted tangent ogive with a base radius of 20mm, a length of 30mm, and a nose radius of 15mm. At the very tip of the nose, add a small antenna consisting of a cylinder with a radius of 4mm and a height of 10mm, topped with a sphere of radius 4...
module cone_ogive_tan_blunted(R_nose = 2, R = 5, L = 10, s = 500){ echo(str("SPHERICALLY BLUNTED TANGENT OGIVE")); echo(str("R_nose = ", R_nose)); echo(str("R = ", R)); echo(str("L = ", L)); echo(str("s = ", s)); rho = (pow(R,2) + pow(L,2)) / (2*R); x_o = L - sqrt(pow((rho - R_nose), 2) - pow((rho - R), 2)); x_a = x...
glb/cad_0ad16c3005da.glb
Create a Mirror Tray by starting with a solid cylinder that has a radius of 65mm and a height of 10mm. From the center of this cylinder, remove a smaller vertical cylinder with a radius of 4.9mm and a height of 50mm to create a central hole. To form the tray area, remove a second cylinder from the top, centered on the ...
fnNum = 600; radiusC1 = (130/2); heightC1 = 10; radiusC2 = (9.8/2); heightC2 = 50; module plate(){ cylinder(heightC1, radiusC1, radiusC1, center = true, $fn = fnNum); } module plate2(){ difference(){ plate(); cylinder(heightC2, radiusC2, radiusC2, center = true, $fn = fnNum); } } module...
glb/cad_69df1572ea61.glb
Create a Cobblebot Anti Z wobbler base. Start with a main body consisting of a cylinder with a 30mm diameter and 10mm height, attached to a rectangular block that is 50mm long, 30mm wide, and 10mm high, extending from the center of the cylinder. At the center of the cylindrical end, create a vertical hole 10mm in dia...
SC_M5_Diameter_ES = 4.86; SC_M5_Head_Diameter_ES = 9.24; SC_M5_Head_Height_ES = 3.0; SC_M5_Diamater_IS = 5; SC_M5_Diamater_PT = 0; length_object = 80; width_object = 30; height_object = 10; width_aluminium_tube = 20; height_aluminium_tube = 20; diameter_ball_bearing = 22; diameter_hole_ball_bearing = 10; height_bal...
glb/cad_327946068a79.glb
Create a Label Holder consisting of a grid of slots. The overall structure is composed of a 2 by 6 array of individual holder units. Each unit is a solid block with a total width of 96.4mm, a height of 33.8mm, and a thickness of 6.3mm. Within each unit, carve out a central rectangular slot that is 95mm wide and 31.2m...
print_nozzle_dia = 0.6; print_layer_height = 0.2; slot_width = 95; slot_height = 32; slot_thickness = 5; wall_spacing = print_nozzle_dia+0.4; wall_card_grip = 20; wall_x_count = 2; wall_y_count = 6; slot_label_height = print_layer_height*3+0.1; wall_base = print_layer_height*3+0.1; wall_top = print_layer_height*6+0....
glb/cad_928297d0f62f.glb
Create a Laundry S-Hook with a uniform thickness of 4mm and a height of 8mm. The object consists of two semi-circular hooks connected by a diagonal bridge. The larger upper hook has an inner radius of 6.2mm and an outer radius of 10.2mm. It is a semi-circle with a flat opening, capped at the ends by cylinders with a 2...
$fa = 1; $fs = 0.4; dryingBarHookRadius = 6.2; garmentHookRadius = 3.5; hookThickness = 4; height = 8; endCap= hookThickness/2; dryingBarHookExtension = 6; upperExtension = 20; lowerExtension = 7; garmentHookExtension = 4; diagonalStartX = 10; diagonalStartY = dryingBarHookRadius+hookThickness; diagonalEndX = -5; d...
glb/cad_b4f7e6dc7d51.glb
Create a nameplate for a 3D printer. Start by creating a rectangular base with rounded corners, measuring 165mm in length, 45mm in width, and 5mm in height. The corners should have a radius of 10mm. Carve a rectangular depression into the top face of this base, leaving a border around the edges. This internal cavity s...
eps = 0.5; difference(){ minkowski() { cube([155, 35, 5]); cylinder(5, 10, 8); } translate([2.5, 2.5, 3]){ minkowski(){ cube([150, 30, 5]); cylinder(5, 5, 7); } } } translate([0, 19, 0]){ linear_extrude(5){ text("ORIGINAL", size=17, f...
glb/cad_8965fcabd9af.glb
Create a T12 soldering iron tips holder by starting with a solid rectangular block measuring 67mm wide, 88mm deep, and 15mm high, centered on the origin. Remove a smaller rectangular section from the center of the block, measuring 30mm wide, 88mm deep, and 15mm high, and shifted 20mm along the depth axis to create a U-...
width=67; depth=88; height=15; difference(){ cube(size = [width,depth,height], center = true); translate([0,20,0]) cube(size = [30,depth,height], center = true); for (i =[0:2]) translate([(width/2)-12,(-depth/2)+21+(i*16),3]) rotate([-28,0,0]) cylinder(d=6,h=height,$fn=50,center = true); for (i =[0:2]) translate(...
glb/cad_f33f6270306e.glb
Create a series of ten identical rectangular plates, each 1mm thick, arranged side-by-side. Each plate must have rounded corners with a radius of 2mm. On the top surface of each plate, emboss a single letter from the word "democracy" in a bold, sans-serif font. The letters should be 3mm thick and centered on the plat...
use <write/Write.scad> Message="democracy"; X=100.0; Y=100.0; Z=100.0; Letter_thickness=3; module plate(letter) { Message=letter; corner_radius=2; w = str(Message); x= w[0]; text=[ x ]; charlength=0.686; charheight=1.7; descenderfactor=0.2; margin=sqrt(corner_radius); insertlength=margin; hiddenhei...
glb/cad_467e9b730cbf.glb
Create a flasher mount ring by starting with a solid rectangular block measuring 25mm in width, 9mm in depth, and 14mm in height. Carve a rectangular channel out of the top face of the block to create a recessed slot. This slot should be 18.5mm wide and 2mm deep, centered along the width of the block. The slot must run...
difference() { cube([25,9,14]); union() { translate([(25-18.5)/2,1.8,-0.1]) color("red") cube([18.5,2,14.2]); translate([(25-18.5)/2,9-(1.8*2),-0.1]) color("green") cube([18.5,2,14.2]); } }
glb/cad_4d6b20911d89.glb
Create a cutting aid tool by combining a central cylindrical body with a supporting base. Start with a main body formed by the convex hull of a cylinder and a rounded rectangular slab. The cylinder has a diameter of 59mm and a length of 168.3mm, oriented along the Y-axis. The rounded slab is centered 6mm above the cyli...
Rundung =2.5; Dicke = 4; InnenDuchmesser = 51; Laenge = InnenDuchmesser *3.3; $fn = 80; difference(){ hull(){ rotate([90,0,90]) cylinder(d=InnenDuchmesser+2*Dicke, h= Laenge, center = true); translate([0,0,InnenDuchmesser/2+Dicke*1.5]) roundedcube([Laenge,InnenDuchmesser,Dicke*2], center = true, ra...
glb/cad_70aa4b8e6539.glb
Create a Random Town Necklace pendant. Start with a circular base 40mm in diameter and 5mm thick. In the center of this base, create a circular hole 3mm in diameter that passes through the thickness of the base to allow a cord to pass. On the top surface of the base, generate a "town" by placing 40 randomly positioned...
$fs = 0.3; $fa = 0.3; mr = 2; db = 40; z = 9; zb = z - 2*mr; no_holes = 20; no_houses = 40; module mk(r=mr) { minkowski() { translate([0,0,r]) children([0]); sphere(r=r); } } led_h = 9; led_d = 5; led_x = 14; module power() { batt_h = 4.3; cylinder(batt_h,d=...
glb/cad_162b79d54701.glb
Create a cover for a door lock by starting with a solid cylinder that has an outer diameter of 32.75mm and a total height of 62.5mm. Remove a smaller concentric cylinder from the center with a diameter of 27.75mm and a height of 50mm to create a hollow tube. To create an opening for the lock mechanism, remove a central...
$fa = 0.4; $fs = 1; inner_d = 27.75; outer_d = inner_d + 5; difference(){ cylinder(h = 62.5, d = outer_d, center = true); translate([0,0,-12.5])cylinder(h = 50, d= inner_d, center = true); translate([0, inner_d / -2, -7])cube([27.75, 27.75, 35], center = true); cylinder(h = 57.5, d = inner_d, center =...
glb/cad_a004160bfebf.glb
Create a Turing Pi V2 IO Shield by starting with two rectangular plates. First, create a base flange measuring 161mm by 47.5mm with a thickness of 0.75mm, positioned at coordinates (-0.5, -0.5, 0). On top of this, add a second rectangular block measuring 158.6mm by 44mm with a thickness of 1.5mm, offset to start at (0....
difference() { union() { translate([.75, 1, 0]) cube([158.6, 44, 1.5]); translate([-0.5, -0.5, 0]) cube([161, 47.5, 0.75]); } translate([12, 4, -0.1]) cube([15, 17, 4]); translate([31.5, 4, -0.1]) cube([16.5, 13, 4]); translate([52, 4, -0.1]) cube([16.5, 13, 4]); translate([72.2, 4, -0.1]) ...
glb/cad_305db3fd369b.glb
Create a parametric clip for a pegboard mount. The main body consists of two identical C-shaped ring segments stacked vertically. Each ring is a hollowed-out cylinder with an inner radius of 11.5mm, a wall thickness of 2mm, and a total height of 8mm. The rings are open-ended, with a 45-degree gap removed from the side ...
clipInnerRad = 23/2; clipThikness = 2; clipHeight = 8; supportWidth = 0; supportHeight = 0.3; mount=1; mount_w=12; mount_th=3; mount_h=3.5; mount_rd=6; mount_rth=3; rotate([0,0,-90]){ if (mount==0){clip(ir=clipInnerRad-supportWidth/2,t=clipThikness+supportWidth,h=supportHeight); translate([0,0,supportHeight...
glb/cad_db8181853848.glb
Create a ceiling mounting bracket for a security camera. Start with a central main mount consisting of a cylinder with a diameter of 35mm and a height of 5.5mm. Surrounding this central cylinder, add two symmetrical curved clip arms. Each arm is defined by an outer radius of 22mm and a thickness of 2.5mm. The first c...
$fn= $preview ? 45 : 100; mainDia = 35; clipDia = 44; clipRad = clipDia / 2; clipVoidRad = clipRad - 0.75; overallThickness = 5.5; clipThickness = 2.5; clip1AngleStart = -125; clip1AngleEnd = -55; clip2AngleStart = 55; clip2AngleEnd = 125; clipVoidAngleDiff = 10; screwSeparation = 23.5; screwHeadDia = 6; screwHead...
glb/cad_3507469d6a42.glb
Create a battery holder for a B105BE battery by starting with a solid rectangular block measuring 57mm wide, 70mm deep, and 7mm high. Center a rectangular cutout within this block that is 51mm wide, 64mm deep, and 8mm high, leaving a wall around the perimeter. On the bottom face, centered along the depth, remove a semi...
$fn=180; difference() { cube(size = [57,70,7], center = true); translate([0,0,2.5]) cube(size = [51,64,8], center = true); translate([18,35,1]) rotate([90,00,0]){ #cylinder(h = 10, d=2, center = true); } translate([13,35,1]) rotate([90,00,0]){ #cylinder(h = 10, d=2, center = true); } translate([0,-33.5,-0.1]) #cyli...
glb/cad_4a198c12e0a5.glb
Create a Klipper Pressure Advance testing tower. Start with a main rectangular block 50mm wide, 15mm deep, and 55mm tall. At the center of the back face, add a semi-cylinder with a radius of 7.5mm and a height of 55mm. Along the height of the main block, create a series of horizontal indents every 5mm. Each indent is ...
start = 0.0; stop = 1.0; step = 0.05; size = 5; nozzle_size = 0.4; width = 50; depth = 15; steps = (stop - start) / step; indent_depth = nozzle_size; tolerance = 0.5 * indent_depth; translate([width/2, depth, 0]) { cylinder(steps * size + size, depth/2, depth/2, false); } difference() { cube([width, depth,...
glb/cad_9b8deb2ff827.glb
Create a Klipper Pressure Advance testing tower. Start with a main rectangular block 50mm wide, 15mm deep, and 55mm tall. At the center of the back face, add a semi-cylinder with a radius of 7.5mm and a height of 55mm. Along the height of the main block, create a series of horizontal indents every 5mm. Each indent is ...
start = 0.0; stop = 1.0; step = 0.05; size = 5; nozzle_size = 0.4; width = 50; depth = 15; steps = (stop - start) / step; indent_depth = nozzle_size; tolerance = 0.5 * indent_depth; translate([width/2, depth, 0]) { cylinder(steps * size + size, depth/2, depth/2, false); } difference() { cube([width, depth,...
glb/cad_dd91513140ea.glb
Create a Tripod Lamp base consisting of a central ring with four extending arms. Start by creating a flat circular ring with a height of 2mm, an outer diameter of 50mm, and a centered inner hole with a radius of 20mm. From the outer edge of this ring, extend four identical rectangular arms spaced evenly at 90-degree ...
$fn = 36; baseheight = 2; holeradius = 20; armwidth = 10; armlength = 80; holdersize = 10; holderGap = 1; module rotate_around_pt(z, y, pt) { translate(pt) rotate([0, y, z]) translate(-pt) children(); } ; module makeArm(){ makeHolder(); translate([holeradius,-armwidt...
glb/cad_590db62259d8.glb
To create the Grand Trunk Western Model Railroad Bridge, construct the following geometric components: **Bridge Piers and Abutments** Create a bridge pier with a width of 62mm (based on 2 tracks) and a height of 48.4mm. The pier features a central rectangular body with a top cap 6mm high. Incorporate a series of arch ...
BridgeLength = 240; makeSTL = true; NumTracks = 2; BridgeHt = 48.4; BridgeSkew = 15; module __Customizer_Limit__() { } shown_by_customizer = false; $fn = 100; BDbrgWth = 31 * 2; NumBgs = NumTracks; BridgeWidth = NumTracks * BDbrgWth; BDthick = 10; PNumCol = 4; ParapetHt = 10; PColWidth = 7; PColRel = 0.5;...
glb/cad_7ae0f669e13f.glb
Create a tube adapter consisting of two tapered cylindrical sections joined by a transitional mid-section, with a consistent wall thickness of 3mm throughout. The first section (Side A) is a tapered hollow cylinder with a length of 35mm. Its outer diameter starts at 64.6mm at the base and tapers inward toward the cen...
SideA_InnerDiameter = 58.6; SideB_OuterDiameter = 30.2; SideA_Length = 35; SideB_Length = 35; Taper = 1.5; Thickness = 3; epsilon = 0.05; $fn = 100; SideA_OuterDiameter = SideA_InnerDiameter + 2*Thickness; SideB_InnerDiameter = SideB_OuterDiameter - 2*Thickness; MidLength = (SideA_OuterDiameter - SideB_InnerDiam...
glb/cad_90484f6bb9ea.glb
Create a Paradigm Surround Speaker Wall Mount consisting of two main parallel plates connected by a central block. First, create the speaker-side plate as a rectangular block 78mm wide, 12.5mm deep, and 2.7mm thick. In this plate, create two cylindrical channels with a radius of 2mm, centered 17.5mm from the middle o...
$fn = 100; screw_distance_from_center = 25; channel_distance_from_center = 17.5; speaker_side_width = 78; wall_side_width = 83; difference() { union() { difference() { union() { difference() { cube([speaker_side_width, 12.5, 2.7]); translate([speaker_side_wid...
glb/cad_cba9b07689e7.glb
Create a desiccant tray for a drybox lid. Start by constructing a rectangular main body with an outer width of 108.2mm, a length of 90mm, and a total height of 16.8mm. The tray features a central recessed well that is 101mm wide, 86.4mm long, and 15mm deep, leaving a wall thickness of 1.8mm around the perimeter. Exten...
Well_width = 101; Well_length = 90; Well_depth = 15; Wall_width = 1.8; Tab_width = 15; Slot_width = 1; Slot_length = 7; Slot_count_x = 9; Slot_count_y = 29; $fn = 12; outer_depth = Well_depth + Wall_width; Slot_step_x = Well_width/(Slot_count_x + 1); Slot_step_y = Well_length/(Slot_count_y + 3); union() { ...
glb/cad_7c0cfa3607e8.glb
Create a Drag Chain link consisting of a carrier and a snapper. For the carrier, create a U-shaped base with a width of 30mm and a height of 20mm. The walls and bottom should have a thickness of approximately 1mm. The carrier features two side walls connected by a bottom plate, with rounded outer edges. Incorporate a c...
SelectPart = 1 ; LinkWidth = 30 ; LinkHeight = 20 ; SeparatorCount= 0 ; SnapHinge1= 1 ; MaterialThickness = 0 ; AdditionalBottomStrength = 0 ; LinkClearance= 0.3 ; SnapperWidth= 0 ; SnapperClearance= 0.2 ; EdgePin= 1 ; DegreeFreedom= 45 ; PinOffset= 0 ; $fn= 80 ; module DragChain(selectPart,linkWidth,linkHei...
glb/cad_222fbb22edcd.glb
Create a Raspberry Pi sleeve case with overall dimensions of 60.3mm in width, 86.9mm in depth, and 27mm in height. The main body is a hollow shell with a wall thickness of 1.7mm. On the front face, create three rectangular cutouts to allow access for the Ethernet port and USB ports, starting at a height of 4.75mm fro...
$fs=.5; $fa=1; piType=3; ethernetX=5; ethernetZ=.1; usb1X=25; usb2X=42.7; usbZ=.5; ethernetWidth=16.5; ethernetDepth=20.7; usbWidth=14; usbDepth=16.3; frontThick=1.7; pcbCardThick=1.9; pcbCardWidth=56; pcbCardDepth=85.2; pcbCardZ=4.75; headphoneDia=6; headphoneZ=4.14; headphoneY=31.2; hdmiHeight=6.45; hdmiWidth...
glb/cad_088b487a9f14.glb
Create a Tetromino bookend by assembling modified cubes into specific geometric clusters. First, define a base "Tetromino Cube" as a 40mm cube with 4mm chamfers removed from its corners. Specifically, remove four 45-degree rotated square prisms from the corners of each face to create a rounded-edge effect. Construct t...
size = 40; cutout = 4; cutout2 = sqrt(2 * cutout * cutout); module TetrominoCube() { difference() { cube([size,size,size]); union() { TetrominoCorners(); translate([0,0,size]) rotate([0,90,0]) TetrominoCorners(); translate(...
glb/cad_160f4ed85ece.glb
Create a rear sensor column consisting of several coaxial cylindrical components. First, construct a primary vertical tower by stacking a series of truncated cones and cylinders: start with a base cylinder 11mm in diameter and 2mm high, followed by a truncated cone 44mm high that tapers from 17mm at the bottom to 18mm ...
$fn=80; rotate([0,180,0])translate([-50,0,-49])difference(){ union(){ cylinder(d=11,h=2); translate([0,0,2])cylinder(d1=17,d2=18,h=44); translate([0,0,24])cylinder(d1=17,d2=19,h=0.5); translate([0,0,24.5])cylinder(d1=19,d2=17,h=0.5); translate([0,0,46])cylinder(d1=23,d2=35,h=1.5); translate([0,0,47.5])cylinder...
glb/cad_67fb20f6a6f7.glb
Create a door ramp for a robot vacuum with a total width of 196mm, a depth of 87mm, and a height of 18mm. The main body is a wedge shape that slopes from the full height of 18mm at the back down to a thickness of 3mm at the front. The top surface of the ramp features a hexagonal honeycomb grid. Each hexagon has a ver...
$fn=100; depth=87; height=18; width=196; edgeWidth=5; wallWidth=1; hexLargeR = 5; thickness=3; backOffset=10; angle=atan(height/width); hexSmallR = hexLargeR*cos(180/6); hexSmallD = hexSmallR*2; hexLargeD = hexLargeR*2; hexEdge = 2*sin(30)*hexLargeR; module regular_polygon(sides, radius, center=false) { function d...
glb/cad_4130ee478fcb.glb
Create a broom handle holder consisting of a flat mounting plate and a cylindrical sleeve. Start with a base plate 82.5mm wide, 50mm deep, and 5mm thick, with rounded ends. Centered on this plate, create a vertical cylindrical sleeve with an outer diameter of 39mm and an inner diameter of 29mm, extending 40mm in height...
plateH = 50; plateW = 82.5; plateThickness = 5; handleDia = 29; handleH = 40; handleThickness = 5; handleSupportW = 5; handleScrewOffset = 12; xScrewSep = 48; yScrewSep = 25; stickGrippas = 8; grippaW = 1; nudge= 0.1; $fn=75; difference() { union() { rotate([25,0,0]) translate([0,2,12]) { dif...
glb/cad_61a7d76b2a2e.glb
Create a Bodenstopfen overflow plug consisting of a threaded bolt and a matching nut. Start by creating an M10 metric bolt with 7.3 turns and a 30-degree Higbee arc, positioned so the threaded section begins 7mm from the base. Below the threads, add a cylindrical base with a diameter of 11mm and a height of 7mm. Above ...
include <ScrewsMetric/ScrewsMetric.scad>; use <threadlib/threadlib.scad> $fn=250; dt1=0.01; dt2=dt1*2; prt_delta=0.4; wall=0.9; dicht_z=1.5; dicht_d=11; difference(){ union(){ translate([0, 0, 18.7]) cylinder(d1=8.15, d2=5.2); translate([0, 0, 7]) bolt("M10", turns=7.3, h...
glb/cad_c1c1416a2417.glb
Create a Bodenstopfen drain plug for a planter pot. Start with a cylindrical base that has a diameter of 18mm and a height of 5.5mm. On the top face of this base, center a smaller, shallow circular indentation. From the top of the base, extend a threaded bolt with an M10 metric profile. The threaded section should hav...
use <threadlib/threadlib.scad> $fn=250; dt1=0.01; dt2=dt1*2; prt_delta=0.4; wall=0.9; dicht_z=1.5; dicht_d=11; difference(){ union(){ translate([0, 0, 18.7]) cylinder(d1=8.15, d2=5.2); translate([0, 0, 7]) bolt("M10", turns=7.3, higbee_arc=30); cylinder(d=18, h=7-...
glb/cad_0069d8322acf.glb
Create a memo box for A6 notes. The main body is a rectangular container with outer dimensions of 152.5mm in width, 109mm in depth, and 44mm in height. The walls are 2mm thick. The box is open at the top and has a hollow interior measuring 148.5mm by 105mm by 40mm. The front wall is angled backwards at 30 degrees from...
qo=0.001; $fn=13; content_x=148.5; content_y=105; content_z=40; content_space=2; honeycomb=16; wall=2; angle=30; grill_offset_x=16; grill_offset_y=-17; function frontwall_y() = content_y+wall+2*content_space-(content_z+2*content_space)*tan(angle); module honeycomb(depth,field){ cylinder(h=depth,d=field,$fn=6); ...
glb/cad_e02bf25fd0f6.glb
Create a centering cross for a lens adapter. Start by creating a thin circular ring with an outer diameter of 24.95mm and an inner diameter of 22.95mm, giving the ring a total thickness of 0.2mm. Centered within this ring, add two thin rectangular bars that intersect at the middle to form a cross. One bar should be 23....
$fn=200; d=24.95; h=0.2; w=0.43; union() { difference() { translate([0, 0, -h/2]) cylinder(h, d=d); translate([0, 0, -h/2-0.1]) cylinder(h+0.2, d=d-2); } cube([d-1, w, h], center=true); cube([w, d-1, h], center=true); }
glb/cad_7d53169899f4.glb
Create a phone holder attachment for a tablet stand. Start by constructing a main rectangular cradle with an outer width of 84.2mm, a total height of 156.6mm, and a thickness of 15.2mm. Hollow out the center to create a pocket for a phone that is 81mm wide and 12mm thick, leaving walls with a thickness of 1.6mm. To acc...
phone_width = 81; phone_thickness = 12; phone_height = 155; phone_camera_height = 40; latch_width = 2.1; latch_height = 6.3; latch_thickness = 2.1; hole_width = 5.9; hole_height = 12.4; hole_dist_x = 18.3; hole_dist_y = 31; hole_depth = 5; module attachment_point(latch_width, latch_height, latch_thickness, hole_widt...
glb/cad_30333db7d781.glb
Create a ratcheting belt hanger with a uniform thickness of 3mm. Start with a rectangular tongue measuring 22mm wide and 50mm long. At the bottom of this tongue, center a rectangular hole that is 9mm wide and 6mm long, positioned 6mm from the bottom edge. From the top of the tongue, extend a rectangular connector bloc...
$fn=100; thickness = 3; tounge_length = 50; tounge_width = 22; hole_length = 6; hole_width = 9; hole_offset = 6; top_length = 35; top_width = 31; hanger_dia = 40; hanger_width = 10; translate([tounge_width/2, (tounge_length+top_length+hanger_dia/2+hanger_width*2), 0]) { union() { difference() { ...
glb/cad_e53634bd212e.glb
Create a low profile cap for a Neutrik XX-series XLR connector. The body is composed of three stacked cylindrical sections. Start with a base cylinder 20mm in diameter and 5mm high. Above this, add a middle cylinder 16.5mm in diameter and 10mm high, and top it with a final cylinder 14mm in diameter and 5mm high. Hollo...
$fn=100; base_h = 5; base_d = 20; mid_h = 10; mid_d = 16.5; top_h = 5; top_d = 14; hole_d = 12; hole_offset = 2; cable_d = 4.5; cable_offset = 1; difference () { union() { cylinder(base_h, d=base_d); translate([base_d/2, 0, 0]) cylinder(base_h, d=1); translate([0, -base_d/2, 0]) cylinder(b...
glb/cad_2cd4721fd54f.glb
Create a vacuum hose adapter consisting of two concentric cylindrical ends connected by a tapered transition. The large end is a hollow cylinder with an outer diameter of 40.1mm and a length of 15.1mm. The small end is a hollow cylinder with an outer diameter of 17.1mm and a length of 25.1mm. Both ends have a uniform w...
LargeEndMeasured = "outside"; LargeEndDiameter = 40.1; LargeEndLength = 15.1; SmallEndMeasured = "outside"; SmallEndDiameter = 17.1; SmallEndLength = 25.1; TaperLength = 25.1; WallThickness = 1.5; InsideStop= "no"; $fn=60 *1; WT=WallThickness; LL=LargeEndLength; SL=SmallEndLength; TL=Ta...
glb/cad_fdf9205326b1.glb
Create a wedge-shaped mounting bracket for a doorbell with a 40-degree angle. The main body is a rounded rectangular block with outer dimensions of 53mm by 162.5mm and a total depth of 100mm. Carve out a central rectangular cavity with a depth of 8.5mm, maintaining a wall thickness of 1mm. The interior of this cavity...
angle = 40; mount_door_side = 0; trim_back_edge = true; rotate_for_printing = true; $fa = 3; $fs = 0.25; module screw_hole (offset = [0, 0, 0]) { translate(offset) { color("cyan") mirror([0, 0, 1]) cylinder(depth, screw_hole_radius, screw_hole_radius)...
glb/cad_a571d5241a28.glb
Create a hole plug consisting of three stacked concentric sections. Start with a solid cylindrical base that has a diameter of 48mm and a height of 2.5mm. Centered on top of this base, add a thin-walled cylindrical seal tube with an outer diameter of 43mm, a wall thickness of 2mm, and a height of 4mm. Finally, atop the...
include <BOSL2/std.scad> $fa=0.1; $fs=0.1; holeDiameter=43; plugCapDiameter=holeDiameter + 5; wallThickness=2; baseHeight=2.5; sealHeight=4.0; topHeight=baseHeight + 6; includeSizeText=false; cylinder(d=plugCapDiameter, h=baseHeight) { if (includeSizeText) { attach(TOP) text3d(text=str(holeDiameter), h=...
glb/cad_d6c8db962ecd.glb
Create a pin for a FlipStop by constructing three stacked coaxial cylinders of varying diameters and heights. Start with a base cylinder that is 9mm in diameter and 2mm high. Centered on top of this base, add a second cylinder with a diameter of 4mm and a height of 12mm. Finally, place a third cylinder on top of the se...
$fn = 100; cap_dia = 9; cap_thickness = 2; thick_dia = 4; thick_len = 12; thin_dia = 3.5; thin_len = 7; color("red") cap(); color("blue") translate([0,0,cap_thickness]) thick(); color("green") translate([0,0,cap_thickness + thick_len]) thin(); module cap() { cylinder(h=cap_thickness, d=cap_dia); }; module thi...
glb/cad_51578a56203e.glb
Create a floor lamp repair support by constructing a half-cylinder shell. Start with an outer cylinder 250mm long with a radius of 23mm, and remove a concentric inner cylinder 250mm long with a radius of 13mm to create a wall thickness of 10mm. To ensure the piece is a semi-cylinder, remove the top half of the geometry...
inner_dia = 26; thickness = 10; tie_wrap_width = 5; tie_wrap_depth = 1.5; lamp_joint_dia = 29; lamp_joint_width = 8; cyl_length = 250; gap_from_center = 2; tie_wrap_incr = cyl_length/10; outer_rad = inner_dia/2+thickness; lamp_joint_z = cyl_length/2 - lamp_joint_width/2; difference() { color("pink")translate([0,0,0]...
glb/cad_a23c32bd76e2.glb
Create a plug for covering ground sockets by constructing two stacked cylinders. First, create a wide, flat base cylinder with a diameter of 45mm and a height of 3mm. Then, center a second, narrower cylinder on top of the base, starting at a height of 3mm. This upper cylinder must have a diameter of 31.5mm and a height...
$fn=300; cylinder(3,45,45); translate([0,0,3])cylinder(15,31.5,29);
glb/cad_0d54e65c5ceb.glb
Create a thick ring with a 50-facet resolution. Start by creating a solid cylinder with a diameter of 6mm and a height of 1.8mm, centered on the origin. From the center of this cylinder, remove a smaller concentric cylindrical hole with a diameter of 3.2mm and the same height of 1.8mm to create a hollow tube.
$fn=50; difference(){ cylinder(1.8,d=6,center=true); cylinder(2.8,d=3.2,center=true); }
glb/cad_ed6b12ef4549.glb
Create a rectangular base plate measuring 27mm in length, 12mm in width, and 1.5mm in height. From this base, remove three identical square-shaped cutouts to create three recessed pockets. Each pocket must be 6.2mm wide, 6.8mm long, and 3.51mm deep. Position these pockets centrally along the length of the plate, with o...
difference(){ cube([27,12,1.5],center=true); union(){ translate([10,0,0])tac(); translate([0,0,0])tac(); translate([-10,0,0])tac(); } } module tac(){ translate([0,0,2])cube([6.2,6.8,3.51],center=true); translate([2.25,3.5,0])cylinder(2,d1=2,d2=1,$fn=20,center=true); tra...
glb/cad_75f50e166f63.glb
Create a round protective cap by constructing a hollow cylinder with a height of 20mm. The outer diameter of the cylinder should be 13mm, and the inner diameter should be 10mm, resulting in a wall thickness of 1.5mm. The cylinder must be open at one end and closed at the other, forming a sleeve that can fit over a circ...
Diameter_Foot = 10; Height_Cover = 20; Thickness_Wall_Cover = 1.5; Circle_Steps = 128; difference() { cylinder(d=Diameter_Foot+Thickness_Wall_Cover*2, h=Height_Cover, $fn=Circle_Steps, center = true); translate([0,0,Thickness_Wall_Cover/2]) cylinder(d=Diameter_Foot, h=Height_Cover-Thickness_Wall_Cover, $f...
glb/cad_2e2c8c7285bb.glb
Create a protective round cap with a hemispherical bottom and an open top. The outer shell should be a combination of a cylinder and a sphere. Start by creating a solid cylinder with an outer diameter of 13mm and a total height of 17.5mm. Attach a sphere with a diameter of 13mm to the base of the cylinder so that the b...
Diameter_Foot = 10; Height_Cover = 20; Thickness_Wall_Cover = 1.5; Circle_Steps = 128; difference() { union() { translate([0,0,-(Height_Cover-Diameter_Foot/2-Thickness_Wall_Cover)/2]) sphere(d=Diameter_Foot+Thickness_Wall_Cover*2, $fn=Circle_Steps); cylinder(d=Diameter_Foot+Thickness_W...
glb/cad_8822c17096cb.glb
Create a protective cap with a semicircular end and a hollow interior. Start by forming the main body as a combination of a cylinder and a rectangular block. The outer dimensions consist of a cylinder with a diameter of 13mm and a height of 7mm, merged with a centered rectangular block measuring 13mm wide, 7mm deep, an...
Width_Foot = 10; Depth_Foot = 4; Height_Cover = 20; Thickness_Wall_Cover = 1.5; Circle_Steps = 128; difference() { union() { rotate([90,0,0]) translate([0,-(Height_Cover-Width_Foot/2-Thickness_Wall_Cover)/2,0]) cylinder(d=Width_Foot+Thickness_Wall_Cover*2, h=Depth_Foot+Thickness_Wall_...
glb/cad_cb7ac32c962d.glb
Create a rectangular protective cap with a flat end. Start by constructing a solid outer rectangular prism with a width of 13mm, a depth of 7mm, and a height of 20mm. From the center of this volume, remove a smaller rectangular prism to create a hollow interior. This interior cavity must have a width of 10mm and a dept...
Width_Foot = 10; Depth_Foot = 4; Height_Cover = 20; Thickness_Wall_Cover = 1.5; difference() { cube([Width_Foot+Thickness_Wall_Cover*2, Depth_Foot+Thickness_Wall_Cover*2, Height_Cover], center = true); translate([0,0,Thickness_Wall_Cover/2]) cube([Width_Foot, Depth_Foot, Height_Cover-Thickness_Wall_Cover...
glb/cad_65e6b65df7b8.glb
Create a Solforge Fusion Deck Slipcase, which is a hollow rectangular sleeve designed to hold sleeved cards. The outer dimensions of the shell should be 21.5mm wide, 93mm long, and 68mm deep, with a uniform wall thickness of 1mm. The interior cavity should measure 19.5mm by 92mm by 67mm. On one of the shorter exterior...
nameWindow = true; decklistWindow = true; lattice = true; sleeve_length = 91; sleeve_width = 66; length = sleeve_length + 1; depth = sleeve_width + 1; width = 19.5; thickness = 1.0; thumb_height = 73; name_width = 50; name_height = 7; name_offset = 12.5; list_width = 40; list_height = 35; list_top_offset = 22.5;...
glb/cad_c4ef8be934ef.glb
Create a car cupholder container in the shape of a tapered cylinder with a height of 70mm. The base should have a diameter of 63mm, widening linearly to a top diameter of 68mm. Hollow out the center of the cylinder to create a thin-walled vessel, leaving a bottom floor thickness of 1mm. The interior cavity should also ...
$fn = 250; $cup_height=70; $top_diameter=68; $bottom_diameter=63; $magnet_num=4; $magnet_hole_diameter=2.2; $magnet_hole_depth=2.2; $magnet_hole_position=32.2; $magnet_hole_offset=$cup_height-$magnet_hole_depth; difference(){ cylinder(h=$cup_height,d1=$bottom_diameter, d2=$top_diameter); translate([0,0,1]) cyl...
glb/cad_eb7b8ab6f979.glb
Create a car cupholder container lid. Start by creating a main solid cylinder with a diameter of 68mm and a height of 3mm. On the top surface of this cylinder, center a concentric circular indentation that is 1mm deep. This indentation should have an outer diameter of 61mm and an inner hole of 57mm, effectively creatin...
$fn = 250; $top_height=3; $top_diameter=68; $rim_diameter=59; $magnet_num=4; $magnet_hole_diameter=2.2; $magnet_hole_depth=2.2; $magnet_hole_position=32.2; $magnet_hole_offset=$top_height-$magnet_hole_depth; difference(){ union(){ cylinder($top_height,d1=$top_diameter,d2=$top_diameter); difference(...
glb/cad_4fdbe1d167e9.glb
Create a vacuum cleaner nozzle adapter consisting of a central hose tube, a supporting conical base, and reinforcing fins. Start by creating a hollow hose tube with an outer diameter tapering from 32.9mm at the bottom to 31mm at the top, and an inner diameter of 26.7mm. The tube should have a total external length of...
$fn = 120; test1 = false; test2 = false; makenozzle = true; makeplate = true; showvac = false; showclip = false; extruder_di = 0.4; offset = -0.1; wallt = 9; lower_wall = wallt * extruder_di; lower_indi = 76.8; lower_di = lower_indi + (2 * lower_wall); upper_wall = wallt * extruder_di; upper_di = lower_indi + upper...
glb/cad_a812989ec1bf.glb
Create a Twitchy Cat Link, a mechanical connector with a total length of 25mm and a thickness of 3mm. The main body is a flat rectangular plate with rounded ends. At one end, create a cylindrical hole with a diameter of 14.3mm to accommodate a #6 screw. This hole is centered within a circular recess that has a diameter...
module twitchy_cat_link(l=25, th=3, nozzle_d=0.4) { no6_free_d = 0.1495 * 25.4 + nozzle_d; no6_head_d = 0.270 * 25.4 + nozzle_d; no6_head_h = 0.097 * 25.4 - nozzle_d; no6_nut_d = (5/16 * 25.4 + nozzle_d) / cos(30); no6_nut_h = 7/64 * 25.4 - nozzle_d; nose_w = 5; nose_d = 12; zip_w = 5 + ...
glb/cad_9cba8d7eff4e.glb
Create a 7 Wonders Second Edition organizer tray by starting with a solid rectangular block measuring 110mm in width, 52.5mm in depth, and 70mm in height. Carve out five identical rectangular slots for cards, each measuring 106mm wide, 7mm deep, and 100mm high. Position these slots starting at a height of 1mm from th...
$fn=200; difference(){ cube([110,52.5,70]); for(i = [0:5]){ translate([2.5,(i*8.5)+1.5,1]) cube([106,7,100]); } translate([1,26.25,6]) rotate([0,270,0]) linear_extrude(1) text("Armada", valign="center", size=12); translate([55.5,200,70]) rotate([90,0,0]) cylinder(h=400, d=70, center=false); translate([13.5,19...
glb/cad_372d62c99698.glb
Create a 7 Wonders Second Edition organizer tray by starting with a solid rectangular block measuring 110mm in length, 35mm in width, and 70mm in height. Hollow out the center of the block by removing a rectangular volume of 106mm by 32mm with a depth of 100mm, leaving a wall thickness of 2.5mm on the sides and 1.5mm...
$fn=200; difference(){ cube([110,35,70]); translate([2.5,1.5,1]) cube([106,32,100]); translate([1,18.5,5.5]) rotate([0,270,0]) linear_extrude(1) text("Leaders", valign="center", size=12); translate([55.5,200,70]) rotate([90,0,0]) cylinder(h=400, d=70, center=false); translate([13.5,190,62]) rotate([90,0,0]) l...
glb/cad_d3960ca9a14d.glb
Create a 7 Wonders Second Edition organizer tray by starting with a rounded rectangular block measuring 134.5mm in length, 109.8mm in width, and 14.5mm in height, with corner radii of 5mm. From this base, carve out a central rectangular cavity measuring 115mm by 105mm with a depth of 13.5mm, positioned 16.1mm from the ...
$fn=200; difference(){ roundedCube5(134.5,109.8,14.5); translate([16.1,2.4,1]) cube([115,105,30]); translate([0,24.9,-1]) rotate([0,0,0]) cylinder(h=400, d=27.4, center=false); translate([0,84.9,-1]) rotate([0,0,0]) cylinder(h=400, d=27.4, center=false); translate([17.4,54.9,-1]) rotate([0,0,0]) cylinder(h=400, d=...
glb/cad_f1c54ad2c459.glb
Create a 7 Wonders Second Edition game organizer tray. Start with a base block that is 50mm wide, 135mm long, and 42mm high, ensuring the corners are rounded with a 3mm radius. From this base, remove a large rectangular section measuring 38mm by 200mm by 60mm, positioned at coordinates (-1, -1, 14), to create a prima...
$fn=200; difference(){ roundedCube(50,135,42); translate([-1,-1,14]) cube([38,200,60]); translate([-1,15,-1]) cube([23,200,60]); translate([3,12,-1]) rotate([0,0,90]) linear_extrude(20) difference(){square(3);circle(3);} translate([25,132,-1]) rotate([0,0,90]) linear_extrude(20) difference(){square(3);circle(3);} ...
glb/cad_42a500cd4bb9.glb
Create a 7 Wonders Second Edition game organizer tray. Start with a solid rectangular block measuring 110mm in width, 43mm in depth, and 70mm in height. From the top face, carve out four longitudinal rectangular slots running along the width. The first three slots are each 106mm wide, 10mm deep, and 100mm high, posit...
$fn=200; difference(){ cube([110,43,70]); translate([2.5,1.5,1]) cube([106,10,100]); translate([1,21.5,14]) rotate([0,270,0]) linear_extrude(1) text("Cities", valign="center", size=12); translate([2.5,13,1]) cube([106,10,100]); translate([2.5,24.5,1]) cube([106,10,100]); translate([2.5,36,1]) cube([106,5.5,1...
glb/cad_af84dfc89b10.glb
Create a 7 Wonders Second Edition game organizer tray. Start with a base rectangular block measuring 178mm in length, 51.8mm in width, and 28mm in height, ensuring all exterior corners are rounded with a 5mm radius. Within this base, carve out three distinct storage compartments. The first two compartments are identic...
$fn=200; difference(){ roundedCube5(178,51.8,28); for(i = [0:1]){ translate([(i*57.6)+2.4,2.4,12]) roundedCube3(51,47,30); translate([(i*57.6)+2.4,2.4,1]) roundedCube3(51,16,30); translate([(i*57.6)+2.4,33.4,1]) roundedCube3(51,16,30); translate([(i*57.6)+27.9,54.9,22]) rotate([90,0,0]) cylinder(h=10, d=30, center...
glb/cad_1d0fe9fda8a2.glb
Create a 7 Wonders Second Edition organizer tray by starting with a rounded rectangular base measuring 178mm in length, 109.8mm in width, and 13.5mm in height, with corner radii of 5mm. Hollow out the center of this base to create a rectangular compartment measuring 155mm by 105mm with a depth of 12.5mm, leaving a wall...
$fn=200; difference(){ roundedCube5(178,109.8,13.5); translate([17.4,2.4,1]) cube([155,105,30]); translate([0,24.9,-1]) rotate([0,0,0]) cylinder(h=400, d=27.4, center=false); translate([0,84.9,-1]) rotate([0,0,0]) cylinder(h=400, d=27.4, center=false); translate([17.4,54.9,-1]) rotate([0,0,0]) cylinder(h=400, d=29...
glb/cad_3d92aed6870f.glb
Create a 7 Wonders Second Edition game organizer tray. Start with a base rounded rectangular block measuring 238mm in length, 43mm in width, and 31.5mm in height, with corner radii of 3mm. Carve out the following sections from the top of the block: First, remove a large rectangular volume measuring 179.6mm by 45mm by...
$fn=200; difference(){ roundedCube(238,43,31.5); translate([-1,-1,16.5]) cube([179.6,45,60]); for(i = [0:1]){ translate([(i*28.4)+181.2,2.4,11.5]) cube([26,28.5,60]); translate([(i*28.4)+194.2,3,-1]) rotate([0,0,0]) cylinder(h=75, d=20, center=false); translate([(i*28.4)+194.6,23.15,11.5]) rotate([0,0,0]) cylinder...
glb/cad_8b8a2691f634.glb
Create a solder pin holder for DIP boards. Start with a solid rectangular block measuring 41.5mm in length, 18.26mm in width, and 10mm in height. From this block, remove a central rectangular section to create a deep trough. This trough should be 38.1mm long, 0.65mm wide, and 8mm deep, positioned 2mm from the front edg...
pins = 15; width = .6; k = 25.4; hole = 0.1; e = 0.0; d = 8; base = 4; top_level(); module top_level(){ difference(){ cube([4+(k*pins/10+e),k*width+3.0,d+base/2]); color("RED") translate([2,1,base/2]) slots(); color("BLUE") translate([0,2.9,base]) cube([4+(k*pins/10+e),k*width-3.0,10]); color("CYA...
glb/cad_3f0d695fd1bb.glb
Create a customizable under-shelf sheet holder consisting of two mirrored side brackets. Each bracket has a total width of 20mm and a length of 225mm. For each bracket, create a vertical wall 3mm thick. Within this wall, construct four stacked slots to hold sheets. Each slot unit consists of a 2mm high opening for the...
NUM_SLOTS = 4; DO_RIGHT = true; DO_LEFT = true; DO_CENTER_HOLE = true; SLOT_HEIGHT_MM = 2.0; SLOT_SUPPORT_HEIGHT_MM = 3; WALL_MM = 3; WIDTH_MM = 20; LENGTH_MM = 225; RAMP_LENGTH_MM = 25; WEDGE_REAR_H...
glb/cad_e676251a6cc3.glb
Create a Torroid Propeller consisting of six symmetrical, looped blades radiating from a central core. The overall major diameter of the propeller is 100mm. First, construct the central core as a hollow cylinder with an outer diameter of 30mm, an inner diameter of 24mm, and a height of 15mm. The core should feature a ...
$fn=80; ODm=100; Dmjr=45; Dmnr=50; Bw=14; Bt=0.8; Bn=6; Clip=-1; Cod=30; Cor=Cod*0.5; Cid=24; Cir=Cid*0.5; Ch=15; Cc=1.5; Cs=13; Coff=-.5; Chole=20; Ah=45; At=45; Aa=20; An=360/Bn; Ai=1; TiltA=tan(At)*Dmjr; TiltW=Bw/cos(At); Rmjr=Dmjr*0.5; Rm=ODm*0.5; CylH=TiltA+TiltW; SubCube=CylH+ODm; Ec=tan(At)*Bw; CoreOut=...
glb/cad_1fe105f9fbe3.glb
Create a parametric storage bin with outer dimensions of 100mm width, 60mm depth, and 150mm height. The bin consists of a bottom and four walls, each with a thickness of 5mm. Instead of solid surfaces, the walls and bottom are constructed as a lattice. The lattice is formed by pillars with a width of 7mm, with the gaps...
binDimensions = [ 100, 60, 150 ]; binWallSize = 7; binWallThickness = 5; binMaxGapSize = 15; screwSlotPositions = [ [ 0, 6 ], [ 4, 6 ] ]; screwHeadDiameter = 6; screwThreadDiameter = 3; screwDiametersTolerance = 0.2; function calculateDivisionsAndGapWidth( latticeDimensions, wallSize, gapMax...
glb/cad_121ba1c40f14.glb
Create two separate connector components, a male and a female socket, for LED strip adapters. For the female socket, create a rectangular outer casing with a total width of 9.8mm, a length of 21mm, and a height of 8.7mm. Subtract a central rectangular hole measuring 6.8mm by 11mm by 4.7mm, offset by a 1.5mm wall thick...
male_x=6.8; male_y=11; male_z=4.7; female_groove_y=6; female_groove_z=1; female_groove_x=0.4; male_groove_x=0.4; male_groove_z=1; male_groove_z_pos=1; wall_thickness=1.5; female_y=10+male_y; female_z_extra=2; male_z_extra=1; diff_offset=.01; contact_channel_x=1.5; contact_channel_y=40; contact_channel_z=1.5; co...
glb/cad_b8cef35e3f1b.glb
Create an ESP32 devkit case consisting of a bottom shell and a lid. For the bottom shell, create a rounded rectangular box with external dimensions of 32.5mm by 55mm and a height of 10mm. The walls should be 2mm thick. Inside, create two rectangular cutouts to accommodate the development board's pins, each 2.54mm wid...
$fn = 50; board_length = 51; board_width = 28.5; board_height = 3; board_pins_length = 38; board_pins_width = 2.54; board_pins_y_position = 8; board_holes = true; board_holes_edge_distance = 2; board_holes_diameter = 3; usb = true; buttons_wall_distance_x = 6; buttons_wall_distance_y = 3; case_wall_width =...
glb/cad_02d862735865.glb
Create a set of customizable LED Whoop Gates consisting of modular segments, stands, and mounts. For the gate segment, create a rectangular block 100mm long, 13mm wide, and 11.5mm high. Carve a central LED channel through the length with an outer height of 9.5mm and an inner height of 7.5mm, and a width of 3.5mm. At e...
part = "all"; sideLength = 100; corners = 6; width = 13; height = 11.5; doveTailLength = 5; doveTailWidth = 5; doveTailShort = 3; doveTailTolerance = 0.05; ledChannelInner = 7.5; ledChannelOuter = 9.5; ledChannelWidth = 3.5; restrainerLength = 10; restrainerWidth = 1.2; standLength = 35; standWidth = 30; standWall ...
glb/cad_b69c0c7cb6be.glb
Create a Customizable Whoop Carrying Case consisting of two matching halves, a top and a bottom, joined by a hinge. For the bottom half, create a base using a hull of three cylinders with a radius of 20.1mm (hoop radius 18.1mm plus 2mm walls) positioned at [0,0], [46,0], and [0,46] in the XY plane, with a total heigh...
part = "both"; hoopDiameter = 36.2; hoopSpacing = 46; whoopHeight = 18; whoopHeightTop = 23; walls = 2.0; bottom = 1.2; top = 1.2; batteryHeight = 61; batteryWidth = 6.6; batteryLength = 11.2; batterySlotDepth = 13; batterySlotDepthOuter = 26 ; batterySpacing = 1; batteryOffsetY = 2; magnetShape = "square"; ...
glb/cad_b07de3c20cd6.glb
Create a Rubber Band PCB Vice consisting of a base and two identical holding blocks. First, construct the base as a rectangular plate 60mm long, 40mm wide, and 5.2mm high. Round the four corners with a 5mm radius. Cut a central slot through the base that is 4mm wide at the top and 9mm wide at the bottom, creating a t...
part = "both"; length = 60; width = 40; bottom = 1.2; roundness = 5; slotTop = 4; slotBottom = 9; slotHeight = 4; slotTolerance = 0.1; slotPadding = 2; walls = 2; holderHeight = 25; holderThickness = 5; holderThicknessBottom = 8; holderPadding = 2.4; bandSlotDepth = 2; bandSlotHeight = 2; bandSlotOffse...
glb/cad_d97ed39545a6.glb
Create a Customizable Corner Jig by constructing a base plate and adding vertical walls to form a right-angle guide. Start with a solid rectangular base that is 3mm thick. On top of this base, add two perpendicular walls, each 1.6mm thick, to create an L-shape. The outer dimensions of the total footprint should be 60.5...
sideLeft = 30.5; sideRight = 28; bottomThickness = 3; topThickness = 1.6; wall = 3; margin = 25; radius = 2; cutoutMargin = 5; $fn = 180; thickness = bottomThickness + topThickness; difference() { cube([sideLeft + margin + wall, sideRight + margin + wall, thickness]); translate([wall, wall, topThickness])...
glb/cad_a7bbf6f409da.glb
Create a set of FPV gate components consisting of corner pieces and magnet mounts. For the corner piece, create a block with an overall height of 9mm, a width of 13.2mm, and a length of 14.5mm. Subtract a central rectangular cutout from this block that is 10mm wide, 5mm high, and 13.5mm long, leaving a wall thickness...
part = "both"; corners = 6; width = 10; height = 5; length= 14; walls = 1.6; wallsInner = 0.5; magnetDiameter = 16; magnetHeight = 3; outerWall = 0.6; degrees = 360 / corners; hull = 0.2; outerHeight = height + walls * 2; outerWidth = width + walls * 2; outerLength = length + wallsInner; magnetRadius = magne...
glb/cad_aa234df7f7ca.glb
Create a flexible protective cap for an XT60 connector. Start with a rectangular base plate measuring 8.9mm wide by 13.4mm long with a thickness of 1.2mm. From this base, extend a main body upwards to a total height of 10.7mm. This body should have outer dimensions of 8.9mm by 13.2mm, with walls 1.2mm thick. Hollow ou...
width = 6.5; length1 = 12; lengthTotal = 14.4; widthTop = 2; innerHeight = 9.5; innerHeight1 = 8.3; bottom = 1.2; skirt = 1.2; walls = 1.2; xOffsetGuide = 6.25; guideLength = 1.2; guideWidth = 1.5; outerHeight = bottom + innerHeight; outerWidth = width + walls * 2; ratio = outerWidth / width; outerWidthTop = width...
glb/cad_dc02a9f64e02.glb
Create a coffee grinder dial by constructing a composite shape that blends a rectangular base with a cylindrical end. Start by creating a rectangular prism measuring 20mm in length, 4mm in width, and 1.9mm in height. At one end of this prism, integrate a cylinder with a diameter of 4.5mm and a height of 1.9mm, ensuring...
$fn=50; difference () { hull () { translate ([0,-2,0]) { cube ([20,4,1.9]); }; cylinder (d=4.5, h=1.9); }; cylinder (d=3.05, h=5, $fn=20); };
glb/cad_f24f6028082f.glb
Create a coffee grinder dial consisting of a main circular disc and a central axle. Start by creating a cylinder with a diameter of 50mm and a height of 3mm. Around the perimeter of this disc, place two sets of numerical markers. The first set consists of numbers 0 through 9, positioned every 20 degrees from -90 to -27...
$fn=50; translate ([-3,-3,0]) { difference () { union () { translate ([3,3,0]) { cylinder (d=50, h=3); }; for (i=[-90:-20:-270]) { translate ([sin(i)*20,cos(i)*20,0]) { linear_extrude (height=4) { text (str((i+90)/-20), size=6); }; }; }; }; translate ([0,0,2]) { union () { for (j=[-50:25:50]) { translate ([sin(j)*...
glb/cad_b27de6989977.glb
Create a coffee grinder dial by constructing a composite base that blends a rectangular block and a cylinder. Start with a rectangular prism measuring 15mm in length, 3mm in width, and 1.9mm in height. At one end of this prism, integrate a cylinder with a diameter of 4.5mm and a height of 1.9mm, centered such that the ...
$fn=50; difference () { hull () { translate ([0,-1.5,0]) { cube ([15,3,1.9]); }; cylinder (d=4.5, h=1.9); }; cylinder (d=3.05, h=5, $fn=18); };
glb/cad_4de4eb7d446c.glb
Create a Keyboard Alignment Grid designed to hold mechanical switches. Start by creating a solid rectangular block with a height of 12mm. The overall footprint of the block should be 68.7mm in width and 68.7mm in depth, calculated from a 4x4 grid of switch cutouts. Within this block, create a grid of 16 square holes, ...
height = 12; borderwidthx = 1.65; borderwidthy = 1.65; spacingx = 3.3; spacingy = 3.3; numcols = 4; numrows = 4; sizeofswitchx = 15.7; sizeofswitchy = 15.7; numkeys = numrows*numcols; translate([0, 0, 0]) linear_extrude(height) difference(){ square([((numcols*sizeofswitchx)+(spacingx*(numcols-1))+(2*b...
glb/cad_8f45920b6559.glb
Create a wader wheel consisting of a main cylindrical body with a central hole and a top flange. The main body is a cylinder with an outer diameter of 24mm and a total height of 20mm. Within this body, create a central bore that starts at the bottom with a diameter of 7.3mm and tapers outward to a diameter of 7.9mm o...
$fn= $preview ? 16:64; d2=7.3; d1=7.9; d3=8.7; d=24; h1=9; h=11; chamfer=45; f=2; not=0.001; d(){ cylinderRounded(d=[0,d],h=h,r=[0,f,0,f],chamfer=chamfer); t([0,0,-not]) cylinder(d1=d1,d2=d2,h=h1+2*not); t([0,0,h1]) cylinder(d=d3,h=h); } module cylinderRounded(d=[20,40],h=30,center=false,r=[0,0,0,0],chamfer=0.00...
glb/cad_a9e8e61175b3.glb
Create a hexagonal cylinder tile grid. Start by constructing a single hollow hexagonal prism with an outer radius of 1mm and an inner radius of 0.9mm, giving the walls a thickness of 0.1mm and an overall height of 0.5mm. Arrange these hollow hexagons into a repeating honeycomb pattern. The grid should consist of 10 col...
outer_hex = 1; inner_hex = .9; wall_depth = outer_hex - inner_hex; tile_height = .5; n = 10; m = 10; module hexagon(x) circle(r=x, $fn=6); module hollow_hex(x, inner_x) difference(){hexagon(x); hexagon(inner_x);} module hex_cylinder(height=0.1) linear_extrude(height=height, center=true) hollow_hex(outer_hex, inner_hex...
glb/cad_682c5301b7ba.glb
Create a cable pass join by extruding a specific 2D profile along a circular path to form a partial ring. The profile is a complex polygon with a base height of 5mm and a total width determined by the difference between an outer diameter of 14mm and an inner diameter of 7mm. The resulting shape should be a curved sleev...
D1=14; D2=7; T=5; Ang=345; x=(D1-D2)/2*360/Ang; rotate_extrude(angle=Ang,$fn=200) translate([D2/2*360/Ang,0,0]) polygon(points=[[0,0], [0,T+5.2], [x-0.2,T+5.2], [x+1.2,T+3.6], [x+1.2,T+3.4], [x,T+3.4], [x,3.2], [x+4,3.2], [x+4,2], [x+2,0]]);
glb/cad_203e3f0c186e.glb
Create a MistKing wall mount for a display unit. Start with a solid rectangular block measuring 100mm wide, 57mm high, and 25mm deep. Hollow out the center of this block to create a pocket that is 92mm wide, 49mm high, and 17mm deep, leaving a wall thickness of 4mm on all sides. At the bottom center of the front wall, ...
W=92; H=49; D=17; CLoc = 40.5; CThk = 6; CDep = 11; Th = 4; module hole() { holeDiameter=3; chamfer=4; color("green") translate([0,Th/2,0]) rotate([90,0,0]) cylinder(d1=holeDiameter, d2=holeDiameter*chamfer, h=Th, center=true, $fn=64); } difference() { color("blue") linear_extrude(height=H+T...
glb/cad_95e26d389f7f.glb
Create a Leshiy transfer port seal, a rotationally symmetrical puck. The object is formed by revolving a specific profile around a central axis. The core of the puck is a cylinder with a central hole 4.9mm in diameter. The overall height of the puck is 4.44mm. The outer diameter of the puck is 11.35mm. The profile fea...
open_diam = 7.39; end_diam = 4.9; port_diam = 11.35; oring_thk = 1.5; puck_thk = 4.44; xeps = 0.6; yeps = 0.2; nseg = 4; segrot = 45; seat_r = 0.3; module profile() { difference() { color("red") square([(port_diam-end_diam)/2,puck_thk]); color("blue") translate([(port_diam-end_diam)/2 - s...
glb/cad_0a9316ae0593.glb