Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a medium format negative scanner lens hood. The structure is built around a central axis and consists of a base and a cylindrical top. Start by creating a rectangular base with dimensions 104.8mm by 74.8mm and a height of 5.125mm. The walls of this base should be 2mm thick. Centered on top of this base, constr...
focalDistance = 50; lensRingHeight = 15; lensInnerDiameter = 45; lensOuterDiameter = 55; wallThickness = 2; translate([0,0,-3]){ translate([0,0,focalDistance-3]){ difference(){ cylinder(h=2,d=lensOuterDiameter,$fn=200); translate([0,0,-1]){cylinder(h=5,d=lensInnerDiameter,$fn=20...
glb/cad_03d79e551725.glb
Create a Customizable Helix model consisting of a twisted double-strand structure anchored to a hexagonal base. Start by creating a hexagonal platform with a radius of 18mm and a height of 3mm. To build the helix, define a 2D profile consisting of two circles with a radius of 2mm each, positioned 10mm apart from th...
fn = 20; post_radius = 2; post_distance_apart = 10; center_bridge_length = 20; center_bridge_width = .6; helix_height = 72; helix_twists = 360; helix_slices = 500; helix_scale = 1; spacer_radius = 8.15; spacer_height = 4; spacer_start = 0; spacer_increment_distance = 6; spacer_increment_height = 100; base...
glb/cad_61ca730472b7.glb
Create a math-themed bookmark by starting with a base plate 115mm long, 13mm wide, and 0.5mm thick, ensuring all four corners are rounded with a 1mm radius. On the top surface of this plate, emboss the digits "3.14159265" starting from the left, using a font size of 10mm and an extrusion height of 1mm. Further along th...
f = "Georgia"; f2="Chewy"; f3="Chewy:style=Bold"; Pi_number = "3.14159265"; Pi_glyph="π"; T="I♥Maπh"; union (){ difference () { translate([0,-7.5,0]) minkowski() { cube([115,13,0.5]); cylinder(r=1, h=0.5); } translate([0,-1,0]) linear_extr...
glb/cad_f1b27599ae16.glb
Create a customizable keyring featuring a sequence of up to ten characters. Begin by creating a small circular loop for a keychain, with a diameter of 20mm and a thickness of 3mm, positioned at the start of the sequence. Following the loop, place a series of characters based on the text "0123456789". Each character s...
Font_name = "Chewy"; Text = "0123456789"; Rotation = 50; letter_1_height = 6; letter_1_space = 10; letter_2_height = 5; letter_2_space = 10; letter_3_height = 4; letter_3_space = 10; letter_4_height = 6; letter_4_space = 10; letter_5_height = 4; letter_5_space = 10; letter_6_height = 5; letter_6_space = 10; le...
glb/cad_723473f366f4.glb
Create a cylindrical adaptor for a brass bearing by constructing a hollow tube with a height of 10mm. The outer diameter of the cylinder should be 10mm, and it should feature a concentric inner hole with a diameter of 8mm, creating a wall thickness of 1mm throughout the part. Ensure the circular profiles are smooth wit...
diametre_ext = 10 ; diametre_int = 8 ; hauteur = 10 ; resolution = 160 ; $fn=resolution ; linear_extrude ( height= hauteur ){ difference(){ circle (d=diametre_ext ); circle (d=diametre_int ); } }
glb/cad_0861e64e6a34.glb
Create a Mosaic Radio Shack Fan Mount consisting of two identical mirrored brackets joined at an angle. First, construct a rectangular base measuring 45mm in length, 2mm in thickness, and 16mm in width. From this base, remove a central circular cutout with a radius of 20mm and two circular bolt holes with a radius of 2...
translate([-45/2,0,2]) rotate([-90,0,0]) union() { difference() { translate([0,0,-5]) cube([45,2,16]); translate([6,-0.5,5]) rotate([-90,0,0]) cylinder(r=2.5,h=3); translate([39,-0.5,5]) rotate([-90,0,0]) cylinder(r=2.5,h=3); translate([22.5,-0.5,22.5]) rotate([-90,0,0]) cylinder(r=20,h=3); } tra...
glb/cad_bc862b330450.glb
Create a parametric hyperbolic pencil holder base. Start by constructing a thick, hollowed-out cylindrical ring with a height of 10mm. The outer diameter of this base should be slightly larger than the footprint of the leaning pencils, with a wall thickness of 1mm. To create the pencil slots, arrange 13 cylindrical ho...
NUM_PENCILS = 13; PENCIL_DIAMETER = 8; PENCIL_LENGTH = 190; LEAN_ANGLE = 30; BASE_HEIGHT = 10; WALL_WIDTH = 1; PENCIL_SHIFT = 30; $fn = 64; leanAngle = min(80, max(-80, LEAN_ANGLE)); numPencils = max(2, NUM_PENCILS); baseHeight = max(0, BASE_HEIGHT); wallWidth = max(0, WALL_WIDTH); rodRadius = max(0, PENCIL_DI...
glb/cad_aca58db18a00.glb
Create a mounting solution consisting of a main block and three protruding tabs. Start by creating a primary cube measuring 15mm on all sides. From this cube, remove a rectangular section measuring 10mm wide, 6.2mm high, and 15mm deep, positioned 4.5mm from the bottom edge to create a channel. Attached to the side of t...
use <connector.scad>; translate([0, 15]) rotate([90]) difference() { cube([15, 15, 15]); translate([0,4.5]) cube([10, 6.2, 15]); } module base() { cube([10,2.5,3]); translate([8,0]) cube([2,2.5,5]); } translate([15, 1.5]) { base(); translate([0,5]) base(); translate([0,10]) base(); connectors()...
glb/cad_d86c1572ae15.glb
Create a rectangular block with a length of 20mm, a width of 10mm, and a height of 2.2mm.
use <connector.scad>; rotate([90,0,180]) connector(2.2); cube([20, 10, 2.2]); translate([20, 10, 0]) rotate([90]) connector(2.2);
glb/cad_f01dd1424833.glb
Create a Raspberry Pi mounting bracket designed for a 6mm aluminum frame. Start with a main rectangular frame measuring 200mm in length, 54.8mm in width, and 6mm in height. Add two vertical support walls, each 6mm wide, 60mm deep, and 6mm thick, positioned at the left and right ends of the frame. Connect these walls wi...
translate([0,0,0]) rotate(a=0, v=[0,0,0]) difference() { union() { color("green") translate([80,18,0]) rotate(a=0, v=[0,0,0]) cylinder(r=4, h=6, $fn=25); color("green") translate([25.5,43.5,0]) rotate(a=0, v=[0,0,0]) cylinder(r=4, h=6, $fn=25); %translate([0, 4, 6]) cube([200, 54.8, 6]); translate([25.5-3,0,...
glb/cad_16a0747409c5.glb
Create a connector part by starting with a cylinder of radius 5mm and height 2.5mm, oriented horizontally along the Y-axis. From this base shape, remove a smaller cylinder of radius 1.6mm and height 2.5mm, positioned with its center offset 4mm along the X-axis. Finally, remove a rectangular block measuring 10mm by 4mm ...
module connector(w=2.5) { translate([1.5, w, 5]) difference() { rotate([90]) scale([1.7,1]) cylinder(r=5, h=w); rotate([90]) translate([4,0]) cylinder(r=1.6, h=w, $fn=7); translate([-11.5, -3, -5]) cube([10,4,10]); } } module connectors() { connector(); translate([0, 5...
glb/cad_019320ea17b7.glb
Create a Hex Soap Mat consisting of a honeycomb grid of interconnected hexagonal cells. The structure is composed of repeating hexagonal units, where each unit is formed by six bars radiating from a central point. Each bar consists of a rectangular base measuring 8mm by 2mm with a height of 3mm, topped with a small cyl...
for(j=[-2:1:3]){ for(i=[-1:1:0]){ translate([12+i*24,(j+0.5)*16*cos(30),0])hex(); } } for(j=[-1:1:3]){ for(i=[-1:1:1]){ translate([i*24,j*16*cos(30),0])hex(); } } module hex(){ bar(0); bar(60); bar(120); bar(180); bar(240); bar(300); } module bar(r1){ rotate([0,0,r1]){ translate([-8*sin(30),8*cos(30),0]){...
glb/cad_065f4142255e.glb
Create a tiltable snap-in frame for a G4-type LED lamp consisting of two parts: a circular LED holder and a mounting base. For the LED holder, create a cylinder with a diameter of 30mm and a height of 3mm. Hollow out the center to accommodate the LED carrier, leaving a wall thickness of 2.25mm. Incorporate a snap-in m...
ledM = 1; ledH = 3; ledP = 0.7; ledC = 0.4; ledG = 4; hingeW = 10; hingeD = 4; hingeH = 18; hingeR = 1.5; eps = 0; granu = 24; module ledholder(ledD=23.3,wall=1.72){ difference(){ union(){ cylinder(r=ledD/2+wall,h=ledH+2*wall); for(a=[90,270])rotate(a) translate([-ledD/2-hingeD,0,(wall+le...
glb/cad_72118bbd01ca.glb
Create a tiltable snap-in frame for G4 LED lamps consisting of two parts: a circular LED holder and a mounting base. First, construct the LED holder. Create a cylinder with a diameter of 26.74mm (23.3mm LED diameter plus 1.72mm walls) and a height of 6.22mm. Hollow out the center with a 7.77mm radius hole. To allow fo...
ledM = 1; ledH = 3; ledP = 0.7; ledC = 0.4; ledG = 4; ledB = 2; hingeW = 10; hingeD = 4; hingeH = 18; hingeR = 1.5; eps = 0; granu = 24; module ledholder(ledD=23.3,wall=1.72){ difference(){ union(){ cylinder(r=ledD/2+wall,h=ledH+wall+ledB); for(a=[90,270])rotate(a) translate([-ledD/2-hing...
glb/cad_5dc9acb9d062.glb
Create a keychain pill bottle consisting of a hollowed cylindrical container with an integrated threaded lid. The main body is a cylinder with an outer radius of 7.6mm and a total height of 24mm. Bore a hole through the center of this body with a radius of 6.1mm and a depth of 22mm to create the storage cavity. Insid...
use <Thread_Library.scad> translate([20,0,0]) { trapezoidNut( length=10, radius=7, pitch=1.8, pitchRadius=5, threadHeightToPitch=0.5, profileRatio=0.5, threadAngle=35, RH=true, countersunk=0.5, clearance=0.1, backlash=0.1, stepsPerTurn=24 ); difference(){ translate([0,0,0]) cylinder([0,0,0], r...
glb/cad_e53d29925b3a.glb
Create a keychain pill bottle consisting of a threaded container and a matching screw-on lid. For the main body, create a cylinder with a radius of 7.7mm and a height of 6mm. Inside this cylinder, remove a central vertical hole with a radius of 1.8mm. On the exterior wall of the cylinder, add 20 small vertical finger...
use <Thread_Library.scad> $print_lid = true; $print_hook = true; if ($print_lid) { trapezoidThread( length=8, pitch=1.8, pitchRadius=5, threadHeightToPitch=0.5, profileRatio=0.5, threadAngle=35, RH=true, clearance=0.1, backlash=0.1, stepsPerTurn=24 ); difference(){ union(){ translate([0,0,.1])...
glb/cad_8c915c1c2dd7.glb
Create a limit switch mount clip designed to secure a switch to a DRO rod. Start by creating a main body that consists of two rectangular blocks. The first block is a base that fits around the DRO rod, with dimensions of 15.9mm width and 4mm height. The second block is a housing for the limit switch, which has a body...
debug=true; nozzled=0.4; shells=6; sww=6.5; swl=12.83; swh=5.72; swhd=2.12; swh0x=2.2+swhd/2; swh1x=swl-(2.12+swhd/2); swhy=.48+swhd/2; swhz=.48; swlw=1; swll=3.6; swlh=.42; swl0x=2-swlw; swl1x=7.03-swlw; swl2x=12.08-swlw; swly=-swll; swlz=3.17-swlh; swat=.3; swaw=3.55; swal=12.43; swaa=atan(2...
glb/cad_ec1588f7d5c5.glb
Create a Star and Snowflake Star Ornament by constructing a central starburst and a hanging loop. The starburst is composed of four intersecting 4-sided pyramids (square-based cones) that radiate from a center point. Each pyramid has a length of 14mm and a base thickness of 3mm. Arrange these four pyramids so they are ...
module star(lpoint=14,spoint=9,npoints=4,depth=3,miniSize=0) { for (point=[0:npoints-1]) { rotate([0,(360/npoints)*point,0]) cylinder(lpoint,depth,0,$fn=4); rotate([0,(180/npoints)+(360/npoints)*point,0]) cylinder(spoint,depth,0,$fn=4); if (miniSize > 0) { rotate([0,((180/npoints)+(90/npoints))+(360/npoint...
glb/cad_8fd778f14bf4.glb
Create a Star and Snowflake ornament by constructing a complex geometric star. Start with a central star composed of six 4-sided pyramid points, each 60mm long and 6mm deep, radiating from the center. Interleave these with six shorter 4-sided pyramid points, each 35mm long and 6mm deep, to create a 12-pointed star base...
module star(lpoint=14,spoint=9,npoints=4,depth=3,miniSize=0) { for (point=[0:npoints-1]) { rotate([0,(360/npoints)*point,0]) cylinder(lpoint,depth,0,$fn=4); rotate([0,(180/npoints)+(360/npoints)*point,0]) cylinder(spoint,depth,0,$fn=4); if (miniSize > 0) { rotate([0,((180/npoints)+(90/npoints))+(360/npoint...
glb/cad_86b77adaf566.glb
Create a 608 Linear Bearing mount. Start with a central cylinder 36mm high with a radius of 12mm. Around this center, place three rectangular blocks, each 36mm wide, 28mm deep, and 13mm high. Position these blocks symmetrically around the center, spaced 120 degrees apart, and offset them 19.5mm from the center axis. F...
$fn = 100; difference() { union() { difference() { union() { union() { union() { cylinder(center = true, h = 36, r = 12.0000000000); rotate(a = 0, v = [0, 0, 1]) { translate(v = [0, 19.5000000000, 0]) { rotate(a = 90, v = [0, 1, 0]) { cube(center = true, size = [36, 2...
glb/cad_992a3670072b.glb
Create a boardgame crate token by starting with a solid cube measuring 10mm in width, 10mm in depth, and 5mm in height. Hollow out the center of the cube by removing a smaller interior cube measuring 9.3mm on each side, leaving a wall thickness of 0.35mm on all four vertical sides. To create the crate's slatted texture...
width = 10; height = 5; layer = 0.3; wall = 0.35; bevel = 2; linewidth = 1; gap = 1; nrx= 1; nry = 1; linestart = linewidth/sqrt(2); border = (width-4*linewidth)/5; module line1(){ translate([-width/2,-width/2,0]) linear_extrude(height = height) { polygon(points= [[linestart,0],[width-lin...
glb/cad_14257641ae2d.glb
Create a Geneva Drive model consisting of a base plate and two rotating wheels. Start with a rectangular base measuring 125mm by 85mm with a thickness of 3mm. Position two vertical cylindrical pegs with a diameter of 5mm and a height of 10mm on the base, spaced 43mm apart (center-to-center) along the longitudinal axis,...
pegoffset=-7; baselength=125; basewidth=85; baseheight=3; pegdiameter=5; pegheight=10; roundnotchgap=5; wheel1height=7.5; wheel2height=8; wheel1lowerdiameter=60; wheel1upperdiameter=40; spacebetweenwheels=50; pegwheelgap=0.5; tinygap=0.5; wheel2lowerdiameter=(spacebetweenwheels-(pegdiameter/2)-roundnotchgap)*2; wheel2...
glb/cad_e8767e8a548b.glb
Create a Diamond Lattice structure contained within a cylinder. The lattice is composed of a repeating network of rods with a diameter of approximately 1.19mm. The geometry is based on a unit cell of 10mm. Within each cell, create four tetrahedral hubs. Each hub consists of four rods radiating from a central point loca...
module closedDiamond(dim, unit=10, thickness=2) { module O() { translate([unit/2,unit/2,unit/2]) cube(thickness); } module A() { translate([0,0,0]) cube(thickness); } module B() { translate([unit,unit,0]) cube(thickness); } module C() { translate([unit,0,unit...
glb/cad_272d14dd793a.glb
Create a shoes shelf bracket. Start by forming a main body that is a hull between a cylinder with a diameter of 16.2mm and a height of 12mm, and a rectangular block measuring 0.01mm by 50mm by 12mm positioned 80mm away from the cylinder's center along the x-axis. From this volume, remove a central vertical cylinder wit...
$fn=64; Lw=80; Dt=10.2; DtH=10; WL=50; WH=10; HH=DtH+2; dOkr=30; module shHole(diam){ cylinder(d=diam,h=40); cylinder(d1=diam+4,d2=diam,h=3); translate([0,0,-80])cylinder(d=diam+4,h=80); } difference(){ hull(){ cylinder(d=Dt+3*2,h=HH); scale([1,1,1])translate([Lw,-WL/2,0])cube...
glb/cad_7d422cdf0810.glb
Create a 3D model of an Upper Hold for a pirate ship. Start by creating a floor base that follows the hull's curvature, using a bounding box of 600mm by 300mm with a thickness of 5mm. Integrate a grid pattern into the floor. Add three vertical mast supports: one centered at [0, 0] and two others positioned at [-125, 0...
include <lower_hold.scad> include <boat_frame.scad> include <lib.scad> include <map4.scad> module upper_hold_floor() { difference() { union() { difference() { intersection() { scale([.9675,.9659,.9659]) hull() { outer_shell(); ...
glb/cad_b5e4a518ee27.glb
Create a 3D model of an Upper Hold for a pirate ship. Start by creating a deck floor that is a flat platform with a hull-like curvature. The main body is a modified rectangular slab with a width of 300mm and a length of 600mm, with a thickness of 5mm. Integrate three large cylindrical holes through the floor, each wi...
include <map3.scad> include <map2.scad> include <map1.scad> include <upper_hold.scad> include <boat_frame.scad> include <lib.scad> module window() { } deck_floor(); module deck_floor() { difference() { union() { difference() { intersection() { union() { ...
glb/cad_ff2b9cc7ad24.glb
Create two identical servo horns. For each horn, start with a central cylinder 7.75mm in diameter and 5.08mm high. On top of this cylinder, add a wider, thinner disc with a radius of 9.5mm and a height of 1.95mm, aligned to the top surface. In the center of the assembly, create a square hole measuring 4.905mm by 4.9055...
module servo_horn () { difference () { union () { cylinder(r=7.75/2,h=5.08, $fn=80); translate([0,0,5.08-1.95]) cylinder(r=9.5,h=1.95, $fn=80); } translate ([0,0,4.44/2]) cube(size=[4.905,4.9055,4.445],center=true); cylinder(r=1,h=5.1, $fn=80); translate ([-6.5,0,0]) cylinder(r=1,h=5.1, $fn=80); translate ([6.5,0,0]) c...
glb/cad_cef740d4fde5.glb
Create a bobbin end for a spinning wheel. The part is a circular disc with a total thickness of 9mm and an overall radius of 50mm. At the center, create a cylindrical hub with a radius of 10mm and a height of 9mm. This hub must have a concentric bore with a radius of 8.05mm passing through it. Additionally, create a ...
$fn=100; bore_rad = 8.05; bobbin_radius=50; shaft_rad=3.4; hub_rad = 10; thickness=9; rim_thickness = 10; spoke_width = 6; module groove (radius) { rotate_extrude() translate([radius-1, 0]) { translate([0, 4.5]) circle(r=2); difference() { translate([-1, 0]) square(thickness); translate([-1, thick...
glb/cad_2aa2ae99b584.glb
Create a PING))) Mount for a Protobot by starting with a base circular disk that has a radius of 10mm and a height of 1.4mm. Centered within this disk, create a vertical cylindrical hole with a radius of 1.25mm and a height of 3mm that passes through the center. To finalize the shape, integrate the base disk with a rec...
difference () { union () { difference () { import_stl("PingHolder3.stl",covexity=10); translate([-20,-3.75,0]) cube(40,10,4); } translate ([0,.5,0]) cylinder(r=10,h=1.4,$fn=80); } translate ([0,.5,0]) cylinder(r=1.25,h=3,$fn=80); }
glb/cad_5a7ee1ce82a6.glb
Create a fruit fly trap jar lid by combining a standard canning jar cap base with a conical top. Start with a canning jar lid base of radius 30mm. Centered on this base, construct a cone that extends 50mm upward, tapering from a base radius of 15mm to a point. Hollow out the interior of this cone by removing a smaller ...
include <canning_jar_lids.scad>; module fruit_fly_trap(rad) { difference() { union() { cap(rad); cylinder(r1=rad/2, r2=0, 50); } translate([0,0,-3]) cylinder(r1=rad/2, r2=0, 50); translate([0,0,43]) cylinder(r=5,10); } } fruit_fly_trap(reg);
glb/cad_4bf1ccae9337.glb
Create a Christmas ornament consisting of a compound of two dodecahedrons. Start by creating a dodecahedron scaled by a factor of 20. Create a second dodecahedron of the same size, rotate it 90 degrees around the x-axis, and merge it with the first to form a compound with octahedral symmetry. To finish the ornament, ad...
mark = 1; if (mark==1) union() { scale (20) dodecahedron(); rotate(a=90, v=[1,0,0]) scale (20)dodecahedron(); hanger(35); } else if (mark==2) union() { scale (20) icosahedron(); rotate(a=90, v=[1,0,0]) scale (20)dodecahedron(); hanger(35); } else if (mark==3) union() { rotate(a=90, v=[1,0,0]) union() { scale (20...
glb/cad_4eaa2caf49eb.glb
Create a simple part bin with a total width of 70mm, a length of 100mm, and a total height of 35mm. The bin features a flat base with a thickness of 1mm. Construct the back wall as a solid slab 70mm wide and 35mm high with a thickness of 0.8mm. Create the left and right side walls with a thickness of 0.8mm and a lengt...
tWidth = 70; tLength = 100; lipHeight = 15; tHeight = 35; wallThickness = 0.8; columnThickness = 3; lipThickness = 5; baseThickness = 1; module back (width, height, cThick, wThick, lThick){ cube([width,wThick,height]); translate([cThick*-1,0,0]) cube([cThick,cThick,height]); translate([width,0,0]) ...
glb/cad_4c21c5c6b66a.glb
Create a back panel for a switch case. Construct a rectangular plate with a length of 74mm, a width of 43.5mm, and a height of 55mm. The plate should have a uniform thickness of 2mm. The outer edges of the plate should be rounded with a fillet radius of 0.1mm. Ensure the final shape is a solid, flat rectangular slab wi...
Length = 74; Width = 43.5; Height = 55; Thick = 2; PCBFeet = 0; Vent = 0; Vent_width = 1.5; txt = ""; TxtSize = 3; Police ="Arial Black"; Filet = 0.1; Resolution = 50; m = 0.9; PCBPosX ...
glb/cad_63d02bf052f7.glb
Create a Zerotech Dobby ND Filter Bracket consisting of two primary components: a main bracket and a slide. First, construct the main bracket as a rectangular block measuring 13.5mm by 11mm with a height of 3mm. Carve out a central rectangular cavity measuring 12mm by 9mm, starting 2.2mm from the X-axis and 1mm from ...
$fa=1;$fs=0.1; height = 3; module slide() { difference() { translate([0.5,1.25,0]) cube([12.5,8.5,1]); translate([5.5,5.5,-3]) cylinder(8,3.8,3.8); translate([5.5,5.5,0.5]) cylinder(8,4.6,4.6); } translate([11,1.25,0]) cube([2,8.5,3]); } module bracket() { difference() { ...
glb/cad_a6c69e6b04fe.glb
Create a keychain featuring the word "Jeep" in a bold, sans-serif font. The text should be extruded to a height of 4mm. Surround the text with a border that has a 2mm padding and a total height of 2mm. At the left end of the keychain, create a mounting tab by forming a hull between a cylinder with a 4mm radius and an 8...
the_word = "Jeep"; border = 2; $fn = 75; linear_extrude (height = 4) { text (the_word, font = "Archivo Black", valign = "center"); } linear_extrude (height = 2) { offset (r= border){ text (the_word, font = "Archivo Black", valign = "center"); } } difference(){ hull(){ translate([-4,0,0]) cylin...
glb/cad_104bd9b48fb7.glb
Create a Lego-compatible cylinder by stacking four concentric, rotated geometric sections along a central vertical axis. Start with a base disk that has an outer diameter of 6.51mm and a height of 1.8mm. Above this, add a bottom body section with an outer diameter of 7.8mm and a height of 3.2mm, featuring a wall thickn...
D=2; wall=1.5; UD=7.8/D; S=1.8; B=9.6; F=3.2; SD1=4.8/D; SD2=3/D; D1=6.51/D; D2=4.88/D; $fn=360; color("red")rotate_extrude() polygon( points=[[SD2,B+S],[SD1,B+S],[SD1,B],[SD2,B] ,[SD2,B+S] ]); rotate_extrude() polygon( points=[[SD2,B]...
glb/cad_c09e394473fb.glb
Create a Lego-compatible cylinder by stacking five concentric, rotated geometric sections along a central vertical axis. Start with a base disc that is 3.25mm high and 3.9mm in diameter. Above this, place a main body cylinder with an outer diameter of 3.9mm and a height of 1.8mm. On top of the body, add a middle sectio...
D=2; S=1.8; M=6.4; F=3.2; B=9.6; wall=1.5; $fn=144; Size=B; SD1=4.8/D; SD2=3/D; BD1=7.8/D; BD2=7.8/D-wall; D1=6.51/D; D2=4.88/D; color("red") Polygon (Size, SD1,SD2,0,S); color("purple") Polygon (S, BD1,BD2,0,Size-S); color("brown") Pol...
glb/cad_46f952f012fb.glb
Create a Z Rod Constraint consisting of a bearing support and an attached clamping mechanism. First, construct the bearing support as a cylinder with a radius of 14.6mm and a height of 15mm. Remove a central vertical hole with a radius of 11.3mm starting 5mm from the base, and a second vertical hole with a radius of ...
include <PrusaMendel/source/configuration.scad> outer_diameter = m8_diameter/2+3.3; opening_size = m8_diameter-1.5; shaft_separation = 30; bearing_od = 22.6; bearing_id = m8_diameter; bearing_rodhole_d = bearing_id + 3; connector_len = shaft_separation - (m8_diameter/2 + bearing_od/2); m3_nut_diameter_horizontal = ((...
glb/cad_fd0e44f71c58.glb
Create a springy pen holder for a 3D printer or CNC head. The overall footprint is 64.9mm wide by 48mm high. Construct the main body as a flat plate with a thickness of 2mm. Incorporate two symmetrical, undulating spring arms on the left and right sides. Each arm consists of a ribbon-like structure with a thickness o...
use <ribbon.scad>; width = 64.9; height = 48; edge_thickness = 2.5; spring_thickness = 1; triangle_wall_thickness = 1.5; base_thickness = 2; wave_fraction = 0.5; tool_holder_thickness = 2; tool_holder_inner_diameter = 16; tool_holder_height = 15; mini_support_thickness = 0.4; nut_tolerance = 0.3; pen_screw_hole_d...
glb/cad_f0bb4b0f736a.glb
Create a 3D snowflake ornament with a thickness of 2mm. The design is based on a central point with six identical arms radiating outwards every 60 degrees. Each arm begins with a central rectangular spine 25mm long and 4mm wide. Along each spine, place seven pairs of smaller rectangular cross-bars perpendicular to the ...
$fn=20; r=rands(20,30,1)[0]; t=rands(2,6,1)[0]; c=round(rands(4,10,1)[0]); n=round(rands(3,8,1)[0]); w=rands(1,4,1)[0]; a=rands(50,80,1)[0]; v=rands(-10,10,1)[0]/10; l=rands(4,8,1)[0]; union(){ for(h=[0:c]){ rotate([0,0,h*360/c]){ translate([0,r/2,0]){ cube([t,r,2],center=true); } for(i=[0:n]){ for...
glb/cad_7ce5b11a6752.glb
Create a reinforced Y axis motor mount with an end stop mount. The main body is a complex block with a total height of 17mm. Construct the base by combining several hull-shaped volumes: two cylinders with 8mm radii centered at (8, 8) and (8, 28), a rectangular section from (20.5, 11.5) with a width of 10.5mm and length...
block_z=17; y_motor_mount(block_z); module y_motor_mount(block_z){ difference(){ structure_block(block_z); structure_holes(block_z); } } module structure_block(block_z){ hull(){ translate([8,8,0]) cylinder(h = block_z, r=8, $fn=50); ...
glb/cad_88de9e346aee.glb
Create a Reinforced Prusa i3 MK2 Y axis motor mount with end stop mount. The main body is a complex block with a total height of 17mm. Construct the base by combining several hull-shaped volumes: two cylinders of radius 8mm centered at (8, 8) and (8, 28), a cylinder of radius 6mm at (21.5, 42.5) and (21.5, 11.5), and a...
block_z=17; y_motor_mount(block_z); module y_motor_mount(block_z){ difference(){ structure_block(block_z); structure_holes(block_z); } } module structure_block(block_z){ hull(){ translate([8,8,0]) cylinder(h = block_z, r=8, $fn=50); ...
glb/cad_5dc5adcbcbc3.glb
Create a Tair-11A 135mm/f2.8 FF Gear, which is a thin, ring-shaped gear designed to fit around a lens barrel. Start by creating a hollow cylinder with an inner bore diameter of 70mm and a total thickness of 10mm. The outer perimeter must feature 95 involute gear teeth with a module of 0.8. The section of the ring con...
NUMBER_OF_TEETH = 95; BORE_DIAMETER = 70.0; GEAR_THICKNESS = 10; module gear ( NUMBER_OF_TEETH=15, circular_pitch=false, diametral_pitch=false, module_number = false, pressure_angle=20, clearance = 0.2, GEAR_THICKNESS=5, rim_thickness=8, rim_width=5, hub_thickness=10, hub_diameter=15, BORE_DIAMETER=5, cir...
glb/cad_b98090074ddb.glb
Create a VESA mount holder for an Asus eee T91. The model consists of two identical, parallel support rails. Each rail starts with a central rectangular base measuring 20mm wide, 163mm long, and 6mm thick. At both ends of each rail, add an L-shaped upright bracket. Each bracket is composed of a vertical wall 20mm wide ...
use <Vesa_Adaptor.scad> t91_x = 225; t91_y = 163; halterZ = 6; halterBreite = 20; halterAuflage = 17+halterZ; halterAuflageZ = 4; module halter(){ translate([0,-halterBreite/2,0]) union(){ translate([0,0, 0]) cube([halterAuflageZ, halterBreite, halterAuflage]); translate([-halterAuflageZ/2,0,halte...
glb/cad_baf68eb2e953.glb
Create a protective case for a USB RFID reader module consisting of a main body and a lid. The main body is a rectangular enclosure with a total width of 18.5mm and a height of 8.5mm. The interior is hollowed out to accommodate a PCB measuring 14.9mm by 29.8mm and a USB connector section measuring 12.1mm by 16mm with...
part = "demo"; usb_w = 12.1; usb_h = 4.5; usb_l = 16.0; pcb_w = 14.9; pcb_l = 29.8; ant_w = 17.0; ant_l = 27.5; ant_h = usb_h; ant_d = 3.5; ant_w1 = 12.0; ant_l1 = 23.0; screw_d = 1.2; tol = 0.25; d = 0.01; wall = 2.0; case_w = max(pcb_w+2*tol+2*wall,ant_w+2*tol+2*wall/2); module internals(t) { difference () ...
glb/cad_222479e4d29a.glb
Create a fidget spinner button consisting of a tiered cylindrical assembly. Start by creating a wide, flat base cylinder with a diameter of 20mm and a height of 1mm. Centered on top of this base, add a second cylinder with a diameter of 11mm and a height of 0.5mm. Above that, add a third, narrower cylinder with a diame...
bearing_dia=22+printer_threshold*2 ; bearing_inner_dia= 8 ; bearing_thickness=7.2 ; button_grip_h=1 ; button_spacer= 0.5 ; button_dia = 20 ; arm_fn=90 ; $fn=arm_fn; module button(); button(); module button(){ rotate([0,180,0]) difference(){ union(){ translate([0,0,bearing_thickness/2])cylinder(h=button_grip...
glb/cad_6042fe9c3919.glb
Create a Nand gate mechanical logic model. Start by constructing a base consisting of a vertical series of nine process elements, which are small rectangular blocks spaced 40mm apart along the Z-axis (from -160mm to 160mm). Add four rectangular support pillars: two positioned at x=40, y=-72.5, z=120 and x=-40, y=-72....
module register4b() { translate([0,0,0])bit(); translate([0,0,120])bit(); translate([0,0,-120])bit(); translate([0,0,240])bit(); } module register4bp() { translate([0,85,0])bit(); translate([0,85,120])bit(); translate([0,-85,0])bit(); translate([0,-85,120])bit(); translate([0,0,180]...
glb/cad_82f1f0adbb25.glb
Create a LED light holder assembly consisting of a frame mount, adjustable arms, and a light box. First, construct the frame mount for a 6mm thick aluminum profile. It should feature a vertical support 40mm high and 12mm wide, with 6mm thick horizontal flanges at the top and bottom. At the top of this mount, integrat...
frame_thickness=6; frame_height=40; holder_width=12; holder_thickness=6; cableclip_height=15; cableclip_width=6; cableclip_thickness=8; cableclip_frame_thickness=3; cableclip_space=3; cableclip_1_z_offset=8; cableclip_2_z_offset=20; holderjoint_diameter=10; holderjoint_screw_diameter=4; spacing=1; arm1_lenght=50; a...
glb/cad_a7eaa3d162b8.glb
Create a stackable fuse holder consisting of three main sections: a start piece, a middle piece, and an end piece. The overall design is based on a wide profile with a height of 6.35mm. For the main body, use a wide profile polygon that extends from x=10.25 to 16.85 and y=0 to 16.05, mirrored across the Y-axis. In the...
P_Type = 1; Orient = 1; A_Hole_OD = [3.0,3.6]; A_X_Offset = [12.25,12.55]; A_Y_Offset = [13.05,11.75]; Hole_OD = A_Hole_OD[P_Type]; Hole_X_Offset = A_X_Offset[P_Type]; Hole_Y_Offset = A_Y_Offset[P_Type]; $fn = 24; size=[23,9,20]; module carfuse(eps=[0,0,0]) { rotate([90,0,0]) color("red",.5) union() ...
glb/cad_760beb3d5ee5.glb
Create a parametric box and lid with the following specifications. For the main box, create a rectangular shell with a length of 150mm, width of 100mm, and height of 50mm. The walls should be 2.5mm thick. Apply a corner radius of 10mm to two opposing corners, leaving the other two corners square. On the long side wal...
length = 150; width = 100; tall = 50; thick = 2.5; lDepth = 6; cRadius = 10; sqCorners = 1; hSize = 5; hSpace = 7; hType = 4; lidText = "Hello"; lidTextSize = 20; lidTextFont = "Constantia:style=Bold"; $fn=100; DrawBox = true; DrawLid = true; if (DrawBox) translate([cRadius, cRadius, 0]) Box(); if (DrawLid) ...
glb/cad_344c2e1097ce.glb
Create a parametric box and lid. The box is 150mm long, 100mm wide, and 50mm tall with a wall thickness of 2.5mm. The box has rounded corners with a 10mm radius, though two opposing corners remain square. The interior is hollowed out, leaving a 2.5mm floor. On the long sides of the box, create a grid of hexagonal venti...
length = 150; width = 100; tall = 50; thick = 2.5; lDepth = 6; cRadius = 10; sqCorners = 1; hSize = 5; hSpace = 7; hType = 4; lidText = "Hello"; lidTextSize = 20; lidTextFont = "Constantia:style=Bold"; $fn=100; DrawBox = true; DrawLid = true; if (DrawBox) translate([cRadius, cRadius, 0]) Box(); if (DrawLid) ...
glb/cad_5a8d792376d5.glb
Create a parametric box and lid. The box is 150mm long, 100mm wide, and 50mm tall with a wall thickness of 2.5mm and corner radii of 10mm. The box is hollowed out, leaving a floor of 2.5mm. On the long sides and the bottom, create a grid of hexagonal ventilation holes with a diameter of 5mm and a spacing of 7mm. Creat...
length = 150; width = 100; tall = 50; thick = 2.5; lDepth = 6; cRadius = 10; sqCorners = 0; hSize = 5; hSpace = 7; hType = 4; txt = false; lidText = "HELLO"; lidTextSize = 20; lidTextFont = "Constantia:style=Bold"; $fn=100; DrawBox = true; DrawLid = true; if (DrawBox) translate([cRadius, cRadius, 0]) Box(); i...
glb/cad_65a8f6f2d989.glb
Create a PleX-Quad electronics enclosure by starting with a hexagonal base plate 3mm thick with a radius of 57.5mm and a 6-sided facet resolution. Centered on this base, add a second hexagonal layer 3mm thick with a radius of 55mm, positioned 3mm above the first. On top of these, place a rectangular block 67mm long, 50...
difference(){ union(){ cylinder(h=3,r=115/2,$fn=6); translate([75.5,0,1.5]) cube([67,50,3],center=true); translate([0,0,3]) cylinder(h=3,r=110/2,$fn=6); translate([74,0,4.5]) cube([64,45,3],center=true); } translate([-25,0,0]) cylinder(r=8,h=10); translate([25,0,0]) cylinder(r=8,h=10); }
glb/cad_dc0a5da96241.glb
Create a PleX-Quad electronics enclosure. Start by constructing a hexagonal prism with a height of 42.5mm, a bottom radius of 75mm, and a top radius of 59mm to create sloped sides. Hollow out the center by removing a hexagonal prism with a height of 42.5mm and a radius of 56mm, starting from a height of 3mm from the ba...
difference(){ union(){ cylinder(h=30+25/2,r2=118/2,r1=150/2,$fn=6); translate([75.5,0,(30+25/2)/2]) cube([67,50,30+25/2],center=true); } translate([0,0,3]) cylinder(h=30+25/2,r=112/2,$fn=6); translate([45,0,0]) cylinder(h=11,r=3.4/2,center=true); translate([-45,0,0]) cylinder(h=11,r=3.4/2,center=true); translate([0,-45...
glb/cad_f44c71294273.glb
Create a spool holder assembly centered around a central axis. The core of the assembly is a 120mm long cylinder with a radius of 3.5mm, representing an M8 threaded rod. At each end of the rod, place a hexagonal nut with a height of 6.2mm and a radius of 7.25mm, followed by a flat washer with a height of 1.5mm and a r...
module spool_holder() { difference() { union() { cylinder(h=30,r1=30,r2=15, center=true, $fn=100); translate([0,0,-17]) cylinder(h=4 ,r1=28,r2=30, center=true, $fn=100); } union() { cylinder(h=40,r=8, center=true, $fn=100); translate([0,0,-16]) cylinder(h=7,r=11, center=true, $fn=100);...
glb/cad_21892a417443.glb
Create a Bottle Hammock consisting of two concentric ring-like components designed to support a bottle. First, create a small inner support ring. This part features a central cylindrical void with a diameter of 50.2mm and a height of 5mm. The ring has a wall thickness of 1mm. Add a thin lip around the top edge with a...
lip_w = 3.175; brace_lip_w = 6.35; lip_th = 2.00; holder_w = 6; ring_h = 5; ring_th = 1.00; ooze = 0.2; ring_d1 = 50 + ooze; ring_d2 = 66 + ooze; module ring_support() { translate([ 0, 0, ring_h + ring_th] ) difference() { rotate_extrude($fn=180) polygon( points = [ [0,0], [holder_w + (ring_d1/2)...
glb/cad_3142d8a97e05.glb
Create a bracelet by constructing a hollow, ring-shaped tube. The main body is formed by rotating a circle with a radius of 15mm around a central axis, positioned 25mm away from that axis. To create the hollow interior, subtract a slightly smaller version of this rotated shape, scaled to 94% of the original width and d...
module braceletTube() { translate([0, 0, 15]) rotate_extrude(convexity = 10, $fn = 36) translate([25, 0, 0]) scale([0.3,1,1]) circle(r = 15, $fn = 15); } module hollowBraceletTube() { difference() { braceletTube(); scale([0.94,0.94,0.9])braceletTube(); } } difference() { hollowBraceletTube(); cylinder(30,...
glb/cad_ebd564a44829.glb
Create a leveling foot for a bookshelf by constructing a rectangular base and a raised outer rim with a hollowed center. Start with a rectangular base measuring 58mm by 45mm with a height of 3mm. Centered on top of this base, add a second rectangular block measuring 48mm by 35mm with a total height of 12mm (consisting ...
outer_height = 7; inner_height = 5; foot_thickness = 3; difference() { union() { translate([-48/2,-35/2,0]) cube([48,35,outer_height+inner_height]); translate([-58/2,-45/2,0]) cube([58,45,foot_thickness]); } union() { translate([-45/2,-32/2,inner_height]) cube([45,32,outer_height...
glb/cad_daa7788005b3.glb
Create a Bendy Lamp consisting of a circular wall base, a flexible neck, and a lamp head. Start with the base: create a cylinder with a radius of 39.8mm and a height of 21.5mm. Hollow out the center with a cylinder of radius 38.8mm and height 20.6mm. Remove a horizontal cylinder of radius 3mm and length 80mm from the...
$fn = 32; c = 0.55; module fillet(r, h) { translate([r / 2, r / 2, 0]) difference() { cube([r + 0.01, r + 0.01, h], center = true); translate([r/2, r/2, 0]) cylinder(r = r, h = h + 1, center = true); } } module torus(cirlceRadius = 2, cutRadius = 1){ rotate_extrude() translate([cirlceRadius,0])...
glb/cad_0556ffe88f44.glb
Create a kitchen hood on-off button. Start with a main cylinder 40mm in diameter and 20mm high, centered on the origin. Hollow out the center of this cylinder with a smaller concentric cylinder 36.5mm in diameter and 22mm high. Cut the outer shape using a large central block 60mm wide, 35mm deep, and 22mm high, cente...
$fn = 50; difference () { union () { difference () { cylinder (d=40,h=20, center=true); cylinder (d=36.5,h=22, center=true); translate ([0,5,0]) cube ([60,35,22],center=true); translate ([-13.5,-15,0]) cube ([10,20,22],center=true); translate ([13.5,-15,0]) cube ([10,20,22],center=true); } i...
glb/cad_68742f32c9ca.glb
Create a Single Z motor mount for a Prusa i3. Start with a base block 88mm wide, 78mm deep, and 8mm high. On the top surface, add a rectangular riser 16mm wide and 42mm deep, with a height of 24.5mm (8mm base + 13.5mm riser + 3mm offset). Integrate several cylindrical holes and cutouts for bearings and fasteners: -...
m3d = 3+0.3; m3r = m3d/2; m3nd = 6.2+0.3; m3nr = m3nd/2; m3nh=2.8; m4d=4+0.3; m4r=m4d/2; m4nd = 7.9+0.3; m4nr = m4nd/2; m4nh=3.4; m5d=5+0.3; m5r=m5d/2; m5nd = 9+0.3; m5nr = m5nd/2; m5nh=4.2; sbd = 8+0.3; sbr = sbd/2; bd=13.4; br=bd/2; bh=4; h=8; plh=13.5; mirror() { difference() { union() { translate([0,-2...
glb/cad_4d56ab113032.glb
Create a Single Z motor pulley for a Prusa i3. Start with a central cylindrical body that has a total height of 12mm. The bottom section is a base cylinder with a diameter of 20mm and a height of 6mm. Above this base, create a toothed pulley section with a height of 6mm and an outside diameter of 11.88mm, featuring 28 ...
m5nd = 9.1+0.4; m5nh=4; teeth = 28; profile = 1; motor_shaft = 5.4; shaft_count= 10; m3_dia = 3.2; m3_nut_hex = 1; m3_nut_flats = 5.7; m3_nut_depth = 2.7; retainer = 1; retainer_ht = 1.5; idler = 0; idler_ht = 1.5; pulley_t_ht = 6; pulley_b_ht = 6; pulley_b_dia = 20; no_of_nuts = 0; nut_angle = 360/no_of_nuts; nut_...
glb/cad_1a841c85ed4f.glb
Create a Single Z motor mount for a Prusa i3. Start with a central base plate that is a cube 42mm wide, 42mm deep, and 4mm thick. Centered on top of this base, add a cylinder with a height of 7mm and a diameter of 15mm. Remove a central vertical hole from the entire assembly with a diameter of 5.5mm. At the four corn...
difference() { union() { translate([0,0,2]) cube([42, 42, 4], center=true); translate([0,0,4]) cylinder(15, 7,7); } translate([0, 0, -1]) cylinder(21, 5.5/2, 5.5/2, $fn=32); translate([31/2, 31/2, -1]) cylinder(6, 3.3/2, 3.3/2, $fn=8); translate([-31/2, 31/2, -1]) cylinder(6, 3.3/2, 3.3/2, $fn=8); translate...
glb/cad_2f6c9520e9f9.glb
Create a Kimbap Maker Rice Roll Frame by constructing a composite geometric shape with a total height of 5mm. Start with a central equilateral triangle prism that has a circumradius of 48mm and a height of 5mm. To soften the edges, create a hull that encompasses this triangle and three cylinders with a radius of 5mm, p...
round_corner_out=6; round_corner_in=5; union(){ translate([0,0,10]) cube ([20,5,25], center=true); cylinder (h=5,r1=48, r2=48, center=true,$fn=3); hull() { translate ([0, 0, 2]) cylinder (h=5,r1=48, r2=48, center=true,$fn=3); translate ([-24,-41.5,0 ]) #cylinder (h=5,r1=round_corner_in, r2=round_c...
glb/cad_d38ec3e76f17.glb
Create a Kimbap Maker Rice Roll Frame by constructing a hollowed-out triangular prism with rounded corners. First, create the outer boundary by forming a convex hull that encompasses a 3-sided prism (equilateral triangle) with a height of 40mm, centered on the Z-axis, and three cylinders each with a radius of 6mm. Posi...
round_corner_out=6; round_corner_in=5; difference(){ hull() { cylinder (h=40,r1=50, r2=50, center=true,$fn=3); translate ([-24,-41.5,0 ]) #cylinder (h=40,r1=round_corner_out, r2=round_corner_out, center=true,$fn=100); translate ([-24,41.5,0 ]) #cylinder (h=40,r1=round_corner_out, r2=round_corner_out, ce...
glb/cad_576d9c6ba7d9.glb
Create a Cable Passer consisting of a central rotor and surrounding stators. For the rotor, create a cylinder with a radius of 25mm and a total height of 7.5mm. Hollow out the center by removing a cylinder with a radius of 22.5mm and a height of 5mm, leaving a wall thickness of 2.5mm at the top and bottom. Additionally...
scale(2.5) rotor_half(); module rotor_half () { intersection() { translate([-500, -500, 0]) cube([1000, 1000, 1000]); difference() { cylinder(r=10, h=3, center=true, $fn=50); translate([0,0,1.5]) cylinder(r=9, h=2, center=true, $fn=50); translate([0,0,-1.5]) cylinder(r=9, h=2, center=true, $fn=50); cy...
glb/cad_109f37bea830.glb
Create 8-bit Shamrock Glasses by constructing a pixelated frame with two arms. The front frame consists of two symmetrical lenses created from a grid of small cubes, each 1mm in size, scaled up by a factor of 2.87. The pixel pattern for the lenses forms a wide, blocky bridge and two rectangular eye-holes. At the outer...
w=25; h=16; s=1.3; l = 1; r = 0.5; a = [ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0, 1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1, 0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1, 0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1, 0,0,1,1,0,0,0,0,0,0,0,0...
glb/cad_af13f86a5865.glb
Create a customizable vial rack by starting with a solid rectangular block measuring 94mm in length, 71mm in width, and 16.75mm in height. Within this block, carve out a grid of 12 cylindrical holes arranged in 4 rows along the x-axis and 3 columns along the y-axis. Each cylindrical hole must have a diameter of 21.5mm ...
hole_shape=1; hole_size=21.5; hole_depth=15; rows=4; columns=3; spacing=2; bottom_thick=1.75; hole_punch=1; $fa=1; $fs=1; difference() { cube(size=[rows*(hole_size+spacing)+spacing, columns*(hole_size+spacing)+spacing, bottom_thick+hole_depth], center=false); holes(hole_shape,hole_size,hole_depth,rows,colu...
glb/cad_2de4e7754954.glb
Create a Canning Jar Fermentation Lid. Start by constructing a wide, shallow circular cap base. On top of this base, center a large hollow cylinder with an outer radius two-thirds that of the base and a total height of 25mm. The wall thickness of this cylinder should be consistent throughout. Inside this hollow cylind...
include <canning_jar_lids.scad>; module fermentation_lid(rad) { post_height = 22; trap_height = post_height + wall_thickness; post_outer_r = 6; difference() { union() { difference() { union() { cap(rad); cylinder(r=rad * 2/3, trap_height); } translate([0,0, -2 * wall_thickness...
glb/cad_a6ccf6ac8051.glb
Create an Ink Bottle Holder consisting of a base and a tilted cage. Start by creating a base plate using a convex hull of three cylinders with a radius of 2.5mm, positioned at [0, -38, 0], [35, 35, 0], and [-35, 35, 0], with a height of 50mm. From this base, remove a second convex hull formed by three cylinders of the ...
$fn=50; difference() { hull() { translate([0, -38, 0]) { cylinder(r = 2.5, h = 50); } translate([35, 35, 0]) { cylinder(r = 2.5, h = 5); } translate([-35, 35, 0]) { cylinder(r = 2.5, h = 5); } } hull() { translate([...
glb/cad_12ea4ee161a4.glb
Create a Customizable Hinge consisting of two rectangular leaves connected by a series of interlocking cylindrical hinge joints. Each leaf should be 48mm long, 12mm wide, and 4mm thick. Construct the hinge using 5 interlocking cylindrical segments, each with a diameter of 10mm. These segments alternate between the two...
hingeCount = 5; height = 48; width = 12; thickness = 4; hingeDiameter = 10; holeCount = 3; holeDiameter = 4; holeType = "countersunk"; holeCountersinkHeadDia = 6; holeCountersinkDepth = 2; holeSpacingType = "balanced"; holeSpacing = 12; holeOffsetX = 3; holeOffsetY = 3; hingeGap = 0.5; cutOpen = 1; inte...
glb/cad_0bb74bc6705f.glb
Create a Prusa Lower Z Axis Mount. Start with a central block that is 24.3mm wide, 8mm high, and 51mm long. At the center of the block, create a vertical hole for a bearing. This hole consists of a cylinder with a 19.5mm diameter and a height of 6.05mm, which then transitions into a narrower concentric cylinder with ...
mount(); $fs=0.2; $fa=3; tolerance = +0.001; smooth_rod_dia=6; threaded_rod_dia=6; threaded_rod_nut_dia=12.15; rod_clearance = 2; bearing_dia =19.5; bearing_height=6.05; bearing_clearance =2; bearing_indent_dia=13; clamp_mount_hole_dia=3; clamp_mount_hole_length=15; clamp_mount_nut_dia=6.3; clamp_mount_nut_height=...
glb/cad_ab6844a11520.glb
Create a Softsoap Transfer Adapter consisting of a hollow outer sleeve and an internal conical funnel. First, construct a hollow cylinder with an outer diameter of 29mm, an inner diameter of 28mm, and a total height of 20mm. Inside this sleeve, position a conical funnel starting at a height of 3.33mm from the base. Thi...
diamthread = 27; height = 10; thick = 1.0; slack = 1; $fn=72; sleeve(); translate([0, 0, height/3]) funnel((diamthread+slack+thick)/2, diamthread/4, 6, thick); module sleeve() { difference() { cylinder(d=diamthread+slack+thick, h=2*height); translate([0, 0, -.01]) cylinder(d=diamthread+slack, h=2...
glb/cad_9f0a047415d5.glb
Create a tile spacer grid by first constructing a single spacer unit. This unit is formed by the union of two intersecting rectangular prisms, both 5mm high and centered on the same plane: one prism measuring 3mm wide by 20mm long, and a second prism measuring 20mm wide by 3mm long, oriented perpendicularly to the firs...
length = 20; width = 3; height = 5; module tilespacer(){ union(){ cube([width,length,height],center=true); cube([length,width,height],center=true); } } gap = 3; delta = [width+gap,length/2+gap,0]; delta2 = [length/2+gap,-length/2+gap,0]; for(j=[-2:2]){ translate(j*delta2) for(i=[-2:2]){ translate(i*delta)t...
glb/cad_d8e79bc78514.glb
Create a Calliope Mini Case consisting of a hexagonal base and a matching lid. For the base, construct a hexagonal prism with a diameter of 101mm and a height of 7mm. Hollow out the center of this prism by removing a smaller hexagonal prism with a diameter of 96mm and a height of 7.1mm, leaving a thin outer wall. For ...
difference(){ cylinder(d=101, h=7, $fn=6); translate([0,0,-0.1]) cylinder(d=96, h=7.1, $fn=6); } translate([0,0,7]) cylinder(d=101, h=3, $fn=6); color("red"){ translate([-43,0,10]) linear_extrude(height=1){ text("CALLIOPE", font = "Roboto Slab:style=Bold", size=12);} translate([0,-13,10]) linear_extr...
glb/cad_cbfd9ac572de.glb
Create a Calliope Mini Case consisting of two hexagonal parts. First, create a solid hexagonal base with a diameter of 95mm and a height of 2mm. Second, create a hexagonal ring that fits over the base. This ring should have an outer diameter of 95mm and an inner diameter of 90mm, with a total height of 11mm. The ring i...
cylinder(d=95, h=2, $fn=6); color("green", 1){ translate([0,0,2]) difference(){ cylinder(d=95, h=11, $fn=6); cylinder(d=90, h=11.1, $fn=6); } }
glb/cad_1954bc98d1de.glb
Create a Calliope Mini Case consisting of two hexagonal parts. First, create a hexagonal base with a diameter of 101mm and a height of 7mm. Hollow out the center of this base by removing a smaller hexagonal volume with a diameter of 96mm and a height of 7.1mm, leaving a thin outer wall. Second, create a hexagonal lid ...
difference(){ cylinder(d=101, h=7, $fn=6); translate([0,0,-0.1]) cylinder(d=96, h=7.1, $fn=6); } translate([0,0,7]) difference(){ cylinder(d=101, h=2, $fn=6); color("red"){ translate([-43,0,1.01]) linear_extrude(height=1){ text("CALLIOPE", font = "Roboto Slab:style=Bold", size=12);} translate([0,-13,1...
glb/cad_d78366adae41.glb
Create a flat, decorative snowflake ornament with a thickness of 1.2mm. The design is a symmetrical, six-pointed star-like shape where each arm consists of a central thick beam that splits into two smaller, outward-reaching branches at the tip. The overall diameter of the snowflake is approximately 300mm (based on th...
fudge = 0.1; module poly_path10591(h) { scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[-10.621617,-153.968750],[-11.340367,-140.281250],[-12.059117,-126.593750],[-28.496617,-136.062500],[-40.921660,-142.750423],[-45.338709,-144.784338],[-47.715367,...
glb/cad_33c267f7e2f4.glb
Create a flat, 3D snowflake ornament with a thickness of 1.2mm. The design is a symmetrical, six-pointed star-like shape. Each of the six primary arms extends outward from a central hub, featuring a wide base that tapers slightly and then splits into a three-pronged fork at the tip. Between these primary arms, add sm...
fudge = 0.1; module poly_path3774(h) { scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[-11.306121,-168.765625],[-11.306121,-153.453125],[-11.425687,-145.067917],[-11.645298,-142.480584],[-12.033818,-140.802399],[-12.638017,-139.912586],[-13.504663,-...
glb/cad_7073c30cdb2b.glb
Create a flat, decorative snowflake ornament with a thickness of 1.2mm. The shape is a symmetrical, six-pointed star-like figure where each arm extends outward from a central core. Each of the six arms features a branching, organic structure with smaller protrusions and cut-outs, creating a lace-like geometric pattern....
fudge = 0.1; module poly_path3053(h) { scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[-1.390625,-158.336589],[-3.590900,-158.183304],[-5.691563,-157.715582],[-7.632894,-156.932852],[-9.355174,-155.834542],[-10.798682,-154.420082],[-11.903698,-152.6...
glb/cad_a70f83a09898.glb
Create a flat, decorative snowflake ornament with a thickness of 1.2mm. The overall shape is a symmetrical, six-pointed star-like figure with rounded, organic lobes. Each of the six main arms extends outward and terminates in a wide, rounded bulb. Within each arm, incorporate a series of smaller, rounded cut-outs and n...
fudge = 0.1; module poly_path12428(h) { scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[90.203125,-182.212107],[86.505550,-181.954630],[82.949012,-180.958451],[79.621094,-179.159412],[76.609375,-176.493357],[73.585956,-173.374037],[72.451211,-172.60...
glb/cad_b102a481ebe9.glb
Create a flat, decorative snowflake ornament with a thickness of 1.2mm. The overall shape is a symmetrical, six-pointed star-like polygon with intricate, curved cutouts. The outer boundary is defined by six primary arms extending from the center. Each arm features a rounded, bulbous tip and is separated by deep, conc...
fudge = 0.1; module poly_path9381(h) { scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[1.124824,-171.937502],[-1.849720,-171.050641],[-6.103763,-168.709017],[-11.071638,-165.270699],[-16.187676,-161.093752],[-23.899462,-153.795021],[-26.152809,-150....
glb/cad_33edb17ce7e5.glb
Create a flat, decorative snowflake ornament with a thickness of 1.2mm. The overall shape is a six-pointed radial star, where each of the six arms is identical and spaced 60 degrees apart. Each arm consists of a central stem that extends outward from the center. Along the sides of each stem, add smaller, symmetrical b...
fudge = 0.1; module poly_path3770(h) { scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[4.878363,-196.008403],[2.597113,-195.977153],[-0.590387,-195.758403],[-6.005643,-195.075842],[-9.307703,-193.977626],[-10.272684,-193.209595],[-10.837043,-192.261...
glb/cad_8535cd553b1f.glb
Create a flat, snowflake-shaped ornament with a thickness of 1.2mm. The overall geometry is a symmetrical, six-pointed star-like figure. Each of the six primary arms extends outward from a central core, ending in a rounded, circular bulb. The interior of the snowflake features a series of decorative cutouts that radi...
fudge = 0.1; module poly_path8195(h) { scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[-0.839536,-171.144057],[-4.218251,-170.707074],[-7.500697,-169.509098],[-10.575155,-167.515262],[-13.329906,-164.690700],[-15.527481,-161.589533],[-17.071474,-158...
glb/cad_296667b3bf10.glb
Create a flat, decorative snowflake ornament with a thickness of 1.2mm. The overall shape is a symmetrical, six-pointed star-like figure with intricate, organic cutouts and rounded edges. The outer boundary is defined by a complex polygon that extends roughly 172mm from the center at its furthest points. Within this ...
fudge = 0.1; module poly_path9976(h) { scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[0.272838,-171.859375],[-1.407482,-171.062894],[-4.243235,-168.894279],[-11.789662,-161.765625],[-16.696310,-156.259639],[-18.389197,-153.912248],[-19.649390,-151....
glb/cad_bd3e13ad1512.glb
Create a flat, 3D snowflake ornament with a thickness of 1.2mm. The overall shape is a six-pointed radial star. Each of the six primary arms extends outward and splits into a symmetrical, three-pronged fork at the tip. Between these main arms, add smaller, secondary decorative protrusions to fill the gaps, creating a...
fudge = 0.1; module poly_path11180(h) { scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[-3.701694,-168.792869],[-6.739972,-168.607700],[-9.157506,-168.032580],[-11.021477,-166.995410],[-12.399065,-165.424093],[-13.357450,-163.246528],[-13.963813,-16...
glb/cad_193b59764d54.glb
Create a K8200/3DRAG extruder core with a total height of 24mm. The main body is a complex block featuring a central vertical hole with a radius of 1.75mm (plus 0.5mm clearance) for the filament path. Construct the outer shell by combining a central rectangular block (52mm x 25mm x 24mm) with several hull-formed exte...
$fn=80; filament = 3; core_width = 24; translate([-5,-25, 23.5/2])rotate([0,90,90]) body(); module hex_prism(w=5, h=3, center=false){ cylinder(d=w*2/(sqrt(3)), h=h, center=center, $fn=6); } module m3_clearance(){ union(){ cylinder(r=1.55, h=20); translate([0,0,-10])hex_prism(w=5.3, h=15); ...
glb/cad_97a25df55327.glb
Create a K8200/3DRAG extruder core with a slot mount base. Start with a central body 23.5mm thick. The main structure is a block 52mm long, 25mm wide, and 23.5mm high. Integrate four vertical cylindrical pillars with a radius of 2.5mm at the corners: two at the front (x=2.5 and 7.5, y=±26) and two at the rear (x=45 and...
$fn=80; filament = 3.0; translate([-5,-25, 23.5/2])rotate([0,90,90]) body(filament); module hex_prism(w=5,h=3){ render(){ intersection_for(rot=[0:120:240]){ rotate([0,0,rot]) translate([-w/2,-w,0])cube([w, w*2, h]); }; }; }; module m3_clearance(){ union(){ cylinder(r=1...
glb/cad_bad0fcd6e10a.glb
Create a Christmas bell with an integrated LED holder. The main body is a hollow cone with a height of 120mm, an outer radius of 40mm, and a wall thickness of 3mm (inner radius of 37mm). The cone's top is open, and it features a circular hole at the very top center for hanging. The surface of the cone is decorated wit...
module ring(r1,r2,h) { rotate_extrude(convexity=4) translate([r1+h/2,0,0])circle(r=(h/2)*sqrt(2)); } module led (){ difference() { translate([0,100,00])cylinder(120,38,7); translate([0,100,00])cylinder(90,38,38); translate([0,100,00])cylinder(120,2,2); translate([-1.5,98.5,90])cube([30,3,30]); }} translate([0,0,...
glb/cad_1963dd1c99c3.glb
Create an Old School Motel Key Fob. The main body is a flat, elongated rhombus-like shape with rounded ends, measuring 90mm in total length and 45mm in total width, with a thickness of 2mm. The ends are rounded with a radius of 12mm. Around the outer perimeter of the top and bottom faces, add a raised decorative bead ...
$fn=45; total_length = 90; total_width = 45; curve_radius = 12; ridge_radius = 0.5; bead_radius = 0.8; twoside = 1; thick = 2; cir_r = curve_radius - bead_radius; cir_x_off = total_length/2 - cir_r - bead_radius; cir_y_off = total_width/2 - cir_r - bead_radius; kr_hole_r = 2.2 + ridge_radius; slen = sqrt(cir_...
glb/cad_00dcb37d6ee8.glb
Create a FiiO headphone amplifier mount designed to hold a device measuring 96mm wide by 131mm deep by 55mm high. Start with a rectangular base plate measuring 100.4mm by 135.4mm with a thickness of 2mm. At each of the four corners of the base, add L-shaped vertical supports that are 10mm high. Each support consists ...
gap = 0.2; module logo() { linear_extrude(height=5) { text("FiiO", font="DejaVu Sans:style=Bold", size=25); } } module screw() { union() { cylinder(h=3, r1=2, r2=4); translate([0, 0, -9]) cylinder(h=10, r=2); } } module amp_body() { cube([96, 131, 55]); } module corner() ...
glb/cad_97d738d21509.glb
Create a Configurable Square Standoff consisting of a base plate with two sets of cylindrical standoff feet. First, create a base plate 1.5mm thick. In the center of this plate, create a circular hole with a diameter of 8mm. Position four outer standoff feet at the corners of a square with a side length of 30mm. Eac...
outer_hole_spacing = 30; outer_foot_diameter = 6; outer_hole_diameter = 2; outer_foot_height = 2.5; inner_hole_spacing = 20.5; inner_foot_diameter = 6; inner_hole_diameter = 2; inner_foot_height = 5; inner_angle = 0; base_plate_thickness = 1.5; center_hole_diameter = 8; arm_fillet_radius = 8; arm_fillet_ste...
glb/cad_117e5c244fcf.glb
Create a slip-on vise pad by starting with a solid rectangular block measuring 140mm in width, 43mm in depth, and 16mm in height. From this block, remove a central rectangular volume of 128mm by 31mm by 6mm, positioned 6mm from the left, right, and bottom edges, and 10mm from the top edge, to create a hollow U-shaped s...
$fn=50; topMargin=6; bottomMargin=6; sideMargin=6; faceMargin=10; overhang=0; absShrinkage=1.01; viseX=128*absShrinkage; viseY=31*absShrinkage; viseZ=6*absShrinkage; module rod(rRad=10,rOffset=sideMargin+0.1*viseX) { translate([rOffset,0,-0.33*rRad]) rotate(a=90,v=[1,0,0]) cylinder(r=rRad,h=2*(viseY+topMargin...
glb/cad_ffd14e4c1e24.glb
Create an M10 Spinal holder by starting with a main rectangular block measuring 14mm wide, 20mm deep, and 40mm high. Attach a second rectangular block to the top of this main body, measuring 35mm wide, 20mm deep, and 10mm high, but rotate this top piece 45 degrees along the Z-axis. From this combined mass, remove a c...
translate([10,47,0]) rotate(a=90, v=[1,0,0]) difference() { union() { translate([0,0,-10]) cube([14,20,40]); translate([-15,0,45]) rotate([0,45,0]) cube([35,20,10]); } union() { translate([3.5,0,-10]) cube([7,30,34]); translate([14,0,20]) cube([20,20,10]); translate([-14,10,31]) rotate(a=45, v=[0,1,0]) cyli...
glb/cad_df28ca28f27f.glb
Create an M10 Spinal holder by constructing a main body composed of two joined rectangular blocks. The first block is 19mm wide, 25mm deep, and 14mm high. Attached to this is a second block of the same width and height, 28mm deep, but rotated 45 degrees upward along the X-axis. From this combined form, remove a centr...
translate([0,-33,14]) rotate(a=90, v=[0,1,0])difference() { union() { union() { translate([0,-5,0]) cube([19,25,14]); translate([0,20,0]) rotate([45,0,0]) cube([19,28,14]); } } union() { union() { translate([-3,-0.6,8]) cube([30,10.2,10]); translate([-3,4.5,8]) rotate(a=90, v=[0,1,0]) cyl...
glb/cad_e79e10df4986.glb
Create a HyperCube Z axis Alignment Tool by starting with a central rectangular block measuring 210mm in length, 15mm in width, and 5mm in height. Centered along the length of this block, remove a cylindrical hole with a diameter of 8mm that passes completely through the 5mm thickness. At each far end of the block, exa...
zRod = 8; leadScrew = 8; difference () { cube ([210,15,5], center = true); translate ([100 - zRod/2, zRod/2, 0]) cylinder(h=5,r=zRod/2,center=true); translate ([100 - zRod/2, 15 - zRod, 0]) cube ([zRod,15/2,5], center = true); translate ([-100 + zRod/2, zRod/2, 0]) cylinder(h=5,r=zRod/2,center=true);...
glb/cad_22ba14a33c09.glb
Create a storage latch for a waffle maker consisting of a main rectangular block and a specialized cylindrical clip. Start by constructing a solid rectangular base measuring 24.5mm in width, 45mm in height, and 2.25mm in depth. To this base, add a small rectangular protrusion measuring 3.5mm in width, 5mm in depth, and...
module clip () { difference() { color("black") cylinder(r=6.25,h=45,$fn=40); union () { color("red") cylinder(r=4.0,h=45.1,$fn=40); translate([0,-5.50,45.1/2]) color("red") cube(size=[6.25,6.25,45.1], center=true); } } } union () { translate([-10.0,4.0,0]) color("black") cube(size=[24.5,2.25,45]); translate(...
glb/cad_34f018046ba8.glb
Create a case for a mini thermal receipt printer and ESP8266. The main body is a hollowed-out shell with an outer width of 130mm, a height of 130mm, and a depth of 95mm. The walls are 5mm thick. The overall shape is formed by a hull of a flat rectangular base and a cylinder with a 35mm diameter lying horizontally acros...
$fa = 0.1; $fs = 0.1; $fn = 0; whid=130; hight=130; deeps=95; thiknes=5; fastnings=20; innerWhid=whid-(2*thiknes); innerHighet=hight-(2*thiknes); innerdeeps=deeps-thiknes; union(){ difference(){ hull(){ cube(size=[whid,hight,0.01],center=true); translate([0,0,deeps-(35/2)]){ ...
glb/cad_e811f8b0cacd.glb
Create a case for a mini thermal receipt printer and ESP8266 consisting of a flat lid with a thickness of 5mm. The lid is a square measuring 130mm by 130mm. Center a rectangular cutout in the lid measuring 104mm by 58mm. Add a PCB shelf to the lid, positioned 27mm from the back edge, with a thickness of 5mm and a dep...
$fa = 0.1; $fs = 0.1; $fn = 0; whid=130; hight=130; thiknes=5; fastnings=20; deepShelf=30; innerWhid=whid-(2*thiknes); innerHighet=hight-(2*thiknes); difference(){ union(){ translate([0,0,thiknes/2]){ cube(size=[whid,hight,thiknes],center=true); } translate([0,27+thiknes,-(...
glb/cad_c2ac09de7d14.glb
Create a Skitter SCADder robot consisting of a main chassis, rocking legs, and thrust legs. For the main chassis, create a central rectangular block 50mm wide, 97mm long, and 2mm thick. Add two side rails 3mm wide, 100mm long, and 8mm high, positioned 15mm from the center. Attach two pivot blocks, each 50mm wide, 14m...
inch = 25.4; animate = true; numcycles = 30; phase_shift =- 90; module BeamWalker() { chassis_length = 100; chassis_width = 50; pivot_block_height = 14; pivot_block_depth = 10; pivot_pin_diameter = inch/4; pivot_hole_diameter = inch/4+.1; if(animate) { color([0.5,0.5,1,1]) ...
glb/cad_5c4efcff2d3f.glb