Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a parametric tool box for storing nozzles. Start by creating a solid rectangular block 130mm long, 35mm wide, and 20mm high. Round the two long outer edges at the bottom with a 2mm radius. Hollow out the center of the block to create a container with outer walls 3mm thick and a floor 3mm thick. Divide the interi...
$fn = 100; l = 130; w = 35; h = 20; owall = 3; iwall = 1.5; ncx = 6; ncy = 0; rounding = 2; delta = 0.1; module box() { difference() { hull() { translate([rounding, rounding, 0]) cylinder(h=h, r=rounding); translate([l-rounding, rounding, 0]) ...
glb/cad_a1e1900697df.glb
Create a vacuum filter coupling consisting of a hollow cylindrical shell and a circular base flange. Start by constructing a thin-walled cylinder with an outer diameter of 47.5mm, a wall thickness of 2mm, and a total height of 25mm. At the bottom of this cylinder, attach a flat, circular ring with an outer diameter of ...
$fn = 60; bushshell = 2; bushheight = 25; bushdiam = 47.5 ; ringdiam = 65; holediam = 47.5; ringthk = 2 ; primwd = 13 ; primht = 4 ; secwd = 24 ; secht = 6; module mainpart(bushdiam,bushshell,bushheight,ringthk,ringdiam,holediam) { rotate_extrude(convexity = 10) translate([bushdiam/2,0,0]) square([bushshell,bushheight]...
glb/cad_4730ebf22d4e.glb
Create a machine screw and nut assembly. Start by creating a central cylindrical shaft with a diameter of 3.55mm (9/64") and a total length of 19.05mm (3/4"). At the top of this shaft, add a hexagonal nut. The nut should have a height of 2.76mm (7/64") and an outer diameter of 8.95mm (23/64"), with a 3.55mm hole passin...
IN_TO_MM = 25.4; screw_and_nut(3/4 * IN_TO_MM, tol=0.0); diameter6 = IN_TO_MM * 9 / 64; nut6_outer_dia = IN_TO_MM * 23 / 64; nut6_thickness = IN_TO_MM * 7 / 64; head_height6 = IN_TO_MM * 0.083; head_dia6 = IN_TO_MM * 0.262; module screw_and_nut(length, tol=0.0) { translate ([0, 0, length-(nut6_thickness+...
glb/cad_3965ab13e124.glb
Create a motor end bracket for a delta printer. Start with a central motor support block that is 50mm wide, 15mm thick, and 40mm high. Remove a central rectangular slot from this block, leaving 5mm thick walls on the sides, and drill two 5mm diameter holes through the side walls. On either side of the central block, a...
use <Screws.scad> bracket(h=50,w=80,p=46,s=15,opz="yes"); module bracket(h=40,w=60,p=46,s=15,opz="yes") { wsupbarre = 20; union() { translate([-(w/2),0,0]) supportobarre12(h=h,w=wsupbarre,p=p); translate([0,12,0]) supportomotore(h=h,w=w-wsupbarre+2,s=s); translate([(w/2),0,0]) rotate([0,180,0]) supp...
glb/cad_bbe856fef11d.glb
Create a motor end bracket for a delta printer. Start with a central rectangular block 80mm wide, 60mm high, and 8mm thick. On the top surface, center a cylindrical hole with a 21mm depth and 24mm diameter to accommodate a motor shaft. Add two triangular support wings extending from the sides; each wing should be 45m...
use <bracket_strong.scad> use <screws.scad> module motor_end( h=60,w=80 ) { prof=50; halfw=w/2; zmotor = (h/2) - 22; translate([0, 0, h/2]) difference() { union() { bracket(h=h,w=w,p=50,s=15); for (x = [-halfw, halfw]) { translate([x, 30, -(h/2)]) triangolo(l=h,h=h,s=8); ...
glb/cad_25b2975ed559.glb
Create a set of polyhedral dice by constructing the following geometric shapes: First, create a d4 (tetrahedron) by scaling a basic tetrahedron to a height of 34mm. Engrave numbers 1 through 4 on its faces. Second, create a d6 (cube) by intersecting a cube of 29mm per side with an octahedron of height 18mm. Engrave n...
module dodecahedron(height) { intersection() { cube([2 * height, 2 * height, height], center = true); intersection_for(i = [0:4]) { rotate([0, 0, 72 * i]) rotate([116.565, 0, 0]) cube([2 * height, 2 * height, height], center = true); } } } module octahedron(height) { intersection() { ...
glb/cad_41f75f69b9cf.glb
Create an Idler End bracket with an overall width of 80mm and a height of 60mm. The main body is a rectangular plate 80mm wide and 60mm high. At the top center, add a rectangular block measuring 84mm wide, 20mm deep, and 8mm thick. On the left and right sides of the main body, centered at a height of 30mm, add two ve...
use <motor_end.scad> use <bracket_strong.scad> use <Screws.scad> module idler_end( h=60,w=80 ) { prof=50; halfw=w/2; zmotor = (h/2) - 22; translate([0, 0, h/2]) difference() { union() { bracket(h=h,w=w,p=prof,s=15,opz="no"); for (x = [-halfw, halfw]) { translate([x, 30, -...
glb/cad_3c79521b1edb.glb
Create an Idler End support bracket. Start with a central rectangular block 50mm high, 80mm wide, and 15mm thick. At the center of the block, create a vertical cutout 12.2mm in diameter that passes through the entire height. On the top and bottom faces of the central block, centered along the width, add two M4 counte...
use <Screws.scad> bracket(h=50,w=80,p=46,s=15,opz="no"); module bracket(h=40,w=60,p=46,s=15,opz="yes") { wsupbarre = 20; union() { translate([-(w/2),0,0]) supportobarre12(h=h,w=wsupbarre,p=p); translate([0,12,0]) supportomotore(h=h,w=w-wsupbarre+2,s=s); translate([(w/2),0,0]) rotate([0,180,0]) suppo...
glb/cad_4b93b8ad6d52.glb
Create an Idler End bracket for a 3D printer. Start with a central rectangular block that is 80mm wide, 60mm high, and 50mm deep. At the top center, add a rectangular protrusion measuring 86mm wide, 20mm deep, and 8mm high. On the left and right sides, centered vertically, add two triangular support fins. Each fin sho...
use <bracket_strong.scad> use <screws.scad> module motor_end( h=60,w=80 ) { prof=50; halfw=w/2; zmotor = (h/2) - 22; translate([0, 0, h/2]) difference() { union() { bracket(h=h,w=w,p=50,s=15); for (x = [-halfw, halfw]) { translate([x, 30, -(h/2)]) triangolo(l=h,h=h,s=8); ...
glb/cad_e801e7c74f1d.glb
Create a Turret Joint consisting of a central ball and a locking shell. Start by creating a solid sphere with a radius of 25mm to serve as the inner ball. Construct a locking shell around this ball. The shell's inner radius should be 25.75mm (ball radius plus a 0.75mm gap) and its thickness should be 2.5mm. This shel...
part_to_render = "ball"; symmetric_or_tetrahedral = "symmetric"; use_equilateral_rotors = "true" ; ball_radius = 25.0; rotor_thickness = 2.5; lock_thickness = 2.5; rotor_gap = 0.75; mounting_clevis_height = 25; least_spread_angle = 19.47; most_spread_angle = 48.59; symmetric_spread_half_angle = 15; screw_hole...
glb/cad_b7584bb8959f.glb
Create a panel honeycomb shelter for electronic circuits. Start by creating a solid rectangular slab with overall dimensions of 100mm in length, 50mm in width, and 4mm in height, centered on the origin. From this slab, remove a repeating pattern of hexagonal holes that pass completely through the 4mm thickness. Each ...
panel_honeycomb(); module panel_honeycomb( arrDim=[100,50,4], thickness=3, center=true ) { d = 8; thickness = d/3; translate([0,(arrDim[1]/2)-(thickness/2),0]) cube([arrDim[0],thickness,arrDim[2]],center=true); translate([0,-((arrDim[1]/2)-(thickness/2)),0]) cube([arrDim[0],thickness,arrDim[2]],center=true); ...
glb/cad_141717694667.glb
Create a heart-shaped compartmentalized box and a matching lid. The overall width of the heart is 80mm and the total height is 20mm. For the box, create a heart-shaped shell with a wall thickness of 2mm and a bottom thickness of 2mm. The interior should be hollowed out to a height of 18mm. Divide the interior into two...
drawbox = 1; drawlid = 1; assembled = 1; width=80; height=20; wall=2; hlid = 4; lidscale = 1.0; build_plate_selector = 2; build_plate_manual_x = 100; build_plate_manual_y = 100; $fn=50; use <utils/build_plate.scad> lr = width/4.0; lrinset = lr-wall; hcav = height*2; hinset = height-hlid; hbase = wall; bui...
glb/cad_0a37587bf493.glb
Create a Customizable Book Ring designed to hold pages open. Start with a central base plate that is 80mm wide, 4mm thick, and scaled to 70% of its original height. At the center of this plate, create a circular hole with a diameter of 10mm to accommodate a thumb. Surrounding this hole, construct a decorative star-li...
depth = 4; width = 80; heightFactor = 0.7; thumbHoleDiameter = 10; thumbHolePosition = 0; thumbBedDepth = 10; thumbBedOffset = 3; thumbBedSharpness = 1.2; wingsEndRadius = 5; $fn = 48; r2 = wingsEndRadius; d2 = r2 * 2; r1 = (width - d2) / 2; d1 = r1 * 2; module twoCircle() { translate([-r1, 0, -0.001]...
glb/cad_3114ef1ac159.glb
Create a Customizable Screwdriver Holder consisting of a rectangular base and a grid of vertical tubes. Start by creating a rectangular base plate with a thickness of 2mm. The base dimensions should be calculated based on the grid of tubes: the width should be 14mm multiplied by 3 rows, and the depth should be 14mm mul...
rows=3; number=4; height=30; inner_diameter=14; diameter = inner_diameter+1; module tube(height,width) { difference() { cylinder(r=(width/2), h=height); translate([0,0,-1]) cylinder(r=(width/2 -1), h=height+2); } } translate([-diameter/2,-diameter/2,0]) cube([rows*(diameter-1)+1,number*(d...
glb/cad_2c8ac1aa79c7.glb
Create a screwdriver stand top consisting of a rectangular base plate and a grid of vertical tubes. Start with a solid rectangular base measuring 30mm by 40mm with a thickness of 2mm. On this base, arrange a 3 by 4 grid of vertical tubes. Each tube must have an outer diameter of 15mm and an inner diameter of 14mm, with...
rows=3; number=4; height=30; inner_diameter=14; hole_diameter=7; diameter = inner_diameter+1; module tube(height,width) { difference() { cylinder(r=(width/2), h=height); translate([0,0,-1]) cylinder(r=(width/2 -1), h=height+2); } } difference() { translate([-diameter/2,-diameter/2,0]) ...
glb/cad_8148e63ad85d.glb
Create a replacement crock pot lid handle. Start with a large outer spherical shell with a radius of 108mm and a height of 9mm, and hollow it out using a slightly smaller inner sphere with a radius of 106mm. To form the grip, create a torus-like ring by rotating a circle with a radius of 7mm around a central axis at a ...
big_r = 108; dome_h = 9; r = 72 / 2; handle_r = 14/2; $fa = 2; module nut() { cylinder(h = 6, r = 12.35/2, $fn = 6); } intersection() { difference() { union() { difference() { union() { translate([0, 0, -big_r+dome_h])sphere(r=big_r); scale([1, 1, 1.2]) rotate([90, 0, 0]) rotate_extrud...
glb/cad_77897a5614ac.glb
Create a Sierpinsky Tetrix lamp with an overall edge length of 100mm and a recursive order of 3. The main structure is a fractal tetrahedron composed of smaller tetrahedra. Each single tetrahedron unit is defined by four vertices: one at the top apex and three forming an equilateral base. To ensure the fractal componen...
order=3; size=100; supportthickness=7; supportangle=0.6; adhesion=0.35; stick= 0.000; difference(){ translate([size,0,0]) cylinder(r=20,h=sqrt(2)/sqrt(3)*size); translate([size,0,0.4]) cylinder(r=19,h=sqrt(2)/sqrt(3)*size); } TETRA_POINTS = [ [1/sqrt(3), 0, 0], [-1/(2*sqrt(3)), 1/2, 0], [-1/(2*sqr...
glb/cad_be4afb96522d.glb
Create a Sierpinsky Tetrix Lamp by constructing a recursive fractal tetrahedron. Start with a base tetrahedron with an edge length of 220mm. Recursively divide this shape into four smaller tetrahedra at each level for 4 iterations, ensuring a slight overlap of 0.4mm between the connecting vertices for structural adhesi...
include <threads.scad>; order=4; size=220; size2=129; adhesion=0.4; supportthickness=7; supportangle=0.6; showbulb=0; lamp(); stick=0.00; TETRA_POINTS = [ [1/sqrt(3), 0, 0], [-1/(2*sqrt(3)), 1/2, 0], [-1/(2*sqrt(3)), -1/2, 0], [0, 0, sqrt(2/3)] ]; module tetra() { polyhedron( points...
glb/cad_73094b287988.glb
Create a Dronco Holder consisting of a main rectangular body and four mounting lugs. The main body is a block 30mm wide, 65mm deep, and 41mm high. At the base, add two wide rectangular plates: one measuring 34mm by 8mm by 10mm positioned at the front (y=0), and another 34mm by 8mm by 10mm positioned at the rear (y=57)....
$fn=15; module screw_hole(inner_diameter, wall_thickness, height) { difference() { cylinder(r=inner_diameter/2+wall_thickness, h=height); translate([0,0,-1]) cylinder(r=inner_diameter/2, h=height+2); } } module paper_holder() { difference() { cube([30,70,10]); translate([1,1,1])...
glb/cad_f1629eb67a4e.glb
Create a Camera Bike Mount consisting of two identical mirrored clamping pieces. For each piece, start with a central rectangular block 17mm wide, 25mm deep, and 22mm high. Add two smaller rectangular extensions to the top and bottom faces, each measuring 17mm wide, 13mm deep, and 8mm high, centered along the depth axi...
mountHoleRadius = 2; handleBarRadius = 12.5; difference() { union() { cube([17,25,22],true); translate([0,19,-7]) cube([17,13,8],true); translate([0,-19,-7]) cube([17,13,8],true); } translate([0,-19,-7]) cylinder(23,mountHoleRadius,mountHoleRadius,true); translate([0,19,-7]) cylinder(23,mountHoleRadius,mountHoleRad...
glb/cad_3602a17c5fd2.glb
Create a deltoidal hexecontahedron, a 60-sided fair die where every face is an identical kite. The overall scale of the model should be increased by a factor of 1.25. The geometry is defined by 62 vertices. Key coordinates include points at $(\pm\sqrt{5}, 0, 0)$, $(0, \pm\sqrt{5}, 0)$, and $(0, 0, \pm\sqrt{5})$, as we...
C0 = (5 - sqrt(5)) / 4; C1 = (15 + sqrt(5)) / 22; C2 = sqrt(5) / 2; C3 = (5 + sqrt(5)) / 6; C4 = (5 + 4 * sqrt(5)) / 11; C5 = (5 + sqrt(5)) / 4; C6 = (5 + 3 * sqrt(5)) / 6; C7 = (25 + 9 * sqrt(5)) / 22; C8 = sqrt(5); echo(C0); echo(C1); echo(C2); echo(C3); echo(C4); echo(C5); echo(C6); echo(C7); echo(C8); font = "L...
glb/cad_15f6c100d70b.glb
Create a mobile crank handle consisting of a central clip and two handle grips. First, create the clip as a hollow cylinder with a height of 4mm, an outer radius of 9mm, and an inner radius of 4.25mm. To make the clip flexible for installation, remove a semi-cylindrical section from the top face with a radius of 7.2m...
h = 4; r = 4.25; R = 9; d = (R-r)/2; x = R+3*r/4-2-r/4; outter_square = 2*R+3*r/2; inner_square = 2*R+r/2; echo((outter_square-inner_square)/2); module part1() { difference() { cylinder(h=h, r=R, $fn=64); union() { cylinder(h=h, r=r, $fn=32); cylinder(h=h/2, r=(R+r)/2, $fn=32); translate([R...
glb/cad_c6cdcf5cb556.glb
Create a Landrover Series II Ventilator Knob by revolving a specific 2D profile around a central Z-axis. The profile starts at the origin and follows these coordinates: from [0,0] to [8.05,0], then up to [9.17,17.63], [10,20], [11.39,22.09], [10,24], [7,25], [4,26], and finally to [0,26.64]. This rotation creates a rou...
$fa = 0.51; difference() { rotate_extrude() handle2d(); translate ([-6,-3,0]) linear_extrude( height=13 ) cutout(); } module handle2d() { polygon (points = [ [ 0,0],[8.05,0],[9.17,17.63],[10,20], [11.39,22.09],[10,24],[7,25],[4,26], [0,26.64]]); } module cutout(){ polygon (points=[[0,0],[11,0],[11,7]] );...
glb/cad_5bf870ef3169.glb
Create a keychain for a UW event by starting with a base plate that is 80mm long, 16mm wide, and 2mm thick. The base should have rounded ends, formed by creating a hull between a central rectangular block and four cylinders with a 2mm radius positioned at the corners of the 80mm length. At one end of the plate, centere...
use <write/Write.scad> text="BATMAN"; difference(){ hull(){ cube([80,16,2],center=true); translate([40,8,0])cylinder(r=2,h=2,center=true,$fn=20); translate([-40,8,0])cylinder(r=2,h=2,center=true,$fn=20); translate([40,-8,0])cylinder(r=2,h=2,center=true,$fn=20); translate([-40,-8,0])cylinder(r=2,h=2,center=...
glb/cad_a6169dbd791f.glb
Create a 3D quantized surface generator consisting of a grid of rectangular prisms. The overall model is scaled by a factor of 2.5 in all dimensions. Generate a 21 by 21 grid of columns where the x and y coordinates range from -10 to 10 in increments of 1 unit. At each integer coordinate (i, j), place a rectangular pri...
x_max = 10; x_min = -10; y_max = 10; y_min = -10; scale ([2.5,2.5,2.5]) { union() { for(i = [x_min:x_max]) { for(j = [y_min:y_max]) { translate([i,j,0]) { cube([1.0001,1.0001,15+pow(j+i,2)/30-pow(j-i,2)/30]); } } } } }
glb/cad_7c4f6c588d62.glb
Create a square plaque for a recycle center label with overall dimensions of 101.6mm by 101.6mm and a thickness of 3.175mm. The plaque should have a recessed central area that is 1.5875mm deep, leaving a raised border around the perimeter. The four corners of the plaque must be rounded with a radius of 6.35mm. Within...
thickness=0.125; width=4; height=4; recess_percent=50; fake_rivets=0; image="paper_cardboard.dxf"; xoffs=2.7; yoffs=4.5; function in2mm(in)=25.4*in; module plaque(){ width=in2mm(width); height=in2mm(height); thickness=in2mm(thickness); recess=thickness*(recess_percent/100.0); corner_r=in2mm(1/2)/2; corne...
glb/cad_0a7381ffed3f.glb
Create a Makerbot 1 kg Spool Holder by constructing a composite geometric form. Start with a base rectangular block measuring 19mm by 19mm with a height of 7mm. Attached to this base, place a second rectangular block measuring 27mm wide, 51mm deep, and 10mm high, positioned so it extends from the base. Add a third vert...
difference() { union () { translate([0,-5,0])cube([19,19,7]); translate([-5,-7,7]) cube([27,51,10]); translate([-5,34,-80]) cube([27,10,90]); translate([-5,32,-50]) cube([27,3,50]); } translate([8.5,45,-60]) rotate(a=[90,0,0])cylinder(12,10,10); }
glb/cad_1c225acd0705.glb
Create a Makerbot spool holder consisting of two stacked cylinders. First, create a main vertical cylinder with a radius of 10mm and a height of 75mm. On top of this base, centered at a height of 74mm, place a second, wider cylinder that serves as a cap. This cap must have a radius of 21mm and a height of 3mm, extendin...
union () { cylinder(75,10,10); translate([0,0,74])cylinder(3,21,21); }
glb/cad_f6a26a898275.glb
Create a Prusa i3 Greg's adapter for a single plate X-carriage. Start with a base plate measuring 75.8mm in length, 43.5mm in width, and 6mm in thickness. Attach a front plate to the side of the base plate with a thickness of 5mm and a height of 31.1mm. Add two side locks to the edges of the front plate, each with a le...
use <nuts_and_bolts.scad>; tollerance = 0.2; screw_tollerance = 0.6; groove_dia = 12+tollerance; groove_thickness = 4.40; hotend_dia = 16+tollerance; greg_width = 31.5; greg_length = 76-tollerance; greg_screws = 4+screw_tollerance; wheels_offset = 12.5; hole_0_1 = 34; hole_0_2 = 15.5; hole_1_1 = 9.5; hole_1_2 = 15.2...
glb/cad_5c0d01d6bc41.glb
Create a protective case for an Arduino Ethernet Pro board. Start by constructing the main body with a total height of 21mm, consisting of a 2mm thick base plate and walls that extend upward. Within the case, integrate four standoffs that are 6mm high to support the circuit board. At the four corners of the base, add ...
c=false; th=2.0; height=21.0; soh=6.0; ch=5.0; dxf="Arduino Ethernet Pro Case.dxf"; shell="shell"; bottom="bottom"; standoffs="standoffs"; scale=1.0; arduinoCase(); module arduinoCase() { difference() { arduinoCasePlain(); translate( [-40,-8.5,soh+1] ) cube( size=[2*th,17.5,14], center=c ); translate( [-40,...
glb/cad_ebf857d6faf7.glb
Create a customizable storage box system consisting of a drawer and a multi-slot enclosure. For the drawer, create a rectangular box with outer dimensions of 21.6mm width, 11.8mm height, and 66.8mm length (based on 0.8mm walls). Hollow out the center to create an inner cavity of 20mm width, 10mm height, and 65mm leng...
drawerWidthInner = 20; drawerHeightInner = 10; drawerLengthInner = 65; enabelLabel = "true"; depthLabel = 0.4; handleHeight = 3; handleDepth = 7; handleLength = 18.4; handleIndentWidth = 0; handleIndentTop = 0; handleIndentSide = 0; columns = 4; rows = 3; enclosureClearance = 0.7; nozzleSize = 0.4; walls...
glb/cad_0c3b63841e45.glb
Create a clothes rail mount by starting with a central cube measuring 50mm x 50mm x 15mm. From this base, remove a central cylindrical hole with a radius of 13.5mm and a height of 20mm. Additionally, carve out a rectangular slot measuring 27mm wide, 26mm deep, and 22mm high, centered along the Y-axis but offset so it o...
difference() { cube(size=[50,50,15], center=true); cylinder( r=13.5, h = 20, center=true); translate( v=[0,-12.25,0] ) { cube( size=[27,26,22], center=true ); } translate( v=[-18.75,-18.75,0] ) { cube( size=[3,3,30], center=true); } translate( v=[-18.75,18.75,0] ) { cube( size=[3,3,30], center=true); } translate( v...
glb/cad_664f828d1c1a.glb
Create an MK8 Adjustable Fan Holder consisting of a face plate, hinge slides, fan plates, and directional ducts. Start with a face plate base measuring 42mm wide, 10mm high, and 6mm deep. Center two 4mm diameter thru-holes 31mm apart. Attach two rails to the base, each 50mm long with a depth of 2mm and a narrow width...
part = "All"; rail_polar_1 = 0; rail_polar_2 = 20; faceplate_base_width = 42; faceplate_base_height = 10; faceplate_base_depth = 6; faceplate_hole_diam = 4.0; faceplate_hole_dist = 31; rail_width0 = 6; rail_depth = 2; rail_length = 50; rail_offset = 2; rail_clear = 0.4; hinge_diam = 8.0; hinge_holediam = ...
glb/cad_02ca3f7525a7.glb
Create a CNC clamp by first constructing a main body that combines a central rectangular block with four outer posts. Start with a central block 20mm wide, 37mm long, and 9.5mm high. At each of the four corners of this block, place a cylinder with a radius of 1.5mm and a height of 9.5mm. Use a convex hull to enclose th...
$fn = 40; difference() { union() { difference() { hull() { cube([20.0, 37.0, 9.5], center=true); translate([-9.25, 17.75, 0.0]) { cylinder(r=1.5, h=9.5, center=true, $fn=20.0); } translate([-9.25, -17.75...
glb/cad_44675a899cc8.glb
Create a water-tap handle by constructing a central sphere with a diameter of 24mm. From the center of this sphere, extend two identical tapered cylinders outward in opposite directions along a single axis. Each cylinder should have a length of 32mm, starting with a base radius of 5.6mm where it meets the sphere and ta...
$fn=60; largeg(); module griff(){ sphere(6); translate([0,-5,0]) rotate([87,0,0]) cylinder(h=16,r1=5.6/2,r2=4.1); translate([0,5,0]) rotate([-87,0,0]) cylinder(h=16,r1=5.6/2,r2=4.1); } module largeg(){ difference(){ scale([2,2,2]) griff(); for( i = [0:5]){ translate([0,0,1-i*2.2]) griff(); } translat...
glb/cad_bc7df26558f5.glb
Create a laptop support for a DJ flycase consisting of a hollow rectangular box with an integrated hook. The main body is a box with outer dimensions of 170mm in length, 50mm in width, and 100mm in height, with a wall thickness of 2mm. The box is open at the top and has a beveled interior. On the two shorter side wall...
detail = 100; longueur = 170; largeur = 50; hauteur = 100; largeur_encoche = 4; largeur_bordure = 4; largeur_rainure = 15; profondeur_encoche = 8; epaisseur = 2; module boite(longueur, largeur, hauteur, epaisseur){ largeur_biseau = largeur/2; translate([0,0,hauteur/2-(hauteur-largeur_biseau)/2]) difference...
glb/cad_ee22a19343f2.glb
Create a laptop support for a DJ flycase. The model consists of a main platform and a mounting bracket. First, create a rectangular platform for the laptop that is 180mm long, 20mm high, and 20mm wide. The platform should have rounded edges with a radius of 2mm. Attached to the platform, create a mounting bracket des...
epaisseur_flycase = 14.5; hauteur_flycase = 65; epaisseur = 4; epaisseur_minkowski = 2; epaisseur_triangle = epaisseur/2; longueur_support = 180; largeur_support = 20; longueur_PC = 180; hauteur_PC = 20; detail = 100; angle = 30; nb_triangles = 7; cote_grand_triangle = longueur_PC/nb_triangles; cote_triangle = cote_gra...
glb/cad_856abcc184f9.glb
Create a Gaggia Classic drip tray by starting with a solid rectangular block measuring 124mm wide, 194mm long, and 51mm high, centered on the origin. From this main body, remove a central rectangular section to create an open tray. This cutout should be 92mm wide and 162mm long, extending from the top surface down to a...
include <MCAD/shapes.scad> height_text_box=51; tray_width_text_box=98; tray_length_text_box=168; bottom_thickness_slider=5; tray_height_slider=5; tray_lip_slider=6; height = height_text_box; tray_width = tray_width_text_box; tray_length = tray_length_text_box; bottom_thickness = bottom_thickness_slider; tray_hei...
glb/cad_f8f20b0ecec1.glb
Create a reinforced cable spool consisting of a base and a lid. For the base, start with a central hub that has a radius of 8mm and a height of 15mm. The hub should have a hollow center. Around this hub, create a circular base plate with a thickness of approximately 1.92mm. Add a snap-fit rim around the outer edge of...
r=8; hi=15; cord = 4; cordmargin = 2; conn=15; length=3500; w=.60*4; t=0.24*8; snap=w*0.7; openings=2; outer_slots=19; outer_slots_width=6; outer_slots_depth=0.60*1; outer_slots_height_margin=2 ; tol=0.15; $fa=4; $fs=1; base(); tp=cord*cord/hi; turns=-r/tp+sqrt(r*r/tp/tp+length/3.1416/tp); layers = ceil(turns*cord/h...
glb/cad_7470dddee54a.glb
Create a reinforced cable spool consisting of a base and a lid. For the base, start with a central hub of radius 8mm and height 15mm. The hub should have a hollowed-out center with a "yin-yang" style curved profile. Add a bottom flange with a radius of approximately 22mm and a thickness of 1.92mm. Incorporate a snap-...
r=8; hi=15; cord = 4; cordmargin = 2; conn=17; length=1500; w=.60*4; t=0.24*8; snap=w*0.7; openings=2; outer_slots=13; outer_slots_width=9; outer_slots_depth=0.60*35; outer_slots_height_margin=2 ; tol=0.15; $fa=4; $fs=1; rotate([180,0,0])lid(); tp=cord*cord/hi; turns=-r/tp+sqrt(r*r/tp/tp+length/3.1416/tp); layers = ...
glb/cad_424fef1457dd.glb
Create a reinforced cable spool consisting of a base and a lid. The base is a circular disk with a central hub of radius 10mm and a total height of 16mm. The hub features a "yin-yang" style internal geometry to facilitate cable winding. At the bottom of the base, include a snap-fit ring with a radius of approximately 2...
r=10; hi=16; cord = 6; cordmargin = 2; conn=15; length=3500; w=.60*4; t=0.24*8; snap=w*0.7; openings=2; outer_slots=19; outer_slots_width=6; outer_slots_depth=0.60*1; outer_slots_height_margin=2 ; tol=0.15; $fa=4; $fs=1; base(); tp=cord*cord/hi; turns=-r/tp+sqrt(r*r/tp/tp+length/3.1416/tp); layers = ceil(turns*cord/...
glb/cad_b61a933c3f25.glb
Create a reinforced cable spool consisting of a base and a lid. For the base, start with a central hub of 10mm radius and 16mm height. Build a circular platform around this hub with a total height of 18.19mm. The base features a snap-fit rim and a guide system to align the lid. Incorporate a "yin-yang" style curved g...
r=10; hi=16; cord = 6; cordmargin = 2; conn=17; length=3500; w=.60*4; t=0.24*8; snap=w*0.7; openings=2; outer_slots=23; outer_slots_width=10; outer_slots_depth=0.60*35; outer_slots_height_margin=2 ; tol=0.15; $fa=4; $fs=1; rotate([180,0,0])lid(); tp=cord*cord/hi; turns=-r/tp+sqrt(r*r/tp/tp+length/3.1416/tp); layers ...
glb/cad_ee6794382183.glb
Create a filament spool arm with a total thickness of 5mm. The main body is a rectangular arm extending 130mm in length. At the pivot end, create a rounded profile with a radius of 9.9mm. Center a vertical hole through the pivot point with a radius of 2.6mm to accommodate an M5 bolt. This hole should extend through t...
armt=5; arml=130; cf=1; l=56; l2=22; w=20; bh=3; r1=9.9; rs1=2.6; color([0.5,0.5,0.6]) difference() { union() { hull() { translate([0,0,0]) cylinder(r1=r1-cf,r2=r1,h=cf+0.01,$fn=64); translate([0,0,cf]) cylinder(r=r1,h=armt-cf*2,$fn=64); translate([0,0,armt-cf-0.01]) cyli...
glb/cad_28b9387dda7c.glb
Create a Harmonica Comb by starting with a rectangular block measuring 100.5mm in length, 26.8mm in width, and 6.3mm in thickness, with the four outer corners rounded to a 3mm radius. On the top face, carve out a central rectangular recess for the reed plates measuring 100.8mm by 27.2mm with a depth of 0.93mm and rou...
WhatToShow=0; ShowReedPlates=1; ShowScrews=1; HoleOS=0.1; HarmonicaType="Suzuki Olive"; ScrewHoleWall=1; FlushReedPlates=1; L=100.5; W=26.8; T=6.3; CornerR=3; CoverHoleXEdge=4.3; CoverHoleYEdge=10.8; CoverHoleD=4; CoverScrewHoleD=4; FullSlots=0; SlotDivider=3.2; SlotPitchTotalOuter=71.3; SlotDepths=[23...
glb/cad_a1fe5a4df049.glb
Create a slow cooker handle by constructing a curved, block-like grip. Start with a base shape formed by the intersection of a cylinder with a radius of 107.5mm and a rectangular slab 70mm wide, 20mm deep, and 40mm thick. From this base, remove a central cylindrical section with a radius of 107.5mm to create a concave ...
cooker_radius = 107.5; screw_hole_radius = 1.4; module base() { difference() { intersection(){ rotate([270,180,0]){ linear_extrude(height=40) { hull(){ translate([-35,5,0]) circle(5); translate([-35,15,0]) circle(5); translate([35,5,0]) circle(5); translate([35,15,0]) circ...
glb/cad_5ee7715f6974.glb
Create a HeatBed assembly by stacking several rectangular plates. Start with a base MDF plate measuring 250mm x 215mm x 20mm. Centered on top of this, add a cork layer measuring 214mm x 214mm x 4mm. Above the cork, place a heating element plate measuring 214mm x 214mm x 1.7mm. On the very top, place a glass plate measu...
hotbed(); module hotbed() { wVetro = 212; pVetro = 210; sVetro = 2; wHeatBed = 214; pHeatBed = 214; sHeatBed = 1.7; wSughero = 214; pSughero = 214; sSughero = 4; wMDF = 250; pMDF = 215; sMDF = 20; wHalfMDF = wMDF/2; pHalfMDF = pMDF/2; difference() { union() { yoff = sM...
glb/cad_578da887ed19.glb
Create a mounting bracket for an Arduino Mega 2560 and RAMPS board. Start with a central rectangular base plate measuring 101.6mm in length, 53.34mm in width, and 4mm in thickness. Center a rectangular cutout of 79.6mm by 37.34mm in the middle of this plate. At each of the four corners of the base plate, add a cylindr...
l=101.6; p=53.34; h=12.5; lhalf=l/2; phalf = p/2; yhalfhole=48.26/2; xhole1=74.93; xhole2=81.28; xoffset=15.2; ph=95/2; wh=135/2; bracket_ramps(); module bracket_ramps() { translate([0,0,0]) piastra_ramps(); translate([wh,ph,-2])rotate([0,0,-180]) ancoraggio(w=18,p=18); translate([wh,-ph,-2]) rotate([0,0,90...
glb/cad_3e1873f44179.glb
Create a Koni Sport Shocks Adjustment Knob consisting of a wide circular grip and a central protruding tool head. Start by creating a main cylindrical gripper with a radius of 25mm and a height of 10mm. Hollow out the center of this cylinder to leave a wall thickness of 2mm, and round the bottom outer edge with a radiu...
shock_adjuster_x = 6; shock_adjuster_y = 3.5; shock_adjuster_height = 4; grip_radius = 25; gripper_thickness = 2; gripper_height = 10; center_reinforcement_radius = 8; tool_head_height = 10; tool_head_radius = 6; pad = .1; round_radius = 4; round_smooth = 32; difference(){ union(){ cylinder(r=grip_radiu...
glb/cad_133117f96240.glb
Create a CopterControl bracket starting with a square base plate measuring 62mm by 62mm with a thickness of 2mm. Center the plate on the origin. To create the mounting points, add four cylindrical standoffs with a radius of 3mm and a height of 4mm. Position these standoffs at the corners of a square with a diagonal mea...
plate_w = 62; plate_l = 62; plate_t = 2; standoff_height = 2; board_screw_radius = 1.5; mounting_screw_radius = 1.5; openpilot_board_corners = 43; mounting_screw_distance = 62; difference(){ union(){ cube([plate_w,plate_l,plate_t], center=true); for (i=[1:4]){ rotate([0,0,90*i])translate([openpilot_bo...
glb/cad_a4d1bf5ce3e7.glb
Create a Stock Market Advisor die by starting with a cube that has a total side length of 44mm. Round all edges and corners using a radius of 4mm. Engrave the following text into the center of the faces using a bold Helvetica font with a depth of 4mm: place the word "BUY" on the top and bottom faces, and the word "SE...
die_size = 44; die_size2 = die_size / 2; rounding = 4; translate([0, 0, die_size2+rounding+8.5]) { rotate([45, 0, 0]) rotate([0, 90, 0]) { StockPicker(bear=false, bull=false); } } hull() { translate([die_size2-rounding, 0, 0]) cylinder(6.5, 6, 0); translate([rounding-die_size2, 0, 0]) cylinde...
glb/cad_f8f22ae236ab.glb
Create a customizable screwdriver wall mount consisting of a backplate and a grid of cylindrical tubes. Start with a rectangular base plate 2mm thick, with dimensions calculated to fit a grid of 3 rows and 4 columns of tubes. The total width and depth of the base should accommodate the tubes spaced 13mm apart from cent...
rows=3; number=4; height=30; inner_diameter=14; hole_diameter=7; diameter = inner_diameter+1; module tube(height,width) { difference() { cylinder(r=(width/2), h=height); translate([0,0,-1]) cylinder(r=(width/2 -1), h=height+2); } } difference() { translate([-diameter/2,-diameter/2,0]) ...
glb/cad_ab96c788ce9b.glb
Create a castering wheel foot enclosure plug designed to fit into a 17.5mm square tube. The main body is a square prism with a base width of 14.7mm and a total height of 20.68mm. Build the exterior by adding three tiered square sections that gradually widen: the first section is a 14.7mm cube, the second is a 17.1mm ...
difference() { union() { cube( [14.7, 14.7, 20.68] ); hull() { translate( [ -1.07, -1.07, 18.40 ] ) cube( [16.84, 16.84, 2] ); translate( [0, 0, 17.40 ] ) cube( [14.7, 14.7, 1] ); } hull() { translate( [ -1.2, -1.2, 13.34 ] ) cube( [17.1, 17.1, 2] ); translate( [0, 0, 12.34 ] ) cube( [14.7, ...
glb/cad_2e79a883896b.glb
Create a two-color polyhedral die in the shape of a cube. First, construct the inner core by creating a cube with a side length of 13.5mm, centered on the X and Y axes and positioned 8mm above the base plane. Then, create an outer shell by forming a larger cube with a side length of 16mm, also centered on the X and Y a...
include <polyhedral_dice.scad>; translate([0, 0, 8]) { intersection() { union() { cube([13.5, 13.5, 13.5], center = true); cubetext(16); } cube([16, 16, 16], center = true); } }
glb/cad_064ef3ae6651.glb
Create a polyhedral die by constructing an octahedron with a diameter of 18mm. From this primary shape, remove a smaller concentric octahedron with a diameter of 15.5mm to create a hollow shell. To further refine the geometry, intersect this hollowed octahedron with a centered cube measuring 29mm on all sides. Finally,...
include <polyhedral_dice.scad>; translate ([0, 0, 0]) { translate ([0, 0, 9]) { difference() { intersection() { octahedron(18); rotate([45, 35, -30]) cube([29, 29, 29], center = true); } octatext(18); octahedron(15.5); } } }
glb/cad_486636cae8c6.glb
Create a Screwless Cube Gears model consisting of a central block and several bevel gears. First, construct the center block by intersecting four cubes of size 16.67mm, each rotated 90 degrees around the X-axis relative to the next, and then intersecting this result with a cube of size 36mm centered at the origin. Fr...
use <MCAD/involute_gears.scad> include <downloads/pins.scad> center(); cs=50; rf1=0.72*cs; cp=1/3; ph=7; pinshaft_diameter=8; pinhole_tolerance=0.1; $fs=0.5; b=0.5; s=0.01; n1=18; n2=9; r1=0.7493; r2=0.3746; dc=rf1/sqrt(1-pow(r1,2)); theta=asin(1/sqrt(3)); pitch=360*r1*dc/n1; rf2=sqrt(pow(dc,2)-pow(r2*dc,2)); phi1...
glb/cad_ca1d53bbaf8b.glb
Create a Screwless Cube Gears set consisting of a central block, two types of bevel gears, and connecting pins. First, create a center block by intersecting four cubes of size 50mm, each rotated to form a complex polyhedral core. Remove a central vertical slot of 0.5mm width and a corresponding horizontal slot to cre...
use <MCAD/involute_gears.scad> include <pins.scad> pin1();translate([12,0,0])pin2(); cs=50; rf1=0.72*cs; cp=1/3; ph=8; pc=3; pd=7; $fs=0.5; b=0.5; s=0.01; n1=18; n2=9; r1=0.7493; r2=0.3746; dc=rf1/sqrt(1-pow(r1,2)); theta=asin(1/sqrt(3)); pitch=360*r1*dc/n1; rf2=sqrt(pow(dc,2)-pow(r2*dc,2)); phi1=90/n1; phi2=90/n2...
glb/cad_70125897acd5.glb
Create a 3D model of a cube, which is a basic form in the cubic system. The cube should have a side length of 20mm. Center the cube at the origin (0, 0, 0) so that its faces are parallel to the primary XY, YZ, and XZ planes. Ensure the geometry is a solid, closed volume with six equal square faces meeting at 90-degree ...
form=0; size=20; rotate_x=0; rotate_y=0; function flatten(l) = [ for (a = l) for (b = a) b ] ; function vcontains(val,list) = search([val],list)[0] != []; function distinct(list,dlist=[],i=0) = i==len(list) ? dlist : vcontains(list[i],dlist) ? distinct(list,dlist,i+1) ...
glb/cad_e5fa9b573a79.glb
Create a 3D model of the MoreDelta printer. Start with a central square base platform measuring 560mm by 560mm with a thickness of 25mm. Position three vertical assemblies arranged in an equilateral triangle around the center, each 250mm from the center. Each assembly consists of a motor end at the bottom (60mm heigh...
use <motor_end.scad> use <hotbed.scad> use <idler_end.scad> use <carriage_sc12uu.scad> use <foot_delta.scad> use <joint.scad> use <junction.scad> use <panel_honeycomb.scad> use <Platform.scad> use <supporto_case_AliATX.scad> use <supporto_case_AliATXBis.scad> use <supporto_case_ramps.scad> use <supporto_case_rampsBis.s...
glb/cad_ec47bc8d1607.glb
Create a replicator foot with a flat bottom. Start by constructing a central cylindrical body with a radius of 15.5mm and a height of 20mm. Add a wider cylindrical base section with a radius of 20mm and a height of 5mm at the bottom. Above this base, add a slightly narrower cylindrical section with a radius of 18mm and...
difference () { union(){ translate ([ 15, 15, -8]) cylinder (h=20, r=15.5, $fn=100); translate ([ 15, 15, -8]) cylinder (h=5, r=20, $fn=100); translate ([ 15, 15, -6]) cylinder (h=5, r=18, $fn=100); translate ([ 5, 16, -8]) cylinder (h=20, r=8, $fn=100); translate ([ 5, 14.75, -8]) cylinder (h=20, r=8, $fn=1...
glb/cad_60e65957b246.glb
Create two conical ramekins with a wall and base thickness of 2mm. For the first ramekin, create a truncated cone with a height of 48mm, a bottom radius of 24mm, and a top radius of 37mm. Hollow out the center by removing a smaller truncated cone starting 2mm from the bottom, with a bottom radius of 22mm and a top ra...
$fn=150; thickness = 2; module 2oz_ramekin () { difference() { difference () { cylinder (r1=46/2,r2=62/2,29); translate ([0,0,thickness]) cylinder (r1=46/2-thickness,r2=62/2-thickness,29); } color("cyan", 1) translate ([-48/3...
glb/cad_5b1412e6568f.glb
Create a SPOT Gen 2 Case Protector Cover. The main body is a hollowed-out shell with an outer height of 95mm, width of 67mm, and depth of 26mm. The exterior is formed by a hull of spheres and a central scaled sphere to create a rounded, organic rectangular shape. The interior is hollowed out using a similar but slightl...
h=95; w=67; d=26; r=30; $fn=90; difference () { union () { translate([0.8,0,0]) scale([1.05,1.05,1.00]) spotoutside(); hull () { translate([h/2+12,-w/2+15,0]) cylinder(d=10,h=4); translate([h/2+12,w/2-15,0]) cylinder(d=10,h=4); translate([27,-w/2+7,0]) cylinder(d=10,h=10); translate...
glb/cad_fcee6e5bb671.glb
Create a Pseudo Seven Sided Dice by constructing two identical seven-sided pyramids joined at their bases. Each pyramid's base is a regular heptagon with a radius of 21.875mm (12.5mm scaled by 1.75), and the total height of the combined shape is 43.75mm. To ensure the dice is not stable on its edges, rotate one of the ...
font = "Liberation Sans"; letter_size = 6; letter_height = 2; r10 = 12.5; lsx = 5.25; scale(1.75) intersection() { translate([0,0,-25]) rotate([0,0,360/14]) poly_7(50); intersection() { translate([0,0,-25]) poly_7(50); union() { difference() { polyhedron(vertices,faces); decorate_14(); } translate([0,0,0.001...
glb/cad_8fb7e1c2333e.glb
Create a clip for a Haptic Headband. Start with a base rectangular block that is 17mm wide, 11mm deep, and 1.5mm thick. Center this block on the X and Y axes. On the top surface of this block, create a rounded profile by intersecting it with a cylinder that has a radius of 14mm and a height of 3mm, centered on the sa...
$fn=50; testText = ["Spider"]; testText2 = ["Sense"]; slabX = 60; dotRadius = 1; charWidth = 8; resolution = 5; lineHeight = 10*dotRadius; totalHeight = len(testText)*lineHeight; slabY = totalHeight; clip(); module clip(){ difference(){ union(){ translate([19.5,0,0.75])cube([17,11,1.5],true); intersection(...
glb/cad_e494cc013caa.glb
Create a 3D model of a Braille label for a Haptic Headband control box. The design consists of two rows of Braille characters embossed on a flat surface. Each Braille dot is composed of a cylinder with a radius of 1mm and a height of 1.5mm, topped with a sphere of the same 1mm radius. The first row of text reads "S...
testText = ["Spider"]; testText2 = ["Sense"]; slabX = 60; dotRadius = 1; charWidth = 8; resolution = 5; lineHeight = 10*dotRadius; totalHeight = len(testText)*lineHeight; slabY = totalHeight; translate([0, 0, 1]) { for(i = [0: len(testText)]) { translate([-len(testText[i])*charWidth/2, totalHeight/2-lineHeight*i, ...
glb/cad_b617dd9220a1.glb
Create a Penrose Cubes model consisting of a base plate and a geometric pattern of interlocking tiles. Start by creating a thin cylindrical base plate with a diameter of 45mm and a height of 0.75mm. The plate should have an 11-sided polygonal profile. Add a thin rim around the edge of this plate by creating a slightly ...
plate_sides=11; plate_diameter=45; sw=.5; sl=5; sh=.15; pw=80; pl=80; ph=.75; layers=10; jump=.05; spread=1.04; $fn=90; plate_dims=[pw,pl,ph]; strip_dims=[sw,sl,sh]; module sph () { translate ([5,4,-8]) sphere(1); } module strip(){ cube(strip_dims, center=true); } module plate() { translate ([0,0,-ph/2]) ...
glb/cad_025c36cc7b74.glb
Create a Raspberry Pi Rack base plate as a rectangular slab measuring 85mm by 56mm with a thickness of 2mm. Round the four corners of the slab with a radius of 3mm. At each of the four corners, centered 3.5mm from the edges, create a mounting standoff. Each standoff consists of a 4mm diameter cylinder with a height o...
poles = 0; poleheight = 16.5; vented = 1; standoffs = 1; corner_radius = 3; $fn=64; x=85; y=56; thickness=2; offsetheight=3; module pole(x,y,height=0) { translate([x,y,thickness]) { cylinder(offsetheight,d=4); translate([0,0,offsetheight]) cylinder(2+height,d=2.5); } } module indent(x,y,depth=thicknes...
glb/cad_0d2e6bdd78ca.glb
Create a Parametric Overhang Test Piece starting with a rectangular base measuring 50mm wide, 1mm thick, and approximately 55mm long. Centered along the width of this base, construct a series of 13 parallel walls, each 1mm thick. Space these walls evenly with 3mm gaps between them. Each wall should be a symmetrical gab...
baseThickness = 1; baseWidth = 50; wallSpacing = 3; wallThickness = 1; numWalls = 13; startAngle = 25; angleIncrement = 3; cube(size = [baseWidth,numWalls*wallThickness+(numWalls+1)*wallSpacing,baseThickness+0.01]); for (i = [1:numWalls]) { translate([baseWidth/2,i*(wallSpacing+wallThickness),baseThickness]) rotate...
glb/cad_3f8532ffce97.glb
Create a drill collar with an external diameter of 60mm and a total height of 25mm. The main body is a cylinder with a 60mm diameter and a height of 20mm. Carve a central vertical hole through the entire height with a diameter of 50mm. Additionally, remove a smaller concentric core with a diameter of 35mm that extends ...
de=60; dct=35; h=25; t=5; di=50; drill_collar(); module drill_collar() { difference() { union() { anello(); cylinder( d=de,h=h-t,$fn=128, center=true); } translate([0,0,15]) cylinder( d=di,h=h,$fn=128, center=true); translate([0,0,0]) cylinder( d=dct,h=h+1,$fn=128, center=true)...
glb/cad_4ad823357bcb.glb
Create a sliding drain for water removal. Start by constructing a base plate that is 10mm thick. On one end, create a semi-circular housing with an outer diameter of 54mm and an inner cutout diameter of 42mm, forming a curved wall with a thickness of 6mm. This semi-circular section should be integrated into a rectangul...
down = 3 + 0; difference () { cube(size = [47,14,10]); translate ([0, 7, 0]) cube(size = [40,7,10]); } translate ([47, 0, 0]) cube (size = [15, 7, 10]); difference() { hull () { difference() { translate ([-27, down, 0]) cylinder (h = 10, d = 54, center = false); translate ([-54, -27 + down, 0]) cube(size = ...
glb/cad_fb5238da35f8.glb
Create a sliding drain for removing water by constructing a rectangular base block measuring 53mm in length, 14mm in width, and 15mm in height. Carve out a central rectangular channel that is 14mm wide and 7mm deep, running from the top surface down to a height of 8mm. This channel should be interrupted by two solid re...
difference() { cube ([53,14,15]); translate ([0, 0, 8]) cube (size = [15, 14, 7]); translate ([0, 0, 8]) cube (size = [15, 14, 7]); translate ([38, 0, 8]) cube (size = [15, 14, 7]); translate ([21, 0, 0 ]) cube (size = [11, 14, 7]); translate ([7, 7, 0]) cylinder (h = 8, d = 4, $fn = 20); translate ([7, 7, 8]) cy...
glb/cad_f6632d015c84.glb
Create a Collar Stays Holder by starting with a rectangular block that is 12mm wide, 85mm deep, and 27mm high. Apply a 3mm fillet or radius to all exterior edges to soften the corners. On the top face, carve out a series of 17 identical rectangular slots arranged in a single row along the depth of the block. Each slot ...
$fn=50*1; wt = 12; w=wt-0; dt = 85; d=dt-0; hw = 1; gw = 6; hd = 17; gd = 2; echo (gd); difference() { minkowski(){ cube([w,d,27]); cylinder (r=3,h=1); } for (i = [0:hw-1]) { for (j = [0:hd-1]) { translate([gw+i*17-7,gd+j*5-1,2]) cube([14,2,27]); } } }
glb/cad_4aa2ef774d2e.glb
Create a shelf clip by starting with a central rectangular block measuring 40mm in length, 15mm in width, and 13mm in height. Center this block on the origin. Remove a cylindrical section from the center of the block with a radius of 4mm and a length of 35mm, oriented along the length of the block. Additionally, remove...
difference () { translate([0,0,7.5]) rotate([0,0,0]) cube([40,15,13], center = true); translate([0,0,6]) rotate([90,0,0]) cylinder(r=4,h=35, center = true); translate([0,0,0]) rotate([90,0,0]) cube([8,12,23], center = true); translate([15,0,10]) cube([15,20,10], center = true); translate([-15,0,10]) cube([15,20,10], ce...
glb/cad_f9693ad54a4f.glb
Create a Bowden Tube Exit Clamp by starting with a hexagonal base that is 12mm wide and 3mm high. Centered through this base and extending upwards, create a vertical cylindrical hole with a diameter of 6mm. Above the base, add a cylindrical collar with an outer diameter of 7mm and a height of 6mm. This collar should be...
bowden_d = 6; clamp_h = 6; clamp_wall = .5; hex_w = 12; hex_h = 3; $fn = 150; delta = 0.1; include <ISOThread.scad> module tube_path() { translate([0,0,-delta]) cylinder(h=clamp_h+hex_h+2*delta, r=bowden_d/2); } module clamp(h, d, n) { gap = 1; difference() { union() { cylinder(h=h,...
glb/cad_02c2d5f06841.glb
Create a Shendrones Tweaker 180 lightbar mount. Start with a central rectangular block 50mm wide, 10.5mm high, and 2.5mm deep. At each end of this block, add a 20-sided prism (cylinder) with a radius of 8.25mm and a height of 10.5mm, centered vertically. To ensure these cylinders integrate with the main block, add a sm...
pinwidth=5.5; pinouter=1.5; inner=21.8; outer=31.7; boxdepth=2.5; boxheight=10.5; boxwidth=50; pinsep = outer-(pinwidth-.5); difference() { union() { translate([0,1.25,0]) { cube([boxwidth, boxdepth, boxheight], center=true); } translate([-(pinsep/2), pinwidth+boxdepth+1.5, 0]) { cylinder(r=pinwidt...
glb/cad_35b101944588.glb
Create a lightbar mount consisting of a central rectangular block and two cylindrical mounting posts. The main block is 50mm wide, 10.5mm high, and 2.5mm deep. Position two cylinders at the edges of the block. Each cylinder has an outer radius of 3.25mm and a height of 15.75mm. Center these cylinders so they are spac...
pinwidth=5.5; pinouter=1.5; inner=21.8; outer=31.7; boxdepth=2.5; boxheight=10.5; boxwidth=50; pinsep = outer-(pinwidth-.5); difference() { union() { translate([0,1.25,0]) { cube([boxwidth, boxdepth, boxheight], center=true); } translate([-(pinsep/2), (pinwidth/2)+boxdepth, (boxheight/2)]) { cyl...
glb/cad_83b1caa54ac8.glb
Create a Shendrones Tweaker 180 Lightbar, Antenna Mount, and HS1177 Mount. Start with a central rectangular block 32mm wide, 2.5mm deep, and 10.5mm high. At each end of this block, center a 20-sided prism (cylinder) with a radius of 3.25mm and a height of 10.5mm. Add two antenna mounts by creating cylinders with a 3mm...
pinwidth=5.5; pinouter=1.5; inner=21.8; outer=31.7; boxdepth=2.5; boxheight=10.5; boxwidth=32; pinsep = outer-(pinwidth-.5); difference() { union() { translate([0,1.25,0]) { cube([boxwidth, boxdepth, boxheight], center=true); } translate([-(pinsep/2), pinwidth*.6+boxdepth*.5, 0]) { cylinder(r=pinwi...
glb/cad_8409c912752a.glb
Create a camera mount for an HS1177 FPV camera. Start with a central rectangular base plate measuring 36mm in length, 11mm in width, and 2mm in height. At each end of the base plate, add a vertical stanchion that is 21.5mm tall, 3mm wide, and 11mm deep. These stanchions should be positioned so that the outer edges al...
$fn=40; inner = 23.9; outer = 29.7; mid = (inner+outer)/2; camsep = 28.25; camhole = 1.8; height=21.5; difference() { union() { translate([(camsep/2)+1.5, 0, (height/2)+.99]) { cube([3,11,height], center=true); } translate([(camsep/2)+1.5, 0, 1]) { rotate([0,45,0]) { cube([4,11,4], center=true); } } } ...
glb/cad_04e3b35c33fa.glb
Create a camera mount for an HS1177 FPV camera. Start with a rectangular base plate measuring 36mm wide, 11mm deep, and 2mm thick. At each end of the base, construct two vertical support walls. Each wall is 21.5mm high, 3mm wide, and 11mm deep. On the inner face of each wall, integrate a cylindrical sleeve with an ou...
$fn=40; inner = 23.9; outer = 29.7; mid = (inner+outer)/2; camsep = 28.25; camhole = 1.8; height=21.5; pinwidth=5.5; pinouter=1.5; pin_inner=21.8; pin_outer=31.7; pinsep = outer-(pinwidth-.5); difference() { union() { translate([(camsep/2)+1.5, 0, (height/2)+.99]) { cube([3,11,height], center=true); } tra...
glb/cad_544d739a63c4.glb
Create a recess plug for a hotend alignment system. Start by creating a main cylinder with a radius of 8.35mm and a height of 10mm. On the top face of this cylinder, add a smaller concentric protruding cylinder with a radius of 1.75mm and a height of 2mm. Finally, bore a central vertical hole through the entire object,...
$fn=32; filament_feed_hole_d=3.5; filament_diameter=3; filament_feed_hole_offset=filament_diameter+1.5; extruder_recess_h=10; module wildseyed_mount_holes(insulator_d=12.7){ extruder_recess_d=insulator_d+0.7; translate([0,0,-1]) cylinder(r=extruder_recess_d/2,h=extruder_recess_h+1); for (hole=[-1,1]) ...
glb/cad_6da7531b444c.glb
Create a recess plug for a hotend alignment system. Start by creating a main cylinder with a diameter of 16.7mm and a height of 11mm. On the top face of this cylinder, add a smaller concentric protruding cylinder with a height of 2mm and a radius of 1.55mm. Through the center of the entire object, create a vertical h...
$fn=32; filament_feed_hole_d=2.1; filament_diameter=1.75; filament_feed_hole_offset=filament_diameter+1.5; extruder_recess_h=10; module wildseyed_mount_holes(insulator_d=12.7){ extruder_recess_d=insulator_d+0.7; translate([0,0,-1]) cylinder(r=extruder_recess_d/2,h=extruder_recess_h+1); for (hole=[-1,1...
glb/cad_20efe3e74ec5.glb
Create a shower hook storage hanger with a uniform thickness of 5mm. Start by forming a U-shaped base: create a rectangular plate 40mm wide and 50mm high, then remove a central rectangular section 30mm wide and 40mm high from the top, leaving a 5mm border on the sides and a 5mm thick base at the bottom. Extend the bott...
thick = 5; whei = 40; wwid = 30; hook = 30; difference() { cube([wwid+2*thick,whei+thick,thick]); translate([thick,0,0]) cube([wwid,whei,thick]); } translate([0,-whei/2,0]) difference() { cube([wwid+2*thick,whei/2,thick]); translate([2+thick,0,0]) cube([wwid-4,whei/2,thick]); } translate([wwid+thick+hook/2,-whei/2,0...
glb/cad_9d4b9f8db55e.glb
Create a model of the Sutro Tower consisting of three main legs and central antennae. First, construct the base legs by creating three triangular prisms. Each leg is a cylinder with a 3-facet resolution (forming a prism) that starts with a radius of 2mm at the top and tapers to 1.5mm at the bottom over a height of 10...
$fn=3; out = 10; module legs() { intersection() { translate([-30,-30,0]) cube([60,60,60]); for(a = [0,120,240]) rotate([0,0,a]) translate([out,0,0]) rotate([0,-4,0]) translate([0,0,-10]) cylinder(r1=2, r2=1.5, h=100); } } module tops() { translate([0,0,60]) intersection() { translate([-30,-30,0]) cube([60,60,30]); f...
glb/cad_78f7793d184a.glb
Create a Meshed Gears Block consisting of a central rectangular base with two meshed gears positioned on top. Start by creating a rectangular block 20mm wide, 20mm deep, and 5mm high, centered at the origin. Construct two identical gears. Each gear is formed by a central cylinder with a radius of 7mm and a height of ...
union() { translate([10,0,0]) { polyhedron( points=[ [10,10,0],[10,-10,0],[-10,-10,0],[-10,10,0], [0,0,10] ], faces=[ [0,1,4],[1,2,4],[2,3,4],[3,0,4], [1,0,3],[2,1,3] ] ); } translate([10,-4,4]) { rotate(a=[45,0,0]) color("red") cylinder(h = 8, ...
glb/cad_11a59b8c682d.glb
Create a pseudo nine-sided die by joining two nine-sided pyramids base-to-base. Each pyramid should have a height of 22.5mm (15mm scaled by 1.5) and a base consisting of a regular nonagon with a radius of 22.5mm. To ensure the die is stable and does not land on its primary faces, rotate one of the pyramids by 20 degree...
font = "Liberation Sans"; letter_size = 5.5; letter_height = 2; r10 = 15; lsx = 6.6; scale(1.5) intersection() { translate([0,0,-25]) rotate([0,0,360/18]) poly_9(50); intersection() { translate([0,0,-25]) poly_9(50); union() { difference() { polyhedron(vertices,faces); decorate_9(); } translate([0,0,0.001]) ...
glb/cad_0fed8e81194a.glb
Create a hexagonal chain mail fabric composed of interlocking, multi-level geometric elements. First, construct a single element as a hollow hexagonal ring with a wall thickness of 1.3mm. The ring has an outer radius of approximately 6.5mm and an inner radius of 5.5mm. To create the multi-level effect, stack two of t...
select_object=1; v_gap=0.9; h_gap=1.3; vbt=1.3; hbt=1.3 ; dy=1.25 ; levels=2; xel=5; yel=3; zdim=2*vbt+v_gap; dx=hbt*2/sqrt(3); ri=dy+dx+2*h_gap/sqrt(3)*2; pr = (3*ri+dx+dy)/2 ; ha=zdim/2; hb=zdim/2-vbt; ra=ri+dx; c3=cos(30); s3=sin(30); a1x = 0; a1y = -ra; i1x = 0; i1y = -ri; d1=dx; a2x = -ra*c3; a2...
glb/cad_ae19851c64b4.glb
Create a sensor holder for an HC-SR04 ultrasound sensor. Start with a base plate measuring 55mm by 31mm with a thickness of 2mm. From this base, extend two vertical walls upward to a height of 17mm; one wall is 15mm wide and positioned from the back edge, and two smaller support walls, each 2mm wide and 5mm high, are p...
difference () { union () { cube ([55, 31, 2]); translate ([20, -30, 0]) cube ([15, 30, 2]); translate ([20, -32, 0]) cube ([15, 2, 17]); translate ([18, -32, 0]) cube ([2, 34, 5]); translate ([35, -32, 0]) cube ([2, 34, 5]); translate ([13, 0, 0]) cube ([5, 2, 5]); translate ([37, 0, ...
glb/cad_224222cafb9b.glb
Create a sensor holder for an HC-SR04 ultrasound sensor. Start with a base rectangular plate measuring 55mm by 31mm with a thickness of 2mm. On this base, construct a central mounting block that is 15mm wide, 30mm long, and 17mm high, positioned so it extends from the base. Add two smaller vertical support walls, each ...
difference () { union () { cube ([55, 31, 2]); translate ([20, -30, 0]) cube ([15, 30, 2]); translate ([20, -32, 0]) cube ([15, 2, 17]); translate ([18, -32, 0]) cube ([2, 34, 5]); translate ([35, -32, 0]) cube ([2, 34, 5]); translate ([13, 0, 0]) cube ([5, 2, 5]); translate ([37, 0, ...
glb/cad_3852513d4597.glb
Create an extended shelf clip by starting with a central rectangular block measuring 40mm in length, 15mm in width, and 13mm in height. Center this block and remove a cylindrical hole with a radius of 4mm and a length of 35mm passing through the center along the X-axis. To refine the shape, remove two rectangular secti...
difference () { translate([0,0,7.5]) rotate([0,0,0]) cube([40,15,13], center = true); translate([0,0,6]) rotate([90,0,0]) cylinder(r=4,h=35, center = true); translate([0,0,0]) rotate([90,0,0]) cube([8,12,23], center = true); translate([15,0,10]) cube([15,20,10], center = true); translate([-15,0,10]) cube([15,20,10], ce...
glb/cad_f03badcbc633.glb
Create a Spinner for R/C model folding prop. Start by constructing a hollow, hyperbolic cone-shaped cap with a height of 25mm and a base radius of 15.2mm. The wall thickness of this cap should be 1.1mm. The outer profile should follow a hyperbolic curve with an exponent of 1.7 to create a convex, aerodynamic shape. At...
p = 1.7 ; radius = 15.2 ; height= 25; thick = 1.1; basedia = 24.5; baseblock = 11; hresol = 20; wresol = 3; step = hresol/radius; fra = radius / hresol*step; fhe = height / pow(radius,p); spinnercap (1) ; module hyperbel_inner() { for (i = [0:hresol-1]) { assign (r = i/step) polygon (points= ...
glb/cad_bb6f39ef3c75.glb
Create a Servo Driven Ball Valve mount. Begin by designing a two-part clamping shell to hold a 1/4" female NPT valve. Each shell half is a rectangular block with a length of 70mm, a width of 10mm, and a height of 6mm. Subtract a cylindrical void from the center of the shell to accommodate the valve body. Add four verti...
use <MCAD/involute_gears.scad> include <am_valve_1-4NPT.scad>; include <savox_ip67_servo.scad>; shell_wall_x = 7; shell_wall_y = 5; shell_wall_z = 3; shell_length = am_valve_14NPT_length; shell_height = d2 + shell_wall_z*2; shell_width = d2 + shell_wall_y*2; echo ("shell_height = ",shell_height); valve_shaft_dia ...
glb/cad_0e1b1f441d2e.glb
Create a children's garden trowel by constructing a hollowed-out scoop and a handle. Start with a main cylinder 100mm tall with a 30mm radius. Create a hollow center by removing a smaller cylinder with a 27mm radius, starting from a height of 22mm and extending to the top. To form the scoop's bowl, attach two cylinders...
union() { difference() { translate([0,0,0]){cylinder(h=100,r=30);} translate([0,0,22]){cylinder(h=74,r=27);} rotate([-65,0,0]) translate([0,0,0]) {cylinder(h=60,r=30);} rotate([65,0,0]) translate([0,0,0]) {cylinder(h=60,r=30);} rotate([0,0,0]) translate([-10,-30,30]) {cube(60,120,90);} rotate([0,0,0]) translate([-15,0...
glb/cad_8a2e2b4bb7a6.glb
Create a Children's Garden Trowel handle by combining two concentric cylinders. First, create a main vertical cylinder with a radius of 7mm and a height of 70mm. Then, add a second, shorter cylinder at the base with a radius of 9mm and a height of 5mm, centered on the same axis as the first. The resulting shape should ...
union() { rotate([0,0,0]) translate([0,0,0]) {cylinder(h=70,r=7);} rotate([0,0,0]) translate([0,0,0]) {cylinder(h=5,r=9);} }
glb/cad_2ed4709e36a9.glb
Create a ball bearing caster housing. Start with a rectangular base plate 30mm wide, 11mm deep, and 4mm thick. At each end of this plate, center a vertical cylinder with a diameter of 6.5mm and a height of 6mm. From the center of the base, extend a main cylindrical body upwards with a diameter of 21mm and a height of ...
deckHeight = 21; ballDiameter = 16; ballTolerance = 0.4; wallThickness = 2.5; gapWidth = ballDiameter / 3; baseThickness = 4; pedistalWidth = ballDiameter + wallThickness * 2; baseWidth = 30; M3holeDia = 3.5; M3nutDia = 6.5; echo(deckHeight); baseHeight = deckHeight - ballDiameter / 2; echo(baseHeight); module mai...
glb/cad_9916c75b119a.glb
Create a spool bushing consisting of a main cylindrical body and a wider base lip. Start by creating a cylinder with a diameter of 17.9mm and a height of 12mm. At the bottom of this cylinder, add a wider, shallow cylindrical lip with a diameter of 27.9mm and a height of 2mm. Remove a central vertical hole with a diame...
bodyDiameter = 17.9; bodyDepth = 12; lipExtraDiameter = 10; lipDepth = 2; holeDiameter = 8.8; centerPadding = 0.2; handPercentage = 0.5; $fn = 100; module body() { union() { cylinder(d=bodyDiameter,h=bodyDepth); cylinder(d=(bodyDiameter+lipExtraDiameter),h=lipDepth); } } module hole() { cylind...
glb/cad_6691842bd9d6.glb
Create a pen holder bracket consisting of a cylindrical barrel and a flat circular base. Start by creating a central vertical cylinder with an outer diameter of 16mm and an inner bore of 10mm to accommodate a pen, extending this barrel to a height of 10mm. Cut a thin 1mm wide slot vertically through one side of the bar...
$fn = 64; penDiameter = 10; penRadius = penDiameter / 2; barrelHieght = 10; barrelWallThickness = 3; baseThickness = 3; cornerRounding = 2; hat_thickness = 1.2; hatDiameter = 26; slice = 1; module penHolder(){ difference(){ cylinder(hat_thickness, hatDiameter / 2, hatDiameter / 2); cylinder(bas...
glb/cad_ad6c4f9b39e5.glb
Create a Nut Leia captive nut trap. Start by creating a main cylindrical body with a radius of 5mm and a height of 1.67mm. From this cylinder, remove a hexagonal hole in the center with a width of 2.86mm across the flats to accommodate the nut. Additionally, remove a rectangular slot measuring 10mm by 2.86mm by 1.67mm,...
$fn=50*1; nut = 5; height = nut * .33333333; buns_scale = .80*1; union(){ jaws(nut); CinnamonBuns(nut*buns_scale, (nut/2)*buns_scale, height, nut); } module jaws(x = 4, z = 2) { translate([0,0,height/2]) difference(){ cylinder(h = height, r =x, center = true); translate([x/5,0,0]) union(){ hexagon(x,x)...
glb/cad_d5d5729808b9.glb
Create a model consisting of four identical parallel cylinders. Each cylinder must have a radius of 2.5mm and a length of 64mm. Position the cylinders so that their central axes are parallel to each other and aligned along a single axis. Space the cylinders evenly, with a center-to-center distance of 6mm between each a...
$fn=50; distance = 3; for (a =[0:3]) { translate([0,a*6,0])rotate([0,90,0])cylinder(r=2.5, h=64); }
glb/cad_bf22dd317640.glb
Create a Temporary model consisting of a thin square base with four vertical cylinders. Start by creating a square plate measuring 21mm by 21mm with a thickness of 0.4mm, centered so that its top surface sits at z=0 and it extends to z=-0.4. On top of this base, place four identical cylinders, each with a radius of 5mm...
$fn=50; translate([0,0,-1])cube([21,21,0.4]); translate([5,5,0])cylinder(r=5, h=64); translate([5,16,0])cylinder(r=5, h=64); translate([16,5,0])cylinder(r=5, h=64); translate([16,16,0])cylinder(r=5, h=64);
glb/cad_c8ca6ea3ad93.glb
Create a glass top corner protector by starting with a base shape formed from the union of a 40mm by 40mm square plate with a height of 3mm, where the edges are rounded with a radius of 1.75mm. From this solid, remove a large central square section measuring 44mm by 44mm starting from a height of 4.5mm to create a holl...
difference() { minkowski() { cube([40,40,0.1]); translate([0,3,1.75]) rotate([90,0,0]) cylinder(h = 3, r=1.75, center = false, $fs=.02); translate([0,0,1.75]) rotate([90,0,90]) cylinder(h = 3, r=1.75, center = false, $fs=.02); cylinder(h = 3, r=1.75, center = false, $fs=.02); } translate([-4,-4,4.5]) cube([...
glb/cad_23d1244f0a1a.glb
Create a C-ring mount for an Edison Screw bulb. Start by creating a thick hollow cylinder with an outer radius of 22.6mm, an inner radius of 14mm, and a height of 8mm, centered on the origin. Carve a thin circular groove into the center of the outer wall by removing a concentric ring with a radius of 20.5mm and a heigh...
color("red") difference() { difference() { cylinder(h = 8, r=22.6, center = true, $fs=.01, $fn=100); cylinder(h = 12, r=14, center = true, $fs=.01, $fn=100); } difference() { cylinder(h = 1.35, r=23, center = true, $fs=.01, $fn=100); cylinder(h = 2, r=20.5, center = true, $fs=.01, $fn=100); } translate([...
glb/cad_064eb09d8f28.glb