Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Prusa-stuff Y frame corner by starting with a rectangular base block measuring 18mm wide, 22mm deep, and 49mm tall. Remove material to create three primary holes: two cylindrical holes with a radius of 4.4mm passing horizontally through the center of the block at heights of 10mm and 30mm, and one cylindrical...
module corner_base(){ translate([-9,-11,0])cube([18,22,49]); } module corner_holes(){ translate([-11,-11,0]){ translate([0,11,10]) rotate([0,90,0]) translate([0,0,-5]) cylinder(h = 270, r=4.4, $fn=30); translate([0,11,30]) rotate([0,90,0]) translate([0,0,-5]) cylinder(h = 270, r=4.4, $fn=30); translate([11...
glb/cad_7b9006b8bf9c.glb
Create a Y motor mount for a 3D printer. Start by constructing the main base, which consists of a central rectangular block measuring 9mm by 31mm by 10mm, centered at [29, 29, 0] relative to the origin. Flanking this block are two cylinders with a radius of 5.5mm and a height of 10mm, positioned at [13.5, 13.5, 0] and ...
module y_motor_base(){ union() { translate(v = [29,-21+50,0]){ difference() { union() { translate(v = [-21+4.5,0,5]) cube(size = [9,31,10], center=true); translate(v = [-15.5,-15.5,0]) cylinder(h = 10, r=5.5, $fn=50); translate(v = [-15.5,+15.5,0]) cylinder(h = 10, r=5.5, $fn...
glb/cad_b65de5968d9d.glb
Create a Prusa Z axis bottom holder consisting of two mirrored symmetrical brackets. For each bracket, start with a base composed of three intersecting rectangular plates: one measuring 7.5mm by 49mm by 36mm, one measuring 30mm by 3.7mm by 22mm, and a larger base plate measuring 50mm by 52.5mm by 7mm. Refine the geom...
module z_bottom_base() { translate([0,-1.5,0]) cube([7.5,49,16+20]); translate([0,-5,0]) cube([30,3.7,22]); translate([0,42,0]) cube([30,5.5,22]); translate([0,-5,0]) cube([50,52.5,7]); } module z_bottom_fancy() { translate([0.5,-2.5,-2]) rotate([0,0,-45-180]) translate([-15,0,-1]) cube([30,30...
glb/cad_16a7a9012e89.glb
Create a Prusa LCD cover. Start with a main body consisting of a base plate 155mm wide, 59.8mm deep, and 2mm thick. Add three vertical walls: two side walls 2mm thick and a rear wall 17mm high. The side walls should be angled at 35 degrees relative to the base. Cut a rectangular window for the LCD screen measuring 98....
module main_body(){ difference() { union() { translate( [ -77 , -4.5 , 0 ] ) cube( [ 155 , 59.8 , 2 ] ); translate( [ -77 , -4.5 , 0 ] ) rotate([35,0,0]) cube( [ 155 , 2 , 20.08 ] ); translate( [ -77 , -14.7 , 14.2 ] ) cube( [ 155 , 2 , 11.8 ] ); translate( [ -77 , 54 , 0 ] ) cube( [ 155 , 2 , 17 ] );...
glb/cad_45e6737b3fe6.glb
Create a RAMBo door cover by starting with a main rectangular body measuring 105.5mm in width, 87.5mm in depth, and 20mm in height. The base is a thin plate 1mm thick, with side walls rising to 20mm. On the front face, create a ventilation grille consisting of 10 vertical slots. Each slot is 3.65mm wide and 19mm tall...
module body() { cube( [ 105.5 , 87.5 , 1 ] ); cube( [ 105.5 , 2 , 20 ] ); cube( [ 2 , 87.5 , 20 ] ); translate( [ 98 , 1 , 0 ] ) cube( [ 7.5 , 5 , 20 ] ); translate( [ 0.5 , 0.5 , 0 ] ) cube( [ 5 , 6.5 , 20 ] ); translate( [ 1 , 0 , 0 ] ) cube( [ 10 , 87.5 , 6 ] ); translate( [ 99.5 , 0 , ...
glb/cad_acfb07326d82.glb
Create a cable holder consisting of a vertical block with integrated zip-tie slots. The main body is formed by a central cylinder with a radius of 5mm and a height of 39.5mm, flanked by two rectangular sections: one measuring 10mm by 9mm by 39.5mm and another measuring 7mm by 10mm by 39.5mm, all centered around the cyl...
module zip_main() { translate([-10,-30.5,24]) cube([20,2,3]); translate([-6,-30.5,24]) cube([2,20,3]); translate([5,-30.5,24]) cube([2,20,3]); difference() { translate([0.5,-26,24]) rotate([0,0,90]) cylinder( h=3, r=6, $fn=30 ); translate([0.5,-26,23]) rotate([0,0,90]) cylinder( h=...
glb/cad_01d1a08c8b56.glb
Create a protective electronics enclosure door for an Einsy board. Start with a main body consisting of a base plate 105.5mm wide, 87.5mm deep, and 1.5mm thick. Add two side walls 16mm high: one along the 105.5mm edge and one along the 87.5mm edge. Add structural reinforcements by placing a 7.5mm by 5mm by 16mm block ...
module body() { cube([105.5,87.5,1.5]); cube([105.5,2,16]); cube([2,87.5,16]); translate([98,1,0]) cube([7.5,5,16]); translate([0.5,0.5,0]) cube([5,6.5,16]); translate([1,0,0]) cube([10,87.5,6]); translate([99.5,0,0] ) cube([6,87.5,7]); translate([10,0,0]) cube([6,5,6]); translate...
glb/cad_45665cc9d6eb.glb
Create a RAMBo electronics cover consisting of a main rectangular body with integrated mounting and reinforcement features. Start with a base plate measuring 118.5mm by 92mm with a thickness of 2mm. Extend vertical walls from the edges to create a housing, including a rear panel 105.5mm wide and 35mm high, and a side p...
module CubicPattern(Xdim, Ydim){ for (x =[0:12:Xdim-10]) { for (y =[0:12:Ydim-10]) { translate([x,y,-0.2])cube([10,10,0.4]); } } } module BottomCubic() { difference() { translate([5,5,0]) CubicPattern(110,90); translat...
glb/cad_df8907fa8109.glb
Create a Prusa LCD cover. Start with a main body consisting of a base rectangular slab 155mm wide, 59.8mm deep, and 2mm thick. Add two angled side walls by placing 155mm wide by 2mm thick slabs rotated 35 degrees along the X-axis: one at the bottom edge and one at a height of 14.2mm. Add vertical side supports 1.5mm th...
module main_body() { difference() { union() { translate( [ -77 , -4.5 , 0 ] ) cube( [ 155 , 59.8 , 2 ] ); translate( [ -77 , -4.5 , 0 ] ) rotate([35,0,0]) cube( [ 155 , 2 , 20.08 ] ); translate( [ -77 , -3.5 , -1 ] ) rotate([35,0,0]) cube( [ 7 , 5 , 15 ] ); ...
glb/cad_01da914d7267.glb
Create a PSU Cover by constructing a main rectangular base of 95mm x 65mm x 54.25mm. Add two vertical back pillars: one at the rear left measuring 14mm x 65mm x 5mm and another at the rear right measuring 14mm x 65mm x 5mm. Include a bracket base on the right side measuring 6mm x 65mm x 54.25mm. Add a small rectangular...
module CubeAdjust(Xdim, Zdim) { for (x =[6:11.2:Xdim-12]) { for (z =[6:11.2:Zdim-12]) { translate([x,-0.2,z])cube([10,0.4,10]); } } } module nuttrap() { rotate([0, 180, 0]) difference() { union() { ...
glb/cad_8cc6a2138ef1.glb
Create a filament sensor cover starting with a rectangular base block measuring 24mm in width, 3mm in height, and 36mm in depth. Centered on the top face, add a cylinder with a radius of 4.2mm and a height of 10mm, topped with a conical section that tapers from a radius of 4.2mm down to 3mm over a height of 1.5mm. Re...
module part() { difference() { union() { translate([-6,50,-30.5]) cube([24,3,36]); translate([0,60,-17]) rotate([90,0,0]) cylinder(r=4.2,h = 10, $fn=30); translate([0,61.5,-17]) rotate([90,0,0]) cylinder(r1=3, r2=4.2, h=1.5, $fn=30); ...
glb/cad_dc00c753360a.glb
Create a heatbed cover consisting of a main body and a clip. For the main body, start with a rectangular block 36mm wide, 32mm deep, and 8.6mm high, centered at x=0. Remove a central rectangular volume of 30mm by 16.5mm by 9mm, shifted slightly to start at x=-15 and y=-0.5. Create a cylindrical cutout with a radius o...
module cover() { difference() { translate([-18,0,0]) cube([36,32,8.6]); translate([-15,-0.5,-3]) cube([30,16.5,9]); translate([-0,33,3]) rotate([90,0,0]) cylinder(h = 15, r=3.3, $fn=60); translate([-15,15,-6]) cube([30,19,9]); translate([-4,4.5,0]) rotate([0,0,45]) cu...
glb/cad_5825ee384391.glb
Create a heatbed cover consisting of a main body and a clip. For the main body, start with a rectangular block 36mm wide, 32mm deep, and 8.6mm high, centered at x=0. Carve out a central rectangular cavity 30mm wide, 16.5mm deep, and 9mm high, offset by -15mm in x and -0.5mm in y. Remove a cylinder with a 4mm radius, ...
module cover() { difference() { translate([-18,0,0]) cube([36,32,8.6]); translate([-15,-0.5,-3]) cube([30,16.5,9]); translate([-0,33,3]) rotate([90,0,0]) cylinder(h = 15, r=4, $fn=60); translate([-15,15,-6]) cube([30,19,9]); translate([-4,4.5,0]) rotate([0,0,45]) cube...
glb/cad_a7d9068f496d.glb
Create a Prusa-stuff heatbed cover consisting of a main body and a clip. For the main cover, start with a base block 36mm wide, 36mm deep, and 9mm high. Carve out a central rectangular cavity 30mm wide and 16mm deep, with a depth of 9mm. At the top center, create a cylindrical cutout with a radius of 3.3mm and a heig...
module cover() { difference() { translate([-18,0,0]) cube([36,36,9]); translate([-15,-0.5,-3]) cube([30,16,9]); translate([-0,37,3]) rotate([90,0,0]) cylinder(h = 15, r=3.3, $fn=60); translate([-15,15,-6]) cube([30,22,9]); translate([3.5,2,0]) rotate([0,0,0]) cube([1...
glb/cad_8ae027e0de8d.glb
Create a Prusa-stuff heatbed cover consisting of two main mirrored components. First, create a base block measuring 36mm x 36mm x 9mm. From this block, remove a central rectangular section of 30mm x 16mm x 9mm, offset by -15mm on the X-axis and -0.5mm on the Y-axis. Add a cylindrical cutout with a radius of 4mm and a...
module cover() { difference() { translate([-18,0,0]) cube([36,36,9]); translate([-15,-0.5,-3]) cube([30,16,9]); translate([-0,37,3]) rotate([90,0,0]) cylinder(h = 15, r=4, $fn=60); translate([-15,15,-6]) cube([30,22,9]); translate([3.5,2,0]) rotate([0,0,0]) cube([10....
glb/cad_c6580044b01f.glb
Create a Prusa-stuff LCD support consisting of two mirrored support brackets. Each bracket is based on a primary body shape created by taking a block 69mm wide, 81mm deep, and 10mm high, and removing several geometric volumes to create a recessed area for a PCB. Specifically, remove a series of overlapping cubes and ro...
module body() { difference() { translate([-55,-2,0]) cube([69,81,10]); union () { translate([-69.6,32,-1]) rotate([0,0,45]) cube([60,53,15]); translate([13.7,89.7,-1]) rotate([0,0,135]) cube([60,42,15]); translate([-19,-9,-1...
glb/cad_68ecde83f536.glb
Create a Prusa-stuff X carriage back. Start with a base composed of two joined rectangular blocks: one measuring 33mm by 73mm by 8mm positioned at [-16, -40, 15.1], and another measuring 52mm by 30.5mm by 8mm positioned at [-25.5, 4, 15.1]. From this base, remove several geometric features. Create a rectangular cutout...
module m3head() { intersection() { translate([30,5,9])cylinder(r=3.1,h = 25, $fn=30); translate([30,5,17-3.5]) cube([6.2,3.4,1], center=true); } translate([30,5,17-4]) cube([3.4,3.4,1], center=true); translate([30,5,17-3.5])cylinder(r=3.1,h = 20, $fn=30); } module x_carriage_back() ...
glb/cad_03260352ccbb.glb
Create a Y-belt idler bracket. Start with a base rectangular block measuring 25mm in width, 20mm in depth, and 35mm in height. Modify the front face by removing material with three angled cuts: one at 37 degrees, one at 60 degrees, and one at 38 degrees, to create a tapered profile. Carve a cylindrical pulley housing ...
module Y_belt_idler() { difference() { translate([-12.5,-20,5]) cube([25,20,35]); translate([-4.75,-27,-1]) cube([9.5,20,50]); translate([-15,-19.5,-15]) rotate([37,0,0]) cube([30,20,40]); translate([-15,-12,-15]) rotate([60,0,0]) cube([30,20,40]); translate([-15,-20,29...
glb/cad_b09fbfe15b34.glb
Create a Y motor holder by starting with a base rectangular block measuring 13mm by 42mm by 47mm, centered such that it spans from x=-6 to x=13. Carve out a large semi-cylindrical void for the motor with a radius of 11.5mm and a length of 35mm, centered horizontally and positioned at a height of 26mm. Remove addition...
module holder() { difference() { translate([-6,-1.5,0]) cube([19,42,47]); translate([-20,19.5,26]) rotate([0,90,0]) cylinder( h=35, r=11.5, $fn=50 ); translate([-11,20,15]) cube([26,23,64]); translate([-20,5.5,-1]) cube([26,41,64]); translate([-20,-5,37]) cube([26,21,20...
glb/cad_b45cb907ea8b.glb
Create a Prusa-stuff FS cover. Start with a base rectangular block measuring 39mm in width, 28mm in depth, and 5mm in height, centered such that its back-left corner is at -17, -17, 0. Add a 10mm by 10mm by 6mm cube at -5, -10, 0. Place two smooth cylinders with a radius of 5mm and a height of 1mm at positions 0, -10, ...
module fs_cover() { difference() { union() { translate([-17,-17,0]) cube([39,28,5]); translate([0,-10,5]) cylinder(h=1,r=5,$fn = 60); translate([0,0,5]) cylinder(h=1,r=5,$fn = 60); translate([-5,-10,0]) cube([10,10,6]); } translate([0,0,-1]) cylinder(h=20,r1=1.2, r2=4,$...
glb/cad_5bbffa5e7e80.glb
Create a print fan support by starting with a vertical rectangular block 10mm wide, 10mm deep, and 30mm tall. At the bottom of this block, center a cylinder with a radius of 5mm and a height of 5mm. Attached to the side of the main block, add a rectangular extension 5mm wide, 15mm deep, and 30mm tall. At the top of t...
difference() { union() { translate([-4,-47,23]) rotate([0,0,0])cylinder(h = 5, r=5, $fn=50); translate([-2,-57,23]) rotate([0,0,0]) cube([5,15,30]); translate([-5,-52,23]) rotate([0,0,0]) cube([8,10,5]); translate([-5,-48,45]) rotate([48,0,0])cylinder(h = 10, r=6, $fn=6); } ...
glb/cad_049b292ee626.glb
Create a blade holder for a Prusa MMU2. Start by creating a rectangular base block measuring 25mm in width, 4mm in depth, and 16mm in height. From this base, remove several cylindrical holes and geometric cutouts. First, create two parallel cylindrical holes with a radius of 1.7mm and a length of 10mm, positioned horiz...
module blade_holder() { difference() { translate([40,-28,5]) cube([25,4,16]); translate([45,-20,16]) rotate([90,0,0]) cylinder(r=1.7, h=10, $fn=50); translate([55,-20,12]) rotate([90,0,0]) cylinder(r=1.7, h=10, $fn=50); translate([45,-22,16]) rotate([90,0,0]) cylinder(r=3.1, h=...
glb/cad_70b9c2d05b95.glb
Create a Prusa-stuff electronics cover. Start with a main rectangular block measuring 125mm in length, 56mm in width, and 15mm in height, positioned at coordinates [-29, -21, 23]. Hollow out the center by removing a rectangular volume of 108mm by 48mm by 15mm starting at [-21, -11.5, 21]. Create several hexagonal cut...
module nut_cut() { translate([0,0,2]) cylinder(r=3.1, r2=4, h=4, $fn=6); difference() { cylinder(r=3.1, h=4, $fn=6); translate([-3.65,-5,-0.4]) cube([2,10,1]); translate([1.65,-5,-0.4]) cube([2,10,1]); translate([-2,1.65,-0.7]) cube([4,4,1]); translate([-2,-5.65,-0.7]...
glb/cad_6a048ea4df54.glb
Create a filament sensor cover. Start with a base rectangular block measuring 24mm in width, 3mm in height, and 36mm in depth. On top of this base, add a rectangular section measuring 10mm by 13mm by 7mm, positioned to create a stepped profile. Integrate a central cylindrical protrusion with a radius of 6mm and a heig...
module part() { difference() { union() { translate([-6,50,-30.5]) cube([24,3,36]); translate([0,63,-17]) rotate([90,0,0]) cylinder(r=6,h = 13, $fn=30); translate([0,63,-10]) rotate([90,0,0]) cylinder(r=5,h = 13, $fn=30); trans...
glb/cad_5d9dc3a5ac72.glb
Create a front PTFE holder for a multi-material unit. Start with a base composed of two joined rectangular blocks: one measuring 84mm x 15mm x 19mm and another 84mm x 10mm x 22.5mm, positioned to form the main body. Carve out several geometric voids to create clearance: a 45-degree rotated block of 86mm x 2.7mm x 2.7...
module front_PTFE_holder() { difference() { union() { translate([-16,-30,-15]) cube([84,15,19]); translate([-16,-25,-15]) cube([84,10,22.5]); } translate([-17,-28,2.2]) rotate([45,0,0]) cube([86,2.7,2.7]); translate([-17,-31,3.5]) cube([86,2.7,2....
glb/cad_4f12e0ac33a5.glb
Create two separate hinge components for a RAMBo cover. For the upper hinge, start with a 30-facet cylinder 26mm high with a 2.4mm radius. Add a tapered cylinder on top from 26mm to 28mm height, transitioning from a 2.4mm radius to a 1.8mm radius. Attach a rectangular block measuring 7mm by 11mm by 21mm, positioned fro...
module upper_hinge() { difference() { union(){ cylinder( h = 26, r = 2.4, $fn=30); translate([0,0,26]) cylinder( h = 2, r1 = 2.4, r2 = 1.8, $fn=30); translate( [ -5 , -11 , 0 ] ) cube( [ 7 , 11 , 21 ] ); } translate( [ -12.5 , -2.5 , 17 ] ) rotate( [0,90,0] ) cylinder( h = 20, r = 1.75, $f...
glb/cad_ac9432d3e09b.glb
Create a Prusa MMU2 idler. Start with a main cylindrical body oriented horizontally with a radius of 17mm and a length of 71mm. At one end, create a motor shaft coupling consisting of a cylinder with a 9mm radius and 20mm length, integrated with a rectangular block measuring 20mm by 12mm by 9mm and a rotated rectangula...
module idler_segment_l() { translate([0,0,-12]) rotate([0,90,0]) cylinder(r=8.5, h=6, $fn=50); translate([-6,0,-12]) rotate([0,90,0]) cylinder(r=2.55, h=60, $fn=50); translate([-70,0,-12.5]) rotate([0,90,0]) cylinder(r=1.6, h=75, $fn=50); translate([-70,0,-12]) rotate([0,90,0]) cylinder(r=1.4, h=75, $fn...
glb/cad_b265f58ce90b.glb
Create a rear PTFE holder for a multi-material unit. Start with a rectangular base measuring 64.6mm in length, 20.8mm in width, and 7mm in height, positioned from x=-1.8, y=15.2, z=0. Remove a series of holes and slots from this base. First, create four sets of angled holes spaced every 14mm starting from x=10 to x=5...
module rear_PTFE_holder() { difference() { translate([-1.8,15.2,0]) cube([64.6,20.8,7]); for (i =[10:14:52]) { translate([i,14,-30]) rotate([-20,0,0]) cylinder(r=1.7, h=46, $fn=50); translate([i,26.75,5]) rotate([-20,0,0]) cylinder(r=3.1, h=46, $fn=50); ...
glb/cad_d7001e3ba188.glb
Create a Prusa MMU2 s-holder-endstop by constructing a tiered cylindrical base with a central hole. Start with a wide base cylinder 1mm high with a radius of 11.5mm. On top of this base, add a second cylinder 4mm high with a radius of 7.5mm. Above that, add a 2mm high frustum that tapers from a radius of 7.5mm at the b...
difference() { union() { translate([0,0,0]) cylinder( h=1, r=11.5, $fn=60 ); translate([0,0,0]) cylinder( h=4, r=7.5, $fn=60 ); translate([0,0,4]) cylinder( h=2, r=7.5, r2=6, $fn=60 ); } translate([0,0,0]) cylinder( h=5, r=4.5, $fn=60 ); translate([0,0,-0.5]) cylinder( h=2...
glb/cad_badc924e79a8.glb
Create a selector front plate for a Prusa MMU2. Start with a rectangular block measuring 15mm wide, 4.5mm thick, and 34.5mm long. Remove two cylindrical holes running through the width of the block, each with a radius of 1.65mm, positioned 15mm apart. At the openings of these holes, create countersinks by removing co...
module front_plate() { difference() { translate([50,-65.5,-13.5]) cube([15,4.5,34.5]); translate([59,-48,-8]) rotate([90,0,0]) cylinder(r=1.65, h=30, $fn=50); translate([59,-48,15]) rotate([90,0,0]) cylinder(r=1.65, h=30, $fn=50); translate([59,-60,-8]) rotate([90,0,0]) cylinde...
glb/cad_1bbab36518bf.glb
Create a PowerCode-Upgrades pulley consisting of two mirrored halves joined at a central opening. For each half, start with a base cylinder 0.5mm high with a 15mm diameter. Atop this base, add a cylinder 4mm high with a diameter of 16.3mm. Between these two cylinders, create a conical transition (chamfer) that starts a...
dCoji = 10.3 ; hPolea = 1 ; hCoji = 5.2 ; dEje = 6 ; dPolea = 15 ; hCorrea = 6 ; module Polea(){ difference () { union() { cylinder (h = 0.5, r = dPolea/2, $fn=100); translate([0, 0, 0.5]) cylinder (h = 4, r = (dCoji/2)+hPolea, $fn=100); translate([0, 0, 0.5]) cylinder(h = 4-(hCorrea/2), r1 = dPol...
glb/cad_5784262d5355.glb
Create a PowerCode-Upgrades part consisting of a rounded base and two protruding hooks. Start by constructing the base as a hull of four cylinders, each with a radius of 3mm and a height of 3mm, positioned at the corners of a 25mm by 20mm rectangle centered at the origin. On top of this base, centered at the origin, ad...
rPad = 3 ; xPad = 25 ; yPad = 20 ; hPad = 3 ; hHook = 6 ; xHook = 24 ; yHook = 4 ; sHook = 5.5 ; GapHooks = 0 ; $fn = 25 ; module base(){ hull(){ translate([xPad/2,yPad/2,0]) cylinder(h = hPad, r = rPad, center = true); translate([-xPad/2,yPad/2,0]) cylinder(h = hPad, r = rPad, center = true); translate(...
glb/cad_a25bfe365e28.glb
Create a PowerCode-Upgrades endstop bracket by starting with a central block that is 18mm wide, 30mm long, and 6.2mm thick. The block is symmetrical along the X-axis. On the top face, carve out a rectangular recessed area for the endstop switch that is 5.9mm wide, 5.8mm long, and 5mm deep. Within this recess, add a sm...
dBar = 8.1; dTor = 3.3; dCab = 5.6; hHex = 5.9; hEnd = 13.6; wEnd = 5.8; dEnd = 5; module mpieza(){ translate([0, 3, 0]) cube([9, 27, 6.2]); translate([6, 3, 0]) cylinder(h = 6.2, r = 3, $fn=100); translate([1.5, 0, 0]) cube([4.5, 3.9, 6.2]); } module endstop(){ translate([0, 2.8, 10-dEnd]) cube([hEnd/2,...
glb/cad_140781c1b775.glb
Create a spinning top base by constructing a thin disc with a thickness of 2mm and an outer diameter of 37mm. Remove a concentric cylindrical hole from the center with a diameter of 20mm to create a ring. To this ring, add a rectangular clip centered on the object with a length of 35mm and a width of approximately 8.57...
thickness = 2; base_diameter = 35; core_diameter = 15; attack_ring_diameter = base_diameter + thickness; module attack_ring_base() { clip_length = base_diameter; clip_width = core_diameter / 1.75; difference() { cylinder(thickness, d = attack_ring_diameter); cylinder(thickness, d = core_di...
glb/cad_b248a16ccc0b.glb
Create a beyblade spinning top by starting with an attack ring base. Around this base, arrange six identical rectangular blocks, each measuring 6mm in width, 4mm in depth, and 2mm in height. Position these blocks so that their centers are offset from the central axis by 3mm in one direction and 18mm in the other. Distr...
use <attack-ring-base.scad> attack_ring_base(); for (i = [0:5]) { rotate(i * 60) translate([-3, 18]) cube([6, 4, 2]); }
glb/cad_808b4e445a78.glb
Create a beyblade spinning top by first constructing an attack ring base. Around the center of this base, place five identical cylinders, each with a diameter of 10mm and a height of 2mm. Arrange these five cylinders in a circular pattern, spacing them equally at 72-degree intervals. Position each cylinder so that its ...
use <attack-ring-base.scad> attack_ring_base(); for (i = [0:4]) { rotate(i * 72) translate([0, 18]) cylinder(2, d = 10); }
glb/cad_df6a5748310c.glb
Create a spinning top model centered on the origin. Start with a small cylindrical tip 3mm high with a 3mm diameter. Atop this tip, place a larger cylinder with a diameter of 15mm and a height of 15mm. This central core should be hollowed out by a smaller concentric cylinder of 7mm diameter, leaving a wall thickness of...
point_height = 3; weight_width = 5.5; weight_length = 13; top_height = 8; top_diameter = 35; thickness = 2; core_thickness = 15; top_z = point_height + 7; core_height = top_z + top_height + thickness - 1; echo("height", core_height + point_height); echo("width", top_diameter); module base_core() { module core_cuts...
glb/cad_cdb89e73a44f.glb
Create a beyblade launcher consisting of a central gear mechanism and a surrounding housing. Start by creating a main gear with a height of 4mm and an inner diameter of approximately 15.9mm, featuring 10 ratchet teeth. At the center of this gear, add a vertical cylindrical mount with a diameter of 9mm and a height of 1...
use <lib/openscad-lib/gears.scad> thickness = 2; mount_diameter = 9; mount_height = 15; gear_height = thickness * 2; gear_inner_diameter = 50 / PI; gear_outer_diameter = gear_inner_diameter + (2 * thickness); housing_inner_length = gear_outer_diameter + 1; housing_inner_width = gear_outer_diameter + 10; housing_out...
glb/cad_c664cbd81845.glb
Create a rip cord launcher for a spinning top. Start by creating a thin, flat ring with an outer diameter of 24mm, an inner diameter of 20mm, and a height of 2mm. Within the body of this ring, carve out a small square notch measuring 7.5mm by 7.5mm, rotated 45 degrees, to serve as a support. Extending from the ring, co...
use <lib/openscad-lib/gears.scad> thickness = 2; module rip_cord(length) { ring_inner_diameter = 20; ring_thickness = thickness * 2; ring_support_hyp = 7.5; echo("rip cord length", length + ring_inner_diameter + ring_thickness); ratchet_stick_pawl(thickness, length, thickness, thickness, length ...
glb/cad_b8debc6a2051.glb
Create a poe-rackmount bracket by starting with a rectangular base measuring 60mm in length, 35mm in width, and 5mm in thickness. Centered along the length at 30mm and positioned 7mm from the front edge, create a circular hole with a diameter of 5mm that passes completely through the base. Additionally, create two rect...
translate([0,0,0]) { $l = 60; $w = 35; $holeThrough = 50; $additionalSpace = 6; $positionHoleXLeft = 7; $leftHoleDiamater = 5; $rackHoleSpace = 31.75; $rightHoleLength = 10; $rightHoleDiameter = 7; $positionHoleXRight = $w - $positionHoleXLeft - 7; $rightHole2Y = ($rightHo...
glb/cad_f448d8d947f4.glb
Create a slim wallet (portemonnaie) with a total footprint of 87.5mm by 59.5mm. First, construct the main card storage section. Create a hollow rectangular box with outer dimensions of 87.5mm by 59.5mm and a total thickness of approximately 5.4mm. The walls and top surface should be 0.87mm thick. Inside this box, car...
cards_to_store = 4; version = 20; include <engraving.scad> cc_h = 54.1; cc_w = 85.6; cc_t = 0.9; key_l = 57.2; key_t = 2.8; key_top_w = 26.0; key_top_d = 4.5; key_m1_d = 30.1; key_m1_w = 13.5; key_m2_d = 25.8; key_m2_w = 9.2; key_bottom_w = 7.4; side_wall = 0.87; top_wall = 0.87; mid_wall = 0.87; front_gap = 0.5; ...
glb/cad_4db917963d82.glb
Create a structural rail for a robocar with a total length of 240mm, a total width of 23mm, and a total height of 10mm. The rail is based on a complex symmetrical profile that includes side walls of 4.5mm and a central slot. Extrude this profile along the 240mm length. Starting 10mm from each end, place a series of bo...
use <MCAD/nuts_and_bolts.scad> length = 240; hole_end_margin = 10; front_fastening_position = 25; rear_fastening_position = 25; gap_tolerance = 1; hole_top_tolerance = 0; $fn=16; top_height = 4; slot_height = 6; side_height = 6; total_height = side_height + top_height; total_width = 23; slot_width = 2 + gap_to...
glb/cad_62f4f35659f1.glb
Create a luggage label consisting of a flat rectangular plate with rounded corners. The plate has a thickness of 3mm and a corner radius of 3mm. On the left side of the plate, centered vertically, create a slotted hole for a strap. This slot is 10mm long and 4mm wide, with rounded ends. Engrave the following text in...
use <Module/Writescad/write.scad> font="stencil2.dxf"; fontlengthfactor=.682; fontsize=11; spacing=0.9; linespacing=0.85; cornerradius=3; platethickness=3; textdepth=-66; slitlength=10; slitwidth=4; hidetext=false; text=[ "YOUR NAME", "ADDRESS", "ZIP CITY", "COUNTRY" ]; maxtextchars = max(len(text[0]),len(...
glb/cad_2bd163cb0d8a.glb
Create a spiral airless tire wheel with a total height of 10mm and an outer diameter of 70mm. Start by constructing a thin outer rim with a thickness of 1mm. At the center, create a hub with an inner diameter of 8mm and an outer diameter of 12mm, extending slightly above the rim. Fill the space between the hub and the...
dia_in = 8; dia_out = 70; spoke_count = 20; spoke_thickness = 0.5; tread_thickness = 1; hub_thickness = 2; hub_indent = 5; height = 10; $fn = 30; spoke_dia = (dia_in/2) + hub_thickness + (dia_out/2) - tread_thickness+spoke_thickness; grip_density = 0.1 ; grip_height = 0.5; grip_depth = 1; pi = 3.1415926; zff = 0.001; ...
glb/cad_15bfc62a52b6.glb
Create an OBS Control Rig box with outer dimensions of 200mm x 120mm x 100mm and a wall thickness of 3mm. The main body is a hollowed rectangular shell with rounded corners of 5mm. At each of the four corners, integrate screw pillars that contain a 4.5mm diameter hole passing through the height of the box, with a squ...
outer_dimensions = [200, 120, 100]; min_height = 40; corner_radius = 5; mode_button_x = [45, 155]; mode_button_y = 90; mode_button_d = 24.5; mode_button_kd = 3.5; mode_button_ks = 40; scene_button_x = [30, 65, 100, 135, 170]; scene_button_y = 35; scene_button_d = 24.5; led_hole_dia = 8; led_hole_pos = [100, 80]; led_he...
glb/cad_d3aa9322056d.glb
Create a bed carriage idler holder by starting with a rectangular base measuring 84mm in length, 51mm in width, and 7mm in height. Add two vertical cylindrical posts to the top surface, both centered at X=53mm and positioned at Y=11mm and Y=40mm respectively. Each post consists of a lower cylinder with a 16mm diamete...
include <../lib/bom.scad> include <../lib/metric_fasteners.scad> include <vitamins.scad> module p013 () { render () difference () { union () { cube ([84.00, 51.00, 7.00]); for (t = [11, 40]) translate ([53, t, 6]) { ...
glb/cad_ebb2b4723f53.glb
Create an Eventorbot-EU bed frame. Start with a base rectangular block 10mm wide, 165mm long, and 21.5mm high. Add two perpendicular cross-beams, each 135.4mm long, 14mm wide, and varying in height between 16.5mm and 21.5mm, positioned at the ends of the base block. From these cross-beams, remove a central rectangular ...
include <config.scad> use <../lib/bom.scad> use <p021.scad> use <p022.scad> module p020() { h = [16.5, 21.5]; t = [0, 151]; r = [32.1, 32.1 + Y_rod_distance]; render () difference () { union () { cube([10, 165, 21.5]); for (i = [0, 1]) ...
glb/cad_65828610c9e6.glb
Create a bed frame part called Eventorbot-EU. Start with a main body consisting of a vertical block measuring 10mm x 165mm x 21.5mm. Attach two horizontal arms to this block at the top and bottom (at Y=0 and Y=151); each arm is a rectangular prism measuring 143.5mm x 14mm with heights of 21.5mm and 16.5mm respectively....
include <config.scad> include <../lib/metric_fasteners_tab.scad> use <../lib/metric_fasteners.scad> use <../lib/bom.scad> use <p022.scad> module p021_joint(size, carve = false) { scale ([1,1,size/10]) intersection () { union () { intersection () { ...
glb/cad_7288329467f8.glb
Create a Y-axis timing belt clamp by starting with a solid rectangular block measuring 21.5mm in width, 7.5mm in depth, and 7mm in height. Carve a rectangular slot out of the top center of the block to create a recessed channel. This cutout should be 7.9mm wide and 8mm deep, with a height of 1.1mm, positioned 6.8mm f...
include <../lib/metric_fasteners_tab.scad> use <../lib/metric_fasteners.scad> use <../lib/bom.scad> module p022_mounting (length = 0.0, bom = true) { bolt_length = 5 * ceil((7.0 + hex_nut_thickness(M3_5) + length)/5); render (convexity=4) { translate ([4.3, 7.5/2, 0]) hex_bolt (M3_5, bo...
glb/cad_8d266de20730.glb
Create a NEMA17 motor mounting bracket. Start with a solid block measuring 40mm wide, 49.2mm deep, and 51.3mm high. Remove a large section from the top and side by subtracting a block of 40mm by 55mm by 70mm, positioned at X=43.04, Y=-2, Z=0 and rotated -37.27 degrees around the X-axis, and further remove a block of 40...
include <../lib/metric_fasteners.scad> include <../lib/bom.scad> module p005() { render() difference () { union() { difference() { cube([40.00, 49.20, 51.30]); translate([43.0443974630021144, -2, 0]) rotate([0, -37.274...
glb/cad_a1628025ad96.glb
Create an X carriage by starting with a base shape formed by the convex hull of two 24-facet circles with 5mm diameters, centered at [26, 0] and [26, 50.5] on the XY plane, and extruded to a height of 48mm. Add a rectangular block measuring 8mm by 20mm by 38mm, positioned at [27.5, 17.75, 5]. Attach a small rectangular...
include <../lib/metric_fasteners.scad> use <../lib/bom.scad> use <p008.scad> module p007 () { render () difference () { union () { linear_extrude (48) hull () { for (i = [0:1]) translate ([0, 50.5*i]) ...
glb/cad_b4235f883d96.glb
Create an Eventorbot-EU X carriage timing belt clamp. Start with a central rectangular block measuring 38mm in width, 4mm in height, and 24mm in depth. On each side of this central block, attach a mirrored component. Each component is created by taking a 2D profile—formed by the hull of a 5mm radius circle centered a...
include <../lib/metric_fasteners.scad> include <../lib/bom.scad> module p008 () { difference () { union () { for (i = [0:1]) translate ([38*i, 1, 0]) mirror ([i, 0, 0]) rotate ([-90, 0, 0]) difference () {...
glb/cad_fe742ffff00e.glb
Create a coin holder with an overall height of 50mm. The main body is a cylinder with a base thickness of 2mm. The outer radius of the holder is automatically determined to fit a specific set of coins arranged around the perimeter. For the "Joey" currency set, create five vertical cylindrical slots. Each slot is defin...
$fn=60; currency = "Joey"; overall_height = 50; demo = 0; currencies = [[ "UK", [ ["1",20.3,1.65], ["2",25.9,2.03], ["5",18,1.89], ["10",24.5,2.05], ["20",21.4,1.7], ["50",27.3,1.78], ["£1",23.43,2.8], ["£2",28.4,2.5] ]], [ "US", [ ["1",19.05,1.55], ["5",21.209,1.95], ...
glb/cad_d8d6bd70414e.glb
Create a coin holder with an overall height of 50mm. The main body is a cylinder with a 2mm chamfer on the top and bottom edges. The base is flat with a thickness of 2mm. The holder features a central cylindrical hollow that runs through the center of the model. Around this center, create seven cylindrical holes to ho...
$fn=60; overall_height = 50; coins = [ ["1",20.3,1.65], ["2",25.9,2.03], ["5",18,1.89], ["10",24.5,2.05], ["20",21.4,1.7], ["50",27.3,1.78], ["£1",23.43,2.8], ["£2",28.4,2.5] ]; clearance = 0.4; coin_spacing = 1; trim_radius = 3; base_thickness = 2; text_size = 10; pillars = len(...
glb/cad_4223b8d57137.glb
Create a 3D logo that spells "MINECRAFT" using a blocky, voxel-style geometric font. Each letter is constructed from a series of rectangular prisms with a uniform thickness of 1mm. Build each letter as follows: - M: A 3x1x1mm base with three vertical bars and connecting segments. - I: A simple 3x1x1mm rectangular pris...
module m(){ cube([3,1,1]); translate([0.6,1,0]) cube([1,0.25,1]); translate([1,1.25,0]) cube([1,0.75,1]); translate([0.6,2,0]) cube([1,0.25,1]); translate([0,2.25,0]) cube([3,1,1]); } module i(){ cube([3,1,1]); } module n() { cube([3,1,1]); translate([0.6,1,0]) cube([1,0.25,1]); translate([1....
glb/cad_c9b6187397df.glb
Create a tablet holder by starting with a solid rectangular block measuring 206.5mm in length, 128mm in width, and 18.45mm in height, centered on the origin. From this main volume, remove a central rectangular cavity measuring 199.5mm by 121mm by 18.45mm to create a hollow frame with walls approximately 4mm thick. To o...
tolerance = 1; size = [ 198.5, 120, 10.45]; margin = 4; 2m = 2 * margin; difference() { cube( size=[ size[0] + 2m, size[1] + 2m, size[2] + 2m, ], center=true); cube( size=[ size[0] + tolerance, size[1] + tolerance, size[2] + tolerance, ], center=tr...
glb/cad_7d267429b103.glb
Create a tablet holder consisting of a hollow rectangular frame with an outer dimension of 206.5mm by 120mm and a total height of 14.45mm. The structure is composed of three main sections: a backplate, side walls, and a top rim. First, create the backplate as a flat rectangular base measuring 204.5mm by 110mm with a t...
tolerance = 1; cable_radius = 2 + tolerance/2; margin = 4; tablet_size = [198.5, 120, 10.45]; size = [tablet_size[0] + 2*margin + tolerance, tablet_size[1], tablet_size[2]]; module frame(frame_size, border) { difference() { cube(size=frame_size, center=true); cube(size=[ frame_size[0] - border, ...
glb/cad_c7bb98f072ab.glb
Create an SSD caddy for an optical drive bay. Start with a rectangular base plate 128mm wide by 128mm long and 2.3mm thick. Add two side rails of 4mm width and 9.5mm height along the left and right edges, though the right rail is interrupted by a 13mm wide by 40mm long cutout at the rear for cable management. At the re...
tray_width = 128; tray_length = 128; tray_height = 9.5; baseplate_height = 2.3; notch_depth = 3; notch_width = 14; notch_xpos = 42; slot_width = 98; slot_recess = 60; wall_diam = 1.5; rail_diam = 4; ssd_width = 70; ssd_length = 101.5; ssd_xoffset = 40; ssd_yoffset = tray_length - notch_depth - ssd_length - rail_dia...
glb/cad_17c2ecc861ae.glb
Create a stop block for a chisel sharpening jig. Start by constructing a base rectangular plate measuring 52mm in length, 30mm in width, and 3mm in thickness. To this base, add two perpendicular walls, both 3mm thick and 52mm long. Position the first wall vertically along the side of the base, extending 15mm upward fro...
type = "Chisel"; angle = 30; size = (type == "Chisel") ? (angle == 30 ? 30 : 40) : (angle == 30 ? 38 : 50); h = 52; wall=3; text_depth = .3 * 2; $o = .1; chisel_sharpening_jig_key(); module chisel_sharpening_jig_key() { rotate([0,-90,0]) difference() { union() { cube([h, size + .1, ...
glb/cad_2787c19a7ce7.glb
Create a flashlight diffuser consisting of a cylindrical sleeve and a domed top. First, create a hollow cylindrical sleeve with an inner diameter of 15.33mm and a wall thickness of 1mm. The sleeve should have a height of 12mm. Inside the top rim of this sleeve, add eight small friction-fit bumps spaced every 45 degre...
diameter = 15.33; sleeve_height = 12; diffuser_height = 20; diffuser_type = "Dome"; top_radius = 7.5; top_fillet = 2; cross_section = false; $fn = (diameter < 40) ? 50 : 75; $o = .1; diffuser(diameter/2, top_radius, top_fillet, sleeve_height, diffuser_type, diffuser_height, cross_section); module on_arc(radiu...
glb/cad_3e2dd98f7c37.glb
Create an ergonomic support for a Magic Trackpad. The main body is a wedge-shaped platform with a base dimension of 133mm by 133mm. The platform is tilted at a 12-degree angle to provide an ergonomic elevation. Construct the side walls to create a "cup" that holds the trackpad. The back wall should be 6.5mm high, feat...
angle = 12; handed = "right"; $fn=75; $o = .1; trackpad_platform(angle, handed); module round_corner() { difference() { translate([-5,-5,0]) cube([10,10,200]); translate([5,5,-1]) cylinder(r=5, h=202); } } module lower_wall2(d) { t = 1; h = 6 + t; r = 11.5; union() { ...
glb/cad_1aa9514e701b.glb
Create a wooden train whistle jig. Start with a solid block that is 45mm wide, 45mm deep, and 75mm tall. Hollow out the center to create a square sleeve with a wall thickness of 2.5mm and an internal cavity measuring 40mm by 40mm. The floor of this cavity should be 20mm thick. In the base, create three conical guide h...
use <../../dotscad/pie.scad>; use <../dotscad/pie.scad>; use <dotscad/pie.scad>; use <pie.scad>; bore = 12.7; bore_collar = false; base=20; wall=2.5; w = 40; h = 75; point_max = 12.7/2; point_min = 1; mouthpiece_cut = 25.4; cap_width = 15.875; module jig($fn=75) { o=.1; bore_fuzz = .25; cutout_fuz...
glb/cad_9ec53fa01cba.glb
Create a router backplate consisting of two primary rectangular plates. First, construct a main backplate as a rectangular slab measuring 275mm wide, 220mm high, and 2mm thick. Centered on this slab, remove a rectangular section 42.5mm wide and 196mm high to create a central opening. Additionally, remove a smaller rect...
m = 10; big_width = 27.5 * m; big_height = 22 * m; small_width = 25.5 * m; small_height = 19.8 * m; screws_width_d = 23 * m; depth = 2 * m; thickness = 0.2 * m; screw_hole = 0.1 * m; mounting_plate_hole_width = small_width/2-(small_width-screws_width_d); main_plate_hole_width = small_width/6; main_plate_hole_shif...
glb/cad_b999b25e629b.glb
Create an electro-knob by constructing a main cylindrical body and subtracting a specific internal profile. Start with a cylinder that has a radius of 4.86mm and a total height of 31.2mm. On top of this base, add a second cylinder with a radius of 14mm and a height of 6mm, positioned so its bottom sits 6.2mm above the ...
$fn = 128; fudge = 0.1; HEIGHT = 31.20; OUTSIDE_HEIGHT = 6.20; INSERT_HEIGHT = 25; OUTSIDE_RADIUS = 9.72/2; SCALE = 3.58; knob(OUTSIDE_HEIGHT, true); module knob(height, with_outside) { difference(){ union(){ cylinder(height, OUTSIDE_RADIUS, OUTSIDE_RADIUS, true); if (with_outside...
glb/cad_4fff318131fc.glb
Create a bedlamp-support consisting of two distinct flat components, each 5mm thick. First, create the bed holder by combining three rectangular sections into a single flat profile. The first section is a rectangle approximately 33.4mm wide and 6.2mm high; the second is a rectangle approximately 33.4mm wide and 6.2mm h...
fudge = 0.1; HEIGHT = 5; color("orange") bed_holder(HEIGHT); translate([25,40,0]) color("green") lamp_holder(HEIGHT); module poly_rect38059(h) { scale([25.4/90, -25.4/90, 1]) union() { linear_extrude(height=h) polygon([[-21.402370,-14.284470],[11.844033,-14.284470],[11.844033,-8.034546],[-21.402370,-8....
glb/cad_1e27315cc07e.glb
Create a bedlamp-support consisting of three distinct geometric components. First, create a bed holder by forming a composite shape from three intersecting rectangular prisms, then scale this entire base by 3.58 in the X and Y planes and 5 in the Z plane. Second, create a lamp holder by combining three rectangular pris...
fudge = 0.1; HEIGHT = 5; SCALE = 3.58; scale([SCALE,SCALE,HEIGHT]) color("orange") bed_holder(); translate([26,42,0]) scale([SCALE,SCALE,HEIGHT]) color("green") lamp_holder(); extra_support(); module poly_rect38059(h) { scale([25.4/90, -25.4/90, 1]) union() { linear_extrude(height=h) polygon([[-21.402...
glb/cad_31e62c9be95d.glb
Create a feeder filament guide consisting of two mirrored halves. For one half, start with a base cube of 60mm x 60mm x 10mm. From this base, remove a central rectangular volume of 50mm x 51mm x 5mm, offset by 5mm from the edges. Create a cutout for a switch holder by removing a volume of 50mm x 11.3mm x 5mm, positione...
include <../primitives/prism.scad>; include <variables.scad>; module screwBase() { difference() { cube([ guidanceScrewBaseX, guidanceScrewBaseY, guidanceZ/2 ]); translate([ guidanceScrewBaseX/2, guidanceScrewBaseY/2, 0 ...
glb/cad_feaa0ee516ce.glb
Create a feeder lower blanket holder for filament guidance. Start by creating a rectangular base plate with dimensions 10mm by 2mm by 14mm. Center a cylindrical hole with a radius of 5mm and a depth of 2mm through the center of the plate, oriented along the Z-axis. At each of the four corners of the base plate, add a...
include <variables.scad>; module blanketScrewHolder() { difference() { cube([ guidanceScrewBaseX, guidanceScrewBaseY, guidanceMaterialThickness ]); translate([ guidanceScrewBaseX/2, guidanceScrewBaseY/2, 0 ]) cy...
glb/cad_d74c0f49b9e8.glb
Create a cable hole grommet consisting of a hollow vertical cylinder and a thin circular base. Start by creating a main hollow cylinder with an outer radius of 5mm and an inner radius of 4.2mm, extending to a total height of 53.2mm. Centered at the bottom of this cylinder, add a thin circular disc with a thickness of 1...
materialThickness = 1.6; cutMaterialThickness = 0.8; cutRadius = 5; latchAdditionalRadius = 5; cutZ = 50 + 2*materialThickness; module cableHole() { difference() { union() { translate([ 0, 0, cutZ / 2 ]) cylinder( h=cu...
glb/cad_a46f122ccd7c.glb
Create a camera cable hole guide by constructing a hollow rectangular sleeve. Start with a solid rectangular block measuring 23.2mm in width, 5.2mm in depth, and 53.2mm in height. From this block, remove a central rectangular void measuring 20mm in width, 2mm in depth, and 53.2mm in height, positioned 1.6mm from the fr...
materialThickness = 1.6; cutX = 20; cutY = 2; cutZ = 50 + 2*materialThickness; latchOverHang = 5; module cameraHole() { difference() { union() { cube([ cutX + 2*materialThickness, cutY + 2*materialThickness, cutZ ]); tran...
glb/cad_c9c4f5d79453.glb
Create a usbCableHole by constructing a hollow rectangular sleeve. Start with a solid rectangular block measuring 25.2mm in width, 11.2mm in depth, and 53.2mm in height. Add a thin rectangular base plate to the bottom of this block that extends 5mm beyond the block's edges on all sides, with a thickness of 1.6mm. From ...
materialThickness = 1.6; cutX = 22; cutY = 8; cutZ = 50 + 2*materialThickness; latchOverHang = 5; module usbCableHole() { difference() { union() { cube([ cutX + 2*materialThickness, cutY + 2*materialThickness, cutZ ]); tr...
glb/cad_f4ad5d2d2742.glb
Create a Raspberry Pi HAT holder case. Start with a rectangular base plate measuring 92mm x 69mm x 1.6mm. On the left edge, remove a central rectangular slot for an SD card measuring 8mm x 26mm x 1.6mm, and add two blocks measuring 6mm x 12mm x 10mm immediately above and below this slot on the top surface. Position fi...
mainCaseX = 92; mainCaseY = 69; mainCaseZ = 1.6; raspiY = 56; raspiX = 85; sdCardSpaceX = 8; sdCardSpaceY = 26; sdCardBlockX = 6; sdCardBlockY = 12; raspiFootDistanceX = 58; raspiFootDistanceY = 49; raspiFootRadius = 3; raspiFootZ = 2.4; raspiFootNupsiBottomRadius = 1; raspiFootNupsiTopRadius = 0.3; raspiFootNupsiZ ...
glb/cad_95d50e77ec5e.glb
Create a case cover with a base plate and integrated mounting supports. Start with a rectangular base plate measuring 140.6mm by 100.6mm (box dimensions of 137mm by 97mm plus 1.8mm material thickness on all sides) and a thickness of 2.7mm. At each of the four corners of the base plate, add a latch. Each latch is a cu...
materialThickness = 1.8; boxX = 137; boxY = 97; boxZ = 42; latchX = 12; latchY = 12; plateZ = 1.5; plateDistanceZ = 7.5; module latch(holeRadius) { difference() { cube([ latchX, latchY, materialThickness ]); translate([ latchX/2, l...
glb/cad_ad3e2f917608.glb
Create a rectangular electronics case with a wall thickness of 1.8mm. The main internal cavity should measure 137mm in width, 97mm in depth, and 42mm in height. The case consists of a base and a lid. The base is a hollow box with the specified internal dimensions. On the back wall, create a series of 16 ventilation sl...
materialThickness = 1.8; boxX = 137; boxY = 97; boxZ = 42; latchX = 12; latchY = 12; plateZ = 1.5; plateDistanceZ = 7.5; module latch(holeRadius) { difference() { cube([ latchX, latchY, materialThickness ]); translate([ latchX/2, l...
glb/cad_a07362695d55.glb
Create a printer panel consisting of a main rectangular plate and a supporting holder plate. The main plate is a flat slab measuring 99mm by 36mm with a thickness of 1.8mm. In this plate, create five circular holes: one larger hole with a radius of 3.5mm centered at (13.5mm, 13.5mm), and four smaller holes with a radiu...
materialThickness = 1.8; itemDistance = 18; buttonHoleRadius = 3.5; buttonSecureHeight = 16; ledHoleRadius = 2.5; screwHoleRadius = 2.15; holderPlateAngle = 30; module printerPanel() { union() { difference() { cube([ 5.5*itemDistance, 2*itemDistance, ...
glb/cad_61bf4f5b2521.glb
Create a power connector hole for an XT60 cable. Start by constructing a hollow rectangular sleeve with an outer width of 21.2mm, a depth of 13.2mm, and a total height of 53.2mm. The walls of this sleeve should have a uniform thickness of 1.6mm, leaving an internal rectangular void of 18mm by 10mm. At the base of the s...
materialThickness = 1.6; cutX = 18; cutY = 10; cutZ = 50 + 2*materialThickness; latchOverHang = 5; module powerCableHole() { difference() { union() { cube([ cutX + 2*materialThickness, cutY + 2*materialThickness, cutZ ]); ...
glb/cad_d1d5c78a8e17.glb
Create a power plug holder with a total thickness of 1.8mm for all walls. Start by creating two identical latch plates, each a cube measuring 12mm wide by 12mm deep by 1.8mm high. Center a cylindrical hole with a radius of 2.1mm through the thickness of each latch plate. Position these two plates 75.6mm apart. Connect ...
materialThickness = 1.8; powerX = 52; powerY = 12; powerZ = 39; latchX = 12; latchY = 12; latchHoleRadius = 2.1; module latch(holeRadius) { difference() { cube([ latchX, latchY, materialThickness ]); translate([ latchX/2, latchY/2,...
glb/cad_af91ac7b5641.glb
Create a rectangular slab with dimensions of 100mm in length, 27mm in width, and 3mm in height.
include <MCAD/gears/rack_and_pinion.scad> include <MCAD/shapes/polyhole.scad> module polyhole_demo() { difference() { cube(size = [ 100, 27, 3 ]); union() { for (i = [1:10]) { translate([ (i * i + i) / 2 + 3 * i, 8, -1 ]) mcad_polyhole(h = 5, d = i); assign(d = i + 0.5) tra...
glb/cad_7cd346164562.glb
Create a rectangular slab with a length of 100mm, a width of 27mm, and a height of 3mm.
include <MCAD/gears/rack_and_pinion.scad> include <MCAD/shapes/polyhole.scad> module polyhole_demo() { difference() { cube(size = [ 100, 27, 3 ]); union() { for (i = [1:10]) { translate([ (i * i + i) / 2 + 3 * i, 8, -1 ]) mcad_polyhole(h =...
glb/cad_8c2b7c82ea37.glb
Create a rectangular slab with dimensions of 100mm in length, 27mm in width, and 3mm in height.
include <MCAD/gears/rack_and_pinion.scad> include <MCAD/shapes/polyhole.scad> module polyhole_demo() { difference() { cube(size = [ 100, 27, 3 ]); union() { for (i = [1:10]) { translate([ (i * i + i) / 2 + 3 * i, 8, -1 ]) mcad_polyhole(h = 5, d = i); assign(d = i + 0.5) translate([ (d * d + ...
glb/cad_00fbf7668837.glb
Create a rectangular slab with dimensions 100mm in length, 27mm in width, and 3mm in height.
include <MCAD/gears/rack_and_pinion.scad> include <MCAD/shapes/polyhole.scad> module polyhole_demo() { difference() { cube(size = [ 100, 27, 3 ]); union() { for (i = [1:10]) { translate([ (i * i + i) / 2 + 3 * i, 8, -1 ]) mcad_polyhole(h = 5, d = i); assign(d = i + 0.5) tra...
glb/cad_7cd346164562.glb
Create a nameplate for OpenSCAD by constructing a rounded rectangular base and adding extruded text. First, create a rounded box with a width of 71mm, a height of 11mm, and a depth of 1.5mm, ensuring the corners have a radius of 1.5mm. Position this base so its center is at coordinates (35.5, 5.5, 0.75). Then, add the ...
$fn=30; translate([32.7954545455, 2.0, 2.25]) scale([0.636404366243, 0.636404366243, 1.5]) dxf_linear_extrude(file = "inconsolata.dxf", height = 1, center = true); translate([35.5,5.5,0.75]) roundedBox(71.0,11.0,1.5, 1.5); module roundedBox(width, height, depth, radius) { size=[width, height, dept...
glb/cad_d6c41f74bcc5.glb
Create a 150mm tall T-slot aluminum extrusion profile. The base profile is a square measuring 25.4mm by 25.4mm. From this square, remove a central circular hole with a 3mm radius. Additionally, remove four identical slots oriented at 0, 90, 180, and 270 degrees around the center. Each slot consists of a rectangular not...
$fn=100; inch = 25.4; module Extrusion_8020(length) { color("silver") linear_extrude(length) difference() { translate([-0.5*inch,-0.5*inch]) square(1.0 * inch); notch = 0.256*inch; union() { for (a = [0,90,180,270]) { rotate([0,0,a]) ...
glb/cad_c11aed67e07b.glb
Create a flight computer mount for a rocket. Start by constructing a hollow cylinder with an outer radius of 15.875mm and a wall thickness of 10.875mm, extending to a height of 7mm. Cut a rectangular slot through the center of this cylinder that is 31.75mm long and 17.78mm wide, starting from a base height of 3mm. With...
$fn = 200; inch = 25.4; include <RocketCouplers.scad> bt70adj = 0.0; couplingTube = 0.03*inch; batteryWidth = 0.70*inch; batteryHeight = 1.05*inch; r4 = bt70id/2 - bt70adj; wall = r4-5; cutoutLength = bt70od; cutoutWidth = batteryWidth; h1 = 7; h0 = 3; flatLen = sqrt(4*r4*r4-batteryWidth*batteryWidth); flatWidth =...
glb/cad_899756cfd862.glb
Create a rocket-stuff flight computer housing consisting of a hollow cylindrical body. The main structure is a hollow cylinder with an outer radius of 23.85mm (derived from the BT-60 standard minus a 0.3mm adjustment) and a wall thickness of 3.4mm. The total height of the object is 38.1mm, divided into three sections: ...
$fn = 200; inch = 25.4; include <RocketCouplers.scad> bt80adj = 0.3; bt70adj = 0.3; bt60adj = 0.2; bt55adj = 0.2; bt50adj = 0.2; r1 = bt60id/2 - bt60adj; wall = 3.4; h1 = 0.5*inch; h2 = 0.5*inch; h3 = 1.0*inch; translate([0,0,h1+h2-1]) linear_extrude(h3) for (angle=[0,90,180,270]) { rotate(angle) offset(1) ...
glb/cad_8e5c7cce60aa.glb
Create a tessellation cube module by joining four identical cubes, each measuring 1mm x 1mm x 1mm. Start with one central cube at the origin. Attach a second cube to the left by positioning it at x = -1, y = 0, z = 0. Attach a third cube to the top by positioning it at x = 0, y = 1, z = 0. Attach a fourth cube to the b...
union() { cube(1,1,1); color("blue")translate([-1,0,0])cube(size = [1,1,1]); color("red")translate([0,1,0])cube(size = [1,1,1]); color("yellow")translate([0,0,-1])cube(size = [1,1,1]); }
glb/cad_42181683d3fd.glb
Create a tessellation cube module by joining four rectangular prisms around a central 1mm cube. Start with a base cube of 1x1x1mm. Attach a 2x1x1mm prism to the left side of the base cube, extending it from x=-2 to x=0. Attach a 1x2x1mm prism to the top, extending it from y=1 to y=3. Finally, attach a 1x1x2mm prism to ...
union() { cube(1,1,1); color("blue")translate([-2,0,0])cube(size = [2,1,1]); color("red")translate([0,1,0])cube(size = [1,2,1]); color("yellow")translate([0,0,-2])cube(size = [1,1,2]); }
glb/cad_a5e719dea399.glb
Create a tessellation cube module by assembling several rectangular prisms. Start by placing a 1x1x1mm cube at the origin. Add three more 1x1x1mm cubes adjacent to it: one at [-1, 0, 0], one at [0, 1, 0], and one at [0, 0, -1]. Next, construct a second larger composite shape using a 1x1x1mm cube at the origin, combined...
module module_cube_4(translation= [0,0,0]){ translate(translation)union() { cube(1,1,1); translate([-1,0,0])cube(size = [1,1,1]); translate([0,1,0])cube(size = [1,1,1]); translate([0,0,-1])cube(size = [1,1,1]); } }; module module_cube_7(translation= [0,0,0]){ translate(translation)union() { cube(1,1,1); tra...
glb/cad_0af50450226f.glb
Create a tessellation cube module by assembling several rectangular prisms of varying dimensions. Start by placing a 1x1x1mm cube at the origin. To this central core, add three 1x1x1mm cubes positioned at [-1,0,0], [0,1,0], and [0,0,-1]. Next, integrate three larger rectangular blocks: one 2x1x1mm block at [-2,0,0], on...
module module_cube_4(translation= [0,0,0]){ translate(translation)union() { cube(1,1,1); translate([-1,0,0])cube(size = [1,1,1]); translate([0,1,0])cube(size = [1,1,1]); translate([0,0,-1])cube(size = [1,1,1]); } }; module module_cube_7(translation= [0,0,0]){ translate(translation)union() { cube(1,1,1); tra...
glb/cad_ef1bf1b53f48.glb
Create a tessellation cube module by assembling several rectangular prisms of varying dimensions around a central core. Start with a central 1x1x1mm cube at the origin. Add three supporting rectangular prisms to this core: one measuring 1.2x1x1mm positioned at [-1, 0, 0], one measuring 1x1.2x1mm at [0, 1, 0], and anoth...
module module_cube_4(translation= [0,0,0]){ translate(translation)union() { cube(1,1,1); translate([-1,0,0])cube(size = [1,1,1]); translate([0,1,0])cube(size = [1,1,1]); translate([0,0,-1])cube(size = [1,1,1]); } }; module module_cube_4_support(translation= [0,0,0]){ translate(translation)union() { cube(1,1...
glb/cad_8181b760f039.glb
Create a tessellation cube module by assembling several 1mm cubes into a specific cluster. Start by placing a single 1mm cube at the origin. Add three more 1mm cubes to this central unit: one positioned at [-1, 0, 0], one at [0, 1, 0], and one at [0, 0, -1]. Then, create a second cluster of four 1mm cubes and position ...
module module_cube_4(translation= [0,0,0]){ translate(translation)union() { cube(1,1,1); translate([-1,0,0])cube(size = [1,1,1]); translate([0,1,0])cube(size = [1,1,1]); translate([0,0,-1])cube(size = [1,1,1]); } }; module module_cube_7(translation= [0,0,0]){ translate(translation)union() { cube(1,1,1); tra...
glb/cad_335229a1dc8f.glb
Create a tessellation cube module by assembling several rectangular prisms. Start with a central 1x1x1mm cube. Attach a 2x1x1mm prism to its left side, a 1x2x1mm prism to its top side, and a 1x1x2mm prism to its bottom side. To complete the structure, add four additional 1x1x1mm cubes at the following relative coordina...
module module_cube_4(translation= [0,0,0]){ translate(translation)union() { cube(1,1,1); translate([-1,0,0])cube(size = [1,1,1]); translate([0,1,0])cube(size = [1,1,1]); translate([0,0,-1])cube(size = [1,1,1]); } }; module module_cube_7(translation= [0,0,0]){ translate(translation)union() { cube(1,1,1); tra...
glb/cad_bacfc921b189.glb
Create a tessellation cube module by assembling several small cubes. Start with a central 1mm x 1mm x 1mm cube. Add three additional 1mm x 1mm x 1mm cubes to this central core: one positioned at [-1, 0, 0], one at [0, 1, 0], and one at [0, 0, -1]. To this assembly, add three support blocks: a 1.25mm x 1mm x 1mm block a...
module module_cube_4(translation= [0,0,0]){ translate(translation)union() { cube(1,1,1); translate([-1,0,0])cube(size = [1,1,1]); translate([0,1,0])cube(size = [1,1,1]); translate([0,0,-1])cube(size = [1,1,1]); } }; module module_cube_4_support(translation= [0,0,0], support_ratio = 1.25){ translate(translat...
glb/cad_310ca90171d5.glb
Create a set of Hanabi firework tiles. Each tile is a rectangular block measuring 37mm in width, 24mm in height, and 16mm in depth, with rounded corners having a radius of 3mm. On the top face of each tile, engrave a geometric pattern to a depth of 2mm. The patterns are based on a star shape formed by the union of a f...
TILE_WIDTH = 37; TILE_HEIGHT = 24; TILE_DEPTH = 16; CORNER_RADIUS = 3; STAMP_DEPTH = 2; tile_set() circle(2*TILE_HEIGHT/3); module star(radius) { angle = 72; union() { polygon( points = [for (i = [0 : 4]) [radius * cos(3 * i * angle), radius * sin(3 * i * angle)] ] ); golden_ratio = (1 + sqrt(5)...
glb/cad_0871e2098824.glb
Create a tentacle model by constructing a hollow rectangular chamber. Start with a main outer body that is 22mm wide and 20mm in radius. Within this structure, create a central cavity by subtracting a smaller internal volume, leaving a sidewall thickness of 1mm and a top wall thickness of 2.1mm. To define the internal...
module closed_chamber_top(w=22, r=20, sidewall=1,topwall=2.1, air_channel=2, overhang=1) { translate([0,0, topwall+1]){ union(){ rotate([-90,0,0]) difference(){ union(){ difference() { union(){ cylinder(h=w, r=r, center=false)...
glb/cad_bb7861173ac0.glb
Create a rectangular panel with dimensions 136mm by 182mm and a thickness of 1mm. Remove four circular holes with a radius of 2mm, centered at the four corners of the panel. These holes should be positioned at coordinates (±63, ±86) relative to the center of the panel. Additionally, create a grid of circular holes, ...
difference () { cube ([136, 182, 1], center=true); union () { translate ([63, 86, 0]) { cylinder (h=10, r=2, center=true); } translate ([63, -86, 0]) { cylinder (h=10, r=2, center=true); } translate ([-63, -86, 0]) { cylinder (h=10, r=2, center=true); } translate ([-63,...
glb/cad_d302814dd17e.glb
Create a hollow cylindrical panel by constructing a large cylinder with a height of 15mm and a radius of 4mm, then remove a smaller concentric cylinder from its center with a height of 20mm and a radius of 3mm. Ensure both cylinders are centered on the same axis so that the resulting shape is a tube with a wall thickne...
difference () { cylinder (h=15, r=4, center=true); cylinder (h=20, r=3, center=true); }
glb/cad_0bb3903e7f25.glb
Create a phoniebox-case with a rectangular footprint. The main enclosure is formed by a bottom plate of 162mm depth and a width of 156mm (calculated from the internal speaker width of 138mm plus two 13mm outer walls). Add two side walls, each 13mm thick and 162mm deep, with a height of 90mm. Include a rear wall 13mm th...
use <raspberrypi.scad>; w_wall = 13; w_wall_out = 18; w_wall_in = 4; w_speaker = 68.5; rfid_reader_w = 105; rfid_reader_d = 70; rfid_reader_h = 14; w_pi_chamber = 55; w_speakers = 2*w_speaker + 2*.5; w_in = w_speakers + w_wall + w_wall_in + w_pi_chamber; h_in = w_speaker + rfid_reader_h + 7.5; d_in = 162; color("Ye...
glb/cad_1c4d4c009fcf.glb
Create a handheld portable system base by designing a rectangular plate with rounded corners. The plate should be 56mm wide, 65mm long, and 1.5mm thick. The corners must be rounded with a radius of 3mm. At each of the four corners, centered 3.5mm from the side edges, create a circular hole with a diameter of 2.75mm t...
use <util.scad>; width=56; length=65; pcb_height=1.5; module pi_holes() { $fn=32; translate([3.5,3.5]) circle(d=2.75); translate([width - 3.5,3.5]) circle(d=2.75); translate([3.5,length - 3.5]) circle(d=2.75); translate([width - 3.5,length - 3.5]) circle(d=2.75); } module pi_3_a_plus() { $fn=32; color(...
glb/cad_7e0ca8f67513.glb
Create a handheld powerboost board mount. Start by creating a rectangular base plate 22.86mm wide and 36.2mm long with a thickness of 1.5mm. The corners of this plate should be rounded with a radius of 2mm. On the top surface of this plate, place four mounting holes. Position two holes 2.75mm from the bottom and side...
use <util.scad>; module powerboost() { $fn=32; width=22.86; length=36.2; pcb_height = 1.5; color("blue") translate([0,0,-pcb_height]) linear_extrude(pcb_height) difference() { hull() { translate([2,2]) circle(r=2); translate([wid...
glb/cad_c55465b85a1e.glb