Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a replacement knob for an M-Audio iControl GarageBand Controller. Start by constructing a base cylinder with a diameter of 8.2mm and a height of 8.2mm. On top of this base, add a second cylinder with a diameter of 11mm and a height of 11mm. From the center of this combined structure, remove a vertical cylinder w...
$fn=32; rotate([180,0,0]) { difference() { union() { difference() { union() { translate([0,0,8.2]) cylinder(d=11,h=11); cylinder(d=8.2,h=8.2); } cylinder(d=7,h=8.2+11-3); } translate([-2.6-.6,2,0]) cube([5.4+1,2,8.2+11-3]); translate([-2.6-.6,2.5,8.2]) cub...
glb/cad_dcac5f22f0a8.glb
Create a TEVO Tarantula z-mount consisting of two main rectangular sections joined together, with a total thickness of 5mm. First, create a base profile section that is 20mm wide and 100mm long. Along the center line of this profile, create a series of 3.9mm diameter holes spaced every 0.25 units of the length, start...
$fn=30; mount_thickness = 5; profile_width = 20; profile_length = 100; edge = 8; motor_mount_width=60.9; motor_mount_length=42; side_height=40; difference(){ cube([profile_width,profile_length,mount_thickness]); for (i = [0.25:0.25:0.75]) { translate([profile_width/2,profile_length*i,0]) cylinder(d=3...
glb/cad_84b0cf36fe6e.glb
Create a tweezer cap by constructing a solid tapered form and hollowing out the center. Start with a shape that blends a sphere with a radius of 2mm positioned at a height of 22mm, and a cylinder with a base radius of 4.5mm and a top radius of 1.75mm reaching up to that same 22mm height. From this solid volume, remove ...
$fn = 100; difference() { hull() { translate([0, 0, 22]) sphere(r=4/2); cylinder(h=22, r1=9/2, r2=3.5/2); } translate([0, 0, -0.5]) cylinder(h=21, r1=6/2, r2=3/2); }
glb/cad_66db3bc74ae0.glb
Create a double helix involute gear with 16 teeth and a module of 2mm. The gear should have a total thickness of 4mm. The teeth must be constructed as a double helix, meaning they twist in one direction for half the thickness and then mirror that twist for the remaining half. In the center of the gear, create a mounti...
teeth = 16; mod = 2; thickness = 4; details = 0.5; skip_after = 0; enable_inner_section = 1; inner_section = 1.5; inner_thickness = 2; hole = 2.5; hole_shape = 0; minor_hole_radius = 3; auto_hole_height = 1; hole_height = 2; generate_screw_hole = 0; screw_hole_radius = 1; screw_support = 1.5; screw_head...
glb/cad_b01350fd02ff.glb
Create a puzzle generator that produces a grid of 4 by 6 interlocking pieces, each with a base side length of 25mm and a total thickness of 2mm. For each individual piece, start with a square of 24.6mm (side length minus a 0.4mm spacing). To create the interlocking tabs, use circles with a radius of 2.5mm. On the rig...
piece_side_length = 25; piece_height = 2; xs = 4; ys = 6; spacing = 0.4; module puzzle_piece(side_length, spacing) { $fn = 48; circle_radius = side_length / 10; half_circle_radius = circle_radius / 2; side_length_div_4 = side_length / 4; bulge_circle_radius = circle_radius - spacing; difference() { square(si...
glb/cad_682beaca8f33.glb
Create a nozzle motor rocket guide by stacking three concentric geometric sections along a central vertical axis. Start with a cylindrical base that has a diameter of 17mm and a height of 5mm. Directly on top of this base, add a second cylinder with a diameter of 15mm and a height of 1mm. Above this second cylinder, co...
ID = 15; ANGLE = 30; SHOULDER=1; BASE_DIAMETER = 17; BASE_HEIGHT = 5; $fn=100; union(){ translate([0,0,BASE_HEIGHT]){ translate([0,0,SHOULDER]){ cylinder(h=ID*tan(ANGLE), r1=ID/2, r2=0); } cylinder(h=SHOULDER, r1=ID/2, r2=ID/2); } cylinder(h=BASE_HEIGHT, r1=BASE_DIAMETER/2, r2=BASE_DIAMETER/2); cylinder(h=BASE_HE...
glb/cad_c6afa827edef.glb
Create three distinct flat spring models. Each model is a linear extrusion with a depth of 5mm. For the first spring, create a zig-zagging coil structure with 3 coils. Set the initial width to 30mm and apply a width change of -5mm per coil, aligned to the left. Use a coil thickness of 2mm and a line distance of 1.5mm....
pi = 3.14159; s2 = 1.41421; function sn(ang) = sin(ang*180/pi); function cs(ang) = cos(ang*180/pi); function tn(ang) = tan(ang*180/pi); function atn(rat) = atan(rat)/180*pi; function asn(rat) = asin(rat)/180*pi; function involute_ang(r, rb) = pow(pow(r, 2)-pow(rb, 2), 0.5)/rb - atn(pow(pow(r, 2)-pow(rb, 2), 0...
glb/cad_0184e01269b2.glb
Create a rectangular base block measuring 60mm in length, 30mm in width, and 20mm in height. Centered on the top face of this block, construct a complex curved protrusion that blends into the surface via an inner bevel. This protrusion is formed by a torus with a major radius of 10mm and a minor tube radius of 5mm. The...
h=20; h_bevel=3; r_bevel=3; function h_bev(i)=h_bevel*(1-cos(90*i)); function r_bev(i)=((i==1)?e:0)+r_bevel*(1-sin(90*i)); e=0.001; fn_bevel=16 ; $fn=32; module part_base(){ cube([60,30,20]); } module part1(){ translate([25,15,20]) rotate([0,45,0]) cylinder(40,10,2.5,true,$fn=4); } module part2(){ transl...
glb/cad_8d42ab8b692c.glb
Create a doll bed centered on the origin. Start with a rectangular base measuring 82mm by 45mm with a height of 20mm. At the head and foot of the bed, create two vertical boards that are 2mm thick and 42mm wide. The headboard should be 20mm high, while the footboard is 16mm high; both should be shaped with a 30-facet c...
base(); pillow(); posts(); skirt(); headBoard(); footBoard(); module base() { difference() { cube([82, 45, 20], center=true); translate([0,0,406]) rotate([0,90,0]) cylinder(d=800, h=90, center=true, $fn=400); } } module pillow() { translate([30,0,7]) cube([18,40,4], center=true); difference(...
glb/cad_49bc45be1fdc.glb
Create an upor by starting with a solid rectangular block measuring 20mm in width, 22mm in depth, and 18mm in height. Remove a smaller rectangular section from the center of the block, measuring 20mm in width, 10mm in depth, and 8mm in height, leaving a 12mm deep ledge on one side and a 10mm thick wall on the other. Fi...
quality = 360; x=20; y=22; z=18; rod=6; difference () { cube ([x, y, z]); cube ([x,y-12,z-10]); translate ([x/2,y-6, z/2]) rotate ([0,0,90]) cylinder (d=rod+0.3,d2=rod+0.3,h=z, $fn=quality, center=true); }
glb/cad_934edac3e181.glb
Create a solid rectangular block measuring 60mm in length, 30mm in width, and 20mm in height, centered on the origin. From this main body, remove a rectangular slot measuring 60mm by 10mm by 8mm, positioned at the center of the length and height but shifted to the bottom edge of the width. Additionally, remove a tapere...
quality = 360; difference () { cube ([60,30,20], center=true); translate ([0,-30/2+10/2,-20/2+8/2]) cube ([60,10,8], center =true ); translate ([0,0,4]) rotate ([90,0,0]) cylinder (d1=5.3, d2=6, h=30, $fn=quality , center =true ); translate ([-30,16.2,0]) rotate ([0,0,45]) ...
glb/cad_57b75a2e33b0.glb
Create a sphere handle by starting with a sphere 45mm in diameter. Attach a cylinder to the side of the sphere with a diameter of 22mm and a height of 15mm, extending outward from the center. Bore a 5mm diameter hole straight through the center of the sphere and the attached cylinder to accommodate a shaft. Additionall...
quality = 120; difference () { union () { sphere (d=45, $fn=quality); translate ([45/2-5,0,0]) rotate ([0,90,0]) cylinder (d=22, d2=22, h=15, $fn=quality); } translate ([3,0,0]) rotate ([0,90,0]) cylinder (d=5, d2=5, h=30, $fn=36); tran...
glb/cad_2fbfa80561d3.glb
Create a bottle tray stand consisting of a flat rectangular top plate and four hollow corner pillars. Start by creating a solid rectangular plate with a length of 175mm, a width of 175mm, and a thickness of 3mm. At each of the four corners of the plate, add a square pillar that extends downwards. Each pillar must have ...
insideWidth=155; insideLength=155; insideHeight=90; topThick=3; pillarWidth=10; pillarWallThick=1.9; pillarInner = pillarWidth-(pillarWallThick*2); outsideWidth=insideWidth+(pillarWidth*2); outsideLength=insideLength+(pillarWidth*2); cube ([outsideLength, outsideWidth, topThick]); pillar(); translate([outsideLeng...
glb/cad_fab0c5167636.glb
Create a Generic NEMA 17 Printed Axis consisting of a central block with integrated rod holders and a motor mount. Start with a main body that is a cube 70mm wide, 10mm deep, and 50mm high, centered on the origin. Add a second rectangular slab 70mm wide, 50mm deep, and 10mm high, positioned at [0, 25, -20]. On the lef...
rodsize = 9.525; bushingOD = 12.7; ThreadedRodOD = 8; boltsize = 6; module smallnut() { cylinder(h=3,r=8/2,$fn=6); } module BaseCommon() { difference() { union() { cube(size=[70,10,50],center = true); translate(v=[0,25,-20]) cube(size=[70,50,10],center = true); translate(v=[-27,-5,16]) rotat...
glb/cad_1c0cfb96bc90.glb
Create a Stress Cube Snake consisting of two types of 15mm cubes. For the middle cubes, start with a solid 15mm cube and remove a 2.4mm diameter cylindrical hole passing through the center of two opposite faces along the X-axis. Additionally, remove two rectangular slots measuring 2.4mm wide, 15mm high, and 7.5mm deep,...
show_cubes = "Both"; cube = 15; elastichole = 2.4; $fn = 72; module base() { hull(){ translate([0,0,0]) cube([cube,cube,cube],center = false); } } module holes_Middle() { rotate([0,90,0]) translate([-cube/2,cube/2,0]) cylinder(h = cube+1, d = elastichole, center = false); t...
glb/cad_73d661033256.glb
Create a socket holder by extruding a 2D profile to a height of 9.5mm. The base profile is formed by taking a shape and removing several sections. Start with a scaled oval centered at [15, 6] with a width of 28mm and a height of 5.6mm. From this, remove a rectangular slot measuring 22mm by 2mm positioned at [3.9, 5], a...
linear_extrude(height =9.5){ scale([1.05,1.05,1.05]){ difference(){ translate([15,15*.4,0]){ scale ([1,.4]){ circle(14);} } translate([3.9,15*.4-1,0]){square ([22,2]);} translate([0,8,0]){square (30);} translate([4.9,7,0]){square(20);} } } scale([.98,...
glb/cad_9d6cdd84919f.glb
Create a GoPro simplified clip mount consisting of a base mount and a triple-pronged attachment. Start with a rectangular base 33mm wide, 45mm long, and 6mm high. Round the four vertical corners with a 5mm radius. In the center of the base, create a guide slot 4.5mm wide and 2.4mm high, running along the length of th...
triplea = 0; cslotw = 4.5; csloth = 2.4; mountl = 45; mountw = 33; mounth = 6; latchl = 26.3; latchc = 21.5; latchw = 27.5; latchh = 3.4; cradius=5; $fn=36; latchs = (mountw-latchw)/2; latchcs = (mountw-latchc)/2; springd = latchl*.8; springw = latchs+2; sfudge = .2; module corner(w,l,h) { translate([w-cradius/2,...
glb/cad_08dd204aec2c.glb
Create a strut brace bracket with a total width of 20mm and a height of 23mm. The main body is a rectangular block 40mm long and 13mm thick, centered on the X and Y axes. Add two semi-cylindrical caps to the ends of the block along the X-axis. Each cap has a radius of 11.5mm, extending the total length of the part to...
$fn=50; barDepth = 40; barThickness = 13; halfBarThickness = barThickness / 2; bracketWidth = 20; bracketThickness = 5; bracketOD = (barThickness/2)+bracketThickness; pivotBoltRadius = 4.5; pivotBoltSpacing = (barThickness/2) + (bracketThickness * 2) + (pivotBoltRadius / 2); pivotBoltCenter = barDepth / 2 + pivotBolt...
glb/cad_bed10b22cf99.glb
Create a fuel pressure regulator mount consisting of a rectangular base and a cylindrical mounting head. The base is a rectangular block 65mm long, 17mm deep, and 20mm wide. At one end of the base, add a cylindrical head with a diameter of 20mm and a height of 20mm. Center a vertical hole with a diameter of 9mm throu...
$fn=50; barDepth = 40; barThickness = 13; halfBarThickness = barThickness / 2; bracketWidth = 20; bracketThickness = 5; bracketOD = (barThickness/2)+bracketThickness; pivotBoltRadius = 4.5; pivotBoltSpacing = (barThickness/2) + (bracketThickness * 2) + (pivotBoltRadius / 2); pivotBoltCenter = barDepth / 2 + pivotBolt...
glb/cad_3f98fc35c29e.glb
Create a Customizable Spacer Tube with a total height of 25mm. Start by creating a central cylindrical hole with a diameter of 10mm that runs through the entire height. Surround this hole with a solid inner cylinder with a diameter of 18mm (10mm hole plus 4mm wall on each side). Add a large outer ring with an outer d...
Tube_Height = 25; Hole_Diameter = 10; Inner_Width = 4; Outer_Diameter = 60; Outer_Width = 4; Spoke_Quantity = 6; Spoke_Width = 2; Additional_Rings = 1; Add_Ring_Width = 2; errorFree = false; errorFree = true; if (errorFree){ difference(){ union(){ spokes(); outerRing(); extraRings(); centerRing...
glb/cad_ac1cd65d68c2.glb
Create a set of frame supports for a Prusa i3 printer consisting of two distinct parts: a top holder and a leg. For the leg, create a block 22mm wide and 18mm thick. The profile should be a polygon with chamfered corners of 2mm. Incorporate two cylindrical holes passing through the 18mm thickness, each with a diameter...
showAssembly=0; part="leg"; frameDistance=119; supportRodDiameter=8; legChamfer=2; topHolderThickness=6; topHolderCorners=5; topHolderPrintAlign=1; topHolderHeight=16; washerCutDepth=7; yEndRodDiameter=8; legWidth=22; legThickness=18; holeDistance1=10; holeDistance2=30; frameHeight=370; topHolderScrewSi...
glb/cad_3d8e8ce98a39.glb
Create a locomotive repair wheel consisting of a tiered cylindrical base and a central hub with radial spokes. Start by creating a wide, flat cylinder with a radius of 34.5mm and a height of 9mm. Centered on top of this base, add a second, taller cylinder with a radius of 34mm and a height of 20mm. Bore a central hole ...
difference(){ union(){ cylinder (r=69/2,h=9, $fn=100); cylinder (r=68/2,h=20, $fn=100); } translate([0,0,2]) cylinder (r=66/2,h=20, $fn=100); } difference(){ translate([0,0,-0])cylinder (r=12/2,h=25, $fn=30); translate([0,0,2]) cylinder (r=4.5/2,h=25, $fn=30); } for (a=[0:5]){ rotate([0,0,360/6*a])translate([19,0,8]) ...
glb/cad_0bb8987b800f.glb
Create a parametric jar with a total height of 250mm. The main body is a hollow cylinder with an outer diameter of 120mm and a wall thickness of 5mm. The bottom edge is rounded with a radius of 10mm. The top of the jar transitions into a narrower neck with an outer diameter of 95mm and a length of 20mm. This transitio...
echo(version=version()); height=250; od_body=120; od_neck=95; neck_length=20; wall=5; corner_rad=10; pitch=4; desired_angle=60; smooth=75; { top_angle=desired_angle; top_length=((od_body-od_neck)/2-(corner_rad-corner_rad*(cos(top_angle)))-(corner_rad+wall-(corner_rad+wall)*(cos(top_angle))))/sin(top_angle); ...
glb/cad_679726c66bba.glb
Create a parametric jar lid test object. Start by creating a hollow cylindrical body with an outer diameter of 120mm and a total height of 250mm. The main body should have a wall thickness of 5mm. At the top of the cylinder, create a neck section with an outer diameter of 95mm and a length of 20mm. The transition betw...
echo(version=version()); height=250; od_body=120; od_neck=95; neck_length=20; wall=5; corner_rad=10; pitch=4; desired_angle=60; smooth=75; { top_angle=desired_angle; top_length=((od_body-od_neck)/2-(corner_rad-corner_rad*(cos(top_angle)))-(corner_rad+wall-(corner_rad+wall)*(cos(top_angle))))/sin(top_angle); ...
glb/cad_ae86a8ea904a.glb
Create a Printed Dipole Centre Insulator with a uniform thickness of 6mm. Start with a base rectangular block measuring 80mm wide by 70mm deep. Add two cylinders with a radius of 22mm and a height of 6mm, positioned with their centers at [15, 55] and [65, 55]. Integrate a rectangular block measuring 52.5mm by 12mm by 6...
height=6; difference(){ union(){ cube([80,70,height]); translate([15,55,0])cylinder(h=height,r=22); translate([65,55,0])cylinder(h=height,r=22); translate([15,65,0])cube([52.5,12,height]); } union(){ translate([-10,10,-1])cylinder(h=height+2,r=37.5); tr...
glb/cad_8b58d5e71875.glb
Create a two-part symmetrical mold for a Y-shaped headphone wire connector. Each half is a mirrored version of the other. Start with a central cylindrical base with a diameter of 19.5mm and a height of 8.25mm. From this base, extend three rectangular arms. One arm should be a central jack sheath measuring 7mm wide by ...
wireDiameter=2; sheathDia=7; earSheathLen=10; jackSheathLen=15; texture=1; jointDia=13; earAngle=70; boltDiameter=3; ovr=1.05; textureSpacer=texture*1.5; boltDia=boltDiameter*ovr; wireDia=wireDiameter*ovr; module texturedCyl(len=10) { union() { difference() { cylinder(d=sheathDia, h=len, center=tr...
glb/cad_e5bbffb77a0b.glb
Create a wire antenna insulator by forming a capsule-shaped body. Start with a central cylinder 60mm long with a radius of 12.5mm, oriented horizontally. Cap both ends of this cylinder with hemispheres of the same 12.5mm radius to create a smooth, rounded oblong shape. To create the mounting channels, remove two rectan...
difference(){ union(){ translate([0,0,5])rotate([90,0,90])cylinder(h=60,r=25/2); translate([0,0,5])sphere(r=25/2); translate([60,0,5])sphere(r=25/2); } union(){ translate([-20,-25,-10])cube([100,50,10]); translate([-20,-25,10])cube([100,50,10]); transla...
glb/cad_d255e6b2f100.glb
Create a toy helicopter body by starting with a base cylinder that has a radius of 20mm and a height of 2.5mm, then scale it by a factor of 1.7 along the X-axis to create an elliptical disk. From this main body, remove a smaller elliptical hole by scaling a cylinder with a radius of 9mm and a height of 2.5mm by a facto...
body(); module body() { difference() { scale([34 / 20, 1, 1]) cylinder(h = 2.5, r = 20, center = false, $fn = 120); rotate ([0, 0, -29]) translate([12, 10, 0]) scale([14 / 9, 1, 1]) cylinder(h = 2.5, r = 9, center = false, $fn = 60); tra...
glb/cad_07394037426e.glb
Create a toy helicopter base by starting with a flat, elliptical cylinder that is 2.5mm thick, with a radius of 20mm and scaled by 1.7 on the X-axis to create an oval footprint. From this base, remove a smaller concentric elliptical cylinder shifted 7mm along the Y-axis and scaled by 1.4 on the X-axis to create a curve...
legs(); module legs() { difference() { scale([34 / 20, 1, 1]) cylinder(h = 2.5, r = 20, center = false, $fn = 120); translate([0, 7, 0]) scale([28 / 20, 1, 1]) cylinder(h = 2.5, r = 20, center = false, $fn = 120); translate([13.75, -19, 0]) ...
glb/cad_9f6480d868ba.glb
Create a toy helicopter propeller consisting of a central mount and three radiating blades. Start by creating a central cylindrical mount with a diameter of 12.5mm and a height of 5mm. Drill a small hole with a diameter of 1mm through the center of this mount, leaving a 2mm offset from the bottom. From the center of th...
propeller(6.25, 2.5, 5, 3, 22, 2.5); module propeller(mount, hole, h1, c, l, h2) { mount(r1 = mount, r2 = hole, h = h1); blades(c = c, l = l, allowance = hole, h = h2); } module mount(r1, r2, h) { difference() { cylinder(d = r1 * 2, h = h, centre = true, $fn = r1 * 8); translate([0, 0,...
glb/cad_10fb4f6ead18.glb
Create a motor mount for a toy helicopter with a uniform thickness of 2.5mm. Start with a rectangular base measuring 27mm wide by 28mm deep. On the right side of this rectangle, add a semi-circular extension with a radius of 32mm, using an 80-facet resolution for the curve. Cut a circular hole with a radius of 10mm, ...
motor_mount(); module motor_mount() { width = 27; depth = 28; thickness = 2.5; union() { difference() { union () { linear_extrude(thickness) square ([width, depth]); translate([-2, 14, 0]) ...
glb/cad_d0f751a35842.glb
Create a toy helicopter base plate with a thickness of 2.5mm. Start with a rectangular block 27mm wide by 28mm deep. On the right side, add a semi-circular extension with a radius of 32mm, centered vertically at 14mm from the bottom, to create a rounded end. Integrate two small rectangular link plugs, each 8.5mm wide...
bottom(); module bottom() { width = 27; depth = 28; thickness = 2.5; union() { difference() { union () { linear_extrude(thickness) square ([width, depth]); translate([-2, 14, 0]) difference...
glb/cad_f31cbf2b2e3a.glb
Create a toy helicopter tail piece with a uniform thickness of 2.5mm. Start by creating a circular base with a radius of 15mm and a facet resolution of 120. From this base, remove a square section measuring 30mm by 30mm, positioned with its center offset to leave a semi-circular shape. Within this remaining semi-circle...
tail(); module tail() { thickness = 2.5; union() { difference() { cylinder(h = thickness, r = 15, center = false, $fn = 15 * 8); translate([-3, -15, 0]) linear_extrude(thickness) square ([30, 30]); translate([-7.25, -11....
glb/cad_d4c7113311cc.glb
Create a parametric coil corpus by constructing a central vertical cylinder with a radius of 3mm and a total height of 20mm. Add two wider cylindrical flanges, each with a radius of 6mm and a height of 2mm: place one at the very base and another at the top, positioned 14mm above the base. Use a 20-facet resolution for ...
module parametric_coil(r_corpus=3,r_border=6,h_border=2,h_corpus=12,h_grip=4, r_hole=1.5) { $fn=20; height=h_border*2+h_corpus+h_grip; difference() { union() { cylinder(r=r_border,h=h_border); cylinder(r=r_corpus,h=height); translate([0,0,h_corpus+h_border]) cylinder(r=r_border, h=h_border); } transla...
glb/cad_49392f4ab4b2.glb
Create a Children's Tent Joiner consisting of a hollow three-way corner connector. Start by creating a solid core composed of a central sphere with a radius of 6.85mm, with three cylinders of radius 6.85mm and length 30mm extending from the center along the X, Y, and Z axes. Surround this entire core with a larger oute...
$fn=60; epsilon=0.1; inner_diameter=11.1; t=1.75; len=30; module assemble(rad) { cylinder(r=rad,h=len); rotate([0,90,0]) cylinder(r=rad,h=len); rotate([90,0,0]) cylinder(r=rad,h=len); sphere(r=rad); } difference() { assemble(inner_diameter/2+t); assemble(inner_diameter/2); ...
glb/cad_c47915d83d64.glb
Create a camera rig consisting of a lens gear and a mounting system. First, construct a lens gear for a 50mm f/1.4 lens. Create a spur gear with a circular pitch of 100, 50, 65, a thickness of 10mm, and a rim width of 3mm. The gear should have 61 teeth and a radius based on a circumference of 239mm. Attach a flange t...
use <parametric_involute_gear_v5.0.scad> use <spur_generator.scad> pi = 3.1415926535897932384626433832795; module lens_gear(circumference, teeth) { n1 = teeth; p = fit_spur_gears(100, 50, 65); width = 10; gap = 5; radius = circumference/(2 * pi); flen = 17; fwidth = 6; module flange(len, thickness, width, ga...
glb/cad_86cdbf703af7.glb
Create a replacement trekking stick foot by constructing a tapered solid cylinder with a height of 40mm. The body should have a top diameter of 20mm and a bottom diameter of 25mm, with both the top and bottom edges rounded to a radius of 1mm. Inside this body, create a centered, tapered hollow hole that extends from th...
height = 40; top_diam = 20; bottom_diam = 25; hole_top_diam = 11.5; hole_bottom_diam = 10.8; hole_depth = 27; edge_rad = 1; foot(); module foot() { difference() { body(); hole(); } } module body() { hull() { translate([0, 0, height-edge_rad]) torus(edge_rad, to...
glb/cad_661c51133a9d.glb
Create a BBlink for SCORX ball hinge. Start by placing two spheres with a radius of 3mm each, centered 25mm apart along the x-axis at positions (12.5, 0, 0) and (-12.5, 0, 0). Connect these two spheres with a central hull that blends two small cylinders of 1.2mm radius located at the sphere centers and a central cylind...
linkrad=6; llen=25; lwi=6; lhi=0.66; legu(); module legu(lrad=linkrad,ll=llen,lw=lwi,lh=lhi,sthns=34){ difference(){ translate([0,0,lrad/3.5]) union(){ translate([ll/2,0,0]) sphere(r=lrad/2,$fn=sthns); translate([-ll/2,0,0]) sphere(r=lrad/2,$fn=sthns); hull(){ translate([ll/2,0,-1]) rotate([0,90,0]) cylinder(r=...
glb/cad_1c09ed5480ef.glb
Create a kitchen roll holder consisting of two identical mirrored clamping hooks. For each hook, start with a base rectangular block 20mm long, 2mm high, and 10mm wide. On one end, add a vertical rectangular wall 2.5mm thick and 19.5mm high (17mm inner height plus 2.5mm) by 10mm wide. Attached to the top of this wall, ...
width = 10; clamp_inner_height = 17; roll_holder_length = 30; holder("right",width,clamp_inner_height,roll_holder_length); translate([30,0,0]) holder("left",width,clamp_inner_height,roll_holder_length); module holder(side,width,clamp_inner_height,roll_holder_length){ if(side == "right"){ translate([0,clamp_inne...
glb/cad_0a685996b5e6.glb
Create an all-terrain wheel for a B-robot Evo. Start by constructing a hollow cylinder with an outer diameter of 96.5mm, a width of 12.5mm, and a wall thickness of 2.5mm. To create the tread, extrude a series of chevron-shaped patterns (using the ">" character) outward from the outer surface of the cylinder. These tr...
bracelet_diameter = 96.5; bracelet_width = 12.5; bracelet_thickness = 2.5; bracelet_text = ">>>>>>>>>>"; bracelet_font = "DejaVu Sans:style=Bold"; bracelet_font_size = 17; bracelet_spacing = 10; bracelet_text_rep = 3; bracelet_voffset = -1.5; bracelet_kerning = 0; logo_enabled = 0; logo_offset = -7; bevel_si...
glb/cad_50f678769b4c.glb
Create a Banker Box Handle Helper by constructing a hollowed-out cylinder with a height of 80mm and an outer diameter of 40mm. The cylinder should be rendered with a low facet count of 14 sides to give it a prismatic appearance. To create the handle opening, remove a central rectangular section from the cylinder. This ...
ht = 80; notch = 5; th = 3; di = 40; ra = di/2; fn = 14; difference() { cylinder(r=ra,h=ht, center=true,$fn=fn); translate([0,th,0]) cube([notch,di,ht+1],center=true); difference() { cylinder(r=ra-th,h=ht+1, center=true,$fn=fn); cube([notch+th*2,di,ht+2],center=true); } }
glb/cad_738f2f560233.glb
Create a 2.5" SSD/HDD slide-in tray with a total width of 75.6mm, a total depth of 123mm, and a total height of 10mm. The main body is a rectangular frame. From the front face, remove a central rectangular section to create two side arms, each 2.9mm wide and 112mm long, with an inner height of 8.9mm. Along the cent...
text="Linux"; textSize=6; offsetToCase = 2.9; totalDepth = 123; totalWidth = 75.6; totalHeight = 10; armWidth = 2.9; armLength = 112; armLengthInner = 101.4; armHeight = 8.9; headTotalDepth =22.7; headMetalDepth =11; offsetHeight = 0.3; slitHeight = 6; slitWith = 3; slitDistance=2; screwholeDiameter = 3.3; screw...
glb/cad_0e7a90c5fe02.glb
Create a two-part parametric packaging box for an electronic device. Each half is a hollowed-out rounded cuboid with external dimensions of 38.5mm length, 31.5mm breadth, and 24.5mm height. The walls are 3mm thick with corner radii of 4mm. For the top half, create a hollow shell with an internal lip 1.5mm high that al...
super_accurate_fit=0.1; force_fit=0.2; hold_fit=0.3; slide_fit=0.4; free_fit=0.5; a_bit=0.1; side_by_side=1; clearance= super_accurate_fit; clearance_pcb=0.5; int_l=31.5; int_b=25.5; int_h=23.5; int_r=1; curve_f=3; wall_t=3; lip_t = (wall_t) / 2; lip_h=1.5; lip_p=1; post_outer_r=2.5; post_inner_r=0....
glb/cad_75e036051f0d.glb
Create a 3D embossed label representing "Y-" for a packaging axis. The shape is composed of two distinct parts extruded to a height of 1mm. First, create a stylized letter "Y" by extruding a polygon with vertices at [0,0], [3,-6], [3,-12], [5,-12], [5,-6], [8,0], [6,0], [4,-4], [2,0], [8,-5], [8,-7], and [14,-7], closi...
module yminus(extrude_height){ linear_extrude(height = extrude_height) polygon(points = [[0,0],[3,-6],[3,-12],[5,-12],[5,-6],[8,0],[6,0],[4,-4],[2,0],[8,-5],[8,-7],[14,-7],[14,-5]] ,paths = [ [0,1,2,3,4,5,6,7,8],[9,10,11,12]] ); } yminus(1);
glb/cad_069e872e0c63.glb
Create a 3D embossed letter "Z" with a thickness of 1mm. The shape is defined by a 2D profile extruded along the Z-axis. The profile consists of two separate closed polygons. The first, larger polygon forms the main body of the letter "Z" with vertices at [0,0], [8,0], [8,-2], [2,-8], [8,-8], [8,-10], [0,-10], [0,-8], ...
module zminus(extrude_height){ linear_extrude(height = extrude_height) polygon(points = [[0,0],[8,0],[8,-2],[2,-8],[8,-8],[8,-10],[0,-10],[0,-8],[6,-2],[0,-2],[9,-4],[9,-6],[15,-6],[15,-4]] ,paths = [ [0,1,2,3,4,5,6,7,8,9],[10,11,12,13]] ); } zminus(1);
glb/cad_68f4a53cece5.glb
Create a two-part parametric packaging box for an electronic device. Each half is a hollowed-out rounded cuboid with external dimensions of 38.5mm length, 31.5mm breadth, and 24.5mm height. The walls are 3mm thick with corner radii of 4mm. For the top half, create a hollow shell with an internal lip 1.5mm high that al...
super_accurate_fit=0.1; force_fit=0.2; hold_fit=0.3; slide_fit=0.4; free_fit=0.5; a_bit=0.1; side_by_side=1; clearance= super_accurate_fit; clearance_pcb=0.5; int_l=31.5; int_b=25.5; int_h=23.5; int_r=1; curve_f=3; wall_t=3; lip_t = (wall_t) / 2; lip_h=1.5; lip_p=1; post_outer_r=2.5; post_inner_r=0....
glb/cad_433950b2cdcf.glb
Create a belt loop saver consisting of two joined rectangular sections. First, construct a main rectangular base with overall dimensions of 57.5mm in width, 18.2mm in height, and 10.5mm in thickness. This base should have rounded corners with a 3mm radius. Carve a rectangular hole out of the center of this base measuri...
use <MCAD/boxes.scad> thickness = 10.5; radius = 3; module beltloop() { difference() { width = 42+9+6.5; height = 13+3.2+2; union() { translate([width/2, height/2, thickness/2]) roundedBox([width, height, thickness], radius, true); translate([0, height-radius, 0]) cube([radius, radius, thic...
glb/cad_96d008993e89.glb
Create a plastic filament spool holder support by constructing a rectangular block with a width of 26mm, a depth of 45mm, and a height of 45mm, centered at [0, -7, 14]. From this block, remove two cylindrical holes with a radius of 9mm and a height of 27mm. Position the first hole so its center is aligned with the bl...
radius_stick=9; height_cylinder=3*radius_stick; angle_between=60; cube_height=26; num_connectors=2; translate_height=15; a_bit=0.1; huge_cube=100; bolt_diameter=3; difference(){ half_support (radius_stick, height_cylinder, angle_between, cube_height, num_connectors, translate_height, a_bit, huge_cube, bolt_diameter);...
glb/cad_6f776bdeec88.glb
Create a plastic filament spool holder support consisting of two mirrored halves. For each half, start with a central rectangular block measuring 26mm in width, 45mm in depth, and 45mm in height. From this block, remove a cylindrical section with a radius of 9mm and a height of 27mm to create a socket for a wooden do...
radius_stick=9; height_cylinder=3*radius_stick; angle_between=60; cube_height=26; num_connectors=2; translate_height=15; a_bit=0.1; huge_cube=100; bolt_diameter=3; difference(){ half_support (radius_stick, height_cylinder, angle_between, cube_height, num_connectors, translate_height, a_bit, huge_cube, bolt_diameter);...
glb/cad_51a7d1687d59.glb
Create a plastic filament spool holder support consisting of two mirrored halves. For each half, start with a central rectangular block measuring 26mm in height, 45mm in length, and 45mm in width. From this block, remove two cylindrical holes with a radius of 9mm to accommodate wooden dowels. These holes should be ce...
a_bit=0.1; fudge_factor=1.05; radius_stick=9; height_cylinder=3*radius_stick; angle_between=60; cube_height=26; cube_length=45; num_connectors=2; translate_height=15; huge_cube=100; bolt_diameter=3; inverted_shape=1; inner_countersink=2; outer_countersink=1; difference(){ half_support (radius_stick*fudge_factor, he...
glb/cad_4052ee7140ae.glb
Create a plastic filament spool holder support consisting of two mirrored halves. For each half, start with a central rectangular block measuring 26mm in height, 45mm in length, and 45mm in width. Subtract two cylindrical holes from the block to accommodate wooden dowels with a radius of 9mm. These holes should be po...
a_bit=0.1; fudge_factor=1.05; radius_stick=9; height_cylinder=3*radius_stick; angle_between=60; cube_height=26; cube_length=45; num_connectors=2; translate_height=15; huge_cube=100; bolt_diameter=3; inverted_shape=1; inner_countersink=2; outer_countersink=1; difference(){ half_support (radius_stick*fudge_factor, he...
glb/cad_0b38fb82258a.glb
Create a plastic filament spool holder support consisting of two mirrored halves. Each half starts as a rounded cuboid with a length and width of 45mm and a height of 26mm, with corners rounded to a 10mm radius. In each half, create two cylindrical holes with a radius of 9.45mm (applying a 1.05 fudge factor to the 9mm...
a_bit=0.1; fudge_factor=1.05; radius_stick=9; height_cylinder=3*radius_stick; angle_between=60; angle_offset=7.5; cube_height=26; cube_length=45; half_separation=2; num_connectors=2; translate_height=15; huge_cube=100; bolt_diameter=3; inverted_shape=1; inner_countersink=2; outer_countersink=1; union(){ rotate(a=[0...
glb/cad_13d3fa4a1e4e.glb
Create a plastic filament spool holder support consisting of two mirrored halves. Each half starts as a rounded cuboid with a length of 45mm, a width of 45mm, and a height of 26mm. In each half, create two cylindrical holes with a radius of 9.45mm to accommodate wooden dowels. One hole is positioned to allow a dowel ...
a_bit=0.1; fudge_factor=1.05; is_pass_through=1; is_top_vertex=0; has_4th_hole=0; has_round_corners=1; radius_stick=9; height_cylinder=(7/3)*radius_stick; wall_thickness=3; angle_between=60; cube_height=(radius_stick+wall_thickness)*2; cube_length=(height_cylinder+2*(radius_stick+wall_thickness)); half_separation=2; ...
glb/cad_7c063a9eaeac.glb
Create a PCB holder consisting of a flat, rectangular frame. Start with a solid base block measuring 110mm in width, 80mm in length, and 5mm in height, centered on the origin. From the center of this block, remove a rectangular volume to create a recessed opening that is 100mm wide and 70mm long. This cutout should lea...
part = "sleeve"; width = 100; length = 70; height = 1.5; inset = 0.5; border = 5; base = 5; sleeve = 5; if (part == "holder") { translate([0, 0, (base) / 2]) difference(){ cube([width + (border * 2), length + (border * 2), base], true); translate([0, 0, (base - inset + 0.001) / 2]) cube([width, length, ...
glb/cad_ff73a330fed7.glb
Create a parametric linear bearing consisting of a central cylindrical sleeve integrated into a mounting block. The main body is a cylinder with an outside diameter of 15mm, an inside diameter of 8mm, and a total length of 24mm. The bearing features 8 equidistant longitudinal teeth carved into the outer surface. Each...
Inside_Diameter = 8; Outside_Diameter = 15; Length = 24; Wall_Thickness = 1.5; Number_of_teeth = 8; Block = "yes"; How_Many_Mounting_Holes = 2; Mounting_Holes_Diameter = 3.2; Nut_size = 5.4; Nut_Depth = 3; difference() { union() { if (Block == "yes") { cylinder (h=Length, d= Ou...
glb/cad_2b7352cda8d6.glb
Create a Google Fan Filter holder by starting with a square plate measuring 120mm by 120mm with a total height of 7mm. Round the three corners of the plate with a 10mm radius, leaving one corner square to allow for filter insertion. Within this plate, create four circular mounting holes with a diameter of 4.5mm. Posi...
size = 120; hole_spacing = 105; corner_radius = 10; thickness = 2; stand_off_length = 5; screw_size = 4.5; $filtersize=size+5; $c = sqrt($filtersize*$filtersize*2); $standoffwidth = screw_size+6; $screwoffset = (size-hole_spacing)/2; difference(){ union(){ cube([size,size,thickness+stand_off_length]);...
glb/cad_cfe666f15b18.glb
Create a universal nut and bearing holder adapter. Start by constructing a base block that is 20mm wide and 8mm thick. On one end, create a semi-cylindrical protrusion with a radius of 10mm and a height of 8mm, forming a rounded 90-degree bend. Through the center of the flat base and the rounded section, create a cir...
piece = "end"; hole = "bearing"; d_bearing = 12; width = 20; thickness = 8; M = 4.5; M2 = 8.0; $fn = 48; echo($fn); ra = width /2; ri = d_bearing /2; hi = thickness /2; if(piece == "end") if(hole == "bearing") holder($fn, false); else holder(6, false); else if(hole == "bearing"){ ...
glb/cad_1c2a227e5d24.glb
Create a stand for an HP dock consisting of a vertical support panel and a horizontal base plate. The vertical panel is a rectangular slab 10mm thick, 95mm wide, and 103mm tall. Within this panel, carve out four rectangular voids to create a grid-like frame: one void from y=15 to y=27 and z=2 to z=10; one from y=72 to ...
$fn=180; CubePoints1 = [ [ 0, 2, 2 ], [ 9, 2, 2 ], [ 9, 95, 2 ], [ 0, 95, 2 ], [ 0, 2, 41.5 ], [ 9, 2, 41.5], [ 9, 95, 103 ], [ 0, 95, 103 ]]; CubePoints2 = [ [ 0, 8, 8 ], [ 10, 8, 8 ], [ 10, 48, 8 ], [ 0, 48, 8 ], [ 0, 8, 37 ], [ 10, 8, 37 ], [ 10, 48...
glb/cad_bdf1c08642d0.glb
Create a switch blank for a Volkswagen Golf Mk1 dash. Start by constructing a central rectangular base that is 42.6mm wide, 24.5mm deep, and 2mm thick. On top of this base, center a second rectangular slab measuring 30mm wide, 17mm deep, and 3mm thick. Above that, add a third layer that is 39.7mm wide and 23.6mm deep w...
translate([0,0,8.5]) cube([30,17,3], true); translate([0,0,6]) cube([42.6,24.5,2], true); translate([0,0,2.5]) difference() { cube([39.7, 23.6, 5], true); union() { cube([36,21,6], true); cube([41,17.3,6], true); } } difference() { intersection() { ro...
glb/cad_d5edb2fb5137.glb
Create a customizable hole cap consisting of a thin circular flange and a hollow cylindrical plug. Start by creating a flat, circular disk with a diameter of 32mm and a thickness of 2mm to serve as the top cap. Attached to the underside of this disk, create a hollow cylinder with an outer diameter of 32mm and a height ...
Diameter=32; TeethExt=1; TeethExtCount=8; Thickness=2; Height=10; Segments=144; translate([0,0,Height+Diameter/16]) rotate([180,0,0]) union(){ linear_extrude(height=Height, convexity=10) difference(){ intersection(){ union(){ circle($fn=Segments,d=Diameter-TeethExt); ...
glb/cad_92a6d46f11ba.glb
Create a bed-leveling wingnut holder with a total height of 8mm. Start by constructing a hexagonal prism with a radius of 7mm and a height of 8mm, using 6 facets for the outer perimeter. Bore a central vertical hole through the entire height with a radius of 2mm. To create the opening for the wingnut, remove the materi...
TOTAL_HEIGHT = 8; SHANK_HEIGHT = 4; WING_HEIGHT = TOTAL_HEIGHT - SHANK_HEIGHT; module washer() { difference() { cylinder ( h = TOTAL_HEIGHT, r1 = 7, r2 = 7, $fn = 6); translate( [0,0,-0.5]) cylinder ( h = TOTAL_HEIGHT + 0.1, r1 = 2, r2 = 2, $fn = 30); } } difference() { washer(...
glb/cad_2e1fad3c1253.glb
Create a 7/16 wrench tool with a total thickness of 2.5mm and a total length of 55mm. The main body is a rectangular bar 5.8mm wide and 2.5mm thick. At both ends of the bar, create circular heads with a radius of 5.7mm. On one end, the circular head contains a hexagonal cutout with a flat-to-flat width of 5.5mm to ac...
include <MCAD/shapes.scad> include <write/Write.scad> Nut_Size = 5.5; Tool_Height = 2.5; Tool_Length = 10; Has_holding_cap = 1; message = "My Wrench"; Font = "write/Letters.dxf"; $fs=0.1; kerf = 0.3 + 0; D = Nut_Size + kerf; M = D/2; H = Tool_Height; Ltot = D * Tool_Length; Text_Height = Nut_Size*0.7 ; L = Lto...
glb/cad_58a594855867.glb
Create a Raspberry Pi Camera Holder for a 2020 aluminium extrusion frame consisting of a central holding block and two adjustable arms. First, create a central holding block as a 20mm x 20mm x 6mm cube. Drill a vertical hole through the center with a radius of 1.5mm. On the sides of this block, create recessed nut ho...
tolerance = 0.4; screwradius = 1.5; screwlength = 8; nutheight = 2.5; nutrad = 3+tolerance/2; washerheight = 0; partwidth = (screwlength-nutheight+washerheight)/2; holeradius = screwradius+tolerance/2; tmult= 3; armlength=40; module arm(){ translate([0,0,partwidth/2])union(){ cube([holeradius*tmult*2,armlength-scre...
glb/cad_25d106334baf.glb
Create a three-jaw chuck consisting of a spiral block, a turntable, and three claws. First, construct the spiral block as a cylinder with a diameter of 40mm and a height of 30mm. Remove a central vertical hole with a diameter of 5mm and a height of 27mm. Carve out three radial slots, each 20mm long and 4mm wide, posi...
use<spiral.scad> module spiral_block() { intersection() { cylinder(d=40,h=30,center=true); union() { difference() { cylinder(d=40,h=26,center=true); cylinder(d=5,h=27,center=true); for(i=[0:2]) { rotate([0,0,60+120*i])translate([0,12,-7])rotate([0,90,90]) cylinder(r=2,h=20,center=true); ...
glb/cad_6c92165ba6cd.glb
Create a bearing mount for an automatic coil winder. Start by constructing a cylindrical base with an outer diameter of 22mm and a height of 8mm. Center a vertical hole with a diameter of 5mm through this cylinder and a larger concentric hole with a diameter of 16.5mm and a height of 7mm. Add a small horizontal hole wi...
use<complex.scad> module bearing_mount() { $fn=30; difference() { union () { translate([0,-40,0])difference() { cylinder(d=22,h=8,center=true); cylinder(d=5,h=9,center=true); translate([0,0,1.5])cylinder(d=16.5,h=7,center=true); translate([0,0,0.5])rotate([90,0,0])cylinder(d=3,h=15); } rotate([4,0,...
glb/cad_393654449dce.glb
Create an idler mount for an automatic coil winder. Start by constructing a main L-shaped bracket. The base is a rectangular block 20mm wide, 30mm deep, and 35mm high, centered on the origin. From this block, remove a smaller rectangular section measuring 21mm by 30mm by 35mm, offset by 4mm along the Y-axis and 3mm alo...
use <complex.scad> module idler_mount() { $fn=20; rotate([90,0,0]) { difference() { cube([20,30,35],center=true); translate([0,4,3]) cube([21,30,35],center=true); translate([0,0,10])rotate([90,0,0]) cylinder(r=2,h=32,center=true); } translate([0,-12,10])rotate([90,0,0]) difference() { cylinder(r=...
glb/cad_434f9a9a93c3.glb
Create a light switch holder by constructing an L-shaped bracket. Start with a solid rectangular block measuring 20mm by 30mm by 35mm, centered on the origin. Remove a smaller rectangular section measuring 21mm by 30mm by 35mm, offset by 3mm along the Y-axis, to create a thin-walled shell. Within this remaining structu...
use <complex.scad> module lightswitch_holder() { $fn=12; rotate([90,0,0]) difference() { cube([20,30,35],center=true); translate([0,3,3]) cube([21,30,35],center=true); rotate([90,0,0]) roundedrect([4,26,32],r=2,center=true); } } lightswitch_holder();
glb/cad_eb11d7099458.glb
Create a motor stand for an automatic coil winder. The main body is a hollow cylinder with an outer diameter of 42mm and a height of 14mm, centered on the Z-axis. Remove a central cylindrical core with a diameter of 37.5mm and the same 14mm height. Additionally, create a cutout for the motor housing by removing a block...
use <gb37.scad> use <complex.scad> module motor_stand() { translate([33, 0, 0]) rotate([0,0,-90])difference() { cylinder(d=42,h=14,center=true); translate([0,0,2])cylinder(d=37.5,h=14,center=true); gb37_holemask(h=16); } translate([-8,0,0])rotate([0,0,90]) { difference() { trapez(r1=7,r2=20,h=14,l=45,center=tr...
glb/cad_ac4a211d3928.glb
Create a coupling for an automatic coil winder. Start with a central vertical cylinder 40mm high with a radius of 6mm. Bore a hole through the center of this cylinder with a radius of 2.1mm, extending slightly beyond the top and bottom edges. Create two additional transverse holes through the central cylinder: one cent...
$fn=30; module coupling() { difference() { cylinder(r=6,h=40); translate([0,0,-1])cylinder(r=2.1,h=42); translate([0,0,-1])cylinder(r=3.2,h=20); translate([0,0,10])rotate([90,0,0]) cylinder(r=1.5,h=15,center=true,$fn=15); translate([0,0,32])rotate([90,0,0]) cylinder(r=1.5,h=15,center=true,$fn=15); } diffe...
glb/cad_88b05059486e.glb
Create a wire guide for an automatic coil winder. Start by constructing a central cylinder with a diameter of 21mm and a height of 8mm, centered on the origin. Add a thin cylindrical disc with a radius of 12mm and a height of 0.5mm, positioned 3.75mm above the center. Below this, create two conical sections: one transi...
module wireguide() { $fn=30; difference() { union() { cylinder(d=21,h=8,center=true); translate([0,0,3.75]) cylinder(r=12,h=0.5,center=true); translate([0,0,3 ]) cylinder(r1=10.5,r2=12,h=1,center=true); translate([0,0,-3 ]) cylinder(r2=10.5,r1=12,h=1,center=true); translate([0,0,-3.75]) cylinder(r=12,h=.5,c...
glb/cad_aecf4c1d4298.glb
Create a Prusa i3 Bowden mount consisting of a main carriage body and a groove mount. The carriage body is a vertical plate 50mm wide and 30mm high. At the base, create a rectangular support block 50mm wide, 10mm thick, and 35mm deep. In the center of the carriage plate, create a circular cutout with a radius of 6mm ...
use <ubis.scad>; hotend_top = 3.6; depth=35; height = 30; width = 50; fitting_support = 25; fillet = 2; $fn=72; _hotend = depth - fitting_support/2 - fillet; module cylinder_fillet(r=1, h=1, fillet=2) { rotate_extrude() { difference() { union() { square([r,h]); ...
glb/cad_4df07435863e.glb
Create a Prusa i3 Bowden mount consisting of a main carriage body with a depth of 45mm and a height of 20mm. The body features a central vertical support structure with a width of 45mm and a thickness of 5mm. In the center of the carriage, create a cylindrical cutout with a radius of 8.125mm and a height of 12mm to a...
use <ubis.scad>; depth=45; fitting_support = 25; height = 20; fillet = 2; $fn=72; _hotend = depth - fitting_support/2 - fillet; module cylinder_fillet(r=1, h=1, fillet=2) { rotate_extrude() { difference() { union() { square([r,h]); translate([r,0,0]) square(fi...
glb/cad_66a2a4dc26fc.glb
Create a cold end mount for a Prusa i3 Bowden extruder. Start with a main top plate measuring 62mm by 92mm with a thickness of 6mm. Attach a front left edge block measuring 40mm by 6mm by 15mm, a left edge block measuring 3mm by 25mm by 15mm, and a right edge block measuring 3mm by 25mm by 21mm. Add a top edge plate me...
module solids() { union() { translate([-55, -7,0]) cube([55+7, 85+7,6]); translate([-40,0,-15]) cube([40,6,15]); translate([-3,0,-15]) cube([3,25,15]); translate([7,0,-15]) cube([3,25,15+6]); translate([0,-7,0]) cube([10,7,6]); translate([-40,0,-15]) difference(...
glb/cad_f08a415af5f3.glb
Create a belt retainer consisting of two main components: a base part and a slider part. The base part is a rectangular block 30mm long, 20mm wide, and 12.5mm high. Centered within this block, remove a rectangular cavity 15mm wide and 10.5mm high to accommodate the slider. At one end of the base, create a slot 15mm lo...
dRise = 10; belt=1; tBase = (belt==1) ? 1.5 : 1.25; tFull = (belt==1) ? 2.7:2; wTooth = (belt==1) ? 2.6:1.4; wSpace = (belt==1) ? 2.4:1.1; wBelt = (belt==1) ? 6.2:6.2; wHex = 6.9; dHex = 2.5; rM3 = 1.7; sDrop = wHex/2-0.5; Adjust = 0.5; pWidth = 9; pHeight = 5; bwExt = 20; bwInt = 15; blExt = 30; blHed = 6; bdExt = ...
glb/cad_23f57782b37e.glb
Create a HackDock connector consisting of a hollowed-out base and a matching lid. First, construct the base as a rounded rectangular box with a width of 50mm, a length of 90mm, and a height of 15mm, using a corner radius of 5mm. Hollow out the center of this box to create a cavity with 2mm thick walls. In the back wa...
width = 50; length = 90; height = 15; cableopening = 20; ziptieopening = 3; wall = 2; slide = wall+0.15; module basicshape() { translate ( [width/2,length/2,height/2] ) roundedBox([width, length, height], 5, true); translate ( [5,0,0] ) cube ( [width-5, length, height] ); } module innercavity() { translat...
glb/cad_a338a8010287.glb
Create a HackDock Base Unit consisting of a hollow box and a separate flat lid. For the box, create a rounded rectangular shell with outer dimensions of 223mm width, 143mm length, and 42.5mm height. The walls should be 2.5mm thick. Hollow out the center to create an inner cavity of 218mm by 138mm. On the front side (...
part = "both"; print_part(); innerheight = 40; width = 223; length = 143; wall = 2.5; main_io_width = 35; io1_l = 120; io1_h = 13; io2_l = 120; io2_h = 13; io3_l = 30; io3_h = 13; io4_l = 30; io4_h = 13; vesadistance = 100; screwthickness = 5; centerscrewthickness = 4; module print_part() { if (part ...
glb/cad_f5be9321b1f6.glb
Create a top plate for a tall MPCNC corner. Start with a square base measuring 53mm by 53mm with a height of 5.5mm. Round the four corners of the base to a radius of 18mm. At each of the four corners, centered within the rounded area, create a vertical hole for a bolt. Each hole should have a diameter of 6mm and exten...
B_Len = 53; Weld_OD = 4; W_Thk = 5; Small_Hole = 4.0; Nut_OD = 9.75; B_Ht = 5.5; Vert_Hole_Offset = 17.5; M5_OD = 6.0; M5Head_OD = 10.0; M5Head_Ht = 5.3; M5Nut_OD = 9.75; M5_Res = 32; M5CounterSink = 3; Bolt_Len = 75; Thk = .1; IR_Big=56; IR_Small=38; Thk2 = 8; Spacing = 9.7; Hole1_X = -7.7; Hole1_Z = 11-B_Ht; Hol...
glb/cad_dccdf4261c56.glb
Create a square GO3Dkeychain with an overall outer dimension of 51mm by 51mm and a thickness of 3mm. The main body consists of a square frame with a border width of 3mm. Inside this frame, leave a central square opening of 45mm by 45mm. At the top right corner of the frame, integrate a circular loop for a keyring. Th...
image_file = "image-surface.dat"; shape = 1; tag_size = 45; ring_hole=4.5; layer_height = 0.1; number_of_layers = 20; boarder_width = 3; boarder_thick = 3; min_layer_height = layer_height*4; height = layer_height*number_of_layers; maxheight = height+min_layer_height; difference() { translate([0, 0, min_lay...
glb/cad_ee11d83191aa.glb
Create a square keychain with a total outer dimension of 51mm by 51mm and a thickness of 3mm. The main body consists of a square frame with a border width of 3mm. The interior of the frame is hollowed out by a centered square cutout of 45mm by 45mm, leaving a 3mm thick wall around the perimeter. At the top right corne...
image_file = "image-surface.dat"; shape = 1; tag_size = 45; ring_hole=4.5; layer_height = 0.1; number_of_layers = 20; boarder_width = 3; boarder_thick = 3; min_layer_height = layer_height*2; height = layer_height*number_of_layers; maxheight = height+min_layer_height; difference() { translate([0, 0, min_lay...
glb/cad_894edeadc1b5.glb
Create an Enlarged Rostock Idler End for a 12mm smooth rod. Start with a central bracket of height 40mm. At the center of this bracket, create a cylindrical cutout with a radius of 4mm and a height of 40mm, tilted upwards by 2 degrees. Add a bearing mount consisting of two thin discs, each 1.1mm thick; the top disc ha...
include <configuration.scad> use <bracket.scad> h = idler_end_height; tilt = 2; module bearing_mount() { translate([0, 0, 2.3]) cylinder(r1=12, r2= 9, h=1.1, center=true); translate([0, 0, -2.3]) cylinder(r1= 9, r2=12, h=1.1, center=true); } module stifener(l, w, z, a) { wz = sin(a)*w/2; wy = (1-cos(a))*w/...
glb/cad_37a5f1f6a324.glb
Create an Enlarged Rostock Idler End bracket. Start with a central rectangular block 80mm wide, 30mm deep, and 20mm high, centered on the origin. At each end of the block, centered 30mm from the middle along the width, add a cylinder with a 10mm radius and 20mm height. From these two end cylinders, remove a vertical h...
$fa = 12; $fs = 0.5; w = 60; module screws() { for (x = [-w/2, w/2]) { translate([x, 0, 0]) { translate([0, -10, 0]) rotate([0, 90, 0]) cylinder(r=1.65, h=30, center=true); translate([-x/3.38, -10, 0]) rotate([0, 90, 0]) cylinder(r=3.2, h=2.3, center=true, $fn=6); } } } module bracket(h) ...
glb/cad_015cb7546164.glb
Create a Holistic Heaterbarrel by constructing a central vertical assembly with a hollow core. Start with a main barrel body consisting of three stacked sections: a bottom "fat" nozzle section 60mm high with a radius of 47.5mm, a middle "skinny" spacer 150mm high with a radius of 27.5mm, and an upper barrel section tha...
ScaleFactor=10; overlap=1; MakerBottable = 0; IntNozzleDiam = 5; IntBarrelBoreDiam = 40; IntBarrelLength = 725; ExtBarrelLength = 700; ExtBarrelDiamMax = 95; ExtBarrelDiamMin = 55; FatNozzleLength = 60; SkinnyLength = 150; ExtNozzleLength = 40; ExtNozzleTipDiameter = 7; IntTaperLength = 30; IntNozzleCutoutLength = ...
glb/cad_4fe1229f0050.glb
Create an enclosure and a matching lid. For the main body, create a rectangular block with external dimensions of 120mm width, 72mm height, and 20mm depth. Round the four vertical corners with a 5mm radius. Hollow out the center to create a shell with a wall thickness of 2mm, maintaining the 5mm rounded corners on the ...
width = 120.0; height = 72.0; depth = 20.0; thickness = 2; fillet_radius = 5.0; standoff_offset = 0.5; standoff_radius = 3.5; standoff_hole_radius = 1.5; module block(width, height, depth, fillet_radius) { difference() { cube([width, height, depth], center = true); fudge = 0.1; fud...
glb/cad_9e03ed919cc7.glb
Create a PV Solar Bus Bar Stand-off consisting of a main vertical body and a base. First, construct the main body as a rectangular block 11mm long, 14.5mm wide, and 26.125mm tall. Pass a horizontal cylindrical hole with a 2mm radius through the center of the block's side walls, positioned at a height of 13.0625mm fro...
OUTPUT = 2; bbarlen = 40; bbarwid = 10.5; bbarz = 16.125 ; bbar_height = 6; xlen = 11; ywid = bbarwid+4; ztall = bbarz + 10; screw_d = 4 /2; suppthick = 2; if (OUTPUT == 1) { union() { translate([2, ((ywid-bbarwid)/2), ((ztall-bbarz) -2)]) busbar() ; standoff(); translate([-10, 0 , 0]) standoffbase(); } } i...
glb/cad_c0d310e36fdf.glb
Create an EggcupPlus holder by constructing two identical circular wells and a small rectangular attachment. First, create two cylinders, each with a height of 5mm, an outer diameter of 50mm, and a centered circular hole with a diameter of 40mm and a depth of 2mm. Position these two cylinders side-by-side so their cent...
difference() { union(){ cylinder(5,26,25,$fn=130); translate([45,0,0]) cylinder(5,25,24,$fn=130); translate([-8,-28,0]) cube([16,9,20]); } translate([0,0,2]) cylinder(30,20,20,$fn=130); translate([45,0,2]) cylinder(30,20,20,$fn=130); translate([-6,-26,2]) cube([12,5,30]); }
glb/cad_2a99d26239df.glb
Create a nut holder cap consisting of a thin circular base and two symmetrical hexagonal nut housings. Start with a base plate that is 1.5mm thick, featuring a central circular hole with a diameter of 17.1mm. From this base, extend two identical nut-holding structures positioned 25mm apart along the center axis. Each...
lf=0.15; bt=1.5; shd=3.39; nd=5.38+lf*2; nh=2.20; ns=25; nR=nd/sqrt(3); nhR=nR+1.3; bhd=17.1; translate([0,ns/2,0])nut(); translate([0,-ns/2,0])nut(); translate([0,0,0]) difference(){ cylinder(r=bhd/2+2,h=bt,$fn=60); cylinder(r=bhd/2,h=bt,$fn=60); translate([0,-(ns+nd)/2,0])cube([ns+nd,ns+nd,bt]); } module nu...
glb/cad_2cebd9a5853c.glb
Create a projector chassis adapter consisting of two separate parts: a positioning cube and a focus wheel. First, create a solid cube with dimensions of 25mm x 23mm x 20mm. Second, construct a focus wheel centered on a vertical axis. The wheel's main body is a cylinder with a maximum outer diameter of 30mm and a he...
wheel_diameter_ext_max=30; wheel_diameter_int_max=6.5; wheel_diameter_ext_min=10.5; wheel_diameter_int_min=3.5; height_nut=3; height_bottom=7; height_top=12; translate(v=[-17,15,height_top]) mirror(v=[0,0,1]) { difference(){ union(){ translate(v=[0,0,height_bottom]) cylinder(h=height_top-height_bottom, r=wheel_diam...
glb/cad_3425d7fd641b.glb
Create a 3D model of a castle building. Start with a rectangular base block measuring 800mm by 800mm with a height of 150mm, centered at (-150, -300, -150). Subtract a large sphere with a 500mm radius from this base to create a concave moat area. Construct the main castle walls as a rectangular perimeter. The walls ar...
difference(){ union(){ translatejb(0,0,-150){ cube([500,200,350]); } translatejb(500,200,-150){ cylinder(h=400,r=40); } translatejb(0,0,-150){ cylinder(h=400,r=40); } translatejb(0,200,-150){ cylinder(h=400,r=40); } translatejb(500,0,-150){ cylinder(h=400,r=40); } translatejb(500,200,250){ cylinder(h=100,r1=40,r2=...
glb/cad_cbc0513e77b6.glb
Create a 3D model of a stylized building on a circular base with a small figure standing beside it. Start by creating a circular base with a radius of 10mm and a height of 2mm. On top of this base, construct a building that tapers upward in a stepped pyramid fashion. The main body of the building is a rectangular pri...
$fn=24; difference() { dilateyeye(8,8,22) cube([1,1,1], center=true); translateyeye(4,0,6.5) cube([2,1,3], center=true); translateyeye(4,-.75,8) rotatex(45) cube([2,1,2.5], center=true); translateyeye(4,.75,8) rotatex(-45) cube([2,1,2.5], center=true); translateyeye(4,-1,2) cube([2,1,4], center=true); translatey...
glb/cad_b709f3c04aac.glb
Create a scale model of a PrintrBot Mini 3D printer. Start with a base consisting of two rectangular blocks: a main lower platform measuring 64mm x 19mm x 9mm, and a centered upper block measuring 30mm x 19mm x 15mm. Position a rectangular print bed measuring 54mm x 32mm x 4mm on top of the base. Construct a vertical ...
$fn=50; base_l = 64; base_w = 19; base_h1 = 9; base_h2 = 15; base_step = 34; bed_l = 54; bed_w = 32; bed_h = 4; tower_h = 56; tower_l = 16; tower_w = 2; arm_l = 54; arm_h = 20; arm_w1 = 5; arm_w2 = 10; ext_l = 12; ext_w = 20; ext_h = 4; base_step_x = (base_l - base_step); tower_x = ((base_l / 2) - (tower_l / 2) -...
glb/cad_3bb17e2b351e.glb
Create a Poplar Square Quadcopter center bracket. Start with a central circular plate with a radius of 46.5mm and a thickness of 2mm. Cut a circular hole through the center of the plate with a radius of 43.7mm. Around this center, place four mounting holes for the frame booms. These holes should have a radius of 1.8m...
m3hole = 3.6; m4hole = 4.6; thick_h = 2.0; radius_h = (91 + thick_h) / 2; stand_h = radius_h - m4hole / 2 - 2; fudge_m = 0.25; thick_m = 2.0; swidth_m = 16.25 + fudge_m; hspace_c = 35; d_c = hspace_c / 2 + hspace_c * 3 + m4hole * 2 + swidth_m / 2; gap_c = .50; ribhth_c = thick_m / 2; echo(d_c); ...
glb/cad_742c8a4aca5d.glb
Create a Poplar Square Quadcopter flight board mount. Start with a circular base plate 2mm thick with a radius of 47.5mm. On top of this base, construct a rectangular enclosure with a footprint of 71mm by 51mm and a total wall height of 14.25mm. The enclosure consists of four walls: two side walls 2mm thick and 14.25mm...
m3hole = 3.6; m4hole = 4.6; thick = 2.0; width = 71.0; hight = 51.0; hole = 45.05; radius = (91 + thick) / 2; stand = 2.75; pcbth = 2.0; wall = 9.5 + stand + pcbth; radio = 35.25; radiosq = sqrt(radio * radio + radio * radio); $fs = 1; $fa = 1; module base() { difference() { uni...
glb/cad_03e63bb682ae.glb
Create a Poplar Square Quadcopter electronics housing. Start with a rectangular base plate measuring 75mm by 55mm with a thickness of 1mm. Centered on this plate, create a recessed rectangular cavity measuring 71mm by 51mm with a depth of 2mm. At four symmetrical points around the center, positioned at 45, 135, 225, a...
fuge = 0.40; m3hole = 3.6; thick = 2.0 + fuge; width = 71.0 - fuge; hight = 51.0 - fuge; hole = 45.05; wall = 9.5; $fs = 1; $fa = 1; module top() { difference() { union() { translate([0, 0, 0.5]) cube(size = [width + thick * 2, hight + thick * 2, 1], center ...
glb/cad_a9b758f575a8.glb
Create a battery holder bracket for a quadcopter with a thickness of 1.5mm. The main body is a rectangular plate measuring 145mm in length and approximately 64.5mm in width. Centrally, integrate a flight board mounting area consisting of two rectangular strips, each 1.5mm thick and 181mm long (radius of 90.5mm), orie...
m4hole = 4.6; thick_h = 2.0; radius_h = (91 + thick_h) / 2; stand_h = radius_h - m4hole / 2 - 2; width0_b = radius_h * sin(45) * 2 + m4hole; width_b = 50.5; length_b = 145.0; velcro_b = 20.5; thick_b = 1.5; $fs = 1; $fa = 1; module bat_holder() { difference() { union() { cube(size...
glb/cad_030e961f41a8.glb
Create a Poplar Square Quadcopter motor mount bracket. Start with a base rectangular plate that is 22.75mm wide, 21.5mm tall, and 3mm thick. At the bottom of the plate, center a rectangular protrusion that is 9mm wide and 3mm tall. Within this protrusion, create a vertical cylindrical hole with a diameter of 2.3mm th...
m4hole = 4.6; fudge_m = 0.25; thick_m = 3.0; swidth_m = 16.25 + fudge_m; gap_c = .50; hole_f = 4.25; width_f = swidth_m + thick_m * 2 + m4hole * 2; width0_f = hole_f * 4; length_f = 120; angle_f = atan((width_f / 2 - width0_f / 2) / (length_f - thick_m * 2)); length0_f = width_f / 2 / tan(an...
glb/cad_af50d50a7add.glb
Create a foot pin for a Poplar Square Quadcopter. Start by creating a central rectangular block that is 16.75mm wide, 16.75mm deep, and 7mm high. To this block, add two cylindrical pins, each with a radius of 4mm and a height of 6.25mm. Position the first pin so its center is at the origin, extending primarily in one d...
include <pins.scad> thick_m = 3.0; fudge_m = 0.25; swidth_m = 16.25 + fudge_m; hole_p = 4; module foot_pin() { union() { pin(h = thick_m * 2 + fudge_m, r = hole_p, side=true); translate([-hole_p / 2 - thick_m * 1.25, thick_m, 0]) cube(size = [hole_p + thick_m * 2.5, swidth_m, hole_...
glb/cad_5183c4bcd81d.glb
Create a camera mount for a quadcopter. Start with a square base plate measuring 37.31mm by 37.31mm with a thickness of 4mm. Hollow out the center of this plate to create a square frame, leaving a wall thickness of approximately 1.66mm around the perimeter. At each of the four corners of the base plate, add a square s...
thick_c = 4.0; smhole_c = 2; pcbhole_c = 33.50; smdoff_c = 4; sarmhole_c = 25.50; sarmoff_c = 8; sarmthk_c = 6; pcbholer_c = sqrt(pcbhole_c * pcbhole_c * 2) / 2; pcbwdth_c = sqrt(thick_c * thick_c * 2) + pcbhole_c; pcbwdth0_c = pcbwdth_c - sqrt(thick_c * thick_c * 2) - thick_c; $fs = 1; $fa = 1; module...
glb/cad_5339d5cade7c.glb
Create a Poplar Square Quadcopter pivot mount. Start with a main block that has a width of 36.75mm (calculated as $16.25 \times 2.85 \times \cos(45^\circ)$), a height of 16.25mm plus three times a 3mm thickness (total 25.25mm), and a depth of 36.75mm multiplied by $\sin(45^\circ)$ plus 3mm. Cut a 45-degree angled sec...
fudge_m = 0.25; thick_m = 3.0; swidth_m = 16.25 + fudge_m; gap_c = .50; width_f = swidth_m * 2.85; swidth_c = 23; shigth_c = 12.5; smhole_c = 2; smoff_c = 2.5; smlen_c = 9; smwidth_c = (width_f * cos(45) - swidth_c) / 2; $fs = 1; $fa = 1; module tear_drop(radius, length) { union() { ...
glb/cad_82afa60d241e.glb
Create a Poplar Square Quadcopter foot. Start with a rectangular base plate measuring 25.5mm wide by 22.5mm long with a thickness of 3mm. Add two thin rectangular rails to the top of the base, each 3mm thick and 16.25mm wide, positioned at the front and back edges to create a central channel. Within this channel, pla...
m4hole = 4.6; fudge_m = 0.25; thick_m = 3.0; swidth_m = 16.25 + fudge_m; gap_c = .50; width_f = swidth_m + thick_m * 2 + m4hole * 2; width0_f = 26.0; length_f = 45; length_tx = 32; angle_f = atan((width_f / 2 - width0_f / 2) / (length_f - thick_m * 2)); length0_f = width_f / 2 / tan(angle_f); ...
glb/cad_b014635ec32f.glb
Create a Poplar Square Quadcopter mount. Start with a central square base plate measuring 32.83mm by 32.83mm with a thickness of 3mm. At the four corners of this square, centered 16.415mm from the middle, drill four vertical holes with a diameter of 3.6mm. Add two vertical support walls to this base. Each wall should ...
fudge = 0.25; m3hole = 3.6; swidth = 16.25 + fudge; hspace = 32.83; mountd = 42.5; mountth = 3.0; crossth = 3.0; $fs = 1; $fa = 1; module base() { intersection() { difference() { cube(size = [hspace, hspace, mountth], center = true); for (a = [0, 90, 180, 270]) { ...
glb/cad_a073d625d610.glb