Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a parametric ID tag consisting of a flat base with raised text. The base is a 2mm thick plate formed by the convex hull of two circles, each with a radius of 12mm (calculated as half the font size of 20mm plus a 2mm margin). One circle is centered at the start of the tag, and the other is positioned at the end o...
tag = "rixvet"; width = -1; thickness = 2; margin = 2; hook_type = "half_circle"; hook_thickness = 4; font_family = "Consolas"; font_style = "Bold"; font_size = 20; font_height = 3; $fn = 64; module t(t, spacing = 1) { rotate([0, 0, 0]) linear_extrude(height = font_height) text(t, font_size, ...
glb/cad_4f8d6afc3c49.glb
Create a CoCo USB Serial Program Pak case consisting of two mirrored halves, a top and a bottom, each with a footprint of 112mm by 176mm. For the bottom section, create a solid rectangular block 112mm wide, 176mm long, and 14mm high. Subtract a central rectangular cavity from the top face, leaving a 3mm wall thicknes...
module rod(l) { cylinder(l,3,3,$fn=30); } module vert() { sphere(3,$fs=0.4); } module base(l,w,h) { translate([-w/2+3,3,3]) { vert(); rod(h-3); } translate([w/2-3,3,3]) { vert(); rod(h-3); } translate([-w/2+3,l-3,3]) { vert(); rod(h-3); }...
glb/cad_6ad957a68522.glb
Create a CoCo USB Serial Program Pak case by starting with the base geometry of a usb_top shape, scaled by a factor of 0.79375 in all three dimensions. From this scaled volume, remove a rectangular block measuring 22mm in width, 48mm in length, and 20mm in height. Position this cutout so its center is offset, specifica...
use <usbserial_top1.scad> scale([25.4/32,25.4/32,25.4/32]) { difference() { usb_top(); translate([-15,159,-1]) cube([22,48,20]); } }
glb/cad_f8e4be409ef9.glb
Create a CoCo USB Serial Program Pak case. Start by constructing a main rectangular body that is 110mm wide, 176mm long, and 32mm high. At the base of this body, add a smaller rectangular platform that is 34mm wide, 34mm long, and 7mm high, centered relative to the width of the main body. On the top surface of the main...
use <program_pak.scad> module usb_top() { difference() { large_top(110,176); translate([-15,159,5]) cube([22,48,20]); translate([0,125,0]) rotate([180,0,0]) linear_extrude(10, center=true) text("USB Serial", halign="center", valign="center", font="Arkitech Stencil"); } trans...
glb/cad_ba91603eafba.glb
Create a CoCo USB Serial Program Pak case by starting with a large rounded box measuring 110mm by 176mm. From this base, remove a rectangular central cavity measuring 22mm wide, 48mm deep, and 20mm high. Position this cutout so its center is aligned with the base, but offset it 7mm from the side and 13mm from the botto...
use <program_pak.scad> scale([25.4/32,25.4/32,25.4/32]) { difference() { large_bot(110,176); translate([-7,160,13]) cube([22,48,20]); } }
glb/cad_3c38067ad4c9.glb
Create a Raspberry Pi case based on a 2x2 Gridfinity base. The overall footprint consists of four 42mm x 42mm base units. The total height of the bin is 38.8mm (calculated as 5 units of 7mm plus a 3.8mm top lip). The main body is a hollowed-out container with a flat bottom. Within this volume, create a series of preci...
include <gridfinity-rebuilt-utility.scad> $fa = 8; $fs = 0.25; gridx = 2; gridy = 2; gridz = 5; length = 42; divx = 1; divy = 1; gridz_define = 0; height_internal = 0; enable_zsnap = false; style_tab = 5; style_lip = 0; scoop = 0; style_corners = false; style_hole = 3; div_base_x = 0; div_base_y = 0; ...
glb/cad_60d7b5c2ca48.glb
Create a Raspberry Pi case based on a 2x2 Gridfinity base. The overall footprint consists of four 42mm x 42mm base units. The total height of the bin is 38.8mm (calculated as 5 units of 7mm plus a 3.8mm top lip). The main body is a hollowed-out rectangular container. To create the internal cavity for the electronics, ...
include <gridfinity-rebuilt-utility.scad> $fa = 8; $fs = 0.25; gridx = 2; gridy = 2; gridz = 5; length = 42; divx = 1; divy = 1; gridz_define = 0; height_internal = 0; enable_zsnap = false; style_tab = 5; style_lip = 0; scoop = 0; style_corners = false; style_hole = 3; div_base_x = 0; div_base_y = 0; ...
glb/cad_5ebab28b94a2.glb
Create a Raspberry Pi case based on a 2x2 Gridfinity base unit with a total length of 42mm per unit. The overall external height of the bin is 24.8mm, which includes a 3.8mm top lip. Construct the main body as a hollow rectangular container. Within the walls, create a series of precise cutouts to accommodate the Raspb...
include <gridfinity-rebuilt-utility.scad> $fa = 8; $fs = 0.25; gridx = 2; gridy = 2; gridz = 3; length = 42; divx = 1; divy = 1; gridz_define = 0; height_internal = 0; enable_zsnap = false; style_tab = 5; style_lip = 0; scoop = 0; style_corners = false; style_hole = 3; div_base_x = 0; div_base_y = 0; ...
glb/cad_0b98a7126dd4.glb
Create a vacuum robot barrier for a drying rack. Construct the object as a long, thin U-shaped channel. Start by creating a rectangular base that is 150mm long, 17mm wide, and 2mm thick. From one long edge of this base, extend a vertical wall upwards to a total height of 80mm, with a thickness of 2mm. On the opposite l...
lenght=150; thikness_bottom=2; thikness_walls=2; height=80; pipe_dimension=15; wall=(pipe_dimension+thikness_walls); bottom_translate=(thikness_walls-2); translate([0, bottom_translate, 0]){ cube([lenght, wall, thikness_bottom]); } cube([lenght, thikness_walls, height]); translate([0, wall, 0]){ cube([lenght, th...
glb/cad_fa06027d8036.glb
Create a solid parametric angle bracket in the shape of a triangular prism. The prism has a thickness of 17mm and two equal side lengths of 40mm meeting at a 90-degree angle. Subtract two identical screw holes from the body, one positioned along each 40mm side. Each hole consists of a cylindrical shaft with a diamete...
side_length = 40; screw_diameter = 5; screw_head_diameter = 9; screw_length = 5; screw_countersink_angle = 40; bugle_screw_head = true; screw_shaft_diameter = 4; angle = 90; width = 17; screw_hole_ratio = 1.5; countersink_length = (screw_head_diameter/2-screw_diameter/2)/tan(screw_countersink_angle); $fn = 6...
glb/cad_31776b000d36.glb
Create a Modular Bathroom Shelf with a total depth of 50mm and a base height of 3.6mm. The shelf is composed of a series of connected modules aligned along the X-axis. First, create a module for a toothbrush holder (Philips Sonicare) with a width of 30mm. This module features a central cutout consisting of a cylinder ...
depth = 50; anchorHeight = 24; anchorThickness = 3; height = 3.6; cornerRadius = 10; render_modules( [ [ "tepe_interdental_short", "tepe_interdental_short_back" ], "tepe_intertepe_interdental_short_angle_long", "philips_sonicare", "philips_sonicare", "tepe_intertepe_interde...
glb/cad_9f4296b9c033.glb
Create a Tube Cutting Guide by constructing a cylindrical tool with a central hole 57mm in diameter. The base is a solid cylinder 10mm high with a diameter of 77mm. Above this base, add a second cylindrical section 20mm high with a bottom diameter of 57mm that tapers linearly to a top diameter of 62.5mm. Remove the cen...
$fn = 100; tube_od = 57; thickness = 20; width=10; wall=2.5; slots=5; difference() { union() { cylinder(h=width, d=thickness+tube_od); translate([0,0,width]) difference() { cylinder(h=width*2, d1=tube_od+wall*3, d2=tube_od+wall); for (n = [1 : slots]) { ...
glb/cad_b031b45873a2.glb
Create a Sphericon consisting of two identical halves joined by pins. To construct one half, start with a rounded square (a square with a radius of 25mm and corners filleted by 15% of that radius). Rotate this 2D shape 180 degrees around its central horizontal axis to create a 3D solid of revolution. Repeat this proc...
polygon_type = "rounded"; polygon_r = 25; polygon_n = 4; axis_angle = 0; polygon_fillet_part = 0.15; l_clip_part = 0.30; r_tip_part = 0.27; r_curvy_smooth_part = 0.075; hole_r = 2.5; hole_l = 5; hole_extra_r = 0.40; module PolygonSharp(radius, n_corners) { circle(r=radius, $fn=n_corners); } module Polygo...
glb/cad_a6e70d6ee5be.glb
Create a Sphericon consisting of two identical halves joined by pins. First, generate a base 2D polygon with a radius of 25mm and 4 corners. Rotate this polygon around one of its symmetry axes to create a solid of revolution. Cut this solid in half along the plane of rotation. To create the two body halves, take one ha...
use <sphericon.scad> polygon_r = 25; polygon_n = 4; axis_angle = 0; hole_r = 2.5; hole_l = 5; module BodyParts( polygon_r, polygon_n, axis_angle, hole_r, hole_l, polygon_type="rounded", center=false ) { dist_x = 1.5; tr_x = center ? 0 : 2 * polygon_r + dist_x; tr_y = center ? 0 : polygon_r; t...
glb/cad_767e2e92e5e0.glb
Create a tactical guitar pick with a total thickness of 0.4mm. The main body is a teardrop-like shape 30mm long and 25mm wide, featuring a rounded tip with a radius of 2mm. On the top surface, add a hexagonal grip texture consisting of small hexagonal prisms. Each hexagon should have a radius of 1.4mm and a height of...
thickness = 0.4; length = 30.0; width = 25; roundness = 2; grip_type = "hexagon"; grip_height = 0.4; dot_size = 1.4 + 0; dot_spacing = 0.8 + 0; dot_sum = dot_size + dot_spacing; function ease (a, b, t) = a + (b - a) * (1 - pow(1 - t, 3)); module pick () { hull() { for (i = [0:.1:1]) translate([0, width / ...
glb/cad_3bab22af73a1.glb
Create a Lofi Radio case for a Raspberry Pi 4 and BrainCraft HAT. The model consists of a bottom base and a top cover. Construct the bottom base as a rounded rectangular tray with a wall thickness of 1.2mm. The interior should accommodate a PCB of 85mm by 56mm. Include four cylindrical mounting pedestals at the PCB co...
part = "top"; have_plugrow = 0; have_open_plugrow = 0; have_camera = 0; have_sdcard_support = 1; have_leds = 0; have_pegs = 0; have_cutout = 1; have_text = 1; have_countersink = 0; have_jack = 1; mil2mm = 0.0254; pcb = [85.0, 56.0, 1.5]; pcb2floor = 4.0; pcb2roof = 17.0; pcbmntdia = 4.00; pcbmnt1dx = pcb[0]/2 - 3.5...
glb/cad_ef54f6845886.glb
Create a coffee dripper holder with a base plate diameter of 90mm and a total height of 19mm. The main body is a centered, tapered hollow cone. Start with a solid cylinder base 4mm thick and 90mm in diameter. Above this base, create a conical section that tapers from a diameter of 49mm at the bottom to 31mm at the top ...
diam=90; stop_height=2; $fn=100; module v60_h25() { translate([0,0,0]) cylinder(h=6, d=40, center=false); translate([0,0,6]) cylinder(h=3, d1=30, d2=31, center=false); translate([0,0,9]) cylinder(h=6, d1=31, d2=38, center=false); translate([0,0,15]) cylinder(h=10, d1=38, d2=50, center=false); translate([0,0,25])...
glb/cad_43f3dd3a990d.glb
Create a customizable coin holder. Start by constructing a solid rectangular block with a height of 100mm, a wall thickness of 3mm, and a depth based on the largest coin diameter multiplied by 0.7, plus the wall thickness. Within this block, create six vertical cylindrical holes of varying diameters to hold specific ...
$fa = 6; $fs = 1; coin_value = [ 0.5 , 1 , 2 , 5 , 10 , 20 ]; coin_diameter = [ 21.5 , 20.3 , 24.45 , 28.55 , 23.35 , 26.9 ]; coin_height = [ 1.62 , 1.57 , 1.74 , 1.95 , 2.25 , 2.35 ]; box_height = 100; coin_coverage = 0.7; wall_depth =...
glb/cad_f056078752c5.glb
Create a honeycomb stencil by starting with a rectangular plate measuring 175mm by 145mm with a thickness of 0.4mm. Cut a repeating grid of hexagonal holes through the plate, where each hexagon has a diameter of 45mm. The hexagons should be arranged in a staggered honeycomb pattern with a spacing of 2mm between the par...
d=45; h=0.4; t=2; w=2; wh=2; size = [175, 145]; s=sin(60); c=cos(60); ds = d*s; difference() { translate([0,0,wh/2]) cube([size[0], size[1], h+wh], center=true); cube([size[0]-2*w, size[1]-2*w, h+3*wh], center=true); } intersection() { cube([size[0],size[1],2*h], center=true); union() { ...
glb/cad_063687a38980.glb
Create a flower pot saucer by constructing a thick-walled, shallow vessel. Start with a base cylinder that has a height of 12mm, a bottom diameter of 134mm, and a top diameter of 154mm. Hollow out this shape to create the interior reservoir by removing two concentric cylinders. First, remove a cylinder from the center ...
d=130; dd=10; h=10; t=2; $fn=200; difference() { cylinder(d1=d+2*t, d2=d+dd+2*t, h=h+t); translate([0,0,t]) cylinder(d1=0.8*(d), d2=d+dd, h=h+t); translate([0,0,t*2]) cylinder(d1=d, d2=d+dd, h=h+t); }
glb/cad_3627aba5083d.glb
Create a flower pot saucer by constructing a series of concentric cylinders. Start with a solid base cylinder that has a diameter of 139mm and a height of 13mm. From the top of this base, remove a central cylinder with a diameter of 136mm and a height of 11mm, positioned 2mm from the bottom, to create a hollow interior...
w = 2; $fa=1; c = 0.5; ledge=10; d=5; wh = 6; difference() { cylinder(d=135+2*c+2*w, h=d+wh+w); translate([0,0,w+d]) cylinder(d=135+2*c, h=d+wh+w); translate([0,0,w]) cylinder(d=135+2*c-2*ledge, h=d+wh+w); }
glb/cad_6d65f37b1bd6.glb
Create a star-shaped thumbscrew head with a total height of 10mm. The main body is based on a six-pointed star profile created by alternating outer radii of 50mm and inner radii of 15mm. The profile should have rounded corners with a radius of 4.5mm. The vertical cross-section of the head is not a perfect cylinder; i...
or = 50; ir = 15; fr = 4.5; h=10; screw_h=4; screw_d=0.5*25.4; b=h/5; t=2; module shape() { offset(r=-fr, $fn=60) offset(r=2*fr) offset(r=-fr) polygon( points=[ for (a = [0: 6]) for (i = [0:1]) [ (i*or+(1-i)*ir)*cos((a+i/2)*360/6), (i...
glb/cad_d0f6374b63c0.glb
Create a Carrot Cube toy by starting with a block that is 100mm wide, 100mm deep, and 70mm tall. Shape this block by intersecting it with a sphere of approximately 128mm in diameter, centered on the block, to create a rounded, organic form. From the top face, centered at the 50mm mark for both X and Y axes, remove a ce...
sizes = [-4,8,-7,-1,5,2]; csize=[100,100,70]; difference() { intersection() { cube(csize); translate(csize/2) sphere(d=sqrt(csize[0]*csize[0]+csize[1]*csize[1]+csize[2]*csize[2])*0.9, $fn=200); } translate([csize[0]/2,csize[1]/2,10]) cylinder(d=20,h=csize[2]); for(i=[0:5])...
glb/cad_6117ea067c60.glb
Create a "Box for hive tiles" consisting of four separate components: a center piece, two side containers, and a lid. The side containers and center piece are based on a hexagonal geometry with a cleared radius of approximately 21mm. Each container is a hollowed-out hexagonal prism with a wall thickness of 3mm and a t...
tile_height = 12; tile_small_radius = 38/2; tile_radius = tile_small_radius / sin(60); clearance = 0.4; thickness = 3; only_sides = false; only_side = false; only_center = false; only_cover = false; no_side = false; no_sides = false; no_center = false; no_cover = false; cover_on_top = true; include_side_a = !no_si...
glb/cad_700ebf4e9431.glb
Create a grout spatula tool with a thickness of 1.2mm and an overall square footprint of 70mm by 70mm. The tool is a flat plate featuring four corners with different radii to be used for finishing grout joints. The first corner should be a sharp 90-degree right angle with a radius of 0mm. The second corner must have a ...
r1 = 0; r2 = 3; r3 = 6; r4 = 10; l = 70; h = 1.2; $fn=90; difference() { union() { translate([0,r4,0]) cube([l - max(r1, r2), l - r3 - r4, h]); translate([max(r3, r4),r1,0]) cube([l - max(r3, r4), l - r1 - r2, h]); translate([r4,0,0]) cube([l - r1 - r4, l - max(r2, r3), h]); translate([r3, max(r1, r4), 0]) cube([...
glb/cad_45a609813ec2.glb
Create an SMA hand screwdriver tool. The main body is a hexagonal prism with a total length of 23mm. The outer shell is a hexagon with a diameter of approximately 11.55mm. This outer shell is hollowed out by a concentric hexagonal hole with a diameter of 9.81mm that runs through the center, leaving a wall thickness of ...
t=1.5; l=23; inner_d = (8+0.5)/sqrt(3)*2; outer_d = (8+0.5+2*t)/sqrt(3)*2; handle_t = 1*t; outer_d_bot = outer_d + 2*handle_t; rib_d = t; handle_h = 10; difference() { union() { cylinder(d1=outer_d_bot-2*t, d2=outer_d_bot, h=(outer_d_bot-outer_d)/2, $fn=6); translate([0,0,handle_t]) c...
glb/cad_b3ba3516335a.glb
Create a holder for an irrigation hose consisting of a continuous 5mm diameter rod bent into a U-shape. Start with two parallel straight legs, each 50mm long, positioned 30mm apart. Connect these legs with a semi-circular arc of 5mm thickness and a 15mm radius that curves over the top. At the end of each straight leg, ...
w=30; d=5; l = 100; h = 5; hook_from_bottom = 40; l1 = l - hook_from_bottom - 2*h - w/2 - d/2; l2 = 40; bump_rotation = [90,0,-45]; union() { rotate_extrude(angle=180, $fn=200) translate([w/2,0]) circle(d=d, $fn=6); for (x = [-w/2, w/2]) translate([x,0]) { $fn=6; rotate([90,0,0]) c...
glb/cad_b2b151bf2fd4.glb
Create a sponge holder with a total length of 90mm, a height of 50mm, and a wall thickness of 3mm. Construct the main body using three vertical walls: one outer wall at the base and two inner walls spaced to create a central pocket. The first inner wall is positioned 32.5mm from the outer wall, and the second inner wal...
w = 32.5; sw = 25; l = 90; h = 50; t = 3; cube([t,h,l]); translate([0,h-t,0]) cube([(w+2*t), t, l]); translate([w+t,0,0]) cube([t,h,l]); difference() { union() { translate([w+t,0,0]) cube([(sw+2*t), t, l]); translate([w+2*t+sw,0,0]) cube([t,h,l]); } rotate([0,0,-45]) translate([0,5,l/2]) resize([9...
glb/cad_306386149fcd.glb
Create a C930e camera mount consisting of a cylindrical joint connected to a rectangular plate by a short arm. Start with a central cylinder 20mm in diameter and 10mm high. Attached to this cylinder, extend a rectangular arm 16mm wide, 25mm long, and 9mm high. At the end of this arm, create a rectangular plate 40mm wid...
$fs=0.2; $fa=1; joint_height=10; joint_diameter=20; arm_width=16; arm_height=9; arm_length=25; plate_width=40; plate_length=30; plate_height=10; hole_offset=2/3 * plate_length; radius=5; difference() { union() { cylinder(h=joint_height,r=joint_diameter/2); translate([-arm_width/2,0,0]) ...
glb/cad_15a481ebf563.glb
Create a spool for a DC motor shaft. Start by constructing a central hollow cylinder with an outer diameter of 22.6mm, an inner diameter of 3mm, and a total height of 42.4mm. Add a circular flange to the bottom with a diameter of 40mm and a thickness of 1.2mm. The main body of the spool should feature 20 thin, radial...
shaft_diameter = 3; outer_diameter = 25; length = 40; border_width = 1.2; border_diameter = 40; wall_width = 1.2; n_supports = 20; support_ratio = 0.3; set_screw_diameter = 3.5; infinity = 1000; slope_ratio = 0.7; epsilon = 0.01; $fs=0.2; $fa=1; difference() { union() { intersection() { cylinder(d = outer_...
glb/cad_2b9f92319138.glb
Create a RepRack hook-and-loop strap label tag. Start by creating a rectangular base with rounded corners, measuring 35mm in width and 40mm in length, with a total thickness of 1.2mm. The corners should be rounded with a diameter of 10mm. Cut two parallel slots through the body to create a central rectangular island. ...
OUTER_DIA_MM = 10; INNER_DIA_MM = 5; LENGTH_MM = 40; WIDTH_MM = 35; BODY_HEIGHT_MM = 1.2; TEXT_HEIGHT_MM = 0.8; TEXT = "PLA"; $eps = 0.0001; $fn = 50; module ocyl() { cylinder(h = BODY_HEIGHT_MM, d = OUTER_DIA_MM); } module create_body() { hull() { ...
glb/cad_ddc8fcee209c.glb
Create a Printed Refillable Cup Stand designed as a wide, stable base. Start by creating a primary body using a hull of a cylinder with a bottom diameter of 90mm and a top diameter of 60mm, and a height of 10mm. Apply a 1mm spherical fillet to all edges. In the center of the top surface, remove a conical volume to cre...
module CupVolume(cut=0) { minkowski() { cylinder(h=146,d1=60-cut,d2=80-cut,$fs=0.1,$fa=2); sphere(d=3.4); } } difference() { minkowski() { hull() { rotate([0,0,0]) { translate([-60,0,-2]) cylinder(r=10,h=1,$fs=0.1,$fa=2); translate([-23,0,-2]) cylinder(r=10,h=30,$fs=0.1,$fa=2);...
glb/cad_767f91f1625c.glb
Create a model of a NYC and Penn Central Concrete Arch Railroad Bridge with a total bridge width of 80mm and a 30-degree skew. Construct the bridge using three main sections: two outer abutment arches and one central arch. Each arch section consists of a thick concrete slab with a semi-circular void underneath. For t...
include <PCRRBridgeFaceV1.scad> BridgeWidth = 80; BridgeSkew = 30; makeSTL = true; module __Customizer_Limit__() {} shown_by_customizer = false; $fn = 100; function scaleHO(dimension) = dimension * 304.8 / 87; maHeight = scaleHO(10.8); maHeightBed = scaleHO(10.8 + 2.5 + 1.25); maWidth = scaleHO(17.2); maWall ...
glb/cad_e0cc597fa8dd.glb
Create a USB Joystickadapter Case consisting of a bottom shell and a top cover. The main body is based on a PCB with dimensions 67.44mm x 35.43mm x 1.51mm. Create a bottom case with an outer footprint of approximately 68.44mm x 36.43mm and a height of 15mm. The walls should be 1.6mm thick. In the four corners of the ...
x1 = 67.44; x2 = 57.39; y1 = 35.43; y2 = 45.45; thickness = 1.51; case_wall_thickness = 1.6; case_height = 15; case_padding = 1; cutout_height = 11.2; tolerance = 0.3; $fn = 40; module plug(screw_only) { screw_diameter = 3.15; screw_height = 6.75-thickness+screw_diameter/2; screw_x = 1.44+screw_diameter...
glb/cad_d2e883ab7486.glb
Create a Customizable Pegboard Wall Mount consisting of two separate components: a spacer and a cap. First, create the spacer as a cylinder with a diameter of 24.4mm and a height of 9.6mm. Remove a concentric cylindrical hole from the center with a diameter of 6.6mm. Second, create the cap. Start with a base cylinde...
$fn=90; boardHoleSize = 6.5; boardThickness = 4; capThickness = 4; screwheadDiameter=8.4; screwheadHeight=3.6; screwheadLipHeight=1.2; screwthreadDiameter=4.7; spacerDiameter = 24.4; spacerThickness = 9.6; spacerHoleDiameter = boardHoleSize+0.1; translate([spacerDiameter * 1.2,0,0]) mySpacer(); myCap(); module...
glb/cad_f21e179df1de.glb
Create a round container jar with a screw-on lid. For the base, create a cylinder with an inner width of 120mm and an inner height of 32mm. The walls and the floor should both be 2mm thick, with the floor thickness specifically set to 3mm. The top of the base features an external screw thread that is 10mm high with 4...
chamfer_lid = 0; chamfer_base = 0; smooth_sides = 0; part_to_print = 0; Inner_Width_Base = 120; Inner_Height_Base = 32; wall_thickness = 2; wall_thickness_lid = 2; bottom_thickness = 3; Height_Rim = (smooth_sides!=1) ? 0 : 3; Diameter_Rim = Inner_Width_Base + 0.2; thread_height = 10; thread_turns = 4; cut_...
glb/cad_017836fbbe1a.glb
Create a sorter box insert by constructing a hollowed-out tapered container. First, create a solid outer volume by forming a hull around four spheres of radius 3mm positioned at the base corners and four cylinders of radius 3mm at the top corners. The base is a rectangle 40mm wide by 40mm deep, but the walls taper inwa...
$fa=5; $fs=0.5; WIDTH=40; ANGLE_W=5; DEPT=40; ANGLE_D=5; HEIGHT=44; D_WALL=1; RADIUS_I=1.5; RADIUS_O=3; module box_full(width1, dept1, width2, dept2, radius) { lower = [[-width2, dept2, radius], [-width2, -dept2, radius], [width2, -dept2, radius], [width2, dept2, radius]]; upper = [[-width1, d...
glb/cad_0b6ec06ebc46.glb
Create a water fountain filling hopper by constructing a hollowed-out vertical assembly. Start with a base consisting of a wide cylinder 38mm in radius and 6mm high, topped by a truncated cone that tapers from a 35mm radius at the bottom to a 16mm radius at the top over a height of 40mm. Above this cone, place a centra...
$fa = 1; $fs = 0.5; difference() { union() { cylinder(2, 15+20+3,15+20+3); cylinder(40, 15+20+1,15+1); cylinder(40+60+20,16,16); translate([0,0,40+60-10]) cylinder(10,16,26); } cylinder(40+60+20+1,15,15); cylinder(40,15+20,15); }
glb/cad_562f6e2a5a52.glb
Create a PS5 Type-C Port Protector consisting of a flat base and a raised rectangular collar. Start by constructing a base plate with a width of 18mm, a height of 18mm, and a thickness of 2mm, ensuring all four corners are rounded with a 3mm radius. Centered on top of this base, add a raised rectangular sleeve with a w...
difference() { union() { hull() { rcube(18,18,2,3); rcube(16,16,2.9,2); } hull() { rcube(15,9.6,10,4); rcube(14,8.6,11,3.5); rcube(13,7.6,11.5,3.5); } } translate([0,0,-0.1]) rcube(12.1,6.7,16,3); } module rcube(w,h,d,r) { hull($fn=r*32) { translate([w/2-r,-h/2...
glb/cad_d06f9dd5fa59.glb
Create a steel sheet holder by starting with a rectangular block measuring 18mm wide, 8mm deep, and 70mm high, centered on the origin. Remove two identical cylindrical holes from this block to create mounting points. Each hole must have a diameter of 6.9mm and a length of 24mm, oriented horizontally along the Y-axis. P...
difference() { cube(size=[18.0, 8.0, 70.0], center=true); translate(v=[0, -8.0, 16.0]) rotate(a=[90, 0, 0]) cylinder(h=24, d=6.9, $fn=54, center=true); translate(v=[0, -8.0, -16.0]) rotate(a=[90, 0, 0]) cylinder(h=24, d=6.9, $fn=54, center=true); }
glb/cad_d09f0edc60e8.glb
Create a clip-on bracket for 2020 aluminum extrusions. Start with a flat rectangular base plate 5mm thick. The plate should be 60mm wide and 60mm long, featuring a grid of 3x3 mounting holes, each 5.5mm in diameter, spaced 20mm apart. On two adjacent edges of the plate, add clip-on mechanisms designed to fit a 20mm pr...
profile_width = 20; channel_width = 5; lip_thickness = 1.8; tolerance = 0.1; snugness = 0.4; clip_thickness = 1.0; holes_x = 3; holes_y = 3; hole_pitch = 20; thickness = 5; hole_dia = 5.5; chamfer = 1.0; chamfer_bottom = false; clip_length = 10; clip_end_chamfer = 30; $fn = 24; width = profile_width + hole_pitch*(hole...
glb/cad_4249aa72603a.glb
Create a rectangular bracket plate for 2020 aluminum extrusions. The main body is a flat plate with a thickness of 5mm, measuring 40mm in width (two 20mm profile widths) and 100mm in length (five 20mm profile widths). At each intersection of a 20mm grid, create a cylindrical hole with a diameter of 5.5mm that passes ...
profile_width = 20; channel_width = 5; lip_thickness = 1.8; tolerance = 0.1; snugness = 0.4; clip_thickness = 1.0; holes_x = 2; holes_y = 5; hole_pitch = 20; thickness = 5; hole_dia = 5.5; chamfer = 1.0; chamfer_bottom = false; clip_length = 10; clip_end_chamfer = 30; $fn = 24; width = profile_width + hole_pitch*(hole...
glb/cad_57c640c2d13f.glb
Create a switch guard ring for a camera lens. Start by creating a main cylindrical band with an inner radius of 42.67mm (based on a 268mm circumference) and a thickness of 2mm. The band should have a total height of 32mm. Cut a gap into the band to allow for tension adjustment, and include a mounting hole for a #4 scr...
$fa = 1; $fs = 0.4; barrelCircumferenceMeasured = 268; barrelCircumference = barrelCircumferenceMeasured; switchArc = 92; displayArc = 42; switchDisplayOffsetArc = 6; ringSegmentWidth = 34; ringSegmentMeasuredDiameter = 84; bandWidth = 32; bandInnerRadius = barrelCircumference / (2 * PI); bandThickness = 2; nearSwit...
glb/cad_e28ac10eda39.glb
Create a switch guard ring for a lens barrel with a circumference of 279mm. The main body is a cylindrical band with an inner radius of approximately 44.4mm, a thickness of 2mm, and a height of 27mm. Cut a gap into the band to allow for tension adjustment, and include a mounting point for a #4 screw (3mm diameter) wi...
$fa = 1; $fs = 0.4; barrelCircumferenceMeasured = 279; barrelCircumference = barrelCircumferenceMeasured; switchArc = 90; displayArc = 46; switchDisplayOffsetArc = 6; ringSegmentWidth = 29; ringSegmentMeasuredDiameter = 88; bandWidth = 27; bandInnerRadius = barrelCircumference / (2 * PI); bandThickness = 2; nearSwit...
glb/cad_f884e4ed7696.glb
Create a switch guard ring for a lens barrel with an inner radius of approximately 44.56mm (based on a 280mm circumference). The main body is a cylindrical band with a height of 32mm and a wall thickness of 2mm. Cut a wide opening in the band to accommodate a mounting foot; this gap should span an arc length of 36mm. ...
$fa = 1; $fs = 0.4; barrelCircumferenceMeasured = 286; barrelCircumference = 280; echo("barrelCircumference",barrelCircumference); switchArc = 80; footOffsetArc = 12; footWidthArc = 36; bandWidth = 32; bandInnerRadius = barrelCircumference / (2 * PI); bandThickness = 2; nearSwitchGuardWidth = 3; farSwitchGuardWidth =...
glb/cad_a42db8c2bf05.glb
Create a rectangular cover for a light switch. Start with a solid block that is 34mm wide, 84mm long, and 8.5mm thick. From the bottom of this block, remove a central rectangular section to create a hollow cavity that is 34.2mm wide and 68mm long, with a remaining interior height of 6.5mm, leaving 8mm thick walls at bo...
switch_length=68; switch_width=34; standoff=6.5; thickness=2; foot_length=8; font="Chalkboard"; font_scale_factor=1.1; total_depth=standoff+thickness; total_length=switch_length+(foot_length*2); module text_cutout () { translate([switch_width/2, total_length/2, -total_depth/4]) { linear_extrude(height = 2*total_...
glb/cad_d326de0e6aec.glb
Create a Kailh Choc hotswap socket by starting with a solid cube measuring 17.8mm x 17.8mm with a total height of 4mm. From the center of this block, remove a square column measuring 13.65mm x 13.65mm that extends through the full 4mm height. To create the plate gap, remove a centered rectangular slice measuring 14.35m...
$fn=128; plate_z = 1.3; gap_x = 0.7; gap_z = 0.8; gap_o = 1.3; total_z = 4; key_hole_xy = 13.65; hsh_x = 3; hsh_z = 1.6; hsh_o = 2.4; module hotswap_hole() { cube([hsh_x, hsh_x, hsh_z], center = true); } difference() { translate([0,0,-total_z/2]) cube([17.8,17.8,total_z], center = true); ...
glb/cad_27690d460d3f.glb
Create a flashlight wall mount by starting with a main body that is a cylinder 60mm high with a 36mm diameter. Modify this body by merging it with a rectangular block measuring 10mm by 30mm by 60mm, positioned so the block extends from the side of the cylinder. Hollow out the center of this shape by removing a cylinder...
$fn=100; difference(){ hull(){ cylinder(60,d=36,$fn=200); translate([-20,-15,0])cube([10,30,60]); } translate([0,0,5.5])cylinder(60,d=30); translate([0,0,-3])cylinder(60,d=20); translate([0,-5,-1])cube([30,10,70]); translate([18,0,30])rotate([0,0,45])cube([10,10,70],center=true)...
glb/cad_0806dffc21c4.glb
Create a garden chair cap consisting of a hollow cylinder with an outer diameter of 17.5mm and a total height of 11.5mm. The cylinder should have a flat lid on top with a thickness of 1.0mm, leaving a central hollow bore with a diameter of 14.3mm that extends through the body. On the exterior of the cylinder, add two...
$fn=120; cap_height=11.5; cap_diameter=17.5; cap_radius=cap_diameter/2; slider_diameter=18.5; slider_height=cap_height-1; slider_weight=1.5; lid_thickness=1.0; module slider_ramp() { hull() { translate([0,0,slider_height]) cube([slider_weight,slider_diameter,0.001],center=true); trans...
glb/cad_b2bb3cadf198.glb
Create a moneybox consisting of a lower base and an upper lid. The lower base is a rounded cuboid measuring 60mm x 60mm with a height of 55mm and a corner rounding radius of 8mm. Hollow out the interior of this base to a wall thickness of 1.6mm, but leave four cylindrical pillars with a radius of 8mm at the interior co...
basex = 60; basey = 60; bxper = 50; billx = basex*((100-bxper)/100); byper = 60; billy = basey*((100-byper)/100); round = 8; theight = 85; lheight = 55; uheight = theight - lheight; cointhick = 3; coinwidth = 30; wall = 1.6; mag_dia = 6; mag_hi = 2.1; mag_tol = 0.25; include <BOSL2/std.scad> eps = 0.001;...
glb/cad_286713cbdcee.glb
Create a woodworking bench dog consisting of a cylindrical shaft and a wider cylindrical head. First, construct the shaft by creating a cylinder 30mm in length with a diameter of 19mm. To add a slight taper to the base of the shaft, ensure the bottom 28mm of the shaft has a diameter of 15mm, while the top 2mm maintains...
shaft_diameter = 19; shaft_length = 30; square_head = false; head_diameter = 32; head_length = 15; $fa = 6; $fs = 0.2; module shaft() { translate([0,0,-shaft_length + 0.01]) hull() { cylinder(shaft_length, d=shaft_diameter - 4); translate([0,0,2]) cylinder(shaft_length - 2, d=shaft_diamet...
glb/cad_7f079cc32c2b.glb
Create a mixing hopper consisting of a funnel and a removable mixer plug. To construct the funnel, create a conical section that transitions from a top outer diameter of 152.4mm to a bottom outer diameter of 63.5mm. Attached to the bottom of this cone, add a cylindrical stem with an outer diameter of 63.5mm and a hei...
plug_only = false; funnel_only = false; inch_to_mm = 25.4; funnel_diameter_in = 6; stem_diameter_in = 2.5; stem_length_in = 2; stem_slope_deg = 40; stem_notch_start_in = 0.9; stem_notch_width_in = 0.35; divider_handle_height_in = 0.75; wall_thickness_mm = 2; plug_scale = 1; funnel_diameter = funnel_diameter_in * inc...
glb/cad_202d18a46e85.glb
Create a tactile geometric set square. Start by constructing a right-angled triangle with a base of 75mm, a height of 150mm, and a thickness of 1.5mm. From this main body, remove a smaller right-angled triangle starting at coordinates (10, 10) with a base of 45mm and a height of 90mm to create a hollow triangular frame...
$base=75; $height=1.5; $width=10; $mark_width = 1; $mark_depth = 4; $mark_height = 1; $micromark_width = 0.5; $micromark_depth = 2; $micromark_height = 1; module triangle(base) { linear_extrude($height) polygon(points=[[0,0], [0,base*2], [base,0]]); } module shape() { difference() { triangle($base); translate([$width...
glb/cad_5b5896644569.glb
Create a tactile ruler for the blind by starting with a rectangular base measuring 11mm wide, 300mm long, and 2mm thick. On the top surface of this base, add a series of raised rectangular markings and cylindrical dots to indicate measurements. The markings should be 1mm wide and 1mm high. Place a marking every 5mm alo...
$depth=20; $mark_width = 1; $mark_depth = 4; $mark_height = 1; $dot_space=1; $dot_radius=1; $floor=2; $margin=1; module rulerSide(length, mark_width, mark_depth, mark_density, dots) { max=$mark_depth*2+$dot_space+$dot_radius*2; translate([-max/2, -length/2, 0]) { union() { for( i = [1:length-1]) { mod_p = ((i%10)==0)?...
glb/cad_e4848ec8f208.glb
Create a geometric protractor tool with a total height of 2mm. Start by forming a semi-cylinder with a radius of 50mm and a height of 2mm. Attach a rectangular base to this semi-cylinder that is 100mm long, 15mm wide, and 2mm thick, centered so it aligns with the flat diameter of the semi-cylinder. On the top surface o...
$fa=0.01; $fs=0.1; $r=50; $width=15; $height=2; $mark_width = 1; $mark_depth = 4; $mark_height = 1; $dot_radius=2; $dot_margin=1; $dot_height=1; module semiCylinder(r, h) { difference() { cylinder(r=r, h=h); translate([-r, -r, 0]) cube([r*2, r, h]); } } semiCylinder($r, $height); translate([-$r, -$width, 0]) cube([...
glb/cad_f48ebca1117d.glb
Create a lid for a Connect Four game board. Start by constructing a solid rectangular block with a total width of 192.5mm, a depth of 15mm, and a height of 7.5mm. From the center of this block, remove a smaller rectangular volume to create a hollow interior. This interior cutout should be 187.5mm wide, 10mm deep, and 5...
$fa=0.1;$fs=0.1; $columns=7; $rows=6; $pawnHeight=5; $pawnWidth=25; $floorHeight=7.5; $wallWidth=2.5; $wallOuter=10; $wallPartition=2.5; $wallMargin=0.75; $windowMargin=4; $standMargin=7.5; $standHeight=2.5; $roofHeight=5; module lid() { width=$pawnWidth*$columns+$wallPartition*($columns-1)+$wallOuter*2; depth =...
glb/cad_92a7fc047a95.glb
Create a Connect Four game board and playing pieces. The board is a rectangular frame with a total width of 202.5mm, a depth of 15mm, and a height of 137.5mm. It features a solid base 2.5mm thick and a roof 5mm thick. The interior consists of 7 vertical columns, each 25mm wide, separated by 2.5mm thick walls. The floor...
$fa=0.1;$fs=0.1; $columns=7; $rows=6; $pawnHeight=5; $pawnWidth=25; $floorHeight=7.5; $wallWidth=2.5; $wallOuter=10; $wallPartition=2.5; $wallMargin=0.75; $windowMargin=4; $standMargin=7.5; $standHeight=2.5; $roofHeight=5; module board() { width=$pawnWidth*$columns+$wallPartition*($columns-1)+$wallOuter*2; depth...
glb/cad_c272a001db14.glb
Create a set of 20 game pawns for a Connect Four game, consisting of two distinct geometric types. For the first type, create a square prism 25mm wide, 25mm deep, and 5mm high. Carve out a square-shaped hole from both the top and bottom faces, where each hole is 15mm wide, 15mm deep, and 2.5mm thick, centered on the Z-...
$fa=0.1;$fs=0.1; $pawnHeight=5; $pawnWidth=25; $markDepth=2.5; $markWidth=15; module cop1() { difference() { cube([$pawnWidth, $pawnWidth, $pawnHeight], center=true); translate([0, 0, -$pawnHeight/2+$markDepth/2]) cube([$markWidth, $markWidth, $markDepth], center=true); translate([0, 0, $pawnHeight/2-$markDepth/2])...
glb/cad_67f2bc4e9324.glb
Create a tactile Reversi game pawn by constructing a hollow cylinder with an outer diameter of 9.5mm and a total height of 10mm. To form the interior cavity, remove a conical section from the center of the cylinder. This internal void should be 10mm high, tapering from a diameter of 1mm at the bottom base to a diameter...
$fa = 0.1; $fs = 0.1; $fieldWidth=10; $pawnWidth=$fieldWidth*0.95; $pawnHeight=10; module pawn() { difference() { cylinder(d=$pawnWidth, h=$pawnHeight, center=true); cylinder(h=$pawnHeight/2, d1=1, d2=$pawnWidth-1.5); } } pawn();
glb/cad_22fccee70c3f.glb
Create a tactile tic tac toe board by starting with a flat square base measuring 61mm by 61mm with a thickness of 3mm. On top of this base, construct a 3x3 grid of square cells. Each cell is a hollow square ring with an outer dimension of 21mm by 21mm and a wall thickness of 3mm, resulting in an inner open square of 15...
$fieldWidth=15; $fieldHeight=3; $borderWidth=3; $borderHeight=2; $edgeWidth=2; $spaceWidth=10; module board(center=true) { x=(center)?(-($borderWidth*4+$fieldWidth*3+$edgeWidth*2)/2):(0); y=(center)?(-($borderWidth*4+$fieldWidth*3+$edgeWidth*2)/2):(0); z=(center)?(-($fieldHeight+$borderHeight)/2):(0); translate([x, y,...
glb/cad_0fd886d9241b.glb
Create a tactile tic tac toe game board by starting with a central cube that is 14.85mm wide, 14.85mm deep, and 7mm tall. From this main body, remove a cylindrical hole from the top center with a diameter of 12mm and a depth of 2mm. Additionally, remove two thin rectangular slots from the bottom of the cube to create a...
$fieldWidth=15; $fieldHeight=3; $borderWidth=3; $borderHeight=2; $edgeWidth=1; difference() { cube([$fieldWidth-0.15, $fieldWidth-0.15, $fieldHeight*2+1], center=true); translate([0, 0, $fieldHeight/2+0.5+1]) cylinder(d=$fieldWidth*0.8, h=$fieldHeight-1); translate([0, 0, -$fieldHeight/2-0.5-1]) { cube([$fieldWidth*0....
glb/cad_19521c06bdb4.glb
Create a small tactile Ludo game consisting of a game board and pawns. Construct the board as a flat octagonal base with a height of 7mm. The top surface features a grid of recessed circular holes, each 10mm in diameter and 5mm deep, separated by 5mm walls. Arrange these holes in a cross-shaped layout. At the four en...
$fieldDiameter=10; $fieldSeparator=5; $boardHeight=7; $fieldDepth=5; $homeHeight=3; $boardOffset=2.5; module home() { translate([0, $fieldDiameter/2+$fieldSeparator, 0]) { translate([-$fieldDiameter/2-$fieldSeparator/2, 0, 0]) cube([$fieldDiameter+$fieldSeparator, $fieldDiameter*4+$fieldSeparator*3, $homeHeight]); res...
glb/cad_5cc86dc5fa53.glb
Create a Braille Scrabble board consisting of a thin square base with a grid of recessed squares. The overall base is a square with a thickness of 1.4mm. The grid consists of 15 by 15 cells, where each cell is a square of 25mm with a 2mm border separating them. Each cell is recessed by 2.6mm, leaving a raised border ar...
$fieldWidth=25; $fieldHeight=1.4; $borderWidth=2; $borderHeight=2.6; $edgeWidth=1.5; $markDepth=0.6; module board() { translate([-($borderWidth*16+$fieldWidth*15+$edgeWidth*2)/2, ($borderWidth*16+$fieldWidth*15+$edgeWidth*2)/2, 0]) { difference() { union() { translate([0, -($borderWidth*16+$fieldWidth*15+$edgeWidth*2)...
glb/cad_3ebc3aa386d9.glb
Create a Cubarithms cube with a side length of 10mm. On each of the six faces, add tactile Braille-style dots. Each dot is formed by a sphere with a diameter of 1mm, with a 1mm diameter cylinder removed from its bottom to create a flat base. On the top face, center four dots in a 2x2 square grid, with each dot offset ...
$fa = 0.01; $fs = 0.1; $width=10; $dotHeight = 0.8; $dotBase = 2; $dotWidth= 3; module brailleDot() { scale([$dotBase, $dotBase, $dotHeight*2]) difference() { sphere(d=1); translate([0,0,-1]) cylinder(d=1,h=1); } } module braillePoints(p) { l=$dotWidth/2; for(i = [0: len(p)-1]) { if(p[i]==1) translate([l,l,0]) brai...
glb/cad_8ef3a9023ef9.glb
Create a Cubarithms grid board. Start with a flat rectangular base measuring 194mm by 194mm with a thickness of 0.8mm. Around the perimeter of this base, add a raised border wall that is 7.4mm high and 0.5mm wide. On the top surface of the base, construct a 16 by 16 grid of square cells. Each cell consists of a square...
$fieldWidth=11.4; $baseHeight=0.8; $fieldHeight=0.8; $borderWidth=1; $borderHeight=6.6; $edgeWidth=0.5; $width=16; $height=16; module board(center=true) { x=(center)?(-($borderWidth*($width)+$fieldWidth*$width+$edgeWidth*2)/2):(0); y=(center)?(-($borderWidth*($height)+$fieldWidth*$height+$edgeWidth*2)/2):(0); z=(cent...
glb/cad_2f5ac33fcb7f.glb
Create a set of Cubarithms learning cubes. Each cube is a 10mm cube. On each face of the cube, center a recessed circular area with a diameter of 7mm and a depth of 0.6mm. Within these recessed circles, add tactile Braille dots and mathematical operators. The Braille dots are created by taking a 1mm sphere and removin...
$fa = 0.01; $fs = 0.1; $width=10; $dot4Height = 0.8; $dot4Base = 2; $dot4Width= 3; $height=0.8; $dot6Height = 0.8; $dot6Base = 1.3; $dot6Width= 2.3; module braille4Dot() { scale([$dot4Base, $dot4Base, $dot4Height*2]) difference() { sphere(d=1); translate([0,0,-1]) cylinder(d=1,h=1); } } module braille4Points(p) { l...
glb/cad_a9247acf3769.glb
Create a Cubarithms cube with a total side length of 10mm. On the top face, center a circular indentation with a diameter of 7mm and a depth of 0.6mm. On the four side faces, add Braille dot patterns. Each dot is formed by a sphere with a diameter of 1mm, flattened on the bottom to a height of 1.6mm. The dots are arr...
$fa = 0.01; $fs = 0.1; $width=10; $dotHeight = 0.8; $dotBase = 1.3; $dotWidth= 2.3; module brailleDot() { scale([$dotBase, $dotBase, $dotHeight*2]) difference() { sphere(d=1); translate([0,0,-1]) cylinder(d=1,h=1); } } module braillePoints(p) { l=$dotWidth/2; r=$dotWidth; for(i = [0: len(p)-1]) { if(p[i]==1) transl...
glb/cad_4c9bcc601ece.glb
Create a turning aid for 16mm fluorescent tubes by constructing a hollow cylinder with an outer diameter of 19mm and a height of 15mm. Remove a central cylindrical core with a diameter of 16mm that extends slightly beyond the top and bottom faces. To create an opening for the tube, cut a rectangular slot through the wa...
$fn=180; difference(){ cylinder(d=19,h=15); translate([0,0,-1]) cylinder(d=16,h=17); translate([-8,0,-1]) cube([3,10,20]); } translate([-10,-2,0]) cube([2,30,15]); hull(){ translate([-5,8,0]) cube([2,20,15]); translate([-2,9,0]) cube([2,2,15]); }
glb/cad_b24284d20b56.glb
Create a board for chemical structural formulae consisting of a square base plate with a grid of recessed squares. The overall base plate is a square with a side length of 652.5mm and a thickness of 2.6mm. On the top surface of this plate, create a 15 by 15 grid of square holes. Each hole is 25mm wide and 25mm long, ...
$fieldWidth=25; $fieldHeight=2.6; $borderWidth=2; $borderHeight=2.4; $edgeWidth=1.5; module board() { translate([-($borderWidth*16+$fieldWidth*15+$edgeWidth*2)/2, ($borderWidth*16+$fieldWidth*15+$edgeWidth*2)/2, 0]) { union() { translate([0, -($borderWidth*16+$fieldWidth*15+$edgeWidth*2), 0]) cube([$borderWidth*16+$fi...
glb/cad_a647b469f8e7.glb
Create a parametric roll holder by constructing a hollow cylindrical sleeve with an outer diameter of 46.5mm and an inner diameter of 38.5mm, extending to a height of 22mm. Add a 2mm thick circular lip around the top edge of this sleeve to prevent a roll from sliding off. At the base of the assembly, center a flat circ...
tape_inner_diameter=42.5; tape_width = 22; support_thickness = 2; back_plate_thickness = 0; edge = 2; bolt_diameter = 4; $fn = 100; if ( back_plate_thickness != 0 ) { cylinder(back_plate_thickness, d=15.47, $fn=6); } translate([0, 0, back_plate_thickness]) { difference() { cylinder(support_thick...
glb/cad_215f660155ba.glb
Create a lampshade adapter clip by designing a geometric shape based on two cylinders connected by a hull. Start with two cylinders, each with a diameter of 8mm and a height of 6mm. Position the centers of these cylinders 2.67mm apart along the X-axis (at -2.67mm and 2.67mm respectively). Create a hull that encompasses...
newInnerDiam = 30; ikeaInner = 40; ikeaOuter = 61; ikeaThickness = 1.2; ikeaBarWidth = 6.5; ikeaBarHeight = 2.5; stepOuterDiam = 52; stepInnerDiam = 45; stepHeight = 1.75; ringHeight = 1.5; wall = 2; inset = 0.75; clipDiam = 8; clipThickness = 6; $fn = 50; module plate() { difference() { cylinder(d =...
glb/cad_f072c22ffde9.glb
Create a lampshade adapter for a pendant light fitting. Start with a main cylindrical body 60mm in diameter and 3.75mm high. At the base, create a central hole 30mm in diameter that extends through the first 2mm of the height. Above this base, create a recessed ring between 2mm and 3.75mm in height; this recess shoul...
newInnerDiam = 30; ikeaInner = 40; ikeaOuter = 60; ikeaThickness = 1.2; ikeaBarWidth = 6.5; ikeaBarHeight = 2.5; stepOuterDiam = 52; stepInnerDiam = 45; stepHeight = 1.75; ringHeight = 1.5; wall = 2; clips = 4; inset = 0.75; clipDiam = 8; clipZ = 7.5; $fn = 50; difference() { union() { cylinder(d = i...
glb/cad_dac5a46cc95f.glb
Create a knob for a socket cap-head screw by starting with a chamfered cylinder. For an M3 version, set the outer diameter to 12mm and the total height to 8.4mm (based on a 2.9mm screw head height plus a 2.5mm nut height and 3mm clearance). Subtract a central vertical hole with a diameter of 3.4mm to accommodate the ...
include <chamfer.scad> m3ThreadDiam = 3.4; m3HeadDiam = 6; m3HeadHeight = 2.9; m3NutDiam = 6.8; m3NutHeight = 2.5; m3NylocHeight = 4; m3KnobDiam = 12; m3IndentDiam = 2; m3IndentDepth = 0.25; m4ThreadDiam = 4.5; m4HeadDiam = 7.4; m4HeadHeight = 4; m4NutDiam = 8.5; m4NutHeight = 3.2; m4NylocHeight = 5; m4KnobDiam = 14;...
glb/cad_2ce8c106e17b.glb
Create a limit switch cover by starting with a rounded square block measuring 20.5mm x 20.5mm at the base, with a total height of 9.5mm and a corner radius of 2.4mm. Hollow out the center of this block to create a recessed interior, leaving a wall thickness of 1.5mm on all sides. At each of the four interior corners, ...
include <boxes.scad> side = 20.5; height = 8; wall = 1.5; holeSpacing = 15.5; swWidth = 13; swHeight = 5.8; socketWidth = 10.3; socketHeight = 6; pillarDiam = 4.8; holeDiam = 3.25; $fn = 100; module cover() { difference() { union() { difference() { tra...
glb/cad_7950f12ccb63.glb
Create a Sculpfun S6/S9 end-stop bracket. Start with a square base plate measuring 20.5mm by 20.5mm with a thickness of 5mm. In the center of this base, remove a rectangular cavity measuring 15.5mm by 7mm that penetrates the full thickness of the plate. Drill four 3mm diameter holes through the base plate, positioned s...
swSide = 20.5; swHoleSpacing = 15.5; swPinClear = 2; swHoleDiam = 3.25; swOffset = 4; mntThickness = 5; mntHoleDiam = 3; m5Diam = 5.3; m5TnutClear = 10; mntCavityX = 15.5; mntCavityY = 7; frameSide = 20; beltFixHeadClear = 3; lugWidth = 6; lugHeight = 2; $fn = 100; module mount() { union() { differenc...
glb/cad_a2702b9352a9.glb
Create a Sculpfun S6/S9 Y-axis end-stop bracket. Start with a main rectangular base measuring 47mm by 43mm with a thickness of 5mm. Add a central location lug that is 6mm wide and 2mm high, centered along the 43mm width and extending from the bottom. Carve a rectangular indent into the top surface measuring 18mm by 12...
swSide = 20.5; swHoleSpacing = 15.5; swHoleDiam = 3.3; swOffset = 10; mntX = 47; mntY = 43; mntIndentX = 18; mntIndentY = 12.75; mntThickness = 5; mntHoleDiam = 3; mntCavityX = 15.5; mntCavityY = 7; mntFixOffset = 16.5; mntFixSlot = 16.5; mntClearSlot = 10; lugWidth = 6; lugHeight = 2; m5Diam = 5.4; m5SlotOffsetX = 10;...
glb/cad_24cdef537bb4.glb
Create an air assist nozzle for a Sculpfun S9 laser. Start with a main cylindrical body 32mm in diameter and 19mm high, featuring a wall thickness of 1mm. Inside this body, create a central core 21mm in diameter and 19mm high. Above the core, add a conical nozzle section that transitions from the 21mm core diameter dow...
bodyDiam = 32; bodyWall = 1; bodyHeight = 19; coreDiam = 21; ringOuterDiam = 16; ringInnerDiam = 11; ringGrooveDepth = 2; cavityDiam = 8; cavityOffsetZ = 6; boreDiam = 3.5; nozzleDiam = 6; nozzleHeight = 17; airPipeDiam = 4.3; ventQty = 8; direction = "left"; ventOuterDiam = (bodyDiam - coreDiam) + bodyWall; ventWall...
glb/cad_a06004ff052f.glb
Create a Sculpfun S9 air assist nozzle. Start with a main cylindrical body 32mm in diameter and 19mm high, featuring a wall thickness of 1mm. Inside this body, create a central core cylinder with a 21mm diameter and 19mm height. At the top of the core, add a conical nozzle section that transitions from the 21mm core di...
bodyDiam = 32; bodyWall = 1; bodyHeight = 19; coreDiam = 21; ringOuterDiam = 16; ringInnerDiam = 11; ringGrooveDepth = 2; cavityDiam = 8; cavityOffsetZ = 6; boreDiam = 3.5; nozzleDiam = 6; nozzleHeight = 17; airPipeDiam = 4.3; ventQty = 8; $fn = 100; module body() { difference() { union() { ...
glb/cad_f48fa42e433e.glb
Create a laser unit fixing screw head consisting of a cylindrical grip and a central recessed cavity. Start by creating a main cylindrical body with a diameter of 18mm and a height of 7mm. To provide grip, remove six small cylindrical indents from the outer perimeter of this body; each indent should have a diameter of ...
include <chamfer.scad> nutDiam = 8.2; nutHeight = 6; knobDiam = 18; knobHeight = 7; stemDiam = 12; stemHeight = 3; indents = 6; indentDiam = 5; indentDepth = 0.25; $fn = 50; difference() { union() { difference() { chamferCylinder(knobHeight, knobDiam/2); for (i = [0...
glb/cad_b1b862df2b94.glb
Create a hollow rectangular sleeve for a Safe Solar Viewer. The outer dimensions of the sleeve should be a square prism measuring 26.25mm by 26.25mm with a total length of 75mm. The interior must be hollowed out by a square hole measuring 20.25mm by 20.25mm, leaving a wall thickness of 3mm on all four sides. The edges ...
include <chamfer.scad> length = 75; side = 20.25; wall = 3; difference() { chamferCube(side + 2*wall, side + 2*wall, length); translate( [wall, wall, -0.1] ) cube( [side, side, length + 0.2] ); }
glb/cad_9ea4c0141372.glb
Create a Safe Solar Viewer objective lens holder. Start with a square base plate measuring 60mm x 60mm with a thickness of 10mm. In the center of the plate, create a vertical cylindrical hole with a diameter of 50.4mm that passes completely through the block. Around this central hole, add a cylindrical support ring w...
include <dimensions.scad> holderType = "objective"; holder(holderType); $fn = 100; module holder(type) { difference() { union() { if (type == "target") cube( [holderSide, holderSide, holderThickness] ); else { cube( [holderSid...
glb/cad_8187bad62733.glb
Create a locking screw support block for a Safe Solar Viewer. Start with a composite base consisting of a rectangular prism measuring 3mm by 7.5mm by 10mm, with a cylinder of 15mm diameter and 3mm height attached to its side, centered at a height of 10mm. Subtract a horizontal hole with a 3mm diameter that passes thr...
include <dimensions.scad> testType = "screw"; testPiece(testType); $fn = 100; module testPiece(part) { if(part == "objective") { difference() { cylinder(d = objectiveDiam + 6, h = holderThickness); translate( [0, 0, -0.1] ) cylinder(d = objectiveDiam, ...
glb/cad_2562cc5e2c10.glb
Create a hollow square sleeve with an outer dimension of 26.25mm by 26.25mm and a total height of 15mm. The walls of the sleeve should be 3mm thick, leaving a central square void of 20.25mm by 20.25mm that passes completely through the height of the object. To finish the shape, apply a chamfer to all exterior edges of ...
include <chamfer.scad> length = 15; side = 20.25; wall = 3; difference() { chamferCube(side + 2*wall, side + 2*wall, length); translate( [wall, wall,wall] ) cube( [side, side, length + 0.2] ); }
glb/cad_2efa4111ee4f.glb
Create a Duet PanelDue 7i enclosure consisting of two symmetrical halves that join to form a rounded rectangular box. The overall external dimensions are 204mm in width (X), 116mm in depth (Y), and 38mm in height (Z), with outer corners rounded to a 2mm radius. Each half is a shell with 3mm thick walls. The interior c...
include <boxes.scad> pcbX = 192; pcbY = 104; pcbZ = 16; pcbClearance = 3; mntHoleX = 174; mntHoleY = 98; M3Diam = 3.7; mntOffsetX = 15; bezelX = 156; bezelY = 88; bezelOffsetX = 11; bezelOffsetY = 5.5; ctrlOffsetX = 7.5; eraseOffsetY = 17; spkrOffsetY = 43.5; resetOffsetY = 79; ctrlHoleDiam = 3; connectorOffsetY = 90;...
glb/cad_21a9dc76d83f.glb
Create a Duet PanelDue 7i enclosure consisting of two symmetrical halves. Each half starts as a rounded rectangular panel 360mm long, 100mm high, and 3mm thick. For each half, create a central rectangular cutout 205mm wide, 100mm high, and 116mm deep to accommodate the screen. The side walls of the enclosure are 19mm...
include <boxes.scad> panelLength = 360; panelHeight = 100; enclosureWidth = 205; enclosureHeight = 116; enclosureDepth = 19; enclosureHoleSpacing = 70; enclosureHoleOffset = 6; screenOffset = 6; mountHoleRadius = 2.1; m3Diam = 3.6; panelHoleOffset = 10; panelThickness = 3; aliPlateHeight = 56; aliPlateThickness = 1.5;...
glb/cad_d01f9cd12251.glb
Create a panel enclosure for an Anycubic Kossel Linear Plus. Start with a base plate measuring 64mm by 159mm with a thickness of 2.5mm. Add two side walls, each 2.5mm thick and 56mm high, running the length of the 159mm sides. Construct a back plate 3mm thick and 56mm high that connects the side walls. Cut a rectangul...
panelWidth = 159; panelBase = 64; panelTop = 16; panelFront = 10; panelBack = 5; panelAngle = 43; enclosureWall = 2.5; mountHeight = 56; mountHoleWidth = 165; mountHoleDownset = 8; mountHoleSpacing = 40; mountHoleDiam = 4.5; mountLipWidth = 10; mountLipThickness = 3; mountTrimX = 1; mountTrimZ = 18; slotWidth = 5; slot...
glb/cad_29d367586222.glb
Create a binocular lens cover by constructing a hollowed-out cylinder with a rounded base. Start with a main outer cylinder that has a diameter of 36.4mm and a height of 15mm. Apply a 1mm radius fillet to the bottom edge of this cylinder to soften the base. To create the interior cavity, remove a central cylinder with ...
diameter = 34; height = 15; wall = 1.2; radius = 1; $fn = 100; difference() { minkowski() { cylinder(d = diameter + 2*wall, h = height); sphere(radius); } translate( [0, 0, height] ) cylinder(d = diameter + 2*wall + 2*radius, h = 2*radius); translate( [0, 0, wall] ) ...
glb/cad_45719f7bfcf0.glb
Create a PCB holder alternative arm consisting of two identical flat components. For each component, create a rectangular bar 87mm long, 10mm wide, and 4mm thick with rounded ends. Center a 4.3mm diameter hole through the thickness of the bar at both the start and the end. For the second arm, add a sponge pad attachm...
armCenters = 87; armWidth = 10; armThickness = 4; pivotHoleDiam = 4.3; spongePadDiam = 25; $fn = 50; difference() { hull() { cylinder(d = armWidth, h = armThickness); translate( [armCenters, 0, 0] ) cylinder(d = armWidth, h = armThickness); } translate( [0, 0, -armThicknes...
glb/cad_94cb920240d5.glb
Create a power distribution box designed for a 2020 extrusion profile. Start with a base mounting plate that is 70mm long, 20mm wide, and 3mm thick, with 5mm rounded corners. Centered on this plate, add a main rectangular body that is 50mm long, 20mm wide, and 20mm high. Hollow out the center of the main body to creat...
include <chamfer.scad> bodyX = 50; bodyY = 20; bodyZ = 20; mountX = 70; mountZ = 3; mountRadius = 5; bodyWall = 2; m3ScrewDiam = 3.4; m3TapDiam = 2.9; cableHoleDiam = 4; postHeight = bodyWall*2; postDiam = 2*m3ScrewDiam; pins = 5; postSpacing = (pins + 8) * 2.54; $fn = 50; module curvedPlate(plateX, plateY, plateZ, ...
glb/cad_97ca49a3b397.glb
Create a Top Tensioner slider for Anycubic Kossel Linear Plus belts. Start by creating a solid cylinder with a diameter of 12mm and a height of 8mm. From the center of this cylinder, remove a vertical hole with a diameter of 3.4mm that runs through the entire height of the body. At the top of the cylinder, create a wid...
bodyDiam = 12; bodyZ = 8; m3ScrewDiam = 3.4; m3InsertLength = 4.1; m3InsertHeadThickness = 0.75; m3InsertHeadDiam = 5.2; m3InsertHoleDiam = 4.4; $fn = 100; difference() { cylinder(d = bodyDiam, h = bodyZ); cylinder(d = m3ScrewDiam, h = bodyZ); translate( [0, 0, bodyZ - m3InsertLength + 0.1] ) rot...
glb/cad_b317ec831f8c.glb
Create a Top Tensioner slider for Anycubic Kossel Linear Plus belts. Start with a main rectangular body measuring 29mm in width, 24mm in depth, and 18.5mm in height, applying a 0.5mm chamfer to the edges. Add two cylindrical lugs with a 10mm diameter and a height of 18.5mm, centered on the depth and positioned at the o...
include <chamfer.scad> bodyX = 29; bodyY = 24; bodyZ = 18.5; innerX = 24; lugDiam = 10; lugHoleSpacing = 32; supportDiam1 = 10; supportHeight = 3; bearingThickness = 8.52; m3ScrewDiam = 3.4; m3NutDiam = 6.75; m3NylocThickness = 4.25; m3HeadDiam = 5.75; m3HeadDepth = 4.2; m3InsertLength = 4.1; m3InsertHeadThickness = 0...
glb/cad_c71aee1dd094.glb
Create a NEMA17 Cable Support consisting of a main rectangular band and an attached cable arm. Start with a base square band with an outer dimension of 47mm by 47mm, a thickness of 10mm, and a wall thickness of 3mm. The interior of this band should be a hollowed-out square of 43mm by 43mm with corner radii of 4mm. On ...
motorSide = 43; bandWidth = 10; bandThickness = 3; cornerRadius = 4; connectorWidth = 16.5; connectorHeight = 6; fixingBlockSide = 8; fixingBlockSlot = 2; zipTieWidth = 3.2; holeDiam = 3.4; cableWidth = 6.5; armLength = 25; armAngle = 90; $fn = 25; module roundCornerCube(length, width, height, radius) { newLength...
glb/cad_d41b1ed4b0fd.glb
Create an Anycubic Kossel Linear Plus endcap. Start by constructing a solid cylinder with a diameter of 30mm and a height of 15mm. Apply a 5mm radius fillet to all edges of the cylinder to create a smooth, rounded profile. From the bottom of this shape, remove a larger cylindrical section to create a hollow cavity. Thi...
diameter = 30; edgeRadius = 5; height = 15; $fn = 100; difference() { minkowski() { cylinder(d = diameter - edgeRadius*2, h = height*2 - edgeRadius*2, center = true); sphere(edgeRadius); } #translate( [0, 0, -(height - edgeRadius*1.5)] ) cylinder(d = diameter + edgeRadius*2, h...
glb/cad_338593b89587.glb
Create an Anycubic Kossel Linear Plus endcap consisting of a central cylindrical holder and two mounting wings. Start with a central cylinder that has a radius of 19.5mm and a height of 14mm. Inside this cylinder, create a concentric vertical hole with a radius of 15.5mm and a depth of 10mm to serve as a recess for the...
endRadius = 10; holeSpacing = 59.2; stemThickness = 4; holeRadius = 2.2; holeSlotLength = 4; headRadius = 3.9; headDepth = 2; footRadius = 15.5; footRecessDepth = 10; $fn = 100; difference() { union() { hull() { translate( [holeSpacing/2, 0, 0] ) cylinder(r1 = endR...
glb/cad_4da0cc74f5ef.glb
Create a stand for glasses by constructing a tapered hollow body. Start with a solid base 40mm wide, 50mm long, and 40mm high. The outer shape is a hull that tapers from the 40mm wide base up to a top width of 15mm at the 40mm height mark. Cap the top with a horizontal cylinder 15.72mm in diameter and 50mm long, center...
baseWidth = 40; baseLength = 50; baseHeight = 40; topWidth = 15; notchHeight = 5; notchLength = 10; $fn = 50; difference() { union() { hull() { cube( [baseWidth, baseLength, 0.1], center = true); translate( [0, 0, baseHeight] ) cube( [topWidth+0, baseLength, 0.1], cen...
glb/cad_51b2f22cfa30.glb
Create a coffee tamp stand by constructing a thick-walled cylindrical cup with an outer diameter of 84.5mm, a total height of 62mm, and a wall thickness of 12mm. The bottom edge and the top rim should be rounded with a 5mm radius. Hollow out the center to create an inner diameter of 60.5mm and an inner depth of 50mm....
keyHeight = 27; keyWidth = 20; tampHeight = 3; tampDiameter = 52; thickness = 12; innerHeight = 50; innerDiameter = 60.5; lugHeight = 5; lugWidth = 18; outerDiameter = innerDiameter + thickness*2; outerHeight = innerHeight + thickness; rounding = 5; $fn = 100; pad = 0.1; difference() { tube(outerHeight, ou...
glb/cad_edcb4fdeea86.glb
Create a desk cable organiser consisting of a base body and a lid. First, construct the main body as a rounded rectangular block with a total height of 15mm, a width of 25mm, and a length determined by the number of cable slots (for 4 slots, the length is 75mm). The body should have a corner radius of 3mm. Create t...
include <radiusedCylinder.scad> section = "BOTH"; slotQty = 4; slotbodyWidth = 6; bodyWidth = 25; bodyHeight = 10; lidHeight = 5; bodyRadius = 3; m3HoleDiam = 3.4; m3NutDiam = 6.5; m3NutThickness = 3; $fn = 100; module body() { height = bodyHeight + lidHeight; union() { translate( [0, 0, bodyRad...
glb/cad_e0157627c46b.glb
Create a switch guard for a control box. Start with a main rectangular body that has rounded corners with a radius of 2mm. The overall dimensions are determined by the slide switch requirements: the width is the sum of the switch hole height (6mm) and three wall thicknesses of 3mm each. The length is the sum of the swi...
include <shapes.scad> include <slide_switch.scad> swHoleX = 13; swHoleY = 6; swHoleCentres = 28; swHeight = 7; m3ClearanceDiam = 3.4; bodyWallThickness = 3; guardWidth = swHoleY + bodyWallThickness*3; guardRadius = 2; $fn = 50; module curvedCube(X, Y, Z, R) { translate( [R, R, 0] ) minkowski() {...
glb/cad_60c69e28f365.glb
Create a switch guard for an equatorial star tracker control box. Start by creating a solid rectangular block with a width of 24mm (18mm plus 3mm thickness on each side), a depth of 18mm (12mm plus 3mm thickness on each side), and a height of 6mm. From this block, remove a central rectangular volume to create a cutou...
switchX = 18; switchY = 12; switchZ = 6; thickness = 3; $fn = 100; intersection() { difference() { translate( [0, -(switchY + thickness)/2, 0] ) cube( [switchX + thickness*2, switchY*2 + thickness*2, switchZ] ); translate( [thickness, thickness, 0] ) cube( [switchX, switch...
glb/cad_751dd64d4744.glb
Create a picatinny location peg consisting of a rounded disc-like grip. Start by creating a central cylinder with a diameter of 20mm and a height of 4mm, then apply a Minkowski sum with a 4mm sphere to soften the edges into a smooth, rounded puck shape. Subtract three holes from this geometry: first, create a 4.2mm di...
gripDiam = 20; gripThickness = 4; pegHoleDiam = 4.2; knotHoleDiam = 4; stringHoleDiam = 2.5; $fn = 50; difference() { minkowski() { cylinder(d = gripDiam, h = gripThickness, center = true); sphere(d = gripThickness, center = true); } #translate( [0, -gripThickness/2, 0] ) rot...
glb/cad_dd5922090659.glb