Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a replacement socket for a ratchet by constructing two stacked cylindrical sections. Start with a base cylinder that is 12.9mm in height and 12.9mm in diameter. Remove a square-shaped hole from the center of this base, with a width of 8.6mm, extending through the full height. On top of this base, add a second, t...
medida =10; matraca = 8.6; altura= 50; pared=4; calidad=50; union(){ difference(){ cylinder(matraca*1.5, matraca+pared, matraca + pared, $fn=calidad); cylinder(matraca*1.5, matraca,matraca, $fn=4); } translate([0,0,matraca*1.5]){ difference(){ cylinder(altura,medida+pared,medida+pared, $fn=calidad...
glb/cad_80908bcf6a72.glb
Create a filament sample swatch card with overall dimensions of 85mm x 54mm x 4.5mm and corner radii of 8mm. On the top surface, emboss four lines of text: the brand name (size 7.3), the filament name (size 5.8), the material type (size 5.8), and the temperature range (size 5.8) aligned to the right. Carve out a ce...
Nudge_Count=1; Is_Favorite=false; Layer_Height=0.20; Line_1_Size=7.3; Filament_Brand_Font="Liberation Sans"; Filament_Brand_Style="Bold"; Line_2_Size=5.8; Filament_Name_Font="Liberation Sans"; Filament_Name_Style="Normal"; Line_3_Size=5.8; Filament_Type_Font="Liberation Sans"; Filament_Type_Style="Italic"; Line_4...
glb/cad_98c7f942fddb.glb
Create a rectangular filament sample swatch with overall dimensions of 3mm in thickness, 18.6mm in height, and 35.6mm in width. Start with a solid block of these dimensions. On the front face, carve out a vertical rectangular channel that is 3mm wide and runs the full height of the card, positioned at the left edge. ...
insrtDims=[35.6,18.6,3]; $fn=50; translate([-insrtDims.z-3,0,0]) insert(); module insert(){ featuresPitch=insrtDims.x/8; difference(){ linear_extrude(insrtDims.y) difference(){ square([insrtDims.z,insrtDims.x]); translate([insrtDims.z,featuresPitch]) square(insrtDims.z,true); translate([ins...
glb/cad_9170a80641e7.glb
Create a filament sample swatch card with overall dimensions of 85mm x 54mm x 4.5mm and corner radii of 8mm. On the top edge, center a semi-circular notch with a radius of 3.5mm that penetrates 1.5mm into the body. On the front face, create a rectangular recessed insert measuring 35.6mm x 18.6mm with a depth of 3mm...
Nudge_Count=1; Is_Favorite=false; Layer_Height=0.20; Line_1_Size=7.3; Filament_Brand_Font="Liberation Sans"; Filament_Brand_Style="Bold"; Line_2_Size=5.8; Filament_Name_Font="Liberation Sans"; Filament_Name_Style="Normal"; Line_3_Size=5.8; Filament_Type_Font="Liberation Sans"; Filament_Type_Style="Italic"; Line_4...
glb/cad_c653f26f6218.glb
Create a mobile phone dock for a Mercedes Sprinter 906. Start by constructing a base block 166mm wide, 43mm deep, and 10mm high, with all edges rounded by a 2mm radius. On top of this base, center a rectangular vertical section that is 160mm wide, 40mm deep, and 90mm high. To create the phone slot and pen holders, carv...
$fn=60; difference(){ union(){ minkowski(){cube([166,43,10],center=true); cylinder(r=2);} translate([0,0,40]) cube([160,40,90],center=true); } translate([-32,0,36])rotate([-10,0,0])cube([90,20,88],center=true); translate([25,0,36])rotate([-10,0,0])cylinde...
glb/cad_3b46d5bfd146.glb
Create an allen wrench holder consisting of a rounded rectangular base and four hexagonal tool slots. Start with a base block 30mm long, 10mm wide, and 5mm thick, with all corners rounded by a 2.5mm radius. On the top surface, create four hexagonal holes aligned in a row, each 22mm deep. From left to right, the hexag...
$fn=36; translate([0,0,10]) { rotate([-90,0,0]) { difference(){ union() { translate([15,8,7.5]) { rotate([90,0,0]){ cylinder(1,d=40); } } translate([15,9,7.5]) { ...
glb/cad_a673d5f58354.glb
Create a spiral binding cover by starting with a rectangular plate measuring 139.7mm in width, 215.9mm in height, and 1.5mm in thickness. Along the left edge, create a series of binding holes. These holes should be positioned starting 4.25mm from the bottom and top edges, spaced 6.25mm apart center-to-center. Each hole...
width = 139.7; height = 215.9; thickness = 1.5; border_distance = 2.5; title_line1 = "The petal"; title_line2 = "falls twice"; font_size = 12; font_name = "DejaVu Serif"; title_height = 1.5; emboss = true; module hole(height, x, y) { hull() { d = abs(x-y); cylinder(h=height, d=y, center=tr...
glb/cad_419c4179ebba.glb
Create a Cypress FX2 Logic Analyzer Case consisting of a bottom base and a top cap. The overall footprint is 57mm in length and 41mm in width. For the bottom base, create a rectangular slab 4mm thick with rounded corners. At each of the four corners, add a cylindrical mounting pillar with a diameter of 7mm and a heigh...
selection = 0; eps = 0.01; wall = 2; tolerance = 0.3; pcb_thickness = 1.6; bottom_thickness = 2 * wall; bottom_screw_dia = 3 + 2 * tolerance; bottom_screw_head_h = 2; bottom_screw_head_dia = 6; bottom_pillar_h = 3; bottom_pillar_dia = bottom_screw_dia + 2 * wall; width = 41; length = 57; height = 10 + bottom_pillar...
glb/cad_2d3ec0adec05.glb
Create a Qube 500 holder starting with a square base measuring 20mm x 20mm x 5mm. In the center of this base, carve out a conical recess with a bottom diameter of 15.2mm and a top diameter of 18mm, extending to a depth of 3mm. Within this space, leave a solid central core that is a cylinder with a bottom diameter of 10...
include <Chamfers-for-OpenSCAD/Chamfer.scad>; socket_base = [20,20,5]; socket_center = [10,10,2]; fins_outer_d = 14.372; fins_inner_d = 11; fins_height = 7.4; fins_gap = 1.95; recess_top = 18; recess_bot = 15.2; core_height = 3; core_top = 8; core_bot = 10.395; union() { difference() { color( "teal" ) c...
glb/cad_c8955aceb294.glb
Create a fan vibration dampener by starting with a square plate measuring 40mm by 40mm with a thickness of 1mm. In the center of this plate, remove a cylindrical hole with a diameter of 18.5mm. At each of the four corners, create a small circular screw hole with a diameter of 3mm. Position the center of each screw hole...
$fn=16; X = 40; T = 1; W = 3; difference(){ cube([X,X,T]); translate([X/10,X/10,0])cylinder(h=T*3, r1=W/2, r2=W/2); translate([X*0.9,X/10,0])cylinder(h=T*3, r1=W/2, r2=W/2); translate([X/10,X*0.9,0])cylinder(h=T*3, r1=W/2, r2=W/2); translate([X*0.9,X*0.9,0])cylinder(h=T*3, r1=W/2, r2=W/2); trans...
glb/cad_5a2b10c65bb1.glb
Create a G2" to G1" adapter with a mounting eye. Start by constructing a conical base that transitions from a bottom diameter of 64mm to a top diameter of 32.5mm over a height of 14mm. The bottom of this shape should be a flat disc 10mm thick with a diameter of 64mm. Inside the center of the adapter, create a vertical...
include <lib_markus.scad> include <quickthread.scad> innerDiameter = 39+1; outerDiameter = 44.2 + 0.2; holeDiameter = 31.2+1; threadDepth = 3; threadLength = 22+0.2+1; wallWidth = 1.8; adapter(); module adapter() { midLength = 14; difference() { intersection() { translate([0, 0, midLength]) isoT...
glb/cad_b1d4b126fe20.glb
Create a dummy board for a National beehive consisting of two joined rectangular plates with rounded corners. First, create the main frame body as a rounded cuboid measuring 355.6mm in length, 215.9mm in depth, and 22.225mm in thickness. The corners of this body should have a rounding radius of 1.5875mm. Attached to t...
inch = 25.4; top_bar_length = 17 * inch; frame_length = 14 * inch; frame_depth = 8.5 * inch; frame_width = 0.875 * inch; top_bar_depth = 0.375 * inch; roundedness = 0.0625 * inch; module rcube(x, y, z, r) { hull() { for (i=[r, x-r], j=[r, y-r], k=[r, z-r]) { translate([i, j, k]) sphere(r); } } }...
glb/cad_b487fa2bd7a7.glb
Create a Depth Gauge for the GTS10XC Table Saw consisting of several mounting components. First, create two spacers. Each spacer is a rectangular block measuring 43.2mm by 16.3mm with a thickness of 4mm. Hollow out the center of each with a 1mm deep rectangular slot of 40.2mm by 13.3mm. In the center of the remaining...
include <lib_markus.scad> translate([70,0,0]) rotate([0,0,-90]) spacer1(); translate([-70,0,0]) rotate([0,0,90]) spacer2(); translate([0,0,0]) sliderMount(); translate([0,-30,0]) displayMount(); translate([0,-60,0]) strainReliefClip(); module strainReliefClip() { x=0;z=0; difference() { union() { t...
glb/cad_d7ac3bd4e44f.glb
Create a Rain Gauge consisting of a conical measuring cup and a supporting scale assembly. First, create the measuring cup. The main body is a conical shape with a height of 170mm and a top diameter of 55mm. The top section transitions into a funnel shaft with a height of 14mm. Construct the scale assembly to flank ...
include <lib_markus.scad> cupHeight = 170; cupThickness = 34; cupTopDistance = 81; cupScaleDiameter = 10; cupScaleDisplacement = 3; funnelDiameter = 55; funnelTransitionHeight = 11; funnelShaftHeight = 14; engravingHeight = 0.6; color([0.9,0.9,0.9]) cup(); color([0.4,0.4,0.4]) numberScale(); color([0.4,0.4,0.4])...
glb/cad_1868ed3eabc9.glb
Create an Improved GTS10XC start/stop button consisting of three distinct components: a lever, a button, and a trigger. First, create the lever as a complex geometric assembly. Form the main body by combining a central beveled cylinder with a diameter of 43mm and a height of 11mm, integrated with a beveled cube of 43m...
include <lib_markus.scad> holeWidth = 20; holeHeight = 13; bevel = 0.7; travel = 10-4.5+1.5; buttonThickness = 7; buttonsPreview(); button(); trigger(); lever(); module lever() { color([0.9,0.6,0.6]) difference() { union() { hull() { rotate([0,90,0]) translate([0,0,-43/2]) beveledCylinder(8, (4...
glb/cad_9b718518ddf5.glb
Create a joystick modification kit consisting of several precision components. First, create an axis extension as a cylinder with a 15.5mm outer diameter and a total height of 13.8mm, featuring a central countersunk hole with an 8.3mm inner diameter. Construct a top ring with a total height of 10.5mm; it should hav...
include <lib_markus.scad> spacerHeight = 11; axisExtensionDiameter = 15.5; microswitchMountHeight = 13+0.6; color([0.9, 0.4, 0.4]) translate([0, 0, 50]) rotate([180,0,0]) springTop(); color([0.4, 0.4, 0.4]) translate([0, 0, 50+6]) rotate([180,0,0]) topRing(); color([0.4, 0.9, 0.4]) translate([0, 0, 50-22]) bottomP...
glb/cad_7df28c39d35e.glb
Create a Spiral Vase Meeple by constructing a vertically stacked series of connected circular disks. The object is built from 43 distinct layers, each with a height of 0.625mm, totaling a height of 26.25mm. Each layer is a cylinder with a 64-facet resolution. Starting from the base at z=0, create the profile by varyin...
diameters = [ 11.3, 12, 12.44, 12.5, 12.5, 12.425, 12.35, 12.175, 12 , 11.7, 11.35, 10.95, 10.5, 10, 9.45, 8.9, 8.4, 7.8, 7.25, 6.7, 6.2, 5.96, 5.8, 5.8, 5.9, 6.15, 6.45, 6.9, 7.5, 8.1, 8.6, 8.9, 9, 8.88, 8.6, 8.1, 7.3, 7.45, 8, 8.8, 10 ]; dz= 0.625; for(i = [0 : len(diameters...
glb/cad_2464cfd959e2.glb
Create a Moen Posi-temp Single Valve Assembly Shower Knob. Start by constructing a central stem consisting of a cylinder with an outer diameter of 17mm and a height of 32.2mm. Inside this stem, create a hollow shaft with a diameter of 6.5mm. At the base of this shaft, add a stop feature by intersecting a cylinder of 11...
screw_shaft_id = 6.5; screw_shaft_stop_dia = 11.0; screw_shaft_flat = 9.0; screw_shaft_od = 17; screw_shaft_height = 32.2; screw_shaft_stop_height = 12; screw_head = 11.5; knob_id = 40.5; knob_stop_thickness = 4.5; knob_stop_range = 40; knob_stop_angle = 190; knob_od = 45; knob_rad = 30; knob_top_rad = 50; knob_inner...
glb/cad_29f318b02c9b.glb
Create a Mage Knight Map Tile Tray by starting with a solid cylinder 120mm in diameter and 50mm in height. From the top surface, remove three identical rectangular slots to create storage compartments. Each slot must be 62mm wide, 80mm long, and 48mm deep, positioned such that they are rotated 120 degrees apart around ...
$fn = 128; bottom = 2; height = 48; difference () { cylinder ( r = 120/2, h = bottom + height ); for ( i = [ -150, -30, 90 ] ) rotate ([0, 0, i]) { translate ([-1, -40, bottom]) cube ([62, 80, height + 1]); translate ([60, 0, -1]) cylinder ( r = ...
glb/cad_8a16adbb5351.glb
Create a cat kibble feed tray with silo storage consisting of a storage tower, a base tray, a grate, and a lid. First, construct the storage tower as a hollow rectangular prism with a width of 125mm, a depth of 60mm, and a total height of 235mm. The walls should be 2mm thick. In the lower section of the tower, create ...
part="demo"; turn="yes"; tw=125; tha=190; td=60; trr=8; tt=2; trh=25; trm=18; tor=12; rd=120; rh1=45; rh2=30; slant_tray="no"; bt=-1; ge=-12; gcc=4.12; gt=4; gw=3; hw=5; hf=10; sd=3.0; tmm=0.1; zz=19; zc=4; zw=2; module no_more_options() {} th=rh1+tha; b=rh1+ge; $fn=45; printangle=(turn!="...
glb/cad_ee6a2b7cc1b8.glb
Create a Honeycomb Storage Wall with a depth of 8mm. The structure consists of a grid of hexagonal cells where each cell has an internal flat-to-flat width of 20mm and a wall thickness of 1.8mm. Arrange the cells in a staggered honeycomb pattern with 8 columns and 8 rows. The overall boundary of the grid is trimmed to...
depth = 8; hole_width = 20; wall_thickness = 1.8; flip_staggering = false; columns = 8; rows = 8; right_wall = false; left_wall = false; bottom_wall = false; wall_angle = 45; hex_inner_r = hole_width/sqrt(3); hex_h=hole_width+wall_thickness*2; hex_s=hex_h/sqrt(3); hex_d=2*hex_s; hex_t=hex_s/2; hex_x=hex_h/2*t...
glb/cad_126ae297934d.glb
Create a silica gel container with a base footprint of 125mm width, 158.5mm length, and 50mm height. The main body is a hollowed-out shell with 2mm thick walls. The interior cavity is formed by removing a volume created from the convex hull of two cylinders, each with a radius of 11.5mm, positioned at opposite ends of ...
rad = 11.5; samla_len = 297; base = [125, samla_len / 2 + rad - 2, 50]; dist = 100; tiltx = 3.5; tilty = 5; wall = 2; outer = 10; inner = 3; oversz = 1; hook_out = [ [5, 0], [0, inner], [30, inner], [25, 0] ]; hook_in = [ [5, 0], [0, inner], [30 + oversz, inner], [25 + oversz, 0] ]; grip_out = [ [0, 0], [wall, 0], [wal...
glb/cad_584b94fab361.glb
Create a drill template and washer for a drybox rod holder. Start by creating a cylinder with a diameter of 10mm and a height of 3mm. Within this cylinder, carve out a countersunk hole for a screw; the hole should have a base diameter of 3mm and a wider head diameter of 5mm, with the countersink depth extending 2mm int...
include <screw_sunk_mod.scad>; outer_dia = 10; height = 3; screw_head = 5; screw_dia = 3; difference() { cylinder(d = outer_dia, h = height, $fn = 128); screw_sunk(l = height, dh = screw_head, ds = screw_dia, lh = 2); translate([0, 0, 4.5]) rotate([0.0, -3.5, 0]) cube([outer_dia + 5, outer_dia + 5, 4], center...
glb/cad_647810b5ac27.glb
Create a drill template for a drybox by starting with a rectangular base measuring 47.1mm in width, 52.1mm in depth, and 3mm in height. Round one corner of this base with a radius of 16mm. Cut a square hole measuring 20mm by 20mm through the entire thickness of the base, centered relative to the overall width and depth...
base = [47.1, 52.1, 3]; rad = 16; bore = 3; hole = 20; difference() { union () { difference() { cube(base); translate([base.x - rad, base.y - rad, 0]) cube([rad, rad, base.z]); } translate([base.x - rad, base.y - rad, 0]) cylinder(r = rad, h = base.z, $fn = 128); } translate([(base.x - hole) / 2,...
glb/cad_fd156e126e66.glb
Create a Swatch Box consisting of a bottom base and a top cover. For the bottom base, create a rectangular floor with a height of 2mm. Build four outer walls 3mm thick and 22mm high. On the interior of the base, create 30 individual slots to hold swatches. Each slot space should be 80.4mm long and 2.5mm wide, separat...
part = "bot"; swatches = 30; text1 = "FILAMENT"; text2 = "SWATCHES"; text3 = "P L A"; case_w = 3; case_h = 2; case_o = 3; case_t = 20; slot_l = 3; slot_w = 1; slot_h = 20; swatch_x = 80; swatch_y = 2.3; swatch_z = 30; slot_x = swatch_x + 0.4; slot_y = swatch_y + 0.2; slot_z = swatch_z; inner_x = slot_x;...
glb/cad_5ba1134b495d.glb
Create a Bistable Auxetic Structure consisting of a repeating pattern of interconnected hexagonal cells. The overall layout should be arranged in 3 rows and 5 columns. Each unit cell is based on a hexagon with a side length of 25mm. Within each cell, create a geometry defined by a thickness of 2mm and a parameter t of...
hex_length=25; t=3; theta=15; thickness=2; sinew_length=.5; gap=.5; eps=.01; rows = 3; columns=5; function proj (coord, alpha, k) = ( [coord[0]+k*cos(alpha), coord[1]+k*sin(alpha)] ); function inters (p1, p2, angle1, angle2) = ( let (x=-(p1[1] - p2[1]- p1[0]*tan(angle1) + p2[0]*tan(angle2))/ (tan(angle1)-ta...
glb/cad_fd6dfd8368cd.glb
Create a Z-Axis Webcam Mount consisting of a mounting bracket, a supporting arm, and a camera platform. Start with a main mounting block that is 25mm wide, 25mm deep, and 38mm high. Hollow out the center of this block by removing a 23mm wide, 29mm high, and 25mm deep rectangular section from the front, leaving a 1mm wa...
difference() { translate([0,0,-4])cube([25,25,38]); translate([1,0,2.5]) cube([25,23,29]); translate([0,7,18]) rotate([90,0,90]) cylinder(6, 2.1, 2.1); } translate([-50,25,-4]) rotate([90,0,0]) cube([50,6,25]); translate([-50,38,-19.9]) rotate([45,0,0]) cube([25,6,25]); translate([-50,38,-47]...
glb/cad_4947e5a8e2f7.glb
Create a Z-Axis Webcam Mount consisting of a mounting bracket, a supporting arm, and a camera platform. Start with a main mounting block that is 25mm wide, 25mm deep, and 38mm high. Hollow out the center of this block to create a bracket that is 23mm deep and 29mm high, leaving a 1mm wall on the sides and a 2.5mm base....
difference() { translate([0,0,-4])cube([25,25,38]); translate([1,0,2.5]) cube([25,23,29]); translate([0,7,18]) rotate([90,0,90]) cylinder(6, 2.1, 2.1); } translate([-50,25,-4]) rotate([90,0,0]) cube([50,6,25]); translate([-50,38,-19.9]) rotate([45,0,0]) cube([25,6,25]); translate([-50,38,-47]...
glb/cad_3f39f49d1549.glb
Create a Z-Axis Webcam Mount consisting of a mounting base, a supporting arm, and a camera platform. Start with a rectangular base block 25mm wide, 25mm deep, and 38mm high. Carve a central rectangular void 25mm wide, 25mm deep, and 29mm high, leaving a 2.5mm thick floor and walls. Drill a horizontal hole 6mm in diamet...
difference() { translate([0,0,-4])cube([25,25,38]); translate([1,0,2.5]) cube([25,25,29]); translate([0,7,18]) rotate([90,0,90]) cylinder(6, 2.1, 2.1); } translate([-50,25,-4]) rotate([90,0,0]) cube([50,6,25]); translate([-50,38,-19.9]) rotate([45,0,0]) cube([25,6,25]); difference() { transla...
glb/cad_c4202d046a9b.glb
Create a Z-Axis Webcam Mount consisting of a base bracket and an angled mounting arm. Start with a rectangular base block 25mm wide, 25mm deep, and 38mm high. Carve a central rectangular cavity 25mm wide, 25mm deep, and 29mm high, leaving a 2.5mm thick floor. Drill a horizontal hole 6mm in diameter and 2.1mm in radius ...
difference() { translate([0,0,-4])cube([25,25,38]); translate([1,0,2.5]) cube([25,25,29]); translate([0,7,18]) rotate([90,0,90]) cylinder(6, 2.1, 2.1); } translate([-25,25,-4]) rotate([90,0,0]) cube([25,6,25]); translate([-25,38,-19.9]) rotate([45,0,0]) cube([25,6,25]); difference() { transla...
glb/cad_9a7e9c13695d.glb
Create a furniture wall spacer by constructing a cylinder with a diameter of 50mm and a height of 30mm. Use a facet resolution of 31 sides for the circular profile. Bore a concentric hole through the center of the cylinder from top to bottom with a diameter of 9mm.
$fn=31; difference(){ cylinder(h=30,d=50); cylinder(h=30+0.01,d=9); }
glb/cad_a8e70952849f.glb
Create a garden bench wall spacer by starting with a central cube that is 31mm wide, 31mm deep, and 35mm high. Center this cube on all axes. Subtract a vertical screw hole from the center of the cube. This hole begins as a cylinder with a 4mm diameter that runs through the entire 35mm height of the block. At the top ...
qo=0.01; $fn=13; distance=35; size=31; shape="s"; screwholediameter=4; screwholeheaddiameter=8; screwholeheaddepth=15; railswidth=2; module rail(){ rotate([90,0,0]){ if (shape=="c") cube([size,distance/3,railswidth]); else cube([size,distance,railswidth]); translate([size/2,0,0]) ...
glb/cad_945ee03514fa.glb
Create a stencil text key tag with a thickness of 2mm. The main body is a pill-shaped slab formed by the convex hull of two 20mm diameter cylinders positioned 30mm apart (center-to-center), resulting in a total length of 50mm and a width of 20mm. On the left side, centered vertically, create a circular hole with a di...
thickness=2; margin=3; text="246"; font="Scriber:style=Bold Stencil"; tagLength=50; scaleX=1; $fn=36; dia = 20; holeDia = 6; holeMargin = 3; module theText() scale([scaleX,1]) resize([0,dia-2*margin], auto=true) text(text, valign="bottom", font=font); shift = dia/2-holeMargin-holeDia-margin; differenc...
glb/cad_a61613acc489.glb
Create a protective case for a D1 Mini ESP32 with a separate lid. The main box is a rectangular prism with dimensions 50mm wide, 75mm long, and 25mm high, featuring rounded corners with a 4mm radius. The walls are 1.6mm thick. On the bottom face of the box, create two rectangular cutouts of 12mm by 8mm: one centered o...
part = "assembly"; tolerance = 0.3; wall = 1.6; box_width = 50; box_length = 75; box_height = 25; box_rounding = 4; d1_mini_esp32_width = 31.4; d1_mini_esp32_length = 38.6; d1_mini_esp32_thickness = 1; d1_mini_esp32_standoff = 3; pcb_width = 20; pcb_length = 50.6; pcb_thickness = 1.7; button_dia = 13.2; usb_mini...
glb/cad_4073a204b1d3.glb
Create a protective case for an ESP32 D1 Mini and an OLED display. The case consists of a bottom base and a top cover. Construct the bottom base as a rounded rectangular box with overall dimensions of 65mm width, 88mm length, and 25mm height. The walls should be 2mm thick with 4mm corner rounding. In the four corners ...
part = "assembly"; tolerance = 0.3; wall = 2; box_width = 65; box_length = 88; box_height = 25; box_rounding = 4; box_cable_dia = 5; d1_mini_esp32_width = 31.4; d1_mini_esp32_length = 39; d1_mini_esp32_thickness = 1; d1_mini_esp32_standoff = 3; d1_mini_esp32_reset_cutout = 7; pcb_width = 50; pcb_length = 70; pcb_t...
glb/cad_81a2bb778a23.glb
Create a battery organizer block with a total height of 20mm. The main body is a rectangular slab with chamfered base edges. Carve out a grid of cylindrical holes to hold batteries, each with a depth of 17mm. The grid is split into two main sections: a "READY" side and an "EMPTY" side, separated by a thin divider. ...
include <Chamfers-for-OpenSCAD/Chamfer.scad>; globalCircleQuality = 0; AA_RADIUS = 7.25 + 0.1; AAA_RADIUS = 5.25 + 0.1; height = 20; floor_height = 3; min_grid_gutter = 5; rows = 4; divider = 1; AA_cols_charged = 2; AA_cols_uncharged = 1; AAA_cols_charged = 1; AAA_cols_uncharged = 1; battery_depth = height - floor_...
glb/cad_eca94c81e486.glb
Create a parametric foot for an aluminum extrusion. Start by constructing a tapered rectangular body with a height of 15mm. The base of the body should be a 20mm by 20mm square, tapering upward to a top surface that is a 15mm by 15mm square. Centrally carve a stepped cylindrical hole through the body to accommodate a ...
EnableDebug = true; FootHeight = 15; BottomWidth = 15; BottomLength = 15; TopWidth = 20; TopLength = 20; ScrewHeadDiameter = 10; ScrewThreadingDiameter = 5; ScrewGripTickness = 5; ScrewHeadHoleOnBottom = true; ScrewClearances = 1; SurfaceTickness = 0.1; module generateBody() { hull() { translate...
glb/cad_74af28d3c815.glb
Create a Dead Blow Hammer TPU Flex Cover. Start by creating a hollow cylindrical cap with an internal diameter of 54.4mm and a wall thickness of 2.4mm. The face of the cover should have a thickness of 5mm, and the side walls should extend to an overlap height of 9mm. The internal bottom edge where the face meets the w...
face_dia = 54.4; flat_side_width = 0; wall_thick = 2.4; face_thick = 5.0; overlap_height = 9; face_edge_rnd_dia = 2.5; taper_hgt = 3; taper_top_edge_thk = .8; cover_inside_rnd_dia = 3.5; add_air_vents = "no"; vent_qty = 3; do_cutaway = "no"; add_dia_label = "add diameter label"; air_vent_width = .6; air_ve...
glb/cad_07f3d37ad12e.glb
Create a flexible name tag that reads "Cale" using a bold sans-serif font. The letters should have a height of 28mm and an extrusion thickness of 4.5mm. All letters must be joined at the bottom by a continuous horizontal connecting bar. This base bar should have a thickness of 5.6mm (20% of the font size) and an extr...
textstring="Cale"; fontname="Arial:style=Bold"; RoundedBase=0; do_shift_font="automatic"; textsize=28; textheight=4.5; baseheight_percent=.4; baseheight=2; basethickness_percent=0.2; basethickness=textsize*basethickness_percent; font_catch_diacritical_sign=2.3; base_radius_add_percent=.1; base_radius_add=texts...
glb/cad_b8387425459b.glb
Create an Analog Mechanical Tally Sentiment Tracker mount. Start with a base plate formed by the convex hull of three circles: two circles with a diameter of 5mm positioned 31mm apart at coordinates (-15.5, 0) and (15.5, 0), and a third circle with a diameter of 16mm positioned at (0, 10). Extrude this base to a thickn...
$fn=50; screw_hole=2; screw_shaft_depth=0.2; screw_head_dia=4; screw_head_depth=1; screw_spacing = 31; reset_rotor_spacing = 10; reset_rotor_dia = 14; reset_rotor_upper_dia = 10; reset_rotor_height = 10; reset_rotor_cover_thickness = 1; difference() { union() { base_thickness = screw_shaft_depth+screw...
glb/cad_20f421f190c2.glb
Create a protective case for an IP6518 DC to 5V buck converter consisting of a top and bottom shell. The main internal cavity is 22.5mm wide, 55mm long, and 16mm high, with a wall thickness of 1.6mm and rounded corners of 2mm. For the bottom shell, create a base 4mm high with a 1.6mm thick recessed area for the circui...
include <honeycomb-openscad/honeycomb.scad>; Print_Orientation = true; Render_Top = true; Render_Bottom = true; Thickness = 1.6; Top_Bottom_Thickness = 1.6; Enable_Honeycomb = true; Chamfer_Case_Screw_Holes = true; Mount_Holes = 1; Size_Tolerance = 1; module __end_customizer_options__() { } $fa = $preview ? $fa ...
glb/cad_b712a3089660.glb
Create a pencil sharpener case consisting of two main parts: a base and a lid. The base is a flattened cylinder with a diameter of 50mm and a wall thickness of 1.21mm. The main body is scaled along the Y-axis by a factor of 0.6 to create an oval profile. The base features a central hollow cavity and a finger hole 12m...
person = ["Name It",12,24,63]; { $fn = 80; cor = 0.4; wall = 1.21; width = 25; depth = 13.85+0.5; depth2 = 6.6; height = 26.1; clip = 5.0; sdia = 8.3; ldia = 11.3; dia = 50; topheight = 10.0; hole = 5.0; form = 0.6; bottomheight = 40.0; fingerhole = 12.0; name = person[0]; size = person[1]; angle = person[2]; ...
glb/cad_54392ef307f5.glb
Create a simple parametric credit card wallet. Start by constructing a main rectangular block with a width of 61mm, a total thickness of 6.1mm, and a height of 90mm. Apply a 2mm rounding to the vertical edges of this block. Inside this block, create three hollow rectangular slots for cards. Each slot must be 55mm wid...
number_of_cards = 3; card_thickness = 0.9; wall_thickness = 0.8; cutout_radius = 11; length = 61; height = 90; card_length = 55; base_height = 3; rounding = 2; wallet_thickness = ((number_of_cards * card_thickness) + ((number_of_cards + 1) * wall_thickness)); x_off = (length-card_length)/2; $fn=150; difference() {...
glb/cad_52e38d6e2739.glb
Create a replacement rivet set consisting of three separate components: a male end, a female end, and a spacer. For the male end, create a flat cylinder with a diameter of 14mm and a height of 1.2mm. Attached to the center of this flat base, create a peg with a diameter of 3.3mm. The peg consists of a lower shaft and ...
is_ball_socket = true; has_spacer = true; male_flat_part_diameter = 14; female_flat_part_diameter = 14; male_flat_part_height = 1.2; female_flat_part_height = 1.2; spacer_diameter = 14; spacer_height = 1.6; female_ball_gap = 3; peg_diameter = 3.3; peg_length = 9.5; hole_depth = 5; outer_hole_diameter = 8; peg_clearance...
glb/cad_0bb0ac030171.glb
Create a Raspberry Pi Compute Module 4 IO Board Enclosure consisting of a main box and a lid. The main body is a rectangular block 92mm wide, 162mm long, and 42mm high. Round the exterior vertical edges with a 4mm radius. Hollow out the interior to create a shell with 4mm thick walls. On the right side panel, create s...
m=4; s=1.5; k=12; $fn=30; depth=92; hole=2; length=162; cpudepth=41; cpuLength=91; elevation=1; difference(){ union(){ translate([0,0,-m])minkowski(){cube([depth,length, 25]); cylinder(25,m,m); } } translate([m/2,m/2,34])minkowski(){cube([depth-m+0.2,length-m+0.2, 2]); cylinder(2,m,m); } union(){ cube([depth,length,4...
glb/cad_c46b632e46a9.glb
Create a parametric keychain nametag by starting with a rectangular base 50mm long, 15mm wide, and 2mm thick, with all four corners rounded to a 5mm radius. On the left side of the base, center a circular hole with a radius of 1.5mm that passes completely through the thickness of the material. In the center of the rema...
text = "Nametag"; length = 50; width = 15; thickness = 2; font_size = 7; rounding = 5; txtwindow_length = length - 10; txtwindow_width = 10; txtwindow_height = 1; txtwindow_offset = (length-txtwindow_length)/2 + 1.5; hole_radius = 1.5; $fn = 150; difference() { linear_extrude(thickness) rounding(rounding)...
glb/cad_9b31976e05bd.glb
Create a parametric keychain nametag by starting with a base rectangular plate measuring 50mm in length, 15mm in width, and 2mm in thickness, featuring rounded corners with a radius of 5mm. Center a cylindrical hole with a radius of 1.5mm through the thickness of the plate, positioned at the far left end. In the center...
text = "Nametag"; length = 50; width = 15; thickness = 2; rounding = 5; font_size = 7; cutout_length = length - 10; cutout_width = 10; cutout_height = 1; cutout_offset = (length-cutout_length)/2 + 1.5; hole_radius = 1.5; $fn = 150; difference() { linear_extrude(thickness) rounding(rounding) square([le...
glb/cad_b345a326d05f.glb
Create a letter bead keychain consisting of a series of rotating cubes on a central rod. For each letter of the name "Franziska", create a rounded cube with a total size of 12mm (based on an 8mm font size plus 2mm walls). Each cube must be 10mm wide. On four orthogonal faces of each cube, emboss the same letter "F" (...
debug=0; all="Franziska"; text=[all,all,all,all]; wall=1; fontsize=8; emboss=wall*.7; cubegap=.5; cubesize=fontsize+wall*2; cubewidth=cubesize*.8; cubedist=cubewidth+cubegap; rounded=wall; d_rod=4; wiggle_rod=.4; d_hole=d_rod+2*wiggle_rod; keyringhole=5; keyringwall=2.5; d_keyring=keyringhole+2*keyringwall; $fn=2...
glb/cad_be07ff34eece.glb
Create a configurable cable label consisting of two interlocking symmetrical halves. The internal cavity for the cable is an elongated cylinder with a diameter of 6.8mm (6.6mm plus a 0.1mm wiggle on all sides) and a height of 6.6mm to accommodate oval cables. Construct the bottom half as a solid rectangular block that...
$fn=40; cable_dia=6.6; cable_flat=cable_dia; text="Prusa"; wiggle=.1; cable_dia_wiggle=cable_dia+2*wiggle; cable_flat_wiggle=cable_flat+2*wiggle; wall=1; sink_in=wall/2; groove=1; groove_cube=sqrt(2)*groove; nose=0.75; font="Arial Rounded MT Bold"; size=6.5; updownaroundtext=.75*wall; leftrightaroundtext=1*wall; ...
glb/cad_df42dbfa7762.glb
Create a signal tower consisting of a base, multiple ring plates, a central tube, and a cap. Start with a cylindrical bottom base 80mm in diameter and 25mm high. The base features a central hole 5mm in diameter and two angled side cutouts for LEDs. Create ring plates to hold LED rings (inner diameter 27mm, outer di...
use <rcolyer-threads/threads.scad> use <UB/libraries/ub.scad> $fa = 4; $fs = 0.4; selection = 0; layer_height = 0.15; nozzle_diameter = 0.4; tolerance = 0.35; eps = 0.01; wall = nozzle_diameter * 4; case_dia = 80; center_dia = 16; center_hole = 12; base_height = 15; bottom_height = 25; bottom_screw_dia = 2; bot...
glb/cad_53dd211ac0d3.glb
Create a Customizable Duct Flange consisting of a flat circular face and a concentric cylindrical collar. Start by creating a circular face with a diameter of 160mm and a thickness of 5mm. Centered on this face, add a hollow cylindrical collar with an outer diameter of 120mm, a height of 35mm, and a wall thickness of 2...
Face_shape = "Circle"; Face_width = 160; Face_thickness = 5; Collar_diameter = 120; Collar_length = 35; Collar_thickness = 2; Lip_radius = 1; Hole_diameter = 3; Center_the_holes = "Yes"; Distance_outer_face_edge_to_hole = 10; Hole_type = "Counterbore"; Counterbore_diameter = 6; Counterbore_depth = 1; Countersink_...
glb/cad_854623a77f22.glb
Create a spice board designed to hold one or more cylindrical containers. For a single-container unit, the overall width of the board is 85.6mm (calculated as the container diameter of 80mm plus two 2.8mm walls). The main body is a vertical support with a total depth of 200mm. The rear section features a rectangular m...
qo=0.01; $fn=55; c_diameter=80; count=1; w_frame=200; wall=2.8; marquee=1.5; showcontainer="o"; frontslot=5; middleheight=0.65; module holder(i){ difference(){ union(){ cylinder(h=w_frame,d=o_diameter()); if (i!=1) mirror([180,0,0]) connector(); if (i!=count) c...
glb/cad_a7d6c81cd91b.glb
Create a spice board designed to hold three spice containers. The board consists of three identical circular holders aligned in a row, separated by walls 2mm thick. Each holder is based on a container diameter of 43mm, with an outer diameter of 46.5mm (calculated as container diameter plus 1.5mm marquee on each side pl...
qo=0.01; $fn=89; c_diameter=43; count=3; w_frame=70; wall=2; marquee=0.75; showcontainer=false; frontheight=10; module holder(i){ difference(){ union(){ cylinder(h=w_frame,d=o_diameter()); if (i!=1) mirror([180,0,0]) connector(); if (i!=count) connector(); ...
glb/cad_26bff8182766.glb
Create a car wheel cap consisting of a circular base and a hollow cylindrical body. Start with a solid circular base 62.5mm in diameter and 2mm thick. On top of this base, build a cylindrical wall with an outer diameter of 60mm and a height of 6.5mm. Above this wall, add a second cylindrical section with an outer diame...
$fn=128; d=[62.5,60,61.5]; z=[8-6,12.5-(8-6),3]; wall = 2; latches = 16; latchGap = 5; r = [-1.5,0.25,-1,-0.3,0.4,1,1,-1]; not=0.002; cylinderRounded(d=[0,d[0]],h=z[0],r=[0,r[0],0,r[1]]); difference(){ union(){ translate([0,0,z[0]]) cylinderRounded(d=[d[1]-2*wall,d[1]],h=z[1],r=[r[7],r[2],0,r[3]]); transla...
glb/cad_da60be8c47ba.glb
Create a Parametric Hex Wrench Size Identifier Tag by starting with a solid cube that measures 7mm on all sides. Centered on the X and Y axes but shifted slightly along the Z axis, carve a hexagonal hole completely through the cube. This hexagon should have a side length of 1.5mm. On the top face of the cube, add the a...
use <MCAD/regular_shapes.scad>; $fa = 1; $fs = 0.1; side = 1.5; d = side * 2; apothem = 0.5 * sqrt(3) * side; size = 7; spacing = (size - apothem * 2) / 2; difference() { cube([size,size,size]); translate([-1,spacing,spacing]) { cut_hexagon(); } } translate([0,0.5,size]) { ...
glb/cad_f94e2cd3c5d7.glb
Create an XY6020L enclosure consisting of a main housing and a tray. First, construct the housing as a hollow rectangular shell with outer dimensions of 117mm width, 80mm depth, and 67mm height. The walls should be 3mm thick. On the top face, create a centered rectangular screen cutout measuring 71.5mm by 39mm, and a...
include <../libs/hardware.scad> board_w = 109; board_d = 72; tray_offset = 8; tray_thick = 3; tray_border_offset = 4; tray_base_h = 1; complete_tray_offset = -5; friction_fit = 0.2; box_height = 67; board_offset = 4; module terminal(){ cube([12, 16.2, 13]); } module fan() { cube([41, 20, 41]); } module po...
glb/cad_0f21c6f93c8e.glb
Create a "Chain of Letters" fidget keychain consisting of a series of interconnected cubes, each featuring a letter of a specified word. For each letter, create a rounded cube with a side length of 9mm and corner radii of 1mm. On each of the four side faces of the cube, emboss the same letter with a font size of 7mm a...
$fn = 32; text="Chain"; wall=1; fontsize=7; emboss=wall*.7; cubesize=fontsize+wall*2; cubewidth=cubesize; rounded=wall; chains=len(text); module roundedcube(size,width,rounded) { s=size-2*rounded; w=width-2*rounded; hull(){ for(x=[-w/2,w/2]) for(y=[-s/2,s/2]) for(z=[-s/2,s/2]) ...
glb/cad_52b37313ad3c.glb
Create a Stackable Slot Holder by constructing a rectangular box with an open top and front. The outer dimensions of the main body should be 80.2mm wide, 15.4mm deep, and 46.6mm high. The walls and floor are 1.6mm thick, except for the rear wall, which is 1.2mm thick. Carve out a central rectangular cavity starting 1.6...
HoleDepth=13; HoleWidth=77; HoleHeight=45; SideWallThick=1.6; WallThick=1.2; FloorThick=1.6; FeetDepth=2; FootWidth=2; ToleranceGap=0.15; module MainHolder() { difference() { cube([HoleWidth+(SideWallThick*2),HoleDepth+(WallThick*2),HoleHeight+FloorThick]); translate([SideWallThick,Wall...
glb/cad_5f41d941bdf4.glb
Create a pet bottle waterer spike cap. Start by creating a hollow cylinder with an outer radius of 14.165mm (28.33mm diameter), a wall thickness of 1mm, and a total height of approximately 12mm. Inside the cylinder, create a screw thread that begins 2.5mm from the base. The thread should have a pitch of 3.18mm and wr...
28PCO1810 (); $fn=64; module screw (Sta,End,Pas,Ray){ Ste=5; for (Rz = [Sta:Ste:End]) { a= Rz>Sta ? 1: 0; b= Rz<End ? 1: 0; Ap=Pas*(Rz-Sta)/360; Ap1=Ap+Pas*Ste/360; hull (){ rotate ([0,0,Rz])translate([Ray,0,Ap])motif (a); rotate ([0,0,Rz+Ste]) translate([Ray,0,Ap1])motif (b); } } } module motif (a){ cube(...
glb/cad_58f2b828c044.glb
Create a pet bottle waterer spike consisting of a wide base and a long tapered point. Start by creating a cylindrical base with a diameter of 32mm and a height of 25mm. Within this base, remove a central cylindrical core with a diameter of 4.5mm that extends vertically through the entire model. From the top of the bas...
high = 100; hole_nr = 4; hole_diameter= 2; middle_hole_diameter = 4.5; hol_2 = "yes"; hol_3 = "yes"; hol_4 = "yes"; translate([0,0,0.2]) rotate ([0,180,0]) include <NecksCaps18mm.scad>; rotate ([0, 0, 0]) difference () { union () { translate([15.2,0,-12.3]) rotate ([0, 0, 0]) c...
glb/cad_8d6681e1fc91.glb
Create a Caroma Dual-Flush Button Replacement assembly consisting of a frame and two movable buttons. First, construct the frame. Create a top rectangular section 133mm wide, 40mm deep, and 11mm high with a curved upper surface. Below this, add a central mounting brace 20.6mm wide and 13mm high, featuring a vertical ...
$fn=100; wall = 1; icon_depth = 2; icon_size = 15; top_width = 133; top_depth = 40; top_height = 11; bottom_width = 124-1; bottom_depth = 31-1; descender_up = 20.5; descender_down = 37; screw_gap_width = 4.32; gap_around_buttons = 1; bottom_height = descender_down-descender_up + wall + 2; brace_height = bottom_hei...
glb/cad_31c001ebcbec.glb
Create a Pump Hose Adapter consisting of a central vertical tube and a supporting arm. Start by constructing a vertical tube with a total height of approximately 27.95mm. The base of the tube is a cylinder with a diameter of 6mm and a height of 14.5mm. Above this, add a second cylindrical section with a diameter of 8.6...
$fn = 100; d1 = 6; h1 = 14.5; d_ring = 7.3; h_ring = 2; z_ring = 12; d2 = 7; h2 = 7.45; d3 = 17.8; h3 = 3; d4 = 6.25; h4 = 19.5; id = 3.5; poker_h1 = 1.36; poker_d1 = 6; poker_x1 = 6.43; poker_cube1 = poker_x1 - poker_d1/2; poker_h2 = 16; poker_d2 = 8.6; poker_x2 = 9; poker_cube2 = poker_x2 - poker_d2/2; poker_...
glb/cad_c1eb852be3f1.glb
Create a Pet Collar Tag with a thickness of 1.8mm. The main body is a rectangular plate measuring 72.5mm in length and 25mm in width. The two short ends of the plate are rounded, featuring a hull of two cylinders with a radius of 9mm. At each rounded end, create a centered oblong hole. This hole is formed by the hull...
pet_name="Spot"; phone_number="555-555-5555"; collar_size = "L"; length_factor = 2.9; tag_thickness = 1.8; text_type = "Debossed"; if (collar_size=="S") { echo ("SMALL"); radius = 3; strap_width = 3; TagWithText(){ MakeTag(length_factor*18,15,tag_thickness,radius,strap_w...
glb/cad_916ed84088fe.glb
Create a customizable key tag with a total width of 55mm, a height of 20mm, and a thickness of 2mm. The main body should be a rounded rectangle with a corner radius of 2mm. On the left side, centered vertically, integrate a circular hole with a diameter of 3.33mm. To create the recessed area for the text, remove a cent...
text = "Kitchen"; height = 20; width = 55; thickness = 2; text_height = thickness / 3; text_offset = -2; font = "Liberation Sans:style=bold"; $fn = height * 2; bore = height / 6; corner_radius = height / 10; union() { difference() { linear_extrude(thickness) tag(); translate([0, -height/2 + corn...
glb/cad_259e6006ecb1.glb
Create a Qube 500 Tray, which is a shallow rectangular container with rounded corners. The main body is formed by a hull of four cylinders: two positioned at [5, 5, 0] and [75, 5, 0], and two at [5, 35, 0] and [75, 35, 0], all with a radius of 5mm and a height of 20mm. Cut two identical slots through the front and bac...
Object = "Tray"; Mode = "Vase Mode"; Tol=0.25; Definition = 60; WT = 2; BT = 2; HMN = 4; TVMN = 1; TD = 40; TR = 20; PVMN = 3; PD = 40; $fn=Definition; MinTR = (TR>=5) ? 5 : TR; MaxTR = (TR>=TD/2) ? TD/2 : TR; module Tray() { difference() { hull() { translate([MinTR,MinTR,0]) cyli...
glb/cad_2eff6bc62275.glb
Create a Children's Pedal Tractor Cart Hook by combining three main geometric sections. First, construct a base assembly consisting of a rectangular block 10mm wide, 40mm long, and 4mm high, centered on the X-axis from -5mm to 5mm. Integrate two cylinders with a 5mm radius and 4mm height, one centered at the origin and...
union () { a(); translate ([5-4.5/2,10-5,0]) rotate([0,90,0]) { intersection(){ cylinder(h=4.5, r=10, center=true,$fn=120); scale([1,1,0.5]) sphere(r=10,$fn=120); } translate ([0,0,0]) color("green") cylinder(h=35, r=5, center=false...
glb/cad_87fed12c876f.glb
Create a Quarto game set consisting of a game board and 16 playing pieces. For the pieces, create variations based on four geometric attributes: height (either 35mm or 60mm), cross-section (either a smooth cylinder with a 12.5mm radius or a square prism with a 13.5mm radius), top profile (either a dome or a flat top)...
magnet_r = 5.3; magnet_h = 10; magnet_offset=0.4; ball_d = 5.75; $fn = $preview ? 32 : 128; module piece(a, b, c, d){ h = a ? 35 : 60; r = b ? 12.5 : 13.5; fn = b ? $fn : 4; arc = 360 / fn; difference() { scale([ 1, 1, h / 60 ]) difference() { rotate([ 0, 0, 45 ]) cylinder(r = r, h = 60, $fn = fn...
glb/cad_b0fa1f960aba.glb
Create a Quarto game set consisting of 16 game pieces and a game board. For the pieces, create variations based on four geometric attributes: height (either 35mm or 60mm), cross-section (either a smooth cylinder with a radius of 12.5mm or a square prism with a radius of 13.5mm), top shape (either a dome or a flat sur...
magnet_r = 5.3; magnet_h = 10; magnet_offset=0.4; ball_d = 5.75; $fn = $preview ? 32 : 128; module piece(a, b, c, d){ h = a ? 35 : 60; r = b ? 12.5 : 13.5; fn = b ? $fn : 4; arc = 360 / fn; difference() { scale([ 1, 1, h / 60 ]) difference() { rotate([ 0, 0, 45 ]) cylinder(r = r, h = 60, $fn = fn...
glb/cad_8fd73f7bfe21.glb
Create a Quarto game set consisting of a game board and 16 pieces. For the pieces, create variations based on four geometric attributes: height (either 35mm or 60mm), cross-section (either a circle with a radius of 12.5mm or a square with a radius of 13.5mm), top profile (either a dome or a flat surface), and side te...
magnet_r = 5.3; magnet_h = 10; magnet_offset=0.4; ball_d = 5.75; $fn = $preview ? 32 : 128; module piece(a, b, c, d){ h = a ? 35 : 60; r = b ? 12.5 : 13.5; fn = b ? $fn : 4; arc = 360 / fn; difference() { scale([ 1, 1, h / 60 ]) difference() { rotate([ 0, 0, 45 ]) cylinder(r = r, h = 60, $fn = fn...
glb/cad_cb2e67778aec.glb
Create a Quarto game set consisting of a game board and 16 pieces. For the pieces, create variations based on four geometric attributes: height (either 35mm or 60mm), cross-section (either a smooth cylinder with a radius of 12.5mm or a square prism with a radius of 13.5mm), top profile (either a dome or a flat surfac...
magnet_r = 5.3; magnet_h = 10; magnet_offset=0.4; ball_d = 5.75; $fn = $preview ? 32 : 128; module piece(a, b, c, d){ h = a ? 35 : 60; r = b ? 12.5 : 13.5; fn = b ? $fn : 4; arc = 360 / fn; difference() { scale([ 1, 1, h / 60 ]) difference() { rotate([ 0, 0, 45 ]) cylinder(r = r, h = 60, $fn = fn...
glb/cad_ccbefff58430.glb
Create a Quarto game set consisting of a game board and 16 playing pieces. For the playing pieces, create variations based on four geometric attributes: height (either 35mm or 60mm), cross-section (either a smooth cylinder with a radius of 12.5mm or a square prism with a radius of 13.5mm), top profile (either a flat ...
magnet_r = 5.3; magnet_h = 10; magnet_offset=0.4; ball_d = 5.75; $fn = $preview ? 32 : 128; module piece(a, b, c, d){ h = a ? 35 : 60; r = b ? 12.5 : 13.5; fn = b ? $fn : 4; arc = 360 / fn; difference() { scale([ 1, 1, h / 60 ]) difference() { rotate([ 0, 0, 45 ]) cylinder(r = r, h = 60, $fn = fn...
glb/cad_d0e946dbae8f.glb
Create a Quarto game set consisting of a game board and 16 playing pieces. For the pieces, create variations based on four geometric attributes: height (either 35mm or 60mm), cross-section (either a smooth cylinder with a radius of 12.5mm or a square prism with a radius of 13.5mm), top shape (either a dome or a flat ...
magnet_r = 5.3; magnet_h = 10; magnet_offset=0.4; ball_d = 5.75; $fn = $preview ? 32 : 128; module piece(a, b, c, d){ h = a ? 35 : 60; r = b ? 12.5 : 13.5; fn = b ? $fn : 4; arc = 360 / fn; difference() { scale([ 1, 1, h / 60 ]) difference() { rotate([ 0, 0, 45 ]) cylinder(r = r, h = 60, $fn = fn...
glb/cad_24dfcef34a39.glb
Create a Quarto game set consisting of a game board and 16 pieces. For the pieces, create variations based on four geometric attributes: height (either 35mm or 60mm), cross-section (either a circle with a radius of 12.5mm or a square with a radius of 13.5mm), top profile (either a dome or a flat surface), and side te...
magnet_r = 5.3; magnet_h = 10; magnet_offset=0.4; ball_d = 5.75; $fn = $preview ? 32 : 128; module piece(a, b, c, d){ h = a ? 35 : 60; r = b ? 12.5 : 13.5; fn = b ? $fn : 4; arc = 360 / fn; difference() { scale([ 1, 1, h / 60 ]) difference() { rotate([ 0, 0, 45 ]) cylinder(r = r, h = 60, $fn = fn...
glb/cad_21175783ca54.glb
Create a Quarto game set consisting of a game board and 16 playing pieces. For the pieces, create variations based on four geometric attributes: height (either 35mm or 60mm), cross-section (either a circle with a radius of 12.5mm or a square with a radius of 13.5mm), top profile (either a dome or a flat surface), and...
magnet_r = 5.3; magnet_h = 10; magnet_offset=0.4; ball_d = 5.75; $fn = $preview ? 32 : 128; module piece(a, b, c, d){ h = a ? 35 : 60; r = b ? 12.5 : 13.5; fn = b ? $fn : 4; arc = 360 / fn; difference() { scale([ 1, 1, h / 60 ]) difference() { rotate([ 0, 0, 45 ]) cylinder(r = r, h = 60, $fn = fn...
glb/cad_b11d9b832396.glb
Create a Dual-View Lenticular Keytag consisting of a flat base and two overlapping words. Start by creating a rectangular base 50mm long, 25mm wide, and 2mm thick. At the left end of the base, add a circular ring for a keyhole with an outer diameter of 6mm and an inner hole diameter of 2mm, positioned so the ring is ce...
length=50; height=25; thickness=2; gap=2; key_diam=2; first_word="KEY"; second_word="TAG"; size=15; module keychain (x, y, thickness) { linear_extrude(thickness) difference() { square([x, y]); translate([.5*key_diam+gap, y/2, 0]) circle(d=key_diam); } } module letters(first_letter, ...
glb/cad_ed7ddb11dda4.glb
Create a mobile phone stand with a total width of 60mm. The main structure consists of a curved back support and a front base. Construct the back support by creating a curved wall using a 110-degree arc extrusion. This wall should be formed by the difference between two concentric squares: an outer square of 41mm and...
module iphone_xs() { iphone_width = 70.9; iphone_height = 143.6; iphone_thickness = 7.7; screen_width = 70.9; screen_height = 143.6; screen_thickness = 1.0; union() { difference() { cube([iphone_width, iphone_height, iphone_thickness]); translate([(iphone_wi...
glb/cad_fdae3fba5d72.glb
Create a smartphone stand consisting of two main intersecting panels, both featuring rounded edges and corners. First, construct the base panel by creating a rectangular block 60mm wide, 82mm deep, and 10mm thick, then apply a 1.5mm radius fillet to all edges. Rotate this base 30 degrees along the X-axis. Carve a recta...
module base(){ difference(){ rotate([30,0,0]) translate([0,-16,0]) minkowski(){ cube([60,82,10],center=true); translate([0,0,0]) sphere(1.5,$fn=32); } rotate([30, 0, 0]) minkowski(){ translate([0,12.5,0]) ...
glb/cad_0a143b299c8a.glb
Create a phone stand consisting of two primary components: a curved support arm and a base. The support arm is a semi-circular ring with an outer radius of 60mm, a height of 40mm, and a wall thickness of 6mm. This ring is not a full semi-circle but is truncated. To allow for adjustable angles, create seven equidistan...
$fn = 64; h = 40; r = 60; relacao = 1 / 10; espessura = r * (1 - relacao); apoio_tamanho = r - 1; angulo_encaixe = -20; module circunferencia(h, r, espessura){ difference(){ cylinder(h=h, r=r, center=true); cylinder(h=h*2, r=espessura, center=true); } } module semi_circ(h, r, espessu...
glb/cad_08ee4d8e40ae.glb
Create a piano keyboard display fix bracket with a total length of 80mm. The main body is a flat base with a thickness of 2.5mm. On one side of the base, extend a vertical wall to a height of 4mm. Along the top edge of this base, incorporate a recessed channel that is 6.5mm deep and 6mm wide. At the far end of the br...
length = 72 + 8; shorten = 3; toothHeight = 0.6; toothDepth = 2.5; tapeWidth = 16 + 0.5; tapeSep = 30 + tapeWidth; pcbPlusBack = 3.85 + 0.15; connectionDepth = 6; lcdGapDepth = 6.5; spineDepth = 2.5; farEdge = connectionDepth + toothDepth * 0.5; rotate([0, -90, 0]) difference() { linear_extrude(length, center = true)...
glb/cad_250509f54176.glb
Create four tire label valve caps. Each label starts with a base plate measuring 40mm by 80mm with a thickness of 4mm, centered on the origin. The base plate has a rounded, organic perimeter formed by the convex hull of six cylinders with a 2mm radius and 2mm height, positioned at coordinates (±10, 23), (±10, -3), and ...
label_Front_Left = "FL"; label_Front_Right = "FR"; label_Rear_Left = "RL"; label_Rear_Right = "RR"; translate([20,30,0])label(label_Front_Left); translate([-20,30,0])label(label_Front_Right); translate([20,-30,0])label(label_Rear_Left); translate([-20,-30,0])label(label_Rear_Right); module label(letters){ tra...
glb/cad_d32c6eafeba9.glb
Create a 3D sign that reads "Danger!" using the Phantom Fingers font. The model consists of two layers of geometry. First, create the primary text with a font size of 20mm and extrude it to a height of 6mm. Second, create a backing plate by taking the same text, applying an offset of approximately 3.33mm (one sixth of ...
text = "Danger!"; size = 20; namefont = "Phantom Fingers:style=Regular"; main_letter_height=6; module sign(t =text){ union(){ linear_extrude(main_letter_height) text(t,size,font=namefont); color("darkslategray") { linear_extrude(1) { offset(size/6) { fill() { ...
glb/cad_86d2182b628e.glb
Create a Personalized Shoelace Clip consisting of two identical mirrored components. Each component is a flat plate 5mm thick. The main body is based on a circular ring with an outer radius of 4.5mm and an inner radius of 2mm. This ring is modified into a C-shape by removing a rectangular section to create an opening, ...
text1="BART"; text2="LISA"; font="Liberation Sans:style=Bold"; size=4; emboss=0.6; outer_r=4.5; inner_r=2; inner_r2=1.5; length=10; angle=30; width=5; $fn=48; module clip(){ mirror([1,0,0])translate([length/2,0,0])linear_extrude(width){ difference(){ circle(outer_r); circle(inner_r); } trans...
glb/cad_8a95719e814f.glb
Create a M3 T-nut drop-in for 2020 aluminum profiles. Start by creating a main body that fits within a 20mm x 20mm profile slot. The body should have a width of 1.74mm and a depth of 3.7mm, with a total gap width of 5.9mm. The top surface must feature a central cylindrical hole for an M3 bolt. This hole should be tap...
$fn=32; bolt=3-.1; enter=3+.3; angle=10; prof=20; gap = 6.2-.3; wall = 1.74; depth = 3.7; width1 = 4.6; width2 = 10; r1 = .7; r2 = .7; not = 0.01; inf=100; d(){ i(){ negativeProfile(); } nutNegative(bolt,enter); } *d(){ i(){ tr([h/2,0,wall/2],[0,-90,0]) linear_extrude(height=h) block(); r(30) cub...
glb/cad_9acdd6dc7d30.glb
Create a Flex shutter by starting with a rectangular base plate measuring 61.3mm by 90mm with a thickness of 0.45mm. From this base, remove a series of rectangular slots to create a flexible mesh pattern. The slots are arranged in a grid where the primary cutouts are 6.2mm wide and 14mm long. These cutouts are spaced w...
include <ub.scad> spread=10; spreadx=7.5; 2D=0; *H(); if(!2D)difference(){ cube([61.3,90,.45],center=true); Linear(y=1,x=0,e=4,es=spread*2,s=0,center=true){ Linear(e=9,es=spreadx,s=0,center=true)H(); } Linear(y=1,x=0,e=3,es=spread*2,s=0,center=true){ Linear(e=8,es=spreadx,s=0,center=true)...
glb/cad_c911aba12484.glb
Create a quarter turn water shut off valve handle. Start with a central cylindrical body 22mm in diameter and 14mm high. Hollow out the center of this cylinder with a 19.5mm diameter hole 19mm deep, but leave a 7.5mm diameter recess at the bottom 3mm deep for a screw. Within the center body, create a smaller internal v...
$fn = 100; difference() { union() { flatKnob(); centerBody(); knobBraces(); centerBraces(); } words(); } module centerBraces() { rotate(30, [0, 0, 1]) { translate([0, -7, 4.5]) { cube([2, 6, 9], center=true); } } ro...
glb/cad_236e5ade72dd.glb
Create a Screwed Bench Dog by constructing a main body that transitions from a cylinder to a tapered top. Start with a cylinder 20mm high with a radius of 8mm. Create a second cylinder with a radius of 9.5mm and a height of 15mm, positioned so its base is aligned with the first. Use a hull operation to merge these two ...
dog_diameter = 19; height = 20; taper = 0.75; screw_diameter = 4; countersunk = true; EPS = 0.01; $fa = 6; $fs = 0.2; module screw(h, r, countersunk=true) { screw_r = r + 0.5; translate([0,0,-EPS]) cylinder(h + EPS, r=screw_r); if(countersunk) translate([0,0,h - screw_r + EPS]) cyli...
glb/cad_7fde8a71bfd4.glb
Create a lid knob replacement consisting of a wide base and a central connector. Start with a lower disk that has a radius of 23mm and a height of 8mm. Add a rounded edge to this disk with a radius of 4mm. Above this, create a closing cone that transitions from a radius of 27mm at the bottom to a radius of 20mm at the ...
$fs = 1; $fa = 1; total_radius = 27; edge_radius = 4; total_height = 15; taper_radius = 20; connector_height = 8; connector_radius = 7.5; hole_radius = 2.25; hole_depth = 20; hole_edge_radius = 0.5; disk_radius = total_radius - edge_radius; cylinder(h=2*edge_radius, r=disk_radius); translate([0,0,edge_radius]) rotat...
glb/cad_fa56adfb26b2.glb
Create a bicycle kickstand cap by constructing a solid form that blends a sphere and a ring. Start with a sphere with a radius of 15mm centered at the origin. At a height of 35mm along the Z-axis, place a thin ring with an outer radius of 11mm and a thickness of 1mm. Create a smooth hull that connects the sphere to thi...
$fn=50; difference() { union() { hull() { translate([0,0,35]) rotate_extrude() translate([10, 0, 0]) circle(r = 1); translate([0,0,15]) sphere(15); } } translate([0,0,5]) cylinder(100,18/2,18/2...
glb/cad_33ac0beacaad.glb
Create a refrigerator water dispenser drip tray screen. Start with a main circular disk that has a diameter of 260mm and a thickness of 3mm. Modify this disk by removing a large rectangular section from one side to create a flat edge, resulting in a semi-circular or crescent-like base. Within the remaining surface of...
$fn=100; NumberSlats=30; SlatWidth=3; SlatGap=3; ShortestSlat=6; TotalWidth=55; TotalLength=190; OverallDiameter=260; Thickness=3; OffSetX=15; OffSetY=0; OffSetDiameter=210; OffSetThickness=6; difference(){ cylinder(d=OverallDiameter,h=Thickness); translate([-(OverallDiameter/2+TotalWidth),-150,-2.5])cube([Ov...
glb/cad_89bf1ac4cc05.glb
Create a refrigerator water dispenser drip tray screen. Start with a thin circular disk with a radius of 125mm and a height of 0.8mm. Cut away the majority of the disk to leave only a crescent-shaped segment. Within this remaining segment, carve out a series of parallel rectangular slots to create a grill pattern. Thes...
$fn=100; difference(){ cylinder(r=125,h=.8); translate([-69,-150,-1])cube([300,300,5]); translate([-98,92,-1])cube([30,30,30]); translate([-98,-122,-1])cube([30,30,30]); for(inc=[0:6:82]){ translate([-89-(inc/6*2),-83+inc,-1])cube([15+(inc/6*2),3,10]); } for(inc=[0:-6:-82]){ trans...
glb/cad_e5e20f5d07bc.glb
Create a game organizer tray by starting with a rounded rectangular block measuring 235mm wide, 56mm deep, and 40mm high. Carve out a series of eight identical storage slots along the length of the block. Each slot is defined by removing material to create a recessed area. For each of the eight sections, spaced every...
$fn=100; spacer = 25; difference(){ roundedCube(235,56,40); translate([1.5,0,2.5]){ for(i = [0:7]){ translate([(i*spacer)+1,1.5,6]) cube([20,13.5,100]); translate([(i*spacer)+9.5,1.5,3]) cube([3,53,100]); translate([(i*spacer)+11,5,26.5]) rotate([90,0,0]) cylinder(h=10, d=18, center=false); translate([(i*spacer)...
glb/cad_09cb7f51687f.glb
Create a rectangular tray organizer for a board game insert. Start with a solid rounded cube measuring 235mm in length, 134mm in width, and 23mm in height, using a corner radius of 2mm. Hollow out the center by removing a smaller rounded cube measuring 210mm by 131mm by 23mm, positioned 18mm from the front edge and 1.5...
$fn=100; difference(){ roundedCube(235,134,23); translate([18,1.5,1]) roundedCube(210,131,23); translate([235,92,3]) rotate([0,0,0]) cylinder(h=75, d=30, center=false); translate([0,67,-1]) rotate([0,0,0]) cylinder(h=75, d=30, center=false); } difference() { translate([228,57.5,1]) linear_extrude(height=22) poly...
glb/cad_feb2141d53ba.glb
Create a board game organizer tray starting with a base rounded rectangular block measuring 235mm wide, 190mm deep, and 25mm high. Within this volume, carve out several storage compartments and holes. First, create a rounded rectangular cutout for Ambition Cards measuring 130mm by 106mm by 4mm, positioned at X=53.5 a...
$fn=100; difference(){ roundedCube(235,190,25); translate([53.5,77.5,1]) roundedCube(130,106,4); translate([183.5,130.5,1]) rotate([0,0,0]) cylinder(h=25, d=30, center=false); translate([23,77.5,5]) roundedCube(206,106,8); translate([23,130.5,1]) rotate([0,0,0]) cylinder(h=25, d=30, center=false); translate([2.5,...
glb/cad_caebf1f14a81.glb
Create a game organizer tray by starting with a solid rectangular block measuring 65mm wide, 30.5mm deep, and 95mm high. From this block, remove two large rectangular sections to create card slots: the first slot is 62mm wide, 8mm deep, and 100mm high, positioned at coordinates (1.5, 1.5, 1); the second slot is 62mm wi...
$fn=100; difference(){ cube([65,30.5,95]); translate([1.5,1.5,1]) cube([62,8,100]); translate([1.5,16.5,1]) cube([62,12.5,100]); translate([32.5,25,35]) rotate([90,0,0]) scale([1.4,1,1]) cylinder(h=200, d=32, center=false); translate([10.1,-1,35]) cube([44.8,30,100]); translate([32.5,40,60]) rotate([90,0,0]) cyl...
glb/cad_de2d11e570b5.glb
Create an Asus ZenScreen Portable Display Mount consisting of a base plate and a stabilizing top structure. Start by creating a rounded rectangular base plate 24mm wide, 24mm deep, and 4mm thick, with corners rounded to a 2mm radius. Remove a central vertical cylinder with a 3.5mm radius from the center of this base. ...
$fn = 100; inner_r = 3.5; ring_r = 2.5; outer_r = 4.5; h = 2; angle = 125; c_xy = 24; c_h = 4; r = 2; c_xy_outer = c_xy - 2 * r; undercut = 2; difference() { difference() { translate([ -(c_xy_outer + 2 * r) / 2, -(c_xy + 2 * r) / 2, (-r / 2) / 2 ]) translate([ r, r, r ]) minkowski() { translate(...
glb/cad_2e962278de58.glb
Create a parametric clip for a MOLLE webbing system. Start by creating two parallel rectangular walls, each 3mm thick and 30mm high, separated by a gap of 1.6mm. Connect these walls at the bottom with a solid rectangular base that is 25mm wide and 3mm thick. At the top of the clip, create a rounded end cap. This is ac...
$fa = 1; $fs = 0.1; module hor_cylinder(r,width) { translate([0,r,r]) { rotate([0,90,0]) { cylinder(width,r,r,center = false); } } } module parametric_clip(width,height,spacing,thickness) { cube([width,thickness,height]); translate([0,spacing + thickness,0]) ...
glb/cad_4195215f6659.glb
Create a battery storage case for two AA batteries. The model consists of a main body and a matching lid. For the body, create a block that houses two cylindrical cells, each with a diameter of 14.7mm and a height of 51mm. The cells are arranged side-by-side with a center wall thickness of 0.8mm and outer walls of 0.8...
aa_dimensions = [14.7, 51]; aaa_dimensions = [10.8, 44.5]; inner_wall_thickness = 0.8; outer_wall_thickness = 0.8; inter_cell_wall = 0.8; wall_clearance_x = 0.2; wall_clearance_round = 0.25; end_thickness = 0.8; end_bevel = 0.6; epsilon = 0.01; battery_case(aa_dimensions, [2, 1], false); function spacing(dimensions...
glb/cad_b9f250b5fea9.glb
Create an IKEA Algot rail cap. Start with a rectangular base measuring 36.8mm in length, 19.3mm in width, and 3.4mm in height. The base should have rounded corners with a radius of 5mm on the top edges and 2mm on the bottom edges. On the top surface of the base, add two identical locking mechanisms positioned symmetri...
$fn = $preview ? 24 : 72; cap_l = 36.8; cap_w = 19.3; cap_t = 3.4; cap_r = 5; cap_rs = 2; cap_re = 1; lock_l = 17.6; lock_w = 9.2; lock_h = 9.2; lock_o = (cap_w - lock_l) / 4; step_o = 3.2; step_w = 15; step_h = 1.8; cap(); module cap() { intersection() { hull() { for (d = [1, -1]) { ...
glb/cad_8d322679ea33.glb
Create a Roku Streambar wallmount consisting of a vertical wall plate and a supporting bracket. Start by creating a vertical rectangular plate that is 38mm wide, 4mm thick, and 75mm high. In this plate, create two circular holes with a diameter of 6mm; position the first hole centered horizontally and 20mm from the bot...
width = 38; module againstWall() { difference() { cube([width, 4, 75]); translate([width / 2, 4, 60]) { rotate([90,0,0]){ cylinder(4, 3, 3); } } translate([width / 2, 4, 20]) { rotate([90,0,0]){ cylinder(4, 3, 3); ...
glb/cad_495bda35b8d4.glb
Create a Customizable Hook with a total thickness of 20mm. The main body is a U-shaped hook with an internal diameter of 15mm. The base of the U-shape is a solid block that transitions into a rounded bottom. At the top of the hook, add a rounded tip. To support the structure, integrate a round bracket system. This bra...
bracket=1; bracket_round=1; second_hook=0; hook_size=15; thickness=20; second_hook_lenght=30; second_hook_angle=55; spacer_1=20; spacer_2=10; spacer_3=10; spacer_4=0; spacer_tip=5; screw_diam=3; screw_head=8; screw_head_h=3; tolerance=0.5; bracket_size=25; stop_lenght=15; bracket_stiffness=2.5; safet...
glb/cad_40b7aa26ea9f.glb