Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a spool holder mount consisting of a central rectangular block and two symmetrical anchoring plates. Start by creating a main rectangular base that is 10mm wide, 10mm deep, and 110mm long. To this base, attach two identical anchoring plates positioned at opposite ends of the 110mm length. Each anchoring plate sh...
include<Spool_mount_for_i3_config.scad> module anchor_axis(){ union() { translate([0,-height_clamp,width]) cube([width,height_clamp,110]); translate([-width/2-0.7,0,0.2]) scale([0.95,1,1]) anchor(); translate([-width/2-0.7,0,110+width-0.2]) scale([0.95,1,1]) anchor(); } } rotate([270,0,0]) anchor_axis();
glb/cad_3fc90b54c8de.glb
Create a Simple Spool Holder consisting of three connected plastic components. First, create a frame mount as a rectangular block with dimensions 12mm length, 10mm height, and 5mm width, featuring a rectangular cutout starting 6mm from the front and 5mm from the bottom that spans the remaining length and width. Second,...
include<Spool_mount_for_i3_config.scad> module frame_mount(){ difference() { cube([length_frame_mount,height,width]); translate([6,5,0]) cube([length_frame_mount-6,6,width]); } } module strip_support(){ rotate([0,0,160]) difference(){ translate([0,-height,0]) cube([length_strip,height,width]);...
glb/cad_9eefcd201efb.glb
Create a Micro Wallet designed to hold cards. The main body is a long, shallow U-shaped channel with a height of 8mm. The interior width of the channel is 65mm, and the interior thickness (the gap between the two parallel walls) is 10mm. The walls are 2mm thick. The side walls are not perfectly rectangular; they flare...
inner_thickness = 10; increase_wall = 0; inner_width = 65; height = 8; card_width = 56; rounded = 0.7*1; overhang=45*1; $fs=0.3*1; $fa=8*1; x = inner_width*1; y = height*1; r = sqrt((x*x)+(y*y)); cc = card_width*1; a = asin(cc/r); b = acos(x/r); c = (a-b); new_length = cc/sin(c); additional = new_length-x; wal...
glb/cad_604b7157a137.glb
Create a horizontal wrench by combining a long rectangular handle with a circular head. Start with a rectangular prism for the handle that is 100mm wide, 50mm deep, and 800mm long, centered on its axes. At one end of the handle, create a circular head by placing a cylinder with a radius of 21mm and a height of 120mm, o...
rotate (a=90, [90,0,0]){ union () { cube ([100, 50, 800], true); difference(){ translate (v=[0,25,400]) scale ([120, 50, 120]){ rotate (a=90, [90,0,0]) { cylinder ([5, 21, 21], true, $fn = 30 ); } } translate ([-57,-30,400]){ cube ([110, 550, 200]);}} }}
glb/cad_8e5ae1b98ff1.glb
Create a Trackimo Mount for a Blade Chroma consisting of a main cradle and two nut trap attachments. Construct the main cradle as a rectangular box with outer dimensions of 50mm width, 44mm length, and 18.7mm height. Hollow out the center to create a cavity 47mm wide, 40mm long, and 15.5mm deep, leaving a wall thickn...
$fn=64; module triangle(width, height, depth) { angle = atan(height / (width / 2)); difference() { translate(v = [ 0, height / 2, 0 ]) { cube(size = [ width, height, depth ], center = true); } translate(v = [ width / 2, 0, 0 ]) { rotate(a = [ 0, 0, 90 - angle ]) { translate(v = [ wi...
glb/cad_162daddfb8b2.glb
Create a castle layout consisting of four walls and four corner towers. Form the walls using two rectangular blocks of 2mm by 50mm by 20mm, positioned perpendicularly to create a perimeter. For the front wall, create a 50mm by 2mm by 20mm block and remove a 10mm wide by 10mm high rectangular opening centered at the bot...
circularTowerHeight = 30; squareTowerHeight = 30; triangleTowerHeight = 30; pentagonTowerHeight = 30; cube([2,50,20]); translate([50,5,0]) cube([2,47,20]); translate([5,50,0]) cube([47,2,20]); difference() { cube([50,2,20]); translate([20,0,0]) cube([10,2,10]); translate([25,2.5,10]) rotate([90,0,0]) cylinde...
glb/cad_e1fa0e130ab9.glb
Create a 3D model of the "Prince Love Symbol" by extruding a specific 2D profile to a height of 5mm. The shape is a stylized, continuous glyph consisting of a circular loop on the right side, a horizontal bar crossing through the center, and a curved tail that spirals outward to the left. The right side of the symbol...
fudge = 0.1; module poly_Selection(h) { scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[-129.771406,-137.450000],[-136.352578,-143.567031],[-142.473906,-149.861250],[-148.154609,-156.371094],[-153.413906,-163.135000],[-158.271016,-170.191406],[-162....
glb/cad_fdb6f0619b39.glb
Create a hard disk holder by joining two rectangular plates. First, create a base rectangular plate measuring 15mm wide, 20mm deep, and 2mm thick. Attach a second rectangular plate to this base, measuring 10mm wide, 25mm deep, and 2mm thick, positioned so its inner edge is 20mm from the base's left side and 14mm from t...
difference() { union() { cube([15, 20, 2]); translate([20, 14, 0]) { rotate(90) { cube([10,25,2]); } } } translate([9, 19,0]) { cylinder( r=2, h=10, center=true); } }
glb/cad_9f73b1050fe5.glb
Create a magnetic mount for a wireless charging dock. Start with a main base block measuring 86mm in length, 15mm in width, and 40mm in height. Within this base, create a central rectangular cavity to hold a phone. This cavity should be 70.5mm long, 8.5mm wide, and 151.2mm high. To form the interior walls and support...
$fn=30; Note5Holder(); *Pad(); noteLength = 70.5; noteWidth = 8.5; noteHeight = 151.2; module Note5() { cube([noteLength, noteWidth, noteHeight]); } baseLength = 86; baseWidth = 15; ; baseHeight = 0; plugLength = 13.5; plugWidth = 8.25; tallSize =40; modul...
glb/cad_7dcb11b3191d.glb
Create a Castle King Gnome pen topper. Start with a gnome figure positioned 8mm above the origin. Surround the base with a circular castle wall consisting of a cylinder with a radius of 40mm and a height of 45mm. On top of this base, add two rings of crenelated parapets. The first ring consists of 12 rectangular merl...
scale(0.5) difference() { union() { translate([0,0,8]) import_stl("GnomeScan.stl"); rotate([-25,5,0]) translate([-6,-37,0]) parapets(merlonCount = 8, merlonDiameter = 32, heightOffset = 103, merlonHeight = 7, merlonWidth = 6, merlonThick = 4 ); union() { translate([0,-9,7]) baseParapets(merlonCount = 12, merlonD...
glb/cad_c7cf561e1845.glb
Create a master shade inverted lithophane. Construct a curved surface with a total width and length of 99mm. The surface should be composed of 8 identical segments arranged in an arc with a 60-degree angle per segment. The thickness of the model varies based on a source image to create a 3D relief, with a minimum bas...
ang=60; num_face=8; xtra=0; image_file = "image-surface.dat"; hole_diameter = 0; hole_border = 0; lithophane_border = 0; layer_height = 0.32; number_of_layers = 23; min_lays=2.5; sz=99; s=0.01; length = 99; width = 99; z=sz/num_face; min_layer_height = layer_height*min_lays; hole_radius = hole_diameter/2; he...
glb/cad_1d49a8a8af7e.glb
Create a FabLab Keyring by constructing a flat, hexagonal-style base plate with a thickness of 3mm. The base is a modified hexagon with a total width of approximately 60mm. On the top surface of this base, engrave or subtract a logo consisting of several distinct geometric paths to a depth of 1mm (leaving a remaining...
fudge = 0.1; module poly_path3359(h) { scale([25.4/90, -25.4/90, 1]) union() { linear_extrude(height=h) polygon([[-12.358453,70.508375],[-22.495953,64.683375],[-22.495953,42.808375],[-21.323453,42.363375],[-19.508453,41.524625],[-16.789469,39.346715],[-14.717828,36.417281],[-13.334313,32.813082],[-12.679...
glb/cad_098c36cd0827.glb
Create a FabLab Keyring by constructing a flat, stylized gear-like base with a thickness of 3mm. The base is a complex polygon with an irregular, organic perimeter that resembles a rounded, chunky gear or a splat. On the top surface of this base, add several raised geometric elements with a height of 5mm to create a ...
fudge = 0.1; module poly_path3359(h) { scale([25.4/90, -25.4/90, 1]) union() { linear_extrude(height=h) polygon([[-12.358453,70.508375],[-22.495953,64.683375],[-22.495953,42.808375],[-21.323453,42.363375],[-19.508453,41.524625],[-16.789469,39.346715],[-14.717828,36.417281],[-13.334313,32.813082],[-12.679...
glb/cad_fb22ffcbf24d.glb
Create a 3x3x3 LED cube jig starting with a square base plate measuring 50mm by 50mm with a thickness of 2mm. In this base, create a 3x3 grid of circular holes, each with a radius of 3mm and a depth of 10mm. The centers of these holes should be positioned at 5mm, 25mm, and 45mm along both the X and Y axes. At each of t...
module foot() { difference() { cube([10,10,12]); translate([1,1,0]) { cube([8,8,12]); } } } module led() { for ( x = [5, 25, 45] ) { for ( y = [5, 25, 45] ) { translate([x , y, 0]) { cylinder(r=3, h=10); } } } } union() { for (a = [0, 0, 40, 40]) { for ( b = [0, 0, 40, 40] ) { transla...
glb/cad_b26ec973e894.glb
Create a flash tilt insert by starting with a cylinder 7mm high with an outer diameter of 14.3mm. Remove a concentric inner cylinder with a diameter of 12.8mm and a height of 2mm from the bottom to create a thin-walled ring. Cut a square notch out of the top of this ring using a cube 30mm wide, 30mm deep, and 10mm high...
tube_dia=12.8; cub=30; angle=8; hole_dia=2.3; hole_dist=15; rotate(a=180-angle,v=[0,1,0]) { difference(){ difference(){ difference(){ cylinder(7,tube_dia+1.5,tube_dia+1.5); cylinder(2,tube_dia,tube_dia); } translate([-cub/2,-cub/2,7]) {rotate(a=angle,v=[0,1,0]) {cube(cub,cub,10); }} } union(){ ...
glb/cad_906fa374bc8e.glb
Create a snowman sculpture by stacking three geometric components. Start with a large base sphere with a radius of 40mm centered at the origin. Position a second, smaller sphere with a radius of 20mm directly on top of the base, with its center located 52mm above the base center. On the face of the upper sphere, add tw...
radius = 40; with_left_eye = "Yes"; with_right_eye = "Yes"; eye_size = 10; with_nose = "Yes"; nose_length = 25; rotate([0,0,-180]) translate([0,0,radius]) color([1,1,1,1]) sphere(r=radius); rotate([0,0,-90]) translate([0,0,radius+radius*1.3]) color([1,1,1,1]) sphere(r=radius/2); if (with_left_eye ...
glb/cad_74b065d15b8a.glb
Create a MISE/M3SE Enclosure consisting of a top cover, a bottom cover, and a CF reader retainer. For the top cover, create a rectangular box with an outer width of 141.1mm and depth of 122.3mm. The walls should be 2.54mm thick with a total exterior height of 30.48mm. The interior should be hollowed out to accommodate...
variant = "M3SE"; make = "top_cover"; $fs = 0.25; $fa = 1; o = 0.01; fc = 0.1; fr = 1; px = 133.858; py = 109.601; pcb_thickness = 1.6; pz = fc + pcb_thickness + fc; mi = 6.35; mhd = 4.75; vga_w = 35.814; vga_h = 17.018; vga_xc = -14.99; vga_zb = -2.032; pwr_r = 5.08; pwr_xc = -45.847; pwr_zc = 6.604; nic_w = 16.51...
glb/cad_5092dfb3b335.glb
Create a Toilet Roll Drawer consisting of a flat base and two semi-circular side walls. First, construct the base as a rectangular plate with a width equal to the circumference of a 42mm diameter circle (approximately 131.9mm) and a length of 95mm. The plate should be 0.2mm thick. Add a 0.2mm thick outer rim around t...
part = "all"; inner_dia = 42; length = 95; layer_th = 0.2; side_th = 6; use <utils/build_plate.scad>; build_plate_selector = 1; build_plate_manual_x = 100; build_plate_manual_y = 100; build_plate(build_plate_selector,build_plate_manual_x,build_plate_manual_y); if (part == "base"){ drawer(); } if (part == "s...
glb/cad_5d5a64d90c19.glb
Create a parametric pillow block for a bearing. Start by constructing a base plate with a total thickness of 42mm. The main body is a composite shape: a central circular housing with a radius of 24mm, flanked by two rectangular mounting wings. The total width of the block is 72mm, and the height of the side wings is 7m...
$fn = 100; bearing_outer_diameter = 10; bearing_thickness = 40; mounting_hole_diameter=5; bearing_OD_pillowblock_thickness = 7; lip_size = 0; lip_thickness = 2; lift = 7; mounting_pad=3; thickness=lip_thickness+bearing_thickness; r=bearing_outer_diameter + bearing_OD_pillowblock_thickness; difference() { differe...
glb/cad_5c67feb80549.glb
Create a parametric compartment box with a sliding lid. The main body is a solid block with dimensions based on a grid of compartments. For a configuration of 3 compartments in the X direction and 1 in the Y direction, create a base block 82.5mm wide, 52.5mm deep, and 47.5mm high. Subtract three rectangular voids from ...
compx = 50; compy = 50; wall = 2.5; nox = 3; noy = 1; deep = 45; tolerance=.15; showbox=false; showlid=true; lidtype=1; includethumbhole=false; includecoinslot=true; coinx=2.5; coiny=26; ztolerance=0; lidoffset=3; lidheight=16; totalheight = deep + (lidtype*wall); thumbrad = min(20,noy*(compy+wall)/3); if (showbox...
glb/cad_598954cb78bd.glb
Create a BBQ Skewer connector consisting of a central hub with radiating arms. The core unit is a "peg" shaped as a cube with dimensions 15mm x 6mm x 6mm, with a cylindrical hole running through its center along the longest axis. This hole must have a radius of 1.75mm to allow a skewer to pass through completely. Cons...
x_number=4; y_number=2; $fn=100; rod_radius=1.5; tolerance=0.25; connector_length=15; connector_thickness=6; module peg() { { cube([connector_length, connector_thickness, connector_thickness], center=true); } } module connector() { difference() { union() { for (i=[0:3]) { rotate([0,0,i*90]) transl...
glb/cad_4ffd8ffcf98e.glb
Create a Cubieboard NVR case consisting of a base, a hard drive mount, and a lid. For the base, create a rectangular platform 60mm wide and 100mm deep with a wall thickness of 2.06mm. Incorporate a series of ventilation grilles on the bottom and sides using a gap of 4mm and a spacing of 3mm. Add four mounting holes fo...
include <lib/util.scad> part = "base"; cubie_w = 60; cubie_d = 100; cubie_h = 1.2; cubie_hole_ofs1 = 3.3; cubie_hole_ofs2 = 23; cubie_hole_r = 3 / 2; cubie_usb_w = 14.6; cubie_usb_d = 17.4; cubie_usb_h = 17.3 - cubie_h; cubie_usb_ofs = 28.65; cubie_usb_ext = 1; cubie_eth_w = 16; cubie_eth_d = 21.9; cubie_eth_h = 1...
glb/cad_e779072c5dbe.glb
Create a Rock Chucker Deprimer Tray Replacement designed to capture spent primers and direct them into a hose. Start by constructing a main body consisting of a rectangular base and a vertical ramp. The ramp section should be a block approximately 26.5mm wide, 46mm deep, and 62mm high. From this block, remove a centr...
{ rotate([0,-90,0]) difference() { union() { translate([34.5,-32,-10.5]) rotate([90,50,-23]) cylinder(r1=8.8, r2=6.5, h=25,$fn=40); } translate([37.5,-25,-10.4]) rotate([90,50,-23]) cylinder(r1=5.5, r2=5, h=45,$fn=40); } difference() { union() { translate([-5,-36,19]) cube([26.5,71,8]); ...
glb/cad_c706021ca6a2.glb
Create a Rock Chucker Deprimer Tray Replacement designed to capture spent primers and direct them into a hose. Start with a base structure consisting of a rectangular block 26.5mm wide, 71mm long, and 12mm thick. Attach a rectangular hook to the side measuring 26.5mm by 10.5mm by 19mm, and a smaller block 19mm by 7.5...
rotate([0,-90,0]) translate([5,0,0]) { difference() { union() { translate([10.5,29.5,26.5]) rotate([-125,0,0]) cylinder(r1=8.8, r2=6.5, h=25,$fn=40); translate([10.5,44.50,16]) rotate([-125,0,0]) cylinder(r1=7.8, r2=6.5, h=10,$fn=40); } translate([10.5,22,31.7]) rotate([-125,0,0]) cylinder(r1=5.5, r...
glb/cad_30250b19d9ed.glb
Create a Rock Chucker Deprimer Tray Replacement designed to capture spent primers and direct them into a hose. Start with a base structure that includes a rectangular block measuring 26.5mm by 71mm by 12mm. Attach a hook-like extension measuring 26.5mm by 10.5mm by 19mm to the side. Incorporate a ram ring consisting ...
rotate([0,-90,0]) translate([5,0,0]) { difference() { union() { translate([10.5,29.5,26.5]) rotate([-125,0,0]) cylinder(r1=8.8, r2=6.5, h=25,$fn=40); translate([10.5,44.50,16]) rotate([-125,0,0]) cylinder(r1=7.8, r2=6.5, h=10,$fn=40); } translate([10.5,22,31.7]) rotate([-125,0,0]) cylinder(r1=5.5, r...
glb/cad_5cf6d35d13ad.glb
Create a Rock Chucker Deprimer Tray Replacement designed to capture spent primers and funnel them into a hose. Start by constructing a main body that includes a rectangular base and a vertical ramp section. On one side, integrate a tapered nozzle for a 13mm ID vinyl hose; this nozzle should be a hollow cylinder that ...
{ rotate([0,-90,0]) difference() { union() { translate([34.5,-32,-10.5]) rotate([90,50,-23]) cylinder(r1=8.8, r2=6.5, h=25,$fn=40); } translate([37.5,-25,-10.4]) rotate([90,50,-23]) cylinder(r1=5.5, r2=5, h=45,$fn=40); } difference() { union() { translate([-5,-36,19]) cube([26.5,71,8]); ...
glb/cad_8d4e19da7976.glb
Create a turning knob by constructing a tapered cylinder with a height of 20mm, a bottom radius of 10mm, and a top radius of 8mm. Bore a concentric hole through the center of this cylinder with a radius of 3.25mm at the bottom and 3.2mm at the top, extending to a height of 15mm. Finally, embed a small cube with dimensi...
union() { translate( v=[9,0,7.5]) { rotate( a=-7, v=[0,1,0]) { rotate( a=45, v=[0,0,1]) { cube( size=[1,1,15], center=true ); } } } difference() { cylinder( r1=10, r2=8, h=20); cylinder( r1=3.25, r2=3.2, h=15); } }
glb/cad_0f6ac1d0b22a.glb
Create a Universal Tool Mount and Holder for MPCNC. The model consists of two primary components: an EMT mounting bracket and a tool holder. First, construct the EMT mounting bracket. Create two symmetrical outer walls, each 100mm high. These walls should be shaped to accommodate two vertical EMT pipes with an outer d...
Draw_EMT_Tool_Mnt = "EMT"; EMT_OD = 23.5; Ht = 100; Base_Ht = 4; EMT_X_Offset = 30.65; EMT_Hole_OD = 4.0; EMT_Mnt_Hole_OD = 7.6; EMT_Mnt_Qty = 2; EMT_Mnt_Z_Offset1 = 10; EMT_Mnt_Z_Offset2 = 86.2; EMT_Mnt_Z_Offset3 = 0; EMT_Mnt_Hole_Thk = 6; EMT_Mnt_HoleRot = 45; EMT_Mnt_X_Offset = 30.65; Tool_Mnt_Hole_OD = 3.0; Tool...
glb/cad_b959f1b7d22c.glb
Create a Universal Tool Mount and Holder for MPCNC consisting of two primary components: an EMT mounting bracket and a tool holder. First, construct the EMT mounting bracket. Create two symmetrical outer walls with a height of 14mm. In the center of these walls, create two cylindrical cutouts with a diameter of 23.5mm...
Draw_EMT_Tool_Mnt = "EMT"; EMT_OD = 23.5; Ht = 14; Base_Ht = 2; EMT_X_Offset = 30.65; EMT_Hole_OD = 4.0; EMT_Mnt_Hole_OD = 7.6; EMT_Mnt_Qty = 2; EMT_Mnt_Z_Offset1 = 6; EMT_Mnt_Z_Offset2 = 86.2; EMT_Mnt_Z_Offset3 = 0; EMT_Mnt_Hole_Thk = 6; EMT_Mnt_HoleRot = 45; EMT_Mnt_X_Offset = 30.65; Tool_Mnt_Hole_OD = 3.0; Tool_M...
glb/cad_b868f5523b1d.glb
Create a pulley for a NEMA17 motor shaft with a central bore of 5.4mm. The main body consists of a toothed cylinder with 28 teeth designed for an MXL belt profile, having a toothed section height of 6mm and a base height of 6mm. The overall base diameter is 20mm. Add a belt retainer flange on the top edge of the tooth...
teeth = 28; profile = 1; motor_shaft = 5.4; shaft_count= 10; m3_dia = 3.2; m3_nut_hex = 1; m3_nut_flats = 5.7; m3_nut_depth = 2.7; retainer = 1; retainer_ht = 1.5; idler = 0; idler_ht = 1.5; pulley_t_ht = 6; pulley_b_ht = 6; pulley_b_dia = 20; no_of_nuts = 3; nut_angle = 360/no_of_nuts; nut_shaft_distance = 0.5; ad...
glb/cad_98c494ee4237.glb
Create a pulley for a NEMA17 motor shaft with a central hole 5.4mm in diameter. The pulley consists of a base cylinder with a diameter of 20mm and a height of 6mm. On top of this base, add a toothed section with a height of 6mm and an outside diameter of 11.88mm, featuring 28 MXL profile teeth. Above the teeth, include...
teeth = 28; profile = 1; motor_shaft = 5.4; shaft_count= 10; m3_dia = 3.2; m3_nut_hex = 1; m3_nut_flats = 5.7; m3_nut_depth = 2.7; retainer = 1; retainer_ht = 1.5; idler = 0; idler_ht = 1.5; pulley_t_ht = 6; pulley_b_ht = 6; pulley_b_dia = 20; no_of_nuts = 3; nut_angle = 360/no_of_nuts; nut_shaft_distance = 0.5; ad...
glb/cad_0a215ddf203d.glb
Create a Single Z motor mount for a Prusa i3. Start with a base rectangular block measuring 110mm in length, 57mm in width, and 6mm in height. On top of this base, add two rectangular walls: one measuring 110mm by 6mm by 30mm positioned at the origin, and another measuring 5mm by 40mm by 30mm positioned at x=5, y=6, z=...
lx=110; ly=57; lz=6; lh=30; m3d = 3+0.3; m3r = m3d/2; m3nd = 6.2+0.3; m3nr = m3nd/2; m3nh=2.8; m4d=4+0.3; m4r=m4d/2; m4nd = 7.9+0.3; m4nr = m4nd/2; m4nh=3.4; difference() { union() { cube([lx, ly, lz]); translate([0,0,lz])cube([lx, lz, lh]); translate([0,lz,lz]) cube([5, 40, lh]); translate([5+43+10,lz,lz...
glb/cad_4662ee980f98.glb
Create a Single Z motor mount for a Prusa i3. Start with a base plate 8mm thick. On this base, construct a main body consisting of a rectangular block 88mm wide, 78mm deep, and 8mm high. Add a vertical support section 16mm wide and 42mm deep, extending from the base to a total height of 30mm. Within this structure, i...
m3d = 3+0.3; m3r = m3d/2; m3nd = 6.2+0.3; m3nr = m3nd/2; m3nh=2.8; m4d=4+0.3; m4r=m4d/2; m4nd = 7.9+0.3; m4nr = m4nd/2; m4nh=3.4; m5d=5+0.3; m5r=m5d/2; m5nd = 9+0.3; m5nr = m5nd/2; m5nh=4.2; sbd = 8+0.3; sbr = sbd/2; bd=13.4; br=bd/2; bh=4; h=8; difference() { union() { translate([0,-25-8-8,0]) cube([88, 78...
glb/cad_4834423516a9.glb
Create a single Z motor mount for a Prusa i3. Construct the object by combining three coaxial cylinders. First, create a base cylinder with a radius of 8.5mm and a height of 1mm. On top of this, add a central cylinder with a radius of 7.5mm and a height of 5mm. Cap the structure with a third cylinder of 8.5mm radius an...
bd=13; bdd=13.4; bh=5; rh=1; $fn=64; difference() { union() { cylinder(rh, (bd+2+2)/2, (bd+2)/2); translate([0,0,rh]) cylinder(bh, (bd+2)/2, (bd+2)/2); translate([0,0,rh+bh]) cylinder(rh, (bd+2)/2, (bd+2+2)/2); } translate([0,0,rh]) cylinder(bh+rh*2, bdd/2, bdd/2, $fn=32); translate([0,0,-1]) cylinder(bh*2, (b...
glb/cad_8dbf2b0ab393.glb
Create a washing machine door strike with a main body that is 65.8mm long, 14.6mm wide, and 4.27mm thick. The main body is a rectangular slab with semi-circular ends of a 7.3mm radius. At each end of the slab, center a vertical hole. Each hole begins with a cylindrical bore of 2.6mm radius extending 2.43mm deep, whic...
$fa = 5; $fs = 0.35; del=0.05; supw=0.8; h=4.27; w=14.6; w2 = 9; l=65.8-w; screwr1=5.2; screwr2=9.5; sunkspread = 46.23 + screwr1; module sunkhole() { translate([0,0,-del]) cylinder(h=h+del*2, r=screwr1/2); translate([0,0,2.43]) cylinder(h=h-2.43+del,r1=screwr1/2,r2=screwr2/2); } y1=7.07-h; xw1=12.1/2; xw2 = ...
glb/cad_8b6375b2b0e1.glb
Create a UK Plug Do Not Turn Off Cover consisting of two main components: a protective switch cover and a base plate. First, create the switch cover as a rectangular block measuring 16mm wide, 30mm long, and 6mm high. Hollow out the center of this block by removing a smaller rectangular section measuring 16mm by 22mm...
$fn = 50; eta = 0.1; ew = 0.4; 4ew = 4*ew; layer = 0.3; leftOrRight = 1; if (leftOrRight == 1) switchCover(); if (leftOrRight == 2) mirror([1, 0, 0]) switchCover(); backplate(); module switchCover() { translate([20, 20, 0]) difference() { cube([16, 30, 6]); translate([4ew, 4ew, -eta]) cube([16, 30-4e...
glb/cad_99b7ffe93d3c.glb
Create a replacement climate control knob adapter. Start with a truncated cone that has a height of 32mm, a bottom radius of 19mm, and a top radius of 16.5mm. From this main body, remove four identical cylindrical channels to create slots for the attachment point. Each channel must have a radius of 3.6mm and a length o...
difference() { translate([0,0,17.5]) difference() { cylinder(h=32, r1=19, r2=16.5, center=true, $fn=200); translate([0,20,0]) rotate(5,[1,0,0]) cylinder(h=35, r=3.6, center=true, $fn=200); translate([20,0,0]) rotate(-5,[0,1,0]) cylinder(h=35, r=3.6, center=true, $fn=200); translate([0,-20,0]) rotate(-5,[1...
glb/cad_1bc22d40bcc0.glb
Create a character model named Boxy McBoxface. Start with a central body consisting of a cube with a side length of 30mm, using a Minkowski sum with a sphere of 1.67mm diameter to create heavily rounded edges and corners. On the front face, add goggles by placing two cylinders with a diameter of 15mm and a height of 1...
module body( l = 10, ){ edge_r = l/6; minkowski(){ cube(size=[l-edge_r,l-edge_r,l-edge_r], center=true); sphere(d=edge_r, $fn=100); } } module goggles( d = 10, body_l = 30 )difference(){ gog_y = d/2 - 0.1; gog_h = 10; union(){ translate([body_l/2-(gog_h*0.8...
glb/cad_2a1827214c3b.glb
Create two types of geodesic sphere connectors, each split into two symmetrical halves along a central plane for easy printing. Both connectors feature hollow cylindrical sockets designed to fit 1/2 inch PVC pipe, with an inner diameter of 15.2mm and an outer diameter of 22mm. The first connector is a 5-spoke hub. Arr...
$fn=50; module tube(length,offset,id,od) { translate([0,0,offset]) difference() { cylinder(length,r=od); translate([0,0,-1]) { cylinder(length+2,r=id); } } } module box(x1,y1,z1,x2,y2,z2) { translate([x1,y1,z1]) cube([x2-x1,y2-y1,z2-z1]); } module c...
glb/cad_0d93d15519f2.glb
Create a planetary gear bearing with a flange. The main body is a cylinder with a diameter of 51.7mm and a total height of 20mm. At the base of this cylinder, add a wider flange with a diameter of 56.7mm and a thickness of 5mm. The assembly features a complex internal gear system. Create a central sun gear and a surro...
D=51.7; T=20; FD=56.7; FT=5; tol=0.15; number_of_planets=5; number_of_teeth_on_planets=7; approximate_number_of_teeth_on_sun=9; P=45; nTwist=1; w=6.7; DR=0.5*1; m=round(number_of_planets); np=round(number_of_teeth_on_planets); ns1=approximate_number_of_teeth_on_sun; k1=round(2/m*(ns1+np)); k= k1*m%2!=0 ? k1+1 ...
glb/cad_f1b2e3f8ffb3.glb
Create an Egg Wedge by starting with a triangular prism that has a height of 70mm, a width of 75mm, and a length of 90mm. Scale this prism by a factor of 0.75 along its width axis. Center a vertical cylindrical hole with a diameter of 25mm through the entire length of the prism. Ensure the prism's cross-section is a tr...
BIG=200; $fn=40; egg_d=25; wedge_l=90; wedge_w=75; wedge_h=70; sf=.75; difference(){ scale([1,sf,1]){ translate([0,0,wedge_l*sin(30)/2]) rotate([0,-90,0]) cylinder(r=wedge_l/2, h=wedge_h, center=true, $fn=3); } cylinder(r=egg_d/2, h=BIG, center=true); }
glb/cad_2bb10cd02520.glb
Create a Kark Track guidance track by starting with a central rectangular base plate measuring 95mm in length, 37mm in width, and 2mm in height. From this main board, remove a smaller rectangular volume from the center that is 93mm long, 38mm wide, and 2mm high, positioned such that it leaves the outer edges intact. Fi...
sf=25.4; main_board_l=95; main_board_w=37; main_board_h=2; hole_board_l=93; hole_board_w=38; hole_board_h=2; guidence_board_l=95; guidence_board_w=1.2216*sf-1; guidence_board_h=2; difference(){ translate([0,0,main_board_h/4]) cube([main_board_l,main_board_w,main_board_h],center=true); translate([0,0,hole_board_h/...
glb/cad_7003dd66a052.glb
Create a hollow round figurine model stand consisting of a main base and a separate lid. For the base, construct a cylinder with an outer diameter of 165mm and a total height of 30mm. Hollow out the center by removing a concentric cylinder from the top, leaving a wall thickness of 8mm and a flat bottom floor. The inter...
$fn=100; cdia=165; cht=30; cwall=8; lht=3; halfht=15; postrad=5; module main_base() { difference() { translate([0,0,cht/2]) color("blue") cylinder(h=cht, r=cdia/2, center=true); translate([0,0,cht/2+halfht]) color("red") cylinder(h=cht, r=cdia/2-cwall, center=true); translate([0,0,cht/2+ha...
glb/cad_f54817ec555e.glb
Create a Customisable Can Base consisting of two stacked concentric cylindrical sections. First, create a lower base with an outer diameter of 55.25mm and a total height of 4.75mm. Remove a central cylindrical core from this lower base starting 1mm from the bottom, with a diameter of 54.25mm and a height that extends t...
extra_size = 1.5; thickness = 1; rim_h = 3.10; can_dia = 52.75; groove_dia = 51.0; groove_h = 1.25; $fn = 64; pad = 0.001; module lowerbase() { o_dia = can_dia + thickness*2 + extra_size; o_h = rim_h + thickness + extra_size/2; i_dia = can_dia + extra_size; i_h = rim_h+thickness*2+pad+ extra_siz...
glb/cad_dcfe6b91e85c.glb
Create a Parametric Motor Shaft Bench Vise Holder by combining two rectangular blocks and removing specific cylindrical voids. First, construct a base plate measuring 35mm wide, 50mm long, and 3mm thick. Attached to the side of this plate, add a vertical block that is 10mm wide, 50mm long, and 15mm high, such that the ...
length = 50; height = 15; overhang = 35; overhang_height = 3; magnet_diam = 6; magnet_height = 10; difference() { union() { cube([overhang, length, overhang_height]); translate([0,0,overhang_height]) cube([magnet_height+2, length, height]); } translate([-0.5, -1, 1.5]) rotate([-90, 0,0]) cylinder(h...
glb/cad_33c17038fbb3.glb
Create a Car AC Knob replacement consisting of a cylindrical base and a central gripping shaft. Start by creating a wide cylindrical base with a radius of 19.5mm and a height of 4.5mm. Above this base, add a concentric hollow cylinder with an outer radius of 17.5mm, an inner radius of 15.5mm, and a height of 6mm. In th...
module partA(){ difference(){ union(){ translate([0,0,-4])cylinder(r=19.5, h=4.5, $fn=60); difference(){ cylinder(r=17.5, h=6, $fn=60); cylinder(r=15.5, h=6, $fn=60); } difference(){ cylinder(r=6.25, h=16, $fn=30); difference(){ cylinder(r=3.275, h=16, $fn=30); translate([-4,2,0])cube([8, 10, 20]); ...
glb/cad_6a6735955771.glb
Create a probe cup for a Sonosite ultrasound. Start by constructing a tapered hollow cylinder with a total height of 55mm. The outer diameter should transition from 58mm at the base to 62.3mm at the top. The walls should be 3mm thick, and the top edge should feature a flat rim with an outer diameter of 67.7mm and a thi...
r_in = 62.3/2; r_in_bottom = 58/2; r_out = 67.7/2; height = 55 ; rim_h = 3.3; gap = 15.7; wall = 3; r_c = 5; $fn=200; difference() { union() { rotate_extrude() rotate([90, 0, 0]) union () { polygon(points = [[0,0], [r_in_bottom-r_c,0], [r_in_bottom,r_c], [r_in,height], [0,height]]); translate([r_in_...
glb/cad_e7921ec5da01.glb
Create a quadcopter aerial bracket with a base thickness of 2.5mm. The design is symmetrical along the X and Y axes. First, place two mounting holes for fixings at the far ends of the bracket, separated by 48.5mm. Each hole should have an inner diameter of 3.9mm and an outer diameter of 6.4mm (adding a 2.5mm wall thi...
res = 64; fixings_dia = 3.9; fixings_height = 20; fixings_seperation = 48.5; aerial_dia = 5.2; aerial_height = 30; aerial_angle = 22; aerials_seperation = 20; aerial_y_offset = 4.2; unit_z_thickness = 2.5; unit_wall_thickness = 2.5; difference(){ union(){ hull(){ fixings_outer_placed(); ...
glb/cad_bf94f050b04d.glb
Create a parametric webcam mount consisting of a long rectangular base and two hinge components. Start with a main rectangular body 150mm long, 14mm wide, and 7.5mm high. At the far end of this body, add a vertical block 3.5mm wide and 10mm high, topped with a semi-cylindrical cap with a radius of 3.5mm. Construct two...
mount_length = 150; hinge_width = 10; wall_thickness = 2; mount_screw_diameter=3.5; hinge_seperation = 10; module hinge() { difference() { union() { cube([mount_screw_diameter+wall_thickness*2, hinge_width+wall_thickness*2, mount_screw_diameter/2+wall_thickness]); translate([mount_screw_diameter/2+wall_thickn...
glb/cad_e3005c87a554.glb
Create a webcam mount for a 3D printer frame. Start with a main rectangular block measuring 10mm wide, 50mm long, and 32.3mm high. Carve out two horizontal cylindrical holes with a radius of 4.15mm, each centered along the width. Position the first hole 7.15mm from the bottom and the second 7.15mm from the top, both ...
rod_diameter = 8.3; rod_spacing = 12; wall_seperation = 3; mount_width = 10; mount_length = 50; mount_height = rod_diameter*2+rod_spacing+wall_seperation*2; mount_screw_diameter = 3.5; mount_screw_clearance = 2; arm_mount_width = mount_width; arm_mount_seperation = 10; module frame_mount() { union() { difference(...
glb/cad_34624915dcb7.glb
Create a parametric webcam mount starting with a rectangular base plate measuring 50mm wide, 55mm long, and 4.5mm thick. Along one 50mm edge, add a vertical flange that is 16mm high and 4.5mm thick. At the center of the base plate's width, construct a hinge mechanism. This hinge consists of a central block measuring ...
mount_width = 50; mount_length = 55; mount_thickness = 4.5; flange_height = 16; flange_thickness = 4.5; hinge_wall_thickness = 2; mount_screw_diameter = 3.5; hinge_width = 10; module hinge() { difference() { union() { cube([mount_screw_diameter+hinge_wall_thickness*2, hinge_width+hinge_wall_thickness*2, mount_...
glb/cad_29f133f2d366.glb
Create a parametric pillow block for a 608 skate bearing. The main body is a base plate with a central cylindrical housing. This housing has an outer radius of 16mm and a total height of 11mm. Inside the housing, create a central bore with a diameter of 22mm and a depth of 7mm to accommodate the bearing. At the bottom ...
$fn = 100; bearing_outer_diameter = 22; bearing_thickness = 7; mounting_hole_diameter=5; bearing_OD_pillowblock_thickness = 5; lip_size = 2; lip_thickness = 2; lift = 4; mounting_pad=2; print_endplate = true; end_plate_bolt_diameter = 3; end_plate_thickness = 2; end_plate_clearance = 0.5; thickness=lip_thickness+...
glb/cad_063509a0aa6d.glb
Create a Smoothieboard electronics box with external dimensions of 138.5mm in width, 114.5mm in depth, and 32mm in height. The main body is a hollowed-out rectangular shell with rounded corners (5mm radius) and a wall thickness of 2.5mm. The interior cavity should measure 134mm by 109.5mm. The floor of the box feature...
$fn=30; sx=129.5; sy=105; sh=23; buf=4.5; th=2.5; bot=2.5; w=sx+buf; t=sy+buf; h=sh+buf+bot; off=th+buf/2; l1=28+off; l2=127+off; l1y=3.5+off; l3y=98.5+off; l3=121+off; l2y=103+off; box(); module lid(){ difference(){ union(){ roundBox(w+th+th,t+th+th,th-0.5,5); translate([th+0.1,th+0.1,th-0.5]) r...
glb/cad_94a84e6d73ff.glb
Create a servo mount for an OpenRC Truggy by starting with a solid rectangular block measuring 20mm in length, 6mm in width, and 15mm in height. From this block, remove a vertical cylindrical hole with a radius of 1.5mm that passes through the top face, centered 5mm from the side and 3mm from the front. Additionally, r...
$fn=32; difference () { cube ([20, 6, 15]); translate ([5, 3, 0])cylinder (r=1.5, h=15); translate ([10, 3, 3])rotate ([0,90,0])cylinder (r=1.5, h=12); }; translate ([15, 3, 15])cylinder (r=1.5, h=2);
glb/cad_eed0b62d64e9.glb
Create a stepper motor mounting plate by starting with a rectangular base that is 40mm wide, 22mm long, and 1.5mm thick. The four corners of this base must be rounded with a radius of 5mm. Centered on the plate, create a circular hole with a diameter of 10mm that passes completely through the thickness of the material....
motorplate(40,22,1.5); module motorplate(platew,platel,height) { holespace = 35/2; difference() { roundsquare(platel,platew,height,5); translate([0,0,-2]) cylinder(d=10,h=height+4,$fn=20); translate([8,holespace,-2]) cylinder(d=4.2,h=height+4,$fn=20); t...
glb/cad_53a6251837e8.glb
Create a handle for a hex wrench by constructing a composite cylindrical body with a total height of 62.5mm and a main diameter of 25mm. The base starts with a short cylinder 5mm tall with a radius of 9.5mm, transitioning into a main cylinder 50mm tall with a 12.5mm radius, and capped with a hemisphere of the same radi...
hex_size = 2.8; hole_delta = 0.15; handle_diameter = 25; handle(hex_size); module handle(hex_size) { hex_radius = (hex_size + hole_delta) / 2; hex_size = hex_size + hole_delta; handle_radius = handle_diameter / 2; knurl_offset = handle_radius * 1.2; handle_height = 50; slot_width = 1.2 * handle_radius; zip_t...
glb/cad_92a1cf941f49.glb
Create a digital level holder for a digital caliper. The main body is a rectangular block 67.4mm long, 9.18mm wide, and 16mm high. Centered within this block, remove a rectangular slot 60.4mm long, 5.58mm wide, and 14mm deep to allow the scale to drop in. In the center of this slot, create a wider cutout 26mm wide and ...
use <MCAD/shapes.scad> $fn=60; lf=.15; ew=2.87+lf; eh=3.75+lf; ehl=13; tezb=96.8; etl=tezb; bs=41.41; bhd=6+lf; hh=16; sot=5.58+lf*2; sit=sot-1.2*2; sl=60.40+lf; scw=26; ct=2; translate([40,-8,0])rotate([0,0,90])extender(); holder(); module holder(){ for(i=[-1,1]){ translate([i*bs/2,0,0]){ difference(){ ...
glb/cad_88308492c802.glb
Create a meat grinder replacement washer by constructing a thick, hollow cylinder. Start with a solid cylinder that has an outer diameter of 35.75mm and a height of 5.75mm. From the center of this volume, remove a concentric cylindrical core with a diameter of 22.5mm and the same height of 5.75mm to create a ring shape...
$fn=200; thickness = 5.75; outer_diameter = 35.75; inner_diameter = 22.5; difference() { cylinder(thickness, outer_diameter/2, outer_diameter/2); cylinder(thickness, inner_diameter/2, inner_diameter/2); }
glb/cad_60871246983b.glb
Create a parametric soldering iron stand with a rectangular base measuring 25mm wide by 50mm long and 3mm thick. On opposite ends of the base, add two vertical walls. The first is a main wall 25mm high and 3mm thick, positioned along one 25mm edge of the base. The second is a shorter wall, 10mm high and 3mm thick, posi...
lengthOverall = 50; widthOverall = 25; partThickness = 3; partAngle = 60; mainWallHeight = 25; secondWallScale = 0.4; ironMajorDiameter = 20; ironMinorDiameter = 15; module SolderStand(thickness,Width, Length,Height, smallWallScale, Angle,Diameter, minorDiameter){ Angle = 180-Angle; echo(Angle); if ((Ang...
glb/cad_2ec93ecbb9d6.glb
Create a Raspi/Arduino Drive Sled by starting with a solid rectangular box measuring 148.6mm wide, 41.4mm deep, and 225mm high. Hollow out the interior by removing a smaller rectangular block measuring 140.6mm by 40.4mm by 217mm, positioned 4mm from the front, top, and side walls to create a thin-walled shell. On the ...
t_offset=4; rotate ([90,180,90]) difference () { difference(){ cube ([148.60, 41.4, 225]); translate ([4,0,4]) cube ([140.60, 40.4, 217]); } translate ([0,31.4,55]) rotate ([0,90,0]) cylinder(h = 150, r=2.64); translate ([0,31.4,135]) rotate ([0,90,0]) cylinder(h = 150, r=2.64); ...
glb/cad_8e808c23085a.glb
Create a Parametric Cylindrical Battery Dispenser consisting of two mirrored halves. Each half is a vertical channel designed to hold cylindrical batteries. For each half, create a base shape with a total width of 22mm and a height (depth) of 12mm. The main body consists of an upper section 100mm long and a lower sect...
calibrate = false; mount_tab_opt = true; mount_tab_height = 8 ; mount_tab_thickness = 5; back_plate= false; back_plate_holes_pan = true; back_plate_thickness = 6; mount_holes = false; mount_hole_diameter = 3; holes_pan_diameter = 5.6; holes_pan_depth = 3; channel_extender_opt = false; $fn=100; angle = 145; channel_...
glb/cad_e679fd3cf2ff.glb
Create an LED tealight holder designed to fit a 3/8" dowel rod. Start by creating a main outer cylinder with a height of 76mm and a radius of 18mm. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a radius of 12mm and a height of 78mm, starting from 2mm below the base. At the top o...
difference() {cylinder(h=76, r=18, r=18, $fn=100); translate([0,0,-2]) cylinder(h=76, r=12, r=12, $fn=100); translate([0,0,-2]) cylinder(h=50, r=41, r=41, $fn=100);} difference() {translate([0,0,74]) cylinder(h=30, r=41, r=41, $fn=100); translate([0,0,78]) cylinder(h=40, r=38, r=38, $fn=100); transl...
glb/cad_37c0d094536e.glb
Create a Cuvette Holder consisting of a base and a top support. For the base, construct a block 30mm high, 14mm wide, and 14mm deep. Within this block, create a central vertical void 12mm wide and 47mm high to accommodate a cuvette. Surround this void with a cylindrical light-blocking pipe with an outer diameter of 9mm...
cuv_width = 12; cuv_height = 47; base_w = 3; base_y = 14; base_x = 14; base_height = 30; base_pts = [[0,0],[-base_w,0],[-base_w,base_y+base_w],[base_x+base_w,base_y+base_w],[base_x+base_w,0],[base_x,0],[base_x,base_y],[0,base_y],[0,0]]; base_p = 4; top_z = cuv_height+3; top_w = 2; top_y = 14; top_x = 14; tol = 0.1; ...
glb/cad_5b202f16fa57.glb
Create a truncated icosahedron, commonly known as a soccer ball shape, with a total diameter of 50mm. The structure is composed of 12 regular pentagons and 20 regular hexagons. Each edge of every polygon should have a length of approximately 7.52mm (calculated as 50 divided by 6.65). To ensure the pieces do not touch...
height = 50; spacing = 0.5; module pentagon(length, spacing = 0.5) { r = 0.5 * length / sin(36); s = (r - spacing / 2) / r; color("black") rotate(18) linear_extrude(length, scale = 1.42215) scale([s, s, s]) circle(0.5 * length / sin(36), $fn = 5); } module hexagon(length, sp...
glb/cad_1adc258a78b2.glb
Create a network device drawer consisting of a hollow rectangular box and a front faceplate. Start by constructing the main box with outer dimensions of 124mm width, 200mm depth, and 48mm height. Create the walls of this box by removing a smaller centered rectangular volume of 122mm width, 198mm depth, and 48mm height,...
ForDisplay(); module ForDisplay(){ FrontPlate(); translate([0,0,5.5]) Box(); } module ForPrint(){ translate([0,-70,0]) FrontPlate(); translate([82,33,-13]) Rail(); mirror([180,0,0]) translate([82,33,-13]) Rail(); translate([0,40,0]) translate([0,103,-10]) BackRail(); } module FrontPlate(){ translate([5.5,...
glb/cad_00148173f1c8.glb
Create a front mounting plate for a linear carriage. Start with a rectangular base plate measuring 33mm in width, 33mm in height, and 3mm in thickness. On the face of this plate, create four M5 screw holes to accommodate V-wheels. These holes should be positioned symmetrically: two holes spaced 23mm apart along the w...
include <Parameters.scad> module wheelScrewHoles() { union() { translate([(mountingPlateWidth - finalWheelDistanceWidthDirection) / 2, (mountingPlateHeight - wheelDistanceHeightDirection) / 2, -mountingPlateTickness/2 ]) M5ScrewHole(); translate([(mountingPlateWidth + finalWheelDistanceWidthDirection) / 2, (...
glb/cad_856d79e6caed.glb
Create a Bearing Housing Mounting Bracket for a linear carriage. Start by constructing a mounting base that consists of a rectangular plate combined with a mounting tab. The base plate should have a width equal to the sum of the bearing housing total diameter, half the difference between the Nema 17 case size and the b...
include <Parameters.scad> bearingHousingTotalDiameter = bearing608ZZDiameter + bearingHousingTickness + printingTolerance; bearingHousingHeight = bearing608ZZTickness * 2 + bearingWasherTickness + bearingHousingExtraHeight; module BearingHousingWithToolHole() { difference() { BearingHousing(pHeight = bearingHo...
glb/cad_d194092442a7.glb
Create an AT72ED Scope focuser support consisting of a base and an attached arm. Start by creating a rectangular base 70mm long, 20mm wide, and 4mm high. On the top surface of this base, add two small cylindrical bumps, each 4mm in diameter and 2mm high, positioned 32mm apart from each other, centered along the width. ...
base_l = 70; base_w = 20; base_h = 4; bump_delta = 32; bump_d = 4; bump_h = 2; module _base() { cube([base_l, base_w, base_h]); } module bump() { cylinder(d1 = bump_d, h= bump_h); } module bumps() { translate([-bump_delta/2, 0, 0]) { bump(); } translate([bump_delta/2, 0, 0]) { bum...
glb/cad_56d095cfe73f.glb
Create a sumobot revolution case by starting with a square base plate measuring 17mm by 17mm with a thickness of 0.5mm. At the corners of this base, remove material by creating octagonal cutouts using cylinders with a radius of 10mm and a facet count of 8, rotated 22.5 degrees, to round the edges. Integrate a serie...
module bearing($fn = 200) { module cage(split_rad, cage_thick, thickn, ballx, radb, clear, $fn = 200) { difference() { hoop((split_rad + cage_thick), (split_rad - cage_thick), thickn); ball_array(ballx, split_rad, 0, (thickn / 2), (radb + clear)); } } module hoop(rad_outside, rad_inside, thickness, $fn = 2...
glb/cad_234743b9d2d2.glb
Create a sumobot revolution case consisting of four identical ball bearings arranged in a linear row. To construct a single bearing, create a thick outer ring with an outer diameter of 3mm and an inner diameter of 1mm, with a total height of 0.7mm. Within the space between the inner and outer diameters, place 5 small...
module bearing($fn = 20) { module cage(split_rad, cage_thick, thickn, ballx, radb, clear) { difference() { hoop((split_rad + cage_thick), (split_rad - cage_thick), thickn); ball_array(ballx, split_rad, 0, (thickn / 2), (radb + clear)); } } module hoop(rad_outside, rad_inside, thickness, $fn = 200) { diff...
glb/cad_1b39ec1d1f74.glb
Create a sumobot revolution case consisting of a base and a top plate, each 17mm x 17mm x 0.5mm. For the base, start with a 17mm x 17mm x 0.5mm rectangular slab. Remove material using an octagonal cutout centered at (5, 8.5) with a radius of 10mm and a height of 17mm. Additionally, remove a thin rectangular section m...
module base (){ translate ([0,0,0]){ difference(){ difference(){ difference(){ cube ([17,17,.5]); corte (); } panel(); } screw(); } } } module top(){ translate ([0,0,7]){ difference(){ difference(){ difference(){ cube ([17,17,.5]); corte (); } panel(); } screw(); } } } module derecho (){ translate ([0,0,0], ("transl...
glb/cad_7423bcd2eefc.glb
Create a sumobot revolution case. Start with a base plate measuring 17mm by 17mm with a thickness of 0.5mm. On this base, construct two symmetrical side walls. Each wall is a rectangular block 14mm wide, 4mm high, and 7mm thick, positioned to leave a central gap. Integrate a sensor housing on the rear section consist...
module bearing($fn = 200) { module cage(split_rad, cage_thick, thickn, ballx, radb, clear, $fn = 200) { difference() { hoop((split_rad + cage_thick), (split_rad - cage_thick), thickn); ball_array(ballx, split_rad, 0, (thickn / 2), (radb + clear)); } } module hoop(rad_outside, rad_inside, thickness, $fn = 2...
glb/cad_863f19d833ca.glb
Create a sumobot revolution case. Start by constructing a thin rectangular base plate measuring 17mm by 17mm with a thickness of 0.5mm. On this base, integrate a series of small cylindrical screw holes with a radius of 0.15mm and a height of 2mm. Position these holes at specific coordinates: (0.5, 3.2), (13, 0.5), (5...
module bearing($fn = 200) { module cage(split_rad, cage_thick, thickn, ballx, radb, clear, $fn = 200) { difference() { hoop((split_rad + cage_thick), (split_rad - cage_thick), thickn); ball_array(ballx, split_rad, 0, (thickn / 2), (radb + clear)); } } module hoop(rad_outside, rad_inside, thickness, $fn = 2...
glb/cad_f4cd064d3a62.glb
Create a sumobot revolution case. Start with a base plate that is a 17mm by 17mm square with a thickness of 0.5mm. From this base, extend a vertical wall to create a chassis. Incorporate a ramp section by creating a 3mm by 17mm by 7mm rectangular block positioned at the edge. Within this ramp, remove a hexagonal pris...
module bearing($fn = 200) { module cage(split_rad, cage_thick, thickn, ballx, radb, clear, $fn = 200) { difference() { hoop((split_rad + cage_thick), (split_rad - cage_thick), thickn); ball_array(ballx, split_rad, 0, (thickn / 2), (radb + clear)); } } module hoop(rad_outside, rad_inside, thickness, $fn = 2...
glb/cad_24f81d0911f4.glb
Create a sumobot revolution case by constructing a base plate and adding specific geometric cutouts and components. Start with a main base cube measuring 17mm x 17mm x 0.5mm. At the top of the model, create a rectangular section measuring 15mm x 17mm x 0.5mm. From this structure, remove material using two octagonal p...
module bearing($fn = 200) { module cage(split_rad, cage_thick, thickn, ballx, radb, clear, $fn = 200) { difference() { hoop((split_rad + cage_thick), (split_rad - cage_thick), thickn); ball_array(ballx, split_rad, 0, (thickn / 2), (radb + clear)); } } module hoop(rad_outside, rad_inside, thickness, $fn = 2...
glb/cad_fb1d8df5d4bf.glb
Create a set of nine drop-in t-slot nuts arranged in a 3x3 grid. Each nut is based on a rectangular block 24mm wide, 9mm deep, and 8mm high. For each nut, carve a central vertical channel that is 8mm wide and 8mm high to accommodate the aluminum profile slot. Inside this channel, create a hexagonal hole for an M3 nut...
width = 16; slot_width = 8.0; depth = 9.0; slot_depth = 2; screw_size = 3; nut_size = 6.4; nut_depth = 3.2; repeat_x = 3; repeat_y = 3; da6 = 1 / cos(180 / 6) / 2; da8 = 1 / cos(180 / 8) / 2; da12 = 1 / cos(180 / 12) / 2; %square(100, center = true); for(x = [-(repeat_x - 1) / 2:(repeat_x - 1) / 2]) for(y = [-(repea...
glb/cad_6cb7500b5d0b.glb
Create a FastForward micro quadcopter consisting of a frame and a cargo plate. For the frame, create two identical struts. Each strut is a 5mm thick structure with a length of 80mm. At each end of the strut, create a motor mount: a cylinder with a radius of 6.75mm and a height of 5mm, tilted at a 15-degree angle. The ...
$fa = 0.5; $fs = 0.5; tilt = 15; motor_height = 20; motor_width = 8.5; motor_radius = motor_width/2; wall_thickness = 2.5; wall_height = 5; motor_distance=80; plate_width = 31; plate_height = 68; plate_thickness = 3; hole_cutout_width = 5; hole_cutout_camera = 4; recession = 1.5; camera_length = 22; camera_width ...
glb/cad_6d52f6f47aae.glb
Create an SD card holder consisting of a rounded rectangular base and a vertical storage block. Start with a solid base block measuring 60mm in length, 48mm in width, and 25mm in height, with all four corners rounded to a radius of 8mm. From the top surface of this base, remove a central rectangular section measuring...
Tol = 0.5; L = 32 + Tol; W = 24 + Tol; D = 2.5 + Tol; BL = 60; BW = 48; BD = 25; CH = 3; CD = 18; HS = (5 + Tol)/2; HR = BW - 39; HL = 15; module roundedRect(size, radius) { x = size[0]; y = size[1]; z = size[2]; translate([0,0,-(z/2)]) linear_extrude(height=z) hull() { translate([(-x/2)+(radius), (-y/2)+(rad...
glb/cad_4554e23380b4.glb
Create a simple filament holder consisting of two mirrored halves. For each half, start with a central cylinder 32mm high with a radius of 8mm. Inside this cylinder, remove a smaller concentric cylinder 40mm high with a radius of 4mm to create a hollow tube. To this tube, attach a rectangular block measuring 32mm by 4m...
module pos0() { translate([-29, 0, 16]) cylinder(h=32, r=8, center=true, $fn=64); translate([-15, 6, 3]) cube([32, 4, 6], true); translate([-33, 30, 3]) cube([4, 60, 6], true); translate([-31, 25, 3]) cube([2, 8, 6], true); translate([-26, 25, 3]) cube([8, 6.2, 6], true); } module neg0() { translate([-29, 0, 16]...
glb/cad_0b32401f92b0.glb
Create a mini extruder pneumatic fitting adaptor. Start with a base rectangular block measuring 50mm in length, 13mm in width, and 6mm in height, centered such that it extends from -36.5mm to 13.5mm on the X-axis. At the center of this block, add a cylinder with a radius of 9mm and a height of 11mm, extending upwards f...
difference(){ union(){ translate([-36.5,-6.5,0]) cube([50,13,6]); translate([-12.5,0,0]) cylinder(r=18/2,h=11,$fn=60); } translate([-12.5,0,6]) cylinder(r=15/2,h=8,$fn=60); translate([0,0,-1]) cylinder(r=4/2,h=8,$fn=60); translate([-32,0,-1]) cylinder(r=4/2,h=8,$fn=60); translate([-12.5,0,-1]) cylinder(r=9/2,h=13,$fn=6...
glb/cad_935c8811e5a6.glb
Create a Mario Question Box by constructing an open-top cube with an outer dimension of 50mm. The base should be a solid plate 1.2mm thick. At each of the four corners, add a vertical support column measuring 4mm by 4mm that extends from the base to the full height of 50mm. Connect these columns with walls 2mm thick ce...
pixels = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, ...
glb/cad_a7749311ca5f.glb
Create a toy building brick with a 2x2 stud configuration. The main body is a rectangular block with a width and length of 20.4mm and a height of 3.16mm. The walls of the block are 1.3mm thick. On the top surface, place four cylindrical studs arranged in a grid. Each stud has a diameter of 5mm and a height of 2mm. The...
width = 2; length = 2; thickness = 1; knob_diameter=5.0+0; knob_height=2+0; knob_spacing=8.2+0; wall_thickness=1.3+0; roof_thickness=1.05+0; block_height=9.5+0; pin_diameter=3+0; post_diameter=6.5+0; reinforcing_width=1.5+0; axle_spline_width=2.0+0; axle_diameter=5+0; cylinder_precision=0.1+0; block(length,width,thic...
glb/cad_d0d59c1e567d.glb
Create a UHF/SO-239 barrel insulating mount. Start by creating a central hollow cylinder with an outer diameter of 20.1mm, an inner diameter of 16.1mm, and a total height of 17mm. At the base of this cylinder, add a hexagonal nut shape with a height of 4mm and a flat-to-flat width of 24.15mm. The hexagonal base should ...
$fa=3; $fs=0.3; mm = 1; barrel_diameter = 16.1 * mm; barrel_radius = barrel_diameter/2; wall_width = 2; nut_height = 4; wall_height = 17; include <MCAD/shapes.scad> intersection() { difference() { union() { cylinder(wall_height, barrel_radius+wall_width, barrel_radius+wall_width); ...
glb/cad_50d2c1d98bee.glb
Create a spool expander segment by starting with a cylinder that has a radius of 42mm and a height of 45mm, centered on the origin. Remove a smaller concentric cylinder with a radius of 25mm and a height of 47mm to create a thick-walled tube. To form the segment, remove two large blocks from the sides of the cylinder, ...
seg_thk=45; inner_rad=25; width=17; arc=120; outer_rad=inner_rad+width; wall=1.6; clear_thk=seg_thk+2; ang=(180-arc)/2; $fa=1; module CutHalf(y_off,extra_thk) { translate([0,-1*y_off,0]) cube([outer_rad*2,inner_rad*2,seg_thk+extra_thk],true); } { difference() { cylinder(seg_thk,r=outer_rad,center=true);...
glb/cad_b6fe2756d5f3.glb
Create a spool expander segment by starting with a hollow cylinder that has an outer radius of 55.75mm, an inner radius of 32.5mm, and a height of 63mm, centered on the Z-axis. Cut this cylinder to create a 120-degree arc segment, removing the remaining 240 degrees of the circle. Hollow out the interior of this segme...
seg_thk = 63; inner_dia = 65; wall = 1.6; hole_dia = 2; width = 22.5; arc = 120; inner_rad = inner_dia/2; outer_rad = inner_rad+width; clear_thk = seg_thk+2; ang = (180-arc)/2; $fa=1; module CutHalf(y_off,extra_thk) { translate([0,-y_off,0]) cube([outer_rad*2,inner_rad*2,seg_thk+extra_thk],true); } module trim...
glb/cad_546f35ba6ac0.glb
Create a pair of mirrored Vise Soft Jaws. For each jaw, start with a main rectangular base measuring 100mm in length, 12.7mm in width, and 6.35mm in thickness. On the bottom surface of the base, create a series of square magnet holes measuring 5.1mm per side. These holes should be spaced 25mm apart, centered along th...
viseLength = 100; jawWidth = 12.7; jawDepth = 25; thickness = 6.35; faceThickness = 6.35; knurlAngle = 45; knurlWidth = 0.5; knurlDepth = 2; knurlSpacing = 7; vGrooveSize = 10; vGroovePosition = -0.4; magnetSelect = 0; cylinderHeight = 1; magnetDiameter = 5; magnetSize = 5.1; magnetSpacing = 25; module vi...
glb/cad_1415fe3e79dd.glb
Create a Marcy Weight Bench Clip consisting of two joined rectangular sections. First, create a main cover plate measuring 86mm in length, 70mm in width, and 7mm in thickness. Centered along the length and width of this plate, attach a second rectangular brace. This brace must be 45mm long, 70mm wide, and 9mm thick, an...
cover_l = 86; cover_w = 70; cover_d = 7; brace_l = 45; brace_w = 70; brace_d = 9; slot_l = 25; slot_w = 64; slot_d = 3.0; rotate([90,0,0]) { cube([cover_l,cover_w,cover_d],true); union() { translate([cover_l/2,-cover_w/2,cover_d/2]) { rotate([0,135,0]) { difference() { ...
glb/cad_06970d5aa715.glb
Create a Rotatable Bowden Extruder consisting of two separate plates: a motor base and a bearing base. For the motor base, create a rectangular plate measuring 60mm by 30mm with a height of 2.5mm and rounded corners with a 3mm radius. Center a 12mm diameter hole through the plate. Position two screw holes 9.2mm away f...
part = "both"; motor_base_size_x = 60; motor_base_size_y = 30; motor_base_size_z = 2.5; bearing_top_central_hole_diameter = 12; bearing_top_screw_head_diameter = 4.5; bearing_top_screw_hole_diameter = 3.4; bearing_top_screw_height = 4.5; bearing_top_screw_hole_position = 9.2; motor_width = 42; motor_holder_d...
glb/cad_33adf7f35667.glb
Create an external hard drive mount consisting of two separate brackets. For the top bracket, create a back plate 88.5mm wide, 15mm deep, and 3mm thick. Attach two side walls to the back plate, each 15mm deep and 11.3mm high, positioned at the outer edges. Connect these side walls to the back plate using two front li...
device_width = 82.5; device_height = 11.3; wall_thickness = 3; $fn = 50; Top(); Bottom(); module Top() { back_l = device_width + (2 * wall_thickness) + 2; back_w = 15; side_h = device_height; front_l = 15; rotate([90,0,0]) { difference() { union() { translate([-back_l/2,-back_w/2,0]) { color("...
glb/cad_f470e720d455.glb
Create a simple gear with a total height of 8.5mm. Start by forming a main cylinder with a diameter of 40mm and a centered coaxial hole with a diameter of 22mm. Around the outer perimeter, add 44 evenly spaced teeth. Each tooth should be constructed as a projection extending 2mm outward from the main cylinder's edge, w...
n_teeth=44; d_gear=40; d_hole=22; h_gear=8.5; w_teeth=2; l_teeth=2; difference(){ cylinder(d=d_gear,h=h_gear,$fn=100); translate([0,0,-1]) cylinder(d=d_hole,h=h_gear+2,$fn=100); } for(i=[0:n_teeth-1]){ rotate([0,0,i*(360/n_teeth)]) translate([d_gear/2,0,0]) hull(){ translate([l_te...
glb/cad_2fbe500d3d39.glb
Create a Parts Bin Divider consisting of a central wall and two semi-circular anchors. Start by creating a rectangular wall 49mm wide, 2.1mm thick, and 30mm high. The ends of this wall should be rounded with a radius of 1.05mm. At each end of the wall, add a thin cylindrical anchor disk with a radius of 6.3mm and a hei...
binWidth = 49; binDepth = 130; binHeight = 30; partitions = 4; wedgeHeight = 18; wedgeDiameter = 4; wallThickness = 2.1; anchorThickness = 0.4; wall (binWidth, wallThickness, binHeight); translate ([(binWidth) / 2, 0, 0]) anchor (wedgeDiameter, wedgeHeight); rotate([0, 0, 180]) translate ([(binWidth) / 2, 0, ...
glb/cad_76c6375a3471.glb
Create a hobbed bolt block by starting with a rectangular prism measuring 23mm in width, 32mm in depth, and 60mm in height. Center a longitudinal cylindrical hole through the depth of the block with a diameter of 17mm. At one end of this hole, create a wider circular opening with a diameter of 22.5mm and a depth of 7mm...
pos=14+3+6; x=pos*2; y=32; z=50; zz=10; rm8=8.5/2; rm6=6.25/2; rm5=6.5/2; $fn=32; r608=(22+0.25)/2; h608=7; r606=(19+0.25)/2; h606=6; boltd=8; metd=6; gk=1.2; rp=(16.5)/2; hp=5.2; z2=z/2-3; rotate([90,0,0]) { difference() { union() { translate([0,0,0]) cube([x,y,z+zz]); } translate([-1,y/2,z2]) rotate([0,90,0]...
glb/cad_b38671caf8a6.glb
Create a hobbed bolt designed to hold bearings. Start with a rectangular block measuring 44mm in length, 32mm in width, and 60mm in height. Center a cylindrical hole through the length of the block with a diameter of 17mm. At both ends of this main tunnel, create larger circular recesses with a diameter of 22.5mm and...
pos=14+3+6; x=pos*2; y=32; z=50; zz=10; rm8=8.5/2; rm6=6.25/2; rm5=6.5/2; $fn=32; r608=(22+0.25)/2; h608=7; r606=(19+0.25)/2; h606=6; boltd=8; metd=6; gk=0.7; rp=(16.5)/2; hp=5.2; z2=z/2-3; rotate([90,0,0]) { difference() { union() { translate([0,0,0]) cube([x,y,z+zz]); } translate([-1,y/2,z2]) rotate([0,90,0]...
glb/cad_f5149a065f85.glb
Create a hobbed bolt by starting with a rectangular block measuring 23mm by 32mm by 60mm. Bore a central hole through the 32mm width of the block with a diameter of 17mm. At both ends of this central hole, create larger cylindrical recesses with a diameter of 22.5mm and a depth of 7mm. Through the center of the block...
pos=14+3+6; x=pos*2; y=32; z=50; zz=10; rm8=8.5/2; rm6=6.25/2; rm5=6.5/2; $fn=32; r608=(22+0.25)/2; h608=7; r606=(19+0.25)/2; h606=6; boltd=8; metd=6; gk=0.9; rp=(16.5)/2; hp=5.2; z2=z/2-3; rotate([90,0,0]) { difference() { union() { translate([0,0,0]) cube([x,y,z+zz]); } translate([-1,y/2,z2]) rotate([0,90,0]...
glb/cad_6b82d21d2ee1.glb
Create a Moineau stepper pump consisting of a pump chassis, a rotor, and two flanges. First, construct the pump chassis. Create a hollow internal cavity by extruding a shape consisting of two circles of radius 10mm centered at x = -5mm and x = 5mm, connected by a rectangle of 10mm by 20mm. Extrude this profile to a h...
R1=5; R2=10; H=60; wall=2; top=3; c1=0.2; c2=0.0; phi=480; $fn=40; flange_thickness = 4; v=4*R1*R2*H*360/phi; echo(str("Pumping speed is ",v/1000," cc per revolution")); module rotor() { union() { linear_extrude(height=H, convexity=20, twist=2*phi) translate([R1/2,0,0]) circle(r=R2); translate([cos(...
glb/cad_11e315f8ba96.glb
Create a parametric bowl starting with a pentagonal base. The base is a flat, solid pentagon with a radius of 16mm and rounded corners of 5mm, extruded to a thickness of 1mm. From the top of this base, create the bowl's body by extruding a hollow pentagonal shell with a wall thickness of 1.5mm. This shell should rise t...
baseRadius = 16; bowlHeight = 50; wallThickness = 1.5; cornerRadius = 5; rimThickness = 1; baseThickness = 1; numSides = 5; bodyFlare = 1.8; bodyTwist = 60; linear_extrude( height=baseThickness ) polyshape( solid="yes" ); translate( [ 0, 0, baseThickness ] ) linear_extrude( height=bowlHeight, twist=bodyTwist,...
glb/cad_18f2844533ba.glb
Create a mounting bracket for a power supply unit. Start with a central rectangular base that is 65mm wide, 170mm long, and 3mm thick. Attached to the two shorter ends of this base, add two vertical side walls that are each 10mm wide, 170mm long, and 3mm thick. These walls should be perpendicular to the base, creating ...
psuX=65; psuY=170; psuZ=40; wall=3; screw=2.8; earsX=10; earsY=40; zBlocker=6; $fn=32; module screwSlot(radius, length, height) { translate([0,-(length+radius)/2,0]) hull() { cylinder(r=radius, h=height); translate([0,length,0]) cylinder(r=radius, h=height); } } module psuHolder() { rotate([90,0,0]) differe...
glb/cad_96ad0579d5cb.glb
Create a measuring jig as a solid rectangular block with a total length of 75mm, a width of 15mm, and a height of 10mm. Along the top surface, carve out five rectangular slots of varying widths, each with a consistent depth of 10mm. Starting from the right side, place the first slot 5mm from the edge with a width of 7m...
linear_extrude(height = 10, center = true, convexity = 10, twist = 0) polygon(points=[[0,0], [75, 0], [75, 15], [70,15], [70, 5], [59, 5], [59, 15], [54, 15], [54, 5],[ 44, 5], [44, 15], [39, 15], [39, 5], [30, 5], [30, 15], [25, 15], [25, 5], [17, 5], [17, 15], [12, 15], [12, 5], [5, 5], [5, 15], [0, 15], [0,0]]...
glb/cad_7d0471fc7eb3.glb
Create a 3D model of a W-22 Priker airplane. Start with a central fuselage consisting of a rectangular base 6mm long, 5mm wide, and 0.05mm thick. Attach two symmetrical wings to the sides of the fuselage; each wing is a right-angled triangle with legs of 2mm, extending outwards from the center. At the front of the pla...
height = 0.05; color("red") cube([2,3,height]); translate([2,0,0]) color("black") cube([2,5,height]); translate([4,0,0]) color("red") cube([2,3,height]); module triangle(ss) { polyhedron( points=[ [0,0,height],[ss,0,height],[0,ss,height] , [0,0,0],[ss,0,0],[0,ss,0], ], triangles=[ [3,4,5],[1,2,5],[5,4,1]...
glb/cad_c8f52caacf7d.glb
Create a game card holder with a base plate and surrounding walls. Start with a rectangular base plate 58mm wide, 84mm long, and 2mm thick. Construct four outer walls with a height of 12mm and a thickness of 2mm. The two long walls should run parallel to the 84mm side, and the two short walls should run parallel to t...
card_x = 54; card_y = 80; card_space = 2; wall_thickness = 2; plate_height = 2; wall_height = 12; shortwall_cut = card_x/(card_y/card_x); shortwall = (card_x-shortwall_cut)/2+wall_thickness+card_space/2; female_con_x = 10; female_con_y1 = 21; female_con_y2 = 12.5; male_con_x = 11.4; male_con_y1 = 19.8; male_con_y2 = 1...
glb/cad_6d9280e27a31.glb