Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a headband repair part by designing a curved, C-shaped band with a height of 6.5mm. The main body is based on a circular arc with an outer radius of 57.5mm and a thickness of 2mm. This arc is slightly elongated along one axis by a factor of 1.05. To form the main structure, create a hull between a circle of 57.5...
th = 2; headband_h = 6.5; headband_d = 115; headband_r = headband_d/2; facets = 64; headband_separation = 50; headband_skew = 1.6; linear_extrude(height=headband_h, center=false) scale([1,1.05,1]) difference() { hull() { circle(r=headband_r, $fn=facets); translate([headband_r*headband_skew,0,0]) ci...
glb/cad_24280477df62.glb
Create a portable turntable fidget toy by stacking three concentric cylindrical components along a central vertical axis. Start with a base cylinder that has a radius of 4.1mm and a total height of 7.5mm. On top of this base, center a second, wider cylinder with a radius of 5.1mm and a height of 0.7mm. At the very top ...
$fa = 0.3; $fs = 0.3; height_insert = 3; height_griff = 4.5; whole_r_bearring = 4.1; distance_ring_z = 0.7; distance_ring_r = whole_r_bearring + 1; s = 1.5; radius_griff = 8; module stuetz(rst) { hoch = height_insert + height_griff + 0.5; difference() { cylinder(hoch, r=rst) ; translate(...
glb/cad_0841c9a303e7.glb
Create a portable turntable fidget spinner designed as a railway track. Start with a rectangular base plate measuring 35mm by 33mm with a height of 3.5mm. Centered in this base, create a circular hole with a radius of 11mm that passes through the base. On top of the base, place three rectangular sleepers, each 32mm lo...
$fa = 0.3; $fs = 0.3; o = 0.1; o2 = o + o; env_z = 7; bearing_r1 = 11; spurweite = 16.5 ; schwelle_l = 32; schwelle_b = schwelle_l * 0.3; schwelle_h = 3; schwellen_anzahl = 2; schwellen_dist = 9; schwellen_dist_b = schwelle_b + schwellen_dist; bett_b_add = 3; bett_l = (schwellen_anzahl * 2 * schwellen_dist_b) + ...
glb/cad_88ed1b1effc2.glb
Create an Isaac X Axis Opto Flag by combining three rectangular volumes into a single base. Start with a primary rectangular slab measuring 20mm in length, 7mm in width, and 1.5mm in height. Attach a second slab of 5mm by 30mm by 1.5mm to the side, and add a third rectangular block measuring 7mm by 7mm with a height of...
module isaac_xflag(){ difference(){ union(){ cube([20,7,1.5], center = false); cube([5,30,1.5], center= false); translate([13,0,0]) cube([7,7,5], center = false); } union(){ translate([17,3.5,-1]) cylinder(r=1.5, h=10,$fn = 100); } } } isaac_xflag();
glb/cad_ac77d70b9539.glb
Create a parametric linear bearing with a total height of 24mm. Start with a solid cylinder that has an outer diameter of 15mm. Remove a central cylindrical core with a diameter of 8mm that runs the full length of the part. To create the internal bearing claws, carve out 9 identical radial slots evenly spaced every 40 ...
calc_threshold=0.0001; module bearing1(height, id, od, od_thickness=0, claw_count=9) { od_thickness_p = od_thickness != 0 ? od_thickness : od*0.1; sector=360/claw_count; function p(d, deg) = [cos(deg*sector)*(id+(od-id-od_thickness_p)*d)/2, sin(deg*sector)*(id+(od-id-od_thickness_p)*d)/2]; linear_extrude(height=h...
glb/cad_dc8036e37d46.glb
Create a Nut Clamp for 20mm extrusion consisting of two mirrored brace components. For the top brace, create a central block 32mm wide, 14mm deep, and 20mm high. Remove a central rectangular slot 20mm wide and 9mm deep from the top. At the outer edges of the block, create two vertical holes for M4 bolts, each 30mm de...
include <MCAD/nuts_and_bolts.scad> $fn=100; height = 20; bolt_size = 4; captive_size = 5; translate([0,-20,0]) top_brace(height,bolt_size,captive_size); bottom_brace(height,bolt_size); module fillet(rad,height){ difference(){ translate([0,0,-height/2]) cube([rad-0.05,rad-0.05,height]); cylinder(h=height+1,r=rad,ce...
glb/cad_5c904bd5aded.glb
Create a customizable pin header cover for a 40-pin GPIO header arranged in 2 rows of 20 pins. The overall footprint is based on a pin pitch of 2.54mm. Construct a main rectangular body with a wall thickness of 1.2mm. The total height of the cover should be 9.4mm (calculated as the 7mm pin length plus 2.4mm of additio...
exclude_pins=[1,7,6,35,39]; pin_length=7; pins=40; rows=2; pitch=2.54; wall=1.2; hole_style="square"; hole_tolerance=0.4; jumper_x_tolerance=0.4; jumper_y_tolerance=0.6; scale_compensation=0; jumper_x=pitch+jumper_x_tolerance; jumper_y=pitch+jumper_y_tolerance; pin_height=pin_length+0.8; pin_edge=0.64+hole_t...
glb/cad_600f707caaaf.glb
Create a swivel hook consisting of two identical interlocking components. For each component, start with a central spherical body with a radius of 18mm. Carve a cylindrical void through the center of the sphere with a radius of 8.6mm and a length of 30mm to create a hollow core. On opposite sides of this central sphe...
c=100; scale(1.5) swivel(); module swivel(){ inner(); translate([-18,2,0]) rotate([90,0,0]) hook(); outer(); translate([7,-2,0]) rotate([90,0,180]) hook(); } module outer(){ difference(){ union(){ sphere(r=12, $fn=c); rotate([90,0,90]) cylinder(r=12, h=4.5, $fn=c); } sphere(r=10, $fn=c); translat...
glb/cad_e55f81660bed.glb
Create a parametric dinghy toe strap plate by forming a rounded rectangular base. Start with two cylinders of 16mm diameter and 4mm height, positioned with their centers 40mm apart along the x-axis. Create a convex hull encompassing these two cylinders and apply a 3mm fillet or rounding to all edges to soften the geome...
$fn=72; module toestrapplate(size=40){ difference(){ minkowski(){ hull(){ translate([size/2,0,0]) cylinder(r=8,h=4,center=true); translate([-size/2,0,0]) cylinder(r=8,h=4,center=true); }; sphere(r=3,...
glb/cad_630e0efa2f45.glb
Create a Dinghy Toe Strap Lacing Strap by designing a flat rectangular bridge with rounded ends. The main body is a plate 6mm thick, spanning a central gap of 60mm, with a total length of 80mm. At each end, center a cylindrical protrusion with a radius of 10mm and a height of 6mm. Through each of these end cylinders,...
$fn=72; module lacingstrap(size=60){ difference(){ hull(){ translate([size/2+10,0,0]) cylinder(r=10,h=6,center=true); translate([-size/2-10,0,0]) cylinder(r=10,h=6,center=true); translate([size/2+10,0,4]) cylinder(r1=10,r2=...
glb/cad_e35c589cbc2b.glb
Create a universal clamping piece consisting of two symmetrical halves that hinge together. Each half is based on a semi-cylindrical shell with an inner diameter of 40mm, an outer diameter of 55mm, and a height of 20mm. Apply a 5mm radius to the outer edges of the main body and a 1mm radius to the smaller connector edg...
inner_diameter = 40; outer_diameter = 55; height = 20; clearance = 0.4; clearance_separate_pin = 0.05; radius_on_edge=5; small_radius_on_edge=1; thickness_connector = 12; bore_diameter = 6; bore_offset = 2; clearance_gap = 2; counterbore = "no"; hexnut = "no"; hexnut_size = 10.5; hexnut_depth = 5; $fn=60...
glb/cad_eb48a0c52112.glb
Create a parametric mixing bowl with a 50mm outer diameter. Form the main body as a sphere with a 50mm diameter, then hollow it out by removing a concentric sphere with a 47mm diameter. To create the bowl's open top and a pouring spout, remove the bottom half of the model using a centered cube that is 50mm in all dimen...
bowlOuterDiameter = 50; footLift = 0; pourSpout = true; footerOuterDiameter = bowlOuterDiameter*.75; footerHeight = bowlOuterDiameter/2+footLift; $fn = 60; bowl(); module bowl(){ difference(){ union(){ sphere(d=bowlOuterDiameter); if (pourSpout){ hull(){ ...
glb/cad_00e09b2e3dd3.glb
Create a rectangular electronic dice base with overall dimensions of 80.4mm in length, 54.8mm in width, and 17mm in height. The main body is a hollowed-out shell with a wall thickness of 0.2mm. From the top surface, remove a central rectangular block measuring 76.2mm by 50.8mm and 15mm deep to create the interior cavit...
$fn=100; ep=3; e=0.2; module tube(D,H,e) { difference() { cylinder(d=D+2*e,H+e); translate([0,0,ep]) cylinder(d=D,H+e); } } difference() { union() { difference() { translate([-ep,-ep,0]) cube([76.2+2*ep,50.8+2*ep,17]); translate([-e,-e,2]) cube([76.2+2*e,50.8+2*e,17])...
glb/cad_2d2d3d0e1a1d.glb
Create a 3D model of The Yellow Sign. Start by creating a horizontal bar that is 180mm long, 10mm wide, and 5mm thick, centered on the X-axis. Add a large circular arc with a radius of 75mm, a thickness of 5mm, and a height of 5mm. This arc should be 100 degrees of a circle, rotated -40 degrees and positioned so its ...
module stave(){ hull(){ cylinder(d=10, h=5); translate([180,0,0]) cylinder(d=10, h=5); } } module arc( height, depth, radius, degrees ) { render() { difference() { rotate_extrude($fn = 100) translate([radius - height, 0, 0]) ...
glb/cad_0f941366dabe.glb
Create a Simple Transistor Tester case. Start by creating a main rectangular box with outer dimensions of 104mm in width, 80mm in depth, and 19mm in height. The box should have a base thickness of 1.5mm and walls that are 1.5mm thick. Hollow out the interior of the box starting from a height of 1.5mm, leaving a solid...
$fn = 100; case_x = 104; case_y = 80; switch_w = 6; screw_x_dist = 60; screw_y_dist = 40; switch_y_dist = screw_y_dist + 23; switch_height = 3; bottom_height = 1.5; d_wall = 1.5; battery_x = 30 + d_wall/2; screw_mnt_width = 6; mount_x_offs = d_wall + screw_mnt_width/2 + 2; mount_y_offs = d_wall + screw_mnt_width/2 + 5...
glb/cad_192893094d72.glb
Create a Simple Transistor Tester case. Start with a rectangular outer box measuring 104mm in width, 80mm in depth, and 20mm in height. The box has a baseplate thickness of 1.5mm and walls of 1.5mm. Divide the interior into two main compartments. The larger compartment is for the transistor tester module, and the smal...
$fn = 100; case_x = 104; case_y = 80; screw_x_dist = 60; screw_y_dist = 40; baseplate_h = 1.5; wall_d = 1.5; switch_y_dist = screw_y_dist + 23; switch_h = 3; switch_w = 6; battery_x = 29 + wall_d/2; battery_y = 52.2; battery_cylinder_r = 5; screw_d = 3.3; pin_d = 2.7; mount_port_height = 7; mount_port_width = 6; mo...
glb/cad_0db7919aee94.glb
Create a bed leveler tool consisting of a central base block and four protruding legs. Start with a rectangular base block measuring 40mm in width, 84.2mm in depth, and 10mm in height. In the center of this block, create a vertical cylindrical hole that passes through the entire height; this hole should have an inner d...
rod_diameter = 8.2; rod_cc_distance = 78.8; dial_gauge_diameter = 9.5; tolerance = .3; clearance = 2; base_delx = 40; base_delz = 10; leg_dely = rod_diameter + 2*clearance; leg_delz = 8; leg_delx = 20; shaft_delz = base_delz + leg_delz; inner_radius = tolerance + dial_gauge_diameter / 2; outer_radius = inner_radiu...
glb/cad_43afcb48dcc7.glb
Create a Scandinavian flag model consisting of a rectangular base with a cross inset. Start by creating a solid rectangular base 80mm long, 60.54mm wide, and 1.6mm thick. From this base, remove a cross shape composed of two intersecting rectangular bars. The vertical bar of the cross should be centered along the width,...
show_parts = "all"; tolerance = 0.05; flag_length = 80; flag_width = 60.54; cross_width = flag_width / 7; thickness = 1.6; flag_color = "#E31836"; cross_color = "white"; module flag_cross(fit=0) { rotate([0,0,90]) cube([cross_width + fit, flag_length, thickness / 2], center=true); translate([-flag...
glb/cad_31529238063a.glb
Create a power supply mount and cover set consisting of three main components. First, create two identical clamps. Each clamp starts as a block 65mm wide, 20mm high, and 5mm thick. Remove a rectangular section from the center measuring 55mm wide, 7mm deep, and 10mm high, starting 5mm from the side. On the side of each ...
m3_diameter = 3.75; m3_nut_diameter = 6.3; module psu_clamp(thickness=5) { difference() { union() { cube([65,thickness,20]); translate([0,-15,0]) cube([65,15,10]); } translate([5,-11,0]) cube([55,7,10]); translate([10,-21,0]) cube([45,10,10]); translate([20,7,15]) rotate([90,0,0]) ...
glb/cad_8cfedeeb5ed9.glb
Create a Prusa i3 Relay Mount designed to clamp onto an aluminum frame. Start with a main body composed of three joined rectangular blocks: one measuring 30x9x70mm positioned at [20, -4, 0], one measuring 65x5x10mm at the base, and one measuring 65x15x10mm positioned at [0, -15, 0]. Carve out a central rectangular vo...
m3_diameter = 3.75; m3_nut_diameter = 6.3; module relay_clamp() { difference() { union() { translate([20,-4,0]) cube([30,9,70]); cube([65,5,10]); translate([0,-15,0]) cube([65,15,10]); } translate([5,-11,0]) cube([55,7,10]); translate([10,-21,0]) cube([45,10,10]); translate([2...
glb/cad_4c871171b072.glb
Create a Samla Drybox Tube Holder. The object is a bracket designed to hold a cylindrical tube. The main body is a vertical structure with a height of 230mm. The profile is based on a hull of two shapes: a lower section with a corner radius of 18mm and a width of 49.5mm, and an upper section with a corner radius of 1...
mode = "build"; model = "tube_holder"; design_preview_resolution = 0.66; design_render_resolution = 0.44; build_preview_resolution = 0.22; build_render_resolution = 0.11; build_copies = 4; tube_outer_diameter = 15; tube_inner_diameter = 13; tube_outer_gap = 0.1; tube_inner_gap = 0.1; spool_gap = 0.2; spool_width = 6...
glb/cad_045434f6426a.glb
Create a Prusa i3 Rod Clamp consisting of two distinct parts: a top clamp and a rod end. For the top clamp, create a rectangular block 55mm long, 20mm wide, and 20mm high. Remove a central rectangular section 40mm long, 7mm wide, and 20mm high, starting 5mm from the front edge. At the rear end, integrate a cylinder w...
module rod_end() { difference() { union() { translate([6,0,0]) cube([13,19,24]); translate([7,9.5,0]) cylinder(24,10,10); translate([13,9.5,33]) rotate([0,90,0]) cylinder(6,10,10); translate([13,0,0]) cube([6,19,33]); } translate([12,9.5,33]) rotate([0,90,0]) cylinder(10,4.2,4.2); ...
glb/cad_41fc717551ff.glb
Create a decorative pyramid model composed of 472 individual cubes, each measuring 5mm on all sides. Stack these cubes so that their faces touch, forming a stepped pyramid structure. To allow the ornament to be hung, remove material to create four vertical holes. Each hole should be a cylinder with a radius of 1.25mm...
include <cube_positions.scad>; cube_pyramid_1(); module cube_pyramid_1() { difference() { join_cubes(cubes_1,1,473,5); color("red") translate([49,50,51.5]) rotate([0,90,0]) cylinder(r=1.25,center=true,h=10,$fn=24); color("red") translate([50,10.5,17]) cy...
glb/cad_bc3b579abb9d.glb
Create a Box_test object by constructing a cube with equal dimensions of 10mm for the length, width, and height.
length=10; ext = 10; linear_extrude(ext) square(length);
glb/cad_a1dad81ff2e6.glb
Create a Z-probe sled mount consisting of a base, a vertical arm, and a horizontal arm. Start with a rectangular base measuring 20mm by 9mm with a height of 3mm. From this base, extend a vertical arm measuring 4mm wide and 46mm tall with a height of 7.5mm, positioned 8mm from the base's left edge. Attached to the top o...
m3_diameter = 3.75; difference() { union() { cube([20,9,3]); translate([8,0,0]) cube([4,46,7.5]); translate([12,46,0]) cube([37,4,7.5]); translate([21,44,0]) cylinder(7.5,4.5,4.5,$fn=32); translate([12,46,0]) cylinder(7.5,4,4,$fn-32); } translate([5,4.5,-1]) cylinder(5,1.25,1.25,$fn=32); t...
glb/cad_8fb5b05a9dbb.glb
Create a Prusa i3 Z-probe Sled Mount. The main body consists of two parallel vertical cylinders, each 22mm high with a 9.5mm radius, spaced 45mm apart along the X-axis. These cylinders serve as housings for LM8UU bearings. Between these cylinders, add a central vertical plate 50mm wide, 8mm deep, and 20mm high, positi...
module support(diam=2,height=20) { difference() { cylinder(height,diam/2,diam/2,$fn=32); cylinder(height,(diam-0.5)/2,(diam-0.5)/2,$fn=32); } } m3_diameter = 3.75; m3_nut_diameter = 6.3; difference() { union() { cylinder(22,9.5,9.5); translate([45,0,0]) cylinder(22,9.5,9.5); translate([2,14,...
glb/cad_405ee78b09a1.glb
Create an 18650 battery holder arranged in a grid of 7 rows and 2 columns. Each individual cell is a rectangular cradle with a base thickness of 1.5mm and an overall height of 14mm. The interior of each cell features a cylindrical cutout with a radius of 9mm and a length of 69mm to accommodate the battery. The walls o...
$fn=200; reserve = 0.6; wall = 1.5; height = 14; battR = 9; battH = 65+4; pinW = 10; pinH = 10; pinLegW = 2; pinLegH = 8; rows = 7; cols = 2; handle = true; handleH = 2; handleR1 = 2.5; handleR2 = 5; module pin() { union() { translate([0,0,height-(pinH+reserve)/2]) cube([pinW+reserve,1,pinH+reserve], true); ...
glb/cad_f03cf2aed9b1.glb
Create a geometric sculpture consisting of three identical cylinders, each 40mm long with a diameter of 5mm. The cylinders are arranged to intersect at a single central point, with each cylinder aligned along one of the three primary Cartesian axes. Position the first cylinder horizontally along the X-axis, centered at...
translate([0, 20, 0]) rotate([90, 0, 0]) cylinder(40, 5, 5); translate([-20, 0, 0]) rotate([0, 90, 0]) cylinder(40, 5, 5); translate([0, 0, -20]) rotate([0, 0, 90]) cylinder(40, 5, 5);
glb/cad_0246b0f54603.glb
Create a Vaude Aqua Front QMR Rail 2.0 Hook. Start by constructing a central cylindrical body with a height of 12mm. The base of this body is a cylinder with a diameter of 18mm, which tapers upward to a top diameter of 20.5mm. At the top, add a knob that is 6mm high, tapering from the 20.5mm diameter to an outer diamet...
NUM_GROOVES = 30; GROOVES = 1.2; GROOVES_OUTER_DIA = 18; GROOVES_INNER_DIA = 12; BOTTOM_INNER_DIA = 9; BOTTOM_HEIGHT = 2; BOTTOM_DEPTH = 5; SCREW_HOLE_DIA = 4.5; TOP_OUTER_DIA = 20.5; TOP_INNER_DIA = 12; TOP_COUNTERSUNK = 1; TOP_DEPTH = 7; KNOB_OUTER_DIA = 23; KNOB_HEIGHT = 6; MID_DIA = 11; BODY_HEIGHT = 12; HOOK_...
glb/cad_f95242331365.glb
Create a Parametric Snowflake Generator by constructing a symmetrical, six-fold radial pattern. Start with a central circular ring with an outer diameter of 5mm and a thickness of 1mm. From this center, build a complex geometric web by repeating a specific "flake part" every 60 degrees around the center. Each flake p...
el = 20; ft = 1; cmt = el / 5; xw = 0.4; nc = 12; bw = 1; make_2d = false; topper = false; flatTopper = true; rs = floor(rands(0,pow(10,6),1)[0]); echo("Random number seed: ", rs); cit = xw; th = sqrt(3) * el/2; rv = rands(0,1,nc*5, seed_value = rs); module flake_part(){ rotate([0,0,30]) translate([0,-el/2,0]) ...
glb/cad_c930eddd28ac.glb
Create a Seam Guide by constructing a capsule-like volume. Start with two cylinders, each with a diameter of 15mm and a height of 8.4mm, positioned 12.5mm apart center-to-center along the Y-axis. Create a convex hull that encompasses both cylinders to form a solid with a total length of 40mm, a width of 15mm, and a hei...
magnet_diameter=8; magnet_height=4; guide_length=40; bottom_thickness=2; top_thickness=2; magnet_clearance=0.1; guide_width=15; insurance=false; module seam_guide() { gh=magnet_height+magnet_clearance*2+top_thickness+bottom_thickness; c=(guide_length-guide_width)/2; translate([0,0,gh/2]) difference() { ...
glb/cad_c64600445ad4.glb
Create a parametric tool panel hook with a consistent height of 7mm. Start by placing two rectangular pads, each 2.5mm wide and 7mm long, positioned 25mm apart along the Y-axis. Connect these pads with two joint blocks that are 3mm wide, 5mm long, and 7mm high. Add a central bar that is 4mm wide and 39mm long (spanning...
padHeight=7; padLength=7; padWidth=2.5; padsDistance=25; jointHeight=3; jointLength=5; jointWidth=3; barHeight=padHeight; barLength=5; barWidth=4; hookLength=20; module hook() { difference() { union() { translate([0, 0, padHeight/2]) cube([padWidth, padLength, padHeight], center = true); translate([0,...
glb/cad_26bd107ae961.glb
Create a customizable vase drawer system consisting of a storage rack and matching drawers. Construct the rack as a rectangular frame with a total width of 131.2mm, a depth of 71.4mm, and a height of 131.2mm. The rack features a backplate with a thickness of 0.8mm. Integrate mounting holes with a diameter of 4mm and s...
drawpart = "debug"; rback = 0.8; solidback = false; bholes = "corners"; bscrew = 4; bscaph = 3; bscapd = 12; rrows = 6; rcols = 5; rcl = 0.3; rwall = 0.6; bracerst = 4; bracersb = 1; drows = 1; dcols = 1; dradius = 1; dret = "back"; dwidth = 23; ddepth = 67; dheight = 20; dhm = 1; dbottom = 0.8; dslide = 3; dwall =...
glb/cad_d498126ecf9d.glb
Create a ring with a female gender symbol motif. Start by constructing a hollow cylinder with an inner diameter of 17mm, an outer diameter of 21mm, and a height of 5mm. Attached to the outer wall of this cylinder, center a small cross-shaped protrusion. Extending from the far end of this cross, attach a sphere with a r...
inner_diameter = 17; inner_radius = inner_diameter/2; thickness = 2; outer_radius = inner_radius+thickness; hight = 5; difference(){ union(){ cylinder(r=outer_radius,h=hight,$fn=100); translate([0,-1,0])cube([outer_radius+15,2,2]); translate([outer_radius+15,0,1])sphere(r=5,$fn=100); translate([outer_radius+3...
glb/cad_b0cbff4030df.glb
Create a ring with an inner diameter of 16.5mm and a wall thickness of 1mm. Start by constructing a base cylinder with an outer radius of 9.25mm and a height of 4mm. To this base, add three spheres to create a decorative protrusion on one side: place the first sphere with a radius of 5mm centered at the outer radius (9...
inner_diameter = 16.5; inner_radius = inner_diameter/2; thickness = 1; outer_radius = inner_radius+thickness; hight = 4; difference(){ union(){ cylinder(r=outer_radius,h=hight,$fn=100); translate([outer_radius,0,2])sphere(r=hight+1,$fn=100); translate([outer_radius-2,-hight,2])sphere(r=hight-1,$fn=100); trans...
glb/cad_ccb984c2a18a.glb
Create a ring with a height of 4mm. Start by forming a main circular band with an inner diameter of 16.5mm and an outer diameter of 18.5mm. To add decorative elements to the outer wall, create two small spheres, each with a radius of 1mm. Position the first sphere so its center is 9.25mm from the ring's center, offset ...
inner_diameter = 16.5; inner_radius = inner_diameter/2; thickness = 1; outer_radius = inner_radius+thickness; hight = 4; difference(){ union(){ cylinder(r=outer_radius,h=hight,$fn=100); translate([inner_radius,0,0]) linear_extrude(height = hight, center = false, convexity = 0, twist = 180,$fn=100) translate([...
glb/cad_81d5f3a459df.glb
Create a Parametric PCB Holder consisting of a rectangular base plate and four corner mounting posts. First, create a rectangular base plate with a width of 61.4mm, a length of 91.4mm, and a height of 2mm. Remove a central rectangular section from this plate to create a frame, leaving a border with an outer width of ...
PCB_WIDTH = 56; PCB_BREADTH = 86; PCB_HEIGHT = 1; PCB_CLEARANCE = 4; PCB_EDGE_CLIP = 2; MOUNT_SIZE = 4; MOUNT_EXTRA = 2; FUDGE_FACTOR = 0.3; BASE_PLATE_WIDTH = PCB_WIDTH + (2 * (MOUNT_SIZE - FUDGE_FACTOR - PCB_EDGE_CLIP)); BASE_PLATE_BREADTH = PCB_BREADTH + (2 * (MOUNT_SIZE - FUDGE_FACTOR - PCB_EDGE_C...
glb/cad_f598821ab981.glb
Create a Parametric PCB Holder consisting of a rectangular base plate and four corner mounting posts. First, create a rectangular base plate centered on the origin with a width of 61.4mm, a length of 91.4mm, and a height of 2mm. Cut a rectangular hole through the center of this plate, leaving a border of 6mm wide on ...
PCB_WIDTH = 56; PCB_BREADTH = 86; PCB_HEIGHT = 1; PCB_CLEARANCE = 4; PCB_EDGE_CLIP = 2; MOUNT_SIZE = 6; MOUNT_EXTRA = 4; FUDGE_FACTOR = 0.3; BASE_PLATE_WIDTH = PCB_WIDTH + (2 * (MOUNT_SIZE - FUDGE_FACTOR - PCB_EDGE_CLIP)); BASE_PLATE_BREADTH = PCB_BREADTH + (2 * (MOUNT_SIZE - FUDGE_FACTOR - PCB_EDGE_C...
glb/cad_ee86c4ffae4c.glb
Create a Customizable Fan Grill Cover. Start by creating a square outer frame with a side length of 40mm and a thickness of 2.7mm. The corners of this square should be rounded. At each of the four corners of the frame, center a cylindrical screw hole with a diameter of 3.3mm. These holes should penetrate through the t...
fan_preset = "40"; fullcover_screw = 1; frame_option = "full"; min_border_size_in_millimeter = 1.92; grill_pattern = "bean"; moucharabieh_grid_s = 15; moucharabieh_grid_w = moucharabieh_grid_s/10; bean_r1 = 4; bean_r2 = bean_r1*2; bean_spacing = 1.875*bean_r2; grill_pattern_rotation = 0; line_size_in_millimter ...
glb/cad_b32767be0579.glb
Create a spinning top by combining three stacked geometric sections. Start with a cone that has a base radius of 20mm and a height of 12mm, tapering from the wide base to a point at the top. Directly on top of this cone, place a short cylinder with a radius of 20mm and a height of 4mm. Finally, add a second tapering se...
translate([0,0,-12]) cylinder(r1=0,r2=20,h=12); cylinder(r=20,h=4); translate([0,0,4]) cylinder(r1=20,r2=3,h=7); scale([0.1,0.1]) cylinder(r=30,h=16);
glb/cad_2e9ede56ab9a.glb
Create a spinning top toy by combining three stacked geometric volumes. Start with a base cylinder that has a radius of 20mm and a height of 4mm. Directly on top of this base, add a truncated cone with a height of 7mm, tapering from a bottom radius of 20mm to a top radius of 3mm. Finally, center a small cylinder on the...
cylinder(r=20,h=4); translate([0,0,4]) cylinder(r1=20,r2=3,h=7); scale([0.1,0.1]) cylinder(r=30,h=16);
glb/cad_4c947d3dd6b6.glb
Create a key-shaped keychain. Start with a base consisting of a ring and a shaft. The ring is a cylinder with a radius of 9mm and a height of 3.5mm, with a concentric circular hole removed from the center with a radius of 6mm. Attached to this ring is a rectangular shaft measuring 7mm wide, 42mm long, and 3.5mm thick, ...
use <Write.scad> module sleutel(naam="naam"){ scale([1.2,0.8,1]) difference(){ union(){ translate([-3,8,0]) cube([7,42,3.5]); cylinder(h=3.5,r=9); } translate([0,0,-1]) cylinder(h=6,r=6); } translate([1,30,0]) difference(){ cube([10,9,3.5]); translate([5,2,-1]) cube([6,3,6]); translate([7,4,-1]) cube([5,3,6]); ...
glb/cad_f23c1472dd4c.glb
Create a circular lock system consisting of a base disc and a matching key. First, construct the base disc as a cylinder with a height of 2mm and a radius of 20mm. Hollow out the center by removing a smaller concentric cylinder with a radius of 13.33mm. To create the locking mechanism, remove four rectangular slots f...
module slot(h, r1 , w1) { module mycyl(h, r) { translate(v=[0,0,h/2]) cylinder(h, r=r, center = true); } module slotx(off,off2) { translate(v=[0,r1*2/3-w1/2-off2,h/2]) cube(size=[w1+1,w1*2-off,h*2], center=true); } module slotx2(off,off2) { translate(v=[-1.5,r1*2/3-w1/2-off2,h/2]) cube(size=[w1*2-...
glb/cad_7d8024d9d358.glb
Create a parametric idler pulley designed to hold a bearing with an outer diameter of 10mm and a width of 4mm, supporting a 5mm wide belt. Start by constructing the main body as a series of concentric cylinders. Create a central cylindrical hub with a radius of 6mm (bearing radius 5mm plus 1mm wall thickness) and a h...
use <hardware.scad>; bearingsize = 10; bearingwidth = 4; bearingclampsize = 0.5; bearingclamps = 3; bearingclampangle = 60; pulleythick = 1; pulleyflangesize = 2; beltwidth = 5; $fn = 30; module beltpulley() { difference() { union() { translate([0, 0, pulleythick / 2]) cylinder(h = pulleythick, r = bearingsize...
glb/cad_0541b4dbf420.glb
Create a sphere support by starting with a central cube that is 100mm on all sides, centered on the origin. From this main cube, remove two smaller cubes, each also 100mm in size, to create a hollowed-out geometric frame. Position the first smaller cube so its center is offset by 20mm along the X, Y, and Z axes in the ...
$taillecube=100; rotate([45,-45,0]) difference () { cube (size=$taillecube, center=true); translate ([$taillecube/5,$taillecube/5,$taillecube/5]) cube (size=100, center=true); translate ([-$taillecube/5,-$taillecube/5,-$taillecube/5]) cube (size=100, center=true); }
glb/cad_6d771901f0bb.glb
Create a model of stairs for a train layout using a 1:48 scale. The assembly consists of two side stringers, 17 treads, and a railing system. First, create two identical stringers. Each stringer is a profile with a thickness of 1.5mm. The first step has a height of 8mm, and subsequent steps are created by repeating a ...
$fn=32 * 1; Scale = 48; Run = 10.0; Total_Rise = 12; Tread_Thickness = 1.0; Rise = 8.0; Total_Run = 14.166; Number_of_Steps = 17; Stringer_Length = 18.097; Stringer_Height = 11.025; Angle = 38.66; First_Step_Height = 8.0; Tread_Width = 36; Stringer_Thickness = 1.5; Tread_Overhang = 0.5; Baluster_Width = ...
glb/cad_a3156406be8b.glb
Create a cable holder by starting with a rectangular base block measuring 102mm in length, 15mm in width, and 15mm in height. Along the length of this base, create a series of identical cutouts to hold cables. Each cutout consists of a cylindrical hole with a diameter of 4.5mm and a depth of 30mm, oriented horizontally...
$fn = 40; h = 30; d = 4.5; d2 = 4.5; dl = 5; sh = 30; vs = 5; module my(){ translate([9,-7,8]) rotate([270,0,0]) cylinder(h,d,d2); translate([6.5,-7,11]) cube([dl,sh,vs]); } dl1 = 102; sh1 = 15; vs1 = 15; module otv() { difference(){ cube([dl1,sh1,vs1]); my(); translate([12,0,0]) my(); translate([24,0...
glb/cad_5466ad864e7a.glb
Create a cable holder by starting with a rectangular base block measuring 102mm in length, 15mm in width, and 15mm in height. Along the length of this block, create a series of identical cutouts to hold cables. Each cutout consists of a vertical cylindrical hole with a diameter of 4.5mm and a depth of 30mm, combined wi...
$fn = 40; d = 4.5; dl = 5; sh = 30; vs = 5; dl1 = 102; sh1 = 15; vs1 = 15; module my(){ translate([9,-7,8]) rotate([270,0,0]) cylinder(2*sh1,d,d); translate([6.5,-7,11]) cube([dl,sh,vs]); } module otv() { difference(){ cube([dl1,sh1,vs1]); my(); for(i = [0:(dl1/12.75-1)]){ translate([2.71*d*i,0,0]) my...
glb/cad_8a8c9554fb9e.glb
Create a cable holder by starting with a rectangular base block measuring 102mm in length, 15mm in width, and 15mm in height. Along the length of this block, create a series of nine identical cutout sections spaced 12mm apart, starting from an initial offset of 9mm from the edge. Each cutout consists of two intersectin...
$fn = 40; module my(){ translate([9,-7,8]) rotate([270,0,0]) cylinder(h = 30,d = 9); translate([6.5,-7,11]) cube([5,30,5]); } module otv() { difference(){ cube([102,15,15]); my(); translate([12,0,0]) my(); translate([24,0,0]) my(); translate([36,0,0]) my(); translate([48,0,0]) my();...
glb/cad_2f3a0de83606.glb
Create a table-like structure consisting of a tabletop, legs, and supporting frames. Start by creating a tabletop that is 1250mm long, 600mm wide, and 32mm thick. The tabletop should have a rounded front edge with a radius of 600mm. Construct two identical leg assemblies. Each leg assembly begins with a rectangular bl...
gambaY = 750; gambaX = 500; gambaZ = 27; qlato = 100; spessore_piano = 32; spessore_gamba = 27; nH = 2; nV = 2; hspace = (gambaX - (qlato * nH)) / (nH + 1); vspace = (gambaY - (qlato * nV)) / (nV + 1); dgambe = 892; lung_piano = 1250; larg_piano = 600; module gamba() { difference() { cube([gambaX, gambaY, gambaZ]); ...
glb/cad_63c866ad3d66.glb
Create a single link for a drag chain with an external height of 13.3mm, an external width of 17mm, and a total length of 16mm. The main body is formed by a hull connecting two cylinders with a radius of 6.5mm, centered 12mm apart along the length axis. At one end of the link, create a female anchor by drilling a hol...
h=13; l=25; a=16; b=12; rh=2.4; rm=1.8; ah=1.5; difference() { union() { difference() { hull() { translate([0,b/2,0])cylinder(h=a+0.6, r=h/2, $fn=100, center=true); translate([0,-b/2,0])cylinder(h=a+0.6, r=h/2, $fn=100, center=true); } translate([0,(b/2)+1.5,0])cylinder(h=a+3, r=rh, $fn=100...
glb/cad_178be459b6f7.glb
Create a Genkei PLA Spool holder designed to fit a metal frame bar. Start by constructing a main cylindrical body with an outer diameter of 36mm and an inner bore of 32mm, extending to a length of 85mm. This hollow cylinder serves as the spool axle. At one end of the cylinder, attach a rectangular mounting block. This ...
$fn=100; barlen=85; od=36; id=32; framebar=5.4; t=5.2; w=od+10; r=(od-id)/2; difference(){ union(){ difference(){ translate([0,0,-od/2])cube([3*t,w,od+r*1.5+t]); translate([framebar,-0.1,-od/2-0.1])cube([framebar,w+0.2,od]); translate([framebar*3/2,-0.05,od/2])rotate([-90,0,0])cylinder(d=framebar,h=w+0.1); } ...
glb/cad_0a2bacbeab3f.glb
Create a Single Z motor pulley for a Prusa i3. Start by creating a central cylindrical shaft with a diameter of 5mm. Around this shaft, build a toothed pulley section with 28 teeth using an MXL profile. The toothed section should have a height of 6mm. Add a base flange below the teeth and a retainer flange above the t...
include <polyScrewThread.scad> PI=3.141592; m5nd = 9.1+0.4; m5nh=4; m6nd = 11.3+0.4; m6nh=4; teeth = 28; profile = 1; motor_shaft = 0; shaft_count= 10; m3_dia = 3.2; m3_nut_hex = 1; m3_nut_flats = 5.7; m3_nut_depth = 2.7; retainer = 1; retainer_ht = 1.5; idler = 1; idler_ht = 1.5; pulley_t_ht = 6; pulley_b_ht = ...
glb/cad_4ae1aac55ba7.glb
Create a Z motor nut for a Prusa i3. Start with a circular base plate 15mm in diameter and 0.3mm thick. Centered on this base, build a hexagonal column with a total height of 30mm. The main body of the column is a hexagonal prism with a diameter of 12mm (measured across the flats), extending from the base to a height o...
include <polyScrewThread.scad> PI=3.141592; h=30; d=12; d1=d/sin(360/6); echo(d1); $fn=32; module mynut() { difference() { union() { translate([0,0,0]) cylinder(h-2, d1/2, d1/2, $fn=6); translate([0,0,h-2]) cylinder(2, d1/2, (d1-4)/2, $fn=6); translate([0,0,0]) cylinder(0.3, 15,15); } translate([0,0,-0.1]) s...
glb/cad_44a9748df95a.glb
Create a Laser Cutter Z-Axis Parametric Alignment Jig using 6mm thick material. The design centers around a primary circular cutout with a diameter of 27.9mm (calculated as a 28.1mm nozzle diameter minus a 0.1mm offset). This central ring is a hollow cylinder with an outer diameter of 41.7mm and an inner diameter of 27...
MaterialThickness = 6; offset = .1; basewidth = 150; Nozzle_dia = 28.1; height = 95; nozzledia = Nozzle_dia - 2* offset; mt = MaterialThickness - 2 * offset; middle = (nozzledia+4*mt) / 2 - mt/2; middle = (nozzledia+4*mt) / 2 - mt/2; ! construct(); export(); projection() export(); module construct() { ro...
glb/cad_5326812cd42e.glb
Create a parametric spoon head by constructing a hollowed-out conical shape with a 16-sided polygonal cross-section. Start by creating a solid 16-sided prism that tapers outward from a base radius of 3mm to a top radius of 6mm over a total height of 16mm. From the center of this volume, remove a smaller 16-sided conica...
wall_depth = 3; spoon_height = 16; difference() { spoon_solid(0, wall_depth, spoon_height, wall_depth * 2); spoon_solid(wall_depth, .1, spoon_height+.1, wall_depth); } module spoon_solid(base, base_wall, top, top_wall) { union() { minkowski() { translate([-.1,0,base]) linear_extrude(file = "half_outline.dxf", height ...
glb/cad_92bbd7c35317.glb
Create a tripod leg for a Boscam 5.8GHz AV receiver stand. Start with a rectangular base measuring 110mm in length, 12mm in width, and 5mm in height. At one end of the rectangle, center a circular hole with a radius of 2mm and a depth of 6mm to serve as a pivot point. Along the length of the leg, remove material to cre...
module leg(){ difference(){ union(){ translate([0,0,0]) cube([20,12,5]); translate([0,6,0]) cylinder(h=5, r=6, $fn=50); translate([70,-70,0]) cube([10,3,5]); translate([67,-67,0]) cube([10,3,5]); translate([0,0,0]) rotate([0,0,-45]) cube([110,3,5]); translate([16,0,0]) rotate([0,0,-48]) cube...
glb/cad_2b3e0a0157ff.glb
Create a Boscam 5.8GHz AV Receiver stand by constructing a base assembly from several rectangular blocks. Start with a main vertical wall 3mm wide, 40mm deep, and 15.5mm high. Attach a second vertical wall 2mm wide, 25mm deep, and 15.5mm high, positioned 30mm along the depth of the first wall. Add a third vertical wall...
difference(){ union(){ translate([0,0,0]) cube([3,40,15.5]); translate([1.5,30,0]) cube([2,25,15.5]); translate([0,0,0]) cube([20,3,15.5]); translate([0,0,0]) cube([20,35,2]); translate([-1.5,30,0]) cube([2,2.5,15.5]); } translate([21,18,2]) rotate([0,0,27]) cube([15,46,5], center=true); t...
glb/cad_f5a880f7e367.glb
Create a Boscam 5.8GHz AV Receiver stand. Start with a solid rectangular base measuring 55.5mm in length, 16.8mm in width, and 15mm in height. From this main block, remove a central rectangular volume to create a hollow interior space measuring 52.5mm by 13.8mm by 15mm, positioned 1.5mm from the side and bottom edges. ...
module inside(){ difference(){ union(){ translate([1.5,1.5,0]) cube([52.5,13.8,15]); } translate([1.5,15.3,7.5]) rotate([0,0,30]) cube([10,4,15], center=true); translate([54,15.3,7.5]) rotate([0,0,-30]) cube([10,4,15], center=true); translate([1.5,1.5,7.5]) rotate([0,0,-30]) cube([10,4,15], center=true)...
glb/cad_28a3bc0d540b.glb
Create a receiver stand for a Boscam 5.8GHz AV receiver. Start with a circular base 46mm in diameter and 3mm thick. Centered on this base, add a smaller cylinder 14mm in diameter and 15mm high. Construct three identical vertical walls spaced 120 degrees apart around the center. Each wall is composed of a rectangular ...
module wall(){ translate([-5.5,4.5,3]) difference(){ union(){ translate([0,0,0]) cube([11,18,6]); translate([0,0,0]) cube([11,12,12]); translate([0,12,6]) rotate([0,90,0]) cylinder(h=11, r=6, $fn=50); } translate([2.75,2.5,0]) cube([5.5,15.5,12]); translate([-1,9,6]) rotate([0,90,0]) cylinde...
glb/cad_5708b1d620d1.glb
Create a Mosquito Bite Xer tool by combining a cylindrical base with a specialized textured top. Start by creating a cylinder with a radius of 6mm, a height of 15mm, and a 30-facet resolution to give it a faceted, prismatic appearance. Position this cylinder so its top face sits at the origin. On top of this base, plac...
R = 12; THICKNESS = 1.2; H = 15; FN = 30; module bite_xer() { union(){ intersection(){ union(){ cube([THICKNESS, R, R], center = true); rotate(a=90, v=[0,0,1]) cube([THICKNESS, R, R], center = true); } sphere(r=R/2, $fn=FN); } translate([0,0,-H]) cylinder(h=H, r=R/2, $fn=FN); } } bite_xer();
glb/cad_7f1bb1dca05f.glb
Create a DrinkShield straw holder. Start with a base cylinder 10mm high with a diameter of 21mm. Remove a concentric inner cylinder from this base that is 12mm high with a diameter of 19mm, leaving a 1mm thick wall at the bottom. Cut six circular holes through the walls of this base cylinder; each hole should be 4mm in...
module drinkshieldstraw() { difference() { translate( v = [0, 0, 1]) { union() { cube(size = [19, 2, 2], center = true); rotate(90) { cube(size = [19, 2, 2], center = true); } } } translate(v = [0, 0, -2]) { cylinder(4, 8.205, 8.205); } } difference() { cylinder(10, 10.5, 10.5)...
glb/cad_bfbadce170a8.glb
Create a parametric toilet lower seat hinge bracket. Start by creating a rectangular mounting base 13mm wide, 54mm long, and 7.5mm high. In this base, create two vertical mounting holes with a diameter of 4.5mm. The first hole is centered width-wise and positioned 12.75mm from the end; the second hole is placed 18.8mm ...
BracketWidth = 13; BracketLength = 54; BracketHeight = 7.5; HingeWidth = BracketWidth; HingeLength = 9; HingeHeight = 15; HingeHoleRadius = 5; HingeHoleWallThickness = 3; HingeHoleRoundness = 0.01; MountingHoleSize = 4.5; MountingHoleScrewHeadSize = 9.5; MountingHoleScrewHeadthickness = 2.5; FirstMountingHole = 12...
glb/cad_0cccfbd81c0a.glb
Create an M8 Bolt Hobber base by starting with a rectangular block 37mm wide, 36mm deep, and 6mm high. On top of this base, add a second rectangular block 10mm wide, 36mm deep, and 10mm high, aligned to the left edge. Create two semi-cylindrical protrusions with a radius of 6mm and a length of 36mm; position the first ...
difference(){ union(){ translate([-1,0,0]) cube([39,36,6]); translate([-1,0,0]) cube([12,36,16]); translate([5,0,16]) rotate([-90,0,0]) cylinder(h=36,r=6,$fn=30); translate([32,0,6]) rotate([-90,0,0]) cylinder(h=36,r=6,$fn=30); } translate([5,-1,16]) rotate([-90,0,0]) cylinder(h=40,r=1.4,$fn=10); translat...
glb/cad_1d5b28c36048.glb
Create an M8 Bolt Hobber base consisting of two mirrored side plates. For one plate, start with a base shape formed by the union of several geometric volumes: a cylinder with a radius of 9mm and a height of 7mm centered at the origin, a cylinder with a radius of 5mm and a height of 7mm centered at [48, 5, 0], a cylinde...
module right(){ difference(){ union(){ translate([0,0,0]) cylinder(h=7,r=9,$fn=50); translate([48,5,0]) cylinder(h=7,r=5,$fn=30); translate([27,-20,0]) cylinder(h=7,r=6,$fn=30); translate([-9,-26,0]) cube([18,26,7]); translate([43,-26,0]) cube([10,31,7]); translate([0,-26,0]) cube([48,5,7]); translate([0...
glb/cad_4726bd22425b.glb
Create an M8 Bolt Hobber clamp by starting with a main cylinder 10mm high with a radius of 16.5mm. Remove a concentric inner cylinder with a radius of 9.5mm and a height of 10mm to create a thick-walled ring. Cut a vertical slot through the ring to allow it to tighten. Add a rectangular block to the side of the ring, ...
difference(){ union(){ translate([0,0,0]) cylinder(h=10,r=16.5,$fn=100); translate([-7.5,18.5,5]) rotate([0,90,0]) cylinder(h=15,r=5,$fn=50); translate([-7.5,9.5,0]) cube([15,9,10]); translate([-7.5,9.5,0]) cube([15,14,5]); translate([0,0,5]) rotate([0,90,0]) cylinder(h=36,r=5,center=true, $fn=50); } tra...
glb/cad_7e59b8b6b3a9.glb
Create a tuning key top by starting with a primary body that is the intersection of two cylinders. The first cylinder is centered on the Z-axis with a radius of 3.5mm and a height of 47.2mm. The second cylinder has a radius of 7mm and a height of 47.2mm, but is rotated 90 degrees to lie on the X-axis and shifted 7mm al...
pHeight = 14.00; pWidth = 23.60; pDepth = 7.00; $fn = 100; pinHeight = 7.2; pinDiameter = 4.5; pinRadius = pinDiameter/2; flangeOffset = 1.0; pinWidth = 2.35; module inner_pin() { difference() { translate( [0, 0, pinHeight/2] ) cylinder( r=pinRadius, h=pinHeight, center=true ); translate( [0, pinWidth/2 + pi...
glb/cad_9c9ebbdd0067.glb
Create a Raspberry Pi Base Plate by starting with a rectangular slab measuring 64mm wide, 96mm long, and 3.2mm thick. Remove several cylindrical holes from this slab: place four holes with a diameter of 4.8mm at the corners, each centered 4mm from the adjacent edges. Additionally, remove a large central circular cuto...
$fn = 30; Base(); module Base() { difference() { cube([64, 96, 3.2]); translate([4, 4, 0]) Hole(); translate([4, 92, 0]) Hole(); translate([60, 4, 0]) Hole(); translate([60, 92, 0]) Hole(); translate([32, 0, 0]) cylinder(h=8, d=32, center=true); translate([36, 96, 0]) cylinder(h=8, d=24, center=true...
glb/cad_8d64589b0d5b.glb
Create a parametric link for mechanisms by starting with a rectangular base. For a solid link, create a rectangular prism with a specified length, width, and thickness, then remove two cylindrical through-holes of a given radius. Position these holes so their centers are located at a distance of twice the hole radius f...
link_lite(55,10,5,2.5,2,tolerance); translate([0,20,0]) link_lite(85,10,5,2.5,3); translate([0,40,0]) link_solid(55,10,5,2.5,2); translate([0,60,0]) link_solid(85,10,5,2.5,3); module link_solid(length, width, thickness, hole_radius){ difference(){ cube([length,width,thickness]); translate([hole_radius*2, hole_ra...
glb/cad_854fc6a18524.glb
Create a Full Graphic Smart Controller Box back panel. Start with a base plate that is 100mm wide, 95mm deep, and 6mm thick, featuring rounded corners with a 2mm radius. Cut a large rectangular opening from the center of the plate measuring 90mm by 84mm, starting 4mm from the front and 1.5mm from the bottom. At the r...
module back(){ difference(){ union(){ minkowski(){ translate([2,2,0]) cube([94,88,2]); cylinder(r=2); } translate([2.5,2.5,0]) cube([93,87,6]); translate([42,-6,6]) rotate([0,90,0]) cylinder(h=34, r=6); translate([42,-12,0]) cube([34,12,6]); translate([42,-12,0]) cube([34,15...
glb/cad_0fde15f46ebc.glb
Create a hinge for a Full Graphic Smart Controller Box. Start with a rectangular base measuring 64mm in length, 18mm in width, and 11mm in height. Centered on the top surface of this base, construct a vertical cylindrical loop with an outer radius of 6mm and an inner hole radius of 2.3mm passing through its center alon...
difference(){ union(){ translate([52,0,11]) rotate([0,90,0]) cylinder(h=14, r=6); translate([52,-12,0]) cube([14,18,11]); minkowski(){ translate([43,-12,0]) cube([32,16,4]); cylinder(r=2); } } translate([49,-4,0]) cylinder(h=6.5, r=2); translate([69,-4,0]) cylinder(h=6.5, r=2); tr...
glb/cad_88155fc9a79d.glb
Create a Full Graphic Smart Controller Box for a Prusa i3 printer. Start by constructing a main rectangular base with rounded corners, measuring 100mm in width, 100mm in depth, and 15mm in height. The corners should be rounded with a 2mm radius. Hollow out the center of the box to create a rectangular cavity measuring...
module box(){ difference(){ union(){ minkowski(){ translate([2,2,2]) cube([94,88,15]); sphere(r=2, $fn=10); } } translate([2,2,2]) cube([94,88,15]); translate([9.5,29,0]) cube([79,52,15]); translate([95,40.5,12]) cube([5,28,5]); translate([0,0,16]) cube([100,100,5]); } } mo...
glb/cad_5a52f82a472f.glb
Create a knob for a smart controller box. Start with a main cylinder that has a radius of 10mm and a height of 13mm. On the top surface of this cylinder, add a thin disc with a height of 1mm, a bottom radius of 10mm, and a top radius of 9mm. From the center of the bottom face, remove a vertical cylindrical hole with ...
module hole(){ difference(){ union(){ translate([0,0,0]) cylinder(h=10, r=3.3, $fn=24); } translate([-3,1.7,0]) cube([6,3,10]); } } difference(){ union(){ translate([0,0,0]) cylinder(h=13, r=10); translate([0,0,13]) cylinder(h=1, r1=10, r2=9); } translate([0,0,3]) hole(); translate([0,...
glb/cad_0ad8355af742.glb
Create a Simple Panel for a 12V/30A Power Supply. Start by constructing a main rectangular frame with outer dimensions of 113mm width, 50mm height, and 10mm depth. The frame consists of a front face 2mm thick and two side walls 10mm deep and 2mm thick, connected by a bottom base 10mm thick and 113mm wide. The top secti...
module panel(){ difference(){ union(){ translate([0,0,0]) cube([113,2,50]); translate([0,0,0]) cube([113,10,2]); translate([1.5,0,48]) cube([110,29,2]); translate([0,0,0]) cube([2,10,50]); translate([111,0,0]) cube([2,10,50]); translate([1.5,0,7.5]) cube([2,22,42.5]); translate([109.5,0,7...
glb/cad_339afb05f172.glb
Create a Replicator foot pad by constructing a tiered cylindrical base with a central void. Start with a main cylinder 20mm high with a radius of 15.5mm. Add a wider, shorter cylinder to the bottom of this base that is 5mm high with a radius of 20mm. Create a third, slightly narrower cylinder 5mm high with a radius of ...
difference () { union(){ translate ([ 15, 15, -8]) cylinder (h=20, r=15.5, $fn=100); translate ([ 15, 15, -8]) cylinder (h=5, r=20, $fn=100); translate ([ 15, 15, -6]) cylinder (h=5, r=18, $fn=100); translate ([ 5, 16, -8]) cylinder (h=20, r=8, $fn=100); translate ([ 5, 14.75, -8]) cylinder (h=20, r=8, $fn=100); transl...
glb/cad_5c8a7fc49819.glb
Create a Corner Cable Clip with a total width of 5mm. Start with a semi-cylindrical base that has an outer radius of 4.15mm and a height of 5mm. Attach a rectangular tab to the flat side of this semi-cylinder; the tab should be 6mm long, 2mm thick, and 5mm wide, extending outward from the base. Within this combined vo...
cableDiameter = 4.3; nailDiameter = 1.8; width = 5; tabLength = 6; thickness = 2; $fn = 35; radius = cableDiameter/2+thickness; cutcube = [radius*2+1,radius*2+1,width+1]; difference() { union() { cylinder(h=width,r=radius); translate([0,-radius,0]) cube([radius, radius, wi...
glb/cad_44f1e03fa992.glb
Create a Vertical Board Anchor designed to secure a board of 6mm thickness. Start with a base block that is 19.25mm long, 12.5mm wide, and 5mm high, featuring rounded corners with a radius of 3.25mm. Cut a central rectangular slot through the entire height of the block to accommodate the board; this slot should be 16mm...
thickness = 3.25; anchorLength = 16; anchorHeight = 5; boardThickness = 6; shaftDiameter = 3; headDiameter = 6; holePadding = 2.5; screwAngle = 82; counterSink = 0.5; $fn = 35; yHeight = (headDiameter/2-shaftDiameter/2)/tan(screwAngle/2); difference() { union() { roundedBox([anc...
glb/cad_2ecd3f6a446c.glb
Create a cable organizer mount for a Prusa i3. Start with a rectangular base measuring 69mm in length, 10mm in width, and 3mm in height. At one end of the base, add a vertical block 16mm long, 10mm wide, and 8mm high. On the opposite end, add a vertical block 10mm long, 30mm wide, and 6.5mm high. Integrate two cylindr...
difference(){ union(){ translate([-3,0,8]) rotate([-90,0,0]) cylinder(h=10, r=8, $fn=50); translate([-11,0,0]) cube([69,10,3]); translate([-11,0,0]) cube([16,10,8]); translate([38,-3.5,6.5]) rotate([0,90,0]) cylinder(h=10, r=6.5, $fn=36); translate([38,-10,0]) cube([10,30,6.5]); translate([38,13.5,6.5]) r...
glb/cad_996a1e0424fd.glb
Create a cable organizer mount by starting with a rectangular base measuring 14mm in width, 4mm in depth, and 8mm in height. At the center of the left side of this base, attach a cylinder with a radius of 6mm and a height of 8mm. To create the cable channel, remove a smaller concentric cylinder with a radius of 3mm and...
difference(){ union(){ translate([0,3.5,0]) cylinder(h=8, r=6, $fn=50); translate([0,0,0]) cube([14,4,8]); translate([-6,0,0]) cube([12,4,8]); } translate([0,3.5,-1]) cylinder(h=16, r=3, $fn=50); translate([10,-1,4]) rotate([-90,0,0]) cylinder(h=10, r=1.5, $fn=10); translate([-3,0,-1]) cube([6,4,17]); ...
glb/cad_05ca3b48fde0.glb
Create a cable organizer mount by starting with a central rectangular block measuring 34mm in length, 4mm in width, and 8mm in height. At each end of this block, centered on the width, add a cylinder with a radius of 7mm and a height of 8mm. From this combined shape, remove two vertical cylindrical holes with a radius ...
difference(){ union(){ translate([0,3.5,0]) cylinder(h=8, r=7, $fn=50); translate([20,3.5,0]) cylinder(h=8, r=7, $fn=50); translate([-7,0,0]) cube([34,4,8]); } translate([0,3.5,-1]) cylinder(h=16, r=4, $fn=50); translate([20,3.5,-1]) cylinder(h=16, r=4, $fn=50); translate([10,-1,4]) rotate([-90,0,0]) cylin...
glb/cad_8b6c7fbaa70a.glb
Create a Ramps Mount and Cable Organizer for a Prusa i3. Start by constructing a base plate that is 10mm thick. The main body consists of a rectangular section measuring 70mm in length, 3mm in width, and 10mm in height, extending from the center. At one end, integrate a cylindrical mounting hub with a radius of 8mm and...
difference(){ union(){ translate([0,0,0]) cylinder(h=10, r=8, $fn=50); translate([0,-8,0]) cube([70,3,10]); translate([55,-8,0]) cube([8,6,10]); translate([0,-8,0]) cube([15,6,10]); translate([0,10,0]) cylinder(h=10, r=5, $fn=50); translate([-5,5,0]) cube([10,5,10]); } translate([0,0,0]) cylinder(h=16, ...
glb/cad_9bcb52a48ccf.glb
Create a cable organizer mount for a Prusa i3. Start with a rectangular base measuring 58mm in length, 3mm in width, and 10mm in height. At the left end of the base, add a vertical semi-circular loop with an outer radius of 8mm and a height of 10mm, centered 8mm from the back edge. Cut several holes and slots through...
difference(){ union(){ translate([0,8,0]) cylinder(h=10, r=8, $fn=50); translate([0,0,0]) cube([58,3,10]); translate([44.5,3.5,0]) cylinder(h=10, r=3.5, $fn=20); translate([17.5,3.5,0]) cylinder(h=10, r=3.5, $fn=20); translate([17.5,5,0]) cube([11,2,10]); translate([33.5,5,0]) cube([11,2,10]); } transl...
glb/cad_c3a186fe20ce.glb
Create a Ramps Mount and Cable Organizer by starting with a base structure composed of a cylinder and several rectangular blocks. Create a main cylinder with a radius of 5mm and a height of 7mm. Attach a rectangular block measuring 40mm by 2mm by 15mm, positioned at coordinates [20, -30, 0], and another block measuring...
difference(){ union(){ translate([0,0,0]) cylinder(h=7, r=5, $fn=50); translate([20,-30,0]) cube([40,2,15]); translate([20,-29,0]) cube([40,4,3]); translate([-2,-2,0]) rotate([0,0,-51.9]) cube([35.6,4,7]); } translate([0,0,0]) cylinder(h=16, r=1.8, $fn=10); translate([24,-31,11]) rotate([-90,0,0]) cylinder(...
glb/cad_2e3b160b1bc8.glb
Create a Ramps Mount and Cable Organizer consisting of a main base and a vertical mounting hub. Start with a vertical cylinder 16mm high with a radius of 8mm. Attached to this cylinder, extend a rectangular base 70mm long, 3mm wide, and 8mm thick, starting from the center of the cylinder and extending outwards. At the ...
difference(){ union(){ translate([0,0,0]) cylinder(h=16, r=8, $fn=50); translate([0,-8,0]) cube([70,3,8]); translate([0,-8,0]) cube([22,3,16]); translate([55,-8,0]) cube([8,6,8]); translate([0,-8,0]) cube([15,6,16]); translate([0,10,0]) cylinder(h=16, r=5, $fn=50); translate([-5,5,0]) cube([10,5,16]); ...
glb/cad_ea74c550e90c.glb
Create a Case Lid Position Guide consisting of a base body and a vertical guide wedge. Start with a base body 3mm thick. Centered on this base, create a cylindrical mounting area with a diameter of 12.25mm (head diameter 7.25mm plus 2.5mm padding on each side). Through the center of this cylinder, create a vertical hol...
cornerAngle = 90; sideLength = 10; guideHeight = 10; bodyHeight = 3; shaftDiameter = 3.75; headDiameter = 7.25; holePadding = 2.5; screwAngle = 82; counterSink = 0.5; $fn = 35; wedgeLength = sideLength*cos(cornerAngle/2); wedgeHeight = sideLength*sin(cornerAngle/2); yHeight = (...
glb/cad_5081273f440f.glb
Create a Filament Pass-Through seal holder. Start with a main body that is a rounded rectangular slab with a total length of 142mm, a width of 145.4mm, and a height of 7.2mm. The corners of this slab should have a radius of 2mm. Carve a central channel through the body to house the wiper blades. This channel should be...
layerHeight = 0.4; bladeBaseWidth = 6; bladeBaseHeight = 5.5; bladeHeight = 5; bladeOverlap = 1; openingLength = 134; mountingHoles = 3; edgeThickness = 2; topThickness = 1.2; endWidth = 2; endPadding = 4; screwDiameter = 3.3; nutInDi...
glb/cad_179319993103.glb
Create a Printer Enclosure consisting of a base table and a five-sided frame with a door. Start by creating a rectangular table base with dimensions 15.25" wide by 18.25" deep and a thickness of 0.75". Construct the main enclosure frame using square profile components with a thickness of 0.75". The interior volume ...
maxWidth = 14.5; maxHeight = 15; maxDepth = 17.5; frameThickness = 3/4; tableThickness = 3/4; glassThickness = 0.125; doorGap = 1/16; explodeGlass = 0; size = [maxWidth,maxDepth,maxHeight]; f = frameThickness; t = tableThickness; g = glassThickness; X=0; Y=1; Z=2; H=0; W=1; echo(s...
glb/cad_1521219dbf7e.glb
Create a knurled knob for a rotary encoder. The main body is a cylinder with a diameter of 37mm and a height of 15mm. The outer surface should feature a knurled texture consisting of repeating vertical ridges 3mm wide and 4mm high, with a depth of 1.5mm. Smooth the top and bottom ends of the cylinder. Remove a central...
include <knurledFinishLib.scad> offsetMargin = 0.1; $fn = 64; encoderShaftDiameter = 6.5; encoderShaftFlatLength = 14.0; encoderShaftFlatOffset = 1.5; knobDiameter = 37.0; knobHeight = encoderShaftFlatLength + 1.0; knurlWidth = 3; knurlHeight = 4; knurlDepth = 1.5; endSmoothing = 1; surfaceSmoothing = 50; fingerHol...
glb/cad_10cd54267ac0.glb
Create a chair coaster by constructing a solid cylinder with a radius of 16mm and a height of 13mm. From the center of this cylinder, remove a smaller concentric cylindrical volume with a radius of 14mm and a height of 6mm, positioned such that it starts 2mm below the base and extends upward through the bottom of the m...
difference() { cylinder(h = 13, r=16); translate([0,0,-2]) #cylinder(h = 6, r=14); }
glb/cad_a5311b1e04ba.glb
Create a Sirius XM mount consisting of a central vertical stalk with a hollow core. Start by creating a main cylinder 90mm tall with a radius of 12mm, and remove a concentric inner cylinder 95mm tall with a radius varying from 5mm to 5.5mm to create a hollow tube. At both the top and bottom of this main cylinder, cente...
$fn=100; module stalk() { union(){ difference(){ cylinder(r=12, h=90, center=true); cylinder(r1=5.5, r2=5, h=95, center=true); } difference(){ translate([0,0,35-10]) cylinder(r=15, h=10, center=true); translate([0,0,35-10]) cylinder(r=6, h=11, center=true); } difference(){ translate([...
glb/cad_109f5d90261e.glb
Create a Sirius XM mount consisting of a rectangular base plate and a protruding receiver mount. First, construct a rectangular screw plate measuring 55mm by 45mm with a thickness of 1.8mm. Round the corners of this plate using a 5mm diameter fillet. Drill four circular holes, each 4mm in diameter, positioned symmetr...
$fn=100; module qr_code() { translate([-14, 14, 0]) cube([0.99, 0.99, 1]); translate([-13, 14, 0]) cube([0.99, 0.99, 1]); translate([-12, 14, 0]) cube([0.99, 0.99, 1]); translate([-11, 14, 0]) cube([0.99, 0.99, 1]); translate([-10, 14, 0]) cube([0.99, 0.99, 1]); translate([-9, 14, 0]) cube([0.9...
glb/cad_0d1e1c544b31.glb
Create a Sirius XM mount base by constructing a circular plate 5mm thick, centered on the origin. Start with a main outer ring with a radius of 35mm and a central circular hole with a radius of 12.5mm that passes completely through the plate. Within the body of the plate, incorporate two concentric rings: one with a ra...
outer_rad = 35; middle_rad = 17.5+(outer_rad-17.5)/2; touter_rad = 40.5; tmiddle_rad = 17.5+(touter_rad-17.5)/2; $fn=100; module bottom_plate() { difference(){ union() { difference(){ cylinder(r=outer_rad,h=5, center=true); cylinder(r=outer_rad-5, h=6, center=true); } difference(){ cylinder(r...
glb/cad_7e53e4b6137e.glb
Create a Sirius XM mount consisting of a circular plate with a total height of 5mm, centered on the origin. Start with a main outer ring with a radius of 40.5mm and a height of 5mm. Remove a central cylindrical hole with a radius of 12.5mm and a height of 6mm to pass through the entire part. Within the remaining ring, ...
outer_rad = 35; middle_rad = 17.5+(outer_rad-17.5)/2; touter_rad = 40.5; tmiddle_rad = 17.5+(touter_rad-17.5)/2; $fn=100; module top_plate() { difference(){ union() { difference(){ cylinder(r=touter_rad,h=5, center=true); cylinder(r=touter_rad-5, h=6, center=true); } difference(){ cylinder(r=...
glb/cad_59d33ef719e1.glb
Create a slip n slide peg consisting of a rounded head and a fluted pin. Start by creating a hemispherical head with a diameter of 45mm and a height of 3mm, effectively forming a truncated sphere. Attached to the bottom of this head, extend a pin 85mm in length. The pin is constructed from four rectangular flutes, each...
module truncated_sphere(radius, bottom, top) { difference() { sphere(r = radius, center=false); translate([-radius, -radius, radius - top]) cube([radius * 2, radius * 2, radius * 2]); translate([-radius, -radius, -radius * 3 + bottom]) cube([radius * 2, radius * 2, radi...
glb/cad_4697641dc03f.glb
Create a battery casing for a 12V power tool with overall dimensions of 102mm in length, 77.8mm in width, and 51mm in height. The main body is a hollow rectangular shell with a wall thickness of 3.2mm. The four vertical corners of the interior cavity are rounded with a radius of 15mm. At each of the four corners of th...
base_x = 102; base_y = 77.8; base_z = 51; wall_thickness = 3.2; top_thickness = 4; round_corner = 15; margin = 0.1; screw_y = round_corner*1.33; screw_hole_radius = 1.4; screw_strut_radius = 4; screw_z = 12; clamp_x = 35; clamp_length = 20; clamp_y = 4; clamp_z_up = 8; clamp_z_down = base_z/4; difference() { union...
glb/cad_9a32f019cc7f.glb
Create a battery casing for a 12V power tool. Start with a rectangular base plate measuring 102mm by 77.8mm with a thickness of 4mm. Round all four corners of the base with a 15mm radius. On top of the base, add a contact extension. This feature begins with a cylinder of radius 12.9mm and a height of 64mm, which trans...
base_x = 102; base_y = 77.8; base_z = 51; wall_thickness = 1.45; top_thickness = 4; round_corner = 15; margin = 0.1; contact_height = 60; contact_cylinder_radius = 25.8/2; contact_cube_side = 22; contact_offset_x = 13; contact_element_height = 12.3; contact_platform = contact_height + top_thickness - contact_element_h...
glb/cad_1f4712061154.glb
Create a set of mirror brackets for a 3D printer bed. Start by creating a central rectangular mirror plate with dimensions based on the mirror's width and depth, and a thickness equal to the mirror thickness plus one printer layer. Construct four corner plates (left back, right back, left front, and right front) to s...
include <ikea_lots_mirror.scad> include <leapfrog_creatr_1.scad> mirror_X_inset = 55; mirror_Y_inset = 15; mirror_X_offset = printer_build_X_offset - mirror_X_inset; mirror_Y_offset = printer_build_Y_offset - mirror_Y_inset; plate_thickness = mirror_thickness + printer_layer; plate_in...
glb/cad_99c6957326e1.glb
Create a lamp holder for a bike rear rack by constructing a main cylinder with a radius of 15mm and a height of 60mm. At the base of this cylinder, add a wider, thin circular disc with a radius of 19.75mm and a height of 5mm. Tilt the entire assembly backward by 74 degrees. To create the mounting opening, remove a re...
$fn=100; angle = 74; cylr=30; h1=60; h2=5; dr=4.4; a1 = 48; module lightcylinder(){ cylinder (r=cylr/2,h=h1); translate([0,0,-h2+.1]) cylinder (r=31.5/2+4,h=h2); } difference(){ rotate ([0,90-angle,0]) lightcylinder(); translate ([18,0,h1+cylr/2-10]) cube ([(cylr+10),cylr+2,cylr+2],center=true); ...
glb/cad_25a911cbfc66.glb
Create a Tab and Slot interlocking system consisting of two matching parts. First, create the tabbed component. Start with a central cylinder with a radius of 31.5mm (center hole 55mm plus twice the groove depth of 4mm, minus tolerance) and a height of 10mm. Add two rectangular tabs protruding from the cylinder. Each...
part=1; center_hole=55; cut_hole=0; insert_depth=10; groove_depth=4; groove_width=3; tab_width=10; rotation=25; tab_number=2; tollerance=0.2; direction=1; gap=10; lock=0; stop=0; tab_clearance=0; if (part){ union(){ tabs(); } } else{ difference(){ translate([0,0,insert_depth/2-5]) cube([center_hole+gro...
glb/cad_907799dec3f5.glb
Create a Valve Index Lighthouse Corner Mount Adapter. Start with a base plate that is a rounded rectangle measuring 80mm by 56mm with a thickness of 3mm and corner radii of 5mm. Construct a main body that forms a right-angle corner bracket. The overall outer dimensions of the bracket are 92mm in length and 70mm in wid...
param_hole_tolerance = 0.2; module block_params() { } $fn=180; TEST_PLATE=false; module roundedRect(size, radius) { x = size[0]; y = size[1]; z = size[2]; linear_extrude(height=z) hull() { translate([(-x/2)+(radius/2), (-y/2)+(radius/2), 0]) circle(r=radius); tran...
glb/cad_5b80106fdb41.glb