Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Multistand filament spool holder consisting of two rectangular arms joined at a 135-degree angle. Each arm is 140mm long, 18mm wide, and 9mm thick. Round the outer end of each arm with a radius of 9mm. Cut a central slot through the entire thickness of the body at the joint and at the far end of each arm. Eac...
include <configuration.scad> difference() { union() { translate([30,0,0]) cube([70, 18, 9],center=true); translate([-44,43,0]) rotate([0,0,135]) cube([140, 18, 9],center=true); translate([64,0,0]) cylinder (h = 9, r=9, center = true, $fn=100); translate([-92,91,0]) cylinder (h = 9, r=9, center = t...
glb/cad_7cd62a22b857.glb
Create a cover for a power socket by starting with a cylinder 37mm in diameter and 20mm high. Shape the bottom of this cylinder by intersecting it with a sphere 70mm in diameter centered 17mm below the cylinder's base, creating a convex, rounded bottom surface. From this main body, remove a central spherical void with ...
$fn = 100; sigma = 0.1; difference() { difference() { intersection() { cylinder(d = 37, h = 20); translate([0, 0, -17]) sphere(d = 70); } for (i = [0, 180]) { rotate([0, 0, i]) { translate([15, -2.5, -sigma]) ...
glb/cad_1f90fef14201.glb
Create a pet ladder with a total height of 200mm and a total width of 90mm. Construct two parallel vertical rails, each 8mm thick, with all exterior edges rounded to a 3mm radius. At the top of each rail, add a hook that extends 30mm outward, angled at 70 degrees relative to the rail. Connect the two rails with a seri...
height = 200; width = 90; rung_spacing = 50; rung_diameter = 15; rail_thickness = 8; rail_corner_radius = 3; hook_angle = 70; hook_length = 30; $fa = 10; $fn = 360 / $fa; build(); module build() { num_rungs = floor((height - rung_spacing / 2 - rung_diameter / 2) / rung_spacing) + 1; rail(); transl...
glb/cad_5e119e6aaa1a.glb
Create a Snap Together Dollar Store Organizer Rack by constructing two identical mirrored components. For each component, start with a rectangular base measuring 86mm long, 7mm wide, and 2mm thick. At the outer end of each base, add a small vertical protrusion that is 7mm tall, 2mm wide, and 2mm thick. Within this prot...
$fn=30; total_width=185 - 3; twidth = 7; sidebar_width = 7; for (i=[0:1]) { rotate([0,0,180*i])translate([0,-sidebar_width/2,0]){ cube([total_width/2 - 7,7,2]); translate([total_width/2-7+5,0,0])rotate([0,0,90]){ cube([twidth, 2, 2]); translate([twidth/2 - 1, 2,0])cube([2, ...
glb/cad_19dc05e564de.glb
Create a snap-together organizer rack consisting of a vertical support structure with a base. Start by building a vertical column composed of four stacked sections, each 35mm high. Each section begins with a main rectangular bar measuring 11mm wide, 7mm deep, and 35mm tall. At the bottom of the entire assembly, add a...
$fn = 30; num_bins = 4; twidth = 7.3; slot_width = 2; slot_depth = 3; slider_depth = 3.2; slider_thickness = 2; slider_length = 104; box_height = 35; slider_offset_top = 9; difference(){ difference(){ union(){ for (i=[0:num_bins-1]) { translate([0,0,i*box_height])difference(){ ...
glb/cad_13b8e48c0ebe.glb
Create a Snap Together Dollar Store Organizer Rack by constructing a long rectangular base and adding specific snap-fit protrusions. Start with a base rectangular prism measuring 104mm in length, 3.2mm in depth, and 2mm in height. Attached to the bottom of this base, add a second rectangular prism of the same length (1...
$fn = 30; slider_depth = 3.2; slider_thickness = 2; slider_length = 104; box_height = 35; slider_offset_top = 9; cube([slider_length, slider_depth, slider_thickness]); translate([0,-slider_thickness,-8 + slider_thickness])cube([slider_length, slider_thickness, 8]); twidth = 7; for (i=[0:1]) { translate([i*(slid...
glb/cad_884c69ab5f0c.glb
Create a Snap Together Dollar Store Organizer Rack consisting of a vertical support column with a base and repeating snap-fit slots. Start by creating a base foot that is 22mm wide, 7mm deep, and 6mm high. From the top of this base, extend a vertical column composed of four stacked sections, each 35mm high. Each sectio...
$fn = 30; num_bins = 4; twidth = 7.3; slot_width = 2; slot_depth = 3; slider_depth = 3.2; slider_thickness = 2; slider_length = 104; box_height = 35; slider_offset_top = 9; difference(){ difference(){ union(){ for (i=[0:num_bins-1]) { translate([0,0,i*box_height])difference(){ ...
glb/cad_9aaade09c315.glb
Create a 3D model of an HXT500 servo for mounting purposes. Start by creating a main rectangular body with dimensions of 21.5mm in width, 19.5mm in depth, and 12mm in height. To this body, add two mounting tabs. Each tab should be a rectangular prism measuring 4.3mm in width, 12mm in depth, and 2mm in height. Position ...
module servo_tab(type = "HXT500"){ if(type == "HXT500"){ tW = 4.3; tH = 12; tD = 2; translate([0,tD,0]) rotate([90,0,0]) difference(){ cube([tW,tH,tD]); translate([tW/2,tH/2,-1]) cylinder(r=1,h=tD+2,$fn=24); } } } module...
glb/cad_24e20232f6cd.glb
Create a Cell Lampshade by constructing a hollow cylindrical form with a radius of 52.5mm and a total height of 135mm. The outer surface must feature a geometric, cellular pattern composed of repeating rectangular cells. Each cell has a height of 15mm and a width of approximately 4.132mm. These cells are arranged in a ...
radius = 52.5; height = 135; cheight = 15; clump = 3; cwidth = 4.132; cangle = 18; bholediameter = 29; bholeheight = 1; $fa=1.5; $fs=1.5; cdepth = -10; p1 = [ [ cwidth, 0, 0 ], [-cwidth, 0, 0 ], [-cwidth, 0, cheight ], [ cwidth, 0, cheight ], [ 0, cwidth/2, clump ], [ cwidth, cdepth, 0 ]...
glb/cad_291c3036bcfc.glb
Create a powerstrip rocker switch protector with a total width of 25.4mm and a wall thickness of 2.54mm. The protector is a symmetrical U-shaped shell designed to fit over a power strip with a square cross-section. Construct two side walls, each 32.77mm high. At the top of each wall, add a horizontal shoulder extendin...
inch=25.4; half=inch/2; quarter=inch/4; tenth=inch/10; wall_thick=tenth; ProWidth=inch; PSheight=1.28*inch; PSwidth=1.59*inch; PShalf=PSwidth/2; RockerLength=1.255*inch; RockerHalf=RockerLength/2; RockerHeight=.35*inch; PSshoulder = (PSwidth-RockerLength)/2; CutoutWidth = ProWidth*.75; CutoutDim = .15*ProWidth; CutoutO...
glb/cad_008ef4679f51.glb
Create a Cheesehead snack bowl consisting of a wedge-shaped container with a hollowed interior. Start by creating a solid wedge with a radius of 200mm and a height of 100mm, defined by a 55-degree arc. From this main body, remove a smaller concentric wedge to create a hollow basin. The inner basin should have a radiu...
wedgeLength=200; angle = 55; innerEdgeLength = 170; nachoBowlLength = 150; height = 0.5*wedgeLength; countHoles = 20; minHoleWidth = 4; maxHoleWidth = 8; wallThickness = 3; bowlThickness = 1.5; bottomThickness = 5; space = 1.5; nachoBowlLength = 150; beta = 90 - 0.5*angle; sinB = sin(beta); gamma = 90; alpha = 180 - ...
glb/cad_6057ca249389.glb
Create a Customizable Word Cube consisting of three aligned cubes, each with a side length of 25.4mm. The outer two cubes are fixed, while the center cube is designed to rotate freely. Start by creating a rectangular base measuring 76.2mm in length, 25.4mm in width, and 25.4mm in height. From this base, remove two ve...
W1_L1 = "B"; W1_L2 = "o"; W1_L3 = "x"; W2_L1 = "Z"; W2_L2 = "i"; W2_L3 = "p"; W3_L1 = "T"; W3_L2 = "e"; W3_L3 = "n"; W4_L1 = "H"; W4_L2 = "u"; W4_L3 = "T"; size = 25.4; gap = 2; font = "arial"; fontSize = .50; depth = .02; union(){ difference(){ cube([size*3+gap*2,size,size], center = true); translate(...
glb/cad_90205aa3341a.glb
Create a fine nozzle for a vacuum cleaner consisting of a hollow, tapered tube. Start by forming a cylindrical base with an outer diameter of 31.5mm and a height of 60mm. From the top of this base, create a transition that tapers upward into a narrower neck. This neck should be a cylinder with an outer diameter of 12mm...
$fn=80; r=31.5/2; difference() { rotate_extrude() { hull() { translate([r-2+1,0])circle(d=1); translate([r-2+1,60])circle(d=1); } hull() { translate([r-2+1,60])circle(d=1); translate([5+1,70+10])circle(d=1); } hull() { translate([5+1,70+10])circl...
glb/cad_4779cef1f76a.glb
Create a PCB USB plug consisting of a main tongue and an interface board. Start by creating the tongue as a rectangular block 9mm long, 12.25mm wide, and 1.5mm thick. On the top surface of this tongue, carve out four longitudinal recessed traces: two central data traces, each 7mm long and 1.125mm wide, separated by a 1...
tongueLength = 9; tongueWidth = 12.25; tongueThickness = 1.5; dataTraceWidth = 1.125; dataTraceLength = 7; powerTraceWidth = 1.625; powerTraceLength = 8; traceDepth = .75; traceGap = 1; translate([0,tongueWidth,0]) rotate([0,0,180]) usbPlug(); interfaceBoard(); module interfaceBoard(){ difference(){ inte...
glb/cad_9e32da190f16.glb
Create a rectangular electronics perfboard with dimensions 27mm in length, 16mm in width, and 1.5mm in thickness. Remove four circular screw holes from the corners of the board, each with a diameter of 2.5mm. Position the center of these holes 0.625mm from the edges of the board. Create a grid of small square throug...
boardLength = 27; boardWidth = 16; boardThickness =1.5; screwHoles = 1; screwHoleDiameter = 2.5; holesModuloX = (boardLength%2.54); holesModuloY = (boardWidth%2.54); holesLength = (boardLength-holesModuloX)/2.54; holesWidth = (boardWidth-holesModuloY)/2.54; boardLayout(); module boardLayout(){ difference(){ ...
glb/cad_9b213cc5202a.glb
Create a Sink Middle Bar Extender by constructing a base rectangular block and adding a protruding arm. Start with a central rectangular block that is 33.02mm wide, 25.4mm deep, and 50.8mm high. From this block, remove a smaller rectangular section from the front center to create a slot; this cutout should be 33.02mm w...
width_of_bar = 1.3; thickness = .2; depth_of_slot = 2; length_of_extender = 3; width_of_extender= 1; unitConversion =25.4; theThing(); module theThing(){ difference(){ union(){ cube([width_of_bar+thickness*2, width_of_extender,depth_of_slot+thickness]*unitConversion); translate([width_of_bar/2+thi...
glb/cad_66e6c1472ebe.glb
Create a square tag with a raised QR code pattern. Start by creating a base rectangular plate measuring 80mm by 80mm with a thickness of 3mm. Round the four corners of this plate with a radius of 10mm. On the top surface of the plate, add a QR code geometry. The QR code should be centered on the plate, with a total th...
add_sub = 2; code_flip = 0; obj = 1; case_thickness = 1.8; round_corner = 1; corner_num = 0; corner_radius = 10; tag_width = 80; tag_height = 80; tag_thickness = 3; hole_x = 30; hole_y = 0; hole_r = 10; perimeter = -1000; per_w = 3; per_h = 10; qr_scale = 1.6; qr_tolerance = 0.001; qr_x = 0; qr_y = 0...
glb/cad_8b792d759870.glb
Create a record depot consisting of two concentric cylinders. First, create a wide, flat circular base with a radius of 45mm and a height of 7mm. Then, place a smaller, taller cylinder exactly in the center of the base; this central post should have a radius of 2mm and a total height of 12mm, extending 5mm above the to...
$fn=220; cylinder(h=7,r=45); cylinder(h=12,r=2);
glb/cad_4deee04866c1.glb
Create a paint mixing tray by starting with a main cylinder that has a height of 10mm and an outer radius of 16mm, centered on the origin. Hollow out this main body by removing a concentric conical volume that tapers from a 10mm radius at the bottom to a 15mm radius at the top, leaving a base thickness of 2mm. On the u...
thick = 2; height = 10; radiusDown = 20.0 /2; radiusUp = 30.0 / 2; jetDown = 5.0 /2; jetUp = 8.0 /2; $fn = 100; module tray() { difference() { difference() { union() { cylinder(h= height, r=radiusUp + (thick/2), center=true); translate([0, radiusUp, 0...
glb/cad_22feb736ad50.glb
Create a cable label consisting of a flat rectangular body with two integrated circular clips. The main body is a centered rectangle 13mm wide by 15mm long with a uniform thickness of 1mm. At each end of the 15mm length, add a clip. Each clip is formed by a 13mm diameter cylinder and a 13mm wide by 7.5mm long rectang...
cable_diameter=6.5; main_body_length=15; main_body_width=13; thickness=1; text="A"; text_thickness=2; text_size=10; text_font="Acme"; rotate_text="perpendicular"; $fn=100; main_body_width_use=max([cable_diameter*2,main_body_width]); union() { cube([main_body_width_use,main_body_length,thickness],center=true)...
glb/cad_8b16b50cb694.glb
Create a Parametric Phone Slide Mount by starting with a main rectangular body measuring 85mm in width, 21mm in depth, and 15mm in height, centered on the origin. Remove a central rectangular volume from this body to create a hollow shell with a wall thickness of 3mm on all sides, leaving the top open. The interior cav...
slide_lenght = 15 ; phone_hight = 12 ; phone_widith = 79 ; wall = 3 ; tab_size = 5 ; difference(){ cube([phone_widith+wall*2,slide_lenght,phone_hight+wall],center=true); translate([0,0,wall/2+.1])cube([phone_widith,slide_lenght+.2,phone_hight],center=true); } tab(); mirror(0,1,0)tab(); mirror(1,0,0)tab(); modul...
glb/cad_50aa6e3ee789.glb
Create a set of LED mounts and a DC jack mount designed to clamp onto an aluminum frame. For the side mounts, create a rectangular block 8mm deep and 11.5mm wide. The height is determined by four LEDs spaced 20mm apart with 10mm margins at the top and bottom. On the back side, add a clamp consisting of a 2mm thick wa...
part=""; sideOffsetX = 142.5; sideFocalOffsetsX = [70, 50, 30, 10]; topLEDCount = 4; sideOffsetZ = 20; ledDistance = 20; firstLastMargin = 10; sideMargin = 1; mountDepth = 8; clampSpacing = 1.5; clampThickness = 2; clampDepth = 15; ledHeight = 5.5; ledDiameter = 5.5; ledHoleDiameter = 6.5; wireChannelWid...
glb/cad_329c20137890.glb
Create a revolver-themed AAA battery storage container consisting of a main body and a removable cap. The main body is a cylinder with a diameter of 47mm and a height of 46.5mm. Inside this body, create six cylindrical holes for AAA batteries (10.5mm diameter, 44.5mm height) arranged in a circular orbit with a diamet...
include <MCAD/units/metric.scad> use <MCAD/array/along_curve.scad> use <MCAD/fasteners/nuts_and_bolts.scad> wall_thickness = 2; battery_d = 10.5; battery_h = 44.5; battery_orbit_d = 30; case_d = 47; case_h = battery_h + wall_thickness; cap_h = 5; groove_d = battery_d; screw_d = 3; spring_d = 2.6; spring_h = 15; ...
glb/cad_0d60f56bc9e5.glb
Create a removable filament spool bearing adapter. Start by constructing a central cylinder with a radius of 15.5mm and a height of 4mm. Add a second, slightly wider cylinder with a radius of 17.5mm and a height of 3mm, positioned so it overlaps the first cylinder's base. From this combined volume, remove a central cyl...
$fa = 6; $fs = 1; M8_r = 8 / 2 + .2; bearing_r = 22/2 + .2; spool_r = 15.5; spool_overlap = 2; bearing_h = 3; interface_h = 1; spool_h = 3; weird_angle = asin(M8_r / bearing_r); function cis(a) = [cos(a), sin(a)]; module thing(closed) { difference() { union() { translate([0, 0, -interface_h]) cylinder(r = sp...
glb/cad_576d2c1eb2e9.glb
Create a G2S Diagonal Rod Clip designed to secure a rod. The main body is based on a cylinder with a radius of 8mm and a height of 17mm. From this cylinder, remove a smaller concentric cylinder with a radius of 5.3mm and a height of 4.8mm from the base. To create the clip's opening and gripping structure, remove a ce...
use <ruler.scad> $fn=60; Clip(0,0,0); translate([40,0,0])Clip(0,0,180,0); translate([0,-40,0])Clip(0,180,0,-17); translate([40,-40,0])Clip(0,180,180,-17); module Clip(x,y,z,z2){ rotate([x,y,z])translate([0,0,z2])Body(); Hook(); } module Body(){ difference(){ clipExternal(); clipCenter();...
glb/cad_aa6c49fdc6a7.glb
Create a China i3 Base plate consisting of a main rectangular plate measuring 217mm by 217mm with a thickness of 5mm. At each of the four corners of this main plate, create a vertical hole with a radius of 2mm and a depth of 7mm. Add four bearing holder blocks, each measuring 40mm wide, 32mm high, and 5mm thick. Po...
plate_w = 217; plate_h = 217; plate_d = 5; bh_w = 40; bh_h = 32; bh_d = 5; hole_h = 7; hole_r = 2; hole_fn = 25; spareout_fn = 8; translate([0, plate_h, plate_d]) { rotate([180, 0, 0]) { difference() { union() { base_plate(); bearing_holder(4, 26, -5); bearing_holder(plate_w - bh_w - 4,...
glb/cad_de5ba4809bc8.glb
Create a reset knob for a controller by starting with a cube that is 11mm wide, 11mm deep, and 8mm high. Centered on the top face of this cube, add a cylinder with a diameter of 3mm and a height of 11mm, extending upwards. Finally, remove a smaller rectangular section from the bottom corner of the main cube, specifical...
difference() { union() { cube([11,11,8]); translate([5.5,5.5,0]) cylinder(d=3, h=11, $fn=18); } translate([2,2,-0.01]) cube([7,7,3]); }
glb/cad_9476ad0f2f61.glb
Create a cable holder consisting of a flat rectangular base with a thickness of 2.5mm. The main body is 50mm long and 10mm wide. Extend the length of the base by adding 10mm of material to both the left and right ends, resulting in a total length of 70mm. Along the center of this base, create a recessed channel 5mm wi...
$fn=50; lngRl=50; larRl=10; e=2.5; d=10; m=5; loPr=20; laPr=15; ef=3; module rollBase() { union(){ cube([lngRl,larRl,e]); translate([-d,larRl,0]){ cube([lngRl+2*d,m,e]); translate([-0.2*ef,m/2,0]){ cylinder(h=e,d=m); } translate([0.2*ef+lngRl+2*d,m/2,0]){ cylinder(h=e,d=m); } } ...
glb/cad_8db6069a79ec.glb
Create a replacement retainer ring for a coffee grinder. Start with a base cylinder 45mm in diameter and 2.2mm high. On top of this, add a flange that is 61.5mm in diameter and 2.8mm high. Above the flange, create an upper ring section 4mm high, with an outer diameter tapering from 54.2mm down to 52.8mm. The center of ...
bottom_ring_d = 45; bottom_ring_t = 2.3; bottom_ring_h = 2.2; flange_d = 61.5; flange_cut = 48.5; flange_h = 2.8; flange_t = 10.9; upper_ring_d1 = 52.8; upper_ring_d2 = 54.2; upper_ring_h = 4; upper_ring_inner_d = 49.9; upper_ring_side_t = 2.8; wedge_base = 13; wedge_h = 9; wedge_top =5; wedge_t = 2.2; wedge_clip_l ...
glb/cad_f07e75480534.glb
Create a roller shutter switch plate consisting of two rectangular parts: a bottom plate and a top plate. The bottom plate is a rectangular block 36mm wide, 74mm high, and 4mm thick. Centered within this block, create a rectangular cutout for the switch that is 21mm wide and 37mm high. Additionally, create two screw h...
plateWidth = 36; plateHeight = 74; thicknessTop = 3; thicknessBottom = 4; screwSpacing = 58; screwDiameter = 3.5; screwHoleAxe = "Vertical"; switchWidth = 21; switchHeight = 37; printedObject = "Demo"; ...
glb/cad_8a778179ace5.glb
Create a tube mount bracket consisting of a flat circular base and a vertical cylindrical sleeve. Start with a solid circular base plate 3mm thick with a radius of 3mm. Centered on this base, place a vertical hollow cylinder with an outer radius of 5.15mm and an inner radius of 3.15mm, extending 30mm in height. The wal...
use <part-B2.scad> pipeOuterWallDiameter = 6.3; pi = 3.141592653589; baseThickness = 3; baseMetrics = 3; pipeMountWallThickness = 2; pipeMountHeight = 30; pipeMountRadius = pipeOuterWallDiameter/2 + pipeMountWallThickness; RoundoverRadius = 4; pipeMountCutoutThickness = 3; pipeMountCutoutWidth = pip...
glb/cad_7b32f2d63629.glb
Create a Eurorack panel by starting with a rectangular base plate measuring 60.96mm wide, 128.5mm high, and 2mm thick. Remove two mounting slots from this plate, one centered horizontally at the top edge and one at the bottom edge. Each slot is composed of a central rectangular section 5.08mm wide and 3.2mm high, fla...
panelThickness = 2; panelHp=12; holeCount=2; holeWidth = 5.08; threeUHeight = 133.35; panelOuterHeight =128.5; panelInnerHeight = 110; railHeight = (threeUHeight-panelOuterHeight)/2; mountSurfaceHeight = (panelOuterHeight-panelInnerHeight-railHeight*2)/2; echo("mountSurfaceHeight",mountSurfaceHeight); hp=5.08; mount...
glb/cad_713f3354327f.glb
Create a cat-themed fidget spinner. The main body consists of a central circular hub and two outer arms extending symmetrically. Create three circular holes for bearings, each with a diameter of 22.1mm and a height of 7mm. Position one hole at the center and the other two spaced apart at a distance of 26.1mm from the c...
$fn = 60; x = 0; y = 1; z = 2; bearing = [22.1, 22.1, 7]; thick = 4; space = 2; filRad = 2; ear = 12; module fcylinder(z, x, rad) { translate([0, 0, rad-z/2]) minkowski() { cylinder(h=z-2*rad, d=x-2*rad); sphere(rad); } } module ftriangle(z, x, rad) { translate([0, 0, rad-z/2]) ...
glb/cad_560848e6a538.glb
Create a male snap-fit hose connector by revolving a specific profile around a central axis. The object begins with a circular base plate 31.88mm in diameter and 1mm thick. From the inner edge of this plate, extend a cylindrical root with a radius of 9.8mm up to a height of 13.71mm. At this height, the radius narrows t...
draft = false; $fs = draft ? 3 : 0.25; $fa = 2; module quarter_circle (r) { intersection () { circle (r= r); square ([r, r]); } } module fillet (r) { difference () { square ([r, r]); translate ([r, r]) circle (r= r); } } module snap_fit_connector_male () { inner_radius = 8.80 / 2;...
glb/cad_80447bd9be89.glb
Create a ColorFabb Spool Drawer, which is a curved storage compartment designed to fit within a cylindrical spool. Start by creating a cylindrical shell with an outer diameter of 200mm and an inner diameter of 105mm. The total height of the unit is 45mm, consisting of a 1.4mm thick bottom base, a 1.4mm thick top cap,...
number_of_drawers = 4; render_drawers = 1; inner_diameter = 105; outer_diameter = 200; inner_spool_width = 45; spool_hole_diameter = 52.9; segments_per_circle = 360; wall_thickness = 1.4; clearance_from_spool= 1; screw_hole_diameter = 2.492; tab_length ...
glb/cad_d0ce6f27233c.glb
Create a Logic Sniffer Case consisting of a main rectangular box and a matching lid. The main box should have outer dimensions of 99mm x 54.5mm with a total height of 9mm. Hollow out the center to create a cavity measuring 94mm x 49.5mm, leaving walls with a thickness of 2.5mm on the sides and 3mm at the bottom. At ea...
$fn = 100; height = 9; box_x = 99; box_y = 54.5; internal_x = 94; internal_y = 49.5; bolt_size = 3.1; bolt_nut_size = 6; lug_rad = 5; usb_w = 12; usb_h = 8.5; wall_x = (box_x - internal_x)/2; wall_y = (box_y - internal_y)/2; wall_z = 3; rotate (90) difference() { union() { translate([0,0,height/2]) cube([box_x,...
glb/cad_228c91a9bcfa.glb
Create a Logic Sniffer Case consisting of a flat rectangular base with a thickness of 2.5mm. The main body dimensions are 99mm by 54.5mm. At each of the four corners, create a cylindrical lug with a radius of 5mm. Within each lug, center a hole with a diameter of 3.1mm to accommodate a bolt. On the top surface of the...
$fn = 100; height = 2.5; box_x = 99; box_y = 54.5; internal_x = 94; internal_y = 49.5; bolt_size = 3.1; bolt_head_size = 5; lug_rad = 5; usb_w = 12; usb_h = 8.5; wall_x = (box_x - internal_x)/2; wall_y = (box_y - internal_y)/2; wall_z = 3; module case_top(){ rotate (90) difference() { union() { translate([0,0,height...
glb/cad_916fcc809f7e.glb
Create a Braille Word Cube by starting with a central cube of 25.4mm per side. Hollow out the center by removing a 2mm wide slot through the middle and a cylinder with a radius of 7.35mm (size/4 + 1) that runs through the center of the cube. To create the main body, add a cylinder with a radius of 6.35mm (size/4) and a...
W1_L1 = "b"; W1_L2 = "o"; W1_L3 = "x"; W2_L1 = "z"; W2_L2 = "i"; W2_L3 = "p"; W3_L1 = "t"; W3_L2 = "e"; W3_L3 = "n"; W4_L1 = "h"; W4_L2 = "u"; W4_L3 = "t"; size = 25.4; gap = 2; topBump = true; fontSize = .75; rotate([0,90,0]){ union(){ if(topBump) translate([-size-gap,0,0]) sphere(3); dif...
glb/cad_1429682efcce.glb
Create a corner piece for an X-Y control table. Start with a rectangular block that is 2mm thick, 40mm wide, and 40mm high. Center a large circular hole with a 10mm diameter through the block to accommodate a 12mm shaft bearing. Additionally, create four smaller circular holes, each with a 1.6mm diameter, to serve as m...
difference(){ union(){ translate([0,5,0]) cube([2,40,40]); } rotate([0,90,0]) translate([-21,25,-1]) cylinder(10,5,5,$fn=60); rotate([0,90,0]) translate([-5.5,40.5,-1]) cylinder(20,1.6,1.6,$fn=60); rotate([0,90,0]) translate([-36.5,9.5,-1]) cylinder(20,1.6,1.6,$fn=60); rotate([0,90,0]) translate([-5,9.5,-1]) cylinde...
glb/cad_aecf94a037a8.glb
Create a timing belt pulley for an X-Y control table. Start with a main cylindrical body that has a total height of 22mm and a diameter of 6.2mm. This body should have a central longitudinal hole with a diameter of 6.2mm running through its center. Add a larger cylindrical flange to the top of the pulley with a height...
difference(){ union(){ cylinder(5,9,9,$fn=60); cylinder(12,7.64,7.64,$fn=60); translate([0,0,12]) cylinder(1,7.64,9,$fn=60); translate([0,0,13]) cylinder(2,9,9,$fn=60); rotate([0,0,0]) translate([0,7.64,5]) cube([1,1,8]); rotate([0,0,15]) translate([0,7.64,5]) cube([1,1,8]); rotate([0,0,30]) trans...
glb/cad_f50b9bc0ef95.glb
Create a timing belt pulley for an X-Y control table. Start with a central cylindrical body that has a total height of 13mm. The bottom section is a cylinder with a radius of 3.1mm and a height of 12mm. Above this, add a smaller cylindrical cap with a radius of 2.6mm and a height of 1mm, bringing the total height to 13...
difference(){ union(){ cylinder(5,9,9,$fn=60); cylinder(12,7.64,7.64,$fn=60); translate([0,0,12]) cylinder(1,7.64,9,$fn=60); translate([0,0,13]) cylinder(5,9,9,$fn=60); rotate([0,0,0]) translate([0,7.64,5]) cube([1,1,8]); rotate([0,0,15]) translate([0,7.64,5]) cube([1,1,8]); rotate([0,0,30]) trans...
glb/cad_742b16b7e682.glb
Create a corner mount for an X-Y control table. Start with a rectangular block measuring 10mm wide, 60mm long, and 40mm high. Remove a cylindrical hole with a 6.2mm diameter that runs through the center of the block along its 40mm width, positioned 24mm from the bottom edge. Create four mounting holes for a stepper...
difference(){ union(){ cube([10,60,40]); } rotate([90,0,0]) translate([5,24,-68]) cylinder(20,3.1,3.1,$fn=60); translate([5,5,-1]) cylinder(50,2.1,2.1,$fn=60); translate([5,45,-1]) cylinder(50,2.1,2.1,$fn=60); rotate([0,90,0]) translate([-21,25,-1]) cylinder(7,9.5,9.5,$fn=60); rotate([0,90,0]) translate([-21,25,2]...
glb/cad_99f1974416ad.glb
Create a corner piece for an X-Y control table. Start with a rectangular block measuring 60mm in length, 20mm in width, and 30mm in height. Remove two cylindrical holes with a diameter of 6.1mm and a depth of 21mm, positioned symmetrically along the length of the block to accommodate bearings. Centered between these ...
difference(){ union(){ translate([-20,20,-21]) cube([60,20,30]); } rotate([0,0,90]) translate([32,-26,-10]) cylinder(21,6.1,6.1,$fn=60); rotate([0,0,90]) translate([32,6,-10]) cylinder(21,6.1,6.1,$fn=60); rotate([0,0,90]) translate([32,-26,-25]) cylinder(50,4,4,$fn=60); rotate([0,0,90]) translate([32,6,-25]) cylinde...
glb/cad_4cbf3f2982c0.glb
Create a corner bracket for an X-Y control table. Start with a main body composed of two joined rectangular blocks: one measuring 40mm x 20mm x 30mm and an adjacent section measuring 40mm x 7mm x 70mm. Carve several cylindrical holes and slots into this body. Create a central vertical hole with a diameter of 6.1mm an...
difference(){ union(){ translate([-10,20,-21]) cube([40,20,30]); translate([-10,16,-21]) cube([40,7,70]); } rotate([0,90,0]) translate([13,32,-11]) cylinder(21,6.1,6.1,$fn=60); rotate([0,90,0]) translate([13,32,-30]) cylinder(80,4,4,$fn=60); rotate([90,0,0]) translate([10,30,-22]) cylinder(7,9.5,9.5,$fn=60); rotate...
glb/cad_93a8c3e7b755.glb
Create a corner bracket for an X-Y control table. Start with a main body composed of two joined rectangular blocks: one measuring 40mm by 20mm by 30mm and another measuring 40mm by 3mm by 70mm. From this base, remove several cylindrical holes and slots. Create a central horizontal hole with a diameter of 12.2mm and a...
difference(){ union(){ translate([-10,20,-21]) cube([40,20,30]); translate([-10,20,-21]) cube([40,3,70]); } rotate([0,90,0]) translate([13,32,-11]) cylinder(21,6.1,6.1,$fn=60); rotate([0,90,0]) translate([13,32,-30]) cylinder(80,4,4,$fn=60); rotate([90,0,0]) translate([10,30,-30]) cylinder(20,11,11,$fn=60); rotate...
glb/cad_45739e27e63d.glb
Create a corner piece for an X-Y control table. Start with a main body composed of two joined rectangular blocks: one measuring 60mm x 3mm x 30mm positioned at coordinates (-20, 20, -21), and a second block measuring 60mm x 15mm x 30mm positioned at (-20, 20, 9). From this combined volume, remove several cylindrical ...
difference(){ union(){ translate([-20,20,-21]) cube([60,3,30]); translate([-20,20,9]) cube([60,15,30]); } rotate([90,0,0]) translate([35,-15,-60]) cylinder(50,1.6,1.6,$fn=60); rotate([90,0,0]) translate([35,5,-60]) cylinder(50,1.6,1.6,$fn=60); rotate([90,0,0]) translate([-15,-15,-60]) cylinder(50,1.6,1.6,$fn=60); ro...
glb/cad_15d555ceb146.glb
Create a 3D model of an angle pin header consisting of a grid of 5 rows and 2 columns. The components are spaced with a pitch of 1.27mm. For each pin position, construct a right-angle pin. The horizontal section of the pin is a square prism with a side length of 0.6425mm and a total length of 10.16mm (4 times the pitc...
angle_header(rows=5,cols=2,pitch=1.27); module angle_header(rows,cols,pitch){ offsety=((cols+1)*pitch)-((cols+1)*pitch)/2; offsetx=-1*((rows-1)/2*pitch); rotate([0,90,0]) translate([0,offsetx,offsety]) union(){ for(j=[0:1:cols-1]){ translate([-1*pitch*j,0,0]) for(i=[...
glb/cad_f470ddd26185.glb
Create a motor tool for RS2205/MT2204 motors. Start by creating a hollow cylindrical shell with an outer diameter of 36mm and an inner diameter of 28mm, with a total height of 11mm. To allow the tool to clamp, cut a thin vertical slot 0.8mm wide through the entire height of the cylinder, centered along the Y-axis. Aro...
$fa = 0.5; $fs = 0.5; notch_height=4; bell_diam=28; outer_diam=36; notch=4; bell_lower=7; difference() { union() { difference() { cylinder(h=bell_lower+notch_height, r=outer_diam/2); translate([0,0,-1]) cylinder(h=bell_lower+notch_height+2, r=bell_diam/2); } ...
glb/cad_1854760aa09c.glb
Create an M2 Fan Bracket by constructing a base form from three joined rectangular prisms. Start with a central block measuring 18mm x 3mm x 8mm. Attach a second block of 8mm x 3mm x 8mm to the side, centered at a position that extends the total length to 26mm along the Y-axis. Add a third block measuring 12mm x 3mm x ...
difference () { union () { cube ([18,3,8],center=true); translate ([-7.5,5.5,0]) rotate ([0,0,90]) cube ([8,3,8],center=true); translate ([12.18,-3.80,0]) rotate ([0,0,-45]) cube ([12,3,8],center=true); } translate ([-7.5,1.5+4,0]) rotate ([0,90,0]) cylinder (h=5+0.1,r=1.6,$fn=100,center=true); ...
glb/cad_e7f5d1558b62.glb
Create a foot for a bio-waste bin by starting with a solid cube measuring 35mm in length, 35mm in width, and 11mm in height. From this base, remove a rectangular section to create a recessed channel. This cutout should be 8.15mm high and positioned such that it leaves a wall thickness of 2.03mm on the left side and 8.5...
Winkel=17.0; Dicke=2.03; Hoehe=8.15; Laenge=35.0; Breite=35.0; HoehePlatte=11.0; Abstand=4.0; difference() { cube ([Laenge,Breite,HoehePlatte]); translate ([Dicke,Winkel/2,HoehePlatte-Hoehe]) cube ([Dicke,Laenge,Hoehe]); translate ([Winkel/2,Dicke,HoehePlatte-Hoehe]) cube ([Laenge,Dicke,Hoehe]); translate...
glb/cad_80e2269ccdb7.glb
Create a foot for a bio-waste bin by starting with a solid rectangular base block measuring 35mm in length, 35mm in width, and 11mm in height. From this base, remove a rectangular section to create a recessed channel. This cutout should be 8.15mm high and positioned such that it leaves a wall thickness of 2.03mm on the...
Winkel=17.0; Dicke=2.03; Hoehe=8.15; Laenge=35.0; Breite=35.0; HoehePlatte=11.0; Abstand=4.0; difference() { cube ([Laenge,Breite,HoehePlatte]); translate ([0,0,HoehePlatte-Hoehe]) cube ([Winkel,Winkel,Hoehe]); translate ([Dicke,0,HoehePlatte-Hoehe]) cube ([Dicke,Laenge,Hoehe]); translate ([0,Dicke,HoehePlatte...
glb/cad_1b3a049e35c7.glb
Create a Braille module consisting of a series of 6-faceted spheres arranged in cells. Each cell is 6mm wide. Within each cell, position spheres at specific coordinates to form Braille characters. The possible positions for spheres in a cell are: dot 1 at (-1.5, 3, 0), dot 2 at (-1.5, 0, 0), dot 3 at (-1.5, -3, 0), dot...
word = "Example"; $fn = 6; braille_conversion_db =[ ["CAPS", [6] ], ["A", [1] ], ["B", [1, 2] ], ["C", [1, 4] ], ["D", [1, 4, 5] ], ["E", [1, 5] ], ["F", [1, 2, 4] ], ["G", [1, 2, 4, 5] ], ["H", [1, 2, 5] ], ["I", [2, 4] ], ["J", ...
glb/cad_c2582ea2747d.glb
Create a filter wheel replacement part consisting of a central cylinder and six radiating blades. Start with a central cylinder 14mm in diameter and 29mm tall, positioned so its base is 6mm below the center point. Around this cylinder, add six rectangular blades, each 40mm long, 8mm wide, and 2.4mm thick. Arrange these...
difference() { union() { for(i=[0:2]) { rotate([0,0,60*i]) cube([40,2.4,8],center=true); } translate([0,0,-6]) cylinder(d=14,h=29,$fn=60); } cylinder(d=7.6,h=60,$fn=60,center=true); translate...
glb/cad_8b876d8f0ed8.glb
Create a 3-piece air lock consisting of a cap, a main chamber, and a floater. First, create a cylindrical cap with a height of 5mm and an outer diameter of 14.5mm. The cap should have a central hole 12.5mm in diameter that extends 3mm deep, and six small 1mm diameter holes passing through the cap, arranged in a circu...
$fn = 100; outerChamberDiameter = 12; innerChamberDiameter = outerChamberDiameter - 2; lip = 0.25; innerCapDiameter = outerChamberDiameter + lip; outerCapDiameter = innerCapDiameter + 2; outerStrawDiameter = 4; innerStrawDiameter = outerStrawDiameter - 1; outerFloaterDiameter = (outerChamberDiameter + outerStrawDiamet...
glb/cad_6d88612e2d16.glb
Create a 3-piece air lock consisting of a cap, a main chamber, and a floater. First, create the cap as a cylinder 5mm high with an outer diameter of 14.5mm. Hollow out the center with a cylinder 12.5mm in diameter and 3mm deep, leaving a 0.25mm lip. Drill six 1mm diameter holes completely through the cap, spaced even...
$fn = 100; outerChamberDiameter = 12; innerChamberDiameter = outerChamberDiameter - 2; lip = 0.25; innerCapDiameter = outerChamberDiameter + lip; outerCapDiameter = innerCapDiameter + 2; outerStrawDiameter = 4; innerStrawDiameter = outerStrawDiameter - 1; outerFloaterDiameter = (outerChamberDiameter + outerStrawDiamet...
glb/cad_e81ae63e93a4.glb
Create a Picture Magnet holder by starting with a solid rectangular block measuring 6mm in width, 42mm in depth, and 32mm in height. Carve a rectangular slot into the back of the block to hold a magnet; this slot should be 1.8mm wide, 37mm deep, and 10.5mm high, centered vertically along the back face. On the opposit...
$fa=6; $fs=0.1; EPS=0.01; PictureHeight=30; PictureWidth=40; Width=6; MagnetThickness=1.8; MagnetHeight=10.5; HandleWidth=0; HandleHeight=10; Height=PictureHeight+2; Depth=PictureWidth+HandleWidth+2; rotate(90, [1,0,0]) PictureMagnet(); module window() { W=PictureWidth-4; H=PictureHeight-4; translate(...
glb/cad_f04eb4972104.glb
Create a Volume Knob with a total diameter of 60mm and a height of 10mm. The top surface should be a smooth, slightly domed cap with a maximum dome height of 3mm. The center of the knob must be hollowed out to accommodate a potentiometer. Create a central vertical hole with a diameter of 6.4mm that extends through th...
knob_diameter = 60; knob_rise = 10; knob_dome_height = 3; segment_length = 0.5; pot_travel = 300; pot_index = 90; pi = 3.141592653589; r = knob_diameter / 2; h = knob_dome_height; a = (((r * r) + (h * h)) / 2 / h); sl = segment_length; module knob() { render() rotate_extrude($fn = r * 2 * pi / sl) { union() ...
glb/cad_31e8abc39c8f.glb
Create a Sandstruder extruder consisting of a main body that transitions from a wide auger housing to a narrow tube output. Start by creating a cylindrical shroud with an inner diameter of 26mm and a wall thickness of 3mm, extending 25mm in length. This shroud houses a 26mm diameter auger. At the rear of the shroud, ...
$fa=4; $fs=0.2; wall=3.0; auger_dia=26; auger_len=4.5*25.4; stickout=100; shroud_len=25; auger_start=[-stickout,0,0]; auger_dir=[0,90,0]; use_bearing=true; bowden_dia=0.5*25.4; bowden_start=[-25+wall,0,-30]; bowden_dir=auger_dir+[0,-45,0]; bowden_output=10; module auger_itself() { auger_diaN=[8.45,8.45,9.42,2...
glb/cad_396e93b4054a.glb
Create a toy gyroscope consisting of three nested gimbal rings, a central rotor, and an outer frame. Each gimbal ring is a cylinder with a height of 8mm, an inner diameter that increases for each outer ring, and a wall thickness of 2.5mm. The innermost ring has an inner diameter of 50mm. Each ring features two pivot ...
inner_diameter = 50; width = 8; thickness = 2.5; spacing = 5; rotor_clearance = spacing/2; pin_extra = 1; base_slop = 0.1; overlap = 1; axle_sides = 8; axle_slop = 0.1; $fn = 100; if(true) { gimbal(0, inner_diameter, spacing, thickness, width); rotate(90, [0,0,1]) gimbal(1, inner_diameter, spacing, thickness, wid...
glb/cad_68177bef2ef1.glb
Create a smoke absorber duct adapter consisting of three concentric sections. Start with a central hollow cylinder 80mm in diameter, 25mm high, with a wall thickness of 1.5mm. Below this, attach a conical transition section 35mm high that flares outward from the 80mm diameter to a bottom diameter of 119mm. This transit...
big_diameter = 120-1; small_diameter = 80; small_diameter_depth = 25; slide_thickness = 1.55; slot_thickness = 67; loft_depth = 35; shell = 1.5; adjusted_big_radius = (big_diameter - 10)/2; difference(){ union(){ difference(){ cylinder(h = small_diameter_depth,r = small_diameter/2); ...
glb/cad_1fa9a1ce1894.glb
Create a smoke absorber duct adapter and spool holder consisting of two identical components spaced 150mm apart along a vertical axis. For each component, start with a rectangular base measuring 10.3mm wide by 63.8mm high by 2mm thick. At the top center of this rectangle, create a semi-circular cutout with a radius of ...
$fn = 60; rect1w = 10.3; rect1h = 63.8; trih = 6.17; triw = 10.3; inner_rad = 14/2; shell = 2; for (i=[0:1]) translate([0,0,i*150]){ difference(){ cube([rect1w,rect1h,2]); translate([rect1w/2,rect1h-7/2,-1])cylinder(h = 4, r = 7.3/2); } translate([0,rect1h,0]) linear_extrude(height=2, cen...
glb/cad_9e155291cfb3.glb
Create an X Leveller tool consisting of two identical semi-cylindrical claws connected by a central T-beam. Each claw is a hollowed-out semi-circle with an inner radius of 4.1mm and an outer radius of 7.1mm, creating a wall thickness of 3mm. The claws have a total depth of 25mm and a height of 15mm. One claw is orien...
z_distance = 100; rod_diameter = 8.2; claw_depth = 25; claw_height = 15; wall_thickness = 3; beam_width = 10; beam_height = 10; $fn=100; module claw(inner_radius, height, depth, wall_thickness, with_entry = false) { total_width = (inner_radius + wall_thickness) * 2; difference() { union() { cylinder(r =...
glb/cad_d57f3c190f89.glb
Create a Schlage SC1 Key Maker consisting of a flat key blade and a handle. The blade has a thickness of 2.032mm, a width of 8.51mm, and a total length of 42.85mm. The tip of the blade is chamfered at 45-degree angles. The handle is a rounded rectangular block with a 3.175mm diameter hole positioned 4.76mm from the bac...
distance_from_cut_to_bottom_of_key = 0; cut_1 = 5; cut_2 = 7; cut_3 = 4; cut_4 = 2; cut_5 = 1; rotate_flat=0; function mm(i) = i*25.4; module rounded(size, r) { union() { translate([r, 0, 0]) cube([size[0]-2*r, size[1], size[2]]); translate([0, r, 0]) cube([size[0], size[1]-2*r, size[2]]); ...
glb/cad_3dccb3e25511.glb
Create a Customizable Cabinet Pull Template by starting with a rectangular base plate measuring 76.2mm wide by 184.14mm long with a thickness of 12.7mm. At the bottom of this plate, add a smaller rectangular extension that is 76.2mm wide and 12.7mm long, extending the total length of the base to 196.84mm. Through the c...
$fa=6*1; $fs=0.5*1; x_in=3.0; y_in=3.0; z_in=0.5; d_in=0.165; CTC_in=3.77; mm_per_inch=25.4*1; x_mm = x_in*mm_per_inch; y_mm = y_in*mm_per_inch; z_mm = z_in*mm_per_inch; d_mm = d_in*mm_per_inch; CTC_mm = CTC_in*mm_per_inch; difference() { union() { linear_extrude(z_mm) square([x_mm, (z_mm+y_mm+CTC_m...
glb/cad_216e09f43e72.glb
Create a Customizable Stencil Ruler by starting with a rectangular base measuring 2.5 inches wide by 7 inches long with a thickness of approximately 0.064 inches. Along one length of the ruler, add a series of raised tick marks to create a standard inch scale. To create the stencil features, cut the following geometri...
ruler_width = 2.5; ruler_length = 7; number_of_basicShapes = 0; type_of_basicShape_1 = 3 ; basicShape_1_x_position = .5; basicShape_1_y_position = .5; basicShape_1_size = .5; type_of_basicShape_2 = 3 ; basicShape_2_x_position = .5; basicShape_2_y_position = .5; basicShape_2_size = .5; type_of_basicShape_3 = 3 ; ...
glb/cad_a02bab82bed8.glb
Create a Cordless Drill Motor Mount designed as a hollowed-out bracket. Start with a central body consisting of a 40mm by 26mm by 24mm block merged with a cylinder of 20mm radius and 24mm height. Attach a mounting tab measuring 68.5mm by 5mm by 24mm, centered at the rear. Add two wing-like extensions by placing 14mm by...
DrillMotorMount(); module DrillMotorMount() { difference() { union() { difference() { union() { translate([0,13,24/2]) cube([40,26,24],center=true); translate([0,0,12]) cylinder(r=40/2,h=24, center=true); translate([0,24,24/2]) cube([68.5,5,24],center=true); ...
glb/cad_c6b32ec49fac.glb
Create a Cordless Drill Motor Mount by starting with a central body composed of a 48mm by 26mm by 24mm cube merged with a cylinder of 24mm radius and 24mm height centered on the same axis. Extend the structure with a mounting tab measuring 76.5mm by 5mm by 24mm, centered at the back. To refine the shape, add two small ...
DrillMotorMountBack(); module DrillMotorMountBack() { difference() { union() { translate([0,13,24/2]) cube([48,26,24],center=true); translate([0,0,12]) cylinder(r=48/2,h=24, center=true); translate([0,24,24/2]) cube([76.5,5,24],center=true); translate([24,10,3/2]) rotate([0,0,-28]) ...
glb/cad_51d8a6a5efe4.glb
Create a Cordless Drill Motor Mount by starting with a main cylinder that has a radius of 10.5mm and a height of 12mm, centered on the Z-axis. From the center of this cylinder, remove a hexagonal prism with a flat-to-flat radius of 9mm and a height of 20mm to create a deep hexagonal socket. Finally, remove a smaller ci...
DrillMotorNutKeeper(); module DrillMotorNutKeeper() { difference() { union() { translate([0,0,12/2]) cylinder(r=21/2,h=12, center=true); } translate([0,0,15]) cylinder(r=18/2,h=20, center=true, $fn=6); translate([0,0,5]) cylinder(r=6/2,h=20, center=true, $fn=40); } }
glb/cad_c888ec46c772.glb
Create a max31855 case consisting of a main hollow box and a separate lid. For the main body, construct a rounded rectangular block with outer dimensions of 26mm by 28mm and a height of 7mm, using a corner radius of 2mm. Hollow out the center to create a cavity 22mm wide, 24mm deep, and 6mm high, leaving a wall thickne...
$fn = 60; difference() { minkowski(){cube([22,24,5]); cylinder(r1=2,r2=2,h=2); } translate([2,2,1]) minkowski(){ cube([18,20,8]); cylinder(r1=2,r2=2,h=4); } } translate([30,0,0]) difference() { union(){ minkowski(){cube([22,24,.8]); cylinder(r1=2,r2=2,h=.2); } translate([2.5,2.5,-1])minkowski(){ cube([17,19,1]); ...
glb/cad_d15ad7bce68a.glb
Create a rubber band loom consisting of a rectangular base with a grid of pegs. Start with a base plate measuring 90mm in length, 50mm in width, and 3mm in thickness. On this base, place three rows of pegs. Each row contains four pegs. The first row is positioned along one long edge, the second row is centered along ...
base_Y = 50; base_X = 90; base_thickness = 3; peg_thickness = 3; peg_height = 16; gap_width = 2.9; X_pegs = 4; step_width = 1.5; step_percent = 12; cube([base_X,base_Y,base_thickness]); peg_line(); translate([((base_X-peg_thickness*4)/(X_pegs-.5))*.5,((base_Y-peg_thickness*4)/2),0]) peg_line(); translate(...
glb/cad_a855505a1337.glb
Create a grass cutter blade assembly consisting of a central hub, an outer ring, and three twisted blades. Start by creating a hollow outer cylinder with a diameter of 42mm, a height of 4mm, and a wall thickness of 2mm. Inside this, place a smaller concentric hollow cylinder with a diameter of 8mm, a height of 4mm, and...
Quality=4; fineness=1/2; Thickness=3; Height=10; Lenght=40 *2 / Quality; depth=1 / Quality; Deg=4; NO_Of_Blades=3; color("yellow") { Tube(4,21*2,2,90 ) ; Tube(4,8,3,NO_Of_Blades*2) ; No_Of_Blade(NO_Of_Blades); } module Tube(H,D,Wall,$fn) { T=.2; t=.1; d=D-Wall*2; h=H+T; translate([0,...
glb/cad_2cef70d8f329.glb
Create a knob for a Full Graphic Smart LCD Controller. Start with a truncated cone that is 14mm high, with a bottom radius of 10mm and a top radius of 6.5mm. Add a wing to the side of the cone by creating a rectangular block 26mm wide, 4mm thick, and 14mm high, centered on the Y-axis and intersecting the cone. To cre...
post_diameter_tolerance = 0.2; post_diameter = 6 + post_diameter_tolerance; post_height = 11; knob_height = 14; knob_bottom_r = 10; knob_top_r = 6.5; knob_wing_w = 4; full_part(); module full_part() { difference() { union() { knob(); wing(); } union() { ...
glb/cad_82c4a729c5f9.glb
Create an LED strip holder clip with a base height of 10mm. Start with a main cube of 20mm x 20mm x 10mm. Add a second cube of 6.5mm x 6.5mm x 10mm, rotated 45 degrees on the Z-axis and centered at X=10mm, Y=-2.5mm. Add a thin rectangular slab of 21mm x 5mm x 10mm along the X-axis starting at X=-0.5mm. From this combi...
w = 20; p = 10; t = w - 15; q = 6.5; f = (2.5*w)/t; k = 2.; u = 7; union() { difference() { union() { cube([w, w, p]); translate([w/2, -t/2, 0]) scale([2, 1, 1]) rotate([0, 0, 45]) cube([q, q, p]); translate([-0.5, 0, 0]) ...
glb/cad_d421d1a3ef98.glb
Create an LED strip holder clip with a total height of 10mm. The base is a 20mm wide by 20mm tall profile. From this base, remove a central rectangular section starting 2.5mm from the left and right edges and 2.5mm from the bottom, leaving a 2.5mm thick wall on the left and right sides and a 2.5mm thick floor at the bo...
w = 20; extrude_width = 10; t = w - 15; q = 6.5; k = 2; module top_decoration(w, t) { translate([-0.5, 0]) square([w + 1, t/5]); polygon([[w/4, 0], [w/2, -t], [w * 0.75, 0]]); } module bottom_decoration(w, t) { f = t/5; translate([t/2, 0]) polygon([[0, 0], [f, 0], [0, -f]]); translate([w -t/2, 0...
glb/cad_e11a0fc2635e.glb
Create a tripod mount holder for a Clearview receiver and AV powerbox. Start by creating a main grip for the receiver: form a hull between two cylinders with a radius of 14.5mm and a height of 60mm, spaced 52.4mm apart along the Y-axis. Carve out the receiver's internal shape by subtracting a hull of two cylinders with...
$fn=100; difference(){ cleaviewGrip(); cleaviewShape(); } difference(){ translate([25,-10,0]) avPowerBoxGrip(); translate([25,-10,-12]) avPowerBoxShape(); translate([40,0,-10]) cube([20,52.5,80]); } translate([12.5,-5,12.1]) cube([10,75,35.8]); difference(){ translate([12.5,-5,0]) cube([10,5,60]); translate([17,80,...
glb/cad_d431a2e713ac.glb
Create a parametric cable clip designed as a flat, U-shaped bracket. Start with two parallel vertical walls, each 2mm thick, 25mm long, and 15mm wide. Position these walls so they are separated by a gap of 2.3mm. Connect these walls with a horizontal base plate that is 2mm thick and 15mm wide; this base should extend f...
Flat=1; Table_Thickness=13; Clip_Thickness=2; Length=25; Clip_Width=15; Cable_Diameter=4.5; $fs=0.2; if (Flat == 1) { cube ([Clip_Thickness,Length,Clip_Width]); translate ([(Table_Thickness/10)+Clip_Thickness+0.5,0,0]) cube ([Clip_Thickness,Length,Clip_Width]); cube ([(Table_Thickness/10)+Clip_Thickne...
glb/cad_21d4a78ff5b8.glb
Create a Minicraft drill press clamp assembly consisting of a base, a stem, and a ring. Start with a rectangular base 36mm wide, 12mm high, and 6mm thick. Round the corners with a 3mm radius. Center two M3 nut-catch holes in the base, spaced 20mm apart along the height axis. Extend a stem from the base with a width ...
$fn=200; include <nutsnbolts/materials.scad>; include <nutsnbolts/cyl_head_bolt.scad>; corner_radius = 3; base_width = 36; base_height = 12; base_thickness = 6; base_hole_spacing = 20; base_fixing = "M3"; stem_base_width = 12; stem_base_height = 12; stem_ring_offset = [0, 0, 10]; ring_height = 12; ring_inner_diam...
glb/cad_00341c006084.glb
Create a Minicraft MB1012 drill press clamp assembly consisting of a base, a stem, and a clamping ring. Start with a rectangular base 59mm wide, 12mm high, and 6mm thick. Round the four corners with a 3mm radius. Center two M3 nut-catch holes in the base, spaced 45mm apart along the length. Extend a stem from the ce...
$fn=200; include <nutsnbolts/materials.scad>; include <nutsnbolts/cyl_head_bolt.scad>; corner_radius = 3; base_width = 45+14; base_height = 12; base_thickness = 6; base_hole_spacing = 45; base_fixing = "M3"; stem_base_width = 12; stem_base_height = 12; stem_ring_offset = [0, 0, 0]; stem_ring_rotate = [0, 90, 0]; ...
glb/cad_ad7db687e373.glb
Create a quick release mechanism for a Minicraft drill press consisting of a release lever and a cam pivot. First, construct the release lever. Create a main body by taking a cylinder with a height of 10mm and an outer radius of 40mm, and subtract a concentric inner cylinder with a radius of 38mm. Slice this shape in...
lever_faces = 32; cam_faces = 120; include <nutsnbolts/materials.scad>; include <nutsnbolts/cyl_head_bolt.scad>; Enable_Release = 1; Enable_Pivot = 1; outer_radius = 40; inner_radius = 38; radius_offset = 10; lever_smooth = 2; lever_height = 10; lever_height_s = lever_height-lever_smooth*2; outer_...
glb/cad_6bb2d8a0a635.glb
Create a filament guide consisting of a main support body and an integrated screw-like pillar. Start by creating a rectangular block with a depth of 8mm, a width of 9mm, and a height of 9mm. From this block, remove a rectangular section from the bottom center to create a U-shaped bracket. Add a cylindrical pillar exte...
$fa=5; $fs=0.1; frame_depth = 7.8 + 0.2; screw_diameter = 3.0 + 0.2; support_screw_d = 3.4; support_screw_d2 = 5; hole_z = 10 + 0.5; wsz = 2; gap = 7; width = support_screw_d2 + 2 * wsz; top = support_screw_d2 + 2 * wsz; module screw_hole() { translate([0.5,0,-hole_z]) rotate(a=[0,-90,0]) cylinder(d=3, h=frame_dep...
glb/cad_a55f646c9ad8.glb
Create a GM Gear Box Wheel with a total height of 13.2mm. Start with a main cylindrical rim that has an outer radius of 8.5mm and a wall thickness of 1.5mm. Add three concentric ridges to the rim to secure a tire: one central ridge with a radius of 10.25mm and a width of 2mm, and two outer ridges (one at the top and ...
freeWheel = true; ridgeHeight = 1.75; ridgeWidth = 2; lipWidth = 1.5; lipHeight = 1; rimRadius = 17/2; rimThickness = 1.5; endCapThickness = 1; wheelWidth = 13.2; faceNumber = 100; screwRadius = 1; tabLength = 8.25; tabWidth = 5.5; tabDepth = 5; bulgeHeight = 2; spokeMaxRadius = rimRadius / 2; spokeMinRadius = 2; ...
glb/cad_1b2d7c000158.glb
Create a plughole strainer consisting of a hollow hemispherical dome and a cylindrical base. Start by creating a sphere with a diameter of 37mm and a wall thickness of 3mm. Flatten the bottom of this sphere by removing the lower quarter of its volume. To create the drainage slots, carve 21 rectangular holes through the...
numberofslots = 21; outsidediameter = 37; openingsize = 2; standoffheight = 5; outsideradius = outsidediameter / 2; rotateangle = 360 / numberofslots; difference (){ sphere(r = outsideradius); sphere(r = outsideradius - 3); translate(v = [0,0,0-outsideradius/2]) { cube(size = [outsidediameter,outsidediameter,out...
glb/cad_68091767c53d.glb
Create an LED strip holder clip with a total width of 20mm and a height of 20mm, extruded to a thickness of 10mm. The main body is a U-shaped channel with walls 5mm thick, leaving a central void of 10mm wide and 15mm high. At the top of the clip, add a decorative overhang that extends the full 20mm width by 1mm in heig...
spacing_of_clip_legs = 15; height = 20; extrude_to_width = 10; clip_thickness = 5; cut_into_top = true; wires = 3; wire_diameter = 2; q = wire_diameter * (wires + 0.5); k = wire_diameter; t = clip_thickness; w = spacing_of_clip_legs + clip_thickness; module top_decoration(w, t) { translate([-0.5, 0]) square(...
glb/cad_0e84d65c98a1.glb
Create a car jack adapter in the shape of a hexagonal prism. The main body is formed by three intersecting rectangular prisms, each measuring 32mm by 18.4mm by 25mm, rotated at 60-degree intervals around the center axis to create a six-sided outer profile. From the center of this hexagonal volume, remove a rectangular ...
module sechskant(){ $var = 18.4; cube([32,$var,25], center=true); rotate([0,0,60]) cube([32,$var,25], center=true); rotate([0,0,120])cube([32,$var,25], center=true); } difference() { sechskant(); rotate([0,0,90])cube([8,26,32], center=true); }
glb/cad_cda2e3bbc955.glb
Create a car jack adapter in the shape of a hexagonal prism. The main body is formed by three intersecting rectangular blocks, each measuring 32mm by 18.4mm by 25mm, rotated at 60-degree intervals around the center axis to create a symmetric six-sided profile. From this solid volume, remove two rectangular slots to cre...
module sechskant(){ $var = 18.4; cube([32,$var,25], center=true); rotate([0,0,60]) cube([32,$var,25], center=true); rotate([0,0,120])cube([32,$var,25], center=true); } difference() { sechskant(); rotate([0,0,90]) translate([9,0,0]) cube([4,22,32], center=true); rotate([0,0,90]) translate([-9,0,0]) cube([...
glb/cad_28e996ea2026.glb
Create a car jack adapter in the shape of a hexagonal prism. The main body is formed by three intersecting rectangular prisms, each measuring 32mm by 18.4mm by 25mm. Position the first prism centered at the origin. Rotate the second prism 60 degrees around the Z-axis and the third prism 120 degrees around the Z-axis, c...
module sechskant(){ $var = 18.4; cube([32,$var,25], center=true); rotate([0,0,60]) cube([32,$var,25], center=true); rotate([0,0,120])cube([32,$var,25], center=true); } difference() { sechskant(); }
glb/cad_0ad25e891adc.glb
Create a perm hair roller consisting of a long main body and a capping mechanism. Start by creating a main cylindrical rod with a diameter of 5.8mm and a length of 58mm. At the top end of this rod, add a perpendicular cylindrical disc with a diameter of 8.7mm and a thickness of 5.8mm. Cut a thin longitudinal slot 0.5mm...
Hoehe=14.4; Durchmesser_aussen=9.22; Durchmesser_innen=7.05; Dicke=Durchmesser_aussen-Durchmesser_innen; Steg=2.45; Kuppe=4.5; $fn=50; Laenge=58; Durchmesser=5.8; Oben_Durchmesser=8.7; Spalt=0.5; module Kopf () { cylinder (r=Durchmesser_aussen/2, h=Hoehe-Kuppe); translate ([0,0,Hoehe-Kuppe]) sphere (r=Durchmesser_aus...
glb/cad_7fbf62acb5cd.glb
Create a tension belt holder for snow shoes by constructing a rectangular U-shaped channel with a total outer length of 50mm, a width of 15mm, and a height of 32mm. The main body consists of two parallel outer walls, each 3mm thick and 32mm high, connected by a base plate that is 3mm thick and 15mm wide. To form the in...
module snowshoeholdersub() { cube([10,15,3]); cube([10,3,32]); translate([0,12,0]) cube([10,3,20]); translate([0,0,29]) cube([10,15,3]); } module snowshoeholder() { cube([50,3,32]); cube([50,15,3]); translate([0,0,29]) cube([50,15,3]); translate([0,0,0]) snowshoeholdersub(); translate([50,0,32]) rotate...
glb/cad_b00409ee3395.glb
Create a customizable drawer box and matching drawers. For the drawer housing, create a solid rectangular block with a total width of 121.6mm, a depth of 71.6mm, and a height based on 5 drawers at 15mm each plus wall thickness, totaling 80.8mm. The walls and floor should be 0.8mm thick. Hollow out 10 rectangular comp...
use<write.scad>; part = "drawerbox"; NUM_DRAWERS_W = 2; NUM_DRAWERS_H = 5; NUM_SPACES_W = 4; NUM_SPACES_H = 1; DRAWER_HEIGHT = 15; DRAWER_DEPTH = 70; DRAWER_WIDTH = 60; SCREW_PADS = 0; MOUSE_EARS = (SCREW_PADS==1)? true:false; HEXAGONAL_PATTERN = 1; WITH_PATTERN = (HEXAGONAL_PATTERN==1)?true:false; PATTERN_I...
glb/cad_b66d471358b0.glb
Create a brake pedal stop pad by stacking four coaxial geometric primitives along a vertical axis. Start with a cylindrical base face 14mm in diameter and 3mm in height. Centered on top of this base, add a second cylinder with a diameter of 6mm and a height of 3.5mm. Above this second cylinder, place a small cylindrica...
$fn=50; face_d = 7; face_h = 3; shaft_d = 3; shaft_h = 3.5; bump_d = 3.2; bump_h = 1; cone_h = 3; cone_end_d = 1.5; cylinder(h=face_h,r=face_d); translate([0,0,face_h]) cylinder(h=shaft_h,r=shaft_d); translate([0,0,face_h+shaft_h]) cylinder(h=bump_h,r=bump_d); translate([0,0,(face_h+shaft_h+bump_h)]) cylinder(h=co...
glb/cad_e5292bdb02a5.glb
Create a protective foot for a shelving unit upright. Start by constructing an L-shaped base with a total height of 10mm. The base is formed by two intersecting rectangular blocks, each 33mm long and 8mm wide, meeting at a right angle to create an overall footprint of 33mm by 33mm. Within this L-shape, carve out a ma...
L = 33; B = 2; H = 10; W = 8; T = 2; s = L + W - T; difference() { union() { cube([s,W,H]); cube([W,s,H]); linear_extrude(height = H) polygon( points=[[0,0],[0,20],[20,0]] ); } translate([(W-T)/2,(s-L)/2,B]) cube([L,T,H-B]); translate([(s-L)/2,(W-T)/2,B]) cube([T,L,H-B]); t...
glb/cad_c4ca79ea5908.glb
Create a Carcassonne Box organizer by starting with a solid rectangular base measuring 165mm in length, 99.5mm in width, and 20mm in height. Hollow out the center of this base by removing two rectangular volumes, each 160mm long and 46mm wide, both starting 2.5mm from the side walls and 2mm from the bottom. To create r...
module Carcassonne_box ( ) { union ( ) { difference ( ) { cube ( [ 165, 99.5, 20 ] ); translate ( [ 2.5, 2.5, 2 ] ) cube ( [ 160, 46, 20 ] ); translate ( [ 2.5, 51, 2 ] ) cube ( [ 160, 46, 20 ] ); translate ( [ -1...
glb/cad_75159305319e.glb
Create a Cabinet Key consisting of a cylindrical shaft and a flat, winged head. Start by creating a shaft that is a cylinder with a radius of 3mm and a length of 20mm. At one end of this shaft, attach a flat head assembly. The head is constructed by combining a cylinder with a diameter of 9.2mm and a height of 10mm w...
$fn=40; module RoundCylinder(r=3,h=10) { sphere(r=r); cylinder(r=r,h=h); } module Head() { translate([0,0,5]) difference() { union() { cylinder(d=9.2,h=10,center=true); cube([14,2.2,10],center=true); } translate([0,0,3])cylinder(d=5.6,h=10,center=t...
glb/cad_bbc597092a2d.glb
Create a robot body base as a rectangular block measuring 100mm by 70mm with a height of 10mm. Carve out several rectangular compartments from the top surface to create housings for electronics: one measuring 25.5mm by 55mm with a depth of 3mm, another measuring 29.5mm by 59mm with a depth of 5mm, and a central slot me...
difference() { cube([100,70,10]); union(){ union() { translate([6,7.5,7]){ cube([25.5,55,3]); } translate([4,5.5,10]){ cube([29.5,59,5]); } translate([15,0,4]){ cube([7.5,70,11]); } } translate([50,0,0]){ union() { translate([6,7.5,7]){ cube([25.5,55,3]); } translate([4,5.5,10]){ cube([29.5,59,5]); } translate([15,0...
glb/cad_d5695f1b791e.glb
Create a robot body chassis by constructing a thin, U-shaped bracket. Start with a rectangular base that is 29mm wide, 73mm long, and 2.8mm thick. Add two side walls, each 7.25mm high, running the full 73mm length of the long edges, leaving the center 23.4mm of the width open. In the center of the two 29mm wide end sec...
cube([2.8,73,7.25]); difference(){ union(){ translate([0,73,0]){ cube([29,2.8,7.25]); } cube([29,2.8,7.25]); } union(){ translate([14.5,0,3.75]){ rotate([270,270,0]){ cylinder(r=2, h=2.8, $fn=100); } } translate([24.5,0,3.75]){ rotate([270,270,0]){ cylinder(r=2, h=2.8, $fn=100); } } translate([14.5,73,3.75]){ rotate...
glb/cad_8b552c31ad55.glb
Create a Drop Fall Ordnance model by stacking four geometric components along a central vertical axis. Start with a base cylinder 45mm in diameter and 15mm high. Centered on top of this base, place a truncated cone with a height of 45mm, tapering from a bottom radius of 5mm to a top radius of 20mm. Above the cone, add ...
cylinder(r=45/2,h=15,$fn=80); cylinder(r1=10/2,r2=40/2,h=45,$fn=80); translate([0,0,45]) cylinder(r=40/2,h=30,$fn=80); translate([0,0,75]) resize(newsize=[0,0,60]) sphere(r=40/2,$fn=70);
glb/cad_a8de35fd2db8.glb
Create a ladder-like structure consisting of two parallel side rails connected by evenly spaced rungs. Start by creating two cylinders for the side rails, each with a radius of 2mm and a total length of 80mm. Position these rails parallel to each other so that their center-to-center distance is exactly 20mm. Between ...
$fn = 30; lHeight = 80; lWidth = 20; lRungs = 6; lRadius = 2; gap = lHeight / (lRungs + 1); echo("Rung Spacing: ", gap); translate([0,0,lRadius]) { rotate(a=90,v=[0,1,0]) { cylinder(h=lHeight,r=lRadius); translate([0,lWidth,0]) { cylinder(h=lHeight,r=lRadius); } for(a=[gap:gap:lHeight-ga...
glb/cad_6f5fc4dfb626.glb
Create a hex-bit holder bracket for a toolcase. Start with a central rectangular block measuring 58.2mm in width, 9mm in thickness, and 16mm in height. Remove seven vertical cylindrical holes from this block to hold the bits; each hole must have a radius of 3.75mm and a height of 17mm. Position these holes in a single ...
height = 16; width = 58.2; thick = 9; nibRadius = 4.3/2; nibHeight = 2.4; holeRadius = 7.5/2; holeOffset = holeRadius * 2 + 0.7; holeHeight = height + 1; color("black"){ translate([0,0,height/2]){ rotate([0,0,0]){ union(){ difference(){ cube([width,thick,height],center=true); for ( x = [-3 : ...
glb/cad_9ff45a9ee5e3.glb
Create a GoPro to tripod mount adaptor. Start with a main rectangular block measuring 12mm by 17.85mm by 16mm. Attached to the side of this block, create a mounting interface consisting of three parallel fins. Each fin is 2.95mm wide, and the spacing between them is 3.45mm. The fins are formed by a combination of a 16m...
goPro_FinSpacing = 3.45; goPro_FinWidth = 2.95; goPro_MountThreeFinWidth = goPro_FinSpacing * 2 + goPro_FinWidth * 3; goPro_MountTwoFinWidth = goPro_FinWidth * 3; quarterTwentyNut_Radius = hexagonRadiusFromWidth(11.25); quarterTwentyNut_Height = 5.6; quarterTwentyBoltHead_Height = 4.3; quarterTwenty_outerRadius = 3.2...
glb/cad_49625947a09b.glb
Create a Fused Powerpole Distribution box consisting of a main case and a matching lid. Construct the case as a rounded rectangular box with outside dimensions of 100mm x 50mm x 21mm. The walls should be 1.5mm thick with a 2mm thick base. Hollow out the interior, leaving four corner standoff posts with an inner diame...
use <roundCornersCube.scad> use <MCAD/polyholes.scad> use <MCAD/teardrop.scad> box_sx = 100; box_sy = 50; box_sz = 21; box_wt = 1.5; box_bt = 2.0; lid_sz = 1.5; lip_h = 1.60; fit_tol = 0.40; tab_use = true; tab_sz = box_bt; tab_sx = 8; tab_hoy = 7; box_cp_hid = 2.44 + 0.1; box_cp_hd = 10.0; lid_hid = 3.26 + 0.1; ...
glb/cad_ac2e415fd2cd.glb