Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a heart-shaped plate by starting with a base cube measuring 5mm by 5mm with a height of 1mm. From this base, remove two smaller cubes to carve out the heart's silhouette. Position the first smaller cube with dimensions of 1.5mm by 1.5mm by 1mm at the coordinates (0, 4, 0) and rotate it 45 degrees around the Z-ax...
difference(){ cube([5,5,1]); cube([1.5,1.5,1]); #translate([0,4,0]) rotate([0,0,45]) cube([1.5,1.5,1]); #translate([5,-1,0]) rotate([0,0,45]) cube([1.5,1.5,1]); }
glb/cad_0ffeb8853693.glb
Create a tripod quick release plate by starting with a rectangular block measuring 41mm by 43mm with a height of 8mm, ensuring all four vertical edges are rounded with a 5mm radius. On the top face, center a vertical hole with a radius of 2.75mm that passes through the entire block. To accommodate the mounting screw,...
$fn=50; pin_height=3; pin_radius=22/2; pin_screwhead_height=1; pin_screwhead_radius=12/2; pin_hole_radius=5.5/2; pin_lock_height=0.5; pin_lock_radius=10/2; size_x=41; size_y=43; size_z=8; cutoff_deg=31; module roundedCube(x,y,z,r) { iz=z/2; translate([r,r,0]) minkowski() { cube([x-2*r,y-2*r,iz]...
glb/cad_f4ba6780adbb.glb
Create a T-shaped holddown clamp. Start by forming a main rectangular block 50mm long, 16mm wide, and 16mm high. Attach a second rectangular block to the side of the first, centered along the length, with dimensions of 16mm wide, 50mm long, and 16mm high, resulting in an overall T-shaped footprint. Through the center...
$fn=60; nose=true; tlength=50; twidth=16; theight=16; slotw=7; cutoutlen=8; module tholddown(nose=true) { difference() { union() { cube([tlength,twidth,theight]); translate([tlength/2-twidth/2,-tlength,0])cube([twidth,tlength,theight]); } hull() ...
glb/cad_de31543b5a67.glb
Create a Magnetic DNA model consisting of four distinct nucleotide base shapes. Each piece is a flat plate with a total thickness of 10mm. For each piece, create a main body based on a hexagonal profile with a radius of 20mm. Within this body, incorporate a central cutout to house a rectangular magnet measuring 8mm wi...
function norm(p) = sqrt(p[0]*p[0] + p[1]*p[1] + p[2]*p[2]); function base2col(b) = (b == 0) ? [0,1,0] : (b == 1) ? [0,0,1] : (b == 2) ? [1,1,0] : [1,0,0]; xw=0.4; ww=1.5; module nucleotide(w, lIndex){ ew = w; r6 = ew; i6 = r6 * cos(30); r5 = (e...
glb/cad_b4270d3ce87b.glb
Create a shaft clamp designed for an 8mm shaft and aluminum extrusion. Start with a rectangular base 27mm wide, 10mm thick, and 11mm high. On the top surface, create a rounded protrusion that blends into the base, forming a hull that accommodates a central horizontal hole. Through the center of the model, create a cyl...
module mb_profile() { translate([0, 3, 0]) rotate([180, 0, 0]) difference() { cube([1, 3.5, 1]); translate([-1, 0, 0]) rotate([45, 0, 0]) cube([5, 3.5, 2]); translate([-1, 3.5, 0]) rotate([-45, 0, 0]) translate([0, -3.5, 0]) cube([5, 3.5, 2]); } } hole_c = 11; hole_r = 4.2; base_w...
glb/cad_c3e6c50fa2ce.glb
Create a Y-axis belt tensioner consisting of four distinct components: a base clamp, a top clamp, a trap clamp, and two identical rams. The base clamp is a vertical block with a height of 5.8mm. It features a central rectangular slot 5.6mm wide and 3.8mm high, flanked by two semi-cylindrical walls with a radius of 4.7...
belt_pitch = 5; belt_width = 5.6; belt_height = 3.8; 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; belt_depth = 2; ram_h...
glb/cad_f787de6aea38.glb
Create a Sewing Machine Foot Cover by starting with a solid rectangular block measuring 38mm in width, 42mm in depth, and 15mm in height. Carve out a rectangular hole from the top and front of the block to create a U-shaped opening. This interior cutout should be 18mm wide and 32mm deep, starting from a height of 3mm f...
difference () { cube([38,42,15]); translate([10,10,3]) cube([18,32,12]); translate([10,25,0]) cube([18,17,15]); }
glb/cad_985839c020ec.glb
Create a Floppy Disk Construction Kit piece by starting with a main body formed from the hull of two cubes, each 15mm, positioned such that one is at the origin and the other is offset by 10mm in the X, Y, and Z directions. Rotate this entire assembly by 45 degrees around the Z-axis, -35.26 degrees around the Y-axis, a...
size = 15; floppy_thickness = 3.3; wall_thickness = 2; distance_from_corner = floppy_thickness + 2*wall_thickness; extrude_length = 10; cutoff_lower = 9; cutoff_upper = 21; grab_thickness = 0.3; two_side_version = false; half_version = false; module floppy() { difference() { translate([0,0,-floppy_thickness/2]...
glb/cad_4cc7a0bfd1a2.glb
Create a Customizable Pen Clip by combining a rectangular base with a C-shaped gripping clip. Start with a rectangular base measuring 15mm wide, 25mm long, and 2mm thick. Centered on this base, add a C-shaped clip extruded to a length of 25mm. The clip is formed by two concentric cylinders: an outer cylinder with a d...
baseWidth = 15; baseLength = 25; baseThickness = 2; ID = 12.5; clipThickness = 1.6; clipAngle = 135; $fn = 200; OD = ID+clipThickness*2; linear_extrude(baseLength) union() { translate([-baseWidth/2, 0]) square([baseWidth, baseThickness]); translate([0,ID/2+baseThickness]) { difference() { circle(...
glb/cad_cc100dc41896.glb
Create a Prusa endstop holder designed to clamp onto an 8.2mm rod. The main body is a cylinder with a radius of 9.1mm and a height of 9.7mm. Remove a central cylindrical core with a radius of 4.1mm to accommodate the rod. Cut a 7mm wide rectangular wedge out of the cylinder's side to create the clamp opening. Perpendi...
hole_size = 3 / cos(180 / 8) + 0.4; hole_separation = 20; hole_separation_1 = 10.5; hole_extra_distance = 3; hole_nut_size = 5.5 / cos(180 / 6) + 0.4; hole_nut_depth = 2; rod_size = 8.2; clamp_size = 5; wedge_size = rod_size - 1; height = max(hole_nut_size * 1.2, m3_nut_size * 1.2); echo("height is", height); c...
glb/cad_ff1d7ea2786d.glb
Create a non-self centering chuck consisting of a main body and a grip. First, create the main chuck body as a cylinder with an outside diameter of 60mm and a height of 50mm. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a diameter of 50mm and a height of 25mm, leaving a solid ba...
hd=20; ht=20; cdo=60; cdi=50; ch=50; hold=7; nsh=4; $fn=50; assemble(); module assemble() { grip(); translate([0,0,-ch]) chuck(); } module grip() { cylinder(d=hd,h=ht); } module chuck() { n=cdo-cdi; difference() { cylinder(d=cdo,h=ch); cylinder(d=cdi,h=ch-n); #translate([0,...
glb/cad_ae5b6ab39b95.glb
Create a Magura Marta hand brake bushing by starting with a solid main cylinder that has a radius of 5mm and a height of 17mm. From this main body, remove a complex internal void consisting of two joined cylinders oriented horizontally through the center of the main body. The first void cylinder has a radius of 3.5mm a...
$fn=120; radius_big = 5; radius_med = 3.5; radius_sml = 2; body_height = 17; module main() { cylinder(r=radius_big, h=body_height); }; module cable_plug() { union() { translate([0,0,-1]) cylinder(r=radius_med, h=radius_big + 2); translate([0,0,radius_big]) cylinder(r=radius_sml, h=radius_big + 1); }; }; diffe...
glb/cad_1b7249abaf2d.glb
Create a motor spin indicator consisting of a central hub and a radiating series of discs. Start by creating a central 16-sided polygonal prism with a height of 10mm and a radius of 4.5mm. Bore a 16-sided polygonal hole through the center of this prism with a radius of 2.25mm. Around this central hub, add a series of c...
shaft_radius = 4.5/2; difference() { union() { #cylinder(h=10,r=shaft_radius*2,$fn=16); for(i=[12:3]) { translate([(i*3)-35,0,0]) cylinder(h=2,r=i/2,$fn=16); } } translate([0,0,2]) cylinder(h=10,r=shaft_radius,$fn=16); }
glb/cad_37c7bb49aecd.glb
Create a cross-shaped construction clip for beams. Start by creating a central rectangular block that is 15mm wide, 2mm thick, and 4mm high. Centered on top of this block, add a second rectangular block that is 15mm wide, 0.4mm thick, and 4mm high, positioned 2.9mm from the base. Above that, add a third rectangular blo...
module beamclip(length){ linear_extrude(length){ translate([0, -0.5])square([15,1], center=true); translate([0, 0.7015])square([2.5, 2], center=true); translate([0, 2.7])square([5.5, 2], center=true); } } module cornerclip(length) { intersection(){ union(){ rotate([45,0,0])beamclip(length); translate([0, -1*lengt...
glb/cad_76e0c4690a4a.glb
Create a Resources Holder for the game Terra Mystica. Start with a main cylinder that has a radius of 75mm and a height of 22mm. From this main body, remove a central cylindrical core with a radius of 60mm. Around the inner perimeter of the main body, create seven smaller cylindrical wells, each with a radius of 17.5...
r1=17.5; r2=75; r3=r2-2*r1-5; e=0.1; z=22; a=2; difference(){ difference(){ union(){ translate([0,0,z/2])difference(){ cylinder(r=r2, h=z, center=true, $fn=120); union(){ for(i=[0:6]){ rotate([0,0,i*360/9])translate([r2-r1-2,0,0]) union(){ cylinder(r=r1, h=z+2*e, center=true, $fn=...
glb/cad_3198235d773e.glb
Create a sensor bracket consisting of a base plate and a circular mounting ring. Start with a rectangular base plate measuring 17mm by 17mm with a thickness of 7mm. Centered on the top face of this plate, add a small rectangular tab measuring 5mm wide by 7mm deep. Pierce two vertical holes through the base plate for ...
basePlate(); translate([8.5, -19, 0]) sensorMount(); module basePlate() { bolt_diameter = 4; thickness = 4; union() { difference() { linear_extrude(height=7) square ([17, 17], centre = true); rotate ([90, 0, 0]) { translate([3, 7 / 2...
glb/cad_a595e7d111ee.glb
Create a Floating Piston for laboratory glass tubes by starting with a central cylinder that has a radius of 120mm and a height of 150mm, centered on the origin. To create the grooves for the O-rings, remove two identical toroidal shapes from the main cylinder. Each torus must have a cross-sectional radius of 10mm and ...
cylinder_radius = 120; cylinder_height = 150; torus_radius = 10; rings_separation = 80; $fn = 100; difference() { cylinder(r = cylinder_radius, h = cylinder_height, center = true); translate([0, 0, 40]) torus(); translate([0, 0, -40]) torus(); } module torus(){ rotate_extrude(conve...
glb/cad_e4fea3dd0de7.glb
Create a Floating Piston for a laboratory glass tube. Start by creating a solid cylinder with a radius of 120mm and a height of 150mm, centered on the origin. From this main cylinder, remove four identical ring-shaped voids. Each void is formed by rotating a square with a side length of 14mm around the central vertical...
cylinder_radius = 120; cylinder_height = 150; torus_thickness = 14; $fn = 100; difference() { cylinder(r = cylinder_radius, h = cylinder_height, center = true); translate([0, 0, 45]) cubic_torus(); translate([0, 0, -45]) cubic_torus(); translate([0, 0, 15]) cubic_torus(); t...
glb/cad_e4f0cc5cfd9f.glb
Create a battery tray for a quadcopter. Start with a central rectangular plate measuring 45mm wide, 148mm long, and 3mm thick. Add two vertical side walls, each 2mm wide and 14mm high, running the full length of the plate's edges. Create six mounting holes for M3 screws: two located at the front of the plate and four ...
$fa = 5; $fs = 0.1; difference() { union() { translate([0,-74,-21.5]) cube([45,148,3], center=true); translate([-23.5,-74,-27]) cube([2,148,14], center=true); translate([23.5,-74,-27]) cube([2,148,14], center=true); } translate([-18,-43,-21.5]) cylinder(r=1.6,h=5,center=true); translate([-18,-43,-23]) rotate([180,0,0...
glb/cad_e1b0dd307530.glb
Create a toy train wheel set consisting of four identical wheel assemblies arranged in a grid. For each assembly, start by creating a base wheel consisting of two stacked cylinders: a bottom cylinder with a height of 2mm that tapers slightly from a top radius of 10mm to a bottom radius of 9.5mm, and a second cylinder c...
module wheel() { cylinder(r1=9.5, r2=10, h=2); translate([0,0,2])cylinder(r=7.5, h=5); } module axle() { union() { translate([0,0,6.99]) cylinder(r=2.5, h=32); translate([0,2.5,36]) cube([0.8,2.5,5], true); } } module FemaleWheel() { difference() { wheel(); translate([0,0,-0.1]) { cylinder(r=2...
glb/cad_9d108544cba1.glb
Create a Calligraphy Ink Stirrer consisting of a thin shaft, a handle, and a mixing head. Start by creating a shaft that is 50mm long with a thickness of 1mm. The shaft is a 15-sided prism with a radius of 1mm, ending in a sphere with a 1mm radius and 15 facets. For the handle, create a shape by scaling a sphere with...
shaft=50; thickness=1; union() { intersection() { union() { translate([0,0,thickness/2]) rotate(90, [1,0,0]) cylinder(r=1,h=shaft-3, $fn=15); translate([0,-shaft+3,thickness/2]) sphere(r=1, $fn=15); } translate([-1,-shaft,0]) cube([2,shaft,2*thickness]); } ...
glb/cad_68536fd6c0b5.glb
Create a 40mm Fan Holder for a 30mm J-Head Hot End. Start by constructing a main body that features a central vertical cylindrical void with a diameter of 18mm and a height of 100mm to accommodate the hot end. Surround this void with a structural shell that transitions from a circular profile to a rectangular base. At...
$fn=50; translate([0,0,59]) rotate([90,0,0]) cajaCompleta(); module cajaCompleta(){ translate([0,-56,10]) fan(); difference() { union(){ color("Lime") hull(){ cilindro(); translate([0,-52,10]) cube([38,3,38], center=true); } scale([1.6,1.15,1]) cylinder(d=20,5, center=true); } augeros(); cylinder(d=18,100, cente...
glb/cad_36b56db9da29.glb
Create a Tancarville dryer replacement part by constructing a solid geometric form 30mm in height. Start by placing three vertical cylinders, each 12mm in diameter and 30mm tall, arranged in an equilateral triangle pattern where the center of each cylinder is 8mm from the overall center of the part. Connect these cylin...
$fn=50; a=8; b=12; c=8; e=30; difference(){ union(){ translate([a*sqrt(3)/2,a/2,0]) cylinder(d=b,h=e); translate([-a*sqrt(3)/2,a/2,0]) cylinder(d=b,h=e); translate([0,-a,0]) cylinder(d=b,h=e); translate([-a*sqrt(3)/2,0,0]) cube([a*sqrt(3),(a+b)/2,e]); rotate(v=[0,0,1],a=...
glb/cad_2f47a2d9780d.glb
Create a music box cylinder consisting of three coaxial cylindrical sections and a series of protruding pins. Start with a central core cylinder with a radius of 100mm and a height of 500mm. At the base, add a second cylinder with a radius of 110mm and a height of 30mm. Extending from the bottom, add a third cylinder w...
module music_box_cylinder() { teeth = 64; braille_teeth = 7; row_count = 7; rows = [[0,0,0,1,0,0,0,1], [0,0,1,0,0,0,1,0], [0,1,0,0,0,1,0,0], [1,0,0,0,1,0,0,0], [0,0,0,1,0,0,0,1], [0,0,1,0,0,0,1,0], [0,1,0,0,0,1,0,0], [1,0,0,0,1,0,0,0]]; union()...
glb/cad_fcc42b09b110.glb
Create a PVC pipe exotic joint by starting with a central cube that is 15mm on all sides and centered on the origin. From this cube, remove three cylindrical holes, each with a diameter of 15.4mm and a length of 45mm, to create three intersecting channels. The first cylinder should be oriented vertically along the Z-ax...
function r_from_dia(d) = d / 2; { module rotcy(rot, r, h) { rotate(60, rot) cylinder(r = r, h = h, center = false);} sphere(r = r_from_dia(size)); rotcy([.66, 0,-1], cy_r, cy_h); rotcy([1, 1, 0], cy_r, cy_h); rotcy([0, .66, 1.33], cy_r, cy_h); size = 15 ; hole = 15.4; cy_r = r_from_dia(hole); cy_h = ...
glb/cad_26d950459388.glb
Create a Customizable Clamp Head by starting with a main rectangular block that is 35mm wide, 30mm deep, and 10mm thick. Center this block on the origin. From this main volume, remove a central rectangular cavity measuring 33mm wide, 26mm deep, and 6mm high, positioned so that its center aligns with the center of the m...
pad_thickness = 10; pad_x = 35; pad_y = 30; difference() { difference() { translate ([pad_x/2- pad_x + 15,0,0]) color ("blue") cube([pad_x,pad_y,pad_thickness], center=true) ; translate ([0,0,0.5]) color ("red") cube([33,26,6], cente...
glb/cad_fde40aec3a95.glb
Create a Z Motor Cover by constructing a hollow rectangular box with rounded exterior corners. The outer dimensions should be 63mm wide, 112mm long, and 38mm high, with a uniform wall thickness of 1.5mm. The interior cavity is created by removing a centered block measuring 55mm wide, 104mm long, and 36.5mm deep, with t...
$fn=60; thk=1.5; len=109; wid=60; hgt=35; module zbox() { union() { difference() { minkowski() { cube([wid+(2*thk)-(2*1.5),len+(2*thk)-(2*1.5),hgt+2*thk]); sphere(r=1.5); } translate([4,4,-thk])minkowski() ...
glb/cad_d09f85ccac9c.glb
Create a squobe by starting with a sphere that has a radius of 7mm. Constrain this sphere within a cube of 10mm that is positioned with its corner at -5mm on the X, Y, and Z axes, effectively cropping the sphere into a rounded cubic shape. From this resulting form, remove three cylindrical holes, each with a radius of ...
difference() { intersection() { sphere(7); translate([-5,-5,-5]) cube(10); } union() { translate([0,0,-5]) cylinder(10,3,3); rotate([90,0,0]) translate([0,0,-5]) cylinder(11,3,3); rotate([0,90,0]) translate([0,0,-5]) cylinder(11,3,3); } }
glb/cad_a49b6c6993d9.glb
Create a Parametric Rectangular Truss by starting with a solid rectangular slab centered on the origin, measuring 40mm wide, 40mm high, and 5mm thick. To create the truss structure, remove material from this slab to leave a frame and internal supports. First, carve out a central rectangular void that leaves a perimeter...
truss_width=40; truss_height=40; truss_thickness=5; beam_thickness_percentage=10; module truss(base_w,base_h,link_thickness, p){ x0 = base_w/2; y0 = base_h/2; x1 =(1-p/100)*x0; y1 =(1-p/100)*y0; d=p/100*x0/sqrt(2); difference(){ cube([base_w, base_h, link_thickness], center=true); translate([0,0,-link_thi...
glb/cad_fb15c854a205.glb
Create a toy train axle and screw assembly. Start by creating a central cylinder with a major diameter of 8mm and a total height of 16mm. This cylinder should be hollowed out by a smaller concentric inner cylinder with a diameter of 1mm. To create the screw thread effect, wrap a helical path around the exterior of the...
use <../pathextrude/path_extrude.scad>; gr=2.25; gh=10; axl=55; xw=0.4; mad=1; wdp=5; pi=3.1415927; D=8; ND=17; P=D*pi/6*sin(60); H=sqrt(3)/2 * P; R=H/(P/2); ppr=31; length=D*2; loops=length/P; xw=0.4; fh=3; fd=60; cd=20; module axle(){ rotate_extrude($fn=51){ polygon([[xw,-axl/2],[xw,axl/2],[D/4,axl/...
glb/cad_19de465f5192.glb
Create a mechanical coupling component consisting of a hexagonal base, a central tapered neck, and a cylindrical head. Start by creating a hexagonal prism base with a width of 17mm across the flats and a height of 6mm. Centered on top of this base, add a tapered transition section that curves upward and outward to meet...
use <../pathextrude/path_extrude.scad>; length=15; D=20; ND=17; P=1.5; H=sqrt(3)/2 * P; R=H/(P/2); ppr=31; loops=length/P; xw=0.4; fh=3; fd=60; cd=20; ar=6; art=(ar)*(sin(45)); myPoints = [ [-(H/4-xw/4-0.1*R),-P/2+0.1], [-(-1/2*H-xw/4),-P/8], [-(-1/2*H-xw/4),P/8], [-(H/4-xw/4-0.1*R),P/2-0.1] ]; myPath = [ for(t = [...
glb/cad_0041a6a802e8.glb
Create a PZ0420M camera mount for a Nighthawk 200 by starting with a rectangular base measuring 31mm in length, 26mm in width, and 2.4mm in height. From this base, remove a central vertical cylinder with a radius of 8mm. Directly above this central hole, remove a smaller cylinder with a radius of 1.7mm centered on th...
$fn=200; $l=31; $b=26; $h=2.4; $h_border=1.2; $r_gross=8.0; $r_klein=0.95; $r_kerbe=1.7; $kreis_y_offset=2; $kreise_abstand=1.25; $aussen1=1.5; $aussen2=5.5; $aussen3=4; difference() { cube([$l, $b, $h]); translate([-$aussen1, 0, $h_border]) { cube([2*$aussen1, $b, $h]); } translate([$l...
glb/cad_9cdc90014a4e.glb
Create a removable, levelable X axis bearing stage. Start with a central rectangular platform 84mm long, 68mm wide, and 10mm thick. On the top surface of the platform, position two bearing mounts. Each mount is a block 29mm long, 22mm wide, and 15.5mm high, spaced 65mm apart. In each mount, create a horizontal cylind...
show_level_corners=false; show_all_corners=false; show_level_knob=false; show_bearing_stage=true; mm = 1; cm = 10 * mm; dm = 100 * mm; m = 1000 * mm; inch = 25.4 * mm; M3 = 3*mm; M4 = 4*mm; M5 = 5*mm; M6 = 6*mm; M8 = 8*mm; epsilon = 0.01*mm; platformLength=84; platformThickness=10; platformWidth=68; rodSpacing=49.5...
glb/cad_1d62fba03ffb.glb
Create a right-angle bike light holder consisting of two intersecting cylindrical sections. First, create a main vertical cylindrical stand with a radius of 11.5mm and a height of 45mm. At the top of this stand, add a small tapered extension that increases in radius from 11.5mm to 14.5mm over a height of 5mm. Construc...
bar_diameter = 23; bar_radius = bar_diameter / 2; clamp_width = 45; cover_thickness = 5; outer_cover_radius = bar_radius + cover_thickness ; cover_length = bar_diameter + 30; tiewrap_width=5; tiewrap_depth=1.7; penny_r= 20.41 / 2 + 1; penny_w= 1.7 + 0.5; module tube (length, outer_r, inner_r) { difference () { ...
glb/cad_9a73f8f8e4d8.glb
Create a screw closure for a parametric pill box. Start by constructing a regular octagonal base with a side length of 8mm and an extrusion height of 4mm. Centered on this base, add a metric external thread with a diameter of 8mm and a pitch of 2mm. The threaded section should have a total length of 9mm and be position...
use <threads.scad> mark = 8; if (mark==12) union() { translate([0,0,3]) metric_thread (diameter=8, pitch=2, length=13, internal=false, n_starts=1, thread_size=-1, groove=false, square=false, rectangle=0); linear_extrude(height=4) octagon(8); } else if (mark==8) union() { ...
glb/cad_7370f168c07b.glb
Create a lid for a parametric pill box. The overall shape is a flat octagonal disc with a side length of 31.5mm, a total height of 5mm, and a wall thickness of 1.5mm. Construct the main body as an octagonal ring by creating a solid octagon with a side length of 31.5mm and subtracting a smaller concentric octagon from...
round_or_octa = 0; length_edge = 31.5; height = 5; thickness = 1.5; leh = length_edge; ht = height ; th = thickness; if (round_or_octa==0) difference() { union() { octa_hole(); frame_8(); linear_extrude(height=th) circle(r=12); } ...
glb/cad_abc9ff185adc.glb
Create a cylindrical pill box with a height of 20mm and a wall thickness of 3mm. The main body is a hollow cylinder with an outer radius derived from a side length of 30mm (approximately 19.6mm radius). Divide the interior into seven equal wedge-shaped compartments using radial dividers that are 3mm thick. To allow t...
use <threads.scad> font = "Liberation Sans"; letter_height = 2; round_or_octa = 1; length_edge = 30; height = 20; thickness = 3; letter_size = 7; leh = length_edge; ht = height ; th = thickness; if (round_or_octa == 0) difference() { union() { octa_body() frame_8(); dividers(le...
glb/cad_d6f0e2509a00.glb
Create a Sarrus linkage consisting of four parallel plates connected by hinges. All plates have a thickness of 5mm. First, create a base plate and a top plate, both measuring 30mm by 30mm. For each plate, remove material from the center to create a truss-like pattern of four triangular cutouts, leaving a solid perimet...
use <MCAD/regular_shapes.scad> linkage_length = 80; linkage_width = 30; linkage_height = 30; link_thickness = 5; number_of_linkage_arms = 2; hinge_spacing = 1; hinge_length = 5.5; n_x=floor(linkage_width/12); n_y=floor(linkage_height/12); sarrus_linkage(); module sarrus_linkage(){ base_plate(); side_plate_x1(); ...
glb/cad_768608265b36.glb
Create a parametric cam follower for a microswitch lever. Start by creating a cylinder with a radius of 5mm and a total height of 6.8mm, oriented so the flat circular faces are parallel to the ground. Center the cylinder on the Y-axis. From this cylinder, remove a rectangular slot to create a mounting hole for the leve...
camFollower(); module camFollower(radius=5, tongueThick=0.6, tongueWide=4.6, holeSlop = 0.2) { holeSlop = 0.2; slotThick = tongueThick+holeSlop; slotWidth = tongueWide+holeSlop; slotLen = 2*radius; totalWidth = slotWidth+2; difference(){ translate([0,1,-totalWidth/2]) cylinder(totalWidth,radius,radius,...
glb/cad_ee026276c72b.glb
Create a Lock base by constructing a flat cylinder with a radius of 30mm and a height of 5mm. Centered within this cylinder, create a vertical hole that passes completely through the center, with a radius of 2mm.
include <roundedbox.scad> BaseLength=30; BaseWidth=30; BaseHeight=5; InnerTolerance=.6; Spacing=.8; PinLength=15; LockWidth=10; LockLength=60; LockRadius=15; HelperThickness=5; HelperLength=15; MountingSpacing=15; MountingDiameter=5; ShowPart=2; if(ShowPart==0){ union(){ union(){ difference(){ ...
glb/cad_6bdcb736e523.glb
Create a stretchy bracelet by constructing a thick ring with a complex, textured outer wall. Start with a central cylinder that has a radius of 32.25mm and a height of 15mm. Around this central core, place 20 identical twisted structural elements distributed evenly every 18 degrees. Each of these elements is created by...
r2=30; h=8; w=15; t=0.4; n=20; m=27; pi=3.14159; rr=pi*r2/n; r1=rr*1.5; ro=r2+(r1+rr)*0.5; ri=ro-h; a=pi*2*ri/m-t; echo("Inside Diameter = ",2*ri); solid(); module solid(){ difference(){ cylinder(r=ro,h=w,$fn=m); for(i=[1:m])rotate([0,0,i*360/m]) translate([0,0,-0.03])linear_extrude(height=w+0.06) polygon(p...
glb/cad_3ade08a2c0c2.glb
Create a parametric espresso grinder funnel consisting of two stacked, concentric thin-walled shells. First, create a base cylinder with a height of 15mm, an outer radius of 29mm, and a wall thickness of 1mm. Directly on top of this base, add a second conical section with a height of 25mm. This upper section should sta...
$fn=128; r = 29; baseHeight = 15; funnelHeight = 25; funnelR = 10; wallThickness = 1; eps = 0.01; thinCyn(baseHeight,r,r); translate([0,0,baseHeight-eps]) thinCyn(funnelHeight,r,r+funnelR); module thinCyn(h,r1,r2){ difference(){ cylinder(h,r1,r2); translate([0,0,-eps]) cylinder(h+2*eps,r1-wallThickne...
glb/cad_3a3ab22eb9a9.glb
Create a hollow octagonal tube for use as a standoff. The outer shape should be a regular octagon extruded to a length of 50mm. The distance from the center of the octagon to its vertices should be 4mm. Remove a cylindrical core from the center of the tube along its entire length, creating a hole with a radius of 2mm. ...
rotate([0,90,0]) tube(50); module tube(len, or=4, r=2){ x = or*sin(22.5); difference(){ linear_extrude(height=len, center=true){ polygon( points=[[x,or],[or,x],[or,-x],[x,-or], [-x,-or],[-or,-x],[-or,x],[-x,or]], paths=[[0,1,2,3,4,5,6,7]] ); }; cylinder(len+0...
glb/cad_9e263c535ca5.glb
Create a hollow spherical shell with an outer diameter of 34mm and an inner diameter of 32mm, resulting in a wall thickness of 3mm. To create the access ports, remove material using three intersecting cylinders, each with a diameter of 20mm. The first cylinder should be positioned vertically along the Z-axis. The secon...
$fn=150; dia_of_ball=28; dia_of_hole=20; gap_ball_to_inner_wall=2; wall_thickness_outer_shell=3; id_sphere=dia_of_ball+2*gap_ball_to_inner_wall; od_sphere=id_sphere+2*wall_thickness_outer_shell; distance_across_holes=2*sqrt(od_sphere*od_sphere/4-dia_of_hole*dia_of_hole/4); difference() { make_holes_in_sphere(); mak...
glb/cad_9daacfeed45d.glb
Create a 3D model for an altimeter gear assembly consisting of three gears and a microswitch. First, create the feet gear: a gear with 10 teeth, a diametral pitch of 0.5, and a thickness of 6mm. The gear should have a hub diameter of 10mm and a total height of 15mm. Cut a rectangular slot through the top of the hub me...
use <lib/involute_gears.scad> assemble(); cutAway = true; module clipObj(){ mainSpindleCutaway(); } module verticalCutaway(thru=0) translate([-500,-1000+thru,-500]) cube([1000,1000,1000]); module horizontalCutaway(thru=0) translate([-500, -500, thru]) cube([1000,1000,1000]); module mainSpindleCutaway() transla...
glb/cad_1003cba2a9d8.glb
Create an 83-tooth XML belt drive pulley. Start with a central cylindrical body that has a base height of 2mm and a toothed section height of 9mm. The overall base diameter is 20mm. Around the perimeter of the toothed section, create 83 evenly spaced XML-profile teeth. Add a belt retainer flange on top of the teeth wi...
teeth = 83; profile = 1; motor_shaft = 7.9; m3_dia = 3.2; m3_nut_hex = 1; m3_nut_flats = 5.7; m3_nut_depth = 2.7; retainer = 0; retainer_ht = 2; idler = 1; idler_ht = 2; pulley_t_ht = 9; pulley_b_ht = 2; pulley_b_dia = 20; no_of_nuts = 0; nut_angle = 90; nut_shaft_distance = 1.2; bolt_head_width = 13.2; bolt_head_d...
glb/cad_8c87677e04f4.glb
Create a Squobe by starting with a 10mm cube centered at the origin. Intersect this cube with a sphere of 6mm radius centered at the same point to create a rounded cubic shape. From this resulting geometry, remove three cylindrical holes, each with a radius of 2mm and a length of 10mm. Position the first cylinder verti...
difference() { intersection() { cube(10);translate([5,5,5])sphere(6); } union() { difference() translate([5,10,5])rotate([90,0,0])cylinder(10,2,2); translate([0,5,5])rotate([0,90,0]) cylinder(10,2,2); translate([5,5,0])cylinder(10,2,2); } }
glb/cad_4c0317b183a5.glb
Create a faucet knob cap by constructing a shallow, dome-topped cylinder. Start with a base cylinder that has a radius of 16.8mm and a height of 1.5mm. Centered on top of this base, place a spherical cap created by intersecting a sphere with a radius of 42mm with the base, such that the sphere's center is positioned 42...
difference() { union() { cylinder(r = 28.8/2, h=5, $fn=64); cylinder(r = 29.3/2, h=1, $fn=64); } cylinder(r = 24/2, h = 5); translate ([-30, -2, 0]) cube([60,4,4]); translate ([-2, -30, 0]) cube([4,60,4]); } translate([0,0,5]) cylinder(r = 33.6/2, h = 1.5, $fn=300); cr = 42; diff...
glb/cad_9850d1585e28.glb
Create a Weasel Hatch Cover by starting with a tapered cylinder that has a height of 3.5mm, a top radius of 34.5mm, and a bottom radius of 32.75mm. Hollow out this shape to create a thin-walled container by removing a smaller tapered cylinder from the center, starting from a height of 0.7mm above the base; this inner v...
hatchrad=69/2; hatchdepth=3.5; wallthickness=1.6; topthickness=0.7; wingrad=hatchrad*2; $fn=55; module hatch() { difference() { cylinder(r2=hatchrad, r1=hatchrad-hatchdepth/2, h=hatchdepth); translate([0,0,topthickness]) cylinder(r2=hatchrad-wallthickness, r1=hatchrad-hatchdepth/2-wallthickness, h...
glb/cad_4fcdc3869bc1.glb
Create a Bird House with a total length of 150mm and a wall thickness of 1.5mm. The main body is a vertical extrusion of a shape consisting of a semi-circle joined to a rectangle, creating a rounded roof and flat floor. The total depth of the house is 150mm. In the center of the front face, create a circular door with...
house_length = 150; wall_thickness = 1.5; door_radius = 27.5; door_above_floor = 30; door_ring_radius = 4; hang_ring_radius = 5; air_holes = "YES"; module a_quarter_arc(radius, angle, width = 1) { outer = radius + width; intersection() { difference() { offset(r = width) circle(radius, $fn=4...
glb/cad_29c7397e58ff.glb
Create a simple box with a sliding cover. The main box body should have overall external dimensions of 44mm length, 41mm width, and 42mm height. The walls and floor are 3.5mm and 2mm thick respectively. Hollow out the center to create an interior cavity of 37mm length, 34mm width, and 38mm height. At the top of the b...
part = "both"; inside_length =37; inside_width = 34; inside_height = 38; side_wall_thickness = 3.5; ceiling_thickness = 2; floor_thickness = 2; slot_depth = .7; tolerance = .5; outside_length = inside_length + side_wall_thickness * 2; outside_width = inside_width + side_wall_thickness * 2; outside_height = insid...
glb/cad_6d31c559dc0d.glb
Create a Latch Lock consisting of two bases, two tops, and one hook. For the two bases, create a rectangular plate 45mm long, 35mm wide, and 5mm thick with rounded corners (5mm radius). Center a vertical cylinder on the plate with a radius of 11.67mm and a height of 15mm. Subtract a small vertical hole with a 2mm rad...
part = "all"; BaseHeight=5; BaseLength=45; BaseWidth=35; MountingHoles=4; CylHeight=15; Spacing=.3; HookLength=30; TabLength=15; TabWidth=5; print_part(); module print_part(){ if(part=="first"){ Base(BaseHeight,BaseLength,BaseWidth,MountingHoles,CylHeight); } else if(part=="second"){ t...
glb/cad_fc4a8566ac11.glb
Create a side-mounted tool holder consisting of a horizontal shelf and a vertical backplate. The shelf is 120mm wide, 20mm deep, and 1.2mm thick. Attached to the rear edge of the shelf is a vertical backplate that is 120mm wide, 1.2mm thick, and 30mm high. On the shelf surface, create six evenly spaced vertical tool g...
globalThickness=1.2; shelfLength=120; shelfWidth=20; shelfThickness=globalThickness; backingheight=30; backingThickness=globalThickness; numberOfHoles=6; holeDiameter=4; holeLargestDia=5; holeSmallestDia=2.5; gussetThickness=globalThickness; triangleGussetWidth=20; progressiveHoleSize=0; triangularGussets=1; useToo...
glb/cad_e47a4ab175f6.glb
Create a Battery Box by starting with a solid rectangular block measuring 87mm in width, 102mm in length, and 15mm in height. The block should have rounded corners with a radius of 5mm. The bottom surface of the block is flat, but the overall outer shell maintains a minimum wall thickness of 5mm. Within this block, c...
box_width=87; box_length=102; hole_depth=15; hole_diameter=11; wall_size=5; $fn=50; bottom=wall_size-2; difference () { hull () { union () { translate ([wall_size,wall_size,0]) cylinder(hole_depth-bottom,wall_size,wall_size); translate([wall_size,wall_size,hole_depth-bottom]) sphere(wall_size)...
glb/cad_6874d0305f4f.glb
Create a tablet stand connector part consisting of five intersecting hollow cylindrical tubes. Each tube has an outer diameter of 10mm, a wall thickness of 3mm (resulting in an inner diameter of 4mm), and a length of 15mm. The geometry is formed by five tubes meeting at a central point. Position one tube vertically a...
part = "5tube"; lf=15; lb=15; lt=15; ll=15; lr=15; r1=10; sf=3; w=30; d=40; r2=r1*0.9; r3=r1*0.75; $fn=50; f=10; if(part=="4tube") xtube(1); else if(part=="3tubel") xtube(2); else if(part=="3tubes") xtube(3); else if(part=="5tube") xtube(4); else if(part=="tube") tube(ts); else if(part=="bend") bend(); modu...
glb/cad_76e72fa0454d.glb
Create a laser mount by starting with a rectangular block that is 24.3mm wide, 15mm long, and 24.09mm high. To this block, add a semi-cylindrical protrusion centered on the side face with a radius of 9.045mm and a length of 15mm, extending the total width of the mount. From this combined volume, remove a central rect...
$fn = 100; nozzleRadius = 0.35 / 2; play = nozzleRadius; plateThickness = 18.3; mountLength = 15; wallThickness = 3; laserRadius = 12.09 / 2; height = 2 * wallThickness + 2 * laserRadius; width = 2 * wallThickness + plateThickness; length = wallThickness + mountLength; laserMount(); module laserMount() { rotat...
glb/cad_981eea2c970f.glb
Create a Parametric Battery Pack Holder designed to hold a 2 by 3 grid of cylindrical batteries. The overall structure is based on a repeating unit cell with a spacing of 20.9mm. For each cell, create a base block 20.9mm wide, 20.9mm deep, and 4mm high. Center a cylindrical hole with a diameter of 19mm through this b...
holesize = 19; alt = 4; supalt = 1; varx = 2; vary = 3; filler=2; $fn=100; bateria(varx,vary); module bateria(x,y) { unitspace= holesize+holesize/10; rotate([0,180,0]) for (i = [0 : 1 : x-1]) { for (j = [0 : 1 : y-1]) { translate([i*unitspace,j*unitspace,0]) { difference() { ...
glb/cad_2b99077fdc03.glb
Create a Magnetic Planetary Gear by starting with a main disc that is a cylinder 20mm in diameter and 3mm thick. Remove a central vertical hole from this disc with a radius of 2.5mm. Additionally, carve out a larger shallow cylindrical recess from the top of the disc with a radius of 3.6mm and a height of 3mm, centered...
difference() { cylinder (h = 3, r=10, center = true, $fn=100); cylinder (h = 5, r=2.5, center = true, $fn=100); translate([0,0,1.5]) cylinder (h = 3, r=3.6, center = true, $fn=100); translate([7.5,0,1.4]) rotate ([90,0,90]) cylinder (h = 1.65, r=2.75, center = true, $fn=100); translate([-7.5,...
glb/cad_6e747181ac29.glb
Create a Magnetic Planetary Gear by starting with a main disc that is a cylinder 20mm in diameter and 3mm thick. Remove a central vertical hole with a radius of 3.3mm. Additionally, carve out four identical rectangular slots to hold magnets. Each slot is a cylinder 5.5mm in diameter and 1.65mm deep. Position these four...
difference() { cylinder (h = 3, r=10, center = true, $fn=100); cylinder (h = 5, r=3.3, center = true, $fn=100); translate([0,0,1.5]) cylinder (h = 3, r=3.6, center = true, $fn=100); translate([7.5,0,1.4]) rotate ([90,0,90]) cylinder (h = 1.65, r=2.75, center = true, $fn=100); translate([-7.5,...
glb/cad_d311a304a294.glb
Create a Magnetic Planetary Gear component by starting with a main cylinder that has a radius of 4.9mm and a height of 3mm, centered on the origin. From this main body, remove two cylindrical voids, each with a radius of 2.75mm and a height of 1.65mm, positioned symmetrically along the X-axis at 2.5mm and -2.5mm respec...
difference(){ union() { difference() { cylinder (h = 3, r=4.9, center = true, $fn=100); translate([2.5,0,-1.4]) rotate ([90,0,90]) cylinder (h = 1.65, r=2.75, center = true, $fn=100); translate([-2.5,0,-1.4]) rotate ([90,0,90]) cylinder (h = 1.65, r=2.75, center = true, $fn=100); } translate([0,0,2.125]) cyli...
glb/cad_87ca7c9944a3.glb
Create a Magnetic Planetary Gear component by starting with a hexagonal prism that has a radius of 2.5mm and a height of 10mm. From this main body, remove a cylindrical hole with a radius of 1.5mm and a height of 10.05mm, positioned with its center offset to 1mm along the y-axis. Finally, carve out a rectangular sectio...
difference(){ cylinder(r=2.5,center=false,h=10,$fn=6); translate([0,1,-0.025]) cylinder(r=1.5,center=false,h=10.05,$fn=100); translate([-2.5,1.2,-0.5]) cube([5,5,11]); }
glb/cad_62061484ce14.glb
Create a Magnetic Planetary Gear component. Start with a main outer cylinder that has a radius of 30mm and a height of 10mm. From this main body, remove several concentric cylindrical bores along the central Z-axis: a central hole with a radius of 2.5mm, a second hole with a radius of 5.1mm and a height of 6mm, and a...
d = 27.5; M = 10; h = 10; difference() { translate([0,0,h/2]) cylinder (h = h, r=30, center = true, $fn=500); translate([0,0,h/2]) cylinder (h = h+0.1, r=2.5, center = true, $fn=100); translate([0,0,7.1]) cylinder (h = 6, r=5.1, center = true, $fn=100); translate([0,0,3]) cylinder (h ...
glb/cad_3d26f387bd27.glb
Create a Magnetic Planetary Gear component. Start with a main cylindrical body that has a total height of 10mm and a radius of 30mm. From this cylinder, remove a central vertical hole with a radius of 4.8mm. Additionally, remove two concentric ring-shaped channels from the center: one with a radius of 5.65mm and a he...
d = 27.5; h = 10; hl = 4; r1 = 4.8; r2 = 5.65; kpm = 3; difference() { translate([0,0,h/2]) cylinder (h = h, r=d+2.5, center = true, $fn=2*3.14*(d+2.5)*kpm); translate([0,0,h/2]) cylinder (h = h +0.1, r=r1, center = true, $fn=2*3.14*r1*kpm); translate([0,0,h/2-hl/2-1.01]) cylinder (h = hl, r=...
glb/cad_f372b23c1656.glb
Create a 90-degree curved lithophane panel. The overall dimensions of the flat surface area are 100mm by 100mm. The model is constructed by dividing this area into 20 equal slices along the width. Each slice is a segment of a surface that varies in thickness based on an image, with a minimum base thickness of 0.6mm (ca...
bend_factor=1; sz=100; num_face=20; xtra=o; image_file = "image-surface.dat"; hole_diameter = 0; hole_border = 0; lithophane_border = 0; layer_height = 0.2; number_of_layers = 20; min_lays=3; s=0.01; length = 99; width = 99; z=sz/num_face; min_layer_height = layer_height*min_lays; hole_radius = hole_diameter...
glb/cad_eab2485625ac.glb
Create a round ventilation grid with a total vent diameter of 58mm. Start by constructing a circular grid base with a thickness of 1.2mm. This grid is formed by a series of intersecting horizontal and vertical bars, each 1.2mm thick and 1.2mm high, spaced evenly to create 10 holes across the center. Trim the outer edge...
ventdiameter=58; thickness=1.2; gridholes=10; gridheight=1.2; collarheight=8; rimwidth=5; radius=ventdiameter/2; gridwidth=(2*radius-thickness)/gridholes; difference() { union() { for(y = [-radius:gridwidth:radius]) { translate([-radius,y,0]) { cube([2*radius, thickness, gridheight]); } } ...
glb/cad_d36b7329aae3.glb
Create a spiral cup by constructing a repeating geometric lattice. The fundamental building block is a coil composed of five identical segments. Each segment consists of three joined 10mm cubes: one vertical cube of 10x10x40mm, one horizontal cube of 40x10x10mm positioned at the top of the vertical one, and one horizon...
zigSize=40; tubeSize=10; module coil(zigCount=5) { rotate([0,0,45]) rotate([35,0,0]) rotate([0,-45,0])for (i=[0:zigCount-1]) { translate([i*zigSize,i*zigSize,i*zigSize]){ union() { cube([tubeSize,tubeSize,zigSize]); translate([0,0,zigSize]) cube([tubeSize,zigSize,tubeSize]); translate([0,zigSize,zi...
glb/cad_9156aa892c51.glb
Create a screw cap by constructing a thick-walled cylinder with an outer radius of 10mm and a total height of 6mm. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a radius of 7.5mm and a height of 8mm, ensuring the inner cutout is centered vertically relative to the outer shape. Th...
difference() { translate( v=[0,0,6] ) { cylinder( r=10, h=6, center=true ); } translate( v=[0,0,8] ) { cylinder( r=7.5, h=8,center=true ); } }
glb/cad_143f4338b3eb.glb
Create a single vertebra for an animatronic tail. Start by constructing a central body composed of three parts: a base cylinder with a radius of 10mm and a height of 17mm, a top conical section that tapers from a radius of 10mm at the bottom to 5mm at the top over a height of 7mm, and an identical inverted conical sect...
module body (){ scale ([1.2,1.3,1]) cylinder (r=10, h=17, $fn=50); scale ([1.2,1.3,1]) translate([0,0,17]) cylinder (r1=10, r2= 5, h=7, $fn=50); rotate([0,180,0]) scale ([1.2,1.3,1]) cylinder (r1=10, r2= 5, h=7, $fn=50); } difference(){ body(); #translate([0,9,-10]) cylinder (r=1.5, h=40, $fn=50); #...
glb/cad_bc924d120fda.glb
Create a single vertebra for an animatronic tail. Start by constructing a base cylinder with a radius of 10mm and a height of 10mm, scaled by 1.2 in the X-axis and 1.3 in the Y-axis. On top of this base, add a conical section that starts with the same scaled dimensions (radius 10mm, X-scale 1.2, Y-scale 1.3) and tapers...
module body (){ scale ([1.2,1.3,1]) cylinder (r=10, h=10, $fn=50); scale ([1.2,1.3,1]) translate([0,0,10]) cylinder (r1=10, r2= 1, h=30, $fn=50); rotate([0,180,0]) scale ([1.2,1.3,1]) cylinder (r1=10, r2= 5, h=7, $fn=50); } difference(){ body(); #translate([0,9,-10]) cylinder (r=1.5, h=40, $fn=50); ...
glb/cad_601a677d644c.glb
Create an animatronic tail segment by combining several geometric volumes. Start with a central rectangular block measuring 40mm in length, 30mm in width, and 8mm in height, centered at coordinates (12.5, 8.5, -32). Add a second rectangular block of the same height (8mm) and width (30mm), but with a length of 16mm, cen...
color([0,0,1]) union(){ translate([12.5,8.5,-32]) cube([40,30,8], center=true); difference(){ translate([-15,8.5,-61]) cube([16,30,8], center=true); #translate([-19.5,18.5,-70]) cylinder (r=1.5, h=40, $fn=50); #translate([-19.5,2.5,-70]) cylinder (r=1.5, h=40, $fn=50); } translate([-5,8.5,-50]) cube([5,30,30], cen...
glb/cad_e29c820a6699.glb
Create an animatronic tail vertebrae segment by constructing a composite geometric shape. Start with a central vertical rectangular plate that is 33mm wide, 56mm tall, and 5mm thick. From the center of this plate, extend two horizontal rectangular arms outward in the same direction. Each arm must be 35mm long, 33mm wid...
color([1,0,0]) difference(){ union(){ translate([10,8.5,24]) cube([35,33,8], center=true); translate([10,8.5,-24]) cube([35,33,8], center=true); translate([30,8.5,0]) cube([5,33,56], center=true); } translate([-12.5,-3,-40]) cube([40,23,80]); }
glb/cad_e34ad2090a3b.glb
Create an animatronic tail vertebra by constructing a central rectangular block measuring 40.5mm in length, 15mm in width, and 3mm in height. At each end of this block, add a vertical rectangular support measuring 8mm in length, 15mm in width, and 23mm in height. These supports should be centered along the width and al...
translate([0,0,0]) union(){ cube([40.5,15,3], center=true); difference(){ translate([24.25,0,-10]) rotate([0,90,0]) cube([23,15,8], center=true); #translate([24,0,-8.5]) rotate([0,90,90]) cylinder(r=2, h=20, center=true, $fn=50); #translate([24,0,-17.5]) rotate([0,90,90]) cylinder(r=2, h=20, center=true, $fn=50); ...
glb/cad_b51ee0c17dba.glb
Create a pulley wheel for an animatronic tail. Start with a main cylinder that has a radius of 40mm and a thickness of 5mm. Through the center of this cylinder, create a circular hole with a radius of 10mm. Additionally, remove a thin cylindrical core with a radius of 1mm and a height of 8mm, and a smaller cylindrical ...
translate([-19.5,10,10]) difference(){ rotate([0,90,0]) cylinder(r=40, h=5, $fn=80, center=true); translate([2,0,0]) rotate([0,90,0]) #cylinder(r=10, h=3, $fn=60, center=true); translate([0,0,0]) rotate([0,90,0]) #cylinder(r=1, h=8, $fn=60, center=true); translate([-2.5,0,0]) rotate([0,90,0]) #cylinder(r=2, h=2, $fn...
glb/cad_70a51e3417a6.glb
Create a LisaEmboss stamp consisting of two mirrored handle sections connected by a central hinge. Each handle is a rectangular block 48mm wide, 70mm long, and 4mm high. The outer edges of the handles are rounded with a 4mm radius. On the inner face of each handle, create a recessed rectangular guide area 40mm wide an...
image_file = "lisatest.png"; hinge_placement = 1; emboss_height = 1.5; $fa = 6; $fs = 1.5; image_width = 40; image_length = 40; image_padding = 4; handle_width = image_width + image_padding*2; handle_length = 70; handle_height = emboss_height+2.5; nub = 3; tol = 0.4; assembly(); module assembly() { stamp_top(...
glb/cad_4dc4e7548f27.glb
Create two identical thrust bearing races. For each race, start with a solid cylinder 30mm in diameter and 4.25mm in height. Carve a circular groove into the top face of the cylinder to create a track for ball bearings. This groove is formed by rotating a circle with a diameter of 4.6mm around the center of the cylinde...
$fn=20; r=15; wall=2; offset=1; ball=4.5/2; slop=0.1; module torus(r, t) { rotate_extrude() translate([r,0,0]) rotate([90,0,0]) circle(t); } difference() { cylinder(h=ball+wall, r=r); translate([0,0,ball+wall+(offset/2)]) torus(r-5, ball+slop); } translate([r*2.5,0,0]) difference() { cylinder(h=ball+wall, r=r); ...
glb/cad_6aeed1df04df.glb
Create a 4.5mm BB thrust bearing with plate consisting of three separate components. First, create a circular plate with a radius of 15mm and a thickness of 2mm. In this plate, carve out a central hole with a radius of 5mm and a ring of 12 circular holes, each with a radius of 2.35mm, arranged evenly around the center ...
$fn=20; r=15; race=r-5; wall=2; gap=2.5; ball=4.5/2; balls=floor((3.14159*2*race)/(ball*2))-1; slop=0.1; module radial(n, off, a=360) { for(x=[0:n-1]) rotate([0,0,(a/n)*x]) translate(off) child(0); } module torus(r, t) { rotate_extrude() translate([r,0,0]) rotate([90,0,0]) circle(t); } difference() { cylinder(r=...
glb/cad_ffdfb828ebb5.glb
Create a parametric funnel with a square cross-section by stacking three concentric geometric volumes. Start with a square base prism that has a width of 70mm across its corners and a height of 10mm. Centered on top of this base, add a square frustum that transitions from the 70mm base width down to a width of approxim...
Number_Of_Sides = 4; $fn=Number_Of_Sides; Width_Across_Corners = 70; dia1=Width_Across_Corners; dia2=dia1/3; dia3=dia2/3; h1=dia1/7; h2=dia1/3; h3=dia1/2; rotate ([0,0,45]) cylinder (d=dia1, h=h1); rotate ([0,0,45]) translate ([0,0,(h1-.001)]) cylinder (d1=dia1, d2=dia2, h= h2); rotate ([0,0,45]) translate ([0,0,(...
glb/cad_c41ed1ef25af.glb
Create a Guitar Eyelash by starting with a rectangular block measuring 48mm in width, 10mm in height, and 5mm in depth. Along the 48mm edge, carve six semi-cylindrical notches for guitar strings, each with a diameter of 1.4mm and a depth that penetrates the block. Position the first notch 2.5mm from the edge, with subs...
CordDiameter = 1.4; FirstCordOffset = 2.5; CordStep = 8.6; Width = 48; Height=10; Depth=5; TextOffsetX = 14; TextOffsetZ = 4; FontSize = 5; Text = "Rafael"; rotate(a=[90,0,0]){ difference(){ cube([Width,Depth,Height]); for(d = [0:5]){ translate([FirstCordOffset+CordStep*d,7,Height-0.5])...
glb/cad_2d0081a19bb6.glb
Create a MacPi Front case with an outer shell measuring 95mm x 94mm x 20mm. The shell should have a wall thickness of 2mm and rounded exterior corners with a 6mm radius. On the front face, create a centered rectangular monitor bezel. This bezel is formed by a hull of four cylinders located at the corners of a 38mm x ...
$fn=72; use <edgebevel.scad> use <roundedcube.scad> module shell_outer() { difference() { translate([6+2, 6+2, 2+2]) minkowski() { rotate([0, 90,0]) cylinder(r=2, h=95-2*6-2*2); rotate([-90, 0, 0]) cylinder(r=2, h=94-2*6-2*2); cylinder(r=6, h=20-2*2-2*2); } translate([0,0,10]) cube([95, 94, 10]); } } module sh...
glb/cad_87cea97c6f83.glb
Create a MacPi Front by constructing a vertical rectangular block that is 2mm wide, 2mm deep, and 10mm high. Modify this block by removing a cylindrical section with a 2mm radius from one of its vertical edges, effectively creating a rounded concave profile on one side of the pillar.
module edgebevel(height,radius) { intersection() { cylinder(r=radius,h=height); cube([radius,radius,height]); } } module edgebevelsub(height,radius) { difference() { cube([radius,radius,height]); cylinder(r=radius,h=height); } } edgebevelsub(10,2);
glb/cad_cf51309d8d03.glb
Create a MacPi Front case by constructing a rectangular block with dimensions 30mm in length, 20mm in width, and 10mm in height. Apply a uniform corner radius of 3mm to every edge of the block, ensuring all twelve edges and eight corners are smoothly rounded to create a soft, pill-like geometric volume.
module roundedcube(lx, ly, lz, radius) { translate([radius, radius, radius]) minkowski() { cube([lx-2*radius, ly-2*radius, lz-2*radius]); sphere(r=radius); } } module roundedcubexy(lx,ly,lz,radius) { translate([radius, radius, 0]) minkowski() { cube([lx-2*radius,ly-2*radius,lz/2]); cylinder(r=radius, h=lz/2); } } mod...
glb/cad_19a2850bc9d3.glb
Create a Kossel Mini SmartLCD-Case by constructing a main rectangular body with dimensions 158mm in length, 3mm in width, and 43.75mm in height. Cut a rectangular hole through the center of the body measuring 128mm by 10mm by 28.75mm. At each of the four corners, create mounting holes with a radius of 1.925mm. Add two...
Extrusion_Size=15; Fixation_Thickness=3; Fixation_Width=15; epsilon = 0.05; extra_radius = 0.1; m3_major = 2.85; m3_radius = m3_major / 2 + extra_radius; m3_wide_radius = m3_major / 2 + extra_radius + 0.2; module fixation() { difference() { hull() { cube([Fixation_Width,Extrusion_Size/2,Fi...
glb/cad_c4c576a573e8.glb
Create a headphones winder consisting of a central spine with integrated fins. Start by creating a central spine that is 50mm high, with a cross-section based on a rounded rectangular profile using 8mm spheres at the ends to soften the edges. Along the length of this spine, incorporate a series of evenly spaced rectang...
fin_ratio = .8; module sub_fins(){ difference(){ children() ; for(i=[0:5:spine_height]){ translate([i, 0,-50]){ if(i==spine_height) { #cylinder(100,5,true); } else{ scale([ fin_ratio+i/(1-i) +1.1 ,((spine_height-i)/spine_height) * i+30, 100]){ cube(1);...
glb/cad_d52720545021.glb
Create a Tripod Leg Clip by constructing a hollow vertical cylinder with an inner diameter of 25.8mm, a wall thickness of 4mm, and a total height of 15mm. Cut a vertical opening 17.5mm wide into the side of the cylinder to allow it to snap onto a leg. On one side of the cylinder, add a small protruding ring with an out...
$fa=1; $fs=0.5; InsideDiameter=25.8; Opening=17.5; FastenerRing=8; FastnerHole=5; Height=15; ClipCurlDiameter=7; Width=4; difference(){ union(){ cylinder(Height,d=InsideDiameter+Width); translate([InsideDiameter/2+FastenerRing/2-4,12,Height/4]) cylinder(Height/2,d=FastenerRing+Width); tra...
glb/cad_3efcc622b3da.glb
Create a custom box and lid assembly. The main box has internal content dimensions of 153mm x 153mm x 38mm. The walls and base are 3.2mm thick. The box features a rim around the top edge that is 3mm high and 3.2mm thick. At each of the four corners, integrate a square pillar for screws; these pillars are based on a scr...
part = "both"; contentXSize = 153.0; contentYSize = 153.0; contentZSize = 38; useScrew = "first"; screwSize = 1.5; lidScrewHoleSize = 2; screwHeadWidth = 3; screwHeadHeight = 2.6; wallThickness = 3.2; rimHeight = 3.0; rimThickness = wallThickness; useThinLid = "first"; tolerance = 0.5; showContentPlacehol...
glb/cad_5acbf748a1cc.glb
Create a Simplified Steampunk Goggles lens holder. Start by creating a main cylindrical body with an outer radius of 28mm and a height of 40mm. Hollow out the center with a concentric cylinder of 26mm radius to create a wall thickness of 2mm. Flatten the front face of the cylinder to make it flush. Around the outer ci...
small = 0.1; innerR = 52.0 / 2; outerR = 56.0 / 2; lowH = 12.0; highH = 40.0; trimH = 3.0; trimR = 57.0 / 2; trimPos = [0,0,0]; trimSteps = 12; trimWidth = 8; $fn = 16; highQ = 128; truncateR = 80; outerD = outerR * 2.0; dv = highH - lowH; distHL = sqrt(outerD*outerD + dv*dv); angleL = atan(dv/outerD); halfHL = ...
glb/cad_8a821f3f762e.glb
Create a filament guide consisting of a flat mounting bracket and an attached curved guide ring. Start by creating a 2D bracket profile with a total height of 40mm and a thickness of 5mm. The profile should be 11mm wide at its base, extending to a total width of 16mm, with a 4mm overhang at the top. Extrude this bracke...
bracketThickness = 5; bracketHeight = 40; bracketWidth = 6; bracketOverhang = 4; bracketExtrusion = 50; guideInner = 20; guideThickness = 3; guideFilament = 1.9; guideExtension = 8; guideRadius = 200; devMode = false; module bracketPoly() { thickness = bracketThickness; height = bracketHeight; width = br...
glb/cad_e09ed7b9e022.glb
Create a 3D object by extruding a composite 2D shape to a height of 10mm and applying a 2mm bevel to the top edge. The base 2D profile is centered on the origin and consists of three overlapping rectangles: one measuring 8mm by 30mm, a second measuring 35mm by 8mm rotated 30 degrees around the center, and a third measu...
bevel_extrude_example(); module bevel_extrude_example() { bevel_extrude(height=10,bevel_depth=2,$fn=16) example_shape(); } module example_shape() { union() { square([8,30],true); rotate(30) square([35,8],true); translate([0,15]) square([30,8],true); } } module bevel_border(size=0.02) { difference() ...
glb/cad_cba84ba9c231.glb
Create a 3D logo consisting of six interlocking rectangular prisms, each with a thickness of 4mm. Arrange these prisms in a staggered, zig-zagging vertical column. The first prism should be 2mm wide, 12mm high, and 4mm deep, positioned at the origin. The second prism should be 12mm wide, 2mm high, and 4mm deep, positio...
w = 12; h = 4; z = 4; num_sticks = 6; logo(w,h,z,num_sticks); module logo(a=2, b=2,h=2,n=4) { for(i = [0:1:n-1]){ ii = floor(i/2); if(i%2 ==0){ translate([ii*(a-b), ii*(b-a)]) cube([b,a,h]); }else{ translate([ii*(a-b), ii*(b-a)]) c...
glb/cad_5705aa2b3607.glb
Create a nail polish holder stand by starting with a solid rectangular block measuring 76mm wide, 76mm deep, and 15mm high. Within this block, carve out four distinct holes arranged in a 2x2 grid. Each hole is centered within a 38mm by 38mm quadrant. The two holes on the left side must be oval-shaped cutouts. Each ov...
itens_per_line = 2; z_size = 15; colorama_lines = [2]; risque_lines = [1]; num_x = len(colorama_lines) + len(risque_lines); for(x = [1 : 1 :num_x]) { for( y = [1 : 1 : itens_per_line]) { for ( z = [0 : 1 : len(colorama_lines)]) { if ( colorama_lines[z] == x ) { ...
glb/cad_57f7209cea6e.glb
Create a wiimote holder consisting of two identical bins placed side-by-side. Each bin is a hollow container with a height of 54mm. The outer walls are defined by a profile that is 48mm wide and 45mm deep, with a base thickness of 3mm. The front of each bin features a wide cutout to allow easy access to the controlle...
n = 2; a = 6; b = 9; w = 48; h = 39; m = 3; z = 54; outer_points =[[0,a], [0,h+2*m-b], [b,h+2*m], [w+2*m-b,h+2*m], [w+2*m,h+2*m-b], [w+2*m,a], [w+2*m-a,0], [a,0]]; inner_points =[[m,a], [m,h+2*m-b], [b,h+m], [w+2*m-b,h+m], [w+m,h+2*m-b], [w+m,a], [w+2*m-a,m], [a,m]]; hole_points = [[-10,0], [-14,4], [-14,19], [-11,22...
glb/cad_d4f813ed074c.glb
Create a parametric hexagon box. Start with a hexagonal base that has a radius of 80mm and a height of 1mm, centered on the origin. Build the walls of the container by creating four sequential layers, each with a height of 50mm. Each layer must be a lofted hexagonal shell created by connecting a hexagon at the bottom o...
$border=1.2; $knick_height = 50; $knick_count = 4; $bottom_height = 1; difference(){ union(){ cylinder(r=80, h=1, $fn=6, center=true); for ( layer = [1:$knick_count]) { hull(){ translate([0,0, $bottom_height + (layer-1)*$knick_height ]) rotate([0, 0, 90...
glb/cad_d0fa5fe59c2b.glb
Create a filament puller roller by starting with a solid cylinder 25mm in diameter and 59mm in height. Bore a central longitudinal hole 8mm in diameter through the entire length of the cylinder. To secure the rod, create four set screw ports. Two of these ports are 3.1mm in diameter and are drilled radially through the...
diaroll = 25; lroll = 60-1; dia_rod = 8.1; setscrew_nutdia = 5.8; setscrew_nutthick = 2.6; setscrew_nutdepth = 10; setscrew_dia = 3.1; setscrew_rodmargin = 1; $fn = 128; module setscrew() { union() { translate([dia_rod/2 + setscrew_rodmargin,-setscrew_nutdia/2,-0.1])cube([setscrew_nutthick, setscrew_nutdia, set...
glb/cad_7fbf716cd610.glb
Create a Trivial-like game piece starting with a main cylindrical base that has a radius of 25mm and a height of 10mm. Carve three thin, rectangular slots into the top half of this cylinder; each slot should be 52mm wide, 1mm thick, and 2mm deep, centered at a height of 5mm and spaced 60 degrees apart around the centra...
difference(){ cylinder(r=25,h=10,$fn=200); union(){ translate([0,0,5]) for(i=[0:2]){ rotate([0,0,60*i]) union(){ translate([0,0,5]) cube([52,1,2],center=true); rotate([0,0,30]) translate([15,0,0]) cylinder(r=2,h=6,$fn=100); rotate([0,0,30]) translate([-15,0,0]) cylinder(r=2,h=6,$fn=100); } } } } for(i=[0:6]){ rotat...
glb/cad_651a20c5c6dc.glb
Create a power switch actuator consisting of a square base with a central square shaft. Start by creating a square base plate measuring 19.6mm by 19.6mm with a thickness of 3mm. Centered on top of this base, add a square shaft that is 8.4mm tall. The outer dimensions of this shaft should be 7.5mm by 7.5mm. Finally, car...
BaseW = 19.6; BaseH = 3; TotalH = 8.4; ShaftW = 3.3+.2; ShaftH = 8; Tol = 4; difference () { union() { translate ([ 0, 0, BaseH/2 ]) cube ([ BaseW, BaseW, BaseH], center=true ); translate ([ 0, 0, TotalH/2 ]) cube ([ Shaft...
glb/cad_9569706aef74.glb
Create a parametric electronics enclosure called the Ultimate Parametric Box with external dimensions of 80mm length, 60mm width, and 30mm height. The walls should have a thickness of 2mm. Construct the main body as a hollow shell with rounded corners using a 2mm fillet radius. The shell is split into a top and bottom...
Length = 80; Width = 60; Height = 30; Thick = 2; PCBFeet = 0; Vent = 0; Vent_width = 1.5; txt = "HeartyGFX"; TxtSize = 4; Police ="Arial Black"; Filet = 2; Resolution = 50; m = 0.9; PCBPosX...
glb/cad_532a55c6a5c3.glb
Create a clock pendulum horizontal swinger replacement part. Start with a central semi-circular arc that has a thickness of 4mm and an outer radius of 26.35mm. At the center of the arc's flat edge, add a vertical cylindrical attachment point with a radius of 4.55mm and a height of 4mm, topped with a hemispherical dome ...
$fn = 200; difference() { union() { difference() { union() { difference() { translate([0, 5, 0]) difference() { cylinder(h = 4, r = (45.5+2*3.1)/2); translate([0,0,-1]) cylinder(h = 6, r = 45.5/2); } translate([0,-10.7,2]) cube([55, 30, 6], center = true); ...
glb/cad_3fa3d2460259.glb
Create a spinning top consisting of a central shaft and a weighted body. First, construct the central shaft as a tapered cylinder with a height of 30mm. The base diameter is 10mm, tapering up to a top diameter of 6mm, capped with a hemisphere of 6mm diameter. Hollow out the center of this shaft with a vertical hole 8...
ringCount = 5; ringDiameter = 30; ringInnerDepth = 2; ringOutterDepth = 4; ringHeightInner = 2; ringHeightOutter = 6; shaftHeight = 30; shaftDiameterTop = 6; shaftDiameterBase = 10; pointInsertClearance = 0.05; pointHeight = 8; pointBallDiameter = 2; shaftHoleWallThickness = 1; shaftHoleHeight = 10; quali...
glb/cad_41b8a8137165.glb
Create an Extruder Calibration Tool by starting with a solid rectangular block that is 100mm long, 12mm wide, and 12mm high. Carve a longitudinal hole through the center of the block along its entire 100mm length; this hole should be a cylinder with a diameter of 6mm. To create the open slot seen in the model, remove a...
diameter = 3; thickness = 3; length = 100; difference() { cube([length, 2 * diameter + 2 * thickness, 2 * diameter + 2 * thickness]); translate([0, diameter + thickness, diameter + thickness]) rotate([0, 90, 0]) { cylinder(length, r = diameter); translate([-1.5 * diameter, 0, length / 2]) { cube([2 * diamet...
glb/cad_56400f6e8e42.glb
Create a Dual Filament Spool Spindle with Guides. Start by constructing a main rectangular base measuring 70mm in length, 13mm in width, and 9mm in height. On one end of this base, integrate a cylindrical spindle with an outer diameter of 11mm and a length of 8mm to support a spool. Add two filament guide arms extendi...
include <FilamentSpool.scad> module MendelSpindle() { difference() union() { translate([0,-2,0]) { Spindle(10.5,11,8,0,0,0,5,0,[1.5,18,5]); } translate([-64,-2,0]) { cube([70,13,9]); } translate([-57.5,9.25,0]) rotate([0,0,150]) { ClipBar(); } } } module ClipBar() { difference() { union...
glb/cad_42407060f786.glb