Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a "Wheel of Prizes" consisting of a circular disc divided into six equal 60-degree wedges. The main body is a cylinder with a diameter of 200mm and a height of 2mm. For each of the six wedges, add a curved outer rim with a thickness of 100mm and a height of 2mm. Along the outer edge of each wedge, place six sm...
PRIZES = [ "MOVE TO NORTH KOREA", "DEATH", "AUTO EROTIC ASPHYXIATE", "BIG BUCKS", "FUN TIMES", "AUTO ZONE COUPONS" ]; module arc( height, depth, radius, degrees ) { render() { difference() { rotate_extrude($fn = 100) translate([radius - height, 0, 0]) squar...
glb/cad_5a2e098b91bc.glb
Create a Wheel of Prizes hub by constructing a cylinder with a diameter of 22mm and a height of 10mm. Using a low facet count to give the outer wall a faceted, prismatic appearance, remove a smaller concentric cylinder from the center to create a hole. This central hole should have a diameter of 8.3mm and a height of 2...
difference(){ cylinder(d=22, h=10); translate([0,0,3]) cylinder(d=8.3, h=20); }
glb/cad_e53d9bde5549.glb
Create a cylindrical spindle holder for the Wheel of Prizes. Construct a main cylinder with a diameter of 10mm and a height of 8mm, using a 20-sided polygonal facet resolution. Bore a concentric hole through the center of this cylinder with a diameter of 5.3mm and a height of 5mm, positioned so that the hole begins 3mm...
$fn=20; difference(){ cylinder(h=8, d=10); translate([0,0,3]) cylinder(h=5, d=5.3); }
glb/cad_cddb7792dbe7.glb
Create a Wheel of Prizes spindle component. Start by constructing a solid geometric hull that connects two cylinders of the same height: one cylinder with a diameter of 10mm centered at the origin, and a second cylinder with a diameter of 1mm positioned 15mm away along the x-axis. Set the height of this entire combined...
$fn=20; difference(){ hull(){ cylinder(h=5, d=10); translate([15,0,0]) cylinder(h=5, d=1); } cylinder(h=5, d=5.5); }
glb/cad_4b485a26a505.glb
Create a Wheel of Prizes prop consisting of a central axle and a supporting structure. First, construct a main body by creating a hull that encompasses a 100mm by 100mm by 1mm square base, a 50mm by 50mm by 1mm square positioned at [0, 25, 110], and a 10mm by 10mm by 1mm square positioned at [0, 45, 225]. Within this...
$fn=20; hull(){ cube([100,100,1]); translate([0,25,110]) cube([50,50,1]); translate([0,45,225]) cube([10,10,1]); } translate([-20,50, 110]) rotate([0,90,0]) cylinder(d=7.9, h=20); translate([-25,50, 220]){ rotate([0,90,0]){ cylinder(d=5, h=30); } } translate([-7,50, 220]){ rotate([0,90,0]){ ...
glb/cad_4004c02150d3.glb
Create a parametric cable clamp by starting with a rectangular block measuring 6mm in depth (X), 24mm in width (Y), and 20mm in height (Z). Carve a central horizontal channel through the block to accommodate a cable. This channel consists of a cylindrical cutout with a diameter of 8mm and a rectangular slot measuring...
cable_diam=8; screw_diam=3; cable_press=cable_diam*0*1; cube_z=cable_diam*2.5; cube_x=screw_diam*4; cube_y=cable_diam*6; difference() { cube([cube_x/2,cube_y/2,cube_z/2], true); translate([0,0,cube_z/4-cable_diam/2+cable_press]) union() { translate([0,0,cable_diam/4]) cube([cube_x/2+1, cable_diam, cable_diam...
glb/cad_8df3211e3293.glb
Create a parametric cable clamp. Start with a rectangular block measuring 12mm in depth (X), 48mm in width (Y), and 20mm in height (Z). Apply a corner radius of 2mm to all edges of this block. Carve a central channel through the block to hold a cable. This channel consists of a cylindrical cutout with a diameter of 8m...
cable_diam=8; screw_diam=3; cable_press=cable_diam*0*1; cube_z=cable_diam*2.5; cube_x=screw_diam*4; cube_y=cable_diam*6; cube_roundness=cable_diam/4; difference() { translate([0,0,-0.5]) minkowski() { cube([cube_x/2-cube_roundness,cube_y/2-cube_roundness,cube_z/2-1], true); cylinder(r=cube_roundness/2,h=1...
glb/cad_540e988a7211.glb
Create a parametric cable clamp by starting with a central rectangular block measuring 6mm in depth (x), 24mm in width (y), and 12mm in height (z). Center this block on the origin. Remove a horizontal cylindrical tunnel through the center of the block along the x-axis. This cylinder should have a radius of 4mm and be...
cable_diam=8; screw_diam=3; cable_press=cable_diam*0.1; cube_z=cable_diam*1.5; cube_x=screw_diam*4; cube_y=cable_diam*6; difference() { cube([cube_x/2,cube_y/2,cube_z/2], true); translate([0,0,cube_z/4+cable_press]) rotate([0,90,0]) cylinder(h=cube_x, r1=cable_diam/2, r2=cable_diam/2, center=true, $fn=scr...
glb/cad_c4e77e16e109.glb
Create a machine pushbutton tag by starting with a base plate that is 36mm wide, 37mm deep, and 0.6mm thick, with all corners rounded to a 5mm radius. Cut a circular hole through the center of the base with a radius of 15.5mm and a depth of 4mm, centered at the coordinates (0, 17.75). Additionally, remove a small recta...
LABEL = "STOP"; union(){ difference(){ translate ([-36/2,5,0]) minkowski() { cube ([36,37,0.6]); cylinder (r=5,h=0.6); } translate([0,17.75,-0.5]) cylinder (r=15.5,h=4); translate([-2.5,30.65,-0.5]) cube([5,5.2,4]); } color("DimGray"){ linear_extrude...
glb/cad_e88a8bdf0905.glb
Create a Pwnagotchi case consisting of a bottom shell and a top lid. Construct the bottom shell as a hollow rectangular box with external dimensions of 59mm by 24mm and a height of 21.5mm. The walls should be approximately 2mm thick. On the bottom exterior, create four rectangular port openings: two 9mm wide ports on...
part = "show"; base_size = 59; module port(width,height=4) { union() { cube([width,5,height]); translate([0,1.4,height-1]) cube([width,3,11]); } } module peg() { union() { cylinder(r=3, h=2, $fn=32); translate([0,0,2]) cylinder(d=2.75, h=1.6, $fn=32); } } module face(...
glb/cad_a2890794f48b.glb
Create a USB base for a snowflake ornament. Start by creating a main cylinder with a diameter of 48mm and a height of 11mm. On top of this base, add a smaller concentric cylinder with a diameter of 37mm and a height of 2mm to form a lip. Hollow out the center of the entire structure by removing a cylinder with a diamet...
OuterDia = 48; Hgt = 11; BaseThk = 2; InnerDia = 37; LipHgt = 2; CableDia = 5; difference() { union() { cylinder(Hgt,OuterDia/2,OuterDia/2,$fn=72); translate([0,0,Hgt]) cylinder(LipHgt,InnerDia/2,InnerDia/2,$fn=72); } translate([0,0,BaseThk]) cylinder(Hgt+LipHgt,(InnerDia-2)/2,(InnerDia-2)/2,$fn=72);...
glb/cad_652cfc0ff6b3.glb
Create an Embedded Razor Handle by combining a rectangular grip with a specialized head for holding a razor blade. Start with a handle that is a rectangular block 10mm wide, 80mm long, and 6mm high. At the top of this handle, create a head assembly consisting of a central rectangular block 46.5mm wide, 17.5mm long, and...
$fn = 50; w=40.5; l=11.5; t=1; d=2.7; w1=4; ColumnWidth = 2.3; ColumnHeight = 3; ColumnLength = 6.00-2.3; difference(){ union(){ translate([0,-l/2-3,3/2])cube([w+6,l+6,3],center=true); translate([0,-l-6,1.5])scale([1,0.5,1])rotate([0,0,45]) cube([(w+6)/sqrt(2),(w+6)/sqrt(2),3],center=true); translate([-5,-...
glb/cad_1e9e73b70970.glb
Create a wing nut consisting of a central threaded boss and two symmetrical wings. Start by creating a central cylindrical boss with a height of 9mm. The boss should have a tapered exterior, starting with a base diameter of 13.2mm (2.2 times the thread diameter) and widening slightly toward the top. Through the center...
dia=6.0; pitch=1; thread_length=9; wing_length=14; wing_thk=3; boss_thk=2.2; module half_wing(){ wing_nut_angle=45; rotate([90,0,0]){ translate([0,0,-wing_thk/2]){ linear_extrude(height=wing_thk){ round2d(OR=thread_length/2-0.5,IR=dia/2){ square([dia/2,thread_length]); translate([dia/2+1,0,0]) rotate([0,0,wing_nu...
glb/cad_bda99c4904ca.glb
Create a Right Angle Screw Driver/Drill Adaptor consisting of two identical housing halves. For each half, start with a base shape formed by the union of a cylinder with a 30mm diameter and 20mm height, and a cube measuring 20mm on all sides centered at [15.7, 0, 0] and rotated 90 degrees on the X-axis. Within this h...
use </home/bogdan/Documents/CAD/gears.scad>; $fn = 100; module gear(){ difference(){ union(){ translate([10,0,0])worm_gear(modul=1, tooth_number=20, thread_starts=2, width=8, length=20, worm_bore=0, gear_bore=0, pressure_angle=20, lead_angle=10, optimized=0, together_built=1, show_spur=1, show_worm=0); cylinde...
glb/cad_210c670a9283.glb
Create a 6-sided die with a total side length of 15mm. The main body is a cube with rounded corners and edges, using a corner radius of approximately 2.14mm (1/7th of the side length). To create the pips, place spheres with a diameter of 1.5mm (1/10th of the side length) centered on each face in the standard dice layo...
len=15; dice(len); module dice(len=30) { $fs=0.1; difference() { translate([len/2,len/2,len/2]) { roundedBox([len,len,len],len/7, false); } dots(len); } } module pips(len=30) { $fs=0.1; intersection() { translate([len/2,len/2,len/2]) { roundedBox([len,len,len],len/7, false); ...
glb/cad_2588d621db1b.glb
Create a bike clamp consisting of three aligned sections. First, create a bottom base by combining a cylinder with a diameter of 50mm and a cube of 20mm x 80mm x 20mm, both centered. From this combined shape, remove a centered cylinder with a diameter of 40mm and a height of 20mm, and remove the front half of the remai...
len=20; pipediameter=40; clampthinkness=10; clampwidth=pipediameter+40; clampheight=50; slice = 5; seat_clamp_offset = 20; seat_clamp_diameter = 7; seat_clamp_height = 15; space = 10; bottom = 1; middle = 1; top = 1; module base_bottom() { union() { cylinder(h=len,d=pipediameter+clampthinkness, center=true); ...
glb/cad_30867a765a0d.glb
Create a decorative key model consisting of a head, a shaft, and a foot. Start by constructing the head as a flat plate 1.5mm thick. The head's outer profile is an irregular polygon defined by the points [0,0], [-1,-0.1], [-2,-0.55], [-6.4,-4.2], [-7.25,-5], [-8,-5.7], [-8.6,-6.4], [-8.9,-7], [-9.1,-8], [-9,-9], [-8.8,...
$fn = 15; module 2dhead() { difference() { polygon(points=[ [0,0], [-1, -0.1], [-2, -0.55], [-6.4, -4.2], [-7.25, -5], [-8, -5.7], [-8.6, -6.4], [-8.9, -7], [-9.1,-8], [-9, -9], [-8.8, -10], [-8.3, -11], [-7.5, -12], [-7, -12.35], [-6, -13], [-5, -13.4], [-4, -13.6], [-3, -13.7], [-2, -13.8], [0, -14]]); translate([...
glb/cad_5f4a4828b0e6.glb
Create a symmetrical compliant Z-coupler by starting with a rectangular block 30mm wide, 21mm deep, and 7mm high. Shape the block by intersecting it with a cylinder of radius 11mm centered on the Z-axis to create rounded ends. Carve a horizontal cylindrical channel through the center of the block along its length; th...
module nuttrap_inverted(h=2.2, bolt=1.8, nut=3.25, lh=0.2) { render() union() { translate([0, 0, -1]) cylinder(r=5.5 / cos(180 / 6) / 2 + 0.05, h=3.6, $fn=6); translate([0, 0, 2.8]) cylinder(r=1.6, h=10, $fn=32); } } module coupling(x=30,y=21,z=7,s=6.35,m=6.9, lh=0.2) { hole_offset = max(s, m)/2+1.55; interse...
glb/cad_8e0a1a3fccad.glb
Create a Spiral Polyhedron Vase by constructing a central core and three interwoven spirals of polyhedra. Start with a central conical core that transitions from a radius of 30mm at the bottom to 30mm at the top over a total height of 100mm. Around this core, place three identical spirals of polyhedra. Each spiral cons...
rad1 = 30; rad2 = 30; height = 100; maxPolySize = 10; minPolySize = 1; thetaMax = 840; thetaStep = 20; function cylToCar(r, theta, z) = [r*cos(theta), r*sin(theta), z]; module spiralPolyR() { translate([0, 0, -height/2]) { for (theta=[0:thetaStep:thetaMax]) { assign (polySize = maxPolySize) { transla...
glb/cad_cd24fb931d5c.glb
Create a gnat trap funnel consisting of a conical section and a flat circular base. Start by creating a solid cylinder for the base with a diameter of 82mm and a height of 1.8mm. Centered on this base, build a hollow cone that extends 45mm upward. The exterior of this cone should taper from a bottom diameter of 74mm at...
verticalThickness = 1.8; funnelHeight = 45; funnelBaseDiameter = 74; flareDiameter = 82; holeDiameter = 8; $fn=60; difference(){ conePrimitive(); translate([0,0,-verticalThickness]) conePrimitive(); } module conePrimitive(){ difference(){ union(){ translate([0,0,verticalThickness]) rotate([0,0,0]) cylinder(h=fun...
glb/cad_df7176ef1460.glb
Create a Mac power adapter holder by starting with a solid rectangular block measuring 38mm deep, 100mm wide, and 85mm high. Round all four vertical edges with a 5mm radius. Hollow out the interior to create a shell with a wall thickness of 2mm, maintaining a 4mm corner radius for the internal cavity. On the front fa...
height = 85; width = 100; depth = 38; corner_radius = 5; wall = 2; open_front_width = 58; screw_hole_diameter = 3.5; countersink_diameter = 7; countersink_height = 1.75; e = 0.05; difference() { hull() { slab_with_round_corners(width, depth, corner_radius); translate([0, 0, height]) slab_with_round_corners...
glb/cad_cb92e65786f2.glb
Create a protest badge based on an eight-pointed star. Start by constructing the star's base using two overlapping squares, each 50mm wide and 2.5mm thick, with one square rotated 45 degrees relative to the other. Build a central cylindrical knob on top of the star with a bottom radius of 27mm, a top radius of 25mm, ...
use <write.scad> rt=25; rb=27; kh=5; mhr=1.5; tco=4; thc=6; the=5; cube([rt*2,rt*2,kh/2],center=true); rotate([0,0,45]) cube([rt*2,rt*2,kh/2],center=true); for ( i = [0 : 7] ) { rotate( i * 360 / 8, [0, 0, 1]) translate([0, rt*1.5, 0]) difference() { sphere(r = rt/5); translate([0,0,-(rt+kh/4)]) cylinder...
glb/cad_2295df476235.glb
Create a protest badge based on an eight-pointed star. Start by centering two overlapping cubes, each 50mm wide, 50mm deep, and 2.5mm thick; rotate one cube 45 degrees relative to the other to form the star base. Place a truncated cone on top of this star, with a bottom radius of 27mm, a top radius of 25mm, and a heigh...
use <write.scad> rt=25; rb=27; kh=5; mhr=1.5; tco=4; thc=6; the=5; cube([rt*2,rt*2,kh/2],center=true); rotate([0,0,45]) cube([rt*2,rt*2,kh/2],center=true); for ( i = [0 : 7] ) { rotate( i * 360 / 8, [0, 0, 1]) translate([0, rt*1.5, 0]) difference() { sphere(r = rt/5); translate([0,0,-(rt+kh/4)]) cylinder...
glb/cad_73b381471d35.glb
Create a protest badge based on an eight-pointed star. Start by constructing the star's base using two overlapping squares, each 50mm wide and 2.5mm thick, with one square rotated 45 degrees relative to the other. Add a central cylindrical knob with a height of 5mm, a bottom radius of 27mm, and a top radius of 25mm. ...
use <write.scad> tt="Protest"; tb="SUX"; the=6; uct="Badges"; lct="really"; thc=6; tco=4; rt=25; rb=27; kh=5; mhr=1.5; cube([rt*2,rt*2,kh/2],center=true); rotate([0,0,45]) cube([rt*2,rt*2,kh/2],center=true); for ( i = [0 : 7] ) { rotate( i * 360 / 8, [0, 0, 1]) translate([0, rt*1.5, 0]) difference() { s...
glb/cad_08b758c301fe.glb
Create a Tube Adapter Flange. Start with a square base plate that has a thickness of 1mm and rounded corners with a radius of 3mm. In the center of this plate, create a circular hole with a diameter of 37mm. At each of the four corners of the base, add a mounting hole with a diameter of 3.5mm, positioned 32mm apart fro...
roundRadius = 5; thickness = 1.7; flangeThickness = 2.0; holeDistance = 32; holeDiameter = 3.5; boltHeadDiameter = 6; angle = 60; inputTubeLength = 3; inputDiameter = 38.5; outputLength = 25; outputDiameter = 29.1; meshLines = 0; meshWidth = 0; me...
glb/cad_b983f920c990.glb
Create a cable plug hole cover consisting of a wide circular flange and a central stem with integrated retention catches. Start with a flat circular base 25.05mm in diameter and 1.2mm thick. From the center of this base, extend a cylindrical stem upwards. The stem's main body is a hollow tube with an outer diameter o...
caseHoleDiameter = 19.05; cableHoleDiameter = 5.4; caseThickness = 3.5; caseOverlap = 3; thickness = 1.2; catchPostThickness = 1.5; catchHeight = 1; catchAngle = 55; numberOfCatches = 3; sliceAngle = 80; $fn = 35; catchYOffset = catchHeig...
glb/cad_821f8ff4b029.glb
Create a FingerCast splint consisting of two connected tapered hollow segments with a wall thickness of 1mm. The first segment is a truncated cone with a height of 20mm, a bottom radius of 7.5mm, and a top radius of 10mm. The second segment is a truncated cone with a height of 25mm, a bottom radius of 10mm, and a top r...
diameter_1 = 15; diameter_2 = 20; diameter_3 = 25; segment_1 = 20; segment_2 = 25; angle = 20; wall = 1; radius_hole_1_segement_1 = 0; radius_hole_2_segement_1 = 6; radius_hole_1_segement_2 = 5; radius_hole_2_segement_2 = 8; radius_hole_middle = 8; $fn=30; fingercast(); module fingercast(){ difference(){ ho...
glb/cad_607f44df2ef9.glb
Create an artifact tetrahedron by starting with a sphere of radius 20mm centered at the origin. From this sphere, remove material using four identical cylindrical cutters. Each cutter is a cylinder with a radius of 14mm and a height of 16mm. To position the cutters, first define a base cutter orientation: rotate the ...
size = 7; r0=20; rzyl=14; hzyl=16; $fa = 5; $fs = 0.2; difference() { sphere (r=r0); translate([0,0,0]) { rotate( 0,[0,0,1]) cutter(); rotate(180,[0,0,1]) cutter(); scale([1,1,-1]) rotate( 90,[0,0,1]) cutter(); scale([1,1,-1])rotate(270,[0,0,1]) cutter(); } } module cutter() { rotate(45...
glb/cad_7f9763e4f1fb.glb
Create a Customizable Power Bank housing consisting of a battery holder and a surrounding frame. First, construct the battery holder. Create a rectangular base with a thickness of 1.8mm. Build walls 15mm high and 2.4mm thick around the perimeter. Inside this holder, create six cylindrical cells for 18650 batteries, ea...
$fn=60; tol=0.5; part=0; bat_dia=18; bat_len=65; terminal_spc=1.6; n_pile=6; h_wall_hi=15; h_wall_thi=2.4; h_bottom_thi=1.8; make_screw_hole=1; lid_inner_xsize=162; lid_inner_ysize=99.3; lid_inner_zsize=7.5; lid_corner_rad=6; case_inner_xsize=166.3; case_inner_ysize=102.2; case_inner_zsize=9; case_cor...
glb/cad_a5a23372246b.glb
Create a soap dish with a rectangular footprint of 250mm by 200mm and an overall depth of 15mm. Construct a perimeter wall around the entire base that is 18mm high and 4mm thick. Inside this boundary, create a grid of support posts spaced 25mm apart in both the X and Y directions. Each post is a composite of two stacke...
width=250; height=200; depth=15; base_r=4; top_r=8; offset=25; wall_height = depth * 1.2; num_x = floor(width / offset); num_y = floor(height / offset); module post() { cylinder(h=depth/2, r1=base_r, r2=top_r); translate([0, 0, depth/2]) { cylinder(h=depth/2, r1=top_r, r2=base_r); } } translate([...
glb/cad_ff111f8d8cf5.glb
Create a cable tie anchor by starting with a square-based pyramid block that has a base width of 25mm and a height of 12.8mm. Center the block so the base is on the XY plane. From this block, remove a central cylindrical core with a diameter of 10mm that runs vertically through the center. Around this central void, cre...
wire_diameter = 10; tie_width = 3.4; tie_thickness = 1.5; slot_spacing = 4; vertical_tolerance = 1.5; horizontal_tolerance = 0.5; slot_width = tie_width + 2 * horizontal_tolerance; slot_height = tie_thickness + 2 * vertical_tolerance; slot_id = wire_diameter + slot_spacing * 2; slot_od = slot_id + 2 * slot_heigh...
glb/cad_65b50b2c8bbc.glb
Create a medal base by starting with a rectangular block measuring 75mm wide, 30mm deep, and 12.5mm high. Apply a 1mm radius rounding to all edges and corners of this block. Carve a rectangular slot out of the top center of the block to create a slit for holding a medal. This slot must be 65mm wide, 10mm deep, and 11.5...
baseWidth = 75.0; baseDepth = 30.0; baseHeight = 12.5; roundingR = 1.0; slitWidth = baseWidth - 10.0; slitDepth = 10.0; slitHeight = baseHeight - 1.0; slitXOffset = (baseWidth - slitWidth) / 2; slitYOffset = slitXOffset; slitZOffset = baseHeight - slitHeight; module completeBase() { difference() { base(bas...
glb/cad_c7baaf512628.glb
Create a lateral support for an ESP32 development board. Start by creating a central rectangular PCB plate measuring 55.8mm in length, 28mm in width, and 2mm in thickness. At the four corners of this plate, centered 51mm apart lengthwise and 24mm apart widthwise, create circular holes with a diameter of 2mm. Construct...
esp32XLength = 55.8; esp32YLength = 28; esp32Thick = 2; esp32HoleDia = 2; esp32XHoleCenterDst = 51; esp32YHoleCenterDst = 24; esp32BaseXLength = 70; esp32BaseYLength = 30; esp32BaseThick = 2; esp32BasePinHeight = 2; esp32BasePinOverLap = 0.3; esp32BaseClipHeight = 2; es...
glb/cad_a6a15bde2366.glb
Create a Kobayashi Fidget Cube consisting of eight identical small cubes, each with a side length of 20mm, arranged in a 2x2x2 cluster. Each small cube should have its edges beveled by 1.6mm and its faces beveled by 0.4mm. Connect these cubes using integrated hinges that allow them to fold and rotate. The hinges are b...
subject = "cube"; $fn = 48; gap = 0.4; size = 20; hinge_radius_ratio = 0.30; edge_bevel_size = 1.6; face_bevel_size = 0.4; hinge_wall_thickness = 2.4; hinge_pin_scale = 1; hinge_edge_thickness = 0.4; e = 1 / 1024; ee = 2 * e; __ = gap; _ = 0.5 * __; hsize = 0.5 * size; size__ = size - __; hsize_ = hsize - _;...
glb/cad_a0a58f3efab1.glb
Create a Kobayashi Fidget Cube consisting of eight identical small cubes, each with a side length of 20mm. Arrange these cubes into a larger 2x2x2 cubic assembly. Each small cube must have its four vertical edges beveled by 1.6mm. To allow for movement, maintain a gap of 0.4mm between all adjacent cube faces. Connec...
subject = "cube"; $fn = 48; gap = 0.4; size = 20; hinge_radius_ratio = 0.30; edge_bevel_size = 1.6; face_bevel_size = 0; hinge_wall_thickness = 2.4; hinge_pin_scale = 1; hinge_edge_thickness = 0.4; e = 1 / 1024; ee = 2 * e; __ = gap; _ = 0.5 * __; hsize = 0.5 * size; size__ = size - __; hsize_ = hsize - _; r...
glb/cad_062542c0155f.glb
Create a Kobayashi Fidget Cube consisting of eight identical small cubes, each with a side length of 20mm. The cubes are arranged in a 2x2x2 cluster, connected by integrated hinges that allow them to fold and unfold. Each small cube should have its edges and faces slightly beveled by 1.6mm and 0.4mm respectively. The ...
subject = "cube"; $fn = 48; gap = 0.3; size = 20; hinge_radius_ratio = 0.30; edge_bevel_size = 1.6; face_bevel_size = 0.4; hinge_wall_thickness = 2.4; hinge_pin_scale = 1; hinge_edge_thickness = 0.4; e = 1 / 1024; ee = 2 * e; __ = gap; _ = 0.5 * __; hsize = 0.5 * size; size__ = size - __; hsize_ = hsize - _;...
glb/cad_bd28053fd51b.glb
Create a Kobayashi Fidget Cube consisting of eight identical small cubes, each with a side length of 20mm. The cubes are arranged in a 2x2x2 cluster, but are separated by a consistent gap of 0.3mm to allow for movement. Each small cube has its four vertical edges beveled by 1.6mm. The cubes are connected by integrated...
subject = "cube"; $fn = 48; gap = 0.3; size = 20; hinge_radius_ratio = 0.30; edge_bevel_size = 1.6; face_bevel_size = 0; hinge_wall_thickness = 2.4; hinge_pin_scale = 1; hinge_edge_thickness = 0.4; e = 1 / 1024; ee = 2 * e; __ = gap; _ = 0.5 * __; hsize = 0.5 * size; size__ = size - __; hsize_ = hsize - _; r...
glb/cad_bb5f3ae3ccc9.glb
Create a cymbal stand drum mount adapter shim by constructing a thick-walled ring with a height of 30mm. The outer boundary of the ring should be a cylinder with a radius of 18.5mm. Remove a central cylindrical core with a radius of 8mm and a height of 38mm to create a hollow center. Additionally, cut a thin slot compl...
difference() { cylinder(r=37/2,h=30,center=true); union() { cylinder(r=16/2,h=38,center=true); cube(size=[40,2,40],center=true); } } translate(v=[40,0,0]) difference() { cylinder(r=37/2,h=30,center=true); union() { cylinder(r=16/2,h=38,center=true); cube(size=[40,2,40],center=true); } }
glb/cad_bbc5919c448c.glb
Create an F450 TBS Discovery arm extension mounting block consisting of two separate geometric components. First, create a hollow cylinder with an outer diameter of 10mm, an inner diameter of 5mm, and a height of 20mm. Second, create a hollow square prism with an outer width and depth of 10mm and a height of 20mm. ...
m3Rad = 3.4/2; cornerR = 4; module helperDisk(diameter) { cylinder(r = diameter/2, h = 0.6); } module roundedRect(size, radius) { x = size[0]; y = size[1]; z = size[2]; linear_extrude(height=z) hull() { translate([(-x/2)+(radius/2), (-y/2)+(radius/2), 0]){ circle(r=radius); } translate([(x/2)-(radius/2), (-...
glb/cad_3a23aee74438.glb
Create two identical mounting blocks for a drone arm extension. Each block is a rectangular prism measuring 30mm in width, 38mm in depth, and 37mm in height. At the center of the block, create a vertical square cutout that passes through the height of the object to accommodate a square tube; this cutout should be 12.8...
use <dronePlates.scad> m3Rad = 3.25/2; height = 37; l2 = 38; l1= 30; sqTubeT = 12.8; tubeCover = 3.5; rbHeight = height-sqTubeT-tubeCover*2-tubeCover/2; bhHeight = height-sqTubeT-tubeCover*2-tubeCover/2; shift = 6; fixHoleD = 30; holesR = 4.5; module djiNutSlot() { a = 23; a1 = 21; b = 16; c = 19.5; for(i=[-1,1...
glb/cad_276e350bd3a0.glb
Create a bathroom floor drain cover by starting with a circular disk that has an outer diameter of 75.3mm and a thickness of 2.7mm. Within this disk, carve out a central circular area with a diameter of 64mm to create a ring border. Inside this inner circular area, construct a grid of rectangular slots. The grid should...
$fn = 100; outer_diameter = 75.3; inner_diameter = 64; height_ = 2.7; row_number = 4; column_number = 3; grid_wall_thickness = 6; corner_radius = 3; linear_extrude(height = height_){ offset(r = -corner_radius) offset(r = corner_radius) union() { ring_2d(outer_diameter, inner_diameter); difference(){ translat...
glb/cad_410f68077cb9.glb
Create a parametric outlet support shim. Start by creating a main rectangular block with a width of 55mm, a height of 10.5mm, and a thickness of 12mm. Attached to the back of this block, add a thin rectangular lip that is 55mm wide, 7mm deep, and 1.5mm thick. Finally, create a circular hole with a radius of 2mm that pa...
type = "no"; L_thickness = 12; R_thickness = 9; Box_width = 55; Box_height = 10.5; Lip_thick = 1.5; Lip_length = 7; Radius = 2; Hole_distance = 7.5; if(type == "no") { translate([0,L_thickness,0])cube([Box_width,Lip_length,Lip_thick]); difference(){ cube([Box_width,L_thickness,Box_height]); translate([Box_wi...
glb/cad_c2015913ba00.glb
Create a spice carousel base by starting with a main cylinder 60mm in diameter and 20mm in height. Remove a central vertical shaft consisting of two coaxial holes: a 6mm diameter hole running the full height and a wider 10mm diameter hole extending 20mm deep from the bottom. Create four identical support structures s...
difference(){ cylinder(h=20, d=60, $fn=80); translate([0,0,-5])cylinder(h=30, d=6, $fn=20); translate([0,0,-10])cylinder(h=20, d=10, $fn=6); translate([0,0,-5]){ for ( i = [0 : 3] ) { rotate( i * 360 / 4, [0, 0, 1]) { translate([22,0,0])cylinder(h=30, d=6, $fn=20); translate([22,0,8])cylinder(h=30, d=10, $fn=...
glb/cad_38db6b095a66.glb
Create a spice carousel base by starting with a main cylinder 165mm in diameter and 15mm high. Remove a central vertical hole 6mm in diameter that passes completely through the center. Create two larger circular cutouts 21mm in diameter, one at the bottom and one at the top, both centered on the vertical axis. Around ...
difference(){ cylinder(h=15, d=165,$fn=100); translate([0,0,0])cylinder(h=30, d=6,$fn=20); translate([0,0,-10]){ for ( i = [0 : 6] ) { rotate( i * 360 / 7, [0, 0, 1]) translate([72,0,0]){ union(){ cylinder(h=20, d=38); translate([0,0,20]) cylinder(h=7, d=45); color("Red",1)translate([0,0,-70]) cylin...
glb/cad_b64ac2d29094.glb
Create a spice carousel component by starting with a solid cylinder that has a diameter of 15mm and a height of 8mm, using a 40-facet resolution for a smooth circular profile. Centered vertically and horizontally, remove a smaller cylindrical hole with a diameter of 4mm and a height of 25mm, using a 10-facet resolution...
difference(){ cylinder(h=8, d=15, $fn=40); translate([0,0,-4])cylinder(h=25, d=4, $fn=10); }
glb/cad_e9d0816b7df1.glb
Create a Filament Calibration model consisting of two separate parts. First, create a rectangular prism measuring 30mm in length, 5mm in width, and 4mm in height. Second, create a larger rectangular base measuring 115mm in length, 20mm in width, and 4mm in height, positioned 20mm away from the first part along the widt...
cube( [30, 5, 4] ); translate( [0, 20, 0] ) { difference() { cube( [115, 20, 4] ); translate( [5, 5, 0]) cube( [4.8, 8.0, 5 ] ); translate( [15, 5, 0]) cube( [4.9, 8.0, 5 ] ); translate( [25, 5, 0]) cube( [5.0, 8.0, 5 ] ); translate( [35, 5, 0]) cube( [5.1, 8.0, 5 ] ); ...
glb/cad_c97d18276fbc.glb
Create an adjustable z end stop side mount consisting of two main components: a plunger and an endstop housing. First, create the plunger as a cylinder with a diameter of 23mm and a height of 5mm. Remove a central vertical hole consisting of a cylinder with a radius of 3.5mm and a threaded internal profile. The intern...
Plunger(); Endstop(); xend_height=17; wall_thickness=3.5; extension=14; plunger_dia=23; plunger_height=5; clip_width=15; clip_depth=15; hand_width=12; hand_length=12; hand_height=12; nut_height=3; nut_dia=7; screw_dia=3.6; $fn=15; module trapezoidNut( length=45, radius=25, pitch=10, pitchRadius=10, threadH...
glb/cad_8dece851a720.glb
Create a Noisemaker toy consisting of four stacked cylindrical sections aligned along a single central vertical axis. Start by placing a cylinder with a radius of 3mm and a height of 5mm at the base. Directly on top of this, add a thin disc-shaped cylinder with a radius of 4mm and a height of 1mm. Above that disc, plac...
rez=90; cylinder(r=3,h=5,$fn=rez); translate([0,0,-1]) cylinder(r=4,h=1,$fn=rez); translate([0,0,-2]) cylinder(r=3.5,h=1,$fn=rez); translate([0,0,-5]) cylinder(r=3,h=5,$fn=rez);
glb/cad_82816e538c2c.glb
Create a Noisemaker toy by starting with a rectangular base measuring 50mm in length, 8mm in width, and 1mm in height. At one end of this base, center a cylinder with a radius of 4mm and a height of 1mm. Along the top surface of the base, create a rectangular channel that is 35mm long, 1mm wide, and 1mm deep, positione...
rez=50; cube([50,8,1]); translate([0,4,1]) rotate([0,45,0]) color("blue")cube([sqrt(2.2),7,sqrt(2.2)],center=true); translate([50,4,0]) cylinder(r=4,h=1,$fn=rez); translate([10,3,.75]) cube([35,1,1]);
glb/cad_9b0087dad625.glb
Create a shoe outsole by constructing a complex organic base shape and carving a series of slits into it. Start by forming the main body as a 60mm thick slab centered on the Z-axis. The footprint is defined by the intersection of three distinct hulls: one created from circles at (-45, 3), (-8, 1), and (20, -24) with ra...
shape="soft"; slit = 5; COLOR="Orange"; color(COLOR) difference(){ intersection() { difference() { linear_extrude(height = 60, center = true, convexity = 10) hull(){ translate([-45,3,0])circle(33,$fa = 1); translate([-8,1,0])circle(50.5,$fa = 1); translate([20,-24,0])circle(30,$fa = 1); translate([172,-1.5,0]...
glb/cad_e014ff9d999c.glb
Create a Bed Frame Rail Clamp with a total width of 40mm. The object is composed of a central section and two endcaps along the Z-axis. The central section is 20mm wide, and each endcap is 5mm wide. Separating these three sections are two 5mm wide zip-tie cutouts. The main body consists of a top horizontal arm and a b...
$fa = 1; $fs = 0.1; topThickness = 5; bottomThickness = 12; elbowThickness = 7; topLength = 30; elbowHeight = 6.4; bottomLength = 31; bottomSupportLength = (25 - bottomThickness); bottomSupportThickness = 25; ziptieWidth = 5; endcapSize = 5; middleSize = 20; makeThing(); module makeThing() { union() ...
glb/cad_e9b039b5b060.glb
Create a Digispark bumper case starting with a main rectangular block measuring 22mm by 20mm with a height of 6mm. Hollow out the center of this block to create a cavity 19.5mm wide, 18mm deep, and 4mm high, leaving a wall thickness of 1.5mm on the sides. Cut a rectangular opening through the front wall for a USB port,...
delta = 0.5; dsx = 19+delta; dsy = 17.5+delta; pcbz = 2; usb = 12+delta; dsz = 4; wall = 1.5; level = 2; flaphole = 4; $fn=30; DigiSparkCase(); Flaps(); module DigiSparkCase(); {difference() {cube([dsx+2*wall,dsy+2*wall,dsz+2*wall]); translate([wall,wall,wall]) cube([dsx,dsy,dsz+10]); translate([wal...
glb/cad_ec436a381c22.glb
Create a Caliper Center Distance Attachment by starting with a main cylinder that has an outer diameter of 10mm and a height of 25mm. On top of this cylinder, add a cone with a base diameter of 10mm that tapers to a point over a height of approximately 2.89mm. To create the slot for the caliper arm, remove a rectangula...
od = 10; body_height = 25; tip_half_angle = 30; gap_width = 3.6; gap_height = 20; $fa = 5; $fs = 0.5; slop = 0.1; difference() { union() { cylinder(h=body_height, r=od/2); translate([0, 0, body_height]) cylinder(h=od/2 / tan(tip_half_angle), r1=od/2, r2=0); } translate([0, -gap_width/2, -slop]) cub...
glb/cad_0987049591ee.glb
Create a Split Flap Display Module fixture. Start by creating a cylinder with a diameter of 5mm and a height of 2mm. Attached to this cylinder, add a rectangular block centered on the Y-axis with dimensions 1mm wide, 5mm high, and 3mm deep. To add connectivity features, place a small rectangular connector measuring 0....
include <digit_flip.scad> fixture_height = 5; module fixture() { cylinder(d = flip_fixure_diameter, h = 2); translate([-0.5,0,-1.5]) box(size=[1,fixture_height,3]); } fixture_connector_size = 0.2; module fixture_with_connect() { fixture(); translate([-fixture_connector_size,fixture_height / 2,-f...
glb/cad_211498be6a95.glb
Create a Split Flap Display Module consisting of a series of rotating flaps. First, create a single flap based on a standard PVC card. The flap is a rectangular plate with a width of 55.48mm (53.98mm card width plus 0.75mm support on each side), a height of 43.1mm, and a thickness of 0.75mm. Each flap must have a cir...
include <relativity.scad> include <28byj-48.scad> include <switch.scad> pvc_card_width = 53.98; support_flip_thick = 0.75; flip_width = pvc_card_width + 2*support_flip_thick; flip_height = 86.2/2; flip_thick = 0.75; flips_numbers = 12; thick = 1.5; flip_fixure_diameter = 2; flip_fixure_diameter_play = 1; radius_...
glb/cad_221e8e6aae8e.glb
Create a nozzle organizer block with a total thickness of 8mm. The organizer consists of four distinct sections of holes arranged in a layout that follows the specified nozzle diameters and quantities. For the first section, create 1 hole with a radius of 3.15mm (6.3mm diameter) and a depth of 7mm. For the second sect...
include <write/Write.scad> font="write/Letters.dxf"; t_size=6; t_vert=0; depth=1; emboss=0; bor=2.5; square=0; thick=8; num=4; r=[6.3,6.3,6.3,6.3]; h=[7,7,7,7]; n=[1,2,1,4]; o=["0.25mm SS","0.4mm SS","0.7mm SS","0.4mm Br"]; s=[50,45,45,45]; if(emboss==1) textemb(); else texteng(); module base(){ for(i=[...
glb/cad_8f71fa52085d.glb
Create a Diz for making roving by constructing a main cylindrical disc with a diameter of 75mm and a thickness of 5mm. Center the disc on the origin. Remove a series of circular holes from this disc to create openings of varying diameters. Place one hole with a diameter of 20mm exactly in the center of the disc. Arrang...
diameter = 75; thickness = 5; hole_sizes = [20, 3, 5, 7, 10, 12, 15]; chamfer = true; $fn = $preview ? $fn : 32; module body() { difference() { cylinder(d=diameter, h=thickness, center=true); for(i=[0:len(hole_sizes)-1]) { rotate([0,0,360/(len(hole_sizes)-1)*(i-1)]) translate([i==0 ? 0...
glb/cad_7a3ab193bc31.glb
Create a protective foot for a printer by starting with a truncated cone that is 15mm tall, with a bottom radius of 20mm and a top radius of 12mm. Center the shape on the Z-axis. Carve a rectangular slot through the top of the cone that is 50mm long, 1.7mm wide, and 6mm deep, positioned 9mm above the center point. Addi...
$fs = 0.01; difference() { translate([0,0,(15/2)]) cylinder(h=15,r1=20, r2=12,center=true); translate([0,0,3+9]) cube(size=[50,1.7,6],center=true); translate([0,0,11.5]) rotate(a=[90,0,0]) cylinder(h=30, r=1.25); }
glb/cad_bd254f4d77e9.glb
Create a remote control holder by starting with a solid rectangular block that is 53.2mm wide, 30.6mm deep, and 70mm high. Hollow out the center of this block to create a pocket for the remote, leaving a base thickness of 2mm and wall widths of 1.6mm on the sides. The interior cutout should be 50mm wide and 27mm deep. ...
module rremote(xsize, ysize, zsize, basethickness=2,wallwidth=1.6, xremwidth) { difference() { scale([xsize+(wallwidth*2),ysize+(wallwidth*2),zsize])cube(center=true,1); translate([0,0,basethickness*1.5])scale([xsize,ysize,zsize+basethickness])cube(center=true,1); translate([0,0,zsize/3])sca...
glb/cad_725169cbe23e.glb
Create a 3D model of Perpendicular Slotted Ellipses consisting of two identical slotted elliptical disks joined at their centers and oriented perpendicular to one another. Each disk is an ellipse with a major diameter of 25mm and a minor diameter of 25mm (forming a circle), with a material thickness of 1mm. To create...
major_diameter = 25; minor_diameter_ratio = 1000; thickness = 1; Display = "3D"; time = 0; $fn=100; $t = time / 100; if(Display == "3D") PerpendicularRollingEllipses(majorDia = major_diameter, minorDia = major_diameter*minor_diameter_ratio / 1000, thickness = thickness, cut=false); else PerpendicularRollingElli...
glb/cad_53d670316aae.glb
Create a construction brick with a 2x3 peg layout. Start with a main rectangular body measuring 24mm in length, 16mm in width, and 9.6mm in height. Hollow out the center of this body by removing a smaller rectangular block measuring 21.6mm by 13.6mm with a height of 9.6mm, leaving a wall thickness of 1.2mm on the sides...
width = 2; length = 3; $fn=100; Lego_Maker (width,length); module Lego_Maker (width, length) { unit_height = 9.6; unit_width = 8; nub_diameter = 4.8; nub_height = 1.8; play = 0.1; support_diameter_inner = 4.8; support_diameter_outer = 6.5; brick_thickness_verticle = 1.2; brick_thickness_horizontal = 1; u...
glb/cad_ec0610bd51a2.glb
Create a 608 Bearing V-Roller by constructing a composite cylindrical body with a total height of 7mm. Start by creating a central cylindrical hole with a diameter of 22.05mm that runs through the entire height of the object to accommodate a bearing. Build the outer profile as a V-shaped trough. This is achieved by c...
segments = 64; w = 7; outer_d = 30; inner_d = 25.5; bearing_d = 22.05; center_flat_w = 0.5; cut = 0.75; difference(){ difference(){ union(){ cylinder(h=w/2-center_flat_w/2, r1=outer_d/2+cut, r2=inner_d/2, $fn=segments); translate([0,0,w/2-0.0001+center_flat_w/2]) ...
glb/cad_ff771a7ae95f.glb
Create a customizable name block by starting with a rectangular base. The base should have a height of 5mm and a length of 10mm, with a width calculated by multiplying the number of characters in the string "Your Name here" by 5mm and then subtracting 20mm. Center this block on the origin. Using a sans-serif font with ...
name = "Your Name here"; letterSize = 5; widthTolerance = -20; lengthTolerance = 5; height = 5; letterExtrude = 4; stringLength = len(name); width = (stringLength * (letterSize)) + widthTolerance; length = letterSize + lengthTolerance; difference() { translate([0,0,height/2]) cube([width,length,height], cente...
glb/cad_e3d70460b5e0.glb
Create a Parametric Angled Clamp Mount consisting of a circular clamp ring and an attached angled mounting plate. First, construct the clamp ring with a height of 15mm. The ring should have an inner diameter of 28.5mm and a wall thickness of 3mm. Leave a gap of 3mm in the ring's circumference to allow for tightening....
Size = 15; Ring_Inner_Diameter = 28.5; Ring_Wall_Thickness = 3; Lock_Gap = 3; Lock_Wall_Thickness = 8; Lock_Hole_Diameter = 8; Plate_Thickness = 5; Plate_Angle = 22.5; Mounting_Hole_Spacing = 45; Mounting_Hole_Diameter = 4; Support_Inset = 0.5; $fn = $preview ? 32 : 128; module bracket( size = 15, ring=28.5, ri...
glb/cad_e5f9e0d2e4ec.glb
Create a PrintBedNutholder by constructing a composite solid and removing specific volumes. Start with a base shape formed by the union of a cylinder with a radius of 7.5mm and a height of 7.5mm, and a rectangular block measuring 15mm wide, 7.5mm deep, and 7mm high, centered so the block extends from the cylinder's cen...
module pieza(h1,h2) { h1=1+h1; h2=1+h2; difference() { translate([0,0,0]) union() { cylinder(7,7.5,7.5); translate([-7.5,0,0]) cube([15,7.5,7]); } translate([-5*h2,-7.5,2]) cube([10*h2,15,3*h1]); translate([-4,-4,5]) cube([8,8,2]); translate([0,0,0]) cylinder(3,3*h1,3*h1, $fn=6); } } ...
glb/cad_1c1c2028fd9c.glb
Create a PrintBedNutholder by constructing a solid body that combines a cylinder and a rectangular block. Start with a cylinder 16mm in diameter and 8mm high, centered at the origin. Merge this with a cube measuring 16mm wide, 8mm deep, and 9mm high, centered on the cylinder so the cube extends 8mm from the center in b...
module pieza(h1,h2) { h1=1+h1; h2=1+h2; difference() { translate([0,0,0]) union() { cylinder(9,8,8); translate([-8,0,0]) cube([16,8,9]); } translate([-5*h2,-8,2]) cube([10*h2,16,3*h1]); translate([0,0,5]) cylinder(4,4,4); translate([0,0,0]) cylinder(3,3*h1,3*h1, $fn=6); } } rotate([-...
glb/cad_9d7d2299d610.glb
Create a USB cable storage wall mount. Start with a base block that is 13mm high, 13.75mm wide, and approximately 111.25mm long, featuring rounded corners with a radius of 1.25mm. Along the center of the base, create a row of 8 identical rectangular sockets. Each socket is 5mm wide, 12.3mm long, and 12.5mm deep, with...
usb_count = 8; thing_width = 15; usb_length = 12.3; usb_width = 5; usb_height = 12.5; usb_space = 10; usb_offset = (thing_width-usb_width)/2; thing_length = usb_offset+(usb_count*(usb_length+usb_space))-(usb_space-usb_offset); thing_height = 13; echo(thing_length); difference() { hull(){ c...
glb/cad_7acf3e28c781.glb
Create a Spool Holder Adapter consisting of three coaxial cylindrical components stacked vertically. First, create a solid washer at the base with a height of 3mm and an outer diameter of 64mm, featuring a centered hole 29mm in diameter that passes completely through. Second, place a spacer on top of the washer. Thi...
part = "all"; $fn=32; spindle_diameter=29; spool_axle_opening_diameter=52; spool_width=70; spacer_length=34; flange_wall_thickness=3; washer_thickness=3; adapter_length=-1; washer_outer_diameter=-1; large_flange_length=adapter_length < 0 ? spool_width-(2*washer_thickness) : adapter_length; washer_od = washer_o...
glb/cad_5281360ae080.glb
Create a Parametric Round Edged Box consisting of a bottom container and a matching top lid. For the bottom, create a rectangular box with a length of 145mm, a width of 89.9mm, and a height of 55.3mm. The walls should be 4mm thick. At the top edge of the bottom section, create an interlocking lip that is 4mm high and...
golden=1.618; boxlen=145; boxwidth=boxlen/golden; totheight = boxwidth/golden; toppart=.4; toph=totheight*toppart; both = totheight-toph; wallthickness = 4; lip=4; cround=wallthickness*golden; boxbottom(boxlen,boxwidth,both,wallthickness,lip); module boxbottom(length,width,height,thickness,lip){ interiorl = length-t...
glb/cad_f5aa60af7ac7.glb
Create a replacement handle for an espresso machine. Start by constructing the main body as a hull of several spheres with a radius of 2mm, resulting in a rounded, elongated block that is 35mm wide, 120mm long, and 25mm high. From this solid body, remove a central inner clearance area consisting of a cylinder with a ...
use <basic_fixings.scad> espresso_head_handle(); module espresso_head_handle() { difference() { espresso_head_handle_solid(); #translate([0,0,11]) head_fitting(); #translate([0,38,3]) handle_inner_clearance(); } } module espresso_head_handle_solid($fn=150) { hull() { ...
glb/cad_5bef1e623c79.glb
Create a Rolling Pin Spacer by constructing a hollow cylinder with an outer diameter of 56mm and an inner diameter of 46mm. The wall thickness should be 5mm and the overall height of the ring should be 7mm. To allow the spacer to be slipped onto a rolling pin, create a vertical slot by removing a thin rectangular secti...
pin = 46; pinr=pin/2; Dough = 5; difference () { cylinder (h=7,r=pinr+Dough, $fn = 200); translate ([0,0,-2]) cylinder (h=14,r=pinr, $fn = 200); rotate([30,0,0]) translate ([0,0,-5]) cube([pinr+Dough+2,2,20]);; }
glb/cad_8890287c61b9.glb
Create a laser pointer holder by constructing a vertical cylinder 60mm tall with a radius of 7.5mm. Cap the top of this cylinder with a hemisphere of the same 7.5mm radius. At the bottom of the cylinder, add a rectangular block centered on the X-axis, measuring 14.8mm wide, 3mm thick, and 16mm high, extending downwards...
$fn=60; difference() { union() { cylinder(60,7.5,7.5); translate([0,0,60])sphere(7.5); translate([-7.4,-1.5,-14])cube([14.8,3,16]); translate([0,0,14.4])intersection() { translate([-7.4,-1.5,-44])cube([14.8,3,16]); translate([0,0,-28])sphere(7.5); } } translate([-9.1,0,55])rotate([0,90,0])cyli...
glb/cad_c8baa68153eb.glb
Create a laser pointer holder and adjustable base consisting of two main parts: a vertical holder and a flat base. First, construct the holder as a rectangular block 14.8mm wide, 9mm deep, and 20mm high. Remove a central rectangular slot 17mm wide and 3.4mm deep from the front face, extending the full height of the b...
$fn=60; union() { difference() { translate([-7.4,-3,-4])cube([14.8,9,20]); translate([-8.6,0,0])cube([17,3.4,20]); translate([0,10,9])rotate([90,0,0])cylinder(20,2,2); } difference() { translate([-7.4,-13.5,-4]) minkowski() { cube([14.8,30,3]); cylinder(r=3,h=1); } translate([0,-10,-5])rot...
glb/cad_7f1085872f19.glb
Create an adapter between doblo bricks and Naef blocks. Start by creating a base block that is 64mm wide and 64mm deep (4 units of 16mm), with a height of 9.6mm. On top of this base, add a transition piece in the form of a 6mm tall square frustum; the bottom face is a square with a side length of 64mm, and the top face...
SCALE=1; LEGO_DIV=true; dim = 50.8; offset = 10; f_dim = 6; pin_rad = 1.25; doblo_nibbles = 4; doblo_dim = 16*doblo_nibbles; doblo_levels = 2; doblo_thick = 4.8*doblo_levels; include <doblo-factory-1-11.scad>; module naef_block() { difference() { translate([0,0,dim/2]) cube([dim,dim,dim],center=true); tran...
glb/cad_1bbe63be18fe.glb
Create an adjustable air vent socket consisting of a circular base plate and a concentric cylindrical pipe. Start by creating a circular base plate with a diameter of 160mm and a height of 1.8mm. Centered on this plate, add a cylindrical pipe with an outer diameter of 114mm and a height of 40mm. The pipe should have ...
type = "socket"; plate_diameter = 160; plate_height = 1.8; thread_length = 30; thread_outer_diameter = 8; pipe_diameter = 114; pipe_height = 40; pipe_border = 1; nut_height = 20; nut_thread_outer_diameter = 9; nut_diameter = 12; st...
glb/cad_483b76a185c3.glb
Create an adjustment mount for a faucet spray-head consisting of three main components: a swing-arm plug, a spray-head holster, and three attachment clips. First, construct the swing-arm plug. Create a central cylinder with a radius of 10mm and a height of 20mm. Add a top flange as a wider cylinder with a radius of 13...
if (1) { translate(v=[-22/2,0,0]) difference() { union() { cylinder(h=20,r=10); translate(v=[-2,0,0]) cylinder(h=2,r=13); translate(v=[8,0,0]) cube(size=[20,5,10]); } union() { cylinder(h=36,r=8); translate(v=[8+10,2,5]) rotate(a=90,v=[1,0,0]) union() { cylinder(h=10,r=7.1); translate(v=[0,0,-...
glb/cad_7626a5f191c1.glb
Create a 3D model of Linked Cubes consisting of a large 3x3x3 grid of hollow cubes. Each individual small cube has an outer dimension of 15mm and a wall thickness of 2mm. The structure is formed by repeating a basic hollow cube unit, where each unit is composed of twelve 15mm bars with a 2mm square cross-section, arran...
t=2; s=15; d=1; l=s-t; module wuerfel () { cube ([s,t,t]); translate ([0,0,l]) cube ([s,t,t]); translate ([0,l,0]) cube ([s,t,t]); translate ([0,l,l]) cube ([s,t,t]); cube ([t,s,t]); translate ([l,0,0]) cube ([t,s,t]); translate ([0,0,l]) cube ([t,s,t]); translate ([l,0,l]) cube ([t,s,t]); cube ([...
glb/cad_fd57db1a3cb8.glb
Create a Customizable U Clip designed to grip a cylinder. Start by creating a hollow semi-cylindrical shell with a height of 15mm. The inner radius of this shell should be 9mm and the wall thickness should be 3mm. To form the open U-shape, remove a 90-degree wedge from the cylinder, leaving a 270-degree arc. At both op...
clipInnerRad = 9; clipThikness = 3; clipHeight = 15; supportWidth = 1; supportHeight = 0.3; rotate([0,0,-90]){ clip(ir=clipInnerRad-supportWidth/2,t=clipThikness+supportWidth,h=supportHeight); translate([0,0,supportHeigth])clip(); } module clip(ir=clipInnerRad,t=clipThikness,h=clipHeight){ difference(){ cylind...
glb/cad_5de5edcf60f5.glb
Create a codeFlake mandala by generating a series of 15 concentric, rotating geometric rings. For every odd-numbered iteration from 1 to 15, create a hexagonal ring with a cross-sectional radius of 1mm and a major radius of 6mm, positioned 9mm from the center. For every even-numbered iteration, create a triangular ring...
Sides1 = 3; Sides2 = 4; Rad1 = 7; Rad2 = 6; HexPosition1 = 5; HexPosition2 = 9; for (i = [1 : abs(1) : 15]) { rotate([0, 0, (30 * i)]){ if (i % 2 == 0) { translate([HexPosition1, 0, 0]){ rotate_extrude($fn=Sides1) { translate([Rad1, 0, 0]) { circle(r=1, $fn...
glb/cad_a693a961e874.glb
Create a winemaking siphon set consisting of a cap and a clip. For the siphon cap, create a cylinder with a height of 15mm and an outer radius of 6.15mm. Hollow out the center of this cylinder with a smaller cylinder of radius 4.75mm and a height of 20mm, leaving a base thickness of 1.4mm. To allow fluid flow, remove t...
include<utils.scad> tubeRad = 9.5 / 2; module siphoncap() { height = 15; padding = 3; thickness = 1.4; innerRad = tubeRad + padding; outerRad = innerRad + thickness; difference() { cylinder(r = outerRad, h = height); difference() { translate([0, 0, thickness]) cyl...
glb/cad_7230bc3942ef.glb
Create an RC control horn by constructing a base and an upright arm. Start with a rectangular base that is 20mm wide, 20mm deep, and 1mm thick. Centered on this base, add a vertical rectangular section that is 20mm wide, 1.5mm thick, and 10mm high. On top of this vertical section, place a rectangular plate that is 25mm...
$fn= 100; *cube([30,10,15], center = true); rotate([0,90+55,0]) difference() { union() {hull() { translate ([0,0,-0.5]) cube([20,20,0.1], center = true); translate ([1,0,0]) cube([19,18,1], center = true); } translate ([-1.3,0,4.5])cube([20,1.5,10], center = true); } translate ([0,0,3.5])#rotate([0,35,0])transl...
glb/cad_65ae33139e68.glb
Create a 9 Volt Battery Holder by constructing a rectangular box with a wall thickness of 2mm. The outer dimensions of the box should be 29mm in length, 51mm in height, and 20mm in width. Hollow out the center of the box to create a cavity that is 25mm long, 47mm high, and 16mm wide, leaving the bottom wall intact. A...
batHeight=43; batWidth=16; batLength=25; batTermHeight=4; batTermGap=12; batTermRad=6/2; clamp=0; wallThickness=2; tollerance=0.25; union(){ difference(){ translate([0,0,-wallThickness]) cube([batLength+wallThickness*2,batHeight+batTermHeight+batWidth/2+wallThickness*2,batWidth+wallThickness*2],true); cube([batLengt...
glb/cad_f09ca7d187d4.glb
Create a parametric cable hook with a total height of 35mm, a width of 10mm, and a wall thickness of 4mm. The main body is based on a hollow cylinder with an inside diameter of 11mm and an outside diameter of 19mm. Cut a gap into this cylinder at a 110-degree angle to create the hook opening. Extend a flat rectangular...
height = 35.0; width = 10.0; inside_diameter = 11.0; thickness = 4.0; cutout_angle = 110.0; screw_hole_offset = 10; screw_hole = 4.1; countersink_diameter = 8.2; countersink_enable = 1; diff_fudge = 1.0; cable_hook(); module cable_hook(height=height, inside_diameter=inside_d...
glb/cad_d2a6db39e421.glb
Create a glue shapes library model consisting of two identical thin square plates, each measuring 70mm by 70mm with a thickness of 5mm. Position the first plate centered at the origin. From this plate, remove a circular volume to create a female receiver socket. Position the second plate 40mm away from the first along ...
use <agentscad/glue.scad> color( "gold" ) glue_circle ( $fn=200 ); translate( [0,0,20] ) rotate( [-30,0,0] ) difference() { translate( [0,0,5/2] ) cube( [ 70, 70, 5 ], center=true ); # glue_circle_receiver ( $fn=200 ); } translate( [0,0,-20] ) rotate( [+30,0,0] ) difference() { translate( [0,0,-5/...
glb/cad_53455604ca43.glb
Create a sandglass kit consisting of a hollow cylindrical tube resting on an octagonal base. First, construct a solid cylinder with a radius of 19.5mm and a height of 27mm. Create a hollow center by removing a smaller internal cylinder that has a radius of 17mm and a height of 25mm, centered vertically within the large...
function i2mm(i)=i*25.4; rez=50; difference(){ cylinder(r=39/2,h=27,$fn=rez,center=true); translate([0,0,2]) cylinder(25,34/2,37/2,center=true,$fn=rez); } translate([0,0,-25/2]) cylinder(r=35,h=2,$fn=8,center=true);
glb/cad_1ff9516cfdff.glb
Create a sandglass kit consisting of two identical threaded caps and a central hourglass body. First, create two cylindrical threaded caps. Each cap is a cylinder with a height of 7mm and a radius of 13.25mm (calculated as the pitch radius of 9.25mm plus 4mm). Incorporate a right-hand trapezoidal thread into each cyl...
function i2mm(i)=i*25.4; use <./thread_lib/Thread_Library.scad> rez=50; length=7; pitch=2; pitchRadius=18.5/2; translate([0,0,.8]) bottlethread(); translate([0,0,-10.8]) bottlethread(); difference(){ translate([0,0,-1.5])rotate([180,0,0]) cylinder(r=pitchRadius+4,h=5.5,center=true,$fn=rez); union(){ translate(...
glb/cad_618103df82f6.glb
Create a Custom Cylinder Cover by constructing a shallow outer cylinder with a diameter of 67.5mm and a total height of 7.5mm. From the top surface, remove a concentric cylindrical core with a diameter of 62.5mm and a depth of 5mm, leaving a solid base at the bottom with a thickness of 2.5mm. This results in a hollow r...
d=62.5; h=2.5; rh=5; rt=2.5; rh1=rh+h; r=d/2; r1=r+rt; difference() { cylinder(rh1,r=r1,true,$fn=100); translate([0,0,h]) cylinder(10000000000,r=r,true,$fn=100);}
glb/cad_d95d153fd5a9.glb
Create a bowl called "Bowls from Cubes" by assembling a collection of 464 individual cubes, each measuring 3mm on a side. Position these cubes at the specific integer coordinates provided in the coordinate list to form a hemispherical shell. The overall shape is derived from a sphere with a radius of 28mm located in th...
basic_bowl_tiny(); module basic_bowl_tiny() { join_cubes(cubes,1,276,3); } module cube_bowl_large() { difference() { join_cubes(cubes,1,232,8); translate([4.55,5,5]) color("red") join_cubes(cubes,1,232,7); } } module cube_bowl_small() { difference() { join_cubes(cubes,1,232,...
glb/cad_40ad7d823d50.glb
Create a catapult arm by starting with a rectangular block 115mm long, 10mm wide, and 10mm high, positioned with its base at Y=55. Remove a cylindrical hole with a radius of 1.5mm and a length of 20mm, centered at X=45, Y=50, and Z=5, running lengthwise through the arm. Cut a 20mm cube out of the arm at a 315-degree an...
difference() { translate(v = [0,55,0]) { cube(size = [115,10,10], center = false); } translate(v = [45,50,5]) { rotate ([270,0,0]) { cylinder (h = 20, r=1.5, center = false, $fn=100); } } translate(v = [-4.3,50,-14]) { rotate ([0,315,0]) { cube(size = [20,20,20], center = false); } } translate(v = [104,56,...
glb/cad_94e805594a0c.glb
Create a Kiteman's catapult by starting with a rectangular base 65mm wide, 45mm deep, and 10mm thick. From this base, extend two vertical pillars upward to a height of 55mm. Each pillar should be 10mm wide and positioned 10mm from the side edges of the base, with one pillar at the front and one at the back. Connect th...
difference() { union() { linear_extrude (height = 10, center = false, convexity = 10, twist = 0) polygon (points=[[0,0],[65,0],[0,45],[65,45],[10,10],[55,10],[55,35],[10,35]], paths=[[0,1,3,2],[4,5,6,7]]); linear_extrude (height = 55, center = false, convexity = 10, twist = 0) polygon (points=[[10...
glb/cad_58aea133956d.glb
Create a round customizable case consisting of a base and a lid connected by a flexible hinge. The interior diameter of the case is 50mm with an interior height of 8mm. Both the base and lid are constructed as concentric tubes with a wall thickness of 1.2mm and a bottom floor thickness of 1.0mm. The base is a cylinde...
interiorDiameter = 50; interiorHeight = 8; lidInsetHeight = 2.4; hingeWidth = 16; wallHeight = 1.0; wallWidth = 1.2; rimInset = 0.6; lidInsetOffset = 0.0; hingeThickness = 0.4; hingeLengthScale = 1.5; tabSize = 1.5; filletRadius = 6; chamfer = 0.4; eps = 0.1; $fn = 120; module case() { module tube(h, od,...
glb/cad_1fce84edfc83.glb
Create a parametric dowel mount for a milk crate. Start by constructing a main rectangular block with a width of 24.5mm, a height of 33.5mm, and a depth of 15.7mm. From this block, remove a central rectangular section measuring 18.5mm by 27.5mm with a wall thickness of 3mm to create a U-shaped clip that fits over a cra...
tol=0.01; wall = 3; basket_top_height = 27.5; basket_top_width = 18.5; dowel_diam = 9.7; depth=dowel_diam + 2*wall; dowel_rad = dowel_diam/2; cyl_rad = basket_top_width/2+wall; union() { difference() { cube([basket_top_width+2*wall, basket_top_height+2*wall, depth]); translate([wall, wall, -tol]) cube([b...
glb/cad_8c7734470ec3.glb
Create two identical spool holder frame components. For each component, start by creating a base shape using a convex hull that encompasses five cylinders, each with a radius of 3mm and a height of 14mm. Position these cylinders at the following coordinates: (0,0,0), (40,0,0), (40,14,0), (0,14,0), and (20,32,0). From...
difference () { difference () { hull () { cylinder(r=3,h=14); translate([40,0,0]) cylinder(r=3,h=14); translate([40,14,0]) cylinder(r=3,h=14); translate([0,14,0]) cylinder(r=3,h=14); translate([20,32,0]) cylinder(r=3,h=14); } translate([-4,7,7]) rotate([0,90,0]) cylinder(r=4.2,h=48); } translat...
glb/cad_3c3270fb25b0.glb
Create a spool holder part by constructing a central composite cylinder and removing a vertical core. Start with a primary cylinder 32mm in diameter and 24mm high, topped with a wider, shorter cylinder 50mm in diameter and 15mm high. Attach four rectangular blocks to this central assembly: two blocks measuring 10mm by ...
difference() { union() { cylinder(r=16,h=24); cylinder(r=25,h=15); translate([-5,-37.5,0]) cube([10,75,15]); translate([-37.5,-5,0]) cube([75,10,15]); translate([-5,-50,0]) cube([10,100,5]); translate([-50,-5,0]) cube([100,10,5]); } translate([0,0,-1]) cylinder(r=4.2,h=26); }
glb/cad_f19faba952ac.glb
Create a miter box by starting with a solid rectangular block measuring 40mm in length, 30mm in width, and 30mm in height. Carve out a central rectangular channel from the top to create a space for material to slide through; this channel must be 40mm long, 20mm wide, and 25mm deep, positioned 5mm from the front and sid...
bladeWidth = 0.8; materialHeight = 20; materialWidth = 20; cutAngle = 45; miterBoxLength = 40; cutAngle2 = 90; difference () { miterBox(); bladePosition(); } module material () { cube([miterBoxLength, materialWidth, materialHeight+5]); } module miterBox () { difference () { cube([miterBox...
glb/cad_c6b28985b372.glb
Create a small bowl by starting with a sphere that has a diameter of 50mm and a low facet resolution of 10 sides. Flatten the bottom of this sphere by removing all material below the center point using a cube that is 200mm wide, 200mm deep, and 60mm tall, centered on the X and Y axes and positioned 50mm below the origi...
OD=50; ID=120; difference(){ difference(){ sphere(OD,$fn=10); translate([0,0,-50]) cube([200,200,60],center=true); } translate([0,0,95]) sphere(ID,$fn=10); }
glb/cad_2c2540b9a4d5.glb
Create a glasses temple piece. The part consists of a long, thin arm that transitions from a thicker mounting end to a slender tip. At the mounting end, create a cylindrical hub with a diameter of 8mm and a height of 3mm. This hub should have a central hole with a diameter of 2.5mm passing through its height. From ...
mirror([0,1,0]) mirror([0,0,1]) Temple(); path = [[16.12,31.15],[16.87,33.34],[18.07,35.32],[19.39,36.43],[21.6,37.5],[26.89,38.54],[31.94,39.09],[36.68,39.24],[40.8,39.24],[46.34,39.05],[51.8,38.71],[55.75,38.31],[60.36,37.43],[63.18,36.45],[65.59,35.29],[67.48,33.69],[68.88,31.91],[69.54,30.61],[69.65,30.36],[69.76,...
glb/cad_c1a3bfb4c5e1.glb
Create a drawer bracket by starting with a rectangular base measuring 27mm in length, 23mm in width, and 4mm in height. From this base, extend a raised section that transitions from a 6mm by 23mm rectangle at the back to a 25mm by 15mm rectangle at the front, maintaining the 4mm height. On the top surface of this raise...
difference() { cube([27,23,4]); translate([10,11.5,-1]) cylinder (h=17,r=2); translate([10,11.5,-1]) sphere (h,r=4); } hull() { translate([20,0,0]) cube([6,23,4]); translate([26,4,0]) cube([25,15,4]); } difference() { translate([0,6.5,2]) cube ([20,10,12]); translate([10,11.5,-1]) cylinder (h=17,r=2); ...
glb/cad_979cc8791af0.glb
Create a drawer bracket by starting with a rectangular base block measuring 41mm in width, 55mm in length, and 13mm in height. From this main volume, remove several rectangular sections to create a specific profile. First, carve out a large central rectangular void measuring 10mm wide, 30mm long, and 21mm deep, positio...
difference() { cube ([16,55,3]); translate([10,12,-1]) cylinder (h=5,r=2); translate([10,43,-1]) cylinder (h=5,r=2); } difference() { translate([14,0,0]) cube ([27,55,13]); translate([22,13,-1]) cube ([10,30,21]); translate([31,21.5,-1]) cube ([15,13,21]); translate([22,13,-1]) cube ([15,2,10.5]...
glb/cad_0d21b9a9c652.glb
Create a Sports Sight for Hot Shoe consisting of two identical separate elements. Each element is a hollow, rounded rectangular tube with a total length of 40mm and a wall thickness of 1.6mm. The outer dimensions of the tube are 40mm wide by 30mm high. For each element, integrate a mounting foot at the base. The foot ...
part = "_separated_"; form = "_rounded_"; type = "_straight_"; sight_lenght = 40; sight_width = 40; sight_height = 30; sight_diameter = 20; wall_thickness = 1.6; view_distance = 300; inner_sight_radius = 3; leg_width = 12.5; leg_height = 5; crosshairs_width = 0.8; crosshairs_length = 3.0; rear_aperture = 2...
glb/cad_6d8f7973018e.glb