Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create an Arduino AVR Programmer Enclosure consisting of a main bottom casing and a removable lid. For the bottom casing, create a hollow rectangular box with outer dimensions of 74.1mm width, 66.2mm depth, and 18.4mm height. The walls should be 1.5mm thick. On the bottom interior, place three mounting posts for the ...
include <../../myCAD/OpenSCADlibraries/Arduino.scad> include <../../myCAD/OpenSCADlibraries/led.scad> include <../../myCAD/OpenSCADlibraries/NopSCADlib/vitamins/dip.scad> print = false; showBottom = true; showLid = false; showArd = true; showShield = true; shieldType = 0; powHole = false; soBotHeight = 4; soBot...
glb/cad_c9dc18a2967c.glb
Create a donut by revolving a circle around a central axis. Start with a circle that has a radius of 10mm. Position the center of this circle 20mm away from the axis of rotation. Rotate this circle 360 degrees around that axis to generate a torus with a tube diameter of 20mm and an overall outer diameter of 60mm.
rotate_extrude() translate([20,0,0]) circle(r = 10);
glb/cad_a40d25fe8fdc.glb
Create a Y-Bushing Spacer by starting with a central rectangular block measuring 26mm in width, 14mm in depth, and 7mm in height. At each of the two narrow ends of this block, center a hexagonal prism with a height of 7mm and a radius of 7mm. Rotate these hexagonal prisms 30 degrees around the Z-axis so that their flat...
include <configuration.scad> height = 7; difference(){ union(){ translate(v=[0,0,height/2]) cube(size = [26,14,height], center = true); translate(v=[-13,0,0]) rotate(a=[0,0,30])cylinder(h = height, r=7, $fn=6); translate(v=[13,0,0]) rotate(a=[0,0,30])cylinder(h = height, r=7, $fn=6); } translate(v=[-14,0,0]...
glb/cad_18fde797bf73.glb
Create a rigged die as a cube with a side length of 100mm. The die is hollowed out by removing a central sphere with a radius of 49mm, but this internal void is shifted upward along the Z-axis by 12.5mm to create a heavier base, weighting the die to favor the opposite face. To allow a view of the internal cavity, remov...
l=100; ep=1; f=75; rigged=6; cut=1; dot=l/10; ecart=2.5; dot_depth=0.1; arrondi=0.8; $fa=10; $fs=0.1; il=l-ep*2; roll=[ [0,0,0], [0,90,0], [90,0,0], [-90,0,0], [0,-90,0], [0,180,0] ]; intersection() { difference() { difference(){ difference(){ cube([l,l,l],center=true); difference() {s...
glb/cad_200e201dc513.glb
Create a 12V power supply cover with a rectangular footprint of 56mm by 121mm and a base thickness of 3mm. Build the walls by adding two 3mm thick vertical sections: one along the x-axis (3mm wide, 75mm high) and one along the y-axis (3mm wide, 75mm high), with additional 3mm thick lips at the corners. Cut a rectangul...
main(); module venttype1(rad = 10) { translate([0,0,rad]) rotate([0,90,0]) cylinder(h=50, r=rad); } module venttype2(len=10, width=2) { translate([0,0,0]) cube([len,width,5]); translate([0,(width /2),0]) cylinder(h=5, r=(width /2)); translate([len,(width /2),0]) cylinder(h=5, r=(width /2)); } module main() ...
glb/cad_4e9a2ade2b64.glb
Create a Prometheus hotend support bracket. Start with a base shape consisting of a cylinder with a 14mm diameter and 9mm height, attached to a rectangular block measuring 72mm in length, 7mm in width, and 9mm in height. At the far end of this block, add another cylinder with a 7mm diameter and 9mm height. Carve out s...
$fn=50; rotate(a = 90, v = [1,0,0]) difference(){ union(){ rotate(a = -90, v = [1,0,0]) union(){ difference(){ union(){ cylinder(d=14,h=9); union() { cube([72,7,9]); translate([72,3.5,0]) cylinder(d=7,h=9);}; } translate([0,0,-1]) cylinder(d=3.5,h=11); }; translate([25,7,0]...
glb/cad_6aa00d448693.glb
Create a Prometheus hotend support for a Smartrap printer. Start with a solid rectangular base measuring 24mm wide, 12mm deep, and 15mm high. At the center of the top face, remove a large semi-cylindrical channel with a diameter of 12mm and a height of 16mm. To create the mounting points, add two vertical cylinders wit...
$fn=50; rotate(a = 90, v = [1,0,0]) difference(){ union(){ rotate(a = -90, v = [1,0,0]) union(){ translate([25,7,0]) cylinder(d=6,h=12); translate([49,7,0]) cylinder(d=6,h=12); translate([25,7,0]) cylinder(d1=8,d2=0,h=8); translate([49,7,0]) cylinder(d1=8,d2=0,h=8); }; translate([25,0,-15])...
glb/cad_1138cd3a1b78.glb
Create a bread stamp featuring a mirrored "IHS" signature and a cross. The base is a cylinder with a diameter of 55mm and a height of 10mm. The bottom face of the base is modified by a sphere with a 50mm radius, offset by 12mm, to create a convex underside. Around the perimeter of the base, add an ornamental ring cons...
use <threadlib/threadlib.scad> diameter_base = 55; cube_length = 5; number_of_cubes = 25; points=[[0,0],[2.5,0],[1,3],[0.8,7],[0.2,8],[0,8]]; x_offset = 2; y_offset = 2.5; x_scaling = 1.01; y_scaling = 1.01; z_scaling = 1.01; outer_radius = 50; offset_outer_radius = 12; type = "M12"; turns = 4; Douter = t...
glb/cad_e025d0a0ec79.glb
Create an IHS stamp for bread consisting of a handle and a stamping head. The handle is a composite shape formed by rotating a profile around a central vertical axis. Start with a circular top cap with a diameter of 25mm. Below this cap, create a tapering neck that narrows down before widening into a bulbous, rounded b...
use <threadlib/threadlib.scad> diameter_on_top = 25; diameter_of_cutaway = 12; bottom_offset = 4; angle = 14; height = 30; type = "M12"; turns = 4; Douter = thread_specs(str(type, "-int"))[2] * 1.2; $fn=60; bolt(type, turns, Douter); rotate_extrude() { intersection() { translate([0,-(height+(diameter_of_cuta...
glb/cad_ce35735bb2ec.glb
Create a "kais box," a small container with a hinged lid. The main body is a rectangular box with internal dimensions of 40mm x 40mm and a height of 30mm. The walls are 1.6mm thick. The box has a bottom, a front wall, and two side walls. The back wall is modified to include a rectangular window cutout, centered to all...
box_x = 40; box_y = 40; box_z = 30; wall = 1.6; add_window = true; $fs = 0.3; $fa = 0.3; o = 0.1; o2 = 0.2; module tr(x,y,z) { translate([x,y,z]) children([0]);} module trz(z) {tr(0,0,z) children([0]);} module trx(x) {tr(x,0,0) children([0]);} module try(y) {tr(0,y,0) children([0]);} module trxy(x,y) {tr(x,y,0) ch...
glb/cad_b65a5eca5b8f.glb
Create a parametric washer by constructing a thin, flat cylinder with an outer diameter of 9mm and a height of 0.5mm. Center a smaller cylindrical hole with a diameter of 3mm through the middle of the shape along its vertical axis to create a ring. Ensure the circular edges are smooth by using a high facet resolution o...
d_inside = 3; d_outside = 9; width = 0.5; difference() { cylinder(h = width, r = d_outside/2, center = true, $fn=50); cylinder(h = width+1, r = d_inside/2, center = true, $fn=50); }
glb/cad_7bef6c97fda4.glb
Create a stovetop funnel consisting of a hollowed-out conical section resting atop a cylindrical base. Start by creating a central cylinder with a radius of 22mm and a height of 40mm. Around this, add a conical outer shell that flares outward from a radius of 20mm at the bottom to a radius of 40mm at the top over a hei...
$fn=150; module head() { color("red") difference() { cylinder(h = 20, r=26); cylinder(h = 20, r=22); } } union() { difference() { union() { translate([0,0,-14]) difference() { cylinder(h = 20, r=28); cylinder(h = 20, r=26.5); } difference(){ cylinder(h = 15, r1 = 20,r2 = 40); ...
glb/cad_41e2c4d60ae9.glb
Create a parametric inside cap by constructing a hollowed cylindrical vessel. Start with a main outer cylinder that has a diameter of 20mm and a total height of 6.5mm. At the bottom of this shape, integrate a wider base disk with a diameter of 22mm and a thickness of 1.5mm, centered along the vertical axis. To create t...
d_outside = 20; height = 5; g_wall = 1; d_base = 22; g_base = 1.5; difference() { union() { translate([0, 0, (height+g_base)/2]) cylinder(h = height+g_base, r=d_outside/2, center = true, $fn=100); translate([0, 0, g_base/2]) cylinder(h = g_base, r = d_base/2, center = true, $fn=100); } translate([0, 0...
glb/cad_a0e7258515be.glb
Create a personalized pen holder designed to fit a Pilot G2 ink cartridge. The model consists of three main components: a body, a cap, and a plug. First, create the pen body as a cylinder with an outer diameter of 11.5mm and a total height of 101mm (including the plug area). The body must have a central longitudinal h...
use <write/Write.scad> use <utils/build_plate.scad> crossSection=0*0; cartstyle = 4*1; label="laird@popk.in"; Handed= 0; Font = "write/Letters.dxf"; f=Font; squish=0.69; fno=6+0; letterspace=1; txs=0.15; c=0; parts=1; clearance=0.1; support=1; ears=1; build_plate_selector = 0; build_plate_manual_x = 100;...
glb/cad_30648e355a4c.glb
Create a customizable key guard for a keyboard. The overall structure is a thin, elevated grid with a height of 2.5mm and a line thickness of 1.8mm. The total length of the main keyboard section is 269.3mm. Construct the grid by creating horizontal rows and vertical columns. The horizontal rows vary in height: the spa...
part = "one_piece"; keyb_l = 269.3; h = 2.5; thickn = 1.8; row_h = 18.2; space_row_h = 21; f_row_h = 13; rows_h = [space_row_h, row_h, row_h, row_h, row_h, f_row_h, 0]; rows_n = len(rows_h) -1; column_default_w = 18.7; f_row_column_default_w = 17.5; cdw = column_default_w; fcdw = f_row_column_default_w; def...
glb/cad_c9289ab4758f.glb
Create a customizable key guard for a keyboard. The object is a thin, grid-like plate with a height of 2.5mm and a grid line thickness of 1.8mm. The overall footprint is 66mm wide. Construct the grid using a series of horizontal and vertical bars. The horizontal bars are spaced according to row heights: the bottom ro...
part = "one_piece"; keyb_l = 66.0; h = 2.5; thickn = 1.8; row_h = 18.2; space_row_h = 21; f_row_h = 13; rows_h = [space_row_h, row_h, row_h, row_h, row_h, f_row_h, 0]; rows_n = len(rows_h) -1; column_default_w = 16.05; f_row_column_default_w = column_default_w ; cdw = column_default_w; fcdw = f_row_column_de...
glb/cad_2086550a7bb0.glb
Create a salt mill funnel by constructing a hollow conical shape with a cylindrical neck. Start with a base cylinder 155mm in diameter and 1.7mm in height. From the top of this base, create a truncated cone that extends 120mm upward, tapering from a bottom diameter of 150mm to a top diameter of 26.7mm. Atop this cone, ...
FN=120; difference(){ union(){ translate([0,0,120])cylinder($fn=FN,d=26.7,h=30); cylinder($fn=FN,d1=150,d2=26.7,h=120); cylinder($fn=FN,d=155,h=1.7); } translate([0,0,-0.5])cylinder($fn=FN,d1=147.2,d2=24.2,h=121); translate([0,0,120])cylinder($fn=FN,d=24.2,h=31); }
glb/cad_495baa29d6e8.glb
Create a salt mill funnel by constructing a solid volume and hollowing out the center. First, create the outer shell by forming a hull between a cylinder with a diameter of 61mm and a height of 28mm, and two concentric rings. The first ring is located at the base, created by rotating a circle with a 3.5mm radius center...
$fn=150; fudge = 1/cos(180/$fn); difference(){ hull(){ rotate_extrude($fn=100)translate([28, 0])circle(r=3.5,$fn=50); cylinder(d=61,h=28); translate([0,0,24.5])rotate_extrude($fn=100)translate([29, 0])circle(r=3.5,$fn=50); } translate([0,0,-3.5])cylinder(d=40*fudge,h=32); transla...
glb/cad_a79b2f1cbcc9.glb
Create a salt mill funnel by starting with a sphere 60mm in diameter, scaled along the Z-axis to 80.9% of its original height to create an oblate spheroid. Remove a cylindrical core from the bottom of this shape with a diameter of 38mm and a height of 22mm, positioned 29mm below the center. Additionally, remove a centr...
$fn=166; union(){ difference(){ scale([1,1,0.809])sphere(d=60); translate([0,0,-29])cylinder(d=38,h=22); translate([0,0,-35])cylinder(d=138,h=21); cube([5.05,5.05,58],center=true); translate([0,0,14.5])cylinder(d=7.7,h=10); } translate([0,0,-14.01]) difference(){ cylinder(d=27,h=8); ...
glb/cad_1429b8b93107.glb
Create a Ship's Clock Stand by starting with a rectangular base plate measuring 130mm in length, 75mm in width, and 20mm in height, centered on the origin. Construct two identical side supports. Each support is formed by the convex hull of three boxes: a central box measuring 130mm by 20mm by 60mm, and two smaller boxe...
CLOCK_DIAMETER=120; CENTER_WIDTH=75; THICKNESS=20; $fn = 100; module side() { hull() { cube([CLOCK_DIAMETER + 10, THICKNESS, CLOCK_DIAMETER / 2], center=true); translate([CLOCK_DIAMETER, 0, -((CLOCK_DIAMETER / 4) - (THICKNESS / 4))]) cube([THICKNESS / 2, THICKNESS, THICKNESS /2], center=true); translate([-CLOC...
glb/cad_e4c800bb9204.glb
Create a PiDP-11 case extension, which is a hollow rectangular sleeve designed to fit over a rear panel. The overall outer dimensions are approximately 313mm wide by 171.5mm high, with a total depth of 35mm. The walls of the extension are 3.5mm thick. The sleeve features a recessed area on the inner face to accommodat...
$fn = 25; debug = true; slop = 0.7; case_depth = 35; ALL=0; LEFT=1; RIGHT=-1; split = RIGHT; split_gap = 0.25; hole_x_separation = 295; hole_y_separation = 148; UL = 0; UR = 1; LL = 2; LR = 3; holes = [ [ -hole_x_separation/2, hole_y_separation/2, 0 ], [ hole_x_separation/2, hole_y_separation/2, 0 ], ...
glb/cad_bb03f2e686ee.glb
Create a 3D model of the Utah Monolith replica by constructing a right triangular prism. The prism should have a total height of 291 mm. The cross-section must be an equilateral triangle with a circumradius of 58 divided by the square root of 3 mm, ensuring the three vertical edges are equidistant from the center. The ...
cylinder(h = 291, r = 58 / sqrt(3), center = center, $fn = 3);
glb/cad_9a2fc35c5e6a.glb
Create a Lighted Celtic Skull Base consisting of two identical mirrored platforms. For each platform, start with a rectangular base measuring 41.15mm in length, 12.8mm in width, and 2mm in height. Center a cylinder with a radius of 5mm and a height of 4mm within this base. On each platform, integrate a leg assembly. T...
use <mcad/nuts_and_bolts.scad> legGap = 0.25; legNut = 3; legRadius = 5; legHole = 3; holderWidth = 12.8; holderLength = 41.15; holderDepth = 2; module leg(legWidth, nutWidth) { translate([0,0,legRadius+0.001]) rotate([90,0,0]) difference() { union() { assign(w = legWidth + nutWidth) { ...
glb/cad_273e80c9144d.glb
Create a tabletop RPG initiative marker. Start by creating a main rectangular body with a length of 50mm, a height of 20mm, and a total depth of 6.5mm. The body should have beveled edges of 1mm. On the underside of the marker, create a rectangular slot that is 40mm long and 2.5mm deep to allow it to clip onto a scree...
marker_text = "Init Marker v1.0"; marker_length = 50; marker_height = 20; slot_depth = 2.5; slot_length = 40; texture = "none"; bevel = 1; marker_depth = 4*bevel + slot_depth; module frame(){ outer_path = [ [4, 0], [marker_length-1, 0], [marker_length, 1], [marker_length, marker_height-1], [marker_len...
glb/cad_37cc19630e9c.glb
Create a Picatinny rail for a G36 airsoft gun by extruding a specific profile along a linear axis. The main body is based on a profile with vertices at [-10.6, 0], [-8.4, 2.2], [8.4, 2.2], [10.6, 0], [7.8, -2.8], [7.8, -3.8], [-7.8, -3.8], and [-7.8, -2.8]. Extrude this profile to a total length of 105mm. To create t...
g36rail(); module g36rail() { translate(v = [0, 0, 3.8]) rotate(a = [-90, 180, 0]) difference() { rail(10); translate(v = [0, 0, -43]) hole(); translate(v = [0, 0, 43]) hole(); } } module hole() { union() { translate(v = [0, 10, 0]) rotate(a = [90, 0, 0]) cylinder(r = 2.5, h = 20); translate...
glb/cad_164166ea422c.glb
Create a personalized name tag that consists of a wavy-walled base and extruded text. First, construct the outer frame. The overall footprint is 35mm long and 15mm wide. The height of the frame varies along its length to create a wave pattern; use a cosine function to modulate the height between a minimum of 2mm and ...
myword = "Scott"; myfont="Phosphate:style=Inline"; fontsize = 8; length = 35; width = 15; height = 8; textheight = 8; myspacing = 1; frequency = 3; steps = 32; border = 2; inset = 2; base = 2; translate([ border + inset, border + inset, 0 ]){ linear_extrude( height = textheight ){ text( tex...
glb/cad_49ace758721c.glb
Create a honeycomb organizer box with a width of 80mm, depth of 80mm, and height of 100mm. The box should have rounded corners with a radius of 10mm. The walls and the base should both have a thickness of 2mm. The box is an open container, meaning the top is open. The interior is hollowed out, leaving only the 2mm thi...
width=80; depth=80; height=100; radius=10; wall_thickness=2; base_thickness=2; hc_cell_size=6; hc_wall_thickness=2; border=25; print_diam=2*(radius+sqrt(pow(width/2-radius,2)+pow(depth/2-radius,2))); echo ("Print diameter =",print_diam); module hc_column(length, cell_size, wall_thickness) { no_of_cell...
glb/cad_dcdf03c058b5.glb
Create a parametric cable holder. Start with a main outer block that is 19mm wide, 19mm long, and 19mm high. Remove a central rectangular section from this block, leaving a wall thickness of 3mm on the left, right, and top sides, while leaving the bottom completely open. Within the remaining top structure, carve out ...
cable_diamater = 3; cable_angle = 90; width = 16; height = 16; length = 16; thickness = 3; difference() { difference() { cube([width+thickness,length+thickness,height+thickness], center=true); cube([width,length+thickness+1 ,height],center=true); } translate([0,0,(height/2)*-1]) cube([w...
glb/cad_5e6d7f9465d9.glb
Create a Braille font module consisting of a rectangular base plate and a series of raised spheres. The base plate should be 10mm wide, 2mm thick, and have a total length determined by the number of characters, with each character occupying a 6.25mm segment of length. For each Braille character, arrange potential sphe...
radius = 0.25; spacing = 2.5; distance = 3.75 + spacing; plate_height = 10; plate_thickness = 2; $fn = 10; module letter(bitmap) { row_size = 2; col_size = 3; bitmap_size = row_size * col_size; function loc_x(loc) = floor(loc / row_size) * spacing + spacing; function loc_y(loc) = loc % row_size * spacing + (d...
glb/cad_a5ad8f64dda8.glb
Create a wood glue cap by starting with a central vertical cylinder 10.5mm in diameter and 24mm tall, sitting atop a wider, flat circular base 16mm in diameter and 2mm thick. Bore a 6mm diameter hole straight through the center of both the base and the vertical cylinder, extending the hole to a total height of 42mm. Fi...
module cap() { difference() { union() { cylinder(r=5.25, h=24); cylinder(r=8, h=2); } cylinder(r=3, h=42); } } difference() { cap(); translate([-6, 0, 16.5]) rotate([12, 0, 0]) cube([12, 20, 24]); }
glb/cad_ca2363d7d63b.glb
Create a Velcro-like fastener consisting of a rectangular base plate and a grid of protruding notches. Start by creating a rectangular platform 10mm wide, 20mm long, and 0.7mm high. On top of this platform, arrange a grid of cylindrical notches spaced 2mm apart in both the width and length directions. Each notch is com...
Width=10; Length=20; NotchSize=145; Fastener(); module Fastener(){ NotchDiameter=NotchSize/100; PlatformHeight=0.7; NotchDistance=2; NotchHeight=1.3; NotchShape=0.9; $fn=12; cube([Width,Length,PlatformHeight]); for(i=[1:NotchDistance:NotchDistance*floor(Width/NotchDistance)]){ for(j=[1:NotchDistance:NotchDistance...
glb/cad_1140ddc734f6.glb
Create a recycling symbol consisting of three chasing arrows forming a triangle, with a central number and a material label. The overall symbol should be scaled to a width of 20mm. Construct the three arrows by creating a rounded triangle with a thickness of 0.8mm. Each arrow is formed by subtracting a smaller rounded...
demo=1; type="ABS"; size=20; weight="thick"; T=0; font=weight == "thick" ? "Arial:style=Black" : "Microsoft Sans Serif:style=Regular"; if(demo) color("SteelBlue") { recycling_symbol("ABS", 30, 2, [-25,45,0], rot=[0,0,45], t=8); recycling_symbol("PLA", 30, 2, [25,45,0], t=6); recycling_symbol("PP", 20, 2, [-35,...
glb/cad_41b25221a04c.glb
Create a Fan Grid Multi Holes Generator consisting of a series of concentric rings of cylinders. The overall layout is centered on a circular area with a total rotor diameter of 38mm. Each individual cylinder must have a diameter of 4mm, a height of 10mm, and a 20-facet resolution to appear as a low-poly prism. The cy...
RotorDiameter=38; HolesDiameter=4; HolesRingsSpacingFraction = 0.4; Height = 10; Resoultion=20; echo("RotorDiameter=",RotorDiameter); echo("HolesDiameter=",HolesDiameter); echo("Height=",Height); echo("Resoultion=",Resoultion); HolesBoundingBox = HolesDiameter*(1+HolesRingsSpacingFraction); echo("HolesBoundingBox...
glb/cad_76f6d1c52223.glb
Create a rectangular hex grid pattern with a total width of 10mm, length of 20mm, and a thickness of 0.5mm. The object consists of a solid rectangular base with a hollowed-out center, leaving a border frame of 2mm around the edges. Fill the interior of the rectangle with a repeating honeycomb pattern of hexagonal rin...
width=10; lenght=20; height=5; border_width=20; hex_radius=2; hex_border_width=5; xborder=(border_width/10<width)?width-border_width/10:0; yborder=(border_width/10<lenght)?lenght-border_width/10:0; x=sqrt(3/4*hex_radius*hex_radius); ystep=2*x; xstep=3*hex_radius/2; module hex(x,y) { difference() { translate...
glb/cad_1479e79b127d.glb
Create a custom slide lid storage box consisting of a main container and a sliding lid. For the main box, create a rectangular shell with internal dimensions of 175mm by 95mm and a height of 6mm. The exterior walls should be rounded using a 2mm radius. To create the opening, remove a central rectangular volume of 175mm...
$fn=60; x=175; y=95; z=6; w=3; r=45; module box(){ difference(){ minkowski(){ translate([0,0,1]) cube([x+4,y+4,z-2], center=true); sphere(2); }; translate([0,0,2]) cube([x,y,z], center=true); hull(){ translate([-x/2,-y/2,z/2+1]) cylinder(d1=5,d2=1, h=2, center=true); tr...
glb/cad_13e7a92fbabe.glb
Create a Flashforge Bowden conversion mount consisting of two symmetrical mounting blocks. For each block, start with a rectangular base of 30mm width, 25mm depth, and 20mm height. Subtract a rectangular volume from the bottom center to create a cradle for an aluminum block, leaving a base thickness of 5mm. On the to...
include <options.scad> include <MCAD/units/metric.scad> include <MCAD/motors/stepper.scad> use <MCAD/shapes/polyhole.scad> use <MCAD/shapes/triangles.scad> use <MCAD/fasteners/nuts_and_bolts.scad> use <screwholes.scad> use <bowden-trap.scad> module basic_alublock_mount_shape () { width = overall_width; differ...
glb/cad_bab36eaff65a.glb
Create a motor mount for a quadcopter consisting of two identical parts. For each part, start with a rectangular block 30mm wide, 30mm deep, and 10mm high. Remove a cylindrical channel with a radius of 4mm from the center of the top face, extending through the width of the block. Cut two rectangular slots 8mm wide and ...
$fn = 200; module ScrewHole(height, diameter) { cylinder(height, d = diameter); translate([0, 0, 0.5]) cylinder(1.5, d1 = diameter + 3, d2 = diameter); } module Mount(pipeDiameter, width, depth, height, screwSpace, thickness, motorScrewDiameter=undef, screwPatternAngle = 0, motorScrewDistance1=16, motorScrewDista...
glb/cad_7039e31fdfa1.glb
Create an enclosure for a LoRa Button board consisting of a main box and a lid. The main box is a rounded rectangular shell with external dimensions of 35.96mm width, 47.69mm length, and 20.1mm height. It has a wall thickness of 3mm and corner radii of 5mm. The interior is hollowed out to accommodate a PCB and batter...
pcb_w = 28.96; pcb_l = 30.69; mholes = [ [2.32, 2.32], [26.64, 2.32], [2.32, 28.37], [26.64, 28.37] ]; mhr = 1.5; pcb_support_margin_x = -0.5; pcb_support_margin_y = 0.75; pcb_outer_margin_x = 1.75; pcb_outer_margin_y = 13.5; pcb_bh = 8.5; pcb_th = 1.6; pcb_ah = 7; wt = 3; bt = 3; lid_tol = 0.2; ...
glb/cad_496f0614134b.glb
Create a Customizable Desk Cable Clip designed to secure a cable to a desk edge. Start by creating a main rectangular block with a width of 20mm, a depth of 20mm, and a total height of 24.6mm. From the center of this block, remove a rectangular section to create a desk slot that is 20mm wide, 20mm deep, and 17.82mm hig...
deskthickness=18; desksnugness=1; cablethickness=7; cableprotrusion=0.1; cableslack=0.1; cabletaper=0.5; clipwidth=20; clipdepth=20; clipthickness=3; maxsnugfit=deskthickness/10.0; snugdeskthickness =deskthickness- ((maxsnugfit/100.0) * desksnugness); rotate([0,90,0]) difference() { union() { mainthickness=...
glb/cad_3d3a2d473348.glb
Create a Customizable Set Screw Ring. Start by constructing a main ring with an inner diameter of 8mm and a thickness of 6mm along the Z-axis. The ring should have a cross-sectional width of 4.3mm, with all outer corners rounded by a 1mm radius. On one side of the ring, create a rectangular cutout to house a nut. For ...
D_SCREW = 0; O_SCREW = 0; D_INNER = 8; W_RING = 4.3; T_RING = 6; D_NOZZLE = 0.4; R_CORNER = 1; T_XY = 0.1; T_WALL = D_NOZZLE * 1.05; T_MIN = 1; EPS = 0.01; $fn = 100; module rounded2d(r = 0) { offset(r = r) offset(r = -r) children(); } D_THREAD = [2.4, 2.9, 3.40, 4.5]; H_THREAD = [1.2, 1.6, 1.65, 2.7]; A_...
glb/cad_bb9f3a91e995.glb
Create a Z-Minimum endstop support shelf with an overall footprint of 17mm width, 28mm length, and 10mm height. The main body is a rectangular block with a 2mm border. At the center of the block, create a cutout divot with a radius of 5mm (3mm base radius plus 2mm border). This divot is formed by removing a 10-sided ...
module z_shelf() { outside_length = 28; outside_height = 10; outside_width = 17; border_width = 2; divot_depth = 3; space_between_holes = 19; hole_size = 3.1/2; top_hole_offset = 12.5; nut_depth = 3.5; nut_width = 6.25; board_depth = 3; backtab_corner_radius = (outside_length-space_between_holes)/2; diffe...
glb/cad_fd9792ab5b99.glb
Create a Z-Minimum mechanical endstop support part. Start with a base that is 28mm long and 10mm high. The base consists of a central rectangular section with two semi-circular ends, each with a radius of 4.5mm, centered 19mm apart. On top of this base, add a rectangular block that is 20mm high and 14.25mm wide, cent...
module z_slider() { outside_length = 28; outside_bottom_height = 10; outside_top_height = 20; border_width = 2; space_between_holes = 19; hole_size = 3.1/2; screw_head_size = 6.25/2; nut_depth = 3.5; nut_width = 6.25; board_depth = 3; corner_radius = (outside_length-space_between_holes)/2; difference() { ...
glb/cad_6b5bdd3e236c.glb
Create a screw boss model consisting of a rectangular base with rounded corners. The base has a width and length of 10mm and 10mm, with a fillet radius of 2mm. For a standard boss, create a solid block of these dimensions. To create a clearance hole, remove a cylinder with a diameter of 3mm running through the center...
use <../src/screwBoss.scad>; $fn = 20; headHeight = 3; headDiam = 5.4; screwLength = 10; screwDiam = 3; nutHeight = 2.4; nutFlats = 5.5; filletRadius = 2; bossW = 10; translate([0, 3*bossW, 0]) linear_extrude(1) text("Normal", size=15, font="Liberation Sans", halign="Left"); exampleSet(false); translate([0, 10*b...
glb/cad_b328cb6dfc55.glb
Create a cluster of nine linked coasters arranged in a triangular pattern. Each individual coaster is a shallow cylinder with an outer diameter of 78mm, a total height of 9mm, and a base thickness of 4mm. Hollow out the center of each cylinder to create a lip, leaving an inner diameter of 70mm and a remaining wall heig...
rows = 3; columns = 3; arrangement = "Triangle"; inside_diameter = 70; thickness = 4; lip_height = 5; outside_diameter = inside_diameter + (thickness * 2); module coaster(x, y) { translate([x,y,0]){ difference() { cylinder(d=outside_diameter, h=(thickness + lip_height)); if (lip_height...
glb/cad_a78c4c1a21d8.glb
Create a pneumatic tube capsule consisting of a hollow cylinder with conical ends. The main body is a hollow cylinder with an outer radius of 20.32mm, an inner radius of 17.78mm, and a length of 111.125mm. Cap both ends of this cylinder with identical conical sections; each cap should have a base radius of 20.32mm, a t...
res = 100; inch = 25.4; capsule_thickness = 1; capsule_length = 4.375*inch; capsule_outer_radius = 0.8*inch; capsule_inner_radius = capsule_outer_radius-capsule_thickness; overall_length = capsule_outer_radius*2 + capsule_length; tip_radius = 0.375*inch; capsule_opening_radius = capsule_inner_radius/2 + 5; module cap...
glb/cad_f9f8b2142241.glb
Create a Coldshoe Mount for a flashlight. Start by creating a base consisting of two parallel rectangular plates, each 2.24mm thick and 18mm wide, separated by a gap of 1.5mm. Between these plates, add a central supporting block that transitions into a cylindrical clamp. The clamp is a hollow cylinder with an outer ra...
mountBracketThickness = 2.24; hasTopClamp = true; gapDistance = 1.5; clearance = 18; flashlightDiameter = 15; clampTightness = 2; clampDepth = 9.5; clampThickness = 1.5; clampGapAngle = 120; mountWidth = 18; clampRadius = (flashlightDiameter - clampTightness) / 2; ringRadius = clampRadius + clampThickness; to...
glb/cad_1f602ed82dde.glb
Create a face mask ear saver consisting of a central rectangular body with integrated hooks and text. The main body is defined by two parallel horizontal strips, each 120mm long and 3mm wide, separated by a vertical gap of 6.8mm. These strips have a thickness of 0.8mm. At both ends of the strips, add hooks that extend...
width = 25; length = 120; strip_width = 3; hook_width = 3; strip_spacing = 6.8; strip_height = 0.8; hook_height = 1.2; text_height = 1.8; message = "TEXT"; font_size = 7.5; horizontal_text_adjust = 0; vertical_text_adjust = -4; text_fit_length = false; second_hook = true; third_hook = false; hook_spacing...
glb/cad_86e02b32d291.glb
Create a Magnet Strike bracket. Start with a main body that is a cube of 20mm width and 20mm height, with a base depth of 20mm and a base gauge thickness of 3.5mm. On the front face, create a recessed strike plate area. This area is defined by a central rectangular cutout for a magnet, measuring 2mm in thickness (str...
C_CONSTANT = 0 + 0; C_NONE = C_CONSTANT + 0; C_MAX = C_CONSTANT + 999999; SCG_OVERLAP = C_CONSTANT + 0.01; C_MIN_OBJ_GAUGE = C_CONSTANT + 1.0; C_MIN_COUNTER_SINK_DEPTH_STOP = C_CONSTANT + 1.0; C_MIN_FASTENER_THREAD_DIAMETER = C_CONSTANT + 0.0; strike_plate_thi...
glb/cad_ba5d48af1abf.glb
Create a toilet flush lever repair part starting with a tapered cylinder that has a height of 10mm, a bottom radius of 7mm, and a top radius of 6mm, using 30 facets for the circular cross-section. Attached to the side of this cylinder, center a rectangular block measuring 20mm by 4.8mm by 4.8mm, positioned so its base ...
difference () { union () { cylinder(r1=7,r2=6.0,h=10,4FN=30); translate([0,-4.8/2,5.2]) cube(size=[20,4.8,4.8]); intersection () { translate([2.0,0,7.5]) rotate([0,90,0]) cylinder(r1=6.0,r2=2.5,h=8); translate([0,-5.6,5.2]) cube(size=[20,11.2,4.8]); } } translate([0,0,-0.1]) cylinder(r=2,h=12); translate([-3.3,-3.3,-0...
glb/cad_66e831aa3b47.glb
Create a Planter Water Diffuser by constructing a hollow cylindrical pot with an outer diameter of 200mm and a height of 52mm. The pot should have a wall thickness of 1.4mm. Remove a central cylindrical core with a diameter of 50mm from the interior to create a ring-shaped reservoir. Cut a wide vertical slot through ...
$fn = 30; fine = 90; outsideDiameter = 200; insideDiameter = 50; potHeight = 52; diameterOfOrifice = 1.8; shellThickness = 1.4; OD = outsideDiameter; ID = insideDiameter; T = shellThickness; H = potHeight; orf = diameterOfOrifice; translate([0,0,0]) feederPot(); module feederPot() { difference() { ...
glb/cad_b68394ba997d.glb
Create a customizable button by starting with a main cylindrical disk that has a diameter of 20mm and a height of 2mm. Remove four smaller cylindrical holes from this disk, each with a diameter of 2mm. These holes should be positioned symmetrically around the center, with each hole offset by 2mm from the X and Y axes (...
$fn = 64*1; diameter = 20; height = 2; number_of_holes = 4; hole_diameter = 2; hole_offset = 2; lip_ratio = 60; edge_ratio = 90; main(); module main(){ difference(){ cylinder(h = height, r = diameter/2); if (number_of_holes == 1) { oneHole(); } else if (number_of_holes == 2) { twoHoles(); } else if (n...
glb/cad_46f78460f6a0.glb
Create an S-hook consisting of a continuous rod with a radius of 1mm. Start with a top arc that has a radius of 5mm and spans an angle of 240 degrees. From the end of this arc, extend a straight cylindrical section of the rod for 10mm. From the end of that straight section, add a bottom arc with a radius of 8mm that al...
straight_length = 10; rod_radius = 1; curve_radius_top = 5; curve_angle_top = 240; curve_radius_bottom = 8; curve_angle_bottom = 240; caps = "ball"; cap_size = 1.5; $fn = 20; module half_hook(cr, ca) { translate([0,cr,0]) rotate(-90) { rotate_extrude(angle=ca) translate([cr,0,0]) circle(rod_radius); ...
glb/cad_71d94e84cbe3.glb
Create a Simple Yurt model by stacking three concentric cylindrical sections. Start with a base cylinder that has a radius of 20mm and a height of 3mm. On top of this base, place a tapered cone (frustum) with a bottom radius of 20mm, a top radius of 25.4mm, and a height of 25.4mm. Above the tapered section, add a final...
res = 100; base_h = 3; base_r = 20; tapered_r = (25.4*2)/2; tapered_h = 25.4; top_h = 0.75*25.4; difference() { union(){ cylinder(r=base_r,h=base_h,$fn=res); translate([0,0,base_h]) cylinder(r1=base_r,r2=tapered_r,h=tapered_h,$fn=res); translate([0,0,base_h+tapered_h]) cylinder(r1=tapered_r,r2=2,h=top_h,$fn=res); ...
glb/cad_f9521f113cdb.glb
Create a Topeak QuickTrack MTX rack wedge mount. Start with a rectangular base plate measuring 160mm wide by 250mm long with a thickness of 4mm. Centered on top of this plate, construct a wedge-shaped profile that runs the full 250mm length. The wedge should taper from a minimum width of 55.7mm at the bottom to a max...
whole_len = 250; mount_wid = 160; wedge_maj = 61.2; wedge_min = 55.7; wedge_cutout = 35; zip_cutout = 4; wedge_ht = 6; wedge_cutout_depth = 7; wedge_cutout_len_margin = 50; wedge_cutout_len = whole_len-wedge_cutout_len_margin; mount_thick = 4; module mount_solids() { translate([0,0,mount_thick]) difference...
glb/cad_0f4b2488850d.glb
Create a Cupcake XY Stage Quick Release Kit consisting of four primary components. First, create two rod cover plates. Each plate is a rectangular block 33mm long, 3mm wide, and 5mm thick. On the top surface of each plate, center a keyhole slot. This slot consists of a circular hole with a radius of 0.75mm that opens...
$fn=36; module rightTriangle (adjacent=0, opposite=0, height=10, hypotenuse=1){ if (adjacent!=0 && opposite!=0 ) linear_extrude(height = height) polygon(points=[[0,0],[adjacent,0],[adjacent,opposite]]); if (adjacent==0) { if (opposite==0 || hypotenuse==0) echo ("Bad Triangle: a,b,c=",adjacent,opposite,hypot...
glb/cad_3f992a633f29.glb
Create a Cupcake XY Stage Quick Release Kit consisting of two main components: a screw retainer and a rod cap. First, create the screw retainer as a rounded rectangular plate measuring 40mm by 40mm with a thickness of 4mm and corner radii of 10mm. Center a circular hole with a 7mm radius through the plate. Around this...
$fn=18; module roundRect (size=[10,10,10], r=3, center=true){ rad = min(r, size[0]/2, size[1]/2); off = (center==true ? [-size[0]/2,-size[1]/2,-size[2]/2] : [0,0,0] ); union(){ translate(off){ translate([rad,rad,0]) cylinder (r=rad, h=size[2]); translate([size[0]-rad,rad,0]) cylinder (r=rad, h=size[...
glb/cad_cc29c3ab0848.glb
Create a Parametric Power Strip Holder consisting of two identical mirrored brackets. Each bracket is a rectangular block with a wall thickness of 3mm and an overall support length of 40mm. The main body is a hollowed-out rectangular shell designed to fit a table leg of 30.5mm by 42.5mm. The interior cavity for the p...
wall_width = 3; support_length = 40; screw_hole_diam = 5.8; screw_head_diam = 9.9; nut_diam = 11.1; ps_height = 40; ps_width = 54.5; cable_hole = true; cable_diameter = 26.5; cable_position = [0,0]; border_side = 4; border_end = 4; invert_nut_screw = false; leg_size = [30.5, 42.5]; tolerance = 0.5; fn = ...
glb/cad_bfea17d18528.glb
Create a Parametric Power Strip Holder consisting of two identical mirrored parts. For each part, start with a main rectangular support block with dimensions 46mm in length, 59.6mm in width, and 46mm in height. The walls of this block should be 3mm thick. Inside the main block, create a rectangular cutout to accommoda...
wall_width = 3; support_length = 40; screw_hole_diam = 5.8; screw_head_diam = 9.9; nut_diam = 11.1; ps_height = 40; ps_width = 53; cable_hole = false; cable_diameter = 12.1; cable_position = [0,0]; border_side = 3; border_end = 3; leg_size = [43, 65.8]; tolerance = 0.5; fn = 150; module filleted_rectangl...
glb/cad_489c04c8a609.glb
Create a Parametric Ziggurat composed of seven stacked conical frustums. Each layer is a cylinder with a bottom radius of 5mm and a top radius of 8mm. The layers are stacked vertically along the Z-axis. The first layer has a height of 4.3mm. Each subsequent layer increases in height by 0.01mm compared to the layer imme...
bottom_radius=5; top_radius=8; layers=6; height=4.3; increase=.01; thing(); module thing(){ $fn=148; translate([0,0,-height]) for ( i = [0 : layers] ){ translate([0,0,(i-1)*height+increase+(height+(i-1)*increase)]) if (i>0){ cylinder(r1=bottom_radius,r2=top_radius,h=height+i*increase); } } }
glb/cad_c5dc35ae1aa3.glb
Create a fin alignment jig for a model rocket body tube. Start with a hollow cylinder that has an inner radius of 12.65mm and an outer radius of 15.65mm, and a total height of 25mm. Around the outer perimeter, create three identical radial arms spaced equally at 120-degree intervals. Each arm consists of a rectangula...
tube = "BT-50"; n = 3; stock = 1.5875; fwd = 0; wd = fwd ? fwd : stock; tol = 0.25; wall = 3 + 0; height = 25 + 0; height_tri = 6 + 0; tab_len = 20 + 0; tab_offset = 4 + 0; body_tubes = [ [ "BT-5", 13.2, 13.8 ], [ "BT-20", 18.0, 18.7 ], [ "BT-50", 24.1, 24.8 ], [...
glb/cad_fdf7b9249f58.glb
Create a corner template tool with a radius of 20mm and a thickness of 2mm. The main body is a quarter-circle arc with an outer radius of 20mm and an inner radius of 18mm, creating a curved wall that is 2mm thick. To this arc, add two straight guide walls, each 2mm thick and 10mm high. One guide wall extends from the...
output = 1; radius = 20; guide = 20; pen_size = 1.0; rack_length = 25; rack_width = 25; rack_height = 15.5; plate_thickness = 2; guide_thickness = 2; guide_height = 10; rack_clearance = 0.5; include <common.scad> module ruler() { intersection() { union() { difference() { ...
glb/cad_9b70d0f6f934.glb
Create a Discus fish articulated joint consisting of two interlocking rectangular blocks and a connecting hinge. Both main blocks should have a height of 7mm. First, create a rectangular block with a length of 5mm and a width of 6mm. From this block, remove a central rectangular section to create a recess. Next, co...
$fs = 0.3; $fa = 0.3; test = true; z = 7; o = 0.5; o2 = 2 * o; function flex_overlap() = o; rec_width = 6; rec_length = 5.0; function flex_recess_width() = rec_width; function flex_recess_lenght() = rec_length; ton_width = rec_width - o2; module r90(f=1) {rotate([90*f,0,0]) children(0);} module recess() { transl...
glb/cad_6c23acc330ed.glb
Create a Bridging Test model consisting of a central hub and a series of radiating bridges. Start by creating a central cylinder with a diameter of 24mm and a hollow core with a diameter of 22mm, resulting in a wall thickness of 1mm. Construct a series of rectangular bridges that extend outward from the hub. The brid...
min_bridge_length = 10; max_bridge_length = 100; bridge_increment = 5; bridge_width = 3; bridge_height = 0.8; bridge_z_gap = 0.2; hub_diameter = 24; bridge_angle = 18; wall_thickness = 1; spiralResolution = 12*1; spiralIncrement = 1/spiralResolution; numBridges = ceil((max_bridge_length - min_bridge_length) / ...
glb/cad_03f58b437adc.glb
Create a Z-stage fan mount consisting of two mirrored brackets. For each bracket, start with a main body that is a rectangular plate with a curved, concave cutout on one side. The main structure is based on a central block measuring 7mm by 28.28mm by 9.25mm. From this, remove two large rectangular volumes of 80mm by ...
%color([0.500000, 0.500000, 0.500000, 0.500000]) { union() { translate(v=[75.000000, 0.000000, 0.000000]) { cube(size=[80.000000, 80.000000, 5.250000],center=true); } translate(v=[-75.000000, 0.000000, 0.000000]) { cube(size=[80.000000, 80.000000, 5.250000],center=tru...
glb/cad_a9b8038d26ce.glb
Create a Z-stage fan mount bracket. Start with a main rectangular body that is 80mm wide, 80mm deep, and 5.25mm thick. From this main body, remove a central rectangular section measuring 56.57mm wide by 28.28mm deep, extending through the full thickness, to create a wide slot. Add a vertical support wall that is 2mm t...
mirror(v=[1.000000, 0.000000, 0.000000]) { difference() { union() { difference() { translate(v=[35.000000, 0.000000, 0.000000]) { cube(size=[7.000000, 28.284271, 9.250000],center=true); } union() { translate(...
glb/cad_3c965bb6c151.glb
Create a Z-stage fan mount consisting of a main vertical plate and a supporting base. Start with a central rectangular plate measuring 7mm thick, 28.28mm wide, and 9.25mm high, centered at (35, 0, 0). Add a secondary vertical element by placing a rectangular block measuring 2mm by 28.28mm by 40mm, centered at (38, 0,...
difference() { union() { difference() { translate(v=[35.000000, 0.000000, 0.000000]) { cube(size=[7.000000, 28.284271, 9.250000],center=true); } union() { translate(v=[75.000000, 0.000000, 0.000000]) { cube(size=[80.0000...
glb/cad_257c6f8f2b03.glb
Create a sculpture titled "Interlinked" consisting of three identical, interlocked ring-like links. Each individual link is constructed from a central cylinder with a radius of 7mm and a length of 20mm, capped at both ends by two semi-toroidal shapes created by rotating a circle of the same 7mm radius around an axis 10...
radius=7; facet=32; module endcap(){ intersection(){ rotate_extrude(convexity = 10, $fn = facet*2) translate([10, 0, 0]) circle(r = radius, $fn = facet); translate([-20,0,-20])cube(40);}; }; module middle(){ rotate([90,0,0]) translate([10,0,0]) cylinder(20,radius,radius,$fn = facet); }; module link(){ endcap(); midd...
glb/cad_355e30463e70.glb
Create a Vertical Mirobot pulley. Start with a main cylinder that has a diameter of 38.2mm (calculated from 20 balls with 6mm spacing divided by PI) and a total height of 12mm. At the center of this cylinder, create a raised boss with a height of 6mm and a diameter of 12mm. Inside this boss, carve out a vertical shaf...
$fa = 10; $fs = 0.4; fastening_method = 2; shaft_diameter = 5; ball_diameter = 4.0; ball_count = 20; ball_spacing = 6.0; link_diameter = 1.8; screw_diameter = 3.05; screw_count = 1; nut_diameter = 6.3; nut_height = 2.3; clamp_inner_diameter = 13; clamp_width = 8; flat_spot_diameter = 3; PI = 3.1415927; wheel_diam...
glb/cad_02883e581af5.glb
Create a Vertical Mirobot pulley consisting of a central cylindrical body with a radius of 20mm and a total height of 15mm, centered on the origin. The body is split into three 5mm thick sections: a top disc, a middle disc, and a bottom disc. In the center of the pulley, carve out a vertical shaft hole. This hole is ...
numBalls = 10; difference () { translate([0,0,5]) cylinder(5,25,25); translate([-2.5,8,5]) cube(5); translate([-2.5,-13,5]) cube(5); } difference () { translate([0,0,-5]) cylinder(5,25,25); union () { translate([1,0,-5]) cylinder(5,2.5,2.5); cube([3,4.8,5], center=true); translate([-1,0,-5]) cylinder(5,2...
glb/cad_c2d91eac709f.glb
Create a Raspberry Pi case consisting of a bottom base and a top cover. The overall external dimensions are 91.16mm in length, 62.16mm in width, and 28mm in height. Construct the bottom base with a wall thickness of 2.08mm and a floor height of 1.6mm. The base should feature a rounded outer corner radius of 3mm. On th...
$fn = 90; eps = 0.01; stol = 0.1; ltol = 1.0; wt = 2.08; wtt = 0.86; bh = 1.6; ch = 28.0; nh = 3; th = 1.8; pcb_x = 85.0; pcb_y = 56.0; pcb_h = 1.4; sh_dx = 58.0; sh_dy = 49.0; sh_di = 2.9 - stol; sh_di2 = sh_di + 0.9; sh_do = sh_di + 2*wt; sh_do2 = sh_di2 + 0.9; sh_h = 4; sch_dh = 5.5+4*stol; sch_h = 3+2*stol; fan...
glb/cad_07a2d07a88be.glb
Create a cable clip with a material thickness of 2mm. The main body consists of a rectangular section for the cable and a rounded section for the nail. First, create the cable holding area as a block with a width of 6.3mm and a height of 6.3mm. The corners of this cable hole should be fully rounded. Attached to thi...
Cable_Hole_Width = 6.3; Cable_Hole_Height = 6.3; Cable_Hole_Corner_Radius_Percentage = 100; Nail_Hole_Diameter = 2.2; Nail_Head_Diameter = 3; Nail_Head_Countersink_Angle = 90; Nail_Outer_Corner_Radius_Percentage = 100; Material_Thickness = 2; Rotate_For_Printing = 1; module cableClip() { $fn = 100; cableH...
glb/cad_1d7d7afca0bf.glb
Create a Customizable Tripod Head consisting of a base plate and a top plate. The base plate is a cylinder with a diameter of 15mm and a height of 5mm. Center a hole with a diameter of 6.136mm through the base plate. On the side of the base plate, add a hinge assembly consisting of three eye-hook shapes. Each eye-hoo...
part=0; slot_hole=1; smooth=60; $fn=smooth; part_gap=0.25; part_bevel=0.75; head_dia=13; head_thk=6; screw_hole_gap=0.3; base_dia=15; base_hi=5; top_wid=30; top_leng=40; top_hi=5; hinge_leng=13; hinge_wid=12; hinge_thk=4; hinge_offset=15; hinge_gap=0.25; n_hinge=3; screw_dia=5.768; screw_hole=screw_d...
glb/cad_215e7bb7e213.glb
Create a Customizable Photo Frame consisting of two matching mats: a bottom mat and a top mat. For the bottom mat, create a rounded rectangular frame with an outer width of 54mm and length of 54mm. The frame has a border width of 4mm and corner radii of 2mm. The total height of this mat is 2.8mm. Within this frame, su...
photoWidth = 50; photoLength = 50; photoHeight = 1.8; photoSizeTolerance = 0.5; borderSize = 4; borderThickness = 1; borderRoundRadius = 2; jointWidth = 1.2; jointLength = 8; jointHoleTopThickness = 0.6; antiWarpingSize = 10; antiWarpingThickness = 0.2; antiWarpingTotalNumber = 4; enableTopMatAntiWarping = 0; enab...
glb/cad_2108eea0e90e.glb
Create a control deck for an arcade cabinet. Start with a base plate that is 226mm long, 116mm wide, and 3.3mm thick, featuring rounded corners with a radius of 22.6mm. On top of this base, add a second centered plate that is 218mm long, 109mm wide, and 3.5mm thick, also with rounded corners (radius 17.7mm). Cut sever...
screen_front=false; screen_back=false; deck=true; screen_l = 228; screen_w = 148; screen_h = 3.01; view_l=210; view_h=133; rearaccess_l=188; rearaccess_w=74; rearaccess_x=17; rearaccess_y=94; button_big_inner_d=29.7; button_big_outer_d=34; button_big_spacing=8; button_big_x_num=4; button_big_y_num=2; button_big_pos...
glb/cad_13fd1bea7892.glb
Create a cylindrical lampshade mount consisting of a base ring, a central hub, and connecting spokes. First, create the outer ring with an inner diameter of 116.5mm (119.5mm minus twice the 1.5mm offset) and an outer diameter of 125.5mm (119.5mm plus 3mm wall thickness and 3mm offset), with a height of 10mm. This rin...
Inner_diameter_lampshade = 119.5; outer_diameter_mount = 28.3; height_of_hub = 18; height_of_ring = 10; height_of_lampshade = 150; wall_thickness_of_lampshade = 3; spokes = 5; height_of_lamp_center_above_mount = 60; no_lifted_hub = false; generate_upper_ring_only = false; $fn = 32; dl = Inner_diameter_lampsh...
glb/cad_2754db4ea821.glb
Create a 3D model of a cube dissection puzzle piece. Start by creating a solid cube with side lengths of 50mm. From this cube, remove two large volumes to leave behind a single pyramid. The first volume to remove is a cube with side lengths of 100mm, rotated 45 degrees around the X-axis and shifted 1mm along the X-axis...
size = 50; difference (){ cube(size); rotate([45,0,0])translate([-1,0,0])cube(2*size); rotate([0,-45,0])translate([0,-1,0])cube(2*size); }
glb/cad_8cd8253259f4.glb
Create a Center Finder tool starting with a main block measuring 100mm x 100mm x 15mm. Subtract a central cross-shaped void to create four corner guides. The void consists of two intersecting rectangular channels: one aligned with the X-axis measuring 19.05mm (woodWidth) by 101mm by 13mm, and another aligned with the...
$fn =30; woodWidth = 0.75; woodWidth2= 1; tolorance= 0.2; sidewallThickness= 3; notchSpacing=0.25; scribeWidth = 1.6; woodWidth2MM = woodWidth2 *25.4+tolorance; woodWidthMM = woodWidth*25.4+tolorance; cornerWidth= (100-woodWidthMM)/2-sidewallThickness; cornerDepth= (100-woodWidth2MM)/2-sidewallThickness; numOfMarkings...
glb/cad_027318e9b60a.glb
Create a rugged battery box consisting of a bottom container and a snap-fit lid. The overall external dimensions are approximately 74mm in length, 64mm in width, and 58mm in height. Both the lid and base should have a shell thickness of 3mm and 4mm fillets on the corners. For the bottom container, create a hollow rect...
$fn=64; d1=15; l1=52; r1=4; c1=6; d2=11; l2=46; r2=5; c2=5; spacer=1; showTop=true; showBottom=true; rib=15; shell=3; fillet=4; length=r1*(d1+spacer)-spacer+2*shell+4; width=c2*(d2+spacer)+c1*(d1+spacer)-spacer+4; height=l1+2*shell+2; hBottom=0.75*height; hTop=height-hBottom; if(showTop){ translate...
glb/cad_f34ea458a0b7.glb
Create a phone mount vent clamp consisting of a base, a threaded tower, and a spherical head. Start with a rectangular base plate 28mm wide, 35mm long, and 3mm thick, with rounded top edges. Centered on this base, add a tapered cylinder that transitions from a 25mm diameter at the bottom to 22mm at the top over a heigh...
$fn=80; clamp_len=28; groove_width=4; use <NOPscadlib/utils/thread.scad>; module peg(size) { h = size[2]; w = size[0]-(h*2); l = size[1]-(h*2); difference() { hull() { translate([-w/2,-l/2,0]) sphere(r=h); translate([ w/2,-l/2,0]) sphere(r=h); translate([-w/2, l/2,0]) ...
glb/cad_b141d210e88a.glb
Create a circular disc with a radius of 40mm and a height of 4mm. Within this disc, carve out a series of concentric and repeating geometric patterns. First, create a central circular void with a bottom radius of 20mm and a top radius of 32mm, and a height of 4mm. Inside this central area, place four identical spiral...
module spiral_pt() { difference () { translate ([10,0,0]) cylinder (r=8,h=5); rotate ([0,0,15]) translate ([10,0,0]) cylinder (r=8,h=5); }} module spiral() { for (i=[0:3]) { rotate ([0,0,90*i]) translate ([-2,0,0]) spiral_pt(); }} module mask1() { } module mask2() { difference() { cylinder(r1=15,r2=32,...
glb/cad_c0aa60d3715e.glb
Create an icosphere with a radius of 10mm. Start with a base icosahedron consisting of 20 equilateral triangular faces and 12 vertices. Subdivide this mesh through two levels of recursion: in the first level, split each triangular face into four smaller triangles by connecting the midpoints of each edge and projecting ...
$fn=10; showDebug=true; icosphere(); *test(); module icosphere(radius=10,recursion=2,icoPnts,icoTris){ t= sqrt((5+sqrt(5))/10); s= sqrt((5-sqrt(5))/10); init=(icoPnts||icoTris) ? false : true; verts = [[-s, t, 0], [ s, t, 0], [-s,-t, 0], [ s,-t, 0], [ 0,-s, t], ...
glb/cad_e1182f86265c.glb
Create a Denford ORAC Apron End Cap starting with a rectangular base plate measuring 59mm wide, 90mm high, and 5mm thick. At the bottom left corner of this plate, remove a rectangular notch measuring 16mm wide and 27mm high. On the top surface of the base plate, create two circular mounting holes with a diameter of 6...
height = 90; width = 59; notch_width = 16; notch_height = 27; thickness = 5; notch_to_hole_center = 18; hole_diameter = 6; hole1_to_edge = 5; hole2_to_edge = 15; cylinder_od = 51; cylinder_id = 46; base_to_cylinder = 10; lead_hole_diameter = 20; cylinder_height = 26; cap_depth = 30; mount_offset = notch_to_hole_center...
glb/cad_9a93b7b7a73e.glb
Create a Live Spindle Dust Collector adapter. Start with a rectangular block 84mm wide, 19mm high, and 39mm deep. Centered on the top face, remove a large cylindrical void with a diameter of 58.5mm that extends through the block. This void should be shaped as a hollow tube with a wall thickness of 4mm. On the bottom f...
hole_diameter = 58.5; block_width = 84; block_depth = 39; arch_width = 28; arch_height = 15; wing_width = 14; slant_width = (block_width - arch_width - 2*wing_width)/2; thickness = 4; block_height = arch_height + thickness; hole_x = block_width/2; hole_y = block_height + hole_diameter/2; smb_x = 70; smb_z = 20; smb...
glb/cad_fb2987933e18.glb
Create a Customizable Round Cap with Latch by constructing a hollowed spherical cap and adding a locking ring. Start with a sphere of radius 40mm. Intersect this sphere with a cylinder of diameter 29.8mm to create the main cap body. Hollow out the center of this cap by subtracting a smaller sphere with a radius of 38.7...
W_LATCH = 5.7; H_LATCH = 3.5; O_LATCH = 1; OT_LATCH = 1.3; IT_LATCH = 1.3; D_CAP = 29.8; H_CAP = 5; R_CAP = 40; M_PRINT = 3; EPS = 0.01; $fn = 100; OH_CAP = R_CAP - sqrt(pow(R_CAP, 2) - pow(D_CAP / 2, 2)); IH_CAP = R_CAP - IT_LATCH - sqrt(pow(R_CAP - IT_LATCH, 2) - pow((D_CAP / 2) - IT_LATCH, 2)); H2_CAP =...
glb/cad_05e74677c744.glb
Create a Denford ORAC door by starting with a rectangular base measuring 200mm in length, 5mm in thickness, and 13mm in height. In the center of this base, add a vertical rectangular block that is 8.5mm wide, 13mm high, and 5mm thick, extending upwards from the base. Along the length of the base, integrate four ident...
height = 13; flat_width = 8; thickness = 5; length = 200; bolt_size = 4.5; center_length = bolt_size + 4; doorstop_offset = 5; difference() { union() { cube([length, height+thickness/2, thickness]); translate([(length-center_length)/2,0,0]) { cube([center_length, height+thickness/2, he...
glb/cad_20e4d2c95c25.glb
Create a rectangular door panel for a Denford ORAC lathe. The main panel should be 162.56mm wide, 160mm high, and 28mm deep. Along one 160mm edge, create a vertical hinge strip that is 4.35mm thick. This strip features a central longitudinal cutout to accommodate a hinge pin; the cutout is a cylinder with a diameter of...
inch = 25.4; pin_diameter = 1.75; segment_width = inch / 2; clearance = 1; first_hole = 0; second_hole = 8.5*inch; hole_depth = 7; width = 8.5*inch; depth = 28; height = 6*inch + 8; start_with_space = 0; inner_diameter = pin_diameter + clearance; inner_radius = inner_diameter / 2; outer_diameter = inner_diameter + 3...
glb/cad_f8605a5c545e.glb
Create a rectangular door panel for a Denford ORAC lathe with a total width of 240mm, a height of approximately 162.5mm (6.4 inches + 8mm), and a thickness of 2.75mm. On one long edge, construct a hinge mechanism consisting of a series of repeating segments. Each segment is 12.7mm wide and consists of a cylinder with...
inch = 25.4; pin_diameter = 1.75; segment_width = inch / 2; clearance = 1; first_hole = 0; second_hole = 215; hole_depth = 8; width = 240; depth = 28; height = 6*inch + 8; start_with_space = 0; inner_diameter = pin_diameter + clearance; inner_radius = inner_diameter / 2; outer_diameter = inner_diameter + 3; outer_ra...
glb/cad_0e555146dcda.glb
Create a Denford ORAC door mount by extruding a specific 2D profile to a length of 10mm. The profile is a polygon defined by the following vertices: start at (0,0), go to (0, 15), then to (11.5, 15), then to (21.5, 9), then to (21.5, 0), then to (21.5, 8), then to (11.5, 13), then to (11.5, 0), and finally back to (0,0...
height = 13; flat_width = 8; thickness = 2; length = 10; bolt_size = 4.5; doorstop_offset = 5; mount_thickness = bolt_size+doorstop_offset+2; difference() { linear_extrude(length) polygon([ [0, 0], [0,height+thickness], [mount_thickness+flat_width+1,height+thickness]...
glb/cad_ce96d61d2c09.glb
Create a rectangular frame for the Denford ORAC doors with an outer dimension of 106.7mm by 138.1mm and a thickness of 2mm. From this solid plate, remove a central rectangular section measuring 86.7mm by 118.1mm to create a border that is 10mm wide on all sides. At two opposite corners of the frame, create circular hol...
inch = 25.4; mc_h = (3+3/4)*inch; mc_v = (5+3/16)*inch; height = mc_v + 10; width = mc_h + 10; thickness = 2; mc_x = width/2 - mc_h/2; mc_y = height/2 - mc_v/2; difference() { cube([width, height, thickness]); translate([10,10,0]) cube([width-20, height-20, thickness]); translate([mc_x, mc_y]) cylinder(...
glb/cad_340708177d24.glb
Create the Denford ORAC Doors by constructing two rectangular panels. Each panel should be designed to mount electronics on the rear side. For each door, create a flat plate with a thickness of 5mm. The overall shape is a rectangle, but you must incorporate a custom cutout on the face of the plate to form a stylized l...
fudge = 0.1; module smoothie_logo(h) { scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[-11.546875,-82.140345],[-12.311269,-81.845492],[-12.734375,-81.140345],[-13.140625,-79.015345],[-13.515625,-77.015345],[-17.046875,-57.984095],[-17.464976,-57.188...
glb/cad_d78101ad56c9.glb
Create a Denford ORAC Tail Stock Lever by constructing a flat base and a vertical handle. Start with a base plate 11mm thick, formed by the convex hull of two circles with a diameter of 22mm, one positioned at the origin and the other 72mm away along the x-axis. From this base, remove a hexagonal hole with a flat-to-fl...
thickness = 11; height = 50; nut = 12*1.19; length = 72; wall = 3; diameter = nut + 10; $fn=1000; difference() { hull() { cylinder(h = thickness, d = diameter); translate([length,0,0]) cylinder(h = thickness, d = diameter); } cylinder(h = thickness, d = nut, $fn = 6); transla...
glb/cad_e095765ccae1.glb
Create a tool holder with a total width of 152.4mm. Start by constructing a hook-shaped base: create a top horizontal ridge 25.4mm wide and 5mm thick, a vertical back wall 5mm thick and 25.4mm high, and a front vertical face 5mm thick that drops 160mm down from the ridge. Connect these to form a deep channel. Attach a ...
inch = 25.4; ridge = inch; lip = 0.5 * inch; gauge = 0.1 * inch; thickness = 5; drop = 160; shelf = 2 * inch; shelf_thickness = inch; spacing = 2 * inch; number_of_tools = 3; width = spacing * number_of_tools; cube([ridge, thickness, width]); translate([-thickness, 0, 0]) cube([thickness, ridge, width]); translate([...
glb/cad_849b4932f9b2.glb
Create a pumpkin model by arranging six ellipsoids and a central stem. Start by creating an ellipsoid with a radius of 20mm, scaled to 1.15 in the X-axis and 1.25 in the Z-axis. Position and rotate these ellipsoids around the center to form a rounded, ribbed body. Place two ellipsoids at X positions 9 and -9. Add four ...
union() { scale([1.15, 1, 1.25]) translate([9, 0, 0]) sphere(r=20); scale([1.15, 1, 1.25]) translate([-9, 0, 0]) sphere(r=20); } rotate([0,0,55]) scale([1.15, 1, 1.25]) translate([9, 0, 0]) sphere(r=20); rotate([0,0,-50]) scale([1.15, 1, 1.25]) translate([9, 0, 0]) sphere(r=20); rotate([0,0,-100]) scale([1.15, ...
glb/cad_0fba7082ef36.glb
Create a Parametric Portafilter Fork for a Rancilio Rocky espresso grinder. Start by creating a main rectangular box with a width of 60mm, a depth of 73mm, and a height of 50mm. From the front of this box, remove a central cylinder with a radius of approximately 15mm to create a concave cradle. Within the main box, c...
boxWidthOriginal = 60 ; boxDepth = 73 ; boxHeight = 50 ; boxDepthIntersect = 62 ; vaneThickness = 3 ; supportIn = 17 ; boxChopDepth = 63 ; screwHoleID = 5 ; screwHoleSep = 27 ; vaneSep = 13.6 ; portafilterOriginalOD = 40 ; portafilterElektraOD = 58*1.03 ; portafilterElektraHgt = 50 ; totalDepth = 115 ; forkWidth = 10...
glb/cad_7dddd6a23df1.glb
Create a saucer for a plant pot by constructing a large cylinder with a radius of 37.5mm and a height of 8mm. From the center of this cylinder, remove a smaller concentric cylinder to create a hollow interior. This inner void should have a height of 4mm, leaving a floor thickness of 4mm at the bottom. The inner cylinde...
totalheight = 8; baseradius = 75 / 2; flooroffset = 4; bottomwallthickness = 4; topwallthickness = 1; $fn = 360; rotate([0,180,0]) { translate ([0,0,0]) { difference() { cylinder (totalheight, baseradius, baseradius); cylinder (totalheight-flooroffset, (baseradius - topwallthickness), (baseradius...
glb/cad_9ea5fac8a8bf.glb
Create a Lasko Space Heater Knob consisting of a cylindrical base and a wider top cap. Start by creating a main vertical cylinder with a radius of 7mm and a height of 9mm. Remove a central vertical hole from this cylinder with a radius of 4.2mm, but also cut a rectangular slot 10mm wide and 5mm deep through the center ...
shaft = 10; difference(){ cylinder(r=7, h=shaft-1); translate([0, 0, -.1]) difference(){ cylinder(r=4.2, h=shaft); translate([-5, 0, -.1]) cube([10, 5, shaft+1]); } } translate([0, 0, shaft-3]) cylinder(r1=7, r2=35/2, h=8); translate([0, 0, shaft+4.9]) cylinder(r1=36/2, r...
glb/cad_681862487623.glb
Create a customizable shelf bracket consisting of two rectangular legs joined at a right angle with a diagonal support brace. First, create a horizontal leg as a rectangular prism measuring 150mm in length, 25mm in width, and 5mm in thickness. Drill two cylindrical holes with a diameter of 4.5mm through the thickness...
base = 150.0; side = 75.0; width = 25.0; thickness = 5.0; screw_hole = 4.5; $fn = 25; depth = thickness; hole_1 = 40; hole_2 = base - 40; hole_3 = 20; hole_4 = side - 20; angle_attachment = side /2; difference(){ difference() { cube([base,width,depth], center = false); translate([hole_1,width/2...
glb/cad_20eeaa3d21a6.glb
Create a customizable shelf bracket consisting of two perpendicular legs connected by a diagonal brace. First, create a horizontal leg as a rectangular prism measuring 150mm in length, 25mm in width, and 5mm in thickness. Drill two cylindrical holes with a diameter of 4.5mm through the thickness of the leg, centered ...
base = 150.0; side = 75.0; width = 25.0; thickness = 5.0; screw_hole = 4.5; $fn = 25; depth = thickness; hole_1 = .20 * base; hole_2 = .80 * base; hole_3 = .20 * side; hole_4 = .80 * side; angle_attachment = side /2; difference(){ difference() { color("red") cube([base,width,depth], center = fal...
glb/cad_82f5f3a8d4f8.glb
Create a customizable shelf bracket consisting of two rectangular legs joined at a right angle and connected by a diagonal brace. First, create a horizontal leg as a rectangular prism measuring 150mm in length, 25mm in width, and 5mm in thickness. Drill two cylindrical holes with a diameter of 4.5mm through the thick...
base = 150.0; side = 75.0; width = 25.0; thickness = 5.0; screw_hole = 4.5; $fn = 25; depth = thickness; hole_1 = .20 * base; hole_2 = .80 * base; hole_3 = .20 * side; hole_4 = .80 * side; angle_attachment = side /2; difference(){ difference() { color("red") cube([base,width,depth], center = fal...
glb/cad_e564f1258225.glb
Create a seedling planter consisting of a square water reservoir and a conical plant holder. First, construct the reservoir as a square box with an outer dimension of 71.8mm x 71.8mm and a height of 20mm. The walls should be 0.9mm thick, and the floor should be 1mm thick, leaving an internal cavity of 70mm x 70mm. C...
baseheight = 20; basecube = 70 ; flooroffset = 1; basewallthickness = 0.9; cylheight = baseheight; cylradius = basecube / 4; cylwallthickness=0.9; wcyl=5; mcylheight=60; mcylradiusb = cylradius; mcylradiust = cylradius + ( basecube / PI); mcylwall=0.9; mcylholesperlayer=16; $fn = 32; translate ([0,0,0]) {...
glb/cad_1aa7d0af3931.glb