Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create three identical roller components for a Y axis rail. Each roller is a short cylinder with a height of 3mm and a radius of 2mm, centered on the origin. For each of these cylinders, remove a smaller concentric cylindrical hole from the center with a radius of 1.5mm and a height of 4mm to create a hollow sleeve. Po...
module rail() { union() { difference() { cube([10,53,3]); translate([0,0,-1])linear_extrude(height=7)translate([6.5,53,0])rotate([0,0,180])polygon([[0,0],[-2,3],[5,3],[3,0]]); } translate([4,-3,3])cube([2,53,3]); linear_extrude(height=3)translate([6.5,0,0])rotate([0,0,180])polygon([[0,0],[-2,3],[5,3],[...
glb/cad_0b9352dafc3f.glb
Create a fan mount adapter consisting of a square base plate and a conical funnel. Start with a square base plate 2.5mm thick. At each of the four corners, centered 36mm from the origin (72mm apart), create a vertical cylindrical hole 4.5mm in diameter that passes through the plate. Surround each hole with a hexagonal ...
$fn = 100; $fs=0.5; $fa=5; panel_thickness_global = 2.5; mounting_hole_distance = 72/2; clearance_for_nuts = 5; funnelThickness = .4*4; module fan_mount(panel_thickness, mounting_hole_distance) { fan_dia = 76.5; top_fan_diam = 68; top_cyl_diam = 72; screw_dia = 4.5; nut_dia = 9.0; nut_thickness = 3.2; ...
glb/cad_a72bdce35484.glb
Create a Marvel X-23 pendant by constructing a thick, hollowed-out ring with a small attachment loop. Start by creating a main ring with an outer radius of 180mm and an inner radius of 70mm, with a total height of 25mm. The outer wall of this ring should be textured with vertical ridges based on the provided surface da...
union(){ difference() { height = 10; image_file = "C:/3d Printing/x23/x23.dat"; scale([1,1,height]) surface(file=image_file, center=true, convexity=5); translate([0,0,0]) difference(){ cylinder(r=180,h=25,center = true, $fn=100); cylinder(r=70,h=25,center = true, $fn=100); } } differe...
glb/cad_0df82257b336.glb
Create a Door Hole Cover Plug Sealer consisting of two stacked cylindrical components. First, create a main base cylinder with a diameter of 52mm and a height of 43mm. Centered directly on top of this base, add a second, thinner cylindrical cap with a diameter of 63mm and a height of 10mm. Position the cap so that its ...
cylinder(d=52, h=43, center=true); translate([0,0,(43/2)+5]) cylinder(d=63, h=10, center=true);
glb/cad_2c00ff4ce7d1.glb
Create a customizable storage box with a matching lid. The box is a rectangular grid of compartments. For a 4x2 grid, the overall outer dimensions are 135.6mm in width, 103.15mm in depth, and 31.15mm in height. The outer walls and the internal dividers between compartments are all 1.15mm thick. Each of the 8 compartmen...
generate_box="yes"; generate_lid="yes"; showlid = generate_lid=="yes"? true : false; showbox = generate_box=="yes"? true : false; Type_of_Lid = "Standard"; lidtype = Type_of_Lid == "Standard"? 0 : 1; compx = 30; compy = 40; wall = 1.15; nox = 4; noy = 2; deep = 30; tolerance=.05; lidoffset=3; lid_drop=7; ...
glb/cad_230b7c4411db.glb
Create a Customizable Coin Game consisting of a base plate, a set of coins, and a top cover. Start with a bottom plate that is a rounded rectangle. On its top surface, carve out a series of recessed steps and linear channels. The steps are designed to hold coins of varying sizes; create five coin guides. Each guide i...
use <write/Write.scad> part = "Preview"; coin_diameter = 18.1; coin_height = 1.2; coin_number = 5; line_number = 3; line_margin = 3; layer_height = 0.2; extrusion_width = 0.5; xy_margin = 0.2; z_margin = 0.2; top_plate_height = 2; plate_min_height = 1.2; slider_min_radius = 2; slider_increment = 1; co...
glb/cad_b483734d7a1d.glb
Create a raised floor tile system for a modular cubicle playset. Start by creating a square base plate measuring 38mm by 38mm with a thickness of 2mm. From this base, remove four square sections, each 17mm by 17mm, to create a grid of open windows. These cutouts should be positioned so that they leave a 1mm border arou...
union(){ difference(){ cube(size = [38,38,2]); translate([1,1,0]){ cube(size = [17,17,3]); } translate([1,20,0]){ cube(size = [17,17,3]); } translate([20,1,0]){ cube(size = [17,17,3]); } translate([20,20,0]){ cube(size = [17,17,3]); } } translate([0,0,0]){ cube([1,1,30]); } translat...
glb/cad_36fab787f8e9.glb
Create a raised floor tile for a modular cubicle playset by combining two centered rectangular prisms. First, construct a base plate measuring 18mm by 18mm with a height of 3mm. Then, place a second, smaller rectangular prism on top of the base; this upper section should measure 16mm by 16mm with a height of 2mm and be...
union(){ cube(size = [18,18,3], center = true); translate([0,0,2]){ cube(size = [16,16,2], center = true); } }
glb/cad_3f87824afe40.glb
Create a transistor tester case by starting with a solid rectangular block measuring 65mm wide, 76mm deep, and 32mm high. Hollow out the center of this block by removing a smaller rectangular volume of 63mm by 74mm by 30mm, offset by 1mm from the bottom and sides, to create a shell. Inside this hollow area, place fou...
module ScrewPost() { difference() { cylinder(30-7,5,5); cylinder(30,2,2); } } module ScrewPosts() { translate([0,0,0])ScrewPost(); translate([40,0,0])ScrewPost(); translate([0,65,0])ScrewPost(); translate([40,65,0])ScrewPost(); }; module Button() { translate([55,65,30])cylin...
glb/cad_f8eb9361142b.glb
Create a set of wooden-style crates in two different sizes. To build a single crate, start with a central cube measuring 23.8mm on all sides. Surround this core with walls made of rectangular planks. Each wall should consist of two outer planks measuring 25.4mm by 3mm by 1mm, positioned symmetrically to form the frame....
module boxWall() { translate([0,11.2,0]) cube([25.4,3,1], center = true); translate([0,-11.2,0]) cube([25.4,3,1], center = true); translate([11.2,0,0]) cube([3,25.4,1], center = true); translate([-11.2,0,0]) cube([3,25.4,1], center = true); rotate([0,0,45]) cube([28,3,1], center = true); rotate([0,0,-45]) cube([28,3,1]...
glb/cad_8562e044494e.glb
Create a decorative barrel by stacking several geometric sections along a central vertical axis. Start with a smooth circular base 1mm thick with a radius of 4.75mm. Above this, place a 5mm tall frustum that tapers outward from a bottom radius of 4.5mm to a top radius of 5.25mm, using a 15-sided polygonal approximation...
module barrel() { difference() { union() { cylinder (h = 1, r =4.75, $fn = 100); cylinder (h = 5, r1 = 4.5, r2 = 5.25, $fn = 15); translate([0,0,4.5]) cylinder (h = 1, r = 5.25, $fn = 100); translate([0,0,5.5]) cylinder (h = 4, r = 5.25, $fn = 15); translate([0,0,9.5]) cylinder (h = 1, r = 5.25, $fn = 100); translate([...
glb/cad_b6710f0ff382.glb
Create a pirate ship cannon consisting of a cannon tube and a separate cover base. For the cannon tube, create a main cylinder 30mm long with a radius of 3.4mm. At the rear end, add a conical flare that increases the radius from 3.4mm to 4mm over a height of 2mm. Around the body of the tube, add a decorative ring cre...
module cannon() { translate([0,0,30]) rotate([180,0,0]) difference() { union() { cylinder (h = 30, r = 3.4, $fn = 150); translate([0,0,28]) cylinder (h = 2, r1 = 4.0, r2 = 3.4, $fn = 150); translate([0,0,27.5]) rotate_extrude(convexity = 10, $fn = 150) translate([3.15,0,0]) circle (r = 1, $fn = 100); translate([0,0,24]...
glb/cad_be9557fd4260.glb
Create a Yazzo Servo Linkage consisting of a central arm connecting two cylindrical joints. Start with a base arm that is 12.7mm thick. At one end, create a cylindrical mount with an outer radius of 16.38mm and a height of 12.5mm. This mount must be hollowed out by a central hole with a radius of 10.25mm and a smaller ...
joinfactor = 0.125; goldenratio = 1.61803399; gDistance = 100; gThickness = 8; gHornDiameter = 20.5; gHornRadius = gHornDiameter/2; gHornThickness = 5; gMountThickness = 2; gPrimaryIR = gHornRadius*1.1; gPrimaryOR = gHornRadius * goldenratio; gPrimaryLength = 12.5; gBearingIR = 3/8/2*25.4; gBearingOR = gBearingIR...
glb/cad_529681a48d93.glb
Create a D&D Cathedral Archway consisting of a brick-textured pillar and a curved arch. Start by building a vertical rectangular pillar with a base footprint of 1mm by 0.45mm and a height of 3mm. Construct this pillar by stacking small rectangular blocks of varying widths (approximately 0.25mm to 0.5mm) in an alternati...
union() { cube([1, .35, 3]); translate([5, 0, 3]) rotate(a = 90, v = [-1,0,0]) difference() { difference() { difference() { cylinder(h = .35, r = 5, $fn = 50); translate([0,0,-.05]) cylinder(h = .45, r = 4, $fn = 50); } translate([0,3.5,0]) cube([12, 6, .9], center = true); } translate(...
glb/cad_99a04ceca50f.glb
Create a D&D Cathedral Archway base by constructing a composite geometric form. Start with a rectangular base block measuring 5.25mm in length, 1mm in width, and 0.25mm in height. Attached to the left end of this base, add a larger rectangular section measuring 1.5mm in length, 1mm in width, and 0.5mm in height. Within...
union() { difference() { cube([1.5,1,.5]); translate([.24,.265, -0.01]) cube([1.01, .47, .52]); } translate([1.45, 0, 0]) cube([3.8,1,.25]); }
glb/cad_68ddb7860d83.glb
Create a voltmeter panel replacement case by starting with a solid rectangular block measuring 128mm in width, 100mm in depth, and 18mm in height. From this main body, carve out a series of nested rectangular voids to create the housing. First, remove a central block of 123mm by 98mm with a depth of 6mm from the top fa...
module example003() { difference() { union() { cube([128,100 , 18], center = false); } union() { translate([(128-123)/2,(100-98)/2,-1]) cube([123, 98, 6], center = false); translate([(128-120)/2,(100-95)/2,4]) cube([120, 95, 12], center = false); translate([(128-115)/2,(100-90)/2,11]) cub...
glb/cad_451513858b99.glb
Create a yogurt maker glass container cap by constructing a series of stacked cylindrical elements. Start with a base ring that has an outer diameter of 58mm and an inner diameter of 54mm, with a height of 7mm. On top of this base, add a thin cylindrical disc at a height of 1mm with a diameter of 54mm, though its cente...
quality=360; union(){ difference(){ cylinder(d=58,h=7,$fn=quality); cylinder(d=54,h=7,$fn=quality); } translate([0,0,1]) difference(){ cylinder(d=54, h=1, $fn=quality); cylinder(d=54, d2=52.5, h=1, $fn=quality); } translate([0,0,2]) difference(){ cylinder(d=54, h=1, $fn=quality); cylinder(d...
glb/cad_ade649ba51d6.glb
Create a heavy-duty faucet handle by combining a rectangular grip with a cylindrical base. Start with a central cylinder 28mm in diameter and 22mm high, centered on the origin. From this cylinder, remove a central vertical hole 8mm in diameter and 30mm high, but modify this hole by removing two 10mm wide rectangular st...
$fs = 0.01; $fn = 200; union(){ translate([-35,0,5.25]){ cube([50,15,11.5],center= true); } difference(){ cylinder(h = 22, d=28,center= true); SquaredHole(); translate([0,0,8]){ cylinder(h = 7, d=16,center= true); } translate([0,0,-6.5]){ cylinder(h = 10, d=22,center= true); } translate([...
glb/cad_37122774e43e.glb
Create a Customizable Pom Pom Maker consisting of two mirrored, interlocking C-shaped components. Each component is based on a semi-circular ring with an outer diameter of 35mm, an inner hole diameter of 20mm, and a thickness of 1.5mm. For the first part, create the semi-circular ring and attach two rectangular block...
diameter = 35; hole_diameter = 20; thickness = 1.5; knob_radius = 2; handle_height = 12; outter_radius = diameter/2.0; inner_radius = hole_diameter/2.0; acc = 100; height=handle_height; module half_ring(){ difference(){ cylinder(r=outter_radius,h=thickness,$fn=acc); translate([0,0,-1]){ ...
glb/cad_f26f40a53837.glb
Create a Tank chassis by starting with a central rectangular block measuring 60mm in length, 27.5mm in width, and 12.5mm in height, centered on the origin. Carve out a semi-cylindrical valley from the top of this block using a cylinder with a radius of 13.125mm and a length of 80mm, rotated 90 degrees along the X-axis ...
difference(){ difference(){ difference(){ difference(){ difference(){ union(){ difference(){ cube([60,27.5,12.5], true); translate([0,11.25,9])rotate([90,0,0])cylinder(80,13.125,13.125); } translate([0,12.5,10])cube([30,2.5,15],true); } translate([0,20,9])rotate([90,0,0])cylinder(15,4,4); } translate([8.5,20,9])rotate(...
glb/cad_3a47624c94bf.glb
Create a floating candle mold consisting of two identical mirrored halves. Each half is based on a rectangular block with a width of 50.8mm, a height of 31.75mm, and a depth of 38.1mm. From each block, remove a central void to create the candle negative. This void is formed by a revolved profile that creates a smooth...
mold(); module mold(height=1.5*25.4, width=2*25.4,eccentricity = 0.5, wall=5) { translate([0,0,width/2+wall]) rotate(a=90, v=[1,0,0]) moldHalf(height=height, width=width, eccentricity=eccentricity, wall=wall); translate([0,height + 3.5*wall,width/2+wall]) rotate(a=90, v=[1,0,0]) moldHalf(height=height, width=wi...
glb/cad_81c81e57dc3a.glb
Create a hand crank for a filament spool. Start with a rectangular base measuring 95mm in length, 22mm in width, and 10mm in height. Remove two rectangular sections from the bottom of this base to create gaps: one starting 10mm from the left edge and another starting 76.5mm from the left edge, both measuring 12.5mm in ...
module crank() { rotate([0,0,60])translate([-50,-10,0]) union() { difference(){ cube([95,22,10]); translate([10,-0.5,-0.05])cube([12.5,23,5]); translate([76.5,-0.5,-0.05])cube([12.5,23,5]); translate([-0.1,8,-0.05])cube([10.2,6,5]); translate([85.1,8,-0.05])cube([10.2,6,5]); } translate([20,11,9.9...
glb/cad_f8c74468691b.glb
Create a hand crank for a filament spool. Start with a main rectangular block measuring 95mm in length, 22mm in width, and 15mm in height. Carve out a large central rectangular void from the top, leaving walls that are 10mm thick on the left and right ends, and 8mm thick along the sides, with the void measuring 75mm lo...
module crank() { rotate([0,0,60])translate([-50,-10,0]) union() { difference(){ cube([95,22,15]); translate([10,-0.5,-0.05])cube([12.5,23,10]); translate([76.5,-0.5,-0.05])cube([12.5,23,10]); translate([-0.1,8,-0.05])cube([10.2,6,10]); translate([85.1,8,-0.05])cube([10.2,6,10]); } translate([20,11...
glb/cad_cb2bb8387544.glb
Create a Roller Blind Beaded Cord Connector. Start by constructing a central body using a hull of three spheres: two spheres with a diameter of 8.775mm positioned 4.5mm apart along the X-axis, and a third sphere with a diameter of 13mm positioned at the center. Cut this body in half along the Z-axis at a height of 5....
holeDiameter = 4.5+0.3; holeSpacing = 12; slackFactor = 1.95; centerDiameter = 13; cordDiameter = 1.5; halvingOffset= 5.5; pegTolerance=0.35; blindCordConnector(); floorOffset=-15; module blindCordConnector() { $fn=32; difference() { halfLog(); cordHole(); pegHole(); connectorFloor(); } pegE...
glb/cad_a9debe2eaa84.glb
Create a Roller Blind Beaded Cord Connector by starting with a central body formed from the hull of three spheres. Position two spheres with a diameter of 8.775mm (4.5mm * 1.95) at X coordinates -4.5mm and 4.5mm, and a third sphere with a diameter of 13mm at the center (0,0,5). Cut the resulting shape in half along t...
holeDiameter = 4.5+0.3; holeSpacing = 12; slackFactor = 1.95; centerDiameter = 13; cordDiameter = 1.5; halvingOffset= 4.5; pegTolerance=0.35; blindCordConnector(); floorOffset=-15; module blindCordConnector() { $fn=32; difference() { halfLog(); cordHole(); pegHole(); connectorFloor(); } pegE...
glb/cad_91b6e96d46c6.glb
Create a Cherry MX Lockout by extruding a specific 2D profile to a height of 3.5mm, centered on the Z-axis. Start with a square base measuring 18.5mm by 18.5mm. From the center of this base, remove a smaller square area of 14.5mm by 14.5mm to create a hollow frame. To this frame, add four small rectangular tabs: two me...
module lockout_shape() { difference() { union() { difference() { square([18.5, 18.5], center=true); square([14.5, 14.5], center=true); } for(i=[-6.25, 6.25], j=[-6.25, 6.25]) { translate([i, j]) { square([2, 4], center=true); } translate([i, 4.25]) { square([2, 2], center=true); } ...
glb/cad_fb5e2c6588cd.glb
Create a Square-Hexagon Hinged Dissection puzzle consisting of eight flat polygonal tiles, each 0.2mm thick. The tiles are designed to be hinged together to form either a square or a regular hexagon. For each tile, create the base polygon and add cylindrical hinge joints at specific vertices. Each hinge consists of a ...
s = 1.15; r = 0.12; h = 0.2; mid = 0.5; pin = 0.4; size = 80; i = 0; sq3 = sqrt(3); x = sqrt( 3*sq3/2 ); y = sq3/2 * sqrt( 2*sq3-3 ); M = [0, 0]; G = [sq3, 0]; B = [-sq3, 0]; N = [-sq3/2, 0.5]; L = [sq3/2, -0.5]; O = N + [0, 1]; K = L - [0, 1]; E = [y, 1.5]; J = [-y, -1.5]; C = E + [-...
glb/cad_182a616cb5a6.glb
Create a Dial Indicator holder for a BfB-3000 printer. Start with a central rectangular platform measuring 75mm wide, 45mm deep, and 5mm thick. Centered on this platform, add a mounting block that is 7mm wide, 20mm deep, and 20mm high. From this central assembly, carve out a complex void to accommodate the dial indic...
legW=10; legT=3; legL=70; tabT=3; tabH=10; fanR=1.5; mountW=7; mountD=20; mountH=20; dialW=55; dialD=15; faceW=65; faceD=10; platW=75; platD=mountD+dialD+faceD; platT=5; module Leg() { union() { difference() { cube([legL, legW, legT], center=true); translate([legL/6,0,0]) { cube([0.6*legL, fanR*2, l...
glb/cad_617bb9e61188.glb
Create a jump rope handle by constructing a hollowed-out composite shape. Start with a base section that is a cylinder 25mm high with a bottom diameter of 39mm and a top diameter of 22mm. Attached to the top of this base, add a tapered cylinder that extends upward for an additional 75mm, narrowing from a 22mm diameter ...
rope_diameter=10; knot_diameter=35; knot_height=25; wall_thickness=2; handle_length=100; handle_max_diameter=22; handle_min_diameter=15; difference() { union() { translate([0,0,knot_height-0.01]) cylinder(r1=handle_max_diameter/2, r2=handle_min_diameter/2, h=handle_length-knot_height); cylinder(r1=knot_diameter/...
glb/cad_3f32daec122b.glb
Create a 3D relief map of Steiermark based on a digital elevation model. The base is a rectangular slab measuring 195mm by 130mm with a thickness of 1.02mm. The top surface of this slab is not flat but follows a heightmap where the elevation varies up to a maximum height of 5.78mm. Surround the central relief area wi...
use<write/write.scad> image_file = "surface_150_100.dat"; hole_diameter = 6; layer_height = 0.34; number_of_layers = 17; scaling = 1.3; length = 150*scaling; width = 100*scaling; min_layer_height = layer_height*3; hole_radius = hole_diameter/2; height = layer_height*number_of_layers; dem(); modu...
glb/cad_a0be44ed4bd8.glb
Create a 3D relief map of Steiermark based on a digital elevation model. The main body is a rectangular slab measuring 183mm by 122mm. The base thickness is 1.02mm, with the overall surface height varying up to 5.78mm to represent topographical elevation. Surround the relief with a border frame that is 2mm wider than...
use<write/write.scad> image_file = "surface_150_100.dat"; hole_diameter = 6; layer_height = 0.34; number_of_layers = 17; scaling = 1.22; length = 150*scaling; width = 100*scaling; min_layer_height = layer_height*3; hole_radius = hole_diameter/2; height = layer_height*number_of_layers; dem(); mod...
glb/cad_1f50a2f41b1c.glb
Create a 3D relief model of the Steiermark region based on a digital elevation model. Start with a rectangular base measuring 183mm by 122mm. The main body consists of a terrain surface generated from heightmap data, with a total height of 5.78mm (17 layers at 0.34mm each). Surround the terrain with a border frame th...
use<write/write.scad> image_file = "surface_150_100.dat"; hole_diameter = 6; layer_height = 0.34; number_of_layers = 17; scaling = 1.22; length = 150*scaling; width = 100*scaling; min_layer_height = layer_height*3; hole_radius = hole_diameter/2; height = layer_height*number_of_layers; dem(); mod...
glb/cad_ec1a08a94ffd.glb
Create a 3D relief model of the Steiermark region based on a digital elevation map. Start with a rectangular base measuring 183mm by 122mm. The main body consists of a central rectangular block 183mm by 122mm with a height of approximately 1.02mm. On top of this base, generate a topographic surface where the height o...
use<write/write.scad> image_file = "surface_150_100.dat"; hole_diameter = 6; layer_height = 0.34; number_of_layers = 17; scaling = 1.22; length = 150*scaling; width = 100*scaling; min_layer_height = layer_height*3; hole_radius = hole_diameter/2; height = layer_height*number_of_layers; dem(); mod...
glb/cad_a3975a2b8f42.glb
Create a customizable battery holder for five 18650 cells. The overall structure is a rectangular block with a width of 22mm, a height of 20.5mm, and a length of 82mm. The holder consists of five identical battery slots arranged side-by-side. Each slot is formed by a rectangular cutout of 18.5mm by 18.5mm, with round...
battl= 50; battd= 14; battl= 44.5; battd= 10.5; battl= 65; battd= 18.5; count=5; pluses = 1 ; holderl= battl+17; for (c =[1:count]){ if(c/2*pluses == round(c/2)*pluses) { rotate([0,180,0]) translate([-((battd+2)*(c))-1.5,0,-holderl]) batteryHolder(); } else { rotate([0,0,0]) translate([(battd+2)*(c-1),...
glb/cad_ebec21bdf998.glb
Create a Flip Flop Support consisting of a wide circular base and a central raised cylinder. Start by creating a flat disc with a radius of 20mm and a thickness of 2mm. Centered on top of this disc, add a smaller cylinder with a radius of 7.5mm and a height of 6mm. To finish the part, carve a vertical slot through the ...
resolution = 200; disc_r = 20; knob_r = 6.5; knob_h = 5; difference() { union() { cylinder(2, disc_r, disc_r, $fn = resolution); translate([0, 0, 1]) cylinder(knob_h+1, knob_r+1, knob_r+1, $fn = resolution); } translate([0, 0, -0.2]) cylinder(knob_h, knob_r, knob_r, $fn = resolution); translate([-1.5, -1....
glb/cad_38106d7fc575.glb
Create a Flip Flop Support consisting of a thin circular disc with a central hole. Start by creating a solid cylinder with a radius of 20mm and a height of 2mm. In the center of this disc, remove a smaller concentric cylindrical hole with a radius of 6.5mm that passes completely through the height of the disc. Addition...
resolution = 200; disc_r = 20; knob_r = 6.5; knob_h = 2; translate([0, 0, 3]) { rotate([180,0,0]) { difference() { union() { cylinder(2, disc_r, disc_r, $fn = resolution); translate([0, 0, 0]) cylinder(knob_h+1, disc_r, disc_r, $fn = resolution); } translate([0, 0, -0.2]) cylinder(knob_h, ...
glb/cad_388efa38d184.glb
Create a Flip Flop Support consisting of a wide circular base with a central raised cylinder. Start by creating a flat disc with a radius of 20mm and a thickness of 2mm. Centered on this disc, add a smaller cylinder with a radius of 8.5mm and a total height of 6mm. Remove a central vertical hole with a radius of 7.5mm ...
resolution = 400; disc_r = 20; knob_r = 7.5; knob_h = 5; stem_w = 4; difference() { union() { cylinder(2, disc_r, disc_r, $fn = resolution); translate([0, 0, 1]) cylinder(knob_h+1, knob_r+1, knob_r+1, $fn = resolution); } translate([0, 0, -0.2]) cylinder(knob_h, knob_r, knob_r, $fn = resolution); translat...
glb/cad_c12bc9e3ff7f.glb
Create a protective cap for a 9V battery clip. The main body is a rectangular shell with rounded corners, measuring 26.15mm in length and 16.65mm in width. The walls are 0.75mm thick. The total height of the cap is 4.3mm. The interior is hollowed out to accommodate a terminal block of 24.75mm by 15.45mm. The bottom fl...
part = "all"; pcb = [24.75, 15.45, 1.30]; pcb2top = max(3.0-pcb[2], 0); pcb2bot = 2.0; snap_dia = 1.3; snap_len_x = pcb[0]*0.6; snap_len_y = pcb[1]*0.5; wall = 0.75; twall = 0.9; caser = 2.5; topr = twall*1.2+pcb2top*0.3; wired = 2.2; tol = 0.3; d = 0.01; module nut(af, h) { cylinder(r=af/2/cos(30), h=h, $fn=6)...
glb/cad_1289dc940d65.glb
Create a Coin Sorter designed for Great British Pound coins. The model consists of three main components: a base box, a top board, and collection tubes. First, construct a base box with a thickness of 2mm. The box should be hollowed out to create a storage area, with the back wall featuring a solid surface. Incorporat...
currency = "gbp"; height = 50; pattern = "no"; image = 0; part = "all"; understand = 1; coin_1_diameter = 30.61; coin_1_thickness = 2.15; coin_2_diameter = 26.50; coin_2_thickness = 2.00; coin_3_diameter = 24.26; coin_3_thickness = 1.75; coin_4_diameter = 21.21; coin_4_thickness = 1.95; coin_5_diameter = 0;...
glb/cad_7771a62f879e.glb
Create a Flying Fox Handle pulley. The pulley is a symmetrical spool with an outer diameter of 50mm. The center of the pulley features a concave groove for a rope with a radius of 7.7mm. At the core of the pulley, create a cylindrical hole with a diameter of 21.7mm to serve as the axle shaft. This central hole is rec...
pulley(); pulley_offset = 40; panel_depth = 4; handle_pos = [0,-80,0]; handle_dia = 30; handle_fillet = 9; outer_dia = 50; rope_rad=7.7; flange_height=0.5; flange_overhang=0; bearing_dia = 22.7; bearing_height = 7.7; axle_shaft = 21.7; cutoff_angle = 80; screw_shaft = 4; screw_head = 6; screw_offset = 15; layer_heigh...
glb/cad_299ad09d01b0.glb
Create an electronic fireplace bellows consisting of a main blower casing and an attached handle grip. The blower casing is a cylinder with a radius of 45mm and a height of 40mm. The walls are 2.35mm thick. Create a hollow interior with a radius of 42.65mm and a height of 40mm. At the base, include a central air inle...
blower_max_rad=45; blower_wall=2.35; blower_case_ht=40; blower_tube_rad=15; inlet_rad=blower_max_rad/3; driveshaft_rad=1.6; motor_neck_rad=5; motor_screw_sep=16.5; airway_rad=blower_tube_rad*0.8; thr=0.77; module trunk(h,l) { intersection () { cube([h,l,h]); union () { cube([h,l,h*thr]); translate([0,0,h*th...
glb/cad_6762b62d75a7.glb
Create a flexible Z coupling with a total height of 40mm and an outer diameter of 20mm. The object consists of two identical solid end caps and a central flexible spring section. Each end cap is a cylinder 10mm high with a concentric hole 5.2mm in diameter running through the center. On the flat face of each end cap, ...
D1 = 20; D2 = 5.2; H1 = 40; H2 = 10; N = 12; D3 = 3.5; Dnut=6.5; Hnut=2.5; B=5.2; H3=4; SLICES=22; Re = D1/2; Ri = D2/2; fn = 4*N; R3 = D3/2; Rnut=Dnut/2; B2 = B-Ri; Hspring=H1-2*H2; module sq_spring(in_R,out_R,height,rot) { width=out_R-in_R; linear_extrude(height = height, center = false, convexity = 50...
glb/cad_e526a24749e4.glb
Create a Makerbot spool model consisting of two identical circular end caps connected by a central cylinder. For each end cap, start with a main cylinder 5mm thick with a radius of 45mm. Remove a concentric inner cylinder with a radius of 43mm and a depth of 5.2mm to create a thin outer rim. In the center of the cap, c...
module slots() { difference () { union() { translate([0,0,-0.01])cylinder(1,95,95,$fn=180); translate([0,0,0.9])cylinder(50,43,43,$fn=180); } for (i=[0:15]) { rotate([0,0,22.5*i]) translate([-1,0,-0.5])cube([2,100,60]); rotate([0,0,11.25+22.5*i]) translate([-1,44.5,-0.5])cube([2,100,60]); } trans...
glb/cad_e2e29608366f.glb
Create a Thotcon 2013 Badge Stand. Start by constructing a rectangular base foundation with a length of 42mm, a width of 62mm, and a height of 12.5mm. Soften all edges and corners of this base using a fillet or rounding radius of 10mm. Carve a slot into the top of the base to hold a badge. This slot must be 54mm wide...
B_THICK = 2; B_WIDTH = 54; B_HEIGHT = 112.5; INSET = 10.5; CUTOUT_W = 30; WIDTH = B_WIDTH + 8; HEIGHT = INSET + 2; CUTOUT_H = INSET / 2; LENGTH = 42; OFFSET = -3.5; DIAMETER = 20; $fn=7; Base(); module Board () { cube([B_THICK, B_WIDTH, B_HEIGHT]); } module Base () { difference() { Foundation(); translate ([...
glb/cad_3b98d3149394.glb
Create a lens cap for a webcam by constructing two concentric cylinders. First, create an outer cylinder with a radius of 15.55mm and a height of 10mm, centered on the Z-axis. From the center of this volume, remove an inner cylindrical core with a radius of 13.55mm and a height of 10mm. Position this inner cutout so th...
a_bit=0.1; cam_diameter=27.1; wall_t=2; cap_length=10; difference(){ cylinder(r=(cam_diameter/2)+wall_t, h=cap_length, center=true); translate(v=[0,0,wall_t]) cylinder(r=cam_diameter/2, h=cap_length, center=true); }
glb/cad_ee2699fdd0ce.glb
Create a customizable dice by starting with a cube that has a side length of 30mm. Modify the cube's edges to be rounded with a radius of 2mm. On each of the six faces, create a recessed area for text. The text should be centered on the face and recessed to a depth of 5mm. The text on each face should be scaled by a ...
ttext1="KISS"; ttext2="EAT"; ttext3="SLEEP"; ttext4="DRINK"; ttext5="LOVE"; ttext6="HUG"; dt=5; s0=8.5; s1=1.0; s2=1.0; s3=1.0; s4=1.0; s5=1.0; s6=1.0; dd=30; de=2; ttext=[ttext1,ttext2,ttext3,ttext4,ttext5,ttext6]; s=s0*[s1,s2,s3,s4,s5,s6]; $fn=32; e=0.02; xaxis=[1,0,0]; yaxis=[0,1,0]; zaxis=[0,0,1]; phi=(1+...
glb/cad_84cd4dd33d2c.glb
Create a hollowed-out hexagonal plate with a thickness of 1.14mm. The outer boundary is a regular hexagon with a total height of 5.6mm. At each of the six vertices of the hexagon, integrate a symmetrical hinge mechanism. Each hinge consists of two opposing racks of interlocking teeth. Each rack is composed of a serie...
module nub(h=2,k=5,r=10,r1=5,l=1.2,splay=0.0) difference() { union() { cylinder(k+splay,r1,0,$fn=30); translate([0,0,-h]) { cylinder(r=r,h=h,$fn=30); translate([0,-r,0]) cube([r+l,2*r,h]); translate([-r,0,0]) cube([r,r,h]); } } translate([0,0,-h-0.001]) cylinder(k-splay,r1,0,$fn=30); } mod...
glb/cad_07d7406bbe23.glb
Create a parametric hose clamp consisting of a central ring and a flat mounting base. Start by creating a main ring with an outer diameter of 26mm and a thickness of 15mm. Remove a cylindrical core from the center of this ring with a diameter of 22mm to create a hollow tube. Attached to one side of the ring, add a rec...
hose_diameter = 22; bracket_thickness = 15; wall_bracket_thickness = 2; ring_thickness = 2; zip_tie_width = 2; zip_tie_thickness = 1; standoff_height = 5; hole_size = 3; $fn=128; module cutout() { cylinder(d=hose_diameter,h=bracket_thickness,center=true); translate([hose_diameter/2,0,0]) cube([hose_diame...
glb/cad_70156623e724.glb
Create a Wire Cap consisting of a hollow tube joined to a flat circular base. First, construct a vertical hollow cylinder with an outer diameter of 5mm, an inner hole diameter of 4mm, and a total height of 10mm. Position this tube so its center is aligned with the vertical axis. Then, attach a solid circular disk to th...
$fn = 256; _wall = 0.5; _dhole = 4; _hcover = 10; _dcap = 15; _hcap = 1; union() { difference() { cylinder( d=_dhole + 2 * _wall, h= _hcover, center = true); cylinder( d=_dhole , h= _hcover, center = true); } translate([0, 0, -_hcover/2 -_hcap/2]) cylinder( d=_dcap, h= _hcap...
glb/cad_45a82c5ea870.glb
Create a V pulley with an overall diameter of 50mm and a total height of 25mm. The main body is a cylinder centered on the origin. Carve a V-shaped groove into the outer circumference by rotating a square profile around the central axis. This square profile should be sized such that the depth of the groove is 10mm, l...
height=25; OD=50; Bearing_OD = 22; Bearing_Flange_ID = Bearing_OD-4; Bearing_Thickness = 7; catchthickness= height/2-Bearing_Thickness/2; fudge=0.01*1; Polygon_Count=128; $fn=Polygon_Count*1; V_Groove_OD=5; V_Depth = 10; Vdeep = V_Depth+sqrt(2*V_Groove_OD/2*V_Groove_OD/2)-V_Groove_OD/2; squareside = sqrt(2*(Vd...
glb/cad_a8efd2cef8aa.glb
Create a Private Vorlage card holder designed to hold a stack of 58 cards, each 63mm wide, 87.8mm high, and 0.31mm thick. The main body is a wedge-shaped container with a wall thickness of 1.6mm. Construct the base as a rectangular slab with a total width of 64.6mm (card width plus two wall thicknesses). The side wal...
card_width=63; card_height=87.8; card_thickness=0.31; number_of_cards=58; card_stack_height=card_thickness*number_of_cards; angle=45; wall_thickness=4*0.4; gap_size=card_thickness*3; fn=200; additional_card_length=(card_stack_height+2*wall_thickness)*tan(angle); additional_base_length=sqrt(pow(additional_card_length/t...
glb/cad_ff88e8f1f2c7.glb
Create a Simple Nozzle Stand by constructing a rounded rectangular block with a total height of 18mm. The block should have rounded corners with a radius of 6mm. Within this block, create a grid of 10 holes arranged in 2 rows and 5 columns. Each hole must have a diameter of 6.4mm and a depth of 17mm, leaving a base t...
Columns = 5; Rows = 2; HoleDiameter = 6.4; StepSize = 9; Spacing = 3; BottomThickness = 1; Roundness = 6; circle_resolution = 50; build_plate_selector = 3; build_plate_manual_x = 200; build_plate_manual_y = 200; j = 0.01; x=0; y=1; z=2; $fn = circle_resolution; HoleRadius = HoleDiameter/2; use<utils/build...
glb/cad_2c771262db33.glb
Create a Mk7 Fan Duct with Auto Level Servo Slot. Start with a main body block measuring 40mm in width and depth, and 16mm in height. Hollow out the center of this block, leaving 2mm thick walls. From the bottom, remove a rectangular section 20mm wide and 20mm high to create a vent, and cut a 5mm high window into this ...
wall_width=2; thin_wall_width=2; fan_side=40; duct_depth=16; servo_height=12; servo_width=23; servo_depth=23; vent_height=20; vent_width=20; vent_window_height=5; vent_offset=5; anchor_side=8; hole_center_offset=4; bolt_head_cradle_height=duct_depth-8; m3_hole_radius=1.9; m3_thread_radius=1.5; m3_head_hole_radius=3.1; ...
glb/cad_eb96431aa3ad.glb
Create a double geared filament drive consisting of a gearbox, a cover, and a hotend mount. Construct the gearbox as a rectangular block with a width of 33mm and a depth of 19.75mm. Within this block, create a central cavity to house two gears. The left gear has 22 teeth with a pitch radius of 6.5mm and an addendum o...
use <involute_gears.scad> $fn = 200; partDist = 5.00; gearBox = [ 19.75, 33.00, 5.00, 7.00, 11.58, 3.00, 6.20 / 2, 1.90, 9.96, 2.50, 1.50, ...
glb/cad_bcf58684837f.glb
Create a remote holder consisting of two adjacent open-topped rectangular bins with walls 2mm thick. The first bin should have internal dimensions of 43mm wide, 27mm deep, and 65mm high. The second bin should have internal dimensions of 52mm wide, 27mm deep, and 65mm high. Position these bins side-by-side so they share...
roku_width = 43; roku_depth = 27; roku_height = 65; sharp_width = 52; sharp_depth = 27; sharp_height = 65; wall_thickness = 2; drain_hold_diameter = 4; $fn=64; module walled_box(x,y,z) { difference() { cube([x+wall_thickness*2,y+wall_thickness*2,z+wall_thickness*2],center=true); translate([0,0,w...
glb/cad_947e3d637a72.glb
Create a remote holder consisting of two adjacent open-topped rectangular bins with walls 2mm thick. The first bin, designed for a Roku remote, should have interior dimensions of 43mm width, 27mm depth, and 60mm height. This bin must have a cutout at the bottom center to create a slot 10mm wide and 16mm high, and a lar...
roku_width = 43; roku_depth = 27; roku_height = 60; roku_bottom_slot_width = 10; roku_top_slot_width = 33; roku_bottom_slot_height = 16; sharp_width = 52; sharp_depth = 27; sharp_height = 60; wall_thickness = 2; drain_hold_diameter = 4; $fn=64; module walled_box(x,y,z) { difference() { cube([x+wall_thi...
glb/cad_80507683f7bd.glb
Create a belt clamp mending plate by starting with a rectangular solid block that is 17mm long, 6mm wide, and 3mm thick. Drill two circular holes completely through the thickness of the plate. Each hole should have a radius of 2mm. Position the holes so they are centered along the width of the plate. The first hole sho...
length=17; width=6; thickness=3; edgeoffset=3.5 ; n=2; hole_radius=2; loopct=n/2; difference() { cube([length,width,thickness]); for (i=[1:loopct]) { translate([edgeoffset*i+2*hole_radius*(i-1),width/2,1]) cylinder(h=thickness*10,r=hole_radius,center=true,$fn=100); translate([length-(edgeoffset*i+2*hole_radius...
glb/cad_ecf7b5fa67df.glb
Create a desktop pencil holder in the shape of a hyperboloid. The main body is formed by 72 straight rods, each with a rectangular cross-section of 3mm by 4mm and a length of 91mm. Arrange these rods in a circular pattern with a radius of 30mm. Each rod must be tilted at an angle of 35.5 degrees relative to the vertica...
module torus(outerRadius, innerRadius) { r=(outerRadius-innerRadius)/2; rotate_extrude($fn=360) translate([innerRadius+r,0,0]) circle(r,$fn=60); } rods=72; radius=30; angle=35.5; %color([0.5,0.5,0.5,0.1]) translate([-50,-50,-1.01]) cube([100,100,1]); module roundOfRods() { for(i=[1:rods]) { color([i...
glb/cad_ce61c66ec4a1.glb
Create a desktop pencil holder based on a hyperboloid geometry. Start by creating a solid main cylinder with a radius of 10mm and a total height of 40.5mm. To create the hollow interior and the decorative outer walls, remove a series of hexagonal prisms from the main cylinder. Each hexagonal prism must have a flat-to...
module pencil(withTip) { if (withTip) { intersection() { cylinder(200,4.4,4.4,$fn=6); color([1,0.7,0.7,1]) union() { translate([0,0,174.9])cylinder(25,6,0.25,$fn=18); translate([0,0,0.05])cylinder(175,6,6,$fn=6); } } color([0.4,0.4,0.4,1]) translate([0,0,195.3])cylinder(5,1.3,0.25,$fn=18); } el...
glb/cad_312fd3b0a450.glb
Create a Hole Reducer drink holder insert by constructing a hollow tapered cylinder with a height of 36.6mm. First, create the outer wall as a tapered cylinder with a base diameter of 83mm that narrows to a top diameter of 80mm. From the center of this volume, remove a tapered cylindrical core to create the inner cavit...
$fn = 100; outerBottomDiameter=83; outerConnicVariation=-3; innerBottomDiameter=68.75; innerConnicVariation=-1.0; height=36.6; difference () { cylinder (d1=outerBottomDiameter, d2=outerBottomDiameter+outerConnicVariation, h=height); cylinder (d1=innerBottomDiameter, d2=innerBottomDiameter+innerConnicVariat...
glb/cad_cc47941d0e42.glb
Create a blender lid plug by starting with a main cylinder that has a radius of 24.75mm and a height of 45mm. Attach a thin rectangular base to the bottom of this cylinder, measuring 3mm by 55mm with a thickness of 1.8mm, centered along the Y-axis. To create the locking mechanism, remove eight vertical cylindrical hole...
difference() { union() { cylinder(r=49.5/2,h=45) ; translate([0, -55/2, 0]) cube([3, 55, 1.8]); } for (i=[45:45:360]) translate([30*sin(i),30*cos(i),26]) cylinder(r=10,h=20) ; scale([1,1,1.6]) sphere(r=45/2) ; }
glb/cad_0b92bcc303d8.glb
Create a curtain rod end knob. Start with a central vertical cylinder that has a radius of 25mm and a total height of 40mm, centered on the origin. Around the middle of this cylinder, add a decorative ring composed of 12 equally spaced spheres, each with a radius of 20mm, whose centers are positioned 25mm from the cent...
rod_radius = 6; module torus(r1, r2) { rotate_extrude(convexity=10) translate([r2, 0, 0]) circle(r = r1, center = true); } module curtain_end() { knob_radius = 25; knob_bump_radius = 20; knob_count = 12; knob_handle = 25; translate([0, 0, knob_bump_radius - 6]) scale([1.45, 1.45, 0.2]) sphere(r = knob_radi...
glb/cad_c230d5a11d27.glb
Create a toothpaste and toothbrush holder consisting of three open-topped rectangular bins with 2mm thick walls. The central bin for toothpaste should have internal dimensions of 60mm width, 30mm depth, and 80mm height. Position two smaller toothbrush bins on either side of the central bin; these should have internal d...
toothbrush_width = 20; toothbrush_depth = 20; toothbrush_height = 70; toothpaste_width = 60; toothpaste_depth = 30; toothpaste_height = 80; wall_thickness = 2; drain_hold_diameter = 4; $fn=64; module walled_box(x,y,z) { difference() { cube([x+wall_thickness*2,y+wall_thickness*2,z+wall_thickness*2],cente...
glb/cad_c6824b4e570f.glb
Create a BlackBerry Z10 protective case with a total outer dimension of 137.4mm in length, 68.2mm in width, and 11.8mm in height. The main body is a rounded rectangular shell with a corner radius of 9.3mm and a wall thickness of 1.2mm. Hollow out the center to fit a phone with dimensions of 131mm by 65.8mm by 9.4mm a...
width = 65.8; length = 131; height = 9.4; corner_radius = 7.3; topcutout_width = 36; topcutout_height = height+10; bottomcutout_width = 24; bottomcutout_height = height+10; rcutout_width = 35; rcutout_height = height+10; rcutout_offsettop = 17; lcutout_width = 30; lcutout_height = height+10; lcutout_offsettop = 57; ca...
glb/cad_64d2c0c0803f.glb
Create a Greg's Wade Extruder and Herringbone Gear set. First, construct the extruder base as a rounded cube with a 70mm length. Integrate a filament feed hole designed for 1.75mm filament fed through a 4mm OD PTFE tube. Position the hobbed bolt area such that the large gear's outer diameter protrudes halfway into th...
include <MCAD/polyholes.scad> include <CUSTOM/roundCornersCube.scad> include <CUSTOM/oshw.scad> malcolm_hotend_mount=1; groovemount=2; peek_reprapsource_mount=4; arcol_mount=8; mendel_parts_v6_mount=16; grrf_peek_mount=32; wildseyed_mount=64; geared_extruder_nozzle=128; jhead_mount=256; reprapfaborg_mount=512; e3dv6...
glb/cad_28f2208aebc8.glb
Create a Test Jig for a clock's minutes and seconds components. The model consists of two parallel frame plates, each 3mm thick, separated by a vertical gap. Each frame plate is constructed by placing three circular sleeves (rings) with an outer diameter of 6mm and an inner bore of 3mm to accommodate shafts. These sl...
use <MCAD/involute_gears.scad> include <clockworkLibrary.scad> scale=1; printLimit=80*scale; $fs=0.5*scale; thickness=3*scale; pinRadius=1.5*scale; sleeveThickness=1.5*scale; tightFit=0.25*scale; clearance=0.5*scale; spacer=clearance; explodeZ=0*scale; spokeWidth=3*scale; numberSpokes=5; drumHeight=4*thickness; numb...
glb/cad_eab99ac78ffe.glb
Create a PolyBot Female Clevis joint. Start with a base cylinder of radius 10.36mm and height 23.87mm. On top of this base, add a second cylinder with a height of 2mm that transitions from the base radius down to a radius of 6.35mm. Above this, add a third cylinder with a radius of 6.35mm and a height of 10.29mm. To fi...
goldenratio = 1.61803399; joinfactor = 0.125; fivesixteenths = 5/16*25.4; halfinch = 0.5*25.4; quarterinch = 1/4*25.4; eighthinch = 1/8*25.4; gDefaultDepth = 3/8*25.4; gDefaultCapLength = gDefaultDepth+3; gDefaultFlangeRadius = 8/2*goldenratio; gDefaultClevisLength =2; gDefaultClevisRadius = gDefaultFlangeRadius; ...
glb/cad_9510a6b29da9.glb
Create a protective case for a PCB consisting of a hollow top sleeve and a supporting bottom base. For the top section, create a rectangular box measuring 16mm wide, 6mm deep, and 20mm high, centered at a height of 6mm. Hollow out the interior of this box by removing a centered rectangular volume measuring 14mm wide, 4...
translate([0,0,6]) difference(){ cube([16, 6,20], center = true); translate([-0.005,0.1,-1]) cube([14, 4,25], center = true); } rotate(a=[-0,180,0]) translate([-0,-6.5,0.00]) difference() { union() { cube([17, 7, 25], center = true); cube([17, 7, 25], center = true); } union() { ...
glb/cad_6976ecd6869d.glb
Create a PolyBot Male Clevis joint. Start by creating a main vertical cylinder with a radius of 10.2mm (approximately 0.4 inches) and a height of 24.13mm (3/8 inch). Hollow out the center of this cylinder with a smaller concentric hole of radius 3.34mm (approximately 1/4 inch) extending from the bottom. At the top of ...
goldenratio = 1.61803399; joinfactor = 0.125; fivesixteenths = 5/16/2*25.4; halfinch = 0.5*25.4; gDefaultDepth = 3/8*25.4; gDefaultCapLength = gDefaultDepth+3; gDefaultCapIR = 1/4/2*25.4*1.05; gDefaultCapOR = gDefaultCapIR*goldenratio; gDefaultClevisLength =2; gCaptureThickness =1/4/2*25.4*goldenratio; gDefaultPinRa...
glb/cad_8d31576fbd0d.glb
Create a PolyBot Servo Mount designed to hold a servo with a width of 20.25mm and a length of 40.25mm. Start by constructing a rectangular servo sleeve with a wall thickness of 2.5mm and a height of 18mm. The sleeve should be open at the top to allow the servo to slide in. On the bottom of the sleeve, add two mountin...
joinfactor=0.125; goldenratio = 1.61803399; gDefaultMountHoleRadius = 3/2*1.05; gDefaultMountSlotLength = 10; gSleeveWidth = 18; gServoWidth = 20.25; gServoLength = 40.25; gTabLength = 7.5; gWallThickness = 2.5; gShelfThickness = 6.50; servoSlantedMount(); module mountingtab(width, depth, thickness) { mounthole...
glb/cad_d77b85223ac0.glb
Create a GynePunkFuge centrifuge tube-holder. Start with a primary cylindrical base 95mm in diameter and 1mm thick, centered at [0, 0, -5]. Add a thin outer ring around this base with a diameter of 100mm and a height of 8mm, centered at [0, 0, -3]. Place a rectangular block 102mm by 145mm and 10mm high, centered at [0,...
tubeholes = 4; EppiTilt = 35; drillholes = 6; color("DarkGray") translate ([0,0,-5]) cylinder(h = 1, d = 95); color("grey") translate ([0,0,-3]) rotate_extrude(convexity = 10) translate ([49,0,0]) square ([2,8],center = true); color("dimgrey") translate ([0,20,-10]) linear_extrude(height = 10, center = true, conve...
glb/cad_922d68081d77.glb
Create a 3D model of a hotend effector consisting of several stacked and adjacent geometric primitives. Start with a central vertical assembly: place a cylinder with a radius of 8mm and a height of 12.7mm centered on the Z-axis. Directly below this, add a second cylinder with a radius of 6mm and a height of 4mm. Furthe...
$fn = 50; module hotend() { union() { cylinder(h=12.70, r=16/2, center=true); h1 = (12.7 + 4)/2; translate([0, 0, -h1]) cylinder(h=4, r=12/2, center=true); h2 = h1 + 4/2 + 26/2; translate([0, 0, -h2]) cylinder(h=26, r=22.3/2, center=true); ...
glb/cad_cc3ba7b84c49.glb
Create a flat round effector for a 3D printer hotend. Start with a central cylindrical plate 4mm thick with a radius of 27.5mm. Bore a central hole through the plate with a diameter of 22.5mm to accommodate a V6 hotend. Position six ball joint seats around the plate, arranged in three pairs. Each pair is separated by ...
use <E3D_V6_Hotend_model.scad>; function radius(diameter) = diameter/2; $fn = 50; smidge = 0.1; ball_joint_distance = 35; ball_diameter = 12.70; ball_radius = radius(ball_diameter); hotend_diameter = 22.30; hotend_radius = radius(hotend_diameter); wall_thickness = 2; theta = 45.0; ball_seat_radius = ball_radius *...
glb/cad_243ddde02042.glb
Create a PolyBot Effector Base by starting with an equilateral triangle platform with a side length of 101.6mm and a thickness of 8mm. Truncate the three corners of the triangle to create a hexagonal profile. In the center of the platform, create a circular hole with a radius of approximately 5.3mm. Around this cente...
joinfactor = 0.25; goldenratio = 1.61803399; gDefaultKeyBase = 12; gDefaultKeyTop = gDefaultKeyBase/goldenratio; gDefaultKeyHeight = gDefaultKeyBase/goldenratio; gDefaultPlatformSize = 4*25.4; gDefaultPlatformHeight = gDefaultPlatformSize *(sqrt(3)/2); gDefaultPlatformThickness = 8; gAxleRadius = 3/8/2*25.4; gAxleOR...
glb/cad_7e0f3449586d.glb
Create an Xbox 360 PSU Socket Housing. Start with a main rectangular body 15mm deep, 27mm wide, and 30mm high. The front of the housing features a large central rectangular cutout measuring 6mm deep, 20.8mm wide, and 19.2mm high to accommodate the power socket. Add a 2mm thick flat faceplate that extends from the back...
$fn = 0; $fa = 0.01; $fs = 0.2; sDp = 15; sHt = 30; sWd = 27; sSd = 3; sHd = 5; sHh = 0.5; cSnk = 1; pAd = 0.01; difference() { union() { difference() { cube([sDp,sWd,sHt-((sHt-19)/2)]); translate([0,0,0]) rotate([0,0,0]) fillet(9,1.5); translate([0,sWd,0]) rotate([90,0,0]) fillet(9,1.5);...
glb/cad_aae61e89b5ef.glb
Create a Customizable iPhone Stencil Case for an iPhone 6 Plus. The main body is a rounded rectangular shell with a thickness of 1.8mm. The outer dimensions are 77.8mm wide by 158.07mm long, with a corner radius of 8mm. The case features a hollowed-out interior to fit the phone, with a wall thickness of 1.8mm. On the ...
primary_color="red"; iphone_version = 4; case_thickness = 1.8; type_of_case = 1; include_hooks="no"; input = "no_input"; image_scale=75; offX =0; offY =0; image_rotation =0; pattern_shape =6; pattern_radius =17; pattern_overlap = 18; pattern_rotation = 13; pattern_thickness = 5; mashup_type=1; index_i=1; ind...
glb/cad_46f5fad0b9c0.glb
Create a flexible shaft coupler with a total height of 40mm. The model consists of two cylindrical end caps connected by a central spring section. Each end cap has a height of approximately 9.75mm. The first cap features a central bore of 5mm in diameter with a flat face measuring 4.45mm across. The second cap feature...
TOTAL_HEIGHT = 40; SHAFT_DIAM1 = 5; SHAFT_DIAM2 = 8; FLAT_DIAM1 = 4.45; FLAT_DIAM2 = 8; SET_SCREW_DIAM1 = 3.5; SET_SCREW_DIAM2 = 3.5; NUT_DIAM1 = 6.5; NUT_DIAM2 = 6.5; NUT_THICK1 = 2.5; NUT_THICK2 = 2.5; SPRINGS = 12; SLICES = 22; module sq_spring(N, in_R,out_R,height,rot) { width=out_R-in_R; linear_extrude(h...
glb/cad_121a12ebe081.glb
Create a glass plate clip by starting with a rectangular block 13.7mm long, 9mm wide, and 5mm high. Carve out a central rectangular channel 5.45mm wide, 5.1mm deep, and 5mm high, leaving walls that are 4mm thick. This creates a U-shaped profile with a base thickness of 4mm and two side arms. At both ends of the clip,...
bed_thick=3.2; glass_thick=2.25; width=5; clip_thick=4; depth=5; nub=.25; union(){ difference(){ cube([bed_thick+glass_thick+2*clip_thick,depth+clip_thick,width]); translate([clip_thick,clip_thick,-0.1]) cube([bed_thick+glass_thick,depth+0.1,width+0.2]); difference(){ translate([-0.1,-0.1,-0.1]) cube(...
glb/cad_34f287d6f8be.glb
Create an Acme MultiStart Nut by starting with a hexagonal prism that has a radius of 10mm and a height of 10mm. From the center of this prism, remove a multi-start trapezoidal thread. The thread should have two starts, a pitch of 4.233mm, and a pitch radius of 4.7625mm. The thread profile should have an angle of 29 de...
use <Thread_Library.scad> m_starts=2; m_length=10; m_pitch=2.116582*m_starts; m_pitchRadius=4.7625; m_threadAngle=29; m_threadHeightToPitch=0.5/m_starts; m_profileRatio=0.5/m_starts; difference() { cylinder(r=10, h=m_length, $fn=6); screw_thread(); } module screw_thread(){ union() { for ( i = [0 : m_s...
glb/cad_d8b5c73b02df.glb
Create an Interlocking Rings Puzzle consisting of three identical interlocking rings. Each ring is formed by a closed loop with a hexagonal cross-section of 5mm width. The median diameter of each ring is 60mm. To construct a single ring, create a geometry where the cross-section is a wedge-like hexagonal prism. Each ...
tol=.4; L=60; W=5; phi=60; f=0.43; translate([0,0,W/2]){ ring1(); rotate([0,0,40])ring2(); rotate([0,0,80])ring3(); } module wedge(offset=0) render() translate([-L,0,0])intersection(){ rotate([0,0,-45-phi/2])rotate([0,30,0])translate([offset,0,-L/2])cube(L); rotate([0,0,-45+phi/2])rotate([-30,...
glb/cad_3f4064f9fbdf.glb
Create a Pen Caddy by starting with a main cylinder that has a diameter of 75mm and a height of 80mm. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a diameter of 67mm and a height of 80mm, leaving a bottom wall thickness of 4mm. To add decorative protrusions, integrate four spher...
main_d=75; wall_x=4; inside_d=main_d-wall_x; orb_d=40; res=80; module outside() { cylinder(d=main_d, h=80, $fn=res); } module orbs() { translate ([30,-18,60]) sphere(d=orb_d, $fn=res); translate ([30,18,60]) sphere(d=orb_d, $fn=res); translate ([-25,-12,20]) sphere(d=orb_d, $fn...
glb/cad_43cee2147500.glb
Create a Clock Gear Train assembly consisting of a series of gears and an escapement wheel. All components are scaled by a factor of 0.45. First, construct the escapement wheel with a total radius of 36mm and a thickness of 3.6mm. The wheel features a central bore with a radius of 3.6mm and a hub width of 9mm. Add 20 ...
use <MCAD/involute_gears.scad> include <escapementLibrary.scad> scale=0.45; radius=80*scale; thickness=8*scale; bore=8*scale; rimWidth=8*scale; numberSpokes=9; spokeWidth=4*scale; drumHeight=1*thickness; numberTeeth=20; toothLength=25*scale; toothLean=30; toothSharpness=20; toothSpan=4.5; faceAngle=6; armAngle=26; ...
glb/cad_1814b76fe43b.glb
Create a customized funnel consisting of a conical section and a cylindrical pipe. Start by creating a hollow cone with a top diameter of 100mm and a bottom diameter of 10mm, reaching a height of 50mm. The wall thickness of this cone should be 1mm. Attached to the bottom of the cone, add a hollow cylindrical pipe with...
fine = 60; show_Hanger = "yes"; show_Gab = "yes"; WallThickness = 1; HighFunnel =50; DiameterTop = 100; DiameterPipe = 10; HighPipe =50; BeveledTip = "yes"; Spitze = 45; $fn = fine; Hoehe = (HighPipe + HighFunnel) / 2; Ghoehe = (HighPipe + HighFunnel); ra2 = DiameterPipe/2; schr=ra2*5; ra1 = DiameterTop; Wand = W...
glb/cad_79d74fc42a03.glb
Create two identical corner brackets for paintings. Each bracket begins as a solid cube measuring 22.5mm on all sides. From this cube, remove a smaller cube of 20mm x 20mm x 10mm, positioned 2.5mm from the front, side, and bottom faces, to create a slot for the painting. To refine the aesthetic, remove a triangular pri...
$fs=0.5; corner_size = 20; painting_depth = 10; wall_size = 2.5; screw_shaft_d = 3.7; screw_head_d = 6.6; screw_head_h = 2.6; rotate(a=90, v=[0, -1, 0]) { corner_dodad(); translate([0, 0, corner_size*2]) corner_dodad(); } module corner_dodad() { wall_wall_size = wall_size+screw_head_h; difference() { cub...
glb/cad_cc72031252f9.glb
Create a set of six game pawns. Each pawn is constructed by starting with a cylindrical base of radius 5.6mm and height 5mm. Above this base, create a body by placing a sphere of radius 5.32mm centered at a height of 5.8mm, then truncate the bottom half of this sphere with a horizontal cut to create a tapered midsectio...
pawnr=5.6; pegh=pawnr-2; pegr=1.32; hatfit = .91; fit = .95; x=2; y=3; dy = -3*pawnr*y/2; for (i=[-(x-1)/2:1:(x-1)/2]) { for (j=[0:1:y-1]) { translate([i*pawnr*2.5,dy+j*pawnr*2.5+pawnr*2.7,3]) pawn(); } } module officerhat() { difference() { union() { cylinder(r=pawnr*.8,h=pawnr); ...
glb/cad_3f28ec63c7cf.glb
Create a sail and flag assembly. First, construct a sail by creating a triangular prism with a thickness of 2mm. The triangle's vertices should be at [0,0], [45,45], and [45,0] in the XY plane. Position this sail so it is centered on the Z-axis. Next, add a supporting pole by creating a cylinder with a radius of 1mm an...
use <oshw.scad> r=45; difference() { translate([-r/1.5,-r/4,0]) sail(); } module flag() { linear_extrude(height = 2, center = true, convexity = 10, twist = 0) polygon(points=[[0,0],[8,15],[15,0]]); rotate([0,90,0]) cylinder(r=1,h=25); } module sail() { linear_extrude(height = 2, center = true, convexity = ...
glb/cad_1b1a1aaeddec.glb
Create a stylized rowboat with a total length of 75mm and a height of 16mm. The main hull is formed by the intersection of a sphere with a radius of 40mm and a cube, resulting in a rounded, boat-like shape with a flat bottom. The bottom floor of the boat has a thickness of 8mm. Inside the hull, create a grid of 12 cyl...
r1=50*.8; h1=20*.8; pawnr=7*.8; floor=10*.8; flaghole=3.2; px = 3; py = 4; translate([0,-3*pawnr*py/2,0]) rowboatwholes(px,py); module rowboatwholes(x,y) { difference() { scale([1.3*px/2,1.1*py/3,1]) rowboat(); for (i=[-(x-1)/2:1:(x-1)/2]) { for (j=[0:1:y-1]) { translate([i*pawnr*2.65,j*pawnr*...
glb/cad_6ab8f8d8d8fc.glb
Create a sail model consisting of a thin triangular blade attached to a cylindrical mast. First, construct the sail as a right-angled triangle with a thickness of 2mm. The triangle should have two legs of equal length, each measuring 45mm, meeting at a 90-degree angle. Position this triangular blade so that it is cente...
r=45; difference() { translate([-r/1.5,-r/4,0]) sail(); } module flag() { linear_extrude(height = 2, center = true, convexity = 10, twist = 0) polygon(points=[[0,0],[8,15],[15,0]]); rotate([0,90,0]) cylinder(r=1,h=25); } module sail() { linear_extrude(height = 2, center = true, convexity = 10, twist = 0) ...
glb/cad_6c99fc40a145.glb
Create an Icosahedral Pencil Holder by constructing a hollow icosahedron where each of the 20 equilateral triangular faces is replaced by a decorative motif. For the "mark 4" version, each face consists of a pattern of smaller lines with a thickness of 3mm and a height of 2mm, based on a primary length of 20mm. The mot...
l = 20; w = 3; h = 2; rs = 34; l12b=7.525; w12b = 2; h12b = 2; rs12b = 34; gr = (1 + sqrt(5))/2; rgr = 1/gr; norm = sqrt(1+gr*gr); ang2 = 22.23876; ang1 = 60 - ang2; mark = 4; if (mark == 4) union() { rotate([0,69.1,0]) union() { decor_555( 1.0/sqrt(3), 1.0/sqrt(3), 1.0/sqrt(3), 1,-...
glb/cad_924a728e4655.glb
Create a BrushedSparky Hex frame for a hexcopter. Start by creating a main circular ring with an outer radius of 66.5mm and an inner radius of 63.5mm, and a height of 5mm. Position six motor mounts around the ring at angles of -30, 30, 90, 150, 210, and 270 degrees. Each mount is a 20-sided prism with an outer radius...
N = 6; angs = [-30, 30, 90, 150, 210, 270]; alpha = 15; beta = 15; psi = 10; omega = 15; theta = 20; mot_p = [alpha, alpha, -beta, 0, 0, -beta]; mot_r = [-psi, psi, -omega, -theta, theta, omega]; radius = 65; radius_ratio = 1.0; radius_width = radius * radius_ratio; radius_forward = radius; MOTOR_DIAM = 8.8; ech...
glb/cad_d567e368fe70.glb
Create a 3D model of a quartz crystal in a trigonal habit. Start with a sphere with a radius of 100mm centered at the origin. Carve this sphere using a series of planar cuts to define the crystal faces. First, create six vertical faces to form a hexagonal prism. These planes should be oriented at 60-degree intervals ...
trigonal_quartz(1.5767,-2); module trigonal_quartz(set_angle,length) { difference() { sphere (r=100, center = true); union() { mkplane( cos(30),sin(30),0,200,200,15); mkplane( cos(90),sin(90),0,200,200,15); mkplane( cos(150),sin(150),0,200,200,15); mkplane( cos(210),sin(210),0,200,200,15); m...
glb/cad_b84ad936d791.glb
Create a 3D model of a quartz crystal by starting with a sphere of radius 100mm and removing material using a series of intersecting planes to carve a faceted geometric solid. First, carve six vertical faces around the center to form a hexagonal prism. These planes should be positioned at 60-degree intervals around t...
normal_quartz(1.5767,2); module normal_quartz(set_angle,length) { difference() { sphere (r=100, center = true); union() { mkplane( cos(30),sin(30),0,200,200,15); mkplane( cos(90),sin(90),0,200,200,15); mkplane( cos(150),sin(150),0,200,200,15); mkplane( cos(210),sin(210),0,200,200,15); mkplan...
glb/cad_9cbc15296cb7.glb
Create a model of quartz crystals emerging from a base. Start by creating a sphere with a radius of 60mm centered at the origin. Add four elongated crystal needles that extend upwards from the sphere. Three of these are normal quartz crystals with a length of approximately 50mm to 55mm; position the first at a 23-degre...
use <normal_quartz.scad> use <trigonal_quartz.scad> scale(0.5) difference() { union() { sphere(r= 60, center=true); rotate([23,0,0]) translate([0,0,90]) normal_quartz(1.5767,50); rotate([0,25,0]) translate([0,0,90]) normal_quartz(1.5767,55); rotate([-10,-10,0]) translate([0,0,90]) trigona...
glb/cad_f8b167de78bb.glb
Create a Helical Vertical Axis Wind Turbine consisting of a central support shaft and three twisted blades. The central shaft is a cylinder with a radius of 4.005mm and a total height of 100mm. A coaxial hole with a radius of 4.005mm is removed from the center of the shaft. Construct three helical blades, each start...
use <naca4.scad> Length = 100; Base = 50; Radius = 80; Camber = 0; Position = 4; Thickness = 15; Guide_hole = 3; Reinforcement = 0; GapSize = 0.08; Support_Tabs = 0; Tab_Thickness = 1; Savonius_Starter = 1; Module = 1; if (Module == 1){ Turbine_Assembled(); } if (Module ==2){ helical_wing_at...
glb/cad_0bdeefa1c6bc.glb
Create a Chatter Gear Box consisting of a vertical train of interlocking spur gears. The system starts with a spring gear at the top and ends with a cam gear at the bottom, connected by a series of pinion gear pairs. The gears use a circular pitch derived from a total spacing of 50mm between the centers of a 12-tooth ...
include <MCAD/involute_gears.scad> function sqr(n) = pow(n, 2); function cube(n) = pow(n, 3); function gear_outer_radius(number_of_teeth, circular_pitch) = (sqr(number_of_teeth) * sqr(circular_pitch) + 64800) / (360 * number_of_teeth * circular_pitch); function fit_spur_gears(n1, n2, spacing) = (180 * spacing * ...
glb/cad_7917c3deff44.glb
Create a Tantillus carriage for LM8UU bushings. Start with a central rectangular body measuring 44mm in width, 44mm in depth, and 40mm in height, with a base thickness of 10mm. Integrate two cylindrical bushing mounts. Each mount should have an outer diameter of 21mm (15.02mm bushing diameter plus 6mm wall) and a len...
$fs=0.2; $fa=2; height=4.64+4.76; fillet = 2; bigR = 29.5; jhead_plate = 27.2; punchHeight=20; smooth = 100; body_x=44; body_y=44; body_z=40; body_base_z=10; bushing_outer_diameter=15.02; bushing_inner_diameter = 15.02; bushing_length=44; $fn=60; t_slot_z_shift=1; mirror([1,0,0]) color("SteelBlue") translate([0,0...
glb/cad_657c332a1204.glb
Create a customized multiline keychain tag. Start by creating a base rectangular plate with a thickness of 2.4mm. The plate should be wide enough to accommodate multiple lines of text with an inner margin of 1mm and an outer margin of 1mm. On the left side of the plate, add a lug for a keyring: create a circular hole w...
line1=""; line2=""; line3=""; line4=""; line5=""; line_spacing=1.4; writing_direction="ltr"; function is_vertical()=writing_direction=="btt"||writing_direction=="ttb"?90:0; lug_style="plate"; lug_text_distance=2; lug_length=4.0; lug_width=5.0; ruler_unit=10; font_name="Lobster"; font_size=12; font_style="bold"...
glb/cad_06ff5e3e43d9.glb
Create a customized multiline keychain tag. Start by creating a rectangular base plate with a thickness of 2.4mm. The plate should have rounded corners and a total width of 5mm. On the left side of the plate, integrate a lug for a keyring: create a circular hole with a diameter of 5mm, centered within a small extension...
line1=""; line2=""; line3=""; line4=""; line5=""; line_spacing=1.4; writing_direction="ltr"; function is_vertical()=writing_direction=="btt"||writing_direction=="ttb"?90:0; lug_style="plate"; lug_text_distance=2; lug_length=4.0; lug_width=5.0; ruler_unit=10; font_name="Lobster"; font_size=12; font_style="bold"...
glb/cad_91d2fcc3c3a4.glb
Create a Prusa i3 carriage adapter by starting with a rectangular block measuring 49mm in length, 10mm in width, and 20mm in height. From this block, remove four distinct holes that pass through the 10mm width. First, create a pair of holes spaced 30mm apart. Position the first hole 5mm from the left edge and the sec...
difference() { translate([-1,0,0]) cube([50,10,20]); translate([5,5,10]) rotate([90,0,0]) cylinder(r=2, h=5.1); translate([5,10.1,10]) rotate([90,0,0]) cylinder(r=6.8/2, h=5.1, $fn=6); translate([5+30,5,10]) rotate([90,0,0]) cylinder(r=2, h=5.1); translate([5+30,10.1,10]) rotate([90,0,0]) cylinder(r=6.8/2, h=5.1...
glb/cad_bac47cb4a0ba.glb
Create a JGR extruder consisting of a main body, an idler assembly, and a clamp. The main body is a block with a NEMA 17 motor mount centered on top. The mount is a 42mm square block with a height of 22mm, featuring four 1.8mm radius mounting holes positioned 15.5mm from the center. The body includes a central bore o...
$fn=64; mirror(){ bodyminihobb(); translate([-30,9.5,0])idler(); translate([0,-20,0])clamp(); } module idler(){ difference(){ translate([1,0,0])cube([19,23,10]); translate([16,20.25,-1])cylinder(r=3.5/2,h=15); translate([5,20.25,-1])cylinder(r=3.5/2,h=15); translate([16,2.75,-1])cylinder(r=3.5/2,h=15); translate([5,...
glb/cad_5051a53e46d9.glb