Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a minimalist reading glasses case by constructing a hollowed-out elliptical tube. Start by creating a solid elliptical cylinder with a total length of 134mm. The cross-section should be an ellipse with a major axis of 44mm and a minor axis of 22mm. From the center of this volume, remove an inner elliptical cylin...
glassesWidth = 130; glassesHeight = 40; caseThickness = 2; $fs = 0.4; $fa = 1; rotate([180,0,0])difference() { linear_extrude(height=glassesWidth + caseThickness) scale([2,1,1]) circle(d=glassesHeight/2 + caseThickness); linear_extrude(height=glassesWidth) scale([2,1,1]) circle(d=glassesHe...
glb/cad_49ca17ec0ea9.glb
Create a customizable door stop by constructing a base shape and removing a large section of it. Start with a composite object consisting of a cylinder with a height of 20mm and a radius of 10mm, a rectangular block measuring 20mm by 160mm by 20mm centered at [0, 80, 0], and another rectangular block measuring 120mm by...
widgetWidth = 20; widgetThickness = 20; widgetHeight = 50; stepSize = 3; module theL(theWidth, theThickness, theHeight, theStep) { cylinder(h=theWidth, r=theThickness/2, center=true); translate(v=[0, 80, 0]) cube(size=[theThickness, 160, theWidth], center=true); translate(v=[60, 0, 0]) cube(size=[120, theThickne...
glb/cad_f706df5fc4c6.glb
Create a Bartscher compatible support bracket. Start with a main body based on a 2D profile with vertices at [0, -1], [11, -1], [11, -7.2], [2, -16.4], and [0, -16.4] in mm. Extrude this profile to a total width of 9.6mm (11.6mm minus a 2mm radius for rounded edges) and apply a 1mm fillet to all exterior edges. At the...
clearance_handle = 2.1; support_thickness = 3; $fn=30; points = [ [0,0-1], [12-1,0-1], [12-1,-7.2], [2,-16.4], [0,-16.4]]; difference() { union() { difference() { rotate([90,0,0]) translate([0,0,-(11.6-2)/2]) round_edge(1) linear_extrude(height=(11.6-2)) polygon(points); translate([-2,0,0]) cube([4,100,100...
glb/cad_4be01ce5208a.glb
Create a pin connector with a total length of 67mm. The main body is a shaft with a radius of 3.5mm, constructed as a 30-sided prism. At both ends of the shaft, create a head that is 4mm long; each head consists of a conical section tapering from a radius of 2.625mm to 4.1mm, topped with a short 1mm cylinder of 4.1mm r...
pin_length = 67; pin_radius = 3.5; pin_head_length = 4; pin_head_lip = 0.6; slot_length = 10; slot_width = 2; sides = 30; flat = 0.2; total_pin_radius = pin_radius + pin_head_lip; module pin_head() { union() { cylinder( r1 = pin_radius*0.75, r2 = pin_radius+pin_head_lip, h = pin_head_length*2/4, $fn = side...
glb/cad_55b54d098d67.glb
Create an Alternating Flexing Battery Holder designed for 18.650 cells. The model consists of a main rectangular body with a length of 65.5mm and a width based on a cell diameter of 18.4mm. Construct the main body as a chamfered cube. Carve out a central cylindrical cavity to house the battery, with a depth of approx...
Diameter = 18.4; Length = 65.5; Serial = 2; Parallel = 1; Alternating = 1; Wallcut = 0.75; Cutwidth= 0.25; Clip = 0.4; ew=0.45; eh=0.15; w = (m>1?6:4)*ew; wz = 2; ws = 2*ew; ch = ws; flexbatter(n=Parallel,s=Alternating,m=Serial,deepen=Wallcut,df=Cutwidth,oh=Clip,l=Length,lcorr=1.6,d=Diameter,hf=0.80,shd=2...
glb/cad_72a74c2a4483.glb
Create a Customizable Parametric Drill Driver Bit Holder. Start by creating a solid rectangular base block with a height of 7mm. The overall length and width of the block are determined by a 5x5 grid of bit cells, where each cell is based on a bit width of 7.75mm and a spacing of 1mm between cells, resulting in a total...
length = 5; width = 5; height = 7; spacing = 1; cell_rotation = 0; solid_bottom = "Yes"; rounded_corners ="No"; corner_radius = 3.5; bit_width = 7.75; module cell(col_num, row_num) { translate( [col_num * (bit_width + spacing) - (bit_width + spacing)/2 * (length - 1) , row_num * ...
glb/cad_4615cb2c29f3.glb
Create a DM-Screen Initiative Tracker consisting of a base, a cover, and interchangeable plates. First, construct the tracker base as a rectangular block measuring 19mm wide, 40mm long, and 1mm high. Add a mounting rail to the bottom of this base by attaching a rectangular prism that is 23mm long, 1.7mm wide, and 1.7...
card_length = 40; font_family="Sans"; font_style="Bold"; text_align = "H"; text_lines = 1; line_1_text = "foo"; line_2_text = "foo"; line_3_text = "foo"; line_4_text = "foo"; line_1_text_size = [7,7,7,7]; text_offset = [0, 0, 0, 0]; card_width = 19; card_height = 1; hold_length = 23; hold_width = 1.7; hold_h...
glb/cad_d8b01f7b5aee.glb
Create a battery holder for CR2032 cells. The main body is a rectangular block with a width of 25mm, a height of 14mm, and a length calculated by 10 slots. Each slot consists of a space for a battery with a thickness of 3.5mm and a spacer of 1.5mm between them, totaling a length of 50mm. The block features a large sem...
battery_diameter_mm = 20; battery_height_mm = 3.2; front_text="CR2032"; side_text="CR2032"; slots = 10; nb_column = 1; make_hole=1; spacer = max(1.5,30/battery_diameter_mm); thickness = battery_height_mm+0.3; external_length = ((thickness + spacer) * slots) + spacer; column_width = battery_diameter_mm+5; externa...
glb/cad_9d806d553639.glb
Create a Strap Clamp Corner Bracket designed to hold a strap at a 90-degree angle. The bracket consists of two symmetrical arms meeting at a central corner. Each arm is 60mm long and has a total height of 44mm (calculated as the 40mm strap width plus 2mm thickness on each side). The main body of each arm is 2mm thick...
StrapWidth = 40; StrapThickness = 3; ClampThickness = 2; ClampLength = 60 ; ClampAngle = 90; difference() { CornerBracket(); hull() { cylinder(h = StrapWidth + ClampThickness * 2, r=ClampThickness * .5 , $fs=0.01); translate([ClampThickness , -ClampThickness , 0]) cylinder(h = StrapWidth + ClampThicknes...
glb/cad_0b12036097da.glb
Create a Customizable Cable Holder by constructing a base volume and removing specific geometric sections. Start with a central cylinder that has a radius of 4mm and a height of 4mm, oriented along the Y-axis. Add to this a larger cylinder with a radius of 4mm and a height of 4mm, centered at X=3.8, Y=0, Z=0 and orient...
Width=4; NailDiameter=1.6; CableDiameter=6.0; Thickness=1; CutLengthBottom=0.1; CutLengthSide=1; Resolution=100; Geometry=8; NailHeadDiameter=2.5; CountersinkDepth=1.2; Countersink="Normal"; Manifoldfix=0.1; translate([0,0,Width/2]) rotate(a=[90,0,0]) difference(){ BaseVolume(); CutVolume(); if (Countersink=="An...
glb/cad_9312ab00624b.glb
Create a cable spool consisting of a base and a lid. The base is a cylinder with a height of 19.2mm and an outer radius of 24.75mm. At the center of the base, create a hub with a radius of 14mm and a height of 18mm. The hub features a complex "yin-yang" style internal cavity and a series of small circular holes pattern...
r=14; hi=18; cord = 7; cordmargin = 1; conn=10; length=1600; w=.55*5; t=0.24*5; snap=w*0.6; openings=2; tol=0.11; $fa=5; $fs=3; base(); translate([2*ro+3*w,0,h+t])rotate([180,0,0])lid(); tp=cord*cord/hi; turns=-r/tp+sqrt(r*r/tp/tp+length/3.1416/tp); layers = ceil(turns*cord/hi); echo("exact layers",turns*cord/hi);...
glb/cad_7df92683195a.glb
Create a cable spool consisting of a base and a lid that fit together. The base is a cylinder with a height of 16.72mm and an outer radius of 21.65mm. At its center, create a hub with a radius of 10mm and a height of 16mm. This hub features a "yin-yang" style internal geometry, consisting of two interlocking curved sec...
r=10; hi=16; cord = 4; cordmargin = 1; conn=15; length=1500; w=.55*3; t=0.24*3; snap=w*0.8; openings=2; tol=0.12; $fa=6; $fs=4; base(); translate([2*ro+3*w,0,h+t])rotate([180,0,0])lid(); tp=cord*cord/hi; turns=-r/tp+sqrt(r*r/tp/tp+length/3.1416/tp); layers = ceil(turns*cord/hi); echo("exact layers",turns*cord/hi);...
glb/cad_c0fa7e4068ad.glb
Create a cable spool consisting of a base and a lid. The base is a cylinder with a height of 16.72mm and an outer radius of 21.65mm. At the center of the base, create a hub with a radius of 15mm and a height of 16mm. This hub features a "yin-yang" style internal geometry with curved walls to guide the cable. The base i...
r=15; hi=16; cord = 5; cordmargin = 1; conn=15; length=1500; w=.55*3; t=0.24*3; snap=w*0.8; openings=2; tol=0.12; $fa=4; $fs=1; base(); translate([2*ro+3*w,0,h+t])rotate([180,0,0])lid(); tp=cord*cord/hi; turns=-r/tp+sqrt(r*r/tp/tp+length/3.1416/tp); layers = ceil(turns*cord/hi); echo("exact layers",turns*cord/hi);...
glb/cad_2a543333a8d7.glb
Create a cable spool consisting of a base and a lid. For the base, start with a circular hub of radius 30mm and height 16mm. The hub features a "yin-yang" style internal channel to hold the cable. Add a bottom disk with a thickness of 0.96mm. Around the perimeter of the base, incorporate a snap-fit rim and a series o...
r=30; hi=16; cord = 6; cordmargin = 1; conn=15; length=4000; w=.55*3; t=0.24*4; snap=w*0.8; openings=2; tol=0.12; $fa=4; $fs=1; rotate([180,0,0])lid(); tp=cord*cord/hi; turns=-r/tp+sqrt(r*r/tp/tp+length/3.1416/tp); layers = ceil(turns*cord/hi); echo("exact layers",turns*cord/hi); echo("using layers",layers); ro = r...
glb/cad_97d6efd4e655.glb
Create a cable spool consisting of a base and a lid. The hub radius is 17mm, the internal height is 16mm, and the wall thickness is 2.75mm. For the base, create a cylinder with a total height of 17.2mm. The bottom features a snap-fit rim with a radius of 24.5mm and a height of 2.75mm. Above this, add a guiding ring wi...
r=17; hi=16; cord = 5; cordmargin = 1; conn=10; length=8000; w=.55*5; t=0.24*5; snap=w; openings=2; tol=0.1; $fa=4; $fs=1; base(); translate([2*ro+3*w,0,h+t])rotate([180,0,0])lid(); tp=cord*cord/hi; turns=-r/tp+sqrt(r*r/tp/tp+length/3.1416/tp); layers = ceil(turns*cord/hi); echo("exact layers",turns*cord/hi); echo...
glb/cad_bc0c3efdd9fc.glb
Create a cable spool consisting of a base and a lid. For the base, start with a central hub that has a radius of 17mm and a height of 50mm. The hub features a "yin-yang" style internal geometry to hold the cable. Create a bottom plate with a thickness of 1.2mm and a radius of 34.15mm. Add a snap-fit rim around the bo...
r=17; hi=50; cord = 6; cordmargin = 1; conn=15; length=20000; w=.55*5; t=0.24*5; snap=w*0.5; openings=2; tol=0.15; $fa=2; $fs=1; rotate([180,0,0])lid(); tp=cord*cord/hi; turns=-r/tp+sqrt(r*r/tp/tp+length/3.1416/tp); layers = ceil(turns*cord/hi); echo("exact layers",turns*cord/hi); echo("using layers",layers); ro = ...
glb/cad_49bb30031160.glb
Create a customizable funnel with a wall thickness of 2mm. The main body consists of a conical section and a cylindrical neck. Start with a cone that has a base diameter of 54mm (50mm interior plus walls) and a height of 20mm, tapering upward to a diameter of 14mm (10mm interior plus walls). Atop this cone, add a cylin...
wall_thickness = 2.0; cone_height = 20; cone_diameter = 50; neck_height = 40; neck_diameter = 10; exit_diameter = 5; handle_diameter = 10; handle_hole_diameter = 6; WallThickness = wall_thickness; NeckHeight = neck_height; NeckDiameter = neck_diameter; ConeHeight = cone_height; ConeDiameter = cone_diameter;...
glb/cad_e2c375f55af4.glb
Create a Bug-A-Salt Replacement Plunger consisting of a main plunger body and two caps. First, construct the plunger body. Create a base shape that is 9.5mm wide, 212mm long, and 9.6mm thick. The front section is a rounded hull combining a cylinder with a radius of 4mm and a rectangular block. At the center of the bo...
x = 9.5; y = 212; z = 9.6; clip_x = 33; clip_x_add = 3; clip_y_offset = 92; clip_y = 5; clip_z = 20; plunger_rad = (x - 1.5) / 2; knotch_y_offset = 10; knotch_y = 7; knotch_x = 3; nut_trap_x = 5.5; nut_trap_y = 4.5; nut_trap_y_offset = 15.3; cap_outer_rad = 22.85 / 2; cap_inner_rad = 18.4 / 2; cap_lip_y = 3; cap_y = ...
glb/cad_3992c7711f1a.glb
Create a vacuum adapter by constructing a hollow cylindrical body with a total height of 75mm. The main outer structure is a cylinder that tapers slightly from a radius of 29mm at the base to 28mm at the top. The interior is a consistent hollow bore with a radius of 26mm running through the entire height. At the base o...
use <Thread_Library.scad> $fn=120; length=25; pitch=5; pitchRadius=31; difference() { union() { trapezoidThread( length=length, pitch=pitch, pitchRadius=pitchRadius, threadHeightToPitch=0.649, profileRatio=0.5, threadAngle=30, ...
glb/cad_dacf02912ee1.glb
Create a Belkin USB Hub Mount by starting with a central rectangular block 20mm wide, 30mm deep, and 20mm high, centered on the Y-axis. Attach two cylinders to the left and right sides of this block; each cylinder must have a radius of 10mm and a height of 3mm. Carve a semi-circular grip out of the center of the block ...
difference(){ union(){ translate(v=[10,0,0]){ cylinder(h=3, r1=10, r2=10); } translate(v=[-10,0,0]){ cylinder(h=3, r1=10, r2=10); } difference(){ difference() { translate(v=[-10,-15,0]){ cube(size = [2...
glb/cad_e4765d89f578.glb
Create a headphone bracket designed to fit over a shelf. Start by creating a base plate that is 30mm deep and 8mm thick. From this base, extend a horizontal arm 55mm long and 30mm deep with a thickness of 8mm. At the end of this arm, construct a curved hook. The hook's main body should follow a circular arc with a radi...
shelfThickness = 18; headbandWidth = 50; rotate([90, 0, 0]) bracket(); module bracket() { armLen = headbandWidth+hookWidth; hook(armLen); translate([0, 0, -bracketThickness-shelfThickness]) hook(armLen - hookWidth); translate([0, -bracketDepth/2, -bracketThickness]) { translate([0...
glb/cad_64f84e2d3fc2.glb
Create a drill chuck key holder starting with a rectangular base block measuring 15.2mm in width, 12mm in depth, and 5mm in height. On the top surface of this base, center a vertical hole with a diameter of 4mm that passes completely through the block. Around this hole, create a wider cylindrical recess with a diameter...
$fn = 100; key_bushing_size = 12; base = [key_bushing_size + 3 + 0.2, 12, 5]; screw = [4, 7, 3]; difference() { union() { translate([(base[0]-key_bushing_size)/2-0.1,0,base[2]])curved_edge(2,base[1]); translate([(base[0]+key_bushing_size)/2+0.1,base[1],base[2]])curved_edge(2,base[1],[0,0,180]); ...
glb/cad_ea6a6709b84e.glb
Create a Bed Level Test consisting of a series of concentric rectangular frames and intersecting center lines. The overall footprint is 100mm by 50mm with a uniform height of 0.2mm. Construct three concentric rectangular rings. The largest outer ring measures 100mm by 50mm. The smallest inner ring measures 10mm by 5mm...
x_max = 100; y_max = 50; smallest_scale = 0.1; fixed_scale =(smallest_scale > 1)?1:(smallest_scale<=0)?0:smallest_scale; x_min = x_max *fixed_scale; y_min = y_max * fixed_scale; echo(fixed_scale); additional_rects = 2; line_width = 0.4; line_count = 4; line_height = 0.2; total_width = line_count * line_width; tota...
glb/cad_97d0fe5f85e7.glb
Create a Customizable Ear Saver consisting of a central oval ring with two extending arms. The central part is a flat oval with an outer length of 54mm and a height of 25mm, featuring a hollow inner oval that is 79% of the outer dimensions. From each side of the central oval, attach a rectangular arm with a width of 1...
Length = 150; Width = 10; Hook_Count = 4; Hook_Spacing = 10; Oval_Lenth = 54; Oval_Height = 25; Ratio = .79; Fill = false; Rotation = 6; $fn = 200; LegLength = Length/2.0 - Oval_Lenth / 2.0 * Ratio + 2; module rotateAround(angles, orig) { translate(orig) rotate(angles) translate(-orig) ...
glb/cad_e1ef6f0a5862.glb
Create a display stand for a PCB measuring 120mm by 84mm by 2mm. The main body is a ring formed by rotating an oval profile around a central axis. This oval profile is 10mm wide and 20mm high. The resulting ring is constrained within a cylinder with a radius of 120mm and a total height of 20mm. From this ring, remove ...
board = [120, 84, 2]; panel = [80, 80]; panel_offs = [board.x - panel.x - 2, 2]; thick = 8; eps = 1e-3; extra=0.2; $fn=16; base_dia = 10; module flat() { union() { linear_extrude(height=board.z, center=true)square([board.x, board.y]); linear_extrude(height=thick, center=true)translate(panel_offs)s...
glb/cad_b110899be04a.glb
Create a spool adapter bracket designed to fit into a socket 76mm wide by 25mm deep. The main body is a symmetrical plate with a thickness of 6mm. At the center of the bracket, create two parallel cylindrical axle holes that run through the entire width of the part. These holes have a diameter of 2.5mm and are spaced...
bearing_outer_diameter = 22; bearing_inner_diameter = 7.75; bearing_screw_diameter = 2.5; bearing_lip = 2; bracket_width = 6; socket_x = 76; socket_y = 25; inner_spool = 59; outer_spool = 90; bearing_zone = bearing_outer_diameter + (2 * bearing_lip); lower_stack = max(socket_y, bearing_zone); module Brace() {...
glb/cad_87db4b3e8633.glb
Create a Logitech C920 Webcam Telescope Adapter by constructing a shallow, hollow cylinder. Start with a solid cylinder that has a height of 10mm and an outer radius of 16.42mm. From the center of this shape, remove a smaller concentric cylinder to create a thin-walled enclosure. This inner void should have a radius of...
difference() { cylinder(h=10,r=31.6/2+0.5+0.42,$fn=64); translate([0,0,0.9]) cylinder(h=10,r=31.6/2+0.5,$fn=64); }
glb/cad_cd939c453b56.glb
Create a Logitech C920 Webcam Telescope Adapter in the shape of a rounded cube. The overall dimensions of the cube must be 10mm in width, 10mm in depth, and 10mm in height. Apply a consistent corner radius of 2mm to all edges and vertices to ensure the shape is fully rounded on all sides.
module rounded_cube(size,r) { hull() { for (x = [-size[0]/2+r, size[0]/2-r], y = [-size[1]/2+r, size[1]/2-r], z = [-size[2]/2+r, size[2]/2-r]) { translate([x,y,z]) sphere(r=r); } cube(size=[size[0],size[1]-2*r,size[2]-2*r],center=true); cube(size=[size[0]-2*r,size[1],size[2]-2*...
glb/cad_70495e2fa0f5.glb
Create a Logitech C920 Webcam Telescope Adapter enclosure. The main body is a rounded rectangular shell with overall dimensions of 88mm width, 28mm depth, and 30mm height, featuring a corner radius of 4mm. The interior is hollowed out by a smaller rounded rectangular cavity measuring 84mm by 24mm by 26mm with a 2mm cor...
use <rounded_cube.scad>; use <adapter.scad>; use <ccd_cover.scad>; module support() { translate([-40.1,-10.1,1.95+11.4/2]) { intersection() { cube(size=[4,4,11.4], center=true); rotate([0,0,45]) translate([-2,0,0]) cube(size=[8,8,20], center=true); } } } module adapter_...
glb/cad_31f0372e8868.glb
Create a Logitech C920 Webcam Telescope Adapter by constructing a hollowed rectangular enclosure. Start with a primary outer block that is 13.72mm wide, 13.72mm deep, and 8mm high, centered on the Z-axis. Add a smaller rectangular tier on top of this block that is 12.6mm wide, 12.6mm deep, and 2mm high. Create a centra...
module ccd_cover() { difference() { union() { translate([0,0,4]) cube(size=[13.72,13.72,8],center=true); translate([0,0,8.5]) cube(size=[12.6,12.6,2],center=true); } cube(size=[10.64,10.64,20],center=true); } difference() { translate([-16.5/2,0,...
glb/cad_9b722a78c27f.glb
Create a customizable brick-image creator kit based on a grid of 4mm units. The primary building element is a "single block," which consists of a 4mm x 4mm x 2mm cube with a centered cylinder protruding from the top face. This cylinder has a height of 3mm and a radius of 1mm. Construct various block sizes by combining...
$fn=50/1; single_piece_size = 4; block_thickness = 2; stick_length = 3; thing_type = "test set"; base_plate_x_count = 20; base_plate_y_count = 20; how_many = 1; space_between_things = 2; if (thing_type == "test set") { CreateSingleBlock(); translate([(single_piece_size+space_between_things),0,0]) CreateTwoBl...
glb/cad_e5c158ac256d.glb
Create a right-angle wide jet pipe for an aquarium. Start by constructing a vertical hollow cylinder with an outer diameter of 21.2mm and an inner diameter of 18mm, reaching a height of 25mm. The wall thickness should be 1.6mm. Attached to the base of this vertical section, create a horizontal hollow cylinder that ex...
Di=18; D2i=2*Di; s=1.6; h1=25; h2=20; 2s=2*s; De=Di+2s; D2e=D2i+2s; $fa=5; module pieno() union() { cylinder(r=De/2,h=h1); rotate(a=[90,0,0]) { difference() { cylinder(r1=De/2,r2=D2e/2,h=h2); translate ([-D2e/2,-D2e,0]) cube(size=[D2e,D2e,h2]); } } } module vuoto() union() { translate ([0,0,h1-10]) cyl...
glb/cad_b3abda45fad1.glb
Create a mockup of an iPhone 6. Start with a main body that is 67mm wide, 138.1mm long, and 6.9mm thick. The four corners must be fully rounded with a radius equal to half the thickness of the phone (3.45mm). On the left side, add three small raised buttons: a ringer switch (5.7mm long and 1.15mm wide) positioned 17mm...
iphone(67,138.1,6.9,9); ear_speaker_width = 9.5; ear_speaker_center_from_top = 9; button_width = 2.3; ringer_switch_height = 5.7; ringer_switch_from_top = 17; volume_height = 8.7; volume_plus_from_top = 31; volume_minus_from_top = 42; sleep_wake_height = 10; sleep_wake_from_top = 31; home_button_diameter = 10.6; home_...
glb/cad_8dce48388e41.glb
Create a lithium cell holder consisting of a 3x3 grid of cylindrical pockets. Each individual pocket unit is constructed by starting with a solid cylinder that has a diameter of 20mm and a total height of 16mm. From this solid cylinder, remove two coaxial cylindrical bores: first, a bottom bore with a diameter of 19mm ...
rows = 3; cols = 3; dia = 19; pocket_height = 10; stack_pocket_height = 5; f_thickness = 1; w_thickness = 1; for(c = [1:cols]){ for(r = [1:rows]){ translate([c*(w_thickness+dia)-dia/2,r*(w_thickness+dia)-dia/2,0]){ difference(){ cylinder(pocket_height+stack_pocket_height+f...
glb/cad_31aabf415f3d.glb
Create a parametric oval house number plate consisting of a base and a cap. First, construct the base as an oval with a width of 200mm, a height of 130mm, and a total thickness of 8mm. The outer edges should be rounded with a 5mm radius. Create a hollow center by removing an oval section that leaves a 10mm wide rim a...
part = "second"; size_x = 200; size_y = 130; size_z = 8; rim_width = 10; roundness = 5; base_thickness = 1.6; cap_thickness = 2.4 ; number = 11; Font_Name = "Merriweather"; Font_Style = "Bold"; number_height = 4; font_size = 80; Hole_Diameter = 3.5; Hole_Countersunk = 1; CounterSunk_Dia = 7; Hole_Elonga...
glb/cad_8edbde698773.glb
Create a safety cover for a MeanWell RS-50-5 power supply. Start by creating a solid rectangular block with a total length of 55.5mm, a width of 13.8mm, and a height of 8.1mm. Hollow out the center of the block to create a U-shaped channel. The walls and base should be 1.8mm thick. The interior cutout should be 51.3m...
$fn = 60; clearance = 0.1; wall = 1.8; length = 51.1 + 2*wall + 2*clearance; height = 2*wall + 2*clearance + 4.1; width = 12 + wall; r1 = 1.45; difference() { cube([length, width, height]); translate([wall+clearance, -clearance, wall + clearance]) cube([51.1 + 2*clearance, width - wall, 4.1 + 2*clearance]...
glb/cad_af27cfde6886.glb
Create a Eurorack panel cover by starting with a rectangular plate that is 128.5mm high, 2mm thick, and has a width calculated as 2 horizontal pitch units of 5.08mm each, minus a 0.3mm tolerance (totaling 9.83mm wide). At the top and bottom of the panel, create circular holes with a diameter of 3.4mm (comprising a 3....
Horizontal_Pitch = 2; Hole_Tolarance = 0.2; Panel_Height = 128.5; Panel_Thickness = 2; Hole_Diameter = 3.2; Hole_Horizontal_Offset = 7.5; Hole_Vertical_Offset = 3.0; Panel_Width_Tolarance = 0.3; HP_Unit = 5.08; Panel_Width = (Horizontal_Pitch * HP_Unit) - Panel_Width_Tolarance; echo(Panel_Width=Panel_Width); ...
glb/cad_930a87432cbf.glb
Create a Beveled Tent Hook with a total height of 6mm. The object is based on two main vertical cylinders connected by a hull and a cutout. The first cylinder is centered at [0, 0] with an outer radius of 6.5mm and an inner hole radius of 3.5mm. The second cylinder is centered at [18.5, 0] with an outer radius of 8mm a...
cli_fn = 32; $fn = cli_fn; fn_Low = 32; fn_Med = fn_Low * 2; fn_High = fn_Low * 4; omega = 0.001; wallWidth = 6.0; wallHeight = wallWidth; bevelRadius = 1; bevelSteps = 8; hookAngle = 36; d1 = 7; r1 = d1/2; c1 = [0, 0, 0]; d2 = 10; r2 = d2/2; c2 = c1 + [22-r1+r2, 0, 0]; echo(c2=c2); tentHook(wallWidth, wallHeig...
glb/cad_44d771ef61f3.glb
Create a handle/knob consisting of an oval head and a cylindrical shaft. The head is an ellipsoid with an X dimension of 20mm, a Y dimension of 15mm, and a Z dimension (thickness) of 5mm. Attached to the center of the head is a round support shaft with a diameter of 6mm and a length of 8mm. Create a central bore throu...
use <threadlib/threadlib.scad> head_type = "oval"; x_dimension = 20; y_dimension = 15; z_dimension = 5; edge_radius_head = 2; number_of_leaves = 4; relative_leaf_size = 33; support_type = "round"; edge_radius_support = 2; shaft_length = 8; shaft_diameter = 6; hole_type = "bore"; bore_diameter = 3; hole_go...
glb/cad_92a8f718eaeb.glb
Create a divider plate for a Sortmaster organizer. The main body is a thin plate with a height of 77mm and a thickness of 1.5mm. The plate has a slightly conical profile, tapering from a top width of 80.8mm to a bottom width of 79.5mm. At the top center of the plate, add a small handle that is 66mm wide, 1.5mm high, ...
OBJECT_TO_PRINT = "custom_drawer"; HEIGHT = 30; THICKNESS = 2.0; WIDTH = 50; BORDER_WIDTH = 2.0; WALL_THICKNESS = 1.2; REINFORCEMENT = false; FILLET = 1.2; TOP_WIDTH = 81.0; BOTTOM_WIDTH = 79.0; HANDLE_WIDTH = 66.0; HANDLE_HEIGHT = 1.2; HANDLE_THICKNESS = 2.0; TOP_RIDGE ...
glb/cad_ad71f5f5b122.glb
Create a twisted heptagonal cache pot with a total height of 120mm. The object is formed by stacking and lofting heptagonal slices every 15mm along the vertical axis. Each slice is a heptagon with rounded corners, created by applying a 27mm offset to a base heptagonal shape. The overall form expands as it rises, with...
D1=112; D2=160; H=120; D=D2/2*1.3; step=15; twist1=1/2; twist2=-5/4; A=72; AA=A/H; Off=27; factor=1.1; polygon=7; $fn=80; module penta(z,rot,oft, DD) rotate([0,0,z*AA*rot]) translate([0,0,z]) linear_extrude(.1) offset(r=oft) circle(d=DD+z/2,$fn=polygon); difference(){ for(z=[0:step:H],twist=[twist1,twist2]) hull...
glb/cad_318a9b81ac07.glb
Create a Battery Cover consisting of a flat rectangular base with a flexible clip and retaining hooks. The base is 50mm long, 30mm wide, and 0.75mm thick, with corners rounded to a 2mm radius. At one end of the base, create a rectangular cutout to accommodate the clip. At the opposite end, create two retaining hook...
length=50.0; width=30.0; thickness=0.75; corner_radius=2.0; hook_width=5.0; hook_length=3.0; hook_offset=3.0; hook_spacing=10.0; hook_case_thickness=2.0; hook_back_thickness=1.0; hook_top_thickness=1.0; clip_width=10.0; clip_tooth=1.0; clip_length=3.0; clip_width_sides=8.0; clip_length_catch=1.0; clip_o...
glb/cad_9bc97e6c1c26.glb
Create a cat's toy consisting of a central sphere and a wide base with a decorative perforated rim. Start by forming a composite solid from a sphere with a 20mm diameter and a cylinder with a 40mm diameter and 2mm height, centered on the same axis. Hollow out the center by removing a sphere with an 18mm diameter. Car...
$fn=30; difference() { union() { translate([0,0,-1]) cylinder(d=40, h=2); sphere(d=20); } sphere(d=18); rotate([45,0,0]) cylinder(d=5, h=100, center=true); rotate([-45,0,0]) cylinder(d=5, h=100, center=true); rotate([0,45,0]) cylinder(d=5, h=100, center=true); rotate...
glb/cad_ed1da11f09cb.glb
Create a TV mount for a sensor by constructing a base platform and two supporting legs. Start with a central rectangular slab measuring 65mm wide, 80mm deep, and 5mm thick. Add two vertical support walls, each 3mm wide and 80mm deep, positioned at the outer edges of the platform. The first wall should be 15mm tall and ...
cube([65,80,5],center=true); translate([31,0,-10])cube([3,80,15],center=true); translate([-28.5,0,-15]) difference() { cube([3,80,32],center=true); translate([0,0,-17.5])rotate([0,-30,0])cube([8,81,4],center=true); }
glb/cad_068e757ecb1e.glb
Create a customizable belt buckle by starting with a solid rectangular base measuring 42mm in width, 33mm in height, and 2mm in thickness. From this base, remove two rectangular sections to create open slots. The first slot is 36mm wide and 9mm high, positioned 3mm from the left, right, and bottom edges. The second slo...
a = 36; b = 9; c = 3; d = 2; e = 0.5; difference() { cube([a + 2 * c, 2 * b + 3 * c, d]); translate([c, c, 0]) { cube([a, b, d]); } translate([c, b + 2 * c, 0]) { cube([a, b, d]); } translate([c + (a - e) / 2, b + c, 0]) { cube([e, c, d]); } }
glb/cad_43e526dfde28.glb
Create a Customizable Impact Bit Holder by constructing a rectangular block with a grid of holes. The main body is a solid block with a total height of 13mm, measuring 180mm in length (9 cells) and 120mm in width (6 cells), where each cell is a 20mm square. Within this block, create a grid of 54 cylindrical holes, ea...
$fa = 1; $fs = 1; $fn = 0; hole_d = 7.50; hole_h = 10; hole_b = 3; cell_s = 20; cell_h = hole_h + hole_b; delta = 0.01; module hole() { translate([cell_s/2, cell_s/2, hole_b]) color("red") cylinder(d=hole_d, h=hole_h+delta); } module holes(hole_n_x, hole_n_y) { for (y = [0:hole_n_y-1]) { for (x = ...
glb/cad_e6d5f0fa51b0.glb
Create a Customizable Pipe Collar Trim by constructing a semi-circular ring with a specific profile. Start with a hollow cylinder that has an outer diameter of 145mm, an inner diameter of 105mm, and a height of 10mm. To create the puzzle-style opening, remove a large rectangular section from the center of the ring to...
pipeDiameter = 105; collarWidth = 20; collarHeight = 10; pipeRadius = pipeDiameter / 2; totalWidth = pipeDiameter + (collarWidth * 2); gripSize = collarWidth * 0.5; gripOffset = collarWidth * 0.2; tolerance = 0.6; $fn = 75; difference() { cylinder(collarHeight, pipeRadius + collarWidth, pipeRadius, true); union(...
glb/cad_eed070ad698f.glb
Create a customizable shelf and drawer bracket. Start by constructing a horizontal base plate 30mm long, 15mm wide, and 2mm thick, with rounded corners using a 3.25mm fillet radius. Attach a vertical upright wall to one end of the base; this wall should be 17.75mm high, 2mm thick, and 15mm wide. Reinforce the joint be...
width = 15; side_len = 27.5; side_ht = 14.5; length = 30; up_ht = 17.75; thick = 2; side_thk = 1.75; fillet_rad = 3.25; base_hole_gap = 4.5; side_hole_gap = 5.25; hole_dia = 6.75; hole_wid = 9.75; dt = 0.1; module hole(){ hull(){ for (i=[-1,1]){ translate([0,i*(hole_wid-hole_dia)/2,-dt/2]) cylinde...
glb/cad_9f68f626b7ce.glb
Create a Fan Grid Concentric Holes Generator consisting of a series of concentric rings and intersecting support bars. First, generate three concentric rings centered at the origin. The outermost ring has an outer diameter of 38mm and the innermost ring has an inner diameter of 5mm. The rings are created by alternati...
OuterDiameter=38; InnerDiameter=5; NumberOfRings = 3; Height = 10; Resoultion=45; ConnectorsWidth=2; AddOrtogonalConnectors="YES"; AddDiagonalConnectors="YES"; echo("OuterDiameter=",OuterDiameter); echo("InnerDiameter=",InnerDiameter); echo("NumberOfRings=",NumberOfRings); echo("Height=",Height); echo("Resoulti...
glb/cad_2cd94b54cc76.glb
Create a battery holder for four AA batteries arranged in two parallel rows of two. The overall structure consists of four identical battery clips. Each individual clip is based on a central cylinder with a radius of 9.25mm and a length of 50.5mm, which is hollowed out by a concentric cylinder of radius 7.25mm to creat...
module xhole(radius, length) { rotate(a=[0,90,0]) cylinder(r=radius,h=length+1,center=true, $fn=10); } module yhole(radius, length) { rotate(a=[0,0,0]) cylinder(r=radius,h=length+1,center=true, $fn=10); } module batteryClip(width, length, thickness) { difference() { union() { rotate([0,90,0]) cylinder(r=thick...
glb/cad_1ac9b24bc2fc.glb
Create a Laptop Screen Smartphone Mount consisting of a vertical back support and two perpendicular tabs. Start by creating a vertical rectangular bar 3mm thick, 10mm wide, and 82mm tall, with semi-cylindrical caps of a 1.5mm radius at the top and bottom ends. At a height of 50mm from the bottom, attach a horizontal ...
thickness = 3; width = 10; phoneSize = 10; screenSize = 7; backLength = 82; screentTab = 21; phoneTab = 11; offsetFromBtm = 50; $fn = 32; echo(crossWidth); union(){ union(){ translate([0,thickness/2,0]) cube([thickness,backLength-thickness,width]); translate([thickness/2,thickness/2,0]){...
glb/cad_b86cf6d12379.glb
Create a personalized name plate based on a rectangular brick. Start by creating a solid rectangular base measuring 2.5064mm in length, 0.3133mm in width, and 0.125mm in height. From this base, remove a smaller internal rectangular section measuring 2.1953mm by 0.2155mm with a height of 0.085mm, positioned 0.053mm from...
include <write.scad>; length = 8; width = 1; Text =("made by Kate"); color("blue") difference(){ cube([.3133*length,.3133*width,.125]); translate([.053,.053,-.0]) cube([.3133*length-.0978,.3133*width-.0978,.085]); } translate([.3*length/2,.3133*width/2,.145]) scale([.06,.04,.11]) color("red") write(Text,t=.6,font="o...
glb/cad_933a271563f4.glb
Create a Rodin coil donut by constructing a torus with a major radius of 200mm and a minor radius of 50mm. Around the center of this torus, place 14 spheres, each with a radius of 10mm. These spheres should be positioned at a distance of 250mm from the center of the torus, distributed evenly in a circle every 25.7 degr...
poloidal = 200; toroidial = 50; no_of_points = 13; point_size = 10; outside_edge = poloidal + toroidial; for ( i = [0:no_of_points] ) { rotate( i*360/no_of_points, [0, 0, 1]) translate( [0, outside_edge, 0] ) color("Red",0.5) sphere(r = point_size); } color("RoyalBlue",0.9) rotate_extrude(convexity = ...
glb/cad_335f81a6089b.glb
Create an Arduino Esplora Case, a protective enclosure for a board measuring 164mm by 60mm with a depth of 1.71mm. The case consists of a bottom shell, a top cover, and a display bezel. Construct the bottom shell as a rounded rectangular box with a wall thickness of 1.5mm and an internal cavity to house the board. Add...
Assemble = 1; ShowBoard = 1; DoBottom = 1; DoCover = 1; DoTop = 1; DoSwitches = 1; DoButtons = 1; DoLightPipeGuides = 1; DoLightPipes = 1; DoBezel = 1; BrdWid = 164; BrdHgt = 60; BrdDpt = 1.71; TabDpt = 3; BrdSpace = 2; CaseDpt = 14; CaseThk = 1.5; TopLip = 7; BoardDpt = BrdDpt+TabDpt+CaseThk; MntHoleX = [55.4,55....
glb/cad_10a5a0e01f68.glb
Create a Surprise Egg container consisting of two symmetrical halves. The overall outer shape is an egg with a width of 33mm and a height of 45mm, truncated at the bottom by 3mm. The egg is hollowed out to create a shell. To split the egg into a top and bottom half, create a horizontal midline cut with a gap of 0.4mm...
part="hollow"; egg_w=33; egg_h=45; off=3; l=3; lw=4; m=8; n=4; r=3.4; p=1.2; w=3.2; tol=0.4; $fn=96; AT=1/64; ST=2*AT; difference(){ egg(egg_w,egg_h,0,off); difference(){ translate([-egg_w/2,-tol/2,2*r-3*tol])cube([egg_w,tol,egg_h]); egg(egg_w,egg_h,2*tol+tol,off); } inter...
glb/cad_19015f815b96.glb
Create a Surprise Egg container. The overall outer shape is a prolate spheroid with a width of 33mm and a height of 45mm, truncated at the bottom by 3mm. The egg is split horizontally into two halves. The shell has a thickness of approximately 0.4mm. The interior is hollowed out to create a storage cavity, though the ...
part="hollow"; egg_w=33; egg_h=45; off=3; l=3; lw=4; m=8; n=4; r=3.4; p=1.2; w=3.2; tol=0.4; layer_h=0.2; $fn=96; AT=1/64; ST=2*AT; difference(){ egg(egg_w,egg_h,0,off); difference(){ translate([-egg_w/2,-tol/2,2*r-3*tol])cube([egg_w,tol,egg_h]); egg(egg_w,egg_h,2*tol+tol,off); ...
glb/cad_ed6774ad4c2b.glb
Create a Minimalistic J Head X Carriage designed for a Bowden extruder. Start by constructing the main carriage body as a rectangular block with a length of 30mm (bearing length 25mm plus 5mm), a width of 35mm (X axis distance 50mm minus bearing diameter 16mm plus 1mm), and a height of 8.5mm. Integrate two bearing ...
b_l=25; b_d=16; bar_d=10; j_sg_d=12; j_sg_h=3.5; j_d=16; j_h=5; x_d=50; s_d=3; s_l=25; sh_d=5.5; sn_d=6; sn_h=3; bd_t_d=4; bd_n_d=8; bd_n_h=4; bc_sh_d=18; bc_s_d=3; bc_n_d=6; bc_n_t=3; $fn=50; jhead_x_carriage(); module jhead_x_carriage(){ jhead_x(); translate([b_l,0,0])j_head_mount(); } module j_head_mount(){...
glb/cad_b923f7c6da3b.glb
Create a Magnetic Pickup Tool by starting with a main cylinder that has a diameter of 24.6mm and a height of 7mm. From the top face of this cylinder, remove a smaller concentric cylindrical volume with a diameter of 20.6mm and a depth of 2mm to create a shallow circular recess for a magnet. Next, create two vertical ...
tool_diameter = 24.6; tool_height = 7; magnet_diameter = 20.6; magnet_height = 2; wire_diameter = 3; distance_between_holes = 10; magnet_radius = magnet_diameter / 2; tool_radius = tool_diameter / 2; wire_radius = wire_diameter / 2; difference() { cylinder(h = tool_height, r = tool_radius, $fn=72); translate([0...
glb/cad_7fe0d30dbb5b.glb
Create a modular hex bottle rack frame. Start by constructing a hexagonal ring with a height of 10mm. The inner diameter of the hexagon is 70mm, and the wall thickness of the frame is 6.5mm. The outer boundary of the frame is defined by a larger hexagon created by offsetting the inner shape. Within the walls of this h...
generate_frame = true; inner_d = 70.0; height = 10; thickness = 6.5; outer_d = inner_d / cos(30); conn_length = 100; conn_tolerance = 0.01; if(generate_frame == true) {hexframe();} else {connector();} module hexframe () { linear_extrude(height=height) difference() { difference() { offset(delta = thickness)...
glb/cad_8194b54d9608.glb
Create a Wine Press base consisting of a thick circular ring and a series of vertical support blocks. First, create a cylindrical base ring with a height of 20mm. The outer radius of this ring is approximately 82.5mm, and it has a central cylindrical hole with a radius of 74.3mm. Around the perimeter of this base, p...
pi=3.141592654; rad_2_deg=180/pi; wood_w=44; wood_t=18; gap=1.25; blocks=15; link_h=20; link_t=16; link_d=9; screw_rad=2; screw_cs_d=4.5; screw_cs_rad=4.2; no_blocks=3; j_ang=360/blocks*0.35; poly_circ=blocks*(wood_w+2*gap); rad_c=poly_circ/(2*blocks*tan(pi/blocks*rad_2_deg)); echo("Inside Diameter : ",rad_c*2/10,"...
glb/cad_ed39171465ae.glb
Create a nut trap for a wine press. Start with a solid rectangular base measuring 87.5mm by 87.5mm with a total height of 13.8mm. Centered on the top surface, remove a cylindrical hole with a radius of 17.75mm and a depth of 1.8mm. Directly below this, remove a hexagonal prism with a flat-to-flat width of 22mm and a he...
nut_r=22/2; nut_h=10.2; washer_r=35.5/2; washer_t=1.8; border=8; screw_ins=6; screw_pos=washer_r+border-screw_ins; top_t=1.8; rod_r=13.5/2; screw_rad=2; screw_cs_d=4.5; screw_cs_rad=4.2; module screw() { rotate([0,0,360/16]) cylinder(r=screw_rad,h=25,$fn=8); rotate([0,0,360/16]) cylinder(r1=screw_c...
glb/cad_d02d9ab61208.glb
Create a wine press base consisting of a circular ring and a series of vertical support blocks. Start by creating a main cylindrical ring with an outer radius of 75.5mm, an inner radius of 67.5mm, and a height of 32mm. Around the perimeter of this ring, place 15 rectangular wood blocks. Each block must be 44mm wide, ...
pi=3.141592654; rad_2_deg=180/pi; wood_w=44; wood_t=18; gap=1.25; blocks=15; link_h=32; link_t=16; link_d=9; screw_rad=2; screw_cs_d=4.5; screw_cs_rad=4.2; no_blocks=3; j_ang=360/blocks*0.35; poly_circ=blocks*(wood_w+2*gap); rad_c=poly_circ/(2*blocks*tan(pi/blocks*rad_2_deg)); echo("Inside Diameter : ",rad_c*2/10,"...
glb/cad_3b540afaa8f0.glb
Create a fan bracket for a 40mm fan and a 50mm wide PCB. The structure consists of two mirrored bracket halves. For each half, start with a base plate that is 54mm wide, 3mm thick, and 9.5mm deep. Centered on this base, add a cross-brace that is 51mm wide, 10mm thick, and 1.5mm high. On the base plate, create four ...
fan_size = 40; fan_hole_spacing = 32; screw_diameter = 3.25; pcb_width = 50.0; bracket_height = 36; bracket_length = 9.5; bracket_thickness = 3.0; cross_bracket = 10; lip_size = 1.75; bracket_width = max(pcb_width, fan_size - 4); module legs() { difference() { union() { color([0,0,.5...
glb/cad_2a0cc83d2ddc.glb
Create a polygonal cache pot by forming a hollow vessel with a height of 130mm. The outer shell is defined by rotating a half-ellipse profile around the central vertical axis. This ellipse has a semi-major axis of 65mm and a semi-minor axis of 32.5mm. The resulting outer shape is a faceted revolution consisting of 12 s...
bottomd=100; topd=150; height=130; wallplus=3; ratio=topd/bottomd; tilt=asin((topd-bottomd)/2/height); a=height/2; b=a/4; difference() { hull() for(angle2=[0:30:330]) rotate([0,90,angle2]) rotate([0,0,-tilt]) translate([-a,bottomd/2+wallplus,0]) linear_extrude(.1) polygon([...
glb/cad_9dfbb0f459ed.glb
Create two interlocking snapping rings. For the first ring, create a hollow cylinder with an outer radius of 25mm and a height of 3mm. The inner wall should be defined by a hole with a radius of 13mm. Add a bevel to the outer edge of this ring, tapering from a radius of 23.5mm at the center to 25mm at the top and botto...
material_thickness = 3; inner_radius = 10; outer_radius = 25; wall_th = 3; locking_tab_size = 1; bevel = 0.5; wall_slop = 0.2; fit_slop = 0.5; $fn=100; module top () { difference () { union () { translate([0, 0, material_thickness / 2 + wall_th / 2]) cylinder( ...
glb/cad_a06178777529.glb
Create a Brompton Carrier Flashlight Mount starting with a rectangular base 42mm long, 30mm wide, and 10mm high. The four vertical edges of this base should be rounded with a 3mm radius. On top of this base, add a support structure that extends the height by another 10mm, maintaining the 3mm rounded corners at the corn...
chamfer = 3; width = 30; length = 42; height=10; module bolt() { translate([0,0,-5]) { cylinder(h=10.1, r=2.55); } translate([0,0,5]) { cylinder(h=5.01, r1=2.55, r2=5.5); } translate([0,0,10]) { cylinder(h=100, r=5.5); } } module bolts() { translate([-13,0,0]){ bolt(); } translate([13,0...
glb/cad_adf3e2e5f10e.glb
Create a Brompton Carrier Flashlight Mount. Start with a rectangular base 42mm long, 30mm wide, and 10mm high. The four vertical edges of this base should be rounded with a 3mm radius. On top of this base, add a support structure that extends the height by another 10mm, maintaining the 3mm rounded corners at the top....
chamfer = 3; width = 30; length = 42; height=10; module bolt() { translate([0,0,-5]) { cylinder(h=10.1, r=2.55); } translate([0,0,5]) { cylinder(h=5.01, r1=2.55, r2=5.5); } translate([0,0,10]) { cylinder(h=100, r=5.5); } } module bolts() { translate([-13,0,0]){ bolt(); } translate([13,0...
glb/cad_4d9a30de30db.glb
Create a series of 11 concentric rings centered on the same axis, each with a height of 0.5mm. Starting with the innermost ring, create a thin circular band with an outer radius of 0mm and an inner radius of -2.5mm (effectively a solid disk of 0.5mm height if the radius is 0, but following the pattern, the first visibl...
$fn=50; module ring(radius){ difference(){ cylinder(r=radius,h=0.5); cylinder(r=radius-2.5,h=0.5); } } for(i=[0: 5: 50]) ring(i);
glb/cad_ab8c09aa3899.glb
Create a power strip holder consisting of two symmetrical bracket parts. Each bracket is based on a profile that is 59mm wide (55mm internal width plus 2mm walls on each side) and 43mm high (41mm internal height plus a 2mm base). The main body of each bracket is a block with a rectangular cutout of 25mm depth, 55mm w...
part="both"; width=55; height=41; overhang=9; wall=2; length=25; base=10; cable=32; cable_center=20; screw=4.2; use <BOSL/shapes.scad> include <../rol/dimension.scad> $fn=0; $fa=0.01; $fs=0.5; if (part == "blind") { powerstripholder( width=width, height=height, overhang=overhang, wall=wall...
glb/cad_cf3a7d0be5d4.glb
Create a Drill Press Chuck Holder with a height of 5mm. Start with a main circular clamp that has an outer diameter of 74.13mm and a central circular hole with a diameter of 59.13mm. On one side of the clamp, add a rectangular rack section that is 10mm wide and 50mm long, extending outward from the clamp's edge. With...
$fn=100; stand_diameter = 59.13; clamp_addl_width = 7.5; clamp_diameter = stand_diameter + 2 * clamp_addl_width; clamp_height = 5; clip_width = 10; rack_width = 10; rack_length = 50; chuck_rack_diameter = 20; chuck_rack_hole = 8; module clamp() { cylinder(d=clamp_diameter, h=clamp_height); } module clamp_cutout() { ...
glb/cad_b1c61b66e8f6.glb
Create a Duplo brick generator with a base size of 6 studs by 2 studs. The overall dimensions are determined by a base unit of 15.75mm per stud and a standard height of 19.25mm. Construct the main body as a rectangular shell with a wall thickness of 1.29mm and a roof thickness of 1.4mm. The interior should be hollowe...
X_size = 6; Y_size = 2; Height_factor = 1; Studs = 0; Extended_Ridges = 1; base_unit = 15.75; std_height = 19.25; wall_thickness = 1.29; roof_thickness = 1.4; stud_radius = 4.7; cyl_radius = 6.6; cyl_thickness = 1; ridge_thickness = 1; ridge_width = 3.1; top_text = "Top"; top_letter_size = 8; top_font = "...
glb/cad_77f7a11b538e.glb
Create a power switch mount consisting of a central rectangular plate and two symmetrical mounting connectors. Start with a main plate that is 29.2mm wide, 45mm tall, and 5mm thick. In the center of this plate, create a rectangular cutout for a square rocker switch measuring 19.2mm wide by 19.5mm high, passing complete...
hole=19.2; holew=12.2; holeh=19.5; xtra=10; thick=5; back=26; down=47; rotate([0,270,0]) difference() { union(){ cube([hole+xtra,down-2,thick]); translate([15,-7,26]) rotate([-90,0,90]) conn(); translate([15,-6.5+down,0]) rotate([-90,0,90]) conn(); } translate([xtra/1.2, down/3.5,(thick*-0.5)]) cube([h...
glb/cad_b10f73f69d48.glb
Create a 20mm gantry plate for an Open Rail system. Start by creating a square plate with a total width and length of 80mm and a thickness of 2.9mm. The four corners of the plate must be rounded with a radius of 10mm. Remove twelve circular holes from the plate. Create four small holes with a diameter of 5.2mm positi...
$fn=50; large=7.1; small=5.2; width=80; length=80; radius=10; thickness=2.9; module hole(diameter) { cylinder(r=diameter/2,h=5,center=true); } module 20mmplate() { difference() { minkowski() { cube([width-2*radius,length-2*radius,thickness/2],center=true); cylinder(r=radius, h=thickness/2,center=true); ...
glb/cad_0f715db0089f.glb
Create a 20mm gantry plate for an Open Rail system. Start with a rectangular base measuring 100mm by 120mm with a thickness of 2.9mm. All four corners must be rounded with a radius of 10mm. Pierce the plate with a series of circular holes centered on the Z-axis. Create several small holes with a diameter of 5.2mm and ...
$fn=50; large=7.1; small=5.2; width=100; length=120; radius=10; thickness=2.9; module hole(diameter) { cylinder(r=diameter/2,h=5,center=true); } module 20mmplate() { difference() { minkowski() { cube([width-2*radius,length-2*radius,thickness/2],center=true); cylinder(r=radius, h=thickness/2,center=true); ...
glb/cad_30a81894f5e9.glb
Create a 60mm gantry plate for an Open Rail system. Start with a rectangular plate measuring 120mm wide by 140mm long with a thickness of 2.9mm. All four corners must be rounded with a radius of 10mm. Pierce the plate with a series of circular holes centered on the Z-axis. Create small holes with a diameter of 5.2mm a...
$fn=50; large=7.1; small=5.2; width=120; length=140; radius=10; thickness=2.9; module hole(diameter) { cylinder(r=diameter/2,h=5,center=true); } module 60mmplate() { difference() { minkowski() { cube([width-2*radius,length-2*radius,thickness/2],center=true); cylinder(r=radius, h=thickness/2,center=true); ...
glb/cad_f74175fd0783.glb
Create a wheel for a 608 bearing. Start by constructing a main cylinder with a radius of 16.5mm and a height of 8mm, centered on the origin and rotated 90 degrees on the X-axis. Add a smaller concentric cylinder to this shape with a radius of 5mm and a height of 13mm, also rotated 90 degrees on the X-axis, but offset...
module wheel(){ difference(){ union(){ rotate([90,0,0])cylinder(8,16.5,16.5,$fn=300,center=true); translate([0,6,0])rotate([90,0,0])cylinder(4.1,13,13,$fn=300,center=true); translate([0,-6,0])rotate([90,0,0])cylinder(5,13,13,$fn=300,center=true); } union(){ rotate([90,0,0])cylinder(9,11.35,11.35,center=true,$fn=300); ...
glb/cad_62a8c29b7690.glb
Create a self-watering planter shaped like a video game warp pipe. The design is based on a block size derived from the planting pipe diameter of 42mm plus a 3mm wall thickness. First, construct the main planting pipe as a hollow cylinder with an outer radius of 25.5mm and an inner radius of 19.5mm. The pipe's wall is...
pipeDiameter = 42; wallThickness=3; size = 2; assembly(wallThickness); $fn = 30; $model = 0; module assembly(_thickness) { block_size = ceil((pipeDiameter / 6 + _thickness) * 2); pipe_radius = (block_size * size)/2; pipe_inner = pipe_radius-3*_thickness; if($model == -1) { projection(cut=tr...
glb/cad_9c3c0c918dda.glb
Create an Openbeam cable tie point consisting of a square base and a smaller square riser. Start with a base cube measuring 14mm x 14mm x 3.5mm. Centered on top of this base, add a second cube measuring 10mm x 10mm x 3mm. To create the cable tie passages and mounting hole, remove material from the center of the combi...
$fs = 0.25; difference() { union() { cube(size = [14, 14, 3.5], center = true); translate([0, 0, 3.25]) cube(size = [10, 10, 3], center = true); } translate([0, 0, 2.75]) cube(size = [10, 3, 2], center = true); translate([0, 0, 2.75]) cube(size = [3, 10, 2], center = true); translate([0, 0, 2.5]) cylinder(h...
glb/cad_e1b2242fdb74.glb
Create a trellis connector consisting of three identical cylindrical clips. Each clip is a hollow cylinder with an inner diameter of 3.2mm, an outer diameter of 4.8mm, and a length of 40mm. The walls of these cylinders are 0.8mm thick. Each cylinder must be modified with a rectangular cutout that removes a section of t...
inner_diameter = 3.2; shell_thickness = 0.8; inner_radius = inner_diameter/2; outer_radius = inner_radius+shell_thickness; length = 40; show_extra_hole = "yes"; module clip (){ difference(){ cylinder (r=outer_radius,h=length,$fn=50,center=true); cylinder (r=inner_radius,h=length,$fn=50,center=true); translate ([0,-...
glb/cad_3adb2ca0a6f1.glb
Create a rectangular box for a DC-DC step-down converter with external dimensions of 70mm in length, 55mm in width, and 30mm in height, featuring a wall thickness of 1.6mm. Incorporate four mounting screw holes in the corners with a 4mm diameter and a 4mm gap. On the side walls, create several circular cutouts for co...
use <Libs/boxes.scad>; $fn = 500; box_size = [70, 55, 30]; difference() { box(inside_box = box_size, wall_thickness = 1.6, mounting_screw = 4, mounting_screw_gap = 4); banana_socket_thickness = 11; color([0.1,0.8,0])translate([box_size[0]/2-19/2+1.6, -1, 8])rotate([-90, 0, 0])cylinder(r=banana_socket_thickn...
glb/cad_4867c51795a0.glb
Create a rectangular box for a DC-DC step-down converter with external dimensions of 70mm in length, 55mm in width, and 30mm in height. The box should have a wall thickness of 1.6mm. Incorporate mounting screw holes in the corners with a diameter of 4mm and a gap of 4mm. Inside the box, create a cutout to accommodate...
use <Libs/boxes.scad>; $fn = 250; box_size = [70, 55, 30]; difference() { box_cover(inside_box = box_size, wall_thickness = 1.6, mounting_screw = 4, mounting_screw_gap = 4); translate([box_size[0]/2+1.6, box_size[1]/2+1.6, 0])converter(); } module converter(){ cube([20, 38,15], center=true); ref...
glb/cad_d9f526691840.glb
Create a box ring chain consisting of 21 identical interlocking links stacked vertically. To create a single link, start with a cube of 10mm per side centered at the origin and rotate it 45 degrees on both the X and Y axes. Intersect this rotated cube with a sphere of 7mm radius. From this resulting shape, remove three...
module boxring(){ rotate ([45,45,0]) difference() { intersection() { translate([-5,-5,-5])cube(10); sphere(7); } translate ([0,10,0]) scale (.4) union() { translate([0,-25,-25]) cylinder(50,9,9); rotate([90,0,0]) cylinder(50,8,8); translate([-25,-25,0]) rotate([0,90,0]) cylinder(50,9,9); } } } for(i=[0:20]) { tran...
glb/cad_6babd077a56c.glb
Create a Door Glass Fixation clip. Start with a rectangular base block measuring 29mm wide, 25.5mm deep, and 6.5mm high, centered on the Y and X axes. On top of this base, add a second rectangular section centered on the Y axis, measuring 27.5mm wide, 11.2mm deep, and 3.52mm high. At the center of the assembly, create...
$fa = 5; $fs = 0.5; module sides() { union() { translate([0,-1.1,3.25]) rotate(-10, [1,0,0]) cube([29.2,1.8,7.5], center=true); translate([0,-2.2,3.25]) rotate(-45, [1,0,0]) cube([29.2,1.8,11], center=true); translate([15.0, -0.5, 3.25]) rotate(45, [-0.2,-0.2,1]) cube([3,3,7], center=true); translate([14.8,1...
glb/cad_5eef949c9954.glb
Create a Low Profile Under Cabinet Shelf by starting with a solid rectangular block measuring 150mm wide, 150mm deep, and 50mm high. Hollow out the main body to create a shelf with a wall thickness of 4mm. The interior cutout should leave a 5mm deep face at the front and a 4mm thick base. Remove a rectangular section...
undercabinet_height = 15; cabinet_face_depth = 5; shelf_depth = 150; shelf_width = 150; shelf_visible_height = 35; wall_thickness = 4; screw_thread_diameter = 3; screw_head_diameter = 8; screw_head_height = 3; num_dividers = 1; total_height = shelf_visible_height + undercabinet_height; inner_height = shelf_visibl...
glb/cad_5016ec65c559.glb
Create a Flat Surface Knurls object by starting with a rectangular base plate measuring 40mm wide, 85mm deep, and 2mm thick. To create the knurled texture, remove a series of diamond-shaped grooves from the top surface. These grooves are formed by intersecting two sets of parallel linear channels. The first set of chan...
s_wd = 40; s_dp = 85; s_tk = 2; k_wd = 3; k_ln = 4; k_sm = 50; k_dp = 1.5; k_lf = atan(k_wd/k_ln); k_tz = k_dp*k_sm/100; c_ln = s_dp/cos(k_lf); c_no = ceil((s_wd+s_dp*sin(k_lf))/k_wd)+1; x0 = 0; x1 = k_wd*cos(k_lf)/2+0.05; y0 = 0; y1 = k_dp; knurled_surface(); module knurled_surface() { difference() { trans...
glb/cad_5deb975281ae.glb
Create a multi-pipe connector consisting of a central sphere with a diameter of 20mm and a hollow core of 10mm. From this center, extend three cylindrical pipe arms. The first arm is positioned at the origin with no rotation; it is a hollow cylinder with an outer diameter of 20mm, an inner diameter of 10mm, a total l...
PipesNB = 3; ComRD = 0.5; ShowName = "yes"; ShowIn = "no"; CenterTD = 20; CenterHD = 10; P0TD = 20; P0HD = 10; P0T = "out"; P0ID = 15; P0L = 50; P0IL = 30; P0AX = 0; P0AY = 0; P0AZ = 0; P1TD = 20; P1HD = 10; P1T = "out"; P1ID = 15; P1L = 50; P1IL = 30; P1AX = 90; P1AY = 0; P1AZ = 0; P2TD...
glb/cad_a04c9c80c0e1.glb
Create a copper coil bobbin consisting of a central cylindrical spool and two circular end flanges. First, create the central spool as a cylinder with an outer diameter of 6.4mm and a total length of 21mm. Bore a hole through the center of this spool with a diameter of 5mm to accommodate a ferrite rod. Next, add two...
nResolution = 40; translate([0.000000, 0.000000, 0.000000]) rotate([0.000000, 0.000000, 0.000000]) scale([1.000000, 1.000000, 1.000000]) difference() { translate([0.000000, 0.000000, 0.000000]) rotate([0.000000, 0.000000, 0.000000]) scale([1.000000, 1.000000, 1.000000]) union() { ...
glb/cad_1671e3bb5693.glb
Create a Window Glider by constructing a base plate and a riser with a recessed screw hole. Start with a base plate consisting of two joined rectangular prisms: one measuring 10mm by 12.5mm by 1.5mm, and a second measuring 13mm by 12.5mm by 1.5mm positioned immediately adjacent to the first. On top of this base, add tw...
sd1=4; height=1.5; $fn=30; difference(){ union(){ base(); riser(); } translate([5,12.5,0]){ sh(); } } module riser(){ translate([0,0,height]){ translate([3,1.5,0]){ cube([4,6,15]); } translate([2,0,0]){ cube([6,25,7]); } } } module base() { cube([10,12.5,height]); translate([-1.5,12.5,0]) cube...
glb/cad_b6b2f173c91a.glb
Create a Bezier Cylinder with a height of 40mm and a base radius of 5mm. The shape should be a convex solid of revolution, where the side profile curves outward from the top and bottom faces. The top and bottom faces are flat circles with a radius of 5mm. The curvature of the walls should be defined by a quadratic Bezi...
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 = point1+(point2-point1)*(i/steps) ) ...
glb/cad_db4da56c7d0f.glb
Create a weighted die by starting with a 20mm cube centered at the origin. Modify this cube by intersecting it with a sphere of radius 14.14mm (20 divided by the square root of 2) to create a rounded, organic core. From this shape, remove a central rectangular block measuring 13.33mm by 13.33mm by 3.33mm, oriented alon...
$fs=1; $fa=4; width = 20; dotR = width/10; dotSpace = width/4; wall=width/6; roundedCorner = 1; module dot(type=0, r=dotR, l=dotSpace) { if (type==1) { sphere(r=r, center=true); } if (type==2) { translate([l,l]) sphere(r=r, center=true); translate([-l,-l]) sphere(r=r, center=true); } if (type==3) { ...
glb/cad_c04af9731cde.glb
Create a Solis Palazzo lid replacement by constructing a shallow, oval-shaped container with a flat top. Start by creating a solid elliptical cylinder with a width of 188mm, a depth of 100mm, and a total height of 18mm. From the bottom of this shape, remove a centered elliptical void to create a hollow throat. This int...
sizeX = 183; sizeY = 95; wallThickness = 2.5; wallHeight = 15; topThickness = 3; $fn = 100; difference() { linear_extrude(height = wallHeight + topThickness) resize([sizeX + wallThickness*2, 0]) circle(d=sizeY + wallThickness*2); linear_extrude(height = wallHeight) resize([sizeX, 0]) cir...
glb/cad_de2bf582fb27.glb
Create a rail for a bike water bottle mount. Start by forming a rectangular base that is 72.5mm long, 9mm wide, and 6mm thick. The corners of this base should be rounded with a radius of 1.5mm. At each end of the rail, create a small centered protrusion that is 6mm wide and 6mm thick, also with 1.5mm rounded corners....
bolt_diameter = 5; bolt_padding = 0.2; outer_spacing = 70; $fn = 50; chamfer=3; thick = 6; width = 9; bolt_position = (outer_spacing - bolt_diameter)/2; module bolt(dia = bolt_diameter + bolt_padding) { translate([0,0,-6]) cylinder(r=dia/2, h=20); } module bolts() { translate([bolt_position,0,0]) ...
glb/cad_fa8672ed5a9e.glb
Create a rail for a bike water bottle mount. Start by creating a rectangular base with a thickness of 6mm and a width of 30mm. The total length of the base should be 113mm, which consists of a central section of 73mm plus a 40mm extension. Ensure the corners of the base are rounded with a radius of 1.5mm. At two speci...
bolt_diameter = 5; bolt_padding = 0.2; outer_spacing = 70; $fn = 50; chamfer=3; thick = 6; width = 30; extension = 40; bolt_position = (outer_spacing - bolt_diameter)/2; module bolt(dia = bolt_diameter + bolt_padding) { translate([0,0,-6]) cylinder(r=dia/2, h=20); } module bolts() { translate([bolt_po...
glb/cad_77d0cac10b82.glb
Create a customized cable holder by starting with a solid rectangular block that is 12.5mm wide, 12mm high, and 27.5mm deep. From this main body, remove a central rectangular volume that is 12.5mm wide, 17mm high, and 22.5mm deep to create a hollow channel. Within this remaining structure, carve out a vertical cylindri...
diameter = 7; height_table = 22.5; width = 10; thickness = 2.5; lock = "no"; module output(){ if (lock == "yes"){ lock(); } } module lock(){ translate([-(width/2)-(diameter)-(thickness/2),0,0]){ translate([(diameter/14),(diameter/1.9),0]){ sphere(r = diameter/12, $fn=32, center=true); } translate([(...
glb/cad_fc7b489f187b.glb
Create a foldable phone stand consisting of two identical rectangular plates, each 60mm long, 20mm high, and 3mm thick, connected by a central hinge. Each plate features a cutout slot to hold a phone; this slot is designed for a phone thickness of 9mm and is tilted at a 70-degree angle. The front of the slot includes a...
Height = 20; Length = 60; Thickness = 3; PhoneThickness = 9; Tilt = 70; RingDiameter = 5; RingSpacing = 5.5; TabLength = 12; LipSize = 4; $fa = 6; $fs = 0.5; module Plate() { rotate([90,0,0]) linear_extrude(Thickness) union() { polygon([ [0,0],[0,Height]...
glb/cad_596fbbefd626.glb
Create a RUMBA electronics mount with a rectangular base measuring 135mm in width and 75.33mm in height, and a total thickness of 8mm. The main body is a solid plate with rounded corners. Create six vertical screw holes with a diameter of 3.5mm. Position four of these holes near the corners: two at [3.65, 4.15] and [...
boardHeight = 75.33; boardWidth = 135; screwHoleDiameter = 3.5; height = 8; bracketScrewHoleWidth = (121.72+126.96)/2; screwHoles = [ [ 1.88+1.75, 2.4+1.75], [ 1.88+1.75, 2.4+1.75+70.85-3.5], [ 1.88+1.75+124.23+3.5, 2.4+1.75], [ 1.88+1.75+124.23+3.5, 2.4+1.75+33.25+3.5], [boardWidth/2-bracketScrewHoleWidth/2,-...
glb/cad_bbd947e02ab9.glb
Create a parametric endstop holder for a microswitch. Start with a main rectangular base plate measuring 32.5mm in length, 4mm in width, and 10mm in height, centered on the origin. At one end of the plate, integrate a clamping mechanism consisting of a 15mm long rectangular block of the same height and width, positione...
bw = 4; bh = 10; cl = 15; ad = 8; hd = 3; nd = 6; mhd = 2.5; ai = 0.75; xw = 0.4; mhs = 9.5; bl = cl + ad / 2 + (bw - ai) + hd * 3 + mhs; translate([0,0,bh/2]){ difference(){ union(){ cube([bl,bw,bh], center = true); translate([-bl/2 + cl/2,bw + ad - 2*ai,0]) cube([cl,bw,bh], center = true); difference(...
glb/cad_5ae94bffa829.glb
Create an Ender 3 Clip-On Extruder bracket designed to hold a stepper motor. Start by creating a central housing with a square footprint of 48.3mm by 48.3mm and a height of 21mm, featuring walls 3mm thick. The interior should accommodate a motor width of 42.3mm. Incorporate a 45-degree chamfer on the vertical edges of ...
wall=3; tol=0.4; layer_h=0.2; motor_w=42.3; chamf_w=52; chamf_h=21; collar=22; circlip_o=2.8; circlip_h=3; circlip_w=5; circlip_a=30; AT=1/64; ST=2*AT; $fn=96; difference(){ union(){ translate([0,0,chamf_h/2])difference(){ intersection(){ cube([motor_w+2*wall,motor_w...
glb/cad_96f81468d3bd.glb
Create a modular gaming tile system based on a 26mm grid with 4mm thick walls. The system consists of three primary components: posts, walls, and plates. First, create a post. The post is a central 4mm cube column with a height of 26mm. Attached to the four sides of this column are four identical interfaces. Each inte...
BASEA=26; BASEB=4; SEGLENGTH=BASEA; WALLDEPTH=BASEB; WALLHEIGHT=BASEA; TILE=SEGLENGTH+WALLDEPTH; module subpost() { translate( v=[WALLDEPTH/4,0-WALLDEPTH/4,WALLDEPTH/2] ) union() { cube(size = [WALLDEPTH/2,WALLDEPTH/2,WALLHEIGHT-WALLDEPTH/2]); translate( v=[WALLDEPTH/4,0,WALLHEIGHT-WALLDEPTH]) cube(size = [W...
glb/cad_1a360e682622.glb
Create a universal switchgear cabinet key consisting of a central hub with four protruding arms. The central hub is a small square block with a hole through the center. Extend four arms from the center of the hub, each 36mm long. Two opposite arms are identical cylinders with a diameter of 9mm and a length of 72mm. T...
$fn = 100; module cross(dia,axLength) { minkowski() { translate([4,4,-1])cube(size = [8,8,2]); translate([0,0,-1])cylinder(2,2,2); } translate([0,0,-4.5])cylinder(9,7.5,7.5); translate([0,0,-4.5])cylinder(13,4.5,4.5); translate([-1*axLength,0,0]) rotate([0,90,0]) cylinder(axLength*2,dia,dia); translate([0,-1*axLe...
glb/cad_db806a0c8bc3.glb