Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a glide bar for a robot lawnmower. The main body is a wide, shallow, curved tray. Start with a base shape that is 190mm long, 60mm wide, and 60mm high. The bottom surface should be curved and smooth, while the top is flat. The overall form is created by blending several flattened spheres (ellipsoids) to create a...
difference(){ intersection(){ translate([-95,-30,0])cube([190,60,60]); difference(){ hull(){ translate([30,0,20])scale([0.6,0.4,0.2])sphere(r=100,$fn=128); translate([-30,0,20])scale([0.6,0.4,0.2])sphere(r=100,$fn=128); translate([75,0,25...
glb/cad_ddbadd0b4fa2.glb
Create a glide bar for a robot lawnmower. The main body is a symmetrical, elongated shape 200mm long, 58mm wide, and 70mm high. The top surface is flat, while the bottom is sculpted with a complex curvature. This curvature is formed by the intersection of several scaled spheres and cylinders, creating a smooth, rounded...
rounded = false; rotate([-90,0,0])difference(){ if(rounded){ minkowski(){ base(); sphere(r=1,$fn=32); } } else{ base(); } translate([-100,-40,50]) rotate([10,0,0]) union(){ screwHoles(); cube([200,80,50]); } } module base(...
glb/cad_f66d757a038b.glb
Create a Powder Measure Disk Bushing by constructing a thick-walled hollow cylinder. Start with an outer cylinder that has a diameter of 12.0 mm and a height of 12.125 mm. Center this cylinder on both the X and Y axes. To create the inner cavity, remove a smaller concentric cylinder from the center that runs the full h...
bushing_height=12.125; bushing_diameter=12.0; volume=0.25; sides=100; module body() { difference() { cylinder(h=bushing_height,r=bushing_diameter/2,center=true,$fn=50); #cylinder(h=bushing_height+1,r=sqrt((volume*1000)/(3.14159*bushing_height)),center=true,$fn=sides); } } body();
glb/cad_6ace693138db.glb
Create a Trautman Hook prosthetic by combining three primary geometric components. First, construct a curved arc by taking a cylinder with a height of 5.08mm and an outer radius of 35.56mm, then removing a concentric inner cylinder with a radius of 30.48mm. Cut this arc into a partial C-shape by removing two rectangula...
module arc(){ difference(){ cylinder(h=200, r=1400); cylinder(h=200, r=1200); translate( [-1500,-1400,0]){ cube(size = [3000,2050,200], center =false);} translate([-1400,600,0]){ cube(size=[800,200,200], center= false);} } } module tip(){ rotate([90,0,0]) translate([875,0,-800]){ intersec...
glb/cad_ddefb9ca155e.glb
Create a power button for an Electrolux Ultramix ESTM 6600. Start with a main body formed by a Minkowski sum of a 16.5mm x 6mm x 8mm cube and a cylinder with a 5mm radius and 40-facet resolution. Intersect this body with a cylinder of 20mm length and 32mm radius, rotated 93 degrees along the X-axis and positioned at [1...
intersection () { translate([13,20,-23]) { rotate([93,0,0]) { cylinder(20,32,32,$fn=200); }; }; union() { translate([5,5,0]) { difference() { minkowski() { cube([16.5,6,8]); cylinder(1,5,5,$fn=40); }; translate ([6,3,-0.01]) { cylinder (4,4,4,$fn=100); }; tra...
glb/cad_bdf2a4f0932c.glb
Create a parametric nesting fidget cube consisting of two nested, rounded cubes. The outer cube has a side length of 20mm and corner radii of 4mm. Construct the outer cube as a hollow shell with a wall thickness that allows an inner cube to rotate within it. The outer cube features circular holes and integrated axle ...
$fs = 1; $fs = .5; bsize = 20; blength= bsize; bheight = bsize; bgap = .6; br = 4.0; ar = 2; aw = bsize-6; at = 0.05+.08+0.05+0.05; h_depth = br; h_len = h_depth*2 + bgap; bw = bsize-2*br-1; bh = br*2; airgap=.20; tolerance = .42+.08; bSpace = 1; holeAngle = 90; support_w = 0.5; sr = ar+tolerance; c = 12*2+1; c...
glb/cad_ec30c6d5e0fb.glb
Create a Bucket Handle ergonomic grip. Start by creating a main cylindrical body with an outer diameter of 30mm and a total length of 95mm (85mm for the grip section plus 5mm rounded caps on each end). Along the length of the cylinder, carve out four semi-circular finger indents. Each indent should be based on a circ...
zOffset = 3; slotWidest = 5; slotWideR = 2; slotNarrowest = 2.9; knuckleWidth = 85; fingerD2 = 15.5; handleOD = 30; baseThickness = 5; detail = 150; fingerD = knuckleWidth/4; $fn = detail; err = 0.002; torusD1 = handleOD + fingerD2; torusD2 = handleOD + fingerD2 * (1 - 0.75); L = knuckleWidth+2*baseThickness...
glb/cad_f9f58712d16e.glb
Create a toroid ring with a circular cross-section. The ring should have an inner diameter of 18mm and a wall thickness of 3mm. The cross-sectional radius of the ring's tube is 4mm, which results in an overall outer diameter of 24mm. Ensure the geometry is smooth with high facet resolution.
Type = 1; Inner_Diameter = 18; Thickness = 3; Height = 8; ring(Type, Inner_Diameter, Thickness, Height); module ring(type, inner_diameter, thickness, height) { if(type == 0) { difference() { cylinder(h = height, r = (inner_diameter / 2) + thickness, center = true, $fn = 100); cylin...
glb/cad_1705182843ac.glb
Create a ledCubeMountGrid consisting of an 8x8 grid of identical LED bays. Each bay is centered on a 15mm step interval. To construct a single bay, start with a central block measuring 6.5mm by 4.6mm by 5.4mm. From this block, remove a central rectangular volume of 5.5mm by 3.6mm by 4.4mm, positioned 1.5mm up from th...
s=15; n=8; b=5.5; p=3.6; h=3.4; for (y = [1 : s : s*n]) { for (x = [1 : s : s*n]) { translate([x,y,0]) ledBay(b,p,h); } } module ledBay(b=5.5, p=3.6, h=3.4) { difference() { cube([b+1,p+1,h+2], center=true); translate([0,0,1.5]) cube([b,p,h+1], center =true); translate([0,0,.7]) c...
glb/cad_f5ddb7ffbff0.glb
Create a Gear Bearing Spinner with a total height of 9mm. The main body is a planetary gear system enclosed within a spinner-shaped outer frame. Construct a central sun gear and six surrounding planet gears. The gears must feature herringbone teeth (double-helical) with a 45-degree pressure angle and a 1-unit twist a...
$fn = 64; zero= 0.001; o = 0.4; dB = 22.0+o; hB = 9; n = 4; nut_size = "M8"; nut_height = 6.8; nutcatch_scale = 1; angle = 360/(n-1); dBt = dB+hB/2; dBo = dB+hB; nutcatch_offset = (hB - nut_height)/2; nutcatch_depth = nutcatch_offset + nut_height; include <spinner-modified.scad>; include <cyl_head_bolt.sca...
glb/cad_5d04a0567539.glb
Create a Gear Bearing Spinner by constructing a central hub and integrated buttons. Start with a hexagonal prism at the center with a width of 4mm and a total height of 9mm. On the top and bottom faces of this hexagon, add a thin circular lip with a height of 0.6mm and a radius of 3.5mm. Centered on the top and botto...
$fn = 64; thickness = 9; hole_width = 4.0; lip_height = 0.6; lip_size = 3.0; button_diameter = 16; button_height = 1; button_scale = 0.94; translate([0, 0, thickness/-4]) cylinder(r=hole_width/sqrt(3),h=thickness/2,center=true,$fn=6); linear_extrude(lip_height) circle(r=(hole_width + lip_size)/2, center=true); transla...
glb/cad_d63dced107d7.glb
Create a small toy ladder with a total length of 255mm, a width of 40mm, and a thickness of 2mm. Construct the two side rails as rectangular prisms, each 5mm wide and 255mm long, positioned at opposite edges of the 40mm width. Connect these rails with a series of horizontal rungs, each 5mm wide and 40mm long. Space the...
lw=40; ll=255; sw=5; gw=5; lt=2; xw=0.4; linear_extrude(height=lt){ square([sw,ll]); translate([lw-sw,0]) square([sw,ll]); for(sp = [sw:gw+sw:(ll-gw)]){ translate([0,sp]) square([lw,sw]); } } for(sp = [sw:gw+sw:(ll-gw)]){ difference(){ union(){ translate([0,sp+sw/2,lt])...
glb/cad_8673c9e75867.glb
Create a Computer Widget Wall Mount designed to hold a device measuring 50mm wide by 50mm high with a depth of 15mm. Start by constructing a central base plate that is 15mm thick. From this center, extend two symmetrical side arms outward along the width axis; each arm should be 3mm thick and 15mm deep, positioned so t...
itemwidth = 50; itemheight = 50; itemdepth = 15; difference() { union() { translate([0,0,1.5]) cube([(itemwidth+6),15,3], center=true); translate([0,0,1.5]) cube([15,(itemheight+3),3], center=true); } translate([0,(itemheight/3.5),1.5]) cylinder(h=3.1,r1=2.5,r2=4.5,center=true); translate...
glb/cad_e43aedfc9477.glb
Create a blank face Rubik's Cube puzzle mechanism. Start by constructing a central core consisting of three intersecting cylinders, each 55mm long with a 5mm radius, aligned along the X, Y, and Z axes. Add six additional cylinders with a 7.5mm radius and 5mm height, positioned 25mm from the center along each axis to se...
module centerBeams() { union(){ rotate(90, [0, 1, 0]) cylinder(h = 55, r1 = 5, r2 = 5, center = true); rotate(90, [1, 0, 0]) cylinder(h = 55, r1 = 5, r2 = 5, center = true); rotate(90, [0, 0, 1]) cylinder(h = 55, r1 = 5, r2 = 5, center = true); translate([ 0, 0, 25 ]) cylinder(h = 5, r1 = 7.5, r2 = 7.5, center...
glb/cad_8d5d3f1fbcc5.glb
Create a Parametric Bird model by combining several geometric primitives. Start with the main body, an ellipsoid created by scaling a sphere of radius 20mm by 1.25 along the X-axis. Position a smaller sphere of radius 15mm at coordinates (18, 0, 15) to serve as the head. For the beak, place a cone at (35, 0, 15) with a...
$fn=70; module birdy(){ scale([1.25,1,1])sphere(r=20,center=true); translate([28,9,20])sphere(r=3,center=true); translate([28,-9,20])sphere(r=3,center=true); translate([18,0,15]) sphere(r=15,center=true); translate([35,0,15])rotate([0,85,0])cylinder(r1=5,r2=.1,h=10,center=true); translate([-18,0,10])rotate([0,-60,...
glb/cad_b70c69c0f4d1.glb
Create a bearing valve consisting of two mirrored components: a top piece and a bottom piece. For the top piece, create a base cylinder with a radius of 6.8mm and a height of 5.575mm. Centered on top of this base, add a second cylinder with a height of 4mm and a radius of 6.8mm. Subtract a central vertical hole with ...
$fn = 64; pi = 3.14159265359; build_space=18; fit_tolerance=0.3; marble_size = 0.5*7.15; orifice_area = 28; rad_outer = 0.5*13.6; stroke = 4; rubber_ring = 2; rad_thickening = 0.5*16.5; wall = 2; ht = wall+marble_size+stroke; hb = wall+marble_size+stroke; rad_inner = sqrt(orifice_area/pi+marble_size*marble_size); r...
glb/cad_d1525b050114.glb
Create a webcam wall mount consisting of a rectangular base plate and a raised support structure. The base plate is 70mm wide, 51mm deep, and 1mm thick, with all edges rounded by a 0.5mm radius. Centered on the base, build a raised rectangular housing that is 44mm wide, 11mm deep, and 21mm high. Within this housing, ...
$fn=10; x_offset=-1.5; y_offset=20; z_offset=1; x_size=70; y_size=51; sphere_dia=0.5; module triangle(o_len, a_len, depth) { linear_extrude(height=depth) { polygon(points=[[0,0],[a_len,0],[0,o_len]], paths=[[0,1,2]]); } }; module cable_guide(h, dia){ difference(){ union(){ ...
glb/cad_608ade0d10da.glb
Create a hobby stick painting rack consisting of two identical perforated plates connected by four vertical legs. Each plate is a rectangular slab 0.75mm thick with rounded edges. The plates have a width of 107.2mm and a height of 34.2mm. In each plate, create a grid of 76 circular holes, arranged in 19 columns and 4 r...
hole_diameter = 4.3; hole_spacing = 2.5; hole_border = 7.5; holes_x = 19; holes_y = 4; plate_height = 0.75; structure_height = 138; plates_count = 1; leg_diameter = 5; plate_w = hole_border*2+(hole_diameter+hole_spacing)*(holes_x-1); plate_h = hole_border*2+(hole_diameter+hole_spacing)*(holes_y-1); translate([plate_w...
glb/cad_8b4ade9c33b0.glb
Create a cake decoration featuring two lines of extruded text. The first line should read "С днём рождения," and the second line should read "Любимая". Both lines must use a bold script font with a character size of 28mm and an extrusion thickness of 12mm. Center the first line of text horizontally. Position the seco...
$fn=64; line1Text = "С днём рождения,"; line2Text = "Любимая"; fontStyle = "Andantino script:style=bold"; thickness = 12; hull() { translate([-100, 30.8, thickness/4])rotate([90, 0, 0]) cylinder(r=thickness/4, h=2); translate([108.5, 30.8, thickness/4])rotate([90, 0, 0]) cylinder(r=thickness/4, h=2); } dif...
glb/cad_d6ad4e08d242.glb
Create a Wire Spool Holder Box consisting of a main housing, removable spools, rods, and dispensing doors. Construct the box as a rectangular shell with a wall thickness of 3mm. The interior should accommodate two rows of five spools each. The internal width is determined by the spool width (30mm) plus a 2mm spacer an...
part = "box"; spoolsPerRow=5; spoolRows = 2; outerDiameter=50; spoolWidth=30; wireHoleDiameter=2; spoolHoleTolerance=0.5; spoolFitTolerance=0.1; spacerTolerance=1; doorTolerance=0.8; doorHingeTolerance=0.2; doorCloserTolerance=0.2; doorCloserDiameter=1.6; boxThickness=3; spacerThickness=2; boxSpacer=1; ...
glb/cad_be2cfa325ec5.glb
Create a car holder for an iPhone 5/5s/SE with a protective cover. The main body is a rounded rectangular shell with an outer height of 134.8mm, outer width of 73.6mm, and outer depth of 67.6mm, with a wall thickness of 3mm. The interior is hollowed out to accommodate a phone with dimensions of 123.8mm height, 58.6mm d...
module rounded_cube (w, d, h, r, centered = false) { tr_x = centered ? -w/2 : 0; tr_y = centered ? -d/2 : 0; tr_z = centered ? -h/2 : 0; translate ([tr_x,tr_y,tr_z]) hull () { $fn=40; translate ([0,r,r]) rotate ([0,90,0]) cylinder (w,r,r); translate ([0,d-r,r]) rotate ([0,90,0])...
glb/cad_198ca659f676.glb
Create a Mounting Bracket for extruder plugs. Start with a main rectangular base measuring 72mm in length, 30mm in width, and 3mm in height, ensuring all corners are rounded with a 1.5mm radius. On the top surface of this base, create three circular holes, each with a diameter of 16.5mm and a depth of 3mm. Position t...
$fn=80; difference(){ union(){ box(72,30,3,1.5,3); translate([-1.5,27-1.5,-20])cube([72,3,20]); translate([-1.5,24-1.5,-5])cube([72,3,5]); translate([-1.5,22-1.5,-3])cube([72,2,3]); } translate([14-1.5,11-1.5,0])cylinder(d=16.5,h=3); translate([36-1.5,11-1.5,0])cylinder(d=16.5,h=3)...
glb/cad_f2f3b2facf87.glb
Create a Mounting Clip for Extruder Plugs by starting with a base rectangular plate measuring 72mm in width, 37mm in depth, and 3mm in height, with rounded corners of 1.5mm radius. Along the center line of the depth, add a thin rectangular ridge that is 72mm long, 2mm wide, and 3mm high. Cut three circular holes thro...
$fn=80; difference(){ union(){ box(72,37,3,1.5,3); translate([-1.5,23-1.5,-3])cube([72,2,3]); translate([-7,11-1.5,0])cylinder(d=16.5,h=3); } translate([14-1.5,11-1.5,0])cylinder(d=16.5,h=3); translate([36-1.5,11-1.5,0])cylinder(d=16.5,h=3); translate([58-1.5,11-1.5,0])cylinder(d=1...
glb/cad_94921b78ad87.glb
Create a ball bearing fidget toy consisting of an outer ring, an inner disc, and a series of spheres. Start by creating an outer ring with an outer radius of 26.3mm and a height of 10mm. This ring should have a circular cutout removed from its center with a radius of 17.3mm, and a circular groove carved into the inner ...
echo ("Copyright 2017 Nevit Dilmen"); radius= 16.3; perimeter = radius*6.283; ball =5; for(i = [0 : 36 : 360]) { translate ([sin (i)*radius,cos (i)*radius,0]) sphere (ball); } difference (){ linear_extrude(ball*2, center=true) circle (radius); rotate_extrude () translate ([radius,0,0]) circle (ball+0.4); } differe...
glb/cad_02a706a3dbe7.glb
Create a ball bearing fidget toy consisting of a central ring and a series of spheres. Start by creating a large outer ring with an outer diameter of 76mm and a thickness of 18mm. Cut a circular hole through the center of this ring with a diameter of 38mm. Within this central void, carve a circular groove with a diamet...
echo ("Copyright 2017 Nevit Dilmen"); radius= 19; perimeter = radius*6.283; ball =9; for(i = [0 : 60 : 360]) { translate ([sin (i)*radius,cos (i)*radius,0]) sphere (ball); } difference (){ linear_extrude(ball*2, center=true) circle (radius); rotate_extrude () translate ([radius,0,0]) circle (ball+1); } difference ...
glb/cad_e07737f4e144.glb
Create a LEGO quadcopter cage consisting of a central base plate and four radiating arms. Start by creating a 2x2 LEGO compatible plate with a thickness of 1/3mm, ensuring it has a circular hole in the center and a solid bottom. From this central plate, extend four identical arms spaced 90 degrees apart, each rotated 4...
include </home/anoved/.local/share/OpenSCAD/libraries/MCAD/lego_compatibility.scad>; module arm_clip_half() { linear_extrude(height=3, center=true) polygon(points=[[0, 0], [2.5, 0], [2.5, 6], [1, 4], [1.5, 4], [1.5, 1], [0, 1]]); } module arm_clip() { rotate([-90, 0, 0]) union() { arm_clip_half(); mirror([1, 0...
glb/cad_44ca226bc50b.glb
Create a fan guard for a 40mm fan. The main body is a circular rim with an outer diameter of 52.3mm and a total height of 10mm. The walls of the guard are 0.9mm thick. At the center of the guard, create a hemispherical dome with a diameter of 16mm and a height of 12mm. From this central dome, extend four radial bars t...
dFan = 40; hGuard = 10; dGuard = 52.3; dCone = 16; hCone = 12; coneType= 0; hRim = 5; t = 0.9; hBars = 0.57*hGuard; dScrew = (dFan <= 40 ? 3 : 4 ) + 0.2; dBolt = (dFan <= 40 ? 5.5: 7.0) + 0.7; fixture = dFan == 20 ? 16.2 : dFan == 30 ? 24 : dFan == 35 ? 29 : ...
glb/cad_2d63ef0dcf15.glb
Create a peeling knife handle by starting with a cylinder 95mm long with a diameter of 21mm. Cap one end of the cylinder with a hemispherical dome that has a radius of 10.5mm, though the dome is scaled along its length to blend smoothly into the cylinder. Flatten the top and bottom of the entire length of the handle by...
bladeW = 7.0 + 0.3; bladeBottomW = 3.0; bladeTh = 1.1; bladeH = 6.0 + 0.3; bladeL = 20; handleD = 18; handleL = 95; handleBladeOverlap = 4; module bladeOpening() { linear_extrude(height=bladeL+handleBladeOverlap, center=false) polygon( [ [-bladeW/2, 0], [-bladeBottomW/2,-bladeH], [bladeBottomW/2,...
glb/cad_306293dcaa38.glb
Create a Givi spacer bushing consisting of two concentric, coaxial cylinders with a shared central hole. First, create a lower cylinder with an outer diameter of 14.08mm and a height of 18.7mm. Position a second, taller cylinder with an outer diameter of 9.9mm and a height of 25.2mm so that it is centered on the same a...
$fn=100; height01=18.7; height02=25.2; diameter01=9.9; diameter02=14.08; inside_diameter=6.2; difference() { union() { translate([0,0,0]) cylinder(h=height01,r=diameter02/2,center=true); translate([0,0,(height02-height01)/2]) cylinder(h=height02,r=diameter01/2,center=true); } #transla...
glb/cad_f81535121405.glb
Create a wall mount for a WRT54G router. Start by constructing a U-shaped bracket with a total height of 30mm. The base back wall should be a rectangular plate 185mm wide, 2mm thick, and 30mm high. Attach two side walls to the ends of this back plate; each side wall must be 2mm thick, 49mm deep, and 30mm high. Extend...
wall = 2; inside_x = 181; inside_y = 45; gripper_x = 10; bump_x = 10; bump_y = 12; bump_pos_x = 30; z = 30; difference(){ translate([0,inside_y+wall,0]) cube([2*wall+inside_x,wall,z]); translate([20,inside_y+wall-.1,z/4*3]) rotate([-90,0,0]) cylinder(r=1.5,h=2*wall+.2); translate([inside_x-20,inside_y+wall-.1,z/4*3...
glb/cad_dba68485f89c.glb
Create a phone charging cradle consisting of a main holder body and a backplate. The main holder body is a pocket with outer dimensions of 76mm width, 22mm depth, and 74mm height. The interior is hollowed out to 72mm width, 18mm depth, and 70mm height, leaving a wall thickness of 2mm. The corners of both the outer an...
corner_radius = 2; back_height = 110; back_thickness = 4; screw_inner = 2.2; screw_outer = 4.7; screw_depth = 3; hook_width = 10; overlap = 0.1; thickness = 2; front_slit_width = 15; inner_dimensions = [ 72, 18, 70]; outer_dimensions = inner_dimensions + [ 2*thickness, thickness + back_thickness, 0]; width = o...
glb/cad_72f7dfde0f81.glb
Create a WD TV Live Hub bracket consisting of a mounting clip and a securing pin. First, construct the clip plate by combining a rounded rectangular base and two legs. The base plate should be 28mm wide, 19mm deep, and 3mm thick. Attach two legs to the base, each 16mm high and 3mm thick, positioned at the edges of the ...
$Monitor_Thickness=19; use <boxes.scad>; $Base_Thickness=3; $PinHeadDiameter=7; $PinHeadThickness=2; $PinShaftDiameter=4; $PinShaftLength=3; $Clip_Height=16; $Clip_Depth=$Monitor_Thickness; $Clip_Thickness=$Base_Thickness; $Clip_Width=28; $Clip_Arm_Length=25; $UseRounded=true; $fn=60; module rounded_rec_clip(Hei...
glb/cad_b7894155f751.glb
Create a jar funnel consisting of a cylindrical base and a conical top. Start by creating a hollow cylindrical spout with an outer diameter of 75.5mm and an inner diameter of 70.5mm, giving it a wall thickness of 2.5mm and a height of 20mm. Centered on top of this spout, add a hollow conical section that transitions fr...
$fa=2; $fs=0.2; wall_thickness = 2.5; spout_height= 20; spout_dia = 70.5; funnel_height = 30; funnel_dia = 110; union() { difference(){ cylinder(h=spout_height, r=(spout_dia/2)+wall_thickness, center=true); cylinder(h=spout_height+2, r=(spout_dia/2), center=true); } translate([0,0,(funnel_height+spout_...
glb/cad_effcf40d50ed.glb
Create a saucer by starting with a sphere of 50mm radius, scaled down to 30% of its height along the Z-axis to create a flattened spheroid. From this shape, remove a central volume consisting of a second 50mm radius sphere scaled to 30% height, shifted 3mm upward along the Z-axis, and further trimmed by a 100mm cube ce...
use <decorated_sphere_1.scad> use <decorated_sphere_2.scad> union() { difference() { scale([1,1,.3]) sphere(r=50,center=true,$fn=96); translate([0,0,3]) scale([1,1,.3]) difference() { s1_sphere(50); translate([0,0,-90]) cube([100,100,100],center=true); } translate([0,0,50]) cube([100,100,100],cen...
glb/cad_715f7ede1d74.glb
Create a set of teacups and matching saucers based on a decorated sphere with a radius of 40mm. For each unit, start with a sphere of 40mm radius and a facet resolution of 48. To create the decorations, carve incised lines into the sphere using slabs with a thickness of 1mm. Create a series of vertical slabs by rotat...
plane_angle = 90.00; v_planes_start = 0; v_planes_step = 10; v_planes_end = 170; c_planes_start = -40; c_planes_step = 10; c_planes_end = 40; plane_width = 1; s2_sphere(40); module s2_sphere(cup_radius) { plane_thickness = 1; line_depth = plane_thickness; union() { sphere(r=cup_radius - line_depth,ce...
glb/cad_3fccaf72d687.glb
Create a monitor-top box for a wireless transceiver. Start by constructing a hollow rectangular base with outer dimensions of 33mm depth, 89mm width, and 43mm height, using a wall thickness of 3mm. On the bottom face of this base, add four circular pads with a diameter of 15mm and a thickness of 0.7mm, positioned at ...
$Planar_Monitor_Thickness=28; $Base_Depth=27; $Base_Width=83; $Base_Height=40; $Base_Thickness=3; $Clip_Height=13; $Clip_Depth=$Planar_Monitor_Thickness; $Clip_Thickness=$Base_Thickness; $Clip_Width=28; $Pad_Diameter=15; $Pad_Thickness=0.7; $UsePads=true; $Cable_Diameter=4; $Cable_Height=12; $fn=60; module rounde...
glb/cad_41fdaf90b94d.glb
Create a Travel Chair Back Support consisting of a flat rectangular base with a semi-cylindrical housing on top. The base should be 1.5mm thick, with an overall width of 25.5mm and a length of 66.5mm. On top of this base, center a semi-cylindrical shell with an outer radius of 11.25mm and a length of 60.5mm. This she...
shaftDiameter = 17.5; insertionLength = 58; screwDistance = 49; screwDiameter = 4; baseThickness = 1.5; thickness = 2.5; borderWidth = 7; sewHolesSide = 8; sewHolesTop = 4; sewHoleDiameter = 2; $fn=20; bodyRadius = shaftDiameter/2 + thickness; bodyLength = insertionLength + thickness; overallWidth = 2*(bodyRadius + ...
glb/cad_40bdd8e7f748.glb
Create a 608 Bearing Pillow Block Housing. Start with a square base measuring 43.18mm by 43.18mm with a thickness of 3mm. Centered on this base, add a cylinder with a radius of 15mm and a height of 10mm. Create a central vertical hole through the entire assembly with a radius of 10.98mm and a height of 7.14mm to acco...
$fn=192; FUDGE_INSIDE_RADIUS=0.02; FUDGE_INSIDE_HEIGHT=0.04; difference() { union() { translate([-inches2mm(.85),-inches2mm(.85),0]) cube([inches2mm(1.7),inches2mm(1.7),3]); cylinder(h=10,r=15); } translate([0,0,-.1]) cylinder(h=7.1+FUDGE_INSIDE_HEIGHT,r=11-FUDGE_INSIDE_RADIUS); translate([0,0,-0.5]) ...
glb/cad_06c54e2ba533.glb
Create a 608 Bearing Pillow Block Housing by starting with a square base block measuring 43.18mm by 43.18mm with a height of 10mm. Center a large vertical hole through the block with a radius of 10.98mm and a height of 10.04mm to accommodate the bearing. Within this central void, create a smaller concentric cylindrical...
$fn=192; FUDGE_INSIDE_RADIUS=0.02; FUDGE_INSIDE_HEIGHT=0.04; difference() { union() { translate([-inches2mm(.85),-inches2mm(.85),0]) cube([inches2mm(1.7),inches2mm(1.7),10]); } translate([0,0,-.1]) cylinder(h=7.1+FUDGE_INSIDE_HEIGHT,r=11-FUDGE_INSIDE_RADIUS); translate([0,0,-0.5]) cylinder(h=18,r=8); ...
glb/cad_04372fce4872.glb
Create a snap-fit assembly consisting of a male plug and a female socket. First, create the male plug as a solid cylinder with a radius of 5mm and a height of 20mm. On top of this cylinder, add a snap-fit head. This head is a hollowed cylinder with an outer radius of 4mm and a total height of approximately 7.35mm. Th...
cyl_r = 5; cyl_h = 20; snap_y = 0.5; snap_h = 1; snap_b = 6; snap_p = 0.5; snap_a = 45; snap_border = 1; fillet_r = 1; overhang_max = 22.5; fit_p = snap_p; fit_y = snap_y; fit_snuggle = 0.2; $fn=50; union() { cylinder(r=cyl_r, h=cyl_h); translate([0, 0, cyl_h]) snap(); } fit_height = snap_b+snap_p+snap...
glb/cad_8c6a430ac4e9.glb
Create a business card holder with overall dimensions of 100mm width, 50mm depth, and 25mm height. The main body is a rectangular block with rounded corners of 5mm radius. Carve out a central slot to hold cards, measuring 91mm wide, 13mm deep, and 22mm high. This slot should be positioned 3mm from the front edge and ...
tone_one = "tone_one.dat"; z_height_one = 0.6; tone_two = "tone_two.dat"; z_height_two = 1.2; holder_x = 100; holder_y = 50; holder_z = 25; card_x = 91; card_y = 13; card_z = 22; corner_radius = 5; box_x = holder_x - (corner_radius * 2); box_y = holder_y - (corner_radius * 2); face_z = z_height_one + z_height_two; ...
glb/cad_9fe0d012f643.glb
Create a business card holder with a base footprint of 100mm x 50mm and a total height of 25mm. The main body is a rounded rectangular block with corner radii of 5mm. The top face of the holder is a thin slab with a thickness of 0.6mm. Carve a slot into the top of the holder to accommodate business cards; this slot mu...
logo = "logo.dat"; z_height = 0.6; holder_x = 100; holder_y = 50; holder_z = 25; card_x = 91; card_y = 13; card_z = 22; corner_radius = 5; box_x = holder_x - (corner_radius * 2); box_y = holder_y - (corner_radius * 2); face_z = z_height; offset_x = (holder_x / 2) - corner_radius; offset_y = (holder_y / 2) - corner_ra...
glb/cad_22a22e80cc90.glb
Create an 8mm ID spacer by constructing a hollow cylinder. Start with a solid outer cylinder that has a radius of 7.5mm and a height of 12.7mm. Centered within this volume, remove a smaller concentric cylinder to create a hole with a radius of 4.05mm and a height of 18mm, ensuring the hole passes completely through the...
$fn=192; difference() { union() { cylinder(h=inches2mm(0.5),r=7.5); echo (inches2mm(0.5)); echo (inches2mm(3/8)+3.1); } translate([0,0,-0.5]) cylinder(h=18,r=4.05); } function inches2mm(inches) = inches * 25.4;
glb/cad_e71862dd58c7.glb
Create a 1:10 scale model of a beer crate. Start with a solid rectangular base measuring 37mm in width, 31.5mm in depth, and 29mm in height. From the bottom of this base, remove a grid of 12 square holes (4 columns by 3 rows). Each hole should be 3mm by 3mm, spaced 0.5mm apart. On the sides of the crate, create rect...
hole_dia=7; hole_height=28; crate4(); module crate4() { difference(){ stackable4(); holes_bottom(); } } module crate2(){ difference(){ stackable(); translate ([-(hole_dia * 5 + 0.5 * 4)/2 , -(hole_dia * 4 + 0.5 * 3)/2,0]) cube ([(hole_dia * 5 + 0.5 * 4) , (hole_dia * 4 + 0.5 * 3),2]); } holes_bottom2(); } module c...
glb/cad_cdd37dc6aa41.glb
Create a 1:10 scale model of a beer bottle. Start with a base consisting of a cylinder with a radius of 3.25mm and a height of 1.5mm, topped with a hemispherical dome of the same radius. Above this, add a main body section that is 10mm tall, formed by a cylinder with a radius of 3.25mm. This body should be hollowed out...
dia = 6.5; h_ettiquette = 10; h_bottom = 1.5; h_top=12; dia_neck = 3; h_neck = 2.5; translate([x* 7.5 ,y*7.5,0]) difference(){ bottle(); bottle_inside(); } module bottle_inside() { translate([0,0,h_bottom+h_ettiquette]) top_inside(); translate([0,0,h_bottom+h_ettiquette+h_top - 1]) neck_inside(); translate([0,0,h_...
glb/cad_a62612df6ff6.glb
Create a turntable foot replacement consisting of two separate components. First, construct a base piece by creating a cylinder 18mm in diameter and 4mm high. Remove a central cylindrical core starting 2mm from the bottom with a diameter of 13.5mm, leaving a 2mm thick floor. On top of this base, add a second concentric...
footr = 36/2; feltr = footr-2; springr = 27/2; springir = springr-2; hoser = 15.5/2; hoseir = hoser-3; ttcavr = 8/2; difference () { union () { difference () { cylinder (4,footr,footr,$fn=100); translate ([0,0,2]) { cylinder (2.01,springr,springr,$fn=100); }; }; difference () { cylinder (4,sprin...
glb/cad_07b9c21318eb.glb
Create a FabScan laser holder by starting with a solid vertical cylinder 35mm tall with a radius of 10mm. Remove a horizontal cylindrical void from the center of the main body to create a hole for the laser module; this void should have a radius of 6mm and a length of 30mm, positioned 20mm from the base. To allow for m...
dxf="LaserMount.dxf"; pl="pegs"; ph=10.0; m3=1.5; ld=12.0; module drillHoles(startOfDrillHole,maxWidth) { translate ([0,15,30]) rotate ([90,0,0]) cylinder(h=30, r=m3, center=false, $fn=10); translate ([0,15,-10]) rotate ([0,0,0]) cylinder(h=30, r=m3, center=false, $fn=10); translate ([0,-15,-10]) rotat...
glb/cad_391bf8e9459d.glb
Create a customizable door stop pinch guard. Start by creating a main rectangular block that fits into a door bolt hole, with dimensions of 26.75mm in height, 14.5mm in width, and 21mm in depth. Apply a corner radius of 2.75mm to the vertical edges of this block. Attached to this block, create a protruding tongue that...
bolt_hole_height = 26.75; bolt_hole_width = 14.5; bolt_hole_depth = 21; bolt_hole_corner_radius = 2.75; tongue_length = 34; tongue_thickness = 8; handle_inset = 2.25; handle_length = 15; handle_hole = true; h = bolt_hole_height; w = bolt_hole_width; d = bolt_hole_depth; rad = bolt_hole_corner_radius; l = ton...
glb/cad_daa0cc87978e.glb
Create a Tractrix Horn acoustic transformer. The model consists of a hollowed-out flared shape with a cylindrical inlet pipe. First, generate the main horn body as a solid of revolution based on a tractrix curve. The horn's mouth has a radius of 75.5mm (derived from a 4500Hz cutoff frequency) and is cropped to 80% of ...
flip = true; $fa = 5; $fs = 0.2; fc = 4500; c_sound = 340; lambda_c = c_sound/fc; rm = lambda_c*1000; r0 = 10; n = 32; dr = (rm-r0)/n; function helper(rm,r) = sqrt(pow(rm,2)-pow(r,2)); function axial(rm,r) = rm*ln((rm+helper(rm,r))/r)-helper(rm,r); crop_factor = 0.80; nstart = round(n*(1-crop_factor)); echo...
glb/cad_34b1fa373492.glb
Create a ball bearing model consisting of six spheres and two concentric retaining rings. Start by placing six spheres, each with a radius of 9mm, arranged in a circle. The center of each sphere should be positioned at a distance of approximately 19.49mm from the origin, spaced evenly every 60 degrees. Surround these s...
echo ("Copyright 2017 Nevit Dilmen"); echo("optimized by webours"); ball = 9; balls = 6; oth = 2; radius= ((2*ball+1)/2)/sin((360/balls)/2); radius_int = radius - ball - 1; radius_ext = radius + ball + 1 + oth; for(i = [0 : 360/balls : 360]) { translate ([cos(i)*radius,sin(i)*radius,0]) sphere (ball); } differen...
glb/cad_16cadca208bd.glb
Create a ball bearing model consisting of six spheres and a surrounding outer ring. Start by placing six spheres, each with a radius of 9mm, arranged in a circle. The center of each sphere should be positioned at a distance of approximately 19.49mm from the origin, spaced evenly every 60 degrees. Enclose these spheres ...
echo ("Copyright 2017 Nevit Dilmen"); echo("optimized by webours"); ball = 9; balls = 6; oth = 2; radius= ((2*ball+1)/2)/sin((360/balls)/2); radius_int = radius - ball - 1; radius_ext = radius + ball + 1 + oth; for(i = [0 : 360/balls : 360]) { translate ([cos(i)*radius,sin(i)*radius,0]) sphere (ball); } differen...
glb/cad_3bf92d33cab4.glb
Create a webcam enclosure consisting of a main body and a separate cap. The main body is a rectangular box with rounded corners, measuring 74mm in width, 14mm in height, and 9mm in depth. The walls are 2mm thick, creating an internal cavity of 70mm by 10mm by 7mm. On the front face, center a circular camera hole with ...
render_mode = 1; wall_thickness = 2; pcb_width = 70; pcb_height = 10; pcb_thickness = 7; enclosure_finish = 1; cam_hole_offset_left = pcb_width / 2; cam_hole_offset_top = pcb_height / 2 + wall_thickness; cam_hole_diameter = 4; cam_hole_finish = 0.8; cable_hole_side = 0; cable_hole_diameter = 3; mount1_diame...
glb/cad_c51364239c28.glb
Create a triangular wall holder by constructing a right-angled triangle with a thickness of 2.5mm. The two legs forming the right angle should each measure 70mm in length. Position a circular hole with a diameter of 4.5mm through the center of the triangle, specifically centered at the coordinates (20mm, 20mm) relative...
weite = 70.0; hoehe = 2.5; loch_d = 4.5; kerbe = 6; module holder(){ difference() { union() { color("orange") rotate([0,0,0]) translate([0, 0, 0]) dreieck(); } translate([20,20,-2]) cylinder(10, r=loch_d/2, $fn = 35); } } module dreieck(){ linear_extrude(height = hoehe, center = ...
glb/cad_a04f32e33b9e.glb
Create a triangular wall holder with a thickness of 2.5mm. The base shape is a right-angled triangle with two sides each measuring 70mm in length, meeting at a 90-degree angle. Centered within this triangle, create a countersunk hole. The hole begins with a narrow cylindrical opening of 4.5mm in diameter that expands o...
weite = 70.0; hoehe = 2.5; loch_d = 4.5; kerbe = 6; module holder(){ difference() { union() { color("orange") rotate([0,0,0]) translate([0, 0, 0]) dreieck(); } translate([20,20,-2]) cylinder(10, r=loch_d/2, $fn = 35); translate([20,20,hoehe/2]) cylinder(10, r1=loch_d/2, r2=loch_d*...
glb/cad_e2ad9589e4ae.glb
Create a strip of washers consisting of ten ring-shaped discs arranged in two parallel columns of five. Each washer has an outer diameter of 12mm and a center hole with a diameter of 7mm. The washers are organized in five rows, with each row containing two washers mirrored across a central axis. The thickness of the ...
OuterDiameter = 12; InnerDiameter = 7; ThicknessStart = 5; ThicknessIncrement = 1; WasherRows = 5; outer = OuterDiameter/2; inner = InnerDiameter/2; strip_height = 0.6; strip_width = 2; strip_overlap = 0.5; $fn = 40; module washer (height) { difference() { cylinder(height,outer,outer); transla...
glb/cad_14d3e8ae17e4.glb
Create a Rundhalter Beilagscheibe mit Keil, which is a thin circular disc with a central hole. Start by creating a cylinder with a diameter of 20mm and a height of 2.5mm. Use a facet resolution of 35 sides for all circular elements. Remove a central cylindrical hole with a diameter of 4.5mm that passes completely throu...
weite = 70.0; hoehe = 2.5; loch_d = 4.5; scheibe_d = 20.0; scheibenholder(); module holder(){ difference() { union() { color("orange") rotate([0,0,0]) translate([0, 0, 0]) dreieck(); } translate([20,20,-2]) cylinder(10, r=loch_d/2, $fn = 35); } } module scheibenholder(){ diff...
glb/cad_969b05b9098d.glb
Create a Closed Bearing Block housing as a solid cube with dimensions 76mm in length, 76mm in width, and 75mm in height. First, remove a central cylindrical hole with a diameter of 32mm that passes completely through the height of the block. Next, create six bearing voids to accommodate bearings and their shafts. E...
screw=4; blockL=76; blockW=76; blockH=75; rail_hole=32; bearingD=22; bearingW=7; bearingS=8; module MainHousing() { difference(){ translate([38,-38,-6]) rotate([0,-90,0]) scale([blockH,blockL,blockW]) cube(1); translate([0,0,-6]) cylinder(d=rail_hole,h=blockH+1, $fn=200); translate([10,0,20]) rotate([-90,0,30]) ...
glb/cad_b27d0972e5b6.glb
Create a clamp for an espresso filter. Start by creating a main cylindrical bowl with a radius of 35mm and a height of 18mm. From the center of this bowl, remove a tiered internal cavity consisting of four stacked cylinders: a bottom disc with a radius of 31mm and height of 1.1mm, a middle cylinder with a radius of 27....
$fn=60; module filterindsats() { union() { cylinder(h=1.1, r=31); cylinder(h=7.1, r=27.5); translate([0,0,7]) cylinder(h=8.1,r1=27.5,r2=22.5); translate([0,0,15]) cylinder(h=5,r=19.5); } } module bowl001() { difference() { cylinder(h=18, r=35); translate([0,0,-0.1]) filterindsats(); } } module hol...
glb/cad_e26d5b7f98cf.glb
Create a Titan Gantry mount by starting with a main body composed of a rectangular block and a cylindrical section. Form the primary structure by combining a block measuring 12.5mm by 30.4mm by 15.5mm, positioned at [5, 6.93, 83.1], with a cylinder of 22mm diameter and 33.49mm height centered at [17.5, 17.93, 65.11]. ...
$fn = 64; rotate([0, 90, 0]) { translate([0, 0, 0]) { difference () { union () { translate([5.001, 6.93, 83.1]) cube(size = [7.998 + 4.5, 30.4, 15.5001]); translate([17.5, 17.93, 65.11]) ...
glb/cad_36fc409d0eab.glb
Create a Titan Gantry mount. Start with a central rectangular block measuring 18.41mm in length, 6mm in width, and 6mm in height, centered on the X and Y axes. At each end of this block, add a vertical cylinder with a diameter of 6mm and a height of 11mm, centered at X positions 2.7mm and 21.11mm. From this combined s...
$fn = 64; offsetDIS = 0; offsetY = 2.25; translate([0, 0, 11]) difference() { union() { translate([12.205, 2.7, -8]) cube(size = [18.41, 6, 6], center = true); translate([2.70, 2.7 + offsetDIS, -5.5 + (offsetY / 2)]) cylinder(d = 6, h = 11 + offsetY...
glb/cad_0326e0ea48ed.glb
Create a Dremel bit storage tray as a rectangular block with rounded corners. The block should have a total height of 15mm, a width of 180mm (15 holes spaced 12mm apart), and a depth of 120mm (10 holes spaced 12mm apart). The four corners must be rounded with a radius of 5mm. Across the top surface, create a grid of ...
total_x_holes = 15; total_y_holes = 10; height = 15; spacing = 12; hole_padding = 0.20; corner_r = 5; inch=25.4; difference() { hull() { $fn = 60; translate([corner_r, corner_r, 0]) cylinder(r=corner_r,h=height); translate([total_x_holes * spacing - corner_r, corner_r, 0]) cylinder(r=corner_r,h=hei...
glb/cad_4e7b29565ad4.glb
Create a magnet assembly for a bicycle light consisting of a central ring and two symmetrical arms. Start by creating a main cylinder with a radius of 80mm and a height of 7mm. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a radius of 65mm. To form the arms, remove two large rec...
$fn=20; module base1(hh1) { render(convexity=3) difference() { cylinder(h=hh1,r=80,$fn=100); translate([0,0,-0.01]) cylinder(h=hh1+0.02,r=65,$fn=100); rotate([0,0,30]) translate([-100,0,-0.01]) cube([200,100,hh1+0.02]); rotate([0,0,-30]) translate([-100,0,-0.01]) scale([1,-1,1]) cube([200,100,hh1+0.02]); } ...
glb/cad_f9b8b7765b23.glb
Create a motor mount for an RC aircraft consisting of three distinct components. First, construct a curved mount section by combining a cylinder with a radius of 18mm and a 20mm wide by 36mm deep rectangular block, both 20mm high. Hollow out the center of this shape using a smaller cylinder with a 16.5mm radius and a 2...
$fa=5; $fs=0.1; mountheight = 20; module drillholes() { union() for(ii1=[[8,15,0],[8,-15,0],[-8,15,0],[-8,-15,0]]) { translate(ii1) translate([0,0,-0.01]) cylinder(h=mountheight+0.02,r=0.75); } } module arc1() { render(convexity=3) difference() { union() { difference() { union() { tran...
glb/cad_4561fb6f4eb6.glb
Create a parametric chair consisting of a seat and a backrest. First, construct the seat as a table. Create a rectangular top with a length of 20mm, a width of 25mm, and a thickness of 3.5mm. Attach four square legs to the corners of the underside; each leg must have a cross-section of 3mm by 3mm and a length of 20mm...
length = 20; width =25; depth = 3.5;; cross =3; leg_length =20; echo(" length table is ", length, " mm"); echo(" width table is ", width, " mm"); echo(" depth table top is ", depth, " mm"); echo(" width table leg is ", cross, " mm"); echo(" height table leg is ", leg_length, " mm"); echo(" overall height table ...
glb/cad_c0b63417109c.glb
Create a parametric table consisting of a rectangular top and four square legs. The tabletop should be 40mm long, 20mm wide, and 5mm thick. Position four legs at the corners of the tabletop. Each leg must have a square cross-section of 3mm by 3mm and a height of 12mm, extending downwards from the bottom surface of th...
length = 40; width =20; depth = 5; cross =3; leg_length =12; echo(" length table is ", length, " mm"); echo(" width table is ", width, " mm"); echo(" depth table top is ", depth, " mm"); echo(" width table leg is ", cross, " mm"); echo(" height table leg is ", leg_length, " mm"); echo(" overall height table is ...
glb/cad_e0e15b9321b7.glb
Create a Cat Fidget Spinner. Start by creating a central cylindrical hub with a diameter of 22mm and a height of 7mm. Remove a cylindrical hole from the center of this hub with a diameter of 22mm and a height of 7mm to accommodate a 608 bearing. Extend three arms from the central hub, spaced equally at 120-degree inte...
cats = 3; whichWeight = "3/8 hex nut"; whichCenterBearing = "608 bearing"; otherBearingOutsideDiameter = 22; otherBearingHeight = 7; catSize = 21; rotateCat = "no"; bearingGlueGroove = 0; weightsGlueGroove = 0; $fn = 60; x = 0; y = 1; z = 2; id = 3; thick = 3; bearing608 = [22, 22, 7, 8]; sae = [.577*25.4, .5 ...
glb/cad_77199c802522.glb
Create a 3D star polygon with seven points. The shape is constructed from seven identical linear segments, each 10mm long, 0.2mm thick, and 1mm high. These segments are arranged in a rotational pattern around a central axis to form a heptagram. Each segment is a thin rectangular prism that intersects with two others a...
length=10; thickness=.2; height=1; p=7; angle=abs(180/p); echo("angle = ",angle); circle_radius=length/(2*sin(2*angle));echo("circle_radius = ",circle_radius); sagitta=circle_radius-sqrt(circle_radius*circle_radius-.25*length*length);echo("sagitta = ",sagitta); side_length=2*sagitta*sin(angle/2)/cos(angle/2); echo(...
glb/cad_5d75af871c7c.glb
Create a door handle by starting with a curved slab that is 15mm thick. This main body is formed by the intersection of a cylinder with a 100mm radius and a rectangular block measuring 200mm by 50mm, centered such that the block's edge is 75mm from the cylinder's center. From this shape, remove a smaller concentric inn...
difference () { difference () { translate([0,-75,0]) difference() { intersection() { cylinder(h=15, r = 100, $fn=300); translate([-100,75,0]) cube ([200,50,15]); } intersection() { cylinder(h=15, r = 95, $fn=300); translate([-40,0,0]) cube ([80,100,15]); } } translate([4...
glb/cad_3f6f0c6559de.glb
Create a carriage for 2020 aluminum extrusions and 24mm wheels. Start with a rounded rectangular body 49mm wide, 44mm deep, and 10mm thick. On the bottom face, create three holes for M5 bolts to support the wheel axles: two positioned at the front corners and one at the center of the rear edge. The rear hole must be ...
$fn = 36; smidge = 0.1; mmPerInch = 25.4; extrusionWidth = 20.0; m3Radius = (3.0 + 0.2) / 2; m3LooseRadius = m3Radius + 0.1; m3HeadHeight = 3.0; m3LooseHeadRadius = (5.4 + 1.1) / 2; m3NutRadius = (6.25 + 0.75) / 2; m3NutHeight = 4.0; m5...
glb/cad_c10fa951736b.glb
Create a Mini V-Wheel Carriage for 2020 aluminum extrusions. Start with a main body that is a rounded-corner rectangle measuring 31.5mm in width (x), 37mm in depth (y), and 10mm in height (z). Hollow out the center with a smaller rounded-corner rectangular opening measuring 21.5mm by 23mm. Add two ball stud mounts on ...
$fn = 36; smidge = 0.1; mmPerInch = 25.4; extrusionWidth = 20.0; m3Radius = (3.0 + 0.2) / 2; m3LooseRadius = m3Radius + 0.1; m3HeadHeight = 3.0; m3LooseHeadRadius = (5.4 + 1.1) / 2; m3NutRadius = (6.25 + 0.75) / 2; m3NutHeight = 4.0; m3...
glb/cad_06027ad5a198.glb
Create three 0.96" OLED module models: a CRIUS version, an I2C/SPI 7-pin version, and an I2C 4-pin version. For each module, start with a thin rectangular PCB base with rounded corners. On the top surface of the PCB, center a slightly smaller rectangular OLED glass area. On the bottom surface of the PCB, add a small ...
use <MCAD/boxes.scad>; include <096OledDim.scad>; $fn = 36; module OLEDDTxt(txt="XXX", txts=3.0) { translate([0, txts+0.5, 0]) color("White") linear_extrude(height=0.1, center=true, convexity=10) text(txt, size=txts, font="Arial:style=Bold", halign="center", valign="top"); } module OLEDDPlace(...
glb/cad_473d08af9370.glb
Create a hot shoe mount with a 5/8" stud by constructing a tiered base and a vertical cylindrical post. Start with a rectangular base plate measuring 18.4mm by 18.5mm with a height of 2.2mm. Centered on top of this base, add a second rectangular layer measuring 18mm by 12.5mm with a height of 2mm, and a third rectangul...
module hotshoemount() { union() { cube([18.4,18.5,2.2],center=true); translate([0,0,2]){ cube([18,12.5,2],center=true); } translate([0,0,4]){ cube([18,18.5,2],center=true); } translate([0,0,4]){ rotate(a=[00,0,0]){ cylinder(h=13,r=7.75); } } translate([0,0,17]){ rotate(a=[00,0,0]...
glb/cad_4691b6e8074a.glb
Create a 3D model of a GL.iNet 64xx WiFi router. Start with a main PCB base as a rounded box with dimensions 65mm x 45mm x 3mm. Subtract two cylindrical holes with a diameter of 3mm from this base. On top of the PCB, add a network connector box measuring 15mm x 20.75mm x 12mm. Position a USB-A connector as a block mea...
use <MCAD/boxes.scad>; include <GL.iNet64XX_model_dim.scad>; GLiNet64xx(G_COLORS=true); #GLiNet64xx_cutout(part="ethernet", hlee=1.0, vlee=1.0, wsz=10.0); #GLiNet64xx_cutout(part="usba", hlee=1.0, vlee=1.0, wsz=10.0); #GLiNet64xx_cutout(part="musb", hlee=1.4, vlee=1.4, wsz=10.0); #GLiNet64xx_cutout(part="pb", hlee=...
glb/cad_51e6c5a42fc3.glb
Create a GL.iNet 64xx/6416 router housing consisting of a main case and a removable cover. For the main case, create a rounded box with external dimensions of 64.4mm width, 74.4mm length, and 22.4mm height. Hollow out the interior to leave walls 1.4mm thick, leaving a vertical internal space of 61.2mm width and 71.2m...
use <MCAD/boxes.scad>; include <096OledDim.scad>; use <096Oled.scad>; include <GL.iNet64XX_model_dim.scad>; use <GL.iNet64XX_model.scad>; DEBUG_BOX_B = false; DEBUG_BOX_V = 0; DEBUG_COVER = false; DISPLAY_TYPE = CRIUS; ENABLE_DISPLAY = true; PILAR_HOLES = true; UNIQUE_LIGHTGUIDE = true; RENDER_BOX = true; RENDER_CO...
glb/cad_5c138d925f1f.glb
Create a cover for a 6mm aluminium extrusion slot by extruding a specific 2D profile to a length of 200mm. The profile is based on a central width of 6mm, scaled up by a factor of 1.01 to ensure a proper fit. Construct the main body by combining three polygons: one spanning from [0.5, 0] to [6.7, 3] with a peak at [1, ...
length=200; slot_type = 6; scale_factor = 1.01; linear_extrude(length) scale(scale_factor) cover(slot_type); module cover(w=6) { difference() { union() { polygon([[0.5,0], [1,3],[0.5+w+0.2,3],[w+.2+1,0]]); polygon([[0.5,0], [1,-1],[0.5+w+0.2,-1],[w+.2+1,0]]); translate...
glb/cad_62aea3751ca8.glb
Create a CNC Clamp basic flat by starting with a rectangular block that is 90mm long, 40mm wide, and 10mm thick. Remove a centered slot from the top face that is 6mm in diameter and 54mm long, positioned so that it begins 18mm from the front edge and ends 18mm from the back edge. Round the four vertical corners of the ...
width = 40; length = 90; thick = 10; clamp_base(40, 90, 10); slot_dia = 6; corner_radius = 10; module createSubtractor(h,radius) { difference(){ cube([radius+0.1,radius+0.1,h]); cylinder(h=h,r=radius+0.1,$fn = 25); } } module slot(l, dia){ hull(){ cylinder(h=thick, r= dia/2,$fn=50); translate ([l,0,0]) cyl...
glb/cad_39a940f28bca.glb
Create a Paints Holder consisting of a grid of 8 cylindrical cells arranged in 2 rows and 4 columns. Each cell is a hollow cylinder with an outer diameter of 25.3mm, a height of 10mm, and a wall thickness of 1mm. The interior of each cell is a hole with a diameter of 24.9mm, which starts 1mm from the bottom to create a...
diameter = 24.5; height = 10; thickness = 1; rows = 2; columns = 4; cut = 1; tolerance = 0.4 * 1; inner_radius = (diameter + tolerance) / 2; outer_radius = inner_radius + thickness; outer_diameter = outer_radius * 2; holder_offset = outer_diameter - thickness; module holder() { difference() { cylinder(h = heigh...
glb/cad_d450dfb1b2af.glb
Create a tea portioner consisting of a measuring cup, a chute, and a removable funnel. First, construct the measuring cup as a hollow square box with a volume of 55 cubic centimeters. The interior should be a cube with rounded corners (radius 5mm) and walls 1.6mm thick. The top of the box must be open, with the top e...
volume = 55; use_american_customary_units = 0; module end_customizer() { } min_funnel_top_width = 66.66667; odd_offset = 0.1; wall_thickness = 1.6; tau = 2 * PI; roundness = 5; inner_radius = roundness-wall_thickness; chute_angle = 55; funnel_angle = 60; v_cmm = volume * 1000; a = -8*(4-tau/2)*inner_radius*i...
glb/cad_d7185f78a516.glb
Create a stepped corner calibration tool consisting of a series of rectangular prisms arranged in a cascading stair pattern. Construct five primary blocks aligned along the x-axis, each with a width of 10mm and a depth of 10mm. Set the height of these blocks to increase in increments of 10mm, starting from 10mm for the...
translate([0,0,0]) cube([10,10,10]); translate([10,0,0]) cube([10,10,20]); translate([20,0,0]) cube([10,10,30]); translate([30,0,0]) cube([10,10,40]); translate([40,0,0]) cube([10,10,50]); translate([45,10,0]) cube([5,5,45]); translate([45,15,0]) cube([5,5,40]); translate([45,20,0]) cube([5,5,35]); translate([45,25,0]...
glb/cad_ba3c75a58faf.glb
Create a lens hood for a Sony 16-50 f/2.8 lens. The main body is a hollow truncated cone with a total height of 50mm and a wall thickness of 4mm. The bottom inner diameter is 82mm, tapering outward to a top inner diameter of 93.7mm. At the base, create a mounting ring 3mm high. This ring consists of a cylinder with a...
base_diameter=77.1+0.6; shell_thickness=4 ; top_inner_diameter=93.7; lower_inner_diameter=82; total_height=50; flange_thickness=1.2; flange_depth=1.4+0.6; flange_arc=62; flange_rot_offset_deg=15; $fn=320; difference(){ cylinder(h=total_height-3 , d1=lower_inner_diameter+shell_thickness, d2=top_inner_diameter+...
glb/cad_cf64b36553f4.glb
Create a fan guard for a 40mm fan. Start by constructing a circular outer rim with a diameter of 46mm and a height of 6mm. The rim should have a wall thickness of 0.9mm. In the center of the guard, place a conical protrusion with a base diameter of 14mm and a height of 25mm. This cone should be a smooth, pointed shape...
dFan = 40; hGuard = 6; dGuard = 46; dCone = 14; hCone = 25; coneType= 3; hRim = 3; t = 0.9; hBars = 0.57*hGuard; dScrew = (dFan <= 40 ? 3 : 4 ) + 0.2; dBolt = (dFan <= 40 ? 5.5: 7.0) + 0.7; fixture = dFan == 20 ? 16.2 : dFan == 30 ? 24 : dFan == 35 ? 29 : ...
glb/cad_cc890d217f49.glb
Create a push-fit plumbing connector removal tool by starting with a solid cylinder that has an outer diameter of 36mm and a height of 10mm. Remove a smaller concentric cylinder from the center with a diameter of 16mm and a height of 11mm, positioned to slightly overlap the top and bottom faces. Finally, cut a rectangu...
innerDiameter=16; outerDiameter=36; thickness=10; difference() { cylinder(h=thickness,r=outerDiameter/2); translate([0,0,-0.5]) cylinder(h=thickness+1,r=innerDiameter/2); translate([-outerDiameter,-((innerDiameter-1)/2),-0.5]) cube([outerDiameter,innerDiameter-1,thickness+1]); }
glb/cad_84be59b3e59c.glb
Create a bookcase model with an overall width of 800mm, height of 2020mm, and depth of 280mm. Construct two vertical side planks, each 16mm thick and 280mm deep, positioned at the left and right edges of the width. On the inner face of each side plank, remove a rectangular section 12mm deep, 16mm wide, and 82mm high fr...
width = 800; height = 2020; depth = 280; pthick = 16; shelves = 6; skirting = true; sbdepth = 12; sbheight = 80; back = true; bthick = 4; difference(){ cube([depth,pthick,height]); if(back)translate([depth-12,pthick-5,0])cube([bthick+2,5,height]); if(skirting)translate([depth-sbdepth-2,0,0])cube([sbdepth+2,pthick...
glb/cad_afb56acb823b.glb
Create a Rotating Toy consisting of a thin, flat disc with a radius of 20mm and a height of 2.5mm. Centered along the X-axis of the disc, create two circular holes, each with a radius of 1mm and a height of 2.51mm. Position the first hole 5mm from the center in the positive X direction and the second hole 5mm from the ...
difference() { cylinder(h=2.5,r=20,center=true,$fn=100); translate([5,0,0]) cylinder(h=2.51,r=1,center=true,$fn=100); translate([-5,0,0]) cylinder(h=2.51,r=1,center=true,$fn=100); }
glb/cad_73b780f8ef60.glb
Create a customizable drink coaster by constructing a solid cylinder with a diameter of 130mm and a height of 8mm. From the top of this cylinder, remove a smaller concentric cylindrical volume to create a recessed well. This inner cutout should have a diameter of 122mm and a depth of 4mm, leaving a solid base 4mm thick...
outerDiameter=130; difference() { cylinder(h = 8, r=outerDiameter/2, $fn=200); translate([0,0,4]) cylinder(h = 4, r=(outerDiameter/2)-4, $fn=200); }
glb/cad_99e469e01731.glb
Create a "Wiener Bruchrechentafel" educational tool consisting of a rectangular frame and a set of cylindrical fraction bars. First, construct a rectangular frame with overall dimensions of 10mm width, 14.14mm length, and 0.6mm height. The frame should have rounded outer corners and feature 11 evenly spaced semi-cyli...
bars = 10; border_amount = 0.0; bar_spacing = 0.0; width = 10.0; length = 14.14; height = 0.6; rounding = 1.0; min_thickness = 0.2; tiny_gap = 0.05; bar_resolution = 16; border_resolution = 16; parts = "All"; bar_color = "CornFlowerBlue"; frame_color = "White"; max_border = height - tiny_gap - min_thickne...
glb/cad_62345ad74928.glb
Create a curved train track section with a diameter of 300mm and an arc length of 120mm. The model consists of two parallel curved rails, each with a complex cross-section profile. The profile is defined by a polygon with vertices at [0,0], [0,8], [3,8], [3,7], [4,7], [7,5.25], [9,5.25], [9,2.75], [7,2.75], [4,1], [3,1...
length = 120; diameter = 300; angle = asin(length / diameter); module rail_main(length) { poly = [[0,0],[0,8],[3,8],[3,7],[4,7],[7,5.25],[9,5.25],[9,2.75],[7,2.75],[4,1],[3,1],[3,0]]; rotate([90,-90,180]) linear_extrude(length) polygon(poly); } module rail_curved(angle, diameter) { poly = [[0,0],[0,8],[3...
glb/cad_189325c8dfa8.glb
Create a Bahtinov mask for a Sigma APO 70-300mm lens. Start by creating a main circular disk with an aperture diameter of 58mm and a total outer diameter of 66mm, with a thickness of 2mm. On the face of the disk, cut a series of narrow slots 0.8mm wide. These slots must be arranged in a specific diffraction pattern: ...
focus = 185; aperture = 58; inner_Diameter = 66; mask_Height = 2; center_Hole_Diameter = 0; outer_Height = 20; inner_Height = 0; split_Distance = -1; part = "all"; bahtinov_factor = 50; slot_Size = 0.8; central_bars_width = 0; slots_Orientation = 30; split_layer_width = 0.3; outerDiameter = inner_Diameter...
glb/cad_a7dee8f5fbe6.glb
Create an Automatic Plant Waterer base consisting of a central hub with radiating wings. Start by creating a central cylindrical hub with a diameter of 31mm (25mm cap diameter plus 6mm for walls) and a height of 18mm. In the center of this hub, remove a cylindrical core with a diameter of 28mm and a height of 15mm to...
real_cap_diameter=25; cap_height=15; diameter_of_landscaping_nails=8; wingspan=100; wing_width=5; wall_thickness=3; number_of_wings=3; tolerance_for_glue=3; drip_hole_diameter=4; ep=0.05+0; cap_diameter=real_cap_diameter+tolerance_for_glue; base_height=cap_height+wall_thickness; nacelle_width=diameter_of_lands...
glb/cad_d405d176a0b5.glb
Create a Raspberry Pi case designed to mate with a PiPiece camera unit. The case is a split-shell design consisting of a top and bottom section. The main body is a rectangular box with rounded corners. The internal dimensions are 86mm in length and 57mm in width. The walls are 2mm thick. The case is split horizontally...
include <pipiece.scad> DRAWfull = 0; DRAWtop = 1; DRAWbottom = 0; DRAWbottomAssembled = 1; DRAWPiPiece = 1; DRAWtopinlet = 0; DRAWbottominlet = 0; DRAWpcb = 0; GPIOHOLE = 2; GPIOsize = 2; topframe = false; topinlet = false; topholes = false; holeofs=5; holes...
glb/cad_2ac30d4c687e.glb
Create a Spoolholder Cone by starting with a central cone that is 30mm tall, with a base radius of 35mm and a top radius of 15mm. Centered along the vertical axis of this cone, remove a cylindrical hole with a radius of 11.5mm and a height of 7.5mm, positioned 12mm from the center in both directions. Additionally, remo...
$fn=100; module cone() { difference () { cylinder(h = 30, r1 = 35, r2 = 15, center = true); translate([0, 0, -12.0]) cylinder(h=7.5, r1 = 11.5, r2 = 11.5, center =true); translate([0, 0, 12.0]) cylinder(h=7.5, r1 = 11.5, r2 = 11.5, center =true); translate([0,0,1.5]) cylinder(h=14, r1 = 4.5, r2 = 4.5, center = true); ...
glb/cad_ad082a93883d.glb
Create a Pull Chain Redirector by starting with a quarter-cylinder block that has a radius of 40mm and a height of 8mm. The flat sides of the block should align with the X and Y axes. Carve a curved, semi-circular groove into the top surface of the block, following the outer arc of the quarter-cylinder; this groove mus...
rad=40; difference(){ intersection(){ cube([rad,rad,8]); translate([0,0,-1]) cylinder(h=10,r=rad, $fn=100); } translate([0,0,4]) rotate_extrude(convexity=10, $fn=100) translate([rad,0,0]) circle(r=2.5, $fn=100); translate([5,5,-1]) cylinder(h=9, r=1.5, $fn=100); translate([5,5,6]) cylinder(h=2.1, r1=1....
glb/cad_d003b4ab65fb.glb
Create a Pull Chain Redirector consisting of a curved base with a guiding channel. Start with a quarter-cylinder segment that has a radius of 45mm and a height of 12mm. From this base, remove a central cylindrical core with a radius of 41mm and a height of 10mm, starting 2mm from the bottom, to create a wall. Carve a c...
rad=40; union(){ difference(){ intersection(){ difference(){ cylinder(h=12, r=rad+5, $fn=100); translate([0,0,2]) cylinder(h=10, r=rad+1, $fn=100); } cube([rad+10,rad+10,10]); } translate([0,0,6]) rotate_extrude(convexity=10) translate([rad,0,0]) circle(r=2.5, $fn=100); translate([0,...
glb/cad_0c1945cb121c.glb
Create a replacement paddle wheel for a game console potentiometer. The object is a tiered cylindrical knob with a total height of 23mm. Start with a base cylinder 3mm high with a diameter of 44.5mm. Stack a second cylinder on top of this base that is 7mm high with a diameter of 46.5mm. Add a third top section that is ...
LowestDiameter=44.5; LowestRadius=LowestDiameter/2; LowestHeight=3; MiddleDiameter=46.5; MiddleRadius=MiddleDiameter/2; MiddleHeight=7; TopDiameter1=47.5; TopDiameter2=46.0; TopRadius1=TopDiameter1/2; TopRadius2=TopDiameter2/2; TopHeight=13; InnerDiameter=41.5; InnerRadius=InnerDiameter/2; CenterDiameter=12; CenterRadi...
glb/cad_86ff040ccb50.glb
Create a 3C Cable Clip by constructing a C-shaped ring with a wall thickness of 1.5mm and an inner diameter of 5.5mm. The ring should not be a full circle; leave an opening defined by an opening angle of 110 degrees. For the "demo" variant, create a twisted double clip. This consists of two intersecting C-shaped ring...
part = "demo"; thickness = 1.5; cable_diameter = 5.5; opening_angle = 110; rod_diameter = 7.5; screw_diameter = 4; chamfer = 0; twist_angle = 90; height = 0; screw_position = 0; flap_length = 0; opening_rounding_radius = 0; twisted_clip_cut = "auto"; $fn=32; real_opening_rounding_radius = (opening_rounding_...
glb/cad_f69129e61d0b.glb
Create a geometric sculpture titled "Learning Greek Style" consisting of a stacked architectural tower and two separate floating elements. The main structure is a vertical assembly of repeating units. Each unit is composed of three rectangular prisms. The first is a cube with a side length of approximately 3 units. T...
module Cij(){ echo("This" ,parent_module(0)); Aik = [[1,2],[1,10],[0.5,2],[1,1]]; Bkj = [[2,1,0],[1,1,1]]; Cij=Aik*Bkj; echo(Cij); } Cij(); module ui(){ echo("This" ,parent_module(0)); Aik = [[1,2],[1,10],[0.5,2],[1,1]]; vk = [2,1]; ui=Aik*vk; echo(ui); } ui(); module uj(){ echo("This" ,parent_mo...
glb/cad_3865989d4886.glb
Create a geometric composition called the Acropolisgon consisting of three identical cubes, each with a side length of 4 units. Position the first cube so its center is at the origin. Place the second cube adjacent to the first, rotated 180 degrees around the Z-axis and shifted so it shares a vertical edge with the f...
module Cij(){ echo("This" ,parent_module(0)); Aik = [[1,2],[1,10],[0.5,2],[1,1]]; Bkj = [[2,1,0],[1,1,1]]; Cij=Aik*Bkj; echo(Cij); } Cij(); module ui(){ echo("This" ,parent_module(0)); Aik = [[1,2],[1,10],[0.5,2],[1,1]]; vk = [2,1]; ui=Aik*vk; echo(ui); } ui(); module uj(){ echo("This" ,parent_mo...
glb/cad_06fbde6c7f9c.glb
Create a cylindrical lampshade with an outer diameter of 195mm and a total height of 90mm. The main body should be hollowed out by removing a central cylinder with a diameter of 193mm. To add structural reinforcement, include a slightly wider ring with a diameter of 200mm and a height of 10mm, positioned from 80mm to 9...
diam = 195; difference(){ union(){ cylinder(h=90,d=diam, $fa=1); translate([0,0,80]){ cylinder(h=10,d=diam+5, $fa=1); } } cylinder(h=90,d=diam-2, $fa=1); translate([0,0,70]){ for (rotation = [0:10:360]){ rotate([rotation,90,0]){ ...
glb/cad_39f6ee9d99d9.glb
Create a customizable LED strip profile clip. Start by forming a main rectangular body that is 10mm long, 11mm wide, and 19.7mm high. Hollow out the center of this body to create a C-shaped channel that is 10mm long, 7mm wide, and 16.7mm high, leaving a wall thickness of 1.5mm on the sides and bottom. On the top exte...
profile_width = 16.7; profile_height = 7; mount_distance = 2.5; clip_size = 10; arm = 1; module test() { } profile_h=profile_width; profile_d=profile_height;; holder_l=clip_size;; holder_d=4; wall=1.5; delta=0.05; screwh=8; screwh2=4.5; screwd=1.6; screwholderw=12; screwholderd=mount_distance; swall=1; difference(...
glb/cad_c7121a34b410.glb
Create a wall mounting plate for a sensor box. Start with a base rectangular platform measuring 77mm by 57mm with a thickness of 1mm. On top of this base, add a smaller centered rectangular block measuring 72.5mm by 52.5mm with a height of 2mm. Create two mounting holes through the center of the platform: position the...
$fn = 50; wall_plate(); module wall_plate() { difference() { union() { translate([0, 0, -1]) cube([77, 57, 1]); translate([2.25, 2.25, 0]) cube([72.5, 52.5, 2]); } translate([15, 28.5, -2]) cylinder(d=4, h=5); translate([62, 28.5, -2]) cylinder(d=4, h=5); ...
glb/cad_6b1c31d0a909.glb