Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create an Easy Print Scoop by combining a hollowed bowl and a handle. Start with a sphere 75mm in diameter, scaled by a factor of 1.52 along the Z-axis to create an elongated oval shape. Rotate this shape 65 degrees along the X-axis. Hollow out the center by removing a smaller scaled sphere with a diameter of 72.2mm, l...
bowlAng = 65; difference(){ union(){ rotate([bowlAng,0,0]) scale([1,1,1.52]) sphere(d=75, $fn=100); translate([0,-48,9]) rotate([90,0,0]) minkowski($fn=50) { cylinder(d=15, h=80); sphere(r = 5); } } rotate([bowlAng,0,0]) scale([1,1,1.52]) sphere(d=72.2, $fn...
glb/cad_db8247f4c026.glb
Create an Additive Manufacture Breakout Board consisting of three main components: an enclosure, a component housing, and a bolt. First, construct the enclosure as a base cube measuring 11mm x 13mm x 8.25mm. Carve out a central slot 9mm long, 8mm wide, and 3.5mm high with a floor thickness of 1mm and rounded ends (rad...
use<Spiral_Extrude_Library.scad>; $fn = $preview ? 64 : 128; zfight_tol = 0.1; base_length = 11.00; base_width = 13.00; base_height = 8.25; base_color = "DarkGreen"; base_opacity = 1.0; arc_rad = 5.5; slot_wall_height = 3.5; slot_width = 8; slot_length = 9; floor_thickness = 1.0; track_width = 2; track_height = 4;...
glb/cad_306206090ebf.glb
Create a coat hanger consisting of two identical hook units arranged side-by-side. For each unit, start with a rectangular base plate measuring 25mm wide, 50mm high, and 3mm thick. On each base plate, create a mounting hole with a diameter of 2.5mm. This hole should be centered along the width and positioned near the...
NOH = 2; BPH = 50 ; BPW = 25 ; BPT = 3 ; SHD = 2.5 ; SLN = 30 ; SDB = 6 ; SDT = 4 ; SOT = 6 ; AOS = 55 ; for (N=[1:NOH]) { translate([(N-1)*BPW-0.01,0,0]) difference() { union() { cube([BPW, BPH, BPT]) ; translate([BPW/2, 10, -3]) rotate([AOS-90, 0, 0]) cylinder(r1=SDB, r2= SDT, ...
glb/cad_2c31dff7aec1.glb
Create a Beer Bottle Lock designed to fit over a bottle cap. The main body is a semi-circular ring with a thickness of 3mm and an overall height of 20mm. The inner diameter of the ring is 26mm, while the outer diameter is 29mm. The bottom of the ring features a central circular hole with a diameter of 18mm. On one sid...
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_6521b4e62f14.glb
Create a parametric pulley with 8 teeth. The model consists of a central cylindrical body with a height of 12mm and an outer diameter of 11.88mm. Carve 8 T5 profile teeth into the outer circumference of this cylinder. At the base of the pulley, create a cylindrical base with a diameter of 20mm and a height of 8mm. Cen...
teeth = 8; profile = 6; motor_shaft = 5.2; m3_dia = 3.2; m3_nut_hex = true; m3_nut_flats = 5.7; m3_nut_depth = 2.7; retainer = false; retainer_ht = 1.5; idler = false; idler_ht = 1.5; pulley_t_ht = 12; pulley_b_ht = 8; pulley_b_dia = 20; no_of_nuts = 1; nut_angle = 90; nut_shaft_distance = 1.2; blank =...
glb/cad_48c806db86ed.glb
Create a Snappy Headset Hanger designed to clamp onto a shelf. The main body is a C-shaped bracket with a total width of 20mm. The interior opening of the clamp is sized for a shelf thickness of 19mm. The bracket walls have a thickness of 2.5mm, and the depth of the clamp is 20mm. The bracket features a wedge-shaped p...
mount_type="front"; shelf_thickness=19; bracket_depth=20; top_offset=8; backlash=0.3; wedge=1.0; bracket_thickness_wedge=2.0; bracket_wedge_depth_ratio=0.8; bracket_thickness=2.5; rotate([0,90]) bracket(width=20,shelf_thickness=shelf_thickness,bracket_depth=bracket_depth,bracket_thickness=bracket_thickness,backlash=...
glb/cad_7862d7931b9e.glb
Create a Terminals mount consisting of two identical mirrored components. For each component, start with a rectangular base measuring 25.6mm by 25mm with a thickness of 5mm. On this base, create four vertical terminal slots. Each slot is formed by a cylinder with a radius of 4.25mm and a height of 21mm, combined with...
drill=3.2; d=11.5; b = 2; lx = b*d; n=4; rotate([0, 180, 0]) difference() { color("red") difference() { translate([17.25, -5, 3.5]) cube([25.6, 25, 5],center=true); for (i=[0:n-1]) { ...
glb/cad_f3a59886d5a3.glb
Create a bed leveling probe mount. Start with a main rectangular base measuring 25mm in width, 55mm in length, and 3mm in height, centered such that it extends from -6mm to 19mm on the X-axis. On top of this base, add two rectangular blocks: one measuring 12mm by 4mm by 3mm positioned at X-6, Y-30, Z-3, and another mea...
difference (){ union(){ translate ([-6,0,0]) cube([25,55,3]); translate ([-6,30,3]) cube([12,4,3]); translate ([-6,34,3]) cube([12,5,14]); translate ([-6,0,3]) cube([12,8,14]); translate ([6,33,3]) cube([13,7,3]); translate ([16,35,0]) cylinder(h = 7.5, d=1.5, $fn=60); } translate ([0,-25,9]...
glb/cad_6ea9e0f403dd.glb
Create a trigger plate for an auto bed leveling probe. Start with a main rectangular block 15mm wide, 2mm thick, and 4mm high, positioned from x=0 to 15, y=40 to 42, and z=7 to 11. Attach a vertical rectangular section to the left side, measuring 12mm wide, 5mm deep, and 12mm high, positioned from x=-6 to 6, y=40 to 45...
color("SlateGray"){ difference (){ union(){ translate ([-6,40,3.5]) cube([12,5,12]); translate ([0,40,7]) cube([15,2,4]); translate ([0,40,8]) rotate ([0,0,-14]){ cube([14,5.5,2]); } } translate ([0,30,7]) cube([15,10,20]); translate ([0,-25,9]) rotate ([270,0,0]){ cylinder(h = 100, d=6, $fn...
glb/cad_f62083f45a9f.glb
Create a bed leveling probe mount for a K8200 printer. Start by constructing a base assembly consisting of three rectangular blocks: one measuring 12x14x13.5mm positioned at (-6, 8, 3.5), a thin horizontal plate of 19x2x8mm at (0, 20, 9), and a wider upper platform of 22.5x14x5mm at (-6, 8, 12). Add a vertical cylinder...
color("SlateGray"){ difference (){ union(){ translate ([-6,8,3.5]) cube([12,14,13.5]); translate ([0,20,9]) cube([19,2,8]); translate ([-6,8,12]) cube([22.5,14,5]); translate ([16.5,19.5,12]) cylinder(h = 5, d=5, $fn=240); translate ([0,8,3.75]) rotate ([270,0,0]){ cylinder(h = 14, d=4, $fn=60); }...
glb/cad_fe6946e603e9.glb
Create a button protector for a jumpstarter by constructing a hollowed-out shell based on two nested geometric volumes. First, create the outer volume by forming a hull between a base cube of 19mm x 19mm x 9mm and a smaller, centered upper cube of 14mm x 14mm x 10mm. Second, create the inner void by forming a hull betw...
base_width = 15.0; base_height = base_width; base_depth = 9.0; button_width = 10.0; button_height = button_width; button_depth = 6.0; thickness = 2.0; t = thickness; module inside() { hull() { cube([base_width, base_height, base_depth]); translate([ (base_width-button_width)/2, (base_width-button_width)/2...
glb/cad_63858b160732.glb
Create four identical glass plate holders for a 3D printer heatbed. Each holder is based on a right-angled triangle with a base and height of 30mm and a total thickness of 6mm. For each holder, start with the solid triangular base. At the right-angle corner, center a vertical hole with a radius of 1.65mm that passes ...
WidthOffTriagle=30; WithOffSides = 7; height = 6; module triangle(width,length,h) { linear_extrude(height=h) polygon([[0,0],[0,width],[length,0]]); } module PlateHolder(OOC){ union(){ difference(){ union(){ triangle(WidthOffTriagle,WidthOffTriagle,height); translate([4,4,height/2])cylinder(r=5, h=height, center...
glb/cad_94293a518b51.glb
Create a contact box for a hot bed consisting of a main housing and a separate lid. For the housing, start with a solid rectangular block measuring 50mm wide, 55mm deep, and 33mm high. Hollow out the center by removing a block 46mm wide, 40mm deep, and 30mm high, positioned 2mm from the front and 13mm from the side, le...
difference() { cube([50,55,33]); translate([2,13,4])cube([46,40,30]); translate([25,56,16])rotate([90,0,0]) cylinder(57,9,9); translate([-0.1,-0.1,29])cube([52,10,4.1]); translate([-0.1,-0.1,-0.1])cube([52,10,4]); translate([8,5,-1]) cylinder(35,2,2); translate([42,5,-1]) cylinder(35,2,2); } difference() { translate([...
glb/cad_a9bd83a70f14.glb
Create a cable extruder mount by starting with a central block that is 54mm wide, 54mm deep, and 20mm high, centered on the origin. Remove a smaller central cube measuring 42mm by 42mm by 21mm to create a hollow shell, and further remove a cube of 42mm by 42mm by 22mm positioned at x-32, y-32, and z-11 to open the stru...
difference() { cube([54,54,20],center=true); cube([42,42,21],center=true); translate([-32,-32,-11.0])cube([42,42,22]); } difference() { translate([10,-51,-10.0])cube([6,25,20]); translate([9.9,-38,0])rotate([0,90,0]) cylinder(26,5,5); } difference() { translate([15.9,-38,0])rotate([0,90,0]) cylinder(15,7.5,5.5); tran...
glb/cad_b552345761ec.glb
Create a power jack and switch holder block measuring 34mm wide, 36mm deep, and 20mm high. On the top face, create a cutout for a power inlet jack. This cutout consists of a central cylinder with a 7.5mm radius and 2mm height, connected by a hull to two cylinders with 3mm radii and 2mm heights positioned 20mm apart. ...
$fn=30; rotate([0,180,0]) difference() { translate([0,0,10.1]) cube([34,36,20], center=true); translate([0,9,0]) powerjack(); translate([0,-8,0]) switch(); translate([14,0,10]) sideScrewM3(); translate([-14,0,10]) sideScrewM3(); } module sideScrewM3() { difference() { rotate([90...
glb/cad_52f2af3f4d9e.glb
Create a cover for a 30x30 aluminum profile by constructing a tiered rectangular strip with a total length of 82mm. Start with a base rectangular plate measuring 16mm wide, 82mm long, and 1.5mm thick. Centered on top of this base, add a second rectangular block that is 8mm wide, 82mm long, and 2.4mm thick, positioned 1...
lun=82; cube([16,lun,1.5]); translate([4,0,1.5]) cube([8,lun,2.4]); translate([3.8,0,3.6]) cube([8.4,lun,1.5]);
glb/cad_93b1283ed2f7.glb
Create a toothbrush holder adapter consisting of a base and three vertical hollow tubes of varying heights. Start with a base formed by two rectangular blocks: one measuring 26mm by 61mm by 3mm, and another 41mm by 44mm by 3mm, positioned to create a flat foundation. On the left side of the base, integrate two rectangu...
difference () { union () { translate ([4.5,0,0]) cube ([26,61,3]); hull () { translate ([2,2,0]) cylinder (h=20, d=4); translate ([2,14,0]) cylinder (h=20, d=4); translate ([7,2,0]) cylinder (h=20, d=4); translate ([7,14.5,0]) cylinder (h=20, d=4); } hull () { translate ([2,47,0]) cylinder...
glb/cad_74ab4fb9cfa7.glb
Create a Yazzo Rod End Axle Mount designed to fit a rod. Start by creating a central hollow tube with an inner diameter of 11.34mm and an outer diameter of approximately 18.38mm, extending to a length of 20mm. At one end of this tube, integrate a swivel mount. This mount consists of a rectangular base 33mm wide, 8mm ...
use <keyedswivel.scad> goldenratio = 1.61803399; joinfactor = 0.125; gPrimaryBore = 11.34; gPrimaryIR = gPrimaryBore/2; gPrimaryOR = gPrimaryIR*goldenratio; gPrimaryLength = 20; gDefaultSeparation = 33; gDefaultOffset = 8; gDefaultBaseThickness = 8; gDefaultHolderIR = 1/4/2*25.4*1.05; gDefaultHolderOR = gDefaultHol...
glb/cad_7b897f51879f.glb
Create a leadnut adapter for a Z-axis thread. Start by creating a base cylinder with a radius of 11.5mm and a height of 7.5mm. On top of this base, add a truncated cone that transitions from a bottom radius of 11.5mm to a top radius of 7.5mm over a height of 5mm. At the very top of this assembly, centered at a height o...
include <MCAD/nuts_and_bolts.scad> main(); module main() { doIt(); } module doIt() { difference() { union() { cylinder(h=7.5, r=11.5); translate([0,0,7.5]) { cylinder(h=5, r1=11.5, r2=7.5); } translate([0,0,10]) { nutHole(8); } } cylinder(h=17, r=4.5); cylinder(h=7.5, d=19.6, $fn=6...
glb/cad_8a43852b87a6.glb
Create a customizable ring composed of six identical vertical cylinders connected by rectangular walls. Each cylinder must have a radius of 5mm and a height of 25mm. Position these six cylinders in a circular arrangement with a radius of 25mm from the center of the assembly, spaced evenly at 60-degree intervals. Connec...
r_cyl = 5; h_cyl = 25; r_ring = 25; v_nbr_cyl = 5; e_cube = 2; $fn=100; for (nb = [0: v_nbr_cyl]) { rotate(360*nb/v_nbr_cyl,[0,0,1]) translate([r_ring, 0, 0]) { cylinder(r= r_cyl, h= h_cyl); rotate(90+180/v_nbr_cyl,[0,0,1]) translate(v=[0,-e_cube/2,0]) cube([2*cos((180/v_nbr_cyl)...
glb/cad_6110819ff367.glb
Create a customizable hole mount bracket. Start with a rectangular back plate that is 24mm wide, 2mm thick, and 20mm high. In the center of this plate, create a circular hole with a radius of 5.1mm. From the outer edges of this back plate, extend two side arms forward. Each arm should be 2mm thick, 8mm wide, and 80mm l...
width=24; backPlateHeight=20; plateHeight=20; height=8; thickness=2; bracketLength=80; holeRadius=5.1; module triangleBrace() { hull(){ cylinder(r=0.01, thickness); translate([plateHeight-shiftAmount, 0, 0]) cylinder(h=thickness, r = 0.1); translate([0,height-thickness-0.095,0]) cylinder(h=...
glb/cad_60aeb2004672.glb
Create a Universal Powerbank body by starting with a hollow rectangular box with outer dimensions of 59.7mm in length, 25.5mm in width, and 12.5mm in height, featuring a wall thickness of 1.5mm. On the side wall, create several precise cutouts to accommodate ports. First, create two rectangular openings for USB ports...
$fn=75; w=1.5; l=56.7; h=11; b=24; usb_l=12.5; usb_h=5; ro=2; usbc_l=9-ro; usbc_h=3-ro; ro1=1.2; musb_l=7.5-ro1; musb_l2=6-ro1; musb_h=2.5-ro1; ro2=3; but_l=9.5-ro2; but_h=4.5-ro2; led_l=12; led_h=8; st_l=4; st_b=8; st_h=5.6; sp_l=12.5; sp_b=3; sp_h=2.5; translate([l/2-st_l/2,-b/2+st_b/2+4,-h/2+st_h/2]) cube([...
glb/cad_d63fd950362a.glb
Create a Universal Powerbank body by constructing a hollowed-out rectangular shell with rounded corners. Start with a solid base that is 41.19mm wide, 36.5mm high, and 60.2mm deep. Apply a fillet or rounding to all edges using a radius of 2mm. To create the interior cavity, remove a smaller centered volume that is 37.1...
$fn=75; w=1.5; l=56.7; h=11; b=24; cl=3.5+w; cd=18.7; cw=2; r=18.69; difference(){ minkowski(){ cube([cd*2-r+w*2,cd+h+w-r+w*2,cl],center=true); cylinder(d=cw*2+r,h=0.001,center=true); } translate([0,0,w]) minkowski(){ cube([cd*2-r,cd+h+w-r,cl],center=true); cylinder(d=cw*2+r,h=0.001,center=true); } }
glb/cad_ceaf9b8d8197.glb
Create a Universal Powerbank component consisting of two stacked, rounded rectangular prisms. First, construct a base rectangular prism centered at the origin with a length of 11.5mm, a width of 6.5mm, and a height of 2mm. Apply a fillet or rounding effect to all edges using a radius of 3mm. Directly on top of this bas...
$fn=75; h1=1.5+2; h2=2; ro2=3; but_l=9.5-ro2; but_h=4.5-ro2; translate([0,0,h1/2]) minkowski(){ cube([but_l,but_h,h1+0.1],center=true); cylinder(h=0.1,d=ro2,center=true); } translate([0,0,-h2/2]) minkowski(){ cube([but_l+2,but_h+2,h2+0.1],center=true); cylinder(h=0.1,d=ro2,center=true); }
glb/cad_31cd3aa913a5.glb
Create a universal powerbank body designed to hold two 18650 battery cells. Start by constructing a main outer shell with a total length of 67.5mm. The shell's cross-section is based on a rounded rectangle formed by the Minkowski sum of a cube and a cylinder with a radius of 18.69mm. Inside this shell, create two vert...
$fn=75; cl=67.5; cd=18.7; cw=2; r=18.69; w=1.5; l=56.7; h=11; b=24; difference(){ translate([0,cd/2-cw-w,0]) minkowski(){ cube([cd*2-r,cd+h+w-r,cl],center=true); cylinder(d=cw*2+r,h=0.001,center=true); } translate([-cd/2,0,0]) cylinder(h=cl+0.01,d=cd,center=true); translate([+cd/2,0,0]) cylinder(h=cl+0.01,d=cd,...
glb/cad_5bc51403af16.glb
Create a Universal Powerbank connector plate by starting with a central rectangular slab measuring 56.7mm in length, 11mm in height, and 1.5mm in thickness, centered on the origin. Subtract several geometric cutouts from this slab to create ports. First, remove two rectangular blocks measuring 12.5mm by 5mm, centered v...
$fn=75; w=1.5; l=56.7; h=11; b=24; usb_l=12.5; usb_h=5; ro=2; usbc_l=9-ro; usbc_h=3-ro; ro1=1.2; musb_l=7.5-ro1; musb_l2=6-ro1; musb_h=2.5-ro1; ro2=3; but_l=9.5-ro2; but_h=4.5-ro2; difference(){ cube([l,h,w],center=true); translate([usb_l/2+0.4,0,0]) cube([usb_l,usb_h,w+0.1],center=true); translate([usb_l/2-26,...
glb/cad_3e42c999bea1.glb
Create a Bolt and Nut Sizer tool by starting with a rectangular base block measuring 85mm in width, 132mm in length, and 13mm in height. Along the length of the block, create a series of recessed measurement tics on one edge. These consist of five 6x1x12mm rectangular cutouts spaced every 25.4mm, ten 4x1x9mm cutouts ...
include <libraries/MCAD/shapes.scad> include <bitmap.scad> kerf = 0.6; Tsz=1.25; w=85; ht=13; spc=2.4; D01 = 25.4*1./4. + kerf; x01 = 15; y01 = D01/2+spc; r01=(0.12*25.4)/2.0+kerf; D02 = 25.4*5./16. + kerf; x02 = 15; y02 = y01+D01+spc; r02=(0.14*25.4)/2.0+kerf; D03 = 25.4*11./32. + kerf; x03 = 15; y03 = y02+D02+s...
glb/cad_3f06efc492f3.glb
Create a Universal Slotted Spool Hub by starting with a conical frustum that has a base diameter of 60mm, a top diameter of 35mm, and a height of 20mm. Remove a central vertical cylinder with a diameter of 10mm from the entire height. At the base, create a recessed cavity for a 608 bearing by removing a cylinder with a...
dimA = 60; dimB = 35; height=20; cutNumber = 6; offset=32; dim=12; holeDiameter=8; holeGap=2; cutslot=true; difference(){ cylinder(r1=dimA/2, r2=dimB/2, h=height, $fn=80, center=false); cylinder(r=(holeDiameter+holeGap)/2, h=height*2, center=false, $fn=80); for(i = [0:cutNumber]){ rotate([0,0,i*360/cutNumber...
glb/cad_74594da18378.glb
Create a node for a truncated icosahedron assembly by starting with a sphere with a radius of 10.16mm. Subtract two cubes from this sphere to trim the top and bottom, each cube being 20.32mm on all sides, positioned so that the sphere is sliced into a thick disc shape. Within this disc, create three square holes that...
in=25.4; $fs=.5; module bucky_holes() { dia=.075*in; len= 3*in; phi=31.7175; rotate ([0,-phi/2,0]) { rotate ([0,90,180-54]) hole_shape(len,dia); rotate ([0,90,-(180-54)]) hole_shape(len,dia); } rotate ([0,phi/2,0]) { rotate ([0,90,0]) hole_shape(len,dia); } sphere (dia); } module hole_shape(len,dia) { transl...
glb/cad_4d608829f9db.glb
Create a Customisable Paint Brush Tool Holder consisting of a top frame, a bottom frame, and vertical support stands. Construct the top and bottom frames as rectangular blocks with a thickness of 1.5mm. Each frame should feature a grid of 10 columns and 5 rows of square holes, where each hole is 10mm by 10mm. The wal...
$fn=99; cols = 10; rows = 5; holes=[[0,3,2,2],[2,3,2,2],[4,3,2,2],[6,3,1,2],[9,3,1,2]]; stands=[[0,2],[9,2]]; thickness = 1.5; hole_size = 10.0; frame_height = 15.0; guide_type = 1; stand_height = 80.0; stand_tolerance = 0.3; show_final_model = true; show_printable_model = true; if (show_printable_model ==...
glb/cad_e61b04216f67.glb
Create a Ryobi Battery Holder consisting of a main body and a separate wedge. For the main body, construct a hollow shell with a material thickness of 2mm. The overall outer dimensions are 28.22mm wide (W), 33.58mm long (L), and 49mm high (H). The footprint is a rounded rectangle where the two front corners are small...
Margin = 1.01; fn = 100; RH = 3; rnd = .25; Delta = .01; RS = 4; RL = 14.1*Margin; W = RL*2; L = 33.25*Margin; H = 49; THK = 2; KEY_W = 3.5; KEY_H = 10; KEY_OS = 1.3; EC = 8; EC_OS = 29.5; EC_PM = 12; ANG = 5; TL = 5; RyobiBatteryHolderWedgeWithTruss(); RyobiBatteryHolder(); translate([W/3,-TL-THK,-(H+THK)/2]) ...
glb/cad_94049a243d42.glb
Create a customizable chopper wheel with a total thickness of 5mm. Start with a main cylindrical disk having an outer radius of 30mm. At the center, add a mounting cylinder with a radius of 3mm and a height of 2mm. This central hub must have a concentric hole through its center with a radius of 4mm. The disk features ...
NUM_Int=40; R_OUTER = 30; R_INNER = 20; R_INNER2 = 9.5; R_HOLE = 4; BORDER = 2; THICKNESS = 5; THICKNESS_MOUNT = 2; INT_MODIFIER = -0.2; z=R_HOLE; a=6; b=3; c=3; NUM_SECTIONS = NUM_Int*2; R_MOUNT = 3; R_CROSS = 1.9; shaft_lock(); module shaft_lock(){ difference(){ cylinder(15,(z*3)/2+3,(z*3)/2+3); rotate([90...
glb/cad_dcf651105e4f.glb
Create a cigar box guitar nut and bridge set. First, construct the nut as a rectangular block 40mm wide, 6mm high, and 6mm deep. Modify the top surface of the nut by removing a 2mm wide strip from each side of the width, creating a trapezoidal profile where the top is 2mm narrower than the base. Carve four cylindrical ...
use <utils/build_plate.scad>; neck_width=40; number_of_strings=4; nut_height=6; nut_depth=6; bridge_height=4; bridge_platform=1.4; _print="both"; build_plate(3,230,200); if (_print=="nut" || _print=="both") { translate([neck_width,-3*nut_depth,0]) rotate([0,0,180]) nut(); } if (_print=="bridge" || _print=="both"...
glb/cad_2db0cf5f41cf.glb
Create a quarter roll coin holder consisting of two separate components: a main outer housing and a piston. For the outer housing, create a cylindrical body with an overall height of 11mm and an outer diameter of 31.2mm. The base is a solid disc 1mm thick with a central hole 15mm in diameter. From the 1mm mark up to t...
echo(version=version()); in_d = 29.5 ; ins_d=26; q_d = 24.5 ; q_h = 2 ; top = 1 ; wid=15; grv_dep = 1.1; grv_h = 3; grv_off=1; wall = 1; flap = 10; p_h = 15; gap=5; out_d = in_d + 2 * grv_dep + 2 * wall; hgt = top + q_h + grv_off + grv_h +grv_h; offs = top + q_h; apart = (out_d + ins_d)/2 + gap; bbb = 0.5*(sqrt(out_...
glb/cad_ff62a1e1a6f2.glb
Create a K.I.S.S. electronics case consisting of a main body and a separate lid. For the main body, create a rectangular outer shell with dimensions 50.4mm in length, 40.1mm in width, and 22mm in height. Hollow out the center to create a cavity measuring 40.4mm by 30.1mm by 17mm, leaving a wall thickness of 5mm on all ...
wall_thickness = 5; case_length = 40.4; case_width = 30.1; case_height = 17; screw_hole_diameter = 3; screw_hole_depth = 8; lid_thickness = 5; corner_offset = (wall_thickness / 2); outer_case_length = case_length + 2 * wall_thickness; outer_case_width = case_width + 2 * wall_thickness; outer_case_height = case_height ...
glb/cad_4709db686db6.glb
Create a hollow piping system consisting of a continuous path of connected straight and curved segments. The pipe has an outer diameter of 10mm and an inner diameter of 5mm. Construct the path using the following sequence: 1. A straight section 15mm long. 2. A right-hand curve with a radius of 25mm and an angle of 45 ...
module _lin_pipe(d, data) { rotate([0,90,0]) cylinder(d=d, h=data[1]); } module _cur_pipe(d, data) { rotate([0,0,-90]) translate([-sign(data[1])*data[2],0,0]) rotate_extrude(angle=data[1], convexity=10) translate([sign(data[1])*data[2],0]) circle(d=d); } module _pipe_piece(d,data) { _...
glb/cad_c26c7bb2878f.glb
Create a 35mm film sprocket for a pinhole camera. Start by creating a central cylinder with a radius of 12mm and a height of 3mm, centered on the Z-axis. Around the perimeter of this cylinder, add 16 evenly spaced teeth. Each tooth is formed by a polygon with vertices at [0,0], [0.6,1], [1.1,1], and [1.7,0], which is s...
$fn = 360; union() { translate([0,0,14]) cylinder(h = 3, r1 = 12, r2 = 12, center = true); for (i = [0:16]) { rotate([0,0,i*360/16]) for (j =13.75) { translate([0,12,j]) rotate (-6,0,0) linear_extrude(height = 2.5,center = true, convexity = 10, twist = 0)...
glb/cad_bf22c4c0a751.glb
Create a Rigidbot Build Plate Glass Clamp by starting with a rectangular block 20mm wide, 300mm long, and 5mm high. From this main body, remove a rectangular section from the top to create a slot for the glass; this cutout should be 12mm wide and 302mm long, starting 4mm from the side edge and 2mm from the top surface,...
$fn = 50; glassThickness = 3; rigidbotBig = true; mountHoleDiameter = 3.5; holeSpacing = 128; bridgeWidth = 12; width = 20; height = glassThickness + 2; length = 300; if (!rigidbotBig) { } difference() { cube([width,length,height]); for (y = [(length/2)-holeSpacing, (length/2), (length/2)+holeSpacing]) {...
glb/cad_029db29ff79e.glb
Create a Paintbrush Drying Rack consisting of a rectangular frame with an integrated angled support. Start with a base plate measuring 100mm in length, 90mm in width, and 5mm in thickness. To create the angled support, add a vertical wall of 5mm thickness at the far end of the length. This wall should slope upward from...
$fn=99; frame_xsize = 100; frame_ysize = 90; frame_thickness = 5; brush_thick_end = 8.5; brush_thin_end = 5; brush_angle = 6; num_brushes = 6; brush_offset = 3; bottom_angle_height = 12; show_brush_model = true; brush_embed_offset = 0.75; module frame(show_brushes = false) { module brush() { brush_ov...
glb/cad_f37751cff47d.glb
Create a Shape Lock Chain consisting of repeating interlocking links and clamping rings. Each link is formed by two symmetrical halves. Each half starts with a base body that is a combination of a cylinder with a radius of 2.5mm and a rectangular block of 2.5mm by 5mm by 7mm. At one end of this body, integrate a trun...
t0 = 2.5; rout = 2.5; rin = 1; htrunnion = rout-rin; f = 1; wtotal = 2*t0 + 2*t0*f +2*htrunnion*1; over = 1; h = 2*rout+2*over; $fa=4; $fs=0.2; clr = 0.15; eps = 0.05; nlinks = 3; lhull = t0*2; a = h/2+t0+lhull+h/2; seeds = rands(0,1000,3,81230887); ringcolor = rands(0,1,3,seeds[0]); color1 = rands(0,1,3,seed...
glb/cad_5079a517be34.glb
Create a servo Z probe arm with a total thickness of 4mm. Start with a circular base for the shaft with a radius of 3.5mm (diameter of 7mm). From this base, extend a rectangular arm 30mm in length and 7mm in width. At the end of this arm, create a mounting section for a micro switch consisting of two circular discs wit...
insert_dia1 = 5; insert_rad1 = insert_dia1/2; insert_dia2 = 3.5; insert_rad2 = insert_dia2/2; insert_round_dist = 10; insert_plate_thickness = 3; arm_length = 30; screw_dist = 10; screw_size = 2.5; screw_rad = screw_size/2; outer_ext_arm = 1; outer_ext_screw = 1; wire_hole_dia = 1.5; wire_hole_rad = wire_hole_dia/...
glb/cad_2db37ae2eb20.glb
Create a servo Z probe arm with a total thickness of 4.5mm. Start with a circular base at the origin with a radius of 5.6mm. Extend a rectangular arm from this base along the Y-axis to a total length of 60mm. At the end of the arm, create a mounting area for a micro switch consisting of two overlapping circles with a r...
insert_dia1 = 7.1; insert_rad1 = insert_dia1/2; insert_dia2 = 4.3; insert_rad2 = insert_dia2/2; insert_round_dist = 14.5; insert_plate_thickness = 3; arm_length = 60; screw_dist = 10; screw_size = 2.5+0.3; screw_rad = screw_size/2; outer_ext_arm = 2; outer_ext_screw = 2; wire_hole_dia = 1.5; wire_hole_rad = wire_h...
glb/cad_7ae913ee7962.glb
Create a shower head holder with a main rectangular body measuring 43mm in depth, 33mm in width, and 50mm in height. Within this body, carve out a conical socket starting from the front face, angled at 25 degrees, with a bottom diameter of 18mm and a top diameter of 25mm, extending through the height of the block. On...
h = 50; w = 33; dia_top = 25; dia_bottom = 18; angle = 25; dia_crew1 = 6; dia_crew2 = 10; dist_screw = 5; dist =5; d = 25 + dia_bottom + dist; module hole() { rotate([0,90,0]) union(){ translate([0,0,14]) cylinder(h=30, r=dia_crew1/2, center=true); translate([0,0,15+dist_screw]) cylinder(h=30, r=dia_crew2/2, cen...
glb/cad_fdb3037e9aed.glb
Create a shower head holder with a main body and supporting arms. Start with a rectangular block 48mm deep, 33mm wide, and 50mm high. From this block, remove a conical void to create a socket for the shower head; this socket should be centered along the width, angled at 25 degrees, with a bottom diameter of 18mm and a ...
h = 50; w = 33; dia_top = 25; dia_bottom = 18; angle = 25; dia_crew1 = 6; dia_crew2 = 10; dist_screw = 5; dist =5; d = 25 + dia_bottom + dist; module hole() { rotate([0,90,0]) union(){ translate([0,0,14]) cylinder(h=30, r=dia_crew1/2, center=true); translate([0,0,15+dist_screw]) cylinder(h=30, r=dia_crew2/2, cen...
glb/cad_3fd0f08aaf3e.glb
Create a shower head holder with a main body and supporting arms. Start with a rectangular block 33mm wide, 50mm high, and 48mm deep. At the front face, create a tapered conical hole centered vertically, starting with a diameter of 18mm at the bottom and widening to 25mm at the top, angled 25 degrees relative to the ve...
h = 50; w = 33; dia_top = 25; dia_bottom = 18; angle = 25; dia_crew1 = 6; dia_crew2 = 10; dist_screw = 5; dist =5; d = 25 + dia_bottom + dist; module hole() { rotate([0,90,0]) union(){ translate([0,0,14]) cylinder(h=30, r=dia_crew1/2, center=true); translate([0,0,15+dist_screw]) cylinder(h=30, r=dia_crew2/2, cen...
glb/cad_1d478e5231ea.glb
Create a shower head holder with a main body that is 33mm wide and 50mm high. The core of the holder is a rectangular block from which a tapered conical hole is removed to hold the shower head. This conical void starts with a diameter of 18mm at the bottom and widens to 25mm at the top. The axis of this conical opening...
h = 50; w = 33; dia_top = 25; dia_bottom = 18; angle = 25; dia_crew1 = 6; dia_crew2 = 10; dist_screw = 5; dist =5; d = 25 + dia_bottom + dist; module hole() { rotate([0,90,0]) union(){ translate([0,0,14]) cylinder(h=30, r=dia_crew1/2, center=true); translate([0,0,15+dist_screw]) cylinder(h=30, r=dia_crew2/2, cen...
glb/cad_febefd34f6f9.glb
The provided code is a comprehensive OpenSCAD library for generating parametric fasteners (bolts, nuts, rods, and standoffs) with a built-in database of thread specifications. To make this code functional, you must define the **global parameters** (variables) that the modules rely on. Without these, OpenSCAD will thro...
thread="M10"; sides=6; measure_flat_to_flat="yes"; chamfer=1.0; wall=3.0; knurl_depth=1.0; knurls=30; reverse_threads="no"; object_scale = 1; show_bolt="yes"; bolt_head_shape="standard"; bolt_smooth_length=10.0; bolt_smooth_diameter=0.0; bolt_threaded_length=18.0; bolt_head_diameter=20.0; bolt_head_heigh...
glb/cad_b01b97f39057.glb
Create a CYD enclosure consisting of a front cover and a rear cover. For the front cover, create a rounded rectangular slab 110mm wide, 65mm high, and 16mm thick with a corner radius of 5mm. Subtract a central rectangular cutout 86.5mm by 50.5mm and 5.8mm deep. Within this front piece, add four mounting screw holes w...
includeFrontCover = "Y"; enclosureX = 110.0; enclosureY = 65.0; enclosureFrontZ = 16.0; includeRearCover = "Y"; enclosureRearZ = 5.0; enclosureWallThickness = 1.2; cornerStyle = "R"; enclosureCornerRadius = 5.0; bevelFrontOfEnclosure = "Y"; bevelRearOfEnclosure = "Y"; bevelWidth = 2.0; bevelZ = 2.0; bezelZ = 3; center...
glb/cad_71fb86c48c88.glb
Create a parametric servo arm with a central hub and a single extending arm. First, construct the hub as a cylinder with a height of 4mm and a diameter of 4.5mm. Inside this hub, create a hollow center with a diameter of 2.5mm. Around the inner wall of the hub, add 22 evenly spaced radial teeth. Each tooth should be ...
arm_length = 25; arm_count = 1; SERVO_HEAD_CLEAR = 0.3; hub_type = 2; taper_amount = 3; FUTABA_3F_SPLINE = [ [5.92, 4, 1.1, 2.5], [25, 0.3, 0.7, 0.1] ]; FUTABA_2F_SPLINE = [ [4.5, 4, 1.1, 2.5], [22, 0.25, 0.6, 0.09] ]; FUTABA_1F_SPLINE = [ [4.0, 3.75, 1.1, 2.4], [15, 0.25, 0.6, 0.09] ]; mo...
glb/cad_ed99ba14049a.glb
Create a protective cover for a red dot sight by constructing a composite geometric shell. Start with a central rectangular block measuring 53.4mm in length, 30.4mm in width, and 15mm in height, centered on the origin. Integrate a secondary rectangular base measuring 18mm by 30.4mm by 8mm, positioned to extend the lowe...
inx=51.4; iny=28.4; h=13; translate([-5,(iny/2)-0.3,0])cube([10,0.3,0.5],center=false); translate([-5,iny/-2,0])cube([10,0.3,0.5],center=false); difference(){ union(){ translate([0,0,7.5]) cube([inx+2,iny+2,15],center=true); translate([-1+inx/-2,-15.2,15])cube([18,iny+2,8],center=false); ...
glb/cad_6bd021c29eba.glb
Create a Spoon Stand consisting of two interlocking parts: a vertical stand and a circular base. For the stand, create a main body composed of a 20mm wide by 60mm long by 2mm thick rectangular plate, joined to a 20mm wide by 25mm long by 5mm thick rectangular block at the bottom. On the top surface of this assembly, ...
tall = 60; union(){ difference(){ union($fn=20){ cube([20,tall,2]); cube([20,5,25]); translate([.5,2.5,0]) cylinder(h=25,d=2); translate([19.5,2.5,0]) cylinder(h=25,d=2); } translate([10,tall+2.5,2]) scale([1,1,.25]) sphere(d=22); tr...
glb/cad_56426f1b8075.glb
Create a Tardis police box model. Start with a main rectangular body 24mm wide, 24mm deep, and 40mm high. Add a base plinth 28.8mm square and 4mm high. On top of the main body, place a pyramid-shaped roof that tapers from the 24mm square top to a point. At the center of the roof, add a small cylindrical light fixture w...
H = 40; Ratio =0.6; S = H * Ratio; Lr = S/15; Lh = H/9; Dh = H - S/3.5; Dw = 2 * S/5; Po = (-Dh + 8 * S / 5) / 3; Pr = Dw - (2 * Po); HD = S/3; $fn = 100; intersection() { color([0,0,0.7]) difference() { union() { cube([S,S,H]); translate([S/20,S/20,0]) cube([S-(S/10),S-(S/10),H+(S/15)]); translate([S/10...
glb/cad_47dbc4feaf8d.glb
Create a schoolbag keychain model. Start with a main body that is 35mm high, 30mm long, and 12mm wide. The body should have rounded corners with a radius of 2mm. On the front face, add a flap that is 1.5mm thick, extending from the top down to about 40% of the bag's height. Below this flap, integrate two small rectang...
h_bag = 35; l_bag = 30; w_bag = 12; l_pocket = l_bag/4; r_round = w_bag/6; e_flap = w_bag/8; r_handle = l_bag/5.5; r_handle2 = r_handle/3.5; h_handle = r_handle+r_handle2; w_handle = r_handle2*2; d_handle = 2*(h_handle)/3; h_flap = 40*(h_bag-h_handle-w_bag/2)/100; $fn=100; module support() { cube([w_...
glb/cad_055ea452533d.glb
Create a spoon holder for a chemical tub. Start by creating a flat, ring-shaped base with a height of 2mm. The inner diameter of the ring is 57mm and the outer diameter is 69mm. Attached to the side of this ring, construct a vertical cylindrical sleeve to hold a spoon. The sleeve should have an outer diameter of 37.6m...
NECK_DIAMETER = 57; DEPTH = 150; SPOON_DIAMETER = 36; MAX_SPAN=22; $fa=4; $fs=0.4; difference(){ cylinder(h=2, d=NECK_DIAMETER+6*2); cylinder(h=2, d=NECK_DIAMETER); } neck_edge = NECK_DIAMETER/2+6; translate([neck_edge-2,-6,0]) cube([10,12,2]); translate([neck_edge+6,-6,0]) cube([4,12,15...
glb/cad_d26bafde4056.glb
Create a Herb Pot stand by starting with a circular base 240mm in diameter and 5mm thick. From the center of this base, extend a vertical cylinder pole with a radius of 10mm and a total height of 305mm. Construct three identical plant holders. Each holder consists of a main cylindrical body 80mm tall with a radius of ...
poleHeight = 305; poleRadius = 10; baseHeight = 5; baseRadius = 120; holderHeight = 80; holderRadius = 40; print(); module print(){ stand(); translate([0, 260, 0]) holder(); translate([0, 140, 0]) holder(); translate([100, 200, 0]) rotate([0, 0, 180]) holder(); translate([140, 0, 0]) spacer(holderHeight); trans...
glb/cad_d0d2efe79438.glb
Create a mono adapter for a drawer slide. Start with a central vertical cylinder with a diameter of 7.75mm and a height of 13.1mm. Surround the base of this cylinder with a wider cylindrical body that has a diameter of 20.8mm and a height of 9.4mm. Cut a vertical hole with a diameter of 3.8mm through the center of th...
cyl_diameter = 7.75; hole_diameter = 3.8; body_height = 9.4; body_width = 12.5; outer_diameter = 20.8; spire_height = 13.1; slot_width = 8.25; slot_depth = 0.9; through_cut_diameter = 2.4; through_cut_depth = 4.3; outer_height = 7.7; mystery_rad1 = 1.75; mystery_rad2 = 1.4; drawer_glide(); module drawer_glide() { di...
glb/cad_be5fb0f069f4.glb
Create a Vertical Filament Spool Parts Drawer consisting of a central core, a storage bin, and a guide system. Start with a central cylindrical core with a radius of 32mm (Inner_Spool_Diameter / 2). Surround this with a guide system that features two symmetrical tracks. These tracks are formed by the intersection of a...
Outer_Spool_Diameter = 190; Inner_Spool_Diameter = 64; Inner_Spool_Width = 53; Resolution = 100; Lock_Tolerance = 0.15; enableBin = true; Lid = true; Locks = true; showLocks = true; showLid = true; Bin_Handle = "Curved"; binMText = "M3"; binLengthText = "0"; binTextSize = 8; binTextSize2 = 8; binTextExtrusion = 2; bin...
glb/cad_f6113d5733ee.glb
Create a Front Cover Crank Seal installer tool consisting of a hollowed cylindrical ring. Start by creating a solid outer cylinder with a diameter of 67mm and a height of 11.2mm. From this base, remove a central cylinder with a diameter of 36mm that passes completely through the object from top to bottom. Next, remove ...
$fn=120; crank = 36; seal = 59; thick = 1.2; wall = 4; height = 10; difference() { translate([0,0,0]) cylinder(d=seal+wall*2, h=height+thick); translate([0,0,thick]) cylinder(d=seal, h=height); translate([0,0,0]) cylinder(d=crank, h=height*2); }
glb/cad_32f11a923521.glb
Create a valve spring compressor adapter tool. Start with a central rectangular block measuring 31.5mm wide, 26mm deep, and 34.5mm high. From this main body, remove a central vertical slot that is 6.7mm wide, 26mm deep, and 11.5mm high to create a U-shaped channel. Through the center of the block, create a horizontal...
$fn = 100; armWidth = 6.7; armHeight = 11.5; totalWidth = 25.8; totalDepth = 26; pivotHoleDiameter = 10; shellThickness = 2.6; W = armWidth; H = armHeight; TW = totalWidth; TD = totalDepth; S = TW/2-W/2+.08; D = pivotHoleDiameter; T = shellThickness; A = TW+T*2;...
glb/cad_7902d2deea9b.glb
Create a pills case by starting with a trapezoidal prism centered on the origin. The prism should have a length of 95mm, a height of 9mm, and a cross-section defined by a long base of 62mm and a short base of 45mm. From this main volume, remove a smaller concentric trapezoidal prism that is 95mm long with a height of 6...
B = 62; b = 45; h = 9; B2 = 54; b2 = 42; h2 = 6.2; $fn = 100; difference(){ difference(){ rotate([90, 0, 0]) linear_extrude(height = 95, center = true) polygon(points = [ [-B/2, -h/2], [-b/2, h/2], [b/2, h/2], [B/2, -h/2] ]); translate([0,5,0]) rotate([90, 0, 0]) linear_extrude(height2 = 95, center = true) ...
glb/cad_1e738b87f598.glb
Create a fan wall for a 40mm fan. Start with a base plate that is 42mm wide, 43mm deep, and 3mm thick. On the top surface of this plate, center a large circular hole with a radius of 18mm and a depth of 4mm to allow the fan to pass through. Add four small mounting holes for screws, each with a radius of 1.5mm and a d...
$fn = 100; union(){ difference(){ difference(){ difference(){ difference(){ difference(){ translate([-1,0,0]) cube([42,3,43], center=false); translate([3,-0.5,6]) rotate([-90,0,0]) cylinder(r=1.5,h=4); } translate([37,-0.5,6]) rotate([-90,0,0]) cylinder(r=1.5,h=4); } translate([37,-0...
glb/cad_9a579c6cbef9.glb
Create a Device Stand based on a primary width dimension of 100mm. Start by constructing a rectangular base block that is 100mm wide, 200mm long, and 33.33mm high. From this base, remove a central horizontal cylinder with a radius of 33.33mm and a length of 102mm, centered along the width and positioned at a height of ...
SmartPhone = 40; Tablet = 100; print(Tablet); module print(width){ base(width); translate([width+10, 0, width/2]) rotate([0, 90, 0]) stand(width); } module complete(width){ base(width); translate([width/4, width*.8, 0]) rotate([60, 0, 0]) stand(width); translate([width/4, width*1.33, 0]) rotate([90, 0, 0]) stan...
glb/cad_6f17210911e7.glb
Create a set of holiday bowls and lids. To make a bowl, start with a low-resolution half-sphere (12 facets) with a radius of 50mm. Hollow out the inside by removing a centered polyhedron and a cube of size 100mm. For the first bowl variant, add four support columns at the base. For the second variant, add eight support...
bowl_1(); module bowl_1() { union() { bowl_only(); scale(1/.75) support(); } } module bowl_2() { union() { bowl_only(); scale(1/.75) support_2(); } } module bowl_only() { translate([0,0,49]) rotate([0,90,0]) difference() { union() { ...
glb/cad_b10152217f55.glb
Create a parametric angle stop jig. Start by creating a right-triangular prism with a base length of 60mm and a height of 3.95mm (calculated as 60 * tan(4.5°)), extruded to a thickness of 20mm. To this base, add two rectangular blocks to create a lip and a registration fence. The first block is a rectangular prism meas...
main(); b = 60; alpha = 4.5; lip = "b"; s = "d"; standoff = 4.7625; module main() { a = b * tan(alpha); linear_extrude(20) { polygon([[0, 0], [b, 0], [b, a]] ); } if (s == "u") { angle_fence(a, 0); } else { angle_fence(a, -10); } } module angle_fence(a, z_off) { ...
glb/cad_b280bdef27d9.glb
Create a parametric keycap puller with a total thickness of 6mm. Start by creating a circular handle with an outer diameter of 28mm and a concentric inner hole with a diameter of 20mm, resulting in a ring wall thickness of 4mm. Extending from one side of this ring, create two parallel tines. Each tine should be 1mm t...
use <write/Write.scad> std_key_width=18; puller_thickness=6; handle_dia=28; handle_thickness=8; tine_length=18; tine_thickness=1; catch_thickness=.8; module puller(z, tine_th, tine_ln, catch_ln, catch_wd, key_wd) { difference() { cube([(tine_th*2)+key_wd, tine_ln, z]); translate([tine_th, 0,0]) { cube([key_wd...
glb/cad_24928fdbea95.glb
Create a Substyle Door Lock consisting of a sliding rack, a circular gear, a handwheel, and a mounting bracket. First, create a linear rack 200mm long, 20mm high, and 20mm wide with a gear modulus of 10. Include three 5mm diameter holes spaced along its length for mounting. Next, create a spur gear with 10 teeth, a m...
use<../../nohscadlib/round.scad> use <gears/gears.scad> l= 200; n= 10; mod= 10; h = 20; wd = 5; b=20; pa=20; loecher= 3; schraube = "M5"; kopf= "PH"; achse = 5; helix_angle = 0; optimized = true; zahnkranzd = 2*mod+mod*n; % translate([5.5*mod,(mod*n)/2+1.2*wd,0]) circle(d=zahnkranzd); riegel(l= l, mod= n, h = h, wd = ...
glb/cad_fb76a880fa38.glb
Create a Loose Screws Box consisting of a main container and a separate lid. Construct the container as a rectangular hollow shell with outer dimensions of 57mm in width (X), 27mm in depth (Y), and 75mm in height (Z). The walls and the floor of the container must be 1mm thick. Create the lid as a flat rectangular pl...
$fn=250; dt1=0.01; dt2=dt1*2; prt_delta=0.2; edge=4; wall=1.0; box_x=57.0; box_y=27.0; box_z=75.0; top_xrim=1; top_yrim=1; rim=2; box(); lid(); module box(){ difference(){ cube([box_x, box_y, box_z]); translate([wall, wall, wall]) cube([box_x-2*wall, box_y-2*wall, box_z+dt1]); ...
glb/cad_3744677e0923.glb
Create a nested geometric sculpture titled "Ball in a Ball in a Ball." Start by constructing a base shell consisting of a sphere with a radius of 100mm. From this sphere, remove three identical cylinders, each with a radius of 60mm, that pass through the center along the X, Y, and Z axes. Additionally, remove a concent...
$fn=100; ball(); scale([0.8,0.8,0.8]) ball(); scale([0.64,0.64,0.64]) ball(); scale([0.512,0.512,0.512]) ball(); scale([0.4096,0.4096,0.4096]) ball(); module ball() { difference() { sphere(100); translate([0,0,-100]) cylinder(h=200, r=60); rotate([90,0,0])translate([0,0,-100]) cylinder(h=200, r=60); rotate([0,90,0])t...
glb/cad_b7bd38683174.glb
Create a LairdWarp Rollercoaster base plate. The base is a rectangular block measuring 63mm by 189mm (3 grid units by 9 grid units, where each grid unit is 21mm) with a height of 10mm. Within this block, create a grid of vertical holes with a radius of 2.5mm. These holes are centered at 10.5mm offsets from the edges ...
use <utils/build_plate.scad> use <MCAD/regular_shapes.scad> $fn=32*1; part = 1000; ballDiameter = 12.7; railDiameter = 1.8; railDiameterB = 5; railDiameterV = 5; trackDiameter = 15.875; ear = 1; gap = 0.3; gridSpacing = 21; gridX = 3; gridY = 9; gridH = 10; barLen = 2; vBarHeight = 200; bumpHeight = 1; ...
glb/cad_8e02fba7b516.glb
Create a Brushbot battery housing by constructing two identical vertical cylinders, each with an outer diameter of 18mm and a height of 10mm, positioned side-by-side so they are tangent to one another. Inside each of these cylinders, center a smaller vertical cylindrical hole with a diameter of 14.2mm and a height of 7...
difference() { union() { translate([25,4,-5]) cylinder(10,9,9,$fn=130); translate([37,4,-5]) cylinder(10,9,9,$fn=130); } translate([25,4,-2]) cylinder(70,7.1,7.1,$fn=130); translate([37,4,-2]) cylinder(70,7.1,7.1,$fn=130); translate([25,4,-10]) cylinder(70,1.5,1.5,$fn=130); translate([37,4,-10]) cylinder(70,1.5,...
glb/cad_501c74ce5e88.glb
Create a Brushbot chassis by starting with a rectangular base platform measuring 76mm in length, 50mm in width, and 3mm in height. On the bottom surface, add two side walls that are 15mm high and 3mm thick, positioned at the far left and right edges of the platform. In the center of the platform, create four vertical ...
difference() { union() { translate([-7,10,-5]) cube([76,3,50]); translate([-7,-5,-5]) cube([76,15,3]); translate([-7,-5,-5]) cube([3,15,50]); translate([66,-5,-5]) cube([3,15,50]); translate([12,4,-3]) cylinder(30,7,7,$fn=130); translate([50,4,-3]) cylinder(30,7,7,$fn=130); translate([25,4,-5]) cylinder(50,7,7,...
glb/cad_d3abe4a0cd2e.glb
Create a Brushbot platform by starting with a rectangular base frame. Construct the main body as a union of two rectangular prisms: a large upper plate measuring 82mm in length, 3mm in thickness, and 56mm in width, and a smaller lower base plate measuring 82mm in length, 5mm in thickness, and 3mm in width, centered alo...
difference() { union() { translate([-7,10,-5]) cube([82,3,56]); translate([-7,5,-5]) cube([82,5,3]); translate([-7,5,-5]) cube([3,5,56]); translate([72,5,-5]) cube([3,5,56]); } rotate([90,0,0]) translate([5,4,-30]) cylinder(50,2.5,2.5,$fn=130); rotate([90,0,0]) translate([62,4,-30]) cylinder(50,2.5,2.5,$fn=130)...
glb/cad_98e318c19cdd.glb
Create a double-pointed knitting needle consisting of a central shaft and two conical tips. The central shaft is a cylinder with a length of 150mm and a diameter of 15mm. At each end of this shaft, attach a conical tip that transitions from the 15mm diameter of the shaft down to a point with a radius of 1/3mm over a le...
gauge= 15; length = 150; needle = gauge*2.5; res = gauge*5; difference () { union(){ rotate([0,90,0]) cylinder (r1=1/3, r2=gauge/2, h= needle,$fn=res); translate ([needle,0,0]) rotate ([0,90,0]) cylinder (r1=gauge/2, r2= gauge/2, h= length, $fn=res); translate([length+needle+needle,0,0])rotate([0,270,...
glb/cad_7f86450aec55.glb
Create a custom filament support consisting of two concentric cylinders. First, create a wide, flat circular base with a radius of 27mm and a height of 3mm. Centered on top of this base, add a second, narrower cylinder with a radius of 10mm and a height of 15mm. Ensure both parts are perfectly aligned along their centr...
$fn=100; union() { cylinder(r=54/2,h=3); translate([0,0,0]) cylinder(r=20/2,h=15); }
glb/cad_774755360da6.glb
Create a custom filament spool wall support. Start with a main rectangular base measuring 119mm in length, 30mm in width, and 15mm in height. At one end of this base, attach a cylinder with a radius of 15mm and a height of 15mm. Add a thin rectangular plate measuring 130mm by 15mm by 6mm, positioned to extend from the ...
$fn = 100; include <write.scad> difference(){ union() { translate([0,15,0]) cylinder(r=15,h=15); translate([-116,0,0]) cube([119,30,15]); rotate([90,0,90]) translate([-50,0,-116]) cube([130,15,6]); rotate([0,90,0]) translate([-30,7.5,-116]) cube([15,15,8]); rotate([90,180,-22]) translate([3...
glb/cad_da84992433f7.glb
Create a vintage car radio potentiometer knob by revolving a specific profile around a central axis to create a circular body. The profile starts at the origin and extends to a height of 8.5mm, with a width of 18mm at its widest point. The outer silhouette of this profile is defined by a series of points: starting at (...
$fn = 100; rad = 3; module knob_splice() { difference() { polygon([ [ 0, 0 ], [ 0, 6.5 ], [ 6, 7 ], [ 10, 8 ], [ 18, 8.5 ], [ 18, 0 ] ]); translate([ 18 - rad, 8.5 - rad ]) difference() { translate([ rad / 2, 0, 0 ]) square([ rad / 2, rad ]); translate([ rad / 2, 0, 0 ]) scale([ 0.5, 1, 1 ]) circ...
glb/cad_96a4d511e041.glb
Create a two-part protective case for a Waveshare CM4-DUAL-ETH-MINI router board. Construct the bottom section as a rectangular base with outer dimensions of 72mm by 63mm and a height of 19mm. The base features a hollow interior with a wall thickness of 4mm. At each of the four corners, integrate a cylindrical pillar...
$fn = 50; render_case_top = true; render_case_bottom = true; render_board_dummy = false; enable_antenna_hole = true; enable_wall_mounts = true; top_height = 18; bottom_height = 19; bottom_wall_thickness = 4; case_width_inner = 55+11; case_length_inner = 68+6; screw_inset_depth = 4.5; nut_inset_depth = 3.5; stan...
glb/cad_28ba9329d50e.glb
Create a Stepper Motor Wheel by constructing a series of stacked coaxial cylinders. Start with a central vertical hole 5mm in diameter that runs through the entire height of the object. Build the main body as a composite of cylinders: a base cylinder 20mm in diameter and 0.8mm high, followed by a middle section 15mm in...
mr=5; screw=3; idi=15; odi=20; iw=5; ow=2; marker=1; $fs = 0.05; difference(){ difference(){ difference(){ union(){ cylinder(ow*0.4,odi/2,odi/2); translate([0,0,ow*0.4]) cylinder(ow*0.6,odi/2,idi/2); translate([0,0,ow]) cylinder(iw,idi/2,idi/2); translate([0,0,ow+iw])...
glb/cad_6216f1e6fcd3.glb
Create a customisable phone case. Start by constructing the main body as a hollowed-out rectangular shell with rounded corners, defined by a specific width, length, and height. The shell should have a baseplate thickness and a consistent wall thickness. For the outer walls, you can choose between straight or curved pr...
OVERTHICKNESS = 4; H_OVERTHICKNESS = OVERTHICKNESS*WALL_THICKNESS; ABS_LENGTH = LENGTH + 2*WALL_THICKNESS; ABS_WIDTH = WIDTH + 2*WALL_THICKNESS; ABS_HEIGHT = HEIGHT + BASEPLATE_THICKNESS + HOLDER_HEIGHT; OUTER_CORNER_RADIUS = CORNER_RADIUS+WALL_THICKNESS; function isArray(v) = len(v) != undef; e = .01; baseplates = BA...
glb/cad_ae165b0623fe.glb
Create a 35mm film intermittent sprocket. The main body is composed of a central cylinder 35mm high with a radius of 10mm, flanked by two wider cylindrical sections: one 7mm high with a 12mm radius positioned at the top, and another 7mm high with a 12mm radius at the bottom. Connecting these outer discs to the center a...
translate([-14,-14,17.5]) difference() { union() { cylinder(h = 35, r1 = 10, r2 = 10, center = true); translate([0,0,14]) cylinder(h = 7, r1 = 12, r2 = 12, center = true); translate([0,0,8]) cylinder(h = 5, r1 = 10, r2 = 12, center = true); translate([0,0,-10]) cylinder(h = 5, r1 = 12, r2 = 10, center = ...
glb/cad_1037c353138b.glb
Create a 2x4 construction brick. Start with a main rectangular body measuring 32mm in length, 16mm in width, and 9.6mm in height. Hollow out the center of this body by removing a smaller rectangular block measuring 29.6mm by 13.6mm with a height of 9.6mm, leaving a wall thickness of 1.2mm on the sides. On the top surf...
$fn=100; Lego_Maker (2,4); module Lego_Maker (width, length) { unit_height = 9.6; unit_width = 8; nub_diameter = 4.8; nub_height = 1.8; play = 0.1; support_diameter_inner = 4.8; support_diameter_outer = 6.5; brick_thickness_verticle = 1.2; brick_thickness_horizontal = 1; union(){ union(){ difference(){ c...
glb/cad_04adf69ec29f.glb
Create an auto-refill water fountain for a turtle consisting of a shallow base plate and a reservoir wall. Start by creating a flat base plate that is 120mm long, 80mm wide, and 0.6mm thick, with rounded corners defined by 15mm radius arcs. On one end of the base, construct a vertical reservoir wall 18mm high. This w...
rad = 30; rad2 = 28.0; heit = 8; thick = 2.4; $fn = 60; module bottleRing() { difference() { cylinder(r = rad/2+thick,h=heit); cylinder(r=rad/2,h=heit+.2); } for(i=[0:2]) { translate([cos(120*i)*rad2/2,sin(120*i)*rad2/2,heit-4.2]) rotate(i*120+5,[0,0,1]) rotate(45,[0,1,0]) cube([1.5,3,1.5]); } } modul...
glb/cad_f6957c7bdbba.glb
Create a kick drum trigger by constructing a base plate and adding two vertical mounting sections. Start with a rectangular base measuring 50mm in length, 15mm in width, and 5mm in height. At the left end of this base, attach a vertical cylinder with a radius of 7.5mm and a height of 37mm. On the right side of the base...
module kickRing() { difference() { cylinder(r=600/2,h=40,$fn=400); cylinder(r=580/2,h=40,$fn=400); }} module trigger() { translate([35,-15,0]) cube([40,30,5]); difference() { translate([0,-7.5,0]) cube([50,15,5]); translate([30,-1,0]) cube([1,2,5]); } cylinder(h=37,r=15/2,$fn=60); difference() { translate...
glb/cad_1aea96c40b76.glb
Create an SSD Hot Swap tray designed to adapt a 2.5-inch drive to a 3.5-inch bay. Construct a main U-shaped chassis with a total length of 146mm, a width of 101mm, and a height of 13.4mm. The walls of this chassis should be 4mm thick. The base consists of a rectangular frame with a central cutout. The outer dimension...
l1 = 100.0; w1 = 70.5; h1 = 7.0; l2 = 146; w2 = 101; h2 = 13.4; wid = 4; edge = 10; module drive() { cube([l1,w1,h1]); } module drive2() { cube([l2,w2,h2]); } mirror([0,1,0]) { difference() { union(){ cube([l2,wid,h2]); translate([0,w1,0]) cube([l1,1.6,h2]); translate([0,w2-wid,0]) cube([l2,wid,h2]); cube([...
glb/cad_b0321decbde7.glb
Create a Makerbot Mini Spool Holder consisting of a central cylindrical axis and a rectangular mounting base. Start by constructing a cylinder with a diameter of 30mm and a length of 110mm. At one end of this cylinder, create a circular endstop by forming a hull between two cylinders, each with a radius of 15mm and a h...
diameter = 30; length = 110; mini_spool_holder(); module mini_spool_holder() { rotate([0,-90,0]) { union() { translate([0,0,2.5]) { cube([38.5,90,3.125]); } translate([0,0,-3.125]) { cube([38.5,90,3.125]); } cube([38.5,18.5,2.5]); translate([(diameter/2),90-(diameter/2),5.5]) ...
glb/cad_f25de8f77f4f.glb
Create an adjustable Y endstop holder designed for 10mm threaded rods. The model consists of two primary symmetrical mounting arms connected by a central brace. For each arm, create a cylindrical hook structure to hold the rod. The outer diameter of the hook is 16mm (radius 8mm) and the inner hole is 10mm (radius 5mm)...
$fn = 32; rotate([90,0,0]) union() { union() { difference() { translate([31,12,-2]) rotate([90,0,0]) cylinder(8,8,8); translate([31,13,-2]) rotate([90,0,0]) cylinder(20,5,5); translate([33,13,0]) rotate([90,-30,0]) cube([6,6,20]); translate([29,-7,0]) rotate([90,-30,180]) cube([6,6,20]); translate([33,0,0]) rotat...
glb/cad_1c9a01593ed9.glb
Create an adjustable Y endstop holder designed for 10mm threaded rods. The model consists of a main rectangular base with a length of 74mm, a width of 11mm, and a height of 8mm. At one end of the base, create a mounting section that features a series of holes for frame attachment. This includes a central slot and sev...
$fn = 32; rotate([90,0,0]) union() { union() { difference() { translate([31,12,-2]) rotate([90,0,0]) cylinder(8,8,8); translate([31,13,-2]) rotate([90,0,0]) cylinder(20,5,5); translate([33,13,0]) rotate([90,-30,0]) cube([6,6,20]); translate([29,-7,0]) rotate([90,-30,180]) cube([6,6,20]); translate([33,0,0]) rotat...
glb/cad_448e17b5f8fe.glb
Create a Canning Jar Sifter Lid for a wide-mouth jar. Start by constructing a wide-mouth canning jar cap base. From the top surface of this cap, remove a central circular hole with a radius of 3mm. Additionally, create eight identical radial slots spaced every 45 degrees around the center. Each slot should be formed by...
include <canning_jar_lids.scad>; module sifter(rad) { max_slot_width = 6; difference() { cap(rad); translate([0, 0, -1]) cylinder(h=5, r=max_slot_width/2); for(i = [0:45:360-45]) rotate([0, 0, i]) { hull() { translate([max_slot_width * 3/2, 0, -1]) cylinder(h=5, r=max_slot_width / 6); transla...
glb/cad_37f81cfb8846.glb
Create a parametric angled funnel with a wall thickness of 2mm. Start by constructing the main funnel body as a hollow cone with a height of 70mm, tapering from a top radius of 75mm down to a bottom radius of 22.5mm. At the base of this cone, attach a cylindrical spout with an outer radius of 22.5mm and an inner radi...
$fn=200; angle=28.5; spout=45/2; top=150/2; plate=62/2; fheight=70; jheight=20; sheight=60; pheight=3; wall=2; module funnel() { difference() { cylinder(fheight, spout, top); cylinder(fheight, spout-wall, top-wall); } } module xsection() { difference() { circle(spout); cir...
glb/cad_9be245c7f321.glb
Create a flashlight stand consisting of a rectangular base and two semi-cylindrical supports. Start with a central rectangular base measuring 22mm wide, 68mm long, and 20mm high. At each end of the base, centered along the length, create a support bracket. Each bracket is formed by a cylinder with a height of 9mm and...
WF501B_Stand(); module WF501B_Stand() { D1 = 25.5; D2 = 25.5; D3 = 32; L1 = 59; L2 = 4; L3 = 9; L4 = 22; T1 = 3; E1 = 1.01; FN = 120; BH = ((D3/2)+L2) - (D1/2 + T1/2); union() { translate([0,-(L1+L3)/2,BH/2-((D3/2)+L2)]) cube([L4, L1+L3, BH], center = true); translate([0,-L3/2,0]) rotate([...
glb/cad_f915af760e4c.glb
Create a Kossel Mini Top Vertex Idler Tensioner. Start with a base vertex shape that has an idler offset of 3mm and an idler space of 12.5mm. Subtract a horizontal cylinder with a radius of 1.5mm and a length of 40mm, centered at coordinates [0, 44, 0] and rotated 90 degrees on the X-axis, to create a passage for an M3...
include <configuration.scad>; use <vertex.scad>; nut_width=5.5; nut_thickness=2.7; $fn = 24; module frame_top() { difference() { vertex(extrusion, idler_offset=3, idler_space=12.5); translate([0, 44, 0]) rotate([90, 0, 0]) # cylinder(r=m3_radius, h=40); } translate([0,0,7.5]) difference() { ...
glb/cad_51d2b632080f.glb
Create a 3D lightning bolt by extruding a specific 2D polygon to a height of 2mm. The polygon is defined by the following vertices in a 2D plane: start at (-5, 0), then move to (15, 40), (5, 55), (20, 75), (0, 90), (-15, 55), and finally (2, 36), closing the shape back to the start. Center the resulting extrusion along...
translate(v=[0,-45,1]) { linear_extrude( height=2, center=true) polygon( points = [[-5,0], [15,40], [5, 55], [20, 75], [0, 90], [-15, 55 ], [2, 36]], paths=[[0,1,2,3,4,5,6]] ); }
glb/cad_41fa7f4b8fc1.glb
Create a cubicle wall coat hanger with a uniform thickness of 3mm and a total width of 20mm. Start by forming a base rectangular arm that is 22mm long and 3mm thick. From the end of this arm, extend a second section perpendicular to the first, creating a latch that is 40mm long (twice the thickness of the base arm plus...
hook_width = 20; hook_thick = 3; hook_top = 22; hook_latch = 20; hook_angle = 45; hook_tongue = 40; module coathook(hookwidth, hookthick, hooktop, hooklatch, hookangle, hooktongue) { rotate ([90,0,0]) union () { cube ([hooktop+hookthick, hookwidth, hookthick]); rotate ([0,90,0]) cube ([hooklatch, hookwi...
glb/cad_992c3fa70207.glb
Create a Piggy Bank Plug by constructing a layered oval geometry. Start with a base ovaloid shape created by scaling a cylinder by a factor of 2 along the Y-axis; this base should have a height of 5mm and a radius of 22.25mm. Directly on top of this base, add a middle ring (the groove) with a height of 3mm and a radius...
$fn=180; oval_long=44.5; oval_wide=22.23; plug_height=5; groove_width=3; groove_depth=3; slot_width=4 ; slot_length=39; module top_oval() { scale (v=[2,1,1]) cylinder(h = plug_height, r=(oval_long/2)); } module bottom_oval() { scale (v=[2,1,1]) cylinder(h = plug_height, r1=(oval_long/2)-1, r2=(oval_long/2)-2.5); } ...
glb/cad_eea30a46c63b.glb
Create a Piggy Bank Plug by constructing a layered oval geometry. Start with a base ovaloid shape created by scaling a cylinder by a factor of 2 along the Y-axis; this base should have a radius of 22.25mm and a height of 5mm. Directly on top of this, add a middle groove layer that is 3mm high, using the same 2:1 Y-axis...
$fn=180; oval_long=44.5; oval_wide=22.23; plug_height=5; groove_width=3; groove_depth=3; slot_width=4 ; slot_length=39; module top_oval() { scale (v=[2,1,1]) cylinder(h = plug_height, r=(oval_long/2)); } module bottom_oval() { scale (v=[2,1,1]) cylinder(h = plug_height, r1=(oval_long/2)-1, r2=(oval_long/2)-2.5); } ...
glb/cad_5a2171eb16e6.glb
Create an IO shield for an MSI H81M-P33 motherboard. Start with a rectangular base plate measuring 163mm wide by 48mm high with a thickness of 3.5mm. Hollow out the center of this plate by removing a rectangular section of 156mm by 41mm, leaving a thin outer rim. Within this frame, create several rectangular cutouts t...
MESH=1; TESTHEIGHT=0; module cutouts() { translate([-75.5,-19]) { square([14.23,28.43],false); translate([15.35,0]) square([15.28,16.17],false); translate([31.65,0]) square([15.28,16.17],false); translate([48.56,0]) square([37.81,9.63],false); translate([89.11,0]) square([3...
glb/cad_8f90e0ac87d0.glb
Create a door handle clip for notes. Start by constructing a hollow cylinder with an outer radius of 12mm and an inner radius of 10mm, with a total height of 20mm. Cut a vertical slot through the cylinder to create a C-shaped opening, and remove a large rectangular section from the side of the cylinder to leave a flat,...
handle_diameter = 20; logo_image_file = "wi1logo.dat"; radius = handle_diameter / 2; rotate([0,-90,0]) union() { translate([0,-2.25,radius+1]) cube(size = [20,2,20]); translate([1,-2.2,radius+3]) rotate([90,0,0]) scale([0.4, 0.4, 1]) surface(file = logo_image_file, invert = false); translate([0,0.25,radius+1]) ...
glb/cad_04cf466653db.glb
Create a Polargraph Gondola by starting with a cylinder that has a height of 20mm, a bottom radius of 14.5mm, and a top radius of 14mm. From this main body, remove a square prism centered on the vertical axis with a side length of approximately 17mm (calculated as the square root of 2 multiplied by 12), extending throu...
difference() { cylinder(r1=14.5,r2=14,h=20); rotate([0,0,45])translate([-sqrt(2)*12/2,-sqrt(2)*12/2,0])cube([sqrt(2)*12,sqrt(2)*12,20]); translate([0,20,3.5])rotate([90,0,0])cylinder(r=1.5,h=15,$fn=20); } difference() { translate([-4.5,11,0])cube([9,9,7]); translate([-3.5,14,1])cube([7,5,7]); translate([0,20,3.5])ro...
glb/cad_42b4a786b637.glb
Create a Polargraph Gondola by starting with a base plate that is 4mm thick. At the center of this plate, create a ring with an outer radius of 25mm and an inner hole with a radius of 19mm. Position two smaller circular pillars on opposite sides of the central ring; each pillar should have an outer radius of 8mm and a ...
difference(){ cylinder(r=25,h=4); cylinder(r=19,h=4); } translate([21,21,0])difference(){ cylinder(r=8,h=4); cylinder(r=5,h=4); } mirror([0,1,0])translate([21,21,0])difference(){ cylinder(r=8,h=4); cylinder(r=5,h=4); } difference(){ translate([-49,-18,0])cube([33,36,4]); cylinder(r=19,h=4); } difference(...
glb/cad_7e26bf208f38.glb
Create a Polargraph Gondola by constructing a composite cylindrical shape. Start with a central cylinder that has a radius of 20mm and a height of 15mm. Attach a wider, shorter cylinder to the base of this central piece, with a radius of 30mm and a height of 4mm. Finally, carve a vertical hole through the center of the...
difference(){ union(){ cylinder(r=20,h=15); cylinder(r=30,h=4); } cylinder(r=18.5,h=20); }
glb/cad_c6a83fa394b6.glb