Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a herringbone gear with 18 teeth and a total height of 13.6mm. The gear should have a pitch diameter of approximately 17.2mm. Construct the gear as two mirrored helical halves meeting in the center. Each half should have a thickness of 6.8mm. The gear must feature a central vertical hole with a radius of 3mm t...
$fn = 90; NutInner = 9.9/2; NutOuter = 11.1/2; Thickness = 3; TrainDiameter = 2*(NutOuter+Thickness); echo(TrainDiameter); NutRadius = 12.8/2; NutDepth = 8; Bleed = 0.2; inf = 1000; pi = 3.14159; Teeth = 18; echo(pi*TrainDiameter/3); Height = 10+20-6-2*Bleed; module hexagon(size, height) { boxWidth = size/1.75; ...
glb/cad_ef302cd20d65.glb
Create a replacement steering knob for an RC transmitter. Start by creating a main cylindrical body with a radius of 20.9mm and a height of 21mm. At the base of this cylinder, add a thin, wider circular flange with a radius of 22mm and a height of 1.2mm. Hollow out the center of the main cylinder by removing a smalle...
$fn=90; tol=0.2; module Fix(ir, or, h) { intersection() { cylinder(r=or, h=h); translate([-or-1, -ir, -1]) cube([2*or+2, or+ir+1, h+2]); } } difference() { union() { difference() { union() { cylinder(r=44/2, h=1.2); cylinder(r=41....
glb/cad_81f1e53a501c.glb
Create a spool holder consisting of a vertical shaft mounted on a weighted base. Start by creating a base that is a cylinder with a radius of 24mm and a height of 13mm, but scale the base along the Y-axis by a factor of 1.23 (29.5/24) to make it an oval. On top of this base, center a vertical cylinder with a radius of ...
$fn=90; tol=0.2; T=3; difference() { union() { rotate([0, 0, 0]) { scale([1, 29.5/24, 1]) cylinder(r=24, h=10+T+1); scale([1, 1.4, 1]) cylinder(r1=24, r2=26, h=2); } translate([0, (1.5+tol+T)/2, 10+T]) cylinder(r=1.5+tol+T, h=120); ...
glb/cad_929b8194b6ed.glb
Create a GPS module holder by starting with a rectangular base measuring 84.7mm in length, 28.7mm in width, and 3.98mm in height. From this base, remove a central rectangular cavity that is 35.6mm long, 25.7mm wide, and 4mm deep, centered within the base. Cut a small rectangular notch measuring 4mm by 12mm by 2mm into ...
$fn=89; tol=0.2; inf=1000; w=35.6; W=78.7; D=25.7; T=3; difference() { union() { translate([-w/2-T, -D/2-T, -3.5]) cube([W+2*T, D+2*T, 3.98]); } cube([w+2*tol, D+2*tol, 4], center=true); translate([-w/2+2, 0, -2]) cube([4, 12, 2], center=true); translate([30, 0, 0]) cube([50, 5.7, 3], center=true...
glb/cad_0e585b441805.glb
Create a 3D model of a Klein bottle. Start by generating a profile shape in the XY plane that resembles a flask with a rounded bottom and a neck that curves upward and inward. Rotate this profile 360 degrees around the Y-axis to create a hollow, vessel-like body. The neck of the vessel should extend upward, then curv...
thefa=12; cv=12; tubeF=1; sz=15; sqz=30; $fa=thefa/10; module q() { intersection() { square(10); circle(10, $fn=cv); } } module q1() { scale([1,-1]) q(); } module q2() { scale([-1,-1]) q(); } module 2q() { translate ([2.5,0]) scale ([-1,1]) union () { q1(); q2(); } } module q3() { translate ...
glb/cad_2c434d27b320.glb
Create a toy dart projectile. Start by constructing a central body 64mm in height. This body is formed by taking a circular profile with a radius of 5.25mm and extruding it linearly along the vertical axis. During this 64mm extrusion, apply a total twist of 100 degrees. To create the twisted fins, incorporate two addit...
$fn=36; linear_extrude(height = 64, center = true, convexity = 10, twist = 100) translate([0, 0, 0]) union() { circle(r = 10.5/2, center=true); rotate([0,0,0]) scale([0.25,1.3,1]) circle(r = 10.5/2, center=true); rotate([0,0,60]) scale([0.25,1.3,1]) circle(r = 10.5/2, center=true); rotate([0,0,120]) ...
glb/cad_8fa8e3e2c20d.glb
Create a fan mount for a Printrbot LC by starting with a solid rectangular base measuring 63.9mm wide, 52.7mm deep, and 6mm thick. From this base, remove several geometric cutouts to create the mounting structure. First, carve out a central circular hole with a radius of 18.6mm. Around this center, remove four smaller ...
$fn=90; inf=100; tol=0.2; W=63.9; H=42.7; D=6; HW=(W-45.2-2*3.8)/2; HH=(H-22.4-2*3.8)/2; difference() { union() { translate([-W/2, -H/2-10, 0]) cube([W, H+10, D]); } for (x = [-1, 1]) for (y = [-1, 1]) translate([x*(45.2/2+HW/2), y*(22.4/2+HH/2), 0]) cube([HW+2*tol, HH+2*tol, inf], center...
glb/cad_19d9af1dc9f3.glb
Create a scraper by combining a rectangular block and a truncated cone. Start with a rectangular base measuring 100mm in length, 10mm in width, and 10mm in height. Attached to this base, position a truncated cone centered 5mm from the side edge along the width. This cone should have a height of 10mm, a large base radiu...
$fs=0.1; cube([100, 10, 10]); translate([0, 5, 0]) cylinder(r1=30, r2=5, h=10);
glb/cad_157c9287d452.glb
Create a table leg foot by combining a cube and a cylinder into a single solid. Start with a cube that is 37mm wide, 37mm deep, and 64mm tall, centered on the origin. Add a cylinder with a base radius of 18.5mm that tapers to a point at the top, also 64mm tall and centered, to create a conical base. From this combined ...
$fn=60; leg=34; thickness=2; gap=1; w=leg+gap+thickness; r=sqrt(0.5*w*w); difference() { union() { cube([w, w, 64], center=true); cylinder(r1=r, r2=0, h=64, center=true); } translate([0, 0, 16]) cube([w-thickness, w-thickness, 32], center=true); }
glb/cad_200f2113eee9.glb
Create a tap cover by constructing a hollow, tapered cylinder with a height of 125mm. The outer wall should taper from a radius of 25mm at the base to 22.85mm at the top. Create a matching inner void that also tapers from a radius of 23.8mm at the base to 21.65mm at the top, leaving a consistent wall thickness of 1.2mm...
$fn=90; difference() { cylinder(r1=50/2, r2=45.7/2, h=125); translate([0, 0, -0.01]) cylinder(r1=50/2-1.2, r2=45.7/2-1.2, h=125.02); translate([-10, 0, -0.02]) cube([20, 1000, 1000]); }
glb/cad_43bb142ccc12.glb
Create a Customizable Captive Sphere by constructing a hollowed cube with a sphere trapped inside. Start with a solid cube measuring 25mm on all sides, centered at the origin. Create a hollow interior by removing a smaller concentric cube with a side length of 19mm. To create the exterior openings, remove three interse...
$fn = 72 * 1; width = 25; thickness = 3; holedia = width - thickness; difference(){ cube(size = width, center=true); cube(size = width - thickness, center = true); cylinder(r = holedia / 2, h = width + 2, center = true); rotate([90, 0, 0]) cylinder(r = holedia / 2, h = width + 2, center = true); ...
glb/cad_533f001dd0cb.glb
Create a Z axis motor mount for a 3D printer. Start with a central rectangular base measuring 108mm in width, 5mm in depth, and 12mm in height. Extend this base by adding a hull that connects two cylinders of 8.1mm diameter and 12mm height, positioned at x = ±54mm and y = 40mm. Integrate several rectangular blocks int...
$fn = 32; z_rod_wall_dist = 22; motor = 30.99; rod_d=8.1; threaded_rod=9; height=150; spacing=60; wall_dist=14; lm_bearing=15.1; motor_mount(); module motor_mount() { difference() { union(){ cube([spacing+rod_d*6, 5, 12], center = true); hull(){ translate([0,12, 0])cube([spacing+rod_d*2, 20, 12], cent...
glb/cad_31bd040b1c2d.glb
Create a sink strainer drain catch with a total diameter of 83mm. Start by constructing the main basket. Create a cylinder with a bottom radius of 17.5mm and a top radius of 18.5mm, reaching a height of 10mm. To form the bowl, intersect this cylinder with a sphere of radius 19mm centered at a height of 12mm. Add a fl...
use <utils/build_plate.scad> build_plate(0); Notice="This files is being worked on"; diameter=83; HelperDisk = "yes"; CenterOption = "Simple"; module mainBasket(){ scale(diameter/36.25,[1,1,1]){ difference(){ union(){ intersection(){ color ("green") cylinder(r1=35/2,r2=37/2,h=10,$fn=100); translate([0,...
glb/cad_f9b9ae9d3557.glb
Create a test part to analyze X and Y damping and resonance. Start with a rectangular base plate measuring 36mm by 36mm with a thickness of 0.5mm. On top of this base, construct a hollow square frame with an outer dimension of 27mm by 27mm and a height of 23mm. The walls of this frame should be 1mm thick. The four ou...
module radius(radius,length) { linear_extrude(height = length, center = false, convexity = 4, twist = 0) difference() { translate([-0.1,-0.1]) square([radius+0.1,radius+0.1]); translate([radius,radius]) circle(r=radius, $fn=60); } } translate([-50,-50,-1.01]) %cube([100,100,1]); Base...
glb/cad_3a360836e675.glb
Create a Velbon D600 quick release tripod mount consisting of three main geometric components. Start with a base plate measuring 51mm by 79mm with a height of 4mm and corner radii of 2mm; center a vertical hole with a 3mm radius through this base. Build upon this base a second tiered section: create a rounded rectangul...
$fn=50; union() { translate([0,0,0]) part1(); translate([1.5,8.5,4]) part2(); rotate([0,0,90]) translate([22.5,-3.5,12]) part3(); rotate([0,0,-90]) translate([-56.5,47.5,12]) part3(); } module part3() { width=11; polyhedron( points=[[0,0,0],[34,0,0],[34,width,0],[0,width,0],[0,0,-12],[...
glb/cad_53173f002047.glb
Create a hexagonal sonar tower housing. Start with a hexagonal prism that has a side length of approximately 6mm and a total height of 50mm. Hollow out the center of the prism with a smaller hexagonal void that is 5/6ths the radius of the outer shell, leaving a wall thickness around the perimeter. On the vertical f...
module screw (separation, radio, drill) { rotate ([0,90,45]) translate ([radio/3, separation/2, -radio/3]) cylinder (r=drill/2, h=radio, center=true,$fn=20); rotate ([0,90,45]) translate ([radio/3, -separation/2, -radio/3]) cylinder (r=drill/2, h=radio, center=true,$fn=20); } module sonar (radio, distance, sonar_h...
glb/cad_861f8ad8cd17.glb
Create an icosahedral pencil holder by replacing the 20 triangular faces of an icosahedron with decorative motifs. For the first version, replace each face with a pattern of hexagons composed of smaller triangles. This motif uses a length of 14.8mm, a width of 2mm, and a height of 2mm, positioned 34mm from the origin. ...
l6= 14.8; w6= 2; h6= 2; rs6= 34; l = 20; r1c = 14; r2c = 11; hcirc = 2; rscir = 34; rcir2 = 33; l12b=7.525; gr = (1 + sqrt(5))/2; rgr = 1/gr; norm = sqrt(1+gr*gr); norm2 = 5*gr/sqrt(3-gr); norm3 = 2*gr; ang2 = 22.23876; ang1 = 60 - ang2; ang3 = 18.8; ang4 = -18.8; ang5 = 36; ang6 = ...
glb/cad_85bcf46b430f.glb
Create a simple chair by constructing a hollow seat and a solid backrest. Start with a main seat block that is 20mm wide, 20mm deep, and 20mm high. Remove a central rectangular section from the top of this block to create the seating area, leaving walls that are 2.5mm thick on the left, right, and front sides, and a ba...
translate(v = [0,0,20]){rotate(a=[0,180,0]){union(){ difference(){ translate(v = [0,0,0]){cube(20);} translate(v = [2.5,0,0]){cube([15,15,10]);} } translate(v = [2.5,15,-10]){cube([15,5,10]);} }}}
glb/cad_f47790ba93b1.glb
Create a Helical Sisyphus marble track consisting of a clockwise spiral ramp. The ramp should have a track width of 13mm and a wall thickness of 1.1mm. The spiral completes 2.5 revolutions, starting from a small offset from the center and expanding outwards. The ramp is a helix with a gradual slope, where the height d...
TrackWidth=13; Revolutions=2.5 ; Slope=0.1 ; Clockwise=true ; EndStop = "None" ; Resolution=70 ; StartOffset = 2 ; WallThick=1.1 ; Pitch = TrackWidth+WallThick ; Radius = Pitch*Revolutions ; AngleStep = round(360/Resolution) ; AngleStart = floor(360*StartOffset/Radius/AngleStep)*AngleStep ; AngleEnd = floor(Rev...
glb/cad_2030560fd85b.glb
Create a Kendo hilt by constructing a flat, ring-shaped disc with a total height of 7.5mm. The main body is a cylinder with an outer diameter of 78mm and a centered circular hole with a diameter of 32mm. On the top surface of this disc, emboss the text "THE DOJO" four times, spaced evenly around the center. Each instan...
hilt_text = "THE DOJO"; thickness = 7.5; outer_diameter = 78; inner_diameter = 32; use <write/Write.scad> $fn=60; union () { difference () { cylinder(r=outer_diameter/2-thickness/2,h=thickness); translate([0,0,-0.25]) cylinder(r=inner_diameter/2,h=thickness+1); writecylinder(hilt_text,[0,0,0],inner_diameter/2+0.20...
glb/cad_290035c9ad22.glb
Create a caterpillar parametric star wheel by starting with a main cylinder that has a radius of 46.75mm, a height of 7mm, and a 50-facet resolution. Carve six identical symmetrical notches into the outer perimeter of this cylinder. Each notch is formed by removing two overlapping cylinders with a radius of 15.58mm; po...
module star_wheel (radio, width, quality, drill, edge) { difference () { cylinder (r=radio, h=width, $fn=quality); for ( i = [0:edge-1] ) { rotate( i*360/edge, [0, 0, 1]) translate( [0, radio*2-radio/4.5, 0] ) cylinder (r=radio, h=width*2,$fn=quality); rotate( i*360/edge, [0, 0, 1]) translate( [radio/5.5, radio*...
glb/cad_cdb3bcaa6f6b.glb
Create a Kossel fan duct and IR sensor mount. Start with a main body consisting of an 8-sided prism (cylinder with 8 facets) with a radius of 22mm and a height of 40mm, centered at [0, 2, 0] relative to the origin. Integrate a rectangular block measuring 32mm x 26mm x 6mm centered at [0, 2, 3] to serve as a groove moun...
include <configuration.scad>; barrel_radius = 11; barrel_height = 26.2; groove_radius = 6.0; groove_height = 6.0; fanVoffset=0; extraHeight=0; fan_offset = 18; nozzleHeight=59; IRflangeThickness=5; IRboardFixingCentres=21.11-2.70; IRboardFixingOffset=4+7.5+3.5; IRboardFixingHeight=nozzleHeight-15.875-1.5; IRboardWi...
glb/cad_c2d5c9a98ac0.glb
Create a Kitchenaid Mixer Attachment Cap consisting of two separate parts: a plug body and a decorative coin. First, construct the plug body. Create a tapered cylinder with a bottom radius of 11.6mm and a top radius of 11.1mm, reaching a height of 16.27mm. Hollow out the center of this cylinder by removing a smaller c...
Large_Curve_Facets=180; Small_Curve_Facets=60; scale=3; translate([-50,-50,-1.01]) %cube([100,100,1]); module CF_Logo_Coin() { rotate(+180,[0,0,1]) translate([27,-29.30,1.9]) scale([0.023,0.023,1]) color([0,0,1,0.5]) rotate(+180,[0,1,0]) import_stl("cf_logo.STL", convexity...
glb/cad_2c4fbdedb9ed.glb
Create a flanged and crowned belt idler pulley. Start with a central cylindrical body that has a maximum outer diameter of 20mm and a total thickness of 10mm. The profile of this central body should be slightly crowned, meaning the diameter curves inward from the center toward the faces. On each end of the cylinder, ad...
use <MCAD/shapes/polyhole.scad> use <MCAD/shapes/2Dshapes.scad> include <MCAD/units/metric.scad> od = 20; bearing_od = 10; bearing_thickness = 4; bearing_separation = 2; bearing_hole_clearance = 0.3; ridge = 0.4; thickness = bearing_thickness * 2 + bearing_separation; flange_height = 2; flange_angle = 30; flange_...
glb/cad_2526a5328e8e.glb
Create a Kossel Mini hexagonal heat bed holder consisting of two distinct parts: a base and a top. First, construct the base as a rectangular block 40mm wide, 15mm deep, and 13.6mm high. Remove a rectangular slot from the top of this block that is 40mm wide, 15mm deep, and 1.6mm thick, positioned 12mm from the bottom...
epsilon = 0.1; extra_radius = 0.1; m3_major = 2.85; m3_radius = m3_major / 2 + extra_radius; m3_wide_radius = m3_major / 2 + extra_radius + 0.2; m3_head_radius = 3 + extra_radius; raise = 12; pcb_thickness = 1.6; pcb_offset = 8.25; screw_offset = 15 / 2 - 1.5; screw_padding = 7; insert_width = 20; insert_height = 2...
glb/cad_6338c80f6cf4.glb
Create a Victorian Wallpaper Shadow Sconce. Start by constructing a tapered, six-sided hollow prism for the sconce body with a height of 130mm, a bottom diameter of 60.9mm, and a top diameter of 79.1mm. The walls should be 3mm thick. Attach a cylindrical arm to the base of the sconce that extends 160mm from the wall. ...
what_to_render = "preview"; sconce_dia = 70; sconce_height = 130; sconce_sides = 6; flat_top = "no"; sconce_taper = 0.14; sconce_wall_thickness = 3; sconce_top_dia = sconce_dia * (1 + sconce_taper); sconce_bottom_dia = sconce_dia * (1 - sconc...
glb/cad_ad95ef5893f9.glb
Create a whiskey flask consisting of a main body and a separate screw-on cap. For the body, start with a rectangular block measuring 90mm wide, 20mm deep, and 150mm high. Hollow out the center of this block by removing a smaller rectangular volume of 86mm by 16mm by 146mm, leaving a 2mm wall thickness on the sides and ...
include <polyScrewThread.scad> PI=3.141592; difference() { union() { cube([90,20,150]); translate([45,10, 150]) screw_thread(20, 4, 55, 10, PI/2, 2); } translate([2,2,2]) cube([86,16,146]); translate([45,10,140]) cylinder(h=20,r=8); } translate([50,40,0]) { union() { hex_nut(24, 12, 4, 55, 20, 0....
glb/cad_e6f922ee184f.glb
Create a Calibration Hemisphere by constructing a hollow spherical shell with an outer radius of 50mm and an inner radius of 47.5mm. To form the hemisphere, remove the bottom half of the shell using a 100mm cube positioned to cut away everything below the center plane. The final shape should be a thin, open-bottomed do...
difference() { sphere(r=50, $fn=100); sphere(r=47.5, $fn=100); translate([-50, -50, -100]) { cube(100); } }
glb/cad_a4791c4a660f.glb
Create a hydroponics water spray nozzle designed for a 1/2" pipe. The main body is a cylinder with a diameter of 33.5mm and a height of 7mm. From this cylinder, remove material to create a central hole with a diameter of 33mm, but leave a central core of 4mm width. This removal process should be performed using a lin...
include <polyScrewThread.scad>; dotv=6+0.3; dotv1=19; do=42; dcut=25; dr1=36; drs1=2; zr=0.3; di=34; dk=33.5; hk=7; wk=4; nk=4; hcut=12; h1=35; hr1=11; hk1=22; hotv1=3; hotv2=1; h2=10; hr2=10; dr2=20.955; drs2=1.814; n=32; nd=1.5; nh=13; nh2=(h2-2)-4; tw=45+45/2; $fn=64; module cutcor1(){ difference() {...
glb/cad_ac79f1f3adf0.glb
Create a Square Pole Mount by starting with a solid cube that has a total width and length of 80mm and a total height of 70mm. Remove a central square column from the top to create a hollow socket that is 60mm wide, 60mm long, and 60mm deep. Create four screw holes that pass through the remaining 10mm thick walls. Eac...
width=60; depth=60; thickness=10; hole_diameter=10; details=30; tear=true; countersunk=true; alpha=-45; beta=135; pole_mount(width, depth, thickness, hole_diameter, detail, tear, countersunk, alpha, beta); module screw_hole(radius, height, detail, tear, countersunk) { rotate([0,0,-45]) { if(tear==true){ if(cou...
glb/cad_3d4aa5bec388.glb
Create a power button consisting of a wide circular cap and a narrower cylindrical shank. The cap is a truncated cone with a height of 2.5mm, tapering from a bottom radius of 5.2mm to a top radius of 5mm. Centered on the top face of this cap, embed a power symbol recessed 1mm deep. This symbol is composed of a circular...
module logo(radius,height) { union() { del = 1; scale = (radius/5); band = scale / 2.5; angle = 32; difference() { cylinder(h=height,r=3*scale,center=true,$fn=50); cylinder(h=height+del,r=(3*scale)-2*band,center=true,$fn=50); translate([0,2.2*scale,0]) cube(size = [2.7*scale,2.5*scale,heigh...
glb/cad_9c0bcce0ff21.glb
Create a Wifi Button consisting of a circular cap and a supporting shank. Start by creating the cap as a cylinder with a height of 2.5mm, a bottom radius of 5.2mm, and a top radius of 5mm, centered on the origin. Attached to the bottom of this cap, center a cylindrical shank with a radius of 3.2mm and a height of 5.5mm...
module wifi(radius,height) { union() { del = 1; band = 0.45; scale = (radius/4); difference () { for ( i = [2 : 4] ) { difference() { cylinder(h=height,r=i*scale,center=true,$fn=50); cylinder(h=height+del,r=(i-band)*scale,center=true,$fn=50); } } translate([2.5*scale,0,0]) cube(s...
glb/cad_6cf35dbd7d52.glb
Create a corner t-joint for square poles. The joint consists of three identical pole mounts meeting at a central corner, oriented along the X, Y, and Z axes. Each pole mount is a hollow square sleeve with an outer dimension of 70mm x 70mm (width 60mm plus 5mm wall thickness on each side) and an internal square void of ...
width=60; depth=120; thickness=5; hole_diameter=5; detail=30; tear=true; countersunk=true; alpha=-45; beta=135; corner_t_joint(width, depth, thickness, hole_diameter, detail, tear, countersunk, alpha, beta); module screw_hole(radius, height, detail, tear, countersunk) { rotate([0,0,-45]) { if(tear==true){ if(c...
glb/cad_ef671fe9f557.glb
Create a miniature Stanley Cup trophy using 8-facet prisms for all cylindrical components. Start with a base consisting of a cylinder 36.81mm in diameter and 4mm in height. Above this, add a main barrel cylinder with the same 36.81mm diameter and a height of 46.35mm; divide this barrel visually by adding four thin ring...
print="model"; scale=0.5; sc_hollow=0; sc_hollow_minwidth=5; $fn=8; sc_bowl_height = 18.5; sc_bowl_top_diameter = 29; sc_bowl_neck_diameter = 8.2; sc_bowl_base_diameter = 9.4; sc_bowl_thickness = 3; sc_collar_height = 15.87; sc_collar_1_height = sc_collar_height/3; sc_collar_1_diameter = sc_bowl_...
glb/cad_682a69bbd1fd.glb
Create a Stanley Cup keychain by stacking the following geometric components along a central vertical axis, scaled by 0.5. Start with a base consisting of a cylinder with a diameter of 36.81mm and a height of 4mm, flattened on the bottom. Above this, create a main barrel cylinder with a diameter of 36.81mm and a heig...
print="parts"; scale=0.5; sc_hollow=0; sc_hollow_minwidth=5; sc_bowl_height = 18.5; sc_bowl_top_diameter = 29; facet_bowl=8; sc_bowl_neck_diameter = 8.2; facet_neck=8; sc_bowl_base_diameter = 9.4; sc_bowl_thickness = 3; sc_collar_height = 15.87; facet_collar=8; sc_collar_1_height = sc_collar...
glb/cad_2aa250359e77.glb
Create a filling for a sunscreen motor holder by starting with a solid cylinder that has a diameter of 72mm and a height of 20mm. From this main body, remove a central vertical hole with a diameter of 10mm and a depth of 18.3mm, starting from a depth of 2mm from the bottom face. Additionally, remove four smaller vertic...
difference () { translate ([0,0,0]) cylinder (h=20, d=72, $fn=100, center=true); translate ([0,0,-2]) cylinder (h=18.30, d=10, $fn=100); translate([-23.7,0,-2]) cylinder(h=18.30, d=7, $fn=100); translate([23.7,0,-2])cylinder(h=18.30, d=7, $fn=100); translate([0,-23.7,-2]) cylinder(h=18.30, d=7, $fn=100); translate(...
glb/cad_9295f1561da7.glb
Create a Coin Holding Boat by constructing a hollow rectangular prism. Start with a solid outer box that is 11.5mm wide, 23mm long, and 11.5mm high. From the center of this volume, remove a smaller rectangular block to create a cavity, leaving a wall thickness of 0.1mm on all sides and a base thickness of 0.1mm at the ...
p_num=10; n_num=0; d_num=0; q_num=0; p_gram=p_num*2.5; n_gram=n_num*5; d_gram=d_num*2.268; q_gram=q_num*5.670; coin_gram=p_gram+n_gram+d_gram+q_gram; WtoL=0.5; HtoL=0.5; fluid_density=1; PLA_density=1.3; volume=1.1*coin_gram/fluid_density; L=pow(volume/(WtoL*HtoL),0.3333); W=L*WtoL; H=L*HtoL; difference(){ c...
glb/cad_b2c9c6d65266.glb
Create a boat model with a total length of 100mm and a width of 30mm. The main hull is formed by a horizontal cylinder with a radius of 15mm, truncated at the front by a 45-degree angled plane to create a pointed bow. Hollow out the interior of this hull by removing a smaller, scaled-down version of the same shape, lea...
length=100; width=30; front_angle=45; wall=3; jolly_boat_scale=0.4; Cargo_Ship_Addon="Yes"; fn=100; eps=0.1; complete_boat(); jolly_boat(); if (Cargo_Ship_Addon=="Yes") { cargo(); } module jolly_boat() { translate([length/2,-width/4,0]) scale(jolly_boat_scale) translate([-length/2,-width/2,0]) ...
glb/cad_40ae669eaf3b.glb
Create an adjustable ball joint consisting of two concentric spheres connected by a central tube. Start with a large outer sphere with a diameter of 12mm and a smaller inner sphere with a diameter of 9.6mm. Position the smaller sphere below the larger one, offset along the Z-axis by 8.8mm. Connect the two spheres with ...
wall_thickness = 1.2; big_sphere_diameter = 12; tube_inner_diameter = 4; spheres_distance = 0; model_resolution = 50; ball_joint( wall_th=wall_thickness, big_dia=big_sphere_diameter, balls_dis=spheres_distance, tube_inner_dia=tube_inner_diameter, resolution=model_resolution); module ball_joint...
glb/cad_162145d4b48b.glb
Create a mini check valve body as a cylinder with a height of 25mm and a radius of 7mm. Hollow out the center along the longitudinal axis using a series of stacked cylinders to create a variable internal chamber: start with a cylinder of 3mm radius for the first 5mm, followed by a cylinder of 5mm radius for the next 5m...
demo=false; flat=true; $fn=40; module body() { difference() { translate([0,0,0.005]) cylinder(h=25,r1=7,r2=7); difference() { union() { cylinder(h=5.01,r1=3,r2=3); translate([0,0,5]) cylinder(h=5.01,r1=2.5,r2=5); translate([0,0,10]) cylinder(h=10.01,r1=5,r2=2.5); translate([0,0,20]) cylinder...
glb/cad_a2cf924ddca3.glb
Create a Contour Picatinny Rail Mount. Start with a base block 40mm long, 13mm thick, and 29mm wide. On the front face, create a mounting clip consisting of two parallel legs, each 2.3mm wide and 2.9mm high, separated by a 7mm gap. Each leg is topped with a wider section 4.8mm wide and 1.1mm high. Add a small cylindric...
module contourclip(height, thickness) { basewidth = 29; Tlegwidth = 2.3; Tlegheight = 2.9; Ttopwidth=4.8; Ttopheight = 1.1 ; Tseparation = 7; difference() { union() { for (Tnumber=[0:1]) { translate([Tnumber * Tseparation, 0, 0]) union() { translate([-Tlegwidth/2, 0, 0]) cube([Tleg...
glb/cad_ca9966933734.glb
Create a support adapter for an IP camera. Start with a main cylindrical base that is 85.6mm in diameter and 30mm high. From this base, remove a central vertical cylinder with a diameter of 5.85mm that runs the full height of the part. Create three identical circular cutouts around the center, each 30mm in diameter a...
rotate([0,0,-120+90]){ difference(){ cylinder(d=85.6,h=30, $fn=150); cylinder(d=5.85,h=30, $fn=30); translate([29.8,0,0]){ cylinder(d=2.75,h=30, $fn=30); } rotate([0,0,60]){ translate([25,0,0]){ cylinder(d=30,h=30, $fn=30); } } rotate([0,0,120]){ trans...
glb/cad_b2299f41d987.glb
Create a customizable e-cigarette holster consisting of a sheath and a belt clip. Construct the sheath by creating a hull between two cylinders: one with a radius of 9mm and a height of 106mm, and a small rectangular block measuring 18mm by 10mm by 15mm centered at the top. From this volume, remove a central cylindri...
clip_length = 50; inner_length = 90; inner_dia = 15; part = "plate"; module print_part() { if(part=="assy"){ assembly(); }else if(part=="sheath"){ sheath(); }else if(part=="clip"){ clip(); }else if(part=="plate"){ plate(); } } module sheath() { difference() { hull() { translate([0,0,-inner_length/2+37.5]) cylinder(...
glb/cad_43bc60832266.glb
Create a lightweight 3-prong groove mount for a Rostock effector consisting of two main components: a base slot piece and a top cap assembly. First, create the base slot piece. Start with a circular plate 35mm in diameter and 8mm thick. Cut a central vertical hole 12mm in diameter through the plate, with a secondary w...
include <MCAD/units/metric.scad> use <MCAD/fasteners/nuts_and_bolts.scad> use <MCAD/fasteners/threads.scad> use <MCAD/shapes/cylinder.scad> use <MCAD/shapes/2Dshapes.scad> use <MCAD/shapes/polyhole.scad> use <MCAD/array/along_curve.scad> use <utils.scad> effector_od = 60; effector_id = 40; effector_h = 8; effector_scr...
glb/cad_1da5a1203d2a.glb
Create a pencil protector consisting of four stacked sections with a total height of 70mm. Start with a base spring section 30mm tall; create a cylinder with an outer radius of 5.75mm and a concentric inner hole with a radius of 4.75mm, then cut a 2.5mm wide vertical slot through the center of the wall along its entire...
tol = 0.01; dia = 9.5; dias = 6; rad = dia/2; tip = 30; spring = 30; ring = 5; wall = 1; gap = 2.5; difference() { cylinder(h=spring, r=dia/2+wall); translate([-gap/2,-dia,-tol]) cube([gap,dia*2,spring+tol*2]); translate([0,0,-tol]) cylinder(h=spring+tol*2, r2=dia/2, r1=dia/2-0.7); } translate([0,0,spring]) di...
glb/cad_6ba28b2a21b1.glb
Create a Cubical Coat Hat Hanger designed to fit over a partition wall. Start with a solid rectangular base block that is 88mm wide, 43mm deep, and 20mm high. From this base, remove a central rectangular section to create a U-shaped channel that fits the partition cap; this cutout should be 52mm wide, 36mm deep, and ...
modelHeight = 20.0; modelThickness = 7.0; mouseEarRadius = modelThickness / 2; module mouse_ear() { cylinder(r = mouseEarRadius, h = 2.0); } capWidth = 52.0; capDepth = 36.0; module cap() { translate([modelThickness, 0, 0]) cube([capWidth, capDepth, modelHeight]); } hookWidth = 25.0; module hook_arm(...
glb/cad_569897168ff6.glb
Create a toy cinder block by starting with a solid rectangular prism measuring 20mm by 41mm by 20mm. To create the hollow cores, remove three identical rectangular prisms, each measuring 14mm by 14mm by 21mm, aligned along the central longitudinal axis. Position the first cutout centered at the top end of the block, th...
module cinder_block() { difference() { cube([20, 41, 20], center=true); union() { translate([0, 26, 0]) cube([14, 14, 21], center=true); translate([0, 8.75, 0]) cube([14, 14, 21], center=true); translate([0, -8.75, 0]) cube([14, 14, 21], center=true); translate([0, -26, 0]) cube([14, 14, 21], center...
glb/cad_8de7b46443cb.glb
Create a bag dryer gluing jig consisting of two vertically stacked cylindrical tubes, each 18mm high with an outer radius of 6.5mm and an inner hole radius of 5.5mm. The bottom tube is a simple hollow cylinder. The top tube is identical but modified: remove a rectangular section from its side to create a lengthwise cut...
include <common.scad> wallThickness = 2; tubeHeight = 18; tubeTolerance = .5; braceHeight = 6; braceWidth = 3; braceReach = 5; braceEmbedding = .5; supportHeight = 20; outerCylinderRadius = postRadius+tubeTolerance+wallThickness; braceStartingX = outerCylinderRadius-braceEmbedding; tube(); fortyFives(); translate([0...
glb/cad_2cca8d500318.glb
Create a replacement USB case consisting of a bottom shell and a top cover. For the bottom shell, create a base block 12.05mm wide, 33.7mm long, and 2.3mm high. At the front, create a recessed cavity 11.15mm wide, 11.2mm long, and 2.3mm deep. Behind this, extend the main body to 16.5mm wide for the remaining length. ...
w=0.5; n=0.4; wp=0.25; utx=10.65; usbTipX=utx+w; ubx=14.11; usbBodyX=ubx+w; usbTipY=11.2; uby=22.2; usbBodyY=uby+w; usbTipZ=1.17; usbBodyZ=1.42; part = "Both Seperate"; lockSymbol=true; topHeight=2; finalTipZ=2.3; finalTipX=usbTipX+n*2; finalBodyX=usbBodyX+n*6; finalY=usbTipY+usbBodyY+n*3; finalTipYPlugDepth=1...
glb/cad_26e8e46b9ec6.glb
Create a pottle lid by constructing a hollowed-out square tray with rounded corners. Start with a solid rounded box that is 65.5mm wide, 65.5mm deep, and 4mm high, featuring a corner radius of 8.5mm. From the center of this shape, remove a smaller rounded box that is 64.5mm wide, 64.5mm deep, and 4mm high, with a corne...
include <MCAD/boxes.scad> tolerance = 0.5; x = 64; y = 64; z = 4; cornerRadius = 7; thickness = 1.5; difference() { translate([0,0,z/2]) roundedBox([x+tolerance+2*thickness,y+tolerance+2*thickness, z], cornerRadius+thickness, true); translate([0,0,z/2+thickness]) roundedBox([x+tolerance, y+tolerance, z], corner...
glb/cad_c0c05c8adfef.glb
Create a Graphics LCD Mount consisting of two mirrored symmetrical halves. For each half, start with a base block 5mm wide, 65mm long, and 9mm high. Add a rectangular section 3mm wide, 40mm long, and 4mm high, positioned centrally on the base. Integrate a cylinder with an 11mm diameter and 4mm height at the center. On...
$fn=32; AAA(side = 1); translate ([-10,0,0]) mirror ([180,0,0]) AAA(side = 2); module AAA (Side) { difference () { union() { translate ([0,-65/2,0]) cube ([5,65,9]); color ("green") translate ([4,-20,0]) cube ([3,40,4]); translate ([7,-6.5,0])...
glb/cad_a6d1787ed6eb.glb
Create a protective case for a Flip 32+ Deluxe board. Start with a main outer block measuring 40mm x 40mm x 7mm. Hollow out the center by removing a 36mm x 36mm x 5mm block positioned 2mm from each side and 2mm from the bottom. Add four 6mm x 6mm x 6mm mounting cubes at each corner of the base. At each of the four cor...
$fn=20; difference() { union() { difference() { cube([40,40,7]); translate([2,2,2]) cube([36,36,5]); } translate([2,2,0]) cube([6,6,6]); translate([32,2,0]) cube([6,6,6]); translate([2,32,0]) cube([6,6,6]); translate([32,32,0]) cube([6,6,6]); } translate([5,5,0]) cylinder(r=...
glb/cad_a48e28123828.glb
Create a protective case for a Flip 32+ Deluxe board by starting with a main outer cube measuring 40mm x 40mm x 7mm. Hollow out the center by removing a 36mm x 36mm x 5mm cube positioned 2mm from each side and 2mm from the bottom. At each of the four corners, ensure there are solid mounting blocks measuring 6mm x 6mm x...
$fn=20; difference() { union() { difference() { cube([40,40,7]); translate([2,2,2]) cube([36,36,5]); } translate([2,2,0]) cube([6,6,6]); translate([32,2,0]) cube([6,6,6]); translate([2,32,0]) cube([6,6,6]); translate([32,32,0]) cube([6,6,6]); } translate([5,5,0]) cylinder(r=1...
glb/cad_cfdc2d0a2929.glb
Create a scalpel spare part screw with a total height of 30mm. Start by creating a threaded shaft with a 5mm outer diameter and a length of 10.6mm. Above this shaft, add a cylindrical section 13mm tall with a radius of 2.4mm. On top of that, add a 5mm tall conical section that tapers from a radius of 2.4mm at the botto...
include<ISOThread.scad> translate([0,0,-0.3]) cylinder(h = 0.3, r1 = 1.8, r2 = 2.1, center = false,$fn=60); thread_out(5,10.6); thread_out_centre(5,10); render(convexity = 1) { difference() { translate([0,0,10]) cylinder(h = 13, r=2.4,$fn=60); translate([0,0,17.5]) cube(size = [0.8,5,11], center = true); } differen...
glb/cad_408e7fc7f8f5.glb
Create a customizable cloak clasp consisting of two interlocking parts: a male pin and a female receiver. First, create the male component. Start with a cylinder 30mm in diameter (15mm radius) and 3mm high. On top of this cylinder, add a decorative design or letter centered on the face, with a depth of 1mm. Attached ...
use <write/Write.scad> type = "text"; innerRadius = 15; innerHeight = 3; ringWidth = 5; designHeight = 1; rotation = 0; file = "file.dat"; imageScale = 1; claspText = "A"; font = 1; fontOffsetX = 1; fontOffsetY = 1; textScale = 1.4; font_array = ["BlackRose.dxf", "Letters.dxf", "orbitron.dxf", "knewave.dxf...
glb/cad_8dd1258191fc.glb
Create a water sensor plate by starting with a rectangular base measuring 36mm in length, 14mm in width, and 3mm in height. Centered along the length of this base, remove two vertical cylindrical holes, each with a radius of 3mm, positioned at x-coordinates 7mm and -7mm relative to the center. On top of this base, add ...
difference() { translate([-18, 0, 0]) cube([36, 14, 3]); translate([ 7, 7, 0]) cylinder(h=20, r=3); translate([-7, 7, 0]) cylinder(h=20, r=3); } translate([-18, 0, 3]) cube([8, 14, 2]); translate([ -4, 0, 3]) cube([8, 14, 2]); translate([ 10, 0, 3]) cube([8, 14, 2]);
glb/cad_3041f3a025b8.glb
Create a customizable beer tap handle. Start by constructing the main body, which consists of a cylindrical grip and a tapered base. The base is a hollow cylinder with an outer diameter of 20mm and an inner hole of 10mm, extending 30mm in height. Above this base, create a grip that is 150mm tall with a diameter of 25mm...
use <write/Write.scad> words = "Orange Julius"; word_height = 10; handle_height = 150; handle_diameter = 25; handle_id = 10; bottom_pillar_height = 30; fn = 100; inner_od = handle_id + 10; main(); module main() { difference() { color("grey") handle(); color("black") writing(); } } module handle() { u...
glb/cad_f83ebe6dbf7e.glb
Create a square tool holder consisting of a tapered hollow base and a deep inner pocket. Start by creating a square pyramid frustum with a height of 125mm. The bottom base of this shape should be a square with a width of 58mm, tapering upward to a top platform width of 48mm. From the center of this volume, remove a s...
platformHeight = 25; platformWidth = 48; baseFlare = 10; baseWidth = platformWidth+baseFlare; lipHeight = 100; lipWidth = 3; useStressRelief = "Yes"; module riser(_platformSize, _baseSize, _height, _lipHeight, _lipWidth) { _baseRadius=radiusFromChord(_baseSize); _platformRadius=radiusFromChord(_platformSize)...
glb/cad_6dc61b8b33b2.glb
Create a Honeycomb Vase with a total height of 270mm. The main body is a cylinder with a diameter of approximately 76.4mm. The exterior surface is composed of a repeating honeycomb pattern of hexagonal cells. Each individual hexagon has a flat-to-flat width of 40mm, with a 1mm gap between the cells. The hexagons are ...
h=270; n=12; dw=40; w=1; an=30; sw=0; cr=0; $fn=32; dst=(dw-w)/sin(360/6); dct=((n*dw)/(2*PI))*2; dh=dw*sin(360/6); h1=cata(dst/2*sin(360/6),90-an)+1; function cata(catb,catang)=catb/sin(catang)*cos(catang); function catb(cata,catang)=cata/cos(catang)*sin(catang); function gip(cata,catb)=sqrt(cata*cata+catb*c...
glb/cad_1ad2c5711f8c.glb
Create a honeycomb vase with a total height of 78mm. The main body is a cylinder with a diameter of approximately 33.5mm. The exterior surface is composed of a repeating pattern of hexagonal cells. Each hexagonal cell has a flat-to-flat width of 18mm and a wall thickness of 1mm. The cells are arranged in a staggered h...
h=78; n=10; dw=18; h1=5; w=1; an=30; sw=1; ds=(dw-w)/sin(360/6); dc=((n*dw)/(2*PI))*2; dh=dw*sin(360/6); echo(dc); module st() { mirror([0,0,1]) difference() { translate([dc/2, 0,0]) rotate([0,90,0]) cylinder(h1*2, ds/2, ds/2, $fn=6, true); rotate([30,0,0]) for (r1=[0:2]) { translate([dc/2+h1, 0,0]) rotate([r1*120,...
glb/cad_76e90e0f9dc6.glb
Create a honeycomb vase with a total height of 117mm. The main body is a cylinder with a diameter of approximately 28.5mm. The exterior surface is composed of a repeating pattern of hexagonal cells. Each hexagonal cell is formed by a 6-sided prism with a diameter of 14.1mm and a height of 4.8mm. These cells are arrang...
h=117; n=16; dw=15; h1=4.8; w=1; an=30; sw=1; ds=(dw-w)/sin(360/6); dc=((n*dw)/(2*PI))*2; dh=dw*sin(360/6); echo(dc); module st() { mirror([0,0,1]) difference() { translate([dc/2, 0,0]) rotate([0,90,0]) cylinder(h1*2, ds/2, ds/2, $fn=6, true); for (r1=[0:2]) translate([dc/2+h1, 0,0]) rotate([r1*120,0,0]) rotate([0,...
glb/cad_d9595edfacc6.glb
Create a door catch consisting of two identical mirrored components. For each component, start with a rectangular base plate measuring 4mm thick, 40mm long, and 10mm high. From this base, extend a rectangular strut 12mm long and 4mm wide, centered along the length of the plate. At the end of this strut, attach a semi-c...
Wall_Thickness = 4; Wall_Height = 10; Baseplate_Length = 40; Offset_Strut_Length = 10; Clamp_Radius = 10; WallMount(); translate([50, 20, 0]) rotate([0, 0, 180]) DoorMount(); module DoorMount() { union() { BasePlate(); ClampNodule(); } } module WallMount() { union() { BasePlate(); Clamp(); } } mod...
glb/cad_80cf378bd259.glb
Create a camera holder for a Logitech C200. Start with a main block that is 27.55mm in length, 27.55mm in width, and 30mm in height. Hollow out the center of this block to create a socket, leaving a wall thickness around the perimeter. The interior cavity should be carved out using a combination of rectangular and cyli...
diameter=16; pin_diameter=3.5; width=27.55; height=30; length=27.55; depth_of_socket=6; corner_rounding=5; $fs = 0.01; module fillet(r, h) { translate([r / 2, r / 2, 0]) difference() { cube([r + 0.01, r + 0.01, h], center = true); translate([r/2, r/2, 0]) cylinder(r = r, h = h ...
glb/cad_c69942391d91.glb
Create a game piece foot consisting of a flat base and two vertical gripping tabs. Start with a base plate that is 18mm wide, 17mm long, and 1.5mm thick, featuring fully rounded ends with a radius of 9mm. Centered on this base, create a rectangular slot that is 2.5mm wide, 18mm long, and 5.5mm deep, leaving a 1.5mm thi...
h=1.5; r=9; l=25; sl=18; h2=5.5; gap=2.5; grip= 0.5; grip_space=5.5; translate([0,0,h/2]) cube([r*2,l-2*r,h], true); for (i =[-1,1]) { translate([0,i*(l-2*r)/2,0]) cylinder(h, r, r); } for(i=[-1,1]) { translate([i*((gap+h)/2),0,h2/2+h]) cube([h, sl,h2], true); } for(i=[-1,1]) { translate([(gap)/2,i*grip_space...
glb/cad_0baff9964e6b.glb
Create a toilet seat bumper consisting of a central pad with two square retention posts. First, construct the main pad as a hull between two cylinders, each with a height of 8mm. The larger top radius of these cylinders is 8mm, and the smaller bottom radius is 6mm. Position these two cylinders 38mm apart along the x-ax...
postdia = 5.5 ; postlen = 5.5; postretention = 1.40; postdist = 38.0 ; bumperthickness = 8; bumperwidth = 16; bumpertaper = 4; postside = (postdia / 1.414) + postretention; bumpermaxrad = bumperwidth/2; bumperminrad = (bumperwidth - bumpertaper)/2; module post () { translate ([-postside/2, -postside/2, 0]) ...
glb/cad_02f8c34835c7.glb
Create a z coupler consisting of a central axis with five distinct sections. The overall shape is based on a 15-sided polygonal prism with a diameter of 30mm. Start with two end sections, each 9mm high, which are solid 15-sided prisms. Between these ends are two spring sections, each 5mm high, separated by a 2mm high...
include <configuration.scad> $fn = 64; module spring(rad,h,s,tw,d){ shiftR = 8*rad*d/3; intersection(){ linear_extrude(height=h+10) circle(r=rad,$fn=s); linear_extrude(height=h, twist=360*tw) difference(){ translate([rad,0,0]) circle(r=shiftR); translate([-1.2*(shiftR-rad),0,0]) square([1.333*(shiftR-rad),100]); } }...
glb/cad_ae4ba3e22b70.glb
Create a 102-tooth pulley for a T2.5 belt. The pulley consists of a cylindrical base with a diameter of 20mm and a height of 8mm. Centered on this base is a cylindrical shaft hole with a diameter of 5mm. The toothed section of the pulley has a height of 6.2mm and features 102 teeth distributed evenly around the circum...
numHoles_in=6; toHoleRad_in=37.5; holeDiam_in=3.00; teeth = 102; profile = 5; motor_shaft = 70; 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 = 6.2; pulley_b_ht = 8; pulley_b_dia = 20; no_of_nuts = 1; nut_angle = 90; nut...
glb/cad_c952551b2378.glb
Create a parametric pulley for a T5 belt with 14 teeth. The model consists of a cylindrical base with a diameter of 20mm and a height of 8mm. Centered on this base is a toothed cylinder with a height of 10mm and an outside diameter of 11.88mm. Add a belt retainer flange on top of the toothed section with a height of 1....
teeth = 14; profile = 5; motor_shaft = 5.15; 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 = 0; idler_ht = 1.5; pulley_t_ht = 10; pulley_b_ht = 8; pulley_b_dia = 20; no_of_nuts = 1; nut_angle = 90; nut_shaft_distance = 1.2; additional_tooth_width = 0.2;...
glb/cad_e57f46c3c954.glb
Create a Peristaltic Pump base by starting with a rectangular block measuring 24mm in length, 8mm in width, and 12mm in height. Remove a central semi-cylindrical channel from the top of the block with a radius of 4mm and a depth of 10mm, centered 12mm from the side and 7mm from the top. From the remaining solid, remove...
rotate([90,0,0]) difference() { cube([24,8,12]); rotate ([90,0,0]) translate([12,7,-8]) cylinder(r=4,h=10); translate([8,0,7.5]) cube([8,8,7]); translate([4,4,7]) cylinder(r=1.5,h=5); translate([20,4,7]) cylinder(r=1.5,h=5); }
glb/cad_72c73c0ce942.glb
Create a Peristaltic Pump base by starting with a rectangular block measuring 30mm in width, 10mm in depth, and 20mm in height. From this block, remove several geometric volumes to create specific openings. First, carve out a hexagonal hole with a radius of 8mm and a depth of 7mm, centered at the top surface. Second, c...
module hexagon(r,h) { points=[[cos(0),sin(0)],[cos(60),sin(60)],[cos(120),sin(120)],[cos(180),sin(180)],[cos(240),sin(240)],[cos(300),sin(300)],[cos(360),sin(360)]]; p=points*r; linear_extrude(height=h) polygon(points=p); } rotate([270,0,0]) translate([0,-10,0]) difference() { cube([30,10,20]); #rotate([90,0,0]) ...
glb/cad_e7f0a0d58cc2.glb
Create a peristaltic pump component starting with a main circular disk that has a radius of 32mm and a thickness of 3mm. In the center of this disk, add a smaller concentric cylinder with a radius of 6.25mm and a height of 3.5mm. Bore a hole through the center of the entire assembly with a radius of 3.25mm. Around the ...
bd=4; or=32; bir=4; cr=3.25; dt=3; bh=7; brad=or-bd-bir; difference() { union() { cylinder(h=dt,r=or); translate([0,0,dt]) cylinder(h=bh/2.0,r=cr+3); } difference() { cylinder(h=bh/2+dt,r=cr); translate([-cr,cr-1,0]) cube(cr*2,cr*2,dh/2+dt); } for (i=[0:5]) { translate(v=[brad*sin(i*60),brad*cos(i*60),-0.2]) cylinder...
glb/cad_a441d70b12e5.glb
Create a Peristaltic Pump base by starting with a rectangular block measuring 40mm wide, 110mm long, and 10mm high. Remove a large semi-circular section from the top of the block using a cylinder with a 44mm radius and a height of 10mm, centered at coordinates x=-18, y=60, and z=0. Additionally, create a small circular...
difference() { cube ([40,110,10]); translate([-18,60,0]) cylinder(r=44,h=10); translate([20,10,0]) cylinder(r=4,h=10); }
glb/cad_9e3f805d0738.glb
Create a customizable plug for an air mattress by combining two geometric volumes. Start with a base cylinder that has a radius of 14mm and a height of 2mm. Directly on top of this base, center and attach a truncated cone with a total height of 8mm. This cone should taper from a bottom radius of 13mm to a top radius of...
plug_height=8; plug_radius_small=11; plug_radius_big=13; lid_height=2; lid_radius=14; fn=240; cylinder(r=lid_radius,h=lid_height,$fn=fn); translate([0,0,lid_height])cylinder(r1=plug_radius_big,r2=plug_radius_small,h=plug_height,$fn=fn);
glb/cad_d7a490235e6f.glb
Create a parametric cylindrical battery pack holder arranged in a 3x3 staggered grid. Each cell holder is a cylinder with an outer radius of 11.15mm and a height of 5mm. From each cylinder, remove a concentric inner core with a radius of 9.15mm starting at a height of 2mm, and remove a smaller concentric core with a ra...
pack_x = 3; pack_y = 3; cell_dia = 18.3; cell_rim_thiknes = 2; cell_rim_hight = 2; cell_holder_hight = 5; tab_width = 8; tab_thickness = 0.5; $fn=48; x_offset = (cell_dia+cell_rim_thiknes)/2; y_offset = 0; module cell_holder(){ difference(){ cylinder(r = (cell_dia/2)+cell_rim_thiknes,h = cell_holde...
glb/cad_aa0db6bffb4b.glb
Create a 3uP Power Supply Mount with a total height of 12mm. Start by forming the main body: a rectangular base measuring 50mm in length, 5mm in thickness, and 12mm in height, positioned from x = -12 to x = 38. Attach a rail mount section consisting of a 5mm wide by 24mm long by 12mm high block at x = 12, and a smaller...
$fn = 64; width = 12; m4hs = 0.8; m5hs = 0.7; difference() { union() { translate([12, 0, 0]) cube(size = [5, 24, width]); translate([24.5, 16, 0]) cube(size = [6, 9, width]); translate([6.001, 14.001, 0]) difference() { cube(size = [...
glb/cad_d6167354cffc.glb
Create a J1772 Holster consisting of a wall-mounting plate and a cylindrical hanger. First, create the wall mount plate as a flat rectangular base 71.12mm wide by 66.675mm long with a thickness of 5.08mm. Center two screw holes with a diameter of 4.76mm, spaced 54.61mm apart width-wise and 50.54mm apart length-wise. ...
i2mm=25.4; $fn=180; convexity=10; base_width=2.8*i2mm; base_length=2.625*i2mm; base_height=0.2*i2mm; base2_length_diff=1/4*i2mm; base2_height=0.26*i2mm; base_support_height=12; screwhole_dia=3/16*i2mm; screwhole_rad =screwhole_dia/2; screwhole_headspace_dia=3/8*i2mm; screwhole_headspace_rad=screwhole_headspace_dia/2;...
glb/cad_dce181f85019.glb
Create a spool holder base by starting with a rectangular block measuring 80mm in length, 20mm in width, and 20mm in height. Center this block on the origin. Carve a rectangular channel through the center of the block along its entire 80mm length; this channel should be 8mm wide and 8mm high, leaving 6mm of material at...
%translate([50,0,136.5]) rotate([0,90,0]) cylinder(r=132.5,h=5mm,center=true); %translate([-50,0,136.5]) rotate([0,90,0]) cylinder(r=132.5,h=5mm,center=true); %translate([-28.5,0,4]) rotate([90,0,0]) cylinder(r=4,h=450,center=true); %translate([28.5,0,4]) rotate([90,0,0]) cylinder(r=4,h=450,center=true); difference()...
glb/cad_21938fc68d3e.glb
Create a Finger-Friendly Snap-On Hex Socket tool. Start by creating a main cylindrical body with a diameter of 14mm and a height of 6mm. In the center of this cylinder, carve out a hexagonal hole with a flat-to-flat width of 8mm and a depth of 3mm. To create the finger grips, add two identical cylinders to the top sur...
head_dimension = 8; socket_depth = 3.0; wall_thickness = 3.0; ear_diameter = head_dimension*1.5; ear_thickness = 2.0; ear_spacing = 0.43; ear_style = "mickey"; $fn=40; module hull_or_not(hull) { if(hull == true) { hull() children(); } else { children(); } } module symmetr...
glb/cad_f13ffcc5583e.glb
Create a shaving brush stand with a total height of 115mm, a width of 70mm, and a depth of 85mm. The main body is a hollowed-out shell with walls 5mm thick. The front and back are open, while the sides are closed. The interior is carved out to create a large central cavity measuring 115mm in width, 45mm in height, and ...
difference(){ union(){ translate([5,2.5,0])cube ([120,55,70]); translate([0,0,2]){ minkowski(){ cube([4,60,85]); rotate([0,90,0]) cylinder(r=2,h=1); } } } translate([5,2.5,55])cube([5,55,25]); hull(){ translate([55,-...
glb/cad_5883af49912a.glb
Create a 9 volt battery spacer by constructing a hollow rectangular box. Start with a solid rectangular prism measuring 43mm in length, 25.75mm in width, and 16.88mm in height. From the center of this volume, remove a smaller rectangular prism measuring 40mm in length, 22.75mm in width, and 16.88mm in height. Ensure th...
difference(){ cube([43,25.75,16.88],center=true); cube([43-3,25.75-3,16.88],center=true); }
glb/cad_bff34e035315.glb
Create a Pencils Fan holder by starting with a solid rectangular block measuring 77mm wide, 77mm deep, and 30mm high. Within this block, create a grid of 64 holes arranged in 8 rows and 8 columns. Each hole is a cylinder with a diameter of 9mm and a depth of 40mm, though only the top 30mm of the hole penetrates the blo...
module pencil() intersection() { cylinder(180,0,40,$fn=18); cylinder(180,4.5,4.5,$fn=6); } module pencilHole() { difference() { translate([0,0,3])intersection() { cylinder(180,0,40,$fn=18); cylinder(30,4,5,$fn=18); } } } angle=2.5; numRows=8; numCols=8; difference() { translate([-11.5,-11.5,0]) cube([nu...
glb/cad_52908e5f1f4c.glb
Create a Pencils Fan holder by constructing a grid of 25 square sleeves arranged in 5 rows and 5 columns. Each individual sleeve is a hollow square prism with an outer dimension of 7mm by 7mm and a wall thickness of 1.4mm, extending to a height of 60mm. Position these sleeves so they are not perfectly vertical; inste...
tLen=20; bSize=7; thickness=1.4; spacing=0.3; withGaps=false; module oneSleve() { translate([0,0,tLen*2])rotate([0,180,-45]){ difference() { translate([0,0,0])cylinder(tLen*3,bSize-3.1,bSize+1,$fn=4); translate([0,0,-0.01])cylinder(tLen*3+2,bSize-3-thickness,bSize+1-thickness,$fn=4); } } } rows=5; cols=5...
glb/cad_db7fc6f8e1ce.glb
Create a Recursive Reuleaux Triangle model consisting of a nested series of geometric frames and rollers. First, construct an outer square frame with a total width and length of 43mm and a height of 6mm. This frame has a wall thickness of 4mm. The interior of this frame is hollowed out by a centered square opening of...
$fn = 100; tol = 0.05; tolerance=1; triwidth=35; height = 6; wall = 4; module case4(triwidth) { difference() { caseo(triwidth); casei(triwidth); } } module caseo(triwidth){ casewidth = triwidth+tolerance*2+wall*2; translate([-casewidth/2, -casewidth/2+wall/2,-height/2]) cube([casewidth, casewid...
glb/cad_11546df0ff44.glb
Create a Makerfront i3PRO threaded rod bushing consisting of a tiered cylindrical body with a central vertical hole. Start by creating a base flange as a cylinder with a diameter of 12.4mm and a height of 2.6mm. On top of this base, add a second cylinder with a diameter of 10mm and a total height of 10mm. Within this s...
$fa = 0.1; $fs = 0.2; insert_ht = 10.0; insert_diam = 10.0; ziptie_diam = 9.4; ziptie_offset = 4.0; ziptie_channel = 2.6; cap_ht = 2.6; cap_diam = 12.4; clear_diam = 8.4; difference() { union() { cylinder(h=cap_ht, d=cap_diam); translate([0, 0, cap_ht]) { cylinder(h=insert_ht, d=ziptie_diam); cylinder(h=ziptie_of...
glb/cad_841bb7c0af96.glb
Create a Parametric Socket Organizer consisting of a rectangular base with a grid of protruding nibs to hold sockets. Start with a base plate measuring 60mm in width and 80mm in length, with a thickness of 3mm and rounded corners of 3mm. Center the text "Sockets" on the front edge of the base, extruding it 1.4mm deep...
$fa = 2; $fs = 1; drive_size = 3; spacing = 20; rows = 2; cols = 3; clearance = 0.3; txt = ["10","8","7","6","5","4"]; label_text = "Sockets"; nib_size = drive_size/8*25.4-clearance; nib_height = 1.2*nib_size; basethickness = 3; letter_depth = 1.4; label_size = 2*4*drive_size/3; difference() { if (label_te...
glb/cad_bd31593e237f.glb
Create a Bowden tube threading tool consisting of two separate parts: a base and a guide. Both parts share a common outer profile based on a hexagon with rounded corners, with a diameter of 23mm and a corner radius of 3mm. Construct the base as a 10mm tall hexagonal prism. Bore a central vertical hole through the enti...
use <MCAD/shapes/polyhole.scad> use <MCAD/fasteners/nuts_and_bolts.scad> include <MCAD/units/metric.scad> chamfer_depth = 2; tube_od = 4; tube_id = 2; clearance = 0.3; nut_size = 4; guide_height = 10; base_height = 10;; body_d = 23; round_r = 3; hub_d = 15; hub_h = 3; clearance = 0.4; nut_tolerance = 0.025; mode...
glb/cad_df190654e439.glb
Create a Dial Indicator Mount for a Stepstruder. Start with a central rectangular mounting block measuring 40mm wide, 25mm deep, and 9mm thick. Center this block and remove two cylindrical holes with a diameter of 3.6mm, positioned 15.505mm from the center along the width axis, passing through the depth of the block. ...
use <./MCAD/3d_triangle.scad> indicator_sensor_diameter=6.5; indicator_mount_diameter = 9.9; mount_depth = 18; bolt_diameter=3.65; block_width = 25; offset = 3; $fa=1; $fs=0.5; thick = 1.6; gap = 1; indicator_sensor_radius=indicator_sensor_diameter/2; indicator_mount_radius = indicator_mount_diameter/2; bm_x ...
glb/cad_9152dbc1256a.glb
Create a leveling leg for a dishwasher consisting of a hexagonal base and a threaded rod. Start by creating a hexagonal prism base with a height of 18mm and a diameter of 24mm (measured across the flats). Centered on top of this base, add a right-hand trapezoidal threaded rod with a total axial length of 27mm. The th...
use <Thread_Library.scad> dishwasher = 2; thread(); foot(); module thread() { if (dishwasher == 2) { translate([0,0,18]) trapezoidThread ( length = 27, pitch = 4.6, pitchRadius = 7.3, threadHeightToPitch = 0.6, p...
glb/cad_b1d8fa669bcb.glb
Create a RAMPS project box lid. Start with a square plate 60mm wide and 60mm deep with a thickness of 2mm. Round the four corners of this plate with a radius of 5mm. In the center of the plate, create a circular cutout with a diameter of 50mm. Within this central circular area, add a decorative structural element con...
side=60; thick=2; hole=4.5; hole_s=50; hole_f=50; corner=5; decor=-40; difference() { hull() { translate([ (side/2-corner), (side/2-corner),0])cylinder(h=thick,r=corner); translate([ (side/2-corner),-(side/2-corner),0])cylinder(h=thick,r=corner); translate([-(side/2-corner), (side/2-corner),0])cylinder(h=thick,r=cor...
glb/cad_0520e1f9588f.glb
Create a project box for a RAMPS board with overall outer dimensions of 76mm width, 146mm depth, and 60mm height. The walls should be 3mm thick. The main body is a hollow rectangular shell. On the left and right sides, create four vertical mounting protrusions on each side. Each protrusion is formed by a hull of two ...
wall=3; case(); module case() { intersection() { difference() { union() { cube([70+2*wall,140+2*wall,60],center=true); bef(); mirror([0,1,0]) bef(); rotate([0,0,180])bef(); mirror([0,1,0])rotate([0,0,180])bef(); ...
glb/cad_a7e54dad11f5.glb
Create a Schlage SC1 duplicating house key. Start with a flat base of 2.032mm thickness. The key consists of a handle and a blade. The handle is a rounded rectangle measuring 25.4mm by 25.4mm with a 3.175mm radius on the corners and a cylindrical hole with a 3.175mm diameter centered 11.9mm from the left edge. The bla...
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_428e6c3c9a20.glb
Create a Kwikset KW1 duplicating house key. Start with a base blade that is 2.032mm thick, 8.57mm wide, and approximately 28.575mm long. At the end of the blade, create a rounded handle that is 25.4mm long, 25.4mm wide, and 2.032mm thick, with a circular hole of radius 3.175mm centered 4.76mm from the handle's left edg...
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_8c025f91418d.glb
Create a clutch linkage replacement part consisting of two symmetrical end assemblies connected by a central void. At each end, construct a composite joint. Start by placing a sphere with a radius of 9.5mm centered at x=88 and x=-88. At the x=88 position, integrate a cylinder with a radius of 9.5mm and a height of 10mm...
$fn=100; difference() { union() { place(part="clutch con3.dxf",colour="Yellow",x=-101.665,y=-581.5,z=-9,h1=18); translate([88,(13/2)-7.5,0])color("Yellow") sphere(r = 9.5 ,center = true); translate([88,(13/2)-10,0]) color("Yellow")rotate([-90,0,0]) cylinder(r = 9.5, h=10,center = false); translate([-88,-(13/2)+7.5,0]...
glb/cad_85bcc58f0287.glb
Create a model consisting of two identical, slender tilted columns. Each column is a 15-sided prism with a diameter of 70.4mm and a height of 1mm. Position the first prism so its center is at [0, 10, -1], then rotate it 10 degrees on the X-axis and 18 degrees on the Y-axis. Position the second prism so its center is ...
Build_Gangsta(); module Build_Gangsta() { translate([0, 0, 4.7]) Calfs(); translate([0, 0, 25]) Thighs(); } module Thighs() { difference() { translate([0,0,-25])gangsta(); translate([-50, -50, 22]) cube(100); translate([-50, -50, -26]) cube([100,100, 25]); } translate([0, 10, -1]) rotate ([10,18, 0]) cylinder(70.4...
glb/cad_c5a6e0fc0a45.glb
Create a gear for a hand crank centrifugal blower. Start with a main disk that has a radius of 120mm and a thickness of 10mm. Around the outer edge, create 32 teeth by alternating 32 small cylinders of radius 4.68mm (calculated as $\pi \times 14 / 32$) centered at the 120mm radius; first, add 32 cylinders to form the t...
rbc=120; nt=32; tg=10; hr=14; pi=3.14159265; module small_circles_outer(n, sr, height) { lr=(sr*pi)/n; for ( i = [0 : n] ) { rotate([0,0,(360*(i/n))]) translate([sr,0,0]) cylinder(h=height, r=(lr/2)); } } module small_circles_inner(n, sr, height) { lr=(sr*pi)/n; for ( i = [0 : n] ) { rotate([0,0,(360*(0.5/n...
glb/cad_1efb5481224b.glb
Create a sprinkler nozzle assembly designed for an 8mm hose. Start with a central hub that is a cylinder with a diameter of 25mm and a height of 8.5mm. Extend two symmetrical connector arms from opposite sides of the hub. Each arm begins as a cylinder with a diameter of 6mm and a length of 12mm, transitioning via a c...
hub_diameter = 25; connector_diameter = 6; barb_diameter = 8.5; connector_length = 12; barb_length = 6; nozzle_inner_diameter = 1; nozzle_length = 3; num_nozzles = 3; nozzle_spread = 75; wall_thickness = 0.7; is_end_stop ...
glb/cad_a27b2e78cb75.glb
Create a ZMR 250 arm spanner by starting with a rectangular solid block measuring 21mm in width, 16.5mm in depth, and 2.75mm in height. Centered within this block, remove four identical hexagonal holes to create sockets for bolts. Each hexagonal hole must have a diameter of 6.5mm. Position the holes in a grid pattern: ...
border = 3; height = 2.75; spannerWidth=6.5; vSpacing = 12; hSpacing = 10; module SpannerHole() { translate([vSpacing/2,hSpacing/2,0]) cylinder(h=2.75, d=spannerWidth, $fn = 6); } difference() { translate([0,0,height/2]) cube([vSpacing + spannerWidth+border, hSpacing + spannerWidth+border, 2.75], true); ...
glb/cad_8a8cd5a101ed.glb
Create a polygonal box and lid with 6 sides. For the box, create a hexagonal prism with a radius of 25mm and a height of 25mm. Hollow out the center by removing a hexagonal prism with a radius of 20mm, starting from a height of 5mm from the base and extending upwards. To create the alignment lip, add a hexagonal prism ...
box_sides = 6; box_rad = 25; base_height = 25; lid_height = 10; wall_thickness = 5; rim_thickness = 2.5; rim_height = 2.5; v_slop = 0; h_slop = 0; translate([box_rad + 2, 0, 0]) difference() { union() { cylinder(r = box_rad, h = base_height, $fn = box_sides); cylinder(r = box_rad - wall_thi...
glb/cad_1a07c460788c.glb
Create a battery holder for a quadcopter. Start by creating a central rectangular base plate that is 2mm thick, 35mm wide, and 35mm long. On the top surface of this base, add two symmetrical wedge-shaped rails running along the length of the sides. Each rail should be 35mm long, 2mm wide at the base, and taper from a...
module Wedge(x1,x2,yy,zz) { rotate([90,0,0]) linear_extrude(height = zz, center = true, convexity = 10) polygon( points=[[0,0],[x1,0],[x2,yy],[00,yy]] ); } module WedgeZ(x1,x2,yy,zz) { rotate([0,0,90]) Wedge(x1,x2,yy,zz); } module WedgeZZ(x1,x2,yy,zz) { rotate([0,0,-90]) Wedge(x1,x2,yy,zz); } module WedgeX(xx...
glb/cad_2b4a858e970e.glb
Create a Quadcopter Design frame starting with a base plate. Construct the base by creating a hull from four cylinders with a diameter of 6mm and a height of 1.4mm, positioned at coordinates (±40, ±8, 0.7). From this plate, remove four wedge-shaped voids rotated 45 degrees, each with a height of 6mm and dimensions tran...
module Wedge(x1,x2,yy,zz) { rotate([90,0,0]) linear_extrude(height = zz, center = true, convexity = 10) polygon( points=[[0,0],[x1,0],[x2,yy],[00,yy]] ); } module WedgeZ(x1,x2,yy,zz) { rotate([0,0,90]) Wedge(x1,x2,yy,zz); } module WedgeZZ(x1,x2,yy,zz) { rotate([0,0,-90]) Wedge(x1,x2,yy,zz); } module Base() { ...
glb/cad_c125c6430c99.glb