Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Garage Remote Replacement Case consisting of a bottom shell and a top cover. For the bottom shell, create a rounded rectangular body by forming a hull between two spheres of 22mm diameter centered 82mm apart at coordinates (-41, 0, -5) and (41, 0, -5). Flatten this shape to a height of 5mm. Remove a central ...
$fn=80; module base() { translate([39,0,-3]) cube([4,21,4],center=true); translate([-14,0,-3]) cube([2,3,4],center=true); difference() { hull() { translate([-41,0,-5]) cylinder(d=22,h=5); translate([41,0,-5]) cylinder(d=22,h=5); } translate([0,0,0]) cube([81.5,20,8],center=true); translate([-44,0,-...
glb/cad_3b5e000a120a.glb
Create a cable clip for an IKEA Kallax shelf. The main body is a cylindrical sleeve with a height of 10mm and an outer diameter of 12mm. This sleeve has a concentric inner hole with a diameter of 7mm that runs through its entire height. Extending from the sides of this cylinder are two flat, parallel arms, each 30mm ...
height=10; length=30; thickness=2.5; diameter=7; $fn=50; rotate([0,0,-7]) translate([-length+0.5,-8.5-thickness,0]) cube([length,thickness,height]); rotate([0,0,7]) translate([-length+0.5,8.5,0]) cube([length,thickness,height]); difference() { difference() { hull() { translate([diameter/2,0,0]) cylind...
glb/cad_05e676b5a7aa.glb
Create an ergonomic grip for a needle collet. The main body is a tapered cylinder 80mm tall, starting with a base diameter of 4.5mm and widening to a top diameter of 9mm. At the top of this body, add a heptagonal cap 25mm tall with a diameter of 11mm. Below this cap, add a 5mm tall heptagonal transition section that ta...
bore = 5.4; $fn=100; module grip() { difference() { union() { cylinder(h=80,d2=9,d1=4.5); translate([0,0,79.9]) cylinder(h=25,d=11,$fn=7); translate([0,0,104.9]) cylinder(h=5,d1=11,d2=6.5,$fn=7); translate([0,0,74.9]) cylinder(h=5,d1=9,d2=11,$fn=7); hull() { cylinder(h=2,d=8,$fn=7); ...
glb/cad_5b939778783c.glb
Create an ergonomic grip for a needle collet. Start by constructing a main body that consists of a conical section 80mm tall, tapering from a base diameter of 4mm up to a top diameter of 9mm. At the top of this cone, add a 7-sided polygonal prism 25mm tall with a diameter of 11mm. Below this prism, add another 7-sided ...
bore = 5.2; $fn=100; module grip() { difference() { union() { cylinder(h=80,d2=9,d1=4); translate([0,0,79.9]) cylinder(h=25,d=11,$fn=7); translate([0,0,104.9]) cylinder(h=5,d1=11,d2=6.5,$fn=7); translate([0,0,74.9]) cylinder(h=5,d1=9,d2=11,$fn=7); translate([0,0,1]) sphere(d=8); } transl...
glb/cad_88e3b269a5ca.glb
Create a customizable shop vac hose adapter. Start by constructing a hollow cylindrical base with an inner diameter of 29mm and an outer diameter of 34.5mm, extending to a height of 25mm. On top of this base, add a second hollow cylinder with an inner diameter of 33mm and a height of 30mm. To transition between these t...
HID = 33; HWL = 4; RID = 35; $fn=80; difference() { union() { translate([0,0,0]) cylinder(h = 25, d2 = RID+0.5, d1 = RID-0.5); translate([0,0,25]) cylinder(h = 30, d = HID); translate([0,0,25]) cylinder(h = 5, d2 = HID+2*HWL, d1 = RID+0.5); } translate([0,0,-1]) cylinder(h = 82, d = RID-6); }
glb/cad_2fed2edb66cd.glb
Create two identical glass bed clips. Each clip is a rectangular block measuring 10mm wide, 12mm high, and 151.5mm deep. For each clip, carve a vertical hole through the center of the block with a diameter of 4.5mm to accommodate an M4 threaded rod. At the top of the block, create a hexagonal recessed pocket to house...
bh = 3; bbh = 1.5; bd = 140; bo = 7; bbd = 160; bw = 130; bbw = 125; $fn = 60; module fillet(r, h) { translate([r / 2, r / 2, 0]) difference() { cube([r + 0.01, r + 0.01, h], center = true); translate([r/2, r/2, 0]) cylinder(r = r, h = h + 1, center = true); ...
glb/cad_a77bbd2f56fa.glb
Create four glass bed clips for a 3D printer. Each clip is a rectangular block measuring 10mm wide, 160mm deep, and 1.5mm high. From the center of the block's depth, remove a vertical cylindrical hole with a diameter of 4.5mm that passes completely through the part to accommodate an M4 threaded rod. Depending on th...
bh = 3; bbh = 1.5; bd = 140; bo = 7; bbd = 160; bw = 130; bbw = 125; $fn = 60; module fillet(r, h) { translate([r / 2, r / 2, 0]) difference() { cube([r + 0.01, r + 0.01, h], center = true); translate([r/2, r/2, 0]) cylinder(r = r, h = h + 1, center = true); ...
glb/cad_fc2d90ec28d2.glb
Create a Robust and Reliable Extruder Visualizer consisting of a central sleeve and four radiating fins. Start by creating a central vertical cylinder with an outer diameter of 11.34mm and an inner hole of 8mm, extending to a total height of 6mm. Around this central sleeve, add a flat circular base with a diameter of 1...
outer_diameter = 45; inner_diameter = 8; horizontal_wall_thickness = 2; vertical_wall_thickness = 1.67; sleeve_height = 4; sleeve_diameter = inner_diameter + 2 * vertical_wall_thickness; fudge = 1; $fn = 64; linear_extrude(horizontal_wall_thickness) { circle(d = sleeve_diameter); for(i = [0, 90, 180, 270]) ro...
glb/cad_2882f4d37be1.glb
Create a Dual Ball-Joint Mount consisting of two symmetrical clamping arms and a tightening knob. For each clamping arm, create a block that features a hemispherical socket on each end to accommodate balls of 17mm and 20mm diameters. The sockets should be slightly oversized by 0.15mm for clearance. The arms are joine...
use <octsphere.scad> display = "print"; ball1_dia = 17; ball2_dia = 20; bolt_dia = 6; ball_spacing = 0; gap_pct = 15; handle_offset = 5; boltclearance = 0.21; ballclearance = 0.15; end_sweep = 100; long_sweep = 100; module dummy(){} overhang = 45; boltheadsize = let(c3=cos(30)) [ [ 4, 7/c3, 2.9 ], ...
glb/cad_cf97c5dcea9f.glb
Create a Modular Customizable Thread Spool Organizer consisting of a base plate and removable pegs. Construct the base as a 155.2mm square plate with a thickness of 2mm. The base features a perimeter frame with rounded corners (12mm radius) and a hollowed-out inner section. Divide the interior into a 4x4 grid using a...
complete_base(); n_sp_x = 4; n_sp_y = 4; sp_dia = 37; sp_dist = 1.8; sp_h = 60; peg_socket_clearance = 0.2; f_thick = 2; f_w = 12; f_r = 12; ss_spc = sp_dia+sp_dist; st_w = 4; h_x = 3.2; h_y = 6.2; s_r2 = (h_y+2)/2; s_r1 = s_r2*2; s_h = f_thick; sp_clearance = 0.2; sp_z = h_x - peg_socket_clearance; sp_x = h...
glb/cad_0078724163aa.glb
Create a vacuum hose adapter consisting of two concentric cylindrical ends connected by a central reducing cone. The entire object has a uniform wall thickness of 2mm. The small end is a hollow cylinder with an outer diameter of 34.29mm (based on a 1.25-inch outer diameter plus wall thickness) and a length of 38.1mm. ...
wall_Thickness_unit_of_measure=1; wall_Thickness = 2; End_A_Diameter_location_of_measure=1; End_A_Diameter_unit_of_measure=25.4; End_A_Diameter = 1.25; _=false; End_A_Length_unit_of_measure=25.4; End_A_Length = 1.5; amount_of_taper_on_End_A = 2; End_B_Diameter_location_of_measure=0; End_B_Diameter_unit_of_measu...
glb/cad_b6438e5314e5.glb
Create a Maktec L1853 battery adapter starting with a solid rectangular block measuring 75mm in width, 73mm in depth, and 18.5mm in height. Hollow out the center by removing a rectangular volume of 62mm by 67mm by 7mm, positioned 3mm from the front and 3mm from the side. Remove a second rectangular section measuring 62...
module maktecL1853(){ difference(){ cube([75,73,18.5]); translate([3,3,3])cube([62,67,7]); translate([3,7,9.5])cube([62,59,10]); translate([56,16,0])cube([12,40,3]); translate([50,3,9])rotate([0,0,0])cube([40,67,20]); translate([57,0,19])rotate([0,70,0])cube([17,73,20]); ...
glb/cad_15e642ef2384.glb
Create a Niko frontplate adapter plate by starting with a rectangular base measuring 18mm wide, 29mm long, and 2mm thick, centered on the origin. From this base, remove a central slot that is 8mm wide, 86mm long, and 5mm deep, centered on the origin. Additionally, create two circular holes, each with a diameter of 2.6m...
$fn=100; difference() { cube([18, 29,2],center=true); intersection() { cylinder(20, d=10,center=true); cube([8, 86,5],center=true); } translate([0,21/2,0]) cylinder(20, d=2.6,center=true); translate([0,-21/2,0]) cylinder(20, d=2.6,center=true); }
glb/cad_eac8c6bd1024.glb
Create a portafilter funnel with a conical shape and a flat base rim. The interior bottom opening must have a diameter of 45.1mm. The walls of the funnel should taper outwards to a top outer diameter of 75mm, reaching a total outer height of 20mm. The wall thickness at the top rim is 1.2mm, while the thickness of the s...
FunnelInnerDiameter_bot = 45.1; FunnelThickness_in = 0.7; FunnelOuterDiameter_bot = FunnelInnerDiameter_bot + FunnelThickness_in * 2; FunnelOuterDiameter_top = 75; FunnelHeight_out = 20; FunnelHeight_in = 0.8; FunnelThickness_rim = 4; FunnelThickness_top = 1.2; rimChamferLength = 0.5; $fa = 1; RimHeight = FunnelHeigh...
glb/cad_dddbfdb0a8a6.glb
Create a 15cm ruler by starting with a rectangular base measuring 162mm in length, 16mm in width, and 2mm in thickness. Along the top edge of the ruler, add a series of rectangular notches that are 0.4mm wide and 1mm deep. These notches should be placed every 2.5mm across the 150mm measuring span. Vary the height of ...
padding_factor = 0.001; ruler_width = 150; ruler_width_margin = 12; ruler_height = 16; ruler_depth = 2; ruler_dims = [ ruler_width + ruler_width_margin, ruler_height, ruler_depth ]; notch_width = 0.4; notch_width_top = 0.5; notch_height = 6; notch_height_top = 2; notch_depth = 1; notch_dims = [ notc...
glb/cad_513ad533f8c5.glb
Create a SeeStar Wall Mount designed as a hollowed-out wedge. Start with a solid trapezoidal prism that is 55mm wide, 138mm deep, and 188mm tall. The profile of this prism should taper from a width of 38mm at the base to 33mm at the top. Hollow out the center of this shape by removing a smaller prism measuring 45mm wi...
$fs = 0.1; $fa = 5; H=55; R=0.5; B=38; S=33; L=5; include <BOSL2/std.scad> union() { difference() { prism(55, 138, 188); translate([8,5,8]) prism(55-5-5, 140, 200); translate([-1,-1,180]) cube([32,62,32]); translate([135,-1,-1]) cube([32,62,32]); tra...
glb/cad_6632306543ed.glb
Create a 90-degree mounting bracket with a total side length of 65mm, a width of 20mm, and a thickness of 4mm. The bracket consists of two perpendicular rectangular arms meeting at a right angle, with rounded corners having a radius of 1.5mm. On the flat surfaces of both arms, center a circular hole with a radius of 4...
include <MCAD/boxes.scad> Sides_Length=65; Width=20; Thickness=4; Hole_Radius=4; Corner_Radius=1.5; difference() { union() { translate([(Sides_Length/2)-(Thickness/2),0,0]) { roundedBox([Sides_Length,Width,Thickness],Corner_Radius,true); } translate([0,0,(Sides_Length/2)-(Thickness/2)]) { rotat...
glb/cad_e356d63b6c5b.glb
Create a pillared lamp with shade by constructing a hollow cylinder with an outer diameter of 150mm and a total height of approximately 242.7mm. The walls of this cylinder should be 1.8mm thick, leaving an inner diameter of 146.4mm. The bottom of the lamp must be closed with a solid base that is 1mm thick. Centered wit...
$fn=320; shade_inner_diameter = 150; holder_diameter = 28; outer_height = shade_inner_diameter * 1.618; height = 1; padding = 0.6 * 3; difference() { cylinder(outer_height, d=shade_inner_diameter); translate([0,0,height]) cylinder(outer_height - height,d=shade_inner_diameter - padding); cylinder(height, d=...
glb/cad_fb4aa5a00621.glb
Create a pillared lamp base by starting with a main outer cylinder 188mm in diameter and 100mm tall. Hollow out the center of this cylinder with a concentric hole 178mm in diameter, leaving a 5mm thick wall, but stop the hole 10mm from the bottom to create a solid base floor. In the center of the top surface, add a sma...
$fn=320; padding = 10; inner_diameter = 178; diameter = inner_diameter + padding; height = 100; pillars_height = 120; pillar_diameter = 10; enable_pillars_slope = 0; module pillar(x, y, rot) { translate([x, y, 0]) { rotate([0, 0, rot]) { difference() { cylinder(pillars_height, ...
glb/cad_82ef9a933d8a.glb
Create a bed leveling oscillator tool consisting of three distinct geometric components. First, create a small rectangular block measuring 9mm by 7mm by 4mm. Subtract a cylinder with a radius of 1.7mm from the center of the top face and a cylinder with a radius of 1mm from the side, centered at a height of 2mm and ex...
klucz="na_os"; klucz="docisk_etui"; klucz="platforma"; klucz="obudowa"; klucz="docisk_silnika"; if(klucz=="na_os") difference(){ translate([0,0,0])cube([9,7,4]); color("blue")translate([5.5,3.5,0])cylinder($fn=40,h=4,r=1.7); color("green")translate([2,0,2])rotate([-90,0,0])cylinder($fn=40,h=7,r=1); } if(klucz=="docisk_...
glb/cad_b0a170d00710.glb
Create a rounded hole object by revolving a specific 2D profile around a central axis. The profile is defined by a rectangle with a width of 7mm (5mm radius plus a 2mm corner radius) and a height of 10mm. Round the corners of this profile using a radius of 2mm. Specifically, the top outer corner must be rounded, and th...
hole_rounded(); module hole_rounded(r=5,h=10,rc=2,rfn=16, rcfn=8 , round_bottom=true, round_top=true) { rotate_extrude($fn=rfn) { difference() { if(round_bottom == true) { translate([0,-0.01]) square([r+rc,h+0.02]); }else { square([r+rc,h+0.01]); } hull() { if(round_bottom == true) { trans...
glb/cad_0a2ee82812e1.glb
Create a rounded cylinder with a radius of 5mm and a total height of 10mm. The object should be constructed by forming a hull around two circular profiles. The top and bottom edges must be rounded with a corner radius of 2mm. To achieve the specific faceted appearance, use a 16-sided polygon for the main vertical extru...
cylinder_rounded(); module cylinder_rounded(r=5,h=10,rc=2,rfn=16, rcfn=8 , round_bottom=true) { assert(h>=2*rc); assert(r>=rc); hull() { rotate_extrude($fn=rfn){ if(round_bottom == true) { translate([r-rc, rc]) circle(r=rc,$fn=rcfn); } else { translate([r-2*rc, 0]) square(2*rc,2*rc); ...
glb/cad_192887e6c5e8.glb
Create a rounded cube with overall dimensions of 1mm x 1mm x 1mm. The shape should be constructed by forming a convex hull around eight spheres, each with a radius of 0.3mm. Position four of these spheres at the corners of the base plane at coordinates (0.3, 0.3, 0.3), (0.3, 0.7, 0.3), (0.7, 0.3, 0.3), and (0.7, 0.7, 0...
cube_round(); module cube_round(dim=[1,1,1],r=0.3, fn = 16, round_top = true) { assert(dim[0]>=2*r); assert(dim[1]>=2*r); assert(dim[2]>=2*r); echo ("round cube",dim,r,fn); hull() { translate([r,r,r]) sphere(r=r, $fn=fn); translate([r,dim[1]-r,r]) sphere(r=r, $fn=fn)...
glb/cad_ed8dc9586b20.glb
Create a rugged case consisting of a bottom box and a top lid. The overall external dimensions are 75mm in length, 95mm in width, and 45mm in height. Both sections should have a shell thickness of 3mm and rounded corners with a 4mm fillet radius. For the bottom section, create a hollow rectangular container with a hei...
$fn = 64; outSideLength = 75; outSideWidth = 95; outSideHeight = 45; shellThickness = 3; ribThickness = 10; filletRadius = 4; showExample = true; showExampleCombined = false; heiBottom = 0.7 * outSideHeight; heiTop = outSideHeight - heiBottom; if(showExample){ color([0.5,0.5,1]) translate([0,outSi...
glb/cad_07e0e13c70e7.glb
Create a Workmate Pipe Clamp designed to hold a pipe with a 75mm outer diameter. Start by creating a main outer cylinder with a diameter of 85mm and a height of 25mm. Subtract a concentric inner cylinder with a diameter of 75mm and a height of 27mm to create a hollow ring with a wall thickness of 5mm. Add a rectangula...
resolution = 50; $fn = resolution; pipe_od = 75; clamp_width = 25; clamp_thickness = 5; clamp_gap = 5; clamp_face = 15; r = clamp_thickness; i = (pipe_od/2); a = i - r; h = i + (2 * r); o = sin(acos(a/h))*h; w = clamp_width; f = clamp_face; g = clamp_gap; s = pipe_od+(r*2); difference() { union() { ...
glb/cad_b3897b543c81.glb
Create a perlator key for Børma taps by constructing a hollowed-out composite tool. Start with a central vertical hole 14.4mm in diameter that runs through the entire height of the object. Around this hole, build a main body consisting of three joined sections. The top section is a cylinder 17.1mm in diameter and 10mm ...
offset=0.4; difference() { union() { cylinder(d=17.5-offset,h=10,center=true); cube([19.5-offset,2.0-offset,10],center=true); translate([0,0,-15]) cylinder(d=20,h=10,$fn=6); } cylinder(d=14+offset,h=100,center=true); }
glb/cad_c7f2df09267a.glb
Create a Torx-Schraubendreher Manager, a tool organizer designed to hold eleven screwdrivers. Start by constructing a main outer frame with a base measuring 200mm by 130mm and a height of 4.5mm. Add two vertical walls, each 6mm thick, rising to a height of 150mm: one along the X-axis at the front and one along the back...
$fn = 60; wall = 4.5; wall2 = 6; sizeX = 200; sizeY = 130; sizeB = 110; sizeZ = 150; b_with_tool = true; b_with_holes = false; dimens = [ [00, 0, 0, 0, 0, "---", 0, 0, 0], [01, 21, 5, 80, 70, "T06", 26, 0, 3], [02, 21, 5, 80, 70, "T07", 26, 0, 3], ...
glb/cad_bbcb93e5a121.glb
Create a shopping cart key with a total thickness of 2.2mm. Start with a main circular body that has a diameter of 25.75mm. From this circle, remove a smaller circular cutout with a diameter of 15.45mm centered at x=15.45mm and y=6.15mm, and another identical cutout centered at x=15.45mm and y=-6.15mm. Additionally, re...
$fn=50; L_handle=25; D_Keyhole = 5; ShoppingCartKey(25.75, 2.20, ""); module ShoppingCartKey (d,t,text) { D_coin = d; Thickness = t; D_coinholes = D_coin/5*3; T_coinholesX = D_coin/5*1.5; T_coinholesY = D_coin/5*2; difference() { linear_extrude(height = Thickness ) union()...
glb/cad_d2871894f7d8.glb
Create a Modulex Drawer Adapter plate. Start with a rectangular base measuring 464mm in width and 225mm in depth, with a total height of 8mm. The plate features a wall thickness of 1mm around the perimeter. Hollow out the center of the plate to create a tray, leaving a bottom base thickness of 1.7mm to 2.5mm. From the...
generateLeft = true; generateRight = false; adapterSideWallThickness = 1.0; adapterHeight = 8.0; borderWidth = 10; expandThumbRecessByX = 5; expandContainerBy = 2; oldOutsideWidth = 459; newOutsideWidth = 462; oldOutsideDepth = 223; topBottomThickness = 3.3; thumbPocketNewFromOutsideEdgeStart = 104; thumbPocketNewFro...
glb/cad_c8b9ed57f5ff.glb
Create a Tom Thumb typewriter ribbon spool consisting of two parallel outer discs connected by a central hub. Each outer disc is a thin cylinder with a diameter of 1.518 inches and a thickness of 0.027 inches. Each disc features a central hole with a diameter of 0.187 inches, surrounded by four smaller holes with diame...
addTabs = true; outerDiameter = 1.518; overallThickness = 0.590; centerHoleDiameter = 0.187; metalThickness = 0.027; spoolCenterWidth = 0.556; spoolCenterRounding = 0.040; distanceFromSpoolToPointFlats = 0.427; pointHeight = 0.114; pointWidth = 0.114; spoolHubCrossHoleDiameter = 0.179; fourHolesDiameter = 0.140; fourH...
glb/cad_c7524fa0f32d.glb
Create a Modulex-Compatible Drawer bin as a hollow rectangular box. The outer dimensions of the bin should be 205mm in width and 205mm in length, with a total height of 48.9mm. The walls and the base of the bin must have a uniform thickness of 0.6mm. To achieve this, start with a solid cube of 205mm by 205mm by 48.9mm ...
drawerOutsideSize = 215; drawerInsideHeight = 49.5; drawerWallThickness = 5; lidMaxThickness = 0.6; spaceBetweenBins = 1; divideWidthBy = 2; divideLengthBy = 2; wallThickness = 0.6; function BinSize(baseSize, divideBy) = let (totalUsedInDividers = (divideBy - 1) * spaceBetweenBins) (baseSize - totalUsedInDivi...
glb/cad_ba36a39e5082.glb
Create a Modulex-Compatible Drawer lid. Start with a central square plate measuring 203mm by 203mm with a thickness of 0.6mm. At the center of the front edge of this square, create a circular finger hole with a diameter of 25mm. Extend four identical tabs from each side of the central square. Each tab should be 40mm l...
insideSize = 203; tabLength = 40; tabRoundingRadius = 15; bringTabInBy = 7; maxThickness = 0.6; minThickness = 0.3; fingerHoleDiameter = 25; fingerHoleOffset = 5; module Center() { difference() { translate([-insideSize / 2, -insideSize / 2, 0]) cube([insideSize, insideSize, maxThickness]); tran...
glb/cad_952945051f93.glb
Create a Modulex-Compatible Drawer housing. Start with a main rectangular block measuring 462mm wide, 225.5mm deep, and 60mm high. Carve out two symmetrical drawer pockets from the center. Each pocket should be 218mm deep and have a height of 53.4mm (leaving a 3.3mm wall thickness at the top and bottom). Separate the...
generateHousing = true; generateStripeFoot = false; generateRoundFoot = false; baseDrawerStyle = "new"; addFeltToBottom = true; addFeltToTop = true; addFeltToSides = true; onlyGenerateOneSide = true; oldOutsideWidth = 459; newOutsideWidth = 462; outsideWidth = (baseDrawerStyle != "old" ? newOutsideWidth : oldOutsideW...
glb/cad_bd096790efab.glb
Create a Logo Button by starting with a main cylindrical disc 16mm in diameter and 1.5mm thick. Add a rounded rim around the top edge by attaching a torus with a cross-sectional radius of 1mm, centered on the disc's perimeter. To create the sewing holes, place four 2mm diameter vertical holes passing through the entire...
LOGO="p100.png"; BD=16; HD=2; HC=6; NH=4; T=1.5; BR=1; SCALE=.8; X=0; Y=0; $fn=40; button(); module button(){ difference(){ union(){ buttonBlank(); color("red")buttonImage(); } buttonHoles(); } } module buttonImage(){ difference(){ translate([X,Y,T+BR-(BR*0.025)]){ resize([(BD-BR-BR)*SCALE,(BD-BR...
glb/cad_c493e336c313.glb
Create a wall mount for a Noco Boost X GBX45. Start by constructing a backplate that is 83mm high, 181mm long, and 3mm thick, with all four corners rounded to a 10mm radius. Position three 7mm diameter screw holes through this backplate: one centered at the top, one in the middle, and one 20mm from the bottom. Attache...
$fn=200; radius = 10; cornerRadius = 10; backWidth = 3; backLength = 181; backHeight = 83; intWidth = 54; intLength= backLength; intHeight= 36.2; screwSize = 7; difference() { translate([0, 10, backHeight-10]){ rotate([90,180,270]){ roundedBox(backHeight, backLength+4, backWidth, cornerRadius)...
glb/cad_6183ec9a3381.glb
Create a Nixie clock case in a railway dwarf signal style consisting of a main body, a front face, a seal, and a base. For the main body, create a rounded rectangular box with outer dimensions of 166mm x 116mm x 30mm (using an 8mm fillet radius). Hollow out the center to create a cavity of 154mm x 104mm x 20mm with a ...
$fn=60; color("LightGrey"){ translate([0,20,-2.2]){ difference(){ minkowski(){ cube([150,100,26],center=true); cylinder(r=8); } translate([0,0,10.1])minkowski(){ cube([150,100,6],center=true); cylinder(r=5.5); } translate([0,0,0])minkowski(){ cub...
glb/cad_7d92958e6d06.glb
Create a dummy 18650 cell adapter by starting with a central cylinder that has a diameter of 18mm and a height of 67mm. The cylinder should have rounded edges with a radius of 1mm. Carve a rectangular slot through the center of the cylinder, measuring 8mm wide, 20mm deep, and 60mm high, to create a hollowed-out channel...
$fn=90; difference(){ minkowski(){ cylinder(d=16, h=65, center=true); rotate([90,0,0])cylinder(r=1); } cube([8,20,60],center=true); cylinder(d=2, h=70, center=true); translate([0,-11,0])cube([20,5,70], center=true); translate([0,10,0])cube([20,5,70], center=true); }
glb/cad_0208166490b6.glb
Create a button battery plate by starting with a solid rectangular base measuring 110mm in width, approximately 55mm in depth, and 12mm in height. Carve out a series of linear rows of cylindrical holes to store different battery sizes. Each row should be labeled with the battery type in embossed text at the start of th...
batteries=[ ["LR44",11.6,5.4], ["LR44",11.6,5.4], ["LR1130",11.6,3.1], ["CR1620",16,2], ["CR2025",20,2.5], ["CR2032",20,3.2], ["CR2450",24.5,5], ["CR2450",24.5,5], ]; width=110; space = 7; wall = 1; function thickness(b) = .4 + b[2] ; function diameter(b) = .4 + b[1] ; function height(i) = batteries[i][1] + space ...
glb/cad_da7e1e61f5d8.glb
Create a button battery plate organizer with a total width of 114mm. The base is a solid rectangular block with a height of 20mm. Carve out two distinct rows of rectangular compartments from the top surface. The first row is designed for 9V batteries: create a series of rectangular holes each measuring 18.5mm wide, 2...
batteries=[ ["9V",[18,26,20],[18.5,26.5]], ["1S3.7",[6.5,12.5,20],[7.5,13]] ]; width=114; space = 7; function height(i) = batteries[i][1][1] + space + ( i>0 ? height(i-1) : 0 ); function maxsize(i) = max(batteries[i][1][2], (i>0 ? maxsize(i-1) : 0)); module row(battery) { translate([0,space-battery[2][1]+batte...
glb/cad_1df71fac7119.glb
Create an SMD box with dispenser consisting of a main storage body and a dispensing mechanism. The storage body is a cube with a wall thickness of 1mm. Inside this cube, create a cylindrical void with a diameter equal to the box's inner width, leaving a 1mm wall around the perimeter. Cut a rectangular slot through the ...
boxes=[ ["220",8,6,50,5], ["1K",8,6,50,5], ["3K3",8,6,50,5], ["49K9",8,6,50,5], ["100K",8,6,50,5], ["diode",8,6,50,5], ["NFET",8,6,50,5], ["10µF",8,6,50,5], ["4K7",8,6,50,5], ["NPN",8,6,50,5], ["1117",12,6,50,5], ["470µF",12,6,50,4], ["150µF",12,6,50,4], ["µUSB",1...
glb/cad_5993e2210538.glb
Create a front fender for an LGOC B340 Double Deck Bus. Start by creating a curved plate with a thickness of 8mm. The main body of the fender is based on a circular ring with an outer diameter of 32mm and an inner diameter of 30.4mm. From this ring, remove two rectangular sections to create an opening: one rectangle ...
$fn=120; FrontFender(); module FrontFender(){ scale([.7,.7,.7]) linear_extrude(8) translate([40,10,0]) union(){ difference(){ circle(d=32); circle(d=30.4); translate([-20,-20,0]) square([40,20]); translate([-20,0,0]) square([20,20]); } translate([15....
glb/cad_efb758ae3bfe.glb
Create a 3D model of an LGOC B340 Double Deck Bus lower body. Start by creating a main rectangular base measuring 100mm in length, 40mm in width, and 2mm in height. Along the length of this base, remove a series of 0.5mm diameter cylindrical holes spaced every 4mm, starting from the 4mm mark and ending at 38mm. Constr...
$fn=120; LwrBench(); module RearOverhang(){ hull(){ cube([1,30,2]); translate([8.5,1.5,0]) cylinder(h=2,d=3); translate([8.5,28.5,0]) cylinder(h=2,d=3); } translate([2,4,-4]) cylinder(h=4,d=8,$fn=3); } module AngledFront(){ difference(){ translate([0,-3,0...
glb/cad_1b2c012370da.glb
Create a wheel for an LGOC B340 Double Deck Bus. Start with a central hub consisting of a cylinder 5mm in diameter and 5mm in height, topped with a sphere 3.5mm in diameter centered at a height of 5mm. Surround this hub with a rim created by a cylinder 18mm in diameter and 3mm in height, with a concentric inner hole 15...
$fn=120; FrontWheel(); module RearWheel(){ rotate([90,0,0]) difference(){ union(){ difference(){ cylinder(h=6,d=21); translate([0,0,-1]) cylinder(h=8,d=18); } difference(){ cylinder(h=3,d=12); translate([0,0,-1]) cylinder(h=8,d=10); } cylinder(h=6,d=5); t...
glb/cad_45e6cb4489f1.glb
Create a spiral staircase for an LGOC B340 Double Deck Bus model. Start by creating a central support cylinder with a diameter of 10mm and a height of 70mm, positioned from z = -10mm to z = 60mm. Around this central pillar, construct a series of seven steps. Each step unit consists of a rectangular platform 8mm wide ...
$fn=120; StairCase(); module Step(){ difference(){ Stair=0; translate([0,0,Stair*7]) rotate(Stair*13, [0, 0, 1]) translate([-8,0,0]) union(){ cube([8,30,1]); translate([6,0,-7.5]) cube([.8,30,8]); translate([2,10,-7]) cube([4,1,7]); } translate([-2.5,0,.4]) ...
glb/cad_5e486dfe2d03.glb
Create a 3D model of an engine cover and radiator for an LGOC B340 Double Deck Bus. Start by constructing the engine cover: create a base shape by extruding a 2D profile 20mm along the Z-axis. This profile consists of a central rectangle 18mm wide and 15mm high, flanked by two 2mm wide vertical bars, with two 2mm diame...
$fn=120; EngineCover(); translate([-3,0,-2]) Radiator(); module EngineCover(){ rotate([90,0,90]) linear_extrude(20) union(){ translate([1,15,0]) circle(d=2); translate([19,15,0]) circle(d=2); translate([1,14,0]) square([18,2]); square([2,15]); translate([18,0,0]) squar...
glb/cad_632df9db279d.glb
Create a steering wheel for an LGOC B340 Double Deck Bus. Start by creating a central cylindrical hub with a diameter of 6mm and a height of 1mm. From the center of this hub, extend a vertical steering column cylinder with a diameter of 1.4mm and a height of 15mm. Construct the outer rim of the wheel by creating a tor...
$fn=120; scale([.8,.8,.8]) SteeringWheel(); module SteeringMount(){ difference(){ cube([10,5,2], center=true); translate([0,0,-3]) cylinder(h=8,d=1.4); } } module SteeringWheel(){ difference(){ union(){ rotate_extrude(angle=360) translate([7,0,0]) circle(d=1.6); ...
glb/cad_5c9795cf19f1.glb
Create a case for a Raspberry Pi Pico and a stepper motor driver. Start with a rectangular base floor 1mm thick with rounded corners of 3mm radius. Build walls 11.5mm high with a thickness of 1.5mm, also featuring 3mm rounded corners. On one side of the wall, create a rectangular cutout for the USB port. Inside the ca...
pico_length = 51; pico_width = 21; pico_thickness = 1; pico_usb_width = 8; pico_usb_overhang = 1.3; pico_usb_length = 5.7; pico_usb_height = 2.5; pico_pin_hole_diameter = 1; pico_pin_hole_separation = 2.54; pico_side_to_pin_hole = 1.61; pico_end_to_pin_hole = (pico_length - 48.26)/2; pico_mount_hole_diameter = 2.1; pic...
glb/cad_963fbe7956bf.glb
Create a Flatwire stand by constructing two primary U-shaped components. First, create a hollowed-out rectangular sleeve rotated 45 degrees. The outer dimensions of this sleeve should be 44mm wide, 50mm high, and 50mm deep, with a wall thickness of 2mm. The interior should be hollowed out to leave a 40mm wide internal ...
width = 40; maxdiameter = 100; thickness = 2; wirethickness = 5/sin(45); length=sqrt(2*(maxdiameter/2*maxdiameter/2)); rotate([45]) { difference() { cube([width + 2*thickness, maxdiameter/2, maxdiameter/2]); translate([thickness,thickness,thickness]) cube([width, maxdiameter/2, maxdiameter/2]); translat...
glb/cad_88903ead4967.glb
Create a peg-shaped hanger by constructing a symmetrical body based on a mirrored profile. Start with a primary block 150mm long, 20mm wide, and 40mm high. From this block, remove a central section to create a void, and carve out a large cylinder with a 56mm diameter centered at the 20mm mark along the length. At the...
$fn=$preview ? 16 : 128; w = 40; module vyrez() { translate([20,-15,-1]) cylinder(h=w+2, d=56); } module halfbody() { difference() { cube([150,20,w]); translate([12,-15,-1]) rotate([0,0,57]) cube([20,50,w+2]); translate([35,0,0]) vyrez(); translate([90,-18,-1]) rotate([0,0,13]) cube([200,20,w+2]...
glb/cad_f683fefe8a39.glb
Create a jumper wire stand consisting of a rectangular base and two vertical walls. The base is a flat plate measuring 202.5mm in length, 50mm in width, and 2.5mm in height. Two vertical sidewalls, each 2.5mm thick and 200mm tall, are positioned at the ends of the base. Along the top edge of the stand, create a row of...
wire=1.7; connector=2.5; height=200; capacity = 20; count=30; distance = 5; peggheight = 4; wall = 2.5; backside= height*4/6+wall; backhole=backside/2; bottom=max(100,(capacity * connector)); $fn = 16; module pegg() { diameter=connector+.9; cube([distance/2, capacity * connector, peggheight]); trans...
glb/cad_d66fb64cd9eb.glb
Create an easy-remove electrical outlet cover for a NEMA 5-15R receptacle. Start with a rectangular cover plate 5mm thick with 6mm rounded corners and 2mm beveled edges. On the back of the plate, add two grounding pins. Each pin is a cylinder with a diameter of 4.84mm and a length of 21.34mm. The pins should be posit...
plate_thickness = 5; bevel = 2; rcorner = 6; handle_outerwid = 20; handle_ht = 13; handle_len_frac = 0.62; module dummy(){} decora_hole_ht = 2.63*25.4; decora_hole_wid = 1.31*25.4; decora_screw_sep = 3.81*25.4; pinwid = 0.06*25.4; pinht = 0.28*25.4; pinlen = 0.625*25.4; earthpinwid = 0.19*25.4; earthpinlen = 0....
glb/cad_256dbc07d7a7.glb
Create a Brace by extruding a specific 2D polygon to a height of 32mm. The polygon's vertices are defined by the coordinates [0,0], [0,60], [32,78], [32,128], [64,128], and [64,36]. From this solid volume, remove three cylindrical holes, each with a radius of 1.75mm and a length of 20mm. Position the first hole centere...
difference(){ linear_extrude(height=32, convexity= 10) polygon(points=[[0,0],[0,60],[32,78],[32,128],[64, 128],[64, 36]]); translate([-1, 50, 16]) rotate([90, 0, 90]) cylinder(r=1.75, h=20, $fn=100); translate([-1, 15, 16]) rotate([90, 0, 90]) cylinder(r=1.75, h=20, $fn=100); translate([48, 129, 16]) rotate([0, -90, ...
glb/cad_91f85313eae0.glb
Create a "Hinged parallelogram for Gyroman 4" consisting of a mechanical linkage system. Construct a parallelogram assembly using two parallel bars connected by a series of integrated hinges. The structure features a top bar and a bottom bar, each incorporating a center hinge and end hinges. The top bar's center hing...
include <gyroman.scad> include <hinge_20240317.scad> include <foot_thread.scad> hinge_outer_t=1.6; h_play=0.35; diagonal_play=0.35; knuckles=3; hinge_h=first_h+(knuckles-2)*hinge_pitch+last_h+bridge_play; half_angle=13; hinge_x=leg_dist/2-7; hinged_half_angle=asin(excentric_radius/hinge_x); hinges_angle=asin(link_y/h...
glb/cad_697a79cdc4d0.glb
Create a Cable Spool consisting of a central cylindrical core and six radiating arms. Start with a central solid cylinder that has a radius of 10.5mm and a height of 2mm. From this base, extend a second concentric cylinder upwards to a height of 10mm with a radius of 7mm. Create a hollow center by removing a cylinder w...
$fn = 100; partHeight = 10; holeD = 18; wallThickness = 2; sideThickness = 4; holeSize = 4; excess = 3; sizeL = (holeD); sizeS = sideThickness; combined(0); module combined(smaller = 0) { base(smaller); for (i = [0:6-1]) { rotate([0,0,360/6*i]) side(i % 2); } } module base(smaller = 0) { difference() { ...
glb/cad_02bf49aeea25.glb
Create a rolling blinds grip by constructing a hollow cylinder with an outer diameter of 17.2mm and a total height of 100mm. Remove material from the center to create a stepped internal cavity. The bottom section of the hole should have a diameter of 13.7mm and extend from the base up to a height of 20mm. From that 20m...
extra = 1.2; height = 100; bottom = 20; $fn = 60; difference() { cylinder(height, (16 + extra) / 2, (16 + extra) / 2, false); union() { color([0,0,255]) translate([0,0,bottom]) cylinder(height, (12 + extra) / 2, (12 + extra) / 2, false)...
glb/cad_65d7b2a0f0f8.glb
Create a nail clipper enclosure by starting with a base shape that combines a rectangular block measuring 75mm in length, 19mm in width, and 12mm in height with a semi-cylindrical cap of the same 19mm diameter and 12mm height attached to one end, resulting in a total length of 87mm. From this solid, remove a smaller in...
$fn=60; module base() { difference() { color([1,0,0]) union() { cube([75,19,12], false); translate([75,19/2,0]) cylinder(12, 19/2, 19/2); } rotate([0,3.36,0]) translate([0,0,12]) cube([85,19,12], false)...
glb/cad_67f192fe30f0.glb
Create a VLC cone model consisting of a hollow, tapered conical tower supported by a square base. First, construct the base socle. Create a square block 40mm wide and 2mm high with rounded corners. In the center of this block, create a circular pedestal that transitions into a hole 4mm wide to accommodate the cone. ...
module cone(numsegments, height, width, topwidth, thick, explodedview, assembly) { for(z = [0 : numsegments - 1]) { color([1.0,0.6,0.0] + ((z % 2) * [0.0,0.4,1.0]) ) conesegment(height, width, topwidth, thick, z, numsegments, explodedview, assembly); } } function diam(z, height, width, topwidt...
glb/cad_d85f0f16d8d3.glb
Create a 3D model of the VLC cone, consisting of a tapered hollow tower resting on a square base. First, construct the base as a square plate with rounded corners, 40mm wide and 2mm thick. In the center of this plate, create a circular pedestal that transitions into a hollow opening to support the cone. Build the con...
fudge = 0.1; module poly_path4141(h) { scale([25.4/90, -25.4/90, 1]) union() { linear_extrude(height=h) polygon([[-302.557101,-113.464195],[-243.813759,-113.464195],[-183.704299,53.810115],[-123.746629,-113.464195],[-65.003289,-113.464195],[-148.944029,113.160615],[-218.616359,113.160615],[-302.557101,-1...
glb/cad_babac972c5f5.glb
Create a pulley wheel by starting with a main cylinder that has a diameter of 50mm and a total height of 20mm. Center a groove into the outer circumference by removing a torus with a cross-sectional diameter of 5mm, creating a cable track. Bore a central vertical hole through the axis of the cylinder with a diameter of...
module pulley(d, cable_d, shellw, axisd) { innerend = (d - cable_d)/2 - shellw; innerstart = axisd/2 + shellw; innerwidth = innerend - innerstart; splits = floor( (innerstart + innerwidth) * 3.1415 / innerwidth ); difference() { translate([0, 0, -cable_d/2 -shellw]) cylinder(cable_...
glb/cad_332538962565.glb
Create a Tanaka tripod camera mount replacement consisting of a top mount, a bottom base, and a adjustment knob. For the top mount, create a central rectangular block 55mm x 45mm x 12mm. Hollow out the center with a 51mm x 41mm x 10mm cutout. Add two cylindrical protrusions on the top surface, each with a radius of 6....
module up() { module attach() { difference() { rotate([90,90,0]) translate([27+13/2,16/2,-2/2]) difference() { hull() { cylinder(2.5,13/2,13/2, center=true); translate([-27/2-13/2,0,0]) cube([27,16,2.5], center=true); } cylinder(3,6/2,6/2, center=true); } translate([-1,-1,-50]) ...
glb/cad_7d33ae62cf99.glb
Create a metal threaded knob by starting with a main body formed from the convex hull of two cylinders: a base cylinder 16.5mm in diameter and 9mm high, and a top cylinder 15mm in diameter and 9mm high, positioned 9mm above the base. Remove a central vertical hole 14mm in diameter through the entire height of this body...
union() { difference() { hull() { cylinder(9,33/2,33/2, $fn=60); translate([0,0,9]) cylinder(2,30/2,30/2, $fn=60); } cylinder(7,(30 - 2)/2,(30 - 2)/2); for ( i = [0 : 15] ) { rotate( i * 360 / 15, [0, 0, 1]) translate([0, 33/2 + 2.5, 0]) cylinder(20, 4, 4, $fn=30); } } ...
glb/cad_06a1aa34ef4e.glb
Create a 40mm lightning wall box cover by constructing a primary cylindrical body with a diameter of 38mm and a height of 15mm. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a diameter of 36mm and a height of 15mm. To create the opening for the cable, remove two rectangular block...
union() { difference() { union() { cylinder(15,19,19); translate([0,0,12]) cylinder(1,19.5,19.5); } cylinder(15,18,18); translate([-20,4,0]) cube([40,20,20]); translate([-20,-24,0]) cube([40,20,20]); } hull() { cylinder(2,19,19); translate([0,0,1.8]) cylinder(.2,24,24); } }
glb/cad_73f4df581e56.glb
Create a 120mm fan low profile grid with a total thickness of 2mm. Start by creating a square plate 120mm by 120mm and 2mm thick. In the center of this plate, remove a circular area with a diameter of 60mm to create a large central opening. Fill the remaining surface area of the square plate with a honeycomb pattern co...
module hc_column(length, cell_size, wall_thickness) { no_of_cells = floor(length / (cell_size + wall_thickness)) ; for (i = [0 : no_of_cells]) { translate([0,(i * (cell_size + wall_thickness)),0]) circle($fn = 6, r = cell_size * (sqrt(3)/3)); } } module...
glb/cad_c69d33d6edf2.glb
Create a 120mm fan low profile grid with a total thickness of 2mm. Start by creating a square plate measuring 120mm by 120mm and 2mm thick. In the center of this plate, remove a circular area with a diameter of 60mm to create a large central opening. Fill this central opening with a honeycomb pattern consisting of hexa...
module hc_column(length, cell_size, wall_thickness) { no_of_cells = floor(length / (cell_size + wall_thickness)) ; for (i = [0 : no_of_cells]) { translate([0,(i * (cell_size + wall_thickness)),0]) circle($fn = 6, r = cell_size * (sqrt(3)/3)); } } module...
glb/cad_0d9b9cc1e806.glb
Create a hangbar support consisting of a circular mounting ring connected to a rectangular base by a flat arm. Start by creating a hollow cylinder with an outer radius of 13mm and an inner radius of 10mm, with a height of 6mm. Attach a rectangular arm to this ring that is 46mm long, 6mm wide, and 3mm thick; this arm sh...
module example001() { union(){ translate([55,-20,-2]) { difference() { cube([3,40,12]); rotate([0,90,0]) translate([-6,7,0]) cylinder(h = 10, r1 = 1.2, r2 = 1.2, center = false); rotate([0,90,0]) translate([-6,33,0]) cylinder(h = 10, r1 = 1.2, r2 = 1.2, center = false); } } ...
glb/cad_15fb39d2ba0e.glb
Create a smooth door stop bumper by constructing a primary vertical cylinder 50mm tall with an outer radius of 10mm. Hollow out this main cylinder by removing a central core with a radius of 7mm, starting from a height of 5mm and extending through the top. Additionally, remove a smaller central core with a radius of 2m...
module example001() { difference() { cylinder(h = 50, r1 = 10, r2 = 10, center = false); translate([0,0,5]) cylinder(h = 50, r1 = 7, r2 = 7, center = false); translate([0,0,-5]) cylinder(h = 50, r1 = 2, r2 = 2, center = false); } rotate([0,180,0]) translate([0,25,-35]) { union() { difference()...
glb/cad_01db3651a70c.glb
Create a Ballast Plate for Narrow Gauge LEGO-compatible track. The model consists of a flat rectangular base with a total height of 3.2mm. Construct the base by arranging several small rectangular blocks with rounded top studs. The overall layout forms a rectangular frame with a central rectangular void. Position t...
stud_rescale = 1.025; color([108/255, 110/255, 104/255]) { stack(0,0,0) { place(0,0,0) uncenter(1,8) block(width=1, length=8, height=1/3, draw_posts=false, include_wall_splines=false, stud_rescale=stud_rescale); place(7,0,0) uncenter(1,8) block(width=1, length=8, height=1/3, draw_posts=false, inclu...
glb/cad_ad3250130094.glb
Create a minimalist plant tag consisting of a flat base and raised text. For the base, create a thin plate 1mm thick, 8mm wide, and 100mm long. At the end of the plate, add a pointed arrow tip that extends an additional 10mm in length. On the top surface of this base, add raised text with a height of 0.6mm and a font s...
name = [ "EXEMPLUM PLANTA", "MICROCITRUS AUSTRALASICA", "PHOLIDOTA CHINENSIS", ]; width = 8; length = 100; arrowlength = 10; thickness = 1; textthickness = 0.6; textsize = 4; spacing = 4; for (i = [ 0 : len(name) - 1 ]) { translate([0, -i * (width + spacing), 0]) { linear_extrude(thickness) { ...
glb/cad_b42fca94cd73.glb
Create a Simple Parametric Filament Welder Splicing Tool consisting of two mirrored arms and two knobs. Each arm is a block 90mm long, 8mm wide, and 5mm thick. At the center of each arm's length, create a square filament groove 2.2mm wide that runs the length of the arm. The arms are angled at 4.5 degrees. In the low...
arml = 90; armw = 8; armh = 5; beamw = 3.5; aa = 4.5; fa = 2; headdia = 5.7; headdep = 3.2; hspd = 3.4; hstd = 2.6; nutw = 5.7; knobh = 15; nfaces = 100; $fn = 0; $fs = 0.5; $fa = 360/nfaces; gw = 2.2; ins = 1; pcr = nutw*0.8; n = 6; p = [1,1]*4; s = [2,1]*0.25; dc = 0.5; nph = 10; tophalf(); translate([0,30,0])...
glb/cad_bc242e4eecbb.glb
Create a Parametric Heavy-Duty Tube Roller Squeezer Wringer consisting of two synchronized rollers, a hinged frame, and a turning knob. Construct two identical rollers, each 70mm in height. Each roller should feature a corrugated gear profile with 9 cycles to provide traction and synchronization. The rollers are separ...
rollerheight = 70; transitionh = 0.2; gearheight = 3; bushdia = 10; flangeh = 3; knobw = 50; knobh = 18; knobth = 3; wos = 5; leverth = 4.5; leverl = [80,27]; hinged = 10; hcapd = hinged+2; hcaph = 3; hcapi = leverth-2; screwtd = 2.6; screwpd = 3.9; screwcb = 9; screwcbd = 3.8; pilotl = 1.5; headdia = 5.7; headdep...
glb/cad_10a4bfa06d30.glb
Create a Parametric Radius Gauge Set consisting of a series of individual gauges and a storage box. For the gauges, create one for every integer radius from 2mm to 25mm. Each gauge is a flat plate 2mm thick. The shape of each gauge is formed by the convex hull of a cylinder with the specified radius and a rectangle o...
minsize = 2; maxsize = 25; thickness = 2; minlength = 55; textscale = 2.5; textpow = 0.5; textmaxheight = 10; textdepth = 1; boxHeight = 35; clearth = 0.15; clearw = 0.3; wtinner = 0.8; wtouter = 1.2; tesswidth = 170; drawgages = true; drawbox = true; section = false; $fn = 0; $fs = 0.5; $fa = 3; length = max(minl...
glb/cad_c0fcfc16d984.glb
Create a Robust Parametric Doorknob Lever collar by constructing a hollow cylindrical ring with an outer diameter of 51.2mm and a total height of 20mm. The wall thickness of this main outer cylinder is 1.6mm. To create the interior mounting space, remove a central cylinder with a diameter of 48mm and a height of 20mm, ...
Dknob = 48.0; hk = 20; thk = 1.6; rw = 2; tw = 1; dhb = Dknob+2*thk; $fn = 100; difference(){ cylinder(d = dhb,h = hk); translate([0,0,tw]) cylinder(d = Dknob,h = hk); translate([0,0,-1]) cylinder(d = Dknob-2*rw,h = hk); }
glb/cad_9618c7b8ab9f.glb
Create a Robust Parametric Doorknob Lever consisting of a cylindrical collar and an attached handle stem. Start by creating a hollow cylindrical collar with an outer diameter of 56mm and an inner diameter of 48mm, with a total height of 20mm. The bottom 14mm of this collar should be a solid ring with a wall thickness...
Dknob = 48; hk = 20; thk = 4; rw = 2; tw = 1; hh = 14; thhy = 14; thhx = 14; lhk = 1.0; $fn = 100; lh = 2.5*25.4*lhk; dhb = Dknob+2*thk; color("mediumseagreen") difference(){ union(){ lever(); translate([0,0,hh]) cylinder(d1 = dhb,d2 = dhb-4,h = hk-hh); } translate([0,0,tw]) cylinder(d = Dknob,h = hk);...
glb/cad_5363a8bb2079.glb
Create a side-mount spool holder consisting of a main body with a central void for a bolt and nut. Start by creating a solid shape using a hull operation between a cylinder with a diameter of 17.5mm and a height of 9mm, and a supercylinder centered at [0, 0, 23] with dimensions of 33mm by 14mm and a height of 4mm. Fr...
a = 12.6; difference(){ hull(){ cylinder(d = 17.5,h = 9,$fn = 48); translate([0,0,23]) rotate([90,0,0]) supercylinder([33,14,4],[4,4]); } hull(){ translate([0,0,-0.1]) cylinder(d = a*2/sqrt(3),h = 9,$fn = 6); cylinder(d = 8,h = 13,$fn = 48); } sidecut(); mirror([0,1,0]) sidecut(); } module...
glb/cad_d229fb5846f6.glb
Create a vibration-damping riser foot by constructing a rounded triangular prism block with a total height of 55mm, a width of 50mm, and a thickness of 10mm. The overall shape is formed by the hull of three cylinders with 10mm diameters positioned at (50, 5, 0), (5, 50, 0), and (5, 5, 0). Hollow out the center of thi...
l = 50; w = 10; h = 45; hlo = 10; hli = 15; st = 1.9; addtread = true; bfr = 1.5; bfos = 3.9; fh = h+hli; $fn = 48; difference(){ hull(){ translate([l,w/2,0]) cylinder(d = w,h = fh); translate([w/2,l,0]) cylinder(d = w,h = fh); translate([w/2,w/2,0]) cylinder(d = w,h = fh); } hull(){ di = w/2; ...
glb/cad_4bf4c5d986b9.glb
Create a primer dummy cartridge by combining three stacked cylindrical sections. Start with a base cylinder that has a height of 0.4mm, a top diameter of 4.58mm, and a bottom diameter of 3.78mm, creating a slight conical taper. Directly on top of this base, place a central cylinder with a constant diameter of 4.58mm an...
D = 4.48+0.05; L = 3.10; ch = 0.4; nx = 2; ny = 2; os = 8; $fn = 48; for (x = [0:1:nx-1]){ for (y = [0:1:ny-1]){ translate([os*x,os*y,0]) oneprimer(); } } module oneprimer(){ cylinder(d1 = D-ch*2,d2 = D,h = ch); translate([0,0,ch]) cylinder(d = D,h = L-2*ch); translate([0,0,L-ch]) cylinder(d1 = D,d2 =...
glb/cad_7fa9479e095d.glb
Create a Shellholder Adapter for a reloading press. All dimensions are in inches and should be scaled by 25.4mm. Construct the main body as a series of stacked cylinders. Start with a base flange 0.370" high and 0.745" in diameter. Above this, add a central stem 0.265" high with a diameter of 0.475". On top of the ste...
hbasel = 0.250; hsteml = hbasel-0.130; hflangel = 0.130; dsteml = 0.427; dflangel = 0.556; hbaseh = 0.530; hstemh = 0.265; hflangeh = 0.370-hstemh; dstemh = 0.475; dflangeh = 0.745; hheadh = 0.2; dheadh = 1; uhfh = 0.02; dprimer = 0.285; ch = 0.03; nf = 48; module body(){ union(){ translate([0,0,hflangeh/2]) ...
glb/cad_0cea513ec45d.glb
Create a Shellholder Adapter for a reloading press. The main body is composed of three stacked cylindrical sections. The base is a cylinder with a diameter of 18.92mm (0.745" * 25.4) and a height of 13.46mm (0.530" * 25.4). Directly on top of this base, add a small fillet ring with a height of 0.51mm (0.02" * 25.4) tha...
hbasel = 0.250; hsteml = hbasel-0.130; hflangel = 0.130; dsteml = 0.427; dflangel = 0.556; hbaseh = 0.530; hstemh = 0.265; hflangeh = 0.370-hstemh; dstemh = 0.475; dflangeh = 0.745; hheadh = 0.2; dheadh = 1; uhfh = 0.02; dprimer = 0.285; ch = 0.03; nf = 48; module body(){ union(){ translate([0,0,hbaseh/2]) cy...
glb/cad_998e1c833026.glb
Create a Reloading Die Offset Bushing consisting of a hollow cylinder with a flat identification tag. The main body is a ring with an outer diameter of 31.11mm, an inner diameter of 22.38mm, and a total height of 3.175mm. Attached to the side of this ring is a rectangular tag that extends from the outer diameter. The...
mm = 25.4; zscale = 1; id = (7/8+0.005)*mm; od = id*1.4; h = (0.125)*mm*zscale; addinfotag = true; textstr = "0.125"; textsz = 3; texth = 0.3; tagh = 2; tagwy = 5; tagwx = 20; nf = 48; module baseshape(){ if (addinfotag){ cr = 3; union(){ difference(){ hull(){ translate([0,0,-(h-tagh)/2]) cylin...
glb/cad_62f83e8f32b3.glb
Create a configurable wrench for LEE style lockrings. Start by creating a main body that is a flat plate 6.35mm thick. The primary feature is a central circular cutout with a diameter of 31.75mm. Around the perimeter of this circular cutout, remove 18 equally spaced notches to accommodate the lockring. Each notch sho...
h = 0.25*25.4; d = 1.25*25.4; ngr = 18; grd = 0.125*25.4; clearance = 0.005*25.4; shownut = false; dm = d+2*clearance; grdm = grd-2*clearance; hd1 = 10; hd2 = 15; hl = 60; chh = 0.02*25.4; module basenut(){ hb = 0.3*25.4; difference(){ hull(){ translate([0,0,chh/2]) cylinder(h=chh,r2=d/2,r1=(d-grd)/2-0.5,...
glb/cad_97b1e13f9ce9.glb
Create a Parametric Reloading Die Lockring. Start with a cylindrical base that has a diameter of 31.75mm and a height of 13.97mm. Apply a chamfer of 0.95mm to both the top and bottom edges. On the outer circumference, create 18 equidistant vertical grooves, each with a diameter of 3.175mm, running through the height ...
h = 0.55*25.4; d = 1.25*25.4; ngr = 18; grd = 0.125*25.4; chh = grd*0.3; slotw = 1.5; scalek = 1.020; threaddia = 7/8*scalek; pitch = 14; dtap = 0.103*25.4; dshank = 0.125*25.4; dhead = 0.230*25.4; dboss = 0.3*25.4; textstr = "+2.0"; textsz = 2.1; texth = 0.2; hidethreads = true; use <threads.scad> module basenut...
glb/cad_f1004ebaeab1.glb
Create a parametric reloading die locknut. The main body is a cylinder with a diameter of 44.45mm and a height of 13.97mm. The top and bottom faces feature a slight chamfer of 3.175mm. Center a vertical internal hole through the body with a diameter of 31.75mm, threaded with a 1.25-inch diameter thread at 12 TPI. Aro...
h = 0.55*25.4; d = 1.75*25.4; ngr = 24; grd = 0.125*25.4; chh = grd*0.3; slotw = 1.5; scalek = 1.020; threaddia = 1.25*scalek; pitch = 12; dtap = 0.103*25.4; dshank = 0.125*25.4; dhead = 0.230*25.4; dboss = 0.3*25.4; textstr = "+2.0"; textsz = 2.1; texth = 0.2; hidethreads = true; use <threads.scad> module basenu...
glb/cad_9c581e4595ef.glb
Create a parametric reloading die lockring. Start with a main cylindrical body with a diameter of 28.575mm and a height of 7.62mm. The top and bottom faces should feature a slight chamfer with a height of 0.95mm. In the center of the body, create an internal threaded hole with a diameter of 19.05mm (0.75 inches scaled...
h = 0.3*25.4; d = 1.125*25.4; ngr = 16; grd = 0.125*25.4; chh = grd*0.3; slotw = 1.5; scalek = 1.020; threaddia = 0.75*scalek; pitch = 16; dtap = 0.103*25.4; dshank = 0.125*25.4; dhead = 0.230*25.4; dboss = 0.3*25.4; textstr = "+2.0"; textsz = 2.1; texth = 0.2; hidethreads = true; use <threads.scad> module basenu...
glb/cad_1866848316a1.glb
Create a parametric reloading die lockring. Start with a main cylindrical body with a diameter of 31.75mm and a height of 7.62mm. The top and bottom edges of the cylinder should feature a slight chamfer of approximately 0.95mm. Inside the cylinder, create a concentric internal thread with a diameter of 22.225mm (7/8" ...
h = 0.3*25.4; d = 1.25*25.4; ngr = 18; grd = 0.125*25.4; chh = grd*0.3; scalek = 1.020; threaddia = 7/8*scalek; pitch = 14; textstr = "+2.0"; textsz = 2.1; texth = 0.2; hidethreads = true; use <threads.scad> module basenut(){ difference(){ hull(){ translate([0,0,chh/2]) cylinder(h=chh,r2=d/2,r1=(d-grd)/2-...
glb/cad_f7e97e8a50ce.glb
Create a parametric reloading die locknut. Start with a main cylindrical body with a diameter of 28.575mm and a height of 13.97mm. The top and bottom faces should feature a slight chamfer of 0.95mm. In the center of the cylinder, create an internal threaded hole with a diameter of 19.05mm (0.75 inches) and a pitch of ...
h = 0.55*25.4; d = 1.125*25.4; ngr = 16; grd = 0.125*25.4; chh = grd*0.3; slotw = 1.5; scalek = 1.020; threaddia = 0.75*scalek; pitch = 16; dtap = 0.103*25.4; dshank = 0.125*25.4; dhead = 0.230*25.4; dboss = 0.3*25.4; textstr = "+2.0"; textsz = 2.1; texth = 0.2; hidethreads = true; use <threads.scad> module basen...
glb/cad_ac15961a261c.glb
Create a parametric reloading die locknut. Start with a main cylindrical body that has a diameter of 31.75mm and a height of 7.62mm. The top and bottom faces should feature a slight chamfer with a height of 0.95mm, transitioning from the main diameter to a slightly smaller inner diameter of 28.225mm. Inside the center...
h = 0.3*25.4; d = 1.25*25.4; ngr = 18; grd = 0.125*25.4; chh = grd*0.3; slotw = 1.5; scalek = 1.020; threaddia = 7/8*scalek; pitch = 14; dtap = 0.103*25.4; dshank = 0.125*25.4; dhead = 0.230*25.4; dboss = 0.3*25.4; textstr = "+2.0"; textsz = 2.1; texth = 0.2; hidethreads = true; use <threads.scad> module basenut(...
glb/cad_3a48de1a5346.glb
Create a set of parametric keycap veneers. For each individual keycap, start with a base rectangular block 17mm wide by 17mm high. The block should have a maximum thickness of 1.7mm and a minimum thickness of 0.3mm. Apply a vertical taper to the sides (draft angle of 45 degrees) and round the corners with a 3mm radius....
nf=100; Nx=4; Ny=2; tilegap=2; h=17; w=17; th=1.7; th_min=0.3; draftx=45; drafty=45; cr=3; style="sphere"; drc=20; drs=20; osx=0; osy=0; osz=0; scaley=1.3; os1=-.5; os2=-3; brad=1; bdepth=0.7; blayout=[3,4]; bevel="none"; bevangle=10; bevhos=0.6; lowside="none"; identifier="none"; idw=0.5; idl=5; idh=0.95; idh...
glb/cad_568b08532046.glb
Create a round hole cover consisting of a flat circular cap and a supporting retaining ring. Start by creating a solid disk with a radius of 32.3mm and a thickness of 1.6mm. Around the perimeter of this disk, add a concentric ring with an outer radius of 32.3mm and an inner radius of 28.6mm, with a height of 2.8mm, cre...
$fn = 127; hole_r = 59.6 / 2; plate_t = 2.8; cap_t = 1.6; wall_t = 1; overlap = 3; cylinder(r = hole_r + overlap, h = cap_t); difference() { cylinder(r = hole_r, h = cap_t + plate_t); translate([0,0,cap_t]) #cylinder(r = hole_r - wall_t, h = plate_t); }; module lip() { translate([hole_r - (wall_t / 2), 0, c...
glb/cad_ccd96d9a7505.glb
Create a round container jar with a screw lid. The main body is a cylinder with an outer radius of approximately 10.55mm and a total outer height of 69.6mm. The body consists of a hollow base and a threaded neck. The interior is a cylinder with a diameter of 19mm and a height of 66mm, leaving a wall thickness of 1.8mm....
use <threads.scad> show = "both (opened)"; quality = "preview"; $fn = (quality == "better final rendering") ? 256 : (quality == "final rendering") ? 128 : (quality == "preview") ? 60 : (quality == "fast preview") ? 30 : 30; thread_testmode = (quality == "fast preview") ? true : false; inner_h = 6...
glb/cad_9fcee2875fe0.glb
Create a top cover for a Lithophane Cube. Start with a solid square base measuring 87mm by 87mm with a height of 10mm. Carve a large square hole through the center of the base to create a frame; the remaining walls should be approximately 6mm thick. Within this frame, create four rectangular recessed slots, one on ea...
part = "second"; lithw = 75; lithh = 75; lithd = 3; lithb = 3; baseh = 10; floorh = 10; connector = "clip"; magneth = 1.1; magnetd = 4.1; buffer=0+1.4; smidge = 0+.01; lipsize = 0+2; textdepth = 0+ 0.6; pinh = 0+5; pinr = 0+2; pint = 0+0.3; module pinhole(h=10, r=4, lh=3, lt=1, t=0.3, tight=true) { union(...
glb/cad_ce467fd02f0a.glb
Create a Cable Clip designed to hold a cable and its windings. The main body is a thick, curved C-shape with a total height of 15.3mm. Start with two overlapping circles, one with a 30mm diameter and a smaller one with a 25mm diameter, both centered along the Y-axis but offset from each other by 12.7mm. The space betwe...
$fa=1; $fs=0.5; sc = 1; cd = 5; sd = cd/sc; render() scale(sc) difference() { linear_extrude(15.3, center=true) offset(r=-0.7) offset(r=0.7) difference() { intersection_for(i=[-1, 1]) translate(i*[0, 6.35]) circle(d=30); difference() { intersection_...
glb/cad_918c57a8c877.glb
Create a Thread Cone Adaptor consisting of a tapered main body and a wide base. Construct the main body as a truncated cone with a height of 118mm, a bottom diameter of 30mm, and a top diameter of 13mm. Attach a base to the bottom of this cone consisting of two stacked cylinders: a primary transition cylinder with a he...
cone_top=13; cone_bottom=30; cone_height=118; base_bottom=47; machine_post_diam=6.0; render() difference(){ union(){ translate([0,0,cone_height/2]) cylinder(d1=cone_bottom,d2=cone_top,h=cone_height, center=true); translate([0,0,-5/2]) cylinder(d1=base_bottom,d2=cone_bottom, h=5, center=true); ...
glb/cad_05d10cdd4840.glb
Create a Parametric Coin Patternweight consisting of a hexagonal base and a matching lid. For the base, create a hexagonal prism with a height of 20mm. The hexagon should have a fillet radius of 3mm on its vertical edges. Inside this base, remove material to create three vertical cylindrical holes, each with a diamet...
d_coin = 21.3; d_coin_eps = 0.5; t_floor = 0.8; h_bottom = 20; t_wall = 1.2; h_lid = 1.2; shape = 6; mini = true; fillet = 3; module __End_Customizer__() {} _d_coin = d_coin + d_coin_eps; num_cols_maxi = shape == 0 ? 6 : shape; num_cols_mini = shape == 4 ? 4 : 3; num_cols = mini ? num_cols_mini : num_cols_ma...
glb/cad_13ca54770934.glb
Create a protective case for an ESP32 WROOM 32D. The main body is a hollow rectangular shell with outer dimensions of 52mm x 31.5mm (PCB size 49mm x 28.5mm plus 1.5mm walls). The shell height is 5.2mm. On the bottom, create a base that supports the PCB. This base includes a central tray for the board and two recessed...
module ccube(v) { trans = v.z/2; translate([0, 0, trans]) cube([v.x, v.y, abs(v.z)], true); } module ccylinder_y(h, d) { translate([h/-2, 0, d/2]) rotate([0, 90, 0]) cylinder(h=h, d=d); } module roundedCube(v, r=1, flatcenter=true) { mv = flatcenter ? [0,0,0] : [v.x/2, v.y/2 ,0]; ...
glb/cad_34bc6fb15d3c.glb
Create a KBDfans KBD75 v3 keyboard case and plate. Start with a rectangular base plate that is 1.3mm thick. The overall dimensions are based on a keyboard unit (1u) of 19.05mm, with a total width of approximately 16u plus a 1mm margin on each side, and a depth of approximately 6u plus a 1mm margin. Cut out a series of...
$fn = 64; cutout = 14.2; 1_u = 19.05; 1_25u = 1.25 * 1_u; 1_5u = 1.5 * 1_u; 1_75u = 1.75 * 1_u; 2_25u = 2.25 * 1_u; 6_25u = 6.25 * 1_u; padding = 1_u / 2; thickness = 1.3; margin = -1; stabilizer_width = 7; standoff_height = 5; standoff_diameter = 3; module stabilizer(x, y, width=2) { translate([x, y, 0]) { if ...
glb/cad_f9ed90131e9f.glb
Create a CR2032 dummy battery by constructing a tiered cylindrical body. Start with a base cylinder 20mm in diameter and 0.5mm high. On top of this, center a second cylinder 19mm in diameter and 0.5mm high. Above that, add a third cylinder 20mm in diameter and 1.9mm high. Cap the structure with a final centered cylinde...
difference(){ union(){ cylinder(d=20,h=0.5); translate([0,0,0.5]) cylinder(d=19,h=0.5); translate([0,0,1]) cylinder(d=20,h=1.9); translate([0,0,2.9]) cylinder(d=18,h=0.3); } translate([-11,0,-0.1]) cube([22,1,0.65]); rotate([0,0,45]) translate([0,-12,3.2-1.8]) cube([1,25,2.1]); } ...
glb/cad_4a8cd752f955.glb
Create a snapping bobbin case by constructing a hollow cylinder with an outer diameter of 23mm and a total height of 13mm. The main body should be a tube with a wall thickness of 1mm, meaning the inner cavity has a diameter of 21mm and a depth of 12mm. The bottom of the case is not completely open; instead, create a so...
$fn=72; D=21; H=12; module Angle(angle=60) { intersection() { cube([100,100,100]); rotate([0,0,angle-90]) cube([100,100,100]); } } module Interlock(n=6, h=2, w=1) { deg=360/n; difference() { cylinder(r=(D/2)+2*w, h=h+2); translate([0,0,-1]) cylinder(d=D-w, h=h+2); ...
glb/cad_bd3a2e6c9949.glb
Create a Jumping Bean Race Track tray measuring 100mm wide, 160mm long, and 15mm high. The main body is a hollowed-out rectangular box with walls 0.5mm thick. Divide the interior into five lanes using four longitudinal ribs. Each rib is 0.5mm thick and 12mm high, running from the front wall to the back wall. Along th...
o_wide = 100; o_long = 160; o_high = 15; wall_thick = 0.5; lanes = 5; step_count = 7; h_step = 0.8; rib_high = 12; h_lanetext = rib_high; spike_base = 2; spike_top = wall_thick; text_thick = 2.0; text_thick_small=1; sidemsg = "Jumping Bean Race"; sidemsg2 = "snafuhall.com"; markat = o_long / (step_count+1); ...
glb/cad_05d70d52fb3f.glb
Create a cylindrical knob for a game console with a total height of 15mm and a diameter of 13mm. The main body is a cylinder of 13mm diameter and 13mm height, topped with a 2mm high cap that has a slightly smaller diameter of 11mm. Connect the main body and the cap with a rounded fillet of 2mm radius. Carve a central ...
Knob_Diameter=13; Knob_Height=15; Axis_Lenght=10; Rounded=2; Ajustment=0.2; $fn=50; difference() { union() { cylinder(r=Knob_Diameter/2,h=Knob_Height-Rounded); translate([0,0,Knob_Height-Rounded]) cylinder(r=Knob_Diameter/2-Rounded,h=Rounded); translate([0,0,Knob_Height-Rounded]) rotate_extrud...
glb/cad_d3b20be594b6.glb
Create a µNES-CRT-ESP32 Console case by combining two rounded rectangular blocks. First, create a primary block that is 25mm wide, 7mm deep, and 4mm high, with corners rounded by a 1.5mm radius. Join this to a second perpendicular block that is 7mm wide, 25mm deep, and 4mm high, also with 1.5mm rounded corners, centere...
$fs = 0.1; $fa = 5; difference() { union(){ translate([17+1.5-1,66+9+1.5-1,1.5]) minkowski(){ cube([26-1,8-1,4]); sphere(r=1.5); } translate([17+9+1.5-1,66+1.5-1,1.5]) minkowski(){ cube([8-1,26-1,4]); sphere(r=1.5);...
glb/cad_cb4b5bbe68b2.glb