Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Customizable Project Box with an internal cavity of 100mm x 80mm x 26mm and walls 2mm thick. The main body consists of a bottom shell and a top shell. The bottom shell features a floor with four integrated feet pads at the corners, each containing a tapered bolt hole with a head diameter of 5.7mm and a shaft d...
panelGrooveClr=0.7; panelCutClr=0.6; stiffHoleClr=0.5; looseHoleClr=0.7; boltHeadType=1; boltDia=2.7; boltHeadDia=5.7; boltHeadHeight=1.8; standoffDia=7; standoffHeight=5; boxX=100; boxY=80; boxZ=26; wall=2; panelThick=2; feetPosX=7; feetPosY=15; topV= [50, 40, 8, 9, 1.5, 28]; bottomV=[50, 50, 7, 9, 1.5, 24];...
glb/cad_e26822278def.glb
Create a Taranis Q X7 Gimbal Protector consisting of a main horizontal bridge and two symmetrical protective housings for the control sticks. The main body is a rectangular bridge 120mm wide, 10mm thick, and 10mm high. Centered on top of this bridge is a locking mechanism consisting of a 15mm wide by 22mm deep by 10mm...
$fn=100; hock(); translate([-25/2+4.5,10-15,25-4]) key(); module key() { ch = 2.75; diam = 4.5; difference() { rotate([0,90,0])cylinder(r1=diam/2,r2=diam/2, h=23-diam/2); translate([22-diam,-ch/2,-diam])cube([7,ch,10]); translate([23-diam/2,0,0])rotate([90,0,0])cylinder(r1=diam/2,r2=1/2, h=2); tran...
glb/cad_7e36670a0284.glb
Create a Somfy remote control hook consisting of a circular base and a central vertical post with a hollow core for a screw. Start by creating a flat circular base with a diameter of 20mm and a thickness of 3mm. Centered on this base, construct a vertical post with a total height of 17.5mm. This post should be a hull f...
diameter=10; hoogte=17.50; $fn=136; somfy_hook(); module somfy_hook() { color("white") translate([0,0,0]) rotate([0,0,0]) difference() { union() { translate([0,0,-hoogte/2]) cylinder(d=diameter+10, h=3, center=true); hull() { ...
glb/cad_d4b564c69ceb.glb
Create a Grohe showerhead cleaning tool. Start by constructing the main body, which consists of a central cylinder with a radius of 25mm and a height of 8mm, centered on the origin. Attach a handle to this cylinder by merging a smaller cylinder with a radius of 10mm and a height of 8mm, positioned 80mm away from the ce...
$fn=64; diam=40; height=4; tool_diam = diam +10; tool_height = height + 4; hole_diam=4.3; tool(); module tool() { difference() { union() { translate([0,-80,0]) cylinder(r=diam/4,h=tool_height,center=true); translate([0,-50,0]) cube([diam/2,60,tool_height],center=true);...
glb/cad_c9a83b2a034d.glb
Create a doorbell cover by starting with a solid rectangular block measuring 54.4mm in length, 23.8mm in width, and 11.2mm in height. Hollow out the center of this block by removing a smaller rectangular volume of 52mm by 21.8mm by 10mm, leaving a wall thickness of 1.2mm on all sides and an open top. Finally, create a ...
hoogte=10; breedte=21.8; lengte=52; gat_diam=17.8; wanddikte=1.2; cover(); module cover() { difference() { translate([0,0,hoogte/2+ wanddikte/2]) cube([lengte+2*wanddikte,breedte+2*wanddikte,hoogte+wanddikte],center=true); translate([0,0,hoogte/2+wanddikte]) cube([lengte, breedte, hoogte],cente...
glb/cad_4a71e3bdc8cb.glb
Create a whiteboard pen rack consisting of a rectangular base with two integrated vertical hooks and two cylindrical cutouts for holding markers. The main base is a rectangular slab measuring 148mm in length, 45mm in width, and 4mm in height. At each end of the base, centered along the length, add a vertical rectangu...
pen_length=138; pen_diameter=16.3; pen_cap_length=29; pen_cap_diameter=16.9; pen_rear_diameter=12.7; pen_rear_length=3.6; pen_rack(); module pen_rack_with_pens() { pen_rack(); translate([0,0,0]) all_pens(space_only=false); } module animate() { pen_rack(); translate([0,0,(1-$t)*100]) all_pens(space_on...
glb/cad_6e1d3294bf00.glb
Create a LaTrax Teton RC tire with a total diameter of 70mm and a width of 30.5mm. The main body is a thick-walled ring centered on a sphere with a radius slightly larger than the tire's own radius to create a rounded profile. Inside the tire, create a hollow cylindrical cavity to accommodate a wheel. This cavity sho...
inner_diameter=44.8; outter_diameter=38.9; tire_diameter=70; tire_width=30.5; direction=1; tiles=15; inner_radius=inner_diameter/2; outter_radius=outter_diameter/2; tire_radius=tire_diameter/2; pk=tire_width/36; module tile_half() { difference () { union () { translate([-4,-1,...
glb/cad_64d6a3a0b1d0.glb
Create a Stencil Maker by starting with a rectangular base plate that is 2mm thick. The plate's width should be calculated based on the text "FRAGILE", where each letter has a width of 2/3 its height. With a letter height of 40mm, the total width of the plate is the combined width of the seven letters plus a 20mm margi...
use<write/Write.scad> sentence="FRAGILE"; letter_height=40; stencil_thickness=2; margin=20; font=0; font_spacing=1.25; font_height_correction=0.73; scoche=0.001; halfscoche=scoche/2; letter_width=letter_height*2/3; sentence_width=letter_width*len(sentence); font_files=["stencil_TNH.dxf", "stencil_fix.dxf"]; mo...
glb/cad_198e5e3cd721.glb
Create a toy truck wheel with a rugged tread. Start by creating a main tire carcass as a thick ring with an outer diameter of 30mm and a height of 9mm. Inside this ring, center a wheel rim with a diameter of 18mm and a height of 9mm. At the center of the rim, add a cylindrical axle hole with a diameter of 5.5mm that ...
module axel1() { $fn = 50; ad=4.8; al=85; difference() { union() { cylinder(d=ad,h=al*.333); translate([0,0,al*.29]){cylinder(d=ad-2,h=al*.333);}; cylinder(d=ad*1.5,h=1); }; difference() { #translate([0,0,al*.55]){cylinder(d=ad-2,h=.5);}; #translate([0,0,al*.55]){cylinder(d=ad-2.5,h=.5);}; };...
glb/cad_e517d15898fa.glb
Create a Floating Tensegrity Helix consisting of two identical mirrored components, a top and a bottom. Each component begins with a base shaped as an equilateral triangle with a side length of 100mm. From this base, extrude a central post that twists 360 degrees as it rises to a height of approximately 20.2mm (calcula...
$fn=50; top=true; side=100; face_h=side*sqrt(3)/2; face_center=face_h*2/3; thick=8; channel_w=1; channel_h=4; hole_d=1; channel_d=thick*sqrt(3)/3*0.6; tetrahedron_h=sqrt(6)/3 * side; face_angle=acos(1/3); edge_angle=acos(1/sqrt(3)); base_h=thick*sin(face_angle); base_w=thick*cos(face_angle)*2; module base_triangl...
glb/cad_e78ace96dab4.glb
Create a 3D model of the Deathly Hallows symbol. Start by constructing a hollow equilateral triangular prism with a height of 90mm and a depth of 40.5mm. The walls of the triangle should have a thickness of 6mm. At the center of the triangle, integrate a hollow sphere with an outer radius of 25.98mm and an inner radiu...
pyramidHeight = 90; resolution = 150; spireThicknessPctPar = 100; spireThicknessPct = spireThicknessPctPar / 100; depthPctPar = 45; depthPct = depthPctPar / 100; $fn = resolution; lineThickness = pyramidHeight / 15; spireThickness = lineThickness * spireThicknessPct; pyramidSideLength = (2 * pyramidHeight) / sqrt(3)...
glb/cad_eb97f6fd65da.glb
Create a shaft coupler by starting with a main cylinder 30mm in height and 30mm in diameter. Remove a central vertical hole 10.35mm in diameter from the bottom half of the cylinder, and a smaller central vertical hole 6.3mm in diameter from the top half. Cut a thin 2mm wide slot through the center of the cylinder acros...
bdiam = 3.25; bheight = 28; module coupler() { height = 30; diam = 30; rodplus = 10.35; nema23 = 6.3; boltoffset = diam/3; difference() { cylinder(h= height,r = diam/2,$fn=77); translate(v = [0,0,-1]) cylinder(h= height/2 +1,r = rodplus/2,$fn=77); translate(v = [0,0,height/2]) cylinder(h= heigh...
glb/cad_b7fc6722bb78.glb
Create a thermistor clip by designing a solid volume and removing internal sections to form a gripping tool. Start by creating a hull that connects two cylinders of height 25mm: one with a diameter of 7.4mm and another positioned 11mm away along the x-axis with a diameter of 9.8mm. From this solid, remove a central voi...
wall = 1.2; thermd = 5.0; evapd = 7.8; ht = 25.0; len = 6.0; $fn=64; difference() { hull() { cylinder(d=thermd+wall+wall,h=ht); translate ([len+thermd,0,0]) cylinder(d=evapd+wall+wall,h=ht); }; union() { hull() { cylinder(d=thermd,h=ht); translate ([len+thermd,0,0]) cylinder(d=eva...
glb/cad_45be07912184.glb
Create a dehumidifier control case consisting of a bottom base and a top lid. The overall footprint is 140mm in length and 73mm in width. For the base, create a hollow rectangular box with a wall thickness of 1.6mm and a height of 11.67mm (one-third of the total case height). Round the four corners with a 4mm radius. ...
$fn = 32; wall = 1.6; xlen = 140; ywid = 73; zht = 35; radius = 4; screwt = 0.110 * 25.4; screwc = 0.150 * 25.4; screwhd = 0.27 * 25.4; screwhdt = 0.15 * 25.4; ddimx = 72.1; ddimy = 25.0; display = true; spacers = false; relay = true; mount_plate = true; case_tabs = true; dht11 = true; top = true; bot = true; modu...
glb/cad_170e06690ad4.glb
Create a set of antenna clamps consisting of one dipole clip and five rod clips. For the dipole clip, create a rectangular block 17.9mm wide, 8.8mm high, and 18.2mm deep (15mm extrusion size plus two 1.6mm notches). Center a vertical hole 7mm in diameter through the block to accommodate a cable. Add a base plate exte...
extrusion_size = 15; extrusion_channel_width = 3.1; rod_dia = 4.95; num_rods = 5; dipole_height = 8.8; dipole_length = 17.9; dipole_cable_dia = 7.0; offset = 4.4; screw_dia = 3.3; screw_len = 6; wall_thickness = 2.4; notch_thickness = 1.6; gap_size = 0.75; bracket_len = extrusion_size; $fn = 60; epsilon = ...
glb/cad_befbc00bf5e3.glb
Create a boot shape retainer by constructing a tapered, elliptical cylinder with a total height of 250mm. The base of the object should be an ellipse with a radius of 25mm, while the top surface should be a larger ellipse with a radius of 35mm. Scale the geometry along the Y-axis by a factor of 1.4 to ensure the cross-...
$fn = 60; boot_shape_retainer(); module boot_shape_retainer() { translate([0,0,250]) rotate(180,[1,0,0]) segment(h,s1,s2); } module segment(h,s1,s2) { scale([1,70/50]) cylinder(r1=50/2,r2=70/2,h=250); }
glb/cad_10561b9ebc0c.glb
Create two identical Z thrust bearing mounts. For each mount, construct a solid cylinder with a radius of 8mm and a length of 50mm, using a 20-sided polygonal cross-section. Center a longitudinal hole through the entire length of each cylinder with a radius of 4.1mm. Position the two finished mounts so they are mirrore...
difference(){ union(){ import(file="TopVertexzMotorStandBearingHolderCOMBO_fixed.stl"); translate([-25,29,8]){rotate([0,90,0]){cylinder(r=8, h=50, $fn=20);}} translate([-25,-29,8]){rotate([0,90,0]){cylinder(r=8, h=50, $fn=20);}} } translate([-50,30,8]){rotate([0,90,0]){cylinder(r=4.1, h=100, $fn=20);}} translate([-50...
glb/cad_4fa1fd485b30.glb
Create a Rode NT-USB articulated arm adapter. Start with a central cylinder 10mm high and 20mm in diameter that features an internal ISO metric thread with a 1mm pitch. Surround this central cylinder with a larger, asymmetric outer body. On one side, create a rounded protrusion that extends outward to a total diamete...
$fn=100; outerdia=35; threaddia=20; height=10; arm_dia=5; arm_offset=4; union() { translate([0,0,height/2]) difference() { union() { hull() { translate([outerdia/2+20,0,arm_offset])rotate([90,0,0]) cylinder(r=height/2+arm_offse...
glb/cad_72204705ed46.glb
Create a hypocycloid gearbox for a NEMA 23 motor consisting of a case, a cap, a cover, and an eccentric bearing mount. First, construct the case as a square block measuring 56.4mm by 56.4mm with a height of 10.5mm. Center a large circular cutout with a radius of 26.95mm through the block. Add four cylindrical bolt ho...
TopSize=9; BottomSize=10; Scaling=31; ScaleMultiplier=0.01; BScaling=Scaling*(1.0+ScaleMultiplier); SScaling=Scaling*(1.0-ScaleMultiplier); E=0.05*Scaling; BearingOD=22; BearingID=8; BearingH=7/2; T=BearingH; Tr=3; $fn=20; TCap=2.5; Tol=0.25; Bolt=2.5; Axle=6.5; L=56.4; BoltSpacing=47.14/2; W=L; HingeSpacing=BoltSp...
glb/cad_36ead398e5d3.glb
Create a denture holder consisting of a bottom base and a top cover. The overall interior cavity should be 56mm long, 71mm wide, and 23.5mm deep. Both the top and bottom parts feature walls that are 1.5mm thick. For the bottom base, create a rectangular box with the specified interior dimensions. One of the shorter en...
1_part="both"; 2_width=71; 3_height=23.5; 4_length=56; 5_curve=30; 6_wall_thickness=1.5; 7_Top_Smudge_Factor=5; width=2_width+1-1; height=3_height+1-1; length=4_length+1-1; curve=5_curve+1-1; wallthickness=6_wall_thickness+1-1; lc=length-curve; cyl=width/2; curcyl=curve/cyl; fingz=height/2; fingw=fingz/2; fingh...
glb/cad_7853a6880214.glb
Create a rectangular things holder designed to mount a device to a plate or monitor. The holder consists of two symmetrical bracket pieces. For each bracket, create a U-shaped frame with a wall thickness of 2.5mm. The inner dimensions of the main opening should be 82.5mm wide and 21.5mm high to accommodate the device....
hdd_width = 82.5; hdd_hight = 21.5; hdd_lenght = 118; dsp_thick = 19; wall_thickness = 2.5; width = 15; hdd_claws= 15; dsp_claws= 6; claw_offset = 0; connection_bar = 1; connector_pin_size = 6; side_claw = 1; build_plate_selector = 3; build_plate_manual_x = 200; build_plate_manual_y = 200; build_plate(buil...
glb/cad_272e9da108d8.glb
Create a Dremel Quick-Fit Mount consisting of a rectangular base with a central threaded hole. Start with a rectangular slab measuring 96mm in length, 24mm in width, and 5mm in total height. The bottom 2.5mm of this slab is a flat plate, while the top 2.5mm is a slightly modified shape created by the union of a 96mm by...
use <Thread_Library.scad> module base() { difference() { union() { translate([-48, -12, 2.5]) minkowski() { cube([96, 24, 2.5], center = true); translate([48,12,0]) cylinder(r=2, h=2.5, center = true, $fn=20); } translate([0,0,5]) cylinder(r=14, h=3, $fn=100); } #translate([0,0,-1.1]) trapezoid...
glb/cad_6413cf77b090.glb
Create a Key Tray consisting of a central spire and three radiating arms. Start by placing a cylinder at the origin with a diameter of 3.8mm and a height of 10mm. From this center, extend three rectangular arms spaced 120 degrees apart. Each arm should be 40mm long, 4mm wide, and 3mm thick. At the end of each arm, pl...
centreD=3.8; centreH=10; steamventD=1.6; steamventT=54; steamventH=15; bowlsupportH=10; bowlsupportT=40; layerhight=0.2+1-1; centreR=centreD/2; steamventR=steamventD/2; steamventE=steamventR*2; mikiears=layerhight*6; rotate([0,0,45]){ cylinder(centreH,centreR,centreR); translate([steamventT,0,0]){ cylinder(...
glb/cad_000aa33e8013.glb
Create a power plate mount for a breadboard workstation. Start by constructing a base plate that is 44mm wide, 27mm high, and 1mm thick. Centered on this base, add a raised inner rectangular section that is 40mm wide, 23mm high, and 3mm thick. From this combined structure, remove the following geometric cutouts that p...
include <breadboard.scad> PLUG_DIAMETER = 14; PLUG_HOLE = 9; SWITCH_WIDTH = 7; SWITCH_HEIGHT = 19; PLATE_DEPTH = 3; PLATE_BRIM = 1; BRIM_WIDTH = 2; COMPONENT_SPACING = 6; PLUG_HORIZONTAL = PLUG_DIAMETER + COMPONENT_SPACING; SWITCH_HORIZONTAL = SWITCH_WIDTH + COMPONENT_SPACING; GROUP_HORIZONTAL = PLUG_HO...
glb/cad_873cd1f7d535.glb
Create a Bedlevel Knob by starting with a main cylindrical body that has an outer diameter of 20mm and a total height of 12mm. Carve a central hole into the top of the cylinder with a diameter of 14.5mm and a depth of 7mm to create the internal cavity. Add five helical ridges to the exterior of the cylinder. Each ridg...
ID = 14.5; OD = 20; z = 12; inset = 7; fInset = 20; detDep = 0.8; t = 5; nDets = 5; slope = 45; helixRes = 0.5; c = PI*OD; t_ = t/cos(slope); linTwist = z*tan(slope); angTwist = 360*(linTwist/c); radius = OD/2+detDep; angles = [-360*(t_/c)/2, 360*(t_/c)/2]; points = [ for(a = [angles[0]:1:angles[1]]) [ra...
glb/cad_8d990a878ef9.glb
Create a rectangular slab by extruding a 2D rectangle with a width of 10mm and a height of 5mm to a thickness of 1mm. The resulting 3D shape should be a thin, flat rectangular prism with dimensions of 10mm by 5mm by 1mm.
x_value = 10; y_value = 5; linear_extrude(height = 1) polygon([[0,0],[x_value,0],[x_value,y_value],[0,y_value]],[[0,1,2,3]]);
glb/cad_724e27172baa.glb
Create a bowl decorated with a hexagonal tiling centered on a decagon. Start by constructing a decagonal base with a radius of 10mm and a height of 14mm. Add a decagonal rim that extends from a radius of 10mm to 32mm with a height of 13mm. Within this bowl structure, create a decorative tiling pattern based on a decag...
lucent_polygon_10(); module center_5() { intersection() { base(10,32,14); union() { scale([1.15,1.15,1]) union() { pat1(5, 6, 1, 1.001); pat1(5, 6, 2.5, .85); } rim(10,32,30,13);}}} module polygon_10() { intersection() { base(10,32,14); union() { scale([1.15,1.15,1]) union() { pat2...
glb/cad_76be7e638e72.glb
Create a Plastic Cup Plant Holder consisting of seven stacked layers. Each layer is a square plate with rounded corners, measuring 125mm per side and 2.25mm thick. Every layer must have a centered circular hole with a diameter of 92mm. The corners of the plates are rounded with a 35mm diameter. On the top surface of e...
FlagBottomLayer = "false"; FlagTopLayer = "false"; LCount = 7; LSpace = 13; Resolution = 150; TolerancePar = 3; TolerancePct = TolerancePar / 100; Design = "None"; LHeightPar = 225; LHeight = LHeightPar / 100; LSideLength = 125; FOffsetR = 63; FRotationA = 0; FShape = "Round"; FSides = 4; FWidthPctPar = 50...
glb/cad_66669c7df9cf.glb
Create a 3D Bitmap ASCII Art Generator model consisting of a grid of small cubes. The overall layout is based on a 32 by 32 matrix. Each individual cell in this matrix is represented by a cube with a base size of 20mm by 20mm. For every cell in the matrix, determine the height of the cube based on the provided binary ...
block_size = 20; height =20; row_size=32; det=10; module bitmap(bitmap, block_size, height, row_size) { width = block_size * row_size; bitmap_size = row_size * row_size; function loc_x(loc) = floor(loc / row_size) * block_size; function loc_y(loc) = loc % row_size * block_size; function loc_z(loc) = (bitmap[loc...
glb/cad_be9fd504f76f.glb
Create a customizable construction brick with a width of 3 units, length of 3 units, and a thickness of 3 units. The main body is a rectangular block with a height of 28.5mm (3 times the base block height of 9.5mm). The top surface features a 3x3 grid of cylindrical knobs, each with a diameter of 4.8mm and a height o...
width = 3; length = 3; thickness = 3; knob_diameter=4.8+0; knob_height=2+0; knob_spacing=8.0+0; wall_thickness=1.45+0; roof_thickness=1.05+0; block_height=9.5+0; pin_diameter=3+0; post_diameter=6.5+0; reinforcing_width=1.5+0; axle_spline_width=2.0+0; axle_diameter=5+0; cylinder_precision=0.1+0; block(length,width,thi...
glb/cad_2d0b689ffa8b.glb
Create a circular ring with a base diameter of 46mm and a height of 6mm. Hollow out the center of this ring by removing a concentric cylinder with a diameter of 44mm, leaving a wall thickness of 1mm. On the outer surface of this ring, place the characters "GEM FACET" in a circular sequence. Each letter should have a h...
function get_text(p) = lookup(p, [ [ 0, 71 ], [ 10, 69 ], [ 20, 77 ], [ 30, 32], [ 40, 70 ], [ 50, 65 ], [ 60, 67 ], [ 70, 69 ], [ 80, 84] ] ); ts=4; ht=1; th=1; ra=23; a1=0; a2=10; nb=9; %difference() { cylinder(d=ra*2,h=6,$fn=240); translate([0,0,-1]) cylinder(d=r...
glb/cad_5b706220c783.glb
Create a thin circular ring with an outer diameter of 46mm and a height of 6mm. Hollow out the center by removing a concentric cylinder with a diameter of 44mm, leaving a wall thickness of 1mm. On the outer vertical surface of this ring, place the text "GEM FACET V2" using a sans-serif font. Each character should be 4...
function get_text(p) = lookup(p, [ [ 0, 71 ], [ 10, 69 ], [ 20, 77 ], [ 30, 32], [ 40, 70 ], [ 50, 65 ], [ 60, 67 ], [ 70, 69 ], [ 80, 84 ], [ 90, 32 ], [100, 86 ], [110, 50] ] ); tf="Arial"; ts=4; ht=1; th=1; pc=50; ra=23; a1=0.0; a2=10.0; nb=12; difference() { cylin...
glb/cad_663d2ed0a532.glb
Create a 3D model consisting of a central vertical assembly with text wrapped around its base. Start by creating a main cylinder with a diameter of 20mm and a height of 20mm. On top of this cylinder, center a second, thinner cylinder with a diameter of 6mm and a height of 26mm. Cap the top of this thinner cylinder with...
function get_text(p) = lookup(p, [ [ 0, 49 ], [ 20, 32 ], [ 40, 107 ], [ 60, 103] ] ); tf="Arial"; ts=6; ht=6; th=1.5; pc=50; ra=10; a1=0.0; a2=20.0; nb=4; union() { cylinder(d=ra*2,h=20,$fn=240); cylinder(d=6,h=26,$fn=240); translate([0,0,26]) sphere(r=5,$fn=120); } f...
glb/cad_354b92f03fde.glb
Create a circular base cylinder with a diameter of 46mm and a height of 6mm. Around the outer vertical wall of this cylinder, place the characters "GEM FACET V3" in a circular sequence. Each character should have a height of 3.5mm and a thickness of 1mm, protruding outward from the surface of the cylinder. Position t...
function get_text(p) = lookup(p, [ [ 0, 71 ], [ 10, 69 ], [ 20, 77 ], [ 30, 32], [ 40, 70 ], [ 50, 65 ], [ 60, 67 ], [ 70, 69 ], [ 80, 84 ], [ 90, 32 ], [100, 86 ], [110, 51] ] ); tf="Arial"; plane =0; planez =5; ts=3.5; ht=1; th=1; pc=50; ra=23; a1=0.0; a2=10.0; nb=12; d...
glb/cad_693bbc83b4a2.glb
Create a lighthouse model consisting of a tapered tower and an adjacent small building. Construct the tower by stacking five concentric cylinders of decreasing height and radius; the base cylinder starts with a radius of 12mm and a height of 10mm, with each subsequent level decreasing in radius by 1mm and maintaining a...
difference () {cube([40, 40, 30]); translate( [2, 2, -1] ) cube([36, 36, 29]); translate( [15, -1, -1] ) cube([10, 4, 11]); translate( [5, -1, 15] ) cube([5, 5, 10]); translate( [30, -1, 15] ) cube([5, 5, 10]); translate( [38, 5, 15] ) cube([5, 5, 10]); translate( [38, 30, 15] ) cube([5, 5, 10]); translate( [5, 36, 15]...
glb/cad_5292aab24627.glb
Create a lighthouse model consisting of a tiered tower and a top gallery. Start with a base cylinder 10mm high with a bottom radius of 11mm and a top radius of 10mm. Directly above this, place a second cylinder 10mm high with a bottom radius of 9mm and a top radius of 8mm. On top of the tower, create a gallery platfo...
translate( [-11, 12, 15] ) cylinder(h = 10, r1 = 11, r2 = 10, center = true); translate( [-11, 12, 35] ) cylinder(h = 10, r1 = 9, r2 = 8, center = true); { translate([-11, 12, 52]) { for (i = [0:5]) { echo(360*i/6, sin(360*i/6)*80, cos(360*i/6)*80); translate([sin(360*i/6)*10, cos(360*i/6)*10, 0 ]) cyl...
glb/cad_f172b371eb01.glb
Create a lighthouse model consisting of a tower and an adjacent square building. Start by constructing the tower as a series of stacked, concentric cylinders. The base is a cylinder with a height of 10mm, a bottom radius of 12mm, and a top radius of 11mm. Stack three more cylinders on top of this base, each with a heig...
difference () {cube([40, 40, 30]); translate( [2, 2, -1] ) cube([36, 36, 29]); translate( [15, -1, -1] ) cube([10, 4, 11]); translate( [5, -1, 15] ) cube([5, 5, 10]); translate( [30, -1, 15] ) cube([5, 5, 10]); translate( [38, 5, 15] ) cube([5, 5, 10]); translate( [38, 30, 15] ) cube([5, 5, 10]); translate( [5, 36, 15]...
glb/cad_fb3be275c1bd.glb
Create a lighthouse model consisting of a tapered tower and an adjacent house. Construct the tower by stacking five hollowed-out cylindrical sections. The bottom section is a cylinder with a height of 10mm, an outer radius of 12mm, and an inner radius of 10mm. Each subsequent section decreases in size: the second has...
difference () {cube([40, 40, 30]); translate( [2, 2, -1] ) cube([36, 36, 29]); translate( [15, -1, -1] ) cube([10, 4, 11]); translate( [5, -1, 15] ) cube([5, 5, 10]); translate( [30, -1, 15] ) cube([5, 5, 10]); translate( [38, 5, 15] ) cube([5, 5, 10]); translate( [38, 30, 15] ) cube([5, 5, 10]); translate( [5, 36, 15]...
glb/cad_dc1d39e9619a.glb
Create a Railcore Webcam Mount designed to attach to 1515 aluminum extrusions. The main body is a flat plate with a thickness of 5.4mm. The plate's footprint is defined by a hull connecting an octagonal cylinder with a diameter of 4.8mm (centered at x=-31.1, y=29) and two rectangular sections: one measuring 31.1mm by 1...
cSD = 4.0; cSFW = 3.2; cSD2 = 1.6; cSD2Th = 1.6; cSX = 32.2;cSY = 30.0; cSX = 31.1;cSY = 29.0; mR = 44+cSD/2+3; thZ = 3.8+cSD2Th; thXY=.48*4; exW = 15; gap = .4; sD = 3.5; sPadZ = 3.0; cW = 3.0; cSL = 21+5; clipGap = 1.5; module clip() {translate([exW/2-clipGap,0,0])intersection(){ difference(){ cylinder(d=ex...
glb/cad_1b77a2567f5f.glb
Create a parametric lens cap by starting with a main cylinder 72.5mm in diameter and 10mm high. Add a wider, thin base flange 4mm thick with a diameter of 76.5mm. To create the inner pocket where the lens sits, remove a central tapered cylinder that starts at a radius of 34.25mm at the base and narrows to 33.25mm at th...
lensdiameter = 66.5; wall = 2; height = 10; inR = lensdiameter / 2.0; inRw = lensdiameter / 2.0 + 1; outR = lensdiameter / 2.0 + wall; shoulder = 1; $fn = 128; module Torus(rx, rc) { rotate_extrude(convexity = 10) translate([rx, 0, 0]) circle(r = rc); } module cutout() { translate([0, 0, 50 + wall +...
glb/cad_471e7ea6f92a.glb
Create a Customizer-able Container by constructing a hollowed-out 4-sided prism with rounded vertical profiles. Start with a base shape that is 50mm in diameter and 100mm in height. The outer walls should be formed by a 4-sided polygon (square) with a facet resolution of 120. To create the interior cavity, remove a s...
potShape = 0; numberSides = 4; drawReceptacle(potShape,numberSides); module hSphere(r=1,t=0.1,ns,rot) { difference() { sphere(r); sphere(r-t); } } rotationList=[0,0,0,60,0,-36,60,180/7,0,-20,36,180/11,0,-180/13,180/7,12,0,0,0,0,0,0]; module drawReceptacle(number,sides) { ns=(sides<3)?100:sides; rotby=(ns>2...
glb/cad_e8cedfc6f709.glb
Create a Car USB Cables Holder consisting of a main threaded base, a back cover, and a hexagonal nut. Construct the main base as a cylindrical body with a height of 34.6mm and an external diameter of 31mm. The front face is a frustum with a bottom diameter of 33mm and a top diameter of 36mm, and a thickness of 4mm. Ad...
include <ISOThreadUM2.scad>; SHOW_DIMENSIONS = false; DEBUG_X = false; DEBUG_Y = false; HIDE_TREADS = false; SHOW_BASE = true; TRANSP_BASE = false; SHOW_COVER = true; SHOW_COVER_INPLACE = false; TRANSP_COVER = false; SHOW_NUT = true; SHOW_NUT_INPLACE = false; UHW = 17.9; UHH = 11.4; UHL = 27.6; UHFCR = 1.0; UHRCR =...
glb/cad_70d026da3a9c.glb
Create a vertical bearing holder for an LME8UU bearing. Start with a base shape that is a combination of a cylinder and a rectangular block: create a cylinder with a radius of 11mm and a height of 58mm, and merge it with a centered rectangular block measuring 6mm wide, 22mm deep, and 58mm high. From this combined volu...
use <polyholes.scad> bearing_diameter = 16; module horizontal_bearing_base(bearings=1){ translate(v=[0,0,6]) cube(size = [25,8+bearings*25,12], center = true); } module horizontal_bearing_holes(bearings=1){ cutter_lenght = 10+bearings*25; one_holder_lenght = 8+25; holder_lenght = 8+bearings*25; difference(){ ...
glb/cad_e3fb46d8ad1d.glb
Create a Prusa i3 X-axis carriage for LME8UU bearings. Start with a base plate measuring 33mm wide, 68mm long, and 7mm thick. Centered on this plate, add a rectangular belt holder block that is 33mm wide, 16mm long, and 17mm high, positioned 20mm from the front edge. Carve a central channel through the belt holder and...
use <bearing.scad> module x_carriage_base(){ translate([-33/2,0,0]) rotate([0,0,90]) horizontal_bearing_base(1); translate([-33/2,45,0]) rotate([0,0,90]) horizontal_bearing_base(2); translate([-33,-11.5,0]) cube([33,68,7]); translate([-33,20,0]) cube([33,16,17]); } module x_carriage_beltcut(){ translate([-2...
glb/cad_bc11a5fbf61b.glb
Create a Prusa i3 X-axis motor mount by starting with a base block that is 17mm wide, 44mm deep, and 53mm high, centered on the X-axis. From this base, remove a central rectangular volume of 10mm by 46mm by 22mm to create a belt slot. To accommodate the motor and mounting hardware, remove a hexagonal hole with a radi...
use <x-end.scad> module x_end_motor_base(){ x_end_base(); translate(v=[-15,31,26.5]) cube(size = [17,44,53], center = true); } module x_end_motor_holes(){ x_end_holes(); translate(v=[-1,32,30.25]){ translate(v=[-14,1,0]) cube(size = [10,46,22], center = true); translate(v=[20,-15.5,-15.5]) rotate(a=[0,-90,...
glb/cad_a95982bf0290.glb
Create a Prusa i3 X-axis end part for LME8UU bearings. Start with a main rectangular block measuring 17mm wide, 40mm deep, and 58mm high. On the front face, create a vertical cutout for the bearing. At the bottom and top of the block, center two push-fit rod holes with a diameter of 8.1mm and a length of 50mm, spaced...
use <bearing.scad> use <polyholes.scad> rod_distance = 45; module x_end_base(){ height = 58; translate(v=[-15,-9,height/2]) cube(size = [17,40,height], center = true); vertical_bearing_base(); translate(v=[-2-2,-17,4]) cube(size = [8,16,8], center = true); translate(v=[0,-17,0]) rotate([0,0,30]) cylinder(h = 8,...
glb/cad_ec56da0b5647.glb
Create a Crab Drone robot. Start with a central head body formed by the union of a 14x8x9mm cube and a 6x14x4mm cube centered on the Z-axis, both smoothed with a 2mm radius fillet. Position a vertical cylinder with a 1.2mm radius and 15mm height as an antenna at coordinates [7.4, 3.5, 0]. Add a camera lens at [-7, 0, 0...
$fn = 96; middle_legs = 1; antenna_height = 15; head_bevel_offset = 4; ball_diameter = 11; margin = 0.1; wall_thickness = 2.4; capsule_height = 0; drone(); module leg() { $fn = 6; hull() { translate([0, 0, 0]) sphere(r = 3); translate([0, 8, 0]) sphere(r = 3); ...
glb/cad_6b7038cdfbb9.glb
Create a MendelMax Z Dual Bowden Mount with a base thickness of 9.5mm. The main body is a plate with a total height of 120mm. The top of the plate is defined by a hull connecting four cylinders with a radius of 10mm: two positioned at the top corners (x=±55, y=120) and two at the bottom corners (x=±27.9, y=10). At the...
thickness = 9.5; BodyH=120; topRadius = 10; buildV = 1; LongNut_offset = 8; cutout= 1; Top_Cutout_length = 36; B_Cutout_length = 16; Misumi_holeD=5.5; Misumi_holeL=10; Misumi_MountL=30; Misumi_nut_offset=5.9; Misumi_MountB=20; extruder_screw_offset = 50; extruder_fillament_o = 22; Extruder_H = 65; m3_nut_h = 2.3...
glb/cad_b52a5c95eaa1.glb
Create a two-part mold for a flashlight switch cover. For the upper mold, start with a cubic block measuring 25mm x 25mm x 37.5mm. From this block, remove a central core consisting of a cylinder with a diameter of 18.5mm and height of 10mm, positioned 3mm from the base. Above this, remove a conical section that trans...
$fn=30; module model() { cylinder(d=2,h=20); difference(){ union(){ offs=0; translate([0,0,0 +offs]) cylinder(d=18.5,h=10); translate([0,0,10+offs]) cylinder(d1=18.5,d2=10,h=9.5); translate([0,0,17+offs]) sphere(d=11.2); } union(){ ...
glb/cad_232737c8ed56.glb
Create a K-Extruder Mount for a Prusa i3 Rework. Start with a central rectangular base 8mm wide, 40mm long, and 2mm thick. Centered on this base, add a second rectangular block 2mm wide, 40mm long, and 8mm thick. On the front face of this assembly, add a smaller rectangular block 6mm wide, 10mm long, and 8mm thick. In...
$fn=16; translate([26,20,0]) rotate([0,0,90]) difference(){ union(){ translate([-26,25,1])cube(size=[8,40,2], center=true); translate([-21,25,4])cube(size=[2,40,8], center=true); translate([-19,25,4])cube(size=[6,10,8], center=true); translate([-16,25,4])rotate([90,0,0]) cylinder(h=10, r=4, cent...
glb/cad_9cd467f5d6e6.glb
Create a K-Extruder Mount for a Prusa i3 Rework. Start with a base structure consisting of a central block 22mm wide, 42.5mm deep, and 18mm high, with an additional 4mm wide by 42.5mm deep by 8mm high section attached to one side. Add a rectangular base extension 33mm wide, 10mm deep, and 33.5mm high positioned at the ...
$fn=20; module k_mount_base(){ translate([7,0,0])cube(size=[4,42.5,8]); translate([11,0,0])cube(size=[22,42.5,18]); translate([0,42.5,-8])cube(size=[33,10,33.5]); translate([11,16.5,18])cube(size=[22,17,2]); translate([25,-4,3])cube(size=[8,10,8], center=false); translate([25,-4,7])rotate([0,90,0]) cylinder(h=8...
glb/cad_85f3dfc32ff8.glb
Create a K-Extruder Mount for a Prusa i3 Rework. Start with a base structure consisting of a central block 33mm wide, 42.5mm deep, and 18mm high, with an additional rectangular section extending the depth to 52.5mm and height to 10mm at the rear. Add two fan ears on the sides, each 7mm wide, 10mm deep, and 8mm high. I...
$fn=20; module k_mount_base(){ translate([7,0,0])cube(size=[4,42.5,8]); translate([11,0,0])cube(size=[22,42.5,18]); translate([0,42.5,-8])cube(size=[33,10,33.5]); translate([11,16.5,18])cube(size=[22,17,2]); translate([16.5,-4,3])cube(size=[7,10,8], center=false); translate([16.5,-4,7])rotate([0,90,0]) cylinder...
glb/cad_03b8c10a4f3a.glb
Create a PC 5.25" Bay Frame and HDD/SSD Adapter. Start by constructing a front panel with a thickness of 3mm, a height of 42.3mm, and a width of 148mm. Extend two side walls from the front panel. Each wall should have a thickness of 2mm and a length of 189.25mm (calculated as the sum of 47.4mm and 79.25mm plus a 10mm...
menu= "DiskBay35"; frontThick= 3; sideThick= 2; screwDia= 3; bayLength= "long"; withFront= "yes"; numberOfFans= 0; fanWidth= 11; openingPattern= "yes"; openingPatternDia= 3; openingPatternXSpc= 2; openingPatternYSpc= 2; openingPatternShift= 2; openingPatternAngle= 30; openingPatternFn= 6; openingPatternXSpaceFromF...
glb/cad_65bdbff15554.glb
Create a mechanical pencil cap consisting of a hollow cylindrical sleeve and an internal eraser block. Start by constructing a main outer cylinder with a diameter of 11mm and a height of 12mm, using a 50-facet resolution. Hollow this cylinder by removing a concentric inner cylinder with a diameter of 9mm and a height o...
thickness = 1; diameterCap = 9; diameterEraser = 6; translate([0,0,12]) rotate([180,0,0]) union(){ difference(){ union(){ cylinder(12, d=diameterCap+thickness, d=diameterCap+thickness, $fn = 50); translate([0,0,11.0]) rotate_extrude(convexity = 10, $fn = 100) translate([(diameterCap+thickness)/2, 0, 0]) circle(r ...
glb/cad_f76ee27daa03.glb
Create a Fountain Pen Ink Sample Holder by starting with a solid rectangular block measuring 65mm in width, 54mm in depth, and 20mm in height. Within this block, carve out a grid of cylindrical holes to hold ink vials. Each hole must have a radius of 9mm and a depth of 15mm. Arrange these holes in 3 rows along the x-...
inker_angle = 25; row_count = 3; column_count = 4; holeSize=18; holeDepth=15; rows=row_count-1; columns=column_count; spacing=7; baseThickness=5; inkerBaseThickness=1.5; inkerAngle = inker_angle; $fa=1; $fs=1; print_part(); module print_part() { difference() { cube(size=[ (rows + 1)*(holeSize+spacing...
glb/cad_9254f216c69e.glb
Create a Soldering and Electronics Station organizer with a base footprint of 100mm x 100mm and a total height of 70mm. The walls should be 1.8mm thick. Begin with a solid block of the base dimensions. On the side, carve out a large rectangular opening 70mm deep to accommodate spools of solder or wire up to 7cm in dia...
eps=0.1; $fn=64; base_x = 100; base_y = 100; base_z = 70; wall=1.8; spool_y= 70; drawer_x = 38; drawer_z = 40; module slot(x,y,w,h,z=base_z){ translate([x+wall,y+wall,wall+base_z-z]) cube([w,h,z-wall+eps]); } module main_body(){ difference(){ cube([base_x,base_y,base_z]); translate([wall...
glb/cad_f1d61c8487ab.glb
Create a two-piece cover plate factory for pipes or screws consisting of a male and female part. Each half is based on a cylinder with an outer diameter of 43.5mm and a height of 7.4mm. The upper edges of these cylinders must be rounded with a radius of 3.2mm. Both halves feature a central bore with a diameter of 16mm ...
cylinder_diameter = 43.5; cylinder_height = 7.4; radius_on_edge = 3.2; bore_diameter = 16; connector_diameter = 8; distance_to_top = 1; clearance_of_parts = 0.06; flatten = 1.5; Print_setting="both"; $fn=80; if (Print_setting == "both") { male_part(); female_part(); } if (Print_setting == "male") { ...
glb/cad_2e13b0dfaf2b.glb
Create a Kinetic Extruder Visualizer Engine consisting of a central block, a crankshaft, pistons with connecting rods, and an optional propeller. Construct the engine block as a cylindrical housing with an outer radius of 7.2mm and an inner bore of 6.2mm, both 4mm high. Within this block, create two cylinder sleeves a...
CONFIGURATION = 2; MOTOR_SIZE = 31; MOUNTING_TAB_SIZE = 6.15; TOLERANCE = 0.3; ENABLE_PROPELLER = 0; PROPELLER_BLADES = 2; PROPELLER_DIRECTION = 1; $fn = 24 + 0; PIN = 2 + 0; WALL = 2 + 0; MOUNT = MOUNTING_TAB_SIZE / 2; SQRT2 = sqrt(2); TOLHALF = TOLERANCE / 2; CRANK = MOTOR_SIZE / 6; ROD = MO...
glb/cad_e532b9c3e082.glb
Create a Prusa i3 Z Top Holder by starting with a base composed of three overlapping rectangular blocks: one measuring 8x45x16mm, one 30x5.01x12mm, and one 38x15x5mm, all aligned to form a solid foundation. From this base, remove several geometric sections to create chamfered corner cutouts and a large central void. Sp...
module z_top_base(){ translate([0,-5,0]) cube([8,45,16]); translate([0,-5,0]) cube([30,5.01,12]); translate([0,-5,0]) cube([38,15,5]); translate([25+4.3,4.2+17,0]) rotate([0,0,0]) cylinder(h = 5, r=8, $fn=15); translate([0,0,0]) cube([30,29,5]); } module z_top_fancy(){ translate([0.5,0.5,0]) rotate([0,0,-45-18...
glb/cad_164b68d127c2.glb
Create a cotton bud box holder by starting with a main cylindrical base that has an outer diameter of 83mm and a height of 20mm. Hollow out the center of this base by removing a cylinder with a diameter of 81mm, leaving a wall thickness of 2mm. At the back of the holder, attach a rectangular vertical support. This su...
detail = 100; marge = 0.5; epaisseur = 2; diametre_boite = 79; hauteur_boite = 80; rayon_boite = diametre_boite/2; hauteur = 20; difference(){ union(){ cylinder (r=rayon_boite+epaisseur+marge, h=hauteur, $fn=detail); translate([0,rayon_boite+epaisseur+marge-rayon_boite/4,hauteur_boite*0.75/2]) cube([rayon_boite,r...
glb/cad_91050adbe680.glb
Create a razor and shaving brush holder consisting of two separate clip-like components. First, create a holder for a shaving brush. This part features a circular grip with an inner diameter of 8mm. The grip is integrated into a support structure that uses a rounded, organic geometry with a sphere radius of 2mm for t...
detail = 30; rayon_sphere = 2; marge = 0.5; diametre_tube_blaireau = 8; diametre_tube_rasoir = 6; petit_rayon_support_blaireau = 14+diametre_tube_blaireau/2; petit_rayon_support_rasoir = 6.5+diametre_tube_rasoir/2; grand_rayon_support_blaireau = petit_rayon_support_blaireau*2; grand_rayon_support_rasoir = petit_rayon_s...
glb/cad_53635d9b7f71.glb
Create a razor and shaving brush holder consisting of a ring with a central square block. Construct a torus-like ring with a cross-sectional diameter of 10mm and an overall outer diameter of 80mm. The ring should be rendered with a low facet resolution of 20 sides, giving it a faceted, polygonal appearance rather than ...
detail = 20; module semi_circle(diametre, petit_rayon){ difference(){ rotate_extrude(convexity = 10, $fn = detail) translate([petit_rayon, 0, 0]) circle(r = diametre/2, $fn = detail); translate([0,petit_rayon/2,0]) cube([petit_rayon,petit_rayon,10], center=true); } rotate([0,0,10]) translate([0,petit_rayon,...
glb/cad_224f2097d2a5.glb
Create a parametric windowsill planter consisting of two nested rectangular boxes: a base reservoir and an upper soil box. For the base reservoir, create a solid rectangular block 82.82mm wide, 82.82mm deep, and 24.56mm high. Hollow out the center to create a container with a wall thickness of 1.25mm. On one of the s...
module planter(width, depth) { wall = 1.25; ease = 1; idepth = depth - wall*2 - ease; iwidth = width - wall*2 - ease; translate([-1.05*width, depth*-.5, 0]) { difference() { cube([width, depth, depth*0.3]); union() { translate([wall, wall, depth*0.2]) ...
glb/cad_a5f1a8d9a4a0.glb
Create a wheel reinforcer ring by starting with a composite cylindrical base. Form the bottom section as a frustum with a bottom diameter of 46mm, a top diameter of 50mm, and a height of 2mm. Directly on top of this, add a cylinder with a diameter of 50mm and a height of 12mm. From the center of this combined volume, ...
$fn=60; main(); module main(){ difference(){ union(){ cylinder(d1=46,d2=50,h=2); translate([0,0,2]) cylinder(d=50,h=12); } union(){ cylinder(d=24.5/(sqrt(3)/2),h=50,$fn=6); translate([0,0,6]) cylinder(d=29/(sqrt(3)/2),...
glb/cad_7a280d9b0965.glb
Create a handle for a wideband antenna by starting with a base shape defined by a rounded extrusion of a custom path, with a total height of 20mm. Carve a central rectangular slot measuring 330mm by 432mm with a thickness of 1.4mm to accommodate the antenna PCB. Add three mounting holes for M3 bolts: position two hol...
include <dotscad/rounded_extrude.scad>; $fn=100; e=0.2; h=20; pcbh=1.4; module handle() { difference(){ union(){ rounded_extrude([300,300], h/2, 180) import(file="handle_path.svg"); } rotate(110)translate([-49,-34,-h/2]) scale([2.3,1,1]) cylinder(d=2*20, h=2*h); translat...
glb/cad_563f41d914b3.glb
Create a Nexus S holder for an Audi MMI Radio by combining a base cover and a phone bracket. First, construct the cover as a rectangular base plate measuring 137.5mm by 29mm with a thickness of 2.85mm. Add a bevel along the top edge measuring 137.5mm by 3.5mm by 3.9mm. On both the left and right ends of the base, add...
rotate([90,0,0]){ audicover(); translate(v = [100, 0, 0]) rotate([0,2,0]) rotate([0,90,90]) nexusbracket(); } pillar(0.5,-8,6.95); pillar(6.5,-8,6.95); pillar(137.5-0.5,-8,6.95); pillar(137.5-6.5,-8,6.95); module pillar(x,y,z) { level=0; psize=1; bsize=4; translate(v = [x, y,level]) cylinder(z,psize,psize); transla...
glb/cad_e22d7fcf3bdd.glb
Create a customizable involute spur gear. The gear should have 30 teeth with a circular pitch of 400mm and a pressure angle of 21 degrees. Set the overall gear thickness to 5mm, with a clearance of 1mm between the root of the teeth and the tip of a meshing gear. The gear features a rim with a thickness of 10mm and a ...
use <MCAD/involute_gears.scad> 00_build_plate = 0; 01_number_of_teeth = 30; 02_circular_pitch = 400; 03_pressure_angle = 21; 04_clearance = 1; 05_gear_thickness = 5; 06_rim_thickness = 10; 07_rim_width = 5; 08_hub_thickness = 10; 09_hub_diameter = 20; 10_bore_diameter = 10; 11_circles = 5; 12_backlash = ....
glb/cad_33c96abd7e77.glb
Create a customizable wire spool consisting of two identical circular rims and a central core. Each rim is a cylinder 2mm thick with a diameter of 100mm. Remove a concentric center hole from each rim with a diameter of 20mm. In each rim, create three small wire holes with a diameter of 1mm each; position these holes 1m...
thicknessOfRim=2.0; diameterOfRim=100.0; heightOfSpool=30.0; diameterOfCore=50.0; diameterOfHoleInRim=20.0; coreWallThickness=2.0; coreWall=(diameterOfCore-2*coreWallThickness); translateRim=diameterOfRim+5; tolerance=6.0; wireHoles=true; diameterOfWireHoles=1.0; grooveInRim=diameterOfCore+((diameterOfCore/100)*tolera...
glb/cad_7380c5b8ec6f.glb
Create a drill press jig by starting with a solid block formed by the convex hull of four cylinders. Each cylinder has a diameter of 10mm and a height of 50mm, positioned at the corners of a rectangle centered at the origin with a width of 50mm along the X-axis and a length of approximately 58.5mm along the Y-axis. Ext...
xmax = 112; ymax = 130; rund = 10; echo("angle",atan(ymax/xmax)); hoj = 50; xwant = 25; ywant = (xwant/xmax) * ymax; xtot = xwant + rund/2; ytot = ywant + rund/2; delta = 0.05; module hjorner(){ for(i = [1,-1]) for(j = [1,-1]) translate([i*xwant,j*ywant,0])cylinder(d = rund, h = hoj); } difference(){ union(){ ...
glb/cad_2106bc16b3b2.glb
Create a Pyrex Pour Over Stand by starting with a main cylindrical base that is 100mm in diameter and 5mm thick. In the center of this base, remove a vertical cylindrical hole with a diameter of 19.5mm. Above this base, add a truncated cone that transitions from a bottom diameter of 94.75mm to a top diameter of 25mm ov...
slic=15; fid=19.5; difference(){ cylinder(d=100, h=5, center=true, $fn=256); cylinder(d=fid, h=8, center=true, $fn=256); for(i=[0:slic-1]) rotate([0, 0, 360*(i/slic)]) translate([0, 0, 0]) rotate_extrude(angle=(360/slic)-5, $fn=256) translate([16+12.5, 0, 0]) square([18, 32], center=true); } difference(){ cylin...
glb/cad_6b5832c1d03d.glb
Create a potentiometer knob with a height of 16mm and a top and bottom diameter of 20mm. The top edge should be rounded with a smoothing radius of 5mm. At the center of the base, create a vertical shaft hole with a diameter of 6.2mm and a depth of 13mm. This hole must have a flat side 5mm wide to accommodate a D-shap...
01_knob_diameter_top = 20; knob_radius_top = 01_knob_diameter_top / 2; 02_knob_diameter_bottom = 20; knob_radius_bottom = 02_knob_diameter_bottom / 2; 03_knob_height = 16; knob_height = 03_knob_height / 1; 04_knob_smoothness = 40; knob_smoothness = 04_knob_smoothness / 1; 05_shaft_diameter = 6.2; shaft_radius = 05_...
glb/cad_c50d2e7f58b3.glb
Create a TFT-Display-Bezel for a 2.8" SPI display. Start with a rectangular base plate measuring 107mm by 71mm with a height of 11.5mm. The plate should have rounded corners with a radius of 4mm. Cut a central rectangular opening for the display measuring 60mm by 47mm. This cutout should feature sloping walls that ta...
$fn = 32; wall = 1.6; xlen = 113-6; ywid = 71; radius = 4; screwt = 0.110 * 25.4; screwc = 0.150 * 25.4; screwhd = 0.27 * 25.4; screwhdt = 0.15 * 25.4; ddimx = 60.0; ddimy = 47.0; bezelt = 3; pegbase = 4.75; pegpin = 4.5; zht = bezelt + pegbase + 5.5; module peg(baseht,based,pinht,pind) { cylinder(h=baseht,d=based...
glb/cad_2310c4f54e6e.glb
Create a 15mm wrench by combining a circular head and a rectangular handle. Start with a cylinder that has a radius of 13.65mm and a height of 7.5mm, centered on the origin. Remove a hexagonal hole from the center of this cylinder with a flat-to-flat diameter of 17.3mm and a height of 8.5mm, ensuring the hexagon is rot...
SIZE = 17.3; THICKNESS = 7.5; HANDLE = 95; module wrench (inner, thick, handle) { union () { difference () { cylinder(r = (inner / 2) + 5, h = thick, center = true); rotate([0, 0, 60]) hex(inner, thick + 1); } handle(handle, thick); } } module handle (length, thick) { union () { translate([length -...
glb/cad_efad2645530c.glb
Create a parametric funnel consisting of a cylindrical top section and a conical bottom section. The top section is a hollow cylinder with a height of 160mm, an inner diameter of 190mm, and a wall thickness of 1.2mm. At the very top edge, add a flat ledge that extends the outer diameter by 3mm on each side and has a th...
Cyl_Height = 160; Cone_Height = 70; Top_Inside_Diameter=190; Ledge=3; Wall_Thickness=1.2; Tube_Outside_Diameter=25.0; Height = Cyl_Height + Cone_Height; $fn = 60; Top_Height = Height; Top_Outside_Diameter = Top_Inside_Diameter + Wall_Thickness*2; rotate([180,0,0]) translate([0,0,-Height]) { translate ([0,0,H...
glb/cad_746d45dc40c0.glb
Create a flashlight diffuser by constructing a hollowed conical shell with a rounded top. Start with a solid outer shape consisting of a cylinder at the base with a diameter of 23.5mm and a height of 5mm, topped by a cone that transitions from a 23.5mm base diameter to a 8mm top diameter over a height of 50mm, capped w...
d1=21.5; d2=6; h=50; h_u=5; wall=1; eps=0.1; $fn=64; difference(){ union(){ cylinder(d1=d1+2*wall,d2=d2+2*wall,h=h+wall); translate([0,0,-h_u]) cylinder(d=d1+2*wall,h=h_u); translate([0,0,h]) sphere(d=d2+2*wall+0.2); } translate([0,0,-eps]) cylinder(d1=d1,d2=d2,h=h); transl...
glb/cad_fdc11d93a0c0.glb
Create a parametric universal spool holder by starting with a centered cone frustum that has a height of 20mm, a bottom radius of 35mm, and a top radius of 20mm. Bore a vertical cylindrical hole with a diameter of 8mm through the center of the entire shape. To create the side cutouts, place five identical hexagonal pri...
dimA = 70; dimB = 40; height=20; cutNumber = 4; offset=30; dim=14; rotate=90; holeDiameter=8; difference(){ cylinder(r1=dimA/2, r2=dimB/2, h=height, $fn=80, center=true); cylinder(r=holeDiameter/2, h=height*2, center=true, $fn=80); for(i = [0:cutNumber]){ rotate([0,0,i*360/cutNumber]) translate([offset,0,0]) ro...
glb/cad_ef55a511713d.glb
Create a Digispark case and cover consisting of a main box and a removable lid. First, construct the case as a hollow rectangular box with outer dimensions of 22.2mm in width, 20.9mm in depth, and 10mm in height. The walls should be 1.2mm thick. Create a central rectangular cutout in the bottom floor measuring 12.8mm...
dsx = 19.8; dsy = 18.5; pcbz = 2.5; usb = 12.8; dsz = 10; wall = 1.2; level = 2; $fn=30; flaphole = 4; translate([0,0,15]) top(); DigiSparkCase(); Flaps(); module top() {difference() {union() {cube([dsx+2*wall,dsy+2*wall,wall]); translate([wall+(dsx-usb+1)/2,0,-dsz+pcbz+level+wall]) cube([usb-1,2*wall...
glb/cad_e8a238c6e9cd.glb
Create a PVC Female Coupler by constructing a central spherical core with a diameter of 33.625mm. From this core, extend two cylindrical arms along the X-axis in opposite directions. Each arm consists of a solid outer cylinder with a diameter of 33.625mm and a length of 34.375mm. To create the sockets, remove a cylind...
mm_per_inch = 25.4; PVCConnectorData = [ ["3/8 inch",.9375,.687,.75,1.15625,.473], ["1/2 inch",1.09375,.848,.75,1.25,.602], ["3/4 inch",1.28125,1.058,0.8125,1.375,.804], ["1 inch",1.59375,1.325,1,1.6875,1.029], ["1 1/4 inch",1.96875,1.67,1.25,2.125,1.36], ["1 1/2 inch",2.25,1.912,1.3125,2.3125,1.59], ["2 inch...
glb/cad_50f8bea2ef40.glb
Create a replacement end cap for a lawnmower roller. Start by constructing a base cylinder with a radius of 26.25mm and a height of 20mm. On top of this base, add a conical section that transitions from the base radius of 26.25mm up to a radius of 8mm over a height of 12mm. Above this cone, place a hollow vertical cyli...
union() { translate ([0,0,18]) cylinder (h = 2, r=26.75, center=false); cylinder (r=26.25, h = 20, center=false); translate ([0,0,20]) cylinder (h = 12, r2=8, r1=26.25, center=false); } difference() { translate ([0,0,32]) cylinder (h=17.5, r=8, center=false); translate ([0,0,32]) cylinder (h=17.5, r=5.75 ); } i...
glb/cad_2f0ffc9f0c28.glb
Create a cupboard bracket consisting of two perpendicular rectangular plates meeting at a right angle. The base plate is 20mm wide and 40mm long with a thickness of 3mm. The vertical side plate is also 3mm thick and 40mm long, but its width is 20mm, creating an L-shaped profile. Drill six circular holes, each with a ...
$fn=12; Th = 3; Width = 20; Len = 40; Drill = 4; Ribs = 2; color ("DodgerBlue"){ translate ([0,2.5,0]) rotate ([90,0,0]) linear_extrude(height = 2.5) polygon( points=[[0,0],[Width,0],[Width,Th],[Th,Width],[0,Width] ] ); translate ([0,Len,0]) rotate ([90,0,0]) linear_extrude(height = 2.5) polygon( points=[...
glb/cad_d1131cad77cc.glb
Create a Bike Lock Quick-Release Clasp consisting of two symmetrical mirrored halves. For each half, start with a hollow cylinder 24mm long with an inner radius of 6.2mm and an outer radius of 8.2mm. Modify the cylinder by removing a rectangular section to create a C-shaped channel. On the outer wall of each half, cr...
inner_r = 6.2; outer_r = inner_r + 2; cyl_len = 24; post_height = 5; clasp_len = 19.5; clasp_thick = 4; c_screw_r = 1.75; c_screw_height = inner_r+7.75; side_screw_r = 1.5; $fs = 0.5; $fa = 5; module half(top, y) { translate([0,-y,0])difference(){ union(){ difference(){ cylinder(h=cyl_len, r=outer_r); cyl...
glb/cad_5dd8f9e5791f.glb
Create two identical hypocycloid pendants. For each pendant, construct a flat 2D shape with a thickness of 2.5mm based on a three-cusped hypocycloid. The shape is generated by the path of a circle with a radius of 1mm (half the wall width) whose center moves such that the resulting figure has an outer radius of 25mm an...
$fa=3; $fs=0.05; N=3; D=1; Rout=25; wall_width=2; thickness=2.5; Rw=wall_width/2; R0=Rout-Rw; R1=R0*D/N; Rc=R0-R1; module mstone(f) { g = f*R1/Rc; translate([Rc*cos(g)+R1*cos(f), Rc*sin(g)-R1*sin(f)]) circle(Rw); } module pendant() { union() { linear_extrude(thickness) for (i...
glb/cad_892d08812b48.glb
Create two identical earring pendants. For each pendant, construct a flat geometric shape with a thickness of 2.5mm based on a hypocycloid curve. The shape is defined by a rolling circle of radius 1mm (half the wall width) that traces a path between an outer radius of 25mm and an inner radius of 7.14mm (calculated as 2...
$fa=3; $fs=0.05; N=7; D=2; Rout=25; wall_width=2; thickness=2.5; Rw=wall_width/2; R0=Rout-Rw; R1=R0*D/N; Rc=R0-R1; module mstone(f) { g = f*R1/Rc; translate([Rc*cos(g)+R1*cos(f), Rc*sin(g)-R1*sin(f)]) circle(Rw); } module pendant() { union() { linear_extrude(thickness) for (i...
glb/cad_9fc8a15e31e2.glb
Create two identical earring pendants. For each pendant, construct a flat 2.5mm thick shape based on a hypocycloid curve. The geometry is generated by sweeping a circle with a radius of 1mm along a path defined by the ratio of 11 to 7, resulting in a star-like figure with 11 cusps. The overall outer radius of the shape...
$fa=3; $fs=0.05; N=11; D=7; Rout=25; wall_width=2; thickness=2.5; Rw=wall_width/2; R0=Rout-Rw; R1=R0*D/N; Rc=R0-R1; module mstone(f) { g = f*R1/Rc; translate([Rc*cos(g)+R1*cos(f), Rc*sin(g)-R1*sin(f)]) circle(Rw); } module pendant() { union() { linear_extrude(thickness) for (...
glb/cad_958e413ba804.glb
Create a PCB holder for an Open Logic Sniffer. Start by constructing a rectangular base box with outer dimensions of 52mm in width, 96.2mm in length, and 4.5mm in height. This box should have a bottom thickness of 2mm and walls that are 1.5mm thick. Hollow out the center of the box to create a cavity that is 49.2mm wid...
pcbx = 49 ; pcby = 93 ; pcbz = 2.5; pcbmargin = 0.1; wallthickness = 1.5; bottomthickness = 2; module pcbholder(){ difference() { cube([pcbx+pcbmargin+2*wallthickness,pcby+pcbmargin+2*wallthickness,pcbz+bottomthickness], center=false); translate([wallthickness,wallthickness,bottomthickness]) cube([pcb...
glb/cad_bc41bf36298e.glb
Create an SSH1106 OLED Display enclosure consisting of a baseplate, a PCB holder box, and a front bezel plate. Start with a baseplate 100mm wide, 60mm high, and 4mm thick with rounded corners. Drill four 4mm diameter mounting holes at the corners (5mm offset from edges). Add four 5.2mm diameter holes on the top surfac...
tollerance = .5; baseplate_width = 100; baseplate_height = 60; baseplate_thickness = 4; baseplate_oled_plate_offset_x = 10; baseplate_oled_plate_offset_y = 10; oled_tollerance = 0.3; oled_pcb_height = 33.7 + oled_tollerance; oled_pcb_width = 35.9 + oled_tollerance; oled_pcb_hole_dia = 2.1 + oled_tollerance; oled_pc...
glb/cad_b9b84405f55e.glb
Create a Customizable Clamp with a GoPro Mount consisting of two symmetrical clamp halves joined by a hinge. For each clamp half, create a semi-circular ring with an inner diameter of 32mm, a thickness of 8mm, and a height of 20mm. On the inner side of each half, create a rectangular cutout 5mm wide to allow the clam...
clamp_height = 20 * 1; clamp_thickness = 8; clamp_inner_diameter = 32; clamp_space = 5; clamp_screw_diameter = 5; clamp_screw_head_space = 4.0; clamp_hinge_screw_diameter = 5; mount_height = clamp_height; mount_base_width = clamp_thickness / 2 + clamp_inner_diameter / 4 + 10; mount_base_height = 10 * 1; s = 0.2...
glb/cad_c02539a71c12.glb
Create a joystick controller test bracket with a base thickness of 3mm. The main body is formed by three connected sections: two outer rounded wings and a central connecting piece. The left wing is a hull created between a cylinder of radius 25mm centered at (40, 60, 0) and a cylinder of radius 15mm centered at (15, 15...
$fn=88; difference() { union() { hull() { translate([20+40/2,85-50/2,0]) cylinder(r=50/2, h=3); translate([30/2,30/2,0]) cylinder(r=30/2, h=3); } hull() { translate([20+40/2,85-50/2-5,0]) cylinder(r=50/2, h=3); translate([150-20-40/2,85-50/2-5,0]) cylinder(r=50/2, h=3); } ...
glb/cad_89d77eec2dde.glb
Create a HackRF PortaPack light case consisting of a hollowed rectangular shell with a wall thickness of 2mm. The outer dimensions of the box are 76mm in width and 121mm in length. The interior is hollowed out by removing a central block measuring 62mm by 131mm (extending slightly beyond the outer length) to create t...
$fn=30; PCBx=76; PCBy=121; PCBepais=1.8; boxwall=2 ; xtrou=4; ytrou=4; diamtrou=4.2; boutRotdiam=35; boutRotepaiss=6; PosXboutRot=PCBx/2; PosYboutRot=32.5; XLCD=45; YLCD=60; posXLCD=PCBx/2-XLCD/2; posYLCD=57.5; SMA=6; SMA=15; XposSMARF=14; YposSMARF=PCBy-0.1; difference(){ thebox(); union(){ tr...
glb/cad_038761ff9ec1.glb
Create a HackRF PortaPack light case as a flat rectangular plate with rounded corners. The main body should be 76mm wide, 121mm long, and 1.8mm thick. On the top face, center a rectangular cutout measuring 45mm by 60mm. Below this cutout, center a circular hole with a diameter of 35mm that penetrates through the plat...
$fn=30; PCBx=76; PCBy=121; PCBepais=1.8; boxwall=2 ; xtrou=4; ytrou=4; diamtrou=3.5; boutRotdiam=35; boutRotepaiss=6; PosXboutRot=PCBx/2; PosYboutRot=32.5; XLCD=45; YLCD=60; posXLCD=PCBx/2-XLCD/2; posYLCD=57.5; SMA=6; SMA=15; XposSMARF=14; YposSMARF=PCBy-0.1; difference(){ thebox(); translate([0,0,-0.0...
glb/cad_57c1f09065fc.glb
Create a cookie cutter with an internal rectangular cavity measuring 120mm in length, 30mm in width, and 10mm in height. The walls should be tapered so that the base of the cutter is thicker than the top. Specifically, the bottom edges should have a radius of 1.6mm, while the top edges taper down to a radius of 0.8mm. ...
size = [120, 30, 10]; top = 0.8; bottom = 1.6; label = "Ralf sein Plätzchenhobel"; label_height = 0.2; label_size = 0.5 * size.z; difference(){ hull() for(x=[0:1]) for(y=[0,1]) translate([size.x*x, size.y*y, 0]) cylinder(r1=bottom, r2=top, h=size.z, $fn=36)...
glb/cad_cd7da1cb9a38.glb
Create a cube with equal side lengths of 1mm for the x, y, and z axes.
cube([1.0,1.0,1.0]);
glb/cad_7c3e8cb229bc.glb
Create a tetrahedron defined by four vertices in 3D space. Position the first vertex at (0, 0, 0), the second at (0, 1, 0), the third at (1, 0, 0), and the fourth at (0, 0, 1). Connect these points to form four triangular faces: one face connecting the first, second, and third vertices; one connecting the first, second...
module part(c,v0,v1,v2,v3) { color(c){ polyhedron(points=[v0,v1,v2,v3],faces=[[0,1,2],[0,1,3],[0,2,3],[1,2,3]]); } } p000=[0.0,0.0,0.0]; p010=[0.0,1.0,0.0]; p100=[1.0,0.0,0.0]; p110=[1.0,1.0,0.0]; p001=[0.0,0.0,1.0]; p011=[0.0,1.0,1.0]; p101=[1.0,0.0,1.0]; p111=[1.0,1.0,1.0]; if($t>=0) { part("light...
glb/cad_9b5c3c18aeda.glb
Create a "Play Split Cube" by constructing a cube with a side length of 20mm, centered at the origin, and dividing it into five distinct polyhedral components. The first component is a tetrahedron defined by the vertices (0,0,0), (20,0,0), (20,20,0), and (0,20,0) relative to the cube's local coordinate system. The se...
act0red="yes"; act1blue="yes"; act2yellow="yes"; act3green="yes"; actAgrey="yes"; actSpheres="yes" ; module dummy() {}; p=[[0,0,0],[1,0,0],[1,1,0],[0,1,0], [0,0,1],[1,0,1],[1,1,1],[0,1,1]]; f0=[0,1,3,0]; f1=[0,1,4,0]; f2=[0,3,4,0]; f3=[1,3,4,1]; f4=[1,2,3,1]; f5=[1,2,6,1]; f6=[2,3,6,2]; f7=[1,3,6,1]; f8=[1,5,...
glb/cad_d74b67650694.glb
Create a replacement case for a Hörmann HSE 4 BiSecur transmitter consisting of a bottom shell, a top cover, and an optional protective slider. Construct the bottom shell as a rounded rectangular box with a wall thickness of 1.5mm and a corner radius of 1.5mm. The interior should be hollowed out to accommodate a PCB ...
use <roundedcube.scad>; roundAllCorners = true; useOriginalMountingPin = true; useProtectiveSlider = true; useIcons = true; $fn=50; showSideBySide = true; showWithOffset = false; partOffset = 0.2; protectiveSliderOpen = false; cutThroughHalfHorizontal = false; cutThroughHalfVertical = false; openSideFactor = 1; rend...
glb/cad_84e2ec2f21dc.glb
Create a toolbox clip/buckle with an overall outer width of 56mm, a length of 80.7mm, and a total height of 38mm. The main body is a hollowed-out rectangular shell with a wall thickness of 3mm and rounded corners with a radius of 8mm on the x-axis. The interior cavity has a width of 50mm and a length of 74.7mm. At the...
use <roundedcube.scad>; $fn=50; roundedRadiusEndClip = 8; roundedRadiusStartClip = 8; innerWidth = 50; length = 80.7; angle = 30; clipHeight = 19; rimHeight = 5; wallThickness = 3; clipWidth = 4; hingeTopWidth = 9; hingePivotHeightOuter = 13; hingeHeightOuter = hingePivotHeightOuter + 3.5; hingePivotYOffset = 11.7;...
glb/cad_7ea5470f09fb.glb
Create a parametric wrench for M4 nuts with a total length of 75mm and a thickness of 5mm. Construct the main body by placing two cylinders, each with a radius of 6.97mm and a height of 5mm, at opposite ends of the tool. Connect these two cylinders with a central rectangular block that is 6.94mm wide and 5mm thick, spa...
include <MCAD/regular_shapes.scad> D = 6.94; M = D/2; H = 5; Ltot = 75; L = Ltot-2*(D/2+M); difference() { union() { translate([0,L/2,H/2]) { cylinder(r = (D/2+M), h = H,center = true); } translate([0,-L/2,H/2]) { cylinder(r = (D/2+M), h = H,center = true); } translate([-1*D/2,-L/2,0]) { cube(...
glb/cad_be0c265e4dfb.glb
Create a JamboxMini Case, a protective sleeve consisting of a front and back half. For the main body, create a rectangular shell with a height of 155mm and a width of approximately 32mm. The walls should be 2.5mm thick. On the bottom end, create a beveled opening to allow the speaker to slide in, with the interior cu...
difference() { hull() { linear_extrude(height = 2.5, center = false) { polygon(points=[[-14.34,32.94],[-14.69,32.9],[-15.02,32.8],[-15.32,32.64],[-15.59,32.42],[-15.8,32.16],[-15.97,31.86],[-16.07,31.53],[-16.1,31.17],[-16.1,-29.76],[-16.07,-30.47],[-15.97,-30.8],[-15.8,-31.1],[-15.59,-31.36],[-15.32,-31.58],[-15.0...
glb/cad_a766b138a672.glb
Create a JamboxMini Case, a protective sleeve for a small speaker. The case is a hollow rectangular shell with an open end for inserting the device. Construct the main body as a rectangular extrusion with a height of 155mm and a cross-section approximately 32mm by 32mm. The walls should be 2.5mm thick. At the closed e...
difference() { hull() { linear_extrude(height = 2.5, center = false) { polygon(points=[[-14.34,32.94],[-14.69,32.9],[-15.02,32.8],[-15.32,32.64],[-15.59,32.42],[-15.8,32.16],[-15.97,31.86],[-16.07,31.53],[-16.1,31.17],[-16.1,-29.76],[-16.07,-30.47],[-15.97,-30.8],[-15.8,-31.1],[-15.59,-31.36],[-15.32,-31.58],[-15.0...
glb/cad_1c62a18c6287.glb
Create a JamboxMini Case, which is a protective sleeve consisting of a main body with an open end for inserting a speaker. Construct the main body as a hollow rectangular shell with a height of 155mm. The cross-section is approximately 32mm by 32mm, with walls 2.5mm thick. The exterior should feature a slight bevel o...
difference() { hull() { linear_extrude(height = 2.5, center = false) { polygon(points=[[-14.34,32.94],[-14.69,32.9],[-15.02,32.8],[-15.32,32.64],[-15.59,32.42],[-15.8,32.16],[-15.97,31.86],[-16.07,31.53],[-16.1,31.17],[-16.1,-29.76],[-16.07,-30.47],[-15.97,-30.8],[-15.8,-31.1],[-15.59,-31.36],[-15.32,-31.58],[-15....
glb/cad_d72128a0d160.glb