Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a knurled nut knob with an overall diameter of 28mm and a height of 16mm. The main body is a cylinder featuring a knurled exterior surface for grip, where each knurl grip is 7mm wide and 5mm high with a depth of 2mm. The knurling should stop 2mm from the top and bottom edges. Centrally bore a vertical hole thro...
knob_dia = 28; knob_height = 16; hole_dia = 6; framethickness = 4; screwprotrusion = 4; screwlength = 19; screwheadheight = 4; fudge = 0.2; nut_radius = 6; nut_depth = knob_height + framethickness + screwprotrusion - screwlength; cutoutheight = nut_depth - screwheadheight; knurl_cutoff = knob_height-2; knurl_wi...
glb/cad_38e30249cce8.glb
Create a tripod head replacement part. Start by creating a knurled cylinder with an outer diameter of 25mm and a height of 25mm. On top of this base, add a smooth cylinder with a diameter of 17.5mm and a height of 17mm. To finish the geometry, remove a central vertical cylinder with a diameter of 16mm and a height of 1...
use <knurledFinishLib_v2.scad> part_h = 25; top_cover_h=10; top_part_d=17.5; difference(){ union() { knurl(k_cyl_hg=part_h, k_cyl_od=25); translate([0,0,part_h]){ difference(){ cylinder(d=top_part_d, h=17); translate([5,-(top_part_d/2),0,]) ...
glb/cad_f5333af96207.glb
Create a tripod head replacement connector. Start with a main body formed by the hull of a cylinder with a 25mm diameter and a rectangular block measuring 32mm by 12mm, both with a height of 13mm. Remove a central vertical cylinder with a diameter of 17.7mm and a height of 13mm from this body. Add a hinge component by...
include <../libs/hardware.scad>; connector_h=13; part_h=13; tolerance=0.2; cyl_d=17.5+tolerance; module mount_connector(){ difference(){ union(){ translate([1,27,13/2+5+1]) rotate([0, 90, 0]){ cylinder(d=13, h=15); difference(){ ...
glb/cad_c83e6363cad1.glb
Create a tripod head replacement part. Start with a central cylindrical ring that has an outer diameter of 17.7mm and a height of 14mm. Within this ring, create a hollow center with a diameter of 17.5mm. Integrate a mounting base by forming a hull between a cylinder of 25mm diameter and a rectangular block measuring ...
include <../libs/hardware.scad>; connector_h=14; cyl_d=17.5+0.2; part_h=16; module mount_hole(){ difference(){ union(){ difference(){ hull(){ cylinder(d=25, h=connector_h); translate([-part_h/2, 10, 0])cube([part_h, 12, connector_h]); ...
glb/cad_10a721c52b33.glb
Create a tripod head replacement part by starting with a solid cylinder 25mm in diameter and 25mm in height. Remove a central cylindrical hole with a diameter of 15.5mm and a depth of 15mm, measured from the bottom upward. At the top of the part, create a hexagonal nut slot with a diameter of 13mm and a height of 6mm. ...
$fn=100; part_h = 25; top_cover_h=10; nut_slot_h = 6; nut_slot_d = 13; difference(){ cylinder(d=25, h=part_h); cylinder(d=15.5, h=15); translate([0,0,part_h - top_cover_h]) cylinder(d=7,h=top_cover_h); translate([0, 0, part_h - nut_slot_h]) cylinder(d=nut_slot_d, h=nut_slot_h, $fn=6) ;...
glb/cad_7bba412e03b4.glb
Create a mini-tray for SMD components with overall dimensions of 135.9 mm in length, 106.7 mm in width, and 5.5 mm in height. Construct the main body as a rectangular frame with a wall thickness of 0.85 mm. The interior consists of a platter featuring a grid of pockets. Each pocket is defined by a body size of 5 mm b...
include <honeycomb.scad> include <shapes.scad> Part = 0; Type = "QFN"; BodySizeX = 5; BodySizeY = 5; PackageSizeX = 5; PackageSizeY = 5; Tolerance = 0.25; PocketDepth = 0.9; Separation = 0.5; PackageColumns = 14; PackageRows = 11; PackageColumnSpacing = 9.25; PackageRowSpacing = 8.85; trayLength = 135.9; ...
glb/cad_39844bfa8f9f.glb
Create a Flomasta Radiator Spacer by starting with a central rectangular block measuring 9.5mm in width, 6.5mm in depth, and 13mm in height, centered on all axes. Carve out a central vertical slot that is 1.5mm wide and 1.6mm deep at the base, extending upwards. Within this central channel, remove two rectangular secti...
$fn = 8; d0 = 2.56; d = 2.4; h = 10.5; difference() { translate([0,0,6.5]) cube([9.5, 6.5, 13], true); translate([0,0,0.7]) #cube([10, 1.5, 1.6], true); translate([-3.5,0,6.5]) #cube([2.6, 1.5, 13.2], true); translate([03.5,0,6.5]) #cube([2.6, 1.5, 13.2], true); trans...
glb/cad_1c14c698ff92.glb
Create a paint palette base plate with a total thickness of 7.84mm. The main body is a rectangular block that houses a grid of six paint wells and a row of brush holder holes. Arrange the paint wells in a 2x3 grid. Each well is a cylinder with a diameter of 25mm and a depth of 7mm. Position these wells with a 5mm gap...
$fa=1; $fs=0.5; gap = 5; holdGap = 3; bottom = 0.84; wellRows = 2; wellColumns = 3; wellDiameter = 25; wellDepth = 7; xMargin = 4; yMargin = 2; holdRows = 1; holdColumns = 5; holdDiameters = [ 10 , 7 ]; holdDepth = 20; wellEdge = min(wellDepth/3, 2); function maximum(arr, i = 0) = (i < len(arr) - 1) ? max(arr[i],...
glb/cad_4f14feb3842f.glb
Create a pump mount for a Gaggia Classic. Start with a rectangular base plate measuring 86mm wide, 50mm deep, and 5mm thick. Drill two 4mm diameter holes completely through the base: one positioned 5mm from the left edge and the other 5mm from the right edge, both centered along the depth of the plate. On top of this ...
$fn = 100; base = [ 86, 50, 5 ]; mount_hole = [ 5, base[1] / 2, 0 ]; mount_ledge = mount_hole[0] * 2; mount_hole_r = 2; spacer = 10; pump_padding = 2; pump = [ 54 + pump_padding, 32 + pump_padding, 40 ]; pump_ledge = 5; tube_r = 15 / 2; difference() { union() { difference() { cube(base); ...
glb/cad_41e58677ab12.glb
Create a beer bottle cap knob by constructing a circular disc with a central cylindrical protrusion. The main body is based on a ring with an outer diameter of 41.25mm and an inner diameter of 30mm. The top surface features a central cylinder with a diameter of 12mm and a height of 37.5mm, which contains a concentric h...
$fa = 5; $fs = 0.4; DA=27.5; DI=20; WALL=0.8; N=20; module toroid(da, di) { rotate_extrude(convexity=10) { translate([da/2-(da-di)/4,0,0]) circle(d=(da-di)/2); } } module pill(d, l) { sphere(d=d); translate([0,0, l-d]) sphere(d=d); cylinder(l-d, d/2, d/2); } module tr...
glb/cad_0c59bc42d0f5.glb
Create a cover for a face shield by starting with a rectangular base that is 122mm long, 26mm wide, and 6mm thick, with all edges rounded by a 1mm radius. Hollow out the center of this base by removing a rectangular volume 122mm long, 22mm wide, and 3mm thick, also with 1mm rounded edges, leaving a thin outer shell. Cu...
$fn=50; difference(){ minkowski(){ cube([120,24,4], center=true); rotate([0,90,0])cylinder(r=1, h=1, center=true); } minkowski(){ translate([0,0,0])cube([120,20,1], center=true); rotate([0,90,0])cylinder(r=1, h=1, center=true); } translate([0,0,2])cube([125,16,2], ce...
glb/cad_425df00d7e78.glb
Create a large bowl shaped like a bottle cap with an outer diameter of 137.5mm and a height of 35mm. The main body is a thick-walled cylinder with a hollowed-out center. The top rim features 20 evenly spaced, outward-facing trapezoidal ridges that create a scalloped edge. Along the outer vertical wall, add 20 small, ra...
$fa = 5; $fs = 0.4; DA=27.5; DI=20; WALL=0.8; N=20; module toroid(da, di) { rotate_extrude(convexity=10) { translate([da/2-(da-di)/4,0,0]) circle(d=(da-di)/2); } } module pill(d, l) { sphere(d=d); translate([0,0, l-d]) sphere(d=d); cylinder(l-d, d/2, d/2); } module tr...
glb/cad_d900042b32d5.glb
Create an Ortlieb QL2 adapter for an ACID Integrated Carrier 3.0. Start by creating a central cylinder with a diameter of 16mm and a height of 20mm, centered on the origin. Merge this cylinder with a centered rectangular block measuring 14mm by 16mm by 20mm. From this combined solid, remove several geometric sections...
$fn=100; difference() { union() {cylinder(d=16,h=20,center=true); translate([8,0,0])cube([14,16,20],center=true); translate([3,-8.5,0])cube([7.25,1,3],center=true); }; translate([2.5,0,0])cylinder(d=10.2,h=21,center=true); translate([11,0,0])cube([17,10.2,21],center=true); translate([15,0,0])rotate([0,0,45])cube([10,1...
glb/cad_21c744c43796.glb
Create a Starfleet Earpiece prop consisting of a tiered cylindrical body and a protruding top element. Start with a central vertical cylinder 28mm high with a diameter of 20mm. Add six decorative discs along its height, each 1.25mm thick and 26mm in diameter, spaced every 4mm to create a ribbed effect. At the base, a...
module pinhole(h=16, r=4, lh=3, lt=1, t=0.3, tight=true) { union() { pin_solid(h, r+(t/2), lh, lt); if (tight) { cylinder(h=h+t, r=r, $fn=30); } else { cylinder(h=h+t, r=r+(t/2)+t, $fn=30); } translate([0, 0, -0.1]) cylinder(h=lh/3, r2=r, r1=r+(t/2)+(lt/2), $fn=30); } } modu...
glb/cad_7682066cbc97.glb
Create a soundbar stand consisting of two identical mirrored legs. Each leg is based on a main body that is 139.7mm long, 82.4mm wide, and 17.1mm thick. The main body is tilted at a 10-degree angle. On the upper surface of each leg, add a rectangular mounting tab measuring 17.5mm long, 27mm wide, and 3mm thick. Cente...
$fa=2; $fs=1; tab_thick=3; tab_length=17.5; tab_width=27; hole_height=2.6; hole_dia_s=3.9; hole_dia_l=7.6; top_length=25; bottom_length=25; edge_length=8.2; width=82.4; thick=17.1; length=139.7; angle=10; end_offset=2; module leg(){ translate([-90,0,thick/2-.4]) rotate([0,-100,-90]) union(){...
glb/cad_3f87b13d0604.glb
Create a shower bracket with a total height of 16mm. Start with a main cylindrical body 17mm in diameter and 16mm high. Hollow out the center of this cylinder with a tapered hole that narrows from 10.4mm at the bottom to 10.2mm at the top. Cut a notch through the main body using a cylinder 18.5mm in diameter, centered ...
$fa=5; $fs=1; height=16; dia_out=17; dia_in_bottom=10.4; dia_in_top=10.2; length=19.5; width=5.9; dia_bolt=6.2; radius=8.75; loc_notch=[-8.5,16.75,height/2]; loc_side=[-2.7,5,0]; loc_bolt=[-2.7,16.75,height/2]; loc_rnd_cyl=[-2.7,15.75,height/2]; loc_rnd_cube=[-2.7,dia_in_bottom/2,0]; dia_notch=18.5; bevel=10.75; ...
glb/cad_0a89321aa399.glb
Create a 40mm fan ADXL345 mount by starting with a base plate 5.8mm thick. The main body is formed by the convex hull of four cylinders, each 10mm in diameter and 5.8mm high: two positioned at x = ±16mm, y = 16mm, and two positioned at x = ±7.5mm, y = 26mm. From this base, remove a central cylinder with a diameter of...
$fan_size = 40; $screw_distance = 32; $adxl_screw_distance = 15; $part_height = 5.8; $screw_head_height = 3; $screw_head_diameter = 5.45; $fn = 64; module remove_parts() { $head_move = ($part_height - $screw_head_height); translate([-$screw_distance/2, $screw_distance/2, 0]) cylinder(h = $part_height * 2, d ...
glb/cad_7bd4e2648788.glb
Create a cabinet lock latch by starting with a rectangular base that is 75mm wide, 20mm deep, and 7.5mm thick. Apply a 5mm fillet radius to all four corners of the base. Cut two identical symmetrical holes through the thickness of the base to accommodate cabinet knobs. Each hole consists of a circular opening with a ...
$fn=100; partWidth=75; partHeight=7.5; partDepth=20; roundness = 5; holeDiameter=13; holeDistance=28.5; centerDistance=(holeDiameter/2)+holeDistance/2; difference(){ { minkowski(){ cube([partWidth, partDepth, partHeight],center=true); cylinder(h=1, r=roundness);} translate([centerDistance...
glb/cad_7fc5b1485b43.glb
Create a star stencil consisting of a series of concentric six-pointed star rings and a central support. Generate eight hollow six-pointed stars with a height of 3mm. The stars should range in size from a minimum outer radius of 25mm to a maximum outer radius of 95mm, increasing in increments of 10mm. For each star, th...
$fa = 1; $fs = 0.4; EDGES= 6; module star(edges, ro, ri, ratio, h) { angle = 360/edges; list1 = [for (a=[1:1:edges*2]) [(a%2)==0 ? ro*cos(a/2*angle): ri*cos(a/2*angle), (a%2)==0 ? ro*sin(a/2*angle): ri*sin(a/2*angle)] ]; linear_extrude(h){ difference(){ ...
glb/cad_0fe1b2a9dcae.glb
Create a mount for a 12mm aiming laser to attach to a 24mm lens tube. The main body is a hollow cylinder with an outer diameter of 28mm and an inner diameter of 24mm, with a wall thickness of 2mm and a total height of 3mm. The cylinder is split by a gap to allow it to be clamped. Attached to one side of the cylinder ...
$fn=100; module attach() { difference() {minkowski() {cylinder(d=35,h=14,center=false); sphere(d=5);} translate([0,0,1]) cylinder(d=32,h=18,center=false); translate([-20,0]) cube([40,100,50],center=true); rotate([0,0,-90]) translate([-20,0,0]) cube([40,100,50],center=true); rotate([0,0,-60]) translate([-17.5,0,0]) cube...
glb/cad_854550a5d1c9.glb
Create a Paint Stand cleaning tool consisting of a wide, shallow basin with a central mounting spike. Start by creating a solid circular base with a radius of 70mm and a thickness of 2mm. Around this base, add a concentric outer wall that is 30mm high; this wall should be a hollow truncated cone with a bottom radius of...
t=2; wallh=30; cylinder(r=70,h=t,$fn=res); difference(){ cylinder(r1=80,r2=90,h=wallh,$fn=res); translate([0,0,t]) cylinder(r1=30-t,r2=90-t,h=wallh,$fn=res); } cylinder(r1=15,r2=0,h=70);
glb/cad_a71c6e8a13fd.glb
Create a garden trellis bracket by combining two intersecting rectangular blocks with cylindrical holes. First, create a horizontal rectangular block measuring 66mm by 66mm by 45mm. Center a cylindrical hole with a radius of 22mm through the length of this block along the Y-axis. Second, create a vertical rectangular b...
ra = 12; rb = 22; ro = rb + 10; l = 30; offset = ro*1.5; translate([0,0,offset]) difference(){ cube([2*ro,2*ro,offset],center=true); cylinder(h=offset,r=ra,center=true); } rotate([90,0,0]) difference(){ cube([2*ro,2*ro,4*ro], center=true); cylinder(h=4*ro,r=rb,center=true); }
glb/cad_6304cca3d23a.glb
Create a garden trellis bracket by starting with a central cube that is 33mm on all sides, centered at the origin. Remove a vertical cylindrical hole with a radius of 12mm that passes completely through the center of the cube along the Z-axis. Additionally, remove a horizontal cylindrical hole with a radius of 22mm tha...
ra = 12; rb = 22; ro = rb + 2; l = 30; offset = ro*1.1; translate([0,0,offset]) difference(){ cube([offset,offset,offset],center=true); union(){ cylinder(h=offset,r=ra,center=true); translate([0,0,-offset]) rotate([90,0,0]) cylinder(h=4*ro,r=rb,center=true); } } rotate([90,0,0]) di...
glb/cad_8968663ef5a3.glb
Create a Bathtub Overflow Stopper consisting of a tapered outer shell and a central lip. Start by creating a hollowed conical shell with a height of 14.62mm. The outer wall of this shell should taper from a bottom diameter of 104.52mm to a top diameter of 97.7mm. The interior of this shell is hollowed out by a conical ...
ovflow_depth = 11.2 * 1.1; ovflow_d = 87 * 1.1; ovflow_slot_w = 80; ovflow_slow_d = 30; stopper_t = ovflow_depth/5; stopper_h = ovflow_depth + 2 + ((3/2)*stopper_t); stopper_d_top = ovflow_d + 1; stopper_d_bot = ovflow_d*(1.2); lip_h = 2; lip_d1 = 15; lip_d2 = 10; outer_case_t = 60; tip_ovflow_d = 23; flatten_by = ...
glb/cad_b1dff453653f.glb
Create a dishwasher basket bottom tile by starting with a solid rectangular block measuring 36.9mm wide, 54mm deep, and 5mm thick. Carve a series of parallel, diagonal slots through the center of the block to create a grate. Each slot must be 2mm thick and spaced 2mm apart, center-to-center. Orient these slots at a 45-...
module basket_base_tile( basex=36.9, basey=52.44, slot_thickness=2, T=5, slot_angle=45 ) { q = (basey/slot_thickness)/4; difference(){ cube([basex, basey, T], center=true); differ...
glb/cad_d3ea7df455a4.glb
Create a sink screen consisting of a circular grate and a central handle. Start with a flat, circular ring with an outer diameter of 113mm and a thickness of 4.1mm. Within this ring, create a grid of square holes by intersecting the ring with a series of crossing bars, each 1mm wide and 4.1mm thick, spaced 6mm apart. R...
sink_diam = 113; sink_depth = 20; sink_inner_diam = 87; handle_d = 20; handle_h = 14; tip_handle_d = 23; flatten_by = 5; lip_thickness = 4.1; wall_thickness = 5; waffle_width = 1; grate_width = 6; res = 90; module screen() { union() { difference() { union() { translate([0,0,handle_...
glb/cad_f5f02294ad90.glb
Create an Egg Skoushe by constructing a hollow rectangular shell. Start with a solid rectangular prism that is 582mm deep, 325mm wide, and 295mm high. From the center of this volume, remove a smaller rectangular prism to create the interior cavity. This inner cutout must be 582mm deep, 325mm wide, and 295mm high, but i...
egg_diam = 65; fridge_depth = 582; fridge_height = 295; fridge_thickness = 10; module fridge_space(){ difference(){ cube([fridge_depth+fridge_thickness, (egg_diam*5)+fridge_thickness, fridge_height+fridge_thickness], center=true); cube([fridge_depth*2, egg_diam*5, fridge_hei...
glb/cad_3785060566ea.glb
Create a drying peg consisting of a vertical cylindrical shaft and a rounded top. Start by creating a cylinder with a diameter of 9mm and a total height of 115mm. At the top of this cylinder, place a hemisphere with a radius of 4.5mm so that its flat base aligns perfectly with the top face of the cylinder, creating a s...
h_spacing = 75; v_spacing = 90; holder_depth = 25.4; module drypeg(overLength, diam1, diam2, diam_holder){ cylinder(h = overLength, d = diam1, $fn = 30); translate([0,0,overLength])sphere(r = diam1/2,$fn = 30); translate([0,0,holder_depth]) cylinder(h = 10, d1 = diam2, d2 = diam1); } drypeg(125-10, 9, 9, 9....
glb/cad_47f63f15e682.glb
Create a named knob set consisting of a base tag and two handle poles. First, create a flat name tag by extruding the text "Pants" to a height of 5mm. Enclose this text within a hull formed by two cylinders, each with a diameter of 16mm and a height of 2mm, positioned at the start and end of the text to create a rounde...
name = "Pants"; lengthOfNameTag = [35,0,0]; heightOfPole = 30; radiusOfPole = 9; radiusOfCutout = 6; translate([0,-4,0]) linear_extrude(height = 5) text(name); hull(){ cylinder(h=2,d=16); translate(lengthOfNameTag) cylinder(h=2, d=16); } difference(){ translate([0,40,0]) cylinder(h=heightOfPole, d=rad...
glb/cad_d28eee97a867.glb
Create an SAE Cal calibration object by constructing a composite shape from three intersecting rectangular prisms, all sharing a common origin point. The first prism should have a width of 15.875mm, a depth of 7.9375mm, and a height of 7.9375mm. The second prism should have a width of 7.9375mm, a depth of 15.875mm, and...
a=5/16; b=1/4; c=7/32; d=3/16; e=5/32; f=1/8; g=7/64; h=3/32; i=5/64; j=1/16; k=3/64; l=1/32; n=[a,b,c,d,e,f,g,h,i,j,k,l ]; j=0; for (i = [0 : 1 : 0]){ translate([(i*1),i*mod(i,2),0]){ union(){ cube([2*n[i],n[i],n[i]]); cube([n[i],2*n[i],n[i]]); cube([n[i],n[i],2*n[i]]); } } } echo(2%5)...
glb/cad_d0a781d4539b.glb
Create a Thrustmaster Throttle Mod by constructing a truncated cone with a height of 2mm, centered on the origin. The base of the cone should have a diameter of 7mm and the top should have a diameter of 9mm. From the center of this shape, remove a cylindrical hole with a diameter of 4mm and a height of 5mm to create a ...
difference(){ cylinder(h=2, d1=7, d2=9, center=true, $fn=50); cylinder(h=5, d=4, center=true, $fn=50); }
glb/cad_d7d551543687.glb
Create a front sight insert consisting of concentric rings and two side tabs. Start with a flat base thickness of 0.5mm. Create an outer ring with an outer diameter of 15.6mm and an inner diameter of 13.1mm. Inside this, center a second, smaller ring with an outer diameter of 5.6mm and a hole in the center with a diame...
support_type = "sides"; size = 4.0; inner_ring_thickness = 2.0; ring_bar_height = 1.6; decimal_point = ","; offset = -0.4; size_string = str(floor(size), decimal_point, (size-floor(size))*10); size_adjusted = size - offset; inner_ring_thickness_adjusted = inner_ring_thickness + offset; thickness = 0.5; infinitesi...
glb/cad_a50f32898eb1.glb
Create a Wheel Bearing Grease Cap Fitting Tool by constructing a thick-walled cylindrical ring with a recessed center. The tool has an outer diameter of 67mm and an overall height of 25mm. The interior is hollowed out to create a cylindrical cavity with a diameter of 59mm and a depth of 18mm. The bottom interior corn...
$fa = 1; $fs = 0.1; inner_diam = 59; outer_diam = 67; inner_height = 18; outer_height = 25; inner_fillet = 3; outer_fillet = 1; rotate_extrude() difference(){ outer_semi_section(); translate([0,outer_height-inner_height,0]) inner_semi_section(); } module inner_semi_section(){ hull(){ polygon([[0,...
glb/cad_53e68d8c3e01.glb
Create a Tea Light Adapter consisting of a central cylindrical holder and two extending mounting tabs. Start by creating a solid cylinder with a diameter of 41.75mm and a height of 18.75mm. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a diameter of 37.75mm and a height of 16.7...
$VERBOSE=1; custom_height=16.75; diameter=41.75; hole_diameter=3.1; on_center=59.4; $ROUND=1; custom_wall=2; custom_depth=8.5; round_corner=2; wall=custom_wall; r=diameter/2; width=on_center+(6*wall); depth=custom_depth; height=custom_height+wall; make_TeaLightAdapter(); module make_TeaLightAdapter(){ ...
glb/cad_4fde31e6b2da.glb
Create two identical mounting brackets for a USB hub. Each bracket consists of a retaining ring and a mounting lug. First, create the retaining ring by forming a hull between a circle with a diameter of 11.15mm and a circle with a diameter of 18mm, spaced 37.25mm apart from tangent to tangent. Extrude this profile to...
mode = "both"; innerClearance = 0.15; smallDia = 11.15; largeDia = 18; totalDist = 37.25; wallThick = 2; usbZ=5; screwDia=3.47; screwHead=6.6; screwThick=5; module usbProfile() { hull(){ circle(d=smallDia,$fn=60); translate([totalDist - (smallDia/2 + largeDia/2),0]){ circle(d=largeDia,$fn=60);...
glb/cad_112e41e20b61.glb
Create a GoPro mount for a 22.2mm handlebar. The model consists of a handlebar clamp connected to a GoPro-style triple-prong connector via a short extension. First, construct the handlebar clamp. Create a cylindrical ring with an inner diameter of 24mm and a wall thickness of 3.2mm. Leave a gap of 2.4mm in the ring to...
gopro_primary="triple"; gopro_secondary_what="clamp"; gopro_secondary_rotated=1; gopro_ext_len=40; gopro_ext_th=3; gopro_captive_rod_id= 3.8; gopro_captive_rod_angle= 45; gopro_rod_nut_th= 3.6; gopro_rod_nut_od= 8.05; gopro_captive_protruding_h= 0.5; gopro_bar_rod_d= 24; gopro_bar_th= 3.2; gopro_bar_gap= 2....
glb/cad_34f1d8dae7ab.glb
Create a parametric electronics box consisting of a main enclosure and a matching lid. The main box has overall external dimensions of 41.4mm in width, 81.8mm in depth, and 22.4mm in height. The walls are 2.4mm thick. The interior is divided into three equal compartments, each with an internal width of 31mm, depth of 7...
part = 0; wt = 2.4; lss = [ 2, 2, 2 ]; is = [ 31, 74.5, 18 ]; ms = [ 24.5, 68.5 ]; sd = 5; md = 2.0; oc = 3; tim = .4; tg = 0; tgwt = 5; lh = []; rh = []; fh = [ [ 20, 10, 31/2, false, wt + lss[2] ], [ 20, 10, 31/2, false, wt + lss[2] ], [ 20, 10, 31/2, false, wt + lss[2] ] ]; bh = [ [ 1...
glb/cad_c5c376b3bf25.glb
Create a Wemos D1 mini box consisting of a main body and a separate lid. For the main body, create a hollow rectangular container with a base footprint of 26mm by 34.5mm and a total height of 24mm. The walls should be 2.4mm thick. Inside the box, add three horizontal support ribs of 2mm width and 3mm height: one posi...
board_x = 26.0; board_y = 34.5; board_corner = 1.0; bottom_height = 24; usb_x = 13; usb_z = 7; usb_x_pos = 7; usb_z_pos = -1; wall_thick = 2.4; stud_height = 3; stud_width = 2; extra_room = 17.5; module perimeter(expand, extra_y) { polygon(points=[ [-expand, -expand], [-expand, board_y-board_cor...
glb/cad_f22f8be5eebe.glb
Create a bicycle seatpost clamp by starting with a main body formed from the convex hull of a cylinder with a diameter of 40.9mm and a height of 12mm, combined with a transverse cylinder of 12mm diameter and 26mm length centered on the outer edge. From this volume, remove a central vertical cylinder with a diameter of ...
$fn=140; d_seattube=34.9; d_outer=d_seattube+6; module M5_Mutter() { intersection() { cube ([8,8,10], center=true); rotate ([0,0,45]) cube ([8,8,10], center=true); } } rotate ([180,0,0]) difference () { hull() { union() { cylinder (d=d_outer, h=12, center=true); ...
glb/cad_5e2c0b89f125.glb
Create a Tongsheng VLCD5 Light Mount ring adapter by starting with a sphere that has a diameter of 38mm. Slice this sphere to create a band with a total height of 14mm, centered on the sphere's origin. Remove a cylindrical core from the center of this band with a diameter of 31.8mm to create a hollow ring. Finally, cut...
$fn=160; module base_ring() { intersection () { sphere (d=38, center=true); cube ([40,40,14], center=true); } } module ring_adapter() { difference () { base_ring (); cylinder (d=31.8, h = 100, center=true); cube ([40,2,40], center=true); } } ring_adapte...
glb/cad_98f7d04f7259.glb
Create a Tongsheng VLCD5 Light Mount by starting with a central rectangular block measuring 40mm wide, 20mm deep, and 20mm high, centered on the origin. Carve a rectangular slot through the bottom of this block that is 60mm wide, 12mm deep, and 8.3mm high, centered at [0, -5, 0]. Attached to the top of this block, ce...
$fn=120; module M5_Mutter() { weite=8.1; intersection () { cube ([weite,weite,10], center=true); rotate ([0,0,45]) cube ([weite,weite,10], center=true); } } module lampenhalter() { difference () { hull() { cylinder (d=14, h=8, center=true); translate ([-15,0,0]) cube ([10...
glb/cad_0813c3ab67a8.glb
Create a captive magnet holder for a bike spoke. Start by constructing a flat base that is 24mm long and 10mm wide, with a thickness of 2mm. The base should have rounded ends, formed by the convex hull of two 10mm diameter cylinders positioned 24mm apart. In the center of this base, add a cylindrical protrusion that is...
$fn=160; Breite=24; Hoehe=10; module magnet () { cylinder(d=4.1, h=2, center=true); } difference () { union() { hull() { translate ([0.5*Breite,0,0]) cylinder (d=Hoehe, h=2, center=true); translate ([-0.5*Breite,0,0]) cylinder (d=Hoehe, h=2, center=true); } translate ([0,0,1.5]) cylinder ...
glb/cad_d2822d67060d.glb
Create a torque arm for a hub motor axle with a total thickness of 4mm. Start by constructing the main body as a hull that connects a 26mm diameter circle centered at the origin to a 12mm diameter circle centered at x=12mm. Extend this shape by creating a second hull that connects the 12mm circle to another 12mm circle...
$fn=100; Axle_Diameter=16.1; Screw_Diameter=6.2; Axle_Angle=30; Length_TA=30; Width_TA=12; module TA_Part1 () { circle (d=26, center=true); } module TA_Part2 () { translate ([12, 0, 0]) { circle (d=Width_TA, center=true); } } module TA () { hull () { TA_Part1 (); TA_Part2...
glb/cad_f36b4e6e2d3d.glb
Create a torque arm for a hub motor axle with a total thickness of 5mm. Start by constructing the main body as a hull connecting two circles: a larger circle with a 24mm diameter centered at the origin, and a smaller circle with a 10.5mm diameter centered 30mm away along the x-axis. From this body, remove a central a...
Axle_Diameter=14.5; Axle_Angle=0; Length_TA=30; Screw_Diameter=6; module TA_Part1 () { circle (d=24, center=true); } module TA_Part2 () { translate ([Length_TA, 0, 0]) { circle (d=10.5, center=true); } } module TA () { hull () { TA_Part1 (); TA_Part2 (); } } module Axl...
glb/cad_3aeab14adc9c.glb
Create a torque arm for a hub motor axle with a total thickness of 6mm. The main body is formed by the convex hull of a 29mm diameter circle centered at the origin and a 15mm diameter circle centered at x=12mm, which is then extended linearly along the x-axis to a length of 44mm. Cut two holes through the entire thic...
$fn=160; Axle_Diameter=16.1; Screw_Diameter=6.2; Axle_Angle=30; Length_TA=44; Width_TA=15; module TA_Part1 () { circle (d=29); } module TA_Part2 () { translate ([12, 0, 0]) { circle (d=Width_TA); } } module TA () { hull () { TA_Part1 (); TA_Part2 (); } hull () { ...
glb/cad_8a4a839fa9d3.glb
Create a torque arm with a thickness of 6mm. The main body is formed by the union of three convex hulls. The first hull connects two 10mm diameter circles centered at [60, 0] and [0, 0]. The second hull connects a 10mm diameter circle at [0, 0] to another 10mm diameter circle centered at [-46, -22]. The third hull conn...
$fn=100; Screw_Diameter=6.2; Slot_Width=3; module TA_Part1 () { translate ([60,0,0]) { circle (d=10); } } module TA_Part2 () { circle (d=10); } module TA_Part3 () { translate ([-6, 6, 0]) { circle (d=6); } } module TA_Part4 () { translate ([-10, 10, 0]) { circle (d...
glb/cad_a51ca2871b77.glb
Create a torque arm for a hub motor by designing a flat plate with a thickness of 6mm. The main body is formed by the union of three convex hulls. The first hull connects two 10mm diameter circles, one centered at [60, 0] and one at [0, 0]. The second hull connects a 10mm diameter circle at [0, 0] to another 10mm diame...
$fn=100; Screw_Diameter=6.2; Slot_Width=3; d_laenge=30; d_hoehe=26; module TA_Part1 () { translate ([60,0,0]) { circle (d=10); } } module TA_Part2 () { circle (d=10); } module TA_Part3 () { translate ([-6, 6, 0]) { circle (d=6); } } module TA_Part4 () { translate ([-10, 1...
glb/cad_0b27a6de1ab7.glb
Create an LCD8 mount adapter ring by starting with a sphere that has a diameter of 34mm. Slice this sphere to a total height of 23mm by centering a cube with dimensions of 40mm by 40mm by 23mm over it and keeping only the intersection of these two shapes. From this resulting spherical band, remove a central cylindrical...
$fn=140; module base_ring() { intersection () { sphere (d=34, center=true); cube ([40,40,23], center=true); } } module ring_adapter() { difference () { base_ring (); cylinder (d=31.8, h = 100, center=true); cube ([40,2,40], center=true); } } ring_adapte...
glb/cad_f6bd317a9b3c.glb
Create an E-Bike Controller Mount designed to fit a seat tube with a diameter of 34.9mm. The main body is a longitudinal holder with a total length of 167.5mm. Construct the main form by creating two identical base profiles positioned at each end of the length. Each profile is a hull formed between a 14mm diameter cy...
$fn=150; length_controller=167.5; tube_diameter=34.9; module seattube () { cylinder (d=tube_diameter, h=2*length_controller, center=true); } module base_part() { hull() { translate ([0,0,7]) cylinder (d=14, h=2, center=true); translate ([0,0,-6]) cylinder (d=22, h=2, center=true); } } m...
glb/cad_1c9a01845a6d.glb
Create a wall mount for an e-bike charger consisting of three rectangular plates, each 4mm thick, joined to form an L-shaped bracket. The base plate is 80mm wide and 120mm long. Attached perpendicularly to this base is a vertical back plate measuring 54mm wide and 120mm long, positioned 38mm from the center of the base...
module winkel () { cube ([80,120,4], center=true); rotate ([0,90,0]) translate ([25,0,38]) cube ([54,120,4], center=true); translate ([52,0,-50]) cube ([30,120,4], center=true); } module bohrung () { cylinder(h = 8, r=2, center = true, $fn=100); } difference() { winkel(); translate ([56,50,-50]) bohrun...
glb/cad_ffaea9f8ce1d.glb
Create a spool adapter block for an Ender 3 printer by starting with a solid rectangular prism measuring 39mm in width, 20mm in depth, and 60mm in height. Center the block on the origin. Remove two vertical cylindrical holes, each with a radius of 3mm, positioned 19mm apart along the width axis. On the front and back f...
module block () { cube ([39,20,60], center=true); } module bohrung () { cylinder(h = 60, r=3, center = true, $fn=100); } module vertiefung () { $fn = 100; hull() { translate ([0,-10,0]) cylinder (d=32, h=2.2, center=true); translate ([0,10,0]) cylinder (d=32, h=2.2, center=true); } } differen...
glb/cad_42fbe740f889.glb
Create a Todo List template consisting of a flat rectangular plate measuring 110mm by 140mm with a thickness of 1mm. Centered on the plate, carve 13 parallel horizontal slots, each 92mm wide and 1.2mm thick, spaced 10mm apart. These slots should be distributed from y = -60mm to y = 60mm. Along the right edge of the pla...
$fn=100; module Platte () { cube ([110,140,1], center=true); } module Linie () { cube ([92,1.2,2], center=true); } module Loch () { cylinder(h = 8, r=2, center = true, $fn=100); } difference() { Platte(); i=0; for(i = [ -60 : 10 : 60 ]) { translate ([48,i+2,0]) Loch(); translate ([...
glb/cad_fc87cf49cd9c.glb
Create a Busch und Müller IQ-X E headlight holder consisting of a tapered ring with an integrated mounting tab. Start by creating a hollow ring with a height of 12mm. The outer diameter of the ring should taper from 44.5mm at the bottom to 46.5mm at the top, while the inner diameter tapers from 41.5mm at the bottom to ...
$fn=300; d_hinten=41.5; d_vorn=d_hinten+2; staerke=3; module outer_ring() { cylinder(h=12, d1=d_hinten+staerke, d2=d_vorn+staerke, center=true); } module inner_ring() { cylinder(h=12, d1=d_hinten, d2=d_vorn, center=true); } module Halterung () { difference () { hull () { cylinder (h...
glb/cad_8c8811d3bc39.glb
Create a Handle Bob adapter by starting with a central cylinder 50mm high with a 22mm diameter. Hollow out this cylinder by removing a smaller concentric cylinder 18mm in diameter and 120mm high to create a tube. Position a second, solid cylinder with a 24mm diameter and 50mm height so that it intersects the first tube...
$fn=100; module Basetube () { difference () { cylinder(h = 50, d=22, center = true); cylinder(h = 120, d=18, center = true); } } module Handlebar () { cylinder(h = 50, d=24, center = true); } difference () { translate ([0,25,0]) rotate ([90,0,0]) Basetube(); translate ([0,0,0]) rotate (...
glb/cad_d39cecc5dda2.glb
Create a power strip holder designed to secure a rectangular socket. Start by constructing a U-shaped base consisting of a flat bottom plate and two vertical walls. The overall outer dimensions of the main body should be 16mm wide, 70mm long, and 50mm high. The vertical walls are positioned such that they create a cent...
$fn=200; module Steckdose () { cube ([50,57,42],center=true); } difference() { union() { cube ([16,70,50],center=true); translate ([0,31,22]) cube ([16,25,6],center=true); translate ([0,43,22]) cylinder (d=16,h=6,center=true); } translate ([0,0,4]) Steckdose(); translate ([0,43,0...
glb/cad_737393477251.glb
Create an SD Card and USB Stick Organizer starting with a rectangular base plate measuring 130mm in length, 80mm in width, and 10mm in height. Carve 12 rectangular slots for SD cards into the top half of the plate. Each slot must be 26mm long, 3mm wide, and 32mm deep. Position these slots in a single row along the x-...
module base_layer() { staerke=0.2; durchmesser=40; hull() { rotate_extrude(convexity = 10) translate([0.5*durchmesser, 0, 0]) circle(d = 0.5*staerke); } } module SD_Card () { cube ([26,3,32],center=true); } module USB_Stick () { cube ([13,5.5,10],center=true); } ...
glb/cad_6219320f57cd.glb
Create a Supernova Taillight clone housing. Start by creating a base shape using a hull operation that connects two cylinders, each with a radius of 6mm and a height of 4mm, positioned at the coordinates (-40, 0, 0) and (40, 0, 0) respectively. This results in a pill-shaped slab 80mm long, 12mm wide, and 4mm thick. Fr...
$fn=200; Abstand_Bolzen=80; module base () { hull() { translate ([-0.5*Abstand_Bolzen,0,0]) cylinder (r=6, h=4, center=true); translate ([0.5*Abstand_Bolzen,0,0]) cylinder (r=6, h=4, center=true); } } module Gehaeuse() { difference () { union() { base(); } translate ([-0.5*Abstand_Bolzen,0...
glb/cad_ea911eb4fde5.glb
Create a Supernova Taillight clone housing. Start by creating a base shape using a hull operation between two cylinders, each with a radius of 6mm and a height of 10mm, positioned 24mm apart (centered at x=12 and x=-12). Create a second, inner hull shape using two cylinders with a radius of 4.5mm and a height of 20mm, ...
$fn=200; Abstand_Bolzen=50; module Sockel () { difference () { cylinder(h = 12, r=5, center = true); cylinder(h = 30, r=1.4, center = true); } } module base () { hull() { translate ([-0.5*Abstand_Bolzen,0,0]) cylinder (r=6, h=5, center=true); translate ([0.5*Abstand_Bolzen,0,0]) cy...
glb/cad_69fafc720680.glb
Create a Supernova Taillight clone housing. Start by creating a base shape using a hull operation between two cylinders, each with a radius of 6mm and a height of 5mm, positioned 50mm apart along the x-axis. On top of this base, add a second hull shape created from two cylinders with a radius of 4mm and a height of 10m...
$fn=200; Abstand_Bolzen=50; module Sockel () { difference () { cylinder(h = 12, r=5, center = true); cylinder(h = 30, r=1.4, center = true); } } module base () { hull() { translate ([-0.5*Abstand_Bolzen,0,0]) cylinder (r=6, h=5, center=true); translate ([0.5*Abstand_Bolzen,0,0]) cy...
glb/cad_c15679067521.glb
Create a drill and countersink holder by starting with a rectangular block measuring 25mm wide, 110mm long, and 20mm thick. Center the block on the origin. Remove a horizontal cylindrical tunnel with a radius of 2mm and a length of 30mm that passes completely through the 25mm width, positioned at the top and bottom edg...
$fn=100; breite=110; difference() { cube([25,breite,20],center=true); translate ([0,-0.45*breite,0]) rotate ([0,90,0]) cylinder (r=2,h=30,center=true); translate ([0,0.45*breite,0]) rotate ([0,90,0]) cylinder (r=2,h=30,center=true); translate ([0,-35,-5]) cylinder (r=3.3, h=10, center=true); tra...
glb/cad_4b3b01d748b7.glb
Create a foot plate for a figure by constructing a thin, flat cylinder. The cylinder should have a total diameter of 24mm and a height of 1.5mm. Ensure the geometry is smooth with a high facet resolution to maintain a circular profile.
$fn=100; staerke=1.5; durchmesser=24; hull() { rotate_extrude(convexity = 10) translate([0.5*durchmesser, 0, 0]) circle(d = 0.5*staerke); }
glb/cad_aa87346a15dc.glb
Create a bike light holder consisting of a main hollow cylinder and a side mounting bracket. Start by creating a main cylinder with a radius of 17mm and a height of 28mm, centered on the origin. Remove a smaller concentric cylinder from the center with a radius of 14.5mm and a height of 32mm to create a hollow tube. ...
$fn=100; module Halterung () { difference () { hull () { cylinder (h = 6, r=8, center=true); translate ([0,10, 0]) cylinder (h = 6, r=8, center=true); } cylinder (h = 10, r=3, center=true); } } difference () { union () { cylinder (h = 28, r=17, center=true...
glb/cad_17ff6746cc82.glb
Create a protective encasing for an LM2576 stepdown converter. Start by constructing a rounded rectangular outer box with overall dimensions of 37mm in width, 51mm in length, and 26mm in height, using a corner radius of 4mm. Hollow out the center to create an interior cavity measuring 31mm wide, 45mm long, and 20mm hig...
wall=3; $fn=100; Width=31; Length=45; Height=20; oWidth=Width+2*wall; oLength=Length+2*wall; oHeight=Height+2*wall; Cut_Height = 10; corn_rad=5; module box (box_width, box_length, box_height, corn_rad) { hull() { box_width = box_width - corn_rad; box_length = box_length - corn_rad; box_height = box_h...
glb/cad_cfd860ea2ba7.glb
Create a mounting plate for an ESP8266 and sensors. Start with a rectangular base measuring 100mm wide by 90mm deep with a thickness of 8mm. At each of the four corners, create a vertical hole with a diameter of 3mm that passes through the plate. Add eight cylindrical mounting sockets to the top surface. Each socket c...
Height = 90; Width = 100; module Platte () { minkowski() { cube ([Width,Height,4], center=true); } } module Sockel () { $fn=100; difference () { union () { cylinder(h = 14, r=2.8, center = true ); translate ([0,0,-3]) cylinder(h = 4, r1=4.6, r2=2.8, center = tr...
glb/cad_430c08716244.glb
Create a mounting plate for an ESP8266 and sensors. Start with a rectangular base measuring 100mm wide by 90mm high and 8mm thick. At each of the four corners of the base, create a vertical hole with a diameter of 3mm that passes through the plate. Add eight cylindrical mounting sockets to the top surface. Each socket...
Height = 90; Width = 100; module Platte () { minkowski() { cube ([Width,Height,4], center=true); } } module Sockel () { difference () { cylinder(h = 14, r=2.8, center = true, $fn=100); cylinder(h = 30, r=1.2, center = true, $fn=100); } } module bohrung () { cylinder(h = 8, ...
glb/cad_9fd917e43697.glb
Create a D-Cell to 18650 battery adapter by constructing a hollow cylindrical tube. The outer shell should be a cylinder with a radius of 16 mm and a total height of 232 mm. Remove the center of this volume by creating a concentric cylindrical hole with a radius of 14 mm and a height of 260 mm, which ensures the inner ...
Cells=4; $fn=100; difference() { cylinder(h = Cells*58, r=16, center = true, $fn=100); cylinder(h = Cells*65, r = 14, center = true, $fn=100); }
glb/cad_7e2bead9632d.glb
Create a D-Cell to 18650 battery adapter by constructing a hollow tube. Start with a solid cylinder that has a radius of 16 mm and a total height of 232 mm. From the center of this volume, remove a smaller concentric cylinder with a radius of 10 mm and a height of 260 mm to create a thick-walled open pipe. Ensure the f...
Cells=4; $fn=100; difference() { cylinder(h = Cells*58, r=16, center = true, $fn=100); cylinder(h = Cells*65, r = 10, center = true, $fn=100); }
glb/cad_9fe099d0f9a7.glb
Create an MR16 E-Bike Light Enhousing consisting of a flat base with a raised central mounting bracket. Start by creating a baseplate formed by the convex hull of two cylinders, each with a radius of 6mm and a height of 6mm, positioned 26mm apart center-to-center along the Y-axis. Perpendicular to this, add a mounting ...
$fn=100; module Halterung () { difference () { hull () { cylinder (h = 6, r=8, center=true); translate ([0,10, 0]) cylinder (h = 6, r=8, center=true); } cylinder (h = 10, r=3, center=true); } } module Baseplate () { hull () { cylinder (h = 6, r=6, ce...
glb/cad_7963685cd21e.glb
Create an MR16 E-Bike Light Enhousing. The main body is a hollowed shell formed by the convex hull of three concentric rings: a bottom ring with a radius of 28mm and a thickness of 2mm, a middle ring with a radius of 20mm and a thickness of 6mm at a height of 48mm, and a top ring with a radius of 14mm and a thickness o...
module Outer_Body() { hull() { $fa=0.1; rotate_extrude(convexity = 80) translate([28, 0, 0]) circle(2); translate ([0,0,48]) rotate_extrude(convexity = 80) translate([20, 0, 0]) circle(6); translate ([0,0,60]) rotate_extrude(convexity = 80) translate([14, 0, 0]) circle(2); } } module Halterung () { ...
glb/cad_b27374889f72.glb
Create an MR16 E-Bike Light Enhousing. The main body is a hollowed-out shell formed by the convex hull of three concentric rings: a bottom ring with a radius of 28mm and a thickness of 2mm, a middle ring at a height of 48mm with a radius of 20mm and a thickness of 6mm, and a top ring at a height of 60mm with a radius o...
module Outer_Body() { hull() { $fa=0.1; rotate_extrude(convexity = 80) translate([28, 0, 0]) circle(2); translate ([0,0,48]) rotate_extrude(convexity = 80) translate([20, 0, 0]) circle(6); translate ([0,0,60]) rotate_extrude(convexity = 80) translate([14, 0, 0]) circle(2); } } module Halterung () { ...
glb/cad_ee0968f955ab.glb
Create a mounting plate for an ESP8266. Start with a rectangular base measuring 60mm by 82mm with a thickness of 4mm. At the center of the base, emboss the text "ESP8266" with a height of 3mm and a font size of 5mm. Add four cylindrical mounting posts to the top surface of the plate. Each post should have an outer di...
module Platte () { minkowski() { cube ([60,82,4], center=true); } } module Sockel () { difference () { cylinder(h = 14, r=2.6, center = true, $fn=100); cylinder(h = 30, r=0.9, center = true, $fn=100); } } module bohrung () { cylinder(h = 8, r=1.5, center = true, $fn=100); } ...
glb/cad_e784971b1936.glb
Create a round sign by starting with a base cylinder that has a radius of 30mm and a height of 1.4mm. On top of this base, add a concentric ring with a width of 2mm and a height of 1mm, positioned at the outer edge of the base. Centrally aligned on the top surface of the base, add three lines of extruded text, each w...
height = 1.4; radius = 30; ringWidth = 2; ringHeight = 1; firstLinetextSize = 12; secondLinetextSize = 12; thirdLinetextSize = 12; lineDistance = 15; firstLine = "630"; secondLine = "Dinkel"; thirdLine= "hell"; color("blue") {cylinder(h=height, r1=radius, r2=radius, $fn=100);} if (ringWidth != 0) { diff...
glb/cad_2a2592a6c5ee.glb
Create a train hook replacement consisting of a main body and a connecting pin. Start by creating a flat base plate 2.4mm thick. The profile of this plate is defined by a polygon with vertices at [0,0], [0, 2.4], [7, 5], [13.79, 10.49], [14, 10.49], [15, 2.4], [16, 2.4], and [16, 0]. On one end of this plate, integrate...
$fn=72; module body() { translate([0,0,-2.4/2]) linear_extrude(height=2.4) { polygon([ [0, 0], [0, 2.4], [7, 5], [13.79, 10.49], [14, 10.49], [15, 2.4], [16, 2.4], [16, 0] ]); translate([17.5,5.9]) difference() { circle(d=7+2.4*2); circle(d=7)...
glb/cad_7fa46d1d2dae.glb
Create two spur gears for a Rising Phantom prop gearbox. First, create Gear 6, the output gear. This gear should have 40 teeth with a diametral pitch of 1 and a pressure angle of 25 degrees. The gear thickness and rim thickness are both 5mm, while the hub thickness is 10mm. The hub diameter is 12.8mm. To finish this g...
$fn = 60; difference() { gear( number_of_teeth = 40, diametral_pitch = 1, pressure_angle = 25, hub_diameter = 12.8, bore_diameter = 0, gear_thickness = 5, rim_thickness = 5, hub_thickness = 10, circles = 8); translate([0, 0, 10 / 2]) cube...
glb/cad_cd593bbf4dee.glb
Create a Celestron C8 Tripod Tool-less Bolt knob. Start by constructing a star-shaped handle with 3 points, an outer diameter of 75mm, an inner diameter of 30mm, and a vertical thickness of 15mm. Apply a 10mm fillet to the top edges and a 2mm fillet to the bottom edges of the handle. Below the handle, attach a cylindr...
points = 3; handleOuterDiameter = 75; handleInnerDiameter = 30; pointRadius = 10; handleThickness = 15; rTopFillet = 10; rBottomFillet = 2; baseDiameter = 20; baseHeight = 50; rTransitionFillet = 10; boltDiameter = 10; boltHeadDiameter = 14.2; boltHeadThickness = 6; boltHeadHeight = 50; rCounterboreFillet...
glb/cad_efbea46de049.glb
Create a protective case for an iPhone Lightning cable connector. Start by creating a main body in the shape of an elliptical cylinder with a total height of 15mm, a width of 6mm along the X-axis, and a depth of 9mm along the Y-axis. Hollow out the center of this body to create a wall thickness of 2mm. At the top of ...
total_height=15; wall_width=2; plug_holder_x=6; plug_holder_y=9; plug_holder_z=4; circuit_height=3; cable_hole=2.8; module body() { scale([1,(plug_holder_y/plug_holder_x)]) cylinder(d=plug_holder_x,h=total_height, $fn=50); } module top_oval_hole() { translate([0,0,total_height-plug_holder_z]) scale...
glb/cad_87ab1d54c1bb.glb
Create a protective case for an LG MCS-04WD USB charger. Start by constructing the main body as a rounded rectangular prism with an outer dimension of 20mm by 33mm and a height of 71mm, using a corner radius of 6mm. Hollow out the center of this body to create an internal cavity that is 20mm wide, 33mm deep, and 70mm h...
module body() { translate([5,5,0]) minkowski() { cube([10,23,69]); cylinder(r=6,h=1, $fn=40); }; } module holes() { translate([5,5,2]) minkowski() { cube([10,23,70]); cylinder(r=5,h=1, $fn=40); }; translate([10,16.5,-10]) cylinder(r=3,h=20, $fn=40); } m...
glb/cad_dc608ecab8d5.glb
Create a protective case for an LG MCS-04WD USB charger. Start by constructing the main body as a rounded rectangular block. This is achieved by combining a 10mm by 23mm by 3mm rectangular prism with a 6mm radius fillet on all edges. Inside this body, carve out a central hollow cavity. This interior void should be a ...
module body() { translate([5,5,0]) minkowski() { cube([10,23,1]); cylinder(r=6,h=1, $fn=40); }; translate([5,5,2]) minkowski() { cube([10,23,2]); cylinder(r=5,h=1, $fn=40); }; } module holes() { translate([5,5,2]) minkowski() { cube([10,23,7]); ...
glb/cad_6eae439623ce.glb
Create a personalized napkin ring by starting with a hollow cylinder that has an outer diameter of 41.27mm, an inner diameter of 38.1mm, and a height of 38.1mm, centered on all axes. To personalize the ring, remove material from the walls by centering a 25mm diameter cylinder that is 100mm long. Position this cutting c...
$fn = 100; module ring(){ difference() { cylinder(d = 41.27, h = 38.1, center = true); cylinder(d = 38.1, h = 100, center = true); } } module napkinHolder(number) { difference(){ ring(); if (number == 1){ rotate([0,90,0])cylinder(d = 25, h = 100, center = true); rotate([90,...
glb/cad_ee90a2ebbd57.glb
Create a Rectangular Wing by extruding a NACA 4-digit airfoil profile along a straight axis. The profile should be based on a NACA 2412 geometry with a chord width of 12mm. The airfoil section is defined by a maximum camber of 7% located at 90% of the chord, with a maximum thickness of 12% of the chord. Construct the...
module rectangularWing(m,p,t,span,chord,resolution){ m=m/100; p=p/10; t=t/100; function half_thickness_of_airfoil(t,x) = (5*t)*((0.2969*sqrt(x))-(0.1260*x)-(0.3516*(x*x))+(0.2843*(x*x*x)) - (0.1015*(x*x*x*x))); function camber_line_front(m,p,x) = (m/(p*p))*((2*p)*x-(x*x)); function camber_li...
glb/cad_341d0204dc4d.glb
Create a bracket for an orifice plate consisting of a central rectangular plate and two cylindrical mounting posts. Start with a rectangular base plate measuring 75mm in length, 20mm in width, and 2mm in height, centered on the origin. At each end of the plate, centered along the width, create a cylindrical post with a...
cubeL=75; cubeH=2; dBohrung=6.5; Bohrung=7.5; Halter=23; $fn=160; hFuss=8; Halteplatte(); translate([-cubeL/2+Bohrung,20,0]) rotate([180,0,0]) Scheibe(); translate([cubeL/2-Bohrung,-20,0]) rotate([180,0,0]) Scheibe(); module Scheibe(){ difference(){ cylinder(h=1.4, d=12, center=true); translate...
glb/cad_d49386d7ef01.glb
Create a Water Flavor Container Organizer consisting of a single rectangular cell. Start with a solid block measuring 62.9mm in width, 30.7mm in depth, and 25mm in height. Hollow out the center of this block to create a pocket measuring 60.5mm by 29.5mm by 23.9mm, leaving a wall thickness of 1.2mm on all sides and the ...
container_size = [60.5, 29.5, 25]; wall_thickness = 1.2; label_width = 26; side_width = 10; rows = 1; columns = 1; for(r = [0 : rows-1]){ translate([0, (container_size.y+wall_thickness)*r, 0]) for(i = [0 : columns-1]) { bottle(); translate([(container_size.x+wall_thickness)*i, 0, 0]) ...
glb/cad_745112f1c95e.glb
Create a Digital Caliper Toggle Switch Mod consisting of three joined sections. Start by creating a rectangular base block measuring 8mm wide, 7mm deep, and 2.5mm high. Attached to the left side of this block, add a second section that is 14mm wide, 7mm deep, and 0.4mm high. Within this second section, carve out a cent...
width=0.4; cube([8,7,2.5]); translate([-14,0,0]) difference() { cube([14,7,width]); translate([0,0,width/2]) scale([7/4,1,1]) cylinder(width, r=4, center=true, $fn=24); } translate([-3.5,0,0]) cube([0.7,7,2]);
glb/cad_dc889dc8457e.glb
Create a sphere connector for ball puzzles by starting with a central cylinder that has a radius of 4.81 mm and a total height of 19.05 mm, centered on the origin. From this cylinder, remove the volume of two spheres, each with a radius of 9.625 mm, positioned such that their centers are located at the top and bottom e...
sphere_diam = 0.75*25.4; cyl_rad_per = 25.0; offset = 0.1; mint = 0.5; sphere_r = 0.5*sphere_diam; echo("Sphere radius is ",sphere_r," diameter is ",sphere_diam); cyl_r = cyl_rad_per*sphere_diam/100.0; echo("Cylinder radius is ",cyl_r); icy_r = 2.5; echo("Inner Cylinder radius is ",icy_r); part_height = 2.0*(sphere_...
glb/cad_099cc3b376dd.glb
Create a Labstand Loc-Line Y-Splitter consisting of a rectangular base block measuring 50mm x 30mm x 20mm. At the center of the block, create a vertical cylindrical hole with a diameter of 12.5mm and a height of 22mm to accommodate a labstand. Within this central area, incorporate a hexagonal sink for an M4 nut with ...
ball_radius = 12.5; $fn=50; module barb(bdia,odia) { color("Pink") { difference() { union() { translate([0,0,0]) cylinder(h=5.1, d2=bdia,d1=odia); for (a =[1:4]) translate([0,0,a*5-0.2]) cylinder(h=5.2, d1=bdia, d2=bdia-2); } translate([0,0,-1]) cylinder(h=27, d=4); } } } mo...
glb/cad_78ba3f1f1ee6.glb
Create an Arko Shaving Stick Holder as a hollow cylindrical vessel with a total height of 18mm and an outer diameter of 37.3mm. The walls should be 2mm thick. The interior is a tapered socket designed to hold a shaving stick. The socket base starts at a diameter of 33.3mm and expands slightly to 34.3mm at the top. To ...
$fs=0.4; $fa=1; stick_diam = 33.3; socket_bottom = stick_diam; socket_top = stick_diam+1; drip_hole_diam = 15; wall_thickness = 2; od = stick_diam + (wall_thickness*2); height = 18; vane_height = height - 5; vane_thickness = 0.4; vane_base = ((stick_diam - drip_hole_diam) / 2) - 2; vane_top = vane_base * 0.333; vane_...
glb/cad_974cc8be9881.glb
Create a wire support for an Ender5 style gantry by constructing a rectangular cuboid. The shape should have a length of 40mm, a width of 20mm, and a height of 4mm. Ensure the geometry is a solid block with flat faces and sharp 90-degree edges.
$fa = 1; $fs = 0.4; use <wedge.scad>; cube([40, 20, 4]);
glb/cad_719c4b2dbca3.glb
Create an IO shield for the Axzez Interceptor board. Start with a solid rectangular base plate measuring 162mm wide, 48mm deep, and 1mm thick. On top of this base, add a surrounding border frame that is 158mm wide, 44mm deep, and 2.58mm thick, with a hollow center measuring 155mm by 41mm. Cut four rectangular openings...
translate([-3.5, -3.5, 0]) union() { translate([2, 2, 1]){ difference() { cube([158, 44, 2.58]); translate([1.5, 1.5, -0.01]) cube([155, 41, 2.60]); } linear_extrude(0.5) translate([3.5, 32, 0]) text("Interceptor", size=8); } differe...
glb/cad_94faf93375df.glb
Create a Turing Pi 2 IO shield by starting with two rectangular plates. First, create a main outer face measuring 158.6mm by 44mm with a thickness of 1.5mm, positioned at x=0.75, y=1, z=0. Second, add a larger, thinner inner flange measuring 161mm by 47.5mm with a thickness of 0.75mm, positioned at x=-0.5, y=-0.5, z=0....
difference() { union() { translate([.75, 1, 0]) cube([158.6, 44, 1.5]); translate([-0.5, -0.5, 0]) cube([161, 47.5, 0.75]); } translate([12, 4, -0.1]) cube([15, 17, 4]); translate([31.5, 4, -0.1]) cube([16.5, 13, 4]); translate([52, 4, -0.1]) cube([16.5, 13, 4]); translate([72.2, 4, -0.1]) ...
glb/cad_7f39f386670a.glb
Create a Ceiling Camera Mount Bracket as a flat plate with a thickness of 3mm. The main body is a rectangle measuring 86mm in width and 213mm in length, with all four corners rounded to a radius of 5mm. Subtract the following features from the plate: first, create a vertical tripod screw slot centered horizontally at...
$fn=50; difference() { translate([5, 5, 0]) minkowski() { cube([76, 203, 1.5], center=false); cylinder(r=5, h=1.5, center=false); } translate([43, 83, -0.1]) cylinder(h=3.2, r=2.4, center=false, $fn=100); translate([40.6, 13, -0.1]) cube([4.8, 70, ...
glb/cad_c8c6515499c4.glb
Create a filament sample swatch by starting with a rectangular base that is 80mm long, 20mm wide, and 2mm thick. At the right end of the rectangle, add two semi-cylindrical caps with a radius of 9.5mm, centered vertically, to round off the edges. Create a circular hole through the center of the rightmost end with a rad...
material = "PLA"; colour = "COLOUR"; brand = "BRAND"; depth = 2; height = 20; width = 100; font = "Impact"; fontsize = (height / 2) - 3.3; topstring = str(material, " - ", colour); module swatch() { difference() { union() { cube([(width - height) - 1, height - 1, depth - 0.8],center=false); ...
glb/cad_9d0958269ff9.glb
Create a parametric wedge by constructing a right-triangular prism. The prism should have a length of 50mm, a width of 25mm, and a maximum height of 10mm. Position the geometry so that one long side remains flat on the base plane, while the opposite long side slopes linearly from the maximum height of 10mm down to 0mm ...
height = 10; length = 50; width = 25; wedge_by_size(height, length, width); module wedge_by_angle_length(angle, length, width) { height = length / tan(angle); wedge_by_size(height, length, width); } module wedge_by_angle_height(angle, height, width) { length = tan(angle) * height; wedge_by_size(hei...
glb/cad_71333e2b4ef2.glb
Create a parametric wedge by constructing a right-triangular prism. The prism should have a width of 25mm and a length of 50mm. The height is determined by a 69-degree angle relative to the base, resulting in a vertical face at one end and a sloping hypotenuse that descends to meet the base. The base is a flat rectangl...
angle = 69; length = 50; width = 25; wedge_by_angle_length(angle, length, width); module wedge_by_angle_length(angle, length, width) { height = length / tan(angle); wedge_by_size(height, length, width); } module wedge_by_angle_height(angle, height, width) { length = tan(angle) * height; wedge_by_si...
glb/cad_0ab3cb64948c.glb
Create a parametric wedge by constructing a right-triangular prism. The shape should have a uniform width of 40mm. The maximum height of the wedge is 25mm. The length of the base is determined by the slope angle of 69 degrees, which results in a base length of approximately 24mm. To build this, create a rectangular b...
angle = 69; height = 25; width = 40; wedge_by_angle_height(angle, height, width); module wedge_by_angle_length(angle, length, width) { height = length / tan(angle); wedge_by_size(height, length, width); } module wedge_by_angle_height(angle, height, width) { length = tan(angle) * height; wedge_by_si...
glb/cad_0d62c0c562de.glb
Create a 3D model of the number "1" using a bold Garamond font. Extrude the character to a thickness of 5mm. The character should be scaled by 1000% relative to its default font size. Remove two coaxial screw holes from the body of the number. Each hole consists of two stepped cylindrical sections: a primary deep hol...
Character = "1"; font = "Garamond:style=Bold"; Thickness = 5 ; Offsetx = 0; X1 = 0; Y1 = 60; X2 = 0; Y2 = -55; Hole_coordinates = [[X1,Y1],[X2,Y2]]; scale_percent = 10; $fs = 1; module screw_hole(X=0,Y=0,Z=0){ translate([X,Y,Z-.01]){ union(){ cylinder(h = Thickness+.01,r1=0.182*25.4/2,r2=0....
glb/cad_c3ccadda3835.glb
Create a Lego Boost Loudspeaker Holder designed to hold a 34mm diameter speaker. Start by creating a base plate with a rectangular footprint of 39.8mm by 23.8mm and a thickness of 1mm. On the top surface of this plate, add a grid of 8 cylindrical studs arranged in two rows of four. Each stud should have a diameter of...
length = 5; width = 3; nozzle_size = 0.4; wall_adjustment = 0.1; gap_factor = -0.1; height_adjustment = 0; stud_height_adjustment = 0.1; stud_radius_adjustment = -0.04; support_post_radius_adjustment = 0.022; block_type = "base"; surface_type = "normal"; lego_unit = 1.6; LU = lego_unit; play_factor = 0.1; P...
glb/cad_1df7f3b69b1c.glb
Create a Lego Boost Loudspeaker Holder designed to hold a 34mm diameter speaker. Start by creating a main body that is 31.8mm wide and 23.8mm long. The overall height of the holder is 23.8mm. The top surface is a flat plate featuring a 4x3 grid of Lego-compatible studs. Each stud should have a radius of approximately...
length = 4; width = 3; nozzle_size = 0.4; wall_adjustment = 0.1; gap_factor = -0.1; height_adjustment = 0; stud_height_adjustment = 0.1; stud_radius_adjustment = -0.04; support_post_radius_adjustment = 0.022; block_type = "base"; surface_type = "normal"; lego_unit = 1.6; LU = lego_unit; play_factor = 0.1; P...
glb/cad_5fa001eadb20.glb
Create a Scale Cube by starting with a solid cube measuring 20mm on all sides. On each of the six faces, carve out recessed text and punctuation to a depth of 1mm. On the top face, center a large bold letter "T" followed by a period, and below it, center the text "20 mm" in a smaller font. On the bottom face, center ...
real_length = 20; inlay = 1.0; fudge = 0; length = real_length + fudge; size = 0.6 * length; font = "Arial:style=Bold"; baseline = (length - size) / 2; spacing = 1; poff = size * 0.55; difference() { cube(length); translate([length/2, baseline, length]) rotate([0, 0, 0]) linear_extrude(in...
glb/cad_702447ec77aa.glb
Create a dual 2.5" SSD drive bay. The main structure is a rectangular enclosure with an overall height of 41mm and a width of 82mm (calculated from a 70.3mm drive width plus 4mm walls on each side). The length of the bay is 124mm. Inside the enclosure, create two stacked rectangular voids to house the drives. Each voi...
drive_w = 70 + 0.3; drive_l = 100.2; drive_h = 6.7; drive_hole_d = 3; drive_hole_head = 6.5; drive_holes = [14, 14 + 76.5]; drive_wall = 2; caddy_lwall_shaft = 5.5; caddy_lwall_head = 2.5; caddy_lwall = caddy_lwall_shaft + caddy_lwall_head; caddy_h = 41; caddy_f = 4; caddy_l = caddy_f + drive_l + 20; caddy_hole_h = ...
glb/cad_f65ff55a3e98.glb
Create a Mellanox ConnectX-2 full height bracket with a uniform material thickness of 1.5mm. Start with a main rectangular body 117.3mm wide and 18.5mm high. On the left end, attach a mounting flap that is 7.5mm wide and 10.3mm high, with a 4mm transition section connecting it to the main body. At the right end, add a...
materialThickness = 1.5; totalBracketWidth = 120.8-3.5; bracketHeight = 18.5; mountWidth = 8; mountDepth = 13.4; mountLeft = 4.8; mountSpacing = 32; mountingHoleDistance = 4.4 + 0.3; mountingHoleRadius = 2.6/2; flapWidth = 7.5; flapHeight = 10.3; flapTransition = 4; topFlapOffsetTop = -3.5; topFlapOffsetBottom =...
glb/cad_65315504ff32.glb