Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a curtain hook bracket. Start with a main cubic body measuring 25mm wide, 12.5mm high, and 25mm deep. Carve a semi-cylindrical channel through the center of the block to accommodate a 15mm diameter rod, ensuring the remaining wall thickness around the rod is 5mm. At the back of the bracket, create a flat verti...
rod_diam=15; rod_r=rod_diam/2; wall_thickness=5; screw_d=6; screw_r=screw_d/2; hook_size=rod_diam+wall_thickness*2; back_height = 25; screw_offset=5; module rod() { translate([rod_r+wall_thickness,500,rod_r+wall_thickness]) rotate(a=[90,0,0]) cylinder(r=rod_r,h=1000); } module screw_hole() { rotate([0,90,0]) cy...
glb/cad_ab7a670b641b.glb
Create a vertical carriage for a Rostock delta robot. The main body is a rectangular block 76mm wide by 24mm high. Position two cylindrical mounts for LM8UU bearings, centered 60mm apart (at x = -30 and x = 30). Each mount is a cylinder with a radius of 8mm and a height of 25mm, featuring a central hole with a diamet...
width = 76; height = 24; offset = 25; cutout = 13; middle = 2*offset - width/2; module parallel_joints(reinforced) { difference() { union() { intersection() { cube([width, 20, 8], center=true); rotate([0, 90]) cylinder(r=5, h=width, center=true); } intersection() { translate([0, 18, 4]) rotate...
glb/cad_91de409a7584.glb
Create a Parametric Robot Wheel with a biohazard-inspired spoke pattern. Start with a main wheel body that is 5mm thick. The outer rim is a ring with an outer diameter of 102mm and a rim height of 7mm, designed to hold an o-ring with a 7mm cross-sectional diameter. The inner diameter of the wheel is 95mm. For the sp...
tireCSDiameter = 7; tireID = 95; tireStretch = 1.00; wheelWidth = 5; rimHeight = 7; numberOfSpokes = 3; hubDiameter = 15; hubHeight = 16; shaftDiameter = 4; setScrewDiameter = 3; setScrewNutDiameter = 5.4; setScrewNutThickness=2.3; setScrewCount=1; hubZOffset=-wheelWidth/2; baseFilletRadius=2.5; topFilletRadius=2; ch...
glb/cad_eded97a9f06f.glb
Create a Dillon Locator Pin Lifter Tab. Start with a base shape formed by the convex hull of a cylinder with a 6.3mm diameter and a rectangular block measuring 13.8mm by 6.3mm by 0.9mm. Center a 4.1mm diameter hole vertically through this base. Attached to the end of this base, add a finger-hold grip. This grip is a ...
module tab_finger_hold_prof() { linear_extrude(height=2.6) { polygon([[0,-7.5],[6.5,-7.5],[8.25,-3.15],[8.25,3.15],[6.5,7.5],[0,7.5]]); } for(i=[0:3]) { translate([.5 + (i*1.5),-7.5,0]) cube([1,15,2.9]); } } module locator_pin_tab() { difference() { hull() { ...
glb/cad_16ee81533403.glb
Create a Yin-Yang Fidget Spinner with a central bearing hole and three peripheral weight holes. The overall thickness of the body is 7mm. Start with a central cylinder 22mm in diameter and 7mm high to accommodate a 608 bearing. Around this center, place three weight-holding sections spaced 120 degrees apart. Each weig...
objects = 3; whichWeight = "5/16 hex nut"; radius = 0; rotation = 140; overlap = 1; reduce = 0; centerBearingDiameter = 22; $fn = 60; x = 0; y = 1; z = 2; thick = 3; space = 2; inch = 25.4; bearing = [centerBearingDiameter, centerBearingDiameter, 7]; bearing608 = [22, 22, 7]; sae = [.577*inch, .5 * inch, 7]; s...
glb/cad_773378acc545.glb
Create a 6x7 negative carrier consisting of two identical flat plates. Each plate starts as a rectangular base measuring 126mm by 154mm with a thickness of 2mm. From this base, remove a large central rectangular section measuring 100mm by 15mm, centered horizontally and positioned 94mm from the top edge. At the four ...
module base(){ difference(){ square([126, 154], center=true); translate([0, -15,0]) square([70, 58],center=true); } translate([-76, -13,0]){ square([26, 126], center=true); } translate([76, -13,0]){ square([26, 126], center=true); } translate([-10, 104,0]){ ...
glb/cad_e3cf3813d13d.glb
Create a 3D model titled Esphera y Cubos consisting of three intersecting geometric shapes. First, place a rectangular prism measuring 50mm in length, 25mm in width, and 5mm in height at the origin. Second, create a sphere with a radius of 50mm centered at the coordinates (50, 50, 50). Third, create a cube with side le...
cube([50,25,05]); translate([50,50,50]) { union(){ sphere(50); cube(50, Center=true); } }
glb/cad_c554a1177604.glb
Create a Reach3d Proximity Sensor Mount consisting of a rectangular base and a cylindrical sleeve. Start with a rectangular base measuring 60mm in length, 10mm in width, and 4mm in height. Center this base on the Z-axis. Remove two vertical holes from this base to create mounting points: one hole centered at X=10mm a...
translate([-30,0,2]) { translate([15,0,4]) linear_extrude(height = 4.5, center = true) square([10.5,10]); difference() { linear_extrude(height = 4, center = true) square([60,10]); translate([10,4.75,0]) cylinder(h=4.1, r=2.6, center= true, $fn=100); translate([50,4.75,0]) cylinder(h=4.1, r=2.6, center= true, $fn=1...
glb/cad_8b14c80898d4.glb
Create a Hitec Zipper motor mount. Start with a central conical body that has a bottom radius of 7.6mm and tapers up to a top radius of 5.7mm over a total height of 10.4mm. Bore a central hole through the entire height of the part, starting with a 5mm diameter hole at the bottom that narrows to a 4mm diameter hole at t...
module hole_mod (pRad,pHight=-5, circRad,cirHight,circQ=10,num){ for (i=[1:num]) { translate([pRad*cos(i*(360/num)),pRad*sin(i*(360/num)),pHight]) cylinder(r=circRad,circHight,$fn=circQ); } } translate([0,0,0])rotate(a=[0,0,0]) { difference() { translate([0,0,0])cylinder(h=10.4, r=5.7,r1=7.6,$fn=100,c...
glb/cad_ca29b1d5116c.glb
Create a Servo Protector consisting of a flat base with a rounded, aerodynamic cover. Start by creating a flat rectangular base 40mm wide, 40mm deep, and 0.4mm thick. Centered on this base, construct a rounded cover that is 58mm long, 12mm wide, and 14mm tall. This cover should be formed by combining a sphere with a ra...
long=58; wide=12; tall=14; module hole_mod (pRad,pHight=-1, circRad,cirHight,circQ=10,num){ for (i=[1:num]) { translate([pRad*cos(i*(360/num)),pRad*sin(i*(360/num)),pHight]) cylinder(r=circRad,circHight,$fn=circQ); } } module main(){ translate([0,0,.4])sphere(10);translate([-20,0,.4])rotate(a=[0,90,0]...
glb/cad_0bb60cc84009.glb
Create a Servo Protector by constructing a composite geometric form. Start with a base plate that is 40mm wide, 40mm deep, and 0.4mm thick. On top of this base, center a cylinder with a radius of 20mm and a height of 0.4mm, using a 20-facet resolution. Add a central decorative or structural element consisting of a sp...
module hole_mod (pRad,pHight=-1, circRad,cirHight,circQ=10,num){ for (i=[1:num]) { translate([pRad*cos(i*(360/num)),pRad*sin(i*(360/num)),pHight]) cylinder(r=circRad,circHight,$fn=circQ); } } module main(){ translate([0,0,.4])sphere(10);translate([-20,0,.4])rotate(a=[0,90,0]) cylinder(h=40, r=10,r=10,$...
glb/cad_cc5d10371a8c.glb
Create a customizable square clamp by starting with a solid square plate that is 150mm wide and 10mm thick. From this square, remove a smaller square section from the top-right corner by rotating a square of 25mm (one-sixth of the total width) by 45 degrees and centering it on the top-right vertex, effectively clipping...
square_width = 150; hole_diameter = 20; output_type = "STL"; material_thickness = 10; l1 = 3*square_width/4; l2 = hole_diameter + 10; if(output_type=="STL") {linear_extrude(height = material_thickness, center = false) square_creation(); } if(output_type=="DXF") {square_creation();} module square_creation() { diff...
glb/cad_b7200adb964d.glb
Create a sideways top filament holder designed to mount onto a 20mm extrusion. Start by creating a central rectangular mounting block with dimensions of 28mm in width, 20mm in height, and 20mm in depth, applying a 2mm fillet to the edges. Carve a 20.4mm square hole through the center of this block to accommodate the ex...
$fn = 64; aluSize = 20; aluFudge = 0.2; aluTot = aluSize + aluFudge*2; boltDiam = 4; aluStrength = 4; aluXTot = aluTot + aluStrength *2; spoolWidth = 110; spoolDiam = 130; spoolHole = 32; spoolFudge = 5; barFlareLen = 10; mainArmDiam = 20; uprightStrength = 4; filletRadius = 2; rotate([90,0,0]) { arms(); m...
glb/cad_4995b2e405f0.glb
Create a protective electronics case for an Arduino M0 Pro. Start with a rounded rectangular base of width 60mm and depth 50mm, with a total height of 15mm. The base should have a hollowed-out interior starting at a floor height of 2mm, leaving a wall thickness of approximately 2mm. On the side walls, create two recta...
include <M0_pro_case_slim_param_v1_2.scad> module pcbLeg() { translate([0, 0, 0]) difference() { cylinder(h = floorHeight + pcbPositionZ, r1=5.5/2, r2 = 4.5/2); } } difference() { union() { linear_extrude(height = height/2, convexity = 10) minkowski() { square([width, wide], center = true); circl...
glb/cad_f0db91b49074.glb
Create a button component for an Arduino M0 Pro Zero case. Start by creating a wide, short cylindrical base with a radius of 2.25mm and a height of 2mm. Centered on top of this base, add a taller, narrower cylinder with a radius of 2mm. The height of this second cylinder should be the total case height minus the floor ...
include <leonardo_case_slim_param_v1_2.scad> buttonSize = 4; buttonBaseHeight = 2; buttonBaseR = buttonSize/2 + 0.25 + layerWidth*3; module button() { union() { cylinder(h=buttonBaseHeight, r=buttonBaseR); cylinder(h=height - floorHeight - pcbPositionZ - pcbHeight - 3, r=buttonSize/2); translate([0, 0, height ...
glb/cad_ba69b837d70e.glb
Create a protective case for an Arduino M0 Pro. Start by constructing a rounded rectangular base with a hollowed-out center to accommodate the board, leaving a floor and walls. On the rear panel, cut a rectangular opening for the power jack (25mm x 9mm) and a separate rectangular opening for the USB port (10mm x 11mm...
include <M0_pro_case_slim_param_v1_2.scad> connectorRoundR = 2.54/2; connectorWide = 2.54*3; upperConnectorWidth = 44.704 + 2.54*2; upperConnectorXPos = 18.796 - 2.54; upperConnectorYPos = 50.8 - 2.54*2; lowerConnectorWidth = 35.56 + 2.54*2; lowerConnectorXPos = 27.94 - 2.54; lowerConnectorYPos = 2.54 - 2.54; icspCo...
glb/cad_d7c33bbd3f30.glb
Create a Succes Senior Hole Puncher consisting of two primary rectangular components aligned along a central axis. First, construct a base holder block measuring 58mm in width, 34mm in depth, and 13mm in height. Within this block, carve out a central rectangular slot measuring 150mm by 95mm and 2mm deep to accommodate ...
DIST_Y=6; DIST_X=18; HOLE_DIST=19; HOLE_R=2.5; H_BLOCK=15; HOLE_DEPTH=10; H_BASE=6.5; H_OPENING=2; BASE_EDGE=10; PAPER_X=150; PAPER_Y=95; module paper(h) { cube([PAPER_X,PAPER_Y,h]); } module hole(plus, r) { translate([DIST_X+plus,DIST_Y,-50+H_BASE+H_OPENING+HOLE_DEPTH]) cylinder(50,r=r,$fn=20); } module...
glb/cad_c61852e20f4b.glb
Create a Cactus Generator model consisting of several stylized cactus stems emerging from a shared base. Each cactus stem is formed by taking a sphere with a diameter between 10mm and 30mm and scaling it non-uniformly along the X, Y, and Z axes to create an elongated, ovoid shape. To give the stems a faceted, low-poly ...
num_of_cacti = 5; cacti_side_facets = 10; listcactip = rands(0,num_of_cacti,1); module cactusPart(height){ listcw = rands(.55,.85,1); cactusw=listcw[0]; listcl = rands(.35,.45,1); cactusl=listcl[0]; listch = rands(1.75,3,1); cactush=listch[0]; difference(){ scale([cactusw,cactusl,...
glb/cad_f575ed9c01ce.glb
Create a Print-n-Play Peg Solitaire set consisting of a triangular board and several matching pegs. Start by constructing the board as an equilateral triangle with a side length of 60mm and a thickness of 6mm. On the top surface of this board, create a grid of 15 circular holes arranged in five rows of decreasing lengt...
pegs = 5; boardHeight = 6; sideLength = 60; pegSpacing = sideLength / (pegs + 1); pegDepth = 5; pegHeight = pegDepth + 12; pegHoleRadius = 3; pegRadius = pegHoleRadius - 1.5; module peg_holes(pCount) { for (i = [0:pCount]) { translate([ i * pegSpacing - pegHoleRadius, 0, 0]) linear_extrude(height = pegDepth) c...
glb/cad_876c8b1b9ae9.glb
Create a configurable computer case foot with a total height of 30mm and an outer diameter of 30mm. Start by constructing a main cylindrical body that is 27mm tall. Remove a central vertical hole with a diameter of 11.5mm that extends from the top down to a height of 1mm from the base. At the bottom of this hole, creat...
OuterDiameter = 30; InnerDiameter = 11.5; InnerHeight = 1; DrillDiameter = 4; Height = 30; EdgeRadius = 3; MaxEdgeRadius = (OuterDiameter - InnerDiameter)/4; UsedEdgeRadius = min(MaxEdgeRadius,EdgeRadius); Epsilon = 0.1; EpsilonOffset = -0.05; $fn=64; module base(dOut, dIn, dDrill, h, hIn) { difference() ...
glb/cad_bb997b90ac58.glb
Create a wedge piece for wire shelves by constructing a hollow tapered cylinder with a height of 36mm. The cylinder should have a bottom outer diameter of 24.3mm and a top outer diameter of 21.3mm, with a concentric inner hole of 20mm in diameter running through the center. At a height of 25.2mm, integrate a thin ring ...
inner_d = 20; bottom_d = 24.3; top_d = 21.3; ring_t = 1; ring_off = 25.2; height = 36; tab_h = 8; tab_l = 2; ring_d = inner_d; ring_r = ring_d / 2; inner_r = inner_d / 2; bottom_r = bottom_d / 2; top_r = top_d / 2; module ring(outer, inner) { rotate_extrude() translate([inner, 0, 0]) circle(r = outer, $fn = 10); } ...
glb/cad_00a23dd8b4bc.glb
Create a clock hand with a total length of 120mm and a thickness of 1mm. The main body is formed by a hull connecting a circle with a diameter of 10mm at the base to a smaller circle with a diameter of 8mm positioned further along the length. This creates a tapered, elongated pointer shape that is rounded at the tip an...
$fn= 128*1; length = 120; clockhandType = "minutes"; module streched_circle(d, s) { hull() { translate([0, -s/2, 0]) half_circle(d); rotate([0,0,180]) translate([0,-s/2,0]) half_circle(d); } } module half_circle(d) { difference() { scale([1,0.9, 1]) circle(d=d); tran...
glb/cad_bc534f22005d.glb
Create a 2020 top-mounted filament holder consisting of two main components: a holder base and a removable support rod. First, construct the holder base. Create two mirrored vertical arms, each 12mm thick, 16mm wide, and high enough to clear a 200mm diameter roll. Separate these arms by 80mm. Connect the arms at the b...
part = "both"; mount_center_offset = 0; arm_thickness = 12; arm_width = 16; roll_width = 80; roll_diameter = 200; roll_hole_diameter = 60; rod_diameter = 7.5; mount_support_height_ratio = 0.5; rod_support_thickness = 4; rod_clearance = 8; bar_width = 20 + 1; bar_center_width = 6; base_height = 8; mount_t...
glb/cad_66580fc8da9a.glb
Create a Line Cutter consisting of two mirrored handle shells that enclose a utility knife blade. Each shell is a rounded rectangular block with a length of 110mm, a width of 33.2mm, and a thickness of 4mm. For each shell, carve out a central cavity to house a utility blade of 62.5mm length, 19.2mm height, and 0.61mm ...
$fn = 100; minkowski_cyl_dia = 2; minkowski_cyl_h = 1; blade_blen = 62.5; blade_tlen = 32; blade_hig = 19.2; blade_thi = 0.61; blade_cdia = 3.3; blade_cdep = 4; blade_cspa = 6.35; blade_cbolt_len = 10; blade_c = sqrt(pow(blade_hig,2)+pow((blade_blen-blade_tlen)/2,2)); blade_alfa = acos(blade_hig/blade_c); handle_th...
glb/cad_ef01a17d6a81.glb
Create a Heart Box consisting of two symmetrical mirrored halves that form a heart shape. Each half is a hollow shell with a wall thickness of 1.2mm. The overall dimensions of the heart are 40mm wide and 80mm long, with a total height of 20mm. The two halves are connected by a hinge mechanism. Create the hinge using c...
word1=""; word2=""; heart(word1,word2); font="Helvetica"; fontheight=12; fontthickness=1; T=0.4; G=0.0; S=30; Q=0.6; W=40; L=80; H=20; wall=Q*2; $fs=1; $fa=5; joint=0.3; joinr=H/5; hingeh=H/5+T; hingew=W/3-T; nubd1=1; nubd2=2; nubh=2.5; nubw=8; A=atan2(W,L-W); nubr=H/2-nubd2/2-T/2-Q; nuba=360*((nub...
glb/cad_3e85982aebdb.glb
Create a Parametric Prusa Vertex support structure. The model consists of a base plate and three vertical support braces. Start by creating a flat rectangular base with a height of 2mm. From this base, extend three vertical walls, each with a thickness of 13.9mm. The first wall is positioned at the front, the second ...
h = 318.26; theta = atan(h/183.75); rt = 60+(33.106*cos(64.983+(theta/2))); sint = sin(theta/2); cost = cos(theta/2); rotate ([0,0,theta/2]) import_stl("endpiece.stl", convexity = 50); mirror ([1,0,0])translate([-rt, 0,0]) rotate ([0,0,theta/2]) import_stl("endpiece.stl", convexity = 50); linear_extrude (height = 2...
glb/cad_4942e1d2253a.glb
Create a fidget spinner for growler tokens. Start by designing a central hub and two symmetrical lobes. The central hub is a cylinder with a diameter of 28.5mm (bearing diameter of 22.5mm plus a 3mm rim on all sides) and a height of 7mm. Extend two lobes from the hub, positioned 180 degrees apart. Each lobe is formed...
$fn = 100; bearing_dia = 22.5; bearing_rim = 3; bearing_height = 7; weight_dia = 38.0; weight_rim = 2; weight_height = 7; num_lobes = 2; edge_radius = 1; extra_spacing = 0; hole_dia = 6; hole_offset = 0; weight_spacing = bearing_dia/2 + weight_dia/2 + bearing_rim + extra_spacing; difference(){ for(angle = [0:...
glb/cad_97017f30adc5.glb
Create an LNG adapter wrench by constructing a hollow cylindrical ring with a height of 10mm and an outer diameter of 50mm. The wall thickness of this ring should be 4.5mm, creating an inner diameter of 41mm. From this ring, remove a cylindrical section with a radius of 30mm from both the top and bottom faces, centered...
module pipe (length, width1, width2, thickness) { difference () { cylinder (h=length, r1=width1, r2=width2); cylinder (h=length, r1=width1-thickness, r2=width2-thickness); } } module ring () { difference () { pipe (10, 25, 25, 10.5); rotate (a=[90, 0, 0]) translate (v=[0, 8, -22.5]) cylinder (h=45, r1=3.2, r2...
glb/cad_cffaa3764cdc.glb
Create a Parametric Fitted Twist Maker by constructing a hollow, twisted square column. Start with a square base that has a diameter of 100mm and rounded corners with a fillet radius of 10mm. Extrude this rounded square profile vertically to a total height of 100mm, applying a twist of 180 degrees over the length of th...
n_sides = 4; diameter = 100; height = 100; n_twists = .5; fillet = 10; thickness = 0.8; tolerance = 3; fillet_precision = 100; twist_precision = 400; hollow_spin(diameter - thickness - tolerance, false, true, false); module hollow_spin(od, bottom = true, top = true, hollow = true) { union(){ if (bottom)...
glb/cad_6563493caacb.glb
Create a 3D model of a trefoil knot using a pentagonal cross-section. The overall scale of the object should be 20mm. To form the knot, sweep a pentagon with a radius of approximately 1.33mm along a path defined by the parametric equations x = sin(t) + 2sin(2t), y = cos(t) - 2cos(2t), and z = -1.33sin(3t). As the penta...
s=20; $fn=5; d=1; q=2/3; h=4/3; module p(t) { translate([sin(t)+2*sin(2*t),cos(t)-2*cos(2*t),-h*sin(3*t)]) rotate([0,90+atan2(4,-4*cos(3*t)),atan2(4*sin(2*t)-sin(t),cos(t)+4*cos(2*t))]) rotate([0,90,0]) rotate([0,0,($fn%2)?3*(t-30)/$fn:180/$fn]) cylinder(r1=q,r2=0,h=0.01); } scale(s/2/h)for(t=[d/2:d:...
glb/cad_34bc67e9add0.glb
Create a Web Cam Perch by starting with a solid rectangular base measuring 80mm in width, 70mm in depth, and 15mm in height. Carve a rectangular hole out of the center of this base that is 60mm wide and 60mm deep, leaving a 10mm thick wall on the left side and 5mm thick walls on the other three sides. To complete the s...
difference(){ cube([80,70,15]); translate([10,0,0]){ cube([60,60,15]); } } difference(){ translate([-5,0,-12.5]){ cube([90,10,40]); } difference(){ cube([80,70,15]); translate([10,0,0]){ cube([60,60,15]); } } }
glb/cad_23b49fa2cf98.glb
Create a parametrized wheel by constructing a main cylinder with a diameter of 50mm and a height of 20mm, centered on all axes. Remove a smaller concentric cylindrical hole from the center of the wheel to create an axle passage; this hole must have a diameter of 10mm and a height of 60mm to ensure it passes completely ...
Diametro_Rueda = 50; Altura_Rueda = 20; Diametro_Eje = Diametro_Rueda*0.20; Altura_Eje = Altura_Rueda*3; difference(){ cylinder(r=Diametro_Rueda,h=Altura_Rueda, $fn=100, center=true); cylinder(r=Diametro_Eje, h=Altura_Eje, $fn=100, center=true); }
glb/cad_c985357c71b6.glb
Create a Pinecone Lamp by constructing a series of nested, hollowed-out spherical shells with decorative spikes. Start with a base sphere of radius 35mm, but remove the top half and the bottom center to create a hollow bowl. From the bottom center, remove a cylinder with a radius of 25mm and a height of 20mm to create ...
include <util.scad>; r=35; module spikewall() { rotate([90,0,0]) linear_extrude(r*3, center=true) polygon(points=[ [0,0], [1,1], [-1,1] ]); } difference() { union() { translate([0,0,-3]) difference() { sphere(r=r); translate([0,0,r]) sphere(r=r); translate([0,0,-(r+35)]) cube([r*3, r*3, 40+r*2], center=true)...
glb/cad_577aacbd0fc1.glb
Create a toy car model consisting of a central body and four wheels. Start by creating the main body as a rectangular base measuring 300mm in length, 176mm in width, and 15mm in height. On top of this base, center a large hemispherical dome with a radius of 176mm. For the wheels, create four identical cylinders, each ...
Diametro_Rueda = 50; Altura_Rueda = 20; Diametro_Eje = Diametro_Rueda*0.20; Altura_Eje = Altura_Rueda*3; union(){ rotate([90,0,0]){ translate([50, 0, 0]){ difference(){ cylinder(r=Diametro_Rueda,h=Altura_Rueda, $fn=100, center=true); cylinder(r=Diametro_Eje, h=Altura_Eje, $fn=100, center=true); } } translat...
glb/cad_645355e36b8d.glb
Create a faceted drinking cup by designing a hollowed-out twisted prism. First, create the outer volume by extruding an 8-sided regular polygon with a diameter of 80mm to a height of 100mm, applying a 180-degree twist along the vertical axis to create a spiral effect. To create the interior cavity, center a cylinder wi...
OD = 80; BaseFacets = 8; CupHeight = 100; BaseThickness = 4; module outerShape() { linear_extrude(height=CupHeight, twist=180) circle(d=OD, $fn=BaseFacets); } module innerShape() { color("purple") translate([0, 0, BaseThickness]) minkowski() { cylinder(d=OD*.8, h = CupHeight); sphe...
glb/cad_d2b68fe1e2fc.glb
Create a double lock cable tie consisting of a flat strap and two locking heads. The main strap body is 95mm long, 10mm wide, and 1mm thick, with rounded corners (3mm radius) and chamfered long edges. Position two locking heads at opposite ends of the strap. Each head is a rounded rectangular block 13mm long and 16mm...
length=95; width=10; distanceBetweenHeads=20; label="Printer"; thickness=1; xLabelPosition=15; yLabelPosition=0; letterSize=6; letterHeight=thickness; font = "Open Sans Condensed:style=bold"; wrinkleHeight=thickness; xWrinkleStart1=0; xWrinkleEnd1=xLabelPosition; xWrinkleStart2=45; xWrinkleEnd2=length; headLength=...
glb/cad_6792304053cb.glb
Create a ProMicroHousing consisting of a main case and a removable cap. First, construct the main case as a rectangular block with a length of 37.5mm, a width of 22.5mm, and a height of 12mm. Hollow out the center to create a slot for a board that is 33.5mm long, 18.5mm wide, and 2mm thick. Position this internal slo...
part = "case"; board_width = 18.5; board_length = 33.5; board_thickness = 2.0; board_slot_depth = .75; board_out_of_center_Z = 1.5; case_inner_height = 8; USB_openening_height = 8; USB_openening_width = 11; gap = 0.2; cap_Gap_width =1.7; cap_gap_height = 3; module dummy() { } houseTS = 2; houseTT = 2; capT...
glb/cad_f90d9ee0d954.glb
Create a Battleshots ship hull by first constructing a revolved solid of rotation. The profile for this rotation is a polygon with vertices at [0,0], [30,0], [32,0], [32,20], [26,20], [26,2], and [0,2]. Rotate this profile 360 degrees around the Z-axis to create a rounded, boat-like hull that is 60mm long, 30mm wide, a...
GlassR = 19; ShipH = 20; TileSize = 60; Thickness = 2; $fn=180; HullR = TileSize / 2; TileMiddle = TileSize / 2; Thickness = 2; SubtractThickness = Thickness + 2; ShipDeck(); module ShipDeck() { difference() { ShipHull(); translate([10,0,0]) Hole(0); Hole(1); translate([-10,0,0]) Hole(2); } } module ...
glb/cad_fab7f815fd87.glb
Create a Battleshots ship deck by constructing a revolved hull and cutting two circular holes into it. First, generate the main hull by rotating a specific profile around a central axis: the profile is a polygon with vertices at [0,0], [30,0], [32,0], [32,20], [25,20], [30,2], and [0,2]. This rotation creates a curved,...
GlassR = 19; ShipH = 20; TileSize = 60; Thickness = 2; $fn=180; HullR = TileSize / 2; TileMiddle = TileSize / 2; SubtractThickness = Thickness + 2; ShipDeck(); module ShipDeck() { difference() { ShipHull(); translate([5,0,0]) Hole(0); translate([-5,0,0]) Hole(1); } } module Hole(index) { translate([in...
glb/cad_a6f7cd39325a.glb
Create a curved train track section compatible with toy building brick systems. The model consists of two parallel curved rails and connecting cross-ties. Each rail is created by sweeping a specific profile along a circular arc with a diameter of 300mm. The rail profile is a complex polygon with the following coordina...
length = 120; diameter = 300; 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,8],[3,7],[4,7],[7,5.25],[9,5.25],...
glb/cad_bf817434218c.glb
Create a Toothbrush Runner by starting with a rectangular base measuring 34mm wide, 40mm long, and 2mm thick. On top of this base, center a smaller rectangular block that is 34mm wide, 22mm long, and 10mm high. Integrate a horizontal cylinder with a diameter of 12mm and a length of 30mm, positioned so it spans across...
difference(){ union(){ cube([34,40,2]); translate([0,9,0]) cube([34,22,10]); rotate([0,90,0]) translate([-15,20,0]) cylinder(20,6,6,$fn=60); } rotate([0,90,0]) translate([-15,20,-1]) cylinder(25,4.5,4.5,$fn=60); rotate([90,0,0]) translate([27,8,-30]) cylinder(20,5,5,$fn=60); rotate([90,0,0]) translate([27,8,-40]) cyli...
glb/cad_3fb144851862.glb
Create a flexible phone tripod mount consisting of a phone-holding clip and a tripod attachment base. First, construct the phone clip as a hollowed-out rectangular sleeve with a depth of 20mm. The outer dimensions should be 59.6mm wide by 19.3mm deep, with wall thicknesses of 3mm. The interior cavity should be 51.6mm...
$fn=32; PhoneWidth = 58.6+1; PhoneDepth = 9.3+1; PhoneBezel = 4; PhoneRad = 0.5; Depth = 20; WallThickness = 3; TabBase = 1; NutDiameter = 12.83+0.5; NutFlats = NutDiameter*cos(30); NutThread = 6.35; NutThickness = 5.7; TabThickness = NutThickness+2*TabBase; Tad = 0.1; Tad2 = Tad*2; module SlottedRectClip (XSize=10...
glb/cad_042708e730b3.glb
Create an e3d v6 fisheye mount by starting with a main cylinder 36mm in diameter and 5.8mm in height, centered on the origin. From this base, remove a central vertical cylinder with a diameter of 12.3mm and a height of 6mm. Carve out a rectangular slot 12.3mm wide, 20mm long, and 6mm high, centered on the origin and al...
module e3d_mount() { difference() { cylinder(d=36.0, h=5.8, center=true); union() { cylinder(d=12.3, h=6.0, center=true); translate([0, 10, 0]) cube([12.3, 20, 6.0], center=true); translate([0, 16.0, 0]) cube([36.0, 4.0, 6.0], center=true); for(a=[0:60:320])...
glb/cad_4dac658ccb07.glb
Create a customizable gyroscope keyring consisting of a series of concentric rings. Start with a central inner disc that is 7mm high and 25mm in diameter; emboss the word "Text" in 4mm bold Arial font onto the top surface of this disc. Surround this center with three concentric rings, each 7mm high and 4mm wide. Each...
pieceHeight = 7; pivotDiameter = 4; pivotTolerance = 1; innerDiameter = 25; numberOfRings = 3; ringsSeparation = 2; ringsWidth = 4; innerRingText = "Text"; textSize = 4; innerRing = 1; keyRing = 1; keyRingDiameter = 8; $fn=60; rot = numberOfRings%2 != 0 ? 1 : 0; if (keyRing == 1) { translate([0, innerD...
glb/cad_0e8f1baa3023.glb
Create a hinged box with a separate lid. The main body is a rectangular container with a length of 100mm, a width of 100mm, and a height of 35mm. The walls are 2mm thick. The four vertical corners of the body are rounded with a 2mm radius. The interior is hollowed out, leaving a 2mm wall thickness throughout. At the re...
lang = 100.0; brd1 = 100.0; brd2 = 100.0; hoek = 2.0; diep = 4.5; wall1 = 2.0; hoog1 = 35.0; hoog2 = 5.0; hinge1 = 8.0; hinge2 = 15.0; hinge3 = 15.0; hole1 = 2.1; hole2 = 2.0; fontb = "arial"; tekstb = "Box"; letterb = 14; fontd = "arial"; tekstd = "iPhone 4"; letterd = 18; rotated = ...
glb/cad_16e53056f756.glb
Create a vacuum cleaner adapter consisting of a tiered cylindrical body with a continuous central hole. Start by creating a base cylinder 60mm in diameter and 5mm in height. Centered on top of this base, add a second cylinder 44mm in diameter and 35mm in height. On the top surface of this second cylinder, add an extern...
use <ISOThread.scad> echo("Staubsauger Teil"); difference() { union(){ cylinder(h=5, d=60); cylinder(h=35, d=44); translate([0, 0, 35]){ echo("Aussengewinde"); thread_out(dia=44, hi=35); } } translate([0, 0, -0.1]) cylinder(h=70.2, d=34); }
glb/cad_a36b6175d2b4.glb
Create a vacuum cleaner adapter consisting of two stacked cylindrical sections. Start by creating a base hollow cylinder with an outer diameter of 50mm, an inner diameter of 44.65mm, and a height of 30mm. The interior of this base cylinder must feature a threaded internal profile with a diameter of 44.65mm throughout i...
use <ISOThread.scad> $fa=0.01; echo("Schlauch Teil"); union(){ echo("Innengewinde"); difference(){ cylinder(h=30, d=50); translate([0, 0, -0.1]) cylinder(h=30.2, d=44.65); } thread_in(dia=44.65, hi=30); translate([0, 0, 25]){ difference(){ difference(){ cylinder(h=40, d=66); translate([0, ...
glb/cad_07271dcdaf4e.glb
Create a customizable scoop consisting of a conical cup and an attached handle. The cup is formed by a cylinder with a radius of 21mm and a height of 21mm, topped with a dome that transitions from the cylinder's edge to a central peak 14mm above the rim. The walls of the cup are 2mm thick, creating a hollow interior th...
cone_height = 21; rim_height = 21; rim_radius = 21; dome_radius = 9; thickness = 2; cone_height = 14; handle_height = 1.75; handle_width = 9; handle_length = 130; handle_radius = 1.2; hole = "yes"; hole_radius = 3.95; cup_resolution = 90; bullnose_resolution = 12; module halfcircle(r) { difference() { circ...
glb/cad_f3cfaa6c506a.glb
Create a hollow cylindrical tube for a tripod head. The outer shell should be a cylinder with a height of 40mm and a diameter of 6mm, featuring a 40-sided polygonal facet resolution. Remove a concentric inner cylinder from the center to create a hole with a diameter of 2.6mm and a height of 45mm, ensuring the hole pass...
difference(){ cylinder(40,6,6, $fn = 40); cylinder(45,2.6,2.6, $fn=40); }
glb/cad_8abd1500c30a.glb
Create a switch bracket for a humidifier by constructing a main hollow cylindrical body with an outer diameter of 69mm and a height of 16.25mm. Remove a central core with a diameter of 47mm to create a ring wall. At the base of this ring, create a recessed notch by removing a central cylinder with a diameter of 49mm an...
$fn=100; translate([0,0,16.25]){ rotate([180,0,0]){ difference(){ difference() { cylinder(h=16.25,d=69); cylinder(h=17,d=47); }; difference(){ cylinder(h=8.5,d=65); cylinder(h=8.5,d=49); }; }; }; difference(){ cylinder(h=9.45, d=49); translate([0,0,2]){ linear_extrude(14){ square(33,center=tru...
glb/cad_b07b7160c70b.glb
Create a Customizable Wire Grommet consisting of two separate parts: a main sleeve and a removable lid. First, construct the main sleeve. Create a wide, thin cylindrical flange with a diameter of 81.25mm and a height of 3mm. Centered on this flange, build a hollow cylindrical sleeve with an outer diameter of 65mm and ...
Grommet_Diameter = 65; Hole_Diameter = 50; Sleeve_Depth = 34; Flange_Depth = 3; Top_Text = ""; Font_Size = 8; Letter_Spacing = 1.3; build_plate_selector = 0; build_plate_manual_x = 100; build_plate_manual_y = 100; $fn=120; use <utils/build_plate.scad> use <write/Write.scad> module solid_top(){ translate(...
glb/cad_3c767f1c08a8.glb
Create a Shower Head Bracket consisting of two identical hexagonal components. For each component, start by creating a hexagonal prism with a flat-to-flat diameter of 14.8mm and a height of 3mm, centered on the origin. Bore a circular hole through the center of this prism with a diameter of 8.2mm. To create the second ...
$fn=360; printer_nozzle=0.2; tube=28+printer_nozzle; shlang=17; tushka=45; upper=23+printer_nozzle; lower=18++printer_nozzle; height=52; nut=8+printer_nozzle; shlyapa=15.00; difference(){ cylinder(d=shlyapa-0.2, $fn=6, h=3, center=true); cylinder(d=nut, h=3, center=true); } translate([25,0,0.5]) difference(){...
glb/cad_ff5f9faabee0.glb
Create a round knitting loom consisting of a circular base frame and several vertical pins. Start by constructing the frame as a hollow cylinder with a height of 5mm, an outer diameter of 45mm, and an inner diameter of 35mm. Distribute 24 vertical pins evenly around the center of the frame. Each pin should be a cylin...
$fn=50; roundLoom(frameHeight = 5,frameDiam = 40, frameWidth = 5, nPins=6, pinHeight=10,pinDiam=6, addKnobs=true,knobDiam = 8, addSide=false,sideHeight=8); module roundLoom(frameHeight=5,frameDiam = 40,frameWidth=5, nPins=24,pinHeight=10,pinDiam=4, addKnobs=true,knobDiam=6, addside=true,sideHeight=10) ...
glb/cad_da087dd61d97.glb
Create a Toothed Linear Bearing by constructing a hollow cylinder with an outer diameter of 15mm, an inner diameter of 10mm, and a total height of 24mm. The outer wall should be a 16-sided prism. To create the internal toothed structure, carve out 25 equally spaced radial slots along the inner wall. Each slot must be...
int_Inner = 10; int_Outer = 15; int_Length = 24; dec_Dia = 0.2; dec_wallThick = 0.85; int_teeth = 25; dec_toothRatio = 0.25; int_sides = 16; mm = 1; cm = 10 * mm; dm = 100 * mm; m = 1000 * mm; inch = 25.4 * mm; X = [1, 0, 0]; Y = [0, 1, 0]; Z = [0, 0, 1]; M3 = 3*mm; M4 = 4*mm; M5 = 5*mm; M6 = 6*mm; M8 = 8*mm...
glb/cad_48b314184b31.glb
Create a Kossel Delta Linear Rod Damper with a total height of 2mm. The object is a serpentine clip designed to fit over two parallel rods, each with a diameter of 5.25mm, spaced 60.5mm apart from outer edge to outer edge. The geometry consists of a series of alternating semi-circular arcs and connecting segments. St...
$fn=200; rodd=5.25; outgap=60.5; thickness=2; height=2; turnrad=(outgap-6*thickness-2*rodd)/10; module turnpos (number) { translate([(number-1)*(1*thickness+2*turnrad)+(turnrad+thickness),0,0]) difference() { cylinder(r=turnrad+thickness,h=height); translate([0,0,-.1]) cylinder(r=...
glb/cad_7c6326f999d9.glb
Create a Customizable Crystalline Structure model by arranging spheres (atoms) and cylinders (bonds) in a repeating grid. For a basic cubic lattice, place spheres with a radius of 0.2mm at the corners of a unit cell with dimensions 1mm x 1mm x 1mm. Connect these spheres using cylinders with a radius of 0.1mm, aligned a...
cristal = "Cubic"; nx = 2; ny = 2; nz = 2; ra=2; rb=1; f_ra = 10; f_rb = 4; Oxx = 1; Oxy = 0; Oxz = 0; Oyx = 0; Oyy = 1; Oyz = 0; Ozx = 0; Ozy = 0; Ozz = 1; module print_cristal(ra, rb) { if (cristal == "Cubic") { reseau_cubique(ra/10, nx, ny, nz); } else if (cristal == "Tetragonal") { reseau_quadratique(ra...
glb/cad_052d61005184.glb
Create a Universal Telescope Mobile Phone Mount consisting of three main components: a mounting clip, a mobile plate, and two clamping jaws. First, create the mounting clip as a hollow cylinder with an outer diameter of 36.4mm and an inner diameter of 33.4mm, and a height of 30mm. Cut a rectangular slot 33.4mm wide an...
$fn=100; sha_len = 30; sha_dia = 33.4; bolt_dia = 3.2; bolt_cap = 6.3; bolt_type = 6; mobile_len = 100; mobile_wid = 50; mobile_gap = 10; mobile_pad90 = 10; mobile_pad360 = 20; jaw_hig = 20; jaw_wid = 10; pad90 = 0; pad360 = 1; show1 = 0; show2 = 0; show3 = 0; module clip(){ difference(){ union(){ ...
glb/cad_cc1bdf5c84c0.glb
Create a tablet hinge consisting of a long rectangular base with four integrated cylindrical pivot housings. The main base is a rectangular block measuring 102mm in length, 16.5mm in width, and 4.35mm in height. Along the length of this base, create four cylindrical lugs with a radius of 5.35mm and a width of 12.45mm...
tablet_t=10.7; max_l=102; top_d=16.5; tab_s=6; tab_r=40/2; tab_ri=15; piv_r=3.2/2; washer=0.55; s1=13; s2=17; s3=13; difference(){ union(){ cube([max_l,top_d,tablet_t/2-1]); translate([0,-tablet_t/2+2,0]){ translate([0,0,0]) cube([s1-washer,top_d-2,tablet_t/2-1]); transla...
glb/cad_e1abdf33dd90.glb
Create a guitar repair part by starting with a main cylinder that is 295mm tall with a radius of 50mm. Cap the top of this cylinder with a sphere that has a radius of 50mm, but is flattened along the Z-axis to 25% of its original height. Remove a smaller concentric cylinder from the bottom of the part that is 300mm lon...
$fn = 200; difference() { union() { cylinder(295,100/2,100/2); translate([0,0,295]) scale([1,1,0.25]) sphere(50); } translate([0,0,-50]) cylinder(300,60/2,60/2); translate([-100,0,147.5]) rotate(a=[0,90,0],v=[1,0,0]) cylinder(200,25/2,25/2); }
glb/cad_79d087bfa30c.glb
Create an E3D under-carriage fan shroud. Start by constructing a conical shroud that transitions from a circular fan mount to a rectangular nozzle opening. The fan mount is a cylinder with a diameter of 30mm and a thickness of 3.5mm, tilted at a 35-degree angle relative to the carriage mount. The carriage mount is a fl...
thk = 1.6; dh = 19; dl = 8.75; dx = -1.5; dz = 19.25; r = 13.5; slit = 2.1; dia = 30; rect_w = 20; rect_h = 6; angle = 35; rim_angle = 50; fan_hole_dist = 24; mount_hole_dist = 28; screw_hole_r = 3/2 - 0.05; fan_thk = 3.5; mount_thk = 5; mount_d = 7; mount_w = mount_hole_dist + screw_hole_r*2 + 2*thk; module mount...
glb/cad_b4d082d03472.glb
Create an E3D under-carriage fan shroud. Start by constructing a main shroud body that transitions from a circular fan mount to a rectangular nozzle opening. The fan mount is a cylinder with a diameter of 30mm and a thickness of 3.5mm, tilted at a 35-degree angle relative to the carriage mount. The carriage mount is a ...
thk = 1.6; dh = 19; dl = 8.75; dx = -1.5; dz = 19.25; r = 13.5; slit = 2.1; dia = 30; rect_w = 28; rect_h = 6; angle = 35; rim_angle = 50; fan_hole_dist = 24; mount_hole_dist = 28; screw_hole_r = 3/2 - 0.05; fan_thk = 3.5; mount_thk = 4; mount_d = 7; mount_w = mount_hole_dist + screw_hole_r*2 + 2*thk; module mount...
glb/cad_68f0498f0cde.glb
Create an E3D under-carriage fan shroud. Start by constructing a conical shroud body with a wall thickness of 1.6mm. The main body transitions from a circular fan mount with a 30mm diameter to a rectangular nozzle exit. Position the nozzle exit 17mm below the mount plate center and extended 8.75mm forward, with a sligh...
thk = 1.6; dh = 17; dl = 8.75; dx = -1.5; dz = 19.25; r = 13.5; slit = 2.1; dia = 30; rect_w = 28; rect_h = 8; angle = 35; rim_angle = 50; fan_hole_dist = 24; mount_hole_dist = 28; screw_hole_r = 3/2 - 0.05; fan_thk = 3.5; mount_thk = 4; mount_d = 7; mount_w = mount_hole_dist + screw_hole_r*2 + 2*thk; module mount...
glb/cad_75ebb20967a9.glb
Create a choke lever rod control. Start with a main flat base plate 4.2mm thick. On the left side, create a rounded protrusion that transitions into a small cylindrical peg with a radius of 2.2mm. On the right side, extend the body into a rectangular arm that angles upward and outward, ending in a cylindrical pivot poi...
$fn=40; module letter(l,lh,ls) { letter_height=lh; letter_size=ls; font="Segoe Script:style=Boldest"; linear_extrude(height = letter_height) { text(l, size = letter_size, font=font, halign = "center", valign = "center", $fn = 16); } } ep=4.2; difference() { union() { difference() { cylinder(r=30,h=ep,$fn=2...
glb/cad_73c1a30c4b03.glb
Create a rectangular electronics case for the HPSDR Hermes with outer dimensions of 168mm in length, 128mm in width, and 41mm in height. The walls should be 3mm thick. All vertical corners of the main body must be rounded with a radius of 4mm. The case is an open-top box designed to hold a sliding lid. The interior s...
width = 128; length = 168; height = 41; wall_thickness = 3; edge_roundness = 4; tolerance = 0.3; $fn = 20; inner_box_dimentions = [length,width,height]; difference () { translate([0,0,0]) hull() { Lid(0,0); Lid(1,0); Lid(0,1); Lid(1,1); } } module addOutterCorners(x = 0, y = 0) { translate([(inner_bo...
glb/cad_0414b67c5533.glb
Create a rectangular electronics case for the HPSDR Hermes with outer dimensions of 168mm length, 128mm width, and 41mm height. The walls should be 3mm thick with an edge roundness of 4mm. The main body is a hollow shell with a rounded exterior and a slightly smaller rounded interior cutout to form the walls. The top ...
width = 128; length = 168; height = 41; wall_thickness = 3; edge_roundness = 4; tolerance = 0.3; $fn = 20; inner_box_dimentions = [length,width,height]; difference () { hull() { addOutterCorners(0,0); addOutterCorners(1,0); addOutterCorners(0,1); addOutterCorners(1,1); } translate([0,0,wall_thickness]...
glb/cad_8aaeb730124c.glb
Create a BeagleBone Black cabinet backplate. Start with a rectangular plate that is 115mm deep and has a height based on 2 units of a standard rack unit (approximately 88.9mm). Within this plate, create three specific rectangular cutouts to allow access to the board's ports. First, create a wide rectangular opening f...
$fn = 50*1; sixinch = 155*1; width = 155-20-20; unit = (44.5/19)*6; gauge = 3*1; gauge_box = 2*1; Part = "e"; Units = 2; Depth = 115; screw_head = 7.4; screw_head_height = 2.2; screw_dia = 3; screw_hole = 2.6; screw_length = 15; nut_4mm = 8.1; slip = 0...
glb/cad_4e5e1032b385.glb
Create a screw thread library consisting of an external bolt and a matching internal nut. For the bolt, create a helical screw thread with a pitch of 1.5875mm and a major diameter of 9.525mm. The thread should complete 12 full rotations. The thread profile is based on an equilateral triangle, but the start and end of...
root3 = sqrt(3); thread(1.5875, 9.5250, 12, 12); translate([15, 0, 0]) { difference() { cylinder(r = 8, h = 8); translate([0, 0, -1.5875 / 2]) thread(1.5875, 9.5250, 12, 8, 0.2, true); } } function screwthread_triangle(P, tol) = let (a = P + 2 * tol, h = root3 * a / 2, y = P /...
glb/cad_c3ef3d0769c0.glb
Create an encoder port cover consisting of a main flat plate and a rectangular protrusion. Start with a base plate 25mm wide, 9.3mm deep, and 1.5mm thick. The outer edges of the plate should be rounded with a radius of 4.65mm. Center two circular holes through the plate, each with a diameter of 3.5mm, positioned 19.2mm...
$fn = 36; slop = 0.4; screwd = 3.1 + slop; screwsp = 19.2; portw = 12.8; porth = 5.3; coverw = 25; coverh = 9.3; thick1 = 1.5; thick2 = 1.5; difference() { hull() { for (x=[-1,1]) translate([((coverw-coverh)/2)*x,0,0]) cylinder(d=coverh, h=thick1); } for (x=[-1...
glb/cad_f646900b9af2.glb
Create a Safecoin coin by starting with a cylinder that has a radius of 15mm, a height of 3mm, and a 20-facet resolution. Emboss the Safenetwork logo onto the face of the coin, scaling the image to 22.5mm by 22.5mm and giving it a depth of 4.5mm. Finally, create a small circular hole for a pendant with a radius of 1.25...
roundness=20; coinHeight=3; coinRadius=15; coinImage="Safenetwork.png"; imageSize=coinRadius*1.5; imageHeight=coinHeight*1.5; isPendant=true; difference(){ difference(){ cylinder(h=coinHeight, r=coinRadius, center=false, $fn=roundness); resize([imageSize,imageSize,imageHeight]) surfac...
glb/cad_492cb7f01de7.glb
Create a Safecoin coin by starting with a cylinder that has a radius of 15mm, a height of 3mm, and a 20-facet resolution to give it a slightly polygonal edge. Emboss the Safecoin logo onto the face of the coin, ensuring the image is scaled to 22.5mm in width and depth and 4.5mm in height. Finally, add a small circular ...
roundness=20; coinHeight=3; coinRadius=15; coinImage="SafeCoin.png"; imageSize=coinRadius*1.5; imageHeight=coinHeight*1.5; isPendant=true; difference(){ difference(){ cylinder(h=coinHeight, r=coinRadius, center=false, $fn=roundness); resize([imageSize,imageSize,imageHeight]) surface(f...
glb/cad_1b8e48c32dc7.glb
Create a telescope to iPhone adapter consisting of a cylindrical base and a rectangular phone guide. Start with a cylindrical mount that has an outer diameter of 43mm and a height of 10.5mm. Remove a central cylindrical core with a diameter of 31mm and a height of 10.5mm. Cut a rectangular slot out of this cylinder tha...
lensReceiverDiameter = 34; lensReceiverHeight = 10.5; eyePieceRubberDiameter = 39; eyePieceRubberHeight = 13; clipThickness = 5; clipInterference = .5; armThickness = 8; wallRightOffset=15.5; wallTopOffset=9.3; wallThickness=3; lensHole=8; wallHeight=12; $fn=100; rotate([0,0,90]) mountClip(); translate([0,0,lensRecei...
glb/cad_5e02573252c9.glb
Create an Emergency Replacement Bottle Cap designed to fit a bottle neck. Start with a main cylindrical body that has a base radius of 11mm (NeckDiameter/2 + 2 + ThreadRadius) and a total height of 14mm. Hollow out the center of this cylinder with a hole of radius 9mm and a height of 12.1mm. Inside this hollow space,...
use <../Spiral_Extrude/Spiral_Extrude.scad> NeckDiameter=18; ThreadRadius=1; NeckLength=12; ThreadPitch=3; difference(){ union(){ bottlecap(NeckDiameter=NeckDiameter, ThreadRadius=ThreadRadius,NeckLength=NeckLength,ThreadPitch=ThreadPitch); translate([0,0,NeckLength+2])cylinder(r1=NeckDiameter/2+2...
glb/cad_94a28c21d7a9.glb
Create a glass plate fixture by starting with a rectangular base block measuring 20mm wide, 200mm long, and 15mm high. From the top surface of this block, remove a rectangular channel that is 10.5mm wide, 200mm long, and 3mm deep, centered along the length. Additionally, remove a second, shallower channel that is 6mm w...
cube([15,200,3]); cube([3,200,9]); translate([0,0,8]) cube([10.5,200,3]); translate([0,0,5.5]) cube([6,200,3]); cube([20,15,3]); translate([0,0,5.5]) cube([20,6,3]); translate([0,0,8]) cube([20,10.5,3]); cube([20,3,9]); difference(){translate([0,0,-10]) cube([19,10,10]); union(){ translate([0,5,-5]) rotate([0,90,0]) cy...
glb/cad_5981c4119571.glb
Create a glass plate fixture by constructing a base block 20mm wide, 200mm long, and 9mm high. On the side of this block, add a rectangular extension that is 15mm wide, 200mm long, and 3mm high, positioned so it sits flush with the bottom. Above this, add a second rectangular section 10.5mm wide, 200mm long, and 3mm hi...
difference(){union(){cube([15,200,3]); cube([3,200,9]); translate([0,0,8]) cube([10.5,200,3]); translate([0,0,5.5]) cube([6,200,3]); cube([20,15,3]); translate([0,0,5.5]) cube([20,6,3]); translate([0,0,8]) cube([20,10.5,3]); cube([20,3,9]); difference(){translate([0,0,-10]) cube([19,10,10]); union(){ translate([0,5,-5]...
glb/cad_002b41151c7d.glb
Create a glass plate fixture by constructing a long, composite base. Start with a main rectangular block measuring 20mm wide, 200mm long, and 3mm high. On top of this base, add a second rectangular section that is 11.5mm wide, 200mm long, and 2mm high, positioned to leave a 3mm ledge on one side and a 5.5mm gap from th...
cube([15,200,3]); cube([3,200,9]); translate([0,0,8]) cube([11.5,200,2]); translate([0,0,5.5]) cube([6,200,3]); cube([20,15,3]); translate([0,0,5.5]) cube([20,6,3]); translate([0,0,8]) cube([20,11.5,2]); cube([20,3,9]); difference(){translate([0,0,-10]) cube([19,10,10]); union(){ translate([0,5,-5]) rotate([0,90,0]) cy...
glb/cad_f6959964c6fb.glb
Create a glass plate fixture by constructing a base rectangular block 20mm wide, 200mm long, and 9mm high. On the side of this block, integrate a secondary rectangular section that is 15mm wide, 200mm long, and 3mm high, running the full length of the base. Add a third rectangular section on top of the base that is 11....
difference(){union(){cube([15,200,3]); cube([3,200,9]); translate([0,0,8]) cube([11.5,200,2]); translate([0,0,5.5]) cube([6,200,3]); cube([20,15,3]); translate([0,0,5.5]) cube([20,6,3]); translate([0,0,8]) cube([20,11.5,2]); cube([20,3,9]); difference(){translate([0,0,-10]) cube([19,10,10]); union(){ translate([0,5,-5]...
glb/cad_7da11f20a52d.glb
Create a customizable stencil by starting with a rectangular base plate that is 2mm thick. The overall dimensions of the plate should be calculated based on a font size of 50mm, with a 10mm border around the edges. Cut four rows of text through the plate to create the alphabet. The first row contains "A B C D E F", th...
ST = 2; SB=10; p = "all"; t="A"; print1="A B C D E F"; print2="G H I J K L"; print3="M N O P Q R S"; print4="T U V W X Y Z"; TS=50; Font="Times New Roman"; VS=0; MC=7; VA="center"; HA="center"; space=1; TSX=1; TSY=1; TSMM=TS*3*25.4/72.0; if(p=="all"){ difference(){ translate([0,0,0]){ cube([(MC+2)*TSMM+...
glb/cad_c86d8f90775e.glb
Create a towel bar mounting bracket with a total length of 75mm, a base width of 60mm, and a thickness of 20mm. The main body is a solid block with rounded edges at the base corners, each with a radius of 8mm. At the center of the block, create a vertical cylindrical cutout with a diameter of 19.3mm that passes throu...
d1 = 19.3; l1 = 75; base = 60; b1 = 20; wall = 5.0; edge = 8.0; hole1 = 4.2; hole2 = 7.8; hole3 = 10.5; $fn = 90; difference() { B1(); W1(); } module B1() { hull() { cube([base,0.5*wall,b1]); translate([edge,1*edge,0]) cylinder(h=b1,d=edge); translate([base-edge,1*edge,...
glb/cad_c92d76be2a41.glb
Create a Knurled Tri-Spinner Penny Shim by constructing a thin, hollow cylindrical ring. Start with an outer cylinder that has a radius of 11.1mm and a height of 7mm, centered on the origin. From the center of this volume, remove a smaller concentric cylinder with a radius of 10.2mm and a height of 7.1mm to create a ho...
module penny_shim() { difference() { union() { cylinder(r=11.1, h=7, center=true); } union() { cylinder(r=10.2, h=7.1, center=true); } } } penny_shim();
glb/cad_c046f44a6b7d.glb
Create a Parametric Robot Wheel. Start with a main wheel body that is 4.5mm wide and has a center-to-center diameter of 96.5mm. The outer edge features a circular rim 7mm high with a semi-circular groove carved out to accommodate an O-ring with a 3.5mm cross-sectional diameter. From the center of the wheel, extend 5 r...
tireCSDiameter = 3.5; tireID = 93; tireStretch = 1.00; wheelWidth = 4.5; rimHeight = 7; numberOfSpokes = 5; hubDiameter = 20; hubHeight = 13; shaftDiameter = 4; setScrewDiameter = 3; setScrewNutDiameter = 5.4; setScrewNutThickness=2.3; setScrewCount=1; hubZOffset=-wheelWidth; baseFilletRadius=0; topFilletRadius=2; ch...
glb/cad_6e69f8b2433c.glb
Create a roller for a folding door by starting with a main cylinder that has a diameter of 22mm and a height of 6.5mm. Centered within this main body, remove a vertical cylindrical hole with a diameter of 6.5mm that passes completely through the object. Additionally, create a wider circular cutout from the top face wit...
$fn=40; difference () { cylinder(d=22, h=6.5); cylinder(d=6.5, h=20, center=true); translate([0,0,4.5]) cylinder(d=18, h=10); }
glb/cad_a3e8a2c24fdd.glb
Create a Parametric Robot Wheel with a total width of 4.5mm. Start with a main circular body with a diameter of 96.5mm (based on a 93mm internal diameter o-ring with a 3.5mm cross-section). Construct a rim by creating a cylinder of the full wheel diameter and subtracting a concentric inner cylinder to leave a wall he...
tireCSDiameter = 3.5; tireID = 93; tireStretch = 1.00; wheelWidth = 4.5; rimHeight = 4; outerHoleDiameter = 13; hubDiameter = 15; hubHeight = 10; shaftDiameter = 4; setScrewDiameter = 3; setScrewNutDiameter = 5.4; setScrewNutThickness=2.3; setScrewCount=1; hubZOffset=-wheelWidth/2; baseFilletRadius=2; topFilletRadius...
glb/cad_5f7da69caedd.glb
Create a Customizable Bridge Test consisting of a central horizontal bridge and two supporting end pieces. The central bridge is a rectangular slab 50mm long, 9.35mm wide, and 0.6mm thick, positioned so its bottom surface is 3mm above the build plate. Emboss the word "BRIDGE" onto the top face of this slab. At each e...
use <write/Write.scad> bridge_width=10; bridge_length=50; bridge_height=3; bridge_thickness=.6; extrusion_width=.55; layer_height=.2; actual_width=bridge_width-bridge_width%extrusion_width; support_length=actual_width*.5; total_height=bridge_height+bridge_thickness; support_radius=3; angle=90-atan(total_height/(supp...
glb/cad_57da5fd9ab06.glb
Create two mirrored Z motor brackets for an Aluminum Mendel printer. Each bracket is based on a primary block measuring 42mm by 42mm with a thickness of 5mm and rounded corners with a 4mm radius. For each bracket, integrate a vertical support structure that includes a rectangular section of 13mm by 5mm by 41mm and an...
zleft=1; zright=1; if (zleft){ difference(){ union(){ translate([10.5,-14,20.5]) color("green") rotate([0,90,0]) roundCornersCube(41,30,5,4); translate([0,-6,0]) linear_extrude(height = 41) polygon([[0,6],[8,-2],[8,6]]); translate([0,0,0]) color("purple") cube([13,5,41]); translate([8,-5,0]) color("blac...
glb/cad_20761cb5fc82.glb
Create a symmetrical Z-axis coupler with a base rectangular footprint of 30mm by 21mm and a height of 7mm. The overall shape is constrained by a cylinder with a radius of 11mm centered on the Z-axis, creating a rounded profile. Carve a central horizontal channel through the length of the part to accommodate shafts, wi...
module nuttrap_inverted(h=2.2, bolt=1.8, nut=3.25, lh=0.2) { render() union() { translate([0, 0, -1]) cylinder(r=5.5 / cos(180 / 6) / 2 + 0.05, h=3.6, $fn=6); translate([0, 0, 2.8]) cylinder(r=1.6, h=10, $fn=32); } } module coupling(x=30,y=21,z=7,s=8,m=7, lh=0.2) { intersection() { difference() { inters...
glb/cad_5648dcbeb1e5.glb
Create a mount for a Broadlink RM Mini3 by starting with a main body that is a hybrid shape: a cylinder with a diameter of 58.5mm and a height of 54mm, blended via a hull operation with a cube of 1mm by 58.5mm by 54mm centered on the Y-axis. From this solid, remove a central cylindrical cavity with a diameter of 54.5mm...
include <MCAD/units/metric.scad> use <MCAD/shapes/2Dshapes.scad> broadlink_d = 54.5; broadlink_h = 52; wall_thickness = 2; $fs = 0.4; $fa = 1; module broadlink_mount () { od = broadlink_d + wall_thickness * 2; oh = broadlink_h + wall_thickness; difference () { hull () { cylinder (d =...
glb/cad_6defba316f43.glb
Create a shower tray shaped as a hollow rectangular box with overall external dimensions of 60mm width, 150mm depth, and 100mm height. The walls should be 4mm thick, leaving an internal cavity of 52mm by 142mm by 100mm. Pierce the bottom of the tray with five vertical drainage holes, each 14mm in diameter, spaced eve...
use <write.scad> module attachHole(){ translate([-30,-40,40]) cylinder(h = 10, r1 = 15, r2 = 3, center = true); translate([-30,40,40]) cylinder(h = 10, r1 = 15, r2 = 3, center = true); } module cup(){ union(){ intersection() { difference() { translate([0, 0, 0]) cube([60, 150, 100], cent...
glb/cad_f087aec23c49.glb
Create a shower tray consisting of a rectangular base and a vertical backplate. Start by creating a flat rectangular base that is 7.5mm wide, 165mm long, and 1.2mm thick. Centered on this base, attach a vertical rectangular wall that stands 36mm high and is 105mm wide, with a thickness of 3mm. The final assembly should...
use <write.scad> use <cup.scad> scale(v=[1.5,1.1,0.6]){ union(){ cup(); translate([0,0,-49]) cube([5,150,2],center=true); } } translate([-30,55,-30]) cube([70,5,60],centre=true);
glb/cad_f2be280ffa7b.glb
Create a Biohazard Fan Guard by starting with a square base measuring 40mm by 40mm with a thickness of 2mm. Center a circular hole through the base with a radius of 2.22mm. At each of the four corners, 4mm from the edges, place a screw hole with a diameter of 3.4mm. To create the mounting rim, add a square frame aroun...
$fan_guard_width = 40; $fan_guard_height = 2; $fan_guard_border = 0.8; $fan_guard_step = 2; $hole_offset = 4; $hole_diameter = 3.4; $r1 = ($fan_guard_width / 3.33); $r2 = ($fan_guard_width / 5); $fn = 60; difference() { union() { shell(); step(); difference() { cylinde...
glb/cad_a4f37db4c717.glb
Create a vacuum cleaner adapter consisting of three stacked coaxial sections with a consistent wall thickness of 2mm. Start with a base cylinder that has an outer diameter of 39mm and a height of 30mm. Above this, create a conical transition section that tapers from the 39mm base diameter down to an outer diameter of...
module rcube(Size=[20,20,20],b=0.5) {hull(){for(x=[-(Size[0]/2-b),(Size[0]/2-b)]){for(y=[-(Size[1]/2-b),(Size[1]/2-b)]){for(z=[-(Size[2]/2-b),(Size[2]/2-b)]){ translate([x,y,z]) sphere(b);}}}}} module rcylinder(r=-1,r1=10,r2=10,h=10,b=0.5) { if (r!=-1) { translate([0,0,-h/2]) hull(){rotate_extrude() translate([r-b,...
glb/cad_243323fe4fcd.glb
Create a Flatware Adapter designed as a thickened handle for assistive gripping. Start by constructing the main body as a composite shape: create a hexagonal prism with a height of 84mm and a diameter of approximately 14.4mm (calculated as 25 divided by the square root of 3), and merge this with a central rectangular b...
adapter_width=25; adapter_lenght=84; hand_width=30; cutlery_width=20; cutlery_thickness=3; h=adapter_lenght; w=adapter_width; cw=cutlery_width+0.5; ce=cutlery_thickness+0.5; r=hand_width/2; difference() { union(){ union() { hull(){ cylinder(h,w/sqrt(3),w/sqrt(3), $fn=6, center=true); cube(size=[ce+2,cw+2,h+6] , cent...
glb/cad_352ac0b7ab67.glb
Create a cover for an IO board by starting with a rectangular base measuring 111mm by 89mm with a thickness of 1mm, centered such that it extends 5mm beyond the edges of a 101mm by 51.71mm internal board area. From this base, remove a complex central void consisting of a 101mm by 20mm by 8mm block positioned 5.5mm from...
pcbx = 101; pcby = 51.71; module board(){ union(){ cube(size=[pcbx,pcby,1]); translate([0,5.5,0])cube(size=[101,20,8]); translate([0,24,0])cube(size=[10,22,9]); translate([pcbx-10,24,0])cube(size=[10,22,9]); for ( i = [14 : 10 : pcbx] ){ translate([i,35.5,0])cylinder(r=2.75,h=9); } for ( i =...
glb/cad_b4a363285422.glb
Create a customizable fidget spinner with three rays extending from a central hub. The body has a thickness of 7mm and all edges are rounded with a 2mm radius. At the center, create a cylindrical hole with a diameter of 22mm to accommodate a 608 bearing. From this center, extend three equidistant rays. Each ray is tap...
rays = 3; numWeights = 2; extra = 4; whichWeight = "5/16 hex nut"; radius = 2; rayStyle = "tapered"; bearingGlueGroove = 0; weightsGlueGroove = 0; $fn = 60; x = 0; y = 1; z = 2; thick = 3; space = 2; inch = 25.4; bearing = [22, 22, 7]; sae = [.577*inch, .5 * inch, 7]; sae38 = [.650*inch,.562*inch, 7]; sae12 = ...
glb/cad_8933cb76fc31.glb
Create a detachable motor mount for the Reptile S800 racing wing. Start with a base plate 3mm thick. The main body is formed by two intersecting rectangular bars, each 33mm long and 10mm wide, centered on each other at a 90-degree angle to create a cross shape. The ends of these bars are rounded with a radius of 5mm. ...
$fn=64; thick=3; arm_width=10; d_mot_screw_x = 19; d_mot_screw_y = 16; d_mount_screw = 33.3; screw_d = 3.5; screw_h = 7.5; difference(){ union(){ for (i=[0,1]) { rotate(i*90) hull(){ translate([16.5,0,0]) cylinder(h=thick,d=arm_width); translate([-16.5,0,0]) cylinder(h=thick,d=arm_width); ...
glb/cad_61acf409c98f.glb
Create a quick-change clip system for an X-carriage. The object is centered around a vertical axis with a total height of 8mm (twice the LM8UU support thickness). Start by creating a central hollow cylinder with an outer radius of 27mm and an inner radius of 23mm, both 8mm tall. To this, add two circular bolt-head hol...
include <gregs-lm8uu-holder.scad> width=25; offset=22; hight=lm8uu_support_thickness*2; gradiant=15; depth=lm8uu_support_thickness*2-lm8uu_support_thickness*1.7; module clips(width,offset,hight,gradiant,depth){ union(){ difference(){ cylinder(r=width+m4_diameter/2,h=hight,$fs=1); translate([0,0,-1]) cy...
glb/cad_e86242ff050e.glb
Create a LaceR shoelace badge. Start by creating a base plate 10mm thick. The overall footprint is a rectangle approximately 400mm wide by 300mm high, though the final outer boundary is defined by a border around the central design. In the center of the plate, create a cutout for a shoelace loop. This loop is a horizo...
input = "no_input"; boarder = 0; comp_size = 10; xcomp=0; ycomp=-2; loop_size = 5; shape = 0 ; points_array = (input=="no_input"? [[91,35],[[179.03,131.04],[177.55,131.62],[174.75,132.95],[170.86,135.19],[166.75,137.95],[162.81,141.35],[159.29,145.13],[156.83,148.58],[155.45,151.17],[155.18,152.75],[155.42,153....
glb/cad_f979d78edb98.glb
Create a removable handle for a hex wrench. The main body is a cylinder with a diameter of 25mm and a total length of 60mm, topped with a hemispherical dome of the same radius. At the base, include a small 5mm tall cylindrical section with a radius of 12.5mm. Remove a central vertical hole through the entire length of...
hex_size = 2.75; hole_delta = 0.2; handle_diameter = 25; handle_length = 60; handle(hex_size); module handle(hex_size) { hex_radius = (hex_size + hole_delta) / 2; hex_size = hex_size + hole_delta; handle_radius = handle_diameter / 2; knurl_offset = handle_radius * 1.2; handle_height=handle_length-12.5; s...
glb/cad_15a1d043d2cd.glb
Create a camera handle with an integrated battery holder. Start with a main rectangular base measuring 100mm in length, 30mm in width, and 9mm in height. Round the end of this base with a cylinder of radius 15mm. At the opposite end, attach a vertical battery compartment consisting of a rectangular block 22mm wide, 40m...
difference () { LHandle(1); RecessForThumbscrew (1); } Uprights(1); module Uprights (size=1) { translate([5,5,3]){ cylinder(60,5,1); } translate([6,15,3]){ cylinder(60,5,1); } translate([5,25,3]){ cylinder(60,5,1); } } module LHandle(size=1) { difference () ...
glb/cad_a9bb7a78fb02.glb
Create a camera handle with an integrated battery holder. Start with a main rectangular base measuring 100mm by 30mm by 9mm. At the right end of this base, add a rounded bevel using a cylinder with a 15mm radius. Construct the vertical grip section by adding a block measuring 22mm by 40mm by 130mm, positioned to over...
difference () { LHandle(1); RecessForThumbscrew (1); } Uprights(1); module Uprights (size=1) { translate([5,5,3]){ cylinder(60,5,1,$fn=45); } translate([5,15,3]){ cylinder(60,5,1,$fn=45); } translate([5,25,3]){ cylinder(60,5,1,$fn=45); } } module LHandle(size=...
glb/cad_ff9ea3f8f889.glb
Create a Snow Bullet Mold base plate by starting with a solid cylinder 76.2mm in diameter and 11.43mm in height. Centered within this cylinder, create a vertical hole 15.875mm in diameter that passes completely through the object. Within this central hole, starting from a height of 6.35mm from the bottom, create a hexa...
inchtomm=25.4; interiorgap=2/64; diam=3; radius=diam/2; boltdiam=1/4 + interiorgap; boltrad=boltdiam/2; bhdiam=1/2 + interiorgap; bhrad=bhdiam/2; bhthick=3/16; thicknesstobolt=1/4; basethickness=thicknesstobolt+bhthick; wallgap = .05; scale(v=[inchtomm, inchtomm, inchtomm]) { difference() { cylinder(h =...
glb/cad_0fa2cdcf9998.glb