Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a jewelry bead set consisting of two separate components. First, create a torus with a major radius of 6mm and a minor radius of 1.2mm, using a 25-facet resolution for the circular cross-section. Second, construct a barbell-shaped piece by combining a cylinder and a smaller torus. The cylinder should have a leng...
size = 6; $fn = 25; module ring() { rotate_extrude(convexity = 1) translate([size,0,0]) circle(r=size * 0.2); } module barbel() { translate([size *.5,size * -0.25,0]) rotate([90,0,0]) union() { translate([size * 1.5, 0, (size * 2.75 / 2) - (size * 0.2)]) cylinder(h=size*2.75, r1=size * 0.25, r2 = size * 0.25...
glb/cad_9edf006a37d5.glb
Create a Mario badge by constructing two layered 2D profiles extruded into 3D. First, create a base layer by tracing the outer silhouette of the character. Extrude this profile to a height of 0.2mm. Second, create a detail layer that sits directly on top of the base. This layer consists of the internal line art of ...
$fn = 15; scale([0.1, 0.1, 1]) { color([1, 1, 1]) { linear_extrude(2) { mario_outline(); } } color([0, 0, 0]) { translate([0, 0, 2]) { linear_extrude(1) { mario(); } } } } module mario_outline() { bezier_polygon([[[617.2, -314.2], [619.5, -245.79999999999998], [595.1, -180.7], [548.400000000...
glb/cad_f3df776ca45d.glb
Create a battery box cover starting with a rectangular base plate measuring 55mm in length, 30mm in width, and 2mm in thickness. On the underside of the plate, carve out a rectangular slot that is 45mm long and 2mm wide. Position this slot 5mm from one short edge of the plate and 1.5mm from one long edge. Add two s...
x=55; y=30; thickness=2; double_holder_width = 4; double_holder_length = 4; double_holder_overlap = 2; double_holder_thickness = 2; double_holder_offset = 12; double_holder_offset2 = x - double_holder_offset - double_holder_width; slot_length = 45; slot_thickness = 2; slot_y = 1.5; slot_offset = 5; slot_ho...
glb/cad_23e13d3211ce.glb
Create a Bowden attachment for a 3D printer extruder. Start with a rectangular base measuring 39mm in width, 27mm in depth, and 10mm in height, centered so the origin is at the middle of the width and depth. On top of this base, add a truncated cone that transitions from a circular base with a radius of 13.4mm to a top...
bowdenAttachementDiameter = 10; difference() { union() { translate([-13.5,-13.5,0]) { cube([39,27,10]); } translate([0,0,10]) { cylinder(r1 = 13.4, r2 = 8.456835, h = 12, $fn = 80); } } union() { color([0.1,0.1,0.5]) { translate([0,0,10]) { cylinder(r1 = 8.456835, r2 = 1.6, h = 3, $fn = 8...
glb/cad_74f3d74c295f.glb
Create a semiconductor sample holder consisting of a main base and a clamping component. For the main base, create a rectangular block 20mm wide, 20mm long, and 3mm thick, centered at the origin. Subtract a cylindrical hole with a diameter of 3mm from the center of this block. At each of the four corners of the block...
X=25; Y=25; a=3; b=6; c=3; d=8; e=20; j=3; k=3; sample_holder(); translate([50,0,0])sample_holder_clamp(); module thumbscrew(){ difference(){ cylinder(f+2,(g+6)/2, (g+6)/2); translate([0,0,2])cylinder(5,(g+1)/2, (g+1)/2); cylinder(5,(i+1)/2, (i+1)/2); } difference(){ for ( i = [0 :8] ){ rotate( i * 360 / 8, [0,...
glb/cad_709417a36cef.glb
Create a Modified Parametric Bed Bracket. Start with a main body consisting of a rectangular block 14mm wide, 20mm deep, and 5.5mm high. In this block, create a vertical hole with a 2.5mm radius centered at x=10.5mm and y=10mm, and cut a rectangular slot 6mm wide and 2.5mm high starting from the bottom of that hole. A...
screw = 5; distance = 27.5; $fn = 30; screw_radius = screw / 2; difference(){ cube([14,20,5.5]); translate([8 + screw_radius,10,0]) cylinder(8, screw_radius, screw_radius, center=false); translate([8 + screw_radius, 10 - screw_radius, 0]) { cube([6, screw_radius * 2, 6]); } } translat...
glb/cad_ce7091a5423b.glb
Create a Modified Parametric Bed Bracket thumbwheel by starting with a solid cylinder 18mm in diameter and 6mm in height. Bore a 3.4mm diameter hole through the center of the cylinder along its entire height. To accommodate a lock nut, create a hexagonal cutout centered in the middle of the cylinder with a height of 4m...
$fn=50; include <Metric/M3.scad> dia = 18; hgt = 6; fingerDia = 5; m3NylocNutHeight = 4; steps = 8; pathRadius = dia/2+1; difference([]) { cylinder(d=dia,h=hgt); for (i=[1:steps]) { translate([pathRadius*cos(i*(360/steps)),pathRadius*sin(i*(360/steps)),0]) { cylinder(d=fingerDia,h=hg...
glb/cad_047acd4b44a1.glb
Create an open-source mirror holder consisting of a rectangular base with a cylindrical mounting structure. Start with a rectangular base plate measuring 17mm by 20mm by 3mm. On top of this base, center a large horizontal cylinder with a diameter of 12mm and a length of 20mm. Create a hollow bore through the center o...
x=25.4; y=10; z=3; X=25; Y=25; a=3; b=6; c=3; d=8; e=20; f=3; g=6; i=3; j=3; k=4; mirror_holder(); module thumbscrew(){ difference(){ cylinder(f+2,(g+6)/2, (g+6)/2); translate([0,0,2])cylinder(5,(g+1)/2, (g+1)/2); cylinder(5,(i+1)/2, (i+1)/2); } difference(){ for ( i = [0 :8] ){ rotate( i * 360 / 8, [0, 0, 1]) ...
glb/cad_9d89a7b30923.glb
Create a webcam tripod mount consisting of a rectangular base and a mounting loop. Start by creating a rectangular base with a width of 30mm, a depth of 30mm, and a height of 10mm. In the center of this base, create a vertical hole 6.35mm in diameter and 6mm deep, featuring internal negative space for a 1/4 inch diamet...
include <omdl-v0.6.1/shapes/shapes2d.scad>; include <omdl-v0.6.1/shapes/shapes2de.scad>; include <omdl-v0.6.1/shapes/shapes3d.scad>; include <omdl-v0.6.1/tools/tools_utility.scad>; include <omdl-v0.6.1/units/units_length.scad>; include <mstscew.scad>; base_unit_length = "mm"; $fn=72; mt = 1.25; lw = 40.00; lh = 3...
glb/cad_abd390bceea4.glb
Create a mount for a jeweler's loupe and phone case. Start by creating a cylindrical holder with a total height of 14.4mm and an outer radius of 19mm. This holder should have a central vertical cutout with a radius of 19mm and a height of 10.4mm, leaving a 2mm thick wall at the top and bottom. Attached to this holder,...
wall_thickness = 2; lens_tube_length = 12; lens_tube_r = 15.1 / 2; case_height = 10.4; case_width = 62.2; lens_offset_fudge_x = 0; lens_offset_fudge_y = 0; iphone_width = 58.57; iphone_lens_center_offset_x = 9.28; iphone_lens_center_offset_y = 7.35; iphone_corner_radius = 9; case_wall_thickness = (case_width -...
glb/cad_bb9395dddc8c.glb
Create a parametric chopper wheel for optical experiments. Start with a main cylindrical disk that has a radius of 50mm and a thickness of 5mm. Remove a smaller concentric cylinder from the center of the disk with a radius of 3mm to create a central shaft hole. Around this center, create a circular hub area with a ra...
r=50; r_hub=15/2+3; h=5; y=5; z=5; n=14; a=6; b=3; c=3; chopper_wheel(); module chopper_wheel(){ difference(){ cylinder(h,r,r); for ( i = [0 : n] ) cylinder(h,(r-y),(r-y)); cylinder(h,(z+1)/2,(z+1)/2); } difference(){ for ( i = [0 :n] ){ rotate( i * 360 / n, [0, 0, 1]) translate([0,0,0]) slot(r_hub); ...
glb/cad_b8d2028c13d3.glb
Create a side trough for a 3D printer by constructing a hollowed-out tray with a tapered profile. Start with a solid base shape that is 260mm long, 40mm high, and 40mm wide at the bottom, tapering outwards to a top width of 52mm. Hollow out the center of this volume to create a basin with a wall and floor thickness of ...
module trough(bw, h, l, tw) { linear_extrude (height = h, convexity= 10, scale=[tw/bw,1]) square( size = [bw,l], center = true); } module rail(w,l,d,x_offset) { translate([x_offset,0,d/2]) cube ([w,l,d], center = true); } trough_base_width = 40; trough_height = 40; trough_length = 260; trough_top_width = 52; ...
glb/cad_6a188301c756.glb
Create a Customizable Cup Holder consisting of a main cylindrical body and a separate latch mechanism. For the main body, create a hollow cylinder with a total height of 115mm. The outer diameter is 90mm (radius 45mm), and the inner diameter is 75mm (radius 37.5mm), resulting in a wall thickness of 7.5mm. The bottom ...
use <write/Write.scad> $fa=1*1; $fs=1.5*1; purpose = "Cup"; part = "all"; holder_thickness = 5; diameter_1 = 80; radius_1 = diameter_1/2; diameter_2 = 75; radius_2 = diameter_2/2; diameter_3 = 40; radius_3 = diameter_3/2; diameter_4 = 40; radius_4 = diameter_4/2; height_1 = 110; height_2 = 5; total_height = heigh...
glb/cad_6775ec945367.glb
Create a belt clamp for a 3D printer. Start with a central rectangular block measuring 11mm wide, 10mm deep, and 8mm high, centered on the origin. Add two half-cylinders with a radius of 5mm and a height of 8mm to the left and right sides of the block to create a rounded oblong shape. Cut several holes and slots throu...
belt=7; belth=1.4; st=2; m3d=3+0.3; m3shd=6.8+0.4; m3nd = 6.2+0.3; m3nh=2.8; sp=2+belt+2; clampy=10; z=8; bw=belt+0.5; $fn=32; difference() { union() { translate([0,0,z/2]) cube([sp, clampy, z], center=true); translate([-sp/2, 0, 0]) cylinder(z, clampy/2, clampy/2); translate([sp/2, 0, 0]) cylinder(z, clampy...
glb/cad_5eeb45b20781.glb
Create a heavy base for a Prusa i3 printer. Start by constructing a rectangular block with a total height of 31mm, a width of 22mm, and a depth of 22mm. From this block, remove a central vertical cylindrical hole with a diameter of 12.1mm that passes completely through the center of the block from top to bottom. On t...
include<MCAD/teardrop.scad>; m10d=9.8+0.3; m12d=11.8+0.3; m3d=3+0.3; m3shd=6.8+0.4; m3nd = 6.2+0.3; m3nh=2.6; m4d=4+0.3; m4nd = 7.8+0.3; m4nh=3.4; sbd=8; sbdi=8+0.3; sbdih=sbdi-0.1; d=10; d1=12; di=m10d; di1=m12d; dih=di-0.1; di1h=di1-0.1; w=6; x=w+d+w; y=w+d+w; z=w+d+1+d+1+d+w; rz=1.5; $fn=32; module ycor(...
glb/cad_9520e71fd111.glb
Create a heavy base for a Prusa i3 printer. The main body is a rectangular block with a total width of 22mm, depth of 22mm, and height of 45mm. At the center of the block, create a vertical cylindrical hole with a diameter of 10.1mm that runs through the height of the part. On one of the side faces, add a teardrop-sh...
include<MCAD/teardrop.scad>; m10d=9.8+0.3; m12d=11.8+0.3; m3d=3+0.3; m3shd=6.8+0.4; m3nd = 6.2+0.3; m3nh=2.6; m4d=4+0.3; m4nd = 7.8+0.3; m4nh=3.4; sbd=8; sbdi=8+0.3; sbdih=sbdi-0.1; d=10; d1=10; di=m10d; di1=m10d; dih=di-0.1; di1h=di1-0.1; w=6; x=w+d+w; y=w+d+w; z=w+d1+1+d1+1+d+1+sbd+w; rz=1.5; $fn=32; modu...
glb/cad_6d6ef4700fc3.glb
Create a heavy base for a Prusa i3 printer. The main body is a rectangular block with a total width of 24mm, a depth of 53mm, and a height of 15mm. At the center of the block, carve out a rectangular slot that is 11.6mm wide, 53mm deep, and 15mm high. Within this central area, create two cylindrical cutouts with a di...
m3d=3+0.3; m4d=4+0.3; m3nd=6.2+0.3; m3nh=2.8; m3shd=6.8+0.3; m4nd = 7.8+0.3; m4nh=3.4; m4shd=9+0.5; w=4; idd=13; sp=40; clampy=12; clampz=6; belth=1.4; belt=7; beltsp=0.8+5+5+0.8; iddcut=idd+belth*2+2; x=w+w+beltsp+w+w; y=sp+idd; z=idd+belth*2+1; $fn=32; module xcen() { difference() { union() { translate...
glb/cad_78eb8dba3a41.glb
Create a heavy base clamp for a 3D printer. Start with a central rectangular block that is 18mm wide, 20mm deep, and 19.25mm high. Extend this block along the Y-axis to a total length of 50mm. The front and back sections of the base should be rounded with a radius of 5mm. The overall structure is a composite of two ma...
belt=6; belth=1.4; m3d=3+0.4; m3r=m3d/2; m4d=4+0.4; m4r=m4d/2; m8d=7.8+0.3; m10d=9.8+0.3; sbd=8+0.3; d=m8d; py=33; by=48.5; gt2_22d=11.9; gt2_20d=10.7; t25_16d=10.7; pld=t25_16d; idd=13; sp=6+belt+6; sp1=belt+2; clampy=10; clampy1=20; hz=19.750-pld/2-belth-0.1; hz1=20.9-idd/2-belth-0.1; bw=belt+0.5; le=50; $f...
glb/cad_1dcc4d08c507.glb
Create a clamp for a 3D printer base. Start with a central rectangular block measuring 11mm wide, 10mm deep, and 8mm high, centered on the origin. Add two half-cylinders with a radius of 5mm and a height of 8mm to the left and right sides of the block, so the total width is 21mm. Subtract a vertical 16-sided polygona...
belt=7; belth=1.4; st=2; m3d=3+0.3; m3shd=6.8+0.4; m3nd = 6.2+0.3; m3nh=2.8; sp=2+belt+2; clampy=10; z=8; bw=belt+0.5; $fn=32; difference() { union() { translate([0,0,z/2]) cube([sp, clampy, z], center=true); translate([-sp/2, 0, 0]) cylinder(z, clampy/2, clampy/2); translate([sp/2, 0, 0]) cylinder(z, clampy...
glb/cad_d472b560a4ab.glb
Create a cylindrical disk with a diameter of 20mm and a height of 10mm. The outer surface of the cylinder should be defined using 64 facets. Position a smaller cylindrical hole exactly in the center of the disk, extending through the entire height. This central hole must have a diameter of 10mm (half the diameter of th...
diameter = 20; height = 10; segments = 64; hole = "yes"; r = diameter / 2; segments2 = segments > 6 ? round(segments/2) : 3; bHole = (hole == "yes"); difference() { cylinder(r=r, height, $fn=segments); if(bHole) { translate([0, 0, -height/2]) cylinder(r=r/2, height*2, $fn=segments2); } }
glb/cad_5ea48b569e28.glb
Create a Delta Spool Holder Parametric Cone by constructing a hollow truncated cone with a height of 35mm. The cone should have a large bottom circular base with a diameter of 60mm and taper upward to a smaller top circular opening with an internal diameter of 16mm. The walls of the cone must be 3mm thick, meaning the ...
internal_dia = 16; wall_thick = 3; external_small_dia = internal_dia+2*wall_thick; external_large_dia = 60; height = 35; module cone_shell() { union() { difference() { cylinder(d1=external_large_dia, d2=external_small_dia, h=height, $fn=180); translate([0,0,-wall_thick]) cylinder(d1=external_large_di...
glb/cad_b88b408a8ff6.glb
Create a Minitronics mount for an 80mm fan. Start with a central rectangular base plate measuring 65mm by 120mm with a thickness of 3mm. In the center of this plate, create a square cutout measuring 78mm by 78mm. At the four corners of the base plate, create four circular holes with a radius of 2mm. Position these ho...
include <fan_holder_v2.scad>; thick = 3; fan_size = 80; module minitronics_holes() { translate(v = [-28,-46.5 , -10]) { translate(v = [2.3,2.3 , 0]) { cylinder(h = 40, r=2,$fs =0.8); } translate(v = [54.65,2.6 , 0]) { cylinder(h = 40, r=2,$fs =0.8); } translate(v = [2.25,91.9 , 0]) { cylinder(h...
glb/cad_87eb55f9b2d2.glb
Create a magic wand prop by constructing a central vertical shaft and adding organic, spherical bulges. Start with a primary cylinder 16mm high with a radius of 0.5mm. At the base, add a conical section 4mm high that tapers from a radius of 0.75mm at the bottom to 0.5mm at the top. Along the vertical axis, place three ...
module makewand() { union() { cylinder(h=16,r=0.5); translate([0,0,0]) cylinder(r1=0.75,r2=0.5,h=4); translate([0,0,5]) sphere(r=1.75); translate([0,0,9]) sphere(r=1.5); translate([0,0,13]) sphere(r=1.25); translate([0,0,16]) cylinder(r1=0.5,r2=0.05,h=2.5); } translate([0,-2,11.2]) rotate([270,...
glb/cad_6aa2f9d7b49c.glb
Create a magnetic optics base consisting of a wide circular foundation and a narrower vertical neck. Start by creating a main cylinder with a diameter of 50mm and a height of 5mm. Centered on the top surface of this base, add a second, smaller cylinder with a diameter of 14mm and a height of 20mm. To accommodate a magn...
X=50; Y=25; d=8; q=13; r=3.5; magnet_hole = true; base_large(); module base_large(){ if (magnet_hole==true){ difference(){ cylinder(Y/5,X/2,X/2); cylinder(r,q/2,q/2); } }else{ cylinder(Y/5,X/2,X/2); } difference(){ translate([0,0,Y/5])cylinder((Y),X/2,(d+6)/2); translate([0,0,Y/5])cylinder((Y),(X/2)-6,((d+6)/2)-6); ...
glb/cad_e7979417f52f.glb
Create a Mississippi Queen Ship game piece. Start with a hull that is 48mm long, 20mm wide, and 6mm high. The hull should have a streamlined, rounded bow and stern. On the main deck, center a rectangular deck house that is 16mm wide and 32mm long with a height of 1.65mm. Add a second, smaller rectangular tier on top o...
$fn=64; w_beam = 20; w_wheelhouse = w_beam + 13; w_deck = 2; h_deck = 1.65; dia_wheelhouse = 18; h_hull = 6; l_hull = 48; h_stack = 5; dia_stack = 3; l_stack = -14; streamline = 0.7; offset_stack = (w_beam - 2 * w_deck)/4; h_wheelhouse_offset = (1 - 0.924) * dia_wheelhouse/2; echo (h_wheelhouse_offset); difference (...
glb/cad_c5e5849dda55.glb
Create a Penrose tiling pattern composed of two types of rhombic tiles, each with a thickness of 2mm. The first tile is a rhombus with side lengths of 10mm and internal angles of 72 and 108 degrees. The second tile is a rhombus with side lengths of 10mm and internal angles of 36 and 144 degrees. Arrange these tiles i...
module tile1() { linear_extrude(height=2) scale(10,10,10) polygon(points=[[0,0],[1,0], [cos(72)+1,sin(72)], [cos(72),sin(72)]]); } module tile2() { linear_extrude(height=2) scale(10,10,10) polygon(points=[[0,0],[1,0], [cos(36)+1,sin(36)],[cos(36),sin(36)]]); } module v1...
glb/cad_966d6a0427ac.glb
Create a Hall Effect Sensor Mount consisting of three connected rectangular plates, each 4mm thick. First, create a vertical upright plate measuring 20mm wide and 85mm high. Attached to the bottom of this upright, create a horizontal arm extending forward by 43mm and measuring 20mm wide. At the end of this arm, create ...
spacing = 12; bolt_size = 5; thickness = 4; width = 20; depth = 35; sensor_size =13; height = 85; angle = 58; sensor_position = width+11+sensor_size; reach = sensor_position + width/2; cube([width, height, thickness]); difference() { cube([reach, width, thickness]); translate([sensor_position, width/2, 0]) ...
glb/cad_da4b218d1edc.glb
Create a simplified low-profile Y-axis belt tensioner consisting of a clamp base and an integrated ram. First, construct the clamp base. Create a central block with a width of 6.2mm and a height of 2.8mm. Incorporate two vertical holes with a diameter of 5.5mm, spaced 18mm apart, that pass through the height of the b...
belt_pitch = 3; belt_width = 6.2; belt_height = 2.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; r...
glb/cad_0922bab7fb0e.glb
Create a "hexring" assembly of space-filling sphenoid hendecahedrons. First, define the base unit, a sphenoid hendecahedron, using the following vertices: a=[13/7, 3√3/7, 1], b=[1, √3, 0], c=[2, √3, 0.5], d=[2.5, √3/2, 0], e=[2.25, √3/4, 0.5], f=[2, 0, 0], g=[0, 0, 0.5], h=[2, √3, -0.5], j=[2.25, √3/4, -0.5], k=[0, 0, ...
crop_it_flat = "yes"; crop_flat = crop_it_flat == "yes" ? true : false; part = "hexring"; hc = 2; seed = 54*1; scal = 4; eps = 0.01*1; s = sqrt(3); c6 = cos(60); s6 = sin(60); alpha1 = 22*1; alpha2 = -11.08*1; shiftx = 4.582*1; shifty = 0*1; shiftz = 0*1; b0 = [0,0,0]*1; b1 = [shiftx,shifty,shiftz]*1; b2 = [sh...
glb/cad_bb22ec262332.glb
Create an ORAC Lathe Spindle Timing Gear. Start with a cylindrical base 40mm in diameter and 21mm in height. Centered through the entire height, add a vertical hole with a diameter of 26mm to accommodate the motor shaft. On top of this base, add a toothed cylindrical section 6mm high. This section should have 60 teeth...
number_of_teeth = 60; profile = 12; motor_shaft_diameter = 26; toothed_part_length = 6; base_height = 21; base_diameter = 40; belt_retainer = 1; retainer_height = 1; belt_idler = 1; idler_height = 1; screws_disposition = 2; nut_shape = 0; screw_profile = 4; nut_shaft_distance = 1.2; no_of_nuts = screws_di...
glb/cad_fcb5a0b2bb55.glb
Create a NEMA 23 stepper motor mount consisting of a rectangular base plate and a slide box. The base plate is 88.92mm wide, 182.5mm long, and 10mm thick. Remove four vertical cylindrical holes with a 2.5mm radius from the base plate. Position the first hole at [10, 5, 0], the second at [68, 5, 0], the third at [14, ...
inch = 25.4; base_thickness = 10; hole_size = 5; width = 88.92; length = 172.5 + 2 * hole_size; mount_1 = [10, hole_size]; mount_2 = [mount_1[0] + 58, mount_1[1]]; mount_3 = [mount_2[0]+81-77, mount_2[1] + 171.5]; mount_4 = [mount_3[0] - 68, mount_3[1]+1]; difference() { cube([width, length, base_thickness]); ...
glb/cad_5c32e05805d8.glb
Create a bolt mount for a lathe spindle stepper motor. Start with a main cubic body measuring 12.6mm by 12.6mm by 12.6mm. Cut this cube diagonally from one top edge to the opposite bottom edge at a 45-degree angle to create a wedge-like profile. Carve a smaller cubic recess into the top face, measuring 11.6mm by 11.6...
bolt_mount(6); module bolt_mount(bolt_size = 5, extension = 0) { width = bolt_size * 2.1; thickness = bolt_size / 6; translate([0,width - thickness + extension,width]) rotate([-90,0,-90]) { difference() { cube([width + extension, width + extension, width]); rotate...
glb/cad_b7339520a8e0.glb
Create a GT2 timing pulley for a stepper motor shaft. Start with a central cylindrical base 6mm high with a diameter of 20mm. Centered through the entire height, create a vertical hole with a diameter of 6.6mm for the motor shaft. On top of the base, add a toothed section 6mm high. This section should have 20 teeth fo...
number_of_teeth = 20; profile = 12; motor_shaft_diameter = 6.6; toothed_part_length = 6; base_height = 6; base_diameter = 20; belt_retainer = 1; retainer_height = 1; belt_idler = 1; idler_height = 1; screws_disposition = 1; nut_shape = 0; screw_profile = 4; nut_shaft_distance = -0.6; no_of_nuts = screws_d...
glb/cad_4949de1ec712.glb
Create an egg holder consisting of a thin circular base with four tapered support pillars. Start by creating a flat cylinder with a radius of 25mm and a height of 1mm. Position four identical tapered pillars vertically on this base. Each pillar is a 24-sided prism that transitions from a bottom radius of 2.2mm to a top...
dist = 10.0; eggholder_sml(); module eggholder_sml() { difference() { union() { cylinder(r=25, h=1); translate([ dist, dist,0]) cylinder(r1=2.2, r2=1.2, h=20, $fn=24); translate([-dist, dist,0]) cylinder(r1=2.2, r2=1.2, h=20, $fn=24); translate([ dist,-dist,0]) cylinder(r1=2.2, r2=1.2, ...
glb/cad_31955a9f7845.glb
Create a Heavy Duty Binocular Tripod Mount with a total depth of 25mm. The main body is a clamp designed to hold a binocular barrel. Start by creating a cylinder with a diameter of 57mm and a height of 25mm, centered on the Z-axis. Inside this main body, remove a conical void to accommodate the barrel; this void shou...
barrel_diameter= 51; barrel_diameter_min = 48.5; depth=25; arm_length=80; screw_offset = 0; rotate([0,90,0]) intersection() { cube([depth+1,arm_length*2,barrel_diameter+14],center=true); difference() { union() { rotate([0,90,0]) cylinder(d=barrel_diameter+6,h=depth,center=true,$fa=5...
glb/cad_34473630f718.glb
Create a Generic 3D-Printer Shutdown Device consisting of a base and a lid. For the base, create a rectangular platform measuring 88mm x 53.5mm x 3.2mm. Add a raised inner wall around the perimeter to a height of 1mm, leaving a gap for the electronics. Incorporate four mounting pillars at the corners, each 10mm x 10m...
$fn=50; full_model(); module full_model() { translate([0,0,30]) translate([2,42.5+7+2,30+2.2])rotate([180,0,0]) deckel(); boden(); translate([4+2,30+11,16]) rotate([0,180,90]) gegenhalter(); color([1,0,0]) { translate([-2,11+7+0.5,9])rotate([0,90,0])cylinder(r1=4,r2=4, h = 20); translate(...
glb/cad_8339a7e3a438.glb
Create a parametric motor case by starting with a large outer cylinder that has a radius of 14.25mm and a height of 15mm. Remove a smaller concentric inner cylinder from the center with a radius of 12.25mm and a height of 13mm to create a hollow tube with a wall thickness of 2mm. To create mounting points, remove two s...
dm = 24.5; th = 2; hc = 13; he = dm/2; de = 2; dbe = 15.75; le = 2.5; dte = le/2; if (le-dte >0) { difference() { cylinder(r = (dm/2+th), h = (hc+th)); cylinder(r = (dm/2), h = hc); translate([dm/2-he,dbe/2,hc-dte/2]) cylinder(r = (de/2)+th, h = le+2 * th, center = true); translate([dm/2-he,-dbe/2,hc-dte/2]) cylinder...
glb/cad_65291f4badbf.glb
Create a slider box for controlling RGB lights. Start by constructing a main rectangular enclosure with outer dimensions of 110mm in length, 70mm in width, and 40mm in height. The walls of this enclosure are 3mm thick. On the top surface, create three identical rectangular recessed slots for sliders. Each slot should...
difference() { union() { cube(size = [110,3,40]); translate([0,70-3,0]) cube(size = [110,3,40]); translate([110,0,0]) cube(size = [3,70,40]); cube(size = [110,70,2]); translate([35,15,4]) { difference() { cube(size = [70,20,8], center = true); translate([0,0,2]) cube(size = [60,10,8], center = tru...
glb/cad_c786382e86e4.glb
Create a Smallworld Sliding Race Box designed to hold race tokens. The main body is a rectangular tray with rounded corners and a wall thickness of 2mm. The interior cavity is sized to accommodate 8 tokens, each 2mm in height, resulting in an internal depth of 16mm. The tray features a sliding lid mechanism. Construct...
$fn=100; grosor=2; fichas=8; raza=2; module placa(abierto=false, x=86, y=45) { offset(delta=0.1) union(){ difference(){ union(){ translate([y/5, y/5]) circle(y/5); translate([y/2, y/2]) circle(y/2); polygon([ [0,y/5], [0,y/2], [y/2,y], [x,y], [x-6,0], [y/5,0...
glb/cad_64a5b9b80228.glb
Create a Tom Tom phone holder mount. Start with a central cylinder 20mm in diameter and 4mm high. Centered on this cylinder, add a rectangular block 32mm wide by 36mm long and 4mm high, with rounded corners created by a 4mm radius. Position a second cylinder 25mm in diameter and 12mm high on top of the base. At the top...
difference(){ union(){ cylinder(4,20,20); translate([-16,0,0]) minkowski(){ cube([32,36,4]); cylinder(1,4); } cylinder(25,20,12); translate([0,0,24]) sphere(12); } translate([0,0,25+5]) cube([50,3.5,50],true); translate([-25,-25-(3+1.5),5]) cube([50,25,50]); translate([25,25+3+1.5,5]) rotate([0,0,...
glb/cad_498e295f6336.glb
Create a customizable filament spool hub. Start by creating a main cylinder with a diameter of 65mm and a height of 20mm. Remove a smaller concentric cylinder from the center with a diameter of 28mm to create a hole for a rod. To reduce material, remove four smaller cylinders, each with a diameter of 16.25mm, positione...
diameter = 65; height = 20; rod_d = 28; $fa = 1; $fs = 1; difference(){ translate([0,0,height/2])cylinder(r1 = diameter/2, r2 = diameter/2, h = height, center=true); translate([0,0,0]) cylinder(r=rod_d/2, h=height*3, center=true); translate([diameter/1.8, 0,0]) cylinder(r=diameter/4, h=height*3, center=true...
glb/cad_1e9cca304c12.glb
Create a dry box bar mount consisting of a flat rectangular base plate and a semi-circular support lip. Start with a base plate 60mm wide, 60mm deep, and 2mm thick, centered on the origin. On top of this plate, construct a U-shaped lip with a height of 15mm and a thickness of 5mm. The inner diameter of this lip must be...
plate_thickness = 2; rod_d = 28; lip_height = 15; lip_thickness = 5; bolt_width = 4; support = rod_d/4; difference(){ union(){ translate([-rod_d,-rod_d-2,0]) cube([rod_d*2, (rod_d*2)+4, plate_thickness]); translate([0,0,0]) cylinder( r1 = (rod_d+lip_thickness)/2, ...
glb/cad_2e2a5d863a49.glb
Create a handlebar catcher consisting of a central head and two symmetrical arms. Start with a central cylinder 19mm in diameter and 24mm in height, centered on the origin. Attach a rectangular "nose" block to this cylinder, measuring 14.2mm in length (extending from the center), 5mm in width, and 24mm in height. Crea...
$fn =50; arm_d = 13.6; arm_inner_d = 6; arm_hole_d = 4.2; arm_width = 5; arm_length = 17; center_d = 19; screw_d = 8; screw_head_d = 14.2; screw_head_depth = 10; height = 24; nose_width = 5; nose_length = 4.7; central_cutout_d = 12.5; y_dist = 22; alpha = atan((y_dist/2)/(center_d+arm_length)); module arm() { ...
glb/cad_6236b8ea2f36.glb
Create a Detachable Pedal Mount consisting of two primary interlocking components: a frame sleeve and a pedal mount attachment. First, create the frame sleeve as a cylinder with a height of 30mm and an outer diameter of 42.5mm (38.5mm frame diameter plus 2mm thickness on each side). Hollow out the center with a 38.5m...
$fn = 50; frame_diameter = 38.5; screw_diameter = 5; cut_size = 1.0; height = 30; thickness = 2; frame_pedal_mount_dist = 14; pedal_mount_diam_1 = 11.5; pedal_mount_depth_1 = 15.0; pedal_mount_diam_2 = 9.3; flap_length = 13; flap_radius = 14; module pedal_mount() { difference() { union() { ...
glb/cad_e7cb47e18aca.glb
Create a DIN rail holder consisting of a cylindrical tube body and a mounting clip. The tube has a top radius of 7.5mm and a bottom radius of 7.5mm. The main body is a cylinder with a height of 43.785mm. Construct the mounting clip by combining a top clip and a bottom clip. The top clip is a rectangular block 4mm wid...
include <MCAD/units.scad>; include <MCAD/2Dshapes.scad>; main_thing = "tube"; frugal = false; number_of_things = 1; side_holes = 0; side_hole_diameter = 1.8; release_tab = false; body_length = 12; style="tapered"; top_radius = 7.5; bottom_radius = 7.5; chamfer_radius = 8.5; tube_height = 0; tube_overhang ...
glb/cad_3ff8b0ba93f3.glb
Create a flashlight pocket clip consisting of a gripping ring and an attached tension arm. First, construct the grip by creating a hollow cylinder with an inner diameter of 22mm and an outer diameter of 28mm, with a wall thickness of 3mm. Cut a rectangular gap 15mm wide through the center of this ring to leave a C-shap...
item_diameter=22; clip_height=40; clip_gap=5; clip_thickness=6; grip_thickness = 3; grip_height=5; grip_gap=15; fudge = 0.01; union(){ color([1,0,0]) clip(); color([0,1,0]) grip(); } module clip(){ width=10; top_thickness = clip_thickness; translate([-clip_thickness+3, width/2, 0]) rotate(a=90, v...
glb/cad_092b36ee0f5d.glb
Create a Customizable Wall Hanger with a uniform thickness of 4mm and a total width of 20mm. The hanger consists of a straight section and a curved hook. Start with a straight rectangular base 40mm long. From this base, extend a curved arc with a diameter of 40mm that spans an angle of 120 degrees to form the hook. Th...
width=20; thickness=4; length=40; turn_diameter=40; turn_angle=120; resolution=50; geometry=8; hole_diameter=3; hole1=0; hole2=20; countersink_depth=2; geo_width=width-thickness*cos(360/(geometry*2)); rotate(a=[0,90,180]) difference(){ assembly(); translate([hole1,0,0]) hole(); translate([hole2,0,0]) ...
glb/cad_e7b46684e8c0.glb
Create a cube with dimensions of 10mm by 10mm by 10mm. Center the cube on the origin of the coordinate system.
_type = "cube"; _pw_width = 66; _pw_thick = 37; _vesa = 100; _board_thick = 18; _epaisseur = 3; _largeur = 20; _ajustement = 1; if(_type == "cube") { cube(size = [10,10,10], center = true); } else if(_type == "cylindre") { cylinder(20,20,20,$fn=3); } translate([0,10,0])text("CUSTOMIZER");
glb/cad_c0d5b1c4c795.glb
Create a stylish clothing button with a total diameter of 20mm and a base thickness of 3mm. The main body is a cylinder with a flat back. To create the decorative rim, add a concentric outer ring that extends 1mm above the base thickness, but carve out the center of this rim to leave a hollow circular channel with a ra...
button_style="rim"; button_diameter = 20; button_thickness = 3; holes = 4; holesize = 1.5; rim_height = 1; button_radius=button_diameter/2; module buttonbody() { if(button_style=="flat") { cylinder(button_thickness,button_radius,button_radius); } else if (button_style=="bevel_edge") { hull() { ...
glb/cad_eeeae7580182.glb
Create a Z Axis Stabilizer by starting with a rectangular block 20mm long, 15mm wide, and 15mm high. Round the two shorter ends of the block by adding semi-cylindrical faces with a radius of 7.5mm, centered on the width, to create a capsule-like body. Bore two vertical holes completely through the height of the block. ...
$fn = 50; length = 20; width = 15; height = 15; radius = 4.15; center_distance = 16; module pegs() { translate([-center_distance / 2,0,-1]) cylinder(h = height + 2, r = radius); translate([center_distance / 2,0,height / 2 / 2]) cylinder(h = height, r = radius); } module body() { cube([length, width, height]); ...
glb/cad_9c5b744bbf95.glb
Create a Z Axis Stabilizer consisting of a central rectangular block with rounded ends. The main body is 20mm long, 15mm wide, and 15mm high. The two ends of the block are semi-cylindrical with a radius of 7.5mm. Through the center of the block, create two parallel vertical holes for the Z axis rods, each with a radi...
$fn = 50; length = 20; width = 15; height = 15; radius = 4.15; center_distance = 16; screw_radius = 1.15; nut_radius = 2.31; nut_height = 1.7; module pegs() { translate([-center_distance / 2,0,-1]) cylinder(h = height + 2, r = radius); translate([center_distance / 2,0,height / 2 / 2]) cylinder(h = height, ...
glb/cad_7c6912d388b2.glb
Create a parametric bead roller tool consisting of a rectangular block with a length of 150mm and a thickness of 30mm. The block is centered on the Y-axis. Carve a series of semi-cylindrical troughs along the top length of the block to create rolling tracks. Each trough is a cylinder with a length of 150mm, centered v...
holeRadius00 = 6; holeRadius01 = 8; holeRadius02 = 10; holeRadius03 = 10; holeRadius04 = 8; holeRadius05 = 6; guideTrackRadius = 2; spacingDistance = 2; blockLength = 150; halfBlockThickness = 15; $fn = 30; blockWidth = holeRadius00*2 + holeRadius01*2 + holeRadius02*2 + holeRadius03*2 + holeRadius04*2 + holeRadius0...
glb/cad_fba45d6940fc.glb
Create a desktop PC stand with a total height of 100mm, a depth of 25mm, and a base width of 200mm. The stand features a central rectangular slot 102mm wide to hold a device. Construct the main body by creating a solid block that transitions from the 200mm base width at the bottom to a narrower top section that match...
StandDepth = 25; StandHeight = 100; BaseWidth = 200; SlotWidth = 102; BaseHeight = 7.5; MinEdgeWidth = 2.5; NrRidges = 4; ridgeWidth = StandDepth / (2 * NrRidges - 1); module ridgeDuplicator() { for (y = [-StandDepth/2 + ridgeWidth : 2*ridgeWidth : StandDepth/2]) translate([0,y, 0]) ...
glb/cad_17ff2501b043.glb
Create a Minecraft Giant Mushroom Shot Glass by constructing a hollowed-out cubic vessel with a thick base. Start by building the main body as a union of four vertical walls and a base. Each wall is a rectangular prism 40mm wide, 40mm high, and 10mm thick, positioned symmetrically around the center to form a square per...
m=0.05; slices = 80; side_h = 40.0; side_w = 40.0; side_d = 10.0; side_olap = 2.0; base_d = 0.35*5; stalk_w_h = 7.0; stalk_mount = 10.0; stalk_height = 20.0+stalk_mount; stalk_base_w = 40.0; stalk_base_d = side_d/2; stalk_hole = stalk_w_h + 2.0; stalk_mount_cube_w_h = stalk_hole+base_d*3; stalk_mount_cube_d = stalk...
glb/cad_3c89a663d61e.glb
Create a Cubic Fractal by recursively arranging spheres. Start with a central sphere with a diameter of 20mm. On each of the six faces of this central sphere, place a smaller sphere with a diameter of 10mm. The distance between the center of the central sphere and the center of each smaller sphere should be 15mm. For...
recursion=2; base_size=20; size_decrement=0.5; fract(rec=recursion, size=base_size); module fract(pos=[0,0,0], size=200, rec=2, dir=-1, lastpos) { newsize=size*size_decrement; distance=(newsize+size)/2.001; pos2rec=size/3; size2rec=newsize*size_decrement; distance2rec=(size2rec+size)/2.001; if(dir!=-1) { hull...
glb/cad_6de98b218189.glb
Create a "Choose-a-size box" consisting of a main container and a sliding lid. For the container, start with a solid rectangular block measuring 60mm in length, 38mm in width, and 20mm in height. Hollow out the center by removing a rectangular volume that leaves walls 2mm thick on the sides and bottom, but leave the to...
_x = 60; _y = 38; _z = 20; module slide_box(x, y, z) { translate ([0,0,z/2]) union (){ difference(){ cube ([x,y,z],true); translate ([0,0,3]) cube ([x-4,y-8,z],true); translate ([2,0,z/2-2]) cube ([x,y-4,5],true); } translate ([0,0,z/2+2]) difference(){ cube ([x,y,4],true); ...
glb/cad_189769cffc75.glb
Create an ink cartridge recycle box consisting of a main container and a separate lid. Construct the main box as a hollow cube with outer dimensions of 150mm x 150mm x 100mm and a wall thickness of 2mm. On the front exterior face, center a recycling symbol and a stylized ink cartridge icon, both embossed to a height ...
$fn=32; box(); lid(); module box() { difference() { union() { translate([-75,-75,0]) { cube([150,150,100]); } translate([-5,-75,45]) { rotate([90,0,0]) { scale([0.13,0.13,1]) { color("green") InkCartridge(2); } } } translate([...
glb/cad_b34ea4d047b1.glb
Create a balloon-powered jet car consisting of a main chassis and four wheels. For the chassis, start with a nose sphere of radius 16mm. Attach a conical body that extends 100mm in length, tapering from the 16mm nose radius to a rear radius of 28mm. Flatten the bottom of the chassis to create a stable base. At the re...
$fn=75; nose_radius=16; back_radius=28; car_length=100; balloon_tube=7; tube_height=15; tube_position=40; tube_thickness=2; exhaust_position=8; axel_width = 78; axel_bushing = 3; bushing_width = 2; axel_size = 4; axel_body = 7; port_diameter = 7; port_thickness = 2; nail_diameter = 1.7; wheel_diameter = 35; wheel_wid...
glb/cad_02ff2eea2fd3.glb
Create a Cubic Fractal +8 rounded by recursively placing spheres. Start with a central sphere of 20mm diameter. For the first level of recursion, place smaller spheres of 7.5mm diameter at the center of each of the six faces of an imaginary cube surrounding the central sphere. The distance from the center of the main s...
recursion=2; base_size=20; size_decrement=0.375; fract(rec=recursion, size=base_size); module fract(pos=[0,0,0], size=200, rec=2, dir=-1, lastpos) { newsize=size*size_decrement; distance=(newsize+size)/2.001; pos2rec=size/3; size2rec=newsize*size_decrement; distance2rec=(size2rec+size)/2.001; if(dir!=-1) { hu...
glb/cad_7acf34eb390e.glb
Create a 3D model of a Customizable 2D Line Fractal based on a Koch curve variant. The object is a flat, extruded geometric shape with a thickness of 3mm. The base geometry is generated through four levels of recursion. Start with a base line segment and replace each segment with a specific generator shape consisting...
include <utils/build_plate.scad> selected_shape = 0; recursion=4; custom_shape = [[[0,-0.01],[1,-0.01],[2,1.9],[3,1.9],[4,-0.01],[5,-0.01]],[[0,1,2,3,4,5]]]; shapes=[[[[0,-0.01],[1,-0.01],[1,0.9],[2,0.9],[2,-0.01],[3,-0.01]],[[0,1,2,3,4,5]]], [[[0,-0.01],[1,-0.01],[2,1.75],[3,-0.01],[4,-0.01]],[[0,1,2,3,4]]], [[[0...
glb/cad_5a9bc17e68bd.glb
This OpenSCAD code defines a complex, organic shape—specifically a **stylized leaf**—using a series of cubic Bézier curves. ### Technical Breakdown **1. The Bézier Engine** The bottom of the script contains the mathematical foundation for cubic Bézier curves. It uses the standard Bernstein polynomials: * **`BEZ03` ...
$fn = 5; linear_extrude(1) { leaf(); } module leaf() { difference() { bezier_polygon([[[24.070122, -0.00053740321], [24.069672, -0.00058886202], [23.951455000000003, -0.057192680010000004], [23.951266, -0.05738148001]], [[23.951266, -0.05738148001], [23.951036000000002, -0.05761178001], [23.908566, -0.1215279000...
glb/cad_40983f6698e4.glb
Create a handle for a hex wrench. The main body is a cylinder with a diameter of 15mm and a height of 40mm, topped with a hemisphere of the same radius. The base of the cylinder features a 5mm tall section that tapers slightly inward. Create a central vertical hole through the entire length of the handle with a radius...
hex_size = 2.2; hole_delta = 0.15; handle_diameter = 15; handle_height = 40; handle(hex_size); screwSize = 3.1; screwHead = 6; text="M2"; module handle(hex_size) { hex_radius = (hex_size + hole_delta) / 2; hex_size = hex_size + hole_delta; handle_radius = handle_diameter / 2; knurl_offset = handle_radius...
glb/cad_53c7455062bc.glb
Create a handle for a hex wrench. The main body is a cylinder with a diameter of 15mm and a height of 35mm, topped with a hemisphere of the same radius. The base of the cylinder starts with a 5mm tall section that tapers slightly from a radius of 12mm to 7.5mm. Remove a central vertical hole with a radius of 1.775mm (...
hex_size = 3.4; hole_delta = 0.15; handle_diameter = 15; handle_height = 35; handle(hex_size); screwSize = 3; screwHead = 6; text="M3"; lockType=0; shiftWrenchLevel = -5; module handle(hex_size) { hex_radius = (hex_size + hole_delta) / 2; hex_size = hex_size + hole_delta; handle_radius = handle_diameter...
glb/cad_09e7b7e25231.glb
Create a rectangular build plate with dimensions 240mm by 340mm and a thickness of 5mm. Round all four corners with a radius of 5mm. At four specific locations, create countersunk screw holes that pass through the plate. Each hole consists of a cylindrical shaft with a radius of 1.7mm and a conical countersink with a ...
BuildPlatform_X = 240; BuildPlatform_Y = 340; BuildPlatform_Z = 5; ScrewHole = 3.40*1; ScrewTapperDia = 6.72*1; ScrewTapperHeight = 3.3631*1; ScrewTapperOffset = BuildPlatform_Z-(ScrewTapperHeight-.05); SmBldPlateDisC = 209*1; LgBldPlateDisC = 309*1; EdgeRadius = 5; SmallCarriage = "yes"; LargeCarriage = "no"; Ri...
glb/cad_1f338f3c8450.glb
Create a Sensonic toothbrush wall hanger. Start by creating two identical holder units positioned side-by-side with a center-to-center distance of 20.5mm. Each holder unit is based on a truncated cone with a height of 8mm, a bottom diameter of 23mm, and a top diameter of 13mm. Hollow out the center of each cone with ...
$fn=180; wall=2; dt2=0.02; rotate([90,0,0]) union(){ holder(); translate([20.5,0,0]) holder(); color("red") difference(){ translate([0, -17.5, -9]) cube([20, 5, 9]); union(){ rotate([-90,0,0]) translate([10, 4.5, -19]) cylinder(d=3 , h=10); rotate([-90,0,0]) translate([10, 4.5, -14.5]) c...
glb/cad_cdfcf7219e0d.glb
Create a Sensonic toothbrush holder consisting of a vertical rectangular pillar and a tapered cup at the top. Start by creating a central vertical pillar that is 9mm wide, 5mm deep, and 90mm tall. At the base of this pillar, add a flat rectangular plate that is 24mm wide, 5mm deep, and 2mm thick, centered on the pillar...
$fn=180; wall=2; dt2=0.02; difference(){ union(){ cylinder(d2=19+wall, d1=9+wall, h=8); translate([-4.5, -15.5, 0]) cube([9, 10, 8]); translate([-4.5, -15.5, -82]) cube([9, 5, 90]); translate([-10, -15.5, -82]) cube([24, 5, 2]); translate([-4.5+10, -15.5, -82]) cube([9, 24, 2]); translate([-4.5-1...
glb/cad_a80f353d8335.glb
Create a wall holder for a power strip by constructing a hollowed-out rectangular frame. Start with a solid outer block measuring 54.8mm wide, 17.4mm deep, and 28.4mm high. From the center of this block, remove a rectangular volume measuring 50mm wide, 15mm deep, and 26mm high to create a sleeve with a wall thickness o...
$strip_width=50; $strip_height=26; $frame_width=15; $frame_thickness=2.4; $holder_width=$strip_width+2*$frame_thickness; $holder_length=20; $holder_thickness=$frame_thickness; $pin_width=25; $pin_thickness=12; $pin_heigth=5; $screw_hole_diameter=4; $fn=150; difference(){ cube([$strip_width+2*$frame_thickness,$f...
glb/cad_619524f00a7d.glb
Create a Smallworld Single Token Sheath, which is a shallow open tray designed to hold a game token. Start by creating a square outer frame with dimensions of 30mm by 30mm and a total height of 3mm. The walls of this frame should be 1mm thick. Inside the frame, carve out a central square cavity that is 28mm by 28mm a...
$fn=100; mirror([1,0,0]) union(){ linear_extrude(0.5) difference(){ translate([4.5,5.5]) difference(){ union(){ difference(){ union(){ difference(){ union(){ offset(3) circulo(); translate([-7.5,-4.5]) square([15,4.5]); ...
glb/cad_04e880a36894.glb
Create a bobbin whorl with an overall radius of 55mm and a total thickness of 9mm. Start by creating a central hub with a radius of 15mm and a thickness of 9mm, with a concentric cylindrical hole bored through the center with a radius of 3.5mm. The hub should have an additional cylindrical section on top with a radius ...
$fn=100; bore_rad = 3.5; hub_rad = 15; thickness=9; rim_thickness = 10; spoke_width = 6; module groove (radius) { rotate_extrude() translate([radius-1, 0]) { translate([0, 4.5]) circle(r=2); difference() { translate([-1, 0]) square(thickness); translate([-1, thickness-0.75]) circle(r=2); tran...
glb/cad_3b28c418648a.glb
Create a K8200 electronics cover fan inlet duct. Start with a main rectangular body that is 42mm wide, 42mm long, and 10mm deep. The walls of this body are 0.95mm thick. At each of the four corners of the main body, create a square post measuring 10mm by 10mm and 10mm high. Center a 12-sided polygonal hole with a diam...
fan_center = 32; screw_diam = 3.7; post_size = 10; wall_thickness = 0.95; duct_length = 35; duct_width = 20; duct_depth = 10; extra_width = 0; nut_size = 6; nut_depth = 2.75; nut_ypos = 6.5; baffle_interval = 3.25; baffle_clearance = 5; nut_radius = nut_size* 0.5 / cos(30); total_width = fan_center + post_size + e...
glb/cad_e11f934526a8.glb
Create a Roomba Bushing by starting with a main cylindrical body that has an outer diameter of 13.8mm and a total height of 5.4mm. The base of this cylinder is a solid disk 3mm thick. Centered vertically through the entire part, remove a cylindrical hole with a diameter of 2.8mm. From the top surface, remove a centra...
$fn=60; tol=0.2; od=14-tol; id=3; deep=5.4; tip1=2.8; tip2=tip1+2; w=3; wt=11.5; hex=10.3*1.115-tol/2; difference() { union() { cylinder(r=od/2-tol, h=3); translate([0,0,3-tol/2-1]){ cylinder(r2=od/2,r1=od/2-tol, h=1); } translate([0,0,3-tol/2]){ cylinder(r=od/2, h=deep-3); } translate([0,0,deep-tol/2]) ...
glb/cad_d270ff971ae6.glb
Create a Shamrock Dice by starting with a cube that has a total size of 25mm on all sides. Round all edges and corners of the cube using a radius of 12mm. On each of the six faces, engrave a shamrock symbol to a depth of 3mm. Each shamrock should consist of a central stem and a number of leaves corresponding to the fac...
size = 25; resize([size,size,size]) dice(); module dice(){ side = [ [180,0,0], [90,0,0], [0,-90,0], [0,90,0], [-90,0,0], [0,0,0] ]; size = 100; rnd = 12; depth = 3; difference(){ minkowski(){ cube([size-rnd*2,size-rnd*2,size-rnd*2], center=true); sphere(rnd); }...
glb/cad_1842acf283b9.glb
Create a parametric flange for mounting a cylindrical object. Start with a circular base plate that has a thickness of 3mm and an overall diameter of 33.9mm. In the center of this base, create a vertical cylindrical collar with an interior diameter of 19.9mm and a height of 36mm. The wall thickness of this collar is 7m...
$fn = 120; epsilon = 0.01; main_height = 36; wall_thickness = 7; hole_diameter = 19.9; inner_floor_thickness = 0; outer_floor_thickness = 3; num_screw_holes = 2; mount_hole_backoff = 1; counterbore_diameter = 7.5; screw_diameter = 3.9; lip_width = 8; squared_off = true; easing_upper_radius = wall_thickness * 0.3; ea...
glb/cad_27f2f3a527d8.glb
Create a Grommet-on-Cable Overmold positive. Start with a central cylinder that has a total height of 8mm and a diameter of 21mm. Bore a hole through the entire center of this cylinder with a diameter of 4mm to accommodate a cable. To create the chassis groove, remove a ring from the center of the main cylinder. This ...
Nominal_Grommet_Thickness = 3; Cable_Diameter = 4.0 ; Wall_Hole_Diameter = 15; Wall_Thickness = 2; Moldover= true; Chamfer_Depth = 0; $fn = 200; Grommet_Diameter = Wall_Hole_Diameter+Nominal_Grommet_Thickness; Grommet_Thickness = 2*Nominal_Grommet_Thickness + Wall_Thickness; translate([0,0,-Grommet_Thickness/2]...
glb/cad_84b98b3711c4.glb
Create a two-part mold for a grommet overmold consisting of two identical cylindrical blocks placed side-by-side. Each block must be a cylinder with a radius of 16mm and a height of 12mm. For each cylinder, create a central cavity by subtracting a scaled and rotated version of the grommet positive geometry. In the fi...
model_filename = "Grommet-Parametric.stl"; model_rotate = [90,0,90]; model_translate = [0,0,0]; model_scale = 1; mold_diameter = 16; mold_height = 12; mold_spacing = 5; pour_hole_translate = [0,0,3]; pour_hole_rotate = [0,0,0]; pour_hole_r1 = 1.75; pour_hole_r2 = 1.75; pour_hole_height = 12; key_size = 0; key_margin...
glb/cad_0eac55c6fa07.glb
Create a Crybaby Low-Cost Alarm consisting of two separate parts: a main base unit and a top magnet holder. For the main unit, create a rectangular block with an overall width of 37mm, a depth of 37mm, and a height of 46.25mm. Hollow out the center of this block by removing a rectangular section that starts 2mm from ...
wall_thickness = 2; height_to_sensor = 42; alarm_depth = 17; alarm_width = 33; side_channel_depth = 10; magnet_dia = 13.5; magnet_thickness = 3.5; string_dia = 3; epsilon = 0.01; left_width = wall_thickness + alarm_width; right_width = magnet_thickness + wall_thickness; overall_width = left_width + right_width...
glb/cad_022b9201a932.glb
Create an open-source fiber optic holder designed to secure a cable to an 8mm smooth rod. Start by creating a main cylindrical body with a diameter of 25mm and a height of 10mm. At the center of this body, create a vertical cylindrical hole with a diameter of 8.5mm to accommodate the fiber optic cable. To allow the...
x=8.5; y=10; z=3; X=50; Y=25; a=3; b=6; c=3; d=8; e=30; f=3; g=6; i=3; j=3; k=50.8; l=50.8; m=3; n=3; o=6; p=3; q=13; r=3.5; magnet_hole = true; fiber_optic_holder(); module base_large(){ if (magnet_hole==true){ difference(){ cylinder(Y/5,X/2,X/2); cylinder(r,q/2,q/2); } }else{ cylinder(Y/5,X/2,X/2); } difference(){...
glb/cad_aa51c107137a.glb
Create a Customizable Breadbox Plate consisting of a rectangular grid of interconnected elements. The overall dimensions of the plate are 390mm by 219mm with a thickness of 2mm. Construct the main body as a grid of square cells. Each cell is defined by a network of intersecting struts that are 2mm wide, creating open ...
$fn=100; module Trapez(xa, xi, y, h, d) { CubePoints=[[-xi/2, -0.1, 0], [ xi/2, -0.1, 0], [ xa/2, y, 0], [-xa/2, y, 0], [-xi/2, -0.1, h], [ xi/2, -0.1, h], [ xa/2, y, h], [-xa/2, y, h]]; CubeFaces=[ [0,1,2...
glb/cad_1beefadf92ce.glb
Create an Infinite Cubic Fractal starting with a central cube 200mm in size, centered at the origin. The fractal is generated through three levels of recursion where each face of every cube is populated with smaller child cubes. For each recursion step, the size of the new cubes is exactly one-third the size of the cub...
recursion=3; base_size=200; size_decrement=1/3; fract(rec=recursion, size=base_size, first=true); module fract(size=200, rec=2, first=false) { newsize=size*size_decrement; distance=(newsize+size)/2.001; cube(size,center=true); if(rec>0) { if(first) { rotate([180,0,0]) { translate([0,0,distance]) fract(ne...
glb/cad_c0aaa9b9bd90.glb
Create a "braid blossom" consisting of a continuous, undulating organic strand. The shape is generated by a sequence of 36 spheres, each with a radius of 20mm and a facet resolution of 24. These spheres are positioned along a path where the X-coordinate increases by 10mm for each step, while the Y and Z coordinates fol...
numCir=36; deg=360; sph=20; yWidth=35; fn=24; move=10; pitch=deg/numCir; nc1=numCir-1; module hullit(z,r,g,b) { echo (.5+(sin(pitch*2*(z-2)))/2); color([ r*(1-(.5+(sin(pitch*2*(z)))/2)), g*(1-((.5*z)+(sin(pitch*2*(z)))/2)), b*(1-((.5*z)+(sin(pitch*2*(z)))/2)) ]) hull() { do(z); do(z+1); } } ...
glb/cad_c17035fb9551.glb
Create a Shamrock Tealight consisting of a thin flexible sheet, a base, and a lid. First, create a rectangular sheet with a length of 240mm, a height of 70mm, and a thickness of 0.5mm. On this sheet, cut out four identical shamrock patterns spaced evenly along the center. Each shamrock consists of a large outer outli...
thickness = 0.5; circ = 240; leaf_count = 3; sheet_size = [circ,70]; spacing = 10; shape_count = 4; nested_count = 1; large_shape_size = min((sheet_size[0]-spacing)/shape_count,(sheet_size[1]-spacing)); small_shape_size = large_shape_size/5; linear_extrude(thickness) difference(){ square(sheet_size,center=true); ...
glb/cad_4a77f3bf61e2.glb
Create a 4-bay 2.5-inch SSD mount bracket. The structure consists of a main base plate and a drive tray. The base plate is a rectangle measuring 105mm by 14.8mm with a thickness of 1mm. At each end of the plate, create a mounting tab measuring 8.75mm wide and 11.25mm high with a thickness of 6mm. Center a 5mm diamete...
include <omdl-v0.6.1/shapes/shapes2de.scad>; $fn = 180; mmt = 1.00; boxx = 120.00; boxy = 25.50; boxtw = mmt*6.5; boxtd = mmt*2; fssx = 105.00; fssy = 14.80; fsd = 5.00; fso = 7.50; frt = 5.00; fsmw = fsd * 1.75; fsmh = fsd * 2.25; fsmt = mmt * 6.00; hdh = 10.00; hdl = 101.00; hd...
glb/cad_a10250545237.glb
Create a flat lens board for an MPP Mk VIII 4x5 view camera. Start with a square plate measuring 95mm by 95mm with a thickness of 5.5mm. Round all four corners of the plate with a radius of 4.7625mm. From the center of the plate, remove a central cylindrical hole with a radius of 16.7mm that passes completely through ...
$fn=100; radius=9.525/2; laenge=95; dicke=5.5; stufenbreite=5; stufentiefe=2.55; lochradius=32.5/2+0.4; mutterradius=41.5/2; rotate([0,180,0]) difference() { roundedRect([laenge-radius,laenge-radius,dicke],radius); { translate ([-laenge/2,laenge/2-stufenbreite,0]) cube([laenge,stufenbreite,stufentiefe]); ...
glb/cad_c35819221ccd.glb
Create a coned lens board for an MPP Mk VIII 4x5 view camera. Start with a square base plate measuring 95mm by 95mm with a thickness of 5.5mm and rounded corners with a radius of 4.7625mm. Centrally carve out a conical void from the top face. This cone should have a base diameter of 85mm (95mm minus twice the thickne...
$fn=200; radius=9.525/2; laenge=95; dicke=5.5; stufenbreite=5; stufentiefe=2.55; lochradius=32.5/2+0.4; mutterradius=41.5/2; spanner=13; kegelhoehe=21; basisdurchmesser=laenge-2*5; spitzendurchmesser=mutterradius+spanner; rotate([0,180,0]) difference() { union(){ roundedRect([laenge-radius,laenge-radius,dicke...
glb/cad_a00430cc374d.glb
Create a Sodastream bottle holder for a Cornelius keg. Start with a central rectangular plate that is 30mm wide, 325mm high, and 8mm thick. Curve the back of this plate to match a radius of 110mm so it sits flush against the keg. At the bottom of the plate, create a base collar by forming a cylinder with an outer diam...
thickness_of_holder = 8; width_of_holder = 30; height_of_holder = 325; upper_collar_position = 267; height_of_collars = 20; thickness_of_collars = 5; thickness_of_bottom = 5; inner_width_of_collars = 60; base_support_width = 10; depth_of_hook = 25; height_of_hook = 20; height_of_buckle = 30; lower_buckle_po...
glb/cad_cdd72706f372.glb
Create a Sawhorse Latch by combining a tapered cylinder and a wider flat cylinder. First, create a tapered cylinder with a height of 12.7mm, starting with a base diameter of 16.75mm and narrowing to a top diameter of 14.75mm. Attach a second cylinder to the base with a diameter of 23.1mm and a height of 6.25mm. From th...
cutout_radius = 13.8; rotate([180, 0, 0]) difference() { union() { cylinder(12.7, d1=16.75, d2=14.75); rotate([180,0,0]) cylinder(6.25, d=23.1); } translate([0,0,-(1.6+cutout_radius)]) rotate([90,0,0]) cylinder(25, r=cutout_radius, center=true); cylinder(26, d=10, center = true); }
glb/cad_ca912f723de5.glb
Create a Sawhorse Latch with a total thickness of 25.4mm. The main body is a linear assembly centered around a cylindrical hinge pin hole with a diameter of 23mm (22.5mm bar diameter plus 0.5mm clearance) that runs through the entire thickness of the part. The latch consists of a central hinge shell and two extending ...
bar_diameter = 22.5; hinge_clearance = 0.5; thickness = 25.4; edge_radius = 3; wall_thickness = 6.5; left_length = 32.85; right_length = 28.75; hinge_outer_diameter = 36.63; theta = 5.1; module top_cross_section(){ difference() { translate([edge_radius, edg...
glb/cad_11c97a4db1c2.glb
Create a Penrose tiling on fabric model consisting of two types of rhombic tiles, each with a base thickness of 2mm and a small pyramid centered on top. The first tile type is a thin rhombus with internal angles of 36 and 144 degrees, and the second is a wider rhombus with internal angles of 72 and 108 degrees. For eac...
module tile1() { linear_extrude(height=2) scale(10,10,10) polygon(points=[[0,0],[1,0], [cos(72)+1,sin(72)], [cos(72),sin(72)]]); scale(10,10,1) polyhedron(points=[[0,0,0.2],[1,0,0.2], [cos(72)+1,sin(72),0.2], [cos(72),sin(72),0.2],[(cos(72)+1)/2,sin(72)/2,0.5]], ...
glb/cad_ed490742da72.glb
Create a Kawai Tsugite puzzle piece by starting with a central cube of 15mm per side. To form the joint geometry, first remove a square pyramid from the top of the cube. From the bottom face, remove three equilateral triangular prisms, each with a side length of 15mm and a height of 15mm, arranged symmetrically around ...
jl = 15; eps = 0.25; $fn= 100; module prisms(){ for (i=[0:2]) rotate([0,0,i*120-0]) translate([-jl,0,0]) cylinder(d = 2*jl, h = jl, center = false, $fn = 3); } module KawaiTsugite() { difference(){ translate([0,0,-0.289*jl])rotate([0,-35.26+90,0])rotate([0,0,45]) cube([jl,jl,jl], center = true); ...
glb/cad_5955a403d60b.glb
Create a Flex Pipe Nozzle Cooler consisting of a rectangular base that transitions into a cylindrical neck. Start with a rectangular block 18mm wide, 42mm long, and 5mm thick, centered on the XY plane. From the top center of this block, extend a cylindrical neck with an outer diameter of 13.4mm and a height of 25mm. Th...
h = 25; w = 16; l = 40; t = 1.0; o = 13.4; r = 7; c = 0.3; b = 27.5+c*2; s = 2.5; difference() { translate( [ 0, 0, -0.0 ] ) union() { translate( [ 0, 0, 0 ] ) hull() { cube( [ w+t*2, l+t*2, 5 ], center = true ); translate( [ 0, 0, h-5.5 ] ) cylinder( r = o/2, h = 1, center = true, $fn = 24 ); } tran...
glb/cad_2a33eeaf2dca.glb
Create a 60-sided die in the shape of a deltoidal hexecontahedron. The geometry is defined by 60 identical kite-shaped faces, 62 vertices, and 120 edges. On each of the 60 faces, engrave a number or label. The labels should be centered on the face and oriented to be readable from the outside. Use the following specifi...
C0 = (5 - sqrt(5)) / 4; C1 = (15 + sqrt(5)) / 22; C2 = sqrt(5) / 2; C3 = (5 + sqrt(5)) / 6; C4 = (5 + 4 * sqrt(5)) / 11; C5 = (5 + sqrt(5)) / 4; C6 = (5 + 3 * sqrt(5)) / 6; C7 = (25 + 9 * sqrt(5)) / 22; C8 = sqrt(5); echo(C0); echo(C1); echo(C2); echo(C3); echo(C4); echo(C5); echo(C6); echo(C7); echo(C8); font = "L...
glb/cad_9ac9423531a0.glb
Create four distinct puzzle pieces based on a unit dimension of 13.9mm. For the first piece, create an L-shape by joining a 41.7mm by 13.9mm by 13.9mm rectangular prism with a 13.9mm cube attached at the corner, extending the width to 27.8mm. For the second piece, create a T-shape by joining a 41.7mm by 13.9mm by 13.9m...
X=14-.1; fingerWidth=3; small=0.01; module Lshape() { cube([3*X,X,X]); translate([0,0,X-small]) cube([X,X,X]); translate([1.5,X/2,X/4]) sphere(r=2.5,$fn=12); } module Tshape() { cube([3*X,X,X]); translate([X,0,X-small]) cube([X,X,X]); translate([1.5,X/2,X/4]) sphere(r=2.5,$fn...
glb/cad_663592934543.glb
Create a Triangular Candy Bowl by combining a hollowed spherical base with a triangular top. Start with a sphere of 35mm radius, centered at [0, 0, 25], and hollow it out by removing a concentric sphere with a 32.5mm radius. To create the decorative outer pattern, remove 15 identical triangular prisms from the sphere's...
candyHeight = 70; CandyxScale = 1.25; sphereSize = 35; preview(); module preview(){ difference(){ color("purple")translate([0,0,25])scale([1.5,1,1]) difference(){ sphere(sphereSize,true); sphere(sphereSize-2.5,true); for(i=[0:24:360]){ rotate([0,90,i]) scale...
glb/cad_40ecb80517de.glb
Create a battery holder by starting with a solid rounded rectangle that is 69mm wide, 69mm long, and 15mm high, with corner radii of 7.75mm. From the top surface of this block, remove 16 cylindrical holes to create a 4x4 grid of slots for batteries. Each hole must have a diameter of 15.5mm and a depth of 12mm, leaving ...
include <../modules/rounded_rectangle.scad>; batteries_diameter = 15.5; rows = 4; columns = 4; separation = 1; height = 15; base_thickness = 3; rectangle_width = (batteries_diameter * rows) + (separation * (rows + 1)); rectangle_length = (batteries_diameter * columns) + (separation * (columns + 1)); difference() { ...
glb/cad_efff2742afd7.glb
Create a V-Roller bearing support by constructing a composite cylindrical body with a central hole. Start by creating a central vertical hole with a radius of 4.6mm and a total height of 10mm. Surround this hole with three concentric cylindrical sections: first, a cylinder with a radius of 8.5mm and a height of 10mm; s...
$fn=40; numberOfBearings=2; outerBearingDiameter = 9; bearingWidth = 5; extrusionGapWidth = 6; module vRoller() { difference() { union() { cylinder(r = outerBearingDiameter / 2 + 4, h = bearingWidth * numberOfBearings, center = true); cylinder(r = outerBearingDiameter / 2 + 5, h = bearingWidth * numberOfBea...
glb/cad_f458077af404.glb
Create a V-Roller bearing support for a 603ZZ bearing. Start by creating a central cylinder with a radius of 6mm and a total height of 9mm, centered on the origin. Surround this with a larger hull that blends the central cylinder into a wider cylinder with a radius of 8mm and a height of 3mm, also centered on the origi...
$fn=100; numberOfBearings=2; bearingOD = 10; bearingWidth = 4; extrusionGapWidth = 6; height = ((bearingWidth * numberOfBearings) + .2) < (extrusionGapWidth + 3) ? extrusionGapWidth + 3 : ((bearingWidth * numberOfBearings) + .2); module vRoller() { difference() { union() { cylinder(r = bearingOD / 2 + 1, h =...
glb/cad_715553bfb80b.glb
Create an X-shaped bracket for holding foam core boards. The object consists of four identical arms radiating from a center point, each rotated 90 degrees from the last. Each arm is based on a rectangular block with a length of 21mm, a width of 12mm, and a height of 15mm. From the center of each arm, remove a smaller...
foam = 4.2; wall = 3.5; grip = 15; mink = 1.5; $fn = 12; scale = 1.0; test = false; w = -mink + foam - mink; f = mink + foam + mink; d = w + f + w; l = d + grip; h = foam + grip - mink; XBracket(); module AngleBracket(alpha ) { s = sin(alpha); c = cos(alpha); t2 = tan(alpha/2); scale(scale) { ...
glb/cad_dd1e0b2bdbb8.glb
Create a customizable ski and poles holder with a total thickness of 12mm. The model consists of two main sections: a ski accommodation area and a pole accommodation area. For the ski section, create a central rectangular block 10mm wide, 55mm long, and 12mm thick. Flanking this central block, add two outer rectangula...
$fs = 0.05; thickness = 12; holder_width = 5; ski_thickness = 16; ski_width = 55; ski_distance = 10; pole_diameter = 16; pole_offset = 5; extra_pole_offset = pole_diameter / 6; base_holder_width = holder_width * 1.5; pole_holder_width = holder_width * 0.5; demo = false; translate([-ski_distance / 2, 0, 0]) cube([...
glb/cad_7cbd34589d77.glb
Create a Lenticular Clean Dirty Sign with overall dimensions of 140mm in length, 45mm in width, and 7mm in thickness. Start by creating a rectangular base that is 140mm long, 45mm wide, and 4.75mm thick. Centered on the back of this base, carve out a rectangular hole for a magnet measuring 38mm by 17mm with a depth o...
printWhat=2; len=140; width=45; thickness=7; textDepth=.8; numberOfVanes=7; text1="CLEAN"; text2="DIRTY"; holeLen=38; holeWid=17; holeDep=1.8; textSize=width/sqrt(2)*.9; small=0.01; diaWid=width/numberOfVanes; smallWid=diaWid/sqrt(2); baseThickness=thickness-diaWid/2; module magnetHole() { cube([holeLen,holeW...
glb/cad_b60975a76d22.glb
Create a sifting scoop for bonsai soil by starting with a hollow, tapered cone-like vessel. The main body is created by extruding a circle with a 40mm diameter to a height of 120mm, applying a scale factor of 1.5 so the top opening is wider than the base. The walls of this vessel must be 2mm thick. To create the sift...
height = 120; sift_hole_center = 60; diameter = 40; thickness = 2; difference(){ linear_extrude(height=height, twist=0, scale=1.5){ circle(d=diameter, $fn=120); } union(){ translate([0, 0, thickness]) linear_extrude(height=height, twist=0, scale=1.5){ circle(d=diameter-thick...
glb/cad_a2fbbdcf763e.glb