Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a shoulder joint repair assembly consisting of two parts: a shoulder loop and an arm pin. First, construct the shoulder loop as a short cylinder with a diameter of 10.34mm and a height of 4.2mm. Bore a hole through the center of this cylinder with a diameter of 4.8mm. On the outer wall of the loop, create a pr...
$fn = 32; shoulder_dia = 10.34 ; shoulder_thick = 4.2 ; arm_pin_dia = 4.8 ; arm_pin_inner_dia = 3.2 ; arm_pin_collet = 2.5 ; arm_pin_collet_sep = 1.8; arm_pin_length = 11.4 ; body_pin_dia = 4.2 ; body_pin_length = 5 ; body_pin_retain_dia = 5.2 ; body_pin_retain_len = 1 ; anchor_rad = 3; anchor_length = 6; anchor_th...
glb/cad_444e98835b73.glb
Create a CD motor air pump consisting of a main housing and a separate threaded screw. For the housing, construct a base cylinder with a radius of 12.775mm and a height of 8.9mm. Centered on top of this base, add a taller vertical cylinder with a radius of 7.75mm and a height of 21.9mm. Hollow out the center of this en...
use <polyScrewThread_r1.scad> $fn = 150; wallThickness = 1.9; motorDiameter = 24.43; motorPlay = 0.1; motorRadius = motorDiameter / 2 + motorPlay; motorDepth = 7; axDiameter = 2; axRadius = axDiameter / 2; axPlay = 0.05 * 1; axLength = 10; screwDiameter = 15; screwRadius = screwDiameter / 2; screwPlay = 0.25; scre...
glb/cad_e592658e5b50.glb
Create a bowden adapter plate by starting with a rectangular block 60mm long, 25mm wide, and 7mm thick. Center the block on the origin. Remove a central vertical hole with a diameter of 3.5mm that passes completely through the thickness of the plate. Around this central hole, create a raised cylindrical boss with a dia...
sagging=6; manigofset=0.1; screwdist=50; mounting_screw=3; mount_length=60; mount_width=25; thickness=7; fittingdiameter=10.1; fitting_screw_deep=5.5; hotend_diameter=16; hotend_thickness=5; filament_hole=3.5; $fn=50*1; module plate();{ difference(){ cube([mount_length,mount_width,thickness],center=true)...
glb/cad_7a2ccfc39f65.glb
Create a NEMA 23 motor mounting template with a total height of 10mm. First, create four mounting holes as cylinders with a radius of 2.375mm. Position these holes in a square pattern centered around the origin, with each hole located 23.57mm away from the X and Y axes (at coordinates [±23.57, ±23.57]). For each hole...
NEMA_Size = 23; shaft = -1; pilot = -1; height = 10; nut_size = 4; nut_height =3; adjust = 5; Show_Base = 0; difference() { if (Show_Base==1) translate([-NEMA_Size*2,-NEMA_Size*2,0]) cube([NEMA_Size*4,NEMA_Size*4,height-.01]); NEMA_Mount (NEMA_Size, shaft, pilot, height, nut_size, nut_height, adjust); } ...
glb/cad_9981dee48beb.glb
Create a parametric ball caster housing. Start by creating a main cylinder with a radius of 7.26mm and a height of 15mm. From the top of this cylinder, remove a spherical void with a radius of 5.26mm, positioned so that the center of the sphere is 4.76mm from the top of the cylinder, leaving a portion of the ball protr...
WallThickness = 2; BallSize = 9.525; Airgap = .5; Mount = 3; TotalHeight = 15; MountScrewRad = 1.5; BallProtrude = .33; MountType = 1; ScrewSpacing = 25; cylheight = TotalHeight; cylrad = (BallSize/2) + WallThickness + Airgap; echo (cylheight); difference () { cylinder(r1 = cylrad , r2 = cylrad, cylheight - (BallSi...
glb/cad_bfd62f875f2b.glb
Create a Cable-Guy power adapter holder. Start by creating a rectangular base body 30mm long, 13mm wide, and 10.2mm high. At one end of this body, attach a cylindrical socket with an outer diameter of 48mm and a height of 10.2mm. This socket must be hollowed out to receive a power plug; the internal cavity is defined b...
s=0.05; dc=40; hc=8.7; dap=7; dfp=7; pt=1.6; pw=6.3; apl=17; fpl=20; sl=(hc+fpl)*1.2; ft=1.5; bl=30; bw=13; bh=hc+ft; al=55/2; aw=8; aGap=1.5; ah=bh-aGap; ll=35; lw=9; module plug(f=0) { translate([0,0,hc/2]) cylinder(r=dc/2+f,h=hc,center=true); { for (i = [-55,55]) rotate([0,0,i]) translate([dap...
glb/cad_c0980a6be222.glb
Create a hinge fitting for a flashlight by constructing a composite cylindrical part with a total height of 10.4mm. Start with a base cylinder that has a diameter of 20.75mm and a height of 2.5mm. On top of this base, add a larger cylinder with a diameter of 23mm and a height of 3.3mm. Above this second cylinder, creat...
s=0.05; $fs=1; OD=23; OD2=10; OD3=20.75; ODtop=16; ID=6+0.5; ID2=3.5+0.25; DR=7.7; HT=10.4; HC=9.7; HO=7; Hlip=3.3; HW=2.5; Hcone=HO-Hlip; HlipT=HT-Hcone-HW; rotate([180,0,0]) difference() { union() { cylinder(r=OD3/2,h=HW); translate([0,0,HW-s]) { cylinder(r=OD/2,h=HlipT); translate([0,0,HlipT-s]) cylinder...
glb/cad_2311901e8137.glb
Create a hot end mount for a 3D printer head. The main body is a hollowed-out cube with an outer dimension of 55mm. The structure is formed by four identical walls, each 4mm thick, arranged in a cross-shape and rotated every 90 degrees around the Z-axis. Each wall is 35mm wide and 43mm deep. On the outer edges of thes...
brg_l= 35; brg_d= 12+0.1; rod_d= 6; rod_spc= 18; m3_d_tight= 2.9; m3_washer=7; brg_thightess= 0.2; wall_th=4; tol=0.1; $fa=1; $fs=1; sboltx= brg_d/2-1.5 - 0.5; sbolty= 8 - 0.5; sboltz= 35/2-brg_thightess; ear_th=5; intersection() { the_stuff(); translate([0,0,55]) cube([60,60,55],center=true); } module brg_ca...
glb/cad_dde21ab397fb.glb
Create a headphone holder consisting of a central vertical support connecting two horizontal arms. Start with a central vertical rectangular pillar measuring 15mm wide, 10mm deep, and 80mm tall. At the bottom of this pillar, attach a horizontal base plate measuring 110mm wide, 15mm deep, and 4mm thick, centered on the ...
difference() { cube(size = [110,15,4], center=true); translate([38,0,-2]) cylinder(h=4, d=6); translate([-38,0,-2]) cylinder(h=4, d=6); } translate([0,0,40]) cube(size = [15,10,80], center=true); translate([0,0,80]) cube(size = [90,15,4], center=true); translate([45,0,77]) cube(size = [5,15,10], center=true...
glb/cad_c18d9c86f09d.glb
Create a hollow rectangular box with external dimensions of 100mm in width, 50mm in depth, and 80mm in height. To form the interior cavity, remove a smaller centered rectangular block from the top, measuring 98.5mm in width, 48.5mm in depth, and 77mm in height. Position this inner cutout so that its bottom face is shif...
x=100; y=50; z=80; k=3; difference(){ cube([x,y,z],center=true); translate(v=[0,0,k]) cube([x-k/2,y-k/2,z-k],center=true);}
glb/cad_ea066db72378.glb
Create a 3D extruded parametric icon based on a mathematical curve. The shape is defined by the parametric equations x = cos(t) - cos(3t)^5 and y = sin(3t) - sin(2t)^6, where t ranges from 0 to 360 degrees. Scale the resulting 2D graph by 15mm on both the X and Y axes. Extrude this profile to a height of 10mm. The li...
a=1; b=3; c=3; d=2; j=5; k=6; cycles=1; scale_x=15; scale_y=15; height=10; thickness=2; function hadamard(a,b) = len(a)==len(b) ? [for (i=[0:len(a)-1]) a[i]*b[i]] : []; module line(p1,p2,thickness=0.5) { linear_extrude(p1.z) hull() { translate(p1) circle(d=thickness);...
glb/cad_b86af05a561e.glb
Create a basket by constructing a lattice of thin cylinders and a solid base. First, create a circular base with a radius of 2mm and a height of 52mm. To form the walls, place 36 thin cylinders, each 100mm long with a thickness of 1mm, arranged in a circular pattern. Position these cylinders at a radius of 50mm from th...
alpha=25; j=100; r1=50; t=1; s=10; mirror(){ for (i=[0:s:360]){ rotate(a=i,v=[0,0,1]) translate(v=[r1,0,0]) rotate(a=alpha,v=[1,0,0]) cylinder(j,t,t);} } for (i=[0:10:350]){ rotate(a=i,v=[0,0,1]) translate(v=[r1,0,0]) rotate(a=alpha,v=[1,0,0]) cylinder(j,t,t);} translate(v=[0,0,-2]) cylinder(2,52,52); translat...
glb/cad_adca970ed71a.glb
Create a 3D model of a dessert pastry. Start by centering a cube with side lengths of 50mm. Position a sphere with a radius of 450mm so that its center is 800mm above the origin, creating a rounded dome that rests atop the cube. Around the central axis, place 18 identical cylinders, each with a radius of 700mm and a he...
cube(50, center=true); translate(v=[0,0,800]) sphere(450); for (i=[0:20:350]) { echo (i); rotate(a=i, v=[0,0,1]) translate(v=[25,0,0]) rotate(a=20, v=[0,1,0]) cylinder(700,700,700); }
glb/cad_bc0771b452fd.glb
Create a basket by constructing a conical lattice shell. Start with a circular base that has a radius of 52mm and a height of 2mm. From the perimeter of this base, extend a series of thin vertical struts, each 100mm long and 1mm thick, angled inward at 25 degrees toward the center. Arrange these struts in two concentri...
alpha=25; j=100; r1=50; t=1; s=10; mirror(){ for (i=[0:s:360]){ rotate(a=i,v=[0,0,1]) translate(v=[r1,0,0]) rotate(a=alpha,v=[1,0,0]) cylinder(j,t,t);} } for (i=[0:10:350]){ rotate(a=i,v=[0,0,1]) translate(v=[r1,0,0]) rotate(a=alpha,v=[1,0,0]) cylinder(j,t,t);} translate(v=[0,0,-2]) cylinder(2,r1+2,r1+2); tran...
glb/cad_d192a4633d24.glb
Create a Cable-Guy wall wart organizer. Start by creating a main body consisting of a rectangular block 30mm long, 13mm wide, and 2.825mm high. At one end of this block, attach a circular head with a diameter of 40mm and a thickness of 8.7mm. Within this circular head, create a central hole to accommodate a plug. Thi...
s=0.05; dc=40; hc=8.7; pgd=4.77; pt=1.53; pw=7.94; dfp=pw/2+6.35+pgd/2; dap=12.7/2-pt/2; apl=18.25; fpl=apl+3.18; sl=(hc+fpl)*1.2; ft=1.5; bl=30; bw=13; bh=(hc+ft)/4; al=55/2; aw=8; aGap=1.5; ah=bh-aGap; ll=35; lw=9; module plug(f=0) { translate([0,0,hc/2]) cylinder(r=dc/2+f,h=hc,center=true); translate(...
glb/cad_5bf21e3326a7.glb
Create a Z follower part for a round TR8x1.5 nut. Start with a central rectangular block measuring 34.5mm in width, 42mm in depth, and 30mm in height, centered on all axes. Remove a central vertical cylinder with a radius of 11.25mm and a height of 20.5mm. Additionally, remove a smaller concentric vertical cylinder w...
height = 30; width = 42; distance = 6; nut_diameter = 22.5; nut_height = 20.5; rod_diameter = 13; screw_spacing = 30; screw_diameter = 5; screw_head = 11; screw_level = 8; $fn = 48; difference() { cube( [ nut_diameter+distance*2, width, height ], center = true ); cylinder( r = nut_diameter/2, h = nut_height, c...
glb/cad_e8e1db5000da.glb
Create a 3D model of the Caja Madrid Tower. Start by constructing a central rectangular base that is 50mm wide, 50mm deep, and 16mm high. On top of this base, center a hollow rectangular frame with outer dimensions of 40mm wide, 18mm deep, and 130mm high. The walls of this frame should be 11mm thick on the sides, leavi...
translate([-20,0,0]) rotate([90,0,0]) difference(){ translate([0,0,-5]) cube([40,18,130]); translate([11,-2,-0.5]) cube([18,24,118.5]); } translate([40,-110,0]) rotate([-90,0,0]) difference(){ translate([0,0,55]) union(){ cube([18,14,110.5],center=true); translate([0,0,6.5]) cube([18,27.5,97.5],center=true); translate...
glb/cad_66b76b2cddc1.glb
Create a housing for a Hesine M-505-B consisting of two identical mirrored components. Each component starts with a rectangular base plate measuring 97mm in width, 122.5mm in depth, and 6mm in thickness. From this base, remove a rectangular section measuring 46mm by 62.5mm from the top inner edge. Drill three screw h...
vRD = 6.0; vLOBB = 97.0; vLOBT = 122.5; vLOEB = 46.0; vLOET = 62.5; vLSD = 3.3; vLAD = 9.0; vLLRB = 14.0; vLLRT = 7.5; vSHBH = 150.0; vSHBB = 9.0; vSHBT = 30.0; vSHBL = 15.0; vSHSB = 35.0; vSHST = 6.0; LinksOben(); translate([-(vLOBB+20),0,0]) RechtsOben(); module RechtsOben() { transl...
glb/cad_1e28345659a9.glb
Create a printable key ring with a total thickness of 3mm. Start by constructing a main ring with an outer diameter of 25mm and a wall thickness of 3mm. This ring should not be a complete circle; create a gap in the ring by removing a small rectangular section 1mm wide and 3mm high, centered vertically on one side. At...
depth=3; circDiam=25; thickness=3; slitWidth=1; smRing=1; circRad=circDiam/2; if (smRing==0){ bigCircle(); } if (smRing==1){ difference(){ union(){ bigCircle(); translate([circRad*1.5-thickness,0,0]) tube(depth,circRad/2,thickness); } translate([circRad-thickness/2,0,depth/2]) box(thickness*2,thicknes...
glb/cad_712f4267620c.glb
Create a 3D model of a Makerbot Mini key ring with a total thickness of 3mm. Start with a main rectangular base measuring 80mm by 100mm. From this base, remove a centered rounded rectangular cutout measuring 62.5mm by 80mm with corner radii of 8mm. Within the remaining frame, add a small rectangular protrusion (the e...
depth=3; height=100; ringThick=4; width=height/1.25; extSize=height/4.3; nozHeight=height/11.6; extHeight=extSize+nozHeight; union(){ difference(){ box(width,height,depth); translate([0,height/8.75,0]) roundedBox(height/1.6,height/1.85,depth,8); translate([0,-height/4,0]) m(10,width/2); } translate([0,-heigh...
glb/cad_4cd84b9c9621.glb
Create a Bowden support consisting of a central cylindrical tower joined to a rectangular base. Start by forming the main body from a rectangular block measuring 60mm in length, 17mm in width, and 10mm in height, centered on the origin. At the center of this block, add a cylinder with a radius of 10.5mm and a height of...
difference(){ union(){ cylinder(r=10.5, h=10); translate([0,0,-5]) cylinder(r=10.5, h=10, center=true); translate([0,0,-5]) cube(size=[60,17,10], center=true); } translate([0,0,10.1/2]) cylinder(r=13.5/2, h=10.1,center=true); translate([0,0,-10.1/2]) cylinder(r=16.6/2, h=10.1,center=true); translat...
glb/cad_196ab095c661.glb
Create a Bowden support consisting of a rectangular base with a central cylindrical tower. Start with a rectangular block measuring 60mm in length, 17mm in width, and 10mm in height. At the center of this block, integrate a cylinder with a radius of 10.5mm and a height of 20mm, centered vertically so it extends 5mm abo...
difference(){ union(){ cylinder(r=10.5, h=10); translate([0,0,-5]) cylinder(r=10.5, h=10, center=true); translate([0,0,-5]) cube(size=[60,17,10], center=true); } translate([0,0,10.1/2]) cylinder(r=13.5/2, h=10.1,center=true); translate([0,0,-10.1/2]) cylinder(r=4/2, h=100,center=true, $fn=100); tra...
glb/cad_94cf69119599.glb
Create a Customizer Example model by starting with a central cube that is 20mm on each side. Add a cylinder to the center of the cube, oriented along the Y-axis, with a radius of 10mm and a total height of 22mm, so that it extends 1mm beyond each opposite face of the cube. Finally, bore a vertical hole through the cent...
cube_size = 20; hole_diameter = 2.5; hole_radius = hole_diameter/2; hole_depth = 1; show_wheels = "yes"; wheel_thickness = 1; function BEZ03(u) = pow((1-u), 3); bing = 3+4; baz = 3 / hole_depth; difference() { union() { translate([0, 0, cube_size/2]) cube([cube_size,cube_size,cube_size], center=true); ...
glb/cad_bca3204dab3f.glb
Create a basic motor mount for an 8.5mm motor. Start by constructing a hollow cylinder with an outer radius of 5.6mm, an inner radius of 4.4mm, and a height of 5.75mm. Attached to the side of this cylinder, add a rectangular connector block that is 6mm wide, 7mm long, and 5.75mm high. Position this block so its center ...
motor_radius = 4.4; holder_radius = 5.6; holder_height = 5.75; channel_width = 2; channel_height = 1.5; connector_height = 5.75; connector_width = 6.0; connector_length = 7.0; connector_hole_height = 3.6; connector_hole_width = 3.4; connector_offset = 4.5; difference() { union() { difference() { ...
glb/cad_5668cb604eda.glb
Create a xylophone robot servo mount. Start with a central rectangular base measuring 41mm in width, 28mm in height, and 20mm in thickness. On the top and bottom faces of this base, create two aligned holes with a diameter of 2mm, spaced 10mm apart, passing through the width of the block. Construct an arm by creatin...
$fa=5; $fs=0.2; arm_base_D=13; arm_base_thicknes=5; arm_tip_D=7; arm_tip_ticknes=2.5; arm_tip_distance=28; arm_tip_z_offset=-1.25; arm_axis_D=13; arm_axis_H=3; Servo_width=41; Servo_height=28; Servo_thickness=20; Servo_holes_D=4/2; Servo_holes_spacing=10; Servo_holes_spacing2=2; Servo_cable_offset=19; Walls=10; ...
glb/cad_16b000ecea7e.glb
Create a xylophone robot servo mount. Start with a base plate that is 100mm wide by 110mm deep and 6mm thick. From the top of this base, build a central housing that is 61mm wide, 40mm deep, and 28mm high. This housing should have a rectangular cutout running through its center that is 41mm wide, 20mm deep, and 28mm hi...
$fa=5; $fs=0.2; Servo_width=41; Servo_height=28; Servo_thickness=20; Servo_holes_D=3.5/2; Servo_holes_growe=29; Servo_holes_spacing=10; Servo_holes_spacing2=2; Servo_cable_thicknes=9; Servo_cable_end=5; Servo_cable_cutout=10; Servo_cable=6; Walls=10; Base_X=100; Base_Y=110; Base_Z=35; full_cut=1; cable_cut=1; mod...
glb/cad_cd8d92617581.glb
Create a customizable card box consisting of a bottom tray and a lid. The main interior cavity for the cards should be 91mm by 66mm with a stack height of 20mm. All walls should be 2mm thick. For the bottom tray, create a rectangular shell with a height of 21mm. The bottom face must feature a centered, oval-shaped cut...
CARD_SIZE_LONG_EDGE =91; CARD_SIZE_SHORT_EDGE = 66; CARD_STACK_HEIGHT = 20; WALL_THICKNESS = 2; TAB_THICKNESS = 10; EXTRA_SPACE = .25; END_CUTOUT_HEIGHT_PERCENTAGE = 80; END_CUTOUT_WIDTH_PERCENTAGE = 67; BOTTOM_CUTOUT_WIDTH_PERCENTAGE = 67; BOTTOM_CUTOUT_LENGTH_PERCENTAGE = 67; CARD_LONG_EDGE = CARD_SIZE_LONG_EDG...
glb/cad_279225538acd.glb
Create a 2020 Extension foot by starting with a solid cube measuring 28mm x 28mm x 52mm. Hollow out the center of this cube by removing a smaller rectangular block measuring 18.4mm x 18.4mm x 50.4mm, centered horizontally and vertically but shifted 3.81mm upward along the Z-axis to leave a solid base at the bottom. Fin...
difference() { cube ([28,28,52],center=true); translate ([0,0,3.81]) cube ([18.4,18.4,50.4],center=true); cylinder (r=3.8,h=70,center=true); }
glb/cad_0925c4b3107e.glb
Create a dynamic ammo storage stacking lid. Start with a solid rectangular block with rounded corners, measuring 15mm in height. The overall footprint is determined by a grid of 20 holes arranged in 4 rows of 5. Each hole has a diameter of 12.342mm (12.2mm scaled by 1.01). The holes are arranged in a staggered hexago...
$fn=50; d0=12.2; h4=80; casescaling=1.01; noOfCases=20; Rows=4; rim=3; height=15; bottomthickness=2; pinheight=2; holechamfer=0.5; outerchamfer=1; module corner(xpos,ypos,height,cornerradius,outerchamfer){ translate([xpos,ypos,0]) difference(){ cylinder(h=height,r=cornerradius); translate...
glb/cad_46b7760777e8.glb
Create a dynamic ammo storage slide on lid. Start by constructing a solid rectangular block with rounded ends, measuring 50mm in height. The overall footprint is defined by a hull of four cylinders, each with a radius of 9.1mm, positioned to create a rounded rectangular profile. Hollow out the center of this block to...
$fn=50; d0=12.2; casescaling=1.01; noOfCases=3; Rows=1; rim=3; height=50; lidthickness=2; wallthickness=1.2; outerchamfer=1; module corner(xpos,ypos,height,cornerradius,outerchamfer){ translate([xpos,ypos,0]) difference(){ cylinder(h=height,r=cornerradius); translate([0,0,height]) ...
glb/cad_4ca5d0152a9e.glb
Create a two-part enclosure for a DDS Function Signal Generator Module. The main body is a box with outer dimensions of 85mm x 85mm and a total height of 24mm. The walls and floor are 2mm and 1mm thick, respectively. For the bottom section, create a hollowed-out cube with a floor thickness of 1mm. Subtract a central v...
wall = 2.0; floor = 1.0; $fn = 32; board = 81; module hollow(){ translate([wall, wall, floor + 5]) cube([board, board, floor + 20]); translate([wall + (board-65)/2, wall, floor]) cube([65, board, 6]); translate([wall , wall + (board-65)/2, floor]) cube([board, 65, 6]); hull(){ #translate([(15/2...
glb/cad_68e1c67d8660.glb
Create a Colbert polyhedron vertex by constructing a low-resolution cylinder with a radius of 14mm and a height of 11mm. Position a scaled-down version of a human head and shoulders model, reduced to 10% of its original size, so that it sits atop this cylindrical platform. The head model should be centered and translat...
union() { translate(v = [0, 25, 20]) scale(v= [.1,.1,.1]) intersection() { import_stl("Colbert_LowRes_Brow.stl"); translate([0,0,400]) cube(size = [1000, 1000, 1000], center = true); } union() { import_stl("Y1.stl", convexity = 5); cylinder(h = 11, r = 14); } }
glb/cad_7b07dfc0e7c5.glb
Create a fan guard for a 50mm square fan. Start with a square plate 50mm wide and 50mm deep, with a total thickness of 3mm. At each of the four corners, create a cylindrical mounting hole with a diameter of 3.5mm. In the center of the plate, carve out a circular opening with a diameter of 48mm (leaving a 1mm solid ...
fan_side_length=50; mount_hole_width=40; mount_hole_d=3.5; mesh_kind="hex"; mesh_holes_d=10; mesh_thickness=2; mesh_clearance=1; mesh_density_ratio= 98; solid_outer_border=1; outer_roundness=50; mesh_offset= 68; tol=0.1+0; $fa=1+0; $fs=0.33+0; dholes= mesh_holes_d; marginhole= (fan_side_length-mount_hole_wi...
glb/cad_2ef5d7dbe124.glb
Create a Commercial Tap Handle consisting of a main body with a total height of 110mm and a maximum diameter of 23mm. The body is a revolved solid based on a "Hand D" profile, creating a smooth, ergonomic grip shape that is wider at the top and tapers toward the bottom. At the base of the handle, integrate a cylindric...
Handle_height = 110; Profile_shape = 13; Handle_max_diameter = 23; Scale_or_shift = "scale"; Faceted = 200; Add_Ferrule = "no"; Ferrule_diameter = 15; Ferrule_length = 10; Add_grips = "no"; Number_of_grips = 8; Grip_shape = 64; Grip_Radius = 3.0; Percent_Grip_Depth = 50; Grip_start_height = 20.0; Grip_top...
glb/cad_03cc16eb3f0a.glb
Create a parametric thumbwheel with an outer diameter of 20mm and a total height of 4mm. Start with a solid cylinder of these dimensions. At the center, remove a vertical cylindrical hole with a diameter of 4.5mm that passes completely through the object. Within this center area, create a hexagonal cutout to trap a nut...
wheel_d = 20; wheel_h = 4; hole_d = 4.5; hex_sz = 7; hex_d = 3; knurl_cnt = 12; knurl_d = 3; module box(w,h,d) { translate([0,0,d/2]) scale ([w,h,d]) cube(1, true); } module hexagon(height, depth) { boxWidth=height/1.75; union() { box(boxWidth, height, depth); rotate([0,0,60]) box(boxWidth, height, depth); ...
glb/cad_eb0ac811594d.glb
Create a 3D model of a dodecahedron with a hidden internal star pattern. Start by constructing a regular dodecahedron and scaling the entire assembly by a factor of 20. To create the hidden pattern, define a set of internal polyhedra known as G3 polyhedra, which are derived from the vertices of the dodecahedron and a...
gr = (1 + sqrt(5))/2; rgr = 1/gr; mark =6; if (mark==1) scale(20) union() { polyhedron(dodeca_icosa_vertices,G3_vertex_0); polyhedron(dodeca_icosa_vertices,G3_vertex_12); } else if (mark==2) scale(20) union() { polyhedron(dodeca_icosa_vertices,G3_vertex_8); polyhedron(dodeca_icosa_vertices,G3_vertex_12); p...
glb/cad_6341fb5c27fe.glb
Create a threadlessBallScrew for a 3/8 inch smooth rod. Start by creating a box-shaped base with dimensions 32mm x 32mm and a height of 15mm. Center a vertical cylindrical hole through the base with a diameter of 9.575mm to accommodate the smooth rod. Subtract four mounting holes for M3 screws, each with a depth of...
use <write/Write.scad> text = "true" ; Base_Shape= "box"; Base_Height = 15; Bed_Hole_Size = 9.575; Box_Y_Width = 32; Box_X_Width = 32; Round_Base_Width = 37; Solidoodle_Bed_Type = "aluminum" ; Other_Bed_Mounting_Y = 25 ; Other_Bed_Mounting_X = 15 ; Mount_Screw_Size = 3 ; Bed_Mounting_Hole_Depth = 15 ; Bear...
glb/cad_2ccd04c9a10a.glb
Create a tablet stand by constructing a base shaped as a flattened, elongated cylinder. Start with a cylinder of radius 55.24mm and height 276mm, then scale it by a factor of 2 along the X-axis to create an elliptical profile. Hollow out this shape by removing a smaller concentric elliptical cylinder with a wall thickn...
x=242; y=186; z=9.5; x=242; y=186; z=9; w=x/2.1; t=5; e=2; p=z*1.4; a=30; te=t-e; r=w/2; module base(){ difference(){ scale([2,1,1]) cylinder(h=w*2.5,r=r, $fn=64); translate([-t,0,-1]) scale([2,1,1]) cylinder(h=w*2.5+2,r=r-t, $fn=64); translate([0,-w,-1]) cube([w*3,w*2,w*3]); } } module cut(){ transl...
glb/cad_b0d9fe99d0e6.glb
Create a Tentacle polyhedron vertex by combining three distinct geometric elements into a single assembly. First, generate a cylinder with a radius of 15mm and a height of 11mm. To this base, add a Y-shaped component and a tentacle-shaped element. Position the tentacle element so that its center is offset by -3mm along...
union() { translate([-3,.5,10]) import_stl("tentacle.stl"); import_stl("Y2.stl", convexity = 5); cylinder(h = 11, r = 15); }
glb/cad_9e663a05e1c2.glb
Create a Tentacle polyhedron vertex by combining three distinct geometric elements into a single object. First, generate a cylinder with a radius of 15mm and a height of 11mm. To this base, add a tentacle-shaped component positioned at coordinates -3mm on the X-axis, 0.5mm on the Y-axis, and 10mm on the Z-axis. Finally...
union() { translate([-3,.5,10]) import_stl("tentacle.stl"); import_stl("Y1.stl", convexity = 5); cylinder(h = 11, r = 15); }
glb/cad_dee6c6b9fca5.glb
Create a Magnetic Glass Print Bed Holder Tab. Start with a base that is a union of a rectangular block and a cylinder. The rectangular section is 15mm wide and 36mm deep, while the cylindrical section has a radius of 11.5mm and a height of 9mm. Subtract a large cylindrical section with a radius of 85.1mm from the side ...
$fn=36; reach_in=3.5; extrusion=15; offset=15; sphere_radius=3.175; magnet_thick=2.5; magnet_radius=6.5; gap=.6; wide=36; base_thick=6; base_blank=base_thick+3; lift=1.5; tolerance=.1; glass=85; difference() { union() { difference() { hull() { translate([-extrusion,-wide/2,0]) ...
glb/cad_72a0de9acaaf.glb
Create a small parts parametric drawer with outer dimensions of 54.5mm width, 136mm depth, and 36mm height. The main body is a hollow box with a wall thickness of 1mm and rounded corners with a 5mm radius. The interior cavity should start 1mm from the bottom. Divide the interior into three equal compartments along the...
corner_r = 5; width = 54.5; depth = 136; height = 36; handle_h = 20; handle_d = 10; handle_w = 5; handle_r = 2; thickness = 1; comp_x = 1; comp_y = 3; divider_h = 32; module roundedBox(size, radius) { translate(size/2){ cube(size - [2*radius,0,0], true); cube(size - [0,2*radius,0], true); for (x = [radius-size...
glb/cad_c1c842b5cd38.glb
Create an anti-bugs lamp cover consisting of a circular disk. Start with a base cylinder 31.5mm in radius and 2mm high. On top of this base, add a second cylinder with a 30mm radius and a height of 3mm. From this combined volume, remove several cylindrical holes and a rectangular slot. First, remove a central vertica...
module disk() { difference() { union() { cylinder(h = 2, r=31.5, $fn=90); cylinder(h = 3, r=30, $fn=90); } union() { cylinder(h=3, r=4,$fs=0.5); rotate(a=0) translate(v=[30,0,0]) cylinder(h = 3, r=2,$fs=0.5); rotate(a=120) translate(v=[30,0,0]) cylinder(h = 3, r=2,$fs=0.5); rotate(a=240) translate(v...
glb/cad_cb0b68f20f81.glb
Create a solderless wire termination block by starting with a rectangular base measuring 32.28mm in length, 17.04mm in width, and 6.5mm in height. Within this block, create two parallel rows of square pin holes. Each row should contain 12 holes, with each hole measuring 1.2mm by 1.2mm and extending through the full 6...
number_of_pins = 12; rows = 2; row_distance = 15.24; pin_hole_dim = 1.20; pin_offset = 2.54; x_offset_from_edge = 2; y_offset_from_edge = 1.8; z_offset_from_edge = 0.5; length = (2 * x_offset_from_edge) + ((number_of_pins - 1) * pin_offset) + pin_hole_dim; width = (2 * y_offset_from_edge) + pin_hole_dim + (rows...
glb/cad_9815c8c2e163.glb
Create an iPhone 4 Tripod Mount by starting with a solid rectangular block 80mm long, 20mm wide, and 30mm high. Center this block on the X and Y axes. Remove a vertical cylinder with a radius of 2.85mm and a height of 42mm, centered at X=60, Y=0, and Z=-21, to create a mounting hole. Carve out a large rectangular sec...
difference(){ translate([0,-20/2,-10]) cube(size = [80,20,30]); translate([60,0,-21]) cylinder(h=42, r=2.85, $fn=50); translate([25,-20/2,5]) cube(size=[80,20,30]); translate([25,0,5]) rotate(v=[0,1,0], a=45) translate([-30,-10,0]) cube(size=[30,20,20]); translate([8+5,10.1/2,8]) rotate(v=[1,0,0], a=90) cylinder(h...
glb/cad_1337c580728e.glb
Create a three-jaw chuck for a coil winder. Start with a central cylindrical base 46mm in diameter and 20mm high, centered on the Z-axis. Remove a central vertical hole 5mm in diameter and a smaller 8mm diameter hole 3mm high at the bottom. Carve out a larger internal cylinder 41mm in diameter and 20mm high from the ce...
use<spiral.scad> module spiral_block() { intersection() { cylinder(d=40,h=30,center=true); union() { difference() { cylinder(d=40,h=26,center=true); cylinder(d=5,h=27,center=true); for(i=[0:2]) { rotate([0,0,60+120*i])translate([0,12,-7])rotate([0,90,90]) cylinder(r=2,h=20,center=true); ...
glb/cad_f0d95bcfb316.glb
Create a Y-carriage belt holder consisting of a rectangular base platform and a clamping mechanism. Start with a base platform that is 50mm wide, 10mm deep, and 4mm thick. In this base, create two cylindrical holes with a radius of 1.7mm, centered 6mm from the side edges and 6mm above the bottom face, passing through t...
$fn=32 * 4; platformHeight = 15.5; module beltClamp(){ module frame(){ hull(){ translate([7,8,0]) rotate([0,0,30]) cylinder(10,8,8,$fn=6); translate([31,8,0]) rotate([0,0,30]) cylinder(10,8,8,$fn=6); } } module beltLoop(){ difference(){ hull(){ ...
glb/cad_a9564fb6a663.glb
Create a Deltaprinter Hotendfixation part consisting of two stacked cylindrical sections with an integrated mounting arm. Start by creating a lower cylinder with a diameter of 16mm and a height of 10mm. Atop this, place a wider cylinder with a diameter of 20mm and a height of 4mm. Subtract a central vertical hole fro...
Diameter_Hotend = 16; Big_Diameter = 20; little_Diameter = 16; Cone = 1; Upper_Height = 4; Lower_Height = 10; hole = "off"; holedia = 10; Tra = "on"; xdis=17.5; ydis=8.3; traxdia=7.5; $fn= 100; difference(){ whole(); minus(); } d1= Diameter_Hotend+0.5; h1= Lower_Height; d2= little_Diameter; d3 = Big_Diamete...
glb/cad_817cf0df5fa6.glb
Create a damage card holder for non-sleeved cards by starting with a solid rectangular base measuring 49.2mm wide, 71.4mm long, and 18mm high. Center a rectangular hole through the bottom of the base that is 34.1mm wide and 55.9mm long, extending slightly beyond the bottom face. Hollow out the top of the base to create...
outer_x=49.2; outer_y=71.4; outer_z=18; hole_x=34.1; hole_y=55.9; hole_z=outer_z+2; tray_x=43.8; tray_y=65.9; tray_z=outer_z+2; inner_edge_height=3; difference() { translate([-outer_x/2,-outer_y/2,0]) cube([outer_x,outer_y,outer_z]); translate([-hole_x/2,-hole_y/2,-(hole_z-outer_z)/2]) cube([hole_x,hole_y,hole_z]);...
glb/cad_38b1e8cf6f4d.glb
Create a Speed Calibration Tower by starting with a main rectangular prism that is 20mm wide, 20mm deep, and 136mm tall. Along the height of the tower, every 8mm, create a cutout to test bridging and overhangs. Each cutout consists of two parts: first, remove a rectangular block 3mm wide, 15mm deep, and 4mm tall from...
machine = "Felix 3.1 / Atomic PLA"; temperature = "205 C"; BottomSpeed = 20; TowerHeight = 136; TowerSide = 20; HeightIncrement = 8; SpeedIncrement = 5; EmbossHeight = 0.5; Indent = 3; overhangSide = min(HeightIncrement,TowerSide/2); difference() { cube([TowerSide, TowerSide, TowerHeight]); for(curren...
glb/cad_0d4189c48ca9.glb
Create an indoor sensor case by starting with a solid rectangular block measuring 87mm in length, 55.5mm in width, and 25mm in height. Hollow out the center to create a shell with a wall thickness of 2mm, leaving the top open. The interior cavity should measure 83mm by 51.5mm by 23mm. On the right side wall, create a ...
$fn = 8; inL = 83.00; inW = 51.50; inH = 23.00; wallW = 2.00; holeW = 14.00; holeH = 10.75; holeY = 11.75; holeX = 4.00; screwHoleBig = 9.00; screwHoleSmall = 5.00; trackGrooveExtraH = 0.25; module ventHole() { rotate(a=90, v=[1, 0, 0]) { cylinder(r=2, h=wallW+2); } } module ventHoles() { fo...
glb/cad_8708cb43e672.glb
Create an Indoor Sensor Case by constructing a rectangular slab with a length of 83.67mm, a width of 50.5mm, and a height of 0.9mm.
$fn = 8; inL = 83.00; inW = 51.25; wallW = 2.00; gapY = 0.75; gapZ = 0.10; cube([inL+wallW+1+(wallW/3), (wallW+inW)-gapY, (wallW-1)-gapZ]);
glb/cad_bbe084d89d5e.glb
Create a Craftbot dial indicator mount designed to hold a dial indicator with a 52.8mm diameter. The main body is a central block with a large circular cutout of 52.8mm diameter and 24mm thickness to accommodate the indicator. The mount features a base structure that is 54.1mm wide. On the top and bottom of the main ...
dia=53.2-0.4; th=16.5; th2=24; tight=0.2; dbar=8.1; xbar=54.1-tight; $fn=90; off=27; db6=dbar/cos(30); module bars() { translate([-50,dbar/2,dbar/2]) rotate([0,90,0]) rotate([0,0,30]) cylinder(d=db6,h=100,$fn=6); translate([-50,xbar-dbar/2,dbar/2]) rotate([0,90,0]) rotate([0,0,30]) cylinder(d=db6,h=100,$fn=6); ...
glb/cad_433ebd91c84b.glb
Create a 3D model of the text "text-01" by extruding the characters to a height of 10mm. The characters should be rendered as solid geometric shapes with a uniform thickness, forming a single continuous piece of extruded text.
linear_extrude(height = 10) { text("text-01"); }
glb/cad_b879233b02eb.glb
Create a 3D text model consisting of four stacked rows of extruded text, each with a thickness of 10mm. The first row at the base should read "text-01 regular" in a regular font style. Position the second row 20mm above the first, reading "text-02 bold" in a bold font style. Position the third row 40mm above the first,...
linear_extrude(height = 10) { text("text-01 regular" ,font = ":style=Regular" ); } translate([0,1*20,0]) linear_extrude(height = 10) { text("text-02 bold" ,font = ":style=Bold" ); } translate([0,2*20,0]) linear_extrude(height = 10) { text("text-02 italic" ,font = ":style=Italic" ); } translat...
glb/cad_309353e149ac.glb
Create a 3D text model titled "Demo SCAD" consisting of six rows of extruded text, each with a height of 10mm. Each row contains the phrase "text-03" followed by a specific font style and weight. Position the first row at the origin using a monospace regular font. Position the second row 20mm above the first using a sa...
linear_extrude(height = 10) { text("text-03 mono regular" ,font = "Mono:style=Regular" ); } translate([0,1*20,0]) linear_extrude(height = 10) { text("text-03 sans regular" ,font = "Sans:style=Regular" ); } translate([0,2*20,0]) linear_extrude(height = 10) { text("text-03 serif regular" ,font = "...
glb/cad_04ef58c82b7d.glb
Create a Captive Planetary Gear Set with a total thickness of 15mm and an outer ring diameter of 51.7mm. First, construct the outer ring as a cylinder of the specified diameter and thickness. The interior of this ring must be hollowed out to accommodate the gears, featuring internal herringbone teeth. Next, create a...
D=51.7; T=15; tol=0.15; number_of_planets=5; number_of_teeth_on_planets=7; approximate_number_of_teeth_on_sun=9; P=45; nTwist=1; w=6.7; sd=6; st=5; stype=1; pad=4; DR=0.5*1; m=round(number_of_planets); np=round(number_of_teeth_on_planets); ns1=approximate_number_of_teeth_on_sun; k1=round(2/m*(ns1+np)); k= k1...
glb/cad_2e17d48395f3.glb
Create an Improved CNC Vise consisting of a base and a movable jaw. Construct the base as a rectangular block 130mm wide, 15mm high, and 4mm thick. On the top surface, create a support structure 8mm thick and 15mm high. Within this support, create three vertical holes with a diameter of 5.5mm to accommodate nuts. O...
part = "print"; height = 15; base_thickness = 4; support_thickness = 8; width = 130; edge_round = 0.01; nut_width = 8.0; nut_diameter = 5.5; slot_length = 25; slot_width = 4.2; slot_sink = 0; major_slot_distance = 100; minor_slot_distance = 100; holder_slot_depth = 1.5; holder_slot_pos_horiz = 3; holder_s...
glb/cad_94faee00e87f.glb
Create a PrintingBits test model consisting of a grid of small pods resting on a rectangular base. The base is a flat plate with a height of 4mm, a width of 76mm (19 pods wide), and a length of 20mm (5 pods long). Construct the pods as rounded-square pillars. Each pod occupies a 4mm by 4mm area. The pillar geometry is...
$fn=20; test = [[0,1,0,0,1,1,1,0,0,1,1,0,0,1,0,0,0,1,1], [1,0,1,0,0,1,0,0,1,0,1,0,1,0,1,0,1,0,1], [1,0,1,0,0,1,0,0,0,1,1,0,1,1,1,0,1,1,1], [1,0,1,0,0,1,0,0,1,0,1,0,1,0,1,0,1,0,1], [0,1,0,0,0,1,1,0,1,0,1,0,1,0,1,0,1,1,1]]; nbCasesW = 19; nbCasesL = 5; marge=0.5; podW=4; podL=4; podH=4; ...
glb/cad_f43f2ada5137.glb
Create a PulleyGuard by starting with a sphere of 100mm diameter, which is then cropped to a height of 8mm and a width and depth of 45mm to form a thin, rounded disc. From the center of this disc, remove a vertical cylindrical hole with a radius of 4mm and a 12-sided polygonal cross-section. Additionally, remove four s...
thick=8; holes=4; difference(){ intersection(){ resize(newsize=[45,45,20]) sphere(r=50, $fn=36); translate([0,0,thick/2]) cube([45,45,thick], center=true); } tetrixholes(); } module tetrixholes() { cylinder(thick, r=4, $fn=12); for(i=[0:holes]) rotate([0,0,360/holes*i]) translate([8,0,0]) ...
glb/cad_41c6507744b9.glb
Create a 3D text model that reads "0.4mm" using a bold font. The characters should have a height of 5mm and be extruded to a thickness of 1mm. Position the text so that it is centered both vertically and horizontally relative to its own bounding box, and place the entire object at the coordinates X=16, Y=0.9, and Z=5. ...
translate([16, 0.9, 5]) rotate([90, 0, 0]) linear_extrude(height=1) text("0.4mm", size=5, valign="center", halign="center", font=":bold");
glb/cad_273a4232751b.glb
Create a Beaglebone T-Slot Mount. Start with a rectangular base plate measuring 66mm by 48mm with a total height of 11mm. At each of the four corners of the plate, create a cylindrical mounting pillar with an outer radius of 3.75mm and a height of 11mm. Drill a center hole through the entire height of each pillar wit...
holes_size = 1.75; holes_size_outter = 3.75; holes_support = 11; translate([61,0,0]) { translate([0,-17,0]) { translate([17,0,0])rotate([0,0,180])t_slot(); cube([10,62,1.3]); } translate([6.8,-16,0])rotate([0,0,3.5])cube([3,63,holes_support*.65]); } translate([-3,0,0]) { translate([0,-17,0]) { translate([-3...
glb/cad_79e1685bb30b.glb
Create a Z Coupler consisting of a main cylindrical body with a total height of 22.5mm and an outer radius of 10mm. The interior of this body is hollowed out by three distinct sections. First, remove a hexagonal prism with a radius of 7.5mm from the bottom section, extending 7.8mm upward from the base. Second, remove a...
module daves_coupler() { rotate([180,0,0]) difference() { union() { cylinder(h=22.5, r=10.0, $fn=60); difference() { translate([0,0,-7.8]) cylinder(h=7.8, r=10.0, $fn=60); translate([0,0,-7.8]) cylinder(h=7.8,r=7.5, $fn=6); } difference() { translate([0,0,-12.4]) cylinder(h=...
glb/cad_6a2393aaae45.glb
Create a minimalist watch charging stand consisting of a top puck holder connected to a base by a vertical support arm. For the top section, create a rounded triangular block with a thickness of 9mm. In the center, carve a cylindrical hole with a diameter of 35.8mm and a depth of 11mm to hold the charging puck. On th...
thick = 9; charge = 9; dia = 17.9; long = 15; cord2 = 4; cord = 2; difference(){ hull(){ rotate([0,90,0]) translate([-16.5,12.2,-24]) cylinder(50.12,thick/2,thick/2); rotate([0,90,0]) translate([8.7,-17.8,-24]) cylinder(50.12,thick/2,thick/2); rotate([0,90,0]) translate([8.7,12.2,-24]) cylinder(50.12,thick/2,thick/...
glb/cad_dbe1cb545f6e.glb
Create a MultiRep Y-Axis shuttle. Start with a central rectangular base block measuring 70mm in length, 50mm in width, and 12mm in height. Subtract a cylindrical hole with a radius of 1.55mm that runs lengthwise through the center of the block, spanning 100mm to ensure it clears the ends. Create a rectangular cutout ...
use </home/steve/Objects/machinebase/Ver8/Libs/common.scad> use </home/steve/Objects/machinebase/Ver8/Libs/M_tube_V1.scad> divs = 45; shuttlethickness = 12; lowershuttlethickness = 7; innerridediam = 10; riserheight = 2; LowerShuttleBottomthickness = 5; module LowerShuttleBottom(shuttlewidth=50) { boffset = ((sh...
glb/cad_831ed263f9b1.glb
Create a MultiRep Y-Axis structural tube. Start with a solid rectangular block measuring 30mm wide, 100mm long, and 30mm high, centered on the origin. Hollow out the center of this block by removing a rectangular section that is 12mm wide, 100mm long, and 16mm high, centered vertically. To create the rail system, rem...
use <roundedcube.scad> height608bearing = 7.75; testtube =1; module tubeconnector(length = 50) { rounded_cube(16,50,12,2); } module tube(length = 100) { translate(v=[0,0,5]) difference() { union() { translate(v=[0,0,-5]) cube([30,length,30],center = true); } translate(v=[0,0,-8]) { ...
glb/cad_4db24cdbe014.glb
Create a Colbert face polyhedron vertex by combining a cylindrical base with a scaled facial sculpture. Start by creating a solid cylinder with a radius of 15mm and a height of 11mm. Centered on this base, integrate a low-resolution 3D model of Stephen Colbert's head, scaled down to 11% of its original size. Rotate thi...
union() { intersection() { translate([8,0, 40]) rotate(a=90, v = [0,0,-1]) scale([.11,.11,.11]) rotate( a = 90, v = [1,0,0]) import_stl("Colbert_LowRes_Brow.stl"); cylinder( h = 100, r = 15); } union() { import_stl("Y1.stl", convexity = 5); cylinder(h = 11, r = 15); } }
glb/cad_ae1c6d6971d2.glb
Create a Colbert face polyhedron vertex by combining a cylindrical base with a scaled facial sculpture. Start by creating a solid cylinder with a radius of 15mm and a height of 11mm to serve as the platform. Centered atop this base, integrate a low-resolution 3D model of Stephen Colbert's head and brow, scaled down to ...
union() { intersection() { translate([8,0, 40]) rotate(a=90, v = [0,0,-1]) scale([.11,.11,.11]) rotate( a = 90, v = [1,0,0]) import_stl("Colbert_LowRes_Brow.stl"); cylinder( h = 100, r = 15); } union() { import_stl("Y2.stl", convexity = 5); cylinder(h = 11, r = 15); } }
glb/cad_3959299778a1.glb
Create a Bed Level Corner by starting with a solid rectangular base measuring 14mm x 14mm with a height of 4mm. On top of this base, add two perpendicular walls, each 14mm long and 3.1mm high, that meet at the center to form an L-shaped upper platform. From the center of the model, carve out a vertical hole with a di...
plateHeightTop = 2; plateHeightBot = 4; plateX = 14; plateY = 14; washerD = 11; bedHeight = 2.1; holeX = 3; holeY = 3; holeD = 3.3; nutD = 7.0; nutH = 3.0; sideX = plateX/2 - holeX; sideY = plateY/2 - holeY; rotate([0,0,180]) difference() { union() { translate([-plateX/2, -plat...
glb/cad_cb8ee9d8ab34.glb
Create a Giant Tureii gear segment. Start with a base disk that has a total height of 2mm and an outer flange radius of 25.2mm. Within this disk, create a central circular cutout with a radius of 23mm that leaves a thin flange of 0.3mm at the bottom. Around the perimeter, add 120 square-profile gear teeth. Each tooth ...
envelope=10; flange_h = 0.3; small = 23; large = 24; flange = 25.2; h = 2; toothnumber = 120; holenumber = 16; holeradius = 0.2; holedistance = 24.5; holeoffset = 360 / ( holenumber * 2 ); piecenumber = 8; pi=3.1415926; small2=small-1; large2=large+1; circumference = 2 * pi * small2; circumference2 = 2 * pi * large2;...
glb/cad_704de576ceb0.glb
Create a baby gate support bracket. Start by constructing a main U-shaped body consisting of three connected rectangular sections. The central section is a block 98mm wide, 7mm thick, and 38mm high. Attached to both the left and right ends of this central block are two outer wings, each measuring 7mm wide, 21mm deep, a...
wall_width = 89; gate_bar_diameter = 34; inset_offset=0; module baby_gate_support(wall_width=0, gate_bar_diameter=0, inset_offset=0) { support_thickness = 7; inset_thickness = 3; support_height = gate_bar_diameter + 4; gate_support_indent_width = gate_bar_diameter + 4; clip_length = 15; diff...
glb/cad_6d7005fbd6ee.glb
Create a holder for 110 negatives consisting of a main base and a matching cover. The base is a rectangular block with a total width of 154.5mm, a height of 65mm, and a depth of 5.5mm. Carve a central channel through the base that is 16mm high and 4mm deep, leaving a 1.5mm floor. Within this channel, create five rect...
$fn=128; tolerance = 0.3; maxSlides = 5; slideWidth = 25.3; slideHeight = 16.0; frameWidth = 17.0; frameHeight = 13.5; orgFrameWidth = 36.0; orgFrameHeight = 25.0; knodgeWidth = 4.0; knodgeDepth = 3.0; knodgeHeight = 0.7; frameKnodgeDistance = 8.5; holderStartBlank = 19.0; holderEndBlank = 19.0; holderDep...
glb/cad_ed3a729f26ba.glb
Create a holder for 110 negatives consisting of a base and a cover. The base is a rectangular block with a total width of 153.5mm, a height of 65mm, and a depth of 5.5mm. Carve a central channel through the base that is 115.5mm long, 16mm wide, and 4mm deep. Within this channel, create five identical rectangular slot...
$fn=128; tolerance = 0.3; maxSlides = 5; slideWidth = 25.3; slideHeight = 16.0; frameWidth = 17.0; frameHeight = 13.5; orgFrameWidth = 36.0; orgFrameHeight = 25.0; knodgeWidth = 4.0; knodgeDepth = 3.0; knodgeHeight = 0.7; frameKnodgeDistance = 8.5; holderStartBlank = 19.0; holderEndBlank = 19.0; holderDep...
glb/cad_68782b5a8cdb.glb
Create a holder for 110 negatives consisting of two mirrored parts: a base holder and a top cover. For the base holder, create a rectangular block 143.3mm wide, 65mm high, and 5.5mm deep. From this block, remove a central rectangular section 105.3mm wide, 16mm high, and 4mm deep, centered vertically. Additionally, re...
$fn=128; tolerance = 0.3; maxSlides = 5; slideWidth = 25.3; slideHeight = 16.0; frameWidth = 17.0; frameHeight = 13.5; orgFrameWidth = 36.0; orgFrameHeight = 25.0; knodgeWidth = 4.0; knodgeDepth = 3.0; knodgeHeight = 0.7; frameKnodgeDistance = 8.5; holderStartBlank = 19.0; holderEndBlank = 19.0; holderDep...
glb/cad_be45b3ddc9fb.glb
Create a T-Slot HexNut Holder by starting with a central rectangular block measuring 5.5mm wide, 7.5mm deep, and 2.85mm high. Attach a second rectangular block to the center of one of the 5.5mm sides, measuring 7.5mm wide, 2mm deep, and 2.85mm high, creating a T-shaped base. From the center of this assembly, remove a h...
ht = 2.85; measured_width=5.34; fudge=1.16; s=(measured_width/2)*fudge; L=s/0.866; w=5.5; base=0.6; difference() { translate(v=[0,0,ht/2]) union() { translate(v=[0,-0.5,0]) cube(size = [w,7.5,ht], center=true ); translate(v=[0,4.25,0]) cube(size=[w+2,2,ht], center=true ); } union(...
glb/cad_2d71e0c24943.glb
Create a rack and pinion auto-tramming mount for a microswitch. Start by constructing a main holder block that is 2mm thick, 30mm wide, and 30mm high. From this block, remove a central cylindrical hole with a diameter of 26mm and a height of 4mm, and four smaller cylindrical holes with diameters of 3.1mm and heights of...
use <rack_and_pinion.scad> %translate([-0.5,0,0]) cube([10,30,30]); %translate([12.5,0,0]) cube([35.5,30,46]); holder(); translate([20,-1,12]) rotate([90,0,0]) rack2(); translate([-8.5,-1,3]) rotate([90,0,0]) gear(); translate([53,-1,2.1]) rotate([90,0,0]) rotate([0,0,-90]) pinion2(); module holder() { translate(...
glb/cad_a7f083085b15.glb
Create a parametric wrench tool with a thickness of 4.8mm. Start with a central rectangular handle that is 8.3mm wide and 43.575mm long. At one end of the handle, create a closed circular head with a diameter of 9.13mm and the same 4.8mm thickness. Inside this circular head, center a hexagonal hole with a diameter of 8...
$fn = 360; nut_diameter = 8.3; nut_thickness = 4; wrench_thickness = 1.2 * nut_thickness; wrench_length = 5.25 * nut_diameter; wrench_head_extra_d = 1.1 * nut_diameter; module wrench_head(thickness, nut_d, head_extra, open_ended) { difference() { translate([0, 0, -thickness / 2]) { cylinder(h = thickness, r = ...
glb/cad_03af3a002fc5.glb
Create a Trine Machine consisting of two identical circular plates, each 25mm in radius and 5mm thick, separated by a vertical gap. On each plate, position four pillars arranged symmetrically every 90 degrees at a radius of 20mm from the center. Each pillar is a composite shape: a tapered base that transitions from a...
r_tip_pillar=2.7; r_base_pillar=3.7; r_pillar=17; n_pillar=4; clearance=0.4; function scaleF(dim, clearance) = (dim+clearance)/dim; module clearXY(dim, clearance) { scale([scaleF(dim, clearance), scaleF(dim, clearance), 1]) children(); } module pillar(h=40, r= 2.5, base_r=3.5, base_h=10){ cylinder(h=h, r=r);...
glb/cad_9cfbc10eb7b7.glb
Create a Camera Macro Lens and Microscope Adapter consisting of a main tube, a base plate, and a mounting ring. First, construct the main tube as a cylinder with an outer diameter of 53mm and a total length of 53.1mm. Hollow out the center with a cylinder of 52.3mm diameter, leaving a wall thickness of 0.35mm at the e...
Mount = "LEDRing"; Layout = "Show"; Gap = 10; include </home/ed/Thing-O-Matic/lib/MCAD/units.scad> include </home/ed/Thing-O-Matic/Useful Sizes.scad> include </home/ed/Thing-O-Matic/lib/visibone_colors.scad> ThreadThick = 0.33; ThreadWidth = 2.0 * ThreadThick; HoleFinagle = 0.2; HoleFudge = 1.00; function HoleAdj...
glb/cad_0d5578590b9e.glb
Create a servo bracket consisting of a flat rectangular base and two symmetrical upright arms. Start with a base plate measuring 42mm wide, 90mm long, and 7mm thick. Center the plate on the origin and remove four vertical cylindrical holes with a radius of 2mm and a height of 30mm; position two holes along the length a...
main(); module main(){ servo_width=65.5; union () { difference () { cube ([42,90,7], center = true); translate ([42/2-6,90/2-5.5,0]) cylinder(h = 30, r = 2, center = true, $fn=20); translate ([42/2-6,-90/2+5.5,0]) cylinder(h = 30, r = 2, center = true, $fn=20); translate ([-42/2+12,90/2-5.5,0]) cylind...
glb/cad_0d4a06646438.glb
Create two belt clamps, each with a height of 3.5mm and a total width of 12mm. The main body of each clamp is a rounded rectangle formed by the intersection of a central block and two cylinders with a radius of 4.65mm centered on the long edges. Both clamps feature two vertical holes with a radius of 1.65mm passing thr...
belt_width = 7; belt_height = 2; tooth_offset = 2.1; tooth_height = 1.2; tooth_width = 1.05; wall = 3; extrusion_width = 0.4; clamp_height = 3.5; clamp_width = 12; ram_height = 7; 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; ...
glb/cad_b562e5d9a787.glb
Create a gearwheel consisting of a central hub and a toothed outer rim. Start with a main cylindrical body that has a radius of 15.5mm and a thickness of approximately 10.25mm. Bore a central axial hole through the entire height with a radius of 2mm. To create the gear teeth, place 21 rectangular prisms, each 2mm wide...
largo_dentadura=10; ancho_dentadura=2; alto_dentadura=7; radio_rueda=15.5; ancho_rueda=14.5*sin(45); radio_cilindro_interior=8; ancho_cilindro_interior=7; radio_eje=2; altura_eje=50; radio_cilindro1_muescas_planas=18; altura_cilindro1_muescas_planas=40; radio_cilindro2_muescas_planas=22; altura_cilindro2_muescas_p...
glb/cad_9baece940082.glb
Create a gearwheel by starting with a central cylinder that has a radius of 15.5mm and a height of approximately 10.25mm, centered on the origin. Bore a vertical hole through the center of this cylinder with a radius of 2mm and a height of 50mm. To create the gear teeth, place 21 rectangular prisms, each 2mm wide, 10m...
largo_dentadura=10; ancho_dentadura=2; alto_dentadura=7; radio_rueda=15.5; ancho_rueda=14.5*sin(45); radio_cilindro_interior=8; ancho_cilindro_interior=7; radio_eje=2; altura_eje=50; radio_cilindro1_muescas_planas=18; altura_cilindro1_muescas_planas=40; radio_cilindro2_muescas_planas=22; altura_cilindro2_muescas_p...
glb/cad_e5741250e2e7.glb
Create a VMR Double Peg by designing a single peg unit and repeating it in a 5 by 2 grid. Each peg consists of a flat, teardrop-shaped base with a thickness of 2mm. The base features a circular indentation with a radius of 8.6mm and a thickness of 2mm. Centered within this indentation is a vertical hole with a radius o...
l=150; w=22; h=20; t=1; g=20; peg_number_x=5; peg_number_y=2; $fn=50; tolerance=0.1; indent_hole_radius=6.5; thickness=2; axle_radius=2.8; axle_length=20; spacer_height=0; translate([0,-g*2,0]) difference() { difference() { rotate([0,0,180]) hull() {translate([0,-g,0]) cylinder(r=axle_radius+1,h=2*t); cylinder(r=i...
glb/cad_7679f5e3d945.glb
Create a Römer Glass-style goblet. Start with a circular base 60mm in diameter and 2mm thick. From the center of this base, build a stalk consisting of 13 stacked, slightly flattened spheres. Each sphere should be positioned 5mm higher than the previous one, with the radius of each sphere gradually decreasing as it asc...
cup_centre=[0,0,93]; cup_rad=33; stalk_blobs=13; module stalk() { for (n=[1:stalk_blobs]) { translate ([0,0,n*5]) scale ([1,1,0.32]) sphere(8+pow(stalk_blobs-n,0.8)); } } module cup() { sphere(cup_rad); } module base() { cylinder(h=2,r=30,center=false); translate ( [0,0,2] ) cylinder(h=4,r1=30,r2=9,center=fal...
glb/cad_b0f5e86ccae2.glb
Create a Mobius Heart by sweeping a small elliptical cross-section along a heart-shaped path. The path is defined by the parametric equations x = 16sin³(θ) and y = 13cos(θ) - 5cos(2θ) - 2cos(3θ) - cos(4θ). As the cross-section travels along this path from 0 to 360 degrees, rotate the ellipse around the path's tangent...
angular_resolution=2; for(theta = [1:360/angular_resolution]){ translate(v=[16*sin(theta*angular_resolution)*sin(theta*angular_resolution)*sin(theta*angular_resolution), 13*cos(theta*angular_resolution)-5*cos(2*theta*angular_resolution)-2*cos(3*theta*angular_resolution)-cos(4*theta*angular_resolution), 0]) rotate(a=[...
glb/cad_4bf9131c5de6.glb
Create a Mobius Heart by sweeping an elliptical cross-section along a heart-shaped path. The path follows the parametric equations x = 16sin³(θ) and y = 13cos(θ) - 5cos(2θ) - 2cos(3θ) - cos(4θ). The cross-section is an ellipse with a major axis of 3mm and a minor axis of 1mm. As the ellipse travels along the path fro...
angular_resolution=5; cs_pill_shape=0; cs_ellipse_shape=1; cs_rectangle_shape=0; shape_dimension_a=3; shape_dimension_b=1; union(){ for(theta = [1:floor(0.25*360/angular_resolution)]){ echo("sign", floor((1+sign(sin(theta*angular_resolution)))/2)); mirror([1,0,0]) translate(v=[16*sin(theta*angular_resoluti...
glb/cad_30e4159db6b7.glb
Create a rounded corner template for joinery. Start with a solid cube measuring 50mm x 50mm x 10mm. From this main body, remove a large cylinder with a radius of 25mm and a height of 20mm, centered such that its axis is at (25mm, 25mm), to create a large concave circular cutout. Next, remove a smaller cube measuring ...
use <write/Write.scad> Corner_radius=25; Inscription="25 mm"; Inscription_font="write/Letters.dxf"; Height_of_the_walls=10; Wall_thickness=2.14; R=Corner_radius; t=Wall_thickness; h=Height_of_the_walls; txt=Inscription; $fn=120; module round_edge_cut(){ intersection(){ difference(){ cylinder(r=R,h=t...
glb/cad_ef639bb7eb57.glb
Create a customizable card box consisting of a bottom container and a lid. The main interior cavity for both parts should fit a card stack of 91mm by 66mm with a height of 20mm, using a wall thickness of 2mm. For the bottom container, create a rectangular box with an interior void of 87mm by 62mm by 20mm. The containe...
CARD_SIZE_LONG_EDGE =91; CARD_SIZE_SHORT_EDGE = 66; CARD_STACK_HEIGHT = 20; WALL_THICKNESS = 2; TAB_THICKNESS = 10; EXTRA_SPACE = .25; END_CUTOUT_HEIGHT_PERCENTAGE = 80; END_CUTOUT_WIDTH_PERCENTAGE = 67; BOTTOM_CUTOUT_WIDTH_PERCENTAGE = 67; BOTTOM_CUTOUT_LENGTH_PERCENTAGE = 67; CARD_LONG_EDGE = CARD_SIZE_LONG_EDG...
glb/cad_a293d8f5b5cf.glb
Create a 12V G4 LED lamp holder. Start with a main cylindrical body with a radius of 15.5mm and a total height of 9mm. Hollow out the center of this cylinder to create a ring, then remove a section of the wall to create an opening for the lamp to slide in. Inside the main body, create a recessed cylindrical cavity wit...
bolt_thickness = 8; lamp_radius = 27 / 2; plug_width = 8; strap_width = 10; module bolt_clip (bolt_radius, length) { difference () { cylinder (h=length, r=bolt_radius * 1.1); translate ([0, 0, -0.5]) { cylinder (h=length + 1, r=bolt_radius); } } } module lamp_holder () { ...
glb/cad_5542805cb01c.glb
Create a wheel for a modular robot. Start by constructing a central wheel hub as a cylinder with a height of 8mm and a radius of 15.5mm. Hollow out the center of this hub with a concentric cylinder of the same height and a radius of 15.1mm, leaving a wall thickness of 0.4mm. On the top face of the hub, place a smaller ...
$fn = 64; SIDE = 42; CORNER_RAD = 5; CONNECT_OUT_RAD = 27.8/2; CONNECT_IN_RAD = 12.88/2; CONNECT_HUB_RAD = 13.7/2; CONNECT_HEIGHT = 1.5; CONNECT_RECESS = 1.5; washer_thick = 3.5 ; washer_in_rad = 13.7/2-0.1 ; washer_out_rad = 26.9/2+0.1; hub_height = 8; hub_thick = 1.6; hub_rad = CONNECT_OUT_RAD+1.6+hub_thick+0.1+0....
glb/cad_9284829f210f.glb
Create a Laser Pen Holder consisting of two identical symmetrical sockets. Each socket is a hollow cylinder with an outer radius of 11.5mm and an inner radius of 8mm, and a total height of 15mm. The walls of these cylinders are 3mm thick. For each cylinder, create three circular holes with a diameter of 4.5mm that pas...
PenRadius = 8; pAngleAdjust = "false"; pClosedEnd = "no"; pPrintMode = "yes"; AngleAdjust = (pAngleAdjust=="yes"); FundoFechado = (pClosedEnd=="yes"); PrintMode = (pPrintMode=="yes"); if(PrintMode){ explode = 0; translate([30,0,5]){ translate([0,-40,0]) rotate([0,-180,0]) P...
glb/cad_65fd9fedca7a.glb
Create a Customizable Stretchy Shape by extruding a complex, undulating ring profile to a height of 6mm, centered vertically. The 2D profile is defined by a radial pattern of 6 repeating lobes. The inner boundary of the shape is a circle with a diameter of 36mm, and the outer boundary is a circle with a diameter of 48m...
_1_insideDiameter = 36; _2_outsideDiameter = 48; _3_height = 6; _4_radialCount = 6; _5_twist = 0.0; _6_slices = 1; _7_resolution = 48; linear_extrude( height = _3_height, center = true, convexity = _4_radialCount, twist = _5_twist, slices = _5_twist == 0 ? 1 : max(1,_6_slices*_3_height) ) stretchyShape( _1...
glb/cad_8bbe8ff189b5.glb
Create a Windrose for a board game by constructing seven identical rectangular arms that radiate from a central point. Each arm must be 5mm wide, 80mm long, and 3mm high. Arrange these arms symmetrically around the center, rotating each one by approximately 51.43 degrees to evenly fill a 360-degree circle. On the top...
NoArm=7; ArmWide=5; ArmHigh=3; ArmLong=80; InsetDeep=1; InsetRad=4; Circ=0; Hole=0; SlotWide=0; SlotDeep=3; DGrees=360/NoArm; p = [for (k=[1:NoArm]) let (angle=360/NoArm*k+90) [cos(angle), sin(angle)] ]; difference() { union() { for (i=[1:NoArm]) { rotate([0,0...
glb/cad_4e19e4069407.glb
Create a Filament Guide Single by starting with a main cylinder that has a diameter of 45mm and a height of 50mm. Remove a smaller concentric cylinder from the center to create a tube; this inner hole should have a diameter of 42mm (1.5mm wall thickness) and a height of 80mm, starting from 5mm above the base. Create t...
base_diameter = 45; base_radius = base_diameter/2; base_height = 50; top_base_modifier = 0; tube_thickness = 1.5; tube_diameter = base_diameter-tube_thickness*2; tube_radius = tube_diameter/2; tube_height = 30; bolt_diameter = 3.7; bolt_radius = bolt_diameter/2; guide_diameter = 6.25; guide_radius = guide_diameter/...
glb/cad_16f32b0984ca.glb
Create an old French light switch cover with overall dimensions of 75mm by 75mm. The main body is a square plate with rounded corners of 8mm radius. The plate has a total thickness of 4.6mm. In the center of the plate, create a rectangular cutout for the switch lever measuring 12.6mm wide by 27.4mm high. Position tw...
$fn = 180; width = 75; height = 75; corner_radius = 8; box_wall_thickness = 1; clearance_inside_box = 0.5; plate_thickness_above_box = 4.6; plate_depth_into_box = 0; plate_wall_thickness = 3; chamfer_width = 3; switch_hole_width = 12.6; switch_hole_height = 27.4; screw_hole_dia = 4; screw_chamfer_dia = 6; screw_chamfe...
glb/cad_4deea005023b.glb
Create a stylized robot figure. Start with a head consisting of a sphere with a radius of 20mm, flattened on the bottom. Place two small spheres of 3mm radius for eyes on the face. On top of the head, add two small antennas, each made of a 2mm radius cylinder 7mm tall topped with a 2mm radius sphere. For the body, cre...
bodywidth = 40; bodyheight = bodywidth * 1.7; armwidth = bodywidth / 4; legwidth = armwidth * 1.5; standing = true; module antenna(length, width) { union () { cylinder(h=length, r1=width, r2=width); translate([0,0,length]) { sphere(width); } } } module head(body_r) { $fs = 1; union...
glb/cad_80aa4f8c9ec9.glb
Create a stand for a 8mm acrylic plate by extruding a specific 2D profile to a height of 20mm. The profile is symmetrical across the Y-axis. For each half of the profile, start with a circle of 10mm diameter that is resized to 40mm wide and 10mm deep, then remove a 20mm by 10mm rectangle from the center and a 40mm by 1...
$fn=128; module half_foot(){ union(){ translate([-19,0]){ circle(d=3); } difference(){ resize([40,10]){ circle(d=10); } square([20,10]); translate([-20,-10]){ square([40,10]); } ...
glb/cad_5a0873633b1a.glb
Create a Hamster Portal consisting of two separate threaded parts: a bolt and a nut. First, construct the bolt. Create a central cylinder with a diameter of 42mm and a height of 45mm. Above this, starting at a height of 10mm, add a metric screw thread with a diameter of 48mm, a pitch of 3mm, and a length of 25mm. At ...
use <screwThreads.scad> $fn=180; holeDiameter = 48; module screwBolt (){ difference(){ translate([0,0,10]){ metric_thread (diameter=holeDiameter, pitch=3, length=25, thread_size=6); color(["blue"]) translate([0,0,-9]){ cylinder(d=holeDiameter+32, h = 10, $fn=8);} ...
glb/cad_6252d5964e58.glb
Create a Hamster Portal consisting of three separate parts: a bolt, a nut, and a cap. First, create the bolt by starting with a cylinder 42mm in diameter and 45mm tall. Add a metric thread to the top of this cylinder with a diameter of 48mm, a pitch of 3mm, and a length of 25mm, starting 10mm up from the base. At the...
use <screwThreads.scad> $fn=180; holeDiameter = 48; module screwBolt (){ difference(){ translate([0,0,10]){ metric_thread (diameter=holeDiameter, pitch=3, length=25, thread_size=6); color(["blue"]) translate([0,0,-9]){ cylinder(d=holeDiameter+32, h = 10, $fn=8);} ...
glb/cad_64c82d21dbb5.glb