Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a vacuum pump muffler consisting of a main cylindrical body and a smaller cylindrical neck. Start by creating a large cylinder with a radius of 20mm and a height of 73mm. On top of this base, add a smaller concentric cylinder with a radius of 7.5mm and a height of 20mm, extending from the top surface. Hollow o...
difference(){ union () { translate([0,0,0.1])cylinder (h=73, r=40/2); translate([0,0,70])cylinder (h=20, r=15/2); } translate([0,0,5])cylinder (h=64, r=33/2); translate([0,0,68])cylinder (h=40, r=10/2); translate([0,0,-.1])cylinder (h=10, r=22/2); } difference(){ translate([0,0,0.1])cylinder (h=60, r=3...
glb/cad_09a9810c330f.glb
Create a wheel for a waste bin chassis. Start by centering a cylinder for the axle with a diameter of 3.8mm and a height of 2.05mm. On both sides of this axle, add a wheel disk. Each disk should be a cylinder with a diameter of 11.9mm and a thickness of 2mm, positioned so that the total width of the assembly is slightl...
durchmesser_welle = 3.8; abstand_welle = 2.05; raddurchmesser = 11.9; breite_rad = 2.0; kanten_radius_rad=0.5; $fn=90; fn_sphere=30; rotate([0,-90,0]) union() { cylinder(d=durchmesser_welle, h=abstand_welle+0.1, center=true); for (i = [-1,1]) { translate([0,0,i*(breite_rad/2+abstand_welle/2)]) difference() ...
glb/cad_344914a13e28.glb
Create a drill bit box set consisting of six rectangular containers with hinged lids. Each box has an interior cavity designed to hold drill bits, with a total exterior footprint for the largest box of 70mm by 90mm. Construct the base of each box as a hollow rectangular shell with a wall thickness of 1.2mm. On two op...
translate([0,+(wallXY+cl+hingODia+0.75),0]) box(); difference(){ translate([0,-(wallXY+cl+hingODia+0.75),innerZ+2*wallZ]) rotate([180,0,0]) lids(); translate([0,-(wallXY+cl+hingODia+0.75),textH]) rotate([180,0,0]) napisy(); } module box(){ for(i=[0:num/2]) translate([i*2*(innerX+wallXY), 0, 0]) baseX2();...
glb/cad_5233df0cc308.glb
Create a parametric heat tube spool consisting of two identical circular flanges connected by a central barrel. Each flange is a disk with a diameter of 40mm and a thickness of 2mm. The central barrel has an outer diameter of 10mm and a length of 13mm, centered between the flanges. The barrel wall thickness is 1.5mm, a...
flange_spool_sides_diameter = 40; barrel_winding_section_diameter = 10; traverse_barrel_length = 13; holes_per_section = 20; count_hole_sections = 2; wire_hole_dia = 3.0; holes_rotation_degrees = 8; winding_type = "slot"; overlap_barrel_to_inner_barrel = 10; slot_size = 2; barrel_wall_thickness = 1.5; flange_w...
glb/cad_cc69fd100d18.glb
Create five identical spacers arranged in a row. Each spacer is constructed by combining two concentric cylinders. First, create a base cylinder with a diameter of 14mm and a height of 1mm. Centered on top of this base, add a second cylinder with a diameter of 6.4mm and a height of 2mm. Finally, bore a hole with a diam...
$fn=50; $outer_diameter_mm = 14; $inner_diameter_mm = 3.3; $height_mm = 1; $number_of_spacers = 5; $key_hole_diameter_mm = 6.4; $key_height_mm= 2; module spacer(){ difference(){ union(){ cylinder(d=$outer_diameter_mm, h=$height_mm); cylinder(d=$key_hole_diameter_mm, h=$height_mm+$key_height_mm); ...
glb/cad_4b6ad36b5735.glb
Create a shopping cart key with a thickness of 2.3mm. The main body is formed by the convex hull of two circles: a large circle with a diameter of 23.2mm and a smaller circle with a diameter of 16mm. Position the center of the smaller circle 33.33mm away from the center of the larger circle along the x-axis. Finally,...
$fn = 200; $coin_Diameter = 23.2; $coin_Height = 2.3; $used_keyholder_length= 100; $mount_hole_dia_inner = 3.3; $mount_hole_dia_outer = 16; module Jag() { linear_extrude(height = $coin_Height, center = true, convexity = 10, twist = 0) { difference(){ hull(){ circle(d=$coin_Dia...
glb/cad_76eea7146cfa.glb
Create a small storage container and matching cover called a Carry Key. First, construct the main case. Create a rectangular base 50mm long and 12mm wide with a height of 2mm. Hollow out the center to create a walls-and-floor structure where the walls and bottom are 0.5mm thick. On one of the short ends of the base, ...
$fn = 50; $used_keyholder_length= 100; $height_mm = 2; $cover_height_mm = 0.5; $wall_width_mm = 0.5; $outer_width_mm = 12; $mount_hole_dia_inner = 3.3; length_mm=$used_keyholder_length/2; inner_width_mm = $outer_width_mm -$wall_width_mm*2; module base() { difference(){ square([length_mm,$outer_width_m...
glb/cad_60de6382e755.glb
Create a nut for a string instrument with a total width of 45mm, a depth of 5.15mm, and a height of 9mm. The main body is a rectangular block with rounded vertical edges of 1mm radius. The top surface of the block is not flat but is shaped by a cylindrical vault with a radius of 12mm running along the width. Carve six...
breite = 45; tiefe = 5.15; hoehe = 9; radius = 12; edge_radius = 1; string_diameters = [0.72, 0.8, 1.05, 0.92, 1.05, 1.2]; string_height_compensation = [0,0,0,0,0,0]; string_height_compensation_for_all = -0.65; abstand_vom_rand = 5; guitar_layout = "right"; string_layout = "center"; print_in_the_air = "no"; ...
glb/cad_1bcd1df4af56.glb
Create a parametric hotend assembly for an E3D V6 volcano extruder consisting of a bracket, a clamp, and a fan duct. First, create a bracket with a base measuring 24mm by 13mm and a height of 7mm. Add a vertical section extending 17mm upward, measuring 26mm by 13mm. Incorporate several holes: a 13mm diameter hole and ...
display = "print"; $fn=60; if(display=="show"){ bracket(); translate([0,0,6.8]) clamp(); translate([-9,11,7.5]) rotate([0,-90,180]) duct(); } if(display=="showfans"){ bracket(); translate([0,0,7]) clamp(); translate([-9,-10,27.5]) rotate([0,-90,0]) axial(); translate([-9,10,7.5]) rotate([0...
glb/cad_9e9dc614825f.glb
Create a filament spool half with a total width of 59mm. Start with a main cylindrical body that has an outer diameter of 78mm and a height of 23mm (calculated as 59mm minus two 18mm walls). Hollow out the center of this cylinder with a hole 72mm in diameter. Inside the main body, create a central hub cylinder with a ...
axisDia=52; innerDia=78; filamentWid=59; wall=3; slideGap=0.2; filamentRadius=96; buildPlateLen=227; buildPlateWid=143; $fn=90; small=0.01; module wedge() { polygon([ [0,-.4], [0.05,-.2], [.1,0], [.2,.18], [.3,.3], [wall-.2, wall-.2], [wall-.15,wall-.13], [wall-.1,wall-.05], ...
glb/cad_d42bd1851524.glb
Create a Customizable Servo Adapter designed to fit a small servo into a larger servo's mounting space. First, create a large rectangular outer shell based on the dimensions of a DS3218 servo: 40.5mm length, 20mm width, and 41mm height. This shell should have chamfered edges. Inside this shell, carve out a rectangul...
Large_Servo = 1; Small_Servo = 2; Mount_Small_Servo = 0; Draw_Adapter = 0; Draw_Sides = 0; Draw_Servo_Wheel = 0; Large_Servo_Scale = 100.0; Large_Servo_Adjust = 0.0; Large_Servo_Cable_Channel = 0; Small_Servo_Adjust = 0.0; Small_Servo_Cable_Channel = 1; Fastener_Diameter = 2.5; Fastener_Length = 35.0; kCla...
glb/cad_d7333a41da14.glb
Create an industry norm sorting box with a custom base length of 40mm, width of 40mm, and height of 40mm. The box features a wall thickness of 1.2mm. Construct the outer shell by combining a rounded rectangular base and a top rim. The base is a rounded cube with a corner radius of 4mm, dimensions of 37.5mm by 37.5mm, ...
norm_height = 0; length_factor = 1; width_factor = 1; thn_wall = 1.2; custom_base_length = 40; custom_base_width = 40; custom_height = 40; n_length_dividers = 0; n_width_dividers = 0; base_size = 54; bottom_offset = 1.25; rim_offset = 0.5; rim_height = 6; r_outer_corner = 4; r_inner_corner = 2.5; width = (nor...
glb/cad_e413a535b89d.glb
Create a DPS5005 Power Supply Case by starting with a solid rectangular block measuring 78mm wide, 46mm deep, and 60mm high. Hollow out the center of this block to create a cavity measuring 72mm wide and 40mm deep, leaving a wall thickness of 3mm on all sides. The top of the case remains open. At the bottom face of th...
reg_x=72; reg_y=40; inner_space=60; latch_width=14; latch_thick=1.6; latch_length=12; jack_diam=8.7; wall=3; e=0.01; difference(){ cube([reg_x+2*wall,reg_y+2*wall,inner_space],center=true); translate([0,0,wall])cube([reg_x+2*e,reg_y+2*e,inner_space+e],center=true); translate([reg_x/4,0,-inner_space/2])cylinder($...
glb/cad_48445ec89ff9.glb
Create a parametric S-hook consisting of two mirrored, open-ring segments joined in the center. The entire model has a uniform thickness of 5mm and a width of 5mm. The top section is a curved arc with an outer radius of 13.5mm (8.5mm radius plus half the thickness). This arc should be open by approximately 90 degrees,...
hook_thickness = 5.0; width = 5.0; top_hook_radius = 8.5; top_hook_opening = 90.001; bottom_hook_radius = 16.0; bottom_hook_opening = 90.001; goldenratio = 1.61803399; joinfactor = 0.125; s_hook(width, hook_thickness); module wedge(angle, radius, thickness) { degreesperslice = 1; numberofslices = angle / de...
glb/cad_7945e9c54562.glb
Create a customizable office cube wall hook consisting of a mounting base and a horizontal ring. First, create the mounting base by extruding a specific profile to a height of 7mm. This profile consists of two identical repeating units stacked vertically. Each unit is a polygon defined by the points [0,0], [11,0], [1...
BuildMode=0; HookType = 2; WallHookWidth = 7; WallHookCount = 2; HookDiameter = 10; HookOverhang = 0; module wallHook (innerDiameter = 10,hookOverhang = 5,hookWidth=7,hangerCount=2, fnn=50) { translate([-(innerDiameter+ 11/2),-(innerDiameter+11/2)/2-(9.25+(hangerCount-1)*25.5)/2,hookWidth/2]) union() { hang...
glb/cad_246dec0033d9.glb
Create a shelf hook designed to slide onto a board. Start with a main vertical body that is 25mm deep, 45mm wide, and 45mm tall. All exterior vertical edges of this body should be rounded with a 3mm radius. Carve a rectangular slot through the top of the body to accommodate the shelf board. This slot must be 25mm deep...
w=18.1; g=3; h=45; ho=3; $fn=60; hook(); module hook(){ l=25; difference(){ cuber([l,h,h],3); translate([0,g,ho]) cube([l,w,h]); } lw=20; difference(){ hull(){ translate([0,9,0]) cuber([l,36,1],3); translate([0,0,-50]) cuberr([l,w,lw-5],5); } rx=37; translate([0,...
glb/cad_a206a010a965.glb
Create a switch cover consisting of a rectangular base with a raised central housing. The base is a flat plate 42mm wide, 18mm deep, and 5mm thick. At each end of the base, center a vertical cylinder with a diameter of 10mm and a height of 5mm. On top of this base, construct a central rectangular block that is 28mm w...
$fn = 90; module CubeBody() { hull() { translate([-14, 9, 19]) sphere(d = 2); translate([-14, -9, 19]) sphere(d = 2); translate([14, 9, 19]) sphere(d = 2); translate([14, -9, 19]) sphere(d = 2); translate([-14, 9, 0.5]) cylinder(d = 2, h = 1, center = true); translate([-14, -9, 0.5]) cylinder(d = 2, h = ...
glb/cad_faa84495c1ed.glb
Create a Yo-yo Stand consisting of a flat base and a grid of vertical support pillars. Start by creating a flat, rectangular base plate with a thickness of 3mm. The base should be a modified square, scaled by a factor of 1.375 along one axis to create a rectangular footprint. On top of this base, arrange a grid of v...
intersection(){ scale([1,5.5/4,1]) rotate([0,0,45]) cylinder(r1=22,r2=0,h=6,$fn=4); scale([1,5.5/4,1]) rotate([0,0,45]) cylinder(r1=21,r2=21,h=20,$fn=4); } difference(){ for(i=[-3:3]){ for(j=[-3,-2,-1,1,2,3]){ translate([4*i,5.7*j,0]) rotate([0,0,10*(i+j)]) cylinder(r=1.4,h=30,$fn=5); ...
glb/cad_0ab59ad01863.glb
Create a console for an SK35 DC-DC converter. Start by constructing a main outer box with a width of 83mm (79mm bezel width plus 2mm walls on each side), a depth of 47mm (43mm bezel height plus 2mm walls), and a height of 47mm. The box is tilted at a 45-degree angle. Hollow out the interior to fit the converter, which...
SK35_width = 72.5; SK35_height = 40.0; SK35_depth = 39.0; SK35_sideClamp_height = 12.0; SK35_sideClamp_thickness = 2.0; SK35_angle = 45.0; caseWall = 2.0; SK35_bezel_width = 79.0; SK35_bezel_height = 43.0; SH35_bezel_thickness = 2.0; box_depth = SK35_bezel_height + caseWall * 2; box_width = SK35_bezel_width + caseWa...
glb/cad_8a7fd4e7ca9c.glb
Create a console for an SK35 DC-DC converter. Start by constructing a main outer box with a width of 83mm, a depth of 47mm, and a height of 47mm, using a wall thickness of 2mm. The box should be hollowed out, with the interior cavity rotated 45 degrees along the X-axis. On the front face, create a rectangular cutout t...
SK35_width = 72.5; SK35_height = 40.0; SK35_depth = 39.0; SK35_sideClamp_height = 12.0; SK35_sideClamp_thickness = 2.0; SK35_angle = 45.0; caseWall = 2.0; SK35_bezel_width = 79.0; SK35_bezel_height = 43.0; SH35_bezel_thickness = 2.0; box_depth = SK35_bezel_height + caseWall * 2; box_width = SK35_bezel_width + caseWa...
glb/cad_da5409cbc96f.glb
Create a Cup Holder Phone and Tablet Stand consisting of a tapered cylindrical base and a tilted device grip. First, construct the cup holder insert as a hollowed frustum. The top diameter is 70mm and the bottom diameter is 68mm, with a depth of 30mm. The walls should have a minimum material thickness of 3mm. If the ...
Device_Thickness = 12; Device_Height = 140; Device_Width = 250; Grip_Depth = 8; Grip_Angle = 20; Grip_Offset_Percent = 50; Grip_Additional_Height = 5; Grip_Bevel = 3; Cup_Holder_Insert_Diameter_Upper = 70; Cup_Holder_Insert_Diameter_Lower = 68; Cup_Holder_Insert_Depth = 30; Cup_Holder_Insert_Lip = 12; Mater...
glb/cad_5d55c8b1274b.glb
Create a Parametric Inverted Y Motor Mount for a NEMA 17 motor. Start with a main body consisting of a base plate and two vertical support walls. The overall footprint is defined by a beam separation of 50mm and an extrusion width of 20mm. Construct the main structure using a combination of rectangular blocks: one blo...
include <configuration.scad> beam_sep = 50; extrusion_w=20; beltPass_w = 30; beltPass_h = 31; screwLand_l=30; screw_sep=14; thick=6; sThick=4.5; m5_diameter=5.3; s1x=thick+screwLand_l/5; s2x=thick+4*screwLand_l/5; supportTop_a=15; motorMnt_play=3; mnt_h=42+motorMnt_play; m5_rad=4.5; m5_h = thick-sThick+0.01; m5_rad=...
glb/cad_089a5f684972.glb
Create a Customizable Mug Sharpener by starting with an octagonal prism that has a diameter of 99.5mm and a height of 25mm. Hollow out the center of this prism by removing a cylinder with a diameter of 74.5mm and a height of 18mm. Cut two symmetrical knife slots through the body. Each slot should be 3mm wide and angl...
angulo=10; DiaTaza=74.5; alt1=18; alt2=25; AnchoSlot=3; DiaTotal=DiaTaza+alt2; $fn=80; difference(){ taza(); slot(); rotate([0,0,180]) slot(); boca(); texto(); } module taza(){ translate([0,0,-alt2]) difference(){ rotate([0,0,22.5]) ...
glb/cad_4c93ffd8579d.glb
Create a poker chip rack inlay consisting of a grid of semi-cylindrical slots. The overall structure is composed of 5 rows and 3 columns of chip stacks. Each individual chip slot is a cylinder with a radius of 20mm and a height of 35.19mm, oriented horizontally. These cylinders are hollowed out to hold chips with a dia...
Chip_Diameter = 40; Chip_Thickness = 3.4; Fudge = 3.5; Chips = 10; Rows = 5; Columns = 3; Wall = 2; Floor = 1; Rounded = false; $fn = 150; Radius = Chip_Diameter/2; Height = Chip_Thickness*Chips*(1+Fudge/100); for (i = [1:1:Rows]) { for (j = [1:1:Columns]){ if (Chip_Thickness <= 2*Wall) { tra...
glb/cad_63e1fec6ee19.glb
Create a poker suitcase inlay card and chip holder. Start with a solid rectangular block with a total width of 143.5mm (calculated as 4*2mm + 2*67.5mm + 49.7mm), a length of 96.5mm (2*2mm + 92.5mm), and a height of 46mm (1mm + 2*22.5mm). From this block, remove two rectangular sections for card decks, each measuring ...
DeckH = 22.5; DeckW = 67.5; DeckL = 92.5; ChipsH = 13.5; ChipsDia = 49.7; RecessW = 15; Wall = 2; Floor = 1; $fn = 150; Width = 4*Wall+2*DeckW+ChipsDia; Length = 2*Wall+DeckL; Height = Floor+2*DeckH; echo(Height); difference(){ cube([Width,Length,Height]); translate([Wall,Wall,Floor]) cube([DeckW,DeckL, Height...
glb/cad_37a63684f234.glb
Create a parts bin insert with a total height of 46.5mm. The main body is a hollowed-out rectangular container with an outer footprint of 39mm in width and 27mm in depth (calculated as 0.5 times the base unit of 54mm). The walls and floor have a uniform thickness of 1.2mm. The outer shell features rounded vertical co...
box_x0 = 39; box_y0 = 54; box_z = 46.5; delta = 2; foot_height = 2; radius = 6.25 / 2; thickness = 1.2; module tab(X, Y) { tab_x = 12; tab_y = 5; tab_z = 10; translate([X/2-tab_x/2, thickness,box_z])polyhedron( [[0,0,-tab_z],[tab_x,0,-tab_z],[tab_x,0,0],[0,0,0],[tab_x,tab_y,0],[0,tab_y,0]], ...
glb/cad_f49361363403.glb
Create a 45mm spacing mount for an axial cooling fan duct. Start by creating a rectangular base measuring 53mm in length, 8mm in width, and 4mm in height. Drill two vertical holes with a radius of 2mm through the base: one centered 4mm from the left edge and 4mm from the side, and another centered 49mm from the left ed...
difference() { cube([53,8,4]); translate([4,4,0]) { cylinder(h=6, r=2); } translate([49,4,0]) { cylinder(h=6, r=2); } } translate([53/2-1.5,0,4]) { difference() { cube([3,8,25]); translate([-.5,4,22]) { rotate([0,90,0]) { cylinder(h=4, r=2); } translate([0,5,0]) { rotate([45,0,0]) { cube...
glb/cad_e85af5562a05.glb
Create a horizontal sundial consisting of a circular base, a gnomon, and a compass indicator. Start with a base formed by a cylinder with a diameter of 150mm and a height of 3mm. Add a smaller concentric cylinder rising from the center with a radius of 141mm and a height of 6mm. Cut 24 thin rectangular slots into the...
D=150; ep=3; Latitude=48; base(); gnomon("needle"); compass(30); module base(){ difference(){ union(){ cylinder(r1=D,r2=D-ep,h=ep); cylinder(r=D-ep*2,h=2*ep); } for (i=[1:24]){ translate([-(D-ep*4),0-0.5,2*ep]) rotate([0,0,180+atan(tan((i*15))*sin(Latitude))]) cube([D*5,1,ep],center=true); }...
glb/cad_f5134e16be05.glb
Create a personalized cable name clip by constructing a series of 3D letters that form the word "DOGBERT". Each letter should be extruded to a height of 13mm in the Y dimension. The letters are positioned sequentially along the X-axis with specific heights and overlaps: the first letter is 8mm high, the second 5mm, the...
Font_name = "Forte"; Text = "DOGBERT"; Rotation = 0; letter_1_height = 8; letter_2_space = 10.3; letter_2_height = 5.0; letter_3_space = 10; letter_3_height = 8; letter_4_space = 9.8; letter_4_height = 6; letter_5_space = 9.8; letter_5_height = 7.5; letter_6_space = 9.5; letter_6_height = 6; letter_7_space = 9...
glb/cad_4eb75f7988c6.glb
Create a cipher ring consisting of two concentric, rotating cylindrical rings. The lower ring is a cylinder with a radius of 15mm and a height of 5mm, featuring a central hole with a radius of 11.4mm and a height of 8mm. This lower ring has a wider base flange with a radius of 15mm and a height of 2mm. Around the outer...
$fn=($preview) ? 25 : 100; module letter_ring() { for( i =[0:26]) { oa = ord("A"); num = (i < 26) ? oa+i : ord(" "); rotate([0,0, 360/27 * i]) { translate([-0.4,-14.5]) rotate([90,0]) linear_extrude(1,center=true) text(chr(num), size=3, halign="left", font="Go Mono:style=Bold"); } } } m...
glb/cad_82c5b49b05a7.glb
Create a HEXuLED Lamp consisting of hexagonal components with a radius of 55mm and a height of 19mm. First, create a hexagonal base box. This is a hexagonal prism with a 55mm radius and 39mm height. Hollow out the center with a concentric hexagonal prism starting 0.9mm from the bottom, leaving a wall thickness of 3mm...
h=19; hb=7; r=55; th=3; thi=2; $fn=30; thb=0.3; translate([120,0,0]) color("red") box(); translate([0,0,0]) color("white") blend(); translate([0,100,0]) color("blue") hexA(); translate([0,-100,0]) color("blue") hexB(); module box(){ h=h+20; difference(){ cylinder(r=r,h, $fn=6); translate([0,0,thb*3]) cylinder(r...
glb/cad_1c0c56becea6.glb
Create a Pipe Sonar Head fixture designed to fit a 1-inch schedule 40 PVC pipe. The main body is a 90-degree elbow with a constant inner diameter of 26.2mm and an outer diameter of 33.7mm. At one end of the elbow, create a cylindrical housing to accommodate a speaker. This housing starts with a base diameter of 38.7m...
slop = 0.2; POD = 33.5 + slop; PID = 26.0 + slop; Cod = 40.5 + slop; Cht = 22; ; SID = 26.75 + slop; SOD = 29.51; SPod = 38.5; SPt1 = 2.5; SPth = 12.6; SPc1 = 34.5; SPc2 = 26.5; Dwh = 1.4; Eang = 64; SL = 12; eps = 0.01; fn=60; module pipe_1in() { difference() { cylinder(d=POD,h=SL, $fn=fn); trans...
glb/cad_605ebbd2af6f.glb
Create a Pipe Sonar Head sleeve by constructing a hollow cylinder with a height of 20mm. The outer diameter of the cylinder should be 37.6mm and the inner diameter should be 33.8mm, resulting in a wall thickness of 2mm. Ensure the circular profiles are smooth by using a high facet resolution of 80. The final shape is a...
slop = 0.2; POD = 33.6 + slop; PID = 26.1 + slop; th = 2.0; eps = 0.01; fn=80; module PVCpipe(len=20) { difference() { cylinder(d=POD,h=len,$fn=fn); translate([0,0,-eps]) cylinder(d=PID,h=len+eps*2,$fn=fn); } } module PVCpipeSolid(len=20) { cylinder(d=POD,h=len,$fn=fn*2); } module sleeve(len=20) {...
glb/cad_f638a2baf8c8.glb
Create a Dux Centre Flush toilet cistern bezel. Start by constructing a hollow oval ring with an outer length of 89.5mm and an outer width of 27.5mm, with a height of 2.1mm. The top surface of this ring should be slightly domed. From the bottom of this ring, extend a downward-facing oval flange that fits into the lid....
IC=0.5; IL=75.5+IC*2; IW=20.5 +IC*2; FlangeT=1.7; FlangeH=5; LidT=2.7+0.2; BezelW=7; BezelH=2.1; module Oval(R,L,H, dR=0) { hull() for (q=[-1,1]) { translate([q*(L/2-R), 0,0]) cylinder(r1=R, r2=R-dR, h=H); } } module Oval2(R,L,H, k=10) { hull() for (q=[-1,1]) { translate([q*(L/2-R), 0,0]) intersection() {...
glb/cad_024d17feffa6.glb
Create a simplistic terrace model using 10mm square tubes for the structural frame. First, build the support structure with six vertical pillars. Position three pillars at the front (x=0) with a height of 400mm and three at the back (x=350mm) with a height of 320mm, spaced evenly across a width of 870mm. Construct t...
rohrdimension = 10; laenge_richtung_garten = 350; breite = 870; anzahl_saeulen_quer = 3; saeulen_hoehen_laengs = [400, 320]; anzahl_saeulen_laengs = len(saeulen_hoehen_laengs); anzahl_quertraeger = 3; abstand_vom_boden = 75; withfloor = "floor"; dielenbrett_breite = 15; dielenbrett_dicke = 3.5; dielenbrett_ab...
glb/cad_e279caa3ac7b.glb
Create a customizable ear saver strap by constructing a flat, extruded plate 1mm thick. The main body is a rectangular strap 120mm long and 25mm wide. At both the left and right ends, create a structural frame consisting of a 3mm wide vertical bar and a 3mm wide horizontal bar that runs along the top and bottom edges, ...
width = 25; length = 120; strip_width = 3; message = "SIX FEET PLEASE"; font_size = 7.5; horizontal_text_adjust = 0; vertical_text_adjust = -5; text_fit_length = false; horizontal_resize = text_fit_length ? length-strip_width*2+horizontal_text_adjust : horizontal_text_adjust; module strap_leg(leg_width,leg_length,str...
glb/cad_daff72c9c4a3.glb
Create an iPad stand for videoconferencing that resembles a toast rack. The base consists of four horizontal planks, each 20mm wide and 4mm thick, with rounded ends. These planks are spaced evenly across a total length of 150mm. Position six vertical walls perpendicular to the planks. Each wall is 150mm long, 4mm thic...
$fn = 40; number_of_slots = 5; number_of_walls = number_of_slots + 1; number_of_pillars = 2; number_of_planks = 4; planks_have_rounded_ends = true; function sumvfirst(v,i,s=0) = (i==s ? 0 : v[s] + sumvfirst(v,i,s+1)); thickness = 4.0; slot_width_array = [15.0, 13.0, 11.0, 12.0, 14.0]; slot_length = 150.0; wall_lengt...
glb/cad_401e3bcd4838.glb
Create an iPad videoconferencing stand consisting of a base with several parallel slots. The base is formed by four horizontal planks, each 20mm wide and 4mm thick, with rounded ends. These planks are spaced evenly across a total length that accommodates six vertical walls. Each of the six vertical walls is 150mm long...
$fn = 40; number_of_slots = 5; number_of_walls = number_of_slots + 1; number_of_pillars = 2; number_of_planks = 4; planks_have_rounded_ends = true; function sumvfirst(v,i,s=0) = (i==s ? 0 : v[s] + sumvfirst(v,i,s+1)); thickness = 4.0; slot_width_array = [27.0, 25.0, 23.0, 24.0, 26.0]; slot_length = 150.0; wall_lengt...
glb/cad_c273317eeaca.glb
Create an iPad stand for videoconferencing consisting of a base with vertical walls and supporting pillars. First, construct the base using four horizontal planks. Each plank is 20mm wide and 4mm thick, with a total length of 194mm (calculated as the sum of four 4mm walls and three slots of 12mm, 15mm, and 15mm respe...
$fn = 40; number_of_slots = 3; number_of_walls = number_of_slots + 1; number_of_pillars = 4; number_of_planks = 4; planks_have_rounded_ends = true; function sumvfirst(v,i,s=0) = (i==s ? 0 : v[s] + sumvfirst(v,i,s+1)); thickness = 4.0; slot_width_array = [12.0, 15.0, 15.0]; slot_length = 150.0; wall_length = slot_len...
glb/cad_b6b802fb3c7a.glb
Create a 3D-printed iPhone stand by extruding a specific 2D profile to a total width of 40mm. The profile is composed of a continuous 3mm thick line with rounded ends. Start by drawing a horizontal base line 50mm long. From the end of this base, create a back support line 60mm long, angled 70 degrees upward from the ba...
$fn = 40; corethickness = 3; baselength = 50; backlength = 60; basetobackangle = 70; frontlength = 14; backtofrontangle = 90; frontliplength = 7; width = 40; module roundedline(length) { circle(d = corethickness); translate([0,-corethickness/2,0]) square(size = [length, corethickness], center=false); translate([le...
glb/cad_bba8f701c7a9.glb
Create a Fermentation Cap for Ball Canning Jars consisting of a base and a removable top. For the base, create a shallow cylinder with a radius of 34.925mm and a height of 38.1mm. The base has a wall thickness of 15.24mm. At the center of the base, create a hollow vertical exhaust tube with an outer width of 7.5mm an...
include <shapes.scad> mm_per_inch = 25.4; rim_height = 0.256*mm_per_inch; cap_height = 1.5*mm_per_inch; bottom_thickness = 2; jar_outside_radius = (2.75*mm_per_inch)/2; rim_outside_radius = (2.65*mm_per_inch)/2; rim_thickness = 0.24*mm_per_inch; inside_well_height = cap_height-bottom_thickness; inside_well_radius = (...
glb/cad_4fbf185716da.glb
Create a parametric spacer bushing by starting with a main outer cylinder that has an outer diameter of 65mm and a total length of 10mm. Remove a central cylindrical core with a diameter of 33mm from the center of the main body. To add threading, create an internal metric thread at the bottom end of the spacer with a...
$fa=12; $fs=2; threads = 0; both_ends = 0; thread_tolerance = 0.1; top_thread_diameter = 8; top_thread_pitch = 1.25; top_thread_depth = 4; bottom_thread_diameter = 10; bottom_thread_pitch = 1.5; bottom_thread_depth = 4; id = 33; od = 65; length = 10; difference() { cylinder(d=od, h=length, center=tr...
glb/cad_d1657bb4e3f5.glb
Create a watch bracelet loop by constructing a rectangular block with dimensions 18mm in length, 7mm in width, and 9mm in height. Apply a fillet or rounding to all edges and corners using a radius of 2mm to ensure the final shape is smooth and devoid of sharp angles. The resulting geometry should be a solid, rounded cu...
minkowski() { $fn=50; cube([18,7,9]); cylinder(r=2,h=1); }
glb/cad_1df2e63e8869.glb
Create an "Among Us" wiring box. Start with a rectangular base plate measuring 275mm by 275mm with a thickness of 1.6mm. Build walls around the perimeter with a thickness of 4mm and a total height of 30mm, though the interior is hollowed out to leave a 1.6mm floor. On the side plates, which are 18mm wide, create hori...
d_wire=5.5; d_magnet=5; h_magnet=3; h_flange=8; d_flange=14; w_box=275; h_box=275; t_box=30; w_side_plate=18; t_side_plate=t_box-6; t_plate=1.6; t_wall=4.0; $fn=60; box(); module clip(){ difference(){ union(){ hull(){ cylinder(d=8,h=4); translate([16,0,0]) ...
glb/cad_0acc70bb3239.glb
Create a decorative push button assembly consisting of a button cap, a spring, and a housing. First, create the button cap by revolving a profile around the Z-axis. The profile starts at [0,0], extends to [4,0], rises to [4,4], moves to [3,5], and ends at [0,5]. Hollow out the center of this cap with a square hole me...
gap = 0.3; pin_hole_diameter = 1.75+2*gap; module button_button(){ fn = $preview?64:128; path = [ [0, 0], [4, 0], [4, 4], [3, 5], [0, 5] ]; difference(){ rotate_extrude(angle=360, $fn=fn) polygon(path); translate([-2-gap, -2-gap, -1...
glb/cad_56b49a4de680.glb
Create a Picatinny rail for a Crosman P1322. The main body is a linear extrusion with a length of 54.75mm (calculated from 6 teeth with a 10mm periodicity minus a 5.25mm gap). The top profile is a symmetric rail with a major diameter of 21.2mm and a minor diameter of 16.2mm. The rail features a repeating tooth patter...
PICM = 21.2; PICm = 16.2; PICg = 5.25; PICs = 10; PICd = 3; PICh = 9.32; PICbh = 3.79; PICv = 5.53; SH_RAD=3; PICN = 6; RES=256; module top_rail() { difference() { linear_extrude( height=PICs*PICN-PICg) polygon(points=[[0,0], [-PICm/2,0], [-PICm/2, PICbh], [-PICm/2-PICv/2, PICbh+PICv/2], [-PICm/2, PICbh+P...
glb/cad_e1d1ac57446f.glb
Create a Wemos D1 Mini frame module designed to hold a PCB of 26mm width and 35mm length with a thickness of 2mm. The structure consists of several vertical pillars and support corners positioned to clip the PCB into place. At the northwest and northeast corners, create two frame corners. Each corner is a pillar with ...
wemos_d1_pcb_width = 26; wemos_d1_pcb_length = 35; wemos_d1_pcb_thickness = 2; wemos_d1_thin_wall = 1.2; wemos_d1_clip = 1; wemos_d1_tab_width = 4; module edged_box() { rib = 4; sag = .4; dims = [rib,rib,wemos_d1_pcb_thickness+sag]; edge_off = 2; d = .001; d3 = [d,d,d]; mirror([0,1,0]) tra...
glb/cad_25901a0b0b3c.glb
Create a dual cable clamp for a flat surface. The main body is a solid with a width of 10mm. The outer profile consists of two semi-circular lobes with a radius of 6.05mm, connected by a central flat section that is 8.25mm long. Within this body, create two parallel cylindrical cutouts to hold cables, each with a dia...
fudge = 0.25; fn=80; eps=0.03; bn = 100; COD = 6.1; DMH = 5.5; ID = DMH + eps; th = 3.0; W = 10.0; R1 = (COD + fudge)/2; R2 = R1 + th; L = R2 * DMH / 2; module mt_hole() { translate([-W,-R1-L/2,W/2]) rotate([0,90,0]) cylinder(d=ID, h=W*3, $fn=fn); } module cable() { translate([R1,0,-W]) cylinder(r=R1, h=W*3...
glb/cad_4f4e6699efb6.glb
Create an angle bracket holder for a CNC machine. Start with a base plate that is 50mm long, 27.5mm wide, and 2mm thick. The base should have a large semi-circular cutout with a 40mm diameter centered along the back edge and a smaller 23mm circular cutout centered at the front. Place two small 3.2mm diameter mounting h...
$fn=12; H = 16; TH = 2; translate([0,0,0]) angleBracket(); module angleBracket() { $fn=30; cen = -20; hei = 25; wide = 27.5; SS = 31/2; M3 = 3.2; difference() { union() { hull() { translate([0,5,TH/2]) cube([50,10,TH], true); translate([cen-3,31+hei...
glb/cad_e7b3c830c317.glb
Create a belt and bearing guard for an MPCNC. Start with a base plate that is 11.6mm thick. The main body is formed by the union of a central cylinder with a diameter of 21mm and a height of 11.6mm, and a hull connecting two outer cylinders, each with a diameter of 28.6mm and a height of 11.6mm, positioned at x = 28.5m...
$fn=30; shellThickness = 1.6; betweenBolts = 57; boltDiameter = 8.5; bearingDiameter = 22; pulleyOD = 13; pulleyYaxis = 58; beltThickness = 2; beltClearance = 3; shellHeight = 10; SS = 30.5/2; TH = shellThickness; BB = betweenBolts/2; bolt = boltDiameter; BD = b...
glb/cad_d3b65a47ba5c.glb
Create a USB-Stick-Safe consisting of a main storage box and a matching lid. For the main box, start with a solid rectangular block measuring 70mm in length, 30mm in width, and 20mm in height. Hollow out the center of this block by removing a rectangular volume of 66mm by 26mm by 30mm, starting from an offset of 2mm fr...
$fn=100; %box(); translate([0,0,20])deckel(); translate([5,3,3])USB_Stick(); module USB_Stick() { color([1,0,0]) { cube([59,25,10]); } } module box() { difference() { union() { cube([70,30,20]); translate([35-10,-10,18]) hull() { cube([20,10,2]); transla...
glb/cad_aed519fc67c9.glb
Create a replacement bandsaw table insert as a thin disc with a height of 2.5mm. The main body is a 36-sided prism with a bottom radius of 31.875mm and a top radius of 31.5mm. From this disc, remove a central oblong slot and two small circular notches. The central slot is formed by two cylinders with radii of 4mm and a...
difference() { cylinder(r1=63.75/2,r2=63/2,h=2.5,$fn=36); translate([-2.5/2,-10,-0.1]) cube(size=[2.5,42,3]); translate([-63.75/2,0,-0.1]) cylinder(r=2.5,h=3); translate([63.75/2,0,-0.1]) cylinder(r=2.5,h=3); translate ([0,-10,-0.1]) oblong(); } module oblong () { union () { cylinder(r=4,h=3); translate([-4,0,0]) cube...
glb/cad_9708ed05d532.glb
Create a curtain system slider consisting of a wheeled base and a vertical holder. Start by constructing the base: create two cylinders with a diameter of 8.5mm and a thickness of 3mm, positioned 10mm apart from center to center along the X-axis. Connect these wheels with a central axle block that is 11mm thick and 6.5...
$fn = 100; WheelDiameter = 8.5; WheelThickness = 3; WheelDistance = 10; AxleBlockDiameter = WheelDiameter-2; AxleBlockThickness = 11; MiddleAxidDiameter = 7; MiddleAxidHight = 2; translate([0,AxleBlockThickness/2,WheelDiameter/2]) rotate([90,0,0]) union() { hull() { translate([WheelDistanc...
glb/cad_e08d08f94380.glb
Create a keyboard stand with a base and two symmetrical vertical supports. The base is a rectangular slab 155mm wide, 5mm thick, and approximately 15mm deep. Carve a wide, shallow circular arc out of the top center of this base, leaving the outer edges intact to form the floor of the stand. Position two identical supp...
keyboard_length=159; keyboard_width=430; keyboard_bottom_length=8; keyboard_angle=5; keyboard_foot_angle=0; keyboard_foot_length=6; base_height=5; wall_size=5.0; support_separation_percent=0.35; support_length_percent=0.60; base_cutout_percent=0.85; oM=0.001; $fn=60; support_length=support_length_percent*ke...
glb/cad_a42d23aa24e3.glb
Create a polygonal pencil holder by constructing a hollow hexagonal prism. Start with a solid hexagonal prism that has a diameter of 50mm and a total height of 80mm, centered on the origin. To create the interior cavity, remove a smaller hexagonal prism from the center with a diameter of 44mm and a height of 80mm. Posi...
diametro=50; altura=80; lados=6; grosor=3; difference (){ cylinder(r=diametro/2,h=altura,center=true,$fn=lados); translate([0,0,grosor]) cylinder(r=diametro/2-grosor,h=altura,center=true,$fn=lados); }
glb/cad_be93c69fb92c.glb
Create a Snappy Connector with overall dimensions of 50mm in length (X), 10mm in width (Y), and 5mm in height (Z). The main body is a rectangular block with a complex profile extruded along the Y-axis. The profile consists of a series of stepped tabs and notches. Create a central channel by extruding a base profile t...
x = 50; y = 10; z = 5; SnappyClip(x,y,z); module SnappyClip(OAX=50, OAY=10, OAZ=5) { clr = 0.26; tabX = OAX/6; tabY = (OAY-2*clr)/3; tabZ = tabX; tabLanding = OAY/sqrt(3); diamondNotchY = OAY/12; diamondNotchX = OAX/3.5; diamondNotchZ = tabZ/4.6; y1=0; x1=0; z1...
glb/cad_d87d3ed1d234.glb
Create a printable Van de Graaff generator base. Start with a conical base ring that has a bottom radius of 40mm, a top radius of 26.5mm, and a height of 10mm. On top of this ring, place a hollow cylinder with an outer radius of 30mm and an inner radius of 21.5mm, extending to a height of 100mm. At the top of this cyli...
module whole() { base(); wheel(); } module base() { difference() { union() { ring(); tube(); } cutout(); motorhole(); axlehole(); lip(); groundhole(); collecthole(); } } module cutout() { cylinder(h = 230, r = 21.5, center = true); } module tube() { cylinder(h = 100, r = 30, center ...
glb/cad_ff371451fdf1.glb
Create a Chastikey lock holder by starting with a main outer body shaped as a cylinder with a height of 47mm and a diameter of 18mm, but scaled along the Y-axis by a factor of 1.44 to create an elliptical cross-section. From this body, remove a central rectangular slot to accommodate a key, with the slot measuring 10mm...
keyLength = 40; keyWidth = 10; keyThk = 4.5; headLength = 16; dLock = 6; wallThk = 4; note = "FERRARI"; noteHt = 5; $fn=60; zBody = keyLength+dLock/2+wallThk; dBody = keyWidth+2*wallThk; OAThk = keyThk+2*wallThk; eccentricity = OAThk/dBody; difference() { scale([1,eccentricity,1]) cylinder(h=zBody, d=dBody); ...
glb/cad_4c401891f861.glb
Create a lamp holder for a bucket moth trap consisting of a base ring and a top clip. Start with a base ring that is 2.5mm thick, with an outer diameter of 47mm and an inner diameter of 31mm. Cut a rectangular notch out of this ring that is 25mm wide, 30mm deep, and 20mm high, centered on the ring's edge. Add two verti...
module holder() { union(){ body(); translate([0,0,30]) clip(); } } module clip(){ difference() { difference() { union(){ difference() { union(){ translate([0,12,20]) cube(size = [20,10,40], center = true ); translate([0,-12.2,20]) cube(size = [20,10,40], center = tr...
glb/cad_ba1aa688ce65.glb
Create a rectangular prism with dimensions of 5mm in width, 100mm in length, and 10mm in height. From this solid block, remove the volume occupied by a low-poly lizard sculpture. Position the lizard sculpture so that its center is offset to the coordinates X=35, Y=50, and Z=-50 relative to the block's origin, carving t...
include <lizard_lowpoly_1.scad> difference() { cube([5,100,10]); translate([35,50,-50]) lizard_lowpoly_1_poly(); }
glb/cad_0622585a5e6f.glb
Create a rectangular prism with dimensions 5mm in width, 100mm in length, and 10mm in height. From this volume, remove the geometry of a high-poly lizard model, specifically the tongue section, by positioning the lizard shape at coordinates (40, 50, -40) relative to the prism.
include <lizard_highpoly_0.scad> difference() { cube([5,100,10]); translate([40,50,-40]) lizard_highpoly_0_poly(); }
glb/cad_8a6e3d1162d1.glb
Create a Monitor Lamp mount. Start with a main body formed by the union of a rectangular block measuring 10mm wide, 14mm deep, and 14mm high, and a cylinder with a radius of 7mm and a length of 10mm, centered and oriented horizontally along the Y-axis. From this combined shape, remove a central rectangular void measuri...
$fn=72; M5R=3.2; M3R=1.6; d=14; w=10; j=1.5; hy=sqrt((j*2)+(j*2)); difference(){ union(){ difference(){ hull(){ translate([0,-2,0]) cube([w,d,14]); translate([0,-7-3,7]) rotate([0,90,0]) cylinder(h=w,r=7); } #cube([w,d,12]); translate([w/2,6,0]) rotate([0,0,0...
glb/cad_3e2ac661185f.glb
Create a Bullet-Toggle by constructing a symmetrical, spindle-shaped body with a total length of 27.5mm. The center of the object should be a cylinder with a diameter of 10.15mm. Taper this central section linearly toward both ends until the two flat circular faces at the tips each have a diameter of 6mm. Through the c...
diameter_middle = 10.15; diameter_side = 6; length = 27.5; diameter_holes = 5.25; $fn=128; module half_toggle() { difference() { hull() { linear_extrude(height=length/4) circle(d=diameter_middle); translate([0,0,(length/2)-0.1]) linear_extrude(height=0.1) circle(d=diameter_side); ...
glb/cad_948b32fb1e47.glb
Create a Nintendo 64 cartridge holder by starting with a solid rectangular block measuring 120.4mm in width, 164mm in depth, and 20mm in height. Round the corners on the top face of the block with a 0.5mm radius. Carve eight identical cartridge slots into the top of the block. Each slot is a void created by extruding ...
slots=8; distance=2; height=20; Carts(slots, distance, height); module N64cart(height) { linear_extrude(height=height) polygon( points=[ [0.0,0.0], [0.0,-9.69999694824218], [0.061523437499991646,-10.689674377441412], [0.22479248046875,-11.667732238769...
glb/cad_7a8cde26b228.glb
Create a connector for an NXT motor and Tetrix channel. Start with a base shape formed by the convex hull of two cylinders, each with a radius of 14mm and a height of 2mm, positioned 32mm apart along the x-axis. From this base, remove a central cylinder with a radius of 14mm and a height of 7.8mm to create a recessed c...
technicBeamWidth = 7.8; tetrixWidth = 2; tetrixScrewHoleRad = 2.25; holeSpacing = 8; technicHoleRad = 2.63; technicNubRad = 3.1; holeTol = 0.35; difference() { union() { hull() { cylinder(h=tetrixWidth, r=2*holeSpacing-2*tetrixWidth, $fn=40); translate([4*holeSpacing,0,0]) cylinder(h=tetrixWidth, r=2*holeSp...
glb/cad_8b9626af5f11.glb
Create a replacement nose piece for a Crosman 1322. The main body consists of two merged cylindrical sections. The top section is a cylinder with an outer diameter of 15.05mm (11.35mm diameter plus 1.8mm wall thickness on each side) and a length of 45mm. This top cylinder is hollowed out by three concentric bores: a ce...
use <threads.scad> TOP_CYL_D = 11.35; TOP_LIN_OD = 7.9; TOP_LIN_ID = 6.2; TOP_LIN_PRO = 5; BOT_CYL_ID = 15.5; BOT_CYL_T = 1.9; BOT_CYL_OD = 19.3; GAP = -1.1; WallT = 1.8; PW = 6.5; SHL_LEN = 45; ST_HT = 16; ST_LEN=22; ST_TH = 1.6; thread_gap=1.6; thread_len = 11; FMT = 8.5; FMPH = 9.9; PHD = 5.3; insert_len...
glb/cad_fdfded6e1fd2.glb
Create a Wade Extruder change mount with a total height of 7mm. The main body is a central cylinder with a diameter of 50mm. Within this body, create a central vertical hole with a diameter of 20mm. Add two smaller vertical holes with a diameter of 4.7mm, positioned 25mm from the center on opposite sides along the Y-...
mount_height = 7; insulator_diameter = 20; bolt_diameter = 4.7; bolt_head_diameter = 7.5; bolt_head_height = 4.5; corpus_diameter = 50; fixation_diameter =10; position_scew = 0; bearing_axis_diameter = 6; cone_diameter_bottom = 10; cone_diameter_top = cone_diameter_bottom+mount_height; flatten_anchorpiece = 1; fixatio...
glb/cad_e3108fa1c79e.glb
Create a Microscope Spacer by starting with a rectangular block 12.5mm wide, 17.5mm deep, and 38mm high. Remove a rectangular section from the top of the block to create a cutout that is 12.5mm wide, 6.5mm deep, and 15mm high, leaving a base wall 23mm thick. At the center of the width, create two aligned cylindrical ...
clearance = 30; resolution = 50; width = 12.5; depth = 17.5; cut_height = 15; cut_depth = 11; cut_width = width; microscope_lens = 4; height = cut_height + clearance + microscope_lens; screw_distance = 8.15; screw_diameter = 5.5; screw_inner_diameter = 3.65; screw_depth = 5; peg_diameter = 6.5; peg_height = 11.6;...
glb/cad_599109be5347.glb
Create a Balena Fin Customizable Ring, which is a rectangular frame with rounded corners. The main outer dimensions are 117.93mm in width and 98.41mm in length, with a total height of 18.65mm. The frame has a wall thickness of 2.15mm and corner radii of 7mm. Construct the main body as a hollowed-out ring. Add an inner...
width = 117.93; length = 98.41; height_min = 18.65; height_max = 299.99; corner_radius = 7; strength = 2.15; inset_skirt_height=1.4; skirt_distance = 1.2; skirt_height = 1.3; skirt_strength = 0.9; screw_mount_strength = 2.75/2; screw_mount_front_left_position = [((width/2)-27.6),((length/2)-11.5)]; screw_mount_front_ri...
glb/cad_8640348de98b.glb
Create a Peloton Clip-on Towel Hook consisting of two connected C-shaped curved arms. The structure is formed by a consistent material thickness of 6mm and a total width of 12mm. First, create a semi-circular clamp designed to grip a handlebar. This clamp section should have an inner diameter of 35mm and an outer dia...
clamp = 35; hook = 100; thick = 6; width = thick*2; boff = hyp(hook/2+thick/2); aoff = hyp(clamp/2+thick/2); shave = 0.95; module s() { translate([0,aoff+boff,0]) rotate([0,0,15]) rotate_extrude(angle = 180+30, convexity=10, $fn=64){ translate([(clamp/2)+(thick/2),0,0]) hull(){ ...
glb/cad_1357ba8cf027.glb
Create a capped pin consisting of a head and a stem. Start by creating a cylindrical cap with a diameter of 10mm and a height of 3mm. Attached to the bottom of this cap, center a pin with a diameter of 5mm and a total length of 15mm. The pin should be a cylinder, but the bottom end must be chamfered; specifically, th...
Cap_dia = 10; Cap_h = 3; Cap_shape = "CYLINDER"; Pin_dia = 5; Pin_h = 15; Pin_rot = 0; Pin_shape = "ROUND"; Pin_cross_w = 2; Pin_cross_w_calc = Pin_cross_w >= Pin_dia/2 ? Pin_dia/2 : Pin_cross_w; Pin_pipe_in_dia = 2; Pin_pipe_in_dia_calc = Pin_pipe_in_dia < Pin_dia ? Pin_pipe_in_dia : 0; Pin_split = "NO"; Pi...
glb/cad_84795a71f3e6.glb
Create a parametric synthesizer stand by constructing a 3D wedge-like bracket with a width of 39mm. The profile is based on a right-triangle shape with a 28-degree incline, modified by rounding all exterior corners with a 4mm radius. The main body features a large rectangular cutout to accommodate a device that is 17...
include <Round-Anything/MinkowskiRound.scad>; $fn = 250; gear_size = 177; gear_depth = 12; stand_width = 39; shear = 20; angle = 28; radius = 4; has_bottom_feet = true; foot_diameter = 12.7 + 0.8; foot_depth = 0.5; foot_double = true; foot_edge_distance = 1.5; has_rubber = true; rubber_w = 25 + 0.8; rubber_h = 15 ...
glb/cad_d24c474b9aee.glb
Create a lens opener tool consisting of three stacked, concentric sections, each with a central hole 30mm in diameter. The base section is a frustum 6mm high, tapering from a 35mm diameter at the bottom to 41.5mm at the top. Directly on top of this, add a second frustum 6mm high that tapers from 41.5mm at its base to 4...
$fn=36; union(){ difference () { cylinder (d1=35,d2=41.5, h=6); cylinder (d1=30,d2=30, h=10); } translate ([0,0,6]) difference () { cylinder (d1=41.5,d2=45, h=6); cylinder (d1=30,d2=30, h=10); } translate ([0,0,12]) difference () { $fn=8; cylinder (d1=48,d2=47, h=6); cylinder (d1=...
glb/cad_cf55e709fd8f.glb
Create a lens opener tool consisting of four stacked concentric sections with a continuous central hole of 30mm diameter running through the entire vertical axis. Start with a base section 6mm high that tapers from a 35mm diameter at the bottom to a 41.5mm diameter at the top. Place a second section on top, 6mm high, t...
$fn=90; union(){ difference () { cylinder (d1=35,d2=41.5, h=6); cylinder (d1=30,d2=30, h=10); } translate ([0,0,6]) difference () { cylinder (d1=41.5,d2=45, h=6); cylinder (d1=30,d2=30, h=10); } translate ([0,0,12]) difference () { cylinder (d1=45,d2=45, h=15); cylinder (d1=30,d2=...
glb/cad_41bff5560bf9.glb
Create a hub holder for a wireless headset hub. Start with a main body that is a rectangular block measuring 115mm wide, 110mm deep, and 40mm high, centered on the origin. Modify this main volume by creating a hull between a centered cube of 108mm by 120mm by 36.5mm and a very thin plate measuring 110.5mm by 120mm by 0...
$fn=360; difference() { translate([0, 0, 0]) { cube(size=[115, 110, 40], center=true); } hull() { cube(size=[108, 120, 36.5], center=true); translate([0, 0, -19]) { cube(size=[110.50, 120, 0.1], center=true); } } translate([0, -1, 20]) { cube(size=[108, 110, 10], center=true); } transla...
glb/cad_7734c8ae7b1b.glb
Create a battery dispenser designed for AAA batteries (45mm length, 11mm diameter). The model consists of a hollow bin with a total height of 108mm, a depth of 63mm, and a wall thickness of 2mm. Construct the main body as a rectangular container with a flat back and two side walls. The bottom of the bin should feature...
part = "base"; battery = "AAA"; customLabel = ""; customBatteryLength = 0; customBatteryDiameter = 0; batteries = [ ["AA", 52, 15], ["AAA", 45, 11], ["AAAA", 43, 9], ["C", 50, 26], ["D", 61, 34], ["9v", 48, 17], ["18650", 69, 19] ]; $fn=50; useCustom = (customBatteryLength != 0 && cust...
glb/cad_689d5ea348fc.glb
Create an M12 Camera Case consisting of a two-piece clamshell housing and a U-shaped pan-tilt bracket. First, construct the housing. Create a back body as a rectangular block 40mm wide, 40mm long, and 4mm deep, with a front lip height of 2.6mm. Remove a central rectangular cutout 36.4mm wide and 36.4mm long to accommo...
slop = 0.2; fn = 50; eps = 0.03; CBW = 36.1; CBL = 36.1; CBH = 1.63; CBBH = 2.9-CBH; CBBS = 2.0; CBBCS = 7; CBFCH = 4.45-CBH; CBFCW = 22.1; CBFCL = 5.65; CBFCE = 0.97; MHOD = 3.0; MHCC = 29.0; CMW = 17.3; CML = 17.75; CMH = 9.1-CBH; CMMW = 23.6; CMML = 4.8; CMLH = 12.2 - CBH; CMLOD = 16.6; CMCW = 7.6; CMCH = 3.4-CB...
glb/cad_0e623cf4cdc0.glb
Create an NXT Motor Base Bottom to Tetrix Channel connector. The main body is a flat plate with a thickness of 3mm. Start with a central circular hub with a radius of 13mm. From this hub, extend a rectangular section that is 7.8mm wide and 16mm long. The overall shape is a combination of this hub and the rectangular ...
technicBeamWidth = 7.8; tetrixWidth = 3; tetrixScrewHoleRad = 2.25; holeSpacing = 8; technicHoleRad = 2.63; technicNubRad = 3.1; holeTol = 0.35; beamWid = 7.8; module beamBase(holes) { hull() { translate([(holes-1)*8, 0, 0]) cylinder(r=7.8/2, h=7.8, $fn=20); translate([0, 0, 0]) cylinder(r=7.8/2, h=7.8,...
glb/cad_c30dde8ef82b.glb
Create an NXT Motor Base Bottom to Tetrix Channel connector. Start with a base plate that is 7.8mm thick. The main body is a hull formed between a cylinder with a radius of 13mm and a rounded rectangular beam section. This beam section is centered and extends along the Y-axis, spanning a length of 16mm (two 8mm interva...
technicBeamWidth = 7.8; tetrixWidth = 3; tetrixScrewHoleRad = 2.25; holeSpacing = 8; technicHoleRad = 2.63; technicNubRad = 3.1; holeTol = 0.35; beamWid = 7.8; module beamBase(holes) { hull() { translate([(holes-1)*8, 0, 0]) cylinder(r=7.8/2, h=7.8, $fn=20); translate([0, 0, 0]) cylinder(r=7.8/2, h=7.8,...
glb/cad_e10b29ff6372.glb
Create a round parametric button with a diameter of 12mm and a thickness of 5mm. The main body is a cylinder that tapers from a base diameter of approximately 11.2mm (calculated via a 35-degree base chamfer angle) up to the full 12mm diameter. On the top face, create a recessed circular area with a depth of 1mm. The w...
eyelets=4; rim_type="round"; button_radius=6; button_diameter=button_radius*2; button_thickness=5; eyelet_radius=1; eyelet_diameter=eyelet_radius*2; eyelet_placement=5; ep=eyelet_placement; et=sqrt((ep*ep)/2); rim_thickness=1; recess_depth=1; recess_chamfer_angle=60; base_chamfer_angle=35; edge_clearance=1; e...
glb/cad_195aec302728.glb
Create a Raspberry Pi 3B sleeve case consisting of a main body and a separate front cover. The main body is a hollow rectangular shell with a wall thickness of 1.7mm and rounded corners with a 4mm radius. The outer dimensions are 58.6mm wide, 85.2mm deep, and 17.75mm high. On the top and bottom faces, create honeycomb...
model = "Case"; whichTest = "MicroSDSide"; testPercent = 0.05; piType=3; ethernetX=5; ethernetZ=.1; usb1X=25; usb2X=42.7; usbZ=.5; frontThick = 1.7; caseThick = 1.7; caseCornerRadius = 4; ethernetWidth=16.5; ethernetDepth=20.7; usbWidth=14; usbDepth=16.3; pcbCardThick=1.9; pcbCardWidth=56; pcbCardDepth=85.2; p...
glb/cad_cefcf3961e02.glb
Create a printable trumpet test model consisting of a spiraling, expanding tube. The shape is generated by placing a series of spheres along a helical path that expands outward and upward. The path starts from a central point and completes 2.2 full turns. As the path spirals, the center of each sphere is positioned u...
SizeX=200; SizeY=140; PlatformSizeX=SizeX/2; PlatformSizeY=SizeY/2; NumberOfTurns=2.2; HelixFactor=.15; SectionOffset=105; Factor_B=310; Factor_x0=SectionOffset; Coefficient_a=0.5; PipeThickness=0; NumberOfElements=100; ConnectionSleeve="No"; union(){ difference() { bell(PipeThickness); } if (ConnectionS...
glb/cad_e2e868c0a8c8.glb
Create a flexible name bracelet with a total thickness of 12mm. The bracelet is based on two concentric cylinders: an inner cylinder with a radius of 28mm and an outer cylinder with a radius of 33mm. Construct the main body by creating 25 repeating radial sections. In each section, carve out rectangular slots to crea...
inner_radius = 28; outer_radius = 33; length = 12; nozzle = 0.4; sections = 25; text = "Ingegno.be"; holes = "no"; text_thickness = 4; full="True"; use <MCAD/fonts.scad> module test(){ echo("test"); } baseheight = 0.8; r1 = inner_radius; r2 = outer_radius; n = sections; gapin=2*nozzle; gapout = 3*nozzle; a...
glb/cad_016677b08949.glb
Create a stylized pine tree model 125mm in height. Start with a central trunk as a tapered cylinder, starting with a base diameter of 10mm and narrowing to a top diameter of approximately 0.83mm. Along the height of the trunk, starting from 12.5mm above the base and moving upward in 5mm increments, add concentric rin...
nof_trees=1; tree_length=125; nof_roots=5; branch_diam=0.5; branch_step=5; support_ring=1; module pine_tree(tree_height) { trunc_diam=0.08*tree_height; root_diam=0.04*tree_height; trunc_diameter_top=tree_height/150; translate([0,0,tree_height/2]) cylinder(tree_height,trunc_diam/2,trunc_diameter_t...
glb/cad_d1c0f384b8d7.glb
Create a drive adapter designed to fit a 5.25-inch CD rack that can hold either a 2.5-inch or 3.5-inch HDD. Start by creating a main rectangular body with a width of 101.6mm, a height of 12.5mm, and a length of 140mm. Hollow out the center of this body to create a shell with a wall thickness of 3mm. Inside the hollowe...
use <agentscad/extensions.scad> use <agentscad/printing.scad> use <agentscad/electronic.scad> 525_A = getDrive525Data(); 35_A = getDrive35Data(); 25_A = getDrive25Data(); ADAPTER_W = 525_A[5]; ADAPTER_L = 525_A[11]+2*20; ADAPTER_H = 525_A[1]-10; ADAPTER_Y = 20; WALL_T = 3; FLANGE_H = 1; FLANGE_...
glb/cad_6cb8fc0aef51.glb
Create a stylized Christmas tree by starting with a central cone that has a height of 160mm and a base radius of 80mm. To create the branch effect, carve out five vertical channels from the cone. Each channel is formed by extruding a circle with a radius of approximately 66.67mm (5/6 of the base radius) from the top of...
height = 160; baseRadius = 80; numberOfLayers = 5; numberOfPoints = 5; isRounded = 0; fragmentNumber = 30; module buildCone(height, baseRadius, rounded) { if(rounded) { factor = 24; difference() { minkowski() { cylinder(height-(3*baseRadius/factor), baseRadius-(base...
glb/cad_899eafb8c3e7.glb
Create a Sparkfun Small Solenoid Mounting Bracket. Start with a rectangular base plate measuring 15.5mm in width, 20.5mm in length, and 1mm in height. Add two rectangular end-caps to the base, one at each end of the length, each measuring 15.5mm by 1mm by 2.2mm. On top of the base, place two symmetrical clipping mecha...
clearance = 1.2; width = 11.5; clip_width = 4; length = 20.5; overhang = 1; beef = 2; translate([0,1,0]) cube([width+2 + 2*beef,length,1]); translate([0,0,0]) cube([width+2 + 2*beef,1,clearance+1]); translate([0,length+1,0]) cube([width+2 + 2*beef,1,clearance+1]); for(i=[-1,1]) for(j=[0,1]) { translate([beef + j*(...
glb/cad_93af72fa4c3b.glb
Create an iPad Mini and Air stand by constructing a circular base with a central void. Start with a revolved profile to create a thick-walled, ring-like body with an outer diameter of approximately 98mm and a height of roughly 25mm. The profile should taper slightly, creating a bowl-like exterior. Inside this main bod...
difference() { color([1,0,0]) rotate_extrude( convexity = 30, $fn=200) { polygon(points=[[43.05,-66.31],[43.66,-66.28],[44.25,-66.19],[44.82,-66.05],[45.37,-65.85],[45.89,-65.6],[46.38,-65.3],[46.83,-64.96],[47.26,-64.57],[47.64,-64.15],[47.98,-63.69],[48.28,-63.2],[48.53,-62.68],[48.73,-62.13],[48.88,-61.57],[48.97,...
glb/cad_7fb434da5047.glb
Create an H0 scale iron ore rail car bogie. The main body is a rectangular plate with a length of 1.3m (scaled to H0) and a thickness of approximately 0.6mm. At the center of the bogie, create a vertical mounting hole with a radius of 0.1566m (scaled) to receive the wagon's mounting pin. Position two axle housings on...
m=1000/87; bogie_dist_between_axies=1.3*m; wheel_cone_margin = 0.4; coupling_type = 2; coupling_extension=(bogie_dist_between_axies>=2.4*m) ? 2.2*m : ((bogie_dist_between_axies>1.35*m) ? 1.6*m : 1.2*m); coupling_length=bogie_dist_between_axies/2+coupling_extension; wheel_pin=0; bogie_width_between_wheels_cone=1.9...
glb/cad_a6518ffca060.glb
Create a Parametric Curvy Flat Spring consisting of six identical, connected curved segments arranged in a serpentine wave. Each segment is a 240-degree arc of a ring with a height of 10mm and a material width of 10mm. The ring's dimensions are derived from a total model length of 150mm. For each segment, create a ri...
length = 150; number_of_wiggles = 6; angle = 240; width = 10; height = 10; resolution = 100; module ring(outer, inner, h) { difference() { cylinder(h=h, r=outer); cylinder(h=h, r=inner); } } module arc_of_cylinder(r, h, angle ) { half_angle = 90 - (angle / 2); difference() { cylinder(h=h, r=r);...
glb/cad_3a9bb4e9e071.glb
Create a parametric pencil holder in the shape of a hexagonal frustum. Construct the outer shell as a six-sided polygonal prism that tapers outwards, starting with a base diameter of 50mm and expanding to a top diameter of 90mm over a total height of 80mm. The shape should be centered vertically. To create the interior...
Numero_Lados=6; Diametro_Inferior=50; Diametro_Superior=90; Altura=80; Grosor=5; difference(){ cylinder ( r1=Diametro_Inferior/2, r2=Diametro_Superior/2,h=Altura,$fn=Numero_Lados,center=true); translate([0,0,Grosor]) cylinder ( r1=Diametro_Inferior/2 - Grosor, r2=Diametro_Superior/2- Grosor,h=Altura,$fn=Numero_Lados...
glb/cad_b683d2afa65d.glb
Create a H0 scale model railway passenger coach consisting of a chassis, walls, and roof. Construct the chassis using two main frame parts. Position a mounting pin with a radius of 2mm at the bogie mount location. Create a bogie assembly with a distance of 22.4mm between axles and an overall length of 23.2mm. The bogi...
m=1000/87; wheel_pin=0; bogie_cylindrical_plate_height=0*m; bogie_dist_between_axies=2.2*m; bogie_length=bogie_dist_between_axies+0.8*m; coupling_length=bogie_dist_between_axies/2+1.6*m; wagon_rail_car_bogie_mounting_pin_radius=0.1566*m + 0.2; coupling_type = 2; min_material_thickness=0.5; material_thickness=0....
glb/cad_e70ba9219865.glb
Create an Android Figure by assembling the following geometric components. Start with a main body cylinder 39mm high with a radius of 22.5mm. Place a neck cylinder on top of the body that is 4mm high with a radius of 20mm. Above the neck, place a head created from a sphere with a radius of 22.5mm, scaled to 80% of its ...
$fn=50; body_height = 39; body_r = 22.5; neck_height = 4; neck_r = 20; sholder_r = 2.5; leg_spacing = 7; eye_r = 4; eye_height_addition = 0; antenna_lengte = 7; antenna_angle = 25; antenna_thick_r = 2; print_mode = 0; sholder_width = 60/1; sholder_length = 15/1; sholder_height = 30.5/1; arm_afstand_body = ...
glb/cad_b7abbaae4cd4.glb
Create a chaotic menorah consisting of a base, a central shamash, and multiple randomly oriented candle branches. Start by constructing the base as a composite shape: a cylinder with a radius of 4mm and height of 1mm, topped with a square block of 3mm by 3mm and 1mm height, with a 2mm radius circular hole removed from ...
use <handyfunctions.scad>; use <torus.scad>; $fn = 32; height=10; function random() = rands(0,1,1)[0]; module candleholder() { rotate_extrude($fn=6) polygon(points=[[0,0],[1,0],[1,.2],[.5,.2],[.8,1],[.8,1.2], [.3,1.2], [.3,.6], [0,.6]]); } module base() { rotate_extrude() difference() { union() { dy(-1...
glb/cad_f697b22b445e.glb
Create a TV Device Hanger designed to hold a device measuring 111mm in length, 82mm in width, and 15mm in height. Start by constructing a U-shaped holder with a wall thickness of 2mm. The holder consists of a base and two side walls that wrap around the device, with the interior cavity matching the device's dimensions....
$fa=1; $fs=0.25; device_length_mm = 111; device_width_mm = 82; device_height_mm = 15; wall_thickness_mm = 2; hanger_width_mm = 30; screwhole_distance_from_device_mm = 10; screwhole_diameter_mm = 7; difference() { union() { hanger(); holder(); } device(); } module holder() { translate...
glb/cad_419ba11f76ba.glb
Create a Napkin Ring consisting of a main circular band and embossed text. Start by creating a hollow cylinder with an inner radius of 18mm, an outer radius of 20mm, and a height of 5mm. Around the top surface of this band, place the characters of the phrase "TEXT 1 AROUND THIS ⭐ 🔥" in a circular arrangement. Each c...
Text = "TEXT 1 AROUND THIS ⭐ 🔥"; Font = "Segoe UI Emoji"; FontStyle = "bold"; EmojiFont = "Segoe UI Emoji"; Degrees = 15.1; FontSize = 11; OuterRingText = false; Text2 = "TEXT2 HERE"; OuterRingDegrees = 15.1; OuterRingFontSize = 11; SpecialCharacters = "t"; SpecialCharactersThickness = 6; SpecialCharactersExtraFont...
glb/cad_5770ca7614db.glb
Create a geometric "Web" sculpture based on a central axis of 30mm. Start by placing two intersecting rectangular slabs, each 60mm long, 0.5mm wide, and 11.6mm high, centered on the origin to form a cross. Generate a series of thin rectangular threads, each 0.5mm wide and 0.4mm thick. These threads must be arranged i...
layer = 0.2; div = 2.5/2; axis = 30; wall = 0.5; thread = [0.5,2*layer]; module th(x,y){ h = sqrt(x*x + y*y); a = atan(y/x); translate([x*0.5,y*0.5,0.5*thread[1]]) rotate([0,0,180-a]) cube([h,thread[0],thread[1]],center=true); } union(){ h = ((axis/div)-1)*thread[1]; cube([2*axis,wall,h],center=true); cube([w...
glb/cad_4b2f0d5e63be.glb
Create a "web poligon" consisting of a hollow square frame with an intricate internal lattice. Start by constructing a square outer boundary with a side length of 60mm and a wall thickness of 0.5mm. The height of this frame is determined by the layering of the internal threads. Fill the interior of the square with a s...
side_size = 60; side_nr = 4; layer = 0.2; gap = 2.5; wall = 0.5; steps = 2; thread = [2.8*layer ,2*layer]; qty = (side_size/gap)-1; alpha = 180-(360/side_nr); x = side_size*sin(alpha/2); y = side_size*cos(alpha/2); o = (360/side_nr); dx = x/(qty); dy = y/(qty); r = (side_size/2)/sin(o/2); r2 = (side_size/2)/t...
glb/cad_6f3af918e072.glb
Create a parametric box and lid designed to hold a battery holder. For the box, create a rectangular container with inner dimensions of 58mm x 30mm and a height of 20mm. The walls should be 2mm thick with all exterior corners and vertical edges rounded with a 2mm radius. Remove a small spherical void with a 5mm diamete...
box(inner_x = 58, inner_y = 30, inner_z = 15 + 5); translate([0,40,0]) lid(inner_x = 58, inner_y = 30, inner_z = 15 + 5); module lid( inner_x, inner_y, inner_z, wall = 2, $fn = 32 ) { clip = min(18, inner_y); intersection() { union() { linear_extrude(height=wall) offset(r=wall) square(...
glb/cad_4be9ea497194.glb
Create a corner clamp consisting of three main components: a base, a pusher, and a stopper. The base is a flat plate 150mm wide and 40mm high. It features two outer jaws, each 10mm thick, and a central inner area designed to hold lumber 40mm thick. A cylindrical groove with a diameter of 8mm runs through the jaws. The...
part = "base"; width=150; height=40; thickness=10; lumber_thickness=40; show_holes="yes"; $fn=64; groove_diameter=round(thickness*0.8); bridge=0.3*width; distance_to_slot=(width-lumber_thickness)*sqrt(2)/2+thickness*sqrt(2)+5; motion_distance=round(lumber_thickness*sqrt(2)); step=floor(5*sqrt(2)); number_of...
glb/cad_18b8a12f9e49.glb