Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a telescopic linear screw assembly consisting of a gear and a nut. First, construct a gear with 10 teeth, a pitch radius of 33mm, and a total thickness of 30mm. The gear should have a central bore diameter of 45mm and a hub diameter of 10mm, with a pressure angle of 22.5 degrees and a backlash of 0.1mm. Integr...
module screw(type = 2, r1 = 15, r2 = 20 , n = 7, h = 100, t = 8) { linear_extrude(height = h, twist = 360*t/n, convexity = t) difference() { circle(r2); for (i = [0:n-1]) { if (type == 1) rotate(i*360/n) polygon([ [ 2*r2, 0 ], [ r2, 0 ], [ r1*cos(180/n), r1*sin(180/n) ], [ r2*cos(360/n), r2*sin(360/n) ], [ 2*r2*cos(36...
glb/cad_07221de23ce0.glb
Create a telescopic linear screw assembly consisting of a central screw and a corresponding nut. First, construct the screw by creating a cylinder with a height of 100mm. Use a linear extrusion with a twist of 576 degrees (calculated as 360 * 8 / 5) to create a helical thread. The profile of this thread is defined by...
module screw(type = 2, r1 = 15, r2 = 20 , n = 7, h = 100, t = 8) { linear_extrude(height = h, twist = 360*t/n, convexity = t) difference() { circle(r2); for (i = [0:n-1]) { if (type == 1) rotate(i*360/n) polygon([ [ 2*r2, 0 ], [ r2, 0 ], [ r1*cos(180/n), r1*sin(180/n) ], [ r2*cos(360/n...
glb/cad_395814d1fb29.glb
Create a telescopic linear screw mount by starting with a large cylinder 40mm in height with a radius of 60mm. Remove a smaller concentric cylinder from the center that is 35mm high with a radius of 45mm. From the top surface, remove a central cylindrical section 20mm high with a radius of 21.5mm, but leave a small inn...
module cuber () { cylinder(h = 40, r1 = 60, r2 = 60); } module cuber1 () { cylinder(h = 35, r1 = 45, r2 = 45); } module cuber3 () { difference () { cylinder (h=20, r1=21.5, r2=21.5); cylinder (h=20, r1=21, r2=21); } } difference () { difference() { difference () { difference () { difference () { difference () { t...
glb/cad_12cc7e046723.glb
Create a telescopic linear screw component. Start by constructing a twisted, extruded column with a total height of 120mm. The outer profile of this column is based on a seven-sided polygon with a radius of 12mm, which is twisted 360 degrees eight times over its height to create a helical screw thread. The cross-sectio...
module screw1(type = 2, r1 = 9, r2 = 12, n = 7, h = 120, t = 8) { linear_extrude(height = h, twist = 360*t/n, convexity = t) difference() { circle(r2); for (i = [0:n-1]) { if (type == 1) rotate(i*360/n) polygon([ [ 2*r2, 0 ], [ r2, 0 ], [ r1*cos(180/n), r1*sin(180/n) ], [ r2*cos(360/n), r2*sin(360/n) ], [ 2*r2*cos(360...
glb/cad_20bdd34c1b5b.glb
Create a telescopic linear screw by designing a vertical cylinder with a height of 150mm and an outer radius of 5mm. The main body is formed by linearly extruding a specific 2D profile that is twisted 1028.57 degrees (calculated as 360 degrees multiplied by 8 divided by 7) over its total height. This profile consists o...
module screw2(type = 2, r1 = 3.75, r2 = 5, n = 7, h = 150, t = 8) { linear_extrude(height = h, twist = 360*t/n, convexity = t) difference() { circle(r2); for (i = [0:n-1]) { if (type == 1) rotate(i*360/n) polygon([ [ 2*r2, 0 ], [ r2, 0 ], [ r1*cos(180/n), r1*sin(180/n) ], [ r2*cos(360/n), r2*sin(360/n) ], [ 2*r2*cos(3...
glb/cad_33387fa74a12.glb
Create a telescopic linear screw assembly consisting of a main threaded shaft and a matching nut. First, construct the main screw shaft by extruding a profile to a height of 120mm. The profile is based on a circle with a radius of 12mm, but it is modified by removing seven symmetrical polygonal sections around the cent...
module screw1(type = 2, r1 = 9, r2 = 12, n = 7, h = 120, t = 8) { linear_extrude(height = h, twist = 360*t/n, convexity = t) difference() { circle(r2); for (i = [0:n-1]) { if (type == 1) rotate(i*360/n) polygon([ [ 2*r2, 0 ], [ r2, 0 ], [ r1*cos(180/n), r1*sin(180/n) ], [ r2*cos(360/n), r2*sin(360/n) ], [ 2*r2*cos(360...
glb/cad_a6a8b0add902.glb
Create a telescopic linear screw assembly consisting of a threaded bolt and a matching nut. First, construct the screw by creating a cylinder with a height of 100mm. Use a linear extrusion with a twist to create a helical thread. The thread profile is defined by a polygon with a radius varying between 15mm and 20mm, ...
module screw(type = 2, r1 = 15, r2 = 20 , n = 7, h = 100, t = 8) { linear_extrude(height = h, twist = 360*t/n, convexity = t) difference() { circle(r2); for (i = [0:n-1]) { if (type == 1) rotate(i*360/n) polygon([ [ 2*r2, 0 ], [ r2, 0 ], [ r1*cos(180/n), r1*sin(180/n) ], [ r2*cos(360/n...
glb/cad_f00d5df205af.glb
Create a battery clip with a total length of 50.5mm, a width of 14.5mm, and a thickness of 2mm. The main body is a rectangular base with a semi-cylindrical cutout running along its length to cradle a battery. This cutout is formed by removing a cylinder with a radius of 7.25mm and a length of 50.5mm from the center of ...
module xhole(radius, length) { rotate(a=[0,90,0]) cylinder(r=radius,h=length+1,center=true, $fn=10); } module yhole(radius, length) { rotate(a=[0,0,0]) cylinder(r=radius,h=length+1,center=true, $fn=10); } module batteryClip(width, length, thickness) { difference() { union() { rotate([0,90,0]) cylinder(r=thick...
glb/cad_0c7e18b11dff.glb
Create a battery clip with a length of 50.5mm, a width of 14.5mm, and a thickness of 2mm. Start by forming the main body as a union of a cylinder with a radius of 3mm (thickness plus half-width) and a length of 50.5mm, combined with a central rectangular block measuring 4mm by 18.5mm by 4mm. Hollow out the center by ...
module xhole(radius, length) { rotate(a=[0,90,0]) cylinder(r=radius,h=length+1,center=true, $fn=10); } module yhole(radius, length) { rotate(a=[0,0,0]) cylinder(r=radius,h=length+1,center=true, $fn=10); } module batteryClip(width, length, thickness) { difference() { union() { rotate([0,90,0]) cylinder(r=thick...
glb/cad_f75cc1c5b759.glb
Create a ball-and-socket mount consisting of two separate parts: a ball joint and a receiving socket. For the ball joint, start with a circular flange 40mm in diameter and 2.5mm thick. From the center of this flange, create a tapered neck that extends 10mm upward to support a sphere with a diameter of 15mm. For the...
part = "makeBoth"; ballSize = 15; ballSlop = 1; socketThickness = 2.5; flangeThickness = 2.5; flangeDiameter = 40; neckLength = 10; holeSize = 3.2; screwHead = 6.5; $fn=50; flangeMountFactor=.27; if (part=="makeBall") ball(); else if (part=="makeSocket") socket(); else if (part=="makeBoth") { ball(); ...
glb/cad_27d816eae5a7.glb
Create a Universal Phonecase designed for an iPhone 5. Start by constructing the main body as a rounded rectangular shell with a width of 57.57mm, length of 122.83mm, and height of 7.6mm. The case walls should have a thickness of 1.8mm. Carve out the interior to fit the device, maintaining a corner radius of 9.28mm. ...
iphone_version = 1; case_thickness = 1.8; pattern_shape = 6; pattern_radius = 8; pattern_overlap = 15; pattern_rotation = 0; pattern_thickness = 2; perimeter_tolerance=.55; height_tolerance=.1; image_scale=100; module Void(){} honeycomb_radius = pattern_radius; honeycomb_radius_modifier = pattern_overlap; hone...
glb/cad_395c0d8f9c2b.glb
Create a Carbon Fiber Arrow Cutting Jig. Start with a base block that is 31mm long, 4mm thick, and has a total width of 84mm. The central portion of this base is raised to a total height of 12mm, leaving two outer wing sections that remain 4mm thick. On each of these wing sections, create two 4mm diameter holes that pa...
Len = 31; Thk = 4; WingWid = 10.0; WingHoleLen_Offset = 6.0; WingHoleWid_Offset = 4.0; WingHole_OD = 4; WingHole_Qty = 2; Shaft_OD = 8.0; Shaft_Qty = 6; Shaft_Offset = 8; Shaft_Spacing = 12; CutSlot_Wid = 1.0; CutSlot_Offset = 10.0; Weld_OD = 4.0; Ires = 24; CubeHt = Shaft_OD; Wid = (WingWid * 2) + (Shaf...
glb/cad_600a5799a361.glb
Create a GEEETECH G2/G2s Idler Pulley for a 624ZZ bearing. Start by creating a central cylinder with a height of 6mm and an outside diameter of 11.88mm. This cylinder should feature 28 evenly spaced GT2 teeth around its perimeter, each with a profile depth of 1.494mm. Add a circular belt retainer flange to the top of ...
teeth = 28; profile = 12; motor_shaft = 13.5; m3_dia = 3.2; m3_nut_hex = 1; m3_nut_flats = 5.7; m3_nut_depth = 2.7; retainer = 1; retainer_ht = 1.25; idler = 1; idler_ht = 1.25; pulley_t_ht = 6; pulley_b_ht = 0; pulley_b_dia = 20; no_of_nuts = 0; nut_angle = 90; nut_shaft_distance = 1.2; additional_tooth_width = 0....
glb/cad_6fd0dd4656d3.glb
Create a Jeep Door Lock Latch Clip consisting of a small rectangular base and a crimping section. Start with a base plate measuring 9.525mm in width (X), 18.92mm in depth (Y), and 2.54mm in height (Z). On top of this base, add a crimp box of the same width (9.525mm) and height (2.54mm), but with a depth of 8.255mm, pos...
mm=25.4; box_x = .375*mm; box_y =.745*mm; box_z = .100*mm; crimp_x = box_x; crimp_y = .325*mm; crimp_z = .275*mm; rod_d = .175*mm; space_x = box_x/2; space_y = crimp_y + 2; space_z = .110*mm; space_z2 = .200*mm; flange_x = .090*mm; flange_y = .450*mm; flange_z = crimp_z; hole_od1 = .250*mm; hole_od2 = .270*mm; hol...
glb/cad_239da436e992.glb
Create a tall hexagon for isolating delta tower errors by constructing a hexagonal prism with a diameter of 40mm and a height of 100mm. The prism should be defined by six flat sides. Cut a hole entirely through the center of the prism in the shape of a capital letter X. The X should be oriented such that it is perpendi...
include <MCAD/units/metric.scad> difference () { %cylinder (d = 40, h = 100, $fn = 6); rotate (90, X) linear_extrude (height = 1) text ("X", halign = true); }
glb/cad_d5dbd3b6830a.glb
Create a cupholder mount for a Motorola APX6000 radio by constructing a truncated cone with a height of 45mm. The cone should have a top radius of 39mm and a bottom radius of 36mm. From this solid shape, remove a central cavity shaped to fit the radio, ensuring this cavity begins 5mm above the base of the cone and exte...
include <Cradle.scad> radiusTop = 78/2; radiusBottom = 72/2; depth = 45; baseThickness = 5; $fa = 6; $fs = 0.5; difference(){ cylinder(r2=radiusTop, r1=radiusBottom, h=depth); translate([0,0,baseThickness]) uniCavity(); }
glb/cad_0af7d4f66ef1.glb
Create a Motorola APX6000 Cradle designed as a center console mount. The main body is a rounded rectangular block with a base width of 85.75mm, a top width of 90mm, a base length of 180mm, and a top length of 185mm, reaching a total depth of 43mm. The vertical edges should have a rounding radius of 6mm. Within this ma...
include <Cradle.scad> roundingRadius = 6; bottomWidth = 85.75; topWidth = 90.0; bottomLength = 180; topLength = 185; depth = 43; baseThickness = 5; manifoldOffset = 0.1; offset = 5; lengthRelief = 5; widthRelief = 2; $fa = 6; $fs = 0.5; kestrelWidth = 47; kestrelDepth = 19.5; kestrelHeight = 50; module kestrel() {...
glb/cad_e47bf984c576.glb
Create a Motorola APX6000 radio cupholder mount. Start with a truncated cone that has a bottom radius of 50mm, a top radius of 36mm, and a total height of 40mm. Scale this cone along the Y-axis by a factor of 0.75 to create an elliptical profile. From this base, remove a central cavity starting 5mm from the bottom to ...
include <Cradle.scad> radiusTop = 36; radiusBottom = 50; height = 35; cutoutWidth = 40; cutoutLip = 10; baseThickness = 5; manifoldOffset = 0.05; $fa = 6; $fs = 0.5; difference(){ scale([1,0.75,1]) cylinder(r2=radiusTop, r1=radiusBottom, h=height+baseThickness); translate([0,0,baseThickness]) { ...
glb/cad_49caaa00eed7.glb
Create a Coin Magnet holder. Start by creating a tapered cylindrical base with a height of 6.1mm. The bottom face should have a radius of 12.5mm, tapering upward to a top face radius of 14.25mm. Inside this base, carve out three distinct voids. First, create a cylindrical cavity for the coin starting from the top, wit...
coinDia=24.5; coinThick=1.9; border=2; magnetX=20; magnetY=10; magnetZ=3; baseThick=1.2; separation=5; ovr=1.03; magX=magnetX*ovr; magY=magnetY*ovr; magZ=magnetZ*ovr; cad1=[26.5, 2]; cad2=[27.95, 1.75]; cadp25=[24, 1.6]; cfa10=[23.5, 1.5]; cfa50=[22, 1.7]; cfa200=[24.5, 1.9]; dkk5=[28.5, 2]; esp100=[24.5, ...
glb/cad_62fe7e486210.glb
Create a butterfly nut for an M4 bolt. Start by constructing a central vertical cylinder with a diameter of 10mm and a height of 10mm. On top of this cylinder, add a handle section that is 10mm high. This handle is formed by the intersection of a sphere with a diameter of 27.5mm and a scaled sphere that is stretched by...
cylinder_dia = 10; cylinder_height = 10; hexagone_size = 8.20; hexagone_depth = 3.2; hole_size = 5.5; handle_dia = 27.5; handle_height = 10; translate([0,0,cylinder_height+handle_height]) rotate([0,180,0]) difference() { union() { cylinder(r=cylinder_dia/2, h=cylinder_height, $fn=64); translate([0,0,cylinder...
glb/cad_ccc028e57061.glb
Create a small butterfly nut for an M4 bolt. Start by constructing a central cylindrical body with a diameter of 10mm and a height of 10mm. At the top of this cylinder, integrate a handle formed by the intersection of a sphere with a 20mm diameter and a cylinder with a 15mm diameter and 10mm height. Refine the handle's...
cylinder_dia = 10.0; cylinder_height = 10; hexagone_size = 8.20; hexagone_depth = 3.3; hole_size = 4.5; handle_dia = 20; handle_height = 10; translate([0,0,cylinder_height+handle_height]) rotate([0,180,0]) difference() { union() { intersection() { cylinder(r=cylinder_dia/2, h=cylinder_height, $fn=64); ...
glb/cad_bc9bbf8c94ba.glb
Create a motor cover clip by starting with a wide, flat cylindrical base 19mm in diameter and 2.5mm in height. Centered on this base, add a vertical cylindrical shaft with a radius of 2.8mm and a total height of 17mm. At a height of 9mm from the bottom, integrate a sphere with a radius of 3.6mm centered on the shaft. F...
difference () { union () { cylinder ($fn=40, r=9.5, h = 2.5) ; cylinder ($fn=40, r=2.8, h = 17) ; translate ([0,0,9]) rotate ([0,90,0]) sphere ($fn=40, r=3.6, h = 3, center = true) ; } translate ([0,0,11.5]) cube ([1.5,8,17], center=true) ; }
glb/cad_d1b65012f982.glb
Create a Diamond HotEnd Bowden tube adaptor. Start by constructing a central rectangular block with a width and depth of 22mm (based on a radius of 8mm plus a 3mm wall thickness) and a height of 11mm. Through the center of this block, create a cylindrical hole with a radius of 3.5mm to accommodate a 6mm bowden tube. ...
hm_rod_r = 16.0/2; hm_rod_r_comp = 1.0/2; hm_cable_r = 6.0/2; hm_cable_r_comp = 0.5/2; hm_bolt_r = 3.0/2; hm_bolt_r_comp = 0.5/2; hm_bolt_l = 50.0; hm_layer_overlap = 1.0; hm_overlap = 0.75; hm_block_side = (hm_cable_r+4.0)*2; hm_block_height = 12; hm_thermal_sep=3; jh_r = 16.0/2; jh_groove_offset = 3.75; jh_groov...
glb/cad_d42a6546010a.glb
Create a driven model of a windmill consisting of a base plate, a house, a roof, and a top cap. Start with a base plate that is 100mm wide and 100mm deep with a height of 3mm. The plate is a cylinder with a radius of 62.5mm, featuring four tapered holes (radius 1.5mm to 4.5mm) positioned symmetrically at a distance of...
module plate(x,y,z,hole_r,hole_dist){ difference(){ intersection(){ cube([x,y,z], center=true); cylinder(r=x/1.6, h=z*2, center=true); } rotate([0,0,45]){ translate([x*hole_dist,0,0]) #cylinder(r1=hole_r, r2=hole_r*3, h=z*2, center=true); translate([-x*hole_dist,0,0]) #cylinder(r1=hole_r, r2=hole_r*3...
glb/cad_6be7459ab405.glb
Create a Ghost-Xiao Gui Za figure with a total height of 100mm. Construct the main body by combining a sphere of radius 30mm centered at Z=75mm with a cylinder of radius 30mm and height 75mm centered at Z=75mm, then remove a sphere of radius 30mm scaled to 80% on the Z-axis from the center. Carve out two oval eyes by...
part_to_render = 5; Render_Quality = 60; Project_Size = 100; $fn = Render_Quality; module eyes(){ scale([1.5,1,1])sphere(8,center = true); } module body(){ union(){ translate([0,0,75])sphere(30,center = true); difference(){ translate([0,0,75])translate([0,0,-37.5])cylinder(r1=30...
glb/cad_e9eab0be8fc7.glb
Create a Ghost-Xiao Gui Za figure. For the main body, combine a sphere with a radius of 30mm centered at a height of 75mm with a cylinder of radius 30mm and height 75mm centered on the Z-axis. Hollow out the bottom of this body by removing a sphere with a radius of 30mm scaled to 0.8 on the Z-axis. Create two eyes by ...
$fn = 60; module eyes(){ scale([1.5,1,1])sphere(8,center = true); } module body(){ union(){ translate([0,0,75])sphere(30,center = true); difference(){ translate([0,0,75])translate([0,0,-37.5])cylinder(r1=30,r2=30,h=75, center = true); scale([1,1,0.8])sphere(30,center = ...
glb/cad_cedfe84154d3.glb
Create a geometric holder by combining several rectangular plates and blocks. Start with a central base plate measuring 10mm by 62mm with a thickness of 3mm. Attach a second rectangular plate measuring 10mm by 20mm by 3mm to the back edge of the base, extending it linearly. Add a third plate of the same 10mm by 82mm by...
material_t = 3; mh = material_t/2; phone_h = 10; phone_w = 62; phone_d = 9.35; phone_d2 = 13.75; phh = phone_h/2; pwh = phone_w/2; catch_h = phone_h; catch_w = material_t *.75; catch_d = material_t*.75; lip_h = phone_h; lip_w = material_t; lip_d = material_t + phone_d + catch_d; lposx = 0; lposy = pwh + mh; lpos...
glb/cad_e0361f5b7389.glb
Create a motor mount for an HK X900 Tricopter. Start with a main vertical block that is 25mm high, 21.4mm wide, and 21.4mm deep. Within this block, create a central square cutout measuring 14.4mm by 14.4mm that runs the full height of the part to accommodate a square bar. Extend the geometry from the side of the block...
$fn=60; fudge = .01; bar = 14.4; wall = 3.5; w = bar + (2 * wall); height = 25; length = 60; top_cutout = true; screw_hole_radi=3.6/2; countersink_radi=9.5/2; screw_length=17.25; difference(){ union(){ translate([0,-w/2,0]) cube([w,w,height]); translate([w,0,0]) hull() { translate([0,-3.5,0]) cube([1,7,h...
glb/cad_064825d2a8e7.glb
Create a set of motor mounts and landing gear for an HK X900 Tricopter. First, construct the motor brackets. Each bracket is a flat plate 7mm thick, 24mm wide and 29mm long. Center a large circular motor hole with a radius of 16.75mm. Around this, place four bolt holes with a radius of 3.25mm: two spaced 19mm apart a...
$fn=250; fudge = .01; l = 44; inset = 5; bar = 14.4; wall = 3; w = bar + 2*wall; hole_inset_1 = 12; hole_inset_2 = 32; bracket_w = 24; bracket_l = 29; hole_spacing_w = 16; hole_spacing_l = 19; bracket_mount_thickness = 7; bracket_motor_hole_radi = 8.5/2; bracket_motor_hole_depth = bracket_mount_thickness - (fudge*2...
glb/cad_c3207b08124c.glb
Create a Free Falling Mapleseed model by constructing a composite geometric shape. Start with a cylinder 100mm tall with a 100mm radius. From this, remove a smaller concentric cylinder with a 95mm radius to create a thin-walled tube. Further refine this shell by removing the volume where a large cube, rotated 45 degree...
intersection(){ cube(150); translate([100,70,85]) rotate([180,30,0]){ difference(){ intersection(){ difference(){ cylinder(100,100,0); cylinder(95,98,0); translate([-120,0,-55]){ rotate([45,41,0]) cube(200); } } translate([-50,73,0]) cylinder(100,100,1...
glb/cad_13bff9020c05.glb
Create a customizable shock absorber consisting of a central cylindrical core and a surrounding spiral. Start by creating two solid discs with a radius of 15mm and a height of 3mm each; position one at the base and one at the top of the assembly, with the top disc centered at a height of 30mm. Between these discs, cons...
pitch = 2; radius = 15; height = 30; sp = 1.75; thickness = radius*.7; cylinder(h=height/10,r=radius,c=true); translate([0,0,height]){ cylinder(h=height/10,r=radius,c=true); } translate([0,0,height/10]){ difference(){ linear_extrude(height*(9/10), center = false, convexity = 10, twist = pitch*100...
glb/cad_d926b0a21136.glb
Create a Lazy Susan Bearing Spool Adapter consisting of a base plate and a cylindrical spool hub. First, construct the adapter plate with a thickness of 5.2mm. The plate features a central circular section with a radius of 29.35mm. From this center, extend four rectangular arms spaced 90 degrees apart. Each arm is 8....
Thickness = 2; quality=36; tolerances = 0.15; compensate = .02; m4 = 4 + (2 * tolerances); m4_nut = m4 * 2; m4_nut_sides = m4 * 1.6; m4_nut_height = m4 * 0.8; m4_screw_head = m4_nut; ScrewHoleDistance = 90.5; ScrewHoleDiameter = 4 + tolerances; BearingPlateSide = 101.5; CenterBoreDiameter = 56.7; PlateThickness = m4_...
glb/cad_b3ad72c7e19f.glb
Create a VersaMax shotgun bolt handle consisting of a cylindrical insert and a grip. Start by creating the insert: a base cylinder with a radius of 2.7mm and a height of 3.6mm, topped with a truncated cone that expands from a radius of 2.7mm at the base to 3.5mm at a height of 9mm. This insert section should have a tot...
insertHeight=9; insertRadius=2.7; insertRadius2=3.5; insertLength=10.5; insertfixedHeight=3.6; module insert() { union() { cylinder(r=insertRadius,h=insertfixedHeight,$fn=48); translate([insertLength-2*insertRadius,0,0]) cylinder(r=insertRadius,h=insertfixedHeight,$fn=48); translate([0,...
glb/cad_cb30df623b16.glb
Create a VersaMax tube plug consisting of a hollow cylinder with an outer diameter of 23mm and a total height of 47.1mm. The cylinder should have a wall thickness of 3mm, leaving an internal bore of 17mm. On the exterior surface, incorporate a series of concentric rings and grooves. Create a central protruding ring w...
plugDiameter=23; plugWall=3; indentDepth=1.1; indentHeight=6; plugHeightAboveIndent=30; plugHeightBelowIndent=10; hTotal=plugHeightAboveIndent+indentHeight+plugHeightBelowIndent; faceNum=120; deg=(indentHeight)/(2*3.1415*plugDiameter)*360; module plug() { hTotal=plugHeightAboveIndent+indentHeight+plugHeightBelo...
glb/cad_9f62894d9ed3.glb
Create a Topeak Bike Rack Tail Light Mount Adaptor. Start with a flat rectangular base plate measuring 59mm wide, 20.3mm high, and 3mm thick. Round the two outer corners of the plate with a radius of 10.15mm. Drill two holes through the plate, each with a diameter of 5.8mm, positioned 49mm apart center-to-center and ce...
$fn = 100; overlap = 0.01; bracket_height = 20.3; tongue_width = 20.6; tongue_thickness = 3; base_width = 15.5; base_thickness = 2.5; side_thickness = 2.5; plate_thickness = 3; plate_width = 100; plate_height = bracket_height; hole_dia = 5.8 ; hole_sep = 49.0 ; module plate() { difference() { union() { cube(s...
glb/cad_7d6d3152f2c7.glb
Create an extrusion corner brace designed for 15mm x 15mm profiles. Start with a main block that is 14mm wide, 14mm deep, and 14mm tall. Remove a large 45-degree wedge from the front corner to create a triangular profile. Add two rectangular protrusions, or nubs, to the sides to accommodate hardware. Each nub should ...
$fn=32; min_wall=2; brace_xyz = 14; nut_d = 6.5; nub_y = 3.4; nub_x = (brace_xyz - nut_d)/2; nub_z = 2; screw_d = 3.1; module nubs() { translate([-nub_x/2+brace_xyz/2,0,-nub_z/2]) cube([nub_x, nub_y, nub_z], center=true); translate([nub_x/2-brace_xyz/2,0,-nub_z/2]) cube([nub_x, nub_y, nub_z], center=true); }...
glb/cad_624b7a1af37c.glb
Create a camera mount adapter consisting of a flat rectangular base and a central raised housing. Start with a base plate 27mm long, 6mm wide, and 2.5mm thick. At each end of the base, center a vertical hole 1.5mm in diameter passing through the thickness. Around each of these holes, create a shallow cylindrical recess...
base_thickness = 2.5; $fn=96; difference () { union () { translate ([0, -6/2,-base_thickness/2]) cube ([27, 6, base_thickness]); translate ([0,0,0]) cylinder (r=3, h=base_thickness, center=true); translate ([27,0,0]) cylinder (r=3, h=base_thickness, center=true); translate ([2...
glb/cad_0861fde1ba50.glb
Create a wall hook consisting of a base plate and a vertical cylindrical hook. Start by creating a base plate that is 50mm wide and 5mm thick, shaped as the intersection of a cylinder with a 53mm radius and a cube 50mm wide and 100mm long. From this base, extend a vertical cylinder with a radius of 25mm and a height of...
use <../library/logo.scad> WIDTH = 50; THICKNESS = 5; DEPTH = 40; module hook1() { intersection() { difference() { union() { cylinder(r=50, h=DEPTH); translate([0,0,DEPTH-5]) cylinder(r1=50, r2=53, h=5); } translate([0,0,-1]) cylinder(r=45, h=DEPTH+2); } translate([-WIDTH/2,0,0]) cube([WIDTH, 100, DEPTH])...
glb/cad_aa31ea6ce311.glb
Create a wall hook assembly consisting of a base plate and two upright curved supports. Start with a base plate that is 50mm wide and 5mm thick, shaped as a rectangle with one end rounded as a semi-circle with a 53mm radius. Construct the first hook as a curved wall with a height of 45mm. This part is formed by the s...
use <../library/logo.scad> WIDTH = 50; THICKNESS = 5; DEPTH = 45; module hook1() { intersection() { difference() { union() { cylinder(r=50, h=DEPTH); translate([0,0,DEPTH-5]) cylinder(r1=50, r2=53, h=5); } translate([0,0,-1]) cylinder(r=45, h=DEPTH+2); } translate([-WIDTH/2,0,0]) cube([WIDTH, 100, DEPTH])...
glb/cad_03f5899b248a.glb
Create a pair of tweezers consisting of two long, thin arms connected by a curved hinge. Each arm should be a rectangular prism measuring 50mm in length, 7mm in height, and 1mm in thickness. Position the two arms so they are mirrored across a central axis, with a slight 5-degree outward angle applied to each arm relati...
module szczypce(){ module a(){ difference(){ translate([0,0,0]) cylinder ($fn = 360, $fa = 12, $fs = 2,r=5,h=7); translate([0,0,-1]) cylinder ($fn = 360, $fa = 12, $fs = 2,r=4,h=9); translate([5,0,-1]) cylinder ($fn = 360, $fa = 12, $fs = 2,r=4,h=9); } } a(); scale ([2,2,1]) a(); translate([2.5,3,0]) cube ([50,1,7]); ...
glb/cad_67b836103422.glb
Create a wall-fixed honeycomb shelf connector. Start by constructing three identical rectangular arms, each 20mm long, 10mm wide, and 30mm high. Arrange these arms so they radiate from a central point, each rotated 120 degrees from the next. At the center where the arms meet, place a hexagonal cylinder with a height ...
l=20; h=30; f=1; R=4; e=5.3; $fn=6; difference() { union() { rotate([0,0,30]) difference() { translate([0,-5,0]) cube([l,10,h]); translate([0,-e/2,f]) cube([41,e,h+1]); } rotate([0,0,150]) difference() { translate([...
glb/cad_c2d30f6d30b1.glb
Create a parametric pipe mounting flange. Start with a central vertical cylinder 25mm high with an outer diameter of 35mm (25mm pipe diameter plus 5mm wall thickness). Remove a concentric core with a 25mm diameter to create a hollow tube. At the base, add a wider flat cylindrical flange with a 60mm diameter and a thick...
min_thick = 5; pipe_d = 25; flange_d = 60; height = 25; num_setscrews = 3; num_bolts = 3; bolt_d = 5; bolthead_d = 10; setscrew_d = 5; setscrewhead_d = 10; s = flange_d - pipe_d - min_thick*2; difference() { union() { cylinder(r=pipe_d/2 + min_thick, h=height); cylinder(r=flange_d/2, h=...
glb/cad_b261714beb63.glb
Create a customizable handle by constructing a tapered vertical body with a total height of 65mm. The base should be a circle with a diameter of 13mm and rounded edges with a 2mm radius. The top should be a circle with a diameter of 22mm and rounded edges with a 5mm radius. Connect these two rounded ends with a smooth ...
bottom_width=13; bottom_radius=2; top_width=22; top_radius=5; height=65; screw_head=8; screw_shaft=3.5; screw_sink=5; resolution=60; $fn=resolution; difference(){ hull(){ rotate_extrude () translate([bottom_width/2-bottom_radius,0,0]) circle(r=bottom_radius); translate ([0,0,height-top_radius])...
glb/cad_3988b12b8e2f.glb
Create a servo bracket with a total footprint of 45mm width, 50mm depth, and 30mm height. Start with a base plate that is 45mm wide, 50mm deep, and 4mm thick. Remove a central rectangular section from this base, leaving two outer legs that are each 11mm wide and 35mm long. In the center of this base plate, cut two narr...
x = 45; y = 50; z = 30; wall = 4; legw=11; legl = 35; slotw = 1; slotl = 20; slotAl = 20; slotBl = 15; slotd = 28; slotz=10; translate([0,y-wall,0]) { difference() { cube([x,wall,z]); translate([x/2-slotd/2-slotw/2,0,slotz]) { cube([slotw,5,slotBl]); } translate([x/2+slotd/2-slotw/2,0,slot...
glb/cad_b7b26a16b35a.glb
Create a battery terminal cover by constructing a hollow rectangular shell with rounded corners. The main outer body should be 60mm long, 41mm wide, and 19mm high, with a wall thickness of approximately 2.1mm. The interior cavity should match these dimensions minus the wall thickness and have a height of 16.9mm. On o...
wall = 0.66*3.2; module cover() { rotate([180,0,0]) difference() { union () { translate([-33, -41/2, 0]) rcube([60, 41, 19]); translate([-45, -8, 0]) cube([14, 16, 19]); } union () { translate([wall-33, wall-41/2, -0.1]) rcube([60-2*wall, 41-2*wall, 19-wall], 5-wall); translate([-46, -6, -0.1]) cu...
glb/cad_8e47b72e75b9.glb
Create a parametric bullet camera rollbar mount. The main body is a cylindrical holder with an outer diameter of 53.3mm and a width of 22mm. This holder features two concentric cylindrical cutouts: a large central bore with a diameter of 45.3mm to accommodate a rollbar, and a smaller internal bore with a diameter of 25...
$fn=60; rollbar_dia = 45.3; cam_dia = 25; cam_len=42; holder_dia= rollbar_dia + 8; width=22; flange_height = 10; flange_length = 88; cc = 0.4142; hole_offset = 35; module rollbar () { translate([-100,0,0]) rotate([0,90,0]) cylinder(r=rollbar_dia/2, h= 200); } module camera () { translate([0, cam_len/2, (rollbar_...
glb/cad_d9744ba34c61.glb
Create a Flexy-fixed Greg's Wade's Extruder consisting of two interlocking herringbone gears. The distance between the center of the two axles is 39.4555mm. Construct the first gear with 11 teeth and a total gear height of 10mm. It features a base 8mm thick with a 5.35mm diameter central hole. Incorporate a D-shaped s...
include <involute_gears.scad> include <teardrop.scad> debug = 0; printing = 1; distance_between_axles = 39.4555; gear_height = 10; teeth_twist = 1; chamfer_gradient = tan(45); gear1_teeth = 11; gear1_base_height = 8; gear1_shaft_diameter = 5 + 0.35; gear1_setscrew_diameter = 3 + 0.4; gear1_setnut_width = 5.5...
glb/cad_75494a05d27f.glb
Create a sitting cat model consisting of a main body, a head, two front paws, and a nose. Construct the main body as a rounded, upright form. The lower section consists of two rounded foot-like shapes at the base, each roughly 26mm in diameter. The torso rises from these, blending into a larger rounded back. For the...
$fn=40; difference(){ union(){ translate([0,8,90]) scale([1.2,1.2,1.2]) union(){ difference(){ union(){ translate([0,0,0]) sphere(20); scale([1.08,1,0.8]) translate([0,0,-4]) sphere(20); } translate([0,-20,-10]) scale([1.2,1.2,1.2]) difference(){ cylinder(5,4,0); translate([5,0,5]) sphere(5); translate([-...
glb/cad_54ba4a4f982a.glb
Create a lampshade composed of 44 stacked, thin rectangular strips, each measuring 62.5mm by 1mm by 1mm. Arrange these strips in a vertical sequence where each subsequent layer is shifted upward by 2.5mm. As the layers ascend, apply a progressive rotation of 1.66 degrees around the Y-axis and a 4-degree rotation around...
lay=44; module strip() { translate ([0,0,0]) cube([62.5,1,1],center=false); } module cell(a) { translate ([0,0,a*2.5]) scale([1,1,1+a/44]) rotate ([0,1.66*a,4*a]) strip(); } for (i=[0:lay-1]) { hull() { cell(i); cell(i+1); } } scale ([1,-1,1]) for (i=[0:lay-1]) { hull() { cell(i); cell(i+1); } }
glb/cad_b548ec0584fd.glb
Create a Yubikey holder consisting of three stacked plates. Each plate is based on a central composite shape formed by the union of several elements: two intersecting rectangular prisms of 20mm x 49mm x 3mm and 49mm x 20mm x 3mm, additional rectangular blocks of 10mm x 39mm x 3mm and 39mm x 10mm x 3mm, and a 39mm x 15m...
translate([0,0,6.2*2])difference() { union() { cube([20,49,3], center=true); cube([49,20,3], center=true); translate([15,-5,0])cube([10,39,3], center=true); translate([5,-15,0])cube([39,10,3], center=true); translate([-12,17,0])cube([39,15,3], center=true); translate(...
glb/cad_446330f8d0ff.glb
Create a Raspberry Pi model B mounting bracket. Start with a rectangular base measuring 70mm in length, 20mm in width, and 5mm in height. Position this base so it extends from -10mm to 10mm along its width axis. On the top surface of this base, create two rectangular upright supports, each 10mm wide, 20mm deep, and 16m...
union() { difference() { translate([0,-10,0])cube([70,20,5]); translate([5,5,0])cylinder(h=10, r=1.7, $fs=0.01); translate([65,5,0])cylinder(h=10, r=1.7, $fs=0.01); translate([5,5,2.5])cylinder(10,3.2,3.2, $fn=6); translate([65,5,2.5])cylinder(10,3.2,3.2, $fn=6); } ...
glb/cad_83a67ca484bc.glb
Create a Sunhokey Prusa i3 mount by starting with a solid cube measuring 38mm x 38mm x 32mm. Carve a central vertical hole through the top face with a radius of 4mm, centered at x=19mm and y=39mm. Remove two large rectangular sections from the sides to create a channel: one block measuring 8mm x 40mm x 20mm positioned ...
difference() { translate([0,0,-1]){ difference() { difference() { difference() { cube([38,38,32]); translate([19,39 ,20])rotate([90,0,0])cylinder(h=40, r=4, $fs=0.01); translate([15,-1,0])cube([8,40,2...
glb/cad_5ea0737407c8.glb
Create a mount for a printer shaft by starting with a solid cube measuring 38mm x 38mm x 32mm. Remove a central vertical cylinder with a radius of 4mm, centered at x=19mm and y=39mm, extending 40mm high to create a primary bore. Carve out two large rectangular sections from the sides: one from x=0 to 10mm and another f...
difference() { difference() { translate([0,0,-1]){ difference() { difference() { difference() { cube([38,38,32]); translate([19,39 ,20])rotate([90,0,0])cylinder(h=40, r=4, $fs=0.01); ...
glb/cad_92a0f09e4de8.glb
Create an Internet Button Case consisting of a shallow cylindrical basin with a central mounting pillar. Start by creating a main cylinder with an outer diameter of 76.5mm and a total height of 12mm. Hollow out the center of this cylinder to create a basin with an internal diameter of 72.5mm and a depth of 10mm, leavin...
wall_thickness = 2; internal_diameter = 72.5; internal_depth = 10; boss_diameter = 5; boss_height = 5; boss_internal_diameter = 3; screw_hole_diameter = 5; $fs = 1; $fa = 5; abit = 0.000001; alot = 10000000; difference() { union() { difference() { cylinder(h = internal_depth + wall_thicknes...
glb/cad_d6498563cb42.glb
Create an inductive proximity sensor bracket by constructing a base structure from several intersecting rectangular prisms. Start with a central vertical block 18mm thick, 20mm wide, and 2mm deep, centered at the origin. Attach a second rectangular block to the side, 18mm thick, 35.5mm wide, and 2mm deep, positioned at...
difference() { union() { translate([11, -0.75, 0]) cube([2, 4, 18], center = true); translate([0, 0.25, 0]) cube([20, 2, 18], center = true); translate([-11, -16.5, 0]) cube([2, 35.5, 18], center = true); translate([-12.5, -32.75, 0]) cube([31.5, 3, 18], center = true); translate([-4, -47.25, 0]) cube([8, 26, 18...
glb/cad_b87c2a1cce01.glb
Create a decorative lampshade composed of 44 stacked layers of thin rectangular strips. Each individual strip has a base dimension of 62.5mm by 2mm by 1mm. Arrange these strips in a vertical stack where each subsequent layer is shifted upward by 2.5mm. As the layers ascend, apply a progressive transformation to each st...
lay=44; module strip() { translate ([0,0,0]) cube([62.5,2,1],center=false); } module cell(a) { translate ([0,0,a*2.5]) scale([1,1,1+a/44]) rotate ([0,1.66*a,4*a]) strip(); } translate ([0,-.5,0]) for (i=[0:lay-1]) { hull() { cell(i); cell(i+1); } } translate ([0,.5,0]) scale ([1,-1,1]) for (i=[0:lay...
glb/cad_e18c6f87bc8d.glb
Create a Dragonboard 410c Case consisting of a bottom base and a top cover. For the bottom base, create a hollow rectangular box with outer dimensions of 89.5mm x 58.2mm x 17mm and a wall thickness of 2mm. Inside this box, add four cylindrical support pillars of 6mm diameter and 6mm height, positioned at the corners....
th = 2; bx = 85.5; by = 54.2; g = 0.4; thg = th + g; ox = bx + (thg * 2); oy = by + (thg * 2); bzo = 4 + th; module basicBox() { difference() { cube([ox, oy, 17]); translate([th, th, th]) cube([bx + g * 2, by + g * 2, 17]); } } module stand( x, y ) { translate([x, y, 0]...
glb/cad_238bff81f65d.glb
Create a Soldering Iron Tip Holder by starting with a rectangular base block measuring 100mm in length, 44mm in width, and 4mm in height. Within this block, create a grid of 18 holes to hold the tips. The holes should be arranged in three rows of six. Position the holes such that the first column starts 8mm from the le...
rotate([90,0,0]) difference(){ cube ([100,44,4]); for ( xx = [0:6]) { for ( yy = [0:2] ) { translate([8+(xx*14),8+(yy*14),1 ]) cylinder (r=7.7/2, h=10,$fn=10); } } } translate([0,-13,0]) rotate([90,0,0]) difference(){ cube ([100,44,2]); for ( xx = [0:6]) { for ( yy = [0:2] ) { translate([8+(xx*14),8+(yy*14),0 ]...
glb/cad_3df810ebf5df.glb
Create a Mouth Operated Mouse consisting of a mouthpiece and a multi-layered case. For the mouthpiece, create a body by forming a hull between a 15mm radius cylinder at the base and two cylinders of 3mm and 2mm radii positioned at heights of 20mm and 35mm respectively. Hollow this out by removing a central channel fo...
include<oshw_logo.scad> module mouthpiece() { module sub_mouthpiece_body() { hull() { translate([0,-1,35]) cylinder(h=0.1, r=2, $fn=40); translate([0,1,35]) cylinder(h=0.1, r=2, $fn=40); translate([0,-1,20]) cylinder(h=0.1, r=3, $fn=40); translate([0,1,20]) cyl...
glb/cad_67e9a6b5fc95.glb
Create a washing machine latch handle consisting of a circular grip and an attached rectangular lever arm. Start with the grip: create a thin cylinder with a radius of 28.5mm and a thickness of 3mm. Scale this cylinder by 0.75 along the X-axis to create an oval shape. Remove a central hole with a radius of 3.4mm. Add...
handle_size = 57; handle_thickness = 3; extension_length = 43; extension_width = 16; extension_depth = 14; extension_thickness = 3; support_thickness = 2; pivot_hole = 4.5; pivot_hole_inset = 4.6 + pivot_hole / 2; $fn = 32; module handle() { holes_radius = handle_size / 25; scale([0.75,1,1]) difference() { cyl...
glb/cad_f20962f70a2a.glb
Create a washing machine latch handle consisting of a circular grip and an attached lever arm. Start with a flat cylinder for the handle that has a radius of 20mm and a thickness of 2.8mm. Attached to this handle, construct a lever mechanism. The main body of the lever is a rectangular block 44mm long, 15mm wide, and...
handle_size = 40; handle_thickness = 2.8; extension_length = 44; extension_width = 15; extension_depth = 14; extension_thickness = 2.8; support_thickness = 2.4; pivot_hole = 4.5; pivot_hole_inset = 5.5 + pivot_hole / 2; $fn = 64; module handle() { holes_radius = handle_size / 25; cylinder(r = handle_size / 2, h = ...
glb/cad_33319a03f890.glb
Create a Maytag MAF 1060 Washing Machine Latch Handle. The object is a lever mechanism with a total height of 16mm and a central inner cavity height of 10mm. Construct the main body by combining a force arm and a handle arm. The force arm is a rectangular block 9mm long, 12mm deep, and 16mm high, with its outer edges...
outer_width = 16; inner_width = 10; thickness = (outer_width - inner_width) / 2; force_arm_extension = 9; force_arm_thickness = 2.6; force_arm_depth = 12; handle_arm_extension = 35; handle_arm_thickness = 2.6; metal_cavity_diameter = 12; pivot_rod_diameter = 4.3; pivot_rod_offset = 7.2; spring_diameter = 8.5; spring_...
glb/cad_46787452fe4d.glb
Create a Z shaft coupler consisting of two connected hubs. The bottom hub is a cylinder 10mm high with a 20mm diameter. It has a central vertical hole 5mm in diameter. Within this central hole, create two flat notches 0.5mm deep, positioned 90 degrees apart. To secure the shaft, add two perpendicular holes for grub scr...
inputShaftDiameter = 5; inputShaftLength=8; inputGrubCount=2; inputGrubAngle=90; inputFlatDepth=.5; outputShaftDiameter = 8; outputShaftLength=15; outputGrubCount=3; outputGrubAngle=120; nutDiameter = 7.1; nutWidth = nutDiameter * sin(60); nutThickness=2.8; screwDiameter = 3; hub(hubDiameter=20, shaftDiameter=5....
glb/cad_fc6028789f8e.glb
Create a Haenau Big Box printer mount. Start by creating a central base plate that is 22mm wide, 60mm long, and 3mm thick. Add two vertical support cylinders at the front and back edges, centered along the length. Each cylinder should have a diameter of 11.5mm and a height of 10mm, positioned 2mm above the base. Con...
$fn=30; N17 = 42.67; N17_Holes = 31.0/2; Bob_off = 5; drill_Visable = 0; bobbins_Visable = 0; Show_Belts = 0; difference(){ union(){ translate ([0, N17_Holes+5.5,2]) cylinder (d=11.5,h=10); translate ([0,-N17_Holes-5.5,2]) cylinder (d=11.5,h=10); color ("green") translate ([ -11,-30, 0]) cube ([ 22,60, 3]); if (...
glb/cad_45e255371c59.glb
Create a Core XY slider mount. Start with a central body consisting of a rectangular block 33mm wide, 60mm long, and 25mm high, joined to a side block 12.5mm wide, 60mm long, and 25mm high. Add two rounded protrusions to the sides, each 25mm wide, 15mm deep, and 15mm high, shaped as resized cylinders. Cut a central lo...
N17_Holes = 31.0/2; Lin_Bearing_Count = 2; { gap = 4; Hole_bearing = 16; Length_Bearing = (25 * 2) + gap + 30; } for_drawing = 0; ZOD = 22+3.5; ZID = 19+0.5; ZTh = 5; Slide_depth = 12; Slide_Diam = 8; Slide_Len = 20; Slide_Gap = 60; Motor_Pully_OD = 16; Rod_Lid_Th_Min = 7; Rod_Gap = N17_Holes+5.5; Pully_Gap =...
glb/cad_3dfc2cec432d.glb
Create a Core XY slider mount. Start with a central rectangular body measuring 33mm by 60mm by 25mm. On the top and bottom faces of this body, center two flattened cylindrical protrusions, each 15mm wide and 20mm high, with a depth of 6mm. At the center of the body, create a longitudinal hole with a diameter of 16mm a...
N17_Holes = 31.0/2; Lin_Bearing_Count = 2; { gap = 4; Hole_bearing = 16; Length_Bearing = (25 * 2) + gap + 30; } for_drawing = 0; ZOD = 22+3.5; ZID = 19+0.5; ZTh = 5; Slide_depth = 12; Slide_Diam = 8; Slide_Len = 20; Slide_Gap = 60; Motor_Pully_OD = 16; Rod_Lid_Th_Min = 7; Rod_Gap = N17_Holes+5.5; Pully_Gap =...
glb/cad_1205c39c99ab.glb
Create a Haenau Big Box printer mount. Start by constructing a central base plate with a thickness of 3mm. On the top surface of this base, position two vertical walls that are 2.5mm thick and 25mm high, spaced apart to form a channel. Add two cylindrical stumps with a diameter of 11.5mm and a height of 10mm, positio...
use<write.scad> $fn=30; N17 = 42.67; N17_Holes = 31.0/2; N17_Holes_Diag = 43.8/2; M_Diag = -8; Bob_off = 5; drill_Visable = 0; bobbins_Visable = 0; Show_Belts = 0; difference(){ union(){ rotate ([180,180,0]) translate ([-57, -41, 1.0]) write("Haenau V2",h=7,t=3,font="orbitron.dxf",space=1.1); rotate ([180,180,18...
glb/cad_9fa91e830b02.glb
Create a Haenau Big Box motor mount. Start with a central base plate that is a combination of a 50mm cube and a 124mm by 5mm by 30mm rectangular block. Add two primary cylindrical turrets centered 60mm apart along the X-axis; each turret has a base diameter of 18mm and tapers to 14mm over a height of 12mm. Add two ad...
$fn=30; use <write.scad> Spacing = 60; Shaft = 7.9; Turret_H = 12; mount =31/2; Plug_D = 23; Plug_T = 2; Case = 42; Bearing_OD = 22; Bearing_TH = 7; difference() { union() { color("blue") translate ([-42,17,3]) write("Z-Mount",t=4,h=6,center=true); color("blue") translate ([42,17,3]) w...
glb/cad_519489d9dc66.glb
Create a rectangular storage case for game pieces with overall exterior dimensions of 100mm in length, 100mm in width, and 10mm in height. The case should have a base thickness of 1.5mm and outer walls that are 2mm thick. Divide the interior of the case using internal walls that are 1mm thick. First, place a primary ...
module dividers(div, size, thickness) { for (i = [0:len(div)-1]) { if (len(div[i])) { assign (start = i > 0 ? div[i-1] : 0, end = i < len(div)-1 ? div[i+1] : size[0]) { translate([start, 0, 0]) multmatrix([[0, 1, 0, 0], [1, 0, 0, 0], [0...
glb/cad_2a3ffe3f3e29.glb
Create a slide case for game pieces with overall dimensions of 76mm in length, 38.5mm in width, and 19.475mm in height. The main body is a rectangular box with walls 2mm thick. The interior is divided into three sections: the first section is 25.75mm wide, the second is 21.5mm wide, and the third is 28.25mm wide. Alon...
use <divided_box.scad>; big = 100; small = 0.01; dude_head_d = 9.3; dude_neck_d = 6.0; dude_neck_h = 13.9; dude_foot_d = 12.0; dude_height = 24.5; dude_colors = ["cyan", "pink", "orange", "lime", "green", "olive", "white"]; dude_stride = 17; dude_pad = 1.0; dude_line = 17.475 - dude_pad - dude_foot_d; house_height ...
glb/cad_46d940352504.glb
Create a pandemic game piece slide case consisting of a divided rectangular box and a sliding lid. The main box has overall dimensions of 43mm in width, 23.1mm in depth, and 10.1mm in height. The walls and base are 2mm thick, with internal dividers also 2mm thick, creating four separate compartments. Each compartment i...
use <divided_box.scad>; big = 100; small = 0.01; cube_dim = 8.1; cube_gap = 0.5; cube_cfg = [2, 6, 2]; cube_pad_total = cube_dim / 2; cube_pad = (cube_pad_total - (max(cube_cfg) - 1) * cube_gap) / 2; cube_array_dim = cube_dim * cube_cfg + cube_gap * (cube_cfg - [1, 1, 1]) + cube_pad * [...
glb/cad_70de9eadb669.glb
Create an RM-11 Mount by constructing a main rectangular body and hollowing out its center. Start with a solid block that is 20mm wide, 22mm deep, and 6mm high. To create the outer walls, integrate two vertical cylinders with a radius of 2mm, positioned at the far left and right edges (x=2 and x=18) and extending throu...
$fs=.1; module main(){ cube([4,22,2]); translate([16,0,0]){ cube([4,22,2]); } translate([2,0,0]){ cube([16,22,4]); } rotate([270,0,0]){ translate([2,-2,0]){ cylinder(h=22,r=2); } translate([18,-2,0...
glb/cad_2b581d69c6df.glb
Create a wheel for a geared stepper motor with a total diameter of 60mm and a thickness of 4mm. At the center, add a cylindrical hub with a diameter of 12mm and a height of 10mm. Cut a central shaft hole through the hub and rim with a diameter of 5.5mm, but modify this hole to include a flat side 3mm wide to accommod...
use <write/Write.scad> features = "spokes"; wheel_diameter = 60; fudge_factor = 0; text = "ChickTech Rules!"; font = "orbitron.dxf"; letter_depth = 1; letter_spacing = 1.2; letter_height = 8; difference(){ union() { if (features != "hub-only"){ cylinder(r=wheel_diameter / 2, h=4, $fn=100...
glb/cad_0c42375c7acc.glb
Create an Arduino Chassis for a Drawing Robot. Start with a main base plate that is 144mm long, 94mm wide, and 2.4mm thick, featuring rounded corners with an 8mm radius. On the top surface, add two longitudinal rails that are 144mm long, 4mm wide, and 4mm high, positioned symmetrically near the edges. In the center of...
$fn = 64; baseThickness = 2.4; cornerRounding = 8; plateOffset = 7; railOffset = 16; M3holeDia = 3.5; M3nutDia = 6.5; holeOffset = M3holeDia * 1.2; batteryOffset = 20; cassis_wid = 94; cassis_len = 144; xArduinoOffset = 20; yArduinoOffset = -4; penDiameter = 15.0; penRadius = penDiameter / 2; baseLen = 34.5; baseWi...
glb/cad_b195251c1355.glb
Create a revised headdress consisting of two primary geometric components. First, construct a ring by rotating a circle with a 1mm radius around a central axis at a distance of 20mm, then scale the resulting torus by a factor of 2 along the Y-axis to create an elliptical profile. Second, generate a star-shaped element ...
num=30; radii=[3,4,5,6,5,4]; count=7; $fn=100; color("green") rotate_extrude(convexity=100) translate([20,0,0]) scale([1.0,2.0]) circle(r=1); color("yellow") make_ring_of(10, count) translate([19,0,0]) rotate([0,90,-30]) star(num, radii); module make_ring_of(radius, count) { for (a = [0 : count - 1]) { ...
glb/cad_9287fa26d26e.glb
Create a Tinsert organizer with a total length of 80mm, width of 30mm, and height of 10mm. The main body is a rectangular slab with rounded corners of 3mm radius. Construct a grid of compartments by adding internal walls that are 1mm thick. Create 5 compartments along the length (x-axis) and 4 compartments along the ...
include <utils/build_plate.scad> length = 80; width = 30; height = 10; thickness = 1; x = 5; y = 4; radius = 3; wall = "yes"; vertical = "no"; vWidth = 40; vHeight = 20; handle = "no"; hWidth = 5; hThickness = 1; hHeight = 5; build_plate_selector = 0; build_plate_manual_x = 100; build_plate_manual_y =...
glb/cad_78d71e43fc75.glb
Create a Leveling Calibration Tool consisting of a thin, rectangular hollow frame. Start by creating a solid rectangular slab with overall dimensions of 220mm in length, 138.7mm in width, and 0.2mm in height. From the center of this slab, remove a smaller rectangular section measuring 218.6mm by 137.3mm with a height t...
h=0.2; delta = 6.0; rand = 0.7; x = 226.0 - delta; y = 144.7 - delta; difference() { translate([0,0,h/2]) cube([x,y,h],true); # cube([x-rand*2,y-rand*2,h*5],true); }
glb/cad_cb89dc0bf802.glb
Create a Z Stage LED Mounting Plate with a thickness of 3mm. The main body is a circular disk with a radius of 81.25mm, but it is clipped by a rectangular boundary that is 104mm wide and 83.75mm deep. Cut a large semi-circular void from the front of the plate with a radius of 35mm and a depth of 56mm. Centered on the...
led_width=11; led_height=2.25; bolt_spacing=104; bolt_size=2.75; bolt_y_offset=22; center_bolt_distance=73.75; extruder_cutout_width=70; extruder_cutout_depth=56; thickness=3; gap=2; border=5; extra=0.01; difference() { intersection() { translate([-(bolt_spacing)/2,0,0]) cube([bolt_spacing, center_bolt_distanc...
glb/cad_3d46e3747b01.glb
Create a HAENAU E3D Mount by starting with a base plate formed by the convex hull of four cylinders, each with a 4mm diameter and 6mm height, positioned at coordinates (20, 8, 0), (20, -8, 0), (-20, 8, 0), and (-20, -8, 0). From this solid base, remove several cylindrical holes and rectangular cutouts. First, center a ...
$fn=30; AAA(); module AAA () { difference () { union() { hull() { translate ([+20, +8, 0]) cylinder (d=4,h=6); translate ([+20, -8, 0]) cylinder (d=4,h=6); translate ([-20, +8, 0]) cylinder (d=4,h=6); translate ([-20, -8, 0]) cylinder (d=4,h=6); } } ...
glb/cad_dcc39332d4d6.glb
Create a HAENAU E3D Mount by starting with a central rectangular block measuring 30mm wide, 50mm deep, and 12mm high. Subtract two horizontal cylindrical holes with a diameter of 5.2mm that run through the entire 40mm width of the block, positioned 12.5mm above and below the center plane and 6mm from the bottom face....
$fn=30; belts = true; BoltLen = 20; BoltGap = 4; Want_Lumps = true; Want_Cool_Cutouts = true; difference () { union() { color ("DodgerBlue") translate ([-15,-25, 0]) cube ([30,50,12]); translate ([-15,+21,12]) rotate([0,90,0]) cylinder (d=5,h=30); translate ([-15,-21,12]) rotate([0...
glb/cad_68ec51e17025.glb
Create a Rubber Holder Block for a quadcopter by starting with a rectangular block measuring 10mm in width (X), 9mm in depth (Y), and 10mm in height (Z). Apply a 3D chamfer to all edges and corners with a radius of 0.9mm. Remove a vertical cylindrical hole for an M3 screw with a diameter of 2.5mm, positioned at X=2.7...
cx = 10 ; cy = 9 ; ch = 10 ; chamfer_type = 2 ; rCham = 0.9 ; ramp = 2.2 ; rM3 = 2.5 ; slot_x = -0.5 ; slot_z = 0.4 ; rRub1 = 0.65 ; rRub2 = 2.2 ; module roundcube (x, y, z, rad) { hull() { translate ([rad,rad,0]) cylinder (r=rad,h=z, $fn=30) ; translate ([rad, y-rad, 0]) cylinder (r=rad,h=z,...
glb/cad_242d58a129ec.glb
Create a paint bottle holder consisting of a slanted grid of cylindrical holes. The main body is a solid block with a total width based on 2 columns and 5 rows of bottles. Each bottle hole has a diameter of 37.2mm (35.5mm bottle diameter plus 1.7mm spacing) and a depth of 21.5mm. The holes are arranged in a grid with...
column = 2; row = 5; deg = 20; object = 0; coverThick = 1.2; diameter = 35.5; bottleH = 42; holeH = 21.5; space = 1.5; offset = 1; holespace = 1.7; minusThick = 2.5; holeDiameter = diameter + holespace ; x = sqrt(space*space + holeH*holeH) * cos(90-deg-atan(space/holeH)); y = round((holeDiameter*column - o...
glb/cad_5aada94fccdb.glb
Create a RSE-1 Bowden Extruder cold-end consisting of a base, an idler arm, and a top plate. Start with a base plate 23.5mm thick. The base should be a cube of 42.3mm x 42.3mm with rounded corners (54mm diameter outer rounding) and a central circular cutout 22mm in diameter and 2mm high to accommodate a motor flange....
co=1; gap=0.5; kf1=0.25; kf3=0.40; la=31; gb=42.3; gad=54; frd=22; frh=2; bbd=3; bbt=4; wd=5; wl=24; gl=48; t=23.5; skd=7; diai=8; idh=18; lid=8; lad=22; lh=7; pid=5; pad=8; pl=13; lab=3; ld=3; h1=7; h2=3; $fn=360; base (); *translate([gb-(gb-la)/2,(gb-la)/2,5.25])idler(); *rotate([0,90,0])idle...
glb/cad_77fe33f67164.glb
Create a Ball wheel sketch 1, which is a circular retaining ring designed to hold a ball in place. Start by creating a ring with a height of 12mm. The ring's cross-section is a trapezoid with an inner radius of 30mm and an outer radius of 42mm, though the top surface is slightly tapered, narrowing the inner radius to...
$fn = 120; rollOffsetZ = 1; mainBallR = 60 / 2; rollR = mainBallR / 5; rollLength = (mainBallR / 2) + 5; pinionR = 5 / 2; pinionLength = 4; echo ("rollOffsetZ", rollOffsetZ); rollRadiusToBall = .5 * rollLength + sqrt(pow(rollLength, 2) / 2) + rollR + 10; echo ("rollRadiusToBall", rollRadiusToBall); rollAngle = ...
glb/cad_9bced23ac0fa.glb
Create a Ball Wheel Sketch ring designed to hold a ball with a radius of 30mm. The main body is a circular ring with a height of 12mm, an inner radius of 37.4mm, and an outer radius of 47.4mm. Around the ring, create seven equidistant radial openings spaced every 45 degrees. Each opening is a cutout designed to house...
$fn = 120; rollOffsetZ = 1; mainBallR = 60 / 2; rollR = mainBallR / 5; rollLength = (mainBallR / 2) + 5; pinionR = 5 / 2; pinionLength = 4; echo ("rollOffsetZ", rollOffsetZ); rollRadiusToBall = .5 * rollLength + sqrt(pow(rollLength, 2) / 2) + rollR + 10; echo ("rollRadiusToBall", rollRadiusToBall); rollAngle = ...
glb/cad_813ed77023a1.glb
The provided OpenSCAD code is a comprehensive library of 3D-printable music band logos. It uses a modular approach where each band has its own `module` containing the geometric data (polygons) required to recreate their iconic logo. ### Technical Breakdown 1. **Coordinate System & Scaling**: Most modules use a ...
h_logo = 5; fudge = 0.1; module RHCP_logo(h) { scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[48.436911,-98.716338],[70.334505,-84.614004],[66.649473,-78.944724],[52.972335,-87.767541],[50.279427,-83.586447],[62.999874,-75.365991],[59.527440,-69.9...
glb/cad_8636b44268da.glb
This OpenSCAD code is designed to generate a 3D-printable logo for the band **KINO** (and contains commented-out modules for other bands). It uses a combination of `polygon` and `linear_extrude` to create a flat, extruded design. ### Technical Breakdown #### 1. The `KINO_logo(h)` Module This is the main entry point. ...
h = 5; fudge = 0.1; module DDT_logo(h) { scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[100.363973,-85.925025],[107.711891,-84.853177],[114.076543,-82.452591],[114.324575,-77.279373],[112.287177,-75.171109],[111.737966,-71.362062],[112.765523,-67....
glb/cad_c694b889cd04.glb
Create a Music Band keychain consisting of a base plate and a raised logo. Start by creating a rectangular base plate with dimensions 78mm in length, 37mm in width, and 3.5mm in height. The corners of this rectangle should be rounded with a radius of 2mm. At the top center of the base, add a circular hole with a radi...
layer_h = 0.2; use <logo_lib.scad> h_base = 3.5; h_logo = h_base + 7*layer_h; r_circ = 67/2; color_base = "black"; color_logo = "white"; sc = [0.6, 0.6, 1]; type = 104; module ring(r, t, h) { r1 = r + t; r2 = r; $fn = 3*r1; difference() { cylinder(r = r1, h = h); cylinder(r = r2, h = 3*h, center = true)...
glb/cad_cbd2a120c414.glb
Create a Parametric Spool Adapter consisting of a central hub and four radiating arms. Start with a central cylinder that has a radius of 15.25mm and a height of 15mm. At the base of this hub, add a thin circular disc with a radius of 16.25mm and a height of 2mm. From the center, extend four identical arms spaced 90 d...
arms = 4; spool_id = 104; hub_id = 17; mount_od = 22.5; mount_endcap_height = 7; mount_endcap_id = 21.7; mount_inner_cap_height = 0; mount_inner_cap_id = 17; ring_width = 5; ring_diameter = spool_id; hub_height = 15; tip_height = 10; layer_height = 0.2; spool_radius = spool_id / 2; mount_radius = mount_od / 2; ...
glb/cad_0835f41a8977.glb
Create a 3D model consisting of three distinct geometric shapes aligned along the X-axis. First, create a sphere with a radius of 10mm centered at the origin. Next, place a cube with side lengths of 10mm, positioned so that its center is at X=10mm, Y=-10mm, and Z=0mm. Finally, add a cone with a base radius of 12mm and ...
R = 10; sphere(r=R); taille_cube = 10; texte_cube = "texte"; translate([R,-R,0]) cube(taille_cube); base = 12; hauteur = 20; translate ([R+taille_cube+hauteur,0,0]) rotate ([0,-90,0]) cylinder (r1=base, r2=0, h=hauteur);
glb/cad_45d14f944c86.glb
Create a Caliper Shelf consisting of two separate vertical support pieces. For the first piece, create a rectangular block 10mm wide, 2mm thick, and 15mm high. Center a cylindrical hole with a 2mm radius and 6mm depth through the center of this block. Position a second rectangular block 12mm away from the first along t...
difference () { translate([0,0,0]) cube([10,2,15], center = true); translate([0,2,0]) rotate([90,0,0])cylinder(r=2,h=6); } translate([0,6.5,7.5]) rotate([90,0,0])cube([10,2,15], center = true); difference () { translate([12,0,0]) cube([10,2,15], center = true); translate([12,2,0]) rotate([90,0,0])cylinder(r=2,h=6); }...
glb/cad_0657c0e8f4a9.glb
Create a battery compartment cover for a Sony TFM-110WB radio. Start with a main rectangular body measuring 77.45mm in length, 31.0mm in width, and 3.7mm in height, featuring rounded corners with a 2mm radius. Hollow out the center of this body, leaving a wall thickness of 1.5mm. Along one long edge, create a bevel b...
module miniround (size, radius) { $fn=50 ; x = size[0]-radius/2 ; y = size[1]-radius/2 ; minkowski () { cube (size=[x,y,size[2]]) ; cylinder (r=radius) ; } } l = 77.45 ; w = 31.0 ; h = 3.7 ; thickness = 1.5 ; difference () { union () { difference () { ...
glb/cad_970f9ae23dd8.glb
Create a battery carrier base designed to hold a 3x2 grid of AAA batteries. The overall footprint is a rounded rectangle with a width of 34.2mm and a depth of 22.4mm, featuring a base thickness of 0.8mm and outer walls of 0.8mm. The main body is a hollow tray with an interior height of 30mm. Inside, create a grid of s...
use <write/Write.scad> _part = "bottom"; _batteryDiameter = 10.7; _insideHeight = 30; _columns = 3; _rows = 2; _walls = 0.8; _base = 0.8; _lipHeight = 2; _fitGap = 0.1; _labelText = ""; _labelFont = "write/orbitron.dxf"; _labelDepth = -0.3; _labelHeight = 8; module cylinderAt(r, h, x, y, z) { translate([...
glb/cad_f02e15929597.glb
Create a Curvy Cube by starting with a 50mm cube centered on the origin. To form the primary geometry, create a complex shape by intersecting the cube with a union of three cylinders, each with a height of 100mm and a maximum radius of 100mm, positioned and rotated along the X, Y, and Z axes. From this resulting volume...
curvetype = 1; size = 50; thickness = 5; MinWall = 3; solid = 0; detail = 100; module CurvyCube() { $fn = detail; translate([0,0,size/2]) { difference() { intersection() { difference() { union() { difference() { cube(size=size*1.5, center=true); ...
glb/cad_73c1f9ef5864.glb
Create an EC5 Lid for a water purification system. Start with a main cylindrical cap with an outer diameter of 73.75mm and a height of 17mm. Hollow out the center of this cylinder to create a wall thickness of 2mm, leaving an internal diameter of 69.75mm. Add a series of 32 small cylindrical knurls around the outer per...
nozzle = 0.75; layerThickness = 0.200; thickness = 2; play = 0.5; $fn = 64; LidID = 69.0 + 2*play + nozzle; LidHeight = 17.0; jarMouthDiameter = 60.0; numElectrodes = 4; electrodeWidth = 25.76 + play; electrodeThickness = 3.20 + play; electrodeDepth = 26.0; electrodeOffset = 0.0; reactionSpacing = 4.5; rotate(180, [...
glb/cad_d2ffe3e619ab.glb
Create a Tricopter 250 Class frame consisting of a central body and three arms. Construct the main body using two parallel plates (top and bottom) with a thickness of 3mm. The plates feature a central rectangular section with rounded ends and extended tabs for mounting components. Create cutouts in these plates to ac...
class = 250; arml = 65; armw = 25; armh = 10; armc = 3; armm = 30; arma = 120; farmw = 17; armld = 65; armhx = [armw/2, armw/2]; armhy = [-15, -25]; armhr = [1.5, 1.5]; armhd = 10; armholes = 2; farmld = 40; farmhx = [farmw/2, farmw/2]; farmhy = [-15, -25]; farmhr = [1.5, 1.5]; farmhd = 10; farmholes = 2; motorhc = 7...
glb/cad_192f647fbe13.glb
Create a PV module holder consisting of a central rectangular block and two symmetrical outer clips. Start with a central rectangular slab measuring 71mm in length, 20mm in width, and 50mm in height, centered on the origin. Carve a rectangular void out of the center of this slab measuring 61mm by 22mm by 60mm, offset b...
module holder(){ difference(){ cube([35,31,35],center=true); translate([0,2,0]){ cube([29,25,40],center=true); } translate([-10,8,-18]){ cube([22,10,60],center+true); translate([0,0,0]){ } } } } module Bolt_hole(){ $fn=100; rotate([90,0,0]){ cylinder(20,2,2); } } module all() { differ...
glb/cad_5505d44add81.glb
Create a spool adapter for a sewing machine by constructing a truncated cone with a height of 116.66mm. The base of the cone should have a diameter of 38.50mm, tapering linearly to a top diameter of 24.41mm. Center a vertical cylindrical hole with a diameter of 7.4mm through the entire length of the object to allow it ...
topD = 24.41; botD = 38.50; h = 116.66; $fn = 60; slope = ((botD - topD) / 2) / h; h2 = (topD / 2) / slope; h3 = h + h2; difference() { translate([0, 0, -24.3]) cylinder( h3, d1 = botD, d2 = 0); union() { translate([-20, -20, -200]) cube([200, 200, 200]); translate([-20, -20...
glb/cad_0b0c39334c8f.glb
Create a ventilated RAMPS 1.3 Case. The main body is a rectangular shell with an overall length of 112mm (105mm plus a 7mm fan mount extension), a width of 65mm, and a height of 46mm. The walls are 2mm thick. Inside the case, create two mounting ridges to support a PCB. The left ridge is 7.5mm high, and the right ridg...
c=false; th=2.0; fanh=7.0; length=105.0 + fanh; width=65.0; height=46.0; fh=2.0; mrlh=7.5; mrh=5.0; rth=th+1; mrw=3.0; mrd=2.0; soh=6.0; ch=5.0; cd=5.0; dxf="Ramps case.dxf"; shell="shell"; bottom="cover"; standoffs="standoffs"; fan="fan"; scale=1.0; i=2; if (i==1) { difference() { union() { rampsCover(); ...
glb/cad_5af1a2d92b1d.glb
Create a Round Soffit Vent consisting of a thin circular disc with a diameter of 112mm and a total height of 2.4mm. The object features a solid outer border 10mm wide that encircles the entire perimeter. The interior of the disc, inside the border, is filled with a flat grid mesh pattern. This mesh is composed of inter...
$fn=128; meshscreen_d=112; meshscreen_borderwidth=10; meshscreen_h=1.2 * 2; layer_h=0.3 ; meshthread_w=0.45; mesh_space=2; meshscreen_circle(h=meshscreen_h,border_w=meshscreen_borderwidth,mesh_w=meshthread_w,mesh_space=mesh_space,width=meshscreen_d,layer_h=layer_h); module meshscreen_circle(h=2,border_w=meshscr...
glb/cad_c718e2431d00.glb