Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Volcanicus stabiliser for a Swoop arm by starting with a rectangular base plate measuring 41mm wide, 30mm long, and 2mm thick. From this base, remove several rectangular sections to create specific cutouts. First, remove a central rectangular slot measuring 12mm wide by 4.5mm long. Next, create two small symme...
total_width = 41; total_len = 30; total_height=2; vertical_tab_cutout_len=4.5; vertical_tab_cutout_width=12; vertical_tab_cutout_width_to_edge=15.4; t_tab_width=4.4; t_tab_len=6.1; t_tab_len_to_edge=5.4; big_tab_separation=18.4; big_tab_len_to_edge=24.5; big_tab_width=4; big_tab_width_to_edge=11.2; big_tab_len= total_l...
glb/cad_9754a31f081d.glb
Create a paper towel holder consisting of a wide circular base and a central vertical cylinder. Start by creating a flat cylindrical base with a diameter of 100mm and a thickness of 15mm. Centered on top of this base, add a vertical cylinder with a diameter of 20mm and a height of 100mm. To accommodate magnets, create ...
base_diameter = 100; base_thickness = 15; tube_height = 100; tube_diameter = 20; magnet_diameter = 19.5 + 0.1 ; magnet_depth = 2.3 + 0.1; magnet_qty = 5; $fn=120; difference() { union() { cylinder(h = base_thickness, d = base_diameter ); translate( [ 0 , 0 , base_thickness - 0.1 ] ) cylinder(h = tube_height,...
glb/cad_1f3764dc3eda.glb
Create an Adjustable Dual Stream Deck Holder consisting of a front frame, a main bracket, a mid-hinge, and a desk clamp. First, create the front frame as a rounded rectangular plate with a thickness of 4.5mm. The outer dimensions are approximately 126.6mm by 93.2mm with 4mm corner radii. Cut a central rectangular open...
$fn=16; sdx = 118.3 /2; sdy = 84.6 / 2; sdz = 3; rad = 4; bzxy = 10; bzz = 1.5; frxy = 3; sideX = 10; logoY = 4; m3hl = 3.5; m3st = 6.4; m3stz = 2.4; bktz = 12; hgx = sdx*2/3; hgy = 12; hgz = bktz; mgx = hgx; mgy = 40; mgz = bktz+sdz+bzz; m5hl = 5.5; m6hl = 6.5; m6x = 5.4; m6y = 10.5; m6z = 12; m8hl = 8.5; m8y = 14...
glb/cad_1c725ec6ad94.glb
Create a Benchy Hat by constructing a hollowed-out skull cap that serves as a base for a scaled-up boat model. Start by creating a solid head-shaped volume using a hull of three cylinders and three spheres: two cylinders with a diameter of 147mm (front and back) and one with a diameter of 162mm (center), all 1mm high, ...
crown=90; headLength=210; frontDiameter=145; centerDiameter=160; topflat=0.7; drawBenchy=true; helmetHoles=false; benchyFile="3DBenchy.stl"; benchyScale=[4,4,4]; benchyLocation=[5,0,crown*0.5-0.28*4]; $fa=2; $fs=1; hatSize=[headLength,frontDiameter,centerDiameter,crown]; module HeadPan(size,shell) { flx=(size[0...
glb/cad_0c858eb6b7a5.glb
Create a Modular Prusa Badge Display consisting of a hexagonal tray. Start by creating a hexagonal prism with a corner-to-corner diameter of 71mm and a total height of 11mm. This base should be hollowed out to create a tray; the interior walls should be 3mm thick, leaving a recessed hexagonal floor at the bottom. The o...
hexBaseHeight=4; hexBaseRotate=15; hexAngleHeight=10; hexLevelHeight=15-hexBaseHeight; hexDiameter=71; hexRadius=hexDiameter/2+1; hexOverhang=2; hexDepth=3; hexMiddle(); module hexAngle(){ tempOpposite = hexDiameter * sin(hexAngleHeight); tempAdjacent = hexDiameter * cos(hexAngleHeight) + 1.5; difference(){ t...
glb/cad_a873f9fce43f.glb
Create a filament trash tub with a total length of 60mm and a wall thickness of 0.8mm. The main body is a trough formed by extruding a specific profile along the length. This profile is defined by a Bezier curve starting at (0, 0), dipping to (10, -15), curving to (15, -27), and ending at (25, -27) for the base, then r...
include <bezier_v2.scad> length = 60; feet_from_end = 10; feet_length = 10; feet_cutout = 7; wall = 0.8; spring = 1.2; overhang_left = 2; total_height = 40; clip_radius = 2.0; clip_lift = 0.5; profile_groove = 6; profile_pitch = 20; $fn = 100; eps=1e-3; points = [ [[ ...
glb/cad_489ed62f8d94.glb
Create a Mesh Dryer Connector consisting of three intersecting cylindrical tubes. Start by forming a solid corner joint where three cylinders, each with a radius of 8.05mm and a length of 35mm, meet at 90-degree angles along the X, Y, and Z axes. Use a hull operation to smooth the outer transition between these three c...
$fn = 64; origBase = 34; origWall = 1.3; base = [origBase, origBase+2, origBase] + [1, 1, 1]; wall = origWall + 1; holeD = 13.4; holeR = holeD/2; holeH = 19.6 + 1; topHoleH = 17.6 + 1; waste = [base.x, 13, 13]; gap = [.1, .1, .1]; roundy(); module roundy() { rad = holeR + wall; hgt = origBase+1; differen...
glb/cad_f00d98acdeb4.glb
Create a Honeycomb Storage Wall consisting of a 10 by 10 grid of hexagonal cells. Each hexagonal cell has an inner hole width of 20mm measured from flat side to flat side, with a wall thickness of 1.8mm separating the cells. The entire grid has a uniform depth of 8mm. The hexagons are arranged in a staggered pattern. ...
depth = 8; hole_width = 20; wall_thickness = 1.8; max_grid_width=211; max_grid_height=248; fill=true;; flip_staggering=true; columns=[3,5,8,6,4,3,4,5,6]; include_offsets=false; column_offsets=[0,-2,-3,-1,0,2,4]; include_gaps=false; column_gaps=[[], [3,4], [4,5], [2]]; edge_left = false; edge_top = false; edge_r...
glb/cad_270550ac78bb.glb
Create a Honeycomb Storage Wall consisting of a 10x10 grid of hexagonal cells. Each hexagonal hole has a flat-to-flat width of 20mm, and the walls forming these hexagons are 1.8mm thick. The entire grid has a uniform depth of 8mm. The hexagons are arranged in a staggered pattern. To construct the grid, create a repeat...
depth = 8; hole_width = 20; wall_thickness = 1.8; max_grid_width=211; max_grid_height=248; fill=true;; flip_staggering=true; columns=[3,5,8,6,4,3,4,5,6]; include_offsets=false; column_offsets=[0,-2,-3,-1,0,2,4]; include_gaps=false; column_gaps=[[], [3,4], [4,5], [2]]; edge_left = false; edge_top = false; edge_r...
glb/cad_3e0dcb2e8982.glb
Create a Bugatti logo emblem based on an elliptical profile. Start with a red base plate by creating an ellipse with a major radius of 50mm and a minor radius of 25mm, extruded to a height of 2mm. On top of this base, add a white elliptical ring with the same proportions. This ring should have an outer offset of 2.5m...
include <BOSL2/std.scad> $fn=180; number_dots = 60; height_red = 2.0; height_black = 0.6; height_white = 0.6; color("Red") linear_extrude(height_red) offset(2.9) scale([1,0.5]) circle(r=50); color("White") { linear_extrude(height_red+height_black+height_white) { difference() { ...
glb/cad_55eb654f05a3.glb
Create an anti-curl rug corner consisting of two intersecting rectangular plates. First, construct a base shape by joining two rectangles, each measuring 56mm by 150mm, positioned such that they form an L-shape with a shared corner; one rectangle lies flat while the other is rotated 90 degrees. Extrude this combined L-...
difference() { linear_extrude(height = 0.8000000000) { union() { square(size = [56, 150]); translate(v = [0, 56, 0]) { rotate(a = [0, 0, -90]) { square(size = [56, 150]); } } } } translate(v = [2, 2, 0.6000000000]) { linear_extrude(height = 0.2000000000) { union() { square(size = [...
glb/cad_616da78bc87f.glb
Create a microphone holder and console combo consisting of two main parts: a cylindrical holder and a tilted support console. First, construct the holder. Create a hollow cylinder with an outer diameter of 49mm (47.2mm mic diameter plus a 0.8mm buffer and 1mm wall thickness on each side). The total height of the outer...
outer_diameter = 47.2; buffer_diamter = 0.8; plug_diameter = 20; shell_diameter = 2; body_height = 80; plug_height = 30; angle = 15; what_do_you_want_to_render = "both"; if (what_do_you_want_to_render == "holder") { shell(); } if (what_do_you_want_to_render == "console") { console_cut(); } if (what_do_you...
glb/cad_8114877e087d.glb
Create a Dental Stick Holder by starting with a solid rectangular block measuring 100mm in width, 50mm in depth, and 40mm in height. Hollow out the center of this block to create a main storage compartment, leaving a wall thickness of 2mm on the bottom and sides. On the right side of the block, extend the vertical wall...
$fn = 50; z = 40; y = 50; x = 100; wallThickness = 2; cutoutX = x/4; cutoutY = y - wallThickness; cutoutZ = z - wallThickness*2; cutoutXbox = x/2-wallThickness*4; cutoutYbox = y - wallThickness*2; cutoutZbox = z - wallThickness; rDent = 4; module interdentalstickholder() { difference() { union(){ cube...
glb/cad_5cdaba7b93f0.glb
Create a Cable Clip by extruding a spiral-shaped profile to a height of 50mm. The profile is based on two concentric circles: an inner diameter of 25mm and an outer diameter of 27.6mm, creating a wall thickness of 1.3mm. The shape is a nearly complete cylinder, but it is not a closed loop; the walls wrap around the cen...
innen_d=25; line2=1.3; module spirale(h=10, di=18, da=20) { n = 160; w = (da-di)/2; a = 3; arc = 380; step = arc/n; function spirale(t, d) = [(a * t/arc + d/2) * cos(t), (a * t/arc + d/2) * sin(t)]; function acoords(d1) = [for (t=[0:step:arc-0.001]) spirale(t, d1)]; function icoords(d2) = [for (t=[...
glb/cad_a0175867339c.glb
Create a Ping Pong Net Post Cap consisting of a hollow cylindrical body with a total height of 20.37mm. The main body is defined by an outer diameter of 17.9mm and an inner diameter of 16.0mm, though the inner cavity expands slightly toward the top. At the base, create a solid head section with a height of 3.76mm. Cu...
$fa=.5; $fs=.5; outer_diameter = 17.9; inner_diameter = 16.0; total_height = 20.37; head_height = 3.76; inner_expansion = 1.02; string_slot_width = 2.0; head_height_in_slot = 2.0; inner_slot_width = 6.53; inner_slot_width2 = 5.64; hole_diameter = 9.28 + (inner_slot_width - inner_slot_width2); outer_radius = outer_di...
glb/cad_d1863d9b596f.glb
Create a circular disc with a radius of 25mm and a height of 1.5mm. In the center of this disc, create a vertical hole with a radius of 1.5mm that passes through the center and extends 10mm outward from the face. To form a cross symbol on the top surface of the disc, place two rectangular bars, each 42mm long, 5mm wide...
difference() { cylinder(h=1.5, r=25, $fn=100); translate([0, 0, 1]) { cylinder(h=0.5, r=24, $fn=100); } translate([15, 0, 0]) { rotate([90, 0, 90]) { cylinder(h=10, r=1.5, $fn=100); } } } translate([0, 0, 1.25]) { rotate([0, 0, -40]) cube([42,5,0.5], cente...
glb/cad_48079a4f5a17.glb
Create a tick sign disc by starting with a base cylinder 50mm in diameter and 1.5mm thick. Carve a shallow circular recess into the top face that is 48mm in diameter and 0.5mm deep, leaving a 1mm thick rim around the edge. In the center of this disc, create a vertical hole 3mm in diameter that passes completely through...
difference() { cylinder(h=1.5, r=25, $fn=100); translate([0, 0, 1]) { cylinder(h=0.5, r=24, $fn=100); } translate([15, 0, 0]) { rotate([90, 0, 90]) { cylinder(h=10, r=1.5, $fn=100); } } } translate([1, 4, 1.25]) { rotate([0, 0, -45]) { cube([36,5,0.5],...
glb/cad_2910652e00a0.glb
Create a hemisphere with a radius of 25mm. To achieve this, start with a sphere of 25mm radius and remove the bottom half by intersecting it with a cube that is 50mm wide, 50mm deep, and 25mm high, positioned so that the cube's top face is aligned with the sphere's center. Finally, add a vertical cylindrical hole with ...
difference() { difference() { sphere(25, $fn=100); translate([0, 0, -12.5]) cube([50, 50, 25], center = true); } translate([0,0,1]) cylinder(d=4, h=25, $fn=100); }
glb/cad_319eac80956c.glb
Create a teaching sign base consisting of a thin circular disc with a small vertical cylinder protruding from its center. The disc should have a diameter of 50mm and a height of 2mm. Centered on this disc, add a vertical cylinder with a diameter of 6mm and a total height of 25mm. Finally, bore a hole completely through...
difference() { difference() { union() { cylinder(h=2, d=50, $fn=100); cylinder(h=25, d=6, $fn=100); } translate([0, 0, -12.5]) cube([50, 50, 25], center = true); } translate([0,0,1]) cylinder(d=3, h=25, $fn=100); }
glb/cad_5aceca094224.glb
Create a shelf support pin consisting of a flat rectangular carrier with protruding cylindrical pins. Start by creating a rectangular base that is 3mm thick, 12mm wide, and has a total length of 101mm. At the leading edge of this base, add a vertical rectangular block that is 3mm thick, 12mm wide, and 12mm high. Along ...
WallThickness=3; Width = 12; PinDiameter = 4.8; PinLength = 8.8; HoleDistance = 32; FirstHole = 3; NumberOfPins = 3; $fn=50; module Zapfen(){ rotate([90,0,0]) cylinder(h=PinLength, d=PinDiameter,center=false); } union(){ cube([WallThickness,Width,Width]); cube([PinDiameter*2+FirstHole+(NumberOfPins-1)*HoleDistance, W...
glb/cad_cb91f3a683db.glb
Create a hydroponic tower pipe cap consisting of a shallow cylindrical shell. Start by creating a solid cylinder with an outer diameter of 129.9mm and a height of 31.2mm. Hollow out the center by removing a concentric cylinder with a diameter of 127.5mm and a height of 30mm, leaving a base thickness of 1.2mm and a wall...
$fa = 1; $fs = 0.4; inner_dia = 127.5; wall_w = 1.2; wall_h = 30; cap_w = wall_w; cutout_dia = 0; difference() { linear_extrude(cap_w + wall_h) { circle(d=wall_w*2 + inner_dia); } translate([0,0,cap_w]) { linear_extrude(cap_w + wall_h) { circle(d=inner_dia); ...
glb/cad_7760e4d189f6.glb
Create a Wire Shelf Paper Roll Holder by constructing a central support body and removing specific geometric volumes. Start with a main body formed by the convex hull of a cylinder with a radius of 13mm and height of 20mm, positioned at the top, and two identical cylinders with a radius of 13mm and height of 20mm posit...
conduit_inner=1+18.6; conduit_dia=8+conduit_inner; conduit_high=60; wire_dia=1+3.85; wire_sep=29.63; thick=20; bot=12; botsep=2*(((wire_sep/2 + wire_sep - conduit_dia/2)) + 4 + wire_dia/2); module cutout() { translate([18,-1,24]) rotate([0,-20,0]) rotate([-90,0,0]) scale([1,2,1]) c...
glb/cad_7156d340cb38.glb
Create a Closeup Filter Mount Bracket for a trail camera. Start by constructing a main cylindrical ring with an outer diameter of 37.6mm (37mm plus a 0.6mm tolerance) and a height of 4mm. The interior of this ring must feature internal metric threads with a pitch of 0.75mm to accommodate a 37mm filter. Attached to the...
include <threads.scad> F_OD = 37; Tol = 0.3; Tol2 = Tol * 2; F_Pit = 0.75; Cuts_OnOff = 0; Ht = 4; echo("F_OD + Tol2 = ",F_OD + Tol2); OD_Res = (round(((F_OD * 3.14)/4)/1)*4); echo("OD_Res = ",OD_Res); ID_Res = (round((((F_OD-4) * 3.14)/4)/1)*4); echo("ID_Res = ",ID_Res); Ht1 = 4; S_Ht = 6.5; OD2 = (2.5+F_OD/2)*2;...
glb/cad_2b50be821147.glb
Create a wedge mount for a PoE-powered doorbell. Start with a main rectangular body measuring 53mm by 162.5mm with a total depth of 100mm. The body should have rounded corners with a radius of 12mm. Hollow out the center to create a shell with a wall thickness of 1mm. The interior cavity should have a rectangular open...
angle = 40; mount_door_side = 0; trim_back_edge = true; rotate_for_printing = true; poe_model = true; $fa = 3; $fs = 0.25; module screw_hole (offset = [0, 0, 0]) { translate(offset) { color("cyan") mirror([0, 0, 1]) cylinder(depth, screw_hole_radius,...
glb/cad_e09a14f71164.glb
Create a plastic tube holder for a ball mill consisting of a base block and a matching lid. Construct the base as a rectangular block with overall dimensions of 42mm in width (3 holes x 14mm), 120mm in length (6 holes x 20mm), and a total height of 50.5mm. Within this block, create an array of 18 cylindrical holes ar...
VH = 120; X = 3; Y = 6; I = 1; MM = 0.25; PV = 8.5; ZZB = 1.5; CV = 50+0.5; HD = 38; PD = 11.5; BX = 14; BY = 20; VB = 35; ZB = 5; VV = 11+0.5; VK = 9; PC = 35.5; PCL = 5; PCZ = 42; HH = CV-ZB-VK; if(I>=1){ translate([X*BX+20,0,0]) rotate([0,0,0]){ difference(){ union(){ difference(){ translate([...
glb/cad_b023c4929238.glb
Create a plastic tube holder for a ball mill consisting of a base block and a matching lid. The base is a rectangular block with a total height of 50mm. The main body of the base is a rectangular prism measuring 42mm in width (3 holes x 14mm) and 40mm in depth (2 holes x 20mm). On the top surface of the base, create ...
VH = 100; X = 3; Y = 2; I = 1; MM = 0.3; PV = 8.5; ZZB = 1.5; CV = 50; HD = 38; PD = 11.5; BX = 14; BY = 20; VB = 35; ZB = 5; VV = 11; VK = 9; HH = CV-ZB-VK; if(I>=1){ translate([X*BX+20,0,0]) rotate([0,0,0]){ difference(){ union(){ difference(){ translate([0,0,VK]) cube([X*BX+2*ZZB,Y*BY+2*ZZB,VV]);...
glb/cad_adbacb0f484e.glb
Create a keyboard case upper shell. The main body is a rounded rectangular block with a total width of 78mm, a depth of 48mm, and a height of 11mm. The four vertical corners are rounded with a radius of 5mm. The top surface is flat, while the bottom edges are heavily filleted or rounded to create a smooth, curved under...
include <util.scad> $fn = 64; color("SaddleBrown") difference() { union() { hull() { translate([-case_thickness, -case_thickness, 0]) cylinder(h=upper_case_height/2, r=pcb_radius+2); translate([pcb_width-2*pcb_radius+case_thickness, -case_thickness, 0]) cylinder(h=upper_case_height/2, r=pcb_radius+...
glb/cad_7290a224a8eb.glb
Create a plate for the Noisy Cricket mini gaming keyboard. Start by constructing a solid base using a hull operation that connects four cylinders, each with a radius of 11mm and a height of 1.5mm. Position these cylinders at the four corners of a rectangular area defined by a width of 100mm and a depth of 60mm, ensurin...
include <util.scad> $fn = 64; color("Gold") difference() { union() { hull() { cylinder(h=plate_thickness, r=pcb_radius+1); translate([pcb_width-2*pcb_radius, 0, 0]) cylinder(h=plate_thickness, r=pcb_radius+1); translate([0, pcb_depth-2*pcb_radius, 0]) cylinder(h=plate_thickness, r=pcb_radius+1...
glb/cad_dbee41f72902.glb
Create an open-walled magnetic rack designed to hold six centrifuge tubes and six magnets. The main body is a rectangular enclosure with a total width of 5mm, a height of 20mm, and a length that accommodates six magnet slots. For each of the six positions, create a rectangular magnet slot measuring 20mm in height, 10...
tubeCount=6; th=25; td=10.5; tbh=15; tbd=5.5; cw=15; st=3; fh=15; hd=5; sigma=0.01; mhd=[[20,10,5]]; magnet_type=0; mh=mhd[magnet_type][0]; mw=mhd[magnet_type][1]; mt=mhd[magnet_type][2]; ww=1; xw=0.35; tba=atan((td-tbd)/(2*tbh)); txa=6; ma=tba; bo=ww*2; module tubeModelFlat(){ hull(){ translate([-(...
glb/cad_6d5e878cd644.glb
Create an open-walled magnetic rack designed to hold eight centrifuge tubes and magnets. The main body is a rectangular enclosure with a width of 20mm, a height of 12mm, and a thickness of 5mm. This enclosure features a central cavity to house the magnets, with a small 2mm diameter push hole at the bottom to facilitate...
tubeCount=8; th=15; td=6.25; tbh=10; tbd=3.5; cw=9; st=1.5; fh=15; hd=2; sigma=0.01; mhd=[[12,5,2]]; magnet_type=0; mh=mhd[magnet_type][0]; mw=mhd[magnet_type][1]; mt=mhd[magnet_type][2]; ww=1; xw=0.35; tba=atan((td-tbd)/(2*tbh)); txa=4; ma=tba; bo=ww*2; module tubeModelFlat(){ hull(){ translate([-(...
glb/cad_c88ca4a6c893.glb
Create an Open-walled Magnetic Rack designed to hold four centrifuge tubes and four rectangular magnets. Start with a central vertical support structure. In the middle of this structure, create four aligned rectangular slots to house magnets measuring 18.8mm in height, 11.5mm in width, and 3.175mm in thickness. These...
tubeCount=4; th=75; td=12.2; tbh=4; tbd=12; txh=15; cw=16; tst=15; bst=3.5; fh=30; hd=4; sigma=0.01; mhd=[[12,5,2], [20,10,5], [18.8,11.5,3.175]]; magnet_type=2; mh=mhd[magnet_type][0]; mw=mhd[magnet_type][1]; mt=mhd[magnet_type][2]; ww=1; xw=0.35; tba=atan((td-tbd)/(2*tbh)); txa=4; ma=tba; bo=ww*2; module tube...
glb/cad_09e7906d9e8d.glb
Create a 3D sign of the text "</work>" using a bold, slab-serif typeface similar to Alfa Slab One. Extrude the characters to a uniform thickness of 5mm. The font size should be 180mm. Ensure the text is centered both horizontally and vertically. The final geometry should be a single solid piece where the characters are...
$fn=40; letter_height = 5; font_size = 180; font="Alfa Slab One:style=Regular"; str1="<"; str2="w"; str3="o"; str4="r"; str5="k"; str6="/"; str7=">"; str8="</work>"; str=str8; linear_extrude(letter_height){ text(str, size=font_size, font=font, halign="center", valign="center"); }
glb/cad_69f349887071.glb
Create a Position Indicator clamp designed to fit a cylindrical shaft. Start by creating a hollow cylinder with an inner diameter of 22.4mm, a wall thickness of 1.5mm, and a total height of 10mm. On one side of the cylinder, integrate a rectangular fastening block that is 7.5mm deep and 10mm high. This block must con...
$fn=64; use <m3hole.scad>; Diameter = 22.4; Thickness = 1.5; Height = 10; Pointer_Base_Thickness = 12; Pointer_Length = 8; Pointer_Top_Factor = 0.75; Screw_Length = 10; Cut_Width = 1; Box_Depth = 7.5; Screw_Diameter = 3.5; Screw_Head_Length = 2; Box_Width = Screw_Length + Screw_Head_Length; difference () { u...
glb/cad_74aef2dfa6e5.glb
Create a Position Indicator consisting of a central cylindrical shaft with a hexagonal nut housing at one end and a hexagonal screw head housing at the other. The main body is a cylinder with a diameter of 1.75mm and a total length of 20mm, centered on the Z-axis. At the top of the cylinder, create a hexagonal prism ...
$fn = 32; m3hole (20, 30, 100); module m3hole (l_screw, angle) { l_head = 2; d_head = 5.5/2 + 0.25; d_screw = 3.5/2; l_nut = 2.4; size_nut = 5.5 + 0.25; n_excess = 5; rotate ([0, 0, angle]) translate([0, 0, 0]) union () { union () { translate([0, ...
glb/cad_75239ca2ec00.glb
Create an Adjustable Universal Shoulder Stock consisting of a hollow, tapered cylindrical tube. The overall length of the object is 150mm with a maximum outer diameter of 25.5mm. The main body is a cylinder with a constant diameter of 25.5mm. Both ends of this cylinder feature a tapered section 10mm in length; the ou...
l = 150; diameter = 25.5; taper = 1.5; taper_length = 10; wall_thickness = 1.6; double_thickness = 2 * wall_thickness; $fn = 128; difference () { union () { cylinder (d2 = diameter, d1 = diameter - taper, h = taper_length); translate ([0, 0, taper_length]) cylinder (d = diame...
glb/cad_0f58bdd5c8b8.glb
Create a screw grip for an adjustable shoulder stock. Start with a cylindrical base 8mm in diameter and 3mm high. On top of this base, create a transition using a hull operation that connects the 8mm base to a hexagonal prism with a diameter of 12mm and a height of 2mm, positioned at a height of 3mm. Continue the shape...
epsilon = 0.01; $fn = 32; screwgrip (); module screwgrip () { difference () { union () { cylinder (d1 = 8, d2 = 8, h = 3); hull () { translate ([0, 0, 3]) cylinder (d1 = 8, d2 = 8, h = epsilon); translate ([...
glb/cad_0abc81ebb442.glb
Create a Weather Station Louvred Sensor Enclosure section. Start with a main circular ring that has an outer radius of 50mm and a height of 10mm. The ring should have a wall thickness of 2mm. Within this ring, integrate three vertical support ribs spaced 120 degrees apart. At the top and bottom of the ring, add a cir...
include <./common.scad> module louvre_cap(height=10, thickness=2, radius=50) { translate([0, 0, height-thickness]) cylinder(h=thickness, r1=radius-height+thickness, r2=radius-height); } module louvre(top=true, $fn=90) { SUPPORT_ANGLES = [0:30:360]; PIN_ANGLES = [0:120:360]; JOINER_ANGLES = [60...
glb/cad_3d9c030caddd.glb
Create a Spring Connector for Modular Castle Playset Modules. The object is a flexible, bridge-like clip with a symmetrical, tapered profile. Construct the main body as a bridge with a total height of 13mm. The lower end of the bridge has a width of 4.8mm, tapering upward to a width of 3.44mm at the top. The overall l...
$fn=32; rotate ([90, 0, 0]) spring_connector (); module spring_connector () { translate ([0, 0, 0]) connector_piece (); *color ("red") translate ([0, -20, 0]) connector_hole (); *color ("green") translate ([0, 0, 1]) linear_extrude (0.1) projection...
glb/cad_98e6d0d1357a.glb
Create a Donjon Tower for a modular castle playset. Start with a main cylinder that has a diameter of 80mm and a height of 120mm. Hollow out the center of the cylinder starting from the top, leaving a wall thickness of 20.5mm (resulting in an inner diameter of 39mm). At the top of the tower, create a crenellated para...
$fn=64; include <Modular Castle Playset Spring Connector.scad>; tower (d = 80, h_tower = 120, n_connects = 6); module tower (d, h_tower, n_connects) { d_tower = d - 1e-2; h_crannellation = 12; th_wall = 72.5 - 52; difference () { union () { difference () {...
glb/cad_a0b9c306ea1c.glb
Create a Parametric NATO/Picatinny Midland XTC Action Camera Mount. The device consists of a clamping mechanism designed to fit a standard NATO rail. First, construct the main clamp body. Create two symmetrical halves that form a block with a length of 30mm, height of 10mm, and width of 24mm, incorporating a radius of...
$fn = 64; use <Camera Mount.scad>; use <m3hole.scad>; { *nato_rail (5); translate ([20, 10 +10.6, 5.35 + 8 + 6]) rotate ([0, 0, 180]) union () { translate ([0, 10, 2]) rotate ([90, 0, 0]) midland_mount (); translate ([7.5, 0...
glb/cad_f617421ec8d8.glb
Create a Parametric Digiscoping Adapter Ring by constructing a revolved geometric profile around a central vertical axis. The main body is a hollow cylinder with a total height of 30mm. The inner bore has a radius of 25.75mm. The upper section of the wall is a straight vertical cylinder with a radius of 28mm and a heig...
$fn=64; r_inner = 28.0; r_inner_min = 25.75; h_inner = 15; h_exit_pupil = 15; th_side = 2; taper = 0.25; cone = 1; cone_angle = 60; eyepiece_adapter (); module eyepiece_adapter () { rotate_extrude (convexity = 20) polygon ( [ [r_inner + th_side, h_inner + h_exit_pupil], ...
glb/cad_b1ad4b74a9d2.glb
Create a modular hex drawer frame with a depth of 90mm. The main body is a hexagonal prism with a diameter of 60mm. Hollow out the center to create a wall thickness of 3mm, resulting in an inner hexagonal cavity. On the outer vertical faces of the hexagon, add grip rails to allow the units to interlock. These rails co...
enableMountingHoles = true; depth = 90; diameter = 60; mainFrameThickness = 3; gripDepth = 1.75; gripLength = 12; gripWidth = 1; $fn = 100; _flatSideDiam = (diameter / 2) * sqrt(3 / 4); size = 1; if (size == 1) { buildhexagon(); } else if (size == 2) { difference() { union() { buildhex...
glb/cad_0cfd0a7344e4.glb
Create a modular hex drawer system consisting of a hexagonal outer shell and a matching inner drawer. Construct the main outer shell as a hexagonal prism with a diameter of 53.2mm and a height of 87mm. The walls of this shell should have a thickness of 2mm. Create a matching hexagonal drawer that fits inside the she...
diameter=53.2; _flatSideDiam = (diameter / 2) * sqrt(3 / 4); thickness = 2; height= 87; seperators = 0; middlesep=false; bitHolder=false; size=1; if(size == 1) { linear_extrude(1) circle(d=diameter, $fn=6); linear_extrude(height) basehex(); translate([0,0, height-1]) linear_extrude(1) circle(d=diameter,...
glb/cad_e87fc7442648.glb
Create a wide-tooth hair comb with a thickness of 5mm. The main body consists of 12 teeth, each 3mm thick and 45mm long. The teeth are spaced 11mm apart from center to center. The tips of the teeth are rounded, with the first and last teeth having a slightly larger radius than the middle ones. The teeth are connected...
$fn=1200; combThickness=5; spikes=12; spikeThickness=3; spikeTipSize=0.4; spikeLength=45; spikeSpacing=11; outerSpikeScale=1.4; handleLength = 85; handleThickness=8; handleRadius=24.5; spikeInnerRadius = (spikeSpacing - spikeThickness*2)/2; outerSpikeInnerRadius = (spikeSpacing - spikeThickness*(1+outerSpikeScale))/2...
glb/cad_cad434efed14.glb
Create a set of parametric stairs for a modular castle playset. The structure consists of two mirrored stair flights joined at a central axis. Each flight is based on a 45-degree angle. For each flight, create a curved outer wall by extruding a square profile of 10mm width and 40mm height along an 89-degree arc. Conne...
$fn=64; include <Modular Castle Playset Spring Connector.scad>; has_integral_connector = true; w_module = 40; w_crennelation = 10; h_crennelation = 6; a_stairs = 89; h_stairs = 34; l_stairs = w_module/2 + h_stairs; n_steps = 12; union () { for (i=[-1,1]) translate ([0, i * (w_module/2 + 0.01), 0]) ...
glb/cad_bb019a566d9c.glb
Create a Parametric Bastion for a modular castle playset consisting of two mirrored half-shell tower sections. Each half-shell is derived from a hollow cylinder with an outer diameter of 80mm and a height of 46mm. The inner wall of the cylinder is 80mm smaller than the outer diameter. The top of each section features ...
$fn=32; bastion_size = 2; r_bastion = 40 * bastion_size; translate ([-20, 0, 0]) half_shell (true); translate ([20, 0, 0]) half_shell (false); module half_shell (left_half) { difference () { shell_tower (d = 2 * r_bastion, h_tower = 46, n_connects = 2); translate ([0, -40, -1]) ...
glb/cad_6c40139aec0a.glb
Create a parametric nozzle stand as a solid rectangular block with rounded corners of 5mm radius. The block should have a total height of 10mm and a base thickness of 1mm. Within this block, create a grid of 15 holes arranged in 5 columns and 3 rows. Each hole is a composite vertical shaft designed to hold a nozzle. ...
$fn = 16; n_per_size = 3; n_sizes = 5; d_bore = 6.6; d_wrench = 7; w_chamfer = 0.5; separation = 1.5; roundness = 5; l_bore = 8; l_hex = 1; l_bottom = 1; d_hex = d_wrench / 0.866 + w_chamfer; difference () { translate ([roundness, roundness, 0]) linear_extrude (l_bore + l_hex + l_bottom, convexity =...
glb/cad_86e448a5c349.glb
Create a parametric drill handle. Start with a main grip body that is a cylinder with a diameter of 40mm and a length of 60mm, but with heavily rounded edges created by a 10mm spherical fillet. Through the center of this grip, create a hexagonal hole to accommodate a nut. The hexagonal opening should have a nominal w...
$fn=32; grip_diameter = 40; grip_length = 60; grip_roundness = 10; nut_size = 6.35; nut_recess_taper = 0.4; knurl_diameter = 10; knurls = 1; n_knurls = floor (PI * grip_diameter / knurl_diameter / 1.5); if (knurls == 0) union () { plain_grip (); knurls (1); } else difference () ...
glb/cad_6a820ef74da1.glb
Create a parametric kitchen knife sheath. The main body is a hollowed-out blade shape with a total length of 115mm, a maximum width of 18mm, and a maximum thickness of 1.5mm. The walls of the sheath should be 0.5mm thick, but the bottom wall (the side resting against the blade's flat) should also be 0.5mm thick. The s...
knife_length = 115; knife_width = 18; knife_thickness = 1.5; wall_thickness = 0.5; bottom_wall_thickness = 0.5; has_windows = 1; number_of_windows = 10; has_ridges = 0; grip_cutoff_angle = 20; $fn = 80*1; wall = 2*wall_thickness; pad = 2*1; translate ([0, 0, knife_width + 2 * wall + pad + bottom_wall_thickne...
glb/cad_cc72bcd67c33.glb
Create a Paper Towel Holder for a SKÅDIS Pegboard consisting of two brackets and a connecting rod. First, construct the rod as a cylinder with a diameter of 25mm and a length of 310mm. The rod must be hollowed out along its central axis by removing a smaller internal cylinder with a diameter of 12.5mm. Additionally, ...
wireDiameter=4.5; wireArea=4*2*sqrt(2.0)*((wireDiameter*0.5)^2); wireIDiameter=sqrt(wireArea/(8*(sqrt(2)-1))); echo(wireIDiameter); StudBottom=34.4; StudLength=6.2; StudDiameter=wireDiameter; HookDepth=11; HookDiameter=wireDiameter+5.5; showBracketL=false; showBracketR=false; showRodL=true; showRodR=true; showRodCent...
glb/cad_813c9a07f554.glb
Create a NATO/Picatinny Rail adapter for a spotting scope. The model consists of a mounting arm connected to a standardized rail section. First, construct the mount. Create a curved plate with a thickness of 3.2mm. The plate features a central slot with a radius of 22.5mm and a width of 3.25mm, and a depth of 8mm. The...
$fn = 256; r_slot = 22.5; r_inner_plate = 20; w_slot = 3.25; w_plate = 7.5; r_corner_plate = 1; th_plate = 3.2; dpth_slot = 8; th_pin = 4; d_pin = 5.5 / cos (30) + 0.5; echo (d_pin); slot_sweep = atan ((11.24 - w_slot)/(r_slot - w_slot/2)); plate_sweep = atan ((15 - 2 * r_corner_plate)/(r_slot - w_plate/2)); slot_a...
glb/cad_69e52074df15.glb
Create a trash tray component by starting with a central cylinder that has a diameter of 19.5mm and a height of 25mm. Position a rectangular block on top of this cylinder, centered horizontally, with dimensions of 55mm in width, 19.5mm in depth, and 30mm in height. From this combined structure, carve out a central rect...
holex=25; h=30; bh=5; lh=h-bh; sloth=30; slotw=30; difference(){ union(){ translate([0,0,bh/2+5]) cube([holex+slotw,4.5+15,bh+sloth],center=true); translate([0,0,-lh-10-11.5]) cylinder(d=4.5+15,h=lh+11.5,$fn=100); } translate([0,0,bh+5]) cube([holex,30,sloth],center=true); translate([0,0...
glb/cad_cd0b0a183331.glb
Create a trash tray consisting of two symmetrical halves that slide together. Each half is a rectangular base with a thickness of 2.5mm and a total height of 19.75mm. The overall width of the combined tray is 384mm, and the length is approximately 340mm. For each half, create a main body that is a rectangular slab. Ho...
ft=4.5; ml=331.5; thic=2.5; iw=384; h=22; $fn=100; wheel1=[10-thic,10,7]; wheel2=[10-thic,iw/2+thic-10,7]; wheel3=[ml+ft*2+40+thic,10,7]; wheel4=[ml+ft*2+40+thic,iw/2+thic-10,7]; fpos=225/2; slit=190; module wheelhole(position) translate(position){ hull(){ rotate([90,0,45]) cylinder(d=17,h=6,center=true); ...
glb/cad_fe0ecb4cec37.glb
Create a 3D model of a stylized letter "F" by extruding a specific 2D profile to a height of 16mm. The profile is defined by a series of connected points: start at (3, 0), move to (7, 0), then to (12, 4), (12.5, 5), (12.5, 8.7), (25, 8.7), (25, -17), (30, -17), (30, 13), (23.75, 13), (23.75, 38), (7.35, 38), (7.35, 13)...
h=30; d=17; linear_extrude(16) polygon([[3,0],[7,0],[12,4],[12.5,5],[12.5,8.7],[25,8.7],[25,-d],[30,-d],[30,13],[23.75,13],[23.75,8+h],[7.35,8+h],[7.35,13],[4.5,8],[4.5,6],[1.5,6],[0,4.5],[0,3],]);
glb/cad_f3365ffaba4d.glb
Create a NATO/Picatinny rail mount for binoculars. Start by constructing a cylindrical base with a diameter of 21.5mm and a total thickness of 10mm. Bore a 6mm diameter hole through the center of this cylinder. To accommodate a screw head, create a larger concentric cylindrical cutout with a diameter of 15mm that penet...
d_connect = 21.5; h_connect = 5; d_head = 15; d_screw = 6; wall = 5; n_slots = 3; w1 = 15.6; $fn = 256; th_connect = 5 + wall; epsilon = 0.01; rotate ([90, 0, 0]) union () { rotate ([0, 0, 90]) translate ([-(h_connect + d_connect/2), 0, 0]) difference () { h...
glb/cad_197f941c860e.glb
Create a GoPro Adapter for Binoculars consisting of a mounting base and a camera connector. First, construct the mounting base. Create a cylinder with a diameter of 21.5mm and a height of 10mm. Remove a central vertical hole with a diameter of 6mm that passes through the entire height. Then, remove a larger coaxial c...
d_connect = 21.5; h_connect = 0; d_head = 15; d_screw = 6; wall = 5; $fn = 64; th_connect = 5 + wall; epsilon = 0.01; gopro_nut_d= 9.2; gopro_nut_h= 2; gopro_holed_two= 5; gopro_holed_three= 5.5; gopro_connector_th3_middle= 3.1; gopro_connector_th3_side= 2.7; gopro_connector_th2= 3.04; gopro_connector_ga...
glb/cad_22947b750cf1.glb
Create a traffic cone model consisting of a thin-walled conical shell on a square base. Start by creating a square base with a height of 1mm and an edge length of 76mm, ensuring the corners are rounded with a radius of 10mm. Centered on this base, construct a hollow truncated cone with a total height of 70mm. The outer...
cone_height = 70; cone_base_diameter = 60; cone_tip_diameter = 20; cone_wall = 0.5; base_height = 1; base_edge = 76; base_corner_radius = 10; $fn=120; epsilon = 0.01; difference() { union() { linear_extrude (base_height) hull () for (i = [-1, 1]) f...
glb/cad_e284aa46badb.glb
Create a parametric teabag holder designed to clip onto a cylindrical can. Start by creating a main body in the shape of an elliptical ring with a height of 10mm. The inner diameter of the ring should be 105mm, and the brim width should be 8mm. To form the clip, create a central circular cutout with a diameter of 105...
d0 = 105; width = 8; elongation = 1.3; $fn = 256; difference () { clamp (); for (i = [0, 1]) translate ([25 - width/2, (2 * i - 1) * 48.3, 5]) mirror ([0, i, 0]) difference () { translate ([d0/2, 0, 0]) cube ([d...
glb/cad_10c9b63203a3.glb
Create a Parametric Flash Diffusor consisting of a thin-walled hollow shell. Start by creating a rectangular clamping section with an outer width of 38mm and a height of 11.5mm, with a wall thickness of 0.5mm. This rectangular section should be tilted at a 25-degree angle relative to the vertical axis. From this tilte...
alpha = 25; r = 33; er = 1.0; wflash = 39; hflash = 12.5; dclamp = 0.5; l = 20; th = 0.5; front_facets = 128; $fn = 128; epsilon = 0.01; anglefront = 90 - 180/front_facets + 180/front_facets * (front_facets % 2); union () { difference () { funnel (wflash - dclamp, hflash - dclamp, l, th); ...
glb/cad_e6023eae422d.glb
Create a Castle Wall for a modular playset. The main body is a rectangular block measuring 80mm wide, 40mm deep, and 34mm high. The wall is internally hollowed out. Create a central void by removing a block of 74mm x 34mm x 31mm, but leave the structure solid at the top and bottom. The top edge of the wall features a...
total_wall_height = 46; wall_height = total_wall_height - 12; d = 3; dx = 7; c = 1; tc = 0.5; is_solid = 0; has_brims = 0; $fn = 128; epsilon = 0.01; standard_wall (is_solid); if (has_brims != 0) brims (); module brims () { for (i = [-1, 1]) translate ([80/2 * i, 0, 0]) hull () ...
glb/cad_9c12d5c8f221.glb
Create a Castle Wall for a modular playset. Start with a main rectangular block measuring 80mm wide, 40mm deep, and 34mm high. Hollow out the center of the block to create a shell with a wall thickness of 3mm. The interior cavity should be a rectangular void, but the top of the wall remains open. Along the top edge, ...
d = 3; dx = 7; c = 1; tc = 0.5; is_solid = 0; has_brims = 0; $fn = 128; epsilon = 0.01; standard_wall (is_solid); if (has_brims != 0) brims (); module brims () { for (i = [-1, 1]) translate ([80/2 * i, 0, 0]) hull () for (j = [-1, 1]) translate (...
glb/cad_e2aa54321da1.glb
Create a parametric safety latch for a folding bike steering tube lever. The model consists of a main cylindrical base with a total height of 8.9mm. The base is a cylinder with a diameter of 15mm. Inside this base, create a central vertical hole with a diameter of 6.5mm that extends through the full height of the par...
$fn = 64; union () { *color ("grey") bike (); h_total = 8.9; h_skirt = 2; epsilon = 0.01; rotate ([180, 0, 0]) translate ([0, 0, -2 * h_total - 4.9]) difference () { cylinder (d2 = 14, d1 = 10, h = 5.6); translate ([0, 0, -2.6]) ...
glb/cad_0552a63b50f7.glb
Create a Parametric Coin Organizer designed to hold stacks of coins in six distinct circular recesses. The overall body is a rounded rectangular block with a height of 11.5mm. The organizer features six cylindrical holes aligned in a row, each corresponding to a specific coin diameter plus a 0.9mm tolerance. From larg...
$fn = 64; coin0 = 0; coinx = 5; h_max = 10; tol_d = 0.9; tol_h = 0.1; flesh = 1.5; epsilon = 0.01; module dummy () { } coins = [ [50, 24.3, 2.4], [20, 22.3, 2.2], [ 5, 21.3, 1.7], [10, 19.8, 2.0], [ 2, 18.8, 1.7], [ 1, 16.3, 1.6], ]; coin_holder (coin0, coinx, h_max); module coin_hold...
glb/cad_bfe8376fa726.glb
Create a Parametric Zip Toggle consisting of three separate components: a loop, a grip, and a locking key. First, create the loop part as a flat, rounded rectangular frame. The outer dimensions are 10mm by 10mm with a height of 2mm and a corner radius of 5mm. The frame has a wall thickness of 1.5mm and a central recta...
w_loop = 10; l_loop = 10; h_loop = 2; th_loop = 1.5; r_loop = (w_loop)/2; w_gap = 2 * th_loop; w_hook = 4 * th_loop; l_hook = 8; w_grip = 13; l_grip = 30; r_grip = 2; h_tol = 0.5; w_tol = 0.5; epsilon = 0.01; $fn = 32; version = "V4"; { translate ([-1.1 * w_grip, 0, 0]) key_part (); tra...
glb/cad_000857cd5608.glb
Create a Parametric Print-in-Place Tolerance Test consisting of a square bolt housed within a square socket. The total height of the object is 6mm. First, create the central bolt as a square prism with an edge length of 8mm and a height of 6mm. Next, construct the outer socket. The socket's interior must be a squar...
bolt_edge = 8; tol = 0.25; h_total = 6; th_wall = 4; chamfer_depth = 0.75; epsilon = 0.01; translate ([0, 0, epsilon]) { half_test_body (); rotate ([180, 0, 0]) translate ([0, 0, -h_total]) half_test_body (); } module half_test_body () { difference () { union () { ...
glb/cad_7ec10d066ebd.glb
Create a Hotshoe Mount Flash Diverter consisting of a mounting base and an angled reflector plate. First, construct the mounting base. Create a central rectangular slot for the hotshoe foot with a width of 17.5mm, a length of 16mm, and a height of 1.5mm. Flanking this slot, add a rectangular leg for the hotshoe with ...
z_reflector = 50; w_reflector = 65; a_reflector = 45; d_reflector = 60; th_mount = 2; w_rear_center = 22; h_rear = 2; d_clear_rear = 8; w_min_clear = 45; r_frame = 1; foot_tol = 0.5; w_leg_nominal = 12.5; h_leg = 2; w_foot_nominal = 18.1; l_foot = 16.5; h_foot_nominal = 1.99; r_foot = 2; w_foot = w_foo...
glb/cad_69138f4bb5ff.glb
Create a parametric spinning top consisting of two symmetrical halves. For each half, start with a base foot that is 15mm tall; the bottom 1.5mm is a cylinder tapering from 1mm to 5mm in diameter, and the remaining 13.5mm is a cylinder tapering from 5mm to 10mm. Above this foot, add a cylindrical disk with a diameter o...
rendering = 1; d_top = 75; d_ring = 8; th_body = 2; d_upper = 5; h_upper = 50; h_bottom = 15; taper_point = 0.9; d_foot = 5; d_point = 1; d_centering_hole = 2.3; z_centering_hole = 5; eps = 0.01; $fn = 64; if (rendering == 0) { upper_part (); mirror ([0, 0, 1]) lower_part (); } else { tra...
glb/cad_03654dc6787e.glb
Create a Parametric LED Strip Clip for Board Edges. The model consists of two symmetrical C-shaped clamping brackets facing each other, connected by a central base. First, create the board clamp. This is a U-shaped channel with an interior width of 22.5mm and an interior height of 12mm. The walls and the base of the U...
w_board = 22.5; h_board = 12; r_board = 1; w_led = 8.5; h_led = 1.2; r_led = 0.5; th_clamp = 1; l_clamp = 15; $fn = 32; eps = 0.01; rotate ([0, 90, 0]) { halfclamp (w_board, h_board, r_board, 0); translate ([0, 0, -th_clamp]) mirror ([0, 0, 1]) halfclamp (w_led, h_led, r_led); if (w_led ...
glb/cad_51ceab7f73b9.glb
Create a drip tray slot liner by starting with a solid rectangular block measuring 231.5mm wide, 155.5mm deep, and 18.5mm high, centered on the origin. Hollow out the center of this block to create a rectangular shell with a uniform wall thickness of 2.25mm on all sides and the bottom. To allow for the insertion of t...
opening_width = 232; opening_depth = 156; opening_height = 24; opening_lip_height = 5; tray_width = 227; tray_depth = 151; tray_height = 21; loose_fit = 0.5; adj_opening_width = opening_width - loose_fit; adj_opening_depth = opening_depth - loose_fit; adj_opening_height = opening_height - opening_lip_height - loose_...
glb/cad_f91d2bc8c5db.glb
Create a flashlight button replacement part consisting of a base and a central protruding actuator. Start by creating a rounded rectangular base with a length of 18mm, a width of 12mm, and a height of 7mm. The base should have rounded edges with a radius of 8mm. Carve a cylindrical void through the center of the base w...
tol = 0.5; d = 1; h = 7; w = 12; l = 18; r_edge = 8; dia = 30; $fn = 64; epsilon = 0.01; union () { intersection () { difference () { oval_cube (l, w, h); up (d) eps (1) oval_cube (l - 2 * d, w - 2 * d, h - d); u...
glb/cad_5c2abd4541ba.glb
Create a Towhook Module for a toy transporter. Start by constructing a rectangular base block with a total height of 21.5mm, a width of 40mm, and a depth of 11mm. Carve a semi-cylindrical cutout into the top of this block. The cutout should have a diameter of 25mm and be centered horizontally. Within this recessed ar...
dpt = 11; eps = 0.01; d_cutout = 25; d_hook = 3.8; l_hook = 9.5; y_hook = 11; h_hook = 13; xw = 10; hh = 21.5; $fn = 64; rotate ([0, 0, 180]) towhook (); module towhook () { { difference () { union () { hull () { ...
glb/cad_c31d082f0ae0.glb
Create a Parametric Playmobil Driver's Seat consisting of a seat unit and a steering wheel. First, construct the seat unit. Create a rectangular base 26mm wide, 21mm long, and 5mm high. At the rear, add a seat back that is 26mm wide, 5mm thick, and 24.5mm high, tilted backward at a 10-degree angle. Extend a dashboard...
rendering = 0; centering_aid = 1; w_seat = 26; l_seat = 21; h_seat = 5; h_foot = 14.5; l_back = 5; h_back0 = 27; h_wheel = 22; l_wheel = 16; d_wheel = 32; d_hub = 7; th_wheel = 3.5; n_spokes = 3; a_cutout_displacement = 16; a_cutout = 360 / n_spokes - a_cutout_displacement; th_spokes = 3.5; a_shaft = 1...
glb/cad_d937853b13bb.glb
Create a Phone Stand by starting with a solid cylinder 120mm in diameter and 18mm in height. The base must have a flat bottom with a thickness of 2mm. From this cylinder, remove several rectangular slots to hold a phone, where each slot is 12mm wide (11mm for the phone plus 1mm tolerance). The slots are arranged in t...
height = 18; dia = 120; facets = 128; thbase = 2; thphone = 11; angle0 = 10; angle1 = 25; angle2 = 35; angle3 = 45; angle4 = 55; displphone = 0.4; tol = 1; eps = 0.01; angle = [angle1, angle2, angle0, 0, angle3, angle4]; union () { difference () { rotate ([0, 0, 180/facets]) cylind...
glb/cad_8ee4bfddfe4c.glb
Create a Parametric Celtic Cross Phone Stand by starting with a main cylindrical base 120mm in diameter and 18mm high. To form the Celtic Cross shape, remove four overlapping cylinders, each 70mm in diameter and 18mm high, centered such that their edges align with the base perimeter and their centers are positioned at ...
height = 18; dia = 120; facets = 128; thbase = 2; thphone = 11; angle0 = 10; angle1 = 25; angle2 = 35; angle3 = 45; angle4 = 55; celtic = 70; wring = 8; displphone = 0.40; tol = 1; eps = 0.01; angle = [angle1, angle2, angle0, 0, angle3, angle4]; union () { difference () { rotate ([0, 0, ...
glb/cad_a10f2eef9b15.glb
Create a magnetized access door system consisting of a base and a removable door. First, create the base as a square plate measuring 220mm x 220mm x 6mm with rounded corners (20mm radius). In this base, remove a central rectangular cutout with rounded corners to create a frame. At each of the four corners, create a ho...
total_size_y = 220.0; total_size_x = 220.0; total_size_z = 6; screw_hole_diameter = 3.2; screw_head_diameter = 8; magnet_size_z = 2.0; magnet_diameter = 4.1; round_corner_radius = 20; first_layer_size_z = 1; screw_padding = 30; contour_padding = 20; hole_space_with_screw = 5; handle_diameter = 20; base(); $fn=50;...
glb/cad_c01b91729e10.glb
Create a Parametric Doweling Jig. Start with a solid rectangular block 89mm wide, 38mm deep, and 26mm total height (20mm jig height plus 6mm fence height). Carve a rectangular stock cutout from the top, measuring 83mm by 32mm and 6mm deep, centered on the block. To allow for alignment, remove two intersecting square-...
width = 89; height = 38; top = true; bottom = true; left = true; right = true; diameter = 8; distribution = "square"; dowel_count = 2; dowel_locations = [[0,0]]; fence_wall = 3; fence_height = 6; jig_height = 20; module dowel() { translate([0,0,-jig_height/2 - fence_height]) cylinder(jig_height + 0.02, r...
glb/cad_6180e1d244ba.glb
Create a Fastrak Flex holder designed to be printed flat and folded into a pocket. The main body is a flat plate with a total length of 110mm and a width of 55mm. At the top, create a keyhole slot to accommodate a suction cup. The slot consists of a circular entry hole with a diameter of 6.5mm that narrows into a ste...
module foldup_etag_bracket(th=2, layer_h=0.2, nozzle_d=0.4) { etag_l = 110; etag_w = 36; etag_h = 15; suction_od = 30; suction_id = 6.5; suction_key = 10.5; keyhole_h1 = 3/2*suction_id + 1/2*suction_key; keyhole_h2 = keyhole_h1 - (suction_id + suction_key)/2; hanger_d = 4*th + keyh...
glb/cad_8c25889559ab.glb
Create a hold down clip by constructing a base rectangular prism measuring 15mm in length, 15mm in width, and 2.5mm in thickness. Directly on top of this base, add a second rectangular prism that is 20mm long, 15mm wide, and 3mm thick, aligned to the same starting corner. Finally, bore a vertical cylindrical hole with ...
length = 15; width = 15; thickness = 2.5; cap_length = 20; cap_width = 15; cap_thickness = 3; hole_diameter = 5; smoothness = 50; hole_length = thickness + cap_thickness + 6; difference() { union(){ translate([0,0,0])rotate([0,0,0]) cube([length,width,thickness], center = false); translate([0,0,thickness])rotate([...
glb/cad_79c3951ae3d7.glb
Create a router shelf consisting of a flat rectangular platform and a supporting rear bracket. The main shelf platform is 115mm long, 160mm wide, and 5mm thick. Attached to the rear is a vertical bracket wall 160mm wide and 19mm deep (calculated as 5mm shelf thickness plus 4mm border on each side of a 9mm central hea...
shelf_width = 160; shelf_length = 115; shelf_thickness = 5; nut_block_side = 15; tilt_angle = 3.5; modem_clip_holeAx = 95; modem_clip_holeBx = 15; wall_plate_pinC_dia = 6.2; wall_plate_pinD_dia = 5.2; pin_depth = 7; pinCyfrom_center = 15; pinDyfrom_center = 14; head = 9; type = 6; size = 5; smoothness = 50; leng...
glb/cad_b4a624b30285.glb
Create a Triangle Ruler for a notebook by constructing a right-angled triangular slab with a thickness of 1mm. The outer boundary of the triangle should have a base of 80mm along the x-axis and a height of 120mm along the y-axis. Carve a smaller right-angled triangular hole out of the center to create a frame, leavin...
a6 = [[80,120,1],15]; a5 = [[120,200,1],20]; function degToRad(a) = a*PI/180; function radToDeg(a) = a*180/PI; function vxs(x0,y0,x1,y1) = (x0*y1) - (x1*y0); function intersect(x0,y0,x1,y1,x2,y2,x3,y3) = [ vxs(vxs(x0,y0,x1,y1),x0-x1,vxs(x2,y2,x3,y3),x2-x3) / vxs(x0-x1,y0-y1,x2-x3,y2-y3), vxs(vxs(x0,y0,x1,y1),y...
glb/cad_e094cb18d560.glb
Create a GL threads generator, specifically an inner thread ring. Construct a hollow cylinder with an outer diameter of 14.5mm and an inner diameter of 13.5mm. On the exterior of this cylinder, add a helical thread pattern. The thread should have a pitch of 2.5mm and a total height of 11.5mm. The thread profile consi...
Version = "2023-07-23 - GLS screw thread"; *GLS(GL = "START", INEX = "EX", DZ = 25, IDOD = -1,IO = 5,IOZ = 0, N = 0,VZ = 120, KuzAlfa = 45, KuzAlfaOD = 5, KuzBeta = 45, KuzBetaOD = 0, TuneST = 22, TuneIP = 10, TuneOP = 20, TuneIV = 10, TuneOV = 0.5, Help = 1); *GLS(GL = "START", INEX = "IN", DZ = 5, TuneST = 2.5, T...
glb/cad_e87e1277868d.glb
Create a cardboard grid stiffener consisting of four thin vertical walls that intersect at a central nexus. Each of the four walls is a rectangular plate with a width of 20mm, a thickness of 0.8mm, and a height of 26.2mm. Position these walls so they form a cross shape, with two walls aligned along the X-axis and two...
enable_arm_1 = true; enable_arm_2 = true; enable_arm_3 = true; enable_arm_4 = true; cardboard_thickness = 6.0; custom_cardboard_thickness = false; custom_thickness = 6.0; wall_width = 20; wall_thickness = 0.8; stiffener_length = 25; cap_length = 1.2; nexus_size = 15; length = cap_length + stiffener_length; x_th...
glb/cad_8b157ea32bde.glb
Create a Citroën logo plaque. Start by creating a base plate 2mm thick. The base is a hull formed by four circles of 10mm radius positioned at coordinates (-50, 40), (50, 40), (50, -58), and (-50, -58). On top of this base, add a raised layer 0.6mm thick containing the logo and text. The logo consists of an oval ring ...
$fn = 200; model = 1; if(model==1) { color("Wheat") { linear_extrude(2.0) { hull() { translate([-50,40]) circle(10); translate([50,40]) circle(10); translate([50,-58]) circle(10); translate([-50,-58]) circle(10); } ...
glb/cad_2c7a5d218e60.glb
Create a parametric shelf organizer by starting with a solid rectangular block that is 200mm deep, 237mm tall, and 190mm wide. The block is constructed with walls that are 2mm thick. Carve out a grid of rectangular slots from the front face of the block. The grid consists of 11 rows and 5 columns. Each row has a heig...
$fn=10; wall_thickness = 2; number_rows = 11; shelf_height = 18; shelf_widths = [35,45,55,65,75]; total_depth = 200; function add2(v) = [for(p=v) 1]*v; function cumsum2(v) = [ for (a=0, b=v[0]; a < len(v); a= a+1, b=b+(v[a]==undef?0:v[a])) b]; num_columns = len(shelf_widths); total_width = wall_thickness + add...
glb/cad_34d0cdf5f1e2.glb
Create a parametric corner support bracket with a total length of 100mm, a width of 20mm, and a thickness of 20mm. The main body is a right-triangular prism that tapers from a 20mm by 20mm square profile at one end down to a thin edge at the other. Remove three countersunk holes for screws from this body. The first h...
height = 100; leg = 20; screw_hole = 4; screw_head = 7; hole_height = 2; hole_count = 3; module support() { difference() { polyhedron( points = [ [0, 0, 0], [0, leg, 0], [0, leg, leg], [height, 0, 0], [height, ...
glb/cad_f98e98323dd6.glb
Create a simple cylinder for a Kubb set with a total height of 25mm and a diameter of 2.5mm. Ensure the cylinder has a high facet resolution to appear smooth.
$fn=100; cylinder(25, 2.5/2, 2.5/2);
glb/cad_0444746c2e52.glb
Create a Hozelock growbag waterer funnel by constructing a hollowed-out tapered vessel. First, create the outer shell by forming a convex hull between three circles at the base and three circles at the top. Position the base circles with a diameter of 18mm, placed at the coordinates (29, 0, 0), (-29, 0, 0), and (0, -4,...
wid = 58; dep = 16; th = 4; hei = 80; difference() { hull() { translate([wid/2, 0, 0]) linear_extrude(0.1) circle(d=18); translate([-wid/2, 0, 0]) linear_extrude(0.1) circle(d=18); translate([0, -th, 0]) linear_extrude(0.1) circle(d=18); transl...
glb/cad_b60874a034ad.glb
Create a wall hanger hook by starting with a rectangular base plate measuring 22mm wide, 63mm high, and 2mm thick. Centered along the width and positioned 15mm from the bottom edge, add a protruding peg assembly. This peg is constructed from a combination of shapes that form a rounded, angled projection. The main body ...
width = 22; height = 63; th = 2; angle=85; peg_l=5.5; peg_th = 2.8; cube(size=[width, height, th], center=false); translate([width/2,15,th+0.5])rotate([0, -angle, -90]) union(){ hull() { translate([0,-peg_th/2-1.5,0])rotate([0,-90+angle,0]){ cube(size=[0.1, peg_th+3, (peg_th+3)+peg_th*cos(an...
glb/cad_0c6d1cdf4e7a.glb
Create a Cable Tidy Spool with a total length of 70mm, a width of 25mm, and a height of 20mm. The main body is a rounded rectangular prism where the two shorter ends are semi-circles with a radius of 12.5mm. The walls of the spool have a thickness of 1.67mm. The top edges of these walls feature a rim that is 2mm high...
H = 20; W = 25; L = 70; C = 30; R = 2; rim_angle = 50; lip = 0.964; th=1.67; c = C/10; module sidecut() { polygon([ [R+th+R, -H/2], [R, -H/2], [R, -H/2 + lip], [0, -H/2 + lip + R * tan(rim_angle)], [0, H/2 - lip - R * tan(rim_angle)], [R, H/2 - lip], [R, H/2], [R+th+R, H/2]...
glb/cad_e10db5306793.glb
Create a spark plug storage box by starting with a solid rectangular block measuring 164mm in length, 107mm in width, and 60mm in height. Within this block, create a grid of 32 holes arranged in 8 columns and 4 rows. Each hole consists of two stepped cylindrical sections: a bottom cylinder with a 13mm diameter and a he...
module sparkplug() { cylinder(d=13,h=22); translate([0,0,22-0.01]) cylinder(d=18,h=60); } difference() { translate([-42,0,0]) cube([164+42,107,60]); for(i=[0:7]) for(j=[0:4]) { translate([11+20*i,11+21*j,0.8]) sparkplug(); if (i==0 && j>2) translate([-31,11+21*j,0.8]) #sparkplug(); } translate([-...
glb/cad_0c2684e1a43a.glb
Create a spark plug holder base by forming a solid block that transitions from a wide rectangular bottom to a narrower top. The base is defined by a hull between a 160mm by 160mm by 30mm square at the bottom and a 100mm by 30mm by 70mm rectangular volume centered above it. On the top surface, engrave a left-pointing ar...
module sparkplug() { cylinder(d=13,h=22); translate([0,0,22-0.01]) cylinder(d=18,h=60); } intersection() { difference() { hull() { translate([-30,-65,0]) cube([160,160,30]); translate([0,0,0]) cube([100,30,70]); } translate([0,15,69.5]) linear_extrude(2) text("←",font="Liberation Sans:style=Bold",s...
glb/cad_d56f413bd0ad.glb
Create a shower razor holder by constructing a composite geometric form. Start with a base plate created by extruding a trapezoid with a height of 40mm, a bottom width of 12.8mm, and a top width of 50mm, then apply a 1.5mm spherical fillet to all edges. On top of this base, add two symmetrical prismoid structures posit...
include <BOSL2/std.scad> $fn = 60; difference() { union() { translate([0,-8,-1]) minkowski() { linear_extrude(2) trapezoid(h=40, w1 = 12.8, w2 = 50); sphere(r=1.5); } translate([0,0,1]) minkowski() { union() { translate([ ...
glb/cad_69393a5ff814.glb
Create a waterproof electronics enclosure consisting of a bottom case, a top lid, and a gasket. The bottom case is a rectangular box with rounded corners of 5mm radius. The outer dimensions are 89mm in length, 48mm in depth, and 20mm in height. The walls are 3mm thick. The interior is hollowed out, leaving a floor th...
Thickness = 3; CutHeight = 10; CornerRadius = 5; GasketThickness = 1; GasketWidth = 3; GasketBumpWidth = 0.50; GasketBumpZ = 0.4; rez = 32; WireHole = 5; WireDia = 1.7; WireOffset = 2; Length = 85+Thickness*2; Depth = 38+CornerRadius*4; Height = 14+Thickness*2+GasketThickness; $fa = 2; bottom(); tra...
glb/cad_7e19ca7f03db.glb
Create a headphone stand by extruding a 2D profile to a height of 20mm. The profile consists of several joined rectangular sections. Start with a base rectangle measuring 40mm by 5mm. Attached to the bottom of this base, create a second rectangle measuring 40mm by 8mm, positioned so it extends downwards. To the left of...
desk_width = 23.8; headphone_width = 35.1; stand_width = 20; linear_extrude(height = stand_width){ square([40, 5]); translate([35, desk_width*-1, 0]) square([5, desk_width]); translate([0, (desk_width*-1)-8, 0]) square([40, 8]); translate([40, (desk_width*-1)-8, 0]) square([headphone_width, 5]); translate([headphone_...
glb/cad_c27aec88b09f.glb
Create a desk dustpan consisting of a rectangular pan and a separate handle. For the pan, start with a base block 200mm wide, 160mm deep, and 3mm thick. Add two vertical walls, each 60mm high, along the two 200mm sides, but leave the front 200mm edge open. The interior of the pan should be hollowed out, leaving a 3mm t...
$fn=200; Blik=1; Handle=1; if(Handle) translate([100,270,40]){ hull() { translate([0,20,0]) sphere(d=30); translate([0,-80,0])sphere(d=24); } translate([-15,-80-12,-15])Cube(30,18,30); translate([-15,-80-12,-15])cube([30,4,30]); } if(Blik) { difference() { hull() { Cube(200,160,3); translate([0,160,...
glb/cad_28dd3eb4e966.glb
Create a D20 dice frame designed to hold a grid of 15 icosahedrons. First, construct a base rectangular tray with an outer width of approximately 112.5mm and a depth of 105mm, with a bottom height of 12mm. The walls of the tray should be 5mm thick. Inside this tray, create a 5x3 grid of icosahedron-shaped cavities. Ea...
diameter = 29.5; flattoflat = 30; bottomHeight = 12; rounding = 1; boldness = 0; sizex = 3; sizey = 3; sizex = 5; sizey = 7; goldenratio = 2 / (1 + sqrt(5)); scalingfactor = diameter / (sqrt(goldenratio * goldenratio + 1) + rounding); corners=[ [1, 0, goldenratio], [-1, 0, goldenratio], [1,...
glb/cad_858712dfab77.glb
Create a Parametric Drawer System consisting of a box frame and compatible drawers. For the box, create a rectangular shell with external dimensions of 150mm width, 100mm depth, and a total height of 170mm (calculated from 8 units of 20mm plus 10mm top and bottom frames). The frame walls are 5mm thick. Hollow out the...
PART = "B"; uHeight = 20; uNum = 8; boxOuterWidth = 150; boxOuterDepth = 100; drawerUHeight = 1; drawerRows = 1; drawerColumns = 1; drawerWallWidth = 1; drawerHandleWidth = 2; drawerHandleLength = 15; boxTopMounting = "N"; boxLeftMounting = "S"; boxRightMounting = "N"; boxBottomMounting = "S"; boxRearMou...
glb/cad_55c3f9b6b012.glb
Create a liquid chalk holder by constructing a hollow vertical sleeve with a height of 100mm. The main body is an extruded oval with an outer length of 54mm and an outer width of 36mm, featuring a wall thickness of 2mm. The interior cavity should match these proportions, creating a void of 52mm by 34mm. On the front f...
$fn=100; nozzle_size=0.4; tolerance = nozzle_size/2; thickness = 2; raw_length = 52; raw_width = 34; height = 100; length = raw_length + tolerance; width = raw_width + tolerance; module window() { open_lenght = length/2; open_height = height/2; translate([5,5]) hull() { circle(d=10); trans...
glb/cad_deaf70a50753.glb
Create a vacuum adapter consisting of a hollow cylindrical base that transitions into a rectangular neck. Start by creating a hollow cylinder with an outer diameter of 56mm, an inner diameter of 50mm, and a height of 30mm. From the top of this cylinder, create a lofted transition that narrows upward into a rectangular ...
input_diam = 50; input_height = 30; output_height = 20; output_width = 10; width = 3; length = 60; trunk_length = 30; shift = 1; c_height = 20; $fn= $preview ? 64 : 192; module trunk() { difference() { cube([output_width+width*2, output_height+width*2, trunk_length],center=true); cube([output_width, output...
glb/cad_0a1eaaf3a420.glb
Create a SNES2C64 case consisting of a top and bottom shell. For the top part, create a base plate 31mm wide and 84mm long with a height of 5.5mm. Round the corners with a 2mm radius. Cut a central rectangular slot 16mm wide and 43mm long, and remove a circular section from the center of this slot. Drill two holes fo...
LED_size = 3; With_reset = 1; SNES_connector_style = 16; Screw_type = 5; USB_cutout = 1; LED_Number_Indicator = 0; Parts = "Both"; Double_case = 0; Port_Distance = 13.5; module endcustomizer() {} DefaultDistance = 13.5; module top() { difference() { union() { hull() { translate([ 0, 3, 0 ]...
glb/cad_cc8adaf9fa27.glb