Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create an Aeropress Stirrer and Scoop Holder. The model consists of two main vertical attachment sections joined by a base. First, create a cylindrical holder for a filter. This is a semi-circular shell with an inner diameter of 70mm and a wall thickness of 1.3mm. The shell has a height of 24.7mm and wraps around appr...
fh_od = 70; fh_ht = 10; fl_wd = 80; sp_od = 12; sp_ht = 36; st_wd = 32; st_th = 5; st_ht = sp_ht; wl_th = 1.3; $fa = 3; module spoon_holder() { translate([0,0,sp_od/2+wl_th]) difference() { hull() { union() { cylinder(d = sp_od + 2*wl_th, h=sp_ht-sp_od/2); ...
glb/cad_03140d472059.glb
Create a guitar string winder tool. Start with a rectangular base measuring 29mm wide, 13.22mm deep, and 16mm high. From this base, remove a smaller central rectangular volume measuring 24mm wide, 8.22mm deep, and 14mm high, leaving a thin outer wall and a bottom floor. Centered on top of this base, add a hexagonal pri...
ht=14; w=23+1; d=7.22+1; ht2=ht+2; w2=w+6; d2=d+6; difference(){ translate([-w2/2,-d2/2,0])cube([w2,d2,ht2]); translate([-w/2,-d/2,-0.01])cube([w,d,ht]); } translate([0,0,ht2-0.01]){linear_extrude(height = 20){ cylinder(d2/2,30,10); circle(3/8*25.4/2,$fn=6); } cylinder(8,d2/2,3); } translate([w/2,d2/2,0])cyli...
glb/cad_c7abceb4b72a.glb
Create a small rectangular enclosure for a Raspberry Pi B and TNC-Pi board. The main box consists of a bottom plate measuring 95mm by 65mm by 2mm. From this base, extend three walls to a height of 44mm: two side walls 3mm thick along the length and one side wall 3mm thick along the width, leaving a 3mm wide gap at the ...
$fs = 0.01; module standoffs(height=10) { difference() { cylinder(h=height, r=3.5); cylinder(h=height, r=1.3); } } module pi_standoffs() { translate([ 3.5+20, 3.5+15, 0]) standoffs(); translate([61.5+16.5,52.5-7.5, 0]) standoffs(); } module lid_vent(len=35) { translate([-0.75, 0,-2]) cube([1.5,len,10]...
glb/cad_cc6416eb3262.glb
Create an air shroud for an Intel Xeon Phi 3120P. The model is a complex duct composed of four stacked sections and a top fan plate. Start with the outlet base, a 11mm tall section with a footprint defined by a polygon with vertices at [0,0], [7,0], [9,2], [24,2], [26,0], [60,0], [62,2], [81,2], [83,0], [90,0], [90,23...
module outlet_outer() { p1 = [[0, 0], [7, 0], [9, 2], [24, 2], [26, 0], [60, 0], [62, 2], [81, 2], [83, 0], [90, 0], [90, 23], [83.25, 23], [83.25, 25], [6.75, 25], [6.75, 23], [0, 23]]; polygon(points=p1); } module outlet_2d() { translate([-45, 0]) difference() { o...
glb/cad_3d6493a52837.glb
Create a mountain bike handlebar plug by constructing a composite cylindrical shape. Start with a central cylinder that has a diameter of 19mm and a height of 12mm, centered on the origin. Attach a wider, thinner base cylinder to the bottom of this central piece; this base should have a diameter of 22mm and a height of...
$fn=100; id=19; od=22; wide=4/2; height=12; difference(){ union(){ cylinder(h = height, r=id/2, center = true); translate([0,0,-height/2-wide/2]) cylinder(h = wide, r=od/2, center = true); } translate([0,0,wide]) cylinder(h = height-wide, r=(id/2)-2, center = true); }
glb/cad_f5857fd66c29.glb
Create a Kinect wall mount adapter consisting of three intersecting rectangular plates, each 4mm thick. First, create a vertical backplate measuring 28mm wide by 91mm high. Center a 10mm diameter hole through the top of this plate. Second, attach a horizontal base plate measuring 28mm wide by 60.67mm long (two-thirds t...
adapter_height=91; adapter_width=28; adapter_length=adapter_height*2/3; adapter_thickness=4; wall_mount_screw_diameter=7; wall_mount_screw_separation_x=adapter_width/3; wall_mount_screw_separation_y=adapter_height/4; kinect_mount_screw_diameter=10; support_cutout_x=0.65; support_cutout_y=0.8; support_angle=45; support_...
glb/cad_82a706ee5c0c.glb
Create a 2020 extrusion profile with a total height of 240mm. Start with a central square block measuring 20mm by 20mm and 240mm tall. From this main body, remove a central vertical cylinder with a radius of 2.5mm. To create the T-slots, remove four rectangular sections from the faces of the main block. On two opposi...
small=0.001; 2020_extrusion(240); module 2020_extrusion(bar_height){ translate([0,0,0]) intersection(){ cylinder(d=26.87,h=bar_height,center=true, $fn=200); difference(){ union(){ difference(){ cube([20,20,bar_height],center=true); ...
glb/cad_81f0907b04bf.glb
Create a Triforce Tetrahedron by starting with a regular tetrahedron that has a side length of 53mm. From the center of this volume, remove a smaller triangular antiprism to create a hollow interior. To refine the structure, ensure the edges and vertices are not sharp; apply a small border radius of approximately 0.8...
l = 53; br = 0.015; h = l*(sqrt(3)/2.0); translate([0,0,l*br]){ difference(){ polyhedron(points=[ [0,0,0], [1*l,0,0], [0.5*l, h, 0], [0.5*l, h/3.0,h] ], faces=[ [0, 3, 1], [1, 3, 2], [2, 3, 0], [1, 2, 0] ]); translate([-0.01*l,-0.005*h,-0.01*h])scale(1.02)polyhedron(points=[ [l*0.5, 0, 0], [l*0.2...
glb/cad_43c8cc87dd7c.glb
Create a toothbrush holder for a glass shelf by starting with a solid rectangular block measuring 50mm wide, 30mm deep, and 80mm high. Carve out a horizontal slot for the glass shelf that is 50mm wide, 17mm deep, and 6mm high, positioned 2mm from the top and 13mm from the side. From the center of the block, remove a re...
$glass=6; $fn=50; module zaklad(){ difference(){ cube([50,30,80]); translate([0,13,2])cube([50,17,$glass]); translate([0,0,12])cube([50,26,65]); translate([2,2,11])cube([46,21,1]); translate([14,20,75])cylinder(h=10,d=9); translate([9.5,0,75])cube([9,20,5]); translate([36,20,75])cylinder(h=10,d=9); ...
glb/cad_3274ee930d62.glb
Create a honeycomb storage system consisting of a grid of hexagonal cells. Each cell is a hexagonal prism with a height of 40mm, an outer radius of 10mm, and a wall thickness of 0.8mm. The cells are arranged in a staggered pattern 7 cells wide by 4 cells deep. For each cell, create a hollow center by removing a smalle...
pcsHigh = 40; pcsRad = 10; pcsWall = 0.8; winkel = 0; totalX = 7; totalY = 4; label = true; labelpercent = 20; labelpos = 270; labelWall = 4 * pcsWall; module wabe(h,r,posx,posy,ws) { translate([posx,posy,0]) { rotate([-winkel,0,0]) { difference() { cylinder(h=h, r=r , $fn=6, center=true ); tra...
glb/cad_359bd197711d.glb
Create a honeycomb storage system consisting of a grid of 25 hexagonal cells arranged in 5 rows and 5 columns. Each cell should be a hexagonal prism with a height of 40mm and an outer radius of 15mm. The walls of the cells should be 0.7mm thick. The cells must be packed tightly in a staggered honeycomb pattern. To cr...
pcsHigh = 40; pcsRad = 15; pcsWall = 0.7; winkel = 0; totalX = 5; totalY = 5; label = true; labelpercent = 20; labelpos = 270; labelWall = 4 * pcsWall; module wabe(h,r,posx,posy,ws) { translate([posx,posy,0]) { rotate([-winkel,0,0]) { difference() { cylinder(h=h, r=r , $fn=6, center=true ); tra...
glb/cad_707ff2592069.glb
Create a Tile Tracker Bicycle Seat Mount. Start with a rectangular base measuring 24mm by 24mm with a thickness of 3.5mm and corner radii of 5mm. In the center of this base, create a semi-cylindrical cutout to accommodate a seat support; this cutout should be a cylinder with a diameter of 7.04mm and a height of 24mm, c...
use <roundedRect.scad>; seatSupportDiameter = 7.04; thicknessOfSupport = 3; TileWidth = 34; supportDepth = 3.5; cornerRadius = 5; cutWidth = 4; tileHoleDiameter = 6; holeOffset = 12; beepHoleDiameter = 2.5; beepHoleOffset = 8; rotate([-90, 90, 90]) difference(){ union(){ roundedRect([TileWidth-cor...
glb/cad_82c2ec2a0dfa.glb
Create a Stack On Cabinet Scope Shim. The main body is a composite shape with a total height of 30mm. Construct the core by combining a central cylinder with a radius of 15mm and two outer cylinders with a diameter of 9.9mm positioned at y=22.55mm and y=-22.55mm, all centered on the Z-axis. Connect these with a hull th...
rotate(a=3.91,v=[0,1,0]){ difference(){ union(){ difference(){ hull(){ translate([15,0,0]){ cylinder(26.2,r=15,center=true); } translate([72.6,22.55,0]){ cylinder(26.2,d=9.9,center=true); } translate([72....
glb/cad_3e353845bebb.glb
Create a double-corner connector for a media storage rack. The object consists of two identical L-shaped corner modules joined together. First, construct a single corner module by creating a base block with dimensions 17mm in length, 5mm in width, and 5mm in height. Apply a 5mm radius fillet to all exterior edges and...
$fn=40; max_l=230; max_h=150; w=6; h=6; d=1.25; da=2; l_lang=168.5; l_hoch=128.5; l_quer=130; space=0; laenge=17; breite=5; hoehe=5; loch=6.5; rloch=.0; hloch=-0.8; mitte=10; was = 2; wieoft = 1; for (x=[0:wieoft-1]){ translate([x*30,x*25,0]) if (was == 1) Ecke (); else if (was == 2) Doppelecke...
glb/cad_1b37fa70157d.glb
Create a bed clamp for a 3D printer with a total width of 36mm. The main body is formed by extruding a specific asymmetric profile. This profile consists of two parallel arms that create a pinching action. The pinching section of the arms has a length of 6mm, while the wider base section extends 7mm. Maintain a gap of ...
width = 36; thickness = 2.75; gap = 3; l1 = 6; l2 = 7; g2 = max(10, gap + 4); r = 0.45 * thickness; d = 0.1 * thickness; hg = gap/2; hg2 = g2/3.6; $fn=50; p = [ [ -l1, -hg - r], [ -l1, -hg - d - r], [ 0, -hg - d - r], [ l2, -hg2 - d - r], [ l2 + d, -hg2 - d - r], [ l2 + d, hg2 + d + r], [ l2, hg2 + d + r...
glb/cad_abf640e1cbf9.glb
Create a spotting scope mount consisting of a rectangular base and two upright circular rings. Start with a rectangular base plate measuring 40mm by 40mm with a thickness of 10mm. The center of the base is hollowed out by a 36mm by 36mm by 7mm cube, leaving a 1.5mm wall thickness around the perimeter. From this base, ...
module screw(x,y,z) translate([x,y,z]) scale(0.1) cylinder(140,25,25); module scope() translate([0,150,-62]) rotate([90,0,0]) scale(1) cylinder(h=300,r=70,$fn=200); module remove() { screw(-11.5,0,8); screw(11.5,0,8); scope(); } module base() { difference() { translate([-20,-20,5]) cube([40,...
glb/cad_e007aab28086.glb
Create a base piece for a tripod head. Start with a main cylindrical body that is 40mm tall with a radius of 18mm. Add a beveled cap on top of this body that is 3mm high, tapering from the 18mm radius of the body to a top radius of 16mm. From the center of the bottom, remove a vertical hole with a radius of 2mm that e...
cap_height = 3; taper_shaft = "yes"; body_height = 40; shaft_height = body_height - 12; shaft_diameter = 16; nut_under_cap = "yes"; nut_size = 4; nut_thickness = 6; nut_height = shaft_height - nut_thickness; color([1,0,0]) translate ([0,0,]) rotate ([0,0,0]) difference() { union(){ translate ([0,0,body_...
glb/cad_e1309225ee6c.glb
Create a split collar by starting with a hollow cylinder that has an outer diameter of 50mm, an inner diameter of 30.59mm, and a height of 50mm. Remove a rectangular section from the side of the cylinder to create a gap, leaving the remaining body as a C-shaped clamp. Drill four holes through the walls of the collar ...
height = 50; diameter = 50; center = 30.59; bolt_dia = 5; sink_depth = 30; sink_dia = 10; bolt_loc = [ [height/2-6, 0, 15], [height/2-6, 0, -15], [-height/2+6, 0, 15], [-height/2+6, 0, -15] ]; difference() { difference() { cylinder(50, d=50, center...
glb/cad_f0e4e4607bee.glb
Create a token holder for board game pieces. The model consists of a circular base with a radius of approximately 45mm and a thickness of 3mm. From this base, extrude a series of vertical walls to create individual compartments. The compartments are arranged radially around a central circular void. The central void i...
output = 1; cover = 0; solidMode = 0; testMode = 0; wallThickness = 1.25; horizontalTolerance = 0.7; verticalExtra = 3; diameterMultiplier = 1.4; stickOutCircular = 2.2; stickOutOther = 3; baseVerticalOffset1 = 1.5; baseVerticalOffset2 = 1.5; coverTolerance = 0; coverLooseTolerance = 1.2; coverThinWall = 1; coverWall...
glb/cad_2dec601c5598.glb
Create a Decora Blank light switch cover. Start by creating a rectangular base that is 33mm wide, 66.5mm long, and 7mm thick. On top of this base, add a secondary layer that is 2mm thick. This upper layer should be a rounded rectangle with a width of 47mm and a length of 106.6mm, formed by the convex hull of two 17mm d...
linear_extrude(5+2) offset(2) offset(-2) square([33, 66.5] - 0.25*[1,1], center=true); linear_extrude(2) difference() { union() { hull() for(Y=96.6/2, X=[-1,1], OFF=5) { translate([0,(Y-OFF)*X]) circle(d=12+OFF); } #for(Y=[-1,1]*91/2, X=20*[-1,1]/2) { translate([X,Y...
glb/cad_ae60a3390cd8.glb
Create a 6-inch Rack Switch unit mount consisting of a front plate, a cabinet, a lid, and a back plate. The front plate is a rectangular slab with a thickness of 3mm. It features four mounting holes for a 6-inch rack, positioned 10mm from the edges. The cabinet is a hollow rectangular box with a depth of 98mm and wal...
$fn = 50*1; sixinch = 155*1; width = 155-20-20; unit = (44.5/19)*6; gauge = 3*1; gauge_box = 2*1; Part = "-"; Units = 2; Depth = 115; screw_head = 7.4; screw_head_height = 2.5; screw_dia = 3; screw_hole = 2.3; screw_length = 12; nut_4mm = 8.1; slip = 0...
glb/cad_8da91cfbaa41.glb
Create a cylindrical mount for a network switch. Start by creating a solid cylinder with a diameter of 6mm and a height of 6mm. From the center of this cylinder, remove a smaller cylindrical volume to create a hole. This hole should consist of two parts: first, a cylinder with a diameter of 2.1mm that extends from the ...
$fn = 50*1; difference(){ cylinder(d=6,h=6); cylinder(d=2.1,h=3); translate([0,0,3]) cylinder(d=3.2,h=3); }
glb/cad_8caff4ab3163.glb
Create an acetone funnel consisting of a wide square basin that tapers down to a narrow circular spout. The top of the funnel is a square measuring 60mm by 60mm with a wall thickness of 2mm. The basin has a depth of approximately 3.5mm. From the center of the base, create a circular opening with a diameter of 10mm that...
rt2=sqrt(2); difference(){ union(){ boot(); rotate([0,0,90])boot(); rotate([0,0,180])boot(); rotate([0,0,270])boot(); translate([0,0,-10])cylinder(15,4.25,4.25,$fn=30); } translate([0,0,-12])cylinder(40,3.25,3.25,$fn=30); } rotate([0,0,180])booy(); booy(); module boot(){ translate([30-1.5,-31.5,30])cu...
glb/cad_b8b87fb6c30d.glb
Create a fan shroud consisting of a conical nozzle mounted on a square base. Start by creating a square base plate measuring 40mm by 43mm with a thickness of 9mm. At each of the four corners of this base, place a 4mm diameter hole that passes completely through the plate. Centered on this base, construct a hollow trun...
translate([0,0,8.99]) difference(){ cylinder(30,21,5); translate([0,0,-0.01])cylinder(30.02,19,3.5); } difference(){ union(){ cylinder(9,21,21); translate([-20,-20,0])cube([40,40,1]); } translate([0,0,-0.01])cylinder(9.02,19,19); translate([-2.5,-25,-0.01])cube([5,50,9.02]); rotate([0,0,90])translate([-2.5,-25,...
glb/cad_de04d2a47061.glb
Create a Roman clock face. Start with a main disc that is 123mm in diameter (61.5mm radius) and 3mm thick. The outer edge of this disc should be a dodecagon (12-sided polygon) rather than a perfect circle. Bore a 4mm diameter hole through the exact center of the disc. On the top surface of the disc, add raised Roman n...
Minutes=60; X=12; N=1; $fn=12; H=3; Y=60 - X ; raised =1; Font_Size=7; font = "Roman Font 7:style=Slie"; Clock_Face=360/X ; Clock_Face(); module Dots_Numbers() { color("black") { translate([0,0,1]) Clock_Face_Numbers_V2() ; Clock_Face_Dot (X,Y); Clock_Face_Dots (X,Y); }} module Clock_F...
glb/cad_0f9728c2b483.glb
Create a printer measure calibration object with a total footprint of 100mm by 100mm and a height of 50mm. Start by constructing a flat square frame on the base plane that is 100mm wide, 100mm long, and 2mm thick. This frame consists of four outer boundary walls, each 2mm wide, and a central cross formed by one 100mm b...
cube([100,2,2]); translate([0,98,0]) cube([100,2,2]); cube([2,100,2]); translate([98,0,0]) cube([2,100,2]); translate([0,49,0]) cube([100,2,2]); translate([49,0,0]) cube([2,100,2]); intersection() { union() { translate([1,50,0]) rotate([0,0,-45]) translate([-1,0,0]) cube([2,80,2]); translate([50,1,0]) r...
glb/cad_82fe9d41592c.glb
Create an iron tube connector by starting with a main outer cylinder that is 45mm tall with a radius of 15.5mm and a 40-facet resolution. From the center of this main body, remove a smaller concentric cylinder with a radius of 11mm and a height of 47mm to create a hollow core. Additionally, remove a second concentric c...
difference(){ cylinder(45,r=31/2,$fn=40); translate([0,0,-1]) difference(){ cylinder(20,r=25.5/2,$fn=40); cylinder(20,r=22/2,$fn=40); } translate([0,0,25]) difference(){ cylinder(21,r=25.5/2,$fn=40); cylinder(21,r=22/2,$fn=40); } translate([0,0,-1]) cylinder(47,r=16/2,$fn=30); }
glb/cad_03362e54b20e.glb
Create a Parametric Model Rocket Body Tube Cutting Guide by constructing a hollow cylinder. Start with a solid outer cylinder that has a radius of 20mm and a height of 30mm. From the center of this volume, remove a smaller concentric cylinder to create a wall thickness of 4mm; this inner cutout must have a radius of 16...
tube_diameter = 32 ; jig_height = 30 ; wall_thickness = 4 ; $fn = 150; difference(){ cylinder (r = (tube_diameter/2) + wall_thickness, h =jig_height); translate ([0,0,-0.5]) cylinder (r=tube_diameter/2, h = jig_height + 10 ); }
glb/cad_6e6de93b5f26.glb
Create a thermometer module enclosure consisting of a hollowed-out rectangular box with a slanted front. The main outer body should have a total width of 49mm, a depth of 32mm, and a height of 10mm for the base stand, with the upper walls extending to a total height of 30.5mm. The top edges of the enclosure should be r...
text = "ENVIRONMENT"; text_size = 4.5; text_height = 0.4; module_width = 45; module_height = 26.5; depth = 30; cable_hole_diameter = 4.5; stand_height = 10; wall_thickness = 2; incline = 15; edge_radius = 1.5; tx = module_width + 2 * wall_thickness; ty = depth + wall_thickness; tz = module_height + 2 * wall_t...
glb/cad_4240c5697d88.glb
Create a Filterwheel motorization assembly consisting of a base, a middle support, and a top cover. Construct the base as a custom-shaped housing with a height of 12.2mm. In the center, create a circular cutout with a radius of 56mm to accommodate the filterwheel. Add a mounting point for a 28BYJ-48 stepper motor, inc...
use <28BYJ-48.scad>; use <publicDomainGearV1.1.scad>; use <MCAD/shapes.scad>; stepper_axe_meplat = 3.2; stepper_axe_diam = 5.1; m3_diam = 3.2; m3_tete_diam = 6; m3_tete_length = 3; m3_ecrou_size = 5.5 + 0.3; m3_ecrou_length = 3; ray_ext_min = 62.5; ray_ext_max = 66.5; opening_center_dist=50.5; opening_angle = ...
glb/cad_a1b7f9207b60.glb
Create a 3D model of a 28BYJ-48 stepper motor. Start with a main cylindrical motor body with a diameter of 28.25mm and a height of 18.8mm. On the top surface, add a circular flange that extends 0.7mm above the body with a width of 1.0mm, featuring a rectangular notch 17.8mm wide to accommodate the wiring box. Position...
MBH = 18.8; MBD = 28.25; SBD = 9.1; SBH = 1.45; SBO = 7.875; SHD = 4.93; SHDF = 3.0; SHHF = 6.0; SHH = 9.75; MBFH = 0.7; MBFW = 1.0; MBFNW = 8; MBFNW2 = 17.8; MHCC = 35.0; MTH = 0.8; MTW = 7.0; WBH = 16.7; WBW = 14.6; WBD = 31.3; WRD = 1.0; WRL = 30; WRO = 2.2; eps = 0.05; module wires() { color([0.9,0.9,0...
glb/cad_1e14e3e3f4a0.glb
Create an AIO FPV Camera Mount consisting of a support plate and a camera box. First, construct the support plate as a 2mm thick disc with a radius of 25.25mm. Remove a central circular section with a radius of 21.75mm, and further remove four circular cutouts of radius 17.6mm, each centered 20.6mm from the plate's c...
CAMERABOX_ANGLE = 25; CAMERABOX_HEIGHT = 12; CAMERABOX_WALL_THICKNESS = 1.5; CAMERABOX_ZOFFSET = 1.25; CAMERA_DEBUG="false"; CAMERA_WIDTH = 20.25; CAMERA_DEPTH = 8.5; CAMERA_HEIGHT = 14; CAMERA_LENS_WIDTH = 9; CAMERA_LENS_HEIGHT = 7; CAMERA_LENS_DEPTH = 7; CAMERA_LENS_XOFFSET = 0; CAMERA_LENS_ZOFFSET = 0; ...
glb/cad_c7e30dc72754.glb
Create a Customizable Slides Holder consisting of a 2x2 grid of identical racks. Each rack is a rectangular block with a base thickness of 1.5mm and outer walls 1.5mm thick. For each rack, carve out 12 parallel slots designed to hold microscope slides. Each slot must be 2.3mm wide (1.8mm slide thickness plus 0.5mm to...
nCols = 2 ; nRows = 2; slNumber = 12; slThickness = 1.8; slThicknessTol = 0.5; slSpacing = 1.5; slLength = 61.5; slLengthTol = 1; slAngle = 30; btLength = 5; btThickness = 1.5; slWidth = 21.5; wThickness = 1.5; pSlSpacing = slSpacing / cos (slAngle) ; pSlThickness = (slThickness + slThicknessTol ) / cos...
glb/cad_14198b607b75.glb
Create a Rebound score piece replacement by constructing a composite geometric shape with a base width of 13mm and a height of 1.9mm. Start with a main rectangular slab measuring 13mm wide, 30.5mm long, and 1.9mm thick. At one end of this slab, add a rectangular section 13mm wide, 4.5mm long, and 1.9mm thick. Along the...
$fn = 120; W = 13; H = 1.9; L1 = 4.5; L2 = 6.2; L3 = 30.5; L4 = 5.7; L5 = 3.7; L6 = 2.7; A1 = 81; A2 = 78; difference() { union() { translate([0,2.75-H+.2,4.6]) cube([W,L1,H]); translate([0,H,0]) rotate([A1,0,0]) cube([W,L2,H]); translate([0,0,0]) cube([W,L3,H]); translate([0,L3,...
glb/cad_39f861be1efa.glb
Create a customizable pen holder consisting of a circular base with radiating tubular slots. Start by creating a solid cylinder for the base with a radius of approximately 18.6mm and a height of 5mm. Around the center of this base, arrange 10 identical cylindrical tubes. Each tube should have an outer diameter of 13.1m...
pen_diameter = 11.7; nb_pen = 10; height = 180; height2 = 25; angle = 30; offset = pen_diameter*0.1; tot_radius = ((pen_diameter )*nb_pen)/(2*PI); t = sqrt(pow((sin(angle)*height/2),2)+pow(tot_radius,2)); difference(){ union(){ cylinder(r=t, h = 5, $fn=50); pen_holders(); } tran...
glb/cad_249374479249.glb
Create a 3D model of a Raspberry Pi Zero. Start with a main PCB base that is 65mm long, 30mm wide, and 1.4mm thick. The four corners of this base should be rounded with a radius of 3mm. Subtract four cylindrical holes from the PCB, each with a diameter of 2.75mm and a height of 3mm. Position two holes at the left end...
$fn=100; part = "piZero"; header = true; headerDown = false; module header(pins, rows) { color("darkgrey") cube([2.54*pins,2.54*rows,1.27]); for(x=[0:pins-1],y=[0:rows-1]) translate([x*2.54+(1.27+.6)/2,y*2.54+(1.27+.6)/2,-3.5]) cube([0.6,0.6,11.5]); } module pi3() { color("limegreen") difference() { ...
glb/cad_7543066d3c96.glb
Create a Nikon Light Ring designed to hold four LED strips. Start with a central square base plate that is 0.5 inches thick. In the center of this plate, create a circular hole with a diameter of 2.4 inches. Around this central hole, create four rectangular grooves to house the LED strips. Each groove should be 0.41 i...
$fn = 32; InnerRingDia = 2.4; StripWidth = 0.41; LEDWidth = 0.2; LEDSpace = 0.46; MountThickness = 0.5; WallThickness = 0.1; WireX = 0.125; WireY = 0.25; SwitchHoleDia = 0.25; BoxSize = StripWidth * 2 + InnerRingDia + 4 * WallThickness; StripLength = BoxSize - 2 * WallThickness; SwitchWidth = 0.75; SwitchDepth = 1...
glb/cad_89c7a539593e.glb
Create a filter holder for a Miele DA-326 kitchen fan. The main body is a vertical extrusion 75mm high. The profile of this extrusion is a complex polygon: starting from the origin, it goes up to 4.5mm, angles out to a point at 1.5mm x 6mm, extends to 4mm x 6mm, drops to 4mm x 2.5mm, cuts back to 1.5mm x 2.5mm, drops t...
module half_arm() { polygon( points=[[0,0],[0,4.5],[1.5,6], [4,6], [4,2.5], [1.5,2.5], [1.5,1], [1.3,0] ] ); translate([0.65,0,0]) circle(d=1.3, $fn=12); } module arm_plus() { linear_extrude(height = 75, center = false, convexity = 10, twist = 0, slices = 20, scale = 1.0) { half_arm(); translate([8,0,...
glb/cad_fb9e49650b7b.glb
Create a Duplo compatible mushroom consisting of a stem and a hat. For the stem, create a hollow tube by subtracting a cylinder with a 5.1mm radius from a cylinder with a 6.5mm radius, both with a height of 8mm and centered on the origin. For the hat, create a sphere with a radius of 11mm. To flatten the bottom of th...
botom_OR=6.5; botom_IR=5.1; OR=5.1; top_h=3; st_height=8; mushroom_top(); module mushroom_top() { difference() { difference() { sphere(h=8, r=11); translate ([0,0,-11/2]) cube([22,22,11], center=true); } cylinder(r=botom_OR,h=st_height,center=true,$fs = 0.01); } }
glb/cad_2de71f9eedc5.glb
Create a mushroom-shaped toy compatible with Duplo blocks, consisting of a hat and a stem. For the hat, create a sphere with a radius of 11mm. Flatten the bottom of the sphere by removing the lower half using a cube with dimensions 22mm x 22mm x 11mm centered at the base. In the center of the flat bottom, create a vert...
OR=5.1; st_height=8; hat_radius=11; mushroom_top(); module mushroom_top() { difference() { difference() { resize ([0,0,10]) sphere(r=hat_radius); translate ([0,0,-11/2]) cube([22,22,11], center=true); } cylinder(r=OR,h=st_height,center=true,$fs = 0.01); } }
glb/cad_f71200ec0a44.glb
Create a Duplo-compatible mushroom consisting of a stem and a hat. To construct the stem, create a hollow tube by subtracting a cylinder with a radius of 5.0mm from a larger cylinder with a radius of 6.5mm, both with a height of 8mm and centered vertically. At the top of this tube, add a thin circular platform with a...
duplowidth = 31.66; duplolength=31.66; duploheight=9.6; duplowall = 1.55; supportwith=3; botom_OR=6.5; botom_IR=5.0; OR=5.1; IR=3.2; top_h=3; st_height=8; mushoroom_stem(); module mushoroom_stem() { difference() { cylinder(r=botom_OR,h=st_height,center=true,$fs = 0.01); cylinder(r=botom_IR...
glb/cad_42f9e35456d2.glb
Create a FilamenToken by starting with a smooth cylinder that has a radius of 10mm and a height of 1mm. Engrave two lines of text into the top surface of the cylinder, both centered horizontally. Position the first line of text, which reads "Top", 4mm above the center point of the cylinder's face. Position the second l...
$fn=100; line1="Top"; size1=2; off1=4; line2="Bottom"; size2=2; off2=-4; difference() { cylinder(r=10,h=1); translate([0,off1,1]){ text(line1,size=size1,halign="center",valign="center"); } translate([0,off2,1]) { text(line2,size=size2,halign="center",valign="center"); } }
glb/cad_37107eb0ea3c.glb
Create a Pegboard Multimeter Holder designed to hold a digital multimeter and its probes. The main body is a rounded open-top box with external dimensions of 101.6mm in width, 32mm in depth, and 76.2mm in height, with a wall thickness of 1.5mm. The box is divided into two sections by a vertical wall 1.5mm thick, posi...
$fn=30; inch = 25.4; wall = 1.5; Xdim = 4; Ydim = 2; Zdim = 3; YYdim = 28 + 2*wall; XXdim = Xdim*inch; pegx = 3; pegy = 7; pegz = 4; Xwindow = (XXdim-inch)+pegx-10-10; difference() { translate([-(XXdim-Xdim*inch)/2,-YYdim,0]) EmptyBox(XXdim+pegx,YYdim,Zdim*inch+pegz,wall,6); translate([10+inch,-YYdim-2,wall...
glb/cad_5e305a15284a.glb
Create a knob with a D-shaft by starting with a base cylinder 18mm in diameter and 16mm in height, centered on the origin. On top of this base, add a second, taller cylinder with an outer diameter of 10mm and a total height of 18mm. Hollow out the center of this upper cylinder by removing a smaller concentric cylinder ...
TopDiameter=18; TopHeight = 16; ShaftLength=18; ShaftOuterDiameter=10; ShaftInnerDiameter=7; ShaftPinWidth=2; XOffset =1; cylinder (h = TopHeight, r=TopDiameter/2, center = true, $fn=100); difference() { translate([0, 0, TopHeight]) cylinder (h = ShaftLength, r=ShaftOuterDiameter/2, center = true...
glb/cad_950a67a867c7.glb
Create a coil body by revolving a specific profile around a central axis. The profile begins at the axis with a bore radius of 7mm. From the center, extend outward to an outer radius of 15mm along the base. Rise vertically by 4mm to create the first flange, then move inward to a radius of 7.5mm. Continue rising vertica...
D_out = 30; D_i = 15; Wall = 4; Bore = 14; Spl_lenght = 30; rotate_extrude($fn=200) polygon( points=[ [Bore/2,0], [D_out/2,0], [D_out/2,Wall], [D_i/2,Wall], [D_i/2,(Wall + Spl_lenght)], [D_out/2,(Wall + Spl_lenght)], [D_out/2,(2*Wall + Spl_lenght)], [Bore/2,(2*Wall + Spl_lenght)]]);
glb/cad_02fa41b7afed.glb
Create an ANET A8 PCB Led Strip holder. Start by constructing a main body that is 6mm deep, 62mm long, and 25mm high. Within this body, carve out a rectangular slot for the LED strip that is 4mm wide and 2.5mm high, positioned 1mm from the back face and starting 1mm above the base. At the bottom of the body, create a s...
$fn=64; HookRod = 8.3; HookSize = 1.5; HookWidth = 6; HookGuideOffset = 1.2; ShaftLength = 42; HolderLength = 20; CenterHeight = 20; BodyHeight = 5; BodyDepth = 6; Height = CenterHeight + BodyHeight; LedWidth = 4; LedHeight = 2.5; CutoutDepth= 1; CutoutShaft = 0.8; Length = ShaftLength + HolderLength; HookDiameter ...
glb/cad_e922996a9c33.glb
Create a Pen Holder office organizer starting with a rectangular base plate measuring 150mm by 94mm with a thickness of 1.2mm. The base is formed by the convex hull of four 6mm diameter cylinders placed at the corners of a 150mm by 94mm area. On top of this base, add a thin rectangular frame 2mm high that follows the ...
hull(){ cylinder(h=1.2,d=6,$fn=100); translate([150,0,0])cylinder(h=1.2,d=6,$fn=100); translate([150,150,0])cylinder(h=1.2,d=6,$fn=100); translate([0,150,0])cylinder(h=1.2,d=6,$fn=100); }; translate([0,0,1.19]) difference(){ hull(){ cylinder(h=2,d=6,$fn=100); translate([150,0,0])cylinder(h=2,d=6,$fn=100); translate([15...
glb/cad_b2fed54fc7ad.glb
Create a Geetech i3 Pro B extruder mounting bracket. Start with a main rectangular mounting plate 53mm wide, 30mm high, and 7mm thick. At the center of the plate, create a rounded rectangular protrusion that extends the mount. This section should be 42.5mm wide and 20mm high. Within this structure, incorporate a cent...
DRILL_SIZE = 3.2; RETAINED_DRILL_SIZE = 3.0; CAP_SCREW_HEAD = 6.50; M3_NUT_HEAD = 6.6; M3_NUT_THICKNESS = 2.5; M3_SQUARE_NUT = 6; M3_SQUARE_NUT_THICKNESS = 2.5; mount_width = 42.5; mount_height = 20; mount_clearance = 3.5; mount_length = 60; mounting_plate_2(); module rounded_rect(x, y, radius, height){ hull(){ ...
glb/cad_87f53906f9ec.glb
Create a Tool Shelf for a workbench consisting of three tiered rows of holes. The overall unit has a width of 180mm (12 holes per row with 15mm spacing) and a total depth of 61mm. All walls are 3mm thick. Construct the rear shelf with a depth of 18mm and a height of 100mm. Create a horizontal plate 3mm thick containin...
number_of_holes=12; spacing_of_holes=15; rear_hole=9; mid_hole=8; front_hole=8; rear_height=100; mid_height=55; front_height=40; shelf_depth_rear=18; shelf_depth_mid=18; shelf_depth_front=25; wall_thickness=3; carrier_width=(number_of_holes*spacing_of_holes); rear_slate=(rear_height+wall_thickness)/7; mid...
glb/cad_b543e1600359.glb
Create an improved spool holder by constructing a horizontal cylinder with a radius of 19.3mm and a length of 101mm. Hollow out the center of this cylinder by removing a rectangular block that is 26.5mm wide and 19.3mm high, running the full length of the cylinder to create a U-shaped channel. To secure the spool, ad...
$fn=360; bar_width = 26.5; bar_height = 19.3; bar_length = 101; lock_tab_size = 1; side_thickness = 2; difference() { union() { difference() { union() { rotate([0, 90, 0]) cylinder(r=bar_height, h=bar_length, center=true); translate([-(bar_length/2) + (side_thickness/2), 0, bar_h...
glb/cad_1622e532d999.glb
Create a Dual-action Turbine consisting of a central axle and a rotor with three curved blades. Start by creating a circular base plate with a diameter of 22mm and a thickness of 5mm. At the center of this base, add a vertical axle hole with a diameter of 7.5mm. Construct the rotor by creating three identical blades, ...
pi=3.141592654; magDim = [19,3,3]; rd=3 * 210/pi; rh=90; hd=10; ww=5; xw=0.4; $fn=60; bh=8; shd=4; snd=7; brd=22; brt=ww; axd=5; aMin = 0; aMax = 72; dAng = 4; mdx = magDim + [xw*4, xw*2, xw*4]; function cat(L1, L2) = [for(L=[L1, L2], a=L) a]; function gravityWell(x, G, M, s) = (abs(x) < s) ? (-(G * M) / s) :...
glb/cad_8a2d1e737255.glb
Create a Dual-action Turbine consisting of a central axle assembly and three curved propulsion blades. Start by constructing the base and axle: create a circular base with a diameter of 64mm and a height of 8mm. At the center, place a vertical cylindrical support that transitions from a diameter of 14mm at the base t...
magDim = [19,3,3]; rd=58; hd=1; ww=1; xw=0.4; rh=37.25; $fn=60; bh=8; shd=4; snd=7; brd=22; brt=2; axd=1.5; aMin = 0; aMax = 72; dAng = 4; mdx = magDim + [xw*4, xw*2, xw*4]; function sn(x) = (x == 0) ? 1 : sign(x); function cat(L1, L2) = [for(L=[L1, L2], a=L) a]; function gravityWell(x, G, M, s) = (abs(x) < s...
glb/cad_b3a80b7c016a.glb
Create a 3D model of a Spiral Solid Multi Ellipse. The object consists of three identical spiral arms arranged radially around a central vertical axis. Each arm is formed by a series of connected spheres with a radius of 3mm. The overall height of the structure is 40mm, centered vertically. The arms follow an elliptic...
spiralSolidMultiEllipse(height=40,Radius=20,baseRadius=3,frequency=0.25,resolution=25,numPairs=3); module spiralSimple(height=20,Radius=20,baseRadius=3,frequency=1,resolution=25) { union(){ translate ([0,0,-(height/2)]) { for(i=[0:resolution-2]){ hull(){ rotate ([0,0,frequency*360/(resolution-1)*i]) ...
glb/cad_ef45f29c11f4.glb
Create a simple camshaft consisting of a central shaft and a supporting frame. Start by constructing a vertical shaft with a radius of 5mm. The total length of the shaft is 160mm, capped at both the top and bottom with cylinders that have a radius of 15mm and a height of 10mm. At the bottom end, add a 10mm x 10mm x 30m...
spacer = 10; cam_rad = 20; cam_offset = 20; cam_base_rad = 10; cam_tip_rad = 4; shaft_rad = 5; shaft_cap_rad = 15; cam_count = 8; cam_width = 5; frame_width = cam_base_rad * 2; frame_depth = 4; frame_height = 40; frame_drop = 28; module cam(cam_base_rad, cam_tip_rad, cam_width, cam_offset) { hull() { cylinder(h=c...
glb/cad_d7fc12fd08d3.glb
Create a dishwasher strainer basket with overall dimensions of 58mm in length, 68mm in width, and 14mm in height. The object is a hollow rectangular shell with a wall thickness of 1.8mm. The bottom, front, back, left, and right faces of the basket are composed of a honeycomb lattice. The bottom face uses a honeycomb p...
length=58; width=68; height=14; cell_size=10; cell_size_side=7; wall_thickness=1.8; solid_walls="No"; make_struts="Yes"; strut_size=3; strut_position=5; solid_wall = solid_walls=="Yes"; honeycomb(length, width, wall_thickness, cell_size, wall_thickness); if (!solid_wall) { translate([0,wall_thickness,0]) rotate...
glb/cad_a035acda4b31.glb
Create a dishwasher strainer basket in the shape of a rectangular box with outer dimensions of 70mm in length, 50mm in width, and 20mm in height. The walls of the box should have a thickness of 1.75mm. The bottom and all four side walls must be perforated with a hexagonal grid pattern. Each hexagonal cell should have ...
box=[70,50,20]; holesize=5.9; wall=1.75; solid_walls="No"; make_lid="No"; lidh=3; module hexcol(ldia=6,colh=10) { cylinder(d=ldia,h=colh,$fn=6); } module hollowcube(dim) { difference() { translate(-dim/2) cube(2*dim); cube(dim); } } module hexgrid(sizex=20,sizey=30,colheight=10,spacin...
glb/cad_eb65a88b748a.glb
Create a Bauteilekasten component box. Start by constructing a hollow rectangular container with outer dimensions of 120mm in width, 225mm in length, and 50mm in height. The walls and the base should each be 1.5mm thick, created by removing a central rectangular volume from the main block, leaving an interior cavity th...
hoehe=50; breite=120; laenge=225; t1=1.5; m=2; n=2; f1b=breite/m; f1l=laenge/n; was=6; if (was == 1) {kasten();} else if (was == 2) {kasten(); 2Fachlang();} else if (was == 3) {kasten(); 2Fachquer();} else if (was == 4) {kasten(); 4Faecher();} else if (was == 5) {kasten(); 8Faecher();} else if (was == 6) {deckel...
glb/cad_4224cf635820.glb
Create a baseball dugout model for an O scale layout. The structure consists of a main body and a slanted roof. First, build the body. Create two identical side walls, each 0.125 inches thick. The walls should be 2.5 inches deep, with a height that slopes from 2 inches at the back to 2.5 inches at the front. Position...
Scale = 1/48; FrontHeight = 8*12*Scale; DugoutDepth = 10*12*Scale; BackHeight = 6*12*Scale; WallWidth = .5*12*Scale; DugoutWidth = 20*12*Scale; CubeFaces = [ [0,1,2,3], [4,5,1,0], [7,6,5,4], [5,6,2,1], [6,7,3,2], [7,4,0,3] ]; module side() { CubePoints = [ [WallWidth,0, 0], ...
glb/cad_6eb8756f6a58.glb
Create a Tarantula idler spacer by constructing a tapered hollow cylinder. Start with a solid conical frustum that has a height of 5.5mm, a bottom radius of 11mm, and a top radius of 7mm. Center this shape vertically. Then, remove a smaller concentric cylinder from the center to create a hole with a radius of 5.05mm an...
$fn=64; translate([0,0,2.75]) difference() { cylinder(h = 5.5, r1 = 11, r2 = 7, center = true); cylinder(h = 5.501, r = 5.05, center = true); }
glb/cad_39fe498d54dc.glb
Create a Wooden Railway Bridge Support consisting of a mirrored pair of structural brackets. For one side, construct a flat plate with a thickness of 12mm. Within this plate, create a skeletal frame using lines with a consistent thickness of 2mm. The frame is defined by a series of connected points. Start with a vert...
width = 40; height = 67; track_height = 12; support_width = 20; thickness = 2; $fa = 5; $fs = 1; extra_width = (support_width <= height) ? support_width : height; points = [ [-thickness,thickness/2], [width/2+thickness/2,thickness/2], [width/2+thickness/2,height-thickness/2], [-thickness,height-thick...
glb/cad_cbbd30f84f73.glb
Create an LCD Billboard housing. Start by creating a main rectangular body that is 96mm wide, 60mm deep, and 33mm high. This body is composed of three stacked rectangular sections: a base layer 10mm high, a middle layer 10mm high, and a top layer 13mm high. From this main body, remove a central rectangular cutout to a...
lcdWidth = 87; lcdHeight = 56; lcdDepth = 7; pinHeaderHeight = 5; pinHeaderWidth = 52; pinHeaderDepth = 15; businessCardWidth = 89; businessCardHeight = 51; piWidth = 70; piHeight = 30; piDepth = 8; connectorWidth = 10; connectorHeight = 23; connectorDepth = 10; lcdViewableWidth = 74; lcdViewableHeight = 51; mod...
glb/cad_207e02ff5d3d.glb
Create a two-part atomizer storage container consisting of a main box and a matching lid. For the main box, create a cylinder with an outer radius of 15.3mm and a total height of 48mm. Hollow out the center with a cylinder of radius 11mm, starting from a base thickness of 2mm and extending to the top. At the bottom o...
h_atomiseur=42; d_atomiseur=22; screw_length=4; diameter_of_hole=8; epaisseurboite=2; delta=0.3; h_total=h_atomiseur+epaisseurboite+4; h_couvercle=10; $fn=50; boite(); module boite () { difference() { union() { cylinder(r1=(d_atomiseur/2)+2*epaisseurboite+delta-1,r2=(d_atomiseur/2)+2*e...
glb/cad_7f4601aece3e.glb
Create an Upgraded Crystal Generator model consisting of a central base with multiple protruding crystal shards. Start by creating a hemisphere with a radius of 8mm, sliced flat at the bottom to serve as the foundation. From this base, generate 50 individual crystals. Each crystal is composed of two stacked prisms: a...
part = "one"; crystal_sides = 6; crystalrock(); module crystalrock(){ union(){ semisphere(8,$fn=8); for(i=[1:50]){ angleX = 45; angleY = 45; g1=rands(-angleX,angleX,1)[0]; g2=rands(-angleY,angleY,1)[0]; lados=crystal_sides; ...
glb/cad_f5e6459db2b8.glb
Create a Textadapter by starting with a central rectangular base measuring 61.03mm in length, 1.5mm in thickness, and 9.45mm in width, centered on all axes. Emboss the text "YOUR NAME" onto the top surface of this base; the letters should be 5mm in size, centered both horizontally and vertically, and extruded to a heig...
Textgroesse = 5; text = "YOUR NAME"; module letter(l) { linear_extrude(height = 0.45) { text(l, size = Textgroesse, halign = "center", valign = "center", $fn = 16); } } difference() { union() { color("gray") cube([61.03, 1.5, 9.45], center =(true)); translate([0, -0.75, 0]) rotate([90, 0, 0]) lett...
glb/cad_f4a82eac5221.glb
Create an Airjack connector repair kit consisting of a hollow cylindrical body with a total height of 19mm. The main body is a thick-walled tube with an outer diameter of 48.5mm and an inner diameter of 35.5mm. At the top of the cylinder, create a recessed ring section that is 5mm deep. This recessed section has an o...
h=19; h1=5; hLock=5; hPin = 11; d1=35.5; d2=1.5+d1+6.5*2; d3=d2-4*2; dLock=3; d4=d1-2*dLock; module pin() { wPin = 5.5; dPin = d2; difference() { linear_extrude(hPin) difference() { circle(d=dPin, $fn=100); circle(d=d1, $fn=100); translate([wPin/2,-dPin/2,0]) square([dPin,dPin]); translate([-...
glb/cad_60a4f703670a.glb
Create a self-locking belt carriage for a Folger Tech Kossel 2020. Start with a base plate 30.6mm wide, 41mm long, and 6mm high. The main body extends upward to a total height of 13mm. On the top surface, create a central beltway channel. Incorporate two rod-end supports that feature chamfered cylindrical cutouts wit...
Wid = 30.6; Len = 41; Base_Ht = 6; Ht = 13; M3 = 3.6; M3Head = 6.0; M3Nut = 6.8; M3Nut_Thk = 4.2; M3_Res = 16; M3Head_Res = 28; Coutersink_Ht = 2; Lt_Rt_Both = -1; Gap_Tighten_Wid = 2.5; Blk_Wid = 9.2 - Gap_Tighten_Wid; Blk_Wid2 = Blk_Wid / 2; SL_Ht = Ht + .01 - Base_Ht; Y1 = tan(22.5633) * Gap_Tighten_Wid; module ...
glb/cad_ea494cad32de.glb
Create a 3D model of the Graphscad Logo. Start by creating a sphere with a radius of 8mm and a facet resolution of 100. Construct two 3D text elements, both with a font size of 10mm and a thickness of 17mm. The first text element is the letter "G" and the second is the letter "S". Position the "G" by rotating it 90...
function node_text_matrix(i=0,j=0,k=0,l=0,m=0,n=0) = translate([0,0,]); module node_text(i=0,j=0,k=0,l=0,m=0,n=0) { translate([0,0,])text(text="G",size=10,valign="center"); } function node_linearextrude_matrix(i=0,j=0,k=0,l=0,m=0,n=0) = translate([0,0,0]); module node_linearextrude(i=0,j=0,k=0,l=0,m=0,n=0) { linear_e...
glb/cad_ec261013b293.glb
Create a Helmet Goggle Strap Holder by constructing a curved, C-shaped channel. Start with a primary arc based on a circle with a radius of 311mm. The main body should have a thickness of 19mm and a width of 11mm. Sweep this profile along an arc of approximately 2.86 degrees to create a curved segment. Within this cu...
pi=3.1415; circumference = 622*pi; radius=622/2; rotate_angle = (50/circumference)*360 ; thickness2=20 ; width2 = 5; rounded = 0; thickness=thickness2-1; width = width2+6-2*rounded; difference () { union () { rotate_extrude(angle = rotate_angle, convexity = 10,$fn=200) { translate([radius-width/2,0,0]) s...
glb/cad_986a475ab57f.glb
Create a parametric box consisting of a base and a lid. For the base, create a rounded rectangular prism with outside dimensions of 25mm width, 25mm length, and 20mm height, using a corner radius of 2mm. Hollow out the center of this prism by removing a rounded rectangular section from the top, leaving a wall thickness...
wall_thickness = 0.82; lid_thickness = 0.82; lid_clearance = 0.6; height = 20; width = 25; length = 25; radius = 2; lid_height = 15; resolution = 32; module rounded_rect(x, y, radius, height){ if (radius > 0){ hull(){ translate([-x/2 + radius, y/2 - radius, 0]) cylinder(h = heigh...
glb/cad_3da064902184.glb
Create a propeller consisting of a central cylindrical hub and three radiating blades. Start by creating a central cylinder with a diameter of 5.6mm and a height of 1.67mm. Bore a small hole through the center of this cylinder. Position three identical blades around the hub, spaced 120 degrees apart. Each blade is con...
Blade_Width = 3; Blade_Trailing = 1 ; Blade_Tilt =20; Blade_Leading_Edge = 1/2; Blade_Trailing_Edge = 1/8; Lenght=15; C=(Blade_Width-Blade_Trailing)/2; Diameter_of_Axel=5.6; No_Of_Blade(3); Axel(); module Axel(){ difference() {Cylinder(60,Blade_Tilt /12,Diameter_of_Axel); Size=4; differen...
glb/cad_124ba9f3ce66.glb
Create a domino placement tool consisting of a rectangular base block measuring 25mm wide, 240mm long, and 30mm high. Carve two parallel rows of slots into the top surface of the block to hold dominoes of different thicknesses. The first row of slots is designed for 8mm thick dominoes. Create eight rectangular cutout...
difference(){ union(){ translate([0,-6,0]) cube([25,240,30]); } translate([-2,5,-1]) cube([20,8,40]); translate([-2,35,-1]) cube([20,8,40]); translate([-2,65,-1]) cube([20,8,40]); translate([-2,95,-1]) cube([20,8,40]); translate([-2,125,-1]) cube([20,8,40]); translate([-2,155,-1]) cube([20,...
glb/cad_6ffebb5bb05d.glb
Create a power supply cover with an integrated housing for an IEC socket. The main outer shell is a hollow rectangular box with a width of 113.5mm (111.5mm internal width plus 1mm walls), a depth of 51mm (50mm internal depth plus 1mm front/back walls), and a total height of 58mm. The walls are 1mm thick. Inside this s...
Width = 111.5; ConnectorHeight = 17; ConnectorMargin = 10; ScrewHeight = 20; ScrewMargin = 8; ScrewDiameter = 4; BinderDiameter = 8; BinderDistance = 12; Depth = 50; Wall = 1; Front = 1.0; SocketHeight = 27.7; SocketWidth = 47.1; SocketDepth = 28; SocketWall = 1; SocketCut = 7; SocketPaddingVertical = 2; SocketPad...
glb/cad_1cb08cb9730a.glb
Create two mirrored HTC Vive Welding Headgear Brackets. For each bracket, start with a central ring that has an outer diameter of 25.5mm and a height of 7.75mm. This ring must have a concentric hole with a diameter of 13.25mm passing through its center. On the top face of the ring, add a thin circular ridge with a diam...
length = 80; armLength = length - 39; $fn=50; module _Ring(){ difference(){ cylinder(d=25.5,h=7.75,center=true); cylinder(d=13.25,h=8,center=true); translate([0,0,3.3])cylinder(d=15.4,h=1.5,center=true); translate([0,0,4])cylinder(d=23,h=.5,center=true); for (n = [1:28]){ ro...
glb/cad_4e6038a11cf6.glb
Create a 2-cell 18650 battery charger case. The main body is a rounded rectangular enclosure formed by the hull of two cylinders, each 21mm in diameter and 74mm long, positioned 12mm apart along the x-axis and scaled by 1.1 in width and depth and 0.6 in height. Remove two rectangular slabs from the top and bottom of th...
scale([ 1.1, 1.1, 0.6 ]) case(); module part(){ difference(){ translate([0,0,-4]) cube([10,70,12], center=true); scale([ 1.01, 1.01, 1.01 ]) battery(); } translate([0,66/2,0]) rotate([0,90,0]) cylinder(h=3, d=2, center=true, $fn=16); translate([0,-66/2,0]) rotate([0,90,0]) cylinder(h=3, d=2...
glb/cad_e3257206903a.glb
Create a multi-mold generator consisting of a grid of open-top molds. The overall footprint is defined by a 2x2 arrangement of sub-molds, each with a width of 55mm and a height of 60mm. The entire structure sits on a base 1mm thick, with outer walls and internal separators that are 1.5mm thick and 20mm high. Within ea...
model_filename = "src/sourcefile.stl"; model_scale = 1; model_translate = [0,0,0]; model_rotate = [0,0,0]; model_debug = true; mold_width = 55; mold_height = 60; mold_n_width = 2; mold_n_height = 2; wall_thickness = 1.5; wall_height = 20; base_height = 1.0; negative = false; negative_height = 2.5; $full_seperator...
glb/cad_bba46361d475.glb
Create a multi-mold generator consisting of a grid of open-top rectangular cavities. For a 2x1 configuration, create a base plate 110mm wide, 60mm deep, and 1mm thick. Add outer walls and a center separator wall, each 1.5mm thick and 15mm high, to divide the base into two side-by-side sub-molds, each measuring 55mm by ...
model_filename = "Celtic_Knot.STL"; model_scale = .76; model_translate = [0,-4,1.1]; model_rotate = [0,0,-0]; model_debug = false; mold_width = 55; mold_height = 60; mold_n_width = 2; mold_n_height = 1; wall_thickness = 1.5; wall_height = 15; base_height = 1.0; negative = false; negative_height = 2.5; $full_seper...
glb/cad_8e47854744e8.glb
Create a Mendel Frame Cable Clip by starting with a central cylindrical ring designed to fit around a pole. The main body is a cylinder with an outer radius of 5mm and an inner hole radius of 4mm, with a total height of 4mm centered on the origin. Remove a rectangular section from the top of this ring to create a gap 4...
$fs = 0.5; $fa = 1; clipLength = 4; poleDiameter = 8; clipThickness = 1; gapWidth = 4; module __wireClip(clipDiameter, openingAngle){ difference(){ cylinder(r=clipDiameter/2+clipThickness, h=clipLength, center=true); cylinder(r=clipDiameter/2, h=clipLength+2, center=true); rotate([0, 0, opening...
glb/cad_7d5ebaace7bf.glb
Create an OmniCamera assembly designed to hold a spherical reflector and a camera. Start by creating a central mounting case. The case is a cylinder with a radius of approximately 22.5mm and a total height of 110mm. At the bottom, integrate a hollow cylindrical sleeve with an outer diameter of 60.96mm (2.375 inches) ...
$fn=50; ball_d=1.758*25.4; top_d=.504*25.4; top_h=.268*25.4; lens_d=.47*25.4; lens_l=.303*25.4; cam_h=.039*25.4; cam_w=.827*25.4; cam_l=2.151*25.4; cam_top_clear = .2*25.4; cam_bot_clear = .18*25.4; cam_corner_clip_d=.2*25.4; cam_holes = [[.825*25.4,-.345*25.4,.068*25.4], [-.752*25.4,.356*25.4,.068*25.4]]; cam_cord_...
glb/cad_316cfd5b76e4.glb
Create a Holder by constructing a hollow semi-cylindrical shell with a height of 82mm. Start with an outer cylinder of 90mm radius and a height of 82mm. Remove a concentric inner cylinder with a radius of 70mm to create a wall thickness of 20mm. To open the shape, remove a rectangular block that bisects the cylinder, l...
$fn=180; outside=180/2; inside=outside-40; thickness=2; height=82; difference() { basic_shape(); translate([-outside,0,0]) cube([2*outside,2*outside,height]); translate([outside,0,0]) cutout_shape(30); translate([outside,0,0]) screw_hole(30); } translate([outside,0,0]) ...
glb/cad_394eba9a9be2.glb
Create a parametric gear rack with a total length of 32mm, a base height of 3mm, and a face width of 5mm. The rack features a series of teeth extending upward from the base. Each tooth is defined by a module of 1mm, which determines the height of the tooth head above the pitch line. The teeth are constructed with a p...
spiel = 0.05; modul = 1; laenge = 32; hoehe = 3; breite = 5; eingriffswinkel = 20; schraegungswinkel = 0; pi = 3.14159; rad = 57.29578; $fn = 96; module kopiere(vect, zahl, abstand, winkel){ for(i = [0:zahl-1]){ translate(v=vect*abstand*i) rotate(a=i*winkel, v = [0,0,1]) children(0); } } module zahn...
glb/cad_2c03177cabee.glb
Create a hollowed spherical object for an exam. Start with a main sphere with a diameter of 75mm. From this sphere, remove several intersecting cylindrical volumes to create a series of holes and cutouts. Specifically, remove a central cylinder with a diameter of 4mm passing through the center. Remove a sphere with a d...
$fn=50; difference(){ union(){ translate([22,23.5,4]) cylinder (h=7,d=8.5,center=true); mirror([1,1,0]) translate([22,23.5,4]) cylinder (h=7,d=8.5,center=true); mirror([1,0,0]) translate([22,23.5,4]) cylinder (h=7,d=8.5,center=true); mirror([0,1,0]) translate([22,23.5,4]) cylinder (h=7,d=8.5,center=true)...
glb/cad_dd8be21d995e.glb
Create a base rectangular plate measuring 16.5mm by 32.2mm with a thickness of 3mm. From this base, remove a large central rectangular section measuring 12.1mm by 23mm and 5mm in height to create a U-shaped channel. Within the remaining walls, carve out two circular holes with a radius of 1mm and a depth of 5mm, positi...
$fn=50; difference(){ cube([16.5,32.2,3],true); translate([9,16,0]) rotate(a=[0,0,45]) cube([4,14,5],true); mirror([0,1,0]) translate([9,16,0]) rotate(a=[0,0,45]) cube([4,14,5],true); translate([-8,16.5,0]) rotate(a=[0,0,45]) cube([3,2,5],true); mirror([0,1,0]) translate([-8,16.5,0]) rotate(a=[0,0,45]) cube([3,...
glb/cad_f12814bc2da0.glb
Create a circular ring with an outer diameter of 68mm and a height of 13mm. The ring should have a wall thickness of 1mm, created by removing a concentric inner cylinder with a diameter of 66mm and a height of 11.4mm. From the center of this ring, remove a central vertical cylinder with a diameter of 6mm and a height o...
$fn=50; difference(){ union(){ difference() { cylinder (center=true, h=13,r=34); cylinder (center=true, h=11.4,r=37); } cylinder (center=true, h=11.4,r=33); } cylinder (center=true,h=15,r= 30); } difference(){ translate ([0,0,-5])cube([7,64,3],center=true); union(){ cylinder (center=true,h=15,r= 1.2); translate([0,14....
glb/cad_6b136e24e0c3.glb
Create a gear-like disc for an exam. Start by creating a central cylinder with a radius of 34mm and a height of 20mm, centered on all axes. Around the perimeter of this central cylinder, place 24 smaller cylindrical cutouts, each with a radius of 5mm and a height of 21mm. These cutouts should be arranged in two sets of...
$fn=100; difference() { union() { cylinder(h=20, r=34, center=true); for(n = [1 : 12]) { rotate([0, 0, n * 30]) { translate([34,0,0]) cylinder(h=20, r=5, center=true); } }} for(n = [1 : 12]) { rotate([0, 0, n * 30]) { translate([34,9,0]) cylinder(h=21, r=5, center=tr...
glb/cad_a78e0d9f0a6f.glb
Create a Fan Heater Replacement Control Knob. Start by constructing a conical hand grip with a height of 15mm, a bottom outer diameter of 38mm, and a top outer diameter of 36mm. This grip should be hollow, with a wall thickness of 3mm. The exterior of the grip's base must feature 64 evenly spaced vertical serrations. ...
bot_od = 38; top_od = 36; cap_height = 15; thickness = 2; thickness1 = 4; end_thickness = 2; shaft_thickness = 3; rib_thickness = 2; rib_height_total = 13; grip_thickness = 3; grip_thickness1 = 2; top_rim_thickness = 3; shaft_dia = 6; shaft_cutout = 1.5; total_height = 45; num = 64; size = ( bot_od + top_od ) / 2 * PI...
glb/cad_659ba09e6b15.glb
Create a RepRapDiscount Full Graphic Smart Controller mount consisting of two clamp types and several spacers. First, create two identical right-hand side clamps. Each clamp starts with a cylinder of 14.5mm diameter and 10mm height. Subtract a central vertical cylinder with a diameter of 8.1mm. Add a rectangular block...
$fn=50; rod_dia=8.1; clamp_width=14.5; rod_slit=rod_dia-2; screw_dia=3.5; module rhs_clamp(height, length) { difference() { union() { cylinder(h=height, d=clamp_width); translate([0, -clamp_width/2, 0]) { cube([length, clamp_width, height]); } translate([20, -clamp_width/2, 0]) { cube(...
glb/cad_206a1098d1d7.glb
Create a gear with cylindrical teeth. Start with a central base cylinder that has a radius of approximately 15.92mm and a height of 10mm. Around the perimeter of this base, place 10 protruding cylindrical teeth, each with a diameter of 10mm and a height of 10mm. These teeth should be centered on the base's edge, spaced...
module SH (tip="5_10_3_7") { if(tip=="5_10_3_7") { diametr_zuba=5; kolvo_zub=10; tolschina_gear=3; diametr_osi=7; pi=3.141592653589793; $fn=30; circum_circles=2*kolvo_zub; base_circumference=2*kolvo_zub*diametr_zuba; base_radius=base_circumference/(2*pi); difference() { union() { cylinder(r=base_radius, h=to...
glb/cad_ad64a0b98e72.glb
Create a wheel for an SG90 servo. Start with a main outer cylinder 62.3mm in diameter and 11mm high. Create a concentric inner cavity by removing a cylinder 55.3mm in diameter, starting from a height of 3mm and extending to the top, leaving a 3mm thick base. In the center of this base, place a cylinder 40mm in diameter...
difference() { union() { cylinder(h=11, d=62.3, $fn=60); } translate([0,0,3]) cylinder(h=9, d=55.3, $fn=60); translate([0,0,-10]) cylinder(h=30, d=4, $fn=60); } difference() { union() { translate([0,0,1]) cylinder(h=10, d=40, $fn=60); } translate([0,0,11]) cube([7,35,2],center=true...
glb/cad_de3a0aa5eae4.glb
Create a mounting corner bracket for a media shelf. Start by creating a base block that is 17mm long, 5mm wide, and 5mm high. Apply a 5mm radius fillet to all edges to give the part a rounded, organic appearance. At the top surface of this block, centered toward one end, integrate a cylindrical screw hole with a radi...
$fn=40; max_l=230; max_h=150; w=6; h=6; d=1.25; da=2; l_lang=168.5; l_hoch=128.5; l_quer=130; space=0; laenge=17; breite=5; hoehe=5; loch=6.5; rloch=.0; hloch=-0.8; mitte=10; was = 7; wieoft = 1; for (x=[0:wieoft-1]){ translate([x*30,x*25,0]) if (was == 1) Ecke (); else if (was == 2) Doppelecke...
glb/cad_a87f844dfe72.glb
Create a 3D model of a Boolean Algebra 2³ cube. Construct a cube frame by placing eight spheres, each with a radius of 7mm, at the vertices of a cube with a side length of 40mm. Connect these spheres using cylinders with a radius of 3mm and a length of 40mm to form the twelve edges of the cube. Specifically, place four...
module algebra(){ translate([0,0,0]) sphere(r=7); translate([0,0,40]) sphere(r=7); translate([0,40,0]) sphere(r=7); translate([0,40,40]) sphere(r=7); translate([40,0,0]) sphere(r=7); translate([40,0,40]) sphere(r=7); translate([40,40,0]) sphere(r=7); translate([40,40,40]) sphere(r=7); translate([0,0,0]) cylinder(h = 4...
glb/cad_ae3aea5647ed.glb
Create a Boolean Algebra 2³ desktop model. Start by constructing a main circular base with a radius of 45mm and a height of 8mm. On the top surface of this base, center a smaller cylindrical protrusion with a radius of 40mm and a height of 8mm. Around the outer edge of this protrusion, create a toroidal ring with a cro...
difference(){ union(){ difference(){ union(){ rotate_extrude(convexity = 10, $fn = 100)translate([45-7, 0, 0])circle(r = 7, $fn = 100); translate([0,0,0])cylinder(r = 45-5,h=2+6, $fn = 100); } translate([0,0,-10])cylinder(r = 45,h=10, $fn = 100); } translate([0,0,-2])cylinder(r = 45+2,h=2, $fn = 100); } translate([0,...
glb/cad_8e55b137629f.glb
Create a parametric grow media pot with a total exterior diameter of 67.8mm and a height of 1.5mm for the top rim. The main body consists of three identical cylindrical pods arranged in a triangular pattern around the center. Each pod is created by taking a cylinder with a diameter of 28mm and a height of 21.6mm, and r...
$fn=20; id=57.5; ed=67.8; shift=(id-28.3)/2; difference() { group() { difference() { cylinder(h = 1.5, d = ed, center = true); rotate (0) translate([14.875, 0,0]) cylinder(h = 1.5, d = 25, center = true); rotate (120) translate([14.875, 0, 0]) cylinder(h = 1.5, d = 25, c...
glb/cad_f8dde71f6f21.glb
Create a base for a useless machine metronome starting with a rectangular slab measuring 120mm in length, 40mm in width, and 3mm in height. Centered on this base, construct a vertical housing block that is 20mm wide, 20mm deep, and 30mm tall. Attached to the front of this block, add a thin vertical wall measuring 2mm w...
difference(){ union(){ cube([120,40,3]); translate([50,20,0]) cube([20,20,30]); translate([50,20,0]) cube([20,2,50]); rotate([90,0,0]) translate([60,50,-40]) cylinder(20,10,10,$fn=60); translate([50,20,0]) cube([2,20,50]); translate([68,20,0]) cube([2,20,50]); translate([15,36,0]) cylinder(5,3,3,$fn=60); translate...
glb/cad_70176ccc9fb5.glb
Create a useless machine metronome base by constructing a central assembly of geometric primitives. Start with a rectangular base plate measuring 50mm in length, 2mm in height, and 6mm in width, positioned from x=-10 to x=40. At the right end of this plate, add a perpendicular rectangular wall measuring 2mm in width, 5...
difference(){ union(){ translate([-10,0,0]) cube([50,2,6]); translate([39,0,0]) cube([2,50,6]); translate([40,1,0]) cylinder(6,8,8,$fn=60); translate([-10,1,0]) cylinder(6,5,5,$fn=60); translate([40,50,0]) cylinder(6,5,5,$fn=60); } translate([40,1,-1]) cylinder(18,1.6,1....
glb/cad_9f26a14eee75.glb
Create a base for a useless machine metronome by constructing a flat assembly with a thickness of 6mm. Start by placing a rectangular block 30mm long, 2mm wide, and 6mm high, positioned with its starting corner at 5, 0, 0. Add a second rectangular block 2mm wide, 30mm long, and 6mm high, positioned at 39, 5, 0. At the ...
difference(){ union(){ translate([5,0,0]) cube([30,2,6]); translate([39,5,0]) cube([2,30,6]); translate([40,1,0]) cylinder(6,8,8,$fn=60); translate([0,1,0]) cylinder(6,5,5,$fn=60); translate([40,40,0]) cylinder(6,5,5,$fn=60); } translate([40,1,-1]) cylinder(18,1.6,1.6,$f...
glb/cad_5810ffd62862.glb
Create a Nut Trap Size Test consisting of a rectangular block measuring 50mm in length, 10mm in width, and 10mm in height, centered on the origin. Remove five vertical holes from the block, each centered along the length at 10mm intervals starting from -20mm and ending at 20mm. Each hole is a composite of two shapes:...
module nut_trap ( w = 5.6, h = 3 ) { cylinder(r = w / 2 / cos(180 / 6) + 0.05, h=h, $fn=6); } difference() { cube([50,10,10],center=true); translate([-20,0,0]) { translate([0,0,2.2])nut_trap(w=5,h=3); cylinder(h=30, d=3, center=true, $fn=24); } translate...
glb/cad_807490ebad9d.glb
Create a PenPlotter mount for a Prusa i3 Wade Extruder. Start by constructing a central base consisting of several joined rectangular blocks. Create a main rectangular slab measuring 50mm wide, 20mm deep, and 3.5mm thick, centered at the origin. Attach a second rectangular block measuring 25mm wide, 50mm deep, and 3.5m...
module pen(){ rotate([90,0,0])cylinder(r=5,h=120, $fn=50); translate([0,-120,0])rotate([90,0,0])cylinder(r1=5,r2=3,h=10, $fn=50); translate([0,-130,0])rotate([90,0,0])cylinder(r1=2.5,r2=1,h=10, $fn=50); } module distanceBlock(){ difference(){ translate([0,-25,0])cube([50,20,15], center=true); union(){ #trans...
glb/cad_be0cceb9cc33.glb
Create a toilet seat joint replacement part by constructing a hollow cylindrical sleeve. Start with an outer cylinder that has a radius of 7mm and a height of 12.6mm. From the center of this cylinder, remove a smaller concentric inner cylinder with a radius of 2.25mm and the same height of 12.6mm to create a thick-wall...
use <Triangles.scad>; $fn=80; difference() { union() { translate([-50,0,0]) difference() { rotate([90,-2,0]) Triangle(16,230,88,3); translate([50,-5,0]) cube([300,8,80]); } translate([2,-13.3,1.7]) rotate([0,0,15]) Triangle(15,13.5,90,12.6); translate([9,-13.5,1.7]) cylinder(r=14/2,h=12.6); } translate([-20,0,0...
glb/cad_b2b19e9a0787.glb
Create a water tap knob by starting with a solid cylinder 28mm tall with a radius of 10mm. Bore a concentric hole through the center of this cylinder that is 15mm deep with a radius of 4mm. At the top of the cylinder, carve out a rectangular slot that is 8mm wide, 20mm long, and 20mm deep, centered on the top face and ...
difference () { cylinder(h = 28, r1 = 10, r2 = 10, center = false, $fn=80); translate ([0,0,0]) cylinder(h = 15, r1 = 4, r2 = 4, center = false, $fn=60); translate ([9,0,27]) cube([8,20,20 ],center=true); translate ([-9,0,27]) cube([8,20,20 ],center=true); } translate ([0,4,8]) cube([12,2,16 ],center=true)...
glb/cad_6046c81246b2.glb
Create a Primitive Penholder by starting with a rectangular block that is 30mm wide, 50mm long, and 5mm thick. To create the pen slots, remove two slanted cylindrical holes from the block. Each cylinder should have a diameter of 9mm and a length of 20mm. Position the center of the first cylinder at x=7.5mm and y=37.5mm...
width=15; length=50; thickness=5; pens=2; pendia=9; difference() { cube([pens*width,length,thickness]); translate([0,5,0]) { rotate([30,0,0]) { for(i=[1:1:pens]) { translate([((i-0.5)*width),length*0.75,-20]) { cylinder(20,d1=1, d2=15); } ...
glb/cad_201fd6162d83.glb