Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Downspout Diverter designed to fit a rectangular pipe. Start by creating a main rectangular sleeve with an interior cavity measuring 69mm by 69mm and a wall thickness of 4mm. This sleeve should have a length of 40mm and all exterior corners rounded with a radius of 8mm. Extend the sleeve forward by adding 30 ...
insideWidth=69; insideHeight=69; wall=4; overlap=40; rounding=8; small=0.01; $fn=20; module roundedCubeLength(length,width,height){ translate([1,rounding,rounding]) minkowski(){ cube([length-0*rounding,width-2*rounding,height-2*rounding]); translate([0,0,0])rotate([0,-90,0])cylinder(r=rounding,h=1); } }...
glb/cad_11b6d0c17be9.glb
Create a CP40 Nozzle Holder consisting of two distinct parts: a clip plate and a shim. For the clip plate, create a rectangular base measuring 14mm wide by 84mm long with a thickness of 1.2mm. Along the length, create five repeating sections spaced 14mm apart. In each section, center a circular hole with a diameter of...
$fn=90; nozzle_holder_clips (); translate ([40, 0, 0]) nozzle_holder_shim (); module fillet(r, h) { eta = 0.1; translate([r / 2, r / 2, 0]) { difference() { cube([r + eta, r + eta, h], center = true); translate([r/2, r/2, 0]) cylinder(r = r, h = h + 1, center = true, $...
glb/cad_7179e2957153.glb
Create a Customizable Card Box consisting of a main box and a removable lid. For the box, create a rectangular shell with an outer width of 68.6mm (deck width 65mm plus 1.8mm walls on each side) and an outer length of 98.6mm (deck length 95mm plus 1.8mm walls on each side). The interior cavity should be 65mm by 95mm w...
part = "both"; deck_width = 65; deck_length = 95; deck_thicknesses = [25]; deck_spacer = .9; lid_height = 20; lid_finger_cut_radius = 15; lid_locks_length = 5; wall_thickness = 1.8; gap = .3; engrave_depth = -.9; mirror = true; text_1 = "Exploding"; text_1_size = 10; text_1_font = "Roboto"; text_1_font_s...
glb/cad_2083aa3cd4c5.glb
Create a Tanget Swirl 5b by generating a complex extruded geometric form. Start by defining a path consisting of a series of small circles with a radius of 1.5mm. These circles are positioned in a circular arrangement with a base radius of 30mm, but their distance from the center fluctuates according to a tangent wave ...
cw=3; res=180; wave_num=6; module circ() { circle (r=cw/2); } module hullit(y) { hull() { doit(y); doit(y+1); } } module sh() { for (i=[0:res-1]) { hullit(i); } } module doit(z) { rotate ([0,0,z*360/res]) translate ([30+5*tan(wave_num*z*360/res),0,0]) circ(); } module shp() { rotate ([0,0,1]) linear_...
glb/cad_a76ea7aef08d.glb
Create a truncated octahedron by starting with two square-based pyramids joined at their bases. Each pyramid must have a base diameter of 60mm and a height of 30mm, with the base being a square (4-sided polygon). Position these two pyramids so they share a common base and extend in opposite directions along the Z-axis....
intersection(){ hull(){ cylinder(d1=60, d2=0, h=30, $fn=4); scale([1,1,-1]) cylinder(d1=60, d2=0, h=30, $fn=4); } cube(40,center=true); }
glb/cad_6decc5c0cfed.glb
Create a frame for Spectra film by starting with a solid rectangular block measuring 104mm wide, 105mm deep, and 4mm thick, centered on the origin. Carve out a central rectangular opening measuring 90mm wide, 73mm deep, and 6mm thick, positioned 13mm back from the center along the depth axis to create the main viewable...
difference() { cube(size=[104,105,4], center = true); translate([0,-13,0]) cube(size=[90,73,6], center = true); translate([0,1,0]) cube(size=[102,103,2], center = true); }
glb/cad_711fcd03e4c1.glb
Create a PX-70 Square Frame by starting with a solid rectangular block measuring 90mm wide, 109mm deep, and 5mm thick, centered on the origin. Carve out a central rectangular hole 79mm wide, 79mm deep, and 7mm thick, positioned 10mm back from the center along the depth axis. Additionally, remove a rectangular section f...
difference() { cube(size=[90,109,5], center = true); translate([0,-10,0]) cube(size=[79,79,7], center = true); translate([0,2,0]) cube(size=[88,107,3], center = true); }
glb/cad_7776eda0ae7d.glb
Create a 3D model of a Wade Extruder Idler. Start with a central rectangular block that is 12mm wide, 24mm long, and 26mm deep. On the front face of the block, create a large vertical U-shaped cutout that removes a significant portion of the center, leaving a thick outer frame. Within this frame, center a cylindrical...
include<configuration.scad> include<jonaskuehling-default.scad> malcolm_hotend_mount=1; groovemount=2; peek_reprapsource_mount=4; arcol_mount=8; mendel_parts_v6_mount=16; grrf_peek_mount=32; wildseyed_mount=64; geared_extruder_nozzle=128; jhead_mount=256; reprapfaborg_mount=512; elevation=4; extra_gear_separation=2;...
glb/cad_c2cb171b9d04.glb
Create a Jack Screw with a total height of 100mm and an outer diameter of 31.9mm. The object is centered around a vertical axis and consists of three main sections: a bottom threaded section, a middle hexagonal nut, and a top threaded section. For the bottom section, create a male metric thread with a diameter of 31.9...
include <threads.scad> Thread_Pit = 4; Thread_Angle = 40; Bot_Threads_ON = 1; Bot_OD = 30.9; Thread_Ht = 39; Tot_Ht = 100; OD = 31.9; EMT_OD = 18.5; Eject_Hole_OD = 5.5; Base_Ht = 1; Nut_Trans_Ht = 4; Nut_Ht = 6; Nut_Ht2 = Nut_Ht / 2; Nut_Trans_OD = OD - 3; Nut_Z_Ht = Nut_Trans_Ht + Nut_Ht2; Hex_Hor_Hole_ON = 1; H...
glb/cad_6b7017df103a.glb
Create a Customizable Jack Screw consisting of two mirrored threaded components. First, create a bottom component by starting with a cylinder 38.5mm in diameter and 15mm in height. Subtract a mirrored left-hand metric thread from the center with an outer diameter of 31.9mm, a pitch of 4mm, and a length of 20mm, using...
include <threads.scad> Clearance = 0.4; Thread_Pit = 4; Thread_Angle = 40; Bot_Threads_ON = 1; Bot_OD = 30.9; Thread_Ht = 15; Tot_Ht = 40; OD = 31.9; EMT_OD = 18.5; Eject_Hole_OD = 5.5; Base_Ht = 1; Nut_Trans_Ht = 3; Nut_Ht = 3.5; Nut_Ht2 = Nut_Ht / 2; Nut_Trans_OD = OD - 3; Nut_Z_Ht = Nut_Trans_Ht + Nut_Ht2; Hex...
glb/cad_b9985ddfeecc.glb
Create a Lock-CornerC adjustment nut. Start with a main cylindrical body with a diameter of 40.5mm and a height of 27mm. Subtract a central vertical hole with a diameter of 4.05mm that runs through the entire height of the cylinder. On the side of the cylinder, create a horizontal hole with a diameter of 4.05mm and a...
include <threads.scad> Clearance = 0.4; OD = 31.9; Mirror_LockC = 0; Base_Ht = 1; Pit = 4; Thread_Ht = 34.5 + 6; Ht = 27.0; Base_Ht = 7; Bot_Hole_OD = 4.05; Side_Hole_Ht = 17; Side_Hole_OD = 4.05; Side_Head_OD = 8; Side_Nut_OD = 9.5; module TopChamf() { translate([0,0,0]) rotate([0,0,50.09]) rotate_extr...
glb/cad_86817b77cabd.glb
Create a Customizable Jack Screw for height adjustment. Start with a square base 53mm wide and 53mm long with a height of 5.5mm. At the center of this base, create a vertical cylindrical housing with an outer diameter of 40.5mm and a total height of 40mm. This cylinder must be hollowed out with an internal diameter of ...
include <threads.scad> Clearance = 0.4; OD = 31.9; Base_Ht = 1; Pit = 4; Thread_Ht = 40.5; Bot_Threads_ON = 1; Bot_OD = 30.9 + .4; Len = 53; Wid = Len; Cyl_ID = 28.5; Cyl_OD = 40.5; Cyl_Ht = 40; Weld_OD = 4; W_Thk = 5; Small_Hole = 4.0; Nut_OD = 9.5; Ht = 5.5; Chamfer_EMT = 1; EMT_Base = 1; Len_Half = Len / 2; Ve...
glb/cad_ba6e8f013f7d.glb
Create a Customizable Jack Screw for height adjustment. Start with a square base 53mm wide and 53mm long with a height of 5.5mm. At the center of this base, create a vertical cylinder with an outer diameter of 40.5mm and a height of 40mm. This cylinder should be hollowed out with an internal diameter of 28.5mm to accom...
include <threads.scad> Clearance = 0.4; OD = 31.9; Base_Ht = 1; Pit = 4; Thread_Ht = 40.5; Len = 53; Wid = Len; Cyl_ID = 28.5; Cyl_OD = 40.5; Cyl_Ht = 40; Weld_OD = 4; W_Thk = 5; Small_Hole = 4.0; Nut_OD = 9.5; Ht = 5.5; Chamfer_EMT = 1; EMT_Base = 1; Len_Half = Len / 2; Vert_Hole_Offset = 17.5; M5_OD = 6.0; M5He...
glb/cad_0753d6ca6453.glb
Create a Customizable Jack Screw assembly consisting of three main threaded components: a central Jack Screw shaft, a top piece, and a bottom piece. First, create the central Jack Screw shaft as a cylinder with a total height of 100mm and an outer diameter of 31.9mm. Add external threads to this cylinder with a pitch ...
include <threads.scad> Clearance = 0.4; OD = 31.9; Mirror_LockC = 0; Pit = 4; Thread_Ht = 29-6; Ht = 27.0; Base_Ht = 8; Bot_Hole_OD = 5.2; Side_Hole_Ht = 17; Side_Hole_OD = 5.2; Side_Head_OD = 8; module Side_Holes() { translate([19.4,0,Side_Hole_Ht]) rotate([90,0,0]) cylinder(d=Side_Hole_OD,h=50,center...
glb/cad_d5487d7333de.glb
Create a Customizable Jack Screw assembly consisting of three main threaded components: a bottom part, a top part, and a central jack screw shaft. Create a central jack screw shaft with a total height of 100mm and an outer diameter of 31.9mm. The shaft should be hollowed out through the center to accommodate a 1/2" EM...
include <threads.scad> Clearance = 0.4; OD = 31.9; Mirror_LockC = 0; Pit = 4; Thread_Ht = 29-6; Ht = 27.0; Base_Ht = 8; Bot_Hole_OD = 5.2; Side_Hole_Ht = 17; Side_Hole_OD = 5.2; Side_Head_OD = 8; module Side_Holes() { translate([19.4,0,Side_Hole_Ht]) rotate([90,0,0]) cylinder(d=Side_Hole_OD,h=50,center...
glb/cad_516a46831328.glb
Create a spacer ring for a Shimano FH-IM70 axle and Garmin sensor. The object is a half-cylinder shell with a total height of 25mm. The outer boundary is a cylinder with a radius of 20.3mm. Carve a central void through the length of the part to accommodate the hub. This void consists of three stacked sections: a bott...
$fn=200; tape_tolerance = 0.5; spoke_tolerance = 7; max_diameter = 39 + tape_tolerance; mid_diameter = 39 + tape_tolerance; min_diameter = 30 + tape_tolerance; max_radius = max_diameter/2; mid_radius = mid_diameter/2; min_radius = min_diameter/2; height_1 = 7; height_2 = 11; height_3 = 7; total_height = height_1 +...
glb/cad_3fb90a2b67e3.glb
Create an experimental collimator for a fan by generating a complex 3D lattice based on a repeating hexagonal pattern. Start by defining a basic unit consisting of three overlapping circles, each with a radius of 1mm, positioned such that one is at the origin and the others are offset to create a triangular cluster. Ar...
$fn=50; Center(); width = 1; vert = 10; a1 = vert*0.8667; a2 = (vert /2); linear_extrude(height = 60, center = true, convexity = 10, scale=1.8, twist=90.0) { intersection() { circle (r=40); for (y=[-3:3]) for (x=[-5:5]) {{ color ([(0.1*x),0,(0.1*y)]) translate ([(a1*2)*x,-(a2*3)*y*2,0]) shape(); color ([0,(0.1*y),...
glb/cad_3f5bb8ebdf59.glb
Create a hexagonal honeycomb collimator with a total height of 60mm. The structure is composed of a repeating grid of vertical hexagonal cells. Each cell is formed by walls with a thickness of 1mm. The geometry is based on a repeating unit where the distance between the centers of adjacent cells is approximately 17.32m...
$fn=50; Center(); width = 1; vert = 10; a1 = vert*0.8667; a2 = (vert /2); linear_extrude(height = 60, center = true, convexity = 10) { intersection() { rectangle ([4,4]); for (y=[-3:3]) for (x=[-5:5]) {{ color ([(0.1*x),0,(0.1*y)]) translate ([(a1*2)*x,-(a2*3)*y*2,0]) shape(); color ([0,(0.1*y),0]) translate ([a...
glb/cad_df7ce3a2ac61.glb
Create a customizable spool holder mount. Start with a rectangular base plate measuring 70mm wide, 15mm long, and 3mm thick. The base plate should have rounded corners with a radius of 4mm and two small circular holes with a 2mm radius drilled through the thickness, positioned near the outer edges of the width. From t...
direction = 1; position = 0; base_height = 3; base_width = 70; base_length = 15; spool_radius = 100; connection_width = 4; hook_radius = 14; hook_width = 8; connection_height = spool_radius + 10; if(position == 0){ stand(); }else if(position == 1){ rotate([180,0,0]) mirror([0,0,1]) stand(); } ...
glb/cad_58501c9a14be.glb
Create a desk cable holder by starting with a vertical cylinder that has a diameter of 11.4mm and a height of 17mm, using a 20-facet resolution. Carve a vertical slot through the center of this cylinder that is 4mm wide and extends the full height of the object. Inside the cylinder, remove a smaller concentric core wit...
Openning_Width = 4; Wall_Thickness = 3.2; Cable_Diameter = 8.2; Side_Thickness = 2.8; Height = 17; Side_Width = 8; Extra_Width = 3; Cylinder_Quality = 20; difference(){ cylinder(d=Cable_Diameter+Wall_Thickness,h=Height,$fn=Cylinder_Quality); translate([-Openning_Width/2,0,-.5]) cube([Openning_Width,Cable_Diameter+Wall...
glb/cad_002665910ea2.glb
Create a Quadcopter X525 V3 landing legs spacer by constructing a hexagonal prism with a height of 13mm and a diameter of 8mm. Centered vertically through the middle of this prism, remove a smaller hexagonal hole with a diameter of 3.3mm to create a hollow tube. Ensure both the outer body and the inner void are rendere...
height = 13; diameter = 8; hole = 3.3; faces = 6; module polyhole(h, d) { n = max(round(2 * d),3); rotate([0,0,180]) cylinder(h = h, r = (d / 2) / cos (180 / n), $fn = n); } difference(){ cylinder(h = height, r = (diameter/2), $fn=faces); polyhole(d = hole, h = height); }
glb/cad_6f89aa52c238.glb
Create a Rounded Box that is an open-top container with a total length of 83mm, width of 120mm, and height of 48mm. The walls and floor must have a uniform thickness of 3mm. All exterior corners and edges must be rounded with a radius of 15mm. To construct the shell, create a solid rectangular block with the overall d...
xsize=83; ysize=120; zsize=48; thick=3 ; roundc=15; fn_edge_out=100; fn_edge_in=40; fn_corner_out=100; fn_corner_in=40; translate ([ 0,0,thick/2]) cube([xsize-(2*roundc),ysize-(2*roundc),thick],center=true); translate ([ 0,(ysize/2)-(thick/2),roundc+(zsize-roundc)/2]) cube([xsize-(2*roundc),thick,zsize-roundc],ce...
glb/cad_f5a28f5fcf21.glb
Create a bicycle lamp bracket fastener with a total width of 22.8mm, a depth of 43.4mm, and a height of 7.5mm. The main body is a hollowed rectangular shell with a wall thickness of 2.4mm. The base is a flat plate 2.4mm thick, with vertical walls rising 5.1mm from the edges. The top opening is a centered slot 13.1mm ...
d = 2.4; t = 41 + d; w = 18 + 2*d; wi = 13.1; h = 5.1 + d; aw = 8.6; at = 4.1; ad = t - d - 34.6 - at; cr = 2; support_fraction = 0.2; module round_corner(r, h) { translate([-r, -r, 0]) difference() { cube([r, r, h]); cylinder(h=h, r=r, $fn=50); } } module side() { w2 = (w-wi)/2; s = support_frac...
glb/cad_7b92c1861995.glb
Create a Toyota Headrest Mount and Phone Module consisting of a central mounting plate and supporting vertical blocks. Start with a rectangular base plate measuring 170mm in width, 20mm in length, and 7mm in height. Within this plate, create four vertical holes. Position two large holes with a radius of 5mm at the fa...
$fn = 100; include </home/puzzleduck/Dropbox/thingverse/openSCAD/MCAD/MCAD/metric_fastners.scad>; insideWidth = 130; outsideWidth = 150; width = (insideWidth + outsideWidth)/2; shaftRadus = 5; shaftLength = 50; planeHeight = 7; planeLength = shaftRadus*4; planeExtention = 20; planeWidth = width + planeExtention; to...
glb/cad_1e31584c842b.glb
Create a Toyota Headrest Mount consisting of a flat rectangular base plate with two vertical cylindrical shafts. The base plate should be 150mm wide, 20mm deep, and 5mm thick. Position two cylindrical shafts with a radius of 5mm and a height of 30mm, one at each far end of the plate. Within the base plate, create fou...
$fn = 100; insideWidth = 140; connectorWidth = 130; outsideWidth = 160; width = (insideWidth + outsideWidth)/2; shaftRadus = 5; shaftLength = 30; mountOffset = 55; planeHeight = 5; planeLength = shaftRadus*4; planeExtention = 20; planeWidth = width + planeExtention; totalHeight = shaftLength + planeHeight; largeMo...
glb/cad_791f454e792b.glb
Create a Toyota Headrest Mount consisting of a central rectangular plate with two vertical cylindrical shafts. Start with a rectangular base plate measuring 160mm in width, 20mm in depth, and 5mm in height. At each far end of the plate, attach a vertical cylinder with a radius of 5mm and a height of 50mm. Within the ...
$fn = 100; insideWidth = 130; outsideWidth = 150; width = (insideWidth + outsideWidth)/2; shaftRadus = 5; shaftLength = 50; mountOffset = 50; planeHeight = 5; planeLength = shaftRadus*4; planeExtention = 20; planeWidth = width + planeExtention; totalHeight = shaftLength + planeHeight; largeMountRadius = 5; smallMo...
glb/cad_14b67707de0f.glb
Create a headrest mount consisting of a central rectangular plate and two vertical cylindrical shafts. The base plate should be 130mm wide, 20mm deep, and 5mm thick. Position two vertical cylinders with a radius of 5mm and a height of 40mm, one at each far end of the plate. Within the base plate, create four circular...
$fn = 100; insideWidth = 100; outsideWidth = 120; width = (insideWidth + outsideWidth)/2; shaftRadus = 5; shaftLength = 40; mountOffset = 35; planeHeight = 5; planeLength = shaftRadus*4; planeExtention = 20; planeWidth = width + planeExtention; totalHeight = shaftLength + planeHeight; largeMountRadius = 5; smallMo...
glb/cad_7d1dd08976ad.glb
Create an RC airplane parametric outrunner motor mount consisting of a cylindrical mounting plate and a supporting stick tube. First, create a circular mounting plate with a radius of 26mm and a thickness of 3mm. In the center of this plate, add a cylindrical hole with a radius of 6mm to accommodate the motor shaft. ...
tube_length=90; motor_plate_radius=26; motor_plate_shaft_radius=6; add_bracing=1; add_plate_cutouts=0; tube_width= 10; tube_hole=tube_width/2-.75; difference() { union() { translate([-1, 0, motor_plate_radius]) rotate(a=90, v=[0, 1, 0]) cylinder(h=3, r=motor_plate_radius, center=true, $fn=150); mi...
glb/cad_b6c5a0c742ef.glb
Create an RC airplane outrunner motor mount consisting of a cylindrical mounting plate and a hollow support tube. First, create a circular mounting plate with a radius of 26mm and a thickness of 3mm. In the center of this plate, place a cylindrical hole with a radius of 6mm to accommodate the motor shaft. Attached p...
tube_length=90; motor_plate_radius=26; motor_plate_shaft_radius=6; add_bracing=1; add_plate_cutouts=0; tube_width= 10; tube_hole=tube_width/2-.75; translate([0, 0, 3]) rotate([0, -90, 0]) difference() { union() { translate([-1, 0, motor_plate_radius]) rotate(a=90, v=[0, 1, 0]) cylinder(h=3, r=motor_pla...
glb/cad_80a805ef6276.glb
Create a collection of geometric shapes arranged linearly. First, create a sphere with a radius of 10mm. Next, create a cone with a base radius of 3mm and a height of 10mm, tapering to a point. Then, create a star-shaped extrusion with a height of 10mm, where the base is a 4-pointed star with an inner radius of 0...
use <triangulation.scad>; function _subtotals(list,soFar=[]) = len(soFar) >= 1+len(list) ? soFar : _subtotals(list, let(n1=len(soFar)) concat(soFar, n1>0 ? soFar[n1-1]+list[n1-1] : 0)); function _flatten(list) = [for (a=list) for(b=a) b]; function _reverseTriangle(t) = [t[2], ...
glb/cad_b378d11095de.glb
Create a spinning top with a thumbwheel. Start by creating a solid of revolution by rotating a polygon around the Z-axis. The polygon points for this profile are [14.4, 0], [18.4, 4], [18.4, 12], [12.94, 16], [2.6, 33.91], [2.3, 34.34], [1.93, 34.71], [1.5, 35.01], [1.03, 35.23], [0.52, 35.37], [0, 35.37], and [0, 0]. ...
Ht = 6; module PlineExtrude() { rotate_extrude($fn=84) polygon(points = [[14.4,0],[18.4,4],[18.4,12],[12.94,16],[2.6,33.91], [2.3,34.34],[1.93,34.71],[1.5,35.01],[1.03,35.23],[0.52,35.37], [0,35.37],[0,0]]); } difference() { PlineExtrude(); difference() { cylinder(d=65,h=100,$fn=4); ...
glb/cad_9dcc7b2cc11c.glb
Create a Spinning Top with Thumbwheel by constructing a complex rotational body. Start with a main profile revolved around the Z-axis, defined by a polygon with vertices at [4.33, 30.91], [3.83, 31.63], [3.21, 32.24], [2.5, 32.74], [1.71, 33.11], [0.87, 33.34], [0, 33.34], [0, 0], [14.4, 0], [18.4, 4], [18.4, 12], and ...
Ht = 6; module PlineExtrude() { rotate_extrude($fn=84) polygon(points = [[4.33,30.91],[3.83,31.63],[3.21,32.24],[2.5,32.74],[1.71,33.11], [0.87,33.34],[0,33.34],[0,0],[14.4,0],[18.4,4], [18.4,12],[12.94,16]]); } difference() { PlineExtrude(); difference() { cylinder(d=65,h=100,$fn=4); ...
glb/cad_2e3add1a7a41.glb
Create a parameterized flanged lens hood consisting of three stacked concentric sections. Start with a bottom cylindrical tube with an outer diameter of 67mm, a height of 10mm, and a wall thickness of 1.5mm. Directly above this, add a connector section with a height of 30mm that tapers linearly from the bottom outer di...
thickness=1.5; d1_inside=64; h1=10; d2_inside=75; h2=10; c_ht=30; f_pcent=12; f_th=.7; f_ht=1; $fn=90; d1=d1_inside+2*thickness; d2=d2_inside+2*thickness; mask_degree=ceil(120-(f_pcent/100*360)); assemble(); module tube(d,h,t) { rad=d/2; difference() { cylinder(h=h,r=rad); cylinder(h=h,r=rad-t); } } module ...
glb/cad_552384171733.glb
Create a parametric herringbone gear set consisting of two gears designed to mesh with a center-to-center axle distance of 36mm. Construct the first gear (the smaller stepper gear) with 13 teeth. It should feature a herringbone profile with a total height of 20mm (10mm for the gear body and 10mm for the shaft). Create...
include <MCAD/involute_gears.scad> include <MCAD/teardrop.scad> printing = 1; distance_between_axles = 36.000; gear_h = 10; gear_shaft_h = 10; gear1_teeth = 13; gear1_shaft_d = 5.4; gear1_shaft_r = gear1_shaft_d/2; gear1_setscrew_offset = gear_h / 2; gear1_setscrew_d = 3 / cos(180 / 8) + 0.4; gear1_setscre...
glb/cad_8c170b9e8950.glb
Create two fidget spinner caps. Each cap consists of a main circular plate and a central supporting stem. The circular plate has a diameter of 21mm and a thickness of 2.5mm, with a rounded top edge. The central stem is a cylinder with a diameter of 8.3mm and a height of 4mm. For the first cap, create a male version wh...
d = 8.3; D = 22; b = 7; h = 2.5; rounded = 1; text1 = "Super"; text2 = "Spinner"; hStub = (b + 1) / 2; $fn = 0 + 60; cap( text = text1 , rounded = rounded , male = true); translate([D + 2, 0, 0]) cap( text = text2 , male=false , rounded = rounded); module cap(text, male = true, rounded =...
glb/cad_2e86184c2757.glb
Create a Parametric Camera Filter Adapter. Start by creating a main cylinder with a height of 9.5mm and a radius of 29.4mm (diameter of 58.8mm). From this main cylinder, remove a central cylinder with a height of 19mm and a radius of 25.46mm (diameter of 50.92mm) centered vertically. Then, remove a second central cyl...
$fn=120; filter_OD = 54.50; clip_OD = 50.92; ring = 3; filter_h = 6.5; lens_h = 3; height = filter_h+lens_h; fudge = 0.80; count= 45; if (filter_OD > clip_OD) { translate([0,0,height/2]) difference() { cylinder(h = height,r = ring + (filter_OD + fudge)/2, center = true); translate([0,0,-lens_h/3]) cy...
glb/cad_dcaf0cf05786.glb
Create a Parametric Camera Filter Adapter consisting of two separate thin rings. The first ring is a hollow cylinder with an outer diameter of 40mm, an inner diameter of 36mm, and a height of 3mm. The second ring is a smaller hollow cylinder with an outer diameter of 20mm, an inner diameter of 16mm, and a height of...
$fn=120; OD1 = 40; ID1 = 36; OD2 = 20; ID2 = 16; hgt = 3; ring(OD1,ID1,hgt); ring(OD2,ID2,hgt); module ring(od=25, id=22.5, ht=6) { difference() { translate([0,0,ht/2]) cylinder(r=od/2,h=ht, center=true); #cylinder(r=id/2,h=ht*3, center=true); } }
glb/cad_1ff0cffba4f3.glb
Create a Menger sponge fractal of order 3 based on a primary cube with a side length of 45mm. To construct the sponge, start with the solid cube and iteratively remove square prisms from the center of each face and their corresponding sub-sections across three levels of recursion. Position the sponge so it is rotated ...
side = 45; order = 3; choice = "both"; tol = 0.1; long = side+5; tside = side/3; nside = side/9; sside = side/27; lift = side*sqrt(3)/2; module ordertwo() { translate([0,tside,tside]) cube(size=[long,nside,nside], center=true); translate([0,0,tside]) cube(size=[long,nside,nside], center=true); translate([0,-tsi...
glb/cad_32389ecf5304.glb
Create a seven-sided bowl based on a hypocycloid geometry. The main body is formed by a hypocycloid path with a thickness of 1mm, scaled by a factor of 2. The bowl's walls are hollowed out by removing a central cube of 100mm per side and a cylinder with a radius of 9mm and a height of 6mm, centered at a height of 15mm....
use <epi_hypo_files.scad> mark = 1; if (mark==1) scale(2) union() { translate([0,0,-5]) rim(1,6,1,3.4,1); difference() { union() { epi_hypo_all(1,6,1,.5,.2); translate([0,0,15]) cylinder(r=9,h=6,center=true,$fn=48); } scale(0.95) epi_hypo_all(1,6,1,.5,.2); translate([0,0,-55]) cube([100,100,100],center=true); } }...
glb/cad_f52a1387b141.glb
Create a caravan ceiling window crank consisting of a flat base and a vertical cylindrical axle. Start with a base plate 8mm thick, shaped as a hull between a circle with a 36mm diameter and a smaller circle with a 19mm diameter, resulting in a total length of 88mm. At the center of the smaller 19mm end, create a verti...
do1=19; do2=36; th=8; l=88; dh=3.5; dnh=6.6; thnh=2.9; da=17; wa=9.8*sqrt(2); dpta=28; ha=57; asd=5; ashd=10.5; ashth=5.7; e=0.001; module outer(){ hull(){ translate([l-(do1+do2)/2,0,0]) cylinder($fn=20,r=do1/2,h=th); cylinder($fn=50,r=do2/2,h=th); } cylinder($fn=30,r=da/2,h=ha); } diffe...
glb/cad_7982bb2e35a9.glb
Create a BedTent rail sleeve connector. Start with a main rectangular body measuring 66.5mm in width, 27.6mm in thickness, and 45.1mm in height. Hollow out the center of this body with a smaller rectangular cutout measuring 66.5mm by 27.6mm by 45.1mm, leaving a wall thickness of 3.5mm. On the top surface, center a sem...
rail_diameter=25; rail_sleeve_lenght=30; wall_thickness=3.5; rail_sleeve_arm_lengh=rail_diameter+2; rail_sleeve_arm_width=rail_diameter; rail_sleeve_arm_thickness=9; rail_sleeve_arm_offset=rail_sleeve_arm_thickness/2; screw_diameter=5; screw_nut_diameter=9; screw_nut_height=5; locking_screw_diameter=4; locking_scre...
glb/cad_60a0cf132b55.glb
Create a BedTent flap connector. Start with a main rectangular body measuring 60.6mm in width, 38.6mm in height, and 20.6mm in thickness. The walls of this body should be 3.5mm thick. On the top surface, center a cylindrical mounting arm with a diameter of 25mm and a thickness of 9mm. Drill a 5mm diameter hole through...
rail_diameter=25; rail_sleeve_lenght=30; wall_thickness=3.5; rail_sleeve_arm_lengh=rail_diameter+2; rail_sleeve_arm_width=rail_diameter; rail_sleeve_arm_thickness=9; rail_sleeve_arm_offset=rail_sleeve_arm_thickness/2; screw_diameter=5; screw_nut_diameter=9; screw_nut_height=5; locking_screw_diameter=4; locking_scre...
glb/cad_57e81e91e222.glb
Create a BedTent rail connector. The main body is a rectangular block with overall dimensions of 66.5mm in width, 44.6mm in height, and 24.6mm in thickness. The walls of this block are 3.5mm thick. Inside the main body, create a hollow rectangular cavity that is 60.6mm wide, 20.6mm thick, and 38.6mm high. On the top...
rail_diameter=25; rail_sleeve_lenght=30; wall_thickness=3.5; rail_sleeve_arm_lengh=rail_diameter+2; rail_sleeve_arm_width=rail_diameter; rail_sleeve_arm_thickness=9; rail_sleeve_arm_offset=rail_sleeve_arm_thickness/2; screw_diameter=5; screw_nut_diameter=9; screw_nut_height=5; locking_screw_diameter=4; locking_scre...
glb/cad_3ec94c963240.glb
Create a BedTent rail sleeve connector. Start with a main cylindrical body that has an outer diameter of 32mm (25mm rail diameter plus 3.5mm wall thickness on each side) and a height of 43.5mm. Bore a central hole through the entire length of this cylinder with a diameter of 25.6mm and a depth of 40mm. On top of this ...
rail_diameter=25; rail_sleeve_lenght=40; wall_thickness=3.5; rail_sleeve_arm_lengh=rail_diameter+15; rail_sleeve_arm_width=rail_diameter; rail_sleeve_arm_thickness=9; rail_sleeve_arm_offset=rail_sleeve_arm_thickness/2; screw_diameter=5; screw_nut_diameter=9; screw_nut_height=5; securing_screw_offset=10; securing_sc...
glb/cad_a2c4f7fc9e0f.glb
Create a rail sleeve for a bed tent support. Start with a main outer cylinder that has a diameter of 32mm (25mm rail diameter plus 3.5mm wall thickness on each side) and a total height of 49mm (40mm sleeve length plus two 4.5mm nut heights). Remove a central cylindrical hole with a diameter of 25.6mm and a height of 40...
rail_diameter=25; rail_sleeve_lenght=40; wall_thickness=3.5; rail_sleeve_arm_lengh=rail_diameter+10; rail_sleeve_arm_width=rail_diameter; rail_sleeve_arm_thickness=9; rail_sleeve_arm_offset=rail_sleeve_arm_thickness/2; screw_diameter=5; screw_nut_diameter=8.2; screw_nut_height=4.5; securing_screw_offset=10; securin...
glb/cad_7aec3d09369f.glb
Create a BedTent ring by constructing a partial hollow cylinder with an inner diameter of 25mm and a wall thickness of 2mm. The cylinder should have a total height of 10mm. Instead of a full circle, limit the arc of the ring to 270 degrees. At both open ends of this arc, integrate a small solid cylindrical peg with a d...
InnerDiameter=25; RingThickness=2; RingHeight=10; RingEndDiameter=4; spacing=0; RingAngle=270; $fn=100; module wedge(angle, extent=100, height=100, center=true) { module wedge_wall() { translate([0,0,(center==true ? -height/2 : 0)]) cube([extent,0.1,height]); } for(r=[0:45:angle-45-1]...
glb/cad_ee1465d49271.glb
Create a parametric truss component with a length of 50mm, a width of 50mm, and a frame thickness of 2mm. The main body is a rectangular frame with rounded corners, where each corner is a quarter-circle with a radius of 15mm. Within the frame, add a diagonal cross-brace that connects the opposite corners. The brace s...
3dprint=1; $fn=36; e = 0.1; th=2; w=3; s=50; v=50; br=1.65; sr=15; gap_scaling=1.5; module quartercircle(r1,thickness) { difference(){ cylinder(r=r1,h=thickness); translate([0,-r1,-e]) cube([r1*2,r1*2,thickness+e+e]); translate([-r1,0,-e]) cube([r1*2,r1*2,thickness+e+e]); } } module truss(brace_s...
glb/cad_46d0c11e214a.glb
Create a protective case for a logic analyser board. Start by creating a rounded rectangular base with overall dimensions of 61mm in length, 45mm in width, and 7mm in height, using a corner radius of 2mm. Hollow out the center of this base to create a cavity that is 57mm long and 41mm wide, leaving a wall thickness of ...
use <MCAD/boxes.scad> blength=57; bwidth=41; wall=2; height=7; union() { difference() { translate([0,0,height/2])roundedBox([blength+wall*2,bwidth+wall*2,height],2,true); translate([0,0,3+height])roundedBox([blength,bwidth,10],1,true); translate([1.5,0,8])cube([32,35,10],center=true); translate([51.6-blength/2,-30...
glb/cad_8aa95e58ebfd.glb
Create a Compact J-Head 16mm Bowden Adapter by starting with a rectangular base block measuring 44mm in width, 22mm in depth, and 18mm in height. Orient the block so the 44mm side is the width and the 22mm side is the depth. Remove several cylindrical holes from this block. First, create a large central vertical hole ...
module extruder_base(){ translate([-22,0,0]) cube([44,22,18]); } module extruder_holes(){ rotate([90,0,0]){ translate([-7,6,-35]) cylinder(r=1.5, h=34, $fn=20); translate([7,6,-35]) cylinder(r=1.5, h=34, $fn=20); translate([-17.5,4,-35]) cylinder(r=1.5, h=34, $fn=20); translate([17.5,4,-35]) cylinder(r=...
glb/cad_57be0a4aade9.glb
Create a Mailbox End Plug consisting of two concentric cylinders with a 40-facet resolution. First, create a wide base cylinder with an outer diameter of 8mm and a height of 2.5mm. Centered on top of this base, create a second, taller cylinder with a diameter of 7mm and a total height of 10.5mm, such that it extends 8m...
outerDiameter=8.0; innerDiameter=7.0; length=8.0; capHeight=2.5; $fn=40; cylinder(d=outerDiameter, h=capHeight); cylinder(d=innerDiameter, h=capHeight+length);
glb/cad_136d65d8f939.glb
Create a Compact J-Head Bowden Adapter. Start with a rectangular base block measuring 42mm in width, 10mm in depth, and 24mm in height. At the center of this block, create a vertical cylindrical hole with a radius of 6.5mm and a height of 26mm. On either side of this central hole, at x-coordinates -7mm and 7mm and y-...
include <../configuration.scad> module extruder_base(){ translate([-10,44,0]){ cube([42,10,24]); } } module extruder_holes(){ translate([11,25,0]){ translate([0,-2,-1]) cylinder(r=6.5, h=26); translate([-7,24,-3]) cylinder(r=1.5, h=24, $fn=20); translate([7,24,-3]) cylinder(r=1.5, h=24, $fn=20); tran...
glb/cad_5b24112bfd99.glb
Create a Wingy screwdriver bit holder. Start with a central vertical cylinder 12.8mm in diameter and 20mm high. Attach a rectangular block across the center of the cylinder, measuring 46.4mm wide, 15mm high, and 6mm thick. Carve a hexagonal hole through the center of the entire assembly to hold a standard bit. This h...
$fn=50; W=6.4+0.4; wing_key(W); module hex_shaft(W, L) { sW = W * sqrt(2); difference() { cylinder(h=L, d=sW, center = true); for (a=[0 : 360/6 : 360]) { rotate([0,0,a]) translate([sW/2+W/2,0,0]) cube([sW,sW,L+0.2],center = true); } } } module wing_key(W) { differ...
glb/cad_c505c9da5661.glb
Create a Slinky dog toy consisting of three separate components: a front section, a spring, and a back section. For the front section, create a stylized dog head using a sphere of radius 15mm, slightly scaled on the Y and Z axes. Add a snout using a rounded cylinder with a radius tapering from 7.5mm to 4.5mm and a hei...
part = "FRONT"; head_radius = 15; spring_levels = 15; line_thickness = 2; latch_r1 = 2.5; latch_r2 = 3; latch_h = 6; latch_spacing = 0.4; function __is_vector(value) = !(value >= "") && len(value) != undef; function __frags(radius) = $fn > 0 ? ($fn >= 3 ? $fn : 3) : max(min(360 / $fa, radius...
glb/cad_9dd373d330ea.glb
Create a remote holder with a main body measuring 39.4mm wide, 16.75mm deep, and 120mm high. The walls should be 2mm thick. The holder is a hollow shell open at the top and bottom, designed to house a remote. To form the interior cavity, remove a central block measuring 35.4mm wide and 4.2mm deep from the front face,...
bodyW = 35.4+0.1; bodyD = 12.75; bodyH = 118; wall = 2; remote_d = 10; body(); translate([(bodyW+wall+wall),bodyD+wall+wall,0]) { rotate([0,0,270]) { scale([bodyW-wall,bodyW-wall,bodyH+wall]) { qtr_round(); } } } translate([0,bodyD+wall+wall,0]) { rotate([0,0,0]) { ...
glb/cad_239376325b4b.glb
Create a Box Console designed for a PCB. The model consists of a base plate, two side walls, and a cover. Start with a rectangular base plate measuring 110mm by 100mm with a thickness of 3mm. Centered on this plate, create four mounting holes for a PCB with a drill diameter of 2.4mm, positioned at the corners of a 76....
coverSheetTh=3; frontSheetTh=6; baseSheetTh=3; baseX=110; baseY=100; boxHg=35; frontR1=8; frontR2=1; frontAlpha=70; pcbType="demo"; pcbX=87.7; pcbY=77; pcbZ=1.5; pcbXOff= 0; pcbYOff= 1; pcbZOff= 10; pcbXDrill=76.2; pcbYDrill=66.04; pcbXOffDrill=6.4; pcbYOffDrill=5.08; $fn=50; pi = 3.14159265; fudge=0....
glb/cad_06bce3e38548.glb
Create a Pac-Man figure by starting with a cylinder that has a radius of 20mm and a height of 5mm, centered on the origin. From this cylinder, remove a wedge-shaped section to create an open mouth. This wedge is defined by a triangular prism with a height of 50mm, centered on the origin, with its vertices extending fro...
difference () { cylinder(r=20, center=true, h=5); linear_extrude(height=50, center=true, convexity = 10, twist = 0) { polygon(points=[[0,0],[100,60],[100,-60]], paths=[[0,1,2]]); } }
glb/cad_75eff877d886.glb
Create a 3D model of a game ghost. Start by forming the main body as a union of two shapes: a cylinder with a radius of 20mm and a height of 5mm, and a rectangular block measuring 40mm wide, 20mm deep, and 5mm high, centered on the cylinder but shifted 10mm along the y-axis. From this combined volume, remove several ...
pupils=false; difference () { union() { cylinder(r=20, center=true, h=5); translate([0, 10, 0]) { cube([40, 20, 5], center=true); } } translate([13, 20, 0]) { rotate([0, 0, 45]) { cube([10, 10, 10], center=true); } } translate([-13, 20, 0]) { rotate([0, 0, 45]) { ...
glb/cad_f4de7fafab82.glb
Create a Parametric Epicyclic Gearbox with an outer diameter of 40mm and a geared section height of 18mm. Construct a stationary annulus with 42 teeth and a pitch diameter of 35mm. Inside this, place a sun gear with a bore diameter of 5.4mm. Position three planet gears around the sun gear; each planet gear should hav...
$fn = 50; use <mcad/involute_gears.scad> Planetary( Annulus = true, Planets = true, Sun = true, CarrierT = true, CarrierB = true, TopPlate = false, BottomPlate = true ); module Planetary( OD = 40, ScrewDistance =...
glb/cad_5a56652dc8d3.glb
Create a test print model by combining several geometric primitives. Start with a base composed of two joined rectangular blocks: one 10x10x5mm cube and one 20x10x2.5mm block. Add a cylinder with a 5mm radius and 5mm height positioned at (5, 5, 5). Incorporate two angled slabs, each 10x3x2mm; position the first at (10,...
$fn = 100; difference() { union() { cube(size=[10, 10, 5], center=false); cube(size=[20, 10, 2.5], center=false); translate([5, 5, 5])cylinder(r=5, h=5, center=false); translate([10, 0, 1.5])rotate([0, -45, 0])cube(size=[10, 3, 2], center=false); translate([10, 3, 2.4])...
glb/cad_db51c74fe7d1.glb
Create a storage box with a snap-on cover. The main body is a rectangular container with an inner width of 60mm, inner length of 85mm, and a height of 28mm. The walls are 2mm thick with rounded corners of 3mm radius. The exterior corners are rounded to 5mm. Inside the box, include a separating wall 2mm thick, positione...
wi=60; li=85; h=28; th=2; r=3; opening_help=false; separator=13; e=0.01; ri=(r>th)?r-th:e; l=li-2*r; w=wi-2*r; module box(){ difference(){ translate([0,0,-th])hull(){ for (i=[[-w/2,-l/2],[-w/2,l/2],[w/2,-l/2],[w/2,l/2]]){ translate(i)cylinder(r=r+th,h=h+th,$fn=8*r); } } hull(){ for (i=[[-w/2,-l/2...
glb/cad_3c6469b11104.glb
Create a parametric wall mount consisting of two identical holders. For each holder, start with a rectangular base block measuring 15mm in width, 15mm in depth, and 50mm in height. At each end of the block, create a screw housing. This housing begins with a cylindrical base 4mm high with a radius of 3.25mm, which tra...
module screwHolder( border, height, screwHead, screwThread, screwHeadHeight, additionalHolderRadius=2 ) { difference() { union() { translate([0, 0, screwHeadHeight]) cylinder(r1=screwHead + border / 2 + additionalHolderRadius, r2=0, h=height, $fn=36); ...
glb/cad_074903578644.glb
Create a Joystick Enclosure consisting of a hollowed-out clamshell body with a rounded, capsule-like profile. The main body is formed by a hull of two cylinders with a diameter of 62mm (inside diameter 50mm plus wall thickness) and a length of 100mm, extruded to a specific wall height. The interior is hollowed out to c...
include <joystick_constants.scad>; module board_latch_krnl () { difference() { rotate([90, -90, 90]) { linear_extrude(3) circle(latch_width,$fn=3, center=true); } translate([1, 2, 1]) cube([5,5,5], center=true); } } module x_spacer (height) { ...
glb/cad_95660563b6ff.glb
Create a Joystick Enclosure consisting of a two-part clamshell design. The main body is formed by a hull of two cylinders with a diameter of 40mm, spaced 50mm apart along the x-axis, creating an oblong capsule shape. The walls are 2mm thick. For the bottom section, extrude the capsule shape to a height of 4mm. Cut a r...
include <joystick_constants.scad>; module drawtop() { translate ([0, 0, -1]) difference() { minkowski() { hull() { translate ([-inside_length/2, 0, 0]) cylinder(1, d=inside_dia+2*wall_thick-1, center...
glb/cad_e2436ff4d5d4.glb
Create a Bic type pen model consisting of several discrete geometric components. Construct a main pen body by stacking six sections, each 15mm high. The first, third, and fifth sections are hollow cylinders with an outer radius of 5mm and an inner bore of 2.1mm. The second and fourth sections are 15mm high decorative s...
$fn=20; module arte(alto,radio,giro){ r_hilo = 1.5; hilos = 5; for (i=[0:360/hilos:360]){ rotate([0,0,i]) linear_extrude(height=alto,convexity= 10,twist= giro*150,slices=40,center=false) translate ([radio-r_hilo,0,0]) circle(r_hilo); } } module base(altura){ difference(){ cylinder(r=5,h=altura); translate ([0,0,...
glb/cad_04efe50f8395.glb
Create a customizable separable cyclone dust collector consisting of four main geometric components. First, create the cyclone cone. This is a hollow conical shell with a height of 220mm, a wall thickness of 2.4mm, a bottom internal radius of 30mm, and a top internal radius of 53.4mm. At the top of the cone, add a 5mm...
vacuum_hole_diameter = 35; intake_hole_diameter = 45; intake_hole_angle = 6; body_height = 80; cone_height = 220; connector_height = 5; hopper_diameter = 60; wall_thickness = 2.4; part_to_render = "ALL"; mount_plate_separation = 0.5; $fa = 1; $fs = 1; delta = 0.1; mainColor = "DodgerBlue"; mountColor = "Sand...
glb/cad_f780c5cbc769.glb
Create a Split Heart model. Start by constructing a solid heart shape with a total width and length of 25mm and a thickness of 5mm. The heart is formed by a central 25mm square with two semi-circles of 12.5mm radius attached to two adjacent sides. Drill two small circular holes with a diameter of 2mm, one centered in e...
Size=25; Height= 5; N = 12; Cut = 0.5; Hole=2; module heart(size,height,hole) { linear_extrude(height = height) { square(size); translate([size/2,size,0]) difference() { circle(size/2); translate([0,size*0.3,0]) circle(hole); } translate([size,size/2,0]) ...
glb/cad_4d0a8a5fef7a.glb
Create a Split Heart accessory. Start by constructing a solid heart shape with a total width and length of 25mm and a thickness of 5mm. The heart is formed by a central 25mm square with two semi-circles of 12.5mm radius attached to two adjacent sides. Remove two small circular holes with a diameter of 2mm, positioned s...
Size=25; Height= 5; Cut = 0.4; Hole=2; module heart(size,height,hole) { linear_extrude(height = height) { square(size); translate([size/2,size,0]) difference() { circle(size/2,$fn=50); translate([0,size*0.3,0]) circle(hole,$fn=50); } translate([size,size/2,0])...
glb/cad_8cb5329a3c5b.glb
Create an adjustable camera mounting solution consisting of a main clip and three identical connector bases. First, construct the main clip by creating a rectangular block 14mm wide, 15mm deep, and 10mm high. Carve a central slot through the depth of this block that is 10mm wide and 1.04mm high, leaving walls of 2.5mm ...
use <connector.scad>; clipwidth = 2.5; slot = 1.04; sh = 10; shm = 4; module base() { cube([10,2.5,3]); translate([8,0]) cube([2,2.5,5]); } rotate([0,-90,0]) union() { translate([0, 15]) rotate([90]) difference() { cube([sh+shm, clipwidth*2+slot, 15]); translate([0,clipwidth]) cube([sh, slot, 15]); }...
glb/cad_79252e216cca.glb
Create a rectangular mounting link for a camera. The main body is a solid rectangular prism with a length of 20mm, a width of 10mm, and a height of 2.2mm.
use <connector.scad>; length = 20; rotate([90,0,180]) connector(2.2); cube([length, 10, 2.2]); translate([length, 10, 0]) rotate([90]) connector(2.2);
glb/cad_e15090871909.glb
Create a Propane Torch Bottle Stand consisting of a circular base and a cylindrical collar connected by radial spokes. First, create a flat, circular base with a diameter of 60mm and a thickness of 3mm. Centered on this base, create a hollow cylindrical collar with an inner diameter of 50mm, an outer diameter of 54mm,...
functional_examples(); module functional_examples() { color("yellow") poly3d( translate([10,0,0], poly=scale([1,2,4], poly=sphere(1,$fn=30) ) ) ); r = 2; shape = sphere(r=r,$fn=20); moved_shape = translate([-10,0,0], poly=shape); color("blue") poly3d(moved_shape); echo(str...
glb/cad_f8c4e4716fa7.glb
Create a Printrmount board mount with a total thickness of 8mm. The main body is a rectangular plate 53mm wide and 8mm thick, centered between two circular mounting hubs. Position two circular hubs at opposite ends, each with a radius of 11mm. Within each hub, create a central circular hole with a radius of 4mm. Exte...
module printrmount(thickness) { hole = 8; distance = 60; mountdist = 43; mounthole = 3; mountradius = 4; radius = 150 + 150; width = mountdist + 10; margin = 7; t = thickness; module flangehole(margin) { translate([0, 3, -1]) union() { cylinder(r = hole/2, h = t + 2); translate([-hole/2, 0, 0]) ...
glb/cad_60a6160f16df.glb
Create an SMT Strip Feeder consisting of two primary components: a top plate and a base. First, construct the top plate. Create a rectangular block with a total width of 51mm (calculated as 3mm plus 15 trays at 3.2mm each), a length of 185mm, and a height of 2.7mm. Within this block, create 15 identical slots. Each sl...
tape_length = 60; tape_width = 8; tape_height = 1.7; tape_thickness = 0.5; number_of_tapes= 3; enable_base_cut = 0; force_centre_spar = 1; slackness = 0.2; showFit=0; module fillet(r, h) { eta = 0.1; translate([r / 2, r / 2, 0]) { difference() { cube([r + eta, r + eta, h], ...
glb/cad_ece340610c79.glb
Create a Monitor Union designed to join two wall-mounted monitor supports. The object consists of two identical mirrored halves. For each half, start with a solid rectangular block measuring 60mm in length, 20.8mm in width, and 15mm in height. Rotate this block 10 degrees along its longitudinal axis. From this block, r...
module Side() { difference() { difference() { rotate(10) translate([-50,0,0]) cube([60,20.8,15]); rotate(10) translate([-55,1.2,.9]) cube([70,18.4,15]); } color("green", 0.5) ...
glb/cad_7273d24745ec.glb
Create a Parametric Epicyclic Gearbox with a total geared section height of 18mm and an outer diameter of 40mm. Construct an annulus with 42 teeth and a double-helical twist of 30 degrees, featuring a hollow center and four 3mm diameter screw holes arranged in a square pattern with 31mm spacing. Inside this, place a ...
$fn = 50; use <mcad/involute_gears.scad> Planetary( Annulus = true, Planets = true, Sun = true, CarrierT = true, CarrierB = true, TopPlate = false, BottomPlate = true, BL = 0.5 ); module Planetary( OD = 40, ...
glb/cad_769de37b075a.glb
Create a circular jam lid label with a base diameter of 30mm and a height of 1mm. On the top surface, add a raised ring with an outer diameter of 34mm and a height of 1.4mm, but remove a central cylinder of 30mm diameter to create a hollow border. Within this layout, incorporate three stylized raspberry shapes. Each ...
$fn=20; color=1; pit_locations=[ [0,0,0], [-1,1,-0.25], [-0.75,1,0.75], [-1.45,2,0], [-1.25,2,1.3], [0,2,1.7], [-1.7,3,-0.55], [-1.45,3,1.1], [-0.75,3,2], ]; module one_berry() { for (l=[0:1:len(pit_locations)-1]) { make_pit(pit_locations[l]); } } module make_pit(loc) { trans...
glb/cad_edd81f575010.glb
Create a stackable CD stand consisting of a central vertical column and a supporting arm. Start by creating a base cylinder with a radius of 7mm and a height of 25mm. On top of this cylinder, add a smaller cylinder with a radius of 5mm and a height of 8mm, topped with a cone that has a height of 10mm and a radius of 5m...
partToMake = 0; tolerance = 1.05; resolution = 50; baseHeight = 25; baseWidth = 7; topHeight = 8; topWidth = 5; topConeHeight = 10; feetNum = 5; feetWidth = 3; feetLength = 22; footHeight = 5; footWidth = 11; shaftLength = 70; shaftWidth = 5; cdPoleRadius = 7.2; cdPoleHeight = 15; cdPoleHatHeight = 4; cdBaseWidth ...
glb/cad_f1131ff68a6d.glb
Create a stone generator model by generating a convex hull around 21 randomly positioned and rotated small cubes. Each cube should have a random size between 1mm and 2mm and be centered at a distance of 19mm from the origin. The positions of these cubes must be distributed randomly across a spherical volume with a radi...
part = "one"; number_of_corners = 20; z_scale = 1; radius = 20; corner_size = 2; scale([1,1,z_scale]) randomRock(radius,corner_size,number_of_corners); module randomRock(radius,corner_size,number_of_corners){ hull(){ for(i=[0:number_of_corners]){ y = rands(0,360,1)[0]; z = ra...
glb/cad_6a6f9f4e81b3.glb
Create a rock formation consisting of one large central stone surrounded by smaller stones, all sliced in half along the XY plane to create a flat base. The central stone is a convex hull generated from 25 randomly positioned points within a sphere of 20mm radius. Scale this central mass vertically by a factor of 1. ...
part = "one"; number_of_corners = 25; stone_scale = 1; medium_stones = 15; small_stones = 30; radius = 20; corner_size = 2; intersection(){ union(){ scale([1,1,stone_scale]) randomRock(radius,corner_size,number_of_corners); if(medium_stones>0){ for(i=[1:medium_stones]){ ...
glb/cad_f5c5d8a8b868.glb
Create a bass port consisting of a hollow cylindrical tube with a flared rim. The main tube should have an outer diameter of 37.5mm, a wall thickness of 1.5mm, and a total length of 100mm. At one end of the tube, add a circular flange that extends outward to a total diameter of 52.5mm (the tube diameter plus 15mm of wi...
thickness=1.5; length=100; diameter=37.5; flange_width=15; extra=0; hole_height=10; hole_diameter=3; top_cutoff=42.0; radius = diameter/2; top_cutoff_real = top_cutoff/100; if (extra == 1){ difference(){ base(); rotate([90, 0, 0]) translate([0, hole_height, 0]) c...
glb/cad_f6c2cb1caeb8.glb
Create an egg holder consisting of a flat rectangular plate with a thickness of 3mm, a width of 80mm, and a length of 212.5mm. The plate features ten circular holes, each 40mm in diameter, arranged in a single row along the center. These holes are spaced such that the distance between the centers of adjacent holes is a...
eggHole=40; thickness=3; eggplateW=80; footH=80; eggCount=10; edgeDistance=10; edgeMargin=2.5; zig=eggplateW-edgeMargin*2-eggHole; plateAngle=32; eggDistance=sqrt(pow((eggHole+edgeDistance),2)-pow(zig,2)); d=2*edgeMargin+(eggCount-1)*eggDistance+eggHole; echo(d); intersection(){ union(){ difference(){ cube([eggplateW...
glb/cad_e2f7ab87e741.glb
Create a fidget toy consisting of four hinged boxes that form a larger cube. Each individual box is a cube with a side length of 40mm (scaled from a 100mm base). For each box, remove a central cylindrical core with a diameter of 4mm and a height that extends through the box. At the center of each box, integrate a cyl...
$fn = 100; w1 = 100; s1 = 2; c1 = 10; e1 = 2; c2 = w1/3.1; b1 = 5; uniscale = 0.4; module ClipBox() { difference(){ translate([s1/2, s1/2, 0]) cube(w1); translate([0, 0, -10]) cylinder(w1+20, c1+e1, c1+e1); } difference(){ union(){ translate([0, 0, w1/2-c2/2]) cylinder(...
glb/cad_f5a6e53c6351.glb
Create a Rotary Pipette and Marker Pen Stand. The object is a vertically oriented, rotationally symmetric holder consisting of three stacked tiers centered around a central vertical cylinder with a diameter of 8mm. The base is a wide, shallow conical frustum that transitions into a cylindrical wall. Above this, create...
uh=25; lh=25; bh=30; td=8; ww=2; xw=0.4; pdl=20; pds=16; $fn=20; module join(xi,yi){ hull(){ translate([-ww/2+xi,+yi]) circle(d=ww, $fn=16); translate([ww/2+xi,-ww+yi]) circle(d=ww, $fn=16); translate([ww/2+xi,yi]) circle(d=ww, $fn=16); } } rotate_extrude(){ minkowski(){ ...
glb/cad_a02393344a5a.glb
Create a Taz 6 Heatsink Fan Duct with LED mounts. Start with a base mounting plate that is 6mm thick, featuring four 5mm diameter holes at the corners of a 32mm square. From this base, extend a hollow duct with a wall thickness of 1mm. The duct's cross-section is a rounded rectangle approximately 20.5mm wide and 18mm h...
EnableLEDMount=true; $fn=50; XOffset=0; YOffset=4; ElbowAngle=45; RotateAngle=45; DuctHeight=18; DuctWidth=20.5; WallThickness=1; ElbowRadius=15; FunnelLength=15; MountThickness=6; DuctLength=16; MountToNozzle=16.5; HeightOfNozzle=27+15/2; LeftLEDOffset=DuctWidth/2+6; RightLEDOffset=DuctWidth/2+2; LEDYOffset=7;...
glb/cad_c1c58ef03329.glb
Create a game organizer consisting of three connected rectangular compartments with a wall thickness of 2.4mm. The first compartment is a square box with internal dimensions of 101.5mm width, 101.5mm length, and 76.5mm height. The second compartment is adjacent to the first, with internal dimensions of 31.6mm width...
Edge=5; tol=1.5; ChamberWidth=100+tol; ChamberHeight=75+tol; CurseLength=65+tol; CurseWidth=50+tol; CurseHeight=50+tol; TreasureWidth=30.1+tol; TreasureHeight=40+tol; Thickness=2.4; Adjoiner=Thickness*4; difference(){ union() { cube([ChamberWidth+2*Thickness,ChamberWidth+2*Thickness,ChamberHeight+Thickness...
glb/cad_c1febf5b84cc.glb
Create a rectangular storage lid for game components. The main body is formed by two joined rectangular sections. The first section is a block measuring 38.2mm wide, 91.8mm long, and 15mm high. Attached to this is a second, larger block measuring 53.4mm wide, 111.8mm long, and 21.6mm high, positioned such that it exten...
Edge=5; tol=1.5; tol2=0.4; Thickness=2.4; ThicknessS=1.6; DiceWidth=16.5; MWidth=11; MCutoff=9; GLength=24; PWidth=7.6; CDiameter=20; TLength=84.8+tol; TotalLength=9*ThicknessS+7*MWidth+CDiameter+tol; TWidth=4*Thickness+ThicknessS+2*DiceWidth+GLength+PWidth+tol; difference(){ union(){ t...
glb/cad_35416915a2f4.glb
Create a game organizer box with a total height of 51.2mm and a width of 54.4mm. The main body is a solid block from which several rectangular compartments are carved out. First, create two long, narrow vertical slots for dice. Each slot is 16.5mm wide and runs the full length of the box, with the first slot starting ...
Thickness=1.6; ThicknessW=2.4; Edge=2; DiceWidth=16.5; MLength=20; MWidth=11; MHeight=24; MCutoff=9; GLength=24; PLength=40.6; PWidth=7.6; PThickness=1.2; CDiameter=20; QDiameter=24; QThickness=2.4; GemLength=35; GemWidth=18; TLength=84.8; TotalLength=9*Thickness+7*MWidth+CDiameter; TWidth=4*ThicknessW+Thickne...
glb/cad_a7c011a3df2a.glb
Create a snap-fit lid for a game organizer. Start with a flat rectangular base plate measuring 106mm by 106mm with a thickness of 1.5mm. Centered on this plate, remove a rectangular section measuring 60mm by 60mm and 1.5mm deep to create a hollow center. Build a perimeter wall around the base that is 1.5mm thick and 3...
ChamberWidth=100; ChamberHeight=75; CurseLength=65; CurseWidth=50; CurseHeight=50; TreasureWidth=30.1; TreasureHeight=40; lid(ChamberWidth,ChamberWidth,1.5,2.4,5); module lid(LidWidth,LidLength, tol, Thickness, Edge) { LidWidth=LidWidth+tol; LidLength=LidLength+tol; difference(){ union(){ ...
glb/cad_879238330483.glb
Create a game organizer for board game tiles consisting of three connected rectangular compartments with a wall thickness of 2.4mm. The first compartment is a large box for chamber tiles with interior dimensions of 101.5mm width, 101.5mm length, and 39.5mm height. The second compartment, for treasure tiles, has inter...
Edge=5; tol=1.5; ChamberWidth=100+tol; ChamberHeight=38+tol; CurseLength=65+tol; CurseWidth=50+tol; CurseHeight=36+tol; TreasureWidth=30.1+tol; TreasureHeight=13+tol; Thickness=2.4; Adjoiner=Thickness*5; difference(){ union() { cube([ChamberWidth+2*Thickness,ChamberWidth+2*Thickness,ChamberHeight+Thickne...
glb/cad_2e3a80b657bf.glb
Create a snap-fit lid for a treasure tile organizer. Start with a base rectangular plate measuring 106mm by 46mm with a thickness of 1.5mm. Add a perimeter wall around the base that is 3mm high. This wall should be 1.5mm thick. On the two shorter ends of the lid, integrate two semi-cylindrical snap-fit rails. Each ra...
ChamberWidth=100; ChamberHeight=75; CurseLength=65; CurseWidth=50; CurseHeight=50; TreasureWidth=30.1; TreasureHeight=40; lid(TreasureWidth,TreasureWidth,1.5,2.4,5); module lid(LidWidth,LidLength, tol, Thickness, Edge) { LidWidth=LidWidth+tol; LidLength=LidLength+tol; difference(){ union(){ ...
glb/cad_724482b7246e.glb
Create a snap-fit lid for a game organizer. Start with a base rectangular plate measuring 109.6mm by 69.6mm with a thickness of 2.4mm. Add a perimeter wall around the edge of this plate with a height of 4.8mm. The wall consists of two long sides of 109.6mm and two short sides of 69.6mm. On the two short sides, integr...
ChamberWidth=100; ChamberHeight=75; CurseLength=65; CurseWidth=50; CurseHeight=50; TreasureWidth=30.1; TreasureHeight=40; lid(CurseWidth,CurseLength,1.5,2.4,5); module lid(LidWidth,LidLength, tol, Thickness, Edge) { LidWidth=LidWidth+tol; LidLength=LidLength+tol; difference(){ union(){ ...
glb/cad_98a8e940145d.glb
Create a series of mechanical joint components based on a male connector with a width of 3mm, thickness of 3mm, and height of 10mm. First, create a male connector by combining a central rectangular block of 3x3x10mm with a cylinder of radius 1.5mm along its length and two small spheres of radius 0.75mm centered at th...
facets = 32; tolerance = 0.3; rotation_degrees = 20; joint_examples_with_descriptions_in_comments(); module joint_examples_with_descriptions_in_comments() { % cube([100,100,0.1], center=true); translate([0,0,0]) joint_male(male_joint_width=3, male_joint_thickness=3, male_joint_height=10, side=true); translat...
glb/cad_b0a624249848.glb
Create a Triple Captive Cable Holder consisting of three identical cable-holding units aligned in a row. For each unit, construct a main outer holder body with a total height of 23mm (calculated from a 17mm table thickness plus two 3mm tabs). The outer holder is a cylinder with a diameter of 16mm, featuring a central v...
show_seperate = "no"; cable_diameter = 5; table_thickness = 17.0; tolerance = 0.5; tab_length = 25; tab_thickness = 3; grip_height = 1; grip_width = 4; thumbwheel_height = 6; retainer_factor = 6; plane_cut_factor = 1; $fn = 50; neck_thickness = 2; holder_thickness = 6; barrel_lift_factor = 1 / retainer_fa...
glb/cad_1e28d6198435.glb
Create a Drill Press Rod Guide by starting with a main cylinder that has a radius of 15mm, a height of 25mm, and is centered on the origin. From this main body, remove two smaller concentric cylinders to create the guide holes. First, remove a cylinder with a radius of 13mm and a height of 13mm, positioned so its cente...
bit_radius=4; rod_radius=13; difference(){ cylinder(h=25,$fn=60,r=rod_radius+2,center=true); union(){ translate([0,0,6.5])cylinder(h=13, $fn=60, r=rod_radius, center=true); translate([0,0,-6.5])cylinder(h=14, $fn=60, r=bit_radius, center=true); } }
glb/cad_993e3cc24576.glb
Create a mockup of a sealed ball bearing with an inner diameter of 8mm, an outer diameter of 22mm, and a total thickness of 7mm. Construct the main body by revolving a profile that creates a cylindrical outer ring and a cylindrical inner ring, both featuring a small 0.2mm chamfer on the edges. The space between the i...
sealedBearing(8, 22, 7, "608-2RS OpenSCAD", 2, txtRepeat=1, $fs=0.1, $fa=0.1); module pileOfBearings() { for(i=[0:100]) translate(rands(-100,100,3)) sealedBearing(8, 22, 7, "608-2RS", 2, $fs=0.1, $fa=0.1); } module sealedBearing(d, D, th, txt, txtSize, txtRepeat=2, spacing=0.85, font, steelColor = ...
glb/cad_70642e11a69b.glb
Create a lead nut for a 5mm rod by constructing a composite cylindrical body. Start with a wide base cylinder 22mm in diameter and 4mm high, topped with a narrower cylinder 10mm in diameter and 10mm high, for a total height of 14mm. Through the center of this combined volume, create an internal metric thread with a dia...
include <threads.scad>; $fn=80; difference(){ union(){ cylinder(d=22,h=4); cylinder(d=10,h=14); } translate([8,0,0])cylinder(d=3.5,h=4); translate([-8,0,0])cylinder(d=3.5,h=4); translate([0,8,0])cylinder(d=3.5,h=4); translate([0,-8,0])cylinder(d=3.5,h=4); metric_thread(diameter=5.5, pitch=0.8, length=14,internal=true,l...
glb/cad_45c9231c4429.glb
Create a double hourglass worm gear consisting of a central shaft and a helical threaded body. The central shaft is a cylinder with a diameter of 15mm. The threaded body is centered on this shaft and features 7 teeth. The geometry of the worm is defined by a toroidal helix. The root radius of the teeth is 50mm and the...
resolution = 160; worm_minimum_diameter = 15; worm_teeth_count = 7; worm_tooth_height = 2.5; worm_tooth_angle = 45; worm_gear_diameter = 100; worm_gear_teeth = 50; inner_radius = worm_gear_diameter / 2; outer_radius = worm_gear_diameter / 2 + worm_tooth_height; worm_tooth_arc_length = 2 * PI / worm_gear_teeth; shi...
glb/cad_aed2f7eebb0f.glb
Create a customizable cable guide by constructing a U-shaped bracket with a base and two upright walls. The base is a rectangular slab measuring 14mm wide, 40mm long, and 3mm thick. Attached to the sides of this base are two vertical walls, each 3mm thick and 45mm high, creating a channel that is 14mm wide. One of thes...
height = 60; wall = 3; width = 14; length = 40; clamb_height = 45; top_length = 38; num_holes = 2; radius = 2; rotate([0,90,0]) difference(){ union() { translate([0,length/2-wall/2,-height/2+clamb_height/2+wall/2]) cube([width, wall, clamb_height], center=true); translate([0,0,-heigh...
glb/cad_b7781a93c675.glb
Create a board game card clip marker. Start by creating a solid rectangular block with a length of 27mm, a width of 9mm, and a height of 5.5mm. From this block, remove a smaller rectangular section to create a slot and a cutout. First, remove a central rectangular volume measuring 5mm in length, 5mm in width, and 15mm ...
$fn = 150 ; Thikness = 2 ; Epsilon = 0.15 ; Lenght = 25 + Thikness; Width = 5 + 2*Thikness; Height = 1.5 + 2*Thikness; module Betrayal_Clip() { difference() { cube([Lenght,Width,Height]); translate([Thikness,Thikness,-5]) cube([5,5,15]); translate([-Epsilon,-Width/2,Thikness]) cube([21+Thikness+Epsilo...
glb/cad_0bb33991eb01.glb
Create a card holder for a board game with a total height of 15mm. The main body is a rectangular block measuring 112mm in length and 121mm in width. To form the compartments, remove two rectangular volumes from the top of the block, starting 2mm deep from the top surface. The first cutout is 108mm long and 59mm wide, ...
$fn = 150 ; Thikness = 2 ; Epsilon = 0.15 ; Card_Lenght = 108; Card_Width = 57; Holder_Height = 15; Holder_Lenght = Card_Lenght + 2*Thikness + 2; Holder_Width = 2*Card_Width + 3*Thikness + 4; module Card_Holder() { difference() { cube([Holder_Lenght,Holder_Width,Holder_Height]); translate([Thikness,Thikness,T...
glb/cad_e24eb22347e7.glb
Create a square stand for a board game miniature. Start by creating a solid cube that is 25.4mm wide, 25.4mm deep, and 3mm tall. From the center of this cube, remove a smaller rectangular volume to create a slot. This cutout should be 21.4mm wide and 2mm deep, leaving a wall thickness of 2mm around the perimeter and a ...
$fn = 150 ; Thikness = 2 ; Epsilon = 0.15 ; Stand_Square = 25.4 ; Stand_Diameter = 25.4 ; Stand_Radius = Stand_Diameter / 2; module Betrayal_Round_Stand() { difference() { cylinder(r=Stand_Radius,h=1.5*Thikness); cube([Stand_Diameter-2*Thikness+Epsilon,Thikness+Epsilon,5*Thikness],center=true); } } module B...
glb/cad_35b11b6791db.glb