Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a circuit board holder box. Start by creating a main outer rectangular shell with a width of 74mm, a depth of 56mm, and a height of 15mm. The walls should be thick enough to enclose a board of 70mm by 52mm. Hollow out the center of the box to create a cavity that matches the board dimensions, leaving a base an...
$fn = 30; wallHeigth = 15; boardHeight = 5; boardDepth = 52; boardWidth = 70; depth = boardDepth + 4; width = boardWidth + 4; difference(){ difference(){ box5(); cube([width,depth,wallHeigth], center=true); } color("blue") translate([0,0,-11]) cube(size=[width+16,depth+10,20], center=true); } module box5()...
glb/cad_08ba6620a5cd.glb
Create a Platonic Solid Vertex connector for an icosahedron. The part is designed to join five rods, each with a diameter of 20.32mm (5/16" rod scaled by 1.04). Start by creating a central hub that is a cylinder with a radius of 50mm and a height of approximately 40mm. From this hub, extend five cylindrical holes wit...
phi = 1.61803399; m = 0.1; $fn = 18; diameter = 5/16*25.4*1.04; radius = diameter/2; thickness = ((radius*phi)-radius)*phi; rodbaselength = 12*25.4; rodlength = 12*25.4; length = 10+ 10*((rodlength-rodbaselength)/(rodbaselength*phi)); echo(length); tetra = 0; cube = 1; octa = 2; dodeca = 3; icosa = 4; platonic...
glb/cad_fb48ab2cddad.glb
Create an extruder light holder. Start by creating a central rectangular block that is 36.12mm wide, 36.12mm deep, and 46mm high. From the top center of this block, remove a cylindrical volume with a diameter of 6.12mm and a height of 25mm. Around the top of the block, create a mounting structure. Position two cylinde...
use <Teile/Batterie mit Schalter.scad>; $fn = 180; lightHolder(); tolDraw = 0.05; tolFit = 0.6; tolPlay = 2*tolFit; module lightHolder() { hExtruder = 46; lExtruder = 36+tolPlay; width = 6+6; thick = 2; var = "A"; difference() { union() { translate([0,0,15])...
glb/cad_486c015edd7c.glb
Create a Gimbal Spinner mount with a height of 12mm. Start with a central rectangular block that is 66mm long (60mm gimbal distance plus 6mm thickness) and 45mm wide. Carve out the interior to create a throat with a width clearance of 33mm. At the two opposite ends of the long axis, create pivot points by removing ma...
GimbalDistance = 60; PivotThroat = 33; PivotDia = 6; Thickness = 6; Ht = 12; iresPiv = 12; iresBig = 188; iresSmall = 64; iresRnd = 24; PivRad = PivotDia / 2; Thk2 = Thickness / 2; G2 = GimbalDistance / 2; Piv_Y = G2 - Thk2 - .01; Len = GimbalDistance + Thickness; Wid = PivRad + PivotThroat + Thickness + 9 + ...
glb/cad_ef45a7a467c0.glb
Create a Magnetic Catch Holder enclosure. Start with a main rectangular block measuring 47mm in length, 22mm in width, and 11mm in height. Hollow out the center to create a shell with a wall thickness of 1mm. On the bottom face, center a rectangular cutout measuring 25mm by 21mm with a depth of 10mm to accommodate a ...
cl=47; cw=22; ch=11; ew=9; ml=25; mw=21; mh=10; shl=10; shd=4; wt=1; xw=0.4; module screwHoles(){ hull(){ translate([ew/2,-xw,(cw+shl-shd)/2]) rotate([-90,0,0]) cylinder(r=shd/2, h=ch+xw, $fn=20); translate([ew/2,-xw,(cw-shl+shd)/2]) ...
glb/cad_acf8176c9ce5.glb
Create a Magnetic Catch Holder by starting with a solid rectangular block measuring 48mm in length, 20mm in depth, and 20mm in height. Center the block on the origin. Remove a rectangular slot from the top face that is 8mm wide, 6mm high, and 4mm deep, ensuring it is perfectly centered. Additionally, create two circula...
hs=38; lh=20; ll=hs+10; hd=5; mw=8; mh=6; md=4; ld=20; xw=0.4; difference(){ cube([ll,ld,lh], center=true); for(i=[-hs/2,hs/2]){ translate([i,0,0]) rotate([90,0,0]) cylinder(d=hd, h=lh+xw, $fn=30, center=true); } #translate([0,0,lh/2-md/2]) cube([mw+xw*2,mh+xw*2,md+xw], center=tr...
glb/cad_5dc99ad90d13.glb
Create an HDD/SSD Caddy designed to hold two drives. Start by constructing a main rectangular tray with outer dimensions of 102mm width, 100mm length, and 20mm height. The walls and base of this tray should have a uniform thickness of 2mm. Create a large rectangular opening in the base of the tray measuring 71mm by 80m...
$fn=36; w1=102; h1=20; l1=100; th1=2; hole_r=1.5; ide_side_hole_distance=42; ide_base_hole_distance=45; ide_base_hole_distance_from_edge=4.5; ssd_w1=71; ssd_side_hole_distance=77; module tray(){ difference(){ cube([w1,l1,h1]); translate([th1,0,th1]) cube([w1-th1-th1,l1,h1]); translate([0,10,th1]) cube([w1,15,...
glb/cad_e2d14182a244.glb
Create a parametric USB memory stick holder by starting with a solid rectangular block measuring 25mm wide, 75mm long, and 9mm high. Into the top face of this block, carve five identical rectangular slots arranged in a single column. Each slot must measure 12mm wide by 4.5mm long and 7mm deep. Position the slots so the...
module deviceBlock() { cols = 1; rows = 5; spacingX = 25; spacingY = 15; slotSizeX = 12; slotSizeY = 4.5; slotSizeZ = 7; floorThickness = 2; blockSizeX = spacingX* (cols); blockSizeY = spacingY * (rows); blockSizeZ = slotSizeZ + floorThickness; difference() { cube(size = [blockSizeX, blockSizeY, bl...
glb/cad_304b931fce03.glb
Create a Filament Bend Prevention Cone by constructing a truncated cone with a height of 6mm, a base radius of 8mm, and a top radius of 1.5mm. The outer surface should be defined by 40 facets. Centered vertically through the middle of this cone, remove a cylindrical hole with a radius of 1mm that extends through the en...
r1=8; r2=1.5; r3=1; h=6; difference(){ cylinder(r1=r1,r2=r2,h=h,$fn=40); translate([0,0,-0.05]) cylinder(r=r3,h=h+0.1,$fn=40); }
glb/cad_361bded3e07f.glb
Create a switch cover for a surface-mounted box with overall dimensions of 55mm width and 101mm height. The main body is a rectangular plate with rounded corners of 8mm radius. The plate has a total thickness of 7mm above the box surface, but it features a recessed central panel 35mm wide that is 1.5mm deep to accommod...
width = 55; height = 101; corner_radius = 8; box_wall_thickness = 2; clearance_inside_box = 0.5; plate_thickness_above_box = 7; plate_depth_into_box = 3; plate_wall_thickness = 2; chamfer_width = 3; switch_hole_width = 12; switch_hole_height = 25; screw_hole_dia = 4; screw_chamfer_dia = 8; screw_chamfer_angle = 53; scr...
glb/cad_471a7772dd70.glb
Create a Filament Watch base and wheel assembly. Start by constructing a rectangular base housing with a wall thickness of 2.4mm. The housing must accommodate a rotary encoder with a main body diameter of 38.5mm and a height of 35.5mm, and a narrower section of 20.5mm diameter and 4.7mm height. Within the base, create...
encoder_dia1 = 38.5; encoder_height1 = 35.5; encoder_dia2 = 20.5; encoder_height2 = 4.7; shaft_round_dia = 6.4; shaft_round_length = 2; shaft_d_dia = 5.8; shaft_d_length = 10; wheel_margin = 1; wheel_washer_thickness = 2; wheel_washer_dia = shaft_round_dia + 1; wheel_main_thickness = shaft_d_length; wheel_outer_d...
glb/cad_d596e7231595.glb
Create a Reprap Okazaki belt bracket. Start by forming the main body from two joined rectangular blocks: one measuring 20mm wide, 17mm deep, and 4mm high, and a second block measuring 20mm wide, 4mm deep, and 10mm high attached to the side to create an L-shaped profile. Cut a central hole through the top surface usin...
tooth=1.8; difference() { union(){ translate([-10,0,0]) cube([20,17,4]); translate([-10,-4,0]) cube([20,4,10]); } translate([0,0,3]) belt (); translate([-1,11,-.1]) cylinder(r=2.3, h=5); translate([-1.5,8.7,-.1]) cube([3,4.6,5]); translate([1,11,-.1]) cylinder(r=2.3, h=5); } module belt() { translate([-10.1,-.1,0]) ...
glb/cad_21ecbe68e6fb.glb
Create a Reprap Okazaki bushing adapter by starting with a cylinder that has a height of 23mm, a radius of 7.75mm, and a 20-sided polygonal cross-section. From this main body, remove a central hole with a diameter of 10.1mm and a height of 25mm, centered vertically and horizontally. Additionally, remove four rectangula...
include <configuration.scad> module igus_adapter(){ difference(){ cylinder(h = 23, r=15.5/2, $fn=20); translate(v=[0,0,-1]) polyhole(10.1, 25); translate(v=[5+7,0,13]) cube(size = [10,0.1,27], center=true); translate(v=[-5-7,0,13]) cube(size = [10,0.1,27], center=true); translate(v=[0,5+7,13]) cube(size = [0.1,10...
glb/cad_192ecd23048b.glb
Create a symmetric Z-coupling for a 3D printer. Start with a base shape formed by the intersection of a 30mm x 27mm x 8mm rectangular block and a cylinder centered on the block's footprint with a radius of approximately 15.58mm. From this base, remove four vertical holes to accommodate bolts and nuts. Place two hexag...
module coupling(x=30,y=27,z=8,s=8,m=7) { difference() { intersection() { cube([x,y,z]); translate([x/2,y/2,0]) cylinder(h=z, r=sqrt(pow(x/2,2)+pow(max(s,m)/2+((y-max(s,m))/12),2)),$fn=40); } translate([x/4,y/4,-.05]) cylinder(h=3, r=4.47, $fn=6); translate([x*3/4,y/4,-.05]) cylinder(h=3, r=4.47, $fn...
glb/cad_4e2fc036f7b6.glb
Create a belt guide for a 3D printer. Start with a base plate consisting of a central rectangle 12mm wide, 51mm long, and 2mm thick, with semi-circular ends of 6mm radius centered at each end of the length, creating a pill-shaped footprint. At each end of this base, centered on the semi-circles, add a cylindrical boss ...
space=31.2; difference(){ union(){ translate([-6,-10,0]) cube ([12,51,2]); translate([0,-10,0]) cylinder (r=6, h=2, $fn=16); translate([0,41,0]) cylinder (r=6, h=2, $fn=16); translate([0,0,3.5]) cylinder (r=3.9, h=7.7, $fn=16); translate([0,space,3.5]) cylinder (r=3.9, h=7.7, $fn=16); translate([0,0,2]) cylinder (r...
glb/cad_1029a7ae44e8.glb
Create a Reprap Okazaki X-end idler mount. Start by constructing a base vertical plate that is 40mm wide, 40mm tall, and 7.5mm thick, centered on the X-axis. On top of this plate, add two horizontal rectangular arms extending outward to create a C-shaped bracket. The first arm is 25.5mm long, 7mm wide, and 4.4mm thick,...
include <configuration.scad> corection = 1.17; use <x-end.scad> support_beam_offset=(linear==true) ? 6:0; module xendidler(linear){ xend(true,linear); translate(v = [0, 0, 12.5]){ mirror(){ difference(){ union(){ translate(v = [21, -21.5, 25.3]) cube(size = [25.5,7,4.4], center = true); transla...
glb/cad_4ca561cf746a.glb
Create a Reprap Okazaki X-end motor mount. Start by constructing a mirrored X-end bracket. Attached to this, create a motor mount for a NEMA 17 motor with a thickness of 9mm. The motor mount consists of a central plate with a width and hole spacing of 30.48mm (1.2 * 25.4mm). Incorporate a support structure with a dia...
include <configuration.scad> corection = 1.17; use <x-end.scad> difference (){ union () { mirror() xend(true,linear); translate(v = [0, 0, 0]) positioned_motor_mount(); } positioned_motor_mount_holes(); } translate([-5,-30,2])scale([2,1,2]) rotate(a=[90,0,0]) linear_extrude(file = "this-way-up.dxf", la...
glb/cad_9e115a97e9f1.glb
Create a Reprap Okazaki bed mount. Start with a base block 15mm wide, 16mm high, and 15mm deep. Attached to the top of this block, add a second rectangular section 12mm wide, 7mm high, and 15mm deep, positioned so it extends from the side. On the end of this upper section, center a cylinder with a radius of 9mm and a h...
lift=16; difference(){ union(){ translate([-1,0,0]) cube([15,lift,15]); translate([-1,lift,0]) cube([12,7,15]); translate([12,lift,0]) rotate([0,0,0]) cylinder(r=9, h=15); } translate([12,lift,-.1]) rotate([0,0,0]) cylinder(r=4.9, h=25.1); translate([3,-1.8,7.5]) rotate([-90,0,0]) cylinder(r=2.4, h=25.1); translat...
glb/cad_42fb6c8bf025.glb
Create a Reprap Okazaki x-carriage bushing holder. Start with a main rectangular block 65.7mm wide, 20mm deep, and 25mm high, centered on the X-axis. Extend this block by adding a second rectangular section 69.7mm wide, 18mm deep, and 25mm high, offset by 2mm from the front and side edges. At the far left and right edg...
railsize=9.8; module holder() { difference(){ union(){ translate([-32.85,0,0]) cube([65.7,20,25]); translate([-34.85,2,0]) cube([69.7,18,25]); translate([-32.86,2,0]) cylinder(r=2, h=25, $fn=10); translate([32.86,2,0]) cylinder(r=2, h=25, $fn=10); } translate([-10,-.1,12.5]) rotate([-90,0,0]) cylinder(r=2.5, h=25.2...
glb/cad_77a8b3d88aa6.glb
Create a belt clip for a Reprap printer. Start with a base rectangular block 32mm wide, 6mm deep, and 13mm high, centered on the X-axis. Add a vertical rectangular pillar 3mm wide, 25mm deep, and 13mm high, positioned at X= -4.5mm and Y= 6mm. Add a third rectangular section 3.3mm wide, 10mm deep, and 13mm high, positio...
belt=29; thick=1.05; difference(){ union(){ translate([-16,0,0]) cube ([32,6,13]); translate([-4.5,6,0]) cube ([3,25,13]); translate([0,0,0]) cube ([3.3,belt,13]); translate([3.3+2*thick,belt-10,0]) cube ([3.3,10,13]); translate([3.3+thick,belt,0]) cylinder (r=3.3+thick, h=13, $fn=10); } translate([-10,-.1,6.5])...
glb/cad_e92490b5dc05.glb
Create a Reprap Okazaki bed rail bushing by starting with a solid rectangular block measuring 40mm wide, 52mm deep, and 21mm high. Center this block on the X-axis so it spans from -20mm to 20mm. Remove a horizontal cylindrical hole with a radius of 6.55mm and a length of 52.2mm, passing through the center of the bloc...
rail=9; difference(){ union(){ translate([-20,0,0]) cube([40,52,21]); } translate([0,-.1,rail]) rotate([-90,0,0]) cylinder(r=6.55, h=52.2); translate([-14,6,-.1]) rotate([0,0,0]) cylinder(r=2.5, h=26); translate([14,6,-.1]) rotate([0,0,0]) cylinder(r=2.5, h=26); translate([-14,46,-.1]) rotate([0,0,0]) cylinder(r=2...
glb/cad_7f9b8f575e04.glb
Create a danger sign consisting of a base plate and a raised emblem. Start by creating a rectangular base plate measuring 260mm wide, 240mm deep, and 1mm thick. Centered on this base, construct a raised triangular border with a height of 10mm. The outer boundary of this border is an equilateral triangle with a base of ...
module danger(){ linear_extrude( height = 10, center=false, convexity = 10, twist = 0, $fn = 10) polygon(points = [[120,230],[0,0],[260,0],[150,230],[140,240],[130,240],[120,210],[20,20],[30,10],[230,10],[240,20],[150,210],[140,220],[130,220],[120,190],[40,40],[40,30],[50,20],[210,20],[220,30],[220,40],[150,190],[140,2...
glb/cad_8c6d2993cbf4.glb
Create a geared bowden extruder base. Start with a rectangular main body that is 8mm high. The body consists of a primary block and an extended mounting section. On the mounting section, create a large central cutout shaped as a hull between two circles of 24mm diameter to accommodate a stepper motor. Within this are...
b608_8 = 8; b608_ytter = 22; b608_h = 7; b625_d = 16+ 0.3; b625_h = 5.5; f_h = 8+8.5; f_off = 7.5/2; nema_screw_d = 3.3; nema_screw_dist = 31; tube_d = 4; mk8_big = 10; mk8 = 9.2; mk8_small = 7.5; base_h = 8; module b608() { difference() { cylinder(d=b608_ytter, h=b608...
glb/cad_17a51fde9545.glb
Create a geared Bowden extruder for MK8 components. Start with a main body that includes a base height of 8mm. Integrate a NEMA stepper motor mounting pattern with a screw distance of 31mm and mounting holes of 3.3mm diameter. Incorporate a geared system with a ratio of 3.54. Create a central housing for a 22mm outer...
b608_8 = 8; b608_ytter = 22; b608_h = 7; b625_d = 16+ 0.3; b625_h = 5.5; f_h = 8+8.5; f_off = 7.5/2+2/4; nema_screw_d = 3.3; nema_screw_dist = 31; tube_d = 4; mk8_big = 10; mk8 = 9.2; mk8_small = 7.5; base_h = 8; module b608() { difference() { cylinder(d=b608_ytter, h=...
glb/cad_b15ccd433c70.glb
Create a Valex drill adapter for a CNC mount. Start by creating a hexagonal prism with a height of 16mm and a flat-to-flat diameter of 22mm. Inside this prism, create a central cylindrical hole with a diameter of 24mm that extends 2mm deep from the bottom face. From the top of the model, create a conical void that tr...
module valex() { include <Nut_Job.scad> ; type = "nut"; facets = 256; nut_type = "normal"; nut_diameter = 20*22/22.70; nut_height = 16; nut_thread_outer_diameter = 19.5; nut_thread_step = 2; nut_step_shape_degrees = 45; nut_resolution = 0.5; } nutx = 34*26/2...
glb/cad_f4549ed44663.glb
Create a Digital Micrometer fast-clamp mounting consisting of three distinct parts: a clip, a link, and a noose. First, create the clip. Start with a base block 36.8mm wide (external x size) and 10mm high. The interior should be hollowed out to accommodate an aluminum profile, with a central rectangular void 15.5mm wi...
clmp_internal = 27.8; clmp_width = 4.5; clmp_extra = 11.5; clmp_noose = 4; clmp_external = clmp_internal + 2*clmp_width; clmp_clipaxes = clmp_external -1 + clmp_noose; module clip (height = 10, holes = 0, h_pos = 0 ){ adjust_01 = .8; adjust_02 = .4; translate([0, - clmp_internal-clmp_extra-.1,...
glb/cad_bc0caf3871bb.glb
Create a digital micrometer fast-clamp mounting consisting of a main body and a clip. The main body is an L-shaped block with a total length of 69mm (42mm for the long section plus 27mm), a width of 4.5mm, and a height of 18mm. At the end of the long section, create a rounded corner by removing a cylinder with a radius...
use <fast-clamp05.scad>; long = 42; large = 18; clip(large); translate([11,0,0]){cube(size =[27+long,4.5,large]);} translate([36.7,-6,0]) { difference () { cube(size=[6.1,6.1,large]); translate([6.1,0,-1]) { cylinder (h= large+2, r= 6, $fn =28); } } }...
glb/cad_cdc3a8a7c252.glb
Create a front audio box with an external height of 12mm and a wall thickness of 2mm. The main body is a semi-rounded rectangular box with a width of 59mm (55mm internal opening plus two 2mm walls) and a length of 102.5mm. All vertical corners should have a radius of 2mm. The box features a front opening that is 55mm ...
opening_width = 55; wall = 2; front_to_curve = 29; h = 12; minlen = 102.5; $fn = 30; translate([0, 0, h]) rotate([180, 0, 0]) difference() { semiround_box([opening_width + wall*2, max(opening_width + wall + front_to_curve, minlen), h]); if (opening_width + wall + front_to_curve < minlen) { ...
glb/cad_ffc80361a451.glb
Create a Y-mount for an LM8UU linear bearing. Start with a main rectangular block that has rounded corners with a radius of 5mm. The overall dimensions of this holder are 21.7mm wide, 30.7mm long, and 11.8mm high. In the center of the block, create a cylindrical cutout to house the bearing. This cutout should have a d...
include <MCAD/boxes.scad> clearance = 0.7; lm8uu_diameter=15+clearance; lm8uu_length=24+clearance; lm8uu_support_thickness=3; m8_diameter = 9; lm8uu_end_diameter=m8_diameter+1.5; m3_nut_thickness = 2.5; zip_width = 3 + clearance; zip_thickness = 1.5 + clearance; lm8uu_holder_width=lm8uu_diameter+2*lm8uu_support_th...
glb/cad_763ab6e1552a.glb
Create a Q-Tip Cloud storage container consisting of a hollow cloud-shaped base and a matching lid. The cloud geometry is formed by a central rectangular block 75mm wide and 30mm deep, flanked by five cylinders of varying sizes to create a fluffy silhouette: one 15mm radius cylinder at [37.5, 0], one 18.75mm radius at ...
with_cover = 1; qtip_length = 80; total_height = 65; floor_height = 1.5; wall_thickness = 1; xy_size_factor = 0.75; cover_lip_height = 6; cover_fit_buffer = 0.3; $fn = 1*200; cover_lip_thickness = wall_thickness; cover_height = qtip_length - total_height + floor_height; cylinders = [ 20, 50, 0 , 25, 35, 30, ...
glb/cad_8545d7e0049f.glb
Create a Kossel Pro Spool Mount Adapter. Start with a main rectangular base bracket measuring 23mm in depth, 30mm in width, and 30mm in height. Extend this base upward to a total height of 70.8mm. Add two vertical retainer panels, each 23mm deep and 1.5mm thick, positioned at the opposite edges of the width (0mm and 3...
$fn=60; mater_thickness = 3; mater_length = 70.8; mater_width = 30; mater_depth = 23; inset_depth = 1.5; drill_depth = 5; drill_size_side = 3.2; drill_size_front = 4.8; retainer_plate_offset = 1.5; bottom_cutout_amount_y = 7; bottom_cutout_am...
glb/cad_975ebb17100d.glb
Create a Kossel Pro Spool Mount Adapter. Start with a main rectangular base bracket that is 23mm deep, 30mm wide, and 70.8mm long. Add two vertical retainer panels, each 3mm thick and 70.8mm high, positioned at the opposite edges of the 30mm width. Between these panels, incorporate two angled flanges: one rotated -30...
$fn=60; mater_thickness = 3; mater_length = 70.8; mater_width = 30; mater_depth = 23; inset_depth = 1.5; drill_depth = 5; drill_size_side = 3.2; drill_size_front = 4.8; retainer_plate_offset = 1.5; bottom_cutout_amount_y = 7; bottom_cutout_am...
glb/cad_fcb748e1fcce.glb
Create a microscope camera housing consisting of a main tube and a top mounting flange. Start by creating a hollow cylinder with an outer diameter of 22.8mm, a height of 40mm, and a wall thickness of 1.2mm. At the top of this tube, add a circular flange with a diameter of 26.8mm and a thickness of 1.2mm, topped by a so...
tube_dia = 23.0; tube_len = 40.0; camera_side = 8.0; pcb_x = 30.0; pcb_y = 25.2; pcb_h = 3.8; pcb_screw_dia = 2.0; pcb_screw_dist = 23.0 - pcb_screw_dia; screw_hole = pcb_screw_dia - 0.5; screw_len = 8.0; wall = 1.2; tol = 0.2; d = 0.01; difference () { union () { cylinder(r=(tube_dia-tol)/2, h = tube_len...
glb/cad_eaff8f54e80d.glb
Create a customizable 7-segment display module. Start by creating a rectangular base block with a width of 18mm (5mm margin + 3mm segment width * 2 + 8mm segment length) and a height of 24mm (5mm margin + 3mm segment width * 3 + 8mm segment length * 2). The block is composed of several layers: a bottom base of 1mm de...
use <utils/build_plate.scad> use <write/Write.scad> display_margin = 5; display_digit_depth = 1; display_digit_min_layer = 0.3 ; display_digit_height = 1; display_digit_difusser_height = 0; segment_length = 8 ; segment_width = 3 ; led_diameter = 5; led_hole_tightness = 0.2; led_hole_length = 0; led_glue_area...
glb/cad_5ddfc468c7c7.glb
Create a non-working 25mm x 10mm fan model. Start with a square frame measuring 24mm by 24mm with a thickness of 10mm. Center a circular bore with a radius of 10.8mm through the frame, leaving a central hub with a radius of 6.3mm. At each of the four corners of the square frame, place a mounting hole with a radius of...
$fn=64; module fan_25mm_x_10mm() { scale([0.4,0.4,0.4]) fan_60mm_x_25mm(); } mount_hole_radius = 10/2; mount_hole_offset = 23.75; module fan_60mm_x_25mm() { difference() { linear_extrude(height=25, center = true, convexity = 4, twist = 0) difference() { square([60,60],center=true...
glb/cad_4cb1019ea7f1.glb
Create a spool hanger consisting of a horizontal base plate and a vertical rectangular block. Start with a base plate measuring 60mm in length, 20mm in width, and 10mm in height. At the 15mm and 45mm marks along the length, centered width-wise, create two vertical holes. Each hole begins as a 5mm diameter cylinder pass...
union() { difference() { cube([60,20,10]); translate([15,10,5]) cylinder(h=5, r1=2.5, r2=5); translate([45,10,5]) cylinder(h=5, r1=2.5, r2=5); translate([15,10,0]) cylinder(h=10, r=2.5); translate([45,10,0]) cylinder(h=10, r=2.5); } difference(){ translate([20,0,0]) cube([20,180,30]); translate([15...
glb/cad_df31854b35d9.glb
Create a cupboard door knob consisting of a rounded head atop a cylindrical base. The head is a sphere with a radius of 17.5mm, but it is squashed along the vertical axis by a factor of 0.5, resulting in an oblate spheroid. This head is joined to a cylindrical base that has a radius of 5.25mm and a height of 17.5mm. Ce...
$fn=50; xw=0.4; hr=35/2; hhd=3.5; sqf=0.5; difference(){ union(){ rotate_extrude() translate([0,hr*2]) { difference(){ circle(r=hr); translate([-hr-xw,-hr]) square([hr+xw*2,hr*2]); } difference(){ translate([xw,-hr...
glb/cad_1f5364fedd52.glb
Create a cupboard door knob by revolving a specific profile around a central vertical axis. The overall radius of the handle is 17.5mm and its total height is 25mm. The profile to be revolved consists of a circle with a radius of approximately 6.12mm, positioned such that it creates a rounded, bulbous top. This circula...
$fn=50; xw=0.4; hr=35/2; hh=25; hhd=3.5; ecr=hh/(1+3*sqrt(2)/2); ecd=sqrt((ecr*ecr)/2); difference(){ union(){ rotate_extrude() translate([hr-ecr,0]) { difference(){ union(){ translate([0,ecd*3]) circle(r=ecr); translate([-xw*2,0]) square([ecd+xw*2,ecd*3]); } translate([ecd*2,ecd]) circ...
glb/cad_ef360d541b65.glb
Create a cupboard door knob handle with a total length of 110mm, a width of 16.6mm, and a maximum height of 14.8mm. The main body is a symmetrical, elongated shape that is thickest in the center and tapers down toward the ends. The top and bottom edges are rounded with a 0.5mm radius. At the base of the handle, integ...
hl=110; hh=14.8; hhh=12.8; hw=16.6; hld=1; hls=45; hsd=15.8; hsh=14.8; cr=0.5; xw=0.35; translate([0,0,hsh]) difference(){ union(){ minkowski(){ intersection(){ translate([0,0,-hh]) scale([(hl/2)/((hh*2-cr)*cos(30)),1,1]) rotate([90,0,0]) ...
glb/cad_42505522fb81.glb
Create a cupboard door knob consisting of a central vertical cylinder and a decorative outer shell. Start with a central cylinder that has a diameter of 16mm and a total height of 32mm. Around this core, create a revolved profile to form the handle's grip. This profile is defined by three circles, each 16mm in diameter...
cd=16; rang=10; xang=25; hd=4; xw=0.4; bofs=4; $fn=60; difference(){ union(){ translate([0,0,bofs]) rotate_extrude() translate([cd/2,0]) rotate(-rang){ difference(){ union(){ translate([0,cd*0.75]) circle(d=cd); translate([0,cd*1.5]) circle(d=cd); translate([0,0]) circ...
glb/cad_ff9f106c0486.glb
Create a cupboard door handle with a total length of 130mm, a width of 16.6mm, and a height of 14.8mm. The main body should be a flat, elongated bar with a curved top profile that peaks at 14.8mm and tapers slightly toward the ends. Apply a 2mm chamfer to all outer edges to soften the corners. At each end of the hand...
hl=130; hh=14.8; hhh=12.8; hw=16.6; hld=4; hls=95; hsd=15.8; hsh=14.8; cr=2; xw=0.35; rotate([90,0,0]) translate([0,0,hsh]) difference(){ union(){ minkowski(){ union(){ intersection(){ translate([0,0,-hh]) scale([(hl/2)/((hh*2-cr)*c...
glb/cad_bc50ee09bc24.glb
Create a cupboard door handle that is 130mm long, 8mm wide, and 16mm high. The main body should be a flat, elongated slab with a curved top profile that peaks at 16mm in height and tapers down toward the ends. Apply a 2mm chamfer to all outer edges to soften the corners. At each end of the handle, integrate a cylindric...
hl=130; hh=16; hhh=12.8; hw=8; hld=4; hls=95; hsd=15.8; hsh=14.8; cr=2; xw=0.35; rotate([90,0,0]) translate([0,0,hsh]) difference(){ union(){ minkowski(){ union(){ intersection(){ translate([0,0,-hh]) scale([(hl/2)/((hh*2-cr)*cos(30...
glb/cad_02bcf31b8fc4.glb
Create a cupboard door knob by revolving a specific profile around a central vertical axis. The profile begins at the base with a flat circular bottom of 11mm radius. From this base, the shape curves outward and upward to a maximum radius of 20mm, forming a rounded, bulbous grip. The top of the knob is capped with a fl...
hw=3; ph=28; prMax=20; prMin=11; pcHt=28; xw=0.4; bo=4; pi=3.14159; function getcr(bw, bh) = (((bw)/2)*((bw)/2) - bh*bh) / (2*bh) + bh; ca = atan(ph / ((prMax - prMin)*pi)); rc = (prMax + prMin) / 2; rs = rc / cos(ca); function form(t) = (t < 1) ? [(-sin(t * 360) + 1) * (prMax - prMin)/2 + prMin, t*ph ...
glb/cad_0710d0114a6e.glb
Create a container called Three Interlocking Boxes consisting of two identical halves that lock together. Each half is based on a polyhedron with 14 faces (2 hexagons and 12 pentagons), scaled by a factor of 0.9. To construct one half, create the hollowed polyhedron and add six protruding spheres with a radius of 1.7...
s_all = .9; sc1 = 0.85; mark = 1; if (mark==1) difference() { union() { polyhedron(atoms_twice,faces_bottom); add_spheres(b_inner_side_top,atoms_twice,1.75,36); } add_spheres(b_inner_side_bottom,atoms_twice,2,36); } else if (mark==2) scale([1.5,1.5,1]) difference() { union() { polyhedron(atoms_twice,faces_bo...
glb/cad_64018965dc41.glb
Create four hollow calibration cubes of varying sizes, each with an open top, arranged on a flat plane. The first cube is a 10mm cube with a 8.8mm square hole centered inside. The second is a 20mm cube with a 17.6mm square hole centered inside. The third is a 30mm cube with a 26.4mm square hole centered inside. The fou...
xWd = 0.6; c1 = 10; c2 = 20; c3 = 30; c4 = 40; pAd = 0.1; translate([c4-c1,c2-c1,0]) difference(){ cube([c1,c1,c1]); translate([xWd,xWd,-pAd]) cube([c1-2*xWd,c1-2*xWd,c1+2*pAd]); } translate([c4+c1,0,0]) difference(){ cube([c2,c2,c2]); translate([2*xWd,2*xWd,-pAd]) cube([c2-4*xWd,c2-4*xWd,c2+2*pAd]); ...
glb/cad_c920a92e2f7a.glb
Create a drill holder mount by starting with a solid rectangular block measuring 100mm in length, 30mm in width, and 15mm in height. From this base, remove a series of vertical cylindrical holes of varying diameters to create storage slots. Arrange the holes in three parallel rows along the length of the block. In th...
scale(0.5) { translate([-3,0,0]) cube([3,60,50]); translate([200,0,0]) cube([3,60,50]); translate([-3,60,0]) cube([206,3,50]); difference() { cube([200,60,30]); translate([8.5,15,2]) cylinder(38,r=2,$fn=50); translate([22,15,2]) cylinder(38,r=3,$fn=50); translate([39,15,2]) cylinder(38,r=4,$fn=50); translate([8....
glb/cad_5224bc014464.glb
Create a lamp mount for a Flashforge Creator Pro. Start with a main rectangular block that is 40mm long, 30mm wide, and 35mm high. On the base of this block, create two parallel cylindrical holes to hold the lamp posts. These holes should be 6.1mm in diameter and 8.2mm deep, spaced 16mm apart. Around each hole, add a...
use <MCAD/triangles.scad> $fn = 20; LampPostDiameter = 6.1; LampPostHeight = 8.2; LampPostSeparation = 16; LampPostWasherDiameter = 10.7; LampBaseInnerDiameter = 23; LampBaseOuterDiameter = 25.3; BlockThickness = 10; BracketHeight = 35; WallThickness = 3; LampBracketUp(); module PrinterScrew( ScrewThreadDepth = ...
glb/cad_d0d3c1c8f147.glb
Create a cable catcher by starting with a base block 26mm wide, 24mm deep, and 3mm high. The main body is a semi-cylindrical shell with a radius of 12mm and a height of 26mm, centered on the base. Carve a cylindrical hole through the center of this shell with a radius of 4.5mm. Create a rectangular opening or gap 6mm w...
module cable(xpos,ypos,zpos) { $fs=0.35; $fa=1; tol = 0.01; basew = 25/2+1; hole = 9; gap = 6; wall = 3; basel = (hole + wall)*2; sidecurveoff = wall*0.3; sidecurvez = wall*0.9; sidecurveh = basel/2+sidecurvez; sidecurvew = basew/3; difference() { union(){ translate([0 , -basel/2, -wall]) cube([ basew, base...
glb/cad_d09e7e899be1.glb
Create a printable threaded rod and matching nut. For the rod, start with a central cylinder 5mm in radius and 200mm in total height, centered on the origin. Surround this core with a helical thread created by extruding a 5mm by 15mm rectangle along the Z-axis for 100mm in both directions from the center. This extrusio...
module thread() { linear_extrude(height = 100, center = true, convexity = 10, twist = 720,slices = 256) square(size = [5,15],center = true); linear_extrude(height = 100, center = true, convexity = 10, twist = 720,slices = 256) square(size = [15,5],center = true); linear_extrude(height = 100, center = true, convexit...
glb/cad_0b276cde8520.glb
Create a parametric sprinkle nozzle for a watering can. Start by constructing a hollow conical base with a bottom diameter of 130mm and a height of 60mm. The wall thickness of this cone should be 1.5mm. The cone's profile is beveled, tapering upward to meet a cylindrical neck. The neck extends 30mm upward from the top...
cone_dia = 130; cone_len = 60; cone_bevel = 0.53; neck_dia = 25; neck_cone = 1.3; neck_len = 30; wall = 1.5; nozzle_dia = 1.8; nozzle_dist = 12; d = 0.01; wa = cos(atan2(cone_dia/2, cone_len)); wdx = wall/wa; wdz = wa*wall; neck_dia1 = neck_dia; neck_dia2 = neck_dia+neck_cone; module ray(d, a) { translate(...
glb/cad_879aa3486a4f.glb
Create a spool hole reduction adapter. Start by creating a main cylindrical body with a height of 26mm and a radius of 25mm. Add a wider cylindrical flange at the top of this body with a height of 2mm and a radius of 26mm, making the total height 28mm. Remove a central cylindrical core from the entire height of the o...
translate([0,0,5]) { difference(){ union() { difference() { union() { cylinder(h=24,r=25); translate([0,0,24]) cylinder(h=2,r=26); } translate([0,0,13]) { for (i = [0 : 2 : 60] ) { rotate([0, 0, i]) cube(size = [2,56,26], center = true); } for (i = [90 : 2 : 150] ) { rotate([0, 0, i]) cube(size = [2...
glb/cad_d83b831239ba.glb
Create a Magazine Extension Clamp for a shotgun by constructing a curved, hollowed-out mounting bracket. Start with a primary cylinder 35mm high with an outer radius of 16mm and an inner radius of 13mm. To create the open-clamp shape, remove a central rectangular section 31.5mm wide and 1mm thick, centered along the Y-...
difference(){ union(){ cylinder(h=35,r=16,$fn=200); translate([31.5,0,0]) cylinder(h=35,r=13.5,$fn=200); translate([0,-7,0]) cube(size=[31.5,7,35]); } union(){ cylinder(h=35,r=13,$fn=200); translate([31.5,0,0]) cylinder(h=35,r=10.5,$fn=200); translate([0,-0.5,0]) cube(size=[31.5,1,35]); } translate([-22,-15,0]) cube...
glb/cad_e20fbc2a3507.glb
Create a firefighter door chock shaped as a right-triangular prism. The main body should have a length of 102mm, a width of 30mm, and a thickness of 15mm. The top surface slopes linearly from the maximum width of 30mm at one end down to 0mm at the opposite end, creating a wedge profile. At the wide end of the wedge, c...
use <write/Write.scad> L=102*1; W=30*1; HW=15*1; text="329"; label=str(text); hole=3; theta=atan(W/L); center=0*1; h = W*.5; t = 2*1; space =.8*1; rotate=0*1; font = "write/BlackRose.dxf"; difference(){ wedge(L,W,HW); translate([((10+len(label))*L/12)-(len(label)*8),W/8,t*.9])rotate([0,180,0])write(lab...
glb/cad_d51c2c41caf0.glb
Create an Extruder and X Carriage combined unit. Start with a main rectangular block for the extruder body measuring 61mm in width, 30mm in height, and 54mm in depth. Attach a side piece for the motor anti-slippage screw measuring 12mm by 30mm by 25mm. Extend the assembly with a belt clamp arm measuring 80mm by 30mm by...
include <mendel_misc.inc> bearing_clearance_rad=13; filament_rad=1.6; ptfe_rad=9.3; extruder_clamp_thick=30; filament_x_offset=26.497; mounting_offset=extruder_thick-5; filament_oversize=0.5; module filament_cavity() { union () { cylinder(100,filament_rad+filament_oversize,filament_rad+filament_oversize,center=tru...
glb/cad_025b01f0d937.glb
Create a "Do Not Set Yourself on Fire" warning sign by extruding a complex 2D polygon to a height of 5mm. The shape is a stylized, jagged representation of a person engulfed in flames. Construct the profile using the following vertex coordinates in mm: [170,180], [150,170], [150,150], [170,140], [190,150], [190,170],...
linear_extrude( height = 5, center=false, convexity = 10, twist = 0, $fn = 10) polygon(points = [[170,180],[150,170],[150,150],[170,140],[190,150],[190,170],[140,140],[110,140],[100,140],[70,110],[90,90],[110,110],[120,110],[80,70],[80,40],[80,30],[30,30],[30,10],[30,0],[100,0],[110,10],[110,40],[150,40],[150,-10],[180...
glb/cad_f5f337f53499.glb
Create a circular object by combining a cylinder and a spherical cap. Start with a cylinder that has a radius of 33.25mm and a height of 8mm. On top of this cylinder, add a spherical dome created by the intersection of a sphere with a radius of 70mm and a cylinder with a radius of 35mm, positioned so the dome's base me...
R1=35; R2=33.25; H1=15; H2=8; S=4.4; R3=10; Rs=70; $fn=96; difference() { pieno(); vuoto(); } module pieno() { union() { intersection() { translate ([0,0,-Rs+H1]) sphere(Rs); cylinder (r=R1,h=Rs); } translate ([0,0,-H2]) cylinder (r=R2,h=H2); } } R4=R2-R3-S; N=4; module vuoto() { for ( i = [1 :...
glb/cad_66c041b3a0e4.glb
Create a replacement coffee cup handle holder by constructing a hollow vertical cylinder with an outer diameter of 84.8mm, an inner diameter of 82.8mm, and a height of 20mm. Centered on the bottom of this ring, attach a rectangular block that is 20mm wide, 24mm long, and 10mm thick, with rounded corners of 5mm. This bl...
use <MCAD/boxes.scad>; G = 2; W = 10; H = 20; T = 4; DI = 82.8; RH = 2; RI = DI/2 + G/(2*PI); RO = RI + T; translate([0,0,H/2]) difference() { union() { difference() { cylinder(r=RO, h=H, center=true, $fn=100); cylinder(r=RI, h=H+1, cent...
glb/cad_a9157170820b.glb
Create a replacement coffee cup handle consisting of a main vertical cylindrical body and a grip. Start by creating a central cylinder with a height of 100mm and a radius of 25mm. Remove six smaller cylindrical channels, each with a radius of 5mm, spaced evenly every 60 degrees around the central axis of the main cylin...
hh = 100; hr = 25; kr = 5; ch = 21; cw = 21; ct = 9.6; difference() { translate([0,0,hh/2]) { cylinder(r=hr,h=hh,center=true); for (a=[60:60:360]) rotate([0,0,a]) translate([hr,0,0]) cylinder(r=kr,h=hh,center=true); } for (a=[90,270]) rotate([0,0,a]) translate([hr,0,hh/2]) ...
glb/cad_b69d3480cb07.glb
Create a Tesla valve by starting with a solid rectangular block measuring 22.1mm wide, 12.35mm deep, and 122.2mm tall. From this main body, carve out a complex internal channel system to create a one-way valve. The internal void consists of a series of repeating geometric units. Each unit is composed of a central rect...
union() { scale(1.3) difference() { translate([0,0,47]) cube([17,9.5,94],center=true); translate([0,0,122]) rotate([0,180,0]) difference() { union() { union() { union() { union() { union() { union() { union() { union() { union() { union() { union() { union() { union() { union() { union() { translate([0,0,0.0]) rotate([...
glb/cad_ad3c8ebd30a1.glb
Create a wall-mount holder for a round remote by generating a revolved solid based on a specific profile. Start with a 2D polygon with vertices at [0,0], [30.5,0], [37,7], [41,15], [43,25], [35,25], [35,23], [40,23], [39,15], [29.5,2], and [0,2], then rotate this profile 360 degrees around the Z-axis to create a circul...
rotate (a=[270,0,0]){ difference(){ rotate_extrude($fn=200) polygon( points=[[0,0],[30.5,0],[37,7],[41,15],[43,25],[35,25],[35,23],[40,23],[39,15],[35,7],[29.5,2],[0,2]] ); translate([-45,0,0]) cube(size=[90,90,40], center=false); translate([-15,-10,0]) cylinder(h=3, r1=2, r2=5); translate([15,-10,0])...
glb/cad_cf21099f95c8.glb
Create a hose pipe clip consisting of a flat rectangular backing plate and a semi-cylindrical retaining hook. The backing plate should be 40mm wide, 10mm high, and 2mm thick. Position two 2mm diameter screw holes through the plate, each centered 5mm from the left and right edges and aligned with the vertical center of ...
back_width=40; back_height=10; back_depth=2; pipe_diameter = 16; clip_end_offset = 3; screw_hole_diameter = 2; screw_hole_inset = 5; oversize_factor = 1; module back() { difference() { translate (v=[0, -back_depth, 0]) cube (size=[back_width, back_depth,back_height]); translate (v=[screw_hole_inset, oversize...
glb/cad_20b97c08d6ec.glb
Create a protective case for the EFM32 Happy Gecko Starter Kit. Start by constructing a main rectangular box with a width of 64mm, a length of 118mm, and a height of 14mm. The walls of the box should be 1mm thick. Hollow out the center of the box, leaving a base floor thickness of 1.5mm. On the side walls, create four...
margin = 0.2; boxwidth = 64; boxlength = 118; boxheight = 14; boxwall = 1 - margin; facewall = 1.5; pcb_thickness = 1.6; cableoutwidth = 7; cableoutheight = 27; cableout_xoffset=17.5+boxwall; cableout_yoffset=boxlength; cableout_zoffset=facewall+pcb_thickness; miniusb_xoffset = 4.5 + boxwall; miniusb_zoffset = facew...
glb/cad_bd3541e8ac15.glb
Create a spool holder consisting of a circular base and a hollow shaft. Start by creating a cylindrical base with a diameter of 38mm and a height of 5mm. Drill a vertical hole through the center of this base with a diameter of 9mm. On top of this base, add a hollow cylindrical shaft with an outer diameter of 31mm and a...
$fa=2; $fs=0.2; base_dia1 = 38; base_dia2 = 38; base_thick = 6; base_hole = 9.00; base_length = 5; shaft_dia = 31; shaft_thick = 3; shaft_length = 85; cut_width = 10; cut_height = 12; module base() { difference() { cylinder(h=base_length, r1=(base_dia1/2), r2=(base_dia2/2), center=false); translate([0, 0, -1])...
glb/cad_bab01f9be751.glb
Create a dual extruder mount adapter plate with a total thickness of 8mm. The model consists of two overlapping rectangular bases with rounded corners (radius 3mm). The first base is 51mm wide by 64mm high. Centered on this base, create four mounting holes spaced 23mm apart in a square pattern. Each hole must be a thr...
use <MCAD/nuts_and_bolts.scad> $fn = 64; hole_tolerance = 0.6; bolthead_depth = 2; bolthead_diameter = 5.5 + hole_tolerance; carriage_height = 64; carriage_width = 51; plate_width = 75; plate_depth = 6 + bolthead_depth; plate_cut_height = 6.5; plate_cut_width = 6; plate_cut_distance = 13.3; plate_cut_y_offset = 2...
glb/cad_4cb76d07008d.glb
Create an RC hex hub by starting with a hexagonal prism that has a flat-to-flat width of 12mm and a height of 6mm. Center a vertical cylindrical hole with a diameter of 6mm through the entire height of the prism. At the top face of the hexagon, create a chamfered transition that tapers from the 12mm hexagonal outer edg...
include <MCAD/shapes.scad> $fn = 60; hex_size = 12; hex_height = 6; hex_chamfer = 2; chamfer_difference = 1.5; pin_diameter = 2; pin_length = 11; pin_depth = 3; axle_diameter = 6; hex_diagonal = (2*hex_size)/sqrt(3); pin_radius = pin_diameter/2; difference() { union() { difference() { ...
glb/cad_67f0d84cef5c.glb
Create a lingam and yoni sculpture by combining a base, a pillar, and a rounded top. Start with a cubic base measuring 17.5mm in width and depth and 18.2mm in height. Centered on top of this base, add a second geometric volume created by the intersection of a 17.5mm cube and another 17.5mm cube rotated 45 degrees aroun...
union() { cube([17.5,17.5,18.2]); translate([0,0,17.2]) { hull() { intersection() { cube([17.5,17.5,19.2]); translate([8.75,-3.0935,0]) { rotate([0,0,45]) { cube([17.5,17.5,19.2]); } } } } } translate([8.75,8.75,35.4]) { cylinder(r=8.25, h=18, $fn=100); } tra...
glb/cad_a451781e22aa.glb
Create a lingam and yoni sculpture starting with a tiered square base. Construct the foundation as a 60mm cube with a height of 9mm. Stack three additional square layers on top: first, a 51.1mm cube with a height of 8mm; second, a 42.8mm cube with a height of 6.65mm; and third, another 51.1mm cube with a height of 8mm....
difference() { union() { difference() { union() { cube([60,60,9]); translate([4.45,4.45,8]) { cube([51.1,51.1,8]); } translate([8.6,8.6,15]) { cube([42.8,42.8,6.65]); } translate([4.45,4.45,20.65]) { cube([51.1,51.1,8]); } translate([0,0,27.65]) { cube([60,60,9]...
glb/cad_a18af24be14f.glb
Create a Chinese Laser Air Assist mounting bracket. Start with a main vertical cylinder that has an outer diameter of 30mm and a height of 12mm. Extend the bottom of this cylinder with a 3mm thick base disk of the same diameter. Below the main cylinder, create a conical section that transitions from a diameter of 16mm ...
OutsideDia = 30; InsideDia = 26; StraightHeight = 12; LensDia = 26-(5*2); ConeHeight = 28; ConeHole = 8; FanHoleHeight = 15; FanHoleWidth = 20; FanHoleThickness = 2; fn = 120; difference () { union () { translate([0,0,0]) cylinder (d=OutsideDia, h=StraightHeight,$fn=fn); translate([0,0,-3]) cyl...
glb/cad_21883fa414a5.glb
Create a filament bend preventer by starting with a truncated cone that is 6mm tall, with a base radius of 8mm and a top radius of 1.5mm. Use a 40-facet resolution for the circular profiles. Remove a central vertical hole with a radius of 1mm that runs through the entire height of the cone. To create clearance for the ...
r1=8; r2=1.5; r3=1; h=6; r4=6.5; r5=8; clear1=1.5; clear2=0.5; difference(){ cylinder(r1=r1,r2=r2,h=h,$fn=40); translate([0,0,-0.05]) cylinder(r=r3,h=h+0.1,$fn=40); translate([-r4-r3/2,25,clear1+r4]) rotate([90,0,0]) cylinder(r=r4,h=50,$fn=40); translate([r5+r3/2,25,clear2+r5]) rotate([90,0,0]) ...
glb/cad_813968d24ca0.glb
Create a fan duct and sensor mount for an E3Dv6 hot end. Start with a main body consisting of an 8-sided prism (cylinder with 8 facets) with a radius of 22mm and a height of 39mm, centered at [0, 2, 0] relative to the fan offset. Integrate a central rectangular block measuring 32mm x 20mm x 5.6mm. Subtract a central v...
include <configuration.scad>; mountingCircleRadius=14.5; IRBoardBackOffset=11.0; barrel_radius = 11; barrel_height = 26.2; main_height = 39.0; groove_radius = 6.0 + 0.1; groove_height = 6.0 - 0.2; ring_radius = 8; fanVoffset=0; fan_offset = 18; nozzleHeight=58.1; IRflangeThickness=6; IRboardFixingCentres=21.11-2....
glb/cad_09f5867fc5a1.glb
Create a DiskBox external disk enclosure by starting with a rounded box that is 11mm thick, 76mm wide, and 115mm long, with a corner radius of 1mm. Hollow out the center of this box by removing a smaller rounded box measuring 8mm by 72mm by 112mm with a 1mm radius. Inside the main cavity, create two cylindrical holes...
include <MCAD/shapes.scad> module housing () { difference () { roundedBox (11, 76, 115, 1); union () { translate ([0,0,0]) roundedBox (8, 72, 112, 1); rotate ([90,0,0]) translate([0,-115/2+26.5,0])cylinder (r=2, h=78, center = true); rotate ([90,0,0])...
glb/cad_26b50825983c.glb
Create a Parametric Bowden Extruder consisting of a motor base, a support structure, a drive block, and a tensioning arm. Start with a motor base that is a 42mm square prism with a height of 40mm. Centered on the top face, create a cylindrical motor axis with a diameter of 22mm and a height of 2mm, extending a 5mm dia...
position = 0; piece = 0; screwDiameter = 3; smallScrewDiameter = 2.5; pieceThickness = 5; holeThickness = 3; attachmentHeight = 15; attachmentScrewOffset = 50; attachmentReinforcement = 5; stepMotorSide = 42; stepMotorHeight = 40; stepMotorScrewOffset = 31; stepMotorAxisDiameter = 5; stepMotorAxisLength = 24; stepMo...
glb/cad_b92df4d9778b.glb
Create a bridge-free peg by constructing a skeletal frame made of square-profile rods with a thickness of 1.6mm. Start with a rectangular base measuring 5mm by 2mm by 2mm centered at the origin. From the center of the base, extend two rods diagonally upward and outward to points at coordinates (3, 0, 8) and (-3, 0, 10)...
function norm(p) = sqrt(p[0]*p[0] + p[1]*p[1] + p[2]*p[2]); module makeRod(p1,p2,tk=0.8){ translate((p1+p2)/2) rotate([-acos((p2[2]-p1[2]) / norm(p1-p2)),0, -atan2(p2[0]-p1[0],p2[1]-p1[1])]) rotate([0,0,45]) cylinder(r=tk, h=norm(p1-p2), cent...
glb/cad_cdf7e09bb8af.glb
Create a bridge-free peg starting with a central rectangular base measuring 5mm by 4mm by 4mm, centered at the origin. From the origin, extend a 10-sided prismatic rod with a radius of 0.8mm to the point [-3, 0, 10]. From this endpoint, branch two rods of the same radius: one extending to [-3, 1.5, 13] and another to [...
function norm(p) = sqrt(p[0]*p[0] + p[1]*p[1] + p[2]*p[2]); module makeRod(p1,p2,tk=0.8){ translate((p1+p2)/2) rotate([-acos((p2[2]-p1[2]) / norm(p1-p2)),0, -atan2(p2[0]-p1[0],p2[1]-p1[1])]) rotate([0,0,45]) cylinder(r=tk, h=norm(p1-p2), cent...
glb/cad_a331a8a32e6c.glb
Create a Bridge-free peg by constructing a central vertical structure with a thickness of approximately 1.13mm (0.8 * sqrt(2)). Start with a base cube measuring 5mm by 4mm by 4mm, centered at the origin. Above the base, build a vertical profile extruded along the Y-axis. This profile consists of a complex polygon sta...
function norm(p) = sqrt(p[0]*p[0] + p[1]*p[1] + p[2]*p[2]); module makeRod(p1,p2,tk=0.8){ translate((p1+p2)/2) rotate([-acos((p2[2]-p1[2]) / norm(p1-p2)),0, -atan2(p2[0]-p1[0],p2[1]-p1[1])]) rotate([0,0,45]) cylinder(r=tk, h=norm(p1-p2), cent...
glb/cad_d70ac319d537.glb
Create a Bridge-free peg by constructing a vertical assembly centered on a base cube of 5mm x 4mm x 4mm. Above this base, build a complex vertical profile with a thickness of approximately 1.13mm (0.8 * sqrt(2)). The main body is a flat, extruded geometric shape oriented vertically. The profile begins at the bottom w...
function norm(p) = sqrt(p[0]*p[0] + p[1]*p[1] + p[2]*p[2]); module makeRod(p1,p2,tk=0.8){ translate((p1+p2)/2) rotate([-acos((p2[2]-p1[2]) / norm(p1-p2)),0, -atan2(p2[0]-p1[0],p2[1]-p1[1])]) rotate([0,0,45]) cylinder(r=tk, h=norm(p1-p2), cent...
glb/cad_0c35bef866ab.glb
Create a Parametric JHead and Sensor Holder consisting of four primary components. First, create the JHead Support. This is a flat plate 5mm thick. Centered on this plate, create a rectangular block that transitions into a hull connecting two cylinders of 11mm diameter (3mm hole radius + 5mm padding) spaced 32mm apar...
position = 0; piece = 0; ScrewDiameter = 3; SmallScrewDiameter = 2.5; PieceThickness = 5; ScrewDistance = 32; SensorDiameter = 12; SensorHeight = 43; FanDimension = 40; FanScrewDistance = 32; JHeadDiameters = [12, 16, 25]; JHeadDimensions = [3.7, 9.3, 12.3, 18.3, 50.1]; LedRingDiameters = [45, 60]; $fn=60; if(p...
glb/cad_ac49bb42798c.glb
Create a customizable tie clip with a total height of 8mm and a width of 9mm. The main body is a long, thin rectangular frame with a thickness of 3mm. The front section is 60mm long, while the back section is 45mm long. Both ends of the clip are rounded with a radius of 4.5mm. The interior of the clip is hollowed out...
include <write/Write.scad> text="Your Name"; height=1; offset=0; vOff=0; font="write/Orbitron.dxf"; clip_height=8; clip_width=9; clip_thick=3; clip_front_length=60; clip_back_length=45; clip_tooth_spacing=6; clip_tooth_size=1; clip_gap=(clip_width-2*clip_thick); scale([1,1,height]) tie_clip(); translate([offse...
glb/cad_b7c26f52dd3e.glb
Create a fast-clamp fan mount for a 3Drag/K8200 extruder. Start by creating a base block that is 36.8mm wide, 9mm tall, and 12mm deep. The front face of this block should be flat, while the back face is shaped as a semi-cylinder with a radius of 8mm and a height of 9mm, centered along the width. In the center of the t...
use <fast-clamp05.scad>; large = 9; diam = 16; difference() { union() { clip(large); translate([(36.8 - diam)/2 ,4,0]) {cube(size =[diam, diam/2+2.1,large]);} translate([36.8/2 ,4+2+diam/2 ,0]) {cylinder (h= large, r= diam/2, $fn =128);} } #translate([36.8/2 ,4+2+diam/2 ,-1]) {cylinder (h= large+2, r=2)...
glb/cad_5a1ede824905.glb
Create a LED light fast-clamp mount designed to hold a USB plug. Start by creating a main body that is a combination of a clip and a rectangular housing. The housing should be 29mm wide (15.5mm plus 7mm on each side) and 17mm deep, with a height of 9mm. Within this main body, integrate several rectangular blocks: two...
use <fast-clamp05.scad>; usb_x = 15 + 0.5; usb_y = 17; usb_z = 9; large = usb_x + 7+7; difference () { union() { clip(large); translate([6.8,3,0]) {cube(size =[30,usb_z + 1.2, 7]);} translate([6.8,3,large-7]) {cube(size =[30,usb_z+1.2, 7]);} translate([10, 4,7.3]) {cube(size =[1,...
glb/cad_2b949ad7af59.glb
Create a Minecraft Slime Cube by starting with a solid cube that measures 55mm on all sides. On one face of this cube, carve out three rectangular holes to create a face. Position two square holes for the eyes, each measuring 15mm by 15mm, placed 25mm from the bottom and spaced apart; one eye should be 5mm from the lef...
union() { difference() { cube([55,55,55]); translate ([30,-1,4])cube([8,10,8]); translate ([33,-1,25])cube([15,15,15]); translate ([5,-1,25])cube([15,15,15]); } }
glb/cad_526ac15aa457.glb
Create a customizable wire bracket. Start with a rectangular base block that is 10mm deep, 8mm long, and 9mm high. At the center of the block, create a cylindrical cutout with a diameter of 9.2mm to accommodate a wire. This cutout should run through the width of the part. On the side of the block, add a protruding ...
$fn = 0; enable_angledtabs = 1; enable_ledge = 1; clamp_height = 9; clamp_length = 8; clamp_width = 15; clamp_gap_depth = 7; slot_gap = 2; plate_thickness = 8.5; screw_hole_diam = 3.7; screw_hole_depth = 4; screw_recess_diam = 6.1; wiretab_angle = 90; nut_type = 6; wire_diam = 9.2; hinged_pole_clamp( clamp_width=cla...
glb/cad_1a52ef84b2db.glb
Create an end cap for a 3/4" electrical conduit pipe. The main body is a composite of stacked cylinders and a dome. Start with a base cylinder 2mm high with a bottom diameter of 18.5mm tapering up to 21mm. Above this, add a 2mm high cylinder with a constant 21mm diameter, followed by a 0.625mm high transition cylinder ...
ID34=21; Ht=8; M5=6; OD_Cap=21.5; WireHole = 1; CutOff_On = 0; Qty = 4; Cut34=ID34+2; echo(Cut34 = Cut34); Rad34=Cut34/2; Dz1 = Ht - 6.5; $fn=64; module Pipe34() { #translate([0,0,-(25-7.6)]) difference() { cylinder(d=23.5,h=25); translate([0,0,-1]) cylinder(d=ID34,h=27); ...
glb/cad_5d79d0bdac6c.glb
Create a MakerGear M2 rear cable harness guide consisting of two identical, mirrored vertical components. Each component is a composite structure featuring a main body and several rectangular pillars. For one component, create a primary vertical section by extruding a profile to a height of 112mm. Within this structur...
s = 0.23; translate ([30, 0, 0]) { difference () { union () { scale(s) translate([-31.5, -28, 0]) linear_extrude(height = 112.0 / s) { import_dxf(file = "wireguide.dxf"); } translate([3.5, -52.4, 0]) cube([2, 2, 92]); translate([-4.5, -45, 0]) cube([2, 2, 92]); } ...
glb/cad_abb6552186e5.glb
Create a DJI Phantom 3 gimbal mount plate by constructing a thin, flat rectangular base with a thickness of 1.2mm. Within this base, create four circular holes to serve as mounting points. These holes should be arranged in a symmetrical pattern, positioned to match the original gimbal mount specifications. Ensure the h...
fudge = 0.1; module poly_circle3432(h) { scale([25.4/90, -25.4/90, 1]) union() { linear_extrude(height=h) polygon([[-77.303715,-66.094730],[-80.561653,-65.437093],[-83.222288,-63.643592],[-85.016409,-60.983375],[-85.674805,-57.725590],[-85.037604,-54.522105],[-83.222981,-51.806321],[-80.507199,-49.991695...
glb/cad_69d6f9b1138f.glb
Create a DJI Phantom 3 gimbal mount plate. Start by creating a flat, organic, star-like base plate with a thickness of 3mm. The overall shape is a symmetrical, rounded polygon with four primary arms extending from a central hub. In the center of the plate, create a large circular hole. Around this central opening, pos...
use <plate-recess.scad>; fudge = 0.1; module poly_path3367(h) { scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[138.939845,-143.018683],[137.414455,-143.016683],[131.872451,-142.298761],[126.449615,-140.450273],[120.789079,-137.229671],[115.947655,-...
glb/cad_b55226b0c42c.glb
Create a filament sponge holder by starting with a solid cube that is 15mm wide, 15mm deep, and 17mm tall, centered on the origin. Hollow out the center of this cube by removing a smaller internal cube measuring 13mm by 13mm with a height of 17mm, shifted slightly upward by 0.5mm along the Z-axis. Additionally, remove ...
$fn=180; difference() { cube([15,15,17], center=true); cylinder(r=2, h=50, center=true); translate([0,0,0.5]) cube([13,13,17], center=true); }
glb/cad_1d17be6c32ba.glb
Create a Bahtinov mask for a telescope with a main disk diameter of 140mm and a thickness of 2mm. Surround this disk with an outer concentric ring (cap) that has an outer diameter of 149.2mm, an inner diameter of 144.2mm, and a height of 8mm. If required for a central obstruction, add a solid central cylinder with a di...
angle=20; epmask=2; epbouchon=3; douverture=140; focale=1500; bahtinovfactor=150; dintbouchon=144.2; dextbouchon=dintbouchon+2*epbouchon; profbouchon=8; dinttroucentral=0; danneaucentral=54; largfente=(focale/bahtinovfactor)/2; largfils=largfente; suprfentexternes=1; $fn=120; nombredraft=floor(douverture/(largfent...
glb/cad_20c0c6c8b8a3.glb
Create a Bahtinov mask for a telescope. Start by creating a thin circular disk with a diameter of 81mm and a thickness of 2mm. Cut a series of parallel rectangular grooves into this disk. Each groove should be 1.67mm wide, with 1.67mm of solid material remaining between them. Arrange these grooves in three distinct s...
angle=22; tmask=2; tcap=3; daperture=81; focal=500; bahtinovfactor=150; dintcap=104; dextcap=dintcap+2*tcap; heightcap=15; dintcentralhole=0; dcentralring=0; widthgroove=(focal/bahtinovfactor)/2; widthwire=widthgroove; excessgroove=2; $fn=120; numberdraft=floor(daperture/(widthgroove+widthwire)); numbergroove=(flo...
glb/cad_1e59f8280bfd.glb
Create a Bahtinov mask for a telescope with a diameter of 81mm. Start by creating a thin circular disk with a thickness of 2mm and a diameter of 81mm. Surround this disk with a concentric outer ring (cap) that has an inner diameter of 104mm, an outer diameter of 110mm, and a height of 15mm. On the main 81mm disk, cut ...
angle=20; epmask=2; epbouchon=3; douverture=81; focale=535; bahtinovfactor=150; dintbouchon=104; dextbouchon=dintbouchon+2*epbouchon; profbouchon=15; dinttroucentral=0; danneaucentral=0; largfente=(focale/bahtinovfactor)/2; largfils=largfente; suprfentexternes=1; $fn=120; nombredraft=floor(douverture/(largfente+la...
glb/cad_b4543662bcfe.glb
Create a Cherry MX DCS R1 keycap. Start by constructing the main body as a hollowed shell. The outer shape is a hull formed between a square base of 18.1mm width and length with 1.5mm rounded corners, and a smaller top square of 12.37mm width by 14.65mm length, also with 1.5mm rounded corners, positioned at a height of...
bottom_base_width = 18.10; height = 9.39; top_base_width = 12.37; top_base_length = 14.65; connector_dimensions = [4.1, 1.35]; connector_radius = 2.77; connector_height = 4.58; support_height = 1.5; support_depth = 0.5; base_angle = 69.78; base_radius = 1.5; thickness = 1.2; cylinder_radius = 40; $fn = 400; transl...
glb/cad_b6f81372fde7.glb
Create a Vertical Windmill base by constructing a composite cylindrical shape. Start with a main cylinder 38.9mm in diameter and 15.4mm in height. Add a wider, thin disc at the top of this cylinder with a diameter of 40.9mm and a height of 2mm. From this combined volume, remove a central cylindrical hole 22.7mm in diam...
bearing_d = 22.7; bearing_h = 7.7; lil_d = 38.9; big_d = lil_d + 2; big_d_h = 2; shaft_d = 9; res_angle = 2; translate([0,0,bearing_h+big_d_h]) rotate([180,0,0]) difference(){ union(){ cylinder(d=lil_d,h=bearing_h+big_d_h,$fa=res_angle); cylinder(d=big_d,h=big_d_h,$fa=res_angle); } cylin...
glb/cad_c34ee035adae.glb
Create a Vertical Axis Wind Turbine consisting of three identical twisted blades mounted on a circular base. Each blade is generated by extruding a 2D profile—a hull of two circles with radii of 7mm and 1mm, spaced 40mm apart—to a height of 330mm. As the profile extrudes, it must twist 120 degrees and be tilted at a 3-...
big_r=7; lil_r=1; blade_cl = 50; blade_len = 40; blade_aoa = 3; blade_height = 330; blade_rot = 120; blade_slices = 100; num_blades = 3; base_depth = 5; base_d = 60; top_depth = 5; core_d = 8; shaft_d = 8; base_blockout = 40; bearing_d = 29.8; bearing_h = 10; pin_d = 4.2; pin_len = 36; module build_blade(bl_height,b...
glb/cad_f9cd7d2591cd.glb
Create a faceplate for an HF Magloop Antenna tuning capacitor. Start with a rectangular base measuring 146.2mm in width, 55mm in height, and 2mm in thickness. From this base, remove a rectangular cutout measuring 81.5mm by 26.4mm with a depth of 5mm, positioned 4.11mm from the left edge and 9.28mm from the bottom edge....
sr=8.83; T=2; secondpart=30; width=116.2+secondpart; height=55; r=16; mdist=1.95; module mainplate(){ cube([width,height,T]);} module screenplate(){ cube([81.5,26.4,(T+3)]);} module bore(){ cylinder(h=(100),d=sr,center=true);} module pothole(){ cylinder(h=2*T,d=10,center=true);} module fppothole(){ cylinder(h=2*T,...
glb/cad_bf685ae8c8bf.glb
Create a plastic bolt for an HF Magloop Antenna consisting of two coaxial cylinders. First, create a wide, flat cylindrical base with a diameter of 14 mm and a height of 5.3 mm. Centered on top of this base, add a narrower cylindrical shaft with a diameter of 7.4 mm and a total height of 42.2 mm, measured from the bott...
e = 0.9555; module plastibolt(hd_t,hd_diam,rod_diam,rod_len){ cylinder(d=e*hd_diam,h=e*hd_t); cylinder(d=e*rod_diam,h=e*(rod_len+hd_t)); } plastibolt(5.54,14.7,7.73,44.28);
glb/cad_727f885ffea1.glb
Create a tapered sleeve for an HF Magloop Antenna part. Construct a hollow cone with a total height of 50mm, centered on the Z-axis. The outer profile should be a cylinder that tapers from a base radius of 10mm at the bottom to a radius of 3.2mm at the top. To create the interior cavity, remove a concentric cylinder fr...
module hexagon(size, height) { boxWidth = size/1.75; for (r = [-60, 0, 60]) rotate([0,0,r]) cube([boxWidth, size, height], true); } module m8_lock(){ difference(){ translate([0,0,-7]) cylinder(h=(6.25*2),r=10); hexagon((13*1.0806),(6.25*2)); } } dowel_r = (6.40/2); dowel_l = 50; module m8_ta...
glb/cad_573a5b0543a5.glb
Create a bracket for an HF Magloop Antenna pipe. Start with a central cylinder that has a radius of 10mm and a height of 17mm, centered on the origin. Hollow out this cylinder by removing a smaller concentric cylinder with a radius of 5mm and the same 17mm height. To create the mounting wings, remove the bottom half of...
brack_len=80; brack_width=17; brack_rad=5; sr=8.83; T=5; module bore(){ cylinder(h=(100),d=sr,center=true); } module pipe(){ color("Blue",0.4){ rotate([0,0,90]) cylinder(h=50,r=brack_rad-0.5,center=true);} } module bracket(){ difference(){ translate([0,0,1])cube([brack_len,brack_width,T*2],center=true); ...
glb/cad_6abba46bdb62.glb
Create a bracket for an antenna pipe. Start with a central rectangular block 80mm long, 20mm wide, and 10mm thick. In the center of this block, carve out a cylindrical channel with a radius of 11.5mm and a length of 22mm to create a U-shaped cradle. At each end of the 80mm length, create a circular flange with an out...
brack_len=80; brack_width=20; brack_rad=23.0/2; sr=8.83; T=5; module bore(){ cylinder(h=(100),d=sr,center=true); } module pipe(){ color("Blue",0.4){ rotate([0,0,90]) cylinder(h=50,r=brack_rad-0.5,center=true);} } module bracket(){ difference(){ translate([0,0,-T])cube([brack_len,brack_width,T*2+3],center=true...
glb/cad_fcc985df35cb.glb
Create a bracket for an antenna pipe. Start with a central rectangular block measuring 80mm in length, 20mm in width, and 10mm in height, centered on the origin. At the center of this block, remove a cylinder with a radius of 11.5mm and a height of 22mm to create a semi-circular cutout that passes through the width of ...
brack_len=80; brack_width=20; brack_rad=23.0/2; sr=8.83; T=5; module bore(){ cylinder(h=(100),d=sr,center=true); } module pipe(){ color("Blue",0.4){ rotate([0,0,90]) cylinder(h=50,r=brack_rad-0.5,center=true);} } module bracket(){ difference(){ translate([0,0,-T])cube([brack_len,brack_width,T*2+3],center=t...
glb/cad_c9f6804f0b55.glb
Create a square plate for an HF Magloop Antenna capacitor bracket. The plate should be a flat square measuring 110mm by 110mm with a uniform thickness of 5mm. Center the plate on the origin. Drill five circular holes completely through the plate, each with a diameter of 8.83mm. Position one hole exactly in the center o...
sr=8.83; T=5; module bore(){ cylinder(h=(T+2),d=sr,center=true); } module isoplate(){ difference(){ cube([110,110,T],center=true); bore(); translate([45,45,0]) bore(); translate([45,-45,0]) bore(); translate([-45,45,0]) bore(); translate([-45,-45,0]) bore(); } } isoplate();
glb/cad_356f6763f6a1.glb