Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Fractal Christmas Tree by extruding a Koch snowflake fractal. Start with a base section that is 25mm tall, using a Koch snowflake with three iterations and a base diameter of 50mm. Extrude this base without any twist. On top of the base, add a second extrusion 125mm in height. This upper section should also b...
union() { translate(v = [0, 0, 25]) { linear_extrude(height = 125, scale = 0, slices = 100, twist = 180) { union() { rotate(a = 60) { union() { rotate(a = 60) { union() { rotate(a = 60) { union() { rotate(a = 60) { union() { rotate(a = 60) { ...
glb/cad_b94f6630b5d7.glb
Create a parametric utility cabinet key consisting of a cylindrical blade and a shaped grip. Start by creating a cylindrical blade with a diameter of 16mm and a length of 15mm. Above this, add a shoulder section 7mm in height. The grip is a complex composite shape centered on the axis. It begins with a central rectang...
outerDiameter=16; shoulderLength=7; bladeLength=15; pocketDepth=9; pocketFaces=3; pocketSegments = 10; pocketCorners = 3; $fn=150; difference() { union() { translate([0,0,-bladeLength]) cylinder(r=outerDiameter/2,h=bladeLength); hull() { cylinder(r=outerDiameter/2,h=shoulderLength); transl...
glb/cad_3bf2e9c1a72b.glb
Create a Microsoft Surface byte tag consisting of a square base and a set of cylindrical pegs. The base is a square measuring 19.05mm by 19.05mm (0.75 inches) with a thickness of 0.79375mm (1/32 inch). Centered on this base, create a primary circular area with a diameter of 10.7mm. Within this area, place a central c...
mm = 25.4; tolerance = 1/128; color([.25,.25,.25]) byte_tag(byte=69, corners=true, border=1/16, height=1/4, bottom=1/16, dual=1); color([.75,.75,.75])byte_tag(byte=69, corners=true, border=1/16, height=1/4, bottom=1/16, dual=2); translate([1*mm,0,0]) byte_tag(byte=69, corners=true, border=1/16, height=1/4, bottom=1/...
glb/cad_32a0f9c74391.glb
Create a Desk Widget consisting of two separate components: a tiered notepad holder and a pencil cup. All walls should be 0.9mm thick. For the notepad holder, create three open-topped rectangular boxes aligned in a row. Each box has a depth of 22mm and a width of 158mm. The heights of the three boxes are 20mm, 57mm, a...
$fn = 100; sw = 158; bh = [20, 57, 88]; bd = 22; cw = 45; wt = 0.9; tol = 0.3; bc = let ( ox = 25, oy = 25, wd = len(bh)*bd+wt*(len(bh)+1) ) [ [0, wt/2, 0], [-ox, oy+wt/2, 0], [-ox, wd-(oy+wt/2), 0], [0, wd-(wt/2), 0] ]; difference() { slots(); *translate([-200, -200,...
glb/cad_a72c4cff8e6f.glb
Create a threaded lid for a narrow-mouth mason jar. Start with a base cylinder that has a diameter of 67.7mm and a total height of 17mm. The main body should be a cylinder with a wall thickness of 1mm and a bevel radius of 3mm on the edges. Inside this cylinder, create a threaded hole with a diameter of 67.7mm, a thr...
use </home/david/Documents/openscad/round_threads.scad> thread = 3; d_nominal = 67.2; d_clearance = thread + 0.5; d = d_nominal + d_clearance; pitch = 0.25 * 25.4; thread_length = 16; thickness = 1; rounding = 3; slot = true; difference() { difference() { minkowski() { sphere(r = rou...
glb/cad_5219f870ec39.glb
Create a Stomachion puzzle consisting of 14 flat polygonal tiles, each with a uniform thickness of 5mm. The tiles are derived from a square with a side length of 60mm (based on a unit scale of 5mm), centered at the origin. Construct the following 14 polygons using the specified vertex coordinates (multiplied by 5mm): ...
scaleFactor = 5; heightValue = 5; explodedFactor = 1; p = scaleFactor * [ [-6,-6],[-3,-6],[0,-6],[6,-6],[-4,-2],[2,-2], [-3,0],[0,0],[3,0],[6,0],[-2,2],[6,2], [-4,4],[-6,6],[0,6],[6,6] ]; polygonPoints = [ [p[0],p[4],p[1]], [p[1],p[4],p[6]], [p[0],p[12],p[10]],[p[0],p[13],p[12]], [p[13],p[14],p[10]], [p[10]...
glb/cad_7394295a7d7e.glb
Create a Samsung Galaxy S2 Holder starting with a rectangular base measuring 50mm wide, 60mm deep, and 5mm thick. At each of the four corners of this base, construct a vertical support structure. Each support consists of a 15mm wide, 10mm deep, and 5mm thick block attached to the base, with a 5mm wide, 10mm deep, and 1...
module mount(xpos,ypos){ difference(){ translate([xpos,ypos,0]) cube([5.5,12,5]); translate([xpos+5.5/2,ypos,0]) cube([3,5,2]); } } module topmount(xpos,ypos){ translate([xpos,ypos,0]) cube([15,10,5]); translate([xpos,ypos,5]) cube([5,10,13]); translate([xpos,ypos,6]) rotate([...
glb/cad_21707c9faed3.glb
Create a recursive, fractal-style Christmas tree with a total height of 200mm. The structure is built from a central trunk with a width of 7mm and a total width of 110mm (0.55 ratio of height). The tree is composed of three main sections: a top, middle, and bottom. The geometry is generated by recursively adding bran...
height = 200; width = 0.55; min_width = 0.8; tree_r = 0.6; branch_w = 7; branch_r = 0.06; clearance = 0.25; seed = 4; part = "all"; if (part == "top") { top_part(); } else if (part == "middle") { middle_part(); } else if (part == "bottom") { bottom_part(); } else if (part == "all"){ top_part();...
glb/cad_c3554465d494.glb
Create a duffle toggle button by starting with a sphere of 15mm diameter and scaling it along its longest axis to reach a total length of 47mm, forming a prolate spheroid. Flatten the bottom of this shape by removing a section from the underside to create a flat base for printing. Pierce two cylindrical holes through t...
$fn=54; length = 47; diameter = 15; hole_d = 5.8; hole_distance = 10.6; hole_offset = 0; print_under = 0.7; difference() { scale([length/diameter, 1, 1]) sphere(d=diameter); translate([hole_offset+-hole_distance/2, 0, -diameter]) cylinder(d=hole_d, h=2*diameter); translate([hole_offset+hole_dist...
glb/cad_3acd5ec62f45.glb
Create a button enclosure and matching lid consisting of two main parts. First, construct the main enclosure body. Define its footprint using four control points at [20, 10], [-20, 30], [-20, -20], and [15, -15]. Create a hull connecting these points, with the height varying linearly from 25mm at the front to 40mm at...
inch = 25.4; points = [[20, 10], [-20, 30], [-20, -20], [15, -15]]; height1 = 25; height2 = 40; corner_r = 8; thickness = 2; cable_d = 4; cable_x = 0; screwlug_d = 6; lid_gap = 0.25; onFace_z = 7; $fn = 15; cutout = false; 3DPrint = false; screw_hole_d = ...
glb/cad_475041231849.glb
Create a Button Enclosure consisting of a main body and a removable lid. For the main body, define a footprint using four control points at [0, 0], [90, 0], [90, 50], and [0, 50]. Create a solid volume by forming a hull between these points, applying a corner radius of 8mm and a wall thickness of 2mm. The body must s...
inch = 25.4; points = [[0, 0], [90, 0], [90, 50], [0, 50]]; height1 = 20; height2 = 40; corner_r = 8; thickness = 2; cable_d = 4; cable_x = 0; screwlug_d = 6; lid_gap = 0.25; onFace_z = 0.5; $fn = 40; cutout = false; 3DPrint = true; screw_hole_d = 1.5; sc...
glb/cad_d86c11c19598.glb
Create a button enclosure and a matching lid. The enclosure is defined by five control points: [0, 0], [30, 0], [30, 120], [0, 120], and [-30, 60]. The body is a hull created from these points, with corners rounded to a radius of 8mm and a wall thickness of 2mm. The enclosure has a sloping top face, with the height at ...
inch = 25.4; points = [[0, 0], [30, 0], [30, 120], [0, 120], [-30, 60] ]; height1 = 25; height2 = 40; corner_r = 8; thickness = 2; cable_d = 4; cable_x = 15; screwlug_d = 6; lid_gap = 0.25; onFace_z = 1; $fn = 15; cutout = false; 3DPrint = false; screw_hole...
glb/cad_53f92f32422e.glb
Create a Button Enclosure consisting of a main body and a removable lid. For the main body, define a footprint using four control points: [-40, 0], [40, 0], [15, 80], and [-15, 80]. Create a solid volume by forming a hull around these points with rounded corners (radius 8mm) and a wall thickness of 2mm. The body shou...
inch = 25.4; points = [[-40, 0], [40, 0], [15, 80], [-15, 80] ]; height1 = 25; height2 = 50; corner_r = 8; thickness = 2; cable_d = 4; cable_x = 0; screwlug_d = 6; lid_gap = 0.25; onFace_z = 1; $fn = 15; cutout = false; 3DPrint = true; screw_hole_d = 2; s...
glb/cad_233d1087547b.glb
Create a Button Enclosure consisting of a main body and a removable lid. For the main body, define a footprint using a set of control points at [0,0], [0,30], [0,60], [130,60], [260,60], [260,30], [260,0], and [130,0]. Create a solid volume by forming a hull around these points, applying a 10mm corner radius and a wa...
inch = 25.4; points = [[0,0], [0,30], [0, 60], [130, 60], [260, 60], [260, 30], [260, 0], [130, 0]]; height1 = 40; height2 = 73; height3 = 30; corner_r = 10; thickness = 2; cable_d = 4; cable_x = 80; screwlug_d = 6; lid_gap = 0.25; onFace_z = 5; $fn = 15; cutout ...
glb/cad_64f4602b0620.glb
Create a Nintendo 3DS Game Card Box designed to hold 11 cards. Start with a main outer block that has rounded corners with a radius of 3mm. The overall outer dimensions are 37.75mm wide, 117.5mm long, and 19mm high. Hollow out the center of the block to create a storage cavity 32.75mm wide and 17mm deep, leaving a ba...
stuffz = 2/1; fuzz = 0.2/1+.5; real_card_length = 34.95/1; real_card_width = 32.75/1; real_card_thick = 3.8/1; card_length = real_card_length + fuzz; card_width = real_card_width + fuzz; card_thick = real_card_thick + fuzz; number_of_cards = 11; box_height_addition = 15; gutter_height = 2; gutter_width = 3; card_spaci...
glb/cad_074eda43de4b.glb
Create a protective clamp for an Arduino Mega prototyping board. Start by constructing a rectangular outer base with a total width of 60.5mm and a total length of 127mm. The base should have a bottom floor thickness of 2.5mm. Build vertical walls around the perimeter with a height of 10mm and a thickness of 3.5mm. Ins...
pcb_width = 53.5; pcb_length =120; pcb_height =1.7; slisse = 1; pcb_bottom_margin = 2.5; wall_width_thick = 3.5; wall_width = wall_width_thick-slisse; box_height = 10; difference() { box(); pcb(); holes(); } module tab(){ difference(){ union() { translate([-4,-4,0]) cube([4,8,wall_width]); t...
glb/cad_44479b51dd99.glb
Create a phone clamp for an Android device by starting with a solid rectangular base measuring 29.5mm in length, 77mm in width, and 10mm in height. From this base, remove a central rectangular block measuring 13.5mm in length, 61mm in width, and 10mm in height, positioned 8mm from the left edge and 8mm from the bottom ...
camerawidth = 61; clampheight =13.5; clampthickness= 8; clampwith = 10; clampgripper = 6; translate([-3,insertloc,0]) rotate([0,-90,0])rotate([0,0,275]) insert(); difference(){ union(){ cube([clampheight+2*clampthickness,camerawidth+2*clampthickness,clampwith]); } translate([clampthickness,clampth...
glb/cad_24a67b5182f8.glb
Create a DnD Initiative Tower consisting of a main tower body and matching pegs. Construct the tower body as a rectangular block 7mm thick and 120mm tall, sitting on a 3mm thick base. The base is a custom polygon that extends to accommodate two circular coin bins, each 16.5mm in diameter, positioned on the front and ...
Headspace = 200; Type = "FitConfig"; TowerY = 7; TowerBase=3; CoinDiam = 16.5; CoinThk = 1.67; CoinWt = 2.3; TargWt = 60; PegThk = 3; TextHt = 8; DetDep=0.6; PegX = 50; Pegs = 10; Label = "HERO"; PegBatchN = 5; PegZ = TextHt+4; PegFlat = 6; NotchHt = PegThk*0.6; NotchSquare = sqrt(pow(TowerY+2*NotchHt,...
glb/cad_47bbdf870fb3.glb
Create an LC meter case consisting of a lower base and an upper lid. For the lower part, create a rectangular shell with a core interior of 83mm by 53mm and a height of 20mm. The walls should be 2mm thick with a 0.7mm lip. Incorporate a 4mm diameter hole for a power jack, a 4mm diameter hole for wires, and a rectangu...
part = "upper"; has4buttons = true; has_support = true; support_w = 0.50; core_x = 81.0 + 2.0; core_y = 51.0 + 2.0; core_z = 20.0; lip_dz = 0.7; corner_r = 2; wall = 2.0; floor = 2.0; chamfer1 = 0.8; lcd_y = 36.0 + 2.0; lcd_z = 8.0; lcd_h = 4.0; lcd_dy = 25.0; lcd_dx = 71.9; mnt_dy = 45.8; mnt_lcd_dy = 31.0; mnt_lc...
glb/cad_7faecdd47726.glb
Create a tealight holder lid by constructing a shallow cylinder with an outer diameter of 46.2mm and a height of 6mm. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a diameter of 46.2mm and a height of 60mm, starting from a height of 3mm from the base. This results in a ring-shape...
lamp_h = 66; lamp_d = 40; lamp_h_sp = 20; lamp_d_sp = 5; wall = 1.5; bottom = wall * 2; holes1 = 5; slits_x = 2; slits_z = 10; print_box = 0; print_lid = 1; module perforering() { translate([0,lamp_d,lamp_h/5]) { rotate([90,0,0]) { cube([slits_x,slits_z,lamp_d*2]); } } rota...
glb/cad_b5b2063e792f.glb
Create a Third Hand SMD stand consisting of a base plate and a lever mechanism. Start with a rectangular base plate 120mm long, 100mm wide, and 8mm thick, with rounded corners (20mm diameter arcs). On the base plate, create two circular holes 14mm in diameter, positioned 15mm from the right edge and spaced 80mm apart...
$fn=60; PLATE=[120,100,8]; CORK=6; SPRING=9.5; HANDLE=[PLATE[0]-13,20,6]; Base() ; translate([0,-HANDLE[1],0]) Lever() ; module Lever() { union() { color("green") Arm(8) ; color("red") translate([HANDLE[0]-HANDLE[1]/2,0,0]) Tab() ; translate([4,0,0]) Pin() ; translate([HANDLE[0]-...
glb/cad_0f94ab7ff331.glb
Create a microwave oven roller wheel replacement consisting of a central hub and three radiating arms, each supporting a wheel. Start with a central cylindrical hub 15mm high with a radius of 5.5mm. Remove a central vertical hole with a radius of 1.2mm and a square cutout 10mm by 10mm centered within the hub. Extend t...
$fn=50; intersection(){ difference(){ union(){ center(); bras(); rotate([0, 0, 120]) bras(); rotate([0, 0, -120]) bras(); roue(); rotate([0, 0, 120]) roue(); rotate([0, 0, -120]) roue(); } } } module center() { difference(){ color...
glb/cad_f90298b981a8.glb
Create a Customizable Parts Drawer with overall outer dimensions of 120mm width, 120mm depth, and 19mm height. The main body is a solid block with 5mm rounded corners. Hollow out the interior to create a grid of storage compartments. The walls between compartments and the outer perimeter walls should be 1.5mm thick. ...
EXPERIMENTAL = 0; cells = [4,3,3,2]; OUT_W = 120; OUT_D = 120; OUT_H = 19; WALL = 1.5; HANDLE = 15; LABEL_W = 50; LABEL_H = 15; CORNER_RAD=5; $fn = 40; module Label() { x = (OUT_W - (LABEL_W+2)*2) / 4; difference() { translate([OUT_D, x, 0]) cube([2, LABEL_W+2, LABEL_H]); translate([OU...
glb/cad_00fdc9002beb.glb
Create two identical spool holder mounts. For each mount, construct a base disk with a radius of 25mm and a height of 5mm. Centered within this base, add a second concentric cylinder with a radius of 16.5mm and a height of 10mm. From the center of these combined shapes, remove a vertical cylindrical hole with a radius ...
spindle_radius = 4; spool_hole_radius = 16.5; translate([-30, 0, 0]) holder(spindle_radius, spool_hole_radius); translate([+30, 0, 0]) holder(spindle_radius, spool_hole_radius); module holder(spindle_radius, spool_hole_radius) { difference() { union() { rotate_extrude(convexity = 10, $fn = 200) difference(...
glb/cad_ab9aad8f4b62.glb
Create a strong corner bracket for 20mm extrusions by starting with a solid cube measuring 30mm x 30mm x 20mm. Remove a large 45-degree angled section from the inner corner by centering a cube of 60mm x 60mm x 21mm, rotated 45 degrees on the Z-axis, and shifting it slightly downward by 0.5mm to clear the top. Carve out...
SCREW_HOLE = 4; STOL = 0.3; s_hole = SCREW_HOLE + STOL; XY_THICK = 5; Z_THICK = 4; corner_bracket(); module corner_bracket() { difference(){ cube([30,30,20]); translate([0,0,-0.5]) rotate([0,0,45]) cube([60,60,21]); translate([-XY_THICK,XY_THICK,Z_THICK]) cube([30,30,20]); translate([15,0,10]) rotate([90,0,0...
glb/cad_2ade453603e7.glb
Create a Scotch Yoke mechanism consisting of a base, a crank, and a yoke. Start with a rectangular base measuring 25.4mm wide, 50.8mm deep, and 6.35mm thick. Centered on this base, create two vertical support blocks, each 10mm wide, 6.35mm deep, and 16mm high, positioned 20mm apart from center to center along the depth...
$fa = 1; $fs = 1; clearance = 0.15; color("blue") difference() { union() { cylinder(r=10, h=6.35); translate([6.35,0,0]) cylinder(r=3.175, h=14); } translate([0,0,-1]) cylinder(r=2, h=10); } color("green") union() { union() { difference(){ translate([-(6.35+6.35+clearance), -(6.35+clearance), 6.35+clearance]) ...
glb/cad_619786d151c5.glb
Create a FlexBot Airframe quadcopter chassis. The design consists of four identical engine pods arranged symmetrically around a central point, each spaced 48mm from the center. Each pod is constructed from a 20mm tall cylinder with a 20-facet resolution. The outer diameter is 9mm, tapering slightly from a base radius...
main(); module main() { distance = 48; for(i = [0 : 3]) { rotate( i * 360 / 4, [0, 0, 1]) translate([0, distance, 0]) pod(); } rotate([0,0,45]) { translate([17,-2.5,0]) hook(); translate([-17,2.5,0]) rotate([0,0,180]) hook(); translate([-6,-19,4]) frame(); translate([-6,19,4]) frame(); } } m...
glb/cad_de6cc7e0bf9b.glb
Create a Customizable Truss Bracket designed to join multiple beams at a central hub. Start by creating a base flange with a thickness of 1.25mm and a fillet radius of 2mm. From this base, extend several radial arms (flanges) that serve as supports for beams. Each arm is defined by a specific angle, width, and length...
inch2mm = 0.3048/12*1000; mm2inch = 12/0.3048/1000; $fn=30; flangeThickness = 1.25; flangeWidth = 6; filletRadius = 2; surroundHeight = 3.0; surroundWidth = 1.5; offsetDistance = 0; tolerance = 0.05; maskEdge = 1; beam1Angle = 0; beam2Angle = 30; beam3Angle = 90; beam4Angle = 150; beam5Angle = 180; beam6A...
glb/cad_c4f1e43bc9a8.glb
Create two protective terminal caps. The first cap is a cylindrical lid with an outer diameter of 13mm and a thickness of 2.6mm. It features a central hollow plug consisting of two concentric cylinders: an outer cylinder with a diameter of 6.4mm and a height of 1.7mm, and an inner cylinder with a diameter of 1.7mm and ...
$fa=1; $fs=0.5; nikoncap(13, 2.6, 1, 12, 1.5, 2.5, 6.4, 1.7, 1.7); translate([20, 0, 0]) { nikoncap(15.2, 3, 1, 9.7, 1.2, 4); } module nikoncap(dl, tl, os, dop, wop, hop, dip, wip, hip) { union() { difference() { rotate_extrude(convexity = 10) { difference() { offset(r = os) square([dl-2*os,...
glb/cad_ba9864d7dfbe.glb
Create a modular monitor stand system consisting of "feet" and "bridges." First, design a bridge component. The bridge is a rectangular bar with a length of 125mm (calculated as 155mm minus the 30mm foot width), a thickness of 5mm, and a width of 5mm. At each end of the bar, add a hook. Each hook is a small block wit...
rise=60; clearance=0.20; shim=0.005; $fn=30; bridgeThickness=5; footX=30; footY=footX; hookRad=2; module hook(subtract=false){ thickness=bridgeThickness + (subtract ? 2*clearance : clearance); side=2*(bridgeThickness-hookRad + (subtract ? clearance :0)); translate([hookRad,hookRad,0]) di...
glb/cad_bd0d64fbbb24.glb
Create a Keyforge Deck Box designed to hold sleeved cards. The main body is a rectangular open-top container with a base and four walls. The interior cavity should measure 96.5mm by 70.5mm with a height of 25mm. All walls are 2mm thick. The two shorter side walls are solid, while the two longer side walls feature a wi...
card_long_edge = 92; card_short_edge = 66.5; card_stack_height = 23; wall_thickness = 2; tab_width = 10; extra_space = .25; cutout_width = card_short_edge / 2; card_cutouts_short_edge = 63.5; card_cutouts_long_edge = 88; $fn = 100; height = card_stack_height + wall_thickness; cutout_height = 3 / 4 * height; positione...
glb/cad_03f66b3feffb.glb
Create a Wolverine Claw accessory consisting of three parallel blades extending from a central knuckle guard. Each blade is a long, tapered curved spike 139mm in length. The blades are arranged in a fan shape, with the central blade straight and the two outer blades angled away from the center at 21 degrees each. The...
length = 139; spacing = 15; $fn=64; scale(2*length/25.4*[1, 1, 1]) union() { scale(0.9) for(finger=[-1:1]) rotate(-finger*21, [1, 0, 0]) translate([(1-abs(finger)), spacing/7*finger, 1+abs(finger)/2]) difference() { scale([11, 4, 4]) rotate(90, [0, 1, 0]) sphere(r=1); for(side=[-1:2:1]) translate([5...
glb/cad_6f81538775f8.glb
Create a simple door catch by extruding a specific 2D profile to a height of 18mm. Start with a back plate that is 4mm wide and 50mm long. Attached to this plate, create a main body that is 16mm wide and 22mm long, centered along the plate's length. Within this body, remove a central circle with a radius of 8mm to crea...
module slot(length=6, width=4, depth=10) { r=width/2; cylinder(depth,r,r); translate([length-width,0,0]) cylinder(depth,r,r); translate([0,-r,0]) cube([length-width,width,depth]); } module catch_outline() { square([4,50]); difference() { translate ([4,(50-22)/2,0]) square([16,22]); translate ([14,11+(50-22)/2,0])...
glb/cad_01c50c2fade0.glb
Create a simple door catch consisting of a rectangular base with a central U-shaped cutout. Start with a solid rectangular block 50mm wide, 4mm thick, and 18mm high. From this block, remove a central rectangular section 22mm wide, 16mm deep, and 18mm high to create a U-shaped channel. At the bottom of this channel, cen...
module slot(length=6, width=4, depth=10) { r=width/2; translate([-(length-width)/2,0,0]) cylinder(depth,r,r, true); translate([(length-width)/2,0,0]) cylinder(depth,r,r, true); cube([length-width,width,depth], true); } module makebody() { translate ([-25, 0, 0]) cube ([50, 4, 18]); difference() {translate ([-11, 0,...
glb/cad_f33dd550757b.glb
Create a Customizable Photo Frame designed to hold a photo with dimensions of 130mm width, 180mm height, and 1mm thickness. Construct the main frame body as a hollowed rectangular shell with a wall thickness of 0.8mm. The outer dimensions of the frame should be 131.6mm wide and 184mm high (calculated as the photo wid...
part=0; wp=130; hp=180; tp=1; wt=0.8; bt=5; iso=0; sr=18; ss=0; $fn=100; inner=[wp, hp, tp]; module HexPatternV2(v, r=10, w=1, i=true, a=false) { dx=r*1.5; dy=r*0.866025; sy=(i) ? -0.1 : 0; az=(i) ? 0.2 : 0; r1=(a) ? r-w/2-(v.z+0.2) : r-w/2; intersection() { difference() { if(i) cube(v)...
glb/cad_9325dadeb753.glb
Create a GoPro Hero 3+ line mount consisting of a central camera connector and two curved support arms. First, create a "triple" GoPro connector centered at [32, -5, 0]. To refine its shape, remove a centered cube of 40mm x 40mm x 10mm positioned at [0, 0, -9.85]. Add a cylindrical hole with a radius of 3mm and a hei...
$fn=200; use <gopro.scad> use <gopro_mounts_mooncactus.scad> translate([32,-5,-0.15]) { difference() { translate([0,0,2]) rotate([0,0,-90]) gopro_connector("triple"); translate([0,0,-9.85]) cube([40,40,10],center=true); } } translate([43,-12.35,6.2]) rotate([-90,0,0]) cylinder(r=3,h=14.7); length=80; translate([0...
glb/cad_4ee4e847a329.glb
Create a smiley face cookie cutter and stamp set. First, construct the cutter by extruding the outline of a smiley face to a height of 12mm. The walls of this cutter should be 2mm thick, with a base flange 6mm wide and 2mm high extending from the bottom of the outline. Within the cutter, include vertical support pillar...
wallThick = 2; cutterMinimum = 1.2; baseHeight = 2; height = 12; flangeWidth = 6; stampDepth = 1; lineDepth = 2; fileName = "smily.dxf"; cookiecutter(); module handle() { handleLength=50; translate([53,80,10]) rotate([90,0,0]) difference() { minkowski() { union() { cube([baseHeight/3, 20, ha...
glb/cad_80624c8360d8.glb
Create a pyrolytic graphite demo box consisting of a main container and a separate lid. For the container, create a rectangular block with rounded corners using a radius of 1.5mm. The outer dimensions should be 30.95mm by 39.05mm, with a total height of 20.2mm. Hollow out the center to create a rectangular cavity measu...
mx=28.95; my=38.05; mz=18.7; %color([0.5,0.5,0.5,1], alpha = 0.3) translate([0,0,mz/2]) cube([mx, my, mz], center=true); $fn=200; e=0.1; wall=1.5; b=0.6; translate([0,0,mz+5]) difference() { hull(){ translate([-mx/2,-my/2,0])cylinder(r=wall, h=mz+wall); translate([mx/2,-my/2,0])cylinder(r=wall, h=mz+wal...
glb/cad_8395facf464f.glb
Create a customizable funnel consisting of a cylindrical base and a conical top. Start by creating a hollow cylinder for the base pipe with an outer diameter of 50mm, a height of 5mm, and a wall thickness of 1mm. Directly on top of this base, add a hollow truncated cone that transitions from the base diameter of 50mm u...
baseHeight=5; baseDiam = 50; funnelHeight = 20; funnelTopDiam = 80; tk = 1; nz = 0.5; nzm= 0.25; $fn=100; funnel (baseHeight, baseDiam, funnelHeight, funnelTopDiam, tk); module funnel( baseHeight=30, baseDiam=10, funnelHeight=50, funnelTopDiam=80, tk=1) { union(){ pipe(baseHeight...
glb/cad_854d37b76759.glb
Create a rectangular lithopane plaque with a horizontal orientation. The main body should be 133mm wide by 100mm high. The base thickness of the plaque is 0.4mm. The top surface of the plaque is a variable-height relief based on an image, where the maximum thickness added to the base is 2.4mm (12 layers at 0.2mm each...
use <utils/build_plate.scad> use <write/Write.scad> picture_shape = "standard"; picture_orientation = "horizontal"; pane_size = "large"; image_file = "image-surface.dat"; include_hole = "yes"; hole_diameter = 10; layer_height = 0.2; number_of_layers = 12; text_line_1 = ""; text_line_2 = ""; text_line_3 = ""; te...
glb/cad_105820bbbea6.glb
Create a 3D model of a "test" gear assembly. Start by creating a central cube with a side length of 50mm. This cube should be modified by removing a series of pin-shaped holes from its faces to allow for gear attachment. Construct two bevel gears. The first large gear should have 18 teeth and the second smaller gear s...
use <MCAD/involute_gears.scad> use <write/Write.scad> choose(i=object); object=1; type=2; size=50; tol=0.5; gap=2; Backlash=0.5; word1="1"; word2="a"; word3="A"; fontsize=6; Font = "write/Letters.dxf"; use <utils/build_plate.scad> build_plate_selector = 0; build_plate_manual_x = 100; build_plate_manual_...
glb/cad_9b3dfe65afb5.glb
Create a Wrench Holder consisting of a main base and a locking clip. The base is a rounded rectangular block with a total depth of 5mm. The overall width is approximately 65mm and the height is approximately 22mm. Along the top surface, create a series of eight slots designed to hold wrenches of varying widths and he...
werte= ["6/8", "7/9", "8/9", "10/11", "12/14", "13/15", "16/18", "17/19"]; breiten=[ 3.4, 3.7, 3, 4, 5, 5.1, 5.4, 5.3]; hoehen= [ 9, 9.3, 10, 10, 12.4, 13.8, 15, 15.6]; hoehe_boden=5; tiefe=5; part=0; $fn=100; fix=0; module BoxMitAbgerundetenEcken(v, r=1) { ...
glb/cad_16324a85852a.glb
Create a golf tee consisting of a main cylindrical body and a tapered top. Start by creating a cylinder with a height of 12mm and a radius of 2.5mm. At the top of this cylinder, add a conical section that tapers from a radius of 1.5mm at its base to a radius of 0.2mm at its peak, extending the total height by 8mm. To r...
use <write/Write.scad> show_text="yes"; text_font="write/orbitron.dxf"; text_itself="MARCO"; text_size = 2; union(){ golfTea(); if (show_text=="yes") { writecylinder(text=text_itself,where=[0,5,-27],radius=7,height=66,rotate=90,t=1.3,bold=1,h=text_size,font=text_font,space=1.3); } } module golfTea(){ differen...
glb/cad_d145ff348fa1.glb
Create a brushless motor bearing removal jig. Start by creating a solid base cylinder with a radius of 16.25mm and a height of 1.2mm. On top of this base, add a concentric ring with an inner diameter of 22.5mm, an outer diameter of 32.5mm, and a height of 17mm. At the very bottom of the assembly, centered within the ri...
bearing_catcher_id = 8.5; bearing_catcher_od = 12; bearing_catcher_height = 5; tunnel_id = 22.5; tunnel_height = 12; wall_width = 5; cable_channel_width = 9; bottom = 1.2; $fn = 96; module Ring(ir, or, h) { difference() { cylinder(r = or, h = h); cylinder(r = ir, h = h * 3, center = true); } }...
glb/cad_5d456c2736f8.glb
Create a golf tee consisting of a central shaft and a flared base. Start with a main cylinder 12mm high with a radius of 1.5mm. At the bottom of this cylinder, integrate a spherical section with a radius of 1.8mm, centered 1mm below the base of the cylinder. Above the main shaft, add a conical tip that transitions from...
use <write/Write.scad> show_text="yes"; text_font="write/orbitron.dxf"; text_itself="MARCO"; text_size = 2; union(){ golfTea(); if (show_text=="yes") { writecylinder(text=text_itself,where=[0,6,-26.5],radius=7,height=66,rotate=90,t=1.3,bold=1,h=text_size,font=text_font,space=1.3); } } module golfTea(){ cylin...
glb/cad_4837c7b4bde9.glb
Create a 3D compound consisting of two concentric polyhedra: an elongated triangular orthobicupola (Johnson solid J35) and its dual polyhedron. First, construct the J35 polyhedron using the following vertices: [-11.14, -0.78, 0.42], [-10.28, 3.49, 9.42], [-7.27, 8.40, 1.24], [-6.93, -1.75, -8.60], [-5.98, -8.70, 3.69]...
rotate([0,-26,0]) rotate([0,0,-167]) union() { j35_dual(); scale (1.1 + 2 * $t) color ("DodgerBlue") j35(); } module j35() { polyhedron (points = [ [ -11.14496, -0.78305, 0.42042], [ -10.28262, 3.49216, 9.41925], [ -7.27281, 8.40009, 1.2428...
glb/cad_2c04222bb1d0.glb
Create a modular interlocking tool holder consisting of a base plate and a vertical back wall. The base is a rectangular slab 90mm wide, 60mm deep, and 15mm thick. In this base, create a grid of six circular holes, each 5mm in diameter and 15mm deep, spaced 30mm apart both horizontally and vertically, starting 20mm fro...
include <OpenSCAD-Dovetails/dovetails.scad> thickness=15; columns=3; rows=2; spaceing=30; hole_size=5; width=spaceing * columns; depth=spaceing * rows ; dovetail_width=10; dovetail_count=floor(depth/(dovetail_width)); difference() { translate([dovetail_width,0,0]) cube([width-dovetail_width,depth,thickness]...
glb/cad_0daba694a95c.glb
Create a spool holder consisting of a central cylindrical body with a wide base. Start by creating a main cylinder with a radius of 8mm and a height of 28mm. Add a second, larger cylinder centered on the same axis with a radius of 32.5mm and a height of 32.5mm. To create the outer grip, place 17 small cylinders with a ...
rotate ([180,0,0]) difference () { union() { translate ([0,0,0]) cylinder (8,56/2,56/2, center = true, $fn = 100); translate ([0,0,6])cylinder (4,65/2,65/2, center = true, $fn = 100); for ( x = [0 : 20 : 340] ) { rotate ([0,0,x]) translate ([27,0,0]) cylinder (8,2,2, center = true, $fn = 20); } } translate ([0,0,0]) c...
glb/cad_97180d7130d3.glb
Create a Customizable Celtic Ring. Start by constructing a hollow cylindrical band with an inner radius of 9mm, a total width of 10mm, and a wall thickness of 2.4mm. Carve two thin, parallel grooves into the outer surface of the band to create a recessed central channel, leaving the top and bottom edges as flat borders...
radius=9; width=10; thickness=2.4; depth=0.15; smoothness=50; bwidth=0.3; linethickness=0.7; circles=3; overlap=0.2; rotation=30; sizecorrection=1.3; density=2; divergency=0.8; $fn=smoothness; module ring(r=25, h=5, t=2) { difference() { cylinder(r=r+t, h=h); translate([0,0,-1]) ...
glb/cad_72085b027fb7.glb
Create a parametric spider coupling consisting of two identical wheels and one central spider insert. First, construct a wheel by creating a cylinder with a radius of 12.5mm and a height of 5mm. Remove a concentric cylindrical hole from the center with a radius of 3mm to accommodate a shaft. To this wheel, add two st...
mode = 1; lift = 1; wheel_radius = 12.5; wheel_height = 5; shaft_size = 6; coupling_height = 10; coupling_thickness = 6; coupling_struts = 2; spider_angle = 90; clearance = 0.2; radial_clearance = 3; spider_wall_thickness = 4; module spider_leg() { inc = 360/(2*coupling_struts); intersection() { difference()...
glb/cad_42055d426081.glb
Create a Mendel Indicator Gauge Fan Holder. Start by constructing a main base block measuring 60mm x 40mm x 60mm. From this block, remove a large rectangular section by rotating a 70mm x 50mm x 100mm cube by -30 degrees on the X-axis and positioning it to carve into the base. Additionally, remove three long cylindrical...
module cirkel1(){ module pos(){ cylinder (10,30,22,$fn=100); } module neg(){ cylinder (10,20.25,20.25,$fn=100); } difference(){ pos(); neg(); rotate([0,0,45]) cube([10,100,20],center=true); rotate([0,0,-45])cube([10,100,20],center=true); }} module cirkel2(){ module pos(){ cylinder (10,30,30,$fn=100); } module neg(...
glb/cad_609384ed5051.glb
Create a set of three interlocking rings arranged in a circular pattern. Each ring is constructed as a hollow cylinder with an outer radius of 20mm, an inner radius of 14mm (creating a wall thickness of 6mm), and a height of 6mm. Position the rings such that they are rotated around the Z-axis in increments of 42 degr...
$fa=3; $fs=1; h=6; r=20; tilt=50; rh = sin(tilt)*r; cutbox=100; cuth=3; N=3; module ring(tilt) { translate([0,0,rh]) rotate( a=tilt, v=[1,0,0] ) { difference() { cylinder( r=r, h=h); cylinder( r=r-h, h=h); } } } offset=30; rot=42; difference(){ for (i=[1:N]) { rotate(a=r...
glb/cad_ec5a0eeb6bf1.glb
Create a set of three interlocking rings. Each ring is a torus with a major radius of 20mm and a cross-sectional tube radius of 3mm. Arrange the three rings in a circular pattern around a central axis, spacing them equally at 120-degree intervals. Position each torus so its center is offset 34mm from the central axis. ...
h=6; r=20; tilt=55; rh = sin(tilt)*r; cutbox=100; cuth=3; N=3; offset=34; rot=36; module ring(tilt) { translate([0,0,rh]) rotate( a=tilt, v=[1,0,0] ) { difference() { cylinder( r=r, h=h); cylinder( r=r-h, h=h); } } } module ring2(tilt) { translate([0,0,rh+h/4]) rotate( a=...
glb/cad_c1724345b31d.glb
Create a pair of Shutter Shades consisting of a glasses frame, two arms, and shuttered lenses. Construct the frame with a thickness of 9mm. The frame should feature two lens openings, each 383mm wide and 146mm high. Attach two arms to the outer edges of the frame; each arm is a scaled version of a generic glasses arm...
pattern_border = 2; shutter_count = 7; shutter_size = 9; left_input = "swag"; autoscale_left = 1; left_size_on_x = 150; left_size_on_y = 150; left_move_x = 0; left_move_y = 0; right_input = "swag"; autoscale_right = 1; right_size_on_x = 150; right_size_on_y = 150; right_move_x = 0; right_move_y = 0; fram...
glb/cad_533a0038914c.glb
Create a parametric filament spool clip. Start with a base plate that is 15mm long, 10mm wide, and 1.5mm thick. On top of this base, construct two parallel outer walls. Each wall is created by forming a hull between two cylinders with a diameter of 1.75mm and a height of 5mm, positioned at the start and end of the 15mm...
Filament_Width=1.75; Groove_Depth=5; Base_Thickness=1.5; Base_Length=15; module wall(){ hull(){ translate([0,Filament_Width/2,0]) cylinder(d=Filament_Width,h=Groove_Depth); translate([Base_Length,Filament_Width/2,0]) cylinder(d=Filament_Width,h=Groove_Depth); } } $fn=36; ex=0.01; union(){ translate(...
glb/cad_6e0ddc8c8160.glb
Create a pipe adapter consisting of a hollowed-out cylindrical structure. Start by forming a main cylinder with an outer diameter of 31mm and a total height of 35mm. At the base of this cylinder, add a wider, flat circular lip with a diameter of 41mm and a height of 5mm. Finally, remove a central cylindrical core with ...
outerD=31; innerD=21; height=30; lipHeight=5; lipD=41; difference() { union() { cylinder(h=height+lipHeight,r=outerD/2); cylinder(h=lipHeight,r=lipD/2); } translate(v=[0,0,-5]) { cylinder(h=height+lipHeight+10,r=innerD/2); } }
glb/cad_1c9315034d17.glb
Create an Open Source Hardware pendant with a total thickness of 3mm. Start by creating a circular hanging hook at the top. This hook is a ring with an outer diameter of 6mm and an inner hole diameter of 4mm, resulting in a wall thickness of 1mm. Attached to the base of this hook, create the Open Source Hardware log...
hook_dia = 6; hook_wall = 1; thickness = 3; linear_extrude(thickness) { hook_inner_dia = hook_dia - 2*hook_wall; translate([0, hook_inner_dia/2]) { difference() { circle(d = hook_dia, $fn = 50); circle(d = hook_inner_dia, $fn = 50); } } scale([0.3, 0.3]) { translate([-66.944, 0]) { bezier_polygon(...
glb/cad_a13a3511a3bd.glb
Create a lens filter ring adaptor with an integrated LED ring platform. Start by creating a male metric thread with a diameter of 51.99mm, a pitch of 0.75mm, and a height of 3mm. On top of this, add a circular platform with a diameter of 90mm and a thickness of 1mm. Above the platform, create a female metric thread wi...
include <threads.scad> lens_d = 52; lens_thread_height = 3; lens_pitch = 0.75; aperature_margin= 3; filter_d = 62; filter_pitch = 0.75; filter_thread_height = 3; LED_d = 90; LED_thick = 1; supports = 2; support_thick = 0.5; module support_ring(radius) { difference() { cylinder(r=radius, h=lens_thread_he...
glb/cad_273fdb632b05.glb
Create a Customizable Liquid Washing Detergent Cup by constructing a hollow spherical shell. Start with an outer sphere with a radius of 32.23mm and an inner sphere with a radius of 29.23mm to create a wall thickness of 3mm. Cut the top of the sphere horizontally to create a wide opening, and truncate the bottom of the...
ml = 120; $fn = 75; pi = 3.141592654; inner_r = pow(ml / (4/3 * pi), 1/3) * 10; outer_r = inner_r + 3; intersection() { difference () { sphere(outer_r); sphere(inner_r); } translate([0, 0, -10]) cube(2 * outer_r, true); } translate([0, 0, -outer_r + 2]) cylinder(h = 3, r1 = inner_r - 8, r2...
glb/cad_526cd4bfbb4e.glb
Create a Lotus Exige seatbelt blank by constructing a flat base with a total thickness of 3mm. Start with a rounded rectangle measuring 55mm by 23mm with corner radii of 9mm. From this base, remove a rectangular section from the top right corner measuring 10mm by 30mm to create a notched edge. Cut a centered, rounded r...
$fa = 1; $fs = 0.4; module roundedRect(size, radius) { x = size[0]; y = size[1]; z = size[2]; linear_extrude(height=z) hull() { translate([radius, radius, 0]) circle(r=radius); translate([x - radius, radius, 0]) circle(r=radius); translate([x - radius, y - radius, 0]) circle(r=radius); translate([radius,...
glb/cad_1d7d0198a9a8.glb
Create a Customizable Screwdriver Bit Holder consisting of a base and a cap. For the base, create a cylinder with a diameter of 101mm (calculated as the inner diameter of 95mm plus 6mm) and a total height of 11mm. The base features a floor thickness of 1mm. Within the main body of the base, create a honeycomb pattern...
part=1; dia=95; rb=5; ft=1; cwt=1.5; dr=0; dh=0; $fn=100; db=8.1; hb=26; function KreisInKreis(x, y, ri, ra) = sqrt(x*x + y*y)+ri < ra; module HexPatternV2centered(v, r=10, w=1, i=true, a=false, cd=0) { dx=r*1.5; dy=r*0.866025; sy=(i) ? -0.1 : 0; az=(i) ? 0.2 : 0; r1=(a) ? r-w/2-(v.z+0.2) : r-w/2; ...
glb/cad_ae9e14c78818.glb
Create a support structure for a basket by constructing a grid of intersecting thin plates. First, create eight vertical plates, each measuring 0.5mm thick, 60mm long, and 30mm high. Position these plates parallel to each other along the X-axis at X coordinates of -22, -16, -10, -4, 4, 10, 16, and 22mm, centered on t...
support_03(); module support_03() { difference() { union() { for ( i = [ [-22,0,0], [-16,0,0], [-10,0,0], [-4,0,0], [4,0,0], [10,0,0], [16,0,0], [22,0,0], ]) { ...
glb/cad_7680f4aa3e61.glb
Create a parametric lower Z motor mount consisting of a vertical extrusion mounting plate and a horizontal motor mounting assembly. Start with a vertical extrusion mount plate 85mm wide, 62mm high, and 5.5mm thick. Center a rounded rectangular cutout 35mm wide by 40mm high in the plate. Add four M5 screw holes at the...
include <./MCAD/units.scad> include <./MCAD/boxes.scad> $fn=32; MakeClamp = false; Rod_Dia = 10; LayerHeight = 0.3; Rod_Clearance = 0.5; Rod_Offset = 65; ExtrusionMount_Thick = 5.5; ExtrusionMount_Height = 62; ExtrusionMount_Width = 85; ExtrusionMount_ScrewSpacing_Wide = 70; ExtrusionMount_ScrewSpacing_High = 50; ...
glb/cad_2c590058db00.glb
Create a pen holder base with a square footprint. Start by constructing a main body that is 69mm wide and 69mm long (53mm plus two 8mm radii corners), with a total height of 15mm. The corners of this body should be rounded with a radius of 8mm. Hollow out the center to create a reservoir that is 60mm wide and 60mm lo...
$fn=50; T=3; difference() { union() { difference() { union() { body(53,53,8,15); } translate([0, 0, T]) body(50,50,8,12); } } hole(51/2,51/2); hole(-51/2,51/2); hole(51/2,-51/2...
glb/cad_b310e60ca767.glb
Create a Rounded-edge Case by constructing a main outer body and hollowing it out. Start with a solid rounded rectangular prism with overall dimensions of 2.1mm in width (x), 10mm in depth (y), and 5mm in height (z). All corners and edges of this prism must be rounded with a radius of 1mm, using a 16-facet resolution f...
customizer_x=2; customizer_y=10; customizer_z=5; customizer_facets=16; customizer_rounding_radius=1; customizer_wall_thickness=0.1; module rounded_cube(size_x,size_y,size_z,facets,rounding_radius) { hull() { translate([rounding_radius,rounding_radius,rounding_radius]) sphere (r=rounding_radius,$fn=fac...
glb/cad_c1f25590accf.glb
Create a Customizable ScrOG Trellis consisting of a grid platform and four supporting legs. First, construct a square grid platform 280mm x 280mm with a thickness of 6mm. Divide the surface into a 4x4 array of square openings. To achieve this, remove 16 square cutouts from the platform, each with a size calculated by...
$fn=10; TRUE=1; FALSE=0; PRINT_MODE = FALSE; DRAW_LEG = TRUE; DRAW_GRID = TRUE; pot_outter_dim = 190; pot_inner_dim = 180; pot_base_dim = 140; pot_base_height= 175; outter_rim_dim = 280; array_dim = 4; leg_length = 120; thick = 6; insert_dia = 5; insert_depth = 3.5; bolt_dia = 3.2; bolt_spacing = ...
glb/cad_d4138456cb18.glb
Create a customizable can with a bayonet cap consisting of a base and a lid. For the base, create a cylinder with an inner diameter of 95mm and an inner height of 20mm. The floor thickness is 1mm and the wall thickness is 1.5mm. The top of the base wall features a bayonet-style locking mechanism: create a ring with a...
part=1; dia=95; ihb=20; ihc=0; ft=1; wt=1.5; dr=0; dh=0; $fn=100; module BaseInwards() { } module BasisWand(ri, h) { rotate_extrude() translate([ri, 0, 0]) polygon([ [0,0], [wt,wt], [wt,h-8-2], [wt+2,h-8], [wt+2, h-1], [wt+1, h], [0,h] ]); } module Base() { difference() { union() { BasisWand(d...
glb/cad_da2b83f663a3.glb
Create a mobile phone model with a main body measuring 157mm in height, 77mm in width, and 6.7mm in thickness. The body should have rounded corners with a radius of 9.5mm and curved sides that taper slightly toward the edges. On the left side, add three small rectangular buttons: a short one near the top and two longe...
height = 157; width = 77; thickness = 6.7; xradius = 9.5; curve = 2.3; nocurve= thickness/2 - curve; step = 0.1; screenwidth = 1080/401*25.4; screenheight = 1920/401*25.4; screentopoffset = (height-screenheight)/2; knobradius = 1; onbuttonradius = 40; function inset(input) = (input <= nocurve ? 0 : curve-sqrt((cur...
glb/cad_77d6db27294c.glb
Create a smartphone model with a height of 137mm, a width of 66mm, and a thickness of 7mm. The main body should have rounded corners with a radius of 9.5mm and curved side edges with a profile radius of 2.3mm. On the top edge, center a small rectangular cutout for the speaker. On the left side, add two small protrudin...
height = 137; width = 66; thickness = 7.0; xradius = 9.5; curve = 2.3; nocurve= thickness/2 - curve; step = 0.1; screenwidth = 750/326*25.4; screenheight = 1334/326*25.4; screentopoffset = (height-screenheight)/2; knobradius = 1; onbuttonradius = 40; function inset(input) = (input <= nocurve ? 0 : curve-sqrt((curv...
glb/cad_f63af6a3585a.glb
Create three identical puzzle pieces, each composed of seven connected cubes with a side length of 10mm. To construct one piece, start with a 3x2 grid of cubes (30mm by 20mm by 10mm) and add a single 10mm cube centered on the front edge of the middle column, extending the piece to a total length of 30mm in the x-axis, ...
cube_size=10; overlap = 0.5; make_seven_set(); module make_seven_set() { translate([cube_size*3.5,0,0]) rotate([90,0,0]) makex(inverse_7_18); translate([0,-cube_size*0.5,0]) rotate([90,0,0]) makex(inverse_7_18); translate([-4*cube_size,-cube_size,0]) rotate([90,0,0]) makex(inverse_7_18); } modu...
glb/cad_c7be5e42d101.glb
Create a Block and Tackle model consisting of two identical pulley blocks connected by a rope system. Each block is composed of two parallel side plates. Create these plates as hulls of two cylinders of radius 7mm and height 3mm, positioned at the ends of the block, connected by a central axis. Along the x-axis of eac...
$fn=32; e=0.02; xaxis=[1,0,0]; yaxis=[0,1,0]; zaxis=[0,0,1]; phi=(1+sqrt(5))/2; n_pulley=2; n=n_pulley-1; l00=30; dl=1/2*l00; l0=l00-dl*(1-cos(360*$t))/2; s0=30; ds=dl*2*n_pulley; s=s0+ds*(1-cos(360*$t))/2; echo((1-cos(360*$t))/2); rr=1/2; dhp=1; hp=2*dhp+2*rr*sqrt(2); r0=5; dr0=1.5*rr; ri=3/2; dri=.2; hs=3; ...
glb/cad_28fc71f68323.glb
Create a ratchet strap cover designed for a 25mm wide strap. The main body is a protective corner piece formed by the intersection of a cylinder with a radius of 16mm and height of 34mm, and a complex block. Within this volume, carve out a central channel that is 20mm wide and 20mm deep to accommodate the strap. At t...
strapWidth = 25; strapHeight = 2; coverLenghtX = 20; coverLenghtY = 20; coverWidthPlus = 0; enableBuckle = 1; $fn=40; cover(); side(); if(enableBuckle==1){ buckle(); } module buckle(){ difference(){ translate([10,-strapHeight-3.5,0])cube([5,2.5,strapWidth+9]); translate([10,-10,strapWidth])ro...
glb/cad_e74e8dcaa399.glb
Create a protective cover for a Meanwell SE-600-12 power supply. Start by constructing a main rectangular block with overall dimensions of 70mm in width, 67mm in depth, and 63mm in height. The walls of this enclosure must be 5mm thick. From this main block, remove a central rectangular section to create an open cavit...
$fn=30; thickness = 5; rotate([90,0,0]) difference(){ union(){ cube([60+2*thickness,80-23+2*thickness,63],center=true); translate([60/2+thickness/2,23,0]) cube([thickness,80,63],center=true); } translate([0,thickness,0]) cube([60,80-23+thickness,63-2*thickness],center=true); translate([0,-28-2,0]) cube([48+2, 28+2, ...
glb/cad_ab664d7163d3.glb
Create a Generic Robot Chassis consisting of a floor, side walls, and a top plate. Start with a rectangular floor measuring 135mm in length and 91.4mm in width (calculated from board width 86.5mm plus two 2.1mm walls and two 1mm gaps), with a thickness of 2.1mm. Attach two side walls to the floor, each 50mm high and ...
include <ChassisCode.scad> TopServo = NO_SERVO; DriveServo = S3003; FrontWheel = ROLLER; Show = 3D_VIEW; BattLen = 60; BattWid = 65; BattHgt = 17; ServoMntDia = 1.8; ServoMntHgt = 5; ServoMntLen = 6; ServoGap = .75; SideServoDist = 79; TopServoDist = 10; BoardWid = 86.5; BoardLen = 80; BoardThk = 1.6; BoardGap = ...
glb/cad_d7f72a6046d1.glb
Create a filament spool roller spacer consisting of two concentric, stacked cylindrical discs with a central hole. First, create a wide base cylinder with a radius of 6.5mm and a height of 1.5mm. Directly on top of this base, center a second, narrower cylinder with a radius of 3.8mm and a height of 3mm. Finally, bore a...
difference(){ union(){ cylinder(r=3.8, h=3); cylinder(r=6.5, h=1.5); } translate([0,0,-1]) color("red") cylinder(r=2.5, h=8); }
glb/cad_2b4075052f18.glb
Create a Barbell-style PSU Prusa Mount. The object is a 5mm thick base plate featuring a crisscross pattern of barbell-shaped supports. Construct four primary barbell elements extruded to 5mm height. These barbells are defined by two circular ends connected by a rectangular bridge. Position these elements to create a...
$fn=140; smoother = 12; RTX = 69.0; RTY = 49; LBX = -3.0; LBY = 0.0; RBY = 64.0; RBX = -26.5; RADB = 8; RADN = 4; LNRN = 45; LNRO = 50; LNRP = 65; LNRQ = 100; LNRT = 120; LNRB = 150; LNRC = 190; buildit(); module buildit(){ translate([35,10,0]) linear_extrude(height=5)barbell([5.5,39],[RBX,RBY],RADN,RADB+.5...
glb/cad_13ba7f1054f7.glb
Create a 3D model of a chess king piece based on a base unit size of 100mm. The piece is constructed by combining two intersecting hulls. First, create a hull that connects a centered cube of 75mm x 75mm x 0.01mm at the base to a smaller centered cube of 75mm x 18.75mm x 0.01mm positioned 250mm above the base. Second, ...
Taille=100; RC=Taille*75/100; PC=Taille/2; Vue="Roi"; if(Vue=="Tout") { translate([-Taille*4,0,0]) roi(); translate([-Taille*3,0,0]) reine(); translate([-Taille*2,0,0]) fou(); translate([-Taille*1,0,0]) cavalier(); tour(); translate([Taille*1,0,0]) pion();} if(Vue=="Roi"){roi();} if(Vue=="Reine"){reine();} if(Vue=="Fo...
glb/cad_fd3c98587e8e.glb
Create a parametric radiator towel hook with a total width of 10mm. The core structure consists of two identical C-shaped brackets connected by a central bar. Each bracket is formed by a large outer circle with a diameter of 33mm and a concentric inner circular cutout with a diameter of 23mm, creating a wall thickness ...
PIPE_DIAMETER=23; PIPE_DISTANCE=22; WALL_THICKNESS=10; HOOK_WIDTH=10; NOZZLE=0.4; NUM_WALLS=3; FN=360; ANGLE=60; module c_shape(diameter, wall_thickness, height, angle) { linear_extrude(height) difference() { circle(d=diameter + wall_thickness, $fn=FN); circle(d=diameter, $fn=FN); polygon ( ...
glb/cad_8fca812e474e.glb
Create a 2.5-inch to 3.5-inch bottom-mount drive adapter consisting of two identical mirrored brackets. For one bracket, create a flat plate 2.8mm thick. The main body is formed by the convex hull of four circles, each with a radius of 3.7mm, positioned at the following coordinates: (0, 0), (-17.65, 4.8), (-17.65, 49.1...
ssd_h2h_x = 61.8; ssd_h2h_y = 76.7; bay_h2h_x = 95.3; bay_h2h_y = 44.3; delta_bay_ssd_y = 4.8; delta_bay_ssd_x = (bay_h2h_x - ssd_h2h_x) / 2; hole_diam = 3.4; mount_width = 2.0; thickness = 2.8; ssd_thick = 1.2; adapter_body(); translate([12,0,0]) mirror() adapter_body(); module adapter_body() { hole_radius = h...
glb/cad_8bc0c3041625.glb
Create two identical 2.5-inch to 3.5-inch drive adapter plates. Each plate is 2.8mm thick. The main body is formed by the convex hull of three circles with a radius of 3.7mm, positioned at the origin (0, 0), at (-17.15, 4.8), and at (-17.15, 49.1). From this body, remove a central vertical cylinder with a diameter of 3...
ssd_h2h_x = 61.8; ssd_h2h_y = 76.7; bay_h2h_x = 95.3; bay_h2h_y = 44.3; delta_bay_ssd_y = 4.8; delta_bay_ssd_x = (bay_h2h_x - ssd_h2h_x) / 2; hole_diam = 3.4; mount_width = 2.0; thickness = 2.8; ssd_thick = 0.6; adapter_body(); translate([12,0,0]) mirror() adapter_body(); module adapter_body() { hole_radius = h...
glb/cad_14e3d3eecd43.glb
Create a Customizable Espresso Tamper Station by constructing a hollow cylinder with a height of 53mm, an outer diameter of 80.5mm, and an inner diameter of 70.5mm, resulting in a wall thickness of 5mm. Center the cylinder vertically. Cut a notch into the side of the cylinder to create a handle groove. This groove sho...
resolution = 100; fillet_radius=5; height = 53; wall_thickness = 5; inner_diameter=70.5; handle_diameter=19; handle_groove_depth=28; $fn = resolution; outer_diameter=inner_diameter+2*wall_thickness; module fillet() { translate(v = [handle_diameter/2+fillet_radius, 0, height/2-fillet_radius]) rotate(a=[-...
glb/cad_a1c14e859420.glb
Create a customizable wall hook consisting of a base and a curved hook element. Start by creating a base that is 40mm wide, 40mm high, and 6mm thick. Give the top surface of this base a slight convexity of 3mm. Attached to this base, construct a hook that rises to a height of 36mm. The hook should be formed by a roun...
base_thickness = 6; base_height = 40; base_width = 40; hook_distance = 36; fixing_hole = 4; point_size = 4; more_cutaway = 0.7; base_convexity = 3.0; cavity = 0; cavity_rim = 2; Sfn = 30; module Cavity() { if (cavity > 0) { color("red") translate([0, 0, -base_thickness / 2]) { resize([base_wid...
glb/cad_577dce9e468f.glb
Create a NAS v2 Mini-ITX case by assembling several flat plates and internal supports. Start with two large side panels, each 180mm wide by 210mm high and 3mm thick. Center a circular cutout with a radius of 110mm on each side panel. Create a base and a top lid, both 180mm wide by 165mm deep and 3mm thick, with addit...
module atxPowerSupply() { color( "white" ) translate([0,8,3.5]) cube([150,81.5,40]); translate([150,9.5,4]) cube([5,25,33]); translate([150,36,10]) cube([5,11,23]); translate([150,69,23.5]) rotate([0,90,0]) cylinder(r=19.5,h=20,center=true,$fn=96); translate([160,12.4,39.5]) rotate([0,90,0]) cylinder(r=1.7,h=20,c...
glb/cad_8bf695dfbafd.glb
Create an Orca 0.4x Hotend cooling ring. Start by constructing a central cooling nozzle mount. This consists of a hollow cylinder with an inner radius of 11mm and a height of 6.5mm. The wall thickness is 1.5mm. The outer boundary of this cylinder is defined by a radius calculated as the inner radius plus the height mul...
$fa = 5; $fs = 0.5; slot_r = 1.00; slot_angle = 45; inner_r = 11; thickness = 1.50; nozzle_h = 6.5; %union(){ translate([0,0,-7])cylinder(r=12.5/2,h=12,$fn=16); translate([5,-0,10.5])cube([27,32,11],center=true); translate([0,0,16])cylinder(r=13.5/2,h=37,$fn=16); } %translate([39,0,20.5])rotate([0,30,0]){ cube(...
glb/cad_887890e2b216.glb
Create an Orca 0.4x Hotend cooling ring designed to house a cooling fan and direct airflow toward a thermal core. Start by creating a central cylindrical nozzle housing with a height of 8mm. The inner radius is 9.5mm, and the outer radius is approximately 12.5mm, with a wall thickness of 0.75mm. Construct a fan mou...
$fa = 5; $fs = 0.5; slot_r = 2; slot_angle = 45; inner_r = 9.5; thickness = 0.75; nozzle_h = 8; %union(){ translate([0,0,-7])cylinder(r=12.5/2,h=12,$fn=16); translate([5,-0,10.5])cube([27,32,11],center=true); translate([0,0,16])cylinder(r=13.5/2,h=37,$fn=16); } %translate([39,0,20.5])rotate([0,30,0]){ cube([30*...
glb/cad_e0656addc691.glb
Create a Mendel Foot support by combining a vertical rectangular block and a horizontal base. Start with a vertical block measuring 20mm by 20mm with a height of 45mm, and attach a horizontal block measuring 20mm by 20mm by 10mm centered at the bottom. On the top surface of the horizontal block, place a scaled foot mod...
M4=4.5; M4Nut=7.5; FootHeight=45; FN=20; rotate([180,0,0]) mirror([0,0,0]) difference() { union() { translate([0,0,FootHeight/2-5]) cube([20,20,FootHeight],center=true); cube([20,20,10],center=true); translate([-10,18,40]) rotate([0,0,0]) rotate([180,0,0]) import_stl("footscaled.stl"); } translate(v=[6,6,0]) zhole...
glb/cad_e8ca79ba08a2.glb
Create a streaming device wall mount with a main enclosure and an integrated mounting bracket. The main case is a hollow rectangular box with external dimensions of 164mm width, 30.5mm height, and 103mm depth, featuring a wall thickness of 2mm. The interior cavity for the device measures 160mm by 26.5mm by 99mm. The to...
wall_thickness = 2; mounting_hole_diameter = 6.5; device_width = 160; device_depth = 99; device_height = 26.5; top_bezel_width = 3.5; port_bezel_width = 3.5; port_cutout_width = 0; port_cutout_height = 0; port_cutout_width_offset = 0; port_cutout_height_offset = 0; difference(){ cube([device_width+wall_thickn...
glb/cad_09e38f78eb75.glb
Create a Finger Pen Holder consisting of two joined cylindrical shells. First, create a finger ring with an inner diameter of 21mm, a wall thickness of 2.5mm, and a height of 18mm. Cut a 9mm wide rectangular slot out of the side of this ring to allow a finger to slide in. Second, create a pen holder cylinder with an i...
Ring_L = 18.0; Ring_HD = 21.0; Ring_C =9.0; Ring_T = 2.5; Pen_L = 18; Pen_HD = 10.1; Pen_C = 9.5; Pen_T = 2.5; Pen_A =45; Distance = 0; Total_W = Ring_HD+(Ring_T*2)+(Pen_HD*2)+(Pen_T*2)+(Distance*2); $fn=200; difference(){ Outer_Structure(); holes(); } module Outer_Structure (){ cylinder(d1=Ring_T+Rin...
glb/cad_b85e78a82eaf.glb
Create a Minecraft-inspired house composed of 10mm cubes arranged in a 3D grid. Each cube should have small 0.5mm deep bevels or cutouts on its edges to create a distinct grid-like pattern. The structure is defined by a 3D array of 10x10x8 units. Construct the house by placing cubes at the following coordinates (x, y,...
$fn=32; e=0.02; xaxis=[1,0,0]; yaxis=[0,1,0]; zaxis=[0,0,1]; phi=(1+sqrt(5))/2; a=10; f=.5; g=.5; dxprint=3; col1="red"; col2="lime"; house= [ [ [0,0,0,0,0,0,0,0,0,0], [0,1,1,1,1,1,1,1,0,0], [0,1,0,0,0,0,0,1,0,0], [0,1,0,0,0,0,0,1,0,0], [0,0,0,0,0,0,0,1,0,0], [0,1,0,0,0,0,0,1,0,0], [0,1,0,0,0,0,0,1,0,0], [0,1,...
glb/cad_65b6dab48272.glb
Create a holder rod M8 consisting of a main clamp body and an attached mounting bracket. Start with a base block 4mm wide, 45mm long, and 10mm high. Add a semi-cylindrical outer shell with a radius of 8mm and a height of 10mm, centered at X=8, Y=15. Within this shell, create a central cylindrical hole with a radius of ...
rod=8; rhnaruj=8; hhnaruj=10; bolt=3; boltplate1=bolt*5; boltplate2=bolt+1; boltplate3=24; ze=10; xe=10; ye=10; re=3/2; union(){ difference(){ union(){ cube([boltplate2,boltplate3,hhnaruj]); translate([8, 15,0]) cylinder(h = hhnaruj, r = rhnaruj); ...
glb/cad_42ec7655b110.glb
Create an LM8UU bearing clamp for a Graber i3 printer. The main body is a block 12mm wide. Centered within this block, create a cylindrical cutout for a bearing with a diameter of 15.5mm and a length of 24.5mm, inset 2mm into the frame. Flanking this central cutout, position two mounting holes 20mm apart (10mm from t...
slop = .25; m3_dia = 3; m3_rad = m3_dia/2+slop; m3_cap_dia = 5.7; m3_cap_rad = m3_cap_dia/2+slop; m3_cap_thick = 1.65+slop/2; m3_cap_hex_rad = (2/cos(30))/2; m3_nut_dia = 6.5; m3_nut_rad = m3_nut_dia/2+slop; m3_nut_thick = 2.4; lm8uu_dia = 15; lm8uu_rad = lm8uu_dia/2+slop; lm8uu_len = 24+slop; lm8uu_inset = 2; wa...
glb/cad_69bd52aaf27f.glb
Create a Hacksburg Logo Keychain by starting with a rectangular base measuring 7.8mm by 7.8mm with a thickness of 0.5mm. On top of this base, add a grid of small cubes, each 1.8mm wide, 1.8mm deep, and 0.5mm high, spaced 0.2mm apart. Arrange these cubes in a 4 by 4 grid, though the final row and column are slightly tru...
cube([7.8, 7.8, 0.5]); locations = [[2, 1], [1, 2], [2, 2], [3, 2], [1, 3], [3, 3], [4, 3]]; union() { difference() { for (i = [0:2:7.8]) { for (j = [0:2:7.9]) { translate([i, j, 0.5]) cube([1.8, 1.8, 0.5], [true, false, false]); } } for (i = [0:6]) { translate([locations[i][0]*2-1.1, locations[i][1...
glb/cad_04011657f6a3.glb
Create a Hotspot Fan Holder designed to house a 95.75mm by 57.5mm by 17.5mm hotspot and attach to an 80mm by 80mm by 25mm computer fan. Construct a rectangular frame with a top plate of 4mm thickness. The outer dimensions of the frame should be 92mm by 92mm (80mm fan size plus 12mm overhang on each side). The walls o...
fan_size=80; fan_thickness=25; hole_diameter=4.2; hole_offset=2; fan_diamter=75; fan_overhang = 12; hotspot_length = 95.75; hotspot_width = 57.5; hotspot_thickness = 17.5; hotspot_offset = 12; wall_thickness = hole_diameter+(hole_offset*2); top_thickness = 4; set_screw_size = 2.8; slot_diff = 2; slot_size = hot...
glb/cad_d809710f8aa2.glb
Create a Christmas bauble ornament based on a mathematical rose curve. Start by generating a hollow spherical shell with an outer radius of 25mm and a wall thickness of 1mm. The shell's surface is defined by the intersection of a sphere and a complex extruded volume. This volume is created by sweeping a circle with a r...
N=6; Rout=25; wall_thickness = 1; Rc=wall_thickness/2; R0=(Rout-Rc)/2; A=(Rout-Rc)/2; module ear() { translate([0,0,2*Rout+1]) multmatrix([[ 1, 0, 0, 0], [ 0, 0, 1, 0], [ 0,-1, 0, 0], [ 0, 0, 0, 1]]) rotate_extrude($fn=72) ...
glb/cad_16308c5b1fca.glb
Create a Christmas bauble decoration based on a mathematical rose curve. Start by generating a 3D volume using a sphere with a radius of 25mm, centered at (0, 0, 25). Within this sphere, create a hollow shell with a wall thickness of 1mm. The interior of the shell is defined by a parametric rhodonea curve extruded ve...
N=5; Rout=25; wall_thickness=1; Rc=wall_thickness/2; R0=(Rout-Rc)/2; A=(Rout-Rc)/2; module ear() { translate([0,0,2*Rout+1]) multmatrix([[ 1, 0, 0, 0], [ 0, 0, 1, 0], [ 0,-1, 0, 0], [ 0, 0, 0, 1]]) rotate_extrude($fn=72) ...
glb/cad_53e803fdf821.glb
Create a parametric Christmas bauble based on a rhodonea rose curve. Start with a sphere of radius 25mm centered at (0, 0, 25). The main body is formed by a thick shell with a wall thickness of 1mm. The shell's path follows a rose curve defined by the polar equation $r = (25 - 0.5) \cos(3\theta/7)$, where the radius os...
N=3; D=7; Rout=25; wall_thickness=1; Rc=wall_thickness/2; R0=Rout-Rc; module ear() { translate([0,0,2*Rout+1]) multmatrix([[ 1, 0, 0, 0], [ 0, 0, 1, 0], [ 0,-1, 0, 0], [ 0, 0, 0, 1]]) rotate_extrude($fn=72) translate([...
glb/cad_c49a891dfb2e.glb
Create a Raspberry Pi Zero USB port mount by starting with a central rectangular block measuring 30mm in length, 8mm in width, and 7mm in height. Center this block on all axes. From this main body, remove a smaller centered rectangular volume of 13.3mm by 9mm by 5.6mm to create the primary socket for the USB port. Addi...
fn=100; rotate([0, 180, 0]) { difference() { cube([30,8,7], true); translate([0, 0, -((7-5.6)/2)]) cube([13.3,9,5.6], true); translate([0, -3, -((7-6.2)/2)]) cube([14.8,0.5,6.2], true); translate([(-11.75),0.5,0]) cylinder(30, 2/2, 2/2, true, $fn=fn); ...
glb/cad_813def754f49.glb
Create a V-Slot Clip-On Endcap Cover designed to fit a 2060 profile. Start by creating a rectangular base with a height of 4mm. On top of this base, construct a clip mechanism designed for an internal channel fit. The clip should have a total height of approximately 9.15mm (calculated from the sum of the base height 3...
L1 = 60; Fit_Type = 1; ExtEnd_ON =0; M5_Hole_ON = 0; V_ON = 1; Base_Ht = 4; Ht = 11; Rnd_OD = 6.0; Rnd_Ht = 2; Bmp_Add = .25; Bmp_Ht = 2; M5_OD = 5.6; M5_Hd_OD = 10.0; M5_Hd_Ht = 1.5; Clip_Base_Ht = 3.375; Clip_Connect_Ht = 3.75+2; Clip_Ht = Clip_Base_Ht+Clip_Connect_Ht+1.875; Rnd_Rad = Rnd_OD / 2.0; L_...
glb/cad_a007e3530e52.glb
Create a Parametric Drill Bit Case consisting of a base and a cover. The base is a rectangular box with outer dimensions of 80mm width, 25mm depth, and 45mm height. The walls are 1.5mm thick with 3mm chamfers on the corners. The interior of the base is hollowed out, leaving a solid bottom floor at a height of 35mm. ...
select_part(3); show_labels = true; box_width = 80; box_depth = 25; box_height = 140; drill_bits = [ [ [10, "10", 132], [9.5, "9.5", 126], [9, "9", 125], [8.5, "8.5", 117], [8, "8", 117], [7.5, "7.5", 109], [7, "7", 109] ], [ [6.5, "6.5", 101], [6, "6", 94...
glb/cad_1cc3af866d36.glb
Create a delta effector and carriage for magnetic supports. Start by constructing a truncated cone with a height of 10mm, a base radius of 50mm, and a top radius of 25mm. This cone must have a triangular cross-section, defined by only 3 facets. From this main body, remove a central vertical cylinder with a radius of 8m...
difference() { intersection() { union() {cylinder(r1=50,r2=25,h=10,$fn=3); difference() { cylinder(r=16/2,h=15); cylinder(r=9.2/2,h=15); }} cylinder(r1=35,r2=20,h=15); } cylinder(r=16/2,h=9); cylinder(r=2.5/2,h=25,$fn=20); translate([16,0,0]) cylinder(r=12/2,h=20); for(i=[0:120:359]) { rotate(i) balls(); } trans...
glb/cad_b333cabcdc73.glb