Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create two parametric coin storage tubes and two matching caps. For the tubes, use a coin diameter of 23.25mm and a coin height of 2.33mm. Each tube is a hollow cylinder with an outer radius of 13.65mm and a total height of 64.45mm. The walls and the bottom base are 2mm thick. The inner cavity has a radius of 13.65mm...
coin_type = 0; number_of_coins = 25; number_of_tubes = 2; generate_tube = 1; generate_cap = 1; tube_wall = 2; clearance = 0.4; fudge_factor = 0.975; coins = [ ["1 Euro", 23.25, 2.33], ["2 Euro", 25.75, 2.20], ["50 Euro cents", 24.25, 2.38], ["20 Euro cents"...
glb/cad_d3691c6a5c38.glb
Create a BathCap Sink Reducer by constructing a thick, hollowed-out disc. Start with a main outer cylinder that has a diameter of 55mm and a height of 8mm. Remove a concentric inner cylinder from the top to create a ring-shaped rim; this inner cutout should have a diameter of 41mm and a depth of 7mm, leaving a 1mm thic...
diameter=43.5; depth=8; hole=17; support=1; supportWidth=0.41; $fn=100; if (support==1) { render() difference() { cylinder(h=depth-1.2, r=diameter/2+5.5); cylinder(h=depth-1.2, r=diameter/2+5.5-supportWidth); } } render() difference() { difference() { cylinder(h=depth, r=diameter/2+6); ...
glb/cad_5c0d9b21edc7.glb
Create a phone screen mould holder consisting of a base plate and several vertical support walls. Start with a base plate that is 5mm thick, 180mm long, and 100mm wide. At each of the four corners of the base, create a nut trap: a cylindrical cutout with a diameter of 16mm and a height of 3.5mm, containing a hexagonal ...
lcd_h = 1.5; touch_h = 3; screw_hole_d = 4.2; nut_size = 7; nut_height = 3.5; base_thick = 5; base_height = 5; nut_trap_dia = 16; plate_screw_bore_dia = 10; plate_screw_hole_dia = 4.5; plate_screw_cyl_dia = plate_screw_bore_dia + 4; $fn = 30; print_base(base_height, 180, 100); module holder_hole(h, wi, of, a1) { ...
glb/cad_4830a71d3ac0.glb
Create a hollow circular cylinder with an outer diameter of 38.64mm and a total height of 30mm. To form the interior cavity, remove a smaller concentric cylinder from the center with a diameter of 34.64mm and a height of 28.5mm. Position this inner cutout so that it starts 2mm from the bottom base, leaving a solid floo...
difference(){ cylinder(h=30,r=10*sqrt(3)+2,$fn=300); translate([0,0,2]) cylinder(h=28.5,r=10*sqrt(3),$fn=300); }
glb/cad_217c9e19a9e1.glb
Create a hollow elliptical cylinder with a height of 30mm. The outer wall should be an ellipse with a major axis of 60mm along the X-axis and a minor axis of 22mm along the Y-axis. Create a matching elliptical hole through the center to leave a wall thickness of 2mm. This inner void should have a major axis of 54mm and...
scale([3,1,1]) difference(){ cylinder(h=30,r=10+2,$fn=300); translate([0,0,2]) cylinder(h=28.5,r=10,$fn=300); }
glb/cad_b1291962cf12.glb
Create a hollow square prism with an outer height of 30mm. The outer boundary is a square prism with a side length of approximately 43.3mm (calculated as $2 \times 10\sqrt{3\pi} + 2$ for the radius of the bounding cylinder, resulting in a square footprint). To create the interior cavity, remove a smaller square prism f...
difference(){ cylinder(h=30,r=10*sqrt(3*PI)+2,$fn=4); translate([0,0,2]) cylinder(h=28.5,r=10*sqrt(3*PI),$fn=4); }
glb/cad_87745e9844df.glb
Create a hollow triangular prism with a height of 30mm. The outer shell should be an equilateral triangular prism with a radius of approximately 22.3mm from the center to each vertex. To create the interior cavity, remove a smaller equilateral triangular prism from the center, starting 2mm from the base and extending t...
difference(){ cylinder(h=30,r=20*sqrt(PI)/sqrt(sqrt(3))+2,$fn=3); translate([0,0,2]) cylinder(h=28.5,r=20*sqrt(PI)/sqrt(sqrt(3)),$fn=3); }
glb/cad_d656b8dbb65f.glb
Create a rod cutting jig with a total width of 27.9mm and a height of 16mm. The base is a rectangular slab 2.5mm thick. On top of this base, center a raised shelf that is 8.6mm wide and runs the length of the jig. At a distance of 27mm from the start, place a vertical cutting wall that is 9mm wide (consisting of two ...
CutLen = 30; Wid = 27.9; Ht = 16; Base_Ht = 2.5; Wall_Wid = 3; Blade_Wid = 1.5; Cyl_OD = 3.6; Mnt_Hole_OD = 4.7; Mnt_Hole_Res = 24; Mnt_Hole_X_Offset = 15; Mnt_Hole_Y_Offset = 4.85; Mnt_ScrewHead_OD = 7.5; Weld_OD = 3.5; Wall_Tot_Wid = (Wall_Wid * 2) + Blade_Wid; Cut_Shelf_Wid = Cyl_OD + 2.5 + 2.5; Cut_Shelf_Y_Offse...
glb/cad_d26a20ccbf29.glb
Create a rod cutting jig with a total width of 27.9mm and a height of 16mm. Start with a rectangular base 2.5mm thick and a total length of 204mm (calculated as the cut length of 190.5mm plus the blade width of 1.5mm and an additional 12mm). Along the center of the base, create a raised shelf 10.5mm high and 10.5mm w...
CutLen = 190.5; Wid = 27.9; Ht = 16; Base_Ht = 2.5; Wall_Wid = 3; Blade_Wid = 1.5; Cyl_OD = 5.5; Mnt_Hole_OD = 4.7; Mnt_Hole_Res = 24; Mnt_Hole_X_Offset = 15; Mnt_Hole_Y_Offset = 4.85; Mnt_ScrewHead_OD = 7.5; Weld_OD = 3.5; Wall_Tot_Wid = (Wall_Wid * 2) + Blade_Wid; Cut_Shelf_Wid = Cyl_OD + 2.5 + 2.5; Cut_Shelf_Y_Of...
glb/cad_87f5a8e9a8cf.glb
Create a toy train track section consisting of a base with rails and connecting ends. First, create a repeating straight track unit. The base is a rectangular block 25.6mm wide, 49.6mm long, and 6mm high. From this base, remove two beveled sections: one at the near end starting at x-6, y-27, z2, rotated 25 degrees up...
$fn = 30; module Straight() { union() { difference() { translate([-12.8, -24.8, 0.0]) cube([25.6, 49.6, 6.0]); translate([-6, -27.0, 2.0]) rotate([25.0, 0.0, 0.0]) cube([12.0, 10.0, 3.0]); translate([-6, 18.4, 6.0]) rotate([-25.0, 0.0, 0.0]) cube([12.0, 10.0, 3.0]); }...
glb/cad_f92094412ade.glb
Create a Tape Smoother by combining a handle and a smoothing blade. Start with a handle consisting of a rectangular prism 5mm wide, 45mm long, and 3mm high, centered on the X and Y axes. Attach a cylinder to the end of this handle with a radius of 22.5mm and a height of 3mm, centered at X=27.5, Y=0, and Z=1.5. Add a th...
difference(){ union(){ translate([30,0,1.5]) cube([5,45,3], center= true); translate([27.5,0,1.5]) cylinder(3,22.5,22.5, center= true); translate([20,0,0]) rotate([0,-90,0]) cylinder(60,5,5); } union(){ translate([30,0,3.5]) rotate([0,30,0]) cube([10,45,3], center= true); translate([42,0,2]) cube([20,45,5],...
glb/cad_6e9318ede91e.glb
Create a Skeleton 3D Print Bed Corner Bracket. Start with a solid cube measuring 13mm x 13mm x 9mm. From this cube, remove a smaller central cube measuring 7mm x 7mm x 7mm, positioned 1mm from the X and Y axes and 1mm from the bottom face, to create a hollow U-shaped channel. Within the remaining bottom 1mm thick base,...
thickness = 1; offset = 11; screw = 3 + .5; nut = screw * 2; platform_thickness = 7; difference() { cube([nut+2*thickness, nut+2*thickness, platform_thickness+2*thickness]); translate([0,0,thickness]) cube([nut+thickness,nut+thickness,platform_thickness]); translate([thickness+nut/2, thickness+nut/...
glb/cad_592a65163bf0.glb
Create a Skeleton Print Bed Platform consisting of a flat rectangular plate with a thickness of 3mm and overall dimensions of 120mm by 120mm. At each of the four corners of the plate, create a vertical cylindrical hole with a diameter of 3.5mm that passes completely through the thickness of the plate. Within the ce...
tiny=.01; screw=3 + .5; x_offset=120; y_offset=120; thickness=3; bed_x = 100; bed_y = 100; difference() { union() { translate([-x_offset/2, -y_offset/2, 0]) cube([x_offset, y_offset, thickness]); screwholes( (x_offset-bed_x)/2 ); } screwholes( screw ); grid(10); } modu...
glb/cad_2cc4f479ce16.glb
Create a ToolClip holder by starting with a rectangular base block measuring 12mm wide, 36mm long, and 6mm thick. From this block, remove five vertical cylindrical holes, each 6mm deep, centered along the length of the block. The holes should be spaced evenly apart, with their centers positioned at intervals of 6mm alo...
d = [2.5,3,3.5,2.3,4]; thickness = 6; thicknessBoard = 8; overUp = 10; overDown = 8; attachment = "H"; dn = len(d); dMax = max(d); width = (dMax + 2) * 6; breit = dMax + 6; difference(){ cube([breit, width ,thickness]); for (i = [0 : dn - 1]) { translate([breit/2, (width/(dn+1))* (i + 1) ,0]) ...
glb/cad_7118b730e9d5.glb
Create a Y-axis belt tensioner as a rectangular plate measuring 16.2mm wide, 60mm long, and 5mm thick. Center the plate on the origin. At each end of the plate's length, create a circular cutout. At one end, create a hole with a diameter of 8.1mm. At the opposite end, create a hole with a diameter of 6.1mm. Both hole...
BOLTD=8.1; BEARD=6.1; SCREWD=3.1; XDIM=max(BOLTD, BEARD)*2; THICK=5; LEN=60; NOTHING=.000001; $fn=32; difference() { cube([XDIM, LEN, THICK], center=true); translate([0, -LEN/2, 0]) { minkowski() { cylinder(r=BOLTD/2, h=THICK*2, center=true); cube(size=[NOTHING, BOLTD*2, NOTHI...
glb/cad_b1024d57b0c4.glb
Create a spool holder mount consisting of a flat rectangular base and a vertical support arm. The base is a rectangular block measuring 105mm by 90mm with a thickness of 6mm. Drill two circular holes through this base, each with a diameter of 5.2mm, positioned at coordinates (10, 22.5) and (10, 67.5). Attached to the ...
$fn=200; module spoolhalf(){ difference(){ cylinder(95,23,23); translate([0,-25,-1]) cube([50,50,100]); } } module threadedrod(){ color("red") cylinder(150,4,4); } module spoolsupport(){ difference(){ spoolhalf(); translate([-13,0,-2]) threadedrod();...
glb/cad_97d835f732b3.glb
Create a parametric wall hook. Start by designing a flat, rounded base plate that is 26.67mm wide and 20mm long, with a thickness of 3mm. Center a cylindrical hole with a diameter of 5mm through this base. From the top surface of the base, extend a vertical hook that curves upward and then bends back toward the base....
hook_height = 40; support_thickness = 3; hole_dia = 5; hook_base = hook_height/3; hole_distance = hook_height/2; hook_thickness = hook_height/4; support_width = hook_base*2; corner = 6; fillet=10; $fn = 50; difference() { union() { fillet(); base(); hook(); } trim_base(); } modul...
glb/cad_aebefd4c3409.glb
Create a BCN3D Sigma bowden tube shim. Start with a rectangular base measuring 37mm in width, 12.7mm in depth, and 0.9mm in thickness. At the end of the rectangle, add a vertical block that is 12.7mm deep and 10mm high, extending from the 0.9mm base to a total height of 10.9mm. This block should cover the remaining wid...
include <fillet.scad> $fn = 90; shim_width = 37; shim_depth = 12.7; shim_thick = 0.9; cyl_cut_dia = 8.5; cyl_shift_y = shim_depth / 2; cyl_shift_x = cyl_cut_dia; slot_cut_x = cyl_cut_dia / 2 + cyl_shift_x; slot_cut_y = cyl_cut_dia; fillet_r = 2; push_height = 10; grip_ring_clearance = 6; addabit = 0.2; module solids(...
glb/cad_c9b162bc0b20.glb
Create a flanged hose barb consisting of a square base and a protruding cylindrical tube. Start with a square flange 70mm wide and 6mm thick. Center a circular hole through the flange with a diameter of 38.1mm. Place four mounting holes, each 3.1mm in diameter, located 10mm inset from each corner of the flange. Constr...
barbOuterDiameter = 38.1; barbWallThickness = 4; barbTipTaperDistance = 12; barbTipMinimumWallThickness = 1; barbBaseHoleDiameter = 31; barbHeight = 50; flangeSize = 70; flangeThickness = 6; flangeBoltHoleDiameter = 3.1; flangeBoltHoleInset = 10; $fn = 72; module basicFlange () { boltHoleDistance = flang...
glb/cad_ed56736060c3.glb
Create a Bunk Couch Frame consisting of a structural support system for a lower couch and an upper bunk. Construct two identical side frames. Each side frame is a vertical panel 66 inches high and 38 inches wide, with a thickness of 0.5 inches. These panels feature a semi-circular cutout centered along the inner edge...
$fn=200; in=25.4; base_w=38*in; base_h=66*in; bottom_couch_w=86*in; top_h=110*in; stud=3.5*in; wall=stud; base_neg_w=base_w-wall*2; steps=2; plywood=in/2; tabs=stud*5; total=100; half=total/2; width=5; tip=26; plywood_x=4*12*in; plywood_y=8*12*in; module all_the_things() { things(); rotate([0,0,360/...
glb/cad_2e070c6cda76.glb
Create a miniature base with a width of 25.4mm, a depth of 50.8mm, and a height of 3.175mm. The overall shape is a rectangular prism with sides sloped inward at a 70-degree angle. The top surface of the base should be indented across 95% of its area. Cut a rectangular slot through the center of the base that is 12.7m...
units=1; base_width = 1; base_depth = 2; base_height = .125; angle= 70; shape=4; slot_type=0; slot_length = .5; slot_width = .09; slot_offset = 0; base_indent=0; base_indent_area=95; hole_shape=0; hole_radius=.35; nameplate_type=0; nameplate_length = 1.5; nameplate_width = .3; nameplate_offset = .3; r...
glb/cad_8167b2492556.glb
Create a Micro Projector Wall to Ceiling Mount by constructing a tilted rectangular cradle. Start with a main body that is 162mm wide, 46mm deep, and 98mm tall, with a wall thickness of 4mm. The cradle is tilted at a 15-degree angle. The front and back faces are open frames. The side walls are solid, but the bottom is...
$fn=90; p_x=154; p_y=38; p_z=90; wall=4; walll=wall*2; pad=0.1; padd=pad*2; grip=6; gripp=grip*2; angle=15; hyp=p_y+walll; opp=sin(angle)*hyp; adj=cos(angle)*hyp; screw_wall=4; screw_d=4.5; screw_wall_d=screw_d+screw_wall*2; screw_wall_r=screw_wall_d/2; difference(){ linear_extrude(height=p_y) rotate([angle...
glb/cad_038abe5a8e03.glb
Create a parametric oil funnel consisting of a wide top reservoir, a conical transition, and a narrow cylindrical stem. Start by creating a hollow top cylinder with an outer diameter of 100mm, a height of 40mm, and a wall thickness of 4mm. Below this, add a hollow conical section that transitions from the 100mm top d...
wall=4; bottle=25; top_h=40; angle_h=30; bottle_h=50; total_h=top_h+angle_h+bottle_h; mesh_wall=0.5; mesh_hole=2; mesh_h=3; pad=0.1; padd=pad*2; top=100; mesh_layer_h=0.5; print_base=80; print_base_h=0.6; $fn=120; translate([0,0,bottle_h+angle_h]) difference() { cylinder(d=top,h=top_h); translate([0,0,-pad])...
glb/cad_f6d9b282afd8.glb
Create a parametric window shelf assembly consisting of four horizontal shelves and two vertical side supports. Each horizontal shelf is a rounded rectangle with a width of 24.75mm (calculated as the 29.25mm window width minus two 2.25mm offsets), a depth of 6mm, and a thickness of 0.5mm. The corners of these shelves m...
window_w=29.25; window_d=6; shelf_h=14.5; shelves=4; plywood=0.5; wall=1.25; extra_shelf=2.5; gap=1/16; pad=0.1; padd=pad*2; $fn=45; module side_cutout(z) { translate([-pad,wall,z-gap]) cube([plywood+padd,window_d-wall*2,plywood+gap*2]); } module shelf_cutout(y) { translate([-pad,-gap+y,-pad]) cube([p...
glb/cad_152b510a65c4.glb
Create a sink stopper consisting of two stacked cylinders. First, create a base cylinder with a diameter of 46mm and a height of 9mm. Centered on top of this base, add a second, smaller cylinder that serves as the handle; this upper cylinder must have a diameter of 15mm and a height of 10mm. Ensure both parts are perfe...
$fn=500; cylinder(9,46/2,49/2); translate([0,0,9])cylinder(10,5,7.5);
glb/cad_895964c2e0c9.glb
Create a sink stopper consisting of a wide base and a central raised knob. Start by creating a solid cylinder with a diameter of 10mm and a height of 5mm. From the top center of this base, add a second solid cylinder to serve as the knob, which has a diameter of 5mm and a height of 7.5mm. To create the hollow interior ...
$fn=500; translate([0,0,0])cylinder(10,5,7.5); difference(){ cylinder(9,47/2,51/2); translate([0,0,1.6]) cylinder (8,45/2,49/2);}
glb/cad_6695ac00fdc0.glb
Create a mounting bracket for an Ati Radeon 7500 card. Start with a main rectangular plate 97mm long, 13.5mm wide, and 1mm thick, with rounded corners. At each end of the plate, centered along the length, add a vertical mounting foot. Each foot is a rounded rectangular block 7mm long, 12mm wide, and 1.5mm thick, feat...
h = 1; l = 97; w = 13.5; $fn = 60; translate([l/2-7/2,-w/2+1+1/2,0]) screwHole(); translate([-(l/2-7/2),-w/2+1+1/2,0]) screwHole(); difference(){ roundedCube(l,w,3,h,true); translate([(l-17)/2-14,0,0]) vga(); translate([l/2-17-14-19.5-32/2-1+0.25,0,0]) adc(); translate([l/2-7-1,-w/2+3/2,0]) roundedCube(2,3,0...
glb/cad_54b5a3e5a6f5.glb
Create an SSD bracket for a G4 Cube with a base plate measuring 144.5mm in length, 101mm in width, and 2mm in height. The base plate features a central hexagonal honeycomb cutout pattern consisting of 6 rows and 10 columns of hexagonal holes, each with an inner radius of 8.5mm and an outer radius of 8.5mm. On the left...
l = 144.5; w = 101; h = 2; screwR = 3/2; difference(){ moveback = 13; initY = -2; union(){ difference(){ union(){ baseCaddy(); sideBarSSD(moveback,initY); sideBarSSD(moveback,initY+70+4); } screw(100-9+moveback,0,3*15/4,3,true); screw(100-9+moveback,0,3*15/4,6)...
glb/cad_19a75e5d8f45.glb
Create a replacement watch strap keeper by constructing a hollow rectangular sleeve. Start with a solid rectangular block measuring 25.8mm in length, 9.3mm in breadth, and 10.5mm in width. From this block, remove a smaller internal rectangular volume to create the opening, leaving a wall thickness of 1.5mm on the lengt...
l=25.8; b=9.3; w=10.5; lt=1.5; bt=1.25; text=""; TS=5; FONT="Times New Roman"; space=1; tx=1; ty=1; tr=0; txo=0; tyo=0; tt=0; $fn = 200; VA="center"; HA="center"; difference(){ difference(){ cube([l,b,w]); translate([lt,bt,-0.1]){ cube([l-lt*2,b-bt*2,w+0.2]); } } translate([l/2+txo,l...
glb/cad_c2961ff1b78a.glb
Create a customizable card holder consisting of two mirrored plates. Each plate should be a rectangular slab measuring 90.6mm by 58.98mm with a thickness of 1.5mm. On each plate, remove a central rectangular slot measuring 5mm by 10mm that passes through the thickness of the slab at both the left and right ends. At t...
use <write/Write.scad>; FL1 = "Your Name"; FL2 = "email: name@domain.com"; FL3 = "cell: 999/999-9999"; BL1 = "If Found, Please Mail to:"; BL2 = "1 Awesome Street"; BL3 = "Cooltown, FL 33067"; margin = 5; thickness = 1.5; hubR = 5; hubH = 2; bandH = 10; cardLen = 85.60 + margin; cardWidth = 53.98 + margin; g...
glb/cad_d84e63a544d0.glb
Create a customizable smartphone holder for a car air vent. The model consists of a phone bracket and a vent clamp. First, construct the phone bracket. Create a central U-shaped channel with a width of 70mm and a depth of 9mm, using a wall thickness of 2.5mm. The total height of the bracket is 20mm. The outer edges of...
smartphone_width=70; smartphone_thickness=9; bracket_height=20; thickness=2.5; clamp_rotation=0; clamp_gap=0.5; clamp_length=23; bracket_small_ends=5; clamp_angle1=20; clamp_angle2=30; clamp_centering_length=5; clamp_width=calc_wc(); clamp_height=calc_hc(); clamp_width_rotated=calc_wc_rotated(); clamp_height...
glb/cad_e3a50cd84a31.glb
Create a customizable barrel connector by starting with a solid cube that has a side length and height of 8mm. From this cube, remove a series of cylindrical volumes to create the connector's internal structure. First, carve out a central vertical cylinder with a radius of 2mm and a height of 12mm. Within this central ...
_1_depth = 10; _2_inner_depth = 5; _3_outer_diameter = 4; _4_inner_diameter = 1.5; _5_wire_diameter = 1; _6_wire_jut = 0.1; _7_wall_thickness = 2; module barrel_connector( depth = 10, inner_depth = 5, outer_diameter = 4, inner_diameter = 2, wire_diameter = 1.3, wire_jut = 0.1, wall_thickness = 2) { $fn...
glb/cad_67424fdc0b97.glb
Create a protective hinge cover by constructing a hollowed spherical cap sitting atop a cylindrical base. Start with a sphere of radius 16 mm and remove a concentric inner sphere of radius 10 mm to create a shell with a wall thickness of 6 mm. Slice this sphere in half by removing everything below the center plane. To ...
rCharniere = 29 / 2; rAxe = 20 / 2; eCache = 1.5; eEncoche = 4; difference() { union() { difference() { difference() { sphere(r=rCharniere + eCache,center=true, $fn = 60); sphere(r=rAxe,center=true, $fn = 60); }; translate([0,0,-20]) cube...
glb/cad_8a53e23c1508.glb
Create a protective hinge cover by combining a spherical shell and a cylindrical base. Start with a hollow sphere with an outer radius of 16 mm and an inner radius of 10 mm. Cut this sphere in half by removing the bottom hemisphere using a cube. To the remaining top dome, add a concentric cylindrical ring centered on t...
rCharniere = 29 / 2; rAxe = 20 / 2; eCache = 1.5; eEncoche = 4; difference() { union() { difference() { difference() { sphere(r=rCharniere + eCache,center=true, $fn = 60); sphere(r=rAxe,center=true, $fn = 60); }; translate([0,0,-20]) cube...
glb/cad_584d10ff20b6.glb
Create a power supply bracket with a central rectangular cutout measuring 30.3mm by 50.3mm. The overall outer dimensions of the main body should be 34.3mm by 54.3mm with a total thickness of 20mm, creating a wall thickness of 2mm around the cutout. Extend the bracket by adding two symmetrical arms protruding from the ...
dim = [ 30, 50 ]; c = 0.3; w = dim[0]+c; h = dim[1]+c; l = 20; t = 2; b = 27.5+c*2; difference() { cube( [ w+t*2, h+t*2, l ], center = true ); cube( [ w, h, l*2 ], center = true ); } translate( [ w/2+t+b/2, 0, 0 ] ) difference() { union() { for ( a = [ -1, +1 ] ) { translate( [ 0, a*( b/2+t/2 ), 0 ] ) ...
glb/cad_b1620480565f.glb
Create an ESP8266 ESP-01 antenna improvement part by starting with a solid rectangular block measuring 5mm in length, 4mm in width, and 8mm in height. Carve a rectangular slot out of the top face to create a channel for the antenna. This slot should be 5mm long, 1mm wide, and 6mm deep, centered along the width of the b...
k=0.1; L=5; H=6; W=4; H2=2; W2=1; Z=0.5; print = 1; rotate([0,-print*90,0]) antenna(); module antenna(){ difference() { union() { cube([L,W,H+H2]); } translate([-k/2,W/2-W2/2,H2]) cube([L+k,W2,H+k]); translate([-k/2,W/2+W2/2-k/2,H/2+H2-Z/2]) cube([L+k,Z+k,Z+k]); } ...
glb/cad_016fd75d2efa.glb
Create a power supply endcap with overall dimensions of 114mm width, 40mm depth, and 50mm height. The main body is a hollow shell with a wall thickness of 2mm. On the rear face, create a centered rectangular cutout for a terminal block that is 114mm wide, 10mm high, and 22mm deep. Within this rear section, include a ci...
width=114; depth=40; height=50; termHeight=10; termDepth=18; metalThickness=2; screwThick=3; wall=2; plugWidth=39; plugHeight=27.75; plugOffset=1; rotate([90,0,0]) difference(){ union(){ translate([0,(depth-termDepth)/2-depth/2,0]) cube([width,depth-termDepth,height], center=true); cube([width-metalThickness*2,de...
glb/cad_da98c3e5f770.glb
Create a power supply endcap with overall dimensions of 114mm width, 40mm depth, and 48mm height. The main body is a hollow shell with a wall thickness of 2mm. Cut a rectangular terminal block opening through the center of the face, measuring 114mm wide by 10mm high and 18mm deep. On the opposite side, create a recta...
width=114; depth=40; height=48; termHeight=10; termDepth=18; metalThickness=2; screwThick=3; nutWidth=2; nutThick=7; wall=2; plugWidth=39; plugHeight=28; plugOffset=1; plugLip=2; rotate([90,0,0]) difference(){ union(){ difference(){ union(){ translate([0,(depth-termDepth)/2-depth/2,0]) cube([width,depth-t...
glb/cad_53c357fd6435.glb
Create a LEGO Technic connector bone by constructing a central rectangular beam with two rounded ends. The main body is a rectangular prism 50mm long, 7.3mm wide, and 7.8mm high. At each end of the beam, add a semi-cylindrical knuckle with a radius of 5mm and a height of 7.8mm, centered on the beam's width. At the cen...
$fn=20*1.0; width = 7.3*1.0; height = 7.8*1.0; hole = 5.0/2; counter = 6.1/2; depth = 0.85*1.0; pitch = 8.0*1.0; Distance1 = 50; Knuckle = 10; difference() { union(){ cylinder(h=height, r=Knuckle/2); translate([0,-width/2,0]) cube([Distance1,width,height]); translate([Distance1,0,0]) cylinder(h=height,r=Knuc...
glb/cad_c0781998135e.glb
Create a 3-hole LEGO Technic connector bone. The object consists of two connected beam segments with a total of three holes. The first segment is a rectangular block 50mm long, 7.3mm wide, and 7.8mm high. At both ends of this segment, add a semi-cylindrical knuckle with a radius of 5mm. The second segment is 50mm lon...
$fn=20*1.0; width = 7.3*1.0; height = 7.8*1.0; hole = 5.0/2; counter = 6.1/2; depth = 0.85*1.0; pitch = 8.0*1.0; Distance1 = 50; Distance2 = 50; Knuckle = 10; AngleBones = 20.0; difference() { union(){ cylinder(h=height, r=Knuckle/2); translate([0,-width/2,0]) cube([Distance1,width,height]); translate([Dis...
glb/cad_dfcb13ce6e6d.glb
Create a LEGO Technic Connector Bone consisting of three connected cylindrical segments with holes for pins. The overall structure is composed of two curved sections. First, create a starting cylinder with a diameter of 7.3mm and a height of 7.8mm. Extend a curved arm from this cylinder with a radius of 3.65mm and a ...
$fn=20*1.0; width = 7.3*1.0; height = 7.8*1.0; hole = 5.0/2; counter = 6.1/2; depth = 0.85*1.0; pitch = 8.0*1.0; Distance1 = 50; Distance2 = 50; Twist_Hole_3 = 30; AngleBones = 20.0; BoneFactor = 1.0; difference() { union(){ cylinder(h=height, r=width/2); translate([0,0,height/2]) rotate([0,90,0]) cylinder(...
glb/cad_82bc7b5ef402.glb
Create a 120mm fan cowl by starting with a square base plate measuring 128mm by 128mm with a thickness of 10mm. Centered within this plate, remove a square section measuring 120mm by 120mm with a depth of 6mm, leaving a 4mm border around the edges. From the center of the base, remove a cylinder with a radius of 50mm an...
difference() { translate([-64,-64,0]) cube([128,128,10]); translate([-60,-60,5]) cube([120,120,6]); translate([0,0,-1]) cylinder(r=50,h=11); } difference() { translate([0,0,-30]) cylinder(r1=60, r2=55, h=30); translate([0,0,-31]) cylinder(r1=55,r2=50,h=32); }
glb/cad_3e23671ab5db.glb
Create a 120mm fan cowl by starting with a solid square base measuring 128mm by 128mm with a height of 10mm. From the top surface, remove a smaller centered square block measuring 120mm by 120mm with a depth of 6mm, leaving a 4mm thick wall around the perimeter and a 4mm thick floor at the bottom. Finally, carve a cent...
difference() { translate([-64,-64,0]) cube([128,128,10]); translate([-60,-60,5]) cube([120,120,6]); translate([0,0,-1]) cylinder(r=50,h=11); }
glb/cad_6274aa5d696e.glb
Create a 120mm fan cowl by constructing a hollow, tapered cylindrical ring. Start with an outer cone that has a base radius of 60mm at the bottom and tapers to a top radius of 55mm over a height of 30mm. From the center of this shape, remove an inner conical volume to create the wall thickness; this inner void should s...
difference() { translate([0,0,-30]) cylinder(r1=60, r2=55, h=30); translate([0,0,-31]) cylinder(r1=55,r2=50,h=32); }
glb/cad_020fa590ddde.glb
Create a foldable phone stand consisting of two symmetrical arms joined by a hinge. Each arm is a plate 60mm long, 20mm high, and 3mm thick. For each arm, start with a rectangular plate. At the hinge end, create a semi-circular cap with a radius of 1.5mm. Through the center of the hinge axis, remove a cylindrical hol...
Height = 20; Length = 60; Thickness = 3; PhoneThickness = 9; Tilt = 70; $fa = 6; $fs = 0.5; module Plate() { rotate([90,0,0]) linear_extrude(Thickness) union() { polygon([ [0,0],[0,Height], [Length-2,Height],[Length,Height-2], ...
glb/cad_dba60b8ff471.glb
Create a 10-30 volt DC laptop power supply enclosure consisting of a main case and a matching lid. The case is a hollow rounded-bottom box with an interior space designed to house a circuit board of 50mm by 85mm by 2mm. The overall exterior dimensions are approximately 74mm long and 95mm wide, with a wall thickness o...
include <MCAD/boxes.scad> $fa=5; $fs=0.3; percent = 1 / 100; board_length = 50; board_width = 85; board_thickness = 2; full_width = 90; unit_height = 20; heatsink_length = 45; screw_radius = 1.5; screw_dist_length = 40; screw_dist_width = 77; terminal_width = 10; terminal_depth = 7; terminal_inset = 7; terminal_h...
glb/cad_56a119b8eabe.glb
Create a 10-30 volt DC laptop power supply enclosure consisting of a main case and a lid. The case is a hollow rounded-bottom box with a wall thickness of 2mm. The outer dimensions are based on a board size of 50mm by 85mm, with added margins of 5mm and end margins of 10mm. The total height is 20mm plus margins and a...
include <MCAD/boxes.scad> $fa=5; $fs=0.3; percent = 1 / 100; board_length = 50; board_width = 85; board_thickness = 2; full_width = 90; unit_height = 20; heatsink_length = 45; screw_radius = 1.5; screw_dist_length = 40; screw_dist_width = 77; terminal_width = 10; terminal_depth = 7; terminal_inset = 7; terminal_h...
glb/cad_772f16e23e7b.glb
Create a parametric ball bearing housing. Start with a main cylindrical body with a radius of 11.6mm (bearing outer radius 9.1mm plus 2.5mm wall thickness) and a total height of 6.5mm. The bottom 5mm of this cylinder is hollowed out by a central bore with a radius of 9.1mm to accommodate the bearing. Above this 5mm mar...
$fn = 80; bearingOuterDiameter = 18.2; bearingHeight = 5; bearingInnerDiameter = 9.5; housingTopBevelHeight = 1.5; housingWallThickness = 2.5; mountingPlateCount = 3; mountingPlateHeight = 2.5; mountingScrewDiameter = 3.2; mountingScrewBaseOffset = 2; mountingScrewToHousingPadding = 2.5; radialSupportStructureCount...
glb/cad_de43af7cfa13.glb
Create a Remixed Bed Clip by starting with a solid rectangular block measuring 25mm wide, 27mm deep, and 11.4mm high. Carve a rectangular slot through the center of the block to hold a glass bed, with the slot measuring 27mm wide, 15.4mm deep, and 2.4mm high, positioned 5.8mm from the front face and 8mm from the bottom...
$fn=30; nut_d = 7.8; nut_d_slop = .20; bed_slop = .2; bed_thickness= 2.2 + bed_slop; difference() { cube([25,27,3+bed_thickness+6+2]); translate([-1,5.8,6+2]) cube([25+2,27-5.8+2,bed_thickness]); translate([-1,15.6,6+2+bed_thickness-.1]) cube([25+2,27-15.6+2,3+2+bed_thickness]); translate([25/...
glb/cad_e5c87e7c57ac.glb
Create a Micro Metal Gearmotor Hub consisting of two stacked hexagonal sections. The bottom section is a hexagonal prism with a flat-to-flat width of 13.5mm and a height of 8.1mm. Drill a central hole through this section with a diameter of 3.6mm, but flatten one side of the hole to accommodate a shaft flat of 2.9mm....
shaftMountOuterWidth = 13.5; shaftDia = 3.6; shaftLength = 8.1; shaftFlat = 2.9; shaftNutWidth = 5.9; shaftnutHeight = 2.8; shaftBoltDia = 3.5; hexWidth = 12.1; hexLength = 6.2; wheelNutWidth = 7.7; wheelNutHeight = 3.9; wheelBoltDia = 4.5; minWallThickness = 0.9; smidge = 0.01; echo("Pause at Z heig...
glb/cad_a82f145d04f3.glb
Create a sphere with a radius of 50mm. Remove three identical cylindrical holes from this sphere, each with a radius of 25mm and a height of 125mm. Center the first cylinder at the origin and align its axis along the Z-axis. Position the second cylinder at the origin, rotated 90 degrees to align its axis along the X-ax...
echo(version=version()); module difference_sphere() { function r_from_dia(d) = d ; module rotcy(rot, r, h) { rotate(90, rot) cylinder(r = r, h = h, center = true); } difference() { sphere(r = r_from_dia(size)); rotcy([0, 0, 0], cy_r, cy_h); rotcy([1, 0, 0], cy_r, cy_h); rotcy([0, 1, 0], cy_r, cy_h);...
glb/cad_548c479172ad.glb
Create a parametric screwable foot by starting with a main cylinder that has a diameter of 16mm and a height of 7mm, using a 32-facet resolution for its circular profile. Carve a central vertical hole through the object to accommodate a screw; this hole should have a diameter of 6mm and start 2mm from the bottom base, ...
height = 7; diameter = 16; roundRadius = 3; holeDiameter = 6; screwDiameter = 3.8; holeBaseThickness = 2; numFaces = 32; $fn = numFaces; difference() { cylinder(h=height, r=diameter/2); translate([0,0,holeBaseThickness]) cylinder(h=height-holeBaseThickness+1, r = holeDiameter/2); translate([0,0,...
glb/cad_4a324d7a4f4a.glb
Create a zero clearance insert for a bandsaw by constructing a tiered circular base. Start with a wide cylinder 63.4mm in diameter and 2.5mm thick. Centered on top of this, add a second, narrower cylinder 53mm in diameter and 2.5mm thick. From this combined solid, remove a small vertical cylinder 6mm in diameter and 3m...
difference() { union() { cylinder(h = 2.5, r = 31.7, center = true); translate([ 0, 0, 2.5]) cylinder(h = 2.5, r = 26.5, center = true); } translate([-31, 0, 0]) cylinder(h = 3, r = 3, center = true); translate([-40, 0, 2.5]) cylinder(h=2.6, r = 18, center = true); trans...
glb/cad_ca984e8279e8.glb
Create a media bin connector consisting of a central rectangular block with integrated cylindrical extensions. Start with a main rectangular body measuring 16.76mm in width, 17.48mm in depth, and 7.95mm in height, centered on the origin. From this main body, remove a vertical cylindrical hole with a radius of 3.15mm po...
difference() { cube([16.76, 17.48, 7.95], center=true); translate([0, 3, -4]) cylinder(h=10, r=3.15); translate([0, 5, 0]) cube([5, 8, 8], center=true); } union() { translate([-4, -8, 0]) rotate([90, 0, 0]) cylinder(h=19.60, r=3.98 ); translate([4, -8, 0]) rotate([90, 0,...
glb/cad_a33aa77de739.glb
Create a Calibration Cross consisting of three intersecting rectangular prisms. Start by centering a 6mm cube at the origin. From this center, extend one prism 50mm along the positive X-axis and 50mm along the negative X-axis, another 50mm along the positive Y-axis and 50mm along the negative Y-axis, and a third 50mm v...
box_size = 6; blen = 100; module get_text (text_str) { linear_extrude (height=1.1) text(text_str, font = "Liberation Sans", size = (box_size - 2), direction = "ltr", spacing = 1 ); } difference () { union () { translate ([-blen/2,-box_size/2,0]) cube([blen,box_size,box_size]); translate ([-box_size/2,-b...
glb/cad_0c0c8363f760.glb
Create a MultiClip money clip and tool holster by starting with a base rectangular block 64mm wide, 90mm long, and 10mm thick, centered on the origin. Add a second rectangular block centered on the origin that is 64mm wide, 90mm long, and 7mm thick, effectively creating a combined main body. Carve out a central slot ...
difference() { union() { translate([0,0,-4])cube([64,90,10], center=true); translate([0,0,-7])cube([64,90,7], center=true); } union() { linear_extrude(height = 1) { tra...
glb/cad_a4989c0268f9.glb
Create a travel bag wheel with an overall diameter of 50mm. The main body is a torus with a cross-sectional radius of 5mm, centered on the origin. To form the wheel's structure, fill the center of this torus with a solid cylinder that has a radius of 20mm and a height of 10mm, centered on the origin. Create a hollow ch...
Size = 50; Radius = 5; CenterHoleDiameter=5; HollowCenter = "yes"; ShowCrossSection = "no"; $fn=50; difference(){ union(){ difference(){union(){ rotate_extrude(angle=360) translate([Size/2-Radius,0]) circle(r=Radius); cylinder(r=Size/2-Radius,h=Radius*2,center=true); ...
glb/cad_0ee970921777.glb
Create a cherry picker attachment for a PVC pipe. Start by creating a solid cylinder with a height of 50mm and a radius of 19.5mm. Centered on top of this cylinder, add a sphere that has been flattened along the Z-axis to a height of 48mm while maintaining a radius of 24mm. To hollow out the tool, remove a central cy...
difference () { union() { cylinder(50, 19.5, 19.5, false, $fn=100); translate([0,0,50]) { resize([0,0,48]) { sphere(24, $fn=100); } } } union() { cylinder(50, 17, 17, false, $fn=100); translate([0,0,48.5]) { resize...
glb/cad_801311d3b890.glb
Create a filament spool holder consisting of a vertically oriented, semi-cylindrical structure. Start with a base lip that is 5mm high with a radius of 20mm. Above this, add a 3mm flare that tapers from a 20mm radius down to a 15mm radius. The main body is a cylinder with a 15mm radius and a height of 68mm. Above the m...
include <threads.scadlib>; spool_width = 68; spool_radius = 15; lip_radius = 5; lip_width = 5; flare_width = 3; thread_width = 10; hollow_fraction = 0.80; $fn = 200; h = (lip_width + flare_width + spool_width) / 3; difference() { union() { difference() { union() { cylinder(li...
glb/cad_654936e04a4a.glb
Create a replacement travel bag wheel by starting with a sphere 50mm in diameter. Flatten this sphere by scaling it along the Z-axis to a height of 10mm, effectively creating a thick, rounded disc. To ensure the top and bottom are flat, constrain this shape within a bounding box 10mm high, centered vertically. Finally,...
Size = 50; Width = 10; CenterHoleDiameter=5; $fn=50; difference(){ intersection(){ scale([1,1,0.5]) sphere(d=Size,$fn=100); cube([Size*2,Size*2,Width],center=true); } if(CenterHoleDiameter > 0)cylinder(d=CenterHoleDiameter+0.5,h=Width*3,center=true); }
glb/cad_6fa99ed0ddb1.glb
Create a panel mount for an XT-60 connector. Start by forming a base consisting of two joined rectangular blocks: one centered block measuring 40mm wide, 60mm deep, and 5mm thick, and a second block measuring 24mm wide, 16mm deep, and 14mm thick positioned at the front center. From this combined mass, remove two vertic...
$fn=60; difference() { union() { translate([0,0,2.5]) cube([40,60,5], center=true); translate([-24/2,-16/2,0]) cube([24,16,14]); } translate([0,39.5/2,0]) cylinder(r=2.5,h=5); translate([0,-39.5/2,0]) cylinder(r=2.5,h=5); XT60(); } module XT60() { l...
glb/cad_799c70e469ef.glb
Create a wire harness washer pair consisting of two mirrored plates, each 2mm thick. For each plate, start with two primary circular bolt holes with a diameter of 8.64mm, positioned 57mm apart from center to center. Surround each bolt hole with a circular outer boundary 30mm in diameter. Between the two main bolt hol...
E=0.05; hole_dia = 5/16*25.4*1.07; hole_dist = 57; washer_od = 30; thickness = 2; $fn=32; module hole_offset(r,sense=0) { if (sense == 1) { offset(r) children(); } else if (sense == -1) { children(); } else { difference() { offset(r) children(); children();...
glb/cad_96ba3e250280.glb
Create an MPCNC Customizable Endstop Holder. Start by creating a circular collar with an outer diameter of 26.5mm and an inner diameter of 23.5mm, and a thickness of 1.5mm. The collar should have a height of 17mm. Cut a 5mm wide gap through the center of the collar. On one side of the gap, add a mounting tab that exte...
$fn=32; tube_od = 23.5; gap = 5; mount_hole_dia = 4; thickness=1.5; height=17; num_relief_holes = 5; relief_hole_a0 = 180-30; relief_hole_a1 = 360+30; relief_hole_dia = height/2; base_tab_length = mount_hole_dia*2; switch_hole_dia = 3.5; switch_holes = [ [3 , 3], [3 ,13.4], [25.5, 3], [25.5...
glb/cad_60a62de583fc.glb
Create a PC Bay Drawer consisting of a hollow rectangular bin. The outer dimensions of the bin are 141mm wide, 75mm long, and 37mm high. The walls have a uniform thickness of 2mm. The bin is an open-top box. On the front exterior face, centered horizontally and vertically, create a semi-circular cutout to serve as a f...
part = 1; x=146; y=80; z=42; mountWallThickness = 4; drawerTolerance = 1; width = x-mountWallThickness-drawerTolerance; height = z-mountWallThickness-drawerTolerance; length = y-mountWallThickness-drawerTolerance; wallThickness = 2; mountScrewDiameter = 2.75; mountScrewLength = 5; mountHoles = 2; tabOption...
glb/cad_b2c7ee140cd9.glb
Create a bronze sintered bushing adapter by constructing a hollow cylinder with an outer diameter of 15mm and a total height of 12mm. Remove a central cylindrical hole with a diameter of 9mm that passes completely through the object. Additionally, create a wider circular opening at the top of the part with a diameter o...
$fn=64; translate([0,0,12]) rotate([180,0,0]) difference() { cylinder(h=12,r=15/2); cylinder(h=13,r=4.5); cylinder(h=15/2,r=5.3); }
glb/cad_584b36dc3e23.glb
Create a Simple Battery Holder designed to hold two batteries of 14mm diameter and 50mm height. The main body consists of two parallel rows of battery slots. Each row is centered around a core width of 4mm. The body thickness is 4mm. For each battery position, create a circular cutout with a diameter of 14mm to accom...
part=0; Thickness = 3; BatteryDiameter = 14; BatteryHeight = 50; BatteryPlusContactDiameter = 5.5; BatteryPlusContactThickness = 1; BatteryHolderOffset = 5; DoubleColumn = true; DoubleBatteryHolderGap = 2*Thickness; BatteryNumberByColumn = 2; BatteryHolderCoreWidth = 4; BatteryHolderClipThickness = 1.8; BatteryHolde...
glb/cad_b78bfe6aef95.glb
Create a hollow Eiffel Tower bud vase with a total height of 150mm. The structure is composed of several stacked sections that taper upward. Start with a square base that curves inward as it rises. The lowest section is a wide, open-bottomed frame with four arched openings. Above this, create a middle section that narr...
scale([150/90.5,150/90.5,150/90.5]) union() { translate([0,0,19])rotate([0,0,45])cylinder(3,14,16,center=true,$fn=4); translate([0,0,22])rotate([0,0,45])cylinder(3,16,10,center=true,$fn=4); translate([0,0,20])cube([14,14,30],center=true); translate([0,0,37])rotate([0,0,45])cylinder(2,8,10,center=true,$fn=4); tran...
glb/cad_e1bfec2847e8.glb
Create a cube puzzle composed of several interlocking geometric components. The overall structure is a large cube with a total side length of 30mm. Construct the puzzle by combining various rectangular prisms, each with a base unit dimension of 10mm. Create several L-shaped and rectangular pieces that fit together to...
print=0; m=10; module mycube0(){ translate([-m,-m/2,-m])color([1,0,0])union(){ cube([2*m,m,m]); cube([m,2*m,m]); cube([m,m,2*m]); } } module mycube1(){ translate([-m,-m/2,-m])color([0,1,0])union(){ cube([2*m,m,m]); translate([m,0,m])cube([m,2*m,m]); } } module mycube2(){ translate([-m,-m/2,-m])color([0,0,1])union(){ cu...
glb/cad_3b3f0e04234d.glb
Create a stacked capsule holder consisting of a hollow vertical tower and a base. The tower is a square prism with an outer dimension of 60mm by 60mm and a total height of 148mm (calculated from 4 capsules at 37mm each). The center of the tower is hollowed out by a cylinder with a radius of 28mm. To allow for stacking,...
is_assemblable = 1; is_starter = 1; is_end = 0; tower_only = 0; nb_caps = 4; capsule_height = 37; capsule_cap_diameter = 55; capsule_cap_under_diameter = 51; clips_thickness = 3; assemblable = is_assemblable == 1; starter = assemblable && (is_starter == 1); end = assemblable && (is_end == 1) && !starter; modu...
glb/cad_b8c007ac2b50.glb
Create a cutter disc for a robotic lawn mower consisting of two main components: a disc assembly and a square base plate. First, construct the disc assembly. Create a thin circular disc with a radius of 80mm and a thickness of 3mm. Around the outer edge, place four circular holes with a radius of 2mm, each positioned...
$fn = 50; base_thickness = 5; number_of_motor_mount_holes = 4; motor_mount_hole_distance_from_center = 45/2; motor_mount_hole_radius = 2.5; motor_mount_recess_radius = 34/2; motor_mount_recess_height = 3; cutter_disc_radius = 80; cutter_disc_thickness = 3; cutter_blade_clearance = 20; shaft_radius_outer = 10; s...
glb/cad_f423eeae8a83.glb
Create a "bone" connector piece with a total thickness of 2mm. Start with a central rectangular bar measuring 20mm in length and 3mm in width. At each end of this central bar, add two perpendicular arms extending outwards. Each arm must be 10mm long, 3mm wide, and 2mm thick. Position these arms so they are offset from ...
thickness = 2; armlen = 10; armwidth = 3; bonelen = 20; buffer = 0.1; module poligon(r=12,nrslot=8){ difference(){ cylinder(h=thickness,r=r,$fn=nrslot); union(){ for(i=[0:nrslot-1]){ rotate([0,0,i*360/nrslot]) translate([r-r/2,-1.1*thickness/2,-1]) cube([r/2,1.1*thickness,thickness*2]); } cyli...
glb/cad_38f5c1a04c65.glb
Create a drill filament spool adaptor consisting of three separate components: a shank, a collet, and a clip. First, create the shank as a solid cylinder with a radius of 15mm and a height of 5mm. Second, create the collet as a hollow cylinder that fits over the shank, with an outer radius of 18mm, an inner radius of 1...
module cylinder_outer(height,radius,fn){ fudge = 1/cos(180/fn); cylinder(h=height,r=radius*fudge,$fn=fn);} module clip() { difference() { translate([0,0,-1.2]) { cylinder(r=18, h=6.2, $fn=64); } cylinder(r=15, h=5, $fn=64); translate([-1,-20,0]) { cube([2,40,5]); } trans...
glb/cad_caf7946b6ae8.glb
Create a drill filament spool adaptor consisting of a rectangular base with two cylindrical pegs. Start by creating a rectangular base measuring 36mm in length, 3.6mm in width, and 2mm in height. Position two identical cylinders on top of this base, one at each end. Each cylinder must have a radius of 1.5mm and a heigh...
rotate([0,0,-45]) {cube([3.6,36,2], center=true);} translate([9,9,1]) { cylinder(r=1.5, h=2, $fn=64); } translate([-9,-9,1]) { cylinder(r=1.5, h=2, $fn=64); }
glb/cad_86a319d269f9.glb
Create a drill filament spool adaptor consisting of a cylindrical base and a tapered tip. Start by creating a solid cylinder with a radius of 10mm and a height of 1.2mm. Atop this, add a second cylinder with a radius of 7.5mm and a height of 44.2mm. On top of the second cylinder, construct a tip section starting with a...
module tip() { difference() { union() { cylinder(r1=7.5, r2=9, h=10); translate([0,0,10]) { cylinder(r1=9, r2=7.5, h=5); } } translate([-10,-2,0]) { cube([20,4,15]); } translate([-2,-10,0]) { cube([4,20,15]); } } } difference() { union() {...
glb/cad_46adf7d53081.glb
Create a flashlight diffusor consisting of a hollow base and a tapered cap. Start by constructing a hollow cylinder for the base with an outer radius of 12.5mm, an inner radius of 11mm, and a height of 27mm. Inside this base, integrate six small rectangular ribs, each measuring 1mm by 1mm by 27mm, spaced evenly every 6...
rotate ([180,0,0]) difference () { union (){ difference () { cylinder (h=27,r=12.5,$fn=100); translate ([0,0,-1]) cylinder (h=29,r=11,$fn=100); } for (i=[0,60,120,180,240,300]) { rotate ([0,1,i]) translate ([11.25,0,27/2]) cube ([1,1,27],center=true); } } translate ([0,0,23]) cylinder (h=5,r1=10.5...
glb/cad_2f4ff6a056e7.glb
Create a robotic lawn mower wheel with a total width of 10mm. The main body is a disc with an outer radius of 97mm and an inner radius of 25mm. The outer rim is 10mm thick and features 24 evenly spaced circular recesses, each with a radius of 10mm, carved into the rim. The disc is supported by three spokes spaced 120 ...
$fn = 50; wheel_radius_inner = 25; wheel_radius_outer = 194/2; wheel_rim_thickness = 10; wheel_width = 10; shaft_length = 40; shaft_radius_outer = 7.4; shaft_radius_inner = 4.4; screw_hole_radius = 1.5; screw_head_radius = 1.5; screw_head_height = 2.6; screw_hole_placement = wheel_width+shaft_length-5; motor_axle_len...
glb/cad_3a0c1b779b43.glb
Create a luggage handle repair push button. Start with a central rectangular base measuring 149.1mm in length, 12.7mm in width, and 5.84mm in height. Add semi-cylindrical caps with a diameter of 12.7mm and a height of 5.84mm to both ends of this base. Integrate two smaller rectangular blocks into the main body, each m...
NAME = "NAME"; FONTNAME = "Lobster"; FONTSIZE = 8; rectangwidth = 12.7; rectanglength = 165.1-rectangwidth; rectangheight = 5.84; rectanglastheight = 4.45; smallrectlength = 10.5; smallrectwidth = 15.6; guidedia = 8; guideXfromcenter = (103-guidedia)/2; pushlength = 49.5; pushwidth = 14.5; pushheight = 21.5; filletd...
glb/cad_5f0c9f70bfb7.glb
Create a vibration damping mount consisting of three stacked plates. The top plate is a rounded square with a thickness of 3mm. Its outer boundary is defined by a hull of four 8mm diameter cylinders positioned at the corners of a 30.5mm square. This plate has four 3mm diameter holes centered at those same corner coor...
part = "assembly"; plateThickness = 3; roundingFactor = 8; iFitAdjust = .4; cylHeightExt = .1; $fn = 64; naze32Width = 36; naze32MountHoleSep = 30.5; naze32MountHoleD = 3; naze32AccessCutoutWidth = (naze32MountHoleSep - 2 * naze32MountHoleD) * 1.5; naze32MountPlateHoleSep = 44; naze32MountPlateHoleD = 5; naze32M...
glb/cad_8c263655f5bf.glb
Create a Filament Guide consisting of two main components: a curved guide arm and a mounting holder. For the guide arm, create a ring-like structure with a radius of 100mm. The cross-section of this ring is a rectangle 13mm wide and 7mm high, with a circular hole of 2.5mm radius centered within that cross-section. Th...
$fn=20; radius=100; translate([-radius/2,radius/2,0]) guide(radius); translate([-50,0,0]) holder(); module guide(length) { union() { difference() { rotate_extrude() translate([length, 0, 0]) difference() { translate([-10,-0.5]) square([13,7]); translate([3,3]) circle(2.5,center=true); } translate([-1.5*length,-0,-1...
glb/cad_03f9fd5850c4.glb
Create a Ring Building by first constructing a hollow ring. Start with a cylinder 40mm in height and 40mm in diameter. Remove a smaller concentric cylinder from its center that is 30mm in diameter and 40.5mm in height, positioned 0.5mm below the base of the first cylinder to ensure a clean opening. Duplicate this ring ...
module ring(){ difference(){ cylinder(6,40,40); translate([0,0,-0.5]) cylinder(7,30,30); } } ring(); module rotated(){ rotate([35,0,0]) ring(); } difference(){ rotated(); translate([0,0,-40]) cylinder(40,50,50); }
glb/cad_73897d8bdc71.glb
Create a hubspacer for a Kritzlerbot. Construct a hollow cylinder with an outer radius of 16mm and an inner radius of 11.2mm. The wall thickness should be 4.8mm and the total height of the part should be 4mm. Center the geometry on the origin.
include <MCAD/stepper.scad> include<MCAD/nuts_and_bolts.scad> include <MCAD/shapes.scad> m3_diam=4.4; m4_diam=5; m3_rad= m3_diam/2; m3_cap_diam=6.4 ; m3_cap_rad=m3_cap_diam/2; m4_cap_diam=9.2 ; m4_cap_rad=m4_cap_diam/2; m3_cap_h=3.2; m4_cap_h= 4.2; m4_rad = m4_diam/2; spacer_height=16; spacer_rad=7.5; motor_base=7; m...
glb/cad_2c7083db716b.glb
Create a Parametric Filament Hub consisting of two identical circular components. For each component, start with a base flange that is 3mm thick with a radius of 29.375mm. In the center of this flange, create a vertical cylindrical bushing with a total height of 10mm (3mm base + 7mm bushing height). This bushing has an...
use <partial_rotate_extrude.scad> bore = 22.5/2; flange_thickness = 3; bushing_thickness=2.5; bushing_chamfer_thickness=4; bushing_height=7; cut_play=0.5; hook_height = 10; hook_od = 54.75/2; hook_degrees=30; flange_radius = hook_od + 2; material_reserve_degrees=60; material_reserve_offset=material_reserve_degre...
glb/cad_a6152c82b1f9.glb
Create a Cup for Shaving Soap by constructing a tapered outer vessel and hollowing out the center. The outer body is a 20-sided prism with a height of 33mm. The base of this vessel is a cylinder with a diameter of 81mm, which tapers upward to a top diameter of 75mm. At the top edge, add a rounded lip created by rotatin...
$fn=20; soap_d=75; soap_h=25; cup_bowl_h=10; cup_hollow_d=soap_d; cup_hollow_h=40-cup_bowl_h; cut_play=0.5; thickness=3; outer_d_upper=cup_hollow_d + 2*thickness; outer_d_lower=outer_d_upper+5; outer_h=cup_hollow_h + thickness; module cup_body(){ rim_d=(outer_d_lower-cup_hollow_d)*0.48; rim_d_delta=outer_...
glb/cad_5c80bc913d14.glb
Create an XL Belt Clamp consisting of a main rectangular block with a belt-retaining channel and two mounting posts. The main body is a composite of two rectangular prisms: one measuring 25mm x 4mm x 15.4mm and another measuring 25mm x 14mm x 4mm, joined to form a base. On the top surface, carve out a rectangular chan...
dRise = 0; tBase = 1.5; tFull = 2.7; wTooth = 2.6; wSpace = 2.4; wBelt = 10; wHex = 6.9; dHex = 2.5; rM3 = 1.7; sDrop = wHex/2-0.5; Adjust = 0.5; pWidth = 9; pHeight = 5; bwExt = 20; bwInt = 15; blExt = 30; blHed = 6; bdExt = 12.5; bRoof = 2.8; bFloor = 1; bdSoc = bdExt-(bRoof+bFloor); swMax = bwInt - Adjust; sdMax...
glb/cad_57983dbf8631.glb
Create a customizable PCB housing consisting of a hollowed-out rectangular enclosure. The main outer body is a box with dimensions 71mm in length, 46mm in width, and 30mm in height. Hollow out the center of this box to create a cavity for a PCB measuring 65mm by 40mm by 22mm. The interior walls should be thin, leavin...
pcb = [ 65, 40, 22 ]; c = 0.3; difference() { translate( [ 0, 0, 0 ] ) box( pcb[0]+6, pcb[1]+6, pcb[2]+8 ); translate( [ 0, 0, 1 ] ) box( pcb[0]+2, pcb[1]-4, pcb[2]+6 ); translate( [ 0, 0, 2 ] ) box( pcb[0]+2, pcb[1]+2, pcb[2]+4 ); for ( a = [ -1, +1 ], b = [ -1, +1 ] ) translate( [ a*pcb[0]/3, b*pcb[1]/3, 0 ] )...
glb/cad_ce51cf179cf9.glb
Create a parametric bench-top shelf with a material thickness of 18mm. The structure consists of two side supports and multiple horizontal shelves. Construct the side supports as rectangular blocks with a width of 200mm and a total height of 500mm (calculated as 100mm extra height plus two shelf heights of 200mm each)...
height = 18; ply_h = 2; ply_l = 600; top_shelf_xtra_height = 100; length = 200; w1 = 900; w2 = 600; middle_support_width1=100; middle_support_width2=50; num_selves = 2; shelf_height = 200; actual_shelf_height = shelf_height - height; W = 1200; full_assembly(); module dxf_assembly() { union() { trans...
glb/cad_c2d7af8ed4ad.glb
Create a Buckle for Coulter by constructing a rectangular base with rounded corners. The main body should be 60mm long, 40mm wide, and 6mm high, with all four corners rounded to a radius of 5mm. From the top surface, remove a central rectangular section to create a recessed tray that is 3mm deep. This cutout should mai...
length=60; width=40; height=6; lip_height=3; lip_thickness=2; rounded=5; $fn=300; strap_bar = "yes"; difference(){ translate([.5*rounded, .5*rounded])minkowski(){ cube([length-(rounded), width-(rounded), height+lip_height]); cylinder(d=rounded); } translate([.5*rounded+lip_thickness, .5*rounded+li...
glb/cad_c6c705438938.glb
Create a replaceable high-heel shoe surface. Start by constructing the main body, which is a union of a rectangular block and a cylinder. The block should have a width of 14mm, a length of 15mm (calculated as the 20mm total length minus half the width), and a height of 11mm. Attached to this block is a cylinder with a ...
hoogte = 11; lengte = 20; breedte = 14; schacht = 2; kop=3.9; voet = 2; screwhole = 1; module gat() { color ("green") translate ([0,0,-1]) cylinder (h=15, r1=schacht, r2=schacht); color ("blue") translate ([0,0,breedte/2]) cylinder (h=(hoogte -4.5), r1=kop, r2=kop); } module solid () { union() { translate ...
glb/cad_fc0909194f22.glb
Create an accessories rack consisting of a circular base, a central vertical pillar, and two horizontal arms. Start by creating a cylindrical base with a radius of 100mm and a height of 10mm. Directly above this, add a second cylindrical section with a height of 10mm, tapering slightly from a bottom radius of 100mm to ...
bottomheigh=10; radius=100; bodyheigh=10; rauiussmall=90; thickness=8; holedeep=10; stickheigh=500; stickradius=10; branchlong=200; branchradius=10; branch02heigh=100; stick(); rotate(a=90,v=[0,1,0]){ translate([-stickheigh,0,0]) branch(); } rotate(a=90,v=[1,0,0]){ translate([0,stickheigh-branch02heigh,0]) bran...
glb/cad_b9e69f078ffb.glb
Create a clip mount adapter for a handheld GPS device. Start with a main rectangular body 32.5mm high, 16mm wide, and 8mm deep. On the top surface of the body, center a flexible tongue that is 7mm wide and 14mm high. The tongue should be integrated into the body with a tapered profile, transitioning from the full bod...
$fn = 60; module etrex1adapter(supports=false,eps=0.5){ bh = 32.5; bw = 16; bd = 8; rw = 1.75; rd = 2.4; ro = 1.75; rh1 = 8.5; rh2 = 20.5; rh3 = 30; kr = 2; sh = 12.5; tw = 7; th = 14; difference(){ union(){ translate([-bw/2,0,0])cube([bw,bd,bh]); trans...
glb/cad_c71858a7c6aa.glb
Create a clip mount adapter for a Garmin eTrex GPS device. Start with a main rectangular body 32.5mm high, 16mm wide, and 8mm deep. At the top of the body, create a flexible tongue that is 7mm wide and 14mm high. The tongue's profile should transition from the main body width down to 7mm, with a tiered structure that...
$fn = 60; module etrex1adapter(supports=false,eps=0.5){ bh = 32.5; bw = 16; bd = 8; rw = 1.75; rd = 2.4; ro = 1.75; rh1 = 8.5; rh2 = 20.5; rh3 = 30; kr = 2; sh = 12.5; tw = 7; th = 14; difference(){ union(){ translate([-bw/2,0,0])cube([bw,bd,bh]); trans...
glb/cad_7e7ec902b2a3.glb
Create a Boton Charro keyring by starting with a circular base disk 30mm in diameter and 3mm thick. Centered on this base, create a hollowed-out spherical shell with a radius of 18mm, removing the bottom half to leave an open bowl shape. Place a single small sphere at the very center of the bowl. Around the outer edg...
Radius=15; Balls=12; KeyRing=1; BaseHeight=3; InnerRings=1; OuterRing=0; Facets=30; Angle=360/Balls; BallRadius=(3.1415926535*Radius/Balls)/1.2; module Ball(X,Y,R) { translate([X,Y,0]) union() { difference() { sphere(r=R,center=true,$fn=Facets); translate([0,0,-R]) cylind...
glb/cad_7a356bbafa66.glb
Create a coin organizer by starting with a solid rectangular block measuring 140mm in length, 28mm in width, and 100mm in height. Carve four vertical cylindrical holes through the block, each starting 2mm from the bottom face. The first hole should have a diameter of 21.7mm and be centered 20mm from the left edge and 1...
difference() { cube([140, 28, 100]); translate([20, 21.8 / 2 - 3, 2])cylinder(100, d = 21.7, $fn = 60); translate([50, 26.8 / 2 - 3, 2])cylinder(100, d = 26.8, $fn = 60); translate([83, 24.8 / 2 - 3, 2])cylinder(100, d = 24.8, $fn = 60); translate([116, 28.3 / 2 - 3, 2])cylinder(100, d = 28.3, $...
glb/cad_a6bcbbf356d5.glb
Create a glass whiteboard marker holder that is 130mm long. Start by constructing a U-shaped clip with a total width of 8mm and a height of 15mm, featuring walls that are 2mm thick. Attached to the top of this clip, add a tray that is 30mm wide and 15mm high. This tray should also be U-shaped, with 2mm thick walls on e...
wall_thickness = 2; tray_height = 15; tray_width = 30; clip_height = 15; clip_width = 4; holder_length = 130; module marker_holder() { translate([-holder_length / 2, -(clip_width + tray_width) / 2, 0]) { union() { difference() { cube([holder_length, clip_width + 2 * wall_thickness, clip_height]); ...
glb/cad_6a8681b14c0f.glb
Create a glass whiteboard marker holder that is 140mm long. Start by constructing a U-shaped clip with a total width of 8mm, a height of 11mm, and a wall thickness of 2mm on each side, leaving a 4mm wide gap in the center. On top of this clip, add a shallow tray that is 140mm long and 7mm high. This tray should also ha...
wall_thickness = 2; tray_height = 7; tray_width = 15; clip_height = 11; clip_width = 4; holder_length = 140; module marker_holder() { translate([-holder_length / 2, -(clip_width + tray_width) / 2, 0]) { union() { difference() { cube([holder_length, clip_width + 2 * wall_thickness, clip_height]); ...
glb/cad_b52610c76188.glb
Create a wall mount for a center channel speaker. Start with a rectangular mounting plate 94mm wide, 78mm high, and 3mm thick, with all four corners rounded to a 15mm radius. In the center of the plate, cut a rectangular hole 65mm wide and 50mm high with 5mm rounded corners. Position four mounting holes with a 4mm dia...
$fn = 200; mountingScrewHeadThickness =10; mountingScrewHeadDiameter = 10; mountingTabHeight = 10; mountingScrewDiameter = 4; mountingPlateHeight = 130; mountingPlateWidth = 112; mountingPlateThickness = 3; mountingTabThickness = 4.3; mountingPlateCornerRadius = 15; mountingPlateScrewHoleDiameter = 4; mountingTabWid...
glb/cad_fe744cc8f054.glb
Create a vacuum cleaner swivel holder consisting of a hollow ring with an attached rectangular protrusion. Start by constructing a vertical cylinder with an outer diameter of 44mm, an inner diameter of 40mm, and a height of 10mm. On the outer wall of this ring, attach a rectangular block that serves as a neck and tip. ...
ring_diameter=40; ring_width=2; ring_height=10; $fn=120; nose_height=10; nose_length=11; nose_tip=3; nose_neck_width=13; nose_tip_width=19; union(){ difference(){ cylinder(ring_height,d=ring_diameter+2*ring_width); translate ([0,0,-1]) cylinder(ring_height+2,d=ring_diameter); } translate([...
glb/cad_80adfd8c4b9d.glb
Create a sculpture titled "Sail With Me" by extruding a specific 2D polygon into a 3D shape. Start with a polygon defined by the vertices [0,0], [30,0], [5,20], [3,50], and [10,3] in millimeters. Extrude this shape to a total height of 60mm. During the extrusion process, apply a twist of 115 degrees and scale the top f...
color("gray") translate([-15, -15, 30]) linear_extrude(height = 60, twist = 115, scale = .1, center = true, slices = 50) polygon(points=[[0,0],[30,0],[5,20],[3,50],[10, 3]], center = false);
glb/cad_4d3f94e1ebcd.glb
Create a 3D letter block by finding the intersection of two extruded characters. First, create a bold, sans-serif character "3" with a height of 10mm, extruded linearly to a thickness of 100mm and centered on all axes. Rotate this first extrusion 90 degrees around the X-axis. Second, create a bold, sans-serif character...
character1="3"; character2="D"; intersection() { rotate([90,0,0]) linear_extrude(height = 100, center=true) text(character1, font = "arial:style=Bold", "center", size = 10, valign="center", halign="center"); rotate([90,0,90]) linear_extrude(height = 100, center=true) text(character2, font = "arial:style=Bold", "cente...
glb/cad_ec85904d361e.glb
Create a centrifugal air pump rotor. Start by creating a central cylindrical base with a radius of 25mm and a height of 2mm. Around this base, add 10 equally spaced curved paddles. Each paddle is formed by the intersection of a large cylinder and a cube, resulting in a curved blade shape with a height of 22mm. The bl...
element = "Rotor"; base_r = 25; base_h = 2/1; blade_num = 10; blade_h = 22; engine_shaft_r = 4; engine_shaft_h = 8; paddle_l = base_r*0.7; paddle_h = blade_h; paddle_num = blade_num; $fn = 50; screw_r = 1.5; holl_r = screw_r + 0.2; nut_r = 3; nut_h = 3; bearing_r = 5.2; bearing_h = 4.2; bearing_heat_r = bearin...
glb/cad_de4894b424fd.glb