Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a bearing mount designed to hold a ball bearing with an outer diameter of 21.98mm and a thickness of 6.95mm. Start with a rectangular base measuring 50mm in length, 15mm in width, and approximately 13.95mm in height. At the center of the base, construct a cylindrical housing to hold the bearing. This housing s...
o_dia = 21.98; i_dia = 7.95; i_rim = 11.1; thick = 6.95; wall_thick = 3; base_size = [50,thick+(wall_thick*2),15]; screws = [ [ 0.75, 0, 8.03, 4.17, 0, 25 ], [ -0.75, 0, 8.03, 4.17, 0, 25 ] ]; $fs = 0.4; difference() { translate([0,0,base_size[2]]) rotate([90,0,0]) difference() { ...
glb/cad_1d7c69eaa8ce.glb
Create a central pin for a spherical assembly. Start by creating a main cylinder with a radius of 4.61mm and a height of 8.33mm. At the bottom of this cylinder, add a conical bevel that transitions from a radius of 3.61mm at the very base to the cylinder's 4.61mm radius over a height of 0.6mm. At the top of the main cy...
sphere_radius=25; squish_height = .3; hole_max = sphere_radius-20; resolution = 100; bevel_height = .6; clearance = 0.35; output = "pin"; hole_radius = hole_max*cos(45); hole_height = hole_radius; if(output == "hemisphere") { translate([0,0,squish_height]) rotate([180,0,0]) difference() { difference() {...
glb/cad_f6d8b24fa348.glb
Create a curved train track rail section with a 15-degree arc and a radius of curvature of 260mm. The piece is designed for compatibility with construction toy train systems. The main body is a curved slab 6.5mm thick. The top surface features two parallel raised rails. Each rail is formed by a series of circular conn...
rtew=0.0; findiam=10.2; condiam=9.2; radcur=260.0; module start(x,y,or){ translate(v=[x,y,0]){ rotate(a=or,v=[0,0,1]){ difference(){ union(){ difference(){ cube(size=[15.85,63.65, 6.5]); translate(v=[1.5,1.5,-1.5]) cube(size=[12.85,60.65, 6.5]); ...
glb/cad_ff773268433f.glb
Create a housing for a Zero Energy Writing Pocket Rattle. Start with a main rectangular base measuring 65mm in length, 60mm in width, and 30mm in height. Within this base, carve out a central rectangular void that is 60mm long, 50mm wide, and 30mm deep. At each end of the base, add a semi-circular upright wall with a...
difference(){ union(){ translate([5,0,-1]) cube([30,65,15]); translate([12,-1,-1]) cube([16,3,30]); rotate([90,0,0]) translate([20,30,-65]) cylinder(3,8,8,$fn=130); rotate([90,0,0]) translate([20,30,-2]) cylinder(3,8,8,$fn=130); rotate([90,0,0]) translate([20,14,-65]) cylinder(60,15,15,$fn=130); translate([35.5,0,-1]...
glb/cad_b78d973ec052.glb
Create a T-nut for an OpenBuilds V-Slot by designing a base profile and repeating it in a grid of 4 rows and 3 columns. For a single nut, start with a 2D polygon with vertices at [0,0], [10.5, 0], [10.5, 1.4], [7.75, 3.9], [2.75, 3.9], and [0, 1.4]. Extrude this profile linearly to a height of 10mm. Center a cylindrica...
holeDiameter = 4.8; nutLength = 10; rows = 4; columns = 3; module nut() { rotate([180,0,0]) difference() { translate([-5.25, -nutLength/2, 0]) rotate([270,0,0]) linear_extrude(height=nutLength) polygon([ [0,0], [10.5, 0], [10.5, 1.4], [7.75, 3.9], [2.75, 3.9], [0, 1.4] ]); translate([0,0,-1.2]) cylinder(r=holeD...
glb/cad_b42bb3bee635.glb
Create a Button Guard consisting of two concentric cylindrical rings. First, construct a main ring by creating a solid cylinder with a diameter of 41.25mm and a height of 15mm, then modify it to have a flat base and a slightly tapered top edge to a diameter of 40.25mm over a total height of 16mm. Remove a central cylin...
$fn=200; mainring(); lipring(); module mainring() { difference() { hull() { cylinder(d=40.25, h=16, fn=$fn); cylinder(d=41.25, h=15, fn=$fn); } translate([0,0,-1]) cylinder(d=34.125, h=20, fn=$fn); } } module lipring() { difference() { cylinder(d=40...
glb/cad_1ea5d2b44081.glb
Create a screwdriver bit holder tray by starting with a rounded rectangular block measuring 28mm in width, 21mm in depth, and 15mm in height, with corner radii of 2.5mm. In the top face of this block, create ten holes arranged in a 5x2 grid. Each hole is composed of two stacked geometric sections: a hexagonal prism at ...
bits_x=5; bits_y=2; bitHeight=7; brim=5; space=3; bitWidth=2*(bitHeight/sqrt(3)); $fn=64; module hexagon(size, height) { boxWidth = size/sqrt(3); for (r = [-60, 0, 60]) rotate([0,0,r]) cube([boxWidth, size, height], true); } module rounded_cube(x,y,z,r){ hull(){ translate([r,r,0]) cylinder(r=r,h=z); t...
glb/cad_43104d55cb10.glb
Create a Makita LXT USB Charger mount. Start with a rectangular base that is 68mm wide (61mm outside width plus two 3.5mm walls) and 48mm long, with a thickness of 3.5mm. Build two side walls 10mm high and 3.5mm thick, leaving a central interior width of 54mm. Extend the structure with a back flap that is 68mm wide a...
inside_width=54; outside_width=61; outside_height=10; inside_height=4; thickness=3.5; length=48; screw_hole_one=3; screw_head=5.5; screw_head_depth=1.6; $fs = .5; module back_flap() { difference(){ translate ([0,-thickness]) { linear_extrude(height=outside_height+thickness+inside_height) { square ([outside_wid...
glb/cad_c0f3a120c580.glb
Create a Makita LXT USB Charger housing. Start with a rectangular base shell that has an outer width of 67mm, a length of 50.5mm, and a wall thickness of 2.5mm. The interior cavity should be 54mm wide and 45.5mm long. At the top of the shell, create a lid structure with a thickness of 2.5mm. Incorporate four cylindric...
inside_width=54; outside_width=62; thickness=2.5; length=48; cover_height=24; screw_hole_one=1.9; screw_hole_two=0.9; $fs = .5; module mounting_holes(size) { translate ([thickness+((outside_width-inside_width)/2)+4,2.5+thickness]) { circle(size); } translate ([thickness+outside_width-((outside_width-inside_width)/2...
glb/cad_9981ff850dfc.glb
Create an Antenna Tracker for FPV consisting of a main housing and a removable lid. Construct the main box with a height of 38mm, a width of 85mm, and a depth of 123mm. The box should have a wall thickness of 1.5mm and rounded corners with a 2mm radius. Hollow out the interior to create a cavity for electronics, leav...
use <MCAD/servos.scad> use <HS-311-OpenSCAD-master/HS311-Servo.scad> use <roundCornersCube.scad> use <flangedBearing.scad> printBox = 0; printLid = 1; boxHeight = 38; boxWidth = 91-boxHeight/2-4; boxDepth = 4+89+13*2; cornerCurve = 2; $fs=0.01; fn = 100; wallThick = 1.5; wallThickForSupports = 1.3; screwRelief ...
glb/cad_d2af412f878d.glb
Create an Antenna Tracker for FPV using RVGS. Start by creating a hollow rectangular box with outer dimensions of 46.7mm in width, 129.7mm in depth, and 20.2mm in height. The walls of this box should have a uniform thickness of 1.6mm. On the bottom face of the box, create four tapered holes. Each hole is a truncated c...
DVRWidth = 43.5; DVRDepth = 140-12.88; DVRHeight = 17; WallThickness = 1.6; CenterOfHoles = DVRDepth/2 - 36.15; ScrewDiamTop = 6.9/2; ScrewDiamBottom = 3.6/2; s45 = sin( 45 ); Hole1_5Distance = 1.50 * 25.4 / 2; Hole1_5Distances45 = Hole1_5Distance * s45; positions = [ [ [ 0, 0, 0 ], [ 0, 0, 1 ], 0 ], [ [ Hole1_5...
glb/cad_5e294770f35f.glb
Create an Antenna Tracker for FPV using RVGS by constructing a rectangular hollow box. The outer dimensions of the box should be 81.6mm in width, 53.7mm in depth, and 11.18mm in height. The walls of the box must have a uniform thickness of 1.2mm. On the bottom face of the box, create two tapered holes. These holes are...
DVRWidth = 79.2; DVRDepth = 51.3; DVRHeight = 9.78; WallThickness = 1.2; s45 = sin( 45 ); Hole1_5Distance = 1.50 * 25.4 / 2; Hole1_5Distances45 = Hole1_5Distance * s45; ScrewDiamTop = 6.9/2; ScrewDiamBottom = 3.6/2; CenterOfHoles = 0 - Hole1_5Distances45 -DVRDepth/2 + 23 ; positions = [ [ [ 0, 0, 0 ], [ 0, 0, 1 ],...
glb/cad_b6c321d156a6.glb
Create an Antenna Tracker for FPV using RVGS. Start with a rectangular base plate measuring 174.3mm in width, 114.3mm in depth, and 2.38mm in height. On the top surface, create two sets of mounting holes. The first set consists of eight tapered holes (top radius 3.45mm, bottom radius 1.8mm) arranged in a circular pat...
s45 = sin( 45 ); Hole1_5Distance = 1.50 * 25.4 / 2; Hole1_5Distances45 = Hole1_5Distance * s45; HolderWidth = 6.5*25.4 + 11-2; HolderDepth = 4.5 * 25.4; HolderHeight = 2.38; CenterOfHoles = HolderDepth/2 - 1*25.4 + 5.83; LowerCenterOfHoles = -HolderDepth/2 +20.41; ScrewDiamTop = 6.9/2; ScrewDiamBottom = 3.6/2; switc...
glb/cad_273ade5913fb.glb
Create a Customizable Bridge test model consisting of a central hub and a series of radiating bridges. Start with a central cylinder with a diameter of 24mm. Remove a section of the cylinder to create a half-round open shape. Construct 10 radiating bridges extending from the hub. Each bridge should be 3mm wide and 0.8...
min_bridge_length = 10; max_bridge_length = 100; number_of_bridges = 10; bridge_increment = (max_bridge_length - min_bridge_length) / (number_of_bridges - 1) ; show_XY_test = "yes"; hub_diameter = 24; bridge_width = 3; wall_thickness = 1; bridge_height = 0.8; bridge_z_gap = 0.2; bridge_angle = 180.0 / (number...
glb/cad_3b1abb42bd45.glb
Create a shower holder by starting with a main vertical cylinder 48mm high with a radius of 18mm. From the bottom of this cylinder, remove a central vertical hole with a radius of 5mm that extends 16mm upward. Additionally, remove a smaller central vertical hole with a radius of 2.5mm that extends 40mm upward. To creat...
innerheight= 16; difference(){ cylinder(h=48,r=18); translate([0,0,-1]){ cylinder(h=innerheight,r=5); } rotate([0,0,30]){ translate([-7.5,-2,-1]){ cube([15,4,innerheight]); } } rotate([0,0,-30]){ translate([-7.5,-2,-1]){ cube([15,4,innerheight]); } } translate([0,0,-1]){ cylinder(h=40...
glb/cad_e489d8a55ae2.glb
Create a keychain based on the Aperture Science logo. Start by creating a rectangular base measuring 100mm in length, 30mm in width, and 2mm in height. At one end of the rectangle, create a vertical slot for a keyring by removing a pill-shaped volume; this is formed by the convex hull of two cylinders, each with a radi...
translate([9,-40,0])linear_extrude(height = 4)scale(0.40)import(file = "Aperture Laboratories.dxf"); $fn = 50; difference(){ cube([100,30,2]); translate([4.25,13.25,-1])hull(){ cylinder(4,1.25,1.25); translate([0,3.5,0])cylinder(4,1.25,1.25); }; };
glb/cad_3c6e2dfe763f.glb
Create a PiStation base plate by starting with a solid rectangular block that is 10mm wide, 60mm deep, and 10mm high. Hollow out the center of this block to create a frame, leaving a wall thickness of 1mm around the perimeter, but leave the front edge solid. At the front of the base, remove a rectangular section measur...
include <pistation.scad> difference() { cube(size = [ FRAME_WIDTH, BLOCK_WIDTH, MDF_SIZE ], center = false); translate(v = [ 0, (2 * GENERAL_SPACE) - MDF_SIZE, 1 ]) { cube(size = [ FRAME_WIDTH, BLOCK_WIDTH - (2 * ((2 * GENERAL_SPACE) - MDF_SIZE)), MDF_SIZE ], center = false); } translate(v = [ FRAME_WI...
glb/cad_6570763d229c.glb
Create a Yagi dipole cover by starting with a solid rectangular block measuring 22mm in width, 20mm in depth, and 11mm in height. From this block, remove a smaller rectangular section from the top and front to create an open-faced hollow cavity. This interior cutout should measure 18mm in width, 18mm in depth, and 9mm ...
module cover(){ difference() { cube([22,20,11] , center=flase); translate([2,0,0]) cube([18,18,9], center=false); } } rotate([180,0,0]) cover();
glb/cad_72cb9dca7945.glb
Create a tension knob with a total height of 7mm and a main diameter of 18mm. The knob features a star-shaped top with 5 finger points. Between these points, create 5 semi-circular notches with a diameter of 9mm that penetrate the height of the knob. Taper the edges of the finger points for a smoother grip. The knob i...
FingerPoints = 5; TaperFingerPoints = true; KnobDiameter = 18; KnobTotalHeight = 7; StemHeightPercent =30.0/100.0; FingerHoleDiameter =KnobDiameter/2.; ShaftDiameter = 3.2; ShaftEasingPercentage = 5/100.0; BaseNutCapture = 0; TopNutCapture = 1; NutFlatWidth = 1.75 * ShaftDiameter; NutHeight = 0.87 * Sh...
glb/cad_ac6bafd639d5.glb
Create a portable Yagi antenna element holder. Start with a main block that is a cube 34mm wide, 34mm deep, and 17mm high, with all edges rounded by a 2mm radius. Center a vertical cylindrical hole through the block with a diameter of 25.6mm and a height of 38mm to accommodate a boom. On one side of the block, crea...
cross_yagi=0; enable_joint=1; width = 38; mast = 25.6; element = 3.2; mount_screw=2.4; holder_screw=3; module element_gutter() { union() { translate([mast/2+element/2,0,0]) cylinder(d=element,h=width+1,center=true); translate([mast/2+element/2,0,0]) cylinder(d=6,h=width/2,center=true); translate([mast/2,0...
glb/cad_18f0b51f6192.glb
Create a coax holder for a Yagi antenna. Start with a main body that is a cube 34mm wide, 34mm deep, and 17mm high, with the edges rounded by a 2mm radius. Center a vertical cylindrical hole through the top and bottom faces with a diameter of 25.6mm. On one side of the block, create a vertical cylindrical hole with a...
width = 38; mast = 25.6; element = 3.2; mount_screw=2.4; holder_screw=3; module holder() { difference() { minkowski() { cube([34,34,17], center=true); cylinder(r=2,h=1); } cylinder(d=mast,h=width,center=true); rotate(90,[0,1,0]) translate([0,0,(width/2+2)*-1]) cylinder(d=holder_screw,h=1+width/2,c...
glb/cad_fb629d6e1a0b.glb
Create a radiator holder for a Yagi antenna. Start with a central block that is 34mm wide, 34mm deep, and 22mm high, with rounded vertical edges (radius 2mm). Bore a cylindrical hole through the center of the block with a diameter of 25.6mm and a height of 38mm. On one side of the block, add a cylindrical extension to...
cross_yagi=0; width = 38; mast = 25.6; element = 3; extension = 9; holder_screw = 3.2; $fn=50; module element_gutter() { union() { translate([mast/2+element/2,0,width/2+extension/2+1]) cylinder(d=element,h=width+extension,center=true); translate([mast/2+element/2,0,-(width/2+extension/2+6)]) cylinder(d=ele...
glb/cad_2b715b6b58d5.glb
Create a tracking pole mount for a YAGI antenna. Start with a central block that is 30mm wide, 20mm deep, and 21mm high. Carve a large vertical semi-cylindrical cutout from the bottom center of the block with a diameter of 25mm and a height of 21mm to accommodate a mast. Within this central space, create a smaller ve...
$fn=50; mast_1 = 13; mast_1_conus = 11; mast_2 = 25; offset = 8; washer = 16; bolt = 3; nut=5.6; module axises() { translate([0,(mast_1+mast_2)/2-mast_1/2+3,0]) rotate([0,90,0]) cylinder(h=mast_2+offset+1, d1=mast_1, d2=mast_1_conus, center=true); translate([0,-(mast_1+mast_2)/2+mast_2/2,0]) cylinder(h=mas...
glb/cad_0e9017ad9035.glb
Create a Xenium x1560 anti dust USB plug by constructing a composite geometric shape. Start with a base rectangular block measuring 5.04mm wide, 12.85mm long, and 1.88mm high. Remove a smaller rectangular section from the center of the top face of this base, measuring 5mm wide and 8mm long, with a depth of 1.4mm. Attac...
intersection(){ cube([20,20,10]); rotate([0,6,0]) union(){ difference(){ cube([(5.65-0.61),(13.2-0.35),1.88]); translate([(5.65-0.61)-1.5,((13.2-0.35)-(8))/2,1.88-0.4]) cube([5,8,0.4+0.1]); } translate([0.19,((13.2-0.35)-(10.8-0.12))/2,0]) cube([(2.45-0.14),(1...
glb/cad_4d800a95909c.glb
Create a Customizable Nylon Clothes Closet Rod Linking Bracket consisting of two hollow cylindrical sockets connected by a central stem. First, create the rod hanger socket: a cylinder with an inner diameter of 38.1mm, an outer diameter of 44.45mm, and a height of 38.1mm. Second, create the shelf hanger socket: a c...
rod_id = 1.5; rod_thick = 0.25; rod_sleeve = 1.5; shelf_id = 1; shelf_thick = 0.25; shelf_sleeve = 0.5; cable_diameter = 0.125; stem_length = 2.75; interface_length = 0.5; IN=25.4; ROD_ID=rod_id*IN; ROD_OD=ROD_ID+rod_thick*IN; ROD_H=rod_sleeve*IN; HANGER_ID=shelf_id*IN; HANGER_OD=HANGER_ID+shelf_thick*IN; HA...
glb/cad_13b949de0744.glb
Create a headphone wall holder. Start with a base plate formed by three overlapping cylinders, each 20mm thick. Place two cylinders with a radius of 60mm and 40 facets at x=13 and x=-13 respectively, and a larger central cylinder with a radius of 79mm and 26 facets positioned at x=0 and y=-18.3. From this combined shap...
use<./Write.scad> difference(){ rotate([-90,0,0]) union(){ difference(){ rotate([90,0,0]) union(){ difference(){ union(){ translate([13,0,0]) ...
glb/cad_b1e3cfc47168.glb
Create a Light Blue Bean Lock Example Case consisting of three main sections. The central block is a rectangular prism measuring 110mm in height, 95mm in width, and 45mm in thickness. Within this central block, remove a cylindrical bore with a diameter of 54mm centered at a height of 55mm and an offset of 60mm. Creat...
plateThickness=4; plateLength=56; plateWidth=26; doorThickness=45; doorHeight=110; doorWidth=95; cylinderBoreOffset=60; cylinderBoreDiameter=54; deadBoltDiameter=25; electronicsBoreHeight=55; electronicsBoreDepth=35; module middleDoorBlock() { difference() { cube([doorHeight, doorWidth, doorThickness...
glb/cad_e3920c7f4cce.glb
Create a Router Lift Insert Ring with a total thickness of 7.09mm. Start with a main cylinder that has an outer diameter of 98.25mm. Remove a concentric center hole with a diameter of 30mm that passes through the entire thickness. On the top surface, create a lip by adding a ring with an outer diameter of 98.25mm and ...
ID = 30; TD = 98.25; BD = 95.25; LD = 91.92; HS = 78.84; HD = 6.7; TH = 7.09; LT = 2.25; TA = 34; FL = 0.4; SM = 3.72; SR = 0.2; SZ = FL * SR * SM; F = 0.01; $fn = 180; difference() { cylinder(r = TD / 2, h = TH, center = true); cylinder(r = ID / 2, h = TH + (F * 2), center = true); translate(v = [HS / 2, 0, 0]...
glb/cad_12f12b2e1aa9.glb
Create a v-groove pulley for a 28BYJ-48 stepper motor. Start by constructing a central hub that is 7mm high with a radius of 8mm. Cut a rectangular slot through the center of this hub measuring 3mm by 5mm. On top of this hub, add a larger cylindrical wheel that is 9mm high with a radius of 20mm. To create the v-groov...
hub_z = 7; hub_r = 8; hub_a = 3; hub_b = 5; wheel_z = 9; wheel_r = 20; v_depth = 6; module body() { carve_x = 10; total_z = hub_z + wheel_z; difference() { cylinder(h=total_z,r=hub_r); translate([-hub_a/2,-hub_b/2,0]) { cube([hub_a,hub_b,total_z], 1); } } cylinder(h=wheel_z,r=wheel_r); } module s...
glb/cad_bcb33b181d31.glb
Create a Printrbot Simple electronics shim by starting with a base rectangular plate measuring 60mm wide, 52.5mm deep, and 6mm thick. Add two rectangular ridges on the top surface, each 60mm wide and 8mm deep, positioned at the front and back edges (starting 5mm from the front and back respectively) and extending the t...
$fn=16; difference(){ union(){ cube([60,52.5,6]); translate([0,5,5.75])cube([60,8,6.25]); translate([0,44.5,5.75])cube([60,8,6.25]); } translate([5,5,-1])cube([6.8,6.3,7.1]); translate([48.5,5,-1])cube([6.8,6.3,7.1]); translate([5,44.5,-1])cube([6.8,6.3,7.1]); translate([48.5,44.5,-1])cube([6.8,6.3,7.1]); ...
glb/cad_35c6b0cb63ec.glb
Create a double-sided GT2 belt clamp. Start with a central rectangular block 18mm long, 10mm wide, and 5mm high, centered on the origin. Attach two half-cylinders with a 5mm radius and 5mm height to each of the 10mm ends, creating a pill-shaped base. Drill two vertical holes with a 3mm diameter through the center of e...
include <configuration.scad> module beltclamp(){ belt_pitch = 2; belt_width = 10; belt_offset = 0; clamp_height = 5; clamp_width = 10; clamp_length = 18; tooth_width = 1.3; tooth_heigth = .75; bottom_tooth_width = 1.4; bottom_tooth_height = 1.2; offset = belt_pitch/4; offset2 = offset+(belt_pitch/2); difference(){ ...
glb/cad_fdee35f77e22.glb
Create a Cheerson CX-10A Case consisting of a main box and a separate lid. For the box, create a hull encompassing four cylinders of 34mm diameter, positioned at the corners of a 32mm square, with a total height of 21.6mm. Hollow out the center by removing a hull of four 34mm cylinders positioned at the same corners, l...
PropDia=34; FootDia=9.4; PropSpacing=32; BaseWidth=18.6; BaseHeight=4.5; QuadHeight=20; LidHeight=3; w=4; n=0.4; WiggleRoomX=0.5; WiggleRoomZ=0.2; wt=w*n; $fn=128; box(); quadRests(); lidSupport(); rotate([180,0,0])translate([0,PropSpacing+PropDia+wt*6,-QuadHeight-wt-LidHeight])lid(); %lid(); module quadRests()...
glb/cad_18d4ed1aea25.glb
Create a Rostock Max EZStruder Spinner indicator. Start by creating a central vertical cylinder with a height of 10mm, a radius of 5mm, and 16 facets. Bore a concentric hole through the center of this cylinder with a radius of 3.25mm and a height of 10mm, starting from 2mm above the base. To form the indicator arm, add...
difference() { union() { cylinder(h=10,r=5,$fn=16); for(i=[12:3]) { translate([(i*3)-35,0,0]) cylinder(h=2,r=i/2,$fn=16); } } translate([0,0,2]) cylinder(h=10,r=3.25,$fn=16); }
glb/cad_58da5b7c73ff.glb
Create two mirrored mount brackets for an AZSMZ Mini controller board. Each bracket starts with a base plate 5mm thick. The main body is a rounded rectangular platform with a width of 22mm and a total length determined by a hole separation of 61.65mm. The corners of the platform have a radius of 10mm. On each bracket,...
$fn=20; mountRadius = 2.6; thickness = 5; mountWidth = 22; holeSeparation = 61.65; holeOffset = 9.3; holeRadius = 1.35; standoffRadius = 3; standoffHeight = 4; cornerRadius = 10; leftmount(); translate([-mountWidth-10,0,0]) rightmount(); module leftmount() { difference() { union() { translate(...
glb/cad_7c2001d57ab1.glb
Create a Micro Polyhedron Vertex connector. The core is a hollow regular polygonal prism with a height of 7mm. For a 5-sided version, the outer diameter is determined by a side length of approximately 15.58mm (derived from $9 \tan(60^\circ)$), and the wall thickness is 3.5mm. The inner hole is a regular pentagon with a...
slotWidth = 7.0; clearing = 0.2; plongSize = 1.0; plongRadius = 2.0; halfside = 9*tan(60); $fs = 0.4; module pin() { pinWidth = slotWidth/3-clearing; union() { translate([0, -pinWidth/2,0]) difference() { cube([13, pinWidth, 7]); rotate([-90,0,0]) translate([9,-3.5, -1]) linear_extrude(height=4) { diffe...
glb/cad_89b15d1cf3f9.glb
Create a Gregstruder idler shaft by designing a cylinder with a diameter of 8mm and a height of 20mm. Position the cylinder so that it is bisected along its length by a large flat plane, effectively removing the bottom half of the geometry to create a semi-cylindrical shape with a flat base.
use <MCAD/shapes/2Dshapes.scad> include <MCAD/units/metric.scad> $fs = 0.4; $fa = 1; difference () { translate ([0, 0, 8 / 2 - 1.5]) rotate (90, Y) cylinder (d = 8, h = 20); mirror (Z) ccube ([1000, 1000, 1000], center = X + Y); }
glb/cad_d23e95c1df0d.glb
Create a Microscope Platen by starting with a thin main disc that has a radius of 60mm and a height of 1.8mm, centered on the origin. Add a second, slightly thicker disc to the center with a radius of 56.5mm and a height of 5mm, but truncate this second disc so that it only exists as a central strip 78mm wide, running ...
$fa = 6; difference() { union() { cylinder(r=60, h=1.8, center=true); translate([0,0,2]) intersection() { cylinder(r=113/2, h=5, center=true); translate([250-78/2,0,0]) cylinder(r = 250, h=5, center=true); translate([-250+78/2,0,0]) cylinder(r = 250, h=5, center=true); } } union() { translate([-60,0...
glb/cad_c416ce2705df.glb
Create a Peabody Award trophy by combining a cylindrical base with a decorative medal and a sculpted bust. Start by creating a main vertical cylinder with a radius of 40mm and a height of 80mm. At the top of this cylinder, centered at a height of 80mm, place a smaller cylindrical stub with a radius of 20mm and a height...
include <OpenScadFont.scad> scale=1; medalRadius=50*scale; height=80*scale; radius=40*scale; stubSize=20*scale; showMedal=true; if(showMedal==true) translate([0,0,height+medalRadius]) rotate([90,0,0]) scale(scale) import_stl("ColbertPeabodyAward_fixed.stl"); cylinder(h=height,r1=radius,r2=radius); translate([0,0...
glb/cad_a858e8ebd217.glb
Create a Guidler axle pin by starting with a cylinder 19mm long with a diameter of 7.5mm. Flatten one side of the cylinder by removing two rectangular blocks from the length of the cylinder; each block should be 6mm long, 7.5mm wide, and 1.5mm deep, positioned at the two opposite ends of the cylinder's length to leave ...
height=19; diameter=7.5; hole_diameter=2; hole_inset=3; hole_depth=diameter/2; guidler_pin(); module guidler_pin() { difference(){ translate([diameter/2,diameter/2,0]) { cylinder(r=diameter/2, h=height, center=false, $fn=180); } base_cutout(); } } module bas...
glb/cad_4ccf2d848b14.glb
Create a parametric box with a lid and a latch system. The main body is a hollow rectangular container with inner dimensions of 50mm length, 50mm width, and 50mm height. The walls are constructed by creating a solid block and removing a smaller rectangular volume from the center to leave a consistent wall thickness. F...
length=50; width=50; height=50; latches=1; print=1; close=0; lock=0; difference(){ translate([0,0,height/4-1.25])cube([length,width+6,height/2+2.5],center=true); translate([0,0,height/4+0.5])cube([length+1,width,height/2+1],center=true); translate([length/2,(width+6)/2,height/4+2.5])cube([3,3,height/2],center=tr...
glb/cad_4fc82780a452.glb
Create a Stargate-inspired Iris mechanism consisting of a base hull and a cam ring. Start by creating a lower hull as a cylinder with a radius of 40mm and a height of 12mm. Hollow out the center with a cylinder of radius 37mm starting 5mm from the base, and remove a smaller cylinder of radius 25mm and height 6mm from t...
blade_count=12; close=20; difference(){ cylinder(h=12,r=40,$fn=50); translate([0,0,5])cylinder(h=20,r=37,$fn=50); translate([0,0,-0.5])cylinder(h=6,r=25,$fn=50); for(k=[0:30])rotate(-k)translate([36,-5,7])cube([10,5,10]); for(i=[0:(360/blade_count):360]){ rotate(i)translate([0,27,-0.5])cylinder(h=6,r=1.25,$fn=...
glb/cad_cc4a54387b34.glb
Create a bed clip by starting with a solid cylinder that has a radius of 6mm and a height of 10mm. Remove a smaller concentric cylinder from the center with a radius of 3mm and a height of 10mm to create a hollow tube. Finally, cut a vertical slot through the entire height of the object to create an opening; this is do...
$fn=50; difference(){ cylinder(r=6, h=10); translate([-2.2,0,0]) cube([4.4,15,15]); cylinder(r=3, h=10); }
glb/cad_166e45b414c3.glb
Create a snap spool holder consisting of a rectangular base and an angled support arm ending in a circular clip. Start with a rectangular base measuring 26.5mm in width, 63mm in depth, and 10mm in height. If the holder is for back-mounting, add a thin rectangular lip extending from the rear of the base. From the top...
part = "lt"; positioning = 1; back_lip_extra_length = 2; arm_length = 122; arm_angle = 30; base_size = 63; clip_inner_diameter = 26.5; clip_thickness = 8.6; clip_head_inner_diameter = 18; clip_head_rim_thickness = 0; clip_edge_thickness = 1.5; clip_angle = 0; clip_lip_curvature = 1.5; arm_buttress_width = ...
glb/cad_7e6c18853b49.glb
Create a Nail Polish Non-Spill Bottle Holder by constructing a solid base and a hollowed conical upper section. Start by creating a solid cylinder for the base with a diameter of 100mm and a height of 3mm. On top of this base, add a second cylinder with a height of 40mm that tapers outward from the top to the bottom; t...
InnerDiameter = 42; InnerHeight = 40; BottomRim = 3; BottomDiameter = 100; difference() { translate([0,0,BottomRim]) cylinder(h = InnerHeight, r1 = BottomDiameter/2, r = (InnerDiameter / 2) + 3, $fn=180); translate([0,0,BottomRim-0.1]) cylinder(h = InnerHeight+0.2 , r = InnerDiameter / 2 , $fn=180); } cylinder (h=...
glb/cad_321e8ecbbbf8.glb
Create a parametric hex socket consisting of two stacked cylindrical sections. The upper socket section is a cylinder with a height of 11mm and a radius of 5.55mm, featuring a 30-facet resolution. Centered vertically within this upper section is a hexagonal hole with a flat-to-flat width of 7.2mm and a depth of 10mm. ...
size = 7; drive = 6.35; depth = 10; tolerance = 0.2; tolSize = size + tolerance; inscribedSize = tolSize/0.866025; tolDrive = drive + tolerance; socketRadius = (inscribedSize+3)/2; driveRadius = ((tolDrive*1.5)+3)/2; difference() { union() { translate([0,0,(depth+1)/2]) cylinder(h = depth + 1, r = socketRa...
glb/cad_957bb71e7d0f.glb
Create a Mural Spool Holder consisting of a long rectangular base and a perpendicular mounting bracket. Start by creating a rectangular base measuring 190mm in length, 5mm in width, and 20mm in height. At one end of this base, attach a vertical mounting block that is 20mm wide, 20mm deep, and 20mm high. This block shou...
$fn=50; cube([190,5,20]); difference() { cube([20,20,20]); translate([10,15,-1]) cylinder(r=5, h=40); translate([5,15,-2]) cube([10,10,24]); } difference() { translate([190,-85,0]) { cube([5,90,20]); } translate([185,-15,10]) rotate([0,90,0]) cylinder(r=2.5,h=20); translate([185,-75,10]) rotate([0,90,0]) cylind...
glb/cad_e38ec08aaa3a.glb
Create a Temperature Calibration Tower consisting of a base and seven stacked blocks. Start with a rectangular base measuring 30mm by 30mm with a height of 3mm. Stack seven identical cubes, each 10mm x 10mm x 10mm, vertically on the base. For each cube, create a hollow center by removing a smaller cube of 7.6mm x 7.6...
DoYouUnderstandYouMustModifyTheGCodeThisMakes=123; NumberOfBlocks = 7; Labels=["206","208","210","212","214","216","218"]; ReverseLabelOrder=0; Reverse=ReverseLabelOrder == 1; BlockSize=[10,10,10]; WallThickness=1.2; TopOfTriangleThickness=2; TowerBase=[30,30,3]; FontFace=2; FontFacesInCustomizer=["Arial:style=Bold...
glb/cad_7a4cdbd7b5b8.glb
Create a Temperature Calibration Tower consisting of seven stacked cubic blocks, each measuring 10x10x10mm. For each block, remove a central cubic cutout of 6x6mm that extends through the entire height of the tower. On the front face of each block, emboss a temperature label (starting from "206" on the bottom block an...
DoYouUnderstandYouMustModifyTheGCodeThisMakes=123; NumberOfBlocks = 7; Labels=["206","208","210","212","214","216","218"]; ReverseLabelOrder=0; Reverse=ReverseLabelOrder == 1; BlockSize=[10,10,10]; FontFace=2; FontFacesInCustomizer=["Arial:style=Bold","Liberation Sans", "Open Sans:style=Bold", "Montserrat:st...
glb/cad_08b5be1052f5.glb
Create a Drag Chain consisting of a series of interlocking links and two mounting brackets. For each link, create a hollow rectangular frame with an internal height of 8mm, internal width of 10mm, and a shell thickness of 1.8mm. The overall link height is 11.6mm and the width is 17.2mm. The links are joined by pins w...
link_height=8; link_width=10; shell_thickness=1.8; link_xtend = 5; pin_release = 1; number_of_links = 9; anti_stick = 0.15; part_selection = 3; linkHeight = link_height + 2 * shell_thickness; linkWidth = link_width + 4 * shell_thickness; linkLength = link_height * 2.8; pinRad = linkHeight / 6; pinSpace = ((lin...
glb/cad_634b750da14a.glb
Create a Hackberry A10 Case starting with a rectangular base plate measuring 124mm by 90mm with a thickness of 1mm. Build a perimeter wall around this base that is 5mm wide and 30mm high. On the first long wall, create several rectangular cutouts for ports: a 32mm by 10mm opening starting 9mm from the left, a 17mm by ...
TOTAL_GROUND_LENGTH=124; TOTAL_GROUND_WIDTH=90; BORDER_WIDTH=5; BORDER_HEIGHT=30; GROUND_HEIGHT=1; INNER_FLOOR_LENGTH=TOTAL_GROUND_LENGTH-2*BORDER_WIDTH; INNER_FLOOR_WIDTH=TOTAL_GROUND_WIDTH-2*BORDER_WIDTH; ELEVATOR_HEIGHT=4; CORNER_LENGTH=7; FLOOR_HOLE_WIDTH=5; FLOOR_HOLE_LENGTH=60; difference(){ cube([TOTAL_GROU...
glb/cad_acd1d22c7981.glb
Create a Hackberry A10 Case base plate by starting with a rectangular slab measuring 121mm in length, 84mm in width, and 1mm in height. Along the center of the length, carve out seven rectangular slots to create ventilation holes. Each slot must be 5mm wide and 60mm long, centered along the width of the plate. Position...
TOTAL_GROUND_LENGTH=121; TOTAL_GROUND_WIDTH=84; GROUND_HEIGHT=1; FLOOR_HOLE_WIDTH=5; FLOOR_HOLE_LENGTH=60; difference(){ cube([TOTAL_GROUND_LENGTH,TOTAL_GROUND_WIDTH,GROUND_HEIGHT]); for( i= [15:15:TOTAL_GROUND_LENGTH-15]){ translate([i,TOTAL_GROUND_WIDTH/2-FLOOR_HOLE_LENGTH/2,-1]){ cube([FLOOR_HOLE_WIDTH,FLO...
glb/cad_7351deecde93.glb
Create a vertical stack of three identical cubes, each measuring 10mm x 10mm x 10mm. For each cube, remove a central rectangular cutout of 6mm x 6mm that extends through the entire height of the stack. On the front face of each cube, emboss the numbers "206", "208", and "210" respectively, using a bold sans-serif font...
DoYouUnderstandYouMustModifyTheGCodeThisMakes=7; NumberOfBlocks = 3; Labels=["206","208","210","212","214","216","218"]; ReverseLabelOrder=0; BlockSize=[10,10,10]; FontFace=0; FontDepth=0.5; fn_override = 0; $fn = fn_override; Reverse=ReverseLabelOrder == 1; FontFacesInCustomizer=["Arial:style=Bold","Liberation Sa...
glb/cad_cc7f03870b01.glb
Create a QuarterHull boat model 125mm long and 40mm high. The main body is a composite hull formed by the convex hull of three cylinders running the full length of the boat: a central cylinder with a 31mm diameter and two outer cylinders with 25mm diameters positioned 18mm apart and offset 10mm above the center. A smal...
$fn = 14; boat_height = 40; boat_length = 125; pontoon_diameter = 24; pontoon_length = boat_length; quarter_diameter = 25; module pontoon() { difference() { cylinder(d=pontoon_diameter,h=pontoon_length,center=true); cylinder(d=pontoon_diameter-4,h=pontoon_length-2,center=true,$fn=20); } translate([0,0,(...
glb/cad_84a55f117f88.glb
Create a QuarterHull boat model. Start by constructing two identical pontoons, each a hollow cylinder with an outer diameter of 18mm and a length of 120mm. The walls should be 2mm thick, and both ends of each cylinder must be capped with a cone that tapers from the 18mm diameter down to a 1mm point over a height of 5mm...
$fn = 10; boat_height = 40; boat_length = 120; pontoon_diameter = 18; pontoon_length = 120; hull_diameter = 30; module pontoon() { difference() { cylinder(d=pontoon_diameter,h=pontoon_length,center=true); cylinder(d=pontoon_diameter-4,h=pontoon_length-2,center=true,$fn=20); } translate([0,0,(pontoon_len...
glb/cad_957b87c6cb48.glb
Create a QuarterHull boat model 190mm long and 48mm high. The base consists of two parallel pontoons, each 190mm long with an outer diameter of 30mm. Each pontoon is a hollow tube with a wall thickness of 2mm, capped at both ends by tapered cones that narrow from the 30mm diameter down to a 1mm point over a height of 8...
$fn = 14; boat_height = 48; boat_length = 190; pontoon_diameter = 30; pontoon_length = boat_length; quarter_diameter = 25; module pontoon() { difference() { cylinder(d=pontoon_diameter,h=pontoon_length,center=true); cylinder(d=pontoon_diameter-4,h=pontoon_length-2,center=true,$fn=20); } translate([0,0,(...
glb/cad_bdcf30da176e.glb
Create a Customizable Box consisting of a bottom base and a top cap. The internal chamber is a cylinder with a diameter of 40mm. The total height of the box is 15mm. The walls are 1.2mm thick. Construct the bottom part as a hollow cylinder with a 40mm inner diameter and a 42.4mm outer diameter. The bottom part should ...
VIEW = "both_opened"; CHAMBER_DIAMETER = 40; BOX_HEIGHT = 15; WALL_LAYER_TIMES = 6; LAYER_THICKNESS = 0.2; RESOLUTION = 64; TOLERANCE_LAYER = 0.5; wall_thickness_mm = (WALL_LAYER_TIMES * LAYE...
glb/cad_3587528eb5ba.glb
Create an antenna cable clamp consisting of two identical C-shaped brackets mirrored across each other. For each bracket, start with a cylinder 15mm high with a radius of 29mm. Remove a concentric inner cylinder with a radius of 24mm and a vertical cutout that is 16mm wide and 16mm deep, centered on the outer edge, to ...
mast_diameter = 48; cable_diameter = 7.3; mast_radius = mast_diameter/2; cable_radius = cable_diameter/2; $fa = 0.1; module clamp(radius) { difference () { difference () { cylinder (h=15, r=radius+5); translate ([0,0,-10]) {cylinder (h=50, r=radius);} translate ([0,radi...
glb/cad_15998171bf31.glb
Create a construction set connector consisting of a central sphere with a 5mm radius. From this center, extend six cylinders, each 30mm long with a 5mm radius, radiating outwards along the X, Y, and Z axes in both positive and negative directions. To make these cylinders hollow for rod insertion, remove a smaller conce...
difference(){ union(){ cylinder(30,5,5,$fn=130); sphere(5,$fn=130); rotate([90,0,0]) cylinder(30,5,5,$fn=130); rotate([0,90,0]) cylinder(30,5,5,$fn=130); rotate([180,90,0]) cylinder(30,5,5,$fn=130); rotate([0,90,90]) cylinder(30,5,5,$fn=130); } translate([-35,-35,-14.5]) cube([80,80,10]); translate([0,0,11]) cylin...
glb/cad_e6c5b7dfb3a0.glb
Create a construction set connector consisting of three intersecting cylinders joined at a central sphere. Start by creating a central sphere with a radius of 5mm. From this center, extend three cylinders, each with an outer radius of 5mm and a length of 30mm, oriented along the X, Y, and Z axes to form a 3D coordinate...
difference(){ union(){ cylinder(30,5,5,$fn=130); sphere(5,$fn=130); rotate([90,0,30]) cylinder(30,5,5,$fn=130); rotate([0,90,0]) cylinder(30,5,5,$fn=130); } translate([-15,-35,-14.5]) cube([50,50,10]); translate([0,0,11]) cylinder(20,3.1,3.1,$fn=130); rotate([90,0,30]) translate([0,0,11]) cylinder(20,3.1,3.1,$fn=1...
glb/cad_28bc26e5e607.glb
Create a stylized typewriter model. Start with a main rectangular base measuring 20mm by 30mm with a height of 15mm, positioned at [10, 10, 0]. Remove a cylindrical section from the top of this base with a radius of 6mm and a height of 10mm, centered at [20, 25, 17]. Add a keyboard section using a cube of 8mm by 30mm ...
union() { difference() { translate([10,10,0])cube([20,30,15]); translate([20,25,17]) rotate([0,90,0])cylinder(10,6,6); } translate([30,10,0])cube([8,30,5]); translate([28,10,5]) rotate([0,20,0])cube([9,30,3]); translate([9.5,40,0])cube([2,1,16]); translate([29,40,0])cube([2,1,16]); translate([9.5,9,0])cube([2,...
glb/cad_ec2904303723.glb
Create a miniature castle model consisting of several interconnected rectangular blocks of varying heights, topped with cylindrical turrets. Start with a main central structure and add two flanking wings. The front section features a rectangular block 12.5mm wide, 44.5mm deep, and 19mm high. At the front corners of t...
translate([3,1,0]) cube([12.5,44.5,19]); translate([2.5,0.5,6]) cube([13.5,45.5,1]); translate([2.5,0.5,12]) cube([13.5,45.5,1]); translate([2.5,0.5,18]) cube([13.5,45.5,1]); translate([0,0,0]) cube([6,6,27.3]); translate([1,1,27.3]) cylinder(5,1,0); translate([1,5,27.3]) cylinder(5,1,0); translate([5,1,27.3]) ...
glb/cad_b52aac0b5535.glb
Create a 3D model of a Polaroid camera. Start with a main rectangular base measuring 35mm wide, 50mm deep, and 10mm high. On the top surface, add a large rectangular block measuring 35mm wide, 15mm deep, and 35mm high, positioned at x=0, y=15, z=5. Add a thin rectangular slab measuring 35mm wide, 20mm deep, and 5mm hig...
difference() { union() { difference() { cube([35,50,10]); translate ([2, 0, 2]) cube([31, 3, 1]); } translate ([0,15,5]) cube([35,15,35]); translate ([0,1.5,5]) rotate ([20,0,0]) cube ([35, 20, 5]); translate ([0, 19, 23]) rotate ([-50,0,0]) cube ([35, 30, 14.75]); translate ([25, 15, 30]) cube ([8.5, 25, 8.5]); transl...
glb/cad_adef51179497.glb
Create a stylized owl by starting with a central body shaped as a sphere scaled to 13mm in width, 15mm in depth, and 15mm in height. Position two large eyes on the face by placing spheres with a 9mm radius at coordinates [-5, 3, 5] and [-5, -3, 5]. Inside each eye, create a pupil by removing a smaller sphere with a 3mm...
scale([1.3,1.5,1.5])sphere(10); translate([0,-3,-16]) cylinder(3,3,2); translate([0,3,-16]) cylinder(3,3,2); difference() { translate([-5,3,5]) sphere(9); translate([-12,5,7]) sphere(3); } difference() { translate([-5,-3,5]) sphere(9); translate([-12,-5,7]) sphere(3); } translate([-13,0,-2])cylinder(3,2,0); rotate([4...
glb/cad_f00735accfc2.glb
Create a watering cap for a jug by starting with a solid cylinder 71mm in diameter and 15mm high. Inside this cylinder, carve out a right-handed trapezoidal thread that is 10mm long with a pitch of 7mm and a pitch radius of 32.5mm. To create the watering holes, remove a series of small vertical cylindrical holes, each ...
use <Thread_Library.scad> length=10; pitch=7; pitchRadius=32.5; difference(){ cylinder(r=35.5,h=15,$fn=100); translate([0,0,-1.5]) cylinder(r=1.25,h=15,$fn=20); for (i = [0 : 7]) translate([sin(i*45)*8,cos(i*45)*8,-1.5]) cylinder(r=1.25,h=15,$fn=20); for (i = [0 : 7]) ...
glb/cad_c947cee98f26.glb
Create a stylized character model by combining several geometric primitives. Start with a central body formed by the union of two spheres: one sphere scaled to 2.6mm x 3.2mm x 2.8mm and a second sphere scaled to 2.6mm x 3.2mm x 3.8mm positioned 3mm higher along the Z-axis. Enclose these within a larger 4x scale factor....
scale([4,4,4])union() { difference() { union() { scale([.65,.8,.7]) sphere(6); scale ([.65,.8,.95]) translate([0,0,3]) sphere(4); } translate([-6,-6,-12.5]) cube(12); } translate([0,0,-1.5])sphere(2.35); difference() { scale([1.6,1,1])translate([-.2,-1.2,-4])sphere(1.2); translate([-2.5,-3,-8.5])cube(4); } differenc...
glb/cad_162c68d988e8.glb
Create a stylized character model consisting of a rounded body, a large head, and small limbs. Start by constructing the body as a composite shape: combine a cylinder with a height of 3mm and a radius of 9mm with a sphere of radius 9mm (scaled to 0.9 in X and 0.75 in Z), then add another sphere of radius 8mm positioned...
scale([1.1,1.1,1.1]) hull() { hull() { cylinder(3,9,8); scale([.9,1,0.75]) sphere(9); } translate([0,0,3]) sphere(8); } difference() { scale([1,1,0.75]) sphere(11); translate([-10,-10,5]) cube(30); } translate([0,0,17.3]) hull() { hull() { cylinder(0.7,8,8); scale([1,1,.8]) sphere(8); } translate([0,0...
glb/cad_8c81ce136a57.glb
Create a Dalek model by assembling a head, a conical body, and various attachments. Start with a head consisting of a sphere with a radius of 2.25mm centered at [0, 0, 8]. For the base, create a flattened sphere with a radius of 2.1mm, scaled to 2.5mm in width and 2.3mm in depth and 0.5mm in height, positioned at [0, 0...
scale([2,2,2]); union() { difference() { translate([0,0,-.3])scale([2.5,2.3,.5])sphere(2.1); translate([-4.9,-4.9,-8.4])cube([10,16,7.5]); } cylinder(7,4,2); translate([-1,1.8,4.8])rotate([10,0,0])cube([2,1.5,1]); intersection() { translate([.7,7,5.6])rotate([94,20,0])cylinder(6,.2,.2); difference() { translate([.7,...
glb/cad_0e8a0d286971.glb
Create a Dalek model starting with a central body consisting of a cylinder 7mm tall with a radius of 4mm and a 2-facet resolution, topped with a sphere of radius 2.25mm. Position an eyestalk by placing a cylinder 3mm long with a radius of 0.2mm, rotated 94 degrees, extending from the top of the head; cap this stalk wit...
difference() { sphere(2.25); translate([0,0,-8])cylinder(7,4,2); } intersection() { translate([1.2,0,4])rotate([0,30,0])cylinder(1.7,.2,.2); translate([-2.2,0,4])rotate([0,150,0])cylinder(1.7,.2,.2); } translate([1.2,0,.7])rotate([0,30,0])cylinder(1.7,.2,.2); translate([-2.2,0,2])rotate([0,150,0])cylinder(1.7,.2,.2)...
glb/cad_7638734cecb2.glb
Create a stylized violin model. For the body, construct a rounded, symmetrical form by intersecting a sphere of radius 6.5mm (scaled by 1.09 in X, 0.7 in Y, and 1.2 in Z) with a cube of 8mm per side centered at [-4, -3.8, -8]. Hollow out the top of this body by removing a scaled sphere of radius 4.5mm and two cylinders...
difference() { union() { translate([-1.2,-3,0]) scale([.4,.4,4]) cube(5,5,5); translate([-.2,-2,20.3]) sphere(r=1.9); intersection() { translate([-4,-3.8,4]) cube(8,8,8); scale([.7,.5,1]) translate([0,0,8]) sphere(r=6); } scale([.5,1,1]) translate ([-.2,-1.6,15]) rotate([90,90,90]) cylinder(4.5,.5,.5); scale([.5,1,1...
glb/cad_3c4833e0fac1.glb
Create a stylized violin model consisting of a body, a neck, and a scroll. Form the main body by creating a sphere with a radius of 6.5mm, then scale it to 1.09 in the x-axis, 0.7 in the y-axis, and 1.2 in the z-axis. Flatten the bottom of this body by intersecting it with a cube of 8mm per side positioned at x-4, y-3....
difference() { union() { translate([-1.2,-3,0]) scale([.4,.4,4]) cube(5,5,5); translate([-.2,-2,20.3]) sphere(r=1.9); intersection() { translate([-4,-3.8,4]) cube(8,8,8); scale([.7,.5,1]) translate([0,0,8]) sphere(r=6); } scale([.5,1,1]) translate ([-.2,-1.6,15]) rotate([90,90,90]) cylinder(4.5,.5,.5); scale([.5,1,1...
glb/cad_2ab6034c46fa.glb
Create a stylized giraffe by assembling the following geometric components, scaled overall by 0.8. For the body, place a sphere with a radius of 6mm, scaled by 2.5 in X, 1.5 in Y, and 1.5 in Z, centered at [8, 8, 20]. Attach four legs, each consisting of a cylinder with a radius of 5mm and height of 4mm, topped with a ...
scale(.8) union() { translate ([5,5,0]) union() { cylinder(5,4,2); translate([0,0,5]) rotate([-5,15,0]) cylinder(25,2,2); } translate ([11,20,0]) union() { cylinder(5,4,2); translate([0,0,5]) rotate([9,0,0]) cylinder(23,2,2); } translate ([25,5,0]) union() { cylinder(5,4,2); translate([0,0,5]) rotate([-5,0,0]) cylin...
glb/cad_e25680a998b7.glb
Create four identical cubes, each measuring 10mm on all sides, and align them in a row along the x-axis. For the first cube, positioned at x=2, y=5, z=0, carve the text "abc" into the front face. For the second cube, positioned at x=15, y=5, z=0, carve the text "123" into the front face. For the third cube, positioned ...
Font="Helvetica"; FontDepth=1; TWEAK=0.01; label1="123"; label2="abc"; translate([2,5,0]) difference() { cube([10,10,10]); translate([0, FontDepth, 2]) rotate([90,0,0]) linear_extrude(FontDepth+TWEAK, convexity = 64) text("abc", 5, Font); } translate([15,5,0]) difference() { cube([10...
glb/cad_1a2c2af2e176.glb
Create a pair of glasses frames consisting of a front frame and two temples. For the front frame, create two symmetrical lens openings. Each lens area is defined by a hull of eight ellipses, resulting in a width of 53.5mm and a height of 23mm, slanted at 18 degrees. The frame thickness is 5mm, with a 2mm wide rim aro...
glass_tw = 53.5; glass_h = 23; glass_slant = 18; frame_w = 2; frame_t = 5; hinge_b_h = 8; hinge_b_w = 2; inner_hinge_h = 3; hinge_r = 1; hinge_b_d = 6; bridge_l = 14; bridge_w = 3; temple_l1 = 100; temple_r = 30; temple_l2 = 20; temple_angle = 60; temple_t = frame_t-2; temple_w1 = hinge_b_h-4; temple_w2 = hinge_b_h...
glb/cad_bfda6e73f465.glb
Create a Droid Razr Tripod Mount by constructing a main body and a mounting base. Start with a rectangular block for the phone holder that is 11.45mm high, 72.5mm wide, and 17.5mm deep. Hollow out the center of this block to create a slot for the phone, leaving walls that are 2.5mm thick. At the base of the holder, cr...
camerawidth=72.5; cameraheight=11.45; nutwidth = 11.5; nutthickness=5.5; holeR=3.2; nutbottomwall=1; nutsidewall=2; gripperthickness=2.5; gripperoverhang=5; gripperheight=nutwidth+2*nutsidewall; nutsection = nutwidth/1.732; union(){ difference() { union(){ cube([cameraheight+2*gripperthickness,camerawidth+2*gripp...
glb/cad_a3101aa850a1.glb
Create a customizable embossing stamp consisting of a rectangular base and a textured top surface. Start by creating a solid cube with a width of 26mm, a height of 26mm, and a depth of 15mm. On the top face of this cube, add a surface relief based on a 150 by 150 pixel grayscale image. The relief should be scaled to fi...
image_file = "emboss-surface.dat"; part_width = 26.0; part_height = 26.0; ridge_thick = 3.0; punch_length = 15.0; $fa = 0.1; $fs = 0.2; image_width = 150; image_height = 150; translate(v = [0, 0, punch_length]) scale(v = [part_width / image_width, part_height / image_height, ridge_thick]) surface(file=image_fi...
glb/cad_5e70d7349db6.glb
Create a bicycle mirror mount consisting of a cylindrical base and an integrated pusher. Start with a main cylindrical base 21mm high with a radius of 17.5mm. Centered within this base, create a vertical hole with a radius of 2mm. On the side of the base, create a horizontal hole 40mm long with a radius of 4mm to accom...
mirror_holder_base_height=21; mirror_holder_pusher_height=21; module mirror_holder() { difference () { union () { mirror_holder_base(); translate([0,0,mirror_holder_base_height/2-0.1]) mirror_holder_pusher(); }; translate([0,0,(mirror_holder_base_height/2+mirror_holder_pusher_height/2)/2-2]) cylinder (r=11/...
glb/cad_6041fb9af606.glb
Create a bicycle mirror mount pusher. Start with a main cylinder that has a radius of 9.5mm and a total height of 24mm, centered on the Z-axis. From this main body, remove a central vertical cylindrical hole with a radius of 4.5mm that runs the full height of the part. Additionally, remove a hexagonal hole from the bot...
mirror_holder_pusher_height=24; module mirror_holder() { difference () { union () { mirror_holder_pusher(); }; translate([0,0,0]) cylinder (r=9/2,h=mirror_holder_pusher_height,center=true); translate([0,0,-mirror_holder_pusher_height/2+4]) cylinder (r=15/2,h=9,center=true,$fn=6); }; } module mirror_hold...
glb/cad_af4763ab4c7e.glb
Create a cubicle divider mount consisting of a U-shaped base and a support head. First, construct the U-shaped base by combining three rectangular prisms, each 9mm thick. Place one prism measuring 25mm by 5mm by 9mm to form the bottom connector. Attach two perpendicular arms to the ends of this connector, each measurin...
module cubicle_mount(gap=25) { include <support_head.scad>; union() { color("red"){ cube([gap, 5, 9]); cube([5, 40, 9]); translate([gap,0,0]) { cube([5, 40, 9]); } } translate([-6,26,4.5]){ support_head(); } } } cubicle_mount();
glb/cad_abb58cdff118.glb
Create a parametric turning knob by starting with a main cylinder 20mm high with a radius of 18mm. Around the outer perimeter of this cylinder, add eight evenly spaced vertical grooves. Each groove is formed by a cylinder with a radius of 1mm, positioned at the edge of the main body and running the full 20mm height. T...
bore = 5.2; knob = 18; difference(){ union(){ cylinder(h=20, r=knob, $fn=200); for ( i = [0 : 7] ) { rotate( i * 360 / 8 , [0, 0, 1]) translate([0, knob, 0]) rotate([2.8, 0, 0]) cylinder (h = 20, r = 1, $fn=50); } translate([-5,knob-1,0]) polyhedron( points=[ [0,...
glb/cad_bcceb8d6299a.glb
Create a Mac Pro lid by generating a circular shroud through a rotational extrusion. The cross-section of this shape is defined by a profile that starts with a circle of radius 2mm centered at coordinates (2, 2). This circle is integrated with a polygon defined by the vertices [0, 2], [0, 4.25], [1.75, 6], [2.5, 6], [2...
$fa = 3; $fs=.1; module macpro_shroud() { rotate_extrude() translate([112.08/2,-6,0]) { translate([2,2]) circle(r=2); polygon( points = [ [0,2], [0,4.25], [1.75,6], [2.5,6], [2.5,0], [2,0] ], paths=[ [0,1,2,3,4,5]...
glb/cad_9a90368fc06a.glb
Create a GT2 Belt Ziptie Tensioner by starting with a main rectangular block measuring 20mm in length, 6mm in thickness, and 8mm in width. Carve a longitudinal channel through the center of the block along its length, with a width of 3mm and a height of 0.9mm. Along the top edge of this channel, create a series of rect...
length = 20; thickness = 6; width = 8; belt_thickness = 0.9; belt_pitch = 2; teeth_height = 1.2; teeth_width = 0.8; tab_length = 6; tab_thickness = 3; zip_hole_diameter = 3; difference() { cube(size=[length,thickness,width], center=false); translate([0,((thickness-belt_thickness+teeth_height)/2),0]) cube([length-b...
glb/cad_4127a9755c88.glb
Create a Nerf Longstrike CS6 Mod spacer by constructing a hollow cylinder with an outer diameter of 28mm and an inner diameter of 25.5mm. The wall thickness should be 1.25mm. Set the total height of the cylinder to 7mm. Ensure the shape is perfectly circular and centered, forming a thin, uniform ring.
od=28; id=25.5; h=7; translate([0,0,h/2]) difference() { cylinder(r=od/2, h=h, center=true); cylinder(r=id/2, h=h+1, center=true); }
glb/cad_a2f12a6a4190.glb
Create a bee nest consisting of a honeycomb grid of hexagonal tubes. The overall structure should be 40mm high. Each individual cell must have an inner diameter of 9mm and a wall thickness of 2mm. Arrange the cells in a staggered grid consisting of 2 rows and 4 columns. The cells should be joined as a single solid pi...
height=40; inner_d=9; wall_t=2; rows=2; columns=4; use_hexagons=1; fix=0; a_bit=0.1; $fn=6*use_hexagons; union(){ translate(v=[wall_t+(inner_d/2),wall_t+(inner_d/2),height/2]){ for (i=[0:columns-1]){ translate (v=[i*(inner_d+(wall_t/2)) -(wall_t/2)*i*use_hexagons,(i%2)*((wall_t+inner_d)/2 -use_hexagons*0.0*...
glb/cad_7461c3162aa1.glb
Create a customized ring with an inner diameter of 15.09mm and a wall thickness of 2mm. The ring's cross-section is not uniform; it should be 5mm wide at the back and taper toward the front at a 15-degree angle. On the outer face of the ring, emboss the text "#1 MOM" with a height of 4mm and a spacing of 1mm between c...
use <write/Write.scad> ring_size = 15.09; c_r=ring_size/2; thick=2; ring_width=5; ring_angle=15; text_size_face = 4; space_size_face=1.0*1; text= "LOVE YOU"; text_size_interior = 3; space_size =1.0*1; part = "ring"; s_r=c_r+2*thick; x_offset=-thick; y_b=ring_width/2; x_b=sqrt(s_r*s_r-y_b*y_b); angle=ring_...
glb/cad_c42677a379a4.glb
Create a sphere with a diameter of 20mm. The sphere should be constructed using a facet resolution of 45 segments to give it a slightly faceted, geometric appearance rather than a perfectly smooth surface.
$fn = 45; minkowski () { union() { linear_extrude(file = "cad5.dxf", layer = "LAYER1", height = 7); linear_extrude(file = "cad5.dxf", layer = "LAYER2", height = 1.2); } sphere (1); }
glb/cad_7921c0f727c3.glb
Create a Curved Keyboard base by starting with a solid cylinder 75mm in radius and 15mm in height. Cut this cylinder in half along its diameter to create a semi-circular slab. From this semi-circle, remove a smaller concentric semi-cylinder with a radius of 68mm and a height of 12mm, leaving a 7mm thick outer rim. Wi...
wide=65; long=75; lip=7; tall=15; toplip=3; keyext=long*.6; cherry=14.1; cherrylip=1.48; cherryspace=1.8; keyspace = 19.5; $fa = 1; difference(){ cylinder(h=tall,r=long); translate([0,-long,0]) cube([long*2,long*2,tall]); translate([-long,-long*2,0]) cube([long*2,long*2,tall]); translate([-lip/2,lip/...
glb/cad_a482dc917074.glb
Create a Curved Keyboard base by constructing a series of repeating key-mount units arranged in an arc. First, create a single key-mount unit consisting of a rectangular block 7.5mm wide, 23mm long, and 21mm high. Within this block, remove a central rectangular hole that is 14.1mm wide, 1.8mm long, and 1.8mm high, cent...
cherry=14.1; cherrylip=1.5; cherryspace=1.8; capclearh=20; capclearw=15; $fn=50; knuckLen = 100; keyw= 21; keyl = 23; keyd = cherrylip + 6; transl=(keyl-cherry)/2; transw=(keyw-cherry)/2; translate([52.8,85.35,0]) cube([15,7,keyw]); translate([-63.35,88,0]) cube([15,7,keyw]); for(z=[65:11.8:120]){ rotate(a= [0,0,z]...
glb/cad_1c6a2ab2c583.glb
Create a Curved Keyboard base by constructing a rectangular frame with an open center. Start with a main outer body that is 69.5mm wide, 130mm long, and 20mm tall. From this main volume, remove a central rectangular block measuring 64.5mm wide, 117mm long, and 20mm tall, positioned 6.5mm from the front and back edges t...
keywidth=21.5; wide=keywidth*3; wlip = 5; tall=20; tallest = 25; long=130; lip = 13; jog = 7.5; braceheight=7; translate([wide,0,0]) cube([wlip,long, tall + braceheight]); translate([-keywidth-wlip,jog,0]) cube([wlip,long, tallest + braceheight]); translate([-jog,0,0]) cube([jog,jog,tall]); translate([0,long,0]) cube...
glb/cad_af14958b0016.glb
Create a micro-quadcopter race wicket consisting of two identical interlocking U-shaped components. Each component is based on a U-frame with a horizontal cross-bar 232mm wide, 10mm thick, and 10mm high, connected to two vertical side-bars that are 10mm wide and 10mm thick, extending 169mm in depth. For the base compo...
build_plate_width = 252; build_plate_depth = 199; buffer = 10; u = 10; peg_depth = 10; peg_radius = u / 3; foot_width = 30; foot_height = 50; wicket_width = build_plate_width - buffer - 2*u; wicket_depth = build_plate_depth - 2*buffer - 2*u - peg_depth; echo(str("Wicket = ", wicket_width, " mm wide by ", wicket_dept...
glb/cad_426a7198a5ef.glb
Create a vented enclosure adapter consisting of three stacked, concentric tapered hollow sections. The first bottom section is a hollow cylinder with a height of 30mm, an outer bottom radius of 51.8mm tapering to an outer top radius of 49.7mm, and an inner bottom radius of 51.8mm tapering to an inner top radius of 49.7...
big_r=51.8; small_r=12.3; h1=30; h2=big_r-small_r; h3=20; thick=2.2; bottomThick=0; small_taper=1.1; big_taper=2.1; eps=.001; $fn=200; module pipe_fit(){ union() { sep0=thick/(sin(atan(h1/(big_taper)))); sep1=thick/(sin(atan(h2/(big_r-big_taper-small_r)))); sep2=thick/(sin(atan(h3/(small_taper)))); e...
glb/cad_e2f885b40879.glb
Create a vented enclosure flange by starting with a square base measuring 36mm by 36mm with a thickness of 2.5mm. Center a circular hole through this base with a radius of 14.1mm. From this base, extend a tapered hollow pipe upwards to a total height of 20mm. The outer wall of this pipe should taper from a radius of 16...
square_h=36; big_r=14.1; small_r=12.2; h=20; thick=1.5; bottomThick=2.5; small_taper=0; eps=.001; $fn=100; module pipe() { union(){ difference() { cylinder(h=h,r1=big_r+2*thick,r2=small_r+thick); translate([0,0,-eps]) cylinder(h=h+2*eps,r1=big_r,r2=small_r); } if (small_taper!=0) { tr...
glb/cad_5596aeb377cd.glb
Create a Vented Lulzbot Mini enclosure latch by starting with a rounded rectangular base measuring 65mm in length, 8mm in width, and 3.5mm in height, using a corner radius of 0.6mm. At the end of this base, add a vertical section that is 8mm wide and 13mm high, with a radius of 8.25mm. Incorporate a semi-circular protr...
include <util.scad>; latch_l=65; latch_t=3.5; latch_w=8; hang=13; hang_r=(hang+latch_t)/2; ecc=.4; difference() { union() { roundedCube([latch_l,latch_w,latch_t],.6); translate([latch_l-.2,0,0]) cube([.2+2*eps,latch_w,latch_t]); translate([latch_l-11,latch_w,hang_r]) rotate([0,90,-90]) scale([1,ecc,1...
glb/cad_bbe13ab97e5e.glb
Create a Vented Lulzbot Mini enclosure plate by starting with a rectangular base measuring 45mm wide, 42mm long, and 3.5mm thick, with all top edges rounded by a 1mm radius. At two opposite corners of the plate, centered at coordinates [7, 7, 0] and [7, 35, 0], create screw holes. Each hole consists of a 3.6mm diamet...
plate_l=42; plate_w=45; plate_t=3.5; screw_r=1.8; screwHead_r=2.85; screwHead_t=2; screwLoc1=[7,7,0]; screwLoc2=[7,plate_l-7,0]; hingeHole_r=1.9; hinge_r=5; hinge_space=1.3; hinge_h=plate_l/6-hinge_space*3/6; hinge_off=5; $fn=50; eps=.0011; module roundedCubeTop(cubeDim,r=0) { minkowski(){ sphere(r=r,$fn=25...
glb/cad_a731281b82b1.glb
Create a Vented Lulzbot Mini enclosure component by combining three primary geometric elements. Start with a base cylinder that has a radius of 10mm and a height of 3mm. Centered on top of this base, place a second cylinder with a radius of 8mm and a height of 12mm. Within this second cylinder, create a toroidal void b...
rad=10; mount_r1=8; mount_h=12; mount_r2=9; mount_thick=9; ecc=.7; eps=.001; $fn=100; union() { translate([0,0,mount_h+2]) scale([1,1,ecc]) sphere(r=rad); cylinder(r=rad,h=3); difference() { cylinder(h=mount_h,r=mount_r1); translate([0,0,mount_h-mount_r2]) rotate_extrude() translate([mo...
glb/cad_77196090b23c.glb
Create a Vented Lulzbot Mini enclosure brace by starting with a cube that has a side length of 39.7mm and rounded corners with a radius of 1mm. From this main cube, remove three identical L-shaped channels to create slots for three aluminum angles. Each L-shaped channel consists of two intersecting rectangular prisms, ...
thick=3; innerLength=19.7; cushion=10; eps=.01; roundR=1; cubeSide=innerLength+thick+2*cushion; offset=1.12*cubeSide; module roundedCube(cubeDim,r=0) { if (r!=0) { minkowski(){ sphere(r=r,$fn=25); translate([r,r,r]) cube(cubeDim-[2,2,2]*r); } } else { cube(cubeDim); } } module ...
glb/cad_bfd1c2abbf9b.glb
Create a bookstand for an exercise bike by constructing a composite geometric shape. Start with a base block 119mm wide, 20mm deep, and 55mm high. Modify this base by intersecting it with a cylinder of radius 225.26mm centered at X=0, Y=-206.51, and Z=0 to create a curved front profile. Add a thin rectangular ledge on ...
CUBE_WIDTH=119; doveTail(); ledge(); dropDown(); scoop(); module doveTail() { intersection() { translate([-CUBE_WIDTH/2, 0, 0]) cube([CUBE_WIDTH, 20, 55]); translate([0, -206.51, 0]) cylinder(r=225.26, h=55, $fn=256); } } module ledge() { translate([-CUBE_WIDTH/2,0,54.75]) cube([CUBE_WIDTH, 26, 5]); }...
glb/cad_bcdb3f06eea0.glb
Create a buzzer holder for a flight controller by starting with a rectangular base measuring 31mm in length, 9mm in width, and 2mm in height. At both ends of the base, 4mm from the edges and centered along the width, create countersunk screw holes. Each hole consists of a 3mm diameter cylinder extending 1mm deep, toppe...
$fn=50; length = 31; width = 9; height = 2; screw_indent = 4; buzzer_indent = 11; module screw_hole() { cylinder(h=4,r=1.5); translate([0,0,1]) cylinder(h=2,r=2.1); } module buzzer_opening() { difference() { cylinder(h=4,r=7); cylinder(h=4,r=6); } } difference() { cube([length,width,height]); translate([...
glb/cad_bb15becc5485.glb
Create a replacement button for a camera mod kit by constructing a tiered cylindrical shape. Start with a base cylinder that has a diameter of 13mm and a height of 2.5mm. Centered on top of this base, add a second cylinder with a diameter of 11.75mm and a height of 3.3mm. To create the locking mechanism, add a rectangu...
$fn=128; base=13; top=11.75; cylinder(d=base,h=2.5); cylinder(d=top,h=2.5+0.8); translate([0,0,2.5/2]) cube([15.6,1.3,2.5],center=true); intersection() { translate([0,0,-5+2.5+0.0]) scale([1,1,0.7]) sphere(d=20); translate([-50,-50,3.2]) cube([100,100,20]); }
glb/cad_0715dfdf8483.glb
Create a Reuleaux Tetrahedron with a scale factor of 30mm. To construct this geometry, start by defining a regular tetrahedron. Place four spheres, each with a radius equal to the edge length of that tetrahedron, centered at each of the four vertices. The final 3D model is the intersection of these four spheres. Ensure...
function sum(a, z=0, i=0) = i < len(a) ? sum(a, z + a[i], i+1) : z; function mean(a) = sum(a, a[0], 1) / len(a); function tetrahedron(d = 1) = let( p = norm([d, d]) / 2, ps = [ [p, 0, 0], [0, p, 0], [0, 0, p], [p, p, p], ], c = mean(ps), verts = [ for (p = ps) ...
glb/cad_b72c49285ec9.glb
Create a Reuleaux tetrahedron with a scale factor of 10mm. Construct this shape by finding the intersection of four spheres, where each sphere's center is positioned at a vertex of a regular tetrahedron and the radius of each sphere is equal to the edge length of that tetrahedron. Ensure the final geometry is the share...
function sum(a, z=0, i=0) = i < len(a) ? sum(a, z + a[i], i+1) : z; function mean(a) = sum(a, a[0], 1) / len(a); function tetrahedron(d = 1) = let( p = norm([d, d]) / 2, ps = [ [p, 0, 0], [0, p, 0], [0, 0, p], [p, p, p], ], c = mean(ps), verts = [ for (p = ps) ...
glb/cad_4e8ad1d69a79.glb