Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a PCB harness for a board with a length of 39.5mm and a width of 80.25mm. Start by creating a base plate 3mm thick. The base should have a total width of 86.25mm (the board width plus two 3mm walls minus a 1.3mm groove clearance). Cut four rectangular openings into this base, leaving a 3mm border around the ed...
use <Library-Shapes.scad> pcbholder( length = 39.5, width = 80.25, bottomclearance= 4, pcbthickness=1.25, slotdepth=2, grooveclearance=1.3); module pcbholdersingleholestencil(length, width, basethickness, wallthickness, holeradius) { radius = 7.22/2; borderwidth = wallthickness; rectwidth = width/2.0 - borderwidth...
glb/cad_99b0adf0108d.glb
Create a Craftsman mower bracket by starting with a central rectangular base measuring 100mm in length, 17mm in width, and 6mm in height, centered on the X-axis. Attach two rectangular blocks to the bottom of this base: one measuring 40mm by 32mm by 20mm positioned at X-20, and another measuring 10mm by 32mm by 20mm po...
module clamp() { difference() { union() { translate([-15,0,0]) cube([100,17,6],center=true); translate([-20,-16,-3]) cube([40,32,20]); translate([-61,-16,-3]) cube([10,32,20]); } union() { translate([-75,0,11]) rotate([0,90,0]) cylinder(r=11.5,h=110, $fn=40); translate([-55,0,-7.5]) cyli...
glb/cad_b4edf6495c85.glb
Create a Prusa Trapped Nut Y-belt Clamp by starting with a rectangular block measuring 30mm in length, 10mm in width, and 6mm in height. From this main body, remove two hexagonal holes to accommodate trapped M3 nuts. Each hexagonal hole should have a diameter of 5mm and a depth of 9mm. Position the first hexagonal hole...
include <configuration.scad> module beltclamp(){ difference(){ translate(v=[-2,0,-2]) cube([30,10,6]); translate(v = [4, 5, 0]){ cylinder(h=10, r=m3_diameter/2, $fn=9, center=true); translate(v = [18, 0, 0]) cylinder(h=10, r=m3_diameter/2, $fn=9, center=true); }} } difference() { beltclamp(); translate(v=[4,5,5]) ...
glb/cad_dd378bb43ee5.glb
Create a 3D model by combining several rectangular prisms. Start with a central base plate measuring 130mm by 26mm by 8mm, centered at the origin. Add a second rectangular block measuring 130mm by 8mm by 16mm, centered at [0, -16, 4]. Position a third block of 60mm by 40mm by 8mm centered at [0, 28, 0]. Place two verti...
union(){ translate([0, 0, 0]) cube([130, 26, 8], center = true); translate([0, -16, 4]) cube([130, 8, 16], center = true); translate([0, 28, 0]) cube([60, 40, 8], center = true); translate([11, 40, 0]) cube([8, 8, 58]); translate([-19, 40, 0]) cube([8, 8, 58]); translate([-65, 11, 0]) rotate([58, 0, 0...
glb/cad_04a1438d17cb.glb
Create a light bracket for a Rostock Max printer. Start with a flat ring that has an outer radius of 31mm, an inner radius of 21mm, and a thickness of 1.5mm. Add three rectangular tabs extending outward from the ring, spaced 120 degrees apart. Each tab should be 8mm deep and 50mm long, positioned so they start from t...
outside_radius = 31; inside_radius = 21; thickness = 1.5; screw_radius = 3; led_length = 50; led_depth = 8; smooth = 180; rotate([180,0,0]) difference() { union() { cylinder(thickness, outside_radius, outside_radius, $fn=smooth); rotate([0,0,0]) { translate([inside_radius-2.5, -led_length/2,0]) cube(si...
glb/cad_84b83365d0ca.glb
Create a Bottle Coozie holder consisting of a main cylindrical body and a handle. For the body, create a hollow cylinder with an outer radius of 34mm and a height of 155mm. The interior should be a tapered void starting with a radius of 32.5mm at the bottom and narrowing slightly to 32.25mm at the top. Add a solid base...
$fn= 65; cylinder(r=65/2+1.5, h=2.5); difference(){ union(){ cylinder(r=65/2+1.5, h=120); translate([0, 0,95]) cylinder(r=65/2+2.5, h=25); translate([0, 0, 0]) cylinder(r=65/2+2.5, h=25); } cylinder(r1=65/2, r2=64.5/2, h=155); translate([40, 0, 100]) cube([50, 5, 151], center = true); } diffe...
glb/cad_3cfc45c597b8.glb
Create a ZMR250 Lipo Battery Mount. Start with a base mount formed by a 2D polygon extruded to a height of 24mm. The polygon's vertices are [0, 23], [0, -23], [47, -19.75], and [47, 19.75]. Enclose the rear of this shape with a rectangular block measuring 58mm by 46mm with a height of 24mm. Carve out a central battery...
include_strap_tab="Yes"; battery_height=21; battery_width=35; $fn=30; frame_width_max=46; frame_width_min=39.5; module battery(){ translate([-56,-battery_width/2,1.5]){ cube([103.01,battery_width,battery_height]); } } module base_mount(){ linear_extrude(height=battery_height+3) polygon(po...
glb/cad_1128182e51d4.glb
Create an ESPRAP Y carriage NEMA17 Mount. The object is a mirrored pair of brackets joined together. Each bracket is based on a frame with a total width of 52mm and a wall thickness of 5mm. Construct the main body as an L-shaped bracket with a base and a vertical face. The vertical face is 52mm wide and 52mm high. On ...
union(){ nema_17_mount(); translate([0, 5, 0]) mirror([ 0, 1, 0 ]) nema_17_mount(); difference(){ translate([-27,-16,0]) cube([22,16,1]); translate([-11,-27,-1]) rotate ([0,0,45]) cube([23,16,4]); } } module nema_17_mount() { $fs = 0.1; wall_thickness = 5; motor_width = 42; frame_width = motor_width + (wall_thick...
glb/cad_2b2c9f456700.glb
Create a laptop hard drive adapter spacer by constructing a thin, rectangular hollow frame with an outer dimension of 69.9mm in width and 93.29mm in length. The frame should have a uniform height of 2.6mm and a wall thickness of 3mm. To form the hollow center, remove a rectangular section from the middle measuring 63.9...
length = 93.29; width = 69.9; height = 2.6; thickness = 3; tab_length = 75.37; tab_height = 5.6; tab_thickness = 0.1; tiny_value = 0.01; translate([tab_thickness, 0, 0]) difference() { cube([width, length, height]); translate([thickness/2,thickness/2, -tiny_value]) cube([width-thickness...
glb/cad_a373ba82dace.glb
Create an E61 Espresso Tamp Stand by constructing a hollow cylindrical tube with an outer diameter of 87mm, an inner diameter of 73mm, and a total height of 87mm. The walls should be 12mm thick. Apply a 5mm rounding fillet to the bottom edge and the interior transition where the wall meets the base. At the bottom of t...
keyHeight = 22; keyWidth = 21; tampHeight = 3; tampDiameter = 59; thickness = 12; innerHeight = 75; innerDiameter = 73; outerDiameter = innerDiameter + thickness*2; outerHeight = innerHeight + thickness; rounding = 5; $fn = 100; pad = 0.1; difference() { tube(outerHeight, outerDiameter/2, thickness, roundin...
glb/cad_b5c23fe51840.glb
Create a Tic-tac-toe board by starting with a centered cube measuring 75mm x 75mm x 6mm. Carve out a central square area of 68mm x 68mm with a depth of 2mm. Within this area, create a 3x3 grid of nine square pockets by removing smaller cubes. Each pocket should be separated by walls 4mm wide, leaving a remaining base t...
draw_board = true; draw_x_and_os = true; DimX=75; DimY=75; DimZ=6; BigH=2; SmallH=2; BigW=68; BorderW=4; Width= 18; Thick=5; Height=4; Spacing=24; module tictactoeBase(DimX, DimY,DimZ, BigH, SmallH,BigW, BorderW ) { PocketWidth = (BigW-(2*BorderW) ) / 3; difference() { cube([DimX,DimY,DimZ], center = true); ...
glb/cad_ebc0e28d35d0.glb
Create a Memory Stick Travel Vault consisting of two stacked rectangular sections. Start by constructing a solid rectangular base measuring 61.75mm in width, 32.01mm in depth, and 30mm in height. From this base, remove a central rectangular volume to create a hollow cavity measuring 55.75mm in width, 26.01mm in depth, ...
union() { difference() { translate([0,0,0])rotate([0,0,0])cube([55.75,26.01,55]); translate([2,2.5,3])rotate([0,0,0])cube([52,22,58]); } difference() { translate([-3,-3,0])rotate([0,0,0])cube([61.75,32.01,30]); translate([0,0,0])rotate([0,0,0])cube([55.75,26.01,30]); } }
glb/cad_8af08cf6ca3e.glb
Create a Memory Stick Travel Vault consisting of two stacked rectangular sections. For the bottom half, create a solid block measuring 55.75mm in width, 26.01mm in depth, and 55mm in height. Carve out the interior of this block to create a hollow storage space, leaving walls of varying thickness; specifically, remove a...
union() { difference() { translate([0,0,0])rotate([0,0,0])cube([55.75,26.01,55]); translate([4.5,6.5,3])rotate([0,0,0])cube([6,14,14.1]); translate([1.5,2.5,17.0])rotate([0,0,0])cube([12,22,58]); translate([18,6.5,3])rotate([0,0,0])cube([6,14,14.1]); translate([15,2.5,17.0])rotate([0,0,0])cube([12,22,58]); tr...
glb/cad_7ae064c0e93c.glb
Create a Delta-Pi vibration dampener and belt lock set consisting of two distinct geometric components, both with a height of 9mm and a 16-facet resolution for all curved surfaces. First, create the belt lock by forming a hull between two cylinders: one with a radius of 2.0mm and another with a radius of 0.3mm positi...
$fn=16; module lock() { hull() { cylinder(r=2.0, h=9); translate([3.7,0,0]) cylinder(r=0.3, h=9); } } module hook() { difference() { hull() { cylinder(r=3.5, h=9); translate([4,0,0]) cylinder(r=3.5, h=9); } hull() { cylinder(r=1.5, h=9); translate([4,0,0]) cylinder(r=...
glb/cad_ac4f7df4c4e8.glb
Create a DJI GPS Holder by starting with a main cylinder that has a radius of 26.5mm and a height of 16mm. Hollow out the center of this cylinder by removing a smaller cylinder with a radius of 23.5mm and a height of 16mm, starting from a height of 5mm, which leaves a base thickness of 5mm. In the center of the base, c...
$fn=200; WallThickness=3; difference() { cylinder(h=16, r=23.5+WallThickness); translate([0,0,5]) { cylinder(h=16, r=23.5); } cylinder(h=2, r=2.125); translate([0,0,1.75]) { cylinder(h=4, r=3.5); } translate([10,0,10]) { rotate([0,90,0]) { cylinder(h=24, r=5); } } tran...
glb/cad_0c86db8b9f7a.glb
Create a DJI GPS Holder consisting of three separate components. First, create a main vertical cylinder 60mm tall with a radius of 7mm. Remove a 2mm radius hole from the center that extends from the bottom up to 38mm, and continue that 2mm hole from 38mm to 60mm. At the very top of this cylinder, create a hexagonal cut...
$fn=200; difference() { cylinder(h=60, r=7); cylinder(h=25, r=2); translate([0,0,38]) { cylinder(h=25, r=2); } translate([0,0,57.25]) { cylinder(h=2.75, r=5, $fn=6); } } translate([0,30,0]) { difference() { cylinder(h=6, r=9); cylinder(h=6, r=2); translate([0,0,2]) { ...
glb/cad_d79629786033.glb
Create a DJI GPS Holder and Protector consisting of three distinct aligned components. First, create a central main cylinder 60mm tall with a radius of 7mm. Remove a 2mm radius hole from the bottom extending up to 25mm, and another 2mm radius hole from 38mm up to 60mm. At the very top face, center a hexagonal cutout wi...
$fn=200; difference() { cylinder(h=60, r=7); cylinder(h=25, r=2); translate([0,0,38]) { cylinder(h=25, r=2); } translate([0,0,57.25]) { cylinder(h=2.75, r=3.5, $fn=6); } } translate([0,30,0]) { difference() { cylinder(h=6, r=9); cylinder(h=6, r=2); translate([0,0,2]) { ...
glb/cad_05bea257e2b7.glb
Create an arm for an adjustable spool holder with a total thickness of 5mm. Start with a central rectangular block 20mm wide and 55mm long. Cap one end of the rectangle with a semi-cylinder of radius 10mm and height 5mm to create a rounded tip. On the opposite end, add a trapezoidal tab that extends from the base; this...
hole_r=5.2; main_z=5; arm_x=20; arm_y=55; hole_d=15; tab_major=5.6; tab_minor=3; tab_y=-4.3; module arm_rect() { cube([arm_x, arm_y, main_z], center=true); } module arm_top() { cylinder (r=arm_x/2, h=main_z); } module tab() { linear_extrude (height=main_z) { polygon (poi...
glb/cad_e921e9abd0a6.glb
Create a Rostock rod with jaws by constructing a central hexagonal prism and two identical end caps. The main body is a hexagonal rod with a total length of 250mm and a height of 7mm. The cross-section of this rod is a regular hexagon with a radius of 3.5mm. At each end of the rod, create a jaw. Each jaw is formed by ...
rod_len = 250; rod_h = 7; h = 7; r = h/2 / cos(30); rod_r = rod_h/2 / cos(30); module stumpy() { rotate([0, 90]) rotate([0, 0, 30]) intersection() { cylinder(r=r, h=8, center=true, $fn=6); sphere(r=5.1, $fn=24); } } module middle() { difference() { union() { translate([-2, 0, 0]) stumpy(); translate(...
glb/cad_0ac24354263f.glb
Create a customisable tube rack consisting of a flat rectangular base plate with a thickness of 2mm. The base plate should feature a grid of circular holes for holding laboratory tubes. Based on the specified configuration, create two rows of holes. The first row should contain eight holes with a diameter of 11mm, and ...
rt=2; xw=0.4; tDias=[11,6.5]; tHeights=[40,20]; tSeps=[4,1]; tIDs=[[0,0,0,0], [1,1,1,1,1,1,1,1], [1,1,1,1,1,1,1,1]]; module addTubes(tubeIDs, row, aPosX=0, xPos=0){ if(aPosX < len(tubeIDs[row])){ assign(tr = tDias[tubeIDs[row][aPosX]]/2, th=tHeights[tubeIDs[row][aPosX]], sep=tSeps[tubeIDs[row...
glb/cad_a15889d81832.glb
Create a customisable tube rack consisting of a flat rectangular base with a thickness of 2mm. The base should feature two rows of circular holes to hold laboratory tubes. The first row contains 8 holes with a diameter of 11mm, and the second row contains 8 holes with a diameter of 6mm. Ensure a separation distance of ...
rt=2; xw=0.4; tDias=[11,6]; tHeights=[40,20]; tSeps=[4,1.5]; tIDs=[[0,0,0,0], [1,1,1,1,1,1,1,1], [1,1,1,1,1,1,1,1]]; module addTubes(tubeIDs, row, aPosX=0, xPos=0){ if(aPosX < len(tubeIDs[row])){ assign(tr = tDias[tubeIDs[row][aPosX]]/2, th=tHeights[tubeIDs[row][aPosX]], sep=tSeps[tubeIDs[row...
glb/cad_2d704a98edd1.glb
Create a Customisable Tube Rack designed to hold laboratory tubes. Start with a flat rectangular base plate that is 4mm thick. On this base, create a grid of vertical cylindrical holders. For the first row, create 6 holes with a diameter of 11mm and a height of 40mm. For the second row, create 6 holes with a diameter...
rt=4; xw=0.4; sw=1; sf=1/1.4; tDias=[11,6]; tHeights=[40,20]; tSeps=[5.5,1.5]; tIDs=[[0,0,0,0,0,0], [0,0,0,0,0,0], [0,0,0,0,0,0], [0,0,0,0,0,0]]; module addTubes(tubeIDs, row, aPosX=0, xPos=0){ if(aPosX < len(tubeIDs[row])){ assign(tr = tDias[tubeIDs[row][aPosX]]/2, th=tHeights[tubeIDs[row]...
glb/cad_fe2e8bf3f7e6.glb
Create a customisable tube rack consisting of a rectangular base with a hollowed-out center and a series of vertical cylindrical supports. The outer walls and the bottom floor of the rack have a thickness of 4mm. The rack contains a grid of holes designed to hold laboratory tubes of two different sizes. For the first...
rt=4; xw=0.4; sw=1; sf=1/1.7; tDias=[11,6]; tHeights=[40,20]; tSeps=[5.5,1.5]; tIDs=[[0,0,0,0,0,0], [0,0,0,0,0,0], [0,0,0,0,0,0], [0,0,0,0,0,0]]; module addTubes(tubeIDs, row, aPosX=0, xPos=0){ if(aPosX < len(tubeIDs[row])){ assign(tr = tDias[tubeIDs[row][aPosX]]/2, th=tHeights[tubeIDs[row]...
glb/cad_457ad8a8c5a7.glb
Create an endstop clamp consisting of a circular mounting ring and a rectangular base. Start by creating a cylinder with an outer diameter of 13mm and an inner diameter of 8mm, both with a height of 8mm. Cut a gap into this cylinder to create an opening, removing a section centered on the X-axis with a width of approxi...
X = 0; Y = 1; Z = 2; rod_diam = 8; clamp_diam = rod_diam + 5; open_angle = 80; width = 8; base_lx = 6.5; base_ly = 4; base_lz = width; zip_tie_holes = [clamp_diam, 1.5, 3]; open_x = 2*(rod_diam/2)*sin(open_angle/2); module Prusa_clamp() { union() { difference() { cylinder(r=clamp_diam/2, h=width); ...
glb/cad_02e6997455f4.glb
Create a CoreXY printer E3D mounting clamp. Start with a central rectangular block measuring 30mm wide, 13mm deep, and 15mm high, centered at [0, -6.5, -7.5]. From this block, remove a series of concentric coaxial cylinders along the Z-axis: a 16mm diameter cylinder with a height of 3mm, a 12mm diameter cylinder with a...
buildClamp(); module buildClamp(){ difference(){ translate([0,-6.5,-7.5]){ cube([30,13,15],center=true); }; translate([0,0,-13.5]){ cylinder(d=16,h=3,$fn=100,center=true); }; translate([0,0,-9]){ cylinder(d=12,h=6,$fn=100,center=true); ...
glb/cad_9e2b8dad6a23.glb
Create a CoreXY printer corner bracket. Start with a solid base composed of three intersecting rectangular blocks: one measuring 33.4mm x 33.4mm x 29.4mm at the origin, one measuring 33.4mm x 33.4mm x 50.8mm positioned at [0, 0, 29.4], one measuring 50.8mm x 33.4mm x 29.4mm positioned at [33.4, 0, 0], and one measuring...
corner3(); module corner3(){ cube([33.4,33.4,29.4]); difference(){ union(){ translate([0,0,29.4]){ cube([33.4,33.4,50.8]); } translate([33.4,0,0]){ cube([50.8,33.4,29.4]); } translate([0,33.4,0]){ ...
glb/cad_dfbc13816b70.glb
Create a GT2 2mm pulley for a CoreXY printer. Start with a central cylindrical hole 5mm in diameter for the motor shaft that extends through the entire height of the object. Build the main body as a cylinder with an outer diameter of 11.88mm and a height of 6mm. Around the exterior of this cylinder, add 50 teeth with ...
idler1(); module idler1(){ teeth = 50; profile = 12; motor_shaft = 22; m3_dia = 3.2; m3_nut_hex = 1; m3_nut_flats = 5.7; m3_nut_depth = 1.5; retainer = 1; retainer_ht = 1.5; idler = 1; idler_ht = 1.5; pulley_t_ht = 6; pulley_b_ht = 1.5; pulley_b_dia = 50; no_of_nuts = 1; nut_angle = 90; nut_shaft_distance = 1.2; a...
glb/cad_8d3a7ead6188.glb
Create a CoreXY printer corner bracket. Start with a base block measuring 33.4mm x 33.4mm x 29.4mm. Attach a block of 50.8mm x 33.4mm x 29.4mm to the side, and another block of 33.4mm x 54mm x 29.4mm to the top. Add a rectangular section measuring 42.3mm x 54mm x 4mm to the side. Incorporate a conical protrusion with a...
corner2(); module triangle(){ polyhedron(points=[[0,4,0],[-42.3,4,25.4],[0,4,25.4],[0,0,0],[-42.3,0,25.4],[0,0,25.4]],faces=[[2,1,0],[3,4,5],[0,1,3],[3,1,4],[2,3,5],[1,2,5],[5,4,1],[2,0,3]]); } module corner2(){ cube([33.4,33.4,29.4]); difference(){ union(){ translate([0,0,29.4]){ ...
glb/cad_cbf2eb12a942.glb
Create a CoreXY printer carriage end consisting of a central base and bearing supports. Start with a rectangular base measuring 80mm by 60mm by 5mm, centered on the X and Y axes and elevated 2.5mm. On top of this base, centered at X=0, Y=5, add a rectangular block measuring 35mm by 20mm by 20mm. Above that block, place...
buildEnd(); module buildEnd(){ difference(){ base(); translate([0,5,18.25]){ cylinder(d=8,h=36.5,$fn=100,center=true); } translate([-5,-25,3.25]){ rotate([90,0,0]){ cylinder(d=2.5,h=10,center=true,$fn=100); } } tran...
glb/cad_8ae345a9bdb6.glb
Create a CoreXY printer corner bracket. Start with a central vertical block that is 33.4mm wide, 33.4mm deep, and 29.4mm tall. Attach a vertical rectangular extension to the top of this block that is 33.4mm by 33.4mm and 50.8mm tall. Add a horizontal rectangular arm extending from the side that is 50.8mm long, 33.4mm w...
corner4(); module triangle(){ polyhedron(points=[[0,-4,4],[-42.3,-4,4],[0,-4,29.4],[0,0,4],[-42.3,0,4],[0,0,29.4]],faces=[[0,1,2],[5,4,3],[1,5,2],[1,4,5],[3,1,0],[3,4,1],[0,2,5],[3,0,5]]); } module corner4(){ cube([33.4,33.4,29.4]); difference(){ union(){ translate([0,0,29.4]){ ...
glb/cad_f25f6a11aa29.glb
Create a CoreXY printer frame assembly. Position four corner brackets at the corners of a rectangular layout. Place the first corner at [250, -219.4, 34.2] rotated 90 degrees, the second at [-283.4, -219.4, 34.2] rotated 90 degrees, the third at [-283.4, 219.4, 34.2] rotated -90 degrees, and the fourth at [-250, 219.4,...
use<CoreXY-end.scad> use<CoreXY-E3D-clamp.scad>; include<CoreXY-carriage.scad>; use<CoreXY-corner1.scad>; use<CoreXY-corner2.scad>; use<CoreXY-corner3.scad>; use<CoreXY-corner4.scad>; use<utl.NEMA.scad>; use<Pulley.scad>; use<Idler.scad>; use<spacers.scad>; translate([250,-219.4,34.2]){ rotate([180,0,90]){ ...
glb/cad_e33c765a3cb9.glb
Create a CoreXY printer joint by constructing three intersecting rectangular prisms. First, create a central cube with a side length of 25.4mm. From this central volume, remove a thin rectangular slot measuring 25.4mm by 25.4mm with a thickness of 3.175mm, centered and aligned horizontally. Then, add three larger recta...
tubeSize=25.4; wallThickness=3.175; difference(){ cube(tubeSize,center=true); translate([0,0,-tubeSize/2+wallThickness/2]){ cube([tubeSize,tubeSize,wallThickness],center=true); } } difference(){ union(){ translate([tubeSize*1.5,0,0]){ cube([tubeSize*2,tubeSize-wallThickness...
glb/cad_9961d80650cc.glb
Create a GT2 2mm pulley for a CoreXY printer. Start with a central cylindrical hole 5.2mm in diameter that runs through the entire height of the object. Build a base cylinder with a diameter of 15mm and a height of 8mm. Centered within this base, create a captive nut trap: a hexagonal hole with flats of 5.7mm and a de...
pulley1(); module pulley1(){ teeth = 20; profile = 12; motor_shaft = 5.2; m3_dia = 3.2; m3_nut_hex = 1; m3_nut_flats = 5.7; m3_nut_depth = 1.5; retainer = 1; retainer_ht = 1.5; idler = 0; idler_ht = 1.5; pulley_t_ht = 6; pulley_b_ht = 8; pulley_b_dia = 15; no_of_nuts = 1; nut_angle = 90; nut_shaft_distance = 1.2; ...
glb/cad_99c3cf80abc2.glb
Create a CoreXY printer carriage. Start with a central base consisting of a 60x80x5mm rectangular slab centered at the origin, with two 20x35x20mm blocks attached to the left and right sides and a 30x13x15mm block centered at the bottom. At the top and bottom of the main body, centered at Y=27.5 and Y=-27.5, place tw...
difference(){ base(); translate([20,0,0]){ cylinder(d=5,h=61,$fn=100,center=true); }; translate([-20,0,0]){ cylinder(d=5,h=61,$fn=100,center=true); }; translate([0,0,-13.5]){ cylinder(d=16,h=3,$fn=100,center=true); }; translate([0,0,-9]){ cylinder(d=12,h=6...
glb/cad_a08708c9ba1a.glb
Create a CoreXY printer corner bracket. Start with a central vertical rectangular block measuring 33.4mm by 33.4mm with a height of 29.4mm. Attach a rectangular block of 50.8mm by 33.4mm by 29.4mm to the side, and another block of 33.4mm by 54mm by 29.4mm to the opposite side. Add a flat plate measuring 42.3mm by 54mm ...
corner1(); module triangle(){ polyhedron(points=[[0,-4,4],[-42.3,-4,4],[0,-4,29.4],[0,0,4],[-42.3,0,4],[0,0,29.4]],faces=[[0,1,2],[5,4,3],[1,5,2],[1,4,5],[3,1,0],[3,4,1],[0,2,5],[3,0,5]]); } module corner1(){ cube([33.4,33.4,29.4]); difference(){ union(){ translate([0,0,29.4]){ ...
glb/cad_e58d918d9549.glb
Create a Nema stepper motor mount starting with a square base plate measuring 56.2mm by 56.2mm with a thickness of 5mm. Centered on this plate, create a circular cutout with a radius of 19.2mm that passes completely through the thickness. Position four screw holes with a radius of 2.6mm, arranged symmetrically in a squ...
ThicknessStepper = 5; WidthStepper = 56.2; ScrewsStepper = 47.1; HeightFoot = 25; Stepper=1; $fn=72; difference(){ union(){ translate([WidthStepper/-2, WidthStepper/-2,0]) cube([WidthStepper,WidthStepper,ThicknessStepper]); translate([WidthStepper/2, WidthStepper/-2,0]) cube([5,WidthStepper,HeightFoot]); ...
glb/cad_ef889ba4ab5b.glb
Create a laptop privacy clip designed as a slim, U-shaped sleeve. The overall outer dimensions are 81mm in width, 26mm in depth, and 75mm in height. The walls of the clip are 3mm thick with a corner rounding radius of 2mm. To form the internal slot, remove a central rectangular volume from the body that is 7.5mm wide...
lid_thickness=7.5; bezel_thickness=23; clip_width = 75; clip_wall_thickness=3; clip_rounding = 2; blinder(lid_thickness, bezel_thickness+clip_wall_thickness, clip_width, clip_wall_thickness, clip_rounding); module rounded_block(xx,yy,zz,rad) { translate([rad,rad,0]) minkowski() ...
glb/cad_78ca08044c42.glb
Create a cable mount clip consisting of a flat rectangular base and a semi-cylindrical retaining clip. The base is a plate 2mm thick, 8mm wide, and 28mm long. Center two 4.4mm diameter holes through the base, positioned 5mm from the ends. Attached to the center of the base is a clip designed to hold a sleeve. The clip...
carriageThing (); width = 8; plateThickness = 2; plate_hole_spacing = 35; carriage_hole_spacing = 18; clipHeight = 4; clipSlotWidth = 7; sleeveODMax = 13/32 *25.4; sleevePitch = 2.7; fudge = 0.9; sleeveGroove = 0.9 * fudge; sleeveODMin = sleeveODMax-1; height = carriage_hole_spacing+10; module stuff () { plateThin...
glb/cad_d39969c0b1ba.glb
Create a Cable Mount Clip consisting of a flat base plate and a cylindrical retaining clip. Start with a rectangular base plate 2mm thick, 8mm wide, and approximately 28mm long. At one end of the base, construct a cylindrical clip body with an outer diameter of 13.65mm and a height of 12.5mm. This clip is hollowed ou...
plateThing(); width = 8; plateThickness = 2; plate_hole_spacing = 31; carriage_hole_spacing = 18; clipHeight = 5; clipSlotWidth = 7; sleeveODMax = 13/32 * 25.4; sleevePitch = 2.7; fudge = 0.9; sleeveGroove = 0.9 * fudge; sleeveODMin = sleeveODMax-1; height = carriage_hole_spacing+10; module stuff () { plateThing()...
glb/cad_28161c88cd64.glb
Create an Arduino Uno Mount for an Egg Bot by constructing a central rectangular base plate measuring 70mm in length, 18mm in width, and 4mm in height. At each end of this plate, add a cylinder with a radius of 8mm and a height of 44mm, oriented horizontally along the length of the plate. Within these cylinders, create...
module uno_mount(){ difference(){ union(){ rotate([90,0,0]) translate([-17,8,2]) cylinder(r=16/2,h=44); rotate([90,0,0]) translate([67,8,2]) cylinder(r=16/2,h=44); translate([-17,-24,4.5]) cube([16,44,9],center=true); translate([67,-24,4.5]) cube([16,44,9],center=true); translate([-10,-20,0]) cube([70,18,4]); transla...
glb/cad_2dc25bd682b6.glb
Create a direct drive adapter for a 28BYJ-48 stepper motor. Start with a main cylindrical body with a radius of 13.25mm and a height of 9mm. Centered within this body, create a vertical hole with a radius of 4.5mm that passes through the entire height to provide shaft clearance. Above this hole, create a tighter concen...
mount = 1; bearing_od = 10; depth = 7; difference() { union() { cylinder(r=13.25, h=depth+2, $fn=64); if(mount == 1) { translate([-3.5,-18,0]) cube([7,36,2]); translate([0,18,0]) cylinder(r=3.5, h=2, $fn=32); translate([0,-18,0]) cylinder(r=3.5, h=2, $fn=32); } if(mount == 2) { translate([-3.5...
glb/cad_b309b59054f8.glb
Create a filament spindle consisting of a central cylindrical core and a wide outer flange. Start with a central cylinder that has a diameter of 26mm and a height of 20mm. Around this core, create a conical transition that flares out to a maximum diameter of 70mm over the same 20mm height. At the base of the spindle, a...
min_diameter=26; max_diameter=70; spindle_width=20; collar_width=5; rod_diameter=spindle_width-2; $fn=50; include <MCAD/bearing.scad>; module base(){ union(){ difference(){ union(){ rotate([0,0,0])translate([max_diameter/2,0,0])cube([max_diameter/1.5,0.5*min_diameter,collar_width],center=true); rota...
glb/cad_91fb18713184.glb
Create a barbell model consisting of a central bar and two spherical weights. Start by creating a cylinder for the bar with a diameter of 12.5mm and a total length of 200mm, centered at the origin and aligned along the x-axis. Place two spheres, each with a diameter of 50mm, at opposite ends of the bar. Position the ce...
$fn=100; Barbells(100,4,.25); module Bar(size=50, len=4, thick=.25) { color("green") rotate([0,90,0]) cylinder(d=size*thick, h=size*len, center=true); } module Bell(size=50, len=4, thick=.25) { difference() { sphere(d=size); Bar(size,len, thick); } ...
glb/cad_f7e7b1cbf7fa.glb
Create a milk carton breather by constructing a hollow cone with a height of 40mm and a base radius of 7.5mm, tapering to a point at the top. The walls of the cone must be 2mm thick. To create the air vent, pierce a circular hole with a radius of 2mm through the side of the cone. This hole should be positioned horizont...
$fn = 200; cone = [ 40, 7.5, 2.0, 0.45, 2.0 ]; module cone(i){ if (i == 1){ cylinder(h = cone[0], r1 = cone[1], r2 = 0); } if (i == 2){ cylinder(h = cone[0] - cone[2], r1 = cone[1] - cone[2], r2 = 0)...
glb/cad_337fa8b38366.glb
Create a Novena vertical mounting plate bracket. Start by constructing a base plate that is 34mm long, 6mm wide, and 5mm high. The top edges of this base should be rounded with a 2mm radius. Cut a rectangular slot through the center of the base that is 28mm long, 0.5mm wide, and 20mm deep, leaving a 4mm margin from the...
length = 2; module peek(coord_list, flange_h=3, flange_r=5) { for (coord = coord_list) { translate([coord[0]*30,coord[1]*30,0]) { difference() { cylinder(r=flange_r, h=flange_h); cylinder(r=2.5/2, h=20, center=true); } ...
glb/cad_455fea3f5b2a.glb
Create an Open Hardware Logo coin with a total diameter of 25.4mm and a total height of 20mm. Start by creating a base cylinder with a radius of 12.7mm and a height of 20mm. Subtract a smaller concentric cylinder from the top, leaving a wall thickness of 8mm, which creates a hollowed-out center with a depth of 12mm. ...
render_part=4; module gear_tooth_2d(scale=1.0) { scale([scale,scale]) polygon( points=[ [0,25.0], [90.0,12.0], [90.0,-12.0], [0,-25.0] ] , paths=[ [0,1,2,3] ] ); } if(render_part==1) { echo("Rendering gear_tooth_2d()..."); gear_tooth_2d(); } module oshw_logo_2d(scale=1.0) { scale([scale,scale]) r...
glb/cad_56a4dddc2234.glb
Create an Enlarged Rostock Carriage designed for 12mm smooth rods and KB-12-WW linear bearings. The main body is a central block 60mm wide and 76mm long. At each end of the width, create a cylindrical housing for the linear bearings with an outer radius of 15mm (22mm diameter plus 4mm wall thickness) and a height tha...
include <configuration.scad> use <linear_bearing.scad> H = carriage_height; W = 60; d = 22; th = 4; width = 76; offset = 25; cutout = 13; middle = 2*offset - width/2; module conical_groove(d1, d2, w) { difference() { translate([0, 0, -w ]) cylinder(r =d1/2+0.1, h=w*2, center=true); translate([0, ...
glb/cad_96ab52c23539.glb
Create a key handle by starting with a central rectangular block measuring 30mm wide, 26mm high, and 6.3mm thick, centered on the origin. Add two cylindrical caps with a radius of 3.15mm, each centered on the left and right sides of the block and oriented along the Y-axis, to create rounded ends. Integrate a larger cyl...
key_handle_width = 26; key_handle_height = 22; key_thickness = 2.3; center_to_hole = 5; hole_diameter = 6; side_thickness = 4; ring_height = 0.5; ring_width = 2; face_number = 100; hw = key_handle_width / 2; hh = key_handle_height / 2; ht = key_thickness / 2; hr = hole_diameter / 2; hst = side_thickness / 2; rh = sid...
glb/cad_7e0d597309fb.glb
Create a small rectangular enclosure for a Raspberry Pi and TNC board. Start with a base plate measuring 95mm by 65mm with a thickness of 2mm. Build walls 44mm high around the perimeter, leaving a 3mm thickness for the walls. At the four corners of the base, position cylindrical standoffs with an outer radius of 3.5mm ...
$fs = 0.01; module standoffs(height=10) { difference() { cylinder(h=height, r=3.5); cylinder(h=height, r=1.3); } } module pi_standoffs() { translate([ 3.5, 3.5, 0]) standoffs(); translate([61.5, 3.5, 0]) standoffs(); translate([ 3.5,52.5, 0]) standoffs(); translate([61.5,52.5, 0]) standoffs(); } modul...
glb/cad_749356cb4132.glb
Create a tuning inductor coil form consisting of a threaded vertical cylinder mounted on a flat oval base. Start by creating a vertical cylinder with an outer diameter of 25.4mm and a height of approximately 54.6mm. This cylinder must be hollow, with a central bore diameter of 20mm. On the exterior surface of this cy...
$fn=30; WrenchSizes=0; translate([0,0,11]) difference() { union() { thread_out_pitch(26,25.4*2.15,25.4/16); cylinder(h=25.4*2.15,r=24.45/2); translate([0,0,(25.4*2.15)-1]) cylinder(h=4,r=25.4/2); } translate([0,0,-1]) cylinder(h=75,r=10); translate([-15,0,1.5]) rotate(a=[0,90,0]) cylinder(h=30,r=1); t...
glb/cad_e145a5902924.glb
Create a dual bowden extruder fan duct. Start with a main body consisting of two vertical cylindrical bores with a radius of 13.5mm, centered 26mm apart. Enclose these bores within a housing that transitions from a rectangular base to a wider upper section. At the bottom, integrate a fan mounting funnel that tapers f...
use <e3d_extruder.scad> use <fan.scad> fan_holes = [ [-32/2, -32/2, -30], [-32/2, 32/2, -30], [ 32/2, -32/2, -30], [ 32/2, 32/2, -30] ]; module 2dprofile() { polygon(points = [ [0.00,0.00] ,[5.00,0.00] ,[6.00,-1.00] ,[6.0,-2.00] ,[1.0,-2.0] ,[0,-3.00] ] ,paths = [ [0,1,2,3,4,5]] ); } module support...
glb/cad_183cf4e0cc3f.glb
Create a Z-axis set screw tensioner block. The main body is a rectangular housing with a total height of 20mm, a width of 15mm, and a depth of 24mm. The bottom section features a rectangular cutout measuring 11mm wide by 15.8mm deep and 8.7mm high. The interior of the block is hollowed out to accommodate a board with ...
module leg(x,y,z) { boardWidth = 5.8; legWidth = 13; legEndWidth = 7; legHeight = 40; union(){ translate([x-(legEndWidth/2),y,z])cube([legEndWidth,boardWidth,boardWidth],false); translate([x-(legWidth/2),y,z-(legHeight-0.01)])cube([legWidth,boardWidth,legHeight],false); } } module endBlock(x,y,z){ boardWidt...
glb/cad_123bde1c4b0d.glb
Create an RC steering linkage part by starting with a tapered hexagonal prism that is 40mm tall. The base of the prism should have a flat-to-flat width of 11mm, tapering upward to a top diameter of 15mm. From the center of the base, remove a vertical cylindrical hole with a diameter of 4.5mm that extends 23mm deep in...
shaft = 4.5; shaft_insert = 23; base_thickness = 11; link_outer_dia = 15; total_height = 40; ball_dia = 8; insert_extra_dia = 1; flat_height = 6; link_center_z = total_height-(ball_dia); $fn=100; module body() { difference() { rotate([0,0,00]){cylinder(h = total_height, r1=base_thickness/2, r2=link_outer_dia/2, $f...
glb/cad_b841ac51fb26.glb
Create a Customizable Ramp by extruding a specific 2D polygon to a height of 50mm. The polygon is defined by six vertices that form a right-angled wedge shape with a hollowed-out interior. Starting from the origin (0,0), the outer boundary is a right triangle with a base of 43.3mm (calculated as 50 * cos(30°)) and a ...
theta = 30; width = 50; thickness = 3.0; ramp_length = 50; outer_triangle_height = sin(theta) * ramp_length; outer_triangle_base = cos(theta) * ramp_length; outer_triangle_hypot = ramp_length; upper_hypot = thickness/sin(90 - theta); lip_base = upper_hypot/tan(theta); non_ramp_angle = 90 - theta; y_offset_1 = th...
glb/cad_40a1c50bcb5b.glb
Create a Pneumatic Valve 3-ways 2-positions consisting of a central sliding assembly housed within an outer body and capped at the ends. First, create the outer body as a rectangular block measuring 29.7mm x 29.7mm x 21mm. Subtract a central vertical cylinder with a diameter of 21.7mm and a height of 23mm. Within this...
finura = 50; ud = 2; d_cil_ext = 21.7; d_cil_int = 20; h_piston = 6*ud; h_boton = 5*ud; h_centro = 6*ud; h_cil = h_boton-ud + 2*h_piston + h_centro; d_junta = 2; d_int_junta = d_cil_int - 2* d_junta; pared_racor = 4; d_tub_int = 4.2; pegamento = 0.3; juego_pulsador = 0.4; tol_embolo = 0.2; cuerpo = 2; module cu...
glb/cad_2c586408fb78.glb
Create a cup and wine glass holder for a binder clip. Start by constructing a hollow, truncated cone with a wall thickness of 3mm. The cone should have a top radius of 15mm and a bottom radius of 5mm, with the sides sloped at a 35-degree angle. Cut a rectangular slot through the side of the cone to allow it to be open....
include <dovetail_with_stop.scad> rtop = 15; rbot = 5; angle = 35; thick = 3; module glassholder(rtop,rbot,angle,thick) { thick2 = 3 / cos(angle); height = (rtop-rbot)/tan(angle); translate([-rtop-thick2,0,-height]) difference(){ union(){ cylinder(r1=rbot+thick2,r2=rtop+thick2,h=h...
glb/cad_3a973e2f401c.glb
Create a Cosine Wave visualization consisting of a 37 by 37 grid of rectangular prisms. For every integer coordinate i from 0 to 36 on the X-axis and j from 0 to 36 on the Y-axis, place a prism with a base size of 1mm by 1mm. The height of each prism along the Z-axis should be determined by the formula 11 + 10 * cos(10...
resMultiple = 1; xRes = 36 * resMultiple; yRes = 36 * resMultiple; for(i=[0:xRes]) { for(j=[0:yRes]) { color( [0.5+sin(10*i/resMultiple)/2, 0.5+sin(10*j/resMultiple)/2, 0.5+sin(10*(i+j)/resMultiple)/2] ) translate( [i/resMultiple, j/resMultiple, 0] ) cube( size = [1, 1, 11+10*cos(10*i/resMultiple)*cos...
glb/cad_8fc0b123f46f.glb
Create a Manfrotto 501PL-compatible quick release plate with a total length of 90mm, a width of 42mm, and a height of 11mm. The main body is a rectangular block with a hollowed-out base, leaving walls 3mm thick. At the front end, add a stop block measuring 11mm wide and 4mm thick that spans the full height of the pla...
channel = 5.5; height = 11; length = 90; wall = 3; module tapered() polyhedron(points = [[-4.75,0,0], [0,0,9], [0,0,0], [-4.75,length,0], [0,length,9], [0,length,0]], triangles = [[0,1,2], [0,4,1], [0,3,4], [0,5,3], [0,2,5], [3,5,4], [2,1,4], [2,4,5]]); rotate([180,0,0]) difference() { union() { d...
glb/cad_973f6fe600ca.glb
Create a Beaglebone Black CRAMPS Printer Mount starting with a rectangular base plate measuring 120mm by 120mm with a thickness of 5mm. In the center of this plate, remove a rectangular section measuring 90mm by 40mm to create a large central opening. At the corners and specific intervals, add cylindrical standoffs. P...
difference() { cube(size = [5,120,25]); translate([-5,15,12.5]) rotate([0,90,0]) cylinder(h=15,r=2.5); translate([-5,105,12.5]) rotate([0,90,0]) cylinder(h=15,r=2.5); } difference() { translate([40,0,0]) cube(size = [56,10,15]); translate([50,0,5]) cube(size = [16,10,15]); translate([76,0,5]) ...
glb/cad_7e7781681249.glb
Create a Beaglebone Black CRAMPS Printer Mount starting with a square base plate measuring 120mm by 120mm with a thickness of 5mm. At the four corners of the plate, create four cylindrical standoffs. Each standoff should have an outer diameter of 8mm and a height of 25mm, with a concentric hole drilled through the ce...
rotate ([180,0,0]) difference (){ union(){ difference () { union() { difference() { cube(size = [120,120,5]); translate([10, 6, -20]) cylinder(h=30, r=2); translate([115, 6, -20]) cylinder(h=30, r=2); translate([10, 114, -20]) cylinder(h=30, r=2); translate([115, 114, -20]) ...
glb/cad_646aae9cfbea.glb
Create a Shelfie bracket, which is a 30mm cube. The bracket is designed to hold two panels: Panel 1 is 3mm thick and Panel 2 is 3mm thick. The walls of the bracket are 2mm thick. The bracket has two slots for the panels. The first slot is 3mm wide and runs from the base to the top of the bracket, leaving a 3mm base at...
bracket_type="L"; bracket_size = 30; panel_thickness = 3; panel2_thickness = 3; flip = "false"; wall_thickness = 2; base_thickness= 3; hole_radius=1.5; pass_through="false"; bracing="true"; wall_mount = "false"; wall_mount_corner_radius = 10; $fn=100; panel_depth=bracket_size-panel_thickness-(wall_thicknes...
glb/cad_7a1522de21aa.glb
Create a Parametric Savonius Model consisting of a rotor, a supporting base, and a motor mount. First, construct the rotor. Create two semi-cylindrical wings, each with a height of 100mm and a thickness of 3mm. The outer diameter of these wings is 58mm. Position them to form a turbine with a central gap of 16mm betwee...
Savonius_Diametre_Base=100; Thinkness=4; Roller_Diametre_Externe=22; Roller_Diametre_Interne=8; Roller_Hauteur=7; Motor_Diametre_Central=13; Motor_Diametre_Holder=3; Motor_Espacement_Holder=25; footer_height=50; full_animated(); module full_animated(){ Arm1(); color("red")translate([Savonius_Diametre_Base/2,0,Th...
glb/cad_536cafc3e749.glb
Create a MakerBot Coin Holder by starting with a rounded cuboid that is 42mm long, 42mm wide, and 4mm high. The corners of this cuboid should be rounded with a radius of 7mm. Center a cylindrical cutout through the entire height of the block to create a space for the coin. This main cutout should have a diameter of 38...
a_bit=0.1; coin_diameter=39; coin_height=2.7; ext_height=4; ext_length=42; hole_diameter=3.2; hole_spacing=28; corner_faces=3; hole_centres= hole_diameter+hole_spacing; translate(v=[0,0,ext_height/2]){ difference(){ rounded_cuboid (ext_length,ext_length,ext_height,(ext_length-hole_centres)/2,corner_faces); cy...
glb/cad_e40b719403bb.glb
Create a set of components for a SphereBot CNC machine. First, create two egg cups: one with a central hole of radius 2.5mm and another with a hole of radius 3mm. Each cup is a cylinder 28mm high and 6mm in radius, with a 10mm radius sphere centered at the top and a cylinder of the respective hole radius removed from...
include <Libs.scad> libEcho=false; displayMode=0; stepperMotorAxisRadius = 2.5; rodRadius = 3.5; penRadius = 4.5; penAxleRadius = 1; module eggCup(axleRadius=3) { translate([0,0,14]) difference() { cylinder(h=28, r=6, center=true); translate([0,0,-15+6]) cylinder(h=12, r=axleRadius, center=true); translate([0,...
glb/cad_67ff571c55c9.glb
Create a two-part electronic device packaging consisting of a top and bottom half that fit together using a lip-and-groove system. Each half is a rounded cuboid with external dimensions of 32mm length, 26mm breadth, and 10mm height. The walls are 3mm thick, and the corners have a radius of 4mm. For the bottom half, cr...
force_fit=0.2; hold_fit=0.3; slide_fit=0.4; free_fit=0.5; a_bit=0.1; clearance= force_fit; clearance_pcb=0.5; int_l=26; int_b=20; int_h=13; int_r=1; curve_f=3; wall_t=3; lip_t = (wall_t - clearance) / 2; lip_h=1.5; lip_p=1; ext_l= int_l + 2*(clearance_pcb+wall_t); ext_b=int_b + 2*(clearance_pcb+wall_...
glb/cad_ae6bfeeda805.glb
Create a two-part electronic device packaging consisting of a top and bottom half that fit together using a lip-and-groove system. Each half is based on a rounded cuboid with external dimensions of 26mm length, 26mm breadth, and 13mm height, featuring a corner radius of 6mm. The walls are 3mm thick. For the top half, ...
force_fit=0.2; hold_fit=0.3; slide_fit=0.4; free_fit=0.5; a_bit=0.1; clearance= force_fit; clearance_pcb=0.5; int_l=20; int_b=20; int_h=20; int_r=3; curve_f=3; wall_t=3; lip_t = (wall_t) / 2; lip_h=1.5; lip_p=1; post_outer_r=2; post_inner_r=1; post_outer_h=0.3; post_inner_h=0.2; post_type=0; post...
glb/cad_b44e7d81b4ec.glb
Create a two-part electronic device packaging consisting of a top and bottom half that fit together using a lip-and-groove system. Both halves are based on a rounded cuboid with external dimensions of 26mm length, 26mm breadth, and 23mm height per half, with corner radii of 6mm. The walls are 3mm thick. For the bottom...
force_fit=0.2; hold_fit=0.3; slide_fit=0.4; free_fit=0.5; a_bit=0.1; clearance= force_fit; clearance_pcb=0.5; int_l=20; int_b=20; int_h=20; int_r=3; curve_f=3; wall_t=3; lip_t = (wall_t) / 2; lip_h=1.5; lip_p=1; post_outer_r=2; post_inner_r=1; post_outer_h=3; post_inner_h=2; post_type=0; post_x_s...
glb/cad_f4e3159d7f14.glb
Create a two-part electronic device packaging consisting of a top and bottom half that connect via a lip system. Both halves are based on a rounded cuboid with external dimensions of 37.5mm length, 31.5mm breadth, and 31mm height per half. The walls are 3mm thick. For the top half, create a hollow rounded cuboid with ...
super_accurate_fit=0.1; force_fit=0.2; hold_fit=0.3; slide_fit=0.4; free_fit=0.5; a_bit=0.1; side_by_side=1; clearance= super_accurate_fit; clearance_pcb=0.5; int_l=31.5; int_b=25.5; int_h=25; int_r=1; curve_f=3; wall_t=3; lip_t = (wall_t) / 2; lip_h=1.5; lip_p=1; post_outer_r=2.5; post_inner_r=0.5;...
glb/cad_44fa3c6c4830.glb
Create a two-part electronic device packaging consisting of a top and bottom half that fit together using a lip-and-groove system. Both halves are based on a rounded cuboid with external dimensions of 38.5mm length, 31.5mm breadth, and 23.5mm height, with a corner radius of 4mm. The walls are 3mm thick. For the bottom...
super_accurate_fit=0.1; force_fit=0.2; hold_fit=0.3; slide_fit=0.4; free_fit=0.5; a_bit=0.1; side_by_side=1; clearance= super_accurate_fit; clearance_pcb=0.5; int_l=31.5; int_b=25.5; int_h=23.5; int_r=1; curve_f=3; wall_t=3; lip_t = (wall_t) / 2; lip_h=1.5; lip_p=1; post_outer_r=2.5; post_inner_r=0....
glb/cad_28027dc947b2.glb
Create a Lulzbot Mini Spool Arm Bracket Backing Plate. Start with a main body formed by the union of three sections: a primary block created from the convex hull of four cylinders with 1mm radii positioned at (2, 16, -8.5), (2, 16, 36.5), (2, 34, -8.5), and (2, 34, 36.5), and two additional cover plate sections created...
rotate([0,90,0]) translate([-6,-34,-14]) difference() { union() { hull() { translate([2,16,-8.5]) rotate([0,90,0]) cylinder(r=1,h=4,$fn=100); translate([2,16,36.5]) rotate([0,90,0]) cylinder(r=1,h=4,$fn=100); translate([2,34,-8.5]) rotate([0,90,0]) cylinder(r=1,h=4,$fn=100); ...
glb/cad_e325a608b37d.glb
Create a PCB Drill Press Stand consisting of a base, a sliding mechanism, and a tool mounting system. Start with a base plate that includes a central hole for a 5mm diameter shaft. Above the base, construct a fixed slide and a sliding wedge that move along an 8mm diameter threaded rod. The sliding wedge should integra...
include <drill_base.scad> include <fixed_slide.scad> include <sliding_wedge_rack.scad> include <rotacraft_rc18_drill_collar_mount.scad> include <rotacraft_rc18_drill_body_mount.scad> include <rack_gear.scad> include <arm_mount.scad> include <arm_knob.scad> include <thumb_wheel.scad> base(); color("lightblue") transl...
glb/cad_b5f4f3d1ca9d.glb
Create a replacement Eppendorf tube holder for a lab rotator. Start by creating a central cylindrical base with a radius of 8mm and a height of 2mm, centered on the origin. At the bottom of this cylinder, center a cube with dimensions 6mm x 6mm x 8mm. To form the tube slot, create a horizontal cylinder with a radius ...
inner_radius = 5; base = 6; module customizer_off(){}; r1 = 8; h1 = 2; r2 = base; h2 = 8; r3 = inner_radius + 2; h3 = r2; r3i = inner_radius; module Base() { cylinder(h= h1, r = r1, center = true); translate ([0,0,-h2/2]){cube ([r2,r2,h2], center = true);} } module Top_base () { translate ([0,0,r3]){rotate ([...
glb/cad_9d916e7adce5.glb
Create a bird spike pole mount by first constructing a semi-cylindrical clip. Start with a solid cylinder 16mm in diameter and 10mm high. Remove a concentric inner cylinder 13mm in diameter and 12mm high, positioned to leave a 3mm wall thickness and a gap at the bottom to create a C-shaped clamp. Attached to this clip...
spike_l = 60; spike_h = 2; spike_w = 3; pole_dia = 13; pole_thick = 3; pole_h = 10; $fn = 48; pole_r = pole_dia/2; difference (){ union(){ translate([0-(spike_w/2), 0, 0]){ rotate(a=-45, v=[0,0,1]) cube([spike_w, spike_l, spike_h], center=false); rotate(a=-22.5, v=[0,0,1]) cube(...
glb/cad_dac32ab6a989.glb
Create a miniature kiddie ride coin airplane consisting of a fuselage, wings, and a base platform. Construct the fuselage by blending a cylinder of 100mm length and 40mm radius with a sphere of 15mm radius at the nose. Add a smaller internal cylinder of 100mm length and 35mm radius, and a thin central rod of 100mm le...
module avion(){ hull(){ translate([0,0,0]) rotate([0,90,0]) cylinder(h = 100, r=40, $fn=100,center=true); translate([-120,0,13]) sphere(r = 15,center = true); } translate([20,0,0]) rotate([0,90,0]) cylinder(h = 100, r=35, $fn=100,center=true); translate([30,0,0]) ...
glb/cad_0e910861d487.glb
Create a Flower Arrangement Accessory by starting with a thin circular base that has a radius of 100mm and a height of 2mm. Carve a grid of square holes through this base using a series of intersecting channels. Create a set of parallel channels running along the X-axis and another set running along the Y-axis. Each ch...
difference(){ cylinder(r=100,h=2); translate([-150,0,-10]) cube(300); for (j=[-100:25:100]) { for (i=[-100:25:100]) { translate([i,j,-1]) cube(20, center=true); }} }
glb/cad_3e0f8c5742a0.glb
Create a seed pot in the shape of a hollow inverted truncated pyramid with a square base. The outer shell should have a bottom width of 30mm, a top width of 50mm, and a total height of 70mm. The walls and the floor of the pot must be 1mm thick. To create the interior cavity, remove a centered volume from the top down t...
bottomWidth=30; topWidth=50; heigth=70; wallThickness=1; module holes(bottomWidth,heigth) { v1 = [bottomWidth/2, 0, -1]; translate(v1) { cylinder (h = heigth, r=2.5, $fn=10); } v2 = [-bottomWidth/2, 0, -1]; translate(v2) { cylinder (h = heigth, r=2.5, $fn=10); } v3 = [0, b...
glb/cad_6188e6b51f42.glb
Create an anti-wobble Z-coupling consisting of a rectangular block with rounded corners. The main body should be 35mm in length, 23mm in width, and 8mm in thickness. Carve a central longitudinal slot through the block to accommodate a lead screw. This slot consists of two cylindrical channels: a larger one with a dia...
$fn = 40; studding_dia = 6.35; shaft_dia = 5.0; asym = 0.0; holeX = 10.5; holeY = 6.5; holeR = 3.4 / 2; nutR = 3.25; nutH = 3; boltheadR = 3; height = 35; width = 23; thickness = 8; module rounded_cube(x, y, z, r) { translate([r, r, 0]) minkowski() { cylinder(r=r, h=1); cube([x - 2*r, y - 2*r, z-1]); } } ...
glb/cad_87a6931b7341.glb
Create a parametric luggage handle tag consisting of a flat rectangular plate with rounded corners. The plate should have a thickness of 1.5mm and a corner radius of 3mm. Cut four slotted holes into the plate to allow for attachment; two slots are positioned on the left side and two on the right side. Each slot is 4m...
use <Write.scad> font="stencil2.dxf"; fontlengthfactor=.682; fontsize=10; spacing=1; linespacing=0.8; cornerradius=3; platethickness=1.5; textdepth=-66; slitlength=4; slitwidth=2; slitdist=18; hidetext=false; text=["YOUR NAME", "ADDRESS", "COUNTRY" ]; maxtextchars = max(len(text[0]),len(text[1]),len(text[2...
glb/cad_2f117713351f.glb
Create a needle file handle by constructing a hollow, vertical cylinder with a total height of 50mm. The outer wall should be a 20-sided prism to create a faceted grip. The main body of the handle has an outer diameter of 5.07mm, while the interior features a centered circular hole with a diameter of 3.07mm running thr...
hd=3.07; w=1; h=50; $fn=20; sp=hd+2*(w+1.5); for (x=[0:1]) for (y=[-1:0]) translate([x*sp,y*sp,0]) difference(){ union(){ cylinder(r2=hd/2+w+1,r1=hd/2+w+0.5,h=1); translate([0,0,1]) cylinder(r1=hd/2+w+1,r2=hd/2+w,h=h); } translate([0,0,3]) #cylinder(r=hd/2,h=h); }
glb/cad_3bc398091ea0.glb
Create a Box Garden Lattice Bracket by starting with a rectangular base block measuring 100mm wide, 120mm deep, and 5mm thick. From this base, remove a large triangular prism section to create a right-angle bracket shape. Specifically, carve out a triangular void starting from the inner corner at coordinates (10, 20) w...
include <tri_45_45_90.scad> difference(){ difference(){ cube(size = [100,120,5], center = false); translate([10,20,-5]){ tri_45_45_90(70,90,30); } } translate([100,130,0]){ mirror([0,-1,0]){ mirror([1,0,0]){ translate([10,20,-5]){ ...
glb/cad_5c133b064cc4.glb
Create a parametric universal spool holder shaped as a truncated cone. The main body is a cone with a height of 30mm, tapering from a base diameter of 70mm to a top diameter of 25mm. Center a cylindrical hole through the vertical axis of the cone to accommodate a bearing; this hole must have a diameter of 22mm and a ...
bearing_d = 22; bearing_h = 7; max_d = 70; min_d = 25; cone_h = 30; rod_d = 8.1; $fa = 1; $fs = 1; difference(){ translate([0,0,cone_h/2])cylinder(r1 = max_d/2, r2 = min_d/2, h = cone_h, center=true); translate([0,0,bearing_h/2-.1]) cylinder(r=bearing_d/2, h=bearing_h, center=true); translate([0,0,max_d/2+be...
glb/cad_dfc83563565c.glb
Create a flat, ring-shaped washer. Start with a solid cylinder that has an outer diameter of 21mm and a height of 1mm, centered on the origin. Remove a smaller concentric cylinder from the center with a diameter of 14mm and a height of 2mm to create a clean circular hole that passes completely through the object.
od = 21; id = 14; h = 1; $fa=.5; $fs = .5; difference(){ cylinder(r=od/2,h=h,center=true); cylinder(r=id/2,h=h+1,center=true); }
glb/cad_3da1b4d4d403.glb
Create a parametric universal spool holder consisting of a cylindrical body with a central hole and integrated locking tabs. Start by creating a main cylinder with an outer diameter of 17.6mm and a height of 10mm. Bore a concentric hole through the center of this cylinder with a diameter of 7.6mm. To form the locking...
id = 7.6; width = 2.5; h = 10; tabl = 8; $fa=.5; $fs = .5; od = id + 2*width; difference(){ x = tabl/sqrt(2); union(){ translate([0,0,h/2]) cylinder(r=od/2,h=h,center=true); translate([x,x,(h-2)/2]) rotate([0,0,-45]) cube([width,tabl,h-2],center=true); translate([x,-x,(h-2)/2]) rotate([0,0,45]) cube([width...
glb/cad_c623f9fe0962.glb
Create an OpenServo Cover by starting with a main body formed from the union of two centered rectangular prisms: one measuring 18.5mm by 40.5mm by 10mm, and another measuring 20.5mm by 38.5mm by 10mm. At each of the four corners of this combined volume, add a small 10-sided prism cylinder with a radius of 1mm and a hei...
difference(){ union(){ cube([18.5,40.5,10],center=true); cube([20.5,38.5,10],center=true); for (x=[-1,1]) for (y=[-1,1]) translate([x*18.5/2,y*38.5/2]) cylinder(r=1,h=10,center=true,$fn=10); } for (x=[-1,1]) translate([x*(20.5/2-2.57),-(40.5/2-2.5),0]){ translate([0,0,2]) cylinder(r=2.0,h=8,center=true,$...
glb/cad_08fa42f0b13f.glb
Create a Dremel drill press adapter by starting with a solid cylinder 34mm in diameter and 15mm high. From the center of this cylinder, remove a vertical hole 14mm in diameter that extends through the entire height of the object. Within this central void, starting 4mm from the bottom base, carve out a right-handed inte...
use <thread_library.scad> difference(){ cylinder(r=17,h=15); union(){ translate(v=[0,0,4])trapezoidThread( length=20, pitch=2.7, pitchRadius=9.1, threadHeightToPitch=0.5, profileRatio=0.5, threadAngle=30, RH=true, clearance=0.1, backlash=0.1, stepsPerTurn=24 ); translate(v=[0,0,-1])cylinder...
glb/cad_d484ea3ac6f7.glb
Create a wall-mounted wallet holder with an interior cavity measuring 100mm wide, 70mm deep, and 45mm tall. The main body is a rectangular box with walls 3mm thick, tilted at a 45-degree angle. The top of the holder features a circular mounting ring with an inner diameter of 30mm and a square cross-section of 6mm, desi...
wallet_width= 100; wallet_height = 70; wallet_thick = 45; wall= 3; wall2 = 6; door_r=15; box_angle=45; Y1 = (wallet_thick+2*wall)*sin(box_angle); Z1 = (wallet_thick+2*wall)*cos(box_angle); Z2 = (wallet_height+2*wall)*cos(box_angle) + door_r+Z1; supp_angle=atan2(wallet_width/2+wall,-Z2); difference(){ translate([0,...
glb/cad_234abf62b443.glb
Create a Spray Can Tube Clip designed to hold a small tube against a cylindrical can. Start by creating a C-shaped clip with a thickness of 3mm and a height of 3mm. The inner curve of the clip should have a diameter of 66mm to fit the can. At one end of the clip, integrate a cylindrical tube holder. This holder shoul...
CanDiameter = 66; TubeDiameter = 2.3; ArmWidth = 3; ArmHeight = 3; TubeHolderHeight = 6; BottomTubeThickness = 1; $fn = 180 * 1; CanHeight = 50 * 1; TubeHeight = CanHeight - (BottomTubeThickness * 2); TubeCenter = (CanDiameter + TubeDiameter)/2 + ArmWidth; module can() { cylinder(r=CanDiameter/2, h=CanHeig...
glb/cad_d677ce030beb.glb
Create a set of non-transitive gaming dice. Each die is a cube with a side length of 10mm. To add detail to the corners, add a small cylinder with a radius of 2.5mm and a height of 0.2mm at each of the four vertical edges of the cube. On each face of the dice, create indented pips by placing spheres with a radius of 0...
fn = 8; dieW = 10; pipD = dieW/7; pipR = pipD/2; pipTh = 1; pipScaling = pipTh/pipD; pipSep = pipD*2; earH = 0.2; grime_set(0); module non_transitive_set(dual=0, ears=1, sep=1.4) { translate([dieW*sep,0,0]) dice(dual,ears) non_transitive_dice("red"); dice(dual,ears) non_transitive_dice("blue"); translate(...
glb/cad_522346a32160.glb
Create a Dremel adapter designed to fit a 43mm diameter drill press. Start by creating a base cylinder with a radius of 24mm and a height of 3mm. On top of this base, add a second cylinder with a radius of 21.5mm and a height of 12mm. From the center of this combined volume, remove a vertical cylindrical core with a ...
schl=3; $fn=50; module screwthread_triangle(P) { difference() { translate([-sqrt(3)/3*P+sqrt(3)/2*P/8,0,0]) rotate([90,0,0]) cylinder(r=sqrt(3)/3*P,h=0.00001,$fn=3,center=true); translate([0,-P/2,-P/2]) cube([P,P,P]); } } module screwthread_onerotation(P,D_maj,step) { H = sqrt(3)/2*P; D_min = D_maj - 5...
glb/cad_83afda5fd146.glb
Create a traffic cone model starting with a square base that is 16mm wide, 16mm deep, and 1.2mm thick. Centered on this base, place a hollow truncated cone with a height of 20mm. The exterior of this cone should taper from a circular base with a diameter of 15mm up to a circular top with a diameter of 4mm. To create th...
base_size=16; cone_base_size=15; cone_top_size=4; cone_height=20; wall_thickness=1.2; difference() { union() { translate([-base_size/2,-base_size/2,0]) cube([base_size,base_size,wall_thickness]); cylinder(r1=cone_base_size/2,r2=cone_top_size/2, h=cone_height); } translate([0,0,-0.01]) cylinder(r1=cone_base_size...
glb/cad_bd22797b1486.glb
Create a DJI Inspire 1 Lens Cover by constructing a shallow, hollowed-out cylinder. Start with a solid cylinder that has a height of 7mm and an outer diameter of 43.7mm. From the top surface of this cylinder, remove a smaller concentric cylinder with a diameter of 39.7mm and a height of 5mm, leaving a solid base with a...
HEIGHT=7; INSIDE_DIAM=39.7; THICKNESS=2; difference() { cylinder(h=HEIGHT, r=INSIDE_DIAM+THICKNESS); translate([0,0,THICKNESS]) cylinder(h=HEIGHT, r=INSIDE_DIAM); }
glb/cad_b395fd8fbde3.glb
Create a spider coupling consisting of two cylindrical hubs and a central star-shaped insert. First, create two identical cylindrical hubs with a radius of 10mm and a height of approximately 20.5mm. Each hub must have a central longitudinal hole: one hub requires a 5.1mm diameter hole for a motor shaft, and the other...
facets3mmhole=24; facetsSmallRadii=24; module radius(radius,length,axis) { if(axis=="X") { rotate(90,[1,0,0]) rotate(90,[0,1,0]) translate([0,0,-0.1]) linear_extrude(height = length+0.2, center = false, convexity = 4, twist = 0) difference() { translate([-0.1,-0...
glb/cad_e121f726eee1.glb
Create a Compact Bowden Extruder for 1.75mm filament consisting of a motor mount, a frame mount, and a filament tunnel. First, create the NEMA 17 motor mount as a plate 5mm thick and 42.3mm wide. The plate should be circular with a radius of 27mm, featuring a central axle hole with a radius of 7mm and four M3 mounting...
epsilon = 0.01; extra_radius = 0.1; m3_major = 2.85; m3_radius = m3_major / 2 + extra_radius; m3_wide_radius = m3_major / 2 + extra_radius + 0.2; m3_head_radius = 3 + extra_radius; drive_gear_outer_radius = 12.00 / 2; drive_gear_hobbed_radius = 10 / 2; drive_gear_hobbed_offset = 3.2; drive_gear_length = 13 + 0; dri...
glb/cad_3f6569d1aeaa.glb
Create a PCB mount box with an open top. The main body is a rectangular tray with outer dimensions of 61mm in width and 77mm in length. The walls are 3.5mm thick, and the base is 2.5mm thick. The interior cavity is 54mm wide and 69mm long, with a depth of 7.5mm. Add three mounting tabs to each of the longer side walls...
pcb_width = 54; pcb_length =69; pcb_height =1.62; slisse = 1; pcb_bottom_margin = 2.5; wall_width_thick = 3.5; wall_width = wall_width_thick-slisse; box_height = 10; tab_hole_radius=3; tab_outer_radius=6; module tab() { difference(){ union() { translate([-tab_outer_radius,-tab_outer_radius,0]) cube([tab_out...
glb/cad_a570e9c48f72.glb
Create a clothespeg component by starting with a 10mm thick base shaped as a polygon with vertices at [0,0], [0,73.5], [2.3,73.5], [6.7,68.59], [6.7,34.25], and [2.3,0]. From this base, remove four distinct geometric volumes. First, remove a cylinder with a radius of 2.8mm and a height of 14mm, centered at [6.3, 31.5]....
difference(){ linear_extrude(height=10) polygon(points=[[0,0],[0,73.5],[2.3,73.5],[6.7,68.59],[6.7,34.25],[2.3,0]],paths=[[0,1,2,3,4,5]]); translate([6.3,31.5,-2]) cylinder(h = 14, r=2.8, $fn=20); translate([9.3,58.2,-2]) cylinder(h = 14, r=4.8, $fn=20); translate([6.8,43.6,-2]) cylinder(h = 14, r=1.15, $fn=20); transl...
glb/cad_2d23f6b08756.glb
Create a Bike Pump Holder by starting with a solid rectangular block measuring 50mm wide, 50mm deep, and 83.5mm high. From this block, remove a large cylinder with a 45mm diameter running vertically through the center to create a semi-circular cutout for the bike frame. Next, remove a smaller vertical cylinder with a 2...
holeSpacing = 63.5; holeDiameter = 5.2; holeHead = 10.0; pumpDiameter = 22; mountDiameter = 45; thickness = 8; $fn = 100; pad = 0.1; module mount() { cylinder(d=mountDiameter, h=200, center=true); } module block() { height = holeSpacing + 10 * 2; width = 20; depth = width; cube([width,depth,heigh...
glb/cad_79251190f8ad.glb
Create a ninja star shuriken with a thickness of 1.5mm. The overall shape is formed by five identical blades arranged in a radial pattern every 72 degrees. Each blade starts as a cylinder with a radius of 10mm, but is modified by removing a large circular section from the back side to create a curved trailing edge. Spe...
H = 1.5; FN = 256; NUM = 5; TX = -2.4; TY = 5; MAG = 0; MAG_X = 7; MAG_Y = 12; MAG_Z = 2; MAG_SPACE = 0.75; CUT_ROT = [0, -10, 75]; CUT_TRANS = [17, 19, 0]; module magnet() { translate([1.25,0,0]) cube([MAG_X+MAG_SPACE, MAG_Y+MAG_SPACE, MAG_Z + MAG_SPACE*2]); } module blade() { translate([TX, TY, 0]) differen...
glb/cad_a1810a1b00fa.glb
Create a ninja star throwing toy with a thickness of 1.5mm. The overall shape is based on a five-pointed radial symmetry. For each of the five segments, create a blade by starting with a cylinder of 10mm radius and then removing a larger circular section from the back side to create a curved, recessed edge. To refine...
H = 1.5; FN = 256; NUM = 5; TX = -2.4; TY = 5; MAG = 0; MAG_X = 7; MAG_Y = 12; MAG_Z = 2; MAG_SPACE = 0.75; CUT_ROT = [0, -10, 75]; CUT_TRANS = [17, 19, 0]; module magnet() { translate([1.25,0,0]) cube([MAG_X+MAG_SPACE, MAG_Y+MAG_SPACE, MAG_Z + MAG_SPACE*2]); } module blade() { translate([TX, TY, 0]) differen...
glb/cad_99871dfbaa75.glb
Create a ninja star shuriken with a total thickness of 1.5mm. The object is composed of five identical blades arranged in a radial pattern around a center point. Each blade is based on a cylinder with a radius of 10mm. To form the sharp profile of the star, remove material from each blade using a large cylinder with a ...
H = 1.5; FN = 256; NUM = 5; TX = -2.4; TY = 5; MAG = 0; MAG_X = 7; MAG_Y = 12; MAG_Z = 2; MAG_SPACE = 0.75; CUT_ROT = [0, -10, 75]; CUT_TRANS = [17, 19, 0]; module magnet() { translate([1.25,0,0]) cube([MAG_X+MAG_SPACE, MAG_Y+MAG_SPACE, MAG_Z + MAG_SPACE*2]); } module blade() { translate([TX, TY, 0]) differen...
glb/cad_a232ca3a0d30.glb
Create a Caterpillator chassis by constructing a T-shaped base plate with a total width of 73mm and a thickness of 3mm. The central section of the chassis is 53mm wide. Extend the chassis length to 65mm minus 30mm plus 4.5mm (approximately 39.5mm) and add vertical side walls that are 15mm high. In the main body, creat...
module chasis(dtal,dejes,lservo,a,as,d,le,t,z) { a2=(a-as)/2; h=d+dtal+2*t; lt=dejes-lservo+0.5*le+z ; l2=le+3*z; l1=lt-l2; difference(){ union(){ cube([lt,as,t],center=true); translate([(lt-l2)/2,(as+a2)/2,0]) cube([l2,a2,t],center=true); translate([(lt-l2)/2,-(as+a2)/2,0]) cube([l2,a2,t],center=true); ...
glb/cad_f8b53babd516.glb