Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create an unlocking pin for electric sockets consisting of a flat base and a vertical protruding pin. Start by creating a flat base plate with a thickness of 1mm. The base is formed by a central rectangular filler with a width and depth of 18.25mm, flanked by two circular pillars. These pillars are positioned 19mm apar...
$fa = 1; $fs = 0.1; EPS = 0.001; THICKNESS = 1; PLUG_RADIUS = 36.5 / 2; PIN_DIAMETER = 5.3; PIN_DISTANCE = 19; PIN_HEIGHT = 19; UNLOCK_PIN_DISTANCE = 11; UNLOCK_PIN_RADIUS = 3.8 / 2; UNLOCK_PIN_HEIGHT = PIN_HEIGHT + 4; module symmetry(t) { translate(t) children(); translate([ -t[0], t[1], t[2] ]) children(); } ...
glb/cad_968c7b505ab2.glb
Create a Selectric Service Foot consisting of a cylindrical base and a threaded screw top. Start with a base cylinder 14.6mm in diameter and 11.8mm high. The top and bottom faces of this base should be beveled inward by 2mm over a height of 1mm each. The vertical side of the base is not smooth; it features 46 small, al...
$fn=100; FOOT_HEIGHT=11.8; FOOT_DIAMETER=14.6; FOOT_BEVEL_HEIGHT=1; FOOT_BEVEL_WIDTH=2; FOOT_NUB_COUNT=46; FOOT_NUB_DEPTH=0.4; SCREW_HEIGHT=6.6; SCREW_PITCH=0.8; SCREW_LEAD_IN=1; SCREW_OUTER_DIAMETER=5.7; SCREW_INNER_DIAMETER=4.7; NOTCH_WIDTH=2; NOTCH_DEPTH=2.6; difference() { union() { cylinder(h...
glb/cad_2683f6052b1a.glb
Create a pipe flange adapter consisting of a circular base and a tapered upright support. Start by creating a flat circular base with a radius of 75 mm and a thickness of 4 mm. Centered on this base, add a tapered cylindrical support that extends 80 mm in height; this support should have a bottom radius of 60 mm and ta...
inner_dia = 90; depth = 80; flange_thick= 4; screw_hole_rad= 2.5; flange_rad= inner_dia/2 +30; screw_hole_rad_pos= flange_rad-7; $fn=100; difference() { union() { cylinder(h=flange_thick, r1=flange_rad, r2=flange_rad, center=false); translate([0,0,flange_thick]) cylinder(h=depth, r1=inner_dia/2+15, r2=inner_dia/2+...
glb/cad_253e575becb4.glb
Create a Street Lamp Cap consisting of a square base plate and a hollowed pyramidal cover. Start with a square base plate measuring 170mm by 170mm with a thickness of 2mm. Centered on this plate, construct a square-based pyramid that rises to a total height of 160mm, with the pyramid's base measuring 140mm by 140mm. ...
height= 160; cut_ht= 100; base= 140; lip=15; lip_thick=2; inner_height=cut_ht-2; plate_width=base+2*lip; echo("plate width= ",plate_width); difference(){ union(){ color("red") cube(size = [plate_width,plate_width,lip_thick], center = false); translate([lip+base/2,lip+base/2,lip_thick]) scale([base/20,base/20,...
glb/cad_2806dee40242.glb
Create a sign post holder consisting of a hollow cylindrical ring with an attached rectangular mounting block. Start by creating a cylinder with an outer diameter of 100mm, an inner diameter of 90mm, and a height of 30mm. Attached to the side of this ring, centered on the ring's wall, create a rectangular block that is...
inner_dia = 90; depth = 30; board_width = 14; board_height = 50; hold_length= 50; $fn=100; outer_dia = inner_dia + 10; difference() { union() { translate([0,0,0]) cylinder(h=depth, r1=outer_dia/2, r2=outer_dia/2, center=false); } color("red") cylinder(h=2*depth+20, r1=inner_dia/2, r2=inner_dia/2, center=true); ...
glb/cad_8d799e2ddd23.glb
Create a Parametric Door Organizer Pot Lid Holder. Start by creating a main body that is a curved slab with a thickness of 20mm and a width based on a diameter of 300mm. This body is formed by the intersection of a cylinder with a radius of 160mm (150mm plus a 10mm margin) and a rectangular block that is 300mm wide, 40...
diameter = 300; thickness = 20; part_thickness = 10; part_side_holders_width = 25; part_section_height = 40; part_half_diameter_holding_distance_fraction = 0.35; part_hole_diameter = 3; part_hole_distance_from_center_desired = 50; part_hole_distance_from_center = min(diameter / 2 - part_side_holders_width - part_hole...
glb/cad_6e392f27291a.glb
Create a cable clip holder with a total height of 10mm. Start with a main outer cylinder 15.75mm in diameter and 10mm tall. Remove a concentric inner cylinder with a diameter of 7.75mm and the same height to create a ring. Cut a rectangular slot 15.75mm wide and 3.9375mm deep through the top of the ring to create an op...
$fa = 1; $fs = 0.4; Diameter_Outer = 15.75; Diameter_Inner = 7.75; difference(){ union(){ difference(){ cylinder(h = 10, r1 = Diameter_Outer/2, r2 = Diameter_Outer/2, center = true); cylinder(h = 10.001, r1 = Diameter_Inner/2, r2 = Diameter_Inner/2, center = true); trans...
glb/cad_40dac6a23809.glb
Create a Bricard Serial key cap by constructing a hollowed-out rectangular shell with a specific tapered profile. Start by creating a solid block with a height of 3.75mm. The outer footprint is a polygon defined by a width of 29.5mm along the bottom edge and 26.5mm along the top edge, with a total depth of 19mm. The si...
w0_cap = 29.5; w1_cap = 26.5; h_cap = 19; d_cap = 3.75; x0a_cap = -w0_cap/2; x1a_cap = w0_cap/2; x0b_cap = -w1_cap/2; x1b_cap = w1_cap/2; y0_cap = -h_cap/2; y1_cap = h_cap/2; poly_cap = [ [x0a_cap,y0_cap], [x1a_cap,y0_cap], [x1b_cap,y1_cap], [x0b_cap,y1_cap] ]; rotate([90, 0, 0]) difference() { scale([1.1,1-0.05...
glb/cad_2be571e647ac.glb
Create a flower lapel clip consisting of a main body with a hollowed-out center. The outer form is a composite shape: start with a central cylinder 10mm high and 5.5mm in diameter, centered on the X and Y axes, and a sphere with a 5mm diameter positioned at the bottom at X=5 and Z=-10. Merge these with a rectangular bl...
$fn=60; difference() { union() { for(i=[0:90:360]) { rotate([45+i,0,0]) { hull() { translate([0,0,0]) rotate([0,90,0]) cylinder(d=2,h=1,center=true); translate([0,2.0,6.5]) rotate([0,90,0]) cylinder(d=6,h=1,center=true); } hull() { ...
glb/cad_fdb2ccdbcdb8.glb
Create a business card holder and nameplate base. Start by constructing a weighted base with a custom profile: a polygon with vertices at [10,0], [0,18], [26,18], and [18,0], extruded to a height that matches the total width of the intended text. On top of this base, add a business card holder. This component consists...
label_text = "Startrek fan2"; cardholder = true; font_size = 14; end_space = 3; font_name = "Courgette"; letter_spacing = 1.0; tweak = 0; part= "single"; $fn = 100; cardw= 92+4; cardh=40; cardt=1.5; width = (.65*font_size*letter_spacing); totalwidth = width * len(label_text); length_extrude = totalwidth+(end_...
glb/cad_116bd0d685ad.glb
Create a Trochograph, a mechanical drawing tool for plotting prolate trochoids. The device consists of a base case with a top and bottom plate enclosing a gear system and a slider. Construct a bottom plate and a top plate that form a housing. The housing features a central slot to allow a slider to move linearly. The ...
use <publicDomainGearV1.1.scad> part = "assembly"; trochoid_r=2.4; turns=3; pen_tip_hole_r=0.75; pen_tip_clearance=1.2; gears_t=1.6; slider_t=1.2; pinion_t=1.2; bottom_t=0.6; top_additional_t=0; stack_spacing=0.1; top_gear_teeth=66; pinion_teeth=9; mm_per_tooth=1.87; slider_l=66.4; rail_w=1.6; rail_h=1.2; sh...
glb/cad_7bc9e1809d37.glb
Create a board game organizer insert by starting with a rounded rectangular block measuring 141mm in length, 74mm in width, and 34.5mm in height, with corner radii of 5mm. Carve out six hexagonal holes to create storage compartments. Position three pairs of these hexagons: the first pair centered at x=22.25mm and x=8...
$fn=200; difference(){ roundedCube(141,74,34.5); for(i = [0:1]){ translate([(i*65.15)+22.25,37,14]) rotate([0,0,0]) cylinder(r=20, h=55.5, $fn=6);} for(i = [0:1]){ translate([(i*65.15)+52.25,54.3,14]) rotate([0,0,0]) cylinder(r=20, h=55.5, $fn=6);} for(i = [0:1]){ translate([(i*65.15)+52.25,19.7,14]) rotate([0,0,0]...
glb/cad_d3721e645c5b.glb
Create a board game organizer tray by starting with a base rectangular block measuring 141mm in length, 54mm in width, and 26mm in height, applying a 5mm radius to all vertical corners. Hollow out this block to create a container with a wall thickness of 3mm. Within this main body, carve out two large rectangular compa...
$fn=200; difference(){ roundedCube(141,54,26); for(i = [0:1]){ translate([(i*86.25)+3.5,3.25,3]) roundedCube3(47.5,47.5,50);} translate([62,18.5,3]) roundedCube3(17,17,50); translate([59.5,16,20]) roundedCube3(22,22,50); for(i = [0:1]) translate([70.5,(i*54)+0,-1]) cylinder(h=400, d=28, center=false); } module ro...
glb/cad_c66c22c79e93.glb
Create a board game organizer insert with an overall outer dimension of 126mm in length, 63mm in width, and 58.5mm in height. The main body is a rectangular block with rounded corners of 3mm radius. Carve out the following six rectangular compartments from the top: First, create two slots at x=2mm, each 22.5mm wide a...
$fn=200; difference(){ roundedCube(126,63,58.5); for(i = [0:1]){ translate([2,(i*28.5)+6,6]) cube([22.5,22.5,60]); } for(i = [0:1]){ translate([26.5,(i*29.5)+5,8]) cube([23.5,23.5,60]); } for(i = [0:1]){ translate([52,(i*30.5)+2,15]) cube([28.5,28.5,60]); } for(i = [0:1]){ translate([82.5,(i*30)+4,18]) cube([38.5,...
glb/cad_575a252309c5.glb
Create a rectangular organizer box with overall dimensions of 126mm in width, 95mm in depth, and 58.5mm in height, featuring rounded corners with a 5mm radius. Inside this main volume, carve out three distinct storage compartments. First, create a rectangular void measuring 102mm by 37.5mm by 50mm, positioned 12mm fr...
$fn=200; difference(){ roundedCube5(126,95,58.5); translate([12,2,14]) roundedCube3(102,37.5,50); translate([42,2,14]) roundedCube3(42,90,50); translate([21.5,65,1.5]){ rotate([0,0,90]) cylinder(r=20.5, h=60, $fn=6);} translate([104.5,65,12]){ rotate([0,0,90]) cylinder(r=21, h=60, $fn=6);} translate ([17,17,50.5])...
glb/cad_7e8044c20a8f.glb
Create a board game organizer insert by starting with a rounded rectangular block measuring 173mm in length, 93mm in width, and 58.5mm in height, with corner radii of 5mm. Hollow out the main body by removing a rounded rectangular volume measuring 125mm by 89mm by 60mm, positioned at coordinates (46, 2, 1) with a cor...
$fn=200; difference(){ roundedCube5(173,93,58.5); translate([23,84.5,39]) rotate([90,0,0]){ cylinder(r=20.25, h=55.5, $fn=6);} translate([23,26,39]) rotate([90,0,0]){ cylinder(r=20.25, h=15.5, $fn=6);} translate([46,2,1]) roundedCube3(125,89,60); translate([2.5,2,39]) roundedCube3(41,89,57); translate ([-1,17,56....
glb/cad_c53180eb5156.glb
Create a board game organizer insert by starting with a base rectangular block measuring 141mm in length, 63mm in width, and 24mm in height, featuring rounded corners with a 5mm radius. Carve five circular holes into the top surface to hold 1-point tiles; these holes should have a diameter of 21mm and a depth of 50mm...
$fn=200; difference(){ roundedCube(141,63,24); for(i = [0:4]){ translate([(i*25.5)+13,9.5,1]) cylinder(h=50, d=21, center=false);} for(i = [0:4]) { translate([(i*25.5)+13,0,-1]) cylinder(h=400, d=15, center=false); } translate([4,0,0]){ for(i = [0:4]){ translate([(i*27.75)-1.75,35,12]) cube([25.5,25.5,50]); } } ...
glb/cad_f4742c8b10a7.glb
Create a modular pipette tip sorting box. The main body is a rectangular container with a length of 200mm. The walls are 10mm thick. Inside the box, create a series of parallel dividers to form slots for pipette tips. For the 1mL version, the dividers should be spaced 10.8mm apart, and for the 100µL version, they shoul...
box_length=200; translate([-10,-15,-9.5])Sorting_Box(); module Spalten_blau(anzahl){ for(x=[0:anzahl]) translate([10,x*10.8,0]) cube([89,2.4,6]); translate([0,0,0])Spitze_blau(); translate([0,10.8,0])Spitze_blau(); translate([0,10.8*1,0])Spitze_blau(); translate([0,10.8*2,0])Spitze_blau(); translate([0,10.8*3,0])Spit...
glb/cad_734998e06837.glb
Create a modular pipette tip sorting box. The main body is a rectangular container with an overall length of 205mm, a width of 10mm, and a height of 70mm. Inside the box, construct a series of parallel dividers to create slots for pipette tips. Create 11 thin walls, each 89mm long, 2.4mm wide, and 6mm high, spaced 10...
box_length=200; translate([-10,-15,-9.5])Sorting_Box(); module Spalten_blau(anzahl){ for(x=[0:anzahl]) translate([10,x*10.8,0]) cube([89,2.4,6]); translate([0,0,0])Spitze_blau(); translate([0,10.8,0])Spitze_blau(); translate([0,10.8*1,0])Spitze_blau(); translate([0,10.8*2,0])Spitze_blau(); translate([0,10.8*3,0])Spit...
glb/cad_c86d26da50b6.glb
Create a modular pipette tip sorting box. The main body is a rectangular container with an outer length of 205mm, a width of 10mm, and a height of 70mm. The interior is hollowed out to create a storage cavity, leaving walls that are 5mm thick. Inside the box, create a series of 13 parallel dividers spaced 9mm apart. E...
box_length=200; translate([-10,-15,-9.5])Sorting_Box(); module Spalten_gelb(anzahl){ for(x=[0:anzahl]) translate([10,x*9,0]) cube([89,5.5,6]); translate([0,0,0])Spitze_gelb(); translate([0,9,0])Spitze_gelb(); translate([0,9*1,0])Spitze_gelb(); translate([0,9*2,0])Spitze_gelb(); translate([0,9*3,0])Spitze_gelb(); tran...
glb/cad_f0a3b4579fb6.glb
Create a Gridfinity Coffee Set bin that occupies a 2 by 2 grid space with a total height of 42mm. The main body is a tapered cylindrical container. Start with a base that follows the Gridfinity standard for a 2x2 unit, incorporating the refined hole system for magnets. The interior is a hollowed-out conical void crea...
include <gridfinity-rebuilt-openscad/gridfinity-rebuilt-utility.scad> $fa = 1; $fs = 0.25; gridx = 3; gridy = 2; gridz = 6; divx = 0; divy = 0; cdivx = 0; cdivy = 0; c_orientation = 2; cd = 10; ch = 1; c_depth = 1; c_chamfer = 0.5; gridz_define = 0; height_internal = 0; enable_zsnap = false; style_tab ...
glb/cad_b493528945b6.glb
Create a Gridfinity Coffee Set bin designed to hold a sugar canister. Start by constructing a rectangular base that is 2 units wide by 2 units deep, with a total height of 42mm. The base should feature the standard Gridfinity refined hole pattern for stability. Within this base, create a large central cylindrical cuto...
include <gridfinity-rebuilt-openscad/gridfinity-rebuilt-utility.scad> $fa = 1; $fs = 0.25; gridx = 3; gridy = 2; gridz = 6; divx = 0; divy = 0; cdivx = 0; cdivy = 0; c_orientation = 2; cd = 10; ch = 1; c_depth = 1; c_chamfer = 0.5; gridz_define = 0; height_internal = 0; enable_zsnap = false; style_tab ...
glb/cad_34aba5347b29.glb
Create a Gridfinity Coffee Set holder. Start by constructing a Gridfinity-compatible base that is 3 units wide (150mm) and 1 unit deep (50mm), with a total height of 42mm. From this base, create a main container body. To form the interior storage area, remove a large volume from the top, leaving a wall thickness and ...
include <gridfinity-rebuilt-openscad/gridfinity-rebuilt-utility.scad> $fa = 1; $fs = 0.25; gridx = 3; gridy = 2; gridz = 6; divx = 0; divy = 0; cdivx = 0; cdivy = 0; c_orientation = 2; cd = 10; ch = 1; c_depth = 1; c_chamfer = 0.5; gridz_define = 0; height_internal = 0; enable_zsnap = false; style_tab ...
glb/cad_d023ee3a5c70.glb
Create a Gridfinity Coffee Set bin with a base footprint of 3 by 2 grid units. The overall height of the bin is 42mm. Start by constructing the main body as a solid block with the standard Gridfinity base, including the refined mounting holes for magnets. The top of the bin should feature a large central cylindrical ...
include <gridfinity-rebuilt-openscad/gridfinity-rebuilt-utility.scad> $fa = 1; $fs = 0.25; gridx = 3; gridy = 2; gridz = 6; divx = 0; divy = 0; cdivx = 0; cdivy = 0; c_orientation = 2; cd = 10; ch = 1; c_depth = 1; c_chamfer = 0.5; gridz_define = 0; height_internal = 0; enable_zsnap = false; style_tab ...
glb/cad_4d9edb38b699.glb
Create an Analog Scientific Calculator in the shape of a quarter-circle protractor with a radius of 100mm and a thickness of 2mm. The model should feature a large quarter-circle cutout from the center, leaving a curved outer rim and two straight edges. On the bottom straight edge, create a linear scale with 1mm tick m...
LO = 1; HI = 2; W = 20; L = 4.5; M = 2.5;; T = 7; F = "Arial:style=Bold"; U = [[0,0], for (i=[0:90]) [(100-W)*cos(i),(100-W)*sin(i)]]; V = [[0,0], for (i=[0:90]) [ 100 *cos(i), 100 *sin(i)]]; difference() { translate([0,0,-LO]) linear_extrude(LO) polygon(V); translate([0,0,-LO-1]) intersection() { ...
glb/cad_fd6d8bb2e880.glb
Create a Photo Filter Case consisting of two symmetrical circular caps that snap together. Each cap is a revolved profile with a central hollow to hold a filter. For the first cap, create a revolved shape based on a profile that starts at the center, extends to an outer radius of 24mm (inner diameter 45mm / 2 + wall 1...
inner_diameter = 45; inner_height = 5; lip = .5; tolerance = 0.2; cutout = 0; knurling = 0; resolution = 128; wall = 1.5 + 0; top = 1.0 + 0; n_k = 10 + 10*1/lip; r_k = 2 + lip; module revolved_cap1(points) { difference(){ difference(){ union() { rotate_extrude($fn = resolution*2) po...
glb/cad_2e4d88b23be8.glb
Create a ladder light bracket consisting of a central long bar with two perpendicular arms and tabs at each end. Start by creating a central rectangular bar that is 195mm long, 10mm wide, and 10mm high. At both the left and right ends of this bar, add a perpendicular arm that extends 26mm outward from the center, maint...
length = 175; width = 26; bar_width = 10; bar_height = 10; tab_length = 10; $fn=60; union () { color("pink") translate([0,0,0]) rotate([0,0,0]) cube(size = [length+2*bar_width, bar_width, bar_height], center = false); color("red") translate([bar_width,bar_width,0]) rotate([0,0,90]) cube(size = [width, bar_width, ...
glb/cad_00be32cf5f1d.glb
Create a Bird Buddy end cap by constructing a capsule-like shape. Start with a hull formed by two spheres, each with a radius of 33mm, positioned 81.5mm apart along the x-axis. Intersect this shape with a cube measuring 200mm by 40mm by 40mm, centered at x=50, y=20, and z=0, to flatten the top and bottom. To create t...
module blimpq(rad) { intersection(){ translate([50,20,-20])cube([200,40,40], center=true); hull(){ sphere(rad); translate([81.5,0,0])sphere(rad);}; };} module blimpcut(rad1, rad2) {projection(cut=true){ intersection(){ translate([50,20,20])cube([200,40,40], center=true); difference(){...
glb/cad_cccb16653f66.glb
Create a phone stand for a wider case by constructing a main frame and an inner support structure. Start with a frame created by the convex hull of four cylinders with a radius of 2.5mm and height of 2.5mm, positioned at coordinates (±24.5, 41.5, 0) and (±24.5, -41.5, 0). From this frame, remove a central rectangular b...
gap_width= 10; diff= gap_width-10; $fn=180; difference() { hull() { translate([24.5,41.5+diff,0]) cylinder(5,2.5,2.5); translate([-24.5,41.5+diff,0]) cylinder(5,2.5,2.5); translate([24.5,-41.5,0]) cylinder(5,2.5,2.5); translate([-24.5,-41.5,0]) cylinder(5,2.5,2.5); } trans...
glb/cad_8efc123fb2ca.glb
Create a cylindrical cap designed to cover an alarm button. Start by creating a hollow cylinder with an outer diameter of 70mm, an inner diameter of 66mm, and a total height of 20mm, resulting in a wall thickness of 2mm. The cylinder should be centered vertically. To create the opening and access gaps, remove a central...
diameter = 66; height = 20; module cap(r, h, w, fn = 32) { extRadius = r + w; difference() { cylinder(r = extRadius, h = h, center = true, $fn = fn); for (i = [0:10:360]) translate([0, 0, (-h / 2) + w]) rotate([0, 0, i]) cube([1, extRadius + 1, h], center = false); translate([0, 0, w])...
glb/cad_1fd74a50e373.glb
Create a dishwasher door holder consisting of a base block and two protruding arms. Start with a rectangular base block 60mm wide, 30mm high, and 30mm deep. Carve a rectangular cutout from the center of the base that is 40mm wide and 40mm deep, starting 10mm from the side edge and 20mm from the front face, extending th...
z = 30; height = 30; width = 60; cut_width = 40; cut_x_offset = 10; cut_y_offset = 20; arm_x_offset = 30; arm_length = 75; arm_width = 20; module base() { difference() { cube([width, height, z]); translate([cut_x_offset, -cut_y_offset , -1]) cube([cut_width, cut_width, z + 2]); }...
glb/cad_1d5a28e3b479.glb
Create a Print Nozzle Holder by starting with a rectangular block measuring 20mm wide, 60mm long, and 10mm thick, centered on the origin. Remove three vertical cylindrical holes, each with a diameter of 6.1mm and a depth of 10mm, positioned at the center of the width. Space these holes along the length: one at the cent...
difference() { cube([20,60,10], center = true); translate([1,0,-2.6]) cylinder(10,6.1/2,6.35/2); translate([1,-20,-2.6]) cylinder(10,6.1/2,6.35/2); translate([1,20,-2.6]) cylinder(10,6.1/2,6.35/2); translate([-3.5,-27,4]) rotate([0,0,90]) linear_extrude(2)...
glb/cad_83bf1dc3eaf5.glb
Create a customizable roller bearing consisting of an outer ring, an inner ring, and a series of cylindrical rollers. The overall height of the assembly is 7mm. The outer ring has an outer diameter of 22mm and an inner diameter that accommodates the rollers. The inner ring has an outer diameter that fits the rollers an...
OD=22; ID=8.2; H=7; wall=0.9; tol=0.15; {} $fn=96; h=H/2;edge=0.5;RD=(OD-ID)/2-2*wall;tooth=min(RD*.3,RD/2-tol*1.3-1.25);n=floor(180/asin((RD-tol+.05)/(ID+OD)*2));Hmin=2*(edge+.8*(tooth+tol))+2; module p(tol){polygon([[0,0],[0,h],[wall+tol,h],[wall+tol,edge+.8*tooth+.7*tol],[wall+tooth+tol*1.3,edge+tol*.6],[wall+t...
glb/cad_44fcf2bfa8d8.glb
Create a Pantorouter Tenon Template consisting of a base and a raised guide. Start with a rectangular base 3.5mm thick. On top of this base, create a raised template body 12mm high. The template body is a rounded rectangular block. The outer dimensions are based on a tenon width of 25.4mm (1 inch) and a length of 114...
INCH_TO_MM = 25.4; $fa = 1; $fs = 0.5; inner_bit = 0.5 * INCH_TO_MM; inner_bearing = 10; outer_bit = 0.5 * INCH_TO_MM; outer_bearing = 10; tenon_width = 1 * INCH_TO_MM; tenon_length = floor((5.5 - 1) / 2) * INCH_TO_MM; tenon_radius = inner_bit / 2; rows = 1; columns = 1; row_gap = 1 * INCH_TO_MM; column_gap = 1 * I...
glb/cad_d5ab2b75596e.glb
Create a Scribe contour following pencil guide. Start by constructing a base plate that is the convex hull of three cylinders, each with a diameter of 2mm and a height of 2mm. Position the first cylinder at (0, 0, 0), the second at (0, 25, 0), and the third at (20, 12.5, 0). Along the center line of this base, from x=0...
$fn=60; difference(){ hull(){ translate([0,0,0])cylinder(d=2,h=2); translate([0,25,0])cylinder(d=2,h=2); translate([20,12.5,0])cylinder(d=2,h=2); } for(i=[0:2:20]){ translate([i,12.5,0])cylinder(d=1,h=2); } } translate([0,3,0])cylinder(d=5,h=8); translate([0,22,0])cylinder(d=5,h=8);
glb/cad_ed41dbbc3dfb.glb
Create a Henson AL13 Razor Travel Case consisting of three parts: a base, a lid, and a separator. The overall design is based on a hexagonal prism with 6 sides. For the base, create a hexagonal container with an interior diameter of 46.2mm and an interior height of 97mm. The walls should have a minimum thickness of 2....
use <utils/build_plate.scad> _part = "base"; _insideDiameter = 46.2; _interiorHeight = 97; _style = "polygon"; _numberOfSides = 6; _minimumWallThickness = 2.0; _topBottomThickness = 2.0; _lipHeight = 4.0; _bayonetDepth = 1.0; _partGap = 0.03; _resolution = 120; build_plate(0); make(); module make($fn=_reso...
glb/cad_b6bc689b09ce.glb
Create a Henson AL13 Razor Travel Case consisting of a base and a lid. The interior container space must have a minimum diameter of 46.2mm and an interior height of 8mm. For the base, create a hexagonal prism with six sides and a wall thickness of 2mm. The base should have a flat bottom thickness of 2mm. Incorporate ...
use <utils/build_plate.scad> _part = "lid"; _insideDiameter = 46.2; _interiorHeight = 8; _style = "polygon"; _numberOfSides = 6; _minimumWallThickness = 2.0; _topBottomThickness = 2.0; _lipHeight = 4.0; _bayonetDepth = 1.0; _partGap = 0.03; _resolution = 120; build_plate(0); make(); module make($fn=_resolu...
glb/cad_5a2c7f220a34.glb
Create a center spacer for a Henson AL13 razor travel case. Construct a solid cylinder with an outside diameter of 46mm and a total height of 97mm. Bore a concentric cylindrical hole through the entire length of the object with an inside diameter of 13mm, resulting in a thick-walled hollow tube. Ensure the geometry use...
outsideDiameter = 46; insideDiameter = 13; length=97; resolution = 120; make(); module make($fn=resolution) { difference(){ cylinder (r=outsideDiameter/2, h=length); cylinder (r=insideDiameter/2, h=length); } }
glb/cad_f3cf74a666b8.glb
Create a Hex Tile Holder by starting with a hexagonal base plate 2mm thick and 106mm in diameter (measured from flat to flat). From this base, extend a hexagonal wall upwards to a total height of 68mm with an internal diameter of 106mm. The walls should be 10mm thick. To allow for easy removal of the tiles, create two ...
$bottom_h = 2; $height = 68; $base_diam = 106; wall=10; lower_height=8; cube_plus_x=4; cube_plus_y=8; diam_ratio=90/104; short_diam=$base_diam*diam_ratio; difference() { union() { difference() { translate([0,0,-$bottom_h]) cylinder(d=$base_diam,h=$bottom_h,$fn=6); translate([$base_diam/2+1,0,-$bottom_h-1]) ...
glb/cad_a1d2b4fef796.glb
Create a filament colour sample plate by starting with a square base measuring 66mm by 66mm with a thickness of 1.6mm. Ensure all four corners of this base are rounded with a radius of 1mm. In the center of the plate, carve out a rectangular recessed area to hold a label. This cutout should measure 59mm in width and 34...
$fn=200; difference() { Cube(66,66,1.6); translate([66/2-59/2,4,1])Cube(59,34,10); } module Cube(xdim ,ydim ,zdim,rdim=1) { hull(){ translate([rdim,rdim,0])cylinder(h=zdim,r=rdim); translate([xdim-rdim,rdim,0])cylinder(h=zdim,r=rdim); translate([rdim,ydim-rdim,0])cylinder(h=zdim,r=rdim); translate([xdim-rd...
glb/cad_ff4a3670e2df.glb
Create a peppercorn funnel consisting of a wide conical top and a cylindrical base. Start by creating a hollow cylinder for the base with an outer diameter of 25mm, an inner diameter of 21mm, and a height of 20mm. Cut a semi-cylindrical notch out of the bottom of this base, 20mm in diameter and 30mm long, centered hori...
$fn = 120; difference() { cylinder(h=20, d1=25, d2=25); translate([0,0,-1]) cylinder(h=50, d1=21, d2=21); translate([-15,0,-5]) rotate([0,90,0]) cylinder(h=30, d1=20, d2=20); } difference() { translate([0,0,20]) cylinder(h=20, d1=25, ...
glb/cad_c1fabdad06c9.glb
Create a Parametrizable Cable Holder consisting of a flat rectangular base with vertical towers that form slots to organize cables. Start with a base plate 2mm thick. On this base, construct a series of vertical towers spaced apart to create cable slots. Each tower should have a width of 4mm and a height correspondin...
Number_of_slots = 3; Floors = 1; Cable_thickness = 7; Variable_cable_thicknesses = []; Left_mounting_pad = false; Right_mounting_pad = false; Top_mounting_pad = false; Bottom_mounting_pad = false; Dowels = false; Do...
glb/cad_f428ff7a267f.glb
Create a tactile puzzle board with a square base measuring 114mm by 114mm and a total height of 6mm. In the center of this base, carve out a 3x3 grid of square recessed pockets. Each pocket should be 20mm wide and 20mm long, with a depth of 5mm, separated by walls 6mm thick. Around the perimeter of the central grid, c...
$type=0; $fieldWidth=20; $borderWidth=1; $edgeWidth=25; $depth=6; $fieldDepth=4; w = $edgeWidth*2 + $fieldWidth*3 + $borderWidth*6; fw = $edgeWidth/2; module shape_triangle(d) { linear_extrude(0.5) polygon(points=[ [-d/2, d/2-sqrt(3)*d/2], [d/2, d/2-sqrt(3)*d/2], [0, d/2] ]); } module shape_square(d) { translate([-...
glb/cad_77fe87aaeb06.glb
Create a set of tactile puzzle tiles for a "Design a Route" game. Each tile is a square base measuring 21mm x 21mm x 5mm. The base consists of a main body 4mm thick with a 1mm thick top layer extending 1mm beyond the body's edges to create a slight lip. On the top surface of these tiles, create various raised paths 0....
$type=0; $fieldWidth=20; $fieldDepth=4; module tile() { translate([-($fieldWidth+1)/2, -($fieldWidth+1)/2, 0]) { translate([0.2+0.5, 0.2+0.5, -$fieldDepth-1]) cube([$fieldWidth-0.4, $fieldWidth-0.4, $fieldDepth]); translate([0, 0, -1]) cube([$fieldWidth+1, $fieldWidth+1, 1]); } } module shape() { translate([-$fieldW...
glb/cad_d3530ad99f38.glb
Create a tactile Sudoku 2x2 game board. Start by constructing a square base plate with a total width and length of 140mm and a thickness of 6mm. On the top surface of this base, create a grid of four recessed square cells. Each cell should have internal dimensions of 20mm by 20mm and a depth of 4mm. These cells are s...
$fieldWidth=20; $borderWidth=5; $edgeWidth=10; $depth=6; $fieldDepth=4; $lineDepth = 3; w = $edgeWidth*2 + $fieldWidth*4 + $borderWidth*8; fw = $edgeWidth/2; module board_base(depth) { w = $edgeWidth*2 + $fieldWidth*4 + $borderWidth*8; fw = $edgeWidth/2; translate([fw/2, fw/2, 0]) cube([w-fw, w-fw, depth]); transla...
glb/cad_2c1d8a118390.glb
Create a Sudoku 2x2 tactile game board. Start by constructing a square base plate with a total width and length of 116mm and a thickness of 6mm. On the top surface of this base, create a recessed square area to hold the game tiles. This area is defined by a perimeter border that is 5mm wide. Within this border, creat...
$fieldWidth=20; $borderWidth=5; $edgeWidth=10; $depth=6; $fieldDepth=4; $lineDepth = 3; $margin=0.2; w = $edgeWidth*2 + $fieldWidth*4 + $borderWidth*8; fw = $edgeWidth/2; module board_base(depth) { w = $edgeWidth*2 + $fieldWidth*4 + $borderWidth*8; fw = $edgeWidth/2; translate([fw/2, fw/2, 0]) cube([w-fw, w-fw, dept...
glb/cad_6c7a3d2f8ba3.glb
Create a set of 16 tactile game tiles for a 2x2 Sudoku board. Each tile is a square block measuring 21mm x 21mm x 5mm. The top surface of each tile features a recessed square area measuring 16mm x 16mm x 1mm, centered on the block. Within this recessed area, create four distinct geometric shapes to represent different ...
$type=0; $fieldWidth=20; $fieldDepth=4; module shape(type) { translate([-$fieldWidth/2, -$fieldWidth/2, 0]) union() { difference() { cube([$fieldWidth, $fieldWidth, 1]); if(type!=0) translate([2, 2, 0]) cube([$fieldWidth-4, $fieldWidth-4, 1]); } if(type==1) translate([$fieldWidth/2, $fieldWidth/2, 0]) cylinder(r...
glb/cad_5a25b2b50453.glb
Create a replacement wristband for a Garmin Vivoactive 3 by constructing a rectangular slab with rounded corners. The main body should have a total length of 24.2mm, a width of 9.2mm, and a height of 6.5mm. The corners of this slab must be rounded with a radius of 1.6mm. From the center of this solid, remove a rectangu...
use <donat_basics01.scad> th1 = 1.6; h0 = 6.5; l0 = 21; w0 = 6; difference(){ translate([0,0,-h0/2]) rounded_rect(th1, h0, w0+2*th1, l0+2*th1); cube([6, 21, 7.0], center = true); } translate([-1.75, 0, 0]) cube([2.5, 4, 2], center = true); translate([-3, 2, -3.0]) rotate([90, 0, 0]) linear_extrude(4) p...
glb/cad_b5e68e19689e.glb
Create a replacement wristband for a Garmin Vivoactive 3. Start with a main rectangular strap that is 73mm long, 20mm wide, and 2.8mm thick, featuring rounded corners with a radius of 0.1mm. At one end of the strap, add a semi-cylindrical mounting protrusion with a radius of 2.5mm and a height of 20mm. Centered withi...
$fn=32; hei1 = 2.8; len1 = 73.0; wid1 = 20.0; rad1 = 0.1; dim0 = 5.0; dim1 = 2.3; dim_h0 = 2.0; pos_h0 = 2.0; wid_h0 = 3.8; b_rad0 = 5.0; b_dim0 = 5.0; b_dim1 = 5.01; module round_rect(l0, w0, h0, r0) { hull(){ for (i = [r0, l0-r0]) { for (j = [-w0/2+r0, w0/2-r0]) { translate([i, j, 0]) ...
glb/cad_e796efe0e961.glb
Create a replacement wristband strap for a Garmin Vivoactive 3. Start with a main rectangular body that is 104mm long, 20mm wide, and 2.8mm thick, featuring rounded ends with a radius of 8mm. Along the center of the strap, create a series of 17 evenly spaced rectangular cutouts, each 2.4mm long and 5mm wide with a 1mm ...
$fn=32; hei1 = 2.8; len1 = 104.0; wid1 = 20.0; rad1 = 8.0; len2 = 2.4; wid2 = 5.0; rad2 = 1.0; pos0 = 17.0; stp0 = 4.95; num0 = 17; dim0 = 5.0; dim1 = 2.3; dim_h0 = 2.0; pos_h0 = 2.0; wid_h0 = 3.8; module round_rect(l0, w0, h0, r0) { hull(){ for (i = [r0, l0-r0]) { for (j = [-w0/2+r0, w0/2-r0]) { ...
glb/cad_7036281f0d28.glb
Create an Aeropress Cap Replacement consisting of a central perforated disc and a supporting outer wall structure. Start with a central disc 4mm thick with a radius of 31.5075mm. In this disc, create a pattern of hexagonal holes. The holes are arranged in concentric rings; the distance of these rings from the center ...
hole_type = "new_hex"; show_branding = true; brand = "HNCXTech"; stext = [ for (l = brand) l ]; chars = len(stext); center_radius = 31.5075; number_of_supports = 16; angle_between_supports = 360/number_of_supports; height_as_measured = 16.55; tab_height = 2.5; tab_width = 12.7; tab_depth = 5.05; inner_radius_of_out...
glb/cad_337d20d3b8ae.glb
Create a multi-purpose door hook with a consistent thickness of 1.6mm and a total height of 15mm. Start by forming a wide rectangular base that is 35mm wide. From this base, extend a vertical arm upwards that bends to form a hook. The hook section should have a total length of 80mm from the top to the outer edge. To ...
w=35; L=80; t=1.6; i=2.5; label=""; resolution=60; l=L/2; module hook(){ difference(){ union(){ translate([-7.5-2.5,-7.5-l,0]) cube([ 15+5,l+7.5+l, 15 ]); translate([0,-7.5-l,0]) cylinder( h = 15, r = 7.5+2.5, $fn=resolution); } translate([0,-7.5-l,0]) cylinder( h = 15, r = 7.5+0.25/2, $fn=resolution...
glb/cad_122d9bfa57a3.glb
Create an RFID and magnet capsule consisting of a base and a separate lid. For the base, create a cylinder with a diameter of 31.6mm and a height of 5mm. In the center of the top face, create a cylindrical indentation with a diameter of 9.8mm and a depth of 4.6mm. Around the top edge of this base, add a concentric rim ...
rimThickness = 3; rimHeight = 3; chipDiameter = 25.6; diskHeight = 5; indentDiameter = 9.8; minBottomLayerHeight = 0.4; disk1Height = 2; disk2Height = 1; diskDiameter = chipDiameter + 2 * rimThickness; indentHeight = diskHeight - minBottomLayerHeight; disk1Diameter = diskDiameter; disk2Diameter = chipDiameter - 0...
glb/cad_ccdbd31d98d6.glb
Create an articulated arm segment consisting of a central rectangular body with circular joints at each end. The main body is a rectangular prism 50mm long, 10mm wide, and 5mm thick. At each end of this prism, create a cylindrical joint with a radius of 12mm and a height of 10mm. For the female joint, integrate a seri...
include <joint.scad> model = "All"; $fn = 100; module brazo1(){ difference(){ union(){ hull(){ cylinder(h = 5, r = 12, center = false); translate([35,0,2.5]) cube([50, 10, 5], center = true); } cylinder(h = 10, r = 12, center = false); ...
glb/cad_6b7577c2fa5e.glb
Create a garden plant identification stake consisting of a flat base and a raised label. Start by constructing a flat plate with a total thickness of 2mm. The plate's top section is a rectangular label area with rounded corners, and the bottom section is a narrow stake. The label area's width is determined by the tex...
label = "Plant"; label_font = "Nimbus Sans L:Bold"; char_width = 9.5; char_height = 12; margin = 2; stake_width = 7; stake_length = 80; thickness = 2; resolution = 90; $fn = resolution; label_width = len(label) * char_width; label_height = 1.5 * char_height; X = label_width/2 + margin; Y = label_height/2 + margin...
glb/cad_4e7ec27c8666.glb
Create a customizable emoji cookie cutter based on a specific emoji character. The overall structure consists of a thin vertical wall that follows the outline of the emoji, a reinforced top rim, and a supporting base grid. The main cutting wall should be 18mm high with a thickness of 1mm, following the precise contour...
emoji_selector="use below"; emoji_freetype="🌶"; connect_all=0; fontsize=70; bars=5; height = 18; impression=3; thickness = 1; barlength=fontsize*1.8; barw=2; topHeight = 2; topThickness = 3; $fn = $preview ? 15 : 15; emoji=(emoji_selector=="use below"?emoji_freetype:emoji_selector); module _2Dshape(z, of...
glb/cad_860857a79876.glb
Create a customizable emoji cookie cutter based on a specific emoji character. The model consists of a thin outer wall and a supporting base structure. First, generate the 2D profile of the chosen emoji at a font size of 70mm. Extrude this shape to a total height of 18mm with a wall thickness of 1mm. To create the cut...
emoji_selector="use below"; emoji_freetype = "🐪"; connect_all=0; fontsize=70; bars=5; height = 18; impression=3; thickness = 1; barlength=fontsize*1.8; barw=2; topHeight = 2; topThickness = 3; $fn = $preview ? 15 : 15; emoji=(emoji_selector=="use below"?emoji_freetype:emoji_selector); module _2Dshape(z, ...
glb/cad_a06f38abe2c1.glb
Create a rounded icosahedron with a total size of 20mm. Construct the base geometry by creating three golden rectangles, each with a width of 20mm and a height of 20mm multiplied by the golden ratio (approximately 32.36mm). Position these rectangles so they are mutually perpendicular to one another, centered at the ori...
s=20; r=3; phi=(1+sqrt(5))/2; dA=acos(-sqrt(5)/3); rotate(dA*0.5,[+0,1,0])minkowski(){ Icosahedron(s-r); sphere(r,$fn=72); } module Icosahedron(s=s){ hull() for(rot=[[0,1,0],[1,0,0],[0,0,1]]) rotate(90,v=rot) linear_extrude(.01,scale=0) ...
glb/cad_6f300aae141c.glb
Create a golf ball stencil consisting of a hemispherical shell with an inner radius of 21.55mm and a wall thickness of 1.6mm. Cut the text "USGA" through the shell. Each character should be extruded from the center of the sphere so that the walls of the cutouts are perpendicular to the spherical surface. Use a bold s...
displaytext = "USGA"; fontface = "Liberation Sans:style=Bold"; fontsize = 10; addthickness = 0.1; charsep = 1; ballclearance = 0.3; wall_thickness = 1.6; slotwidth = 1.4; hslots = true; vslots = true; slot_textoffset = 4; tab_length = 15; tab_width = 25; tab_thickness = 4; tab_hole_dia = 5; module dummy(...
glb/cad_9186015f9dd3.glb
Create a vertical organizer consisting of multiple divider plates held between two parallel base bars. Construct seven identical divider plates, each 200mm deep, 150mm high, and 8mm thick. Each divider's profile is a composite of three connected shapes: a large central triangle with a 10mm corner radius at the peak, ...
include <../libs/Round-Anything/polyround.scad> depth = 200; width = 200; height = 150; dividerThickness = 8; dividerLineThickness = 4; slotCount = 6; baseThickness = 10; tolerance = 0.0; output = "a"; module __Customizer_Limit__ () {} gap = (width-dividerThickness) / slotCount; module triangle2d(width, hei...
glb/cad_9b2a9d92bd4b.glb
Create an Anechoic Prism Sound Diffusor consisting of two identical wedge-shaped prisms joined at a central edge. Each prism is defined by a width of 10mm and a height and side length of approximately 3.54mm. The geometry of a single prism is a polyhedron with a rectangular base and a sloped top, creating a right-trian...
width = 10; single_height = 5; depth_factor = 1.5; base_overlap = 0.1; module prism(l, w, h){ polyhedron( points=[[0,0,0], [l,0,0], [l,w,0], [0,w,0], [0,w,h], [l,w,h]], faces=[[0,1,2,3],[5,4,3,2],[0,4,5,1],[0,3,4],[5,2,1]] ); } function hypotenuse(a, b) = sqrt(a*a+...
glb/cad_73a710c7ac4d.glb
Create a USB Type-A cap with an outer shell measuring 12.4mm wide, 15mm long, and 5.3mm high. Hollow out the center to create a cavity that is 12.4mm wide and 14.4mm long, leaving a shell thickness of 0.6mm. The floor of this cavity should be 2.5mm thick. At the base of the interior cavity, carve four small longitudin...
W = 12.4; L = 15; H = 5.3; InnerPieceH = 2.5; ShellThickness = 0.6; module OuterShell() { cube([W, L, H]); } module Inner() { translate([-0.01,ShellThickness,InnerPieceH]) cube([W+0.2,L - ShellThickness+0.1,H-InnerPieceH+0.01]); } X_off = [2.14, 4.68, 6.72, 9.26]; DepthChannel = 0.6; module Channels() { ...
glb/cad_61a91f5ca52c.glb
Create a garden rainwater collector consisting of a main vertical cylindrical body and a side-mounted outlet. The main body is a hollow cylinder with an outer diameter of 106mm and an inner diameter of 101mm, extending 150mm in height. Centered within this main cylinder is a vertical bore with a diameter of 69mm. Atta...
wall = 2.5; $fn=200; roura = 101; inn = 64; difference() { union() { translate([0,0,-70]) cylinder(d=roura+2*wall, h=70+70); translate([80-15,0,0]) rotate([0,90,0]) cylinder(d=86.5+2*wall, h=15); rotate([0,90,0]) cylinder(d=76.5+2*wall, h=80); hull() { translate(...
glb/cad_9f8bdbe06268.glb
Create a garden rainwater collector adapter by starting with a solid cylinder 106.5mm in diameter and 12mm in height. Remove a central coaxial cylinder with a diameter of 86.5mm and a height of 13mm to create a ring. From the center of this ring, remove a second coaxial cylinder with a diameter of 76.5mm and a height o...
$fn=256; difference() { cylinder (d=86.5+20,h=7+5); translate([0,0,-1]) cylinder (d=86.5,h=7+1); translate([0,0,-1]) cylinder (d=76.5,h=20+1); for (i=[1:360/9:359]) { rotate([0,0,i]) translate([(86.5+20)/2-5.5,0,0]) { translate([0,0, 4]) cylinder(d=4.5,16); translate([0,0,...
glb/cad_854599a172a4.glb
Create a customizable emoji charm consisting of two separate parts: a decorative topper and a mounting pin. First, create the topper. Extrude a chosen emoji or character to a height of approximately 5mm. At the base of this shape, create a circular recessed hole to accommodate the pin. The diameter of this hole should...
part="both"; emoji_selector="use below"; emoji_freetype="😻"; textstring=(emoji_selector=="use below"?emoji_freetype:emoji_selector); textsize=17; len_throughhole=6; base_radius_add_percent=0.05; base_radius_add=textsize*base_radius_add_percent; shift_locker=textsize*.45; wiggle=.2; topaddwiggle=.3; shell=.8; ...
glb/cad_2ae2b1d3b509.glb
Create a Power Strip Rocker Switch Cover designed as a hollow rectangular shell. The interior cavity must measure 25mm in length, 20mm in width, and 10mm in height. The walls and the top ceiling of the cover should have a thickness of 1.95mm, while the top ceiling specifically is thinner at 0.8mm. The overall exterior...
inner_width = 20; inner_length = 25; inner_height = 10; holes = false; vertical_thickness = 0.8; horizontal_thickness = 1.95; bar_diameter = 3.0; flatten_bar = true; $fa = 1; $fs = 0.1; { h = inner_height + vertical_thickness; c = sqrt( bar_diameter * bar_diameter / 2); w = inner_width + 2 * horiz...
glb/cad_2fcc9bb8e39f.glb
Create a breakable wedge for carpentry shimming. Start by constructing a base shape that is a sector of a circle with an outer radius of 100mm, spanning an arc from 30 to 90 degrees, with a total thickness of 10mm. Remove a smaller concentric cylinder from the center with a radius of 30mm to create a hollowed-out arc s...
echo(version=version()); debug = 0; explode = $preview ? 0.1 : 0.0; $fn = $preview ? 90 : 360; $fa = $preview ? 3 : 0.5; nearly_zero = $preview ? 0.05: 0.0; module pie_slice(r=3.0, as=30, ae= 90, h=1) { linear_extrude(height = h, center = true, convexity = 10) polygon(points=[ [0, 0], for(theta=as; theta<ae;...
glb/cad_67b9d6930e6f.glb
Create an analog clock stencil on a square base measuring 60mm by 60mm with a total thickness of 1mm. Centered on this base, create a circular cutout with an outer diameter of 55mm and an inner diameter of 52mm, forming a thin ring. At the exact center of the circle, place a small circular hole with a diameter of 2.25m...
LAYER_HEIGHT = 0.2; CLOCK_DIAMETER_1 = 52; LAYER_XY_OFFSET = 0.2; $fn=32; module round_clock(dia,layer_no) { union() { difference() { cylinder(d=dia+3+layer_no*LAYER_XY_OFFSET, h=LAYER_HEIGHT); cylinder(d=dia-layer_no*LAYER_XY_OFFSET, h=LAYER_HEIGHT); if (layer_no==0) { translate([-1,...
glb/cad_be70f2ee446d.glb
Create a rectangular backing plate for a shower valve with overall dimensions of 150mm in length, 45mm in width, and 5mm in thickness. Round all four corners of the plate with a radius of 5mm. Centered along the width of the plate, create two circular holes, each with a diameter of 22mm. Position these holes so that th...
$fn = 100; $fa = 6; $fs = 1.75 / 2; x = 150; y = 45; z = 5; corner_radius = 5; hole_diameter = 22; hole_spacing = 100; hole_y = y / 2; hole_x1 = (x - hole_spacing) / 2; hole_x2 = (x + hole_spacing) / 2; module rounded_panel(length, width, thickness, radius) { translate([radius, radius, 0]) cylinder(h =...
glb/cad_0026cab4adc4.glb
Create a Christmas Tree Leg by constructing a central vertical rectangular prism that is 45mm tall, 9mm wide, and 4mm deep, centered on the origin. Attach a second, smaller rectangular prism to the face of the first, measuring 3mm wide, 2.75mm deep, and 45mm tall, also centered on the origin. At the base of the structu...
$fa = 1; $fs = 0.4; height = 45; use <wedge.scad>; difference() { union() { cube([9, 4, height], center = true); translate([0, -2.5, 0]) cube([3, 2.75, height], center = true); translate([1.5, -3.75, height / -2]) rotate([90, 0,270]) wedge(90, 125, heigh...
glb/cad_6c87b89bdecc.glb
Create a hoop for decorations by constructing a thin-walled hollow cylinder with an outer diameter of 208mm, an inner diameter of 198mm, and a height of 12mm. To create a gap in the ring, remove a rectangular section from the cylinder wall that is 60mm wide, 15mm deep, and 12mm high, centered 105mm away from the center...
$fa=1; $fs=0.4; difference() { cylinder(h=12, d=208, center=true); cylinder(h=14, d=198, center=true); } translate([0,-105,0]) cube([60,15, 12], center=true);
glb/cad_f37eef04bda8.glb
Create a Cheesebox Pico midi controller bottom case. Start with a circular base disk with a radius of 55mm and a thickness of 1mm. Extend the outer edge of this disk upwards to create a cylindrical wall with a height of 18mm and a thickness of 1mm. At the top of this wall, add a lip that is 4mm high, consisting of a ri...
epsilon=0.01; $fn=64; $fa=0.01; $fs=0.2; liddiam=110; lidrad=liddiam/2; lidside=18; lidthick=1; usbwide=9; usbhigh=7; postdiam=1.75; postrad=postdiam/2; postheight=6; picowidth=11.4; halfwidth=picowidth/2; picolength=47; outers=lidrad-lidthick-4; inners=lidrad-lidthick-picolength-4; post1=[outers,halfwidth,lidthick-...
glb/cad_3fb71d916e97.glb
Create an LED Matrix Energy Dashboard case by starting with a solid rectangular base measuring 164mm by 164mm with a height of 12mm. Hollow out the center of this base by removing a 160mm by 160mm square area starting 2mm from the bottom, leaving a 2mm thick floor. Within this hollowed area, create a grid of thin wall...
$fs = 0.1; $fa = 5; include <BOSL2/std.scad> difference(){ union() { difference(){ translate([-2,-2,0])cube([164,164,12]); translate([0,0,2])cube([160,160,12]); } translate([-0.5+(10*1),-2,0])cube([1,164,10]); translate([-0.5+(10*2),-2,0])cube([1,164,10]); ...
glb/cad_73aa95fbd41e.glb
Create an LED Matrix Energy Dashboard case. Start by creating a solid base block measuring 164mm x 164mm x 12mm. From the top surface, remove a central rectangular area of 160mm x 160mm with a depth of 12mm to create a thin-walled outer rim. Within this rim, create a grid of internal support walls. Add 15 vertical wal...
$fs = 0.1; $fa = 5; include <BOSL2/std.scad> font = "Segoe UI Symbol"; module letter(l,letter_size,letter_height) { linear_extrude(height = letter_height) { text(l, size = letter_size, font = font, halign = "center", valign = "center", $fn = 16); } } difference(){ union() { difference(){ ...
glb/cad_8b7fe781fa32.glb
Create an LED Matrix Energy Dashboard case. Start with a base rectangular plate measuring 173mm by 173mm with a height of 3mm, applying a 3mm chamfer to the four bottom edges. On top of this base, add a centered square wall with outer dimensions of 164mm by 164mm and a height of 6mm. Hollow out the center of this struc...
$fs = 0.1; $fa = 5; include <BOSL2/std.scad> difference(){ union(){ translate([-4,-4,-3])cuboid([165+8,165+8,3], chamfer=3, edges=[LEFT+FRONT,FRONT+RIGHT,BACK+RIGHT,BACK+LEFT,BOTTOM+FRONT,BOTTOM+BACK,BOTTOM+LEFT,BOTTOM+RIGHT],p1=[0,0,0]); translate([0,0,0])cube([164,164,6]); translate([(16...
glb/cad_d478984301c0.glb
Create an LED Matrix Energy Dashboard case. Start with a main outer block measuring 164mm x 164mm x 12mm. Hollow out the center by removing a 160mm x 160mm x 12mm block, leaving a 2mm thick wall. Within this hollow area, remove a smaller central block of 154mm x 154mm x 8mm with 4mm chamfers on the left and front edges...
$fs = 0.1; $fa = 5; include <BOSL2/std.scad> font = "Segoe UI Symbol"; module letter(l,letter_size,letter_height) { linear_extrude(height = letter_height) { text(l, size = letter_size, font = font, halign = "center", valign = "center", $fn = 16); } } difference(){ union() { difference(){ ...
glb/cad_b3136cbdbb2e.glb
Create a strain relief clip for a 24-pin 2mm IDC connector. Start with a central rectangular spine measuring 24.7mm in width, 2.25mm in depth, and 2.8mm in height. At both ends of the spine, add symmetrical corner blocks. Each block is a hull created from two 1mm wide cubes spaced 2.35mm apart, with a depth of 4.2mm ...
$fn = 50; pincount = 12; base_d = 2.25; base_h = 2.80; base_w = (pincount*2) + 0.7; corner_d = 4.20; corner_h = 3.80; corner_w = 2.35; tab_d = 1.35; tab1_h = 3.1; tab1_w = corner_w; tab2_h = 2.95+2; tab2_w = 1.1; tab2_tab_d = 1.5; module do_corner(coff_h) { hull() { translate([0, 0, 0]) cube([1, corner_d...
glb/cad_e2e5790ec2eb.glb
Create a Nobo lightsaber connector by starting with a central cylinder 15mm in diameter and 40mm tall. Around the middle of this main cylinder, add a wider decorative ring that is 17.8mm in diameter and 3.45mm thick, positioned so its base is 18.5mm from the bottom of the main cylinder. To finish the piece, integrate a...
cylinder(d=15, h=40); translate([0, 0, 18.5]) cylinder(d=17.8, h=3.45); intersection() { cylinder(d=23, h=40); union() { translate([0, 0, 21.5]) cube([6.75, 99, 6.75]); translate([-6.75, 0, 11.9]) cube([6.75, 99, 6.75]); translate([0, -99, 21.5]) cube([6.75, 99, 4.75]); translat...
glb/cad_e3ca088e652c.glb
Create a mineral display box consisting of a base container and a hinged lid. The base is a rectangular box with outer dimensions of 203mm width, 182mm depth, and 40mm height. The walls are 2mm thick with 4mm rounded exterior corners. The interior of the base is divided into various rectangular compartments by removi...
$fn = 100; width = 203; depth = 182; height = 40; thickness = 2; roundness = 4; cutoutRoundness = 1; lidheight = 10; !translate([0, 230, 0]) union() { difference() { minkowski() { cube([width-roundness*2, depth-roundness*2, lidheight-1]); cylinder(h=1, r=...
glb/cad_b65dae03489c.glb
Create a planetary gear bearing. Start with a main outer ring that has an outer diameter of 62.8mm and a thickness of 42mm. Inside this ring, remove a central cylindrical core with a radius of 31.15mm. From the remaining wall, carve out a herringbone-shaped internal gear with 18 teeth. This internal gear should have ...
D=62.8; T=42; tol=0.20; number_of_planets=5; number_of_teeth_on_planets=7; approximate_number_of_teeth_on_sun=9; P=45; nTwist=1; w=6.7; DR=0.5*1; m=round(number_of_planets); np=round(number_of_teeth_on_planets); ns1=approximate_number_of_teeth_on_sun; k1=round(2/m*(ns1+np)); k= k1*m%2!=0 ? k1+1 : k1; ns=k*m/2-np...
glb/cad_9e7c97c9cc0e.glb
Create a brake pad thickness gauge set consisting of 13 identical flat tools, each 2mm thick, spaced apart. Each tool is 150mm long and 15mm wide. Starting from the base, center a circular hole with a 4.5mm diameter. The main body of the tool tapers from the 15mm base width down to a 5mm wide tip. At the end of the too...
handle_length = 150; handle_width = 15; handle_thickness = 2; handle_tip_width = 5; handle_hole_diameter = 4.5; gauge_type = "hook"; gauge_width = 5; font_size = 7; gauges = [for(i = [3 : 1 : 15]) i]; for(idx = [0 : len(gauges) - 1]) translate([idx * handle_width * 1.25, 0, 0]) tool(gauges[idx]); module too...
glb/cad_f2f76f30cd31.glb
Create a low-profile PCIe bracket for an LSI 9212-4i4e card. Start with a main plate 1.75mm thick. The plate's profile is a custom polygon: it begins with a bottom section extending to -13.24mm on the X-axis at a width of 3.66mm, transitions to a flat base at 0mm height, extends to a total height of 66.27mm, and reache...
A = 7.3; B = 54; C = 8.5; M3= 2.8; h_pci_cutout = 66.27; cutout_pos = [21,3]; cutout_size = [21,9]; module plate() { thick = 1.75; plug_bottom =-13.24; board_bottom = 0.0; w_pci_cutout = 18.42; w_connector = 10.38; w_margin = 3.16 + 0.5; points = [ [plug_bottom, w_margin], [board_bottom, w_m...
glb/cad_cfab5e89e4a0.glb
Create a tap set storage box with a sliding lid. The main body is a rounded rectangular prism with outer dimensions of 30mm width, 70mm depth, and 10mm height. The vertical corners should have a radius of 2mm. The walls of the box are 1.5mm thick. Hollow out the center to create an interior cavity, leaving the bottom...
boxX = 30; boxY = 70; boxZ = 10; cornerRad = 2; wallThick = 1.5; xCompartments = 4; yCompartments = 1; dividerThick = 1.0; addSlant = true; lidSnugness = 0.1; wallSub = 2 * wallThick; fudge = .001; include <../MCAD/boxes.scad> snugness = 0.1; module lid(cutter = false) { snugness = cutter==true ? 0: lid...
glb/cad_01e417f273ff.glb
Create a mounting spacer for a bike seat by constructing a hollow cylinder with an outer diameter of 40mm and an inner diameter of 33mm, with a total height of 80mm. Center the geometry so that the height extends equally above and below the origin. To create the final half-shell shape, remove a section of the cylinder ...
outer_diameter = 40.0; inner_diameter = 33.0; cut_off = 5.0; height = 80.0; cut_cube_size = 1000.0; difference(){ difference(){ cylinder(r=outer_diameter/2,h=height,$fn=128, center= true); cylinder(r=inner_diameter/2,h=height*2,$fn=128, center= true); } translate ([cut_cube_size/2-cut_off, 0, 0]) cu...
glb/cad_7cdbab7af2b1.glb
Create a card storage box label consisting of a U-shaped channel with a base and two vertical walls. Start by creating a rectangular base that is 10.2mm wide, 12.1mm deep, and 1.6mm thick. Attached to the sides of this base, add two vertical walls that are each 1.6mm thick, 12.1mm wide, and 44.1mm high, leaving the cen...
width = 10.2; faceWidth = 12.1; faceHeight = 44.1; thickness = 1.6; textEmboss = 0.5; text1 = ""; font1 = "keyrune"; fontSize1 = 7.1; paddingLeft1 = 2.1; paddingBottom1 = 1.5; text2 = "MIR"; font2 = "Liberation Sans"; fontSize2 = 7.1; paddingLeft2 = 14.1; paddingBottom2 = 2.5; module fillet(r=1.0,steps=...
glb/cad_504e1786b45f.glb
Create a coin organizer consisting of five cylindrical compartments of varying diameters, each with a flat base 2mm thick and a total height of 64mm. Each compartment is formed by a cylinder with a 3mm wall thickness, containing a central hole that matches the coin diameter. The bottom of each hole features embossed te...
$stack_height=62; $extra_space=0; wall=3; bottom=2; module coinbank(coin_diameter,txt) { translate([0,-coin_diameter,0]) difference() { union() { intersection() { translate([0,-coin_diameter*0.15,0]) cylinder(d=coin_diameter+wall, h=bottom+$stack_height); translate([0,coin_diameter,0]) rotate([0,0,240...
glb/cad_ac0d537aee19.glb
Create a kitchen tray for oils with a rectangular footprint measuring 220mm in width and 200mm in length. The main body should be a solid slab with a total height of 23mm and rounded corners with a radius of 10mm. Carve out a central rectangular recessed area to create a basin. This interior cavity should also have r...
$fn = 64; height = 23; radius = 10; width = 220; length = 200; difference() { hull() { translate([radius, radius, 0]) cylinder(h=height-radius, r=radius); translate([width-radius, radius, 0]) cylinder(h=height-radius, r=radius); translate([radius, length-radius, 0]) cylinder(h=height-radius, r=radius); ...
glb/cad_89988a27432d.glb
Create a kitchen tray for oils by constructing a simple, solid cylinder with a radius of 9.5mm and a height of 2mm. Ensure the cylinder has a smooth, circular finish with a facet resolution of 64.
$fn = 64; radius = 9.5; cylinder(h=2, r=radius);
glb/cad_3f02425a7778.glb
Create an external GPS antenna support. Start with a main rectangular shell with outer dimensions of 29.5mm x 29mm x 9.8mm. Hollow out the center to create a cavity for the antenna, measuring 25.5mm x 25mm x 9mm, leaving a wall thickness of 2mm on the sides and a base thickness of 0.8mm. On one side of the shell, add ...
m3_head_h = 3; m3_head_d = 6; m3_d = 3.5 ; gps_ant_z = 9; gps_ant_x = 25.5; gps_ant_y = 25.5; z_thickness = 0.8; xy_thickness = 2; screw_offset = [-gps_ant_x/2,gps_ant_y/2.618,0]; screw_mount_outer_d = m3_head_d+xy_thickness*2; module gps_cavity() { translate([0,0,gps_ant_z/2]) cube([gps_ant_x,gps_ant_y,gp...
glb/cad_169e219e7f6e.glb
Create a Folding Laptop Stand consisting of two identical mirrored halves. Each half is a rounded rectangular block measuring 22.5mm in width, 60mm in depth, and 5mm in height. For each half, carve out a central column 11.25mm wide and 40.5mm long. Flanking this central column, create two leg columns, each 9mm wide an...
width = 45; depth = 60; height = 5; line_gap = 0.5; socket_gap = 0.25; central_column_width = width*0.25; leg_column_width = width*0.20; impression_width = 5; central_column_length = depth*0.67; leg_column_length = central_column_length-height/3; column_offset = height; impression_spacing = 1.6; impression_de...
glb/cad_8c4316896a98.glb
Create a USB port cap for a Nitecore HC65. Start by creating a main cylinder with a diameter of 27.6mm and a total height of 10.7mm. Around the outer perimeter of this cylinder, add 36 equally spaced vertical grip knobs. Each knob should be formed by a hull of two cubes: a base cube measuring 1mm by 1.2mm by 0.7mm, and...
use <threads.scad>; diameter = 24+0.4; seal = [0.4,3]; pitch = 1; length = 10; cutout = 12; base = 0.7; wall = 1.2; knobs = 36; grip_size = 1; $fs = 0.5; $fa = 0.5; e = 0.02; difference() { union() { cylinder(d=diameter+wall*2,h=length+base); inset = 1; for(i=[0:knobs-1]) ro...
glb/cad_99993d0ff668.glb
Create a Chessex Dice Case designed to hold a set of seven polyhedral dice. The main body is a hexagonal prism with a height of approximately 17.2mm (calculated as $10.65\text{mm} \times 1.6$ based on the tower case logic). Construct the outer shell as a hexagonal cylinder with a radius of approximately 38.5mm and a ...
include <platonic.scad> include <d10.scad> dice = [ [ 4, 17.2 + 1.5, 2, [ 0, 0, 0]], [ 6, 16.4 + 0.5, 0, [-1.5, -1.5, 0]], [ 8, 15.7 + 0.5, 0, [-1.5, -1, 0]], [ 10, 16.1 + 0.5, 1.10, [ 0, -2.0, 0]], [100, 16.1 + 0.5, 1.10, [ -1, -2.0, 0]], [ 12, 17.8 + 0.5, 0, [ 1, 0,...
glb/cad_3816458a77b5.glb
Create a watch band for a Casio W-800H consisting of three parts: an upper strap, a lower strap, and a keeper. All components have a thickness of 1.5mm and a width of 18mm. For both straps, create an attachment end that melds into the watch. This end features a base 15mm wide and 12mm long, transitioning into the 18mm...
$fn = 120; Width = 18; Thickness = 1.5; Select="All"; if (Select == "Upper") top(); if (Select == "Lower") { bottom(); } if (Select == "Keeper") { keeper(); } if (Select == "All") { translate([0,-15,0]) top(); rotate([0,0,180]) translate([0,-15,0]) bottom(); keeper(); } module end() { W0 = 18; Wb = 1...
glb/cad_cc41b68ad08f.glb
Create a round cable pass-through cover consisting of a flat circular lip and a concentric downward-extending tube. Start by creating the lip as a thin disk with a diameter of 130mm and a thickness of 2mm. Centered within this disk, create a hollow cylindrical tube that extends downwards. The outer diameter of this tub...
shape = "round"; cover_diameter = 90; lip_overlap = 20; extrusion_depth = 5; thickness = 2; tube_height = 5; inner_diameter = 90; tube_thickness = 2; corner_radius = 5; module rounded_square(size, radius, height) { hull() { for (x = [0, size-radius*2], y = [0, size-radius*2]) { translate([x, y...
glb/cad_3b5e5311d085.glb
Create a tripod foot designed to fit an oval extrusion. Construct a solid oval-based sleeve with an outer length of 34mm, an outer width of 19mm, and a total height of 20mm. The outer walls should be rounded at the top and bottom edges using spherical caps scaled to match the oval dimensions. Hollow out the center by r...
$fn=64; D=1; H=20; L=28; W=13; WT=3; difference(){ union(){ scale([L+WT*2,W+WT*2,H/2]) sphere(d=1); scale([L+WT*2,W+WT*2]) cylinder(h=H,d=1); translate([0,0,H]) scale([L+WT*2,W+WT*2,H/2]) sphere(d=1); } scale ([L,W]) cylinder(h=2*H,d=1); translate([0,0,(H+H/4)-2.2])scale([L+WT*2,W+WT*2]) cyli...
glb/cad_f80683708014.glb
Create a Gaggia Baby Switch Panel with a total length of 124mm, a height of 50mm, and a thickness of 4mm. The main body is a rectangular plate with curved side edges featuring a radius of 30mm. On the front face, create four rectangular cutouts for switches. Each cutout should be 22mm long, 12mm wide, and 28mm deep. ...
$fn= $preview ? 64 : 256; l=124.0; w=4; h=50; wc=4; tab=20; tab_hole=4.2; rc=3; r1=30; r2=(r1-w); a0=atan2(-12,86); a1=0; a2=-90; cutout_l=22; cutout_w=3*w; cutout_h=28; lamp_cutout=16; gaptotal=l-4*cutout_l; gap=gaptotal/5; module arc(r1,r2,a1,a2) { difference() { difference() { pol...
glb/cad_b19fe9f0462f.glb
Create a MacBook Air foot by constructing a tiered cylindrical base and a central mounting hole. Start with a main cylindrical body that has a diameter of 18mm and a height of 2mm. The bottom section of this body should be a slightly tapered cylinder, starting from a diameter of 12mm at the base and widening to 18mm at...
$fn= $preview ? 64 :128; foot_d=18; foot_h=2; mount_d=5.5; mount_h=1; difference() { union() { translate([0,0,0]) cylinder(h=foot_h-0.4,d1=foot_d/2+3,d2=foot_d); translate([0,0,foot_h-0.4]) cylinder(h=.4,d=foot_d); translate([0...
glb/cad_8fc6f3166811.glb
Create an Eye Loupe Magnifyer Lens Mount by constructing a circular ring with a total height of 4mm. Start with a base cylinder that has a bottom diameter of 18.6mm and tapers slightly outward to a diameter of 20.6mm over a height of 1mm. Above this base, add a main cylindrical section with a constant diameter of 20.6m...
$fn = 90; d=18.6; z=4; module main_body(){ difference(){ union(){ translate([d/2,d/2,0]) cylinder(h=1,d1=d,d2=d+2); translate([d/2,d/2,1]) cylinder(h=z-2,d=d+2); translate([d/2,d/2,3]) cylinder(h=1,d1=d+2,d2=d+1); } translate([d/2,d/2,...
glb/cad_e576a187ce53.glb
Create a Logic Analyzer Probe Case consisting of a rounded rectangular box and a matching lid. For the main body, create a rounded box with outer dimensions of 44.2mm width by 60.2mm length (based on a 41mm x 57mm PCB plus 1.6mm walls). The total height is 11.6mm. The interior should be hollowed out starting from a h...
cl=0.04; $fs=0.05; blength=57; bwidth=41; wall=1.6; bottom=1.7 ; top=1.7; usbwidth=7.5; usbheight=3.5; usbOff=0.5; usbplugwidth=10; usbplugheight=8; usbplugcut=1.6; usbXoff=15; pcbheight=1.6; pcbsolder=1.6; pcbpart=3; footsize=7; holeDist=3.5; headerXOff=3.5; headerYOff=19.0; headerWidth=6.0; headerLength=27.5; b...
glb/cad_1aea5c3cf17c.glb
Create a protective case for a logic analyzer PCB measuring 57mm by 41mm. The main body is a rounded rectangular box with a wall thickness of 1.6mm and a bottom thickness of 1.7mm. The overall external dimensions of the body are 44.2mm wide by 60.2mm long (PCB length plus walls). The interior should feature a recessed...
cl=0.04; $fs=0.05; blength=57; bwidth=41; wall=1.6; bottom=1.7; top=1.7; usbwidth=8; usbheight=3.5; usbOff=0.5; usbplugwidth=10; usbplugheight=8; usbplugcut=1.6; usbXoff=15.5; pcbpart=4; pcbheight=1.6; pcbsolder=1.6; footsize=7; holeDist=3.5; headerXOff=3.5; headerYOff=19.0; headerWidth=6.0; headerLength=27.5; bu...
glb/cad_bdad2707013b.glb