Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Planetary Gearbox Clock consisting of a complex gear train enclosed in a cage frame. Start by constructing the gear train: create two planetary gear sets. The first set (minutes to hours) uses a sun gear with 19 teeth and planets with 20 teeth. The second set (hours to half-day) uses a sun gear with 12 teeth...
use <mcad/involute_gears.scad> include <clockworkLibrary.scad> v=0; assembly(); explodeZ=0; explodeR=0; showCage=true; joinfactor=0.25; cageArms=6; cageLength=40; cageWidth=2; socketLength=5; th=1; overlap=20; secondLength=cageLength-4*cageWidth; minuteLength=0.6*secondLength; hourLength=0.3*secondLength; handWidt...
glb/cad_ebdc1e651cd5.glb
Create a 3D model of the Indalo-Almeria symbol with a uniform thickness of 5mm. Start by creating a central vertical trunk as a rectangular prism 8mm wide, 17mm tall, and 5mm thick, centered at the origin. At the top of this trunk, place a cylindrical head with a diameter of 15mm and a thickness of 5mm, centered horizo...
module indalo(height=5,figure_width=8,d_head=15,flat_foots=true){ union(){ translate([0,8.5+4,0]) cube([48,figure_width,height],center=true); cube([figure_width,17,height],center=true); translate([0,8.5+8+6,0]) cylinder(h=height,d=d_head,$fn=100,center=true); difference() { translate([0,-29.2,0]) rotate([0,0,-45]...
glb/cad_5d9b5c2913d2.glb
Create a Three Way Flow Control Valve. Start by constructing an outer ring that is a cylinder with a radius of 15mm and a height of 20mm, centered at the origin. Hollow out the center of this ring with a cylinder of radius 15.75mm and height 15.75mm. Around the perimeter of this ring, place six slider boxes, each a cub...
translate([0,0,37])rotate([180,0,0])fullassembly(); module fullassembly(){ outerring(); centerdisk(); translate([-5,0,0])rotate([0,0,0])slider(); rotate([0,0,60])slider(); rotate([0,0,120])slider(); rotate([0,0,180])slider(); rotate([0,0,240])slider(); rotate([0,0,300])slider(); base(); translate([0,-24.5,14...
glb/cad_0b346cda326f.glb
Create a flash diffuser for a camera. Start by constructing a base slide that is 18.3mm wide, 17mm long, and 1.3mm high. In the center of this base, add a raised rectangular section that is 12.3mm wide and 2.3mm high. Build a surrounding wall structure with a thickness of 1.5mm. The walls should extend from the base t...
luft=0.5; epsilon=0.1; flat_w = 18.3; flat_l = 17; flat_h = 1.8 - 0.5; flat_top_w = 12.3; flat_top_h = 1; sideway = 25; forthway = 40; wayup = 50; wide_w = 66; uplow = 15; side_thickness = 1.5; bounce_angle = 45; module slide() { translate([-flat_w/2,0,0]) union() { difference() { cube(size=...
glb/cad_d51911ca101e.glb
Create a tilt-rotor EDF tricopter mount. Start by creating a main cylindrical ring with an outer diameter of 65mm and a height of 10mm, with a concentric inner hole of 58.25mm. Cut a rectangular slot 35mm wide and 70mm long through the center of this ring. Add two symmetrical flanges to the ring: each consists of a c...
module TubeClamp() { difference() { union() { rotate([90,0,0]) difference() { rotate([0,0,22.5]) cylinder(r=9,h=30, $fn=8); translate([0,0,-.5]) cylinder(r=6.05,h=36, $fn=64); } } translate([0,-21.5,-10]) cylinder(r=1.5,h=20,$fn=120); } } module servo_mount() { differenc...
glb/cad_ef3e78f052ee.glb
Create a tilt-rotor EDF tricopter mount. Start with a main cylindrical ring that has an outer diameter of 65mm and a height of 10mm. Remove a concentric inner cylinder with a diameter of 58.25mm and a height of 11mm to create a wall thickness of 3.375mm. Cut a rectangular slot through the ring, measuring 35mm wide by 7...
module servo_mount() { difference() { cube([4.5,27.5+28,18]); translate([-.2,4.5,3]) cube([5,23,12]); translate([-.2,2.5,9]) rotate([0,90,0]) cylinder(r=.7,h=5,$fn=64); translate([-.2,29.5,9]) rotate([0,90,0]) cylinder(r=.7,h=5,$fn=64); } } difference() { cylinder(d=65, h=10, $fn=120); translat...
glb/cad_d3112b3015e2.glb
Create a build plate for the Excelsior Delta tilt-rotor tricopter. Start with a rectangular base measuring 45mm in width, 40mm in depth, and 2mm in height. At the front edge, centered along the width, add a horizontal cylinder with a radius of 3mm and a length of 6mm, positioned 1mm above the base. On the rear sectio...
module RearTab() { difference() { union() { translate([5.5,0,8]) rotate([0,90,0]) scale([1,2,1]) cylinder(r=4.5,h=5, $fn=90); } translate([5.4,6.75,8]) rotate([0,90,0]) cylinder(r=.75, h=10.2, $fn=90); translate([5.4,-6.75,8]) rotate...
glb/cad_e3dfb5aa9f19.glb
Create a base rectangular plate measuring 42.5mm in length, 18mm in width, and 3mm in height. On the top surface of this plate, add a small rectangular block measuring 7mm by 6mm with a height of 3mm, positioned at coordinates (31, 6, 3). Extending from the base, create a composite arm formed by the convex hull of a 5m...
difference() { union() { cube([42.5, 18, 3]); hull() { translate([31, 6.5, 5]) rotate([0,60,0]) cube([5,5,30]); translate([60, 9, 19]) sphere(r=3, $fn=200); } translate([31, 6, 3]) cube([7,6,3]); } translate([3, 9, -.05]) cylinder(r=1.5, h=3.1, $fn=120); translate([34.5, 9, -.05]) cy...
glb/cad_efeeaf2b6e98.glb
Create a TubeClamp for a tilt-rotor aircraft. Start by creating a primary cylinder with a radius of 9mm and a height of 30mm, but modify its cross-section to be an octagon rather than a smooth circle. Bore a concentric hole through the center of this octagonal shape with a radius of 6.05mm and a height of 36mm. To fi...
module TubeClamp() { difference() { union() { rotate([90,0,0]) difference() { rotate([0,0,22.5]) cylinder(r=9,h=30, $fn=8); translate([0,0,-.5]) cylinder(r=6.05,h=36, $fn=64); } } translate([0,-21.5,-10]) cylinder(r=1.5,h=20,$fn=120); } } module servo_mount() { differenc...
glb/cad_0c1c6e96f59a.glb
Create a piece of ring mail consisting of a grid of interlinked rings. Each individual ring should be constructed as an octagonal prism with a diameter of 20mm, a height of 5mm, and a wall thickness of 2.5mm. The rings must be hollowed out to create a closed loop. Arrange these rings in a staggered layout of 9 columns...
link_size = 20; ring_rows = 6; ring_cols = 9; module right(x) {translate([+x,0,0]) children();} module left(x) {translate([-x,0,0]) children();} module back(y) {translate([0,+y,0]) children();} module fwd(y) {translate([0,-y,0]) children();} module up(z) {translate([0,0,+z]) children();} module down(z) {tran...
glb/cad_69c7fbb382fd.glb
Create a Bike Helmet Mount for a GoPro Gimbal. Start by creating a central cylindrical clamp with an inner diameter of 25.5mm and a wall thickness of 3mm. This clamp should have a total length of 60mm. To allow for helmet curvature, carve a concave cutout from the bottom of the clamp. This cutout should follow a doubl...
helmet_x_rad = 100; helmet_y_rad = 100; helmet_wings = 20; gimbal_bar_diam = 25.5; mount_length = 60; clamp_angle = 15; clamp_wall = 3; clamp_screw = 3; clamp_tabs = 10; module right(x) {translate([+x,0,0]) children();} module left(x) {translate([-x,0,0]) children();} mo...
glb/cad_a85fb6bddb45.glb
Create a Kegerator Drip Tray by constructing a rectangular outer shell and filling it with a grid of cylindrical pegs. Start with a solid rectangular base measuring 128mm in width, 96mm in depth, and 10mm in height. Hollow out the center of this block by removing a smaller rectangular volume from the top, leaving a wal...
in = 25.4; width = 128; depth = 96; height = 10; base = 4; union(){ difference(){ cube([width,depth,height]); translate([base,base,base])cube([width-base*2,depth-base*2,height]); } for (x= [1:width/(2*base)-1]){ for (y= [1:depth/(2*base)-1]){ translate([x*2*base,y*2*base,0])cylinde...
glb/cad_de6a1a2f6ce9.glb
Create a Coat of Arms emblem. Start with a main rectangular base measuring 60mm wide by 70mm deep with a thickness of 7mm. Add a second rectangular layer on top of the base, 60mm wide by 4mm deep and 8.5mm thick, aligned to the top edge. Shape the bottom of the emblem by removing two large semi-circular sections, each...
Coat_Of_Arms(Logo1 = "MakerBot", Logo2 = "ThingOMatic", Logo3="None", Swords="True"); module Coat_Of_Arms(Logo1 = "Makerbot", Logo2 = "Cupcake", Logo3="None", Swords="True") { difference() { union() { cube([60, 70,7]); translate([0,4,0]) cube([60,4,8.5]); } translate([45,-12.5,0]) scale([1, 0.51, 1]) cy...
glb/cad_a9432f1af325.glb
Create a Castle MakerBot decorative set consisting of a torch and a wall mount. To create the torch, start with a cylinder 30mm high with a radius of 15mm. Hollow out the center by removing a cylinder of radius 1.5mm and height 6mm from the base, and a cylinder of radius 2.75mm and height 3mm starting at a height of ...
translate([-35,0,0]) Torch(); WallMount(); module Torch() { difference() { cylinder(30, 15, 15); cylinder(6, 1.5,1.5, $fn=16); translate([0, 0,6]) cylinder(3, 2.75,2.75, $fn=16); translate([0, 0, 9]) cylinder(30, 10.25, 10.25, $fn=64); translate([0,0,12.5]) cylinder(21, 12, 12); for (i = [1:5]) { rotate([0, 0, i * ...
glb/cad_54dbf5fd87cd.glb
Create a Castle MakerBot turret. Start with a main cylindrical body 70mm tall with a diameter of 40mm, using a 30-facet resolution. On top of this body, add a smaller cylinder 20mm tall with a diameter of 30mm. Hollow out the interior by removing a cylinder starting 7mm from the base with a diameter of 37mm and a heig...
Turret(); module Turret() { difference() { union() { cylinder(70, 40, 30); translate([0,0,70]) cylinder(20,30,30); } for(i=[1:8]) { translate([0, 0, 82.5]) rotate([ 0, 0, i*45]) cube([100,10,11]); } translate([0,0,7]) cylinder(60, 37, 27); translate([0,0,75]) cylinder(20, 27,27); translate...
glb/cad_dada01df3735.glb
Create an Iris Box consisting of a base, a rotating ring, and five sliding leaves. Construct the base as a cylinder with an outer diameter of 80mm and a height of 65mm. The base has a wall thickness of 10mm at the top face and 2mm at the bottom. Hollow out the center with a cylinder of radius 35mm and height 55mm. Aro...
assembly(); d=80; w1=10; w2=2; h=65; t=5; dp=3.5; dc=3.6; cw=2.5; hp=3; t1=10; n=40; $fs=0.5; $fa=6; x=(d/2-w1)/(d-w1); theta=acos(x); phi=90-theta; psi=72-theta-3*phi-90; d1=(d-w1)*sin(72-theta); k=(d/2-w1-d1)/(72-theta-3*phi); k1=(d/2-w1-d1)/(72-theta-3*phi+2*(90-72)); thetai=-d1/k-90; turn1=2*asin(d1/2/(d/2-w1/2))...
glb/cad_2b53d9f1a9d0.glb
Create a slicer test for thin objects consisting of a series of 17 rectangular bars aligned in a row. Each bar must have a length of 10mm and a height of 2mm. The width of the first bar starts at 0.4mm, and each subsequent bar increases in width by 0.1mm increments until the final bar reaches a width of 2mm. Position t...
for (x=[0.4:0.1:2]) { translate([(x-0.4)*50,0,0]) cube([x,10,2]); }
glb/cad_e4013ccbadd0.glb
Create a rack mountable box with a depth of 600mm and a wall thickness of 2mm. The overall height should be based on one rack unit (44.5mm), minus a margin of 0.787mm. Construct the main body as an open-topped rectangular container. The bottom plate is a rectangle of 600mm depth and a width derived from the standard ...
goal=0; units=1; containerThickness=2; depth=600; screwType=12; mountThickness=3; screwStripThickness=5; rearVents=1; sideVents=1; bottomVents=0; topVents=0; threaded=0; top_screw_dia=2; top_screw_countersink_dia=4.5; top_screw_post_dia=5; top_screw_spacing=75; rackHeightPerUnit=44.50; rackTotalWidth=48...
glb/cad_ac9cc9aaa00f.glb
Create a customizable lithophane plaque with a base size of 69mm by 104mm. The main body is a thin rectangular plate with a thickness of 0.4mm. On top of this base, add a raised border that is 3mm wide around the entire perimeter. At the center of the top edge, integrate a circular hanging hole with a diameter of 4mm...
image_file = "image-surface4x6.dat"; hole_diameter = 4; hole_border = 2; lithophane_border = 3; layer_height = 0.2; number_of_layers = 12; s=0.01; length = 69; width = 104; min_layer_height = layer_height*2; hole_radius = hole_diameter/2; height = layer_height*number_of_layers; height_borderless=height/2; union()...
glb/cad_bc4165cce485.glb
Create a V393 to V303 Button Cell Adapter by designing a crescent-shaped spacer. Start with a primary cylinder that has a radius of 5.45mm (half of the 10.9mm adjusted outer diameter) and a height of 5.25mm, centered on the Z-axis. Subtract a second cylinder from the first to create the inner cavity. This second cyli...
a_bit=0.1; v303_diameter=11.5; v303_height=5.25; v393_diameter=8; v393_height=5.25; angle_to_remove=75; tolerance=0.3; crescent (v303_diameter/2, v303_height, v393_diameter/2, v393_height, angle_to_remove, tolerance); module crescent (outer_radius, outer_height, inner_radius, inner_height, chunk_angle, tolerance){ ...
glb/cad_132b25d70ce1.glb
Create a laptop camera privacy shield by constructing a hollow rectangular sleeve and an attached tab. Start with a main rectangular block measuring 10mm wide, 18mm high, and 10mm deep. Carve out a central rectangular void from this block to create a sleeve with a wall thickness of 2mm on the top and bottom and a heigh...
lid_thickness = 6; width = 10; height = 15; rotate([0,90,90]) { difference() { cube([width, height+3, lid_thickness+4], center=true); translate(v=[0,-1,0]) cube([width+4, height+2, lid_thickness], center=true); } translate(v=[0,height-(height*0.34),0]) cube([width,5,2],center=true); }
glb/cad_5b2b6adb00cd.glb
Create a Button Cell Battery Adapter by constructing a crescent-shaped sleeve. Start with a main outer cylinder that has a radius of 5.45mm (half of the 10.9mm diameter after applying a 0.3mm tolerance) and a height of 5.25mm, centered on the Z-axis. Subtract a smaller inner cylinder from this volume to create the ca...
a_bit=0.1; larger_diameter=11.5; larger_height=5.25; smaller_diameter=8; smaller_height=5.25; angle_to_remove=150; tolerance=0.3; translate (v=[0,0,larger_height/2]) crescent (larger_diameter/2, larger_height, smaller_diameter/2, smaller_height, angle_to_remove, tolerance); module crescent (outer_radius, outer_heigh...
glb/cad_83bf9aafcbc1.glb
Create an epicyclic gearing train chassis. Start by creating a main cylindrical body with a radius of 80mm and a height of 10mm. From this body, remove a concentric inner cylinder with a radius of 55mm and a height of 10mm to create a thick ring. Within this ring, create a large internal gear by subtracting a complex ...
include </Users/gregaurelie/Desktop/imprimante_3D/train_epicycloidal/satellite.scad>; fudge = 0.1; module planetaire_42d(h) { scale([25.4/90, -25.4/90, 1]) union() { linear_extrude(height=h, center = false, convexity = 10, twist = 15, slices = 100) polygon([[225.282550,-11.461870],[236.687000,-8.856200]...
glb/cad_4fbed2479ec0.glb
Create a customizable luggage tag by starting with a central rectangular block measuring 50mm in length, 13mm in width, and 13mm in height. Attach two smaller cubes to the left and right ends of this block; these end cubes should be rotated 45 degrees on the Z-axis and scaled by a factor of 1.7 along the X-axis to crea...
area_code = "800" ; prefix = "555" ; number = "1234" ; font = "Liberation Sans" ; length = 50 ; end_type = "Symmetrical" ; s = 13*1 ; l = length*1 ; h = s*sqrt(2)/2 ; h2 = h*0.65 ; cs = 1.7*1 ; e = 1.5*1 ; ts = s*0.75 ; f = 0.001*1 ; difference () { union () { cube([l,s,s]) ; scale([cs,1,1]) rotate([0...
glb/cad_9513f37d8642.glb
Create a CubixLED single cell by starting with a centered cube that has side lengths of 25.4mm and a total height of 25.4mm. Hollow out the center of this cube by removing two specific geometric volumes. First, create a square-based pyramid-shaped void with a height of 23.41mm; the base of this void should be a square ...
difference() { translate ( [0,0,12.7] ) cube (size = [25.4,25.4,25.4], center = true); union() { translate ( [0,0,2] ) rotate ( [0,0,45]) cylinder(h = 23.41, r=7.881 , r2 = 15.135 , $fn=4); translate ( [0,0,-7] ) cylinder(h = 20, r = 2.5, $fn= 32); } }
glb/cad_0719d29ab0a7.glb
Create a Generic Slotted Base designed to hold a material at a 15-degree angle of repose. Start by creating a rectangular base with a thickness of 6mm and a width of 25.4mm. Construct two parallel vertical walls, each 6mm thick, separated by a gap of 6.5mm to accommodate a material insert. The front wall should have ...
goldenratio = 1.61803399; joinfactor = 0.125; gWallThickness = 6; gBaseWidth = 1*25.4; gBaseThickness = 6; gBaseFrontBlockHeight = 30; gAngleOfRepose = 15; gMountHoleRadius = 2; gMaterialThickness = 6.5; Bracket(gBaseFrontBlockHeight, gMaterialThickness, gAngleOfRepose, gBaseWidth); module FillWeb(L11,L12,L21,L2...
glb/cad_8e812cc1295a.glb
Create a Helical Vertical Axis Wind Turbine consisting of a central shaft and three twisted blades. The central shaft is a cylinder with a radius of 4mm (half of the 8mm rod size) and a total height of 300mm. Construct three identical helical blades. Each blade is generated by extruding a NACA airfoil profile with ...
Length = 300; Base = 50; Radius = 80; Camber = 0; Position = 0; Thickness = 15; Guide_hole = 1.9; Rod_size = 8; Savonius_Starter = 0; Module = 1; Reinforcement = 0; GapSize = 0.08; Support_Tabs = 1; Tab_Thickness = 1; if (Module == 1){ Turbine_Assembled(); } if (Module ==2){ helical_wi...
glb/cad_af7eef36daa5.glb
Create an electronics enclosure lid for a Smoothieboard. Start with a main rectangular plate measuring 134mm wide by 146mm long with a thickness of 2mm. From the bottom of this plate, remove a central rectangular section measuring 125mm by 139mm with a depth of 8mm, leaving a perimeter rim. At the edges of the lid, ad...
x = -1; length = 146; width = 134; fanx = 32; fany = length / 2; resetx = 135 - 30; resety = 46; rotate([180, 0, 0]) translate([150, -length, -2]) union() { difference() { union() { translate([-0.5, -0.5, 0]) cube(size = [width, length + 1, 2], center = false); translate([2.5, 2.5, -7])...
glb/cad_56ff5285c8e9.glb
Create an electronics enclosure for a Smoothieboard called the M2 Smoothiebox. Start by constructing a main outer shell with a width of 134mm, a length of 146mm, and a height of 55mm. Hollow out the center to create a cavity measuring 129mm by 142mm with a wall thickness of approximately 2.5mm. On the front face, crea...
x = -1; length = 146; width = 134; translate([0, 0, 0]) difference() { union() { translate([-0.5, -0.5, 0]) cube(size = [width, length + 1, 55], center = false); translate([92, length - 1, 0]) cube(size = [width - 92.5, 24, 2], center = false); } translate([2, 2, 1]) ...
glb/cad_a566daf2996c.glb
Create a Craftsman 40V Battery Holder wall bracket. Start with a solid rectangular block measuring 62mm wide, 85mm long, and 18.5mm high. Hollow out the center to create a flange and lip. Remove a central rectangular section measuring 50.25mm wide by 80mm long with a height of 11.5mm to form the main inner opening. B...
FN = 240; clearance = .75; THK = 2.5; LH = 6.5; LT = 5; OH = 18.5; OL = 80; IW = 49.5 + clearance; OW = 57 + clearance; CO_H = 5.5; CO_W = 7.5; CO_OS = 40; CS_D = 6.1; CS_R = CS_D/2; CS_HD = 11.5; CS_HR = CS_HD/2; CS_DEPTH = 4.25; holder(); module holder() { difference() { cube([OW+2*THK,OL+THK,...
glb/cad_9de5c76d91e5.glb
Create a Commemorative Lysozyme Crystal by starting with a sphere of radius 100mm centered at the origin. Carve this sphere into a polyhedral crystal by removing material using a series of intersecting planes. First, create four vertical clipping planes to form a square prism. These planes should be positioned at 45-d...
rotate([90,0,0]) rotate([0,90,0]) rotate([0,0,45]) scale(1.6) lysozyme(10); module lysozyme(length) { difference() { sphere (r=100, center = true); union() { mkplane( sqrt(2)/2,sqrt(2)/2,0,200,200,15); mkplane( sqrt(2)/2,-sqrt(2)/2,0,200,200,15); mkplane(-sqrt(2)/2,sqrt(2)/2,0,200,200,...
glb/cad_33cf74d67042.glb
Create a commemorative model of a lysozyme crystal. Start with a sphere of 100mm radius. Carve the sphere into a polyhedron by removing material using 12 planar cuts. First, create four vertical cuts to form a square prism with a cross-section aligned to the 45-degree diagonals of the XY plane. Next, create eight addit...
font = "Liberation Sans"; letter_height = 2; rotate([90,0,0]) rotate([0,90,0]) rotate([0,0,45]) union() { mkletter(0.70711,0.70711,0,"Lysozyme",7,0,-4,0,26.2,180); mkletter(0.70711,-0.70711,0,"Hen",7,0,7,0,26.2,180); mkletter(0.70711,-0.70711,0,"Egg-White",7,0,-4,0,26.2,180); mkletter(-0.70711,0.70711,0,"Three-D",7,0,...
glb/cad_7f3ad6716905.glb
Create a dishwasher rack protector. The main body is a solid block with a height of 14.5mm. The footprint is a symmetrical polygon defined by the following vertices in the XY plane: (10, -1.5), (24.5, 34.75), (14.5, 34.75), (14.5, 23), (-14.5, 23), (-14.5, 34.75), (-24.5, 34.75), and (-10, -1.5). Carve a vertical slot...
r=2.5; h=37-r-2.25; h2=5; h3=12; h4=23; h5=32; h6=-1.5; w=34; wh=w/2; w2=49; w2h=w2/2; w3=20; w3h=w3/2; w4=29; w4h=w4/2; w5=w2-12; w5h=w5/2; tab=10; g=0.5; t=2.25; t2=10.75; $fn=16; baset = 2*t+4*r; echo(baset); p=[[w3h,h6],[w2h,h],[w5h,h],[w4h,h4], [-w4h,h4],[-w5h,h],[-w2h,h],[-w3h,h6]]; echo(p); difference() {...
glb/cad_a6f5249d89b1.glb
Create a dishwasher rack section consisting of a series of seven vertical octagonal pins connected by a single horizontal base. Each pin is an octagonal prism with a height of 90mm and a radius of 2.5mm. Position the seven pins along a straight line with the following spacing: the first four pins are placed at interv...
height=90; radius=2.5; gap = 35; narrow = 32; wide = 42; angle=22.5; echo(cos(angle)); cr = cos(angle)*radius; $fn=8; px=[0,gap,2*gap,3*gap,3*gap+narrow,3*gap+narrow+wide,4*gap+narrow+wide]; for (x=px) { translate([x,0,0]) { rotate([0,0,22.5]) cylinder(h=height,r=radius); translate([-cr,-cr,0]) cube([2*cr,...
glb/cad_7d3ddc90f9ff.glb
Create an office chair pneumatic cylinder fix clip by starting with a solid cylinder 39mm in diameter and 30mm in height. Hollow out the center by removing a concentric cylinder with a diameter of 29mm and a height of 32mm, positioned to leave the top and bottom faces open. To create the opening for the clip, remove a ...
height=30; diameter=29; thickness=5; $fn=256; difference(){ cylinder(d=diameter+(thickness*2),h=height); translate([0,0,-1]){cylinder(d=diameter,h=height+2);} translate([0,0,-1])cube([diameter+(thickness*2),diameter+(thickness*2),height+2]); } translate([(diameter+(thickness*2))/2,0,0])cylinder(d=thickn...
glb/cad_41651ed5550c.glb
Create an office chair pneumatic cylinder fix clip consisting of two separate parts, both with a height of 30mm. First, create a C-shaped ring with an inner diameter of 28.5mm and a wall thickness of 5mm. This ring should be a hollow cylinder with a vertical slice removed to allow it to snap onto a piston. The cutout...
height=30; diameter=28.5; thickness=5; $fn=256; clipB_padding=1; color("blue")clipA(); color("red")translate([thickness*1.5,thickness*1.5,0]) clipB(); module clipA(){ difference(){ union(){ difference(){ cylinder(d=diameter+(thickness*2),h=height); translat...
glb/cad_470a79764806.glb
Create a Netatmo Rain Gauge Mount consisting of a square base and a circular upper ring. Start with a square base plate measuring 100mm by 100mm with a thickness of 6mm. Centered on top of this base, add a cylinder with an outer diameter of 96mm and a height of 10mm. Create a central vertical hole through both the ri...
$fa=0.5; $fs=0.5; ring_od=96; ring_id=88; ring_z=10; base_l=100; base_z=6; screw_d=5; screw_z=10; bolt_d=8; bolt_head_d1=12; bolt_head_d2=6; bolt_head_z=4.5; cut_od=ring_id-3; cut_id=40; cut_z=10; strut_x=30; strut_y=10; strut_z=4; module ring() { translate([0,0,base_z*1.2]) cylinder(d=ring_od,h=ring_z, center=...
glb/cad_8d6f858d3255.glb
Create a name block for "Madi" by constructing four extruded letters arranged in a square pattern on a thin base. Start with a flat rectangular base measuring 10.4mm by 10mm with a thickness of 0.25mm. From this base, extrude the letters with a depth of 1.35mm using an Arial-style font. Position the letter "M" vertical...
extrude = 1.35; font = "Arial"; scale([2, 2, 2]) union() { translate([-0.95, 1.35, 0]) rotate([90, 0, 0]) union() { translate([0, 0, 0]) linear_extrude(extrude) text("M", font = font); translate([9.275, 0, 1.35]) rotate([0, 90, 0]) linear_extrude(extrude) text("A", font = font); translate([...
glb/cad_9f1fe17c22e6.glb
Create a geometric cookie cutter in the shape of an equilateral triangle. The main cutting wall should follow a triangular path with a width of 45mm, a height of 13mm, and a wall thickness of 1mm. At the base of this wall, add a flat outward-extending flange that is 5mm wide and 1mm thick, following the same triangular...
use <utils/build_plate.scad> cutter_width = 45; sides = 3; xyratio = 1; skew_angle = 0; flange_width = 5; flange_height = 1; cutter_thickness = 1; height = 13; build_plate_selector = 0; build_plate_manual_x = 100; build_plate_manual_y = 100; build_plate(build_plate_selector,build_plate_manual_x,build_plate_man...
glb/cad_76c42fa233ca.glb
Create a Support Calibrator consisting of three rectangular prisms. First, place a vertical prism measuring 10mm by 10mm with a height of 40mm at the origin. Second, place an identical 10mm by 10mm by 40mm vertical prism 30mm away along the x-axis. Finally, connect these two pillars by placing a horizontal prism measur...
cube([10,10,40]); translate([30, 0, 0]) cube([10,10,40]); translate([0,0,30]) cube([40, 10, 10]);
glb/cad_dc1b1f2a1f7e.glb
Create a Disc Detainer Pick consisting of a long thin rod, a central cylindrical hub, and a hexagonal handle. Start by creating a main rod with a radius of 2mm and a total length of 150mm. At one end of this rod, construct a rectangular head measuring 20mm in length, 5mm in thickness, and 6mm in width. Modify this he...
rod_length=150; rod_radius=2; pin_head_width=6; pin_head_thick=5; pin_head_length=20; pin_head_cut_angle=7; pin_head_cut_height=3; keyplug_length=25; handle_length=100; handle_radius=15; module toothpick(){ rotate([90,0,0]) cylinder(rod_length,rod_radius,rod_radius,$fn=130); translate([-(rod_radius/2),-ro...
glb/cad_19fae0ce59ca.glb
Create a U-shaped pegboard accessory. Start by creating two identical pegs, each consisting of a sphere with a diameter of 7.3mm (calculated as the hole size of 7mm plus a 5% tolerance) centered on a cylinder with a radius of 3.25mm and a height of 5.5mm. Position these two pegs exactly 25mm apart from center to center...
peg_item = "U"; end_arm_percentage=25; peg_length = 20; add_shelf_support = "N"; hook_width_percentage=100; hole_size = 7; tolerance = 5; backing_board = 6; peg_offset = 25; sphere_size=hole_size*(1+(tolerance*.006)); cylinder_radius=(hole_size-.5)/2; object_width=hole_size*(hook_width_percentage/100)+(toleran...
glb/cad_37d304f74189.glb
Create a Parametric Groove Mount for a hotend fan and duct. Start by constructing a main mounting plate that is 50mm wide and 62mm tall with a thickness of 2.5mm. In this plate, place four screw holes with a diameter of 4.5mm, positioned at the corners with a spacing of 38mm between them. Center a circular opening with...
use <groovemount.scad> grovveMount_W = 80; S_d = 4.5; F_size = 50; F_d = 38; F_hs = 38; M_height = 2.5; E_h = 7; D_thickness = 1.5; D_width = 15 + D_thickness*2; D_lenght = 26.5; D_shift = 21; difference(){ union(){ translate([0, 0, 0]) groovemount(34, grovveMount_W, 10, 16.5, 11.5, 4.5, 10, 2); translate([...
glb/cad_ecc1c10925e6.glb
Create a Parametric Groove Mount for a hotend fan. Start with a main body block 35mm long, 75mm wide, and 10mm high. From this body, remove a central rectangular channel 20mm long, 11.5mm wide, and 15mm high, centered on the X and Y axes and starting 5mm from the bottom. Above this, remove a larger rectangular section ...
module groovemount(mount_L, mount_W, mount_H, HE_diameter, HE_small_dim, HE_small_dim_height, fan_screw_mount_w, fan_screw_mount_radius){ union(){ difference() { translate([-12,-mount_W/2,0])cube(size=[mount_L,mount_W,mount_H], center=false); translate([-10,0,5])cube(size=[20,HE_small_dim,15], center=true); ...
glb/cad_d7619f6a0c81.glb
Create a triangular air hockey puck with a height of 7mm. The main body should be an equilateral triangle with a side length of 130mm. Truncate the three sharp corners of the triangle using a 6mm square cut-off at each vertex. Round the edges of these truncated corners by adding a cylinder with a radius of approximatel...
$fn = 100; puck = [ 130, 7.0, 6, ]; scale = 0.80; module triangle(i){ if (i == 1){ linear_extrude(height = puck[1]){ polygon( points = [ [0, puck[0] / (2 * cos(30))], [1/2 * puck[0], -1/2 * puck...
glb/cad_a47dc9c7a001.glb
Create a Distance Spacer consisting of two identical components positioned 40mm apart along the y-axis. Each component is a flat plate 4mm thick. To construct one plate, create a base shape by forming a convex hull around six cylinders, each with a radius of 4mm and a height of 4mm. Position these cylinders at the foll...
$fn=40; module vazba(){ hull(){ cylinder (5,4,4); translate([22,22,0]) cylinder (5,4,4); translate([50,22,0]) cylinder (5,4,4); translate([30,0,0]) cylinder (5,4,4); } } module distantspacer(){ translate([4,4,0]) vazba(); translate([142,4,5]) rotate([0,180,0]) vazba(); hull(){ translate([4,4,0]) cylinder (25,4,4); t...
glb/cad_d654f4b0e734.glb
Create a KitchenAid Mixer Attachment Cap by first constructing a rectangular base block measuring 30mm wide, 21mm high, and 6mm thick. Centered on the top face of this block, carve out five vertical rectangular channels. Each channel should be 1.5mm wide, 15mm high, and 0.75mm deep. These channels must be evenly spaced...
scale=3; caseWidth= 10*scale; caseHeight= 7*scale; caseThickness= 2*scale; channelWidth= 0.5*scale; channelHeight= 5*scale; channelDepth= 0.25*scale; knobWidth= 1.5*scale; knobHeight= 1*scale; knobThickness= 0.5*scale; numberChannels= 5; function EQ(c) = 0.5* channelHeight * cos(7*c*caseWidth/(numberChannels+2));...
glb/cad_1f5b66fc19a5.glb
Create a Fruit Holder consisting of a central vertical pillar and two intersecting rings. Start by creating a central vertical cylinder with a diameter of 8mm and a total height of 25mm. At the top of this pillar, add a smaller cylinder with a diameter of 4mm and a height of 1mm. Around the base of the main pillar, pla...
fullthing(); module fullthing(){ union(){ translate([6.5,0,0])ring(); translate([-6.5,0,0])ring(); cylinder(25,4,4); translate([0,0,25])cylinder(15,4,1); } } module ring(){ difference(){ cylinder(3, 7.5, 7.5); cylinder(3, 6, 6); } }
glb/cad_1cdda2a74e69.glb
Create a Disc-Holder for a MakeyMakey by starting with a solid cylinder that has a radius of 83.5mm and a height of 6mm. From the center of this cylinder, remove a smaller concentric cylinder with a radius of 73.5mm and a height of 3mm, leaving a solid base floor 3mm thick and a circular rim 20mm wide. To create the su...
scheibe = 147; rand = 20; breite = 10; hoehe = 6; boden = 3; scheibenhalter(); module scheibenhalter() { difference() { union() { color([1,0,0,1]) translate([0,0,0]) rotate([0,0,0]) cylinder(r=(scheibe+rand)/2,h=hoehe); } union() { translate([0,0,boden]) cylin...
glb/cad_65d67c306861.glb
Create a Disc-Holder for a MakeyMakey by constructing a shallow cylindrical base with a total height of 7mm and a radius of 83.5mm. From the center of this base, remove a cylindrical core with a radius of 73.5mm and a height of 3mm, starting from a height of 2mm above the bottom surface. Additionally, remove a narrower...
scheibe = 147+1; rand = 20; breite = 10; hoehe = 7; shoehe = 3; boden = 2; scheibenhalter(); module scheibenhalter() { difference() { union() { color([1,0,0,1]) translate([0,0,0]) rotate([0,0,0]) cylinder(r=(scheibe+rand)/2,h=hoehe); } union() { translate([...
glb/cad_4bf9c4f19fee.glb
Create a Router Plate with a thickness of 4.5mm. The main body is a composite shape formed by a cylinder with a radius of 78mm and a centered rectangle measuring 108.7mm by 158mm, both 4.5mm thick. From this base, remove a central cylinder with a radius of 32.25mm and a centered rectangular block measuring 64.5mm by 40...
$fn=60; module plate(r) { intersection() { cylinder(r=r,h=plate_thickness); translate([0,0,plate_thickness/2]) cube([(sin(46.95)*r)*2,(r+2)*2,plate_thickness],center=true); } } module screwhole(x=0,y=0) { mhr=5.515/2; mcr=10.31/2; translate([x,y,-0.5]) union() { cylinder(r=mhr,h=plate_thickness+1); t...
glb/cad_e076649a1e3c.glb
Create a Roomba Lighthouse Sclamp designed to hold a charger. Start by creating a central mounting plate that is 40mm wide, 3mm thick, and 20mm high. To form the main holding structure, create two identical C-shaped clamps. Each clamp is derived from a cylinder with a radius of 37mm and a height of 15mm, with a conce...
$fn=25; measured_w=92; measured_d=68; bracket_h=15; bracket_gap=50; charger_d=measured_d; wall_offset=0; material_t=3; bracket_spacing=1.5; hole_dia=0; bighole_dia=0; charger_width=measured_w+bracket_spacing; dock_width=charger_width+material_t*2; helper_w=measured_w-charger_d+bracket_spacing; mnt_t=material_t; mnt_w=...
glb/cad_1f6b44fd4645.glb
Create a fipple mouthpiece by starting with a main cylinder that has an outer radius of 8.5mm and a total height of 42mm. Hollow out the center with a concentric cylinder of 7mm radius extending from the base to a height of 25mm. At the top of the mouthpiece, create a lower lip relief by removing a cylindrical section ...
$fn=100*1; OuterRadius = 8.5; InnerRadius = 7; TotalHeight = 42; BodyHeight = 25; LipRadius = 12; AirDepth = 1.9; AirWidth = 7.9; SoundHoleHeight = 15; BladeHeight = 12; BladeDepth = .5; module OuterCylinder() { translate(0, 0, TotalHeight / 2) cylinder(r = OuterRadius, h = TotalHeight); } modul...
glb/cad_43f5650386b3.glb
Create a micro quadcopter frame centered around a central square platform. Start with a central cube for the flight controller that is 28mm wide, 28mm deep, and 6mm thick. Hollow out a 25mm square hole in the center of this platform. Extend four arms from the center, each positioned 90 degrees apart. Each arm should b...
motorDiameter = 8.5; motorHeight = 22; shellThickness = 3; armThickness = 6; m2mDistance = 100; batteryWidth = 25; quadThickness = 5; propLength = 50; module makeArm() { translate([m2mDistance/2,0,0]) difference() { union(){ translate([-m2mDistance/2 + motorDiameter/2,-armThickness/2,moto...
glb/cad_4b755da4a8bf.glb
Create a micro quadcopter frame with a central body and four radiating arms. Start with a central square platform for the flight controller, measuring 29mm by 29mm with a thickness of 6mm. In the center of this platform, create a square cutout measuring 25.5mm by 25.5mm and 6mm deep to house the electronics. Extend fo...
motorD = 9; motorZ = 22; shellThickness = 3.5; armW = 6; m2mDist = 100; batteryWidth = 25.5; quadThickness = 5; propLength = 50; module makeArmHollow() { translate([m2mDist/2,0,0]) union(){ sphere(r=motorD/2); cylinder(h = motorZ/2, r=motorD/2); translate([-shellThickness,0,-shel...
glb/cad_70e0c8c6e218.glb
Create a spinning top called "The Void" consisting of a wide outer ring and a central pivot. Start by creating a main outer ring as a cylinder with a diameter of 70mm and a height of 35mm. Hollow out the center of this ring by removing a concentric cylinder with a diameter of 60mm and a height of 30mm, leaving a 5mm th...
$fn = 200; difference(){ cylinder(8,35,35); translate([0,0,-0.5])cylinder(9,30,30); }; difference(){ translate([0,0,1])cylinder(7,35,35); translate([0,0,1])for(n=[0:2]){ rotate([0,0,n*120])translate([20,0,-0.5])cylinder(50,14,100); }; }; difference(){ translate([0,0,0])cylinder(1,35,35); translate([0,0,0])f...
glb/cad_07079254d8b3.glb
Create a parametric fan grill by starting with a solid rectangular base measuring 30mm in width, 30mm in height, and 2mm in thickness. From this base, remove a grid of square holes to create a vent. The grid should consist of 10 columns and 10 rows of holes. Maintain a solid border of 4mm around the entire outer edge...
width = 30; height = 30; cols = 10; rows = 10; border = 4; spacing = .8; thickness = 2; innerWidth = (width - (2 * border)); innerHeight = (height - (2 * border)); function dimension(size, divisions) = (size - ((divisions - 1) * spacing)) / divisions; xWidth = dimension(innerWidth, cols); yWidth = dimension(inn...
glb/cad_e567737c1433.glb
Create a rod-end u-joint jaw designed as a plug for a hollow tube. Start with a central cylindrical plug with a diameter of 6.45mm and a length of 20mm, using a 6-sided polygonal cross-section. Around this plug, create a main body formed by the intersection of two cylinders: one with a diameter of 11.08mm and a height ...
use <MCAD/array/along_curve.scad> use <MCAD/shapes/2Dshapes.scad> use <MCAD/shapes/polyhole.scad> include <MCAD/units/metric.scad> h = 9.6; jaw_inner_width = 8.4; jaw_outer_width = 14; plug_offset = 20; plug_d = 6.45; plug_length = 20; bridge_helper = true; d = h / cos (30); r = d / 2; jaw_depth = jaw_inner_width ...
glb/cad_254e32adb23d.glb
Create a parametric grid vent. Start by creating a solid cylinder with a radius of 21.21mm and a height of 2mm, centered on a 30mm by 30mm square base of the same 2mm height. From this combined solid, remove a 1mm border around the perimeter of the 30mm square area. Within the remaining inner area, create a grid of 10 ...
width = 30; height = 30; cols = 10; rows = 10; border = 1; spacing = .8; thickness = 2; innerWidth = (width - (2 * border)); innerHeight = (height - (2 * border)); function dimension(size, divisions) = (size - ((divisions - 1) * spacing)) / divisions; xWidth = dimension(innerWidth, cols); yWidth = dimension(inn...
glb/cad_824fefbea5bd.glb
Create a hollow cylinder with an outer diameter of 30mm and a total height of 100mm. The cylinder wall thickness should be 0.55mm. To create the viewport, remove a rectangular section from the side of the cylinder. This cutout must be 70mm high and 30mm wide, centered vertically along the height of the cylinder and pos...
diameter=30; extrusionWidth=0.55; height=100; layerHeight=0; viewportheight=70; viewportoffset=-10; rad=diameter/2; $fn=200; union() { translate([0,0,-layerHeight]) cylinder(r=rad, h=layerHeight); difference () { cylinder(r=rad, h=height); union() { translate([0,0,-1]) ...
glb/cad_a110020bb1e7.glb
Create a Hotend Fan Duct designed to channel airflow. Start by creating a square mounting plate 50mm wide and 50mm deep with a thickness of 2.5mm. Center a circular opening with a diameter of 38mm through this plate. At each of the four corners of the square plate, create a cylindrical hole with a diameter of 4.5mm tha...
S_d = 4.5; F_size = 50; F_d = 38; F_hs = 38; M_height = 2.5; E_h = 7; D_thickness = 1.5; D_width = 15 + D_thickness*2; D_lenght = 26.5; D_shift = 21; rotate ([0,0,0]) difference(){ translate([0,-40,F_size/2 + 12]) mirror([0,1,0]) rotate([90,0,0]) mount(); translate([0,-25,0])cylinder(h=20, r=5/2); translate ([0...
glb/cad_00718b55610e.glb
Create four identical servicing support legs. For each leg, start with a base rectangular block measuring 9mm in length, 4mm in width, and 5mm in height, aligned to the origin. From the end of this base, extend a long arm measuring 4mm wide, 80mm long, and 5mm high along the x-axis. At the far end of this long arm, add...
T=4; H=5; l=10; L=80; S = 5.25; B=9; D=L-(2*l); module piece() { cube(size=[T, L, H], center=false); translate([-1*(B-T), -1*T, 0]) { cube(size=[B, T, H], center=false); } translate([S+T, D, 0]) { cube(size=[T, l, H], center=false); } translate([T, D, 0]) { cube(size=[S, T, H], center=false); } } piece(); t...
glb/cad_8c5e953007ee.glb
Create a Peugeot front anti-noise fender clip. Start by constructing a truncated cone with a height of 5mm, a bottom radius of 10mm, and a top radius of 12.4mm, centered on the Z-axis and extending from Z = -4.5mm to 0.5mm. Add a large sphere with a radius of 45mm centered at [0, 0, 43]. From the center of this combine...
difference() { union() { difference() { translate([0, 0, -4.5]) cylinder(h=5, r1=10, r2=12.4, $fn = 50); translate([0, 0, 43]) sphere(r=45); } difference() { translate([0, 0, -3]) cylinder(h=13.5, r2=4.2, r1=5.2, $fn = 30); translate([0, 0, -3]) cylinder(h=13.6, d=6, $fn = 30); } for (i=[0:7...
glb/cad_b4a32ec7c2aa.glb
Create a dog figure fixing hand by constructing a main body and subtracting a central hole. Start with a base block 21mm wide, 24mm deep, and 10mm high, featuring rounded corners with a radius of 8mm. Extend this base with a rectangular section 21mm wide, 9mm deep, and 10mm high. On the front face, create a row of fo...
use <MCAD/boxes.scad> use <MCAD/metric_fastners.scad> use <scad-utils/mirror.scad> module roundedBoxOrigin(s, r, b = true) { translate(s/2) roundedBox(s, r, b); } module fingers() { for (i=[0:3]) translate([4+(21-4)/4*i, -5, 13]) sphere(r=2.5, $fn=20); } difference() { union() { roundedBoxOrigin([21, 24, 1...
glb/cad_982c6b0cc744.glb
Create a miniature server rack base called a cube farm. Start by constructing a flat square base measuring 24mm by 24mm with a thickness of 2mm. At each of the four corners of this base, add a vertical square pillar measuring 2mm by 2mm with a height of 23mm. Ensure the pillars are positioned exactly at the edges of th...
union(){ cube([24,24,2]); cube([2,2,23]); translate([22,0,0]){ cube([2,2,23]); } translate([0,22,0]){ cube([2,2,23]); } translate([22,22,0]){ cube([2,2,23]); } }
glb/cad_a3880b1bf9c1.glb
Create a Thumbwheel M3 with a scale for bed leveling. Start with a main cylindrical body with a radius of 15mm and a height of 3mm. At the center, create a vertical hole for an M3 screw with a radius of 2mm that passes through the entire height. Within this hole, create a hexagonal nut trap with a radius of 2.65mm and ...
$fn=80; rw=15; hw=3; rm4_ac=5.5/2/cos(360/12)-0.1; hm4=2.5; rm4free=4/2; h1=hm4*.9; r1=rm4_ac+1.5; scale_type=2; hs=.5; ws=.4; nm=5; e=0.01; e2=1.4; echo(hw+h1); grip=50; grip_gap=1.1; grip_depth=0.6; grip_angle=55; module Grip() { rotate([grip_angle,0,0]) cube([1,grip_gap,hw*2],center=true); rota...
glb/cad_00570943f41e.glb
Create a fish-shaped organizer with a total height of 10mm. Form the main body by combining a cylinder with a radius of 90mm and two adjacent cubes of 90mm per side, then remove a smaller 45mm square from the center of this combined mass. To create the pencil holder, carve a series of small circular holes with a radi...
BodyRadius = 90; PencilRadius = 3; SlotWidth = 1; Height = 10; difference(){ union(){ cylinder(Height,BodyRadius,BodyRadius); cube([BodyRadius,BodyRadius,Height]); translate([-BodyRadius,-BodyRadius,0]){ cube([BodyRadius,BodyRadius,Height]); } } translate([Bod...
glb/cad_7f57a81ae15b.glb
Create a sculpture consisting of a central tower and a base. Start by creating a thin rectangular base plate measuring 120mm by 120mm with a height of 1mm, centered at the origin. Above this base, construct a central twisted column. This column is created by linearly extruding a 40mm by 40mm square to a height of 40m...
WidthOfBottom = 40; LengthOfBottom = 40; HeightOfTwistedCube = 40; Twist = 90; Scale = 0; Slices = 90; BaseHeight = 1; translate([0,0,BaseHeight]){ translate([0,0,HeightOfTwistedCube/2]){ cube([WidthOfBottom,LengthOfBottom,HeightOfTwistedCube],center=true); } translate([0,0,HeightOfTwistedCu...
glb/cad_d108054a1fc7.glb
Create a toy rocket consisting of a fuselage, a nose cone, a nozzle, and three fins. Start with the fuselage by creating a cylinder 20mm in diameter and 115mm tall. Top this with a conical nose cone that has a base diameter of 20mm and a height of 45mm, tapering to a point. At the bottom of the fuselage, add a nozzle...
fudge=0.1; fuselage_d=20; fuselage_h=115; nosecone_h=45; nozzle_h=20; nozzle_screw_d=2; fin_width=5; fin_height=45; fin_interface_h=fin_height; fin_chamfer=0.3; fin_from_gnd = 30; fin_reach=45; fin_detent=5; fin_outboard_h = fin_height-20; fin_angle = 180 - atan((fin_from_gnd+fin_height-fin_outboard_h)/(fin_reach-fi...
glb/cad_44b088ab77da.glb
Create a test piece set for accuracy checks consisting of several geometric components. All parts use a wall thickness of 0.8mm. First, create a series of four circular tubes. Each tube is 10mm long with an outer diameter of 3mm, 4.5mm, 6.5mm, and 9mm respectively. Each tube is centered on a small rectangular base pla...
module xrecttube(length, w, h, t=global_t, e=global_e) { difference() { cube([w, h, length]); translate([t, t, -e]) cube([w - 2*t, h - 2*t, length + 2*e]); } } *xrecttube(length=20, w=10, h=5); module xtube(length, dia, t=global_t, e=global_e) { difference() { cylinder(length, d=dia...
glb/cad_a187e83cc4bb.glb
Create a parametric acoustic horn that is 100mm tall. The shape is a hollow, thin-walled shell with a wall thickness defined by a thinness factor of 0.9, meaning the inner void is 90% of the outer radius at any given height. The outer profile follows a concave quadratic curve. At the base (height 0), the outer radius...
e=0.02; h=100; r0=1; r1=10; thinness=.9; nh=32; dh=h/nh; $fs=1; for(i=[0:1/nh:1-1/nh]){ color("cyan")translate([0,0,i*h]) difference() { cylinder(h=dh+e,r1=rad(i),r2=rad(i+1/nh)); translate([0,0,-.001]) cylinder(h=dh+e+.002,r1=thinness*rad(i),r2=thinness*rad(i+1/nh)); } } ...
glb/cad_ca97d545b5fd.glb
Create a 3D model of a Bezier Function demonstration. The model consists of a curved wall and four vertical cylindrical posts. First, place four cylinders with a radius of 1mm and a height of 4.125mm. Position these cylinders at the following coordinates on the XY plane: [0, 15], [5, 5], [10, 5], and [15, 15]. Next, ...
joinfactor = 0.125; gFocalPoint = [0,0]; gSteps = 10; gHeight = 4; BezQuadCurve( [[0, 15],[5,5],[10,5],[15,15]], [7.5,0], gSteps, gHeight); function BEZ03(u) = pow((1-u), 3); function BEZ13(u) = 3*u*(pow((1-u),2)); function BEZ23(u) = 3*(pow(u,2))*(1-u); function BEZ33(u) = pow(u,3); function PointAlongBez4(p0, p1,...
glb/cad_3c71f60f852a.glb
Create a magnetically amortized presser foot by constructing a thick, twelve-sided polygonal prism with a total height of 19mm and a diameter of 11.9mm. In the center of this prism, carve out a vertical hole with a diameter of 6.1mm that extends from the bottom face up to a height of 9.5mm. From the top face, create a ...
$fn=50; include <polyScrewThread_r1.scad> PI=3.141592; difference() { translate([0,0,-2])cylinder(11.9,19,19,$fn=12); screw_thread(30.5,4,60,10,PI/1.8); } difference() { translate([0,0,0])cylinder(10,12,12); translate([0,0,4])cylinder(6.1,9.5,9.5); }
glb/cad_3a572c0ec83a.glb
Create a magnetically amortized presser foot consisting of a hexagonal base and a cylindrical upper housing. Start by creating a hexagonal prism with a width of 18mm and a height of 25mm. Centered on top of this base, place a larger cylinder with an outer diameter of 25mm and a height of 14mm. Inside this upper cylinde...
$fn=50; difference() { union() { difference() { translate([0,0,-3])cylinder(14,11.8,11.8); translate([0,0,4])cylinder(7.1,9.3,9.3); } translate([0,0,-25])cylinder(25,9,9,$fn=6); } translate([0,0,-26])cylinder(45,4.5,4.5); translate([0,0,-1.9])cylinder(6,8,8,$fn=6); }
glb/cad_a9979f09e34c.glb
Create an amortized presser foot consisting of a tiered cylindrical body with a central hollow core. Start by creating a main cylinder with a diameter of 32mm and a height of 30mm. At the base of this cylinder, integrate a smaller concentric cylinder with a diameter of 24mm and a height of 10mm. The entire structure mu...
$fn=50; include <polyScrewThread_r1.scad> PI=3.141592; difference() { screw_thread(30,4,60,10,PI/1.8); translate([0,0,-0.10])cylinder(11,12.4,12.4); } difference() { translate([0,0,10])cylinder(32,14.8,14.8); translate([0,0,9.9])cylinder(27,12.4,12.4); translate([0,0,9.9])cylinder(33,10,10,$fn=6); }
glb/cad_32fd15e0c232.glb
Create a parametric cover case with outer dimensions of 50mm width, 120mm length, and 30mm height. The main body is a hollow rectangular box with a uniform wall thickness of 2mm. The interior cavity is created by removing a central block that leaves 2mm walls on all sides and a 2mm thick floor. On the two shorter ends...
thickness = 2; length = 120; width = 50; height = 30; screwholder_width = 15; screwholder_length = 15; screwholder_height = 15; screwhole_d = 3; module screwholder() { difference() { union() { resize([screwholder_width, screwholder_length, screwholder_height]) cube(); ...
glb/cad_03ba75cd1c13.glb
Create a Quanum DIY FPV Goggle RC832 Cover. Start with a rectangular base measuring 85mm by 124mm with a wall thickness of 2mm and a total height of 14mm. The outer corners should be rounded with a radius of 3mm. Construct a perimeter frame by adding 2mm thick walls along the edges. At each of the four interior corner...
wt = 2; wh = 14; soh = 6.5; difference() { intersection() { union() { cube([81, 120, wt]); cube([81, wt, wh]); translate([0, 120 - wt, 0]) cube([81, wt, wh]); cube([wt, 120, wh]); translate([81 - wt, 0, 0]) cube(...
glb/cad_fd65ac8e2f8f.glb
Create a Quanum DIY FPV Goggle RC832 receiver cover. Start with a rectangular base plate measuring 81mm by 120mm with a thickness of 2mm. The outer corners of this plate should be rounded with a radius of 3mm. The overall height of the outer rim is 1.5mm. Cut a large rectangular opening from the center of the plate, m...
wt = 2; wh = 1.5; difference() { intersection() { union() { cube([81, 120, wt]); translate([2 + wt, 2 + wt, 0]) cylinder(h = wh, d = 6); translate([81 - 2 - wt, 2 + wt, 0]) cylinder(h = wh, d = 6); translate([2 + wt, 120 - 2...
glb/cad_120f3efa7bdf.glb
Create a Xiaomi MiBand Smart Bracelet Holder by starting with a rounded rectangular block. This main body should be 18.5mm wide, 51mm long, and 8mm thick, with all corners rounded by a 3mm radius. Inside this block, carve out a central capsule-shaped void that is 14.1mm wide, 31mm long, and 5.6mm deep, ensuring the voi...
$fn=100; difference() { translate ([-6,-6,-1])minkowski() { cube([12.5,45,2]); sphere(r=3); } scale([1,1,.7]) { minkowski() { cube([.1,24,.5]); sphere(r=7); } } translate ([-15,35,0])rotate ([0,90,0]) cylinder(r=2.5,h=30); }
glb/cad_33cd9ee55228.glb
Create a Xiaomi MiBand Smart Bracelet Holder by constructing a rounded, elongated sleeve with a central cutout. Start by forming the main body as a hull between a 16x2x1mm rectangular base and a 4x2x1mm rectangular top positioned 6mm across and 45mm up from the base, then apply a 3.5mm spherical rounding to all exterio...
$fn=100; difference() { translate ([-8,-4,-.5])minkowski() { hull () { cube([16,2,1]); translate ([6,45,0]) cube([4,2,1]); } sphere(r=3.5); } scale([1,1,.7]) { minkowski() { cube([.1,24,.5]); sphere(r=7); } } tra...
glb/cad_c87f063533b3.glb
Create a Xiaomi MiBand Smart Bracelet Holder by starting with a rounded rectangular block. The main body should be 24.5mm long, 12mm wide, and 11mm thick, with all corners rounded by a 3mm radius. Carve a central capsule-shaped void through the middle of the block; this void should be 14.1mm long, 14.1mm wide, and 7mm ...
$fn=100; difference() { translate ([-6,-6,-4])minkowski() { cube([12.5,45,5]); sphere(r=3); } scale([1,1,.7]) { minkowski() { cube([.1,24,.5]); sphere(r=7); } } translate ([-15,35,-1])rotate ([0,90,0]) cylinder(r=3.5,h=30); }
glb/cad_4800a4631bab.glb
Create a smart bracelet holder by starting with a rounded, elongated base. Form this main body by creating a hull between a 16mm by 2mm by 1mm rectangular base and a smaller 4mm by 2mm by 1mm rectangle positioned 6mm across and 45mm up from the base, then apply a 3.5mm spherical rounding to all exterior edges. Carve ou...
$fn=100; difference() { translate ([-8,-4,-.5])minkowski() { hull () { cube([16,2,1]); translate ([6,45,0]) cube([4,2,1]); } sphere(r=3.5); } scale([1,1,.7]) { minkowski() { cube([.1,24,.5]); sphere(r=7); } } tra...
glb/cad_8db8937425e0.glb
Create a Leds Mount consisting of a central base and three identical legs. Start with a base plate that is 5mm wide, 49mm long, and 2mm thick. At the top center of this plate, add a small rectangular attachment for cable ties measuring 5mm by 10mm with a 1.5mm thickness, featuring a central rectangular cutout of 4mm by...
translate([0,-3,-0.25]) cube ( [ 5, 49, 2] , center=true ); translate([11.5,-28.75,-0.25]) difference(){ cube ( [ 29, 3.5, 2] , center = true); translate ( [-11,0,0]) cube ( [3,2,2], center = true); } translate ( [-5,16.5,0]) difference (){ cube ( [5, 10, 1.5 ], center = true); translate ([.5,0,0]) cube ( [4, 4...
glb/cad_6d9243ff4810.glb
Create a Tetrix ZTE Speed protective mount. Start by creating a base consisting of two 40-facet cylinders with a radius of 14mm and a height of 3mm, positioned 64mm apart center-to-center, connected by a rectangular block measuring 64mm by 28mm by 3mm. Construct a central support structure between these cylinders. Thi...
zteWidth=12; baseWidth=3; module base() { cylinder(h=baseWidth, r=14, $fn=40); translate([0,-14,0]) cube([64,28,baseWidth]); translate([64,0,0]) cylinder(h=baseWidth, r=14, $fn=40); } module side() { difference() { union() { translate([-1,-14,0]) cube([5,(28-zteWidth)/2,67.3]); translate([-1,(14-(28-zteWid...
glb/cad_c69920a0cb17.glb
Create a Tetrix ZTE Speed protective mount. Start with a base plate consisting of two 40-facet cylinders with a radius of 14mm and a height of 4mm, connected by a rectangular block measuring 64mm in length, 28mm in width, and 4mm in height. Construct two vertical support pillars. Each pillar is a 40-facet cylinder wit...
zteWidth=12; baseWidth=4; module base() { cylinder(h=baseWidth, r=14, $fn=40); translate([0,-14,0]) cube([64,28,baseWidth]); translate([64,0,0]) cylinder(h=baseWidth, r=14, $fn=40); } module side() { difference() { union() { translate([-1,-14,0]) cube([5,(28-zteWidth)/2,67.3]); translate([-1,(14-(28-zteWid...
glb/cad_bf8b7f71fc36.glb
Create a Mario Pipe Pencil Holder by constructing two concentric cylindrical sections. First, create a main vertical cylinder with a radius of 25mm and a height of 80mm. On top of this, add a wider cylindrical cap with a radius of 30mm and a height of 20mm, bringing the total height to 100mm. Both cylinders should be r...
difference() { union(){ cylinder(80,25,25); translate([0,0,80])cylinder(20,30,30); } union(){ translate([0,0,1])cylinder(100,15,15); translate([0,0,81])cylinder(25,20,20); } }
glb/cad_9adf435b5e31.glb
Create a Kawasaki Z1000 oil filter wrench. Start with a base cylinder 78mm in diameter and 23mm high. On top of this base, add a tapered conical section that transitions from a 78mm diameter at its bottom to a 24mm diameter at its top over a height of 12mm. Cut a square hole 13.6mm by 13.6mm through the center of the...
include <Write.scad> FN = 14; reunat = 100; Kuori = 100; suodatin(); module reuna() { difference () { union(){ translate ([0,0,-2])cylinder(r=4, h = 200,$fn=reunat); } translate ([3,-3,-2])cylinder(r=5, h = 200,$fn=reunat); } } module suodatin(){ difference () { union(){ translate ([0,0,0])cylind...
glb/cad_98bd5f7bc394.glb
Create two identical microscope eyepiece caps. For each cap, start by creating a thin-walled hollow cylinder with an outer diameter of 32mm and a height of 18mm. The wall thickness of this cylinder should be 4.8mm, resulting in an inner diameter of 22.4mm. At the base of this hollow cylinder, attach a solid flat circul...
eyepiece_shell_ratio =0.15; eyepiece_od =32; eyepiece_height =18; eyepiece_angle = 10; cap_height =2; eyecap_diameter =eyepiece_od*1.15; granules =90; eyepiece_id =eyepiece_od*(1-eyepiece_shell_ratio); translate([eyepiece_od/1.5,0,0]) eyepiece(eyepiece_angle); translate([-eyepiece_od/1.5,0,0]) eyepiece(eyepiec...
glb/cad_41ad309a7e9c.glb
Create a Customisable Wall Sign consisting of a base plate with raised text. Start by creating a rectangular base plate 153mm wide by 38mm high with a thickness of 1mm. The base should have rounded ends, where the radius of the curves is 90% of the plate's height. Add a raised border around the perimeter of the base ...
$fn=16*1; E = 0.01*1; content="The Leaky Cauldron"; text_width=145; text_height = 30; base_thickness=1.0; margin=4; margin_type = "square"; margin_end_type = "rounded"; lobe_radius = 90.0; holes = "left+right"; hole_dia = 4; border_width_tenths = 20; border_width = min([margin,border_width_tenths/10]); bor...
glb/cad_c922cf06bf54.glb
Create a flexible parametric coupler consisting of a main outer cylinder with a diameter of 19mm and a total height of 24mm. The core of the cylinder is hollowed out by a central vertical hole with a diameter of 7mm and a height of 12mm, and a second concentric inner hole with a diameter of 8mm and a height of 11.4mm. ...
input = 7; output =8; bolt = 3; d1 = output+bolt+4; h = bolt*5+output+5; side=h/30; step=1; i=0; k=0; for(i = [ [ output/2+bolt/1.5,-d1/4,h/4],[-output/2-bolt/1.5,-d1/4,h/4],[output/2+bolt/1.5,-d1/4,3*(h/4)],[-output/2-bolt/1.5, -d1/4,3*(h/4)]]) { difference(){ translate([i[0],i[1]+d1/4,i[2]]){rotate([90,0,0]){c...
glb/cad_3329dd510666.glb
Create a semi-pro mendel x-carriage for a 3D printer. Start with a central base block 35mm wide, 50mm deep, and 5mm thick. Add a rectangular section 35mm wide, 20mm deep, and 5mm thick centered on the base. Incorporate a pentagonal prism with a height of 5mm and a radius of 35mm, centered at [ -2.4, -6, 0 ], and a hexa...
include <configuration.scad> snap_in_mount = false; rrp_mount = true; ptfe_diameter = 5.5; use <bushing.scad> linear = true; lme8uu = false; module mountingholes(){ translate(v = [0, -25, -5]) polyhole(m3_diameter,10); translate(v = [0, 25, -5]) polyhole(m3_diameter,10); } module xcarriage(linear_bearin...
glb/cad_a5a692083173.glb
Create a lockpick tool by combining a long handle with a specialized tip. Start by creating a rectangular base that is 5mm wide, 40mm long, and 3mm thick. At one end of this base, add a tapered extension formed by the intersection of a 4mm wide, 46mm long, 1mm thick rectangular slab and a cylinder with a starting radiu...
union(){ intersection(){ cube([4,46,1],center=true); rotate([90,0,0]) cylinder(r1=1,r2=2,h=46,center=true); } translate([0,-40/2,1]) cube([5,40,3],center=true); translate([1,21,0]) rotate([0,0,45]) cube([2.5,2.5,1],center=true); }
glb/cad_64cd89a2c545.glb
Create a lockpick torsion wrench by combining two rectangular prisms. First, construct a long main body measuring 3mm wide, 55mm long, and 4mm thick, centered on the origin. Then, attach a second rectangular prism measuring 10mm wide, 1mm thick, and 4mm deep. Position this second piece so its center is offset 5mm along...
union(){ cube([3,55,4],center=true); translate([5,27,0]) cube([10,1,4],center=true); }
glb/cad_b664e02dfa14.glb
Create a 40mm fan holder for an E3Dv5 heater. Start with a base that combines a cylinder with a diameter of 28mm and a height of 2mm, merged with a rectangular block measuring 20mm by 40mm by 2mm. Build upon this by adding a vertical section created from the hull of a 20mm by 40mm by 3mm block and a 11mm by 28mm by 30m...
difference(){ union(){ hull(){ translate([0,0,0]) rotate([0,0,0]) cylinder(d=28,h=2.0,$fn=36,center=true); translate([-30,0,0]) rotate([0,0,0]) cube([20,40,2.0],center=true); }; translate([0,0,1+15]) rotate([0,0,0]) hull(){ translate([-30,0,-14]) r...
glb/cad_1dacda2ab939.glb
Create a reprapdiscount RAMPS screen mount consisting of two symmetrical holder components. For each holder, start with a base that includes a cylindrical section with a radius of 7.8mm and a height of 10mm, using a 20-facet resolution. Attach a rectangular block measuring 15.5mm by 15.6mm by 10mm to the side of this c...
m8_diameter = 9; m8_nut_diameter = 14.1; m4_diameter = 4.5; m4_nut_diameter = 9; m3_diameter = 3.6; m3_nut_diameter = 5.3; m3_nut_diameter_horizontal = 6.1; module holder_support(){ outer_diameter = m8_diameter/2+3.3; screw_hole_spacing = 60; opening_size = m8_diameter-1.5; difference(){ union(){ translate([out...
glb/cad_b8dc2a679059.glb
Create a door latch consisting of a knob and a lever. First, construct the knob assembly. Create a cylinder with a diameter of 16mm and a height of 2mm. Above this, add a second cylinder with a diameter of 7.9mm and a total height of 10.8mm. Centered vertically through both cylinders, create a hole for a screw with a...
$fn = 0; $fa = 0.01; $fs = 0.2; nTk = 2; kDm = 16; lSd = 7.9; lSl = 6; nSp = 0.8; sEg = 4; lEg = 2; sSd = 4; sHd = 7.2; sHh = 0.3; cSnk = 1; nWd = 8; lWd = 11; lTk = 2.5; lLn = 13; oFs = 3; rSd = 2; cLr = 0.1; pAd = 0.01; difference() { union () { cylinder (h = nTk+nSp, r = (kDm/2+lSd/2)/2); cylinder (h = nT...
glb/cad_a000d306c622.glb
Create a protective case for an Arduino Uno and LCD keypad shield. The case consists of a bottom shell and a top cover that snap together. Construct the bottom shell as a rectangular box with a wall thickness of 1.2mm and rounded corners. The interior must accommodate a PCB of 80.1mm by 57.9mm. Include four cylindrica...
part = "top"; with_battery = 0; extra_room = 0; have_usb_plug = 1; have_power_plug = 1; have_power_switch = 0; have_up_key = 1; have_down_key = 1; have_left_key = 1; have_right_key = 1; have_select_key = 1; have_reset_key = 1; have_plugrow_upper = 1; have_plugrow_lower = 1; mil2mm = 0.0254; batt = [17.0, 53.0, 26.0]...
glb/cad_3ef9d9d0afc9.glb
Create a protective case for an Arduino Uno and LCD keypad shield. The case consists of a bottom shell and a top cover that snap together. For the bottom shell, create a rectangular base with a wall thickness of 1.2mm and rounded corners. The interior must accommodate a PCB of 80x58x1.5mm. Include four cylindrical ped...
part = "top"; with_battery = 0; extra_room = 0; have_usb_plug = 1; have_power_plug = 1; have_power_switch = 0; have_up_key = 1; have_down_key = 1; have_left_key = 1; have_right_key = 1; have_select_key = 1; have_reset_key = 1; have_plugrow_upper = 1; have_plugrow_lower = 1; mil2mm = 0.0254; DATUMX = 1120; DATUMY = 10...
glb/cad_9233d47d748e.glb
Create a radiator holder for a Yagi antenna. Start with a main block that is 34mm wide, 34mm deep, and 17mm tall, with the edges rounded by a 2mm radius. Center a vertical cylindrical hole through the block with a diameter of 25.6mm to accommodate the boom. On the bottom face, center a circular recessed hole with a d...
width = 38; mast = 25.6; element = 3.2; mount_screw=2.4; holder_screw=3; module holder() { difference() { minkowski() { cube([34,34,17], center=true); cylinder(r=2,h=1); } cylinder(d=mast,h=width,center=true); rotate(90,[0,1,0]) translate([0,0,(width/2+2)*-1]) cylinder(d=holder_screw,h=1+width/2,c...
glb/cad_07f65a614720.glb
Create a measurement tape yagi antenna endcap. Start by forming the main body as a hull that encompasses a cylinder with a 10mm diameter and 6mm height, and a centered rectangular block measuring 15mm wide, 6mm deep, and 10mm high. From this combined volume, remove a rectangular slot measuring 16mm long, 0.8mm wide, an...
module endcap() { difference(){ hull() { rotate([90,90,0]) translate([-4,-2.5,-3]){ translate([0,5,0]) rotate ([0,0,0]) cylinder(d=10, h=6); rotate ([0,0,0]) cylinder(d=10, h=6); } cube([15,6,10], center=true); } translate([-8,-0.4,-9]) cube([16,0.8,12], center=false); } } endcap();
glb/cad_a231502419b8.glb