Prompt
stringlengths
96
2.17k
Code
stringlengths
27
249k
3d_glb
stringlengths
24
24
Create a parametric cylindrical support by starting with a solid cylinder 120mm in diameter and 25mm in height. Hollow out the center by removing a concentric cylinder of the same height with a diameter of 116mm, leaving a wall thickness of 2mm. Around the perimeter of this wall, create a series of circular holes. Each...
diameter=120; thickness=2; height=25; filling=0.7; nc = floor(PI*diameter/height); difference(){ cylinder(h=height,d=diameter); cylinder(h=height,d=diameter-thickness); for (i = [1:nc]) { rotate([0,0,360/nc*i]) translate([diameter/2-2*thickness,0,height/2]) rotate([0,90,0]) cylinder(h=3*thicknes...
glb/cad_baa0f34f1bae.glb
Create a Parametric Rounded Corners Box. Start by creating a solid rectangular block with rounded corners, measuring 120mm in width, 90mm in depth, and 70mm in height, with a corner radius of 20mm. Hollow out the center of the block to create a container. The walls should have a uniform thickness of 0.6mm, while the ...
height=70; sizex=120; sizey=90; radius=20; thickness=0.6; bottom_thickness_factor=1.6; text_contents="Your Text"; text_size=10; text_engravement_factor=1; module rounded_square(dim, corners=[10,10,10,10], center=false){ w=dim[0]; h=dim[1]; if (center){ translate([-w/2, -h/2]) rounded_square_(dim, corner...
glb/cad_bd9a9bb12a26.glb
Create a puzzle container called the F-Puzzle Geocaching Edition. Start by constructing a rounded rectangular base. This base is formed by the convex hull of four spheres with a radius of 12mm, positioned at the corners of a 110mm by 60mm rectangle (specifically at coordinates [-5, -5], [105, -4], [105, 55], and [-5, 5...
$fn = 64; Gerade = 6.5; t1="123ab67890"; chars1=len(t1)+1; t2="1c3456c8d0"; chars2=len(t2)+1; t3="12345678e0"; chars3=len(t3)+1; t4="1fg4567"; chars4=len(t4)+1; t5="1h3456h"; chars5=len(t5)+1; difference() { union() { translate([0,0,Gerade]) hull() { translate([-5,-5,0]) ...
glb/cad_da5b3c80e7e2.glb
Create a F-Puzzle Geocaching Edition container. Start by creating a base shape using a convex hull of four spheres, each with a radius of 12mm, positioned at coordinates (-5, -5, 0), (105, -4, 0), (105, 55, 0), and (-5, 55, 0). Trim this shape by removing the top portion with a block measuring 200mm by 120mm by 14mm, a...
$fn = 64; t1="123ab67890"; chars1=len(t1)+1; t2="1c3456c8d0"; chars2=len(t2)+1; t3="12345678e0"; chars3=len(t3)+1; t4="1fg4567"; chars4=len(t4)+1; t5="1h3456h"; chars5=len(t5)+1; difference() { hull() { translate([-5,-5,0]) sphere(r=12); translate([105,-4,0]) sphere(r=12);...
glb/cad_0bf6cc66f426.glb
Create a 3D model of a blocky letter "F" by extruding a specific 2D polygon to a height of 8mm. The base shape is defined by a series of connected points: start at (0.2, 0.2), move to (9.8, 0.2), then up to (9.8, 20.2), right to (29.8, 20.2), and up to (29.8, 29.8). From there, move left to (9.8, 29.8), up to (9.8, 40....
linear_extrude(8) polygon(points = [[0.2,0.2],[9.8,0.2],[9.8,20.2],[29.8,20.2],[29.8,29.8],[9.8,29.8],[9.8,40.2],[29.8,40.2],[29.8,49.8],[0.2,49.8]]);
glb/cad_7f615fa0d48b.glb
Create a flat puzzle plate for a Geocaching puzzle. Start by creating a base plate with a thickness of 1.5mm. The outer boundary of this plate is an L-shaped polygon defined by the vertices (-0.2, -0.2), (70.2, -0.2), (70.2, 20.2), (100.2, 20.2), (100.2, 50.2), and (-0.2, 50.2). Into this base, carve out five horizont...
t1="2242513201"; chars1=len(t1)+1; t2="6489174695"; chars2=len(t2)+1; t3="0392646782"; chars3=len(t3)+1; t4="2109876"; chars4=len(t4)+1; t5="6584305"; chars5=len(t5)+1; difference() { translate([0,0,0]) linear_extrude(1.5) polygon(points=[[-0.2,-0.2],[70.2,-0.2],[70.2,20.2],[100.2,20.2],[10...
glb/cad_d4ddfcb374f3.glb
Create a F-Puzzle Geocaching Edition container. Start by constructing a base body that is a hybrid shape: a hull formed by four spheres with a radius of 12mm positioned at the corners of a 110mm by 60mm rectangle (specifically at coordinates [-5, -5], [105, -4], [105, 55], and [-5, 55]), with the entire bottom section ...
$fn = 64; Gerade = 6.5; t1="123ab67890"; chars1=len(t1)+1; t2="1c3456c8d0"; chars2=len(t2)+1; t3="12345678e0"; chars3=len(t3)+1; t4="1fg4567"; chars4=len(t4)+1; t5="1h3456h"; chars5=len(t5)+1; difference() { union() { translate([0,0,Gerade]) hull() { translate([-5,-5,0]) ...
glb/cad_15efdb487419.glb
Create a Versteckpunkt geocache container. Start with a base conical frustum that has a bottom diameter of 50mm, a top diameter of 60mm, and a height of 5mm. Hollow out the center of this base by removing a cylinder with a 50mm diameter and a height of 0.6mm, starting from a height of 4.5mm. Add a central tower consi...
$fn=64; st="VERSTECKPUNKT"; width=30; thickness=2; chars=len(st)+1 ; degrees=360; difference() { cylinder(d1=50, d2=60, h=5.0); translate([0,0,4.5])cylinder(d=50, h=0.6); rotate([0,0,30]) translate([0,0,0.9]) cylinder(d=3.8, h=0.5, $fn=6); cylinder(d1=9, d2=7.2,h=0.9); translat...
glb/cad_c8cf8b710c37.glb
Create a two-rod wall mount consisting of a flat rectangular base and two symmetrical clips. Start by creating a rectangular base plate 80mm long, 10mm wide, and 2mm thick. Center a circular hole with a 5mm diameter through the base plate. At each end of the base plate, centered 40mm from the middle, add a C-shaped c...
use <../libraries/rounding.scad>; len = 80; width = 10; thickness = 2; clip_height = 15; hole_dia = 5; rod_dia = 4.3; { clip_gap = rod_dia / 1.5; clip_thickness = max(clip_gap * 2, clip_gap * 1.5 + 4); difference() { cube([len+clip_thickness, width, thickness], center=true); cylinder(d=hole_dia, h=thickness+0....
glb/cad_4d06c15ce4b7.glb
Create a planter holder consisting of a curved hook and a rectangular attachment base. Start by creating a semi-circular ring with a thickness of 3mm and an outer radius of 18mm. This ring should be extruded upwards to a total height of 30mm. From the bottom of this ring, extend a solid rectangular block upwards to a h...
width = 30; notch_offset = 5; notch_height = 5; attachment_height = 15; hook_radius = 18; hook_extension = 20; module hook() { difference() { translate([0, 7 + hook_radius, hook_extension]) rotate([0, 90, 0]) rotate_extrude($fn=100) { translate([hook_rad...
glb/cad_05765ac74bc7.glb
Create a Euro Coin Holder by starting with a rectangular base measuring 80mm wide, 90mm deep, and 3mm thick. In this base, create seven circular holes to hold coins. Each hole consists of a wide top cylinder 3mm deep with a diameter matching the coin, and a narrower bottom cylinder 4mm deep with a diameter 1mm smaller ...
$fn=80; tolerance = 0.0; module coin_hole(d) { translate([0,0,0.5]) cylinder(d=d + tolerance, h=3); translate([0,0,-0.5]) cylinder(d=d-1, h=4); } difference() { translate([0, -5, 0]) cube([80, 90, 3]); translate([15, 65, 0]) coin_hole(16.25); translate([40, 65, 0]) coin_hole(18.75); t...
glb/cad_6fc5f29051c9.glb
Create a mounting clip for a kitchen countertop light. Start with a rectangular base measuring 15mm wide, 16.5mm high, and 1.5mm thick. At the center of the base, create a conical screw hole that transitions from a radius of 1.5mm at the bottom to 3mm at the top. Cut two rectangular slots through the base, each 1mm w...
width = 15; height = 16.5; thickness = 1.5; slotWidth = 1; slotLength = 9.5; slotX = 1.5; screwHoleR1 = 3/2; screwHoleR2 = 6/2; hookLength = 7; hookWidth = 1.9; hookHeight = 2.5; hookX = .9; grooveThickness = 1; grooveWidth = .9; $fn = 128; module hook(){ points = [ [0,0,0], [hookWidth,0,0], ...
glb/cad_f153a92568b3.glb
Create a lock inset for an Ikea Norden table. Start by creating a main cylinder with a diameter of 55mm and a height of 15mm. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a diameter of 43mm and a height of 13.9mm, leaving a base thickness of 1.1mm. Cut a rectangular slot through...
dia = 55; h = 15; gap = 25; difference() { cylinder(d=dia, h=h, $fn=60); translate([0,0,1.1]) cylinder(d=dia-12, h=h-1, $fn=60); translate([0, -gap/2, -0.1]) cube([dia, gap, h + 1]); } bar_len = 50; intersection() { translate([(31.5+6.4/2)-dia/2, bar_len/2, 10]) rotate([90, 45, 0]) hull() { cy...
glb/cad_1ed2bd66bd64.glb
Create an armrest organizer with a total length of 177.5mm, a front width of 136mm, and a back width of 135mm. The outer shell should have a wall thickness of 1.3mm and rounded corners with a 3mm radius. The walls should be 19.6mm high, with the back walls angled slightly outward by 5.5 degrees. Divide the interior in...
$fn=64; total_length=177.5; front_width=136; back_width=135; rounded_corners=3; front_angle=0; back_angle=5.5; side_angle=0; wall_thickness=1.30; coin_diameter=24.257+1.4; coin_depth=coin_diameter/4; coin_holder_height=coin_diameter-4.4; coin_offset_from_wall=0; center_divider_width_offset=12; 4_coin_width=7.8; number...
glb/cad_73ee905a1d05.glb
Create a TV Remote Holder consisting of two tilted rectangular bins joined on a shared base. First, create a flat rectangular base plate 100mm wide, 100mm deep, and 20mm thick, centered at the origin. Construct the first bin for a TV remote: create a rectangular shell with outer dimensions of 26mm width, 55mm depth, a...
module remoteHolder() { tv_remote_X = 21; tv_remote_Y = 50; gap = 5; space = 2.5; sound_X = 16; sound_Y = 41; rotateVector = [0, 16, 0]; rotateTV = [15, 0, 0]; rotateSound = [-15, 0, 0]; difference(){ union(){ rotate(rotateVector) rotate(rotateTV) translate([0,0,75/2 - 13]) cube(size=[tv_remote...
glb/cad_5ecfb72cd9d6.glb
Create a rectangular storage box and a matching sliding lid for game pieces. The main box body is a hollow rectangular prism with outer dimensions of 38mm in width, 208mm in length, and 3mm in height. The interior cavity of the box should be 33.5mm wide and 203.5mm long, with a depth of 3mm, leaving walls of 2.25mm thi...
length=208; rotate([180,0,0]) difference() { union() { translate([0,0,-3])cube([38,length,3]); #translate([2.25,2.25,-6])cube([33.5,length-4.5,3]); } translate([26,length/2,-3.01]) rotate([0,0,90]) linear_extrude(3.02) text("Sorry Unicorns",size=15,font="Arial Rounded MT Bold",h...
glb/cad_ec4d2f6e033f.glb
Create a rectangular box lid for a board game piece container. The main body is a rectangular slab measuring 38mm wide, 208mm long, and 3mm thick. Hollow out the center of this slab by removing a rectangular section that is 33.5mm wide, 205.7mm long, and 3mm deep, leaving a wall thickness of approximately 2.25mm on the...
length=208; rotate([180,0,0]) difference() { union() { translate([0,0,-3])cube([38,length,3]); #translate([2.25,-0.01,-6])cube([33.5,length-4.5+2.20,3]); #difference(){ union() { translate([3.854,-0.01,-8.605]) rotate([0,-75,0]) cube([5,le...
glb/cad_3a8e6422d9ee.glb
Create a snow shovel handle grip. Start with a central cylindrical void 30mm in diameter and 50mm long to accommodate the shaft. Build the main body around this void using a combination of shapes: create a tapered base by forming a hull between a 40mm by 120mm rectangular block and a 40mm diameter cylinder of 5mm heigh...
gd=40; gw=100; sw=10; $fn=51; rotate([0,90,0]) difference() { union() { hull() { translate([-gd/2,-(gw+2*sw)/2,50])cube([gd,gw+2*sw,20]); translate([0,0,25])cylinder(h=5,d=40); } cylinder(h=55,d=gd); hull() { s=0; translate([0,(gw+2*sw)/2-s,140])sphere...
glb/cad_5c60247b4094.glb
Create a Guitar Neck Rest by starting with a solid cylinder that has a diameter of 200mm and a depth of 75mm, oriented so the circular face is the profile. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a diameter of 190mm (creating a 5mm wall thickness) and a depth of 76mm. Cut ...
height = 100; depth = 75; dslot = 80; fslot = 72; wall = 5; $fn = 200; width = height * 2; radius = width / 2; difference() { rotate(a = 90, v = [1, 0, 0]) linear_extrude(depth) intersection() { translate([0, radius / 2]) circle(radius); } translate([0,0.01,0]) rotate(a = 90, v = [1...
glb/cad_131fa531d1f7.glb
Create an Easter Egg Holder consisting of a circular ring supported by three spheres. Start by creating a ring with an outer diameter of 45mm and a cross-sectional radius of 3mm, centered at a height of 30mm. This ring should be hollowed out from the center by a sphere with a radius of 21.51mm (calculated as half the t...
$fn=50; top_diameter=45; height=30; number_support_balls=3; difference() { union () { translate([0,0,height]) difference () { rotate_extrude($fn=80)translate([top_diameter/2,0,0])circle(r=3); translate([-top_diameter*1.5*0.5,-top_diameter*1.5*0.5,2.8]) ...
glb/cad_43d641586443.glb
Create an Easter Egg Holder consisting of a circular ring supported by three rectangular blocks. Start by creating a torus with a major diameter of 45mm and a cross-sectional radius of 3mm. Position this ring so its center is at a height of 25mm. To support the ring, place three identical cubes with side lengths of 2...
$fn=50; top_diameter=45; height=25; number_support_balls=3; difference() { union () { translate([0,0,height]) rotate_extrude($fn=80)translate([top_diameter/2,0,0])circle(r=3); for (angle=[0:360/number_support_balls:360]) rotate([0,0,angle]) translate([-height/2,...
glb/cad_5a612f865c85.glb
Create an Easter Egg Holder by constructing a flared, trumpet-like pedestal with a hollowed-out top. Start by creating a base shape using a rotated profile that curves outward from a narrow neck to a wide circular bottom with a diameter of 60mm and a height of 60mm, starting from a Z-offset of 1.8mm. For the top sect...
module BezConic(p0,p1,p2,steps=5) { stepsize1 = (p1-p0)/steps; stepsize2 = (p2-p1)/steps; for (i=[0:steps-1]) { point1 = p0+stepsize1*i; point2 = p1+stepsize2*i; point3 = p0+stepsize1*(i+1); point4 = p1+stepsize2*(i+1); { bpoint1 = point1+(point2-point1)*(i/steps); bpoint2 = point3+(point4-point3)...
glb/cad_61a5608cca85.glb
Create an Easter Egg Holder consisting of a hollowed-out, organic vessel with a wide base and a narrow opening. The outer shell is defined by a smooth, curved profile that transitions from a wide circular base to a narrower top. The base is a flat circle with a radius of 61mm. Moving upward along the Z-axis, the oute...
n = 100; m = 100; k = 150; M_identity=[[1,0,0], [0,1,0], [0,0,1]]; function mrotx(a)=[[1, 0, 0], [0,cos(a),-sin(a)], [0,sin(a), cos(a)]]; function mroty(a)=[[ cos(a),0,sin(a)], [ 0,1, 0], [-sin(a),0,co...
glb/cad_f9c0b0decbda.glb
Create an Easter Egg Holder shaped as a hollow, organic vessel with a wall thickness of 2mm. The form is defined by a series of stacked horizontal circular profiles centered on the Z-axis. Starting from the base, create a circle with a radius of 40mm at Z=0. As the shape rises, transition the radius through the follo...
n = 40; m = 30; k = 100; M_identity=[[1,0,0], [0,1,0], [0,0,1]]; function mrotx(a)=[[1, 0, 0], [0,cos(a),-sin(a)], [0,sin(a), cos(a)]]; function mroty(a)=[[ cos(a),0,sin(a)], [ 0,1, 0], [-sin(a),0,cos(...
glb/cad_1b400b0779ac.glb
Create a ukulele hanger by starting with a solid rectangular block 67mm wide, 57mm high, and 40mm deep. Hollow out the center to leave three walls: a back plate 10mm thick and two side walls each 5mm wide. The interior cavity should be 57mm wide and 57mm high. Modify the side walls by removing the lower portion of ea...
$fn=40; width_ukulele=57; depth_ukulele=27; width_side_wall=5; width_hanger=width_ukulele+width_side_wall*2; height_hanger=width_ukulele; depth_hanger=depth_ukulele+13; depth_hanger_base=10; radius_rest=5; difference() { cube([width_hanger,height_hanger,depth_hanger]); translate([width_side_wall,-1,depth_...
glb/cad_7753f61e8ca0.glb
Create a Box Joint Hand Jig by constructing a rectangular block with a total width of 12.7mm, a height of 12.7mm, and a length of 19.05mm. Carve a central rectangular slot through the body to accommodate wood, with the slot measuring 3.175mm wide and 3.175mm deep. This slot should be offset from the outer edges by 6.35...
woodThickness = 0.125; fingerWidth = 1.333; fingerDepth = 0.125; tolerance = 0.0; toolSideSize = 0.25; endJig = 0; units = 25.4; scale([units,units,units]) { gapToFingerDistance = endJig ? tolerance: (fingerWidth); rotate([90,0,-90]) { union() { difference() { cube(size = [ (toolSideSize*2+woo...
glb/cad_fb80b39e57e6.glb
Create three identical Bowden clips, spaced apart along a single axis. Each clip consists of a circular ring and an attached rectangular tab. For the ring, create a hollow cylinder with an outer diameter of 11mm, an inner diameter of 7mm, and a height of 1.8mm. Cut a gap into this ring to create an opening; the gap s...
count = 3; ring_thickness = 1.8; ring_id = 7; ring_od = 11; ring_cut_width = 5.5; tab_width = 5.8; tab_height = 1.5; tab_thickness = 1.6; tab_offset = 0; $fn = 64; eps = 0.01; module bowden_clip_tab() { ring_width = (ring_od - ring_id)/2; base_length = ring_width + tab_offset + tab_thickness; translate(...
glb/cad_58f0553b8df1.glb
Create a personalized bag clip consisting of two arms that rotate around a common pivot. Construct the first arm as a rectangular block 88mm long, 6mm thick, and 14mm wide. At the pivot end, integrate a cylindrical housing with an outer diameter of 12mm and a central hole of 6mm. At the opposite end, add a latch mech...
eps = 0 + 0.05; text_message = "Charlie"; text_size = 7; text_depth = 0.5; text_position = 0.6; text_spacing = 1.1; text_font = "Helvetica:black"; first_layers_inset_width = 0.3; first_layers_inset_height = 0.2; arm_length = 88; arm_width = 14; arm_thickness = 6; arm_space = 1; pivot_id = arm_thickness; p...
glb/cad_a8ecb1a460ab.glb
Create a 3D printer support test consisting of three stacked rectangular sections. Start with a square base measuring 20mm by 20mm with a thickness of 1.5mm. Centered on top of this base, place a vertical square post with a width and depth of 8mm and a height of 20mm. Finally, atop the post, create a cross shape formed...
base_length=20; top_length=30; post_width=8; post_height=20; base_thickness=1.5; top_thickness=1.5; translate([-base_length/2, -base_length/2, 0]) cube([base_length, base_length, base_thickness]); translate([-post_width/2, -post_width/2, 0]) cube([post_width, post_width, base_thickness+post_height+top_thickness]); f...
glb/cad_3600a9aa824f.glb
Create a bed leveling test maker consisting of nine square chips arranged in a 3x3 grid. Each chip must be a 10mm by 10mm square with a height of 1mm. Centered on the top face of each chip, engrave a number from 1 to 9 using a bold sans-serif font with a size of 6mm and a depth of 0.5mm. Position the chips within a t...
eps=0.01 + 0; s=10; t=6; h=1; xwidth = 130; ywidth = 100; module chip(number) { difference() { translate([-s/2, -s/2, 0]) cube([s, s, 1]); translate([0, 0, h/2]) linear_extrude(height = h/2+eps) text(str(number), halign="center",valign="center", size=t, font="helvetica: style=bold"); } } for...
glb/cad_96b71872ad79.glb
Create a Flashforge Creator Pro Tube Guide consisting of a flat rectangular base and a tilted cylindrical holder. Start with a rectangular base 50mm long, 25mm wide, and 3mm thick with rounded corners. From this base, extend a support pillar that rises and tilts at a 15-degree angle. At the top of this pillar, constr...
angle = 15; distance_from_case = 20; base_width = 51; base_thickness=3; filament_slot_width = 2.5; hole_diameter = 6.2; holder_length = 20; hole_wall = 2.5; hole_chamfer = 1; $fn=90; eps1 = 0.001; eps2 = eps1 * 2; module base_bars() { base_bar(1); base_bar(-1); } module tube_holder(side) { translate([-...
glb/cad_d9f56e6b49b9.glb
Create a small bathroom sink drainer filter consisting of a wide circular lip, a cylindrical base, and a conical top. Start with a circular lip that has an outer diameter of 41mm and a height of 1.2mm. The lip has a central hole with a diameter of 23.8mm and a wall thickness of 1.6mm. On top of the lip, add a cylind...
$fn=90; slot_fn=6; eps=0+0.01; angle=60; wall=1.6; aparture=1.6; horiz_wall=wall/sin(angle); d1=aparture+2*horiz_wall; d2=27; lip_width=7; lip_inner_thicknes=1.6; lip_outer_thicknes=1.2; d3=d2+2*lip_width; cone_height = tan(angle) * (d2-d1)/2; cone_side_length = (d2-d1)/(2*cos(angle)); base_height=10; module co...
glb/cad_1382fb5283ee.glb
Create a Customizable Blind Chain Stopper by starting with a main cylinder that has a diameter of 7mm and a height of 9.5mm. Remove a vertical center hole with a diameter of 1.3mm that runs through the entire height of the cylinder. Cut a vertical slot through the cylinder from top to bottom with a width of 0.8mm; this...
$fn=32 + 0; eps=0+0.01; d = 7; h = 9.5; hole_d = 1.3; cavity_d = 3.8; guide_d = 3.2; slot_w = 0.8; ball_spacing = 4.2; module cavity() { sphere(d=cavity_d); hull() { sphere(d=guide_d); translate([d, 0, 0]) sphere(d=guide_d); } } rotate([0, 0, -30]) difference() { cylinder(d=d, h=h); transla...
glb/cad_7352269ba3ad.glb
Create a blind cord pull handle with a total height of 25mm. The object is a revolved solid of revolution. The outer profile is defined by a bottom circular base with a diameter of 19mm and a radius of 5mm, tapering upward to a top circular end with a diameter of 12mm and a radius of 4mm. The sides curve inward with a ...
eps=0 + 0.01; cross_cut = 1; $fn=90; height = 25; top_end_radius = 4; top_diameter = 12; bottom_end_radius = 5; bottom_diameter = 19; curve_radius =22; hole_diameter = 3.5; hole_chamfer = 0.5; cavity_top_diameter = 8; cavity_bottom_diameter = 10; cavity_depth = 17; cavity_chamfer_slope = 0.8; r1=bottom_end_ra...
glb/cad_8b60f554d0b5.glb
Create a torture test model consisting of a tilted lattice cube resting on a circular base. Start by creating a circular base with a diameter of 88mm and a thickness of 4mm. Construct a cubic lattice frame with an overall outer dimension of 80mm. This frame is composed of three sets of parallel bars, each 5mm in diam...
$fn=32; bar_thickness = 5; cube_length = 80; base_thickness = 4; base_scale = 1.1; half_length = cube_length /2; eps1 = 0.01; eps2 = eps1*2; steps = [-half_length, 0, half_length]; end_steps = [-half_length, half_length]; module bar() { rotate([0, 90, 0]) translate([0, 0, -half_length]) cylinder(d=bar_thickne...
glb/cad_07bb720d3444.glb
Create a customizable box with compartments and a matching lid. For the base, construct a solid rectangular block with a total height of 52mm, a bottom thickness of 2mm, and outer walls 1.2mm thick. Divide the interior into a 4 by 4 grid of square compartments, each measuring 35mm by 35mm, separated by internal walls 1...
part = 0; height = 50; x_width = 35; y_width = 35; x_num = 4; y_num = 4; separator_width = 1.2; separator_shorter_by = 0; base_wall_thickness = 1.2; base_thickness = 2; lid_wall_thickness = 1.2; lid_thickness = 2; lid_height_percent = 50; clearance = 0.75; base_x = (base_wall_thickness * 2) + (x_width * x...
glb/cad_843c680134d0.glb
Create a customizable dice box consisting of a base and a lid. For the base, create a rectangular block with rounded corners and a total height of 10mm. The top surface must feature a honeycomb grid of hexagonal cells, each with a flat-to-flat diameter of 22mm and a depth of 7mm. The grid should be 3 cells wide by 5 ...
part = 0; corner_smoothness = 30; magnets = 1; magnet_diameter = 10.11; magnet_thickness = 3; hole_diameter = 22; hole_depth = 7; holes_in_lid = 1; lid_clearance = 0.75; thumb_cutout = 1; x_num = 3; y_num = 5; $fn = corner_smoothness; hex_flats_diameter = hole_diameter; hex_points_diameter = hex_flats_diame...
glb/cad_e90394cad41a.glb
Create a PTFE Tube Cutting Guide consisting of a rectangular base with two specialized channels. Start with a base block 20mm wide, 20mm deep, and 5mm thick. On one side of the block, create a cylindrical guide for the tube. This guide is a cylinder with a diameter of 8.5mm and a height of 16mm, centered along the de...
tube_diameter = 4.5; blade_thickness = 1; $fn = 36; wall_thickness = 2; base_thickness = 5; corner_radius = 4; tube_guide_thickness = tube_diameter + (wall_thickness * 2); blade_guide_thickness = blade_thickness + (wall_thickness * 2); base_size = max(20, tube_guide_thickness * 2); echo("tube guide diameter", tube...
glb/cad_ed3ba14ca5db.glb
Create a microphone shock mount consisting of a circular ring and a connecting beam. Start by constructing a ring with an outer diameter of 60mm and a cross-section formed by two concentric circles of 4mm and 8mm diameters. Along the circumference of this ring, place four identical pins spaced 90 degrees apart. Each pi...
$fa=4; $fs=.3; draw=true; ndraw=false; translate([-40,0,2]) rotate([-90,90,180]) if(draw){ rotate_extrude() translate([30,0]) hull(){ translate([ 2,0]) circle(d=4); translate([ 4,0]) circle(d=4); } for(a=[45:90:359]){ rotate([0,0,a]) translate([33,0,4]) { hull(){ cylinder(d=4,h=8,center...
glb/cad_7457dd472311.glb
Create a phone attachment bracket for an RC transmitter consisting of two primary components: a main bracket body and a mounting bracket. First, construct the main body. Create a base plate with a complex polygonal profile that extends from x=12 to x=-105 and y=0 to y=-26, with a thickness of 10mm. Integrate a cylindr...
$fa=4; $fs=.3; n8s=8.6; n8m=3.2; n8e=10; a=0; ma=25; module hexnut(s,h){ intersection(){ y=2*s; cube([s,y,h], center=true); rotate([0,0,120]) cube([s,y,h], center=true); rotate([0,0,-120]) cube([s,y,h], center=true); } } p11x=17+20*cos(ma); p11y=5-20*sin(ma); p10x=p11x-5*sin(...
glb/cad_cf3c088c31a3.glb
Create a GrandSon of Zerobeat Case, which is a protective electronics enclosure consisting of a bottom shell, a top shell, and two panels. Construct the bottom shell as a hollow rectangular box with a wall thickness of 2mm and rounded corners with a 2mm radius. The interior should be sized to accommodate a PCB of 53m...
Thick = 2; PanelThick = 2; FontThick = 0.5; Filet = 2; Round = 1; CutoutMargin = 0.3; PartMargin = 0.1; PCBFeet = 1; Decorations = 1; Vent = 1; Vent_width = 1.5; PanelThickGap = CutoutMargin + PartMargin; PanelVerticalGap = PartMargin; PanelHorizontalGap = CutoutMargin + PartMargin; ScrewHole = 2.2606; Box...
glb/cad_5d66f1d22c70.glb
Create a KeyAll HV Case consisting of a bottom shell, a top shell, and two panels. The main body is a rounded rectangular box with a wall thickness of 2mm and a fillet radius of 2mm. The interior is designed to house a PCB measuring 37.25mm by 31.75mm by 1.6mm. Construct the bottom shell with four integrated PCB mount...
Thick = 2; PanelThick = 2; FontThick = 0.5; Filet = 2; Round = 1; CutoutMargin = 0.3; PartMargin = 0.1; PCBFeet = 1; Decorations = 1; Vent = 1; Vent_width = 1.5; PanelThickGap = CutoutMargin + PartMargin; PanelVerticalGap = PartMargin; PanelHorizontalGap = CutoutMargin + PartMargin; ScrewHole = 2.2606; Box...
glb/cad_788d5a36b94e.glb
Create a circuit board bracket consisting of two variations: a corner bracket and a side bracket. For the corner bracket, create a central block 5mm wide, 5mm deep, and 15mm high. Subtract a 5mm wide, 5mm deep, and 10mm high cube from the top center to create a support notch. Add a 1mm high lip around the top edge of...
screwpost=true; *difference(){ union(){ cube([20,20,15], center=true); translate([-11,-11,0])cylinder(r=6, h=15, center=true);} translate([6,6,-1])cube([20,20,20], center=true); translate([4,4,10])cube([20,20,15], center=true); translate([4,4,3])cube([22,22,2], center=true); transla...
glb/cad_6a91f9f410db.glb
Create an Extractor Fan Extruder Visualizer consisting of a main body, a shroud with vanes, and a central fan assembly. Start with a main body as a centered cube 42mm wide, 42mm deep, and 8mm high. Subtract a centered cylinder with a 38mm diameter and 8mm height to create a duct. Add a rounded transition to the duct e...
Resolution=60; $fn=Resolution; Display=0; BodySize=42; BodyHeight=8; DuctDiameter=38; DuctRounding=4; ShroudSize=42; ShroudHeight=2; ShroudThickness=4; Vanes=7; VaneCount=Vanes-1; VaneThickness=0.8; VaneHeight=5; VaneAngle=10; VaneSpacing=5.4; VaneYPosition=-18.5; HubDiameter=8; HubHeight=2; ShaftDia...
glb/cad_1fb8d3b20ead.glb
Create a Notebook Stand consisting of two symmetrical support arms. For each arm, start by creating a base rectangular block measuring 20mm by 90mm with a height of 10mm. Position a second identical 20mm by 90mm by 10mm block adjacent to the first, but rotate it 50 degrees upward along the X-axis to create a V-shaped c...
cube([20,168.9,10]); rotate([50,0,0]) cube([20,90,10]); translate([0,45,0]) rotate([50,0,0]) cube([20,90,10]); translate([0,95.5,62]) rotate([-40,0,0]) cube([20,96,10]); translate([0,21.5,25.5]) rotate([-40,0,0]) %cube([20,24,1]);
glb/cad_9a4eb95f53ad.glb
Create a protective case for an ADB-USB Wombat adapter. The case consists of a bottom shell and a top cover. For the bottom shell, create a rounded rectangular box with outer dimensions of 72mm by 72mm and a total height of 13.5mm. The walls should be 1mm thick. The interior should be hollowed out, leaving a floor thi...
margin=1; width=70+margin*2; depth=70+margin*2; height=13.5 ; thickness=1; standoff_height=3; standoff_inset=5.5 + margin; inner_radius=10; outer_radius=inner_radius + thickness; fastener="pegs"; $fn=30; bottom(); module top() { difference() { union() { base_shape(width+thickness*2, depth+thi...
glb/cad_8df6c82b7945.glb
Create an Integrated Modular Carriage for an AM8 or Anet A8 printer. The model consists of a main body designed to hold a bushing and a hotend. Start by creating a central vertical cylinder with a diameter of 15.3mm and a height of 29mm. Surround this cylinder with a hull formed by a rectangular block measuring 32mm ...
$fn = 100; function get_coarse_pitch(dia) = lookup(dia, [ [1,0.25],[1.2,0.25],[1.4,0.3],[1.6,0.35],[1.8,0.35],[2,0.4],[2.5,0.45],[3,0.5],[3.5,0.6],[4,0.7],[5,0.8],[6,1],[7,1],[8,1.25],[10,1.5],[12,1.75],[14,2],[16,2],[18,2.5],[20,2.5],[22,2.5],[24,3],[27,3],[30,3.5],[33,3.5],[36,4],[39,4],[42,4.5],[45,4.5],[48,5],[52,...
glb/cad_ee05a8432833.glb
Create a mounting bracket for a 3D printer electronics stack. The base is a flat plate 4mm thick. On the right side, create a solid rectangular section measuring 40mm by 20mm. In this section, place two vertical holes with a diameter of 4.7mm, positioned 10mm from the left and right edges and 10mm from the bottom edge...
mount_4(); module hole_test() { difference() { union() { translate([-7.5,-7.5,0]) cube([15,15,2]); linear_extrude(hole_t, convexity=10) circle(d=hole_d_m4+2*hole_wall+hole_extra); } linear_extrude(hole_t, convexity=10) circle(d=hole_d_m4+hole_extra); } } $fn=45; hole_d_m2_5=2.35; hole_d_m...
glb/cad_487ddf6d61e7.glb
Create a small cylindrical sleeve with a central hole. Start by creating a solid cylinder with a diameter of 10mm and a height of 15mm. Then, remove a smaller concentric cylinder from the center with a diameter of 3.4mm and the same height of 15mm to create a hollow tube. Ensure the final geometry is a smooth, circular...
difference() { cylinder(d=10, h=15, $fn=90); cylinder(d=3.4, h=15, $fn=90); }
glb/cad_17fb8f6fa760.glb
Create a spoolholder nut for a 3D printer. Start with a central cylindrical body that has a diameter of 15.3mm and a height of 29mm. Surround this cylinder with a hull formed by a 32mm by 4mm by 29mm box and the cylinder itself. From this main body, remove a central hole with a diameter of 10.2mm (calculated as 10/15...
$fn = 100; function get_coarse_pitch(dia) = lookup(dia, [ [1,0.25],[1.2,0.25],[1.4,0.3],[1.6,0.35],[1.8,0.35],[2,0.4],[2.5,0.45],[3,0.5],[3.5,0.6],[4,0.7],[5,0.8],[6,1],[7,1],[8,1.25],[10,1.5],[12,1.75],[14,2],[16,2],[18,2.5],[20,2.5],[22,2.5],[24,3],[27,3],[30,3.5],[33,3.5],[36,4],[39,4],[42,4.5],[45,4.5],[48,5],[52,...
glb/cad_ee05a8432833.glb
Create a vertical bracket with a rectangular base. Start with a base plate measuring 25mm by 25mm with a height of 4mm. From this base, extend a vertical rectangular column 170mm high with a width of 25mm and a depth of 25mm. Within this column, carve out a central vertical slot that is 18mm wide and 21mm deep, runni...
$fn=30; translate([0,-40,0]) difference() { cube([65,25,4]); translate([10,12.5,0]) cylinder(d=5.5, h=4); translate([55,12.5,0]) cylinder(d=5.5, h=4); } linear_extrude(4, convexity=10) polygon([[0,-15],[0,0],[20,25],[45,25],[65,0],[65,-15]]); translate([0,0,4]) rotate([90,0,0]) linear...
glb/cad_03fe21238907.glb
Create a spoolholder nut by starting with a solid cylinder 19mm in diameter and 7mm in height. Remove a central vertical hole 5.4mm in diameter that runs the full 7mm height of the object. Additionally, remove a wider cylindrical section from the top, creating a counterbore 12mm in diameter and 3mm deep, centered on th...
$fn=60; difference() { cylinder(d=19, h=7); cylinder(d=5.4, h=7); translate([0,0,4]) cylinder(d=12, h=3); }
glb/cad_9844fb269f42.glb
Create a rectangular bracket with an overall width of 91.3mm, a height of 43.6mm, and a thickness of 15mm. The main body is a hollowed-out shell with walls 4mm thick. To form this shell, remove a central rectangular block of 86.9mm by 39.2mm from the interior. Add a small vertical rectangular tab, 2mm wide and 15mm h...
width=86.90; height=39.20; hole_spacing=85.50; slack=0.2; thickness=4.0; bracket_width=15; $fn=30; difference() { union() { difference() { cube([width+slack+2*thickness, height+slack+2*thickness, bracket_width]); translate([thickness, thickness, 0]) cu...
glb/cad_2c3ce8fe7240.glb
Create a Double-Width Low-Profile GPU Bracket with a thickness of 1mm. The main body is a flat plate defined by a polygon with vertices at [80,3], [11.5,3], [7.5,7], [1,7], [0,8], [0,16.25], [1,17.25], [7.5,17.25], [11.5,21.25], [11.5,23], [7.5,27], [1,27], [0,28], [0,36.25], [1,37.25], [7.5,37.25], [11.5,41.25], and [...
difference() { union() { linear_extrude(1, convexity=10) polygon([ [80,3], [11.5,3], [7.5,7], [1,7], [0,8], [0,16.25], [1,17.25], [7.5,17.25], [11.5,21.25], [11.5,23], ...
glb/cad_ad0a3f725ecf.glb
Create an Auto-Rewind Spool Holder block by starting with a solid rectangular cube measuring 31.5mm in width, 25mm in depth, and 25mm in height. Carve out a large rectangular void from the top, starting 3mm from the left edge and 14mm from the front edge, with a width of 25.5mm, a depth of 11mm, and a height of 25mm. R...
$fn=30; difference() { cube([31.5,25,25]); translate([3,14,0]) cube([25.5,11,25]); translate([15.75,0,15]) rotate([-90,0,0]) cylinder(d=8.4, h=25); translate([11.55,0,6.5]) cube([8.4,6,8]); translate([15.75,6,15]) rotate([-90,0,0]) cylinder(d=16.5, h=8); }
glb/cad_b62269af13b1.glb
Create a mounting bracket for an HP Common Slot power supply. Start with a flat rectangular base measuring 94.8 mm in length, 46.4 mm in width, and 15 mm in height. Hollow out the center to create a rectangular frame with a wall thickness of 4 mm on all sides, leaving a small 2 mm wide slot running through the center o...
width=86.40; height=38.20; hole_spacing=85.50; slack=0.2; thickness=4.0; bracket_width=15; difference() { union() { difference() { cube([width+slack+2*thickness, height+slack+2*thickness, bracket_width]); translate([thickness, thickness, 0]) cube([width...
glb/cad_696ba36762ca.glb
Create a shaft endstop by designing a thick ring with an outer diameter of 28mm, an inner diameter of 10mm, and a total thickness of 10mm. Cut the ring in half along its diameter to create two symmetrical C-shaped halves. In each half, create a 3.4mm diameter hole that passes perpendicularly through the ring's cross-se...
id=10; od=id+18; thickness=10; $fn=90; nut_d=6.4; translate([0, 0, thickness/2]) intersection() { difference() { cylinder(d=od, h=thickness, center=true); cylinder(d=id, h=thickness, center=true); translate([od/2-5,0,0]) rotate([90,0,0]) cylinder(d=3.4, h=od, cente...
glb/cad_423d8db0d1f8.glb
Create a Hypercube Shaft Endstop by designing a thick ring with a total height of 10mm. The ring should have an outer diameter of 26mm and a central circular hole with a diameter of 8mm. Split the ring into two equal halves by removing a rectangular section from the center, leaving two symmetrical C-shaped clamps. On...
id=8; od=id+18; thickness=10; $fn=90; nut_d=6.4; translate([0, 0, thickness/2]) intersection() { difference() { cylinder(d=od, h=thickness, center=true); cylinder(d=id, h=thickness, center=true); translate([od/2-5,0,0]) rotate([90,0,0]) cylinder(d=3.4, h=od, center...
glb/cad_359ec11017be.glb
Create a Hypercube 300 Spiral Bushing XY Joiner. Start with a central cylinder that has an outer diameter of 15mm and a total height of 44.8mm, centered on the origin. Extrude this shape along the Z-axis while applying a 30-degree twist to the geometry. Along the outer wall of this twisted cylinder, integrate 10 evenl...
outerD=15.0; innerD=8.0; filament_margin = 1.3; H=44.8; N = 10; spike_angle = 30; blade_twist = 30; $fn = 90; module spike() { difference() { rotate ([0,0,0]) translate ([outerD/2-2,0,0]) rotate ([0,0,spike_angle]) cube([7,1.1,H+2], center = true); cylinder (r = (innerD+ filament_margin)/2, h = H+...
glb/cad_24dff489614b.glb
Create a Half-AA Battery Holder. Start by constructing a main rectangular body with a length of 26.1mm and a width of 14.4mm. The body should feature a central hollow cavity to accommodate the battery, with walls that have chamfered edges. Integrate a flexible plastic spring mechanism on one of the shorter ends to sec...
module chamfered_cube(size,d=1){ hull(){ translate([d,d,0])cube(size-2*[d,d,0]); translate([0,d,d])cube(size-2*[0,d,d]); translate([d,0,d])cube(size-2*[d,0,d]); } } module arc(r1,r2,h,a1=0,a2=0){ if(a2-a1<=180){ difference(){ cylinder(r=r2,h=h); translate([0,0,-1...
glb/cad_3d9ddc9787b5.glb
Create a NEMA 17 spacer plate by designing a flat square plate with a thickness of 2mm. The main body should be a square with a side length of 31.3mm, but with rounded corners created by a 5.5mm radius. In the center of the plate, create a circular hole with a diameter of 23mm. Additionally, place four small circular m...
$fn=90; linear_extrude(2) difference() { minkowski() { square(31.3, center=true); circle(d=11); } translate([-15.5,-15.5]) circle(d=3.4); translate([15.5,-15.5]) circle(d=3.4); translate([-15.5,15.5]) circle(d=3.4); translate([15.5,15.5]) circ...
glb/cad_ffa1761d3d70.glb
Create a hollow cylindrical sleeve for a printer carriage. The main body is a cylinder with an outer diameter of 17.3mm and an inner diameter of 12.7mm, resulting in a wall thickness of 2.3mm. The total height of the cylinder is 35.1mm. Inside the cylinder, create a series of locating rings. These rings are formed by ...
$fn=90; id=12.7; notch_width=2.6; notch_depth=1.6; wall_thickness=4.6; intersection() { difference() { union() { translate([18.55,-27.55,0.5]) minkowski() { cylinder(d=id+wall_thickness-1, h=35.1); ...
glb/cad_ba61cabb20d6.glb
Create a Bicycle Flashlight Mount by starting with a main body shaped as a rounded block. The body is defined by a polygon with vertices at (-10, 0), (10, 0), (10, 5), (20, 41), (-20, 41), and (-10, 5), extruded to a thickness of 30mm and smoothed with a 1.5mm radius. From this body, remove a cylindrical hole with a ...
$fn=90; difference() { c=1.5; translate([-15,0,0]) rotate([90,0,90]) minkowski() { linear_extrude(30, convexity=10) polygon([[-10+c/2,0],[10-c/2,0],[10-c/2,5],[20-c/2,41-c],[-20+c/2,41-c],[-10+c/2,5]]); sphere(d=c); } translate([0,21,0]) rotate([90,0,0]) ...
glb/cad_4a6992ae951b.glb
Create a small shelf consisting of a flat rectangular base and supporting structures. The base is a thin plate measuring 182mm in length, 82mm in width, and 2mm in thickness, with rounded edges. Along the length of the base, add three longitudinal ribs. Each rib is a rectangular prism measuring 182mm by 6mm by 6mm wi...
$fn=45; module mount_hole() { rotate([90,0,0]) rotate_extrude() translate([2.5,-.5,0]) minkowski() { square(1.5, center=true); circle(d=2); } } module brace() { rotate([90,90,0]) minkowski() { cube([6,4,1]); sphere(d=2); } translate([2,-.75,...
glb/cad_4cc5ec78e6e7.glb
Create a Parametric Vase-Mode Parts Cabinet frame designed to hold drawers. The frame is a solid rectangular block with a total width of 163.85mm (calculated as 4 columns of 40mm width plus three 0.05mm gaps) and a total height of 81.85mm (calculated as 4 rows of 20mm height plus three 0.05mm gaps), with a depth of 80m...
make_frame=1; width=40; height=20; depth=80; enable_tag_holder=1; x_count=4; y_count=4; gap=0.05; nozzle_width=0.4; base_thickness=0.55; total_width=x_count*(width+2)+(x_count-1)*gap; total_height=y_count*(height+2)+(y_count-1)*gap; module drawer() { $fn=30; difference() { translate([2,2,0]) ...
glb/cad_2f4ee25087d2.glb
Create a 3-digit 7-segment LED module. Start with a rectangular main body measuring 30.02mm in length, 12.8mm in width, and 6.96mm in height. On the top face, create three identical digit clusters spaced 10.16mm apart. Each digit consists of seven segments and one decimal point. Each segment is a thin rectangle 6mm l...
segment_length=6; segment_width=0.9; dot_diameter=1.2; digit_incline=10; digit_spacing=10.16; ang=90-digit_incline; xs=segment_length*cos(ang); ys=segment_length*sin(ang); module segment() { polygon([[0,0], [segment_width/2,segment_width/2], [segment_length-segment_width/2,segment_width/...
glb/cad_bd40ad654d3a.glb
Create a bearing removal and installation tool consisting of two concentric cylindrical parts, both with a height of 62mm and a 60-facet resolution. First, create a solid central rod with a diameter of 14mm. Second, create a hollow outer cylinder with an outer diameter of 24mm and an inner bore of 16mm, designed to fit...
linear_extrude(62) { circle(d=14, $fn=60); difference() { circle(d=24, $fn=60); circle(d=16, $fn=60); } }
glb/cad_451f3f4e391c.glb
Create a fixed bed spacer with an integrated cable chain guide. Start by creating a main cylindrical body with a diameter of 10mm and a height of 15mm. Drill a concentric hole through the center of this cylinder with a diameter of 3.4mm. On top of this cylinder, add a second, thinner cylindrical disc with a diameter ...
difference() { cylinder(d=10, h=15, $fn=90); cylinder(d=3.4, h=15, $fn=90); } translate([0,2.5,0]) rotate([90,0,0]) linear_extrude(5, convexity=10) polygon([[-1.7,5],[-5,5],[-10,19],[-10,21],[-6,21],[-6,15],[-1.7,15]]); translate([0,0,19]) linear_extrude(2, convexity=10) { translate([-36,0]) circle(d=5, $fn=90)...
glb/cad_a19d7c2dca67.glb
Create a hanger for a JBL Flip 4 speaker by constructing a thick, semi-circular arc. Start with a solid rectangular block that is 12mm thick and 81mm wide (extending from -40.5mm to 40.5mm along the x-axis). From this block, remove a central semi-circle with a radius of 35.25mm to create the inner cradle. To refine t...
diam=67.5; gap=1.5; radius=diam/2+gap; thick=12; cut=24; screw_diam=3.4; screw_depth=5; nut_diam=6.4; module screw_hole(x,z) { translate([x,0,z]) rotate([90,0,0]) linear_extrude(screw_depth, convexity=10) circle(d=screw_diam,$fn=45); translate([x,-screw_depth,z]) rotate([90,0,0]) linear_...
glb/cad_3c7715cf8f36.glb
Create a speaker hanger by starting with a semi-circular C-clamp shape. The inner diameter of the clamp is 67.5mm, with a wall thickness of 12mm, resulting in an outer diameter of 91.5mm. The overall thickness of the part is 12mm. The clamp is not a full circle; it is open on one side to allow a speaker to be inserted...
diam=67.5; gap=1.5; radius=diam/2+gap; thick=12; cut=24; top_width=40; screw_diam=3.4; screw_depth=5; screw_head_diam=6.4; nut_diam=6.4; ext_length=40; ext2_length=12; hanger_diam=1.25*25.4; module screw_hole(x,z) { translate([x,0,z]) rotate([90,0,0]) linear_extrude(screw_depth, convexity=10) circl...
glb/cad_05767c988b23.glb
Create a speaker hanger for a JBL Flip 4. Start by forming a semi-cylindrical cradle with an inner diameter of 67.5mm and a wall thickness of 12mm. The cradle should be a partial cylinder, cut away to create a flat bottom surface that prevents the speaker from rolling. Integrate a mounting system into the side walls o...
diam=67.5; gap=1.5; radius=diam/2+gap; thick=12; cut=24; top_width=40; screw_diam=3.4; screw_depth=5; screw_head_diam=6.4; ext_length=40; module screw_hole(x,z) { translate([x,0,z]) rotate([90,0,0]) linear_extrude(screw_depth, convexity=10) circle(d=screw_diam,$fn=45); translate([x,-screw_depth...
glb/cad_dad0ebd55249.glb
Create an alignment sleeve for a 20mm extrusion. The object is a hollow rectangular prism with a total height of 140mm. The outer dimensions of the square cross-section are 22.8mm by 22.8mm, and the inner hollow square is 20.8mm by 20.8mm, resulting in a wall thickness of 1mm on all sides. On one of the outer side fa...
nominal_extrusion_width=20; screw_diameter=5; gap=0.4; thickness=2.8; alignment_sleeve(140, "Top"); tw=(nominal_extrusion_width+gap+2*thickness); iw=(nominal_extrusion_width+gap+thickness)/2; sleeve_gap=gap+.2; module corner_bracket() { corner(); translate([0,tw,0]) tube(); translate([tw,0,0]) rotate([0,0,90])...
glb/cad_a268a658959f.glb
Create a game piece for a Travel Connect 4 set by designing a thin cylinder with a diameter of 18mm and a height of 2mm. Centered on the top face of the cylinder, carve out a capital letter "Z" using a bold serif font. The letter should be positioned so that its center aligns with the center of the disc, specifically o...
linear_extrude(2, convexity=10) difference() { circle(d=18, $fn=180); translate([-4.5,-4.5]) text("Z", font="Liberation Serif:style=Bold"); }
glb/cad_2fdec46e949f.glb
Create a calibration tool consisting of three rectangular prisms meeting at a single corner. First, create a base prism along the X-axis that is 101mm long, 10mm wide, and 5mm high. Attached to the end of this base, add a perpendicular tab extending along the Y-axis that is 10mm wide, 101mm long, and 5mm high, such tha...
cube([101,10,5]); translate([100,-5,0]) cube([5,20,5]); cube([10,101,5]); translate([-5,100,0]) cube([20,5,5]); cube([10,10,100]);
glb/cad_9288584ae249.glb
Create a RAMPS/Raspberry Pi/Dual MOSFET Mount consisting of a flat, interconnected network of structural braces and mounting pads. The base structure is built around several rectangular mounting zones connected by 4mm wide braces with a thickness of 3mm. First, create a main frame mounting area measuring 87mm by 92mm....
mount_1(); module hole_test() { difference() { union() { translate([-7.5,-7.5,0]) cube([15,15,2]); linear_extrude(hole_t, convexity=10) circle(d=hole_d_m4+2*hole_wall+hole_extra); } linear_extrude(hole_t, convexity=10) circle(d=hole_d_m4+hole_extra); } } $fn=45; hole_d_m2_5=2.35; hole_d_m...
glb/cad_823d9e703ea4.glb
Create a VESA mount extension arm for a Raspberry Pi. The main body is a flat rectangular plate 154.2mm long, 10mm wide, and 2mm thick. At one end of the plate, create a cylindrical spacer that is 15.25mm tall and 14.45mm in diameter. This cylinder must have a concentric hole passing through its center with a diamete...
translate([-130,15,0]) { translate([291.5,0.0]) linear_extrude(3+4+8.25) difference() { circle(d=14.45, $fn=90); circle(d=8.45, $fn=90); } difference() { union() { translate([0,0,2]) linear_extrude(2) polygon([[170,5],[287.375,5],[287.375,-5],[170,-5]]); linear_extrude(2) polygon([[135,5...
glb/cad_4f2a921675d7.glb
Create a filament guide and sensor mount consisting of a ring and a connected rectangular base. Start by creating a circular ring with a cross-sectional radius of 1.5mm and a centerline radius of 6.35mm. The ring should be nearly complete, leaving a small gap of 20 degrees (covering 340 degrees of a full circle). Atta...
r=1.5; r2=1/4*25.4; a=340; h=4.65; ht=0.8; rotate([0,0,(360-a)/2]) rotate_extrude(angle=a, $fn=90) translate([r2,0,0]) circle(d=2*r, $fn=90); difference() { translate([-18,0,(h+2*ht)/2-r]) rotate([0,-90,0]) rotate([0,0,45]) linear_extrude(12) circle(d=sqrt(2*(h+2*ht)*(h+2*ht)), $fn=4); translate([-21,0,(h+2*h...
glb/cad_869a65947d13.glb
Create an Anet A8 Extruder Fan Spacer by constructing a flat plate with a thickness of 3mm. The overall footprint is an oval-like shape formed by merging two circles with a connecting rectangle. Place two circles, each with a diameter of 9mm, centered at coordinates (6.5, 6.5) and (38, 6.5). Connect these circles with ...
linear_extrude(3) { difference() { union() { translate([6.5,6.5,0]) circle(d=9, $fs=0.01); translate([38,6.5,0]) circle(d=9, $fs=0.01); polygon([[6.5,2],[38,2],[38,11],[6.5,11]]); } translate([6.5,6.5,0]) ...
glb/cad_073a48dfdeb8.glb
Create an Anet A8 Spool Holder Combo consisting of a cylindrical base and a threaded bolt. Start with a base composed of two stacked cylinders: a bottom disc 6mm high with a 75mm diameter, and a main body 50mm high with a 50mm diameter. Remove a central vertical hole 37mm in diameter from the entire height of the bas...
include <polyScrewThread_r1.scad> PI=3.141592; spoolholder(); module spoolholder() { union(){ difference(){ union(){ cylinder($fn=60,h=6+50, d=50, center=false); translate([0,0,6+49.9]) screw_thread(50,4,55,57-30,PI/2,2); cylinder($fn=60,h=6, d=75, center=false)...
glb/cad_619d167edd2e.glb
Create a Brio/Duplo Bridging Set consisting of a straight rail and two supporting pillars. First, construct a straight rail section 150mm long. The rail body has a width of 39.7mm and a height of 12mm. Incorporate a rail profile that removes material from the top edges to create a channel. At each end of the rail, ad...
subpart = "all"; angle = 18; radius = 140; length = 150; pin1 = false; pin2= true; $fn = 120; rw_gap = 0.2; rail_h = 12; rail_w = 39.7; rail_w2 = rail_w/2; pin_d = 11.5; pin_offset = 12.25; pin_shaft_w = 6; pinhole_d = 13; pinhole_offset = 11.5; pinhole_shaft_w = 7; pind = 9.4; pinh = 4.5; step = 16; wall = 1.5; de...
glb/cad_61240cd7558c.glb
Create a Customizable Clamp assembly consisting of a variety of metric fasteners and threaded components. First, generate five sets of metric bolts, nuts, and washers in diameters of 3mm, 4mm, 5mm, 6mm, and 8mm. Each bolt should feature a hexagonal head and a threaded shaft 8mm in length. Each nut should be a hexagon...
screw_resolution = $fs; function ThreadPitch(diameter) = (diameter <= 64) ? lookup(diameter, [ [2, 0.4], [2.5, 0.45], [3, 0.5], [4, 0.7], [5, 0.8], [6, 1.0], [7, 1.0], [8, 1.25], [10, 1.5], [12, 1.75], [14, 2.0], [16, 2.0], [18, 2.5], ...
glb/cad_c900ab558284.glb
Create a customizable hex nut M3 standoff by constructing a hexagonal prism with a total height of 10mm and a width of 5mm. The hexagonal outer shell should be formed by the hull of two cubes, one measuring approximately 2.89mm by 5mm and the other rotated 120 degrees, both centered. Bore a vertical cylindrical hole th...
$fn=64; height = 10; m=3; w=5; space=0.4; difference() { depth = height/2-space/2; hex(w,height); translate([0,0,space/2]) cylinder(depth,m/2,m/2); translate([0,0,-depth-space/2]) cylinder(depth,m/2,m/2); }; module hex(w,h) { hull() { cube([w/sqrt(3),w,h],center=true); rotate([0,...
glb/cad_20bb9ca7170b.glb
Create a companionway hatch board holder consisting of two mirrored symmetrical halves. Each half is composed of a top section and a bottom section. For the top section, create a rounded rectangular block with a width of 30mm and a height of 60mm. The corners should be rounded with a radius of 3mm. Carve out a central...
$fn=50; bhtw=570; bhbw=540; bhh=390; thtw=594; thbw=565; thh=385; tp=300; gt=11; demo(); module printable() { rotate([0,0,90]) { translate([2, -2 ,0]) rotate([0,-90,180])top_left(); translate([-2, -2 ,0]) rotate([0,90,180]) mirror([1,0,0])top_left(); translate([-2, 2 ,0]) rotate([0,-90,0]) bottom_le...
glb/cad_7393dd0dce19.glb
Create a Bahtinov mask for a telescope with a total outer diameter of 145mm and a thickness of 2mm. The main body consists of a circular disk with a central hole 50mm in diameter. Within the disk, create a circular aperture area with a diameter of 127mm. Inside this aperture, cut a series of precise slits to form the...
outerDiameter = 145; aperture = 127; centerHoleDiameter = 50; gap = 4; module bars(gap, width, num=5) { num = round(num); for (i=[-num:num]) { translate([width/2,i*2*gap]) square([width,gap], center=true); } } module bahtinovBars(gap,width) { numBars = aperture/2 / gap / 2 -1; intersec...
glb/cad_ef2adc73d170.glb
Create a sanding stick and wedge set. First, construct the main block by creating a hull between a cylinder with a 1mm diameter and a larger cylinder with a 15mm diameter, both centered on the same axis, to form a tapered body with a total length of 100mm and a width of 7mm. Cut a slot through this block for the sandin...
part = "both"; width = 7; height = 15; length = 100; paperThickness = 0.21; $fs=0.5; module wedge(width) { hull() { translate([0,0,-9]) rotate([90,0,0]) cylinder(h=width,d=3.75,center=true); rotate([90,0,0]) cylinder(h=width,d=2,center=true); } } module block(width,height,length,paperThickness) { difference...
glb/cad_ab98fe18529b.glb
Create a 3D model of a grid composed of 33 vertical cylinders. Each cylinder must have a radius of 5mm and a height of 80mm. Arrange these cylinders in a specific pattern based on a 13-column layout. For the first 7 columns, place the cylinders at x-coordinates in increments of 15mm, starting from -45mm and moving righ...
rotate([90, 0, 0]) for (i = [ 0 : 1 : 32 ]) { pos_x = ((i % 13) >= 7) ? .5 + i % 13 - 7: i % 13; pos_y = ((i % 13) >= 7) ? 1 + 2 * floor(i / 13): 2 * floor(i / 13); echo([i, pos_x, pos_y]); translate([15*pos_x-45, -10*pos_y+65, 0]) cylinder(r=5, h=80); }
glb/cad_85023c536833.glb
Create a Hive game board consisting of a rectangular tray with a hexagonal grid. The main body is a rectangular slab measuring 200mm by 200mm with a height of 2mm. Within this slab, create a repeating pattern of hexagonal cells. Each cell should have an interior width across the flats of 25.3mm and a wall thickness o...
piece_diameter = 25.0; cell_diameter = piece_diameter + 0.3; piece_height = 10.0; cell_height = piece_height / 5.0; wall_thickness = 1.5; include <BOSL2/std.scad> module cell(SW_hole, height, wall) { tol = 0.001; difference() { cyl(d=SW_hole+2*wall,h=height,$fn=6,circum=true); cyl(d=SW_hole,h=height+tol,$...
glb/cad_fe3f4b5a8465.glb
Create a Voron 0.1 Z Nut Block by starting with a rounded cube measuring 28mm wide, 38mm long, and 25.5mm high, with a corner radius of 0.5mm. Center a vertical cylindrical hole with a 27.5mm diameter and 14mm height through the main body. Inside this, add a smaller concentric vertical hole with a 13mm diameter and 3...
$fs = 0.01; width=28; length=38; height=25.5; module roundedcube(size = [1, 1, 1], center = false, radius = 0.5, apply_to = "all") { size = (size[0] == undef) ? [size, size, size] : size; translate_min = radius; translate_xmax = size[0] - radius; translate_ymax = size[1] - radius; translate_zmax = size[2] - ra...
glb/cad_dfebcb00b264.glb
Create a Listerine drip guard designed as a shallow, elongated tray. The main body is a rounded rectangular basin with an outer width of 114.6mm, a depth of 79mm, and a height of 20mm. The walls are 1.5mm thick. The long sides of the basin are formed by two intersecting cylinders with a radius of 88mm, creating a smoot...
$fn=360; dBox=76; wBox=111.6; hBox=20; shortside=36.5; rSide=88; thickness=1.5; scalefactor= 1+thickness/dBox; rounding=thickness; dTab=20; wTab=3.5; hTab=6; hCutout=10; wCutout=2; dCutout=2; offsetCutout = 0; clearance=2; wSpacer=8; dSpacer=2.8; hSpacer=hBox+rounding; offsSpacer=8.7; module listerine() { inters...
glb/cad_d8a87d4ac4b5.glb
Create a Vevor Lathe Gearbox Spacer. The part is a semi-circular ring with a thickness of 8mm. The outer diameter is 30mm and the inner diameter is 12.5mm. The main body is a half-cylinder shell. On each flat end of the semi-circle, create a cylindrical hole with a diameter of 1mm to accommodate a screw. These holes ...
eps = 0.001; ro = 30.0/2; ri_correction = 1.0/2; ri = 12.0/2 + ri_correction; wKeyWay_correction = 1.0; hKeyWay_correction = 0.0; wKeyWay = 3.0 + wKeyWay_correction; hKeyWay = 1.7 + hKeyWay_correction; wCamfer = 0.5; rPin = 2.0/2; lPin = 12.0; rDimple = 0.6*(ro-ri)/2; rScrewHole = 2.0/2; rScrewHeadHole = 4.0/2; tS...
glb/cad_799112aa873f.glb
Create a camera mount plate with a thickness of 4mm. The main body is a rectangular plate measuring 94mm by 63.7mm with rounded corners of 15mm radius. At the center of the plate, create a circular hole with a diameter of 18mm. On the left and right sides of the center hole, create two rectangular cutouts, each measu...
eps = 0.01; bigSize = 500.0; tPlate = 4.0; wPlateX = 94.0; wPlateY = 63.7; rPlate = 15.0; rCenterHole = 18.0/2; wInnerPlateX = 21.0; wInnerPlateY = 46.5; rInnerPlate = 1.0; offsetInnerPlateX = 28.5; offsetInnerPlateY = 12.65+wInnerPlateY/2-wPlateY/2; offsetScrewHoleX = 43.0; offsetScrewHoleY1 = -wPlateY/2+20.6; offset...
glb/cad_ff211a676793.glb
Create a flat plate for a robot shoulder called the Inner Shoulder. The main body is a rectangular slab measuring 110mm in length, 70mm in width, and 5mm in thickness, with rounded corners of 20mm on the top and 25mm on the bottom. Center a rectangular access hole in the middle of the plate measuring 40mm by 46mm with...
eps = 0.01; bigSize = 500.0; lBasePlate = 110.0; wBasePlate = 70.0; tBasePlate = 5.0; rBasePlateTop = 20.0; rBasePlateBottom = 25.0; lAccessHole = 40.0; wAccessHole = 46.0; rAccessHole = 10.0; flesh = 2.0; rScrewHole = 3.2/2; rScrewHeadHole = 3.0; tScrewHeadHole = 3.0; screwHoleTopOffsetX = 51.75; screwHoleTopOffse...
glb/cad_d8610564cd0e.glb
Create a chassis side for a SpotMicroESP32 robot. Start with a base plate that is 150mm long, 25mm wide, and 6.5mm thick, with rounded corners of 0.4mm. From this base, remove a central rectangular section to create a recessed area for electronics. This cutout should be 120mm long, 5.5mm wide, and 5mm deep, positione...
eps = 0.01; bigSize = 500.0; lBasePlate = 150.0; wBasePlate = 25.0; tBasePlate = 6.5; rBasePlate = 0.4; lElectronicsPlate = 120.0; tElectronicsPlate = 5.5; dElectronicsPlate = 5.0; rElectronicsPlate = 0.2; offsetElectronicsPlateY = 2.5; lFancy = 100.0; wFancy= 20.0; dFancy = dElectronicsPlate; rFancy = 1.0; lServoC...
glb/cad_5a1c617976a7.glb
Create a mounting plate for a SpotMicroESP32 robot electronics assembly. The main body is composed of two intersecting rectangular prisms: one measuring 107mm by 119mm and another measuring 96mm by 150mm, both with a thickness of 5mm and corner radii of 1.5mm. On the top surface, create four rectangular strap holes fo...
bigSize = 500.0; eps = 0.01; t = 5.0; w = 107.0; l = 150.0; w2 = 96.0; l2 = 119.0; r = 1.5; wBattery = 46.5; lBattery = 96.5; tBattery = 25.0; wBatteryStrap = 14.0; tBatteryStrap = 2.5; hthPCBx = 66.0; hthPCBy = 46.0; hthBuckConverter3Ax = 43.3-2*5.3-3.0; hthBuckConverter3Ay = 21.3-2*1.2-3.0; hthBuckConverter10Ax...
glb/cad_da0d612ee75b.glb
Create a Cryptex Outer Ring consisting of ten identical segments arranged in a circular pattern. Each segment is a 3D block with a width of approximately 12mm and a height of 10mm. For each segment, create a base shape that is a rectangle with a chamfered top edge. Subtract a central circular hole with a diameter of ...
{} { } { {} { txt = [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J"]; } { { } show_list=0; imported_images=[ "0", "1", "2", "3", "12", "5", "6", "11", "8", "9"]; } cha = 1; fon = "arile"; bol = 1; ita = 0; siz = 9; alh = 0; alv = 0; rot = 0; dep = -.8; smo = 40; spc = 1; dir = 0; all_set=[ [cha, txt[0], ...
glb/cad_efef28235ba5.glb
Create a Customizable Loaded Dice. Start by creating a cube with a side length of 20mm. Round the corners and edges by intersecting this cube with a sphere of diameter 27.62mm (approximately 1.381 times the dice size) to create a smooth, rounded die body. Hollow out the center of the die by removing a smaller version ...
{} { show_cutaway = 0; dice_size = 20; wall_thickness = (dice_size/2)*.20; load_size = 0; loaded_number = 6; character = 1; depth = (wall_thickness/2)*.5; { dot_size = dice_size*.2; dot_spaceing = dice_size/4.1; dot_smooth = 30; dice_smooth = 80; } { txt_ch...
glb/cad_79a6ca7c56b0.glb
Create a Customizable Rack designed to hold four round objects. The rack consists of four cylindrical compartments, each with an outer diameter of 51.6mm (47.6mm internal diameter plus 2mm walls) and a total back height of 45mm. The front height of each compartment is 25mm, creating a curved profile that dips between t...
{} { diameter = 47.6; hight_back = 45; hight_front = 25; wall_thicknes = 2; number_or_comsplitments = 4; extend = 0; back_depth = 0; screw_diameter = 3.5; screw_head_diameter = 6.8; screw_head_depth = 2.6; screw_slot...
glb/cad_d7ec827a7bae.glb
Create a Gameboy Advance Cartridge shell consisting of a bottom and top half. For the bottom half, create a base rectangle 57mm wide by 34.4mm deep with a height of 1.4mm. Add a central screw tab with a radius of 3mm and a passthrough hole of 1.1mm radius. Along the interior bottom, add a ridge 49mm wide and 0.2mm hi...
include <BOSL/shapes.scad> $fa = 1; $fs = .2; ff = 0.001; width = 57; depth = 34.4; top(); translate([0, 40, 0]) bottom(); bottom_far_wall_thickness = 1.2; bottom_handle_width = 1.5; bottom_height = 1.4; bottom_side_thickness = 2; bottom_wall_height = 4.3; far_wall_tab_depth = 1; far_wall_tab_width = 1; far_wall_t...
glb/cad_f5bf2c08091a.glb
Create a knife sharpener sanding block by constructing a composite geometric form. Start with a base rectangular block measuring 20mm by 30mm with a height of 10mm. Attached to this base, extend a vertical rectangular column starting from the 15mm mark of the base's width, measuring 5mm wide, 30mm deep, and 100mm tall....
$fn=32; difference(){ union(){ cube([20,30,10]); translate([15,0,5])cube([5,30,100]); translate([20,0,5])cube([1,30,90]); }; translate([-2.5,5,-15])cube([30,20.2,20]); translate([7,15,-1])cylinder(d=5.2,h=30); translate([7,15,23])cylinder(d=9,h=100); translate([0,15,80])...
glb/cad_471164d9fbfc.glb
Create a knife sharpener angle gauge. Start by forming a base structure composed of two 10x5x10mm rectangular blocks positioned 27mm apart along the y-axis, connected by a 5x32x5mm rectangular slab centered between them. On the face of the first block, emboss the number "15" with a height of 1.1mm, positioned at coordi...
module k(){ difference() { cube([5,40,6]); translate([0,-1,6]) rotate([0,-30,0]) translate([0,0,-10]) cube([15,42,10]); }; }; module w(){ union(){ cube([5,32,5]); translate([0,0,0])cube([10,5,10]); translate([0,27,0])cube([10,5,10])...
glb/cad_16c351e94cca.glb