Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a minimal ceiling cap for lamps. Start by creating a hexagonal prism with a distance of 40mm between opposite flat sides and a total height of 31.5mm. Center a vertical hole through the prism with a diameter of 30mm. Within this central hole, create a threaded internal profile with a 55-degree thread angle and...
include <T:\Projects\3d\lib\polyScrewThread.scad> PI=3.141592; diameter=30; hoogte=20; $fn=100; hg=20; sth=4; clf=55; cod=diameter; crs=0.5; 2e= 0.02; module hex_nut(df,hg,sth,clf,cod,crs) { difference() { translate([0,0,hg/2]) cube([df*2,df,hg],center=true); hex_countersink_ends(sth/2,cod...
glb/cad_9f0131f5ab17.glb
Create a minimal ceiling cap for lamps. Start by creating a threaded cylinder with an outer diameter of 29.2mm and a total length of 20mm. The thread should have a pitch of 4mm and a tooth angle of 55 degrees. Ensure both the top and bottom ends of the cylinder are countersunk. Integrated into this threaded body, add ...
include <T:\Projects\3d\lib\polyScrewThread.scad> PI=3.141592; difference(){ union(){ screw_thread(29.2,4,55,20,PI/2,2); translate([0,0,20]){rotate([0,90,90]){cylinder(h=3,r=12,center=true);}} } translate([0,0,-5]){rotate([0,90,0]){cylinder(h=3,r=12,center=true);}} translate([0,0,20]){ro...
glb/cad_3b06bdc66dc6.glb
Create a minimal ceiling cap for lamps. Start by creating a main cylindrical disk with a diameter of 29.2mm and a height of 20mm. This disk should feature a threaded outer profile with a 4mm step and a 55-degree tooth angle. Apply a countersink to both the top and bottom flat ends of the cylinder. From this main body,...
include <T:\Projects\3d\lib\polyScrewThread.scad> PI=3.141592; $fn=100; difference(){ union(){ screw_thread(29.2,4,55,20,PI/2,2); translate([0,0,0]){rotate([0,00,0]){cylinder(h=1,r=18,center=true,$fn=100);}} } translate([0,0,0]){rotate([0,0,0]){cylinder(h=60,r=3.5,center=true);}} trans...
glb/cad_75131b42b39d.glb
Create a minimal ceiling cap for lamps consisting of a thin circular disc. The main body is a cylinder with a diameter of 29.2mm and a height of 20mm. The outer perimeter of this cylinder features a screw thread with a 4mm pitch (traveling length per turn) and a 55-degree tooth angle. Both the top and bottom faces of t...
include <d:\lib\polyScrewThread_r1.scad> PI=3.141592; $fn=100; difference(){ union(){ screw_thread(29.2,4,55,20,PI/2,2); translate([0,0,0]){rotate([0,00,0]){cylinder(h=1,r=18,center=true,$fn=100);}} } translate([0,5,0]){rotate([0,0,0]){cylinder(h=60,r=3.5,center=true);}} translate([0,-5...
glb/cad_c6419db70941.glb
Create a simple hinge consisting of a rectangular leaf and a cylindrical pin. The leaf is a rectangular block 40mm high, 25mm wide, and 4mm thick. Along one 40mm edge, create a semi-cylindrical protrusion with a diameter of 8mm (twice the leaf thickness) that runs the full height of the leaf. From this protrusion, remo...
socket = 0; clear = 1; straighten = 1; height = 40; width = 25; thick = 4; pindiam=4; pinclear=0.4; bolthole_diam = 4; boltclearance = 0.25; bolthead_diam = 7.5; $fa=.01; $fs=0.1; epsilon = 0.01; halfheight=height/2; cyldiam=thick*2; spacehole = height/4; stagger = (bolthole_diam/2*clear); module basic() { ...
glb/cad_75fc8b4f5f8f.glb
Create an RC 4WD Model Wheel Replacement with an outer diameter of 62mm and a total depth of 34mm. Start by constructing the main rim as a hollow cylinder with an outer diameter of 62mm and an inner diameter of 53.6mm. Add two thin, tapered circular flanges (2.5mm depth) at the top and bottom faces of the rim, each t...
$fn=64; wheel_rim_outer_diameter=62; wheel_rim_diameter=56.5; wheel_rim_inside_diameter=53.6; wheel_rim_depth=34; wheel_hub_diameter=18; wheel_hub_depth=wheel_rim_depth-5; offcenter=0; tolerance=0; hexaf = (6.35+0.5) * 2 / tan(60) + tolerance; hexaf_stub = 17; module hub_support(diameter=wheel_hub_diameter, sides...
glb/cad_c156af698643.glb
Create a wall holder for a remote control. The main body is a hollow rectangular sleeve with an outer width of 45mm, a depth of 25mm, and a height of 60mm. The walls are 2.4mm thick. The outer corners of the body are rounded with a radius of 3.5mm. The interior compartment is a rounded rectangular void that mirrors th...
comp_w = 45; comp_d = 25; comp_h = 60; slot_w = 30; slot_lower = 10; corner_r = 3.5; wall = 2.4; chamfer = 0.6; mounting_screw_holes_dia = 4.0; mounting_screw_holes_yesno = 1; slot_corners_cut=1; tol = 0.3; d = 1*0.1; detail=30; module add() { if (chamfer > 0) hull() for (sx = [-1,1]) for (sy = [-1,1]...
glb/cad_a245bbda52a8.glb
Create a small wire clip with a base measuring 16mm in length, 12.8mm in width, and 6.4mm in height. The main body should be a rounded rectangular block with a corner radius of 4mm. Carve a channel through the center of the block to hold a wire, consisting of a vertical cylinder with a 4mm diameter and a 4mm wide rec...
width=10; length=16; height=6.4; wireDiameter=4; screwDiameter = 4; screwHeadDiameter = 7; screwHeadHeight = 2; module __customizer_limit__() {} module center(dims) { translate([-dims[0]/2, -dims[1]/2, -dims[2]/2]) children(); } module _center_by_flag(dimensions, center) { if (center) { center(dimensions...
glb/cad_fdfd9dcb5492.glb
Create a 32-slot encoder wheel. Start with a main thin disc 42mm in diameter and 1mm thick. Centered on this disc, add a thicker cylindrical hub with a diameter of 12mm and a height of 8mm. Bore a central hole through the entire assembly with a diameter of 8.05mm. Around the perimeter of the thin disc, create 32 equid...
slop = 0.2; fn = 150; eps = 0.03; holes = 32; WOD = 42; WZ = 1.0; WHZ = 2; WHOD = 25; WHZ2 = 8; WID = 7.9 + 0.15; WHOD2 = WID+4; SX = 3.2; SY = 2.0; SZ = WZ*2; SOX = 17.2; SLA = 0; SSBX = 6; SSBY = WID+1; SSBZ = WHZ2; SSID = 2.8; module wheel() { difference() { union() { cylinder(d=WOD, h=WZ, $fn=fn); ...
glb/cad_3e7c30776739.glb
Create a 32-slot encoder wheel. Start with a main thin disc 42mm in diameter and 1mm thick. Add a concentric inner hub that is 8mm tall with a diameter of 9.14mm. The hub must have a centered vertical hole 5.14mm in diameter passing through its entire height. Around the outer edge of the thin disc, create 32 equally s...
slop = 0.2; fn = 150; eps = 0.03; holes = 32; WOD = 42; WZ = 1.0; WHZ = 2; WHOD = 25; WHZ2 = 8; WID = 5.14; WHOD2 = WID+4; SX = 3.2; SY = 2.0; SZ = WZ*2; SOX = 17.2; SLA = 0; SSBX = 6; SSBY = WID+1; SSBZ = WHZ2; SSID = 2.8; module wheel() { difference() { union() { cylinder(d=WOD, h=WZ, $fn=fn); ...
glb/cad_e7fadf37f391.glb
Create a 40mm fan duct mount consisting of a base and a tapered funnel. Start with a square base 40mm wide and 4mm thick with rounded corners (radius 1mm). Center a large circular hole with a radius of 18.5mm through the base. At the four corners of the base, place mounting holes with a diameter of 3.1mm, spaced 32mm...
$fn=32; fan_size = 40; corner_r = 1; base_thickness = 4; hole_pitch = 32; hole_diam = 3.1; hole_r = hole_diam/2; nut_diam = 6.9; wall_th = 1.0; module funnel() { difference() { union() { color("green") { difference() { hull() { translate([0,0,base_thickness+1]) cylinder(r=37/2+wall_th, h=0.1, ...
glb/cad_d04768d77809.glb
Create a connecting arm for a fan mount. Start with a main rectangular base that is 20mm long, 7mm wide, and 3mm thick, centered on the Z-axis. On top of this base, add a smaller rectangular ridge centered along the length, measuring 12mm long, 3mm wide, and 3mm thick. At both ends of the main base, integrate cylinders...
arm_th=3; arm_len=20; arm_wi=7; $fn=32; difference() { union() { translate([arm_len/2,0,arm_th/2]) cube([arm_len,arm_wi,arm_th], center=true); translate([arm_len/2,0,1.5*arm_th]) cube([12,arm_th,arm_th], center=true); translate([0,0,arm_th/2]) cylinder(r=arm_wi/2, h=arm_th, center=true); translate([...
glb/cad_3af2bd2487d9.glb
Create a configurable 40mm fan duct and mount for Wade's extruder. Start by creating a square base for a 40mm fan with a thickness of 4mm. The base should have rounded corners with a radius of 1mm. Position four mounting holes with a diameter of 3.1mm at a pitch of 32mm. To accommodate mounting hardware, integrate fo...
$fn=32; fan_size = 40; corner_r = 1; base_thickness = 4; hole_pitch = 32; hole_diam = 3.1; hole_r = hole_diam/2; nut_diam = 6.9; wall_th = 1.0; arm_th=8.5; module funnel() { difference() { union() { color("green") { difference() { hull() { translate([0,0,base_thickness+1]) cylinder(r=37/2+wall...
glb/cad_de82ec7a2b15.glb
Create a 40mm fan duct mount consisting of a base and a funnel. Start with a square base 40mm wide and 4mm thick with rounded corners (radius 1mm). Center a circular hole with a radius of 18.5mm through the base. Position four mounting holes with a diameter of 3.1mm at a 32mm pitch. At the corners of the base, create...
$fn=32; fan_size = 40; corner_r = 1; base_thickness = 4; hole_pitch = 32; hole_diam = 3.1; hole_r = hole_diam/2; nut_diam = 6.9; wall_th = 1.5; arm_th=8.5; module funnel() { difference() { union() { color("green") { difference() { hull() { translate([0,0,base_thickness+1]) cylinder(r=37/2+w...
glb/cad_d9f0a20cd994.glb
Create a 40mm fan duct and mount for Wade's extruder. Start with a square base 40mm wide and 4mm thick with rounded corners (radius 1mm). Center a large circular hole in the base with a radius of 18.5mm. At the four corners of the base, place mounting holes with a diameter of 3.1mm, spaced 32mm apart. Around these hole...
$fn=32; fan_size = 40; corner_r = 1; base_thickness = 4; hole_pitch = 32; hole_diam = 3.1; hole_r = hole_diam/2; nut_diam = 6.9; wall_th = 1.2; arm_th=8.5; module funnel() { difference() { union() { color("green") { difference() { hull() { translate([0,0,base_thickness+1]) cylinder(r=37/2+wall...
glb/cad_5388f9ca4bc6.glb
Create two mirrored Z-shaped connecting arms for a 40mm fan duct mount. Each arm has a thickness of 3mm and a width of 7mm. Construct the main body of one arm by combining three rectangular blocks: a small block measuring 9mm by 7mm by 3mm centered at the origin, a long central block measuring 7mm by 22mm by 3mm posit...
arm_th=3; len1=9; len2=20+2; arm_wi=7; $fn=32; module arm() { difference() { union() { translate([len1/2,0,arm_th/2]) cube([len1,arm_wi,arm_th], center=true); translate([1.5*len1,len2,arm_th/2]) cube([len1,arm_wi,arm_th], center=true); translate([len1,len2/2,arm_th/2]) cube([arm_wi,len2,arm_...
glb/cad_0fda53dbc9a9.glb
Create two mirrored Z-shaped connecting arms for a fan mount. Each arm has a thickness of 3mm and a width of 7mm. Construct the Z-shape by combining three rectangular blocks: a first block measuring 9mm by 7mm by 3mm, a second block measuring 9mm by 7mm by 3mm positioned at a distance of 18mm along the Y-axis and 0mm...
arm_th=3; len1=9; len2=16+2; arm_wi=7; $fn=32; module arm() { difference() { union() { translate([len1/2,0,arm_th/2]) cube([len1,arm_wi,arm_th], center=true); translate([1.5*len1,len2,arm_th/2]) cube([len1,arm_wi,arm_th], center=true); translate([len1,len2/2,arm_th/2]) cube([arm_wi,len2,arm_...
glb/cad_cd2977d4607c.glb
Create a small connecting arm for a fan mount. Start with a main rectangular base that is 17mm long, 7mm wide, and 3mm thick. Centered on the top face of this base, add a smaller rectangular ridge that is 8mm long, 3mm wide, and 3mm thick. At both the left and right ends of the main base, integrate a cylinder with a ...
arm_th=3; arm_len=17; arm_wi=7; $fn=32; difference() { union() { translate([arm_len/2,0,arm_th/2]) cube([arm_len,arm_wi,arm_th], center=true); translate([arm_len/2,0,1.5*arm_th]) cube([arm_len-9,arm_th,arm_th], center=true); translate([0,0,arm_th/2]) cylinder(r=arm_wi/2, h=arm_th, center=true); tran...
glb/cad_21aa2ddbb68d.glb
Create a small connecting arm for a fan mount. Start with a base rectangular block 12mm long, 7mm wide, and 3mm thick, centered on the Z-axis. On top of this base, add a second rectangular block that is 3mm long, 3mm wide, and 3mm thick, centered along the length of the base and positioned 1.5mm above the Z-plane. At ...
arm_th=3; arm_len=12; arm_wi=7; $fn=32; difference() { union() { translate([arm_len/2,0,arm_th/2]) cube([arm_len,arm_wi,arm_th], center=true); translate([arm_len/2,0,1.5*arm_th]) cube([arm_len-9,arm_th,arm_th], center=true); translate([0,0,arm_th/2]) cylinder(r=arm_wi/2, h=arm_th, center=true); tran...
glb/cad_0a68535b0b7f.glb
Create two mirrored connecting arms for a fan mount. Each arm is a flat plate with a thickness of 3mm. Construct the main body of one arm by combining two rectangular blocks: a first block measuring 9mm by 7mm by 3mm, and a second block measuring 7mm by 16mm by 3mm, positioned such that they form an L-shape. Add a sm...
arm_th=3; len1=9; len2=14+2; arm_wi=7; $fn=32; module arm() { difference() { union() { translate([len1/2,0,arm_th/2]) cube([len1,arm_wi,arm_th], center=true); translate([len1,len2/2,arm_th/2]) cube([arm_wi,len2,arm_th], center=true); translate([len1-2,0,1.5*arm_th]) cube([len1-5,arm_th,arm_t...
glb/cad_7ae610e4e167.glb
Create a mounting bracket for a Wade's extruder. Start with a rectangular base plate measuring 14mm by 20mm with a thickness of 3mm. In the center of this plate, create a hexagonal extrusion with a height of 1.5mm and a width of 7.6mm to serve as a nut trap. Pierce a vertical hole with a radius of 2.2mm through the c...
wade_r=12.5/2; wade_dist=12; plate_wi=20; arm_th=3; arm_len=20; arm_wi=7; $fn=32; difference() { union() { translate([2,0,0]) cube([14,plate_wi, arm_th], center=true); translate([3,0,arm_th*0.75]) cylinder(r=7.6/2, h=arm_th*0.5, center=true, $fn=6); } translate([3,0,0]) cylinder(r=4.4/2, h=3*arm_th, cen...
glb/cad_af9fb9588c07.glb
Create a connecting arm for a fan mount. Start with a main rectangular body that is 21mm long, 7mm wide, and 3mm thick. Centered on the top face of this body, add a smaller rectangular ridge that is 12mm long, 3mm wide, and 3mm thick. At both the left and right ends of the main body, integrate a cylinder with a radius ...
arm_th=3; arm_len=20+1; arm_wi=7; $fn=32; difference() { union() { translate([arm_len/2,0,arm_th/2]) cube([arm_len,arm_wi,arm_th], center=true); translate([arm_len/2,0,1.5*arm_th]) cube([12,arm_th,arm_th], center=true); translate([0,0,arm_th/2]) cylinder(r=arm_wi/2, h=arm_th, center=true); translate...
glb/cad_4f415f6461c0.glb
Create a connecting arm for a fan mount. Start with a central rectangular base measuring 22mm in length, 7mm in width, and 3mm in thickness. Centered on top of this base, add a smaller rectangular ridge that is 13mm long, 3mm wide, and 3mm thick. At both the start and end of the main base, integrate cylinders with a ra...
arm_th=3; arm_len=20+2; arm_wi=7; $fn=32; difference() { union() { translate([arm_len/2,0,arm_th/2]) cube([arm_len,arm_wi,arm_th], center=true); translate([arm_len/2,0,1.5*arm_th]) cube([arm_len-9,arm_th,arm_th], center=true); translate([0,0,arm_th/2]) cylinder(r=arm_wi/2, h=arm_th, center=true); tr...
glb/cad_afac8d2ade48.glb
Create two mirrored curved connecting arms for a 40mm fan mount. Each arm is 3mm thick. Start by forming the main body from two intersecting rectangular blocks: a first block measuring 9mm by 7mm by 3mm, and a second block measuring 7mm by 22mm by 3mm, positioned perpendicular to the first to create an L-shape. Add a...
arm_th=3; len1=9; len2=20+2; arm_wi=7; $fn=32; module arm() { difference() { union() { translate([len1/2,0,arm_th/2]) cube([len1,arm_wi,arm_th], center=true); translate([len1,len2/2,arm_th/2]) cube([arm_wi,len2,arm_th], center=true); translate([len1-2,0,1.5*arm_th]) cube([len1-5,arm_th,arm_t...
glb/cad_8f3705e64e6d.glb
Create a mounting plate for a fan duct with a pivot point. Start with a central rectangular plate 14mm wide, 20mm deep, and 3mm thick. In the center of this plate, create a hexagonal extrusion with a height of 2.25mm and a width of 7.6mm, containing a vertical hole with a diameter of 4.4mm passing through the entire as...
wade_r=12.5/2; wade_dist=12; plate_wi=20; mini_r=0.1; arm_th=3; arm_len=20; arm_wi=7; $fn=32; module attach_plate() { translate ([0,0,arm_th/2]) { difference() { union() { translate([2,0,0]) cube([14,plate_wi, arm_th], center=true); translate([3,0,arm_th*0.75]) cylinder(r=7.6/2, h=arm_th*0.5, center=tr...
glb/cad_45c6f4160688.glb
Create a pivot joint for a fan mount. Start by creating two identical mirrored halves. Each half consists of a rectangular block measuring 4mm by 5mm by 6mm, centered on the Z-axis. To each block, attach a cylinder with a radius of 4.5mm and a height of 6mm, centered on the Z-axis. Position these cylinders so their cen...
joint_len=4; $fn=32; module half_joint() { translate([joint_len/2,0,6/2]) cube([4,5,6], center=true); difference() { translate([joint_len/2+5.5,0,6/2]) cylinder(r=4.5,h=6, center=true); translate([joint_len/2+5.5,0,6/2]) cylinder(r=3.4/2,h=30, center=true); } } module pivot_joint() { half_joint(); ...
glb/cad_1fce6bce1af3.glb
Create a pivot hinge for a fan duct mount. Start by constructing a hinge assembly consisting of three aligned, rounded segments. Each segment is formed by the convex hull of a cylinder with a 4mm radius and 3mm height, centered at x=12, y=±6.2, z=4, and a small rectangular block of 1mm by 3mm by 0.1mm positioned at x=1...
wade_r=12.5/2; wade_dist=12; plate_wi=20; arm_th=3; arm_len=20; arm_wi=7; $fn=32; module hinge() { difference() { union() { hull() { translate([12,-3-3.2,4]) rotate ([90,0,0]) cylinder(r=4,h=3, center=true); translate([16,-3-3.2,0.1/2]) cube([1,3,0.1],center=true); } hull() { translate([12...
glb/cad_eb988178c33d.glb
Create a 40mm fan duct and mount for a Wade's extruder. The assembly consists of a fan mount and two mirrored airflow splitters. First, construct the fan mount as a square base with a wall thickness of 1.5mm. The base should be 40mm by 40mm with a height of 8mm. In the center of the base, create a circular cutout with...
use <fan_holder_v2.scad> use <shapes.scad> use <ruler.scad> $fn=32; pi = 3.1416; mini_r=0.1; arm_th=3; fan_screw_hole_pitch=32; layerHeight = 0.2; outerRadius = 1.6; wall = 1.5; m3_diameter = 3.6; kFanSize = 40; heaterBlockW = 18; nozzleOffsetFromBlockCenter = 2; heaterBlockGap = 6; mountToFilamentHoriz = 21.25;...
glb/cad_19eb103e4135.glb
Create a snow plow attachment for a wooden train. Start with a main blade body that is 25.4mm wide, 19.8mm high, and 19mm deep. The front edge of the blade should have a rounded bullnose effect created by a sphere with a 6mm radius centered at the tip. The bottom of the blade should be curved upward to prevent it from ...
module flat_teardrop(radius, length, angle, $fn=100) { module teardrop(radius, length, angle) { rotate([0, angle, 0]) { union() { linear_extrude(height = length, center = true, convexity = radius, twist = 0) circle(r = radius, center = true); linear_extrude(height = length, center = true, convexity ...
glb/cad_9601372d2bfc.glb
Create a cable clip with a total height of 20mm. Start by forming the main body as a hull between a cylinder with a radius of 6mm and a cube with a side length of 6mm, both centered and extending 20mm along the Z-axis. Carve out a central vertical hole with a radius of 4mm to accommodate the cable. To create the clip o...
cable_thickness_r = 4; wall_thickness = 2; height = 20; outer_size = cable_thickness_r + wall_thickness; difference() { union() { hull() { cylinder(r=outer_size,h=height,$fn=72, center=true); translate([0,0,-height/2]) cube([outer_size,outer_size,height]...
glb/cad_5141b7041073.glb
Create a rod end cap with a total thickness of 4.1mm. The main body is a rounded lozenge shape formed by the union of a central cylinder with a diameter of 19.1mm and two smaller outer cylinders, each 8.1mm in diameter, positioned 12.7mm apart from center to center. The edges of this body should be rounded with a radiu...
tol=0.1; m3_d= 3; m3_d_tol=0.15; m3_d_tight= 2.9; m3_nut_d= 6 + 0.3; m3_nut_h=2.0+0.1; back_th= 2; hiv= 0.8; roundness=3; thc= m3_nut_h + hiv + back_th; div= 13; dsm=8.1; mwd= div + 6.1; $fs=0.1; h2h=25.4; RodBlindEnd(); module torus(diameter,roundness) { translate([0,0,roundness/2]) rotate_extrude(convexity=...
glb/cad_cde4087b7814.glb
Create a license plate frame for a Kawasaki ZX-600F. Start with a solid rectangular block measuring 90mm wide, 75mm deep, and 20mm high. Remove a large central section from the block to create a hollowed-out rectangular tray, leaving a wall thickness of approximately 2.5mm. The interior cutout should be a rounded rec...
z = 0.5; difference(){ union(){ cube([180*z,150*z,40*z]); } rotate([18,0,0]){ translate([-1*z,0,0]){ cube([193*z,150*z,40*z]); } translate([40*z,25*z,-23*z]){ cylinder(h = 20*z, d=20*z, $fn=20); cylinder(h = 35*z, d=3*z, $fn=20); } translate([90*z,25*z,-23*z]){ cylinder(h = 20*z, d=20*z, $fn...
glb/cad_a1ec0c1107f0.glb
Create a vase by extruding a hexagon with a diameter of 60mm to a total height of 140mm. As the shape is extruded upward, apply a linear scale that increases the size of the hexagon to twice its original dimensions at the top. Simultaneously, apply a total twist of 80 degrees over the height of the extrusion. Ensure th...
vyska=140; linear_extrude(height=vyska, scale=2,twist=80,slices=8)circle(d=60, $fn=6);
glb/cad_3259c56417a7.glb
Create an enclosure for ESP Mini D1 projects consisting of a main body and a removable cover. The main body is a rounded rectangular box with internal dimensions of 39.35mm length, 31.25mm width, and 6.8mm depth. The walls have a thickness of 1.8mm and the corners are rounded with a 4mm radius. On one of the shorter ...
WhatToPrint = "print"; BodyInnerLength = 39.35; BodyInnerWidth = 31.25; BodyInnerDepth = 6.8; BodyThickness = 1.8; ScrewType="Sink_SelfTab"; ScrewDiameter = 2.0; ScrewOffset = 2.4; Radius=4; GapTolerance=0.15; Fontsize=7; Emboss=0.2; EspType="D1Mini_ESP32"; UpsideDown = false; USB_HoleOffset = 1.15; USB_Hole...
glb/cad_72291700e299.glb
Create a knurled knob with a diameter of 25.4mm and a height of 12.7mm. The main body is a cylinder with a 3mm bevel on the top and bottom edges. The outer vertical surface features a knurled texture consisting of alternating grooves and ridges, where each groove is 1.5mm wide and 1mm deep, twisted around the circumfer...
diam = 25.4; h = 12.7; bev = 3; hole = true; holeType = 1; holeDim = 11.1; holeDepth = 6; holeClip = 0; fitClearance = 0.15; optionalThruHole = false; thruHoleDiam = 11.1; grooveSize = 1.5; gh = 1; eps = 0.02; $fn = 90; r = diam / 2; n = 2 * floor(PI * diam / grooveSize / 2); translate([0, 0, h]) { r...
glb/cad_07d3dcfdfd7d.glb
Create a color sampler swatch in the shape of a thin rectangular plate. Start with a base rectangle measuring 80mm by 50mm with a thickness of 0.4mm. Apply a fillet to all edges using a 5mm radius to ensure the corners and sides are rounded. Position a single hole in the upper left area of the plate; this hole should b...
$fs=100; difference() { union(){ minkowski(){ cube([80,50,0.4],center=true); cylinder(d=5, $fa=5, $fs=0.1); } } translate(v = [-34,19,-3]) { cylinder(d=5, h=10, $fa=5, $fs=0.1); } }
glb/cad_26c0ced2da22.glb
Create a small parts tray base. Start with a rectangular base plate measuring 146mm in width, 226mm in length, and 2mm in height. On top of this plate, construct a deep rectangular compartment. The outer walls of this compartment should be 146mm wide and 100mm long, with a total height of 50mm. The walls of this comp...
trayWidth = 142; trayLength = 122; trayTotalHeight = 50; deepCompartmentLength = 100; deepCompartmentWallTickness = 1.5; toleranceTrays = 2; trayHolderHeight = trayTotalHeight * 0.75; trayHolderWidth = 50; trayHolderTickness = 2; basePlateTickness = 2; totalWidth = trayWidth + toleranceTrays + 2 * trayHolderT...
glb/cad_873b39b4a172.glb
Create a small parts tray organizer with an overall footprint of 143mm width, 123mm length, and 15mm height. The object is a solid block with a 1.5mm thick base and 1.2mm thick internal separators. Carve out several storage buckets from the main body. The layout is divided into four rows with lengths relative to the t...
layoutWidth = 143; layoutLength = 123; trayHeight = 15; separatorTickness = 1.2; bottomTickness = 1.5; roundedBucketEnabled = true; roundRadius = 7; rowLayout = [ 0.25, 0.25, 0.25, 0.25 ]; columnLayout = [ [ 1 ], [ 0.50, 0.50 ], [ 0.50, 0.50 ], [ 1...
glb/cad_3ec42993e214.glb
Create a housing for a USB to RS-485 converter consisting of a main box and a matching lid. The main box is a rounded rectangular prism with outer dimensions of 42mm in length, 26mm in width, and 12mm in height. The corners have a radius of 2.5mm. Hollow out the center of the box to create a cavity, leaving walls tha...
use <teardrops.scad> use <roundCornersCube.scad> use <polyhole.scad> pcbX = 39; pcbY = 23; sz = 12; wall_thickness = 1.5; module standoff(outer_diam, inner_diam, height, hole_depth) { difference(){ cylinder(r=outer_diam/2, h=height, $fn=50); translate([0,0, height - hole_depth]) polyhole(hole_depth + 1, inner_d...
glb/cad_832042cac0ca.glb
Create a Parametric Clough42 ELS Panel, which is a rectangular electronics enclosure. Construct the main body as a hollow box with external dimensions of 111.125mm in width (A), 60.325mm in depth (B), and 27.0mm in height (D). The walls should have a thickness of 1.5875mm (J). The four vertical corners of the box are...
eps = 0.001; USE_PROJUNK_PREFS = false; function toMM(prmInch) = 25.4*prmInch; A = toMM(4.375); B = toMM(2.375); C = toMM(1.218); D = USE_PROJUNK_PREFS ? 15.0 : toMM(1.062); E = toMM(4.000); F = toMM(2.000); H = toMM(0.062); J = toMM(0.078); r = toMM(0.125); d = toMM(0.094); rScrewHole = 2.8/2; lScrewHole = D/2; r...
glb/cad_b6f059dbf6fe.glb
Create a Hamster House consisting of a hollow rectangular base and a peaked roof. For the base, construct a rectangular shell with outer dimensions of 90mm width, 140mm depth, and 70mm height, with a wall thickness of 3mm. On the front face of this base, create a circular entrance hole with a radius of 20mm, centered 4...
difference(){ difference(){ difference(){ cube([90,140,70]); translate([3,3,2]) cube([84,134,69]); } translate([0,10,2]) union(){ cube([10,50,35]); translate([0,25,35]) rotate([0,90,0]) cylinder(r=25,h=10); } } translate([-1,100,40]) rotate([0,90,0]) cylinder(r=20,h=10); translate([45,5,40]) rot...
glb/cad_8af151d38d35.glb
Create a K8200/3Drag printout cooler clip. Start by creating a 40mm fan frame with a thickness of 4mm and a height of 2mm. Add two 18-facet cylinders with a diameter of 7mm and a height of 4mm, centered at positions [20, 7, 0] and [20, -7, 0]. Construct a hull that connects a 2x15x4mm cube centered at [21, 0, 0] to...
use <fan_mounts.scad> fns=18; translate([0,0,0]){ difference(){ union(){ fan_frame(40,4,2,true); translate([20,7,0]) rotate([0,0,0]) cylinder(h=4,d=7,center=true,$fn=18); translate([20,-7,0]) rotate([0,0,0]) cylinder(h=4,d=7,center=true,$fn=18); hull(){ translate([21,0,0]) cube(size=[2,15,4],center...
glb/cad_9c591742d830.glb
Create a fan mount frame for a 40mm fan. Start by constructing a square plate 40mm wide and 40mm deep with a thickness of 2mm. Round the four corners of this plate with a radius of 2mm. Remove a central circular hole with a diameter of 36mm to create the main opening. Additionally, create four small circular mounting...
fan_frame(40,5,2,true); fan_mounts(40,5,true); hole_dist = [ -1, -1, -1, 3, 4, 5, 5, 5, 4.25, 4.5, -1, -1, 7.5 ]; module fan_frame(fan_size,frame_thick,round_radius,centr){ real_width=fan_size-round_radius*2; real_width2=real_width/2; hole_d = hole_dist[round(fan_size/10)]; difference(){ u...
glb/cad_d8c1ebff9bac.glb
Create a K8200/3Drag printout cooler mount. Start by constructing a central body composed of three overlapping shapes: a 34mm x 31mm x 10mm rectangular block centered at [0, 16, 5], a 15mm x 32mm x 10mm rectangular block centered at [0, 47, 5], and an 18-sided polygonal cylinder with a diameter of 15mm and a height of ...
use<MCAD/nuts_and_bolts.scad> translate([0,-40,0]){ difference(){ union(){ translate ([0,16,5]) cube (size = [34,31,10],center = true); translate ([0,47,5]) cube (size = [15,32,10],center = true); translate ([0,63.5,5]) rotate ([0,0,0]) cylinder (h=10,d=15,center= true,$fn=18); translate ([0,30,5]) rotate ...
glb/cad_908f4d603f75.glb
Create a fan adapter for a printout cooler. Start by constructing a base plate that is a square with a side length of 64mm and a thickness of 2mm, with rounded corners using a 3mm radius. At the center of this base, create a circular opening with a diameter of 66mm. From this base, build a conical transition that exte...
fns=18; fnf=72; px40=10; py40=-10; translate ([0,0,0]){ difference(){ union(){ translate([0,0,1]) minkowski(){ cube(size = [64,64,1],center = true); cylinder(h=1,r=3,center = true,$fn=fns); } translate([px40,py40,31]) minkowski(){ cube(size = [36,36,1],center = true); cylinder(h=1,r=2,center =...
glb/cad_0339694b5e58.glb
Create a Sculpfun S9 Air Assist nozzle. Start with a main cylindrical body 32mm in diameter and 18mm high, with a wall thickness of 1mm. Extend this body downwards with a protective skirt that is 17mm high and 32mm in diameter. Inside the main body, place a central core cylinder 21mm in diameter and 18mm high. Above th...
bodyDiam = 32; bodyWall = 1; bodyHeight = 18; coreDiam = 21; ringOuterDiam = 17; ringInnerDiam = 11; ringGrooveDepth = 1.5; cavityDiam = 8; cavityOffsetZ = 6; boreDiam = 2; nozzleDiam = 6; nozzleHeight = 17; skirtHeight = 17; airPipeDiam = 4.3; ventQty = 8; BIG = 1000; $fn = 100; module body() { difference() ...
glb/cad_a6e4a6b1af1c.glb
Create a snap-in mount for a mobile phone. Start with a flat rectangular backplate measuring 74.5mm by 142mm with a thickness of 3mm. At each of the four corners of the backplate, construct a vertical edge bumper. Each bumper is formed by two intersecting walls, each 15mm wide and 3mm thick, with a total height of 17...
phone_height = 8; phone_width =68.5; phone_length = 133; thickness = 3; edge_length = 15; edge_thickness = 3; edge_r = 3; edge_fn = 16; edge_snap_in_height = phone_height+edge_r+thickness; edge_rotate_cut = 45; edge_top_cut_offset = 2.5; edge_cut_tilted_offset =0; x_off = 0; y_off = 0; z_off = 0; width = phone_widt...
glb/cad_311800942d11.glb
Create a Customizable Telescope Stick consisting of 2 concentric cylindrical segments. The innermost segment has a base radius of 8mm and a height of 120mm. Each segment wall has a thickness of 2mm. The segments are designed to nest. The inner segment is a hollow tube with a 1mm thick bottom cap. At its top end, creat...
R_BASE = 8.0; H_BASE = 120.0; N_BASE = 2; T_BASE = 2; H_BOTTOM = 1; R_CORNER = 0.3; A_LOCK = 20; H_LOCK = 10; O_LOCK = 10; N_LOCK = 3; T_LOCK = 1; A_LATCH = 8; H_LATCH = 3; T_LATCH = 0.6; E_START_LATCH = 1; H_INNER_THREAD = 20; P_INNER_THREAD = 2; D_INNER_THREAD = 0.4; H_OUTER_THREAD = 0; P_OUTER_THR...
glb/cad_9a9a2a4cff1d.glb
Create a 9V Battery Cap consisting of a rectangular base and a protective outer shroud. Start with a solid rectangular base measuring 26.25mm in length, 17mm in width, and 3.5mm in height. Within this base, create two hollow cylindrical holes to accommodate the battery terminals. The first hole, for the negative termin...
include <common_lib.scad> $fn = 50; top_length = 26.25; top_width = 17; plus_od = 5.8; plus_id = 4.2; minus_od = 8.6; minus_id = 5.44; minus_x = 6.6; minus_y = top_width / 2; plus_x = top_length - minus_x; plus_y = minus_y; terminal_height = 3.5; total_height = 5; thickness = 1; module minus() { translate([m...
glb/cad_38f3c0091c9b.glb
Create a 9V Battery Cap by starting with a rectangular base measuring 26.25mm in length, 17mm in width, and 3.5mm in height. Carve a thin relief slot 1mm wide through the center of the base along the width. On the top surface, create two hollow cylindrical studs. Position the first stud at x=6.6mm with an outer diamete...
include <common_lib.scad> $fn = 50; top_length = 26.25; top_width = 17; plus_od = 5.8; plus_id = 4.2; minus_od = 8.6; minus_id = 5.44; minus_x = 6.6; minus_y = top_width / 2; plus_x = top_length - minus_x; plus_y = minus_y; terminal_height = 3.5; thickness = 1; module minus() { translate([minus_x, minus_y, t...
glb/cad_4b1c5ba758b2.glb
Create a Cat Eye Tube VU meter mount by designing a thin, circular disc. Start with a main cylinder that has a diameter of 70mm and a height of 3mm, centered on the origin. Apply a small 3mm spherical fillet or rounding to all edges of this disc. To create the central opening, remove a smaller cylinder from the center ...
difference () { union() { difference() { union(){ minkowski(){ cylinder(h=3, d=70, center=true, $fn=100); sphere(d=3, $fa=5, $fs=0.1); } } translate(v = [0, 0, -2.5]) { cube([100,100,5],center=true); } } cylinder...
glb/cad_e754bb17e78b.glb
Create a YK42 Buckle consisting of two interlocking parts: a plug and a socket. The plug is a rectangular block with a width of 60mm and a height of 8mm. Its top and bottom edges are chamfered. A central rectangular cavity is removed from the plug to create a catch mechanism, and a slot is cut through the body to all...
fabricWidth = 60; fabricThk = 3; THK = 4; clr = 0.3; overlap = 0.7; spring = 2; part = "Print"; shoulder = 4; chamferTB = THK/2; chamferLR = THK; XBuckleBlock = fabricThk+THK*2; YBuckleBlock = fabricWidth+THK*2; ZBuckleBlock = THK*2; buttonX = THK; buttonXPosition = XBuckleBlock; buttonY = buttonX*2+clr; ZCatc...
glb/cad_fec651ff2646.glb
Create a Stainless Steel Ice Cube Case designed to hold eight cubes in a 4x2 grid. The overall outer dimensions of the case are 116.8mm in width, 58.4mm in depth, and 33.2mm in height, with all exterior corners rounded to a 4mm radius. The main body is a hollowed-out shell with 2mm thick walls. Inside, create eight re...
isTop = true; cube_size = 27.2; x_number = 4; y_number = 2; wall_size = 2; cube_round = 4; module roundedcube(size = [ 1, 1, 1 ], center = false, radius = 0.5, apply_to = "all") { size = (size[0] == undef) ? [ size, size, size ] : size; translate_min = radius; translate_xmax = size[0] - radius; tran...
glb/cad_a6e48cb42577.glb
Create a button with spring arms designed to act as a face for a circuit board switch. Start by creating a main cylindrical body with a diameter of 20mm, a top height of 3mm, and a bottom height of 2mm. The bottom of the cylinder should be hollowed out with an inner diameter of 16mm to a depth of 1mm. In the center of ...
use <buttons_2d.scad> $fn=40; O_Diam = 20; Shell_Thk = 2; Top_Hight = 3; Bot_Hight = 2; Top_Thick = 4; Center_Post = true; Post_Diam = 5; Post_Depth = 0; Bubble_Fl = false; Delta_H = 2; RadFrac = .9; Mount_dr = .5; Mount_D = 3.5; Mount_H = 2; Arm_Off = 1; Arm_Thk = 2; Arm_Ang = 90; ArmPhase = 0...
glb/cad_b0fd8aa0a7e1.glb
Create a Business Card and Cable Hive organizer consisting of a grid of hexagonal cells. Arrange the cells in a 4x5 grid (4 slots in the X direction and 5 in the Y direction). Each hexagonal cell should have an outer diameter of 42mm and a height of 120mm. The walls of the hexagons should be thin, specifically 1.2mm (c...
$fn = 6; nb_slots_X = 4; nb_slots_Y = 5; cable_slot_height = 120; cable_slot_lower_height = 120; cable_slot_diameter = 42; nozzle = 0.4; nb_of_outer_shell = 3; margin_to_have_correct_number_of_lines = 0.01; punch_corner_hole_count = 4; punch_corner_w = 8; punch_corner_h = 4; drillholeDiameter=8; countersunkDiamete...
glb/cad_9fdf2b8cff20.glb
Create an IC Tray with a total height of 9.5mm and a depth of 40mm. The main body is a rectangular container with a wall thickness of 1mm and a floor height of 1mm. The total width is determined by five internal rails, each 6mm wide, separated by margins of 3mm between rails and 1.5mm on the outer sides. Inside the co...
depth = 40; total_height = 9.5; floor_height = 1; wall_thickness = 1; side_margin = 1.5; short_margin = 1; rail_thickness = 6; rail_height = 2; handle_straight_height = 1.5; handle_height = 2.5; handle_length = 10; handle_overhang = 1; handle_tolerance = 0.1; handle_height_adjust = 0.2; count = 5; handle_prism_...
glb/cad_f5dcd8c8458d.glb
Create an adhesive mount base for a car DVR. Start with a rectangular base plate measuring 55mm in height, 40mm in width, and 4mm in thickness. The top edges of the base should be rounded with a 1mm radius. On top of this base, center two identical vertical mounting walls. Each wall should be 18mm tall, 16mm wide, and...
$fs = 0.01; module roundedcube(size = [1, 1, 1], center = false, radius = 0.5, apply_to = "all") { size = (size[0] == undef) ? [size, size, size] : size; translate_min = radius; translate_xmax = size[0] - radius; translate_ymax = size[1] - radius; translate_zmax = size[2] - radius; diameter = radius * 2; mo...
glb/cad_5718865b12a8.glb
Create an adhesive mount base for a car DVR. Start with a rectangular base plate measuring 55mm in height, 40mm in width, and 4mm in thickness. The top edges of the base should be rounded with a 1mm radius. On top of this base, center two identical vertical mounting walls. Each wall should be 18mm tall, 16mm wide, and...
$fs = 0.01; module roundedcube(size = [1, 1, 1], center = false, radius = 0.5, apply_to = "all") { size = (size[0] == undef) ? [size, size, size] : size; translate_min = radius; translate_xmax = size[0] - radius; translate_ymax = size[1] - radius; translate_zmax = size[2] - radius; diameter = radius * 2; mo...
glb/cad_1d14db8a2150.glb
Create a Dual Line Sign consisting of a rectangular base plate with four lines of embossed text. Start by creating a rounded rectangular plate measuring 94mm wide, 47mm high, and 3mm thick, with corner radii of 4mm. Subtract four circular holes with a radius of 2mm each, positioned symmetrically at the corners. The h...
use <MCAD/boxes.scad> TopLineText = "Top Line"; MidLine1Text = "Upper Middle"; MidLine2Text = "Lower Middle"; BottomLineText = "Bottom Line"; fontTop="Liberation Sans"; styleTop="Bold"; fontstyleTop = str(fontTop,":",styleTop); fontsizeTop=6; TopY = 20; letter_spacingTop = 1; letterspacingTop ...
glb/cad_5040af611539.glb
Create a base plate for an automatic MIDI music box as a rectangular block measuring 180mm in length, 130mm in width, and 5mm in height. Within this plate, carve out a grid of 27 rectangular holes to accommodate servos. The grid consists of three parallel rows of nine holes each. Each hole is a composite cutout consi...
$fn = 30; dVis = 1.9; showServo = 3; module servo0() { cube([12.5,23,20], center = true); translate ([0,0,-4.8]) cube([12.7,23.2,5], center = true); translate ([0,27.5/2,0]) cylinder( d=dVis, h = 40, center = true); translate ([0,-27.5/2,0]) cylinder( d=dVis, h = 40, center = true); translate ([100,...
glb/cad_ff109c1889f6.glb
Create a rectangular plate for an automatic MIDI music box punchboard with overall dimensions of 60mm in width, 69.99mm in depth, and 5.5mm in height. On the top surface, engrave the text "AEROPIC" in a bold sans-serif font with a size of 5mm and a depth of 0.7mm, positioned at coordinates (45, 50) and rotated 90 deg...
yOffset = 5.5 ; cardWidth = 69.99 ; module printNote( y) {translate([0,yOffset-0.1+2*y,0]) cube([60,1.3,1.3]); } *color("red") cube([32, yOffset, 2]); *color("red")translate ([0,70-yOffset,0.2])cube([50, yOffset, 2]); difference (){ cube([60, cardWidth, 5.5]); #translate ([45,50,4.8]) rotate([0,0,-90])l...
glb/cad_be1511baa48f.glb
Create a chassis for an automatic MIDI music box by starting with a solid rectangular block measuring 44mm wide, 25mm deep, and 23mm high. Hollow out the center of the block by removing a rectangular volume 24mm wide, 26mm deep, and 23mm high, centered horizontally and shifted 8.5mm upward along the Z-axis. Cut a wid...
difference() { cube([44,25,13+10],center = true); translate([0,0,8.5]) cube([24,26,13+10],center = true); translate([0,11-17.5,8.5]) cube([33,3,13+10],center = true); translate([16,-3,0]) cube([3,4,25],center = true); translate([-16,-3,0]) cube([3,4,25],center = true); # translate([-0,-3,-10]) ...
glb/cad_d8070a9e2046.glb
Create a 3D model of a 4th order Sierpinski curve. Start by constructing a 2D polygon based on the 4th order Sierpinski curve path, which is a complex, recursive geometric line that fills a square area. Extrude this 2D shape along the Z-axis to a height of 5mm to create a solid plate. The resulting object should be a s...
fudge = 0.1; module poly_polygon7(h) { scale([25.4/90, -25.4/90, 1]) union() { linear_extrude(height=h) polygon([[-318.750000,329.375000],[-308.125000,318.750000],[-286.875000,318.750000],[-276.250000,329.375000],[-265.625000,318.750000],[-276.250000,308.125000],[-276.250000,286.875000],[-265.625000,276....
glb/cad_3e6213f8d20a.glb
Create a Portabee rear cooling fan mount. Start with a base rectangular plate measuring 42mm by 25mm with a thickness of 3mm, positioned from x=2 to x=42. In this base, create three circular holes with a radius of 1.8mm: one centered at x=5.5, y=3.5, z=1.5; another at x=38, y=3.5, z=1.5; and a larger circular cutout wi...
difference() { union() { difference() { translate([2,0,0]) cube([40,25,3]); translate([5.5,3.5,1.5]) cylinder(h = 5, r=1.8, center = true, $fs=.01); translate([5.5+32.5,3.5,1.5]) cylinder(h = 5, r=1.8, center = true, $fs=.01); translate([22,-14,1.5]) cylinder(h = 5, r=21, center = true, $fs=.01); } ...
glb/cad_a5765ac089dd.glb
Create a honeycomb box consisting of a grid of hexagonal cells. Each individual cell is formed by creating a hexagonal prism with an outer diameter of 44.8mm (measured from flat to flat) and a height of 40mm, then removing a concentric hexagonal prism from the center with a diameter of 43.2mm (flat to flat) to leave a ...
module rBox(size, radius, fn) { cube(size - [2*radius,0,0], true); cube(size - [0,2*radius,0], true); for (x = [radius-size[0]/2, -radius+size[0]/2], y = [radius-size[1]/2, -radius+size[1]/2]) { translate([x,y,0]) cylinder(r=radius, h=size[2], center=true, $fn=fn); } } module tCU(t,c){ translate(t)cube(c,tru...
glb/cad_ae7bd49a543f.glb
Create a honeycomb box consisting of a grid of hexagonal cells. Each individual cell is formed by the space between two concentric regular hexagons with a wall thickness of 0.76mm. The outer hexagon of a single cell has a diameter of 60.22mm (measured from opposite vertices), and the inner hexagon has a diameter of 57....
module rBox(size, radius, fn) { cube(size - [2*radius,0,0], true); cube(size - [0,2*radius,0], true); for (x = [radius-size[0]/2, -radius+size[0]/2], y = [radius-size[1]/2, -radius+size[1]/2]) { translate([x,y,0]) cylinder(r=radius, h=size[2], center=true, $fn=fn); } } module tCU(t,c){ translate(t)cube(c,tru...
glb/cad_e4cab75bc8e5.glb
Create a pill box insert for a full-size mint tin. The overall footprint of the insert is a rectangular block measuring 93mm in length, 58mm in width, and 20.3mm in height. Construct a grid of thin walls, each 1mm thick. Create five vertical dividers spaced equally along the length of the x-axis, and three horizontal...
size_x = 93.0; size_y = 58.0; size_z = 20.3; ridge = 1.7; div_x = 5; div_y = 3; thickness = 1; module walls() { union() { for (i = [1:div_x-1]) { translate([i*(size_x / div_x), 0, 0]) cube([thickness, size_y, size_z]); } for (j = [1:div_y-1]) { translate([0, j*(size_y / div_y), 0]) cube([size_x, ...
glb/cad_c1aad1c89e10.glb
Create a festival bottle cap keychain by constructing a hollow cylinder with an outer diameter of 34mm and an inner diameter of 30mm, and a total height of 14mm. Ensure the walls are smooth and circular. At the bottom of this main ring, integrate a solid circular base with a diameter of 30mm and a thickness of 2mm that...
difference(){ cylinder(h=14, d=34, center=true, $fn=100); cylinder(h=14, d=30, center=true, $fn=100); } translate(v = [0,0,-6]) { cylinder(h=2, d=30, center=true, $fn=100); } difference(){ translate(v = [0,-17,-4]) { difference(){ cylinder(h=6, d=10, center=true, $fn=100); ...
glb/cad_67428da66acb.glb
Create a control horn for an R/C plane. Start with a base rectangular block that is 20mm wide, 10mm deep, and 5mm thick. Extend this base into a tapered arm that widens as it moves away from the base. The arm's overall profile is formed by the convex hull of a series of circles and the base rectangle. Along the cente...
module horn(thickness=5,width=20,height=10, dia=5, holes = 6, base = 10) { fn = 100; w1 = width / 2; linear_extrude(height = thickness, center = true, convexity = 10, twist = 0) difference() { hull() { for(v = [height : dia*3 : height + dia * (holes - 1) * 3 ]) { translate([wi...
glb/cad_8aaeef99cfbe.glb
Create a Frame Box with an articulated lid. The box is a rectangular prism with external dimensions of 50mm x 50mm x 30mm and a wall thickness of 3mm. Construct six rectangular panels: a bottom, top, front, back, left, and right. Each panel should have a 6.5mm wide frame border. Within this border, create a window cu...
$fn=30; $EC = .3; Round_Edges = false; Hinged_Top = false; Hinged_Front = false; x = 50; y = 50; z = 30; NTx = 4; NTy = 4; NTz = 4; Thk = 3; Frame_Wid = 6.5; Frame_Inset = 1.5; Inset_Depth = 1; Emb_Ena = true; Emb_Txt = "Place On Yellow"; Emb_Size = 2; Emb_x = 0; Emb_y = .9; Emb_Dep = .2; Isolate ...
glb/cad_8c0bbcd1daa7.glb
Create a shock mount for a desktop microphone consisting of two separate ring-shaped components: a base and a tray. First, construct the base. Create a thin disc with a diameter of 85mm and a thickness of 3mm, with a concentric circular hole in the center measuring 50mm in diameter. Around the outer edge of this disc...
base_diameter=85; base_hole_diameter=50; base_height = 18; tray_diameter=85; tray_hole_diameter=40; tray_height = 8; hook_width=10; hook_thickness=5; slit_depth = 2; slit_width = 1.5; thickness = 3; $fn=64; translate([(base_diameter/2+2)*cos(45), (base_diameter/2+2)*sin(45), 0]) unit(base_diameter, base_hole_diame...
glb/cad_c6d9bf1563b3.glb
Create a Fibonacci Ball ornament by starting with a hollow spherical shell with an inner radius of 30mm and an outer radius of 34mm. On the outer surface of this shell, place a series of 315 small pyramid-like protrusions. Each protrusion is a four-sided pyramid (a cone with 4 facets) with a height of 4mm. Position the...
ball_size = 30; squares_size = 4; twist_factor = 360; fixation_position = 43; fixation_size = 5; PHI = (1+sqrt(5))/2; difference() { sphere(ball_size+squares_size); sphere(ball_size); for (i = [-150:164]) rotate([0,0,i*twist_factor/PHI]) rotate([exp(i/120)*45,0,0]) translate([0,0,ball_size]) cylinde...
glb/cad_24d1f3bd44ee.glb
Create a repair bracket for a linen closet rod. Start by constructing a square hollow sleeve with an outer width and height of 14.8mm and a total length of 23.2mm. The center of this sleeve should be a cylindrical hole with a radius of 6.7mm and a depth of 22mm. To this main body, attach three identical triangular re...
r_innnen = 13.4/2; len_stange = 22; wall = 1.2; $fn = 60; cons = 2; versteifung = 9; module holder() { b = (r_innnen + wall) * 2; difference() { translate([-b/2, -b/2, 0]) cube([b, b, len_stange + wall]); translate([0, 0, -0.001]) cylinder(h = len_stange, r = r_innnen); } } module dreieck...
glb/cad_68855be1f8ec.glb
Create a higher foot for a couch table by starting with a square base plate measuring 60mm by 60mm with a thickness of 3mm. In this base plate, place four circular holes, each 5mm in diameter, positioned 25mm from each edge to create a symmetrical 50mm spacing between them. Centered on this base, construct a vertical c...
d_loch = 5; kante = 60; lochabstand = 50; hoehe = 105; dicke = 3; multx = [-1, -1, 1, 1]; multy = [-1, 1, -1, 1]; difference() { $fn = 30; translate([-kante/2, -kante/2], 0) cube([kante, kante, dicke]); for (i = [0:3]) { translate([multx[i]*lochabstand/2, multy[i]*lochabstand/2, 0]) { ...
glb/cad_701db7dac994.glb
Create an Emoji Lamp base by starting with a thin cylinder 20.5mm in diameter and 0.3mm thick. From this solid disk, remove several patterns of small holes to create a face. First, carve out a large circular ring of 52 holes, each 0.521mm in diameter, arranged in a circle with a radius of 9mm. Next, create a mouth by...
height=0.3; difference(){ translate([0,0,height/2]) { cylinder(h=height, d=20.5, center=true, $fn=100); } union (){ pathRadius=9; num=52; for (i=[1:num]) { translate([pathRadius*cos(i*(360/num)),pathRadius*sin(i*(360/num)),0]) cylinder(d=0.521,h=heigh...
glb/cad_f86bca90fd89.glb
Create an Emoji Lamp base by starting with a solid cylinder 20.5mm in diameter and 0.25mm thick, centered at the origin. Add a concentric ring on top of this base that is 1.45mm tall with an outer diameter of 20.5mm and an inner hole of 19.9mm, creating a thin-walled outer rim. Carve out several ventilation and decora...
difference() { union(){ height=0.25; cylinder(h=height, d=20.5, center=true, $fn=100); translate(v = [0, 0, 0.6]) { difference(){ cylinder(h=1.45, d=20.5, center=true, $fn=100); cylinder(h=1.45, d=19.9, center=true, $fn=100); } ...
glb/cad_67ccd6384e7d.glb
Create an Emoji Lamp base consisting of two concentric thin-walled cylinders. First, create a ring with an outer diameter of 20.5mm and an inner diameter of 19.9mm, with a height of 1mm, centered on the origin. Directly above this, add a second ring with an outer diameter of 19.9mm and an inner diameter of 19.3mm, with...
difference() { union() { translate(v = [0, 0, 0]) { difference(){ cylinder(h=1., d=20.5, center=true, $fn=100); cylinder(h=1., d=19.9, center=true, $fn=100); } } translate(v = [0, 0, 0.225]) { difference(){ ...
glb/cad_a0f750ff21e6.glb
Create a bathroom sink filter consisting of a central cylindrical column and a wider base disk. Start by creating a central cylinder with a diameter of 10.3mm and a total height of 22mm. Remove a smaller concentric hole with a diameter of 6.3mm running through the entire length of this central cylinder. At the top of t...
D1 = 6.3; D2 = 10.3; D3 = 28; H1 = 10; H2 = 22; T1 = 1.6; T2 = 1.2; NS = 6; CS = true; difference(){ cylinder(H2,D2/2,D2/2,$fn=100); union() { translate([0,0,-1]) cylinder(H2+2, D1/2,D1/2,$fn=200); if(CS) translate([0,0,H2-D2/2]) cylinder(D2/2+1,0,D2/2+1,$fn=100); } } difference(){ cylinde...
glb/cad_8a7756b5ec8c.glb
Create a piano key and treble switch for an accordion. The main body is a rectangular block with a total length of 125.6mm, a width of 20mm, and a height of 10mm. The top surface of the key is not flat; it is angled downward at 3.5 degrees. The front end of the key features a rounded profile with a radius of 20mm. ...
$fn=200; L=125.6; W=20; H=10; R=20; RD=1; TT=2; SCd=1; type=0; P=0.4; BKw=6; BKl=82; BA=3.5; WT=2; lc=R-sqrt(pow(R,2)-pow(W/2,2)); lt=L-lc; key_base(); key_end(); module key_base() { color([0.8,0.8,0.8]) difference() { minkowski() { difference() { c...
glb/cad_f72e1f922b3a.glb
Create a piano key and treble switch for an accordion. The main body is a block with a width of 18mm, a length of 37mm, and a height of 14.5mm. The overall shape is a modified prism with rounded corners of 2mm radius. The back height is 14.2mm and the front height is 9.3mm. The back is angled at 25 degrees and the fron...
$fn=200; R=2; W=18; L=37; H=14.5; HB=14.2+0; HF=9.3+0; FA=5; BA=25; TA=10; p1=[0,0]; p2=[L-2*R,0]; p3=[L-2*R-(HB-2*R)*tan(BA),(HB-2*R)]; p4=[(HF-2*R)*tan(FA),HF-2*R]; ps=[p1,p2,p3,p4]; difference() { color([1.0,1.0,1.0]) minkowski() { translate([R,W-R,R]) rotate(a=90,v=[1,0,0]) l...
glb/cad_c219f66ff03c.glb
Create a Lego Heart plate by combining a semi-circular base with a rectangular section. Start with a cylinder of radius 7.5mm and height 5mm, centered on the origin. Cut this cylinder in half along the x-axis by removing the right side with a cube of 16mm width and 16mm depth. Attach a rectangular block of 15mm width, ...
size = 15; height = 5; module half(){ difference(){ cylinder(r=size/2,h=height,$fn=50, center=true); translate([(size+1)/2,0,0]) cube([size + 1, size + 1,height + 1],center = true); } } module plate(){ union() { half(); translate([0,-size/2,-height/2]) cube([size,size,height]); } } knob_diameter = 4; k...
glb/cad_44a6b588e1f7.glb
Create a cylindrical head for an Eggbot with a total height of 45mm and an outer diameter of 23.4mm. Hollow out the center of the cylinder to create a vertical channel. At the top of the cylinder, create a toroidal groove designed to hold an O-ring; this groove should be positioned slightly below the top surface, with ...
$fn=100; FIX=0.01; length=45; headDiameter=23.4; ORing_thickness = 2.65; ORing_innerDiameter = 16; motorShaft_diameter=5 + 0.05; motorShaft_reducedDiameter=4.5 + 0.05; motorShaft_length=12; ORing_outerDiameter = ORing_innerDiameter + 2*ORing_thickness; difference() { cylinder(h=length, d=headDiameter); translate([...
glb/cad_a42848d04a4a.glb
Create an Eggbot robotics mount consisting of three main sections: a hinge system, a motor mount, and a pen holder. First, construct a hinge assembly. Create a central pin with a radius of 2.84mm (6mm minus 0.16mm tolerance) and a height of 43.68mm. Along this pin, place 7 alternating hinge leaves. The first leaf is a...
$fn=120; FIX=0.01; hinge_baseWidth=8; hinge_baseTh=4.4; hingeTol=0.16; hingeSpacing=0.16; hingeRadius=6; hingeLeafLength=4.4; numOfHinges=7; motorShaft_diameter=5 + 0.05; motorShaft_reducedDiameter=4.5 + 0.05; motorShaft_offset=55; motorShaft_length=12; servo_thickness=12.5; servo_length=17.5; servo_armOffset=15.5; ...
glb/cad_86b198c7b7d3.glb
Create a mechanical shaft and head assembly for an Eggbot. Start by creating a base spring plug as a frustum with a height of 6mm, tapering from a bottom diameter of 7.6mm to a top diameter of 8mm. Above this, add a cylindrical shaft with a diameter of 16.1mm and a length of 24mm. On top of the shaft, add a transition ...
$fn=100; FIX = 0.01; ballBearing_innerDiameter = 8; ballBearing_outerDiameter = 22 + 0.2; ballBearing_depth = 7; head_bearingDepthOffset=9; head_bearingConnectorTolerance=2; head_innerDiameter=24; head_thickness=2; shaft_length=24; shaft_transitionLength = 2; shaft_diameter = 16.1; shaftSlider_thickness = 0.6; shaft...
glb/cad_80f94616d342.glb
Create a mechanical head for an Eggbot. Start by constructing a central shaft with a diameter of 7.9mm and a height of 7mm. Above this shaft, add a transition section 2mm in height that tapers outward from the 7.9mm shaft diameter to a diameter of 11.9mm. On top of the transition, place a cylindrical head with a diam...
$fn=100; headLength=9; headDiameter=23.4; ORing_thickness = 2.65; ORing_innerDiameter = 16; ballBearing_innerDiameter = 8-0.1; ballBearing_outerDiameter = 22; ballBearing_depth = 7; shaftLength = ballBearing_depth; shaftTransitionLength = 2; ORing_outerDiameter = ORing_innerDiameter + 2*ORing_thickness; translate([0...
glb/cad_35bc9a70a9a7.glb
Create a 3D model of the Chrichton robot. Start with a base consisting of a 20mm square plate with a 15mm diameter circle integrated into the center, extruded to a height of 5mm with a slight taper. Above the base, place a torso composed of two stacked cylinders: a lower section 13mm in diameter and 5mm high, and an up...
$fn = ($preview)? 20: 60; $EC=.3; Sholder_Ang = 63; Full_Model = true; scale(2) Chrichton(); module Chrichton() { Base(); BasePipes(); translate([0,0,4.99]) Torso(); translate([0,0,35]) { Neck(); if (Full_Model) { NeckTop(); } else { translate([13,-9,-35+1.5*6]) ...
glb/cad_643cfc78eb0c.glb
Create a robot gripper model consisting of a central hub and two symmetrical gripping arms. Start by creating a central cylindrical base with a bottom radius of 5mm, a top radius of 4mm, and a height of 7mm. From this base, extend two identical arm assemblies mirrored across the X-axis. Each arm is composed of a main...
$fn=40; Angle = -10; TwoClaw = false; Hand2(); module Hand2() { Hand1(); if (TwoClaw) rotate([0,90]) Hand1(); translate([0,2.5]) rotate([-90,0]) cylinder(r1=5,r2=4,h=7); } module Hand1() { hand(); PL = 1.5*[[-3,-3.67],[-5,-3.67],[-2,2],[2,2],[5,-3.67],[3,-3.67],[0,-2]]; translate([0,0,-1]) ...
glb/cad_0cefa70d2218.glb
Create a Cellphone Stand consisting of a central hinge and two connected arms. Start with a central hinge cylinder 70mm long with a 10mm diameter. Hollow out the center of this cylinder with a smaller 6mm diameter hole running the full length. Cut two 60-degree wedge sections out of the outer wall of the hinge to allow...
$fn=32; hingeD=10; L=70; H=110; T=2; gap=1; standL=L/2; slotW=18; slotL=8; slotP=H*2/3; ang=60; xtra=T; lh=0.2; space=lh*2; overlap=0.1; module hinge() { difference() { cylinder(h=L,d=hingeD,center=true); cylinder(h=L+overlap*2,d=hingeD-T*2,center=true); hull() for(p=[-space/2,T]) trans...
glb/cad_545dc7a5ded3.glb
Create a Centrefinder tool by designing a solid block 95mm wide, 30mm high, and approximately 18mm thick. The main body is formed by the convex hull of three circles: a central circle with a 12mm diameter and two outer circles with 10mm diameters positioned at the far left and right edges (47.5mm from the center). Wi...
widthOverall = 95; pegDiameter = 10; penBarrelDiameter = 12; baseHeight = 30; module pegHoles(pegDiameter) { linear_extrude(baseHeight) { difference() { hull(){ offset(delta = 3) { circle(d = penBarrelDiameter, $fn = 40); } mirror([widthOverall/-2,0...
glb/cad_48d993897ba6.glb
Create a wide notched arrow nock consisting of a central peg and an outer sleeve. Start by creating a central cylindrical peg with a total length of 15.1 mm. This peg has two sections: a core cylinder with a diameter of 6.0 mm and a slightly larger outer locking cylinder with a diameter of 6.2 mm, both extending to the...
iIDF = 6.0; iDF = 6.2; oDF = 7.0; pLF = 15; nLF = 5; nWF = oDF - 0; nDF = nWF; halfB = true; fNI = 100; lPNI = 12; oF = .1; hNSF = 1; module rounderM(x, h){ union(){ translate([0, 0, (h-x/2)/2]) cube([x, x, h-x/2], center=true); translate([0, 0, h - x/2]) rotate([90, 0, 0]) translate(...
glb/cad_53f7c9bde549.glb
Create a wide notched arrow nock by combining a central peg and an outer notched cylinder. Start with a central peg consisting of two stacked cylinders: a base cylinder with a diameter of 6.1mm and a height of 15.1mm, topped by a slightly wider locking cylinder with a diameter of 6.25mm and the same height of 15.1mm. ...
iIDF = 6.1; iDF = 6.25; oDF = 7.3; pLF = 15; nLF = 7; nWF = oDF - 1; nDF = 3*nWF/2; halfB = true; fNI = 100; lPNI = 12; oF = .1; module nockM(iIDF, iDF, oDF, pLF, nLF, nWF, nDF, fNI, lPNI, oF){ cylinder(r = iIDF/2, h = pLF + oF, $fn = fNI); cylinder(r = iDF/2, h = pLF + oF, $fn = lPNI); difference(){ ...
glb/cad_0b87c28eb56d.glb
Create four identical standoff spacers arranged in a row. Each spacer is a smooth cylinder with an outer diameter of 10mm and a height of 6mm. Centered through the vertical axis of each cylinder, create a circular hole with a diameter of 4.2mm that passes completely through the height of the part. Position the four spa...
epsilon = 0.01; height = 6; diameter = 10; boltdiam = 4; clear = 0.2; gap = 0.1; howmany = 4; $fa=.01; $fs=0.1; offsetx = -diameter*howmany/2+diameter/2; for (count = [0:1:howmany-1]) { translate ([offsetx+(count*diameter)+(gap*count),0,0]) makeone (); } module makeone () { difference() { cylinder (...
glb/cad_68aeea216c48.glb
Create a drawer rail with a total width of 0.9mm, a height of 1.6mm, and a depth of 26.3mm. The main body is a rectangular slab with semi-cylindrical caps of 0.8mm diameter at both ends of the depth axis. Along the top surface, place three small cylindrical nubs with a radius of 0.35mm and a height of 0.6mm; the first ...
width = 0.9; height = 1.6; depth = 26.3; nubHeight = 0.6; nubRadius = 0.35; nubOffset = 0.35; nubDistance = 12.8; nubCount = 3; holeRadius1 = 0.2; holeRadius2 = 0.5; holeOffset = 2.5; holeCount = 3; holeDistance = 9.4; difference() { union() { translate([0, 0.5*height, 0]) cube([height, depth...
glb/cad_d55be16bd375.glb
Create a basic printable spool holder socket. Start by creating a rectangular block with a total length of 22mm, a width of 13mm, and a height of 13mm. Inside this block, center a vertical cylindrical hole with a diameter of 9mm and a depth of 18mm, leaving a 2mm thick wall at the bottom of the hole to create a blind s...
ROD_DIAMETER = 9; WALL_THICKNESS = 2; SOCKET_HOLE_LENGTH = 2 * ROD_DIAMETER; BLIND_LENGTH = WALL_THICKNESS; socket_length = SOCKET_HOLE_LENGTH + BLIND_LENGTH; socket_width = ROD_DIAMETER + 2 * WALL_THICKNESS; module socket () { l = - socket_length ; w = socket_width / 2.0; rotate ([90,0,0]) difference() { tran...
glb/cad_7eddb47df6d4.glb
Create a doorstopper by constructing a solid shape that blends a circular base into a rectangular extension. Start with a cylinder 40mm in diameter and 7mm high. From this base, extend a rectangular section to create a total overall length of 100mm, maintaining the 7mm thickness. To ensure a smooth transition between t...
diameter_outside = 40; diameter_inside = 30; max_thickness = 7; min_thickness = 0.2; overall_length = 100; $fn = $preview ? 25 : 200; difference() { hull(){ cylinder(d1=diameter_outside, d2=diameter_outside, h=max_thickness, center=false); rotate([90,0,0]) translate([overall_length,0,-diameter_inside/2])...
glb/cad_7f5611ac31b3.glb
Create a coffee grinder catch tray with a rectangular footprint and rounded corners. The main body is a hollow container with an outer width of 124mm (115mm plus two 4.5mm walls) and a depth of 95mm. The total height is 100mm, consisting of a 20mm base and an 80mm tall wall section. The walls are 4.5mm thick. All four...
z_base=20; z_height=80; x_in=115; y_in=95; wall=4.5; angle=12; detail=128; module fillet(r,h) { translate([r / 2,r / 2,0]) difference() { cube([r + 0.01,r + 0.01,h],center = true); translate([r/2,r/2,0]) cylinder(r = r,h = h + 1,center = true,$fn=detail); } }...
glb/cad_cb9cae7c4d81.glb
Create a Bush Guide Router OF1010 consisting of a wide circular base plate and a central raised ring. Start with a base cylinder 74mm in diameter and 2.1mm thick. Centered on this plate, add a vertical cylinder with an outer diameter of 30mm and a height of 9mm. Create a central hole through both the base plate and t...
d = 30; plr = 74/2; plh = 2.1; ringh = 9; $fa=1; $fs=0.4; union (){ difference () { union(){ cylinder (r=plr, h=plh); cylinder (d=d, h=ringh); } translate ([0,0,-1]) difference (){ cylinder (r=plr-10, h=plh+2); cylinder (r=d/2+4, h=plh+2); } translate ([0,0,-1]) cylinder (r=d/2-1, h=ringh+2); ...
glb/cad_b82ee7d569fa.glb
Create a Benchdog parametric tool consisting of a cylindrical head and a neck. Start by creating a cylindrical head with a height of 5mm and a constant radius of 12.5mm. Attached to the bottom of this head, create a cylindrical neck with a total length of 18mm and a radius of 9.9mm. Through the center of the entire a...
benchdog = 20; epsilon = 0.1; hals = 18; kopf_h = 5; kopf_r1 = 12.5; kopf_r2 = 12.5; gewinde = true; loch_r1 = 6; loch_r2 = 6; schnitt = true; schnitt_l = -0.5; $fa=1; $fs=0.4; benchdog_r = benchdog/2-epsilon; use <threads.scad>; difference(){ union(){ cylinder (h=kopf_h, r1=kopf_r1, r2=kopf_r2); ...
glb/cad_e714aab950a1.glb
Create a Saw Cut Waste Side jig by starting with a base rounded rectangular plate measuring 80mm in length, 50mm in width, and 2mm in height, with corner radii of 5mm. Carve two rectangular holes out of this base, both with 5mm corner radii. The first hole should be centered horizontally at 20mm from the left edge, mea...
saege = 2.2; laenge = 80; breite = 50; hoehe = 2; epsilon = 0.01; use <MCAD/boxes.scad> $fa=1; $fs=0.4; union() { difference (){ translate ([laenge/2, breite/2, hoehe/2]) roundedBox([laenge,breite,hoehe], 5, true); translate ([laenge/4+saege, breite/2+saege/6, hoehe/2-epsilon]) roundedBox ([laeng...
glb/cad_641956f23d55.glb
Create a 3D model of a Futaba S3004 servo motor. Start with a central rectangular body measuring 40.1mm in length, 19.9mm in width, and 36mm in height. On opposite ends of the body, centered along the length, add two mounting flanges. Each flange is a rectangular block measuring 7.4mm by 17.8mm with a thickness of 2....
$fn=36; bX=40.1; bY=19.9; bZ=36; fX=7.4; fY=17.8; fZ=2.55; flangeFromB=26.4; fBoltDia=4.5; fBoltRad=fBoltDia/2; fScrewDia=2.1; fScrewRad=fScrewDia/2; fScrewPilot=fScrewRad*.5; fScrewY=1.7; fScrewX=0.9; fScrewZ=7.0; shaftDia=6; shaftRad=shaftDia/2; shaftZ=6; shaftX=7.3+shaftRad; shaftS1=14.4/2; shaftS2=11.4/2; shaf...
glb/cad_75db2e5df483.glb