Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a game cartridge holder consisting of three identical side-by-side units. For each unit, start with a base pocket that is 63mm wide, 9.7mm deep, and 31mm high. Hollow out the center of this pocket to create a slot 61mm wide and 7.7mm deep, leaving a 1mm wall thickness on all sides and a 1mm floor. Cut a rectangu...
numberOfPockets = 3; wallThickness = 1; cartridgeWidth = 61; cartridgeThickenss = 7.7; pocketHeight = 31; sideBorderToLabel = 6; bottomLip = 4; shelfThickness = 12; shelfHookHeight = 6; fullAssemblyWidth = cartridgeWidth+2*wallThickness; labelWindowWidth = cartridgeWidth - 2 * sideBorderToLabel; module cartridge_...
glb/cad_b56a87fbd279.glb
Create a Not-So-Googly Eye by constructing two stacked cylindrical discs. First, create a base white disc with a diameter of 50mm and a height of 2mm. Then, place a second, smaller black disc on top of the first. This upper disc should have a diameter of 30mm and a height of 2mm. Position the upper disc so that it is o...
eyeDiameter = 50; pupilDiameter = 30; pupilOffset = 8; layerHeight = 2; $fn = 128; color("white") linear_extrude(layerHeight) circle(d = eyeDiameter); color("black") translate([pupilOffset,0,layerHeight]) linear_extrude(layerHeight) circle(d = pupilDiameter);
glb/cad_03a4ada37929.glb
Create a Parameterized Gridfinity Precision Screwdriver Holder. Start by constructing a Gridfinity-compatible base bin that is 2 units wide by 3 units deep, with a height of 3 Gridfinity units (21mm). Ensure the bin includes a stacking lip and the standard base magnet and screw holes. Inside the bin, create a series o...
include <gridfinity-rebuilt-utility.scad> screwdriver_top = 15; longest_screwdriver = 115; screwdriver_params = [ [15,6 ,4 ,80-screwdriver_top], [15,6 ,3 ,80-screwdriver_top], [14,5 ,2.5,74-screwdriver_top], [13,4 ,2 ,67-screwdriver_top], [12,3.5,1.2,62-screwdriver_top]...
glb/cad_35f203af6e0c.glb
Create a side-sleeping mod casing for Panasonic RP-HJE125E earphones. The object is a low-profile ring consisting of an inner core and a rounded outer shell. First, construct the inner core by combining a thin cylinder with a diameter of 11.2mm and a height of 1mm, and a slightly smaller cylinder centered beneath it ...
include <BOSL2/std.scad> $fn=200; rotate([0,180,0]) { difference() { union() { difference() { cylinder(h = 1, d = 11.2); translate([0,0,-1.5]) cylinder(h = 3, d = 10.6); } translate([0,0,1]) difference() { cyl(...
glb/cad_ff90e76c0d6a.glb
Create an end cap for DN40 tubing by constructing a hollow cylinder with an outer diameter of 40.4mm and a total height of 16mm. The object should have a flat base with a wall thickness of 1.5mm. To achieve this, create a solid cylinder 40.4mm in diameter and 16mm tall, then remove a concentric inner cylinder with a di...
$fn=400; toleranz=.2; id=40+(toleranz*2); wand=1.5; hoehe=16; difference() { cylinder(r=(id/2)+wand, h=hoehe); #translate([0,0,wand]) cylinder(r=id/2, h=hoehe); }
glb/cad_3d2f8e1034c8.glb
Create a dynamic microphone capsule mount by starting with a main cylinder 31mm in diameter and 22mm in height. Hollow out the center by removing a cylinder 28mm in diameter starting from a height of 3mm and extending upwards through the top. At the base, remove a central cylinder 13mm in diameter and 10mm in height. A...
$fn=128; difference() { union() { cylinder(d=31,h=22); } translate([0,0,3]) cylinder(d=28,h=40); translate([0,0,-1]) cylinder(d=13,h=10); for(s=[-1,1]) translate([8*s,8*s,-.01]) { cylinder(d=2.2,h=10); translate([0,0,2.02]) cylinder(d1=2.2, d2=4.2,h=1); translate([0,0...
glb/cad_d7c2ba0e595f.glb
Create a customized I/O panel for a Boss BSB-60. Start with a main rectangular plate measuring 106mm in length, 60mm in width, and 3mm in thickness. Round the two corners on one end of the plate with a radius of 10mm. At each end of the plate, 8.5mm from the edges and centered 12mm and 46.5mm from the sides, create two...
$fn=64; union() { difference() { cube(size=[106, 2, 20+3], center=false); translate([-40, -20, 5+3]) rotate([0, 5, 0]) cube(size=[40, 40, 40], center=false); translate([106+40, 20, 5+3]) rotate([0, 0, 180]) rotate([0, 5, 0]) cube(size=[40, 40, 40], center=false); for (i=[0:3]) { ...
glb/cad_e9faf23be7ea.glb
Create a compensated nut for an electric guitar by starting with a rectangular base measuring 42mm wide, 3mm deep, and 0.3mm high. On top of this base, add six smaller rectangular blocks, each 7mm wide, aligned side-by-side across the width of the base. Each block should have a height of 1.5mm. Position these blocks st...
width = 42; length = 3; base = 0.3; thick = 1.5; strings = 6; electric(); module acoustic() union() { cube([width, length, base]); translate([5*width/strings, 0, base]) cube([width/strings, length*12/16, thick]); translate([4*width/strings, 0, base]) cube([width/strings, length*8/16, thick]); translat...
glb/cad_3f9b08c0935a.glb
Create a parametric chamfer sanding tool consisting of a main sanding pad and two clamps. For the main pad, construct a central body with a length of 60mm. The cross-section is a complex profile featuring a 45-degree angled notch for a 10mm chamfer, flanked by two triangular side walls that are 40mm wide. The overall...
chamfer_w=10; chamfer_play=1; side_w=40; back_l=60; back_t=5; tip_t=1.5; back_w=chamfer_w+2*chamfer_play+back_t*1.2; clamp_min_t=2; paper_t=0.5; screw_r=1.4; screw_r2=1.6; screw_l=20; module profile() difference() { hull() { translate([-tip_t,chamfer_w]) square([tip_t+side_w,side_w-chamfer_w]); translate(...
glb/cad_f249f1f8308d.glb
Create a MAME control joystick mounting box. Start by constructing a main rectangular body with rounded corners. The body is defined by a hull of four cylinders, each with a radius of 20mm and a height of 55mm, positioned at the corners of a 140mm by 100mm area. From this main body, remove a central interior volume c...
$fn=128; module smbut() { %translate([0,0,0])cylinder(d1=17.5,d2=12,h=9); translate([0,0,-1])cylinder(d=13,h=2); translate([0,0,-4.05])cylinder(d2=13, d1=12,h=3.1); %translate([0,0,-10])cylinder(d=12,h=10); } module holes() { s=22; translate([5, 12,0]){ translate([-33,8+81-67+s,-3])cyli...
glb/cad_227b1ce2786e.glb
Create a wall box for shower utensils. The main body is a hollowed-out rectangular shell with an outer thickness of 3mm. The interior cavity measures 135mm in width, 75mm in depth, and 40mm in height. The overall structure is formed by two symmetrical halves joined at the center. The outer walls should have rounded co...
INNER_X = 135; DRAW_LETTER = "yes"; LETTER = "K"; LOFS_X = 12; FONT_SIZE = 30; FONT_NAME = "Ubuntu:style=bold"; LOFS_Z = -15; INNER_Y = 75; INNER_Z = 40; LOWER_Z = 7; LOWER_Y = 5; THICKNESS = 3; CTIE_X = 1.8; CTIE_Y = 3; CTIE_DIST = 16; CTIE_OFS = 5; q = .1; $fn = 6; difference() { union() { translat...
glb/cad_f969f1181bd9.glb
Create an LED strip mount for a 55mm wooden beam. The object is a 15mm tall extrusion of a specific 2D profile. Start by creating a base rectangular section 10mm wide and 2.52mm thick. Attached to this is a larger C-shaped bracket designed to clip onto the beam; this bracket has an interior width of 55mm and a wall thi...
q=.00001; module clip(h=10, x=17, y=8.5, t=2) { linear_extrude(height=h) { polygon(points=[ [0,0], [x,0], [x,y], [x-t,y], [x-t,t], [t,t], [t,y], [0,y], [0,0] ]); translate([t, 7]) circle(r=1.5, $fn=32); translate([x-t, 7]) circle(r=1.5, $fn=32); } } module winkel(h=10, d=15, w=5...
glb/cad_14ec3bbab6f2.glb
Create a Headphone Grid Maker consisting of a circular disc with a decorative geometric cutout pattern. The overall diameter of the disc is 49.8mm with a total thickness of 3mm. The main feature is a "crosstri" pattern centered on the disc. This pattern is formed by a series of intersecting lines with a thickness of 2...
part_to_export = "coaster"; enable_preview_items = "no"; preview_cup_size = 72; size_type = "coaster-diameter"; size_in_MM = 49.8; number_of_sides = 100; corner_round = 3; coaster_pattern_height = 3; coaster_base_height = 0; extra_border_height = 0; multicolor_preview = false; multicolor_preview_color = "Blu...
glb/cad_d2f050c09712.glb
Create an Ice Funnel consisting of two stacked, hollow cylindrical sections. First, create a base ring with an outer diameter of 25mm and an inner diameter of 23mm, reaching a height of 5mm. Directly on top of this base, add a second hollow cylindrical section that starts at the 5mm height mark and extends to a total h...
union() { difference() { cylinder(5, 25, 21); translate([0, 0, -1]) cylinder(7, 23, 16); } translate([0, 0, 5]) difference() { cylinder(8, 21, 21); translate([0, 0, -1]) cylinder(12, 19.5, 19.5); } }
glb/cad_2b2e0dbce920.glb
Create a Candycane Light Stake Replacement consisting of two primary coaxial sections: an upper post and a lower tapered stake. First, create the upper post as a cylinder with a radius of 7mm and a height of 50mm. Carve two symmetrical semi-cylindrical channels out of the sides of this post; each channel should be cr...
$fa = 1; $fs = 0.4; merge_offset=0.001; post_radius=7; post_diameter=2*post_radius; post_height=50; module post() { cylinder(h=post_height,r=post_radius); } cut_post_radius=4; cut_post_height=post_height+merge_offset; module cut_post() { cylinder(h=cut_post_height,r=cut_post_radius); } module final_post(){ ...
glb/cad_62420c99cd58.glb
Create a musical shaker consisting of two identical egg-shaped shells and a connecting ring. To form each shell, create a geometric shape by taking the hull of a sphere with a 15mm radius and a scaled version of that same sphere stretched by a factor of 2.6 along the Z-axis. Hollow out the center of each shell by remov...
$fn=12; radius = 15; wall = 1.5; tol = .1; stretch = 2.6; linkh = 10; module ei(rd) { hull(){ intersection(){ scale([1,1,stretch]) sphere(r=rd); translate([0,0,stretch*rd])cube(2*stretch*rd, center = true); } sphere(r=rd); } } for (t = [-(radius+5), (radius+5)]) translate ([t,0,0]) ...
glb/cad_539043c2f163.glb
Create a TEDxRM keyring pendant with a uniform thickness of 2mm. Start by extruding the TEDxRM logo geometry to this thickness. The main body is a rectangular plate approximately 43.75mm wide and 12.5mm tall. At the left end of the pendant, integrate a circular attachment point for a keyring. This attachment is formed ...
$fn=192; thick=8; scale(.25) rotate([180, 0, 0]) union(){ difference() { intersection() { translate([0, 148, -thick/2]) cube(size=[175, 50, thick*2]); translate([-5, 0, 0]) linear_extrude(file="TEDxRM.dxf", height=thick); } translate([-25/2, 148+25, 0]) cube(size=[25,...
glb/cad_770ae0b002b5.glb
Create a keychain pendant by starting with a rectangular base measuring 43.75mm in length, 12.5mm in width, and 2mm in thickness. At the left end of the rectangle, integrate a circular eyelet for a keyring. This eyelet is formed by a cylinder with an outer radius of 6.25mm and a concentric inner hole with a radius of 3...
$fn=192; thick=8; scale(.25) rotate([180, 0, 0]) union(){ difference() { translate([0, 148, 0]) cube(size=[175, 50, thick]); translate([282, -440, -4]) scale(2.5) rotate([0, 180, 0]) linear_extrude(file="#hackffm.dxf", height=thick, center=true); } translate([0, 148+25, thick/2]) difference(...
glb/cad_46debf9f2744.glb
Create a bracket for a slide bushing by starting with a central cylindrical body and adding a rectangular base. The main body is a cylinder with a radius of 7mm and a height of 10mm, centered on the X and Y axes. Merge this with a rectangular block measuring 16mm wide, 10mm deep, and 8mm high, also centered on the X an...
$fn=96; nothing=.001; module main() { difference() { union() { translate([0, 0, 8]) rotate([90, 0, 0]) cylinder(r=12/2+2, h=10, center=true); translate([0, 0, 4]) cube(size=[16, 10, 8], center=true); } translate([0, 0, 8]) rotate([90, 0, 0]) cylinder(r=10/2, h=15, ...
glb/cad_e56fc6af0acb.glb
Create a Y-axis endstop flag for a Prusa Mendel. Start by constructing a rectangular base block measuring 10mm wide, 25mm long, and 3mm thick. Attached to the side of this base, add a thin rectangular arm extending 30mm in length, 1.5mm in width, and 4.5mm in height, positioned so it is centered along the 25mm length o...
SCREWD=3.2; $fn=50; difference() { union() { cube([10,25,3]); translate([0,25/2-1.5/2,0]) difference() { cube([30,1.5,4.5]); translate([0,-4,3]) rotate([0,-45,0]) cube([10,10,10]); } } translate([0,0,-10]) union() { for(i = [5:.5:9]) translate([5,i,0]) cylinder(r=SCREWD/2, h=20); for(i = [20:.5:1...
glb/cad_a26023c709e2.glb
Create a Rietveld-style bed bracket. Start with a central rectangular base measuring 41.25mm by 52.25mm with a thickness of 3.79mm. Expand this base by adding a rounded fillet with a radius of 2.79mm to all edges. Attach a rectangular block to the top of this base, centered on the X-axis, measuring 41.25mm wide, 8.37mm...
q = .25; wx = 40.5+1; wy = 51+1; thick = 2.79; over = 20; $fn = 8; module basis() { translate([0, -wy/2, 0]) cube(size=[wx+q, wy+q, thick+q], center=true); } module winkel(dy=0) { basis(); translate([0, over/2, (wy+dy)/2]) cube(size=[wx+q+over, thick+q+over, wy+dy+q+over], center=true); ...
glb/cad_24b735f509bb.glb
Create a bed frame called Hannah's Bed using wooden beams with a square cross-section of 58mm by 58mm. Construct a rectangular base with internal dimensions of 900mm by 2000mm. The side rails are formed by beams totaling 2116mm in length (2000mm inner plus two 58mm beam widths). The end rails are formed by beams tota...
INNER_X = 900; INNER_Y = 2000; OUTER_Z = 1100; echo("mattress size", INNER_X, INNER_Y); BEAM_X = 58; BOARD_X = 18; BOARD_Y = 144; FAZE = 1.15; BOARD_FAZE = FAZE / 2.6; echo("beam width", BEAM_X); echo("board profile", BOARD_X, BOARD_Y); q = .1; module xbeam(dx, dy, dz) { translate([dx, dy, dz+BEAM_X/2]) { ...
glb/cad_9b6143f96154.glb
Create an AC/Heater Adjustment Knob consisting of a rounded cap and a mounting post. Start by creating a main knob body with an outer diameter of 30mm and a height of 18mm. The body should have a rounded, organic profile, blending a spherical top with a flatter base. Attached to the bottom center of the knob, create ...
$fn = 40; knob(); translate([0, 0, -10])post(holeDiam=4.8, flatDiam=4); module post(postLength = 12, postThick = 1.6, holeDiam = 4.9, flatDiam = 4.2, holeDepth = 10) { postDiam = holeDiam + postThick*2; difference() { cylinder(h=postLength, d=postDiam); intersection() { cylinder(h=holeDepth,...
glb/cad_aaea8ba185e8.glb
Create a filament sample card by starting with a solid rectangular base measuring 40mm in length, 20mm in width, and 3mm in height. Center the base on the origin. On the top surface of the card, carve out the text "PLA" as a recessed cutout. The letters should be extruded 1mm deep into the surface. Position the text so...
TEXT="PLA"; TEXT2=""; Length=40; Width=20; Height=3; difference() { cube([Length,Width,Height],center = true); translate([Length/2-Length,0,Height/2-0.5]) linear_extrude(1) text(TEXT); translate([Length/2-Length,0,Height/2-0.5]) linear_extrude(1) text(TEXT); translate([Length/2-Length,-6,Height/2-0.5]...
glb/cad_9f244fc05384.glb
Create a Calibration Spire for X, Y, and Z axis steps. The main body is composed of several overlapping rectangular prisms of varying sizes to create a stepped, asymmetric tower. Start by combining six rectangular blocks: one 20x5x15mm, one 30x5x10mm, one 40x5x5mm, one 5x20x15mm, one 5x30x10mm, and one 5x40x5mm, along ...
module write(word, size) { translate([0,0,-.5]) linear_extrude(1) text(word, size); } difference(){ union(){ cube([20,5,15]); cube([30,5,10]); cube([40,5,5]); cube([5,20,15]); cube([5,30,10]); cube([5,40,5]); cube([12,12,85]); } translate([3,-1,0...
glb/cad_c92f85508f25.glb
Create a ukulele nut intonation fixer. Start with a rectangular base measuring 35.15mm in width (X) and 4.2mm in depth (Y). The base should have a vertical thickness of 4.75mm to match the fretboard height. On the top surface, create four string grooves. Each groove is formed by removing a U-shaped channel consisting ...
nut_x = 35.15; nut_y = 4.2; fret_z = 4.75; str_z = 1.27; x_g = 3.85; x_c = 13.0; x_e = 22.1; x_a = 31.7; th_g = 0.73; th_c = 0.76; th_e = 0.70; th_a = 0.55; off_g = 2.4; off_c = 3.2; off_e = 2.6; off_a = 1.4; str_g = [x_g, th_g, off_g, 0]; str_c = [x_c, th_c, off_c, 1]; str_e = [x_e, th_e, off_e, 2]; str_a = [x_a...
glb/cad_6f2d775bad06.glb
Create a ukulele nut intonation fixer with a rectangular base measuring 36.5mm in width (X) and 5.1mm in depth (Y). The main body should have a height of 5.1mm (Z) to match the fretboard thickness. On the top surface, create four string grooves. Each groove is formed by a cylindrical cutout with a diameter slightly l...
nut_x = 36.5; nut_y = 5.1; fret_z = 5.1; x_g = 4.50; x_c = 13.5; x_e = 22.5; x_a = 31.7; th_g = 0.62; th_c = 0.90; th_e = 0.72; th_a = 0.55; off_g = 1.6; off_c = 1.6; off_e = 1.8; off_a = 2.6; str_g = [x_g, th_g, off_g, 0]; str_c = [x_c, th_c, off_c, 1]; str_e = [x_e, th_e, off_e, 2]; str_a = [x_a, th_a, off_a, 3]...
glb/cad_79ca4a1189dd.glb
Create a Bug-A-Salt Sling Holder consisting of two mirrored U-shaped brackets connected by a support beam. Each bracket is a rectangular frame with an outer width of 50mm, a height of 80mm, and a thickness of 10mm. The interior of each bracket is hollowed out to accommodate the gun, leaving a wall thickness of 10mm. P...
include_arm = 0; th = 10; br_h = 80; br_w = 50; br_space = 170; gun = [400, 60, 95]; module bracket(){ br_z_off = -((gun[2]-br_h)/2)-th; difference(){ translate([0,0,br_z_off]) cube([br_w, gun[1]+(th*2), br_h], center=true); cube(gun, center=true); translate([0,0,br_z_off]) cube([b...
glb/cad_97dcd293903c.glb
Create a Motorola Talkabout Holder by constructing a hollow shell with a wall thickness of 1.1mm and a total height of 95mm. The main body is based on a rounded rectangular prism with dimensions of 54mm width, 32.2mm depth, and 112.5mm height, featuring a corner radius of 13mm. To form the interior cavity, subtract a ...
display_hole = true; case_th = 1.1; case_h = 95; ac_base = false; module grow(x, y, z, f) { translate([0, 0, -f]) resize([x + f*2, y + f*2, z + f*2]) children(); } body_x = 54; body_y = 32.2; body_z = 112.5; body_center_offset = 2.1; body_c = 13; module radio_body() { translate([0, body_center_offset,bod...
glb/cad_9c0365b5fcc2.glb
Create a protective case for a Sonoff Basic wifi switch. The case is a hollow shell with a wall thickness of 1.5mm. The main body is based on the dimensions of the Sonoff Basic PCB, expanded by a 0.2mm fudge factor to ensure a proper fit. The case is designed as a top cover that fits over the board. On the top surfa...
use <sonoff_basic.scad>; $fn=60; th = 1.5; ff = 0.2; module print(w="test", rot=0, v=0) { rotate([v, 0, rot]) linear_extrude(10.5) scale(0.3) text(w, font="Liberation Sans Narrow:style=Bold"); } rotate([180,0,0]) difference(){ sonoff_basic(th, include_keepouts=0); sonoff_basic(ff, includ...
glb/cad_0ace09526d2d.glb
Create a Sonoff Basic Speedo Case, which is a protective hollow shell designed to fit over a PCB. Start by creating a solid rectangular base with dimensions 66.3mm in length, 35.65mm in width, and 1.25mm in height. From this base, remove a central rectangular volume to create a frame with a wall thickness of 0.7mm. ...
use <sonoff_basic.scad>; $fn=60; th = 0.7; ff = 0; module print(w="test", rot=0, v=0) { rotate([v, 0, rot]) linear_extrude(10.5) scale(0.3) text(w, font="Liberation Sans Narrow:style=Bold"); } pcb_x = 64.9; pcb_y = 33.95; pcb_z = 1.25; rotate([180,0,0]) difference(){ union(){ sonoff...
glb/cad_7e58497819b7.glb
Create a Sonoff Basic Speedo Case, which is a protective enclosure for a Sonoff Basic WiFi switch. The case is designed as a hollow shell with a wall thickness of 1.5mm. Start by creating the main internal cavity based on the device's dimensions. The base is a rectangular PCB area measuring 64.9mm by 33.95mm with a he...
$fn=60; include_button = 0; th = 1.5; ff = 0.2; ds = 0.05; module grow(x, y, z, f) { translate([-f, -f, 0]) resize([x + f*2, y + f*2, z + f]) children(); } pcb_x = 64.9; pcb_y = 33.95; pcb_z = 1.25; module pcb(f=ff){ color("green") grow(pcb_x, pcb_y, pcb_z, f) difference(){ cube([pcb_x, pcb_y, pcb...
glb/cad_4d15701ffcca.glb
Create a phone webcam gantry mount consisting of a mounting plate and a phone holder connected by a structural bridge. First, create a rectangular mounting plate 20mm wide, 50mm high, and 4mm thick with rounded corners (1mm radius). In this plate, create two aligned screw holes with a diameter of 3.6mm and countersun...
$fn = 100; screw_z_in_phone = 10; screw_y_in_phone = 50; phone_roll = -20; phone_yaw = -25; x_off = 5; phone_h = 140.5; phone_w = 72.5; depth_fudge = .4; phone_d1 = 8 + depth_fudge; phone_d2 = 10.2 + depth_fudge; bevel_w = 18; module rounded_box(points, radius, plate_h){ hull(){ for (p = points)...
glb/cad_b4ab2aa0e16c.glb
Create an MPSM X-axis adjustable stop by starting with a solid rectangular block measuring 7.3mm in width, 25mm in length, and 4mm in height. Carve a rectangular hole through the center of this block to create a slot. This interior cutout must measure 3.3mm in width, 22mm in length, and 5mm in height. Position the cuto...
x_amount = 4; th = 1.5; module support(){ cube([3.3, 22, 5]); } difference() { cube([x_amount+3.3+th, 22+th*2, 4]); translate([x_amount, th, -.5]) support(); }
glb/cad_870b8f8323d9.glb
Create a Pegstr pegboard organizer bin. Start by constructing a rectangular bin with an open top and a height of 13mm. The outer dimensions of the bin's footprint are 18.5mm by 18.5mm (calculated as the 15mm orifice size plus two 1.85mm walls), with a wall thickness of 1.85mm throughout. The bottom of the bin is open t...
holder_x_size = 15; holder_y_size = 15; holder_height = 13; wall_thickness = 1.85; holder_x_count = 1; holder_y_count = 1; corner_radius = 30; taper_ratio = 1.0; holder_offset = 3.0; strength_factor = 0.66; closed_bottom = 0.0; holder_cutout_side = 0.95; holder_angle = 0.0; holder_sides = max(50, min(20, h...
glb/cad_c521cf1a86a2.glb
Create a USB charger cable manager consisting of a hollow rectangular sleeve with rounded corners and edges. The outer dimensions of the sleeve should be 48mm wide by 31.5mm high, with a depth of 15mm. The walls should have a thickness of 2.5mm. The interior cavity is a rounded rectangle measuring 43mm wide by 26.5mm h...
$fn=50; w=43; h=26.5; d=15; t=2.5; ir=6; filet=0.8; or=ir+t; module main_shell ( w, h, d, t, ir, or ) { difference(){ translate([filet+or,filet+1+or,2*filet]){ minkowski(){ cube([w+2*(t-or-filet),h+2*(t-or-filet),d-1-4*filet]); cylinder(r=or); rot...
glb/cad_457524c2e609.glb
Create a disinfection bottle holder by starting with a solid block that is 62mm wide, 62mm deep, and 41mm high. Modify this main volume by rounding the vertical edges using a fillet with a diameter of 62mm. Inside this block, carve out a central hole to accommodate the bottle. This void should be 20.74mm wide, 36mm de...
difference() { difference() { translate(v=[31.0, 31.0, 20.5]) cube(size=[62, 62, 41], center=true); translate(v=[31.0, 31.0, -0.02]) linear_extrude(height=41.04, center=false, convexity=10, twist=0.0, scale=1.0) difference() { translate(v=[15.5, 15.5, 0.0]) square(size=[31.04, 31.0...
glb/cad_96092dfcc971.glb
Create a centring mandrel for a router by combining a tapered base with a vertical cylinder. Start by creating a cone-shaped base with a bottom diameter of 45mm and a top diameter of 8mm, reaching a height of 35mm. Centered on top of this base, add a cylinder with a diameter of 8mm and a height of 70mm, positioned so t...
$fn = 200; shank_size = 8; union(){ translate([0,0,3]) cylinder(70,shank_size/2,shank_size/2); difference(){ cylinder(35,d1=45,d2=shank_size/2); linear_extrude(2) mirror([1,0,0]) text("Festool OF1010", size = 4, halign = "center"); } }
glb/cad_dc0ad5ce8761.glb
Create a lid lug fix by constructing a main outer body and removing specific internal volumes. Start with a solid shape formed by the convex hull of two cylinders, each with a diameter of 25.2mm and a height of 6mm, positioned 25mm apart along the Z-axis and rotated 90 degrees. From this main body, remove a central cyl...
difference() { translate(v=[0, 3.0, 0]) hull() { rotate(a=[90, 0, 0]) cylinder(h=6, d=25.2, $fn=197, center=true); translate(v=[0, 0, 25]) rotate(a=[90, 0, 0]) cylinder(h=6, d=25.2, $fn=197, center=true); } translate(v=[0, 2.99, 0.0]) hull() { rotate(a=[90, 0, 0]) cylinder(h=...
glb/cad_49fa74a0f440.glb
Create a Rhombille surface pattern modifier with a total width of 25mm, depth of 25mm, and a height of 0.2mm. The geometry consists of a hexagonal lattice where each hexagon is subdivided into three equal rhombi, creating a "cubes in 3D" isometric effect. Construct the pattern using a grid of hexagons with a specified...
$vpr=[90 - atan(sin(45)),0,45]*1 * 0; $vpd = 600 + 12; Width = 25; Depth = 25; Height = 0.2; Grid_thickness = 0.05; Columns = 5; cols = Columns; Trim_to_area = true; Shape_type = 1; is_ngon = 2 == Shape_type; Ngon_or_circle_sides = 180; sides = Ngon_or_circle_sides; is_circle = sides >= 60; Add_centering_fill...
glb/cad_bfc744de85c2.glb
Create a race track connecting part that is 5mm high. The object is composed of two identical mirrored halves joined together. For one half, start with a cylinder 3.4mm in diameter and 5mm high. Attached to this cylinder, create a rectangular block 5.3mm wide, 1.9mm thick, and 5mm high, centered so that it extends from...
$fn = $preview ? 15 : 90; height = 5; endDiameter = 3.4; width = 7; length = 14.2; thickness = 1.9; _half_part(); translate([0, length - thickness, 0]){ mirror([0, 1, 0]) { _half_part(); } } module _half_part() { cylinder(h = height, d = endDiameter); translate([0, -(thickness / 2), 0]) { ...
glb/cad_58dc75e95f5d.glb
Create a parametric bottle cap with a wall thickness of 2mm and an inner diameter of 45mm. The main body is a hollow cylinder with an inner depth of 11mm and an outer diameter of 49mm. The top edge of the cap is rounded with a radius of 2mm. Inside the cap, create a single helical thread that starts 1.3mm from the bot...
precision=3; wallThickness=2; innerDiameter=45; innerDepth=11; threadPitch=3.81; threadDepth=1.25; threadWidth=1.3; threadTurns=1.5; threads=1; threadStart=1.3; ridges=25; smoothness=(precision==1)?4:((precision==2)?6:20); facets=(precision==1)?6:((precision==10)?20:50); segments=facets*threadTurns; $fn=max...
glb/cad_6a7ec74bf51c.glb
Create a bottle cap and bottleneck assembly. Start by constructing a hollow cylindrical cap with a wall thickness of 2mm and an inner diameter of 45mm. The cap should have an inner depth of 11mm. On the exterior of the cap, add 25 evenly spaced vertical ridges. For the bottleneck, create a central cylinder with a radi...
precision=3; wallThickness=2; innerDiameter=45; innerDepth=11; threadPitch=3.81; threadDepth=1.25; threadWidth=1.3; threadTurns=1.5; threads=1; threadStart=1.3; ridges=25; smoothness=(precision==1)?4:((precision==2)?6:20); facets=(precision==1)?6:((precision==10)?20:50); segments=facets*threadTurns; $fn=max...
glb/cad_243a7c78eed6.glb
Create a race track guardrail holder with a total height of 5mm. Start by forming a base consisting of two mirrored halves. Each half begins with a semi-cylinder at the end with a diameter of 3.4mm and a height of 5mm. Attached to this is a rectangular body 7mm wide and 14.2mm long. Extend a vertical column upwards fr...
$fn = $preview ? 15 : 90; height = 5; endDiameter = 3.4; width = 7; length = 14.2; thickness = 1.9; guardrail_height = 28.5; guardrail_thickness = 2.4; _half_part(); translate([0, length - thickness, 0]){ mirror([0, 1, 0]) { _half_part(); } } module _half_part() { cylinder(h = height, d = endDia...
glb/cad_6142a4dd7faa.glb
Create a race track support column. Start by creating a wide cylinder for the base section with a diameter of 18mm and a height of 14mm. On top of this, add a narrower cylinder with a diameter of 13.2mm and a total height of 20mm, centered on the base. Hollow out the center of the entire structure by removing a cylin...
$fn = $preview ? 15 : 90; part = "column"; height = 20; topDiameter = 13.2; topThickness = 0.86; topCutSize = 1.9; bottomDiameter = 18; bottomHeight = 14; holeHeight = 10; baseHeight = 9; baseTopDiameter = topDiameter; baseTopThickness = topThickness; baseTopCutThickness = topCutSize; baseBottomDiameter = 36; b...
glb/cad_accb0d1e0e24.glb
Create a Cable Hook organizer consisting of a rectangular mounting base and a protruding cylindrical arm. Start with a central rectangular block measuring 22mm wide, 5.5mm high, and 44mm deep. Remove four cylindrical holes from this block to create mounting points: two holes with a radius of 2.2mm centered 7.7mm from t...
hh = 10*2.2; rr = 1*2.2; xx = 3.5*2.2; yy = 5*2.2; zz = 8.5*2.2; xc = 10*2.2; yc = 2.5*2.2; zc = 20*2.2; r2 = 2*2.2; r3 = 4*2.2; difference() { cube([xc,yc,zc],center=true); translate([xx,yy,zz]) rotate([90,0,0]) cylinder(h=hh,r=rr); translate([-xx,yy,zz]) rotate([90,0,0]) ...
glb/cad_57d63ffa3849.glb
Create an Artillery Z Mod carriage by starting with a central rectangular block measuring 96mm in width, 36mm in depth, and 60mm in height. Carve out a main central hollow measuring 60mm by 28mm by 62mm. At the four corners of the block, create cylindrical voids with a diameter of 30mm and a height of 28.5mm to accom...
debug = true; cut = "none"; Side = "Left"; $fn = 100; block = [96,36,60]; mhy = 28; bearing = [30.40,20]; th = 6.10; screw = 5.10; hashead = true; head = 12.80; head_h = 1.50; nut = 9.30; enh = 6.05; end = 7.20; hasnut = false; if( debug ){ z_mod(); } else if( S...
glb/cad_977610cf8b63.glb
Create a Falcon Lid Protein Column Filter Holder consisting of a hexagonal nut-like head and a cylindrical base. Start by constructing a hexagonal prism with a flat-to-flat diameter of 27mm and a height of 12mm. Bore a central hole through this prism with a major diameter of 20mm. Inside this hole, carve a helical thre...
use <guided_extrude.scad>; length=12; D=20; P=3; ND=27; H=sqrt(3)/2 * P; R=H/(P/2); ppr=31; ww=1; exl=20; mhd=10; loops=length/P; xw=0.2; tid=15; trapezoidShape = [ [-H/2+xw+0.1*R,-P/2+0.1], [1/4*H+xw,-P/8], [1/4*H+xw,P/8], [-H/2+xw+0.1*R,P/2-0.1] ]; helicalPath = [ for(t = [-90:(360/ppr):(360+90...
glb/cad_16c001da5485.glb
Create a Christmas Bead Chain bead by constructing a solid of revolution. Start with a 2D profile consisting of a circle with a radius of 2mm. Position this circle such that its center is at a distance of approximately 6.1mm from the central axis of rotation. Rotate this profile 360 degrees around the axis to create a ...
use <../../misc_shapes/round_cylinder.scad> use <../../misc_shapes/round_hole.scad> use <../../misc_shapes/round_cube.scad> difference(){ r=2; b=3.5; c=5-r; gamma= atan(c/b); a=sqrt(b*b+c*c); steps = 16; echo ("gamma:",gamma); hull() rotate_extrude($fn=32) for ( i= [0:steps-1]) { echo (-gamma+ i*2*gamma/(steps-1))...
glb/cad_75900d96e24f.glb
Create a Christmas Bead Chain snowflake ornament with a total thickness of 4mm. The design is based on a six-fold rotational symmetry. First, construct a single snowflake fragment. This fragment consists of a central cylinder with a radius of 2mm and a height of 4mm. Extending from this center, create a series of conn...
use <../../misc_shapes/round_cylinder.scad> use <../../misc_shapes/round_hole.scad> use <../../misc_shapes/round_cube.scad> end_r = 2; edge_r = end_r/2; thickness = 4; outside_r=15; center_r = 5; star_snowflake(); module fragment_side() { hull(){ rotate([0,0,30]) translate([6,0,0]) ...
glb/cad_5a6cfd90f235.glb
Create a Christmas Bead Chain component by constructing a rounded ring shape. Start with a central cylinder that has an inner radius of 5mm, an outer radius of 7mm, and a total height of 10mm. The cross-section of this ring should be a rectangle with rounded corners. Specifically, the top and bottom edges of the ring's...
hole_rounded(); module hole_rounded(r=5,h=10,rc=2,rfn=16, rcfn=8 , round_bottom=true, round_top=true) { rotate_extrude($fn=rfn) { difference() { if(round_bottom == true) { translate([0,-0.01]) square([r+rc,h+0.02]); }else { square([r+rc,h+0.01]); } hull() { if(round_bottom == true) { trans...
glb/cad_0a2ee82812e1.glb
Create a Christmas Bead Chain bead by constructing a rounded cylinder with a radius of 5mm and a height of 10mm. The shape should be defined by a 16-sided polygonal cross-section. Ensure both the top and bottom edges are rounded with a corner radius of 2mm. The rounding of these edges should be based on an 8-sided poly...
cylinder_rounded(round_bottom=false); module cylinder_rounded(r=5,h=10,rc=2,rfn=16, rcfn=8 , round_bottom=true) { hull() { rotate_extrude($fn=rfn){ if(round_bottom == true) { translate([r-rc, rc]) circle(r=rc,$fn=rcfn); } else { translate([r-2*rc, 0]) square(2*rc,2*rc); } translate([r-r...
glb/cad_82a09a6105d7.glb
Create a trick dice by starting with a cube that has a side length of 20mm and a rounding radius of 3.5mm on all corners and edges. On each of the six faces, create hemispherical indentations to represent the dice pips. Each pip should have a diameter of 2.5mm. The pips are positioned relative to the center of each f...
$fn = 32; size = 20; roundingRadius = 3.5; dotDis = 5; dotSize = 2.5; halfSize = size/2; dice(); module dice() { difference() { roundedcube([size,size,size], center = true, radius=roundingRadius); translate([0,0,-halfSize]) number(1); translate([halfSize,0,0]) rotate([0,90,0]) number(...
glb/cad_478c7ee1a0ab.glb
Create a magnetic letter box draft excluder consisting of two mirrored rectangular frames connected by a flexible hinge. Each frame is a rectangular slab with outer dimensions of 244mm by 73mm and a thickness of 6.4mm. The center of each slab is hollowed out by a rectangular cutout measuring 228mm by 57mm, leaving a ...
opening_width = 228; opening_height = 57; magnet_size = [10, 10, 2]; primary_frame_width = 8; tessellation_tolerance = 0.2; num_hinges = 10; hinge_size = 5; hinge_width = (opening_width + primary_frame_width * 2 - tessellation_tolerance * (num_hinges - 1)) / num_hinges; side_thickness = 2; secondary_frame_wi...
glb/cad_1fe1a117590e.glb
Create a Covid Teststand by constructing a hollow triangular prism with a height of 25mm and a base side length of 20mm. The walls of this prism should be 1mm thick. To create the opening for the test tubes, remove three cylindrical sections from the base of the prism. Each cylinder must have a diameter of 5mm and a he...
d = 1; difference() { cylinder(25, 20, 30, $fn= 3); translate([0, 0, d]) cylinder(25, 20-d, 30-d, $fn= 3); translate ([7.8, 0, -d]) cylinder(50, 5, 5, $fn= 128); translate ([-4, 7, -d]) cylinder(50, 5, 5, $fn= 128); translate ([-4, -7, -d]) cylinder(50, 5, 5, $fn= 128); }
glb/cad_42a7f92b3688.glb
Create a Covid Teststand by starting with a main cylinder that has a diameter of 25mm and a height of 30mm. Hollow out this main cylinder by removing a smaller concentric cylinder from the center with a diameter of 20mm and a height of 29mm, leaving a wall thickness of 1mm at the base. To create the support openings, r...
$fn = 128; rz = 0; d = 1; difference() { rotate([0,0,rz]) cylinder(25, 20, 30); translate([0, 0, d]) rotate([0,0,rz]) cylinder(25, 20-d, 30-d); translate ([-7, -7, -d]) cylinder(50, 5, 5, $fn= 128); translate ([7, -7, -d]) cylinder(50, 5, 5, $fn= 128); translate ([-7, 7, -d]) cylinder(50, 5, 5, $...
glb/cad_7c823b5fe0f9.glb
Create an S-shaped hook for Christmas ornaments. The entire object is constructed from a continuous wire with a diameter of 0.375mm. The hook consists of three main sections. First, create a small upper hook by sweeping a circle of 0.1875mm radius along a circular path with a diameter of 2mm, leaving an opening of 26...
SmallHook = 8; SmallOpening = 260; LargeOpening = 240; Diameter = 1.5; SAngle = 140; extralength= 20; sides=10; ome1 = SmallHook; ome2 = SmallOpening; c1 = Diameter*2; rc1 = SAngle; module semicircle(){circle(c1,$fn=sides);} module hook(an,dh){rotate_extrude(angle=an, convexity=10) translate([(dh)*2,0]) ...
glb/cad_415a71d6ba4d.glb
Create an ornament eyelet consisting of a thin wire-like structure with a uniform diameter of 1.5mm. The shape begins with a circular loop that has an outer diameter of 10mm. The loop is not a full circle; it is formed by two symmetrical arcs that meet at the bottom. From the base of this loop, extend two straight legs...
eyelet_width = 10; Omiga_circle = 270; Diameter = 1.5; leg_angle = 60; leglength= 15; sides=10; ome1 = eyelet_width; ome2 = Omiga_circle; c1 = Diameter*2; rc1 = leg_angle; module halfeyelet(){ rotate([0,0 ,270-ome2*0.5]) union(){ rotate_extrude(angle=ome2*0.5, convexity=10) translate([(ome1-c1...
glb/cad_dc5d6cf85a08.glb
Create a customizable ornament cap by extruding a hexagonal ring profile vertically to a height of 10mm. The outer boundary of the shape should be a hexagon with a diameter of 10mm, and the wall thickness should be 0.6mm. As the shape is extruded upward, apply a 90-degree twist to the geometry. At the base of the cap, ...
d = 10; h = 10; lh = 0.2; bl = 4; wall = 0.6; twist = 90; sides = 6; co=2.0; Co = 1 ; module hex(s){circle(d = d, $fn = s);} module twist(r1,r2,s2){ difference() { offset(r = r1) { hex(s=sides); } offset(r = r2) { hex(s=s2); } } } linear_extrude(height = h, twist = twi...
glb/cad_34abf838dcb7.glb
Create a dishwasher chopstick basket screen with a total length of 77mm and a width of 60mm. The main structure consists of seven parallel ridges, each 1.5mm thick and 6.5mm high, spaced 10mm apart. These ridges run across the width of the screen. At each end of the screen, add a vertical cross brace that is 2mm thick ...
spacing = 10; thk = 1.5; bracethk = 2; braceoffset = sqrt(25/2)-bracethk/2; screen(length=77, width=60); module screen(length, width) { difference() { union() { translate([0, spacing-1.5-thk/2, 0]) for(i=[0:6]) { translate([0, i==0 ? -1 : (i==6 ? 1 : 0), 0]) { ...
glb/cad_b42c45be4368.glb
Create a series of interlocking brick-like columns of varying heights to form a "Brick iceberg" structure. Each individual brick unit must have a square base measuring 8mm by 8mm and a height of 9.6mm per unit of elevation. On the top face of every brick, center a cylindrical stud with a diameter of 5mm and a height of...
module point(x,y,h) { h = round(h); if(h > 0) { bw = 8; bh = 9.6; nub_h = 1.8; nub_d = 5; translate([x*bw,y*bw,0]) cube([1*bw,1*bw,h*bh]); translate([(x+.5)*bw,(y+.5)*bw,h*bh]) cylinder(nub_h,nub_d/2,nub_d/2, $fn=20); } } dx=4; dy=1...
glb/cad_1448f7480557.glb
Create a Sock Clips for Drying Rack tool consisting of a long rod holder and a series of 12 identical pegs. First, construct the rod holder as a horizontal cylinder with a diameter of 16mm (12mm rod diameter plus 2mm walls on each side) and a length of approximately 138.6mm. Hollow out the center with a 12mm diameter...
clip_count = 12; clip_width = 8; clip_length = 30; clip_wall = 1.2; clip_height = 4; clip_distance = 3.5; gap = 0.2; rod_diameter = 12.0; rod_wall = 2.0; alpha = 120; $fn = 25; $fs = 0.01; l = clip_count*clip_width + (clip_count-1)*(clip_distance + gap); echo("total length is: ", l); module roundedcube(size...
glb/cad_b478715de206.glb
Create a wireless charging phone stand with a total width of 73mm and a height of 146mm. The main body is a vertical plate 5mm thick, tilted back at a 20-degree angle. At the base, create a rectangular foot section 73mm wide, 50mm deep, and 10mm high. Within this base, carve out a central rectangular cavity 33mm wide...
phoneHeight = 146; phoneWidth = 73; topRounding = 6; phoneThickness = 10; thichness = 5; restHeight = 20; thin = 1; discRadius = 25.5; discHeight = 66; discThickness = 3; bottomCut = 5; feetLength = 50; feetHeight = 10; angle = 20; pcbThickness = 4; pcbWidth = 33; pcbWidthMargin = 35; pcbLength = 35; pcbDepth = 5; usbW...
glb/cad_70526390698c.glb
Create a Wireless Charging Stand by constructing a hollow rectangular box. Start with a solid rectangular block that is 32.8mm wide, 34.8mm long, and 4.3mm deep. From the center of this block, remove a smaller rectangular volume to create a cavity, leaving a wall thickness of 1mm on the left, right, and bottom sides, a...
deviation = 0.2; pcbWidth = 33-deviation; pcbLength = 35-1-deviation; pcbDepth = 4.5-deviation; thickness = 1; difference() { cube([pcbWidth, pcbLength, pcbDepth]); translate([thickness, 0, thickness]) { #cube([pcbWidth-2*thickness, pcbLength, pcbDepth-thickness]); } }
glb/cad_c966883498b3.glb
Create a screw and nut assembly for sealing corrugated iron sheets. First, construct a screw with a 6mm outer thread diameter and a 3mm step height. The screw should have a total thread length of 15mm, a 55-degree tooth angle, and a flat top with a countersunk bottom. The head of the screw is a truncated cone that tran...
use <polyScrewThread/polyScrewThread_r1.scad> PI=3.14159; assembly(); module assembly() { hat(); translate([0, 20, 0]) nut(); } module hat() { difference() { cylinder(r1=10/2, r2=20/2, h=10, center=false, $fn=96); translate([0, 0, 3]) cylinder(r1=10/2, r2=20/2, h=10, center=false, $fn=96...
glb/cad_88db23e4c967.glb
Create two identical circular coins for media usage, each with a diameter of 25mm and a height of 4mm. For each coin, create a main cylindrical body and carve out a shallow cylindrical depression from the top face, leaving a 2mm wide rim around the edge. This depression should be 1.5mm deep. Inside this recessed area, ...
use <MCAD/bitmap/bitmap.scad> HEIGHT = 4; CHAR_Z = 1.5; DIA = 25; RIM = 2; q = .001; $fn = 192; hannah_coin(); translate([0, DIA+6, 0]) jonas_coin(); module hannah_coin() { coin(); translate([0, 0, HEIGHT-CHAR_Z-q]) 8bit_char("H", DIA/12, CHAR_Z); } module jonas_coin() { coin(); translate([0, 0, HEI...
glb/cad_bafca205262d.glb
Create a coin holder consisting of four identical side-by-side slots. For each slot, start with a solid rectangular block measuring 28mm in width, 21.25mm in depth, and 43mm in height. From this block, remove a central vertical cylinder with a diameter of 27mm and a height of 43mm, but leave a solid base at the bottom ...
use <coin.scad> DIA = 25+2; COIN_Z = 4; SLOTS = 4; CAPACITY = 10; BASE = 3; BEEF = 3; SCREW_DIA = 4.5; q=.001; $fn=192; DEPTH = DIA * .85; HEIGHT = BASE + (CAPACITY * COIN_Z); WIDTH = DIA + BEEF + q; echo ("dimensions: ", WIDTH*SLOTS, DEPTH, HEIGHT); holder(); translate([0, 0, BASE]) %coin(); module holder() { ...
glb/cad_c52f23cc3763.glb
Create a racing wheel for a Nexus 7 tablet. Start by creating a main outer ring with a diameter of 241mm (calculated from a 198.5mm tablet width plus 42mm grips) and a wall thickness of 2mm. Inside this ring, create a central rectangular cavity to hold the tablet, measuring 198.5mm by 119.5mm with a depth of 10.45mm....
FN = 8; if (TRG>0) { plate(); } else { assembly(); } N7_X = 198.5; N7_Y = 120 - .5; N7_Z = 10.45; q = .2; THICK = 2; GRIP = 42; SPOKE = 20; SPOKE_ANGLE = 30; CIRC_INNER = (N7_X + GRIP) / 2; module n7_frame() { difference() { cylinder(r=CIRC_INNER, h=N7_Z+(THICK*2), center=true); for(d=...
glb/cad_d806f739277f.glb
Create a printer calibration part called "compound10" by combining a cube and a cylinder. Start by forming a solid base that is the union of a 10mm x 10mm x 7mm cube and a cylinder with a 5mm radius and a height of 7mm, where the cylinder is positioned so its center aligns with the center of one of the cube's vertical ...
difference() { union() { cube([10,10,7]); translate([5,0,0]) cylinder(r=5,h=7,$fn=64); } translate([5, 12, 4]) rotate([0, 0, 45]) cube(size=[10, 10, 10], center=true); }
glb/cad_7d31fbddb17c.glb
Create an under-hood light push pin. Start with a main rectangular body that is 5.9mm wide, 22mm long, and 2.5mm thick. At the top end of this body, remove a small rectangular cutout measuring 1.7mm wide, 4mm long, and 2.5mm deep to create a locking tab. Attached to the center of the bottom face of the body, add a cyl...
translate([0,26,0]) cube([5.9,2,3.2]); translate([0,27.42,2.38]) rotate([-35,0,0]) cube([5.9,1.22,1]); translate([-2,11,1.5]) cube([9.9,6,1]); difference() { translate([0,7,0]) cube([5.9,22,2.5]); translate([2,21.87,0]) cube([1.7,4,2.5]); } group() { translate([3,14.5,-11]) cylinder(d=4.2,h=11,$fn...
glb/cad_88cfa6efca71.glb
Create a retroCART USB Cartridge System consisting of a cartridge shell and a matching slot assembly. For the cartridge shell, create a rectangular block 72.15mm wide, 18mm high, and 65mm long. Hollow out the center to create an internal void, leaving a wall thickness of 1.8mm. At the front, create a centered opening...
render_cart = true; render_body = false; render_rear = false; cart_y = 65; side_grip = true; bottom_grip = false; antenna_cart = false; cart_open_y = 20; open_x = 17.9; open_z = 9.7; $fn=50; cart_open_x = 72.5; cart_open_z = 18.6; cart_key_x = 6.5; cart_key_z = .8; reader_x = 78; reader_y = 25; reader_z = 3...
glb/cad_cfe2b0629135.glb
Create a baby monitor hinge with a total height of 11mm. Start with a rectangular base that is 82mm long (exterior length) and 53mm wide (exterior width). Within this base, create a central hollow rectangular cutout that is 60mm long and 42mm wide, leaving a wall thickness of 11mm on the edges. The ends of the hinge ...
edge_width = 11; interior_width = 42; interior_length = 60; exterior_length = interior_length + edge_width * 2; exterior_width = interior_width + edge_width; total_height = 11; top_difference = 8; nub_offset = 3; nub_dia = 5; $fn = 90; module solid_panel() { union() { translate([edge_width,0,0]) ...
glb/cad_53adc9928c5d.glb
Create a Christmas candy cane light stake. Start with a main rectangular body that is 85mm long, 3mm thick, and 16.5mm wide. Apply a 1mm chamfer to the edges of this body. The first 16.5mm of the length (the top section) should be thicker, with a width of 16.5mm and a thickness of 3mm. At the end of the stake, create ...
include <BOSL-1.0.1/shapes.scad> thickness = 3; width = 16.5; top_len = 16.5; length = 68.5 + top_len; point_len = 25; hat_rad = 12; hat_dia = hat_rad * 2; hat_offset = 18; hat_notch_len = 7; hat_notch_gap = 2; module cubec(size, center) { if (center=="x") { translate([size[0]/2,0,0]) cub...
glb/cad_321cd3c0ddab.glb
Create a Christmas candy cane light stake. Start with a main rectangular body that is 85mm long, 3mm thick, and 16.5mm wide. The first 16.5mm of this body (the top section) maintains the full 16.5mm width, while the remaining 68.5mm of the length is narrowed to a thickness of 3mm. At the end of the stake, create a po...
thickness = 3; width = 16.5; top_len = 16.5; length = 68.5 + top_len; point_len = 25; hat_rad = 12; hat_dia = hat_rad * 2; hat_offset = 18; hat_notch_len = 7; hat_notch_gap = 2; module cubec(size, center) { if (center=="x") { translate([size[0]/2,0,0]) cube(size, center=true); } el...
glb/cad_ceec47bfc77a.glb
Create a Y Chassis Integrated Bushing for a 3D printer. The model consists of a central cylindrical bushing integrated into a mounting strap. First, construct the integrated bushing. Create a cylinder with an outer diameter of 15.1mm and an inner diameter of 7.9mm, with a total length of 24mm. This cylinder is compose...
$fn = 120; bearingDiameter = 15; bearingLength = 24; bearingType = "mk3"; nozzleWidth = 0.45; shellsForStrap = 0; bearingRidgeDiameter = bearingDiameter - 1.0; bearingRidgeWidth = 0.0; mountLength = bearingLength + 2 * bearingRidgeWidth; screwDiameter = 2.8; screwLength = 9.6; mountHoleSeparation = 22.9 - (22.9 - 17.2...
glb/cad_18b3a98140f5.glb
Create a String Art Flower Christmas ornament with a total diameter of approximately 100mm. The design is based on a central cylinder with a diameter of 4.27mm and a height of 8.4mm. Radiating from this center, create 8 identical petals spaced every 45 degrees. Each petal is formed by a series of intersecting linear ...
include<ub.scad>; Type = 2; A_T1 = [16,20,22,24,26]; A_T2 = [16,30,30,30,30]; Qt1 = A_T2[Type]; Qt2 = A_T1[Type]; Ht = Qt1*.2; Ht1 = .21; Z1 = .2; Wid = 0.8; W2 = Wid / 2.0; A_PTS = [[-0.1693,-0.0697],[3.2454,3.3451],[5.8459,5.9456],[8.4799,8.5796],[11.1269,11.2265], [13.7824,13.882],[16.4389,16.5385],[19.1023,19...
glb/cad_d750dc1c88c9.glb
Create a support bracket for a 1/2" EMT pipe. Start by creating a main body that is a combination of a cylinder and a rectangular extension. The base of the bracket is a cylinder with a diameter of 24mm and a height of 3mm. From this base, extend a rectangular arm 50mm in length with a thickness of 3mm. At the start ...
$fn = 100; rodDiameter = 18; supportDepth = 20; supportHeight = 50; supportThickness = 3; difference() { hull() { translate([0, 0, 0]) cylinder(d = rodDiameter + 2 * supportThickness, h = supportDepth); translate([0, 0, 0]) cylinder(d = rodDiameter, h = supportDepth); translate([suppor...
glb/cad_a6ae8a4118dd.glb
Create a hubcentric ring wheel adapter in the shape of a hollow cylinder with a height of 10mm. The outer wall should be a straight vertical cylinder with a constant diameter of 66.05mm from the bottom to the top. The center should be hollowed out by a concentric inner cylinder with a constant diameter of 64.18mm. Ensu...
$fn = 200; outerBottomDiameter=66.05; outerConnicVariation=0; innerBottomDiameter=64.18; innerConnicVariation=0; height=10; difference () { cylinder (d1=outerBottomDiameter, d2=outerBottomDiameter+outerConnicVariation, h=height); cylinder (d1=innerBottomDiameter, d2=innerBottomDiameter+innerConnicVariation...
glb/cad_dda5ee222847.glb
Create a wall mount for a cordless vacuum and its accessories. Start with a backplate that is 19mm thick. In this plate, create two mounting holes for screws spaced 81mm apart. Each hole consists of a 4mm diameter shaft slot and an 8.5mm diameter head hole. Incorporate a curved channel for a 3.5mm diameter power cord t...
screwholesep = 81; headslotlen = 16; headslotwid = 12; screwplatethk = 2.5; screwslotlen = 11; screwslotdia = 4; headholedia = 8.5; legthick = 20; leglen = 70; rcorner = 7; traplong = 80; trapshort = 64; trapht = 28; armroot = 60; armmid = 35; armtip = 20; flair = 8; bendamt = 10; aclen = 22; acwid = 11; acht = 17; ...
glb/cad_5a49a59aeed3.glb
Create a parametric hose plug with a total length of 20mm. Start with a cylindrical base attachment 4.5mm high with a diameter of 14.4mm. Above this base, create a main body that transitions from a cylinder with an 8mm diameter into a hemispherical cap with an 8mm diameter at the top. Along the length of this main body...
Tl= 20 ; Dh= 8 ; Dr= 9.6 ; Nr= 5 ; Ha= 4.5 ; Da= Dh*1.8 ; Hd=2; $fn= 90 ; difference() { union() { cylinder(h=Ha,d=Da); hull(){ cylinder(h=0.001,d=Dh); translate([0,0,Tl-Dh/2]) sphere(d=Dh); } cs = Dh/2; sqs = sqrt(2*pow(cs/2,2)); for (i = [Ha:(Tl-Ha/2-D...
glb/cad_97e4b04c5695.glb
Create a Micro:bit case with a main frame and an internal slot for the device. The outer frame is a rounded rectangular plate measuring 55.6mm by 46mm with a height of 10mm and corner radii of 6mm. Inside this frame, create a central cavity to house the Micro:bit, which measures 51.6mm by 42mm with a depth of 11.65mm...
resolution = 100; $fn = resolution; view = "both"; module rounded_plate(w, h, t, d) { translate([0, (d/2), 0]) cube([w, (h-d), t]); translate([(d/2), 0, 0]) cube([(w-d), h, t]); translate([(d/2), (d/2), 0]) cylinder(h=t, d=d); translate([w-(d/2), (d/2), 0]) cylinder(h=t, d=d); tran...
glb/cad_9f34e7debd80.glb
Create a flush-mounted box lid consisting of a circular base and two symmetrical retaining clips. Start with a thin circular disc 90mm in diameter and 0.8mm thick. At the center of this disc, add a small cylindrical protrusion with a base radius of 2.5mm, rising to a height of 2.8mm, topped with a 0.6mm thick frustum t...
$fn=50; DM=60; radius=10; laschenlaenge=30; laschendicke=1.2; translate([0,0,0])cylinder(r=DM/2+15,h=0.8); translate([0,0,0])cylinder(r=2.5,h=2.8); translate([0,0,2.8])cylinder(r1=2.5,r2=3,h=0.6); translate([0,0,3.4])cylinder(r1=2.9,r2=2.9,h=0.6); translate([0,DM,0]){ klammerseite(); mirror()klammerseite(); } m...
glb/cad_710e144d550d.glb
Create a wind turbine experiment base by constructing a composite geometric form. Start with a central block that incorporates a hexagonal prism with a radius of approximately 11.55mm and a height of 20mm, positioned at the top. Attach this to a rectangular base consisting of three joined sections: one measuring 10 by ...
$fn=50; difference(){ union(){ translate([0,0,10])rotate([0,90,0])rotate([0,0,90])cylinder(r=10*2/sqrt(3),h=20,$fn=6); translate([10,-55,0])cube([10,55,20]); translate([10,-65,0])cube([65,10,20]); translate([35,-55,0])cube([20,23,20]); translate([45,-43,20])rotate([0,0,0])cylinder(r=3,h=5); } ...
glb/cad_dd5215880c49.glb
Create two pulley wheels for a wind turbine experiment. The first pulley is a cylinder with a diameter of 10mm and a total height of 10.5mm. The second pulley is a cylinder with a diameter of 60mm and a total height of 10.5mm. For both pulleys, construct the main body using a series of stacked concentric cylinders: a...
$fn=100; riemenscheibe(10); translate([50,0,0])riemenscheibe(60); module riemenscheibe(durchmesser){ difference(){ union(){ translate([0,0,0])cylinder(r=durchmesser/2,h=0.4); translate([0,0,0.4])cylinder(r1=durchmesser/2,r2=durchmesser/2-1.5,h=1.5); translate([0,0,1.9])cylinder(r=durchmesser/2...
glb/cad_4f3ca5e56f13.glb
Create a wind turbine experiment base. Start by constructing a main rectangular block with a total length of 65mm, a width of 10mm, and a height of 20mm, positioned from x=35 to x=100 and y=-65 to y=-55. Attach a second rectangular block to the side, measuring 20mm in length, 23mm in width, and 20mm in height, position...
$fn=50; difference(){ union(){ translate([35,-65,0])cube([65,10,20]); translate([35,-55,0])cube([20,23,20]); translate([45,-43,20])rotate([0,0,0])cylinder(r=3,h=5); } translate([34.9,-44,10])rotate([0,90,0])rotate([0,0,90])difference(){ cylinder(r=10.5,h=30); translate([-10,8.5,-0.1])cube(...
glb/cad_11bee8811542.glb
Create a wind turbine rotor hub. Start with a base cylinder 40mm in diameter and 11mm in height. On top of this cylinder, center a sphere with a radius of 9mm, blending the two shapes together. Pierce a vertical hole through the center of the entire assembly with a radius of 1.1mm. Additionally, create a horizontal c...
anzahl=3; durchmesser=40; anstellwinkel=45; winkel=360/anzahl; $fn=50; toleranz=0.1; difference(){ union(){ hull(){ translate([0,0,0])cylinder(r=durchmesser/2,h=11); translate([0,0,9])sphere(r=9); } } for(k=[0:winkel:359]){ rotate([0,0,k]){ translate([durchmesser/2,0,6])aussparung(...
glb/cad_5137fe9c4ce6.glb
Create a 7-segment display holder for 3mm LEDs. The main body is a rectangular block measuring 17.5mm in length and 12.5mm in width, with a height of 10mm. On the top and bottom surfaces of this block, create a grid of pin holes. The holes are 0.9mm square and are spaced 2.54mm apart. On one side, arrange 13 pins; on...
pinneavstand=2.54; pinnebredde=0.9; pinnehoyde=11; pad=1.1; hullradius=0.4; sjusegmentlengde=17.5; sjusegmentbredde=12.5; pothoyde=5; potradius=7.5; $fn=20; 7seg(sjusegmentlengde,sjusegmentbredde); translate([0,13,+2])lokk(sjusegmentlengde,sjusegmentbredde); translate([0,-13,+2+9])difference(){ translate([0,0,-9])...
glb/cad_daeba9f68811.glb
Create a lid for a wheat beer glass. Start with a main circular disk with a diameter of 84mm and a thickness of 0.8mm. Around the outer edge of this disk, add a raised rim 1.6mm high with an inner diameter of 80mm, creating a lip that fits the glass rim. On the top surface of the disk, center the text "my Beer!" with ...
glassdiameter=80; lidheight=0.8; Textheight=0.4; rimheight=1.6; scharnierhoehe=1.5; TextTop="my Beer!"; TextTopSize=14; TextBottom="Cheers"; TextBottomSize=16; font1="Pacifico"; not_listed_font="Sacramento"; $fn=80; bracket_print=1; lid_print=1; Text_print=1; if(lid_print==1){ difference(){ union(){ ...
glb/cad_b35c36ce66b7.glb
Create a mount for an ESP32CAM to be used with an Elster V200 water meter. Start by creating a cylindrical base with a diameter of 66mm and a height of 20mm. Hollow out the center of this cylinder with a smaller concentric hole of 62mm in diameter, leaving a wall thickness of 2mm, and stop the hollow section 6mm from...
e="mc²"; $fn=144; qo=0.001; gp_b=15; gp_d=62; gp_arm_z=4.5; gp_arm_a=27.5; gp_arm_x=10; gp_drill_dist=81; gp_drill_d=4; gp_w=2; gp_l=80; arm_l=80; lens_h_d=9; print_tower=false; print_cap=true; print_arm=false; module groundplate(){ difference(){ union(){ cylinder(h=gp_l,d=gp_d); ...
glb/cad_b2840dff9245.glb
Create an Ender 3 Z homing precision improvement assembly consisting of two main components: an endstop mount and a triggering ring. First, create the endstop mount. Design a base plate that attaches to the extruder plate using two M3 screws and nuts. On this mount, position a housing for the Z endstop switch, angled ...
use <thread_profile.scad> coupler_z=-30; coupler_angle=20; rod_x=16; rod_y=15; plate_t=3; screw_plate_t=1.2; endstop_x_angle=30; endstop_z_angle=45; endstop_z=coupler_z+14; endstop_mount_h=5; screw_r=1.4; coupler_r=10.2; ring_r=14; ring_sides_h=4; ring_angle=90+endstop_z_angle-coupler_angle; pitch=8; module boa...
glb/cad_c317b01eddad.glb
Create a set of five PowerPole stubs arranged in a row. Start by creating a rectangular base that is 17mm long, 2mm wide, and 1mm thick, centered such that it extends from -1mm to 16mm along its length. Along this base, place five identical vertical pins spaced exactly 4mm apart, starting from the origin. Each pin cons...
stubletcount=5; dist=4; stubrow(); module stubrow() { $fn=15; stubheight=10; stubradius=1.2; stubletheight=0.5; capradius=1.8; rowheight=1; translate([-1, -1, 0]) cube([end+2, 2, rowheight]); end=(stubletcount-1)*dist; for (a = [0:dist:end]) { translate([a, 0, 0]) { ...
glb/cad_4820f9fe9cb7.glb
Create a customizable name cookie cutter consisting of a circular cutting ring and a central name press. First, construct the cutting ring. Create a circular ring with an inner diameter of 65mm. The ring's wall should have a thickness of 1.2mm and a total depth of 10mm. The wall must taper from the top thickness down...
name = "Lyle"; font_size = 15; font_name = 5; other_font = "Nunito Sans:style=Bold Italic"; create_cutter = 1; cutter_diameter = 65; cutter_depth = 10; cutter_thickness = 1.2; press_strip_height = 22; name_offset = 3; rim_width = 10; rim_depth = 2; fudge = 0.01; rounding_radius = 0.5; $fa= $preview ? 3 : 1;...
glb/cad_ecb2a1e27ed0.glb
Create a customizable word snowflake ornament with a thickness of 4mm. Start by creating a central ring with an outer diameter of 80mm and an inner diameter of 73mm. Inside this ring, place the text "20" and "23" centered vertically, with the "23" offset 24mm below the "20". Around the central ring, arrange the word "...
t="fuck"; h=4; s=30; offset=50; num_text=7; rotation=-10; rotate_text=-111; outside_spacing=0.85; hole_dia_inner=5; hole_dia_outer=8; hole_y_offset=77; $fn=100; translate([0,hole_y_offset,0]) difference(){ cylinder(d=hole_dia_outer,h=h); translate([0,0,-0.01]) cylinder(d=hole_dia_inner,h=h+0.02); } s_center=30; cent...
glb/cad_4d07d3c2b719.glb
Create a two-part protective eyeglass case. First, construct the main body as a rectangular block measuring 160.5mm in length, 64.5mm in width, and 2.25mm in height. The four corners of this base should be rounded with a radius of 5mm. Within this base, create a central rectangular cutout measuring 50mm by 25mm with ...
$fa = 1; $fs = 0.4; rotate(a = [0, 180, 0]) { difference() { translate(v = [5, 5]) { hull() { union() { cylinder(h = 13.5000000000, r = 5); translate(v = [150.5000000000, 0]) { cylinder(h = 13.5000000000, r = 5); } translate(v = [150.5000000000, 54.5000000000]) { cylinder(h = ...
glb/cad_3cd262b66beb.glb
Create a two-part protective case for sunglasses. First, construct the main body as a rounded rectangular block with a height of 9mm. The outer dimensions are 160mm in length and 60mm in width, formed by a hull of four cylinders with 5mm radii positioned at the corners. Inside this main body, carve out a central rect...
$fa = 1; $fs = 0.4; mirror(v = [1, 0, 0]) { rotate(a = [0, 180, 0]) { difference() { translate(v = [5, 5]) { hull() { union() { cylinder(h = 9, r = 5); translate(v = [150.5000000000, 0]) { cylinder(h = 9, r = 5); } translate(v = [150.5000000000, 54.5000000000]) { cy...
glb/cad_3de3ef1f2b05.glb
Create a Raspberry Pi 2A+ case with an overall height of 28mm. The main body is a rectangular shell with rounded corners (radius 3mm) and a wall thickness of 2.08mm. Construct the bottom section with a base height of 1.6mm. The side walls should feature a series of ventilation slots: on the left and right sides, crea...
$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 = 65.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 + 3*wt; sh_do2 = sh_di2 + 2; sh_h = 4; sch_dh = 5.5+4*stol; sch_h = 3+2*stol; fan_d...
glb/cad_43851a6eb1ea.glb
Create an i3 PSU Holder by constructing a hollow rectangular shell with outer dimensions of 114mm width, 50mm height, and a depth of 215mm. The shell should have a wall thickness of 3mm. On the top face, center a rectangular cutout measuring 14.8mm by 20.8mm with a depth of 2mm. At the top center of the front face, c...
include <i3 support.scad> include <frame.scad> include <powerSocket.scad> i3_SUPPORT_SPACE = 139; i3_SUPPORT_OFFSET = 86; i3_FRAME_THICKNESS = 6; module i3frame() { translate([i3_SUPPORT_SPACE,i3_SUPPORT_OFFSET,0]) rotate([90,0,90]) i3Support(); translate([-1 * i3_SUPPORT_SPACE - i3_FRAME_THICKNESS,i3_SUPPORT_OFFSE...
glb/cad_adc7b2c6ccbf.glb
Create a Dishwasher Clean / Dirty Indicator consisting of a flat base with a total height of 1mm. Start by creating a rectangular base measuring 37mm in length, 10mm in width, and 1mm in height. At the left end of this rectangle, add a semi-circular protrusion with a radius of 5mm and a height of 1mm, centered 5mm from...
#translate([5,.5,.5]) linear_extrude(height=1.5) import(file = "dirty.dxf"); union() { translate([7,5,0]) cylinder(r=5, h=1); difference() { translate([7,0,0]) cube([37,10,1]); translate([45,5,0]) cylinder(r=5, h=1); } } translate([-4,0,0]) { #translate([-1,0,.5]) linear_extrude(height=1.5) import(file = "ban...
glb/cad_041bcac40ae3.glb
Create a heart-shaped cookie cutter with a personalized name press. Start by constructing a heart-shaped wall with a width of 65mm at its widest point. The wall should have a total depth of 10mm, featuring a fine cutting edge of 0.4mm thickness for the top 1mm and a thicker base of 0.8mm for the remainder of the depth....
name = "Lyle"; name_angle = 0; font_size = 15; font_name = 5; other_font = "Nunito Sans"; press_strip_height = 22; name_offset = 3; create_cutter = 1; cutter_width = 65; cutter_depth = 10; cutter_thickness = 0.8; rim_width = 7; rim_depth = 2; fudge = 0.01; rounding_radius = 0.5; $fa= $preview ? 3 : 1; $fs=...
glb/cad_b1ee0b6147db.glb
Create a tamping station by constructing a hollow vertical cylinder with an inner diameter of 56mm, a wall thickness of 2mm, and a total height of 70mm. The base of the cylinder should feature a wider, integrated circular flange with a radius of 33mm and a height of 3mm. To allow for the insertion of a portafilter, cre...
inner_diameter=56; thickness=2; height=70; difference() { minkowski() { union() { cylinder(r=inner_diameter/2 + thickness - 1,h=height); cylinder(h=3,r1=inner_diameter/2 + 5,r2=inner_diameter/2); } sphere(1); } translate([0,0,3]) { cylinder(r=inner_di...
glb/cad_ac334397110b.glb