Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a carriage for a Rostock Mini Pro 3D printer. The main body is a central block with a total width of 76mm. At the center of the block, create a vertical cutout consisting of a cylinder with a radius of 6.5mm and a rectangular slot measuring 13mm by 20mm, both extending 100mm vertically. Position two additional...
include <configuration.scad> width = 76; height = carriage_height; offset = 25; cutout = 13; middle = 2*offset - width/2; module parallel_joints(reinforced) { difference() { union() { intersection() { cube([width, 20, 8], center=true); rotate([0, 90, 0]) cylinder(r=5, h=width-30, center=t...
glb/cad_4fbcaddee946.glb
Create a groove mount for a Rostock Mini Pro. Start with a base plate consisting of a central cylinder with a radius of 5mm and a height of 3mm, flanked by a rectangular block measuring 25mm wide, 10mm deep, and 3mm high, centered on the same axis. On top of this base, place a larger central cylinder with a radius of 6...
$fn = 0; $fa = 0.01; $fs = 0.3; diameter = 9.5; height =8; module groovemount() { translate([-25/2,-10/2,0]) cube ([25, 10, 3]); translate([-25/2,0,0]) cylinder(h=3, r=10/2); translate([25/2,0,0]) cylinder(h=3, r=10/2); cylinder (h=4.8+5.3+3, r=12/2); translate([0,0,3+5.3]) cylinder (h=4.8, r=15.8/2); cylinder ...
glb/cad_b0f9222c5bc2.glb
Create a Nylon Z nut by constructing a main cylindrical body with a height of 30mm and a diameter of 13mm. On top of this cylinder, add a smaller cylindrical cap with a height of 3mm and a diameter of 8mm, centered on the Z-axis. From this combined volume, remove a central threaded hole that runs through the entire le...
include <polyScrewThread.scad> PI=3.141592; $fn=32; module mynut() { difference() { union() { translate([0,0,0]) cylinder(30, 26/2, 26/2); translate([0,0,30]) cylinder(3, 8/2, 8/2); } translate([0,0,-0.1]) screw_thread(6.35,1,40,37,PI/6,2); translate([-18/2, 0, -0.1]) cylinder(40, 5/2, 5/2); translate([18/2, ...
glb/cad_4367f626e177.glb
Create a Block Puzzle consisting of seven distinct interlocking pieces. Each piece is constructed from a combination of small cubes and thin rectangular joiners. The base unit is a cube with a side length of 19.5mm (20mm minus a 0.25mm margin on all sides). The joiners are thin rectangular prisms measuring 0.5mm by 19....
csize = 20; margin = 0.25; part1(); translate([50, 0, 0]) part2(); translate([0, 50, 0]) part3(); translate([50, 50, 0]) part4(); translate([100, 50, 0]) part5(); translate([100, 0, 0]) part6(); translate([100, 100, 0]) part7(); module part1() { translate([0, 0, (csize/2-margin)]) union() { translate([csize/2, 0,...
glb/cad_be42761b6b2c.glb
Create a double-sided personalized keychain. First, generate the text "Name" using a script font like Pacifico, with a font size of 12mm. Create two instances of this text, each with a thickness of 0.4mm, positioned at the bottom and top of the final assembly to be visible from both sides. Next, construct a surroundin...
yourname="Name"; fontsize=12; texthight=0.4; framehight=3; minkowski_radius=0.5; minkowski_fn=7; fontname="Pacifico"; what_to_print="text"; if (what_to_print == "frame"){ union(){ difference(){ translate([0,0,minkowski_radius])minkowski($fn=minkowski_fn){ union(){ $fn=24; linear...
glb/cad_57fced95f480.glb
Create a TS80 Soldering Iron Box consisting of a bottom container and a matching lid. Both parts should have rounded corners with a radius of 14mm. For the bottom container, create a hollow rectangular shell with internal dimensions of 15mm by 15mm and a total internal height of 85mm. The walls should be 1.6mm thick. ...
x_width = 15.0; y_width = 15.0; bottom_height = 85.0; lid_height = 72.0; thickness = 1.6; lip_height = 8; lip_overlap_height = 2.0; lip_thickness = 0.8; looseness_offset = 0.08; radius = 14; generate_box = 1; generate_lid = 1; $fn=100; x_width_outside = x_width + thickness*2 + lip_thickness*2 + looseness_off...
glb/cad_57576afcd91d.glb
Create a tailgate liner plug by constructing a composite cylindrical object. Start with a base cylinder that has a radius of 8.25mm and a height of 2mm, using a 30-facet resolution. Above this base, center a second cylinder with a radius of 6.75mm and a height of 5.5mm. Between these two sections, add a thin transition...
cylinder(r=16.5/2,h=2,$fn=30); difference () { union () { cylinder(r=13.5/2,h=5.5); translate([0,0,4.5]) cylinder(r1=13.5/2,r2=15/2,h=0.5); translate([0,0,5]) cylinder(r=15/2,h=1); } translate([0,0,1.5]) cylinder(r=11/2,h=5.5); for (i=[0:3]) { rotate([0,0,i*360/3]) translate([0,0,5]) cube(size=[1,16,6],center=true); ...
glb/cad_51fd44b37bfd.glb
Create a dowel drilling guide with an overall length of 120mm. The main body consists of two joined rectangular sections: a top mounting plate measuring 120mm by 26mm with a thickness of 6mm, and a guide block attached beneath it measuring 120mm by 12mm with a thickness of 12mm. Remove several cylindrical holes from t...
use <basic_fixings.scad> edge_drilling_guide(A=12,B=20,C=6,D=12,x=120,guide_hole_dia=5,hole_spacing=30); module edge_drilling_guide(A,B,C,D,x,guide_hole_dia,hole_spacing) { difference() { edge_drilling_guide_solid(A,B,C,D,x); # clearance(A,B,C,D,x,guide_hole_dia,hole_spacing); } } module ...
glb/cad_c5603d55cacf.glb
Create a Shower Trap Assembly Spanner by first constructing a hollow cylindrical ring with an outer diameter of 41.45mm, an inner diameter of 33.5mm, and a height of 8mm. Centered within the hollow opening of this ring, place a rectangular block measuring 33.5mm in length, 3.5mm in width, and 8mm in height. To create t...
tol = 0.3; RES=128; base_dia_od = 41.75-tol; base_dia_id = 33.5; base_height = 8; spoke_cnt = 6; spoke_length =1.75 - tol; spoke_width =2.7; difference() { cylinder(h=base_height,r=base_dia_od/2,$fn=RES,center=true); cylinder(h=base_height,r=base_dia_id/2,$fn=RES,center=true); } for (step = [0 : 60 : 360] ) {...
glb/cad_d5a2adefc45f.glb
Create a flexible name bracelet with a total height of 12mm. The main body is a ring with an inner radius of 28mm and an outer radius of 33mm. The ring is not solid but is composed of 25 repeating radial sections. Each section consists of a trapezoidal segment connecting the inner and outer radii. To create flexibili...
inner_radius = 28; outer_radius = 33; length = 12; nozzle = 0.4; gapinfactor = 6; sections = 25; text = "Ingegno.be"; holes = "no"; text_thickness = 2; use <MCAD/fonts.scad> module test(){ echo("test"); } baseheight = 0.8; r1 = inner_radius; r2 = outer_radius; n = sections; gapin=gapinfactor*nozzle; gapout...
glb/cad_5e2a1dae2a8c.glb
Create a Taranis M7/M9 Gimbal Protector. The main body is a tapered, hollow conical shell with a base diameter of 47.2mm (47.5mm minus a 0.3mm tolerance) and a total height of 36mm. The interior is hollowed out to accommodate a gimbal stick. The internal cavity consists of a central vertical shaft with a diameter of 5...
gimbal_face_diameter = 47.5; stick_heght = 34; stick_stem_diameter = 5.0; stick_stem_height = 9.5; stick_end_diameter = 8.1; tolerance = 0.3; $fa = 1; $fs = 0.3; base_d = gimbal_face_diameter - tolerance; cone_h = stick_heght + 2; cone_base_h = 5; stick_d = stick_stem_diameter; stick_axis_z = -13; stick_base_...
glb/cad_47ee6e4f5330.glb
Create a captured nut assembly consisting of two mirrored threaded components, a top nut and a bottom nut, positioned along a central vertical axis. For each nut, start with a central cylinder 15mm high with a radius of 10mm. Add external threading to the cylinder with a thread depth of 2mm, a thread width of 3mm, an...
include <shapes.scad> include <makescrew.scad> threaddepth = 2; threadheight = 2; pitchangle = 3; cylinderheight = 15; cylinderradius = 10; reversethread = 1; hexheight=10; hexdepth=12; threadwidth = 3; depthtolerance=0.5; heighttolerance=0.5; translate (v=[0,0,8]) { topnut (); } translate (v=[0,0,-8]) { bottom...
glb/cad_51414eb90947.glb
Create a Threaded Tube consisting of a central cylinder and an integrated screw head. Start with a main cylinder 15mm in height with a radius of 10mm, centered on the origin. Create an internal thread within this cylinder that has a thread width of 3mm and a depth of 2mm. The threading should extend the full height o...
include <shapes.scad> include <makescrew.scad> threaddepth = 2; threadheight = 2; pitchangle = 3; reversethread=1; cylinderheight = 15; cylinderradius = 10; screwhexheight=10; screwhexdepth=12; depthtolerance=0.5; heighttolerance=0.5; threadwidth = 3; outerradius=sqrt(pow((cylinderradius+threaddepth),2)+pow(thre...
glb/cad_ee0521e46b92.glb
Create a threaded tube by starting with a square prism 27mm wide, 27mm deep, and 100mm tall, centered on the origin. Hollow out the center by removing a smaller square prism 21mm wide, 21mm deep, and 102mm tall. To create the rounded profile, remove a cylinder with a radius of 13.5mm and a height of 100mm from the ce...
include <makescrew.scad>; innercylinderradius=10; difference () { union () { difference () { cube (size=[27,27,100],center=true); cube (size=[21,21,102],center=true); } difference () { cylinder (h=100, r=13.5, center=true); cylinder (h=102, r=innercylinderradius, center=true); } translate (v=[0,0...
glb/cad_b7f0a29d62fc.glb
Create a threaded tube by starting with a main body composed of a cylinder with a radius of 20mm and a height of 100mm, centered on the Z-axis, joined with a hexagonal prism that has a height of 20mm and a depth of 29mm, positioned 60mm above the center. From this combined volume, remove a central cylindrical hole wi...
include <shapes.scad> include <makescrew.scad> hexheight = 20; hexdepth = 29; tubecylinderheight=100; tubecylinderradius=20; innercylinderradius = 10; difference () { male (); union () { translate (v=[0,0,-40]) { hexagon (hexdepth, hexheight); } translate (v=[0,0,-50]) { hexagon (hexdepth, hexheight);...
glb/cad_e9d71db3352c.glb
Create a Threaded Tubes assembly consisting of a central rod and two end caps. Start by creating a long, thin central cylinder with a radius of 1mm and a total height of 175mm, centered on the Z-axis. At both the top and bottom ends of this central rod, place a set screw assembly. Each assembly begins with a hexagonal...
translate (v=[0,0,30]) { import_stl ("tubescrew.stl", convexity=5); } %import_stl ("roundtube.stl", convexity=5); translate (v=[0,0,-100]) { %import_stl ("roundtube.stl", convexity=5); } for (up=[49, 51.5]) { translate (v=[0,0,up]) { washer (); } } translate (v=[0,0,-100]) { rotate (a=[180,0,0]) { import_stl ("t...
glb/cad_318ec422b371.glb
Create a male and female dovetail connector system. First, construct a male dovetail by creating a 3D trapezoidal prism with a height of 22mm and a depth of 5mm. The wider top face should be 10mm and the narrower bottom face 8mm. From the center of this male piece, remove a vertical rectangular slot 3mm wide and 4mm de...
module dovetail_female_negative(max_width=11, min_width=5, depth=5, height=30, clearance=0.25) { union() { translate([0,-0.001,-0.05]) dovetail_3d(max_width+clearance,min_width+clearance,depth,height+0.1); translate([-(max_width+clearance)/2, depth-0.002,-0.5]) cube([max_width+clearance,clearance/2,height...
glb/cad_d9efbeeac77c.glb
Create two interlocking dovetail boards, each with a thickness of 0.5mm and a width of 4mm. The first board has a total length of 8mm. Centered along its length, create a rectangular body with dovetail tails extending from both the front and back edges. Each tail section should be 0.5mm deep. The tails are formed by ...
module dovetail_pins(pin_length=.75, pin_width=1, pin_thickness=.75, pin_count=4, angle=15, tail_width=1) { intersection() { translate([0.005, 0.005, 0.005]) cube([(pin_count-1)*(pin_width+tail_width)-0.01, pin_length-0.01, pin_thickness-0.01]); dovetail_pins_idealized( pin_length=pin_le...
glb/cad_bd2553d3e874.glb
Create a mountable socket holder consisting of a rectangular base with a row of seven square posts and two male dovetail connectors. The base is a solid block with a total width of 61mm (calculated from 7 posts of 6.36mm x 6.36mm and 6mm walls), a depth of 12.36mm, and a height of 14.8mm. On the top surface, place se...
include <lib/wire_shelf_clip.scad> $fa = 5; $fs = 0.5; socket_holder_revision = "R1"; debug = true; function row_length(size, walls, count) = walls + ((size.x+walls)*count); function row_width(size, walls) = (size.x+(walls*2)); function row_height(walls, depth) = (depth+walls); function row_count(total, rows) = (tot...
glb/cad_609ee07a1188.glb
Create a Digital Multimeter (DMM) holder consisting of a rectangular open-top box with a mounting backplate. The main cavity for the DMM is 81mm wide, 42mm deep, and 14mm high. Surround this cavity with walls that are 2mm thick, resulting in an outer box dimension of 85mm wide, 46mm deep, and 18mm high. The back of th...
include <lib/wire_shelf_clip.scad> include <lib/MCAD/triangles.scad> dmm_size = [81,42,14]; border_width = 2; dmm_outer_size = [ dmm_size.x+(border_width*2), dmm_size.y+(border_width*2), dmm_size.z+(border_width*2) ]; dmm_holder_revision = "R2"; module revision_plate() { difference() { cube...
glb/cad_395b0e90169f.glb
Create a Wire Shelf Workbench Tool Holder for probes. The main body is composed of several rectangular blocks joined together. Start with a base of two adjacent blocks, each 24mm wide, 24mm deep, and 11mm high. In each of these blocks, center a vertical hole that is tapered: the bottom 6.4mm is a cylinder with a 5.5mm ...
include <lib/wire_shelf_clip.scad> include <lib/MCAD/triangles.scad> $fa = 5; $fs = 0.5; probe_holder_revision = "R1"; debug = true; module triangle_mount() { triangle_a = 50; triangle_b = 50; triangle_c = sqrt(triangle_a*triangle_a + triangle_b*triangle_b); triangle_width = 15; rotate([-45,180,0]) { differe...
glb/cad_b9e508cf3e6d.glb
Create a Wowstick holder consisting of a main cylindrical body and a mounting dovetail. The main body is formed by taking a cylinder with a radius of 9.2mm and a height of 22mm, and merging it with a rectangular block measuring 8mm wide, 1mm thick, and 22mm high, positioned so the block is centered on the X-axis and al...
include <lib/MCAD/triangles.scad> include <lib/wire_shelf_clip.scad> $fn = 100; wowstick_holder_revision = "R1"; debug = true; wowstick_body_diameter = 16; wowstick_head_diameter = 9; module wowstick_holder(body, head, height) { difference() { hull() { cylinder(r = (body/2) + 1.2, h ...
glb/cad_4f85618b68ef.glb
Create a Pliers Holder tool organizer. Start by constructing a rectangular base block with a total width of 100mm, a depth of 40mm, and a height of 40mm. The base consists of a bottom slab 5mm thick, topped with a triangular prism that slopes downward from a height of 40mm at the back to 5mm at the front across the 40m...
include <lib/MCAD/triangles.scad> include <lib/wire_shelf_clip.scad> $fn = 100; pliers_holder_revision = "R2"; module revision_plate() { difference() { cube([7,6,2]); translate([0,1,1]) linear_extrude(height = 1) { text(pliers_holder_revision, $fn = 100, size = 4); ...
glb/cad_2ba1d07c041f.glb
Create a Wire Shelf Workbench Tool Holder for driver bits. Start by constructing a rectangular block that serves as the main body. This body consists of four rows of holes for bits. Each row should contain 15 holes, for a total of 60 holes. Each hole must be a hexagonal prism with a diameter of 5.5mm and a depth of 8.3...
include <lib/wire_shelf_clip.scad> $fn = 100; bit_holder_revision = "R1"; debug = true; function row_length(size, walls, count) = (walls + row_width(size, walls)*count); function row_width(size, walls) = (size+walls); function row_height(walls, depth) = (depth+walls); module bit_row(count, depth, size, walls) { ...
glb/cad_536f0945838a.glb
Create a Dodeca Chain Loop consisting of 40 interlocking rhombic dodecahedra arranged in a closed circular loop. Each individual module is a rhombic dodecahedron with a total height of 40mm. To allow the modules to interlock, hollow out each dodecahedron by removing two internal rhombic dodecahedra: one rotated 90 degr...
L=40; w=0.5; d=16.5; f=1.03; n=28; s=w/2+0.5; scale(0.4)loop(6); %cube([220,140,1],center=true); module loop(p){ translate([-p*d,0,0])ring(n/2); translate([0,2*d*f/sin(360/n),0])chain(p); rotate([0,0,180]){translate([-p*d,0,0])ring(n/2); translate([0,2*d*f/sin(360/n),0])chain(p);} } module ring(m){ for(i=[0:(m-1)...
glb/cad_40ea57e16970.glb
Create a GE Dishwasher Wheel by revolving a complex profile around a central axis to form a wheel and integrated bushing. The profile for the revolution consists of a combined shape with a maximum outer diameter of 22.9mm and a minimum inner diameter of 2.5mm. The profile includes a rounded outer rim with a 1.5mm radiu...
$fn=180; { rotate_extrude() { union() { offset(r=1.5) { polygon(points=[ [42.8/2, 3], [42.8/2, 12], [36.8/2, 12], [18/2, 6.6], [16.8/2, 6.6], [16.8/2, 5.4], ...
glb/cad_e11b4acbd10c.glb
Create a Mendel Z leadscrew base bar clamp by starting with a solid rectangular block measuring 26mm in width, 20mm in depth, and 18mm in height. Remove a vertical cylindrical hole with a radius of 2mm from the top face at two positions: one centered 6mm from the left edge and 8mm from the front edge, and another cente...
difference () { cube(size=[26,20,18]); translate(v=[6,8,-1]) cylinder(r=2,h=20); translate(v=[20,8,-1]) cylinder(r=2,h=20); rotate([90,0,0]) translate(v=[13,18,-21]) cylinder(r=4,h=22); }
glb/cad_22222a272bef.glb
Create a 17mm allen key socket for a 3/8" drive. Start by creating a hexagonal prism with a flat-to-flat width of 17mm and a height of 10mm. Centered on top of this hexagon, add a cylinder with a height of 12mm and a radius of 10.5mm. To form the internal socket, remove a hexagonal hole from the center of the entire ob...
module allenKeySocket (keySize, socketSize) { difference() { union() { translate([0,0,socketSize+th/2])hexagon(keySize,keySize*1.0); cylinder(h=socketSize+2,r=(keySize+4)/2); } translate ([0,0,socketSize/2]) cube (size=socketSize, center=true); } } module hexagon(size, height) { boxWidth = size/1.75;...
glb/cad_bdf90097c83d.glb
Create a socket extension tool by combining a rectangular base with a cylindrical shaft. Start by centering a cube with dimensions of 9.25mm x 9.25mm x 9.25mm. Directly on top of this cube, place a cylinder with a radius of 6.6mm and a height of 20mm, ensuring the cylinder is centered on the cube's top face. To finish ...
difference(){ union(){ translate ([0,0,9.25/2]) cube (size=9.25, center=true); translate ([0,0,9.25]) cylinder(h=20,r=13.2/2); } translate ([0,0,20]) { rotate ([90,0,0]) { translate ([0,0,-10]) cylinder (h=30, r=5/2) ; } } }
glb/cad_23ec6fbfa4b9.glb
Create a drawer organizer bracket consisting of two perpendicular walls that form a 90-degree elbow. Both walls have a thickness of 1mm and a height of 30mm. The first wall is a rectangular panel 30mm high and 31mm wide. The second wall is attached perpendicularly to the first. This second wall is composed of two sect...
$fn = 50; thickness = 1; open_gap_input = 13; open_gap = open_gap_input + thickness; closed_gap_input = 6.85; closed_gap = closed_gap_input + thickness; grip_length_open = 30; grip_length_closed = 31; bracket_h_input = 30; Reverse = 1; minkowski(){ #cube([thickness, open_gap+thickness, grip_length_ope...
glb/cad_1548d9682113.glb
Based on the provided data, here is the analysis of the structural relationships: ### 1. Core Structural Components * **6_only**: The fundamental building blocks are identified as `[1], [2], [5], [10]`. * **3x3 (Triadic Relationships)**: These represent the primary interactions between three components. Key exampl...
make_puzzle_from_1x2x3(208); cube_size = 10; overlap = .5; module make_one(num) { makey(num); } module make_two(na,nb) { translate([-3*cube_size,1*cube_size,0]) makey(na); translate([2*cube_size,1*cube_size,0]) makey(nb); } module make_three(nb,nc,nd) { translate([0,-2*cube_siz...
glb/cad_9bcaa3a0bd90.glb
Create a Z motor lower bracket for a HyperCube Evolution printer. Start with a main body consisting of two joined rectangular blocks: one measuring 68mm x 53mm x 30mm and another measuring 30mm x 73mm x 30mm, positioned to form an L-shaped base. From this base, remove a large rectangular section measuring 60mm x 73mm...
$fn = 64; motorBodyLen = 40; M5hole = 5.5; motorScrewPos = [[31/2,31/2,0],[-31/2,31/2,0],[31/2,-31/2,0],[-31/2,-31/2,0]]; module nema17(len=motorBodyLen) { difference() { intersection() { translate([-42.3/2,-42.3/2,-len+0.01]) cube ([42.3,42.3,len-0.02]); rotate([0,0,45]) translate([-52/2,-5...
glb/cad_f644d659e33a.glb
Create a bed multi-spring fix mount. Start by constructing a main body based on a bed profile that is 1.5mm thick. This profile is defined by a polygon with a corner radius of 2.5mm and a total height of 1.5mm. Within this body, create a central vertical hole with a diameter of 6.1mm to accommodate a screw. To form t...
include <positions.scad>; screwhole_dia = 6.1; bed_margin_print = 0.1; blocker_height = 1.5; blocker_thickness = 2.0; bed_corner_radius = 2.5; ep = 0.5; ep2 = 2*ep; $fn = 50; function generate_bed_points(margin) = [ [bed_corner_radius, -margin], [4*4, -margin], [4*4, 0], ...
glb/cad_5778b01b7af0.glb
Create a Bed multi-spring fix consisting of an 8x8 grid of identical spring mounts. Each individual mount is composed of two stacked geometric parts. The base is a hexagonal prism with a height of 2mm, a bottom diameter of 7.3mm, and a top diameter of 6.3mm. Centered on top of this hexagonal base is a smooth cylinder w...
include <positions.scad>; module spring( base_height, spring_cylinder_height, hexagon_margin_base_dia, hexagon_margin_top_dia, spring_attachment_dia) { cylinder( d1 = hexagon_margin_base_dia, d2 = hexagon_margin_top_dia, h = base_height, $fn = 6 ); transl...
glb/cad_bcdbff813e93.glb
Create a Bed multi-spring fix consisting of two identical mirrored components. For one component, start with a main body block that has a total height of 7.5mm (composed of a 1.5mm base blocker and a 6mm frame). The outer profile of the frame is a complex polygon with rounded corners of 0.75mm radius. Within this bod...
include <positions.scad>; screwhole_dia = 3.5; frame_margin_print = 0.1; frame_corner_radius = 0.5*4*1.5; blocker_height = 1.5; blocker_thickness = 2.0; cabletie_width = 4; cabletie_inset = 0.0; ep = 0.5; ep2 = 2*ep; $fn = 50; function generate_frame_points(margin) = [ [frame_corner_radius, -margin], ...
glb/cad_49380c6aa220.glb
Create an SR17 Torch Holder consisting of a central cylindrical body and a mounting base. Start with a main cylinder that has a radius of 17.5mm and a height of 6mm. Centered within this, create a vertical cylindrical void with a radius of 10mm and a height of 99mm. Add a secondary vertical cylinder with a radius of ...
q =10; hi=30; module torchHolder() { difference() { union() { cylinder(r=27.5, h=6, center=true, $fn=6*q); translate([0, 0, -hi/2]) cylinder(r=11.5+6, h=hi, center=true, $fn=4*q); rotate([-90,0,150]) translate([12, hi-5, 0]) cylinder(r=6.5, h=30, center=true, $fn=2*q); rotate([-90,0,150]) hull() { ...
glb/cad_25153df7d598.glb
Create a Parametric Spool Holder consisting of three main components: a bracket, a cap, and an insert. First, create the spool holder bracket. Start with a central block 33mm wide, 34mm high, and 3mm thick. Add two perpendicular plates of the same thickness: one 33mm wide by 6mm high, and another 33mm wide by 6mm deep...
render_part=0; dim_delta=0.5; rep_panel_th=6.0+dim_delta; rep_spool_bracket_w=33.0; rep_spool_bracket_h=34.0; rep_spool_bracket_offset=8.0; rep_spool_bracket_th=3.0; rep_support_tube_d=25.4*5/8+dim_delta; rep_support_tube_id=25.4*0.55; spool_id=30.0; spool_od=36.0; spool_h=92.0; bearing_od=22.5; bearing_id=8.0; beari...
glb/cad_9ef15d8dd133.glb
Create a 3D parametric star by extruding a 2D star polygon to a height of 5mm. The star polygon must have 5 points, defined by alternating between an outer radius of 30mm and an inner radius of 15mm. The vertices should be arranged such that the five outer points are spaced equally every 72 degrees around a center poin...
number_of_points = 5; inner_radius = 15; outer_radius = 30; height = 5; linear_extrude(height) { star(n=number_of_points, ri=inner_radius, ro=outer_radius); } module star(n=5, ri=15, ro=30) { if (n > 1) { polygon([ for (i = [0 : n-1], in = [true, false]) in ? [ri*cos(-360*i/n + 360/(n*2)), ri*sin(-360...
glb/cad_ae3f8803a63b.glb
Create a Lacto Fermentation Lid for a wide-mouth canning jar. Start by constructing a wide circular cap base. Centered on this base, build a hollow cylindrical reservoir with an outer radius of two-thirds the base radius and a total height of 27mm. The walls of this reservoir should be 2mm thick, leaving a hollow cente...
include <canning_jar_lids.scad>; module fermentation_lid(rad) { post_height = 22; trap_height = post_height + wall_thickness; post_outer_r = 6; difference() { union() { difference() { union() { cap(rad); cylinder(r=rad * 2/3, trap_height); } translate([0,0, -2 * wall_thickness...
glb/cad_bffe16bdbf12.glb
Create a Soroban abacus consisting of a rectangular outer box containing 13 parallel rods. The box has a wall thickness of 3.6mm and an internal height of 11.5mm. Each rod is a cylinder with a radius of 2.25mm. On each rod, place 5 beads in total: 4 beads of value one and 1 bead of value five. The beads are created by...
number_of_1_counters=4; number_of_5_counters=1; number_of_rods=13; Thickness_of_box=6; distance_between_balls=7; rod_distance = 1.05; box_free_space=2; scale=0.6; ball_width_radius=15*scale; ballabstand=distance_between_balls*scale; ball_height_radius=ball_width_radius*.8; ball_min_height_radius=ball_height_ra...
glb/cad_b0e252990da8.glb
Create a Z-Axis Stop-screw holder by starting with a base rectangular block measuring 38mm in length, 10mm in width, and 12mm in height. Attach a second rectangular block to the top surface, centered at X=28mm, Y=5mm, and Z=18mm, with dimensions of 10mm by 10mm by 17mm. To create the mounting holes, remove two cylind...
difference () { union(){ cube([38,10,12]); translate([28,5,18]) cube ([10, 10, 17],center=true); } translate ([33,11,6]) rotate ([90,0,0]) cylinder (r1=2, r2=2, h=3, $fn=100); translate ([33,9,6]) rotate ([90,0,0]) cylinder (r1=4, r2=4, h=12, $fn=100); translate ([5,11,6]) rotate ([90,0,0]) cylinder (r1=2, r2=...
glb/cad_ee16b2f2b628.glb
Create a Z-Axis Stop-screw holder by combining two rectangular blocks. First, create a base block measuring 25mm in length, 10mm in width, and 12mm in height, positioned with its front-left corner at coordinates (13, 0, 0). Attached to the top of this base, center a second vertical block measuring 10mm by 10mm with a h...
difference () { union(){ translate([13,0,0]) cube([25,10,12]); translate([28,5,18]) cube ([10, 10, 17],center=true); } translate ([33,11,6]) rotate ([90,0,0]) cylinder (r1=2, r2=2, h=3, $fn=100); translate ([33,9,6]) rotate ([90,0,0]) cylinder (r1=4, r2=4, h=12, $fn=100); translate ([5,11,6]) rotate ([90,0,0])...
glb/cad_16662894f347.glb
Create a vacuum-cleaner nozzle by constructing a hollow shell with a wall thickness of 3mm. Start with a cylindrical base that has an outer diameter of 42mm and an inner diameter of 36mm, extending to a height of 40mm. Transition this cylinder into a rectangular profile using a hull operation that connects the top of t...
$fs=0.35; $fa=0.35; module nozzle(d=36, b=17, l=150, l1=40, l2=80, strength=3, round_edges=0, negative=false) { module _nozzle(d, b, l, l1, strength) { cylinder(d1=d+1, d2=d-1, h=l1); hull() { translate([0, 0, l1]) cylinder(d=d-1, h=0.11); translate([0, 0, l-l2-0.05]) cube([d-2*strength, b-2*str...
glb/cad_8205412b2066.glb
Create a Camera Helmet Mount knob by starting with a primary cylinder 32mm in diameter and 4mm high. On top of this base, add a second cylinder with a height of 4mm, starting at a height of 4mm from the base; this second cylinder should have a bottom radius of 16mm and a top radius of 14mm. Through the center of both...
mount_diameter = 7.1; mount_wrench_size = 11; mount_hex_diameter = mount_wrench_size / cos(30); eclip_recess_depth = 1; case_width = 32.5; stabilizer_distance = 14; stabilizer_diameter = 5; case_flat_width = 22; mount_offset = case_width/2; wall_thickness = 4; sling_width = 45; case_height = 55; knob_diameter = 32; k...
glb/cad_2558d5e69ff2.glb
Create a Replicator build platform limit adjustment clip by constructing a U-shaped bracket with a total length of 30mm. Start with a rectangular base that is 30mm long, 9.5mm wide, and 3.2mm thick. From this base, extend two parallel vertical walls upward, each with a thickness of 2mm and a height of 10mm. These walls...
glass_thickness = 3.2; panel_thickness = 5.5; wall_thickness=2; wall_height=10; clip_length = 30; grip_height = 1; union() { cube(size=[clip_length, panel_thickness+2*wall_thickness, glass_thickness]); cube(size=[clip_length, wall_thickness, wall_height+glass_thickness]); translate([0,panel_thickness + wall_thickne...
glb/cad_6fb24e48f28c.glb
Create a USB Microscope Stand consisting of a vertical support column and a weighted base. Start with a vertical rectangular column measuring 30mm x 30mm x 100mm. Hollow out the center of this column with a square hole measuring 18mm x 18mm running the full height. At the top of the column, add a 5mm thick cap that i...
include <shapes.scad>; union() { difference() { translate([-2.5,-2.7,30]){cube([16,20,5]);} translate([5.5,5,30])rotate(a=[0,0,0]){hexagon(11.5,12);} } difference(){ translate([0,15.3,30]){cube([12,7,15]);} translate([6,36.2,30]){cylinder(15,15,15.8);} } difference(){ translate([6,36.2,30]){cylinder(15,18,18);} tran...
glb/cad_980804535bdf.glb
Create a USB Microscope Stand base consisting of two rectangular prisms joined at a right angle. First, create a horizontal base arm that is 70mm long, 12mm wide, and 12mm high. Along the center line of this arm, create two circular holes that pass completely through the 12mm thickness. Each hole consists of a narrow i...
include <shapes.scad>; union() { difference() { translate([-94.5,-15,-13]){cube([70,12,12]);} translate([-90.5,-9,-2])rotate(a=[180,0,0]){cylinder(h=12,r=1.625);} translate([-90.5,-9,-0.9])rotate(a=[180,0,0]){cylinder(h=3.5,r=3.3);} translate([-83,-9,-2])rotate(a=[180,0,0]){cylinder(h=12,r=1.625);} translate([-83,-9,...
glb/cad_cf6b263f41cc.glb
Create a USB Microscope Stand consisting of a vertical support column and a weighted base. Start with a vertical rectangular column measuring 30mm x 30mm x 100mm. Hollow out the center of this column with a square hole measuring 18mm x 18mm running the full height. At the top of the column, create a 5mm thick cap. In...
include <shapes.scad>; union() { difference() { translate([-2.5,-2.7,30]){cube([16,20,15]);} translate([5.5,5,37])rotate(a=[0,0,0]){hexagon(11.5,18);} } difference(){ translate([0,15.3,30]){cube([12,27,15]);} translate([6,56.2,30]){cylinder(15,15,15.8);} } difference(){ translate([6,56.2,30]){cylinder(15,18,18);} tr...
glb/cad_7bb56f000922.glb
Create a Smart Card Case consisting of a main box and a pivoting arm. Construct the main box as a rectangular shell with walls 4mm thick. The interior cavity should be sized to fit standard cards (approximately 54mm wide and 85.5mm long). The box features a front and back wall thickness of 1.5mm. On the front wall, c...
mode=3; rot=0; layer_thickness=0.2; initial_layer_thickness=0.3; kerf=0.3; fabric_thickness=1; card_thickness=layer_thickness*3; stack_card_mesure=7; nbr_cards=ceil((stack_card_mesure + card_thickness)/card_thickness); card_width=54+fabric_thickness*2; card_length=85.5; echo("nbr_cards=",nbr_cards); wall_thickness...
glb/cad_c1e59b61c1ac.glb
Create a parametric thumb screw consisting of a tiered cylindrical knob and a hexagonal bolt head. Start by creating a hexagonal prism for the bolt head with a height of 4mm and a diameter of 11.55mm (calculated as 10mm divided by the sine of 60 degrees). Center a vertical hole with a diameter of 5mm through the entire...
precision = 100; pi = 3.1416; slice = 0.1; nudge = 0.00001; bolt_head_diameter = 10; bolt_head_height = 4; bolt_diameter = 5; knob_inner_diameter = bolt_head_diameter * 2; knob_outer_diameter = bolt_head_diameter * 3; knob_height = 10; n_knob_nubs = 8; knob_cutout_rad = knob_outer_diameter * pi / 24; thumb_screw(); ...
glb/cad_3787aff3aa6e.glb
Create a Rostock Mini Pro higher leg bracket with a total height of 100mm. The main body is a vertical structure featuring two diagonal fins located 60mm apart (at x = -30mm and x = 30mm). Each fin is created by the intersection of a 5mm x 30mm x 100mm centered box and a rotated rectangular volume. At the center of th...
include <configuration.scad> use <bracket.scad> h = motor_end_height; h = 100; m = 29; module motor_end() { translate([0, 0, h/2]) difference() { union() { bracket(h); for (x = [-30, 30]) { translate([x, 29.5, 0]) intersection() { cube([5, 30, h], center=true); rot...
glb/cad_a2a88c462b05.glb
Create a dishwasher wheel and clip assembly consisting of two separate parts. First, create the wheel. Form the main body as a hollow cylinder with an outer diameter of 40mm and a wall thickness of 2mm. At the center, construct a protruding axle hub with a total length of 12.8mm. This hub should have a base diameter o...
wireDiameter = 5 * 1.2 ; wireHoleRadius = wireDiameter/2 ; axelDiameter = 9 ; axelRadius = axelDiameter / 2 ; axelLenght = 11 ; wheelAxelThickness = 2; wheelDiameter = 40; wheelThickness = 2; wheelWidth = 8; wheelAxelLength = 12.8; clipAxel = 8.6; clipNoseLift = 2; clipBodyDepth = 16; clipBodyWidth = 13; clipCa...
glb/cad_18c722b40ca4.glb
Create a rectangular plate for a Greg's Wade extruder x-carriage that measures 33mm in width, 37mm in depth, and 3mm in height. On the top surface of this plate, place two vertical cylindrical holes, each with a diameter of 2mm and a depth of 20mm. Position the first hole centered at coordinates -28.5mm on the X-axis a...
module piece() { import_stl("x-carriage.stl"); } difference () { translate([-33,20,0]) cube([33,37,3]); union () { translate([-28.5,24,-10]) cylinder (100,2,2, $fn=32); translate([-4.5,24,-10]) cylinder (100,2,2, $fn=32); } }
glb/cad_95f697f6b75e.glb
Create a parametric PCB spacer by constructing a hollow cylinder with a total height of 13mm. The outer wall should have a radius of 3mm and the inner hole should have a radius of 2mm. Ensure the geometry is defined using a 32-facet resolution to maintain a consistent polygonal circular profile. The final shape should ...
height = 13; inner_radius = 2; outer_radius = 3; difference() { cylinder(height, outer_radius, outer_radius, $fn=32); translate([0,0,-5]) cylinder(height + 10, inner_radius, inner_radius, $fn=32); }
glb/cad_27e37212ad28.glb
Create a 2.5 Inch Hard Drive Caddy designed for a 5.25 inch drive bay. Start with a front bezel that is 149mm wide, 42.8mm high, and 4.8mm thick. Perforate this bezel with a grid of small holes, each 3mm in diameter, spaced 3.75mm apart. Construct two side walls, each 150mm deep, 41.3mm high, and 3mm thick. Position t...
d1=21.8; d2=31.3; l1=47.5; l2=l1+79.3; screwr=1.50; rhs=141; 25h=0.37*25.4; 25w=2.7*25.4; 25d=3.96*24.5; fwidth=149; sdepth=150; sheight=41.3; vso=3; difference(){ rotate([90,0,0])cube([fwidth,42.8,4.8]); for(y=[1:8]) { for(x=[1:38]) { translate([x*screwr*2.5,0,5+y*screwr*2.5]) rotate([90,0,0])cylinder(h=4.8, r1=scre...
glb/cad_d6cf049076b9.glb
Create a tripod mount for a mobile phone. Start with a main rectangular block measuring 80.5mm in length, 86.5mm in width, and 8.25mm in height. Hollow out the center of this block to create a gripping channel that is 75.5mm long and 75.5mm wide, leaving walls of 2.5mm thickness. At one end of the mount, construct a h...
camerawidth=75.5; cameraheight=11.3; nutwidth = 11.5; nutthickness=5.5; holeR=3.2; nutbottomwall=1; nutsidewall=2; gripperthickness=2.5; gripperoverhang=5; gripperheight=nutwidth+2*nutsidewall; nutsection = nutwidth/1.732; difference() { union(){ cube([cameraheight+2*gripperthickness,camerawidth+2*gripperthickness...
glb/cad_9b535c58e0a5.glb
Create a Square Egg Maker consisting of a main container, a lid, and four locking wedges. First, create the main container as a hollow cube. The interior cavity must be a cube with a volume of 46ml, which results in an interior side length of approximately 35.8mm. The walls should be 2mm thick. The container is open ...
$fn=32; e=0.02; xaxis=[1,0,0]; yaxis=[0,1,0]; zaxis=[0,0,1]; phi=(1+sqrt(5))/2; vegg=46; b=pow(vegg,1/3)*10; w=2; dx=.2; bo=b+2*w; bh=b+2*w+4*w; echo(vegg,b,bo); col1="red"; col2="lime"; col3="yellow"; dxprint=3; module boxx(){ translate(bh/2*zaxis) difference(){ cube([bo,bo,bh],true); translate(w*zax...
glb/cad_97cdecd4eab4.glb
Create a parametric clamp consisting of a central ring and mounting jaws. Start with a main cylinder that has an inner diameter of 15mm, a wall thickness of 2mm, and a total height of 15mm. If a base is enabled, add a rectangular plate of 2mm thickness and 20mm width centered behind the ring. Form the jaws by adding a...
translate([-25, 0, 25]) clamp(); translate([25, 0, 25]) clamp(base = false); translate([-25, 0, -25]) clamp(screw_count = 2); translate([25, 0, -25]) clamp(height = 25); module clamp(base = true, base_thickness = 2, base_width = 20, ring_thickness = 2, ring_inner_dia = 15, jaws_thickness = 5, jaws_width = 7, break_wid...
glb/cad_57540d669b27.glb
Create a name keychain consisting of a flat, elongated base with a raised text element. Start by forming the base as a hull between two cylinders, each with a diameter of 22mm and a height of 2mm, positioned such that one is at the origin and the other is translated along the x-axis by 8mm plus 8 times the number of ch...
$fn=360; Text="Keychain"; length2=len(Text); length = length2*8; difference(){ hull(){ cylinder(h=2, d=22); translate([length+8,0,0]) cylinder(h=2, d=22); } translate([length+8,0,0]) cylinder(h=2, d=17); } color("black") if(search("ygpqj", Text)){ transla...
glb/cad_13d69999cef5.glb
Create a RepRap Pen Holder consisting of a mounting base and a pen clamping mechanism. First, construct the mounting base as a rectangular block measuring 28mm x 12mm x 15mm. Remove material from the corners by centering two 10mm x 10mm x 25mm cubes, rotated 45 degrees on the Z-axis, at the left and right edges. Crea...
pen_dia = 9.5; difference() { cube([28, 12, 15], center=true); translate([-14, -6, 0]) rotate([0, 0, 45]) cube([10, 10, 25], center=true); translate([14, -6, 0]) rotate([0, 0, 45]) cube([10, 10, 25], center=true); translate([-7.5, 1.5, 0]) union() { cylinder(r=3.4/2, h=25, center=true, $fn=20); ...
glb/cad_450334d63ef3.glb
Create a wing mount stiffening plate for a fuselage. Start with a flat rectangular base measuring 91.5mm in width and 35mm in length with a thickness of 2mm. Cut a central rectangular opening from the front edge, 72mm wide and 6mm high, with the corners of this cutout rounded to a radius of 6.35mm. Additionally, roun...
use <../0-tools/fillets_and_chamfers.scad>; eps = 0.05; eps2 = 2 * eps; epsz = [0, 0, -eps]; tol = 0.2; $fs = 0.5; $fa = 1; inch = 25.4; l = 35; w = 91.5; t = 2; y_cutout = 6; w_cutout = 72; r_cutout = 0.5 * inch; overlap = 2.5; screw_d = 3+tol; nut_d = 6.2+tol; screw_distance = 43; screw_y = 0; screw_h = 2.5; scr...
glb/cad_c95ade5a5911.glb
Create a wing mount stiffening plate for an RC plane. The main body is a flat rectangular plate 177.8mm long, 12mm wide, and 3mm thick. The plate's length is defined by the distance between two 11.5mm diameter circular bosses located at each end. The plate features two circular holes with a diameter of 5.5mm, centered...
eps = 0.05; eps2 = 2 * eps; epsz = [0, 0, -eps]; $fs = 0.5; $fa = 1; inch = 25.4; foam_t = 4; down = 12; distance = 7 * inch; skewer_d = 5.5; t = 3; meat = 3; difference() { hull() { translate([foam_t, 0, 0]) cube([distance-2*foam_t, down, t]); cylinder(d=skewer_d+2*meat, h=t); transla...
glb/cad_969edc74460c.glb
Create a fridge door clip for a temperature sensor consisting of two separate components: an upper clip and a lower clip. For the lower clip, create a C-shaped gripping profile with a thickness of 2mm. The profile should feature a main body 30mm high, with a curved outer edge having a diameter of 9mm. The gripping se...
part="both"; clw=8.8; cld=9; cltf=19.8; a=20; a2=10; clt=2; clh=2; dd=9; tsw=45.6; tsd=20.6; tsch=61; bt=1.6; cltfd=cltf-dd/2; module clip_profile(top) { rotate(a2) translate([0,dd/2]) square([10,clt]); rotate(-a) { mirror([0,1]) translate([0,dd/2]) difference...
glb/cad_9a173669e46b.glb
Create a wire shelf belt clip with a total height of 6mm. The object consists of three aligned, circular ring-like sections. The top section is a C-shaped clip with an outer diameter of 6.2mm and an inner diameter of 3mm, featuring a gap that removes one quadrant of the circle to allow for insertion. The middle section...
extrude=6; top_clip_inner=3; mid_clip_inner=6; bot_clip_inner=14; opening_scale=0.75; tilt=-15; top_thickness=1.6; mid_thickness=1.6; bot_thickness=1.6; $fn=120; top_outer=top_clip_inner + 2*top_thickness; mid_outer=mid_clip_inner + 2*mid_thickness; bot_outer=bot_clip_inner + 2*bot_thickness; lip_out=bot_clip_...
glb/cad_1c1091b892ef.glb
Create a parametric roller bearing with an outer diameter of 21mm, an inner hole diameter of 8mm, and a total width of 7mm. Construct the outer race as a hollow cylinder with a wall thickness of 2mm. Inside this outer race, create a circular track to house the rollers. Create the rollers as small cylinders with a d...
type="print"; od=21; id=8; w=7; b1w=2.0; b1=4.6; b2=2.5; b2w=1.0; m2=0.3; m1=0.4; bd=0.3; fn=180; or=od/2; ir=id/2; bcr=(od+id)/4; drol=max(b1,b2)+bd; nrol=floor((3.14159*bcr*2)/drol); arol=360/nrol; bco1=bcr+b1/2+m1; bco2=bcr+b2/2+m2; bci1=bcr-b1/2-m1; bci2=bcr-b2/2-m2; module parameters_stop_here()...
glb/cad_20d8354d0cb7.glb
Create a Double Vertical carriage for a Rostock 3D printer designed to hold two LM8UU linear bearings vertically. Start by creating two identical slim vertical bearing holders. Each holder consists of a main cylindrical body with a radius of 11mm and a height that matches the body length. From this cylinder, remove a...
include <configuration.scad> include <lm8uu-holder-slim_double-vertical.scad> width = 76; height = body_length; offset = 25; cutout = 13; middle = 2*offset - width/2; extrude_width = 0.35; first_layer = 0.25; module parallel_joints(reinforced) { difference() { union() { intersection() { cube([wi...
glb/cad_2975d178c141.glb
Create a laptop-style protective case for an INGA sensor node consisting of a bottom base and a top lid. For the bottom part, create a rounded rectangular block with dimensions 52.4mm width, 35.37mm height, and 7.22mm depth. Hollow out the center to create a battery compartment of 50.6mm by 34.37mm by 6.22mm. Add two...
part = "top"; top_inga_depth_board = 1.8; top_inga_depth_top = 6; top_inga_depth_bottom = 1.8; bottom_inga_depth_board = 2; bottom_inga_depth_top = 4; bottom_inga_depth_bottom = 4.03; custom_inga_depth_board = 2; custom_inga_depth_top = 4; custom_inga_depth_bottom = 4.03; inga_depth_board = (part == "top") ? ...
glb/cad_7690895108e0.glb
Create a replacement foot cap for a grill. Start by creating a main outer cylinder with a height of 25mm and a radius of 13.65mm, using a 30-facet resolution. To form the base, add a sphere with a radius of 25mm centered at a height of 21mm, but remove the bottom half of the sphere using a 50mm cube to ensure the botto...
rdia = 25.7; wall = 1.2; height = 25; main(); module main() { difference() { union() { difference() { translate([0,0,21]) { sphere(r=25, $fn=100); } translate([-25,-25,0]) { cube(50); } } cylinder(r=(rdia+(2*wall))/2, h=height,$fn=30); } translate([0,0,5]) { cylinder(r=...
glb/cad_a877b83a82ae.glb
Create a bottle cage consisting of a central cylindrical collar and two protruding locking tabs. The main collar is a hollow cylinder with a height of 21mm, an outer radius of 15mm, and an inner radius of 12.9mm. The wall thickness is 1.5mm. Cut a narrow slot 1.5mm wide through the center of the collar to allow it to s...
$fn=100; H1 = 21; IR = 94/2/3.14; RNeck = 81/2/3.14; Thk = 1.5; LGrip = 40; Gap = 1.5 ; RBore = 4/2; LStem = 16; Label1 = "YK42"; Label2 = ":-)"; OR = IR + Thk; H2 = 2*Thk; LRSep = IR; difference() { cylinder(r=OR, H1, center = true); cylinder(r=RNeck, H1, center = true); translate([0, 0, H2]) { ...
glb/cad_42b25b3c0ada.glb
Create a Kossel Mini SmartLCD-Case designed to house a RepRapDiscount SmartLCD controller. Start by constructing a main rectangular enclosure with outer dimensions of 156mm in length, 43.75mm in width, and 3mm in thickness. The case should be a hollowed shell with a large rectangular cutout measuring 98mm by 60mm cen...
epsilon = 0.05; extra_radius = 0.1; m3_major = 2.85; m3_radius = m3_major / 2 + extra_radius; m3_wide_radius = m3_major / 2 + extra_radius + 0.2; module roundedRectangle(size = [1, 1, 1], r = 1, center = false, $fn = 16) { translate(center ? [0, 0, 0] : (size / 2)) hull() { for (x = [-size[0] / 2 + r, size[0] /...
glb/cad_1a56bb30fbc4.glb
Create a Parametric Caged Roller Bearing with an inner diameter of 12mm, an outer diameter of 40mm, and a total thickness of 12mm. Construct two concentric raceways (inner and outer) that act as the tracks for the rollers. Each raceway profile should feature a chamfer on the edges and a brim of 0.3mm thickness extend...
cutaway="no"; parts="all"; inner_diameter=12; outer_diameter=40; bearing_width=12; roller_shape="cylindrical"; brim="yes"; brim_thickness=0.3; outside_brim=2; inside_brim=2; roller_loosening_slot="inset slots"; roller_raceway_tolerance=0.3; cage_roller_tolerance=0.4; cage_raceway_tolerance=0.5; bridge_tol...
glb/cad_bfbc3f4a87d0.glb
Create a Pipe Saddle Clamp designed to secure a pipe with a diameter of 7.8mm. Start by forming a rectangular base with a thickness of 4mm and a total width of 22.2mm. Centered on this base, construct a semi-cylindrical arch with an inner diameter of 7.8mm and a wall thickness of 1mm. This arch should be lifted 5.6mm o...
pipe_d = 7.8; pipe_lift = 5.6; screw_d = 4.5; screwh_d = 8.2; screw_trans = 4; support_d = 0; base_thickness = 4; mount_t = 1; base_thick = max(base_thickness,screw_trans); pipe_r = pipe_d/2; mount_d = screwh_d + mount_t *2 + 2; mount_w = pipe_d + (mount_d + mount_t) * 2; mount_w_trust = mount_w - mount_d ...
glb/cad_4e690d01943e.glb
Create a calibration piece called a Jax. Start by centering a cube with dimensions 20mm x 20mm x 10mm. To this central block, attach three identical arms. Each arm consists of a 30mm x 10mm x 10mm rectangular prism with a cylinder of radius 5mm and height 10mm centered at the far end. Position the first arm extending a...
module jax() { unit = 10; $fn = 30; module arm() { union() { translate([0,-unit/2, -unit/2]) cube([3*unit,unit,unit], center = false); translate([3*unit,0,0]) cylinder(r = unit/2, h = unit, center = true); } } translate([0,0,unit/2]) { difference() { union() { cube([2*unit,2*unit,unit], cen...
glb/cad_1ae81d569e91.glb
Create a printable prosthetic hand called the Cyborg Beast. Start by constructing a palm base that is 64mm wide and 20mm high, with a wrist section 10mm high. Arrange four fingers extending from the palm. The index finger is positioned at the first slot, followed by a middle finger shifted 14.4mm over and extended by...
knuckleR = 4.85; wristH = 10; palmH = 20; palmW = 64; th = 3; fn = 32; translate([0,0,0.02/2]) cube(0.02, center=true); include <parts/cyborgpalm001.scad> include <parts/cyborgfingertip002.scad> include <parts/cyborgfingermid002.scad> handlayout(); module handlayout(sp = 14.4) { cyborgbeastpalm(); translate([22,...
glb/cad_9a777285952f.glb
Create a tool holder by starting with a rectangular block 15mm wide, 90mm long, and 10mm high, centered on the origin. Remove six identical tool slots along the length of the block. Each slot consists of a tapered hole and a rectangular channel. The hole is a cylinder with a bottom radius of 6mm and a top radius of 5mm...
epsilon = 0.01; ntools = 6; holder_height = 10; holder_length = 90; holder_width = 15; hole_radius = 6; hole_taper = 1; slot_width = 5; screw_radius = 1.5; screw_head_radius = 3; tool_section = holder_length / ntools; offset = (holder_length - tool_section) / 2; module tool_slot() { cylinder(h = holder_height+ep...
glb/cad_985c6437c86d.glb
Create a customizable nameplate with a base plate and a raised border and text. Start by creating a base plate 80mm wide, 25mm high, and 1mm thick. The plate should have rounded corners, achieved by removing 5mm radius quadrants from each corner. On the top surface of the base, add a raised border 2mm thick that foll...
text="Hank Cowdog"; text_font="Fontdiner Swanky"; text_z_height=1; text_size=7; tag_z_height=1; tag_height=25; tag_width=80; frame_thickness=2; MountingHoles = 2; hole_diameter= (25.4/16*MountingHoles); hole_xpos = tag_width/2-frame_thickness-hole_diameter/2.0; zfudge=0.01+10.0; union() { difference() { ...
glb/cad_b43f246bf937.glb
Create a shower shelf designed to fit an 18mm pole. Start by constructing a rectangular base measuring 104mm in length, 64mm in width, and 8mm in height. Hollow out the center of this base by removing a rectangular volume of 100mm by 60mm with a depth of 8mm, leaving a 2mm thick wall around the perimeter. To accommodat...
difference(){ union(){ cylinder(20,12,12,center); difference(){ translate([-52,0,0]) cube([104,64,8]); translate([-50,2,2]) cube([100,60,8]); } } union() { cylinder(21,9.2,9.2,center); translate([-6,-14,0]) cube([12,8,20]); } }
glb/cad_d4dbaed16416.glb
Create a shower shelf designed to fit an 18mm pole. Start by constructing a base plate that is 100mm long, 60mm wide, and 10mm thick. The plate should have rounded ends, formed by two semicircles with a diameter of 70mm centered on the short edges, creating a pill-shaped footprint. Within this base, carve out a centr...
difference(){ union(){ cylinder(20,12,12,center=false); difference(){ union(){ hull(){ translate([-30,33,0])cylinder(10,d=70,d=70,center=false); translate([30,33,0])cylinder(10,d=70,d=70,center=false); }} hull(){ translate([-30,33,4])cylinder(10,d=64,d=64,center=false); translate([30,33,4])cylinder(10,d=64,d=64,...
glb/cad_67269262f707.glb
Create a Window Box to Azek Rail Adapter with overall dimensions of 95mm in length, 65mm in height, and 20mm in depth. The main body is a rectangular block with a large central cutout to create a C-shaped profile. The interior cutout is symmetrical and consists of a lower rectangular section 60mm wide and 35mm high. ...
width = 90.5; height = 54.25; depth = 20; bottom_width = 59; bottom_negative = (width - bottom_width)/2; middle_height = 19; top_curve_height = 10; bottom_curve_height = 15; bottom_height = height - (middle_height + top_curve_height + bottom_curve_height); top_width = 60; top_curve = 14; top_height = 10; top_negative =...
glb/cad_a1d7a0b1a261.glb
Create a smartphone stand based on a hexagonal prism with an outer radius of 40mm and a total height of 100mm. The main body is a hollow hexagonal shell with a wall thickness of 1mm. Fill the interior of this shell with a hexagonal grid pattern. Each cell in the grid should have a radius of 10mm and a wall width of 1...
outer_radius=40; height=100; wall_thickness=1; angle=26; smartphone_deepth=20; start_x=20; start_y=12; radius=10; width=1; $fn=100; c=smartphone_deepth; a=c*cos(angle); b=sqrt(c*c-a*a); module HexPatternV2(v, r=10, w=1, i=true, a=false) { dx=r*1.5; dy=r*0.866025; sy=(i) ? -0.1 : 0; az=(i) ? 0.2 : 0; r1=(a)...
glb/cad_e00bb96507f0.glb
Create a Generic SMA connector mount. Start by creating two vertical cylinders with an outer radius of 3.9mm and an inner hole radius of 2.7mm, each with a height of 24.5mm. Position these cylinders 31mm apart from center to center. Between these cylinders, construct a support arm that arcs upward. At the peak of this...
flat_connection_top = 1; flat_adapter_top = 1; so_sep = 31; so_r = 2.7; so_t = 1.2; so_h = 24.5; sma_r = 6; angle = 25; a_offset = 15; a_hoffset = 12; connection_thickness = 4.5; connection_height = 8; tw_w = 3.1; tw_h = 1.2; tw_holder_h = 5; tw_holder_w = (so_r + so_t) * 2; tw_holder_d = so_r + so_t + tw_...
glb/cad_e35706a287f4.glb
Create an SD Card Insert Tray designed to fit inside a case with internal dimensions of 95.5mm x 31.5mm x 7mm. Start with a base plate of 95.5mm length, 31.5mm width, and 2mm height, featuring rounded corners with a 3.5mm radius. On this base, construct three storage compartments. Create two larger slots for standard ...
include <boxes.scad>; muji_intcase_length = 95.5; muji_intcase_width = 31.5; muji_intcase_depth = 7; Material_thickness = 2; Divider_thickness = 2; std_sd_clearence = 0.7; std_sd_card_length = 32 + std_sd_clearence ; std_sd_card_width = 24 + std_sd_clearence ; std_sd_card_depth = 2 ; micro_sd_clearence = 0.7; micro...
glb/cad_ca98aef3ec94.glb
Create an Improved Auto Coin Sorter consisting of a base box, a top board, and coin tubes. Construct a base box with a hollow interior and a mesh pattern on the back wall. The box should be sized to accommodate the total width of the selected coins plus padding. Create a top board that fits securely over the base bo...
currency = "eur"; height = 50; pattern = "mesh"; mesh_thickness = 0.8; image = 0; part = "basebox"; understand = 1; coin_1_diameter = 30.61; coin_1_thickness = 2.15; coin_2_diameter = 26.50; coin_2_thickness = 2.00; coin_3_diameter = 24.26; coin_3_thickness = 1.75; coin_4_diameter = 21.21; coin_4_thickness =...
glb/cad_05d948bc9ff9.glb
Create an Improved Auto Coin Sorter consisting of a base box, a top board, and coin tubes. Construct a base box with a mesh pattern on the back. The box should be designed to hold a top board at an angle. The top board is a flat plate with a thickness of 2mm, featuring a series of circular holes of varying diameters ...
currency = "eur"; height = 50; pattern = "mesh"; image = 0; part = "all_unassembled"; understand = 1; coin_1_diameter = 30.61; coin_1_thickness = 2.15; coin_2_diameter = 26.50; coin_2_thickness = 2.00; coin_3_diameter = 24.26; coin_3_thickness = 1.75; coin_4_diameter = 21.21; coin_4_thickness = 1.95; coin_5_...
glb/cad_c5d3198b661a.glb
Create an Improved Auto Coin Sorter consisting of a base box, a top board, and coin tubes. Construct a base box with a mesh pattern on the back. The box should be sized to accommodate the total width of the coins plus padding, with a height of 50mm. Create a top board that fits securely onto the base box. The top b...
currency = "eur"; height = 50; pattern = "mesh"; image = 0; part = "all_unassembled"; understand = 1; coin_1_diameter = 30.61; coin_1_thickness = 2.15; coin_2_diameter = 26.50; coin_2_thickness = 2.00; coin_3_diameter = 24.26; coin_3_thickness = 1.75; coin_4_diameter = 21.21; coin_4_thickness = 1.95; coin_5_...
glb/cad_a8fb2f255574.glb
Create an Improved Auto Coin Sorter consisting of a base box, a top board, and coin tubes. Construct a base box with a mesh pattern on the back. The box should be designed to hold a top board at an angle. On the sides of the base box, incorporate four male dovetail joints to secure the top board. Create a top board ...
currency = "eur"; height = 50; pattern = "mesh"; image = 0; part = "all_unassembled"; understand = 1; coin_1_diameter = 30.61; coin_1_thickness = 2.15; coin_2_diameter = 26.50; coin_2_thickness = 2.00; coin_3_diameter = 24.26; coin_3_thickness = 1.75; coin_4_diameter = 21.21; coin_4_thickness = 1.95; coin_5_...
glb/cad_fd64af675236.glb
Create an Improved Auto Coin Sorter consisting of a base box, a top board, and coin tubes. Construct a base box with a mesh pattern on the back. The box should be designed to hold a top board at an angle. The top board is a flat plate with a thickness of 2mm, featuring a series of circular holes for coins of varying d...
currency = "eur"; height = 50; pattern = "mesh"; image = 0; part = "all_unassembled"; understand = 1; coin_1_diameter = 30.61; coin_1_thickness = 2.15; coin_2_diameter = 26.50; coin_2_thickness = 2.00; coin_3_diameter = 24.26; coin_3_thickness = 1.75; coin_4_diameter = 21.21; coin_4_thickness = 1.95; coin_5_...
glb/cad_2b5c18358e0a.glb
Create an Improved Auto Coin Sorter consisting of a base box, a tube rack, a top board, and coin tubes. Construct a base box with a contoured back and a hollowed interior to house the sorting mechanism. The box should have a minimum height of 75mm and a maximum height determined by the slope of the internal board. C...
currency = 8; coin_roll_version = 2; tube_extra_height = 0; extra_topboard_length_pct = 14; extra_topboard_length = extra_topboard_length_pct * 0.01; guard_style = "Front_and_back"; extra_guard_height = 15; topboard_rim = 15; part = "all_unassembled"; custom_currency_code = "ABC"; coin_01_dia = 10.01; coin_0...
glb/cad_0d8b25f518cb.glb
Create an absorbing filament guide consisting of a rocker and a clamp. Construct the rocker as a rectangular block 100mm long, 14mm wide, and 23mm high. At one end, create a cylindrical housing for a 608ZZ ball bearing with an outer diameter of 22mm and a width of 7mm. Integrate a guide tunnel through the rocker that...
$fa=0.5; $fs=0.5; $fn=100; tolerance_gap = 0.3; rocker_length = 100; rocker_width = 14; rocker_height = 23; bearing_width = 7; pulley_distance_washer = 0.5; pulley_distance_washer_ring_size = 2; pulley_gap_size = 4.5; pulley_diameter = 22; bearing_diameter = 22; bearing_inner_diameter = 8; rocker_guide_narrow_length =...
glb/cad_98484f9d102e.glb
Create an absorbing filament guide consisting of a clamp and a rocker. First, construct the clamp. Create a main body with an overall height of 75mm (60mm inside height plus 15mm bottom height), a total width of 18mm (8mm inside width plus two 5mm jaws), and a length of 33mm. The clamp should be hollowed out in the c...
$fa=0.5; $fs=0.5; $fn=100; tolerance_gap = 0.15; clamp_inside_width = 8; clamp_jaw_width = 5; clamp_inside_height = 60; clamp_length = 33; clamp_top_height = 40 - 10; clamp_bottom_height = 15; clamp_catch_width = 1; clamp_screw_diameter = 5; clamp_mount_from_top = 20 - 10; clamp_mount_from_right = 0; clamp_mount_washe...
glb/cad_798d648dacfe.glb
Create a vertical bushing mount consisting of a main cylindrical body and two rectangular arms. Start with a cylinder that has an outer radius of 12.6mm and a height of 32mm. Remove a concentric inner cylinder with a radius of 9.6mm to create a wall thickness of 3mm. Cut a 40-degree wedge out of this cylinder to leave ...
mount_diameter = 6.25; mount_length = 5; inner_diameter = 19.2; thickness = 3; angle_inside = 10; angle = 220; height = 32; arm_width=15; arm_length = 20; arm2_length = 15; arm2_height = height + 22; arm3_length = 25; arm3_height = 20; mount1_dist = 20; mount2_dist = 15; $fn = 80; module pie(radius, angle, height, sp...
glb/cad_eb23b349e68e.glb
Create a vertical bushing mount consisting of a partial cylindrical sleeve and an attached L-shaped support arm. Start by creating a cylinder with an outer radius of 13.6mm and a height of 32mm. Remove a concentric inner cylinder with a radius of 9.6mm to create a wall thickness of 4mm. Cut a 120-degree wedge out of th...
mount_diameter = 6.25; mount_length = 5; inner_diameter = 19.2; thickness = 4; angle_inside = 0; angle = 240; height = 32; arm_width = 15; arm_length = 13; arm2_length= 13; arm2_height = height + 51; arm3_length = 60; arm3_height = 15; arm3_angle = -20; mount1_dist = 20; mount2_dist = 7; $fn = 80; module pie(radius, ...
glb/cad_721c0e93550f.glb
Create a Lens Holder by constructing a base frame and removing specific internal volumes. Start with a frame 12.4mm high. The frame's footprint is a hull encompassing a circle with a 62.8mm diameter, a rectangle 12.4mm wide by 17mm long positioned at the top, and three small 3.5mm diameter circles: one at the bottom ce...
lensDiameter = 59.8; wall = 1.5; lensRimThickness = 3; lockDiameter = 9.4; lockLength = 17; holderHeight = lockDiameter + 2 * wall; tolerance = 0.5; screwHoleDiameter = 3; cylPartLength = 11.5; rodDiameter = 4.3; conePartLength = lockLength - cylPartLength - tolerance; eCut = 0.1; module frame() { linear_extrude(hol...
glb/cad_b6bc406c2b60.glb
Create a Parametric Life Counter consisting of rotating dials and endcaps. First, design the dials as 10-sided prisms with a height of 12.5mm. Each dial has a complex central core consisting of a 10-pointed star (inner radius 7mm, outer radius 8mm) and a surrounding partial ring. The dials are tapered, with a large r...
include <star.scad>; part = 0; sides = 10; Number_of_Dials = 2; Engrave_Depth = 2; Large_Radius = 16.6; Small_Radius = 14.4; Cylinder_Height = 12.5; Base_Radius = 3; overhang = 0; Endcap_Height = 5; Overlap_Area = 2.5; module center(){ intersection(){ translate([0,0,200/-2]) star3D(n=sides, ri=7...
glb/cad_4c5b3697a1a9.glb
Create an A4988 Heatsink Locator Template. Start by creating a rectangular outer frame with a length of 21.6mm, a width of 16.6mm, and a height of 5mm, centered on the origin. Hollow out the center of this frame by removing a rectangular block measuring 20.6mm by 15.6mm with a height of 3mm, leaving a 1mm border around...
RES=64; tol = 0.3; pcb_width=15.6+tol; pcb_length=20.6+tol; template_border = 1; template_height = 5; heatsink_x = 9.3 + tol; heatsink_y = 9.3 + tol; heatsink_offset_x = 0; heatsink_offset_y = 0.5; difference() { difference() { cube([pcb_length+template_border, pcb_width+template_border, template_heig...
glb/cad_ffaa44d825ff.glb
Create a Star Trek Badge for Cube Magnets by starting with a central rectangular block that is 15mm wide, 15mm deep, and 4mm high. Integrate this block with a Star Trek badge shape. To accommodate magnets, carve out two square holes from the bottom of the assembly. Each hole must measure 5.2mm by 5.2mm and have a depth...
mag_h=5; mag_l=5.2; mag_w=5.2; difference() { union() { import_stl("STNG_BadgeMagnet.stl"); translate([0,0,2]) cube([15,15,4],center = true); } for(i = [5,-5]) { translate([i,0,0]) translate([0,0,mag_h/2 - 1]) cube([mag_w, mag_l, mag_h+1], center=true); } }
glb/cad_3fc712291094.glb
Create a helical screw-like object by rotationally extruding a sinusoidal profile along a central axis. The profile is defined by a sine wave where the radius varies between 9mm and 11mm over a period of 6mm. Extrude this profile longitudinally for a total length of 30mm. As the profile rotates to form the helix, it ...
period = 6; length = 30; nthreads = 7; f = undef; function prof_sin(z) = [z, 10+sin(z*360/period)]; prof = [for (z=linspace(start=0, stop=period, n=16)) prof_sin(z)]; render(convexity=10) revolve( prof, length=length, nthreads=nthreads, f=f); function linspace(start,stop, n) = let (step=(stop-start)/(n)) concat( [ ...
glb/cad_b4ec762abbd3.glb
Create a tolerance step test consisting of a ring and a stepped column. First, construct the ring as a cylinder with a height of 4mm, an inner hole diameter of 5mm, and an outer diameter of 7.5mm. Next, create a stepped column composed of six stacked cylinders, each with a height of 2mm. The bottom-most cylinder of the...
height = 4; holeID = 5; offsetStep = 20; steps = 5; $fn=100 + 0; radius = holeID / 2; outerRadius = radius + max(2, radius/2); halfHeight = height / 2; difference() { cylinder(r=outerRadius, h=height); translate([0,0,-1]) cylinder(r=radius, h=height+2); } translate([0, outerRadius + radius + 2, 0]) { for (i...
glb/cad_121b3b965694.glb
Create a mounting support block for an enclosure system. Start with a rectangular base that is 50mm long, 8mm thick, and has a width equal to the pillar width. Centered along the length of this block, create a cylindrical hole with a diameter of 10.4mm that passes completely through the 8mm thickness. Additionally, cre...
include <../K8200_rod/K8200_rod.scad> support_thickness = 8; support_width = pillar_width; support_length = 50; mount_bolt_pos = 10; mount_bolt_diam = 5.4; rod_pos = 40; rod_diam = 10.4; rod_tube_diam = 20; rod_tube_length = support_thickness; drill_fn = 36; module rod(){ translate([0,0,-rod_fitting_offset]) rotat...
glb/cad_3d93f188319a.glb
Create a K8200 enclosure mounting block. Start with a central rectangular body that is 14.22mm wide, 11mm long, and 14.22mm high. Cut a cylindrical hole through the center of the block along its length with a diameter of 10.25mm to accommodate a rod. Create a slot for a magnet by removing a cylinder with a diameter...
rod_diam = 10.25; rod_position = "vertical"; mount_position = "center"; rod_mount_type = "magnet"; cutout_cube = false; extrusion_width = 0.511; rod_mount_truncate = 2; magnet_diam = 13; magnet_depth = 3.6; body_width = magnet_diam+(extrusion_width*4*2); body_length = 11; ziptie_width = 6; ziptie_depth = 2; zipti...
glb/cad_12de4031bc2b.glb