Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Utility Sink Faucet Plug consisting of a circular cover and a cylindrical plug body. First, create a circular cover with a diameter of 36mm (26mm hole diameter plus a 5mm overlap on all sides) and a thickness of 2mm. Apply a chamfer to the top edge of this cover. Attached to the underside of the cover, crea...
show_slice = "Off"; hole_shape = "Round"; hole_dimension1 = 26; hole_dimension2 = 50; hole_radius = 28; hole_depth = 4.5; plug_length = 6.3; plug_clearance = 1; plug_thickness = 1.5; features = "Snaps"; feature_length = 1.0; feature_height = 1.5; fin_number = 4; snap_width_factor = 0.5; cover_thickness = ...
glb/cad_22aaa291820a.glb
Create a Heat Set Insert Press clamp designed to hold a soldering iron. Start with a base rectangular block 34mm wide, 50mm long, and 4mm thick, with 2mm rounded corners. Add a perpendicular clamping arm that extends from the side. This arm should be 14mm wide and 14mm deep (10mm internal depth plus 4mm wall thicknes...
Wall_Thickness = 4; Height = 50; Width = 34; Corner_Radius = 2; Iron_Width = 14; Iron_Clamp_Depth = 10; Iron_Mount_Depth = 8; Iron_Corner_Radius = 4; Iron_Button_Clearance = 15; Screw_Diameter = 3; Screw_Head_Diameter = 6; Screw_Head_Thickness = 2; Screw_Corner_Offset = 5; Mount_Screw_Distance = 16; Insert_Diameter = 4...
glb/cad_c0cd239bb444.glb
Create a radius gauge tool with a thickness of 2mm. The main body is a flat plate formed by a combination of rectangular sections and a circular cutout. Start with a base shape that incorporates a corner radius of 2.5mm. To create the gauge profile, remove a larger concentric circular section from the outer corner usin...
rad = 2.5; th = 2; mwl = 6; it = ""; di = -0.4; dkh = 3; tkh = 4; module hook(hh){ difference(){ union(){ translate([-rad/2,rad/2,0]) cube([rad,rad,hh],center=true); translate([wi/2,wi/2,0]) cube([wi,wi*3,hh],center=true); translate([-wi/2,-wi/2,0]) cube([wi*3,wi,h...
glb/cad_610064d316df.glb
Create a universal weed trimmer attachment hanger clip consisting of a cylindrical cap and an attached hook. First, construct the cap as a cylinder with an outer diameter of 29.25mm and a height of 45.5mm. Hollow out the center of this cylinder with a hole 26.25mm in diameter. At the base of the cap, add a flange tha...
$fn=100; id = 26.25; hid = 44.5; module cap() { union() { difference() { cylinder(hid+1,(id+3)/2,(id+3)/2); translate([0,0,-0.1]) cylinder(hid+0.1,id/2,id/2); translate([0,id/2+1.5,5.5]) rotate([90,0,0]) cylinder(3,4,4); translate([0,-id/2+1,5.5]) rotate([90,...
glb/cad_f0d23dafa3dc.glb
Create a Singularity Chess Board, which is a distorted, non-rectangular game board. Start by creating a base plate with a thickness of 3.2mm. The overall footprint is approximately 235mm by 185mm, but the perimeter is defined by a complex, organic silhouette that curves inward and outward, creating a warped effect. On...
fudge = 0.1; line_fn = 4; min_line_width = 1.0; line_width_scale = 1.0; function min_line_mm(w) = max(min_line_width, w * line_width_scale) * 96/25.4; g8_0_center = [283.501800,-152.777489]; g8_0_points = [[226.801325,-209.477964],[340.202275,-209.477964],[340.202275,-96.077014],[226.801325,-96.077014],[226.801325,-20...
glb/cad_6eeb2ece645e.glb
Create a Singularity Chess Board by constructing a thin, flat base plate with a total thickness of 3.2mm. The base is a distorted, non-rectangular polygon that serves as the foundation for the board's layout. On the top surface of this base, add several thin decorative inlays and recessed shapes. Create a series of li...
fudge = 0.1; zsize = 0.20000000298023224; line_fn = 4; min_line_width = 1.0; line_width_scale = 1.0; function min_line_mm(w) = max(min_line_width, w * line_width_scale) * 96/25.4; w10_0_center = [78.039860,28.989802]; w10_0_points = [[8.119175,-85.457286],[8.119175,86.275360],[16.371907,90.946046],[24.698417,95.473915...
glb/cad_9bc7bb5997f6.glb
Create a Singularity Chess Board consisting of a thin base plate with inlaid geometric patterns. The main board is a flat plate with a thickness of 3.2mm. On the surface of this plate, create a series of inlaid shapes with a depth of 0.2mm. These shapes include a distorted grid of squares and circles that form the pl...
fudge = 0.1; zsize = 0.20000000298023224; line_fn = 4; min_line_width = 1.0; line_width_scale = 1.0; function min_line_mm(w) = max(min_line_width, w * line_width_scale) * 96/25.4; r16_0_center = [231.123345,62.154123]; r16_0_points = [[161.202355,-7.766867],[301.044335,-7.766867],[301.044335,132.075113],[161.202355,13...
glb/cad_b7c59ed6c1a8.glb
Create a platform bed foot cap with an oval-like profile and a hollow center. First, construct the outer shell as a solid block 28mm high, consisting of two half-cylinders with a radius of 10mm centered 24mm apart along the x-axis, connected by a rectangular middle section 14mm wide and 34mm long. Next, create a matchi...
$fn=100; w=20; wi=15.5; l=34; li=30.5; h=28; module block() { union() { cylinder(h,w/2,w/2); translate([l-w,0,0]) cylinder(h,w/2,w/2); translate([0,-w/2,0]) cube([l-w,w,h]); }; }; module block_inside() { translate([0,0,3]) union() { cylinder(h,wi/2,wi/2); translate([...
glb/cad_d891a0df0632.glb
Create a Shock Cord Scope Cover by constructing a hollowed-out cylinder with an outer diameter of 47mm and a height of 10mm. Remove a smaller concentric cylinder from the center with a diameter of 45mm and a height of 10mm, positioned 2mm from the base to create a ring with a 2mm thick floor. On opposite sides of the r...
$fn = 1000; diameter = 45; height = 10; tab_width = 7; hole = 5; difference() { union() { cylinder(h = height, d = diameter + 2); translate([diameter / 2 + (tab_width / 2), 0, height / 2]) { cube([tab_width, tab_width, height], center = true); } translate([-diameter / 2...
glb/cad_69e176e17065.glb
Create a Simple SMD/SMT tray by starting with a solid rectangular base. The base should have a total height of 3.2mm, a total width of 61.6mm, and a total length of 61.6mm. Within this base, create a 5 by 5 grid of rectangular pockets. Each pocket must be 10.4mm wide, 10.4mm long, and 1.6mm deep. Position these pockets...
sciana = 1.6; wymiarx = 10; wymiary = 10; wymiarz = 1.6; tol = 0.2; tol2 = tol * 2; iloscx = 5; iloscy = 5; calyx = (wymiarx + tol2 + sciana) * iloscx + sciana; calyy = (wymiary + tol2 + sciana) * iloscy + sciana; calyz = wymiarz + sciana; module tacka() { difference() { cube([calyx, calyy, calyz]); ...
glb/cad_89b039e569e2.glb
Create a Simple SMD/SMT tray by starting with a solid rectangular base measuring 81.6mm in width, 81.6mm in length, and 3.2mm in height. Within this base, carve out a 5 by 5 grid of identical rectangular pockets. Each pocket must be 10.4mm wide, 10.4mm long, and 1.6mm deep. Position these pockets so that they are separ...
sciana = 1.6; wymiarx = 10; wymiary = 10; wymiarz = 1.6; tol = 0.2; tol2 = tol * 2; iloscx = 5; iloscy = 5; calyx = (wymiarx + tol2 + sciana) * iloscx + sciana; calyy = (wymiary + tol2 + sciana) * iloscy + sciana; calyz = wymiarz + sciana; module tacka() { difference() { cube([calyx, calyy, calyz]); ...
glb/cad_9339da29c2f5.glb
Create a radius gauge tool with a thickness of 2mm (0.079 inches). The main body is a flat, L-shaped plate. One end of the plate features a precise convex rounded corner with a radius of 4.7625mm (3/16 inches). The overall width of the gauge leg is the larger of either the radius (4.7625mm) or 6mm (0.236 inches). To ...
numerator = 3; denominator = 16; thi = 0.079; mwli = 0.236; ris = false; isy = true; it = ""; dii = -0.016; dkhi = 0.118; tkhi = 0.157; module hook(hh){ difference(){ union(){ translate([-rad/2,rad/2,0]) cube([rad,rad,hh],center=true); translate([wi/2,wi/2,0]) cube([wi,wi*3,h...
glb/cad_376f7ed61436.glb
Create a DIN rail mount clip with a total width of 7mm. The main body is a rectangular base approximately 45mm long. On the bottom side, design a profile that fits onto a standard DIN rail, featuring a curved front edge and a flat rear section. The top surface of the clip should be flat. Incorporate two mounting hol...
MountpointDistance = 45.0; Identation = 2; minwidth = 7; screwSmall = 2.7; fontsize = 5; z2shift = 0; z1shift = 0; y1shift = 0; $fn=50; long = 45; expand = 1; width = minwidth+z2shift+z1shift; fanrot = 0; din(); module C(INNER){ di...
glb/cad_f94fad02f652.glb
Create a shower adapter for a honeycomb storage wall. Start by constructing a main body that is 56.26mm tall. The footprint of this body consists of a 30mm by 5mm rectangle joined to a semi-circular ring. This ring is defined by an outer diameter of 49mm and an inner diameter of 39mm, but it is truncated by two diagona...
$fn=64;union() { rotate(a = [90, 0, 180]) { rotate(a = [0, 0, 90]) { translate(v = [7.6787585802220235, 0, 0]) { union() { hull() { union() { cylinder($fn = 6, d = 15.357517160444047, h = 5); translate(v = [40.90248283955595, 0]) { cylinder($fn = 6, d = 15.357517160444047, h =...
glb/cad_0b64b7a84444.glb
Create a Card Case Customizer consisting of a main box and a separate lid. For the main box, create a hollow rectangular container with an outer width of 60mm (based on the card type) and a depth determined by the card count (e.g., 10 cards). The walls should be 2mm thick. The interior cavity should be a rectangular ...
card_count = 10; card_type = 56; build_plate_selector = 0; build_plate_manual_x = 100; build_plate_manual_y = 100; rotate([0,0,90]) build_plate(build_plate_selector,build_plate_manual_x,build_plate_manual_y); input ="default_TNH"; image_size = 20; Move_Image_Left_Right = 30; Move_Image_Up_Down = 40; image_rot...
glb/cad_381e52f4b90b.glb
Create a Mini PCIe extender adapter. Start with a rectangular base plate measuring 30mm wide, 24.15mm long, and 1mm thick. Centered on the top surface of this base, add a raised rectangular section that is 30mm wide, 2mm thick, and 6.8mm long. Within this raised section, integrate a central channel that is 3.4mm wide...
$fn = 100; module mini_pcie_extender() { difference() { union() { translate([0, -50.95+(50.95-26.8-0.2)/2, 0]) cube(size=[30, 50.95-26.8-0.2, 1], center=true); translate([0, -26.8-1+(6.8)/2, -1.2]) cube(size=[30, 6.8, 1], center=true); difference() { translate([0, -26.8-1+(2)/2, +1.2]) ...
glb/cad_b65abd587c18.glb
Create two identical joinable gaming table corner pieces. Each piece is a solid block with a rounded exterior profile. On the interior of each block, carve out a rectangular channel that is 12mm wide, 6.1mm deep, and 12mm high, centered to accommodate a board. Extend this cutout to create a larger void measuring 22mm b...
include <gaminglib.scad>; difference() { straightRoundedBits(); translate([-10,-24,-1]) cube([12,6.1,12]); translate([-10,-18,-6]) cube([22,6,12]); translate([-10,-18,-1]) cube([22,36,18]); translate([-20,-30,12.01]) rotate([180,0,0]) dovetail("male", width=15,...
glb/cad_f6fa7eee8ffb.glb
Create an adapter for a food mill consisting of two main components: a hollow shaft and an outer cover. First, create the inner shaft. This is a decagonal cylinder with an outer diameter of 20.75mm and a height of 46mm. Remove a central cylindrical core with a diameter of 7.5mm that extends 36mm upward from the base....
d_axle = 7.5; height_before_bend = 26; d_nut = 14; d_adapter = 22; wall = 1.6; module cover() { difference(){ union() { cylinder(d=d_adapter + 0.5 + wall , center=false, h=height_before_bend+25, $fn=10); translate([-d_axle/2-wall-.5, 0, hei...
glb/cad_2d256ccbca51.glb
Create an ice cube retention lid for a carafe by starting with two stacked cylinders. The base is a cylinder with a diameter of 68mm and a height of 1.5mm. Centered on top of this base, add a second cylinder with a diameter of 56mm and a height of 3mm. From this combined solid, remove several geometric sections to cre...
dInnen=56; dAussen=68; h1=3; h2=1.5; $fn=90; difference() { union() { cylinder(d=dInnen, h=h1); translate([0,0,-h2]) cylinder(d=dAussen, h=h2); } difference() { translate ([dInnen-18, 0, -10]) cylinder(d=dInnen/2, h=20); translate([0,0,-h2]) cylind...
glb/cad_24c0188c22f3.glb
Create a securing washer for a toy forklift by starting with a main cylinder that has a diameter of 19.7mm and a height of 7.7mm. From the center of this cylinder, remove a complex internal void to create a tapered hole. This void begins at the bottom with a diameter of 11.4mm and tapers up to 9mm at the top. To crea...
$fn=72; difference() { cylinder(d=19.7, h=7.7); translate([0,0,5.5]) cylinder(d=13, h=.5); translate([0,0,6]) cylinder(d1=13, d2=10.5, h=1.7); difference() { translate([0,0,1.5]) cylinder(d=13, h=4); cylinder(d1=13, d2=11, h=7.7); } translate([-13/2,-.5,1]) ...
glb/cad_cf67ee50d8d4.glb
Create a Bubble Coaster by arranging a 5x5 grid of spheres, each with a radius of 10mm. Position the spheres so they overlap slightly; the distance between the centers of adjacent spheres should be 18mm in both the X and Y directions. Once the grid of 25 overlapping spheres is formed, create a flat base by removing the...
sphere_rad = 10; intersect_percent = 10; x_count = 5; y_count = 5; cutoff_amount = 2; sphere_circ = sphere_rad*2; shift = sphere_circ-(sphere_circ*(intersect_percent/100)); x_for = sphere_circ*(x_count-1); y_for = sphere_circ*(y_count-1); difference() { for(move_y=[0:1:y_count-1]) for(move_x=[0:1:x_count-1]) ...
glb/cad_163ace1a8b52.glb
Create a tabletop solder fume extractor consisting of a front cone and a back housing. For the front cone, create a hollowed-out transition piece that flares from a 60mm square base to a larger rounded rectangular opening. The outer shell should be a hull between a rounded square and a larger rounded square, with a w...
module front(large_l, large_r, small_l, small_r) { union() { difference() { hull() { minkowski() { cylinder(r = large_r, h = 1, center = true, $fn = 100); cube([large_l-large_r*2, large_l-large_r*2, 1...
glb/cad_0fb22ba6bf21.glb
Create an MK2 X-carriage belt mount. Start with a base plate that is 33mm wide, 68.5mm deep, and 7mm thick. On this base, add a rectangular upper motor screw block measuring 28.5mm by 16.2mm with a height of 12mm. Integrate two horizontal bearing holders: one small holder at the front and one long holder positioned 45...
use <bearing.scad> use <extruder-body.scad> module belt_cut() { rotate([0,0,180]) { translate([-20,0,0]) cube([39,0.75,15]); translate([-20,0,5]) rotate([-7,0,0]) cube([39,0.75,10]); translate([-20,0,5]) rotate([10,0,0]) cube([39,0.75,10]); for (_step =[-20:2:18]) { transla...
glb/cad_8832105b9f17.glb
Create a Handy cup holder by starting with a main cylinder that has a diameter of 80mm and a height of 60mm. From this base cylinder, remove a rectangular slot from the top center to hold a phone; this slot must be 66mm wide, 8mm deep, and 30mm high, positioned 45mm up from the base. Additionally, remove a smaller cent...
$fn= $preview ? 32 : 128; cup_diameter = 80; cup_hight = 60; handy_hight=30; handy_wide=66; handy_deep=8; difference () { cylinder (h =cup_hight , d=cup_diameter, center = false); translate([0,0,45])#cube([handy_wide,handy_deep,handy_hight], center = true); cylinder (h =30 , d=20, center = false); translate([30,...
glb/cad_82d5f5d3f03d.glb
Create a set of 26 individual 3D letters from A to Z using a bold, cartoon-style font. Each letter should be 30mm in size and consist of two layered parts: a base outline and a central infill. Create the base outline by extruding the letter shape with a 4mm offset border to a total height of 10mm. Then, place a second ...
font = "Luckiest Guy:style=Regular"; letter_size = 30; height = 10; module mytext(letter) { text(letter, size = letter_size, font = font, halign = "center", valign = "center", $fn = 64); } module text_outline(letter) { linear_extrude(height) { difference() { offset(r = 4) { ...
glb/cad_a21030e7db92.glb
Create a sorter box cabinet divider system consisting of three main components. First, create a Type A divider as a thin plate 51.6mm wide and 30mm high with a thickness of 1.6mm. To ensure it fits the drawer, remove a semi-circular section from the bottom edge with a radius of 500mm. Cut out a central rectangular se...
typeA_w = 52-0.4; typeA_h = 30; typeA_insert_w = 46; typeA_insert_r = 5; typeA_insert_extra_h = 5; typeA_insert_wall_thickness = 1.2; typeA_wedginess = 1; typeA_bottomCurve_r = 500; typeB_w = 136; typeB_h = 55; typeB_wedginess = 3; typeB_wedginessOffset = 1.5; drawerBottom_r = 3; reinforcement_w = 3; module corner(...
glb/cad_11c433109e6f.glb
Create a corner piece for 16 mm rods by constructing a three-way junction of cylinders. Start with three cylinders, each 32 mm long with an outer radius of 11 mm (tapering slightly from 11.5 mm to 11 mm), oriented along the X, Y, and Z axes and meeting at a central point. To ensure the rods fit, remove a cylindrical co...
$fn=100; p=32; t=12; dia=16; difference() { translate([0,0,12-5+1]) rotate(90-atan(1/sqrt(2)),[1,-1,0]) difference() { union() { rotate(90-atan(1/sqrt(2)),[-1,1,0]) translate([0,0,-12]) cylinder(h=12, r=dia/2+2.5); rotate([0,0,0]) cylinder(h=p, r1=dia/2+3, r2=dia/2+2.5); rotate([-90,0,0]...
glb/cad_cc34cf3152da.glb
Create a Shore Power Cable Clip consisting of two interlocking C-shaped rings aligned along a central axis. First, create a larger outer ring with an outer diameter of 33mm and an inner diameter of 25mm, with a total height of 10mm. Cut a square notch out of one side of this ring to create a C-shaped opening. Secon...
$fn=360; rail=25; cord=20; line=8.25; var=8; z=10; with_line(); module without_line(){ cord_clip(); rail_clip(); } module with_line(){ difference(){ without_line(); translate([0,line/4+rail+var/2.75,0]){ cylinder(z+1, d=line+var-1, center=true); } } diff...
glb/cad_e82a0be2aa18.glb
Create a 3D model of a text stamp. Start by creating a rectangular base plate with a width of 95mm, a depth of 12mm, and a height of 3mm. Centered on the top surface of this base, add a line of text that reads "EMAIL@DOMAIN.COM" in a bold Arial font with a size of 5mm. The text must be mirrored along the X-axis so that...
EmailText = "EMAIL@DOMAIN.COM"; TextSpacing = 1.25; CubeWidth = 95; TextHeight = 2.5; CubeDepth = 12; module rectangle_with_mirrored_text(email, width, depth, spacing) { union() { cube([width, depth, 3]); translate([width / 2, 3.5, 3]) { mirror([1, 0, 0]) { linear_e...
glb/cad_623e658c0a2b.glb
Create a 3D printed stamp consisting of a rectangular base with mirrored text. Start by creating a rectangular base plate that is 75mm wide, 12mm deep, and 3mm thick. Centered on the top surface of this plate, add the text "EMAIL@DOMAIN.COM" using a narrow Arial font with a character size of 4mm and a character spacing...
EmailText = "EMAIL@DOMAIN.COM"; TextSpacing = 1.4; CubeWidth = 75; TextHeight = 2.5; CubeDepth = 12; module rectangle_with_mirrored_text(email, width, depth, spacing) { union() { cube([width, depth, 3]); translate([width / 2, 3.5, 3]) { mirror([1, 0, 0]) { linear_ex...
glb/cad_3833d7b329f9.glb
Create a Mini PIR motion sensor housing consisting of a main body and three different cap options. The main body is a hexagonal prism with a total height of 26.7mm and a diameter of 20.8mm. The bottom section features internal threads for a PG7 cable gland (12mm diameter, 1.5mm pitch, 6.75mm length). Above this, crea...
use <aidthread.scad> module PIR_housing(nozzle_d=0.4) { th = 2; lens_d = 12.5; lip_d = 14.2; lip_th = 0.4; neck_d = 10.4; neck_l = 3.8; neck_flat = neck_d - 3; cable_d = 5; cap_thread_d = 18; cap_thread_pitch = 1.5; cap_thread_l = 4*cap_thread_pitch; pg7_thread_d = 12; ...
glb/cad_292ba90a87cf.glb
Create a parametric knife organizer with a total width of 185mm, a depth of 30mm, and a height of 20mm. The main body is a rectangular frame with a wall thickness of 2mm. Inside this frame, create a series of repeating slots designed to hold knives. Each slot unit consists of a repeating pattern every 12mm along the wi...
KnSeperation = 10; KnThickness = 2; Height = 20; Depth = 30; WallThickness = 2; DrawerWidth = 185; ShapeWidth = KnSeperation + KnThickness; Iterations = DrawerWidth / ShapeWidth; CubeHeight = Height - (KnSeperation /2); difference(){ translate(v=[-(Depth/2), -(ShapeWidth + 1) /2 , 0]) cube([Depth, Drawer...
glb/cad_e76d669e0c61.glb
Create a parametric keychain tag by starting with a base oval shape that is 1mm thick. The base is formed by scaling a circle with a 25mm diameter; scale it by a factor of 1.5 along the length and 0.5 along the width to create an elongated ellipse. Position a circular hole with a 5mm diameter at one end of the ellipse,...
text = "Your Text"; height = 1; textExtrude = .5; textSize = 3; baseDiameter = 25; lengthToDiameterRatio = 1.5; widthToDiameterRatio = .5; holeDiameter = 5; $fn = 100; holeDistance = (baseDiameter/2 *lengthToDiameterRatio) - 4.5; difference() { linear_extrude(height) difference() { scale([lengthToDiameterRatio, wi...
glb/cad_00585f97581a.glb
Create a RPi Pico Arcade button housing. Start by creating a central rectangular block with dimensions 12.02mm in width, 11.98mm in depth, and 3mm in height. Centered on the top face of this block, add a small cylinder with a diameter of 4mm and a height of 7mm. To create the support pins, place four vertical cylinder...
friction_fit = 0.02; body_z = 3; body_x = 12.00 + friction_fit; body_y = 11.96 + friction_fit; pin1_x = -6.2484; pin1_y = 2.4892; pin2_x = 6.2484; pin2_y = 2.4892; pin3_x = -6.2484; pin3_y = -2.4892; pin4_x = 6.2484; pin4_y = -2.4892; pin_hole = 1.1938; pin_height_clearance = body_z*4; $fn = 25; big_button(); ...
glb/cad_7f03d3e48584.glb
Create a Parametric Utensil Drawer Organizer consisting of a flat base plate and two vertical end plates. First, create a rectangular base plate with a width of 43mm and a length of 158mm (calculated as the 150mm overlap plus two 4mm brace depths), with a thickness of 1mm. Next, add two vertical end plates, each 1m...
platew = 43; overlapl= 150; treatment = "Solid"; TopOrientation = "Left"; TEndPlateW = 22; TEndPlateH = 21; BEndPlateW = 22; BEndPlateH = 21; PostEnabled = false; PostD = 7; PostH = 20; PostX = 20; PostY = 50; platet=1; braces=true; bracewidth=2; bracedepth=4; bracehfactor=0.8; tendplatet = 1 ; bendp...
glb/cad_2e05a352e546.glb
Create a BXA pegboard holder by constructing a base assembly consisting of a back plane, a bottom support, and a dovetail mounting feature. Start with a back plane that is a rectangular block measuring 60mm wide, 5mm thick, and 24mm high, positioned centrally. Attach a bottom rectangular base to the back plane that is ...
$fn=100; difference() { union() { translate([0,0,12]) linear_extrude(height = 24, center = true) polygon(points=[[0,0],[43,0],[38,10],[5,10]]); translate([-8.5,10,0]) cube([60,5,24]); translate([-8.5,0,-5]) cube([60,15,5]); } translate([21.5,0,7]) { mirror_copy([1...
glb/cad_8d0c1ecd0e31.glb
Create a Dual Extruder Cyclops Adapter designed to guide filament. The main body is a Y-shaped manifold formed by two curved outer tubes with a radius of 4.5mm that merge into a single straight section 10mm long. These outer tubes follow an arc based on an imaginary circle with a radius of 110mm. Inside the body, crea...
renderToleranceTest = false; renderInternals = false; filamentGuideRadius = 1.3; ptfeTubeOuterRadius = 2.5; fittingTapHoleRadius = 5.5/2; adapterOuterRadius = 4.5; imaginaryCircleRadius = 110; angle = acos(1 - 5/imaginaryCircleRadius); _fn = $preview ? 10 : 40; _straightBottomBodyLeng...
glb/cad_6f4569bd8f18.glb
Create a Cable Entry Cabinet consisting of two stacked cylindrical sections. First, create a main cylindrical body with a diameter of 37.7mm and a height of 9mm. Directly on top of this, center a thinner cylindrical cap with a diameter of 40.5mm and a height of 1mm. To create the cable passage, remove a vertical cylind...
$fn= 100; dia_corpus = 37.7; height_corpus = 9; dia_head = 40.5; height_head = 1; dia_hole = 8; height_hole = 11; y_hole = -17.5; difference () { union() { translate([0,0,0.9]) cylinder(h = height_corpus, d = dia_corpus); cylinder(h = height_head, d = dia_head); } translat...
glb/cad_a504ff1b08e3.glb
Create a Dillon Case slider for 9mm casings. Start with a base plate measuring 45.5mm in length, 16.5mm in width, and 1.5mm in height. The four corners of this base are rounded with a radius of 3mm, and the overall height at these corners is 4.5mm. On top of this base, add two side ramps. Each ramp is a rectangular bl...
$fn = $preview ? 60:160; sb = 3.735; sk = 10.9; wr = 1.5; gp = 1; rotate([0,-90,0]) difference(){ union(){ translate([-45.5/2,-10.05/2,-1.5/2-4.5]) hull() { translate([3,3,0]) cylinder(r=3,h=4.5); translate([37.65 - 3 , 3 , 0]) cylinder(r=3,h=4.5); translate([3 , 10.05 - 3 , 0...
glb/cad_5012926bac13.glb
Create a foot pedal switch housing with a base footprint of 100mm in length and 70mm in width. The main body is a shallow shell with a wall thickness of 4mm. The top surface is not flat but follows a hull-like organic curve defined by three circular pillars of radius 5mm located at the ends and the center-side of the l...
w = 70; l = 100; usespikes = false; spikes = 2; showurl = true; url = "HXR.DK"; switchtype = "OMRON D3V-11-1C4"; h = l/3; wall = l/25; FootSwitch(); module FootSwitch(){ difference(){ union(){ obvod(l,w,wall); if(usespikes){ SpikesField(l,w);...
glb/cad_9978959662fc.glb
Create a Prusa MK2/MK3 modern LCD cover. Start with a main body consisting of a base plate 155mm wide, 59.8mm deep, and 2mm thick. Add a sloped top section by placing a 155mm by 3mm by 20.08mm block rotated 35 degrees along the X-axis, and include side supports 7mm wide and 15mm high, also rotated 35 degrees. Add a sec...
custom_text = "MK2.5S"; module main_body() { difference() { union() { translate( [ -77 , -4.5 , 0 ] ) cube( [ 155 , 59.8 , 2 ] ); translate( [ -77 , -4.5 , 0 ] ) rotate([35,0,0]) cube( [ 155 , 3 , 20.08 ] ); translate( [ -77 , -3.5 , -1 ] ) rotate([35,0,0]) ...
glb/cad_cee3391b82a6.glb
Create a ventilation grill consisting of a rectangular frame and an internal grid. First, construct the main body as a rounded rectangular tube with an outer length of 120mm and width of 60mm (based on a 100mm by 40mm cutout plus 10mm brim on all sides). The tube walls should be 2mm thick, with a total height of 10mm...
cutout_length=100; cutout_width=40; height=10; tube_wall=2; tube_rounding=8; brim_width=10; brim_radius=5; brim_height=1; edge_width=1; edge_height=1; grid_x=6; grid_y=6; grill_height=5; grill_thickness_x=0.8; grill_thickness_y=0.8; grill_angle_x=0; grill_angle_y=0; grill_x_shift=0; grill_y_shift=0; ...
glb/cad_a9643324029b.glb
Create a Prusa PSU lack alternate mount consisting of three main components: two identical screw cones and one mounting base. For each screw cone, create a truncated cone with a bottom diameter of 14mm and a top diameter of 9mm, and a height of 7mm. Subtract a central vertical hole with a diameter of 4.4mm. At the top...
$fn=32; fudge = 0.4 ; draw_for_printing = true; ps_screw_d = 4 + fudge; ps_screw_head_d = 7 + fudge; ps_screw_head_h = 4 + 1 ; ps_screw_hole_depth=5 ; ps_screw_thread_length=10 ; lack_screw_d = 3.5 + fudge; lack_screw_head_d = 7 + fudge; lack_screw_head_h= (lack_screw_head_d-lack_screw_d) *.5 ; cone_larger=14; co...
glb/cad_ece96a9de301.glb
Create a power box extension cord housing with overall dimensions of 120mm length, 75mm width, and 44.5mm depth. The main body is a rectangular prism with rounded corners of 4.5mm radius. Hollow out the interior to create a wall thickness of 8mm. Inside this cavity, create a rectangular cutout for an outlet measuring...
$fn=20; module roundedcube(size = [1, 1, 1], center = false, radius = 0.5, apply_to = "all") { size = (size[0] == undef) ? [size, size, size] : size; translate_min = radius; translate_xmax = size[0] - radius; translate_ymax = size[1] - radius; translate_zmax = size[2] - radius; diameter = radius * 2; mod...
glb/cad_5348372c244b.glb
Create a power box extension cord housing. Start with a main rectangular body measuring 120mm in length, 75mm in width, and 47mm in depth, with a corner radius of 4.5mm on the bottom edges. Hollow out the interior to create a wall thickness of 8mm. Within this cavity, create a central rectangular cutout for an outlet...
$fn=20; module roundedcube(size = [1, 1, 1], center = false, radius = 0.5, apply_to = "all") { size = (size[0] == undef) ? [size, size, size] : size; translate_min = radius; translate_xmax = size[0] - radius; translate_ymax = size[1] - radius; translate_zmax = size[2] - radius; diameter = radius * 2; mod...
glb/cad_f6479028faa8.glb
Create a power box extension cord housing. Start with a main rectangular body that is 120mm long, 75mm wide, and 6mm thick. The body should have rounded corners with a radius of 2.5mm. In the center of the body, create a rectangular cutout measuring 70.4mm by 45mm and 6mm deep to accommodate the internal components. ...
$fn=20; module roundedcube(size = [1, 1, 1], center = false, radius = 0.5, apply_to = "all") { size = (size[0] == undef) ? [size, size, size] : size; translate_min = radius; translate_xmax = size[0] - radius; translate_ymax = size[1] - radius; translate_zmax = size[2] - radius; diameter = radius * 2; mod...
glb/cad_ab22eb3a04c4.glb
Create a cylindrical spacer for a wheel axle. Construct a solid cylinder with an outer diameter of 20mm and a height of 9mm. Centered within this cylinder, remove a smaller coaxial cylindrical core with a diameter of 12.4mm and a height of 9mm, resulting in a hollow tube with a wall thickness of 3.8mm. Ensure the circu...
ResCircle = 1000; Spacerlength = 9; SpacerDiameter = 20; AxleDiameter=12.4; difference() { linear_extrude(height= Spacerlength) circle(d=SpacerDiameter, $fn=ResCircle); linear_extrude(height= Spacerlength) circle(d=AxleDiameter, $fn=ResCircle); }
glb/cad_ad1c34e8f221.glb
Create a plastic face for a fretting hammer. Start by creating a solid cylinder with a diameter of 22.7mm and a height of 15.75mm. Within this cylinder, remove a coaxial threaded hole to accommodate a screw. This threaded section should have an outer diameter of 18.78mm, a pitch of 1.58mm (corresponding to 21.29 thread...
include <BOSL2/std.scad>; include <BOSL2/threading.scad>; tpi = 21.29; tpmm = 1.58; core_dia = 15.95; thread_dia = 18.78; screw_length = 8.5; face_length = 15.75; face_dia = 22.7; $fn=64; finger = false; module hammer_face() { translate([0, 0, -screw_length / 2 - face_length / 2]) cylinder(h=face_length, d=fa...
glb/cad_6d9ff8031e17.glb
Create a Parametric Vial Storage Box consisting of a main box and a sliding lid. For the box, create a rectangular solid with a wall thickness of 1.6mm. The outer dimensions are determined by a grid of 2 rows and 5 columns of vials, where each vial space is a cylinder with a 17mm diameter and 20mm depth. Position the...
vial_diameter=17; vial_height=40; vial_holder_height=vial_height/2; vial_holder_outer_padding = 0; vial_holder_inner_padding = 0; vial_rows=2; vial_columns=5; wall_width=1.6; tolerance=0.1; lid_extra=0.4; show_lid = true; show_box = true; show_combined=false; box_width=(vial_diameter*vial_rows)+(wall_width*2)+...
glb/cad_e47b5d10f67d.glb
Create a series of 3D text characters using the Clarendon font. Each character should be extruded to a height of 5mm and have a font size of 200mm. Arrange the characters in a single horizontal row, spacing them apart so that each subsequent character is shifted along the x-axis by 266mm (1.33 times the character size)...
font_name = "Clarendon"; character_size = 200; $fn = 100; characters = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x"...
glb/cad_6f44e6639e78.glb
Create a shelf for a CSM counter and yarn spool accessories. Start by constructing a main cylinder with a radius of 23.5mm and a total height of 100mm, centered at coordinates (35, 50, 0). Add a wider, shallow cylindrical flange to the top of this main body with a radius of 31mm and a height of 3mm. To create the holl...
include <BOSL2/std.scad> include <BOSL2/rounding.scad> difference(){ union(){ translate([35,50, 50]) cylinder(h=3, r1=31, r2=31, center=true, $fn=200); translate([35,50, 0]) cylinder(h=100, r1=23.5, r2=23.5, center=true, $fn=200); } translate([35,50, 6]) cylinder(h=104, r1=19.5, r2=19...
glb/cad_ceffd30d876f.glb
Create a shelf for a CSM counter and yarn accessories. Start with a base plate that is a rounded rectangular prism measuring 150.1mm by 190.1mm with a height of 10.1mm. The corners should have a rounding radius of 0.3mm. On this base, add two vertical cylindrical spool holders. Each holder is a hollow cylinder with an...
include <BOSL2/std.scad> include <BOSL2/rounding.scad> difference(){ union(){ rounded_prism(square([150.1,190.1], center = true), height=10.1, joint_top=2, joint_bot=5, joint_sides=15, k_sides=0.3, splinesteps=32); translate([-55,-60,40]) cylinder(h=90, r1=10, r2=10, center=true, $fn=50)...
glb/cad_8b5de4ad45c2.glb
Create a Parametric Cable Organiser with a total height of 13.1mm. The main body consists of two mirrored, C-shaped cable channels facing each other. Each channel is formed by a wall thickness of 1.1mm. The internal depth of each channel is 4.5mm, designed to hold a cable with a diameter of 3.0mm. The outer depth of th...
cable_diameter = 3.0; cable_max_loops = 4; clip_height = 13.1; max_width = 30; using_flex = false; cable_grip = false; enable_hsw=false; hsw_diameter = 13.1; hsw_length = 11; base_thickness = using_flex ? 2.0: 1.0; wall_thickness = base_thickness + round(0.5 + (cable_diameter * cable_max_loops) / ...
glb/cad_6dc67bb3f756.glb
Create a Kitchen Packet Organizer by starting with a solid rectangular block measuring 69mm in width, 135mm in depth, and 62mm in height. Carve out five identical rectangular slots to create compartments. Each slot should measure 65mm in width, 20mm in depth, and 60mm in height. Position the first slot 2mm from the fro...
numBlocks = 5; union(){ difference() { cube([69, (numBlocks * 22 + 25), 62], center=false); for (i = [0 : abs(1) : numBlocks]) { translate([2, (i * 22 + 2), 2]){ cube([65, 20, 60], center=false); } } } translate([35, -2, 30]){ rotate([90, 0, 0]){ linear_extrude( height=2, twist=0, center=false) text("Bak...
glb/cad_4e2aa7b62f85.glb
Create a funnel consisting of a conical section and a cylindrical tube. Start by constructing a hollow cone with a height of 30mm, an outer top radius of 30mm, and an outer bottom radius of 5mm. The wall thickness of this cone should be 1mm. Attached to the bottom of this cone, add a hollow cylindrical tube with an out...
Upper__outer__radius = 30; tube_outer_radius = 5; Material_thickness = 1; tube_length = 30; funnel_height = 30; lower_tube_phase_angle = 30; hang_loop_radius = 3; funnel_sides = 8; union(){ { $fn=funnel_sides; difference() { union(){ difference() { cylinder(r1=tube_outer_radius, r2=Upp...
glb/cad_dade15861ad9.glb
Create a parametric filament clip with a total height of 5mm and a uniform material thickness of 1mm. Start by creating a C-shaped ring with an inner radius of 1.75mm and an outer radius of 2.75mm, using a 40-facet resolution for the curves. Cut a wide rectangular slot through the center of this ring to leave it open o...
filament_radius = 1.75; grabber_length = 2; spool_side_width = 5; Height = 5; material_thickness = 1; linear_extrude( height=Height, twist=0, scale=[1, 1], center=false){ union(){ translate([0, ((filament_radius - material_thickness * 1) / -1), 0]){ difference() { difference() { { ...
glb/cad_4d14241ad5ae.glb
Create a screwdriver bit holder designed for a honeycomb storage wall. Start by creating a main rectangular block measuring 40mm wide, 40mm deep, and 210mm tall, centered on the origin. From this main body, remove six rectangular voids to create six bit slots. These slots are arranged in two vertical columns of three. ...
use<hex plug library.scad>; module bit_box(){ rotate([40, 0, 0]) cube([9.8, 25.5, 80], true); } module left(){ translate([0, 0, -62]) for(v = [0:2]) translate([-9, -18, v * 60]) bit_box(); } module right(){ translate([0, 0, -42]) for(v = [0:2]) translate([9...
glb/cad_757081b65479.glb
Create a Montessori learning board consisting of a thin rectangular base with a raised grid of cells. The base is a rounded rectangle with a thickness of 1mm and corner radii of 5mm. On top of this base, construct a grid of 20 columns and 10 rows. Each cell in the grid is a square with a window size of 10mm, separated...
use <MCAD/boxes.scad> BASE_SUPPORT=true; GRID_BORDER=true; TOP_HEADER=true; LEFT_HEADER=false; TOP_LEFT_ZERO=true; TOP_HEADER_BORDER=true; LEFT_HEADER_BORDER=true; TENTH_LINE=true; supportThickness=1; supportExternalWidth=4; supportRadius=5; $fn=30; xCount=20; yCount=10; gridWindowSize=10; gridLineWidth=0.5; gridTh...
glb/cad_9003da4ff091.glb
Create a small zip tie anchor starting with a central cube measuring 20x20x10mm, centered on the origin. Carve out the top of this cube by removing four large 30x30x20mm blocks; each block should be centered at a height of 10mm above the origin and rotated 20 degrees—two rotated around the X-axis (one positive, one neg...
module zip_tie_anchor() { difference() { union() { cube([20, 20, 10], center = true); } union() { rotate(20, [1, 0, 0]) translate([0, 0, 20/2]) cube([30, 30, 20], center = true); rotate(-20, [1, 0, 0]) translate([0, 0, 20/2]) cube([30, 30, 20], center = true); rotate(20, [0, 1, 0...
glb/cad_f89b38b75847.glb
Create a T-slot nut for a 30mm aluminum extrusion. Start by creating a base cylinder with a diameter of 15mm and a height of 5mm. Intersect this cylinder with a rectangular block measuring 8mm wide, 4mm deep, and 5mm high, centered on the cylinder, and repeat this block rotated 180 degrees to create a symmetrical profi...
Profile = 30; Slot_Width = 8; Base_Height = 5; Flange_Height = 1.5; Hole_Size = 2.8; Nut_Width = 4.2; Nut_Height = 2.5; $fn = 100; tSlotNut(Profile, Slot_Width, Base_Height, Flange_Height, Hole_Size, Nut_Width, Nut_Height); module cylinder_outer(r, h) { cylinder(r = r/cos(180/$fn), h); } module rotate_copy(angl...
glb/cad_76ea029db4ee.glb
Create a silencer for a .22 airgun consisting of a stacked series of cylindrical chambers. The overall structure is a hollow tube with an outer radius of 17mm and a wall thickness of 3.8mm. Start by creating a base adaptor section 31mm long with a central bore of 5.55mm (half of 11.1mm) to accommodate the barrel. Abo...
clearance=0.2; segment_height=18; shrouded_length=70; vent_length=30; silencer_rad=17; outerfn=silencer_rad*5; wall=3.8; calibre=5.7+clearance; chamfer=1.2; segments=4; adaptor_len=31; clamp_len=14; barrel_dia=11.1+clearance; first_segment_height=shrouded_length-vent_length+adaptor_len+wall/2; module silencer_segmen...
glb/cad_9beb4d646574.glb
Create a wall mount for an Aqara Presence Sensor FP2. Start by creating a main cylindrical shroud with an outer diameter of 53.05mm and a height of 15.2mm. Remove a central cylindrical core with a diameter of 49.05mm and a height of 15.2mm, starting from a depth of 4mm from the base, to leave a 4mm thick wall and a 4mm...
$fn=200; id = 49.05; wall = 4; ht = 11.2; cube_y = 20; cube_x = 10; cube_z = 10; screw_d = 3.9; head_d = 10; head_h = 9; module shroud() { cylinder(d = id + wall, h = ht + wall); } module mount() { translate([(id + wall)/2 - cube_x + 1, -cube_y / 2, 0]) rotate([0, 45, 0]) cube([cube_x, ...
glb/cad_e5924c652cfa.glb
Create a wall mount for an Aqara Presence Sensor FP2. Start by creating a main cylindrical shroud with an outer diameter of 53.05mm and a height of 15.2mm. Remove a central cylindrical core with a diameter of 49.05mm and a height of 11.2mm, leaving a wall thickness of 4mm. On one side of the cylinder, attach a rectan...
$fn=200; id = 49.05; wall = 4; ht = 11.2; cube_y = 20; cube_x = 10; cube_z = ht + wall; screw_d = 3.9; head_d = 10; head_h = 4; module shroud() { cylinder(d = id + wall, h = ht + wall); } module mount() { translate([(id + wall)/2 - cube_x + 5, -cube_y / 2, 0]) cube([cube_x, cube_y, cube_z]); } mod...
glb/cad_e4115e230c0e.glb
Create a Hex Valve Holder designed to secure a 42mm long valve with a 20mm outer hexagonal width. Start with a rectangular base 8mm high, with rounded corners of 4mm radius. The base width is approximately 33.8mm and the length is approximately 53mm. In the center of the base, create a hexagonal cutout to accommodate ...
vohw = 20; vol = 42; tvd = vohw/2; kbl = 30; vsw = 8; bh = 8; hh = bh; hd = 5; shd = 9; cr = 4; hdc = 3; xw=0.3; sigma=0.01; bw = vohw/cos(30) + shd*2 + hdc*2; bl = vol + shd*3 + hdc*4; viwg = xw*2; ctw = 5; cth = 2; $fn=32; translate([0,0,-bh]) { difference(){ union(){ translate([0,0,bh/2]) linear_extru...
glb/cad_4a2059df6e69.glb
Create a customizable center finder tool consisting of three intersecting rectangular prisms. First, construct two perpendicular base arms, each measuring 40mm in length, 5mm in width, and 5mm in height. Position one arm along the Y-axis and the other along the X-axis so they meet at a corner, forming an L-shape. Nex...
side_width = 5; Height = 5; length2 = 40; center_length = 50; offset_pencil = 1; difference() { union(){ translate([(side_width * -1), 0, 0]){ cube([side_width, length2, Height], center=false); } translate([0,0,0]){ rotate([0, 0, 90]){ cube([side_width, length2, Height], center=false)...
glb/cad_21ce8467c099.glb
Create a Cutlery Tray Raiser block by combining two rectangular prisms. First, create a base rectangular prism with a width of 29.5mm, a length of 150mm, and a height of 47mm. On top of this base, centered along the length and aligned to one side, add a second rectangular prism that serves as a ledge. This upper prism ...
drawer_h = 92; drawer_w = 374; tray_h = 45; tray_w = 345; part_l = 150; ledge = 15; horizontal_gap = (drawer_w - tray_w)/2; vertical_gap = drawer_h - tray_h; echo(horizontal_gap,vertical_gap); cube([horizontal_gap+15,part_l,vertical_gap]); translate([0,0,vertical_gap]) cube([horizontal_gap,part_l,7]);
glb/cad_ec42a149adc2.glb
Create a Cutlery Tray Raiser by constructing a rectangular block with a total length of 374mm, a width of 15mm, and a height of 7mm. From this main volume, remove a smaller rectangular section to create a thin, recessed channel. This cutout should start 2mm from the front face and 2mm from the bottom face, extending th...
slider_l = 374; ledge_w = 15; ledge_h = 7; difference(){ cube([ledge_w,slider_l,ledge_h]); translate([2,0,2]) cube([ledge_w,slider_l,ledge_h]); }
glb/cad_9087fdd88917.glb
Create a Cutlery Tray Raiser block by starting with a solid rectangular base that is 16.5mm wide, 15mm deep, and 41mm tall. From this base, remove a rectangular section from the top to create a ledge. This cutout should be 15mm wide and 7mm deep, starting from the top edge and extending 15mm deep into the block. The cu...
drawer_h = 86; drawer_w = 374; tray_h = 45; tray_w = 345; part_l = 15; ledge_w = 15; ledge_h = 7; horizontal_gap = (drawer_w - tray_w)/2; vertical_gap = drawer_h - tray_h; difference(){ cube([horizontal_gap+ledge_w,part_l,vertical_gap]); translate([horizontal_gap-2,0,vertical_gap-2]) cube([ledge_w,p...
glb/cad_eb865b925fe5.glb
Create a Yes No Button housing by starting with a sphere that has been resized to 45mm in width, 70.9mm in depth, and 60mm in height. Flatten the bottom of this shape by removing the section from the base up to 10mm. Hollow out the center of the remaining shell to create a cavity for electronics. This internal void s...
wall_thickness = 2; battery_clip_x = 37; battery_clip_y = 62.9; battery_clip_z = 16.2; shell_x = battery_clip_x + wall_thickness*4; shell_y = battery_clip_y + wall_thickness*4; shell_z = 45; color("yellow") difference() { translate([0,0,60/2-10]) resize([shell_x, shell_y, 60]) sphere(d=10, $fn=100); tra...
glb/cad_dbab20234a91.glb
Create a top cover for a HackHeld Vega II. Start with a base rectangular plate measuring 45.3mm wide, 60mm long, and 2.5mm thick, with rounded corners of 1.25mm on the top face. Subtract a central rectangular cutout for an OLED screen measuring 37mm wide and 35mm long. Around this cutout, add a protective raised bord...
length = 60.0; width = 45.3; height = 2.5; wall = 0; screw = 2.0; oled_length = 35; oled_width = 37; $fs=0.01; $fn=50; module roundedcube(size = [1, 1, 1], center = false, radius = 0.5, apply_to = "all") { size = (size[0] == undef) ? [size, size, size] : size; translate_min = radius; translate_xmax = size[0...
glb/cad_830ad06cad7c.glb
Create a ring for labeling water bottles by constructing a hollow cylinder with a height of 5mm. The outer boundary should be a smooth cylinder with a radius of 27.5mm, and the center should be removed using a concentric cylindrical hole with a radius of 22.5mm, resulting in a wall thickness of 5mm.
$fn=100; difference(){ cylinder(h=5, r=27.5); cylinder(h=5, r=22.5); }
glb/cad_0c152ccb045c.glb
Create a connector for headphone ears consisting of a curved rectangular plate and two symmetrical attachment tabs. Start by creating a curved plate with a thickness of 2mm, a width of 32mm, and a length of 40mm. The plate should arch with a total height difference of 4mm between the center and the edges. On the unde...
$fn = 360; width = 26; overlap = 6; l = 40; rotation = 4; thickness = 2; module connector() { cutsize=2; cutlength=3; pre=3; post=4; w=3; polygon(points=[ [0, 0], [0, pre], [cutsize, pre+cutlength], [0, pre+cutlength*2], [0, pre+cutlength*2+post], [w, ...
glb/cad_503359aa93b6.glb
Create a balanced light dice by constructing a hollowed-out cube with an outer dimension of 10mm and a wall thickness of 1mm. The main body is a rounded cube with a corner radius of 1mm. To ensure the dice is balanced, create circular holes with a diameter of 1mm that pass completely through the center of the model. ...
$fn= $preview ? 16:64; cube=10; num=2; cube2=25; f=1; f2=0.01; wall=1; hole=1; inf=100; r([45,35.3,0]) d(){ shape(); shape(wall); r([0,0,0]) one (hole*sqrt(6)); r([90,0,0]) two (hole*sqrt(6/2)); r([0,90,0]) three(hole*sqrt(6/3)); r([0,-90,0]) four (hole*sqrt(6/4)); r([-90,0,0]) five (hole*sqrt(6/5)); ...
glb/cad_e7629819824c.glb
Create a top cover for a fridge consisting of a rectangular grid platform. The overall outer dimensions of the platform are 300mm by 190mm. The structure is composed of a network of intersecting ribs with a thickness of 3mm. Construct the grid by creating a series of parallel ribs spaced approximately 8mm apart in bo...
$fn= $preview ? 16:64; size=[300,190]; wall=3; h=3; step=[8.13,8.027]; f=2; i(){ u(){ for(y=[0:step.y:size.x-wall]) tr([wall/2+y,+size.y,0],[90,0,0]) linear_extrude(size.y) shape(); for(x=[0:step.x:size.y-wall]) tr([0,wall/2+x,0],90) r([90,0,0]) linear_extrude(size.x) shape(); } hull(){ t([f,f,-wall]) cylind...
glb/cad_65aa75c5d63a.glb
Create a top cover for a fridge consisting of a flat rectangular desk supported by four legs. The desk is a rounded rectangular slab measuring 330mm by 290mm with a thickness of 30mm. Position four legs at the corners of the desk. The rear legs are rounded rectangular blocks measuring 40mm by 40mm by 100mm. The front...
$fn= $preview ? 16:64; h=100; rearLeg=[40,40,h]; rearCut=[2,2,10]; frontLeg=[40,70,h]; frontCut=[2,-2,10]; frontRim=20; span=[368,275]; hingeR=10; pad=9; bolt=3+.5; bolt2=5; desk=[330,290,30]; gap=.3; f1=3; f2=10; inf=1000; not=0.001; t([0,0,50]) d(){ t([(span.x-desk.x)/2,(span.y-desk.y)/2,h-desk.z/2]) cubeRou...
glb/cad_a223e1857653.glb
Create a 3D model of a Prusa i3 MK3 CoreXY printer frame concept. The assembly consists of several structural brackets and rod supports. First, create the main rod supports. Position two horizontal rods of 8.2mm diameter and 370mm length parallel to each other. Add two vertical rods of 8.2mm diameter and 320mm length,...
$fn = $preview ? 16 : 32; rod=8+.2; rodX=370; rodY=320; rodZ=330; spacer=1; bearing=15+.2; bolt=3.5; boltHead=6.5; nut=5.5/cos(30)+0.3; nutL=4; xyRodGap=1; XrodShift=[spacer,(370-320-15)/2-xyRodGap,-15]; ZrodShift=[43-4-1,48-4-1,-10]; idlerShift=2; rod2belt = 10; beltW=6; beltGap=4; beltOnGearD=11.2; beltOnIdler...
glb/cad_f7b68576bd3d.glb
Create a 3D model of a Prusa i3 MK3 CoreXY printer component. Start by creating a main rectangular block with dimensions 327mm in length, 34.5mm in width, and 32.5mm in height. Apply a 2mm fillet to the vertical edges. From this main body, remove a central rectangular section to create a hollow channel. This channel s...
$fn=32; ALUL=325; rodD=8; rod=370; spacer=1; mid=rod+2*spacer-ALUL; ALU=30+.5; wall=2; extra=10; groove=[100,8-.5,8.8-.5]; f=2; not=0.001; inf=100; d(){ cubeRounded([mid+2*extra,ALU+2*wall,ALU+wall],center=[1,1,0],r=[f,f,f],r0=[f,0,0],r2=[f,0,0],r4=[f,0,0],r6=[f,0,0]); for(b=[0,1]) mirror([b,0,0]) t([mid/2,0,-n...
glb/cad_cac798071a70.glb
Create two separate cylindrical spacers. The first spacer is a thick ring with an outer diameter of 8mm, an inner hole diameter of 3.5mm, and a height of 2.2mm. The second spacer is a smaller ring with an outer diameter of 5.5mm, an inner hole diameter of 3.5mm, and a height of 2.2mm. Both parts should be rendered as 3...
$fn = $preview ? 16 : 32; h=2.5+1-.3; inf=100; not=0.001; cylinderRounded(d=[3.5,10-2],h=h); t([10,0,0]) cylinderRounded(d=[3.5,5.5],h=h); module cylinderRounded(d=[20,40],h=30,center=false,r=[0,0,0,0],chamfer=0, ellipse=[1,1]){ t([0,0,-h/2* (center?1:0)]) scale([ellipse.y,ellipse.x,1]) rotate_extrude(convexity ...
glb/cad_c6017f01c9a6.glb
Create a vertical antenna insulator consisting of a central column with integrated insulating rings. Start by creating a central cylindrical body with a total height of 104mm and a diameter of 52mm. Drill a continuous vertical hole through the center of this body with a diameter of 20.5mm. Around this central column, ...
InnerDiameterHole = 20.5; InnerDiameter = 52; InnerDiameterOnEnd = 51.5; OuterDiameter = 60.5; NumberOfCylinder = 3; $fn = 200; insulator(); module insulator(){ difference(){ union(){ translate([0,0,3*(InnerDiameter/15)+InnerDiameter/2*(NumberOfCylinder-1)-0.1]) ...
glb/cad_1c1a254fc87b.glb
Create a parametric token protector consisting of two identical circular caps designed to friction-fit a round token. For each cap, create a main outer cylinder with a diameter of 22.1mm and a height of 2.5mm. Hollow out the center of this cylinder by removing a coaxial cylinder with a diameter of 20.5mm and a height o...
token_diameter = 20.5; token_thickness = 2; shell_thickness = 0.8; lip_width = 0.5; lip_thickness = 0.5; translate([2 + token_diameter + 4 * shell_thickness, 0, 0]) { difference() { cylinder($fn = 360, d = token_diameter + 2 * shell_thickness, h = token_thickness + lip_thickness); translate([0, 0, ...
glb/cad_4ebb7af79801.glb
Create a customizable chessboard consisting of interlocking puzzle-style square tiles and matching chess pieces. Each board tile is a square measuring 51.6mm x 51.6mm with a thickness of 2mm. To create the interlocking mechanism, design a "hook" and a "hole" for each edge. A hook consists of a central cube measuring ...
$fn = $preview ? 64 : 64; square_side = 51.6; square_width = 2; margin_hook = -1; margin_hole = -0.4; hook_size = 5; piece_fitting_normal_height = 2; piece_fitting_normal_translation = square_side/3; module createHook() { union() { translate([square_side/2+piece_fitting_normal_height,0,0]) r...
glb/cad_254db55da86e.glb
Create a customizable chess piece set consisting of a base and a removable top. Start by creating a cylindrical base with a radius of 20mm and a height of 5mm. In the center of this base, carve out a triangular hole with a radius of 7.7mm and a depth of 50mm to serve as a fitting for the piece tops. Construct the piec...
$fn = $preview ? 64 : 64; piece_fitting_difference_height = 50; piece_fitting_normal_height = 10; piece_fitting_difference_translation = 20; piece_fitting_normal_translation = 0; chess_piece_k_height = 95; chess_piece_q_height=85; chess_piece_b_height=70; chess_piece_kn_height=60; chess_piece_r_height=55; chess_piece...
glb/cad_821f7e3d5d1e.glb
Create a three-part parametric cylindrical candle mold. Each of the three identical sections is a 120-degree arc segment of a cylinder with an outer diameter of 50mm and a total height of 100mm. The interior of each section must be hollowed out to accommodate a candle with a diameter of 50mm. The main interior cavity...
$fn=50; height= 100; diameter= 50; wick = 2; pin_size = 3; pin_epsilon = 0.1; bevel = 1; module section() { difference(){ union(){ union(){ cylinder(r=diameter/2, h=height-bevel); translate([0,0,height-bevel]) cylinder(r1=diameter/2, r...
glb/cad_9db50e149115.glb
Create a parameterized lens cap with a height of 10mm. Start with a main body consisting of a hollow tapered cylinder. The outer wall should have a base diameter of 39.5mm, tapering slightly outward to a top diameter of 40mm. The inner cavity should have a base diameter of 38.5mm, also tapering outward to 39mm at the t...
$fn = 45; innerDiameter = 38.5; innerRadius = innerDiameter/2; outerDiameter = 39.5; outerRadius = outerDiameter/2; pancakeThickness = 0.5; height = 10; ridgeSize = 0.5; OuterRidgeSize = 0.25; ridges = 6; outerRidges = 20; taper = 0.5; module cap() { union(){ difference(){ {cylinder(h=height, r1=o...
glb/cad_6f2712a19c25.glb
Create a divider for a storage unit compartment. The object is a thin plate with a uniform thickness of 1.8mm. The overall height of the plate is 30mm. The shape is a rectangle with rounded bottom corners and a slight taper in width. The width at the bottom edge is 49mm, and the width at the top edge is 50mm. Apply a 2...
$fs = 0.1; thickness = 1.8; radius = 2; width_bottom = 49; width_top = 50; height = 30; offset = (width_top - width_bottom) / 2; theta = atan(offset / height); x = radius * cos(theta); y = radius * sin(theta); centre_bottom_left = [-width_bottom/2 + radius, radius]; centre_bottom_right = [width_bottom/2 - radius, r...
glb/cad_f32ac6a68c9d.glb
Create a waterproof electronics project box consisting of a bottom base and a matching top lid. The bottom base is a rectangular enclosure with outer dimensions of 60mm length, 80mm width, and 40mm height. The walls have a thickness of 3mm, and the corners are rounded with a radius of 12mm. The top edge of the base f...
ShowBottom = true; ShowTop = true; DistanceBetweenObjects = 10; ShowCaseAssembled = false; SeeNutCut = false; SeeGrooveRidgeScrew = false; Caselength = 60; CaseWidth = 80; CaseHeight = 40; CutFromTop...
glb/cad_31a72c5c4214.glb
Create a waterproof electronics project box consisting of a bottom housing and a matching top lid. The bottom housing is a rectangular box with rounded corners, measuring 60mm in length, 100mm in width, and 40mm in height. The walls have a thickness of 3.8mm. The interior is hollowed out, leaving a bottom floor of 3m...
$fn = 80; ShowBottom = true; ShowTop = true; DistanceBetweenObjects = 10; ShowCaseAssembled = false; ShowGasket = true; GasketHeight = 1.5; SeeNutCut = false; SeeGrooveRidgeScrew = false; Casele...
glb/cad_ba54e389942d.glb
Create a Pendulum Clock Mechanism part consisting of a flat, 3mm thick base. Start with a primary cylinder that has a radius of 8mm and a height of 3mm. From the center of this cylinder, remove a rectangular slot measuring 4.5mm by 3.5mm that passes completely through the height of the object. Attached to the side of t...
$fn = $preview ? 16 : 64; H = 3; R = 8; ring_width = 6; main(); module main(){ difference(){ cylinder(h = H, r = R); translate([0, 0, H/2]) cube([4.5, 3.5, H+1], center=true); } translate([ring_width, -ring_width/2, 0]) cube([R*3, ring_width, H]); translate([R*3.75, 0, ...
glb/cad_fa8580ade267.glb
Create a Pendulum Clock Mechanism gear with a total height of 12mm. Start with a central cylinder of radius 6mm and height 12mm. Around this center, create a larger gear body by forming a cylinder with a radius of 41.4mm and height 12mm. From this gear body, remove a concentric inner cylinder with a radius of 4mm and...
$fn = $preview ? 16 : 64; H = 12; R = 6; final(); module final(){ difference(){ main(); rotate([0, 0, 59]) translate([0, 0, H/2]) cube([4.5, 3.5, H+2], center=true); } } module main(){ cylinder(h=H, r=R); translate([0, -R*0.5, 0]) cube([R*6.8, R*1.1, H]); r...
glb/cad_1de2e4b8760a.glb
Create a Pendulum Clock Mechanism back plate. Start with a base shape formed by the convex hull of two cylinders with a radius of 5mm and a height of 5mm, where the second cylinder is positioned 260mm away from the first along the x-axis. Add a top stretcher by centering a 10mm by 3mm by 57mm rectangular block at x=245...
$fn = $preview ? 16 : 64; H = 5; H2 = 57; W = 200; D = 260; R = 5; back_plate_b(); module back_plate_b(){ difference(){ back_plate_b_shape(); translate([0, 0, H/2]) cube([R*2, R*2+1, H/3 + 0.3], center = true); translate([D*0.303, 0, -1]) cylinder(h = H+2, r = 3); ...
glb/cad_e783f895fe9b.glb
Create a Pendulum Clock Mechanism gear consisting of a main gear body and a central axle hub. Start with a base cylinder 3mm thick with a radius of 16mm, which serves as the inner core. Around this, add a larger outer ring 3mm thick with a radius of 17.5mm. On the outer edge of this ring, place 36 gear teeth evenly spa...
$fn = $preview ? 16 : 64; H = 3; R = 17.5; n_teeth = 36; topgear_height = H*4; topgear_radius = R*0.3; topgear_n_teeth = 10; final(); module final(){ difference() { main(); translate([0, 0, (H+topgear_height)/2]) cube([4.5, 3.5, H+topgear_height+2], center=true); } } module main(){...
glb/cad_0425a23b0ed7.glb
Create a clock hand for a pendulum clock mechanism. The part is a flat geometric shape with a uniform thickness of 3mm. Start with a circular base that has a radius of 8mm. In the center of this circle, create a rectangular hole measuring 4.5mm by 3.5mm that passes completely through the thickness of the part. Extendin...
$fn = $preview ? 16 : 64; H = 3; R = 8; ring_width = 6; main(); module main(){ difference(){ cylinder(h = H, r = R); translate([0, 0, H/2]) cube([4.5, 3.5, H+1], center=true); } translate([ring_width, -ring_width/2, 0]) cube([R*5, ring_width, H]); hull(){ transl...
glb/cad_68779d4e91be.glb
Create a Pendulum Clock Mechanism gear stand by starting with a base shape formed from the convex hull of two cylinders, each with a radius of 6mm and a height of 15mm, positioned such that the second cylinder is offset 16.2mm along the x-axis. From this solid, remove several geometric voids. First, create a horizontal...
$fn = $preview ? 16 : 64; H = 15; R = 6; main(); module main() { difference(){ hull(){ cylinder(h = H, r = R); translate([R*2.7, 0, 0]) cylinder(h = H, r = R); } hull(){ rotate([0, 90 , 0]) translate([-H/2, 0, R*1.5]) ...
glb/cad_25f306f0b10e.glb
Create a Pendulum Clock Mechanism gear consisting of a main gear body and a central hub. Start with a base cylinder 3mm thick with a radius of 30mm. Around the outer edge of this cylinder, add 40 gear teeth, each 3mm wide and 3mm thick, spaced evenly every 9 degrees. In the center of the base, create a circular cutout...
$fn = $preview ? 16 : 64; H = 3; R = 30; n_teeth = 40; topgear_height = H*3.5; topgear_radius = R*0.2; topgear_n_teeth = 9; final(); module final(){ difference(){ main(); translate([0, 0, (H+topgear_height)/2]) cube([4.5, 3.5, H+topgear_height+2], center=true); } } module main(){ ...
glb/cad_033d6b7f9219.glb
Create a Pendulum Clock Mechanism component by starting with a solid cylinder that has a radius of 10.5mm and a height of 5.5mm. Bore a circular hole with a radius of 3mm through the center of the cylinder along its entire height. To complete the part, remove two rectangular slots from the cylinder: one centered at a p...
$fn = $preview ? 16 : 64; H = 5.5; R = 10.5; n_teeth = 8; main(); module main(){ difference(){ cylinder(h = H, r = R); translate([0, 0, -1]) cylinder(h=H+2, r=3); translate([0, R*0.6, H/2]) cube([4.5, 3.5, H+2], center=true); translate([0, -R*0.6, H/2]) ...
glb/cad_53c50350774d.glb
Create a Pendulum Clock Mechanism gear with a total height of 5.5mm and a base radius of 10.5mm. Start with a solid cylinder of these dimensions. Around the perimeter of this cylinder, create 8 equally spaced radial teeth. Each tooth is formed by the intersection of the main cylinder and a larger cylinder with a radius...
$fn = $preview ? 16 : 64; H = 5.5; R = 10.5; n_teeth = 8; final(); module final(){ difference(){ main(); translate([0, 0, -1]) cylinder(h=H+2, r=3); translate([0, R*0.6, H/2]) cube([4.5, 3.5, H+2], center=true); translate([0, -R*0.6, H/2]) cube([4.5, 3.5...
glb/cad_6122af45000b.glb
Create a Pendulum Clock Mechanism gear consisting of a central vertical shaft and a toothed base. Start by creating a base cylinder with a radius of 3.96mm and a height of 7.5mm. On top of this base, add a taller, narrower central shaft with a radius of 3.96mm and a height of 34.5mm. At the bottom of the assembly, cre...
$fn = $preview ? 16 : 32; H = 3; R = 33; n_teeth = 12; final(); module final(){ difference() { main(); translate([0, 0, (H*12)/2-1]) cube([4.5, 3.5, H*12], center=true); } } module main(){ cylinder(h = H*2.5, r = R*0.12); cylinder(h = H/2, r = R*0.2); translate([0, 0, ...
glb/cad_aecbac1ad449.glb
Create a Pendulum Clock Mechanism front plate. Start by forming the main body as a hull created between two cylinders, each with a radius of 5mm and a height of 5mm; one cylinder is centered at the origin and the other is positioned at x=250mm, y=0, z=0. From this solid plate, remove several rectangular and cylindric...
$fn = $preview ? 16 : 64; H = 5; W = 200; D = 260; R = 5; front_plate_b(); module front_plate_b(){ difference(){ front_plate_b_shape(); translate([0, 0, H/2]) cube([R*2, R*2+1, H/3 + 0.3], center = true); translate([0, 0, H/2]) cube([3, 3, H+2], center = true); ...
glb/cad_ad66879d7d7a.glb
Create a Pendulum Clock Mechanism front plate. Start with a base rectangular plate measuring 10mm wide, 200mm long, and 5mm thick, centered on the origin. Add a smaller rectangular extension to the front of this base that is 20mm wide, 30mm long, and 5mm thick. From this combined shape, remove several geometric sectio...
$fn = $preview ? 16 : 64; H = 5; W = 200; D = 260; R = 5; front_plate_a(); module front_plate_a(){ difference(){ front_plate_a_shape(); translate([R*3, R*3, -1]) cylinder(h = H+2, r = R*2); translate([R*3, -R*3, -1]) cylinder(h = H+2, r = R*2); front_plate_b_sh...
glb/cad_401d33d6b63f.glb
Create a clock hand for a pendulum clock mechanism. The object is a flat, 3mm thick geometric shape. Start with a main circular base that has a radius of 10mm. Remove a concentric cylindrical hole from the center of this base with a radius of 5.5mm, creating a ring. Cut a small rectangular notch measuring 1.5mm by 1.5m...
$fn = $preview ? 16 : 32; H = 3; R = 10; ring_width = 4.5; main(); module main(){ difference(){ cylinder(h = H, r = R); translate([0, 0, -1]) cylinder(h = H+2, r = R - ring_width); translate([R-ring_width+0.5, 0, H/2]) cube([1.5, 1.5, H+2], center = true); } tra...
glb/cad_d248d853a91c.glb