Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a parametric battery tray as a rectangular block with rounded vertical edges. The main body should have a total height of 18mm, a width of 83mm, and a depth of 54mm. The walls and the base floor should be 2mm thick. Within this block, create a grid of 15 cylindrical holes arranged in 5 rows and 3 columns. Each...
$batteryWidth = 14.5; $rows = 5; $columns = 3; $height = 20; $spacing = 2; $wallThickness = 2; $fn = 180; difference() { minkowski() { cube([ ($wallThickness * 2) + ($batteryWidth * $rows) + ($spacing * ($rows - 1)), ($wallThickness * 2) + ($batteryWidth * $columns) + ($spaci...
glb/cad_976c35dcb263.glb
Create a zip tie mount for an Amcrest ASH21 camera. Start by creating a base plate that is the intersection of a cylinder with a 40mm diameter and a rectangular block measuring 40mm by 16mm, both with a thickness of 1.4mm. Centered on this base, add a rectangular block that is 32mm long, 16mm wide, and 3.5mm thick. O...
Amcrest_Base_Diameter = 40; Amcrest_Mount_Length = 32; Amcrest_Mount_Width = 16; Amcrest_Mount_Thickness = 3.5; Amcrest_Mount_Clip_Thickness = 1.4; Amcrest_Mount_Clip_Lock_Diameter = 2; Amcrest_Mount_Clip_Lock_Height = 0.5; Amcrest_Mount_Clip_Lock_Offset_From_Center = 6; Amcrest_Mount_Strap_Width = 5; Amcrest_Mount_Str...
glb/cad_dcce7a0900dc.glb
Create a panel cutout template for a double flat round switch. Start with a square base measuring 35mm by 35mm with a thickness of 5mm. Centered within this base, create a circular cutout with a diameter of 22.2mm. To accommodate the flat edges of the switches, modify the circular cutout by removing two opposite segmen...
template_height = 5; diameter = 22.2; flat = 20.6; template_size = 35; c = flat / sqrt( 2); h = c - flat / 2; $fn = 100; module segment() { difference() { cylinder( h = template_height , r = diameter /2 ) ; translate( [ - diameter / 2 , - h , 0] ) cube( [ diameter , diamete...
glb/cad_082ba6f3fab6.glb
Create a rectangular storage box with an open top. The outer dimensions of the box are 46mm in length, 100mm in width, and 155mm in height, with a uniform wall thickness of 2.5mm. The box features a decorative hexagonal pattern of holes cut through several of its faces. Each hexagonal hole has a radius of 3.5mm. These...
inside_height = 150; inside_width = 95; inside_length = 41; wall_thickness = 2.5; pattern_radius = 3.5; pattern_min_dist = 4.5; pattern_on_front = 1; pattern_on_back = 0; pattern_on_bottom = 1; pattern_on_sideA = 1; pattern_on_sideB = 1; do_pattern_circle = 0; do_pattern_rectangle = 0; do_pattern_cross...
glb/cad_1096f7174973.glb
Create a Jabra BIZ 2300 Controller Holder designed as a hollowed-out sleeve. Start with a main body that is 94.4mm wide, 15.1mm deep, and 26.5mm high. The outer shell should have rounded corners with a radius of 4mm and a wall thickness of 1.3mm. Carve out the interior to create a slot for the controller, leaving a fr...
drawerThick=1.5; drawerDepth=5.5; ControllerHeight=26.5; ControllerDepth=12.5; ControllerWidth=90.5; CornerRadius=4; CutoutRadius=10; CutoutRadiusSide=5; FrontHolderWidth=5; CableCutoutHeight=8; thickness=1.3; HangerRadius=3; $fs=0.5; $fa=2; difference(){ union(){ hull(){ for(xx=[CornerRadius-t...
glb/cad_c19f3158d29a.glb
Create a Jabra BIZ 2300 Controller Holder. Start by forming a main body using a hull of two cylinders with a 4mm radius, positioned at the corners of a rectangle measuring 92.5mm in width and 14.5mm in depth, with a total height of 26.5mm. The walls and base should have a uniform thickness of 1mm. Hollow out the cent...
drawerThick=1.5; drawerDepth=5.5; ControllerHeight=26.5; ControllerDepth=12.5; ControllerWidth=90.5; CornerRadius=4; FrontHolderWidth=5; CableCutoutHeight=8; thickness=1; $fs=0.5; $fa=2; difference(){ hull(){ for(xx=[CornerRadius,ControllerWidth+2*thickness -CornerRadius])translate([xx,0,Corner...
glb/cad_cdae3af5a0b5.glb
Create a USB Memory Stick Holder by starting with a solid rectangular block with rounded corners of radius 4mm. The overall dimensions of the block are 30mm in width, 15mm in height, and a length determined by the number of USB slots; for 8 slots, the length is 83.6mm. The block should have a rounded bottom edge. Cut ...
Text="John Doe"; Font_Size=10; Font_Style="Comic Sans MS:style=Bold"; USB_sticks =8; USB_width = 4.8; USB_length = 12.4; USB_depth = 13; USB_gap = 6.2; USB_Holder_Height = 15; USB_Holder_Width = 30; USB_Holder_Length = USB_sticks*(USB_width + USB_gap)+USB_gap; radius = 4; rez = 64; difference() ...
glb/cad_53be7997b001.glb
Create a microphone gooseneck port by constructing a composite base and subtracting a threaded internal cavity. Start with a main body formed by the convex hull of two cylinders: one with a radius of 11mm and a height of 15mm, and another with a radius of 6mm and a height of 20mm, positioned 20mm apart along the x-axis...
include <threads.scad> PI=3.141592; $fn=50; difference() { minkowski() { hull(){ translate([-20,0,0]) cylinder(h=15, r=11); cylinder(h=20, r=6); } sphere(2); } translate([-20,0,-2]){ cylinder(h=15, r=10.2);} ...
glb/cad_6524197b1eea.glb
Create a customizable lens cover by starting with a main outer cylinder that has a diameter of 105mm and a height of 20mm. Hollow out the center of this cylinder by removing a conical volume that starts at a diameter of 100.5mm at the base and widens to 102mm at the top, leaving a thin wall and a base thickness of 2mm....
$fn=100; dL=102; dM=dL+3; dm=dL-1.5; difference(){ cylinder(h=20,d=dM); translate([0,0,2])cylinder(h=20,d1=dm,d2=dL); translate([-40,-5,0.55]) linear_extrude(height = 2) text("Tappo", 20, $fn = 50); } translate([0,0,19.2]){ rotate_extrude(convexity = 10, $fn = 100) translate([dL/2+0.5, 0, 0]...
glb/cad_2e3708c9600e.glb
Create a Jack adapter clip by constructing a main vertical cylinder with a diameter of 10mm and a height of 12mm. Inside this main body, remove a smaller concentric cylinder with a diameter of 6.305mm and a height of 12mm to create a hollow sleeve. To allow for the insertion and removal of the adapter, cut a wide verti...
$fn=50; difference(){ union(){ cylinder(10,5,5); translate([6,0,0]) cylinder(10,3,3); } translate([0,0,-1.0]){ difference(){ cylinder(12,3.1525,3.1525); translate([0,0,3.0])rotate_extrude(convexity = 10) translate([3.1525, 0, 0]) circle(r = 0.5); } ...
glb/cad_f11d17492e37.glb
Create a Parametric Clickable Stamps Holder by starting with a solid rectangular block that has a total height of 20mm, a total width of 13.45mm, and a total length of 23.75mm. Hollow out the center of this block to create a container with a wall thickness of 1.2mm on all sides. The interior cavity should be 10.75mm ...
EnableDebug = true; stampCount = 3; stampWidth = 7; stampHeight = 10.75; stampClickableDepth = 2.3; holderTotalHeight = 20; wallThickness = 1.2; markingWindowBorder = 1.0; stampTolerance = 0.35; totalLength = stampCount * stampWidth + stampTolerance + 2 * wallThickness + stampClickableDepth; totalWidth = stamp...
glb/cad_7417a8bd6e6f.glb
Create a cotton pad dispenser consisting of a main body and a separate lid. For the body, create a cylinder with an outer diameter of 64mm and a total height of 210mm. The walls should be 3mm thick. Hollow out the center with a cylinder of 58mm diameter, leaving a 2mm thick floor at the bottom. On one side of the cyl...
dia=58; pH=4; h=210; fl=2; wa=3; fRW=20; wT=6; wW=dia/2; s=0; sDist=20; sDia=4; sHDia=8; sHH=4; lH=fl; lFH=5; lTol=0.2; body=true; lid=true; r=dia/2; oDia=dia+2*wa; oR=oDia/2; sR=sDia/2; sHR=sHDia/2; scr=s>1?s:2; lOff=oDia+20; tP1 = pointCircleTangents([-wW/2,oR+wT-wa,0],[0,0,0],oR); p1=tP1[0].y>tP1[1].y?tP1[1]:t...
glb/cad_2e7e74332931.glb
Create a rectangular panel cutout template by starting with a square base plate measuring 100mm by 100mm with a thickness of 5mm. In the center of this plate, create a rectangular hole that is 58.5mm wide and 28.5mm high, passing completely through the thickness of the plate. To assist with alignment, add four small no...
template_size = 100; template_thickness = 5; cutout_width = 58.5; cutout_height = 28.5; difference() { cube( [ template_size , template_size , template_thickness ] , center = true ); translate( [ template_size / 2 - 1 , 0 , 0 ] ) cube( [ 2 , 1 , template_thickness ] , center = true); translate( [ 0 , t...
glb/cad_f2e09660ecf0.glb
Create a snail collar consisting of a thin-walled hollow cylinder. The cylinder must have an external diameter of 200mm and a total height of 100mm. The walls of the cylinder should be 1.2mm thick. At the base of the cylinder, create a flared rim that extends outwards. This rim is formed by a conical section with a h...
ft="circle"; dm=200; kh=30; st=1.2; gh=100; winkel=40; segmente=4; zaunl=200; vwinkel=5; clh=50; $fn=60; swinkel=360-360/segmente; hypo=kh/sin(90-winkel); versatz = sqrt(hypo*hypo-kh*kh); faktor = versatz / kh; module vollkreis() { difference() { cylinder(d1=dm,d2=dm+2*versatz,h=kh); cylinder(d1=dm-2*st,d2=...
glb/cad_0d3d46bf81f4.glb
Create a stepper motor housing and rotor assembly. Start with a main body block measuring 42mm in width and height, with a height of 40mm. The body should have a square footprint with rounded corners of 5.5mm radius. At the center of the body, create a cylindrical void with a diameter of 31mm and a height of 30mm to ...
$fn=30; ew=0.4; tight_tol=0.15; loose_tol=0.2; screw_d=3; screw_head=5; bearing_d=18; bearing_t=5; shaft_d=5; shaft_l=20; plat_t=10; ring_t=2; ring_d=22; mount=31; body_w=42; body_h=40; core_gap=0.4; core_attach=1; rotor_gap=0.2; m_steps=200; core_end=2; coil_t=1.5; plate_t=10; plug_w=15; plug_h=5; plug_d=15; mag_t=1; ...
glb/cad_8d7bcef0dee3.glb
Create a puzzle object based on a grid unit of 8.4mm. Start with a solid rectangular block measuring 16.8mm in width, 25.2mm in height, and 25.2mm in depth. From this main volume, remove several rectangular sections to create a complex, interlocking geometric shape. First, remove a central block of 8.4mm by 8.4mm by 25...
sze=8.4; ex=0.001; rotate([0,-90,0])difference() { cube([2*sze,3*sze,3*sze]); translate([-ex,sze,-ex])cube([sze+ex,sze,3*sze+ex*2]); translate([-ex,-ex,-ex])cube([sze+ex,2*sze+ex,sze+ex]); translate([-ex,sze,2*sze])cube([sze+ex,2*sze+ex,sze+ex]); translate([sze,-ex,2*sze])cube([sze+ex,sze+ex*2,sze+e...
glb/cad_f662c2b2f5ed.glb
Create a Dual Lens Cap Holder designed to secure two lens caps to a camera strap. The main body is a thick, hollowed-out cylinder with an outer diameter of 67mm and a total height of 11mm. The interior features two stacked cylindrical cavities to hold the lens caps: the first cavity has a diameter of 42mm and a depth...
strapT=2; strapTs=0.8; strapW=20; tol=0.1; ID1=42; t1=3; ID2=58; t2=3; T=3; outerflange=2; smallerflange=1; fz=0.01; $fn=90; OD = max(ID1,ID2)+T+2*outerflange; H=t1+t2+strapT; internalID = min(ID1,ID2)-3*strapT; smallID=min(ID1,ID2); lowerID = ID1 == smallID ? ID1 : ID2; upperID = ID1 == smallID ? ID2 : ID1; low...
glb/cad_0a3b6c77aee9.glb
Create a Dual Lens Cap Holder designed to secure two lens caps and a camera strap. The overall outer diameter of the device is 77mm. Construct the main body as a thick ring with a total height of 8mm. Within this body, create two concentric cylindrical voids to hold the lens caps: the first void has a diameter of 67mm...
ID1=67; t1=3; ID2=77; t2=3; strapT=2; strapTs=0.8; strapW=20; angle=30; T=3; flange=2; OD = max(ID1,ID2)+T+2*flange; H=t1+t2+strapT; tol=0.1; fz=0.01; $fn=90; internalID = min(ID1,ID2)-3*strapT; module flange_cylinder(r,f,h) { pts = [[0,-h/2],[r-f,-h/2],[r,f-h/2], [r,h/2-f],[r-f,h/2],[0,h/2]]; tr...
glb/cad_670f7e5e3895.glb
Create a 90-degree heatbed cable cover consisting of a main housing and a removable clip. For the main cover, create a rectangular base block 42mm wide, 29mm deep, and 9mm high. Hollow out the center to create a U-shaped channel that is 30mm wide and 9mm high, with wall thicknesses of 3mm. On the side wall, create a ...
bracket_width = 30; side_width = 11; depth = 29; height = 9; wall_thickness = 3; width = bracket_width + wall_thickness * 2 + side_width; clip_width = 23; clip_depth = 14; clip_height = 6; module screw_hole(hole_h=2) { difference() { union() { translate([0,0,0.2]) cylinder(h = 4, r1=3.15, r...
glb/cad_b8b578b1d023.glb
Create a circular cover plate for a fire alarm sounder with a diameter of 100mm and a thickness of 3mm. Through the center of this disc, create two aligned holes to accommodate screws. Each hole should be 6mm in diameter and pass completely through the plate. Position these two holes exactly 50mm apart from each other,...
dia = 100; thi = 3; screw = 6; $fn=100; difference() { hull() { translate([0, 0, 0]) linear_extrude(0.1) circle(d=dia); translate([0, 0, thi]) linear_extrude(0.1) circle(d=dia - thi); } translate([25, 0, 0]) cylinder(thi*2, d1=screw*0.7, d2=screw); tra...
glb/cad_bc51fafdb8af.glb
Create a print-in-place upright hinge consisting of a single segment with a total height of 14mm. The hinge is composed of two interlocking parts: a central pin assembly and a surrounding knuckle. The pin assembly is centered on the Z-axis and consists of a series of stacked conical and cylindrical sections. Create a ...
shoulder = 0.2; h_gap=0.25; layer_height=0.15; v_gap_layers=1; v_gap=layer_height*v_gap_layers; height=14; ds=3; dl=4; da=6; start_angle=0; opening_angle=90; lever=20; segments=1; t1=""; t2=""; $fs=0.1; $fa=1; eps=0.001; cut = false; difference(){ hinge(ds=ds,dl=dl,da=da,segments=segments,h=height,shoulder=should...
glb/cad_5f919381ab5f.glb
Create a Helix Headphone Stand consisting of a circular base, a twisted spire, and a curved top support. Start with a cylindrical base 10mm high with a radius of 50mm. From the top of this base, extend a double helix spire 150mm in height. This spire is formed by two intertwined columns, each with a circular cross-sect...
module doubleHelix(c,d,t){ linear_extrude(height=c,convexity=100,twist=-t) translate([d,0,0]) circle(d=d); linear_extrude(height=c,convexity=100,twist=-t) translate([-d,0,0]) circle(d=d); } module quadHelix(c,d,t){ linear_extrude(height=c,convexity=100,twist=-t) tra...
glb/cad_4bde3445fe0a.glb
Create a generic electronics housing box with outer dimensions of 140mm width, 65mm depth, and 40mm height. The main body is a hollow rectangular shell with a bottom plate thickness of 1.4mm and wall thickness of 1.8mm. The four vertical corners must be rounded with a radius of 4mm. At each of the four rounded corners...
width_x = 140; debth_y = 65; wall = 1.8; cornerradius = 4.0; height_z = 40; plate = 1.4; nutdiameter = 4.0; nutlength = 5.8; resol = 36; difference () { union () { difference () { union () { cube ( [width_x, debth_y - (2* cornerradius), height...
glb/cad_2f541d0ecd5e.glb
Create a generic box cover with outer dimensions of 140mm by 65mm and a total height of 4.5mm. The main body is a flat plate with a thickness of 1.4mm and a recessed inner area. This inner area is created by removing a central rectangular block that leaves a wall thickness of 1.8mm around the perimeter. The corners of ...
width_x = 140; debth_y = 65; wall = 1.8; cornerradius = 4.0; height_z = 4.5; plate = 1.4; screwholediameter = 3.2; screwheaddiameter = 5.7; screwheadheigth = 3.2; resol = 36; difference () { union () { difference () { union () { cube ( [width...
glb/cad_51af00c760f4.glb
Create a Switchbox for Computer Peripherals cover plate. Start with a rectangular base measuring 175mm by 65mm with a height of 5mm. Round the four corners with a 5mm radius. The plate has a thickness of 3mm, with a hollowed-out center area leaving 3mm thick side walls. At each of the four rounded corners, create a st...
width_x = 175; debth_y = 65; wall = 3.0; cornerradius = 5.0; height_z = 5.0; plate = 3.0; screwholediameter = 3.2; screwheaddiameter = 5.7; screwheadheigth = 3.2; resol = 36; difference () { union () { difference () { union () { cube ( [width...
glb/cad_1d1a82ca026a.glb
Create a Switchbox for Computer Peripherals housing with outer dimensions of 175mm width, 65mm depth, and 40mm height. The main body is a hollow rectangular box with a wall and bottom plate thickness of 3mm. The four vertical corners should be rounded with a 5mm radius. Inside each of these corner pillars, create a ver...
width_x = 175; debth_y = 65; wall = 3.0; cornerradius = 5.0; height_z = 40; plate = 3.0; nutdiameter = 4.0; nutlength = 5.8; resol = 36; difference () { union () { difference () { union () { cube ( [width_x, debth_y - (2* cornerradius), height...
glb/cad_6619aae823ae.glb
Create a Double Smartphone Stand by constructing a hollowed cylindrical base with an outer radius of 25mm and a total height of 14mm. The walls of this base should be 4mm thick, created by removing a concentric inner cylinder with a radius of 21mm. To finish the top edge of the outer wall, add a rounded torus with a cr...
$fn = 128; H = 14; R = 25; T = 4; Pw = 74; Ph = 154; Pt = 10; Sv = true; Av = 80; Dv = 0.35; Bv = 3; Sh = true; Ah = 65; Dh = 0.4; Bh = 4; difference() { union() { cylinder(H-T/2,R,R); translate([0,0,H-T/2]) torus(R-T/2, T/2); } translate([0,0,-1]) cylinder(H+...
glb/cad_d90c99e176d9.glb
Create a Double Smartphone Stand by constructing a hollowed circular base with a total height of 14mm and an outer radius of 25mm. The walls of this base should be 4mm thick. The top edge of the cylinder is rounded with a torus of radius 22.5mm and a cross-sectional radius of 2mm. Carve two slots into this base to hol...
$fn = 128; H = 14; R = 25; T = 4; Pw = 80; Ph = 164; Pt = 11.5; Sv = true; Av = 80; Dv = 0.35; Bv = 3; Sh = true; Ah = 67; Dh = 0.4; Bh = 4; Mw = 2; Ml = 6; difference() { union() { translate([0,0,0]) cylinder(H-T/2,R,R); translate([0,0,H-T/2]) torus(R-T/2,T/2);...
glb/cad_9b864149fe0b.glb
Create a vertical stand for a Raspberry Pi 4 and an SSD. Start with a flat rectangular base that is 3mm thick. On this base, construct two sets of supporting corner brackets, each 25mm high with a wall thickness of 2mm. The first set of brackets should be spaced to hold an SSD with a width of 70.5mm and a height of 7...
wall=2; corner_side=4.1; mid_thickness=4; height=25; base_thickness=3; distance_between=20; ssd_w=70.5; ssd_h=7.05; pi_w=56.3; pi_h=24.55; $fn=$preview ? 20 : 100; include <BOSL2/std.scad> include <BOSL2/walls.scad> module corners(w,l,h) { difference() { cube(size=[w+wall*2,l+wall*2,h]); translate...
glb/cad_129fb9e1abef.glb
Create a locking mechanism replacement part for a table. Start with a rectangular base plate measuring 20mm wide by 55mm long with a thickness of 3mm. Round the four corners of this plate with a radius of 2mm. Centered on the plate, add a cylindrical spacer with a height of 12mm and a diameter of 7.33mm. Pierce a ver...
head_diam = 12; head_height = 5; thread_diam = 6.5; screw_hole = 6.5; screw_spacing = 32; overall_height = 12; overall_width = 20; overall_length = 55; corners = 2; walls = 3; eps = 0.1; $fn=32; module lock_screw(){ translate([0,0,-eps]){ cylinder(d=head_diam, h=head_height+0.1, $fn=6); } cylin...
glb/cad_edf87ea1409a.glb
Create a needle template for a knitting machine consisting of a long profile and a handle. First, construct the main template body by extruding a specific 2D polygon to a length of 180mm. The polygon profile starts at (0,0), moves to (2.9,0), then up to (2.9, 4.4), over to (9.3, 4.4), down to (9.3, 0), over to (12.2, 0...
length = 180; wide = 16.3; print_wide = wide + 9; union(){ rotate([90,0,0]) linear_extrude(height = length, center = false) polygon(points = [[ 0 , 0 ], [ 2.9, 0 ], [ 2.9, 4.4], [ 9.3, 4.4], ...
glb/cad_d3c8e9cfa25c.glb
Create a Tenkeyless Keyboard case consisting of a hollowed rectangular base and a mounting plate. The overall footprint is approximately 200mm by 140mm. Construct the base with a wall thickness of 8mm. The base should be designed with a slight incline of 3.5 degrees. Integrate a floor at the bottom with a thickness of...
module panelmicrob_void(d_front, d_back, h_spc = 18, maxh = 12, ovw = 26, h_dia =4.5 ) { d_ovl = d_back + d_front; translate([-h_spc/2, 0, -.01]) cylinder(d=h_dia, h=d_front+.01); translate([ h_spc/2, 0, -.01]) cylinder(d=h_dia, h=d_front+.01); translate([ 0, 0, -.01]) linear_extrude(heigh...
glb/cad_a5e8c730dfd3.glb
Create a geometric object by finding the intersection of three primary shapes. First, create a cylinder with a diameter of 3.9mm and a height of 16mm, centered on the origin and rotated 90 degrees along the X-axis. Second, create a cube with dimensions 16mm by 16mm by 3.4mm, also centered on the origin. Third, create a...
intersection() { rotate([90,0,0]) cylinder(d=3.9, h=16, $fn=32, center=true); cube([16, 16, 3.4], center=true); linear_extrude(height=6, center=true) polygon([ [-0.5, -8.1], [-2.0, -4.1], [-2.0, 4.1], [-0.5, 8.1], [ 0.5, 8.1], [ 2.0, 4.1], ...
glb/cad_313a380d8ac4.glb
Create a garden cover corner element by joining three rounded rectangular prisms that meet at a central corner. Each prism has a width and height of 30mm and a corner radius of 5mm. One prism extends 100mm along the X-axis, one extends 100mm along the Y-axis, and one extends 100mm along the Z-axis. From this combined ...
$fn = 40; base(); module base() { difference() { union() { rCube(100, 30, 30, diam=5, $fn); rCube(30, 100, 30, diam=5, $fn); rCube(30, 30, 100, diam=5, $fn); } spike_hole(pt=[15, 15, 8]); spike_hole(pt=[15, 15, 15], rt=[0, 90, 0]); ...
glb/cad_5b3755274835.glb
Create a garden cover corner connector by combining three rounded rectangular prisms. The first prism is 100mm wide, 30mm deep, and 30mm high. The second is 30mm wide, 170mm deep, and 30mm high, positioned to extend perpendicularly from the center of the first. The third is 30mm wide, 30mm deep, and 100mm high, extendi...
$fn = 40; middle_base(); module middle_base() { difference() { union() { rCube(100, 30, 30, diam=5, $fn); translate([0, -70, 0]) rCube(30, 170, 30, diam=5, $fn); rCube(30, 30, 100, diam=5, $fn); } spike_hole(pt=[15, 15, 8])...
glb/cad_7a87be11fcb0.glb
Create a garden spike for bird protection netting. Start by creating a solid cylinder with a diameter of 40mm and a height of 32mm. Centered on top of this cylinder, add a conical spike that transitions from a base diameter of 18mm to a tip diameter of 2mm over a height of 70mm. To make the object functional for a pi...
$fn = 40; ptU=[15, 15, 8]; ptM=[15, 15, -20]; ptD=[15, 15, -20]; difference() { union() { earth_spike(pt=ptU, rt=[0, 0, 0]); grab_cyl(pt=ptM, rt=[0, 0, 0],hi=32,d1=10,d2=27.40); pipe_spike(pt=ptD, rt=[0, 0, 0],hi=28,d1=13.40,d2=17.40); %pipe_model(); } ...
glb/cad_a98080f55fff.glb
Create a Nintendo Joycon Storage and Transport Case consisting of two mirrored halves. For one half, create a main outer block with a total height of 102mm, a width of approximately 35mm, and a depth of 41mm, featuring rounded exterior corners with a 3mm radius. Inside this block, carve out a primary controller cavit...
extra_tolerance = 0.1; module controller_space_right(h = 200) { cube([21, 35, h]); translate([-1, 0, 5]) cube([1.1, 35, h-5]); translate([21-7-1, 0, -2]) cube([7, 35-5, 2]); translate([21-0.1, 35-(4+18+6)-2.5, 5]) cube([2.5+0.1, 4+18+6, h-5]); translate([21+2.5-0.1, 35-1...
glb/cad_2d39b91668e2.glb
Create a Nintendo Joycon Storage and Transport Case consisting of two mirrored halves joined side-by-side. Each half is a hollowed-out block with an outer dimension of approximately 31mm x 41mm x 102mm and rounded corners. For each side, carve out a primary controller cavity measuring 21mm x 35mm x 102mm. Within this ...
module controller_space_right(h = 200) { cube([21, 35, h]); translate([-1, 0, 5]) cube([1.1, 35, h-5]); translate([21-7-1, 0, -2]) cube([7, 35-5, 2]); translate([21-0.1, 35-(4+18+6)-2.5, 5]) cube([2.5+0.1, 4+18+6, h-5]); translate([21+2.5-0.1, 35-18-2.5-4, 5+36]) ...
glb/cad_fdda33bf95d4.glb
Create a mini screwdriver holder consisting of a base and a series of vertical slots. Start by creating a square base measuring 16mm by 16mm with a height of 3mm. On this base, arrange eight vertical cylinders, each with a diameter of 4mm and a height of 15mm. Position four of these cylinders in a square pattern center...
union() { translate([0,8,0]) slot(); } module slot () { difference() { union() { translate([-8,-8,0]) cube([16,16,3]); translate([8,0,0]) cylinder (h = 15, d=4,$fn=100); translate([-8,0,0]) cylinder (h = 15, d=4,$fn=100); translate([0,8,0]) cylinder (h = 15, d=4,$fn=100); tra...
glb/cad_57ffaba15360.glb
Create a mini screwdriver handle and holder. Start by forming the main body as a union of three shapes: a cylinder at the base with a diameter of 10mm and a height of 18mm, a sphere with a diameter of 17mm centered at a height of 8mm, and a small cylindrical lip on top with a diameter of 12mm and a height of 1mm, posit...
size=4.0; difference() { union() { cylinder (h = 18, d=10,$fn=100); translate([0,0,8]) sphere(d=17,$fn=100); translate([0,0,17]) cylinder (h = 1, d=12,$fn=100); } { translate([0,0,5]) linear_extrude(height = 16, twist = 0) polygon(points=[ [1*size,0*size], ...
glb/cad_96d6050bdcc4.glb
Create a mini screwdriver and holder set. For the screwdriver handle, create a cylinder with a flat base so it can stand upright. The top of the handle should have a hole to accommodate a screwdriver tip. For the holder, create a base plate that is 16mm wide, 16mm deep, and 3mm thick. On this base, place four vertical...
union() { translate([0,8,0]) slot(); translate([-8,16,0]) cube([16,1,3]); translate([0,25,0]) slot(); translate([-8,33,0]) cube([16,1,3]); translate([0,42,0]) slot(); translate([-8,50,0]) cube([16,1,3]); translate([0,59,0]) slot(); } module slot () { difference() { union() { translate([-8,-8,0]) ...
glb/cad_a5027aca1671.glb
Create a battery spacer for an APC UPS. The main body is a rectangular box measuring 67mm wide, 151mm long, and 14mm high. On the top and bottom faces, add two rectangular ribs that are 8mm thick, 67mm wide, and 141mm long, centered along the length. Extend the width of these ribs by 4mm on each side. At one end of t...
rib_thick = 8; rib_len_long = 25; rib_len_short = 20; rib_extend = 4; box_thick = 14; box_width = 67; box_len = 151; flange_inside = 25; flange_depth = 24; flange_extend = 2.5; flange_thick = 15; outer_flange_width = 34; outer_flange_extend = 2.75; spade_neck_rad = 5.5/2; spade_wall_len = 11; spade_wall_thick = 2;...
glb/cad_64cd1ba5829a.glb
Create a reduction adapter for a drill stand by constructing a hollow cylinder with an outer diameter of 54mm and a total height of 29mm. Remove a central cylindrical core with a diameter of 52mm, starting from a height of 2mm from the base and extending to the top, leaving a 2mm thick solid floor at the bottom. Additi...
$fn = 256; difference() { cylinder(d = 54, h = 29); translate([0, 0, 2]) difference() { cylinder(d = 54, h = 27); cylinder(d = 52, h = 27); } cylinder(d = 43.5, h = 29); #cube([4, 30, 29]); }
glb/cad_1e83e5c2bc25.glb
Create a thumb extension for a cruise control button consisting of a hinged lever and a mounting base. First, construct the mounting base. Create a central bridge section that transitions into a bolt plate. The bolt plate is a flattened area with a thickness of 6mm, featuring a centered hole with a diameter of 5mm fo...
include <parameters.scad> color("red") { hull() { translate([bridge_len, width/2, 0]) { sphere(d=thick); } translate([bridge_len, width/-2, 0]) { sphere(d=thick); } translate([bridge_len, width/2, bolt_z+sin(bolt_tilt)*width/2]) { sphere(d=thick); } translate([bridge_l...
glb/cad_9dbaddefcd16.glb
Create a Table Corner Protection piece by constructing a rounded, hollowed-out cap. Start with a primary vertical cylinder that has a radius of 25mm and a height of 25mm. Apply a Minkowski sum with a sphere of radius 10mm to the cylinder to soften all edges into rounded fillets. From this resulting shape, remove a larg...
$fn=40; r=25 ; r1=10; h=25; gap=1; module sub() { difference() { translate([21,21,(2*r1-4)/2]) minkowski() { cylinder(r=r,h=h-2*r1+4); sphere(r=r1); } translate([-gap/2,-gap/2,-gap/2]) cube([100,100,h+gap]); } } module compile() { ...
glb/cad_174747a60958.glb
Create a skirting board corner piece consisting of two mirrored versions: one for outer corners and one for inner corners. For the outer corner, construct a hollow L-shaped shell with a wall thickness of 1.25mm. The overall height is 40mm and the width of the arms is 15.5mm. The shell should extend 35mm along each axis...
w=15.5; h=40; t=1.25; l=35; o=10; module outer() { difference() { union() { translate([-t,-t,0]) cube([w+t,l+t,h+t]); translate([-t,-t,0]) cube([l+t,w+t,h+t]); translate([-t,-t,h-o]) cube([w+2*t,l+t,o+t]); translate([-t,-t,h-o]) cube([...
glb/cad_9a7d7f904ff9.glb
Create a Screw Compartment consisting of a circular base and six matching lids. The base is a cylinder with a diameter of 100mm and a height of 30mm. Divide the interior of the base into six equal wedge-shaped compartments, each spanning 60 degrees. For each compartment, create a lid that matches the wedge shape. Each...
$fn=50; diam=100; height=30; segments=6; populate=6; populated=6; module pie(r,h,ang,add) { rotate([0,0,ang-180]) difference() { rotate([0,0,180-ang]) difference() { cylinder(r=r,h=h); translate([-r-1,-r-1,-1]) cube([2*r+2,r+1+add,h+2]); ...
glb/cad_6b61dde9e0ad.glb
Create a G-Code Simulator base by starting with a rectangular slab. Position a cube with dimensions 100mm x 100mm x 9mm, centered at x=-50, y=-50, and z=-10. The model represents a toolpath visualization. To simulate the tool, use a cylinder with a radius of 2.5mm and a height of 100mm. The toolpath consists of a ser...
$fn=20; $xold=0; $yold=0; $zold=0; $td=0; module g0(x=undef,y=undef,z=undef) { $xnew=(x==undef)?$xold:x; $ynew=(y==undef)?$yold:y; $znew=(z==undef)?$zold:z; p=($t-$td)*$ops; p1=(p>1)?1:p; $xcur=$xold+($xnew-$xold)*p1; $ycur=$yold+($ynew-$yold)*p1; $zcur=$zold+($znew-$zold)*p1; hull...
glb/cad_f6150737e0ae.glb
Create a joint for a truncated icosahedron (football) designed to connect drinking straws. Start with a central sphere with a radius of 3.6mm. From this sphere, extend three cylindrical holes (sockets) with a radius of 3.6mm and a depth of 17mm. Position the first socket vertically along the Z-axis. Position the seco...
$fn=50; module stift() { cylinder(r=3.6,h=17); } module platonic_corner(m,n) { k=asin(cos(180/n)/sin(180/m)) ; difference() { for(i=[0:m-1]) rotate([k,0,360*i/m]) children(); translate([0,0,-5]) cylinder(r=20,h=5); } } module corner_abc(n1,n2,n3) { a=180-360/n...
glb/cad_2cfd5af7fb6c.glb
Create a Cylinder Center Finder consisting of three identical square plates, each 42mm by 42mm with a thickness of 2mm and rounded corners with a 1mm radius. Arrange these plates so they meet at a common central axis, with two plates positioned vertically and perpendicular to each other, and the third plate lying horiz...
$fn=50; module plate() { minkowski() { cube([40,40,0.01]); sphere(r=1); } } module centerfinder() { difference() { plate(); hull() { translate([5,5,-2]) cylinder(r1=3.5,r2=0,h=3.5); translate([35,35,-2]) cylinder(r1=3.5,r2=0,h=3.5); ...
glb/cad_243d98878d2d.glb
Create a cat food lid by constructing a shallow circular disk with an outer radius of 40mm and a height of 8mm. Hollow out the center of this disk by removing a cylinder with a radius of 38mm, leaving a 2mm thick outer rim. The floor of this interior space should be 1mm thick, as the cutout begins 1mm from the base. In...
$fn=100; module deckel2() { rotate_extrude() { hull() { translate([39,1]) circle(r=1); translate([0,1]) circle(r=1); } hull() { translate([39,1]) circle(r=1); translate([39,7]) circle(r=1); } } } module deckel1() { difference() { cylinder(r=40,h=8); translate([0,0,1]) c...
glb/cad_fe8e7a02069e.glb
Create a square plate for a robust plastic box housing. The plate should be 180mm by 180mm with a thickness of 3mm. At the center of the plate, create a circular hole with a radius of 10mm and a depth of 7mm. Around this center hole, position four larger circular bosses. Each boss should have a radius of 12mm and a h...
$fn=100; big=200; module strip(l) { linear_extrude(height=l) { polygon([[0,0],[15,0],[0,15]]); } } module full(width,length,thickness) { difference() { translate([-width/2,-length/2,0]) cube([width,length,big]); translate([thickness-width/2,thickness-length/2,thickness]) cube([width-2*thicknes...
glb/cad_1171697bfb70.glb
Create a hexagonal organizer system consisting of a frame and a matching drawer. First, construct the frame as a hollow hexagonal prism with an outer diameter of 60mm and a depth of 100mm. The walls should be 3mm thick. The back of the frame is a solid hexagonal plate 2.5mm thick. On the outer perimeter of the hexagon...
$fn = 36; extruder_size = .6; tolerance = .14; tol2 = 2 * tolerance; tol_free = 2 * tolerance; tolf2 = 2 * tol_free; frame_t = 3; frame_back = 2.5; screw_m = 4; drawer_t = 1.2; drawer_font = "Arial Black:style=Bold"; drawer_font_elevation = extruder_size * .8; depth = 100; size = 60; drawer(s = size, l = depth, ...
glb/cad_e9f96f182e34.glb
Create a Beurer SR IH 1 Inhaler mouthpiece adapter consisting of two stacked cylindrical sections with a hollow center. Start by creating a lower base with a diameter of 22.8mm and a height of 8mm. This base should have a slightly tapered profile, transitioning from the 22.8mm diameter at the bottom to a wider middle s...
lower_dia = 22.8; lower_height = 8; middle_dia = 24.5; upper_dia = 18; upper_height = 15.5; thickness = 1.2; $fn=90; module side_rounds(x, y) { hull() { translate([x,y,3]) cylinder(r=0.35, h=lower_height-1); translate([x,y,2]) cylinder(r=0.002, h=2); } } module lower() { union() { ...
glb/cad_9524ce5bfb3d.glb
Create a cable comb organizer with a base thickness of 3mm. Start with a rectangular backplate that is 25mm high and 50mm deep. The total width is determined by 8 cable slots, each 5mm wide, spaced with 10mm margins between them. From the front of the backplate, extend a horizontal base 50mm deep. Along the front edge...
Cable_Slots = 8; Slot_Width = 5.0; Comb_Depth = 50; Screw_Hole_Diameter = 5; Edge_Screw_Holes = true; Center_Screw_Hole = false; Back_Height = 25; Comb_Thickness = 3; Lip_Depth = 10; Lip_Angle = 20; Cutout_Margin = 10; Chamfer_Depth = 1; Comb_Width = (Cable_Slots) * (Slot_Width + Cutout_Margin) + Cutout_Margin; ...
glb/cad_68f1525b256d.glb
Create a Parametric Battery Box consisting of a main storage container and a matching snap-on lid. For the box, create a rectangular base with a bottom thickness of 2mm and rounded corners with a 5mm radius. The walls should extend upward to a height determined by the tallest battery stored, featuring a 5mm high lip ...
Render_Box = true; Render_Lid = true; LidPosition = "Side"; Cutout = "X"; $fn=36; BottomThickness = 2; BorderWidth = 2; CornerRadius = 5; BatteryPlay = 0.5; LidThickness = 1; LipHeight = 5; LidPlay = 0.1; TeethD = 1.5; BatteryGap = 2; ButtonGap = 6; ClearanceCylinder = 20; ClearanceRectangle = 20; Clear...
glb/cad_e27a3b78405b.glb
Create a WC dual flush button fix ring by constructing a hollow cylindrical shape. Start with a base disk that has an outer diameter of 48 mm and a height of 2 mm. From the center of this base, remove a vertical cylinder with a diameter of 37.5 mm and a height of 5 mm, centered vertically so that it cuts completely thr...
$fn= $preview ? 16:64; d1=37.2+.3; d2=48-.2; d(){ cylinder(d=d2,h=2); cylinder(d=d1,h=5,center=true); } module t(v=[0,0,0]){translate(v) children();} module r(a=[0,0,0],rp=[0,0,0]){translate(rp) rotate(a) translate(-rp) children();} module tr(v=[0,0,0],a=[0,0,0],rp=[0,0,0]){t(v) r(a,rp) children();} module rt(a=[0...
glb/cad_5599c3534126.glb
Create a 2-bay, 3-slot HDD hot swap case base and frame. Start with a rectangular base measuring 126mm by 85.174mm with a thickness of 3mm. Build a surrounding wall structure with a total height of 14mm (3mm base plus 11mm wall). This structure includes several vertical partitions and supports: a 53.1mm by 2mm wall a...
$fn=40; fan_screw=4.2; screw_d=3.4; slot_w=3; base_h=3; wall_h=11+base_h; fudge=0.1; module slot(size){ translate([size[1]/2,size[1]/2,0]) minkowski(){ cube([0.1,size[0]-size[1],0.1]); cylinder(size[2]-0.1,d=size[1]-0.1); } } difference(){ union(){ cube([126,85.174,3]); tr...
glb/cad_3da98d1da839.glb
Create a HDD Hot Swap Case designed to hold two drive bays and three slots. The main body is a base plate with a height of 9.4mm. Construct the base by combining several geometric elements: a thin rectangular wall 2.1mm wide and 58mm long, a small cylinder with a 2mm radius, and a rectangular block 15.7mm by 2mm. Inc...
h=9.4; $fn=40; fan_screw=4.2; screw_d=4.2; screw_x=8.16; screw_y=32.33; difference(){ union(){ translate([0,18.6,0])cube([2.1,58,h]); translate([2,18.5,0])cylinder(h,r=2); translate([2,16.5,0])cube([15.7,2,h]); translate([13.7,14.5,0])difference(){ cube([2,2,h]); ...
glb/cad_f9f85815f867.glb
Create a HDD Anti Vibration Damper by constructing a composite geometric shape centered on a vertical axis. Start with a central cylinder that has a radius of 4mm and a height of 3mm, positioned so its base sits 2.35mm above the origin. Surround the base of this cylinder with a rounded, bulbous foundation created by co...
$fn=50; r_1=4; h_1=3; r_2=7.5; h_2=2.35; hole=2.25; difference(){ union(){ translate([0,0,h_2]) cylinder(r=r_1,h=h_1); translate([0,0,h_2/2])minkowski() { cylinder(r=r_2-(h_2/2),h=0.0001); sphere(h_2/2); } } translate([0,0,-h_2])cylinder(h=h_1+(h_2*2)...
glb/cad_f5c7f93e4f8c.glb
Create a landing gear bay cover consisting of a thin baseplate and an integrated NACA duct. Start with a flat baseplate 0.4mm thick. The plate's footprint is defined by a polygon with a rear width of 43.4mm and a front width of 36mm. The main body length is 101mm, extending further to a total length of 136mm at the n...
width1 = 43.4; width2 = 36.0; length1 = 101; length2 = 35; dipw = 10; dipl = 24; dipstrt = 50.5; radius = 3; thick=0.4; res = 90; nacaw = 42; nacal = 110; nacaoff = 16; nacashear = 0.185; nacat = 0.8; donaca = true; n1 = [-(nacaw*0.5),0]; n2 = [-(nacaw*0.497),0.1*nacal]; n3 = [-(nacaw*0.457),0.2*nacal]; n4 = [-(nacaw*...
glb/cad_447068f2627b.glb
Create a landing gear bay cover with a thickness of 0.4mm. The main body is a flat plate 18mm wide and 100mm long. Along the length, the sides are straight except for two notched sections: at the front, create a cutout where the width narrows to 27mm for a distance of 4mm, then returns to 18mm for a 24mm span, and repe...
cwidth = 18; clength = 100; hdia = 54; hdist = 153.5-hdia/2; radius = 2; screww = 27; screwsep = 24; screwd = 4; thick = 0.4; res = 90; thumb = 30; gap1d = 66; gap1w = 30; gap1t = 0.5; gap2d = 71.5; gap2w = 21; gap2t = 0.8; dofingerhole = true; linear_extrude(height=thick, $fn=res) difference() { offset(r=radius, ...
glb/cad_bf186d9af891.glb
Create a replacement indicator light lens for a hot plate. Start with a spherical cap with a diameter of 13mm and a thickness of 0.6mm. Around the base of this cap, add a cylindrical rim with a height of 1mm and a diameter of 12.4mm, featuring a central hole of 7mm. Attached to the bottom of the rim, create a tapered ...
$fn=100; extra=0.1; lens_diameter=13; lens_dikte=0.6; lens_hoogte=3; rand_breedte=3; rand_hoogte=1; rand_overlap=1.2; pen_hoogte=12; pen_tanddiepte=0.5; pen_tandhoogte=3; pen_tandopening=2; pen_tanddikte=2.3; pen_diameterBoven=lens_diameter-2*rand_overlap+2*pen_tanddiepte; pen_diameterOnder=10; pen_diameterOndertand...
glb/cad_e3b7bdfb32fd.glb
Create a brush holder consisting of a rectangular baseplate and two vertical pillars. Start with a baseplate 15mm wide, 30mm deep, and 3mm thick, with rounded corners and edges created by a 2mm radius. On the top surface of this baseplate, center the word "Brush" as a recessed engraving 4mm deep with a font size of 3mm...
$fa = 5; $fs = 0.5; width = 15; depth = 30; TEXT = "Brush"; difference(){ minkowski(){ cube([width,width*2,3]); sphere(2); } union(){ translate([-3,-3,-5,])cube([width*2,width*3,5]); translate([width/2,width*1.5,4.5])linear_extrude(height = 4) { text(TEXT, fo...
glb/cad_a9531d5107da.glb
Create a Dial Gauge Holder consisting of a rounded rectangular base and a central mounting slot. The base is 63mm long, 11mm wide, and 7.5mm high. All exterior edges and corners of the base should be rounded with a 2mm radius. In the center of the base, carve out a longitudinal channel that is 3mm wide and 7.5mm deep,...
baseheight = 7.5; baselengt = 67; basewidth = 15; screw = 5; screwhead = 2; mountingbracket = true; mountingbracketwidth = 5; DialGaugeR = 26.4; $fa = 0.01; $fs = 0.3; Xcentre = 0.5 * basewidth -2; if (mountingbracket == true) mount(); difference(){ minkowski(){ union(){ cube([basewidt...
glb/cad_1eb155cfb9c9.glb
Create an angle divider consisting of several flat components designed to pivot around M4 screws. First, create two identical wings. Each wing is a rectangular plate 20mm wide and 140mm long with a thickness of 2.5mm. The top of each wing is rounded with a semi-circle of 10mm radius. Drill a 4mm diameter hole through...
$fa = 5; $fs = 0.5; width = 20; toollengt = 150; height = 8; height_wing = 2.5; screw = 4; Centerpart_Nut = false; Wing_Spacer = false; wrench = round(screw * 1.65); lengt = toollengt-(width/2); translate([0,0,0])bar(); translate([screw,lengt*0.8,0])bar_spacer(); translate([1.5*width,0,0])wing(); translate([3*wid...
glb/cad_de9e55c9550c.glb
Create an airgap drain consisting of two interlocking parts: a lower funnel body and a top cap. For the lower body, create a cylinder with a diameter of 40mm and a height of 60mm. Hollow out the center with a 33mm diameter hole. At the bottom of this cylinder, cut a wide rectangular window through the walls to create...
drainsize = 33; funnel = 80; $fa = 2; $fs = 0.2; translate([0,0,130])rotate([0,180,90])drain(); translate([funnel+10,0,0])top(); module top(){ difference(){ union(){ translate([0,0,0])cylinder(5, funnel/2-2.5, funnel/2-2.5); translate([0,0,5])cylinder(3, funnel/2-2.5, funnel/2); translate([0,0,8])cylind...
glb/cad_bc2b346cc9a4.glb
Create a flat, square plate with dimensions 50mm by 50mm and a thickness of 2.5mm.
use<hex plug library.scad>; $fn = 128; honeycombGrid() { makeRow() { insert_empty(); insert_with_plate(); insert_horizontal(); hexagon_plug(); hexagon_plug_horizontal(); } makeRow() { insertBase(); insert(); insertEmpty(); hexagonPlug(); hexagonPlugHorizontal(); } makeRow() { insertM2_...
glb/cad_e5967d8d6dcb.glb
Create a CPAP Headboard Frame consisting of a thin, open-walled tray with a total height of 25.4mm and a wall thickness of 4.7625mm. The base of the frame is a rectangular platform measuring 127mm in width and 4.7625mm in thickness. Attached to the bottom of this base are two vertical side walls that extend downwards t...
headboard_width=2.5*25.4; headboard_depth=2.5*25.4; cpap_width=5*25.4; cpap_depth=(1/4)*25.4; frame_thickness=(3/16)*25.4; frame_width=1*25.4; translate([-headboard_width/2-frame_thickness, -frame_thickness/2, 0]) cube([headboard_width+2*frame_thickness, frame_thickness, frame_width]); translate([-headboard_width/...
glb/cad_20e61eaa98c5.glb
Create a Bobbin Caddy holder consisting of a rectangular tray with a 4x4 grid of 16 identical slots. The overall tray dimensions are 74mm wide by 104mm deep with a thickness of 12mm. The tray has rounded ends created by intersecting the main body with 30mm diameter cylinders centered along the length. Each bobbin slot...
rows = 4; columns = 4; facets = 60; slop = 0.0; module bobbin_form() { translate(v = [-3.5, 0, 0]) difference() { union() { rotate(a = [0, 90, 0]) cylinder(h = 11.3 + slop, d = 20.5 + slop, $fn = facets); rotate(a = [90, 0, 0]) translate(v = [-1.9, -4, 0]) cube(size = [4, 14, 7], c...
glb/cad_05ac8e6328d5.glb
Create a Nozzle Holder by constructing a main body with a total thickness of 9mm. The body is composed of three joined sections: a central rectangular block measuring 42mm x 86mm, a smaller rectangular block of 60mm x 20mm attached to the bottom, and a 35mm x 35mm square block rotated 45 degrees to form a chamfered poi...
include <BOSL/shapes.scad>; thickness = 9; second_col = true; hole_spacing = 10; hole_count = 7; hc = hole_spacing * hole_count - 1; logo = true; table=[ [hole_spacing * 0,".25mm"], [hole_spacing * 1,"0.3mm"], [hole_spacing * 2,"0.4mm"], [hole_spacing * 3,"0.5mm"], [hole_spacing * 4,"0.6mm"], [hole_spacing * 5,"0...
glb/cad_ce65212dd05f.glb
Create a NASCII NKH headphone model designed for a 52mm diameter driver. Start by creating a cylindrical pad holder with an outer diameter of 105mm and a height of 2.6mm. The holder should feature a central hollow for the driver and an internal metric thread with a 3.3mm pitch to secure the components. Integrate a gr...
use <threads.scad>; use <smooth_prim.scad>; use <af-basics.scad>; $fn=256; debug = true; cdebug = false; cut = "x"; layer = 0.2; line_with = 0.44; driver = 50.05; pad = 105; wall = line_with*4; body_thread = 10; body_grill = 2; body_bottom = 9; pad_holde...
glb/cad_627d8cbfa55a.glb
Create a card box and lid for unsleeved Magic the Gathering cards. For the box, create a rectangular open-top container with an outer width of 68.6mm (65mm internal width plus 1.8mm walls on each side) and an outer length of 63.6mm (65mm internal length plus 1.8mm walls on each side). The total height of the box is 9...
part = "both"; deck_width = 65; deck_length = 90; deck_thicknesses = [65]; deck_spacer = .9; lid_height = 20; lid_finger_cut_radius = 15; lid_locks_length = 5; wall_thickness = 1.8; gap = .3; engrave_depth = -.9; mirror = true; text_1 = "Exploding"; text_1_size = 10; text_1_font = "Roboto"; text_1_font_s...
glb/cad_306caf93cb2d.glb
Create an outdoor DiSEqC switch cover pin starting with a circular base that is 10mm in diameter and 1mm thick. Centered on top of this base, construct a vertical assembly consisting of three thin rectangular plates, each measuring 1mm thick, 4mm wide, and 7mm tall. Position the first plate vertically at the center. Pl...
$fn=40; cylinder(h=1, r1=5, r2=5); translate([0,0,4]) cube([1, 4, 7], center=true); translate([1.3,0,4]) rotate([0, -10, 0]) cube([1, 4, 7], center=true); translate([-1.3,0,4]) rotate([0, 10, 0]) cube([1, 4, 7], center=true); translate([0,0,7]) cylinder(h=1.5, r1=2.5, r2=2.5);
glb/cad_a345348915e9.glb
Create a 3D model of a "Spectre" tile with an integrated handle. First, construct the base tile as a flat polygon with a thickness of 2mm. The tile's perimeter is defined by a specific sequence of moves: four segments of length $b$ at 90 and -60 degrees, and four segments of length $a$ at 90 and -60 degrees, with $a$...
isHandle = true; hD = 5; hHA = 4; hHB = .1; a = 1.0; b = 1.0; s = 6; gW = 1/3; curve_amount = 0.2; stretch_factor = 0.2; tile_thickness = 2; grid_thickness_up = 0.2; grid_thickness_down = 0.3; single_tile = true; part = "all"; function grid_between(pt1, pt2, width=1.0) = let( d = (pt2 - pt1) ...
glb/cad_db49bfb29873.glb
Create a parametric handle with a total width of 170mm (h_hole 140mm plus two 15mm bases) and a thickness of 26mm. The main body is a curved arch with an internal height of 33mm and a thickness of 17mm. The profile features a 10-degree flare and a 3-degree draft angle for printability. The handle's cross-section is de...
function ang2vec(a) = [cos(a), sin(a)]; function normalize(v) = v/norm(v); $fs = 1; $fa = 5; h_internal = 33; h_thick = 17; h_base = 20; h_wide = 26; h_hole = 140; r_internal = 16; a_flare = 10; a_draft = 3; r_fillet_int = 6; r_fillet_ext = 3; d_hole = 6; d_counter = 12; h_counter = 10; h_layer = 0.3; h_slot_width =...
glb/cad_6aa0e80fd4e8.glb
Create two identical bike rear suspension bushings. For each bushing, start by creating a wide, flat cylindrical base with a diameter of 19.05mm and a height of 1mm. Centered on top of this base, add a second cylinder with an external diameter of 12.7mm and a height of 4.76mm. Finally, bore a concentric hole through th...
number = 2; base_diameter = 19.05; base_height = 1; bushing_height = 4.76; bushing_external_diamter = 12.7; bushing_internal_diameter = 7.94; columnas = sqrt(number); for (i= [1:number]){ translate([(2+base_diameter)*floor((i-1)/columnas), (2+base_diameter)*floor((i-1)%columnas), 0]) buje(bushing_height); e...
glb/cad_fc7bb260e2d7.glb
Create a Trek 500 GoPro mount consisting of a main base and a mounting fixture. The base is a symmetrical, slightly angled plate with a width of 57mm and a height of 30mm. The plate has a thickness of 3.5mm and features a central cutout for a mounting bolt. Attached to the base is a fixture designed to hold a camera. ...
fn1=25; fn2=10; wall_t=3.5; fix_wall_t=2.7; fix_wall_d=3.3; fix_wall_hole_d=5.2; cam_dist=62.8; hole_dist_1 = 15; hole_dist_2 = 9; hole_d_1 = 6.2; hole_d_2 = 10.1; fix_od= 15; fix_h=20; back_h=30; back_w=57; back_angle=13; print_tol=.2; union(){ trak500_base(); translate([0,-1,0])fixture(); } module half(){ ...
glb/cad_990568adc986.glb
Create an SSD mount consisting of a flat rectangular base plate and a vertical cylindrical post. The base plate should be 77.7mm by 88.6mm with a thickness of 3mm. Within this plate, create a rectangular cutout centered at 61.7mm by 76.6mm, leaving a 3mm border around the edges. Inside this cutout area, add four struct...
tube_d= 12.7; slimcut = 13; full_h=72; plate_d =18; plate_extra_X =12; plate_extra_Y =9; general_t = 3; bolt_r=2; print_tolerance = .3; mount_X = 61.7; mount_Y = 76.6; full_plate_X = mount_X+2*(general_t+bolt_r)+plate_extra_X; full_plate_Y = mount_Y+2*(general_t+bolt_r)+plate_extra_Y; base(); translate([0,0,plate_d+...
glb/cad_b32177f128bb.glb
Create a Bosch Professional 18V Battery Connector consisting of a main body and a cover. Start with a rectangular base measuring 90mm x 67mm x 11mm. From this base, remove a large central rectangular section measuring 59mm x 52mm x 5.6mm, offset by 7.5mm from the side and 0mm from the bottom. Additionally, remove a sec...
cable_diam = 3; difference(){ cube([90, 67, 11]); translate([0, 7.5, 0]) cube([59, 52, 5.6]); translate([0, 3, 5.6]) cube([59, 61, 5.5]); translate([0, 3, 4.1]) cube([10, 61, 1.5]); translate([0, 6.5, 0]) cube([16, 54, 5.6]); translate([59, 12.5, 2]) cube([2, 1.4, 9]); translate([61, 11.5,...
glb/cad_dae28499d698.glb
Create a Bosch Professional 18V Battery Connector body by starting with a rectangular base measuring 90mm in length, 67mm in width, and 2mm in height. At the left edge, add two small rectangular tabs, each 5mm wide, 3mm deep, and 2mm high, positioned at the top and bottom corners to extend the width to 70mm. Cut a re...
difference(){ union(){ cube([90, 67, 2]); translate([0, -3, 0]) cube([5, 3, 2]); translate([0, 67, 0]) cube([5, 3, 2]); } translate([4, 23, 0]) cube([15, 21, 2]); translate([85, 7, 0]) cylinder(9, 1.5, 1.5, $fn=20); translate([85, 60, 0]) cylinder(9, 1.5, 1.5, $fn=20); ...
glb/cad_8db9b451f3eb.glb
Create a yCover for a Gardyn yCube by starting with a square plate measuring 32mm by 32mm with a height of 3mm and corners rounded to a 1mm radius. In the center of this plate, create a circular hole with a diameter of 10mm. Cut a rectangular slot 4mm wide starting from the edge of the plate and extending to the center...
Hole_Diameter = 10; Slit_Width = 4; yCover_Height = 3; Point_Size=3; Corner_Radius = 1; yCover_Size = 32; $fa = 3; $fs = 0.25; yCover_Dimensions = [ [Corner_Radius,Corner_Radius,0], [yCover_Size-Corner_Radius,Corner_Radius,0], [Corner_Radius,yCover_Size-Corner_Radius,0], [yCover_Size-Corner_Radius,yCover_Siz...
glb/cad_fefad046c08c.glb
Create a 100 Amp Shunt Holder consisting of three stacked rectangular tiers centered on each other. The base tier is a rectangular slab 123mm long, 25mm wide, and 4mm high. Centered on top of this base, add a second tier 103mm long, 25mm wide, and 4mm high. Centered on top of the second tier, add a third tier 40mm long...
tier1L = 123; tier2L = 103; tier3L = 40; teir1H = 4; teir2H = 4; teir3H = 4; width = 25; shuntholeW = 85; difference() { union() { cube([ tier1L , width , teir1H ] ); translate( [ ( tier1L - tier2L ) / 2 , 0 , teir1H , ] ) cube([ tier2L , width , teir2H ] ); translate( [ ( tier1L...
glb/cad_11e6f459da0d.glb
Create a stackable drawer with an outer shell that is a cube measuring 180mm x 180mm x 90mm. The outer shell should have rounded corners with a 10mm radius. Hollow out the center of the cube to create a storage compartment, leaving a wall thickness of 6mm on all sides. On the front face of the drawer, centered horizon...
include <BOSL-1.0.3/shapes.scad> $fs = $preview ? 0.1 : 0.1; $fa = $preview ? 30 : 10; units_heigh = 3; unit_height = 30; drawer_height = units_heigh*unit_height; wall_thickness = 1.5; drawer_size = 180; label_holder_width = 57; label_holder_height = 18.1; label_holder_thickness = 1; label_holder_indent = 2.5; labe...
glb/cad_8cd2688b8c46.glb
Create a stackable drawer base with a rectangular footprint of 200mm by 185mm. The base plate has a thickness of 3mm with an additional 1.5mm bezel. In the center of the base, create a large rectangular cutout with rounded corners, defined by four corner cylinders with a radius of 40mm. At each of the four corners of ...
include <BOSL-1.0.3/shapes.scad> units_heigh=3; base_thickness = 3.0; z_fix = 0.01; base_bezel_thickness = 1.5; base_hole_corner_radius = 40; unit_height = 30; leg_extra = 6.25; leg_height = unit_height*units_heigh+leg_extra; peg_tolerance = 0.2; $fs = $preview ? 0.1 : 0.1; $fa = $preview ? 30 : 10; leg_spacing ...
glb/cad_9bc17375a75d.glb
Create a motorcycle bar end consisting of a wide base and a narrower stem. Start with a main cylindrical base that is 33mm in diameter and 30mm in height, featuring a rounded corner radius of 3mm on the bottom edge. Centered on top of this base, add a cylindrical stem with an outer diameter of 20mm and a height of 10mm...
Bar_End_Diameter = 33; Bar_End_Height = 30; Bar_End_Corner_Radius = 3; Stem_Inside_Cylinder_Diameter = 14.0; Stem_Inside_Cylinder_Height = 2.2; Stem_Inside_Cylinder_Notch_Depth = 3.0; Stem_Outside_Cylinder_Diameter = 20.0; Stem_Outside_Cylinder_Height = 10; Screw_Diameter = 6.0; Screw_Head_Diameter = 11.8; Screw_Head...
glb/cad_e8ee81e7c761.glb
Create a piano battery lid by starting with a central rectangular plate measuring 65mm by 60mm with a thickness of 4.5mm. Round the four corners of this plate using a 1.5mm radius. On the top surface, centered along the shorter 60mm edge, add a protruding tab that is 17mm wide and 12mm long. This tab should be the same...
mainX = 65; mainY = 60; mainZ = 4.5; langX = 17; langY = 12; screwR = 2; clapX = 5; clapY = 3; offsetClapZ = 1.5; clapZ = mainZ - offsetClapZ; gapZ = 5; clapGapZ = ((mainX/2)-clapX-gapZ); $fn = 20; module lang() { translate([0, (mainY+langY)/2, 0]) cube([langX, langY, mainZ], center=true); translate([...
glb/cad_ed33dc087564.glb
Create a light riser for an aquarium by constructing a base block and adding a raised section. Start with a main rectangular block measuring 10mm by 74mm by 150mm. Attach a second rectangular block to the side of the first, measuring 28mm by 74mm by 15mm, positioned 30mm up from the bottom edge along the 150mm length. ...
rotate(a = [0, -90, 0]) { difference() { union() { cube(size = [10, 74, 150]); translate(v = [10, 0, 0]) { translate(v = [0, 0, 30]) { cube(size = [28, 74, 15]); } } translate(v = [0, 0, 150]) { cube(size = [10, 3, 10]); } translate(v = [0, 71, 0]) { translate(v = [0, 0, 150]) ...
glb/cad_e96eaf063129.glb
Create a Fluval light riser by constructing a composite block and removing specific cylindrical voids. Start with a solid rectangular base measuring 27mm in width, 74mm in depth, and 105mm in height. This base is formed by joining a 10mm by 74mm by 50mm block and a 17mm by 74mm by 10mm block at the bottom, with a large...
rotate(a = [0, 90, 0]) { difference() { union() { translate(v = [0, 0, 5]) { cube(size = [10, 74, 50]); } translate(v = [0, 0, 5]) { translate(v = [10, 0, 0]) { cube(size = [17, 74, 10]); } } translate(v = [10, 0, 0]) { translate(v = [0, 0, 45]) { difference() { cube(si...
glb/cad_eff5b5e87d48.glb
Create a Vinyl Album Frame consisting of four corner brackets and two wall mounts. For the corner brackets, create four L-shaped pieces with a long side of 174mm and a short side of 137mm. Each bracket should have a thickness of 15mm and a total height of 20mm. Incorporate a rebate for a 3mm thick hardboard backing. ...
detail = $preview ? 50 : 200; mount(0); translate([0,25,0])mount(3); module mount(mountWide) { errorSwing = 2; difference() { hull() { translate([15,errorSwing,0])cylinder(h=5,d=15,$fn=detail); translate([-15,errorSwing,0])cylinder(h=5,d=15,$fn=detail); translate(...
glb/cad_3b7406526c02.glb
Create a Lego Duplo stub replacement consisting of a thin rectangular base plate and a 3x3 grid of cylindrical stubs. Start with a base plate measuring 19.8mm by 19.8mm with a thickness of 0.3mm. On this plate, arrange nine identical hollow cylindrical stubs in three rows and three columns. Each stub should be centered...
$fn=60; cols=3; rows=3; gluePlateHeight=0.3; outerWidth=9.5; innerWidth=6.5; height=5.2; space=6.6; freedom=0.1; chamfer=0.5; outerRadius=(outerWidth - freedom) / 2; innerRadius=(innerWidth + freedom) / 2; singleGlueplate=outerWidth + space; glueplate_x=singleGlueplate * rows; glueplate_y=singleGlueplate * co...
glb/cad_cff8ec4ee95e.glb
Create a corner position-holding table bracket. Start with a solid rectangular block measuring 22mm in width, 23mm in length, and 15mm in height. From this block, remove a rectangular section to create an L-shaped profile. The remaining vertical wall should be 3mm thick, and the remaining base plate should be 17mm wide...
thickness = 3; screw_plate_width = 17; height = 15; covered_length = 20; inset_distance = 5; hole_diameter = 5; left = 1; module bracket() { difference() { translate([-inset_distance,0,0]) cube([ screw_plate_width+inset_distance, covered_length+thickness, height...
glb/cad_a4b3219a2c11.glb
Create a sanding disc storage organizer consisting of a 3x3 grid of open-topped cylindrical compartments. Each individual compartment should be a cylinder with an outer diameter of 56mm, an inner diameter of 52mm, and a total height of 50mm, resulting in a wall thickness of 2mm. The walls of each cylinder must be parti...
discdm=52; height=50; rows=3; columns=3; wallthickness=2; open=90; hole=1; fn=250; for (i=[1:rows], j=[1:columns]){ translate([(wallthickness+discdm)*i,(wallthickness+discdm)*j,0]) disc(); } module disc(){ difference(){ cylinder($fn=fn, h=height, d=discdm+2*wallthickness); union(){ translate([0,0,wallthic...
glb/cad_0a5d3df69e4e.glb
Create a rectangular shell for an LED tester with external dimensions of 104mm by 51mm and a height of 7mm. The main body should have rounded corners with a radius of 2mm. Hollow out the interior to leave a base thickness of 1.4mm, creating an internal cavity of 100mm by 47mm. On the bottom face, create four circular...
$fn=36; width=100; depth=47; hollow=1.4; draft=false; body(); module body() { difference() { minkowski() { cube([width,depth,5]); sphere(r=2); } translate([0,0,hollow]) cube([width,depth,8]); translate([-2,-2,-2]) cube([width+4,depth+4,2]); translate([-3,11,hollow]) cube([3.1,10,7]); tra...
glb/cad_fd6eb40dbb2d.glb
Create a modular fridge egg tray. Start by constructing a rectangular base plate with a thickness of 5mm. The overall length should be 220mm and the width 95mm. At each of the four corners of the base, add a square support pillar measuring 15mm by 15mm with a height of 25mm. Within the base plate, create a grid of 8 c...
$fs=3; round_corners=false; rows = 2; eggs_per_row = 4; egg_spacing=5; egg_diameter = 45; holder_thickness = 5; feet_height = 25; feet_side=15; fillet_radius=3; holder_length = eggs_per_row*egg_diameter+(eggs_per_row-1)*egg_spacing; holder_width = rows*egg_diameter+(rows-1)*egg_spacing; module feets() { ...
glb/cad_a9d00fbea73e.glb
Create a motorcycle bar end spacer consisting of two concentric cylinders. Start with a base outer cylinder that has a diameter of 20mm and a height of 8mm. Centered within this base, create a second inner cylinder with a diameter of 14mm and a height of 2.2mm. From this inner cylinder, remove a rectangular notch 3mm...
Spacer_Inside_Cylinder_Diameter = 14.0; Spacer_Inside_Cylinder_Height = 2.2; Spacer_Inside_Cylinder_Notch_Depth = 3.0; Spacer_Outside_Cylinder_Diameter = 20.0; Spacer_Outside_Cylinder_Height = 8; Spacer_Screw_Diameter = 6.0; $fn = 128; module Screw(diameter, height, headDiameter, headHeight) { cylinder(d=diameter, ...
glb/cad_53f4f2cd33b3.glb
Create a FlySky FS-iA10B Receiver Holder. Start with a main outer box measuring 56mm in length, 37mm in width, and 16.5mm in height, with all vertical edges rounded to a 2mm radius. Hollow out the center to create a cavity 53mm long, 34mm wide, and 15mm deep, leaving a wall thickness of 1.5mm on all sides. At the top ...
receiverL1 = 53; receiverW = 34; receiverH1 = 15; receiverH2 = 12; wall = 1.5; hole1H = 11; hole1W = 31; hole2W = 19; receiverL2 = 32; module rcube(size, radius) { hull() { translate([radius, radius]) cylinder(r = radius, h = size[2]); translate([size[0] - radius, radius]) cylinder(r = radius, h ...
glb/cad_658cf7876e75.glb
Create a Koso Apollo Grip End Cap by combining two concentric cylindrical sections. First, create a wide, flat circular base with a diameter of 33mm and a height of 1mm. Centered on top of this base, add a second cylinder with a diameter of 28.5mm and a height of 7mm. The top edge of this inner cylinder must be rounded...
Large_Diameter = 33; Large_Thickness = 1; Small_Diameter = 28.5; Small_Thickness = 7; Corner_Radius = 3; $fn = 64; module CylinderWithRoundedTop() { rotate_extrude(angle=360) difference() { square([Small_Diameter / 2, Small_Thickness]); translate([Small_Diameter / 2 - Corner_Radius, Small_Thickness - Corner...
glb/cad_9231fc209c33.glb
Create a print-in-place crank with a popup handle. Start by constructing a main body using a hull operation between two cylinders of height 7mm: one with a diameter of 17.5mm at the origin and another with a diameter of 11mm positioned 40mm away along the x-axis. From this body, remove a central hole with a diameter of...
dia=13.5; len=40; ht=7; cl=.2; wl=2; $fn=100; od1=dia+wl*2; dia2=ht; od2=dia2+wl*2; hwf=.75; union() { difference() { hull() { cylinder(d=od1,h=ht); translate([len,0,0]) cylinder(d=od2,h=ht); } translate([0,0,-.0005]) cylinder(d1=dia+cl,d2=dia,h=ht+.001); translate([le...
glb/cad_1bab70ea43f2.glb
Create a Parametric Polygon Watch Caseback Opener by starting with a main cylinder that has a diameter of 30mm and a total height of 10mm. Carve a 10-sided polygonal hole into the bottom of this cylinder to a depth of 5mm; this polygon should have a flat-to-flat width of 25.5mm. On the top surface of the main cylinder,...
SIDES = 10; WIDTH = 25; TOLERANCE = 0.5; HEIGHT = 10; DIAMETER = 30; INSET_DEPTH = 5; NUM_DENTS = 6; DENT_HEIGHT = 4; DENT_BOTTOM = 4; DENT_TOP = 10; poly_radius = ((WIDTH + TOLERANCE)/2) / cos(180/SIDES); difference() { cylinder(HEIGHT, DIAMETER/2, DIAMETER/2); cylinder(INSET_DEPTH, poly_radius, poly...
glb/cad_49770327d47d.glb