Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a dummy model for a Tower Pro MG995 servo. Start with a main rectangular body measuring 40.5mm in length, 20mm in width, and 36.5mm in height. On the top surface of the body, centered at X=10 and Y=10, create a series of concentric stacked cylinders to represent the output shaft area: a 19mm diameter cylinder ...
$fn=360; module screwBracket(){ difference(){ union(){ minkowski(){ cube([5.25,17,1]); translate([1,1,0]) cylinder(h=1.5, d=2); } cube([5.25,19,2.5]); rotate([0,10,0]) translate([-1.4,9,1.7]) cube([8,1,2]); } union() { translate([4.25,4.3,-1]) cylinder(h=4, d=4.5); translate([4.25...
glb/cad_1122200f9a9f.glb
Create two separate mounts designed to fit into 25mm diameter holes. First, create an LED holder by constructing a cylinder with a diameter of 24.8mm and a height of 8mm. Center a vertical cylindrical hole with a diameter of 5.2mm through the middle of this disk. Second, create a mirror mount. Start with a base cyli...
Tolerance = 0.2; Separation = 30; MAIN_OuterDiameter = 25; MAIN_Thickness = 8; LEDInnerDiameter = 5; module A(){ translate([0,0,0]){rotate ([0,0,0]) {cylinder($fn = 100, r = MAIN_OuterDiameter/2-Tolerance, h = MAIN_Thickness, center = true );}} } module A_sub(){ translate([0,0,0]){rotate ([0,0,0]) {cylinder($fn = ...
glb/cad_c17a62fa376c.glb
Create a pair of simple tweezers by constructing two identical arms joined at a base. Each arm should be 80mm long in total, with a uniform thickness of 2mm and a total height of 5mm. The main body of each arm is a rectangular prism 70mm long. At the end of each arm, add a tip section 10mm long that is angled upwards a...
module tweezer(length, thick, angle_between_legs) { tip_len = length / 8; leg_len = length - tip_len; scale([leg_len, thick]) square(); translate([leg_len, 0]) rotate(30) { polygon(points=[[0,0], [tip_len, 0], [0,thick]], paths=[[0,1,2]]); } translate([0,thick]) rotate([180,0,angle_between_legs]) { scale(...
glb/cad_af612c177775.glb
Create a parametric S-hook consisting of two connected circular arcs with a uniform thickness of 5mm and a total width of 5mm. First, construct the top hook by creating a cylinder with an outer radius of 10mm and a height of 5mm. Hollow out this cylinder with a concentric inner cylinder of 5mm radius. Remove a wedge-...
top_hook_radius = 10; top_hook_opening = 90; bottom_hook_radius = 20; bottom_hook_opening = 90; hook_thickness = 5; width = 5; module top_hook() { union(){ difference(){ cylinder( h = width, r = top_hook_radius, center = true); cylinder( h = 1.1 * width, r = top_hook_radius-hook_thickness, center = true); ...
glb/cad_193d91aee08a.glb
Create a parametric S-hook consisting of two mirrored, interlocking C-shaped rings. The entire object has a uniform width of 5mm and a body thickness of 5mm. Construct the top hook as a hollowed cylinder with an outer radius of 10mm and an inner radius of 5mm. Remove a 90-degree wedge from this cylinder to create the ...
hook_thickness = 5; width = 5; top_hook_radius = 10; top_hook_opening = 90; bottom_hook_radius = 20; bottom_hook_opening = 90; goldenratio = 1.61803399; joinfactor = 0.125; s_hook(width, hook_thickness); module wedge(angle, radius, thickness) { degreesperslice = 5; numberofslices = angle / degreesperslice; sid...
glb/cad_cb71be76b6c5.glb
Create a Kossel delta printer arm rod spring mount by designing a base shape that is the convex hull of two cylinders, both with a height of 2mm. The first cylinder is centered at the origin with a radius of 5.2mm. The second cylinder has a radius of 2.5mm and is positioned with its center at x = 5.4mm, y = 0, and z = ...
$fn = 128; rod_radius = 3.2; spring_radius = 1; difference() { hull() { cylinder(h = 2, r = rod_radius + 2); translate([rod_radius * 2 - 1, 0, 0]) cylinder(h = 2, r = spring_radius + 1.5); } cylinder(h = 2, r = rod_radius); translate([rod_radius * 2 - 1, 0, 0]) cylinder(h = 2, r = spring_radius); trans...
glb/cad_2a8653854d3d.glb
Create a Parametric Shower Bar Support consisting of a rectangular base and a semi-circular ring. Start by creating a rectangular block 80mm wide, 20mm high, and 10mm deep, centered on the origin. Attached to the top center of this base, construct a ring with an outer radius of 14mm and an inner radius of 20mm, with a ...
base_width = 80; base_heigth = 20; ring_inner = 20; ring_width = 8; depth = 10; ring_outer = ring_inner + ring_width; union(){ translate(v = [0, -(ring_inner + 0.5 * ring_width)- 0.5 * base_heigth,0]) cube(size = [base_width, base_heigth, depth], center = true); difference(){ cylinder(h = depth, r =ring_outer,...
glb/cad_0ba8d0be9890.glb
Create a Velcro-like fixation pad by starting with a rectangular base measuring 25mm by 25mm with a thickness of 0.3mm. On top of this base, arrange a grid of small, peg-like protrusions. Each protrusion is a truncated cone with a hexagonal cross-section (6 facets), starting with a bottom radius of 1.2mm and tapering t...
width=25; length=25; suport_height=.3; margin=2; botomdiam=1.2; topdiam=.3; maxdiam=max(botomdiam, topdiam ); velcro_height=2; extrax=maxdiam*2.3; extray=maxdiam*2.3 ; distancex=topdiam+extrax; distancey=topdiam+extray; cube([width, length, suport_height]); for (comptay = [margin:distancey:length-margin]) { st...
glb/cad_3600abc2d1ec.glb
Create a magnetic detachable autolevel z-probe mount. Start with a main vertical body that is 10mm wide, 15mm deep, and 52mm high. At the top of this body, attach a cylindrical mount with a radius of 5mm and a height of 4mm, centered on the width. Drill a vertical hole with a radius of 1.725mm through the center of thi...
m3_wide_radius = 1.725; mount_width = 10; mount_height = 4; mount_length = 20; magnet_width = 10 + 0.2; magnet_height = 2.4 + 0.7; magnet_depth = 6.6 + 0.2; probe_height = 52; module foot() { difference() { union() { cylinder(r = mount_width / 2, h = mount_height, center = true, $fn = 24); translate([(m...
glb/cad_dc23946a7b69.glb
Create an OpenX Carriage with a total thickness of 12mm, a width of 61mm, and a height of 101mm. The main body is formed by four mirrored corner sections, each based on a polygon with vertices at [0,0], [0,-50.5], [18,-48.5], [21,-26.5], [26.5,-19], and [26.5,0]. Integrate structural ribs consisting of two rectangular ...
t = 12; d = 4.4; h = 101; w = 61; module corner(){ difference(){ linear_extrude(height = t, center = true)polygon(points=[[0,0],[0,-h/2],[18,-(h/2)],[21,-(h/2)+3],[21,-h/2+24],[w/2,-h/2+30.5],[w/2,0]]); linear_extrude(height = t+2, center = true)polygon(points=[[0,0],[0,-40.5],[15.5,-40.5],[17,-39],[17,-25.5],[26.5,-1...
glb/cad_5bf02df112bc.glb
Create a Spilis Lathe Bowl by starting with a large sphere with a radius of 75mm. Cut this sphere with a horizontal plane to remove the bottom section, leaving a dome-like cap. From this shape, remove a smaller concentric sphere centered 75mm above the origin with a radius of 37.5mm, but scale this inner void by 0.6 al...
scale_x = 2; scale_y = 2; scale_z = 1; calotradius = 750; cr = calotradius; xscale = scale_x/10; yscale = scale_y/10; zscale = scale_z/10; translate ([0,0,0]) bowl(); module bowl() { scale([xscale,yscale,zscale]) { difference() { difference() { difference() { calots(); frame(); } translate ([0,0,cr+80]) ...
glb/cad_f8d5504cf238.glb
Create a Polargraph motor mount as a square plate with a thickness of 6mm and side lengths of 62mm. At the center of the plate, create a circular cutout with a radius of 15mm. Around this center, place four motor mounting holes with a radius of 1.7mm, positioned 15.25mm from the center in both X and Y directions (for...
nemaBodySize = 42; nemaThreadHoles = 30.5; motorMountOverhang = 20; motorMountHoles = 1.7; motorMountHolesCountersinkSize = 3; mountThickness = 6; translate([0,0,0]) rotate(a=0, v=[0,0,0]) difference() { union() { cube([(nemaBodySize + motorMountOverhang),(nemaBodySize + motorMountOverhang),mountThickness]); } ...
glb/cad_895485333744.glb
Create a 12-sided die (regular dodecahedron) with a total diameter of 32.49mm (calculated as 0.57 times the base size of 30mm, then smoothed by a sphere intersection). The final shape should be a spherical dodecahedron where the edges are rounded. On each of the 12 pentagonal faces, center a recessed character. The ch...
Size= 30; part="SingleColorDice"; Text1= "1"; Text2= "2"; Text3= "3"; Text4= "A"; Text5= "B"; Text6= "C"; Text7= "Yes"; Text8= "No"; Text9= "\u00A9"; Text10= "\u221A"; Text11= "?"; Text12= "&"; font = "Arial"; S1= 1; S2= 1; S3= 1; S4= 1; S5= 1; S6= 1; S7= 0.6; S8= 0.7; S9= 1; S10= 1; S11= 1; S12= 1; letter_depth =...
glb/cad_070afd9ded11.glb
Create three identical gumball dispenser spacers. Each spacer is a thick ring with a height of 15.875mm. The outer diameter of each ring is 42.545mm and the inner hole diameter is 31.75mm. To ensure the set fits within the machine's housing, the three rings must be positioned such that they are constrained within a l...
$fn=250; intersection(){ three_spacers(); limits(); } module three_spacers(){ translate([-28.13,0,0]){ spacer(); } translate ([14.065,24.36,0]){ spacer(); } translate ([14.065,-24.36,0]){ spacer(); } } module limits(){ difference(){ outer_limit(); inner_limit(); } } module spacer(){ ...
glb/cad_3bb49897bbe7.glb
Create a hexagonal container composed of a lattice of small triangles. The structure is built from a repeating motif of 36 small triangles, each with a side length of 10mm, a thickness of 2mm, and a height of 2mm. Construct the base by arranging six of these triangular arrays in a radial pattern, rotated every 60 deg...
l = 10; w = 2; h = 2; trans_s = 55; scale_prism = 6.6; trans_cyl = 50; base_scale = 1.08; difference() { union() { translate([0,0,-0.1]) scale([base_scale,base_scale,1]) rotate([0,0,30]) for ( i =[ [0,0,60],[0,0,120],[0,0,180], [0,0,240],[0,0,300],[0,0,0], ]) { rotate(i) ...
glb/cad_21df8dbfac92.glb
Create a Chopstick Carrying Case by constructing a rectangular hollow shell. Start with a solid outer rectangular prism measuring 160mm in length, 28mm in width, and 11mm in height. To create the internal cavity, remove a smaller centered rectangular prism from the interior that is 152mm long, 24mm wide, and 7mm high, ...
include <write/Write.scad> text="Thingie"; font = "write/braille.dxf"; length=160; height=11; width=28; union(){ difference() { translate ([0,0,height/2]) cube ([length,width,height],center=true); translate ([4,0,height/2]) #cube ([length,width-4,height-4],center=true); } if (width == 38) { ...
glb/cad_82f2cca5e790.glb
Create a 3D model of a Multi-output maze generator consisting of a rectangular base with a network of raised walls forming a maze. The overall footprint is 320mm in width and 160mm in depth. Construct a solid rectangular base plate with a thickness of 4mm. On top of this base, add a series of rectangular walls to crea...
mirror([0.0,1.0,0.0]) union(){ union(){ translate([-20.0,-20.0,0.0]) cube([0.0,0.0,0.0]); translate([0.0,-20.0,0.0]) union(){ translate([0.0,20.0,0.0]) cube([22.0,2.0,14.0]); cube([0.0,0.0,0.0]); }translate([20.0,-20.0,0.0]) union(){ translate([0.0,20.0,0.0]) cube([22.0,2.0,14.0]); cube([0.0,0.0,0.0]); }translate([40.0...
glb/cad_d3e81c49fd9f.glb
Create a power supply holder designed to secure a rectangular power supply box to a wall and a supporting plank. The holder consists of a bracket with a thickness of 8mm. The main body is shaped to accommodate a power supply with a length of 211mm, a front height of 54mm, and a back height of 53mm. The bracket must ma...
use<rounded_box.scad> wd = 10; psl = 211; pshf = 54; pshb = 53; psh = max(pshf,pshb); pl = 250; pt = 20.2; dx = 20; dz = 20; sfd = 21.8; sbd = 9.8; sl = 2; sr = 0.7; ct = 8; gl = 50; w = ct; module plank_n_power() { scale(-1) square([pl,pt]); translate([dx-pl,-dz-pt-pshb]) square([psl,pshf]); } mo...
glb/cad_43849973d927.glb
Create an Exact Breadboard Box for an Arduino Micro. Start by constructing a main rectangular enclosure with a total length of 144.8mm (82.8mm for the card area plus 62mm for the additional box section), a width of 59.5mm, and a height of 35mm. The walls should be 2mm thick. Hollow out the interior to create a cavity t...
use<write/write.scad> LCDwidth = 72.00; LCDheight = 27.00; card_length = 82.80; card_width = 55.50; shifter = 0; box_height = 35; box_more = 60; wall = 2; space = 0.9; dummy = 1; deckel = 12; boxx(); translate([0,card_width+2*wall*shifter+10,0]) deckel(); module boxx() { di...
glb/cad_205c92848ad4.glb
Create a Clip Customizer by starting with a solid rectangular base measuring 35mm in width, 90mm in length, and 10mm in height. Carve out a central rectangular void from the top face to create a U-shaped channel. This void should be 15mm wide and 70mm long, positioned 10mm from the front edge and centered along the wid...
thickness = 10; gap = 15; length = 90; lip_length = 5; difference(){ cube([gap + thickness * 2, length, thickness]); translate([thickness, thickness, 0]) cube([gap, length - 2 * thickness, thickness]); translate([thickness, thickness, 0]) cube([gap - lip_length, length, thickness]); }
glb/cad_f8f849e9234e.glb
Create a 2" Offset for Tamiya Universal Plate by constructing a composite geometric shape. Start with a central cylinder that is 50mm long with a diameter of 3mm. Around this central axis, add a larger pentagonal prism with a diameter of 10mm and a length of 40mm, centered along the cylinder so that it extends 5mm from...
union () { rotate ([90,54,0]) { cylinder (h=50, d=3, $fn=100); translate ([0,0,5]) cylinder (h=40, d=10, $fn=5); } }
glb/cad_73bc498ed617.glb
Create a collapsible traffic cone consisting of four nested conical sections with a total height of 400mm. The overall structure tapers from a base diameter of 80mm to a top diameter of 10mm. Each of the four sections should have a height of 100mm and a wall thickness of 2mm. The sections are designed to fit inside on...
cone_height=400; cone_base_diameter=80; cone_top_diameter=10; base_size=90; base_thickness=5; strap_width=5; strap_height=5; strap_room=2; cone_slope=(cone_base_diameter/2-cone_top_diameter/2)/cone_height; wall_thickness=2; num_sections=4; overlap=8; extended=false; echo(cone_slope); difference() { union() { for ...
glb/cad_3117218f83bd.glb
Create a protective case for a DSO138 digital oscilloscope. The case consists of a top shell and a bottom base. For the top shell, create a rectangular enclosure with outer dimensions based on a PCB of 118.4mm x 77.7mm x 1.1mm. The walls should be 1.2mm thick. On the top surface, center a rectangular window for the LC...
part = "top"; with_batt = true; pcb = [4.6*25.4+0.2, 3*25.4+0.2, 1.1]; pcbmntdia = 1*3.1; pcbthrdia = 2.5+0.1; pcbmntdx = pcb[0]-4.4*2-3.1; pcbmntdy = pcb[1]-3.4*2-3.1; batt = [26.0, 54.0, 17.0]; lcdwinsize = [50.0+2, 37.0+2]; lcdpos = [pcb[0]/2-lcdwinsize[0]/2-27.5, 17.5-(pcb[1]/2-lcdwinsize[1]/2)]; lcdpcb = [53+2*1...
glb/cad_b1b3d41e68c7.glb
Create a 67mm filter adapter for a GoPro 3+ waterproof case. Start by constructing a base socket that fits the camera lens: create a rounded rectangular profile with a width of 36.9mm and a height of 34.4mm, with corner radii of 5mm and a total thickness of 6mm. On top of this base, center a cylindrical filter mount....
gopro_lens_border_radius = 5; gopro_lens_width = 36.9; gopro_lens_height = 34.4; gopro_lens_thickness_scale = 1.2; filter_radius = (67+2.5)/2; fix = 0.5; $fn = 90; module gopro_lens() { translate([-gopro_lens_width/2+gopro_lens_border_radius,-gopro_lens_height/2,0]) cube([gopro_lens_width-2*gopro_lens_border_radiu...
glb/cad_f683022eb8a1.glb
Create an Oral-B PRO 3000 Travel Case consisting of a main receptacle and a slide-on cover. For the receptacle, create a hollowed-out body with a wall thickness of 0.4mm. The interior cavity is designed to fit a toothbrush handle. Start with a cylindrical base of radius 9.5mm and height 14mm. Extend this into a stalk...
thing = 1; brush_d = 15; brush_h = 14; wall = 0.4; stalk_d1 = 10; stalk_d2 = 11; stalk_d3 = 13.6; stalk_d4 = 11.8; stalk_d5 = 34; stalk_l1 = 55.5; stalk_l2 = 2; stalk_l3 = 10; stalk_l4 = 12; brusht_h = 10; brusht_d = 10; stem_l = 86+20; p1h = brush_h; p2h = 19; p3h = 12; p4h = 7.4; p5h= 7.4; p2d = brush_d/2+3; p3...
glb/cad_214c3aca0043.glb
Create an Oral-B PRO 3000 Travel Case consisting of a main receptacle and a slide-on cover. First, construct the main receptacle. The base is a rectangular block with a width of 52mm and a height of 29mm. Inside this block, carve out a hollow cavity to fit the toothbrush handle. This cavity begins with a cylindrical ...
thing = 0; sidecar = 0; $fn = 120; MH = 26+2; MXY = 3.6; MW = 1; brush_d = 15; brush_h = 14; wall = 0.4; stalk_d1 = 10; stalk_d2 = 11; stalk_d3 = 13.6; stalk_d4 = 11.8; stalk_d5 = 34; stalk_l1 = 55.5; stalk_l2 = 2; stalk_l3 = 10; stalk_l4 = 12; brusht_h = 10; brusht_d = 10; stem_l = 86+20; p1h = brush_h; p2h = 19...
glb/cad_bc99b96df8a9.glb
Create a thin, circular disc with a radius of 90mm and a height of 5mm. Ensure the cylinder has a high facet resolution of 144 to appear smooth.
$fn=144; cylinder(h=5,r=90);
glb/cad_a2152878a01f.glb
Create a camera clip for a laser scanner. Start by constructing a circular ring with an outer diameter of 54mm and an inner diameter of 46mm, with a thickness of 4mm. Cut a wide gap into this ring to create a C-shape, then remove a large central block from the top of the ring to leave only a thin circular wall. At th...
$fn=72; module cameraclip() { translate([1.75,0,2]) { translate([0,0,4]) difference() { translate([0,0,1]) rotate([0,90,90]) cylinder(h=52,r=2, center=true); rotate([0,90,0]) cylinder(h=6, r=20, center=true); } difference() { rotate([0,90,0]) cylinder(h=4, r=27, center=true); ...
glb/cad_c75e710d7d13.glb
Create a laser scanner mount consisting of a cylindrical base and a structured top. Start with a cylinder 26mm in diameter and 20mm in height, centered on the origin. On the top surface of this cylinder, center a square platform 20mm wide and 2mm thick with 2mm rounded corners. From this platform, extend four identic...
slot_width=5.8; slot_thickness=1; t_width=5.8; t_depth=2; trap_bot_width=11; trap_top_width=5; trap_depth=2.5; extrusion_width=20; cover_thickness=2; corner_rounding=2; hole_size=5; tab_height=10; undersize=0.3; difference() { union() { for (a=[0:3]) rotate([0,0,90*a]) translate([0,-extrusion_width/2,0]) ...
glb/cad_2fdf6447c94f.glb
This OpenSCAD code is designed to create a **physical encryption disk** (similar to a cipher wheel) that encodes a specific string of text into a 3D-printable object. Here is a breakdown of what the code is doing: ### 1. The Core Concept: Physical Data Encoding The script takes a string (`the_text`) and converts each...
$fn = 50; the_text = " M-E-O-W! I love cats! M-E-O-W! "; include_ring = 1; number_of_bits = 8; counting_mode = 0; default_deg = 10; bs = 1.0; count = 0; rot_deg = counting_mode*((360/(pow(2,number_of_bits)))-default_deg) + default_deg; id = 2; swing = rot_deg-0; h1 = 2.5; hole_d = 2.5; hole_h = h1*1.25; bit_L = ...
glb/cad_40555fa5a987.glb
Create a Kinect/3D Scanner Calibration Pattern consisting of a grid of hollowed-out cuboids atop a flat base. Start with a solid rectangular base plate with a thickness of 5mm. The overall footprint should be 54mm in length and 87mm in breadth, based on a grid of 5 columns and 6 rows. Populate this base with a grid ...
max_x=100; max_y=100; max_z=100; num_x=5; num_y=6; cell_x=10; cell_y=15; cell_z1=5; cell_z2=10; cell_z3=15; cell_sep=2; cell_height_count=0; wall_t=3; a_bit=0.1; if ( ((num_x*cell_x) + (num_x-1)*cell_sep) <= max_x && ((num_y*cell_y) + (num_y-1)*cell_sep) <= max_y && cell_z3 <= max_z){ grid4 (num_x, num_y, cell_x, c...
glb/cad_80e684f94c8d.glb
Create a 3D scanner calibration pattern consisting of a grid of small cuboids protruding from a large flat base. Start by creating a flat rectangular base with a thickness of 5mm. The base dimensions should be 62mm in length and 97mm in width to accommodate the grid. On top of this base, arrange a grid of 5 columns ...
num_x=5; num_y=6; cell_x=10; cell_y=15; cell_z1=5; cell_z2=10; cell_z3=15; cell_sep=2; cell_height_count=0; wall_t=2; a_bit=0.1; grid3 (num_x, num_y, cell_x, cell_y, cell_z1, cell_z2, cell_z3, wall_t, cell_sep,a_bit,cell_height_count); module grid(num_x, num_y, cell_x, cell_y, cell_z, wall_t, cell_sep,a_bit){ diffe...
glb/cad_e47eba9c8e39.glb
Create a Kinect/3D Scanner Calibration Pattern consisting of a grid of small cuboids protruding from a large flat base. Start with a flat rectangular base plate with a thickness of 5mm. On top of this base, arrange a grid of 5 columns and 6 rows of smaller cuboids. Each small cuboid must have a length of 10mm and a b...
a_bit=0.1; wall_t=3; max_x=100; max_y=100; max_z=100; num_x=5; num_y=6; cell_x=10; cell_y=15; cell_z_num=3; cell_z_step=5; cell_separation=2; cell_height_count=0; if ( ((num_x*cell_x) + (num_x-1)*cell_separation) <= max_x && ((num_y*cell_y) + (num_y-1)*cell_separation) <= max_y && (cell_z_step*cell_z_num) <= max_z)...
glb/cad_5d2728d207b4.glb
Create a Kinect/3D Scanner Calibration Pattern consisting of a flat rectangular base with a grid of smaller cuboids protruding from the top. The base plate should have a total width of 58mm and a depth of 68mm, with a thickness of 5mm. On this base, arrange a grid of 5 columns and 4 rows of small cuboids. Each small ...
a_bit=0.1; wall_t=3; max_x=100; max_y=100; max_z=100; num_x=5; num_y=4; cell_x=10; cell_y=15; cell_z_num=3; cell_z_step=5; cell_separation=2; cell_height_count=0; use_keyed_joints=1; joinfactor = 0.25; gDefaultBase = 12; gDefaultTop = 6; gDefaultHeight = 6; if ((use_keyed_joints*(cell_separation+gDefaultHeight)) +...
glb/cad_a18a9935d608.glb
Create a parametric link for a caterpillar track. The link is based on a central rectangular body with a width of 6mm and a distance between axes of 19.29mm. Construct the main body as a rectangular block with a total width of 6mm. At each end of the long axis, centered at +/- 9.645mm, create cylindrical holes with a...
module main_body(dtd,lh,wh,a,w) { difference() { union() { cube([dtd,a,w],center=true); rotate (a=[90,0,0]) translate ([-0.5*dtd,0,0]) cylinder (r=w/2, h=a,$fn=100, center=true); rotate (a=[90,0,0]) translate ([0.5*dtd,0,0]) cylinder (r=w/2, h=a,$fn=100, center=true); } cube ([wh+w,lh+w,2*w], center=tru...
glb/cad_fd5431bd53c4.glb
Create a spool holder consisting of a vertical stem and an angled guide arm. Start with a rectangular stem that is 13.4mm wide, 149.9mm high, and 13.4mm deep. In the center of this stem, create a vertical hole to accommodate a z-rod; this hole is a cylinder with a radius of 6.26mm and a length of 19mm, but the bottom o...
$fn = 60; yZrodDistanceToYCenter = 124.9; xZrodDistanceToYCenter = 6; nozzleWidth = 0.4; shellsAroundZrod = 3; zRodBearingRadius = 6.26; zRodBearingLength = 19; stemWidth = 2 * (zRodBearingRadius + (shellsAroundZrod * nozzleWidth)); stemLength = stemWidth; stemHeight = 149.9; armWidth = stemWidth; armLength = ...
glb/cad_370d72a46dc7.glb
Create a Rounded Clip consisting of two parallel arms connected by a curved U-bend. Each arm is a 10mm diameter cylinder with a length of 90mm. The arms are separated by a 15mm gap. One arm is a simple cylinder with a hemispherical cap at the end. The second arm is slightly modified at the base to include a 5mm long li...
thickness = 10; gap = 15; length = 90; lip_length = 5; fragments = 10; module arms (){ arm(0, true); arm(gap+thickness, false); } module arm(xOffset, lip){ translate([xOffset, 0, 0]) cylinder(r=thickness/2, h=length, $fn=fragments); translate([xOffset, 0, length]) hull(){ sphere($fn=fragments, r=thic...
glb/cad_75408d839f3d.glb
Create a Prusa i3 Rework Endstop Hitter consisting of a main mounting plate and an adjustable hitting arm. First, create the main plate as a rectangular slab 56mm wide, 68mm high, and 1mm thick, with 4mm rounded corners. On this plate, create four bolt holes with a radius of 2.25mm. Position two holes at x = ±11.5mm ...
arm_id = 3.2; arm_od = 8; arm_offsets=[-24,0,24]; thickness = 1; arm_extend = 15; spacing = 5; hitter_length = 12; hitter_width = 6; hitter_thickness = 3*thickness; epsilon = 0.01; mount_width = 56; mount_height = 68; mount_corner_radius = 4; mount_corner_fn = 20; mount_wraphole_width = 4; mount_wraphole_height = 20...
glb/cad_5ce7aaddacc7.glb
Create a project case for a Raspberry Pi with a Wolfson Pi Audio card. The model consists of a bottom base and a lid. For the bottom base, create a rectangular box measuring 93mm x 64mm x 42mm. The walls are 3mm thick. On the interior floor, add two cylindrical mounting posts at positions [25.2, 17.7] and [80, 43.1], ...
$fs = 0.01; module PIB() { color([255,0,0]) { difference() { cube([85,56,1.5]); translate([25.7,17.7,-1]) cylinder(h=10,r=3.3/2); translate([80,43.1,-1]) cylinder(h=10,r=3.3/2); } } } module PI_B_mount() { difference() { union() { translate([25.2, 17.7,0]) cylinder(h=10, r=4.5); translat...
glb/cad_d331b79340e5.glb
Create a 17mm hex tool extension consisting of a main cylindrical body with a diameter of 30mm and a total height of 40mm. At the top of this cylinder, center a hexagonal prism with a height of 15mm and a flat-to-flat width of 16.5mm (calculated as the 17mm nut diameter divided by the square root of 0.75, minus a 0.5mm...
nut_dia = 17; circle_dia = sqrt(pow(nut_dia,2)/0.75); echo ("circle diameter =", circle_dia); outer_dia = 30; nut_height = 10; wire_gap = 6; text1="17mm"; text2="LAMP"; text3="TOOL"; Tolerance = 0.5; use <write.scad> union () { translate([0,0,39])cylinder(r=circle_dia/2-Tolerance,h=15, $fn =6); translate ([-wire_g...
glb/cad_fca65324b381.glb
Create a Nerf dart holder consisting of a chain of repeating hexagonal units. Each unit is based on a hexagonal prism with a height of 25mm and a diameter of 22mm. For each unit, create a central hole with a radius of 7mm that runs through the height of the prism to hold a dart. The outer walls of the hexagon should ...
Max_bullets = 7; clip_interval = 1; name1 ="SIMON"; name2 ="BELT"; name3 ="AMMO"; unit_width =22.0; unit_height =25; total_length=unit_width*Max_bullets; face_length=unit_width-2*unit_width/4; echo ("face length =", face_length); echo ("total length =",total_length); echo ("hex size =",2*(unit_width/2-cordface_diff)); ...
glb/cad_e6cebd94e7c8.glb
Create a 12-sided die (regular dodecahedron) with a total diameter of 100mm. On each of the 12 pentagonal faces, engrave a character or symbol to a depth of 2mm. The characters to be engraved are "1", "2", "3", "A", "B", "C", "Yes", "No", "ℵ", "♅", "?", and "&". Center each character on its respective face. Use a fon...
Size= 100; Text1= "1"; Text2= "2"; Text3= "3"; Text4= "A"; Text5= "B"; Text6= "C"; Text7= "Yes"; Text8= "No"; Text9= "\u0015"; Text10= "\u26F0"; Text11= "?"; Text12= "&"; font = "DejaVu Sans"; S1= 1; S2= 1; S3= 1; S4= 1; S5= 1; S6= 1; S7= 0.6; S8= 0.7; S9= 1; S10= 1; S11= 1; S12= 1; letter_depth = 2; dual_color_de...
glb/cad_47f7babb9d83.glb
Create a rectangular prism with a width of 150mm, a length of 250mm, and a height of 130mm. Round all four vertical edges of the prism so that each corner has a radius of 20mm. The resulting shape should be a solid block where the top and bottom faces remain flat, and the vertical corners are smooth, cylindrical curves...
$fn = 50; width = 150; length = 250; height = 130; cornerps = 20; difference() { cube([width,length,height],center=true); cornermaster(); corner2(); corner3(); corner4(); } module cornermaster() { translate([(width/2)-cornerps,(length/2)-cornerps,-(height/2)]) { difference() { cube([cornerps,cornerps,height]); cy...
glb/cad_9ccf3078b67e.glb
Create a customizable filament spool with a total width of 25mm and an outer diameter of 130mm. Start by creating a central hub with an outer diameter of 44mm (calculated from a 34mm inner diameter plus 5mm thickness on each side) and a height of 25mm, with a hollow center of 34mm. From this hub, extend four support ...
spool_width = 25; spool_diameter = 130; channel_depth = 18; filament_holes = "Yes"; filament_diameter = 1.75; hub_diameter = 34; hub_thickness = 5; support_thickness = 5; support_holes = "Yes"; spool_inner_diameter = (spool_diameter-(channel_depth*2)); wall_thickness = 2; filament_hole_diameter = filament_diam...
glb/cad_c6bc8efa095b.glb
Create a Z-axis stepper thrust bearing holder consisting of a base plate and a central column. Start with a square base plate measuring 41.5mm x 41.5mm with a thickness of 4mm. At each of the four corners, create a mounting hole with a diameter of 3.5mm; these holes should have a wider cylindrical pocket around them th...
$fn = 48; coupler_height = 25; coupler_diameter = 18.75; bearing_diameter = 22.5; bearing_height = 7; mounting_hole_diameter = 3.5; shaft_diameter = 12; base_plate_size = [41.5, 41.5, 4]; column_wall_thickness = 4; column_top_thickness = 1.5; column_inset = 6.5; arch_diameter = base_plate_size.x-column_inset*2-column_...
glb/cad_2341a5f61dae.glb
Create a Z-axis stepper thrust bearing holder consisting of a base plate and a retaining cap. Start with a square base plate measuring 41.5mm x 41.5mm x 4mm. At each of the four corners, create a mounting hole with a diameter of 4mm. From the top surface of the base plate, centered on the X and Y axes, build a rectan...
include <../threads.scad> $fn = 48; coupler_height = 25; coupler_diameter = 18.75; bearing_diameter = 13.8; bearing_height = 7; mounting_hole_diameter = 4.0; shaft_diameter = 8; base_plate_size = [41.5, 41.5, 4]; column_wall_thickness = 4; column_top_thickness = 2.5; column_inset = 5.5; arch_diameter = base_plate_siz...
glb/cad_45e481905ab6.glb
Create a Z axis stepper thrust bearing holder starting with a square base plate measuring 41.5mm x 41.5mm x 4mm. At each of the four corners of the base, center a vertical hole with a diameter of 4mm. On top of the base plate, center a rectangular column with rounded corners of 5mm. This column should have overall dim...
$fn = 48; coupler_height = 30; coupler_diameter = 18.75; bearing_diameter = 22.2; bearing_height = 7; mounting_hole_diameter = 4.0; shaft_diameter = 12; base_plate_size = [41.5, 41.5, 4]; column_wall_thickness = 4; column_top_thickness = 2.5; column_inset = 5.5; arch_diameter = base_plate_size.x-column_inset*2-column_...
glb/cad_b7b27931c8fa.glb
Create a personalized keychain tag. Start by creating a rectangular base plate with a thickness of 2.4mm. The plate should have a width of 5mm and its length should be determined by the text it contains. On the left side of the plate, add a circular hole for a keyring with a diameter of 4mm and a width of 5mm. On top ...
line1=""; line2=""; line3=""; line4=""; line5=""; line_spacing=1.4; writing_direction="ltr"; function is_vertical()=writing_direction=="btt"||writing_direction=="ttb"?90:0; lug_style="plate"; lug_text_distance=2; lug_length=4.0; lug_width=5.0; ruler_unit=10; font_name="Lobster"; font_size=12; font_style="bold"...
glb/cad_3feae57435c9.glb
Create a towel bar bracket by combining three geometric volumes into a single solid. First, create a rectangular base 10mm wide, 100mm long, and 20mm high. Attach a second rectangular block to the side, 60mm wide, 10mm long, and 20mm high. At the outer edge of this second block, add a cylinder with a 10mm radius and 20...
$fn = 100; mirror([1,1,0]) difference () { union() { cube ([10,100,20]); cube ([60,10,20]); translate ([60, 10, 0] ) cylinder (r = 10, h = 20); intersection () { cube ([60,100,20]); translate ([130, 120,0]) difference () { transl...
glb/cad_27a854d8cdba.glb
Create a Lawnmower Pulley and Fan assembly consisting of two main components: a pulley and a fan. First, construct the pulley. Create a central cylinder with a diameter of 27.7mm and a height of 12.4mm. Attach a wider base cylinder to the bottom with a diameter of 45mm and a height of 5.6mm. Remove a central shaft hol...
detail = 60; nSteps = 15; nStans = nSteps; rotorHeight = 65; rotorBolts = 2; rotorCropHeight = 22; twistMult = 0.5; sweepMult = -10; twistTweak = rotorCropHeight/rotorHeight; bladeThick = 2; bladeSpan = 22; cropped = 0; translate([75,0,0])rotate([0,180,0])fan(2.5); module newPulley(holeDiam) { difference() { ...
glb/cad_9698290b45b8.glb
Create a ceiling brace for a lamp arm holder. Start with a main cylindrical base that has a diameter of 129mm and a height of 25mm. Remove the top and bottom sections of this cylinder by cutting away two rectangular blocks, each 129mm wide and 50mm deep, positioned symmetrically from the center to leave a central strip...
base_width = 130-2*0.50; base_height= 25; screw_height=11.5; fn=128; difference() { union() { cylinder(h=base_height, d=base_width, $fn=fn); } union() { translate([-base_width/2, 20, -1]) cube([base_width,50,base_height+5]); translate([-base_width/2, -20-50, -1]) cube([base_width,50...
glb/cad_093e03407189.glb
Create a lamp arm holder screw consisting of a wide circular base and a threaded shaft. Start with a cylindrical base 16mm in diameter and 2mm thick. Centered on top of this base, add a small cylindrical starter section 9mm in diameter and 0.8mm thick. Above this starter, add a metric thread with a diameter of 10.5mm, ...
use <threads.scad> grrfneo_sucks_at_diameters_correction_factor = 1.15; base_thickness = 2.0; dia_hole_big = 6.85 * grrfneo_sucks_at_diameters_correction_factor; dia_hole_small = 4.20 * grrfneo_sucks_at_diameters_correction_factor; dia_screw = 10.50; length_screw=7.50; pitch_screw = 1.15; screw_starter_thickness = 0....
glb/cad_16fbd51d89a6.glb
Create an Ikea Husinge Arm Screw, which is a right-handed external threaded bolt. The bolt should have a major diameter of 8mm, a pitch of 1mm, and a total length of 4mm. Construct the geometry by creating a central cylinder with a radius of approximately 3.4mm to serve as the core. Wrap a single-start helical thread...
metric_thread(8, 1, 4); function segments(diameter) = min(50, ceil(diameter*6)); module metric_thread(diameter=8, pitch=1, length=1, internal=false, n_starts=1) { n_turns = floor(length/pitch); n_segments = segments(diameter); h = pitch * cos(30); union() { intersection() { for (i=[-1*n_...
glb/cad_9286747bde99.glb
Create a camera cap for a notebook by constructing a hollowed-out rectangular shell with rounded edges. Start with a solid block that is 24mm wide, 20mm deep, and 25mm high. From the center of the top face, remove a semi-cylindrical channel that is 12mm wide and 24mm deep, creating a curved slot to accommodate a camera...
vnitrniSirka=12; sirkaSteny=4; vyska=25; sirka=24; $fn=40; minkowskiSirka=2; module main() { vnitrniSirka=vnitrniSirka+minkowskiSirka; minkowski() { difference() { union() { translate([0,vnitrniSirka/2,vyska]) rotate([0,90,0]) cylinder(r=(vnitrniSirka+sirkaSteny...
glb/cad_cc6db29a0868.glb
Create a Micro gearmotor adapter for a Spider Rover. Start with a central block that is 12mm wide, 15mm deep, and 24mm high. Within this block, create a hollowed-out central cavity by removing two cylinders, each with a radius of 7.25mm and a height of 14mm, positioned at the top and bottom ends along the vertical axis...
$fn=128; translate([0, 0, 10]) difference() { union() { difference() { translate([1, 0, 2]) cube([12, 15, 24], center=true); translate([0, 0, 3]) hull() { rotate([0, 90, 0]) { translate([-1.25, 0, 1]) difference() { cylinder(r=7.25, h = 1...
glb/cad_0ade2b57a67c.glb
Create a Universal Camera Phone Microscope Adapter consisting of a central hub with two extending arms. Start with a central rectangular connector measuring 20.5mm by 12mm with a height of 15mm. From this hub, extend two perpendicular arms. The first arm is a horizontal structure 5mm thick and 109mm long, with a width ...
module triangle_support(){ linear_extrude(height=2)polygon([[0,0],[10,0],[0,10]]); } rotate([180,0,0])translate([0,0,-15])union(){ linear_extrude(height=15)translate([-12/2,-6,0])square([20.5,12]); difference(){ translate([0,0,10])linear_extrude(height=5)difference(){ translate([-6,-43,0])square([12,109])...
glb/cad_87c0ed35de9d.glb
Create a Universal Camera Phone Microscope Adapter consisting of a central hub with two perpendicular arms. Start with a central rectangular connector measuring 20.5mm by 12mm with a height of 15mm. Extend two horizontal arms from this hub. The main horizontal section is 12mm wide and 109mm long, with a thickness of ...
module triangle_support(){ linear_extrude(height=2)polygon([[0,0],[10,0],[0,10]]); } mirror([0,1,0]){ rotate([180,0,0])translate([0,0,-15])union(){ linear_extrude(height=15)translate([-12/2,-6,0])square([20.5,12]); difference(){ translate([0,0,10])linear_extrude(height=5)difference(){ translate([-6,-43,0...
glb/cad_c8291b70e938.glb
Create a Universal Camera Phone/Microscope Adapter consisting of a lens holder and a thumb screw mechanism. First, construct the lens holder as a cylinder with a diameter of 35.4mm and a height of 10mm. Remove a central cylindrical core with a diameter of 22.4mm and a height of 11mm. Add a lip to the bottom of the ho...
x=25.4; y=10; z=3; X=25; Y=25; a=3.35; b=7.88; c=2.82; d=8; e=20; f=3; g=7.8; i=3.3; j=3; thumbscrew(); module thumbscrew(){ difference(){ cylinder(f+2,(g+6)/2, (g+6)/2); translate([0,0,2])cylinder(5,(g+1)/2, (g+1)/2); cylinder(5,(i+1)/2, (i+1)/2); } difference(){ for ( i = [0 :8] ){ rotate( i * 360 / 8, [0, 0, ...
glb/cad_af6ef81a00b4.glb
Create a Universal Camera Phone/Microscope Adapter by starting with a rectangular block 30mm wide, 60mm deep, and 40mm high. Center a circular cutout with a radius of 21mm through the block from top to bottom. From the center of the block, remove a rectangular section 10mm wide and 60mm deep. To create the mounting s...
difference(){ translate([30,0,0])linear_extrude(height=40){ difference(){ translate([-15,0,0])square([30,60], center=true); circle(21, $fn=100); square([10,60], center=true); } } union(){ translate([0,-6,0])cube([2,12,15]); translate([-10,-25,20])rotate([0,90,0])cylinder(40,1.75,1.75); translate([...
glb/cad_bf0c50f4650d.glb
Create a round thumb knob by constructing a cylindrical base with a diameter of 14mm and a height of 5mm. Centered within this base, remove a vertical cylindrical hole with a diameter of 6.8mm that extends 3mm deep into the base. Finally, add a thin vertical pin with a diameter of 3.5mm and a height of 10mm that extend...
translate([0,0,5])rotate([180,0,0]){ difference(){ linear_extrude(height=5)circle(7); linear_extrude(height=3)circle(3.4); cylinder(10,1.75,1.75); } }
glb/cad_81a3a5664dd3.glb
Create a Universal Camera Phone/Microscope Adapter clamp by starting with a rectangular block 60mm wide, 30mm deep, and 40mm high. Center a circular cutout with a 42mm diameter through the 40mm height of the block, but only remove material from the front half of the block to create a deep semi-circular cradle. From thi...
difference(){ translate([30,0,0])linear_extrude(height=40){ difference(){ translate([-15,0,0])square([30,60], center=true); circle(21, $fn=100); square([10,60], center=true); } } union(){ translate([-10,-25,20])rotate([0,90,0])cylinder(40,1.75,1.75); translate([-10,25,20])rotate([0,90,0])cylinder(...
glb/cad_edf46c51bd2c.glb
Create a Universal Camera Phone/Microscope Adapter consisting of a central base and two sliding supports. Start with a main body that is 25mm wide, 7mm thick, and 20mm high. At the center of this body, create a vertical hole 3.5mm in diameter that runs through the entire 20mm height. On each end of the base, integrat...
union(){ rotate([0,180,0])translate([0,0,-20]){ union(){ difference(){ linear_extrude(height=20){ union(){ square([25,7], center=true); difference(){ translate([25/2,3.5,0])circle(7, center=true); translate([0,3.5,0])square([20,10]); } difference(){ translate([-25/2,3.5...
glb/cad_38cd0d7226ee.glb
Create a Fencepost Solar Light Mount consisting of a hollow tapered sleeve on a flat circular base. Start by creating a thin circular mounting flange with a radius of 36mm and a height of 1mm. Centered on this flange, build a hollow support structure that transitions from a lower radius of 27mm to an upper radius of 11...
gap=0.25; wall=2; difference() { union() { translate([0, 0, .75]) difference() { union() { cylinder(r1=2*18/2, r2=18/2+wall+gap, h=45, $fn=90); cylinder(r1=3*18/2, r2=18/2+wall+gap, h=15, $fn=90); } cylinder(r=18/2+gap, h=50, $fn...
glb/cad_2ded9661cb08.glb
Create a pair of mirrored repair parts for a singing fish toy collarbone. For one part, construct a base assembly by combining a cylinder with a height of 16mm and a radius of 4.5mm, a taller central cylinder with a height of 20mm and a radius of 3mm, and two rectangular plates: one measuring 2mm by 55.5mm by 10mm posi...
module fishbone_solid_robust(){ union(){ cylinder(h=16.0,r1=4.5,r2=4.5,center=false,$fs=0.05); cylinder(h=20.0,r1=3.0,r2=3.0,$fs=0.01); translate([2.5,0,0]) cube(size=[2,55.5,10.0]); translate([-4,0,0]) cube(size=[7.5,55,2.0]); rotate(a=[0,90,0]) translate([-5,26,-4]) ...
glb/cad_8aae8490b60e.glb
Create a repair part for a singing fish toy consisting of a flat, elongated plate with integrated cylindrical mounts. Start with a main body that is 20mm long, 6mm wide, and 6mm thick. At one end of this plate, center a cylinder with a height of 6mm and a radius of 4.2mm. At the opposite end, 20mm away from the first c...
$fn=50; module rounded_square_rod(hh,dd,rr) { d1=dd-2*rr; minkowski() { cube([d1,d1,hh],center=true); cylinder(h=hh,r=rr,center=true); } } module small_bass_part_solid(){ union() { cylinder(h=6.0,r1=4.2,r2=4.2,$fs=0.01); translate([20,0,0]) cylinder(h=6.0,r1=3.0,r2=3.0,$fs=0.01); tr...
glb/cad_9465469b1e9c.glb
Create two identical mirrored repair parts for a toy jaw or tail bone. Each part is a flat plate 6mm thick. Start with a base shape consisting of a cylinder with a 4.2mm radius at one end, connected by a 20mm by 6mm by 6mm rectangular block to a second cylinder with a 3mm radius at the other end. Add a 4.8mm by 5mm by ...
$fn=50; module rounded_square_rod(hh,dd,rr) { d1=dd-2*rr; minkowski() { cube([d1,d1,hh],center=true); cylinder(h=hh,r=rr,center=true); } } module lobster_jaw_solid(){ union() { cylinder(h=6.0,r1=4.2,r2=4.2,$fs=0.01); translate([20,0,0]) cylinder(h=6.0,r1=3.0,r2=3.0,$fs=0.01); trans...
glb/cad_0a64cfb21468.glb
Create a repair part for a toy hip joint. Start with a base consisting of a rectangular plate 41mm long, 10mm wide, and 2mm thick. Add a stiffening rib along the center of the plate's length that is 2mm wide and 5mm high. At both ends of the plate, add cylindrical bosses with a radius of 5mm and a height of 8mm. In t...
$fn=50; module rounded_square_rod(hh,dd,rr) { d1=dd-2*rr; minkowski() { cube([d1,d1,hh],center=true); cylinder(h=hh,r=rr,center=true); } } module lobster_hip(){ union(){ cylinder(h=8.0,r1=5.,r2=5.,center=false,$fs=0.05); translate([0.0,-5.0,0]) cube(size=[41,10.0,2.0]); transla...
glb/cad_ebd1e391ed21.glb
Create an X-axis motor bracket starting with a central rectangular base plate measuring 76mm wide by 93mm long and 5mm thick. Add four vertical ribs of 7mm thickness: two running the full width of the plate at the front and back edges (each 5mm wide), and two running the full length of the plate at the sides (each 5mm ...
w = 76; l = 93; base_t = 5; rib_t = 7; rib_w = 5; motor_d = 23; clamp_d = 3.4; roller_d = 4.4; slot_l = 4; module slot(d,l){ union(){ cube([l,d,base_t+2], center=true); translate([l/2,0,0])cylinder(r=d/2, h=base_t+2, center=true); translate([-l/2,0,0])cylinder(r=d/2, h=base_t+2, center=true); } } difference()...
glb/cad_6ea53571719c.glb
Create an LED strip mount consisting of two identical pieces placed side-by-side with a 2mm gap between them. Each piece has a total length of 125mm. Start by creating a rectangular base for each piece that is 10mm wide and 1.5mm thick. On top of this base, add two vertical walls to create a C-shaped channel. Each wall...
frame_width = 6; mount_length = 250; strip_width = 10; split_into_two_mounts = true; base_height = 1.5; clip_width = 1.5; clip_height = 4; mount_distance = 2; mounts(); module mounts() { if (split_into_two_mounts) { translate([0, 0, 0]) mount(mount_length / 2); translate([strip_width + mount_...
glb/cad_a85168d69471.glb
Create a chainable card holder section. Start with a rectangular base that is 20mm wide, 120mm long, and 2mm high, positioned so it extends 10mm behind the main wall. On top of this base, build two parallel walls to create a slot for cards. The back wall should be 10mm wide and 15mm high. The front wall should be 10mm ...
holder_length=120; wall_base_width=10; back_base_width=10; base_height=2; back_wall_height=15; front_wall_height=5; separation=2.5; coupling_tolerance=0.6; coupling_width=4; coupling_large=coupling_width*2; printCouplings = true; base(); back_wall(); front_wall(); if(printCouplings){ couplings(); } module base(...
glb/cad_dd1514b4d0c6.glb
Create a retail lip balm holder consisting of a rectangular block containing a grid of 24 oval holes. The overall block is composed of 4 rows and 6 columns of these holes. Each individual hole is an oval with a width of 14mm, a height of 20mm, and a depth of 9mm. To form the structure, create a solid rectangular cell f...
holesx = 4; holesy = 6; $fn=50; tubewidth = 14; tubeheight = 21; tubedepth = 9; spacing = 6; module hole() { difference() { translate([0,0,5]) cube([tubewidth+spacing,tubeheight+spacing,tubedepth+2], center = true); translate([0,0,2]) resize([tubewidth,tubeheight,tubedepth]) oval(tubewidth,tubeheight,tubedepth); }...
glb/cad_3537e4672bda.glb
Create a miniature road sign consisting of a support stand and a circular sign. For the stand, create a central vertical rectangular pillar 4mm wide, 2mm deep, and 90mm tall. At the base of this pillar, add two perpendicular rectangular feet, each 30mm long, 4mm wide, and 2mm thick, crossing at the center to form an X-...
use <Write.scad> module senal_velocidad(altura, velocidad){ radio = 16; color([0.5,0.5,0.5]) cube(size = [4,2,altura], center = true); color([0.5,0.5,0.5]) translate([0,0,-altura/2]) cube(size = [30,4,2], center = true); color([0.5,0.5,0.5]) rotate([0,0,90]) translate([0,0,-altura/2]) cube(size = [30,...
glb/cad_9b241afddb5d.glb
Create a miniature road sign consisting of a triangular plate with a raised border. Start by creating a white equilateral triangle with a radius of 16mm and a thickness of 1.5mm. To create the red border, place a slightly larger equilateral triangle with a radius of 16mm and a thickness of 1.8mm centered on the first. ...
use <Write.scad> module senal_velocidad(altura){ radio = 16; color([1,1,1]) translate([(altura/2)- (radio/2),0,1.5]) rotate([0,0,60]) cylinder(r = radio,h=1.5,$fn=3, center = true); color([1,0,0]) difference(){ translate([(altura/2- (radio/2)),0,1.8]) rotate([0,0,60]) cyl...
glb/cad_82bdcf746f95.glb
Create a Tesla Model S Wall Charger Plug Holder by starting with a solid rectangular block measuring 75mm wide, 75mm high, and 35mm deep. Carve a large void through the center of the block to accommodate the charging plug. This void is based on a specific organic profile that is extruded and then tilted 50 degrees al...
module charger_end(h) { scale([25.4/90, -25.4/90, 1]) union() { linear_extrude(height=h) polygon([[-3.005779,62.149426],[-16.569022,60.425044],[-29.740098,56.758094],[-42.263469,51.264495],[-53.883598,44.060166],[-59.296113,36.626611],[-63.442667,28.424632],[-69.673609,11.070035],[-72.251218,-0.964639],[-...
glb/cad_541ea032c74c.glb
Create a rectangular plate measuring 60mm wide, 100mm long, and 3mm thick. In this plate, create four circular holes, each with a diameter of 3mm, that pass completely through the thickness of the material. Position the centers of these holes 5mm from the edges of the plate: two holes should be located 5mm from the sho...
difference () { cube ([60,100,3]); translate ([5,5,0]) cylinder (h=10,d=3,$fn=100, center=true); translate ([55,5,0]) cylinder (h=10,d=3,$fn=100, center=true); translate ([5,95,0]) cylinder (h=10,d=3,$fn=100, center=true); translate ([55,95,0]) cylinder (h=10,d=3,$fn=100, center=true); }
glb/cad_199c1999727e.glb
Create a 3D model of a Hilbert Cube based on a space-filling curve. For a single iteration, the structure is composed of a series of connected beams and corners. Position small cubes of 1mm x 1mm x 1mm to serve as the corners of the curve. Connect these corners with rectangular beams that have a cross-section of 1mm ...
Iterations = 1; Spacing = 5; beam_width = 100; randomized = 0; minimum_iterations = 0; maximum_iterations = 3; minimum_spacing = 3; maximum_spacing = 10; minimum_beam_width = 10; maximum_beam_width = 100; if(randomized == 0) drawhilbert(Spacing, Iterations, beam_width); if(randomized == 1) drawhilbert(rands...
glb/cad_91cd1605e502.glb
This OpenSCAD code is designed to generate a **physical, encoded disk** (similar to a cipher disk or a custom puzzle key) that represents a specific string of text through geometric holes and patterns. Here is a breakdown of what the code is doing: ### 1. The Core Concept: Text-to-Geometry Encoding The script takes a...
$fn = 100; the_text = "MOM"; jewelry = 0; include_ring = 1; number_of_bits = 8; counting_mode = 0; default_deg = 10; bf1 = 0.6; bs1 = 0.8; af1 = 2.35; af2 = 2.15; af = jewelry == 1 ? af1 : af2; count = 0; rot_deg1 = counting_mode == 1 ? (360/(pow(2,number_of_bits))) : 360/len(the_text); rot_deg2 = rot_deg1 <= 120 ? ...
glb/cad_ace1b211848b.glb
Create a Digispark development board model. Start with a main PCB base as a rectangular prism measuring 19.18mm x 17.66mm x 2.4mm. Attached to the front side, add a smaller rectangular USB connector block measuring 12.26mm x 8.79mm x 2.4mm, centered along the X-axis. On the top surface of the PCB, place a voltage regu...
$fn = 50; pcb_x = 19.18; pcb_y = 17.66; pcb_z = 2.4; usb_x = 12.26; usb_y = 8.79; hole_diam = 1; hole_pitch = 2.6; hole_offset = 1.4; module pcb() { color("DarkOliveGreen") difference() { union() { cube(size=[pcb_x, pcb_y, pcb_z], center=false); translate([(pcb_x...
glb/cad_04632c60cf32.glb
Create a carriage plate and a matching endstop mount. For the plate, start with a plate of 10.1mm thickness and subtract a cylinder with a diameter of 34mm and a height of 50mm, centered and oriented along the Z-axis. For the endstop mount, create a central block measuring 15mm wide, 9mm thick, and 15mm high, centered...
include <configuration.scad> use <frame_motor.scad> use <frame_top.scad> use <carriage_recirculating.scad> use <recirculating.scad> use <plate.scad> use <endstop.scad> use <microswitch.scad> thickness = 9; width = 15; height = 15; module new_plate(){ difference (){ plate(10.1); translate([0, 0, 24]) rota...
glb/cad_6fdce514f833.glb
Create a carriage plate for a recirculating carriage. Start with a central rectangular body 27mm wide, 40mm long, and 10mm thick (6mm base thickness plus 4mm). At the bottom, center a plate that is 29mm wide and 25mm high with a thickness of 7mm, featuring rounded corners with a 5mm outside radius. Add two symmetrical...
include <configuration.scad>; separation = 40; thickness = 6; horn_thickness = 13; horn_x = 8; belt_width = 5; belt_x = 5.6; belt_z = 7; plate_thickness = 7; plate_y = -9; plate_w = 29; plate_h = 25; outside_radius = 5; module plate2(h) { minkowski() { cube([plate_w, plate_h, 2], center=true); cylinder(r...
glb/cad_06438ca2129e.glb
Create a Graham escapement mechanism consisting of an escapement wheel, a pendulum, and a support base. First, construct the escapement wheel with a radius of 27mm and a thickness of 4.5mm. The wheel features a central hub 3.6mm wide and 13.5mm high, with a central bore of 1.8mm. Add 7 spokes, each 0.9mm wide, connec...
include <escapementLibrary.scad> scale=0.45; radius=60*scale; thickness=10*scale; bore=4*scale; rimWidth=5*scale; numberSpokes=7; spokeWidth=2*scale; drumHeight=3*thickness; numberTeeth=20; toothLength=20*scale; toothLean=30; toothSharpness=20; toothSpan=4.5; faceAngle=6; armAngle=26; armWidth=5*scale; hubWidth=8*s...
glb/cad_5be418c62c51.glb
Create a Random Egg Hourglass Structure by assembling several geometric primitives. Start with a central vertical cylinder that is 25mm tall with a radius of 14mm and a height of 4mm. Position four scaled spheres around the center; each sphere should have a radius of 5mm but be scaled by a factor of 3 along the X-axis ...
translate([15,0,15]) rotate([0,90,90]) scale([3,1,1]) sphere(r = 5); translate([0,15,15]) rotate([0,90,90]) scale([3,1,1]) sphere(r = 5); translate([-15,0,15]) rotate([0,90,90]) scale([3,1,1]) sphere(r = 5); translate([0,-15,15]) rotate([0,90,90]) scale([3,1,1]) sphere(r = 5); translate([15,0,0]) cylinder(10,5,2); tra...
glb/cad_72eca939a087.glb
Create a Fine Grill consisting of a thin circular disc with a diameter of 180mm and a total height of 1.2mm. The object features a outer rim 2mm wide that encircles a central recessed area. Within this circular boundary, construct a cross-hatched grid pattern composed of intersecting straight bars. Each bar in the grid...
diameter = 180; layerHeight = 0.3; nozzleDiameter = 0.5; union() { translate([diameter/2, diameter/2, 0]) difference() { cylinder(r=diameter/2, h = 4 * 2 * layerHeight); translate([0,0,-0.1]) cylinder(r=diameter/2 -2, h = 4 * 2 * layerHeight + 0.2); } intersection() { translate([diameter/2,diameter/2,0...
glb/cad_ad6a7fa9c288.glb
Create a gear train and escapement assembly. All components have a uniform thickness of 3.6mm and a central bore diameter of 3.6mm. Start with a large gear of 35 teeth. Position a second gear of 7 teeth so that it meshes with the first. Position a third gear of 28 teeth to mesh with the second, and a fourth gear of 7 ...
use <MCAD/involute_gears.scad> include <escapementLibrary.scad> scale=0.45; radius=60*scale; thickness=8*scale; bore=8*scale; rimWidth=5*scale; numberSpokes=7; spokeWidth=2*scale; drumHeight=1*thickness; numberTeeth=20; toothLength=20*scale; toothLean=30; toothSharpness=20; toothSpan=4.5; faceAngle=6; armAngle=26; ...
glb/cad_a3964373c25c.glb
Create a MakeyMakey Box consisting of a main enclosure and a separate flat lid. For the main enclosure, create a rectangular block with a total length of 138mm (93mm card length + 10mm shifter + 35mm additional box length), a width of 59mm (48mm card width + 10mm shifter + 4mm wall thickness), and a height of 35mm. H...
use<write/write.scad> card_length = 93.00+1.60; card_width = 48.00+1.00; shifter = 10; shifter_up = 5; name_it = 1; LCDwidth = 72.00; LCDheight = 27.00; box_height = 35; box_more = 35; box_draw = 1; wall = 2; space = 0.9; dummy = 1; deckel = 12; boxx(); translate([0,-...
glb/cad_dd8590faf992.glb
Create a MakeyMakey Box consisting of a main container and a matching lid. For the main container, create a solid block with a total length of 143mm (93mm card length + 10mm shifter + 40mm additional box section), a width of 69mm (48mm card width + 10mm shifter + 4mm walls), and a height of 35mm. Hollow out the cente...
use<write/write.scad> card_length = 93.00+1.60; card_width = 48.00+1.00; shifter = 10; shifter_up = 5; name_it = 1; LCDwidth = 72.00; LCDheight = 27.00; box_height = 35; box_more = 35; box_draw = 1; wall = 2; space = 0.9; dummy = 1; deckel = 12; boxx(); translate([0,-...
glb/cad_e93b80033eff.glb
Create a Morimoto D2S projector mount starting with a main cylinder 72mm in diameter and 27.5mm high. From the center of this cylinder, remove a smaller concentric cylinder with a radius of 18.6mm and a height of 10mm. Above this void, remove a second concentric cylinder with a radius of 32mm and a height of 20mm, star...
difference () { cylinder(r=36, h=27.5, $fn=200); translate ([0,0,9]){ cylinder(r=32, h=20, $fn=200); } translate ([0,0,24.5]){ cylinder(r1=32,r2=36, h=3, $fn=200); } cylinder(r=18.6, h=10, $fn=200); translate ([0,0,0]){ cylinder(r=22,h=3, $fn=200); } translate([-27,-4.5,0]){ cube([47,9,3]); } translate([-11.5,-1...
glb/cad_4a81eded2179.glb
Create a Morimoto D2S projector mount starting with a main cylinder 72mm in diameter and 27.5mm high. From the center of this cylinder, remove a smaller concentric cylinder with a radius of 18.6mm and a height of 10mm. Above this central void, remove a second concentric cylinder with a radius of 32mm and a height of 25...
difference () { cylinder(r=36, h=27.5, $fn=200); translate ([0,0,9]){ cylinder(r=32, h=25, $fn=200); } translate ([0,0,24.5]){ cylinder(r1=32,r2=36, h=3, $fn=200); } cylinder(r=18.6, h=10, $fn=200); translate ([0,0,0]){ cylinder(r=22,h=3, $fn=200); } translate([-27,-4.5,0]){ #cube([47,9,3]); } translate([-11.5,-...
glb/cad_a600ccbc0ae3.glb
Create a Customizable D6 Holder. Start by creating a solid base block with a square footprint of 28mm (16mm die size plus 3mm walls on each side) and a total height of 8.5mm. The outer shape should have rounded corners with a 3mm radius. In the center of the block, carve out a square hole to hold the die. This hole sh...
Size=16; Fit=0.5; Tagged=1; WallThickness=3; Arrow=2; CornerStyle=0; DieSize=Size+Fit; HeightFactor=3; function from_polar(r=1,theta=60) = [r*cos(theta),r*sin(theta)]; module star_5(radius=10,inner=0.4){ polygon([ from_polar(radius,0), from_polar(radius*inner,36), from_polar(radius,72), from_polar(rad...
glb/cad_83a7f933f0ec.glb
Create a parametric egg by starting with a sphere of 15mm radius. Scale this sphere by a factor of 1.5 along the Z-axis to create a prolate spheroid. To achieve the characteristic egg shape, intersect this stretched sphere with a cube that has a side length of 45mm (3 times the radius) and is centered on the Z-axis. Po...
radius=15; stretch = 1.5; angle = 80; function get_offset(a) = lookup(a, [[0, cos(45)],[60, cos(90)],[90, cos(70)]]); intersection(){ echo(get_offset(angle)); translate([0,0,stretch*radius])cube(2*stretch*radius, center = true); translate([0,0,get_offset(angle)*radius])rotate([angle,0,0]){ union(){ intersecti...
glb/cad_5ea827a177c9.glb
Create a 3D model of the "Luque en Bici" logo. The model consists of a flat, extruded graphic with a uniform thickness of 5mm. The design features a stylized bicycle wheel and gear assembly integrated with text. The primary shape is a circular gear-like ring with teeth along the outer edge. Inside this ring, there are...
fudge = 0.1; module poly_path2996(h) { scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[-9.691859,-105.562500],[-12.627183,-105.315119],[-14.379359,-104.000000],[-17.789121,-99.419033],[-19.066859,-95.593750],[-18.716576,-93.711216],[-17.254359,-92.0...
glb/cad_05e449087e53.glb
Create an ergonomic handle for a metal saw blade. Start by constructing a main body that transitions from a cylindrical base to a spherical top. The base is a cylinder with a radius of 8.8mm and a height of 3mm. Above this, create a hull that connects a cylinder of radius 8.8mm to a sphere with a radius of 20mm centere...
$fa=1; $fs=1; saw_h=12.5+0.6; saw_th=0.8+0.2; saw_hole_d= 4.2; saw_wall= 3.8; saw_wall_big= 5; saw_wall_inner= 2; ball_wall_th= 2; inner_wall_th= 2; ball_h= 68; ball_d= 40; m3_d= 3; m3_d_tight= 2.9; m3_nut_d= 6; m3_head_h= 1.6; m3_head_d= 5.5; m3_nut_h= 2.0; m3_nylock_h= 3.8; m3_nut_d_tol= 0.2; total_h= ball_h+bal...
glb/cad_3d9f6c98b03e.glb
Create a foam board connector bracket. Start by forming a base L-shaped body using two joined rectangular prisms. The first prism is 10mm wide, 25mm deep, and 10.9mm high. Attached to the top of this is a second prism that is 10mm wide, 10.9mm deep, and 20mm high. Apply a 1mm fillet or rounded edge to all exterior corn...
plywood_thick = 11; foam_thick = 4.9; output = 2; if (output == 1) { rotate([0, 270, 0]) plywood_bracket(); } if (output == 2) { rotate([0, 270, 0]) foamtofoam(); } module plywood_bracket() { difference() { union() { minkowski() { cube([20, 25, plywood_thick+6]); cylinder(h=1, r=1, $fn=20); } mink...
glb/cad_b0f5d792fe3b.glb
Create a base for an ATSC Digital HD TV Antenna. Start by creating a square flat plate 120mm wide and 4mm thick. In the center of this plate, construct a vertical hollow cylinder with an outer diameter of 37.75mm and an inner diameter of 27.75mm to accommodate a 1-inch pipe. The cylinder should extend upwards to a tota...
pole_diam = 27.75; pole_h = 100; base_size = 120 /2; base_h = 4; union() { difference() { cylinder(h=pole_h, r=((pole_diam + 10) /2), $fn = 50); cylinder(h=pole_h +1, r=pole_diam /2, $fn = 50); } hull() { translate([-base_size, -base_size, 0]) sphere(base_h /2, $fn=25); translate([base_size, -base_size, 0]) sphere(b...
glb/cad_746e65d3fc5e.glb
Create a Covered Bulb Socket Element consisting of a hexagonal hollow shell and a matching hexagonal lid. First, construct the main body as a hexagonal prism with a height of 50mm and an outer radius of approximately 10.5mm. The walls should be hollowed out to create a sleeve; remove a concentric hexagonal center wit...
module nub(h=2,k=5,r=10,r1=5,l=1.2) difference() { union() { cylinder(k,r1,0,$fn=30); translate([0,0,-h]) { cylinder(r=r,h=h,$fn=30); translate([0,-r,0]) cube([r+l,2*r,h]); translate([-r,0,0]) cube([r,r,h]); } } translate([0,0,-h]) cylinder(k,r1,0,$fn=30); } module rack(n=5,space=4,clear=0...
glb/cad_8c6797560709.glb
Create a stepper gear for a Pet Treat Dispenser. The gear should have 13 teeth and a total thickness of 15mm (composed of a 10mm gear height and a 5mm shaft height). The gear must feature a central bore with a diameter of 5.25mm to accommodate a motor shaft. To secure the gear to the shaft, create a transverse setscr...
include <MCAD/involute_gears.scad> generate = 1; distance_between_axels = 40; gear_h = 10; gear_shaft_h = 5; gear1_teeth = 13; gear1_shaft_d = 5.25; gear1_shaft_r = gear1_shaft_d/2; gear1_setscrew_offset = 2.5; gear1_setscrew_d = 1.25; gear1_setscrew_r = gear1_setscrew_d/2; gear1_captive_nut_d = 0...
glb/cad_1c8ecdeb7d14.glb
Create a Pet Treat Dispenser consisting of a cylindrical can holder and a supporting gearbox assembly. First, construct the can holder. Create a cylinder with a radius of 31mm (lid radius 28mm plus 3mm wall) and a height of 41mm. Hollow out the center by removing a cylinder with a radius of 25mm and a height of 20mm....
include <MCAD/shapes.scad> m3_d = 3.5; m3_r = m3_d / 2; m3_hd = m3_d * 2; m3_hr = m3_hd / 2; m3_hs = 2.5; huge = 500; wall_w = 3; floor_h = 5; wheel_r = 30; gear_r = 10; gearmargin = 3; body_w = (wheel_r*2) + (wall_w*2) + (gearmargin*2); stepper_w = 50; stepper_adjust = 2.5; dropholes_d = 15; dropholes_r = droph...
glb/cad_c352feece60d.glb
Create an OpenBeam 1515 Clip by constructing a central rectangular plate 10mm wide, 1.5mm thick, and 10mm long. On each side of this plate, add a rounded protrusion that extends the width. Each protrusion is formed by the convex hull of two cylinders: a smaller cylinder with a 0.5mm radius and a larger cylinder with a ...
$fn=100; plate_thickness=1.5; module clip(x){ difference(){ union(){ translate([0,plate_thickness/2,0]) cube([10,plate_thickness,x],center=true); hull(){ translate([-0.8,0,0])cylinder(h=x,r=0.5,center=true); translate([-2.6/2,-2,0])cylinder(h...
glb/cad_4f0a56c06434.glb
Create a spool holder for a Kossel OpenBeam 1515. The main body is formed by the union of two geometric hulls. The first hull connects two cylinders with a radius of 7.5mm and a height of 4mm, positioned at [0, -12.5, 0] and [0, 12.5, 0]. The second hull connects two cylinders with a radius of 7.5mm and a height of 15m...
use <frame_top.scad> $fn=100; weight=25; height=4; module spool_holder(x){ difference() { union(){ hull(){ translate([0, -weight, 0])cylinder(h=height,r=7.5, center = true); translate([0, weight, 0])cylinder(h=height,r=7.5, center = true); } hull(){ translate...
glb/cad_cdf6d185939a.glb
Create a spool holder for a Kossel OpenBeam 1515. Start by constructing a vertex frame based on a 1515 extrusion with an idler offset of 3mm and an idler space of 12.5mm. From this base, remove a cylindrical hole with a radius of 1.5mm and a length of 55mm, centered at coordinates [0, 65, 0] and rotated 90 degrees on t...
include <configuration.scad>; use <vertex.scad>; $fn = 24; module frame_top() { difference() { vertex(extrusion, idler_offset=3, idler_space=12.5); translate([0, 65, 0]) rotate([90, 0, 0]) # cylinder(r=m3_radius, h=55); translate([0, 10, 0]) rotate([18, 0, 0]) union() { cylinder(r=m3_wide...
glb/cad_80ff070897d7.glb