Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Cageless Roller Bearing outer ring. The object is a hollow cylinder with a height of 14mm. The main body is a ring with an inner radius of 23.7mm and an outer radius of 26.5mm. To add structural detail, incorporate two thinner concentric rings integrated into the main wall. Position the first ring at a heigh...
use <sc.scad> use <thread.scad> D=6; h=14; cnt=12; omega=63; alpha=360/(cnt*2); beta=180-omega; gamma=180-alpha-beta; r1= D*sin(gamma)/sin(alpha); r2=r1*sin(beta)/sin(gamma); echo(r1); echo(r2); echo("OD", 2*(r2+D/2)); echo("delta", (47.55-2*(r2+D/2))/2); $fn=128; d=11; q=0; q1=0.2-0.1195; ri=r2+D/2+q; rii=r1-D/2-q; ...
glb/cad_308d7ef53d02.glb
Create a 3D model of the Openspritzer enclosure, a rectangular box with external dimensions of 110mm in length (X), 98.4mm in width (Y), and 51.6mm in height (Z), featuring a wall thickness of 1.5mm and corner radii of 4mm. Inside the box, add a regulator spacer block with a width of 6mm and a length of 52.75mm. Cons...
use <GoodBox.scad>; tol = 0.2; RegHeight = 50.1; RegWidth = 50.1; RegLength = 52.75; RegKnobDiam = 35.8 + tol; AirHoseInDiameter = 13.3 + tol; AirHoseInYOffset = (36.95 + 48.05)/2 + .4; AirHoseOutDiameter = 10.3 + tol; AirHoseOutYOffset = (13.49 + 19.18)/2; GaugeDiameter = 9.8 + tol; GaugeYOffset = (13.2 + 22.72)/2 +...
glb/cad_f99c2ce35e1c.glb
Create a Sizable Camera Gimbal 2D 2208 arm. Start by creating a roll motor mount consisting of a front plate: a cylinder with a radius of 12.5mm and height of 2mm, featuring a central hole with a radius of 4.7mm and three radial screw holes with a radius of 1.1mm located 6mm from the center. Construct the left arm by ...
camWidth= 60; camHeight= 42; camWeight= 63; motorWeight= 39; leftParts= 8; $fn=150; armRange= 12.5+16+camWidth/2; leftWeight= motorWeight+leftParts; shiftFactor= 0.5 -(leftWeight-camWeight)/2/(leftWeight+camWeight); armLen= shiftFactor * armRange +12.5+4-20-12.5;; echo("arm x len", armLen); leftMotorY= camHei...
glb/cad_fad353954dba.glb
Create a controller enclosure cover by starting with a rectangular solid block measuring 75mm in width, 52mm in height, and 3.8mm in thickness. From this main body, remove two thin vertical slots to create slide-in guides: one positioned at the left edge and one at the right edge, each measuring 1.1mm wide, 51.2mm high...
boxWidth= 74+4; boxHeight= 53+4; LedWindow= 28; controllerCap([boxWidth, boxHeight], LedWindow); module controllerCap(dimensions, LedWindow) { difference() { cube([dimensions[0]-3, dimensions[1]-2, 3.8]); translate([-0.1, -0.1, 1.8]) cube([1.1, dimensions[1]-2+0.2, 2.1]); ...
glb/cad_f6f086391f6a.glb
Create a Sizable Camera Gimbal 2D 2208 controller enclosure and mount. Start by creating a rectangular outer box with a width of 78mm, a height of 57mm, and a depth of 16mm. Hollow out the center to create a wall thickness of 2mm, leaving a base thickness of 2mm. In the upper left corner of the box, add a square cabl...
boxWidth= 74+4; boxHeight= 53+4; boxDepth= 16; $fn=150; translate([-boxWidth/2, -boxHeight, 0]) controllerFlex([boxWidth, boxHeight, boxDepth]); difference() { translate([-10, -2, 0]) hull() { translate([0, 0, boxDepth-4]) cube([20, 6, 4]); translate([0, 0, boxDepth/2]) cube([20, 2, 1]); ...
glb/cad_55674261dbb3.glb
Create two arm covers for a camera gimbal. The first cover should be a rectangular shell with outer dimensions of 18mm in length, 14mm in height, and 24mm in width. The second cover should follow the same geometry but with a length of 20mm. For each cover, create a hollow interior by removing a central rectangular bl...
len1= 18; len2= 20; rotate([0,-90,0]) cover(len1); translate([0, 20, 0]) rotate([0,-90,0]) cover(len2); module cover(width) { difference() { cube([width,14,20+4]); translate([-0.1, 2, 2]) cube([width+0.2,10,20]); translate([-0.1, 3, -0.1]) cube([width+.2,8,2.2]); } }
glb/cad_7237c3f7da61.glb
Create a Sizable Camera Gimbal 2D 2208 mount. Start by creating a motor mount plate as a cylinder with a radius of 12.5mm and a height of 2mm. Remove a central axis hole with a radius of 4.7mm and three radial screw holes with a radius of 1.1mm, positioned at 0, 120, and 240 degrees at a distance of 6mm from the center...
camType= 1; camWidth= 60; camHeight= 42; boltFromLeftOfCamera= 15; sensorWidth= 16; $fn=150; translate([0,0,12.5]) rotate([-90,30,0]) plate2208Front(); armLen= camHeight/2 -(16-10)-8; echo ("Arm len ", armLen); difference() { hull() { translate([-8-armLen,0,0]) cube([armLen, 10, 25]); transl...
glb/cad_ce75c03b3138.glb
Create a Customizable Bonchi Pot consisting of a pot and a matching saucer. For the pot, create a hollow vessel with a wall thickness of 2mm. The base is an "ecloud" shape (a rounded, organic hybrid between an ellipse and a cloud) with a width of 115mm and a depth of 81mm. The pot's vertical profile is "S-shaped," cu...
print="both"; mode = "fast"; preview = true; base_width = 115; top_width = 145; depth = 81; thickness = 2.0; shape = "ecloud"; pot_height = 45; pot_profile = "s"; saucer_height = 8; saucer_profile = "j"; engrave = true; engrave_text="\u767B\u5C71"; engrave_font="TakaoPMincho:style=Regular"; function profi...
glb/cad_bedbfc983f14.glb
Create a Bonchi Pot consisting of a main pot and a matching saucer. First, construct the saucer. Create an elliptical base with a width of 164.5mm and a depth of 124.5mm. Extrude this shape vertically to a height of 8mm. The vertical profile should be linear, expanding slightly from the base to the top rim. Next, co...
print="both"; preview = 1; base_width = 160; top_width = 185; depth = 120; thickness = 1.5; shape = "elliptical"; pot_height = 60; pot_profile = "c"; saucer_height = 8; saucer_profile = "l"; function profile(profile) = profile == "c" ? [[0.0, 1.0], [0.05, 1.03], [0.1, 1.04], [0.9, 1.04], [0.95, 1.03], [1.0 ,...
glb/cad_fcda5ef0b44c.glb
Create a flat linkage bone with a thickness of 8mm. The main body is a central rectangular bar 100mm long and 11mm wide. At each end of this bar, center a circular protrusion with a total diameter of 71mm (calculated from the 11mm width plus a 30mm blend radius on each side). Within each circular end, create a center...
cuts_outs=1; pivots=0; $fn=100; hole_dia=12; blend_rad=30; link_width=11; hole_center=100; link_thickness=8; bonerad=12; width=link_width+(blend_rad*2); bonerad2=bonerad+blend_rad; hole_rad=hole_dia/2; module link () { union(){ cube([hole_center,width,1],center=true); translate([-hole_center/2,0,-2.5]) cylinder( 5,...
glb/cad_e9e40a45d693.glb
Create a Retro Nixie Clock base consisting of a main chassis and two smaller side modules. The main chassis is a rectangular block 233mm long, 40mm wide, and 13mm high. Along the length of the chassis, create a series of recessed sections and raised walls. Specifically, construct two large open bays, each approximate...
$fn=100; addition= 0.3; module ausschnitt() { rotate([90,0,0])translate([0,0,-1.5-addition]) linear_extrude(height=3+2*addition) polygon(points=[[-2.5-addition,-1],[-2.5-addition,5-1-addition], [-2.5-1-addition,5+addition] , [2.5+1+addition,5+addition],[2.5+addition,5-1-addition],[2.5+addition,-1] ]);...
glb/cad_91dba0217424.glb
Create an Airtripper V2 remix extruder block. Start with a central cylindrical base with a radius of 11.5mm and a height of 4mm. On top of this base, add a larger cylindrical section with a radius of 11.5mm and a height of 17mm, but taper the top of this section down to a radius of 5mm. Integrate two mounting brackets...
$fn=120; translate([0,0,0]) rotate([0,0,90]) extruder_block(); nema_l=71.5; nema_x=42; nema_y=42; nema_z=47.4; screw_l=30; insert_l=15; module axle_8mm() { cylinder(16,r=3.80); translate([-5,-0.5,0]) cube([10,1,1]); translate([-0.5,-5,0]) cube([1,10,1]); difference() { cylinder(1,r=10, $fn=40); translate([0...
glb/cad_35e83a95eeea.glb
Create a 2 Liter Soda Bottle Opener and Closer Wrench. Start with a main cylindrical body that has an outer diameter of 45mm and a height of 15mm. The base of this cylinder should be a solid disc 2mm thick with a diameter of 41mm. Hollow out the center of the main body to create a wall thickness of 2mm, resulting in an...
cap_dia = 30.5; cap_height = 15; interference = .01; handle_length = 100; handle = "yes"; outer_dia = 45; inner_dia = cap_dia * (1-interference); wall_thickness = 2; spine_angle = 15; spine_thickness = 1; num_spines = 36; spine_length = (outer_dia/2-wall_thickness-inner_dia/2)/cos(spine_angle); fa=0.1; fs=0.5; modu...
glb/cad_55f8607ee1b3.glb
Create a honeycomb desk organizer by constructing a hemispherical shell with a radius of 90mm. The structure is formed by a grid of hexagonal cells, each with an outer radius of 10mm and an inner wall radius of 9mm, creating a wall thickness of 1mm. Arrange these hexagons in a pattern where the center of each cell is o...
module hex(r) { circle(r = r, $fn = 6); } module hexgrid(hexcoord_list, r) { h = sqrt(3)*r; V = [0, h, 0]; U = [6/4*r, 1/2*h, 0]; for (vec = hexcoord_list) { i = vec[0]; j = vec[1]; translate(i*V + j*U) children(); } } hexes = [for (j=[-7:1:7]) for (i=[-7:1:7]) [i,j]]; module honeyvas...
glb/cad_29ba08597c7c.glb
Create a stereo photography camera holder. Start with a main rectangular base measuring 139mm in length, 22mm in width, and 30mm in height. Add a thin vertical support wall measuring 2mm by 22mm by 50mm at the far end (x=137). Carve out two large rectangular cavities for the cameras, each measuring 60mm by 18mm by 60...
difference(){ union(){ cube([139,22,30]); cube([139,2,50]); translate([137,0,0]) cube([2,22,50]); translate([75,0,0]) cube([2,22,30]); translate([-2,8,0]) cube([3,14,110]); rotate([0,90,0])translate([-74,15,-4]) cylinder(5,4,7,$fn=60); rotate([0,90,0]) translate([-110,15,-2]) cylind...
glb/cad_8e6d50d147cf.glb
Create a car holder for a mobile phone designed to fit into a CD slot. Start by creating a central rectangular base that is 65mm wide, 25mm deep, and 3.8mm thick, centered at the origin. Add a front support bar across the center that is 77.4mm wide, 4mm deep, and 10mm high. To create the side flanges, add a rectangular...
translate([0, 11, -3.1]) cube([65, 25, 3.8], center = true); cube([77.4, 4, 10], center = true); translate([35.5, -1.5, 0]){ rotate([0,0,-42]) cube([6, 2, 10], center = true); } translate([37.6 , -8, 0]) cube([2.2, 12.4, 10], center = true); translate([36.65 , -14, 0]) cube([4.1, 2, 10], center = true); translate([-...
glb/cad_0890b6a49b18.glb
Create a mounting bracket for two linear bearings and an 8mm screw. Start with a central block that is a 32mm cube with a height of 15mm. In the center of this block, create a vertical cylindrical hole with a diameter of 10.25mm and a depth that allows for a screw and nut. Around this central hole, create a larger cyli...
module hexaprism( ri = 1.0, h = 1.0) { ra = ri*2/sqrt(3); cylinder(r = ra, h=h, $fn=6, center=true); } module prism(l, w, h){ polyhedron( points=[[0,0,0], [l,0,0], [l,w,0], [0,w,0], [0,w,h], [l,w,h]], faces=[[0,1,2,3],[5,4,3,2],[0,4,5,1],[0,3,4],[5,2,1]] ); ...
glb/cad_0ec53349efea.glb
Create a battery replacement extension for an iStick TC40W. The main body is a hollowed-out shell with an overall external width of 22mm, a length of 34.4mm, and a height of 5mm. One end of the shell is rounded with a radius of 11mm, while the opposite end is flat with a chord cutout 14.4mm wide and 1mm high. The wall...
caseWW = 1.2; caseW = 22.0; caseL = 34.4; caseH = 5.0; caseVRadius = 11.0; caseVRCut = 14.4; caseVRCH = 1.0; caseVRCL = 11.4; caseVRCW = 1.0; caseVRCXO = 1.0; scrX = 20.2; scrY = 2.2; scrD = 2.0; $fn=36*2; module caseVolume( cW, cL, cH, cVR, cVRC ) { t = 2*asin(cVRC/(2*cVR)); d = cVR*cos(t/2); cd = cL;...
glb/cad_cc5ffd2b5c5d.glb
Create a Power Supply Cover with a main body measuring 100mm wide, 44mm high, and 42mm deep. The structure consists of a bottom base plate 2mm thick and two side walls each 2mm thick, connected by a rear wall 2mm thick that is 44mm high. On the front panel, create a rectangular cutout for a power switch measuring 13mm...
module PerfX(x,yb,ye,zb,ze,gap){ for (yg=[yb:gap:ye]) for (zg=[zb:gap:ze]){ translate([x,yg,zg]) rotate(a=[0,90,0])cylinder(r=3,h=4,$fn=100); }} module PerfY(xb,xe,y,zb,ze,gap){ for (xg=[xb:gap:xe]) for (zg=[zb:gap:ze]){ translate([xg,y,zg]) rotate(a=[90,90,0])cylinder(r=3,h=4,$fn=100); }} sizeX=100; sizeY=44...
glb/cad_85c93780a476.glb
Create a roller chain sprocket for an ANSI #25 chain with 9 teeth. The sprocket plate should have a thickness of 2.794mm. The geometry is defined by a pitch of 6.35mm and a roller diameter of 3.302mm. Position 9 teeth equally around the center. Each tooth is formed by the intersection of two cylinders with a radius o...
$fn = 180; sprocket(25, 9, 5/16, 0, 0); FUDGE_BORE=0; FUDGE_ROLLER=0; FUDGE_TEETH=1; function inches2mm(inches) = inches * 25.4; function mm2inches(mm) = mm / 25.4; module sprocket(size=25, teeth=9, bore=5/16, hub_diameter=0, hub_height=0) { bore_radius_mm = inches2mm(bore)/2; hub_radius_mm = inches2mm(hub_diamet...
glb/cad_3bf658734405.glb
Create a removable load for a PIKO coal car by constructing a rectangular hollow shell. Start with a solid rectangular block measuring 140.5mm in length, 29.5mm in width, and 17mm in height. From the center of this block, remove a smaller rectangular volume to create an open-top cavity. This interior cutout should be 1...
$fa=7.2; $fs=0.4; a=140.5; b=29.5; h=17; w=1.2; difference(){ color("grey"){ translate([0,0,h/2]) cube([a,b,h],center=true); } color("red"){ x=h+h/2-2*w; translate([0,0,x]) cube([a-w,b-w,h],center=true); } }
glb/cad_b02585cb0d11.glb
Create a Gyroscopic Relaxing Keyring consisting of a series of nested, concentric spherical shells. Start with a central core created by intersecting a sphere of 16mm diameter with a cube of 14mm height, then remove a 5mm diameter vertical cylinder from the center. Surround this core with 5 concentric rings. Each r...
$fs = 1; $fa = 7; total_height = 14; diam_central_sphere = 16; gap = 0.5; ring_thickness = 1; last_ring_thickness = 2; lug_ident = 1; diam_central_cylinder = 5; lettering_text = "Qwerty!_."; letter_thickness = 1; def_font = "Liberation Mono:style=Regular"; number_of_rings = 5; CentralSphere(); for (i = [1...
glb/cad_7757e27c713d.glb
Create a 608 bearing spacer by constructing a thick, hollow cylinder. Start with a solid outer cylinder that has a radius of 11mm and a height of 7mm. Center a cylindrical hole through the middle of this shape with a radius of 4.05mm. Ensure the hole extends completely through the height of the object to create a ring-...
$fn=192; difference() { union() { cylinder(h=7,r=11); } translate([0,0,-0.5]) cylinder(h=18,r=4.05); }
glb/cad_fe04cc58df6b.glb
Create an iPhone 6 trombone bell amplifier. Start with a rectangular block 77mm wide, 40mm deep, and 35mm high. Carve a slot into the top face to hold the phone, measuring 67.2mm wide by 7.1mm deep and 138.1mm long. From the bottom center of the block, extend a conical bell connector that is 31.5mm long. This connect...
pi = 3.14159265359; bell_connector_small_radius = 7.958; bell_connector_large_radius = 8.706; bell_connector_length = 31.5; bore_size=13.7; phone_width=67; phone_thickness=6.9; margin=5; $fn=200; rotate([-45-90,0,0]) difference() { union() { difference() { cube([phone_width+margin*2, 40,...
glb/cad_9fc2f6409132.glb
Create a Tevo Tarantula display support by constructing a wedge-shaped polyhedron. The base of the object is a rectangle measuring 100mm in length and 19mm in width. The shape should be 1mm thick at the front edge and slope upward to a thickness of 10mm at the back edge. This creates a tilted platform that is 100mm lon...
$fn=100; Points = [ [ 0, 0, 0 ], [ 100, 0, 0 ], [ 100, 19, 0 ], [ 0, 19, 0 ], [ 0, 0, 1 ], [ 100, 0, 1 ], [ 100, 19, 10 ], [ 0, 19, 10 ]]; Faces = [ [0,1,2,3], [4,5,1,0], [7,6,5,4], [5,6,2,1], [6,7,3,2], [7,4,0,3]]; polyhedron( Points, Faces ); translate ([0,(9.5-2.5),...
glb/cad_817e18032c5c.glb
Create a selfie stick bracket consisting of two identical parallel tubes connected by a central mounting block. First, construct two tubes. Each tube is 62mm long and formed by a hull of a cylinder with a 4mm radius and a 1mm by 5mm rectangular prism. Bore a hole through the center of each tube using two concentric c...
module tube() { translate([0, 0, 4]) rotate([0,90,0]) difference() { hull() { cylinder(r=4, h=62); translate([3, -2.5, 0]) cube([1, 5, 62]); } translate([0,0, -1]) cylinder(r=1.6, h=80); translate([0,0, 1]) cylinder(r=2.7, h=80); }; } module mount...
glb/cad_32546aa86474.glb
Create an iWatch charging stand by starting with a tapered cylinder that is 100mm tall, with a base radius of 27.5mm and a top radius of 20mm. From this main body, remove several geometric sections to create the necessary openings. First, carve out a large rectangular block measuring 150mm by 60mm by 40mm, centered at ...
$fn=600; difference() { cylinder(r1=27.5, r2=20 ,h=100); translate([0,0,165]) rotate([0,20,0]) cube(150, center=true); translate([0,-20,83]) rotate([0,20,0]) cube([6, 35, 7], center=true); translate([0,0,82]) rotate([0,20,0]) cylinder(d=29, h=10, center=true); translate...
glb/cad_450696b5c7fc.glb
Create an artificial tree replacement base consisting of a wide, tapered foundation and a narrow central sleeve. Start by creating a truncated cone with a height of 1.5mm, a bottom radius of 2.25mm, and a top radius of 1mm. Centered on top of this base, add a hollow cylindrical sleeve with a total height of 1.25mm. The...
numerical_slider = .05; cylinder(h=1.5,r1=2.25,r2=1,$fn=100); translate ([0,0,1.5]) { difference () { cylinder(h=1.25,r1=numerical_slider+.16,r2=numerical_slider+.16,$fn=50); cylinder(h=1.25,r1=numerical_slider+.05,r2=numerical_slider+.05,$fn=50); } }
glb/cad_ea6d43510cfe.glb
Create a Curvy Cube by starting with a solid cube that is 40mm on all sides. Hollow out the center of this cube by removing a smaller concentric cube with a wall thickness of 2mm. To create the characteristic curved openings, remove two cones, each with a height of 20mm and a base radius of 20mm. Position the first con...
$fn=100; size = 40; thickness = 2; module CurvyCube() { translate([0,0,size/2]) difference() { difference() { cube(size=size, center=true); cube(size-thickness*2, size-thickness*2, size-thickness*2, center=true); rotate([0,90,0]) cylinder(h=size/2, r1=0,r2=size/2); ...
glb/cad_a5ffe822cace.glb
Create a vacuum cleaner brush holder by constructing a hollow cylindrical sleeve with an internal diameter of 33mm and a wall thickness of 3mm. The sleeve should have a total height of 10mm. This cylinder is integrated into a flat, rectangular mounting base that extends 10mm beyond the outer edges of the cylinder on bo...
$fa=7.2; $fs=0.4; a=10; b=10; o=33; s=3; o_s=3; x=o+s+b; difference() { union() { color("green") translate([0,0,s/2]) cube([a,o+s+2*b,s],center=true); color("red") translate([0,0,o/4+s]) cube([a,o+s,o/2],center=true); color("blue") translate([-a/2,0,o/2+s]) rotate([0,90,0]) cylinder(d=o+s,h=a); } union(){ color(...
glb/cad_a62745369666.glb
Create a Customizable Blind Hole Cover Plate consisting of a circular disk and four integrated clamping stands. Start by creating a thin circular cover plate with a diameter of 87mm and a thickness of 3mm. From the underside of this disk, center a hollow cylindrical sleeve with an outer diameter of 75mm and a height ...
$fn=100; blindhole=75; holedepth=12; thwall=1.5; hbottofhook=thwall; overlap=6; coverh=3; cover=blindhole+(2*overlap); translate(v=[0,0,(coverh/-1)]) { cylinder (coverh,d1=cover-coverh,d2=cover); } difference() { cylinder (holedepth,d1=blindhole,d2=blindhole); cylinder (holedepth,d1=blindhole-(2*thwall),d2=blindhol...
glb/cad_f8ba9c3bd0a8.glb
Create an H0 European loading gauge tool by starting with a rectangular base plate measuring 48mm wide by 59mm long with a thickness of 3mm. From this main plate, remove material to create a specific profile. First, remove two rectangular sections from the sides, each 42mm wide and 11mm deep, centered along the length....
$fa=7.2; $fs=0.4; gr=3; b1=48; h4=59; h3=45; b2=32; b3=42; h1=11; h2=14; g=16.5; a=0.6; difference(){ translate([0,h4/2,gr/2]) cube([b1,h4,gr],center=true); color("red"){ translate([-b3,h1/2,gr/2]) cube([b3,h1,gr],center=true); translate([b3,h2/2,gr/2]) cube([b3,h2,gr],center=true); translate([g/2-a/2,a/2,gr/2]...
glb/cad_dfc8f5c8b577.glb
Create a key cover by starting with a smooth cylinder that has a radius of 13mm and a height of 4.5mm, centered on the origin. Remove a rectangular block measuring 26mm by 24mm with a height of 10mm, positioned to cut away the top half of the cylinder starting from the center. Additionally, remove a smaller concentric ...
difference () { cylinder($fn=200, r1=13,r2=13,h=4.5,center=true); translate ([-13,0,-5]) cube([26,24,10]); cylinder($fn=200, r1=12,r2=12,h=2.5,center=true); #translate([0,-6,0]) cylinder($fn=30, r1=3,r2=3,h=5,center=true); }
glb/cad_f09f5c31e1f1.glb
Create a Simple Vertical PVC Filament Spool Holder consisting of two separate parts: a base and a top support. For the base, create a square plate 42.835mm wide and long with a thickness of 6.35mm. Centered on this plate, add a cylinder with an outer diameter of 34.75mm and a height of 25.4mm. The bottom of this cylin...
model = "bottom"; $fn = 100; outer_diameter_pvc = 28.575; inner_diameter_pvc = 19.05; pvc_error = 0; holder_thickness = 3.175; inner_diameter = outer_diameter_pvc + pvc_error; outer_diameter = inner_diameter + 2*holder_thickness; holder_length = 25.4; chamfer = 3.175; base_length = outer_diameter*1.4; base_width = ...
glb/cad_d77a68d2442f.glb
Create a GoPro Mount for Paint Pole. Start by creating a main cylindrical body with a diameter of 26mm and a height of 30mm. Inside this cylinder, create an internal threaded hole with a diameter of 7/8 inch and a 5-pitch thread. On top of this cylinder, add a rectangular base measuring 6.2mm by 6.2mm with a height of...
gopro_captive_rod_id= 3.8; gopro_captive_rod_angle= 45; gopro_rod_nut_th= 3.6; gopro_rod_nut_od= 8.05; gopro_captive_protruding_h= 0.5; gopro_nut_d= 9.2; gopro_nut_h= 2; gopro_holed_two= 5; gopro_holed_three= 5.5; gopro_connector_th3_middle= 3.1; gopro_connector_th3_side= 2.7; gopro_connector_th2= 3.04; gop...
glb/cad_6db77c290fda.glb
Create a cabinet door corner bracket by starting with a solid rectangular block 40mm wide, 17mm deep, and 40mm high. Hollow out a rectangular section from the top and front to accommodate a door, leaving a wall thickness of 2mm. This cutout should be 13mm wide and 40mm high, extending beyond the main block's boundaries...
main_wall_thickness = 2; door_thickness = 13; bracket_height = 40; bracket_width = 40; bracket_depth = 17; difference() { cube([bracket_width, bracket_depth, bracket_height]); translate([main_wall_thickness, main_wall_thickness, main_wall_thickness]) cube([bracket_width + 10, door_thickne...
glb/cad_22c2f6ed4249.glb
Create an HO locomotive axle coupling consisting of a main cylinder with a radius of 3.2mm and a total height of 14.5mm. Bore a central hole through the bottom portion of the cylinder with a radius of 2.04mm and a depth of 10.3mm. At a height of 13mm, integrate a spherical joint with a radius of 2.1mm. To create a keye...
difference() { difference() { difference() { difference () { difference () { difference () { difference () { difference () ...
glb/cad_c4cfbbfa35a0.glb
Create an HO locomotive axle coupling consisting of a main cylindrical body and a spherical joint. Start by creating a cylinder with a radius of 3.75mm and a height of 8.3mm. At the top of this cylinder, centered at a height of 6.8mm, place a sphere with a radius of 2.1mm. To form the joint mechanism, remove a cubic ...
union() { difference () { difference () { difference () { difference () { difference () { ...
glb/cad_5cebd87d72b4.glb
Create a battery tray consisting of a base plate and four vertical holding fingers. The base plate is a rounded rectangle with a length of 62.5mm and a width of 17.4mm, a thickness of 2mm, and external corner radii of 7mm. Position two circular bolt holes on the center line of the base, spaced 43.5mm apart. Each hole...
$fn=60; bolt_c_c = 43.5; bolt_shank_dia = 6; bolt_head_dia = 6; bolt_head_inset = 1; batt_len = 62.5; batt_w = 17.4; base_t = 2; base_corner_r = 7; finger_t = 2; finger_w = 8; finger_h = 7.5; hole_web_t = 3; center_hole_r = 4; difference() { union() { batt_base(); batt_fingers(); } bolt_h...
glb/cad_cc7eefbc1b04.glb
Create a MarkBot telepresence robot consisting of a mobile base and a vertical tower. Start with a rectangular base plate 254mm by 508mm with a thickness of 6mm. The plate should have a 4mm lip around the edge and four rectangular cutouts (70mm by 110mm) centered near the corners to accommodate wheels. At the rear, a...
include<mcwheel/wheel.scad> module mwheel() { wheel(wheels=1, hardware=1); } module motor() { sh_d=3.2; mb_l=50; m_d=35.8; tot_l=91; sh_l=7.6; translate([0,0,-mb_l]) union(){ cylinder(r=m_d/2, h=mb_l); translate([0,0,mb_l/2]) cylinder(r=sh_d/2, h=sh_l+mb_l/2); } } module pack(){ d=23.1; l=43.2; for (x = [-3 : ...
glb/cad_2810e37094ef.glb
Create a battery box for three spare batteries consisting of a main container and a matching lid. For the main container, start with a solid rectangular block measuring 52.5mm in width, 43.5mm in depth, and 38mm in height. Hollow out this block by removing three vertical rectangular slots, each 14.5mm wide, 37.5mm deep...
difference(){ translate ([-3,-3,-3]) cube (size = [52.5,43.5,38]); union(){ color ("blue") translate ([-3,-3,30.5]) cube (size = [52.5,2,4.5]); color ("blue") translate ([-3,38.5,30.5]) cube (size = [52.5,2,4.5]); color ("blue") translate ([-3,-3,30.5]) cube (size = [2,43.5,4.5]); color ("blue") translate ([47.5,-3,30...
glb/cad_cdd7e9fd5b66.glb
Create a Holder for Universal Mount MPCNC for old Proxxon. Start by creating a central vertical plate 25mm wide, 2.5mm thick, and 46mm high. Attach a rectangular mounting block to the center of this plate, measuring 14mm wide and 11mm thick, extending the full 46mm height. On the sides of the central plate, add two sy...
HolderHeight=46; ScrewHolesHeigth=21.0; ScrewHolesHeigth2=71.0; ScrewDiameter=3; HolderMountWidth=14.0; HolderMountThickness=11; HandleLength=20; HandleOffset=1.0; HandleLock=2.5; $fn=80; cheekDegree=45; plateThickness=2.5; plateWidth=25; cheekThickness=2.8; cheekWidth=11.0; screwHolesFromEdge=6.3; module mount(){ c...
glb/cad_5be4d77d90c6.glb
Create a holder for a universal mount by constructing a main body that combines a cylinder and a rectangular block. Start with two overlapping cylinders, each 11mm in diameter and 15mm in height; position the second cylinder 2mm away from the first along the X-axis and 0.5mm along the Y-axis. Attach a rectangular block...
$fn=80; difference(){ union(){ cylinder(d=11,h=15); translate([2,0.5,0]) cylinder(d=11,h=15); translate([0,-5.5,0]) cube([30,3,15]); } union(){ cylinder(d=8,1,h=15); cylinder(d1=8.6,d2=8.1,h=1); #translate([-7.5,-2,6]) rotate([90,0,90]) cube([30,3.2,15]); #rotate([0,90,0]) translate([-7...
glb/cad_4caa2113c6da.glb
Create a Holder for Universal Mount MPCNC by starting with a main cylinder that has a diameter of 8mm and a height of 15mm. From this main body, remove a horizontal cylindrical void that passes completely through the center of the object along the X-axis. This void consists of two connected sections: a central hole wit...
$fn=80; difference(){ cylinder(d=8,h=15); #rotate([0,90,0]) translate([-7.5,0,-4]) union(){ cylinder(d=3,1,h=10); cylinder(d=6,h=4); } }
glb/cad_bb5b49a7fc9b.glb
Create a PiCam V2.1 Holder consisting of a mounting arm and a camera housing. First, construct the arm. Start with a base rectangular block 24mm wide, 15mm deep, and 3.5mm thick. From the side of this base, extend a rectangular arm that is 70mm long, 4mm wide, and 7mm thick. At the junction where the arm meets the ba...
armLength= 70+10+ 20; armThickness= 7; armWidth=15; armFixtureLength=14; armFixtureX=10; armFixtureHeight=10; armHole=4; armHoleY=5.7; armHoleZ=5.7; infinite_small=0.001; housing_thickness = 7; module picam() { board_x = 25; board_x_plus = 2; board_z = 24; board_y = 0.95+0.8; board_holders_x = 0.8-0.4; board_...
glb/cad_f3e9d65359c0.glb
Create a variable cylindrical air core coil holder. Start by creating a main outer cylinder with a radius of 25.84mm (Radius + CylinderOverSize) and a total height of 24mm (10 coils * 2mm pitch + 2 * 2mm overhang). Hollow out this cylinder by removing a smaller concentric inner cylinder with a radius of 24.16mm (Radi...
Radius= 25; Wire_radius=0.42; Pitch= 2; Coils = 10; Overhang=2; OversizeFaktor=1.1; Step=5; $fn= 40; CilinderOverSize=Wire_radius; Wire_radius_real=Wire_radius*OversizeFaktor; function m_translate(v) = [ [1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], ...
glb/cad_07c9782f870b.glb
Create a Beat Whistle consisting of a main body with a hollowed-out interior to form two acoustic chambers. The outer shell is a rounded rectangular block with a total height of 11mm and a width that extends to 31.6mm. The body features a cylindrical loop hole at one end with a diameter of 10mm, centered at the far edg...
xw=0.4; gw=2; hw=5; hh=6; cl=[26.6,25]; ml=25; clMax=(cl[0]>cl[1])?cl[0]:cl[1]; clMin=(cl[0]>cl[1])?cl[1]:cl[0]; difference(){ color("blue") minkowski(){ translate([0,0,gw/2]) linear_extrude(height=hh+gw){ hull(){ translate([clMax,-gw,0]) square(gw, center=true); ...
glb/cad_a56a82ed4441.glb
Create a Custom-fit Cabinet Child Lock by designing a flat, flexible strip with a thickness of 2mm and a total depth of 6mm. The main body is a rectangular bar with a length equal to the distance between the centers of two cabinet knobs (57mm). At both ends of the bar, create semi-circular rings with an inner diamete...
spindle_diameter = 8.7; between_centers = 57; thickness = 2; depth = 6; fixed_side_tightness = 0.8; thumb_r = 16; thumb_angle = 135; thumb_angle2 = 60; linear_extrude(depth) { translate([-0.001,0,0]) square([between_centers+0.002,thickness]); translate([0,-spindle_diameter/2]) difference() { cir...
glb/cad_de30eef1f845.glb
Create a landing gear adapter consisting of two joined hollow rectangular sections. First, create a rectangular sleeve with an outer cross-section of 18mm by 18mm and an inner square hole of 12mm by 12mm, extending for a length of 60mm. Attached to this first section, create a second identical hollow sleeve with an i...
what_part = "adapter"; shaft_length = 60; inner_diameter = 12; wall_thickness = 3; screw_diameter = 3; $fn = 100; choose_part(); module choose_part() { if(what_part == "adapter") { adapter(); } else { landing(); } } module landing() { difference() { union() { difference() { cube([shaft_length+...
glb/cad_b7e7281b6fab.glb
Create a Nema 17 Motor Mount for a 20mm profile. Start with a base rectangular block measuring 46mm in width, 41.2mm in height, and 62mm in depth. From the bottom, remove a central rectangular section measuring 42mm by 42mm with a height of 20mm to create a U-shaped channel. Within the remaining walls, create two vert...
$space=2; $motor_width=42; $motor_height = 39.2; $profile = 20; $hole_diameter = 5; $fn = 50; $motor_hole_offset = 5.5; $motor_mount_hole_size = 3; $motor_inner_outstanding = 22.5; $motor_wiring_width = 7.7; $motor_wiring_height = 8.8; difference() { union(){ difference() { cube([$moto...
glb/cad_533d2e17d3ae.glb
Create a Right-Handed Coordinate System Axes tool consisting of two interlocking parts. First, construct the XY plane assembly. Create a central cubic holder 6mm wide, 6mm deep, and 5mm high. From the center of this cube, extend two identical pointer arms along the X and Y axes. Each arm should be 54mm long, featurin...
module round_arm(len=40) { translate([+1,+1,0]) cylinder(r=1,h=len,$fn=32); translate([+1,-1,0]) cylinder(r=1,h=len,$fn=32); translate([-1,+1,0]) cylinder(r=1,h=len,$fn=32); translate([-1,-1,0]) cylinder(r=1,h=len,$fn=32); translate([-2,-1,0]) cube([4,2,len]); translate([-1,-2,0]) cube([2,4,len]); } module arrow...
glb/cad_a804e69ae507.glb
Create a personalized keychain by designing the letters "MLM" in a cursive, script-style font with a height of 5mm and a font size of 15mm. Position the letters to run from left to right. At the start of the text, add a decorative ring to serve as a key attachment point. This ring should be constructed as a hollow cyli...
$fn = 100*1; translate([1,16.75,0]) difference() { cylinder(r=4, h=5,$fn=200); cylinder(r=2.5, h=5,$fn=200); } text = "MLM"; font = "Dancing Script"; size = 15; extrude = 5; spacing = 0.7; web = 0; direction = "ltr"; translate([0,0,0]) linear_extrude(extrude) text( text, size, font=font, ...
glb/cad_66012efeeea6.glb
Create a funnel for oil filling with a total height of 40mm and a uniform wall thickness of 2.5mm. The structure consists of three stacked sections. Start from the bottom with a cylindrical spout that has an outer diameter of 18mm and a height of 20mm. From the top of this spout, create a conical transition that flares...
Large_End_Diameter = 40; Small_End_Diameter = 18; Wall_Thickness = 2.5; Funnel_Height = 40; Top_Band = 7; Bottom_Spout_Length = 20; spout_or = Small_End_Diameter/2; wall = Wall_Thickness; flare_percentage = Large_End_Diameter / Small_End_Diameter * 100; height = Funnel_Height; bottom_band=Bottom_Spout_Length; re...
glb/cad_9471fc149690.glb
Create a Z Axis Coupler starting with a main cylindrical body that has a radius of 10mm and a height of 30mm. Remove a central vertical shaft consisting of three stacked sections: a bottom cylinder with a 4mm radius and 14mm height, a conical transition section 2mm high that tapers from a 4mm radius down to a 2.5mm rad...
difference(){ translate([0,0,0]) cylinder(r=10,h=30,$fn=100); translate([0,0,6]) #cylinder(r=15/2, h=8, $fn=6, center=true); translate([0,-6,6]) #cube([15,12,8], center=true); translate([0,0,0]) #cylinder(r=4,h=14,$fn=30); translate([0,0,14]) #cylinder(r1=4,r2=5/2,h=2,$fn=30); translate([0,0,10]) #cylinder(...
glb/cad_df4537c7ce14.glb
Create an LCD backplate with overall dimensions of 163mm width, 61mm depth, and 6mm height. The main body is a rectangular slab with rounded corners of 5mm radius. At each of the four corners, create a mounting hole with a radius of 1.8mm, positioned 5mm from each edge. On the top face, carve out a recessed area that...
width = 163; depth = 61; height = 6; corner_radius = 5; mounting_hole_pos = 5; mounting_hole_radius = 1.8; plug_cutout_x = 38; plug_cutout_y = 30; plug_cutout_w = 26; plug_cutout_d = 15; cutout_depth = 1; wall_thickness = 3; difference() { union() { translate([corner_radius, 0, 0]) cube([width-...
glb/cad_3f1d3b8b3bb8.glb
Create a mouse trap consisting of a bottle holder, a cap, and two connecting rods. First, construct the bottle holder. Create a vertical support bar 5mm thick, 100mm wide, and 10mm high. On top of this, center a semi-circular band with an inner diameter of 65mm and a thickness of 3mm. Cut a 45mm wide rectangular openi...
use <MCAD/triangles.scad>; showAll = 1; renderCap = 0; renderRods = 0; renderBottleHolder = 0; washer = 0; bottleDiameter = 65; bottleHolderThickness = 3; bottleHolderWidth = 5; bottleHolderBandWidth = 8; bottleHolderTopCutout = 45; bottleStandHeight = 10; bottleStandWidth = 100; bottleStandThickness = 5; bottleSta...
glb/cad_8b1608132c34.glb
Create a Hexagonal Bee Cookie Maker consisting of two separate parts: a cutter and a stamp. For the cutter, create a hexagonal ring with a diameter of 62mm and a height of 30mm. The ring should have a wall thickness of 2mm, leaving a hexagonal void in the center with a diameter of 60mm. At the base of the cutter, add ...
main_diameter = 60; main_height = 30; motif_height = 1.6; outer(); translate([80, 0, 0]) inner(); module inner() { union() { cylinder(h = main_height * 0.1, d = main_diameter + 15, $fn = 6); cylinder(h = main_height * 1.1 - 3, d = main_diameter - 1, $fn = 6); scale([.65, .65, 1]) translate...
glb/cad_8ab5b0e33d54.glb
Create a Goal Tracker Card by starting with a rectangular base measuring 85.60mm by 53.98mm with a thickness of 2.1mm. Along the two longer edges and the two shorter edges, create a series of rectangular notches to form break-off tabs. On the long edges, place 11 tabs each measuring 3mm wide and 8mm deep, spaced 6mm ap...
use <write/Write.scad> $fn = 100; card_x = 85.60; card_y = 53.98; card_z = 2.1; tab_x = 3; tab_y = 8; tab_z = 10; edge_x1_num = 10; edge_y1_num = 4; break = 6; text_1 = "$30 Splurge"; text_h = 8; difference() { cube([card_x , card_y, card_z]); for( i = [1 : edge_x1_num + 1]) { translate([i * break , 0...
glb/cad_5ccd7e33af27.glb
Create a Solder Paste Syringe Holder by constructing a vertical rectangular wall and a horizontal circular ring. Start with a vertical rectangular block that is 6mm wide, 25mm tall, and 23mm thick. At the top of this block, create a horizontal circular ring with an outer diameter of 23mm and an inner hole of 19mm, with...
$fn=30; module countersunk(h) { translate([-0.01, 0, 0]) rotate([0, 90, 0]) cylinder(d1=2, d2=4, h=h+.1); } module support(t) { difference() { cube([t, 2, t]); rotate([0, 45, 0]) translate([0, -.1, 0]) cube([t*2, 2.2, t*2]); } } module holder(d, h, ...
glb/cad_a721d83e7f4b.glb
Create an overhang sign by starting with a main rectangular block measuring 100mm in length, 38.4mm in width, and 23.8mm in height. Hollow out the center of this block to create a U-shaped bracket. First, remove a central rectangular section measuring 105.6mm by 38.4mm by 21mm to create the primary opening. Next, remov...
sign_length=100; text_size=30; thickness=2.8; door_thickness=21; sign_text="Metal"; Face_down=0; rotate([Face_down,0,0]) difference(){ cube([sign_length, text_size+ thickness*2, door_thickness+thickness], center=true); translate([0,-thickness,0]) cube([sign_length+thickness*2, text_size+thickness*2, door_thic...
glb/cad_0f03c39340d3.glb
Create an Air Planter by constructing a hollowed-out wedge shape. Start with a solid polyhedron that has a width of 80mm, a height of 70mm, and a depth of 40mm. The outer geometry is defined by a triangular profile that tapers from the full width at the front to a point or narrow edge at the back. To create the inter...
$fn=30 * 1; width=80; height=70; depth=40; thickness=2; with_nailmount="no"; module poly(x1, x2, x3, y1, y2, z1, z2) { polyhedron( points=[ [x1, y1, z1], [x2, y1, z2], [x3, y1, z2], [x1, y2, z2]], faces=[[3, 0, 1], [3, 1, 2], ...
glb/cad_47aad3e7e18c.glb
Create a snap-fit case for a BeagleBone Black consisting of a bottom base and a top lid. For the bottom base, create a rounded rectangular block 60mm wide, 92mm long, and approximately 20.9mm high with 5mm corner radii. Carve out a central dugout for the PCB measuring 55.7mm by 87.6mm. On the sides of this base, crea...
$fn = 120; include <marks_lib.scad>; module pcb() { union() { color("DarkSlateGray") rounded_rect(54.8,86.9,1.6,10); color("DarkSlateGray") translate([0,40,0]) rounded_rect(54.8,46.9,1.6,5); } } module bbb() { difference() { union() { pcb(); color("silve...
glb/cad_6856ad4f3299.glb
Create a Filament Spool Holder by constructing a central body and removing several cylindrical voids. Start with a base formed by the convex hull of four cylinders, each with a radius of 5mm and a height of 2.5mm, positioned at coordinates (±7.5, ±40, 0). Merge this with a centered rectangular block measuring 20mm by 7...
$fn=70; difference(){ union(){ hull(){ translate([7.5,40,0])cylinder(h=2.5,r=5); translate([7.5,-40,0])cylinder(h=2.5,r=5); translate([-7.5,40,0])cylinder(h=2.5,r=5); translate([-7.5,-40,0])cylinder(h=2.5,r=5); } hull(){ translate([0,0,1])cube([20,78,2],center = true); translate([-10,25,15])rotate([0,90,0])cylinder(h=2...
glb/cad_b5fac57ed331.glb
Create a torus by rotating a circle around a central axis. The circle used to generate the shape must have a radius of 1mm. Position the center of this circle 4.1mm away from the axis of rotation. Ensure the final geometry is smooth by using a high facet count of 144 for both the circular cross-section and the overall ...
R1=2; R2=10.2; module Torus(R1,R2); { RA=R1 /2; RB=R2 /2 - R1/2 ; rotate_extrude(convexity = 10, $fn = 144) translate([RB, 0, 0]) circle(r = RA, $fn = 144); }
glb/cad_8c4862cc491b.glb
Create a DragonLink UHF Tx Cradle clip by starting with a rectangular base measuring 47mm in length, 20mm in width, and 4mm in height. Attached to this base, center a cylinder with a radius of 5mm and a height of 40mm, oriented horizontally so it extends perpendicular to the base's length. To finish the clip, remove ...
$fn=40; difference() { union() { cube([47,20,4]); translate([0,30,5]) rotate([90,0,0]) cylinder(r=5,h=40); } translate([0,30,5]) rotate([90,0,0]) cylinder(r=2.5,h=40); translate([7,2.5,3]) cube([50,15,2]); translate([2.0,-11,4.0]) rotate([0,-45,0]) cube([5,42,4.5]); translate([17,10,-1]) cylinder(r=2.5,h=...
glb/cad_fde35d0fc51a.glb
Create a DragonLink UHF Tx Cradle by starting with a main rectangular block measuring 81mm in length, 35mm in width, and 15mm in height. At each end of the 81mm length, add a cylinder with a radius of 2mm and a height of 15mm, centered at the 36mm width mark. Carve out a central slot measuring 19mm long, 3mm wide, and ...
$fn=20; difference() { union() { cube([81,35,15]); translate([1.75,36,0]) cylinder(r=2,h=15); translate([79.25,36,0]) cylinder(r=2,h=15); translate([31,-2.9,0]) cube([19,3,15]); } translate([3,3,0]) minkowski() { cube([75,30,15]); cylinder(r=.5,h=0.1); } translate([3.5,30,0]) cube([74,10,15]); tra...
glb/cad_aa805052b6c2.glb
Create a DragonLink UHF Tx Cradle by constructing a hollowed-out rectangular sleeve with rounded ends. Start with a solid outer block measuring 31.5mm in width, 23.5mm in depth, and 15mm in height. Hollow out the center to create a slot that is 24.5mm wide, 15mm deep, and 15mm high, leaving a wall thickness of 3.5mm on...
include<./MCAD/libtriangles.scad>; $fn=20; type = 1; custd=30; custw=30; barw = 15; bart = 1; if (type==1) { uhfholder(24.5,67,15); } else if (type==2) { uhfholder(29,74.5,15); } else if (type==3) { uhfholder(23,74,15); } else if (type==4) { uhfholder(custd,custw,15); } module uhfholder(d, w, h) { dif...
glb/cad_589a21562c35.glb
Create a toy microscope ornament consisting of a base, a supporting column, a specimen plate, and a magnifier tube. Start with the base: create a shape that is the intersection of a cylinder with a 20mm radius and 10mm height, and two cubes of 10x40x10mm positioned at x=-20 and x=10. Remove a central cylinder with a 1...
show=0; test=0; base=1; column=1; plate=1; tube=1; if( base ) { intersection() { union() { translate( [-20,0,0] ) cube( [10,40,10] ); translate( [10,0,0] ) cube( [10,40,10] ); difference() { cylinder( r=20, h=10 ); cylinder( r=10, h=10 ); translate( [-20,0,0] ) cube( [40,20,10] ); translate( [0,-16...
glb/cad_fa6f9acca6ef.glb
Create a toy microscope ornament consisting of a base, a supporting column, a specimen plate, and a magnifier tube. Start with the base: create a shape that is the intersection of a cylinder with a 20mm radius and 10mm height, and two cubes of 10x40x10mm positioned at x=-20 and x=10 respectively. Remove a central cyli...
show=1; test=0; base=1; column=1; plate=1; tube=1; if( base ) { intersection() { union() { translate( [-20,0,0] ) cube( [10,40,10] ); translate( [10,0,0] ) cube( [10,40,10] ); difference() { cylinder( r=20, h=10 ); cylinder( r=10, h=10 ); translate( [-20,0,0] ) cube( [40,20,10] ); translate( [0,-16...
glb/cad_7aef4a58892b.glb
Create a wall hanger for a remote and its accessory. Start with a central vertical cylinder with a diameter of 28.875mm and a total height of 24.45mm. Along the central axis, create three toroidal rings with a cross-sectional diameter of 3.85mm. Position the first ring at the base, the second ring 3.85mm above the fi...
cableGap=3.85; strapWidth = 9.2; hangerDiameter = cableGap*7.5; headWidthMax = 8.3; headWidthRoot = 3.4; taperHeight = 3.85; threadWidth = 4.3; modelHeight = cableGap * 4 + strapWidth; difference(){ outerEnvelope(); removedRegions(); } module outerEnvelope(){ translate([0,0,0*cableGap]){ cableModel(); } translate([0,...
glb/cad_a03825d445f6.glb
Create a Lego Minifigure Head by combining several concentric cylindrical components. Start with a central head support, which is a hollow cylinder with an outer diameter of 3.7mm and an inner diameter of 2mm, and a height of 6.5mm. At the top of the head, add a knob: a hollow cylinder with an outer diameter of 4.88m...
R1=2; R2=10.2; wall=0.9; walls=wall*2; t=0.1; T=0.2; $fn=100; $fn=60; Depth=1; color( "Yellow", 0.5 ) { translate([0,0, 8.5 ]) Head_Knob(); translate([0,0,1.21+6.5 ]) Torus_Hollow(); translate([0,0,2.6 ]) Head_Support(); Neck(...
glb/cad_420301311dbd.glb
Create a shopping cart token by starting with a flat cylinder 27mm in diameter and 2mm thick. Remove a smaller vertical cylindrical hole with a radius of 3mm, positioned so that its center is offset from the center of the token by 10.5mm along the y-axis (calculated as the coin radius minus the hole radius minus 3mm). ...
include <write/Write.scad> part = "both"; coin_diameter=27; coin_thickness=2; hole_radius=3; text="TO BE OR NOT TO BE"; font_size=3; font_spacing=1.3; radius=coin_diameter/2; fn=300; module txt(){ writecylinder(text,[0,0,0],radius,coin_thickness*2-0.5,face="top",center=true,h=font_size,space=font_spacing); } if(p...
glb/cad_c1532b59400d.glb
Create a corner bracket for an enclosure. Start by forming the main body from two joined rectangular prisms: one measuring 15mm x 100mm x 5mm and another measuring 5mm x 100mm x 15mm, sharing a common edge to create an L-shaped profile. Remove material to create precise slots and holes. At both ends of the bracket, c...
difference(){ union(){ cube([15,100,5]); cube([5,100,15]); } { union(){ translate([10,10,4]) cube([6,5.5,2.5],center=true); translate([10,10,-1]) cylinder(h=10, r=1.25,$fn=360); translate([10,90,4]) cube([6,5.5,2.5],center=true); translate([10,90,-1]) cylinder(h=10, r=1.25,$fn=360); translate([10,190,4]) cube([6,5.5,2...
glb/cad_904141f462aa.glb
Create a corner bracket for an enclosure. Start with a base rectangular block that is 15mm wide, 200mm long, and 15mm high. This base is formed by two joined rectangular prisms: one measuring 15mm by 200mm by 5mm and another measuring 5mm by 200mm by 15mm, sharing the same origin. Remove several geometric cutouts from...
difference(){ union(){ cube([15,200,5]); cube([5,200,15]); } { union(){ translate([10,10,4]) cube([6,5.5,2.5],center=true); translate([10,10,-1]) cylinder(h=10, r=1.25,$fn=360); translate([10,100,4]) cube([6,5.5,2.5],center=true); translate([10,100,-1]) cylinder(h=10, r=1.25,$fn=360); translate([10,190,4]) cube([6,5.5...
glb/cad_1254e50a5172.glb
Create a corner bracket for an enclosure. Start with a base L-shaped profile consisting of two joined rectangular prisms: one measuring 20mm wide by 200mm long by 3mm thick, and a second perpendicular prism attached along the edge measuring 2mm wide by 200mm long by 20mm high. Remove six cylindrical holes, each with ...
difference(){ union(){ cube([20,200,3]); cube([2,200,20]); } { union(){ translate([15,10,0]) cube([6,5.5,2.5],center=true); translate([15,10,-1]) cylinder(h=10, r=1.25,$fn=360); translate([15,100,0]) cube([6,5.5,2.5],center=true); translate([15,100,-1]) cylinder(h=10, r=1.25,$fn=360); translate([15,190,0]) cube([6,5.5...
glb/cad_fd72bfae3a8d.glb
Create a bokeh filter for a camera lens. Start by creating a main thin cylindrical disc with a diameter of 56.8mm and a height of 2mm. At the outer edges of this disc, along the X-axis, place two small vertical cylinders with a radius of 0.7mm and a height of 2mm. To create the handle, position a cylinder with a radi...
filter_diameter = 58; reduction_factor = 2; generate_handle = true; handle_radius = 6; image_file = "file.dat"; filter_cut(filter_diameter/2,reduction_factor); module filter_cut(radius, reduction_factor) { $fn=58; difference(){ filter(radius-0.6); translate([radius-3.4,-2,0]) cube...
glb/cad_24389eae894e.glb
Create a 3mm filament guide by constructing a composite cylindrical shape. Start with a wide, flat circular base with a radius of 15mm and a height of 2mm. Centered on this base, add a taller vertical cylinder with a radius of 6mm and a height of 10mm. To create the guide passage, remove a central core from the entire ...
difference(){union(){ cylinder (h=2, r=15); cylinder(h=10,r=6); }{ cylinder(h=15,r=2); cylinder(h=15,r1=0,r2=6); }}
glb/cad_47c86cda4076.glb
Create a toothbrush holder by starting with a rectangular base measuring 140mm in length, 10mm in height, and 11mm in width. Center the base along its length. Remove four identical vertical slots for toothbrushes, spaced 25mm apart starting from the 25mm mark. Each slot is formed by a combination of a central cylinde...
$fs=0.3; $fa=0.3; b_height = 10; screw_head_h=1.5; screw_center = 0; screw_slice = 14; difference(){ linear_extrude(b_height){ translate([0,-5.5,0])square([140,b_height+2]); } union(){ for(i=[25:25:100]){ translate([i+screw_slice/2,0,-1]) brush_hole(); } ...
glb/cad_b95b9c2d2902.glb
Create a Slotter lattice hinge module by starting with a solid rectangular base measuring 40mm in width, 50mm in length, and 3mm in thickness, centered on the origin. Within this base, carve out a series of repeating slot patterns to create a flexible hinge. The slots are arranged in 3 columns. Each slot is defined b...
difference(){ cube([40,50,3],true); slotter(20,40,3,3,1,1.5); } module slotter(linkW, linkL, columns, sheetT, slotW, beamW) { $fn=50; col=columns; fudge=0.1; row = floor((linkW-beamW-1)/(slotW+beamW)-1); slotL = linkL/col-beamW*2; echo("length of link", linkL); echo("link rows",row...
glb/cad_7bef3bf37532.glb
Create an Apple TV Mount consisting of a base and a platform. Start by creating a cylindrical base with a radius of 35mm and a height of 80mm. On top of this base, center a flat, square platform with rounded corners. This platform should be 60mm wide and 60mm deep, with a thickness of 2.5mm, and its corners should be d...
$fn=100; translate([0,0,20])rotate_extrude() difference(){ union(){ translate([8.5,5])square([17,10],center = true); hull(){ translate([8.5,10])square ([17,.1],center = true); translate([15,54.9])square ([30,.1],center = true); } } translate([48.5,21.5])circle(38); } difference(){ cylinder (h=20,r=17); cylinder (h=20...
glb/cad_b4cd6491abca.glb
Create an M5 Knurled Knob by constructing a cylinder with a diameter of 15mm and a height of 15mm. The outer surface of the cylinder should feature a knurled grip pattern consisting of repeating diamond-shaped protrusions, each 7mm wide and 5mm high with a depth of 2mm. This knurling should cover the sides of the cylin...
knob_dia = 15; knob_height = 15; hole_dia = 6; cutback_dia = 20; cutback_depth = 0; nut_radius = 4.595; nut_depth = 4.8; knurl_cutoff = knob_height-1; knurl_width = 7; knurl_height = 5; knurl_depth = 2; knurl_smooth_amount = 20; knob_diaB = knob_dia; knob_diaT = knob_dia; include <C:\Users\peredniks\OneDr...
glb/cad_32575b3b8f11.glb
Create a small rectangular ventilation box with a separate lid. The main body is a hollow rectangular prism with exterior dimensions of 76mm width, 86mm height, and 30mm depth, featuring a wall thickness of 3mm. The interior cavity should be 70mm wide, 80mm high, and 24mm deep, leaving a 6mm thick base. Cut six ventil...
box_thick = 3; box_width = 70 + 2 * box_thick; box_height = 80 + 2 * box_thick; box_depth = 24 + 2 * box_thick; n_rejillas_bottom = 6; n_rejillas_lateral = 8; difference() { cube( [ box_width, box_height, box_depth] ); translate([ box_thick, box_thick, 2 * box_thick] ) cube( [ box_width - 2 * box_thic...
glb/cad_cbe25f46a945.glb
Create an Automatic Fish Feeder consisting of a top housing and a bottom base. For the top section, create a rectangular block 42mm long, 35mm wide, and 8.9mm high. Centered along the length, add a vertical cylindrical feed tube with an outer diameter of 10mm and an inner diameter of 8.8mm, extending 25mm upward. Car...
$fn = 120; include <marks_lib.scad>; module top() { body_width = 35; body_height = 8.9; union() { translate([10/2+1,0,8.8]) difference() { cylinder(d=10, h=25); translate([0,0,-.5]) cylinder(d=10-(3*0.4), h=31); } difference() { translate([0,...
glb/cad_ab6312e902ae.glb
Create a BrailleRap additional part by starting with a main cylinder that has a radius of 6.38mm and a total height of 13mm. From the center of the bottom face, remove a vertical hexagonal prism with a flat-to-flat width of 6mm and a height of 10mm, starting from an offset of 3mm above the base. Through the center of t...
$hauteurCyl = 13; $panVide = 6; $taillePan = 6; $diametreCyl = 2.1378618*$taillePan; $hauteurVide = 10; $decaleVide =[0,0,3]; $diametreFixeVide=1; diametrePointeau=2; difference() { cylinder(h=$hauteurCyl, r=$diametreCyl/2, center=false, $fn=200); translate($decaleVide){ cylinder(h=$haut...
glb/cad_73faced774ae.glb
Create a decorative angel figure. Start with a hollow conical body 60mm tall, tapering from a 30mm radius base to a 7mm radius top. The interior is hollowed out by a smaller cone with a 28mm base radius and 3mm top radius. At the top of the body, place a spherical head with a 15mm radius. Carve a small, scaled-down sph...
$fn=100; body_ht=60; body_rad=30; module wings() { difference () { cylinder (h=2, r1=50, r2=50,center=true); union () { cylinder (h=10, r=20,center=true); translate ([0,0,-10]) cube(60); } } } head_rad=15; module head () { difference () { sphere(head_rad); rotate ([20,0,0]) translate ([0,-head_ra...
glb/cad_36d1cf145802.glb
Create a spool holder for v-slot extrusions. Start with a rectangular base measuring 20mm wide, 70mm long, and 3mm high. In the center of this base, carve out a rectangular slot 5mm wide and 4mm deep, leaving a 10mm margin from each end of the base. Drill two holes completely through the base, each 4.5mm in diameter; p...
$fn = 100; slotWidth = 5; slotDepth = 4; baseWidth = 20; baseLength = 70; baseHeight = 3; sideGap = 10; armLength = 80; armDia = 15; holder(); module holder(){ difference(){ union(){ base(); translate([0,baseLength/8]) arm(); } translate([0,-base...
glb/cad_8f8869827fb9.glb
Create a horse-cart shaft accessory with a uniform thickness of 2mm. Start with a central rectangular bar measuring 46mm in length and 3mm in width. At each end of this central bar, create a circular attachment head with a radius of 3.5mm and a height of 2mm. Within each of these circular heads, remove a circular hole ...
br=3.5; link_l = 13; link_w = 4; t = 2; module attachment() { difference() { cylinder(r=br, h=t, $fn=32); translate([0, br-(1.15+2.7), 0]) cylinder(r=1.65, h=t, $fn=32); # difference() { union() { translate([-1.4,-4, 0]) cube([2.8, 4, t]); translate([-2, -br, 0]) cube([4, 1, t]); ...
glb/cad_35c55da6137c.glb
Create a Bahtinov mask for a telescope with an outer diameter of 215mm and an aperture diameter of 203mm. The main body is a flat disc 2mm thick. Cut a series of precise slits into the disc to create the Bahtinov pattern. These slits consist of parallel bars and gaps, each 5mm wide. The slits are arranged in three gr...
outerDiameter = 215; aperture = 203; centerHoleDiameter = 0; gap = 5; HandleHeight=10; module bars(gap, width, num=5) { num = round(num); for (i=[-num:num]) { translate([width/2,i*2*gap]) square([width,gap], center=true); } } module bahtinovBars(gap,width) { numBars = aperture/2 / gap / 2 ...
glb/cad_548a5bc001c6.glb
Create an experimental ring lampshade by constructing a hollow spherical shell with an outer radius of 80mm and an inner radius of 75mm. To create the open-lattice structure, remove material using a series of horizontal rectangular slices. Specifically, carve out the volume using a series of 180mm x 180mm x 10mm cubes ...
start=-90; step=15; end=90; offset=10; cube_height=10; module rings() { difference() { difference() { sphere (r=80); sphere (r=75); } for(i=[start:step:end]) { translate([-90,-90,offset+i]) cube([180,180,cube_height]); } } } module ring1 () { difference() { rings(); translate([-90,-90,-90]) cube([180,180,90])...
glb/cad_3071fb31ade5.glb
Create a plotter cutter blade mount consisting of a base plate, a holder body, a securing strap, and a cap. Start with a rectangular base plate 64.9mm wide and 3mm thick. At the center, construct a holder body with a total width of 31.85mm (calculated as a 15.85mm collar diameter plus 7mm of wall on each side). The h...
width = 64.9; cornerSnip = 5.7; holes = [[7,13],[58,13],[7,35],[58,35]]; baseThickness = 3; cutterDesiredDiameter = 11.5; collarDesiredDiameter = 15.85; collarDesiredThickness = 2; spaceAboveCollar = 4.75; spaceBelowCollar = 15; collarToSpring = 23; collarVerticalTolerance = 0.5; cutterTolerance = 0.25; widthAround...
glb/cad_53414cd8935d.glb
Create a simple springy clip for wide objects. The model consists of a U-shaped spring body and two extending jaws. Start by creating a semi-circular spring band with a width of 15mm, a thickness of 2.25mm, and a spacing of 20mm between the ends. The band should curve from a resting angle of 20 degrees. At each end o...
width = 15; spacing = 20; restAngle = 20; jawLength = 20; handleLength = 25; jawThickness = 2.5; bottomTeethOffset = 1; bottomToothHeight = 1.5; bottomToothWidth = 1.5; bottomToothSet = 0.2; topTeethOffset = 1; topToothHeight = 0; topToothWidth = 1.5; topToothSet = 0.3; springThickness = 2.25; module end_of_paramete...
glb/cad_ec1a284aded7.glb
Create a K8200 LCD-Panel assembly consisting of a top panel, a bottom panel, a holder, and a knob. For the top panel, create a rectangular block 149mm wide, 84mm deep, and 26mm thick with rounded edges (2mm radius). Hollow out the center to leave a 24mm thick wall. Cut a central rectangular opening 76mm wide and 26mm ...
*translate([0,0,14]) rotate([0,180,0]) Panel_Top(); *Panel_Reset_Knob(); *rotate([180,0,0]) Panel_Bottom(); translate([49,0,80]) Panel_Knob(); translate([0,0,50]) rotate([0,0,0]) Panel_Top(); color("Red") translate([56,-30,20]) Panel_Reset_Knob(); rotate([180,0,0]) Panel_Bottom(); translate([65.5,0,-10]) rotate([0,0,1...
glb/cad_3d0485562378.glb
Create a customizable laser-cut box with a material thickness of 5mm. The box has an overall width of 250mm, height of 200mm, and depth of 100mm. Construct the top panel as a rectangle of 250mm by 100mm. Create two side panels; each consists of a lower section 100mm deep and 100mm high (half the total height), and an...
box_width = 250; box_height = 200; box_depth = 100; material_thickness = 5; output_type = "STL"; spacing = 5; ratio = 0.5; h2 = box_height*ratio; h1 = box_height*(1-ratio); if(output_type=="STL") {linear_extrude(height = material_thickness, center = false) box_creation(); } if(output_type=="DXF") {box_creation();}...
glb/cad_166c4f6902a1.glb
Create a filament spool holder bearing housing. Start with a central cylinder 52.5mm in diameter and 18mm high. At the bottom of this cylinder, add a wider disc 57.5mm in diameter and 2mm thick, centered on the same axis. Remove a central cylindrical void 40mm in diameter and 14mm high, positioned so its bottom aligns ...
module rolna() { $fn = 64; spulka_prumer = 52.5; spulka_vyska = 18; loz_vnejsi = 40; loz_vyska = 14; loz_vnitr = 16.8; dira = 6.5; hrana = 2; difference() { union() { cylinder(d = spulka_prumer, h = spulka_vyska, center = true); translate([0,0,-((spulka_vyska-hrana)/2)]) cylinder(d = spulka_prume...
glb/cad_0acf85e28cf7.glb
Create a locking cam for a camera lens hood. The part is a 5mm thick solid with a central vertical hole for an M3 axle, meaning the hole has a diameter of 3mm and runs through the entire thickness of the part. The outer geometry is a hybrid shape formed by the hull of two elements: a cylinder with a radius of 5.5mm t...
r1 = 53.75/2 - 0.1; r2 = 51/2-0.1; module draw_ch(ch, a, x1=0, y1=0, rz=0) { font1 = "DejaVu Sans:style=Condensed"; x = (r1+15) * sin(a) + x1; y = (r1+15) * cos(a) + y1; translate([x, y, 0]) rotate([90, 0, rz]) linear_extrude(height = 2) { text(text=ch, font = font1, size = 4.5); } ...
glb/cad_92411a329161.glb
Create a camera lens hood consisting of a main cylindrical body and a locking cam mechanism. The main body is a hollow cylinder with an outer radius of 38.35mm and a total height of 20mm. The interior is hollowed out by a concentric cylinder with a radius of 28.35mm and a height of 25mm, centered vertically. A small re...
r1 = 56.75/2 - 0.1; r2 = 54/2+0.1; module lens0() { union() { cylinder(h=4, r=r1); translate([0, 0, 4]) cylinder(h=1.5, r=r2); translate([0, 0, 4+1.5]) cylinder(h=2.5, r=r1); } } module lens() { cylinder(h=12, r=r1); } module cam() { difference() { hull() { ...
glb/cad_97eb63ea4cf8.glb
Create a gluestick holder by starting with a solid cylinder 34mm in diameter and 50mm in height. Hollow out the center by removing a smaller concentric cylinder 32mm in diameter and 50mm in height, leaving a 1mm thick floor at the base. To create the attachment handle, add a rectangular block 20mm wide, 10mm deep, and ...
$fn=128; difference(){ union(){ cylinder(d=34, h=50); translate([-17, 0, 48]){ cube([20, 10, 4], center=true); translate([-8,0,-6]) cube([4,10,8], center=true); } } difference(){ translate([0,0,1]) cylinder(d=32, h=50); ...
glb/cad_4e9cf9d0ec57.glb
Create a Customizable Spiralized Labyrinth Gift Box Lid by starting with a solid cylinder that has a diameter of 33.8mm and a height of 88mm. From this main body, remove a conical void to create a hole. This cone should be positioned such that its base, with a diameter of 4mm, is located at the top of the cylinder, spe...
cylinder_diameter=33.8; cylinder_height=88; cone_base=4; cone_tip=1.25; cone_height=2; $fn=200; difference(){ cylinder(d=cylinder_diameter,h=cylinder_height); translate([0,cylinder_diameter/2,cylinder_height-cone_base/2-1.5]) rotate([90,0,0]){ cylinder(d1=cone_base,d2=cone_tip,h=cone_height); } }
glb/cad_d04106d0af77.glb
Create a HicWic quick change drag knife mount. Start with a central cylinder 20mm long with a 10mm radius. Subtract a smaller concentric cylinder from the center that is 5mm long with a 2.5mm radius, and a third concentric cylinder that is 8mm long with a 2.2mm radius. Around this central assembly, create a rectangul...
$fs=0.5; translate([20,20,4.5]) rotate([0,-90,0]) union() { difference() { translate ([0,0,20])cylinder(27, 10,10,true); cutter(); translate([0,10,20]) cube([30,20,30],true); translate([-14.5,-9,20]) cube([20,20,40],true); } translate([0,-25,32.75]) cube ([9,35,1.5],true); translate([0,-25,12]) cube ([9,35,1.5],true)...
glb/cad_766b34c528f2.glb
Create a filament roll holder with a total height of 14mm. Start by forming a main outer ring with an outer diameter of 56mm and an inner diameter of 46mm, centered vertically. Within this ring, create a central circular hole with a diameter of 7mm that passes through the entire height of the object. To support the str...
D = 52; A = 7; b=14; FilamentHolderSimple(D,A,b); module FilamentHolderSimple(D,A,b) { difference() { union() { cylinder(r1 = D/2, r2=D/2-1 , h = b, center = true, $fn =60); translate([0,0,-b/2+1]) cylinder(r1 = D/2+2, r2=D/2+1.5,h = 2, center = true, $fn =60); } cylinder(r = D/2-3, h = ...
glb/cad_779709014d3a.glb