Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Linear Rail Gantry system consisting of a rail and a shuttle. Construct the rail as a composite body. Start with a central rectangular block 20mm wide, 100mm long, and 20mm high, centered at the origin. Add a base plate 40mm wide, 100mm long, and 5mm thick positioned at z = -27.5mm. Create two V-grooves by r...
bspace = 31/2; ybase = 42.5; xbase = 42.5; holerad = 1.75; shuttlelength = 50; shuttlewidth = 65; tubelength = 100; include <rack_herringbone.scad> pi=3.1415926535897932384626433832795; innerRadius=3.1; borders=2.5; diametralPitch=12; numberOfTeeth=19; pressureAngle=20*pi/180; centerAngle=25; module smount() { ...
glb/cad_db5c3a74b037.glb
Create a screw thread module consisting of a continuous spiral of connected triangular prisms. The structure should complete 5 full turns, composed of 120 individual segments. For each segment, define a triangular cross-section where the base is a flat edge and the apex creates a pointed profile. The distance of thes...
scale=1; numberTurns=5; steps=24*numberTurns; module slice(Xa, Ya, Za, Xb, Yb, Zb, radiusa, radiusb) { angleZ=atan2(Ya, Xa); twistZ=atan2(Yb, Xb)-atan2(Ya, Xa); polyPoints=[ [Xa+ radiusa*cos(+angleZ), Ya+ radiusa*sin(+angleZ), Za ], [Xa , Ya , Za+ radiusa*sin(15) ], [Xa , Ya , Za+ rad...
glb/cad_012d8d3b7b09.glb
Create a wire clamp consisting of a semi-circular base with a central cutout. Start by forming a ring with an inner diameter of 20mm and an outer diameter of 30mm, then slice the ring in half to create a C-shaped bracket. The walls of this bracket should be 15mm thick. On the flat bottom surface of the bracket, place...
Xaxis=-20; Xaxis1=20; Xaxis2=32; Xaxis3=-32; Zaxis=15; hole=5.5; hole1=3; $fn = 100; difference (){ difference () { translate ([0, 0, 30]) rotate_extrude () mirror() translate ([-42.5, 0, 0]) rotate (-90) difference (){ union () { translate ([5, 0, 0])square([25, 30]); translate ([5, 25, 0...
glb/cad_2d6d74f2393c.glb
Create a wire clamp by constructing a semi-circular ring with a 20mm internal diameter. The main body is formed by rotating a profile consisting of a 25mm by 30mm rectangle with a 5mm radius circle attached to its top edge, then subtracting a large 30mm radius circle from the center to create a hollow core. Cut the res...
Xaxis=-20; Xaxis1=20; Xaxis2=32; Xaxis3=-32; Zaxis=15; hole=5.5; hole1=3; $fn = 100; difference () { translate ([0, 0, 30]) rotate_extrude () mirror() translate ([-42.5, 0, 0]) rotate (-90) difference (){ union () { translate ([5, 0, 0])square([25, 30]); translate ([5, 25, 0]) circle(5); ...
glb/cad_9e32409e35a3.glb
Create a pencil cup by constructing a hollow cylindrical vessel with a total height of 107mm. Start by creating a solid circular base and a matching circular rim at the top, both with an outer radius of 32.1mm and a height of 4mm. The rim should be hollowed out by removing a concentric cylinder with a radius of 29.9mm,...
left_extruder(); module right_extruder() { difference() { difference() { rotate(9,[0,0,1]) translate([0,0,3.5]) helix(-90,0); translate([0,0,3.5]) helix(90,1); } topandbottom(); } } module left_extruder() { union() { translate([0,0,3.5]) helix(90,0); topandbottom(); } } module helix(tw, o) { ...
glb/cad_774fb64146ba.glb
Create a set of exo-finger rings for the thumb, index, middle, ring, and pinky fingers. Each finger requires a proximal ring and a distal ring. For the proximal rings, create a cylinder with a height equal to the proximal ring length (10mm for index, middle, and ring; 8mm for pinky). The ring should have a hollow cent...
Thumb=1; tDIPd= 24 ; tDRL= 12 ; Index=1; iPIPd= 20 ; iDIPd= 17 ; iPRL= 10 ; iDRL=8; Middle=1; mPIPd= 21 ; mDIPd= 17 ; mPRL= 10 ; mDRL= 8 ; Ring=1; rPIPd= 20 ; rDIPd= 17 ; rPRL= 10 ; rDRL= 8 ; Pinky=1; pPIPd= 18 ; pDIPd= 16 ; pPRL= 8 ; pDRL= 6 ; module ring(InnerRad,Height){ ...
glb/cad_d226e48a0880.glb
Create a Lissajous pattern projector housing. Start with a base plate measuring 72mm by 50mm by 3mm. Build up the sides by adding two walls: one measuring 3mm by 50mm by 60mm along the left edge, and another measuring 3mm by 50mm by 70mm along the right edge. Add a third wall on the right side that is 3mm thick, 50mm w...
difference() { union() { cube([72,50,3]); cube([3,50,60]); cube([70,3,60]); translate([70,0,0]) cube([3,50,70]); rotate([0,45,0]) translate([47,0,0]) cube([5,50,70]); translate([52,0,60]) cube([21,35,17]); } translate([21,11,-5]) cylinder(20,1.5,1.5,$fn=130); translate([53,11,-5]) cylinder(20,1.5,1.5,$fn=130); ...
glb/cad_026c02d45d73.glb
Create a Lissajous pattern projector mirror mount by starting with a flat, vertical oval disk that is 20mm thick and 60mm high. On the left side of this disk, attach a smaller, concentric cylinder that is 20mm in diameter and 20mm thick, centered vertically. Finally, bore a precise hole through the center of this small...
difference() { union() { translate([-0,27,37]) rotate([0,90,0]) cylinder(3,20,20,$fn=130); translate([-0,11,53]) rotate([0,90,0]) cylinder(3,6,6,$fn=130); } translate([-1,11,53]) rotate([0,90,0]) cylinder(5,1.5,1.5,$fn=130); }
glb/cad_10cac9008730.glb
Create a Lissajous pattern projector base by constructing a solid cylinder with a radius of 15mm and a height of 5mm. From this cylindrical volume, remove a rectangular block measuring 50mm by 50mm with a thickness of 5mm. Position this block so that its center is offset from the cylinder's center, specifically transla...
difference(){ union(){ cylinder(5,15,15,$fn=130); } rotate([2,0,0]) translate([-17,-17,2]) cube([50,50,5]); }
glb/cad_1c9442e6adbe.glb
Create a parametric clock weight container. The main body is a cylinder with an outer diameter of 25mm, a total height of 42mm, and a 42-facet resolution. The interior is hollowed out by a cylinder with a diameter of 23mm and a height of 41mm, leaving a wall thickness of 1mm and a bottom base of 1mm. At the bottom, ad...
inside_diameter = 23; inside_height = 40; wall_thickness=1; bottom_bevel=3; outer_facets = 42; inner_facets = 42; top_style="type1"; top_bevel=0; top_height=3; top_hole_diameter=2; add_slot=true; slot_height=2.5; difference() { cylinder(r=inside_diameter/2+wall_thickness, h=inside_height+wall_thickness*2, center=tru...
glb/cad_0aab1ab005ff.glb
Create a set of ten Jodi.1 Exerciser Rings. Each ring is a hollow cylinder with a specific inner diameter and height, featuring two small integrated cable guide protrusions on opposite sides of the outer wall. Each guide is a small, slightly oval-shaped cylinder with a centered hole 1.5mm in diameter. Construct the ri...
Thumb=1; tDIPd= 24 ; tDRL= 12 ; Index=1; iPIPd= 20 ; iDIPd= 17 ; iPRL= 10 ; iDRL=8; Middle=1; mPIPd= 21 ; mDIPd= 17 ; mPRL= 10 ; mDRL= 8 ; Ring=1; rPIPd= 20 ; rDIPd= 17 ; rPRL= 10 ; rDRL= 8 ; Pinky=1; pPIPd= 18 ; pDIPd= 16 ; pPRL= 8 ; pDRL= 6 ; module ring(InnerRad,Height){ ...
glb/cad_524ab3ca7d66.glb
Create a Trapezoid Screw Thread Module consisting of a coiled, helical shape that varies in thickness and diameter. The model is composed of 120 sequential segments (24 steps per turn across 5 full turns). Each segment is a trapezoidal slice that follows a sinusoidal path. The center-to-center distance of the coil fl...
scale=0.9; numberTurns=5; steps=24*numberTurns; module slice(Xa, Ya, Za, Xb, Yb, Zb, radiusa, radiusb, tipRatioa, tipRatiob) { angleZ=atan2(Ya, Xa); twistZ=atan2(Yb, Xb)-atan2(Ya, Xa); polyPoints=[ [Xa+ radiusa*cos(+angleZ), Ya+ radiusa*sin(+angleZ), Za ], [Xa+ radiusa*cos(+angleZ), Ya+ radiusa*sin(+angle...
glb/cad_1b20a5bf3c9b.glb
Create a nameplate generator that produces a wavy-edged rectangular base with extruded text. The base has a total length of 38mm and a width of 16mm. Construct the base by placing 8 adjacent rectangular segments along the length, each with a width of 4.75mm. The height of these segments should follow a cosine wave patt...
myword = "Mike"; myfont="Black Ops One"; fontsize = 8; textheight = 7; myspacing = 1.1; length = 38; width = 16; height = 8; frequency = 1; steps = 8; border = 2; inset = 2; base = 2; translate([ border + inset, border + inset, 0 ]){ linear_extrude( height = textheight ){ text( tex...
glb/cad_f993d1b83d21.glb
Create a nameplate generator that produces a wavy rectangular base with embossed text. The overall footprint of the base is 56mm in length and 15mm in width. Construct the base by placing 8 adjacent rectangular segments along the length, each with a width of 7mm. The height of these segments should follow a cosine wave...
myword = "Caroline"; myfont="Phosphate:style=Inline"; fontsize = 8; length = 56; width = 15; height = 8; frequency = 1; steps = 8; border = 2; inset = 2; base = 2; translate([ border + inset, border + inset, 0 ]){ linear_extrude( height = 6 ){ text( text = myword, font = myfont,...
glb/cad_9213279c8d87.glb
Create a customizable vise for a CNC router consisting of a base and a sliding jaw. First, construct the base. Create a rectangular support block 8mm thick, 75mm wide, and 20mm high, sitting atop a 6mm thick base plate. The base plate should be 75mm wide and extend 25mm forward from the support. Round the base plate'...
part = "print"; height = 20; base_thickness = 6; support_thickness = 8; width = 75; edge_round = 5; nut_width = 10; nut_diameter = 6.5; slot_length = 25; slot_width = 4; slot_sink = 3; major_slot_distance = 50; minor_slot_distance = 25; holder_slot_depth = 1.5; holder_slot_pos_horiz = 3; holder_slot_pos_v...
glb/cad_8ac555f2da4b.glb
Create a resizable printable box with a diagonal lattice structure. The internal dimensions of the box are 60mm in length, 40mm in width, and 20mm in depth. All structural bars must have a uniform thickness and height of 3mm. The box is formed by six rectangular lattice panels. Each panel consists of a solid outer fra...
lb = 60; wb = 40; db = 20; w = 3; h = 3; sp= 15; union () { lattice(lb,wb,db,w,h,sp); translate([lb/2,0,db/2+w]) rotate([0,90,0]) lattice(db,wb,db,w,h,sp); translate([-(lb/2+w),0,db/2+w]) rotate([0,90,0]) lattice(db,wb,db,w,h,sp); translate([0,wb/2+w,db/2+w]) rotate([90,0,0]) lattice(lb,db,db,w,h,sp); translate([0,-(w...
glb/cad_92b241d5cafd.glb
Create a parametric disk sprocket with 15 teeth, a thickness of 3mm, and a total height of 3mm. Start by forming a central disk with a radius of approximately 7.4mm. Around the perimeter, place 15 teeth equally spaced every 24 degrees. Each tooth is formed by the intersection of two cylinders with a radius of 6.35mm, w...
module sprocket(teeth=20, roller=3, pitch=17, thickness=3, tolerance=0.2){ roller=roller/2; distance_from_center=pitch/(2*sin(180/teeth)); echo(distance_from_center); angle=(360/teeth); pitch_circle=sqrt((distance_from_center*distance_from_center) - (pitch*(roller+tolerance))+((roller+tolerance)*(roller+tolerance...
glb/cad_88a513a72add.glb
Create an extruder fan holder consisting of two symmetrical halves joined by a central bar. For each half, start with a central rectangular bar 7mm wide and 3mm thick. On one end of the bar, create a fan mounting hand by forming a hull between two cylinders with a radius of 1.95mm. Position these cylinders 18.5mm apa...
$fn=50; mountAngle = 45; mountScrewSpacing = 32; mountHoleD = 3 + 0.2; mountHoleOffset = 0; fanScrewSpacing = 32; fanHoleD = 3 + 0.2; fanHoleLen = 12; fanHoleOffset = 2; thickness = 3; barWidth = 7; mountWidth = 2 * mountHoleD * 1.3; fanHolderHandWidth = 2 * fanHoleD * 1.3; barLength = max(fanScrewSpacing, mou...
glb/cad_0abdd4de29c7.glb
Create a mirror hanging bracket consisting of a main socket body and a mounting slot. Start with a central cube measuring 28mm x 28mm x 7mm. Add two rectangular flaps, each 10mm wide and 2.5mm thick, extending from the center of the bottom and left faces of the cube to create an L-shaped base. Cut a vertical slot thro...
small = 0.1; pegH = 7.0; pegHoleR = 1.0; pegR = 3.0; pegFlangeH = 2.0; pegFlangeR = 4.0; pegSinkR = 2.0; pegSinkH = 1.0; $fs = 1; $fa = 1; module peg_negative() { translate([0,0,-small/2]) { cylinder(h=pegH+small, r=pegHoleR); cylinder(h=pegSinkH+small, r=pegSinkR); } } module peg_positive()...
glb/cad_c0e70cc629d2.glb
Create a fan holder mounting bar that is symmetrical along its length. Start with a base plate that is 3mm thick, 8.8mm wide, and 3.5mm deep. At the center of the two ends of this plate, create two circular protrusions with a radius of 4.4mm and a height of 3mm. Within these circular ends, create a vertical hole with...
$fn = 50; holderThickness = 3; mountThickness = 7; holderHoleD = 3 + 0.2; mountHoleD = 4 + 0.2; holderHolesDistance = 32; mountHeight = 8; holderWidth = max(holderHoleD, mountHoleD) * 2 * 1.1; module MountBase() { translate([-holderWidth / 2, 0, 0]) cube([holderWidth, mountThickness / 2, holderThickness]); }...
glb/cad_2eff340207c1.glb
Create a snow plow accessory for a wooden train. The main plow blade is a block 20mm deep, 25.4mm wide, and 22mm high. The front face of the blade has a rounded bullnose with a 6mm radius. The bottom edge of the blade is not flat; it is tilted upwards at a 25-degree angle to prevent it from catching on surfaces. The t...
support = true; snow_plow(); module snow_plow($fn=75) { w = 25.4; h = 22; d = 20; mount_height=h-5.4; mount_radius = (mount_height/2)-1; magnet_radius = 6.8; module half_cutout() { hull() { translate([70,34,h+10]) scale(v=[1,1,.05]) sphere(r=75); ...
glb/cad_5ec2ec3c0547.glb
Create a mounting bracket for a switch or DC jacket. Start by creating a central ring with an outer diameter of 25mm, an inner diameter of 19mm, and a height of 2mm. On top of this ring, add a circular base plate with a diameter of 29mm and a thickness of 2mm, centered on the ring. Extend this base plate by adding tw...
use <MCAD/polyholes.scad> show_debugging_cube = false; show_part = true; layer_h = 0.4; nozzle_d = 0.5; de = 0.1; fn_hole = 12; P10 = 25; P11 = 2; P12 = 3; P20 = 29; P21 = 2; P22 = 13.1; P23 = 19.3; P30 = 10; P31 = 3.2; assembly(); module assembly() { union() { if (show_debugging_cube) { ...
glb/cad_9c2d1c4a9d49.glb
Create a mounting bracket for a DC jack. Start by creating a central ring with an outer diameter of 25mm, an inner diameter of 19mm, and a height of 2mm. On top of this ring, add a circular base plate with a diameter of 29mm and a thickness of 2mm, centered on the ring. Extend this base plate outward along the x-axis...
use <MCAD/polyholes.scad> show_debugging_cube = false; show_part = true; layer_h = 0.4; nozzle_d = 0.5; de = 0.1; fn_hole = 12; P10 = 25; P11 = 2; P12 = 3; P20 = 29; P21 = 2; P22 = 8; P30 = 10; P31 = 3.2; assembly(); module assembly() { union() { if (show_debugging_cube) { translate(...
glb/cad_de4db9d45894.glb
Create a Wooden Train Wheel consisting of two separate parts: a main wheel and a spacer. For the main wheel, create a cylindrical body with a radius of 10mm and a thickness of 3mm. The outer edge should be rounded with a 1mm bevel. Add a raised central hub that extends from the center; this hub has a radius of 6mm and...
module wheel_spacer(axel_radius, $fn=100) { thickness = 2.5; radius = 3.5/.9; difference() { translate([radius + pad_radius + 1,0,0]) rotate_extrude(convexity = 10) union() { translate([radius-thickness/2,thickness/2]) circle(r = thickness/2); square([radius,thickness/2]); square([...
glb/cad_1a767d918980.glb
Create a 3D knot model with an integrated support base. Start by importing the high-resolution knot geometry and positioning it so its lowest point is 0.5mm above the build plane. Construct the support structure using two types of geometric components. The first support type consists of a union of three rectangular p...
module support(angle1,angle2) { supportlen = 30; rotate(angle2,[0,0,1]) translate([0,18,0]) rotate(angle1,[0,0,1]) union() { translate([0,-supportlen/2+2,0]) cube([1,supportlen,10],center=false); translate([0,-supportlen*1.5/2+2,0]) cube([1,supportlen*1.5,6],center=false); translate([-10,0,0]) cube([18,1,6]...
glb/cad_f2008a610451.glb
Create a 3D Knot model with integrated support structures. The main feature is a high-resolution knot geometry, scaled by 0.5, and shifted -4mm along the X-axis. To support the knot, construct three identical support assemblies spaced 120 degrees apart around the center. Each assembly consists of two primary componen...
module support(angle1,angle2) { supportlen = 30*scale; rotate(angle2,[0,0,1]) translate([0,18*scale,0]) rotate(angle1,[0,0,1]) union() { translate([0,-supportlen/2+2,0]) cube([1,supportlen,10*scale],center=false); translate([0,-supportlen*1.5/2+2,0]) cube([1,supportlen*1.5,6*scale],center=false); translate([...
glb/cad_7ab715021f5f.glb
Create a parametric cable clamp with a height of 10mm. Start by constructing a ring with an inner diameter of 20mm and a wall thickness of 2mm. Cut a notch out of this ring using a cube of 2mm width and 3mm depth, centered on the ring's edge, to create an opening for the cable. Add two handles extending from the outer...
use <write/Write.scad>; text = "TV"; text_thickness = 0.5; text_height = 7; clamp_dia = 20; clamp_height = 10; clamp_wall = 2; handle_angle=25; handle_wall=2; handle_length_factor = 1; clamp_rad = clamp_dia/2; module clamp_ring() { $fn = clamp_dia * 2; difference() { cylinder(h=clamp_height, r=clamp...
glb/cad_417edd63a97b.glb
Create a minimalistic X-rod mount by designing a base plate 7mm thick. The main body is formed by the union of two overlapping squares, each 26.6mm wide, one oriented normally and one rotated 90 degrees, both centered on the same axis. At the four corners of this shape, centered at coordinates (±10, ±10), remove circ...
$fn=60; height = 7; holesize = 3.3; holespacing = 20; holepadding = 3.3; rodsize = 6.6; nutsize = 6.6; nutthick = 2; for (x = [1, -1]) for (y = [1, -1]) translate([(holespacing / 2 + holepadding + holesize) * x, (holespacing / 2 + holepadding + holesize) * y, 0]) difference() { linear_extrude(height = height, conv...
glb/cad_425e3352cec2.glb
Create a flight controller spacer mount for a ZMR250 frame. Start with a rectangular base plate measuring 36mm by 36mm with a thickness of 1mm, centered at coordinates (2, 2, 0). At each of the four corners of this plate, add a cylindrical standoff with an outer diameter of 8mm and a height of 3mm. Each standoff must h...
$fn=20; difference() { translate([5,5,0]) cylinder(4,3,3); translate([5,5,-1]) cylinder(6,2,2); } difference() { translate([35,35,0]) cylinder(4,3,3); translate([35,35,-1]) cylinder(6,2,2); } difference() { translate([35,5,0]) cylinder(4,3,3); translate([35,5,0]) cylinder(6,2,2); } difference()...
glb/cad_6446dd732b1d.glb
Create a flight controller spacer mount for a ZMR250 frame. Start with a square base plate measuring 36mm by 36mm with a thickness of 1mm. From this base, remove a central square area measuring 26mm by 26mm, leaving a border that is 5mm wide on all sides. At each of the four corners of the plate, place a cylindrical st...
$fn=20; difference() { translate([5,5,0]) cylinder(4,3,3); translate([5,5,-1]) cylinder(6,2,2); } difference() { translate([35,35,0]) cylinder(4,3,3); translate([35,35,-1]) cylinder(6,2,2); } difference() { translate([35,5,0]) cylinder(4,3,3); translate([35,5,0]) cylinder(6,2,2); } difference()...
glb/cad_e507970fd145.glb
Create a flight controller spacer mount for a ZMR250 frame. Start by creating a flat rectangular base plate measuring 42mm by 40mm with a thickness of 1mm. From this base, remove a central rectangular section measuring 32.5mm by 30mm, leaving a frame-like border. At each of the four corners of the base plate, construc...
$fn=20; difference() { translate([5,5,0]) cylinder(6,3,3); translate([5,5,-1]) cylinder(8,2,2); translate([20,20,0]) cylinder(8,20,20); } difference() { translate([35,35,0]) cylinder(6,3,3); translate([35,35,-1]) cylinder(8,2,2); translate([20,20,0]) cylinder(8,20,20); } difference() { translate...
glb/cad_e587efd6b5db.glb
Create a flight controller spacer mount for a ZMR250 frame. Start by creating a flat square base measuring 40mm by 40mm with a thickness of 1mm. From this base, remove a central square area measuring 33.5mm by 33.5mm, leaving a border. Additionally, remove a rectangular slot measuring 25mm by 5mm and 1mm deep, position...
$fn=20; difference() { translate([5,5,0]) cylinder(5,3,3); translate([5,5,-1]) cylinder(6,2,2); translate([20,20,0]) cylinder(6,21,21); } difference() { translate([35,35,0]) cylinder(5,3,3); translate([35,35,-1]) cylinder(6,2,2); translate([20,20,0]) cylinder(6,21,21); } difference() { translate...
glb/cad_be16d598a850.glb
Create an enhanced universal phone and tablet stand consisting of a main outer frame and a movable inner prop. First, construct the outer frame as a flat plate 7mm thick. The overall footprint is a rounded rectangle defined by four corner cylinders with a 2.5mm radius, positioned at coordinates (±24.5, ±41.5) and joi...
height = 7; corner_radius = 2.5; base = -2; corners = [ [24.5, 41.5, base], [-24.5, 41.5, base], [24.5, -41.5, base], [-24.5, -41.5, base] ]; difference() { hull() { for (i = [0:3]) { translate(corners[i]) cylinder(height,corner_radius,corner_radius); } ...
glb/cad_5229abb9ad9e.glb
Create a Magic The Gathering Land Station consisting of three open-topped rectangular containers arranged in a tiered layout. All walls and bases should have a thickness of 1.5875mm. First, create two identical base containers. Each container has an outer width of 66.675mm, a depth of 30.48mm, and a height of 45.72mm....
oneInch = 25.4; wallThickness = oneInch / 16; overallHeight = (3.625 * oneInch)*.5; overallWidth = 2.625 * oneInch; overallDepth = 1.1875 * oneInch*1.25; DrawStation(); module DrawStation(){ translate([(overallWidth + wallThickness*2)/2, 0, 0]){ DrawContainer(overallHeight, overallWidth, overallDep...
glb/cad_a9644460a937.glb
Create a pet cage door stay consisting of two identical circular clips connected by a straight rectangular bar. Each clip is a 20-sided prism with an outer diameter of 8mm, a height of 5mm, and a centered cylindrical hole with a diameter of 4.75mm. To allow for attachment, carve a rectangular notch out of the outer wal...
spanLength = 100; spanThickness = 3; outterDiameter = 8; innerDiameter = 4.75; clipThickness = 5; clipOpeningSize = 2.5; clip1OpeningAngle = 90; clip2OpeningAngle = 90; module clipEnd() { difference() { cylinder(r=outterDiameter/2, h=clipThickness, $fn=20); translate([0,0,0]) cylinder(r=innerDiamete...
glb/cad_79bcfa2d5033.glb
Create a 60mm fan to flex hose adapter. Start with a square flange base measuring 60mm by 60mm with a thickness of 6mm. Center a circular bore with a radius of 28.5mm through this flange. At each of the four corners of the square, place a mounting hole with a radius of 1.7mm, positioned 25mm from the center along both ...
include <Spring.scad> facets3mmhole=24; facetsSmallRadii=24; module spinner(diameter,height) { difference() { scale([1,1,height/(diameter/2)]) sphere(diameter/2); translate([0,0,-(height+1)/2]) cube([diameter+1,diameter+1,height+1],center=true); } } module Cone_and_Hose(diameter,height) { ...
glb/cad_5cf57f2963a0.glb
Create a Parametric Jaw Coupling consisting of two identical hubs. Each hub is based on a cylinder with a radius of 12mm and a total height of 5mm. For each hub, create a central bore: the top hub has a radius of 3mm and the bottom hub has a radius of 4mm. Both hubs have a thickness of 20mm. The hubs feature "jaws" ...
%cube([0.2,0.2,100]); %cube([25,0.2,0.2]); radius = 12; precision = 100; slack = 1; angleSlack = 1; height = 5; thickness = 4; numOfStruts = 2; padding = 0.05; spiderType = 0; topcouplerbore = 3; topHubThickness=20; topHubRadius=radius-thickness; topHubType=4; topNutBore=1.5; topNutHeight=2.6; topNutRadius=3.2; top...
glb/cad_30130f52672c.glb
Create a Trapezoid Screw Thread Module consisting of a central shaft and an outer helical thread. The entire model is scaled by a factor of 1.5. The outer thread is constructed from 420 individual segments (17.5 turns with 24 steps per turn). Each segment is a complex polyhedron where the cross-section varies based on...
scale=1.5; numberTurns=17.5; stepsPerTurn=24; steps=stepsPerTurn*numberTurns; module threadPiece(Xa, Ya, Za, Xb, Yb, Zb, radiusa, radiusb, tipRatioa, tipRatiob) { angleZ=atan2(Ya, Xa); twistZ=atan2(Yb, Xb)-atan2(Ya, Xa); threadAngleTop=15; threadAngleBottom=-15; polyPoints=[ [Xa+ radiusa*cos(+angleZ), Ya+...
glb/cad_c7179452505a.glb
Create a leg for a Kossel Mini printer by constructing a base plate and a vertical mounting block. Start with a rectangular base that is 15mm wide, 15mm deep, and 7.5mm thick. Centered on this base, place a square vertical block measuring 7.5mm by 7.5mm with a height of 15mm. Remove a cylindrical hole with a radius o...
Length = 15; module fillet(r, h) { translate([r / 2, r / 2, 0]) difference() { cube([r + 0.01, r + 0.01, h], center = true); translate([r/2, r/2, 0]) cylinder(r = r, h = h + 1, $fn=32, center = true); } } module leg_qtr(){ difference(){ cube([...
glb/cad_9af19173c34c.glb
Create a leg for a Kossel Mini by constructing two stacked cylinders. First, create a wide, short base cylinder with a radius of 5mm and a height of 4mm, using 32 facets for its circular cross-section. Centered on top of this base, add a second, narrower cylinder with a radius of 2.2mm and a height of 15mm, using 16 fa...
cylinder(r=5, h=4, $fn=32); cylinder(r=2.2, h=15, $fn=16);
glb/cad_9a60aa08ec6f.glb
Create a Wacom Tablet Holder consisting of a main support cradle and an attached pen cup. Start by creating a rectangular block 20mm wide, 185mm long, and 45mm high with rounded corners of 4mm radius. Carve a central channel out of the top of this block that is 12mm wide and 43mm deep, leaving 2mm thick walls on the si...
boxHeight = 45; boxWidth = 20; boxLength = 185; clipsLength = 40; cutX = boxHeight - 2; wacomWidth = 12; module roundedBox(x,y,z,radius){ $fn=50; minkowski(){ cube([x-radius*2,y-radius*2,z-1],center = true); cylinder(r=radius,h=1, center = true); } } module mainShape(){ difference(){ roundedBox(boxWidth,...
glb/cad_3d1ba776e62b.glb
Create a Prusa X-Axis Fan Holder with a uniform thickness of 3mm. The main body is a flat plate that connects two circular mounting points. First, create two circular cutouts for the X-axis bars. Each cutout should have a diameter of 15mm (the 9mm bar diameter plus 3mm thickness on each side) and be positioned 50mm a...
X_Bar_Distance=50; X_Bar_Diameter=9; Fan_Screw_Distance=82.55; Fan_Screw_Diameter=4; Overall_Thickness=3; Resolution=48; $fn=Resolution; fan_holder(); module fan_holder(){ difference(){ union(){ translate([X_Bar_Distance/2,0,0]) cylinder(Overall_Thickness, (X_Bar_Diameter)/2+Overall_Thickness,(X_Bar_Diam...
glb/cad_4de163d8b085.glb
Create an X-idler mount plate for a 3D printer with a total height of 6mm. The main body is a flat plate defined by a specific polygonal footprint: starting from the origin, it extends to approximately 24mm in width and 35mm in length, with a rounded, irregular perimeter. On the top surface, create two vertical holes...
Ht = 6; M3 = 3.2; M5 = 5.5; module ZLimitScrewPlate() { union() { linear_extrude(height = Ht, center = false, convexity = 10)polygon(points = [[13.2,35],[14.73,34.7],[16.03,33.83], [16.9,32.53],[17.2,31],[17.2,21.2], [17.55,20.35],[18.4,20],[20,20], [21.53,19.7],[22.83,18...
glb/cad_08c612179fe0.glb
Create a landing extension leg for a drone. The object is a flat, extruded plate with a thickness of 10mm. The main body is a vertical structure with a total width of 13mm (calculated as 8.5mm clamp width plus two 2mm walls and a 1mm gap). The overall height is 22.5mm (20mm additional height plus a 2.5mm offset). A...
additional_height=20; Thickness=10; Wall_Thickness=2; gap=1; shift=0.5; inner_r=2; outer_r=4.5; clamp_x=8.5; clamp_y=9; Pool_Noodle_Diameter=65; eps=0.01; fn=200; noodle_r=Pool_Noodle_Diameter/2; noodle=false; wall=Wall_Thickness; total_x=clamp_x+2*wall+gap; add_h=additional_height+(outer_r-inner_r+shift); lin...
glb/cad_a31022676a77.glb
Create an FPV monitor bracket for a FrSky Taranis radio. Start by constructing a base plate 1mm thick. The main body is a composite shape featuring a central circular section with a radius of 11mm, extending into a rectangular arm 22mm long (from center to edge) and 18mm wide, with corners rounded to a 3mm radius. Wi...
$inner_radius1 = 7; $inner_radius2 = 11; $outer_radius = 14; $corner_radius = 3; $length = 22; $width = 18; $angle = 130; $base_height = 1; $height = 3; $hole_radius = 3; $hole_span = 6; difference() { union() { linear_extrude($base_height) c($outer_radius, $inner_radius1, $length, $width, $corner_radius, ...
glb/cad_2bda1f992a5e.glb
Create a fan duct for a cooling system. Start with a square base plate measuring 40mm by 40mm with a thickness of 2mm. Center this plate on the origin. In this base, place four 4mm diameter holes, each with 10 facets, positioned symmetrically. The holes should be centered at coordinates (±14.5, ±14.5) relative to the c...
module ductbody() { polyhedron( points=[ [0.5,0.5,0],[0.5,-0.5,0],[-0.5,-0.5,0],[-0.5,0.5,0], [-0.5,0.5,1], [0.5,0.5,1] ], triangles=[ [0,1,5],[1,2,5],[2,4,5],[2,3,4],[3,0,4], [4,0,5],[1,0,3],[2,1,3] ] ); } module duct(x,y,height, wall) { difference() { scale([x,y,height]) duc...
glb/cad_1c5c94c4aff6.glb
Create a floating extension for a drone by designing a flat plate with a thickness of 10mm. The main body features a large circular cutout with a radius of 34.5mm to accommodate a pool noodle. On one side of the plate, construct a clamping mechanism. This consists of a rectangular base with a width of 13mm (calculate...
additional_height=15; Thickness=10; Wall_Thickness=2; Pool_Noodle_Diameter=65; gap=1; shift=0.5; inner_r=2; outer_r=4.5; clamp_x=8.5; clamp_y=9; eps=0.01; fn=200; noodle_r=Pool_Noodle_Diameter/2; noodle=true; wall=Wall_Thickness; total_x=clamp_x+2*wall+gap; add_h=additional_height+(outer_r-inner_r+shift); li...
glb/cad_4b6595029362.glb
Create a customizable grommet by constructing a hollowed-out vertical stack of three concentric cylinders. Start with a base cylinder 5mm high with a radius of 20mm. Place a middle cylinder on top of the base that is 3mm high with a radius of 10mm. Place a final top cylinder on top of the middle section that is 5mm hig...
top_height=5; groove_height=3; top_width=40; mid_width=32; grommet_cap(top_height,mid_width,top_width,groove_height); module top(h=5,r=10) { cylinder(h,r,r); } module bottom(h=5,r=10) { cylinder(h,r,.7*r); } module mid(h=3,r=7) { cylinder(h,r,r); } module solid(h=5,r1=10,r2=15,g=3) { union() { top(h,r2...
glb/cad_e27e421c01de.glb
Create a customizable grommet consisting of three stacked concentric sections with a central hole passing through the entire vertical axis. The bottom section is a cylinder with a height of 5mm and a base radius of 20mm, tapering upward to a top radius of 14mm. Above this, place a middle cylindrical groove with a heigh...
top_height=5; groove_height=3; top_width=40; mid_width=32; grommet_cap(top_height,mid_width,top_width,groove_height); module top(h=5,r=10) { cylinder(h,.7*r,r); } module bottom(h=5,r=10) { cylinder(h,r,.7*r); } module mid(h=3,r=7) { cylinder(h,r,r); } module solid(h=5,r1=10,r2=15,g=3) { union() { top(h...
glb/cad_86fb2b93a066.glb
Create a candlestick by revolving a specific profile around a central vertical axis. Start from the bottom with a circular base that has a radius of 30mm and a height of 10mm. From the top of this base, create a vertical shaft with a radius of 15mm that extends upwards to a total height of 260mm. At the top of this sha...
module candlestick( candle_radius_mm = 15, candlestick_radius_mm = 15, candlestick_height_mm = 250, candle_radius_to_base_radius_ratio = 2) { rotate_extrude() polygon(points=[ [0,0], [candle_radius_mm*candle_radius_to_base_radius_ratio,0], [candle_radius_mm*candle_radius_to_base_radius_ratio,10], [ca...
glb/cad_cb6b91b5391d.glb
Create a Customizable Stand designed to hold a flat object. The base is a V-shaped support structure with a total length of 160mm and a maximum height of 25mm. The two arms of the V are each 12mm wide. The overall structure should have rounded edges with a smoothing radius of 5mm. The stand features a cutout to accomm...
ObjectWidth=280; ObjectLenght=400; ObjectH=4.5; ObjectLoffset=17; ObjectHdifference=12; ObjectA=100; ObjectS=[ObjectWidth,ObjectLenght,ObjectH]; VLenght=160; VArmWidth=12; VHeight=25; Smooth=5; method="width"; VWidth=50; VAngle=35; angleBack=5; if (method=="width") stand(ObjectS, ...
glb/cad_d70e8e3d2fef.glb
Create a pinpeg for a caster wheel repair. The object consists of two identical pins joined together. Each pin is a cylinder with a radius of 5.25mm and a total combined height of 42mm. For each pin, create a central shaft with a radius of 5.25mm. At the end of the shaft, add a lip with a height of 3mm and a thicknes...
$fn=100; pinpeg(h=42, r=5.25, lh=3, lt=1); $fn_override = $fn; function getCustomFn(base) = max(base, $fn_override); module pin(h=10, r=4, lh=3, lt=1, side=false) { if (side) { pin_horizontal(h, r, lh, lt); } else { pin_vertical(h, r, lh, lt); } } module pinpeg(h=20, r=4, lh=3, lt=1) { union() { ...
glb/cad_6b5409c8a629.glb
Create a pinpeg for a 50mm caster wheel repair. The object consists of two identical pins joined back-to-back. Each pin is a cylinder with a radius of 2.5mm and a total combined height of 42mm. Each pin features a shaft and a lip. The lip has a height of 3mm and a thickness of 1mm. To create the flexibility and movem...
$fn=100; pinpeg(h=42, r=(5/2), lh=3, lt=1); $fn_override = $fn; function getCustomFn(base) = max(base, $fn_override); module pin(h=10, r=4, lh=3, lt=1, side=false) { if (side) { pin_horizontal(h, r, lh, lt); } else { pin_vertical(h, r, lh, lt); } } module pinpeg(h=20, r=4, lh=3, lt=1) { union() { ...
glb/cad_fbf9740fd870.glb
Create a 50mm caster wheel repair part. Start by creating a cylinder with a diameter of 50mm and a height of 13mm. Modify this cylinder so that the top and bottom faces are slightly domed, following the curvature of a sphere with a radius of 100mm. Attached to the base of this wheel, add a cylindrical standoff with a ...
$fn=100; wheelDiameter=50; wheelWidth=13; wheelStandoff=2; standoffDiameter=12; wheelPart(); module wheelPart() { difference() { wheelWithStandoff(); pinhole(h=wheelWidth+wheelStandoff, r=(5.25/2), lh=3, lt=1, t=0.3, tight=true); } } module wheelWithStandoff() { translate([0,0,wheelS...
glb/cad_8b79ce25e9c6.glb
Create a caster wheel repair pinhole. Start with a central vertical cylinder that has a total height of 15mm and a radius of 4mm. Add a lip to the top of this cylinder that is 3mm high with a thickness of 1mm. From this main body, remove a larger concentric cylinder from the center with a radius of 2.625mm and a heig...
$fn=100; wheelWidth=13; wheelStandoff=2; difference() { pinhole(h=wheelWidth+wheelStandoff, r=4, lh=3, lt=1, t=0.3, tight=true); translate([0,0,-.001]) union() { pinhole(h=wheelWidth+wheelStandoff+.002, r=(5.25/2), lh=3, lt=1, t=0.3, tight=true); transla...
glb/cad_1dd667b0902e.glb
Create a 50mm caster wheel repair part. Start by creating a main wheel body that is a cylinder with a diameter of 50mm and a height of 13mm. The top and bottom faces of this cylinder should be domed, following a spherical curvature with a radius of 100mm. Attached to the bottom of this wheel is a cylindrical standoff ...
$fn=100; wheelDiameter=50; wheelWidth=13; wheelStandoff=2; standoffDiameter=12; wheelPart(); module wheelPart() { difference() { wheelWithStandoff(); pinhole(h=wheelWidth+wheelStandoff, r=4, lh=3, lt=1, t=0.3, tight=true); } } module wheelWithStandoff() { translate([0,0,wheelStandoff...
glb/cad_62b626da5766.glb
Create a Y-fitting for water tubes consisting of a central spherical base and three radiating tube holders. The central base is a sphere with a radius of approximately 11.04mm, but it is sliced in half horizontally to create a flat bottom. From this base, extend three tube holders. Each holder is a hollow cylinder wit...
$fn=100; inInnerR=3; inOuterR=4.7; outInnerR=3; outOuterR=4.7; thS=1.3; thPL=4.5; bR=10; outAngles=[220, 270]; bRSphere=sqrt(pow(outOuterR,2) + pow(bR, 2)); outAngle1=360-outAngles[0]; outAngle2=360-outAngles[1]; all(); module all() { union() { base(); translate([bR, 0, 0]) tubeHolder(inInnerR, inOuterR);...
glb/cad_fab15ed7aae5.glb
Create two thin, concentric ring structures that resemble ball bearings. The first ring should have an outer diameter of 32mm, an inner diameter of 25mm, and a thickness of 4mm. Within this ring, create a secondary concentric channel by removing a circular section that leaves a thin wall at the outer edge and a thin wa...
bearing_smoothness = 30; ball_bearing_test(); module ball_bearing_test() { translate([0,0,0]) ball_bearing_6705_25x32x4(); translate([0,0,10]) ball_bearing_6902_15x28x7(); } module ball_bearing_6705_25x32x4() { bearing(25,32,4); } module ball_bearing_6902_15x28x7() { bearing(15,28,7); } module ball_bearing_2...
glb/cad_1b945adbd9e8.glb
Create a Gear Sphere (Icosahedron) by constructing a set of meshing bevel gears. First, create two primary bevel gears with a shared cone distance of 100mm. The first gear should have 41 teeth and the second gear 7 teeth. Both gears must share a circular pitch of 1000mm and a pressure angle of 30 degrees. For the fir...
bevel_gear_pair (); pi=3.1415926535897932384626433832795; module bevel_gear_pair ( gear1_teeth = 41, gear2_teeth = 7, axis_angle = 20, outside_circular_pitch=1000) { outside_pitch_radius1 = gear1_teeth * outside_circular_pitch / 360; outside_pitch_radius2 = gear2_teeth * outside_circular_pitch / 360; pitch_ape...
glb/cad_e4ca2af5cb95.glb
Create a bushing adapter by constructing a hollow cylinder with a height of 24mm. The outer diameter of the cylinder should be 14.9mm (calculated as 15mm minus a 0.1mm tolerance). Remove a concentric cylindrical core from the center to create a hole with a diameter of 10.34mm (calculated as 10mm plus a 0.34mm tolerance...
od_adap_tol=-0.1; id_b_tol=0.34; $fn=50; difference() { cylinder(h=24,r=(15+od_adap_tol)/2); translate([0,0,-0.1]) cylinder(h=24.2,r=5+id_b_tol/2); }
glb/cad_9c72e8312889.glb
Create a modular device holder base. Start by creating a rectangular frame with outer dimensions of 267mm by 212mm and a height of 19mm. The frame has a wall thickness of 3mm, creating a hollow interior cavity of 261mm by 206mm. At the center of the base, place a cylinder with a radius of 25mm and a height of 4.2mm. I...
width = 200; height = 254; thickness = 15; module MMark() { rotate([0,0,180]) translate([4.3,19,-.1]) linear_extrude(1,0,.9) scale([-1,1,1]) { translate([5.8,-2.9,0]) rotate([0,0,50]) text("S",10,font="Jim Nightshade"); translate([.2,-2.5,0]) scale([1.2,.8,1]) text("J",4,font="Aldrich"); ...
glb/cad_61148b3cf3bf.glb
Create a set of Hexakisoctahedral Boxes with Lids. For the box, start with a distorted hexakisoctahedron based on a sphere with a radius of 110mm, truncated by planes to create the faceted outer shell. Hollow out the center by removing a rounded cube with dimensions 43mm x 43mm x 90mm and a corner radius of 10mm. Add...
mark = 2; if (mark==1) difference() { var_hexakisoctahedron(1,1,1,1,3,11); translate([-34.5,-34.5,-35]) rounded_cube(69,69,90,10); translate([0,0,-87]) cube(100,center=true); translate([0,0,84]) cube(100,center=true); } else if (mark==4) union() { translate([0,0,43]) scale(0.33) rotate([0,0,45])...
glb/cad_698c6f6f5d14.glb
Create a Magnets Bracket by starting with a thin cylindrical base that has a radius of 45mm and a height of 3mm. Use a 30-facet resolution for all circular elements. First, remove a central vertical hole with a radius of 4.4mm that passes completely through the base. Then, create six identical circular holes, each with...
rayon_base = 90/2; hauteur = 3; axe_rayon = 8.8/2; aimant_rayon = 9.4; decalage_bord = 3; centre_aimant = rayon_base-aimant_rayon-decalage_bord; nombre_aimant = 6; decalage = 1; module base(){ difference(){ cylinder(r=rayon_base, h=hauteur, $fn = 30); translate([0, 0, -decalage ]) cylinder(r=axe_rayon, h=hauteur...
glb/cad_7391d11e288e.glb
Create a Surfboard Modem Cover with an overall footprint of 109mm in length, 48.1mm in width, and 8mm in height. The object is a hollow shell with a consistent wall thickness of 2mm. Start by creating a solid rectangular block of 109mm by 48.1mm by 8mm. Hollow out the center by removing a rectangular section that is ...
difference(){ cube([109,48.1,8.0]); translate([0,2,2]){cube([109,44.1,8.0]);} } difference(){ translate([-13.4,13.4,0]){cube([13.4,21.3,8.0]); } translate([-11.4,13.4,2]){cube([13.4,21.3,8.0]); } } difference(){ translate([109,13.4,0]){cube([13.4,21.3,8.0]); } translate([109,13.4,2]){cube([11.4,21.3,8.0]); } } ...
glb/cad_8e2f89ec3649.glb
Create an Angled Dry Box Feeder consisting of a mounting base and an angled cylindrical guide. First, create a rectangular mounting base 45mm long, 25mm wide, and 8mm thick with rounded corners (radius 3.125mm). In this base, place two 5mm diameter screw holes centered 16.67mm from the midline on either side. Around ...
use <mcad/boxes.scad> use <mcad/metric_fastners.scad> include <polyScrewThread_r1.scad> echo(fs=$fs); echo(fa=$fa); echo(fn=$fn); $fa=6; $fs=1.5; c_od = 15; c_id = 6; c_angle = 50; c_length = 30; c_thread_length = 8; b_width = c_od + 10; b_length = c_od * 3; b_height = 8; b_size = [ b_length, b_width, b_height ]; f_...
glb/cad_10a7a4b8cf98.glb
Create a lamp socket support by starting with a hexagonal prism that has a radius of 67.5mm and a height of 4mm. In the center of this hexagon, remove a cylindrical hole with a radius of 16mm and a height of 8mm. To create the decorative pattern, remove a series of rectangular slots from the main body. First, create si...
difference(){ difference(){ cylinder(r=135/2, h=4, $fn=6); translate([0,0,-1]) cylinder(r=32/2, h=8, $fn=50); } union(){ for (i = [1:6]){ rotate([0,0,i*60]) translate([22,-2.5,-2]) cube([40,5,10]); } for (i = [1:17]){ rotate([0,0,i*20]) translate([22,-1.5,-2]) cube([33,3,10]); ...
glb/cad_23430e758331.glb
Create a bottle lock device with an overall height of 20mm and a wall thickness of 3mm. The main body is a composite shape formed by the hull of a large cylinder with a radius of 17.5mm (half of the 29mm inner diameter plus thickness) and a smaller hinge cylinder with a radius of 4.5mm, both 20mm tall with 0.5mm chamfe...
include <vertical_hinge.scad>; thickness = 3; inner_diameter_1=29; inner_diameter_2=26; hole_diameter=18; ring_height=9; overall_height=20; chamfer=0.5; $fn=60; hinge_r1=4.5; hinge_r2=20; hinge_theta_0=90; font="Consolas:style=Bold"; font_size=5; lock_holder_thickness=8; lock_holder_length=12; lock_hole_r=3; lock_...
glb/cad_81fd14df1d3f.glb
Create a stylized, blocky sheep model using a base scale of 5mm per pixel. First, construct the head as a cube measuring 30mm x 40mm x 30mm. Within this head, remove several small rectangular sections to create detail: a 20mm x 10mm x 0.4mm slice at the top center, and a 30mm x 2mm x 22.5mm vertical cutout in the cen...
scale=5; module animal_leg() { difference() { union() { cube([4*scale,4*scale,12*scale]); translate([-.1*scale,-.1*scale,11*scale])cube([4.2*scale,4.2*scale,1*scale]); } leg_connector(); translate([2*scale,4.05*scale,11.5*scale])cube([2*scale,.1*scale,1*scale], center=true); } } module leg_connector() { translate([sc...
glb/cad_1cfdae01ce1e.glb
Create a Customizable Chaos Base consisting of an octagonal pedestal with curved arrows on its sides. The base should be 7mm high with a maximum width of 40mm. The top face is a smaller octagon, scaled to 70% of the base width, creating tapered sides. On each of the eight side facets, add a raised, stylized curvy arro...
sides=8; base_height=7; base_width=40; factor=.7; god="Khorne"; set1=[1,5,35]; set2=[0,10,65]; set3=[.5,10,0]; set4=[-3,10,50]; height=1; user_wants_a_slotted_base = "no"; slot_allignment="edge"; slot_thickness=2.5; slot_width=20; slot_depth=5; ep=0+0.1; arrow_tip= intersection(set1,[set1[0],set1[1],180-...
glb/cad_72f8126bd23f.glb
Create a mount for a bike light by combining a central rectangular block with two semi-circular ring connectors. Start with a central rectangular base measuring 26mm wide, 20mm long, and 13mm high, centered on the origin. Add two identical ring-shaped connectors that wrap around the sides of this base. Each connector...
module oring_mount(length, height, radius, thickness){ translate([0,0,-height/2]){ difference(){ cube([length, height, height], center=true); for( i =[1,-1]){ translate([i*(length/2.0-thickness-radius), 0,-height/2]){ rotate([90,0,0]){ cylinder( r = radius, h= height+1, c...
glb/cad_b5589900ec3a.glb
Create a Sink Strainer drain catch with a total diameter of 38mm. The main body is formed by the intersection of a cylinder with a bottom radius of 17.5mm and a top radius of 18.5mm (height 10mm) and a sphere with a radius of 19mm centered at a height of 12mm. Add a flat circular rim at the top of the main body with a ...
Notice="This files is being worked on"; diameter=38; scale(diameter/36.25,[1,1,1]); HelperDisk = "yes"; difference(){ union(){ intersection(){ color ("green") cylinder(r1=35/2,r2=37/2,h=10,$fn=100); translate([0,0,12]) color ("lime") sphere(19,$fn=100); } translate([0,0,10]) cylinder(r1=37/2,r2=39/2,...
glb/cad_6c6a0ca5a4eb.glb
Create a Clothes Drying Rack component by revolving a specific 2D profile around a central axis to form a circular ring. The final object should have an outer diameter of 30mm and a central hole with a diameter of 13.4mm. The cross-section of the ring's wall is 5.6mm thick. Within this cross-section, incorporate a smal...
width=30; thick=5.6; hole=13.4; valley=0.4; iw=width/2-hole/2+0.3; d=iw-thick+3; rotate_extrude(convexity = 10, $fn=100) translate([hole/2-0.3,0,0]) difference(){ square ([iw,thick],center = false); translate([0,0.3,0]) square ([0.3,thick-0.6],center = false); translate([0,0.3,0]) square ([0.2,thick],ce...
glb/cad_f0bce2159419.glb
Create a clothes drying rack bracket by starting with a flat rectangular base 97mm long, 15mm wide, and 3mm thick. At each end of this rectangle, integrate a cylinder with a diameter of 15mm and a height of 7.3mm, centered on the rectangle's width. To finish the piece, remove three vertical cylindrical holes, each 4.2m...
length=97; width=15; thickness=3; thickness2=7.3; hole_size=4.2; difference() { union() { hull() { cylinder(d=width, h=thickness); translate([length-width,0]) cylinder(d=width, h=thickness); } cylinder(d=width, h=thickness2); translate([length-width,0]) cylinder(d=width, h=thickness2); } translate([0,...
glb/cad_6d209a91bf39.glb
Create a Fabtotum Mini Back Panel by starting with a main rectangular plate measuring 170mm in height, 60mm in width, and 2.5mm in thickness. Add a rim along the top edge that is 2.5mm inset from the sides, 5mm high, and 2.5mm thick. Incorporate two screw holes with a diameter of 3.3mm. Position the first hole at X=17...
panelHeight=170; panelWidth=60; panelDepth=20; panelThickness=2.5; rimInset=2.5; rimHeight=5; botCurveRadius=30; distanceBetweenScrews=112; screwHole=3.3; screwMargin=3; $fn=30; difference(){ union(){ cube([panelHeight,panelWidth,panelThickness]); cube([panelThickness,panelWidth,panelDepth]); ...
glb/cad_2dce52136668.glb
Create a CCG card box consisting of a lower container and a lid. For the lower container, create a rectangular block with outer dimensions of 94.2mm in height, 69.4mm in width, and 36.4mm in depth. Hollow out the center with a rectangular cavity measuring 93.1mm by 67mm by 34mm. To allow for card removal, create a semi...
_h = 93; _w = 67; _d = 34; _hasCutout = 1; module inner_dim(h,w,d) { translate([.6,0,0]) cube([h + 0.1,w,d],center=true); } module outer_dim(h,w,d) { cube([h + 1.2,w + 2.4,d + 2.4],center=true); } module outer_lid(h,w,d) { h_mod = h; w_mod = w + 0.5; d_mod = d + 0.5; cube([h_mod + 2.4, w_mod + 4.8,d_mod + 4.8...
glb/cad_bd7cf937e14a.glb
Create a rectangular chassis plate for the Gilbert300 hexapod robot. The main plate is 146mm long (from -73mm to 73mm on the X-axis) and 160mm wide (from -80mm to 80mm on the Y-axis), with a thickness of 2mm. To reinforce the plate, add several vertical ribs of 6mm height. Place two longitudinal ribs running the full ...
largeurentrtoise=24; dpetit=3; dgros=8; pospetit=7; posequerre=22; largeurmaxi=73; longueurmaxi=80; epaisseur=2; hautraidisseur=6; largeurusbox=52; entreaxe1=30; $fn=40; difference(){ union(){ translate([-longueurmaxi,-largeurmaxi,0])cube([longueurmaxi*2,largeurmaxi*2,epaisseur]); translate([-lo...
glb/cad_f24fa72ca2d5.glb
Create a rectangular bracket with overall dimensions of 18mm in length, 24mm in width, and 100mm in height. The walls of the bracket should be 2mm thick. Hollow out the center of the block by removing a central rectangular volume, leaving a 2mm shell. Specifically, remove a central section that is 14mm wide and 96mm h...
epaisseur=2; hraidisseurs=4; dpetit=3; dgros=8; pospetit=7; hauteur=100; largeur=24; longueur=18; $fn=40; zservo=13; xservo=4; yservo=14; difference(){ union(){ translate([-longueur/2,-largeur/2,-hauteur/2])cube([longueur,largeur,hauteur]); } union(){ translate([-longueur/2+epaisseur,-la...
glb/cad_fd56af2a599e.glb
Create a rectangular chassis plate for the Gilbert300 hexapod robot. Start with a base plate measuring 160mm in length and 48mm in width with a thickness of 2mm. On top of this base, add a series of structural reinforcement ribs with a height of 6mm. Include two longitudinal ribs running the full length of the plate,...
largeurentrtoise=24; dpetit=3; dgros=8; pospetit=7; posequerre=22; largeurmaxi=73; longueurmaxi=80; epaisseur=2; hautraidisseur=6; largeurusbox=52; entreaxe1=30; $fn=40; difference(){ union(){ translate([-longueurmaxi,-largeurmaxi,0])cube([longueurmaxi*2,largeurmaxi*2,epaisseur]); translate([-lo...
glb/cad_c378a776ef0c.glb
Create a rectangular deck for an Arduino Mega 2560 with a main floor measuring 130mm in length and 56mm in width, and a thickness of 2mm. Add structural reinforcement to the floor using several ribs. First, place two longitudinal ribs, each 2mm wide and 4mm high, running the full length of the deck along the edges. N...
largeurdeck=28*2; longueurdeck=65*2; epaisseurdeck=2; hauteurraidisseur=4; longueurtraverse=97; largeurtraverse=24; positiontraverse=36; largintmontant=20; difference(){ union(){ translate([-longueurdeck/2,-largeurdeck/2,0])cube([longueurdeck,largeurdeck,epaisseurdeck]); translate([-positiontrav...
glb/cad_ffd08f7fb799.glb
Create a bracket for a servo motor with a total width of 60mm, a total height of 34mm, and a total depth of 26mm. The main structure is a U-shaped channel with a base thickness of 2mm and side walls that are 52mm wide. The side walls feature vertical stiffeners that are 4mm high. The interior of the bracket is hollow...
$fn=120; angle=45; dpetit=3; dgros=8.5; pospetit=7; raidis=4; epais=2; larg=52+2*(raidis+epais); haut=11+21+raidis+epais; prof=22+2*epais; union(){ difference(){ rotate([0,-angle,0]){ difference(){ union(){ translate([0,-larg/2,0])cube([prof,larg,haut-(prof/2)+epais]); difference(){ translate ([0,larg/2,0]) r...
glb/cad_2876a10e643c.glb
Create a UBEC and fan bracket. Start with a solid rectangular block measuring 105mm in length, 51.2mm in width, and 34.25mm in height. Carve out a central rectangular section measuring 97mm by 53.2mm by 8mm, starting 2mm from the bottom. Within this, create a fan housing measuring 30.5mm wide, 53.2mm deep, and 11mm h...
largeurfan=30.5; epaisseurfan=11; entraxefan=24; largeurubec=42; epaisseurubec=12.25; hauteurentretoise=105; epaisseur=2; largeurusbox=51.2; entraxefixation=30; pospetit=7; dpetit=3; dgros=8; largeurbouton=12; longtroubouton=12; largtroubouton=6; entraxebouton=19; $fn=40; difference(){ union(){ transl...
glb/cad_368e31f887c7.glb
Create a parametric flange consisting of a central cylindrical disc and a raised central hub. The main disc has a diameter of 22mm and a thickness of 5mm. Centered on this disc, add a smaller cylindrical hub with a diameter of 12mm and a total height of 7mm. Remove a central vertical hole with a diameter of 5.8mm tha...
dext=22; daxis=5.8; dextaxis=12; ddrillaxis=3.5; ddrill=3; ddrills=14; dnut=6.5; hnut=2.4; ndrills=4; thickdisc=5; thickaxis=7; depthaxis=3.5; $fn=40; difference(){ union(){ translate([0,0,0]) cylinder(h=thickdisc,d=dext); translate([0,0,0]) cylinder(h=thickaxis,d=dextaxis); } translate([0,0,thickaxis-dep...
glb/cad_ec30b4f6ffc5.glb
Create a servo bracket for a hexapod robot. Start with a main body formed by two joined rectangular blocks: a larger base block measuring 24mm wide, 56mm long, and 32mm high, and a smaller attached block measuring 2mm wide, 41mm long, and 5mm high positioned at the top. Hollow out the center of the main body by remov...
$fn=40; dservo=4.25; dpetit=3; dgros=8.5; hlog=3.25; pospetit=7; difference(){ union(){ translate([-10,-28,1])cube([24,56,32]); translate([12,-20.5,33])cube([2,41,5]); } translate([-11,-20.5,3])cube([23,41,33]); translate([-11,-26,3])cube([23,52,21]); translate([-8.75,-30,27])cube([7.5,10,hlog]); translate([...
glb/cad_907a5c0816d4.glb
Create a foot-rotule assembly for a hexapod robot. First, construct a switch support by combining a central cylinder of diameter 12mm and height 20mm with a larger cylinder of diameter 14mm and height 10mm at the base. Top this with a rectangular mounting plate measuring 25.2mm by 31mm with a thickness of 6mm. Drill ...
switchepais1=1.6; switchd1=6; switchd2=9.4; switchd3=10; switchd4=7.5; switchd5=12; switchd6=switchd3+2*switchepais1; switchd7=switchd6+2*switchepais1+1; switchh1=3; switchh11=11; switchh12=12; switchh2=2; switchh3=9; switchh4=20; switchh5=10; course=switchh12-switchh11; bouchonepais1=1.6; bouchond1=switchd1+0.5; bou...
glb/cad_5d1191b18a07.glb
Create a Melzi to RAMPS 1.4 adapter consisting of two rectangular plates and four cylindrical standoffs. First, create a base plate measuring 84.9mm by 58.2mm with a height of 3mm. In this plate, place four 10-sided polygonal holes with a diameter of 3.6mm and a depth of 3mm. These holes should be positioned at the fou...
boltholedia=3.6; boltholefaces=10; boltholeheight=3; standoffheight=8; standoffdia=8; sbboltwidth=74.9; sbboltdepth=48.2; sbplatewidth=sbboltwidth+10; sbplatedepth=sbboltdepth+10; sbplateheight=3; melziboltwidth=200.660; melziboltdepth=41.910; melziplatewidth=melziboltwidth+10; melziplatedepth=melziboltdepth+10; melz...
glb/cad_30b659c0c0f0.glb
Create a case for an FG085 signal generator. The main body is a hollow shell with a wall thickness of 1.5mm. The outer dimensions are based on a panel width of 157.5mm and a height of 62mm. Construct the shell by creating two symmetrical half-shells. Each half-shell features an inner frame designed to house a PCB of 1...
part = "shell"; with_tubes = 0; with_u5p = 0; with_u6p = 1; with_pwm = 1; with_usb = 1; function in2mm(a) = a * 25.4; panel_width = 157.5; panel_height = 62.0; panel_wall = 2.0; panel_delta_w = 1.0; pcb_thickness = 1.6; pcb_width = in2mm(6.100); pcb_height = in2mm(2.200); spacer_front = 12.0; spacer_rear = 13.2; pane...
glb/cad_bc35dfbf4c45.glb
Create a friction-fit vise soft jaw. Start with a solid rectangular block measuring 131.5mm in width, 27.5mm in height, and 18.5mm in depth. Hollow out the center of this block to create a shell with a wall thickness of 3mm on the sides and bottom, leaving the top open. The interior cavity should be 125.5mm wide, 21.5m...
vise_jaw_width = 125; vise_jaw_height = 21; vise_jaw_depth = 12; overlap = 1.26; soft_jaw_face_thickness = 6; soft_jaw_wall_thickness = 3; cutout_guide_radius = 3; cutout_angles = [45,90]; fudge_factor = 0.5; gOff = vise_jaw_width/len(cutout_angles); jDepth = max(soft_jaw_face_thickness, (len(cutout_angles) ...
glb/cad_1cb9334e5f19.glb
Create a Cello Eraser Holder by constructing a stylized cello body with a central cutout for an eraser. Start with the main body by creating a hull between two cylinders: one with a radius of 0.75mm and height of 0.8mm at [1.3, 0, -0.4], and another with a radius of 0.9mm and height of 0.8mm at [0.3, 0, -0.4]. Attach a...
module Peg(x,y,z, theta, dy){ translate([x,y,z]) rotate([90, 0, 0]) cylinder(r=.05, h=.2); translate([x-.02,y+dy,z]) rotate([0, theta, 0]) cylinder(r=.10, h=.05, center=true); } module EraserHolder(){ difference() { union(){ hull() { translate([1.3,0,-.4]) cylinder(r=.75, h=.8); translate([.3,0,...
glb/cad_139a33b215de.glb
Create a six-sided die by starting with the intersection of a 10mm cube and a sphere with a 7mm radius, both centered at the origin. Use a facet resolution of 30 for all curved surfaces. From this rounded cube, remove several spherical holes to create the pips. On the top face (Y=5), remove five spheres with a 1mm radi...
difference(){ intersection(){ cube([10,10,10], center = true, $fn=30); sphere(r = 7, $fn=30); } translate([0,5,0]) sphere(r = 1.5, $fn=30); translate([5,2,2]) sphere(r=1.5, $fn=30); translate([5,-2,-2]) sphere(r=1.5, $fn=30); translate([-5,-2,-2]) sphere(r=1, $fn=30); translate([-5,2,2]) sphere(r=1, $fn=30); transl...
glb/cad_440d4565426c.glb
Create a parametric sprinkler for roots consisting of a hollow cylindrical body and a tube holder. The main body is a cylinder with an outer diameter of 10mm and a total height of 63mm. This body starts with a solid base 3mm thick, above which is a hollow section 60mm high with an inner diameter of 8.5mm. Within this...
$fn=30; sprID=8.5; sprOD=10; sprH=60; baseH=3; holeNR=4; holeStep=90; holeD=1; tubeID=4.8; tubeOD=6.2; thS=1.7; thPL=5; Nhold=2; holeDist=sprH/holeNR; all(); module all() { union() { sprinkler(); translate([0, 0, sprH+baseH])rotate([0,-90,0]) tubeHolder(tubeID, tubeOD); } } module sprinkler(){ u...
glb/cad_c4bc13d914da.glb
Create a pair of parametric sunglasses consisting of two symmetrical lens holders connected by a bridge. For each lens holder, create a base cylinder with a diameter of 53mm and a height of 3.5mm. Hollow out the center of each cylinder by removing a concentric cylinder with a diameter of 51mm and a height of 2.5mm, lea...
dia = 51; resolution = 100; l=4; d=7; module lenshouder() { border = dia-3; difference() { cylinder(h=3.5,r=(dia+2)/2, $fn=resolution); translate([0,0,1]) cylinder(h=2.5,r=dia/2, $fn=resolution); cylinder(h=1,r=border/2,$fn=resolution); } difference() { ...
glb/cad_e60735467c74.glb
Create a GoPro gimbal base plate. Start with a main rectangular base measuring 66mm by 28mm with a thickness of 3mm. In the center of this base, create a recessed honeycomb grid pattern. The honeycomb consists of hexagonal holes with a wall thickness of 3mm and a hole diameter of 6mm. At one end of the base, add a ver...
module gopro() { lens_r = 23/2; gopro_depth = 21; union() { color("Tomato", 0.3) { cube([59, gopro_depth, 41]); rotate([-90,0,0]) { translate([(4 + lens_r), -(17 + lens_r), gopro_depth]) { cylinder(30 - gopro_depth, lens_r, lens_r); } } } } } cambase_len = 60; cambase_w = 22; ...
glb/cad_442c27f2944a.glb
Create a battery holder tray by starting with a solid rectangular block 30mm high. The block's width is determined by the combined space of two battery sections and a 2mm wall. The first section contains a grid of 12 holes (4 columns by 3 rows) for AA batteries, where each hole has a radius of 7.5mm and a depth of 25mm...
delta = 0.5; wall = 2; AA_r = 14.5/2; AAA_r = 10.5/2; h = 30; base = 5; n_AA_v = 4; n_AA_h = 3; n_AAA_v = 3; n_AAA_h = 4; module bat_holes(n_x, n_y, r) { step = r*2 + wall; start = r + delta/2 + wall; for (x = [start : step : step * n_x + wall*2]) for (y = [start: step: step * n_y + wall*2]) ...
glb/cad_216eed5d5dc5.glb
Create an Arduino Nano Pin Protector consisting of two matching shell halves (upper and lower) that enclose a PCB and its right-angle pin headers. The overall outer dimensions of the main body are approximately 24.2mm wide, 52.5mm long, and 11.1mm high, with chamfered edges. The lower shell is a hollowed rectangular b...
ew = 0.56; eh = 0.252; module chamfered_cube(size,d=1){ hull(){ translate([d,d,0])cube(size-2*[d,d,0]); translate([0,d,d])cube(size-2*[0,d,d]); translate([d,0,d])cube(size-2*[d,0,d]); } } module chamfered_cylinder(r=0,r1=0,r2=0,h=0,d=1){ hull(){ translate([0,0,d])cylinder(r1=(r?r:r1),r2=...
glb/cad_88b15340b686.glb
Create an Arduino Nano Pin Protector shell consisting of a two-part enclosure (upper and lower) designed to house a Nano PCB with right-angle pin headers. The overall external dimensions are approximately 24.2mm wide, 52.5mm long, and 11.1mm high. Construct the main body as a chamfered rectangular block. Create a cent...
ew = 0.56; eh = 0.252; module chamfered_cube(size,d=1){ hull(){ translate([d,d,0])cube(size-2*[d,d,0]); translate([0,d,d])cube(size-2*[0,d,d]); translate([d,0,d])cube(size-2*[d,0,d]); } } module chamfered_cylinder(r=0,r1=0,r2=0,h=0,d=1){ hull(){ translate([0,0,d])cylinder(r1=(r?r:r1),r2=...
glb/cad_d5e793976883.glb
Create a bearing mount for a Kossel printer. Start with a central rectangular base measuring 33mm by 39mm with a height of 6mm. On the left and right sides of this base, add two vertical rectangular blocks, each 8.5mm wide, 39mm deep, and 24mm tall, centered along the depth. Carve a large cylindrical hole with a radiu...
module ball_bearing(ri = 6, ra = 22, height = 10, support=false, freefaktor = 1.15) { difference() { cylinder(r=ra, h=height, $fn=60); translate([0,0,-0.1]) cylinder(r=ri,h=height + 0.2, $fn=60); translate([0, 0, height/2]) rotate_extrude($fn=60) translate([(ri + ra)/2, 0, 0]) circle(r=(height*freefaktor)/2); }...
glb/cad_ef364cfaabc8.glb
Create a bearing mount for a Kossel printer. Start with a central rectangular base measuring 33mm by 39mm with a height of 6mm. Add two vertical rectangular blocks on opposite sides, each measuring 8.5mm by 39mm by 24mm, centered at X positions of 12.25mm and -12.25mm respectively. Carve a central rectangular void mea...
module ball_bearing(ri = 6, ra = 22, height = 10, support=false, freefaktor = 1.15) { difference() { cylinder(r=ra, h=height, $fn=60); translate([0,0,-0.1]) cylinder(r=ri,h=height + 0.2, $fn=60); translate([0, 0, height/2]) rotate_extrude($fn=60) translate([(ri + ra)/2, 0, 0]) circle(r=(height*freefaktor)/2); }...
glb/cad_c5139ec48f30.glb
Create a 1602 Display box consisting of a rectangular base plate and a hollow enclosure. First, create a flat rectangular base plate with dimensions 83mm by 38mm and a thickness of 1.5mm. At each of the four corners, center a vertical hole with a radius of 1.75mm. Around each hole, create a cylindrical boss with a ra...
$fn = 32; delta = 0.001; display_length = 80; display_width = 36; cube_a = 7; cube_a_h = 10; box_thickness = 1.5; display_around = 1 + box_thickness; display_aroundy = 1 + box_thickness; window_length = (69.6+70.7)/2; window_width = (23.8+14.5)/2; lid_thickness = 1.5; screw_rad = 3.5/2; screw_outer_rad = ...
glb/cad_21cef976ce03.glb
Create a "fasfdsa" ring model. Start by constructing the main band using a hull operation between a sphere with a radius of 12.3mm (based on ring size 16) and a flattened sphere, scaled by 0.5 on the Z-axis. The band should have a thickness of 2.5mm. At the bottom of the band, integrate a circular emblem area with a r...
ring_size = 16; ring_thickness = 2.5; ring_length_modifier = .5; emblem_radius = 10; emblem_depth = 3; part = "ring"; Question_1 = 0; Question_2 = 0; Question_3 = 0; Question_4 = 0; Question_5 = 0; Question_6 = 0; Question_7 = 0; Question_8 = 0; Question_9 = 0; Question_10 = 0; answer_total = Question_1 ...
glb/cad_3f308304e6b7.glb
Create an M12 Camera PCB bracket in the shape of a right-angle channel. The main body is an extruded L-shaped profile with a total length of 34mm, a height of 25.4mm, and a width of 25.4mm. The walls of the bracket have a thickness of 2mm. On the flat base of the bracket, create four through-holes for M2 screws, each ...
len = 34; h = 25.4; w = 25.4; th = 2; od1 = 2.4; od2 = 3.5; sx = 21; sy = 13.5; hh = th*2; mhox = 7; mhoy = 7; mh1_Xoff = 9; mh1_Zoff = 17; fn=20; eps=0.03; AX=0; AY=0; BX=w; BY=0; CX=w; CY=th; D1X=2*th; D1Y=th; D2X=th; D2Y=2*th; EX=th; EY=h; FX=0; FY=h; module mh4() { translate([mhox,mhoy,-hh/4]) cylinder(d = od...
glb/cad_3352e95acd4b.glb