Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a customizable mobile phone charging stand with a total height of 160mm and a width of 70mm, tilted at a 35-degree angle. The base consists of a ground plate 80mm long and 5mm thick. From this base, extend a vertical support structure that includes a shelf positioned 29mm from the bottom. The shelf should be d...
stand_width = 70; rotation = 35; shelf_height= 29; stand_height=160; stand_ground_plate_lenght=80; stiffener=1; mobile_thickness= 12; dist_shelf_ctr_charger = 65; qi_type = 1; qi_lower_dia_m = 91; qi_upper_dia_m = 89.953; qi_height_m = 10; home_btn=0; home_btn_width = 20; text_upper_switch=1; text_upper=...
glb/cad_302d30555fa4.glb
Create a Parabolic Reflector consisting of a curved parabolic shell and a central mounting tube. Start by constructing a parabolic surface with a height of 60mm and a wall thickness of 3mm. The shell should be formed by the space between two concentric paraboloids, where the outer surface has a radius of approximately ...
$fn=200; H=60; FD=30; FR=0; fc=0; WT=3.0; z_H=100; hi = (H+2*FD)/sqrt(2); difference() { union() { translate([0,FD,0])cylinder (d=9+WT,h=z_H-WT); translate([0,0,-FD*fc])linear_extrude(height=z_H,convexity = 10)translate([FR,0,0]) difference() { projection(cut = true) translate([0,0,FD...
glb/cad_69106d67719c.glb
Create a computer vacuum adapter consisting of two separate parts. The first part is a ribbed nozzle with a circular base. Create a flat disc 46mm in diameter and 2mm thick. Centered on this disc, build a tapered tower 23.9mm tall. This tower is composed of four stacked sections: the bottom three sections are each 3.6m...
difference() { translate([0, 0, 1]) union() { translate([0, 0, 17.5]) cylinder(h = 6.3, r1 = 7.1, r2 = 5.6, $fn = 50); for ( i = [0 : 3.5 : 14] ) { translate([0, 0, i]) cylinder(h = 3.6, r1 = 7.1, r2 = 5.6, center = false, $fn = 50); } cylinder(h = 2, r = 23, $fn = 100, center = true); } cylinde...
glb/cad_f907246ff802.glb
Create an N-Sided Polygon Protractor with a total length of 120mm and a thickness of 3mm. The base is a flat plate formed by the convex hull of two cylinders, each with a diameter of 8mm, positioned 112mm apart along the Y-axis. Carve a central hole through the base with a diameter of 3.43mm. From this center, remove...
length = 120; thickness = 3; nums = "180 90 45 "; $fn=100; module solid(){ hull(){ cylinder(thickness,length/15,length/15); translate([0,length*14/15-length*.2,0]) cylinder(thickness,length/15,length/15); } cylinder(thickness*3,length/35,length/35); } module body(){ diff...
glb/cad_3dc5ee6bb7f6.glb
Create a parametric computer case for a Mini-ITX motherboard. The main enclosure is an open-topped box with a height of 100mm and wall thickness of 7mm. The interior dimensions are designed to accommodate a PCB of 305mm by 244mm, with an additional 30mm of clearance added to both the width and depth, resulting in inter...
$fa = 0.1; $fs = 0.1; pcbXSize = 305; pcbYSize = 244; pcbXSpace = 30; pcbYSpace = 30; wallThick = 7; boxHeight = 100; backPanelX = 158.75; backPanelZ = 44.45; screwDiam = 3.500; screwLeng = 6.35; pcbX = pcbXSize + pcbXSpace; pcbY = pcbYSize + pcbYSpace; module screws() { makescrew([-157.48, -10.16, 0]); makescre...
glb/cad_d43b72bd3289.glb
Create a customizable text keychain by starting with a rectangular base measuring 5mm in width, 8mm in length, and 1mm in thickness. Attach a cylinder to the side of the base with a radius of 1mm and the same 1mm thickness. Pierce a hole completely through the center of this cylinder with a radius of 0.6mm. On the top ...
use <write/Write.scad> $fn=30; text="Test"; font_size=2; font_height=.5; width=5; length=8; thickness=1; ring_radius=1; hole_radius=.6; difference() { union() { cylinder(h=thickness,r=ring_radius); cube([width,length,thickness]); } cylinder(h=thickness + 1, r=hole_radius, center = true); } translate([widt...
glb/cad_db522cf4b31d.glb
Create a Customizable Test Tube Holder by first constructing a main chassis. The chassis is a rounded rectangular block formed by the convex hull of several spheres, with a total height of approximately 21mm. Subtract a large rectangular cutout from the center of the block to create a hollow interior. On the top surfa...
$fn = 24; diameter = 8; rowsOfTubes = 3; columnsOfTubes = 1; r = diameter/2; module tubeHolder() { s = .2*r+1; c = diameter+r-1; l = c*rowsOfTubes; w = c*columnsOfTubes; hull(){ translate([w,l,c*2]) sphere(s); translate([w+3,l+3,-c]) sphere(s-1); translate([w+3,-l-3,-c]...
glb/cad_30cedf24032e.glb
Create an Extrusion Catcher by starting with a 30mm cube. Hollow out the center of this cube by removing a 27mm x 27mm x 30mm rectangular section, leaving walls that are 1.5mm thick on the sides and 1.2mm thick on the bottom. On the exterior right side, add a wedge-shaped tab that is 10mm wide, 8mm deep, and 10mm high....
module wedge(x, y, z) { difference() { cube(size=[x, y, z]); rotate([0, -45, 0]) { translate([0, -1 * y, 0]) { cube(size=[x * 4, y * 4, z]); } } } } difference() { cube([30,30,30]); translate([1.5,1.5,1.2]) { cube([27,27,30]); } } difference() { translate([39,0,30]) { ...
glb/cad_3ca711181bb9.glb
Create a bathroom sink drain cover consisting of a tiered cylindrical base and a slotted upper basket. Start by forming a base that transitions from a bottom radius of 17mm to a top radius of 13.3mm over a height of 3mm, then add a central cylinder with a radius of 13.3mm extending upwards by 10mm. Cap this central sec...
$fn=90; translate([0, 0, 1]) difference() { union() { translate([0, 0, -1]) cylinder(h=3, r1=17, r2=15.2); cylinder(h=10, r=13.3); translate([0, 0, 8]) cylinder(h=3.6, r1=13.3, r2=14.5); translate([0, 0, 8+3.6]) cylinder(h=1.4, r1=14.5, r2=13.3); } for (i = [0:3]) { translate([0, 0, 13/2+2+3+.6]) rotate(i*360/3) hul...
glb/cad_ad8419562083.glb
Create a toothbrush stand consisting of a shallow rectangular tray with five vertical pegs. Start by creating a solid rectangular base 150mm long, 40mm wide, and 5mm thick. Carve out a central rectangular pocket from the top, leaving a 5mm rim around the edges; this inner cutout should be 140mm long, 30mm wide, and 3mm...
$fn=30; difference() { cube([150,40,5],center=true); translate([0,0,2]) { cube([140,30,3],center=true); } } for ( x = [-60, -30, 0, 30, 60]) { translate( [x, 0, -1.5] ) cylinder(h=15, r=2.75); translate([x,0,13.5]) cylinder(h=0.5, r=2.25); translate([x,0,13.5]) rotate_extrude() ...
glb/cad_cb216c40ac51.glb
Create a lid clip for storage boxes with a total width of 10mm and a total length of 25mm. The main body is composed of a central rectangular slab 3mm thick, centered on the X and Y axes. At one end of the length, add a vertical rectangular block 3mm wide and 11mm high, centered on the width. Along the length of the ...
Clips_Width = 10; module edge(radius, height) { difference() { translate([radius/2-0.5, radius/2-0.5, 0]) cube([radius+1, radius+1, height], center = true); translate([radius, radius, 0]) cylinder(h = height+1, r1 = radius, r2 = radius, center = true, $fn = 100); } } module ikea_samla_clips(width) { le...
glb/cad_9e2e5af13a03.glb
Create a glass holder for a PrintrBot+ printbed. Start with a solid rectangular block measuring 27.2mm in width, 22.7mm in depth, and 8.9mm in height. At the outer corner, remove a cylindrical section with a radius of 20mm and a height of 4.9mm to create a rounded profile. From the inner corner, remove a rectangular cu...
cornerRadius = 20; edgeWidth = 3; XPCBoverlap = 7.2; YPCBoverlap = 2.7; PCBHeight = 1.7; glassHeight = 3.2; coverHeight = 4; totalX = cornerRadius + XPCBoverlap + edgeWidth; totalY = cornerRadius + YPCBoverlap + edgeWidth; totalZ = PCBHeight + glassHeight + coverHeight; rotate([0,180,0]) difference() { cube( size=[...
glb/cad_5286efd7c9dc.glb
Create a glass holder for a printbed by starting with a solid rectangular block measuring 31mm in length, 27mm in width, and 8mm in height. From this base, remove a rectangular section from the top surface measuring 27mm by 23mm with a depth of 1.4mm, positioned 4mm from the front edge and 4mm from the side edge. In th...
rotate( [0, 180, 0] ) mirror( [1, 0, 0 ] ) difference() { cube( size=[31,27,8], center=false); translate( [31,27,0 ]) cylinder( h=4.5, r=20 ); translate( [4,4,0]) cube( size=[27,23,1.4], center=false); translate( [7,7,0]) cylinder( h=8, r=2 ); translate( [3.7,0,0] ) cylinder( h=2.2, r=3.3, $fs=0.2); translate...
glb/cad_672378feae69.glb
Create a glass holder clip for a printbed. Start with a solid rectangular block measuring 23.3mm in width, 34.4mm in depth, and 6.9mm in height. From the top surface, remove a cylindrical section with a radius of 20mm centered at the outer corner (23.3, 34.4) to create a rounded outer edge. Within the main body, remo...
cornerRadius = 20; edgeWidth = 3; YPCBoverlap = 11.4; XPCBoverlap = 7.3; PCBHeight = 1.7; glassHeight = 3.2; coverHeight = 2; mainScrewHoleRadius = 2; mainScrewHolePCBXdistance = 2.5; mainScrewHolePCBYdistance = 2.5; totalX = cornerRadius + XPCBoverlap + edgeWidth; totalY = cornerRadius + YPCBoverlap + edgeWidth; total...
glb/cad_afe9031d4041.glb
Create a glass holder for a printbed by starting with a solid rectangular block measuring 25.7mm in width, 34.4mm in depth, and 8.9mm in height. At the outer corner, remove a cylindrical section with a radius of 20mm and a height of 4.9mm to create a rounded profile. From the bottom face, carve out a rectangular PCB cu...
cornerRadius = 20; edgeWidth = 3; YPCBoverlap = 11.4; XPCBoverlap = 5.7; PCBHeight = 1.7; glassHeight = 3.2; coverHeight = 4; mainScrewHoleRadius = 2; mainScrewHolePCBXdistance = 2.5; mainScrewHolePCBYdistance = 2.5; totalX = cornerRadius + XPCBoverlap + edgeWidth; totalY = cornerRadius + YPCBoverlap + edgeWidth; total...
glb/cad_d424d6d76262.glb
Create a hollow cylindrical spacer with a total height of 20mm. The outer diameter of the cylinder should be 10mm, and it should feature a concentric circular hole running through the center from top to bottom with a diameter of 3.6mm. Ensure the cylinders are rendered with high resolution to appear smooth.
difference() { cylinder(r=5,h=20,$fn=100); cylinder(r=1.8,h=20,$fn=100); }
glb/cad_1e6153f5b6e5.glb
Create a hollow cylindrical spacer. Start by creating a solid cylinder with a radius of 4mm and a height of 11.5mm. Then, remove a smaller concentric cylinder from the center with a radius of 2.1mm and the same height of 11.5mm to create a tube with a wall thickness of 1.9mm. Ensure the circular profiles are smooth wit...
difference() { cylinder(r=4,h=11.5,$fn=100); cylinder(r=2.1,h=11.5,$fn=100); }
glb/cad_c31dc250e3c7.glb
Create a hollow cylindrical spacer. Start by creating a solid cylinder with a radius of 6.2mm and a height of 5mm. From the center of this volume, remove a smaller concentric cylinder with a radius of 4mm and the same height of 5mm to create a ring-shaped wall with a thickness of 2.2mm. Ensure the circular surfaces are...
difference() { cylinder(r=6.2,h=5,$fn=100); cylinder(r=4,h=5,$fn=100); }
glb/cad_2aac0cb49e5c.glb
Create a motorcycle license plate frame with an overall footprint of 189mm by 151.75mm. The main body is a flat base 5mm thick. Centered within this base, remove a rectangular section of 181mm by 108mm to create a central opening for the plate. Construct a raised border around the perimeter. The left and right side bo...
use <MCAD/fonts.scad> thisFont=8bit_polyfont(); x_shift=thisFont[0][0]; y_shift=thisFont[0][1]; plate=311.8; font_scale=2; text_depth=1; top_word="HARLEY"; bottom_word="DAVIDSON"; plate_length=181.0; plate_height=108.0; thick=5; side_border=4; side_height=13.75; side_hole=thick+(side_height-thick)/2; top_border...
glb/cad_845342c595cf.glb
Create a Jack-o-lantern eyebrow consisting of a flat base and a vertical spike. First, construct the base as a flat polygon with a thickness of 0.5mm. The vertices of this polygon should be located at [0,5], [5,0], [15,0], [20,5], [20,20], [12,50], [8,50], and [0,20] in the XY plane. Centered atop this base at position...
p1 = [[0,5],[5,0],[15,0],[20,5],[20,20],[12,50],[8,50],[0,20]]; union() { linear_extrude(height=0.5) polygon(p1); translate([10,10,0.2]) spike(); } module spike() { linear_extrude(height=20,scale=0) union() { square([2,10],center=true); square([10,2],center=true);}; };
glb/cad_f3092c2cbd42.glb
Create a Kossel-mini Heated Bed Mount and Glass Holder by constructing a small, flat mounting block. Start with a base shape that is 21.75mm long, 10.25mm wide, and 6.5mm thick. This base is formed by joining a central rectangular prism measuring 11.75mm by 10.25mm by 6.5mm with two half-cylinders of radius 5.125mm and...
width=10.25; thickness=6.5; bolt_size_mm=3; length=21.75; module block() { union() { cylinder(r=width/2, h=thickness, center=false); translate([0, -1*width/2, 0]) { cube(size=[length-width,width,thickness]); } translate([length-width,0,0]){ cylinder(r=width/2, h=thickness, center=false)...
glb/cad_c79aed457c72.glb
Create a Kossel-mini heated bed mount and glass holder by starting with a hexagonal plate that has a total width of 185mm and a thickness of 3mm. The hexagon is formed by three intersecting rectangles, each with a width of approximately 105.7mm and a length of 185mm. From the center of this hexagonal plate, remove a cy...
module hexagon(size, height) { boxWidth = size/1.75; for (r = [-60, 0, 60]) rotate([0,0,r]) cube([boxWidth, size, height], true); } difference() { hexagon(size=185,height=3); cylinder(r=85,h=4,$fn=100, center=true); rotate([0,0,60]) translate([-20,-100,-2]) cube([200,200,5]); rotate([0,0,120]) transla...
glb/cad_1defa3f19eaf.glb
Create a stool clamp consisting of two mirrored halves. For each half, start with a main C-shaped clamp body that is 40mm high. The inner gripping surface is a semi-cylinder with a diameter of 31mm and a depth of 40mm, surrounded by a wall thickness of 8mm. Attached to the open side of the C-shape is a flat rectangul...
gap_from_wall = 15; wall_height = 40; leg_width = 30; leg_oversize = 1; o_leg_width = leg_width+leg_oversize; clamp_thickness = 8; clamp_tooth_size = 4; arm_width = 10; back_plate_thickness = 3; back_plate_length = leg_width*2; screw_hole_bigger = 8; screw_hole_smaller = 4; screw_inset = 6; $fn=50; smidge = 0.1; mo...
glb/cad_e15fd5fb146a.glb
Create a Z-Bolt Y Limit Switch Spacer for a CoreXY kinematics setup. Start by constructing a main body that is a hull of four cylinders, each with a diameter of 3.7mm and a height of 24mm. Two cylinders are positioned at x = -4.75mm and two at x = 4.75mm, with y-coordinates at 0 and -10mm respectively. To this main bo...
kinematics = "CoreXY"; portal_thickness = 4; height = kinematics == "CoreXY" ? 24 : 10; tenon_height = portal_thickness - 1; tenon_gap = 0.08; tenon_d = 3 - tenon_gap * 2; hole_gap = 0.05; hole_d = 2.9 + hole_gap * 2; nozzle_d = 0.4; perimeters = round((8 - hole_d) / 2 / nozzle_d); diameter = hole_d + perimeters * nozz...
glb/cad_9430bda218ec.glb
Create a 90-degree pipe connector block. Start with a solid rectangular body with dimensions 47mm in width, 32.3mm in height, and 32.3mm in depth. Apply a 4mm chamfer to the vertical edges of this block. Subtract two cylindrical holes to accommodate the pipes. The first hole is a cylinder with a diameter of 22.3mm and...
Pipe_Diameter = 22.3; Pipe_Offset = 30; Wall_Thickness = 5; Wall_Chamfer = 4; Fixing_Bore = 6; Gap_Size = 8; $fn = $preview ? 32 : 128; module chamfer(size, c) { hull() for (s=[[1,1,0],[1,0,1],[0,1,1]]) { cube(size-2*c*s, center=true); } } module bracket90_mask( pd=Pipe_Diameter, po=Pipe_Offset, fb=Fixing_Bo...
glb/cad_df8bddc63f66.glb
Create a Parametric Pipe Connector Arm by constructing a geometric bridge between two cylindrical pipe mounts. First, create the main body as a hull encompassing three vertical cylinders, each with a height of 16mm and a diameter of 15mm, positioned to form a linear arm. At one end of this arm, integrate a cylindrica...
$fn = $preview ? 32 : 128; Default_Arm_Gap = 5; Default_Arm_Height = 15; Default_Arm_Wall = 5; Default_Arm_Bore = 4; Default_Arm_Pipe = 22; From = [-100,30]; To = [100, -40]; Pipe1 = 28.3; Pipe2 = 15.3; module stephull() { for (i=[0:1:$children-2]) hull() { children(i); children(i+1); } } module arm_mask( to, ...
glb/cad_5a1cbf9bcc08.glb
Create a comb cable holder consisting of a main cable-organizing body and two flat support brackets. For the main body, create a rectangular base 105mm long, 40mm wide, and 5mm thick. Along the length of this base, create a series of 11 evenly spaced cable slots. Each slot is formed by a rectangular prong 35mm long a...
h_w=5.0; h_h=35.0; h_e=5.0; h_l=25.0; c_l=105.0; c_w=40.0; c_e=5.0; c_s=5.0; $fn=10; module support_holder() { linear_extrude(height=h_l) union() { difference() { hull() { square([h_w,h_e]); translate([0.5*h_e,h_h-0.5*h_e]) circle(r=0.5*h_e); translate([h_w-0.5*h_e,h_h-0.5*h_e]) circle(r=0.5...
glb/cad_a2c528fbdfdf.glb
Create a parametric nut cap designed to fit a hexagonal nut. Start by creating a hexagonal prism with a flat-to-flat diameter of 11.9mm and a height of 6.5mm. Hollow out the center of this prism by removing a smaller hexagonal prism with a flat-to-flat diameter of 11.9mm and a height of 8.5mm, leaving a thin wall. On t...
$fn=100; nut=11.9; h=6.5; e=1.5; ri=sqrt(3)/2*nut/2; rie=sqrt(3)/2*(nut/2+e); module form() { translate([0,0,h/2]) difference() { sphere(r=rie, center=true); sphere(r=ri, center=true); translate([0,0,-nut/2]) cube([nut+1, nut+1, nut], center=true); } difference() { cylinder(r=nut/2+e, h=h, $fn=6, center=true);...
glb/cad_ecb971df769b.glb
Create a parametric nut cap designed to fit a hexagonal nut. Start by creating a hexagonal prism with a flat-to-flat diameter of 11.9mm and a height of 6.5mm. Hollow out the center of this prism by removing a smaller hexagonal prism with a flat-to-flat diameter of 11.9mm and a height of 8.5mm to create a socket. On top...
$fn=100; nut=11.9; h=6.5; e=1.5; ri=sqrt(3)/2*nut/2 * (1/cos(30)); rie=sqrt(3)/2*(nut/2 * (1/cos(30))+e); module form() { nut = nut * (1/cos(30)); translate([0,0,h/2]) difference() { sphere(r=rie, center=true); sphere(r=ri, center=true); translate([0,0,-nut/2]) cube([nut+1, nut+1, nut], center=t...
glb/cad_cc063f35549c.glb
Create a decorative endcap for a tube with an outer diameter of 12.7mm and a wall thickness of 0.9mm. The model consists of a visible outer cap and an internal plug. First, create the outer cap by revolving a profile around a central axis. This profile should form a rounded edge with a radius of 2mm, extending from t...
preview = 1; diameter = 12.7; wall = 0.9; p = 1.2; c = 0.4; gap = 1; cgap = 2; r_r = 2; h_p = 5; tau = 2 * PI; some_distance = 50; ms = 0.01; r_m = diameter/2; r_red = r_m - r_r; r_pm = r_m - wall + c; r_pb = r_m -wall - cgap; pna = 40; pnb = 15; pa = 5; ps = 1; rna = 180; rnb = 30; ra = 2; rs = 0.25; function...
glb/cad_f3511d259137.glb
Create a test bracket for a C14 noise filter. Start with a base plate formed by the convex hull of two overlapping rectangular prisms: one measuring 50.95mm by 27.2mm by 4.99mm centered at [3, 0, 0], and another measuring 56.95mm by 24.2mm by 4.99mm centered at [0, 3, 0]. From this base, remove a central rectangular c...
$fn=42; ox=50.2+.75; oy=24.2+.5; oz=3.99; ix=30.0; iy=21.5; difference() { hull() { translate([3,0,0]) cube([ox, 3+oy+3, 1+oz]); translate([0,3,0]) cube([3+ox+3, oy, 1+oz]); } translate([3,3,-.01]) { translate([0, 0, 1.02]) hull() { translate([11/2, oy/2, 0]) cylinder(r=11/2, h=oz); t...
glb/cad_3c439b871e3c.glb
Create a parametric computer case with a wall thickness of 5mm and an overall height of 40mm. The main enclosure is a rectangular box with internal dimensions of 130mm in width (100mm PCB width plus 30mm spacing) and 87mm in depth (72mm PCB height plus 15mm spacing). Construct the case using three walls: two side wal...
$fa = 0.1; $fs = 0.1; pcbSizeX = 100; pcbSizeY = 72; pcbSpaceX = 30; pcbSpaceY = 15; wallThick = 5; boxHeight = 40; psuSizeX = 0; psuSizeY = 140; psuSizeZ = 150; psuOpenX = 64; psuOpenZ = 117; psuFlip = X; psuFlipOff = [-psuSizeX, 0, 0]; backPanelX = 100; backPanelZ = 25; screwDiam = 3.200; screwLeng = 6.35; boxIn...
glb/cad_e8c495b18233.glb
Create a Customizable Slider Switch Cover by constructing a thin rectangular frame. Start with a solid outer rectangular plate measuring 10.3mm in width and 21.3mm in length, with a uniform height of 0.6mm. Centered within this plate, remove a rectangular inner section to create a hole that is 6.7mm wide and 8.1mm long...
use <utils/build_plate.scad> use <write/Write.scad> switch_width = 5.3; switch_length = 6.7; padding = 0.7; cover_width = 2.5; cover_length = 7.3; cover_height = 0.6; build_plate_selector = 2; build_plate_manual_x = 100; build_plate_manual_y = 100; build_plate(build_plate_selector,build_plate_manual_x,build_pl...
glb/cad_d567d92907e6.glb
Create a Pebble Clip and Bike Stem Mount consisting of three main components. First, create a central body with a height of 18mm, shaped as a rounded rectangular block approximately 56mm wide and 21mm deep. This body should feature a hollowed-out slotted area in the center to accommodate a mount. Second, add two align...
translate([0,0,1.5+33]) linear_extrude(height = 1.5, center = false) { polygon(points=[[24.03,-0.15],[23.91,-0.52],[23.73,-0.86],[23.48,-1.16],[23.19,-1.4],[22.85,-1.59],[22.47,-1.71],[22.07,-1.75],[22.07,-1.75],[22.07,-1.75],[22.07,-1.75],[22.07,-1.75],[22.07,-1.75],[22.07,-1.75],[22.07,-1.75],[22.06,-1.75],[22.06,-1...
glb/cad_9912696b371e.glb
Create a Pebble Clip and Bike Stem Mount consisting of two symmetrical halves that fit together. Each half is a block approximately 28mm wide, 13mm deep, and 33mm high. For each half, create a main body with a rounded outer profile. On the interior mating surface, add two rectangular alignment pegs, each 11mm high and...
translate([0,0,1.5+33]) linear_extrude(height = 1.5, center = false) polygon(points=[[24.03,-0.15],[23.91,-0.52],[23.73,-0.86],[23.48,-1.16],[23.19,-1.4],[22.85,-1.59],[22.47,-1.71],[22.07,-1.75],[22.07,-1.75],[22.07,-1.75],[22.07,-1.75],[22.07,-1.75],[22.07,-1.75],[22.07,-1.75],[22.07,-1.75],[22.06,-1.75],[22.06,-1.7...
glb/cad_50133b165f45.glb
Create a Pebble Clip bike stem mount. Start by constructing a main body with a height of 33mm. The overall footprint is a rounded rectangular form approximately 56mm wide and 20mm deep. In the center of the body, create a recessed slotted area designed to hold a device. This slot should be flanked by two vertical wal...
difference() { translate([0,0,1.5]) linear_extrude(height = (33/2)+.2, center = false) { polygon(points=[[27.9,0.34],[27.9,0.35],[27.89,0.36],[27.89,0.36],[27.89,0.37],[27.89,0.37],[27.89,0.38],[27.89,0.38],[27.89,0.38],[27.89,0.38],[27.89,0.38],[27.89,0.38],[27.89,0.38],[27.89,0.38],[27.89,0.38],[27.89,0.39],[27.89,0...
glb/cad_64730f01010c.glb
Create a board game accessory holder consisting of a grid of hexagonal cells. The overall layout features 7 columns and 8 rows of hexagons, though the number of cells per row alternates between 6 and 7 to create a staggered honeycomb pattern. Each individual hexagonal cell has a primary radius of 17.4mm. The cells ar...
$fn = 128; $fa = 1; hexRadius = 34.8 / 2; border = 0.45; horizontalTiles = 7 - 1; verticalTiles = 8 - 1; usedHexRadius = hexRadius + border; tileHeight = 5; taperHeight = 6; e = 0.01; module hex(radius, height, taper) { linear_extrude(height = height, scale = taper) { rotate([0, 0, 30]) { circ...
glb/cad_7325f87aaa7a.glb
Create a thumbwheel for M3 nuts. Start with a main cylinder that has a diameter of 12mm and a height of 4mm. Around the outer perimeter of this cylinder, add eight smaller cylinders, each with a diameter of approximately 2.64mm and a height of 4mm, spaced evenly every 45 degrees to create gripping knurls. From the top...
use <regular_shapes.scad> pi = 3.1427; knob_height = 4.00; knob_diameter = 12.0; knurl_count = 8; knurl_diameter = 0.7 * knob_diameter * pi / knurl_count; nut_width_flats = 5.50; make_quad_array = 1; nut_height = 2.00; hole_diameter = 4.0; diff_fudge = 0.1; $fn = 16; translate([0,0,0]) thumbwheel(); if (make_q...
glb/cad_50768172d63f.glb
Create a customizable DnD Dice Tower consisting of a storage drawer, a lower tray, an upper tray, and a tower insert. First, create a Drawer box with dimensions 140mm x 122mm x 24mm. Divide the interior into six slots, each approximately 22mm wide, using 2mm thick dividers. Add a semi-circular handle cutout in the cen...
DDie = 22; Sets = 6; LSet = 120; DMag = 4; ZMag = 2; Cutouts = true; Deco = true; thk = 2; THK = 5; part = "Tower"; Clr = .3; Tab = 2*Clr+ 4*Clr; DPin = THK*0.7; PinZ = DPin; MagBossD = DMag+thk*2; MagBossZ = ZMag+thk; DrawX = Sets*DDie + (Sets-1)*thk + 2*thk; DrawY = LSet + thk + MagBossZ; DrawZ = DDie + t...
glb/cad_a90ab713f065.glb
Create an adjustable link by designing a flat plate with a thickness of 2mm. The main body is a rounded rectangle with a total width of 6mm. Start by placing two semi-circular caps with a radius of 3mm at each end of a central rectangular section. The total length of the object is 50mm, spanning from the center of the ...
HoleSize=3; Distance1=30; Distance2=50; Thickness=2; WallWidth=100; Width=HoleSize*(1+WallWidth/50); MinDistance=min(Distance1,Distance2); MaxDistance=max(Distance1,Distance2); $fn=100; difference() { union() { cylinder(h=Thickness,r=Width/2); translate([MaxDistance,0,0]) cylinder(h=Thickness,r=Width/2); ...
glb/cad_8f65f4b732c7.glb
Create a replacement part for a manual coffee grinder consisting of a central tapered tower on a circular base. Start with a circular base 25mm in diameter and 2.64mm thick. Centered on this base, build a tapered cylinder that rises to a total height of 17.64mm; this tower should start with a diameter of 11.4mm at the ...
$fn=90; d1 = 25; da = 9.6; db = 11.4; hc = 12; difference() { union() { translate([0, 0, 2.64]) { translate([0, 0, hc+5]) cylinder(h=5, d=da); translate([0, 0, 5.2]) cylinder(d1 = db, d2 = da, h = hc); cylinder(d = db, h=5.2); cross(); } cylinder(h=2.64, d1=d1, d2=d1-.2); } #cylinder(h=50...
glb/cad_90c1db73e4c9.glb
Create a replacement leg for a Rummikub game board by combining five rectangular prisms. Start with a base block measuring 15mm wide, 15mm deep, and 3mm high, centered at the origin. Attach a second block measuring 15mm wide, 3mm deep, and 8mm high, positioned 3mm from the center along the depth axis and offset 5mm dow...
union() { translate([0,-7.5,0]) cube(size=[15,15,3]); translate([0,-3,-5]) cube(size=[15,3,8]); translate([0,0,-5]) cube(size=[15,13,3]); translate([0,13,-5]) rotate (a=[45,0,0]) cube(size=[15,3,3]); translate([0,-41.3,27.2]) rotate (a=[-40,0,0]) cube(size=[15,50,4.5]); }
glb/cad_0779de034f2d.glb
Create a scientific spatula consisting of a central handle and two different functional ends. Start by creating a central cylinder with a length of 101.6mm and a radius of approximately 2.98mm. At one end of the cylinder, attach a spoon-shaped head. Form this head by combining a sphere with a radius of 5mm, scaled by a...
x=101.6; difference(){ difference(){ union(){ difference() { union() { rotate([90,0,0]) cylinder(h=x,r=x/33.867, $fn=100, center=true); translate([0,x/1.992,1]) rotate([90,90,0]) scale([1.0,2.0,3.0]) sphere(r=x/20.32, $fn=50); } translate([0,x/1.965,x/20.32]) rotate([90,90,0]) scale([1.5,2,3.0]) sph...
glb/cad_9c3c379696f4.glb
Create a scientific spatula consisting of a thin-walled handle and a spoon-shaped head. Start by constructing a hollow cylindrical handle with an outer radius of 4mm and an inner radius of 3.35mm, extending for a length of 11.6mm. At one end of this cylinder, attach a spoon head formed by a scaled sphere. This sphere s...
x=101.6; difference(){ difference() { union() { difference() { hull() { difference() { translate([20,0,0]) { rotate([90,0,0]) cylinder(h=x-90,r=4, $fn=100); } translate([20,0,0]) rotate([90,0,0]) cylinder(h=x-90,r=3.35, $fn=100); } translate([20,13,-1]) rotate([90,90,0]) scale([1.0,2.0,3.0]) sphere(r=4...
glb/cad_bda3a0aa57df.glb
Create a scientific spatula consisting of a hollow handle and a rectangular head. Start by constructing a hollow cylindrical tube with an outer radius of 4mm and an inner radius of 3.35mm, extending to a length of 16.6mm. Attach this tube to a rectangular block that measures 8mm in width, 20mm in depth, and 3mm in heig...
x=101.6; difference(){ union() { difference() { union(){ difference() { translate([-20,0,0]) { rotate([90,0,0]) cylinder(h=x-85,r=4, $fn=100); } translate([-20,0,0]) rotate([90,0,0]) cylinder(h=x-85,r=3.35, $fn=100); } translate([-24,-5,-3.9]) cube([8,20,3]); } translate([-20,0,0]) rotate([90,0,0]) cyli...
glb/cad_22c9c87e25ee.glb
Create a scientific spatula consisting of a hollow handle and a flat rectangular head. Start by constructing a hollow cylindrical handle with an outer radius of 4mm and an inner radius of 3.35mm, extending to a total length of 16.6mm. At one end of this cylinder, attach a flat, square plate that measures 20mm in width ...
x=101.6; difference(){ union() { difference() { union(){ difference() { translate([-20,0,0]) { rotate([90,0,0]) cylinder(h=x-85,r=4, $fn=100); } translate([-20,0,0]) rotate([90,0,0]) cylinder(h=x-85,r=3.35, $fn=100); } translate([-30,-5,-3.9]) cube([20,20,3]); } translate([-20,0,0]) rotate([90,0,0]) cyl...
glb/cad_b6e387b7276b.glb
Create a scientific spatula by constructing a long, thin cylinder. The cylinder must have a total length of 101.6 mm and a radius of approximately 2.95 mm. Ensure the cylinder is smooth with a high facet resolution to maintain a circular cross-section throughout its length. Position the cylinder so that its primary axi...
x=101.6; rotate([0,0,90]) { cylinder(h=x,r=x/33.867, $fn=100); }
glb/cad_af97acf21650.glb
Create a graphic controller housing starting with a base rectangular PCB measuring 87mm by 93mm with a thickness of 1.6mm. On this base, add a second PCB layer measuring 70mm by 93mm with a thickness of 1.7mm, positioned at x=17.4. Atop this, place a rectangular LCD module measuring 51.2mm by 78.2mm with a height of 8m...
difference() { union(){ translate([17.4,0,4.2]) cube([70,93,1.7]); translate([27.1,7.6,5.9])cube([51.2,78.2,8]); translate([30,85.8,5.9])cube([43,6.27,3.4]); cube([87,93,1.6]); translate([8.7,27.8,1.6])cylinder(r=5.9,h=9.7,$fn=36); translate([8.7-(12.5/2),10-(14/2),1.6])cube([12.5,14,6.1]); translate...
glb/cad_47cbbd7f8e92.glb
Create a cylindrical box and lid with a total closed height of 100mm and an outer diameter of 25.5mm. Both parts should have a wall thickness of 3mm. For the box, create a hollow cylinder with an outer diameter of 25.5mm and a height of 47.5mm. The interior cavity should start 3mm from the base and have a diameter of ...
part = "Both"; height=100; diameter=25.5; wall_thickness=3; locking_height=5; path_relief=0.3; $fn=64; error=0.1; print_part(); module print_part() { if (part == "Box") { box(); } else if (part == "Lid") { lid(); } else if (part == "Both") { both(); } else { both(); } } module box(){ differenc...
glb/cad_78833ab0fe26.glb
Create a digital laser distance meter sight consisting of two identical frames: a front frame and a rear frame. Each frame is a thin disc with a thickness of 3mm. For each frame, create a cylindrical outer ring with a diameter of 22.4mm and a concentric circular hole in the center with a diameter of 20mm, creating a w...
part = "_all_"; form = "_cylinder_"; sight_width = 20; sight_height = 15; sight_diameter = 20; wall_thickness = 1.2; view_distance = 300; inner_sight_radius = 3; fix_thickness = 3.0; fix_heigh = 5.0; fix_lenght = 15.0; crosshairs_width = 0.8; crosshairs_length = 3.0; rear_aperture = 2.0; range_finder_widt...
glb/cad_2e752e08c68a.glb
Create a Simple Support Stand consisting of a large circular base connected to a handle and a mounting block. Start by creating a hollow ring centered at the origin with an outer diameter of 140mm and an inner diameter of 120mm, and a thickness of 20mm. Extend a cylindrical arm from the edge of this ring; the arm shoul...
difference(){ difference(){ union(){ union(){ difference(){ union(){ union(){ union(){ union(){ union(){ difference (){ union (){ cylinder(h=20, r1=70, r2=70, center = true); } cylinder (h=21, r1=60, r2=60, center = true); } rotate([90,0,90]) translate([0,0,120]) cylinder (h=120, r1=10,r2...
glb/cad_25b2457415c1.glb
Create a Simple Support Stand by constructing a main cylinder with a height of 45mm and a radius of 8mm, centered on the origin. Remove a central hourglass-shaped void from this cylinder to create a hollow interior. This void is formed by two opposing truncated cones, each 15mm tall. Position the first truncated cone f...
l=45; r=8; r1=4; r2=2; $fn=100; difference(){ difference(){ cylinder(l,r,r,center=true); translate([0,0,16])cylinder(15,r2,r1,center=true); translate([0,0,-16])cylinder(15,r1,r2,center=true); } }
glb/cad_1ec346396866.glb
Create a Simple Support Stand by constructing a central vertical cylinder with a radius of 4mm and a total height of 130mm, centered on the origin. At both the top and bottom ends of this central shaft, add two smaller cylindrical caps. Position one cap at a height of 72.5mm above the center and the other at 72.5mm bel...
l=130; r=4; $fn=100; union(){ union(){ union(){ cylinder(l,r,r,center=true); translate([0,0,72.5])cylinder(15,4,2.5,center=true); translate([0,0,-72.5])cylinder(15,2.5,4,center=true); } } }
glb/cad_159716be5278.glb
Create a Simple Support Stand by starting with a central rectangular slab measuring 200mm in length, 150mm in width, and 15mm in height. At each of the four corners of this slab, add a smaller rectangular block measuring 15mm by 15mm with a height of 15mm. Finally, create a vertical cylindrical hole with a radius of 4....
l=200; w=150; h=15; r=4.75; x=15; y=15; $fn=100; union(){ union(){ union(){ union(){ difference(){ cube(size=[l,w,h],center=true); translate([75,0,0])cylinder(h+1,r,r,center=true); } translate([92.5,67.5,-14])cube(size=[x,y,h],center=true); translate([92.5,-67.5,-14])cube(size=[x,y,h],center=true); translate([-92.5,6...
glb/cad_00360c4ee2dd.glb
Create a Simple Support Stand by constructing a central rectangular block and adding two symmetrical arms. Start with a central rectangular prism measuring 30mm wide, 40mm deep, and 30mm high, centered at the origin. On opposite ends of the Y-axis, at positions [0, 50, 0] and [0, -50, 0], place two additional identical...
difference(){ union(){ union(){ union(){ difference(){ difference(){ union(){ union(){ translate([0,-50,0]) cube (size=[30,40,30] , center=true); } translate([0,50,0]) cube (size=[30,40,30] , center=true); } translate ([0,55 ,0]) rotate([0,90,0]) cylinder(h=45, r1=8, r2=8, center=true); } translate ([0,-55 ,0]) rota...
glb/cad_c13cfeb3e3e4.glb
Create a bracket consisting of a rectangular base and a cylindrical attachment. Start with a rectangular block measuring 61.5mm in length, 13mm in width, and 8mm in height, centered on the X and Y axes. At one end of this block, centered at X=66mm, Y=0, and Z=5.9mm, add a smaller rectangular block measuring 20mm by 13m...
difference(){ union(){ translate([(12.5+22+35-8)/2, 0, 0]) cube([12.5+22+35-8, 13, 8], center=true); translate([(12.5+22+35),0, 15]) rotate(90, [1,0,0]) cylinder(r=8, h=13, center=true); translate([66,0,5.9]) rotate(-45, [0,1,0]) cube([20, 13, 8], center=true); } translate([12.5, 0, 0]) cylinder(center=true, r=2.11, h...
glb/cad_f71bcbcb6a5b.glb
Create a Chairlift Hanger Arm designed to hold a rope. The object is a flat, vertically oriented profile with a thickness of 1.8mm. Start with a main body that extends from a base at the bottom to a hook at the top. The bottom section is a rectangular base 20mm wide and 2mm thick. From this base, the arm extends upwa...
z1 = 1.8; z2 = 3; o1 = 16; w = 3; RD = 1.7; difference() { mirror([1,0,0]) hook1(); translate([1,0,-1]) cylinder(d=RD,h=20,$fn=25); } module hook1() { translate([-10,-85,0]) cube([20,2,z1]); translate([-1.3,0.5,0]) cylinder(d1=RD+.5, d2=RD, h=6,$fn=25); linear_extrude(height=z1, convexity=10) polygon( p...
glb/cad_a194893efdc6.glb
Create a customizable smooth button by constructing a circular disc with a diameter of 19mm and a thickness of 2mm. The top and bottom faces should be flat, while the outer edge is rounded with a radius of 0.8mm to create a smooth, pill-like profile. Incorporate a subtle rim around the perimeter with a height of 0.5mm....
diam = 19; thick = 2; holepos = -1; holediam = 2.0; holecount = 4; rim = 0.5; smoothby = 0.8; $fa = 1; $fs = 0.4; module Button(diam, thick=2, holepos=-1, holediam=2.0, holecount=4, rim=0.5, smoothby=0.8) { holepos_automin = 1.5*holediam/sqrt(pow(1-cos(360/holecount),2) + pow(sin(360/holecount),2)); holep...
glb/cad_b8cc3a0b5b41.glb
Create a coin battery holder designed to hold 10 batteries. The base is a rectangular block with a width of 20mm, a height of 0.8mm, and a length of 30.8mm. Along the length of this base, place 11 circular dividers spaced 3mm apart. Each divider consists of a cylinder with a radius of 10mm and a height of 0.8mm, with a...
nr = 10; battery = "CR2032"; custom_radius = 10; custom_width = 3; sizedivider = 0.8; module divider(radius) { translate([radius, 0,radius]) rotate([-90,0,0]) { difference() { cylinder(r=radius, h=sizedivider,$fn=50); translate([0,0,-0.01]) cylinder(r=radius-3, h=sizedivider +0.02); } tra...
glb/cad_2dfdb7b51211.glb
Create a purse hook for a car headrest consisting of two mirrored halves joined by a pin. First, create the seat-side attachment. Form a rectangular block 50mm long, 19mm wide, and 10mm thick. At one end, add a semi-cylindrical protrusion with a radius of 9.5mm and a height of 10mm. Remove a central cylindrical hole ...
use <pins.scad>; one_part_print=0; module BezConic(p0,p1,p2,steps=5) { stepsize1 = (p1-p0)/steps; stepsize2 = (p2-p1)/steps; for (i=[0:steps-1]) { assign(point1 = p0+stepsize1*i) assign(point2 = p1+stepsize2*i) assign(point3 = p0+stepsize1*(i+1)) assign(point4 = p1+stepsize2*(i+1)) { assign( bpoint1 ...
glb/cad_0dbb8a437932.glb
Create a RoboCup Omni Wheel hub by starting with a central cylindrical base 2mm thick with a radius of 26mm. On top of this base, add a second cylinder with a height of 1mm and a radius of 27.75mm, followed by a third tapered cylinder with a height of 1mm, a bottom radius of 27.75mm, and a top radius of 26.75mm. Remo...
Axle_Radius = 2; Mounting_Screw_Radius=1.2; Number_of_Washers = 32; Washer_Width = 2; $fn=64; difference() { union(){ cylinder(h=2,r=26); translate([0,0,2]) cylinder(h=1,r=27.75); translate([0,0,3]) cylinder(h=1,r1=27.75,r2=26.75); } for(i = [0: Number_of_Washers -...
glb/cad_abaaa224d76d.glb
Create a Dual Z Motor and Screw Mount designed for a 20mm extrusion. Start with a base plate 4mm thick. Construct a central mounting body that is 40mm wide and 60mm high, with a total base width of 94mm. Integrate a motor mount section featuring a 22.1mm diameter hole for a bearing and a 10mm diameter hole for a lead...
$fn=30; baseWidth = 94; thickness = 4; extrusion = 20; nemaSpacing = 31; bearingDia = 22.1; motorWidth = 44; screwOffset = 48; idlerDia = 12; bracketHeight = 60; cornerDia = 10; fortyWide = 40; M3 = 3; M4 = 4.1; M5 = 5; W = baseWidth; T = thickness; ...
glb/cad_dfe023c41ef9.glb
Create a case for an EFM8 development board. Start with a main rectangular block measuring 119.7mm in length, 63.7mm in width, and 10.6mm in height, featuring rounded corners with a radius of 1mm. Hollow out the center of this block to create a cavity measuring 116.5mm by 60.5mm by 9mm, leaving a wall thickness of 1.6m...
use <roundCornersCube.scad> uX=116+.5; uY=60+.5; uZ=9; wD=1.6; dPCB=2; dSO = 6; hSO = 2; dYX = 17; union(){ difference(){ roundCornersCube(uX+2*wD,uY+2*wD,uZ+wD,1); translate([0,0,-uZ/2+wD]){ translate([-uX/2,-uY/2,0]) cube([uX,uY,uZ]); translate([0,-uY/2+dYX,dPCB]) cub...
glb/cad_b86dc7e5548c.glb
Create a protective box for an ESP32-CAM module. Start by constructing a rectangular base measuring 19mm wide, 36mm long, and 2mm thick. On top of this base, centered along the length, add a rectangular block that is 19mm wide, 15mm long, and 2mm thick, positioned at a height of 7.5mm. At the front end of the base, c...
$fn = 40; module connector(wall=2, sz_x=19, sz_y=15) { translate([7+(19-sz_x)/2, 5.5+(15-sz_y)/2, 7.5]) { cube([sz_x, sz_y, wall]); } translate([26.5, 5.4, 7.4]) { rotate([0, 90, 90]) { for(y=[0, 6.4]) { translate([-10.2, 6.9+y, 7.6]) { rotate([90, 0, 0]) { difference(...
glb/cad_d17bc7dd713f.glb
Create a customizable cable holder consisting of a base plate and a circular retaining ring. First, construct the base plate by creating a shape that is a hull of a circle with a diameter of 10.4mm and a rectangle of 26mm by 10.4mm. From this base, remove a central circular hole with a diameter of 4.2mm and a rectang...
$fn=90; tol=0.2; h_in_dia=10; h_ring_wid=2.4; h_ring_thi=6.4; cus_h_thi=10.4; cus_h_offset=15; h_rot=1; cus_h_split_wid=7.4; s_in_dia=4; s_edge_wid=3.2; s_thi=3.8; cus_s_offset=13; h_out_dia=h_in_dia+h_ring_wid*2; echo("h_out_dia=",h_out_dia); s_out_dia=s_in_dia+s_edge_wid*2; echo("s_out_dia=",s_out_di...
glb/cad_5d8697e3d199.glb
Create a lathe or mill hand wheel assembly consisting of a fixed base, a spring mechanism, and a mobile top section. Start with a fixed base cylinder 20mm in diameter and 10mm high, with a central vertical hole 8mm in diameter passing through its entire height. Position a spring component above the base, consisting of ...
handle_l = 30; handle_d = 40; screw_d = 3.5; module handle(){ $fn = 40; difference(){ hull(){ cylinder(d = 8, h = 1); translate([0,0,handle_l])sphere(d = 15); } cylinder(d = screw_d, h = 10); } } module pie_slice(r=3.0,a=30) { intersection() { circle(r=r); square(r); rotate(a-90)square(r);...
glb/cad_eb5e8d624eb0.glb
Create a Customizable Satisfying Twist Container consisting of two interlocking parts: an inner twister and an outer twister. Both parts are based on a 6-sided regular polygon with rounded corners (smoothing radius of 10mm). For the outer twister, create a hollow shell with a height of 10mm. Extrude the base polygon v...
part = "both"; height = 10; twist = 120; sides = 6; radius = 16; smoothing_radius = 10; line_width = 0.4; deviation = 0.3; vertical_resolution = 0.4; chamfer_depth = 0.4; chamfer_height = 0.8; bottom_height = 0.8; wall_thickness = 0.8; compartment_number=6; total_offset = line_width + deviation; slices = ...
glb/cad_4fb26a25cec4.glb
Create a square pegboard panel 200mm wide, 200mm deep, and 5mm thick. Throughout the panel, create a grid of circular holes with a diameter of 6mm, spaced 25mm apart from center to center. If mounting features are enabled, add four rectangular mounting blocks along the edges. Each block should be 10mm wide, 3mm long, ...
Render = 0; PanelSize = 200; PanelThick = 5; HoleSize = 6; Spacing = 25; HoleCount = PanelSize/Spacing; Mounting = 0; MountWidth = 10; MountLength = 3; MountHeight = 10; MountCount = 4; ScrewSize = 3; BraceType = 1; BraceThick = 2; BraceOffset = 2; SnapThick = PanelThick/2; Tolerance = 0.2; module PegHole(){...
glb/cad_3bec59267b6b.glb
Create a short leg for an F450 quadcopter frame. Start with a main rectangular body that is 110mm long, 12mm wide, and 12mm high. At one end of this body, integrate a cylinder with a radius of 6mm and a height of 12mm, using a 24-facet resolution. Cut through the main body to create a series of structural openings. F...
module leg(){ difference(){ union(){ translate([-14,0,0]) cube([34,12,12]); translate([-14,6,0]) cylinder(h=12, r=6, $fn=24); translate([70,-70,0]) cube([10,3,7]); translate([67,-67,0]) cube([10,3,7]); translate([0,0,0]) rotate([0,0,-45]) cube([110,3,7]); translate([16,0,0]) rotate([0,0,-48]...
glb/cad_3911c9081674.glb
Create a gimbal for a Boscam HD19 camera. Construct the main body by combining several rectangular blocks: one measuring 3.5 by 29 by 18mm positioned at [0, -1, 0], another 3.5 by 35 by 18mm at [54, -7, 0], a 4 by 35 by 3mm block at [57, -7, 0], and a 44.5 by 3.5 by 18mm block at [6.5, 31, 0]. Add two angled blocks rot...
$fn=20; module body(){ difference(){ union(){ translate([0,-1,0]) cube([3.5,29,18]); translate([54,-7,0]) cube([3.5,35,18]); translate([57,-7,0]) cube([4,35,3]); translate([6.5,31,0]) cube([44.5,3.5,18]); translate([0,28,0]) rotate([0,0,-45]) cube([4,9.2,18]); translate([48.2,31.65,0]) rot...
glb/cad_dcc67d0265de.glb
Create a gimbal stand for a Boscam HD19 camera. Start with a base plate that is 50mm long, 28mm wide, and 1mm thick, with rounded corners having a radius of 5mm. On top of this base, center a rectangular block that is 41.5mm long, 13mm wide, and 7mm high. Attached to the top of this central block, place two smaller ver...
$fn=20; module stand(){ difference(){ union(){ minkowski(){ translate([5,5,0]) cube([40,28,1]); cylinder(r=5); } translate([0,12,0]) cube([41.5,13,7]); translate([0,12,0]) cube([7.5,13,20]); translate([34,12,0]) cube([7.5,13,20]); } translate([10,6,0])cylinder(h=3, r=4); tr...
glb/cad_195f8427ba0a.glb
Create a gimbal disk for a Boscam HD19 camera. Start by constructing a main cylindrical base with a radius of 11mm and a height of 3mm, centered at coordinates (3.53, 6.15, 0). On top of this base, add a second, smaller concentric cylinder with a radius of 5mm and a height of 2mm, starting at a height of 3mm. To creat...
$fn=20; module disk(){ difference(){ union(){ translate([3.53,6.15,0]) cylinder(h=3, r=11, $fn=100); translate([3.53,6.15,3]) cylinder(h=2, r=5, $fn=50); } translate([3.53,6.15,2.5]) cylinder(h=3, r=2.4); translate([3.53,6.15,0]) cylinder(h=1.5, r=2.4); translate([3.53,6.15,0]) cylinder(h=4, r=1.3); tr...
glb/cad_6e7f19259d88.glb
Create a gimbal bearing disk for a Boscam HD19 camera. Start by constructing a main cylindrical base with a radius of 11mm and a height of 3mm. Centered on top of this base, add a smaller concentric cylinder with a radius of 5mm and a height of 2mm. From this combined solid, remove several cylindrical holes to create m...
$fn=20; difference(){ union(){ translate([3.53,6.15,0]) cylinder(h=3, r=11, $fn=100); translate([3.53,6.15,3]) cylinder(h=2, r=5, $fn=100); } translate([3.53,6.15,0]) cylinder(h=3, r=3.5, $fn=6); translate([3.53,6.15,0]) cylinder(h=5, r=1.8); translate([0,0,0]) cylinder(h=5, r=1.75); translate([0,12.3...
glb/cad_2e4e25077748.glb
Create a gimbal stand for a Boscam HD19 camera. Start with a base composed of three joined rectangular blocks: one measuring 54x15x6mm, one measuring 41.5x12x11mm positioned at the origin, and two vertical pillars measuring 7.5x7x25mm, with one pillar located at the origin and the other at x=34mm. Remove several holes...
$fn=20; module stand(){ difference(){ union(){ translate([0,0,0]) cube([54,15,6]); translate([0,0,0]) cube([41.5,12,11]); translate([0,0,0]) cube([7.5,7,25]); translate([34,0,0]) cube([7.5,7,25]); } translate([10,10,-1])cylinder(h=30, r=1.8); translate([44,10,-1])cylinder(h=30, r=1.8);...
glb/cad_130d50dd6496.glb
Create a two-piece customizable case for an Odroid-H2 single board computer. The overall external dimensions are 130mm x 120mm x 65mm when configured for a 9.5mm thick 2.5" disk drive. Construct the bottom part as a base plate 130mm x 120mm with a height of 2.5mm. Add a front panel 110mm wide and 15.5mm plus the disk ...
enable_top = true; enable_bottom = true; disk_height = 9.5; enable_wall_mounts = true; mb_screw_diameter = 3.5; case_screw_diameter = 2.5; status_led_cutout = true; disk_mount_x = 39.5; disk_mount_y = 23; enable_mainboard = false; enable_disk = false; include <honeycomb.scad> $fn = 25; module standoff(x, y,...
glb/cad_e382cdb93447.glb
Create a bearing puller tool by starting with a chamfered rectangular block measuring 40mm in width, 23mm in height, and 15mm in depth. The chamfer size for the outer edges is 4mm. From this main body, remove a central rectangular section to create a U-shaped channel. This cutout should be 32mm wide, 19mm high, and 1...
width = 32; depth = 15; height = 20; thickness = 4; screw_d = 6.2; nut_width = 10; difference(){ union(){ chamferCube([width+2*thickness, height+2*thickness, depth]); } translate([thickness,-3,-2])chamferCube([width, height+thickness+3, depth+4], ch = 2); #translate([width/2+thickness,0,depth/2])rotate([-90...
glb/cad_eac3fd1c285f.glb
Create a hollow funnel with a wall thickness of 1mm. Start with a base cylinder 20mm in diameter and 6mm high. On top of this base, add a conical section that transitions from the 20mm base diameter down to a 6.7mm diameter over a height of 6mm. Atop the conical section, add a vertical cylinder with a diameter of 6.7mm...
$fn = 90; d_ext=20.0; d_small = 6.7; h_fun_1=6.0; h_fun_2=6.0; h_fun_3=20.0; th_alu=1.0; empty = true; module funnel(d1, d2,h1,h2,h3,th,empty=true){ union(){ difference(){ cylinder(h=h1, d=d1); if (empty) translate([0,0,-1]) cylinder(h=h1+2,d=d1-2*th); ...
glb/cad_01f5f6a809dd.glb
Create a rectangular mount plate for two power switches with overall dimensions of 70mm wide by 55mm long and a height of 10mm. Cut two identical switch openings into the top face. Each opening consists of a front rectangular frame measuring 25.8mm wide by 31.8mm long with a depth of 2mm. Centered within each of thes...
SwitchHoleWide = 21.5; SwitchHoleLong = 28.4; SwitchHoleDeep = 28; PlateMinThick = 2; SwitchFrontWide = 25.8; SwitchFrontLong = 31.8; SwitchFrontDeep = 2; SwitchPlateHigh = 10; SwitchPlateWide = 70; SwitchPlateLong = 55; QuadScrewWide = 55; QuadScrewLong = 40; module SwitchPlateDual() { difference() { ...
glb/cad_82050736d6a8.glb
Create a Fibonacci Spiral Clock consisting of a rectangular dial and two pointer hands. Construct the dial as a rectangular plate 190mm high, 70mm wide, and 2mm thick. Center a circular hole with a 7.7mm diameter through the plate. On the face of the dial, create a series of cut-out slots and embossed numbers. The sl...
part= "dial"; diameter_hour_pointer_hole = 5.5; thickness_hour_pointer = 2; width_hour_pointer = 2; diameter_hour_pointer_ring = 18; diameter_minute_pointer_hole = 3.7; diameter_minute_pointer_ring = 7; thickness_minute_pointer_ring = 3; thickness_minute_pointer = 2; width_minute_pointer = 2; dial_height = 19...
glb/cad_06771045701e.glb
Create a Minimal Hexagon Earring consisting of a hexagonal base and three decorative triangular prisms on top. Start by creating a regular hexagonal prism with a point-to-point diameter of 24mm and a height of 2mm. On top of this base, place three equilateral triangular prisms, each with a height of 1.5mm and a radius ...
size=24; bot_thick=2; top_thick=1.5; tol=.01; triangles = [ [-size/4,-size/7,bot_thick-tol, 30], [size/4,-size/7,bot_thick-tol, 30], [0,size/7,bot_thick-tol, 90] ]; cylinder(r=size/2,h=bot_thick,$fn=6); for (p = triangles) translate([p[0],p[1],p[2]]) rotate([0,0,p[3]]) cylinder(r=size/3.475,h=top_thick,$fn=3)...
glb/cad_e53b77043dc3.glb
Create a Cable Box with internal dimensions of 150mm width, 100mm depth, and 50mm height. The box should have a wall thickness of 1.2mm. All exterior vertical corners must be rounded with a 3mm radius. The floor of the box is not solid; instead, create a hexagonal honeycomb pattern across the base. Each hexagon should...
x=150; y=100; z=50; ws=1.2; hexr=12; cfd=30; $fn=100; s=[x, y, z]; module cubeR(v, r=1) { assert(r<=v.x/2 && r<=v.y/2 && r<=v.z/2); hull() { translate([ r, r, r]) sphere(r=r); translate([v.x-r, r, r]) sphere(r=r); translate([ r, v.y-r, r]) sphere(r=r); translate([v....
glb/cad_02d08635465b.glb
Create a storage box for terrain tiles by constructing a hollowed-out prismatic container with a total depth of 70mm. The cross-section of the box is based on a hexagonal geometry derived from tiles with a 15mm radius and 2mm thickness. The outer walls should be 1mm thick. The main body is a linear extrusion 68mm lon...
tile_radius = 15; tile_height = 2; depth = 70; wall_thickness = 1; clearance = 0.25; module cross_section( hollow) { r = tile_radius + clearance*2; dx = sin(60) * r; dy = cos(60) * r; odx = dx + wall_thickness; ody = dy + tan(30) * wall_thickness; or = r + wall_thickness / cos(30); expose = 5; modul...
glb/cad_192844fdccc5.glb
Create a Celtic shield by revolving a specific 2D cross-section around a central vertical axis. The main body is a curved shell with a radius of 50mm, a thickness of 1.5mm, and a maximum central height of 10mm. The cross-section begins at the center with a rounded boss of 8mm radius. From the boss to the outer edge, ...
Radius = 50; CurveHeight = 10; Thickness = 1.5; Boss = 8; RimHeight = 1.5; RimWidth = 1; RimSupportD = 1; RimSupportW = 5; RidgeNumber = 7; RidgeSize = 0.5; SmallBoss = 1; InnerBoss = 23; BossIncr = 11; HandleWidth = 2; CurveRadius = (Radius*Radius + CurveHeight*CurveHeight)/(2*CurveHeight); Centre = CurveRa...
glb/cad_8e06706af9a2.glb
Create a metric T-nut by combining two centered rectangular prisms. The first prism, forming the narrow neck, measures 14mm in width, 28.5mm in length, and 15.2mm in height. The second prism, forming the wide base, measures 22mm in width, 28.5mm in length, and 8mm in height, and is positioned so its top face aligns wit...
use <threads.scad> thread_diameter = 12; thread_pitch = 1.75; thread_length = 20; small_cx = 14; total_height = 15.2; wide_cx = 22; wide_cz = 8; length = 28.5; groove_diameter = 1.2; groove_translation = 0.3; difference() { union() { cube([small_cx,length,total_height], center=true); transl...
glb/cad_ce8d95ff1920.glb
Create a leveling calibration sheet centered on a 140mm by 140mm square area with a thickness of 0.3mm. The main body consists of a thin outer frame and a series of internal lines. Create a thin square border 140mm wide and 140mm deep. Inside this border, draw four diagonal lines that cross at the center, each 1mm wide...
translate(v=[0,0,0.15]) union() { difference() { cube(size=[140,140,0.3],center=true); cube(size=[139,139,0.3],center=true); } intersection() { cube(size=[140,140,0.3],center=true); union() { for (i=[0:3]) rotate(a=45*i,v=[0,0,1]) cube(size=[1,500,10],center=true); for (i=[-1:1]) for (j=[-1:1]) transl...
glb/cad_65054d2e192f.glb
Create a coffee table foot consisting of four vertical cylinders bundled together. Each of the four outer cylinders must have a radius of 5.75mm and a height of 20mm. Position these four cylinders such that their centers are located at the corners of a square with a side length of 9.5mm, centered on the origin. To cap ...
$fn=50; ofs=9.5/2; difference() { union() { for (x=[-ofs,ofs]) { for (y=[-ofs,ofs]) { translate(v=[x,y,20]) cylinder(h=2,r=11.5/2+1); translate(v=[x,y,0]) cylinder(h=20,r=11.5/2); } } } union() { for (x=[-ofs,ofs]) { for (y=[-ofs,ofs]) { translate(v=[0,0,2]) { translate(v=[x,y,0]) c...
glb/cad_f8d540aae16c.glb
Create a coffee table foot by starting with a central body that is a combination of two cylinders. The base is a cylinder with a bottom radius of 11mm and a top radius of 13mm, reaching a height of 11mm. On top of this, add a second cylinder with a radius of 13mm and a height of 5mm, centered at a height of 10mm. Car...
$fn=50; ofs=9.5/2; intersection () { translate(v=[-10,-10,0]) cube(size=[20,20,20]); difference() { difference() { union() { cylinder(h=11,r1=11,r2=13); translate(v=[0,0,10]) cylinder(h=5,r=13); } translate(v=[0,0,5.5]) difference() { cylinder(h=2,r=15); union() { cylinder(h=3,r1=8.4,r2=8.8); ...
glb/cad_c45005384d6e.glb
Create a Parametric Earbud Spool consisting of two identical circular components. For each component, start with a base disk 28mm in diameter and 2mm thick. Remove a concentric cylindrical core from the center with a diameter of 13mm. Build a wall extending upward from the inner rim of the disk to a total height of 20m...
draw_plate = true; draw_top = true; draw_bottom = true; draw_full_object = false; diameter = 28; inner_diameter = 13; wall_thickness = 2; spool_width = 20; divot_length = 5; bottom_inner_diameter = inner_diameter + 3; top_inner_diameter = inner_diameter; module bottom() { union() { difference() { linear_extr...
glb/cad_75d0fabb5854.glb
Create a movable, H-bonded polypeptide model consisting of a chain of residues. Each residue is composed of atoms represented by spheres and bonds represented by cylinders. For the rotatable bonds, create a print-in-place joint using a male and female connector system. The male connector is an octagonal prism with a r...
NCap = false; CCap = false; terminalOnly = false; caTop = false; caBase1 = false; caBase2 = false; amideOnly = false; debugRotBond = false; $fn = 8; tubes=true; support=true; atomScale=0.8; defaultAtomRadius = 0.77; bondRadius = (tubes ? defaultAtomRadius * atomScale : 0.4); jBondRadius = defaultAtomRadius * ato...
glb/cad_8cf10c1ecb26.glb
Create a pond pump enlarging adapter consisting of two stacked cylindrical sections with a continuous hollow center. Start with a bottom cylinder 20mm high with an outer diameter of 12mm. Add four thin, concentric rings (barbs) around this bottom section, each 2mm high, with a slight taper increasing the outer diameter...
module pumpAdapter() { height_small = 20.0; height_large = 20.0; ir = 4.8; od_large = 25.0; od_small = 12.0; or_large = od_large/2.0; or_small = od_small/2.0; $fn = 128; difference() { union() { color("green") cylinder(h=height_small, r=or_small, center=1); translate([...
glb/cad_58e992a67f5e.glb
Create a linear actuator for a servo motor consisting of a flat, cam-like base and a rectangular pusher arm. Start by creating a base plate with a thickness of 5mm. The base is a modified cylinder that transitions in radius based on its rotation: from an angle of 180 to 270 degrees, the radius increases linearly from...
start_height = 10; end_height = 20; start_angle = 180; end_angle = 270; thickness = 5; axis_diameter = 3; top_suface = 1; bearing_diameter = 11; bearing_displacement = 0; demo_mode = 1; demo_angle = 180; module z_lift_translate(r0, r1, a0, a1, angle) { assign ( r = (angle<=a0) ? ...
glb/cad_9e089e47fc07.glb
Create an FPV Transmitter Stand for a Boscam 5.8GHz 200mW AV Tx. Start by constructing a main body that is 50mm wide, 27mm deep, and 27mm high. This body is formed by a central block with two vertical side walls, each 14mm wide and 27mm high, positioned at the left and right edges. The base is rounded with a 6mm radius...
$fn=20; difference(){ union(){ minkowski(){ translate([6,6,0]) cube([34,2,2]); cylinder(r=6); } translate([9,0,0]) cube([27,3,27]); translate([10,0,0]) cube([3,14,27]); translate([32,0,0]) cube([3,14,27]); translate([6,-5,0]) cube([3,8,27]); translate([36,-5,0]) cube([3,8,27])...
glb/cad_88d48595e1d6.glb
Create a transmitter stand for a Boscam 5.8GHz 200mW AV Tx. Start by constructing a base plate that is 52mm long, 20mm wide, and 6mm thick. At each end of the base, center a vertical cylindrical pillar with a radius of 6mm and a height of 6mm. Rising from the center of the base, build a rectangular housing that is 27...
$fn=30; difference(){ union(){ minkowski(){ translate([6,6,0]) cube([34,2,2]); cylinder(r=6); } translate([6,8,0])cylinder(h=6, r=6); translate([40,8,0])cylinder(h=6, r=6); translate([9,0,0]) cube([27,3,28]); translate([10,0,0]) cube([3,14,28]); translate([32,0,0]) cube([3,14...
glb/cad_52aed52d0e70.glb
Create a llama-shaped cookie cutter based on a 2D llama profile. The model consists of two main sections: a wide base lip and a vertical cutting wall. First, create a flat base lip by extruding the llama profile to a height of 3mm, with the outer edge of this lip extending 5mm beyond the profile's perimeter. Then, crea...
filename = "llama.4.dxf"; cutter_height = 20; cutter_thickness = 3; cutter_lip = 5 + cutter_thickness; * render() slim_cookie_cutter(); render() blocky_cookie_cutter(); module slim_cookie_cutter() { difference() { union() { minkowski() { linear_extrude(height=0.001, center=false) render_exteri...
glb/cad_a39dc76d705c.glb
Create a hex bit holder and peg solitaire board. The main body is a thick, roughly octagonal slab with a height of 13.95mm. The top surface is flat, while the bottom is slightly tapered. On the top face, create a grid of 33 hexagonal holes, each with a diameter of 8.5mm. These holes are arranged in a cross-like patte...
part = 0; distance = 11; magnet_diameter = 7; magnet_height = 2.8; bit_height = 25; bit_diameter = 7; md = magnet_diameter + 1; mh = magnet_height + .2; $fn = $preview ? 9 : 90; base_height = 1.4; D = bit_diameter + 1.5; H = (bit_height + 1) / 2 + base_height; step = distance < ceil(D) ? ceil(D) : distance; %trans...
glb/cad_f04d74bb08d3.glb
Create a Cubicle Wall End Hook designed to clip onto a panel. Start with a central horizontal arm that is 60mm long, 15mm wide, and 10mm high. At the front end of this arm, add a vertical hook section that is 10mm deep, 15mm wide, and 20mm high. At the rear end of the arm, create a clipping mechanism consisting of two ...
arm_length=60; arm_width=15; arm_height=10; hook_length=20; hook_depth=10; clip_depth=10.25; clip_width=80; catch_height=7; catch_length=5; f=0.001; fillet=3; module dup(v) { children(); mirror(v) children(); } translate([0,0,arm_height/2]) cube([arm_length+f,arm_width,arm_height],center=true); translate([a...
glb/cad_670f440c742b.glb
Create a pair of lab safety glasses by constructing two mirrored frames. For one side, start with a base composed of a 42mm by 10mm by 5mm rectangular block and a larger 45mm by 36mm by 5mm block positioned at x=-65, y=-26. Within this structure, create a lens opening by removing a cylinder with a 20mm radius and a 5mm...
$fn=50; union(){ difference(){ difference(){ union(){ translate([0,-10,0])cube([42,10,5],center=false); translate([-65,-26,0])cube([45,36,5],center=false); difference(){ difference(){ difference(){ translate([42,-20,0])cylinder(r=20,h=5); translate([37,-27,0])cylinder(r=17,h=5);} translate([22,-20,0])cube([15,20,5],ce...
glb/cad_5147114b148c.glb
Create a pair of lab safety glasses frames. Start with a main front frame centered on the X-axis, consisting of a rectangular block 160mm wide, 70mm deep, and 10mm thick. Modify this block by removing a large central section to create the lens openings, leaving a frame border. The top edge of the frame should be flat, ...
$fn=50; union(){ difference(){ difference(){ difference(){ translate([0,0,0])difference(){ difference(){ translate([-80,-35,0]) cube([160,70,10], center=false); minkowski(){ linear_extrude(height=5) polygon(points=[[-20,-35],[20,-35],[0,0]]); cylinder(r=2,h=5); } } translate([0,0,-3])linear_extr...
glb/cad_aec18c9a9034.glb
Create a parametric funnel with a wall thickness of 1.5mm, consisting of three stacked conical sections. The top mouth section is a hollow cylinder 10mm high with an internal diameter of 50mm. This transitions into a middle section 20mm high that tapers from an internal diameter of 48mm at the top to 10mm at the bottom...
hm=10; dm=50; ht=20; dtt=48; dtb=10; hs=20; ds=5; tab=1; tw=15; tl=20; thd=5; tlh=10; thq=100; t=1.5; q=100; irm=dm/2; irtt=dtt/2; irtb=dtb/2; irs=ds/2; erm=irm+t; ertt=irtt+t; ertb=irtb+t; ers=irs+t; thr=thd/2; difference(){ union(){ translate([0,0,hm/2])cylinder(h=hm,r1=erm,r2=ertt,center=true,$f...
glb/cad_cffe5c694c87.glb
Create a Generic Clip board mount consisting of a main holder and a separate removable clip. For the main holder, create a rectangular frame with an outer width of 49.5mm and a total length of 55mm. The frame is constructed from walls 2.5mm thick. Position four support gnubs at the corners; each gnub is a 5mm cube wi...
width_base = 33.5; length_base = 45; board_width = 39.5; pads = true; holes = false; thick = 2.5; width = board_width + thick*4; gnub_size = 5; gnub_inset_x = (width - width_base - gnub_size) / 2; gnub_inset_y = 0; gnub_length = 5; gnub_radius = 1.2; length = length_base + gnub_inset_y*2 + gnub_size; pad_size = 15;...
glb/cad_25eaf617795a.glb