Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Y-Belt Retainer and Tensioner consisting of a base and a slider. Construct the base as a rectangular block 30mm long, 15mm wide, and 12mm high. Hollow out the center to create a socket 15mm wide and 10mm deep to accommodate the slider. At the front end of the base, create a slot 6.1mm wide and 1.6mm high for...
dRise = 0; tFull = 1.6; tTooth = 0.8; tBase = tFull - tTooth; wTooth = 2.0; wSpace = 0.0; belt = 2; wBelt = 6.1; wHex = 6.9; dHex = 2.5; rM3 = 1.7; sDrop = wHex/2-0.5; Adjust = 0.5; pWidth = 9; bwExt = 15; bwInt = 15; blExt = 30; blHed = 6; bdExt = 12; bRoof = 2; bFloor = 2; bdSoc = bdExt-(bRoof+bFloor); swMax = b...
glb/cad_8464d64161a4.glb
Create a linear bearing housing block with a total length of 30mm. The main body is a prism with a height of 22mm and a width of 34mm. The vertical side profiles are symmetrical, featuring a base height of 6mm and a 45-degree fairing angle transitioning toward the top. At the center of the block, create a cylindrical ...
echo(version=version()); ID = 8; h = 11; D = 17; W = 34; H = 22; G = 18; A = 6; J = 24; E = 5; S1 = 4; S2 = 3.4; K = 18; L = 30; I = 8; angle = 45; i1 = 2; diam = 16; tol = 0.2; EL = 0; centerHoles = false; B1 = 17.5 + EL; s = 1.1; sd = 0.3; union(){ difference() { linear_extrude(height = L+...
glb/cad_7e66744904b4.glb
Create a customizable tool insert with an overall height of 33mm. The main body is a hollow cylinder with an outside diameter of 70.7mm and an inside diameter of 48.4mm. At the base, add a circular lip with a diameter of 75.7mm and a height of 1.5mm. The outer wall of the main cylinder features a tapered profile: the...
OD = 70.7; ID = 48.4; Ht = 33; Lip_Wid = 2.5; Lip_Ht = 1.5; Thk = 4; Slot_Wid = 4; Cham_OD = 4; Cham_Ang = 30; CS_Wid = 4; CS_Ang = 60; Lip_Wid2x = Lip_Wid * 2; Wid = (OD - ID) / 2; Slant_Wid = Wid - Thk; OD1 = OD - (Slant_Wid * 2); Cut_Thk = Wid - Thk - Thk; Short_Ht = (Ht - (Slant_Wid * 2)) / 3; A1 = Thk...
glb/cad_19626a10100a.glb
Create an Almost Universal Phone Car Mount consisting of two identical clip components: a Width Clip and a Height Clip, both with a height of 10mm and a wall thickness of 3.5mm. For the Width Clip, create a central hub block 7mm wide and 13.75mm tall. Subtract a 10-sided prism hole with a radius of 1.5mm from the hub....
PhoneWidth = 72.4; PhoneHeight = 135; PhoneDepth = 13.4; Part=2; WallThickness = 3.5; Height = 10; ScrewRadius = 1.5; ScrewHeadHeight = 3.5; ScrewHeadDia = 6.5; WHubOffSet = 0; WPushTabSize = 5; WHookBottom = 3; WHookTop = 3; HubGapWidth = Height + 0.25; WCrookHeightTop=0; WCrookOffSetTop=0; WCrookStartTop=0; WCrook...
glb/cad_8a02bd2de05c.glb
Create an Almost Universal Phone Car Mount consisting of two identical clip components: a width clip and a height clip. Both clips have a height of 10mm and a wall thickness of 3.5mm. For the width clip, create a central hub 7mm wide and 13.75mm tall. Subtract a 10-sided prism with a radius of 1.5mm from the hub, cent...
PhoneWidth = 72.4; PhoneHeight = 80; PhoneDepth = -6.5; Part=1; WallThickness = 3.5; Height = 10; ScrewRadius = 1.5; ScrewHeadHeight = 3.5; ScrewHeadDia = 6.5; WHubOffSet = 0; WPushTabSize = 5; WHookBottom = 3; WHookTop = 3; HubGapWidth = Height + 0.25; WCrookHeightTop=0; WCrookOffSetTop=0; WCrookStartTop=0; WCrookH...
glb/cad_b31d0b936336.glb
Create an Almost Universal Phone Car Mount consisting of two primary components: a suction cup holder and a pressure spinner. First, construct the suction cup holder. Create a cylindrical base with a radius of 20mm and a total height of 25mm. Within this base, create a central vertical hole with a radius of 5mm and a ...
use <Thread_Library.scad> translate([0,0,15]) { difference() { union() { difference() { union(){ trapezoidThread( length = 3, pitch = 10, pitchRadius = 20, threadHeightToPitch=0.3, profileRatio = 0.5, threadAngle = 90, RH = true, clearance = 0.1, ...
glb/cad_18640c367c8e.glb
Create a Quad V2 drone frame. Start with a central base plate consisting of a 200mm x 200mm x 8mm cube. From this base, remove several geometric sections to create airflow cutouts: two large polygons extending from the center to the edges at the front and back, and a complex inner cutout consisting of several smaller p...
$vpt = [0, 0, 0]; intersection(){ frame(); } teirTwo(); cover(); module frame(){ for(i = [0:3]){ rotate([0, 0, 360*(i/4)+45]) translate([125, 0, 9]) color("blue") cylinder(d = 23.75, h = 18.75, center = true); %rotate([0, 0, 360*(i/4)+45]) translate([125, 0, 24]) cylinder(d = 127, h = 7, center = true); } ...
glb/cad_050b0e5442b7.glb
Create a customizable nametag keychain. Start by creating a rectangular base bar 37mm long, 4mm wide, and 5mm high. Add a hemispherical cap to the end of the bar with a diameter of 4mm and a height of 5mm. At the opposite end of the bar, construct a keyring by creating a hollow cylinder with an outer diameter of 18mm a...
quality = 50; textInput = "THIJMEN"; textSize = 8; textDistance = 0; textSpacing = 1; textDistanceFromRing = 1; textHeight = 5; textHeightPosition = 5; textFont = "Anton"; barThickness = 4; barLength = 37; height = 5; keyringDiameter = 15; keyringThickness = 3; keyringHeight = 5; keyringPosition = 5; roundedEdgeAtRi...
glb/cad_e26e22c24586.glb
Create a spool holder for a 3D printer by constructing a base and an extended support arm. Start with a vertical rectangular pillar that is 20mm wide and 5mm thick. At the top of this pillar, attach a horizontal rectangular arm extending 43mm outward and 20mm wide, with a thickness of 5mm. On the underside of this hori...
$fn=180; union(){ difference(){ union(){ translate([3,3,-10])minkowski(){ cube([14,14,9]); cylinder(r=3,h=1); } cube([43,20,5]); translate([40,10,-60])rotate([0,90,0])cylinder(h=27,r=16); translate([62,10,-55])rotate([0,90,0])cylinder(h=5,r=16); } translate([28,-15,-115])cube([50,5...
glb/cad_9e66ec28c435.glb
Create an OpenTUSH filament spool holder consisting of two identical side plates and a jointing strip. For each side plate, create a base with a thickness of 2.6mm. The plate features two circular ends with a diameter of 30mm, separated by a distance of 100mm between their centers. Connect these ends with a rectangul...
$fn = 100; m3Hole = 3.2; D1 = 30; D2 = D1; cutDia = 152; ctrs = 100; thickness = 2.6; tolerance = 0.2; jointingW = 20; jointingQty = 24; bearingID = 7.93; bearingOD = 22; bearingW = 7.1; bearingClearanceD = 10.5; bearingClearance = 0.72; plateFootW = thickness + (bearingW/2) + bearingClearance; echo("plateFo...
glb/cad_78a1be303edc.glb
Create an OctoCopter drone frame. Start with a central stack consisting of three circular plates: a bottom base and a top base both with a radius of 79.5mm and a thickness of 1.5mm, separated by a gap of 85mm. Between these plates, place a smaller intermediate circular plate with a radius of 52.5mm and a thickness of 1...
$fn=50; BoomLen=375; BoomDia=12; BoomStrt=30.5; BoomEnd=BoomStrt+BoomLen; BaseDia=159; BaseT=1.5; SmlBaseDia=105; SmlBaseT=1.5; MntW=41; MntL=52.5; MntT=1.5; ClampW=10; ClampL=25; ClampT=19; NoMotors=8; MotorDia=28; MotorH=36; ShaftDia=3.175; ShaftH=51; PropDia=(12 * 25.4) + 5; PropT=3; PropW=10; GPS_Gap=70; CPU_Gap=...
glb/cad_8e0b344dc506.glb
Create a bearing groover attachment for a bolt hobber by constructing a base rectangular block measuring 40mm in length, 10.5mm in width, and 5mm in height. On top of this base, add a second rectangular block measuring 40mm by 7mm by 20mm, positioned 1.75mm from the side edge and 8mm above the base. Integrate a horizon...
difference(){ union(){ cube([40,10.5,5]); translate([0,5.25,5]) rotate([0,90,0]) cylinder(r=5, h=40); translate([0,1.75,8]) cube([40,7,20]); } translate([-1,5.25,5]) rotate([0,90,0]) cylinder(r=2.3, h=42, $fn=32); translate([20,0,22]) rotate([270,0,0]) cylinder(r=4.1, h=20); }
glb/cad_e1a276a6c452.glb
Create a button switch for a miter saw by stacking several coaxial cylindrical sections and removing a central rectangular slot. Start with a wide, thin base cylinder 14.92mm in diameter and 2.38mm high. Centered on top of this base, add a cylinder 8mm in diameter and 9.3mm high. Above that, add a tapered cylinder (fru...
$fs=.01; difference() { union() { top(); middle(); lip(); bottom(); button(); } hole(); } module hole() { translate(v = [0, 0, -9]) { cube(size = [10,2.82,18.20], center = true); } } module top() { translate(v = [0, 0, 0]) { cylinder(h = 5.86, r1 = 5.66/2, r2 = 5.22/2, center = false); } } m...
glb/cad_6a2ebed3149c.glb
Create a number block by starting with a solid rectangular prism measuring 30mm in width, 30mm in depth, and 15mm in height. Centered on the top face of this block, carve out the digit "3" as a recessed hole. The digit should be embossed 21mm high (extending through the block) with a thickness of 10mm. Position the dig...
use <Write.scad> module numberBlock(numStr) { translate([-3.4322,0.3072,7.5]) { difference() { cube([30,30,15], center=true); translate([0.65 + (numStr=="1" ? -1.3 : 0),0,2.5+0.5]) { write(numStr, center=true, rotate=0, h=21, t=10); } } } } numberBlock("3");
glb/cad_94ebed6a54bb.glb
Create a Conical Spool Holder by constructing a truncated cone with a height of 40mm. The cone should taper from a narrow top diameter of 24mm to a wide bottom diameter of 100mm. At the center of the wide base, create a cylindrical hole with a diameter of 22.1mm that passes completely through the object to accommodat...
Spool_Height = 40; Spool_Thickness_Narrow = 24; Num_Cutouts = 4; Smoothness = 300; Bearing_Diameter = 22.1; Spool_Thickness_Wide = (Spool_Height * 2) + 20; translate([0, 0, Spool_Height]) rotate([180, 0, 0]) difference() { cylinder ( d1 = Spool_Thickness_Narrow, d2 = Spool_Thickness_Wide, h = Spool_Heigh...
glb/cad_70c11dccdbdd.glb
Create an iSight mount for an M2 printer. Start with a base plate 4mm thick. The base consists of three rectangular sections joined together: one section is 43mm by 8mm, another is 8mm wide and extends 78.5mm in length, and a third is 57.2mm by 18mm. At the end of the assembly, create a mounting block that is 12mm hi...
layout = "all"; extrusion_width = .38; wall_width = extrusion_width * 4; base_height = 4; mount_hole_major_axis = 17.25; mount_hole_minor_axis = 10; mount_block_height = 12; clearance = 0.1; y_offset = 10; x_offset = 40; isight_radius = 35/2; r = mount_hole_minor_axis/2; $fn = 50; module isight_mount(h = 5, c = c...
glb/cad_754edb3b884f.glb
Create a female holder for a bike lane laser light. Start with a main rectangular block that is 22.75mm high, 10.605mm wide (half of the 21.21mm inner width plus a 2mm wall), and 7.6mm deep (3.6mm inner depth plus two 2mm walls). Carve out a central vertical slot to create the inner shaft, measuring 10.605mm wide by ...
wall = 2; innerWidth = 17.21; innerDepth = 3.6; partHeight = 22.75; handle_width = 11.6; module main_part(){ latch(); difference(){ cube([ innerWidth/2 + wall, innerDepth+wall*2 , partHeight] ); main_cuts(); } } module latch(){ translate([ 0, 0, -wall ] ){ cube( [ handle_width/2 -0.5, wall, wall] ); } ...
glb/cad_6f807f101bc7.glb
Create a 3D model of an MAA Icosahedron. Start by constructing a regular icosahedron with a scale factor of 50, oriented so that it has flat top and bottom faces. Centered above the icosahedron, add the text "MAA" as a 3D extrusion. The text should have a height of 32mm and a thickness of 30mm. Position the text so i...
use <EXTENSIONS/Writescad/write.scad> $fn=12; phi = (sqrt(5)-1)/2; scalefactor = 50; translate([1,-5,35]) color("red") write("MAA",t=30,h=32,center=true); icosahedron(scalefactor); module icosahedron(thescale){ scale(thescale) rotate(-atan(1-phi),[1,0,0]) polyhedron( points=[ [0,1,phi], [0,1,-...
glb/cad_6f9b6cbbf74f.glb
Create a Rostock VGA fan holder. Start with a rectangular base measuring 45mm in length, 5mm in width, and 8mm in height. At each end of this base, centered along the width, add a cylindrical spacer with a radius of 3mm and a height of 11mm. These spacers should be tilted at a 60-degree angle relative to the base. Thr...
$fs=1; $fa=1; module vga_fan_spacer_outside(){ translate([0,0,0])rotate([60,0,0])difference(){ cylinder(r=3, h=11, center=false); } } module vga_fan_spacer_inside(){ translate([0,0,0])rotate([60,0,0])difference(){ translate([0,0,-10])cylinder(r=1.45, h=25, center=false); } } module vga_fan_body(){ rotate([90,0,...
glb/cad_ab5beecb387f.glb
Create a Chili Oil Pourer consisting of a hollow plug, a wide top cap, and a pouring spout. Start by creating a hollow plug 17.5mm tall with an outer diameter of 18.5mm and a wall thickness of 2mm. To ensure a tight seal, add five concentric ridges (threads) around the exterior of the plug, each 0.5mm high and 19.5mm...
plugHeight=17.5; plugDia=18.5; plugWallThickness=2.0; plugThreadOver=1.0; plugThreadDia=plugDia+plugThreadOver; plugThreadNr=5; plugThreadHeight=0.5; topDia=27.0; topHeight=3.0; outletInnerDia=5.0; outletOuterDia=7.0; outletHeight=30.0; $fn=60; module makePlug() { difference() { union() { cylinder(h=plugH...
glb/cad_2989f71933f2.glb
Create a card box and lid assembly designed to hold a deck of cards. The main base is a rectangular container with outer dimensions of 89mm in height, 69mm in width, and 15mm in depth. The walls are 2mm thick, leaving an interior cavity of 85mm by 65mm. The base features a hollowed-out center and two small cylindrical ...
$fn=128; Height = 88; Width = 64; Number_of_Cards = 50; Sleeves = "none"; if (Sleeves == "none") { Card_Box(Height, Width, Number_of_Cards * 0.3); } if (Sleeves == "light") { Card_Box(Height + 2, Width + 2, Number_of_Cards * 0.5); } if (Sleeves == "premium") { Card_Box(Height + 2, Width + 2, Number_of_Cards * 0...
glb/cad_4eb6b5632afa.glb
Create a RaspberryPi Rack designed to elevate a board. Start with a solid rectangular base frame measuring 57mm wide by 87mm long with a total height of 25mm. The frame has a wall thickness of 5mm. Hollow out the center of the frame to create a recessed lip area, leaving a 2mm thick lip around the perimeter. The botto...
rp_l = 87; rp_w = 57; rp_t=1; lift_h = 10; leg_t = 3; frame_t = 5; frame_h = 25; lip_h = 2; lip_t = 2; min_a = 0.1; sd_slot_lcn = [12,-frame_t,-4+lip_t]; sd_slot_size=[30,frame_t*2,4]; power_slot_lcn = [43,-frame_t,rp_t+lip_t]; power_slot_size=[12,frame_t*2,10]; hdmi_slot_lcn = [rp_w-frame_t,37,rp_t+lip_t]; hdmi_slo...
glb/cad_f9a1c46ff190.glb
Create a Y-endstop holder for a Prusa I3 printer. Start by constructing two identical cylindrical clips, each 16mm high. Each clip is formed by a cylinder with an 11mm outer diameter and an 8mm inner diameter, with a 10mm diameter semi-circular section removed from the side to create a C-shaped open profile. Position t...
$fn = 100; difference(){ union(){ Clip(); translate([0,45,0]){ Clip(); } translate([-8,-2.5,0]){ cube([4,50,16]); } } rotate([0,90,0]){ translate([-2.5,0,-10]){ cylinder(d=3,h=10); } } rotate([0,90,0]){ translate([-13,0,-10]){ cylinder(d=3,h=10); } } rotate([0,90,0]){ transla...
glb/cad_68e7454f00c1.glb
Create a T-Slot Aluminium Extrusion by extruding a complex profile to a height of 2438.4mm. The profile is based on a 40mm by 40mm square. Remove a central 30.7mm square and two intersecting rectangles measuring 8mm by 40mm and 40mm by 8mm to create the primary T-slots. Additionally, remove a central circle with a radi...
use <Fillet2D.scad>; linear_extrude(height = 2438.4) { union() difference() { union() { difference() { square(40, center = true); square(30.7, center = true); square([8, 40], center = true); square([40, 8], center = true); } difference() { union() { sq...
glb/cad_46d9de7f2f87.glb
Create an Aeropress stand by constructing a solid base and removing specific volumes to create tool slots. Start with a base shape formed by the convex hull of four primary elements: a cylinder with a diameter of 11.5mm and height of 30mm centered at [26, 0, 0], a rectangular block of 5mm by 32mm by 30mm centered at [9...
ROOT3 = 1.73205; HEX = 2/ROOT3; module hex_rod(d, h) cylinder(d=d*HEX, h=h, $fn=6); module slots() { translate([26, 0, 0]) cylinder(d=11.5,h=30); translate([9, -31.3/2, 0]) cube([5,32,30]); translate([-93, -(85-16)/2, 0]) hull() { for(y=[0,85-16]) translate([0, y, 0]) cylinder(d=17, h=30); ...
glb/cad_bb1c011d8776.glb
Create a contractible spool for filament coils consisting of two hubs and several fork assemblies. First, create two identical hubs. Each hub is a central cylinder with a height of 12mm and a center hole of 8.4mm to accommodate an M8 threaded rod. Extending from the center are several wings (configurable between 3 an...
module chamfered_cylinder(r=0,r1=0,r2=0,h=0,d=1){ hull(){ translate([0,0,d])cylinder(r1=(r?r:r1),r2=(r>0?r:r2),h=h-2*d); cylinder(r1=(r?r:r1)-d,r2=(r>0?r:r2)-d,h=h); } } m3r=3.2/2; module fork_arm( l1=65, l2=80, w=12, h=5, alpha=35, beta=25, m=3 ){ translate([l1,0,0])rotate(-beta)...
glb/cad_34e283d7d5cf.glb
Create a fan knob consisting of a cylindrical cap and an integrated shaft. First, construct the cap as a hollow cylinder with an outer radius of 18mm, a height of 12mm, and a wall thickness of 2mm. The base of the cap should be a solid disc of the same radius and 2mm thickness. Inside the cap, add two thin intersecti...
part="complete"; total_height = 17; shaft_radius = 4.9; shaft_inner_radius = 3.6; shaft_flat_thickness=3.52; cap_height=12; cap_radius=18; cap_thickness=2; fin_wall_thickness=1.60; grip_style="dot"; style_must_protrude="no"; number_of_ridges = 25; central_angle=360/number_of_ridges; arc_length=cap_radius*(centra...
glb/cad_ad45919e5d17.glb
Create a ring measure tool consisting of a vertical stack of 21 thin, coaxial cylinders. Each cylinder must have a height of 3.5 mm. The cylinders should be stacked directly on top of one another along the Z-axis. Start with a base cylinder having a radius of 12 mm, and for every subsequent cylinder added to the stack,...
for(i=[0:20]){ translate([0,0,3.5*i])cylinder(h=3.5,r=12 - i * 0.25,$fn=120,center=true); echo (12 - i * 0.25); }
glb/cad_711de82f0d33.glb
Create a fractal Koch Cube starting with a central cube of 10mm per side, centered at the origin. Generate the shape through a recursive process repeated 5 times. In each iteration, place smaller cubes on the faces of the existing cubes. The size of the cubes in each subsequent level should be scaled down by a factor o...
direction = 0; global_direction = 0; scale_factor = 0.5; recursive = 5; size = 10; module Fractal(r, s, d, gd) { if (r > 0) { if (d != 1 && gd != 1) { translate([0, 0, 0.5 + s / 2]) scale(s) Fractal(r - 1, s, 0, gd); } if (d != 0 && gd != 0) { translate([0, 0, -(...
glb/cad_94b194e27572.glb
Create a Frame Nut-Trap reinforce by starting with a solid rectangular block measuring 5mm wide, 7.9mm deep, and 8mm high, centered on the origin. From this block, remove a central rectangular volume that is 5mm wide, 6mm deep, and 10mm high, shifted 0.9mm along the X-axis. Finally, remove a cylindrical hole with a rad...
difference(){ cube(size=[5, 7.9, 8], center=true); #translate([0.9, 0, 0]) cube(size=[5, 6, 10], center=true); rotate([0, 90, 0]) cylinder(r=2, h=10, center=true); }
glb/cad_9d93d20c8a3a.glb
Create a customizable pen holder consisting of a hollow cylindrical structure with integrated text. Start by creating a base cylinder with a height of 10mm, a bottom diameter of 70mm, and a top diameter of 75mm. Construct the walls of the holder by placing two concentric rings of text around the cylinder. The first r...
base_larghezza = 70; base_lunghezza = base_larghezza; base_altezza = 10; spessore = 10; rialzo = 10; apertura = 5; top_larghezza = base_larghezza - spessore; top_lunghezza = base_lunghezza - spessore; top_altezza = base_altezza - rialzo; $fn = 100; size = 40; riga1 = "GIANLUCA"; riga2 = "PETRILLO"; char1 = len(riga1);...
glb/cad_11f6a26eab47.glb
Create a Parametric Caged Roller Bearing with a total width of 12mm. Start by constructing two concentric raceways: an inner raceway with a diameter of 10mm and an outer raceway with a diameter of 40mm. The raceways should be designed as rings with a profile that includes a 0.3mm chamfer on the diameters to prevent fus...
cutaway="yes"; inner_diameter=10; outer_diameter=40; bearing_width=12; roller_type="cylindrical"; roller_diameter=9; R=4; cage_width=6; cage_geometry_scale=1; number_of_rollers=7; key_socket_AF=3.3; key_socket_depth=3; roller_raceway_tolerance=0.25; cage_roller_tolerance=0.4; cage_raceway_tolerance=0.5; ...
glb/cad_482e8fcb8940.glb
Create a dice holder consisting of a hollow rectangular sleeve and a sliding door. The main sleeve is a rectangular box with an outer length of 82mm, an outer width of 21mm, and an outer height of 21mm. The walls are 3mm thick. The interior cavity is 17mm wide and 17mm high, extending through the length of the box, but...
NUMBER_OF_DICE = 5; DIE_WIDTH = 15; TOLERANCE = 1; WALL_THICKNESS = 3; door_lip = 1; inner_length = (NUMBER_OF_DICE * DIE_WIDTH) + (TOLERANCE * NUMBER_OF_DICE * 2) + (WALL_THICKNESS + door_lip); inner_width = DIE_WIDTH + (TOLERANCE * 2); outer_width = inner_width + (WALL_THICKNESS * 2); out...
glb/cad_28d7e3ddca39.glb
Create a Calibration Pyramid consisting of four rectangular prisms of varying sizes stacked and offset to form a stepped structure. Start with a base block measuring 6.35mm wide, 25.4mm deep, and 6.35mm high. Place a second block on top of the first, measuring 12.7mm wide, 19.05mm deep, and 12.7mm high, centered along ...
EIGHT = 3.175; FOUR = 6.35; TWO = 12.7; ONE = 25.4; cube([FOUR, ONE, FOUR]); translate([-EIGHT, 0, 0]) cube([TWO, ONE - FOUR, TWO]); translate([-FOUR, 0, 0]) cube([TWO + FOUR, TWO, ONE - FOUR]); translate([-FOUR - EIGHT, 0, 0]) cube([ONE, FOUR, ONE]);
glb/cad_cb79d925bf4f.glb
Create a bead spinner base as a body of revolution. Start by forming a circular foot with a base radius of 40mm and a height of 20mm, rounding the top outer edge with a radius of 20mm. Centered on top of this foot, add a tiered shaft assembly. The first tier of the shaft is a base with a radius of 6mm and a height of 3...
module fillet (radius) { translate (v = [radius, radius]) { rotate (a = [0, 0, 180]) { difference () { square (size = radius * 1.001); circle (r = radius, $fn = $fn * 4); } } } } module round (radius) { translate (v = [-radius, -radius]) { difference () {...
glb/cad_303c4310f378.glb
Create a bead spinner bowl as a body of revolution. The overall maximum radius of the bowl is 40mm. The bowl features a central spindle with a radius of 6mm and a height of 70mm, with a rounded top. The bowl's wall has a total height of 25mm and a uniform thickness of 2mm. The lower part of the wall follows a meridia...
module sector (radius, angle) { $fn = $fn * 360 / angle; intersection () { circle (r = radius); if (angle <= 90) { polygon (points = [[0, 0], [radius, 0], [radius, radius], [radius * cos (angle), radius * s...
glb/cad_421490b8e2aa.glb
Create a flexible toy train track piece with a total length of 145mm. The main body is a rectangular slab with a base width of 40mm and a base height of 8.9mm. The center of the slab features a raised middle section that is 20mm wide and 12mm high. To make the track flexible, carve a series of evenly spaced transverse...
length = 145; extrusion_width = 0.35; line_thickness = 6; connector_tolerance = .3; use_custom_settings = 0; custom_width_base = 60; custom_width_middle = 20; custom_height_base = 10; custom_height_middle = 15; custom_connector_length = 17.5; track_type = use_custom_settings ? 0 : 1; rotate([0,0,90]) intersection...
glb/cad_9daa7c0b3c2b.glb
Create a movement tray for gaming miniatures. Start by creating a solid rectangular base with a width of 63mm, a depth of 62mm, and a height of 4mm. Hollow out the center of this base to create a shallow tray, leaving a perimeter wall that is 2mm thick on all sides. The interior floor of the tray should be 4mm deep. To...
Base_Size = 20; Figure_Width = 3; Figure_Depth = 3; edge_width = 2; edge_height = 4; tray_width = (Base_Size+1) * Figure_Width + edge_width*2-1; tray_depth = (Base_Size+1) * Figure_Depth + edge_width; echo ($tray_width); echo($tray_depth); difference () { difference () { cube ( [tray_width, tray_depth, edg...
glb/cad_0140e63623dc.glb
Create a project box consisting of a bottom tray and a top cover. The outer dimensions of the box are 50mm wide, 70mm deep, and 35mm high. Both the top and bottom sections are constructed with a wall thickness of 1.8mm. For the bottom section, create a hollow rectangular shell. To allow the top to fit securely, add ov...
part = "composite"; width = 50; depth = 70; height = 35; thickness = 1.8; overlap = 6; vent_type = "circle"; vent_angle = 45; vent_w = 1; vent_spc = 2; module half_box(width=70, depth=70, height=25, thickness=1.8, overlap=6) { difference() { cube([width,depth,height]); union() { translate(...
glb/cad_c1380701bd90.glb
Create a BioCube Corner Connector consisting of a central cubic hub with three orthogonal holes for dowels. Start by creating a central cube with a side length of 11mm, centered at the origin. To this central cube, attach two additional 11mm cubes: one translated 11mm along the Y-axis and one translated 11mm along the ...
cyl_rsize = 4; wallThickness = 3; cubesize = cyl_rsize*2+wallThickness; cyl_hsize = 200; helperDisc = cubesize*1.6; helperDiscZloc = -(cyl_rsize + 1.4); module bioCubeCorner() { module rotcy(rot, cyl_rsize, cyl_hsize) { rotate(90, rot) cylinder(r = cyl_rsize, h = cyl_hsize, center = true); } union(){ dif...
glb/cad_442b7808a0c1.glb
Create two identical straight knitting needles. For each needle, construct a main shaft as a cylinder with a diameter of 4mm and a total length of 80mm. At one end of the shaft, create a conical tip. The tip should be formed by a cone with a 20-degree angle, but the very point must be rounded off using a sphere with ...
$fn=30; Length=80; Diameter=4; Angle=20; sharpness=4; needle_type=3; number_of_needles=2; Wire_Width=2.7; slice="false"; e=0+.01; h=Angle/2; D=Diameter; R=D/(2*sharpness); a=(D/2)*(cos(h)/sin(h))-R/sin(h); L=Length-a-R; if(slice=="true"){ if(needle_type==1) lineup(number_of_needles, D*1.2) prepare() circular...
glb/cad_0d628fdd010f.glb
Create a buzzer mount for a quadcopter frame consisting of two vertical pillars connected by a central holder. Start by creating two identical cylinders, each 20mm tall with an outer diameter of 7mm and a concentric inner hole 5mm in diameter to fit standard standoffs. Position these two pillars vertically, spaced exac...
halfwidth=9; module buzzer_mount () { difference() { union() { mount_pillar(halfwidth); mount_pillar(-halfwidth); translate([1.1,0,7]) rotate([0,-90,0]) buzzer_holder(); } translate ([0,halfwidth,-0.1]) cylinder(d=5,h=20.2,$fn=32); translate ([0,...
glb/cad_4a04eb6941d1.glb
Create a buzzer mount for a quadcopter consisting of two vertical cylindrical pillars connected by a central rectangular block. Each pillar should be a hollow cylinder with an outer diameter of 7mm and an inner hole of 5mm to fit a standoff, extending to a height of 20mm. Position the two pillars so that their center-t...
halfwidth=9; module sat_mount () { difference() { union() { mount_pillar(halfwidth); mount_pillar(-halfwidth); translate([2.5,-9,0]) cube([1.2,18,20]); } translate([-3.5,-15,8]) cube([1.2,30,3]); } } module mount_pillar (ztran) { difference() ...
glb/cad_e335160b46a6.glb
Create a ReModded WALLY Plate, a custom electrical wall plate designed to hold a 1x3 array of keystone jacks. Start with a rectangular base plate with a height of 114.3mm and a thickness of 6mm. The overall width should be based on a single-gang configuration. The plate features a recessed inner area to allow the fac...
plate_width = 1; plate_size = 0; 1st_plate = "rocker"; 1st_plate_bottom_hole = "none"; 2nd_plate = "none"; 2nd_plate_bottom_hole = "none"; 3rd_plate = "none"; 3rd_plate_bottom_hole = "none"; 4th_plate = "none"; 4th_plate_bottom_hole = "none"; 5th_plate = "none"; 5th_plate_bottom_hole = "none"; module GoAway...
glb/cad_81a49fa94b3c.glb
Create a ReModded WALLY Plate, which is a custom electrical wall plate designed to hold a 1x3 array of keystone jacks. Start by creating a rectangular base plate with a height of 114.3mm and a thickness of 6mm. The width of the plate should be based on a standard single-gang configuration. Add bevels to the top and b...
plate_width = 1; plate_size = 0; 1st_plate = "keystone3"; 1st_plate_bottom_hole = "none"; 2nd_plate = "none"; 2nd_plate_bottom_hole = "none"; 3rd_plate = "none"; 3rd_plate_bottom_hole = "none"; 4th_plate = "none"; 4th_plate_bottom_hole = "none"; 5th_plate = "none"; 5th_plate_bottom_hole = "none"; module GoA...
glb/cad_24546618877d.glb
Create a ReModded WALLY Plate, which is a custom electrical wall plate designed to hold a 1x3 array of keystone jacks. Start by creating a rectangular base plate with a height of 114.3mm. The overall width is determined by the gang setting; for a 1-gang plate, use a width of 69.86mm. The plate should have a thickness...
plate_width = 1; plate_size = 1; plate_thickness = 0; 1st_plate = "lev5239"; 1st_plate_bottom_hole = "none"; 2nd_plate = "none"; 2nd_plate_bottom_hole = "none"; 3rd_plate = "none"; 3rd_plate_bottom_hole = "none"; 4th_plate = "none"; 4th_plate_bottom_hole = "none"; 5th_plate = "none"; 5th_plate_bottom_hole =...
glb/cad_e12a608e9ba5.glb
Create a Mars Surface Map consisting of a rectangular base with a topographical relief on top. Start by creating a solid rectangular plinth that is 50mm wide, 25mm long, and 1mm thick. Centered on top of this plinth, add a 3D surface map with the same width and length (50mm by 25mm). The height of the topographical fea...
surfaceWidth = 50.0; aspectRatio = 256 / 128; surfaceLength = surfaceWidth / aspectRatio; surfaceHeight = 5.0; baseHeight = 1.0; 3DSurface(surfaceWidth, surfaceLength, surfaceHeight, baseHeight); module 3DSurface( xSize, ySize, zSize, plinthHeight ) { mc = 0.02; surfaceMaxX = 256; surfaceMaxY = 128; tr...
glb/cad_8657d162a5d6.glb
Create a 3D surface map based on a grayscale depthmap. Start by creating a square base plinth that is 50mm wide, 50mm long, and 1mm thick. Centered on top of this plinth, generate a 3D relief surface with a maximum height of 5mm. The surface should be mapped from a 256 by 256 resolution data grid, scaled to fit the 50m...
surfaceWidth = 50.0; aspectRatio = 256 / 256; surfaceLength = surfaceWidth / aspectRatio; surfaceHeight = 5.0; baseHeight = 1.0; 3DSurface(surfaceWidth, surfaceLength, surfaceHeight, baseHeight); module 3DSurface( xSize, ySize, zSize, plinthHeight ) { mc = 0.02; surfaceMaxX = 256; surfaceMaxY = 256; tr...
glb/cad_f9ec704b5630.glb
Create a castor bracket by starting with a rectangular block 60mm wide, 24mm thick, and 40mm high. Center a vertical cylindrical hole with a radius of 4.2mm through the entire height of the block to accommodate the castor shaft. Drill two smaller holes, each with a radius of 2.7mm, passing horizontally through the bloc...
castor_shaft_rad=4.2; castor_shaft_len=40; bracket_width=60; bracket_thick=24; difference () { cube([bracket_width,bracket_thick,castor_shaft_len]); translate ([bracket_width/2,bracket_thick/2,0]) cylinder(h=200,r=castor_shaft_rad,center=true); translate([bracket_width*0.75,0,20]) rotate([90,0,0]) cylinder(h...
glb/cad_f1ee016dd459.glb
Create an Axis camera to tripod mount adapter consisting of two stacked sections. Start by creating a base octagonal prism with a height of 10mm and a radius of 15mm. Inside this base, carve out a right-handed trapezoidal threaded hole with a pitch of 1.2mm and a pitch radius of 2.95mm, extending through the full heigh...
use <Thread_Library.scad> $fn = 50; CAM_MOUNT_HEIGHT = 10; AXIS_ADAPTER_HEIGHT = 10; module camera_mount(height) { difference() { cylinder( h = height, r1 = 15, r2 = 15, $fn = 8 ); translate([0, 0, -.5]) trapezoidThread( ...
glb/cad_a646d1bbf3f7.glb
Create a Cube Test model by constructing a rectangular prism with a length of 1mm, a width of 2mm, and a height of 3mm. Position this prism so that its starting corner is offset from the origin by 4mm along the x-axis, 5mm along the y-axis, and 6mm along the z-axis.
X_Dimension = 1; Y_Dimension = 2; Z_Dimension = 3; X_Offset = 4; Y_Offset = 5; Z_Offset = 6; module mycube(length,width,height,movex,movey,movez) {translate([movex,movey,movez]){cube([length,width,height]);}} mycube(X_Dimension,Y_Dimension,Z_Dimension,X_Offset,Y_Offset,Z_Offset);
glb/cad_4f02cc1bb327.glb
Create a series of eight identical whistle units aligned side-by-side along the X-axis, with each unit separated by a 1mm sidewall. Each individual whistle unit is constructed from a central windway and an attached resonance chamber. The windway is a rectangular shell with outer dimensions of 14mm width, 17mm length, ...
windway_width=12/1; windway_height=3/1; windway_length=16/1; sidewall=1/1; wall=2/1; extra=1/1; chamber_height=10/1; chamber_width=windway_width; ramp_angle=12/1; opening_width=6/1; ramp_length=(wall+extra)/tan(ramp_angle); length_for_a4=176.4/1; num_whistles=8; length1=88; length2=78; length3=74; length4=66; length...
glb/cad_d6c505d444a4.glb
Create a parametric endstop holder. Start with a central rectangular base measuring 31.5mm in length, 4mm in width, and 10mm in height. At one end of the base, integrate a semi-circular clamp structure with an outer radius of 9.25mm and a height of 10mm. This clamp must have a central longitudinal hole with a radius of...
bw = 4; bh = 10; cl = 15; ad = 10; hd = 3; nd = 6.8; mhd = 2; ai = 0.75; xw = 0.1; mhs = 7; bl = 10+cl + ad / 2 + (bw - ai) + hd * 3 + mhs; translate([0,0,bh/2]){ difference(){ union(){ translate([-bl/2+hd*1.5+0.5,bw + ad - 2*ai+bw-2,0]) cube([bh,bw,bh],center=true); cube([bl,bw,bh], center = true); transla...
glb/cad_d62458e46795.glb
Create a set of three geometric shapes aligned along a single axis. First, create a cylinder with a height of 60mm and a constant radius of 30mm. Next, place a cone 65mm away from the center of the cylinder; this cone should have a height of 60mm, a base radius of 30mm, and taper to a point at the top. Finally, positio...
height=60; translate(v=[0,0,0]) cylinder(h = height, r1 = height / 2, r2 = height / 2, center=true); translate(v=[height + 5,0,0]) cylinder(h = height, r1 = height / 2, r2 = 0, center=true); translate(v=[height + height + 5,0,0]) sphere(r = height / 2, center=true);
glb/cad_92d5091e742c.glb
Create an Arduino UNO bracket and belt assembly. Start with a base plate measuring 59mm by 78mm with a height of 2mm. Add a central raised platform of 30mm by 30mm by 2mm, centered at [40, 39, 2]. Construct a perimeter wall system consisting of a bottom wall (20mm by 4mm by 6mm) and a top wall (50mm by 4mm by 3mm), wit...
module cutOutsZ() { translate([18,15,0]) { rotate(a=[0,0,62]) { color ("yellow") cube([6, 6, 6], center = false); } } translate([23,25,0]) { rotate(a=[0,0,62]) { color ("yellow") cube([6, 6, 6], center = false); } } translate([28,35,0]) { rotate(a=[0,0,62]) { color ("yellow") cube([6, 6...
glb/cad_4148d81c803d.glb
Create a Customizable ER Collet Box consisting of a bottom tray and a matching top cover. For an ER20 size, use a collet diameter (D) of 21mm. Construct the bottom tray as a rectangular block with a wall thickness of 2mm. The outer dimensions are determined by a grid of 5 columns and 3 rows of collets, with a spacing ...
part = "both"; collet_size = "ER20"; wall_thickness = 2; columns = 5; rows = 3; Offset = 3; if (collet_size=="ER8") { print_part(13.5, 1.5, 1.3, 8.5); } if (collet_size=="ER11") { print_part(18.0, 2.5, 2.0, 11.5); } if (collet_size=="ER16") { print_part(27.5, 4.0, 2.7, 17); } if (collet_size=="ER20") { pri...
glb/cad_3411c04ab4bc.glb
Create a Modular Scrubbing Node Grid consisting of a 2x2 arrangement of interlocking nodes spaced 16mm apart. Each node is built around a central core with a base diameter of 10mm (radius 5mm) and a height of 4mm. The grid alternates between three different top surface geometries: 1. A smooth node: a hemisphere with a...
Nodes_To_Use = "tri"; Nodes_across = 2; Nodes_deep = 2; spacing = 16; baseSize = 5; loopWidth = 5; loopHeigh = 4; wallThickness = .88; offset = (spacing/2)-loopWidth + 1.55; function baseFloor(x=4) = (x+1.5)*-1; module nubs(){ hull(){ sphere(1); translate([0,0,baseSize])sphere(1); } } ...
glb/cad_80613ad6fb8a.glb
Create a 3D-paired DNA model consisting of four distinct geometric letter-shapes (C, G, A, and T) arranged in a cluster. Use a base unit size of 6mm for the letters and a thickness of 1mm for the walls and lines. Construct the 'C' shape as a blue element featuring a 6-sided polygonal ring with an outer diameter of 9mm...
ls=6; lt=1; xw=0.45; gr=2/(1 + sqrt(5)); $fn=60; module DNA_C(){ color("blue") { translate([0,0,-lt]) linear_extrude(height=lt+xw){ translate([0,0]) circle(d=ls+lt*3, height=ls-lt, $fn=6); } linear_extrude(height=ls-lt+xw){ difference(){ ...
glb/cad_54cc0bff6258.glb
Create a 3D-paired DNA model consisting of several flat geometric elements, all with a uniform thickness of 3mm. First, create a pentagonal prism with a diameter of 30mm and a height of 3mm. Position a 3D letter "S" with a height of 20mm and a thickness of 3mm so that it is centered vertically and shifted 20mm to the l...
bd=30; tk=3; linear_extrude(height=tk){ rotate(180/5 - 90) circle($fn=5, d=bd); translate([-20,-(cos(180/5)) * bd/2 - 9.5]) rotate(90) text("S", font = "Linux Biolinum:style=Bold", size=20); } translate([10,-(cos(180/5)) * bd/2 + tk/2,-2]) rotate([0,-90,-90]) linear_extrude(height=tk, center=true)...
glb/cad_fc00e5848eb9.glb
Create a filament cleaner and guide by starting with a central rectangular block measuring 18mm wide, 15mm deep, and 28mm high. Carve a wide rectangular channel out of the top, 30mm wide, 12.5mm deep, and 6mm high. Remove a cylindrical hole with a radius of 3.5mm and a length of 25mm passing through the center of the b...
module filamentCleaner() { rotate ([180,0,0]){ difference() { difference() { difference() { translate([0,0,-10]){ cube([18, 15, 28], center = true); } translate([0,2.5,-2]){ ...
glb/cad_2b07db8ba1cc.glb
Create a Drinkpinne, a personalized drink stirrer, with a uniform thickness of 3mm. Start by creating a circular stir pad with a radius of 10mm. From this pad, extend a rectangular shaft 150mm in length and 20mm in width, positioned so that it connects to the pad offset from the center. At the far end of this shaft, ad...
use<write.scad> Name = "NAME"; Thickness = 3; Stirpad_radius = 10; Shaftthickness = 10; Shaftlength = 150; Space_between_letters = 0.8; cylinder(Thickness,Stirpad_radius,Stirpad_radius); translate([Stirpad_radius*.75,-Stirpad_radius/2,0]) cube(size=[Shaftlength,Stirpad_radius,Thickness]); translate([Shaftlength+(St...
glb/cad_b163fe5a7a5b.glb
Create a pulley wheel for a 1/2 inch nut. Start with a main cylindrical body that has a radius of 25mm and a thickness of 9mm. Remove a hexagonal hole from the center of the cylinder to accommodate the nut; this hexagonal cutout should have a diameter of 22mm across the flats and a height of 12mm. To create the pulley ...
m3Diameter = 14; m3NutDiameter = 22; $fn=100; radius=2.7; outer_radius=25; thickness=9; groove_radius=3; module UGroovePulley() { difference() { cylinder(r= outer_radius, h=thickness); cylinder(h = 12, r = m3NutDiameter / 2, $fn = 6); translate([0, 0, thickness/2]) rotate_extrude(convexity = 10) tra...
glb/cad_69fe2a61b962.glb
Create a touristic tent peg by starting with a base plate that is 20mm wide, 25mm long, and 3mm thick. Round the front end of this plate by creating a convex hull between the rectangular base and a cylinder with a 3mm radius centered at the front edge. At the center of the plate, add a protruding cylindrical boss with ...
$fn=120; difference(){ union(){ difference(){ hull (){cube( [20,25,3]) ; translate([-10,12.5,0]) cylinder(3,10,10); }; translate([-10,12.5,-0.1]) cylinder(3.2,4,4); }; translate([10,12.5,0]) cylinder (7,7,7); }; translate([10,12.5,-0.1]) cylinder (7.2,4,4);...
glb/cad_8e7b9c0e7ca7.glb
Create a parametric handle by starting with a main body formed by rotating a circle with a radius of 10mm around an axis. This circle should be scaled by 0.4 along the X-axis and 1.2 along the Y-axis, then rotated 90 degrees and positioned so the center of the arc is at a height of 50mm below the origin, creating a cur...
interaxes = 58; handle_size = 10; holes_diameter = 6; nuts_diameter = 13; thickness = 2.5; quality = 128; difference(){ union() { translate([0,0,-interaxes/1.155]) rotate([90,0,0]) rotate_extrude(convexity = 100, $fn = quality*2) translate([interaxes, 0, 0]) scale([.4,1.2])c...
glb/cad_0c6c5899b38b.glb
Create a Magic Block Piercing Trick set consisting of a box, a lid, six blocks, and a pin. Create a rectangular box bottom with outer dimensions of 44mm length, 22mm width, and 10mm height. The walls should be 1.8mm thick. Remove a cylindrical tunnel with a 2mm diameter running through the center along the length of t...
block_count = 6; block_l = 20; block_w = 14; pin_d = 2; box_t = 1.8; peep_d = 4; play = 1.0; block_h = ( block_l - pin_d - 2 * play) / 2; l1 = block_count*block_h + (block_count-1)*play + 2*box_t; l2 = (block_count-2)*block_h + block_count*play + block_l; box_l = 2*play + max(l1, l2); box_w = block_l + 2*pla...
glb/cad_fdb531d09806.glb
Create a Kodak 8000 pano bite plate consisting of a flat base slide and a vertical mounting block. Start by creating a rectangular base slide centered on the origin with a width of 50mm, a length of 130mm, and a height of 8mm. At the front end of the slide, centered at the edge, create a vertical block that is 50mm w...
slide_width=50; slide_height=8; slide_lenght=130; block_height=63; block_length=46; block_back_r=10; bite_stick_hole=7.5; block_width=slide_width; $fn=600; module main_slide() { difference(){ cube( [slide_width,slide_lenght,slide_height],center=true); translate([0,slide_lenght/2,(block_height/2) - (slide_height /2...
glb/cad_ab5e687f1614.glb
Create a parametric bushing holder. Start by creating a central cylindrical sleeve with an outer diameter of 18mm (bearing diameter 15mm plus 3mm holder thickness) and a height of 24mm. Remove a concentric inner cylinder with a diameter of 15mm and a height of 24mm to create the hollow bore. Cut a rectangular slot thro...
bearing_diameter = 15; bearing_length = 24; mounting_hole_dia = 3; tap_tolerance = 0.5; pad_thickness = 3; pad_length = 12; holder_thickness = 3; screw_tab_length = 5; Screw_plates_length = screw_tab_length+holder_thickness; Screw_plates_thickness = 2; precision = 360; module holder(b_d, b_l, m_h_d, t_t, p_t, h_t, p){...
glb/cad_c8e05f92b909.glb
Create two identical tiny book covers. For each cover, start with a square plate measuring 25.4 mm by 25.4 mm with a thickness of 3.18 mm. On one side of the plate, create three square holes, each measuring 3.18 mm by 3.18 mm and passing completely through the thickness of the material. Position these holes in a vertic...
side = 25.4; height = 3.18; hole = 3.18; holeX = 9; module cover() { translate([0, 0, height/2]) { difference() { cube([side, side, height], center=true); translate([-holeX, -holeX, 0]) { cube([hole, hole, hole], center=true); } translate([-holeX, 0, 0]) { cube([hole, hole, hole], center=true); ...
glb/cad_2d3ec284d1e2.glb
Create a parametric bottle tray consisting of a grid of 12 cylindrical cells arranged 3 wide by 4 long. Each cell is formed by a cylinder with an outer diameter of 37mm and a height of 19mm. From the center of each cylinder, remove a coaxial inner cylinder with a diameter of 27mm, starting from a height of 1.8mm and ex...
Number_Of_Bottles_Long=3; Number_Of_Bottles_Wide=4; Inside_Diameter=27; Overall_Height=19; Base_Thickness=1.8; Diameter_Base_Hole=15; Wall_Thickness=5; First_Bottle_Pos = (Inside_Diameter/2)+Wall_Thickness; Step = Inside_Diameter+Wall_Thickness; iMax = First_Bottle_Pos+(Number_Of_Bottles_...
glb/cad_5ad41c97a474.glb
Create a magnetic coupling consisting of two interlocking cylindrical halves. First, create the bearing coupling: a cylinder with a height of 10mm and a diameter of 22.4mm. On top of this, add a second cylinder, the holder, with a height of 10mm and a diameter of 20mm. Within this holder section, create three identic...
include <modules.scad>; include <params.scad>; rotate(v=[1, 0, 0], a=180){ translate(v=[0, 0, -BEARING_HEIGHT - HOLDER_HEIGHT]){ cylinder(h=BEARING_HEIGHT, r=BEARING_HOLE_DIAMETER / 2 + HOLDER_BEARING_PRESS, $fn=FRAGS); translate(v = [0, 0, BEARING_HEIGHT]){ difference(){ union(){ cylinder(h=HOLDER_HE...
glb/cad_b8281e57401b.glb
Create a Simple J-Head/Groove Mount consisting of two primary components: a groove plate and a holding plate. First, create the groove plate. Start with a cylinder 60mm in diameter and 4.5mm high. Intersect this with a cube 60mm wide, 20mm deep, and 4.5mm high, centered on the origin. Remove two 4.4mm diameter holes c...
plate_height = 4.5; upper_height = 8; plate_width = 20; generate_cutouts = "Yes"; support_width = 4.5; platform_diameter = 60; platform_bcd = 50; jhead_groove_diameter = 12.0; jhead_body_diameter = 16.0; jhead_upper_height = 6.0; desired_bolt_recess_depth = 4.25; pneumatic_fitting_drill_diameter = 4.3; pneu...
glb/cad_433617dfe186.glb
Create a Guardian Robot base consisting of a circular plate and a central rectangular enclosure. Start with a thin circular disc 52.9mm in diameter and 1.5mm thick. In this disc, create three 5.2mm diameter holes: one at the center and two positioned symmetrically along the x-axis at a distance of 13.225mm from the cen...
d1 = 52.9; d2 = 3; h = 9; wall = 1.5; sg90_x = 23.5; sg90_y = 13.1; sg90_h = 28; q = 64; $fn=q; linear_extrude(wall,convexity=4) difference(){ circle(d=d1,$fn=q*2); circle(d=5.2); translate([d1/4,0]) circle(d=5.2); translate([-d1/4,0]) circle(d=5.2); for(a=[0:1]) rotate(85-a*170)...
glb/cad_4f87ea6dee0f.glb
Create a Prusa MK2 clone x-end idler. Start with a base block and subtract a series of holes and pockets to create the final geometry. First, create a central void for the lead screw by removing a cylinder with a radius of 1.8mm and a length of 80mm, centered at [0, -22, 30.25] and rotated 90 degrees. Add a second, l...
use <x-end.scad> module x_end_idler_holes(){ x_end_holes(); translate([0,3.5,0]){ translate(v=[0,-22,30.25]) rotate(a=[0,-90,0]) cylinder(h = 80, r=1.8, $fn=30); translate(v=[1.5,-22,30.25]) rotate(a=[0,-90,0]) cylinder(h = 10, r=3.1, $fn=30); translate(v=[-21.5,-22,30.25]) rotate(a=[0,-90,0]) rota...
glb/cad_c50e8722afcb.glb
Create a Prusa MK2 clone x-end for a TR8 lead screw. Start with a main rectangular block measuring 17mm wide, 39mm deep, and 58mm high. At the top and bottom of the block, create two push-fit rod holes with a diameter of 7.8mm and a length of 50mm, centered along the depth axis. In the center of the block, create a...
use <bearing.scad> use <polyholes.scad> rod_distance = 45; module x_end_base(){ height = 58; translate(v=[-15,-9,height/2]) cube(size = [17,39,height], center = true); vertical_bearing_base(); translate(v=[0,-17,0]) poly_cylinder(h = 8, r=12.5, $fn=25); translate(v=[-6,-10.6,10]) rotate([0,0,48.2]) cube(size =...
glb/cad_7b59a2fa3fb4.glb
Create a train track connector with a height of 11mm. Start by creating a main cylinder with a radius of 6mm and a height of 11mm. Attached to this cylinder, create a rectangular bridge with a width of 6mm, a height of 11mm, and a length of 22mm, extending from the center of the first cylinder. At the opposite end of t...
height = 11*1; fixedrad = 6*1; malerad = 5.5*1; stud_length = 22; studthickness = 6*1; nodrad = 1*1; nod_recess = 0.2; nodangle = 40*1; curveresolution = 50*1; cylinder(h=height,r=fixedrad,$fn=curveresolution); translate([stud_length,0,0]) cylinder(h=height,r=malerad,$fn=curveresolution); translate([0,-studthi...
glb/cad_114f1bd70c70.glb
Create an M3 bottom nut thumbwheel consisting of a tiered cylindrical body with a central hole. Start by creating a main wide disc with a diameter of 22mm and a height of 4mm. On top of this disc, add a smaller concentric cylindrical extension with a diameter of 12mm and a height of 2mm. Pierce the entire center of t...
hole_dia = 3.5; wheel_dia = 22; wheel_h = 4; tube_dia = 12; tube_h = 2; total_h = wheel_h + tube_h; knurl_cnt = 6; knurl_dia = 7; hex_h = 3; hex_shaft = 6.0; difference() { union() { cylinder(h = wheel_h, r = wheel_dia / 2, $fn = 50); translate([0, 0, wheel_h]) cylinder(h = tube_h, r = tube_dia / 2, $fn = 50); ...
glb/cad_e67888c7e1ca.glb
Create an "Impossible Sphere" puzzle piece by starting with a sphere that has a radius of 16mm. From this sphere, remove several intersecting volumes to create a complex void. First, remove a cube with a side length of 50mm centered such that its edges are offset from the center by 0.15mm. Second, remove a second 50mm ...
r=16; size=50; gap=0.3; half_gap=gap/2; part(); module your_shape_here() { sphere(r=r,$fn=200); } module part() { difference() { your_shape_here(); translate([-r/2-half_gap,-size+half_gap,-1]) cube([size,size,size]); translate([0,0,-size/2+half_gap]) cube([size,size,size],true); translate([-r/2,0,...
glb/cad_dd334cb8f6d8.glb
Create a Printrbot rod end hat by constructing a solid cylinder with a height of 3mm and a radius of 5mm, centered on the Z-axis. Place a sphere with a radius of 5mm on top of the cylinder, centered at a height of 3mm, to create a rounded dome. From this combined shape, remove a central vertical hole by subtracting a c...
$fn=50; D=8+0.2; height=3; wall_thickness=1; topClearance=4; width=D/2+wall_thickness; drill_lenght=height+width-topClearance; R=D/2; module end_hat() { difference() { union() { translate([0, 0, 0]) cylinder(h = height, r1 = width, r2 = width, center = false); translate([0, 0, height]) sphere(r = w...
glb/cad_8373540223c8.glb
Create an Adjustable Electrical Cable Box consisting of a shallow cylindrical base with a diameter of 45mm and a height of 2mm. From the top surface of this base, remove a central cylindrical core with a diameter of 37mm and a depth of 3.75mm. Around the perimeter of this central void, create seven rectangular slots. E...
d1_outer = 45; wanddicke = 2; d2_inner = d1_outer - wanddicke; einrasterung_tiefe = 1.5; tiefe_einr = einrasterung_tiefe+einrasterung_tiefe/2+einrasterung_tiefe; d_einr = (d2_inner/2)-wanddicke-wanddicke/2; $fn = 100; cylinder(wanddicke,d1_outer/2,d1_outer/2,center=false); difference() { for(i=[0:6]) { ...
glb/cad_a6c0f145a0ab.glb
Create an adjustable electrical cable box with an outer diameter of 45mm and a total height of 20mm. The main body is a hollow cylinder with a wall thickness of 2mm and an internal depth of 18mm. At the base, create a circular floor with a thickness of 2mm. Centered on this floor, remove a cylindrical hole with a dia...
d_outer = 45; main_depth = 18; d_drill_cable_entry = 11; base_thickness = 2; d2_inner = d_outer - base_thickness; locking_part_main_depth = 1.5; $fn = 100; subpart1(); locking_part(); module subpart1() { translate([0,0,base_thickness]) difference() { cylinder(main_depth,d_outer/2,d_outer/2,cente...
glb/cad_5fa537cba25b.glb
Create an adjustable camera holder consisting of a base socket and a spherical joint. Start by creating a main cylindrical base with a diameter of 50mm and a height of 50mm. Remove a spherical void with a radius of 23mm centered 10mm from the top of this cylinder to create a socket. Cut a horizontal cylindrical hole wi...
include <nuts_and_bolts_v1.95.scad> $fn=100; color("red") translate([0, 0, 10]) difference() { union(){ sphere(r=22); translate([0,0,27.5]) cylinder(15, 5, 5, true); translate ([0, 0, 35]) grub_bolt (1/2, 3/8, 0, 1/128, 32, 1, "imperial", 28); } } color("blue") difference() { union() { ...
glb/cad_4246e131cf9f.glb
Create an adjustable camera holder consisting of a base and a mounting ring. Start by creating a main body that is a union of a rounded rectangular slab and a cube. The top section is a 32mm by 32mm square with a thickness of 3mm, where the edges are rounded with a 2mm radius. Below this, attach a centered cube measuri...
include <nuts_and_bolts_v1.95.scad> $fn=100; union() { difference() { union(){ translate([0,0, 1.5]) minkowski() { cube([32, 32, 3], true); cylinder(r=2,h=1); } translate([0,0, -5]) cube([28,28, 15], true); } translate([0,0, -5]) cube([32,20, ...
glb/cad_acf51f0cc14d.glb
Create an adjustable camera holder by starting with a hexagonal bolt that has a diameter of 1/2 inch, a thread pitch of 1/128, and a length of 32mm. From this hexagonal base, remove a central cylindrical section to create a hole. This hole should begin 6.4mm from the bottom of the bolt and consist of two concentric cyl...
include <nuts_and_bolts_v1.95.scad> $fn=100; difference() { hex_bolt (1/2, 3/8, 1/4, 1/2, 1/128, 32, 1, "imperial", 28); translate([0,0,6.4]) difference() { cylinder(6, d=10, true); cylinder(7, d=7, true); } }
glb/cad_265b6ba71f14.glb
Create a Mass Effect Alliance dog tag. Start by constructing the base plate: a rounded rectangle 50mm wide, 5mm thick, and 2mm high. The ends are formed by the intersection of a 50mm x 5mm x 2mm box and two cylinders with 10mm radii centered at x=7 and x=-7. Smooth the edges by applying a 6mm radius fillet to the perim...
rank = "ST.CDR"; name = "Jane Shepard"; regnumber = "0000"; mvc_letter = "N"; mvc_digit = 7; $fn = 200; dogtag(mvc_letter, mvc_digit, rank, name, regnumber); function is_string(x) = x == str(x); function ascii_code(string) = !is_string(string)? undef : [for (result = search(string, "\t\n\r !\"#$%...
glb/cad_7c16a336affc.glb
Create a political button consisting of a circular badge and a mounting pin. First, construct the badge by creating a revolved profile. The profile is a polygon with an outer radius of 5mm and an inner radius of 3mm, with a straight section length of 22.5mm. This creates a thick-walled, shallow circular dish. Next, ...
include <ArchitectsDaughter.scad> difference() { union() { badge(); translate([0,0,5]) pin(); } Vote_Ron_Paul(); } module badge() { rbase =5; ibase = 3; l1=22.5; n1 = 70; translate([0,0,rbase]) rotate_extrude (convexity = 10,$fn=100) translate([l1,0,0]) rotate([0,0,270]) polygon (points = [ ...
glb/cad_29fb3307b055.glb
Create a political button consisting of a circular badge and an attached pin. First, construct the badge by creating a revolved profile. The profile is a polygon with an outer radius of 5mm and an inner radius of 3mm, with a straight section length of 26mm. This creates a ring-like shape with a curved outer edge and ...
include <ArchitectsDaughter.scad> difference() { union() { badge(); translate([0,0,5]) pin(); } Danger(); } module badge() { rbase =5; ibase = 3; l1=26; n1 = 70; translate([0,0,rbase]) rotate_extrude (convexity = 10,$fn=100) translate([l1,0,0]) rotate([0,0,270]) polygon (points = [ [ rba...
glb/cad_6c52b5d74128.glb
Create a MakerMotor Gearbox Cover by starting with a main circular disk 75mm in diameter and 2mm thick. On one side of this disk, add a rectangular protrusion measuring 50mm wide by 18mm long and 2mm thick, centered along the width and offset 10mm from the disk's edge. To secure the cover, add three identical fastener ...
coverThickness = 2; coverDiameter = 75; coverRectWidth = 50; coverRectLength = 18; coverRectOffset = 10; fastenerTabDiameter = 12; fastenerHoleDiameter = 5; fastenerHolePillarThickness = 2; fastenerHolePillarWallThickness = 1; fastenerDistanceFromCenter = 40; $fn = 60; union() { coverShape(); translate([0, (...
glb/cad_7b11db1c05f4.glb
Create a Puzzled Robot figure with a uniform thickness of 2mm. Start with a rectangular body 30mm wide and 45mm high. At the top center of the body, add a head consisting of a 20mm wide by 15mm high rectangle, connected to the body by a 5mm wide by 5mm high neck. Within the head area, carve out two circular eyes: one...
thickness = 2; cylinder_details = 16; head_width = 20; head_height = 15; neck_width = 5; neck_height = 5; neck_displacement_x = 2; body_width = 30; body_height = 45; arm_width=20; arm_height=8; arm_rotation = -10; arm_displacement_y = body_height*0.25; eye_radius = head_height/5; eye_radius2 = eye_radius/3; eye_d...
glb/cad_0cc6b9220511.glb
Create a Table Lamp Mount consisting of a rectangular base and a vertical neck. Start with a base plate measuring 45mm wide, 39.4mm deep, and 4.15mm high, with all four corners rounded to a 3mm radius. Centered on this base, construct a vertical neck that is 20.8mm wide and 42.1mm high. The neck's depth should transi...
hole_d = 13.35; hole_height = 33.33; small_hole_depth = 36.3; small_hole_height = 3.9; small_hole_d = 7.4; base_width = 45.0; base_depth = 39.4; base_height = 4.15; base_corner_r = 3.0; neck_width = 20.8; neck_depth_a = base_depth; neck_depth_b = neck_width; neck_height = 42.1; support_width = 8; support_depth = 2;...
glb/cad_e97704a10329.glb
Create four identical circular tokens, each with a radius of 9.525mm and a height of 1.55mm. For each token, carve a letter into the top surface to a depth of 3mm, starting from a base offset of 0.6mm from the bottom. The letters to be carved are "S", "E", "E", and "J". On the first token, carve the letter "S" centere...
$fs=0.4;$fa=5; translate([25,0,0]) difference() { cylinder(r=19.05/2,h=1.55); translate([0,0,0.6]) S(); } translate([25,25,0]) difference() { cylinder(r=19.05/2,h=1.55); translate([0,0,0.6]) E(); } translate([0,25,0]) difference() { cylinder(r=19.05/2,h=1.55); translate([0,0,0.6]) J(); } difference() { cylinder...
glb/cad_cfba186bb44e.glb
Create a Weight Bar Hex Key by combining a hexagonal prism, a cylinder, and a rectangular bar. Start by creating a hexagonal prism with a flat-to-flat diameter of 13.7mm and a total height of 28mm. Centered on the base of this prism, add a cylinder with a radius of 12mm and a height of 8mm. Finally, intersect this cyli...
hex_radius = 13.7/2; hex_length = 20; handle_hub_radius = 12; handle_length = 60; handle_thickness = 8; module hex_key() { cylinder(r=hex_radius, h=handle_thickness + hex_length, $fn=6); cylinder(r=handle_hub_radius, h=handle_thickness); translate([0, 0, handle_thickness/2]) cube([handle_length, handle_thick...
glb/cad_ed3f885efa14.glb
Create a Parametric Medal Template by starting with a main circular disk 50mm in diameter and 2.6mm thick. Centered within this disk, remove a smaller concentric cylinder with a diameter of 46mm and a height of 1mm, leaving a ring-shaped wall and a solid base. On the top edge of the disk, add a rectangular band holder ...
$medal_diameter=50; $medal_inner_diameter=46; $medal_height=2.6; $medal_inner_height=1.6; $fn=100; $holder_width=12; $holder_height=5; $holder_thickness=2.5; $holder_rounding=1; difference(){ union(){ difference(){ translate([-$holder_width/2,$medal_diameter/2-$holder_height,0]){ minkowski() { cube([$holder_width,2*...
glb/cad_bf12bf1ab902.glb
Create a locking key for a filament feeder consisting of two parallel arms connected by a handle. Each arm should be 6mm wide and 20mm long. The arms must have a tapered height, starting at 5mm thick at the base and increasing to 7.5mm thick at the end where they meet the handle. Leave a gap of 4mm between the two inne...
handleWidth=20; armWidth=6; armLength=20; armHeight1=5.0; armHeight2=7.5; handleDiameter= armHeight2; tol=0.02+0; armGap=16-armWidth*2; $fa=1; $fs=1; module arm() { translate([-(armWidth+armGap+armWidth)/2,0,0]) difference() { hull() { cube([armWidth+armGap+armWidth,tol,armHeight1]); translate([0,ar...
glb/cad_66ea19016bbc.glb
Create a printer foot by starting with a solid block that has a total width and depth of 35mm and a total height of 26mm. Round all exterior edges with a 1mm radius. Remove a large central cylinder from the top, leaving a wall thickness of 4mm around the perimeter. Cut two rectangular slots into the sides of the bloc...
bottomHeight=14; internalHeight=12; roundness=1; cubeSide= 25; outSide= 4; plyWidth= 6; screwDiameter=2.9+0; screwDistToWalls=0.8+0; screwHeadDiameter=6+0; screwHeadDepth=2.2+0; tol=0.01+0; translate([-plyWidth-outSide,-plyWidth-outSide,0]) { difference() { minkowski() { sphere(r=1); difference() ...
glb/cad_b241aa99cd08.glb
Create a Modular Wire Basket Box part consisting of a flat rectangular base and two perpendicular walls. The base should be a thin plate with a width of 43.5mm (calculated as the 46mm Y-spacing minus the 2.5mm wire thickness) and a depth of 43.5mm (the 46mm X-spacing minus the 2.5mm wire thickness). From this base, e...
echo(version=version()); $fs = 0.1; $fa = 5; wall_height = 40; wire_thickness = 2.5; wire_yspacing = 46; wire_xspacing = 46; trad_ydistance = wire_yspacing-wire_thickness; trad_xdistance = wire_xspacing-wire_thickness; floor_length = (trad_ydistance*2)-2; floor_start = (trad_ydistance/2)-1; thread_thickness_cut...
glb/cad_158d538eab51.glb
Create a Lever Tumbler Lock consisting of a lock body, a bolt, three tumblers, and a key. Construct the lock body as a rectangular shell with a thickness of 1.5mm. The internal cavity should measure 27mm by 22mm (front to back and top to bottom). Include a vertical cylindrical shaft with a radius of 2mm and a small in...
tumbler_bitting = [0, 3, 6, 9, 12, 15]; key_bitting = [2.95, 2.40, 1.8, 1.2, 0.6, 0]; bitting = [0, 3, 5]; body_thickness = 1.5; shaft_radius = 2; bolt_thickness = 1.5; tumbler_thickness = 1; tumbler_width = 2; num_tumblers = len(bitting); extra_thickness = 0.5; bolt_width = 8; bolt_throw = 5; bolt_pin_size = 3; bolt_...
glb/cad_086beeafcb42.glb
Create a Phone Stand with Amplifier by constructing a main body that combines a sphere of radius 45mm, scaled to 50% along the Z-axis, with a centered cylinder of radius 20mm and height 38mm. From this composite shape, remove a large central void created by a sphere of radius 39mm scaled to 43% on the Z-axis, and a ver...
color("lightgreen") rotate([0,0,270])union(){difference(){ main_body(); translate([0,0,2.7])scale([1,1,.43])sphere(39,$fn=60); translate([-10,0,-30])cylinder(8,50,50); cable_hole(); phone_hole(); translate([0,0,-2])rotate([0,90,0])scale([1,2.05,.9])cylinder(60,12,24,$fn=60); translate([25,-40,-25])cube([40,80,50]);...
glb/cad_2a1d86928c85.glb
Create a biconvex spherical lens with a diameter of 60mm and a center thickness of 3mm. The lens is formed by the intersection of two identical spheres. To achieve the specific curvature required for a focal length of 200mm and a refractive index of 1.4, each spherical surface must have a radius of 280mm. Construct t...
reflectiveIndex = 1.4; focalLength = 200; aperture = 60; thickness = 3; isBicurved = 1; $fn = 300; curvature = abs((reflectiveIndex-1)*focalLength*(isBicurved+1)); segmentHeight = curvature-sqrt(curvature*curvature - 0.25*aperture*aperture); thickness2 = thickness/(1+isBicurved); module convex(){ translate([0,0...
glb/cad_ea83b4d1700f.glb
Create a Laser Cut Filament Spool plate by starting with a thin cylinder that has a radius of 100mm and a height of 5mm. Center a circular hole with a radius of 4mm through the middle of the cylinder. To complete the design, remove six rectangular slots from the main body; each slot must be 5mm wide, 10mm long, and 5mm...
module plate(){ difference() { cylinder(h=5, r=100, center=true, $fn=200); cylinder(h=5, r=4, center=true, $fn=100); for ( i = [0:5] ) { rotate( i*360/6, [0, 0, 1]) translate( [0, 40, 0] ) cube([5,10,5], center=true); } } } plate();
glb/cad_effc2b155a70.glb
Create a Laser Cut Filament Spool spacer by starting with a central rectangular block measuring 100mm in length, 30mm in width, and 5mm in height. Remove two smaller rectangular sections from the opposite ends of the main block; each cutout should be 5mm wide, 20mm deep, and 5mm high, positioned symmetrically so they a...
module spacer(){ difference() { cube([100,30,5], center=true); translate([-47.5,-5,0]) cube([5,20,5], center=true); translate([47.5,-5,0]) cube([5,20,5], center=true); translate([-35,10,0]) cylinder(h=5, r=1.5, center=true, $fn=50); } } spacer();
glb/cad_9b0eeece508b.glb