Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a filament spool holder consisting of a triangular base with a central hole. Start by creating a right triangular prism with a height of 8mm and a radius of 40mm, using only 3 facets to form an equilateral triangular profile. In the center of this base, create a vertical cylindrical hole with a radius of 10mm an...
module rodamiento() { cylinder(h=6, r=12); cylinder(h=8, r=10); } module guia() { difference() { cylinder(r=31, h=4); cylinder(r=29, h=4); } } module portacarrete_PLA(h=8, r=40) { difference() { difference() { cylinder(h=h, r=r, $fn=3); translate([0, 0, h/2]) guia(); } rodami...
glb/cad_42d2b71a0077.glb
Create an egg tray consisting of a flat square base with four hemispherical indentations. Start by creating a solid square plate measuring 100mm by 100mm with a thickness of 2mm. In this plate, arrange four egg-shaped pockets in a 2x2 grid. Each pocket is formed by a sphere with a radius of 22mm that has been scaled ve...
width=100; lenght=100; thickness =2; eggsize = 42; rows=2; col=2; rotate([0,180,0]){ difference() { union() { for (y=[0:rows-1]){ for (x = [0:col-1]){ translate([(lenght/col)*x, (width/rows)*y, 0]) scale([1,1,1.5])sphere((eggsize/2)+thickness/2); } } translate([-eggsize/2-thickness,-eggsize/2-thickness,0]) minkowsk...
glb/cad_bab053e9ed63.glb
Create a customizable hollow churro nozzle. Start by constructing a tapered outer body that transitions from a base diameter of 49mm to a top diameter of 39mm over a total height of 2mm. The base is a flat disc 1mm thick, and the top section is a frustum 1mm tall. Cut a star-shaped void through the center of the body ...
diam=[49,43,39]; hs=[1,2]; $fn=36*3; a=0.01; module ciego(H0,H1,D0,D1,D2) { d0=undef==D0?diam[0]:D0; d1=undef==D1?diam[1]:D1; d2=undef==D2?diam[2]:D2; h0=undef==H0?hs[0]:H0; h1=undef==H1?hs[1]:H1; cylinder(h=h0,r=d0/2); hull() { translate([0,0,h0]) cylinder(r=d1/2,h=a); translate([0,0,h1...
glb/cad_1a57f7dce7c4.glb
Create a GoPro Hero3 Frame Mount. Start with a main rectangular frame measuring 62.45mm in width, 45.15mm in depth, and 21.2mm in height. Hollow out the center with a rectangular cavity measuring 59.2mm by 41.9mm by 21.2mm. On the bottom face, create a central gap 3mm wide and 32mm long. On the left side, remove a cy...
gpx = 59.2; gpy = 41.9; gpz = 21.2; gpww = 3.25; kpr = 10.0; difference() { translate([0,0,0]) { cube([gpx+gpww,gpy+gpww,gpz],center=true); } translate([0,0,0]) { cube([gpx,gpy,gpz],center=true); } translate([0,-22.5,0]) { cube([3,4,32],center=true); } translate([-30,-10.5,0]) { rotate([0,90,0]) ...
glb/cad_c2845ee42a9a.glb
Create a fairy-sized chair by combining three rectangular prisms. Start with a seat that is a 20mm by 20mm square with a thickness of 5mm. Attach a backrest to the seat by placing a 5mm wide, 20mm deep, and 30mm tall rectangular prism vertically along one edge of the seat. Finally, add two armrests or legs by positioni...
module chair() { rotate(a=[90,0,90], v=[0,0,0])union () { cube([20,20,5]); cube([5,20,30]); translate([0,0,-15])cube([5,20,15]); translate([15,0,-15])cube([5,20,15]); } } module table() { cube([60,5,30]); translate([20,0,0])cube([5,30,30]); translate([35,0,0])cube([5,30,30]); } chair();
glb/cad_999d0db624a6.glb
Create a Bicycle Air Pump Hose Adapter consisting of a threaded bolt joined to a cylindrical socket. First, construct a male bolt with a diameter of 8mm and a length of 13mm, featuring a thread pitch of 0.75mm. This bolt should be centered on a vertical axis and have a 3.5mm diameter hole drilled through its entire len...
use <ISOThread.scad> threadlen = 10; airholediam = 3.5; overlap = 3; socketheight=10; socketouter=14; pitch=.75; facets = 60; translate([0, 0, -threadlen]) { difference() { union() { thread_out(8, threadlen+overlap, thr=facets); thread_out_centre(8.23, threadlen+overlap, $fn=fac...
glb/cad_07220bc2dfb5.glb
Create a hand hammered ball finial. Start with a sphere of 20mm radius, using a low facet count of 24 to give it a faceted appearance. To create the hammered texture, remove 250 small rectangular sections from the surface of the sphere by positioning cubes of 2mm by 10mm by 10mm at random rotations and offsets of 19.5m...
random_y=rands(0,360,250,342); random_z=rands(0,360,250,352); random_x=rands(0,360,250,365); difference() { union() { difference() { sphere(20, $fn=24); for (i = [ 0 : 250] ) { rotate([random_x[i],random_y[i],random_z[i]]) translate([19.5,-5,-5]) cube(size=[2,10,10],center=false); } } difference(...
glb/cad_bdf050ea1224.glb
Create a flea collar buckle as a rectangular plate measuring 30mm in length, 14.75mm in width, and 2mm in height. Cut two rectangular slots into the plate, each 3.7mm wide and 10.9mm long. Center these slots along the width of the plate, positioning one at each end. The slots should be placed such that there is a 5mm...
x = 30; y = 14.75; z = 2; slot_x = 3.7; slot_y = 10.9; slot_spacing_x = 5; slot_spacing_y = (y-slot_y)/2; hole_r = 1.5; tooth_count = 5; module buckle() { difference() { cube([x,y,z]); translate([x-slot_spacing_x,slot_spacing_y+slot_y/2,0]) cube([slot_x, slot_y, 10],true); translate([slot_spacing_x,slot...
glb/cad_55a39d23e7b0.glb
Create an alternative wheel for a B-Robot. Start with a main cylindrical disk 88mm in diameter and 6.25mm thick. Centered on this disk, add a hub that is 20mm tall and 20mm in diameter, featuring a 1mm chamfer on the bottom edge. Remove a central vertical hole through the hub and wheel with a diameter of 5.5mm. In th...
include <chamfer.scad> wheelDiam = 88; wheelWidth = 6.25; holeDiam = 23; holeQty = 6; holePCD = 55; hubDiam = 20; hubWidth = 20; shaftDiam = 5.5; grubDiam = 3.5; nutWidth = 6.25; nutThickness = 2.5; trimDiam = 40; trimThickness = 3; trimPostHeight = 3; hubPlugDiam = 15; hubPlugThickness = 3; $fn = 100; module basic_...
glb/cad_a250c3b47d1a.glb
Create an Automated Diverter Valve consisting of a top case, a central selector disc, and a bottom case. Construct the bottom case as a cylinder with a thickness of 2mm and a radius of 11.5mm. Add three outlet pipes, each 20mm long with an inner diameter of 7mm and a wall thickness of 0.5mm. These pipes should be angl...
control_via=0; case_thickness=2; exploded_view=true; show_control=true; show_top=true; show_selector=true; show_bottom=true; num_inlets=2; inlet_dia=10; inlet_len=25; inlet_angle=0; inlet_pipe_thickness=1; inlet_pipe_num_barbs=4; inlet_pipe_barb_height=1; inlet_pipe_barb_width=3; num_outlets=3; offPosition=true; out...
glb/cad_1d1c6fb7f3a9.glb
Create a wire stripper tool consisting of a main body and a protective cover. For the main body, create a rectangular base 3mm thick. Centered on this base, create a cutout for a razor blade that is 43mm wide and 12.6mm deep. Within this cutout, remove a central circular hole and two smaller circular holes positioned...
$fs=.1; $fa=1; width=2; thickness=3; blade=3; screw="outer"; handle=true; handle_length=50; handle_thickness=3; type="stripper"; if (type=="stripper"){ translate([5,0,0])wire_stripper(width, thickness, screw); translate([-50,0,0]) scraper_cover(thickness, width, 3, screw); } else if (type == "knife") { knife(thick...
glb/cad_68bb0038d7d6.glb
Create a square storage box for puzzles with outside dimensions of 55mm width, 55mm length, and 13mm height. The box should have a wall thickness of 2mm. The bottom and all four side walls are not solid; instead, they are constructed as a mesh of small square holes. To achieve this, create the panels by subtracting a...
box(55,55,13,2); module box(bw,bl,bh,th) { union() { sides(bw,bl,bh,th); frame(bw,bl,bh,th); } } module box_storage(bw,bl,bh,th) { marks = [[1,0,0],[1,2,0],[0,5,0],[0,3,0],[0,1,0], [1,6,0],[1,4,0],[2,5,0],[2,3,0],[2,1,0], ]; union() { sides(bw,bl,bh,th); frame(bw,bl,bh,th); translate([0,0,1.]) scal...
glb/cad_2d0714741d5d.glb
Create a set of geometric puzzles consisting of several polyomino pieces. Each piece is constructed from cubes with a side length of 10mm. The primary target is a 5x5 square grid (50mm x 50mm) to be filled by a combination of five tetrominos (4-square pieces) and one pentomino (5-square piece). Construct the followi...
picture(); module picture() { translate([-150,30,0]) view_ans_5(cpuz_2); translate([-50,30,0]) view_ans_6(apuz_5); translate([50,30,0]) view_ans_6(apuz_6); translate([-150,-60,0]) view_ans_6(apuz_7); translate([-50,-60,0]) view_ans_6(apuz_1); translate([50,-60,0]) view_ans_6(apu...
glb/cad_63da33e0199a.glb
Create a Customizable Hinge consisting of a central hinge mechanism and two flanking rectangular bars. First, construct the hinge mechanism along a central axis. The hinge is based on a radius of 1.5mm. Create a central section consisting of a cylinder with a radius of 1.5mm and a height of 5.33mm, flanked by two rec...
length = 20; height = 3; clearance = .7; gap = .6; $fn=24*1; border = 2*1; fudge = .01*1; corner = 0*1; hinge_radius = height/2; cone_height = 1.5*hinge_radius; rotate(90,[0,1,0]) translate([-hinge_radius,0,0]) hinge(); translate([0,hinge_radius+gap,0]) bar(); translate([0,-2*border-hinge_radius-gap,0]) bar();...
glb/cad_b372152a3622.glb
Create a two-part protective case for a TrigBoard v7 and battery. First, construct the base. Start with a rectangular plate measuring 70mm x 40mm x 2mm. On top of this plate, add a housing structure. This housing consists of a battery compartment measuring 60mm x 35mm x 6.5mm, and an adjacent board compartment measur...
$fn = 60; include <../screw_holes.scad> PLATE_X = 70; PLATE_Y = 40; PLATE_Z = 2; BATT_X = 60; BATT_Y = 35; BATT_Z = 6.5; BOARD_X = 25; BOARD_Y = 20.6; BOARD_Z = 10; BLOCK_X = 10; BLOCK_Z = PLATE_Z + BATT_Z + BOARD_Z; SLOT_Z = 2; SLOT_DZ = 3.0; SLOT_DEPTH = 1.5; CAP_WALL = 2.5; CAP_X = BLOCK_X + BOARD_X; CAP_Y = P...
glb/cad_8eb1c4d7062b.glb
Create a Customizable Screw Cap consisting of a wide circular base and a vertical stem. Start with a solid cylinder for the base that has a radius of 7.5mm and a height of 2mm. Centered on this base, add a vertical cylinder with a radius of 3.25mm and a height of 20mm. Cap the top of this stem with a hemisphere of the ...
stem_radius = 3.25; stem_height = 20; cavity_radius = 1.8; cavity_height = 22; base_radius = 7.5; base_height = 2; fillet_radius = 1.5; fin_width = 1; lowrez = 24; highrez = 60; $fn = highrez; module fin () { hull () { translate ([stem_radius,0,base_height]) sphere (r=fin_width/2, $fn=lowrez); translate ([base_radius...
glb/cad_c6c4ffbcd7f7.glb
Create a Prusa test vase by extruding a complex 2D profile vertically to a height of 100mm. The base profile is centered on the XY plane and consists of a central circle with a 17mm radius, combined with two additional circles of 20mm radius positioned 20mm away from the center along the X and Y axes. From this combine...
fn=60; slc=60; $fn=fn; module sh1() { translate ([0,20,0]) difference() { union() { circle (17); for (i=[0,2]) { rotate ([0,0,90*i]) translate ([20,0,0]) circle (20); } } for (i=[1,3]) { rotate ([0,0,90*i]) translate ([22,0,0]) circle (10); } } } module shp1() { linear_extrude(he...
glb/cad_a46c57117893.glb
Create a Customizable Hinge/Snap Cube Net consisting of five square frames connected by hinges and snaps. Each square frame has a side length of 20mm, a border width of 2mm, and a thickness of 3mm. The frames are arranged in a cross-like layout. For each frame, create a square ring with an outer dimension of 20mm and ...
length = 20; border = 2; height = 3; clearance = .6; gap = .6; space = .6; $fn=24*1; fudge = .01*1; hinge_radius = height/2; cone_height = 1.5*hinge_radius; corner = 0*1; poly_maker(sides=4); attach(type=1,side=1,sides=4); attach(type=1,side=2,sides=4); attach(type=1,side=3,sides=4); attach(type=1,side=4,sides=4...
glb/cad_27da49dba8cf.glb
Create a 3-point leveling component consisting of a cylindrical wheel. Start by creating a main cylinder with a diameter of 20mm and a height of 4mm. Centered on the top face of this cylinder, create a smaller concentric cylinder with a diameter of 10mm and a height of 7mm. To create the mounting and adjustment featu...
e=2; $fn=200; dvis=3.3; module translateX(x) { translate([x,0,0]) children(); } module translateY(x) { translate([0,x,0]) children(); } module translateZ(x) { translate([0,0,x]) children(); } module dessus() { L=9.2; difference() { union() { translateX(-L/2) translateY(-7.6/2) translateZ(4) cube([L,7.6,...
glb/cad_a282df1c91bd.glb
Create a Nespresso coffee pod storage holder. Start by creating a solid base shape that is a hull encompassing two cylinders, each with a radius of 21mm and a height of 6mm, positioned 152mm apart along the y-axis. From this base, remove a central channel created by the hull of two cones: the bottom cone should have a ...
NumOfPods = 5; PodOuterDiameter = 38; PodInnerDiameter = 31; BackingDepth = 2; PodChannelDepth = 4; CircleResolution = 40; difference() { hull() { cylinder(BackingDepth + PodChannelDepth,r=((PodOuterDiameter / 2) + BackingDepth),false,$fn=CircleResolution); translate([0,((NumOfPods - 1) * PodOu...
glb/cad_ee77dff6a5c5.glb
Create a Waterbutt Down Pipe Interceptor consisting of a main decagonal body and a matching lid. The main body is a decagonal prism with a height of 70mm, an outer diameter of 110mm, and a wall thickness of 2mm. Centered within the bottom of this body is a hollow cylindrical catcher with an outer diameter of approxim...
$fn=60; downPipeWall=1.8; downPipeOuterDiameter=68; downPipeInnerDiameter=downPipeOuterDiameter-(downPipeWall*2); feedPipeWall=2; feedPipeOuterDiameter=25; feedPipeInnerDiameter=feedPipeOuterDiameter-(feedPipeWall*2); bodyWall=2; bodyOuterDiameter=110; bodyInnerDiameter=bodyOuterDiameter-(bodyWall*2); bodyHeight=70;...
glb/cad_550d17523154.glb
Create a Wowstick case consisting of two symmetrical mirrored halves. For each half, create a base shape by forming a hull around four cylinders, each with a diameter of 25mm and a height of 105mm, positioned linearly with their centers spaced 17mm apart. Within this base, carve out four cylindrical holes with a diam...
number_of_sticks = 4; stick_diameter = 17; stick_length = 190; wall_thickness = 4; joint_overlay = 20; joint_place_prcnt = 55; module stick_hole(){ hull() for(i=[1:number_of_sticks]) { translate([i*stick_diameter,0,0]) cylinder(h=stick_length, d=stick_diameter); } } mo...
glb/cad_8fe4a0c315af.glb
Create a Copilot Bicycle Seat Adapter consisting of three separate rectangular blocks: a top piece, a middle piece, and a bottom piece. All pieces share a width of 75mm and a length of 17mm. For the middle piece, create a block 32mm high. Drill two transverse holes (8mm diameter) through the center, separated by 41mm,...
part="All"; width=75; length=17; height_top=12; height_middle=32; height_bottom=12; diameter_seat_bars=8; separation_seat_bars=41; diameter_bicycle_bar=37; diameter_brakeline=6; angle_brakeline=30; bolt_separation=58; bolt_diameter=7; bolt_nut_diameter=13; bolt_nut_height=6; bolt_head_diameter=13; bolt_he...
glb/cad_23af4d02bdbb.glb
Create a Y-axis timing belt tensioner consisting of a threaded screw fork. Start by creating a cylindrical threaded screw with a diameter of 24mm, a pitch of 3.5mm, and a height of 45mm. At the top of this screw, integrate a fork-like structure. The fork should have a total thickness of 16mm and a gap between the pro...
include <D:/Daten/OpenScadBase/threads-library-by-cuiso-v1.scad> $fn = 100; nozzle = 0.4; d_base = 24; pitch = 3.5; h_base = 45; i_depth = 1; h_fork = 27; d_fork_whole = 11; t_fork = 16; whole_drill = (3 * 0.8) + nozzle; d_bearing = 4; t_bearing = 8.4; t_screw = 3.5; d_screw = 7; h_bea...
glb/cad_e80e64eacab5.glb
Create a customizable pegboard hook consisting of two mounting pegs and a U-shaped hook body. First, create two mounting pegs. Each peg is a cylinder with a diameter of 5.4mm and a length of 5mm. The head of each peg is a sphere with a diameter of 6.6mm, though it is slightly flattened to 85% of its depth. To allow f...
hole_diameter = 6; hole_depth = 5; peg_offset = 25; peg_rotation = 0; peg_head_size_percentage = 120; peg_head_depth_percentage = 85; peg_head_cutout = true; peg_head_cutout_width = 15; peg_head_cutout_depth = 9; peg_diameter_tolerance = 10; first_peg_lshape = true; second_peg_lshape = false; hook_type="u_h...
glb/cad_ef86bd8073ff.glb
Create a Tiffin Carrier Handle adapter consisting of a hollow rectangular sleeve and an attached cylindrical peg. First, construct a rectangular block 28mm wide, 80mm long, and 23mm high. Carve a rectangular hole through the center of this block that is 20mm wide and 90mm long, with a height of 23mm, leaving walls of 4...
pipe_id = 18; pipe_wall = 2.5; pipe_od = pipe_wall + pipe_id + pipe_wall; peg_radius = pipe_id / 2; $fn = 100; union() { translate([0, 0, pipe_od / 2]) { difference() { cube([28, 80, pipe_od], center = true); translate([0, 0, 4]) { cube([20, 90, pipe_od], center = true); } } } ...
glb/cad_078991b5dbee.glb
Create a fold-down spool holder consisting of a cylindrical arm and a rectangular mounting base. Start by creating a mounting plate that is 5mm wide, 60mm tall, and 30mm deep. On the side of this plate, add a rectangular block measuring 5mm by 42mm by 3mm. Construct the spool arm as a cylinder with a radius of 10mm an...
$fn=30; difference(){ union(){ translate ([0,0,6]) rotate ([0,90,0]) cylinder (r=10,h=115); translate ([0,-10,0]) cube ([115,20,5]); translate ([110,0,9]) rotate ([0,90,0]) cylinder (r1=10, r2=12,h=5); translate ([-5,-30,0]) cube ([5,60,30]); translate ([0,-21,0]) cube ([5,42,3]); translate ([0,-30,0]) cube ([4,6...
glb/cad_357d086b8023.glb
Create a Fold Down Spool Holder consisting of two main rectangular blocks joined at a right angle. The first block is a rectangular prism measuring 47mm x 13mm x 16mm. Attached to this is a second rectangular prism measuring 5mm x 75mm x 16mm, extending perpendicularly from the first. To create the internal hollow cha...
$fn=8; difference() { union () { translate ([-45,0,0]) cube ([47,13,16]); color ([0.3,1,0.3]) translate ([-45,-1.5,0]) cube ([48,3,16]); color("Blue")translate ([1,-50,0]) cube ([5,75,16]); } union() { color("Red")translate ([-7,6.5,-3])cylinder (r=1.5, h = 30); color("Red")translate ([-38,6.5,-3])cylinder (r=1.5, ...
glb/cad_a19fb96cddfe.glb
Create a Simple Poem Bracelet by constructing a hollow cylindrical band. Start with an outer cylinder that has a height of 15mm and a radius of 31.2mm. Remove a concentric inner cylinder with a radius of 30mm and a height of 16mm, centered so that it creates a wall thickness of 1.2mm. On the outer surface of this band,...
text = "Once upon a time I started a story. It went like this: "; wristDiameter = 60; fontSize = 5.0; braceletHeight = 15; braceletThickness = 1.2; font = 1; letter_depth = 2; font_array = ["BlackRose.dxf", "Letters.dxf", "orbitron.dxf", "knewave.dxf"]; $fa = 1; use <write/Write.scad> wristR = wristDiameter/2; ...
glb/cad_05f04d814849.glb
Create a motorcycle helmet visor bracket consisting of three components: a base, a slider, and a plate. For the base, create a primary cylinder with a diameter of 37mm and a height of 1.75mm. On top of this, add a second cylinder centered with a diameter of 23mm and a height of 4.8mm. Carve out a central rectangular s...
$fn = 100; nd = 0.4; kreisDm = 37; kreisDk = 1.75; kreisKDm = 23; kreisKDk = 6.55 - kreisDk; midStgW = 10.25; midStgL = 13; seg01Ang = 35; wholeBw1 = 5.25; wholeBw2 = 3.5; wholeBl = 11; wholeBd = 5.25; wholeLw = 1; wholeLl = 4; holeD = 1.7+nd; holeH = 5; holedif = 14; sllang = 10.25; slhigh = 4.8; slwide = 3.25;...
glb/cad_d13bcc85a977.glb
Create a CR2032 battery holder. Start with a solid rectangular block measuring 25mm in width, 71.5mm in length, and 10mm in height. Carve out a series of 20 rectangular slots to hold the batteries. Each slot should be 20mm wide, 3.5mm thick, and 7.5mm deep. Position these slots starting 2.9mm from the front edge, spa...
slots = 20; title="AG13 LR44 LR1154 357 303"; width = 11.6; thickness = 5.4; font=5; title="CR2032"; width = 20; thickness = 3.2; font=10; tol = 0.3; spacer = 1.5; length = ((thickness + spacer) * slots) + spacer; wall=width/4; difference() { cube([width +wall,length,width/2+wall]); for(i=[0:(slots-1)]) { ...
glb/cad_15b44a2c11ce.glb
Create a P3Steel Y belt holder consisting of a rectangular base with a central belt channel and two mounting holes. The main body is a block 40mm wide, 15mm deep, and 10mm high. At the center of the top face, carve out a rectangular belt track 7mm wide and 15mm long, with a depth of 0.6mm. Within this track, create a...
$fn=100; supplement_height=13; holder_lenght=22; *holder_front(); holder_back(); *supplement(); module supplement() { translate([0,0,20]) difference() { translate([-20,0,-5]) union() { cube([40,10,supplement_height]); translate([16.5,0,-0.5]) cube([7,10,0.5]); } union() { translate([0,0,-6]) union() ...
glb/cad_db32ac792f9f.glb
Create a parametric trumpet mouthpiece with a total length of 87mm. Start by constructing the cup at the top: the outer rim has a diameter of 16mm and a width of 6mm, with a radius of 2.5mm. The cup depth is 11mm, transitioning from the rim down to a throat with a diameter of 4mm and a radius of 2mm. Below the cup, c...
$fs=1; $fa=8; CupDiameter=16; CupDepth=11; CupSphereFactor=0.8; RimWidth=6; RimRadius=2.5; ThroatRadius=2; ThroatDiameter=4; BoreDiameter=8; FrontPipeDiameter=13; BackPipeDiameter=9; MouthPieceLength=87; CupBottom=[ThroatDiameter/2+ThroatRadius*(0.17+CupSphereFactor*0.3),CupDepth+ThroatRadius*(0.43-CupSpher...
glb/cad_d9726f49c29b.glb
Create a spherical fan grille for a 60mm fan. Start by constructing a hollow spherical shell with an outer diameter of 56mm and a wall thickness of 2mm. Flatten the bottom of the sphere to create a base with a thickness of 2mm. At the four corners of the base, create four mounting holes, each with a diameter of 4mm, c...
my_Sphere_resolution = 30; my_Cylinder_resolution = 10; grilleH = 60; wallsL = 4; heightS = 2; heightC = 2; holeD = 2; holeB = 4; rRound = 4; module my_Sphere() { difference() { difference() { union() { translate (v= [0, 0, heightS]) { sphere(d = grilleH-wallsL, $fn = my_Sphere_resolution, center = t...
glb/cad_7a832de2bf47.glb
Create a Platonic solid connector designed to hold five 3mm diameter rods. Start by creating a central cylinder with a radius of 50mm and a height of approximately 13.1mm. From this central hub, extend five identical arms spaced equally every 72 degrees around the center. Each arm is formed by a cylinder with a radiu...
radius = 1.5; thickness = 2.6; length = 10; phi = (1 + sqrt(5)) / 2; m = 0.1; $fn = 18; angle = 90-acos(1/(2*sin(180/5))); edges = 5; translate([0,0,cos(angle)*(length + 0*thickness) + 2 * radius * sin(angle)]) mirror([0,0,1]) intersection(){ difference(){ for (i = [0:edges-1]) { rotate ([0,0,i*360/edges]){ ...
glb/cad_9d1507ba93d8.glb
Create a parametric ceiling mounting bracket with a total height of 6mm. Start with a solid rectangular base measuring 24mm in depth (X), 27mm in width (Y), and 6mm in height (Z). At the center of the width (13.5mm) and height (3mm), create a cylindrical hole with a radius of 2.5mm that passes through the base to ser...
THING_WIDTH = 23; THING_HEIGHT = 5; FINGER_DEPTH = 3; STANDOFF_HEIGHT = 15; WALL_THICKNESS = 2; BRACKET_HEIGHT = 6; MOUNTING_SCREW_RADIUS = 2.5; module ceilingMountingBracket($fn=24) { assign(outer_depth=2 * WALL_THICKNESS + THING_HEIGHT + max(0, STANDOFF_HEIGHT), outer_width=THING_WIDTH + 2 * WALL_TH...
glb/cad_731639a987bc.glb
Create a replacement stylus nib consisting of a thin vertical shaft with a wider base and a rounded tip. Start by creating a hexagonal base with a height of 1.5mm and a diameter of 1.8mm. From the center of this base, extend a cylindrical shaft upwards to a total height of 23mm, with a diameter of 1mm and a thickness o...
union () { cylinder(1.5,1.8,1.8); cylinder(23,1,.75); translate([0,0,23]) sphere(.75); } translate ([10,0,0])union () { cylinder(1.5,1.8,1.8); cylinder(23,1,.75); translate([0,0,23]) sphere(.75); } translate ([-10,0,0])union () { cylinder(1.5,1.8,1.8); cylinder(23,1,.75); translate([0,0,23]) sphere(.75); }
glb/cad_34b9e9db71e3.glb
Create two virtual Easter eggs. To form the base shape of each egg, create a sphere with a radius of 10mm and scale it by 1.618 along the Z-axis. For the first egg, create a series of small circular holes to decorate the surface. Generate these by creating cylinders with a radius of 2mm and a height of 100mm. Positio...
include <../lib/visibonecolors.scad> $fn=60; module egg(radius) { difference() { scale([1, 1, 1.618]) sphere(radius); translate([0, 0, -(radius*2)/2]) cube([(radius*2), (radius*2), (radius*2)], center=true); } scale([1, 1, 1.15]) sphere(radius); } module easter_egg_1(colorEgg, colorX, colorY) { color(colorE...
glb/cad_7b16fac91a30.glb
Create a home cinema sign base by starting with a thin cylinder 32mm in diameter and 3mm high. Cut a 15mm diameter circular hole through the center of this cylinder. From this base, remove a 30mm by 30mm square block that is 10mm tall, positioned so its center is offset to the left at -19mm on the X-axis and -15mm on t...
$fn=5; difference() { cylinder(d=32,h=3); translate([0,0,-1])cylinder(d=15,h=10); translate([-38,-15,-1])cube([30,30,10]); translate([-31,-15,1])cube([30,30,10]); translate([-5,8.4,-1])cylinder(d=3.2,h=10,$fn=100); translate([-5,-8.4,-1])cylinder(d=3.2,h=10,$fn=100); }
glb/cad_6eaf3d141597.glb
Create a Parametric Drag Chain link with a width of 30mm, length of 45mm, and height of 15mm. The link is a hollowed-out rectangular shell with rounded ends. The side walls are formed by two parallel plates connected by a curved outer profile with a radius of 7.5mm. On the interior of the side walls, create two cylin...
width= 30; length=45; height=15; max_angle = 50; under_angle=0; over_angle=30; inner_axis=0; closed=0; clip=1; tolerance = 0.2; toothpick = 2.1; multicolor_block=0; mcb_height=2; module outline(width, length, height, radius, l1, angle) { y_ofs = l1 / 2; t = radius / 2; difference() { union() { ...
glb/cad_e1c5549ff37a.glb
Create an end cap for a 30x30mm t-slot extrusion. Start with a square base plate measuring 30mm by 30mm with a thickness of 3mm and rounded corners with a 2mm radius. In the center of this plate, create a circular hole with a diameter of 8.2mm that passes completely through the thickness. On each of the four sides of ...
slot_width=8; slot_thickness=2; t_width=16.5; t_depth=3.5; trap_bot_width=16.5; trap_top_width=9.5; trap_depth=3.5; extrusion_width=30; cover_thickness=3; corner_rounding=2; hole_size=8.2; tab_height=10; undersize=0.2; difference() { union() { for (a=[0:3]) rotate([0,0,90*a]) translate([0,-extrusion_width...
glb/cad_bd6482550db5.glb
Create a no-spill cup lid consisting of a wide circular base and a central vertical cylinder. Start with a hexagonal nut shape that has a width of 38mm across the flats and a height of 7mm. On the top surface of this hexagon, add a thin circular disc with a radius of 19mm and a thickness of 1.5mm. From the center of th...
include <polyScrewThread_r1.scad> PI=3.141592; res = 0.25; module remove_hex() { difference() { cylinder(h=20,r=40); cylinder(h=20,r=38/2); } } module oil_cup_base() { difference() { union() { cylinder(h=55,r1=70/2, r2=38/2); translate([0,0,55]) union() { difference() { scr...
glb/cad_338ddceb60f8.glb
Create a Metric Nut Sizer by starting with a rectangular base block measuring 70mm in length, 42mm in width, and 3mm in height. From this block, remove a series of hexagonal holes arranged in four rows to create a calibration grid. Each row contains four hexagonal holes spaced 14mm apart center-to-center, starting 7mm ...
xpos = -3; ypos = 4; inc=.1; module sizer(base,ypos) { for (xpos=[0:1:4]) { assign(rsize=base+xpos*inc) { echo(xpos, ypos, rsize); translate([xpos*14+7,ypos,1])cylinder(h=6,r=rsize,$fn=6); } } } difference() { cube([70,42,3]); sizer(6.0/2,4); sizer(8.0/2,12); sizer(8.8/2,22); sizer(11.0/2,34); }
glb/cad_c20e72a436b4.glb
Create a Birdfeed Jar Holder designed to hold an 80mm diameter by 80mm high jar. The main structure consists of two symmetrical support beams, each 15mm in diameter and 80mm tall, angled away from each other at 50 degrees from the center axis. Each beam is a hollow tube with a 3mm diameter hole running through its cent...
$fn=60; jarDia=80; jarHght=80; beamDia=15; wallThck=2; spcng=0.3; hingeWdth=18; beamAng=50; screwDia=3.0; screwLngth=40; fudge=0.1; *mirror([0,0,1]) translate([0,0,-80])jar(); holder(); module holder(){ difference(){ for(ir=[-1,1]) rotate(ir*beamAng) translate([(jarDia+beamDia)/2,0,0]){ difference...
glb/cad_d51a78a79d33.glb
Create a cube block puzzle consisting of seven distinct geometric pieces, where each basic unit is a cube with a side length of 12.7mm. Construct the first piece as a 2x1x1 block of units with an additional 1x1x1 unit attached at the top-front and another at the top-back. Create the second piece as an L-shape made of a...
size=12.7; piece1(); module piece1(){ cube([size*2,size,size]); translate(v=[0,size,0]){cube([size,size,size]);}; translate(v=[0,0,size]){cube([size,size,size]);}; } module piece2(){ cube([size*3,size,size]); cube([size,size*2,size]); } module piece3(){ cube([size*2,size,size]); translate(v=[size,size,0]){c...
glb/cad_fc267c69a40a.glb
Create a customizable ring clip by starting with a right prism that has a triangular cross-section. The outer boundary should be a regular polygon with 3 sides, a diameter of 11mm, and a height of 2mm. From the center of this shape, remove a smaller concentric regular polygon with 3 sides and a diameter of 7mm to creat...
gap=0.5; thickness=2; diameter=7; sides=3; $fn=sides; difference() { rotate([0,0,360/sides/2]) cylinder(r=diameter/2+thickness, h=thickness); translate([0,0,-1]) { rotate([0,0,360/sides/2]) cylinder(r=diameter/2, h=thickness+2); translate([0,-gap/2,0]) cube([diameter,gap,thickness+2]); } }
glb/cad_c49479b5532c.glb
Create a K'Nex-style marble connector. Start with a central cylindrical hub that has a height of 7.56mm and an outer diameter of 9.35mm. Subtract a smaller concentric cylinder from the center with a diameter of 6.55mm to create a ring. Around the perimeter of this hub, add two connector lugs spaced 180 degrees apart. ...
part = 9; if(part==0) rotate([0,90,0]) fullRod2(17.3,0); if(part==1) rotate([0,90,0]) fullRod(7,19); if(part==2) rotate([0,90,0]) fullRod(8.15,38.3); if(part==3) rotate([0,90,0]) fullRod2(85.5,69.2); if(part==4) rotate([0,90,0]) fullRod2(129.9,113.5); if(part==5) rotate([0,9...
glb/cad_b3b69de90dd4.glb
Create a lens filter case consisting of a semi-circular tray with a hinged closure. Start by creating a main cylindrical body with an outer diameter of 55.3mm (calculated from a 52.3mm filter diameter plus 1.6mm edge thickness on each side) and a height of 6.2mm (5.2mm filter height plus 1mm sidewall thickness). Hollow...
_1_filterDiameter = 52.3; _2_filterHeight = 5.2; _3_sidewallThickness = 1.0; _4_edgeThickness = 1.6; _5_magnetDiameter = 3.95; _6_magnetHeight = 2.2; _7_magnetWall = 1.4; module hinge(y, radius, height) { translate([0,y,0]) { cylinder(h = height, r = radius); } } module outsideShell(radius, outsideHeight, h...
glb/cad_56e0889553ee.glb
Create a Replicator Print Bed Adjuster clip by starting with a solid rectangular block measuring 50mm in length, 9mm in width, and 15mm in height. From this block, remove a central rectangular section to create a U-shaped channel. This cutout should be 50mm long, 7mm wide, and 11mm deep, starting from the top face and ...
len = 50*1; height=5; t=1*1; tail=10*1; around=7*1; width=around+2*t; translate([-len/2,-width/2,0]) difference() { cube([len,width,height+tail]); translate([-1,t,height]) cube([len+2,around,tail+1]); }
glb/cad_8fa10dce7ff0.glb
Create a smartphone tripod mount with a total height of 55mm, a width of 25mm, and a thickness of 10mm. The main body is a rectangular block with a curved bottom profile. Carve a central channel through the width of the mount that is 10mm wide and 10mm deep to accommodate the phone. At the base of the mount, center a...
height = 55; width = 25; thickness = 10; bottom_curvature = "curved"; $fn=100; rotate([90,0,0])difference(){ union(){ cube([width,4,height]); translate([0,2,height])rotate([0,90,0])cylinder(width,2,2); cube([width,16+thickness,18]); } if (bottom_curvature == "curved"){ t...
glb/cad_80ac2acce15a.glb
Create a battery holder consisting of a 4x4 grid of sixteen identical open-ended tubes. Each tube should be a hollow cylinder with an outer radius of 8.2mm, an inner radius of 7.2mm, and a height of 20mm. The walls of the cylinders should be 1mm thick. The tubes must be positioned so that they are nearly touching, with...
$fn=50; size = 0; num_x = 4; num_y = 4; tube_r = size == 0 ? 7.2 : 5.3; tube_h = size == 0 ? 20 : 17; wall_thickness = 1; outer_r = tube_r + wall_thickness; tube_offset = (outer_r * 2) - wall_thickness; module tube() { difference() { cylinder(r=outer_r,h=tube_h,center=false); translate([0,0,1]) cylind...
glb/cad_250caaf0408e.glb
Create a parametric venting blind for a rectangular aperture. Start by constructing a flat rectangular frame with an outer dimension of 66mm by 26mm and a thickness of 1.5mm. From the center of this frame, remove a rectangular inner section measuring 60mm by 20mm and 3mm deep to create a hollow window with a border wid...
persiana(60, 20, 1.5, 3, 3, 5); module persiana(larg, alt, spess, incasso, bordo, num_assi) { difference(){ union(){ cube([larg+2*bordo, alt+2*bordo, spess], center=true); translate([0,0,-(spess/2+incasso)/2])cube([larg+2*spess, alt+2*spess, spess/2+incasso], center=true); }...
glb/cad_c20b649cb673.glb
Create a parametric GT2 belt clip by starting with a solid cube measuring 15mm in width, 15mm in length, and 11mm in height (calculated as a 4mm base plus a 7mm path height). From this block, remove two symmetrical curved channels to create a slot for a belt. The first channel is a quarter-circle arc with an inner ra...
belt_width = 6; belt_thickness = 0.95; belt_pitch = 2.0; tooth_radius = 0.8; tooth_length = 2; clamp_width = 15; clamp_length = 15; clamp_base = 4; show = 1; path_height = belt_width + 1; clamp_thickness = path_height+clamp_base; $fn = 40; clamp_inside_radius = clamp_width/2; clamp_outside_radius = clamp_ins...
glb/cad_0f9c89e839d7.glb
Create a leveling foot for an 8mm bolt consisting of two main components: a base foot and a ball-and-socket joint. First, construct the base foot. Start with a cylinder 40mm in diameter and 4mm high. From the top of this cylinder, create a tapered transition that narrows to a diameter of 35mm over a height of 16.5mm....
bolt_head_diam=13.5; bolt_head_height=8; bolt_diam=8.2; ball_diam=22; ball_bottom_flat=4; ball_top_flat=3; foot_diam=40; foot_straight=4; foot_taper=10; foot_height=ball_diam*3/4; foot_ball_space=0.5; foot_hex_size=17; size_to_diam=2/sqrt(3); foot_hex_diam=foot_hex_size*size_to_diam; nut_size=13; nut_diam=nut_size*size...
glb/cad_8149ee83d6e5.glb
Create a stackable parametric card deck holder designed to hold a deck of cards measuring 63mm by 88mm with a height of 15mm. The main body is a rectangular shell with a wall thickness of 2mm. Start by creating a hollow rectangular box with an interior cavity slightly larger than the card dimensions to allow for a ma...
card_width = 63; card_length = 88; deck_height = 15; module CardHolder( card_width, card_length, deck_height, wall_width=2 ) { error_margin = 5/100; spaced_deck_width = card_width + card_width*error_margin; spaced_deck_length = card_length + card_length*error_margin; spaced_deck_height = deck_height + deck_h...
glb/cad_c15fd0b6a06f.glb
Create a distributor shaft for a P22 Plymouth engine. Start by creating a base cylinder with a diameter of 26.95mm and a height of 36.85mm. Centered on top of this base, add a taller, narrower cylinder with a diameter of 12.42mm and a height of 133.22mm. At the very top of this narrow cylinder, carve out a rectangular ...
$fn=90; tol=0.2; d0=26.95; h0=36.85; d1=12.42; h1=133.22; wTip=3.9; hTip=6.28; cylinder(r=d0/2,h=h0); difference(){ cylinder(r=d1/2,h=h1); for(i=[-1,1]) translate([0,i*(d1/2+wTip/2),h1-hTip/2+tol/2]) cube([d1,d1,hTip],center=true); }
glb/cad_717ba2efe6ab.glb
Create a parametric spool hub by starting with a main cylindrical body that has an outer diameter of 36mm and a height of 1mm. Centered on top of this base, add a second cylinder with a diameter of 32mm and a height of 4mm. This upper cylinder should be hollow, with an internal bore of 30mm. Remove a central vertical c...
hub_diameter=32; hub_height=4; shaft_diameter=9; wall_thickness=1; brim_width=2; hole_diameter=9; $fn=24; difference() { body(); shaft(); holes(); } module body() { cylinder(d=hub_diameter+brim_width*2,h=wall_thickness); difference() { cylinder(d=hub_diameter,h=hub_height+wall_thickness); cylinder(d=hub_diamet...
glb/cad_4f577c065d3a.glb
Create a straight section of toy railroad track with a total length of 146mm and a rail-to-rail interval of 35mm. First, construct six rectangular sleepers (ties) measuring 8mm wide, 51mm long, and 3mm high. Space these sleepers evenly along the length of the track. Next, place two parallel rails running perpendicul...
$fn = 60; shpala_h=3; shpala_w=8; shpala_l=51; relsa_wb=4; relsa_hb=1; relsa_h=6; relsa_w1=2; relsa_w2=1.5; length=146; nrels=6; relsa_interval=34; di_o = (shpala_l-relsa_interval-relsa_wb)/2; bottom=shpala_h; bottomh=bottom+1 ; hl=4.8; hh=6.3; outer=1.5; interval=35; ri=6.7; roo=6.5; le=9; out_r=8; ws=outer+roo;...
glb/cad_631b31033ccd.glb
Create a curved railroad track section for a children's toy. The model consists of two concentric curved rails connected by several rectangular sleepers. The rails are defined by an outer diameter of 360mm and an inner diameter of 326mm. The rail profile is complex: the base is 4mm wide and 1mm high, while the top hea...
$fn = 60; shpala_h=3; shpala_w=8; shpala_l=51; relsa_wb=4; relsa_hb=1; relsa_h=6; relsa_w1=2; relsa_w2=1.5; dia_o=360; relsa_interval=34; dia1=dia_o; dia2=dia1-relsa_interval; bottom=shpala_h; bottomh=shpala_h+1; hl=4.8; hh=6.3; outer=1.5; interval=35; ri=6.7; roo=6.5; le=9; di_o = dia1-relsa_interval-(shpala_l-r...
glb/cad_e020a352a73c.glb
Create a key hook consisting of a rectangular base and an attached hook. Start by creating a rectangular block measuring 30mm in length, 15mm in width, and 30mm in height. From this block, remove a central channel to create a hollow interior. Specifically, carve out a void that follows the outer perimeter with a small ...
$fn=200; L=30; P=15; H=30; esp=0.2; Pa=P-5; module arronde(L,P,H,tol) { linear_extrude(H) polygon([[tol+tol*L/3/P,P-tol],[L-tol-tol*L/3/P,P-tol],[L-L/3-tol,0],[L/3+tol,0]]); } module crochet() { translate([2,0,0]) arronde(L-4,Pa,H-2,esp); translate([L/2,0.7,2]) rotate([60,0,0]) cylinder(h=20,d=5); } tr...
glb/cad_26b5ec3360c9.glb
Create a Universal Hose Joint adapter consisting of a hollowed-out tapered cylinder. Start by building the lower section as a cylinder with a diameter of 25mm and a height of 25mm. Above this, add a conical transition section 10mm in height that tapers from a 25mm diameter down to a 15mm diameter. Top this with a final...
UPPER_DIA = 15; LOWER_DIA = 25; UPPER_LENGTH = 25; LOWER_LENGTH = 25; N_TEETH = 3; TOOTH_DEPTH = 1; $fn = 60; THICKNESS = 2.5; CHAMFER_LENGTH = 10; upper_tooth_offset = UPPER_LENGTH / 3; upper_tooth_length = (UPPER_LENGTH - upper_tooth_offset) / N_TEETH; upper_tooth_outer_dia = UPPER_DIA + 2*TOOTH_DEPTH; lower_...
glb/cad_bcfc4eaed01f.glb
Create a parametric spider web with a total diameter of 100mm and a material thickness of 2mm. The structure is composed of radial spokes and concentric circular rings. First, create 9 straight radial spokes extending from the center to the outer edge. Each spoke should be a 10-sided prism with a radius of 2mm. Space...
size = 100; thickness = 2; strands =2; wedges = 9; module straight(){ rotate([-90,0,360/(2*wedges)]) cylinder(r=thickness, h=size/2, $fn=10); } module arc(){ for(i = [1:strands]){ intersection(){ translate([0,0, -10]) rotate([0,0,90-360/(2*wedges)]) cube(size); translate([0,0, -10]) ro...
glb/cad_d3458089f38a.glb
Create a Copilot Bicycle Foot Rest adapter consisting of two matching clamping pieces, a top and a bottom, that fit together around a bicycle frame. For the bottom piece, create a rectangular block 75mm wide, 17mm long, and 12mm high. Remove a semi-cylindrical cutout from the top center with a diameter of 37mm and a ...
part="Both"; width=75; length=17; height_bottom=12; height_top=22; diameter_bicycle_bar=37; diameter_shiftline=6; angle_shiftline=40; num_shiftline=2; bolt_separation=58; bolt_diameter=7; bolt_nut_diameter=13; $fn=100; if (part=="Both"){ translate([0,length*1.25,0])rotate([90,0,0])top_piece(); translate([0,...
glb/cad_f09f73b5ac97.glb
Create a bicycle foot rest adapter consisting of two matching clamp pieces, a top and a bottom, designed to fit a 37mm diameter round frame. Each piece should have a width of 75mm and a length of 17mm. For the top piece, create a rectangular block 12mm high. Remove a semi-cylindrical cutout with a 37mm diameter from t...
part="Both"; width=75; length=17; height_bottom=22; height_top=12; diameter_bicycle_bar=37; diameter_shiftline=6; angle_shiftline=40; num_shiftline=2; bolt_separation=58; bolt_diameter=7; bolt_nut_diameter=13; $fn=100; if (part=="Both"){ translate([0,height_bottom/2,0])bottom_piece(); translate([0,-length/2...
glb/cad_aef450c7040f.glb
Create a spiral poem bracelet by starting with a hollow cylinder that has an outer diameter of 68.4mm (a 66mm inner diameter plus a 1.2mm wall thickness) and a total height based on the length of the text provided. Cut a spiral path through this cylinder to transform it into a continuous, winding ribbon. The spiral cut...
text = "This line is full of words that go on and on and on and on and on and on and on and on and on and on and on and on and on."; wristDiameter = 66; fontSize = 6.0; bandHeight = 12; braceletThickness = 1.2; font = 1; letterDepth = 2; wristRadius = wristDiameter/2; font_array = ["BlackRose.dxf", "Letter...
glb/cad_7bfc2292d6fa.glb
Create a kid's license plate measuring 6 inches wide by 3 inches high. The main body is a rectangular plate with rounded corners, featuring a raised outer border. The base plate has a thickness of approximately 3.5mm, while the raised border adds an additional 1.27mm of height. At each of the four corners, create a mo...
use <write/Write.scad> name="JR MAKER"; nh=1.9; nx=0; ny=0; rez=12; difference(){ scale([.5,.5,1]){ all(); letters(); translate([0,0,1.8]) scale([1,1,.5]) difference(){ base(); scale([.975,.95,1]) base(); } } translate([-250,-250,-9]) color("green") cube([500,500,10]); } module ...
glb/cad_0fb5130032d9.glb
Create a No-Clean Paste Flux Syringe holder by starting with a rectangular base measuring 46mm by 30.5mm with a thickness of 3mm and rounded corners. Upon this base, construct a support structure composed of two joined sections: a cube measuring 28mm on all sides and a rectangular block measuring 28mm by 28mm by 38mm, ...
$fn=0; union(){ translate([-8,-15.25,-18.5]) minkowski(){cube([60,30.5,3]); sphere(.5);} difference(){ union(){ translate([-7.5,-14,-16.5]) minkowski(){ cube([28,28,28]); sphere(2); } rotate([0,60,0])translate([-14,-14,0]) minkowski(){ cube([28,28,38]); sphere(2);...
glb/cad_236f81819b79.glb
Create a Smarthomatic Base Station Case consisting of a main housing and a separate lid. For the housing, create a rounded rectangular box with outer dimensions of 53.8mm in width, 64.6mm in depth, and 31.6mm in height, using a wall thickness of 1.6mm. Hollow out the center to create an inner cavity of 50.5mm by 61mm...
$case=true; $pcb_x=50.5; $pcb_y=50.5; $pcb_z=26; $led=false; $led_diam=5; $led_x=20; $led_y=50; $ldr=false; $ldr_diam=5.2; $ldr_x=27; $ldr_y=30; $pir=false; $pir_diam=23; $pir_x=13 ; $pir_y=21; $pcb_air=0.3; $pcb_lift=4; $bat_x=33; $bat_y=61; $bat_z=0; $bat_isolate=0; $jack=0; $jack_x=11.2; $jack_z=15.2; $jack_li...
glb/cad_fb2cbb8e00d4.glb
Create a timing pulley for a NEMA 17 motor with a 12-tooth HTD 3mm profile. The pulley should have a 5mm central bore extending through the entire height. To secure the pulley to the motor spindle, add a keyed shaft feature with a key size of 1.1mm. The main body consists of a toothed section with a height of 7.5mm. A...
teeth = 12; profile = 9; motor_shaft = 6; motor_shaft_key_size = 1.1; m3_dia = 3.2; m3_countersink = 1.5; m3_countersink_dia = 5.5; m3_nut_hex = 1; m3_nut_flats = 7; m3_nut_depth = 2.7; retainer = 1; retainer_ht = 1.5; idler = 0; idler_ht = 1.5; pulley_t_ht = 7.5; pulley_b_ht = 9; pulley_b_dia = 14; no_of_nuts = 0; ...
glb/cad_56e7fbf9bcde.glb
Create an Arduino Hand Tray by starting with a rectangular base box measuring 78mm in length, 58mm in width, and 22mm in height, with a wall thickness of 2mm. Hollow out the center to create a basin that is 74mm long, 54mm wide, and 20mm deep. On one of the shorter exterior walls, create two cutouts: a rectangular op...
with_dcjack = 1; with_microusb = 0; with_type1usb = 1; thickness = 2; length = 74; width = 54; height = 20; padding=0.1; $fn=100; outer_length = length + thickness * 2; outer_width = width + thickness * 2; outer_height = height + thickness; len = sqrt( pow(5,2) + pow(5,2) ); module hexagon(size, height) { boxWi...
glb/cad_d60ad5addf37.glb
Create a parametric spice rack consisting of sliding trays and a supporting structure. First, construct the tray. Create a rectangular box with an outer width of 50.2mm (47mm internal width plus 1.6mm walls), a length of 263.2mm, and a height of 41.6mm. Hollow out the center, leaving a bottom floor thickness of 1.6mm...
To = 0.25; Ts = 0.4; Tg = 0.1; Tw = 47; Tl = 260; Th = 40; Wt = 1.6; Hw = 30; Hh = 15; Hd = 10; Ht = 15; Hx = 4; Sx = 3; Sy = 2; So = 1; Sb = 0; St = 2; Sd = 15; Ss = Sd/3; Sh = 120; tray = 1; holder_front = 1; holder_back = 1; strutL = 1; strutT = 1; Rt = 5; Rs = 4; if (tray > 0) tray(); if (holder_front > 0 || h...
glb/cad_02530d21593c.glb
Create a 3D model of the Conway Knot based on a triangular lattice. The entire structure is composed of a series of connected segments, each formed by the convex hull of two 6-facet prisms (approximating spheres) with a radius of 3.5mm. These prisms are positioned at specific coordinates and connected to form a continu...
scale(v = 10) { union() { hull() { translate(v = [5.0000000000, 0.0, 0]) { rotate(a = [0, 0, 30]) { sphere($fn = 6, r = 0.3500000000); } } translate(v = [4.0000000000, 1.7320508075688772, 0]) { rotate(a = [0, 0, 30]) { sphere($fn = 6, r = 0.3500000000); } } } hull() { tra...
glb/cad_6b85e1e3b8f9.glb
Create a GoPro Session FPV Mount with a 0-degree tilt. Start by constructing a main outer frame that is roughly 39.5mm in height and 39.5mm wide. The frame should be a hollow rectangular shell with rounded exterior corners (radius of 8mm) and a central rectangular cavity designed to house the camera. Within the frame,...
$fn = 150; Nozzle_Diameter = 0.4; Angle_holder = 0; Rahmen(); if (Angle_holder < 15) { translate([0, - 5 - 3, 0]) { Rahmen_Stuetze(); Rahmen_Stuetze_Noppen(); } translate([8,-5,0])cube([8.5,5,6]); translate([8+8.5+11.5,-5,0])cube([8.5,5,6]); translate([8,-5,33.5])cube([8.5,5,6]); translate([8+...
glb/cad_27c4943621ce.glb
Create a multicopter electronics protection dome by constructing a hollow hemispherical shell. Start with a sphere with a radius of 63mm and a wall thickness of 2mm. Remove the bottom half of the sphere by cutting it with a horizontal plane, leaving only the top dome. To provide access and mounting points, create four ...
srad=63; wall=2; inc=12; difference(){ sphere(r=srad, center = true); sphere(r=srad-wall, center = true); translate([-srad,-srad,-srad])cube([srad*2,srad*2,srad+inc]); #rotate([0,60,0])cylinder(r=1.6, h= 90, $fn=50); #rotate([0,60,90])cylinder(r=1.6, h= 90, $fn=50); #rotate([0,60,180])cylinder(r=1.6, h= 90, $fn=50);...
glb/cad_b69779076759.glb
Create a Water Tap Outlet Shower consisting of a main block and a connecting ring. Start by constructing a rectangular block with a width and depth of 24.5mm and a height of 8mm. Fillet the vertical edges of this block by creating a hull around four cylinders, each with a diameter of 10mm and a height of 28.5mm, positi...
nlevels=2; height = 20; tilt = 90; zangle = 0; heightratio = .75; bottomdia = 3; topdia = 5; standing=1; module tree(level, length, thickness){ if (level > 0){ level=level-1; branch(level , tilt*heightratio, length, 1, 0, 0, thickness); branch(level, -tilt*heightratio, length, 1, 0, 0, thickness); br...
glb/cad_9fac00e06f3a.glb
Create a headphone hanger designed to clip onto a desk. Start by creating a C-shaped desk clip with a width of 20mm and an internal opening height of 34mm to accommodate the desk thickness. The clip should be formed by two parallel plates connected by a 5mm thick vertical wall, with the outer edges of the plates rounde...
Desk_thickness = 34; Band_width = 30; Headphone_height = 225; Band_lip = true; module desk_clip(opening = 34, width = 20) { difference(){ union(){ for(i = [0:1]){ translate([0,0,i * opening]){ hull(){ translate([0,0,-2]) cube([40, width, 2]); translate([40,width, i > 0 ? 3 : -5]) ...
glb/cad_c82c2c6c09dc.glb
Create a collection of six spheres arranged in a straight line along the X-axis. The spheres should gradually increase in size, starting from a smallest diameter of 1.5mm and ending with a largest diameter of 3mm. Calculate the diameter for each of the six spheres so that the size increase between each consecutive ball...
number_of_balls=6; smallest_diameter=1.5; largest_diameter=3; $fn=70; list=[for (a = [ 1 : number_of_balls ]) a]; step_size=(largest_diameter-smallest_diameter)/(number_of_balls-1); echo(step_size); y=[for(i = list) [i, (i*step_size)+(smallest_diameter-step_size)]]; echo(y); pos=0; for(nr = y){ size=(nr[1]); ...
glb/cad_b141cd214371.glb
Create a stylus holder for an HP Pavilion x360 by constructing a rectangular tray with a connected cylindrical pen slot. Start with a main rectangular body measuring 45mm in length, 29.5mm in width, and 10mm in height. This body should be hollowed out to create a shell with walls 1.6mm thick. Attached to one of the sho...
x = 45; y = 29.5; z = 10; wall = 0.4 * 4; pen_d = 9; $fn=48; difference(){ cube([x+wall*2, y+wall*2, z], center=true); cube([x, y, z+wall], center=true); } translate([-x/2-pen_d/2-wall,0,0]) difference(){ hull(){ translate([pen_d/2+wall/2,0,0]) cube([wall, pen_d*2, z], center=true); cylinder(d=pen_d+wall*...
glb/cad_8603ec1f8ee6.glb
Create a universal stand consisting of two mirrored symmetrical parts. For each part, construct a main holder body that is 70mm wide, 60mm high, and 19mm thick. This holder is a hollowed-out shell with a wall thickness of 1.5mm. The interior cavity is 16mm thick to accommodate a box-shaped object. To allow the object t...
part = "both"; stand_width = 70; stand_height = 60; object_thickness = 16; angle_deviation = 10; wall_thickness = 1.5; frame_size = 6; sphere_radius = 25; quality = +40; stand_thickness = object_thickness + 2*wall_thickness; module holder() { translate([0,0,sin(angle_deviation)*stand_thickness]) rotate([-an...
glb/cad_49e83699ab8e.glb
Create a rounded box with an outer width of 70mm, depth of 70mm, and height of 70mm. The exterior corners should be rounded with a radius of 15mm. The box is hollowed out to create a container with wall thickness of 5mm. The interior cavity should follow the same rounded geometry as the exterior, with an inner corner r...
type="box"; height=70; width=70; depth=70; roundness=15; $fa=5; thickness=5; wiggle_room=1; flange_height=2; inner_radius=roundness-thickness; if(type=="lid"){ translate([-width/2+roundness,-depth/2+roundness,0]){ difference(){ translate([0,0,roundness]){ minkowski(){ cube([width-2*roundness,depth-2*roundn...
glb/cad_6d7d6efb56d4.glb
Create a beer can cap by constructing a shallow hollow cylinder with an outer diameter of 58mm and a total height of 6mm. The walls of this cylinder should be 2mm thick. To create the interior cavity, remove a central cylinder with a diameter of 54mm, starting from a height of 2mm above the base and extending through t...
diam=54; wall=2; tall=6; brim=4; mult=1.4;res=.3;slice=mult*res; function norm(x)=ceil(x/slice)*slice; _diam=norm(diam); _wall=norm(wall); _tall=norm(tall); _brim=norm(brim) ;$fn=45; difference() { cap(); } module rim() { cylinder(d=_diam-_brim*2,h=_tall); } module cap() { _outer=_diam+_wall*2; _inner=_diam; dif...
glb/cad_4eed93f182cc.glb
Create a Customizable Razor Holder consisting of a flat backplate and two supporting arms. Start by creating the backplate as a vertical plate 4mm thick. The top of the plate should be a semi-circle with a radius of 23mm, extending downwards to a total height of 55mm. Center a circular mounting hole with a diameter of ...
BackRadious = 23; BackHeight = 55; WholeDiameter = 8.5; $fn = 80; module drawHollowHeart() { difference() { drawRoundedTriagle(40); translate([0, 0.1, 0]) drawRoundedTriagle(33); } } module drawRoundedTriagle(size = 40) { scale([1, 2, 1]) difference() { hull() { sphere(d = s...
glb/cad_2bba13a9aff7.glb
Create a rectangular project box for a USB powerbank. The outer dimensions of the main enclosure are 85.2mm in length, 26mm in width, and 46.6mm in height, with a uniform wall thickness of 1.6mm. The interior cavity is 82mm by 23mm by 45mm. On the front face, create a rectangular cutout for a USB port measuring 15mm w...
$fn = 50; powerbank_PCB = [22, 18, 11]; inside_box = [powerbank_PCB[0] + 2 + 81, 23, 45]; wall_thickness = 1.6; mounting_screw = 4; mounting_screw_gap = 7; module rockerSwitch() { cube([14, 10, 8.8], center = false); } module txt() { translate([inside_box[0], inside_box[1] + 2 * wall_thickness, 33]) { rotate...
glb/cad_52909d370e2c.glb
Create a USB powerbank project box. Start with a rectangular base plate measuring 85.2mm by 26.2mm with a thickness of 1.6mm. From this base, extend four vertical walls with a thickness of 1.6mm to create an open-topped enclosure. Two walls should run the full length of 85.2mm, and two walls should run the width of 26....
$fn = 50; powerbank_PCB = [22, 18, 11]; inside_box = [powerbank_PCB[0] + 2 + 81, 23, 45]; wall_thickness = 1.6; mounting_screw = 4; difference() { union() { cube([inside_box[0] + 2 * wall_thickness, inside_box[1] + 2 * wall_thickness, wall_thickness], center = false); translate([wall_thickness, wall_thickn...
glb/cad_85312d5164e4.glb
Create a 3-axis gimbal for a SteadiCam consisting of three concentric rings of varying sizes and thicknesses. First, create an outer ring with an outer diameter of 90mm, a height of 16mm, and a wall thickness of 6mm. Bore a hole through the center of the ring and add two 4mm diameter holes passing through the ring's ...
use <mendel_misc.inc> $fn = 200; module outer_ring(d,h,t) { difference() { cylinder(h, d/2, d/2, true); cylinder(h+1,d/2-t, d/2-t, true); rotate([0, -90, 0]) { m4_hole_vert(d+2); } rotate([0, -90, 90]) { m4_hole_vert(d+2); } } } module middle_ring(d,h,t) { difference() { cylinder(h, d/2, d/2, true); ...
glb/cad_a73c81eab1d4.glb
Create a parametric knurled nut knob. Start with a main cylinder that has a diameter of 28mm and a height of 20mm. This cylinder should feature a knurled surface consisting of grips that are 7mm wide, 5mm high, and 2mm deep, with the knurling stopping 2mm from the top and bottom edges. Through the center of the cylind...
knob_dia = 28; knob_height = 20; hole_dia = 8; cutback_dia = 20; cutback_depth = 1.3; nut_radius = 8; nut_depth = 6; knurl_cutoff = knob_height-2; knurl_width = 7; knurl_height = 5; knurl_depth = 2; knurl_smooth_amount = 20; knob_diaB = knob_dia; knob_diaT = knob_dia; include <knurledFinishLib.scad> tran...
glb/cad_909862582b24.glb
Create a frisbee with a total diameter of 190mm and a height of 20mm. The main body consists of a central cylinder with a radius of 82mm and a height of 20mm, topped with a thinner upper disc that has a radius of 95mm and a height of 10mm. The outer rim is formed by rotating a circle with a 5mm radius, scaled by a fact...
$fn = 128; chars = "HAPPY BIRTHDAY"; d = 190; h = 20; t = 2; radius = d/2; circumference = 2 * PI * radius; chars_len = len(chars) + 2; font_size = circumference / chars_len / 4; step_angle = 180 / chars_len; difference () { union () { translate ([0, 0, h/2]) { rotate_extrude () ...
glb/cad_52bc5510c1e2.glb
Create a personalized tile holder by constructing a long, extruded profile with a total length of 175mm. The main body is formed by extruding a polygon with vertices at [0,0], [25,0], [20,25], and [17,25] along that length. To create the slot for the tiles, remove a second extruded polygon from the center of the body, ...
name = "Grandma"; length = 175; union() { rotate([90,0,0]) difference() { linear_extrude(length) polygon([[0,0], [25, 0], [20,25], [17,25]], [[0,1,2,3]]); linear_extrude(length) polygon([[4,7], ...
glb/cad_04058608db23.glb
Create a Star Box consisting of a main container and a matching lid. For the main container, create a base shape by combining two squares, each with a side length of 54mm, where one square is rotated 45 degrees relative to the other. Extrude this 8-pointed star profile vertically to a height of 93mm, applying a total t...
resolution=100; inner_radius = 25; thickness = 2; $fn = resolution; height_of_box = 93; lip_height = 10; twist_factor = 20; twistF = -1*twist_factor; tTwist = (height_of_box * twistF)/100; oRadius = inner_radius + thickness; lSide = 2 * oRadius; module lip() { rotate_extrude($fn=200) ...
glb/cad_2e10bc069467.glb
Create a Cube Stand consisting of a tiered circular base and three curved gripping claws. For the base, center a series of stacked cylinders: a bottom cylinder 1mm high with a 3.5mm radius, a middle cylinder 0.5mm high with a 3mm radius, and a top cylinder 0.25mm high tapering from a 3mm radius at the bottom to a 2.75m...
module base() { $fs = 0.01; $fa = 2; layer1 = 1; layer2 = 0.5; offset2 = layer1 + layer2; layer3 = 0.25; offset3 = offset2 + layer3; layer4 = 0.5; offset4 = offset3 + layer4; difference() { union() { translate ([0,0,0.5]) {cylinder (h = 1, r =3.5, center = true);} translate([0,0,1.25]) { cylinder(h=0.5...
glb/cad_b7c9a0910958.glb
Create a piano keyboard model consisting of white and black keys. First, create the white keys as a series of rectangular prisms. Each white key should have a length of 135mm, a width of 22mm, and a height of 10mm. Arrange these keys side-by-side with a 1mm gap between each. Next, place the black keys on top of the ...
$WHITE_LENGTH = 135; $WHITE_WIDTH = 22; $WHITE_HEIGHT = 10; $BLACK_LENGTH = 85; $BLACK_HEIGHT = 15; $SPACE_WIDTH = 1; $THICKNESS = 0; $OCTAVES = 1; $INCLUDE_A0_B0 = false; $INCLUDE_END_C = false; $INCLUDE_SOLID_SPACE = false; $KEY_COLOR_ALPHA = 1.0; $EXTRA_PADDING = 0; Piano(); module Piano(whiteLength = $WHITE_LENG...
glb/cad_8f5037cc89d6.glb
Create a spool holder for a square bar by constructing a hollow cylinder with an outer diameter of 50mm and an inner diameter of 46mm, extending to a length of 90mm. The cylinder walls should be 2mm thick. At one end of the cylinder, integrate a square-shaped mounting block that is 24mm wide and 24mm high to accommodat...
$fn=100; hlen=90; od=50; t=2; id=od-2*t ; ring=2; r=(od-id)/2; pw=20; ph=20; eps=0.1; union() { difference(){ union(){ translate([0,0,0])rotate([0,90,0]) difference(){ union(){ rotate_extrude()translate([od/2,0,0])rotate([0,90,0]) circle(r=ring); translate([0,0,hlen]) rotate_extrude()translate(...
glb/cad_64cacea9e11a.glb
Create a Card Hanger consisting of a flat base with a curved hook extending from the top. Start with a rectangular base plate measuring 19mm by 5mm with a thickness of 2mm, centered at the origin. Attached to the bottom of this base, add a wider rectangular section measuring 4mm by 30mm with a thickness of 1mm, centere...
rez=10; translate([0,0,-1]){ for(i=[-70:3:180]){ rotate([0,0,i])translate([15,0,0]) cylinder(r=1.5,h=2,$fn=rez); } translate([5,-19.5,0]) for(i=[0:3:90]){ rotate([0,0,i])translate([0,5,0]) cylinder(r=1.5,h=2,$fn=rez); } } translate([0,-30,0]) cube([3,25,2],center=true); translate([0,-40,0]) cube([19,5,2...
glb/cad_b1ec13ef5678.glb
Create a customizable vacuum cleaner crevice tool. Start by constructing a hollow cylinder with an outer diameter of 38mm (shaft diameter of 32mm plus 3mm walls on each side) and a total length of 100mm. The interior should be hollowed out to accommodate a 32mm diameter shaft. At the distal end, transform the circular...
shaft_diameter = 32; nozzle_opening = 8; crevice_length = 100; wall_thickness = 3; module shape(rohrdurchmesser, duesenstaerke, laenge){ difference(){ union(){ cylinder(laenge/2, r=rohrdurchmesser/2); intersection(){ translate([-rohrdurchmesser/2,-duesenstaerke/2,laenge/2]) cube([rohrdurchmesse...
glb/cad_471d5300caac.glb
Create a circuit board model starting with a central rectangular base measuring 50mm by 30mm with a thickness of 1mm. On this base, place several small cylindrical pins, each with a radius of 0.7mm and a height of 5mm, centered vertically so they extend equally above and below the base. Arrange these pins in specific...
module example001() { r1=0.7; transistorSpacing=2.5; module pin(x,y){ translate([x, y, 0]) cylinder(r = r1, h = 5,center=true); } module transistor(x, y,r) { translate([x, y, 0]){ rotate(90, r){ cylinder(r = r1, h = 5,center=true); translate([transistorSpacing, 0, 0]) cylinder(r = r1, h = 5,center...
glb/cad_d5085704b34c.glb
Create a Dentelle ceiling lamp shade by constructing a hollowed, rotationally symmetric body. Start with a base shape formed by rotating a profile around a central vertical axis. The overall height of the object is 100mm and the maximum diameter is 100mm. The profile should transition from a flat floor of 36mm to a rou...
include <screw.scad> $fn=90; SCALE =2; HEIGHT = 50*SCALE; DIAMETER = 50*SCALE; FLOOR = 18*SCALE; WEIGHT_CENTER = 32*SCALE; WEIGHT_RADIUS = 12*SCALE; TOP_RADIUS = 22*SCALE; TOP_EXCENTER = 0*SCALE; KABELOEFFNUNG = 7; WANDDICKE = 1.8; SCREW_HEIGHT = 13; SCREW_OUTER = 48; SCREW_INNER = 79; schirm(); t_d1 = 3;...
glb/cad_138cd62f5b59.glb
Create a Dentelle ceiling lamp shade by starting with a central cylinder that has a radius of 49.5mm and a height of 5mm, centered on the origin. Around this center, construct a hollow threaded shell using a helix with a coil diameter of 2.5mm and a central thread diameter of 83mm. The coils should have a vertical sepa...
include <screw.scad> $fn=90; schirm(); t_d1 = 2.5; t_d2 = 83; t_h1 = 1.5; t_h2 = 8; module schirm() { difference(){ union(){ translate([0,0,2.5]) cylinder(h=5,r=99/2, center=true); translate([0,0,5]) difference(){ screw_thread( t_d1, t_d2, t_h1, t_h2 ); translate([0,0,t_h2/2-0.5]) cylinde...
glb/cad_a6c40da67c10.glb
Create a Dentelle ceiling lampshade by generating a revolved 3D profile. Start with a base shape formed by the hull of a circle with a radius of 55mm positioned at a height of 115mm, a square base of 45mm, and another circle with a radius of 30mm centered at a height of 80mm. Rotate this profile 360 degrees around the ...
$fn=90; SCALE =2.5; HEIGHT = 50*SCALE; DIAMETER = 50*SCALE; FLOOR = 18*SCALE; WEIGHT_CENTER = 32*SCALE; WEIGHT_RADIUS = 12*SCALE; TOP_RADIUS = 22*SCALE; TOP_EXCENTER = 0*SCALE; KABELOEFFNUNG = 7; WANDDICKE = 1.8; LOECHER_ANZAHL = 8; schirm(); module innen() { translate([-0.01,-0.01,0]) difference() ...
glb/cad_5bd15c5858ff.glb
Create a syringe mount for a Frostruder by constructing a central ring and two attached rectangular blocks. Start with a main body consisting of a 20mm by 70mm by 12mm rectangular block centered on the X and Z axes, merged with a 20-sided prism (cylinder) that has a radius of 19.5mm and a height of 12mm, centered at X=...
size = 33; materialDelete="YES"; difference() { union() { translate(v=[0,0,6]) cube(size=[20,70,12],center=true); translate(v=[0,-7,6]) cylinder(r=(size+6)/2,h=12,center=true,$fn=20); } translate(v=[0,-7,6]) cylinder(r=size/2,h=12,center=true,$fn=20); translate(v=[0, 31.5, 6]) rotate(a=[90,0,90]) cyli...
glb/cad_5def02e1780a.glb
Create a printable syringe for a Frostruder by constructing a composite geometric shape. Start with a main body consisting of a 20-sided prism cylinder with a radius of 16mm and a height of 50mm, centered vertically at 25mm. On top of this, add a 20-sided conical section that transitions from a radius of 16mm at its ba...
difference() { union() { translate(v=[0,0,25]) cylinder(r=16, h=50, center=true, $fn=20); translate(v=[0,0,75]) cylinder(r1=16, r2=1, h=50, center=true, $fn=20); } translate(v=[0,0,30]) cylinder(r=15.16, h=40, center=true, $fn=20); translate(v=[0,0,75]) cylinder(r1=15.16, r2=0.16, h=50, center=true,$fn=20); tr...
glb/cad_9aa8fb6f04ea.glb