Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a parametric quadcopter frame for mini/micro quads. Start with a central square PCB mount plate with a width of 44mm and a thickness of 2mm. At four 45-degree rotated corners of this plate, add vertical cylindrical support towers with a height of 8mm and an outer radius of 3.5mm, each featuring a central hole wi...
pcbW=44; pcbT=1.6; frame=0; material=2; motorOffset=80; guardDia=127; motorDia=6; mountL=8; stackH=20-mountL+material; armType=2; noBridges=false; crossbrace=true; holyPart=false; overExtrude=0.35; module motorPod(motorDia=motorDia, mountL=mountL, material=material) { mD=motorDia+overExtrude*2; difference() { ...
glb/cad_c36844c1b0d0.glb
Create a microphone stand base. Start with a central cylindrical body with a diameter of 41.7mm and a height of 80mm. The bottom of this body is a flat disc with a diameter of 130mm and a thickness of 20mm. The sides of the main body taper upwards from the base. Remove three identical leg sockets from the base. Each s...
$fn = 32; rotations = 10; baseD = 130; baseThick = 20; baseH = 80; tube = 35+.3; tubeHoleDist = 7+2; tubeHole2Corner = sqrt(pow(tubeHoleDist,2)+pow(tube/2,2)); tubeAngle = 30; tubeUp = 10; tubeMain = 41.1+.3; bolt = 6; boltHead = 12.2; boltPad = 2; boltLength = 46.75+4; nut = 11; nutThick = 5.82+.5; nutPad = bolt...
glb/cad_97670b8bde56.glb
Create a customizable horn by extruding a ring shape vertically to a height of 30mm. Start with a base ring centered on the XY plane with an outer radius of 4mm and a wall thickness of 1mm. Offset the center of this ring by 5mm from the origin. As the ring is extruded upward, apply a linear scale factor of 3 to taper t...
$fn=120*1; Height=30; Twist=90; Taper=3; Offset=5; Radius=4; Thickness=1; module ring(){ difference() { circle(r = Radius); if (Thickness>Radius) { circle(r=Radius-1); } else { circle(r = Radius-Thickness); } } } translate([0,0,Height]) rotate(a=[0,180,0]) { linear_extrude(height = Height, center =...
glb/cad_64a591345da4.glb
Create a T-Slot profile for 80/20 aluminum 10 series extrusions. The model consists of several interlocking geometric components based on standard brick dimensions. First, create a rectangular base block with a width of 8mm and a height of 3.2mm. On the top surface, place a grid of cylindrical studs with a radius of 2...
$fn = 64; translate([-8,0,0]) brick(1,3,1,centerStuds=false,partialStuds=false,hollow=true); brick(3.8,4.7,6.5, partialStuds=true, centerStuds=false); translate([-16,8,0]) brick(3,3,0); translate([0,-16,0]) brick(1,1,2.5, studsFront = true, studsBack = true, studsLeft = true, studsRight = true, studsBott...
glb/cad_5846fe7a1508.glb
Create a metric screw thread with a diameter of 8mm, a pitch of 2mm, and a total length of 4mm. The thread should be external (bolt-style) with a single start. To ensure the geometry is accurate, use a facet resolution of 48 segments for the circular profiles. The final shape should be a solid cylinder with a helical t...
metric_thread(8, 2, 4); pi = 3.14159265; function segments(diameter) = min(50, ceil(diameter*6)); module metric_thread(diameter=8, pitch=1, length=1, internal=false, n_starts=1) { n_turns = floor(length/pitch); n_segments = segments(diameter); h = pitch * cos(30); union() { intersection() { ...
glb/cad_3d985303a43c.glb
Create a T-Slot profile connector for 10-series aluminum extrusions. The main body is a rectangular block with a length of 101.6mm (4 studs), a width of 15.24mm (6mm padding added to the T-slot width), and a height of 3mm. Centrally integrate two T-slot channels running the length of the block. Each T-slot consists o...
length=4; width=6; padding=3.0; flip = true; bottomy=flip?0:studs2mm(2); topy=flip?studs2mm(2):0; use <t-slot profile.scad> use <fancyBricks.scad> use <threads.scad> ANTISNUG = antiSnug(); realmmlength = studs2mm(length)-ANTISNUG*2; difference() { union() { translate([0,0,-padding]) union() { translate([inches2...
glb/cad_b5e6cfc27249.glb
Create a T-Slot profile connector for 80/20 10-series aluminum extrusions with a specified length (default 10mm). The shape is a symmetrical cross-section extruded along the length. The main body consists of a central rectangular slot section 6.35mm wide and approximately 8.2mm high. The top of the profile is a flat s...
$fn = 64; tslot(30, 0); module tslot(length=10, extra=.1) { topcornerradius=inches2mm(.04); bottomcornerradius=inches2mm(.1); bottomside=inches2mm(.23); bottomradiusoffset=inches2mm(.174); sidesize=5.6; topwidth=inches2mm(.563); bottomcurvefudge=2; translate([0,0,-inches2mm(.323)]) union() { translate([...
glb/cad_c11157fe3ca4.glb
Create a CritterTrail tunnel plug by constructing a tapered cylindrical body with a total height of 15mm. The base of the plug is a thin rim with a diameter of 54.8mm and a height of 2.7mm. Above this rim, create a tapered cylinder that starts with a diameter of 52mm at the top and narrows slightly to 51mm at the base,...
$fn=75; height=15; notchWidth=10; notchDepth = 80; rimDia = 54.8; rimHeight= 2.7; handleDia1 = 52; handleDia2 = 51; holeRad = 8; holeDepth = 12; handleMiddle=10; module handle(dir) { translate([0, dir*(holeRad+handleMiddle/2), height-holeDepth+0.1]) scale([2,1,1]) cylinder(r=holeRad, h=holeDepth); } differen...
glb/cad_b3172ebb2c6f.glb
Create a shower organizer shelf wedge designed to fit a pole with a diameter of 22.5mm. The object consists of two symmetrical half-wedge components mirrored across the center. For each half-wedge, start with a hollow cylindrical section with a total height of 36mm. The inner radius must be 11.25mm to match the pole. ...
$fn=100; pole_dia=22.5; top_thickness = 1.6; bottom_thickness = 2.4; ridge=0.6; main_height=36; flange_height=2; module torus(id, od) { assign(circle_rad=(od-id)/4) { rotate_extrude() { translate([(od/2)-circle_rad,0,0]) circle(r=circle_rad); } } } union() { translate([0,-2.5,0]) half_wedge(); translat...
glb/cad_2f3c3207fbec.glb
Create a parametric spool bushing consisting of a main cylindrical body and a wider, shallower base lip. The main body is a cylinder with a diameter of 38mm and a height of 12mm. Attached to the bottom of this body is a lip, which is a second cylinder with a diameter of 48mm and a height of 2mm. Remove a central verti...
bodyDiameter = 38; bodyDepth = 12; lipExtraDiameter = 10; lipDepth = 2; holeDiameter = 9; centerPadding = 0.5; handPercentage = 0.6; $fn = 100; module body() { union() { cylinder(d=bodyDiameter,h=bodyDepth); cylinder(d=(bodyDiameter+lipExtraDiameter),h=lipDepth); } } module hole() { cylinder(d...
glb/cad_5070a6b7016e.glb
Create a microscope slide storage box consisting of a main rack and a lid. The rack is a rectangular container with a base thickness of 1.5mm and outer walls of 1.5mm. The main body dimensions are approximately 41.5mm wide by 67.5mm long. Inside the rack, create four identical quadrants arranged in a 2x2 grid. Each q...
nCols = 2 ; nRows = 2; slNumber = 12; slThickness = 1.8; slThicknessTol = 0.5; slSpacing = 1.5; slLength = 61.5; slLengthTol = 1; slAngle = 30; btLength = 5; btThickness = 1.5; slWidth = 21.5; wThickness = 1.5; bTol = 0.2; pSlSpacing = slSpacing / cos (slAngle) ; pSlThickness = (slThickness + slThickne...
glb/cad_9648d633f7f1.glb
Create a dishwasher clean/dirty magnet indicator. Start with a rectangular base measuring 70mm by 45mm with a height of 5mm and rounded corners with a 4mm radius. In this base, create four circular holes for magnets, each with a diameter of 12.2mm and a depth of 3.2mm. Position these holes symmetrically near the corn...
part = "all"; sizeX = 70; sizeY = 45; sizeZ = 5; corner=4; cleanString = "Clean"; dirtyString = "Dirty"; angle = 15; textZ = 15; topCut = 5.25; magnetDia = 12.2; magnetThin = 3.2; $fn=64; module cleanText() { translate([0,3]) text(cleanString, halign="center", size=16, font="Liberation Sans:style=Bold"); } mod...
glb/cad_cb9794c5766f.glb
Create a Dual-Siemens-Phone-Holder by starting with a base plate formed from the convex hull of two cylinders, each with a radius of 30mm and a height of 0.7mm, positioned 80mm apart at coordinates (-40, 0, 0) and (40, 0, 0). On top of this base, construct the main body using the convex hull of two cylinders with radii...
hull() { translate([-40,0,0]) cylinder(r=30,h=0.7); translate([+40,0,0]) cylinder(r=30,h=0.7); } difference() { hull() { translate([-50,0,0]) cylinder(r=16.5,h=50); translate([+50,0,0]) cylinder(r=16.5,h=50); } translate([+1,-15,5]) cube([54,30,60]); translate([-(27*2)-1,-15,5]) cube([54,30,60]); hull...
glb/cad_54c3e619f5e2.glb
Create a Parametric Coin Holder designed to store stacks of coins of varying diameters. The body is a rectangular block with a total height of 15.75mm and a wall thickness of 1.5mm. Within the body, create a series of vertical cylindrical recesses to hold coin stacks. For each denomination, the recess diameter is the ...
rendering = 0; coin0 = 1; coinx = 5; h_max = 11.5; h_follower = 1; d_spring = 9.5; lmin_spring = 4; tol_d = 0.9; tol_h = 0.25; flesh = 1.5; h_body = h_max + h_follower + lmin_spring + flesh; coins = [ [50, 24.25, 2.38], [20, 22.25, 2.14], [ 5, 21.25, 1.67], [10, 19.75, 1.93], [ 2, 18.75, ...
glb/cad_dec500f098ae.glb
Create a Test Palette consisting of a grid of recessed rectangular wells. The overall structure is a flat plate with a total height of 2mm. Construct a grid of 6 columns and 4 rows of fields. Each individual field is a rounded rectangle with outer dimensions of 24mm by 24mm (accounting for a 2mm wall thickness around...
fieldLength = 20; fieldWidth = 20; fieldCountX = 6; fieldCountY = 4; wallThickness = 2; palletteHeight = 2; fieldHoleHeight = 1.4; innerRadius = 2; withLabels = false; labelWidth = 10; labelRecess = 0.4; $fs = 0.15; fix = 1; pallett(); module pallett() { for (x = [0:fieldCountX-1], y = [0:fieldCountY-1]) { ...
glb/cad_5b80682dd4ec.glb
Create a mobile phone stand for an Acer Liquid E3 Plus consisting of two identical side legs connected by two cross-bars. Each leg is a flat profile with a thickness of 10mm. The main body of the leg features a base section and a support arm that extends at a 50-degree angle to hold the device. The support arm has a ...
Angle = 50; BackAngle = 25; SupportLength = 120; BarLength = 45; Tolerance = 0.1; part = "Assembled"; SubAngle = -(90-Angle); SharedAngle = -SubAngle + BackAngle; comp = (10/sin(SharedAngle)); truecomp = (SharedAngle > 90 ? comp : (SharedAngle == 90 ? 1 : 0)); echo(truecomp); SubBackAngle = (90-BackAngle); if...
glb/cad_f66dd51823f9.glb
Create a pipe fastener consisting of two identical symmetrical halves. For one half, start with a cylinder 17mm in diameter and 25mm high. Hollow out the center with a concentric cylinder 14.5mm in diameter and 30mm high to create a wall thickness of 1.25mm. At the base, add a solid cylindrical disc 17mm in diameter an...
global_fn=100; s_w=8.2; loch=2.8; wandstaerke=3; x=50; y=30; z=20; difference(){ union(){ difference(){ cylinder(r=17/2,h=25,$fn=global_fn); translate([0,0,-2]) cylinder(r=(17/2)-(wandstaerke/2),h=30,$fn=global_fn); } } translate([0,0,(25+z/2)-4.3]){ rotate([0,45,0]) cube([x,y,z],center=true); } }...
glb/cad_2ecb5f49f766.glb
Create an Automatic Transmission Model consisting of a planetary gear system. Start by creating a large outer annulus gear with an inner diameter of 140mm and a thickness of 20mm. Inside this, place a central sun gear with 24 teeth. Construct a planetary carrier that holds three sets of planet gears. Each set consists...
use <../MCAD/involute_gears.scad> use <../pins.scad> use <../WriteScad/Write.scad> tol=0.25; stol=0.1; T=20; e=1; D=140; ta=10; pd=8; ph=15; sd=14; re=3; te=5; psi=40; p=2*(T+e+tol)+te+3*e+2*tol; rs=2+stol; lb=12; Trod=10; Lrod=50; na=60; ns=24; np1=14; np2=na-ns-np1; ni=10; pitch=na/(D-2*ta); twistpitch=1; phi=acos...
glb/cad_0017c384db73.glb
Create a Sparkfun Bus Pirate Case consisting of a press-fit base and lid. For the base, create a rectangular box with outer dimensions of 67mm in length, 47mm in width, and 11mm in height. The walls are 2mm thick. Hollow out the center to create an interior space of 63mm by 41mm with a depth of 10mm. In each of the f...
gap = 5; wall_thickness = 2; inner_width = 31; inner_length = 53; inner_height = 9; usb_width = 11; usb_length = wall_thickness + gap; connector_width = 20; connector_length = 9; connector_border = 1; led_width = 6; led_length = 38; pin_height = 4; difference = -0.2; pcb_clamp_width = 12; pcb_clamp_length = 12;...
glb/cad_8c1860801bf5.glb
Create a parametric heatbed bracket by starting with a solid rectangular block that is 25mm wide, 9.1mm high, and 9.8mm deep. From this block, remove a smaller rectangular section to create a hollow U-shaped channel. This interior cutout should be 25.2mm wide, 5.5mm high, and 9.8mm deep, positioned so that it starts 1....
base_height = 5.5; bracket_width = 25; bracket_depth = 8; wall = 1.8; difference() { cube([bracket_width, base_height + wall * 2, wall + bracket_depth]); translate([-0.1, wall, wall]) cube([bracket_width + 0.2, base_height, wall + bracket_depth]); }
glb/cad_ceb5a257b7eb.glb
Create a NEMA 17 stepper belt tensioner consisting of two separate components: a motor-side plate and a fixed-side plate, both with a base thickness of 2mm. For the motor-side plate, create a shape that combines a rectangular section and two rounded ears. Position two mounting holes with a diameter of 3.2mm, spaced 15...
$fn=40; tol=0.02; main_th= 2; m3_d= 3; m3_d_free= 3 + 0.2; m3_head_d= 5.5 + 0.2; m3_nylock_th= 3.8; m3_nylock_d= 6.1 + 0.1; m3_nylock_d_freeplay= 6.1 + 2.0; m3_washer= 6.8 + 0.2; m3_washer_th= 0.5 + 0.5; holder_margin= 3; balance_distance= 3; idle_holder_len= 8; lock_holder_len= 10; spacing_lock_side= 15; hole_d_lo...
glb/cad_5de373b761cc.glb
Create two interlocking puzzle-style connector pieces, each 4mm thick. For the first piece, create a rectangular base 20mm wide by 10mm deep. Add a semi-circular tab with a 5mm radius protruding from the center of the front edge, and remove a semi-circular notch with a 5mm radius from the center of the back edge. To re...
cubeWidth=20; cubeLength=10; cutLength=2.5; puzzlePieces(size=1,height=4,number=2,distance=5,male=.9); module puzzlePieces(size=1,height=5, number=3, distance=10, male=1){ for (i=[0:1:number-1]){ translate([i*(distance+cubeLength*size),0,0]) scale([male,1,1]) puzzlePiece(size=size,height=height); } } mo...
glb/cad_0266d584ba76.glb
Create a Queen Marking Safety Cage consisting of a flat square base and a grid of raised bars. Start with a solid square base measuring 50mm by 50mm with a thickness of 8mm. On the top surface of this base, construct a perimeter wall that is 5mm wide and 8mm high, running along all four edges. Inside this perimeter, cr...
cube ([50,5,8]); cube ([5,50,8]); translate ([0,45,0]) cube ([50,5,8]); translate ([45,0,0]) cube ([5,50,8]); translate ([5,0,0]) cube ([1,50,2]); translate ([12,0,0]) cube ([1,50,2]); translate ([19,0,0]) cube ([1,50,2]); translate ([26,0,0]) cube ([1,50,2]); translate ([33,0,0]) cube ([1,50,2]); translate ([40,0,0]) ...
glb/cad_5a8665fe4ca7.glb
Create a 2032 button cell holder by starting with a main cylinder 6mm high and 12mm in radius, centered on the origin. Remove a smaller concentric cylinder from the center with a radius of 10.5mm and a height of 3.2mm to create a cavity for the battery. Cut away the top portion of the holder using a rectangular block t...
cell_radius = 10.5; cell_height = 3.2; holder_radius = 12; holder_height = 6; wall = (holder_height - cell_height)/2; union() { difference() { rotate( [90, 0, 0] ) cylinder( h = holder_height, r1 = holder_radius, r2 = holder_radius, center = true, $fn=100); rotate( [90, 0, 0] ) cylinder( h = cell_height, r1 = cel...
glb/cad_a4276ff32331.glb
Create a housing for an IVL2 VFD WiFi desk clock consisting of two main components: a base and a cover. First, construct the base. Create a semi-cylindrical cradle with an outer diameter of 30mm and a wall thickness of 6.5mm, spanning a width of 73mm. This cradle is open on one side and features a hollowed-out interio...
larg = 62.0+11; long = 18; long_bas = 18; $fn = 100; ep = 4.5+2; diam_coude = 30; diam_socle = 10; diam_cover = 6; module coude() { union () { difference () { cylinder ( d = diam_coude, h = larg, center = true); cylinder ( d = diam_coude-2*ep, h = larg+1, center = true); difference ()...
glb/cad_823775bd42de.glb
Create a mobile phone holder for a Samsung Galaxy S3 Mini. Start with a main rectangular block measuring 75mm in width, 14mm in depth, and 25mm in height. From this block, remove a central rectangular cavity that is 71mm wide, 10mm deep, and 38mm high, leaving 2mm thick walls on the sides. At the bottom center of the ...
difference() { translate([0,2, 0]) cube([75,14,25]); translate([17,14, 17]) rotate(90, [1, 0,0]) cylinder (r=15, $fn=50,h=10, center = false); translate([58,14, 17]) rotate(90, [1, 0,0]) cylinder (r=15, $fn=50,h=10, center = false); translate([16,2, 2]) cube([43,12,25]); translate([31.0,5.5, 0]) cube([13,7,10]); t...
glb/cad_2d44fe0fa2b4.glb
Create a foldable guitar stand consisting of two symmetrical arms and a connecting head piece. For each arm, create a base joint consisting of a cylinder with a radius of 10mm and a height of 15mm, centered on a 10mm thick rectangular flange that is 20mm wide. Extending from this joint, create a rectangular arm 10mm ...
demo=0; $fn = 30; dgelenk = 20; rgelenk = dgelenk/2; drohr = 8.1; rrohr = drohr/2; larm = 140; harm = 30; darm = 10; lausschnitt = 60; hausschnitt = 10.0; hkopf = 25; kopfwinkel = 5.7; translate([(demo-1)*(harm+sin(kopfwinkel)*(larm-2*dgelenk)+6), 0, (1-demo)*(rgelenk+darm)]) rotate([0, (1-demo)*90, demo*-27]) differ...
glb/cad_67a2ef4e1bef.glb
Create a parametric limit switch mount as a flat plate with a thickness of 7mm. The overall shape is a trapezoid-like slab with a base width of 70mm and a top width of 31.5mm. The total height of the plate is 77mm. At the base, create two circular holes for T-slot mounting, each with a diameter of 3.5mm. These holes s...
switchHolesAboveSlotHoles = 71.0; thickness = 7.0; baseWidth = 70.0; switchHolesWidth = 21.5; switchHolesHeight = 10.5; tSlotHoleDiameter = 7.0/2; switchHoleDiameter = 3.7/2; tSlotHoleHeight = (tSlotHoleDiameter * 2); height = switchHolesAboveSlotHoles - 1 + (tSlotHoleHeight * 2); topWidth = switchHolesWidth + 10.0...
glb/cad_18f1d2a55e0b.glb
Create a Bokeh Stencil Holder designed to fit a 52mm filter thread. The object consists of a circular lens cap base and an attached slot for holding a stencil card. First, construct the lens cap portion. Create a primary cylinder with an outer diameter of 53.5mm and a height of 6mm. Hollow out the center with a cylind...
$fn=100; FilterThreadSize = 52; ApertureSize= 30; CardSize = 35+0.5; CardThickness = 1.5; id=FilterThreadSize-1; od=FilterThreadSize+1.5; rd=FilterThreadSize-10; co= -0.5; HolderSize = rd; HolderInD = ApertureSize; Overhang = 1.5; LedgeOverhang = 1; LedgeOffset = 0; HolderThickness = 1.5; inside(); outside(); mod...
glb/cad_dbcf045cc580.glb
Create a Bokeh Stencil Holder by starting with a thin square plate measuring 35mm by 35mm with a thickness of 0.6mm. Centered within this plate, create a cutout in the shape of a cross. This cross is formed by the intersection of two rectangles: one measuring 0.3mm by 0.9mm and the other measuring 0.9mm by 0.3mm, both ...
$fn=100; ApertureSize= 20; CardSize = 35; CardThickness = 0.6; difference(){ cube([CardSize,CardSize,CardThickness],true); translate([0,0,-CardThickness])scale([ApertureSize,ApertureSize,CardThickness*2])shape(); } module shape(){ *cylinder(1,1/2,1/2,$fn=3); translate([0,0,0.5])union(){ cub...
glb/cad_ac51b5f2ca55.glb
Create a Universal Parametric Lens Cap designed for a 52mm filter thread. The model consists of two main concentric sections: an outer cap and an inner holder. First, construct the outer cap. Create a base cylinder with a diameter of 51mm and a height of 2mm. On top of this, add a second cylinder with a diameter of 53...
FilterThreadSize = 52; RenderInside = true; RenderOutside = true; $fn=100; thickness= 1.5; outerLedge = 1.5; diameterOffset = 1.0; holderOffset = 10; clipOffset= 0; co = clipOffset; id=FilterThreadSize-diameterOffset; od=FilterThreadSize+outerLedge; rd=FilterThreadSize-holderOffset; if(RenderInside) inside(); ...
glb/cad_f64b358a5c7b.glb
Create a desktop lamp mobile holder by starting with a base structure that combines a cylinder and a rectangular block. First, create a cylinder with a diameter of 71mm and a height of 10mm. Attached to this, create a rectangular block measuring 163mm in length, 86mm in width, and 13mm in height, positioned so it exten...
$fn = 100; difference(){ union(){ cylinder(h=10, d=71); translate([-160-(69/2), -86/2,0]){ difference(){ cube([163,86,13]); translate([20,37,-0.5]){ translate([10, 0,0]) cylinder(h=14, r=10); translate([10, 20,0]) cylinder(h=14, r=10); cube([20,20,14]); } } } trans...
glb/cad_b6e4be4a9e40.glb
Create a DNA sculpture 100mm tall. Start with a circular base stand 3mm thick, tapering from a 22mm radius at the bottom to a 19mm radius at the top. Construct two parallel helical backbones that twist around the center axis. Each backbone is formed by extruding a square profile 6mm wide and 8mm deep, with a radius of...
TotalHeight = 100; BackboneRadius = 5; SquareBBWidth = 8; SquareBBDepth = 6; BackboneCenterOffset = 11; BackboneRotationLag = 120; BackboneTwist = 4.2; BaseLength = 20; BaseWidth = 6; BaseDepth = 4; BaseFrequency = 12; StandDepth = 3; StandLowerRadius = 22; StandUpperRadius = 19; module doublehelix() { linear_ex...
glb/cad_e0881fbe3bb4.glb
Create an extruder support for an i3 printer. Start with a heptagonal cylinder (7-sided prism) with a radius of 40mm and a height of 30mm. Hollow out the center of this prism by removing a smaller heptagonal cylinder with a radius of 35mm, leaving a wall thickness of 5mm. Cut a circular hole with a radius of 17.5mm th...
$fn = 40; include <hingeV2.scad> length = 80; thickness = 5; height = 20; clearance = 40; lower = 30; drill_separation = 50; extruder_space = 35; carriage_separation = 30; tolerance=0.1; difference() { difference() { cylinder(r=length/2,h=lower,$fn=7); translate([0,0,thickness]) cylinder(r=length/2-thickness...
glb/cad_1040280bf8af.glb
Create a Reacher Grabber Tool Replacement Pad. Start with a rectangular chassis measuring 30mm wide, 40mm high, and 7.4mm thick. On the top surface of this chassis, create a series of horizontal grooves spaced 2mm apart, each 3mm wide and 1.5mm deep, extending across the full width of the pad. In the center of the cha...
inch_from_mm = 25.4; function polyRad(innerRad, fn) = innerRad/cos(180/fn); function aPolyRad(outerRad, fn) = outerRad*tan(180/fn); mm = 1.033898305084746; zmm = 1; extrude_width = 0.5*mm; clearance = 0.3*mm; s_thick = 0.2*zmm; l_thick = 0.9*zmm; lw = 12.3*mm; sw = 8.8*mm; so = 3.7*mm; lo = 6.7*mm; hole_diam = 4*mm-...
glb/cad_2492eb4b7590.glb
Create a Heatbed Timelapse Camera Mount consisting of four separate components. First, construct a horizontal arm by combining a 100mm by 30mm by 3mm rectangular plate with two cylinders of radius 15mm and height 3mm centered at each end. Drill a hole with a radius of 1.25mm and height 5mm through the center of each cy...
$fn=100; translate([0,100,0]) difference(){ union(){ translate([-50,-15,0]) cube([100,30,3]); translate([-50,0,0]) cylinder(h = 3,r = 15); translate([50,0,0]) cylinder(h = 3,r = 15); }; translate([-50,0,-1]) cylinder(h = 5,r = 1.25); translate([50,0,-1]) cylinder(h = 5,r = 1.25); }; t...
glb/cad_a45609aefd0f.glb
Create a kitchen towel hook designed to clip onto a round bar. Start by creating a main cylindrical clip with a length of 25mm, an outer diameter of 22mm, and a concentric inner hole of 14.4mm to accommodate the bar. Cut a rectangular slot through the center of the cylinder, 10mm wide, to create the opening for the cli...
$fa=1*1; $fs=0.25*1; hook_type = 0; cutout_adjust = 0.4; clip_inner_diameter = 14.0; clip_length=25; wall_thickness=4; support_diameter = 12; hook_diameter = 8; hook_length = 15; front_hook_angle = 0; tip_offset = 0; hook_radius = hook_length-3; clip_outer_diameter = clip_inner_diameter+2*wall_thickness; cl...
glb/cad_eca09fed7ba7.glb
Create a Wade adapter for a ShaperCube by constructing a central vertical cylinder with a radius of 8mm and a total height of 85mm. At the base of this cylinder, attach a flat rectangular plate measuring 45mm in length, 20mm in width, and 5mm in height, centered on the cylinder's axis. To this plate, add two circular p...
filament = 4; difference(){union(){ translate(v = [0,0,42.5]) cylinder(h = 85, r1 = 8, r2 = 8, center = true); translate(v = [0,0,37.5]) cylinder(h = 75, r1 = 12, r2 = 12, center = true); translate(v = [4,0,2.5]) cube(size = [45,20,5], center = true); translate(v = [-16,0,2.5]) cylinder(h = 5, r1 = 10, r2 = 10, cent...
glb/cad_543c360212d3.glb
Create a Jim's Flying Motor Mount Dual Extruder consisting of two meshing bevel gears. First, create a large bevel gear with 41 teeth. This gear should have a face width of 10mm and a pressure angle of 30 degrees. Include a central axis cylinder with a diameter of 5mm that extends through the gear. Second, create a ...
bevel_gear_pair (); pi=3.1415926535897932384626433832795; module bevel_gear_pair ( gear1_teeth = 41, gear2_teeth = 9, axis_angle = 45, outside_circular_pitch=250) { outside_pitch_radius1 = gear1_teeth * outside_circular_pitch / 360; outside_pitch_radius2 = gear2_teeth * outside_circular_pitch / 360; echo ("D...
glb/cad_dd109f854b74.glb
Create a holder for a dish-washing brush by constructing a composite geometric shape. Start with a central vertical cylinder that has a bottom radius of 15mm, a top radius of 13mm, and a height of 35mm. Integrate this with a rectangular block measuring 20mm wide, 30mm deep, and 300mm tall, centered on the Z-axis. Withi...
difference() { intersection() { union() { cylinder(r1=30/2, r2=26/2, h=35); translate([-5.5,10,0]) cube([11,10,4]); translate([-10,19,0]) cube([20,22,4]); translate([-10,10,1.6]) cube([20,30,0.8]); translate([0,70,0]) rotate([0,0,180]) intersection() { translate([0,0,-65]) difference() { ro...
glb/cad_7719f8cf2f9e.glb
Create two identical earring pendants. For each pendant, construct a flat 2D shape with a thickness of 2.5mm based on a rose curve pattern. The pattern is generated by a path where a circle with a radius of 1mm follows a trajectory defined by the formula $R = (16 - 1) \cos(3\theta / 7)$, creating a looping, symmetrical...
N=3; D=7; Rout=16; thickness=2.5; wall_width=2; $fn=72; Rc=wall_width/2; R0=Rout-Rc; function offset(f) = (R0*cos(N*f/D))*[cos(f), sin(f), 0]; module pendant() { union() { linear_extrude(height=thickness) union() { for (i=[1:360*D]) hull() { ...
glb/cad_a6fd6573fd10.glb
Create a spare knife handle by designing a long, ergonomic grip with a total length of 115mm, a width of 20mm, and a thickness of 10mm. The main body should be a rounded rectangular form with a radius of 2mm on the edges. Incorporate a central slot measuring 62mm in length and 10mm in width, with a depth of 2mm, to acc...
zs=10; rc=2; rm=2; difference() { minkowski() { difference() { union() { translate([0,-8,-zs/2]) hull() { translate([6-rc,rc,0]) cylinder(r=rc,h=zs); translate([3+rc,13-rc,0]) cylinder(r=rc,h=zs); translate([111,4,zs/4]) cylinder(d=8,h=zs/2); translate([50,7,zs/4]) cylind...
glb/cad_04feb0431271.glb
Create a rounded plate module with overall dimensions of 15mm in width (X), 10mm in depth (Y), and 1mm in height (Z). The shape should be a rectangular slab where each of the four vertical corners is rounded with a radius of 1mm. To achieve this geometry, ensure the top and bottom faces are flat and the vertical edges ...
customizer_x=15; customizer_y=10; customizer_z=1; customizer_facets=32; customizer_rounding_radius=1; module rounded_plate(size_x,size_y,size_z,facets,rounding_radius) { hull() { translate([rounding_radius,rounding_radius,0]) cylinder (h=size_z, r=rounding_radius,$fn=facets); translate([size_x-rounding_radius,r...
glb/cad_75f3b522cd69.glb
Create a MakerGear M2 Fan Bracket by combining several geometric volumes. Start with a central rectangular base measuring 50mm wide, 20mm deep, and 3mm thick. Attach a vertical rectangular wall to the side of this base, measuring 40mm wide, 13mm thick, and 3mm deep. Add a third rectangular plate measuring 50mm wide, 15...
rotate ([-90,0,0]) difference () { union () { translate ([5,0,0]) cube ([50,20,3],center=true); translate ([0,10,5]) cube ([40,3,13],center=true); translate ([5,-14.7,-4.45]) rotate ([-50,0,0]) cube ([50,3,15], center=true); } translate ([0,10,20]) rotate ([90,0,0]) cylinder(h = 10, r=1...
glb/cad_0869bf7f7988.glb
Create a magnetic driver bit handle. Start with a hexagonal prism 80mm long with a diameter of 23mm. Round the top of the handle into a dome shape. Carve a central vertical hole through the length of the handle to accommodate a driver bit and a magnet. The bottom section of the hole should be 7.6mm in diameter and 12...
MagDia = 8.4; BitDia = 7.6; BitDth = 12; HandDia = 23; HandLen = 80; VertDia = 14; VertOff = 4.7; GripDia = 6; GripDth = 2.5; GripRatioTop = 4; GripRatioBot = 1.5; GripOff = 6; difference() { cylinder(HandLen,HandDia/2,HandDia/2,$fn=6); translate([0,0,HandLen-HandDia+6]) difference() { sphere(HandDia, $...
glb/cad_92f763ac160c.glb
Create a Bolo Tie Hanger consisting of a long rectangular bar with a central hook. The main bar is 250mm long, 20mm wide, and 10mm thick. Along the length of this bar, create a series of rectangular slots that are 10mm wide and 10mm deep, spaced 15mm apart, leaving solid 10mm blocks at both far ends of the bar. In the...
hanger_length = 25 ; width_of_bar = 10 ; translate([-10 * hanger_length / 2 - width_of_bar / 2, 54.5, 0]) tie_hanger(hanger_length * 10, width_of_bar) ; module tie_hanger(length, width) { gap = 15 ; r = width / 2 ; s = sin(45) ; difference() { cube(size=[length, width * 2, width]) ; ...
glb/cad_edcaccb4667f.glb
Create a Microwave Radio Lens consisting of a grid of intersecting bars. The overall footprint of the lens is 100mm wide by 104mm high, with a total thickness of 6mm. Construct the vertical elements by placing bars 2mm wide and 6mm thick at 4mm intervals across the width. Construct the horizontal elements by placing ...
w=100; h=104; bar=2; rad=0; a=w/(2*bar); b=h/(6*bar); difference(){ union(){ for (i = [0:a]) { translate([i*2*bar,0,0]) cube ([bar,h,3*bar]); translate([2*bar,0,0]) cube ([bar,h,3*bar]); } for (i = [0:b]) { translate([0,i*6*bar,bar]) cube ([w,bar,bar]); } } for (i = [0:a/2]) { translate([i*4*bar,0,0]) s(); } for ...
glb/cad_380abd9bd7cd.glb
Create a flat, 2D geometric layout of a Chestahedron net consisting of three identical kite-shaped polygons joined at a single central vertex. Each kite is defined by a radius of 30mm. The geometry of each kite is formed by the convex hull of three points: the origin (0,0), a point at a distance of 30mm rotated 144 deg...
size = 30; module kite (radius) { fifth = 360/5; phi = (1+sqrt(5))/2; innerRadius = (radius/phi)/phi; hull() { polygon (points = [ [0,0], [cos(2.5*fifth)*innerRadius, sin(2.5*fifth)*innerRadius], [cos(2*fifth)*radius, sin(2*fifth)*radius] ], convexity = N); mirror([0,1,0]) polygon (points = [ [0,0]...
glb/cad_4c4e20b0b6e6.glb
Create a LiPo battery holder with a main internal cavity measuring 102mm in length, 37mm in width, and 24mm in height. The walls of the holder should be 2mm thick. Construct the outer shell as a rectangular case. On the bottom surface, place two mounting holes centered 50mm apart. Each hole should be 3mm in diameter....
battery_length=102; battery_height=24; battery_width=37; wall_height=2; thickness=2; hole= 3; sunk_screws=0; hole_distance=50; light=1; cable_tie_hole=1; band_hole=1; thick_edge=0; hard_case=0; module Akku(){ cube([battery_length,battery_width,battery_height],center=true); } module Case(L,B,H) { difference(){ cube...
glb/cad_e08978bda66f.glb
Create a customizable cone by constructing a truncated cone with a total height of 75mm. The base should be a circle with a radius of 20mm, tapering linearly to a top circular face with a radius of 5mm. Ensure the surface is smooth with a high facet resolution.
height =75; radius =20; radius2 =5; cylinder ( h=height, r1=radius, r2=radius2, $fn=100 ) ;
glb/cad_11febb3dd630.glb
Create a customizable glass by constructing a hollowed-out conical frustum. First, create a solid tapered cylinder with a height of 90mm, a bottom radius of 27mm, and a top radius of 38mm. To create the interior cavity, remove a second tapered cylinder from the center of the first. This inner cylinder must have a botto...
height =90; radius_bottom =27; radius_top =38; thickness_percent=5; thickness = radius_top*thickness_percent/100; difference() { cylinder ( h=height, r1=radius_bottom, r2=radius_top, $fn=100 ) ; translate(v = [0, 0, 3]) cylinder ( h=height+thickness*1.5, r1=radius_bottom-thickness, r2=radius_top-thickness, $fn=10...
glb/cad_f1715dc6e597.glb
Create a table corner child protection guard. Start by constructing a solid shape that is the convex hull of three elements: a cylinder with a radius of 14mm and a height of 45mm, and two small cubes measuring 5mm by 5mm by 45mm. Position the first cube at coordinates (-5, 25, -5) and the second cube at (25, -5, -5), w...
TABLE_THICK=35; CORNER_THICK=5; CORNER_R=14; CORNER_WIDTH=30; CORNER_H=TABLE_THICK+2*CORNER_THICK; difference() { hull() { translate([(CORNER_R-CORNER_THICK),(CORNER_R-CORNER_THICK),-CORNER_THICK]) difference() { cylinder(CORNER_H,r=CORNER_R); rotate([0,0,45]) tr...
glb/cad_5b43bb615b48.glb
Create a circular text arrangement featuring the phrase "I thought what I'd do was, I'd pretend I was one of those deaf-mutes". The text should be laid out along a circle with a radius of 55mm. Each character must be rendered with a font size of 6mm and a thickness of 3mm. Position each letter individually around the ...
use <fontmetrics.scad>; use <string.scad>; MySnappyString="I thought what I'd do was, I'd pretend I was one of those deaf-mutes"; Radius=55; fontsize=6.; Gap=1; Tilt=45; font=str("Comic Sans MS:style=Normal"); Thickness=3; VFlipChars=false; ForceFixedSpacing=3; CircleText( MySnappyString=MySnappyString, Radius=Radiu...
glb/cad_4d437b20b79e.glb
Create a model of customizable struts for a regolith-shielded dugout house. The structure consists of a series of paired, angled struts that form a roof ridge. Each individual strut is a rectangular beam with a width of 6mm, a total outside length of 30mm, and a thickness of 4mm. These struts are angled at 35 degrees ...
width=6; length=30; thickness=4; bin_width=4; wall_thickness=.3; theta=35; assembly="model"; num=10; epsilon=0+0.001; base=length*cos(theta); height=length*sin(theta); ep=epsilon; inter_strut_distance = sqrt((3*wall_thickness)*(width/10)); strut_area_approx=thickness*(length-thickness/2); strut_depth=strut_area...
glb/cad_4cc4a1cae813.glb
Create a Groovemount box for a PLA Prusa i3 extruder and 40mm fan mount. Start by constructing a main housing block. Within this block, create a central motor mount area with a height of 7mm. Incorporate a motor flange cutout and four mounting screw holes. Add two bearing posts to hold 625ZZ bearings (16.25mm outer...
include<configuration.scad> include<nema_motor.scad> include <shapes.scad> include <lib-teardrop.scad> $fn=36; gear_module = 0.5; motor_gear_teeth = 14; motor_gear_mounting_part_length=7; motor_gear_mounting_part_dia = 10; motor_gear_gear_length=6; driven_gear_teeth=80; driven_gear_length=4; driven_gear_hub_length=4...
glb/cad_117af0fe8c5b.glb
Create a "Ball in Cage with a Twist" model. Start by placing two spheres, each with a radius of 10mm, centered vertically along the Z-axis. Position the first sphere at Z = 14.5mm and the second at Z = 34.5mm, leaving a 1mm gap between them. Surround these spheres with four square columns, each 4mm wide. The center of...
$fn=100*1; Diameter=20; Balls=2; Twist=90; Direction=-1; Top=4; Bottom=4; Resolution=0.20; Radius=Diameter/2; Clearance=Radius*0.05; Width=Radius*0.4; Height=Diameter*(Balls+2); Side=2*cos(45)*(Radius+Clearance+Width/sin(45)); Column=Side/2-Width/2; Gap=(Height-(Diameter*Balls+Clearance*(Balls-1)))/2; module ...
glb/cad_70bb0ba71387.glb
Create a Pocket Dungeon box consisting of two matching open-top trays. For each tray, start with a rectangular base measuring 68.2mm by 132.2mm with a thickness of 2.05mm. From this base, remove a central rectangular volume to create walls that are 2.05mm thick, leaving an interior cavity of 60mm by 120mm and a depth o...
tray_width = 60; tray_length = 120; tray_depth = 30; tray_gap = 0.7; tray_fit = 0.05; tray_fit_depth = 5; wall_size = 0.41*5; lip_size = 1; patterned_inner_tray(); patterned_outer_tray(); module patterned_inner_tray() { difference() { inner_tray(); for(j=[0:10:base_length+10]) { for(i=[0:10:base_width+10])...
glb/cad_90028c9b29f3.glb
Create a standoff by constructing a hollow cylinder with a height of 23mm. The outer diameter of the cylinder should be 24mm, and it should have a centered circular hole running through its entire length with an inner diameter of 14mm.
height=23; OD=24; ID=14; difference(){ cylinder(r=OD/2,h=height); cylinder(r=ID/2,h=height); }
glb/cad_bc2918e62911.glb
Create an FAA Drone Tag by starting with a solid rectangular base measuring 30mm in length, 7mm in width, and 1mm in height. Centered on the top face of this base, carve out the alphanumeric text "FAXXXXXXXX" as a hole that penetrates 1mm deep into the material. Ensure the text is scaled to fit within a bounding area o...
length = 30; width = 7; id_text = "FAXXXXXXXX"; difference() { cube([length, width, 1]); translate([1, width / 2, 0.5]) linear_extrude(1, convexity = 4) resize([length - 2, 0], auto = [true,true,false]) text(id_text, valign = "center"); }
glb/cad_84ee03fb2798.glb
Create a closet rod holder consisting of a circular base and a hollow cylindrical sleeve. Start by creating a flat circular base with a radius of 31mm and a height of 3mm. Centered on this base, add a hollow cylinder with an outer radius of 19mm and a height of 25mm. The interior of this cylinder must be a hole with a ...
$fn=60; difference () { union () { cylinder(r=38/2,h=25); cylinder(r=62/2,h=3); } cylinder(r=36/2,h=25); rotate([0,35,0]) translate([-5,0,34.5]) cube(size=[40,40,40],center=true); screws(); } module screws() { for (i=[0:3]) { rotate( i * 360 / 3 + 180, [0, 0, 1])translate ([62/2-7,0,0]) cylinder (r=2,h=5); } }
glb/cad_58058c7db1ff.glb
Create a closet rod holder consisting of a tapered cylindrical sleeve mounted on a flat circular base. Start by creating a base disk with a radius of 31mm and a height of 3mm. Centered on this base, add a tapered cylinder that is 25mm tall, transitioning from a bottom radius of 21.5mm to a top radius of 19mm. Hollow ou...
$fn=60; difference () { union () { cylinder(r1=43/2,r2=38/2,h=25); cylinder(r=62/2,h=3); } cylinder(r=36/2,h=25); translate([0,0,34.9]) cube(size=[42,42,40],center=true); screws(); } module screws() { for (i=[0:3]) { rotate( i * 360 / 3 + 180, [0, 0, 1])translate ([62/2-7,0,0]) cylinder (r=2,h=5); rotate( i * ...
glb/cad_eb7c278af23d.glb
Create a Battery Holder base for a 2x2 grid of batteries. Start with a rectangular base plate measuring 48mm by 48mm with a thickness of 8mm. Within this base, create four circular cutouts, each with a radius of 9mm, arranged in two rows and two columns. Each circle's center should be positioned 13mm from the outer edg...
rows = 2; columns = 2; diameter = 18; distance = 4; outline = 4; baseThickness = 8; topThickness = 2; radius = diameter / 2; solderWith = 6; totalx = columns * (diameter + distance) - distance+ 2 * outline; totaly = rows * (diameter + distance) - distance + 2*outline; screwsStanding = true; screwSize = 4; screwThickne...
glb/cad_56c007991db6.glb
Create a Parametric Round Knitting Loom consisting of a circular base with integrated peg holes. Start by creating a main disc with a thickness of 8mm and an outer radius of 47mm. Remove a concentric inner cylinder with a radius of 33mm to create a ring shape. On the top surface of this ring, place a small vertical cyl...
use<pins.scad>; lpcd = 40; lbt = 8; lpd = 5; lpr = 4; lph = 20; lpc = 16; lpa = (360/lpc); lp = 3; module roundLoomBase(lpcd,lbt,lpd,lpr,lph,lpc,lp){ difference(){ union(){ cylinder(h=lbt,r=(lpcd+lpr+lp),$fn=64,center=true); translate([0,lpcd+lp+(2*lpr),0]) { cube([(1.5*lpr),(3*lpr),lbt],center=true); ...
glb/cad_44491acf4083.glb
Create a playing card holder with a total width of 165mm. The main body is a curved slab 11mm thick, formed by the intersection of a 165mm wide rectangular block and a large cylinder with a radius of 180mm. Cut a curved slot through the center of this slab to hold cards. This slot is created by removing a central cyl...
$fn=300; arcrad = 180; module feet() { translate([(arcrad)*cos(90+21.5), (arcrad)*sin(90+21.5), 0]) cylinder(1.5, r=35/2); } module trim() { difference() { translate([(arcrad)*cos(90+21.5)-60, (arcrad)*sin(90+21.5)-60, 0]) cube([60, 60, 30]); translate([(arcrad)*cos(90+21.5), (arcrad)*sin(90+21.5), 0]) ...
glb/cad_b588e2ef5ba9.glb
Create a Simpler Top Stabilizer for Printrbot by constructing a low-profile cylindrical ring. Start with a solid cylinder that has a radius of 6mm and a height of 5mm. Use a low facet count for the cylinder to give it a faceted, polygonal appearance. From the center of this solid, remove a smaller concentric cylinder w...
difference() { cylinder(r=6,h=5); translate([0,0,-0.1]) cylinder(r=3.9,h=5.5); }
glb/cad_41902b876f17.glb
Create an aquarium overflow splash cap and adapter consisting of three concentric cylindrical shells. First, create a base disc with a radius of 40mm and a thickness of 1.5mm. Centered on this base, build an outer cylindrical wall with an outer diameter of 80mm, an inner diameter of 77mm, and a height of 22.5mm. Inside...
outer_cyl = 80; inner_cyl = 62; overflow_cyl = 36.5; wall_thick = 3; ht = 22.5; ocr = outer_cyl/2; icr = inner_cyl/2; ofr = overflow_cyl/2; wr = wall_thick/2; difference() { union() { cylinder(r=ocr, h=wr, center=true); translate([0,0,ht/2]) difference() { cylinder(r=ocr, h=ht, center=true); cylinder(r=ocr-wr, ...
glb/cad_e492c42d7591.glb
Create a brake check tool consisting of a flat, elongated base with a central protruding feature. Start by creating a base plate that is 5mm thick. This base is composed of two semi-circular ends connected by a rectangular center, forming a pill-like shape with a total width of 17mm (calculated as the shaft diameter of...
tol=0.25; stol=0.1; T=20; e=1; D=140; ta=10; pd=8; ph=15; sd=14; re=3; te=5; psi=40; p=2*(T+e+tol)+te+3*e+2*tol; rs=2+stol; lb=12; Trod=10; Lrod=50; brake_test(); module brake_test() { difference(){ union(){ cylinder(r=sd/2+re,h=te); rotate([0,0,-90+1*psi]){ translate(-[0,sd/2+re,0])cube([30,2*(sd/2+re),te]);...
glb/cad_b7b8e365cdbe.glb
Create a transmission shaft model. Start with a main central cylinder that has a diameter of 14mm and a total height of approximately 135mm. At the base of this cylinder, add a hexagonal cap with a height of 1mm and a radius of 9mm. Along the length of the shaft, integrate several hexagonal sections. Position one hexa...
use <involute_gears.scad> use <pins.scad> use <write/Write.scad> tol=0.25; stol=0.1; T=20; e=1; D=140; ta=10; pd=8; ph=15; sd=14; re=3; te=5; psi=40; p=2*(T+e+tol)+te+3*e+2*tol; rs=2+stol; lb=12; Trod=10; Lrod=50; na=60; ns=24; np1=14; np2=na-ns-np1; ni=10; pitch=na/(D-2*ta); twistpitch=1; phi=acos(((ns+ni)*(ns+ni)+...
glb/cad_4628fd0bd918.glb
Create a parametric dice by starting with a cube 18mm on each side, centered at the origin. Round the corners of the cube by intersecting it with a sphere of radius 13.5mm (0.75 times the cube size). On each face of the dice, create circular indentations with a depth of 0.6mm and a radius of 1.6875mm (0.09375 times t...
size = 18; depth = 0.6; roundness=0.75; z_pos = [[0,0,0], [0,1,0], [0,0,0]]; z_neg = [[1,0,1], [1,0,1], [1,0,1]]; y_pos = [[1,0,1], [0,1,0], [1,0,1]]; y_neg = [[1,0,0], [0,0,0], [0,0,1]]; x_pos = [[1,0,0], [0,1,0], [0,0,1]]; x_neg = [[1,0,1], [0,0,0], [1,0,1]]; faces =[z_pos, z_neg, y_pos, y_neg, x_pos, x_neg]...
glb/cad_2db8b90f4554.glb
Create a parametric die by starting with a cube 16mm on each side, centered at the origin. Soften the edges of the cube by intersecting it with a sphere of radius 12mm (0.75 times the cube size) to create rounded corners. On each of the six faces, indent circular pips with a depth of 0.6mm and a radius of 1.5mm (0.09...
size = 16; depth = 0.6; roundness=0.75; one = [[0,0,0], [0,1,0], [0,0,0]]; two = [[0,0,1], [0,0,0], [1,0,0]]; three = [[0,0,1], [0,1,0], [1,0,0]]; four = [[1,0,1], [0,0,0], [1,0,1]]; five = [[1,0,1], [0,1,0], [1,0,1]]; six = [[1,0,1],...
glb/cad_f86d1c052904.glb
Create a parametric six-sided die with a total size of 16mm. Start by forming the main body as a cube of 16mm, but round the corners and edges using a sphere with a radius of 12mm (0.75 times the size) to create a smooth, rounded cubic shape. On each face of the die, create circular indentations to represent numbers f...
size = 16; depth = 0.6; roundness=0.75; one=[[0,0,0], [0,1,0], [0,0,0]]; two=[[0,0,1], [0,0,0], [1,0,0]]; three=[[0,0,1], [0,1,0], [1,0,0]]; four=[[1,0,1], [0,0,0], [1,0,1]]; five=[[1,0,1], [0,1,0], [1,0,1]]; six=[[1,0,1], [1,0,1], [1,0,1]]; differ...
glb/cad_856694ca62d8.glb
Create a measuring scoop consisting of a hemispherical bowl and a handle. For the bowl, create a hollow sphere with an outer radius of 21.54mm and an inner radius of 19.54mm, then slice the sphere in half by removing the bottom hemisphere to create an open bowl. Attach a handle to the side of the bowl. The handle sho...
volume = 10; thickness = 2; handleLength = 50; handleTickness = 3; handleWidth = 15; hangingHoleDistance = 3; PI=3.14159265; internalRadius = pow(volume * 2 * 3 / (4 * PI), 0.33333333333333) * 10; externalRadius = internalRadius + thickness; hangingHoleRadius = (handleWidth - (hangingHoleDistance * 2)) / 2; m...
glb/cad_fb250984528f.glb
Create a Terraforming Mars Box insert consisting of several storage compartments. First, create a card storage unit with a base of 208mm by 187mm and a height of 42mm. Within this, carve out three slots for cards measuring 65mm by 90mm, each with a wall thickness of 2mm. Add semi-circular finger cutouts with a 10mm r...
box = [287,287,67]; board = [260,260,18]; card = [64+1,89+1]; hexagon_d=39+1; player_token = 8; token_gold = 10.5; player_mat = [224,164,5]; enviroment = [13,13,13]; finger_d = 20; wall = 2; bevel=1; d_card_storage=[(card[0])*3+4*wall,(card[1])*2+3*wall,box[2]-5*player_mat[2]-board[2]-2]; d_hexagon = [d_card_storag...
glb/cad_9baa4c408484.glb
Create a parametric strong shaft collar with a total height of 20mm. Start with a main outer cylinder that has a radius of 13.28mm and a height of 20mm. Remove a concentric inner cylindrical hole with a radius of 4.76mm to accommodate the shaft. To create the clamping mechanism, remove a rectangular slot from the out...
cheight =20; cthickness = 8; choleradius = 4.7625; cgap = 2; flangelength= 20; clampscrewradius = 3.175; holeoffset = 50; stackcount = 1; cradius = choleradius/2 + cthickness; flangethickness = cradius-cgap/2; flangeoffsetx = cradius - flangethickness/2; flangeoffsety = flangelength/2; flangeoffsetz = cheight/2...
glb/cad_4a0497a44a52.glb
Create a 3D vessel based on a Koch square fractal curve. Start with a base square of 100mm. Replace each side of the square with a fractal curve of order 1, where the middle third of each segment is replaced by two sides of a right-angled triangle (45-90-45) pointing outwards to create the outer boundary. Create a ma...
side=100; outer_order=1; outer_parity=1; thickness=5; reduce=0.8; inner_order=1; inner_parity=1; height=80; base_height=1; function r_peri(peri,sides,n,i=0) = i<n ? r_peri(replace_sides(peri,sides),sides,n,i+1) : peri ; sq = scale_peri(norm_peri([90,90,90,90]),side); sides= [norm_peri([225,90,225,90...
glb/cad_5c631486e4a9.glb
Create a back cover for a Volumio Jukebox case. Start with a rectangular slab measuring 169.25mm in width, 145mm in height, and 3mm in thickness. Within this slab, remove several rectangular and cylindrical sections to create openings. Carve out three rectangular slots: one measuring 13.1mm by 15mm positioned at x=40...
$fn=90; rotate([90,0,0]) difference() { translate([4.25,150.375,2.25]) cube([169.25,3,145]); union() { translate([40,150,16.6]) cube([13.1,4,15]); translate([58,150,16.6]) cube([13.1,4,15]); translate([75.3,150,16.6]) cube([15.9 ,4, 13.9]); translate([121,150,0]) cube([5,4,13]);...
glb/cad_f0c6894db2fc.glb
Create a Volumio Jukebox case. Start with a rectangular base measuring 171mm by 150mm by 3mm. Construct two vertical side walls, each 4mm wide, 150mm deep, and 147.5mm high, positioned at the left and right edges of the base. Add a front button panel 167mm wide, 40mm high, and 3mm thick, positioned between the walls. ...
$fn=180; pi_x = 41; pi_y = 66; difference() { union() { translate([1,5,0]) cube([4,150,147.5]); translate([1,63.9,147.25]) cube([4,91.1,3]); translate([1,0,0]) cube([4,5,40]); translate([5,5,41]) rotate([0,-90,0]) cylinder(h = 4,r1 = 5, r2 = 5); #translate([5,64,145.13]) r...
glb/cad_628196b709d6.glb
Create a thin rectangular plate for the top cover of a Volumio Jukebox case. The plate should be 169.5mm long, 90.81mm wide, and 3.5mm thick. Position the plate so that its center is aligned with the overall assembly, specifically placing the bottom-left corner at the coordinates 4.25mm on the X-axis, 59.2mm on the Y-a...
translate([4.25,59.2,127.7]) cube([169.5,90.81,3.5]);
glb/cad_e561fd79bdd3.glb
Create a customizable T-nut designed to fit into a profile slot. Start with a central cylindrical body with a diameter of 5.6mm and a height of 1.8mm. Around this, create a hexagonal outer shell with a diameter of 5.45mm and a thickness of 2mm. Carve a hole through the center of the model for a 2.5mm screw, including ...
opening=5.6; wallThck=1.8; inWdth=11.9; baseThck=1.05; coneThck=2; screwM=2.5; spacing=0.4; nutChamfer=0.3; fudge=0.1; ovThck= baseThck+coneThck+wallThck; $fn=100; nutS=[ [2 ,4], [2.5,5], [3 ,5.5], [4 ,7], [5 ,8], [6 ,10], [7 ,11], [8 ,13], [10 ,17], [12 ,19]]; ru=(lookup(screwM,n...
glb/cad_ead12487395c.glb
Create a 3D Fibonacci tile with a height of 6mm. The base shape is a 2D polygon defined by a Fibonacci word fractal curve of order 3. To construct the perimeter, use a recursive pattern of segments where each segment is 60mm divided by the total length of the fractal path. The path consists of a sequence of moves and...
k=3; width=60; inset=-0.1; height=6; function fib(n) = n==0 ?0 : n==1 ?1 : fib(n-1)+fib(n-2); function mirror(s,i=0) = i <len(s) ? str( s[i]=="R" ? "L" : "R", mirror(s,i+1)) : ""; function fib_curve(n)= n==0 ? "" : n==1 ? "R" : n%3==2? str(fib_curve(n-1),fib_curv...
glb/cad_df44895d305c.glb
Create a "gems test" model consisting of five identical geometric gem shapes. To construct a single gem, start with a cube measuring 500mm by 100mm by 100mm. Create seven intersecting copies of this cube, each rotated differently to carve out a complex polyhedral volume: rotate the first at [0, 0, 0], the second at [60...
how_many_gems = 5; gem1 = 500; gem2 = 500; gem3 = 500; gem4 = 500; gem5 = 500; size=[gem1,gem2,gem3,gem4,gem5]; facet_1 = 300; facet_2 = 200; facet_3 = 60; module gemmaker(f1,f2,f3,s) { intersection_for(i = [ [ 0, 0, 0], [ f3, 60, 0], [0, 60, 60], [ 60, 0, 60], [100, f1, 100], [0, 150, 100], ...
glb/cad_6e3fd2fc6229.glb
Create a bubble maker consisting of four identical rings aligned in a row with a handle extending from the end. Each ring is a flat cylinder with an outer radius of 10mm, an inner radius of 7.8mm, and a thickness of 2.2mm. Position the four rings so that their centers are spaced 17.6mm apart along a single axis, causin...
thickness = 2.2; radius = 7; bigradius = 10; length = 50; petals = 4; $fn = 50; union() { for ( i = [0 : (petals - 1)] ) { translate([(bigradius + radius - thickness/2)*-i, 0, 0]) { difference () { union () { cylinder (r = bigradius, h = thickness, center = false); } cylinder (r = bigradius...
glb/cad_b55e17b15b5c.glb
Create a customizable sphere stand. Start by creating a hollow cylinder with an inner diameter of 54mm and a wall thickness of 3mm, resulting in an outer diameter of 60mm. The cylinder should have a total height of 39.3mm. At the base of the cylinder, add a solid circular floor with a thickness of 4mm. To form the cr...
sphere_diameter = 72; stand_inner_diameter = 54; height_of_lamp = 17; gap_between_lamp_and_sphere = 1; wall_thickness = 3; bottom_thickness = 4; flare_angle = 90; flare_inner_wall = 0; FN = 50; $fn=FN; innerRadius = stand_inner_diameter/2; outerRadius = innerRadius + wall_thickness; outerDiameter = outerRadius...
glb/cad_a939a5ee9c81.glb
Create a hygrometer holder for a filament spool. Start by constructing a main circular flange with an outer diameter of 60mm and a height of 2.1mm. From the center of this flange, remove a concentric cylindrical hole with a diameter of 46mm and a depth of 5mm. Below the flange, create a tapered cylindrical base that ...
spoolhole=51; translate([0,0,2])difference(){ translate([0,0,-0.1])cylinder(d=60,h=2.1,$fn=150); translate([0,0,-1])cylinder(d=46,h=5,$fn=150); } difference(){ translate([0,0,-0.1])cylinder(d=60,h=2,$fn=150); translate([0,0,-1])cylinder(d=42,h=5,$fn=150); } translate([0,0,0])difference(){ rotate([...
glb/cad_7ef83a90e77a.glb
Create a customizable keychain tag. Start by constructing a base plate with a total height of 1.2mm. The main body is a rectangular slab with rounded ends, formed by a central rectangle and two semi-cylindrical caps at each end with a radius of 1.6mm. The total width of the plate is 8mm, and the length is determined by...
label = "my tag"; size = 4; font = "Liberation Sans:style=Bold"; $fn=30; width = size * 2.0; hole = 2; length = (len(label)+2) * size; border = size * 0.4; height = 1.2; emboss = 0.2; difference() { union() { translate([-length/2, -width/2, 0]) cylinder(r=border, h=height, center=true); ...
glb/cad_006d76dcaa44.glb
Create a crowned pulley by starting with a sphere of radius 13.6mm centered vertically such that it is bisected by the top and bottom planes of a cylinder with a radius of 13.6mm and a height of 9mm. From this combined volume, remove a central coaxial cylinder with a radius of 4.575mm to create the inner hole. Addition...
$fn = 72; crownRadius = 13.6; pulleyHeight = 9; bearingSize = 22; bearingClearing = 0.6; innerHole = 9.15; difference() { intersection() { cylinder(r = crownRadius, h = pulleyHeight); translate([0, 0, pulleyHeight / 2]) sphere(r=crownRadius); } translate([0, 0, 1]) cyli...
glb/cad_f167de3910b3.glb
Create a quick release plate for a Manfrotto 484RC2 ball head. Start with a base plate that has a total height of 9.8mm. The main body is a tapered rectangular slab with a width of 42.6mm at the base and 37.5mm at the top, and a depth of 52.3mm. Extend the plate's length by adding 120mm of extra width to the left sid...
extra_left=120; extra_right=80; left_hole_style="standard"; left_hole_diameter=20; left_hole_x_offset=0; left_hole_y_offset=0; middle_hole_style="standard"; middle_hole_diameter=20; middle_hole_x_offset=0; middle_hole_y_offset=0; right_hole_style="standard"; right_hole_diameter=20; right_hole_x_offset=0; right_h...
glb/cad_99fd22b9516d.glb
Create a Sturdystruder extruder by constructing a main block and a swivel arm. The main block is centered around a NEMA 17 mount with a 42mm square footprint and a 1.5mm thick plate. Subtract a central cylinder with a 13mm radius for the stepper shaft and four M3 screw holes at the corners. Add a fixing plate for 15x15...
translate([n17hs,-n17hs,7]) rotate([0,0,9]) color("green") swivel(); translate([-13.5,9,14.5]) rotate([90,0,0]) color("blue") spring_tensioner($fn=50); translate([4.8,22.5,9.5]) rotate([90,0,0]) color("blue") bsp_m5_nut_clamp($fn=50); extruder_block(); hobbsRadius = 3.5; filamentDiameter = 1.75; filamentCenterOffset ...
glb/cad_9b423423a5a1.glb
Create a phone mount for a car dashboard shelf consisting of a phone holder, two wedge-shaped bases, and connecting threaded hardware. First, create a phone holder designed for a device 71mm wide, 131mm long, and 10mm thick. The holder should be a rectangular tray with 5mm thick walls and reinforced corners. Construc...
use <Thingiverse-Projects-master\Threaded Library\Thread_Library.scad> wedge_width = 30; wedge_length = 70; wedge_height = 45; phone_width = 71; phone_length = 131; phone_height = 10; wall_thick = 5; screw_radius = 4; overlap = 0.1; gap = 0.2; horizontal_travel = wedge_length * 0.4; nut_length = wedge_length / 3; ...
glb/cad_d7b4134a7eb1.glb
Create a hygrometer holder for a filament spool. Start with a main circular ring that has an outer diameter of 60mm and a height of 2.1mm. Carve a concentric hole through the center of this ring with a diameter of 46mm. Attached to the bottom of this ring, create a central cylindrical sleeve that extends downwards. Th...
spoolhole=53; translate([0,0,2])difference(){ translate([0,0,-0.1])cylinder(d=60,h=2.1,$fn=150); translate([0,0,-1])cylinder(d=46,h=5,$fn=150); } difference(){ translate([0,0,-0.1])cylinder(d=60,h=2,$fn=150); translate([0,0,-1])cylinder(d=42,h=5,$fn=150); } difference(){ rotate([180,0,0])cylinder(d...
glb/cad_3d190cb72ace.glb
Create a soap bar holder designed to clip onto a metal frame. Start by constructing a mounting clip that is 75mm wide, 40mm deep, and 2.5mm thick. The top edge of this clip should be rounded; create this by forming a hollow cylinder with an outer diameter of 5.5mm and an inner diameter of 2.5mm, running the full 75mm w...
$fn=200; dt1=0.01; dt2=dt1*2; prt_delta=0.5; d_pil=9; all_x_bars=8; all_x=(all_x_bars)*10-5; clip_mat=2.5; clip_z=40; clip_gap=2; back_mat=3.0; back_z=75; bottom_mat=3.0; bottom_y=30; front_mat=3.0; front_z=20; translate([0, (back_mat-clip_mat)/2, 0]){ color("white") translate([0, 0, back_z]) cube([all_x, c...
glb/cad_bf9a1630371c.glb
Create a simple s-hook composed of a continuous round bar with a diameter of 5mm. The shape consists of two connected three-quarter circular arcs. Start by creating the first arc with a radius of 16mm. From the end of this first arc, transition into a second three-quarter circular arc with a radius of 10mm. Position th...
hook_1_diameter = 32 ; hook_2_diameter = 20 ; bar_diameter = 5 ; $fn = 20 ; SHook(hook_1_diameter / 2, hook_2_diameter / 2, bar_diameter) ; module SHook(r1, r2, thick) { three_quarter_circle(r1, thick) ; translate([(r1 + r2 + thick) * -sin(45), (r1 + r2 + thick) * sin(45), thick]) rotate([180, 0, -45])...
glb/cad_6a87bf660f38.glb
Create a wire loom clip with a thickness of 2.5mm. The main body is a rectangular block with a total width of 37.4mm and a height of 8.25mm. Along the length of this body, create four circular holes, each with a diameter of 7.85mm, spaced 1.2mm apart. These holes should be partially open on the bottom side to allow wir...
dia=7.85; count=4; spacing=1.2; border=2; reveal=18; thickness=2.5; tab_size=(dia*(100-reveal)/100)+border; tab_hole=tab_size-(border*2); module clip_thing() { tab_thickness=thickness; difference() { cube([tab_size,tab_size,tab_thickness]); translate([tab_hole/2,border,-1]) cube([tab_hole,tab_hole,tab_thic...
glb/cad_18e13ddc168a.glb
Create a fixed-angle desktop tablet easel with a total width of 200mm, a depth of 200mm, and a maximum height of 80mm. Construct two identical side panels, each 6mm thick. Each panel is a flat plate with a profile that slopes downward from the back to the front. The back edge is vertical, while the top edge angles do...
height=80; depth=200; width=200; overhang=50; strutThick=3; fitTol=0.58; sideThickness=6; right=depth-overhang; bottom=top(right)-5; thruBottom = bottom+2; thruBack = top(15)-strutThick; thruFront = top(right/2+strutThick)-strutThick-2; function top(x) = height - x*height/depth; module side() { difference() { ...
glb/cad_a7d53daa7052.glb
Create a fish cook ingredient holder consisting of a honeycomb grid of 11 hexagonal slots. Each hexagonal slot must have an inner radius of 13mm and a total depth of 22.5mm, formed by stacking 18 disks each 1.25mm thick. The slots should be arranged in a staggered pattern where every second column is shifted vertically...
slots = 11; disks_per_slot = 18; disk_radius = 13; disk_height = 1.25; module honeycomb(slot_count, disk_count, offset=0) { for (i = [0:slot_count - 1]) { translate([i * 1.5 * disk_radius, (i % 2) * disk_radius, 0]) linear_extrude(height = disk_count * disk_height) offset(offset) circle($fn...
glb/cad_b179442514a5.glb
Create a Camera Grip and Stand for a phone. Start by constructing a phone slot that is 147mm long, 10.5mm wide, and 74mm high. This slot is formed by two perpendicular rails with 5mm thick walls. The bottom rail is 87mm long, and the side rail is 74mm long. Both rails have a height of 15mm and a total width of 20.5mm. ...
phone_length=147; phone_sidebuttonheight=87; phone_large=74; phone_thick=10.5; all_walls=5; all_gaps=5; rail_h=15; rail_w=phone_thick+2*all_walls; grip_radius=25; e=0.02; difference(){ union(){ translate([0,0,0]) rotate([0,0,0]){ rail_any(phone_sidebuttonheight, rail_w, rail_h,all_walls,...
glb/cad_23d206621de4.glb
Create a coaster for a pepper or salt mill by constructing a hollowed-out conical base. Start by creating a solid conical frustum with a height of 14mm. The bottom base of this frustum should have a diameter of 65mm, tapering upward to a top diameter of 63mm. From the top center of this shape, remove a cylindrical vo...
COASTER_ROUDNESS=64; COASTER_INNER_DIAMETER=55; COASTER_WALL_THICKNESS=4; COASTER_BOTTOM_THICKNESS=4; COASTER_OUTTER_DIAMETER_DIFF=10; COASTER_WALL_HEIGTH=10; ROUND_EDGES_THICKNESS=1; ENABLE_ROUND_EDGES=false; if (ENABLE_ROUND_EDGES) { minkowski(){ coaster(); sphere(ROUND_EDGES_THICKNESS); } } else { co...
glb/cad_c14cc6c2bbc1.glb
Create a shelf peg consisting of a cylindrical pin and a supporting flange. Start by creating a cylinder with a diameter of 7mm and a length of 9mm to serve as the insert that fits into the wardrobe hole. Attached to one end of this cylinder, add a square flange that is 12mm wide, 12mm long, and 7mm thick. The cylinder...
hole_diameter = 7; hole_deep = 10; length = 12; intersection() { union() { translate([-hole_deep+1,0,0]) rotate([0,-90,0]) cylinder(r1=hole_diameter/2, r2=hole_diameter/2-1, h=1); rotate([0,-90,0]) cylinder(r=hole_diameter/2, h=hole_deep-1); difference() { translate([0,-hole_diameter/2,-hole_diameter/2]) c...
glb/cad_7b21b3c8d1dc.glb
Create a Bottom of Sensor base by starting with a main cylinder that has a radius of 25mm and a height of 2.5mm. On top of this base, add a second cylindrical section with a height of 2.5mm that tapers from a bottom radius of 15mm to a top radius of 20mm. From this upper section, remove a central cylindrical core with ...
Base_Height=2.5; Base_Radius=25; Wing_Height=2.5; Wing_Length=20; Wing_Width=5; Sensor_Width=8; Sensor_Height=4; Top_Inner_Radius=20; Bot_Inner_Radius=15; Sensor_Area_Radius=10; Sensor_Hole_X=3.25; Sensor_Hole_Y=2.25; Sensor_Hole_R=.5; Wire_Hole_R=1.25; difference(){ difference(){ union(){ difference(){ union()...
glb/cad_a7bdfd2e59cb.glb
Create a SquareCal calibration tool. Start by constructing a square perimeter frame with an outer side length of approximately 56.57mm (calculated as the side of a square with an 80mm diagonal). The frame consists of four bars, each 3mm wide and 5mm thick. In the center of this square, create a cross by placing two in...
LD=80; gb=3; ab=5; at=2; lb=sqrt(pow(LD,2)/2); ld=LD; Lt=1.5*gb; longitud = str("<--- ",lb,"mm --->"); diagonal = str("<--- ",ld,"mm --->"); include <write.scad> cube([lb,gb,ab], center = false); cube([gb,lb,ab], center = false); translate([(lb-gb),0,0]) { cube([gb,lb,ab], center = false); } transla...
glb/cad_77b094b6b8e3.glb