Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create an electronics enclosure consisting of a bottom base and a top cover. For the bottom base, create a solid rectangular block 66mm wide, 96mm long, and 65.9mm high. Hollow out the center to create a box with wall thicknesses of 3mm. The interior cavity should be 60mm wide and 90mm long. At the front end of the b...
bottom(); arx = 60; ary = 90; arz = 60; abt = 2.3; ubh = 6; lrx = 1.5; lrz = 2.9; wt = 3; ws = 1; usbw = 31; usbx = 9; usbh = 25; usbhole = 34; psw = 9; psx = 41; cablew = 6; cableh = 2; ledr = 3; buttonr = 8.25; module bottom() { exth = arz + lrz + wt; union() { difference() { cube([arx + ws + (w...
glb/cad_86a43a064dd7.glb
Create a SodaStream bottle holder designed for wall mounting. Start with a base plate that is a semi-circular disc with a radius of 62mm and a thickness of 3.2mm. At the center of the flat edge of this semi-circle, positioned 40mm from the curved edge, construct a vertical cylindrical ring. This ring must have an outer...
$fn = 500; $r_halter = 62; $loch_mitte = -40; $s = 3.2; module strebe() { rotate(a=[180,-90,0]) linear_extrude(height = $s, center = true, convexity = 0, twist = 0) polygon(points=[[0,0],[28,0],[0,40]], paths=[[0,1,2]]); } module halter(){ difference (){ cylinder(r=$r_halter,h=$s); ...
glb/cad_c624dee451ae.glb
Create a Portable Folding LED Downlight Stand consisting of a central base, three legs, and a locking nut. Start with the base: create a cylinder 40mm high with a radius of 7.5mm. Centered within this cylinder, create a hollow internal cavity for a threaded rod. This cavity is formed by a central vertical cylinder 14...
demo(); use <thread.scad> module nut() { trapezoidNut( length=13, radius=38, pitch=6, pitchRadius=26.5, threadHeightToPitch=0.2, profileRatio=0.5, threadAngle=30, RH=true, countersunk=0, clearance=0.1, backlash=0.1, stepsPerTurn=24 ); } module leg() { difference() { hull() { cylind...
glb/cad_87440ec8b1c6.glb
Create a Bre Pettis Medal by starting with a thick ring. The ring should have an outer radius of 58mm and an inner radius of 40mm, with a total thickness of 11mm. Within this ring, integrate a low-poly 3D face profile that is centered and scaled to fit the inner 40mm radius. The profile should be embossed or merged i...
include <OpenScadFont.scad> radius=40; thickness=11; edge=18; Text1=[ ["M"],["a"],["k"],["e"],["r"],["B"],["o"],["t"] ]; Kern1=[ -3,0,0,0,0,0,0,0 ]; Text2=[ ["I"],["n"],["d"],["u"],["s"],["t"],["r"],["i"],["e"],["s"] ]; Kern2=[ 6,0,0,0,0,0,0,0,-6,-6 ]; difference() { rotate([0,-90,-45]) union() { rotate([0,-90...
glb/cad_34a523da4eee.glb
Create a replacement button for a spincast fishing reel. The main body is a rounded, shell-like enclosure. Construct the outer shell by creating a series of stacked, concentric cylinders with varying radii and heights to form a tapered, organic profile: the base layers transition from a radius of 7mm at a height of 1mm...
$fn=50; difference(){ union(){ hull(){ translate([0,9.5,0]) cylinder(r1=7,r2=14,h=5); translate([0,7,0]) cylinder(r1=9,r2=15,h=3.5); translate([0,-1,0]) cylinder(r1=9,r2=14,h=2.5); translate([0,-4,0]) cylinder(r1=9,r2=13,h=1.5); translate([0,-7,0]) cylinder(r1=7,r2=11,h=1); } ...
glb/cad_f835599c9544.glb
Create a split filament oiler consisting of two identical symmetrical halves. To create one half, start with a solid body composed of three stacked sections: a bottom frustum 4mm high tapering from 5mm to 20mm diameter, a central cylinder 30mm high with a 20mm diameter, and a top frustum 4mm high tapering from 20mm dow...
module baseBodyShape() { cylinder(d1=5,d2=20,h=4,$fn=40); translate([0,0,4]) cylinder(d=20,h=30,$fn=40); translate([0,0,4+30]) cylinder(d1=20,d2=5,h=4,$fn=40); } module baseBodyInternalCutoutShape() { cylinder(d1=5,d2=16,h=4,$fn=40); translate([0,0,4]) cylinder(d=16,h=26,$fn=40); ...
glb/cad_06442a31f69b.glb
Create a Proxxon flex shaft mount by starting with a solid rectangular block measuring 52mm wide, 20mm deep, and 5mm high. From this base, remove a large rectangular section measuring 24mm by 24mm, positioned 14mm from the left edge and extending 40mm upwards. Within this void, center a vertical cylindrical hole with a...
$fn=60; difference(){ cube([52,20,5]); hull(){ translate([16,20,0]) cylinder(r=3,h=5); translate([16,11,0]) cylinder(r=3,h=5); } hull(){ translate([36,20,0]) cylinder(r=3,h=5); translate([36,11,0]) cylinder(r=3,h=5); } } cube([52,5,40]); difference() { translate([14,-24,0]) cube([24,24,40]); translate([26,-10,...
glb/cad_5c2648cd7e0b.glb
Create a dishwasher roller hub and clip consisting of a cylindrical hub and an attached mounting plate. The main hub is a cylinder 20mm long with an outer radius of 5mm and a concentric inner hole with a radius of 2.6mm. At one end of the hub, create a barb by adding a 2mm thick section with a radius of 5.5mm, then cut...
hubOuterRadius=5; hubInnerRadius=2.6; hubLength=20; barbLength=2; barbSlit=1.2; plateWidth=15; plateHeight=18; plateThickness=2; snapHeight=7; snapThickness=2; snapStretch=1.1; module dwrhub() { rotate(a=[0,180,0]) union() { translate(v=[11,0,0]) rotate(a=[0,90,0]) hub(); translate(v=[11-plateThickness,0,0]) rota...
glb/cad_544b5bda38a1.glb
Create a dishwasher roller hub and clip consisting of a cylindrical hub attached to a flat mounting plate and a snap-fit mechanism. Start by creating a main cylinder for the hub with a length of 22mm, an outer radius of 5mm, and a concentric inner hole with a radius of 2.7mm running through its center. At the end of ...
hubOuterRadius=5; hubInnerRadius=2.7; hubLength=22; barbLength=2; barbSlit=1.2; plateWidth=15; plateHeight=18; plateThickness=2; snapHeight=7; snapThickness=2; snapLength=12; snapBarb=2.5; snapStretch=1.1; module dwrhub() { rotate(a=[0,180,0]) union() { translate(v=[0,0,0]) rotate(a=[0,90,0]) hub(); translate(v=[...
glb/cad_7984bb2391ae.glb
Create a car gear knob consisting of a hollow cylinder. The outer shell should be a smooth cylinder with a radius of 7.5mm and a total height of 39mm. To create the hollow center, remove a smaller concentric cylinder with a radius of 5mm and a height of 38mm, positioned so that it starts 2mm from the bottom base and ex...
D2 = 5; difference(){ cylinder(r=7,5,h=39,$fn=100); translate([0,0,2]) cylinder(r=D2,h=38,$fn=100); }
glb/cad_aba64df08fda.glb
Create a LaserLab mount consisting of two rings and a holder designed to secure a laser pointer to an 8mm bar. First, create two identical rings. Each ring is a cylinder with a height of 20mm and an outer diameter of 25.4mm. Remove a central cylindrical core with a diameter of 16.2mm and a height of 14mm. To allow for...
translate([0,0,4])ring(); translate([0,45,4]) ring(); translate([35,30,2.5])rotate([0,180,90]) holder(); rotate([0,0,270]) translate([20,-30,5])ring_sw(); %cube([200,200,0.01],true); od = 12.7; h =20; l=45; module ring(){ difference(){ difference(){ translate([0,0,0])cylinder(8,20,20, center=true); translate([0,0...
glb/cad_25ab6ace57d8.glb
Create a LaserLab lens holder designed to fit an 8mm bar. Start with a central rectangular block 36mm long, 10mm wide, and 5mm thick. At each end of this block, centered on the width, place a cylinder with a diameter of 14mm and a height of 2mm. Through the center of the main block, create a horizontal cylindrical ho...
h =8; l=28; module a() { difference(){ difference(){ union(){ translate([0, 0,0])cube([l+8,10,5], center=true); translate([-((l+8)/2)-1, 0,-1.5])cylinder(8,5,5, center=true); translate([((l+8)/2)-1, 0,-1.5])cylinder(8,5,5, center=true); translate([0, 0,0])cylinder(5,8,8, center=true); } translate([0, -4.5, 2.51])rotate...
glb/cad_8355f4eed976.glb
Create a LaserLab optical mount consisting of a vertical cylindrical tube and a rectangular base. The main body is a cylinder with an outer diameter of 16mm and a height of 30mm. Bore a central vertical hole through this cylinder with a diameter of 8mm to accommodate a bar. At the bottom of the cylinder, create a hor...
rotate([0,180,0]) translate([0,0,2.5])tube(); rotate([0,180,0]) translate([0,17,-2.5]) bottom(); h = 30; %cube([200,200,0.01],true); module bottom() { difference(){ union(){ translate([0, 0,0])cube([40,10,5], center=true); translate([-19, 0,-0])cylinder(5,5,5, center=true); translate([19, 0,0])cylinder(5,5,5, cente...
glb/cad_b5ec90589fa9.glb
Create a LaserLab optical breadboard by starting with a rectangular base measuring 175mm by 100mm with a thickness of 10mm. Within this base, create a grid of holes spaced on a 25mm metric pitch. The grid should be centered on the board, with holes positioned at intervals of 25mm along both the length and width. Each h...
board(); x=175; y=100; z = 10; pitch = 25; xmax=(x-pitch/2)/pitch; ymax=(y-pitch/2)/pitch; module board(){ difference(){ translate([0, 0,0]) cube([x,y,z], center=true); union(){ for (i=[0:xmax]) for (j=[0:ymax]) translate([-x/2+pitch/2+pitch*i, -y/2+pitch/2+pitch*j,0])cylinder(11,3,3, center=true); for (i=[0:xmax]) ...
glb/cad_4af3e930e2df.glb
Create a LaserLab optical breadboard as a rectangular plate measuring 175mm by 100mm with a total thickness of 10mm. The base consists of a solid flat section 4mm thick. Across the top surface, create a grid of holes spaced on a 25mm metric pitch. At each grid intersection, center a circular hole with a radius of 11m...
board(); x=175; y=100; z = 10; z1=4; pitch = 25; xmax=(x-pitch/2)/pitch; ymax=(y-pitch/2)/pitch; module board(){ difference(){ union(){ translate([0, 0,-((z-z1)/2)]) cube([x,y,z1], center=true); board2(); translate([-x/2+pitch/4, -y/2+pitch/4,z1/2])cylinder(z,3,3, center=true); translate([x/2-pitch/4, -y/2+pitch/4,z1...
glb/cad_3898331339ea.glb
Create a LaserLab clamp by starting with a centered rectangular block measuring 32mm in length, 10mm in width, and 10mm in height. Remove a central cylindrical hole with a radius of 4.5mm that runs lengthwise through the block. To create the open ends, remove two rectangular sections measuring 3mm by 8mm by 12mm, cente...
%cube([200,200,0.01],true); difference(){ translate([0, 0,0])cube([32,10,10], center=true); translate([-6, 0,0])cylinder(14,4.5,4.5, center=true); translate([6, 0,0])rotate([90,0,0])cylinder(14,4.5,4.5, center=true); translate([13, 0,0])rotate([90,0,0])cube([3,8,12], center=true); translate([-13, 0,0])cube([3,8,12], c...
glb/cad_a423c1c2f6a9.glb
Create a customizable prosthetic finger consisting of a socket, a base, a middle section, and a tip. Start by creating a finger socket with a top diameter of 16.75mm, a bottom diameter of 17.25mm, and a depth of 26mm. The socket walls should be 2.1mm thick. Incorporate a central post with a diameter of 13mm and a ridg...
build_item = 0; build_item_2 = 0*4; knuckles = 2; fast = 1* 1; rotatetest = 0; explode = 0; print_mode = 1; print = (print_mode == 1 && build_item!=0) ? 1: 0; base_height = -1; base_width = 17; base_socket_ridge_height = 4 * 1; base_hinge_rounding = 1.35 * 1; middle_length = 20; middle_height = 10; middle_...
glb/cad_c3cd63ae6ffc.glb
Create a customizable prosthetic finger consisting of a socket, a base, two segments, and a tip cover. Start by creating a rubber socket with a top diameter of 17mm, a bottom diameter of 18mm, and a depth of 27mm, featuring a wall thickness of 2mm. The socket should include a post with a width of 13mm and a ridge of 1...
build_item = 0; segments = 2; fast = 1* 1; rotatetest = 0; explode = 0; print = 0; base_height = 0; base_width = 17; base_hingerounding = 1.4; middle_length = 20; middle_height = 10; middle_width = 7; middle_sides = 2; hinge_width = 14.5; hinge_bulge = 1* 0; hinge_pinclearance = 7; hinge_sideclearance =...
glb/cad_e6faf8e8c9b9.glb
Create an MK7 fan shroud for a 3D printer. Start with a main body that is a rectangular block 40mm wide, 67.5mm long (40mm for the fan housing plus a 27.5mm extended vent), and 10mm deep. The walls of this housing should be 2mm thick. At the top of the shroud, create a square mounting area for a 40mm fan. In the corne...
wall_width=2; thin_wall_width=2; fan_side=40; duct_depth=10; vent_height=27.5; vent_width=20; vent_window_height=5; vent_offset=5; anchor_side=8; hole_center_offset=4; bolt_head_cradle_height=3; m3_hole_radius=1.9; m3_thread_radius=1.5; m3_head_hole_radius=3.1; module body() { difference() { translate ([-f...
glb/cad_76d5335491af.glb
Create a shoe connector consisting of two separate components, both using 20-sided polygonal approximations for circular shapes. For the first component, create a base disk with a bottom radius of 5.2mm and a top radius of 5.7mm, both 0.5mm thick. Directly on top of this disk, center a cylinder with a radius of 5.7mm a...
circle_facets=20; translate([20,0,0]) union() { cylinder(r1=7,r2=7.75,h=0.75, $fn=circle_facets); translate([0,0,.75]) cylinder(r=7.75, h=1.25, $fn=circle_facets); difference() { cylinder(r=3.8, h=6, $fn=circle_facets); cylinder(r=1.75, h=6.1, $fn=circle_facets); } } union() { cylinder(r1=5.2, r2=5.7, h=0....
glb/cad_7c70753eb851.glb
Create an Azteeg X5mini v1.1 mount for a Kossel Mini 1515. The main body is a rectangular enclosure with overall dimensions of 130mm in length, 61mm in width, and 44mm in height, with a wall thickness of 2.5mm. The front and back walls are vertical panels. The back panel features a large circular cutout with a 38mm di...
include <functions.scad>; use_fillets = 1; extra_radius = 0.0; m3_major = 2.85; m3_radius = m3_major / 2 + extra_radius; m3_wide_radius = m3_major / 2 + extra_radius + 0.2; length = 130; width = 61; height =44; thickness = 2.5; blength = 98.9; bwidth = 50.8; stand_blength = 88.70; stand_bwidth = 43.58; stand_heig...
glb/cad_1f3c8bcbb2c6.glb
Create a cylindrical internal structure with a radius of 15mm and a height of 28mm, centered on the origin. The cylinder has a 22-facet resolution. From this volume, remove a repeating pattern of interconnected cone-tube units. Each unit consists of an 8-sided prism with a radius of 5mm and a height of 3.33mm, flanked ...
a=5;x=4;y=4;z=4;ang=60; dis=a*(1+sqrt(2))/2*1.3; module ball(){ rotate ([0,0,360/8/2]) union(){ translate([0,0,a*tan(ang)/2+a/3-0.01]) cylinder (h=a*tan(ang), r1=a, r2=0,center=true, $fn=8); translate([0,0,-a*tan(ang)/2-a/3+0.01]) cylinder (h=a*tan(ang), r2=a,r1=0,center=true, $fn=8); cylinder(h=a/3*2,r=a,center=...
glb/cad_4790cd54079b.glb
Create a cylinder with a radius of 15mm and a height of 28mm, centered on the origin, with a facet resolution of 44. From this solid cylinder, remove a repeating internal lattice structure composed of spheres and connecting tubes. Each sphere in the lattice has a radius of 5.4mm and a facet resolution of 12. Each spher...
a=6; c=0.9; x=3; y=3; z=4; module element(ratio=1) { sphere(r=a*ratio,$fn=12); cylinder(h=a*4,r=a/4*ratio,center=true,$fn= 12); } module pattern(ratio=1){ translate([-(x+1)*a ,-y *a ,-(z-1)*a ]) for (k=[0:1:z]) for (j=[0:1:y]) for (i=[0:1:x]) translate([i*2*a+(j%2)*a+(k%2)*a, j*a*sqrt(3)+a/sqrt(3)*(k%2), k*a*s...
glb/cad_1f6c0ff1b970.glb
Create a Circuitsonline KifKit LED lamp enclosure consisting of a main body, an end cap, and a sliding switch component. The main body is a hollowed cylinder with a height of 69mm and an outer radius of 10mm. The interior is hollowed out by a cylinder with a radius of 8.5mm. To create the outer profile, add a rectang...
module middenstuk(length=70){ difference(){ union(){ cylinder(h=length, r=10); translate([-10,1,0]) cube([20,10,length]); translate([-6,-17,0]) cube([12,10,length]); } union(){ translate([0,0,-1]) cylinder(h=length+2, r=8.5); translate([-8,3,-1]) cube([16,6,length+2]); translate([-4.25,-15,-1]...
glb/cad_5fae1fb200c5.glb
Create a customizable cable tie with a label. The model consists of a main strap, a locking head, and a rectangular label attachment. The strap is 190mm long, 6.6mm wide, and 1.6mm thick. Along the top surface of the strap, create a series of gear-like teeth spaced every 3.2mm. The end of the strap should taper into a...
include <utils/build_plate.scad> length = 190; screwHole = 0; label = 1; labelWidth = 30; labelDepth = 20; releaseTab = 0; tapeWidth = 6.6; tapeThickness = 1.6; tapeScale = 0.8; build_plate_selector = 0; build_plate_manual_x = 100; build_plate_manual_y = 100; build_pla...
glb/cad_6dfd25dddc30.glb
Create a fluorescence microscope and behavioral tracker platform called "FlyPi" consisting of several modular components. Start with a base plate that features a central rectangular groove for a Peltier element (41mm x 41mm x 3mm) and integrated cable slots. Add a vertical main wall that includes mounting holes for a ...
PartA = 1; PartA1= 1; PartB= 1; PartB3= 1; PartC= 0; PartC1= 1; PartC2= 1; PartD= 0; PartE= 0; PartF1= 1; PartF2= 0; PartG= 1; PartH= 0; PartI= 1; PartJ1= 1; PartJ2= 1; PartK= 1; PartL1= 1; PartL2= 0; PartM= 1; PartN= 1; PartO= 1; sep = 30; Walls = 5; Tol = 0.2; T_cableZ = 4; T_cableY = 12; T_cabl...
glb/cad_9cadd052016c.glb
Create a motorized focus mount for a microscope camera. The assembly consists of a base platform, a vertical support structure, and a motorized adjustment mechanism. Start with a rectangular base platform measuring 54mm by 43mm by 15mm. In the center of this base, create a hollowed-out rectangular chamber. Position fo...
wall = 3; X_range = 44; Y_range = 35; Z_range = 30; Sliding_Gap = 0.1; Separation_of_pieces = 20; Radius_of_holes = 2.1; Width_of_boat_slids = 7.4; Height_of_boat_slids = 3.2; module SEPARATION_OF_CUSTOMIZER_VARIABLES(){ } sep = Separation_of_pieces; gap = Sliding_Gap; A_X = X_range+20+2*wall; A_Y = Y_range+23+4...
glb/cad_b545998a26b5.glb
Create a FlyPi camera mount and support system. Start by constructing a main camera mount base as a rectangular block with dimensions 37.2mm by 37.2mm and a thickness of 1.5mm. In the center of this block, create a square recessed hole measuring 32.2mm by 32.2mm with a depth of 2mm to house the camera. Add a camera ca...
PartA = 0; PartA1= 0; PartA2 = 0; PartB= 0; PartB3= 1; PartC= 0; PartC1= 0; PartC2= 0; PartD= 0; PartE= 0; PartF1= 0; PartF2= 0; PartG= 0; PartH= 0; PartI= 0; PartJ1= 0; PartJ2= 0; PartK= 0; PartL1= 0; PartL2= 0; PartM= 0; PartN= 0; PartO= 0; sep = 30; Walls = 5; Tol = 0.07; T_cableZ = 4; T...
glb/cad_a4388d14e85f.glb
Create a printable drag chain link consisting of a central body with integrated snap-fit joints. The main body is a rectangular block 16mm long, 12mm wide, and 16mm high. At the center of the block, create a vertical cylindrical cutout with a radius of 4mm that passes through the width of the part. Additionally, crea...
play=0.2; $fn=40; width=12; round="yes"; module cablechain(w=12,round=true) { difference() { union() { d=round?8:0; translate([d,-(w+4-2*play)/2,0]) cube([16-d,w+4-2*play,2]); for(dy=[1,-1]) translate([0,-1+dy*(w+4-2-2*play)/2,0])...
glb/cad_385409785d7e.glb
Create a Lulzbot Taz E3D v6 mount consisting of two identical mirrored components. For each component, start with a central core formed by the union of a cylinder with a 20mm radius and 12mm height, and a hull connecting a 6mm high, 20mm radius cylinder to a 6mm high, 7mm radius cylinder positioned 25mm above the cente...
e3dmount(nuts=1); translate([0,20,0]) e3dmount(nuts=0); module e3dmount() { difference() { difference() { union() { rotate([90,0,0]) cylinder(r=20, h=12, center=true); hull() { translate([0.5,0,25]) rotate([90,0,0]) cylinder(r=7, h=6); ...
glb/cad_0746150be111.glb
Create a phone stand by starting with a solid rectangular base measuring 30mm wide, 70mm long, and 10mm high. Carve out two identical rectangular slots from the top of this base to create a cradle for a device. The first slot should be 12mm wide, 12mm deep, and 20mm long, positioned at the front edge. The second slot s...
difference(){cube([30,70,10]); translate([-2,-3,-2]) cube([12,12,20]); translate([-2,33,-2]) cube([12,100,20]); translate([5,12,0]) rotate(-20,[1,0,0]) cube([100,12,100]); translate([-4,-15,0]) rotate(-50,[1,0,0]) cube([100,9,100]); translate([-2,125,-10]) rotate(78,[1,0,0]) cube([100,50,100]);}
glb/cad_6465be74f800.glb
Create a phone stand by starting with a solid rectangular base measuring 30mm wide, 155.5mm long, and 12mm high. Carve out the front and back corners of the base to create a narrower profile, specifically removing rectangular sections from the front and back edges to leave a central supporting body. Cut a deep slot t...
length = 130; thickness = 12; angle = 30; box = 12 + (thickness/cos(angle)) + 2 + length*sin(angle); cut = 12 + (thickness/cos(angle)) + tan(angle) * 12 + 2; fslice = atan(11/(12*tan(angle) + 10 ) ); bslice = 90 - atan(11/(box - cut)); difference() { cube([30,box,12]); translate([-2,-3,-2]) cube([12,12,20]); translat...
glb/cad_04cc0f0dc4ab.glb
Create a Digispark serial LCD case consisting of a main housing with an angled profile. Start with a solid rectangular block measuring 86mm in width, 41mm in depth, and 41mm in height. Hollow out the interior to create a shell with 1.5mm thick walls, leaving the bottom face solid. On the top face, center a rectangula...
shape = "angle"; boxx = 86; boxy = 41; boxz = 21; wall = 1.5; lcdscrewx = 75; lcdscrewy = 31; lcdx = 72; lcdy = 25; standz = 5; standr = 2.5; screwz = standz; screwr = 1.5; cony = 10 + 1; conz = 2.5 + 1; conlocz = 8.5+standz; conlocy = 2; $fn=12; translate([-boxx/2,-boxy/2,0]) frontplate(); modul...
glb/cad_6b0514047db9.glb
Create a bushing for T-slot and V-slot wheeled carriages. Start by creating a cylinder with a diameter of 7mm and a length of 10mm, oriented horizontally. From this cylinder, remove a rectangular section along the bottom half to create a flat-bottomed profile. The flat section should be 5mm wide, effectively creating a...
use <MCAD/shapes/2Dshapes.scad> use <MCAD/shapes/polyhole.scad> include <MCAD/units/metric.scad> equivalent_d = 21.8; bore_d = 5.2; bushing_length = 10; slot_width = 5; $fs = 0.4; $fa = 1; module aluex_bushing (equivalent_d, bore_d, slot_width, length) { bushing_width = slot_width + 2; module bushing_shape ...
glb/cad_e2f532ad8a14.glb
Create a flyscreen holder by starting with a vertical cylinder that has an outer diameter of 9mm, a total height of 15mm, and a concentric hole 5mm in diameter running through its entire length. At the top of this cylinder, extending from the 12mm mark to the 15mm mark, attach a rectangular tab that is 11.5mm long and ...
$fs = 0.5; spacer_height = 12; spacer_inner_diameter = 5; spacer_outer_diameter = 9; tab_height = 3; tab_length = 11.5; handle_width = 2.5; handle_height = 4; difference() { union() { cylinder(spacer_height+tab_height,r=spacer_outer_diameter/2); translate([0,-spacer_outer_diameter/2,spacer_height]) { ...
glb/cad_73374fc999fc.glb
Create a coin organiser consisting of a main board and two supporting legs. The main board is a rectangular slab 99mm high and 27mm deep. The front bottom edge of this slab is rounded with a radius of 12mm. Along the top surface of the board, create four semi-cylindrical cavities to hold coins of different diameters: 1...
module tilt_legs(full_width,height,tilt) { intersection(){ translate([0,-55+16,0]) cube([full_width,45,height]); rotate(tilt,[1,0,0]) union(){ translate([0,0,0]) cube([4,18,120]); translate([full_width-4,0,0]) cube([4,18,120]); } } } module coin_cavity(coin_dia,height,depth) { eps=0.5; cyli...
glb/cad_e39ee6050f34.glb
Create a pair of self-closing tweezers by assembling four rectangular prisms, each 2mm thick. Start with a base prism measuring 30mm by 2mm by 10mm. Attach a second 30mm by 2mm by 10mm prism to the first, rotated 15 degrees. Add a third prism measuring 16mm by 2mm by 5mm, rotated -30 degrees and positioned at coordinat...
difference() { union() { cube([30,2,10]); rotate(15) translate([29,-7.8,0]) cube([30,2,10]); rotate(-30) translate([45.75,35.6,0]) cube([16,2,5]); translate([71,0,0]) rotate(5) cube([30,2,10]); } translate([5, 4, 5]) rotate([90,55,0]) cylinder(h=6, d=3); }
glb/cad_275462197fc4.glb
Create a car-mount for a smartphone by constructing a vertical cylinder with a radius of 0.4mm and a height of 0.4mm, centered at the coordinates (0.8, 0.75, 1). From this cylinder, remove a rectangular block measuring 1mm by 1.5mm by 3mm, positioned at the coordinates (1, 0, 0), to create a precise cutout in the geome...
$fn=100; difference() { translate([0.8,0.75,1]) cylinder(1.8,0.4,0.4); translate([1,0,0]) cube([1,1.5,3]); }
glb/cad_d732f7c308db.glb
Create a Printrbot Simple Metal E3D-V6 adapter plate. Start with a central cylinder 12mm in diameter and 12mm high. Add a smaller cylinder 8mm in diameter and 6mm high centered on the same axis. Create a flat base by forming a hull between four cylinders, each 4.7mm in diameter and 5mm high, positioned at coordinates (...
$fn=180; difference() { union(){ cylinder(6,8,8); cylinder(4.7,12,12); hull() { translate([-8,-21.5,0]) cylinder(4.7,5,5); translate([8,-21.5,0]) cylinder(4.7,5,5); translate([-8,8.5,0]) cylinder(4.7,5,5); translate([8,8.5,0]) cylinder(4.7,5,5...
glb/cad_753518307287.glb
Create a C-mount lens extension tube consisting of two stacked concentric cylindrical sections. The base section is a hollow cylinder with an outer diameter of 29.2mm, an inner diameter of 25.6mm, and a height of 10mm. Positioned directly on top of this base is a second, shorter hollow cylinder with an outer diameter o...
$fn = 66; tube_len = 10; module cmount_male(len) { inner_d = 23; outer_d = 24.7; f_inner_d = 25.4; f_outer_d = 28.6; translate ([0, 0, len / 2 ]) { difference () { union () { cylinder(r = outer_d / 2, h = len, center = true); } cylinder(r = inner_d / 2, h = len + 1, center = true); } differenc...
glb/cad_f2a126f25eef.glb
Create a Grid Plane consisting of a network of intersecting thin rectangular bars. Construct a series of 11 vertical parallel bars, each measuring 11mm in length, 1mm in width, and 1mm in height. Arrange these bars in 10 rows, spaced 10mm apart from center to center, covering a total span of 100mm. Then, create a serie...
module vertical_wall(x,y,length) { translate([x+length/2,y+0.5,0]) cube([length,1,1],center=true); } module horizontal_wall(x,y,length) { translate([x+0.5,y+length/2,0]) rotate([0,0,90]) cube([length,1,1],center=true); } union(){ for (row = [0:9]) { for (col = [0:10]) { ...
glb/cad_89ebb913eb07.glb
Create a parametric phone stand by starting with a solid rectangular base measuring 30mm wide, 79mm long, and 10mm high. Carve a void through the center of this base to create a slot for the device. This slot must be 12mm wide and angled at 20 degrees relative to the base. The front wall of the stand should be 5mm thic...
gap=12; gapangle = 20; tail = 40; height = 10; tailbackh = 2; wall=5; tailangle = atan2(height-tailbackh,tail); gapoff=12; gapback = gap/cos(gapangle)+gapoff+wall+tan(gapangle)*height; baselen = gapoff+gap+wall+tail; difference(){ cube([30,baselen,height]); translate([-2,-3,-2]) cube([12,12,20]); translate([-2,...
glb/cad_e2a073945e99.glb
Create a Flat Spinning Top consisting of a weighted outer ring and a central hub connected by spokes. Start by creating a thin outer ring with an outer radius of 35mm, a height of 5mm, and a wall thickness of 2.5mm. At the center of the model, place a vertical stand that is 10mm tall. This stand consists of a central c...
tr = 35; xw = 0.25; sh = 10; sr = 8; rh = 5; rw = 2.5; kh = 1.5; ns = 4; module cap(cr,cx,cy,cz){ translate([cx,cy,cz]) { difference(){ sphere(cr-xw); translate([0,0,-cr/2]) cube([cr*2,cr*2,cr], center = true); } } } difference(){ union(){ difference(){ union(){ translate([0,0,(sh-sr/2+xw)/2]) ...
glb/cad_8044420060e3.glb
Create a Flat Spinning Top consisting of a weighted outer ring and a central hub connected by spokes. Start by creating a thin outer ring with a radius of 35mm and a height of 5mm. The ring should have a wall thickness of 3mm, leaving a hollow center. In the center of the ring, place a hub assembly. The hub consists o...
tr = 35; xw = 0.25; sh = 10; sr = 8; rh = 5; rw = 3; kh = 1.5; ns = 4; kd = 3; module cap(cr,cx,cy,cz){ translate([cx,cy,cz]) { difference(){ sphere(cr-xw); translate([0,0,-cr/2]) cube([cr*2,cr*2,cr], center = true); } } } translate([tr/2.5,-tr/2.5,0]) difference(){ translate([0,0,(sh-sr/2+xw)/2]) union(...
glb/cad_c4d541ce19f4.glb
Create a Flat Spinning Top consisting of a weighted outer ring and a central hexagonal hub. Start by creating a main outer cylinder with a radius of 50mm and a height of 8mm. From this cylinder, remove a concentric inner cylinder with a radius of 42mm and a height of 8mm to create a ring wall that is 8mm wide. At the ...
use <../pathextrude/path_extrude.scad>; length=8; D=10; P=1.5; ND=17; H=sqrt(3)/2 * P; R=H/(P/2); ppr=31; loops=length/P; xw=0.4; tr=50; st=1; rw=8; rh=8; myPoints = [ [H/4-xw/4-0.02*R+xw/2,-P/2+0.02], [H/4-xw/4-0.02*R,-P/2+0.02], [-1/2*H-xw/4,-P/8], [-1/2*H-xw/4,P/8], [H/4-xw/4-0.02*R,P/2-0.02], [H/...
glb/cad_1b7a791ab265.glb
Create a Flat Spinning Top consisting of a weighted outer ring and a spoked center. Start by creating a main outer ring with a radius of 60mm, a height of 8mm, and a wall thickness of 5mm. In the center of this ring, place a hexagonal prism with a diameter of 17mm and a height of 16mm. To reduce central weight and cre...
use <../pathextrude/path_extrude.scad>; length=8; D=10; P=1.5; ND=17; H=sqrt(3)/2 * P; R=H/(P/2); ppr=31; loops=length/P; xw=0.4; tr=60; rw=5; rh=8; st=rh; myPoints = [ [H/4-xw/4-0.02*R+xw/2,-P/2+0.02], [H/4-xw/4-0.02*R,-P/2+0.02], [-1/2*H-xw/4,-P/8], [-1/2*H-xw/4,P/8], [H/4-xw/4-0.02*R,P/2-0.02], [H...
glb/cad_51595e0a6b08.glb
Create a Flat Spinning Top consisting of two concentric rings connected by spokes. First, construct a large outer ring with an outer radius of 35mm, a wall thickness of 3mm, and a height of 5mm. Directly above this, centered on the same axis, create a second identical ring positioned 15mm higher. Connect these two ring...
tr = 35; xw = 0.25; sh = 15; sr = 2; rh = 5; rw = 3; kh = 1.5; ns = 4; kd = 3; module ring(cx, cy, bz, or, tk, ht){ translate([cx,cy,bz+ht/2]){ difference(){ cylinder(r = or, h = ht, center = true, $fn = 50); cylinder(r = or-tk, h = ht+xw, center = true, $fn = 50); } } } ring(0,0,0,tr,rw,rh); ring(0,0,0,s...
glb/cad_dbda00ef1a0b.glb
Create a Flat Spinning Top consisting of a wide outer ring and a central conical support. Start by constructing a large outer ring with a radius of 35mm, a height of 5mm, and a wall thickness of 3mm. Inside this, place a smaller concentric support ring with a radius of 3mm and a height of 5mm. Connect these two rings u...
tr = 35; xw = 0.25; sh = 20; sr = 3; rh = 5; rw = 3; kh = 1.5; ns = 4; kd = 3; st = 1.5; ar = -45; module ring(cx, cy, bz, or, tk, ht){ translate([cx,cy,bz+ht/2]){ difference(){ cylinder(r = or, h = ht, center = true); cylinder(r = or-tk, h = ht+xw, center = true); } } } difference(){ translate([0,0,rh-x...
glb/cad_bbbfc3b426c3.glb
Create a Flat Spinning Top consisting of a weighted outer ring, a central support structure, and a pivot. Start by creating a thin outer ring with an outer radius of 35mm, a wall thickness of 3mm, and a total height of 7.5mm. At the center of this ring, place a vertical octagonal stand with a radius of 3mm and a height...
tr = 35; xw = 0.4; sh = 15; sr = 3; rh = sh/2; rw = 3; st = 3; sn = 8; for(i = [0:360/sn:360-360/sn]){ rotate([90,0,i]) translate([0,0,-st/2]) linear_extrude(height=st) polygon(points=[[-(tr-rw/2),0],[-(tr-rw/2),st],[-sh,st], [-sh/2,sh/2+st],[-sr/2,sr/2+st],[sr/2,sr/2+st], [sr/2,sr/2], [-sr/2,sr/2],[-sh...
glb/cad_b4632dbd1378.glb
Create a flat spinning top centered on the origin. Start by constructing a thick outer ring with an outer radius of 35mm, a wall thickness of 5mm, and a total height of 7.5mm. Inside this ring, create a solid circular base with a radius of 25mm and a height of 2mm. At the center of the model, place a vertical support...
tr = 35; xw = 0.4; sh = 15; sr = 3; rh = sh/2; rw = 5; st = 2; fw = 20; module ring(cx, cy, bz, or, tk, ht){ translate([cx,cy,bz]){ difference(){ cylinder(r = or, h = ht, $fn = 50); translate([0,0,-xw/2]) cylinder(r = or-tk, h = ht+xw, $fn = 50); } } } ring(0,0,0,tr,rw,rh+xw); translate([0,0,xw/2]) cy...
glb/cad_b51942aa3bbe.glb
Create a Flat Spinning Top by constructing a series of concentric and stacked geometric elements. Start with a main outer ring with an outer radius of 35mm, a wall thickness of 5mm, and a total height of 7.9mm. Inside this ring, at the center, place a vertical support stand consisting of a 16-sided prism with a radius ...
tr = 35; xw = 0.4; sh = 15; sr = 3; rh = sh/2; rw = 5; st = 2; fw = 15; module ring(cx, cy, bz, or, tk, ht){ translate([cx,cy,bz]){ difference(){ cylinder(r = or, h = ht, $fn = 50); translate([0,0,-xw/2]) cylinder(r = or-tk, h = ht+xw, $fn = 50); } } } ring(0,0,0,tr,rw,rh+xw); translate([0,0,xw/2]) cy...
glb/cad_cd6875a01d05.glb
Create a Flat Spinning Top consisting of a weighted outer ring and a central support stand. Start by constructing a thin outer ring with an outer radius of 38.5mm, a thickness of 1.6mm, and a height of 7mm. At the center of the ring, place a vertical support stand with a total height of 25mm. The stand should be a 16...
tr = 40; xw = 0.4; sh = 25; sr = 2; st = 2; fh = 7; rw = 6; rh = fh; intersection() { rotate_extrude($fn = 50) polygon(points=[ [(tr-1.5*rw),st],[fh*3+st,st], [fh+st,fh*2+st], [fh,fh*2+st], [sr/2,fh+sr/2+st], [sr/2,fh+sr/2], [fh,fh*2], [fh+st,fh+fh], [fh*3+st,0],[(tr-1.5*rw),0] ]); transl...
glb/cad_1014a9ee686c.glb
Create a Flat Spinning Top consisting of a weighted outer ring and a spoked center. Start by creating a main outer ring with an outer radius of 40mm, a height of 6mm, and a wall thickness of 6mm. Inside this ring, remove material to create a hollow center, leaving a solid circular rim. At the center of the ring, place...
use <../pathextrude/path_extrude.scad>; length=8; D=6; P=1; ND=10; H=sqrt(3)/2 * P; R=H/(P/2); ppr=31; loops=length/P; xw=0.4; tr=40; st=1; rw=6; rh=6; myPoints = [ [H/4-xw/4-0.02*R+xw/2,-P/2+0.02], [H/4-xw/4-0.02*R,-P/2+0.02], [-1/2*H-xw/4,-P/8], [-1/2*H-xw/4,P/8], [H/4-xw/4-0.02*R,P/2-0.02], [H/4-x...
glb/cad_4b801a03d812.glb
Create a Flat Spinning Top consisting of a wide outer ring and a central hub connected by three radial spokes. The main body is a flat disc with a total radius of 60mm and a thickness of 2mm. At the center, create a hexagonal prism with a diameter of 17mm (measured across the flats) and a height of 16mm, centered withi...
use <../pathextrude/path_extrude.scad>; length=8; D=10; P=1.5; ND=17; H=sqrt(3)/2 * P; R=H/(P/2); ppr=31; loops=length/P; xw=0.4; tr=60; st=2; rw=8; rh=8; myPoints = [ [H/4-xw/4-0.02*R+xw/2,-P/2+0.02], [H/4-xw/4-0.02*R,-P/2+0.02], [-1/2*H-xw/4,-P/8], [-1/2*H-xw/4,P/8], [H/4-xw/4-0.02*R,P/2-0.02], [H/...
glb/cad_29f513b87a93.glb
Create a servo wheel with a total height of 6mm and an outer radius of 26.5mm. The main body is a cylinder with a height of 6mm and a radius of 26.5mm. Remove a toroidal section from the center to create a groove for an O-ring; this groove is defined by rotating a square with a side length of approximately 2.12mm aroun...
rh_diam1 = 8; rh_diam2 = 21; rh_height = 6; rh_plate_height = 2; module raw_wheel(or_idiam=50, or_diam=3, h=6) { r = or_idiam/2 + or_diam; l = or_diam*sqrt(2)/2; difference() { cylinder (r=r, h=h, $fn=100,center=true); rotate_extrude($fn=100) translate([r-or_diam/2,0,0]) polygon( [ [0,0...
glb/cad_b20879ddf5e9.glb
Create a Vesa cable ladder for cable management. The main body consists of two parallel side rails, each 110mm long, 3mm wide, and 20mm high. Connecting these rails are a series of rungs spaced every 3mm along the 100mm span between the rails. Each rung is a composite shape: a central rectangular block 10mm wide, 50mm ...
ladder(); translate([-40,-5,15/2]) rotate([90,0,0]) clamp(); translate([-40,30,15/2]) rotate([90,0,0]) clamp(); module clamp() { height=20; width=15; thickness=7; difference() { hook(); hole(); } module hole() { translate([0,0,-0.5]) cylinder(d=5, h=thickness+1); } module hook() { translate([-15...
glb/cad_c1b8e6d66261.glb
Create a rectangular electronics box for the Ardubot robot with a width of 65mm, a length of 55mm, and a height of 30mm. The box should have rounded corners with a radius of 4mm. The side walls and the bottom floor should have a thickness of 2.4mm. Inside the box, create a large rectangular cutout to hollow out the ce...
use <build_plate.scad> _part = "box"; _width = 65; _length = 55; _height = 30; _rounding = 4; _minimumWallThickness = 2.4; _sidewallThickness = 2.4; _horizontalThickness = 2.4; _magnetDiameter = 3.2; _magnetHeight = 2.2; _hingeGap = 0.3; distanceBetweenHoles = 30; screwHoleSize = 3.5; holeDistanceFromBack =...
glb/cad_6b5e7fb7f993.glb
Create a grid plane with a brick layout consisting of intersecting rectangular bars. The structure is composed of two sets of repeating walls, each with a thickness of 1mm and a height of 1mm. First, create a series of vertical walls, each 11mm long and 1mm wide, arranged in 11 rows. In every even-numbered row (startin...
module vertical_wall(x,y,length) { translate([x+length/2,y+0.5,0]) cube([length,1,1],center=true); } module horizontal_wall(x,y,length) { translate([x+0.5,y+length/2,0]) rotate([0,0,90]) cube([length,1,1],center=true); } union(){ alternate = 0; for (row = [0:10]) { ...
glb/cad_1b7233c45716.glb
Create a set of geometric alphabet block components with a consistent thickness of 2mm. First, create a component centered at [35, 0, 0] by starting with a rectangular slab measuring 6mm by 13.86mm (6 divided by sin(60) times 4) by 2mm. From this slab, remove two rectangular sections: one measuring 18mm by 12mm by 2.25...
tk = 2; wd = 6; xw = 0.25; translate([35,0,0]) union() { difference() { cube([wd,wd*4 / sin(60),tk], center = true); translate([-wd/2,wd*2 / sin(60),0]) rotate([0,0,-30]) translate([wd,wd,0]) cube([wd*3,wd*2,tk+xw], center = true); translate([-wd/2,-wd*2 / sin(60),0]) rotate([0,0,-60]) translate([wd,wd,0]...
glb/cad_f89b017788ad.glb
Create a reel holder consisting of a central circular base and a protruding rectangular arm. Start by constructing a cylinder with a diameter of 58mm and a height of 6mm. From this cylinder, remove a smaller concentric cylinder with a diameter of 50mm and a height of 5mm to create a ring. Cut a rectangular slot through...
difference() { cylinder(6,29,29); cylinder(6,25,25); translate([-25,0,0]) cube([50,30,6]); } translate([25,0,0]) cube([4,30,6]); translate([-29,0,0]) cube([4,30,6]); translate([-3,-125,0]) cube([6,100,6]);
glb/cad_bfbfec77fd20.glb
Create a reel holder by starting with a central cylindrical ring that has an outer diameter of 58mm, an inner diameter of 50mm, and a height of 6mm. Cut a rectangular slot through the center of this ring, measuring 50mm in width and 30mm in depth, to create a U-shaped channel. Extend two rectangular arms from the outer...
difference() { cylinder(6,29,29); cylinder(6,25,25); translate([-25,0,0]) cube([50,30,6]); } translate([25,0,0]) cube([4,40,6]); translate([-29,0,0]) cube([4,40,6]); translate([-3,-75,0]) cube([6,50,6]);
glb/cad_cbcbbabc63c1.glb
Create a reel holder by starting with a hexagonal prism that is 30mm tall and has a diameter of 24mm. In the center of this prism, remove a vertical cylindrical hole with a diameter of 10.4mm that runs through the entire height. Around this central hole, create six identical rectangular slots radiating outward toward t...
difference() { cylinder(12,30,30,$fn=6); cylinder(12,5.2,5.2); scasso(); rotate([0,0,60])scasso(); rotate([0,0,120])scasso(); rotate([0,0,180])scasso(); rotate([0,0,240])scasso(); rotate([0,0,300])scasso(); } module scasso() { translate([-3.25,7,9]) cube([6.5,30,3]); translate([11,19,0])cylinder(13,2,2); }
glb/cad_b697e915971d.glb
Create a Parametric Nut Trap by starting with a cylinder that has a diameter of 21mm and a total length of 104.7mm. Slice this cylinder in half lengthwise to create a semi-cylindrical base. At a distance of 19.05mm from the left end, create a vertical hole with a diameter of 3.6mm that passes through the part. Around ...
NutSpacing=76.2; THNT_Dia=21; ires=96; M3Dia=3.6; M3_ires=24; M3NutDia=9.18; M3Nut_Ht=4.7; LtNutOffset=19.05; RtNutOffset=8.35; RotNut=0; Qty=1; Z_Origin=-2; Len=LtNutOffset+RtNutOffset+NutSpacing; echo("Len = ",Len); RtNut_X=Len-RtNutOffset; Cube_z=(Z_Origin + 30)* (-1); module Base() { difference() ...
glb/cad_36f8a0b0ad5d.glb
Create a paraboloid with a height of 50mm and a focal distance of 10mm. The shape is generated by rotating a parabolic curve around a central vertical axis. Position the model so that the focus point is centered at the origin. The resulting geometry should be a smooth, bowl-like solid with a circular top face and a cur...
y=50 ; f=10; fc=1; rfa=0 ; detail=120; module paraboloid (y, f, rfa, fc, detail){ hi = (y+2*f)/sqrt(2); x =2*f*sqrt(y/f); translate([0,0,-f*fc]) rotate_extrude(convexity = 10,$fn=detail ) translate([rfa,0,0]) difference(){ union(){ projection(cut = true) translate([0,0,f*2]) rotate([45,0,0]) ...
glb/cad_c12d73998572.glb
Create two identical i3 z-axis-top separators. For each separator, start with a rectangular block measuring 38mm in length, 16mm in width, and 1.5mm in thickness. Cut a 10mm by 10mm square notch out of one corner of the block, oriented at a 135-degree angle relative to the length, to create a chamfered edge. Drill two ...
sep = 1.5; module z_top_sep_base() { difference() { cube([38,16,sep]); translate([5,-1,-1]) rotate([0,0,135]) cube([10,10,2+sep]); } } module z_top_sep_holes() { translate([9,10,-1]) cylinder(r = 1.8, h = 2+sep, $fn = 10); translate([29,10,-1]) cylinder(r = 1.8, h = 2+sep, $fn = 10); } module z_top_...
glb/cad_a3bfd085e407.glb
Create a Breabody Award trophy consisting of a cylindrical base and decorative text. Start by creating a main cylinder with a radius of 40mm and a height of 80mm. At the top of this cylinder, add a smaller cylindrical stub with a radius of 20mm and a height of 20mm. Within this top stub, create a horizontal cylindric...
include <OpenScadFont.scad> scale=1; medalRadius=50*scale; height=80*scale; radius=40*scale; stubSize=20*scale; showMedal=false; if(showMedal==true) translate([0,0,height+medalRadius]) rotate([90,0,0]) scale(scale) import_stl("BreabodyAward_fixed.stl"); cylinder(h=height,r1=radius,r2=radius); translate([0,0,heig...
glb/cad_011ff9716ab8.glb
Create a Polyhedral Corner Joint designed to connect tubes at the vertices of a dodecahedron. The joint consists of a central hub with three radiating arms. Each arm is a hollow cylindrical sleeve with an outer radius of 6.15mm and a wall thickness of 2mm. The sleeves are designed to hold tubes with a radius of 4.95mm...
shape = 4; number_of_tubes = 5; support = 0; tuberadius = 4.95; depth = 30.0; thick = 2.0; gap = 0.2; magrad = 3.1; magthick = 3.2; taper = 1.0; tabheight = 7.0; tabthick = 3; boltheaddiam = 7.0; boltdiam = 2.7; natdiam = 5.0; natdig = 1.0; index = (shape==2)?4:(shape==5)?5:3; cor...
glb/cad_34db766b04d9.glb
Create two identical wedges designed to round a motor shaft. For each wedge, start with a cylinder that has a radius of 2.5mm and a length of 20mm. Position the cylinder so its length runs along the Z-axis. From this cylinder, remove a centered rectangular block with a width and depth of 9mm and a height of 4.5mm to cr...
round_dia=5; flat_dia=4.5; h=20; r1 = round_dia/2; module wedge() { difference() { translate([0, 0, r1-flat_dia]) rotate([90, 0, 0]) cylinder(r=r1, h=h, $fn=64); translate([0, 0, -flat_dia]) cube([50, 50, flat_dia*2], center=true); } } wedge(); translate([round_dia+.2, 0, 0]) wedge();
glb/cad_6dac554bfeb1.glb
Create a hand catapult with a total length of 140mm and a handle length of 80mm. The main body is a Y-shaped frame with a thickness of 11mm. Start with a central handle that extends linearly. At the top of the handle, the structure splits into two symmetrical arms that angle upwards and outwards at 60-degree interval...
a=0; b=-5; c=11; e=21; f=20; g=4; h=6; minkowski(){ difference(){ union(){ intersection(){ translate([0,60-30-2*c+b,0]) cube([200,60,42],center=true); union(){ rotate(-f) translate([c-b,-0.01,0]) cube([c,100,c]); rotate(f) translate([-2*c+b,-0.01,0]) cube([c,100,c]); difference(){ union(){ cylind...
glb/cad_88e693ac7a6e.glb
Create a country toilet model in H0 scale. Start by building a main rectangular body that is 17.2mm wide, 10.2mm deep, and 10.1mm tall. On top of this body, place a flat rectangular roof measuring 22.3mm by 22.3mm with a thickness of 0.76mm. Inside the main body, create a vertical cylindrical void with a radius of 2....
scale([2.53,2.53,2.53]) acoperis(); scale([2.53,2.53,2.53]) translate([0.5,6.25,0.7]) scale([1.2,0.6,1.05]) usa(); scale([2.53,2.53,2.53]) difference(){ union(){ wc_plin(); } translate([0.35,0.35,0.6]) scale([0.9,0.9,1.2]) wc_plin(); translate([0.35,5.5-0.3,0.6]) scale([1.27,2.2,1.2]) usa_plina(); } scale([2.53,...
glb/cad_6c9c4310cbb9.glb
Create a blower kit consisting of two separate components: a hose holder and a push fitting. First, construct the hose holder by creating a central cylinder with a height of 35mm and a radius of 12mm. Remove a central cylindrical core with a radius of 10mm and a height of 25mm. From the side of this main cylinder, ad...
$fn = 30; tube_diameter = 16.00; module ring(size, thickness) { rotate_extrude(convexity = 10) { translate([size, 0, 0]) circle(r=thickness); } } module m20_push_fitting() { r1 = 10-0.1; h1 = 10; difference() { union() { translate([0, 0, h1/2]) ring(r1-...
glb/cad_a975f9754215.glb
Create a 2D robot figure with a uniform thickness of 2mm. The central body is a rectangle 30mm wide and 45mm high. At the top of the body, center a head consisting of a 20mm wide by 15mm high rectangle, connected to the body by a 5mm wide neck that is 5mm high. Within the head, create two circular eyes (one with a 3m...
NOFLIP = 1; FLIP = -1; tolerance = .3; display = 0; fliphead = NOFLIP; fliplegs = NOFLIP; flipleftarm = FLIP; fliprightarm = FLIP; 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=18; ...
glb/cad_640f93d8110e.glb
Create a wind anemometer mount consisting of a main cylindrical body and a supporting ring. Start by creating a vertical cylinder with a height of 20mm and an outer diameter of 72mm. Remove a concentric inner core from this cylinder with a diameter of 68.2mm to create a hollow tube. Position a horizontal cylinder wit...
difference(){ union(){ cylinder(20,36,36,$fn=130); rotate([90,0,0]) translate([0,8,30]) cylinder(120,10,10,$fn=130); } translate([0,0,18]) cylinder(20,34.1,34.1,$fn=130); translate([0,0,-4]) cylinder(30,33,33,$fn=130); rotate([90,0,0]) translate([0,8,15]) cylinder(200,6,6,$fn=130); translate([-100,-250,-20]) cube([...
glb/cad_8504a9433358.glb
Create a motor mount for an anemometer by starting with a main cylindrical body that is 34mm in diameter and 13mm high. Hollow out the center of this cylinder with a concentric hole 32mm in diameter and 16mm deep. At the center of the base, add a small vertical hole 3.5mm in diameter and 16mm deep to accommodate the ...
difference(){ union(){ cylinder(13,34,34,$fn=130); } translate([0,0,2]) cylinder(16,32,32,$fn=130); translate([0,0,-1]) cylinder(16,3.5,3.5,$fn=130); translate([8.25,0,-1]) cylinder(16,1,1,$fn=130); translate([-8.25,0,-1]) cylinder(16,1,1,$fn=130); translate([0,18,-1]) cylinder(16,12,12,$fn=130); translate([6,16,-...
glb/cad_9ca02d69631b.glb
Create an anemometer turbine consisting of a central hub and radiating blades. Start by creating a central cylinder with a diameter of 20mm and a height of 13mm. Remove a smaller concentric cylindrical hole from the center with a diameter of 2mm and a height of 15mm to allow for a motor shaft. Construct eight identica...
difference(){ union(){ cylinder(13,10,10,$fn=130); rotate([60,0,10]) translate([0,0,0]) cube([30,15,1]); rotate([-60,0,10]) translate([-30,-15,0]) cube([30,15,1]); rotate([60,0,100]) translate([0,0,0]) cube([30,15,1]); rotate([-60,0,100]) translate([-30,-15,0]) cube([30,15,1]); rotate([60,0,55]) translate([0,0,0]...
glb/cad_a5acc3f0f0da.glb
Create a Rotary Washing Line Center Bracket. Start by constructing a hollow cylindrical collar with an inner diameter of 32.5mm, an outer diameter of 40.5mm, and a height of 32mm. Add a base lip to the bottom of this cylinder that extends the outer diameter to 40.5mm with a thickness of 8mm. In this base lip, remove th...
$fn=100; centerPoleDia = 32.5; collarHeight = 32; armPoleDia = 16; boltHoleDia=4; t = 4; 2t = t * 2; collar(); for(i=[0, 120, 240]) rotate([0, 0, i]) translate([centerPoleDia / 2, 0, 0]) armClip(); module armClip() { for(i=[0, 1]) mirror([0, i, 0]) translate([0, -0.5 * armPoleDia, 0]) rotate([90, 0, 0]) li...
glb/cad_afccec4855e6.glb
Create a Tumbler Tag designed to clip onto a glass. The object is a 10mm wide extruded shape with a total height of 15mm. The cross-section consists of a symmetrical outer shell with a wall thickness of 1mm. The interior of the tag is a tapered slot designed to fit a glass with a maximum thickness of 2.5mm and a minimu...
GLASS_MAX = 2.5; GLASS_MIN = 0.5; HEIGHT = 15; WIDTH = 10; WALL = 1; RADIUS = (WALL-0.1)/2; linear_extrude(height=WIDTH) { union() { halfed_outline(GLASS_MAX, GLASS_MIN, HEIGHT*0.7, RADIUS, WALL); mirror([1,0,0]) { halfed_outline(GLASS_MAX, GLASS_MIN, HEIGHT, RADIUS, WALL); } } } module halfed_outline(max, ...
glb/cad_8068c50b4d80.glb
Create a 15x30 extrusion profile with a total height of 10mm. The profile is based on a complex 2D cross-section that is mirrored and repeated across four quadrants of a central axis to create a symmetrical, structural beam. The cross-section features a central rectangular void and thick outer walls. The outer perimet...
extrusion_profile_15x30 (10); module extrusion_profile_15x30(height=10) { linear_extrude(height=height) { union() { ep_15x30_part_smooth(); rotate([0,180,0]) ep_15x30_part_smooth(); rotate([0,0,180]) ep_15x30_part_smooth(); rotate([180,0,0]) ep_15x30_part_smooth(); } } } module ep_15x30_part_smooth(...
glb/cad_37297b790e23.glb
Create a Reuleaux polygon construction keyring by arranging three identical rings in a circular pattern. Each ring must have an outer diameter of 29.5mm, an inner diameter of 25.5mm, and a thickness of 3mm. Position the rings so that their centers are located 7mm from the overall center of the assembly, spaced evenly a...
$fa=1/1; $fs=0.5/1; circle_diameter=28; keyring_thickness=3; ring_thickness=2.5; number_of_circles=3; offset=ring_thickness/2; circle_r=circle_diameter/2; circle_a=360/number_of_circles; for(a=[0:circle_a:359]) { rotate([0,0,a]) translate([circle_r/2,0,0]) difference() { cylinder(r=...
glb/cad_629f410487ef.glb
Create a GoPro Tube Clamp with a quick-release buckle mount. Start by creating a cylindrical clamp designed to fit a 44mm diameter tube. The clamp should have a wall thickness of 8mm and an overall width of 12mm. Cut the clamp into two halves. On each side of the clamp, create a 4.5mm diameter bolt hole. For the top ...
build_mode = 0; mount_type = 2; mount_rotate =90; mount_rotate_side = 90; gopro_buckle_centered = 0; gopro_mount_height = 8.5; gopro_buckle_height = 1* 10; gopro_buckle_length = 23.5; gopro_buckle_notch_width = 3.75; clamp_tube_diameter=44; clamp_thickness =8; clamp_width = 12; clamp_top_hole_style = 2; cl...
glb/cad_ad06d90087c1.glb
Create a BeagleBone Black case by starting with a rounded rectangular box. The outer dimensions are 69.5mm wide by 99.5mm high with a depth of 20mm. The walls and base should be 6.5mm thick, with the interior hollowed out to leave a 2mm base. The corners of the main body should have a radius of 10mm. On the bottom sid...
wall_thickness=6.5; base_thickness=2.0; bb_depth=20; bb_width=56.5; bb_height=89.5; bb_curve_corner=10; peg_pow_front=16.5; peg_pow_side=3.5; peg_sd_front=7; peg_sd_side=7; peg_outer_radius=2.8; peg_inner_radius=2.0; module RoundedBB(extra_width,extra_height,depth,curve=bb_curve_corner) { minkowski() { cube([bb...
glb/cad_2b4d5709238f.glb
Create a BeagleBone Black case lid by constructing a rounded rectangular plate. The main body should be 56.5mm wide, 89.5mm high, and 2mm thick, with corners rounded to a 4mm radius. To create the lip that holds the board, add a perimeter wall around the top face that is 6.5mm thick and 2.5mm high. This wall should f...
wall_thickness=6.5; base_thickness=2.0; bb_depth=20; bb_width=56.5; bb_height=89.5; bb_curve_corner=10; bb_lid_thickness=2; bb_lid_depth=2.5; bb_lid_shrink=.5; corner_size=12; bat_width=32; bat_height=64; bat_depth=8; bat_wall=5.0; bat_ceil=2.0; module RoundedBB(extra_width,extra_height,depth,curve=bb_curve_corner,...
glb/cad_c94acbe7c514.glb
Create a Parametric Data Cable Maker consisting of a header shell and an optional strain relief shell. First, construct the main header shell as a rectangular box with a height of 10mm and wall thickness of 1mm. The outer dimensions are determined by the number of pins (default 8) and the header size (2.5mm), resulti...
pins=8; doubleColumn=0; wireSeparators=1; height=10; wallThickness=1; header=2.5; type=0; indicatorBump=1; indicatorSide=1; nozzleDiameter=0.5; strainRelief=1; cableRadius=2.85; strainHeight=20; cutAdjustmentX=-0.2; cutAdjustmentY=-0.2; outerBodyX=(2*wallThickness)+header+nozzleDiameter; outerBodyY=(2*wal...
glb/cad_10f3512c500e.glb
Create a Bash Guard Chainring by starting with a solid cylindrical base 9mm high with a radius of 74.5mm. On top of this base, add a second cylindrical section that rises further, tapering outwards from a radius of 47.5mm at the bottom to a radius of 60mm at the top. Remove a central cylindrical hole with a radius of ...
bolt_head = 9; bolt_height = 4; Wall_w = 3; base_h = 3; outer_base = 5; rise = 4; BCD = 104; teeth_num = 32; outer_r = teeth_num * 12.7 / 3.14159 / 2 + 10; echo("outer_r",outer_r); center_r = BCD / 2 - bolt_head; echo("center_r",center_r); cutout_x = min((outer_r * 2 - 30), 50000); echo ("cutout", cutout_x); cuto...
glb/cad_239cc1444931.glb
Create a cable guide consisting of a circular base and a curved retaining loop. Start with a cylindrical base 12mm in diameter and 2.5mm high. Centered within this base, create a vertical hole 4.2mm in diameter that passes completely through the object. On top of the base, construct a semi-cylindrical loop with an inn...
bolt_hole = 4.2; cable_hole = 9; rise = 2.5; thickness = 1; gap = 2.5; $fn = 60; module tabs() { cylinder(h = rise , r = 6 ); translate([-6,0,0]) hull() { cube([12,8,rise]); translate([0,12-1,rise - thickness])cube([12,1,thickness]); } translate ([0,0,rise + gap]) { translate([-6,0,0])cube([12,12 -...
glb/cad_e7425ea84e31.glb
Create a Tamiya LiPo battery holder consisting of a base plate and an integrated monitor case. First, construct a base plate measuring 39mm by 43.5mm with a thickness of 2mm. On this plate, create a battery lock mechanism designed to be inserted from the top. This lock features three cylindrical lugs with a diameter ...
plate_dim = [39, 43.5, 2]; case_dim = [26, 36, 12]; case_thickness = 1.5; wire_clip_dim=[1.5, 8, case_dim.z+2*case_thickness]; brim = true; $fa = 1; $fs = 0.3; lipo_battery_lock(); module print_part_a() { translate([0, 25, plate_dim.y]) rotate([-90, 0, 0]) difference() { li...
glb/cad_ad039a05e446.glb
Create a Customizable Drill Bit Handle. Start with a main body consisting of a cylinder 65mm long with a diameter of 15mm, topped with a hemisphere of the same 15mm diameter. Bore a central hole through the center of the cylinder and hemisphere to accommodate a drill bit, with a diameter of 3mm and a depth of 20mm. On...
Drill_Bit_Diameter_Units=1; Drill_Bit_Diameter=3; Drill_Bit_Length=20; Handle_Length=65; Handle_Diameter=15; Set_Screw_Diameter=3; Set_Screw_Nut_Thickness=3; Set_Screw_Nut_Diameter=5.5; Number_of_Nut_Traps=2; Resolution=25; db_d=Drill_Bit_Diameter; hl=Handle_Length; hd=Handle_Diameter; db_l=Drill_Bit_Length; ...
glb/cad_d0ccb9a8d07b.glb
Create two distinct backplates for a sidemount harness, both with a thickness of 5mm. First, create the dorsal plate. Start with a hull shaped by the positions of its slots, then subtract the following: two webbing slots rotated 20 degrees, one on the left and one on the right; a long central slot rotated 53 degrees a...
$fn = 100; thickness = 5; base = 50.8; slot = 4.45; lumbar(); module dorsal() { scalex = 1.7; scaley = 1.7; slotrot = 20; hole_radius = 3.5; difference() { dorsal_hull(scalex, scaley, slotrot); dorsal_slots(scalex, scaley, slotrot); translate([0,-scaley*base*0.22,-thickness])cylinder(r=hole_radius,h=thick...
glb/cad_a4ae0fa9f364.glb
Create two distinct plates, a dorsal plate and a lumbar plate, both with a thickness of 5.5mm. For the dorsal plate, create a hull based on a central layout of webbing slots. The plate is roughly hexagonal with rounded corners. Subtract six circular holes with a diameter of 8.6mm: one at the center-low position, one a...
$fn = 100; thickness = 5.5; base = 50.8; slot = 4.45; translate([0,150,0])dorsal(hole_diameter = 8.6); lumbar(); module dorsal(hole_diameter = 7) { scalex = 1.7; scaley = 1.7; slotrot = 20; hole_radius = hole_diameter/2; difference() { dorsal_hull(scalex, scaley, slotrot); dorsal_slots(scalex, scaley, slot...
glb/cad_34c7a5d2fa42.glb
Create a BCD dump valve pull handle by starting with a sphere with a radius of 15mm. Modify this sphere by carving out nine equidistant, thin slots that radiate from the center to the surface, each slot being a rectangular cutout with a width of 30mm and a height of 3.75mm, rotated every 30 degrees around the Z-axis. T...
$fn=200; ballradius = 15; difference() { translate([0,0,ballradius-ballradius/5])slotsphere(r=ballradius); translate([0,0,-ballradius])cube([ballradius*10,ballradius*10,ballradius*2], center=true); translate([0,0,ballradius])cylinder(r=ballradius/4,h=ballradius*2); translate([0,0,-ballradius/2])cylinder...
glb/cad_3531fa36ef6e.glb
Create a Mendel 90 pen holder consisting of a base plate and a vertical cylindrical housing. Start with a base plate formed by the union of a rectangular block measuring 16mm x 64mm x 6mm and a cylinder with a 17mm radius and 6mm height, both centered. On top of this, add a vertical cylinder with a radius of 8.5mm and ...
pen_diameter = 13; $fn=120; topbottom_mutter=5.5; carriage_mutter=7; top(); module top() { difference() { union() { cube([16, 64 ,6], center=true); cylinder(r = 34/2, h=6, center=true); translate([0, 0, 18]) cylinder(r = 17/2, h=30, center=true); translate([0, 0, 27]) elastic_clip(); translate([0,...
glb/cad_75ef21d998e4.glb
Create a Mendel 90 pen holder consisting of a base plate and a conical vertical sleeve. Start with a rectangular base plate measuring 40mm in length, 20mm in width, and 7mm in height. Centrally on this plate, construct a vertical cylindrical sleeve. The main body of the sleeve is a cylinder with an outer diameter of ...
$fn=100; pen_diameter = 9.6; pen_diameter_spitze1=pen_diameter; pen_diameter_spitze2=5; platte_l=34.5; platte_w=18; wall=2; bottom(); module bottom() { difference() { union() { cylinder(d=pen_diameter+2*wall, h=34); translate([0, 0, 34-0.01]) cylinder(d1=pen_diameter+2*wall, d2=pen_diameter_spitze2+2*wall, h...
glb/cad_07d6c1c1f519.glb
Create a 3D model of a text object that reads "Sample" using the Times New Roman font. The text should have a size of 10mm and be extruded to a total height of 2mm. To give the letters a rounded, thickened appearance, apply an offset of 1mm to the font outlines before extruding. Center the resulting text geometry so th...
Font="Times New Roman"; Offset=1; Spacing=1; Text="Sample"; TextSize=10; X=20; Z=2; for(i=[1:10]){ color([i%2,i%2,i%2])translate([(i-1)*10,-1,-1])cube([10,1,1]); color([i%2,i%2,i%2])translate([-1,(i-1)*10,-1])cube([1,10,1]); color([i%2,i%2,i%2])translate([-1,-1,(i-1)*10])cube([1,1,10]); } color( [0,0,1] ) transla...
glb/cad_0a91e15a294d.glb
Create two identical drill guide blocks for a Z-axis pipe. For each block, start with a rectangular base measuring 14.9mm thick (half the pipe diameter plus 5mm) by 33.8mm wide (pipe diameter plus two 5mm walls) by 103.6mm long. Carve a semi-cylindrical channel along the entire length of the block with a diameter of ...
NutSpacing = 76.2; NutSpacing2 = 28; DrSize = 3.8; OD = 23.8; Thickness = 5; Wall_Thk = 5; Pipe_res = 108; Hole_res = 24; LtNutOffset = 19.05; RtNutOffset = 8.35; Cl_Wid = 6; Num_Holes=2; Qty = 2; MidNutOffset = LtNutOffset + NutSpacing2; echo("MidNutOffset = ", MidNutOffset); TotCenGap=NutSpacing - DrSize...
glb/cad_9cd828c4989a.glb
Create an electric screwdriver bit for studding bolts. Start by constructing a hexagonal shank with a circumradius of approximately 3.52mm and a total height of 18mm. The bottom 12mm of this shank should be slightly rounded at the base, transitioning into a cylindrical section. Above the shank, build a main body with...
module hexagon(circumradius) { a = circumradius; b = circumradius / 2; c = b * sqrt(3); polygon(points=[[a,0], [b,c], [-b,c], [-a,0], [-b,-c], [b,-c]], paths=[[0,1,2,3,4,5]]); } shankHeight = 12; shankRoundingHeight = 1; indiameter = 6.3 - .15; inradius = indiameter / 2; circumradius = 2 * inradius / sqrt(3); ...
glb/cad_99833a82afd3.glb
Create a cafe chair foot with a total height of 31mm. The main body is a revolved shape with a wide circular base of 62mm in diameter and a top diameter of 30mm. The profile should taper upward, with a slight outward lip at the bottom 1.5mm. Tilt the entire geometry by approximately 10 degrees. Carve a central vertica...
InnerDia=27 ; Height=31 ; Skew=10 ; module StraightFoot() { union() { difference() { Outershape(BotDia=62,TopDia=30,Hgt=Height) ; union() { translate([0,0,15]) cylinder(d=InnerDia,h=Height) ; translate([0,0,17]) sphere(d=InnerDia); } ...
glb/cad_b38a4d369d3f.glb
Create a protective electronics box for the 5-band MTR HF transceiver consisting of a bottom basin and a matching lid. The bottom basin is a rounded rectangular shell with outer dimensions of 102.2mm by 78.2mm and a total height of 19mm. The walls are 1.2mm thick. The interior floor is recessed to accommodate a print...
$fs=0.01; in=25.4; nozzle_dmr=0.4; gap_horizontal=0.2; gap_vertical=0.1; wall_thickness=3*nozzle_dmr; min_wall_thickness=2*nozzle_dmr; top_wall_thickness=2*min_wall_thickness+gap_horizontal; board_width=3.75*in; board_height=2.8*in; board_thickness=2; electronics_height=9; board_standoff=4; standoff_r_inner=1;...
glb/cad_347ce81abd37.glb
Create the Rainbow Apparatus, a cylindrical optical device. Start by constructing a circular base with a diameter of 110mm and a height of 23.65mm. Within this base, create a central spindle and a recessed electronics bay measuring 11.15mm wide, 17.44mm high, and 3.65mm deep. Above the base, position a circular projec...
what_to_render = "preview"; apparatus_height = 100; support_thickness = 3; support_tab_depth = 10; eyeguard_radius = 37; use_bay = "yes"; bay_width = 11.15; bay_heigth = 17.44; bay_depth = 3.65; b...
glb/cad_9b34e0b8bb12.glb
Create a customizable drying rack consisting of a circular platform with a grid pattern and supporting pillars. Start by creating a thin circular rim with an outer diameter of 130mm and a thickness of 2mm. The rim itself should have a wall width of 3mm. On the top surface of this platform, construct a square grid of i...
outerDiam = 130; rimRad = outerDiam/2; rimWidth = 3; rackHeight = 2; gridSpacing = 10; extrusionWidth = 0.37; gridWidth = 4; pillarWidth = 5; pillarHeight = 25; numBars = floor(outerDiam/2/gridSpacing); $fn = 50; difference() { union() { translate([0,0,rackHeight/2]) { diffe...
glb/cad_393aa53afd03.glb
Create a Prusa i3 foot consisting of a base plate and a vertical tower. Start with a rectangular base plate measuring 50mm in length, 50mm in width, and 10mm in height. Round the four corners of this base with a radius of 6mm. On the top surface of the base, create a rectangular cutout measuring 22.25mm by 18.1mm, cent...
length_x=50; width_y=50; height_z=10; tower_x=22.25; tower_y=18.1; tower_height=37; mount_hole=3.6; mount_hole_cutout=8.4; mount_hole_inset=10; square_cube_size=6; slope=11.25; diameter_threadrod_x=8.4; diameter_solidrod_x=8.4; diameter_rod_y=8.4; washer_diameter=diameter_threadrod_x+8; washer_thickness=1.5; height_low...
glb/cad_67c2eb21ac43.glb