Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a cylindrical test piece for a geared astrophotography tracker. Start with a solid cylinder 25mm in diameter and 12mm in height. From the center of this cylinder, remove a hexagonal prism with a diameter of 16.75mm and a height of 8.45mm. Additionally, remove a central cylindrical hole with a diameter of 9.6mm...
base_diameter = 25; base_height = 12; locknut_diameter = 16.75; locknut_thickness = 8.45; motor_shaft_diameter = 9.6; rotate( [180, 0, 0] ) difference() { cylinder(d = base_diameter, h = base_height, $fn = 50); cylinder(d = locknut_diameter, h = locknut_thickness, $fn = 6); cylinder(d = motor_shaft_diamete...
glb/cad_81dd4b2a947c.glb
Create a bearing recess test piece for a geared astrophotography tracker. Start by creating a central rectangular block with a width and depth of 30mm and a height of 12mm. Center a cylindrical hole through the height of the block to accommodate a shaft, with a diameter of 9.5mm. Around this central hole, create a la...
bodySide = 30; bodyHeight = 12; bearingDiam = 23; bearingThickness = 7.2; shaftClearanceDiam = 9.5; $fn = 50; rotate( [90, 0, 0] ) difference() { translate( [0, 0, bodyHeight/2] ) cube( [bodySide, bodySide,bodyHeight], center = true ); cylinder(d = bearingDiam, h = bearingThickness...
glb/cad_da374b4865de.glb
Create a control box and lid for a geared tracker. The box consists of a rectangular base and a matching lid. For the base, create a chamfered rectangular shell with outer dimensions of 135mm x 74mm x 27mm. The walls should be 3mm thick. Hollow out the center to create an internal volume of 129mm x 65mm x 21mm. On one...
include <chamfer.scad> include <metric_fasteners.scad> batteryX = 121; batteryY = 58; batteryZ = 18; boardX = 67; boardY = 49; boardZ = 28; bodyRadius = 3; bodyWallThickness = 3; intClearance = 5; m3ClearanceDiam = 3.2; powerSocketDiam = 8; motorCableDiam = 6; pcbMountingX = 23 * 2.54; pcbMountingY = 15 * 2.54; pcbM...
glb/cad_0cd35e9e4b0d.glb
Create a cylindrical locknut test piece with a diameter of 25mm and a height of 8mm. The cylinder should have a 50-facet resolution. From the center of this cylinder, remove a hexagonal prism with a diameter of 13.2mm and a height of 4.5mm to create a recessed hexagonal socket. Additionally, create a central vertical...
base_diameter = 25; base_height = 8; locknutDiam = 13.2; locknutThickness = 4.5; threadClearanceDiam = 7; rotate( [180, 0, 0] ) difference() { cylinder(d = base_diameter, h = base_height, $fn = 50); cylinder(d = locknutDiam, h = locknutThickness, $fn = 6); cylinder(d = threadClearanceDiam, h = base_height,...
glb/cad_95a4eff82275.glb
Create a control box for an equatorial star tracker consisting of a main base and a matching lid. The base is a chamfered rectangular box with outer dimensions of 135mm x 74mm x 33mm. The walls are 3mm thick, creating an internal cavity of 129mm x 65mm x 27mm. On the bottom exterior, add a mounting plate that extends...
include <chamfer.scad> include <metric_fasteners.scad> include <slide_switch.scad> batteryX = 121; batteryY = 58; batteryZ = 18; boardX = 67; boardY = 49; boardZ = 28; bodyRadius = 3; bodyWallThickness = 3; intClearance = 5; m3ClearanceDiam = 3.2; powerSocketDiam = 8; motorCableDiam = 6; pcbMountingX = 23 * 2.54; pc...
glb/cad_017417fd3f9f.glb
Create a picatinny phone mount for an equatorial star tracker. Start with a main rectangular block measuring 30mm wide, 57mm long, and 13.45mm high. On the top surface, center a rail mount consisting of two 4mm x 62mm x 4mm rectangular prisms rotated 45 degrees and positioned symmetrically around the center, with a 1...
include <chamfer.scad> mountX = 30; mountY = 57; mountZ = 13.45; plateX = 150; plateY = 3; plateZ = 95; ledgeY = 18; ledgeZ = 3; $fn = 100; module rail() { translate( [mountX/2 - 8.5, mountY/2, mountZ/2 - 1.5] ) rotate ( [0, 45, 0] ) cube( [4, mountY + 5, 4], center=true); translate( [mo...
glb/cad_f4b380f2dcf0.glb
Create a filter wrench for a 40.5mm lens filter. Start by creating a main circular body with an outer diameter of 55mm and a thickness of 3.5mm. In the center of this disk, remove a cylindrical hole with a diameter of 44.8mm to accommodate the filter and a rubber grip. Extend a handle from the side of the disk. The ha...
filterDiam = 42.8; rubberThickness = 1; thickness = 3.5; outerDiam = 55; armLength = 100; armWidth = 20; slotWidth = 5; $fn = 100; difference() { union() { cylinder(d = outerDiam, h = thickness); translate( [filterDiam/2, -armWidth/2, 0] ) cube( [armLength, armWidth, thickness] );...
glb/cad_a3015872cef6.glb
Create a Wall Wart Cable Tidy by starting with a flat, square plate measuring 40mm by 40mm with a thickness of 1mm. Centered within this plate, create a set of holes specifically arranged for an Australian (AU) style power plug. These holes should be precisely positioned and sized to accommodate the pins of an AU plug,...
include <plug_layouts.scad> $fn = 100; wallThickness = 3; sideX = 40; sideY = 40; sideZ = 1; pinType = "AU"; difference() { cube([sideX, sideY, sideZ], center=true); if (pinType == "UK" || pinType == "uk") { UKpinHoles(); } else if (pinType == "EU" || pinType == "eu") { EUpinHole...
glb/cad_f4f505f86043.glb
Create a Wall Wart Cable Tidy consisting of a central cylindrical spool. The main body is a cylinder with a diameter of 60mm and a height of 27.5mm. Hollow out the center of the cylinder by removing a torus-shaped volume with a diameter of 20mm and a height of 24.5mm, positioned to leave a 3mm wall at the bottom. T...
include <plug_layouts.scad> $fn = 100; wallThickness = 3; bodyDiam = 60; bodyThickness = 27.5; pinType = "au"; module torus(diam, height) { rotate_extrude(convexity = 100) translate( [diam, 0, 0] ) square(height); } module cableCut(gapDiam, height, depth) { hull() { translat...
glb/cad_73cdc5fcf003.glb
Create a rectangular block with dimensions 45mm in width (X), 10mm in depth (Y), and 30mm in height (Z). Subtract a rounded rectangular slot from the top of the block. This slot should be 22mm wide (X) and 20mm high (Z), with corner radii of 2mm. Position the slot so it starts 5mm from the left edge (X), extends 1mm ...
include <dimensions.scad> bodyX = 45; bodyY = 10; bodyZ = 30; slotX = 22; slotZ = 20; slotRadius = 2; OffsetZ = 5; rodDiam = 8.2; $fn = 100; difference() { cube( [bodyX, bodyY, bodyZ] ); translate( [5, bodyY + 0.5, OffsetZ] ) rotate( [90, 0, 0] ) minkyCube(slotX, slotZ, bodyY + 1, slotRa...
glb/cad_0f141d9bd7df.glb
Create a DrawingBot XY carriage base. Start with a main rectangular body of dimensions 50mm width, 40mm length, and 5mm thickness, featuring rounded corners. On the top surface, add four cylindrical plinths for rotary bearings, each with a diameter of 15mm and a height of 7mm. Position these plinths symmetrically rel...
include <dimensions.scad> pegOffset = 38; pegWidth = 15; pegLength = 6; pegThickness = 8; drivePulleyDiam = 9.75; idlerBaseDiam = 15; idlerBaseThickness = 7; $fn = 100; idlerSpacingX = idlerDiam*2 + gt2totalThickness*2; idlerSpacingY = drivePulleyDiam + idlerDiam + gt2totalThickness*2; echo(idlerSpacingX = idlerSpac...
glb/cad_a593d0a68f09.glb
Create a NEMA 17 motor mount with a main body and a motor plate. The main body is a rounded rectangular block 95mm long, 10mm thick, and 50mm deep, with corner radii of 3mm. Attached to this is a NEMA 17 motor plate 50mm long, 44mm deep, and 4mm thick, with 2mm corner radii, offset by 2mm in the Y-axis. Cut a central ...
include <dimensions.scad> bodyX = 95; bodyY = 10; bodyZ = 50; bodyRadius = 3; nemaPlateX = 50; nemaPlateY = 44; nemaPlateZ = 4; nemaPlateRadius = 2; nemaPlateOffset = 2; nemaCentralDiam = 23; nemaScrewSpacing = 31; slotX = 22; slotZ = 20; slotRadius = 2; xRodOffset = 16; screwBraceOffset = 40; clampNutOffset = 5; ligh...
glb/cad_91605e0857d4.glb
Create a support tube for a DrawingBot. Start by creating a cube with a width and depth of 6.125mm and a height of 10mm. Apply a small fillet or rounding to the vertical edges of the cube. Center a vertical cylindrical hole through the middle of the cube with a diameter of 3.5mm. The hole should start 1mm from the bott...
include <dimensions.scad> $fn = 50; height = 10; cableSupportWidth = cableSupportHoleDiam*1.75; difference() { minkyCube(cableSupportWidth, cableSupportWidth, height, 1); translate( [cableSupportWidth/2, cableSupportWidth/2, 1] ) cylinder(d = cableSupportHoleDiam, height); }
glb/cad_85ccff2aa1bf.glb
Create a DrawingBot XY carriage base. Start with a main rectangular body 65mm long, 30mm wide, and 3.5mm thick, with rounded corners of 5mm radius. Add two Z-axis support arms extending from the bottom of the body. These arms are 5.2mm wide and 10mm thick, positioned such that the centers of the Z-axis rods are 40mm ...
include <dimensions.scad> bodyLength = 65; bodyHeight = 30; bodyThickness = 3.5; bodyRadius = 5; beltSlotElevation = 13.5; zRodDiameter = 3.4; zRodSpacing = 40; zAxisArmHeight = 68; zAxisArmLength = 5.2; zAxisArmThickness = 10; zAxisRodSurroundDiam = 7.6; zAxisArmOffset = 28; zAxisCutOutHeight = 24.5; M3cskHeadDiam = ...
glb/cad_6acaeb521db6.glb
Create a servo arm consisting of a cylindrical hub and a rectangular lever. Start with a central cylinder 7.5mm in diameter and 8mm high. Extend a lever arm from this hub, 15mm in length and 4mm thick, with a rounded end matching the 7.5mm diameter of the hub. Inside the hub, create a central vertical hole 2.7mm in di...
toothCount = 25; bodyOD = 7.5; screwOD = 2.7; screwHeadOD = 4.4; splineOD = 4.8; splineID = 4.6; splineDepth = 2.8; splineRelief = 0.5; leverLength = 15; leverHeight = 8; screwLip = 0.5; $fn = 100; splineSize = (splineOD - splineID)*2; splineCircleRadius = splineOD/2 - splineSize ; armThickness = leverHeight/2; diff...
glb/cad_074cf3aee438.glb
Create a 2020 cable guide clip with a total height of 8mm. Start by constructing an L-shaped main body with a thickness of 4mm and an outer dimension of 24.1mm by 24.1mm. From this body, remove a central square section of 20.1mm by 20.1mm to create a channel for a profile extrusion, leaving 4mm walls. Add two locatin...
c_width = 8; c_thickness = 4; e_height = 20.1; e_shoulder = 7.5; e_gap = 6 - 0.5; $fn = 50; module minkyCube(xDim, yDim, zDim, radius) { x = xDim - radius*2; y = yDim - radius*2; z = zDim/2; translate( [radius, radius, 0] ) minkowski() { cube( [x, y, z] ); cyli...
glb/cad_aded53abf3e3.glb
Create an M3 Screw Knob by starting with a main cylinder that has a diameter of 12mm and a total height of 9.3mm. This main body should have a chamfered top edge. Remove a central vertical hole with a diameter of 3.4mm running through the entire height to accommodate the screw thread. At the bottom of the knob, creat...
include <chamfer.scad> threadDiam = 3.4; headDiam = 6; headHeight = 2.5; nutDiam = 6.6; nutHeight = 3.8; knobDiam = 12; indents = 6; indentDiam = 2; indentDepth = 0.25; knobHeight = headHeight + nutHeight + 3; difference() { chamferCylinder(knobHeight, knobDiam/2); cylinder(d = threadDiam, h = knobHeight, ...
glb/cad_ea8efba2ac1e.glb
Create a mini-reel for SMD components consisting of two identical mirrored halves. For each half, start with a circular flange 100mm in diameter and 1mm thick. At the center of the flange, add a cylindrical hub with a diameter of 50mm and a total height of 9mm (calculated as the 8mm tape width plus 1mm tolerance). Th...
Tape_Width = 8; Diameter = 100; Hub = 50; Flange_Thickness = 1.0; Tape_Tolerance = 1.0; Tolerance = 0.1; Spindle_Diameter = 13; Spindle_Wing_Width = 2; Spindle_Wing_Length = 10.3; Left = 1; Right = 2; epsilon = 0.005; $fn = 100; module spindle(height) { translate([0, 0, -epsilon]) { union() { cyl...
glb/cad_ad080522fd12.glb
Create a 9-point star Christmas tree topper. The main body consists of two identical 5-pointed star shapes mirrored across a central plane to create a three-dimensional effect. Each star has an outer radius of 33.02mm and an inner radius of 12.73mm. Extrude these star shapes to a height of 20mm, tapering them to a poin...
$fn=100; orad = 6.5*25.4/2; irad = orad/sin(54)*cos(72); echo(irad); el = 20; rotate([0,90,0]) difference(){ union(){ threeDstar(); rotate([72/2,0,0]) threeDstar(); translate([0,0,-orad*1.1]) cylinder(h=orad*1.1,d1=el*1.5,d2=el*0.7,$fn=100); } translate([0,0,-orad*1.11]) cylinder(h=...
glb/cad_727787931a28.glb
Create a shower wall hanging safety razor holder. Start by constructing a vertical mounting bracket that consists of two parallel walls, each 44mm high and 3mm thick. The first wall is positioned to hang over a shower wall that is 26mm thick, with an additional 3mm offset for the bracket thickness, creating a total ove...
OVERHANG_MM = 25.4; MAIN_HANG_MM = 50.8; SHOWER_WALL_MM = 26.0; RAZOR_LENGTH_MM = 44.0; RAZOR_WIDTH_MM = 25.4; HANDLE_DIA_MM = 12.0; THICKNESS_MM = 3.0; CHAMFER_MM = 2.0; $fn=50; module rounded_wall(start_x, start_y, end_x, end_y, height, thickness) { hull() { translate([start_x, start...
glb/cad_43930034b91c.glb
Create a Pedestal Table mount as a solid cylinder with a diameter of 60mm and a height of 16mm. At the center of the cylinder, remove a vertical core consisting of two stepped coaxial holes. The first is a narrow hole with a diameter of 8.5mm that passes through the entire 16mm height. The second is a wider concentri...
mount_thickness = 16; mount_diameter = 60; center_to_fastener_distance = 21; fastener_thread_diameter = 5; fastener_head_diameter = 10; fastener_depth = 8; T_nut_cylinder_diameter = 8; T_nut_length = 10; T_nut_base_diameter = 20; x_distance = center_to_fastener_distance*sin(60); y_distance = center_to_fastener_dista...
glb/cad_9663815f5e5b.glb
Create a trim nut for self-tapping screws consisting of a hexagonal head and a conical flange. Start by creating a hexagonal prism with a face-to-face width of 8mm and a total height of 13mm. Centered vertically and horizontally through this prism, remove a cylindrical hole with a diameter of 3.6mm that spans the entir...
$fn = 100; HWidth =8; HHeight =13; FRadius1=8; FRadius2=3; FHeight =4.5; SHole =1.8; difference(){ fhex(HWidth,HHeight); shole(HHeight,SHole,SHole); } difference(){ flange(FHeight,FRadius1,FRadius2); shole(HHeight,SHole,SHole); } module fhex(wid,height){ translate([0,0,height/2]) hull(){ cube([wid/sqrt(3),wid,hei...
glb/cad_7e91152a3bb6.glb
Create a 3D model of a Spectre Aperiodic Chiral Monotile. The object is a flat, extruded plate with a height of 2mm. The overall shape is based on a 14-sided polygon where each side has a length of 12mm. Instead of straight edges, modify every side of the polygon to follow a sine wave pattern. Each edge should featur...
spectre(12, 2, 2, 1.5); module spectre(length, height, thickness, amplitude, frequency=1) { assert(length > 0, "length has to be a positive number."); assert(height > 0, "height has to be a positive number."); assert(frequency > 0, "frequency has to be a positive int."); V = [[(0*sqrt(3) + 0)*l...
glb/cad_cea75a208dc1.glb
Create a fountain plug consisting of two stacked cylindrical sections. First, construct a main cylindrical base with a diameter of 19 mm and a height of 30 mm. Centered on top of this base, add a second, smaller cylinder to serve as a knob, which has a diameter of 11.5 mm and a height of 10 mm. Finally, add a thin, fla...
$fn = 400; cylinder(15, 10.6, 9.5); cylinder(2, 11.5, 11.5); rotate([90,0,0] ) { translate([0,0,-2]) { cylinder(4, 8, 8); } }
glb/cad_81dc76887c95.glb
Create a wall mount for a Raspberry Pi with a HAT by constructing a central base and four extending arms. Start with a central cylindrical hub with a diameter of approximately 14.14mm and a height of 3.5mm. From this hub, extend four rectangular arms to form a cross shape. At the end of each arm, place a cylindrical p...
$fn = 32; vesaOffset = 40.0; frameHeight = 2.0; frameWidth = 10.0; vesaFrameHole = 3.1; piHoleWidth = 49.0; piHoleLength = 58.0; piHole = 2.8; piPad = 8.0; piPadHeight = 2.0; piMFastenerHeight = 1.5; difference() { vesaFrame(); translate([vesaOffset, vesaOffset, -0.01]) cylinder(d = vesaFrameHole, h...
glb/cad_8c035526f8ed.glb
Create a Card Deck and Phone Holder consisting of a tilted cradle and a supporting stand. First, construct the main holder body. Create a rectangular base plate 69.4mm wide, 98mm long, and 2.2mm thick, tilted at a 60-degree angle. On the top surface of this plate, add two side walls (lips) that are 2.2mm thick and 20...
$fn = 100; t = 2.2; a = 60; w = 65 + 2*t + 2*1; h = 91 + t + 2*1 + 5; standDm = 40; wall = 20; module holder(w, h, t, a) { b = 90 - a; module lip() { translate([ t, 0, t ]) rotate([ 0, -90, 0 ]) { linear_extrude(t) { square([ wall, h - wall ]); intersection() { square([ wall, h ]); tr...
glb/cad_1a0f15512c54.glb
Create a thread spool stand consisting of a square base plate measuring 90mm by 90mm with a thickness of 7mm. In this plate, arrange a 3x3 grid of spindle holes spaced 30mm apart, with the center of each hole positioned 15mm from the edges. Each hole should be a composite cutout: first, a wide cylinder with a diamete...
$fn = $preview ? 36 : 72; tolerance = .2; board_side = 90; spindle_h = 40; A_h = 4; A_di = 8.5; A_do = 14; B_di = 6.3; board(space = 30, d = 28); module board(space = 30, d = 28, size = [board_side, board_side, A_h + 3]) { difference() { cube(size); for (x = [space / 2 : space : size[0]]) { ...
glb/cad_69deced30e96.glb
Create a Spinning Magnetic Levitation Desk Toy consisting of a base, two supports, an endplate, a spinner, and a cap. Create a base that is 100mm long, 15mm wide, and 6mm thick, with a 50mm wide rectangular extension at one end. Create two identical supports. Each support consists of a ring with an inner radius of 2...
mag_r=6.05; mag_t=5.25; tol=0.1; base_l=100; base_end_w=50; spinner_l=50; supp_ir=24; supp_t=2; slider_r=15; $vpt=[-4,4,20]; $vpr=[60,0,65]; $vpd=260; $fs=0.5; $fa=2; MAKE_BASE=false; MAKE_BASE_END=false; MAKE_SUPPORT=false; MAKE_ENDPLATE=false; MAKE_SPINNER=false; MAKE_SPINNER_CAP=false; MAKE_ALL=false; if ...
glb/cad_90b6c2c5401d.glb
Create a PTFE Tube Cutter block with a base rectangular footprint of 38.5mm in length, 20mm in width, and 12mm in height. Apply a 2mm chamfer to all edges and corners to round the geometry. The bottom face of the block must remain flat. Cut a vertical knife slot through the block, 0.5mm wide, positioned exactly 34mm ...
$fn=64; l=34; kerf=0.5; chamfer=2; c2=chamfer; tube_base=4; clearance=0.1; tlen=l*2; tube = (tube_base+clearance)/2; d=20; w=l+tube+kerf; h=12; translate([chamfer,chamfer,chamfer*-1.5]) { difference() { { minkowski() { cube([w,d,h]); sphere(chamfer); } } translate([l...
glb/cad_1b5f3e69f48c.glb
Create a swiveling flagpole ring set consisting of two separate parts: a flag collar and a ringlet. First, create the flag collar. Start with a cylinder that has an outer diameter of 56.2mm and a height of 64.8mm. Remove a concentric inner cylinder with a diameter of 43.2mm and a height of 74.8mm to create a hollow tu...
innerRingDiameter = 43.2; outerRingDiameter = innerRingDiameter + 13; ringHeight = innerRingDiameter * 1.5; ringletHeight = 13; flagRingletHoleDiameter = 6; flangeThickness = 10; resolution = 120; translate([-outerRingDiameter,0,0]) flagCollar(); translate([+outerRingDiameter,0,0]) ringlet(); module flagColl...
glb/cad_eccae1f1dff5.glb
Create a fixing lug consisting of a square base plate and a vertical mounting tab. The base plate should be 30mm by 30mm with a thickness of 3mm. Center a vertical tab on the plate that extends upwards. This tab should be 3mm wide and 15mm tall, with a thickness of 3mm. Drill three holes through the assembly: one 3...
difference() { union() { difference() { cube(size=[30, 30, 3.0], center=true); translate(v=[14.0, 14.0, -1.52]) linear_extrude(height=3.04, center=false, convexity=10, twist=0.0, scale=1.0) difference() { translate(v=[0.5, 0.5, 0.0]) square(size=[1.04, 1.04], center=true...
glb/cad_2a287346d71c.glb
Create a wall mount for a sous vide stick consisting of a circular ring attached to a rectangular mounting plate. First, construct the ring by creating a cylinder with an outer diameter of 90mm and a height of 30mm, then remove a central cylindrical core with a diameter of 60.6mm and a height of 40mm. To create the tap...
$fn=100; module ring() { difference() { minkowski() {cylinder(d=80,h=20,center=true);sphere(d=10);} cylinder(d=60.6,h=40,center=true); translate([0,0,15]) cylinder(d1=60.6,d2=70, h=5,center=true); translate([-32,0,0]) cylinder(d=10,h=40,center=true); }; }; module halterung() { difference() { minkowski(){cube([30,70,...
glb/cad_8839ea138319.glb
Create a Prusacam mount for an ESP32 board consisting of three separate parts: a holder plate, a top frame, and a bottom case. All parts should have rounded corners with a 5mm radius. First, create a flat holder plate 1.6mm thick, measuring 61.4mm by 50mm. Center two circular screw holes with a 3mm diameter, spaced 43...
board_size = [57, 28]; board_clearance = 1; cable_size = [3, 8.5]; top_height = 15; bottom_height = 14; bottom_lip = 4; holder_width = 50; holder_hole_span = 43; holder_hole_diameter = 3; holder_nut_diameter = 5.5; wth = 1.60; wtv = .86; outer_radius = 5; vsig = ["", "", ""]; $fudge = 1; translate([0, 100]) bottom...
glb/cad_724742e85f52.glb
Create a parametric press-fit plug for a circular hole. Start with a circular top rim with a diameter of 18mm and a thickness of 1.5mm. The bottom of this rim should feature a 1mm chamfer tapering inward from the 18mm outer diameter to a 16mm diameter over a height of 1mm. Below the rim, construct a cylindrical body w...
inner_diameter = 15; rim_width = 1.5; height = 1.5; chamfer = 1.0; plug_length = 4; spring_length = 10; wall_thickness = 1.2; spring_thickness = 1.2; spring_width = 3.5; interference = 0.1; hole_tolerance = 0.2; slot_width = 1.0; spring_count = 3; $fn = 64; union() { union() { d = inner_diameter + rim_widt...
glb/cad_14f41f1d4114.glb
Create a rectangular cartridge shell for an MSX SD mapper board. The overall outer dimensions are 109mm wide, 71mm deep, and 8.5mm high. Construct the main body as a hollow box with a wall thickness of 3mm. The shell should be open at the front to allow the board to slide in. Along the bottom edge, create a recessed ...
$fn = 128; height = 8.5; width = 109; box_height = 71; wall = 3; lowered = 7; fixation1_x = 11.8; fixation_y = 35.5; fixation2_x = 97; abutment_size = 8; module base() { difference(){ cube([width, box_height, wall]); translate([46,57,-1]) cube([5,10,15]); } } module wall() { cube([wall,bo...
glb/cad_fd2adefb9149.glb
Create a cartridge shell for an MSX SD mapper board. The main body is a rectangular box with a base measuring 109mm in width and 71mm in depth, and a total height of 8.5mm. The walls are 3mm thick. The interior is hollowed out to accommodate the board, but includes several structural reinforcements and alignment featu...
$fn = 128; height = 8.5; width = 109; box_height = 71; wall = 3; lowered = 6.8; fixation1_x = 11.8; fixation_y = 35.5; fixation2_x = 97; abutment_size = 7; module base() { cube([width, box_height, wall]); } module wall() { difference(){ cube([wall,box_height,height]); } } module wall1() { cube(...
glb/cad_4b012e3d54d4.glb
Create a circular lid holder consisting of two curved outer rails and four supporting inner plates. First, create two identical curved rails by extruding a rectangle of 3mm by 100mm along a circular path with a radius of 105mm, spanning an arc of 20 degrees. Position the second rail rotated 30 degrees relative to the f...
holderAngle=20; holderRadius=105; holderThickness=3; holderLength=100; angleApart=30; innerAngle=125; innerRadius=60; innerThickness=48; innerLength=5; numSupports=4; module rotatedSquare(angle, radius, thickness, length) { rotate_extrude(angle=angle,$fn = 1000) translate([radius, 0, 0]) scale([thickness,...
glb/cad_baf2ce500019.glb
Create a sBITX V2 stand by constructing a mirrored pair of supports. For one side, start with a base structure that is tilted 30 degrees backward. The main body consists of a vertical back plate 151mm high and 9mm wide, with a thickness of 10mm. Attach a rear brace that is 52mm wide and 9mm thick, extending 113mm upwar...
fd=26; fr=fd/2; df=15; dr=17; sw=22; swb=9; h=151; th=10; tth=2; tback=4; fbrace=45; fwidth=25; bbrace=52; $fn=90; module lm(){ difference(){ union(){ cube([dr+fr+4,sw+fr+4,th]); translate([0,0,-fwidth]) cube([fbrace,swb,fwidth]); translate([-tback,0,0]) ...
glb/cad_f36296e0e003.glb
Create a Skadis-to-608-bearing adapter peg consisting of two intersecting rounded rectangular prisms. First, create a base rectangular prism with a width of 4.85mm, a depth of 14.4mm, and a height of 5.4mm. Apply a corner radius of 2mm to this prism and slightly chamfer the edges. Position this piece so its length runs...
$fn = 100; stiff = 0.05; module rounded_box(width, depth, height, corner_radius, shave_edge = 0) { corner_radius = max(1, corner_radius); width = width - 2 * corner_radius; depth = depth - 2 * corner_radius; corners = [ [0, 0, 0], [width, 0, 0], [0, depth, 0], [width, depth, 0] ]; translate([corne...
glb/cad_d7c9e4b863e5.glb
Create a VESA mount for an aluminium Raspberry Pi case. Start by constructing a base plate that fits within a 100mm by 100mm square area. The main body is a frame with a central rectangular cutout measuring 90mm in length and 64.5mm in width, designed to house a case that is 35.5mm high. The frame's base thickness is...
$fn=100; margin=5.0; vesaSize=100.0; baseHeight=3.0; mountMetric=4.0; piLength=90.0; piWidth=64.5; piHeight=35.5; module pi() { color("black") { cube([piLength, piWidth, piHeight]); } color("green") { translate([-margin, margin, baseHeight]) cube([piLength+margin*2, piWidth-margin*2, piHeight]); trans...
glb/cad_85a0eefa8478.glb
Create a set of bench dogs designed for a 20mm hole. Each model begins with a common peg base: a cylinder 20mm long with a diameter of 19.8mm, featuring a slight taper on the top 2mm to a diameter of 15.8mm. A central vertical hole with a diameter of 7.8mm runs through the entire length of the peg to accommodate a 5/16...
model="All"; support=true; pegLength=20; pegWidth=19.8; squareLength=40; squareWidth=40; squareHeight=20; roundWidth=40; roundHeight=30; roundFlatWidth=40; roundFlatHeight=30; roundLiftWidth=40; roundLiftHeight=30; roundLift=4; roundCornerWidth=40; roundCornerHeight=30; roundCornerAngle=90; angleWidth=40; angle...
glb/cad_fe6d15e7c321.glb
Create a flashlight wall mount with a total height of 60mm. The main body is a cylinder with an outer diameter of 29.5mm and a wall thickness of 3mm, creating an internal hollow cavity with a diameter of 23.5mm. The cylinder is modified to be flat against the mounting surface. At the front, create a vertical gap 12mm...
$fn = 200; $height = 60; $diameter = 23.5; $screwHoleDiameter = 3.5; $screwHoleScrewHeadDiameter = 8; $screwHoleScrewHeadDepth = 1.6; $topSlopeDegrees = 25; $frontGapWith = 12; $wallThickness = 3; $bottomBorderWidth = 4; $bottomSlopeDegrees = -10; $bottomSlopeLength = -($height/2); difference() { hull() { cyli...
glb/cad_d0443f8cca48.glb
Create a Ring Holder Ferris Wheel cap by combining two concentric cylinders. First, construct a wide, flat base cylinder with a radius of 4.25mm and a height of 1mm, centered on the origin. Then, place a second, smaller cylinder vertically on top of the base. This upper cylinder must have a radius of 1.775mm (accountin...
$fn = 100; printer_tolerance = 0.1; cap_thickness = 1; cap_radius = 4.25; cap_insert_height = 2; cap_insert_radius = 1.875; union() { cylinder (h = cap_thickness, r = cap_radius, center = true); translate ([ 0, 0, (cap_thickness + cap_insert_height - printer_tolerance) / 2 ]) { cylinder (h = cap_insert_h...
glb/cad_ec5c067d8599.glb
Create a Ring Holder Ferris Wheel back foot. Start with a rectangular base that is 22.125mm wide, 3mm thick, and 12mm long. Centered on the top face of this base, add a male dovetail connector. This connector is formed by a hull of two cylinders with a 1mm radius, positioned at the edges of a 11.0625mm wide span, and a...
$fn = 100; fudge = 0.001; printer_tolerance = 0.25; thickness = 3; height = 100; foot_thickness = 3; foot_width = 1.5 * 14.75; foot_length = 12; dove_tail_radius = 1; module dove_tail (size, height, radius) { translate ([ 0, ((size * sqrt(3)) / 2) / 2 - 2 / 3 * (size * sqrt(3)) / 2, 0 ]) { hull () { hull...
glb/cad_f040d956083a.glb
Create a Ring Holder Ferris Wheel stand consisting of two identical support feet and a wheel assembly. For each foot, create a base plate 100mm long, 3mm thick, and 3mm wide. At one end of the plate, integrate a rounded mounting point with a radius of 22.125mm. Within this mounting point, create a central vertical ho...
$fn = 100; fudge = .004; printer_tolerance = 0.15; thickness = 3; wheel_mount_radius = 1.5 * 14.75; wheel_connection_length = 3.25; wheel_connection_radius = 14.75; height = 100; foot_thickness = 3; foot_width = 1.5 * 14.75; foot_length = 12; wheel_cap_insert_radius = 14.75 / 2; wheel_cap_insert_depth = 3; ...
glb/cad_c6272064dcd0.glb
Create a Ring Holder Ferris Wheel cap by constructing a solid cylinder with a radius of 4.25mm and a total height of 3mm. Center a smaller cylindrical hole vertically within this shape to create a hollow insert. This inner hole must have a radius of 1.875mm and a height of 2mm, positioned such that it is carved out fro...
$fn = 100; fudge = 0.001; cap_thickness = 1; cap_radius = 4.25; cap_insert_height = 2; cap_insert_radius = 1.875; difference() { translate ([ 0, 0, cap_insert_height - cap_thickness - fudge]) { cylinder (h = (cap_thickness + cap_insert_height), r = cap_radius, center = true); } translate ([ 0, 0, (cap_th...
glb/cad_6fe2a77a7ccb.glb
Create a Ring Holder Ferris Wheel consisting of a central hub and six radiating petals. Start with a central cylinder 3mm thick with an outer radius of 19mm and a hollow inner core with a radius of 15mm. From this center, extend six petals spaced equally every 60 degrees. Each petal is formed by a hull connecting the c...
$fn = 100; fudge = .004; printer_tolerance = 0.15; thickness = 3; center_radius = 15; petal_height = 45; petal_tip_radius = 5; petal_thickness = 4; petal_spoke_radius = 3.75; petal_spoke_thickness = 2.25; petal_spoke_cap_insert_radius = 1.875; petal_spoke_cap_insert_depth = 2; num_petals = 6; module petal (d...
glb/cad_da802749a383.glb
Create a Ring Holder Ferris Wheel hook by combining a flat base with a vertical peg. Start with a flat base 2mm thick, formed by the convex hull of two cylinders: one centered at the origin with a radius of 6mm, and another with a radius of 6mm positioned 10mm away along the X-axis. Cut a circular hole with a 4mm radiu...
$fn = 100; fudge = .001; thickness = 2; ring_hook_mount_distance = 10; ring_hook_mount_radius = 6; ring_inner_radius = 4; ring_outer_radius = 6; ring_hook_radius = 3; ring_hook_height = 4; union() { difference () { hull () { cylinder (h = thickness, r = ring_outer_radius, center = true); tra...
glb/cad_794d0039a766.glb
Create a radio volume knob with an overall height of 0.525 inches and a main diameter of 0.691 inches. The main body consists of a cylindrical base 0.400 inches high, topped with a conical section that tapers from the main diameter down to half that diameter (0.3455 inches) over the remaining height. From the center o...
knob_height = 0.525; cyl_height = 0.400; knob_diameter = 0.691; knob_chamfer = true; knob_chamfer_frac = 0.5; cutout_diameter = 0.500; cutout_chamfer_max_diameter = 0.550; cutout_chamfer_depth = 0.059; stem_id = 0.202; stem_od = 0.35; stem_inset = 0.170; stem_flat = 0.190; $fn = 256; module knob( knob_height = k...
glb/cad_cd282e3f61ff.glb
Create a climate control knob with a total diameter of 1.25 inches and a height of 0.5 inches. The main body consists of a cylindrical fascia with a thickness of 0.185 inches and a diameter of 1.25 inches. On the rear of the knob, add a protruding cylindrical stem with an outer diameter of 0.41 inches and a length of...
use <volume-knob.scad> outer_dia = 1.250; limiting_pin_x = 0.155; limiting_pin_y = 0.085; limiting_pin_z = 0.170; limiting_pin_offset = 0.165; rim_thickness = 0.050; rim_depth = 0.035; stem_od = 0.410; stem_length = 0.450; stem_id = 0.203; stem_chord = 0.165; fascia_thickness = 0.185; grip_x = 0.33; grip_y = out...
glb/cad_074c7b985e92.glb
Create a parametric case for Xcelite 99 screwdriver blades. Start by constructing a solid rectangular base with a total height of 11mm (socket depth of 10mm plus a 1mm wall thickness). The base dimensions should accommodate six blade sockets arranged in a row, with a total width of 74.4mm and a depth of 22.4mm. For ea...
include <common.scad> $fn = 128; module xcelite_99_blade_socket( blade_base_dia, blade_wingspan, blade_wing_thickness, depth ) { blade_base_rad = blade_base_dia / 2; translate([0, 0, depth / 2]) { union() { cylinder(d = blade_base_dia, h = depth, center = true); cube([ blade_wingspan, blade_w...
glb/cad_7dc6e693bcb9.glb
Create a cabinet door handle with a total height of 6mm, a width of 1.5mm, and a depth of 1mm. The main body is a rectangular block with chamfered edges of 0.75mm on the top and bottom. The top surface of the handle is rounded with a radius of 4mm. Hollow out the center of the body to create a wall thickness of 0.093...
height = 6; width = 1.5; depth = 1; mh_dist = 1.5; mh_dia = 3 / 16; mh_xoffs = 3 / 16; ah_dia = 1 / 2; wall_thickness = 3 / 32; chamfer = width / 2; top_rad = 4; scallop_rad = height * 2; $fn = 128; followthrough = 0.01; module chamfer_block(width, depth, chamfer) { linear_extrude(depth) { polygon([ [0, 0], ...
glb/cad_264f0f08c922.glb
Create an Arducam B0205 camera case and swivel mount. Start by constructing a rectangular shell with an outer width and length of 43.2mm and a height of 22.5mm, featuring rounded corners with a radius of 6.3mm. The shell wall thickness is 2.5mm. Hollow out the center to fit a board of 38.2mm length and 4mm depth. On t...
use <../lib/utils.scad> include <../lib/3030-insert.scad> use <../lib/2020-hugger.scad> render = "prusa_set"; mount_point = "case"; shell_depth = 20; board_radius = 2; board_length = 38.2; board_depth = 4; shell_corner_radius = 4.3; shell_wall_thickness = 2.5; outer_width = board_length + shell_wall_thickness*2; chamf...
glb/cad_bee619eaad80.glb
Create a PCB mounting corner by starting with a solid cube measuring 10mm x 10mm x 12mm. From this block, remove a rectangular cutout measuring 5mm x 5mm x 2mm, positioned at the top edge and centered along the width and depth, to create a slot for the board. Additionally, create a vertical hole for a 3mm screw that pa...
$fa = 1; $fs = 0.4; pcb_x=5; pcb_y=5; pcb_z=2; H_top=2; H=10+pcb_z+H_top; W=10; D=10; module screw_3mm(L) { cylinder(L, 3/2, 3/2); cylinder(0.6, 3,3); translate([0,0,0.6]) cylinder(1.5, 3, 3/2); } rotate([90,0,0]) difference() { cube([W,D,H]); translate([3.5,3.5,0]) ...
glb/cad_d01add9bec4f.glb
Create two PCB mounting corners. For each corner, start with a solid rectangular block measuring 7mm in width, 10mm in depth, and 12mm in height. From the center of the block, remove a vertical cylindrical hole with a diameter of 3mm that passes completely through the object. Within this hole, create a stepped profil...
$fa = 1; $fs = 0.4; pcb_x=5; pcb_y=3; pcb_z=2; H_top=2; H=10+pcb_z+H_top; W=7; D=10; module screw_3mm(L) { cylinder(L, 3/2, 3/2); cylinder(0.6, 3,3); translate([0,0,0.6]) cylinder(1.5, 3, 3/2); } module pcb_holder(right=true) { difference() { cube([W,D,H]); translate([3.5,3.5...
glb/cad_460d33e609ce.glb
Create two PCB mounting corners. For each corner, start with a solid rectangular block measuring 7mm in width, 10mm in depth, and 12mm in height. From the center of the block, remove a vertical cylindrical hole with a diameter of 3mm that runs through the entire height of the object. Within this hole, create a recess...
$fa = 1; $fs = 0.4; pcb_x=3; pcb_y=5; pcb_z=2; H_top=2; H=10+pcb_z+H_top; W=7; D=10; module screw_3mm(L) { cylinder(L, 3/2, 3/2); cylinder(0.6, 3,3); translate([0,0,0.6]) cylinder(1.5, 3, 3/2); } module pcb_holder(right=true) { difference() { cube([W,D,H]); translate([3.5,3.5...
glb/cad_5f8453ff8152.glb
Create a cellphone mount for a Concept 2 rower. Start by constructing a base plate that matches the dimensions of the rower's display: 124mm wide, 21mm deep, and 18mm high, with corners rounded to a 3mm radius. Build a phone-catching bracket that sits atop this base. The bracket should be 130mm wide and 15mm deep. Cre...
$fn=32; T=1.2; socW=124; socD=21; socH=18; phW=130; phD=15; phCatch=4; phHMax=105; phHMin=60; phT=T*1.75; backT=7; space=0.3; overlap=0.1; attW=socW+T*2; attH=socH+T*2; attD=socD+T*2; rnd=3; LH=0.2; module base() { translate([0,attH/2,attD/2]) difference() { translate([0,0,0]) hull() { ...
glb/cad_74657680dc8f.glb
Create a garden sign consisting of a flat plate and a supporting stake. First, generate a flat plate by extruding the text "Iva´s Sweet White" to a thickness of 2mm. Surround this text with a border that has rounded corners with a radius of 4mm, maintaining the same 2mm thickness for the overall plate. Attached to the ...
$fn=50; text = "Iva´s Sweet White"; font = "Liberation Sans"; font_size = 12; valign = "baseline" ; halign = "center" ; corner = 4; plate_tickness = 2; stick_length = 100; stick_start_width = 10; module pflanze() { text(text=str(text), font=font, size=font_size, valign=valign, halign=halign); } color("green",...
glb/cad_6c622100ab95.glb
Create a NAS enclosure for an Odroid HC4 consisting of a main enclosure, a rear faceplate, a SATA port assembly, and two HDD caddies. The main enclosure is a hollow rectangular box with an outer width of 100.5mm and height of 100.5mm, and a depth of 134mm. The walls are 3mm thick. The enclosure features two internal g...
$fs=0.01; fan_size=40.0; fan_height=11.0; fan_screws=3.0; hc4_width=90.5+0.2; hc4_length=84+0.2; hc4_height=2.0+0.1; hdd_width=70.0+0.1; hdd_length=100.0+5.0; hdd_height=17.0; hdd_screw_metric=3+0.1; bend_radius=3; wall_thickness=3; enc_height=hc4_width+10; enc_width=wall_thickness*3+20+hc4_height+12+2*hdd_height;...
glb/cad_cd3ae6219c80.glb
Create a minimalistic thread bobbin holder by constructing a solid base and carving out slots for spools. Start by creating a base shape that is a hull encompassing two cylinders, each with a diameter of 5.275mm, positioned at x = 15.825mm and x = -15.825mm, both centered at z = 5.275mm. The total length of this base s...
d = 21.1; w = 9.3; r = 6; minW = 1.2; module spule(){ translate([0, 0, d/2]) rotate([90, 0, 0]) cylinder(w, d/2, d/2, true); cube([d/2, w, d], true); }; module spulen() for(x = [d/2, -d/2], y = [0:r+1]) translate([x, y * (w + minW) + minW + w/2]) spule(); module cylind() rotate([-90, 0, 0]) cylinder(r * (w+minW)...
glb/cad_f2856afce1a9.glb
Create a garden sign consisting of a flat plate and a tapered stake. Start by creating a plate 2mm thick. On this plate, center three lines of text using a 12mm sans-serif font. The lines should read "Iva´s Sweet White" on the top, "Cocktailtomate" in the middle, and "Herkunft: Slowenien" on the bottom, with a vertical...
$fn=50; lines = ["Herkunft: Slowenien", "Cocktailtomate", "Iva´s Sweet White"]; space_between_lines = 1.2; font = "Liberation Sans"; font_size = 12; valign = "baseline" ; halign = "center" ; corner = 4; plate_tickness = 2; stick_length = 100; stick_start_width = 10; module pflanze() { for (...
glb/cad_a237c0010e80.glb
Create a circular insert for an Airspy Mini and SpyVerter with a base diameter of 96.8mm and a height of 18mm. Start with a solid cylinder of these dimensions and subtract the following geometric voids: First, create three identical radial cutouts spaced 90 degrees apart. Each cutout is formed by the convex hull of a ...
$fn=200; pr=96.8; vy_z=18; module zaklad (){ cylinder (d=pr,h=vy_z); } module vyrezy () { hull () { cylinder (d=7, h=vy_z); translate ([0,pr/2-4,0]) cylinder (d=2, h=vy_z); } translate ([0,pr/2-7,0]) cylinder (d=8, h=vy_z); } module diry () { for (n = [0 : 2]) rotate ([0,0,n*90]) vyrezy(); hull () { ...
glb/cad_dba149e6e48a.glb
Create a piggy bank lid by combining two cylindrical sections. First, construct a base cylinder with a diameter of 36mm and a height of 4mm. Positioned directly above this is a second, slightly larger cylinder with a diameter of 38mm and a height of 2mm. Within this upper cylinder, create a central circular void with a...
translate([0,0,4]) union() { intersection() { cylinder(h=1, d1=39, d2=39); translate([-19.5,-2.5,0]) cube([39, 5,2]); } translate([0,0,-3]) cylinder(h=4, d1=36, d2=36); } translate([0,0,-1]) difference() { cylinder(h=2, d1=38, d2=38); translate([0,0,-0.5]) difference() { ...
glb/cad_92b15d885c7e.glb
Create a Power Supply Banana Jack Bracket. Start by creating a main rectangular box with outer dimensions of 124mm width, 60mm height, and 65mm depth, featuring 5mm wall thickness and rounded corners with a 5mm diameter. Hollow out the center to create a cavity of 114mm width, 50mm height, and 40mm depth. On the top s...
bracketBodyWallThickness=5; bracketBodyInnerWidth=114; bracketBodyInnerHeight=50; bracketBodyInnerDepth=40; sideScrewDepth=32; sideScrew1Height=11; sideScrew2Height=36; sideScrewHoleDia=4.5; terminalFaceInsetDepth=18; terminalWireCavityDepth=20; terminalBlockClosedHeight=24; bananaJackPairHoleCenterToCenter=18.5; ...
glb/cad_44ae07424bb6.glb
Create a LatticeCube consisting of a hexagonal base and a complex geometric lattice. Start by creating a regular hexagonal prism with a side length of 50mm and a height of 3mm. Centered atop this base, construct a lattice structure based on a 50mm cube. This lattice is formed by the intersection of three identical squa...
s=50; e=3; $fs=.5; union(){ color("slategrey") translate([0,0,s/2*sqrt(3)- 2.5]) rotate([0,atan(sqrt(2)*2)/2,0]) rotate([45,0]) intersection_for (i=[ [90,0,0], [0,90,0], [0,0,90] ]) color(i/90)rotate(i)translate([0,$preview?0.1:0])Unit(s,e); color("skyblue")linear_extrude(3,scale=.85)offset(2)circle(s,$fn=6); } modu...
glb/cad_cd22c8f8145c.glb
Create a Sonicare toothbrush button. Start by creating a main elliptical body that is 15.1mm wide and 18.75mm high, with a thickness of 8mm. This body should be shaped as a scaled circle, extruded to the specified thickness. From the center of this body, remove a cylindrical volume with a diameter of 7mm (the pin diam...
$fa = 4; $fs = 0.1; sf_xx = 20 / 26.6; bb_h = sf_xx * 26.6; bb_w = sf_xx * 24; bt_h = 18.75; bt_w = 15.1; bt_t = 8; bt_pin_d = 5; bt_pin_r = 0.5*bt_pin_d; bt_pin_s = 2; bt_pin_h = bt_t *0.5; bt_sf = bt_h / bt_w; bb_sf = bb_h / bb_w; hc_z = 3; hc_h = 5.4; hc_w = 1.5; hc_t = 13; hc_e = 1; hc_o = 7; switch_...
glb/cad_fe81de465460.glb
Create a Swing Arm Magnifying Lamp Mount consisting of a threaded mounting bolt and a matching nut. First, construct the mounting bolt. Create a threaded rod with an outer diameter of 24.4mm and a total length of 37.5mm, using a thread pitch of 3mm. At the top of this rod, add a cylindrical cap with a height of 8mm a...
include <BOSL2/std.scad> include <BOSL2/threading.scad> model="Assembled"; lampPostLength=30; lampPostDia=11.75; deskDepth=12.5; deskHoleDia=1*25.4; mountOuterDia=deskHoleDia-1; mountInnerDia=lampPostDia+0.5; mountTopCap=10; nutSize=15; threadPitch=3; screwNutGap=0.6; resolution=64; mountThreadedLength=deskDepth+nu...
glb/cad_02c916fa202b.glb
Create an adjustable furniture foot consisting of a base and a support plate. Start with a support plate that is a rounded rectangle measuring 35mm by 25mm with a height of 4mm and corner radii of 5mm. In the center of this plate, create a hexagonal hole with a diameter of 7.75mm that passes completely through the part...
module roundedRect(size, radius) { x = size[0]; y = size[1]; z = size[2]; linear_extrude(height=z) hull() { translate([(-x/2)+(radius/2), (-y/2)+(radius/2), 0]) circle(r=radius); translate([(x/2)-(radius/2), (-y/2)+(radius/2), 0]) circle(r=radius); translate([(-x/2)+(radius/2), (y/2)-(radius/2), 0])...
glb/cad_8c316ecd05ae.glb
Create a lidded box with rounded corners and walls. The main box has inner dimensions of 50mm x 30mm x 20mm with a wall thickness of 1.2mm and a corner radius of 1.5mm. The box is a hollowed-out rounded rectangular prism where the bottom and side edges are rounded. Create a matching lid that fits over the box. The lid...
latchPolygonH=3; latchTotalWidth=10; latchSide=1.5; module baseLatchPolygon(){ polygon([ [0.0, 0.0], [3.0, 0.0], [2.0, 0.6] ]); } innerDimensionsBoxPlusLid( [50,30,20], radius=1.5, clearence=0.05, wall=1.2, $fn=50 ); module hsphere(radius) union(){ translate([radius,r...
glb/cad_61982348329d.glb
Create a wall mount holder for a remote control. Start with a solid rectangular block that is 42mm wide, 24.3mm deep, and 113mm tall. Hollow out the center to create a pocket with walls 2mm thick. The internal cavity should be 40mm wide and 20.3mm deep, starting 2mm from the bottom and extending to the top, leaving the...
cliPreview = false; preview = $preview || cliPreview; $fa = preview ? 12 : 2; $fs = preview ? 2 : 0.5; remoteLength = 115; remoteWidth = 38; remoteDepth = 18.3; buttonDepth = 19; lowestButtonBaseHeight = 2 * 25.4; buttonWidth = 28.5; widthSpacingEachSide = 1; depthSpacing = 2; innerFrontLift = 2; topClearance =...
glb/cad_11a329ffe2bd.glb
Create a Wooden Train Track Clip designed to secure a track piece. Start with a rectangular base plate that is 32mm long, 42mm wide, and 2mm thick. From the two long edges of this base, extend two identical vertical walls upwards. Each wall should be 12.75mm tall and 2mm thick. The walls are not simple rectangles; th...
$fn=100; b_width=42; t_width=38; len = 32; s_len=21; height = 12.75; pinch=80; thick=2; o=1; module wall() { w=2; rotate(a=[pinch+180,0,0]) { translate(v=[0,-height, -thick]) union() { translate(v=[0,-o,0]) cube(size=[s_len, height+thick+o , thick]); bar(); } } } module bar() { t...
glb/cad_a6bc47d528d2.glb
Create a pool heater end cup by starting with a square base 57mm wide and 6mm thick. Centered on this base, build a main cylindrical body with a diameter of 42mm and a height of 30mm. On top of this cylinder, add a shorter cylindrical cap with a diameter of 40.5mm and a height of 6mm. Carve a vertical hole with a dia...
$fn=200; difference() { union() { translate([0,25.1,20.3]) rotate([90,0,0]) cylinder(h=50.2,d=5); cylinder(d=57, h=6, $fn=6); cylinder(h=30,d=42); translate([0,0,30]) cylinder(h=6,d=40.5); } translate([0,0,30]) difference() { cylinder(h=3.2,d=50); cylinder(h=...
glb/cad_fbbbdf57cbd8.glb
Create a ThermPro Mount for a drybox by starting with a rectangular base plate measuring 67mm in width, 57mm in depth, and 2mm in height. Centered on this base, construct a rectangular riser with a total height of 15mm, a width of 59mm, and a depth of 57mm. From the top of this riser, remove a central rectangular volum...
wall = 1.5; rail = 3; powerstrip_x = 22; thermpro = [56, 54, 15]; base=[2 * powerstrip_x + thermpro.x + 2 * wall, thermpro.y + 2 * wall, 2]; difference() { union() { cube(base); translate([powerstrip_x, 0, 0]) cube([thermpro.x + 2 * wall, thermpro.y + 2 * wall, thermpro.z]); } translate([po...
glb/cad_0cfbef7458f9.glb
Create a ThermPro Mount for a drybox by constructing a rectangular base plate measuring 65.2mm in width, 57mm in depth, and 3.3mm in height. In the center of this base, remove a rectangular cutout measuring 45mm by 53mm and 3.3mm deep, leaving a frame with walls of varying thickness. On the top surface of this frame, a...
wall = 1.5; rail = 3.1; thermpro = [56, 54, 15]; base=[2 * rail + thermpro.x + 4 * wall, thermpro.y + 2 * wall, 3.3]; cutout = [45, 53, base.z]; difference() { cube(base); translate([base.x / 2 - cutout.x / 2, 0, 0]) cube(cutout); } cube([base.x, 2.5, 1]); translate([0, 0, base.z]) cube([wall, thermpro.y + 2 * wa...
glb/cad_0d00c49f5d7d.glb
Create a Dodecahedron FM radio case. The main body is a regular dodecahedron with an outer diameter of approximately 160mm. The walls of the dodecahedron should be 3mm thick. To allow for the internal electronics and user interface, create a circular opening on one of the pentagonal faces with a diameter of 180mm, th...
b=sin(54)*160; a=cos(54)*160; beta=acos(-sqrt(5)/5); echo(a,b,beta); ri=a/20*sqrt(250+110*sqrt(5)); w=61; v=3; f6 =1/cos(180/6); echo(ri,ri/a); difference(){ union(){ hull(){ translate([0,0,ri])rotate(beta,[1,0,0])translate([0,0,ri])translate([0,-52,-v]) cylinder($fn=40, d=10, h=5, center=true); translate([0,0,ri])rot...
glb/cad_a75a816325fd.glb
Create a Dodecahedron FM Radio case. The main body is a regular dodecahedron with an overall diameter of 120mm. The structure is modified by integrating several geometric components. First, create a central horizontal slab 66mm wide, 3mm thick, and 7mm high. On either side of this slab, add two hull-shaped sections; ...
module mk190(){ $fn=45; color("darkgreen") translate([-33,57,1]){ difference(){ cube([66,1.6,53]); translate([3.25,7,3.25])rotate(90,[1,0,0]) cylinder(d=3.5,h=10); translate([62.75,7,3.25])rotate(90,[1,0,0]) cylinder(d=3.5,h=10); translate([3.25,7,49.75])rotate(90,[1,0,0]) cylinder(d=3.5,h=10); tra...
glb/cad_e62481f4b940.glb
Create a Replacement OXO POP Container Lid Top. Start with a square base 159.7mm wide and 16.8mm high, with corners rounded to a 35mm radius. The base is a hollow shell with walls 2.47mm thick. In the center, create a cylindrical protrusion with an outer diameter of 90.9mm and a height of 16.8mm. This cylinder feature...
W = 159.7; H = 16.8; WW = 2.47; RW = 1.2; IH = 14.6; CR = 35; CID = 86.5; CSL = 4.8; CSW = 6.6; CSEH = 2.6; CSA = 45; RIN = 3; RAS = [30,45,60]; RSS = 15; SHH = 26; SHLH = 2.2; PHD = 2.7; PHRT = 2; PHS = 16.5; TDCA = 30; TDYS = 0.4; SHHW = 58.8; SCR = 14; SSSW = 9.2; SLSW = 0; SCD = 10.4; DCW ...
glb/cad_a413ac06dbdb.glb
Create a Quilting Clamp by constructing a hollow cylindrical ring. The main body should have an outer diameter of 76.2mm and a height of 25.4mm. The wall thickness of this ring is 2.54mm, creating an inner diameter of 71.12mm. Add a thin, wider decorative or structural rim around the center of the ring's height; this...
outer_diameter = 3; thickness = 0.1; ring_width = 1; module foo() {}; $fn = 75; function in_to_mm(x) = x * 25.4; ring_outer_d = in_to_mm(outer_diameter); ring_thickness = in_to_mm(thickness); ring_height = in_to_mm(ring_width); ring_inner_d = ring_outer_d - ring_thickness; extra_ring_d = ring_outer_d +2; extra...
glb/cad_c22374cfea0d.glb
Create a Portable Monitor Vertical Stand with a total thickness of 10mm. The main body is a flat, extruded geometric plate designed to hold a laptop and a portable monitor. Construct the profile with two primary hooks: one for a laptop with a thickness of 7.5mm and one for an external monitor with a thickness of 9.7m...
laptop_thk = 9.7; monitor_thk = 7.5; laptop_angle = 112.5; module naff() { } laptop_ht = 17; laptop_ht_extra = 5; laptop_back_extra = 5; monitor_lip = 8.5; thk = 5.5; shift_bottom_angle = 13; h_extrude = 10; cable_tie_width = 16; cable_tie_height = 3.5; wall_to_slot = 3.2; bottom_width = 18.75; hole_depth = 2...
glb/cad_938f98b13f25.glb
Create a Water Bottle Lid Keeper consisting of a tapered sleeve and an attached retaining ring. Start by creating a hollow tapered cylinder for the sleeve with a height of 7mm. The inner diameter should taper from 48.51mm at the top to 48.01mm at the bottom. The wall thickness of this sleeve is 2.4mm, resulting in oute...
bottle_top_d = 48.3; bottle_bottom_d = 49; scale_factor = .99; top_inner_d = bottle_top_d * scale_factor; bottom_inner_d = bottle_bottom_d * scale_factor; neck_h = 7; thickness = .8 * 3; top_outer_d = top_inner_d + thickness; bottom_outer_d = bottom_inner_d + thickness; echo(top_outer_d); ring_width ...
glb/cad_d50f717c3c65.glb
Create a DIN Cleat with a total length of 100mm. The body is composed of three sections: a 2mm "stop" section at each end and a 96mm "main" section in the center. The main section follows a profile with a total height of 4.6mm and an outer width of 35mm. It features a central inner width of 32mm, with a lip height of...
cleat = [ ["stop", 2], ["main", 96], ["stop", 2], ]; slot_d1 = 3.0; slot_d2 = 6.0; slot_h2 = 3.0; slot_l = 10.0; slot_n = 4; slots = [slot_n, [slot_d1, slot_d2, slot_h2, slot_l]]; w_outer = 35.0; w_inner = 32.0; w_lip = 33.8; h_lip = 1.10; h_total = 4.60; t_lip = 1.0...
glb/cad_7d1765301e90.glb
Create a Spirograph toy consisting of two flat gear components, each 2mm thick. First, construct an inner gear using an involute gear profile with a module of 2 and 25 teeth. Within this inner gear, remove a central circular hole with a diameter of 2.4mm, and remove six additional circular holes, each 2.4mm in diameter...
include <./nopscadlib/utils/gears.scad>; linear_extrude(height=2) difference() { involute_gear_profile(m=2,z=25); circle(1.2); translate([8,0,0]) circle(1.2); translate([0,4,0]) circle(1.2); translate([-15,0,0]) circle(1.2); rotate(20) translate([-14,0,0]) circle(1.2...
glb/cad_7673b67d860d.glb
Create a Device Charging Fin Holder consisting of seven parallel vertical fins extending from a common base. Each fin is 60mm high and 0.8mm thick. The fins are spaced 25mm apart from center to center. The length of the fins decreases incrementally from the first to the last; the first fin is 170mm long, and each subse...
$fn=50; length=170; spacingBiggest=25; spacingSmallest=15; slotcount=6; wallTopThickness=0.8; wallBottomThickness=2; wallHeight=60; baseThickness=0.5; finSlotRounding=20; finBottomRounding=30; slotshrink = length/(slotcount+4); rotate([0,0,90*3]) { for (i=[0:1:slotcount]) { translate([0,i*spaci...
glb/cad_9386f0241d41.glb
Create a procedural mecanum wheel half and a matching roller. For the wheel body, start with a cylinder 100mm in diameter and 20mm thick. Remove a 5mm diameter hole through the center for the axle. To create the roller housings, remove 16 equally spaced slots around the perimeter. Each slot is a complex cutout consisti...
detail=30; OD = 100; thickness = 20; axle_hole = 5; num_rollers = 16; roller_length = 16; roller_curvature = 40; roller_thickness = 10; roller_clearance = 1; pin_diameter = 3; pin_head=8; pin_wall=3; pin_tire=thickness/2-5; module wheel() { difference() { cylinder(d=OD-roller_thickness*1.5, h=thickness...
glb/cad_54c4ac7cf327.glb
Create a picture frame hook consisting of a flat rectangular base and a vertical curved hook. Start with a base plate 50mm long, 14mm wide, and 3mm thick. In this base, create two symmetrical holes centered 15mm from each end along the length; each hole is formed by a 4mm diameter cylinder that transitions into a taper...
$fn=50; tl_d=3; de_d=50; si_d=14; module desk () { translate ([-de_d/2,-si_d,0]) cube([de_d,si_d,tl_d]); } module dira_sub_1 () { cylinder (d=4,h=tl_d); } module dira_sub_2 () { translate ([0,0,tl_d-2]) cylinder (d1=2,d2=7,h=2); } module dira () { hull (){ translate([-3,0,0]) dira_sub_1(); translate([3,0,0]) ...
glb/cad_b29308790d0b.glb
Create a WiFi Controlled Desk Lamp component by combining a cylinder and a rectangular prism. First, construct a cylinder with a diameter of 7mm and a height of 6mm, centered vertically at a height of 3mm. Then, add a rectangular prism measuring 15mm in length, 6.5mm in width, and 2mm in height. Position this prism so ...
translate([0,0,3]) cylinder(h = 6, d=7, center = true, $fn=30); translate([7.5,0,1]) cube([15,6.5,2],center=true);
glb/cad_5c62288bdf0c.glb
Create a circular base for a WiFi Controlled Desk Lamp with a total height of 3mm and a diameter of 80mm. The main body is a thin disc, but it features a concentric raised ring on the top surface with a diameter of 77mm and a height of 3mm. The center of this disc is hollowed out by a cylindrical hole with a diameter o...
height = 3; width = 80; module main(){ difference(){ union(){ translate([0,0,height/2]) cylinder(h = height, d = width, center = true, $fn = 160); translate([0,0,(height/2)+3]) cylinder(h = 3, d = width-3 , center = true, $fn = 160); } translate([0,0,(height/2)+3]) cylinder(h = 3, d = width-6, center = tr...
glb/cad_d04c138a2b56.glb
Create a bottle holder stabiliser consisting of a wide, thin base and a central raised cylinder. Start by creating a flat circular base with a diameter of 110mm and a height of 1mm. Centered on top of this base, add a vertical cylinder with a height of 39.5mm. This central cylinder should have a diameter of 73mm. Addit...
container_diameter = 70; foot_height = 40; foot_extension = 20; base_height = 1; filament_width = 1; preview_construct=false; cylinder(d=container_diameter + foot_extension*2, h=base_height, $fn=240); difference(){ union(){ translate([0,0,base_height/2]) cylinder(d=container_diameter + filament_w...
glb/cad_aa418a3aa09b.glb
Create a keycap puller keychain by constructing a hollow cylindrical ring with an outer radius of 11.33mm and a wall thickness of 0.8mm, extruded to a height of 10mm. The ring should be open at the top, with two arms extending upwards from the sides. Each arm is 17.5mm long and 0.8mm thick, spaced 17mm apart. At the ti...
keychain = true; height = 10; arm_length = 17.5; arm_distance = 17; hook_lenght = 1; wall = 0.8; radius = arm_distance*2/3; keychain_radius = 2.5; joint_radius = wall/2; $fn=50; inters_h = sqrt(radius^2-(arm_distance/2)^2); diff_h = sqrt((radius+joint_radius)^2-(arm_distance/2-joint_radius)^2); last_point_x = arm_dis...
glb/cad_e72ec83766e5.glb
Create a "Cinder" tyrant tray for a game organizer. Start with a base block that is 117mm wide, 68mm deep, and 20mm high, featuring rounded corners with a 5mm radius. Carve out several storage compartments from the top: - A rectangular slot for a lid starting at [2.4, 66, 17] with a profile that extends to [112.2, 21,...
$fn=200; difference(){ roundedCube5(117,68,20); translate([2.4,66,17]) rotate([90,0,0]) linear_extrude(height=82.2) polygon(points=[[0,0],[0,1],[2,3],[2,21],[110.2,21],[110.2,3],[112.2,1],[112.2,0]]); translate([4.4,25.5,1]) cube([17,17,21]); translate([12.9,14.5,1]) rotate([0,0,0]) cylinder(h=100, d=17, center=fal...
glb/cad_5dc70d136953.glb
Create a "Domina" tyrant tray for game components. Start with a base block measuring 117mm x 68mm x 20mm, using a 5mm fillet on the corners. Carve out the following internal storage features: - A rectangular slot for a lid at [2.4, 66, 17] with a profile defined by a polygon from [0,0] to [110.2, 21] and a height of ...
$fn=200; difference(){ roundedCube5(117,68,20); translate([2.4,66,17]) rotate([90,0,0]) linear_extrude(height=82.2) polygon(points=[[0,0],[0,1],[2,3],[2,21],[110.2,21],[110.2,3],[112.2,1],[112.2,0]]); translate([4.4,25.5,1]) cube([17,17,21]); translate([12.9,14.5,1]) rotate([0,0,0]) cylinder(h=100, d=17, center=fal...
glb/cad_e3365efb0fa1.glb
Create a Tyrant Tray for organizing game components. Start with a main rectangular block measuring 117mm x 68mm x 20mm, using a 5mm fillet on the corners. Carve out the following internal storage areas: 1. A rectangular slot for a lid, measuring 112.2mm x 15mm, positioned at [2.4, 66, 17]. 2. A dice storage area meas...
$fn=200; difference(){ roundedCube5(117,68,20); translate([2.4,66,17]) rotate([90,0,0]) linear_extrude(height=82.2) polygon(points=[[0,0],[0,1],[2,3],[2,21],[110.2,21],[110.2,3],[112.2,1],[112.2,0]]); translate([4.4,2,1]) roundedCube3(17,64,100); translate([-1.2,0,0]){ translate([23.8,2,14]) roundedCube3(90,64,21)...
glb/cad_c744b3b970c2.glb
Create a Tyrant Tray for organizing game components. Start with a main rectangular block measuring 117mm x 68mm x 20mm, using a 5mm fillet on the vertical edges. Carve out the following internal storage areas: 1. A rectangular slot for a lid, measuring 112.2mm x 15mm x 3mm, positioned at [2.4, 66, 17]. 2. A dice stora...
$fn=200; difference(){ roundedCube5(117,68,20); translate([2.4,66,17]) rotate([90,0,0]) linear_extrude(height=82.2) polygon(points=[[0,0],[0,1],[2,3],[2,21],[110.2,21],[110.2,3],[112.2,1],[112.2,0]]); translate([4.4,2,1]) roundedCube3(17,64,100); translate([-1.2,0,0]){ translate([23.8,2,14]) roundedCube3(90,64,21)...
glb/cad_4198a2c57227.glb
Create a Gavenkog tyrant tray by starting with a base block 117mm wide, 68mm deep, and 20mm high, with all exterior corners rounded by a 5mm radius. Carve out the following internal storage features: - A rectangular card slot 90mm wide, 64mm deep, and 21mm high, positioned with its outer edge at x=23.8mm and y=2mm. -...
$fn=200; difference(){ roundedCube5(117,68,20); translate([2.4,66,17]) rotate([90,0,0]) linear_extrude(height=82.2) polygon(points=[[0,0],[0,1],[2,3],[2,21],[110.2,21],[110.2,3],[112.2,1],[112.2,0]]); translate([4.4,25.5,1]) cube([17,17,21]); translate([12.9,14.5,1]) rotate([0,0,0]) cylinder(h=100, d=17, center=fal...
glb/cad_00f29c3bd723.glb
Create a Gendricks tyrant tray by starting with a rounded rectangular base measuring 117mm x 68mm x 20mm. Carve out several storage compartments from the top: a large rectangular card area measuring 90mm x 64mm x 21mm, and a smaller rectangular slot for a lid measuring 2mm x 21mm x 82.2mm. Add three cylindrical holes...
$fn=200; difference(){ roundedCube5(117,68,20); translate([2.4,66,17]) rotate([90,0,0]) linear_extrude(height=82.2) polygon(points=[[0,0],[0,1],[2,3],[2,21],[110.2,21],[110.2,3],[112.2,1],[112.2,0]]); translate([4.4,25.5,1]) cube([17,17,21]); translate([12.9,14.5,1]) rotate([0,0,0]) cylinder(h=100, d=17, center=fal...
glb/cad_73fb2ec883a1.glb
Create a "Goblin King" tyrant tray as a rectangular block with dimensions 117mm x 68mm x 20mm and rounded corners (5mm radius). Carve the following features into the top surface: 1. A rectangular slot for a lid measuring 82.2mm x 1mm, positioned at [2.4, 66, 17]. 2. A large rectangular compartment for dice measuring ...
$fn=200; difference(){ roundedCube5(117,68,20); translate([2.4,66,17]) rotate([90,0,0]) linear_extrude(height=82.2) polygon(points=[[0,0],[0,1],[2,3],[2,21],[110.2,21],[110.2,3],[112.2,1],[112.2,0]]); translate([4.4,2,1]) roundedCube3(17,64,100); translate([-1.2,0,0]){ translate([23.8,2,14]) roundedCube3(90,64,21)...
glb/cad_11f5de5f9ec5.glb
Create a Goblin Queen tyrant tray by starting with a rounded rectangular base measuring 117mm x 68mm x 20mm. Carve out several storage compartments from the top: a large rectangular card area measuring 90mm x 64mm x 21mm, and a smaller rectangular slot for a lid measuring 17mm x 8.6mm x 21mm positioned at the front l...
$fn=200; difference(){ roundedCube5(117,68,20); translate([2.4,66,17]) rotate([90,0,0]) linear_extrude(height=82.2) polygon(points=[[0,0],[0,1],[2,3],[2,21],[110.2,21],[110.2,3],[112.2,1],[112.2,0]]); translate([4.4,25.5,1]) cube([17,17,21]); translate([12.9,14.5,1]) rotate([0,0,0]) cylinder(h=100, d=17, center=fal...
glb/cad_b16e6459022c.glb
Create a "Kollossum" tyrant tray for a game organizer. Start with a base block that is 117mm wide, 68mm deep, and 20mm high, featuring rounded corners with a 5mm radius. Carve out several storage compartments from the top: 1. A rectangular slot for a lid, defined by a polygon with vertices at [0,0], [0,1], [2,3], [2,2...
$fn=200; difference(){ roundedCube5(117,68,20); translate([2.4,66,17]) rotate([90,0,0]) linear_extrude(height=82.2) polygon(points=[[0,0],[0,1],[2,3],[2,21],[110.2,21],[110.2,3],[112.2,1],[112.2,0]]); translate([4.4,25.5,1]) cube([17,17,21]); translate([12.9,14.5,1]) rotate([0,0,0]) cylinder(h=100, d=17, center=fal...
glb/cad_ec7017ee6bac.glb
Create a "Leech" tyrant tray for a game organizer. Start with a base block measuring 117mm x 68mm x 20mm, using a 5mm fillet on the corners. Carve out the following internal storage features: 1. A rectangular slot for a lid at [2.4, 66, 17] with a profile that narrows from 2mm to 110.2mm in length and 21mm in height. ...
$fn=200; difference(){ roundedCube5(117,68,20); translate([2.4,66,17]) rotate([90,0,0]) linear_extrude(height=82.2) polygon(points=[[0,0],[0,1],[2,3],[2,21],[110.2,21],[110.2,3],[112.2,1],[112.2,0]]); translate([4.4,25.5,1]) cube([17,17,21]); translate([12.9,14.5,1]) rotate([0,0,0]) cylinder(h=100, d=17, center=fal...
glb/cad_5145bddc86a3.glb
Create a Locgear organizer tray by starting with a rounded rectangular base measuring 117mm x 68mm x 20mm. Carve out several storage compartments from the top: a rectangular slot for a lid at [2.4, 66, 17] with a profile 110.2mm long and 21mm high, a square die compartment measuring 17mm x 17mm x 21mm positioned at [...
$fn=200; difference(){ roundedCube5(117,68,20); translate([2.4,66,17]) rotate([90,0,0]) linear_extrude(height=82.2) polygon(points=[[0,0],[0,1],[2,3],[2,21],[110.2,21],[110.2,3],[112.2,1],[112.2,0]]); translate([4.4,25.5,1]) cube([17,17,21]); translate([12.9,14.5,1]) rotate([0,0,0]) cylinder(h=100, d=17, center=fal...
glb/cad_1d4cc199dba0.glb