Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Pool Table Guide consisting of a central hollow cylinder and a spider-style bridge. Start by creating a vertical hollow cylinder with an outer diameter of 15mm, an inner diameter of 10.5mm, and a total height of 20mm. The inner hole should be 15mm deep, leaving a 5mm thick base. At the top of this cylinder,...
include <myLib_RoundedObjects.scad> myFN=200; cylHOuter=20; cylROuter=(15/2); cylHInnerOffset=6; cylHInner=cylHOuter+cylHInnerOffset; cylRInner=(10.5/2); guideWidthSpider=30; guideWidth=60; guideDepth=5; guideHeight=5; spiderLegHeight=5; sphereEndZ=4; sphereEndZcube=25; cylGuideLength=30; cylGuideRadius=4; cylGui...
glb/cad_6d6ca9f9a03f.glb
Create a Latching Broom Holder consisting of two symmetrical hinge arms and a central mounting base. The device is designed to hold a cylindrical handle with a diameter of 22mm. The central mounting base is a block 22mm high. Create two vertical holes through the base for mounting screws with a diameter of 4.5mm; thes...
broom_diameter=22; hinge_height=22; vertical_clearance=0.31; extruded_width=0.5; num_filament_passes=4; hinge_pin_hole_diameter=3; hinge_clearance=1; mount_screw_diameter=4.5; mount_screw_countersunk_depth=3; mount_screw_counterbore_diameter=0; first_layer_height=0.3; apply_first_layer_inset=0; module inset...
glb/cad_7d75aabdd57a.glb
Create a Spirograph gear with a height of 3mm and a pitch diameter of 33mm. The gear should have 22 teeth, each defined by an addendum of 1.5mm and a dedendum of 1.5mm, with a tooth width of 1.5mm. The teeth are arranged uniformly around the perimeter of the gear. On the flat face of the gear, create a series of 9 cir...
gearHeight = 3; pitchDiam = 33; teethNum = 22; addendum = 3/2; dedendum = 3/2; toothWidth = 3/2; nocenterhole = 3; littlecirclenumber = 9; littlecirclediameter = 3; degreedivisor = 400; difference () { gear(); linear_extrude(height = gearHeight*2, center = true) for ( i = [nocenterhole:littlecirclenumber]) {...
glb/cad_5446ad3fc81a.glb
Create a Spirograph tool consisting of a stator frame and a removable rotor gear. First, construct the stator as a square plate measuring 90mm by 90mm with a thickness of 5mm. In the center of this plate, create a circular cutout to house the gear. The inner edge of this cutout must feature 48 internal teeth. These t...
shape = 1; spiroDepth = 5; spiroHeight = 90; spiroWidth = 90; outsideDiam = 90; pitchDiam = 72; teethNum = 48; addendum = 3/2; dedendum = 3/2; toothWidth = 2; involute=0; centerShape=1; shaftDiam=0; gearHeight = 10 + spiroDepth; if (shape == 1) { difference(){ cube([spiroWidth, spiroHeight, spiroDepth], center ...
glb/cad_98cac66ebc80.glb
Create a customizable sewing machine button. Start by constructing the main button body as a cylinder with a radius of 4mm and a total height of 7mm. The top edge of this cylinder must be rounded with a fillet radius of 2mm. To create a pointer marker, add a cone to the side of the button that starts with a base radius...
Support = "Rectangle"; rect_support_x = 4.5; rect_support_y = 1.5; rect_support_z = 5; cyl_support_h = 4; cyl_support_d = 3; button_radius = 4; button_height = 7; button_angle_radius = 2; marker_size = 1; $fn=100; difference(){ union(){ cylinder(h = button_height - button_angle_radius, r = button...
glb/cad_dfe483d8dc65.glb
Create a Ham Radio Multiband Ground Plane Antenna base. Start with a square plate measuring 26.5mm by 26.5mm with a thickness of 3mm. Centered within this plate, create a vertical cylindrical hole with a diameter of 9.4mm that passes completely through the thickness of the plate. Additionally, create four smaller circu...
difference(){ translate ([0,50,-1]) cube ([26.5, 26.5, 3], center=true); #translate ([0,50,-5]) cylinder (h=30, d=9.4, $fn=30); translate ([0,50,-1]) cylinder (h=30, d=12.6, $fn=30); translate ([9,41,-5]) cylinder (h=30, d=3.2, $fn=30); translate ([-9,41,-5]) cylinder (h=30, d=3.2, $fn=30); translate ([9,59,-5]) ...
glb/cad_869efdee7fb2.glb
Create a Ham Radio Multiband Ground Plane Antenna holder consisting of two primary geometric components. First, create a thin square plate measuring 26.5mm by 26.5mm with a thickness of 2mm, centered on the XY plane. Second, position a cylinder directly above the center of the square plate. This cylinder must have a di...
translate ([0,50,-1]) cylinder (h=4, d=15, $fn=30); translate ([0,50,thickness]) cube ([26.5, 26.5, 2], center=true);
glb/cad_57364c08fc79.glb
Create a Ham Radio Multiband Ground Plane Antenna holder. Start by creating a central rounded rectangular block with dimensions 40mm in width, 28mm in depth, and 15mm in height, using a corner radius of 5mm. Position a vertical cylindrical hole with a diameter of 8.5mm through the center of the block, extending 15mm ...
$fs = 0.15; $fn=50; holder_bottom=1; holder_top=0; module roundedcube(size = [1, 1, 1], center = false, radius = 0.5, apply_to = "all") { size = (size[0] == undef) ? [size, size, size] : size; translate_min = radius; translate_xmax = size[0] - radius; translate_ymax = size[1] - radius; translate_zmax = size[2] -...
glb/cad_533294139e59.glb
Create a Parametric Table Leg fixing consisting of a central cylindrical sleeve and a flat rectangular base. Start by creating a central cylinder with an outer diameter of 32.6mm (WidthLeg + 2*ThicknessWall) and a height of 37mm (HeightObject - ThicknessWall). Inside this cylinder, create a concentric hole with a dia...
cylindre = "true"; WidthLeg = 26.6; LengthLeg = 26.6; WidthSupport = 60; LengthSupport = 60; HeightObject = 40; ScrewDiametre= 9; ScrewHeadDiametre= 0; ScrewHeadHeight= 5; NumberOfScrewHeight = -1; NumberOfScrewWidth = 1; NumberOfScrewLength = 1; ResolutionScrew=100; ResolutionHeadS...
glb/cad_1c413d4ea844.glb
Create a Parametric Table Leg fixing consisting of a central cylindrical sleeve and a flat square base. First, create a central cylinder with an outer diameter of 52.5mm (WidthLeg + 2*ThicknessWall) and a height of 37mm (HeightObject - ThicknessWall). Hollow out the center of this cylinder with a hole 46.5mm in diame...
cylindre = "true"; WidthLeg = 46.5; LengthLeg = 46.6; WidthSupport = 80; LengthSupport = 80; HeightObject = 40; ScrewDiametre= 9; ScrewHeadDiametre= 0; ScrewHeadHeight= 5; NumberOfScrewHeight = -1; NumberOfScrewWidth = 1; NumberOfScrewLength = 1; ResolutionScrew=100; ResolutionHeadS...
glb/cad_f7146e44dac8.glb
Create a star-shaped fidget spinner with a central bearing hole and five surrounding bearing holes. The overall thickness of the body is 7mm. Start by creating a central cylindrical hole with a diameter of 7.8mm. Around this center, position five additional cylindrical holes of the same 7.8mm diameter, spaced equally...
BEARINGDIAMETER=22.2; BEARINGHEIGHT=7; BEARINGHOLE=7.8; BEARINGCOUNT=6; BEARINGDISTANCE=6; LOCKHEIGHT=2; LOCKDIAMETER=18; LOCKBEVEL=0; Facets=60; TYPE=2; RENDERFIDGET=1; RENDERLOCKS=1; LOCKS=BEARINGCOUNT*2; LX=BEARINGCOUNT*BEARINGDIAMETER+(BEARINGCOUNT+1)*BEARINGDISTANCE; LY=BEARINGDIAMETER+2*BEARINGDISTANC...
glb/cad_76df8c9ab88e.glb
Create a music stand hinge consisting of a rectangular base and two reinforced cylindrical axles. Start with a central rectangular base measuring 30mm in length, 32mm in width, and 8mm in height. On the top face of this base, create a rectangular cutout measuring 20.2mm by 26.2mm with a depth of 2mm. Drill two holes wi...
r_ejes=12.5; s_ejes=10; g_ejes=11; a_base=8; l_base=30; an_base=32; ax_ejes = 11; a_rebaje=2; l_rebaje=20.2; an_rebaje=26.2; tal_y=7; tal_x=11; ma_base= a_base / 2; mg_ejes= g_ejes / 2; g_re1=6; r_ta_ejes=4.1; r_hexagono=7.5; fnc=48; difference() { cube([l_base,an_base,a_base], center = true); translate(...
glb/cad_e4f5fbc1d09b.glb
Create a high capacity humidifier assembly consisting of several geometric components. First, create two identical rings with an outer diameter of 52mm, an inner diameter of 48mm, and a height of 10mm. Position these rings side-by-side along a central axis. Next, construct a base plate that connects these rings. Thi...
$fn=20; befeuchtsize=48; enableLoecher=1; lochdiff=3; translate([befeuchtsize/2+1,0,0]) befeuchtring(); translate([-befeuchtsize/2-1,0,0]) befeuchtring(); langlochboden(); langloecher(); translate([befeuchtsize-1,0,0]) rotate([0,0,45]) translate([befeuchtsize/2+3,-2,0]) schwimmer(); module schwimmer() { trans...
glb/cad_c0138c7583fb.glb
Create a mold for a "Fun Egg" by starting with a rectangular block measuring 54mm wide, 70mm deep, and 25mm high. Center a void in the shape of an egg within this block. The egg shape is generated by scaling a standard egg geometry by 0.65 and rotating it 90 degrees along the X-axis, positioned so it is centered at X=0...
$fn=50; module egg( steps = 60, height = 100, curveFactor = 1, faces = 45 ) { a = height; b = height * (0.78 * curveFactor); function eggCurve( offset ) = sqrt( a - b - 2 * offset * step + sqrt( 4 * b * offset * step + pow(a - b, 2) ) ) ...
glb/cad_9559b1918dc5.glb
Create a threaded rod with a diameter of 10mm, a thread pitch of 1.5mm, and a total height of 12mm. The geometry should be a continuous spiral forming a screw thread. The outer diameter of the thread peaks is 10mm, and the inner diameter of the thread roots is 8.5mm (calculated as diameter minus pitch). The shape shoul...
module s_thread(diameter, slope, height) { if($fn) {mypolygon(diameter, slope, $fn, height);} else {mypolygon(diameter, slope, 16, height); } } module mypolygon(diameter, slope, polygons, height) { n = polygons; d = diameter; k = slope; m = round(height/slope); echo (height/slope); function ...
glb/cad_2b55cff15d98.glb
Create a Tevo Tarantula stop button consisting of two stacked cylinders aligned along a central vertical axis. Start by creating a wide base cylinder with a radius of 3.75mm and a height of 2.9mm. Directly on top of this base, center and add a second, narrower cylinder with a radius of 2.75mm and a height of 6.4mm. The...
$fn=128; translate([0,0,2.9]) cylinder(h = 6.4, r = 2.75); translate([0,0,0]) cylinder(h = 2.9, r = 3.75);
glb/cad_f1342b84d29c.glb
Create a linear bearing bushing with a total height of 24mm. The main body is a hollow cylinder with an outside diameter of 15mm and an inner diameter of 8mm. The wall thickness of the main shell is 2mm. The structure is defined by two identical cylindrical shells rotated 45 degrees relative to each other to create a ...
Height = 24 ; Outside_Diameter = 15 ; Inner_Diameter = 8 ; Thickness = 2 ; Tolerance = 0.00 ; ClosedDesign = "No" ; SecureRing_Thickness = 0; SecureRing_Height = 2.75; difference () { union () { translate ([0,0,0]) rotate ([0,0,22.5]) LMXUU(); translate ([0,0,0]) rotate ([0,0,67.5]) LMXUU();...
glb/cad_8310aa060695.glb
Create a two-part protective case for an Orange Pi Zero. The main box is a rounded rectangular shell with outer dimensions of 48.6mm width, 49.8mm length, and 18.5mm height. The walls and floor are 0.8mm thick with corner radii of 2.4mm. The floor features four cylindrical support posts, each 3mm diameter and 5.8mm hig...
length = 49; width = 47; height = 18.5; wall = 0.8; gap = 0.2; floor_height = 0.8; post_inset = 3.25; post_diameter = 3.0; post_height = 5; base_height = 3; usb_width = 6.5; usb_height = 14; usb_left_offset = width-usb_width-7; usb_floor_offset = base_height+1.5; eth_width = 16.5; eth_height = 14.5; eth_left_offset...
glb/cad_5c818224798f.glb
Create a filament mixer body by starting with a central block that is the convex hull of three thin plates, each 15mm by 15mm by 1mm. Position one plate horizontally at the base, and two others at the same height but shifted 12.5mm apart along the X-axis and rotated 40 degrees in opposite directions. From this solid,...
difference(){ hull(){ translate([25/2,0,35/2])rotate([0,40,0])cube([15,15,1],center=true); translate([-25/2,0,35/2])rotate([0,-40,0])cube([15,15,1],center=true); translate([0,0,-35/2])cube([15,15,1],center=true); } translate([-25,0,-25])cube([50,50,50]); translate([0,0,-30])cylinder(r=10/2,h=12+8,$fn=24); translate([...
glb/cad_6de58e141f4e.glb
Create a compression style replacement collar spacer. Start by creating a main cylinder with an outer radius of 4.65mm and a height of 15mm. Remove a smaller concentric cylinder from the center with a radius of 2.75mm and a height of 18mm to create a hollow tube. On top of this base, add a conical section that transiti...
difference(){ translate([10,10,0]) cylinder(15,r=9.3/2); translate([10,10,-1]) cylinder(18,r=5.5/2); } difference(){ translate([10,10,14.9]) cylinder(7,r1=9/2, r2=8/2 ); translate([10,10,14.5]) cylinder(10,r=5.5/2); translate([9.7,10,14.5]) cube([.7,5,15]); }
glb/cad_36c2eb9c5bea.glb
Create a Stack On Cabinet Scope Drop Shim. The object consists of a main body with a vertical drop section and a rear support. Start by creating a vertical rectangular block for the drop section that is 8mm thick, 70mm wide, and 100mm high (50mm drop distance plus 50mm extension). Position this block so it is centered...
dropDistance = 50; dropThickness = 8; dropToBack = 40; rearDistance = 26; difference(){ union(){ difference(){ difference(){ union(){ difference(){ hull(){ translate([15,0,0]){ cy...
glb/cad_f890542022ac.glb
Create a pipette stand bracket by starting with a central block that is 12mm wide, 32mm long, and 12mm high. From this main body, remove a vertical cylindrical hole with a diameter of 8.8mm that passes completely through the top and bottom faces. Additionally, remove a horizontal cylindrical hole of the same 8.8mm diam...
cd=8; ww=2; xw=0.4; la=20; sw=4; nbw=7; $fn=31; module cross(){ difference(){ cube([cd+ww*2,(cd+ww*2)*3,cd+ww*2], center=true); cylinder(d=cd+xw*2,h=cd*1.5+xw, center=true); translate([0,(cd+ww*2)*1,0]) rotate([0,90,0]) cylinder(d=cd+xw*2,h=cd*1.5+xw, center=true); tr...
glb/cad_0c6d2fa7bb23.glb
Create a Customizable Game Controller Wall Mount starting with a rectangular base plate measuring 42mm wide, 3mm thick, and 35mm high. Center two 6mm diameter holes through the thickness of this plate, separated by 8mm. Attached to the front of this plate, create two vertical controller arms. Each arm is 5mm thick and...
mount_height=35; mount_width=42; mount_thickness=3; mount_hole_diameter=6; mount_hole_separation=8; controller_arm_height=27; controller_arm_thickness=5; controller_arm_depth=7; controller_arm_one_distance=7; controller_arm_two_distance=34; controller_arm_separation=18.5; controller_arm_brace=true; $fn=200; controller...
glb/cad_3192af4544f4.glb
Create a Rhombic Dodecahedron Magnetic Tile. Start by constructing the main body as a rhombus-based prism with a side length of 40mm and a thickness of 10mm. The rhombus should have an acute angle of approximately 70.53 degrees (acos(1/3)). Modify the prism by adding chamfers to the edges to create the specific dihed...
$fn=50; side = 40; thickness = 10; magnetdepth = 2.5; magnetdiam = 6.5; dihedral = 120; alpha = acos(1/3); tile(); module tile() { difference(){ mainbody(); union(){ chamfers(); magnets(); } } } module mainbody(){ linear_extrude(height = thickness ) { poly...
glb/cad_9da992b29004.glb
Create a file handle by constructing a composite body and removing specific internal volumes. Start with a central vertical axis. The main body is a union of three shapes: a sphere with a 10mm radius at the top, a tapered cylinder in the middle that transitions from a 15mm radius at the bottom to a 10mm radius at the t...
end_radius=10; handle_max_rad=15; handle_top_ht=25; handle_lower_ht=70; module hole_lobe() { translate ([0,0,-0.01]) scale ([0.36,1,1]) cylinder(h=handle_lower_ht-18,r1=5.5,r2=2.5); } module file_handle() { difference() { scale ([1,0.8,1]) union () { translate ([0,0,handle_top_ht+handle_lower_ht]) sphere(end_...
glb/cad_7747648860c3.glb
Create a Multi-Row Marker Holder consisting of a rectangular base with a thickness of 2mm. The base should be large enough to accommodate a grid of 60 holes arranged in 5 rows of 12. Each hole is a hollow cylinder with an outer diameter of 13mm and an inner diameter of 11.5mm, creating a wall thickness of 1.5mm. The cy...
font = "Liberation Sans"; holeCount = 12; rowCount = 5; name = "Name"; markerDiameter = 11.5; holeWallThickness = 1.5; holeHeight = 25; holeGap = .5; angle=15; letter_size = 10; baseHeight = 2; holeDiameter= markerDiameter + holeWallThickness; difference() { holes(); translate([0,0,-holeHeight]) { ...
glb/cad_a0049ba0fdb7.glb
Create a protective electronics case for an Arduino Ramps board consisting of a base and a hinged door. For the base, create a rectangular enclosure with a footprint of 105.5mm by 87.5mm and a wall height of 20mm. Incorporate corner reinforcements and a rounded side profile using a cylinder with a 4.5mm radius runnin...
module body() { cube( [ 105.5 , 87.5 , 1 ] ); cube( [ 105.5 , 2 , 20 ] ); cube( [ 2 , 87.5 , 20 ] ); translate( [ 98 , 1 , 0 ] ) cube( [ 7.5 , 5 , 20 ] ); translate( [ 0.5 , 0.5 , 0 ] ) cube( [ 5 , 6.5 , 20 ] ); translate( [ 1 , 0 , 0 ] ) cube( [ 10 , 87.5 , 6 ] ); translate( [ 99.5 , 0 , 0 ] ) cube( [ 6 , 87.5 , 7 ] ...
glb/cad_1fb11f61ff2e.glb
Create a Prusa i3 MK2 electronics case for an Arduino Ramps board consisting of a base, hinges, and a door. For the base, create a main body 125mm wide, 92mm deep, and 2mm thick. Add side walls 35mm high, with one wall 105.5mm long and 2mm thick, and another 6.5mm wide and 34.5mm high. Incorporate four hexagonal moun...
Ramps_corner_x = -15 + 26; Ramps_corner_y = 14; Ramps_point_1x = Ramps_corner_x + 82.469 + 14; Ramps_point_1y = Ramps_corner_y + 2.5; Ramps_point_2x = Ramps_corner_x + 74.86; Ramps_point_2y = Ramps_corner_y + 50.761; Ramps_point_3x = Ramps_corner_x + 14; Ramps_point_3y = Ramps_corner_y + 2.45; Ramps_point_4x = Ramp...
glb/cad_19dcb170cba3.glb
Create a Prusa i3 MK2 x-end motor mount. Start with a main base block measuring 17mm by 44mm by 53mm, centered at [-15, 31, 26.5]. Attach a smaller endstop base block measuring 17mm by 18.2mm by 4mm, positioned at [-23.5, -28.5, 58]. Carve out a central motor shaft area using a hexagonal prism with a radius of 17mm an...
use <x-end.scad> module x_end_motor_base(){ x_end_base(); translate(v=[-15,31,26.5]) cube(size = [17,44,53], center = true); } module x_end_motor_endstop_base(){ translate([-23.5,-28.5,58]){ difference(){ cube([17,18.2,4]); translate([-1,10,10])rotate([-45,0,0])cube(20,20,20); ...
glb/cad_c423d2d91d64.glb
Create a Prusa i3 MK2 X-end idler. Start with a base block and remove a series of holes and pockets to form the internal geometry. Create two primary transverse holes with a radius of 1.8mm and 3.1mm respectively, positioned at a height of 30.25mm and offset by 3.5mm. Add a hexagonal hole with a radius of 3.2mm and 6 f...
use <x-end.scad> module x_end_idler_holes(){ x_end_holes(); translate([0,3.5,0]){ translate(v=[0,-22,30.25]) rotate(a=[0,-90,0]) cylinder(h = 80, r=1.8, $fn=30); translate(v=[1.5,-22,30.25]) rotate(a=[0,-90,0]) cylinder(h = 10, r=3.1, $fn=30); translate(v=[-21.5,-22,30.25]) rotate(a=[0,-90,0]) rota...
glb/cad_c50e8722afcb.glb
Create a Prusa i3 MK2 x-end idler and motor mount. Start with a main rectangular block measuring 17mm in width, 39mm in depth, and 58mm in height, centered on the X and Y axes. At the bottom, create a nut trap by adding a 25-facet cylinder with a height of 8mm and a radius of 12.5mm, centered at [0, -17, 0]. Within t...
use <bearing.scad> use <polyholes.scad> rod_distance = 45; module x_end_base(){ height = 58; translate(v=[-15,-9,height/2]) cube(size = [17,39,height], center = true); vertical_bearing_base(); translate(v=[0,-17,0]) poly_cylinder(h = 8, r=12.5, $fn=25); translate(v=[-6,-10.6,10]) rotate([0,0,48.2]) cube(size =...
glb/cad_bd0607a9e476.glb
Create a Latch Key with Wall Mount by constructing a composite geometric tool. Start with a central base consisting of a rectangular block 14mm wide, 2.54mm thick, and 7mm high, merged with a cylinder 8.9mm in diameter and 12mm high centered on the same axis. Remove a concentric cylindrical hole 5.25mm in diameter thro...
$fn=180; difference() { union() { linear_extrude(7) square([14, 2.54], center=true); linear_extrude(12) circle(d=8.9, center=true); } linear_extrude(10) circle(d=5.25, center=true); } translate([0,0,12]) linear_extrude(3) circle(d=15.5, center=true); translate([0,0,15]) cylinder(65, d1=15....
glb/cad_f3a4fa75f873.glb
Create a Kohler Latch Key with a wall mount. First, construct the key by starting with a central cylinder that has a base diameter of 15.5mm and tapers linearly over a height of 65mm to a top diameter of 11.8mm. At the base of this tapered cylinder, add a circular disk with a diameter of 15.5mm and a thickness of 3mm. ...
$fn=180; module key() { difference() { union() { linear_extrude(7) square([14, 2.54], center=true); linear_extrude(12) circle(d=8.9, center=true); } linear_extrude(10) circle(d=5.25, center=true); } translate([0,0,12]) linear_extrude(3) circle(d=15.5, center=...
glb/cad_0e79e7a01a3a.glb
Create a MiniBlock for 5/16" all-thread rods by starting with a solid cube that is 31.75mm on all sides. Remove a smaller central cube with a side length of 7.9375mm from the very center of the block to create a hollow core. On each of the three primary axes (X, Y, and Z), create a cylindrical hole with a radius of 3...
use <MCAD/shapes.scad> inch=25.4; mil=inch/1000; block=1.25*inch; blockr=block/2; rod = 5/16*inch; rodr = rod/2; nut = 0.5*inch; nutt = 0.25*inch; module barbell(){ cylinder(h=block+2*mil, r=rodr); translate([0,0,block]) hexagon(0.5*inch, 0.25*inch); } module allthreadblock(){ difference(){ cube([block, bloc...
glb/cad_4497c6809d8b.glb
Create a Filament Guide by constructing a main body that is a hull encompassing two hexagonal prisms. Each prism has a radius of 8mm, a height of 10mm, and a 6-sided facet count. Position the first prism at the origin and the second prism 66mm away along the y-axis. From this solid body, remove a central vertical hol...
difference(){ union(){ hull(){ cylinder(10,8,8,$fn=6); translate([0,0,15])rotate([90,0,0])cylinder(2,8,8,center=true,$fn=6); translate([0,66,0])cylinder(10,8,8,$fn=6); } } union(){ cylinder(10,4.4,4.4); translate([0,66,0])cylinder(10,4.4,4.4); hull(){ translate([0,2,15])rotate([90,0,0])cylin...
glb/cad_c0451990f4ba.glb
Create a clip-on label for storage boxes consisting of a flat rectangular base and a mounting clip. Start by creating a rectangular base plate 100mm wide, 50mm deep, and 1mm thick, with rounded corners having a 10mm radius. Attached to the center of the back edge of this plate, construct a C-shaped clip mechanism. This...
$fn=80; labelX=100; labelY=50; labelZ=1; labelR=10; clipX=75; clipY=25; clipGap=10; clipZ=1; gripX=clipX-(2.5*clipGap); gripY=clipGap/4; gripZ=clipZ*2; union() { linear_extrude(height=labelZ) translate([-labelX/2+labelR,-labelY+labelR]) offset(labelR) square([labelX-2*labelR,labelY-2*labelR]); li...
glb/cad_e15c7e012520.glb
Create a two-part IKEA LEKMAN hook label consisting of a flat label plate and a mounting hook. First, create the label plate as a rectangular slab 100mm wide, 50mm high, and 1mm thick, with rounded corners of 10mm radius. In this plate, place three circular holes with a diameter of 2mm. Position the first hole at x=1...
tol=0.25; hookThickness=2; $fn=80; if(0) { color("white")rotate([90,0,0])lekman(); translate([165,3,205])rotate([90,0,0])label(); translate([175,-6.5,165])rotate([0,-90,0])hook(); } else { label(); translate([-20,5,0])hook(); } module hook() { difference() { linear_extrude(height=2...
glb/cad_1341df26596a.glb
Create a PSU Cover by starting with a main rectangular base measuring 118.5mm in width, 65mm in depth, and 56mm in height. On the top face, center a large rectangular cutout measuring 110.2mm by 65.02mm with a depth of 49.3mm. Within the remaining top border, create a smaller rectangular opening for a power switch me...
pillar_width = 14-0.5; PSU_X = 113.5; PSU_Z = 50.0; left_cutout_height = 22 + 3; left_hole_height = 32.8; holeZ = 11.6 + 2; difference(){ union(){ translate([0,0,-1])cube([PSU_X + 5,50+15 ,56]); translate([31.41 - pillar_width/2 - 1,0,-3.5])cube([pillar_width,50 + 15 ,5]); translate([81.56 - pillar_width/2 - 1,0,-...
glb/cad_9008cc8bdb3c.glb
Create an RC car replacement part by constructing a complex geometric assembly. Start with a primary vertical block that is a hull formed between a 24-facet cylinder with a 4mm radius and 12mm height, and a 3x4x12mm rectangular prism positioned at [-4, 2, 0]. Add a second hull consisting of a 24-facet cylinder with a 3...
$fn=48; anguloenduda=7; difference(){ union(){ hull(){ cylinder(r=4,h=12,$fn=24); translate([-4,2,0])cube([3,4,12]); } translate([-29,0,6-0.7]) hull(){ cylinder(r=3,h=6,$fn=24); translate([-20.2+29,0,5-(6-0.7)])cube([3,6,6]); }...
glb/cad_30ca2b173242.glb
Create an arrow notch by starting with a vertical cylinder that is 30mm tall with a diameter of 5mm. This cylinder should have a low facet count to appear as a prism. Remove a smaller vertical cylinder from the center of the first, with a diameter of 4.5mm and a height of 15mm, centered at the base. Then, create a hori...
difference() { difference() { cylinder(30,5,5); translate([0,5,28]) rotate([90,0,0])cylinder(10,4,4); } cylinder(15,4.5,4.5); }
glb/cad_9913153d976c.glb
Create four identical screw mount posts for a project enclosure, positioned at the coordinates [13.97, 2.54], [66.04, 7.62], [66.04, 35.6], and [6.35, 49.53]. Each post consists of a main cylindrical body with a radius of 2.5mm and a height of 10mm. Drill a concentric vertical hole through the center of each cylinder w...
$fn=50; post1=[13.97, 2.54,0]; post2=[66.04,7.62,0]; post3=[66.04,35.6,0]; post4=[6.35,49.53,0]; offset =[-12,-5,0]; translate( post1 ) screwmount(); translate( post1 + offset ) text(str(1)); translate( post2 ) screwmount(); translate( post2 + offset ) text(str(2)); translate( post3 ) screwmount(); tra...
glb/cad_69a53faa6e07.glb
Create a project box enclosure base with external dimensions of 68.58mm width and 53.54mm length, and a height of 18mm. The outer corners should be rounded with a 1mm radius. Hollow out the center to create a walls-and-floor structure, leaving a 1mm offset from the outer walls and a 10mm high internal ledge. At the fo...
$fn=50; LENGTH=53.54; WIDTH=68.58; RADIUS=1; OFFSET=1; HEIGHT=18; linear_extrude(5){ translate([-60,-60,0]) text( str("Don't print this, it's for tutorial")); } difference() { minkowski(){ cube([WIDTH,LENGTH,HEIGHT], center = true); sphere(RADIUS); } translate([0,0,HEIGHT/2]) cube([WIDTH + RADIUS*2 + ...
glb/cad_bdd6dbd8bec5.glb
Create a DIN300 Air Bottle Cap consisting of a hexagonal head and a threaded base. Start by creating a regular hexagonal prism with a height of 5mm and a diameter of 44mm (based on a 6-sided circle with a radius of 22mm). Centered on the top face of this hexagon, engrave the word "TEXT" using a bold sans-serif font wit...
include <threads.scad> testo = "TEXT"; S = 5.5; translate ([0,0,-13]) english_thread (0.902, 14, 0.5); difference(){ linear_extrude(height = 5, center = true, convexity = 10, twist = 0) translate([0,0]) circle(22,$fn=6); linear_extrude(height =6, convexity = 10, twist = 0) translate([0...
glb/cad_ef6c52745586.glb
Create a square nail polish holder with overall dimensions of 100mm in length, 100mm in width, and 60mm in height. The main body is a hollow box with a wall thickness of 2mm and rounded corners with a 2mm radius. Divide the interior into a 3x3 grid using internal walls that are 2mm thick and 58mm high, starting from ...
$fn = 100; xlength = 100; ywidth = 100; zheight = 60; corner = 2; wall = 2; divisions = 3; fudge = 43; angle = 20; difference() { base(); translate([-xlength/2,-fudge,zheight/3]) rotate([angle,0,0]) cube([xlength*2, ywidth*2, zheight*2]); } module base() { difference() { roundedBox(xlength, ...
glb/cad_7dc8da638a43.glb
Create a metric screw thread assembly consisting of a bolt and a matching nut. First, construct the bolt by creating a screw thread with a major diameter of 5mm, a pitch of 1mm, and a total height of 5mm. Attach a hexagonal head to the base of the bolt by creating a hexagonal prism with a radius of 4mm and a height o...
module screwthread_triangle(P) { difference() { translate([-sqrt(3)/3*P+sqrt(3)/2*P/8,0,0]) rotate([90,0,0]) cylinder(r=sqrt(3)/3*P,h=0.00001,$fn=3,center=true); translate([0,-P/2,-P/2]) cube([P,P,P]); } } module screwthread_onerotation(P,D_maj,step) { H = s...
glb/cad_68dcf14668ca.glb
Create a Pocket Tactics tray consisting of a thin hexagonal base with a raised perimeter cage. Start by creating a hexagonal prism base with a height of 1.5mm. The distance from the center to any vertex of this base should be 16.3mm. On top of this base, construct a perimeter wall to hold hexagonal tiles. The wall is ...
tile_radius = 15; base_height = 1.5; bar_width = 2; bar_length = 3; bar_height = 2; clearance = 0.8; q = 0.02; $fn = 100; module hexagonal_prism() { linear_extrude( height=1 ) for ( a = [ 0 : 60 : 360-1 ]) { rotate([ 0, 0, a ]) polygon([ [ 0, 0 ], [ 0, 1 ], [ -sin(60), cos(60) ], ...
glb/cad_c85f140ae059.glb
Create a portable air conditioner dryer vent adapter. Start by creating a hollow base cylinder with an outer diameter of 54mm and an inner diameter of 50mm, reaching a height of 15mm. On top of this base, add a conical transition section that is 30mm tall; this section should taper from an outer diameter of 54mm at the...
twidth=3.5*25.4; bwidth=(5*25.4)-2; height=50; theight=5; bheight=15; mheight=height-theight-bheight; width=2; lip=5; union() {translate([0,0,bheight+mheight]){ difference() { cylinder(h=theight,r=twidth/2+lip); translate([0,0,-.5]) cylinder(h=theight+1,r=(twidth/2)-width); }} translate([0,0,bheight]){ dif...
glb/cad_384e7d5ae4e1.glb
Create a Micro-centrifuge Tube Holder designed to sit atop a beaker. The central feature is a tube holder consisting of a flat ring with a thickness of 1mm. This ring has an outer diameter of 14mm and a inner circular hole with a diameter of 10mm. Extending from this central ring are three identical support arms space...
tubeDepth = 5; beakerDiameter = 70; tubeNeckDiameter = 10; tubeCapLip = 2; beakerThickness = 4; armHeight = 4; armWidth = 0.5; handThickness = 2.5; tubeHolderThickness = 1; function armAngle() = atan((tubeDepth+handThickness)/(beakerDiameter/2-(tubeNeckDiameter+tubeCapLip)/2-beakerThickness)); function armLeng...
glb/cad_bfa943db9de0.glb
Create a 1S LiPo Battery Organizer consisting of a rectangular base with a series of carved-out slots. The overall structure is composed of repeating units. Each battery unit is a block measuring 16.8mm in width, 16.1mm in length, and 10mm in height. From each unit, remove a central rectangular volume of 8.8mm by 9.7mm...
width=12.8*1; length=5.7*1; add=2.2*1; depth=8*1; hole=4*1; t=2*1; usb="yes"; count=5; usbwidth=4.6*1; usblength=12.2*1; if (usb == "yes") { difference() { cube([width+t*2, length+add*2+t*2, depth+t+1]); translate([t, t, t+1]) cube([usblength, usbwidth, depth+2]); } } for (i=[1:count]) { tra...
glb/cad_7546994c8681.glb
Create a box node consisting of a hollow container and a matching lid. First, construct the main container as a rounded cube with overall dimensions of 10mm x 10mm x 15mm. The walls should have a thickness of 1mm, creating an interior hollow space of 8mm x 8mm x 14mm. Ensure the exterior corners are rounded with a ra...
function node_box_matrix(i=0,j=0,k=0,l=0,m=0,n=0) = translate([0,0,0]); module node_box(i=0,j=0,k=0,l=0,m=0,n=0) { difference() { hull() { translate([-((((10)/2))-(1)),-((((10)/2))-(1)),0]) cylinder(r=1,h=(10),$fn=16); translate([-((((10)/2))-(1)), ((((10)/2))-(1)),0]) cylinder(r=1,h=(10),$fn=16); transl...
glb/cad_93401439800b.glb
Create a Latching Broom Holder consisting of two symmetrical hinge arms and a central mounting base. The total height of the model is 25mm. The central base is a block with a vertical cylindrical cutout of 21mm diameter to accommodate the broom handle. Position two mounting holes on the base, each with a 4mm diameter....
broom_diameter=21; hinge_height=25; wall_offset=28; vertical_clearance=0.39; extruded_width=0.5; num_filament_passes=4; first_layer_height=0.425; hinge_pin_hole_diameter=3; hinge_clearance=1; mount_screw_diameter=4; mount_screw_countersunk_depth=3; mount_screw_counterbore_diameter=8; inset_first_layer=false...
glb/cad_00242fb757f0.glb
Create a Su-25T Cockpit Knob. The main body is a combination of a rounded base and a skewed triangular top. Start by creating a cylindrical base with a diameter of 15mm and a height of 4mm, topped with a hemispherical dome. On top of this base, construct a triangular block with a height of 11.5mm. The triangle should...
part = "all"; knob_base_width = 15; knob_top_height = 11.5; dome_start_height = 4; point_extent = 14; spindle_shaft_diam = 6; spindle_flat_depth = 1; spindle_shaft_height = 7; spindle_shaft_rotation = 0; overhang_angle = 45; point_rad = 0.7; point_lean_distance = 1.5; back_lean_distance = 0.3; back_width = 1...
glb/cad_ef6135e1b9e2.glb
Create a cable holder consisting of a central sphere with a radius of 20mm. Flatten the bottom of the sphere by removing the lower half with a cube of 40mm width, 40mm depth, and 20mm height, leaving a flat base. Drill two parallel cylindrical holes through the center of the sphere to accommodate cables; each hole must...
$size = 20; $hole = $size / 2.8; $screwhole = 2; $printscrewholes = 1; $screwrotation = "fat"; module supportthis() { translate([$size/2, 0, 0]) { cube(center = false, [$size, $size*2, 1]); } difference() { translate([$size, 0, 0]) { cylinder(h = 1, r = $size/2, center = false,...
glb/cad_c5e71ddf0403.glb
Create a card storage caddy with overall exterior dimensions of 75.7mm width, 225mm depth, and 70mm height. The walls should be 1mm thick. The main body is a rectangular container with a large semi-circular cutout of 30.28mm radius centered on the front face to allow easy access to the cards. The interior is divided ...
card_width = 73.7; card_height = 73.7; box_height = 70; wall_thickness = 1; tolerance = 0; stack_heights = [12,12,15,30,30,35,30,20]; stack_space = 0; $fn = 90 * 1; interior_height = box_height - wall_thickness; box_width = card_height + wall_thickness * 2 + tolerance * 2; slant = box_height < card_width ? acos(...
glb/cad_132d05070edd.glb
Create a back-mounted dual spool holder with a total height of 16mm. The main support arm is 60mm long and 16mm high, designed to hold 1kg spools. To prevent the spools from sliding off, slant the arm upwards at a 2% angle. The base of the holder features a mounting lip that is 46mm wide and 5mm thick. Centered withi...
height = 16; raiser = 35; base_thickness = 5; cap_size = 30; length = 60; len = length + 6; epsilon = 0.01; module printrbot_holder() { difference() { union() { intersection() { difference() { union() { translate([len/2, -6, 0]) ...
glb/cad_043af69422b9.glb
Create a dual spool holder for a 3D printer. The main body is a support arm with a total height of 16mm and a length of 60mm to accommodate 1kg spools. The arm is primarily a rectangular block, but the top surface is slanted at a 2% angle to prevent spools from sliding off. The outer edge of the arm is rounded using ...
height = 16; raiser = 35; cap_size = 30; length = 60; len = length + 6; epsilon = 0.01; module printrbot_holder() { difference() { union() { intersection() { difference() { union() { translate([len/2, -6, 0]) cube([len, ...
glb/cad_2a5deefaac6f.glb
Create an Astrolux S1 16340 Battery Adapter by constructing a hollow cylinder with an outer radius of 9.3mm and an inner radius of 8.5mm, with a total height of 37mm, centered on the origin. To create the ventilation holes, remove a series of 4mm radius cylinders from the main body. First, place two perpendicular cylin...
$fn=36; module 16340Adapter() { difference() { translate([0, 0, 0]) cylinder(r = 9.3, h = 37, center = true); translate([0, 0, 0]) cylinder(r = 8.5, h = 37, center = true); for (i=[-12:24:12]) { translate([0, 0, i]) rotate([0,90,0]) cylinder(r = 4, h = 40, center = true); tr...
glb/cad_248a0f86085e.glb
Create a Harddisk Board Mounting Bracket consisting of a flat rectangular base and two identical upright mounting tabs at each end. The base is a rectangular slab 10mm wide, 132mm long, and 2mm thick. At each end of the base, construct a mounting tab. Each tab begins with a 10mm wide by 10mm high vertical section. Th...
module vertical() { difference() { union() { translate([0,12,0]) cube([10,3,10]); translate([0,7,7]) fillet(10,10); translate([10/2,15,10]) rotate([90,0,0]) cylinder(3,d=10,$fn=100); } translate([(10/2),16,10]) rotate([90,0,0]) cylinder(10,d=3.5,$fn=100); translate([(10/2),13.5,10]) ...
glb/cad_d567b945bc18.glb
Create a T-Slot rail cover with a total length of 100mm. The shape is a mirrored profile extruded along this length. The cross-section is defined by a base that is 7.05mm wide and 0.75mm thick. From the outer edges of this base, extend two sidewalls upwards to a total height of 4.6mm. Each sidewall has a thickness of 0...
length = 100; base_width = 7.05; base_thickness = 0.75; sidewall_thickness = 0.8; sidewall_offset = 0.5; part_height = 4.6; un_overhang = 0.25; rotate([90, 0, 90]){ union(){ translate([-(base_width), 0, 0]){ linear_extrude(length) half_extrusion(); }; linear_extrude(length) mi...
glb/cad_75ce10e80d96.glb
Create a RobotDigg end effector strain relief. Start with a central mounting base that is a cylinder with a diameter of 38mm and a height of 5mm, centered on the Z-axis. Remove a central hole with a diameter of 20mm and a height of 6mm from this base. Add six mounting holes with a diameter of 3.5mm and a height of 10mm...
width = 5; heigth = 5; finish = 36; cut_lgth = 20; bolt_d = 3.5; clamp=0; module wire_mount() { difference() { union() { cylinder(d=38, h=heigth,center=true,$fn=finish); rotate([0,0,-59.886]) translate([-16,0,0]) cube([10,12,heigth] ,center=true); } rotate([0,0,12-60]) translate([0,-1...
glb/cad_f4274204298b.glb
Create a parametric laser adaptor by constructing a series of concentric revolved shapes. Start with a base profile that creates a stepped cylindrical body. The bottom section is a cylinder with an inner radius of 4mm and an outer radius of 6mm, extending 12mm in height. Above this, add a middle transition section that...
adapt1 = 6; h1 = 12; ridgeh = 3; h2 = 5; h3 = 10; tight = 1.2; ridge = 1.2; wall = 2; adapt2 = 9; screw = 2 + 0.25; innerSize = adapt1-wall; difference() { rotate_extrude(convexity = 10, $fn = 100) { rotate([0, 0, 90]) polygon(points = [ [0, innerSize], [h1, innerSize], [h1, innerSize+wall + ridge], [h1 ...
glb/cad_9f7b3b41bf7a.glb
Create a glass holder for a 19-inch wall rack by starting with a solid cube measuring 35mm x 35mm x 10mm. Carve a rectangular slot into the side of the cube to hold the glass; this cutout should be 16mm wide, 37mm long, and 5mm deep, positioned 20mm from one side and 6mm from the bottom. Centered at X=14mm and Y=17.5mm...
$fs=0.5; $fa=0.5; difference() { cube([35, 35, 10]); translate([20, -1, 6]) #cube([16,37,5]); translate([14, 17.5, 8]) #cylinder(h=3, r=5); translate([14, 17.5, -2]) #cylinder(h=14, r=3); translate([14, 17.5, -1]) #cylinder(h=5, r=9); }
glb/cad_fc23c8045ccc.glb
Create a glass holder for a 19-inch wall rack. Start with a main body created by combining a 33mm x 33mm x 9mm cube with a 1mm radius fillet on all edges. From this body, remove a rectangular slot measuring 16mm wide, 37mm long, and 5mm deep, centered along the Y-axis and offset 2mm from the front edge, to hold the gla...
$fn=50; difference() { minkowski() { cube([33, 33, 9]); cylinder(r=1,h=1); } translate([19, -2, 6]) #cube([16,37,5]); translate([13, 16.5, 8]) #cylinder(h=3, r=5); translate([13, 16.5, -2]) #cylinder(h=14, r=3); translate([13, 16.5, -1]) #cylinder(h=5, r=9); }
glb/cad_2e1b71cc5368.glb
Create a glass holder for a 19-inch wall rack. Start with a main rectangular block with rounded edges, measuring 35mm in width and depth, and 11mm in height. Carve a rectangular slot for the glass pane into the top of the block; this slot should be 16mm wide, 37mm deep, and 3mm high, positioned 19mm from the side edge ...
$fn=50; $basis_x = 33; $basis_y = 33; $glas_z = 3; $basis_z1 = 6; $basis_z2 = $basis_z1 + $glas_z + 1; difference() { minkowski() { cube([$basis_x, $basis_y, $basis_z2]); cylinder(r = 1, h = 1); } translate([19, -2, $basis_z2 - $glas_z]) #cube([16, 37, $glas_z + 2]); translate(...
glb/cad_279576c58e63.glb
Create a pulley for an electric hand crank generator. The pulley should have a base diameter of 20mm and a base height of 1mm. Centered on the base, create a cylindrical shaft with a height of 12mm and an outside diameter of 11.88mm. Around the perimeter of this cylinder, add 74 teeth using an XL profile, where each ...
teeth = 74; profile = 3; motor_shaft = 5; m3_dia = 3.2; m3_nut_hex = 1; m3_nut_flats = 5.7; m3_nut_depth = 2.7; retainer = 1; retainer_ht = 1.5; idler = 1; idler_ht = 1.5; pulley_t_ht = 12; pulley_b_ht = 1; pulley_b_dia = 20; no_of_nuts = 1; nut_angle = 90; nut_shaft_distance = 1.2; additional_tooth_width = 0.2; a...
glb/cad_d1388d491553.glb
Create a pulley for an electric hand crank generator. The pulley consists of a central cylindrical body with a toothed outer surface and a flat circular base and top flange. The main body has a diameter of 22mm and a height of 8mm. The toothed section, which is 12mm high, features 12 teeth based on an XL profile. The ...
teeth = 12; profile = 3; motor_shaft = 4.9; m3_dia = 4.2; m3_nut_hex = 1; m3_nut_flats = 6.7; m3_nut_depth = 3.1; retainer = 1; retainer_ht = 1.5; idler = 1; idler_ht = 1.5; pulley_t_ht = 12; pulley_b_ht = 8; pulley_b_dia = 22; no_of_nuts = 1; nut_angle = 90; nut_shaft_distance = 1.2; additional_tooth_width = 0.2; ...
glb/cad_b558c26b7739.glb
Create an electric hand crank generator enclosure consisting of a main box and a matching cover. Construct the main enclosure as a rectangular box with internal dimensions of 50mm length, 30mm width, and 70mm depth. The walls should have a thickness of 2mm. The four vertical corners of the box must be rounded with a ...
enclosure_inner_length = 50; enclosure_inner_width = 30; enclosure_inner_depth = 70; enclosure_thickness = 2; cover_thickness = 3; part = "enclosure"; print_part(); translate(0,0,0) cylinder(10,5,5); module print_part() { if (part == "enclosure") { box2(enclosure_inner_length,enclosure_inner_width,enclosure_in...
glb/cad_7fe4421737e9.glb
Create a fan shroud for a Mendel90 printer. Start with a rectangular base plate measuring 39mm wide, 9mm deep, and 3mm thick. Place two circular holes with a diameter of 3mm and a depth of 2mm at the center of each end of the base, specifically at coordinates (3, 2, 0) and (36, 2, 0). Build two vertical walls extendi...
module aa() { difference() { translate([0,-1,0]) cube([39,9,3]); { translate([3,2,0]) cylinder(3,2,2); translate([36,2,0]) cylinder(3,2,2); } } translate([0,6,3]) cube([39,2,14]); translate([0,6,0]) cube([2,20,15]); translate([37,6,0]) cube([2,20,15]); difference() { hull() { translate([0,6,15]) cube([2,20,23]); transl...
glb/cad_1a98921fda5b.glb
Create an Ornament of Ten Tetrahedra by constructing a compound of ten identical tetrahedra. Arrange them so that their vertices coincide with the vertices of a regular dodecahedron. Each tetrahedron should be scaled by a factor of 28 relative to a unit tetrahedron centered at the origin. Rotate the entire compound by ...
difference() { union() { rotate([30,0,0]) union() { rotate(a=288, v=[1,1.61803,0 ]) tt(); rotate(a=216, v=[1,1.61803,0 ]) tt(); rotate(a=144, v=[1,1.61803,0 ]) tt(); rotate(a=72, v=[1,1.61803,0 ]) tt(); tt(); rotate(a=288, v=[1,1.61803,0 ]) tt2(); rotate(a=216, v=[1,1.618...
glb/cad_2e55c2277bbf.glb
Create a CoderDojo coin with a total diameter of 40mm and a height of 4mm. Start by creating a solid base cylinder 40mm in diameter and 2mm high. On top of this base, construct a second 2mm high layer that forms a yin-yang style swirl. This upper layer is created by taking a 40mm cylinder and removing two smaller cir...
width = 40; height = 4; border = 1; font = "Roboto Mono:style=Bold"; shim = 1/10; tolerance = 5/1000; union() { color("white") cylinder(d=width, h=height/2, $fn=60); color("dimgray") translate([0, 0, height/2-tolerance]) difference() { cylinder(d=width, h=height/2+tolerance, $fn=60); union() { ...
glb/cad_919bd5bd04ff.glb
Create a Dual Blower Fan to 40mm Adapter by starting with a square base plate measuring 40mm by 40mm with a thickness of 2.2mm. At each of the four corners of the plate, create a circular hole with a diameter of 3.4mm that passes completely through the thickness of the plate. In the center of the plate, remove a re...
$fn = 50; outside = 40; screw_dia = 3.4; plate_thickness = 2.2; edge_dist = 2.6+(screw_dia/2); fan_widths = 30.4; fan_length = 19.6; nub_height = 1.1; nub_width = 2.5; x_offset = (outside-fan_length)/2; y_offset = (outside-fan_widths)/2; center_offset = 6; nub_small_y = (fan_widths/2)-(center_offset+nub_width); nub_la...
glb/cad_f62fc09df667.glb
Create a reinforced spool mount consisting of a central hexagonal pole and three supporting brackets. The central pole is a hexagonal prism with a radius of 15mm and a total length of 205mm. At the base of the pole, create a mounting plate 7mm thick and 45mm wide, centered on the pole, featuring two 6mm diameter hole...
spool_radius=15; spool_length=130; spool_start_x = 40; spool_width = 8; spool_height = 25; hole_size = 3; base_thickness = 7; base_length=15; angle_width=7; support_width = spool_radius * 2 * sin(60); module pole() { rotate([30,0,0]) rotate([0,90,0]) cylinder(r=spool_radius,h=spool_start_x + spool_length + spool_w...
glb/cad_8963b40ad6ae.glb
Create a Nexus 5 lanyard harness consisting of a central rectangular spar and two symmetrical corner cradles. The central spar is a filleted cuboid measuring 140mm in length, 15mm in width, and 19mm in height. Positioned at the ends of this spar are two corner holder assemblies. Each holder is formed by the intersect...
use <plib/filleted_cuboid.scad> inner_x = 140 ; inner_y = 71 ; do_label = 0 ; label = "mytext" ; label_offset = 37 ; label_f_size = 12 ; module n5_part( inner_len, width, overhang ) { translate( [ 0, -4, 0 ] ) difference() { intersection() { filleted_cuboid( 2, inner_len+2, width+10, 11 ) ; translate( [ ...
glb/cad_3793e3196719.glb
Create a simple harness for a Nexus 5 phone. Start by creating a rectangular base plate with rounded corners and a thickness of 3mm. The base should measure 65mm in length and 25mm in width. At the center of the top surface, create a raised rectangular loop to hold a lanyard. This loop should be 25mm long, 10mm wide,...
module filleted_cuboid( fillet_r, x_b, y_b, z, x_t_in=0, y_t_in=0, fn=100 ) { x_t = (x_t_in==0) ? x_b : x_t_in ; y_t = (y_t_in==0) ? y_b : y_t_in ; x_b_o = (x_b < x_t) ? (x_t-x_b)/2 : 0 ; y_b_o = (y_b < y_t) ? (y_t-y_b)/2 : 0 ; x_t_o = (x_t < x_b) ? (x_b-x_t)/2 : 0 ; y_t_o = (y_t < y_b) ? (y_b-y_t)/2 : 0 ; x_adj...
glb/cad_18dd766fe131.glb
Create a ring of spheres called an IF statement in graphscad. Position a sphere with a radius of 1mm at a distance of 8mm from the center along the X-axis. Duplicate this sphere 18 times, rotating each instance around the Z-axis in increments of 20 degrees to form a complete circular array.
function node_if_matrix(i=0,j=0,k=0,l=0,m=0,n=0) = node_cube_matrix(i=i,j=j,k=k,l=l,m=m,n=n); module node_if(i=0,j=0,k=0,l=0,m=0,n=0) { if(i%2==1) { node_cube(i,j,k,l,m,n); } else { node_sphere(i,j,k,l,m,n); } } function node_cube_matrix(i=0,j=0,k=0,l=0,m=0,n=0) = translate([0,0,0]); module node_cube(i=0,j=0...
glb/cad_a09fafe94e1d.glb
Create a square hole box for nail polish with overall dimensions of 100mm in length, 100mm in width, and 50mm in height. Start by constructing a hollow rectangular container with a wall thickness of 2mm and rounded exterior corners with a 3mm radius. The interior should also have rounded corners with a 1.5mm radius. ...
$fn = 100; xlength = 100; ywidth = 100; zheight = 50; corner = 3; wall = 2; divisions = 3; bottom = 15; difference() { base(); translate([xlength*1.1,-(ywidth/divisions),zheight]) rotate([270,0,90]) linear_extrude(height=xlength*1.2) polygon(points=[[0,-wall],[0,zheight-bot...
glb/cad_02c13adf4868.glb
Create an Easy Photo Rig consisting of two identical brackets. Each bracket is composed of two main parts: a phone holder and a ruler holder. For the phone holder, create a rectangular block with rounded corners of 3mm radius. The outer dimensions should be 12mm deep by 78mm wide, with a total height of 24mm. Carve a...
$fn=100; phone_depth = 12; phone_width = 78; ruler_width = 52; ruler_thickness = 3; bracket_width = 12; corner_radius =3; tilt_angle = 0; module ruler_holder() { rotate([0,0,tilt_angle]) translate([-(phone_depth/2+corner_radius)-(ruler_thickness/2),phone_width/2,0]) difference() { hull() { translat...
glb/cad_e0097019eeb4.glb
Create two heart pendant halves. For each half, start with a base shape formed by the intersection of a cube measuring 23mm x 23mm x 3mm and a cylinder with a radius of 11.5mm and a height of 3mm, centered at the top edge of the cube to create a rounded top. From this base, remove a cylindrical hole with a radius of 2....
x=23; y=x; z=3; print=1; module halfheart(){ cube([x,y,z],true); translate([0,y/2,0])cylinder(h=z,r=x/2,center=true,$fn=60); for(i=[0:3]){ rotate([0,0,90*i])translate([x/5,x/5,z/1.3])color([1,0,0])cylinder(h=z,r=x/7,center=true,$fn=30); } } module hpend(){ difference(){ halfheart(); union(){ translate([0,y*0.75,0]...
glb/cad_6598b3149e4e.glb
Create a NEMA17 MK7/MK8 quick mount direct drive extruder assembly. Start by constructing the base, which is a rounded rectangular block with a height of 17mm and a length of 52mm. Incorporate a motor wall with a thickness of 4mm and side walls of 5mm. On the top of the base, add a filament guide consisting of a cyli...
part="assembly"; filament=3.0; pulley=1; version=0; support=1; brim=0; support_T=0.25; teardrop_angle=45; support_cylinder_style="teardrop"; bearing_D=13; bearing_L=5; extruder_type="j-head"; motor_W=42.4; motor_L=40; motor_shaft_D=5; motor_shaft_L=23; motor_flange_D=22; motor_flange_L=2; motor_connector_dim=[...
glb/cad_4202e7de011e.glb
Create a modular stage axis consisting of a U-shaped base and a sliding stage. The base is a rectangular channel with an outer length of 80mm, width of 35mm, and height of 20mm, constructed from walls 2.5mm thick. Inside this channel, place a sliding stage with a platform length of 40mm and a width of 35mm. The stage...
length = 80; width = 35; height = 20; stagelength = 40; thickness = 2.5; r_hexagon = 4.5; r_screw_slide = 2.3; r_sideholes_slide = 4; hole_height = 13; sidehole_offset = 10; r_stageholes = 4.2; stagehole_offset = 7.5; sliding_gap = 0.3; gap_height = 5; gap_width = 9; knoblength = 10; knobdepth = 7; module base(...
glb/cad_ecf8cacd71cc.glb
Create a MakerBeam holder for beams as a flat, square plate measuring 40mm by 40mm with a thickness of 4mm. Round all four exterior corners with a radius of 5mm. In the top face of the plate, create a 4x4 grid of circular holes, each with a radius of 1.5mm. The holes should be spaced evenly, starting at a 5mm offset fr...
include <roundCornersCube.scad> include <openscadfont.scad> module prvi() { extXdim = 40; extYdim = 40; extZdim = 4; res = 50; faktor = 1.62; ldepth = 3; lbig = 4; difference() { rCube(extXdim, extYdim, extZdim, 5); for (x = [1:4]) { for (y = [1:4]) { translate([5...
glb/cad_11d0ae34b0b8.glb
Create a toothbrush holder consisting of a rounded rectangular base with two upright supports. Start with a base plate 50mm wide, 16mm deep, and 2mm thick, applying a 2mm fillet or rounding to all edges. On the left side, position a vertical support block 2mm wide and 10mm deep, extending 15mm upward from the base. On ...
$fn = 50; difference(){ union() { minkowski() { cube([ 50, 16, 2 ]); sphere( 2 ); } translate([2,3,1]) minkowski() { cube([ 2, 10, 15]); sphere( 2 ); } translate([46,2,1]) minkowski() { cube([ 2, ...
glb/cad_6719d82feecf.glb
Create a toothbrush holder consisting of a rectangular base with two vertical support posts. Start with a base plate measuring 50mm in length, 16mm in width, and 3mm in height, ensuring all edges and corners are rounded with a 2mm radius. On the left side of the base, position a vertical rectangular post with a 3mm by ...
$fn = 50; difference(){ union() { minkowski() { cube([ 50, 16, 3 ]); sphere( 2 ); } translate([2,3,1]) minkowski() { cube([ 3, 10, 30]); sphere( 2 ); } translate([45,2,1]) minkowski() { cube([ 3, ...
glb/cad_7650ecfff539.glb
Create a spool wall mount hook consisting of two vertical cylindrical towers connected by a horizontal base. The first tower is a hollow tube with an outer diameter of 22mm and an inner hole of 14mm, extending to a total height of 100mm. The second tower is a hollow tube with an outer diameter of 18mm and an inner ho...
rod_tube_diameter = 28; spool_tube_diameter = 30; spool_height = 80; length = 160; pin = "Yes"; thickness = 3; height = spool_height+20; tube = rod_tube_diameter; spooltube = spool_tube_diameter; difference(){ union(){ hull(){ cylinder(r = thickness+(tube/2),h = 10); translate([len...
glb/cad_73eb91676141.glb
Create a Tiny Clean / Dirty Sign for Dishwasher consisting of three interlocking parts: a slider, a backplate, and an outer cover. First, create the slider as a rectangular block 10mm wide, 9.5mm long, and 2mm thick. On its top face, center a recessed letter "C" with a font size of 8mm. Add a small pull handle to the...
s=10; t=2; d=0.25; good="C"; bad="D"; ff="Liberation Sans:style=Bold"; fs=8; color("green") { difference() { translate([-(s/2),-s/2+d]) cube(size=[s,s-2*d,t-2*d],center=false); translate([0,0,t/2-2*d]) linear_extrude(height=t/2) text(good, font=ff, size=fs, valign="center", halign="center"); ...
glb/cad_f2b169b3da51.glb
Create a KW Key model consisting of a flat blade and a rounded handle. The blade is a rectangular prism with a length of 29.85mm, a width of 8.56mm, and a thickness of 2.13mm. The handle is a rounded rectangular shape with a total length of 17.78mm and width of 17.78mm, featuring a circular hole with a radius of 9.53mm...
function mm(i) = i*25.4; module rounded(size, r) { union() { translate([r, 0, 0]) cube([size[0]-2*r, size[1], size[2]]); translate([0, r, 0]) cube([size[0], size[1]-2*r, size[2]]); translate([r, r, 0]) cylinder(h=size[2], r=r); translate([size[0]-r, r, 0]) cylinder(h=size[2], r=r); ...
glb/cad_e585e133d62a.glb
Create an Electronics Project Box consisting of a main enclosure and a matching lid. For the main enclosure, create a rectangular block with dimensions 30mm width, 30mm length, and 10mm height. Apply a corner radius of 7mm to the vertical edges. Hollow out the center of the block to create a shell with a wall thickne...
external_width = 30; external_length = 30; external_height = 10; shell_thickness = 1.2; radius = 7; cutout_circle = "yes"; height_without_lid = external_height-shell_thickness; module cyl() { cylinder(height_without_lid, radius, radius, center = false, $fn=99); }; module box() { hull() { transla...
glb/cad_bd6218fccb75.glb
Create a customizable panel pry tool with a total length of 200mm, a width of 20mm, and a thickness of 6mm. The main body is formed by the intersection of a rectangular block and a four-sided pyramid that tapers from the handle end down to a sharp point at the tip. The rectangular section of the body measures 20mm wide...
handle_length = 200; handle_width = 20; handle_thickness = 6; rotate( [0,0,90] ) { difference() { intersection() { translate( [0,0,-handle_thickness] ) rotate( [90,0,0] ) rotate( [0,0,45] ) cylinder( h=handle_length+handle_width, r2=handle_width+handle_thickness, r1=0, $fn=4, center=true ); base_sh...
glb/cad_659b44b86891.glb
Create a nail polish holder by constructing a solid base with a height of 25mm. The outer shape is an oval formed by extruding a circle with a radius of 23mm, then scaling that extrusion by a factor of 2 along one horizontal axis to create an elliptical footprint. Centered within this base, carve out a square hole with...
$fn = 200; holesize = 26; baseheight = 25; wall = 3; rotate([0,180,0]) { difference() { linear_extrude(height=baseheight, center=true, scale=[1,2]) circle(r=holesize-wall); translate([0,0,-wall]) cube(size=holesize, center=true); } }
glb/cad_ddd1d87ed338.glb
Create an un-knock-over-able nail polish holder by constructing a solid base with a central hole. Start with a base shape created by extruding a circle with a radius of 23mm (calculated as the 26mm hole size minus the 3mm wall) vertically to a height of 25mm, but apply a non-uniform scale of 1 to 2 on the X and Y axes ...
$fn = 200; holesize = 26; baseheight = 25; wall = 3; rotate([0,180,0]) { difference() { linear_extrude(height=baseheight, center=true, scale=[1,2]) circle(r=holesize-wall); translate([0,0,-wall]) cylinder(d=holesize, h=baseheight+wall, center=true); } }
glb/cad_19c8ae38ac08.glb
Create a nail polish holder by constructing a truncated pyramid with a square base. The base should be a square with a side length of 26mm, tapering upward to a top square with a side length of 13mm at a total height of 20mm. Hollow out the center of this shape to create a square hole that matches these dimensions, ens...
holesize = 26; baseheight = 20; translate([holesize*3,0,0]) rotate([0,180,0]) linear_extrude(height=baseheight, center=true, scale=[2,1]) circle(d=holesize,$fn=200); cylinder(h=baseheight,r1=holesize,r2=holesize/2,$fn=4,center=true);
glb/cad_f0edfb6c48cd.glb
Create an un-knock-over-able nail polish holder by constructing a hollowed-out oval base. Start with a solid oval prism that has a height of 30mm and is scaled to be 1.5 times the width of the internal cavity. The outer footprint should be an oval with a width of 16.5mm and a length of 26.4mm. Centered within this shap...
$fn = 200; holesize = 11; baseheight = 30; wall = 3; rotate([0,180,0]) { difference() { linear_extrude(height=baseheight, center=true, scale=1.5) oval2(r=1.5*holesize); translate([0,0,-wall]) linear_extrude(height=baseheight, center=true) oval1(r=holesize); } } module oval1(r) { scale(...
glb/cad_d0cebc002cb0.glb
Create a Samsung Galaxy Centura Phone Horizontal Holder designed to hold a device perpendicular to a surface. The main structure consists of two symmetrical side supports separated by a central gap of 12mm to accommodate the phone's thickness. Each side support has a total length of 116.6mm and a width of 61.7mm. On t...
include <../Modules.scad> tolerance = 0.33; thickness = 12.0; width = 61.70; length = 116.60; microUsbWidth = 7.40; microUsbThickness = 2.30; cameraLength = 14.0; cameraLengthOffset = 16.70; trace = 2.8; microUsbTop = trace + width / 2 + microUsbWidth / 2; module leftSideLowerArc() { translate([-length/2 - t...
glb/cad_dffac4a1e880.glb
Create a Spectra line motor reel by starting with a main cylindrical body that is 20mm tall with a radius of 10mm. Add a thin base disk at the bottom with a height of 1.5mm and a radius of 11mm, and a matching thin disk at the top with a height of 1.5mm that tapers from a radius of 10mm at the bottom to 11mm at the top...
$fn=300; module body() { cylinder(r=10,h=20); cylinder(r=11,r2=10,h=1.5); translate([0,0,18.5]) cylinder(r=10,r2=11,h=1.5); } module holes() { translate([0,0,-1]) cylinder(r=5.85/2,h=22,$fn=30); translate([7,0,-1]) cylinder(r=0.6,h=22); translate([7,0,-1]) rotate([0,45,0]) cylinder(r=0.6,h=21); translate([15+7,0,6]) r...
glb/cad_aa24a48fc182.glb
Create a Hexacopter Frame Center consisting of a tiered cylindrical hub with six radiating arm mounts. Start by creating a primary base cylinder with a diameter of 130mm and a height of 10mm. Centered within this base, remove a concentric cylindrical core with a diameter of 110mm and a height of 14mm to create a ring. ...
armsize = 12.9; armdihedral = 8; $fn = 240; translate([0,0,26])rotate([0,180,0]){ difference(){ union(){ for (i = [1 : 6]){ rotate([0,0,i * 60]) translate([-5-armsize/2,30,17])cube([armsize+10,30.8,9]); } translate([0,0,0]){ difference(){ translate([0,0,10+2+2+2])cylinder(d=130, h=10+0); translate([0,0,-1+12+2+2]...
glb/cad_3b21d86de1a8.glb
Create a Hexacopter Frame Center consisting of a main circular hub with integrated arm mounts. Start by creating a large cylinder 130mm in diameter and 14mm high. Hollow out the center of this cylinder by removing a smaller concentric cylinder 110mm in diameter and 16mm high, leaving a base thickness of 4mm. From the c...
armsize = 12.9; armdihedral = 8; $fn = 240; difference(){ union(){ translate([0,0,0]){ difference(){ cylinder(d=130, h=10+4); translate([0,0,-1])cylinder(d=110, h=12+4); } difference(){ cylinder(d=70, h=10); translate([0,0,-1])cylinder(d=50, h=12); } } for (i = [1 : 6]){ rotate([0,0,i * 60]) translate([-5-armsize/2...
glb/cad_4e7cbaffb89e.glb
Create a Fibonacci sphere composed of 315 individual cone-like elements. Each element is a cylinder with a base radius of 0mm, a top radius of 9mm, and a height of 4.5mm. Position the base of every cylinder at a distance of 20mm from the center of the model. Arrange the cylinders using a Fibonacci spiral pattern for i...
module fibonacisphere(ballsize=20,spheresize=9,twistfactor=360) { function node_for_matrix(i=0,j=0,k=0,l=0,m=0,n=0) = node_rotate_matrix(i=i,j=j,k=k,l=l,m=m,n=n); module node_for(i=0,j=0,k=0,l=0,m=0,n=0) { for(i=[-150:1:164]) { node_rotate(i,j,k,l,m,n); } } function node_rotate_matrix(i=0,j=0,k=0,l=0,m=0,...
glb/cad_953dbb4ebc71.glb
Create a BOT Spinner fidget toy with a central bearing and multiple weighted nodes. Start by creating a central cylindrical hole with a diameter of 22.1mm and a height of 7mm to accommodate a center bearing. Around this center, arrange 5 nodes equally spaced at a radius of 29mm from the center. Each node should be a ...
adj = .05*1; Display_Mode = 0; Part = "Spinner"; res = (Display_Mode == 2) ? 50 : 20; $fa = (Display_Mode == 2) ? 4 : 8; $fs = (Display_Mode == 2) ? .75 : 3; Height = 7; Center_Bearing_Outer_Diameter = 22.1; Center_Bearing_Inner_Bore_Diameter = 8; Outer_Hole_Type = 2; Outer_Hole_Diameter = 12.9; Node_Count =...
glb/cad_6d3f5c987754.glb
Create a BOT Spinner fidget toy with a height of 7mm. Start by creating a central cylindrical hole with a diameter of 22mm to accommodate a center bearing. Around this center, arrange 6 equidistant nodes positioned at a radius of 29mm from the center. Each node should be a rounded pod containing a hole for a weight. C...
adj = .05*1; Display_Mode = 1; Part = "Spinner"; res = (Display_Mode == 2) ? 50 : 20; $fa = (Display_Mode == 2) ? 4 : 8; $fs = (Display_Mode == 2) ? .75 : 3; Height = 7; Center_Bearing_Outer_Diameter = 22; Center_Bearing_Inner_Bore_Diameter = 8; Outer_Hole_Type = 2; Outer_Hole_Diameter = 12.7; Node_Count = 6...
glb/cad_db1e8b2d9de8.glb
Create a Minecraft-style character container by starting with a rounded cube that has an outer dimension of 100mm on all sides. Hollow out the center of the cube to create a cup, leaving a wall thickness of 10mm on all sides and leaving the top face open. On the front exterior face of the cube, add several raised rec...
FLU=8; D=10; $fn=30; Dims=FLU*FLU; wall=5 *2; Eyes=FLU*2; Nose=FLU*2; Mouth=FLU*2 ; Size= 100 ; Scale= Size / 64; scale([Scale,Scale,Scale])Minkowski_Cube_Cup (); module The_Face() { color ("Black") { translate([ FLU*2,-Dims/2+.1 ,FLU*5]) Minkowski_Cube(Eyes,3,Eyes) ; translate([ -FLU*2,-Dims/2+.1 ,FLU*5]...
glb/cad_502c0b627880.glb