Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Soma Cube puzzle set consisting of seven distinct pieces, each constructed from cubes with a side length of 12mm. Construct the first piece as a 2x2x1 block (two 12mm cubes side-by-side). Create the second piece by joining a 3x1x1 block with a 1x2x1 block attached to one end. Create the third piece by joinin...
size = 12; module v(s) { scale(s)union() { cube([2, 1, 1]); cube([1, 2, 1]); } } module l(s) { scale(s)union() { cube([3, 1, 1]); cube([1, 2, 1]); } } module t(s) { scale(s)union() { cube([3, 1, 1]); translate([1, 0, 0])cube([1, 2, 1]); } } mod...
glb/cad_d0595d42a06b.glb
Create a Soma Cube puzzle set consisting of seven distinct pieces. Each piece is constructed from unit cubes with a side length of 10mm. Create the following seven pieces by joining the unit cubes face-to-face: 1. A V-shaped piece made of 3 cubes in an L-configuration. 2. An L-shaped piece made of 4 cubes in a line wi...
size = 10; eps = 1e-4; pieces = [ [[-1, 1, -1], [ 0, 1, -1], [-1, 0, -1]], [[-1, 1, -1], [ 0, 1, -1], [ 1, 1, -1], [-1, 0, -1]], [[-1, 1, -1], [ 0, 1, -1], [ 1, 1, -1], [ 0, 0, -1]], [[-1, 1, -1], [ 0, 1, -1], [ 1, 0, -1], [ 0, 0, -1]], [[-1, 1, -1], [ 0, 1, -1], [-1, 0, -1], [-1...
glb/cad_c2615f9168a7.glb
Create a refill funnel for an electric mill. Start by constructing a hollow, rotationally symmetric vessel with a wall thickness of 0.8mm. The main body is a truncated cone that flares outward from a base diameter of 26mm to a top rim diameter of 50mm over a vertical height of 10mm. At the bottom center of the funnel...
th=0.8; diahigh=50; htlow=10; dialow=26; axle=4.5; $fa=1; $fs=0.2; module capped(h) { linear_extrude(h, convexity=10) projection() children(); translate([0, 0, h]) children(); } rotate_extrude() { translate([dialow/2 - th, 0]) square([th, htlow]); hull() for(i=[0, diahigh/2 - dialow/2 + th])...
glb/cad_41b92e3bfaf3.glb
Create a Wall Cable Clamp consisting of a main clamp body and a separate blanking plate. For the main body, construct a semi-circular arch with an outer diameter of 22mm and a thickness of 6mm. The arch must have a central cylindrical cutout with a diameter of 10mm to accommodate a cable. The sides of the clamp are f...
$fn=21; module screw_holes() { cylinder(h=40,d=4.5,center=true); translate([0,0,3])cylinder(h=20,d=11.5,center=false); } module donut() { rotate([90,0,0]) rotate_extrude(convexity = 10, $fn = 100) translate([8, 0, 0]) circle(r = 3, $fn = 100); } module arch() { difference() { un...
glb/cad_0b844dd0f1b8.glb
Create a Vape Pen Holder by constructing a solid block with a thickness of 20mm and a base height of 2mm. The overall footprint is a rounded hull that tightly encompasses four vertical cylindrical holes. Position the first hole at the center (0, 0) with a diameter of 14.75mm. Place three additional holes, each with a...
pen_dia = 14.0 + 0.75; cart_dia = 13.1 + 0.75; dist = 4; thickness = 20; bottom = 2; radius = 8; $fn = $preview ? 23 : 100; max_dia = max(pen_dia, cart_dia); min_dia = min(pen_dia, cart_dia); dia_diff = max_dia - min_dia; holes = [ [ pen_dia, 0, 0, 0, 0 ], [ cart_dia, 0, max_dia, -dia_dif...
glb/cad_f4dd9bac0cf3.glb
Create a paint tube holder consisting of a base plate and vertical support walls. The base plate is 4.5mm thick with rounded corners (1mm radius). It features five repeating circular slots, each 20mm in diameter, spaced with a 12mm bridge between them and an 8mm distance from the slot edge to the back of the model. Ev...
slot_diameter = 20; number_of_slots = 5; thickness_plane = 4.5; total_height = 35; bridge_width = 12; back_distance = 8; thickness_holder = 5; holder_ever_n_slots = 4; holder_width = 15; upper_slot_top=30; upper_slot_h=10; lower_slot_h=4.4; lower_slot_d=4.5; slot_w=4.6; module_size_x = slot_diameter + bridge_width...
glb/cad_2289462858b5.glb
Create a rubber foot for a 3D printer by constructing a main cylinder with a diameter of 23mm and a height of 9mm. From the center of this cylinder, remove a stepped internal hole consisting of two coaxial cylindrical voids. First, create a narrow hole with a diameter of 4.6mm that extends from the bottom base upward. ...
$fn=500; difference(){ cylinder(9.7,11.5,9); translate([0,0,0]) #cylinder(10,2.30,2.30); translate([0,0,4.2]) #cylinder(10,3.9,3.9); }
glb/cad_31ee1acad22b.glb
Create a trophy consisting of a "sign of the horns" hand gesture model mounted atop a square plinth. Construct the plinth as a series of three stacked square prisms. The bottom layer is a cube with a side length of 50mm and a height of 3mm. The middle layer is a cube with a side length of 45mm and a height of 6mm, ce...
use <write.scad> m_text="YOUR TEXT HERE"; b_r = 25; step = 2.5; b_height = 3; pt_height = 15; base_shape = false; qual = 100; emboss = false; model_f = "The_Horns_fixed.stl"; m_scale = 1; if (emboss){ union(){ horns(b_shape=base_shape); if(base_shape){ writecylinder(text=m_text,where=[0,0...
glb/cad_16b213f21c69.glb
Create a trophy featuring a hand gesture model known as the "sign of the horns" mounted atop a tiered cylindrical plinth. The plinth is composed of three stacked cylinders centered on the same axis. The bottom cylinder has a radius of 25mm and a height of 3mm. The middle cylinder has a radius of 22.5mm and a height of ...
use <write.scad> m_text="YOUR TEXT HERE"; b_r = 25; step = 2.5; b_height = 3; pt_height = 15; qual = 100; emboss = false; model_f = "The_Horns_fixed.stl"; if (emboss){ union(){ horns(); writecylinder(text=m_text,where=[0,0,0],radius=b_r-(2*step),height=pt_height+(2*step)); } } if (!emboss){ di...
glb/cad_ba05df5c33d6.glb
Create a Fin Jig consisting of a circular base ring and three vertical blade sets. Start by creating a hollow cylinder with an inner diameter of 67.3mm, an outer diameter of 75.3mm, and a height of 10mm. Position three identical blade sets around the ring, spaced equally at 120-degree intervals. Each blade set consis...
$fn=200; innerDiameter = 67.3; ringHeight = 10; offsetFromInnerDiameter = 4; finThickness = 3.6; bladeThickness = 1.3; bladeDepth = 10; noFins = 3; totalHeight = 100; angle = 360 / noFins; ring(); for(i = [0:(noFins-1)]) { rotate([0, 0, i*angle]) { bladeset(); }; } module ring() { ...
glb/cad_948a351bef16.glb
Create a refill funnel for a salt dispenser by generating a revolved solid of revolution. Start with a 2D profile consisting of a square with a side length of approximately 15.91mm. From this square, remove a circular section with a radius of 15.91mm centered at a point 17.91mm from the axis of revolution and 15.91mm a...
$fa=1; $fs=0.2; r = (50-4)/2/(1-1/sqrt(2)); rotate_extrude() difference() { square(r/sqrt(2)); translate([r + 4/2, r/sqrt(2)]) circle(r); } translate([-6, 0, 0]) rotate(-30) rotate_extrude(angle=60) translate([4,0]) square([4, r/sqrt(2)]);
glb/cad_9530fdae96fd.glb
Create an Allen key holder with a height of 20mm. The main body is a solid block with a rounded, hull-like perimeter that maintains a 2mm border around the internal holes. Inside this block, create five vertical cylindrical holes of varying diameters to hold tools. The diameters for these holes, including a 0.11mm wi...
dias=[1.5,2,2.5,3,3.15]; wiggle=0.11; height=20; minRim=2; border=2; style = "cone"; outerDias = [ for (dia = dias) 2/sqrt(3) * (dia+wiggle) ]; Holder(); module HexBore(outerDia) { rotate([0,0,0]) circle(outerDia/2, $fn=100); } module HexBores(outerDias=[], xOffset=0) { remainder = [for (i=[1:1:le...
glb/cad_ca982fd2f7ae.glb
Create an Allen key holder with a height of 20mm. The main body is a solid block with a rounded, hull-like perimeter that follows the line of the internal holes with a 2mm border. Inside this block, create nine vertical cylindrical holes of varying diameters to hold tools. The diameters for these holes, including a 0...
dias=[1.5,2,2.5,3,4,5,6,8,10]; wiggle=0.11; height=20; minRim=2; border=2; style = "cone"; outerDias = [ for (dia = dias) 2/sqrt(3) * (dia+wiggle) ]; Holder(); module HexBore(outerDia) { rotate([0,0,0]) circle(outerDia/2, $fn=100); } module HexBores(outerDias=[], xOffset=0) { remainder = [for (i=[...
glb/cad_84a5bd36256a.glb
Create a fan connector for an exhaust piping system. Start by constructing a square base plate with a side length of 60mm and a thickness of 1.5mm. At each of the four corners of this square, place a cylinder with a radius of 5mm and a height of 1.5mm. Use a hull operation to merge these four corner cylinders into a si...
shift = 25.2; size = 5; translate([0,0,0]) difference(){ union(){ hull(){ translate([shift,shift,0]) cylinder(r=5,h=1.5,$fn=50); translate([shift,-shift,0]) cylinder(r=5,h=1.5,$fn=50); ...
glb/cad_3c84a2be5b8d.glb
Create a Switch Faceplate Blocker consisting of a flat square base and a raised central square ring. Start by creating a square base plate measuring 86mm by 86mm with a thickness of 3mm. Centered on this base, add a raised square frame that is 50mm by 50mm and 8mm tall, but leave the center hollow with a 40mm by 40mm s...
module faceplate() { difference(){ translate([0,0,2.5]) cube([50,50,8], center = true); cube([40,40,40], center = true); } difference() { cube([86,86,3], center = true); cube([40,40,40], center = true); linear_extrude(50, center=true) { translate([30.15,0,0]) circle(2.9, $...
glb/cad_140472d8a62d.glb
Create a parametric glue tip nozzle by constructing a hollow, tapered cone with a total height of 30mm. The outer shell should be a frustum starting with a base radius of 3.167mm (calculated as 4.75 divided by 0.75, then halved) and tapering upward to a top radius of 0.333mm (calculated as 0.5 divided by 0.75, then hal...
module nozzle(nozzle_height, glue_tip_size, extrusion_size) { difference() { cylinder( h=nozzle_height, r1=(glue_tip_size / 0.75) / 2, r2=(extrusion_size / 0.75) / 2, $fn=100 ); translate([0, 0, 0]) cylinder( h=nozzle_height, ...
glb/cad_3f0d45304c72.glb
Create a toothpaste holder by starting with a solid rectangular block that is 122mm long, 68mm wide, and 31mm high. From this block, carve out a central void to create a cradle. This void is formed by a shape that begins as a rectangle 45mm wide and 39mm long at one end, then expands to 60mm wide and 50mm long in the m...
THK = 4; Delta = .1; H = 31; W1 = 45; L1 = 39; W2 = 60; L2 = 50; W3 = 51; L3 = 25; L = L1 + L2 + L3; echo(L); difference() { translate([-L,-W2/2-THK,-THK]) color("blue") cube([L+2*THK,W2+2*THK, H]); rotate([0,15,0]) paste(); } module paste() { hull() { translate([0,-W1/2,0]) ...
glb/cad_c4b4934139f8.glb
Create an end cap for a solar support profile by extruding a specific 2D polygon to a height of 1mm. The polygon is defined by the following vertices in sequence: start at (0,0), move to (38.3,0), then to (38.3,3.9), then to (35.3,1.3), then to (35.3,49.7), then to (11.3,49.7), and finally to (11.3,38.0 + 2.6) before c...
include <BOSL/constants.scad> include <BOSL/beziers.scad> include <Round-Anything/polyround.scad> include <BOSL/transforms.scad> include <BOSL/shapes.scad> use <BOSL/paths.scad> a=[ [0,0], [38.3,0], [38.3,3.9], [38.3-3.0,1.3], [38.3-3.0,49.7], [38.3-3.0-27.0,49.7], [38.3-3.0-27.0,38.0+2*1.3] ]; b=[[0,0], [3,0], [3,3...
glb/cad_cec4104e2ac4.glb
Create a Sawstop Fence Drawer by constructing a main rectangular box with outer dimensions of 65mm width, 350mm length, and 42mm height. The box should have a wall thickness of 2mm. Inside the box, add a vertical divider wall 2mm thick, positioned 40mm from the side wall and running the full length of the drawer. On o...
SIDE = "left"; LENGTH = 350; WIDTH = 65; HEIGHT = 42; FACE_WIDTH = 76; FACE_HEIGHT = 47; FACE_THICKNESS = 3; FACE_RADIUS = 5; WALL_THICKNESS = 2; HUMP_WIDTH = 20; HUMP_HEIGHT = 8; HUMP_DEPTH = 105; VERTICAL_DIVIDERS = [40]; HORIZONTAL_DIVIDERS = []; DIVIDER_HEIGHT = 10; FINGER_HOLE_RADIUS = 10; $fn = 100; modul...
glb/cad_0815d82a6f2b.glb
Create a replacement handle for a portable workbench consisting of a tapered grip and a mounting shaft. Start by creating a tapered cylinder for the grip that is 50mm long, with a base diameter of 25.75mm and a top diameter of 15.25mm. The bottom 3mm of this grip should feature a slight chamfer where the diameter trans...
$fn = 64; Handle_D1 = 25.75; Handle_D2 = 15.25; Handle_Chamfer_Length = 3; Handle_Thickness = 3; Handle_Length = 50; Shaft_Length = 13; Shaft_D = 11.5; Pin_Length = 3; Pin_D1 = 14.75; Pin_D2 = 12.75; Pin_Split_Width = 4; Pin_Split_Height = 13; function get_cylinder_taper_angle( r1, r2, h ) = atan( abs(r1 ...
glb/cad_07ce721f05e6.glb
Create an inverted bottle holder designed for a bottle with a diameter of 62mm. The structure consists of two parallel rings connected by four vertical uprights. Start with a bottom ring that has an outer diameter of 74.4mm and a height of 4.65mm. This ring should have a central circular cutout with a diameter of 62mm...
$fn=120; bottleNarrowDimension=62; bottleWideDimension=62; basedrainslotHeight=1.2; bottleDiameter=bottleNarrowDimension; topringHeight=bottleNarrowDimension*0.075; topringWidth=bottleNarrowDimension*0.2; baseDiameter=bottleDiameter+topringWidth*2; baseHeight=bottleNarrowDimension*0.1; baseuprighttaperDiameter=bas...
glb/cad_befff558213e.glb
Create a resin printer fume extraction bolt-through magnetic coupler. The main body is a circular flange with an outer diameter of 100mm and a total height of 7.5mm. The center features a large circular cutout with a diameter of 56mm. The flange has a tiered profile: the bottom section is a cylinder 77mm in diameter a...
use <flange.scad> $fa=1; $fs=0.4; translate([90,0,0]) { top(); } bottom(); module top() { intersection() { cylinder(d=100,h=20); assembly(); } } module bottom() { translate([0,0,-2]) { rotate([0,180,0]) { intersection() { translate([0,0,-6]) { ...
glb/cad_4003f4d78139.glb
Create a resin printer fume extraction magnetic coupler. Start with a main cylindrical flange that has a diameter of 82.2mm and a height of 8mm. Cut a central circular hole through the entire height with a diameter of 56.2mm. Add structural teeth to the flange: create three outer teeth by forming a ring between 76.95...
$fa=1; $fs=0.4; flange(); module flange() { difference() { union() { cylinder(d=82.2,h=8.01); intersection() { teeth(0); difference() { cylinder(d=82.2,h=8+5); cylinder(d=76.95,h=8+5.1); } ...
glb/cad_6dc7bb970c1e.glb
Create a 120mm airbrush booth magnetic coupler. Start by constructing a square flange base measuring 120mm by 120mm with a thickness of 3mm. In the center of this base, create a circular opening with a diameter of 115mm and a depth of 2.2mm. At each of the four corners of the square flange, add a cylindrical mounting h...
use <flange.scad> $fa=1; $fs=0.4; airbrush_booth_120mm_angle_adapter(); module airbrush_booth_120mm_angle_adapter() { difference() { union() { shape(); translate([0,0,60]) { rotate([-90,0,0]) { fan_flange(120,2.5,3); } ...
glb/cad_0be42c06ea53.glb
Create a magnetic coupler for a fume extraction system. Start with a main body consisting of a circular flange that transitions from a base diameter of 81.75mm to 82.2mm over a height of 1mm, integrated with a larger structural base. The overall assembly should feature a central hollow core with a diameter of 56.2mm at...
$fa=1; $fs=0.4; use <flange.scad> use <lockring.scad> assembly(); module assembly() { difference() { union() { flange(); hull() { translate([0,0,-1]) { cylinder(d1=81.75,d2=82.2,h=1.01); } fan_flange(); ...
glb/cad_5245377c8056.glb
Create a through-wall flange for a 2.5-inch fume extraction hose. The main body is a hollow cylinder with an outer diameter of 63.5mm and an inner bore of 57.5mm, extending to a total height of 50.8mm. To create the flange, add a central ring and two end caps. Position a ring with an outer diameter of 69.25mm and a hei...
$fa=1; $fs=0.4; inch = 25.4; wall_flange(); module wall_flange() { flange_tube(inch*2); } module flange_tube(ht=inch) { difference() { union() { translate([0,0,ht/2-3.75]) { cylinder(d1=2.5*inch,d2=2.5*inch+5,h=2.5); } translate([0,0,ht/2-1.25]) { ...
glb/cad_274cf51d910d.glb
Create a wye coupler for a 2.5-inch fume extraction hose. Start by constructing a main vertical cylinder with an outer diameter of 63.5mm and a height of 146.05mm. Add a second cylinder with the same 63.5mm outer diameter and a length of 107.95mm, positioned so its center is 38.1mm above the base of the first cylinder ...
$fa=1; $fs=0.4; inch = 25.4; wye_coupler(); module wye_coupler() { difference() { union() { cylinder(d=2.5*inch, h=5.75*inch); translate([0,0,1.5*inch]) { rotate([45,0,0]) { cylinder(d=2.5*inch, h=4.25*inch); } } ...
glb/cad_c63c4a315ccb.glb
Create a through-wall flange coupler for a 2.5-inch hose. Start by constructing a main hollow cylinder with an outer diameter of 63.5mm and a height of 38.1mm. This cylinder must have a centered inner bore with a diameter of 57.5mm. At the base of the main cylinder, add a wider, flat circular disk with a thickness of...
$fa=1; $fs=0.4; inch = 25.4; wall_flange(); module wall_flange() { flange_tube(inch+15,15); } module flange_tube(ht=inch,fl=0) { difference() { union() { cylinder(d=2.5*inch, h=ht); cylinder(d=2.5*inch+fl*2, h=3); } translate([0,0,-0.1]) { cylinder...
glb/cad_035debbf6dff.glb
Create a zip-tie saddle mount for a 2.5-inch diameter hose. Start by constructing a base block using a hull of four cylinders, each with a 3mm radius, positioned at the corners of a 24mm by 14mm rectangle and extending 15mm in height. Carve a semi-circular cutout from the top of this block to accommodate the hose, us...
$fa=1; $fs=0.4; inch=25.4; rotate([90,0,0]) { zip_tie_saddle(); } module zip_tie_saddle() { difference() { translate([-15,0,0]) { rad=3; hull() { for (x=[rad,30-rad]) { for (y=[rad,20-rad]) { translate([x,y,0]) { ...
glb/cad_26777808f118.glb
Create a magnetic adapter cap for a fume extraction hose. The object is a shallow, circular disc composed of two concentric cylindrical sections. First, create a base cylinder with a diameter of 82.2mm and a height of 1mm. On top of this base, add a second, slightly smaller cylinder with a diameter of 80.2mm and a heig...
$fa=1; $fs=0.4; use <flange.scad> cap(); module cap() { translate([0,0,1]) { flange(); } cylinder(d1=82.2-2,d2=82.2,h=1); cylinder(d=82.2-2,h=3); }
glb/cad_b6d8d989061b.glb
Create a magnetic coupler for a 2.5-inch fume extraction hose. Start by creating a main cylinder with a diameter of 63.5mm and a height of 25mm. On top of this cylinder, add a conical section that transitions from a diameter of 63.5mm at the base to a diameter of 82.2mm at the top over a height of 18mm. Cap this conica...
$fa=1; $fs=0.4; use <flange.scad> inch=25.4; magnetic_coupler(2.5*inch,3); module magnetic_coupler(diam,wt=3) { translate([0,0,45]) { flange(); } difference() { union() { cylinder(d=diam, h=25); translate([0,0,25]) { cylinder(d1=diam,d2=82.2,h=18);...
glb/cad_4babb39d4d0c.glb
Create a customizable award medal. Start with a main circular base that has a diameter of 69mm (a 65mm inner radius plus a 2mm outer edge) and a total height of 3mm. On the top surface of the base, create a raised outer ring by removing a 65mm diameter cylinder from the center, leaving only the 2mm wide outer rim at ...
place=1; text_font="Ariel"; text_line_1="Line One"; text_line_2="Line Two"; text_line_3="Line Three"; font_size=8; text_spacing=10; center_offset=2; module __Customizer_Limit__ () {} production = 1; pnghq = 0; $fn = (production && !$preview) ? 100 : (pnghq ? 100 : 50); if (production && !$preview) { echo(...
glb/cad_fc9cbb3b0868.glb
Create a light wiring clamp with overall dimensions of 30.5mm in length, 11mm in width, and 7mm in height. Start with a solid rectangular block of these dimensions. On the attachment side, create a vertical cutout that is 8mm high and 8mm wide, extending from the bottom edge. This cutout should be 6.5mm long, but its...
length = 30.5; width = 11.0; height = 7.0; hole = 3.0 + 0.2; wall = 1.5; attachPartLen = 6.5; holeLoffset = 4.0; holeWoffset = 6.0; attachSideRoundingRad = 1.0; wireSideDeepLen = 14.0; difference() { cube([length, width, height]); translate([holeLoffset, holeWoffset, -0.01]) cylinder(d = hole, h = wall - 0.2...
glb/cad_7522348e0b89.glb
Create a pump fitting adapter consisting of two stacked cylindrical sections. The base is a cylinder with a diameter of 40mm and a height of 20mm. Centered on top of this base, add a second cylinder with a diameter of 30mm and a height of 16mm. Carve a central hole through the entire vertical axis of the object. This...
use <../../threads.scad> $fn=100; id=31.0; difference() { union() { cylinder(20,d=40); translate([0,0,20]) { cylinder(16,d=30); metric_thread(diameter=33.249,pitch=2.309,length=14, leadin=1); } } union() { translate([0,0,1]) { metric_thread(diameter=id,pitch=1.814,length=12.7, internal=true,lead...
glb/cad_e1314d60b0ab.glb
Create a rackmount faceplate for an Orange Pi R1. Start with a central rectangular plate measuring 55mm wide, 57mm deep, and 2mm thick, centered on the origin. Superimpose a 40mm by 40mm by 3mm rectangular block on top of this plate. On the front edge of the plate, centered horizontally, create three circular cut-thr...
$fn=100; difference() { union () { translate([0,0,-3.5]) difference() { translate([0,-4,0]) cube([55,57,2],center=true); cube([40,40,3],center=true); translate([0,-26.5,0]) cylinder(d=8,h=10,center=true); translate([-10,-26.5,0]) cylinder(d=8,h=10,center=true); translate([10,-2...
glb/cad_ace52b3b40aa.glb
Create a rackmount faceplate for an Orange Pi R1. Start with a rectangular base measuring 44mm wide, 88mm high, and 3mm thick. Center a rectangular cutout in the middle of the plate to allow for an Ethernet port; this opening should be 14mm wide and 33mm high. Add four circular holes to the plate for mounting and a...
$fn=50; ep = 3; bw = 45; ethh = 14; ethw = 16; difference(){ cube([44,88,ep]); translate([22,5.5,-0.5]) cylinder(ep+1,d=5); translate([22,88-5.5,-0.5]) cylinder(ep+1,d=5); translate([22-15/2,44-33/2,-0.5]) union(){ cube([ethh,ethw,ep+1]); translate([0,ethw+1,0]) cube([ethh,ethw,ep+1]); } transla...
glb/cad_6689ea1a37bb.glb
Create a rackmount face-plate for an Orange Pi Zero. Start with a rectangular base measuring 44mm wide, 88mm high, and 3mm thick. Center a rectangular cutout in the middle of the plate that is 13mm wide and 16.5mm high. Directly above this cutout, create a second rectangular opening that is 13.5mm wide and 6mm high, ...
$fn=50; ep = 3; difference(){ cube([44,88,ep]); translate([22,5.5,-0.5]) cylinder(ep+1,d=5); translate([22,88-5.5,-0.5]) cylinder(ep+1,d=5); translate([22-15/2,44-26/2,-0.5]) union(){ cube([13,16.5,ep+1]); translate([-1,19,0]) cube([13.5,6,ep+1]); } translate([22+13-15/2+5,(88-55)/2-2.5,-0.5]) c...
glb/cad_e1d41de7b338.glb
Create a rackmount face-plate for an Orange Pi Zero. Start with a rectangular frame centered on the origin, measuring 55mm wide, 50mm deep, and 2mm thick. Remove a central rectangular section measuring 40mm by 40mm to create a hollow border. At each of the four corners of the frame, add a cylindrical pillar with a dia...
$fn=100; difference() { union () { translate([0,0,-3.5]) difference() { cube([55,50,2],center=true); cube([40,40,3],center=true); } translate([-20,-22,-1]) cylinder(d=5,h=7,center=true); translate([20,-22,-1]) cylinder(d=5,h=7,center=true); translate([-20,20,-1]) cylinder(d=5,h=7,cente...
glb/cad_f02ca7c935af.glb
Create a square bracket for a motor control board by combining two rectangular sections. First, create a base rectangular plate measuring 80mm in length, 15mm in width, and 5mm in height. Center this plate and drill two cylindrical holes, each 5mm in diameter and 10mm deep, positioned 60mm apart along the length, cente...
$fn=100; union() { difference() { cube([80,15,5],center=true); translate([-30,-2.5,-5]) cylinder(10,d=5); translate([30,-2.5,-5]) cylinder(10,d=5); } translate([0, 5,5]) { difference() { cube([80,5,15],center=true); tra...
glb/cad_22a60e02a651.glb
Create a dust shoe mounting plate with a rectangular footprint of 80mm by 170mm and a thickness of 10mm. At the front end, center a large circular cutout with a diameter of 80mm and a depth of 12mm. Within this circular area, remove a series of smaller holes: create a central vertical row of holes with a diameter of ...
larg=80; $fn=100; intersection() { difference(){ cube([larg,170,10], center=false); translate([larg/2,40,-1]) union() { cylinder(12, d=43); for (i=[-30:60:30]) { for (j=[-10:20:10]) { translate([j,i, 0]) cylinder(12, ...
glb/cad_0eee1d4effef.glb
Create a dust shoe for a milling motor. Start with a rectangular base block measuring 80mm wide, 170mm long, and 10mm thick. At the front end, centered 40mm from the bottom edge, remove a cylindrical section with a diameter of 80mm and a height of 12mm. Within this cylindrical void, remove a series of smaller vertica...
larg=80; $fn=100; intersection() { difference(){ cube([larg,170,10], center=false); translate([larg/2,40,-1]) union() { cylinder(12, d=43); for (i=[-30:60:30]) { for (j=[-10:20:10]) { translate([j,i, 0]) ...
glb/cad_3534202bd42f.glb
Create a vice jaw for holding PCBs by constructing two mirrored halves. For one half, start with a solid rectangular block measuring 34mm in width, 12mm in depth, and 13mm in height. From this block, remove a central rectangular section measuring 33mm by 7mm by 13mm, leaving a wall thickness of 3mm on the bottom and 1m...
e="mc²"; $fn=13; qo=0.001; jaw_x=66; jaw_z=13; jaw_y=7; magnet_x=3; magnet_y=5; magnet_z=10; frame=1; wall=3; pcb_thickness=2; module pcb_slot(){ cube([pcb_thickness,pcb_thickness,jaw_x*2],center=true); }; module halfjaw(){ difference(){ cube([jaw_x/2+magnet_x+frame,wall+jaw_y,frame+jaw_z]); ...
glb/cad_3fa7798cc575.glb
Create a wallet card holder by starting with a solid rectangular block measuring 58mm in width, 92mm in length, and 9mm in height. Hollow out the center of this block by removing a rectangular volume of 55mm by 86mm with a depth of 6mm, leaving a wall thickness of 1.5mm on all sides. To create the thumb slide access, ...
e="mc²"; $fn=34; qo=0.001; card_x=55; card_y=86; card_z=6; frame=1.5; difference(){ cube([frame+card_x+frame,frame+card_y,frame+card_z+frame]); translate([frame,frame,frame]) cube([card_x,card_y+qo,card_z]); translate([(frame+card_x+frame)/2,-20,-qo])cylinder(h=frame+card_z+frame+qo+qo,r=25); transl...
glb/cad_b444418cad74.glb
Create a flexible door handle bumper with a total height of 10.2mm. The main body is a solid block formed by the convex hull of a central rectangular region and four surrounding circular regions. The central region is a rectangle measuring 17.5mm by 24.5mm (10.5mm width plus 3.5mm wall thickness on each side, and 17....
$fn = 50; shape_amount = 4; center_shape = 1; dCx = 10.5; dCy = 17.5; center_thickness = 3.5; outer_shape = 0; dOx = 12.5; dOy = 12.5; outer_thickness = 3.5; height = 10.2; distance = 3.5; module outer_center(){ resize([dCx + center_thickness * 2, dCy + center_thickness * 2, height]) { if (c...
glb/cad_6691d8f7595a.glb
Create a Customizable Temperature Tower consisting of a base and several stacked stories. Start with a rectangular base 2mm thick that extends 4mm beyond the tower's footprint on all sides. Build 7 stories, each 10mm high. For each story, create two support blocks: a left block and a right block, both 12mm wide. The l...
do_you_understand = 0; tower_stories = 7; tower_first_story_temperature = 190; tower_per_story_temperature_change = 5; tower_story_height = 10; bridge_count = 2; bridge_thickness = 1; bridge_unsupported_length = 30; bridge_width = 4.0; bridge_left_support_overhang_angle = 45; bridge_right_support_overhang_ang...
glb/cad_4125cda2d893.glb
Create a Truncated Octahedron Sphere with a radius of 38.2mm. The surface of the sphere is covered in a repeating pattern of truncated octahedrons that function as gear teeth. Distribute 24 patterns around the equator of the sphere. The geometry of these patterns should follow an octahedral wave, meaning the teeth ar...
type="flat"; lego_dist = 1.6; stud_distance = 7.986; delta = 0.001; xw=0.2; patterns_per_circle = 24; ballRad = (type == "lego") ? (stud_distance * 2.5 - xw) : 38.2; ballDia = ballRad * 2; clipHeight = 19; clipTop = false; highTop = true; heightMul = 1; function flatten(l) = [ for (a = l) for (b = a) b ]; func...
glb/cad_28efca4ad1ad.glb
Create a shelving unit with a total depth of 39mm. The overall outer dimensions should be 117mm wide by 143mm high. The structure is defined by an outer frame with a wall thickness of 4.5mm on all sides. Inside this frame, create a grid of 12 rectangular storage compartments arranged in 4 rows and 3 columns. Each indiv...
rows = 4; columns = 3; a = 33; depth = 39; wall_outer = 4.5; wall_inner = 2; difference(){ cube([depth,columns*a+2*wall_outer+(columns-1)*wall_inner, rows*a+2*wall_outer+(rows-1)*wall_inner],false); union() { for (y = [a/2+wall_outer:a+wall_inner:rows*a+(rows-1)*wall_inner+wall_outer]){ ...
glb/cad_0edf2593544d.glb
Create an RC Airplane Rear Air Duct consisting of two mirrored parts: a base duct and a cover. First, construct the base duct. Create a rectangular box 59mm long, 39mm wide, and 20mm deep. Hollow out the center to create a sleeve with a wall thickness of 2mm. Attach this sleeve to a flat rectangular baseplate measuri...
part = "both"; ductWidth = 39; ductLength = 59; ductDepth = 20; wallThickness = 2; plateWidth = 47; plateLength = 99; basePlateThickness = 3; outletAngleDegrees = 30; outletWallThickness = 1; holeDiameter = 4; xHoleOffset = 10; yHoleOffset = 14; module mountingHoles(depth){ x = plateLength - (2 * xHoleOffs...
glb/cad_7e15e5e0c78a.glb
Create a wrist rest pad for a Keychron Q8 keyboard. The main body is a rectangular slab with a width of 200mm, a height of 93mm, and rounded corners with a 5mm radius. The slab is wedge-shaped, sloping from a front elevation of 10mm to a back elevation of 18mm. The top surface of the slab features a recessed hexagonal...
slab_front = 10; slab_back = 18; slab_width = 200; slab_height = 93; slab_roundness = 5; grid_size = 8; grid_width = 1.5; border_width = 5; ergodox_type = "left"; ergodox_thumb_offset = 40; fudge = 0.001; angle = -6.987; module hexgrid(lines=5, rows=10, height=15, hexsize=5, width=2) { for (i = [0:lines...
glb/cad_3cac43d76858.glb
Create a Keychron Q8 wrist rest pad with a rectangular footprint of 159mm width and 90mm height. The pad should have a wedge-shaped profile, sloping from a front elevation of 10mm to a back elevation of 18mm. All four outer corners must be rounded with a 5mm radius. The interior of the pad features a hexagonal grid pa...
slab_front = 10; slab_back = 18; slab_width = 159; slab_height = 90; slab_roundness = 5; grid_size = 8; grid_width = 1.5; border_width = 5; ergodox_type = "left"; ergodox_thumb_offset = 25; fudge = 0.001; angle = -6.987; module hexgrid(lines=5, rows=10, height=15, hexsize=5, width=2) { for (i = [0:lines...
glb/cad_89cad3ef6561.glb
Create a connector for a Keychron Q8 wrist rest. Start by creating a rectangular base plate that is 38mm wide, 23.5mm high, and 2mm thick. At each end of this plate, center a hexagonal pillar. Each pillar consists of two parts: a main hexagonal body with a radius of 7.8mm and a height of 6mm, and a shorter hexagonal ba...
grid_size = 7.8; tap_height = 2; height=6; module food_body(r, tab_height, h) { cylinder(r=r, h=h, $fn=6); cylinder(r=r+4, h=tap_height, $fn=6); } module food() { difference(){ food_body(r=grid_size, h=height, tap_height=2); #translate([0,0,0])cylinder(r=grid_size-2, h=height, $fn=6); ...
glb/cad_c17e7dc5d8f3.glb
Create a Small Parts (Capacitors) Box consisting of a base, a lid, and a front plate. For the base, create a rectangular container with an overall footprint of 118mm by 162mm and a height of 22mm. Divide the interior into a grid of 14 rectangular slots, each 55mm long, 20mm wide, and 20mm deep. Add two cylindrical hi...
$fn = 150; slotLen = 55; slotWidth = 20; slotDepth = 20; boxBase(); module boxFront(ltext) { difference() { cube([slotLen*2+2, slotDepth + 2, 4]); translate([0, 0, 2]) cube([6.25, slotDepth+2, 2]); translate([slotLen*2+2-6-0.25, 0, 2]) cube([6.25, slotDepth+2, 2]); translate([0, 0...
glb/cad_4030c5d972cb.glb
Create an Amateur Radio NFed Antenna box. Start with a main rectangular body measuring 70mm x 50mm x 24mm. Hollow out the center of this body with a cutout of 66mm x 46mm x 26mm, leaving a wall thickness of 2mm. On the top surface, add four cylindrical mounting posts with a diameter of 10mm and a height of 18mm, posit...
$fn = 150; box(); module wrench2(whole, text) { wthick = 2; wtotal = whole+wthick*2; wlen = 60; difference() { union() { translate([wtotal/2, wtotal/2, 0]) cylinder(h=7, d=wtotal); translate([wtotal/2, 0, 0]) cube([wlen, wtotal, 3]); translate([wtotal/2+wlen...
glb/cad_6763bd968450.glb
Create a Frosthaven AoE Overlay consisting of a cluster of connected hexagonal rings. Each hexagonal ring has an outer diameter based on a radius of 16.4375mm (half of 32.875mm) and a wall thickness of 2mm. The overall structure is 3mm thick. The layout follows a specific grid mapping. Create a central hexagonal ring....
mapping = [ [1, 0, 0, 0], [1, 0, 0, 0], [0, 2, 1, 1], [1, 0, 0, 0], [1, 0, 0, 0] ]; horizontal = true; function ri2rc(ri) = ri / cos(30); hexSize = 32.875; longHexSize = ri2rc(hexSize); longScale = longHexSize*3/4; shortScale = hexSize; wallThickness = 3; wallWidth = 2; adjHex...
glb/cad_9f256ed875dd.glb
Create an Elfa Compatible Spool Holder consisting of a mounting bracket and a cylindrical spool support. First, create the mounting bracket as a flat rectangular base measuring 46mm wide, 3mm thick, and 12mm deep. At each end of this base, attach a vertical hook assembly. Each hook assembly consists of a rounded rect...
$fn = 100; 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] - radius; diameter = radius * 2; mod...
glb/cad_4e308823028a.glb
Create an Elfa Shelf Hook by constructing a 3D profile extruded to a thickness of 2mm and then mirrored across its central axis to create a symmetrical part. The base of the profile is a rectangular bar 47mm long, 3mm wide, and 12mm deep. At one end of this bar, extend the geometry outward to form a hook. This hook sec...
$fn = 100; module hook() { square([11, 2.9]); cirlceR = 4.9; translate([cirlceR, cirlceR + 9 - cirlceR, 0]) circle(cirlceR); translate([11 - 6, 2.9, 0]) square([6, 11]); square(9, 5); translate([9, 10-5.1]) minkowski() { square([5, 8]); circle(1); } translate([16+11.8, 0, 0]) minkowski() {...
glb/cad_4d613018969c.glb
Create an Adjustable Beamer Mount consisting of a rectangular platform and a supporting bed mount. Start with a base platform measuring 150mm wide, 103mm deep, and 5mm thick. On top of this platform, construct a shallow open box by adding walls that are 5mm high and 3mm thick on the left, front, and back sides, leaving...
beamer_width=142; beamer_depth=97; beamer_heigth=57; wall_thickness=3; wall_heigth=5; box_width=beamer_width + (wall_thickness * 2); box_depth=beamer_depth + (wall_thickness * 2); box_third = box_width / 3; platform_thickness = 5; bed_wood_thickness = 41; bed_holder_thickness = 4; bed_holder_back_heigth = 40; bed_...
glb/cad_bbcc6156ecd1.glb
Create a set of 16 small cubes and a matching carry box. Each cube must be exactly 25.4mm on all sides. For the carry box, create a rectangular container with an outer dimension of 50.8mm in width, 101.6mm in length, and 25.4mm in height. The walls and base of the box should be 1mm thick. The interior should be a holl...
s=25.4; edge = 1; X = [2,4,2]; t=0.5; edge_extra=0; mode = "inside"; th = 1; fz=0.001; $fn=50; extras = mode == "inside" ? 0 : th + t; filler = mode == "inside" ? 1.5 : 2.5; module inside(extra=0) { hull() { for(i=[edge,s*X[0]-edge]) { for(j=[edge,s*X[1]-edge]){ translate([i...
glb/cad_7230750f2573.glb
Create a set of developmental blocks and a matching carry box. First, create a cube with a side length of 25.4mm. Modify the cube by rounding the edges and corners. On each of the six faces, center a recessed square area. Within these recesses, emboss characters (letters, numbers, or symbols) to a depth of 1.5mm. Ne...
draw_cube = 1; draw_letters = 0; N_cubes=1; characters=rep(46,6*3); eps=0.01; size=25.4; cex=1.2; expand=1.35; letter_depth=1.5; tol = 0.1; gap=3; letterset = ["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","1","2","3","4","5","6","7","8","9"]; fontset = rep("...
glb/cad_e8e98fb84f02.glb
Create a nozzle concentrator for a hair blower. Start with a base cylinder 60mm in diameter and 20mm in height. From the top face of this cylinder, extend the shape upwards to a total height of 120mm by creating a hull that connects the 60mm circular top to two small 10mm diameter circles positioned 45mm away from the ...
$fa=1; $fs=0.5; difference() { union() { cylinder(d=60,h=20); hull() { translate([0,0,20]) { cylinder(d=60,h=1); } for (s=[-1,1]) { translate([s*45,0,100]) { cylinder(d=10,h=0.01); } ...
glb/cad_62c81060a7e3.glb
Create a nail polish crate by starting with a solid rectangular block measuring 115mm in length, 78mm in width, and 83.4mm in height. Hollow out the center of this block by removing a smaller rectangular volume from the top and sides, leaving a shell thickness of 3.4mm for the walls and floor. Inside this shell, carv...
md = 36; d = 36; h = 80; s = 2; w = s+1; b = 3.4; cols = 3; module foo(){} rows = 2; module potjes() { translate([0,-(md-d)/2,0]) for (c = [0:cols-1]) { translate([c*(md+s),0,0]) cylinder(h, d/2, d/2); } translate([0,(md-d)/2,0]) for (c = [0:cols-1]) { translate([...
glb/cad_f58d8ea71a3d.glb
Create a Delta 28-190 Band Saw Plug by starting with a primary cylindrical base 60.25mm in diameter and 2.5mm thick. Centered on the bottom of this base, add a second, smaller cylinder with a diameter of 49.5mm and a height of 1mm, extending downwards. From this combined solid, remove a tapered void that begins 8.625...
poly_base_width = 10; poly_top_width = 3; poly_back = -9; poly_front = 31; cutout_points =[[poly_back,poly_base_width/2,-1], [poly_back,-poly_base_width/2,-1], [poly_front,-poly_base_width/2,-1], [poly_front,poly_base_width/2,-1], [poly_back, poly_top_width/2, 2.5], [p...
glb/cad_7b81ea18977e.glb
Create a generic electronics project box with a main body and a separate lid. The main body is a rectangular enclosure with outer dimensions of 150mm width, 80mm depth, and 45mm height. The walls and the bottom floor are each 1.2mm thick. The bottom floor is elevated 2mm from the base of the side walls to create a moun...
width = 150; depth = 80; height = 45; walls = 1.2; lid = 2; lid_vents = 0.4; vent_lid_hole_radius = 1.5; lid_vents_marg = 5; lid_vents_number = 20; bottom = 2; bottomspace = 2; fns=10; vent_fns=10; vent_lid_hole_space = (100-lid_vents_marg*2-vent_lid_hole_radius*2)/(lid_vents_number-1); translate ([0,0,bottomspace]) ...
glb/cad_f6e71e92faa6.glb
Create a magnetic insert for a board game nesting box. Start with a rounded rectangular block measuring 47.3mm in width, 84.9mm in length, and 19mm in height. Hollow out the center of the block to create a container, leaving a wall thickness of 4mm around the sides. At the top center of the long edge, create a semi-ci...
$fn=100; overallWidth=47.3; overallLen = 84.9; overallHeight = 19; magnet_dia = 6; magnet_height = 3; printer_kerf = 0.1; wallThickness = magnet_height + 1; difference(){ roundedCube(overallWidth,overallLen,overallHeight); r=4; x=overallWidth - (wallThickness*2); y=overallLen-(wallThickness*2); ...
glb/cad_0b86406e529d.glb
Create a rectangular plate for a Wingspan nesting box insert with overall dimensions of 184.2mm in width, 130mm in length, and a height of 6.31mm. The four vertical corners of the plate must be rounded with a 5mm radius. On the top surface, center the text "W I N G S P A N" using a condensed font at a size of 15mm. D...
$fn=100; magnet_dia = 6; magnet_height = 3; printer_kerf = 0.06; magnet_radius = magnet_dia / 2; magnet_placement_offset = 4.5; overallWidth = 184.2; overallLen = 130; overallHeight = magnet_height + printer_kerf + 2.25; difference(){ roundedCube(overallWidth, overallLen, overallHeight); translate([over...
glb/cad_b087ce80cba2.glb
Create a parametric drink coaster by starting with a solid cylinder that has a diameter of 80mm and a total height of 6mm. From the top of this cylinder, remove a concentric cylindrical core with a diameter of 76mm and a height of 4mm, leaving a base thickness of 2mm and a rim thickness of 2mm. To finish the top edge o...
outerDiameter = 80; bottomTickness = 2; flangeHeight = 4; flangeTickness = 2; $fn=90; module fillet() { rotate_extrude(convexity = 10, $fn = 180) translate([outerDiameter / 2 - flangeTickness / 2, 0, 0]) circle(r = flangeTickness / 2, $fn = 100); } translate([outerDiameter / 2, outerDiameter / 2, 0]) ...
glb/cad_41ccbb332c7d.glb
Create a parametric bottle rack by starting with a solid rectangular base. The base should have a total width of 176mm and a total height of 144.64mm, with a thickness of 31mm. Within this base, carve out a grid of 16 cylindrical holes, each with a radius of 21.5mm and a depth of 30mm, leaving a 1mm thick floor at th...
bottleDiameter = 43; bottleHoldingAreaHeight = 30; distanceBetweenBottleHoldingAreas = 1; baseTickness = 1; bottleNumberX = 4; bottleNumberY = 4; $fn=90; bottleRadius = bottleDiameter / 2; xOffset = bottleDiameter + distanceBetweenBottleHoldingAreas; yOffset = xOffset * sin(60); totalWidth = xOffset * bottleNumberX;...
glb/cad_0a334fc33bdb.glb
Create a Ceiling Mount Thing for hanging a camera. Start with a baseplate that is a 12-sided polygon with a maximum diameter of 42mm and a thickness of 5mm. At the center, create a vertical hole for a countersink screw. This hole consists of a 6mm diameter shaft that opens into a 10mm diameter conical head with a hei...
$fa=5; $fs=0.4; eps = 0.05; b = 1.0; b0 = b; dmax = 42; rmax = dmax/2; t0 = 5; tsidewall = 2; dscrewhead = 10; rscrewhead = dscrewhead/2; dscrewhole = 6; rscrewhole = dscrewhole/2; hscrewhead = 3; drope = 3; dropehole = drope + 2; echo(dropehole=dropehole); rropehole = dropehole/2; dcenterspace = dropehole+0; dcent...
glb/cad_f0ca6aaec714.glb
Create a 3D model of a Penrose Landscape, designed as a decorative box with a fractal surface. The overall shape is a pie-slice sector of a circle. The top surface is a 3D visualization of a Penrose tiling. Construct this by recursively subdividing the surface into Robinson triangles. For each triangle, the height (Z-...
eps = 0.05; z0 = eps; thickness = 4; scaleup = 80; phi = (1+sqrt(5))/2; a = 36; b = 108; p0 = [0,0,z0]; p1 = [scaleup*cos( 0),scaleup*sin( 0),z0]; p2 = [scaleup*cos(-a),scaleup*sin(-a),z0]; p3 = [scaleup*cos(-b),scaleup*sin(-b),z0]; kitedartfact = 1/phi; triangle0 = [0,p0,p1,p2,0]; triangle1 = [1,p0,p1,p3,0]; rf = 0...
glb/cad_e0048de0d2fb.glb
Create a Penrose Landscape model by generating a fractal surface based on Robinson triangle subdivision. Start with a base triangle and recursively subdivide it into smaller triangles using the golden ratio ($\phi \approx 1.618$) to determine new vertex positions. For each iteration of the subdivision, assign a heigh...
eps = 0.05; z0 = eps; thickness = 4; scaleup = 80; phi = (1+sqrt(5))/2; a = 36; b = 108; p0 = [0,0,z0]; p1 = [scaleup*cos( 0),scaleup*sin( 0),z0]; p2 = [scaleup*cos(-a),scaleup*sin(-a),z0]; p3 = [scaleup*cos(-b),scaleup*sin(-b),z0]; module cutterpie(t=2,h=10,basetile="slim") { p0_2D = [p0[0],p0[1]]; p1_2D = [p1[0...
glb/cad_1efdaaad7cda.glb
Create an Octet Truss Node by assembling rhombic dodecahedrons into a cuboctahedral arrangement. Each rhombic dodecahedron is defined by the intersection of three cubes of side length $2s$ (where $s=10\text{mm}$), each rotated 45 degrees on a different primary axis. Construct the node by placing these rhombic dodecahe...
l = 3.0; n = 6; rotate(-45,[1,0,0]) octruss_node_cuboct(); module edge_environ() { rotate(-45,[1,0,0]) { octruss_node_cuboct(); translate([0,(n-1)*l,(n-1)*l]) octruss_node_cuboct(); } } module octruss_node_cuboct() { rd_rod([0,+1,+1]);rd_rod([0,+1,-1]);rd_rod([0,-1,+1]);rd_rod([0,-1,-1]); rd_rod(...
glb/cad_b140de356522.glb
Create a Truncated Rhombicuboctahedron bead. Construct the main body as a convex polyhedron formed by the intersection of several sets of planes: six planes normal to the 100 directions (the axes), eight planes normal to the 111 directions (the corners of a cube), twelve planes normal to the 110 directions (the edges o...
C0 = (3 + 2 * sqrt(3)) / 6; C1 = (1 + sqrt(2)) / 2; C2 = (3 + 3 * sqrt(2) + 2 * sqrt(3)) / 6; C3 = (3 + 6 * sqrt(2) + 2 * sqrt(3)) / 6; C4 = (3 + 6 * sqrt(2) + 4 * sqrt(3)) / 6; C5 = 1/2; Va = sqrt(C1*C1+C5*C5+C4*C4); Vb = sqrt(C0*C0+C2*C2+C3*C3); echo(Va=Va,Vb=Vb); a=4; module test_vertices() { #ps(a*[C1,C5,C4],"gr...
glb/cad_5d7be2ceecfd.glb
Create a CrissCross Shapelock Rod component by constructing a central vertical geometry and subtracting two intersecting shapes from it. Start with a primary solid composed of three stacked sections: a bottom cube of 11.31mm x 11.31mm x 6mm, a middle rectangular neck of 11.31mm x 4mm x 12.5mm, and a top section that tr...
n=4*20/20; ss=8; rot = 1; rr= ss/cos(360/8); s0 = 3; hh = 2*s0; a=ss/4*2; b=ss/4*4.0; c=(b-a); clear=0.66; s=1.01; fullpiece(clear); module pairmeshdemo() { fullpiece(clear); scale([s,s,s]) color("cyan") translate([0,0,-hh/2*2]) rotate(90,[0,0,1]) fullpiece(clear); } module fullpiece(clr=0) { differ...
glb/cad_2a7ca279c393.glb
Create an Experimental Circular FlexBellow consisting of a central flexible zig-zag section capped at both ends by rigid mounting flanges. The central section is composed of 4 repeating zig-zag segments. Each segment is formed by two mirrored conical frustums, each with a height of 3mm. The outer diameter of these fr...
nseg = 4; dout = 25; rout = dout/2; hseg = 3.0; eps = 0.05*1; $fa = 4; $fs = 0.3; twall = 1.5; twall2 = twall*sqrt(2); dtor=3; rtor = dtor/2; dhole = 5; tholewall = 3; tsupportwall = dtor/2+twall*1.5; debug_cut = "yes"; hsupport = rout; din = dout - 2*hseg - 2*twall2; rin= din/2; echo("inner bellow diamet...
glb/cad_e798daa643db.glb
Create an Experimental Rectangular FlexBellow. The object is a rectangular bellows with a total of 7 repeating segments and two massive end flanges. The overall outer dimensions are 24mm in width (x) and 18mm in depth (y). The walls of the bellows are 1.5mm thick. Each of the 7 bellows segments has a height of 3mm. Th...
eps = 0.05*1; $fa = 4; $fs = 0.2; edge_breaking = 0; epsspan = (edge_breaking <=0) ? 0.05 : edge_breaking; x0 = 24; y0 = 18; x0y0 = "outside_sizes"; twall_bellow = 1.5; angle = 45; dz = 3; s = dz*tan(angle); xin = x0-2*s-twall_bellow/cos(angle); yin = y0-2*s-twall_bellow/cos(angle); troof = 3; hflange =...
glb/cad_5189cd1e421e.glb
Create a "Stiffest Possible Infill" structure by combining two sets of intersecting planar grids. First, create a simple cubic infill consisting of three sets of parallel planes, each set orthogonal to the X, Y, and Z axes. Space these planes 8mm apart, and give each plane a thickness of 0.8mm. Second, overlay an octa...
twall = 0.8; s1 = 8; s2 = s1 * (sqrt(2)*sqrt(6)/3) /2; r0 = s1+twall*4; n = floor(2*r0/s1); function cir(x) = sqrt(r0*r0-x*x); alpha=atan(sqrt(2)); echo(alpha); quick_bridgeless_infill_demo(); module quick_bridgeless_infill_demo(a=2,b=2,c=2) { for(i=[0:a-1]) { for(j=[0:b-1]) { for(k=[0:c-1]) ...
glb/cad_182cb7d7e349.glb
Create a "Stiffest Possible Infill" structure by combining two sets of intersecting planar shells. All walls must have a uniform thickness of 0.8mm. First, create a cubic grid of planes. Generate three sets of parallel planes, each set perpendicular to one of the primary X, Y, and Z axes. Space these planes 16mm apart...
twall = 0.8; s1 = 16; s2 = s1 * (sqrt(2)*sqrt(6)/3) /2; r0 = s1+twall*4; n = floor(2*r0/s1); function cir(x) = sqrt(r0*r0-x*x); alpha=atan(sqrt(2)); echo(alpha); quick_bridgeless_infill_demo(); module quick_bridgeless_infill_demo(a=1,b=1,c=1) { for(i=[0:a-1]) { for(j=[0:b-1]) { for(k=[0:c-1]) ...
glb/cad_f67d6ef450ec.glb
Create a 3D model of a Weaire-Phelan building block by constructing a sphere with a radius of 30mm. Slice this sphere using a flat plane that passes through the coordinates [10, 10, 10] relative to the center of the sphere. Remove the portion of the sphere that lies on the side of the plane opposite to the origin, leav...
$fa = 4; $fs = 0.1; intersection() { color("red") halvespace([10,10,10]); sphere(30); } module halvespace(vec,offset=0,bb=1000) { PlaceAtPlane(vec) { translate([-bb/2+offset,0,0]) cube([bb,bb,bb],center=true); } } module PlaceAtPlane(vec,verbouse=false) { x = vec[0]; y = vec[1]; z = vec[2]; r_c...
glb/cad_b3baef6a86eb.glb
Create a shot glass by constructing a hollowed-out conical frustum. First, create a solid conical frustum with a height of 34.2 mm, a bottom radius of 10.26 mm, and a top radius of 13.68 mm. From this main body, remove a smaller concentric conical frustum to create the interior cavity. This interior void should start 4...
volume = 25; headspace_fac = 1.1; wall = 3; base = 4; height_mm_cube = 10 * pow((volume*headspace_fac), (1/3)); rad_bot = 0.3 * height_mm_cube; rad_top = 0.4 * height_mm_cube; height = height_mm_cube; alpha = 15; qual = 120; difference(){ translate([0,0,0]){ cylinder(r1 = rad_bot + wall, r2 =rad_top + wall, h = hei...
glb/cad_4a03f39c650e.glb
Create a Pogo Pin Rendering Tool jig by starting with a solid rectangular block. The block should have a height of 5mm, a length of 13.5mm, and a width of 6mm. Within this block, create a grid of 10 cylindrical holes that pass completely through the height of the block. The grid consists of 2 rows and 5 columns. Each...
ROWS = 2; COLS = 5; PITCH = 2.54; PIN_DIAMETER = 1; LENGTH = 1; WIDTH = 1; HEIGHT = 5; AUTOSIZE = true; IS_CENTERED = true; OFFSET_X = 0; OFFSET_Y = 0; 2D = false; debug = true; assert (PIN_DIAMETER < PITCH, "Your PIN_DIAMETER is larger than your pin PITCH."); pin_block_length = PITCH * COLS; pin_block_width ...
glb/cad_e0f6b812b435.glb
Create a Truncated Octahedron Gear. The overall shape is a thick, circular disc with a gear-tooth profile based on the geometry of a truncated octahedron mapped onto a spherical surface. The gear has a mid-point radius of 11.979mm and is designed with 12 teeth. The teeth should have a flat contact profile rather than ...
gear_teeth_count = -1; gear_radius = -1; gear_pitch = -1; start_angle = 45; clipTop = false; highTop = false; num_cycles = 3; height_multiplier = 1; make_flat = true; axle_type = "cross"; axle_diameter = 4.8; xw=0.35; extra_base_height=0; ring_gear = false; module __Customizer_Limit__ () {} delta = 0.01;...
glb/cad_38422053ee5b.glb
Create a Honeycomb surface generator plate with a total width of 180mm, a depth of 70mm, and a thickness of 0.6mm. The object consists of a central rectangular area surrounded by a solid border that is 3mm thick on all four sides. Within the central area, create a repeating pattern of hexagonal holes. Each hexagon sh...
width = 180; depth = 70; height = 0.6; hex_face = 5.6; interline = 1.2; border = 3; b = border; f = hex_face; dh = f*sqrt(3)+interline; dw = 3/2*f+interline; d = depth - 2*b; w = width - 2*b; y_num = d/dh; x_num = 2*w/dw; body(); border(); module border() { translate([-b, -b, 0]) cube([b, depth, hei...
glb/cad_8cbd66cf5695.glb
Create a rectangular base for a sand house model with overall outer dimensions of 39.6mm in width, 53.6mm in depth, and a total height of 11.2mm. The structure is an open-topped box with a floor thickness of 1.6mm and walls that are 1.2mm thick. The side walls and the front and back walls should be constructed to these...
wand = 1.2; boden=1.6; w=39.6; b=53.6; h=9; kante=3; dicke=0.8; difference() { kasten(); translate([wand*3,b-wand*3,-1]) cylinder(h=boden*4, r = 0.8, center=true,$fn=100); } module kasten() { cube([w,b,boden]); translate([0,0,boden]) cube([wand,b,h]); translate([-dicke,0,h-kante+boden-dicke/2]) cube...
glb/cad_94c15be38f8a.glb
Create a hollow 3D aperiodic monotile, known as a Hat tile, by extruding a specific 13-sided polygonal shell to a height of 2mm. The outer boundary is defined by vertices based on parameters a=3 and b=3*sqrt(3). Starting from (0, 0), the vertices follow a sequence of 60-degree turns: (0, 0), (b, 0), (b + a*cos(30°), a*...
module tile(width, thickness, a=10, b=10*sqrt(3)){ Xa = sqrt(3)*a/2; Xb = b/2; Ya = a/2; Yb = sqrt(3)*b/2; V = [[0*Xa + 0*Xb, 0*Yb + 0*Ya], [0*Xa + 2*Xb, 0*Yb + 0*Ya], [0*Xa + 3*Xb, 1*Yb + 0*Ya], [1*Xa + 3*Xb, 1*Yb - 1*Ya], [3*Xa + 3*Xb, 1*Yb + 1...
glb/cad_65b7058fbe86.glb
Create a ShopVac adapter nozzle consisting of a circular base that transitions into a rectangular tip. Start with a hollow cylindrical base with an outer diameter of 35.6mm (34.6mm plus 1mm wall thickness) and a length of 45mm. At the top of this cylinder, create a transition zone 80mm long that tapers from the circu...
BaseDiameter = 34.6; BaseTaper = 0.95; BaseOverlap = 45; TipShape = "rectangle"; TipLength = 50; TipWidth = 50; TipHeight = 150; FlangeWidth = 10; FlangeThickness = 2; TipFilletRadius = 5; TipAngle = 15; ChamferLength = 80; Thickness = 1; NumberOfHoles = 8; HoleRadius = 2; $fn=100; totalLength = BaseOve...
glb/cad_bf8267c3e692.glb
Create a sewing machine bobbin holder consisting of a rectangular base with a grid of protruding posts. Start with a base plate 3mm thick, measuring 167mm in width and 107mm in height. At each of the two far corners along the width, center a countersunk mounting hole with a 2mm diameter shaft and a 5mm wide head. On ...
numPostx=7; numPosty=4; postDiameter = 5; postAngle = 15; postHeight = 35; postSpacing = 25; perimeterSpacing = 7; baseThickness = 3; createMountingHoles = true; baseWidth = (numPostx - 1) * postSpacing + perimeterSpacing * 2 ; baseHeight = (numPosty - 1)* postSpacing + perimeterSpacing * 2 ; $fn = 50; differ...
glb/cad_bf0b48c4112d.glb
Create a thread spool rack by starting with a solid rectangular block measuring 81.1mm in width, 77.5mm in height, and 21.4mm in depth. From this block, carve out a series of cylindrical voids to create spool beds. Position four cylindrical holes, each with a radius of 16.75mm and a height of 33.7mm, arranged in a 2x...
spool_diameter = 32.8; spool_height = 33.4; tolerance = 0.3; spool_holder_radius = spool_diameter / 2 + tolerance; spool_holder_height = spool_height + tolerance; spool_beds_x = 2; spool_beds_y = 2; margin = 5; spool_spacing = 4.5; bump_size = spool_spacing/3; container_width = spool_beds_x * 2 * spool_holder_radiu...
glb/cad_770fb47404aa.glb
Create a d20 container by constructing a hollow icosahedron. Start by forming a solid icosahedron with an edge length of 70mm. Create a second, smaller icosahedron with an edge length of 67mm and center it within the first to create a wall thickness of 3mm. Remove the inner volume from the outer shell to make it hollow...
phi=0.5*(sqrt(5)+1); module icosahedron(edge_length) { st=0.0001; hull() { cube([edge_length*phi, edge_length, st], true); rotate([90,90,0]) cube([edge_length*phi, edge_length, st], true); rotate([90,0,90]) cube([edge_length*phi, edge_length, st], true); } } minkowski() { difference(...
glb/cad_c4030e43b553.glb
Create a travel case for an electric toothbrush consisting of a main body and a separate cap. Construct the main body as a cylinder with an external diameter of 29mm and a total height of 182mm. Hollow out the center to create an inner chamber with a diameter of 28mm and a height of 180mm, leaving a 2mm thick floor a...
$fn = 48; CASE_IZ = 180; CASE_IDIA = 28; CASE_FT = 2; CASE_WT = 1.5; CASE_EDIA = CASE_IDIA + CASE_WT*2; CASE_EZ = CASE_IZ + CASE_FT; CAP_IZ = 14; CAP_WT = 2.5; CAP_FT = 2; CAP_TOLERANCE = 0.8; CAP_IDIA = CASE_EDIA + CA...
glb/cad_6e85699d12d0.glb
Create a Yoto Card Storage Box with an outer shell measuring 97mm wide, 133mm long, and 69mm tall. The walls and the floor should be 1.5mm thick, except for the floor, which should be 3mm thick. In the center of the floor, create a recessed negative space (a stadium shape) that is 70% of the box width (67.9mm) and 80...
generate = "Box"; visualize_dividers = "Yes"; box_width = 97; box_length = 133; box_height = 69; thickness_of_walls = 1.5; thickness_of_floor = 3; negative_space = "Yes"; negative_width = 70; n_width = (negative_width * 0.01) * box_width; negative_length = 80; n_length = (negative_length * 0.01) * box_length; ...
glb/cad_3cb3da970f69.glb
Create a turbine hub for a whirligig. Start with a composite central body formed by the union of a cylinder with a radius of 20mm and a height of 11mm, and a sphere with a radius of 9mm centered at the top of that cylinder (positioned 9mm above the base). Subtract three identical radial cutouts from this body, spaced ...
anzahl=3; durchmesser=40; anstellwinkel=45; winkel=360/anzahl; $fn=50; toleranz=0.1; difference(){ union(){ hull(){ translate([0,0,0])cylinder(r=durchmesser/2,h=11); translate([0,0,9])sphere(r=9); } } for(k=[0:winkel:359]){ rotate([0,0,k]){ translate([durchmesser/2,0,6])aussparung(...
glb/cad_a40732ed98d2.glb
Create a turbine hub for a whirligig. Start with a main body formed by the union of a cylinder with a radius of 20mm and a height of 11mm, and a sphere with a radius of 9mm centered at the top of that cylinder (positioned at Z=9mm). Subtract four identical symmetrical cutouts from this body, spaced every 90 degrees ar...
anzahl=4; durchmesser=40; anstellwinkel=45; winkel=360/anzahl; $fn=50; toleranz=0.1; difference(){ union(){ hull(){ translate([0,0,0])cylinder(r=durchmesser/2,h=11); translate([0,0,9])sphere(r=9); } } for(k=[0:winkel:359]){ rotate([0,0,k]){ translate([durchmesser/2,0,6])aussparung(...
glb/cad_d83f04fe361a.glb
Create a rectangular support post for a whirligig axis. Start with a solid cube that is 9.6mm wide, 9.6mm deep, and 55mm tall. Centered on the top face, add a vertical cylindrical hole that extends through the body to a depth of 51mm, leaving a 5mm thick solid base at the bottom. The diameter of this hole should be 4.6...
axis_diameter=4; axis_clear=0.6; difference() { cube([9.6,9.6,55]); translate([9.6/2,9.6/2,5]) cylinder(h=51,d=axis_diameter+axis_clear,$fn=99); }
glb/cad_3661cfa0c1f2.glb
Create a central axis for a whirligig with a total length of 200mm. The axis consists of two joined sections: a rectangular base and a cylindrical shaft. Construct the base as a rectangular prism with a length of 145mm, a width of 8mm, and a height of 8mm. Attached to the end of this prism, add a cylinder with a diamet...
axis_diameter=8; axis_length=200; make_square_bottom=true; if(make_square_bottom) { union() { cube([axis_length-55,axis_diameter,axis_diameter]); translate([axis_length-55,axis_diameter/2,axis_diameter/2]) rotate([0,90,0]) cylinder(h=55,d=axis_diameter,$fn=99); } } else { rotate([0,90,0]) cylinder(h=axis_length,d=a...
glb/cad_67b490db8aa2.glb
Create a cylindrical bearing component with a total height of 7mm and an outer diameter of 7.9mm. The shape is a solid cylinder with a square hole carved through its center along the vertical axis. This central cutout is a rectangular prism measuring 5.1mm by 5.1mm in width and depth, extending through the full 7mm hei...
tolerance=0.1; $fn=99; difference() { cylinder(h=7 , d=8-tolerance, center=true); cube([5.1,5.1,60],true); }
glb/cad_ca56b2e5b70b.glb
Create a duck adapter for a whirligig. Start with a rectangular base measuring 39.8mm in length, 5mm in width, and 12mm in height. At a distance of 21mm from the front of the base, add a centered cube measuring 12mm on all sides. From this combined structure, remove a central square column measuring 6.1mm by 6.1mm wi...
offset=21; difference() { union() { translate([0,(12-5)/2,0]) cube([39.8,5,12]); translate([offset-6,0,0]) cube([12,12,12]); } translate([offset-(6.1/2),(12-6.1)/2,1.6]) cube([6.1,6.1,10.5],false); translate([3,6,11.8]) rotate([0,0,60]) cylinder(0.21,1.6,1.6,$fn=3); translate([4,20,8]) rotate([90,0,0]) cylinder(30...
glb/cad_a53e544a4200.glb
Create a Tapestry organizer tray by starting with a rounded rectangular block measuring 57.3mm wide, 96.9mm deep, and 42.5mm high, with corner radii of 3mm. Inside this block, carve out a large storage area. On the left side, create a rectangular void measuring 47mm wide, 94.5mm deep, and 50mm high, positioned at x=5...
$fn=200; difference(){ roundedCube3(57.3,96.9,42.5); translate([-1.6,0,0]){ translate([28.65,95.7,23.6]) rotate([90,0,0]) phex(47,0.5,94.5); translate([5.15,1.2,23.6]) cube([47,94.5,50]); translate([28.65,100,42.5]) rotate([90,0,0]) cylinder(h=400, d=47, center=false); } translate([51.9,20.2,10]) cube([3,56.5,10...
glb/cad_90ec40285b2d.glb
Create a Tapestry Organizer tray by starting with a rounded rectangular block measuring 120.5mm in width, 186.2mm in length, and 25.5mm in height, with corner radii of 3mm. Hollow out the main interior to create a storage well measuring 115.7mm by 178mm, positioned 2.4mm from the side wall and 4.1mm from the front wa...
$fn=100; difference(){ roundedCube3(120.5,186.2,25.5); translate([2.4,4.1,1.5]) cube([115.7,178,100]); translate([0,93.1,-1]) rotate([0,0,0]) cylinder(h=400, d=30, center=false); translate([0,1,0]){ translate([12.4,14.1,-1]) roundedCube3(95.7,45.3,50); translate([22.4,69.4,-1]) roundedCube3(85.7,45.3,50); transl...
glb/cad_09010869ea8c.glb
Create a rectangular organizer block with overall dimensions of 128.9mm in length, 93mm in width, and 42.5mm in height. The block should have rounded corners with a 3mm radius. Carve the following voids into the block: 1. A vertical cylindrical finger hole with a diameter of 21.6mm, positioned at the edge where x=128....
$fn=100; difference(){ roundedCube3(128.9,93,42.5); translate([128.9,46.5,-1]) rotate([0,0,90]) cylinder(h=70, d=21.6, center=false); translate([1.2,1.2,0]){ translate([1.2,1.2,1]) cube([43,8,45]); translate([1.2,9.2,3]) linear_extrude(height=50) polygon(points=[[5,0],[5,8],[7,8],[7,30],[0,49],[9,66],[27,66],[36,49...
glb/cad_7980afac1cec.glb
Create a Tapestry organizer tray by starting with a rounded rectangular block measuring 128.9mm in width, 107.2mm in depth, and 42.5mm in height. Carve out the following internal geometric voids: First, create a semi-cylindrical finger hole with a diameter of 27mm, centered at x=49mm, y=0mm, and extending 70mm deep. ...
$fn=100; difference(){ roundedCube3(128.9,107.2,42.5); translate([49,0,-1]) rotate([0,0,90]) cylinder(h=70, d=27, center=false); translate([0,4.5,0]){ translate([2.4,2.4,14]) cube([8,57,50]); translate([2.4,17.4,1]) cube([8,43,50]); translate([10.4,11.4,6]) linear_extrude(height=60) polygon(points=[[0,0],[38,0],[5...
glb/cad_eadd6a69747c.glb