Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Z axis stop bracket in the shape of an L-bracket. Start with a main rectangular base measuring 57.6mm in length, 8.3mm in height, and 5.43mm in thickness. At one end of this base, attach a vertical rectangular section that is 19.3mm wide, 8.3mm high, and 5.43mm thick, forming a right angle. Drill two holes com...
$fn=60; longLength=57.6; shortLength=19.3; height=8.3; thickeness=5.43; smallDiameter=3.0; largeDiameter=4.0; difference() { cube(size=[longLength,thickeness,height]); rotate([90,0,0]){ translate( [39.1, height/2,-6]) cylinder(r=smallDiameter/2,h=7); translate( [48.7,height/2,-6]...
glb/cad_ba592f9ee375.glb
Create a diagonal cut Menger sponge by starting with a central cube 45mm on each side, centered at the origin. Remove three rectangular prisms, each measuring 15mm by 15mm by 50mm, aligned along the X, Y, and Z axes respectively and centered at the origin, to create the first-order fractal void. Rotate this resulting s...
difference() { rotate([45,35,0]) difference() { cube(45, center=true); cube(size=[15,15,50], center=true); cube(size=[50,15,15], center=true); cube(size=[15,50,15], center=true); } translate([0,0,-20]) cube(size=[80,80,40], center=true); }
glb/cad_d57af51e9f24.glb
Create a diagonal cut Menger sponge by starting with a central cube 45mm on each side, centered at the origin. From this cube, remove a series of smaller rectangular prisms to create the fractal void pattern. First, remove three central prisms of 15mm by 15mm by 50mm, each aligned with one of the primary X, Y, and Z ax...
module ordertwo() { translate([0,15,15]) cube(size=[50,5,5], center=true); translate([0,0,15]) cube(size=[50,5,5], center=true); translate([0,-15,15]) cube(size=[50,5,5], center=true); translate([0,15,0]) cube(size=[50,5,5], center=true); translate([0,-15,0]) cube(size=[50,5,5], center=true); translate([0,1...
glb/cad_b51726779603.glb
Create a webcam mounting bracket consisting of a motor housing and a camera pole. First, construct the motor housing as a hollow cube with an outer dimension of 47.6mm x 47.6mm x 48.6mm and a wall thickness of 2.5mm. The inner void should be 42.1mm x 42.1mm x 48.1mm to accommodate the motor. Attached to this housing...
$fn=40; motor_width = 42.1; motor_length = 47.6+1; holder_extend = 0.3; holder_wall = 2.5; hook_y = 9; hook_x = 12; back=7; ballhead_radius=9.2/2; pole_radius = ballhead_radius+1.8; ballhead_depth = 2.5; clamp_length = 33; big=200; epsilon=0.01; translate([0,0,motor_length/2+holder_wall])camholder(); mod...
glb/cad_198469116c2a.glb
Create a parametric cable strain relief consisting of a base plate and a semi-cylindrical cable holder. Start with a rectangular base plate 3mm thick, 17mm high, and approximately 41mm long. Drill two 4mm diameter holes through the plate, spaced 30.6mm apart. Additionally, create a larger 10mm diameter hole positione...
base_height = 17; vert_base_length = -5; holder_height = base_height; thickness = 3; thickness_c = 2; screws_spacing = 30.6; screws_diameter = 4; cable_diameter = 12; holder_spacing = 6; holder_dist_base = 4; scew_hole = 10; scew_hole_dist = 11.8; zip_width = 3.6; $fn=50; { base_start = thickness_c+ho...
glb/cad_f2624880fc27.glb
Create a sun blind rope post and adjustment rod holder starting with a rectangular base block measuring 25mm in length, 15mm in width, and 5mm in height. Carve out several angled sections from this block: a 13mm by 15mm by 5mm volume rotated -13 degrees on the Y-axis, a 25mm by 10mm by 5mm volume rotated 25 degrees on ...
$fn=50; union() { difference() { cube([25, 15, 5]); translate([0, 0, 2]) rotate([0, -13, 0]) cube([13, 15, 5]); translate([0, 0, 2]) rotate([25, 0, 0]) cube([25, 10, 5]); translate([25, 15, 2]) rotate([25, 0, 180]) cube([25, 10, 5]); translate([25, 15, 2]) rotate([0,...
glb/cad_3429d419e3c3.glb
Create a sun blind rope post and adjustment rod holder. Start with a rectangular base plate measuring 14mm wide, 20mm high, and 4mm thick. Centered within this plate, create a circular hole with a diameter of 8.5mm that passes completely through the thickness of the base. Attached to the side of the base plate, const...
$fn=30; union() { minkowski() { difference() { cylinder(d=12-3, h=4); cylinder(d=5.5+3, h=4); translate([-3.5, 0, 0]) cube([7, 10, 5]); } cylinder(d=3, h=1); } translate([-2.5, -9, 0]) cube([5, 4, 5]); translate([-5, -12, 0...
glb/cad_50b18d7066d1.glb
Create a filament roll stand consisting of two identical roller assemblies. For each assembly, create a roller wheel by starting with a cylinder 30mm in diameter and 10mm thick. Remove a concentric central hole 21.9mm in diameter and a shallower concentric hole 24.9mm in diameter with a depth of 2.5mm. Add a toroidal g...
$fn=50; dia=52.5; depth=55; explosion(); translate([0, 100, 0]) rotate([0, 0, 180]) explosion(); module explosion() { rotate([90, 0, 0]) roller_stand(); translate([-30, 30, 0]) { rotate([90, 0, 0]) { roller(); bearing_insert(); } } translate([...
glb/cad_9fb429fe2c66.glb
Create a flashlight stand consisting of a base and a clamp. First, construct the base as a flat rectangular platform 55mm wide and 85mm long with a thickness of 8mm. In the center of this platform, create a vertical support arm 10mm wide and 60mm long. At the top of the arm, build a cylindrical clamp to hold the fla...
$fa=1; $fs=0.5; SeeThisTwo(); module PrintThisOne() { translate([0,-10,0]) rotate([0,0,180]) Mount(); translate([0,0,4]) Base(); } module SeeThisOne() { translate([0,0,45]) rotate([-90,0,0]) Mount(); translate([0,5,5])Base(); } module PrintThisTwo() { translate([50,0,0]) LightClamp(); trans...
glb/cad_6bd558bb790d.glb
Create a Microcube RAMPS DC barrel jack holder. Start with a base rectangular block measuring 54mm in length, 17mm in width, and 16mm in height. On the right side of the block, create a circular hole with a diameter of 8mm that passes completely through the width of the part to accommodate the barrel jack. To secur...
include <pie.scad> include <fillet.scad> height = 15; sideRodDistance = 50; sideRodEndTerminalDistance = 42; bottomRodDistance = 19; rodDiam = 8; barrelHoleDiam = 8; barrelContainerDiam = 12; frameCornerSize = 25; frameMockSize = 100; zipWidth = 3.8; zipHeight = 3; tickness = 2; $fn = 120; $ep = 0.001; module dcB...
glb/cad_3faa1a400e56.glb
Create a PSU mount for a Microcube printer consisting of two symmetrical holders. Each holder is designed to secure a power supply unit measuring 170mm x 85mm x 40mm. For each holder, create a base structure that clips onto 8mm diameter rods. The clip mechanism should feature a circular cutout of 8mm with a wall thick...
include <pie.scad> rodDiam = 8; clipFrontRodDistance = 22; clipSideRodDistance = 45; clipWidth = 8; clipOpenAngle = 140; psuLength = 170; psuWidth = 85; psuHeight = 40; psuFrontRodDistance = 15.5; psuSideRodDistance = 8; psuBlockerHeight = 8; tickness = 3; rodTickness = 2; lateralBlockerTickness = 4; zipWidth = 3....
glb/cad_1d229fa2de08.glb
Create a dual axes bed lever by starting with a rectangular base measuring 160mm in length, 10mm in width, and 10mm in height. Add a semi-cylindrical ridge with a diameter of 10mm and a height of 10mm that runs along the top center of the base, extending from the front edge to the back edge. Subtract several holes fro...
leverLength = 160; leverHeight = 10; leverWidth = 10; screwHoleDiam = 3.4; interiorScrewDistance = 70; exteriorScrewDistance = 130; bedScrewHoleDiam = 4.3; bedScrewDistance = 140; $fn = 120; $ep = 0.001; module dualAxesBedLever() { difference() { union() { translate([leverWidth/2, 0, 0]) cub...
glb/cad_796eb4e7fd11.glb
Create a knob for a pan cover. Start with a central base consisting of three stacked cylinders: a middle cylinder with a diameter of 40mm and a height of 6mm, sandwiched between two shorter cylinders of 3mm height; the top and bottom cylinders taper slightly, with the top one starting at 36mm diameter and the bottom on...
$fn = 100; outer_diameter = 40; head_thickness = 12; thickness = 4; clearence = 0.2; sphere_diameter = 500; sphere_shift = 1.5; hole_higth = 12.9 + sphere_shift; hole_length_o = 17.9; hole_length_i = 9.4; hole_width_b = 12.1; hole_width_t = 9.7; hole_width_i = 7.2; screw_shift = 1.89; screw_diameter = 3.8+clearenc...
glb/cad_170256b90dc6.glb
Create a simple square plate by starting with a cube that is 25mm wide, 25mm deep, and 5mm thick. At each of the four corners of the plate, create a circular hole with a radius of 2mm that passes completely through the thickness of the plate. Position the center of each hole exactly 4mm from the two nearest adjacent ed...
$fn=100; w=25; thick=5; drillhole_r=2; drilloff=2; difference() { cube([w,w,thick]); translate([drilloff+drillhole_r,drilloff+drillhole_r,-1]) cylinder(h=thick+2,r=drillhole_r); translate([w-(drilloff+drillhole_r),drilloff+drillhole_r,-1]) cylinder(h=thick+2,r=drillhole_r); translate([drilloff+drillhole_r,w-(drilloff...
glb/cad_5936de41aead.glb
Create a Leaned LCD support for a Microcube. The object is a specialized bracket designed to hold a PCB at a 45-degree angle. Start by creating a main support body with a width of 5.2mm (twice the PCB hole diameter). The body features a complex profile that includes a cylindrical section with a diameter of 12mm and a...
include <pie.scad> pcbLength = 150; pcbWidth = 55; pcbTickness = 1.7; pcbHoleDistance = 2.7; pcbHoleDiam = 2.6; rodDiam = 8; printerSize = 220; cornerSize = 25; cornerWidth = 12; rodDelta = cornerWidth/2; lcdAngle = 45; lcdSideDistance = cornerSize; lcdFloorDistance = cornerWidth/2; lcdTopDistance = 15; lcdBottomDis...
glb/cad_7c5d54719713.glb
Create a button pusher for a Microcube LCD support. The object consists of a cylindrical base with a diameter of 7mm and a height of 7.7mm. Centered on top of this base, add a smaller cylinder with a diameter of 4.4mm that extends upwards. Cap this smaller cylinder with a hemisphere of the same 4.4mm diameter, such tha...
renderCover = false; renderSpacers = false; renderOneSpacer = false; renderButtonPusher = true; pcbLength = 150; pcbWidth = 55; coverTickness = 2; coverPaddingBottom = 8; coverPaddingTop = 1; coverPaddingLeft = 1; coverPaddingRight = 1; coverAltitude = 13; screwHoleDiam = 3.2; screwHoleSideDistance = 3; coverSpacerT...
glb/cad_e9cad0e49027.glb
Create a Shopkins cart replacement wheel by stacking three concentric cylinders along a single vertical axis. Start with a wide base cylinder that is 16.5mm in diameter and 2.4mm high. Centered on top of this base, add a second cylinder with a diameter of 3.7mm and a height of 3.2mm, positioned so its bottom sits at a ...
union(){ cylinder(h=2.4, d=16.5, $fn=50); translate ([0,0,2.3]) cylinder(h=3.2, d=3.7, $fn=50); translate ([0,0,5.4]) cylinder(h=1, d=4.2, $fn=50); }
glb/cad_63a52f61c9a5.glb
Create a Micrometer Stand by starting with a central rectangular base measuring 40mm wide, 60mm deep, and 30mm high. From this base, remove a large rectangular section from the top and side to create a slanted cradle. This cutout should be 12mm wide and angled at 45 degrees to hold the tool. Within the remaining soli...
width=40; thick=12; angle=45; undersize=0.2; module stift(undersize){ cube ([thick/2-undersize,thick*5,thick/2-undersize],center=true); } module m6hole (){ translate ([0,0,4.5]) cube ([10,5,10+thick], center=true); translate ([0,-5,0]) rotate ([90,0,0])cylinder (h=20, r1=3, r2=3, center=true); } module base (){ ...
glb/cad_d696c827bc30.glb
Create a transport handle clip with a width of 10mm. The main body consists of two vertically aligned cylindrical sections connected by a solid bridge. The bottom section is a cylinder with an outer diameter of 18mm and a height of 10mm. It contains a centered vertical hole with a diameter of 8mm that passes complete...
include <pie.scad> rodDiam = 8; axelDiam = 8.1; axelAddedWidth = 15; width = 10; height = 20; tickness = 5; floorTickness = 5; $fn = 120; $ep = 0.001; module softHandleClip() { difference() { union() { difference() { cylinder(d=rodDiam+tickness*2, h=width); t...
glb/cad_3089c116e55e.glb
Create a manual z-probe holder consisting of two parts: a fixer and a holder. First, create the z-probe support fixer. This is a vertical block with a total height of 57mm and a width of 20mm. The main body thickness is 11.5mm. At a height of 5mm from the bottom, create two horizontal holes with a diameter of 2mm tha...
renderSupport = true; renderFixer = false; slack = 0.4; screwLoseHoleDiam = 2.5; screwTightHoleDiam = 2; switchLength = 20; switchTickness = 6.5; switchHeight = 10; switchBetweenScrewDistance = 9.5; switchScrewTopDistance = 5; fixerScrewSideDistance = 4.25; fixerScrewBetweenDistance = switchBetweenScrewDistance; fi...
glb/cad_c2cfca324d33.glb
Create a necklace pendant designed to hold a 1.5 mL microcentrifuge tube. The main body is a thick, rounded disc with a total thickness of 13mm. The core of this disc is formed by a hull of two cylinders, each with a radius of 10.4mm and a height of 13mm, positioned 6mm apart along the Y-axis. From this main body, re...
tubedia=10.8; tuber=tubedia/2; thk=13; corddia=8; cordrad=corddia/2; cordthk=2; module d() { difference(){ union(){ translate([0,-cordrad,0])cube([cordthk,corddia,cordthk]); difference(){ cylinder(cordthk,cordrad+cordthk,cordrad+cordthk); cylinder(cordth...
glb/cad_7eed0b76a9ac.glb
Create an antenna holder for a JJPRO-P130 multicopter. Start by creating a central vertical cylinder with a radius of 2.6mm and a height of 30mm. At the base of this cylinder, add a conical transition that flares out to a radius of 3.9mm for the first 5mm of height. Cut a vertical slot 1mm wide through the center of ...
render() AntennaHolder(); module AntennaHolder(r=2.5,h=30) { _h = h; _r = r+0.1; $fn=20; difference() { union() { translate([0,0,0]) cylinder(r=_r+1,h=_h); translate([0,0,0]) cylinder(r1=(_r+1)*1.5,r2=_r+1,h=5); translate([-1,0,0]) cube([2,10,_h]); ...
glb/cad_0de4c5bc5c84.glb
Create an e-cigarette stand consisting of a conical base and a tilted holder. Start by creating a truncated cone for the base with a height of 15mm, a bottom diameter of 38mm, and a top diameter of 21mm. Attached to this base, construct a vertical holder with a rectangular profile of 26mm by 26mm and a height of 30mm...
hole_size = 20; plate_diam_top = 21; plate_diam_bottom = 38; plate_height = 15; bottom_size = 10; ecig_height = 120; holder_height = 30; holder_border = 3; holder_angle = 5; holder_corner_radius = 2; $fn=100; difference() { union() { translate ([0,0,0]) { cylinder(h=plate_height, r1=plate...
glb/cad_d388ccd47f31.glb
Create an Eliquid stand consisting of a grid of ten cylindrical holders arranged in two rows of five. Each holder is a cylinder with a diameter of 26mm. The holders in the first row have a height of 10mm, while the holders in the second row are taller, with a height of 15mm. Every holder contains a concentric vertical ...
plate_diam_top = 26; plate_diam_bottom = 26; plate_height = 15; hole_height = 10; hole_diam = 22; $fn=100; holder_rows = 2; holder_per_row = 5; holder_spacing=-2; holder_increase_height_per_row = 1; holder_increase_height = 5; module liquid_holder(position, newheight) { x = position[0]; y = position[1]; ...
glb/cad_72a9e20540e0.glb
Create a programmable beat machine wheel by starting with a central cylinder 20mm in diameter and 5mm high. Around the perimeter of this central disk, add five identical teeth. Each tooth consists of a cube measuring 8mm by 8mm by 5mm, paired with a smaller cylinder 4mm in diameter and 4mm high centered on the cube's o...
difference(){ union(){ cylinder(5,16,16,$fn=60); cylinder(15,10,10,$fn=60); rotate([0,0,0]) translate([-4,15,0]) cube([8,8,5]); rotate([0,0,0]) translate([0,22,0]) cylinder(5,4,4,$fn=60); rotate([0,0,90]) translate([-4,15,0]) cube([8,8,5]); rotate([0,0,90]) translate([0,22,0]) cylinder(5,4,4,$fn=60); rotate...
glb/cad_b994aadf6639.glb
Create a pegboard holder by constructing a solid rectangular block with a total width of 11mm, a depth of 11mm, and a height of 20mm. Within this block, integrate a pinboard mounting system. The structure should feature a hollowed-out interior to form a container, with walls that are 2mm thick. Ensure the bottom of the...
include <pegboard-modules.scad>; module pegstr() { union() { pinboard(); difference() { hull() { pinboard(); intersection() { translate([-holder_offset_x - (strength_factor-0.5)*holder_total_y - wall_thickness/4,0,0]) cube([ holder_total_y + 2*wall_thickness, holder_to...
glb/cad_2d5774d924b9.glb
Create a Proxxon PS-13 customizable head consisting of a base stand and a sanding plate. Start by creating a small rectangular base centered at the origin with dimensions 12mm by 2.43mm and a height of 2.65mm. From the center of this base, extend a vertical cylinder with a diameter of 5mm and a height of 27.4mm. At the...
main_segment_lenght=27.4; slave_segment_lenght=15.0; slave_segment_angle=45; plate_width=2.5; plate_angle=0; form=1; x_translate=sin (slave_segment_angle)*slave_segment_lenght; plate_form=[[-10,0],[0,15],[10,0]]; union () { Stand(main_segment_lenght,slave_segment_lenght); Plate (form,x_translate,plate_width, plate_f...
glb/cad_e2bbf38b577c.glb
Create a compartment crate consisting of three connected rectangular boxes. Each individual compartment should have outer dimensions of 45mm in width, 45mm in depth, and 32mm in height. The walls and the bottom floor of the compartments must be 1mm thick. Arrange the three compartments in a single row along the x-axis....
bx = 45; by = 45; bz = 32; wall = 1; bottom = 1; module box(noside = false, nobottom = false){ bxinner = bx - wall*(noside ? 1 : 2); byinner = by - wall*(nobottom ? 1 : 2); difference(){ cube([bx,by,bz]); translate([wall,wall,bottom])cube([bxinner,byinner,bz]); } } for (i=[0:2]) { ...
glb/cad_a5a43df7939b.glb
Create a simple rectangular compartment crate lid by constructing a solid rectangular prism. The prism must have a total length of 135mm, a total width of 90mm, and a height of 2.4mm.
bx = 45; by = 45; bz = 32; wall = 1; bottom = 1; numx = 3; numy = 2; numz = 3; total_box_height = numz*bz; total_box_x = numx*bx; total_box_y = numy*by; total_box_z = numz*bz; lid_height = 2.4; cube([total_box_x,total_box_y,lid_height]);
glb/cad_d7de027c382f.glb
Create a compartment crate organizer consisting of a rectangular outer shell with internal dividers. The overall outer dimensions are 136.5mm in length, 91mm in width, and 96mm in height. The outer walls and the bottom floor of the crate are 1mm thick. The interior is divided into six equal rectangular compartments a...
$fn = 30; bx = 45+0.5; by = 45+0.5; bz = 32+0.5; wall = 1; bottom = 1; numx = 3; numy = 2; numz = 3; total_box_height = numz*bz; total_box_x = numx*bx; total_box_y = numy*by; total_box_z = numz*bz; module t(){ translate([0,2,0])union(){ cube([2,2,6]); translate([-2,2,0])cube([6,2,6]); } } di...
glb/cad_8fd6d85b827c.glb
Create a parametric shaft collar with a width of 7mm. Start by forming a main cylinder with an outer diameter of 12mm and a concentric inner hole of 8mm. Attached to the side of this cylinder, create a rectangular tab that extends outward. This tab should be 4mm wide (matching the wall thickness of the cylinder) and ex...
shaft_size=8; thickness=2; width=7; screw_diameter=3.5; tab_length=6; shaft_collar(); module shaft_collar() { $fn=60; difference() { union() { cylinder(d=shaft_size+thickness*2,h=width); linear_extrude(width) translate([-thickness,0,0]) square([thickness*2,shaft_size/2+thickness+...
glb/cad_17beb5058083.glb
Create a solid 3D sculpture of a human face. The model is constructed as a series of stacked, organic cross-sections along the vertical axis, where each section is a closed loop defined by Bézier curves. The overall height of the model spans from approximately -35mm to 110mm on the Y-axis. Start with a narrow, rounded...
model = "SOLID"; resolution = 0.25; thickness = 3; function __to2d(p) = [p[0], p[1]]; function __to3d(p) = [p[0], p[1], 0]; function __reverse(vt) = let(leng = len(vt)) [ for(i = [0:leng - 1]) vt[leng - 1 - i] ]; function __frags(radius) = $fn > 0 ? ($fn >= 3 ? $fn : 3) :...
glb/cad_e062e5df3b14.glb
Create a nameplate for a game tray with a total width of 65mm, a height of 6.6mm, and a thickness of 4mm. The main body is a rectangular slab with two rectangular cutouts removed from the top and bottom faces at each end. Each cutout measures 22.5mm in length and 2.5mm in width, centered along the length, leaving a sol...
cardWidth = 59; xySpace = 2; interlockClearance = -1.2; topBottomInterlockClearance = 0.7; label="MERCHANT"; module lock(length,rX,rY,rZ,bcR) { translate([0,0,(0.25*10+2.5+1.1)/2]) difference() { rotate([rX,rY,rZ]) difference() { cube([2,length-interlockClearance,0.25*10+2.5+1.1],center=...
glb/cad_137cda09953a.glb
Create an Experimental Parametric Hinge consisting of two semi-circular leaves joined by a central knuckle joint. Each leaf should have a thickness of 6mm and a width of 30mm. The overall assembly is shaped as a circle with a diameter of 60mm. Construct the knuckle joint as a cylinder with an outer radius of 12mm and ...
C_CONSTANT = 0 + 0; C_NONE = C_CONSTANT + 0; C_FEMALE = C_CONSTANT + 0; C_MALE = C_CONSTANT + 1; SCG_OVERLAP = C_CONSTANT + 0.01; C_NEGATIVE = C_CONSTANT + 0; C_POSITIVE = C_CONSTANT + 1; C_CIRCULAR = C_CONSTANT + 0; C_SQUARE = C_CONSTANT + 1; C_HEXAGONAL = C_CONSTANT + 2; C_FUNCTION_LINEAR = C_C...
glb/cad_f5982b7ac725.glb
Create a Customizable Gyro Gimbal Toy consisting of three concentric rings. Each ring is a flat cylinder with a height of 4mm and a width of 4mm. The innermost ring has an inner radius of 20mm. Each subsequent ring increases in inner radius by 6mm (the sum of the ring width and a 2mm clearance). For each ring, create ...
innerRingRadius = 20; innerR = innerRingRadius; height = 4; number = 3; ringWidth = 4; ringClearance = 2; jointClearance = 0.2; ringType = 0; sphericalRings = ringType == 1; jointOverlap = 75; overlap = jointOverlap / 100; angleOffset = 90; $fn = 100; spacing = ringWidth + ringClearance; coneR = 0.9 * height ...
glb/cad_d20d0585912c.glb
Create a fidget spinner with a central hub and three equidistant arms. The main body is formed by a central cylinder with a diameter of 29mm and a height of 7mm, and two additional identical cylinders of the same dimensions positioned 30mm from the center at 120-degree intervals. Cut three holes through the body to a...
BUILD = "SINGLE"; WORDS1 = "CUSTOM"; WORDS2 = "TRIPLE"; WORDS3 = "SPINNER"; FONT = "Arial Rounded MT Bold"; TWEAKHEIGHT = 0; TWEAKX = 0; TWEAKY = 0; TWEAKZ = 0; TWEAKHOLE = 0; if (BUILD == "BASE") { difference() { spinner(); addText(); } } else if (BUILD == "TEXT") { addText(); } ...
glb/cad_deb51bf14c5d.glb
Create a hose plug consisting of a series of stacked, tapered conical sections. Start by creating a top cap as a cylinder with a diameter of 20.04mm and a height of 3mm. Attached to the bottom of this cap, create a primary tapered barb section that transitions from a base diameter of 16.7mm at the top to a diameter of ...
module barb(d1,d2,hole,h1,h3) { difference(){ union(){ cylinder($fn=36,h=h1, d1=d1, d2=d2); translate([0,0,h1])cylinder($fn=36,h=h3, d=d2); echo(h1); } cylinder($fn=36,h=h1+h3, d=hole); } } Ww=16.7; Wn1=12.9; Wn2=14.7; H1w=7; H1n=3; Hw=3.5; Hn=3.2; Hole=0; j=3; module plug(){ barb(Ww,Wn1,0,...
glb/cad_0d873d981467.glb
Create a Surface Pro 4 Camera Cover. Start by constructing a rectangular frame with a total length of 55mm and a depth of 12mm. The main body should have a thickness of 1.5mm, with a top surface thickness of 2mm. The frame features rounded corners with a radius of 2mm. In the center of the frame, create a rectangular ...
depth = 12; thickness = 1.5; thickness_top = 2; length = 55; corner_r = 2; corner_fn = 100; pinch_protrusion_length = 0.5; pinch_protrusion_fn = 50; hole_width = 8.4 + 0.6; hole_fn = 50; camera_cover_surface_pro_4(); module hole_test() { rotate([0, 90, 0]) camera_cover(length = 1, hole_width = 3.4, corner_fn ...
glb/cad_9948e58ec1e1.glb
Create a T-slot nut for 20-series aluminium extrusion by designing a symmetrical 10mm tall geometric block. The profile of the block is defined by a polygon with vertices at [-3, 0], [-4.9, 1.9], [-4.9, 3.5], [-2.95, 3.5], [-2.95, 5], [2.95, 5], [2.95, 3.5], [4.9, 3.5], [4.9, 1.9], and [3, 0]. Extrude this profile to a...
$fn=30; MaxW = 9.8; TopW = 5.9; L=10; BoltD = 4.8; difference() { translate([0,0,-L/2]) linear_extrude(L) polygon(points=[[-3,0],[-MaxW/2,1.9],[-MaxW/2,3.5],[-TopW/2,3.5],[-TopW/2,5], [TopW/2,5],[TopW/2,3.5],[MaxW/2,3.5], [MaxW/2,1.9],[3,0]]); translate([0,-1,0]) rotate([-90,0,0]) cylinder(d=BoltD,h=...
glb/cad_b4612c668fbb.glb
Create a spindle mount for a 43mm neck. Start with a rectangular base plate 60mm wide, 35mm long, and 15mm thick, with 2mm rounded corners. In the center of this base, create a vertical block 60mm wide, 15mm deep, and 73mm high. Subtract a horizontal cylinder with a diameter of 44mm from the center of the block to cr...
$fn=60; use <MCAD/shapes.scad> use <MCAD/metric_fastners.scad> drillID=43+0.5+0.5; holderW=100; interW=50; holderCenterH=37; BaseHoleD = 5.5; BaseHoleW = 80; BaseTh = 15; HolderL = 15; HolderBaseL = 15+20; HolderH = holderCenterH+36; HolderW = 60; LockingBoltAxisH = holderCenterH+29; LockingBoltD = 6.5; difference(...
glb/cad_50c4232aaddb.glb
Create a Nautilus 608 revised connector consisting of two identical disks joined by a central bar. Position two disks 60mm apart, center-to-center. Each disk has a diameter of 23mm and a height of 5mm. At the center of each disk, create a hole for a 3mm screw with a diameter of 4.1mm. This hole must be countersunk to...
centerCenter = 60; diskSize = 23; diskHeight = 5; supportDisk=11.5; supportDiskHeight = 0.9; bearingCenter = 8.00; bearingCenterHeight = 3.5; screwHole = 4.1; barType=true; countersinkDiameter = 5.75; countersinkDepth = 4.25; countersinkFacets = 36; barType=true; barType=false; countersinkDiameter = (barType)?7....
glb/cad_852877f281b1.glb
Create a Nautilus 608 revised connector consisting of two identical disks joined by a central bar. Position two disks 60mm apart, center-to-center. Each disk has a diameter of 23mm and a height of 5mm. At the center of each disk, create a vertical hole 4.1mm in diameter to accommodate a 3mm screw. Within this hole, c...
centerCenter = 60; diskSize = 23; diskHeight = 5; supportDisk=11.5; supportDiskHeight = 0.9; bearingCenter = 8.00; bearingCenterHeight = 3.5; screwHole = 4.1; barType=true; countersinkDiameter = 5.75; countersinkDepth = 4.25; countersinkFacets = 36; barType=true; barType=false; countersinkDiameter = (barType)?7....
glb/cad_0ce65b9f94e1.glb
Create a flower pot saucer by constructing a shallow, wide cylinder with a radius of 27mm and a height of 6mm, centered vertically at 3mm. Hollow out the center of this shape by removing a smaller concentric cylinder with a radius of 25mm and a height of 6mm, also centered vertically at 4.5mm. To create a flat base, re...
difference() { translate( v=[0,0,3] ) { cylinder( r=27, h=6, center=true ); } translate( v=[0,0,4.5] ) { cylinder( r=25, h=6,center=true ); } translate( v=[0,0,0]) { cube( size=[60,8,1], center=true ); } translate( v=[0,-10,0]) { cube( size=[60,8,1], center=true ); } translate( v=[0,10,0]) { cube( si...
glb/cad_7c97bdbc8c54.glb
Create a WSPRlite Lowpass Filter Chassis consisting of a rounded box and a matching lid. Construct the box as a rounded cube with outer dimensions of 110mm x 92mm x 27mm. The walls and base should be 2mm thick. Hollow out the interior to leave a 2mm floor and 2mm side walls. Extend the base along the X-axis by 8mm on ...
use <roundCornersCube.scad> use <MCAD/polyholes.scad> use <MCAD/teardrop.scad> box_sx = 110; box_sy = 92; box_sz = 27; box_wt = 2.0; box_bt = 2.0; lid_sz = 2.0; 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_68b8e0c302ad.glb
Create a Self Balancing Egg, a hollow egg-shaped vessel with a total height of 60mm. The outer shell is formed by rotating a specific contour path around a central vertical axis to create a smooth, asymmetric egg shape that is wider and more rounded at the bottom than at the top. The shell must have a uniform wall thi...
$fn=90; eps1 = 0+0.01; eps2 = 2*eps1; ball_cage_radius = 17; height = 60; wall = 1.2; egg_k1 = 0+0.5; egg_k2 = 0+0.39; cross_cut = 0; function p(t, l) = let(a = l * egg_k1) let(b = l * egg_k2) let(x = b*cos(t/4)*sin(t)) let(y = -a*cos(t)) [x, y]; module egg(len) { points=[ for (t= [0 :360/$fn :18...
glb/cad_5e92d0a0b473.glb
Create a G gauge crossing gate base and housing. Start by constructing a main rectangular body that is 35mm wide, 16mm deep, and 2mm high. At the four corners of this base, add vertical cylindrical posts with a diameter of 4mm and a height of 5mm. On top of this base, build a central housing to accommodate a servo. Th...
module portal() { rotate([45,0,0]) cube([15,7,7],center=true); translate([0,0,-5])cube([15,11,10],center=true); } module servo() { union() { cube([23,11,17]); translate([-4,0,16]) cube([31,11,1]); translate([0,0,16]) cube([22,11,8]); } translate([-2,5.5,15])cylinder...
glb/cad_1b8ed99b6459.glb
Create a G gauge crossing gate assembly. Start by constructing a crossing arm that is 178mm long, 7mm wide, and 1mm thick. Along the length of this arm, create a series of alternating stripes, each 11mm wide and 3mm thick, protruding 30mm in height. At the base of the arm, integrate three LED housings. Each housing co...
module crossbuck() { difference() { union() { rotate([0,0,45]) translate([-27.5,-4.5,0]) cube([55,9.5,2]); rotate([0,0,-45]) translate([-27.5,-4.5,0]) cube([55,9.5,2]); } rotate([0,0,45])translate([0,0,1])linear_extrude(height=3) text("CROSSING", size=5.5, halig...
glb/cad_c0957d493ea9.glb
Create a G gauge crossing gate assembly consisting of several distinct components. First, create two identical light units. Each light consists of a cylinder 15mm in diameter and 3mm high, topped with a 15mm diameter sphere. Remove a central core from each light using a 13mm diameter cylinder and sphere combination. ...
module Light() { difference() { union() { cylinder(h=3,d=15); translate([0,0,3])sphere(d=15); rotate([0,45,0])cylinder(h=14,d=6.5); } union() { translate([0,0,-1])cylinder(h=4,d=13); translate([0,0,3])sphere(d=13...
glb/cad_6809795ef8a4.glb
Create a Window Blind Bottom Bracket starting with a rectangular base measuring 23mm wide, 15mm deep, and 2mm thick, centered on the origin. On top of this base, add a vertical section that begins as a 23mm wide by 2mm thick rectangular block extending 15mm upward. From the top of this block, create a tapered extension...
module backdoor_blind_bracket(base=[23,15,2], height=35) { difference() { union() { cube(base, true); translate([0,base[1]/2-1,base[2]+6.5]) cube([base[0], 2, 15], true); translate([0,base[1]/2-1,(base[2]/2)+15]) linear_extrude(height=he...
glb/cad_b1f620c0057c.glb
Create an LCD screen GoPro adaptor consisting of a rectangular base plate and a mounting attachment. Start with a rectangular base plate measuring 28mm wide, 43mm long, and 2mm thick. On the top surface of this plate, centered along the length, add a mounting structure that is 13mm wide and 15mm long with a height of 2...
$fa=2; $fs=.05; thickness=2; width=28; length=43; gopro_width = 13; gopro_length = 15; module gopro() { module finger() { difference() { hull() { translate([0, gopro_length/2, 8]) rotate([0, 90, 0]) cylinder(d=gopro_length, h=2.8); cube([2.8, gopro_length, 8]);...
glb/cad_0e98305c1474.glb
Create a Mini Senso battery holder by constructing a flat rectangular base measuring 64mm by 62mm with a thickness of 2mm. On one of the 62mm edges, add a perpendicular wall that is 2mm thick and 2mm high, extending along the full length of that side to create a shallow lip. On the opposite 62mm edge, add a smaller rec...
rotate([0,180]){ translate([0,-31,0])cube([1,62,2]); translate([0,-31,0.5])cube([69-5,62,1.5]); translate([5,-31,0])cube([69-5,62,2]); translate([63,-64.5/2,-1])cube([6,64.5,1]); translate([68,-64.5/2,-5])rotate([0,-10])cube([2,64.5,6]); translate([-5,-25/2,0])cube([2,25,1.9]); translate([-5,-25/2,0])cube([10,25,1.5]);...
glb/cad_385df196a24e.glb
Create a Universal Wall Fitting adapter. Start with a hexagonal base that is 5mm thick and has a flat-to-flat diameter of 60mm. Centered in this base, create a circular hole with a radius of 20.5mm that passes completely through the part. Above this base, add a tapered male English thread with a diameter of 1.9 inches...
include <threads.scad>; $fn=100; tpi=11.5; diam=1.9; base_h=5; base_r=30; difference() { union() { color("red") cylinder($fn=6,h=base_h,r=base_r); translate([0,0,base_h-1]) english_thread (diameter=diam, threads_per_inch=tpi, length=1.04, taper=1/16); } translate([0,0,-.5]) cylinder(h=34,r...
glb/cad_4fae72f1ab91.glb
Create a mousewheel axis for a Minicute mouse. Start by centering a vertical assembly along the Z-axis. Create a central shaft consisting of a cylinder with a radius of 1.5mm and a height of 11mm, positioned from Z=4 to Z=15. Around the base of this shaft, create a larger cylindrical collar with a radius of 8mm and a h...
translate([0,0,4]) cylinder(11,r=1.5, $fn=20); translate([0,0,-4]) rotate_extrude() translate([-0.01, 0, 0]) rotate([0,0,90]) polygon([[0,0],[0,6.3],[1.3,5.65],[6.7,5.65],[8,6.3],[8,0]]); translate([0,0,-4]) mirror([0,0,-1]) translate([0,0,0]) { cylinder(1,r=1.65, $fn=20); translate([0,0,1]) cylin...
glb/cad_4ddf8cbd4105.glb
Create a customizable fidget spinner and a matching storage box. For the spinner, create a central cylindrical hub with a diameter of 22mm and a height of 7mm. This hub should have a concentric hole 8mm in diameter. Around this center, place three identical weight arms spaced equally at 120-degree intervals. Each arm...
use <write/Write.scad> part = "first"; main_bearing_diameter = 22; main_bearing_center = 8; main_bearing_depth = 7; w_form = 1; w_diameter = 22; w_size = 8; w_depth = 7; Label = "SPINNER" ; BoxText = "SPINNER BOX"; body = 5; w_body = 5; amount = 3; chamfer = 2; slack = 0.17; ct = 0.05; detail = 6...
glb/cad_3ac53e41b59e.glb
Create a Y-carriage shaft mount for a 30mm t-slot frame. Start with a base rectangular plate measuring 40mm wide by 30mm deep with a thickness of 5mm. Extend a vertical wall upwards from the base to a height of 40mm, maintaining the 5mm thickness. Add two side wings that extend from the top of the base, each 30mm wide ...
y_shaft_mount(); thickness=5; width=40; size=30; bar_height=40; hole_spacing=50/3; module y_shaft_mount() { difference() { union() { linear_extrude(thickness) square([width,size]); translate([0,size,-size]) linear_extrude(size+thickness) square([width,thickness]); tra...
glb/cad_3510d9f96f31.glb
Create a screw and nut test plate by starting with a rectangular base measuring 140mm by 95mm with a height of 5mm. From this base, remove a series of holes arranged in four distinct rows to test different fastener sizes. The first row consists of ten circular holes starting at a diameter of 2.9mm and increasing by 0....
h = 6; a = 0.2; m3s = 2.9; m3k = 5.4; m3m = 6.2; m5s = 4.9; m5k = 7.8; m5m = 8.9; m6s = 5.8; m6k = 9.8; m6m = 11.0; s8s = 8.0; m8s = 7.9; m8k = 12.8; m8m = 14.5; difference(){ color("red") cube([140,95,h-1]); for (i=[0:9]) { translate([5+(7+i/9)*i,4,0]) cylinder(h,d=m3s+a*i,$fn=20); translate([6+(8.5+...
glb/cad_2782f8ab3c72.glb
Create a screw and nut test plate by starting with a solid square base measuring 33mm by 33mm with a height of 8mm. Remove four sets of vertical holes from the base, each set consisting of a lower cylinder and an upper hexagonal prism. For the M3 set, place the center at (6.5, 7); create a cylinder with a 4.5mm diame...
h1 = 4; h2 = 8; f = 0.3; m3s = 4.5; m3n = 7.0; m5s = 6.5; m5n = 9.7; m6s = 7.2; m6n = 12.4; m8s = 9.0; m8n = 15.7; translate([1.5,0,1.5]) rotate([90,0,0]) linear_extrude(f) scale([0.45,0.45]) text("M3 4.5 7.0"); translate([33,1.5,1.5]) rotate([90,0,90]) linear_extrude(f) scale([0.41,0.45]) text("M8 9.0...
glb/cad_cead9bd0c473.glb
Create an Altimeter Styled Wall Clock frame and components. Start by constructing a main housing plate that is 216mm wide, 100mm deep, and 10mm thick. This plate is formed by the union of two intersecting rectangular blocks: one measuring 216mm x 100mm and another measuring 100mm x 216mm, both centered. Cut a large ce...
difference(){ union(){ hull(){ translate([-(216/2),-(100/2),0]) cube([216,100,10]); translate([-(100/2),-(216/2),0]) cube([100,216,10]); for(a=4) for (i=[1:a]) rotate([0,0,45+(360/a*i)]) translate ([0,111,0]) cylinder(r=12.5,h=10); rota...
glb/cad_5ad92d6cb227.glb
Create a clock hand for an altimeter-styled wall clock. The hand is a flat 2mm thick object. Start with a central circular hub with a radius of 8mm. Extending from this hub is a long, thin rectangular arm 6mm wide and 75mm long, positioned so the hub is near one end. At the far tip of this arm, opposite the hub, add a ...
difference(){ union() { cylinder(r=8, h=2, center=false); hull(){ translate ([-46,-3,0]) cube ([75,6,2]); translate([-54,0,0]) cube([.01,.01,2]); } translate([29,0,0]) cylinder (r=4,h=2); } cylinder (r=3.5, h=10); }
glb/cad_12401cb90739.glb
Create an Altimeter Styled Wall Clock consisting of a frame, a face, and two hands. First, create a circular clock face with a diameter of 200mm. Construct the hour hand (the x1000 ft hand) as a composite shape. Start with a central cylinder with a radius of 5.5mm and a height of 10mm. Around this, create a base co...
difference(){ union() { cylinder(r=8, h=2, center=false); hull(){ translate ([-40,0,0]) cube ([40,.01,2]); translate([-25.5,-13.5/2,0]) cube([.01,13.5,2]); translate([-5.5,-5.5/2,0]) cube([.01,5.5,2]); } intersection() { cylinder (r...
glb/cad_c2f098e16d5c.glb
Create a minute hand for an altimeter-style clock. Start with a central cylindrical hub with a radius of 8mm and a height of 2mm. Extend a rectangular arm from this hub, measuring 120mm in length, 6mm in width, and 2mm in thickness, positioned to create a long pointer. At the far end of this arm, add a small circular t...
difference(){ union() { cylinder(r=8, h=2, center=false); hull(){ translate ([-90,-3,0]) cube ([120,6,2]); translate([-100,0,0]) cube([.01,.01,2]); } translate([29,0,0]) cylinder (r=4,h=2); } cylinder (r=3.5, h=10); }
glb/cad_60c38b58715f.glb
Create an adjustment knob for an altimeter-styled clock. The object consists of two joined cylinders. First, create a wide, flat base cylinder with a diameter of 20mm and a height of 15mm, centered on the origin. Then, attach a second, narrower cylinder to the top of the base; this vertical post should have a diameter ...
union(){ cylinder(h=15,d=20, center=true); cylinder(h=25,d=5, center=false); }
glb/cad_502072328113.glb
Create a barber pole cover disc for an altimeter-styled clock. Start with a main cylindrical disc that has a radius of 23.5mm and a height of 2mm. From this disc, remove a wedge-shaped cutout. This cutout is formed by the intersection of a larger cylinder with a radius of 25mm and a height of 2mm, and a thin slice de...
difference(){ union(){ difference(){ cylinder (r=47/2, h=2); union(){ intersection() { cylinder (r=50,h=2); translate ([0,0,0]) hull(){ rotate([0,0,-20]) cube([50,.01,2]); rotate([...
glb/cad_4300191dce56.glb
Create a Miter Saw Dust Port to Shop-Vac Adapter consisting of three stacked coaxial sections with a uniform wall thickness of 2mm. Start with a base cylinder 20.5mm high with an outer diameter of 41.75mm and an inner hole of 37.75mm. Above this, add a transition section 40mm high that tapers linearly from the base's o...
miterDiameter = 37.75; miterDepth = 20.5; vacuumDiameter = 31.88; vacuumDepth = 51; transitionLength = 40; wallThickness = 2; union(){ difference(){ cylinder(h=miterDepth, d=(miterDiameter+(2*wallThickness))); cylinder(h=miterDepth, d=miterDiameter); } translate([0, 0, (miterDepth+transiti...
glb/cad_62da33db8232.glb
Create a Tectonic Hex Game piece by constructing a solid cylinder with a radius of 3.4mm and a total height of 5.4mm. The cylinder should be centered on the origin.
$fn=50; magnetRadius = 3.4; magnetHeight = 3.4; module magnetSlot(rotation = 0) { if (rotation == 0) { rotate(90,[0,0,1]) { rotate(90,[0,1,0]) { translate([0,-3.2,0]) cube([10,(2*magnetRadius),3.2]); cylinder(r = magnetRadius, h = magnetHeight); } } } cylinder(r = magnetRadius, h=magnetHeig...
glb/cad_ac38d4d674ec.glb
Create a spool holder mod consisting of a main roller body and bearing mounts. Start by creating a base roller as a square prism with a 16mm width and depth, 126mm in height, and 4mm rounded corners. Carve a vertical cylindrical groove through the center of this prism with a diameter of 24mm and a height of 50mm, posit...
bearing_hole_diameter=7.9; inner_cylinder_diameter=24; union() { difference() { union() { base_roller(); arc(); } groove(); pin_hole(); } bearing_mounts(); tabs(); } base_rect_size=16; module pin_hole() { translate([base_rect_size/2,18,126-11]) rotate([90,0,0]) linear_...
glb/cad_51cf30dcce05.glb
Create a 3D model of a fish body. The main form is a streamlined, elongated organic shape that is thicker at the head and tapers toward the tail. The body is constructed from a series of cross-sectional slices. The front half consists of 17 overlapping sections that gradually scale down in size. The back half is comp...
num1=3; num2=20; num3=60; distance=18; wave_dir=1; wave_num=3; x_adjust=43; wd=wave_dir; wn=wave_num; xa=x_adjust; num1A=3; num2A=20; num3A=60; module yine1X() { difference () { translate ([0,-.5,0]) rotate ([0,0,43]) cube ([5,2,.1]); translate ([-6.01,-3,-1]) cube (6); }} module yine1AX() { translat...
glb/cad_015f2fc449a0.glb
Create a Kyosho Lazer ZX wing mounting plate. Start by forming a base plate using a convex hull that connects four cylinders, each 6mm in diameter and 2mm high. Position two of these cylinders at the origin (0,0,0) and (21,0,0), and the other two at (23,15,0) and (3,22,0). From this base, remove two vertical holes, eac...
$fn=50; difference() { hull(){ cylinder(d=6,h=2); translate([21,0,0]) cylinder(d=6,h=2); translate([23,15,0]) cylinder(d=6,h=2); translate([3,22,0]) cylinder(d=6,h=2); } translate([0,0,-2]) cylinder(d=1.5,h=10); translate([21,0,-2]) cylinder(d=1.5,h=10); } translate([13,21.7,0]) rotate([0,0,-20]) cube([5,6,2]);
glb/cad_655dcf7e609f.glb
Create a Customizable Apple Devices Stand designed to hold an iPhone, Apple Watch, and AirPods. Start with a cylindrical base 15mm high with an outer diameter of 69mm. In the center, create a vertical cylinder 80mm tall with a diameter of 55mm. Carve a horizontal hole through this center cylinder with a diameter of 2...
part = "full_model"; phone_plug_size_long=8; phone_plug_size_short=5.6; platform_charger_from_back=4.8; enable_phone_support_cutout="no"; phone_support_cutout_width=35; phone_support_cutout_height=20; phone_support_thickness=10; airpods_plug_size_long=8; airpods_plug_size_short=5.6; base_height=15; center_outs...
glb/cad_64bf6c08bf02.glb
Create a DX6i Removable Antenna Mount consisting of three stacked coaxial sections. Start with a base cylinder 10.6mm in diameter and 9.75mm high, with a concentric hole 9.2mm in diameter running through its center. Above this, place a larger cylinder 17mm in diameter and 9mm high, containing a concentric hole 14mm in ...
$fn=100; use <shapes.scad> module cylindre_int(){ difference(){ cylinder(r=10.6/2,h=9.75,center=true); cylinder(r=9.2/2,h=10,center=true); } } module cylindre_ext(){ difference(){ cylinder(r=17/2,h=9,center=true); cylinder(r=14/2,h=10,center=true); } } module hex_cap(){ difference(){ cyl...
glb/cad_39efdc1d189d.glb
Create a SimpleSpinner consisting of a main body, a central bearing housing, and two caps. For the main body, start with a cube 35mm wide, 35mm deep, and 3mm high, with all edges rounded by a 3.5mm radius. Subtract a central vertical cylinder with a 30mm diameter and 11mm height from this body. At each of the four corn...
$fn = 60; boxside = 35; mksp = 3.5; cornercyl = 20; module SimpleBerring() { difference(){ cylinder(10, 15, 15); union(){ cylinder(5, 10.75, 7.75); translate([0,0,5]) cylinder(5, 7.75, 10.75); trans...
glb/cad_6fcb6855c614.glb
Create a Y-axis NEMA 17 motor mount for a 30mm T-slot frame. Start by constructing a base plate that is 40mm wide and 35mm deep (30mm T-slot size plus 5mm thickness) with a thickness of 5mm. In this base, place two 4.1mm diameter screw holes spaced 16.67mm apart, centered along the width. Attached to this base, create...
motor_screw_hole_size=3; screw_hole_size=4.1; screw_radius=21.92; inner_circle_radius=11.5; mount_size=42; tslot_size=30; thickness=5; width=40; screw_spacing=50/3; y_motor_mount(); module y_motor_mount() { $fn=60; translate([0,mount_size/2+tslot_size+thickness,-5]) rotate([0,90,0]) motor_bracket(); t...
glb/cad_5aec0b935690.glb
Create a thumb cap for a fidget spinner. Start by creating a wide, flat cylindrical base with a diameter of 22mm and a height of 2.55mm. Apply a 0.5mm chamfer to the outer top edge of this base. Centered on top of the base, add a thin cylindrical separator ring with a diameter of 10.25mm and a height of 0.6mm. On top ...
do_thumb = 1; do_spinner = 0; points = 3; diameter = 22; height = 7; distance = 25; brim_thickness = 1.0; thumb_initials = "DW"; thumb_initials_font = "Catamaran (Bold)"; thumb_initials_size = 7; thumb_diameter = 22; thumb_height = 2.55; thumb_shaft_diameter = 8; thumb_shaft_height = 3.4; thumb_separator_d...
glb/cad_17855a44f66c.glb
Create a patio cover clip consisting of a rectangular C-shaped gripping body and an integrated hanging hook. Start by constructing the main clip body with a width of 8mm and a thickness of 2mm. The bottom base is a rectangular slab 25mm long, 8mm wide, and 2mm thick. From one end of this base, extend a vertical wall 8m...
$fn = 30; clip_thickness = 2; clip_width = 8; clip_space = 3; clip_upper_depth = 20; clip_lower_depth = 25; hook_depth = 4; hook_hole_radius = clip_width / 3.5; hook_outer_radius = clip_width / 2; cube([clip_lower_depth, clip_width, clip_thickness]); translate([0, 0, clip_thickness]) { cube([clip_thickness, cli...
glb/cad_db40d9f7d5d8.glb
Create a parametric adapter for a parasol base. The main body is a hollow cylinder with an inner diameter of 38.2mm (including a 0.2mm tolerance) and an outer diameter of 56.3mm (including a 0.2mm tolerance), reaching a total height of 70mm. At the top, add a rim with a height of 5mm. This rim consists of a cylinder ...
crimp_percent = 0.2; innerdia = 38.0; outerdia = 56.5; rim = 2.7; height = 65.0; wall = 2.0; rimwall = 5.0; slot = 22.0; tol = 0.2; fn=1*96; d=1*0.1; chamfer = wall*0.4; a0 = asin((slot/2) / (innerdia/2)); echo(a0); a1 = 360-2*a0; nrib = max(5,ceil(a1*outerdia*3.14 / (360*4*wall))); echo(nrib); module add() ...
glb/cad_d3419572294d.glb
Create a parametric adapter for a parasol base. The main body is a hollow cylinder with an outer diameter of 56.5mm and an inner diameter of 38mm, reaching a total height of 70mm (65mm body plus a 5mm rim). The top of the adapter features a rim with a radius of 31.2mm (outer diameter plus 2.7mm) and a height of 5mm. ...
crimp_percent = 0.2; innerdia = 38.0; outerdia = 56.5; rim = 2.7; height = 65.0; wall = 2.0; rimwall = 5.0; slot = 22.0; tol = 0.2; fn=1*96; d=1*0.1; chamfer = wall*0.4; a0 = asin((slot/2) / (innerdia/2)); echo(a0); a1 = 360-2*a0; nrib = max(5,ceil(a1*outerdia*3.14 / (360*4*wall))); echo(nrib); module add() ...
glb/cad_5332782ec8b0.glb
Create a parametric drawer cabinet. First, construct the outer shell as a hollow rectangular box with overall dimensions of 600mm width, 480mm depth, and 1000mm height. The walls and the back panel should have a thickness of 16mm, leaving a hollow interior cavity. Inside this cabinet, create six individual drawers of ...
CWT = 16; DWT = 9; dbd = 2; ow = 600; od = 480; oh = 1000; bt = 5; hr = 15; rw = 0; gap = 0; dw = ow-(CWT*2)-(rw*2); dd = od-gap; dh1 = 250; dh2 = 170; dh3 = 150; dh4 = 110; dh5 = 106; dh6 = 90; d1p = -350; d2p = -300; d3p = -250; d4p = -200; d5p = -150; d6p = -100; pad = 0.6; echo ()...
glb/cad_1b64c829ba15.glb
Create a belt clip base for a handheld radio. Start with a main body formed by the convex hull of two cylinders with a radius of 3mm and a height of 4mm, positioned 37.5mm apart at coordinates (0,0,0) and (37.5,0,0), combined with a central rectangular block measuring 25mm wide, 15mm deep, and 4mm high. On top of this ...
union(){ difference(){ union(){ hull(){ translate([0,0,0]) cylinder (r=3,h=4, center=false); translate([37.5,0,0]) cylinder (r=3,h=4, center=false); translate([(37.5/2)-(25/2),0,0]) cube([25,15,4]); } translate([(37.5/2)-(25/2),30,0]) cube([25,5,...
glb/cad_95d518dbbc79.glb
Create a belt clip for a handheld radio by constructing a main body and removing a central channel. Start with a rectangular base measuring 40mm wide, 70mm long, and 6mm thick. On top of this base, add a second rectangular block measuring 40mm wide, 6mm thick, and 6mm high, positioned at the far end to create a total l...
difference(){ union(){ translate([0,0,0]) cube ([40,70,6]); translate([0,64,6]) cube ([40,6,6]); translate ([1,2,0]) union(){ hull(){ translate ([(-1),3,11]) rotate([0,90,0]) cylinder (r=5,h=8,center=false); translate ([(-1),-2,0]) cube ([8,...
glb/cad_075b95ccf353.glb
Create a customizable tower composed of 26 stacked layers, each 14mm thick. Each layer is a flat plate with a central circular hole of 5mm radius. The outer boundary of each layer is formed by the convex hull of three circles, each with a radius of 16.17mm, positioned 120 degrees apart. The distance of these three ci...
$fn = 50; layers = 26; layerThickness = 14; beginRadius = 48.5; endRadius = 16.17; chamferRadius = 16.17; holeRadius = 5; connectorRadius = 5; connectorHeight = 10; connectorMargin = 0.3; tower(); module assembly() { difference() { tower(); translate([0, 0, layers / 2 * layerThickness]) ...
glb/cad_6fafa2c7957d.glb
Create a Minecraft-style tool for LEGO figures. Start by constructing a handle consisting of a series of small cubes. Arrange 9 cubes, each 3mm x 3mm x 3mm, in a linear row, shifting each subsequent cube by 2mm along the X-axis. To this row, add a second set of 4 cubes, each 3mm x 4mm x 3mm, also shifted by 2mm increme...
union() { for (a=9) for (i=[1:a]) translate([i*2,0,0]) rotate ([0,0,45]) cube ([3,3,3]); for (a=4) for (i=[1:a]) rotate ([0,0,80]) translate([2,-5,0]) translate([i*2,0,0]) rotate ([0,0,45]) cube ([3,4,3]); difference(){ rotate ([90,0,90]) translate ([2.1,1.5,18]) scale([0.1,0.15,0.1]...
glb/cad_0c65f98fb383.glb
Create a Minecraft-style tool consisting of a pixelated head and a handle. The head is composed of small 3mm cubes rotated 45 degrees to create a jagged, stepped appearance. Arrange these cubes in four distinct groups: one group of 9 cubes extending along the x-axis starting at x=2, one group of 6 cubes starting at x=2...
union() { for (a=9) for (i=[1:a]) translate([i*2,0,0]) rotate ([0,0,45]) cube ([3,3,3]); for (a=6) for (i=[1:a]) rotate ([0,0,70]) translate([0,-5.5,0]) translate([i*2,0,0]) rotate ([0,0,45]) cube ([3,3,3]); for (a=6) for (i=[1:a]) rotate ([0,0,105]) translate([-2.5,-5.5,0]) translat...
glb/cad_558b294176ad.glb
Create a Minecraft-style tool handle designed for a small figure. Start by constructing a central grip that is 60mm long, 1.5mm wide, and 1.2mm thick, centered on the X and Y axes. To form the head of the tool, place a series of 3mm cubes rotated 45 degrees on the Z-axis. Position three of these cubes in a cluster at o...
union() { translate([2,0,0]) rotate ([0,0,45]) cube ([3,3,3]); translate([-.7,1.5,0]) rotate ([0,0,45]) cube ([3,3,3]); translate([0,4.5,0]) rotate ([0,0,45]) cube ([3,3,3]); difference(){ rotate ([90,0,90]) translate ([2.1,1.5,3]) scale([0.1,0.15,0.1]) cylinder (h=60,r=15); translate([...
glb/cad_82a7b696863d.glb
Create a dishwasher power button by constructing a main cylinder with a radius of 9.75mm and a height of 6mm, centered on the origin. Remove a smaller concentric cylinder from the top half of the main body, with a radius of 4mm and a height of 5mm, positioned 5mm above the center to create a deep circular recess. Final...
difference(){ union(){ cylinder (r=9.75, h=6, center=true); difference(){ translate ([0,0,5]) cylinder (r=9.75, h=5, center=true); translate ([0,0,5]) cylinder (r=4, h=5, center=true); } } translate ([-3.5,-.75,0]) cube ([7,1.5,5]); }
glb/cad_3e2d7f0f3848.glb
Create a protective slide-on cover for an FX-260 calculator. Start by constructing a main rectangular base that is 135mm long, 72mm wide, and 2mm thick. Build up the side walls to a total height of 8mm by adding two 135mm by 2mm by 8mm strips along the long edges and two 2mm by 72mm by 8mm strips along the short edges....
difference(){ union(){ cube([135,72,2]); translate ([0,-1,0]) cube([135,2,8]); translate ([0,71,0]) cube([135,2,8]); translate ([0,0,0]) cube([2,72,8]); hull(){ translate ([0,1,6.5]) cube([100,2,1.5]); translate ([100,0,6.5]) cube([5,1,1.5]);} hull(){ translate ([0,69,6.5]) cube([100,2,1.5]); t...
glb/cad_ba6add08b558.glb
Create a Window Frame Locking Lug by starting with a solid rectangular base measuring 38mm in length, 19mm in width, and 15mm in height. From this base, remove several geometric sections to create the final shape. First, carve out a rectangular notch from the top surface that is 13mm long, 9mm wide, and 20mm deep, posi...
difference (){ union(){ translate ([0,0,0]) cube([38,19,15]); } union(){ translate([2.5,5,3]) cube([13,9,20]); translate([26.5,9,6]) cylinder(r=09.5/2,h=10); translate([26.5,9,0]) cylinder(r=2.5, h=6); #translate([0,5,3]) cube([17,9,20]); translate ([0,1,3]) ...
glb/cad_4e93ee3ff0a8.glb
Create a Window Frame Locking Lug by starting with a rectangular base measuring 35mm in length, 15.5mm in width, and 5mm in height. From this base, remove two cylindrical sections to create a hole. First, create a narrow vertical hole with a radius of 2.5mm and a height of 6mm, centered at the coordinates X=26.5mm and ...
difference (){ union(){ translate ([0,0,0]) cube([35,15.5,5]); } union(){ translate ([10,0,2]) cube([35,15.5,5]); translate([26.5,15.5/2,6]) cylinder(r=09.5/2,h=10); translate([26.5,15.5/2,0]) cylinder(r=2.5, h=6); } }
glb/cad_c800620539f6.glb
Create an Altimaster II Skydiving Altimeter Night HALO Parts Adapter. Start by creating a base shape that is a hybrid between a square and a circle: use a hull operation to combine a cube with a side length of 68mm and a cylinder with a radius of 39.5mm, both with a height of 5.5mm. From the center of this base, remo...
difference(){ hull(){ translate([34,34,0]) cylinder(r=79/2,h=12.5-7, center=false); union(){ minkowski(){ cube([68,68,12.5-7]); cylinder(r=4,h=.001); } } } translate([34,34,0]) rotate ([0,0,45]) union(){ cylinder(r=72/2,h=20)...
glb/cad_c56d806bc750.glb
Create a small component storage drawer with a total width of 136mm, depth of 70mm, and height of 16mm. Construct the drawer body with outer walls and internal dividers that are 0.45mm thick. Divide the interior into a grid of 10 compartments: 5 compartments horizontally and 2 compartments in depth. The outer corners...
numberOfDrawerCompartmentsHorizontally = 5; numberOfDrawerCompartmentsInDepth = 2; rightSideWidthRatio = 0; rightSideNumberOfDrawerCompartmentsHorizontally = 3; rightSideNumberOfDrawerCompartmentsInDepth = 2; numberOfDrawersInChest = 7; generate = 1; outerWall = 0.75; drawerWall=0.45; dividerWall=0.45; drawerWidt...
glb/cad_d43c8942d509.glb
Create a Predator Costume Tri-Laser Adapter Disc by starting with a solid cylinder that has a radius of 12mm and a height of 5mm. To create the mounting holes for the laser modules, remove three smaller cylinders from this main body. Each of these holes must have a radius of 3mm and a height of 10mm. Position these thr...
difference(){ cylinder(h=5, r=12); union(){ for(a=3) for (i=[1:a]) #rotate([0,0,360/a*i]) translate ([0,5,0]) cylinder(h=10,r=3); } }
glb/cad_fc5e24ef6ad0.glb
Create a Zerotech Dobby motor pad by starting with a thin cylinder that has a radius of 8mm and a thickness of 0.8mm. From this base, remove five cylindrical holes that pass completely through the thickness. Position the first hole exactly in the center with a radius of 1.5mm. Then, place four additional holes, each wi...
$fa=1; $fs=0.1; base_thickness = 0.8; screwhead_radius = 1.5; module screwhead_cutouts() { translate([0,0,-1]) cylinder(base_thickness+5,1.5,1.5); rotate([0,0,22.5]) { translate([4.25,0,-1]) cylinder(base_thickness+5,screwhead_radius,screwhead_radius); translate([-4.25,0,-1]) cylinder(base_thi...
glb/cad_8233427d47b5.glb
Create a Petzval-style lens filter by starting with a solid cylinder that has an outer diameter of 71.3mm, a height of 20mm, and a flat base. Remove a central coaxial cylinder from the top, leaving a bottom wall thickness of 2.5mm; this inner void should have a diameter of 67.3mm. Within the remaining bottom disk, cr...
$fn = 150 ; Epsilon = 0.15 ; Thikness = 2.5 ; PF_ID = 67 + 2*Epsilon; PF_IR = PF_ID / 2; PF_ED = PF_ID + 2*Thikness; PF_ER = PF_ED / 2; PF_Height = 20; module _Petzval_Filter() { difference() { cylinder(r=PF_ER, h=PF_Height, center=false); translate([0,0,Thikness]) cylinder(r=PF_IR, h=PF_Height, center=f...
glb/cad_dd8c28501ed6.glb
Create an openSCAD logo by starting with a sphere that has a radius of 20mm. Remove two identical cylinders, each with a radius of 10mm and a height of 40mm, to create holes through the sphere. Position the first cylinder vertically so its center axis aligns with the Z-axis and its base is 20mm below the sphere's cente...
difference() { sphere(20); translate([0,0,-20]) { cylinder(h=40, r=10); } rotate([0,90,0]) { translate([0,0,-20]) { cylinder(h=40, r=10); } } }
glb/cad_bd1e0e9fe3e9.glb
Create a Fensterdrehgriffkontakt, a mounting base for a window handle sensor. Start with a rectangular base plate measuring 116mm in length, 32mm in width, and 8mm in height. On the top surface of this plate, create two circular screw holes with a diameter of 11mm, spaced 43mm apart. Center these holes along the widt...
A=7.5; B=43; C=68; D=11; E=32; F=4; G=2; X=60; Y=4; translate([((E/2)-6),(E+20),0])ring(); translate([0,0,0])plate(); translate([E,(E+10),0])top(); module top() { difference(){ $fn=50; minkowski() { translate([0.5,0.5,1])cube([45-1,E-1,9]); sphere(1); } translate([0.5,0.5,1])cube([44,(E...
glb/cad_02bc6c4a88d6.glb
Create a customizable tablet and mobile holder by constructing a series of intersecting thin plates, each 5mm thick and 65mm wide. Start with a base rectangular plate 80mm long. Add a second plate of the same dimensions, rotated 60 degrees backward from the base. Position a third plate 35.5mm from the start of the base...
H = 80; G = 65; I = 80; A = 25; B = 30; C = 67; D = 35.5; E = 30; F = 48; J = 45.5; K = 12; L = 10; O = 72; P = 39.5; M = 70.5; N = 25.5; fill = 5; rotate([0, 0, 90]) { translate([2,-75,fill]){ linear_extrude(height = 1) { text("benparvar"); } } } difference(){ union(){ cube([H, G, fill...
glb/cad_cc74eed9c869.glb
Create a Lego Technics Moon Rover tire and rim. Start by constructing a cylindrical rim with an inner diameter of 67mm, an outer diameter of 73mm, and a total width of 10mm. To create the tire tread, generate two rows of chevrons around the circumference. Each chevron is a polygon with a straight side of 4mm and a wi...
tireWidth = 10; tireInnerDiameter = 67; tireMedianDiameter = 73; tireOuterDiameter = 78; cramponSide = 4; cramponNumberPerSide = 2; cramponNumberPerRow = 24; DEBUG = false; cramponWidth = tireWidth/cramponNumberPerSide; cramponHeight = (tireOuterDiameter-tireMedianDiameter)/2; module unitTest() { color("...
glb/cad_67be1fe36c7e.glb
Create a Lego Technics Moon Rover rim. Start by creating a main outer ring with an inner diameter of 40mm, a width of 10mm, and a wall thickness of 2mm. At the center of this ring, construct a cylindrical axle hub with a diameter of 15mm and a height of 7mm. Within this hub, carve out a cross-shaped hole consisting o...
tireWidth = 10; tireInnerDiameter = 40; rimDepth = 2; axleHeigth = 7; axleDiameter = 15; axleInternalHoleThickness = 1.5; spokeThickness = 1.2; numberOfSpokes = 12; module oval(l, w) { scale(v=[1, w/l, 1]) { circle(r = 0.5*l, $fn = 180); } } module support_rounded(length = 10, width = 4, height = 5, d = 2) ...
glb/cad_c14262d4b007.glb
Create a Twisted Cube by stacking a series of thin, square plates. Each plate must be 90mm wide and 90mm deep, with a thickness of 0.5mm. Stack these plates vertically to reach a total height of 90mm. As you stack each plate, rotate it around the center Z-axis by an angle equal to its current height in millimeters, and...
W = 90 ; Fines = 1/2 ; for (i = [0:Fines:W]) { rotate([0,0,i ]) translate([0,0,i+Fines/2 ])cube([W,W,Fines], true);}
glb/cad_6793ca086cc6.glb
Create a Twisted Cube by finding the intersection of two primary geometries. First, center a cube with side lengths of 90mm in all dimensions. Second, generate a vertical stack of thin, centered square plates, each 1mm thick with a width and depth of 90mm. Stack these plates from a height of 0mm to 90mm, rotating each ...
W = 90 ; Fines = 1 ; intersection(){ translate([0,0,W/2 ]) cube([W,W,W],true); for (i = [0:Fines:W-Fines]) { rotate([0,0,i ]) translate([0,0,i+Fines/2 ]) cube([W,W,Fines],true);}}
glb/cad_c2c8cb0da6bf.glb
Create a GoPro Clamp Mount adapter. Start with a rectangular base measuring 30mm wide, 15mm deep, and 6mm thick. Centered on this base, construct a mounting interface that consists of three parallel protruding fingers. Each finger is 2.8mm wide with a 3.3mm gap between them. The fingers are formed by combining a 2.8m...
$fa=2; $fs=.05; gopro_length = 15; gopro_finger_width = 2.8; gopro_finger_gap = 3.3; function gopro_width(n) = (n-1)*(gopro_finger_width+gopro_finger_gap) + gopro_finger_width; module goproN(n) { module finger() { difference() { hull() { translate([0, gopro_length/2, 8]) rotat...
glb/cad_0a4849576b9a.glb