Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create two identical circular components for a fidget spinner. For each component, start with a base disk that has a height of 2mm and a top radius of 10mm, with the bottom radius tapering slightly to 8mm. Centered on this disk, add a vertical cylinder with a height of 9mm and a radius of 5mm. For the first component...
module top(name,r){ Clr=.1; Rt=4; difference(){ union(){ cylinder($fn=36, r1=r-2, r2=r, h=2); difference(){ union(){ cylinder($fn=36,r=Rt+1,h=2.5); cylinder($fn=36,r=Rt,h=9); } cylinder($fn=36,r=Rt-1,h=9); } } translate([0,0,1/2]) rotate([180,0,0]) myLabel(name, 4,1); }} ...
glb/cad_7d5673a92d06.glb
Create a HyperCube Leg Extension for a 20mm aluminum extrusion. Start by creating a base plate that is 20mm wide, 20mm long, and 5mm thick, with 2mm radius rounded corners. In the center of this plate, create a vertical hole with a 5.5mm diameter that passes through the entire height of the model. Extend a leg upward ...
$fn=36; include <handyscad/handyscad.scad> curv = 2; thic = 5; leng = 40; extr = 20; hole = 5.5; high = 55; nutod = 8; nutth = 3.5; nutfudge = 0.05; module platebase() { translate([curv,curv,0]) { union() { hull() { cylinder(h=thic, d=curv * 2); translate([l...
glb/cad_e7fbbda35087.glb
Create a replacement laptop foot by combining three geometric elements. First, construct a truncated cone with a height of 3mm, a bottom radius of 7.5mm, and a top radius of 8.5mm. Remove a cylindrical core from the center of this cone, starting 2mm from the base, with a radius of 5mm and a height of 3mm. Next, add a s...
union () { difference () { cylinder (h=3, r1=7.5, r2=8.5); translate([0,0,2]) {cylinder (h=3, r=5);} } cylinder (h=5, r=3.4); translate ([6.5,0,0]) cylinder (h=4.5, r = 1 ); }
glb/cad_35fca1fe3af9.glb
Create a balance weight for a fidget spinner by constructing a simple solid cylinder. The cylinder must have a diameter of 8mm and a height of 7mm. Ensure the geometry is rendered with a low facet resolution, specifically using 5-degree angular increments for the circular cross-section.
bearing_id = 8; bearing_height = 7; $fa = 5; $fs = 0.5; cylinder(h=bearing_height, d=bearing_id);
glb/cad_6c299b378368.glb
Create a modular training lock set holder. Start by constructing a solid rectangular enclosure with a width of 125mm, a height of 35.1mm, and a depth of 36mm. Within this block, create six identical cylindrical voids to hold lock cylinders. Each void should have a radius of 8.5mm and a depth of 36mm. Position these c...
lock_radius = 8.5; lock_depth = 36; lock_count = 6; lock_stop_width = 5.05; lock_stop_height = 10.1; lock_stop_depth = lock_depth - 6; box_margin_top = 12.5; box_margin_bottom = 5; box_margin_left = 5; box_margin_right = 5; box_rear_padding = -.1; box_margin_between_locks = 3; show_numbers = true; number_...
glb/cad_3dc66f24cefa.glb
Create a 90-degree VESA bracket consisting of a flat base plate and a vertical triangular support. Start by creating a square base plate measuring 120mm by 120mm with a thickness of 10mm. In this plate, place four 5mm diameter holes arranged in a 100mm by 100mm square pattern, centered within the plate. To reduce weigh...
module vesaplate () { module triangle () { module prism(l, w, h) { translate([0, l, 0]) rotate( a= [90, 0, 0]) linear_extrude(height = l) polygon(points = [ [0, 0], [w, 0], [0, h] ], paths=[[0,1,2,0]]); } module triangleholes ...
glb/cad_0d5021416b5f.glb
Create a 90-degree VESA bracket adapter consisting of two identical interlocking parts. Start by creating a square plate 120mm on each side with a thickness of 5mm. In this plate, place four bolt holes with a radius of 2.5mm, positioned at the corners of a 100mm by 100mm square centered within the plate. To reduce we...
fit_preview = false; plate_thickness = 5; plate_side = 120; vesa_bolt = 2.5; bracket_bolt = 3; num_fingers = 6; finger_clearance = 0.2; module vesaplate () { module triangle () { module prism(l, w, h) { translate([0, l, 0]) rotate( a= [90, 0, 0]) linear_extrude(height = l) polygon(points =...
glb/cad_8ec7cc889420.glb
Create an ABS security lock key consisting of a main rectangular body and a series of five specialized protrusions. The main body is a rectangular slab 2.4mm wide, 32mm long, and 9mm high. Along the length of the body, create five evenly spaced protrusions. Each protrusion is formed by a cylinder that transitions fro...
d1=0; a1=0; d2=0; a2=0; d3=0; a3=0; d4=0; a4=0; d5=0; a5=0; m=0.2; d=[d1,d2,d3,d4,d5]; a=[a1,a2,a3,a4,a5]; w=2.4-m; h=9-m; l=32; r2=0.2; i1=0.4; i2=0.4; $fn=100; module key() { intersection() { translate([-w,0,0.25])cube([w*3,l,4.5]); for(q=[0:4])translate([w-d[q]*i2-r2,l-25+(19/4)*q,2.5]) { r...
glb/cad_8e54bdce1e93.glb
Create a Customizable Mold Form consisting of a pattern base, a pouring sprue, and two matching frame halves. First, create a rectangular pattern base 75mm wide, 75mm high, and 2mm thick. Centered on this base, add a pouring sprue consisting of a conical funnel section that transitions from a 20mm diameter opening do...
part = "all"; width = 75; height = 75; thickness = 20; wall = 5; base = 2; funnel = 20; angle = 60; sprue_length = 20; neck_thickness = 3; mold_labels = 1; frame_labels = 1; use<write/Write.scad> $fn = 36; render() { if ( part == "all" ) { translate ( [-10,-10,0] ) left ( width, height, thickness+ba...
glb/cad_edeb9461f952.glb
Create a TM-D710 mount by starting with a solid cylinder 29mm tall with a diameter of 12mm. Attach a cube to this cylinder that is 12mm wide, 12mm deep, and 29mm tall, centered on the cylinder's axis and shifted 6mm along the Y-axis. From this combined volume, remove a central vertical hole 4mm in diameter that runs th...
$fn=50; difference() { union() { cylinder( 29, d1=12, d2=12, true ); translate([ 0,6, 14.5] ) cube([ 12, 12, 29 ], true ); } union() { cylinder( 29, d1=4, d2=4, true ); translate([0, 20 , 16.125] ) rotate([90,0,0]) cylinder( 20, d1=5, d2=5, true ); cylinder( 3, d1=9,...
glb/cad_106b02ac097c.glb
Create a "Cubes that Snap Together" model consisting of two identical interlocking tiles. Each tile is based on a square plate with a side length of 48mm (40mm core plus 4mm borders on each side) and a thickness of 4mm. For each tile, create a central square cutout of 40mm. Within the remaining border, integrate a se...
platesize = 40; roundradius = 5; platedepth = 4; clearance = 1.15; fradius = 0.5*8.79 + clearance; mradius = 0.5*7.83 + clearance; delta = 2.75; protrude = 3.29; fdepth = delta; mdepth = protrude-delta; wirepassinset = 1.0; wirebridge = 0.8; snappositionoffest = 9.5; snaptheta = 45*0.5; socketouter = 9...
glb/cad_037c95dd1628.glb
Create a Seahorse Feeder consisting of a central hollow tube and a circular base with several hitching posts. Start by creating a central cylinder with an outer radius of 12.25mm and an inner radius of 10mm, extending to a height of 75mm. The bottom of this tube should be closed by a solid circular base with a radius o...
post = 3.5*25.4/2-4; union() { translate([0,0,1.5]) difference() { difference() { cylinder(r=12.25, h=75); cylinder(r=10, h=75); } rotate([0,90,0]) scale([1, 1/3, 1]) cylinder(r=18, h=50, center=true); rotate([90,90,0]) scale([1, 1/3, 1]) cylinder(r=18, h=50, center=true); } cylinder(r=3.5*25.4/2, h=1...
glb/cad_3364d285699e.glb
Create a hole2hole connector designed as a thick, rounded disc with a total length of 15mm. The main body is a cylinder with a diameter of approximately 31.86mm and a height of 15mm. The top and bottom faces are slightly tapered, narrowing from the center diameter to 90% of that value at the extreme ends. Carve three ...
$fn = 100; width = 19.80; higth = 10.00; diameter = 9.45; length = 15.00; thickness = 4; clearence = 0.2; double_clearence = clearence*2; outer_diameter = (width + thickness*2)*1.3; hole_length = outer_diameter - thickness*2; screw_shift = 1.89; screw_diameter = 3.8+clearence; screw_diameter_head = 8; screw_width_h...
glb/cad_bfd4c3c10174.glb
Create a zip tie y-bearing holder for a wire chain. Start with a main vertical block that is 12mm wide, 15mm deep, and 20mm tall. This block features a central vertical cutout 6mm wide and 6mm deep that runs the full height of the part. At the top of this block, add a semi-cylindrical cap with a radius of 6mm. Attache...
FN=80*1; M6=6.2; M3=3.4; mount = 20; width = 12; thickness = 3; mirror([0,1,0]){ difference(){ union(){ cylinder(h=mount, r=(M6/2 + thickness), $fn=FN); translate([-M6/2-thickness,0,0]){ cube([M6+thickness*2,15,mount]); } } translate([-M6/2,0,-1]){ cube([M6,16,mount*2]); } translate([0,0,-...
glb/cad_c5a202f0b6fa.glb
Create a Guitar Hero wall mount consisting of four identical holder units arranged in a mirrored, symmetrical layout. Each individual holder unit is built from a main rectangular block and a mounting plate. Start with a rectangular block measuring 20mm in width, 20mm in height, and 10mm in thickness. From this block, r...
plateThickness = 3; knobD1 = 13; knobD2 = 15; knobLength = 5.1; knobWidth = 20; knobThickness = 10; module knopHolder(distanceToWall) { difference() { translate([-distanceToWall+knobWidth/2, 0, 0]) cube([distanceToWall + knobWidth/2, knobWidth, knobThickness]); hull() { tran...
glb/cad_d261308dcada.glb
Create a garden light base by constructing a wide, flat circular disc with a diameter of 37mm and a height of 3mm. In the center of this disc, add a concentric vertical cylinder with an outer diameter of 16mm and a height of 8mm. This central cylinder should be positioned so that it extends above the disc and penetrate...
$fn=100; difference(){ cylinder(d=16,h=8,center=true); cylinder(d=12.5,h=10,center=true); } translate([0,0,-5]) difference(){ cylinder(d=37,h=3,center=true); translate([0,0,-1.5]) cylinder(d=26,h=2,center=true); cylinder(d=10,h=10,center=true); }
glb/cad_a3a456f193b4.glb
Create a garden light base by constructing a wide, flat circular disk with a diameter of 41mm and a height of 3mm. In the center of this disk, add a smaller concentric cylinder with a diameter of 16mm and a height of 8mm that extends upwards. Finally, bore a hole through the center of the entire assembly, consisting of...
$fn=100; difference(){ cylinder(d=16,h=8,center=true); cylinder(d=12.5,h=10,center=true); } translate([0,0,-5]) difference(){ cylinder(d=41,h=3,center=true); translate([0,0,-1.5]) cylinder(d=26,h=2,center=true); cylinder(d=10,h=10,center=true); }
glb/cad_aed234615a22.glb
Create a camera cover for a OnePlus 2 phone. The main body is a rectangular plate measuring 10mm wide by 27mm long with a thickness of 1.6mm. The top and bottom edges are rounded with a radius of 0.5mm. Cut a rounded rectangular hole through the top of the plate measuring 8mm wide by 13.5mm long. In the center of the...
w = 10; l = 27; il = 26; t = 1.5; it = 1; a = (l - il) / 2; r = w*w/(a*8) + a/2; pl = 0.2; th = 8*pl; ih = 5*pl; lh = 4*pl; $fn = 100; module arc() { translate([0, -il/2+r-a]) difference() { circle(r=r); translate([-50, -r+a]) square(100); } } module outshape() { translate([0, il/2]) union() { ...
glb/cad_bf4565d901d1.glb
Create a domed Seal of High Council of Gallifrey. Start by creating a circular base with a radius of 20mm and a thickness of 1mm. On top of this base, add a spherical dome with a total height of 3mm (including the base thickness) and a diameter of 40mm. Using the dome as a boundary, extrude a complex, stylized geom...
$fn = 50; sealR = 20; backH = 1; domeH = 3; sealH = domeH * 4; module back() { cylinder(r=sealR, h=backH); } module seal() { linear_extrude(height=sealH) resize([sealR*2, sealR*2]) polygon(points=[[-3.634094,143.318],[9.365906,143.218],[24.36591,141.618],[31.36591,140.018],[44.36591,136.518],[56.36591,132.618],[...
glb/cad_22324db03b56.glb
Create a Seal of High Council of Gallifrey necklace. Start by creating a circular base with a radius of 20mm and a thickness of 1mm. On top of this base, add a domed cap. The dome is formed by the intersection of the circular base and a sphere with a diameter of 40mm, resulting in a dome height of 3mm. Extrude a co...
$fn = 50; sealR = 20; backH = 1; domeH = 3; domeRise = 1; sealH = (domeH + domeRise) * 4; chainhookInnerR = 3; chainhookOuterR = 5; chainHookAngle = 0; isNecklace = true; module back() { cylinder(r=sealR, h=backH); } module seal(h) { linear_extrude(height=h) resize([sealR*2, sealR*2]) polygon(points=[[-3.63409...
glb/cad_693a42cad080.glb
Create a Garmin Edge 810 bike support mount consisting of a handlebar clamp and an angled support platform. First, create a cylindrical ring clamp designed to fit a tube with a diameter of 35.2mm. The ring should have a thickness of 3mm and include two integrated screw-hole housings positioned opposite each other to ...
$fn=100; d_tube= 35.2; t_fix = 3; nut = [2.4, 5.5]; screw_head = [2, 6.5]; h=10; m3 = 3; d_support = 34.2; h_support = 5; d_hole = 7.4; hole_spacing = 12.8; h_hole = 3.6; t_support= 2; t_support_bottom = 1.2; h_support_total = h_support + h_hole + t_support_bottom; d_support_out = d_support + t_support * 2; f_angle ...
glb/cad_a3a494f151b3.glb
Create a bike support mount for a Garmin Edge 810. Start by creating a central ring designed to fit a handlebar with a diameter of 35.2mm. This ring should have a wall thickness of 3mm and a total height of 10mm. Integrate two screw holes through the ring's walls to accommodate M3 screws, including recessed areas for t...
$fn=100; d_tube= 35.2; t_fix = 3; nut = [2.4, 6.8]; screw_head = [2, 6.5]; h=10; m3 = 3; d_support = 34.2; h_support = 5; d_hole = 7.4; hole_spacing = 12.8; h_hole = 3.6; t_support= 2; t_support_bottom = 1.2; h_support_total = h_support + h_hole + t_support_bottom; d_support_out = d_support + t_support * 2; f_angle ...
glb/cad_e9592801a1b4.glb
Create a Hanging Extruder Stepper Mount consisting of a flat square base and a perpendicular mounting bracket. Start with a square plate measuring 42.3mm by 42.3mm with a thickness of 2.5mm. In the center of this plate, create a circular cutout with a diameter of 22.39mm that passes completely through the thickness. ...
tolerance = 0.39; nema_hole = 3+tolerance; nema_distance = 31.6; base_size = 42.3; thickness = 2.5; hole_offset = ((base_size - nema_distance) * 0.5); shaft_id = 22+tolerance; mount_hole = 3+tolerance; mount_offset = 1.5; mount_width = mount_offset + mount_hole + mount_offset + 3; mount_height = mount_offset + mount_h...
glb/cad_e4dd39f4ca63.glb
Create a Hanging Extruder Stepper Mount consisting of a U-shaped bracket with a base and two vertical walls. Start with a rectangular base measuring 12.5mm wide, 42.3mm deep, and 2.5mm thick. Attach two vertical walls to the sides of this base, each 2.5mm thick, 42.3mm deep, and 18mm high, leaving the center slot 7.6mm...
tolerance = 0.39; base_depth = 42.3; slot_width = 7.6; thickness = 2.5; base_width = (thickness + slot_width + thickness); base_height = 18; mount_hole = 3+tolerance; mount_offset = 1.5; mount_width = mount_offset + mount_hole + mount_offset + 3; mount_height = mount_offset + mount_hole + mount_offset; mount_inner = ...
glb/cad_e357a94b5fcb.glb
Create a hose adapter consisting of two connected cylindrical sections with a wall thickness of 2mm. The base section is a cylinder with an outer diameter of 43mm and a height of 25mm. Above this, create a conical transition segment that extends from the base's outer diameter up to a top cylinder. The top section is a ...
wallThickness = 2; insideVacuum = 45; vacuumLength = 25; insideTool = 39; bandsawLength=25; outsideBandsaw = insideTool+(2*wallThickness); $fn=45; rotate([0,180,0]) difference() { union() { translate([0,0,bandsawLength+(vacuumLength+bandsawLength)/3]) cylinder(r=(insideVacuum/2)+wallThickness, h=vacuumL...
glb/cad_6997016df6b6.glb
Create a Faemea Compact Water Knob. Start with a circular base that is 26mm in diameter and 5mm high, formed by the intersection of a cylinder and a sphere with a 40mm radius. On top of this base, add a rectangular grip that is 12.5mm wide, 16mm high, and has a length of 37.5mm (the base diameter plus 11.5mm). The gr...
basedia=26; baseheight=5; basesphere=40; gripwidth=12.5; gripheight=16; griplength=basedia+(5.75 *2); gripcut=100; roundr=1; padding=0.1; smooth=25; module base() { intersection() { translate([0,0,-(basesphere-baseheight)]) sphere(basesphere); cylinder(baseheight, basedia/2, basedia/2, $fn=50); } } module g...
glb/cad_e3531ea87442.glb
Create a fidget spinner base by placing three identical cylinders, each with a height of 7mm and a radius of 15mm. Position one cylinder at the center (0,0,0), one at x=25mm, and one at x=-25mm. From the center of the middle cylinder, remove a vertical hole with a radius of 10.95mm and a height of 8mm to accommodate a ...
difference() {union(){cylinder(h = 7, r1 = 15, r2= 15, center = false);translate([25,0,0]) { cylinder(h = 7, r1 = 15, r2= 15, center = false); } translate([-25,0,0]) { cylinder(h = 7, r1 = 15, r2= 15, center = false); }}cylinder(h=8, r1=10.95, r2=10.95, center=false);}
glb/cad_177c1499327b.glb
Create a Magnetic Model to Describe a System by starting with a central rectangular block that measures 20mm in width, 35mm in depth, and 15.8mm in height. Center this block on the origin. From this main volume, remove a square prism that is 14.14mm wide and 14.14mm deep, rotated 45 degrees on the Z-axis and positioned...
magdepth = 5.08; module Magnet() cube([5.2, 5.2, 5.2], center=true); rectx = 30; recty = rectx; rectz = 20; rect_radius = 5; blockz = 15.8; blocky = 30; blockx = 20; difference() { cube([blockx, blocky+5, blockz], center=true); translate([0,2.5,blockz/2 -1 ]) { import(file="chevron.stl"); } tr...
glb/cad_5bbaac655271.glb
Create a Magnetic Model to Describe a System by starting with a rounded rectangular block measuring 30mm in width, 30mm in depth, and 20mm in height, with corner radii of 5mm. From this main body, remove a thin slice from the top face and create three precise square cutouts to house magnets. Position one cutout on the ...
magdepth = 5.08; module Magnet() cube([5.2, 5.2, 5.2], center=true); rectx = 30; recty = rectx; rectz = 20; rect_radius = 5; blockz = 15.8; blockx = 20; difference() { roundedRect([rectx, recty, rectz], rect_radius, $fn=20); translate([0,0,rectz-.5]) { import(file= "top2.stl") ; } for(r...
glb/cad_fa2ae0670f58.glb
Create a Magnetic Model to Describe a System by constructing a composite geometric block. Start by forming a central rectangular prism that is 20mm wide, 25mm deep, and 15.8mm high. To this, add a second prism of the same height and width, but rotate it 45 degrees around the Z-axis and position it so it overlaps the fi...
magdepth = 5.08; module Magnet() cube([5.2, 5.2, 5.2], center=true); rectx = 30; recty = rectx; rectz = 20; rect_radius = 5; blockz = 15.8; blocky = 30; blockx = 20; difference() { union(){ translate([0,-blocky/2+2.5,0]) { rotate([0,0,45]) { cube([sqrt(pow(blockx,2)/2), sqrt(pow...
glb/cad_ddace44137e7.glb
Create a Magnetic Model to Describe a System by extruding a specific polygonal profile to a height of 2mm. The base shape is a flat polygon defined by the following vertices in the XY plane: (5.65686, 2.12133), (4.242649, 3.53554), (0.000001, -0.70711), (-4.242639, 3.53553), (-5.65686, 2.12131), (-0.000008, -3.53554), ...
profile_scale = 1; function min_x(shape_points) = min([ for (x = shape_points) min(x[0])]); function max_x(shape_points) = max([ for (x = shape_points) max(x[0])]); function min_y(shape_points) = min([ for (x = shape_points) min(x[1])]); function max_y(shape_points) = max([ for (x = shape_points) max(x[1])]); height ...
glb/cad_35cb8d51f466.glb
Create a rectangular block for a Magnetic Model to Describe a System with overall dimensions of 20mm in width, 60mm in length, and 15.8mm in height. Center the block on the origin. Remove a chevron-shaped cutout from the top face of the block, positioned at the center and offset 1mm down from the top surface. Repeat th...
magdepth = 5.08; module Magnet() cube([5.2, 5.2, 5.2], center=true); rectx = 30; recty = rectx; rectz = 20; rect_radius = 5; blockz = 15.8; blocky = 30; blockx = 20; difference() { cube([blockx, blocky*2, blockz], center=true); translate([0,0,blockz/2 -1 ]) { import(file="chevron.stl"); } trans...
glb/cad_abbe60c77955.glb
Create a spool bush for a filament spool by constructing two concentric hollow cylinders sharing the same central axis. First, create a wide, short base cylinder with an outer diameter of 80mm, an inner hole diameter of 22mm, and a height of 5mm. Centered on top of this base, add a second, taller hollow cylinder with a...
echo(version=version()); spool_dia = 58; hollow_cyl(spool_dia-1, 22, 37.5); hollow_cyl(80, 22, 5); module hollow_cyl(od, id, len) { difference(){ cylinder(h = len, r=od/2, center = false); cylinder(h = len, r=id/2, center = false); } }
glb/cad_08fbd02c7cbe.glb
Create a shower curtain hook consisting of two connected circular rings of a uniform thickness of 6.35mm. First, construct a large outer ring with an outer diameter of 44.45mm and an inner diameter of 38.1mm, centered at coordinates (0, 41.275, 0). This ring should be a C-shape, with a square section removed to create ...
module ring1(irad, orad, thic) { difference() { cylinder(h=thic, r=orad, center=true); cylinder(h=thic, r=irad, center=true); } }; module ringhook1(irad, orad, thic) { union() { translate(v=[-(irad + orad) / 2, 0, 0]) { cylinder(h=thic, r=(orad - irad) / 2, center=true); } difference() { ring...
glb/cad_18bcc8bd2466.glb
Create a mounting bracket for a DW660 router with an overall footprint of 80mm width, 110mm depth, and 16mm thickness. The main body is a rectangular block with rounded edges. Cut a central opening through the thickness of the block to accommodate the router. This opening is a squared-cylinder shape with a maximum dia...
msmooth=3; bwidth=80-2*msmooth; bdepth=110-2*msmooth; bthick=16; max_diam=67+2*msmooth; min_diam=max_diam-3; bplate_thickness=16-2*msmooth; hole_spacing=20; notch=hole_spacing+20; hole_radius=2.7; slot_width=10+2*msmooth; clamp_screw_plate_thickness=10-2*msmooth; xcs=(bwidth-slot_width)/2-clamp_screw_plate_thickne...
glb/cad_0ee2c79135ce.glb
Create a "Chunky" ring by arranging 26 low-resolution spheres around a central circular path. The ring's main radius is 2mm. Position each sphere at 360/25 degree intervals along this path. For every sphere, assign a random rotation on all three axes and a random radius between 0.45mm and 0.9375mm (0.6 to 1.25 times th...
gRadius=2; gHeight=1; gThickness=0.75; gSegments=25; gQuality=500; function rand1(lower, upper) = rands(lower, upper, 1)[0]; module ring(radius, height, thickness, segments) { function sphereRotation(sphereI) = 360*sphereI/segments; difference() { for(sphereI = [0 : segments]) { rotate([0,0,sphereRotati...
glb/cad_1ced43365497.glb
Create a CoreXY Chimera and Cyclops X carriage. Start with a central rectangular base plate 5mm thick. Position two large cylindrical bearing clamps on opposite sides, spaced 50mm apart center-to-center. Each clamp is designed to hold a linear bearing; for LM8UU bearings, use an outer diameter of 15.5mm and a length of...
xAxisBarSpacing = 50; bearingType = "LM8UU"; beltClampHeight = 18; additionalBeltClampHeight = 0; chimeraBowdenSpacing = 18; bearingDia = (bearingType == "LM8UU") ? 15.5 : 19.5; bearingLength = (bearingType == "LM8UU") ? 24 : 29; bearingInnerClampDiameter = (bearingType == "LM8UU") ? 10 : 12; bearingClipStep = ...
glb/cad_562d7bc46af6.glb
Create a rectangular spacer for a 3DTouch sensor mount. The main body is a rectangular block with a total length of 30mm, a width of 16mm, and a thickness of 4mm. Center two vertical cylindrical holes through the block along its length. Each hole must have a diameter of 4.3mm. The holes should be positioned so that t...
spacerThickness = 4; touchMountBoltSpacing = 18; touchMountLength = touchMountBoltSpacing + 12; touchMountWidth = 16; touchMountThickness = 4; spacer(); module spacer() { translate([0,0,spacerThickness / 2]) cube([touchMountThickness, touchMountLength, spacerThickness], center = true); difference() { ...
glb/cad_594ff9efa730.glb
Create a Wrap It Up Box by starting with a rectangular base measuring 130mm by 75mm with a height of 1mm. On top of this base, center a smaller rectangular block measuring 125mm by 70mm with a height of 3mm, leaving a 2.5mm border on all sides. Add four small cylindrical pillars, each with a radius of 4mm and a height ...
difference(){ union(){ cube([130,75,1]); translate([2.5,2.5,0])cube([125,70,3]); translate([12,24.5,0])cylinder(r=4, h=7, $fn=100); translate([118,24.5,0])cylinder(r=4, h=7, $fn=100); translate([12,50.5,0])cylinder(r=4, h=7, $fn=100); translate([118,50.5,0])cylinder...
glb/cad_77eaf5087c83.glb
Create a Wrap It Up Box by starting with a solid rectangular base measuring 130mm in length, 75mm in width, and 35mm in height. Hollow out the center of this base by removing a rectangular volume of 126mm by 71mm by 35mm, offset from the edges by 2mm on the length and width sides and 2mm from the bottom. On the top s...
union(){ difference(){ union(){ cube([130,75,35]); } union(){ translate([2,2,2])cube([126,71,35]); translate([32.5,37.5,-1])cylinder(r=51/2, h=20, $fn=100); translate([67.5,7.5,-1])cube([55,60,10]); translate([65,10,18])rota...
glb/cad_f77df8148e9f.glb
Create a Wrap It Up Box by constructing a tiered rectangular base. Start with a bottom plate measuring 66mm by 72.5mm with a height of 1mm, positioned at coordinates (2.5, 2.5, 0). Centered atop this, add a second rectangular block measuring 54mm by 59mm with a height of 3mm, positioned at (8, 8, 0). On the top surfa...
include <write/Write.scad> Font = "write/orbitron.dxf"; difference(){ union(){ translate([2.5,2.5,0])cube([61,70,1]); translate([8,8,0])cube([54,59,3]); translate([49,25,0])rotate([0,0,180])write("WRAP",t=5, h=10, font = Font); translate([43,42,0])rotate([0,0,180])write("IT",t=5, h...
glb/cad_249cdc952acd.glb
Create a heat block for a 3D printer by constructing a rectangular prism with dimensions of 20mm in width, 20mm in depth, and 10mm in height. Center the geometry on the origin of the coordinate system.
module heat_block() { cube([20,20,10],center=true); } heat_block();
glb/cad_2b3faaa811b0.glb
Create a 3D model of a blower mount component. The object is a thin, extruded plate with a thickness of 15mm. The face of the plate is defined by a complex, irregular polygon. Start with a central rounded body that is roughly circular but flattened on one side. On the left side, extend a rectangular block that merges...
module blower(){ translate([25,-25,7.5])translate([7.5, -7,0])rotate([0,180,0])linear_extrude(15)scale(.25)polygon(points = [[30,133],[30,134],[30,135],[30,136],[30,137],[30,138],[30,139],[30,140],[30,141],[30,142],[30,143],[30,144],[30,145],[31,146],[31,147],[31,148],[31,149],[31,150],[31,151],[32,152],[32,153],[3...
glb/cad_0832f5489c57.glb
Create a Tevo Tarantula Dual Blower fan mount. Start with a square block measuring 30mm by 30mm with a height of 10mm. Center a large cylindrical hole through the entire height of the block with a radius of 14.2mm. At each of the four corners of the block, create a smaller circular cutout. Each corner cutout is forme...
module fan_30mm_quarter(){ difference(){ translate([7.5, 7.5, 5]){ cube([15, 15, 10], center=true); } cylinder(r = 14.2, h = 100, $fn=180, center=true); translate([12,12]){ difference(){ translate([1.5, 1.5, 0]){ cube([3.05,...
glb/cad_9e6ab2db1cc9.glb
Create a heatsink model consisting of a central rectangular block with protruding fins. Start by creating a central rectangular base block that is 11mm deep, 30mm wide, and 30mm high. Along one side of this block, add 8 identical rectangular fins. Each fin must be 18mm deep, 30mm wide, and approximately 4.28mm high. Po...
number_of_fins = 8; number_of_gaps = 7; block_height = 30; fin_depth = 6; block_and_fin_depth = 18; block_depth = block_and_fin_depth - fin_depth; block_width = 30; fin_and_space_pair_height = 2 * block_height / (number_of_fins + number_of_gaps); distance_between_fins = fin_and_space_pair_height / 2; fin_height = dis...
glb/cad_b458735b6338.glb
Create a proximity sensor mount by combining three rectangular prisms into a single solid. First, center a cube measuring 18mm wide, 18mm deep, and 17mm high. Directly above this, center a second cube that is 14mm wide, 18mm deep, and 14mm high, positioned so its bottom face sits 7mm above the center of the first cube....
module p() { union() { translate([14/2,0,7 + 36-14])cube([14,18,14], center=true); translate([18/2,0,17/2])cube([18,18,17],center=true); color("red", 0.5)hull(){ translate([0.5,0,16.5])cube([1,18,1],center=true); translate([0.5,0,16.5 + 5])cube([1,18,1],center=true); ...
glb/cad_c2705927adc0.glb
Create a Tevo Tarantula Dual Blower cooling assembly. Start by constructing a central hot-end core consisting of a heatsink, a 30mm fan rotated 90 degrees on the X-axis and positioned at [-19.15, 0, 15], a proximity sensor at [0, -15, -17] rotated -90 degrees on the Z-axis, a block connector at [3, 0, -2.75], a heat bl...
include <handyscad.scad> use <heatsink.scad> use <fan_30mm.scad> use <prox_sensor.scad> use <block_connector.scad> use <heat_block.scad> use <nozzle.scad> use <blower.scad> module hot_end(){ union(){ color([.9,.9,.9,1])heatsink(); translate([-19.15,0,15])rotate([90,0,90])color([.3,.3,.3,1])fan_30mm(); t...
glb/cad_e08d738fd6f6.glb
Create a circular spacer by constructing a hollow cylinder with a height of 2mm. The outer boundary should be a cylinder with a radius of 10mm. Remove a concentric inner cylinder with a radius of 7mm to create a ring shape. Ensure the geometry is defined with a resolution of 100 fragments to maintain a smooth circular ...
outer_radius = 10; inner_radius = 7; height = 2; fn = 100; module spacer(height, outer, inner, fn=100) { fudge = 1/cos(180/fn); difference() { cylinder(height, outer, outer, $fn=fn); translate([0, 0, -0.1]) cylinder(height + 0.2, inner * fudge, inner * fudge, $fn=fn); } } spacer...
glb/cad_fad1ad029d16.glb
Create a Zen garden rake consisting of a long handle and a wide toothed head. Start by creating a rectangular handle that is 150mm long, 4mm wide, and 4mm high. At the front end of the handle, attach a perpendicular rectangular crossbar that is 80mm wide, 4mm thick, and 4mm high, centered on the handle's axis. To form ...
stil=150; steg=80; fork=7.5; w=4; translate([w/2,-w/2,0]) cube([stil,w,w]); translate([-w/2,-steg/2,0]) cube([w,steg,w]); for(i=[-steg/2:w:steg/2-w]) { translate([0,i+w/2,w]) cylinder(fork,d1=w,d2=0); } difference() { cylinder(w,d=steg); cylinder(2*w,d=steg-2*w); translate([-steg,-steg,0]) cube([steg,2*ste...
glb/cad_2358946654ae.glb
Create an Irrigation Hose Clip consisting of two connected concentric C-shaped rings of a uniform height of 6.35mm and a wall thickness of 3.175mm. The first ring is a large outer arc with an inner radius of 6.35mm and an outer radius of 9.525mm; remove a rectangular section from one side to create an opening, leaving ...
r_small_end = 5/16 * 25.4/2; r_large_end = 1/2 * 25.4/2; clip_thickness = 1/8 * 25.4; min_angle = 0.1; clip_width = 1/4 * 25.4; large_outer = r_large_end + clip_thickness; small_outer = r_small_end + clip_thickness; large_neg_space = [large_outer*1.25, large_outer, clip_width]; small_neg_space = [small_outer*1.25, sma...
glb/cad_b195e29bd509.glb
Create a tablet mount fitting consisting of a base plate and a retaining clip. Start with a flat, circular base 38mm in diameter and 1mm thick. Center a 10mm diameter hole through this base. From the top of this base, extend a vertical cylindrical wall 7mm high with an outer diameter of 28mm and an inner diameter of 26...
$fn=100; difference() { cylinder(h=2,d=14); cylinder(h=2,d=5); } difference() { cylinder(h=10,d=14); cylinder(h=10,d=10); translate([0,-10,0]) cube([10,20,10]); } translate([0,0,10]) difference() { hull() { translate([-25,11,0]) cylinder(h=1,d=38); translate([0,-1.25,0]) cylinder(h=1,d=11.75); transl...
glb/cad_ffb35fd8f776.glb
Create a tablet mount featuring a central base and decorative text. Start by creating a base shape using a hull operation that connects two cylinders, each 15mm in diameter and 8mm high, positioned 30mm apart from center to center along the x-axis. From this base, remove a rectangular block measuring 60mm wide, 20mm de...
$fn=100; translate([-17,-5,8]) linear_extrude(height=2) { text("Truck'n",font="Edwardian script ITC"); } difference() { hull() { translate([-15,0,0]) cylinder(h=8,d=15); translate([15,0,0]) cylinder(h=8,d=15); } translate([-30,-20,2]) #cube([60,20,5]); } translate([0,0,-5]) cylinder(h=5,d=10); translate([0,0...
glb/cad_efd487048e6d.glb
Create a Scrabble letter holder designed to hold 6 to 7 standard tiles. The main body is a linear tray with a total length of 152.4mm (6 inches) and a depth of 21.1mm (0.825 inches). The tray features a central recessed slot for the tiles, which is 4.5mm (0.179 inches) wide and 3.9mm (0.155 inches) high. This slot is...
mm_inch = 25.4; letter_height = .803 * mm_inch; letter_width = .720 * mm_inch; letter_thick = .179 * mm_inch; holder_length = 6 * mm_inch; holder_depth = 0.825 * mm_inch; lip_dia = 0.125 * mm_inch; lip_rad = lip_dia/2; slot_space = 0.025 * mm_inch; slot_thick = slot_space + letter_thick; slot_angle = 30; slot_heig...
glb/cad_b0d12bf6f953.glb
Create a curved letter holder for board game tiles. The main body is a curved tray with a length of 152.4mm (6 inches) and a depth of 21.17mm (0.825 inches). The tray features a recessed slot designed to hold tiles that are 20.4mm high, 18.29mm wide, and 4.54mm thick. The slot is angled at 30 degrees relative to the ...
mm_inch = 25.4; letter_height = .803 * mm_inch; letter_width = .720 * mm_inch; letter_thick = .179 * mm_inch; holder_length = 6 * mm_inch; holder_depth = 0.825 * mm_inch; lip_dia = 0.125 * mm_inch; lip_rad = lip_dia/2; slot_space = 0.025 * mm_inch; slot_thick = slot_space + letter_thick; slot_angle = 30; slot_heig...
glb/cad_922b4ab9547f.glb
Create a Mendelmax Power and USB Panel by starting with a rectangular base measuring 110mm wide, 69mm high, and 3.8mm deep, featuring rounded corners with a 10mm radius. Cut several rectangular openings through the panel for components: a central plug cutout measuring 28.5mm wide by 20mm high, a USB port cutout measu...
use <boxes.scad> plug_holes_distance = 40; plug_holes_diameter = 3; plug_height = 20.0; plug_width = 28.5; switch_height = 17.33; switch_width = 12.97; usb_height =11.2 ; usb_width = 12.4; usb_holes_distance = 25.5; usb_holes_diameter = 3; pannel_width = 110; pannel_height = 69; pannel_depth = 3.8; m5_diameter = 5; ...
glb/cad_6777c3b06af8.glb
Create a PLA pin kit consisting of a pinhole and a pinpeg. First, create the pinhole. Construct a central cylinder with a radius of 4.2mm and a height of 16.4mm. At both ends of this cylinder, add a hull-shaped cap that transitions from a radius of 4.2mm at the base to 5.2mm at a height of 0.75mm, then tapers to a ra...
r=3.5; l=12; lh=3; nub=1; gap=.2; union() { difference() { union() { translate([0,-10, 20.2])cube([20,20,40],center=true); translate([0,-10,-20.2])cube([20,20,40],center=true); } pinhole(l=l,r=r,lh=lh,nub=nub,gap=gap); } flatness=.5; difference() { translate([0,-(r-flatness),0])rotate([-90,0,0])p...
glb/cad_1db48b86d968.glb
Create a pair of meshing bevel gears. The first gear has 41 teeth and the second gear has 7 teeth. Both gears must share the same cone distance and circular pitch of 1000mm. For the first gear, use a pressure angle of 30 degrees and a backlash of 0.9mm. Position this gear at the origin. For the second gear, apply t...
clearance=.2; use <MCAD/involute_gears.scad> teeth1=12;tweak1=0; teeth2=12;tweak2=.5; Backlash=.9; axis_angle=120; rotate([0,0,360*tweak1/teeth1]) bevel_gear_pair (teeth1,teeth2,axis_angle,backlash=Backlash); rotate([0,-axis_angle,0]) rotate([0,0,360*tweak2/teeth2]) bevel_gear_pair (teeth2,teeth1,axis_angle,backlas...
glb/cad_eb52c022e317.glb
Create a cube gear component by forming the convex hull of eight spheres, each with a radius of 3mm. Position these spheres at the vertices of a cube with a side length of 40mm, but offset each sphere from the center of the cube by a distance of 31.18mm along the local z-axis of the vertex's orientation. Specifically, ...
side=40; cradius=3; $fn=12; circum=side/2*sqrt(3); theta=acos(1/3); hull() { rotate([ 000,000,000])translate([0,0,(circum-cradius*2)])sphere(r=cradius); rotate([ theta,000,000])translate([0,0,(circum-cradius*2)])sphere(r=cradius); rotate([ theta,000,120])translate([0,0,(circum-cradius*2)])sphere(r=cr...
glb/cad_249ceb5580c9.glb
Create a "More and More Cube Gears" mechanism by constructing a series of interlocking gear-like components. Start with a primary gear shape formed by the intersection of a torus with a major radius of 50mm and a minor radius of 5mm, and a cube. This gear is modified by removing a large rectangular section to create a ...
cub=40; scale(cub/45)scale(.95)intersection() { union() { difference() { union() { difference() { rotate_extrude(convexity = 10, $fn = 48) translate([50, 0, 0]) circle(r = 5, $fn = 24); translate([0,0,-100]) cube(200); rotate([0,0,-45]) translate([0,0,-100]) ...
glb/cad_a1b9f92873e3.glb
Create a Rubik's Magnet cubie as a rounded cube with a side length of 12mm and a corner radius of 2mm. On the top face, center a recessed octagonal hole. On two adjacent side faces, create magnet inserts. Each insert is a hole designed for a neodymium magnet with a diameter of 5.5mm and a length of 2mm. The inserts a...
side=12; edge=2; magnet_d=5+0.5; magnet_l=2; cubie(222222); module cubie(typ) { difference() { hull() { translate([ (side/2-edge), (side/2-edge), (side/2-edge)])sphere(edge,$fn=16); translate([ (side/2-edge), (side/2-edge),-(side/2-edge)])sphere(edge,$fn=16); translate([ (side/2-edge),-(side/2-edge), (side/...
glb/cad_392d78f3c3c4.glb
Create two identical spool holder brackets. Each bracket consists of a base clip and a top axle holder. For the base clip, create a vertical cylindrical sleeve with an outer diameter of 18.6mm and an inner diameter of 12.6mm, with a height of 12.6mm and a wall thickness of 3mm. Attach this sleeve to a custom-shaped ch...
part = "both"; shaft_diameter_h = 12.6; shaft_diameter_v = 12.6; wall_thickness_h = 2; wall_thickness_v = 3; wall_thickness_c = 1.5; cradle_height = 5; min_length_h = 20; shaft_depth = max(wall_thickness_v * 2 + shaft_diameter_v, min_length_h); print_part(); module print_part() { if (part == "clip") { clip...
glb/cad_8ed412392c17.glb
Create a custom leg for a shelf by constructing a hollow rectangular column and two attached base flaps. Start with a main vertical body that is 40mm wide, 40mm deep, and 90mm high. This body should have a wall thickness of 4mm, created by removing a central rectangular block of 32mm by 32mm that starts 4mm from the bo...
use<obiscad\bevel.scad> h = 90; w = 40; d = 40; t = 4; f = 20; seg = 2+t; ctr = true; module leg() { difference() { cube([w,d,h]); translate([t,t,t]) cube([w-2*t,d-2*t,h-t+seg]); } } module xflap(reinforcement=false, m=0) { difference() { translate([w,0,0]) ...
glb/cad_8d91deb1edbb.glb
Create a bearing-friendly axis cap with a thickness of 3mm. The main body is a rounded lozenge shape formed by the convex hull of two cylinders with a radius of 3.65mm centered at x = -12.7mm and x = 12.7mm, and a central cylinder with a radius of 8.35mm. From this body, remove two screw holes with a radius of 1.5mm ...
h2h=25.4; mwd=16.7; thc=3; dsm=7.3; dsc= 3; div= 13; hiv= 1; tcpt= 0.2; dcpb= 5; dcpt= 1; $fs=0.2; RodBlindEnd(); module RodBlindEnd() { difference() { difference() { hull() { translate([-h2h/2,0,0]) cylinder(r=dsm/2, h=thc, center=true); translate([+h2h/2,0,0]) cylinder(r=dsm/2, h=thc, cente...
glb/cad_c4becc392c0a.glb
Create a bearing-friendly axis cap with a total thickness of 3mm. The main body is a rounded lozenge shape formed by the hull of two cylinders with a radius of 3.65mm centered at X = -12.7mm and X = 12.7mm, and a central cylinder with a radius of 8.75mm. All outer edges should be rounded with a radius of 1mm. Subtract...
tol=0.1; h2h=25.4; mwd=16.7+0.8; thc=3; dsm=7.3; dsc= 3; div= 13; hiv= 1; tcpt= 0.2; dcpb= 5; dcpt= 1; $fs=0.2; $fn=80; RodBlindEnd(); module torus(diameter,roundness) { translate([0,0,roundness/2]) rotate_extrude(convexity= 10) translate([diameter-roundness/2, 0, 0]) circle(r= roundness/2); } module lo...
glb/cad_8c7441f5426b.glb
Create a low-profile Pool Bottom Drain Cover. Start with a primary cylindrical disc that has a total height of 6mm. The main body is a ring with an outer diameter of 100mm (radius 50mm) and a central circular hole with a radius of 5mm. The top surface of the disc features a series of decorative and functional cutouts ...
$fn=50; difference() { rotate_extrude(angle=90) translate([45,0,0]) square([55,6]); translate([0,0,3]) cylinder(h=3,r1=50, r2=47); translate([53,0,3]) cube([15,5,3]); translate([68,0,0]) cube([15,5,3]); translate([83,0,3]) cube([15,5,3]); translate([0,53,0]) cube([5,15,3]); translate([0,6...
glb/cad_6ead20ae42d3.glb
Create an Electron Prototype Base with a rectangular footprint of 100mm by 125mm and a base thickness of 1.5mm. The corners of the base should be rounded with a 5mm radius. At the four corners of the main area, add mounting pillars for a PCB. Position two pillars at (5, 5) and (95, 5) as solid pins with a diameter of ...
$fn=80; width = 100; length = 125; batteryCompartmentHeight =20; batteryCompartmentRight = true; batteryCompartmentLeft = false; includeAerialPanel = false; includeAerialSlot = true; baseHeight = 1.5; height = 8; pcbMountScrewHoleDiameter = 4.4; pcbMountPinDiameter = 2.8; module roundedCube(width, height, d...
glb/cad_ef034ac1e58b.glb
Create a generic action camera adapter for a 3DR Solo gimbal consisting of four distinct components: an adapter, a retaining clip, and two counterbalance weights. First, construct the adapter as a rectangular base 60mm long, 42mm wide, and 8mm thick. Carve out a central rectangular slot for the camera body (59.4mm len...
part = "adapter"; camera_length = 59.4; camera_width = 41.1; camera_height = 19.6; adapter_arm_bump_size = 2.5; back_weight_length = 29; back_weight_offset = 0; side_weight_thickness = 4; side_weight_length = 10; camera_offset = 3.2; base_height = 8; base_width = 42; base_length = 60; bracket_width = 9; bra...
glb/cad_26d72fb18ebe.glb
Create an Infiniground terrain block by starting with a main cube measuring 152mm x 152mm x 15mm. Hollow out the center of this cube by removing a smaller interior cube measuring 148.8mm x 148.8mm (leaving a 1.6mm wall thickness) starting from a height of 5mm from the base. On the top surface, emboss the text "INFINIG...
block_specification = 15; height_map = "texture.dat"; texture_scale = 20; texture_scale_factor = 1; raise_texture = 1; logo_text = "INFINIGROUND"; logo_size = 3; logo_offset_x = 76; logo_offset_y = 76; logo_emboss = 5.4; block_width = 152; block_edge_indent = 1.6; block_reserved_base = 5; boolean_offset = 2;...
glb/cad_f64378bd2158.glb
Create a UGroove Pulley by starting with a solid cylinder that has a radius of 6mm and a height of 4mm. Remove a smaller concentric cylinder from the center with a radius of 2.7mm to create a hole for a shaft. To form the outer groove, carve out a toroidal ring from the center of the pulley's outer edge; this ring shou...
$fn=100; radius=2.7; outer_radius=6; thickness=4; groove_radius=1; module UGroovePulley() { difference() { cylinder(r= outer_radius, h=thickness); cylinder(r=radius, h=thickness); translate([0, 0, thickness/2]) rotate_extrude(convexity = 10) translate([outer_radius, 0,0]) circle(r=groove_radius...
glb/cad_520c130d82e6.glb
Create a puzzle consisting of three nested cubes. Start with a solid innermost cube measuring 15mm on all sides. Surround this with a second cube measuring 24mm per side; remove material from this second cube by centering cylindrical holes and discs along each of the three primary axes. Specifically, remove three cylin...
o_m_s=33; o_s=24; i_s=15; outermost_cube(o_m_s, o_s); outer_cube(); inner_cube(); module inner_cube() { cube([i_s, i_s, i_s], center=true); } module outer_cube() { difference() { cube([o_s, o_s, o_s], center=true); union() { discs(o_s, i_s); holes(o_s, i_s); } } } module outermost_cube() { differ...
glb/cad_1cd6f06cea87.glb
Create a calibration device consisting of a rectangular base and two concentric ring-like structures. Start by creating a solid rectangular block measuring 20mm in width, 20mm in depth, and 10mm in height. At the origin (0,0,0), add a hollow vertical cylinder with an outer radius of 50mm and a height of 15mm, featuring...
$fa = 0.1; cube (size=[20,20,10] ); translate([-00,-00,0]) rng(50); translate([ 20, 20,0]) rng(22); module rng(r) { difference () { cylinder(r=r,h=15); translate ([0,0,-2]) cylinder(r=r-2,h=18); } }
glb/cad_7b268b5b6d6f.glb
Create a PrimeCoin coin by combining two geometric elements. First, create a cylinder with a radius of 23mm and a height of 5mm, using a low facet count of 19 sides to give it a faceted, polygonal appearance. On top of this base, add a second element by extruding a 2D profile of the PrimeCoin symbol to a height of 7mm....
$fn=120; linear_extrude(height=7)scale(0.3)import(file="primecoin.dxf",layer="0"); color([0,0.5,0])cylinder(h=5,r=23,$fn=19);
glb/cad_0bb46331210a.glb
Create a Detolf Shelf Support clip with a total height of 10mm. The base of the clip is a cylinder with a diameter of 12.2mm and a height of 10mm. From this cylinder, extend two arms along the X-axis. The first arm is a short rectangular block with a width of 3.95mm and a length of 14.1mm. The second arm is a longer re...
rodDia = 6.1; clipHgt = 10; clipLen2 = 50; clipDia = 2*rodDia; slotWid = rodDia-2; armWid = (clipDia - slotWid) / 2; m4Dia = 4.1; holeOffs = 10; rounder = 2; clipLen1 = holeOffs + m4Dia/2 + 4; $fn = 50; module FilletProfile(th=5,r=5) { $fn = 20; translate([-r,-r,-0.1]) cylinder(r=r,h=th+0.2);...
glb/cad_cc75f04f4c33.glb
Create a Cross Tweezer consisting of two symmetrical arms joined at a pivot. Each arm is based on a profile that is 3mm thick and 8mm high. Start by creating a central hub using a 24-sided prism (low-facet cylinder) with a diameter of 3mm. From this hub, extend two arms that curve outward. Each arm is formed by a ser...
t=3; h=8; h1=3; $fn=12; ch=.8; union(){ scale([1.45,1.45,1])rotate([0,0,54])rotate_extrude(angle=250,$fn=$fn*2) projection(true)rotate([-90,0,0])translate([t,0,0])rotate([0,0,47.5]) difference(){ hull(){ rotate([0,0,7])cylinder(h=ch,d1=t-ch-ch,d2=t); translate([0,0,h-ch])rotate([0,0,7])cylinder(h=ch,d1=t,d2=t-ch-ch);...
glb/cad_89daa9cd4ddd.glb
Create a Kühling's x-ends Misumi Resin Nut Edition, which is a mounting bracket for a leadscrew nut and linear bearings. Start by creating a main body block with a length of 40mm. Within this body, incorporate a central rod mount featuring a hole with a diameter of 8.4mm (8mm rod diameter plus 0.4mm clearance) to acc...
use <jonaskuehling-default.scad> include <lm10uu-holder-slim_double-vertical.scad> rod_dia = 8; rod_dist = 50; zrod_leadscrew_dist = 30; clearance = 0.2; wall = 3; wall_thin = 3; xend_body_length = 40; m3_screw_dia = 3; m3_screw_head_dia = 5.5; m3_screw_head_height = 3; m3_nut_wrench_size = 5.5; m3_nut_height = 2.4; ...
glb/cad_fc41b8848c82.glb
Create a Y-axis belt clamp consisting of four distinct components: a clamp base, a clamp top, a clamp trap, and two identical rams. The clamp base is a block with a height of 3.5mm and a width of 18mm between its two main mounting holes. It features a central rectangular cutout for a belt 6.2mm wide and 3.8mm high. T...
belt_pitch = 5; belt_width = 6.2; belt_height = 3.8; hole_spacing = 18; ram_length = 1.5; m3_diameter = 3 / cos(180 / 8) + 0.4; m3_radius = m3_diameter / 2; m3_nut_diameter = 5.5 / cos(180 / 6) + 0.4; m3_nut_radius = m3_nut_diameter / 2; m3_nut_depth = 2.5; wall = 3; extrusion_width = 0.4; clamp_height = 3.5; be...
glb/cad_5438972b246d.glb
Create a Three Way Rope Lock consisting of two sliding plates, a locking key, and two eyelets. First, construct two identical rectangular plates measuring 50mm by 70mm with a thickness of 10mm. On the inner faces of these plates, create matching dovetail tracks that allow the plates to slide against one another. Each...
use <../libs/polyhole.scad> layersize=5; play=0.5; ropesize=20; module eyelet() { difference() { cylinder(r=ropesize/2+3,h=10); translate([0,0,-1]) cylinder(r=ropesize/2,h=12); } } module latch_neg() { difference() { cube([20.75+play,60+...
glb/cad_5df3aa32da60.glb
Create a Y-carriage frame for brass nut bushings consisting of two identical bushing holders connected by stabilizing rails. Each bushing holder is a block with a central hole designed to trap a modified M8 brass nut. Position two of these holders along the Y-axis, separated by a center-to-center distance of 70mm. Co...
include <brassnutbushing.scad> module brassnutbushing_ycarriage(spacing=70){ translate([0,-spacing/2,0])brassnutbushing(90); translate([0,spacing/2,0])brassnutbushing(90); for(s=[-1,1])scale([s,1,1]){ translate([-18,-spacing/2+5,0])cube([10,spacing-10,1.5]); translate([-14,-spacing/2+5,0])cube([4*lay...
glb/cad_0e577dd82c12.glb
Create a bicycle wheel truing stand consisting of a base frame, impeller holders, and a rim-grabber assembly. Construct the base frame using four foot joints, each 20mm wide by 30mm long, connected by threaded rods. Position two rods along the width (150mm distance between feet) and two along the length (400mm distan...
$fn = 60; aotr = 12; dotn = 13; dbfw = 150; dbfl = 400; robw = 580; footjoint_width = 20; footjoint_length = 30; footjoint_thrededrod = 8.2; impellerholder_angle = 70; impellerholder_width = 100; impellerholder_rabbetd = 20; impellerholder_rabbetw = 20; rimgrabber_distance = 200; rimgrabber_armlength = 40; rimgrabb...
glb/cad_9c9e16c5152e.glb
Create an accessory cap for an ATN X-Sight II. Start by creating a wide, flat base cylinder with a radius of 14mm and a height of 2mm, using a 20-facet resolution. Centered on top of this base, construct a hollow ring with a wall thickness of approximately 1.4mm to 2.5mm. This upper section should have an outer radius ...
module hole_mod (pRad,pHight=-1, circRad,cirHight,circQ=10,num){ for (i=[1:num]) { translate([pRad*cos(i*(360/num)),pRad*sin(i*(360/num)),pHight]) cylinder(r=circRad,circHight,$fn=circQ); } } translate([0,0,0])rotate(a=[0,0,0])cylinder(h=2, r1=14,r2=14,$fn=20,center=false); difference() { translate([0,...
glb/cad_5edc05fe92b5.glb
Create a shot glass by starting with a tapered cylinder that has a bottom radius of 20mm, a top radius of 24mm, and a total height of 50mm. Hollow out the center by removing a smaller tapered cylinder with a bottom radius of 18mm, a top radius of 22mm, and a height of 50mm. At the base of the glass, create a conical sp...
res=160; module strips() { for (i = [0:16]) { rotate([0,0,360/16*i]) translate([24,0,0]) cube([4,2,30], center=true); } for (i = [0:16]) { translate([0,0,-10]) rotate([0,0,360/16*i+11,25]) translate([23.5,0,0]) cube([4,2,30], center=true); } } module shot() { difference() { cylinder(r1 = 20, r2=24, h=50, cen...
glb/cad_dda65011fa54.glb
Create a tall bowl based on a hypocycloid geometry. The main body is formed by stacking hypocycloid layers along the vertical axis, scaled by a factor of 2.5, to create a vessel with a smooth, undulating exterior that lacks sharp cusps. The interior is hollowed out by removing a slightly smaller version of the same hyp...
use <epi_hypo_files.scad> mark = 4; if (mark==1) scale(1) difference() { union() { epi_hypo_all(-1,4,1,.5,.5); translate([0,0,15]) cylinder(r=15,h=6,center=true,$fn=48); } scale(0.95) epi_hypo_all(-1,4,1,.5,.5); translate([0,0,-45]) cube([100,100,100],center=true); } else if (mark ==2) scale(1.75) difference() {...
glb/cad_da6355d89a06.glb
Create a Doric Column Pedestal with a total height of 63.5mm. Start with a square base measuring 35.4mm by 35.4mm with a thickness of 2mm. Centered on this base, add a torus with a height of 3mm and a diameter of 25.4mm. Above the torus, construct a cylindrical shaft with a diameter of 25.4mm. The shaft should extend...
HEIGHT=2.5*25.4; SHAFT_DIAMETER=1*25.4; BASE_W=SHAFT_DIAMETER+10; CH=2; ENCHINUS_H = 3; CAPITAL_H = CH+ENCHINUS_H; TORUS_H = 3; BH=2; BASE_H = BH+TORUS_H; SHAFT_TE_H=HEIGHT-(CH+BH); SHAFT_H=HEIGHT-(BASE_H+CAPITAL_H); SHAFT_R=SHAFT_DIAMETER/2; N_FLUTES=12; FLUTE_R=((PI*SHAFT_R)/N_FLUTES); FLUTE_O=FLUTE_R/2; FLUTE_X=...
glb/cad_f517ecdd917c.glb
Create a Bicycle Light Mount consisting of two primary clamping components. First, create a handlebar clamp. This part is a semi-circular ring with an inner diameter of 1.01mm and a width of 0.3mm. The ring is thickened to 0.2mm. Integrate two bolt holes through the ends of the clamp, each with a shaft diameter of 0....
PART_GAP = 0.25; HANDLEBAR_TUBE_DIAMETER = 1.01 ; HANDLEBAR_CLAMP_WIDTH = .3 ; HANDLEBAR_CLAMP_THICKNESS = .2 ; HANDLEBAR_CLAMP_BOLT_DIAMETER = 0.12 ; HANDLEBAR_CLAMP_BOLT_CAP_DIAMETER = 0.22 ; HC_MAXX = HANDLEBAR_TUBE_DIAMETER/2 + HANDLEBAR_CLAMP_WIDTH; HC_MAXY = HANDLEBAR_TUBE_DIAMETER/2 + HANDLEBAR_CLAMP_THICKNE...
glb/cad_e445a5373ec7.glb
Create a Menger sponge with external support. Start with a central cube 45mm on each side. To form the fractal sponge, remove three intersecting square prisms, each 15mm wide and 50mm long, centered on the X, Y, and Z axes. Additionally, remove twelve smaller 50mm by 5mm by 5mm rectangular bars positioned 15mm from the...
module ordertwo() { translate([0,15,15]) cube(size=[50,5,5], center=true); translate([0,0,15]) cube(size=[50,5,5], center=true); translate([0,-15,15]) cube(size=[50,5,5], center=true); translate([0,15,0]) cube(size=[50,5,5], center=true); translate([0,-15,0]) cube(size=[50,5,5], center=true); translate([0,1...
glb/cad_f99e116b3f0d.glb
Create a Customizable Box Catch consisting of a body, a spindle, and a hook. First, create the body as a rounded rectangular plate with a length of 60mm, width of 45mm, and height of 6mm, using a corner radius of 6mm. This body is split into a lid and base section. The lid section features a cylindrical hole with a r...
part = "spindle"; length=60; width=45; height=6; corner_radius = 6; knob_inset = 1; knob_base_height = 3; hook_mouth_outer_radius = 8; hook_mouth_inner_radius = 3; hook_height = 2; spindle_radius_lower = 4; spindle_square = 8; spindle_radius_upper = 6; knob_radius = 10; screw_drill = 2.5; screw_head = 6;...
glb/cad_bab1ceb47019.glb
Create a Mousetrap Car Wheel by starting with a main outer cylinder that has a radius of 22.5mm and a height of 15mm. Bore a central hole through the entire height of this cylinder with a radius of 2mm. Add a smaller concentric cylinder on the face of the wheel with a radius of 11.5mm and a height of 17mm, ensuring it...
difference(){ cylinder(r=22.5,h=15); translate([0,0,-2])cylinder(r=2,h=19); } difference(){ difference(){ translate([0,0,-1])cylinder(r=11.5,h=17); translate([0,0,-2])cylinder(r=2,h=19); } translate([-32.5,-8,15.2])difference(){ difference(){ translate([30,0,0])cube([5,3,1]); rotate([0,0,-19])translate...
glb/cad_f7e5d50aa891.glb
Create a 12 Point Puzzle in the shape of a stellated dodecahedron. Start by constructing a central rectangular prism with dimensions 12mm by 33.94mm by 12mm, centered at the origin and rotated 45 degrees along the X-axis. From this primary volume, remove material using several intersecting shapes to create the star-lik...
side=12; translate([0,0,side/2]) rotate([0,45,0]) difference() { rotate([0,45,0]) cube([side, side*2*1.414, side], center=true); union() { translate([0,side/1.414,side/1.414]) rotate([0,45,90]) cube([side, side*2*1.414, side], center=true); translate([0,-side/1.414,side/1.414]) rotate([0,45,90]) cube...
glb/cad_84b725fad682.glb
Create a customizable paper tag frame. Start by constructing a base plate with a total width of 33mm and a height of 44mm. The top of this shape should extend further to form a pointed eye, adding an additional 8.25mm to the height (one quarter of the width) across the top center, creating a six-sided polygon. Extrude ...
outside_width = 33; outside_height = 44; wall = 1.0; gap = 1.7; frame_width = 4; module grundflaeche2d() { polygon([[0,0],[outside_width,0],[outside_width,outside_height],[outside_width*3/4,outside_height+outside_width/4],[outside_width/4,outside_height+outside_width/4],[0,outside_height]]); } module hauptteil()...
glb/cad_6f017a1bf22e.glb
Create a pegboard test lead cable holder. Start with a base plate that is a rectangular block measuring 50.8mm wide, 1.5mm thick, and 25.4mm high. At the top left and top right corners of the back plate, add two rectangular peg pins. Each pin should be 3mm wide, 7mm deep, and 4mm high. For the top pins, add a small c...
Xdim = 2; Zdim = 1; $fn=30; inch = 25.4; wall = 1.5; pegx = 3; pegy = 7; pegz = 4; difference() { translate([(Xdim*inch+pegx)/2,0,0]) cylinder(r=(pegx+Xdim*inch)/2,h=pegz); translate([-1,0,-1]) cube([Xdim*inch+10,Xdim*inch,4*wall]); translate([Xdim*inch/2+pegx/2,0,pegz/2]) cylinder(r=Xdim*inch/2,h=3*wa...
glb/cad_e89bc8d52a75.glb
Create two double helical involute gears with a pressure angle of 20 degrees and a clearance of 0.1mm. For the large gear, create a gear with 68 teeth and an outer diameter of 140mm. The gear should have a rim thickness of 5mm and a rim width that results in an inner diameter of 124mm. Add a hub with a thickness of 5...
include <MCAD/involute_gears.scad> part="all"; Ldiam1=140; twist=-270; eps=0.1; $fn=36; PA=20; Lth1=5; Lth2=5; Lth3=5; Lnteeth=68; Ldiam2=124; Ldiam3=104; Ldiam4=75; Lholes=4; Sth1=5; Sth2=2.5; Sth3=5; Snteeth=20; Sdiam2=40; Sdiam3=10; Sdiam4=5; Sholes=8; diam_pitch=(Lnteeth+2)/Ldiam1; module my...
glb/cad_dacad3c00265.glb
Create a Diamond hot end silicone sock mould consisting of four distinct components. First, create two identical outer mould halves. Each half starts as a 40x40x30mm cube. From each cube, remove a central volume consisting of a truncated cone with a bottom radius of 3mm and a top radius of 15.4mm, topped with a cylin...
$fn=100; pathRad=7; num=3; translate ([-10,0,20]) rotate([0,-90,0]) leftOuter(); translate ([5,0,20]) rotate ([0,90,0]) rightOuter(); translate ([-20,-40,18.8+2.35]) rotate ([0,180,0]) inner(); translate ([20,-40,2]) rotate ([0,180,0]) innerTop(); module leftOuter(){ difference(){ translate ([-20,-20,-4]) ...
glb/cad_5753a07fe1ed.glb
Create an XXL Fidget Spinner with three symmetrical rays. The body is 15mm thick. At the center, create a cylindrical hole with a diameter of 52mm to accommodate a 6205 bearing. Add a shallow 0.5mm deep glue groove around the inner circumference of this center hole. Extend three rays from the center, spaced 120 degre...
rays = 3; numWeights = 1; extra = 0; whichWeight = "M20 hex nut"; radius = 0; taperedRays = "yes"; bearingGlueGroove = 0.5; weightsGlueGroove = 0.5; $fn = 60; x = 0; y = 1; z = 2; thick = 3; space = 3; bearing = [52, 52, 15]; sae = [.577*25.4, .5 * 25.4, 7]; sae38 = [.650*25.4,.562*25.4, 7]; sae12 = [.866*25.4...
glb/cad_3fd6ebb93d27.glb
Create a game called Entrapment consisting of a game board and several playing pieces. Start by constructing the board as a flat square base measuring 10.5mm by 10.5mm with a thickness of 0.5mm. On top of this base, create a 7x7 grid of small square pillars. Each pillar must be 1mm wide, 1mm deep, and 0.6mm high. These...
square = 1; trough = square*0.5; translate([0,0,square/4]) { total_width_depth = 7*square+6*trough; cube([total_width_depth,total_width_depth,square/2],center=true); for(i=[-3:3]) { offset_x = square*i + trough*i; for(j=[-3:3]) { offset_y = square*j + trough*j; translate([offset_x, offset_y, square/4]) cu...
glb/cad_2014a02d8e91.glb
Create a cat food thirder tool consisting of a central handle and several radiating vertical dividers. Start by creating a central handle in the shape of a cylinder with a height of 15mm and a top radius of 10mm, tapering down to a radius of 0mm at the base. Around this central axis, place four thin rectangular walls, ...
canSize = 0; numberOfPortions = 4; customHeight = 105; customDiameter = 65; handle_height = 15; wallThickness = 1.2; $fn = 50; module dragons() { } spokeCount=numberOfPortions; threeOzHeight = 36; fiveOzHeight = 36; height = canSize == 5.5 ? fiveOzHeight : canSize == 3 ? threeOzHeight : customHeight; threeOzD...
glb/cad_030f82347365.glb
Create a UPS strain relief consisting of a tiered vertical assembly with a central hole. Start with a base cylinder 24.28mm in diameter and 4.65mm high. Create a hull that blends this base with a 2mm wide rectangular profile centered on the Y-axis. On the side of this base, add a small rectangular nub measuring 3.1mm b...
$fn=100; difference(){ union(){ bottomD(24.28, 4.65); translate([0,0,4.65]) innerLipD(3.4); middleD(); hook(); top(); } hookCutout(); tallHole(); } module bottomD(diameter,height){ difference(){ hull(){ cylinder(d=diameter,h=h...
glb/cad_0d4a1ab1bb26.glb
Create a Test Block by constructing a cuboid with dimensions of 10mm x 10mm x 10mm. The shape should be a solid cube centered at the origin. Ensure the edges are sharp, as the fillet radius is set to 0.0mm.
C_CONSTANT = 0 + 0; C_NONE = C_CONSTANT + 0; SCG_OVERLAP = C_CONSTANT + 0.01; C_SHAPE_NONE = C_CONSTANT + 0; C_SHAPE_CUBOID = C_CONSTANT + 1; C_SHAPE_CYLINDER = C_CONSTANT + 2; C_SHAPE_PYRAMID = C_CONSTANT + 3; C_SHAPE_PRISM = C_CONSTANT + 4; C_SHAPE_ELLIPSOID = C_CONSTANT + 5; C_SHAPE_TORUS = C_C...
glb/cad_0a99a1a68484.glb
Create a custom replacement pen tip by constructing a hollowed-out vertical assembly. Start with a solid base consisting of a cylinder 5mm high with a 4.2mm radius. Above this, add a main cylindrical body 27mm high with a 3.8mm radius. At the 20mm height mark, add a thin decorative collar 0.75mm thick with a 4.2mm radi...
$fn = 100; difference() { union() { cylinder(h = 27, r = 3.8); cylinder(h = 5, r = 4.2); translate( [0, 0, 20] ) { cylinder(h = 0.75, r = 4.2); } translate( [0, 0, 27] ) { cylinder(h = 8.5, r1 = 3.8, r2 = 1.8); } }...
glb/cad_7485cac66026.glb
Create a Graber i3 Y Axis Bearing Adaptor consisting of two distinct parts: a bearing clamp and a bed bearing adaptor. For the bearing clamp, start with a central cylinder 15mm in diameter and 24mm long, oriented horizontally. Surround this with two rectangular blocks, each 12mm wide, 9mm deep, and 18mm high, position...
$fn = 60; module bearing_LM8UU(dPlus = 0) { rotate([0,90,0]) cylinder(d=15+dPlus, h=24, center=true); } module hole() { cylinder(d=4,h=40,center=true); } module cube_vFlat_hRound(bL,bW,bH,bD, cCenter = true) { difference() { cube([bL,bW,bH],cCenter); translate([-bL/2,bW/2,0]) cylinder(d=bD, h=bH+1, c...
glb/cad_d5ab6c0fabef.glb
Create a trailer hitch cover consisting of a hollow square plug and a flat base plate. The plug is a hollow square prism with an outer dimension of 50mm and an inner void of 37mm. The outer corners of the plug must be rounded with a radius of 6.35mm. The total height of the assembly is 124.5mm, with the plug extendin...
function inchu(x) = (25.4*x); function mmu(x) = x; plateThickness = mmu(9.5); plateSize = inchu(6); outsidePlug = mmu(50); insidePlug = mmu(37); height = mmu(115); hole = mmu(18.3); holeZ = mmu(85); cornerRadius = inchu(0.25); textHeight = 28; textExtraSpace = mmu(3); textSideOffset = mmu(0); textVerticalOff...
glb/cad_873dc7e1fa20.glb