Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a threaded clamp designed to secure an M8 threaded rod. The main body is a cylinder with an outer diameter of 13mm and a height of 10mm, featuring a central hole with a diameter of 8.1mm running through its center. At the base of the cylinder, integrate an internal M8 threaded section that extends 12mm in total...
include <ISOThreadUM2.scad>; thread = 8; width = 2.5; h = 10; tabl = 10; smoothing_position_x = 15.5; $fa=.5; $fs = .5; id = thread + 0.1; od = id + 2*width; chamfer_cone_radius_top = od/8; chamfer_cone_radius_bottom = od/2; chamfer_cone_height = chamfer_cone_radius_bottom; chamfer_depth = 2; difference(){ x = t...
glb/cad_51c4458293b9.glb
Create an X-idler motor mount for a Prusa i3. Start with a rectangular block measuring 19mm in width, 12mm in depth, and 8mm in height. Carve a semi-cylindrical groove across the top surface, centered along the width; this groove should have a radius of 4.15mm and a total depth of 9mm, extending slightly beyond the blo...
m3d=3+0.4; m3r=m3d/2; m4d=4+0.4; m4r=m4d/2; m3nd = 6.2+0.4; m3nr = m3nd/2; m5nd = 9+0.4; m5nr = m5nd/2; sbd = 8+0.3; sbr = sbd/2; iy=30.5-1.8-6.5; he=9; difference() { cube([19, 12, 8]); translate([19/2, -1, 9]) rotate([-90, 0, 0]) cylinder(15, sbr, sbr, $fn=30); translate([19/2+4+2.5, 6, -1]) cylinder(10, m3r, ...
glb/cad_cf3c9ba354bc.glb
Create a Kossel Clear LCD spacer by constructing a hollow cylinder with a total height of 6mm. The outer diameter of the cylinder should be 7.4mm. Centered through the middle of the shape, create a vertical hole with a diameter of 3.6mm that passes completely through the top and bottom faces.
$fa = 1; $fs = 0.1; smidge = 0.1; m3Radius = 3.2/2; m3LooseRadius = m3Radius+0.2; module lcdSpacer(height) { difference() { cylinder(r=m3LooseRadius+2, h=height); translate([0, 0, -smidge/2]) cylinder(r=m3LooseRadius, h=height+smidge); } } lcdSpacer(6.0);
glb/cad_64bced4714e6.glb
Create a bell siphon standpipe top funnel with a height of 0.5mm. The main body is a hollow cylinder with an outer diameter of 2mm and a wall thickness of 0.125mm. At the base of this cylinder, integrate five equally spaced, petal-like protrusions. Each petal is formed by the hull of two cylinders: one vertical cylin...
petals = 5; height = .5; wallthickness = 1/8; spiralofsset = -wallthickness; maxwidth = 2; standpipe = 17/16; depth = 1; connectionthickness = 1/8; smoothness = .01; rotate([180,0,0]) { union() { intersection() { difference() { cylinder(h = height, r=.5*maxwidth, $fs = smoothness); cylinder...
glb/cad_012c6d09e29c.glb
Create two identical spool holder brackets. For each bracket, start with a main body formed by the intersection of a cone (with a base radius of 22mm and a top radius of approximately 18.5mm, and a height of 44mm) and a rectangular block measuring 15mm wide, 88mm long, and 42mm high. On the bottom face of this body, ...
$fa = 1; $fs = 1; smidge = 0.1; m3Radius = 3.2/2; m3LooseRadius = m3Radius+2*smidge; m3HeadHeight = 3.0; m3LooseHeadRadius = (5.4+4*smidge)/2; pvcLooseRadius = 22/2; pvcTightRadius = pvcLooseRadius-0.25; extrusionSize = 15.0; baseHeight = 3.0; minWallWidth =...
glb/cad_a1c09ae23232.glb
Create four stiffener posts for a delta printer frame. Each post consists of a cylindrical pillar mounted on a rectangular base. The base is a rectangular slab measuring 15mm by 30mm with a thickness of 3mm. Two of the posts are shorter, with the cylindrical pillar having a diameter of 11.5mm and a height of 14.5mm (...
$fa = 1; $fs = 0.1; smidge = 0.1; m3Radius = 3.2/2; m3LooseRadius = m3Radius+0.2; baseHeight = 3.0; baseY = 30.0; boltBaseHeight = 2.0; extrusionSize = 15.0; xOffset = 10; yOffset = 18; module post(x, y, size) { translate([x, y, 0]) difference() { union() { cylinde...
glb/cad_a4a30c9dbf34.glb
Create a Map Hex Holder consisting of a hexagonal container and a matching hexagonal cover. For the holder, create a hexagonal prism with a point-to-point diameter of 114mm and a total height of 36mm (internal height of 33mm plus a 3mm base). The walls should be 3mm thick. Hollow out the center to create a hexagonal ...
part="both"; accent="None"; display_text="TI"; internalHeight=33; diameter=114; wall=3; minimalistic="no"; use_reinforced_structure="no"; use_perforation="yes"; perforation_percentage=60; create_base="yes"; use_cover="yes"; use_text="yes"; font = ""; text_size=14; sides=6; spacer=1; radius=diameter/2; j...
glb/cad_e797a3ea881e.glb
Create an oven holder consisting of a flat base plate and three vertical hooks. The base plate is 3mm thick and spans from x=-80mm to x=80mm. It features a central rectangular section with rounded corners and two circular holes of 5mm diameter centered at x=35mm and x=-35mm, both positioned 20mm from the center line. T...
$fn=100; hacken(); platte(); module platte() { difference() { translate([0,0,-1.5]) linear_extrude(height=3) { translate([-70,0,0])halter_grund(); translate([0,0,0])halter_grund(); translate([70,0,0])halter_grund(); difference() { union() { trans...
glb/cad_f7fa3fd1dd5c.glb
Create a rectangular base plate for a 16x2 LCD and rotary encoder case with dimensions of 133mm in length, 63mm in width, and 3mm in height. At each of the four corners, create a circular hole with a diameter of 2.5mm, positioned 6mm from each adjacent edge. To accommodate the rotary encoder, create a slot centered alo...
difference(){ cube([133, 63, 3]); translate([30, 31.5, 0]){ cylinder(3, d=5.5, $fn = 20); } for (a =[1:100]){ translate([80+a*20/100, 31.5, 0]){ cylinder(3, d=5.5, $fn = 10); } } translate([6,6,0]){ cylinder(3, d=2.5, $fn=20); } translate([133...
glb/cad_c72a633a66aa.glb
Create a case for a 16x2 LCD and rotary encoder. Start with a rectangular base plate measuring 130mm x 50mm x 3mm. In this plate, create a central rectangular cutout measuring 70mm x 25mm x 3mm, positioned 15mm from the left edge. Add a circular hole with a radius of 3.5mm centered at coordinates (110, 25, 0). To cre...
module frontPlate(){ union(){ difference(){ cube([130, 50, 3]); translate([15, 12.5, 0]){ cube([70,25,3]); } translate([110, 25, 0]){ cylinder(3, r=3.5, $fn=30); } } difference(){ translat...
glb/cad_21c6c941e5b4.glb
Create a customizer test object by starting with a central cube that is 20mm on each side, centered on the origin. Add a cylinder to the center of the cube, oriented along the Y-axis, with a radius of 10mm and a total height of 22mm, so that it extends 1mm beyond each opposite face of the cube. Finally, bore a vertical...
cube_size = 20; hole_diameter = 2.5; hole_radius = hole_diameter/2; hole_depth = 1; show_wheels = "yes"; wheel_thickness = 1; function BEZ03(u) = pow((1-u), 3); bing = 3+4; baz = 3 / hole_depth; difference() { union() { translate([0, 0, cube_size/2]) cube([cube_size,cube_size,cube_size], center=true); ...
glb/cad_bca3204dab3f.glb
Create two identical CNC milling clamps. Each clamp is a flat plate with a thickness of 8mm. The overall footprint is a rectangle measuring approximately 25.4mm by 64.5mm, with one end tapered into a pointed, house-like shape. On the top surface of each plate, create a large, centered oblong slot. This slot consists o...
fudge = 0.1; module poly_path3198(h) { scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[34.645517,-115.157479],[64.566267,-115.157479],[64.566267,-115.157479],[85.037367,-74.770866],[85.039367,-74.770866],[85.039367,115.157479],[14.173227,115.157479]...
glb/cad_7c18f6b11158.glb
Create a Parametric Concentric Gear consisting of two stacked gear cylinders sharing a common central axis. The bottom gear has a height of 4mm, 40 teeth, a circular pitch of 2mm, and a tooth depth of 2mm. The top gear has a height of 10mm, 12 teeth, a circular pitch of 3mm, and a tooth depth of 2mm. Both gears featu...
ShaftDiameter = 5; PlasticSaverRingDepth = 0; ShaftCut = 1; Gear1Height = 4; Gear1TeethCount = 40; Gear1TeethSpacing = 2; Gear1TeethDepth = 2; Gear2Height = 10; Gear2TeethCount = 12; Gear2TeethSpacing = 3; Gear2TeethDepth = 2; difference(){ union(){ linear_extrude(height = Gear2Height) gear3(Gear2TeethCo...
glb/cad_3bd75cc2d783.glb
Create a Cell Brush consisting of a long handle and a looped brush head. Start by forming the handle as a flat, extruded strip 100mm long and 3mm thick. At one end of the handle, create a thickened head section 20mm long and 4mm thick. From this head, extend a series of thin, wire-like loops. Each loop is an oval ring ...
bt=3; ht=4; bl=100; hl=20; xw=0.7; module ring(){ translate([0,0,bt-xw*2]) linear_extrude(height=xw/2) translate([0,5]) difference(){ scale([0.4,1]) circle(d=10, $fn=40); scale([0.4 * (10-5*xw)/(10-2*xw),1]) circle(d=10-xw*2, $fn=40); } } linear_extrude(heig...
glb/cad_354e20a7267a.glb
Create a Cell Brush consisting of a long handle and a textured brush head. Start by creating a hexagonal prism handle with a diameter of 2.5mm and a total length of 100mm. At one end of the handle, starting 20mm from the tip, remove a small section of the core to create a hollow break with an inner diameter of 1mm and ...
swl=100; sbl=2; sbo=20; sbd=1; swd=2.5; xw=0.4; sps=1; rotate([30,0,0]) translate([-swl/2,0,0]) { difference(){ rotate([0,90,0]) cylinder(d=swd, h=swl, $fn=6); translate([sbo,0,0]) rotate([0,90,0]) rotate_extrude($fn=6){ translate([swd-(swd-sbd)/2,0]) square([swd, sbl], center=true); }...
glb/cad_b6ac721516fe.glb
Create a Cell Brush consisting of a long handle and a textured head. Start by creating a hexagonal prism handle with a diameter of 2.5mm and a total length of 100mm. At one end of this handle, remove a section of the core to create a hollow break that begins 20mm from the tip and extends for 2mm. To form the brush head...
swl=100; sbl=2; sbo=20; sbd=1; swd=2.5; sps=1; rotate([30,0,0]) translate([-swl/2,0,0]) { difference(){ rotate([0,90,0]) cylinder(d=swd, h=swl, $fn=6); translate([sbo,0,0]) rotate([0,90,0]) rotate_extrude($fn=6){ translate([swd-(swd-sbd)/2,0]) square([swd, sbl], center=true); } } } ...
glb/cad_dad2772bc02e.glb
Create a drink holder consisting of a large primary ring and three smaller attachment rings. Start by constructing the main ring with an outer radius of 36mm, an inner radius of 33mm, and a height of 5mm, centered on the origin. Then, create three smaller rings, each with an outer radius of 5.4mm, an inner radius of 2....
rr=33; module ring0(rr=33,z=5,fn=90){ difference(){ cylinder(h=z,r=rr+3,center=true,$fn=fn); cylinder(h=z+2,r=rr,center=true,$fn=fn); } } ring0(); for(i=[0:2]){ rotate([0,0,120*i])translate([rr+6.5,0,0])ring0(rr=2.4,z=5); }
glb/cad_3c2c9b805246.glb
Create a wall mount multimeter holder by constructing a hollow rectangular box with an outer dimension of 83mm width, 63mm depth, and 61.5mm height, using a uniform wall thickness of 1.5mm for the bottom and sides. Leave the top open. On the back wall, create two circular bolt holes with a 4mm diameter, positioned 15mm...
depth=60; width=80; height=60; wall_width=1.5; bolt_hole=4; bolt_offset=15; prong_hole_width=10; prong_hole_height=30; difference(){ translate([-wall_width,-wall_width,-wall_width]) cube([width+(wall_width*2),depth+(wall_width*2),height+(wall_width)]); cube([width,depth,height]); } difference(){ translate([0,depth,...
glb/cad_c34fd0b4896c.glb
Create an automotive fuse holder consisting of a rectangular base with ten evenly spaced slots. The main body is a solid block measuring 20.64mm in width, 50mm in length, and 7mm in height. Along the center length of the block, create ten identical rectangular cutouts spaced 5mm apart from center to center. Each cutout...
$fn=60; tol=0.4; w1=14.64; w0=4; w2=5.25; t=0.57; for (i=[-4:5]) translate([0,i*5,0]) s1(); module s1(){ mirror([0,0,1]) difference() { translate([0,0,10/2-1.5+tol/2]) cube([w1+6,t+6,7],center=true); socket(); } } module socket() { linear_extrude(height=7+tol) for(i=[-1,1]) translate([i*(w1/2-w2/2),...
glb/cad_032856823382.glb
Create a BSPP G 1 1/2'' to 38mm Hose Barb adapter. Start by creating a hollow cylindrical base with an internal diameter of 56.657mm and an outer diameter of 59.614mm, featuring a thread height of 22mm and a thread pitch of 2.309mm with a 55-degree angle. Above this threaded section, add a conical transition segment ...
dummy=0.01; module outerthread(height, outerdia, rising, fine, angle, direction) { innerdia=outerdia-rising/sin(angle/2); s=outerdia*tan(180/fine); polygonR=s/(2*sin(180/fine)); difference() { rotate([0,0,(360/fine)/2]) cylinder(r=(outerdia-(2*polygonR-outerdia))/2, h=height, $fn=fine); for(n...
glb/cad_f7cebf7d0607.glb
Create a snap-fit electronics project box consisting of a bottom enclosure and a matching top cover. For the bottom box, create a rounded rectangular shell with outer dimensions of 55.2mm x 45.2mm x 13.2mm and a corner radius of 4mm. The walls should be 1.2mm thick. Hollow out the interior to the same radius and wall...
part = "both"; nozzle_size = 0.4; number_of_walls = 3; tolerance = 0.2; x=52+2*number_of_walls*nozzle_size+2*3*nozzle_size; y=42+2*number_of_walls*nozzle_size+2*3*nozzle_size; z=12+2*number_of_walls*nozzle_size+2*3*nozzle_size; radius=4; $fn=100; wall_thickness=nozzle_size*number_of_walls; hook_thickness = 3*n...
glb/cad_dc51c77a03b4.glb
Create a Snapmaker CNC Fence consisting of a long main wall and a short perpendicular end piece. The main wall is a rectangular slab 132mm long, 16mm high, and 1mm thick. Position a vertical cylindrical hole with a 1.5mm radius and a depth of 16mm at the coordinates (15, 11, 0). Additionally, remove a small rectangular...
$heightabovesurface = 10; $height = $heightabovesurface + 6; $fn = 90; translate([10,0,0]) cube ([109,1, 10]); translate([20,5,0]) cube ([35,1, 10]); translate([75,5,0]) cube ([35,1, 10]); difference() { cube([132,$height,1]); union() { translate([15,$height-5,0]) cylinder_outer(50,1.5); ...
glb/cad_31e306a207b5.glb
Create a MendelMax foot with an integrated floorboard. Start by constructing a base block that is 4mm thick, 62mm long, and 24mm wide. Round the corners of this base with a 4mm radius. Carve a large circular cutout with a 20mm radius from one side of the base to create a curved inner profile. Add two screw holes to th...
BOARD_THICKNESS=8; VERTICAL_GAP=34; FOOT_HEIGHT=4; WOOD_SCREW_R=1; LAYER_HEIGHT=0.3; HEIGHT=FOOT_HEIGHT+BOARD_THICKNESS+VERTICAL_GAP-4; LENGTH=62; WIDTH=24; CURVE_R=4; CURVE_R2=20; THICKNESS=4; HOLE_R=3; HOLE_X=34; HOLE_Y=10; SUPPORT_WIDTH=20; module base_shape() { difference() { translate([CURVE_R, CURV...
glb/cad_fba6058efdf2.glb
Create a Parametric Minimus Case consisting of a rectangular tray and a matching lid. The main tray has exterior dimensions of 57mm in length, 25mm in width, and a total height of 10mm. The tray features a base thickness of 1mm and walls that are 2mm thick. Inside the tray, create a hollow interior space measuring 53mm...
minimuswidth = 21; minimuslength = 40; minimusheight = 1.4; numberofstands = 2; standoffwidth = 2; standoffheight = 2; standoffthickness = 1; trayoflength = 53; totalheight = 10; wallwidth = 2; lipwidth = 1; lipheight = 2.5; basethickness = 1; gridgap = 2; baseheight = basethickness + standoffheight + lipheight; inter...
glb/cad_df910445c18d.glb
Create a robotic mower knife holder. Start with a base conical shape that has a bottom diameter of 165mm, a top diameter of 50mm, and a height of 35mm. Centered on top of this base, add a cylinder with a diameter of 28mm and a height of 21mm, positioned 30mm from the bottom. Integrate two rectangular blocks, each meas...
$fn=80; difference() { union(){ translate([0,0,30])cylinder(d=28,h=21); translate([0,0,0])cylinder(d1=165,d2=50,h=35); translate([19,0,43])cube([4,9,24],center=true); translate([-19,0,43])cube([4,9,24],center=true); translate([15,0,53.5])cube([12,9,4],center=true); translate([-15,0,53.5])cu...
glb/cad_5f14308a2c36.glb
Create a robotic mower knife holder consisting of two mirrored components. For each component, start with a central vertical rectangular pillar measuring 4mm by 9mm and 36mm in height. At the top of this pillar, attach a horizontal rectangular block measuring 12mm by 9mm by 4mm, centered on the pillar. Below the top bl...
$fn=80; difference() { union(){ translate([19,0,37.5])cube([4,9,36],center=true); translate([-19,0,37.5])cube([4,9,36],center=true); translate([15,0,53.5])cube([12,9,4],center=true); translate([-15,0,53.5])cube([12,9,4],center=true); translate([19,0,19.5])cylinder(d1=4,d2=6,h=4); translate(...
glb/cad_0c161f56c52a.glb
Create a robotic mower knife holder. Start with a base consisting of a thin cylinder 165mm in diameter and 2mm high. On top of this base, add a truncated cone that extends from a diameter of 165mm at the bottom to 50mm at the top, with a height of 30mm. Centered on top of this cone, place a cylinder with a diameter of ...
$fn=80; difference() { union(){ translate([0,0,27])cylinder(d=28,h=21); translate([0,0,2])cylinder(d1=165,d2=50,h=30); translate([0,0,0])cylinder(d=165,h=2); translate([-75.5,0,0])cylinder(d1=14,d2=5,h=10); translate([75.5,0,0])cylinder(d1=14,d2=5,h=10); translate([0,-75.5,0])cylinder(d1=14...
glb/cad_ecd7363b53eb.glb
Create a robotic mower knife holder consisting of a primary circular base and a central conical protrusion. Start with a flat cylinder 165mm in diameter and 5mm thick. Centered on this base, add a truncated cone that rises 13mm, tapering from a bottom diameter of 10.9mm to a top diameter of 9mm. Remove material to cr...
$fn=80; difference() { union(){ translate([0,0,0])cylinder(d=165,h=5); cylinder(d1=10.9,d2=9,h=13); #translate([19,0,6.5])cube([5.5,8.5,13],center=true); #translate([-19,0,6.5])cube([5.5,8.5,13],center=true); } translate([-75.5,0,0])cylinder(d=10,h=10); translate([75.5,0,0])cylinder(d=...
glb/cad_3a8f664264f8.glb
Create a robotic mower knife holder. Start with a base consisting of a thin cylinder 165mm in diameter and 2mm high. On top of this base, add a conical section that transitions from the 165mm base diameter to a 50mm diameter at a height of 30mm. In the center of the top surface, place a cylinder with a 28mm diameter an...
$fn=80; difference() { union(){ translate([0,0,27])cylinder(d=28,h=21); translate([0,0,2])cylinder(d1=165,d2=50,h=30); translate([0,0,0])cylinder(d=165,h=2); translate([-75.5,0,0])cylinder(d1=14,d2=5,h=10); translate([75.5,0,0])cylinder(d1=14,d2=5,h=10); translate([0,-75.5,0])cylinder(d1=14...
glb/cad_fb89af2be6fc.glb
Create a robotic mower knife holder consisting of a primary circular base with a diameter of 165mm and a height of 5mm. Centered on this base, add a vertical cylinder with a diameter of 3.5mm and a height of 13mm. Surrounding this center point, create a conical section that transitions from a bottom diameter of 10.9mm ...
$fn=80; difference() { union(){ translate([0,0,0])cylinder(d=165,h=5); cylinder(d1=10.9,d2=9,h=13); cylinder(d=3.5,h=13); cylinder(d=9,h=13); #translate([19,0,6.5])cube([5.5,8.5,13],center=true); #translate([-19,0,6.5])cube([5.5,8.5,13],center=true); #translate([40,40,4])cylinder(d=10...
glb/cad_f96a5a5c0944.glb
Create a robotic mower knife holder consisting of a central sphere and four surrounding cylinders. Position a sphere with a diameter of 40mm at the center of the assembly. Arrange four cylinders around the sphere, each with a diameter of 30mm and a height of 10mm. Place two cylinders on the X-axis, centered at X=75.5mm...
$fn=80; difference() { union(){ #translate([0,0,20])sphere(d=40); #translate([-75.5,0,0])cylinder(d=30,h=10); #translate([75.5,0,0])cylinder(d=30,h=10); #translate([0,-75.5,0])cylinder(d=30,h=10); #translate([0,75.5,0])cylinder(d=30,h=10); } }
glb/cad_ae4ad25d3b6d.glb
Create a robotic mower knife holder consisting of a central cylinder and four surrounding conical protrusions. Start by placing a central cylinder with a diameter of 28mm and a height of 21mm, positioned so its base is 27mm above the origin. Around this center, place four identical conical shapes. Each cone should have...
$fn=80; difference() { union(){ #translate([0,0,27])cylinder(d=28,h=21); #translate([-75.5,0,0])cylinder(d1=14,d2=5,h=10); #translate([75.5,0,0])cylinder(d1=14,d2=5,h=10); #translate([0,-75.5,0])cylinder(d1=14,d2=5,h=10); #translate([0,75.5,0])cylinder(d1=14,d2=5,h=10); } }
glb/cad_4fa098f99937.glb
Create a Tripod Adapter consisting of a cylindrical base with integrated screw threads. Start by creating a cylinder with a radius of 15mm and a height of 10mm. On the top surface of this cylinder, add a male screw thread with a diameter of 15.275mm (calculated as 15.875mm minus a 0.6mm tolerance), a pitch of 11 thre...
include <threads.scad> RES=64; tol = 0.6; cylinder_base = 15; tripod_screw_male_dia_mm = 15.875 - tol; tripod_screw_male_dia_inch = tripod_screw_male_dia_mm / 25.4; tripod_screw_male_tpi = 11; tripod_screw_male_height_mm = 8 ; tripod_screw_male_height_inch = tripod_screw_male_height_mm / 25.4; tripod_screw_male_an...
glb/cad_f0ff4c4e7d28.glb
Create a D20 renumbered gaming die in the shape of a regular icosahedron. The overall scale of the model should be such that the distance from the center to the vertices is 20mm. On each of the 20 equilateral triangular faces, embed a number from 1 to 20. The numbers should be recessed into the faces. The distributio...
include <bitmap.scad>; phi = (1+ sqrt(5))/2; function get_num_digits(p) = lookup(p, [ [1,0], [2,1], [3,0], [4,1], [5,0], [6,1], [7,1], [8,1], [9,0], [10,1], [11,0], [12,1], [13,0], [14,1], [15,0], [16,1], [17,0], [18,1], [19,0], [20,1] ]); function get_digit1(p) = lookup(p, [ [1,0], [2,1], [3,0], [4,1], [5,0], [6,1]...
glb/cad_64b4ec23ab49.glb
Create a parametric jigsaw puzzle consisting of a 5x4 grid of interlocking pieces. Each piece is based on a 30mm by 30mm square with a thickness of 1.6mm. The corners of every piece must be rounded with a radius of 0.2mm. For each piece, define the four edges (North, East, South, West) as either straight, an inward so...
eps=1e-2; $fn=60; module puzzlepiece(x=20,y=20,d=6,h=1,mink=.2,diff=.15,edge=[0,0,0,0]) { linear_extrude(height=h) minkowski() { union() { difference() { translate([-(x-2*mink)/2,-(y-2*mink)/2]) square([(x-2*mink-2*diff),(y-2*mink-2*diff)]); union() { ...
glb/cad_89a5d156a522.glb
Create a rocket model by stacking several geometric sections along a central vertical axis. Start with a base consisting of four identical flat wings, each 10mm by 1mm and 10mm thick, radiating outwards every 90 degrees from the center. Above this, place a purple cylinder with a radius of 4mm and a height of 10mm. On t...
module wing(){ color("green") translate([0,0]) rotate(180) linear_extrude(height=10,scale=0) square([10,1]); } module wing2(){ translate([-3,0,16]) rotate(180) linear_extrude(height=7,scale=0) square([3,1]); } module rocket(){ wing(); rotate(90) wing(); rotate(180) wing(); rotate(-90) wing(); wing2(); rotate(90...
glb/cad_36d6d469c105.glb
Create a flat, U-shaped plate for the AO-100 Dual Material Setup. Start by creating a solid square block measuring 25mm by 25mm with a height of 0.4mm. Round the exterior corners of this block using a radius of 4mm. From this base, remove a vertical slot to create the U-shape. This cutout is formed by removing a volu...
gap =0.4; layers = 1; difference(){ union(){ translate([4,4,0])minkowski(){ difference(){ cube([25-8,25-8,gap/2]); translate([1,0,0])cube([15,25/2,gap/2]); } cylinder(r=4,h=gap/2); } } hull(){ translate([25/2,25/2,-gap/4])cylinder(r = 4, h = gap *2); translate([25/2,0,-gap/4])cylinder(r = 4,...
glb/cad_60deaf743fa6.glb
Create a parametric cell phone battery holder by starting with a solid rectangular block measuring 45.48mm in width, 6.38mm in depth, and 65.98mm in height. Center this block on all axes. From this solid, remove a central rectangular volume to create a hollow cavity with internal dimensions of 44mm in width, 5.4mm in d...
height = 65; width = 44; depth = 5.4; singleWallWidth = .49; thickness = 2; clearence = .25; difference() { cube(size = [width + 2*thickness*singleWallWidth + clearence, depth + 2*thickness*singleWallWidth + clearence, height + thickness*singleWallWidth], center=true); translate([0,0,2*thic...
glb/cad_9b7d43730e89.glb
Create a Veierland slingbow, a handheld slingshot frame with a total thickness of 25mm. The main body is composed of a handle and a head. The handle is 120mm long and 40mm wide. The head is 125mm wide and 78mm high. The body is constructed from multiple layers, each 3.125mm thick, with a sculpted, organic profile cre...
handle_length=120; handle_width=40; head_height=78; head_width=125; thickness=25; band_thickness=4.5; resolution=15; amount_of_sculpting=0.8; support="YES"; text1="VeierlanD"; text2="2018"; text3= "by Arnsteio"; verbose="YES"; error = 0.01; $fn=resolution; layer_number=resolution/2; layer_height=thickness /layer_...
glb/cad_3e3ff43da5c1.glb
Create a whiskerbiscuit for a slingbow. The object is a cylindrical assembly with a total height of 25mm and an outer diameter of 62.5mm. Start by creating a central hollow wall with a thickness of 0.44mm, extending through the height of the object. At the bottom and top, add fastening rings: the bottom ring is a fla...
$fn=150; vres=0.15; hres=0.4; wall_thickness=hres*1.1; error=0.001; module solid_whiskerbiscuit(dia,width,fletching_cuts, shaft_dia) { step=360/fletching_cuts; difference () { cylinder(h=width, d=dia, center=true); for (degrees = [0:step:360]) { rotate([0,0,degrees]) cube([dia...
glb/cad_6d5284fa19f9.glb
Create a twisting container consisting of two nested, spiraling parts: an outer shell and an inner insert. The outer shell is a twisted prism with a height of 60mm. Its base is a regular 5-sided polygon with a radius of 32mm and edges rounded by a 5mm fillet. Extrude this shape vertically to 60mm, applying a total tw...
type = "assembled"; vase_mode = "No"; hole = "No"; height = 60; twist_angle = 50; sides = 5; radius = 32; smoothness_of_edges = 5; gap = 0.6; thickness = 1; quality = 100; diameter = 2; base_radius = max(radius - smoothness_of_edges, 1); module base_out() { difference(){ if (sides > 2) { offset...
glb/cad_72c53e3d85e2.glb
Create a simple spool holder by starting with a rectangular block measuring 20mm wide, 135mm long, and 20mm high. Center a cylindrical cutout with a diameter of 20mm and a length of 135mm through the main body of the block. From the bottom face, remove a rectangular section 20mm wide, 50mm long, and 13mm high to create...
L1=65; L2=50; L3=13; L4=L1+L2+10; rotate([0,-90,0]){ difference(){ union(){ cube([20,L4,20]); rotate([90,0,0]) translate([10,20,-L4]){ cylinder(d=20,h=L4);}} translate([0,0,7]){ cube([20,L2,L3]);} translate([10,13,10]){ cylinder(d=5,h=20);} translate([10,30,10]){ cylinder(d=5,h...
glb/cad_a503fdd2554c.glb
Create a bearing holder for an RJMP-01-08 bearing. The main body is a cube with a width and height of 23.4mm and a length of 25.2mm. Center a horizontal hole through the body to house the bearing, with a diameter of 16.2mm and a length of 25.2mm. Create a vertical slot 10mm wide that cuts through the top of the body ...
LM8UU_dia = 16.2; LM8UU_length = 25.2; rod_dia = 8; screw_thread_dia_iso = 3; screw_head_dia_iso = 5.5; nut_wrench_size_iso = 5.5; clearance_dia = 1; screw_thread_dia = screw_thread_dia_iso + clearance_dia; screw_head_dia = screw_head_dia_iso + clearance_dia; nut_wrench_size = nut_wrench_size_iso + clearance_dia; nut...
glb/cad_ee760321597f.glb
Create three distinct board game figures based on a shared basic profile. The basic profile is a polygon with vertices at [0,1], [6,0.5], [6,-0.5], and [0,-1]. For the first figure, extrude this profile to a height of 10mm. Create three copies of the profile, rotated 120 degrees apart around the center, and merge them...
$fn=500; as_grid(1) { eins(); fuenf(); zehn(); } module as_grid(num) { num_per_row = ceil(sqrt(num)); for (x=[0:num_per_row-1]) { for (y=[0:ceil(num/num_per_row)-1]) { if(y*num_per_row+x < num) { translate([x*15*$children,y*15,0]) for (z=[0:$children-1]) { ...
glb/cad_dc74397f0a86.glb
Create a rocket model composed of a tiered cylindrical body and a conical top, supported by four stabilizing fins. Start with the base section: a cylinder with a radius of 10mm and a height of 30mm, centered at Z=15. Stack three additional cylindrical sections on top: the second section is 15mm high with a radius of 8m...
module rect1() { translate([-2,0,0]) rotate([90,0,0]) linear_extrude(height = 30, center = false, convexity = 10, twist = 0, scale = 0.01) square ([4,30], center = false); } module rect2() { translate([2,0,0]) rotate([90,0,180]) linear_extrude(height = 30, center = false, convexity = 10, twist = 0, scale = 0.01) squar...
glb/cad_f704ec1444a3.glb
Create a tube holder by starting with a solid rectangular block that is 14mm wide, 54mm long, and 25mm high. Within this block, create five vertical cylindrical holes, each with a diameter of 10mm and a depth of 23mm. These holes should be arranged in a single row along the length of the block, leaving a 2mm thick soli...
diam = 10; height = 25; rows = 1; columns = 5; gap = 4; difference(){ cube([(diam+(gap))*rows+gap,(diam+(gap))*columns+gap,height]); for(i=[1:rows]) for(z=[1:columns]) translate([(diam+gap)*i-gap,((diam+gap)*z)-gap,2]) cylinder(d=diam, h=height, $fn=50);}
glb/cad_8c5a343ca10c.glb
Create a tube holder rack by starting with a solid rectangular block that is 20mm high, 51mm wide, and 119mm long. Within this block, carve out a grid of 12 cylindrical holes, each with a diameter of 17mm and a depth of 18mm, leaving a 2mm thick base at the bottom. Arrange these holes into two rows of six. Position the...
diam = 17; height = 20; rows = 2; columns = 6; gap = 7; difference(){ cube([(diam+(gap))*rows+gap,(diam+(gap))*columns+gap,height]); for(i=[1:rows]) for(z=[1:columns]) translate([(diam+gap)*i-gap,((diam+gap)*z)-gap,2]) cylinder(d=diam, h=height, $fn=50);}
glb/cad_6203eb4749a3.glb
Create a tube holder by starting with a solid rectangular block that is 20mm high. The block's width should be 31mm and its depth should be 65mm. Within this block, create a grid of 8 cylindrical holes, arranged in 2 rows and 4 columns. Each hole must have a diameter of 17mm and a depth of 18mm, leaving a 2mm thick sol...
diam = 17; height = 20; rows = 2; columns = 4; gap = 7; difference(){ cube([(diam+(gap))*rows+gap,(diam+(gap))*columns+gap,height]); for(i=[1:rows]) for(z=[1:columns]) translate([(diam+gap)*i-gap,((diam+gap)*z)-gap,2]) cylinder(d=diam, h=height, $fn=50);}
glb/cad_c6b3704b55d8.glb
Create a tube holder by starting with a solid rectangular block that is 25mm high, 44mm wide, and 54mm deep. Within this block, create a grid of 12 vertical cylindrical holes, arranged in 3 rows and 4 columns. Each hole must have a diameter of 10mm and a depth of 23mm, leaving a 2mm thick solid base at the bottom of th...
diam = 10; height = 25; rows = 3; columns = 4; gap = 4; difference(){ cube([(diam+(gap))*rows+gap,(diam+(gap))*columns+gap,height]); for(i=[1:rows]) for(z=[1:columns]) translate([(diam+gap)*i-gap,((diam+gap)*z)-gap,2]) cylinder(d=diam, h=height, $fn=50);}
glb/cad_2ad4069cacd7.glb
Create a Y-Endstop Adjuster Bracket consisting of a main plate and a back plate. First, construct the main body as a rectangular block 24mm wide, 27mm high, and 18.9mm deep (calculated from two 3.5mm walls and a 12mm MDF depth). From this body, remove a central rectangular section 24mm wide, 3.5mm deep, and 21.4mm hi...
$fn = 64; mdfThickness = 5.7; plateSpacing = 10; Endstop_Bracket_Y_Adjuster_Plated(); adjusterPositionFromBed = 15.7; mdfDepth = 12; mdfHeight = mdfThickness; mdfWidth = 100; clipThickness = 2.8; wallThickness = 3.5; bracketHeight = 27; bracketWidth = 24; bracketDepth = wallThickness * 2 + mdfDepth; adjPos = bracke...
glb/cad_89486d59cbad.glb
Create a Modified MacAttak endstop adjuster bracket. Start with a main body consisting of a rectangular switch mount bracket 14mm wide, 12mm deep, and 40mm high. Attach an angled section to this bracket, rotated 45 degrees, with dimensions 14mm by 9mm by 9mm. Extend a leg from this assembly downward by 23mm, with a wid...
$fn = 64; mdfThickness = 5.7; plateSpacing = 10; Endstop_Bracket_Gantry_Plated(); endstopBaseWidth = 40; endstopBaseDepth = 16; endstopBaseHeight = 2; bracketHeight = 40; bracketWidth = 14; bracketDepth = 9; mountingBoltSpacing = 31.5; adjusterHeight = 10; adjusterWidth = 19; adjusterDepth = 23; adjusterRearKeepOut...
glb/cad_8395fb0d8ca6.glb
Create a Bungie Clip by starting with a solid rectangular block measuring 20mm wide, 20mm high, and 35mm long. Drill two vertical holes completely through the block, each with a diameter of 10mm. Position the first hole centered width-wise at 10mm and centered length-wise at 10mm. Position the second hole centered widt...
holed = 10; holer = holed/2; girth = 2*holed; section1 = holed; section2 = section1+1.5*holed; section3=section2+holed/2; gap = .5*holed; fingerlen = (holed-gap)/2; fingerwidth = holed/5; fingerspace=holer; length = section3+2*holed; length = section3+3*fingerspace+fingerwidth; echo ([girth, holed]); echo([section1, s...
glb/cad_c40a416f00da.glb
Create a treasure chest consisting of a hollow rectangular box and a hinged lid. For the main box, create a solid cube measuring 100mm in width, 100mm in depth, and 50mm in height. Hollow out the center of this cube by removing a smaller rectangular volume of 85mm width, 85mm depth, and 45mm height, positioned 8mm from...
$fn=20; width=100; depth=100; height=50; width1=85; depth1=85; height1=45; width2=12; depth2=10; height2=10; height3=11; rayon3=6; height4=11; rayon4=5; difference() { cube([width,depth,height]); translate([8,8,10])cube([width1,depth1,height1]); } translate([-10,30,40])cube([width2,depth2,height2]); translate([-10,90...
glb/cad_2307095a67bb.glb
Create a treasure chest consisting of a rectangular base and a curved lid. For the base, create a solid rectangular block 100mm wide, 100mm deep, and 20mm high. Hollow out the center of this block by removing a smaller rectangular volume 85mm wide, 85mm deep, and 25mm high, positioned 8mm from the side and back edges, ...
$fn=30; width=100; depth=100; height=20; width1=85; depth1=85; height1=25; width2=100; depth2=100; height2=100; height3=100; rayon3=50; width4=10; depth4=10; height4=20; height5=10; rayon5=4; difference(){ cube([width,depth,height]); translate([8,8,0])cube([width1,depth1,height1]); } intersection(){ translate([-50,20...
glb/cad_ddc5c0ed87ee.glb
Create a replacement crank for a flashlight. Start with a main body that is 3mm thick. The body's footprint is defined by a polygon with a base width of 21mm and a total length of 101mm, topped with a semi-circle of radius 15mm. At the base of the body, create a U-shaped cutout with a radius of 6mm, offset 3mm from t...
ep=3.0; wc=21.0; oc=1.0; wl=30.0; ll=101.0; oh=3.0; rh=6.0; ra=1.0; hal=2.0; har=3.0; $fn=20; module gear_tooth_2d(d) { polygon( points=[ [0.0,10.0*d/72.0], [0.5*d,d/15.0], [0.5*d,-d/15.0], [0.0,-10.0*d/72.0] ] ); } module oshw_logo_2d(d=10.0) { rotate(-135) { difference() { union() { circle(r=14.0*...
glb/cad_0e9c764efbbb.glb
Create a Canon EF Mount Body Cap consisting of a series of concentric cylinders. Start with a base outer grip cylinder 66.5mm in diameter and 5.8mm high, centered at the origin. Above this, add a cylinder 50.5mm in diameter and 5mm high, positioned 6mm up from the base. Between these, place a lip cylinder 54mm in diame...
$fn = 50; module EFmount() { union() { translate([0,0,-1]) cylinder(h = 5.8, r = 66.5/2); translate([0, 0, 6]) cylinder(h = 5, r = 50.5/2); translate([0, 0, 4]) cylinder(h = 3, r = 54/2); translate([0, 0, 7]) threads(); rotate([0, 0, -33]) translate([-67/2, 0, 1.9]) cube(size=[1, 2, 5.8],...
glb/cad_06a26fa3b4fa.glb
Create a Dust Collector Nozzle adapter by revolving a specific profile around a central axis. The profile consists of three connected sections. First, create a base cylinder with an inner diameter of 57.3mm and a wall thickness of 3mm, extending to a height of 20mm. At the top of this cylinder, add a 5mm tall vertical ...
SawInnerDia=57.3; SawInsertionDepth = 20; Thk=3; HoseTipDia=30.9; HoseTaperDia=32; HoseTaperLen=50; SawStopDist=5; AngledSectionLength = 30; rotate_extrude(convexity = 10,$fn=200){ union(){ color("Red") {polygon(points=[[SawInnerDia/2,0],[SawInnerDia/2,SawInsertionDepth],[SawInnerDia/2,SawInsertionDepth-1]...
glb/cad_370a03ad4075.glb
Create a Galaxy Note keyboard holder and stand consisting of two identical mirrored assemblies. For each assembly, construct a phone cradle and a keyboard cradle. The phone cradle is a U-shaped channel with an outer width of 10mm, a height of 83.95mm, and a depth of 9.65mm, with walls 1.5mm thick and a 6.5mm opening. T...
thickness = 1.5; width = 10.0; kbd_height = 60.5; main(); translate([0,25,0]) main(); module main() { translate([ -thickness, 9.5, 0 ]) fframe( width, 83.95, 9.65, thickness, 6.5 ); translate([ kbd_height, -5 , 0 ]) rotate([ 0, 0, -13 ]) fframe( width, kbd_height, 8.2 , thickness, ...
glb/cad_49ace352db30.glb
Create a functional business card measuring 86mm wide, 54mm high, and 1mm thick. Along the top edge, engrave a metric ruler. Place tick marks every 1mm, with longer marks every 10mm. Position numbers (00, 10, 20, etc.) below these 10mm ticks, leaving a 2mm padding from the edge. In the center of the card, create a s...
first_name = "First Name"; last_name = "Last Name"; contact_text = "www.your.site.com"; contact_size = 100; padding = 2; card_width = 86; card_height = 54; card_thickness = 1; millimeter_tick_length = 2.5; millimeter_tick_block = 10; protractor_tick_length = 2.5; protractor_tick_block = 10; translate([0,0,card_thic...
glb/cad_8a18cf2e507b.glb
Create a tabletop game card holder by starting with a rectangular base measuring 38.5mm in length, 10mm in width, and 2mm in height. On top of this base, add three smaller rectangular blocks, each measuring 2mm in width, 5mm in depth, and 4mm in height. Position the first block at x=10mm, the second at x=18.25mm (shift...
slotWidth = 2; slotOffset = (10 - slotWidth)/2; difference() { union() { translate([0,0,0]) { cube([38.5, 10, 2]); } translate([10,0,2]) { cube([2,5,4]); } translate([18.25,5,2]) { cube([2,5,4]); } translate([26.5,0,2]) { cube([2,5,4]); } } translate([0,slotOffset,2]) { cube([38.5,sl...
glb/cad_5702677036ee.glb
Create a Compact Bowden Extruder consisting of a motor mount, a frame mount, and a filament tunnel. Start with the NEMA 17 motor mount: create a base plate 6mm thick with a central hole of radius 11.25mm and a larger axle hole of radius 14.5mm. Add four mounting holes at the NEMA 17 standard offsets, each 3mm in diam...
include <common_hardware.scad>; epsilon = 0.1; extra_radius = 0.1; m3_major = 2.85; m3_radius = m3_major / 2 + extra_radius; m3_wide_radius = m3_major / 2 + extra_radius + 0.2; m3_head_radius = 3 + extra_radius; drive_gear_outer_radius = 13.00 / 2; drive_gear_hobbed_radius = 12 / 2; drive_gear_hobbed_offset = 2.7;...
glb/cad_f222bd4a563a.glb
Create a snap-hinge box consisting of two mirrored halves. Each half is a rectangular shell with an outer width of 40mm, a depth of 30mm, and a total height of 25mm. The walls and bottom are 1.6mm thick, while the back wall is 4mm thick. The interior cavity of each half measures 36.8mm by 24.8mm by 21.8mm. At the top ...
use <snap_hinge.scad> xlen = 40; xwal= 1.6; ylen = 30; yfwal = 1.6; ywal = 4; zlen = 25; zwal = 1.6; lid = 6; hext = 1.6; athick = 1.5; xin = xlen-2*xwal; yin = ylen-ywal-yfwal; zin = zlen-2*zwal; $fn = 16; bump = [ywal*0.8, 0.4, 55]; arm = [ywal, athick, hext, 0]; acnt = floor(hinge_max_arms(xlen, athick,...
glb/cad_2983af7c8bc2.glb
Create a snap-hinge consisting of two matching mirrored parts. Each part features a series of 8 repeating hinge arms distributed across a total length of 20mm, with a 0.1mm clearance between the moving components. Each hinge arm is 5mm high and 1mm thick. The arm ends are rounded using a 3-sided facet resolution. The ...
module snap_hinge_bump(bump) { diam = bump[0]; height = bump[1]; ang = bump[2]; rotate(a = 90, v = [0, 1, 0]) translate(v = [0, 0, -0.01]) cylinder(h = height + 0.01, d1 = diam, d2 = diam - (2 * height / tan(ang))); } module snap_hinge_basearm(arm) { height = arm[0]; thick = arm[1]; ...
glb/cad_b868c97e69c1.glb
Create a door linkage plastic piece by combining a central cube and a cylinder. Start with a cube measuring 11mm x 11mm x 12mm, centered on the origin. Add a cylinder with a radius of 3mm and a height of 15mm, positioned with its base at the origin and extending upwards along the Z-axis. From this combined volume, re...
difference() { union() { translate(v = [0,0,0]) cube([11, 11, 12], center = true); translate(v = [0,0,0]) cylinder(r = 3, h = 15, center = false); } translate(v = [0,0,0]) rotate(a = 90, v = [0,1,0]) cylinder(r = 3, h = 15, center = true); translate(v = [0,0,-6]) rotate(a = 90, v = [0,1,0]) ro...
glb/cad_4cd908b9afb2.glb
Create a hinge for the Spannerhands Spool System. Start by constructing a main vertical cylinder with a diameter of 7.5mm and a height of 83mm. At the base of this cylinder, add a wider, shorter cylinder with a diameter of 17mm and a height of 8mm. Surround the main shaft with a rectangular block measuring 20mm in widt...
$fn=80; difference() { union(){ cylinder(d=7.5,h=83); cylinder(d=17,h=8); #translate([0,0,79])cylinder(d1=8.5,d2=7.9,h=4);} translate([-10,3.5,0])cube([20,20,90]); #translate([0,0,79])cube([2,20,8],center=true); }
glb/cad_151e8e433bc4.glb
Create a hinge for the Spannerhands Spool System by constructing a solid cylinder with a diameter of 17mm and a height of 8mm. From the center of this cylinder, remove a vertical cylindrical hole with a diameter of 8mm and a height of 8mm. Additionally, remove a wider cylindrical section from the center with a diameter...
$fn=80; difference() { union(){ cylinder(d=17,h=8); } #translate([0,0,0])cylinder(d=8,h=8); #translate([0,0,3.5])cylinder(d=10,h=4.5); }
glb/cad_084e3b18bf10.glb
Create a sign on/off device for FabLabs consisting of a hollowed-out base and a small cylindrical button. First, create a base with a complex, organic outer profile based on a modified rectangular shape with rounded corners, approximately 9mm in height. Hollow out the center of this base to a depth of 7.1mm, leaving ...
fudge = 0.1; module cross(h, r) { difference() { cylinder(h = h, r = r, $fn = 100, center = true); translate([0,0, - (h-1)/4]) cube(size = [4.1, 1.4, h - 1], center = true); translate([0,0,- (h-1)/4]) rotate([0, 0, 90]) cube(size = [4.1, 1.4, h - 1], center = true); } } module e(h) { scale([25.4/90, ...
glb/cad_af4edbdad254.glb
Create a sign on/off device consisting of a semi-circular ring and an attached mounting base. Start by creating a half-ring with an outer radius of 28.5mm, an inner radius of 27mm, and a height of 14.1mm. Center this ring on the origin and remove a rectangular section from one side to ensure it is a true open semi-circ...
materialThickness = 4.05; ringR = 27; ringH = 2 * materialThickness + 6; holderR = 4.05; holderH = 4.8; armholderR = 6.5; armholderH = ringH; screwHoleR = 1.5; module halfaring(h, r) { difference() { cylinder(h = h, r = r + 1.5, $fn = 100, center = true); cylinder(h = h + 0.1, r = r, $fn = 100, center = true); ...
glb/cad_b444cd79de58.glb
Create a sign on/off device hinge consisting of a rectangular platform and a cylindrical hinge. Start by creating a rectangular platform 18mm long, 6.4mm wide, and 6mm high, centered on the origin. Remove a cylindrical hole with a radius of 2mm that runs through the length of the platform along the Y-axis. Additionally...
hingeR = 4; platformL = 18; platformW = 1.6 * hingeR; platformH = platformL/3; screwHoleR = 1.3; screwHoleH = platformH; doorhingeW = platformL * 0.8; module hingeplatform(l, w, h, r) { difference() { cube(size = [l, w, h], center = true); translate([platformL/4, 0, -platformH/2]) cylinder(h = screwHoleH, r ...
glb/cad_e8a85ec9a285.glb
Create a Printrbot Simple 2014 XL Filament Tray spacer. Start with a main rectangular block measuring 6mm in depth, 140.5mm in width, and 6mm in height. To reinforce the structure, add a unified plate created by the convex hull of four cylinders. Each cylinder has a radius of 2mm and a height of 6mm, oriented horizon...
difference() { union(){ translate([-6,0,0]) cube([6,140.5,6]); hull() { translate([-3,19.2,-4]) rotate([0,90,0]) cylinder(r=2,h=6,center=true,$fn=64); translate([-3,126.3,-4]) rotate([0,90,0]) cylinder(r=2,h=6,center=true,$fn=64); translate([-3,19.2, 10]) ...
glb/cad_da85b1dea32c.glb
Create a Customizable Socket Tray by starting with a solid rectangular block. The block's total width is determined by the sum of the socket diameters and the walls between them, plus 3mm of extra wall on each end. The total depth is the radius of the largest socket plus 2mm, and the total length is the socket height (...
echo(version=version()); socketHeight = 52; textSize = 5; textPaddingTopAndBottom = 1; textHeight = 0.6; textPosition = "emboss"; wallWidthBetweenTools = 2; wallWidthAboveTools = 2; wallWidthBehindTools = 2; wallWidthExtraOnEnds = 1; socketDiameters = [11.8, 11.8, 11.8, 13.1, 13.1, 14.6, 15.9, 16.8, 18, 19.8]...
glb/cad_405e8e98ee5c.glb
Create a bike bottle cage designed to hold a bottle with a diameter of 73.025mm. The main body is a semi-cylindrical shell with an outer radius of 38.025mm and a height of 128mm. The back of the cage must be concave to fit around a bike tube with a radius of 17.45mm. The structure features two bolt holes spaced 64mm a...
bottle_diam = 73.025; bolt_spacing = 64; cage_radius = bottle_diam/2; cage_height = bolt_spacing *2; cage_od_difference = 4; cage_outer_radius = cage_radius+cage_od_difference; cage_min_thickness = 2; cage_split = 10; bracket_width = 20; bike_tube_r = 34.9/2; first_hole = cage_height-20; band_height = cage_height-bolt_...
glb/cad_ff26564da990.glb
Create a soil moisture sensor support block by starting with a base shape formed by the convex hull of two circles, each with a radius of 10mm, centered 20mm apart along the x-axis. Extrude this shape to a height of 15mm. From this block, remove two vertical holes with a radius of 1.5mm, centered at the same 20mm inter...
block_size=20; block_height=15; entreaxe=20.0; radius=1.5; head_radius=5.5; head_height=2.0; difference() { linear_extrude(height=block_height) difference() { hull() { translate([0.5*entreaxe,0]) circle(r=0.5*block_size,$fn=30); translate([-0.5*entreaxe,0]) circle(r=0.5*block_size,$fn=30); } transl...
glb/cad_8de63e676835.glb
Create a dog bone shaped name tag. The main body is a symmetrical bone structure formed by a central rectangular bar with rounded ends. At each end of the bar, create two rounded lobes. Each lobe is constructed by combining a sphere with a radius of 11mm, scaled to 0.7 on the Z-axis, and a central rectangular block mea...
font = "Gill Sans Ultra Bold"; name = "Rover"; name_size = 14; name_offsetx = -35; name_offsety = -7; contact = "555 1234"; contact_size = 14; contact_offsetx = 60; contact_offsety = -7; $fn = 60; scale ([0.55, 0.55, 0.55]) { difference () { difference () { union () { difference () { u...
glb/cad_7119ff1ed409.glb
Create a dipstick cap for a Volvo 850. Start by constructing a base sphere with a radius of 10mm, centered at the origin but shifted 2mm upward along the Z-axis. From this base, extend a tapered cone upwards to a total height of 28mm; this cone should have a bottom radius of 7mm and narrow to a top radius of 4.5mm. To ...
union(){ difference(){ translate([0,0,-2]) sphere(10, $fa=5, $fs=0.1); translate([0,0,-12]) cylinder(h = 100, r = 1.15, $fn=100); translate([0,0,-12]) cube([20,20,2],center=true); } difference(){ cylinder(h = 28, r1 = 7, r2 = 4.5, $fn=100); cylinder(h = 28, r = 1.15, $fn=100); } }
glb/cad_bad9b9c7e25f.glb
Create a filament guide for a 3D printer frame. Start by constructing a base rectangular block 120mm long, 12mm wide, and 20mm high. Attach a second rectangular block of the same dimensions (120mm by 6mm by 20mm) to the first, positioned at a 30-degree angle along the X-axis, starting from a Y-offset of 3mm and a Z-off...
module filament_guide(slot=6.3) { difference() { union() { cube([120,12,20]); translate([0,3,15]) rotate([30,0,0]) cube([120,6,20]); } translate([-1,3,-1]) cube([122,slot,16]); translate([10,0,20]) rotate([30,0,0]) cube([100,10,10]); translate([10,10,31.5]) rotate([120,0,0]) cylinder(3...
glb/cad_426d89b1ad07.glb
Create a filament runout switch and guide. Start with a main body formed by the hull of a 12x55x12mm cube and a cylinder with a 20mm diameter and 2mm height centered at [6, 47, 6]. Attach a mounting ring created from the hull of a 24mm diameter cylinder with a 9mm height and a 1x30x9mm cube. Add a microswitch mounting ...
fn = 360; difference(){ group(){ hull(){ translate([0,-10,0]) cube([12,55,12]); translate([6,47,6]) rotate([90,0,0]) cylinder(d = 20, h = 2, $fn = fn); } hull(){ translate([-12,25,0]) cylinder(d = 24, h = 9, $fn = fn); translate([0,10,0]) cube([1,30,9]); } translate([6,14,0]) cube([19,20...
glb/cad_8133efd1ab50.glb
Create a Kilowatt Axial Flux Generator magnet component. Start by constructing a hollow cylindrical ring with an outer radius of 25mm, an inner radius of 20mm, and a height of 10mm. To shape this ring into a specific segment, intersect it with two large rectangular blocks. Position the first block to cover the area fro...
include <params.scad> module ring() { difference() { cylinder(h=mag_height, r=mag_ring_or); translate([0, 0, -1]) cylinder(h=mag_height+2, r=mag_ring_ir); } } module block() { cube([(mag_ring_or*2)+2, mag_ring_or+2, mag_height+2]); } module magnet() { intersection() { ring(); translate([-mag_ring_or-1, -1...
glb/cad_9c4d2401a932.glb
Create a Kilowatt Axial Flux Generator rotor edge tie. Start by constructing a rectangular base with a length of 20mm, a width of 5mm, and an inner height of 2mm. On the top surface of this base, add two cylindrical pegs, each with a radius of 2mm and a height of 3mm. Position the first peg at a distance of 1.33mm from...
include <params.scad> x_inset = rotor_edge_tie_peg_inset + (hole_radius / 6); module rotor_edge_tie_raw() { cube([rotor_edge_tie_length, rotor_edge_tie_width, rotor_edge_tie_inner_height]); translate([x_inset, rotor_edge_tie_peg_inset, 0]) cylinder(h=rotor_edge_tie_height, r=peg_radius); translate([rotor_ed...
glb/cad_e453a3d44730.glb
Create a Kilowatt Axial Flux Generator stator. Start with a main rectangular block that is 31.25mm wide, 25mm deep, and 5mm high. From this main body, remove a central rectangular section for the coil, measuring 5mm wide, 7.5mm deep, and 5mm high. This cutout should be modified by removing two mirrored sections, each...
include <params.scad> use <bearing.scad> stator_x = stator_radius * 1.25; module coil_subtractor() { rotate([0, 0, -30]) { cube([coil_edge/2, coil_edge*1.5, stator_height]); } } module coil() { difference() { translate([coil_edge/-2, 0, 0]) { cube([coil_edge, coil_block_length, stator_height]); ...
glb/cad_3bfaca0dbc62.glb
Create a RepRapDiscount Full Graphic LCD Mount consisting of a base plate and two supporting arms. Start with a base plate that is 42mm wide, 42mm deep, and 8mm thick. Cut a 37mm square hole through the center of the base, rotated 45 degrees relative to the edges, to create a mounting frame. Add two small rectangular...
module bracket() { difference() { union() { rotate([0,0,45]) translate([0,-1,0]) cube([42,42,8]); translate([-30,29.75,0]) cylinder(37.5,8,8); translate([-1,-6.5,0]) cube([5,9,8]); translate([-1,55.5,0]) cube([5,9.5,8]); } rotate([0,0,45]) translate([5,-1,0]) cube([37,37,8]); t...
glb/cad_7187e2eefef0.glb
Create a Y-Undercarriage for a 3D printer carriage. The main structure consists of a rectangular frame with a total width of 140mm, a length of 100mm, and a thickness of 4.9mm. Construct the frame using four longitudinal support rails of 4.9mm thickness. Position two outer rails at the edges of the 140mm width and tw...
include <configuration.scad> include <lm8uu-holder-slim_V1-1.scad> SupportThickness=4.9; SupportWidth = 12; ClampSeparation = 40; xWidth = 140; yWidth = 100; height = 14; belt_width=7.25; belt_thickness=2; tooth_height=1; tooth_offset = 2; belt_distance_from_bed = 8; belt_clamp_thickness=5; belt_clamp_spacing=8; b...
glb/cad_961d2037bda9.glb
Create a replacement lid for a waterproof project box with overall outer dimensions of 99.5mm by 67.5mm. The main body is a rectangular plate with rounded corners (radius 4mm) and a total thickness of 14mm. The lid features a recessed central area to accommodate a seal. Create a rectangular cutout from the bottom, le...
debug = false; $fa = 12; $fs = 0.5; e = 0.01; w = 99.5; h = 67.5; screw_offset = 6; seal_diameter = 2.4; seal_channel_width = seal_diameter - 0.1; seal_contact_thickness = 1.25; inside_gap = (seal_diameter - seal_contact_thickness)/2; seal_channel_offset = 0.5; wall_thickness = 3; seal_wall_thickness = 1; w_inside...
glb/cad_b16d549ec89d.glb
Create a lid for a 100x68x50mm waterproof project box designed to house an HI3518 camera module and an HC-SR501 PIR sensor. First, create the main lid base. On the left side, integrate a camera mount consisting of a 42x42mm square platform with rounded corners (radius 2mm). This platform should have a central square ...
use <100x68x50mm_waterproof_box_lid.scad> $fs = 0.5; e = 0.01; hi3518_lid(); module camera_mount_2d() { r = 2; difference() { minkowski() { square( [38 + 2 - 2*r, 38 + 2 - 2*r], center=true ); circle(r, center=true); ...
glb/cad_c2ed4ef757ea.glb
Create a custom model rocket composed of a series of stacked, concentric geometric sections. Start with a cylindrical base of radius 3.25mm and height 11mm. Atop this, add a second section that tapers inward, with a height of 5mm and a top radius of approximately 2.44mm. Above that, place a cylinder with a radius of 2....
include <write.scad> rotate(a=[90,0,0]) { linear_extrude(height = 10, center=false, scale = [0,0]) square([1,10]); } rotate(a=[90,0,90]) { linear_extrude(height = 10, center=false, scale = [0,0]) square([1,10]); } rotate(a=[90,0,180]) { linear_extrude(height = 10, center=false, scale = [0,0]) square([1,10]); } rotate(a...
glb/cad_4c6cc40d378c.glb
Create a round cocktail stick with a total length of 100mm. Start by creating a main shaft with a diameter of 3.2mm. One end of the shaft should be a sharp point, formed by a cone 5mm in length that tapers from the shaft diameter down to a point. The remaining 95mm of the shaft should be a smooth cylinder. At the oppos...
total_length = 100; cone_length = 5; stick_diameter = 3.2; ornament_size = 20; ornament_thickness = 2; stick_fs = 1*0.1; ornament_fs = 1*0.5; stick_radius = stick_diameter / 2; stick_length = total_length - cone_length; view(); module cone() { rotate([0, 90, 0]) cylinder(r1 = 0, r2 = stick_radius, h = cone_...
glb/cad_ffc00a38dec4.glb
Create a steady rest for a lathe. Start with a main body consisting of a thin ring with an outer diameter of 88.9mm (3.5 inches) and an inner diameter of 44.45mm (1.75 inches), and a thickness of 12.7mm (0.5 inches). At three equidistant points around the ring (every 120 degrees), add rectangular mounting blocks. Eac...
$fn=128; Inch=25.4; REST_THICK = 0.5; OUTER_DIA=3.5; INNER_DIA=1.75; CENTER_HEIGHT=1.75; BASE_THICK=1.0; BladeWidth=1/4; BladeDepth=(1/4 - 1/32); BladeBlockLength=7/8; BladeBlockWidth=3/4; Clearance_dia_10_24=0.2010; Head_dia_10_24=3/8; Nut_depth_10_24=0.13; Nut_dia_10_24=0.415; Clearance_dia_6_32=0.1495; Nut_dia...
glb/cad_6fbbc7bb5575.glb
Create a Steadyrest for Sherline Lathe consisting of a circular support ring and a rectangular mounting base. First, construct the main body as a ring with an outer diameter of 88.9mm (3.5 inches) and a thickness of 12.7mm (0.5 inches). Remove a concentric center hole with a diameter of 50.8mm (2 inches). At three eq...
include <./MCAD/units.scad> $fn=128; Inch=25.4; iepsilon=epsilon/Inch; REST_THICK = 0.5; OUTER_DIA=3.5; INNER_DIA=2; CENTER_HEIGHT=1.75; BASE_THICK=1.0; BladeWidth=1/4; BladeDepth=1/4; BladeBlockLength=7/8; BladeBlockWidth=3/4; Clearance_dia_10_24=0.2010; Head_dia_10_24=3/8; Nut_depth_10_24=0.13; Nut_wrench_10_24...
glb/cad_cc893a270c6a.glb
Create a Steadyrest for Sherline Lathe. Start with a main body consisting of a thin ring with an outer diameter of 88.9mm (3.5 inches) and an inner diameter of 50.8mm (2 inches), and a thickness of 12.7mm (0.5 inches). Position three rectangular arm mount blocks, each 6.35mm wide by 31.75mm long by 12.7mm thick, spaced...
include <./MCAD/units.scad> $fn=128; Inch=25.4; iepsilon=epsilon/Inch; REST_THICK = 0.5; BASE_THICK=1.0; OUTER_DIA=3.5; INNER_DIA=2; CENTER_HEIGHT=1.75; LayerHeight=0.2; BladeWidth=1/4; BladeDepth=1/4; BladeBlockLength=7/8; BladeBlockWidth=3/4; Clearance_dia_10_24=0.2010; Head_dia_10_24=3/8; Nut_depth_10_24=0.13;...
glb/cad_4618e0b59b4d.glb
Create a customizable mitre box for cutting extrusions. The main body is a rectangular block 120mm long, with a total height of 24.5mm (comprising a 15mm beam depth, 4.5mm wall thickness, and 5mm extra height). Center a rectangular channel cutout through the length of the block to accommodate a beam of 15mm width and...
part = "all"; width = 15; depth = 15; length = 120; cutting_angle = 0; thickness = 4.5; width_slack = 0.2; extra_height = 5; clamp_width = 28; brim_width = 5; screw_diameter = 3.1; screw_cap_diameter = 6; screw_cap_height = 3.2; base_thickness = 5.7; holes = 1; blade_width_inches = 0.025; blade_width_sla...
glb/cad_3c8b6f907dca.glb
Create a Greek pillar consisting of a fluted central shaft, a decorative base, and a square capital. The central shaft is a cylinder with a radius of 5mm and a height of 50mm. Carve 20 equidistant vertical grooves into the shaft's surface; each groove is formed by removing a smaller cylinder with a radius of approxim...
c_height=50; c_radius=5; freq=20; troughfreq=20; gapsize=4; arclength=360/freq * c_radius * 0.0174532925; circumference =2*3.14159*c_radius; echo("This is a arclength =", arclength); echo("This is circumference=", circumference); echo("This is max number of troughs=", circumference/arclength); totalheight = c_height...
glb/cad_5231ca6db491.glb
Create an LM8UU bearing holder for a motor end. Start with a main rectangular body 16mm wide, 40mm long, and 15.5mm high. At the base, add a mounting plate that is 36mm wide, 40mm long, and 6mm thick. Cut a central horizontal hole through the body and plate to accommodate a bearing with a diameter of 15.5mm and a leng...
screw_dia = 3.4; nut_dia = 6.5; nut_height=3; body_width = 16; gap_width = 10; body_height = 15.5; body_length=40; LM8UU_dia = 15.5; plate_height = 6; plate_length=body_length; plate_width=36; screw_space_x = 23.5; screw_space_y=28; lm8uu_length=24.1; screw_elevation = body_height/2+plate_height+2; clamp_location=...
glb/cad_78d7100b9a52.glb
Create a Customizable Pinion Puller consisting of a main body and a separate central joint. For the main body, create a rectangular block with overall dimensions of 25mm width, 55mm depth, and 21.8mm height. Hollow out the center to create an inner chamber measuring 20mm by 45mm by 20mm, leaving walls that are 2.5mm ...
hole_d = 2; space_x = 20; space_z = 45; grip_t = 1.8; side_t = 2.5; nut_d = 8; bolt_d = 4.2; pusher_d = 4.7; pusher_fn = 6; joint_h = 17; joint_minimal_t = 1.5; joint_d = max(bolt_d, pusher_d) + 2*joint_minimal_t; $fn = 50; module puller_body() { translate([0, 0, space_x+side_t]) mirror([0, 0, 1]) ...
glb/cad_892a7718b71c.glb
Create a Y-axis endstop mount for a Prusa i3 printer. Start with a main body consisting of two cylindrical mounts connected by a central bracket. The first mount is a cylinder with a radius of 8mm and a height of 10mm, centered on the Z-axis. Within this cylinder, create a central rectangular slot 8mm wide, 10mm high, ...
RodDistance = 35.8; module m10rod(){ difference(){ union() { cylinder(r=16/2, h=10, center=true, $fn=32); translate([-16/4,0,0]) cube(size=[16/2, 16, 10], center=true); translate([-16/2,0,0]) rotate([90, 0, 0]) cylinder(r=5, h=16, center=true, $fn=42); translate([-16/2,-1,0]) rotate([90, 0, 0]) cylinder...
glb/cad_5e954f508960.glb
Create a grid of 42 M5 T-slot nut substitutes arranged in 6 columns and 7 rows. Each individual nut is based on a rectangular block 12mm wide, 15mm long, and 1mm thick. For each nut, center a cylindrical hole with a 5mm radius and a depth of 1.2mm through the top face. From the bottom of the block, remove a hexagonal...
module box(w,h,d) { scale ([w,h,d]) cube(1, true); } module hexagon(height, depth) { boxWidth=height/1.75; union(){ box(boxWidth, height, depth); rotate([0,0,60]) box(boxWidth, height, depth); rotate([0,0,-60]) box(boxWidth, height, depth); } } module nut() { rotate([180,0,0]) difference() { translate(...
glb/cad_a15ac373ed36.glb
Create a Tag Collar adapter for a GPS tracker. Start by creating a main rectangular base with rounded corners, measuring 76mm by 56mm (GPS dimensions 70mm x 50mm plus 3mm material thickness on all sides) and a height of 10mm. Integrate a belt mount section centered beneath the base, measuring 110mm in length and 70mm...
collar_diameter = 250; adapter_length = 110; belt_width = 70; bolt_diameter = 4; boltX = 45; boltY = 45; material_thickness = 3; gps_screw_diameter = 3.4; gps_screw_nut = 7; gpsX = 70; gpsY = 50; gpsZ = 15; mountX = 38; mountY = 60; mountZ = 10; color("red") translate([0,0,1.5]) SmartOne($fn=60); !collar($fn...
glb/cad_99e9b44129e6.glb
Create a Tag Collar adapter for a GPS tracker. Start by constructing a main housing using a hull of a rounded rectangle with dimensions 62mm by 51mm and a height of 20mm. Integrate a belt mount base that is 90mm long and 52mm wide with a height of 11mm. Subtract a large cylindrical cutout with a diameter of 150mm from...
collar_diameter = 150; adapter_length = 90; belt_width = 52; bolt_diameter = 3.8; boltX = 51; boltY = 30; material_thickness = 2; gpsX = 56; gpsY = 45; gpsZ = 14; lidX = gpsX + 3; lidY= gpsY + 3; lid_gap = 0.8; solarX = 35; solarY = 44; solarZ = 3; batteryX = 75; batteryY = 45; batteryZ = 6; case(design=3,$f...
glb/cad_552956f00fdd.glb
Create an OctoLapse camera holder consisting of a hollow rectangular box with a total outer width and depth of 39.2mm and a height of 11mm. The walls should be 1.6mm thick. On the bottom face, create a rectangular cutout measuring 4mm by 5mm centered on one edge to allow for NeoPixel cabling. On the opposite side, cr...
wall=1.6; base=36+wall; h=11; difference() { $fn=12; linear_extrude(h) offset(r=1) square(base+2*wall-2, center = true); translate([0,0,wall]) linear_extrude(h) offset(r=0.5) square(base-1, center = true); translate([-8,-base/2-wall/2,-.01]) rotate([90,0,90]) linear_extrude(16) polygon([[0,0],[3,0]...
glb/cad_7dc376aa0c43.glb
Create an OctoLapse camera holder consisting of a hollow cylindrical housing with a square base. The main body is a cylinder with a top diameter of 52mm and a height of 21mm (composed of a 5mm base and a 16mm upper section). The walls are 1.6mm thick. The center of the housing is hollowed out with an inner diameter of...
four_mm=true; top_diameter=52; inner_diameter=four_mm?31:30; wall=1.6; base=36+wall; h1=5; h2=four_mm?16:17; module c(w) { h=2; d=wall/3; rotate([0,-90,-90]) linear_extrude(5) polygon([[0,0],[w-h,d],[w-h,0],[w,0],[w,d+1],[0,d+1]]); } rotate([180,0,0]) { translate([0,0,h1]) difference() { $...
glb/cad_223562159e17.glb
Create a small mounting pin for a NeoPixel ring. Start by creating a low-resolution cylinder with 12 facets that is 1.6mm high and 4mm in diameter. On top of this base, add a second cylinder that is 5mm high, tapering from a bottom diameter of 2.2mm to a top diameter of 2.0mm. Finally, cap the structure with a third cy...
$fn=12; cylinder(h=1.6,d=4); cylinder(h=5,d1=2.0,d2=2.2); translate([0,0,5]) cylinder(h=1,d2=1.6,d1=2.2);
glb/cad_7c6bcac7a26a.glb