Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a lens cap consisting of a main circular body and a separate bottom disc. For the main body, start with a base cylinder 3mm high with a bottom radius of 23mm and a top radius of 24mm. Create a central cavity by removing a cylinder with a radius of 22.6mm and a height of 6.7mm, but leave a floor by stopping the r...
difference(){ union(){ cylinder (h=3,r1=23,r2=24,$fn=200); difference(){ cylinder (h=6.7,r=22.6,$fn=200); translate ([0,0,5.7]) cylinder (h=1,r=21,$fn=200); } } union(){ translate([-7,-25,2]) cube(size = [14,50,4.7]); difference(){ cylinder(h=2,r=25,$fn=200); cylinder(h=2,r=20.5,$fn=200); translate([-27,-25,0]) cube(s...
glb/cad_7fbb2c959bfe.glb
Create a lens cap consisting of a main body and a separate lid. For the main body, create a base cylinder with a height of 3.5mm, a bottom radius of 23mm, and a top radius of 24mm. Hollow out the center of this body by removing a cylinder with a radius of 22.6mm and a height of 6.7mm, but leave a 1mm thick floor at the...
difference(){ union(){ cylinder (h=3.5,r1=23,r2=24,$fn=200); difference(){ cylinder (h=6.7,r=22.6,$fn=200); translate ([0,0,5.7]) cylinder (h=1,r=21,$fn=200); } } union(){ translate([-7,-25,2]) cube(size = [14,50,4.7]); difference(){ cylinder(h=2,r=25,$fn=200); cylinder(h=2,r=20.5,$fn=200); translate([-27,-25,0]) cube...
glb/cad_494a3d0f39bb.glb
Create a coffee stencil by starting with a thin circular disk 83mm in diameter and 2mm thick. Attach a small handle to the side of the disk by adding a cylinder 16.6mm in diameter and 2mm thick, centered on the edge of the disk and extending outwards. To complete the handle, add a small rectangular bridge 41.5mm long, ...
Text = "xyz"; Font = "Allerta Stencil"; Spacing = 1.05; Size = 26; Height = 2; Dia = 83; module stencil() { union() { cylinder(d=Dia, h=Height, $fn=100); translate([Dia*0.5,0,Height/2]) cube([Dia*0.5, Dia*0.2, Height], center=true); translate([Dia*0.75,0,0]) cylinder(d=Dia*0.2, h=Heigh...
glb/cad_a6204bb2805f.glb
Create a flexible coupling with a total height of 30mm and an outer diameter of 22mm. The model consists of two solid end blocks and a flexible central core. Each end block is a cylinder 8mm high with an outer diameter of 22mm. The top block has a central hole 8mm in diameter, and the bottom block has a central hole 5...
Outer_diameter = 22; Total_height = 30; Base_height = 8; Num_spiral = 7; Spiral_degree = 90; Upper_shaft_dia = 8; Upper_D = "yes"; Upper_shaft_D_depth = 7.5; Lower_shaft_dia = 5; Lower_D = "yes"; Lower_shaft_D_depth = 4.5; Bolt_diameter = 3.1; Nut_type = "hex"; Nut_diameter = 6.6; Nut_thickness = 2.6...
glb/cad_cb9f36754b56.glb
Create a 3D Reuleaux polygon with a constant width of 10mm and an extrusion thickness of 5mm. To form the base shape, start with an equilateral triangle and replace each straight edge with a circular arc centered on the opposite vertex, such that the distance between any two opposite points on the perimeter is exactly ...
vertices = 3; width = 10; thickness = 5; engrave = "both"; size = 100; depth = 2; $fn = 1000; vertices_ = abs(round(vertices)); text_size = 0.75*width*size/100/len(str(vertices_)); module Reuleaux(num,r) { intersection_for(angle=[0:360/num:360]) { translate([r*cos(angle)/2,r*sin(angle)/2]) ci...
glb/cad_24bc53c3a8c5.glb
Create a PS3 Eye mount consisting of two identical mirrored hooks. For each hook, create a profile with a total height of 40mm (37mm plus a 3mm thickness) and a width of 15mm. The profile should be a C-shaped bracket designed to hang over a material thickness of 6mm. The main body of the hook is 3mm thick. The vertic...
translate([5,0,hook_width/2]) rotate([90,0,0]) ultimakerHook(); mirror([1,0,0]) translate([5,0,hook_width/2]) rotate([90,0,0]) ultimakerHook(); $fs=1; $fa=3; o = 0.02; shortened_dia=41.6; base_dia=52.6; base_height=8; base_rim=3; bottom_thickness=2.5; top_collar_dia=19.5; top_thickness=2; clamp_mount_hole_dia=3.5; ...
glb/cad_cbb3a9d9d1b7.glb
Create a Mic Stand Cord Clip with a width of 8mm. The main body is a flat plate with a thickness of 8mm, featuring two concentric circular cutouts. First, create a primary circular hole with a diameter of 19mm to fit the stand post. Surround this hole with an outer concentric ring that has a diameter of 24mm, maintaini...
post_diameter = 19 ; cord_diameter = 8 ; add_clearance = 0 ; clip_width = 8 ; opening_percent = 0.7 ; min_thickness = 2.5 ; pd = post_diameter ; cd = cord_diameter ; ac = add_clearance ; cw = clip_width ; op = opening_percent ; mt = min_thickness ; opd = pd+mt*2 ; ocd = cd+mt*2 ; pr = pd/2 ; cr = cd/2 ; ol = pd*...
glb/cad_9ac89f66c750.glb
Create a dash mounting clip by starting with a solid rectangular block 54mm wide, 42mm deep, and 24mm high. From this main body, remove a large section to create a C-shaped channel. The void to be removed begins with a rectangular cutout 42mm wide, 38mm deep, and 20mm high, offset 2mm from the left and bottom edges. ...
pad = 0.1; $fn = 100; thickness = 2; module waterfall_dash() { height = 50; width = 200; depth = 38; lip_thickness = 7.3; lip_depth = 6.35; hole_dia = 8; hole_from_edge = 32; hole_depth = 18; difference() { translate([lip_depth,0,0]) union() { cube([width,de...
glb/cad_72660ef2ccc7.glb
Create a dash mounting clip by combining a base clip with a curved mounting arm. First, construct the base clip. Then, create the main mounting arm as a curved segment with a thickness of 2mm. This arm should be formed by taking a cube of 40mm width and 20mm height and removing a cylindrical section to create a curved ...
use <base_mount.scad>; pad = 0.1; $fn = 100; thickness = 2; module arc(width, height, thickness) { translate([width, height,0]) rotate([0,0,180]) difference() { cube([width,width,height]); translate([0,0,-pad]) { cylinder(d=width*2-thickness...
glb/cad_01eae7d6ba6c.glb
Create a Kendo Tsuba, which is a flat circular handguard. Start by creating a main disc with an outer diameter of 78mm and a thickness of 7.5mm. Remove a concentric center hole with a diameter of 32mm to create a ring shape. On the top surface of the ring, add two lines of raised text with a height of 2mm. The first li...
hilt_textL1 = "Rutgers Kendo Club"; hilt_textL3 = "KendoKa Name"; thickness = 7.5; outer_diameter = 78; inner_diameter = 32; use <write/Write.scad> union () { difference () { cylinder(r=outer_diameter/2-thickness/2,h=thickness); translate([0,0,-0.25]) cylinder(r=inner_diameter/2,h=thickness+1);} union () { writec...
glb/cad_16add882c347.glb
Create a sliding door handle consisting of a flat mounting flange and a curved grip. Start with a rectangular flange measuring 12.7mm wide, 76.2mm long, and 6.35mm thick. In this flange, create two countersunk holes centered along the length, spaced 53.34mm apart. Each hole consists of a 4.32mm diameter cylinder passin...
allowance=0.5; screw_spacing=2.11*25.4; screw_diam=0.17*25.4+allowance; screw_countersink_diam=(11/32)/cos(30)*25.4+allowance; screw_countersink_depth=0.125*25.4; flange_thickness=0.25*25.4; flange_width=0.5*25.4; handle_thickness=0.125*25.4; handle_width=0.5*25.4; handle_height=0.75*25.4; handle_length=3*25.4; module ...
glb/cad_7566a76754a9.glb
Create an E3D fan adapter designed for a 40mm fan. Start with a base plate that is a 40mm square with 3mm rounded corners. The plate should have a central circular hole with a diameter of 38mm. Position four screw holes with a diameter of 3.3mm at the corners of the plate to mount the fan. From this base, build a tran...
$fn=100; heatbreak_h=0; fansize=40; fanhole_d=38; fancurve=3; fanscrew=32; fanscrew_d=3.3; length=10; e3d_d=22.7; e3d_h=26; e3d_shiftx=0; e3d_shifty=0; difference(){ union(){ hull(){ translate([fancurve,fancurve,0]) minkowski() { cube([fansize-fancurve*2,fansize-fancurve*2,2]); cylinder(h=2...
glb/cad_0af999e7d277.glb
Create a Primesense Carmine v1.09 Glasses Adapter. Start with a main outer shell that is a rounded rectangular block measuring 134mm in width, 15mm in height, and 28.5mm in depth, with a corner rounding radius of 2mm. Carve out a central rectangular void from the bottom of the shell to accommodate the sensor body, me...
front_window_extent = 114; front_overlap = 10; front_extra_thickness = 1; lens_edge_thickness = 4; lens_width = 20; lens_height = 20; lens_hole_radius = 9; lens_1_center = 28.0; lens_2_center = 76.5; lens_3_center = 103.0; sensor_depth = 24.5; top_thickness = 2; bottom_thickness = 2; sensor_fit_depth = 10.5; round...
glb/cad_9b56e34a60d7.glb
Create a Sewer Deep Sluice tile. Start with a base cube of 50mm x 50mm x 8.51mm. From this base, remove a large central volume to create a recessed interior, leaving a wall thickness of approximately 5.36mm. The interior floor should be flat, but the overall shape is modified by removing several rectangular sections ...
include <../../lib/forge_lib.scad> module negative(d=0) { translate([6,-1,3]) cube([50-12,52,10]); difference() { translate([50,0,3]) cylinder(10,50-6,50-6, $fn=200); translate([50,0,2]) cylinder(12,6,6, $fn=200); } difference() { translate([50,50,3]) cylinder(10,50-6,50-6, $fn=200); ...
glb/cad_e58184f0e3be.glb
Create a Sewer Deep Sluice tile. Start with a main base block measuring 50mm x 50mm x 7.7mm. From this base, remove a large central rectangular volume to create a recessed floor, leaving a perimeter wall. Specifically, remove a block from x=5.36mm, y=-1mm, z=3mm with dimensions 39.28mm x 52mm x 10mm. Add two outer s...
include <../../lib/forge_lib.scad> module negative(d=0) { translate([6,-1,3]) cube([50-12,52,10]); translate([-1,-1,7.7]) cube([52,52,.75]); translate([5.35-d,-.7,3]) cube([39.3+2*d,.75,5]); translate([5.35-d,49.95,3]) cube([39.3+2*d,.75,5]); translate([5.35-d,11,3]) cube([25+2*d,.75,5]); tr...
glb/cad_a6d64401236c.glb
Create a Sewer Deep Sluice tile by starting with a base cube of 50mm x 50mm x 8.51mm. From this base, remove a central square area to create a recessed interior. This interior is defined by removing a 39.3mm x 39.3mm x 5mm square centered on the tile, leaving a border. Additionally, remove four cylindrical sections f...
include <../../lib/forge_lib.scad> module negative(d=0) { translate([6,-1,3]) cube([50-12,52,10]); difference() { translate([0,0,3]) cylinder(10,50-6,50-6, $fn=200); translate([0,0,2]) cylinder(12,6,6, $fn=200); } difference() { translate([50,0,3]) cylinder(10,50-6,50-6, $fn=200); ...
glb/cad_309dfbe344a6.glb
Create a Sewer Deep Sluice terrain tile. Start with a base square of 50mm by 50mm and a height of 7.5mm. At the center of the tile, create a large circular depression with a radius of 10mm and a depth of 5.25mm. Within this depression, create a concentric inner ring by removing a cylinder with a radius of 12mm and a ...
include <../../lib/forge_lib.scad> module smooth_tile() { cube([25,25,7.5]); translate([.325,.325,7.5]) cube([24.35,24.35,2]); } module negative(d=0) { difference() { translate([50,0,3]) cylinder(10,50-6,50-6, $fn=200); translate([50,0,2]) cylinder(12,6,6, $fn=200); } difference() { translate([50...
glb/cad_b2bf71a14a5e.glb
Create a Customizable Slide On PCB Shield designed to house a circuit board. Start by creating a solid rectangular block with a width of 43mm, a length of 43mm, and a height of 10.5mm. From this block, remove a smaller rectangular section to create a hollow interior. This cutout should start 3mm from the front, left,...
pcb_width=40; pcb_length=40; pcb_thickness=1.5; pcb_space=5; extra_supports=0; wall_thickness=3; bottom_thickness=1; inset=1.5; wall_thin=wall_thickness - inset; shield_w = pcb_width + (2 * wall_thin); shield_l = pcb_length + wall_thin; shield_h = pcb_space + bottom_thickness + pcb_thickness + wall_thin; modu...
glb/cad_20dfecf03010.glb
Create a PolyBowl container by constructing three stacked sections based on a five-sided polygon with a radius of 16mm. First, create a solid base by extruding the polygon to a height of 1mm. Next, create the main body starting from the top of the base; extrude the polygon to a height of 50mm, applying a 36-degree twis...
diameter = 32; radius = diameter/2; bodyHeight = 50; baseHeight = 1; rimHeight = 1; sides = 5; thickness = 1.5; bodyTwist = 36; bodyFlare = 1.8; linear_extrude( height = baseHeight ) polyShape( solid="yes" ); translate([0,0,baseHeight]) linear_extrude( height = bodyHeight, twist = bodyTwist, ...
glb/cad_2c904bffea7f.glb
Create a FPV250 replacement leg consisting of a flat main body with two protruding connector joints. The main body is a thin plate 3mm thick, shaped as a modified rectangle with rounded ends. The outer profile is defined by a polygon with vertices at [0, -4], [0, 0], [34, 0], and [34, -4] in the XY plane, with the edge...
refx = [0,3-.15,31+.15,34]; mot_ang = 8; refb = [ for(i = [0:len(refx)-1]) [refx[i], refx[i]*tan(mot_ang)]]; leg = [ refb[0]-[0,4], refb[0], refb[3], refb[3]-[0,4], [20,-65], [5,-65]]; module joint(rot) { intersection() { rotate([-90,90+rot, 0]) linear_extrude(height=20, center...
glb/cad_30d563f4f253.glb
Create a Modern Robotics Sensor to Actobotics mount as a flat square plate measuring 32.75mm by 32.75mm with a total thickness of 5.5mm. At the four corners, create square recessed pockets for nuts. These pockets are 7.3mm wide and 7.3mm deep, centered 12mm from the plate center along both the X and Y axes. Inside ea...
tPlate=2; xActChannelInner=33.75; xActHoleSpacing=19.06; xMriHoleSpacing=24; tNut=3.5; xNut=6.05+1.25; rScrewHole=2.3; rScrewHoleSquare = 2.1; tol=1; difference() { translate([0,0,(tPlate+tNut)/2]) cube([xActChannelInner-tol, xActChannelInner-tol, tPlate+tNut], center=true); for (i=[0:90:360]) { rotate(i) ...
glb/cad_f1f1c8b800d9.glb
Create an Ice Tea Funnel consisting of a hollow conical section and a cylindrical base. Start by creating a large hollow cone with a top diameter of 74mm, a bottom diameter of 17mm, and a height of 40mm, ensuring the wall thickness is 2mm. Below this cone, attach a cylindrical sleeve that extends downwards by 20mm. Thi...
FN = 64; thick = 2.0; EPS = 0.05; funnelSides = FN; funnelHeight = 40.0; funnelDiam = 70.0; funnelTipDiam = 15.0 - thick; funnelTip2Diam = 29; funnelTipHeight = 20.0; module funnel(extra=0, extraHeight=0) { translate([0, 0, funnelTipHeight - EPS]) cylinder(r1 = funnelTipDiam/2 + extra, r2=funnelDiam/2 + extra, h=f...
glb/cad_266b649ea726.glb
Create a Citadel Paint Holder for Customizer by constructing a grid of circular paint bottle slots. Each individual slot is created by taking a cylinder with a radius of 19.3mm and a height of 6.5mm, and removing two concentric cylinders from its center: first, a cylinder with a radius of 17.3mm and a height of 10mm, a...
width=10; height=6; bottle_style="Citadel"; style="Grid"; build_plate_selector = 19; build_plate_manual_x = 100; build_plate_manual_y = 100; build_plate(build_plate_selector,build_plate_manual_x,build_plate_manual_y); $fn=32; width_mm=width*25.4; height_mm=height*25.4; module holder(){ translate([0,0,6.5/2]){ ...
glb/cad_4103bf54e404.glb
Create two identical hollow octahedron sand molds. For each mold, construct a large regular octahedron with a distance of 26mm from the center to each vertex. Inside this, remove a smaller concentric regular octahedron with a distance of 20mm from the center to each vertex. This creates a shell with a uniform wall thic...
inside_radius = 20; thickness=3; translate([inside_radius+2*thickness,0,0]) polyhedron( points=concat(inside_radius*[ [1,0,0],[0,-1,0],[-1,0,0],[0,1,0], [0,0,1] ], (inside_radius+thickness)*[ [1,0,0],[0,-1,0],[-1,0,0],[0,1,0], [0,0,1] ]), faces=[ [0,1,4],[1,2,4],[2,3,4],[3,0,4...
glb/cad_23b56c314d5d.glb
Create a G4 Cube riser by constructing a vertical, curved sleeve with a height of 25mm. Start with a solid cylinder of 22mm radius and 50mm height. Remove a concentric inner cylinder with a radius of 15mm to create a wall thickness of 7mm. Within this sleeve, carve out a middle channel by removing a concentric cylinder...
$fa=1; $fs=0.5; width_exterior = 32; depth_exterior = 196; radius_exterior = 20; height = 25; case_thickness = 5; riser_thickness = 2; radius_riser_exterior = radius_exterior + riser_thickness; radius_interior = radius_exterior - case_thickness; radius_riser_interior = radius_interior - riser_thickness; depth_riser...
glb/cad_d9296528d182.glb
Create a pill connector consisting of a central cylindrical body with two rounded end-caps. The main body is a cylinder with a radius of 8mm and a total length of 35mm. At each end of this cylinder, integrate a specialized profile. This profile is formed by the union of a circle with a radius of 2.4mm, another circle...
use<pill.scad> r=2.4; w=4*7; module v_profile() { t=2*r; s=w/sqrt(2)-r; union() { circle(r); translate([0,s]) circle(r); translate([s,0]) circle(r); translate([-r,0]) square([t,s]); translate([0,-r]) square([s,t]); difference() { square([t,t]);...
glb/cad_c24794ee6108.glb
Create a pill-shaped connector consisting of a central body and a corresponding negative cavity. The main body is a capsule formed by a cylinder with a radius of 7mm and a total height of 28mm, capped at both ends by hemispheres with a vertical radius of 2.1mm. To create the internal structure of the pill, carve out ...
$fs=0.5; t=0; R = 7; l = 4*R; lt = 0.3*R; d = 0.5; n = 2; module pill_sub() { translate([0,0,lt]) difference() { union() { cylinder(r=R-t, h=l-2*lt); scale([1,1,2*lt/R]) sphere(R-t); translate([0,0,l-2*lt]) scale([1,1,2*lt/R]) sphere(R-t); } rotate_extr...
glb/cad_6f4afdc4370e.glb
Create an icosidodecahedron-based pencil holder. The main body is formed by placing 12 five-cusped hypocycloids (star-like shapes) at the positions of the pentagonal faces of an icosidodecahedron. Each hypocycloid should be scaled and rotated to align with the face's orientation, creating a decorative, open-lattice she...
gr = (1 + sqrt(5))/2; rgr = 1/gr; norm2 = 5*gr/sqrt(3-gr); ang2 = 22.23876; ang1 = 60 - ang2; rs6= 32.75; ang3 = 18.8; ang4 = -18.8; ang5 = 36; ang6 = -1; rs62 = 30.; l = 35.5; union() { rotate([0,31.72,0]) union() { decor_524((2+2*gr+rgr)/norm2,-(2+gr)/norm2,0,1,...
glb/cad_0aad70153424.glb
Create a pencil holder based on a truncated dodecahedron. The main body is formed by placing 3-cusp hypocycloids (deltoids) and 10-cusp hypocycloids at the positions of the faces of a truncated dodecahedron. Specifically, place 3-cusp hypocycloids with a radius of 32.75mm and 10-cusp hypocycloids with a radius of 30mm,...
gr = (1 + sqrt(5.))/2.; rgr = 1./gr; gr2 = 2. + gr; grxgr = gr * gr; grx2 = 2.*gr; norm2 = 5*gr/sqrt(3-gr); rs6= 32.75; rs62 = 30.; l = 35.5; ang2 = 22.23876; ang1 = 60 - ang2; ang3 = 0; ang4 = 0; ang5 = 18; ang6 = 18; union() { rotate([0,31....
glb/cad_e514b8d93c93.glb
Create a truncated icosahedron pencil holder. The main body is a hollow shell based on a truncated icosahedron, where the edges are replaced by a series of small spheres and the faces are filled with extruded hypocycloid shapes. Position 60 spheres with a radius of 2.5mm, each with a facet resolution of 12, at the ve...
gr = (1 + sqrt(5.))/2.; rgr = 1./gr; gr2 = 2. + gr; grxgr = gr * gr; grx2 = 2*gr; grx3 = 3.* gr; gr12 = 1. + 2.* gr; norm = sqrt(1+gr*gr); rs6= 34; rs5 = 34; ang2 = 22.23876; ang1 = 60 - ang2; l = 19.5; union() { rotate([0,69.1,0]) union()...
glb/cad_9d4798b18b44.glb
Create a Rhombicosidodecahedron Pencil Holder by combining a series of hypocycloid-based plates and spheres. First, construct the framework of a rhombicosidodecahedron. At each of the 60 vertices, place a sphere with a radius of 2.5mm and a facet resolution of 12. Connect these vertices using three types of extrude...
gr = (1 + sqrt(5.))/2.; rgr = 1./gr; gr2 = 2. + gr; grxgr = gr * gr; grx2 = 2.* gr; grx3 = 3.* gr; gr12 = 1. + 2.* gr; gxgxg = gr * gr * gr; norm2 = 5*gr/sqrt(3-gr); norm3 = 2*gr; rs6= 36.3; rs62 = 36.3; angs1 = 45; angs2 = -12; angs3 = 12...
glb/cad_117929a5fdf1.glb
Create a pencil holder based on a truncated icosidodecahedron. The main body is a skeletal frame where the edges of the polyhedron are replaced by thin cylinders and the vertices are replaced by spheres with a radius of 1.5mm. Each sphere is rendered with a low facet resolution of 12. The faces of the truncated icosid...
gr = (1 + sqrt(5.))/2.; rgr = 1./gr; rgrx2 = 2./gr; grp2 = 2. + gr; grp3 = 3. + gr; grxgr = gr * gr; grx2 = 2.* gr; gr12 = 1. + 2.* gr; grm12 = -1. + 2 * gr; grm13 = -1. + 3. * gr; norm2 = 5*gr/sqrt(3-gr); norm3 = 2*gr; an...
glb/cad_0150128f983d.glb
Create a Z-Mount for a Prusa i3 aluminium frame. The part is a mirrored left-side motor mount with a height of 30mm and a wall thickness of 5mm. Construct the main body as an L-shaped bracket. The base plate is a square with a side length of 42mm to accommodate a Nema 17 motor. Within this base, create a central circ...
motor_d = 42; motor_s = 31; m3h = 3; m3n = 5.5; wsh = 4; motor_r = (motor_d-motor_s)/2; zrod = 8; ew = 0.56; board = 12; p = 0.25; module countersunk(r,h,pre=5,$fn=8){ rotate(22.5)translate([0,0,-pre])intersection(){ cylinder(r=2*r+0.5,h=r+pre); cylinder(r1=2*r+pre,r2=r,h=r+pre); } ...
glb/cad_338d68d34258.glb
Create a small gear for a mixer stand replacement. The gear should have 22 teeth with a pressure angle of 22 degrees and a diametral pitch of 1.031. The overall gear thickness is 2.5mm, with a rim thickness of 5mm and a hub thickness of 6.3mm. The hub diameter is 10.8mm, and the central bore diameter is 5.5mm. To finis...
include <MCAD/involute_gears.scad> module make_gear_big() { gear ( number_of_teeth = 32, pressure_angle = 22, rim_width = 1.84, diametral_pitch = 1.015, gear_thickness = 4, rim_thickness = 5, hub_thickness = 6.10, hub_diameter = 12, bore_diameter = 7, circles = 0 ); } module gearXcutter() { tr...
glb/cad_3193b53ecff4.glb
Create a Lazy Susan Bearing Spool Adapter consisting of a base plate and a cylindrical spool adapter. First, construct the base plate as a square with a side length of 101.5mm and a thickness of 5mm. At the center of this plate, create a cylindrical protrusion with a diameter of 56.7mm and a height of 5mm. Remove fou...
Thickness = 2; quality=36; tolerances = 0.15; ScrewHoleDistance = 90.5; ScrewHoleDiameter = 4 + tolerances; BearingPlateSide = 101.5; CenterBoreDiameter = 56.7; PlateThickness = 5; SpoolBoreDiameter = 52; SpoolBoreDepth = 15; numberOfScrews = 3; m4 = 4 + (2 * tolerances); m4_nut = m4 * 2; m4_nut_height = m4 * 0.8; m...
glb/cad_7e15e92794cc.glb
Create a bicycle chainguard consisting of two concentric rings and radial mounting arms. The outer ring is thin, with a height of 2.5mm, while the inner ring is thicker, with a height of 7.5mm. Both rings share a common center and have a central hole. Position four mounting arms equally spaced around the center. Each ...
eh=0.25; ew=0.56; module chamfered_cube(size,d=1){ hull(){ translate([d,d,0])cube(size-2*[d,d,0]); translate([0,d,d])cube(size-2*[0,d,d]); translate([d,0,d])cube(size-2*[d,0,d]); } } module chamfered_cylinder(r=0,r1=0,r2=0,h=0,d=1){ hull(){ translate([0,0,d])cylinder(r1=(r?r:r1),r2=(r>0?...
glb/cad_97a4c26e26d8.glb
Create an Incremental Indexing Rack. Start with a rectangular base slab measuring 152.4 mm long, 12.7 mm wide, and 12.7 mm thick. Along the top length of the slab, create a series of saw-tooth notches. Each tooth should be 1.5875 mm wide (16 teeth per inch) and 12.7 mm deep. The tips of these teeth must be clipped by...
length=6; width=0.5; spine_height=0; tpi=16; ratchet_percent=0; tooth_height=0; clip_percent=15; use_screws=1; screw_dia=3.5; screw_head_dia=6; screw_inset=0.5; num_screws=0; screw_spacing=1; function in2mm(in)=25.4*in; module frustum(x,y,x2,y2,z) { halfx=x/2; halfy=y/2; halfx2=x2/2; halfy2=y2/2; pol...
glb/cad_9f216935b225.glb
Create a Mendel X Axis Cover by constructing a hollow rectangular sleeve with rounded edges. Start with a solid base block measuring 92mm in length, 17mm in width, and 20mm in height, created by applying a 2mm radius fillet to a central 88mm by 13mm by 16mm cube. Hollow out the top of this shape by removing a central r...
module base(){ $fn=60; minkowski() { cube([88,13,16],center=true); cylinder(r=2,h=2); } } module cover(){ difference(){ translate([0,0,16/2]) base(); translate([0,0,16/2+2])cube([88,13.5,16],center=true); } translate([86/2-(10-1.5),13.5/2-.5,16.5]) cube([3,1,3],center=true); translate([86/2-(10-1.5),-13.5/2+.5,16.5...
glb/cad_c0b4c28c7278.glb
Create a snap-in parametric hole cover. Start with a circular base cap 10mm in diameter and 1.25mm thick. The top surface of this cap should have a chamfer, tapering from a radius of 4.25mm at the bottom to 5mm at the top over a height of 0.75mm. Centered on this base, extend a cylindrical plug upwards with a radius of...
cap_diameter=10; cap_thickness=1.25; cap_chamfer=0.75; hole_diameter=6.7; hole_thickness=2; cutout_width=2; cutout_count=3; barb_max_diameter=hole_diameter+1.5; barb_min_diameter=hole_diameter-2; barb_length=3; difference() { union() { cylinder(r1=cap_diameter/2-cap_chamfer, r2=cap_diameter/2, h=cap_chamfer, $fn=20...
glb/cad_4c719de24d8a.glb
Create a test model consisting of two identical mirrored components aligned along the X-axis. Each component is composed of a rectangular block and a hollow cylinder. For the first component, center a rectangular block with dimensions 10mm x 5mm x 3mm at X = -15mm. Adjacent to this, at X = -10mm, place a hollow cylind...
$fn = 48; tube_h = 15; tube_hole_h = tube_h + 1; union() { union() { translate(v = [-15, 0, 0]) { cube(center = true, size = [10, 5, 3]); } translate(v = [-10, 0, 0]) { difference() { cylinder(center = true, h = tube_h, r = 5); cylinder(center = true, h = tube_hole_h, r = 4); } } } union()...
glb/cad_ce24dddf2028.glb
Create a Switchfector V3 mount with a total height of 6mm. The main body is a rounded equilateral triangle with a radius of 25mm. From this main body, remove a central cylindrical hole with a radius of 6mm and a height of 6.2mm. Cut a rectangular slot through the center of the triangle, measuring 20mm wide and 12mm d...
use <MCAD/nuts_and_bolts.scad>; jhead_height = 6.0; centers = 50; $fn=100; top_mag_size = 10.3; hotend_radius = 12; mount_radius = 18.5; module rounded_triangle(tsize,theight) { difference(){ translate([0,0,0]) cylinder(r=tsize,h=theight,$fn=3); translate([0,0,-.1]) ring(tsize-6,theight+.2,20); ...
glb/cad_821413f9fff2.glb
Create a Y-axis endstop support for a Prusa i3 Hephestos. Start by creating a main rectangular block that is 45mm wide, 20mm deep, and 19mm high, positioned at coordinates (35, 34, -6.09). From this main block, remove a large rectangular section measuring 180mm wide, 49mm deep, and 16.01mm high, positioned at (0, 0, -1...
module cruce(){ color("red") translate([0,0,0]) rotate ([0,0,-45]) cube([11,180,7]); difference() { translate ([0,38,0]) cube([180,11,7]); color("yellow") translate([-24.5,0,-10]) rotate ([0,0,-45]) cube([35.5,400,50.6], center=true); } } module arriba(){ difference(...
glb/cad_f163a46142df.glb
Create a Universal Parametric Spool Holder. Start by constructing a rectangular box with a wall thickness of 4mm. The outer dimensions of the main body should be approximately 65mm in width and 83mm in depth, with a total height of 13.5mm. Inside this box, create four circular cutouts to house skateboard bearings. Eac...
reelWidth = 55; reelOuter = 200; bearingSeparation = 55; flangeWidth = 5; groundClearanceBelowOuterWasher = 2; boxThickness = 4; tolerance = .4; module reel () { rotate([0,90,0]) difference() { cylinder (h=reelWidth, d=reelOuter,center=true); difference() { cylinder (h=reelWidth-...
glb/cad_35f502b59975.glb
Create an abstract sculpture by extruding a rectangle with a width of 20mm and a length of 10mm to a total height of 40mm. As the shape is extruded vertically, apply a full 360-degree twist around the central axis. Use a low facet resolution of 10 slices for the extrusion to ensure the resulting form has a distinct, an...
Height = 40; Twist = 360; Scale = 0; Slices = 10; Width = 20; Length = 10; linear_extrude(height = Height, twist = Twist, scale = Scale, slices = Slices) square([Width, Length]);
glb/cad_0e336098fc09.glb
Create a G1W DashCam Mount consisting of a rounded rectangular base and a spherical top. Start by creating a rectangular slab 30mm wide, 20mm deep, and 1mm thick. Round the four vertical corners of this slab with a radius of 3mm. Centered on top of this base, place a vertical cylinder with a height of 15mm and a consta...
$fn = 100; cylinder(h = 15, r1 = 03, r2 = 03, center = false); roundCornersCube(30,20,1,03); translate([0,0,13]) sphere(d = 16); module createMeniscus(h,radius) difference(){ translate([radius/2+0.1,radius/2+0.1,0]){ cube([radius+0.2,radius+0.1,h+0.2],center=true); } cylinder(h=h+0.2,r=radius,$fn ...
glb/cad_cdcd566ba98a.glb
Create a DIY skimmer fitting for a 25mm PVC-U pipe. Start by constructing a vertical hollow cylinder with an outer radius of 13.5mm and an inner radius of 12.5mm, extending to a total height of 44mm. The wall thickness should be consistent at 1mm. At the base of this main cylinder, add a wider circular flange with an o...
$fn=80; r = 25; stena = 2; r_in = r/2; r_out = r_in + stena; module main() { difference() { cylinder(r=r_out, h=10); cylinder(r=r_in, h=10); } translate([0,0,10]) difference() { cylinder(r1=r_out, r2=r_out*0.5, h=5); cylinder(r1=r_in, r2=r_in*0.5, h=5); } translate([0,0,15]) difference() { cylinder(r=r_out*0....
glb/cad_3c3dd658098b.glb
Create a DIY skimmer fitting consisting of three stacked coaxial sections with a continuous central hole of 15mm diameter. Start with a base cylinder 20mm in diameter and 12mm high, featuring external metric threads with a 1.6mm pitch. Above this, add a hexagonal nut section with a height of 5mm and a flat-to-flat widt...
use <threads.scad>; use <MCAD/metric_fastners.scad>; $fn=60; difference() { metric_thread(20, 1.6, 12, internal=false); cylinder(r=15/2,h=12); } translate([0,0,12]) difference() { cylinder(r=29/2, h=5,$fn=6); cylinder(r=15/2,h=5); } translate([0,0,17]) difference() { cylinder(r=21/2, h=10); cylinder(r=15/2,h=1...
glb/cad_c1b62aab2820.glb
Create a DIY skimmer fitting consisting of a threaded base and a cylindrical collar. Start by creating a threaded male cylinder with an outer diameter of 41.6mm, a pitch of 2.4mm, and a height of 16mm. Hollow out the center of this threaded part with a hole 21mm in diameter. Around the base of this threaded section, ad...
use <threads.scad>; use <MCAD/metric_fastners.scad>; $fn = 60; module tesneni() { rotate_extrude($fn = 60) translate ([ 27/2, 0, 0 ]) circle (r = 3.4/2); } module sroubeni () { difference() { metric_thread(41.6, 2.4, 16, internal=false); cylinder(r=10.5, h=16); } translate([0,0,16]) difference() { cylinder(r=25....
glb/cad_19c1db241fe6.glb
Create a cover for pin headers by designing a rectangular grid of holes. Construct a block that is 9mm tall, consisting of a 2 by 10 array of aligned cylinders. Each cylinder in the grid must have an outer diameter of 2.54mm and a concentric inner hole with a diameter of 1.0668mm. Position the centers of these cylinder...
d = 2.54; n=2; m=10; module cov_1() { difference(){ circle(d); circle(d/2); } } module cov_n() { difference() { union() for( i= [1:n] ) for(j=[1:m]) translate(d*[i,j]) circle(d); for( i= [1:n] ) for(j=[1:m]) translate(d*[i,j]) circle(0.42*d); } } $fs=0.1; linear_extrude(height=9) cov_n();
glb/cad_0df77228cc9f.glb
Create an Ellipsoid Puzzle consisting of six identical interlocking pieces. Start by defining a base shape: a sphere with a radius of 30mm, scaled along the Z-axis by a factor of 0.7 to create an oblate ellipsoid. To form each piece, subtract a series of intersecting geometric volumes from the ellipsoid. Remove a cen...
assembly(); R=30; tol=0.25; s=0.7; f=1.15; $fa=6; v1=10*[-1.15,-1,-2]; v2=10*[1.15,-1,-2]; d=R*f; x=d*cos(45); theta=asin(sqrt(2)/sqrt(3)); module assembly(){ rotate([-90,0,0])translate($t*v1)pieceR(); rotate([-90,0,120])translate($t*v1)pieceR(); rotate([-90,0,-120])translate($t*v1)pieceR(); rotate([90,0,0])translat...
glb/cad_bc150a393b8e.glb
Create a Customizable Heart Wand by combining a cylindrical handle with a decorative heart topper. Start by creating a cylinder for the handle with a diameter of 17.5mm and a length of 175mm. Flatten one side of this cylinder by removing a rectangular section from the bottom along its length, creating a flat base. At ...
use <write/Write.scad> line_1_text = "I Love"; line_2_text = "You"; text_thickness = 5; text_height = 5.7; text_position = 12; line_spacing = 8; heart_height = sqrt(1600); heart_thickness = 17.5; handle_length = 175; handle_diameter = 17.5; flat = 1; $fs = 0.01; $fa = 5; heart_edge = sqrt(heart_height*heart_height/...
glb/cad_7058a1a4ab50.glb
Create a bracket for a 19mm tube holder. Start with a circular base plate 88mm in diameter and 5mm thick. Remove a central cylinder with a 44mm radius and 18mm height from this base. Drill three screw holes through the base plate, each 8.4mm in diameter, positioned at coordinates (-20, 30), (-20, -30), and (36, 0). Eac...
$fn=80; difference(){ cylinder(r=44, h=5); translate([0,0,-1]) cylinder(r=22, h=18); translate([-20,30,-1]) cylinder(r=4.2, h=7); translate([-20,-30,-1]) cylinder(r=4.2, h=7); translate([36,0,-1]) cylinder(r=4.2, h=7); translate([-20,30,-1]) cylinder(r1=2, r2=6, h=7); translate([-20,-30,-...
glb/cad_cf0c5ad22f2e.glb
Create a bracket for a 19mm tube holder. Start with a circular base plate that has a bottom radius of 65mm and a top radius of 70mm, with a total height of 4.5mm. Remove a central cylinder from this base with a radius of 22mm and a height of 18mm. Above this base, add a center support ring starting at a height of 4.5...
$fn=80; difference(){ cylinder(r1=65, r2=70, h=4.5); translate([0,0,-1]) cylinder(r=22, h=18); translate([0,0,-1]) cylinder(r1=28, r2=3, h=18); } difference(){ translate([0,0,4.5]) cylinder(r=25, h=8); translate([0,0,3.5]) cylinder(r=22, h=18); } difference(){ translate([0,0,4.5]) cylinder(r=...
glb/cad_ee0eb95254c5.glb
Create a Bracket 19mm Tube Holder consisting of a circular base and a central support collar. Start with a circular base plate that has a bottom radius of 65mm, a top radius of 70mm, and a height of 4.5mm. Remove a central vertical cylinder with a radius of 22mm to create a hole through the base. Add a central support...
$fn=80; a=29; b=41; difference(){ cylinder(r1=65, r2=70, h=4.5); translate([0,0,-1]) cylinder(r=22, h=18); translate([0,0,-1]) cylinder(r1=28, r2=3, h=18); translate([-a,a,-1]) cylinder(r=8, h=7); translate([-a,-a,-1]) cylinder(r=8, h=7); translate([a,a,-1]) cylinder(r=8, h=7); translate(...
glb/cad_581a5a5c0ad8.glb
Create a tactile Rubik's cube for the blind by constructing the following geometric components based on a base cubie edge dimension of 18.5mm. Create corner pieces as 18.5mm cubes. Subtract a sphere with a 7.4mm radius from the center of one face. On the remaining three faces, create "horns" by subtracting three inter...
cubie_edge = 18.5; spacing = 40; module corner() { difference() { translate([-cubie_edge*0.5, -cubie_edge*0.5, 0]) cube([cubie_edge, cubie_edge, cubie_edge]); translate([0,cubie_edge*0.6,cubie_edge*0.5]) sphere( r = cubie_edge*0.4); } difference() { translate([0, -cubie_edge*0.75, cubie_edge...
glb/cad_1ed1b5f316ec.glb
Create a Rubik's cube for the blind by constructing individual cubie components with tactile patterns. Each cubie is based on a main cube of 18.5mm per side. To form the internal mechanism, remove a cylinder with a radius of 18.5mm and a height of 20.5mm from the main body, and remove a sphere with a radius of 7.4mm ce...
cubie_edge = 18.5; spacing = 22; position = 11; positionx = 15; module edge1() { difference() { translate([-cubie_edge*0.5, -cubie_edge*0.5, 0]) cube([cubie_edge, cubie_edge, cubie_edge]); union() { translate([ cubie_edge, cubie_edge*0.5 + 1, cubie_edge*1.5]) rotate([ 90, 0, 0]) cylinder( r = cu...
glb/cad_e0b7e117df12.glb
Create a tactile Rubik's cube edge piece by starting with a main cube of 18.5mm per side. From this main cube, remove a cylinder with a radius of 18.5mm and a height of 20.5mm, centered on the top face and oriented along the X-axis, and remove a sphere with a radius of 7.4mm centered at the origin. Add a rectangular pr...
cubie_edge = 18.5; spacing = 22; position = 11; positionx = 15; module edge() { difference() { translate([-cubie_edge*0.5, -cubie_edge*0.5, 0]) cube([cubie_edge, cubie_edge, cubie_edge]); union() { translate([ cubie_edge, cubie_edge*0.5 + 1, cubie_edge*1.5]) rotate([ 90, 0, 0]) cylinder( r = cub...
glb/cad_bc71a63af610.glb
Create a Rubik's cube for the blind by constructing four distinct corner pieces based on a base cubie edge of 18.5mm. Each corner piece starts with a main cube of 18.5mm per side. To allow for rotation, remove material from the corners using three intersecting cylindrical cutouts of radius 37mm (with a 18.5mm inner hol...
cubie_edge = 18.5; spacing = 40; position = 20; module corner1() { translate([-cubie_edge*0.5, -cubie_edge*0.5, 0]) cube([cubie_edge, cubie_edge, cubie_edge]); difference() { translate([0, -cubie_edge*0.75, cubie_edge*0.5 ]) cube([cubie_edge*0.75, cubie_edge*0.75, cubie_edge*0.75]); union() { ...
glb/cad_2a69b5fd121f.glb
Create a Rubik's cube for the blind by constructing four distinct corner pieces. Each piece begins with a main cube of 18.5mm per side. To form the "horn" of each corner, remove a 13.875mm cube from the center and carve out three cylindrical channels (radius 18.5mm for the outer wall and 18.5mm for the inner hole) orie...
cubie_edge = 18.5; spacing = 40; position = 20; module corner1() { translate([-cubie_edge*0.5, -cubie_edge*0.5, 0]) cube([cubie_edge, cubie_edge, cubie_edge]); difference() { translate([0, -cubie_edge*0.75, cubie_edge*0.5 ]) cube([cubie_edge*0.75, cubie_edge*0.75, cubie_edge*0.75]); union() { translate([ cubie_edge...
glb/cad_434b549235f3.glb
Create a center plate for a tactile Rubik's cube. Start with a main cube body measuring 18.5mm on each side. From this body, remove two intersecting cylinders with a radius of 18.5mm and a height of 20.5mm; position the first cylinder centered at [18.5, 9.25, 0] rotated 90 degrees on the X-axis, and the second centered...
cubie_edge = 18.5; spacing = 22; position = 11; positionx = 11; module main() { difference() { union() { translate([-cubie_edge*0.52, -cubie_edge*0.5, 0]) cube([cubie_edge, cubie_edge, cubie_edge]); } union() { translate([ cubie_edge, cubie_edge*0.5 + 1, cubie_edge*0.5]) rotate([ 90, 0, 0])...
glb/cad_1eb97c9a4eb7.glb
Create a Rubik's cube for the blind by constructing several small cubic components, each with a base dimension of 18.5mm. For the center piece, create a cube of 18.5mm and remove two cylinders with a radius of 18.5mm and a height of 20.5mm, positioned to intersect the cube's volume. Additionally, remove a conical sec...
cubie_edge = 18.5; spacing = 22; position = 11; positionx = 11; module main() { difference() { union() { translate([-cubie_edge*0.52, -cubie_edge*0.5, 0]) cube([cubie_edge, cubie_edge, cubie_edge]); } union() { translate([ cubie_edge, cubie_edge*0.5 + 1, cubie_edge*0.5]) rotate([ 90, 0, 0])...
glb/cad_d0d85043ba12.glb
Create a Simple Razor Stand consisting of a circular base and a vertical support topped with two holders. Start by creating a cylindrical base with a diameter of 65mm and a height of 4mm. Centered on this base, add a vertical cylindrical stand with a diameter of 10mm and a height of 100mm. At the top of this stand, add...
part = "both"; base_d = 65; base_h = 4; stand_d = 10; stand_h = 100; conn_d = 5; bar_w = 10; bar_l_brush = 15; bar_l_razor = 10; bar_h = 3; brush_d = 27; razor_d = 17; holder_w = 6; holder_h = bar_h; bar_l = bar_l_brush + bar_l_razor; conn_h = holder_h; module pie_slice(d, angle) { $fn=64; R = d /...
glb/cad_80f8ad4308e0.glb
Create a spool holder mount by starting with a wide circular base 100mm in diameter and 5mm thick. Centered on this base, extend a vertical cylinder upwards to a total height of 45mm with a radius of 8mm. Cap the top of this vertical cylinder with a hemisphere of the same 8mm radius. To create the mounting points, plac...
base_height = 5; spool_height = 40; counter_sink = 2; smooth=64; spool_radius = 8; mount_offset = 20.5; counter_sink_radius = 5.5; difference() { union() { cylinder(h=spool_height+base_height, r=spool_radius,$fn=smooth); cylinder(h=base_height, r=50,$fn=smooth); translate([0,0,spool_height+base_height]) sphe...
glb/cad_98958212c815.glb
Create a Rostock Max EZStruder Top Plate Mount and Spool Holder. Start by constructing a main rectangular container with outer dimensions of 57mm width, 65mm depth, and 110mm height. Hollow out the center of this container to create a cavity measuring 47mm width, 65mm depth, and 100mm height, leaving a wall thickness o...
motor_width = 47; motor_height= 45; motor_depth = 65; case_mount_h_offset = 40/2; case_mount_v_offset = 51/2; motor_mount_h_offset = 31/2; motor_mount_v_offset = 15.2; wall_width = 5; mounting_hole_radius = 2.5; drop_down_height = 100; tab_height = 17; smooth = 64; rotate(-90,[1,0,0]) union() { difference() { u...
glb/cad_db1c2af7721f.glb
Create a servo mounting bracket starting with a central rectangular base plate measuring 25mm wide, 55mm long, and 3mm thick. Center a 2mm diameter hole through the base plate at two points along the center line, positioned 10mm from the center toward each end. On each end of the base plate, construct a vertical suppo...
rotate (a=[0,180,0]) { union () { difference () { cube (size =[25,55,3], center = true); translate (v=[0,10,0]) {cylinder(h = 30, r = 1, center = true, $fn=100);} translate (v=[0,-10,0]) {cylinder(h = 30, r = 1, center = true, $fn=100);} } translate (v=[-10,20,-21.5]) { union () { difference () { ...
glb/cad_c75521b3d64d.glb
Create a motor mount for a UAV. Start by constructing a central vertical tube with an outer diameter of 18mm and an inner diameter of 12mm, with a height of 70mm. From the base of this tube, extend four symmetrical support struts angled downwards and outwards to form a wide, stable base. At the end of each strut, int...
XCube=45; YCube=45; HCube=70; HCore=70; BaseCore1=6; TopCore1=7; BaseCore2=8.8; TopCore2=9; difference(){ translate([0,0,4]) linear_extrude(height = 65, scale = 10/70) square(75, center = true); translate([5,0,10]) rotate([0,0,315]) cube([XCube,YCube,HCube]); translate([0,-5,10]) rotate([0,0,225]) cube([XCu...
glb/cad_3e8b7105241b.glb
Create a duplicating house key for a 6-pin KW10 lock. Start with a flat base of 2.032mm thickness. The key consists of a handle and a blade. The handle is a rounded rectangle 25.4mm wide and 25.4mm long with a 3.175mm radius at the corners and a cylindrical hole with a 3.175mm diameter for a keychain. The blade extend...
function mm(i) = i*25.4; module rounded(size, r) { union() { translate([r, 0, 0]) cube([size[0]-2*r, size[1], size[2]]); translate([0, r, 0]) cube([size[0], size[1]-2*r, size[2]]); translate([r, r, 0]) cylinder(h=size[2], r=r); translate([size[0]-r, r, 0]) cylinder(h=size[2], r=r); ...
glb/cad_9d28614374c9.glb
Create a coordination chemistry model of an octahedron. The structure consists of six spheres, each with a diameter of 100mm, positioned at the vertices of an octahedron. The vertices are located at coordinates (±50, ±50, 0), (0, 0, ±50√2). Connecting these vertices are twelve cylindrical rods, each with a diameter of...
module tyc(x1,y1,z1,x2,y2,z2){ x=x2-x1; y=y2-y1; z=z2-z1; delka=sqrt(x*x+y*y+z*z); beta=acos(z/delka); gamma=(x==0)?sign(y)*90:((x>0?atan(y/x):atan(y/x)+180)); translate([x1,y1,z1]) rotate([0,beta,gamma]) cylinder(h=delka,d=prumer,$fn=50); }; a=50; prumer=20; kulicka=50; magnet...
glb/cad_84721dd4d801.glb
Create a Z Limit Switch plate for an OX CNC. Start by creating a rectangular base plate measuring 30mm wide, 45mm long, and 4mm thick. Center a hole with a radius of 1.7mm and a depth of 15mm vertically through the plate, positioned 35.1mm along the length. Additionally, construct a cylindrical component with a total...
group() { group(){ union() { difference() { multmatrix([[2.22044604925e-16, 0.0, 1.0, 9.0], [0.0, 1.0, 0.0, 38.0], [-1.0, 0.0, 2.22044604925e-16, 8.0], [ 0, 0, 0, 1]]){ cylinder($fn = 0, $fa = 12.000000, $fs = 2.000000, h = 30.0, r1 = 8.0, r2 = 8.0, center = true); } multmatrix([[2.22044604925e-16, 0.0, 1.0, 9.0], [0....
glb/cad_5e4ea5cd7d7b.glb
Create a double-wide extrusion end cap measuring 80mm by 40mm with a thickness of 3mm. The main body is a rectangular plate with rounded corners using a 2mm radius. On the underside, create four T-slot tabs positioned symmetrically around the perimeter. Each tab consists of a base slot 8.35mm wide and 4.5mm thick, ex...
double_wide_cap="yes"; holes=0; slot_width=8.35; slot_thickness=4.5; t_width=19.0; t_depth=3.5; trapezoid_bottom_width=19.0; trapezoid_top_width=9.5; trapezoid_depth=3.6; extrusion_size=40; end_cap_thickness=3; corner_rounding=2; hole_size=7.7; tab_height=7; undersize=0.2; if (double_wide_cap == "yes") {...
glb/cad_3c554c9fb72d.glb
Create a headphones monitor holder by combining a cylindrical support with a rectangular mounting base. Start with a main cylinder that has a diameter of 127mm and a height of 30mm. Remove a smaller concentric cylinder from the center with a diameter of 123mm and a height of 30mm to create a thin-walled ring. To this r...
$fn=100; module usmev(){ difference(){ union(){ cylinder(30,63.5,63.5); translate([2,0,27]) scale([1,0.9,1]) cylinder(3,65,65); } union(){ cylinder(30,61.5,61.5); translate([-63.5,-65,0]) cube([110,130,30]); } } translate([44...
glb/cad_56fa15ded199.glb
Create a parametric flyswatter consisting of a flat head and a handle socket. Start with a square plate 95mm wide, 95mm high, and 1.25mm thick. Round all four corners of the plate with a radius of 6mm. Within the plate, create a grid of hexagonal holes, each 4mm in diameter, spaced 4.75mm apart. The grid should be ce...
swatter_thickness=1.25; hole_diameter=4; hole_spacing=4.75; width=95; height=95; border=5; corner_radius=6; dowel_size=6.35; dowel_socket_length=20; dowel_socket_thickness=3; union() { difference() { cube([width,height,swatter_thickness]); for (corner=[1:4]) translate([width/2,height/2,0]) rotate([0,0,90*corne...
glb/cad_14277c9b0cef.glb
Create an Electric Vehicle j1772 Inlet Cover. Start with a main outer body that is a cylinder with a diameter of 51.5mm and a height of 25mm, but modify it so that one side is flattened into a rectangular section with a width of 19mm, creating a keyed profile. The corners of this outer body should be rounded with a 3mm...
inside_od=43; inside_id=36.5; end_taper=1.5; taper_length=5; outside=51.5; outside_length=25; inside_length=32; cap_thickness=3; key_width=19; key_stickout=8; cover_rounding=3; wall=3; groove_width=0.07*25.4; groove_depth=0.062*25.4; groove_distance=[10,15]; dimple_diam=6; dimple_count=0; dimple_spacing=20; hole_s...
glb/cad_16b009194432.glb
Create a triangular coffee capsule holder designed to hold 12 capsules in total, with 4 capsules stacked on each of the three sides. The overall structure is an equilateral prism with a total length of 160mm. Each of the three sides consists of a vertical wall with a thickness of 3mm and a total width of 43mm. Within...
capsule_radius = 20; capsule_thickness = 4 * 1.05; border_width = 2; number_of_capsules = 4; capsule_diameter = capsule_radius * 2; thickness = 3; length = number_of_capsules * capsule_diameter; width = capsule_diameter + 2 * thickness; module decoration() { } module side() { difference(){ cube([thickness...
glb/cad_5338ca92c548.glb
Create a Customizable Hyperboloid Lattice by arranging a series of intersecting struts. Each strut is a 3-sided prism (triangular cylinder) with a radius of 3mm and a height of 271mm, centered on its origin. Position these struts so their centers are offset from the central Z-axis by a radius of 50mm. Generate two se...
cyl_rad = 3; cyl_hgt = 271; strut_sides=3; number_of_struts=20; angle_of_strut = 45; inner_radius = 50; for(i=[0:1/(number_of_struts):1]) rotate(i*360,[0,0,1]) translate([inner_radius,0,0]) rotate(angle_of_strut,[1,0,0]) cylinder(r=cyl_rad,h=cyl_hgt,center=true,$fn=strut_sides); for(i=[0:1/(nu...
glb/cad_85a1afa6007b.glb
Create an open-top electronics box for Mega and RAMPS boards with a base measuring 120mm in length and 68mm in width, and a height of 51mm. The walls should be 3mm thick. The base floor features twelve ventilation slits, each 80mm long and 2mm wide, centered along the length. The side walls include five circular vent...
$fn=50; Box_L = 120; Mega_W = 54; Ramps_W = 68; Mega_H = 18; Wall = 3; Box_H = 51; Slit_L= 80; Slit_W=2; Side_Slit_L = 31; M3 = 3; Tab_R = 10; Slit_Offset=10; Tab_Wall=5; SideHole_R=5; Back_wall = 3.5; SideRailBackOffset=6; union() { difference() { union() { cube([Box_L,Ramps_W,Wall]); translate([Wall,0,Wall]) rotate...
glb/cad_e3ff869f563a.glb
Create a bowl based on a snub cube. First, generate a snub cube using the tribonacci constant (approximately 1.83929) to define its 24 vertices. Scale the overall geometry by a factor of 30 and apply a multiplier of 0.93 to the vertex coordinates. Construct the bowl by creating a hollow version of this polyhedron wit...
t = 1.83928675; u = 1/t; s_all = 30; sc24 = 0.93; make_half_b(); module make_half_b() { difference() { polyhedron(sn_cords_twice,faces_all); translate([0,0,115]) cube(200,center=true); } } sn_cords_twice = s_all*[ [u,-t,-1]*sc24, [t,-u,1]*sc24, [t,-1,-u]*sc24, [u,-1,t]*sc24, ...
glb/cad_1548b75f661d.glb
Create a bowl based on a modified snub cube polyhedron. First, construct a solid polyhedron using the 48 defined vertices and 74 faces specified in the geometry data, scaled by a factor of 1.6. The vertices are derived from a coordinate set where the base scale is 18.5 and a secondary multiplier of 0.92 is applied to t...
s_all = 18.5; sc24 = 0.92; scale (1.6) make_half_b(); module make_half_b() { difference() { polyhedron(atoms_sct_twice,faces_all); translate([0,0,110]) cube(200,center=true); } } atoms_sct_twice = s_all* [ [-1.8635200,-1.2424301, 0.6210860]*sc24, [-1.2424301,-1.8635200,-0.6210860]*sc24, ...
glb/cad_3f83de745caa.glb
Create a Delta corner brace consisting of two intersecting plates. First, create a top rectangular plate with a length of 100mm, a width of 20mm, and a thickness of 3mm. Second, create a side rectangular plate with a length of 55mm, a width of 20mm, and a thickness of 3mm. Position these plates so they meet at a 30-deg...
side_rail_length = 55; top_rail_length = 100; holeSize=1.5; holeSizeSides=20; rail_thickness = 3; wire_thickness=4; hole_cutouts=false; rail_width = 20; rail_angle = 30; module Rail(){ union (){ difference (){ rotate(a=[0,90,0]) rotate(a=[0,0,30]) translate([-to...
glb/cad_9b5bb42b98af.glb
Create a Customizable Mobius Strip by generating a series of 21 connected rectangular rods that form a continuous twisted loop. Each rod must have a thickness of 4mm and a length of 100mm. Arrange these rods such that their centers follow a circular path with a radius of 100mm. To achieve the twist, rotate each succe...
number_of_rods = 20; thickness = 4; length = 100; radius = 100; twists = 1; for(i=[0:number_of_rods]) { value = i/number_of_rods; value_1 = (i+1)/ number_of_rods; hull() { translate([radius*sin(value*360),-radius*cos(value*360),0]) rotate(value*360,[0,0,1]) rotate(value*twists*180,[1,0,0]) cube([thicknes...
glb/cad_c2d8f64f95ad.glb
Create a Generator Skeleton rotor adapter consisting of a central linking structure and two outer bars. First, construct the central linker by combining a hollow rectangular sleeve with four protruding markers. Create the sleeve as a rectangular tube with outer dimensions of 8mm by 8mm and a height of 25mm. To this s...
include <generator_variables.scad> module armlinker() { translate([0,0,25/2])cube([8,8,25], center=true); } module armlinkerint() { translate([0,0,32/2-pad])cube([6.9,6.9,32], center=true); } module stagemarker(){ translate([7,0,25/2])rotate([90,0,0])cylinder(8,5,5, center=true);} module blanklinker(){ translate([-...
glb/cad_74cad423009e.glb
Create a generator rotor adapter cap by starting with a solid rectangular base block measuring 9mm wide by 9mm deep by 12mm high, centered on the origin. From this base, remove a smaller central rectangular volume measuring 6.9mm wide by 6.9mm deep by 12mm high, positioned 8mm above the origin, to create a hollow inter...
include <generator_variables.scad> module armcap() { translate([0,0,8])cube([6.9,6.9,12], center=true); } module armcapbase() { translate([0,0,12.5/2])cube([9,9,12], center=true); } module armcapscrewdif() {translate([0,0,0])cylinder(50,1.6,1.6,$fn=24,center=true);} module caps(){ difference() { armcapbase(); union...
glb/cad_27d060d968d8.glb
Create a Generator Skeleton base by constructing a circular ring with a central hole. Start with a cylinder that has a radius of 41.5mm (calculated from the rotor and magnet dimensions) and a height of 3mm, centered on the Z-axis at -11mm. From this cylinder, remove a smaller concentric cylinder with a radius of 38.5mm...
include <generator_variables.scad> use <generator_magnet.scad> use <generator_base_socle.scad> use <generator_bobine_protector.scad> module keyfixer_pre() { difference() { union() { translate([15.625,0,-15.2])cube([8.25,20,2],center=true); translate([13,0,-14.25+10])cube([2.5,6,24],center=true); translate([19,0,-14....
glb/cad_295dbb23be6c.glb
Create a Generator Skeleton base consisting of a central circular plate with a vertical axle and radiating support structures. Start by creating a main circular ring with a height of 6mm. This ring is formed by a central cylinder with a radius of 155mm and a height of 6mm, from which a smaller concentric inner cylind...
include <generator_variables.scad> module base_socle() { cube([240,240,2], center = true);} module base_socle_ring_ext() { hull(){ cylinder(6,80,80, center=true); rotate([0,0,-11.25])translate([0,rotor_ext_max+x_magnet*1.1+space_marge+55.1,0])cylinder(6,20,20, center=true);}} module base_socle_ring_ext_x4() { base_s...
glb/cad_0597f328fd5c.glb
Create a Generator Skeleton bobbin protector. Start by creating a main cylindrical body with a height of 10mm and an outer radius of 25mm. Subtract a smaller concentric cylinder from the center with a radius of 15.15mm and a height of 20mm. Inside this central void, remove four rectangular prisms to create internal sl...
include <generator_variables.scad> use <generator_bobine.scad> module bobine_protector_prefix_int() { rotate([0,0,60])translate([r_bobine_ext_max,0,p_bobine_ext/2+0])cube([p_bobine_ext*1.15,p_bobine_ext*1.15,p_bobine_ext*32], center=true); } module bobine_protector_int_fix() { for (i=[0:4-1]) { rotate([0,0,90*i])bobi...
glb/cad_c99ebc96f33b.glb
Create a Generator Skeleton base by constructing a hollowed rectangular slab and adding a small cylindrical protrusion. Start with a solid rectangular block measuring 145mm in length, 100mm in width, and 21mm in height, centered on the origin. Remove a smaller rectangular volume from the center of this block, measuring...
include <generator_variables.scad> module hdd_pre() { difference() { color("Gray",1)cube([145,100,21],center=true); translate([0,0,2.5+pad])cube([140,95,18.5],center=true);} } module hdd() { union(){ hdd_pre(); translate([(145-95)/2,0,+5])color("Gray",1)cylinder(10,diam_adapter_min/2,diam_adapter_min/2, center=true);...
glb/cad_f3ded8c584e8.glb
Create a Generator Skeleton magnet by constructing a single centered cube with dimensions of 20mm in width, 20mm in depth, and 20mm in height.
include <generator_variables.scad> module magnet() {cube([x_magnet,y_magnet,z_magnet], center = true);} magnet();
glb/cad_d183d73fdce6.glb
Create a Generator Skeleton magnet component by constructing a six-sided polygonal prism. The shape should be a regular hexagonal cylinder with a diameter of 12mm and a height of 10mm, centered on the origin. Ensure the vertical facets are flat and the top and bottom faces are smooth hexagons.
include <generator_variables.scad> module magnet2() {color("Rose",1)cylinder(z_magnet2,diam_magnet2/2,diam_magnet2/2,$fn=smooth_rotor, center=true);} magnet2();
glb/cad_6bcbb9a20e37.glb
Create a Generator Skeleton consisting of two mirrored, stacked components. For the first component, create a central cylinder with a height of 10mm and a radius of 20mm. Remove a smaller concentric inner cylinder with a height of 15mm and a radius of 15mm. To create wire guides, remove two smaller cylinders with a r...
include <generator_variables.scad> module bobine_port1() {translate([0,0,p_bobine_ext/2])cylinder(p_bobine_ext,r_bobine_ext_max,r_bobine_ext_max, $fn=smooth_bobine, center = true);} module bobine_port1_dif(){ translate([0,0,x_bobine/2])cylinder(x_bobine*1.5,r_bobine_int,r_bobine_int,$fn=smooth_bobine, center = true);...
glb/cad_56b883259fa3.glb
Create a Generator Rotor Adapter consisting of a central hub and radiating arms. Start with a central ring created by subtracting a cylinder with a diameter of 20mm and a height of 10mm from a larger cylinder with a diameter of 45mm and a height of 12mm, both centered on the origin. Add six rectangular arms, each mea...
include <generator_variables.scad> module arm() { cube([6,6,60], center=true); } module arm_rotation_adapter() { translate([diam_adapter_max/1.7,0,30])arm();} module arm_rotation(){ for(i = [0:(nbarm-1)]) { rotate([0,0,(60)*i])arm_rotation_adapter(); }} module armbase() { cube([3,12,25], center=true); } module arm...
glb/cad_74ac189318a4.glb
Create a Kuro's Compact Extruder for the Diamond Hotend consisting of a main extruder body, an idler arm, and supporting hardware holders. Construct the main extruder block as a rectangular volume of 41.5mm x 27mm x 32mm. Centered within this block, create a horizontal filament channel with a diameter of 3.4mm (3mm f...
use <hardware.scad> use <mk7.scad> bolt_slop = 0.7; nut_slop = 0.4; clearance = 0.4; bearing_clearance = 0.4; m3_diameter = 3 + bolt_slop; m4_diameter = 4 + bolt_slop; m5_diameter = 5 + bolt_slop; m3_nut_diameter = 5.5/cos(30) + nut_slop; m4_nut_diameter = 6.87/cos(30) + nut_slop; m5_nut_diameter = 7.8/cos(30) + nu...
glb/cad_ddfe6aba6074.glb
Create a Customizable String Anchor by constructing a central body 15mm in height and 16mm in overall diameter. The main form is an hourglass shape created by the intersection of a 16mm diameter cylinder and two opposing cones. Each cone has a height of 7.5mm; the top cone tapers from a base radius of 8.5mm down to a s...
Height = 15; OD = 16; Thread_OD = 3; threadTol = 6*1; Nut_OD = 6.7; Nut_Sides = 6; Nut_Depth = 3; Thread_Clearance = 1; Nut_Clearance =0.8; NutCutoutD = Nut_OD+Nut_Clearance; Angle = 30; fudge = 0.01*1; edge=1*1; GrooveR = (edge+OD)/2-(tan(Angle)*(Height/2)); intersection() { difference() { union() ...
glb/cad_45791597893d.glb
Create two matching inductor coil former parts. For the first part, create a circular base with a diameter of 33mm and a thickness of 1.05mm. In the center of this base, remove a circular hole with a diameter of 15.9mm. On top of this base, add a concentric cylinder with an outer diameter of 16.5mm and an inner diame...
PRIEMER_CELKU = 33; PRIEMER_STLPIKU = 15; VYSKA = 17; HRUBKA1 = 1.5; HRUBKA2 = 0.6; CUTOUT = 0.3; translate( [ 50, 0, 0 ] ) difference() { union() { linear_extrude( height = HRUBKA1 * 0.7 ) difference() { circle( d = PRIEMER_CELKU, true ); circle( d = PRIEMER_STLPIKU + ( C...
glb/cad_b46a1a513920.glb
Create a Minecraft structure planner model by assembling a series of 1mm cubes at specific integer coordinates. The overall structure is a voxel-based assembly where each unit is a 1x1x1mm cube. Begin by placing cubes to form the base and lower levels. Position cubes at various coordinates to create a stepped, irregul...
width = 12; height = 12; maxheight = 9; module block(location,texture) {translate(location) cube(1);} block([0,0,1],"Dirt"); block([0,0,6],"Plank"); block([0,1,1],"Dirt"); block([0,1,6],"Plank"); block([0,2,1],"Dirt"); block([0,2,6],"Plank"); block([0,3,1],"Dirt"); block([0,3,6],"Plank"); block([0,4,1],"Dirt"); block(...
glb/cad_105c9760cfb5.glb
Create a Filament Spool Adapter consisting of a central cylinder and a base flange. Start by creating a main vertical cylinder with a diameter of 50mm and a height of 75mm. Attach a wider, flat circular flange to the bottom of this cylinder; the flange must have a diameter of 75mm and a thickness of 10mm. Finally, bore...
units = 1; spool_inner_diameter = 50; spool_hole_thickness = 75; axle_diameter = 25; flange_diameter = 75; flange_thickness = 10; function r_from_dia(d) = d / 2; cy1_r = r_from_dia(spool_inner_diameter * units); cy1_h = (spool_hole_thickness * units); cy2_r = r_from_dia((axle_diameter + 1) * units); cy2_h = (cy1_h *...
glb/cad_3988cfd54814.glb
Create a Motorola Xoom charging dock adapter by starting with a solid rectangular block measuring 16mm wide, 19mm deep, and 17mm high. From this main body, remove a rectangular section measuring 16mm wide, 15mm deep, and 17mm high, positioned 3mm up from the base. Carve out a circular hole with a radius of 6.03mm and a...
difference() { cube(size=[16,19,17],center=false); translate([0,0,3]) cube(size=[16,15,17],center=false); translate([8,16.5,12]) rotate(a=[90,0,0]) cylinder(h = 1.6, r=6.03,$fn=30); translate([8.5,5.5,0]) cube(size=[5.25,2.55,5],center=false); }
glb/cad_d15c6de7e7fc.glb
Create a Swissphone BOSS Stand by starting with a main rectangular block measuring 55mm in width, 32mm in depth, and 13mm in height, with all exterior corners rounded to a 3mm radius. Hollow out the center of the block to create a pocket that is 53mm wide, 21.2mm deep, and 12mm high, leaving a base thickness of 1mm and...
rand=1; breite=53; dicke=30; tiefe=12; fuss=1; dicke2=21.20; minkowskifn=30; difference(){ union(){ minkowski(){ cube([breite+(2*rand),dicke+2*rand,tiefe+fuss]); sphere(3,$fn=minkowskifn); } } union(){ translate([rand,rand,fuss]) cube([breite,dicke2,tiefe+10]); translate([17,rand+dicke2-0.1,fuss+1]) ...
glb/cad_2bc9b34bc9aa.glb
Create a Mendel Filament Guide consisting of two identical snap-on brackets. For each bracket, create a main cylinder with a height of 60mm and a radius of 8mm. Use a high facet resolution of 80 for all circular features to ensure smoothness. Through the center of each cylinder, create a vertical hole with a diameter ...
M3=4.02; M8=8.05; vertex_height=30; FN=80; module filament_guide(side) { translate([0,side*10,0]) rotate([90+90*side,0,0]) difference() { union() { translate ([17.25295,-55,0]) rotate([0,0,60.0]) difference() { union () { dxf_linear_extrude(file = "vertex-body-fixed-qcad.dxf", heigh...
glb/cad_33fd3a189d07.glb
Create a Parametric Belt Biggear for a Wades extruder. Start by constructing a pulley base with a diameter of 20mm and a height of 1.5mm. Centered on this base, add a toothed cylinder with a height of 7mm and an outside diameter based on a GT2 2mm profile with 77 teeth. Include a belt retainer flange on top of the te...
teeth = 77; profile = 12; motor_shaft = 9; m3_dia = 3.2; m3_nut_hex = 1; m3_nut_flats = 5.7; m3_nut_depth = 2.7; retainer = 1; retainer_ht = 1.5; idler = 1; idler_ht = 1.5; pulley_t_ht = 7; pulley_b_ht = 1.5; pulley_b_dia = 20; no_of_nuts = 1; nut_angle = 90; nut_shaft_distance = 1.2; wades_biggear = 1; nut_trap_th...
glb/cad_6df54018149f.glb
Create a customized filament storage container with a diameter of 60mm and an inner height of 40mm. The container walls and bottom should have a thickness of 2mm. The exterior bottom edge features a chamfer equal to 5% of the diameter, while the interior bottom is chamfered at 2.5%. The top of the container features ...
diameter=60.0; height=40.0; compartments = 1; outside_chamfer=5.0; inside_chamfer=2.5; wall_thickness=-1; divider_wall_thickness=-1; container_bottom_thick=-1; lid_top_thick=-1; part = "container_"; backlash=-1; solid_container=0; quality=80; function diameter()=max(8,diameter); function wall_thickness()=...
glb/cad_ca95b138a26e.glb