Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a button for a portable game console. Start by constructing a wide, thin base cylinder with a radius of 4.5mm and a height of 1mm, using a 50-facet resolution. Centered on top of this base, place a narrower cylinder with a radius of 3.5mm and a height of 6mm, also using a 50-facet resolution. Finally, emboss the...
buttonHollowRadius = 3.5; buttonHollowHeight = 6; buttonDelta = 1; extrudeDelta = 0.1; letterCenterX = buttonHollowRadius/2; letterCenterY = buttonHollowRadius/2; linear_extrude(buttonHollowHeight + extrudeDelta) { translate([-letterCenterX, -letterCenterY, buttonHollowHeight]){ ...
glb/cad_476eaf6311a6.glb
Create a portable game console case. Start by constructing a rectangular outer frame with an overall length of 128mm, width of 120mm, and height of 10mm. Hollow out the center of this frame by removing a smaller rectangular volume that is 5mm shorter in length and width than the outer dimensions. On the top surface, c...
x = -49.25; y = -23.7; z = 10; baseLength = 99; baseWidth = baseLength / 1.72; baseHeight = 2; baseDeltaLength = 30; baseDeltaWidth = 60; baseX = 0; baseY = 0; baseZ = 0; edgeLength = 128; edgeWidth = 120; edgeHeight = 10; edgeX = 0; edgeY = 0; screwRadiusOut = 5; screwRadiusInn = 2; screwDelta = 5; innHeight = 20;...
glb/cad_4d3d22bda57b.glb
Create a Mooltipass classic stand by starting with a main block 70mm wide, 70mm deep, and 45mm high. Carve out the interior to create two angled support walls. The front wall should be 3mm thick, tilted back at a 60-degree angle, and feature a rounded rectangular cutout measuring 12mm by 20mm with 2mm corner radii. The...
$fn=60; difference(){ cube([70,70,45]); translate([0,-0.5,0]) rotate([0,-60,0]) cube([35,71,20]); translate([-6,-0.5, 36.2]) rotate([0,30,0]) cube([95, 71, 48]); translate([0,35,10]) rotate([0,90,0]) cylinder(75,7,7); } difference(){ translate([13,0,21.77]) rotate([0,-60,0]) cube([3,70,25]); ...
glb/cad_f4ac69c2b82c.glb
Create a Helical Gear Fidget Toy consisting of two meshing helical gears and a housing. First, create a helical gear with a module of 2mm, 17 teeth, a pressure angle of 25 degrees, and a helix angle of 45 degrees. The gear should have a width of 9.6mm and an outside diameter of 38mm. The teeth must follow an involute...
MetricModule=2; NumberOfTeeth=17; PressureAngle=25; HelixAngle=45; AngularResolution=1; Width=9.6; LayerThickness=.25; BackLash=0.05; m=MetricModule; mstr=str("\nMODULE:\t\t",m); n=NumberOfTeeth; nstr=str("\t\tNUMBER OF TEETH:\t",n); pa=PressureAngle; pastr=str("\nPRESSURE ANGLE:\t",pa); h...
glb/cad_f5a1de8dc7c7.glb
Create a round cookie cutter with a primary inner diameter of 70mm and a total height of 15mm. The object is a hollow ring with a wall thickness of 2mm. Start by creating a base rim that is 5mm tall with an outer diameter of 74mm. Above this rim, extend the walls upward to a total height of 15mm. The main body of the c...
diameter = 70; height = 15; wall = 2; rim = 5; $fn=diameter*3*2; all(); module all() { cookie(diameter, height, wall, rim); } module cookie(m_diameter, m_height, m_wall, m_rim) { difference() { union() { cylinder(d=m_diameter+2*m_rim-0.1, h=m_wall); cylinder(d=m_...
glb/cad_98f52b6c350b.glb
Create a LED strip push pin wall mount consisting of a base rail and two integrated push-pin anchors. Start by creating a rectangular rail with a total length of 3mm, a thickness of 0.0625mm, and a height of 0.4mm. The rail should feature a central longitudinal cutout that is 0.0625mm wide and 0.2mm high, leaving a t...
thickness = .0625; strip_height = .4; length = 3; pin_width = .0625; pin_outer_width = .375; num_of_pins = 2; fillets = true; strip_angle = -60; units_entered = 25.4; desired_units_for_output = 1; unit_conversion_factor = units_entered*desired_units_for_output; module rail(){ difference(){ cube([thickness...
glb/cad_e3026df1a2c3.glb
Create a flower-shaped cookie cutter with a total height of 15mm. The main body is a ring with an outer diameter of approximately 63.66mm, formed by 40 repeating petal elements arranged in a circle. Each petal is based on a cylinder with a diameter of 5mm. The wall of the cutter is 2mm thick. The vertical profile of e...
d_leaf = 5; n_leaf = 40; height = 15; wall = 2; rim = 5; $fn=20; all(); module all() { flower(d_leaf, n_leaf, height, wall, rim); } module flower(m_d_leaf, m_n_leaf, m_height, m_wall, m_rim) { d_flower = m_d_leaf * m_n_leaf / 3.14; a_1 = 360 / m_n_leaf; difference() { for(a=[0:a_1:360])...
glb/cad_d441259072a3.glb
Create a Dalek-inspired geometric model by starting with a central rectangular block measuring 43mm by 31mm by 14mm, centered on the origin. Carve out a rectangular void from the top center measuring 21mm wide, 12mm deep, and 20mm high. From the bottom of the main block, remove a wedge-shaped section measuring 45mm wid...
module rounding() { translate([2.05,2,0.6]) rotate(a=[90,0,0]) difference() { cube([0.2,0.2,3.3]); cylinder(h=3.3,r=0.1,$fn=20); } translate([2.05,-0.65,0.6]) rotate(a=[138,0,0]) translate([0,0,-0.2]) difference() { cube([0.2,0.2,3.3]); cylinder(h=3.3,r=0.1,$fn=20); } translate([2.05,-1.45,0.6]) rotate...
glb/cad_f086f0428ea6.glb
Create a Dalek Gun Box by starting with a base plate formed from the union of a 130mm square slab and a cylinder with a 4mm radius, both 1.5mm thick and centered. On top of this base, add a central cylinder with a 62mm radius and 3mm height. Around this center, place four identical groups of features rotated every 90 d...
$fn=50; difference(){ union(){ #minkowski() { cube([130,130,1.5], center=true); cylinder(r=4,h=1.5, center=true); } translate([0, 0, 3]){ cylinder(r=62,h=3, center=true); for ( i = [0 : 3] ){ rotate( i * 360 / 4, [0, 0, 1]){ translate([0, 57, 0]){ cube([10,23,3], center=true); ...
glb/cad_6215c72b6139.glb
Create a Dalek neck slat by starting with a main rectangular block measuring 62mm wide, 16mm deep, and 235mm tall. Extend the depth of this block to 29mm between the heights of 46mm and 166mm. From this combined volume, remove several cylindrical holes and a central slot. Drill two small holes with a 2.5mm radius horiz...
difference(){ union(){ cube([62,16,235]); hull(){ translate([0,16,46]) cube([62,0.0001,145]); translate([0,29,58]) cube([62,0.0001,120]); } } union(){ translate([31,29,20]) rotate([90,0,0]) cylinder(r=2.5,h=29); translate([31,29,215]) rotate([90,0,0]) cylinder(r=2.5,h=29); translat...
glb/cad_bb75a85395cb.glb
Create a Glass Divider consisting of seven radial walls extending from a center point. The overall diameter of the assembly is 49.4mm, which accounts for a 50mm glass diameter minus a 0.3mm clearance on all sides. Each of the seven walls is 2mm thick and 50mm tall. To construct the walls, create a single rectangular b...
Diameter = 50; Clearance = 0.3; Segments = 7; WallThickness = 2; Height = 50; ChamferOn = false; ChamferSize = 10; module OneLeg() { aDiameter = Diameter - (2 * Clearance); intersection() { circle(d=aDiameter); polygon(points = [[0, WallThickness/2], [0, -WallThickness/2], ...
glb/cad_fbea60af20c1.glb
Create a wheel generator model with an outer diameter of 80mm and a total tread width of 10mm. Start by constructing the outer rim as a hollow cylinder with an outer diameter of 80mm, an inner diameter of 75mm, and a height of 10mm. At the center, create a hub by adding a cylinder with a diameter of 14mm and a height...
outerDiameter = 80; treadWidth = 10; treadThickness = 5; shaftDiameter = 4; hubThickness = 10; hubWidth = 8; keyWidth = 3.5; spokeCount = 10; spokeWidth = 5; spokeThickness = 6; $fn = 100; makeWheel(outerDiameter,treadWidth,treadThickness,shaftDiameter,hubThickness,hubWidth,keyWidth,spokeCount,spokeWidth,spo...
glb/cad_4cb1c75c5ef8.glb
Create a wheel generator model. Start by creating a hollow outer cylinder with an outer diameter of 70mm, an inner diameter of 65mm, and a width of 15mm. At the center, add a hub consisting of a hollow cylinder with an outer diameter of 10mm, an inner diameter of 4mm, and a width of 8mm. Construct 10 spokes radiating...
outerDiameter = 70; treadWidth = 15; treadThickness = 5; shaftDiameter = 4; hubThickness = 3; hubWidth = 8; useKey=true; keyWidth = 0.5; spokeCount = 10; spokeWidth = 5; spokeThickness = 6; $fn = 100; union(){ hollowCylinder(outerDiameter,outerDiameter-treadThickness,treadWidth); union(){ h...
glb/cad_22d09adb8c46.glb
Create a Laser Engraver Jig for four dice by starting with a rectangular base plate measuring 88mm in width, 76mm in depth, and 1.5mm in thickness. Centered on this base, construct a square walled enclosure with an outer dimension of 36.2mm per side and a total height of 8mm. The walls of this enclosure must be 2mm thi...
width = 88; depth = 76; dice_area = 32.2; base_thickness = 1.5; wall_thickness = 2; wall_height = 8; union() { cube([width, depth, base_thickness]); translate([(width-dice_area-wall_thickness*2)/2, (depth-dice_area-wall_thickness*2)/2, base_thickness]) difference() { cube([dice_area + wall_thickness*2, ...
glb/cad_ddd28d54b8d8.glb
Create a Kossel frame tool holder by first constructing a C-shaped clip base. Start with two rectangular plates, each 8mm long, 4mm deep, and 3.5mm high, positioned parallel to each other with a 5mm gap between them. Connect these two plates with a central cylinder that has a radius of 2mm and a height of 4mm, creating...
base_height=3.5; base_depth=4; base_length=8; pole_len=5; $fn=100; module base() { rotate([90,0,0]) { cube([base_length, base_depth, base_height]); translate([base_length/2,base_depth/2,base_height]) cylinder(r=base_depth/2, h=pole_len); translate([0,0,base_height+pole_len]) ...
glb/cad_7459755b9408.glb
Create a PVC tube connector consisting of a square base with a central cylindrical hub. Start with a square plate measuring 54mm by 54mm with a thickness of 7mm. Centered on this plate, add a cylindrical hub with an outer diameter of 50mm and a height of 10mm. Inside this hub, create a hollow central bore with a diam...
m3d=3+0.3; m4d=4+0.3; m8d=7.8+0.4; m8nd=14.9+0.3; m8nh=5.4; x=54; y=54; zd=7; zu=10; d=36.6; d1=40+0.2; d2=50; w=4; $fn=64; module kru() { difference() { translate([0,0,zd]) cylinder(zu, d/2, d/2); translate([0,0,zd]) cylinder(zu+1, (d-w)/2, (d-w)/2); } } module kru1() { difference() { translate([0,...
glb/cad_16b63d40e5e3.glb
Create a sponge tray by starting with a solid rectangular block measuring 95mm in width, 70mm in depth, and 20mm in height. Hollow out the center of this block by removing a smaller rectangular volume of 92mm by 67mm and 20mm in height, positioned 1.5mm from the side walls and 10mm from the base, leaving a floor thickn...
$fn=220; difference(){ cube([95.0,70.0,20.0]); translate([25,70,4])cylinder(h=20,r=8,center=1); translate([70,70,4])cylinder(h=20,r=8,center=1); translate([25,0,4])cylinder(h=20,r=8,center=1); translate([70,0,4])cylinder(h=20,r=8,center=1); translate([1.5,1.5,10.0])cube([92.0,67.0,20.0]); transla...
glb/cad_30ddab53700b.glb
Create an Easy Change Spool Holder for an Anet A8 printer. The model consists of a rail-mounting system and a filament guide. First, construct the rail holder. Create a square profile with a side length of 15mm. Add a wall thickness of 6mm around the rail. Incorporate a mounting bracket that extends 52mm for the top m...
part = "demo"; rail_size = 15; rail_horizontal_position = 35; rail_vertical_position = 35; rail_clearance = 0.1; bracket_top_mount_screw_offset = 52; bracket_front_mount_screw_offset = 23; arm_roller_axis_distance = 110; arm_horizontail_position = 30; arm_vertical_position = 27.5; guide_center_horizontal_offse...
glb/cad_c62e02551de2.glb
Create a C920 Microscope Adapter consisting of two concentric cylindrical sections with a total height of 23mm. The base is a cylinder 13mm high with an outer diameter of 14.9mm and a centered hollow bore of 12.5mm. This base transitions into a larger upper cylinder 10mm high with an outer diameter of 25.4mm and a cent...
wallThickness=1.2; heightM12=13; radiusM12=12.5/2; radiusM2=2.2/2; screwHeight=13; screwSpacing=16.5/2; MicroscopeRadius=(25/2)+0.2; MicroscopeHeight=10; $fn=240; difference() { union() { translate([0,0,heightM12-(wallThickness/2)])cylinder(r1=radiusM12+wallThickness,r2=MicroscopeRadius+wallThickness, h=M...
glb/cad_14c68ec61dee.glb
Create a Filament Roller base. Start with a rectangular main body measuring 160mm in length, 120mm in width, and 2mm in height. At the four corners and the center of the two 120mm sides, add rounded feet. Each foot consists of a cylinder with a 5mm radius and 5mm height, topped with a sphere of the same 5mm radius. ...
$fn=50; baseX=160; baseY=120; baseZ=2; grooveOffset=10; grooveX=65; grooveY=3.6; grooveZ=baseZ; footR=5; footOffset=footR; ribT=4; ribH=4; module foot() { cylinder(r=footR,h=footR); translate([0,0,footR]) sphere(r=footR); } difference() { union() { cube([baseX,baseY,baseZ]); tra...
glb/cad_7b5bdcdb9e55.glb
Create a Filament Roller sensor frame consisting of two identical rectangular plates, each measuring 36mm by 36mm with a thickness of 4mm. For the first plate, create a solid rectangular block. At each of the four corners, centered 5mm from the edges, drill a vertical hole with a radius of 1.8mm that passes completel...
$fn=50; frameX=36; frameY=36; frameZ=4; screwOffset=5; screwR=1.8; screwH=10; nutX=3.4; nutY=2.0; nutZ=6; module nut() { rotate(a=-90,v=[1,0,0]) union() { cube([nutX,nutY,nutZ],center=true); rotate(a=120,v=[0,1,0]) cube([nutX,nutY,nutZ],center=true); rotate(a=240,v=[0,1,0]) cube...
glb/cad_5011e5ebe7b6.glb
Create a Filament Roller base plate. Start with a rectangular main body measuring 160mm in width, 220mm in length, and 2mm in height. At the four corners and the midpoints of the four edges, add rounded feet. Each foot consists of a cylinder with a 5mm radius and 5mm height, topped with a hemisphere of the same 5mm r...
$fn=50; baseX=160; baseY=220; baseZ=2; grooveOffset=10; grooveX=65; grooveY=3.6; grooveZ=baseZ; footR=5; footOffset=footR; ribT=4; ribH=4; module foot() { cylinder(r=footR,h=footR); translate([0,0,footR]) sphere(r=footR); } difference() { union() { cube([baseX,baseY,baseZ]); tra...
glb/cad_8fd997a6e42f.glb
Create an extended clip for a Buzzbee Jaguar blaster consisting of a row of 15 cylindrical chambers. The total height of the model is 50.3mm. Construct 15 primary chambers spaced 16.99mm apart. Each chamber is a composite cylinder: a base cylinder with a diameter of 15.2mm and a height of 20.5mm, topped by a second cy...
n = 15; lockable = false; pusher_width_correction = 0.21; guide_upper_thickness_correction = 0.5; guide_lower_thickness_correction = 0.2; cylinder_diameter_correction = 0.35; chamber_wall_correction = 0.13; pusher_lower_height_correction = 0.4; module dummy() {} center_guide_height = 0; chamber_wall_thickness = 1.05...
glb/cad_38a45ed96893.glb
Create a replacement rocket by constructing a hollow, rounded cylinder. Start with a solid cylinder 100mm tall with a radius of 9.5mm, and cap the top with a hemisphere of the same 9.5mm radius. To create the hollow interior, remove a central cylinder 90mm tall with a radius of 8.75mm, starting from the base. Finish th...
RES=200; difference() { basic_shape(); cylinder(h=90, r=8.75, $fn=RES); translate([0,0,90]) {sphere(r=8.75,$fn=RES);} } module basic_shape() { cylinder(h=100, r=9.5, $fn=RES); translate([0,0,100]) {sphere(r=9.5,$fn=RES);} }
glb/cad_109053124f47.glb
Create a 3D model of a printer component consisting of a main base and several subtracted cylindrical holes. Start by creating a rectangular base block measuring 36mm in width, 32mm in depth, and 4mm in height. Attached to the front of this base, add a rectangular extension that is 36mm wide, 4mm deep, and 23mm high, p...
$fa=0.5; $fs=0.5; difference() { union() { cube([36,32,4]); translate([0,-2,0]) cube([36,4,4+4+15]); } translate([8,3.5,4]) color("green") cylinder(r=1.6,h=10,center=true); translate([8+20,3.5,4]) color("green") cylinder(r=1.6,h=10,center=true); translate([8,3.5,4+3]) color("green") cylinder(r=3,h=6,center=true)...
glb/cad_2220603a2e3c.glb
Create a belt holder by starting with a rectangular base block measuring 60mm in length, 15mm in width, and 18mm in height. From this base, remove a rectangular section starting 4mm from the bottom, with dimensions of 60.2mm in length, 7.6mm in width, and 0.63mm in height. Along the top edge of this removed section, c...
$fa=0.5; $fs=0.5; difference() { union() { difference() { cube([60,15,18]); translate([-0.1,-0.1,4]) cube([60.2,7.6,.63]); for (a =[0:50]) { color("red") translate([-0.6+(a*2),7.6,4+0.01]) rotate([90,180,0]) linear_extrude(height=7.61) polygon(points=[[0,0],[0.4-.1,0.75+.2],[0.8+.1,0.75+.2],[1.2,...
glb/cad_ffe5f4d9ad5d.glb
Create a 3D model of a Brenda RepRap printer component. Start with a main rectangular block measuring 45mm in width, 35mm in depth, and 20mm in height. Attach a second rectangular block to the side, measuring 55mm in width, 15.8mm in depth, and 20mm in height, positioned so it extends from the first block. Add a thin r...
$fa=0.5; $fs=0.5; mirror([1,0,0]) union() { difference() { union() { cube([45,35,20]); translate([-10,0,0]) cube([55,13.3+2.5,20]); translate([-10,-.49,6.9]) cube([55,.5,6.2]); } color("red") translate([10,13.3+12.7,0]) cylinder(r=10.2,h=60,center=true); color("white") translate([-0.01,13.3+2.5,-0.1]) cube([10,25,...
glb/cad_e6f07bf227f8.glb
Create a rectangular base block measuring 80mm in length, 18mm in width, and 8mm in height. From this base, remove two vertical cylindrical holes, each with a radius of 2.1mm and a height of 20mm, centered at coordinates (20, 14) and (70, 14) and centered vertically. At these same two positions, remove hexagonal holes ...
$fa=0.5; $fs=0.5; difference() { cube([80,18,8]); translate([20,14,-0.1]) cylinder(r=2.1,h=20,center=true); translate([20,14,5.01+1.5]) cylinder(r = 7 / 2 / cos(180 / 6) + 0.05, $fn=6,h=3,center=true); translate([70,14,-0.1]) cylinder(r=2.1,h=20,center=true); translate([70,14,5.01+1.5]) cylinder(r = 7 / 2 / cos(180 ...
glb/cad_76281b649ed2.glb
Create a small mechanical block for a 3D printer component. Start with a base cube measuring 20mm x 20mm x 4mm. Centered on top of this base, add a horizontal cylinder with a radius of 10mm and a length of 20mm, lying along the Y-axis. From this combined mass, remove three cylindrical holes. First, create a vertical ...
$fa=0.5; $fs=0.5; difference() { union() { cube([20,20,4]); translate([10,10,4]) difference() { rotate([90,0,90]) cylinder(r=10,h=20,center=true); translate([-25,-25,-50]) cube([50,50,50]); } } translate([10,10,-1]) cylinder(r=2.6,h=100); translate([10,10,2]) cylinder(r=5,h=100); translate([10,10,4+3]) rotate(...
glb/cad_33226195b226.glb
Create a Y-belt wheel bracket by starting with a cube measuring 17.6mm in width, 17.6mm in depth, and 17mm in height. Centered on the top face, add a cylinder with a radius of 8.8mm and a height of 17.6mm, oriented horizontally along the X-axis. From this combined volume, remove several geometric sections to create th...
$fa=0.5; $fs=0.5; difference() { union() { cube([17.6,17.6,17]); translate([8.8,8.8,17]) rotate([90,0,0]) cylinder(r=8.8,h=17.6,center=true); } translate([-1,3.9,7]) cube([22,10,40]); translate([8.8,8.8,0]) cylinder(r=2.6,h=20,center=true); translate([8.8,8.8,6.5]) cylinder(r = 8 / 2 / cos(180 / 6) + 0.05, $fn=6...
glb/cad_fd2a7497ef2a.glb
Create a 3D model of a printer carriage component. Start by constructing a base block that is 25mm wide, 48mm long, and 5mm high. Add a rectangular section on top of this base, measuring 25mm wide, 15mm long, and 16mm high, positioned at the front. Beside this, add another rectangular section that is 25mm wide, 3.6mm t...
$fa=0.5; $fs=0.5; difference() { union() { cube([25,48,5]); cube([25,15,16]); translate([0,5.7,0]) cube([25,3.6,16.5]); translate([-3,43,0]) cube([4,5,8]); } translate([5,7.5,-0.1]) cylinder(r=1.6,h=25); translate([20,7.5,-0.1]) cylinder(r=1.6,h=25); translate([3+12-2,26+6,-0.1]) cylinder(r=1.6,h=15); transl...
glb/cad_47655ff1cbb5.glb
Create a Brenda RepRap 3D Printer carriage part. Start with a rectangular base plate measuring 90mm by 96.28mm with a thickness of 4mm. In this base plate, create a series of holes. Position four sets of holes at x-coordinates 12.5mm, 32.5mm, 57.5mm, and 77.5mm, with y-coordinates at 3.5mm and 28.5mm. Each of these h...
$fa=0.5; $fs=0.5; height=96.28; mirror([1,0,0,]) union() { difference() { cube([90,height,4]); offset = height-32; echo(offset); for (y=[3.5,3.5+25,offset+3.5,offset+3.5+25]) { for (x=[12.5,12.5+20,45+12.5,45+12.5+20]) { color("purple") translate([x,y-0.5,-0.01]) cylinder(r=1.6,h=4.1); translate([x,y+.5,-0.01]) cy...
glb/cad_928e6acecbd2.glb
Create a 3D model of a Brenda RepRap printer component. Start by constructing a main body consisting of three joined rectangular blocks: one measuring 45mm x 35mm x 20mm, a second block measuring 55mm x 15.8mm x 20mm positioned at x=-10, and a thin rectangular strip measuring 55mm x 0.5mm x 6.2mm positioned at y=-0.49 ...
$fa=0.5; $fs=0.5; difference() { union() { cube([45,35,20]); translate([-10,0,0]) cube([55,13.3+2.5,20]); translate([-10,-.49,6.9]) cube([55,.5,6.2]); } color("red") translate([10,13.3+12.7,0]) cylinder(r=10.2,h=60,center=true); color("white") translate([-0.01,13.3+2.5,-0.1]) cube([10,25,20]); translate([-0.01,1...
glb/cad_8647bc1da2f4.glb
Create a Brenda RepRap Y-belt wheel mount. Start with a base cube measuring 19.8mm x 19.8mm x 17mm. On top of this base, center a cylinder with a radius of 9.9mm and a height of 19.8mm, oriented horizontally along the X-axis. From this combined volume, remove the following material: a rectangular block measuring 22mm ...
$fa=0.5; $fs=0.5; difference() { union() { cube([19.8,19.8,17]); translate([9.9,9.9,17]) rotate([90,0,0]) cylinder(r=9.9,h=19.8,center=true); } translate([-1,5,7]) cube([22,10,40]); translate([10,10,0]) cylinder(r=2.6,h=20,center=true); translate([10,10,6.5]) cylinder(r = 8 / 2 / cos(180 / 6) + 0.05, $fn=6,h=5,c...
glb/cad_7f33d0355ae7.glb
Create a bracket for a 3D printer carriage. Start with a rectangular base measuring 36mm in length, 32mm in width, and 4mm in height. On top of this base, add a rectangular block that is 36mm long, 23mm wide, and 24mm high, positioned so it starts 4.5mm from the side edge of the base. Remove a rectangular slot from th...
$fa=0.5; $fs=0.5; difference() { union() { difference() { union() { cube([36,32,4]); translate([0,4.5,0]) cube([36,8+15,4+15+5]); } translate([8,3.5,4]) color("green") cylinder(r=1.6,h=10,center=true); translate([8+20,3.5,4]) color("green") cylinder(r=1.6,h=10,center=true); translate([8,3.5,4+3]) color("green") c...
glb/cad_781cbd00269a.glb
Create a square mounting plate for a 3D printer component. Start with a solid cube measuring 32mm x 32mm x 4mm. At the four corners of the plate, create four vertical cylindrical holes with a radius of 1.6mm. Each hole should be centered 3.5mm from the adjacent edges and extend fully through the 4mm thickness of the ...
$fa=0.5; $fs=0.5; difference() { cube([32,32,4]); translate([3.5,3.5,-.1]) cylinder(r=1.6,h=5); translate([3.5+25,3.5,-.1]) cylinder(r=1.6,h=5); translate([3.5,3.5+25,-.1]) cylinder(r=1.6,h=5); translate([3.5+25,3.5+25,-.1]) cylinder(r=1.6,h=5); translate([16,16,-.1]) cylinder(r=6,h=5); translate([16,16,2]) cyl...
glb/cad_d20a796c576c.glb
Create a bracket for a 3D printer carriage by starting with a base rectangular block measuring 30mm wide, 60mm deep, and 8mm high. From this base, remove two vertical cylindrical holes with a radius of 2.1mm; position the first at coordinates (6, 8) and the second at (24, 8). At the bottom of each of these holes, creat...
$fa=0.5; $fs=0.5; difference() { cube([30,40+8+8+8,8]); translate([6,8,-0.01]) cylinder(r=2.1,h=9); translate([6,8,8-1.5+0.01]) cylinder(r = 7 / 2 / cos(180 / 6) + 0.05, $fn=6,h=3,center=true); translate([24,8,-0.01]) cylinder(r=2.1,h=9); translate([24,8,8-1.5+0.01]) cylinder(r = 7 / 2 / cos(180 / 6) + 0.05, $fn=6,...
glb/cad_a3c37324ca0c.glb
Create a rectangular base plate measuring 39mm in width, 44mm in depth, and 4mm in height. On the top surface of this plate, center a solid cylinder with a radius of 10mm and a height of 15mm. To complete the part, remove material to create five holes: a central vertical hole through the cylinder with a radius of 4.1...
$fa=0.5; $fs=0.5; difference() { union() { translate([1,0,0]) cube([38,44,4]); translate([11,22,0]) cylinder(r=10,h=15); } translate([10,6,-1]) cylinder(r=3,h=6); translate([10,38,-1]) cylinder(r=3,h=6); translate([30,6,-1]) cylinder(r=3,h=6); translate([30,38,-1]) cylinder(r=3,h=6); translate([11,22,6]) cylinde...
glb/cad_a1f5e4ffb458.glb
Create a small rectangular base for a 3D printer component. Start with a primary rectangular block measuring 20mm in width, 20mm in depth, and 2.5mm in height. On top of this base, add a second rectangular block that is 20mm wide, 6.2mm deep, and 3mm high, positioned at coordinates (0, 6.9, 0) relative to the first blo...
$fa=0.5; $fs=0.5; difference() { union() { cube([20,20,2.5]); translate([0,6.9,0]) cube([20,6.2,3]) ; } translate([6,10,-1]) cylinder(r=1.6,h=10); translate([6+8,10,-1]) cylinder(r=1.6,h=10); }
glb/cad_d12de2be57cb.glb
Create a 3D model of a printer carriage component. Start with a solid cube measuring 32mm x 32mm x 26mm. Remove a rectangular block from the center of the cube, starting 4mm from the bottom, with dimensions of 18mm wide, 28mm deep, and 18mm high. Add four vertical holes to the corners of the cube. Each hole consists o...
$fa=0.5; $fs=0.5; difference() { union() { cube([32,32,4+22]); } translate([7,-0.01,4]) cube([18,28,18]); translate([3.5,3.5,-.1]) cylinder(r=1.6,h=5); translate([3.5,3.5,4]) cylinder(r=3,h=30); translate([3.5+25,3.5,-.1]) cylinder(r=1.6,h=5); translate([3.5+25,3.5,4]) cylinder(r=3,h=30); translate([3.5,3.5+25,...
glb/cad_3c8460aea4a7.glb
Create a rectangular block for a 3D printer component with overall dimensions of 20mm in width, 25mm in depth, and 6mm in height. On the top surface, add a thin rectangular protrusion that is 6.2mm wide, 25mm deep, and 0.5mm high, positioned starting at x=6.9mm. From this combined volume, remove three vertical cylind...
$fa=0.5; $fs=0.5; difference() { union() { cube([20,25,6]); translate([6.9,0,5.99]) cube([6.2,25,.5]); } translate([10,7,-0.01]) cylinder(r=2.4,h=10); translate([5.25,20,-0.01]) cylinder(r=1.6,h=10); color("red") translate([5.25,20,6-3.2]) cylinder(r=3.2,h=10); translate([5.25+9.5,20,-0.01]) cylinder(r=1.6,h=10)...
glb/cad_d3c792509611.glb
Create a base plate for a 3D printer component that is 40mm wide, 38mm deep, and 5mm thick. On top of this base, center a hollow square block that is 24mm wide, 24mm deep, and 20mm tall. The interior of this block should be a void measuring 20.2mm by 20.2mm by 22mm, extending slightly through the bottom of the base. T...
$fa=0.5; $fs=0.5; difference() { union() { cube([40,38,5]); color("red") translate([0,7,-0.79]) cube([40,6,0.8]); color("red") translate([0,7+20,-0.79]) cube([40,6,0.8]); translate([8,8+3.2,4]) cube([24,24,20]); } color("green") translate([9.9,9.9+3.2,4]) cube([20.2,20.2,22]); translate([4,10,4]) color("green")...
glb/cad_9b067bd60cc7.glb
Create a Brenda RepRap 3D printer component starting with a base rectangular block measuring 55mm in length, 25mm in width, and 4mm in height. On top of this base, add a second rectangular block measuring 31mm by 25mm with a height of 10mm, positioned to start 9mm from the left edge of the base. On the top surface of t...
$fa=0.5; $fs=0.5; mirror([1,0,0]) difference() { union() { cube([40+15,25,4]); cube([40-9,25,10]); translate([6.9,0,10]) cube([6.2,25,.5]); translate([26.9,0,10]) cube([4.1,25,.5]); } translate([5.25+40-5,20,-0.01]) cylinder(r=1.6,h=10); color("red") translate([5.25+9.5+40-5,20,-0.01]) cylinder(r=1.6,h=10); color(...
glb/cad_f2cedd715879.glb
Create a 3D model of a Brenda RepRap printer component. Start with a base rectangular block measuring 30mm in width, 40mm in depth, and 4mm in height. On top of this base, add a second rectangular block that is 20mm wide, 40mm deep, and 10mm high, positioned to align with the left edge of the base. From this combined ...
$fa=0.5; $fs=0.5; mirror([1,0,0]) difference() { union() { cube([20+10,40,4]); difference() { union() { cube([20,40,10]); translate([6.9,0,10]) cube([6.2,40,.5]); } translate([10,20,4]) cube([20,20.1,10]); } translate([10,19,0]) cylinder(r=10,h=10); } translate([25,35,-0.01]) cylinder(r=1.6,h=10); color(...
glb/cad_6bad82d7996c.glb
Create a 3D model of a bracket for a 3D printer. Start with a base rectangular block measuring 20mm wide, 2mm thick, and 15mm deep. Attached to this base, create a vertical wall with a height of 15mm; this wall starts at a width of 0mm at the origin, widens linearly to 20mm at a depth of 32mm, and maintains a constant ...
$fa=0.5; $fs=0.5; difference() { union() { cube([20,2,15]); linear_extrude(height=15) polygon(points=[[0,0],[8,32],[20,32],[20,0]]); translate([14,32,0]) cylinder(r=6,h=15); translate([0,-.49,5.7]) color("purple") cube([20,.5,3.6]); } translate([14,32,-0.01]) cylinder(r=1.7,h=16); translate([14,32,4.5]) cylinder...
glb/cad_05253e3cc5e6.glb
Create a small rectangular base for a 3D printer component. Start by forming a main rectangular block that is 20mm wide, 20mm deep, and 2.5mm thick. Attached to the top of this base, position a second rectangular block that is 20mm wide, 6.2mm deep, and 3mm thick, aligned to the side so it starts at a depth of 6.9mm fr...
$fa=0.5; $fs=0.5; difference() { union() { cube([20,20,2.5]); translate([0,6.9,0]) cube([20,6.2,3]) ; } translate([10,10,-1]) cylinder(r=1.6,h=10); }
glb/cad_c6c9fbe7f307.glb
Create a set of cabinet reinforcement brackets. Start by constructing a flat, L-shaped base formed by two intersecting rectangular prisms. The first prism is 150mm long, 18mm wide, and 7mm thick, aligned along the Y-axis. The second prism is identical in dimensions (150mm by 18mm by 7mm) but is rotated 45 degrees on th...
$fa=0.5; $fs=0.5; difference() { union() { cube([18,150,7]); translate([0,150,0]) cube([150,18,7]); color("red") translate([0,18,0]) rotate([0,0,45]) cube([250,18,7]); color("red") translate([0,70,0]) rotate([0,0,45]) cube([250,18,7]); } color("green"); translate([-50,-1,-1]) cube([50,150,50]); color("green");...
glb/cad_7b66e311954a.glb
Create a cabinet reinforcement bracket consisting of two intersecting flat bars. First, create a rectangular bar 150mm long, 18mm wide, and 7mm thick. Create a second identical bar and rotate it 45 degrees relative to the first, positioning it so they intersect to form a reinforced corner. On the first bar, place fou...
difference() { union() { cube([18,150,7]); translate([0,150,0]) cube([150,10,17]); color("red") translate([0,10,0]) rotate([0,0,45]) cube([250,18,7]); color("red") translate([0,70,0]) rotate([0,0,45]) cube([250,18,7]); } color("green"); translate([-50,-1,-1]) cube([50,150,50]); color("green"); translate([-1,150...
glb/cad_0f5be45ea307.glb
Create an Aluminium Square Tube Plug consisting of a base flange and a main inserting body. Start by creating a square base plate with dimensions 24mm by 24mm and a height of 2mm, ensuring all four vertical corners are rounded with a radius of 1mm. Centered on top of this base, add a second square prism that serves a...
module createMeniscus(h,radius) difference(){ translate([radius/2+0.1,radius/2+0.1,0]){ cube([radius+0.2,radius+0.1,h+0.2],center=true); } cylinder(h=h+0.2,r=radius,$fn = 25,center=true); } module roundCornersCube(x,y,z,r) difference(){ cube([x,y,z], center=true); translate([x/2-r,y/2-r]){ ro...
glb/cad_bbcfcf9aedfe.glb
Create an iWed iPhone engagement ring stand consisting of a decorative ring and a supporting base. First, create the ring by extruding a 20-facet elliptical profile. The ring should have an inner diameter based on a US size 8 ring (approximately 18.14mm), a height of 8mm, and a thickness of 3mm. Next, construct the ...
print="model"; part="a"; include <shapes.scad> include <iphonemodel.scad> iwedringsize=8; iwedringheight=8; iwedringthickness=3; iwedringdiameter=11.63+(0.8128*iwedringsize)+iwedringthickness; tray_thickness=2; exploded=20; module ring(ringsize, ringheight, ringthickness) { _ring_diameter=11.63+(0.8128*ringsize...
glb/cad_c5b4d58e1801.glb
Create a reinforced shelf bracket with a total footprint of 46mm width, 150mm length, and 26mm height. Start by forming the main body from two intersecting rectangular prisms: one base plate measuring 46mm wide, 150mm long, and 6mm thick, and a vertical support wall measuring 6mm wide, 150mm long, and 26mm high, positi...
$fa=0.5; $fs=0.5; difference() { union() { cube([46,150,6]); cube([6,150,26]); for (i=[0,42,150-42-12,138]) { translate([5.99,11.99+i,0]) color("purple") rotate([90,0,0]) linear_extrude(height=12) polygon([[0,26],[26,0],[0,0]]); } } for (i=[[-0.01,20],[-0.01,150-20],[-0.01,75]]) { translate([i[0],i[1],16]) rotate(...
glb/cad_b840a6628d50.glb
Create an Eddy Current Brake for aluminum bike rollers. Start by constructing a central upper bracket as a rectangular block measuring 31.4mm in length, 31.4mm in width, and 57.8mm in height. Attach two lower bracket arms to the bottom, each measuring 31.4mm in length, 18.4mm in width, and 22mm in height. Integrate a ...
thickness=3; width = 25.4 + 1 ; length= 25.4 + 1; height=(25.4*2) + 1 ; cube =25.4+1; difference (){ union () { cube([length+2*thickness+5,width+2*thickness,height+2*thickness],center=true); translate([0,0,-height/2-14]) cube([length+2*thickness+5,width/2+2*thickness,16+2*thickness],center=true)...
glb/cad_906f77956ed5.glb
Create a bulkhead thru hull dust extraction fitting. Start with a circular flange 96mm in diameter and 5mm thick. Centered on this flange, create a hollow cylindrical connector with an outer diameter of 43mm and an inner diameter of 37mm, extending 34mm in height. The top of this cylinder should taper slightly from the...
$fn=150 ; module connector( bolt_pattern_d = 80, bolt_hole = 8, outside_d = 43, inside_d = 35, length = 34, reducer_inside_d = 35, reducer_length = 20,) { thinkness = outside_d-inside_d; difference() { union() { cylinder(d=outside_d, h=length); translate([0,0,length]) ...
glb/cad_e0963432d890.glb
Create a ball gear for inner window shades. Start by creating a main cylindrical disc with a thickness of 4mm and a radius of approximately 8.28mm (calculated as $(10 \times (4\text{mm} + 2\text{mm})) / (2\pi)$). Add a thin cylindrical base and top plate, each 1mm thick, extending the total height to 6mm, with the plat...
ball_diameter_in_mm = 4; space_between_in_mm = 2; ball_count = 10; ball_resolution_in_percent = 50; gear_thickness_in_mm = 4; motor_stick_thickness_in_mm = 6; motor_stick_planar_thickness_in_mm = 1; placeholder_thickness_in_mm = 1; placeholder_overhang_in_mm = 1; function pi()=3.14159265358979323846; radius = (((ball...
glb/cad_3fe0b2288c95.glb
Create a non-functional sextant prop model. Start with a main frame based on a 60-degree pie wedge with a maximum radius of 180mm and a thickness of 4mm. Cut a concentric arc out of the center of this wedge to create a curved frame with a width of 13mm. Along the center of the arc, add a rectangular strut 4mm thick tha...
include <../librealflash6.scad>; nozzle_id = 0.5; t = 4; max_r = 180; frame_w = 13; arc_angle = 60; tab_l = frame_w*0.6; tab_w = frame_w*0.25; opp = frame_w; hyp = frame_w/sin(arc_angle/2); adj = frame_w/tan(arc_angle/2); centre_strut_l = max_r -frame_w - hyp; clearance = 0.7; arm_w = frame_w*0.6;...
glb/cad_d543e3c55b71.glb
Create a Makerbot Threaded Rod Cover by constructing a hollow cylinder with an outer radius of 8.5mm and a total height of 40mm. Remove a smaller concentric cylindrical core with a radius of 4.5mm and a height of 37mm from the center, leaving a solid base at the bottom. Ensure the outer cylinder is rendered with a low ...
rotate(a = [0,180,0]) { difference() { cylinder(h = 40, r = 17/2); cylinder(h = 37, r = 4.5); translate(v = [0,0,0]) { } } } module nut(nutSize,height) { hexSize = nutSize + 12.67 - 8; union() { for(i=[0:5]) { intersection() { rotate([0,0,60*i]) translate([0,-hexSize/2,0]) cube([hexSize/2,hexSi...
glb/cad_948114b08131.glb
Create a 3D model of a Christmas tree by extruding a 10-pointed star polygon vertically to a height of 100mm. The star's base profile should alternate between an outer radius of 30mm and an inner radius of 15mm for each of its ten points. As the shape is extruded upward, apply a total twist of 180 degrees to the geomet...
XPointStar = 5; Height = 100; Twist = 0.5; BaseSizeMax = 30; BaseSizeMin = 15; $fn = 256; ScaleFactor = 0.1; arc = 360 / (XPointStar*2); points = [ for(a=[0:XPointStar*2]) (a%2==0 ? BaseSizeMin:BaseSizeMax) * [sin(arc*a), cos(arc*a)] ]; linear_extrude(height=Height, twist=Twis...
glb/cad_d773d1547874.glb
Create a servo bracket for an auto bed leveling sensor. Start with a base plate that is 4mm thick. The main body consists of a circular section with a diameter of 25.6mm, which contains a concentric circular hole with a diameter of 19mm passing through the center. Attached to this circular base is a rectangular housin...
$fn = 50; module roundedRect(size, radius) { x = size[0]; y = size[1]; z = size[2]; hull() { xx=x/2; yy=(y/2)-radius; zz=(z/2)-radius; translate([-xx, yy,-zz]) rotate([0,90,0]) cylinder(r=radius,h=x); translate([-xx, -yy,-zz]) rotat...
glb/cad_595cacefed1b.glb
Create a magnetic coil spool consisting of two matching symmetrical parts. For the first part, create a conical flange that is 10mm thick, tapering from a base diameter of 40mm down to a top diameter of 30mm. Centered on the top face of this flange, attach a cylindrical shaft with a diameter of 5mm and a total height o...
$fs = 0.01; FlangThickness = 10; FlangDiameter = 40; FlangD2 = 30; ShaftLength = 20; ShaftDiameter = 5; CoilHeight = 2; CoilDiameter = 7; InsertHeight = 3; Tolerance = 0.1; cylinder (h=FlangThickness,d=FlangDiameter, d2= FlangD2); translate([0,0,FlangThickness]) { cylinder (h=CoilHeight + InsertHeight,d=CoilD...
glb/cad_3c243f3191db.glb
Create a hotend support for a direct drive extruder consisting of two primary components: a base mount and a filament guide. For the base mount, create a solid shape by forming a hull between two cylinders of 7mm radius and 8mm height positioned 50mm apart at coordinates (-25, 0, 0) and (25, 0, 0). Add a rectangular ...
module solid() { hull() { translate([-25,0,0]) cylinder(r=7,h=8); translate([25,0,0]) cylinder(r=7,h=8); } translate([25,0,0]) cylinder(r=20,h=8); translate([-17.5,-21,0]) cube([25,42,9.5+8]); } module holes() { translate([0,+4.5,0]) cylinder(r=5.4,h=20); translate([-17.5,-18,13])rotate([0,90,0]) cylinder(r=1.7,h=25...
glb/cad_428cd224ca42.glb
Create a hotend support for a direct drive extruder consisting of two primary components: a base mount and a filament guide. First, construct the base mount by creating a solid shape that is the convex hull of two cylinders with a radius of 7mm and a height of 8mm, positioned 50mm apart (at x=-25 and x=25). Add a rect...
module solid() { hull() { translate([-25,0,0]) cylinder(r=7,h=8); translate([25,0,0]) cylinder(r=7,h=8); } translate([25,0,0]) cylinder(r=20,h=8); translate([-17.5,-21,0]) cube([25,42,9.5+8]); } module holes() { translate([-3,+4.5,0]) cylinder(r=5.4,h=20); translate([-17.5,15.5,13])rotate([0,90,0]) cylinder(r=1.7,h=...
glb/cad_0112e3c4cee4.glb
Create a hotend support for a direct drive extruder consisting of two primary components: a base mount and a filament guide. First, construct the base mount by creating a hull between two cylinders of 7mm radius and 7.5mm height, positioned 50mm apart (centered at x=25 and x=-25). Add a cylinder of 20mm radius and 7.5...
module solid() { hull() { translate([-25,0,0]) cylinder(r=7,h=7.5); translate([25,0,0]) cylinder(r=7,h=7.5); } translate([25,0,0]) cylinder(r=20,h=7.5); translate([-17.5,-21,0]) cube([25,42,9.5+8]); } module holes() { translate([-4,+4.5,0]) cylinder(r=5.4,h=20); translate([-17.5,15.5,13])rotate([0,90,0]) cylinder(r=...
glb/cad_21cf560e40b4.glb
Create a C.H.I.P. plate by starting with a rectangular base measuring 62.65mm in length, 40.86mm in width, and 4.9mm in height. Hollow out the center of this base by removing a smaller rectangle that leaves a 2mm border around the edges. At the front edge, create a cutout 4mm wide and 17mm long with a height of 2mm. I...
chip_w=40.86; chip_l=62.65; chip_h=4.9; screw=3; border=2; translate([0,chip_w-16,chip_h]) cube([2,3,1]); difference(){ cube([chip_l,chip_w,chip_h]); translate([border,border,border]) cube([chip_l-2*border,chip_w-2*border,chip_h]); translate([-2,7,3]) cube([4,17,2]); translate([3*border,-0.5...
glb/cad_ffad85bd51d3.glb
Create a blind hold down bracket with a thickness of 3mm. Start with a rectangular base tab measuring 25mm wide by 15mm high. In this tab, create two circular screw holes, each 4mm in diameter, spaced 11mm apart and centered vertically. Extending from the tab, create a main body that is 35mm long. At the end of this b...
layFlat = "no"; pinDistance = 35; pinLength = 5; pinWidth = 3; thickness = 3; pinFlange = 5; holeSize = 4; holeDistance = 11; height = 15; width = 25; outerCurve = (pinWidth*2) + pinFlange; function rotationAngle(layFlat) = (layFlat) == "no" ? 90 : 0; rotate(a=[rotationAngle(layFlat),0,0]) { union() { ...
glb/cad_dd2e0493987c.glb
Create a SimpleParametricPot by constructing a tapered hollow vessel. Start with a conical shape that has a base diameter of 35mm, a height of 40mm, and walls that slope outward at a 10-degree angle from the vertical. The walls of the pot should have a uniform thickness of 1mm. Ensure the top rim is flat and sliced cle...
baseD = 35; potH = 40; sideSlope = 10; potThick = 1; nHoles = 6; sHoles = 3; difference() { pot(); holes(nHoles, sHoles); } module holes(n, s){ for(i = [0:n]){ rotate([0,0,i*360/n]) translate([baseD/4,0,0]) cylinder(d=s, h=2*potThick, center=true, $fn=16); } } module pot(){ difference(){...
glb/cad_8ea0c6a9e206.glb
Create a rectangular box for an OrangePi PC with outer dimensions of 89.5mm in length, 61.5mm in width, and 10mm in height. Hollow out the center to create a shell with a wall thickness of 2mm, but leave a 2mm thick floor. The interior cavity should be 85.5mm by 57.5mm. On the side walls, create the following openings...
difference(){ cube([89.5,61.5,10]); union(){ translate([2,2,2]) cube([85.5,57.5,10]); translate([1,1,8]) cube([87.5,59.5,2]); translate([0,13,10]) rotate([0,90,0]) cylinder(2.1,2.5,2.5); sd = [ [0,18,0], [3,18,0], [3,35,0], [0,35,0], ...
glb/cad_1b31f48c6cbc.glb
Create a protective box for an OrangePi PC with outer dimensions of 89.5mm in length, 61.5mm in width, and 21.8mm in height. The main body is a hollow shell with a wall thickness of 2mm, leaving an internal cavity of 85.5mm by 57.5mm by 20mm. On the top face, center a circular ventilation hole with a radius of 2mm and...
mirror(){ difference(){ cube([89.5,61.5,21.8]); union(){ translate([2,2,2]) cube([85.5,57.5,20]); translate([0,0,20]) cube([89.5,1.2,1.8]); translate([0,0,20]) cube([1.2,61.5,1.8]); translate([0,60.3,20]) cube([89.5,1.2,1.8]); translate([88.3,0,20]) cube([1.2,61.5,1.8]...
glb/cad_6dea6b2c6aa0.glb
Create an Audiophile Sound Diffusor consisting of a hexagonal grid of hollow hexagonal cells. Each cell is defined by an outer hexagonal prism with a radius of 15mm and a height of 60mm, with a concentric hexagonal hole removed from the center to create a wall thickness of 0.4mm. The cells are arranged in a staggered...
module cell(rr,hh,w,pp, hp) { ri=rr-w; eps=0.001; rotate([0,0,30]) union(){ difference() { cylinder(r=rr+eps,h=hh,$fn=6,center=false); cylinder(r=ri,h=hh*1.1,$fn=6,center=false); } translate([0,0,pp])cylinder(r=ri+eps,h=hp,$fn=6,center=false); } } radius=15; wall=0.4001; height_plate=1; height=60; platem...
glb/cad_c67118c1cac8.glb
Create an Audiophile Sound Diffusor as a square grid of cells. The overall footprint is 100mm by 100mm with a total height of 60mm. Construct the internal structure using a grid of walls with a thickness of 0.8mm. Divide the 100mm width and length into 4 equal sections each, creating a 4x4 grid of cells. These walls ...
module diffusor(xlen,xcount,ylen,ycount, height,wallthickness,platethickness,holediameter,frameheight) { module walls(xlen,xcount,ylen,ycount, height,wallthickness) { for(i=[0:(xlen-wallthickness)/(xcount+0.0001):xlen-wallthickness]) { translate([i,0,0]) cube([wallthickness,ylen,height], center = false); ...
glb/cad_175970716d91.glb
Create an Audiophile Sound Diffusor consisting of a series of vertical walls and perpendicular plates. Start by creating a back support wall that is 80mm high, 0.4mm thick, and extends across the total width of the structure. Place 21 vertical walls, each 80mm high, 0.4mm thick, and 60mm deep. These walls should be s...
wall=0.4; thick=60; height=80; platethick=0.8; n=20; segwidth=10; module plate(pos, segwidth,platethick,height) { translate([0,pos,0]) cube([segwidth,platethick,height], center = false); translate([0,0,height/2.]) cube([segwidth,pos,platethick], center = false); } rotate([0,0,180]) union() { for(i=[0:n]) { ...
glb/cad_7bca79b87aa1.glb
Create a Filament Guide Bar consisting of a main rectangular body and a cylindrical guide hole. Start by creating a rectangular base measuring 80mm in length, 10mm in width, and 10mm in height. At one end of this base, integrate a vertical cylinder with an outer radius of 8mm and a height of 10mm, which contains a conc...
use <FilamentSpool.scad> module GuideBar() { difference() { union() { translate([85,5,0]) GuideHole(); cube([80,10,10]); rotate([0,0,-30]) translate([-75,0,0]) ClipBar(); } translate([40,5,5]) rotate(tighten()) slot([6,70,10.2], centerXYZ=[1,1,1]); } } module ClipBar() { difference() { cube([...
glb/cad_cfcee6690b3a.glb
Create a standoff corner piece for a heated build platform. Start with a solid rectangular block measuring 20mm by 20mm with a total height of 24mm. From this block, remove a smaller rectangular section of 8mm by 8mm from the inner corner, extending the full height, to create an L-shaped profile. At the base, create a...
WOOD_Z = 4.9; WOOD_X = 100; WOOD_Y = 100; AL_Z = 5; AL_X = 104.5; AL_Y = 104.5; LEX_X = 100.28; LEX_Y = 100.28; LEX_Z = 3; ABS_X = 20; ABS_Y = 20; ABS_Xd = 12; ABS_Yd = 12; ABS_TopRidge = 3; BOLT_LENGTH = 16; NUT_HEIGHT = 5; ABS_Z = BOLT_LENGTH+AL_Z+LEX_Z+ABS_TopRidge; module standoff(){ difference() { transl...
glb/cad_709ea584360c.glb
Create a standoff for a heated build platform. Start with a solid rectangular block measuring 20mm by 20mm with a total height of 24mm. From the bottom of this block, remove a central rectangular section measuring 100mm by 100mm by 4.9mm to accommodate a wood platform. Directly above this, remove a second rectangular...
WOOD_Z = 4.9; WOOD_X = 100; WOOD_Y = 100; AL_Z = 5; AL_X = 104.5; AL_Y = 104.5; LEX_X = 100.28; LEX_Y = 100.28; LEX_Z = 3; ABS_X = 20; ABS_Y = 20; ABS_Xd = 12; ABS_Yd = 12; ABS_TopRidge = 3; MOLEX1_X = 8; MOLEX1_Y = 23; MOLEX1_Z = 8.4; MOLEX2_X = 2; MOLEX2_Y = 25.5; MOLEX2_Z = 8.4; MOLEX3_X = 13.8; MOLEX3_Y = 21;...
glb/cad_cc9aa31f0cf4.glb
Create a Makerbot Printable Aluminum Nichrome Heated Build Platform consisting of two interlocking rectangular components. First, create a top clamp by starting with a solid rectangular block measuring 40mm wide, 10mm deep, and 8mm high. Remove a central rectangular section from the bottom of this block, leaving a 5mm ...
HEIGHT = 8; WIDTH1 = 30; WIDTH2 = 40; DEPTH = 10; BOLT = 5; module base() { difference() { cube([WIDTH1, DEPTH, HEIGHT/2]); translate(v=[WIDTH1/2,DEPTH/2,0]) { cylinder(r = BOLT/2, h = 100); } } } module clamp() { difference() { cube([WIDTH2, DEPTH, HEIGHT]); translate(v=[(WIDTH2-WIDTH1)/2,0,HEIGHT/2...
glb/cad_78eba5d9e64f.glb
Create a leg joint for a toy by constructing two rectangular blocks and a rounded head with a central hole. First, create a rectangular base measuring 11mm wide, 24.8mm long, and 4.25mm thick. Attached to the top of this base, create a second rectangular section 11mm wide, 26.5mm long, and 4.25mm thick, positioned so t...
union(){ translate([0,2.125,0]){ rotate([90,0,0]){ difference(){ union(){ cube([11,26.5,4.25]); translate([5.5,26.5,0]){ cylinder(d=11,h=4.25, center=false,$fn=50); } } translate([5.5,26.3,-0.2]){ ...
glb/cad_e26fa847d966.glb
Create a Pinball Reset Button consisting of two main parts: a button and a support. For the button, create a hollow rectangular box with outer dimensions of 55mm length, 10mm width, and 10mm height. The walls should be 0.4mm thick, and the top face should be open. At each end of this box, centered on the 10mm width, ad...
bl = 55; bw = 10; bh = 10; sw = 15; sl = 85; sh = 40; pd = 5; ph = 5; xw = 0.4; module hollowCube(tPos, tDims){ translate([tPos[0],tPos[1],tPos[2]+tDims[2]/2]) difference() { cube(tDims, center = true); translate([0,0,0]) intersection() { cube([tDims[0]-xw*4,tDims[1]-xw*4,tDims[2]-xw*4], center = true); ...
glb/cad_511f699ce193.glb
Create a Filament Straightener consisting of a main body and three bearing assemblies. Start with a rectangular body 50mm wide, 70mm long, and 17mm high. Centered along the length of the body, carve a filament guide slot 10mm wide and 7mm deep. At the top of the body, create three bearing housings. Each housing is a c...
partSelect = 1; bearingOD = 22; bearingODTolearnace = 0.5; bearingID = 8.0; bearingThickness = 7.0; nutThickness = 6.731; nutWidth = 14.75; boltHeadThickness = 5.08; boltHeadTolerance = 0.1; boltLength = 38.1; boltHeadWidth = 14.75; boltDiameter = 7.9375; boltDiameterTolerance = 0.1; boltType = 1; handleTh...
glb/cad_3984a5ee9820.glb
Create a parametric airless tire with a total height of 10mm and an outer diameter of 70mm. The outer rim is a hollow cylinder with a wall thickness of 1mm. At the center, create a hub assembly. Start with a central cylinder of 5.75mm diameter. Surround this with a larger cylinder of 8.75mm diameter (the hub thicknes...
dia_in = 5.75; dia_out = 70; spoke_count = 4; spoke_thickness = 0.5; tread_thickness = 1; hub_thickness = 3; height = 10; $fn = 30; spoke_dia = (dia_in/2) + hub_thickness + (dia_out/2) - tread_thickness+spoke_thickness; grip_density = 0; grip_height = 0.5; grip_depth = 1; pi = 3.14159; zff = 0.001; hub_extra_height = ...
glb/cad_1a2a8db96f28.glb
Create a press-fit faucet extension with a total length of 60mm, a width of 32mm, and a height of 30mm. The main body is a rectangular block with a hollowed-out interior to accommodate a spigot. Start by creating a rectangular shell with a wall thickness of 2mm. The interior cavity should be a tapered void that begin...
$fn=50; spigotY=31; spigotZ=14; spigot_width=32; spigot_length=60; spigot_height=30; spigot_rad=13; spigot_mouth_rad=11.5; spigot_mouth_ht=13; min_wall=2; difference() { union() { cube([spigot_width,spigot_length,spigot_height]); translate([spigot_width/2,spigot_length,0]) { ...
glb/cad_7cba60fb3481.glb
Create a 60mm Fan Mount for a 31mm Direct Drive Extruder. Start by creating a main rectangular base plate measuring 52mm in width, 38mm in depth, and 6mm in height. Add three vertical flanges, each 20mm high and 6mm thick. Position one flange along the front edge, spanning the full 52mm width. Position the other two ...
$fn=50; frameX=52; frameY=38; frameT=6; frameOverhang=20; buttonR=5; buttonH=3*frameT; difference() { union() { cube([frameX,frameY,frameT]); translate([0,2*frameT,0]) cube([frameX,frameT,frameOverhang]); cube([frameX,frameT,frameOverhang]); translate([0,2*frameT,0]) cube(...
glb/cad_d6e04546e237.glb
Create a 60mm Fan Mount for a 31mm Direct Drive Extruder. Start with a flat rectangular base measuring 60mm by 60mm with a thickness of 1.2mm. At the corners of this base, place four vertical screw standoffs. Each standoff is a cube measuring 11mm x 9mm x 11mm. Drill a vertical hole with a radius of 1.8mm through the...
$fn=50; standoffX=11; standoffY=9; standoffZ=11; fanX=60; fanY=10; fanZ=1; screwShaftR=1.8; screwShaftH=30; mountScrewSeparation=31; nutX=3.4; nutY=4; nutZ=6; module nut() { rotate(a=-90,v=[1,0,0]) union() { cube([nutX,nutY,nutZ],center=true); rotate(a=120,v=[0,1,0]) cube([nutX,nutY,nu...
glb/cad_3224898931a6.glb
Create a basic outlet cover with a rectangular footprint measuring 69.85mm wide by 114.3mm high and a thickness of 6.4mm. The four corners must be rounded with a radius of 4mm. On the front face, center two circular screw holes along the vertical axis. Position the first hole 8.75mm from the top edge and the second 8...
inch = 25.4; width = 2.75 * inch; height = 4.5 * inch; depth = 6.4; cyl = 8; cyld = 1; $fn=40; union() { difference() { intersection() { hull() { translate([cyl/2,cyl/2,0]) longsphere(cyl,depth*2); translate([width-cyl/2,cyl/2,0]) longsphere(cyl,depth*2); ...
glb/cad_87652cc1f1a0.glb
Create a circular lego block maker consisting of a series of stacked, concentric cylindrical shells. Start by creating a base cylinder with a height of 1.8mm, a bottom radius of 3.25mm, and a top radius of 3.25mm. Above this, add a main body section that is a hollowed-out cylinder with a height of 7.8mm. This body sh...
FLU= 1.6; $fn= 144; D=2 ; R=1 ; Tolerance = 0.1; B=FLU*6 ; F=FLU*2; S=0; Block_Diameter=8; BD=Block_Diameter -Tolerance*2; Stud_H=FLU +Tolerance*2; Stud_W=FLU*3; Stud_w=FLU*3+.08; Stud_h=FLU*2 -Tolerance*2; Base_Tubes=6.5; Wall_Thickness=FLU -Tolerance*2; Body_h=BD-(FLU -Tolerance...
glb/cad_76ca71e1c266.glb
Create a bed mount for a Prusa Iteration 2 by starting with a rectangular block that is 12mm wide, 12mm deep, and 30mm tall. Carve a square hole 8mm by 8mm through the center of the block, starting 5mm from the bottom and extending to the top. From the bottom center of the block, remove a hexagonal prism with a height ...
difference() { difference() { difference() { polyhedron (points =[[0,0,0],[12,0,0],[0,12,0],[12,12,0],[0,0,30],[12,0,30]], triangles = [[0,1,2],[1,0,4],[2,1,3],[5,1,4],[5,3,1],[5,4,3],[2,3,4],[2,4,0]]); translate([2,2,5]) cube([8,8,30]); } translate([6,6,3]) cylinder(h = 2.5, r = (5.5 / 2) / ...
glb/cad_6869fa2a40bf.glb
Create a Customizable Round Box with Lid. First, construct the main box as a rounded rectangular prism with a length of 60mm, width of 40mm, and height of 20mm, using a corner radius of 5mm. Hollow out the center to create a container with a wall thickness of 2mm and a bottom thickness of 2mm. To support the lid, add...
use <write/Write.scad> itemsShown="both"; boxLength=60; boxWidth=40; boxHeight=20; cornerRadius=5; wallThickness=2; bottomThickness=2; lidThickness=2; lidEdgeThickness=0.5; topClearance=0.2; text=""; textSize=12; textThickness= 2; withNotch=true; if (itemsShown=="box") showBox(); if (itemsShown=="lid") showLid(); ...
glb/cad_1f0f31ecbfa0.glb
Create a customizable round box with a lid. The main box body is a rounded rectangular prism with a length of 100mm, width of 50mm, and height of 30mm, featuring a corner radius of 5mm. The walls and the bottom base are 2mm thick. Inside the top of the box, create a ledge by adding a 2mm high rim that extends inward fr...
itemsShown="both"; boxLength=100; boxWidth=50; boxHeight=30; cornerRadius=5; wallThickness=2; bottomThickness=2; lidThickness=2; lidClearance=0.2; lidEdgeThickness=0.5; withNotch=true; if (itemsShown=="box") showBox(); if (itemsShown=="lid") showLid(); if (itemsShown=="both"){showBox();showLid();} module showLid(){ ...
glb/cad_8cb22af110af.glb
Create a chip roller for straightening DIP package pins. Start with a rectangular base measuring 40mm wide, 50mm long, and 5mm high. In the center of the base, create a raised rectangular ridge that is 7.62mm wide, 50mm long, and 5mm high. Position two bearing axles symmetrically on either side of the central ridge. ...
$fs = 0.01; BaseWidth = 40; BaseLength = 50; BaseHeight = 5; BaseChamfer = 2; RidgeHeight = 5; RidgeWidth = 7.62; RidgeWidthClearance = 8.26; BearingDiameter = 17; BearingShaft = 6; BearingHeight = 6; BearingTolerance = 0.2; AxleLipHeight = 1; AxleLipDiameter = 1 + BearingShaft; AxleOffset = (RidgeWidthClearance/2...
glb/cad_de38cd08f637.glb
Create a Customizable Lithopane Ornament consisting of a hollowed spherical shell and a cylindrical frame. Start by creating a hollow sphere with an outer diameter of 74mm (radius 37mm) and a wall thickness of 2mm. Cut the sphere in half horizontally to create a hemispherical dome. At the base of this dome, integrate ...
image_file = "image-surface.dat"; diameter = 70; layer_height = 0.1; number_of_layers = 12; shellthick = 2; min_layer_height = layer_height*2; hole_radius = hole_diameter/2; height = layer_height*number_of_layers; maxheight = height+min_layer_height; union() { difference() { translate([0, 0, min_layer_height...
glb/cad_e97a93df4de0.glb
Create an embosser consisting of two mirrored rectangular stamp components. Each component starts with a base handle measuring 30mm in width, 30mm in length, and 3mm in height. On the inner facing surface of each handle, create a raised embossed plate. This plate must be 30mm by 30mm and 0.5mm thick, featuring a custom...
image_file = "smile.dat"; hinge_placement = 1; emboss_height = 0.5; $fa = 6; $fs = 1.5; image_width = 30; image_length = 30; image_padding = 0; handle_width = image_width + image_padding*2; handle_length = 30; handle_height = 3; gap = 1; assembly(); module assembly() { stamp_top(); stamp_bottom(); } mod...
glb/cad_125dd3a61836.glb
Create a Crystal brain teaser puzzle consisting of 15 individual bars with a base unit width of 10mm. Construct five simple bars that are rectangular prisms measuring 30mm in length, 10mm in width, and 10mm in height. Construct five medium bars that are rectangular prisms measuring 50mm in length, 10mm in width, an...
base_width = 10; small_length = 3*base_width; medium_length = 5*base_width; long_length = 7*base_width; epsilon = 1; module element_base(length, length2, width) { difference() { cube([length, width, width]); rotate([0, 0, 90]) translate([width/2, -length/2-length2/2-epsilon, -epsilon]) cube([length, length2+...
glb/cad_19c51ca8175f.glb
Create a power supply cover consisting of a main U-shaped housing and two side mounting plates. Start with a main rectangular block measuring 117mm x 53.5mm x 200mm. Hollow out the center by removing a block of 114mm x 52mm x 200mm, leaving a wall thickness of 1.5mm on the sides and bottom. On the bottom face of this...
module picap() rotate([90,0,0]){ rotate([-90,270,0]){ translate([0,0,0]){ difference(){ cube([117,53.5,200]); translate([1.5,0,1.5]) cube([114,52,200]); rotate([0,0,0]) translate([38,18,0]) cylinder(h=3, d=4, $fn=40); translate(...
glb/cad_f1cc70e33489.glb
Create a power supply cover consisting of a hollow U-shaped shell. Start with a solid rectangular block measuring 117mm in width, 53.5mm in depth, and 110mm in height. Hollow out the center by removing a smaller rectangular block measuring 114mm by 52mm by 110mm, leaving a wall thickness of 1.5mm on the sides and botto...
module picap() rotate([90,0,0]){ rotate([-90,270,0]){ translate([0,0,0]){ difference(){ y=110; cube([117,53.5,y]); translate([1.5,0,1.5]) cube([114,52,y]); rotate([0,0,0]) translate([38,18,0]) cylinder(h=3, d=4, $fn=40); ...
glb/cad_8720d9cd84ef.glb
Create a Volume Knob by constructing two concentric hollow cylinders. The outer cylinder must have a diameter of 24mm, a height of 10mm, and a wall thickness of 3mm. Inside this, center a second hollow cylinder with an outer diameter of 10.1mm (calculated as 7.1mm plus the 3mm wall thickness) and a height of 6.5mm. T...
module hollowcyl(r, h, t) { difference() { cylinder(h = h, r = r, $fa=0.25); translate([0, 0, -t]) { cylinder(h = h, r = r - t, $fa=0.25); } } } module knob(flat = false) { outerd = 24; innerd = 6.3 + 0.8; height = 10; depth = 5.5; thickness = 3; offset = 1.25; difference(){ u...
glb/cad_cd842b8bb7cb.glb
Create a 3D model of a .357 Magnum cartridge. Start with the base by creating a cylinder for the rim with a diameter of 11.2mm and a height of 1.5mm. On top of the rim, add a cylinder for the extractor groove with a diameter of 0mm (effectively a flat transition in this specific configuration) and a height of 0mm. Ab...
cartridge = "357 Mag"; bulletType = "roundflat"; boatTail = false; part = "cartridge"; $fn = 100; if(part == "cartridge") { makeCartridge(cartridge, bulletType, boatTail, bulletOnly = false); } else if(part == "bullet") { makeCartridge(cartridge, bulletType, boatTail, true); } module makeCartridge(cartridge, ...
glb/cad_807e6674f83c.glb
Create a customizable shelf spacer by starting with a central geometric volume. First, construct a cube with a side length of 27mm and a height of 20mm. Rotate this cube 45 degrees around the Z-axis and intersect it with another non-rotated cube of the same dimensions (27mm x 27mm x 20mm) to create an octagonal prism. ...
size = 27; height = 20; cutsize = 3; cutdepth = 7; translate([0,0,height/2]) difference() { intersection() { rotate([0,0,45]) cube([size,size,height],center=true); cube([size,size,height],center=true); }; for(side = [0 : 90 : 360]) { rotate([0,0,side]) translate([0,size-cutdept...
glb/cad_96b00ab2f74c.glb
Create a Rupee Lamp Shade consisting of a decorative gemstone-shaped bowl and a cylindrical light socket connector. First, construct the rupee bowl. Create a solid gemstone shape with a total length of 190mm and a width of 114mm (an aspect ratio of 0.6). The shape should be a faceted diamond with a tip angle of 100 d...
nozzle_diameter= 0.4; layer_height= 0.2; rupee_length= 190; rupee_edge_pitch= 45; rupee_tip_angle= 100; rupee_aspect_ratio= 0.6; rupee_center_facet_ratio= 0.5; rupee_bowl_wall_count= 2; rupee_bowl_floor_count= 4; rupee_shade_total_height= 140; light_socket_connector_top_diameter= 50; light_socket_connector_face_co...
glb/cad_0b21f47c8fcc.glb
Create a license plate mount for a Honda Grom. The main body is a hull formed between two cylinders and a central mounting tube. Create two cylinders with a diameter of 11.62mm and a height of 11.5mm; position the first at [0, 4, 0] and the second at [0, 74, 0]. Connect these with a horizontal cylinder that has an oute...
$fn=120; mount_d=30; mount_inner_d=22; mount_hole=9; flat_angle=45; buff=4; plate_hole=6; filament=1.405; plate_d=plate_hole+filament*4; plate_h=mount_d/2-mount_hole/2; plate_offset=4; plate_gap=70; pad=0.1; padd=pad*2; sink_d=22; sink_h=(plate_d-plate_hole)/2+pad; lip=4; difference() { hull() { tra...
glb/cad_39a04cf1299e.glb
Create a Honda Grom Fender Eliminator license plate and light mount. Start by constructing a base plate using a hull operation that connects two cylinders, each 11.2mm in diameter and 10mm high, positioned 77mm apart center-to-center. Bridge these cylinders with a horizontal cylinder 17.8mm in diameter and 11.2mm long,...
$fn=90; filament=1.4; bolt=5; bolt_gap=77; bolt_h=10; bolt_wall=bolt+filament*8; nut=9; nut_h=3; light_grip=13.3; light_grip_h=6; light=15.5; light_h=18; wall=filament*2; light_wall=light+wall*2; light_wall_h=light_h+light_grip_h; shade1=light; shade1_wall=shade1+wall*2; shade_h=13; shade2=shade1+shade_h*0.75; shade...
glb/cad_9b7418e8b578.glb
Create a Pipe Hacksawing Guide Clamp consisting of two distinct parts: a guide and a shim. To create the guide, start with a cylinder 22.5mm in radius and 2mm high. On top of this, center a larger cylinder with a 17.9mm radius and a height of 15mm. Add a rectangular block to the side of the upper cylinder, measuring 1...
ERR = 0.1; E=0.001; BIG_ERR = 5; OR=25 / 2 + ERR*4; T = 5; L = 15; BASE_T = 2; BASE_R = 45 / 2; LOCKW = 20; LOCKD = 15; BOLT_R = 4.5 / 2; BOLTH_R = 7.6 / 2; BOLTH_T = 4; NUT_R = 8.5 / 2; NUT_T = 3; GAP_W = 2.5; SHIM_SEP = 5; module sawGuide() { difference() { union() { cylinder(r = BAS...
glb/cad_7c3cd33f8187.glb
Create a cookie cutter of the Saubermacher logo, which consists of a stylized flower and pipe shape. First, define the 2D profile of the logo using a closed path of coordinates. The shape is roughly 214mm wide and 266mm tall before scaling. Scale the entire profile so that the maximum width is 70mm. Construct the cu...
wallThick = 4; baseHeight = 4; cutterMinimum = 0.4; height = 15; flangeWidth = 5; points_array_saubermacher = ([[214,231],[[190,34.79],[185.21,34.73],[180,35.1],[174.81,36.07],[170.04,37.42],[165.56,39.44],[161.04,41.98],[156.62,45.3],[152.36,49.2],[148.73,53.41],[145.81,57.5],[143.62,61.65],[141.78,66],[140.46,70.7...
glb/cad_ce89a91c983a.glb