Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create an air freshener clip holder with a total height of 2mm. Start by creating a main ring with an outer diameter of 24mm and an inner diameter of 20mm. Cut a rectangular slot through the center of this ring to create an opening 10mm wide. Extend a holder arm from the side of the ring. This arm should be 25mm long ...
clip_d=20; height=2; thick=2; opening=10; car_lamelle_thick=3.0; holder_thick=car_lamelle_thick*2.5; holder_length=25; holder_grip_d=1; $fn=100; tol=0.2; translate([0,0,-(height/2)]) clip(); holder(); module holder_strengthening(){ linear_extrude(height = height) polygon(points=[[0,0],[-(holder_length/1.5),0],[cli...
glb/cad_66d7ad006cac.glb
Create a toy stethoscope consisting of a diaphragm and a bell. Start by constructing the diaphragm as a truncated cone with a height of 15mm, tapering from a base radius of 40mm down to a top radius of 8mm. Add a thin cylindrical lip around the base with a radius of 40mm and a height of 4mm, while removing a concentric...
$fn=100; dia_rad=40; dia_height=15; dia_lip=4; bell_rad=8; bell_offset=10; bell_height=50; bell_hole_dia=1.5; offset=4; outlet_rad=6; outlet_length=15; bell_sphere_rad=bell_rad + bell_offset/1.5; bell_sphere_ratio=0.5; membrane_rad = dia_rad - offset * 2; membrane_height = 3; module diaphram() { union() { differen...
glb/cad_2cf6889abfc3.glb
Create a parametric hotbed spring guide by constructing a hollow cylinder with an outer diameter of 9mm and a total height of 6mm. Remove a central cylindrical core to create a hole with a diameter of 5.4mm, starting from a height of 2mm and extending to the top of the model. Additionally, remove a smaller vertical cyl...
tolerance = 0.4; inner_dia = 5; bold_dia = 2.8; height = 6; thickness = 2; $fn=50; difference() { cylinder(height, d = inner_dia + thickness); translate([0, 0, thickness]) cylinder(height - thickness, d = inner_dia + tolerance); cylinder(height, d = bold_dia + tolerance + 0.1); }
glb/cad_e1e90d60ca15.glb
Create a bridge pillar for an H0 model train track. Start by forming a base consisting of two rectangular slabs: one measuring 40mm by 4mm by 8mm (the height x+3), and a second wider slab measuring 40mm by 15mm by 2mm positioned immediately adjacent to it, extending from y=-10 to y=5. From this combined base, remove a ...
x=05; module pfeiler1 () { cube([40,4,x+3]); cube([40,15,2]); translate ([0,-10,0]) cube([40,15,2]); }; module pfeiler2 () { translate ([1.25,-1,x]) cube([37.5,6,5]); translate ([10,-2,-10]) cube([20,8,x]); }; difference () { pfeiler1 (); pfeiler2 (); }; translate ([0,0,x+2]) cube([2,4,2]); translate (...
glb/cad_3cf80b3afa44.glb
Create a bridge pillar for an H0 model train track with a total height of 40mm. Start by constructing a base consisting of two rectangular slabs: a main vertical wall measuring 40mm wide, 4mm deep, and 43mm high, and a wider stabilizing foot measuring 40mm wide, 15mm deep, and 2mm high, centered so the foot extends 5.5...
x=40; module pfeiler1 () { cube([40,4,x+3]); cube([40,15,2]); translate ([0,-10,0]) cube([40,15,2]); }; module pfeiler2 () { translate ([1.25,-1,x]) cube([37.5,6,5]); translate ([10,-2,-10]) cube([20,8,x]); }; difference () { pfeiler1 (); pfeiler2 (); }; translate ([0,0,x+2]) cube([2,4,2]); translate (...
glb/cad_8e75d956e28e.glb
Create a bridge pillar for an H0 model train track. Start with a base consisting of two rectangular slabs: one measuring 40mm wide by 4mm deep by 53mm high, and a second, wider base slab measuring 40mm wide by 15mm deep by 2mm high, positioned so the first slab sits centered atop it. From this combined structure, remov...
x=50; module pfeiler1 () { cube([40,4,x+3]); cube([40,15,2]); translate ([0,-10,0]) cube([40,15,2]); }; module pfeiler2 () { translate ([1.25,-1,x]) cube([37.5,6,5]); translate ([10,-2,-10]) cube([20,8,x]); }; difference () { pfeiler1 (); pfeiler2 (); }; translate ([0,0,x+2]) cube([2,4,2]); translate (...
glb/cad_644be7d275af.glb
Create a bridge pillar for an H0 model train track with a total height of 77mm. Start by constructing a base structure consisting of two rectangular slabs: a main vertical body measuring 40mm wide, 4mm deep, and 78mm tall, and a wider horizontal base plate measuring 40mm wide, 15mm deep, and 2mm thick, centered so it e...
x=75; module pfeiler1 () { cube([40,4,x+3]); cube([40,15,2]); translate ([0,-10,0]) cube([40,15,2]); }; module pfeiler2 () { translate ([1.25,-1,x]) cube([37.5,6,5]); translate ([10,-2,-10]) cube([20,8,x]); }; difference () { pfeiler1 (); pfeiler2 (); }; translate ([0,0,x+2]) cube([2,4,2]); translate (...
glb/cad_69630a7aec06.glb
Create a SeeMeCNC H1 triple bearing cover with a total height of 3mm. Start by forming the main body from two intersecting rectangular blocks: one centered at the origin measuring 13mm wide, 48mm long, and 3mm high, and a second block measuring 27mm wide, 39mm long, and 3mm high, also centered at the origin. Add a tape...
H=3; Ds=5.5; D=6.3; dl=24.5; bl=13/2+27-(24.5-D/2); sl1=13/2+27-4; Db=15; difference(){ union(){ translate([bl,0,0])cylinder(r1=10,r2=8.5,h=10); translate([27/2+13/2,0,0])cube(size=[27,39,H],center=true); translate([0,0,0])cube(size=[13,48,H],center=true); } translate([bl,0,0])cylinder(r=Db/2,h=H+1+20,center=...
glb/cad_d3a2dd0ecfce.glb
Create a spider spool filament reel holder consisting of two hubs and a set of collapsible arms. Create two identical hubs as cylinders with a height of 15mm and an outer radius of 8mm. Each hub must have a central hole with a diameter of 8.1mm to accommodate a rod. Around the perimeter of each hub, add three equidis...
tol=1*0.1; show="preview"; nb_arms=3; shown_roll_id= 200; shown_roll_od= 320; shown_roll_th= 40; shown_arm_angle= 48; tube_d=8; hub_ear_len=6; arm_hinge= 35; arm_len= 65; arm_hand_len= 45; arm_hand_hangle= 35; fp= 0*0.4; tube_dd=0.1; wall_th=4; arm_h=10; hub_h= 15; hook_th= 4; hook_sc2sc= 40; hook_s...
glb/cad_750d451a6a81.glb
Create a keychain model featuring the text "aprilia" in a sans-serif font. The design consists of the text extruded to a total height of 5mm, with a slightly thinner base layer of the same text extruded to 3mm that is offset by a 2mm border to create a raised, embossed effect for the letters. At the left end of the mod...
the_word = "aprilia"; border = 2; contrast = "neg"; Ground = "no"; Groundheight = 1.5; Heightgesamt = 5; $fn = 95; if (contrast=="neg"){ difference(){ linear_extrude (height = Heightgesamt-2) { offset (r= border){ text (the_word, font = "Liberation Sans", valign = "center"); } } linear_extrude (height = He...
glb/cad_f18f8ddc2dd4.glb
Create a temperature sensor housing consisting of a rectangular base and a vertical cylindrical probe tube. Start with a rectangular main body that is 17.25mm wide and deep, with a height of 4.5mm. The corners of this body should be rounded with a radius of 1.4mm. Centrally integrated into the top of this base is a ve...
$fn=60; gasket_outer = 20.25; gasket_thickness = 3.25; tube_thickness = 1.4; tube_length = 40; tube_cavity = 5.3; body_edge = 1.5; body_size = (gasket_outer+3)-body_edge*2; bslm = 1.1; body_height = 6-body_edge; wire_diameter = 2; difference () { union () { minkowski () { cylinder(d=tube_c...
glb/cad_d0e8ba87f972.glb
Create a Ying Yang pendant with a total height of 10mm. Start by creating a main outer cylinder with a diameter of 106mm and a height of 10mm, centered on the origin. Remove a concentric inner cylinder with a diameter of 100mm and the same height to create a thin outer ring wall. Divide the interior space into two in...
$fn=100; wall=3; walls=wall*2; Height=10; Diameter=100; Yang(); Ying(); module Yang() { color("white",1){ translate([-Diameter/4,0,0]) cylinder(h=Height,d=Diameter/4-walls,center=true);} difference(){{ color("white",1) cylinder(h=Height,d=Diameter+walls,center=true); translate([0,0,1]) color("black",1) cyli...
glb/cad_14bc3142e46d.glb
Create a Snap-on OpenBeam Foot designed to fit a 15mm extrusion. Start by creating a solid base that is the intersection of a 20mm cube rotated 45 degrees on the Z-axis and a cylinder with a radius of 8mm and a height of 2mm. This base should be further constrained by a height of 5mm. From this volume, remove a central...
$fn=50; tol=0.2; rotate([0,180,0]) foot(); module foot() { for(i=[0,90,180,270]) rotate([0,0,i]) translate([0,15/2,0]) cube([3,3,5],center=true); intersection() { rotate([0,0,45]) cube([20,20,50],center=true); difference() { hull() { cube([20,20,5],center=true); translate([0,0,5]) c...
glb/cad_ec597d91d520.glb
Create a Vacuum Water Filter casing consisting of a hollow cylindrical tube with internal threading. The main body is a cylinder with an outer diameter of 16mm and a total height of 10mm. The interior of this cylinder is hollowed out by a concentric hole with a diameter of 12.4mm. Inside the cylinder, create a helica...
xw=0.4; ww=2; use <path_extrude.scad>; m12length=10; m12D=12; m12P=1.5; m12H=sqrt(3)/2 * m12P+xw; m12R=m12H/(m12P/2); m12ppr=24; m12loops=m12length/m12P; m12tid=m12D-m12P; m12myPoints = [[-m12H/2+xw+0.1*m12R,-m12P/2+0.1], [1/4*m12H+xw,-m12P/8], [1/4*m12H+xw,m12P/8], [-m12H/2+xw+0.1*m12R,m12P/2-0.1]]; m12...
glb/cad_4e5bb56b9c3e.glb
Create a Vacuum Water Filter kit consisting of a funnel and a vacuum casing. The main body is a conical funnel with a height of 60mm. The base of the funnel is a wide cylinder with a diameter of 53mm and a wall thickness of 4mm. This base tapers upward to a narrower cylindrical neck. At the bottom of the funnel, integ...
use <path_extrude.scad>; xw=0.4; ww=4; D=45; mOTlength=16; mOTP=4; mOTD=D+mOTP/2+ww*2; mOTH=sqrt(3)/2 * mOTP; mOTR=mOTH/(mOTP/2); mOTppr=30; mOTloops=mOTlength/mOTP; mOTtid=mOTD-mOTP; mOTmyPoints = [[-mOTH/2+0.1*mOTR,-mOTP/2+0.1], [1/4*mOTH,-mOTP/8], [1/4*mOTH,mOTP/8], [-mOTH/2+0.1*mOTR,mOTP/2-0.1]]; mO...
glb/cad_34d8f63181be.glb
Create a Vacuum Water Filter kit consisting of a vacuum casing and a funnel. First, construct the vacuum casing as a hollow cylinder with an outer diameter of 49mm (D+P) and a height of 60mm. The casing must feature a GL45-compliant external screw thread with a pitch of 4mm. At the base of the casing, integrate a cir...
use <path_extrude.scad>; length=60; D=45; P=4; ND=D+P; H=sqrt(3)/2 * P; R=H/(P/2); ppr=60; fx=40; loops=length/P; xw=0.4; ww=4; tid=D-P; myPoints = [[-H/2+xw+0.1*R,-P/2+0.1], [1/4*H+xw,-P/8], [1/4*H+xw,P/8], [-H/2+xw+0.1*R,P/2-0.1]]; myPath = [ for(t = [-90:(360/ppr):(360+90)]) [(D/2)*cos(t),(D/2)*...
glb/cad_3852a44f4c02.glb
Create a vacuum water filter component consisting of a shallow cylindrical base and a perforated grating. Start by creating a main cylindrical body with an outer diameter of 49mm and a total height of 5mm. The bottom section should be a solid disc with a thickness of 1mm and a diameter of 49mm. On top of this base, for...
D=45; ww=4; P=ww; H=sqrt(3)/2 * P; xw=0.4; lh=1; hd=12; difference(){ union(){ cylinder(r2=D/2-P, r1=D/2-5/16*H+xw, h=ww+xw, $fn=120); translate([0,0,-lh]) cylinder(d=D+ww, h=lh+xw, $fn=120); } translate([0,0,-1-xw]) cylinder(d=D-ww*2-xw*2, h=ww+lh+xw*3, $fn=120); } translate([0,0,-lh]) l...
glb/cad_635b65936c9c.glb
Create a vacuum water filter casing designed to fit a GL45-threaded bottle. The main body is a hollow cylinder with an outer diameter of 49mm and a total height of 40mm. The wall thickness is 4mm. The interior of the cylinder is hollowed out to create a tube with an inner diameter of 41mm, starting from a height of 4mm...
use <path_extrude.scad>; length=40; D=45; P=4; ND=D+P; H=sqrt(3)/2 * P; R=H/(P/2); ppr=60; fx=40; loops=length/P; xw=0.4; ww=4; tid=D-P; myPoints = [[-H/2+xw+0.1*R,-P/2+0.1], [1/4*H+xw,-P/8], [1/4*H+xw,P/8], [-H/2+xw+0.1*R,P/2-0.1]]; myPath = [ for(t = [-90:(360/ppr):(360+90)]) [(D/2)*cos(t),(D/2)*...
glb/cad_e2ce88fcf20d.glb
Create a Mass Air Flow Adapter by constructing a composite hollow vessel. Start with a rectangular base plate measuring 82mm by 100mm with a thickness of 10mm, centered on the origin. From the center of this base, extend a conical section upwards with a height of 58mm, tapering from a bottom diameter of 82mm to a top d...
difference(){ union (){ cube ([ 82, 100, 10], center = true); translate ([0,0,5]) cylinder (d1 = 82, d2=100, h =58, $fn=100); translate ([0,0,62]) cylinder(d=100, h=30, $fn=100); } translate ([0,0,-6]) cube ([62, 53, 110], center = true); translate ([0,0,-6]) cylinder (d1 = 52, d2=96, h =72, $fn=100); translate...
glb/cad_e5363fa6226e.glb
Create a Qwirkle game piece by constructing a hollowed-out cube. Start with a solid cube that measures 100mm in width, 100mm in depth, and 50mm in height. To create the interior cavity, carve out a symbol based on the provided "symbol_graphic.dat" image. This symbol should be centered on the top face and recessed into ...
boxSize = 100; boxHeight = 50; clearance = 1; SymbolImage = "symbol_graphic.dat"; part = "Box"; if ( part == "Box" ) { difference() { translate([-(boxSize/2),-(boxSize/2),0]) cube([boxSize,boxSize,boxHeight]); translate([clearance/2,-clearance/2,boxHeight-20]) scale([1+(clearance/10),1+(clearance/10),1]) mak...
glb/cad_018914018c58.glb
Create a fidget spinner replacement part consisting of a central hub and a surrounding wheel structure. The overall height of the spinner is 11mm. Start by creating a circular base with a radius of 10mm and a height of 2mm. Above this, build a tapered profile that rises from the outer edge at 10mm radius to a core ra...
center=1; pin=1; click=1; wheelsize=20; spinnerheight=11; wheelcore=wheelsize/2-0.1; edgeheight=wheelsize/15; coreheight=spinnerheight/10; slopeheight=(spinnerheight-(2*edgeheight)-coreheight)/2; pinsize=wheelsize/3; pinheight=spinnerheight/5; centerheight=wheelsize/10; if (pin == 1) { difference () { u...
glb/cad_901b929954ad.glb
Create a Telescope altitude drive consisting of a large telescope tube and a motorized pulley system mounted on a circular base. First, create the telescope tube as a hollow cylinder with an outer diameter of 620mm and a height of 1500mm. Position a horizontal axis cylinder with a 50mm radius through the tube at a he...
pt=3; module telescope() { tubecolor = [0.2,0.2,0.2]; tubeheight=1500; axisheight=600; diameter=620; translate([0,0,-600]) union() { difference() { union() { color(tubecolor) cylinder(r=diameter/2-10,h=tubeheight); color(2*tubecolor) translate([0,0,ax...
glb/cad_1204f9bc864b.glb
Create a telescope altitude drive mount consisting of a base plate and two pulley supports. Start with a base plate 7mm thick, shaped as a hull encompassing two circles of radius 15mm centered at [0, 35] and [0, -35], and two circles of radius 10mm centered at [70, 25] and [70, -25], with an additional circle of radius...
bearing_ir=3; bearing_or=9.5; motor_mount_size=31.1; motor_mount_height=25; motor_radius=27; beltwidth=7; thick = 7; e = 0.01; module mount() { difference() { union() { base_plate(); for(i=[1,-1]) scale([1,i,1]) { translate([0,35,thick-e]) { cylinder(r1=15,r2=bea...
glb/cad_7785b809469c.glb
Create a double tool holder for printer tweezers. Start with a central rectangular block measuring 25mm in length, 22mm in width, and 3mm in height. Through the center of the block along its length, create a vertical hole with a diameter of 5.2mm to accommodate a mounting screw. Around this central hole, create a lar...
screw5 = 5.2; head5 = 10.2; double(); module single() { rotate([0,90,0]) { difference() { cube([25,11,3],true); translate([0,0,-2]) cylinder(h=5, r = screw5/2,$fn=50); translate([0,0,0.75]) rotate([0,0,0]) cylinder(h=27, r = head5/2,$fn=50); } difference() { translate([-12.5,0,6]) rotate([0,90,0]) ...
glb/cad_6a09b6704efc.glb
Create a mini filament spool consisting of a base plate, a central hub, and a conical top. Start with a circular bottom plate 50mm in diameter and 2mm thick. Drill a central vertical hole through the plate with a radius of 4mm. In this plate, create four large circular cutouts with a radius of 7mm; position three of th...
SpoolRadius = 25; HubHeight = SpoolRadius / 1.5; HubInnerRadius = 4; HubWallThickness = 2; HubOuterRadius = HubInnerRadius + HubWallThickness; ConeWallThickness = 2; OuterConeOffset = SpoolRadius / 20; InnerConeOffset = OuterConeOffset + ConeWallThickness; LargeHoleOffset = HubOuterRadius + (SpoolRadius - HubOu...
glb/cad_267944b20dda.glb
Create a shisha hookah consisting of a main vase, a hose adapter, and a hollow tube. For the vase, create a conical body with a height of 120mm, tapering from a bottom diameter of 99.04mm to a top diameter of 33mm. Add a cylindrical neck on top with a height of 3.5mm and a diameter of 33mm. The bottom of the vase sho...
display_vase = true; display_hose_end = true; display_tube = true; display_inside = true; height_body = 120; width_bottom = 99.04; width_top = 33; height_top = 3.5; resolution = 100; overlap = 1; shell_thickness = 0.45*3; shell_thickness_bottom = 0.2*6; hose_width_top = 28; hose_width_bottom = 14; hose_height = ...
glb/cad_b875d76e3a33.glb
Create a Printrbot Plus v2.1 Filament Holder by constructing a composite geometric shape. Start with a rectangular block measuring 50mm in length, 30mm in width, and 19mm in height. Remove a horizontal cylindrical hole from this block with a radius of 6.5mm, centered 15mm from the sides and 10mm from the base, running ...
difference() { cube(size=[50,30,19]); translate([-.1,15,10]) rotate([0,90,0]) cylinder(r1=6.5, r2=6.5, h=30); } translate([50,10,0]) cube(size=[60, 10, 19]); difference() { translate([110,0,0]) cube(size=[35,30,19]); translate([125,9,0]) cube(size=[20,12,19]); translate([125, 15, 0]) cylinder(r1=6, r2=6, h=19, $f...
glb/cad_8b8789b56b19.glb
Create a mobile phone stand by extruding a specific polygon profile to a total thickness of 55mm. The profile is defined by the following vertices in a 2D plane: (0,0), (55,0), (61,20), (61,25), (56,25), (56,5), (6,5), and (6,20). Extrude this shape along the Y-axis to create the main body. On the top flat surface of t...
height = 20; x = 55; y = 55; vertical_shift = 5; tilting = 3; thickness = 5; phone_thicness = 10; text = "AB"; text_size = 20; text_depth = 3; position_of_text_x = 53; position_of_text_y = -20; position_of_text_z = 19; rotate([90,0,0]) difference() { linear_extrude(height = y, center = true, convexity = 10, ...
glb/cad_898a30c14104.glb
Create a mobile phone stand by extruding a specific polygon shape to a height of 55mm. The base polygon is defined by the coordinates [0,0], [55,0], [61,20], [27,20], [30,30], [25,30], [19,10], [8,10], and [11,20]. Once this main body is formed, imprint the initials "AB" into the top surface. The text should be created...
rotate([90,0,0]) difference() { linear_extrude(height = 55, center = true, convexity = 10, slices = 20, scale = 1.0) {polygon(points=[[0,0],[55,0],[61,20],[27,20],[30,30], [25,30],[19,10], [8,10], [11,20], [6,20]]);} rotate([0,90,90]) translate([-20,-53,19]) linear_extrude(height = 3, convexity = 10,...
glb/cad_84f5f4a629e6.glb
Create an Oven Handle Towel Hook by constructing a curved, C-shaped clip with a height of 25mm. The main body is formed by the intersection of two cylinders: one with a radius of 24mm and another with a radius of 54mm centered at x=-44, y=0, creating a curved wall. Hollow out this shape by removing a similar intersecti...
union() { difference() { intersection() { cylinder(h=25,r=24,$fs=.1,$fa=1); translate([-44,0,0]) cylinder(h=25,r=54,$fs=.1,$fa=1); } intersection() { cylinder(h=25,r=20,$fs=.1,$fa=1); translate([-44,0,0]) cylinder(h=25,r=50,$fs=.1,$fa=1); } translate([-23,-24,0]) cube([25,15,...
glb/cad_2a39d9671867.glb
The provided JSON describes a 3D mesh consisting of vertices, faces (triangles), and a specific structure. Based on the coordinates and the connectivity of the triangles, the object is a **truncated cone (or a conical frustum)** that has been slightly deformed or skewed. ### Analysis of the Mesh: 1. **Vertices:** The...
mark=4; if (mark==1) scale (20) horn(.2,11.25,1); else if (mark==2) scale (20) difference() { horn(.2,11.25,1); horn(.23,11.25,.9); } else if (mark==3) scale(20) difference() { horn(.025,11.25,1); scale(0.9) union() { horn(.025,11.25,1); translate([2,0,0]) rotate([0,0,180]) horn(.025,11.25,1); } } else if (mark==...
glb/cad_e0e3a623bc00.glb
Create a headphone stand base by starting with a flat, oval-shaped plate that is 3mm thick. The main body is formed by the intersection of two cylinders with 50mm radii, resulting in a curved, lens-like footprint. Centered within this plate, remove a vertical cylindrical hole with a radius of 9mm. Additionally, carve o...
angle=50; rayon=50; epaisseur=3; trou=9; longueur=rayon*cos(angle)*2; largeur=rayon*sin(angle)*2; debug=0; ecouteur=14; module base(){ intersection(){ translate([rayon-largeur,0,debug])cylinder(h=epaisseur,r=rayon,$fn=100); translate([-rayon+largeur,0,-debug])cylinder(h=epaisseur,r=rayon,$fn=100); cylind...
glb/cad_816d1c472222.glb
Create a macro lens adapter for an iPhone 4. Start by constructing the main adapter body as a rounded cube with dimensions 22mm x 22mm x 19mm and a corner radius of 2mm. From this body, remove a central volume to accommodate the phone, scaled slightly for a loose fit to 117.9mm in length, 61.35mm in width, and 11.9mm...
lens_r = 6.1; lens_h = 3.2; lens_mount_ridge = 0.6; lens_center_r = 9.5; adapter_side = 22; adapter_h = 19; adapter_corner_r = 2; iphone_l = 115.15; iphone_w = 58.55; iphone_d = 9.34; adapter_cx = -iphone_l/2 + 7; adapter_cy = iphone_w/2 - 7; phone_scale_factor_x = 1.023; phone_scale_factor_y = 1.048; phone_scale_fact...
glb/cad_ab609d48f728.glb
Create a PCB Bracket by starting with a main rectangular body that is 75mm long, 17mm high, and 7.25mm wide. The body should have rounded corners with a radius of 2.5mm. Carve a central slot through the length of the body to hold a PCB; this cutout must be 2.25mm wide and 3mm deep from the top, extending the full 75m...
$fn = 50; Fin_length =75; Fin_heigth = 17; wall_thickness = 5; pcb_thickness = 2.25; mount_thickness = 3; screw_diameter = 3.5; screw_resess = 0; Fin_width = 2*wall_thickness+ pcb_thickness-wall_thickness; difference() { body(); union (){ pcb(); mount_cutout(); fin_support(); } }...
glb/cad_c2e899999499.glb
Create a Tricopter Battery Holder base by starting with a rectangular block 40mm wide, 40mm long, and 5mm high. Modify the sides of this block by adding two outward-pointing triangular protrusions, each with a base of 12.5mm along the length and a height of 5mm, extending from the 40mm sides to create a slightly flared...
actual_length=40; actual_width=40; actual_height=5; wire_width=2; first_x=10; second_x=30; holes_distance_x=second_x-first_x; difference() { difference() { union() { cube([actual_width,actual_length,actual_height]); linear_extrude(height=actual_height) { polygon(points=[[0,0],[-5,12.5],[0,actual_l...
glb/cad_5a771bf15daa.glb
Create a battery holder plate for a tricopter. Start with a central rectangular block measuring 40mm in width, 40mm in length, and 2mm in height. To this central block, add two symmetrical polygons on the left and right sides; each polygon should have vertices at the corners of the block's width and extend 5mm outward ...
actual_length=40; actual_width=40; actual_height=2; first_x=10; second_x=30; holes_distance_x=second_x-first_x; difference() { union() { cube([actual_width,actual_length,actual_height]); linear_extrude(height=actual_height) { polygon(points=[[0,0],[-5,12.5],[0,actual_length]]); polygon(points=[[a...
glb/cad_1f4ca52e77f6.glb
Create a battery holder plate with a rectangular footprint of 50mm width and 35mm length, and a thickness of 4mm. The overall shape is a rounded rectangle formed by the hull of four 10mm diameter circles positioned 5mm from each corner. Pierce two 4mm diameter holes through the plate: one centered 5mm from the left e...
actual_length=35; actual_width=50; actual_height=4; wire_width=2; first_x=5; second_x=45; holes_distance_x=second_x-first_x; difference() { linear_extrude(height=actual_height) { difference() { hull() { translate([5,5]) circle(r=5); translate([actual_width-5,5]) circle(r=5); transla...
glb/cad_c3301869d526.glb
Create a battery holder plate for a tricopter that is 50mm wide, 35mm long, and 2mm thick. The overall shape should be a rectangle with heavily rounded corners, where each corner is defined by a radius of 5mm. On the flat surface of the plate, create two circular holes, each with a radius of 2mm. Position the center of...
actual_length=35; actual_width=50; actual_height=2; wire_width=2; first_x=5; second_x=45; holes_distance_x=second_x-first_x; linear_extrude(height=actual_height) { difference() { hull() { translate([5,5]) circle(r=5); translate([actual_width-5,5]) circle(r=5); translate([actual_width-5,actual_l...
glb/cad_5077b007588c.glb
Create a battery holder base by starting with a rectangular block that is 50mm wide, 30mm long, and 4mm high. From this main body, remove material to create specific wire routing channels. First, carve out a rectangular slot starting from the left edge at x= -1mm, y= 10mm, and z= 2mm, with dimensions of 17mm wide, 2mm ...
actual_length=30; actual_width=50; actual_height=4; wire_width=2; first_x=5; second_x=25; holes_distance_x=second_x-first_x; difference() { cube([actual_width,actual_length,actual_height]); translate([-1,10,actual_height-wire_width]){ cube(size=[15+2,wire_width,wire_width+2],center=false); } translate...
glb/cad_2f90a511b607.glb
Create a battery holder plate with a rectangular footprint of 50mm width and 35mm length, and a thickness of 4mm. The overall shape is a rounded rectangle formed by the convex hull of four 10mm diameter circles positioned 5mm from each corner. Pierce two vertical holes through the plate, each with a 4mm diameter. Pos...
actual_length=35; actual_width=50; actual_height=4; wire_width=2; first_x=15; second_x=35; holes_distance_x=second_x-first_x; difference() { linear_extrude(height=actual_height) { difference() { hull() { translate([5,5]) circle(r=5); translate([actual_width-5,5]) circle(r=5); transl...
glb/cad_7a101b0908e6.glb
Create a battery holder plate for a tricopter that is 50mm wide, 35mm long, and 2mm thick. The overall shape should be a rectangle with heavily rounded corners, defined by a hull connecting four circles of 5mm radius positioned 5mm from each edge. Within this plate, create two circular holes, each with a radius of 2mm....
actual_length=35; actual_width=50; actual_height=2; wire_width=2; first_x=15; second_x=35; holes_distance_x=second_x-first_x; linear_extrude(height=actual_height) { difference() { hull() { translate([5,5]) circle(r=5); translate([actual_width-5,5]) circle(r=5); translate([actual_width-5,actual_...
glb/cad_4af7c9829681.glb
Create a battery holder plate by starting with a rectangular base that is 50mm wide, 35mm long, and 4mm thick. Round the four corners of this plate with a radius of 5mm. On the top surface, center two circular holes with a radius of 2mm each. Position the first hole at coordinates (15, 30) and the second hole at (35,...
actual_length=35; actual_width=50; actual_height=4; wire_width=2; first_x=15; first_y=30; second_x=35; second_y=30; holes_distance_x=second_x-first_x; difference() { linear_extrude(height=actual_height) { difference() { hull() { translate([5,5]) circle(r=5); translate([actual_width-5,5]) c...
glb/cad_79ff131ca403.glb
Create a two-part protective case for an X-Acto knife consisting of a base and a cover. For the base, create a rounded rectangular block with an overall length of 159.8mm, width of 20.8mm, and a height of 14.6mm. The base features a bottom step of 3mm height. Hollow out the center to create a cavity with an inner len...
$fn = 90; eps1 = 0 + 00.01; eps2 = 2*eps1; inner_length = 153; inner_width = 12; inner_height = 12; wall = 1.6; clearance = 0.3; step_height = 3; corner = 4; slot_length = 28; slot_width = 3; module rounded_cube(xlen, ylen, zlen, r) { translate([r-xlen/2, r-ylen/2, 0]) minkowski() { cube([xlen-2*r, yle...
glb/cad_2e5bd30a46b9.glb
Create a landing gear support shaped like a T-profile. Start with a rectangular base measuring 20mm wide, 110mm long, and 2mm thick. Centered along the length of this base, add a vertical rectangular ridge that is 4mm wide, 110mm long, and 10mm high. To finish the piece, create four circular holes with a radius of 2mm ...
actual_length=110; actual_width=20; actual_height=2; hole_distance=12.7; first_x=0.25*actual_width; second_x=0.75*actual_width; holes_distance_x=second_x-first_x; difference() { union() { cube([actual_width,actual_length,actual_height]); translate([actual_width/2-actual_height,0]){ cube([actual_height*...
glb/cad_5b1eb7e27942.glb
Create a Universal Joint Z coupler consisting of two outer coupling hubs and one central core. First, create two identical cylindrical hubs. Each hub has a height of 20mm and a core width of 14mm. One hub must have a central bore of 5.6mm to accommodate a motor shaft, and the other must have a central bore of 8.3mm f...
pi = 3.141592653589; sl = 0.5; print = 1; motor_shaft_d = 5.6; rod_shaft_d = 8.3; module crx(size=[1, 1, 1]) { linear_extrude(height=size[2]) square([size[0], size[1]], center=true); } module cyl(r=1, h=1, center=false) { cylinder(r=r, h=h, center=center, $fn=r * 2 * pi / sl); } module cylh(r=1, h=1, center=f...
glb/cad_221cdcb1f607.glb
Create a Wick Holder for a circular glass by constructing a flat, circular disc with an outer diameter of 78mm and a height of 6mm. Carve out a central cylindrical void with a diameter of 75mm and a height of 3mm, leaving a rim that is 6mm wide. Across the center of this disc, place a rectangular bar measuring 8mm wide...
outdiameter = 75; thickness = 3; rimthickness = 6; wickDiam = 2; middleWidth = 8; wickOpenningLength = 4; $fn=50; difference() { union() { difference() { cylinder(d=outdiameter + thickness,h=rimthickness); translate([0, 0, thickness]) cylinder(d=outdiameter,h=(rimthickness - thic...
glb/cad_49b528c0f667.glb
Create a 18650 battery stackable module. Start with a main cylinder that has an outer diameter of 26mm and a total height of 85mm. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a diameter of 18.3mm and a height of 70mm (65mm for the battery plus 5mm for a spring), centered vertic...
RES = 200; fn = RES; EPS = .001; 18650_D = 18.3; 18650_H = 65; SPRING_H = 5; OD = 26; H = 85; GROOVE = [6, 3]; SPRING = [18, 15, .5]; module spring_pad() { translate([-SPRING[0] / 2, -SPRING[1] / 2, (H - 18650_H - SPRING_H) / 2 - 1 - .7]) { cube([SPRING[0], SPRING[1] + OD / 2 - SPRING[1] / 2, 1 + EPS]); tr...
glb/cad_0fa6235873bb.glb
Create a Festool MFT/3 Bench Dog consisting of two stacked cylindrical sections with a central vertical hole. Start with a wide base cylinder 30mm in diameter and 10mm in height. Centered on top of this base, add a narrower cylinder with a diameter of 19.10mm and a height of 25mm. Bore a vertical hole through the ent...
peg_top_diameter=30; peg_top_height=10; peg_diameter=19.10; peg_depth=25; nut_diameter=12.30; nut_inner_diameter=6.45; nut_height=5.65; nut_depth=2; CYLINDER_RESOLUTION=128; difference() { peg(peg_diameter, peg_depth, peg_top_diameter, peg_top_height, .25); hole(); translate([0,0,nut_depth]) nut();...
glb/cad_62f323327d64.glb
Create a mounting plate for a malt mill. Start with a rectangular base measuring 141mm in length, 40mm in width, and 18mm in height. Apply a 2mm fillet to all vertical edges of this base. In the center of the top surface, carve out a rectangular cavity measuring 115mm by 26mm and 20mm deep, leaving a wall thickness o...
$fn=50; w=5; ww=15+w; roundedPlate=5; roundedTop=2; tolerance=0.2; 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]] ); } difference() { union() { ...
glb/cad_255c501f867a.glb
Create a Skyrim-style door quest plaque. The design is composed of three primary geometric elements: a door base, a central diamond, and an arrowhead. First, create the door base by combining a rectangle 72mm wide and 1mm tall with a circle of 72mm diameter centered above it, forming a rounded arch. Create a central ...
if(0) { color("blue") translate([0,0,-4]) linear_extrude(height=.1) for(x=[0:10:100]) translate([x,0]) hull() { circle(); translate([0,200]) circle(); } color("blue") translate([0,0,-4]) linear_extrude(height=.1) for(y=[0:10:200]) translate([0,y]) hull() { circle(); translate([100,0]) circle(); } } module door_() { ...
glb/cad_7743c888094d.glb
Create two humanoid figures in a sword-fighting stance, each composed of several rectangular prisms. For each figure, center the assembly at [0, 24, 20] and [0, 24, -20] respectively. Construct each body with a torso (8x12x4mm), a head (8x8x8mm), two arms (4x12x4mm), and two legs (4x12x4mm). Position the head at the t...
pi = 3.1415926535897931; function toDeg(rad) = rad * 180 / pi; function toRad(deg) = deg * pi / 180; function rsin(ang) = sin(toDeg(ang)); function rcos(ang) = cos(toDeg(ang)); function rtan(ang) = tan(toDeg(ang)); function rasin(meas) = toRad(asin(meas)); function racos(meas) = toRad(acos(meas)); function ratan(meas...
glb/cad_9a95b327370b.glb
Create two humanoid figures in a sword-fighting stance, each composed of several rectangular prisms. For each figure, center the assembly at a body center point. The torso is a box measuring 8mm x 12mm x 4mm, offset by [-4, -12, -2] from its rotation point at [0, 12, 0]. The head is an 8mm cube offset by [-4, -8, -4] ...
pi = 3.1415926535897931; function toDeg(rad) = rad * 180 / pi; function toRad(deg) = deg * pi / 180; function rsin(ang) = sin(toDeg(ang)); function rcos(ang) = cos(toDeg(ang)); function rtan(ang) = tan(toDeg(ang)); function rasin(meas) = toRad(asin(meas)); function racos(meas) = toRad(acos(meas)); function ratan(meas...
glb/cad_9a95b327370b.glb
Create a snap clamp for PVC piping. Start by creating two identical hollow cylinders, each with an outer diameter of 29.9mm (25.4mm inside diameter plus 2.25mm wall thickness), a height of 20mm, and a wall thickness of 2.25mm. Position the first cylinder centered at the origin. Position the second cylinder so its cen...
quantity = 1; insideDiameter = 25.4; thickness = 2.25; length = 20; flangeDistanceMult = 0.75; flangeTerminateMult = 0.5; manifoldCorrection = 0.04; extra_chamfer = 0; $fn = 120; cubeSize = insideDiameter + thickness * 2; distanceBetween = insideDiameter + thickness * 2 + 3; if(quantity > 0) { grid_size = ce...
glb/cad_cc433e624ae6.glb
Create a Glass Stopper Opener consisting of three separate tools of varying sizes. Each tool is based on a central cylindrical body with a spherical top and an integrated handle. For the largest tool, create a cylinder with a diameter of 50mm and a height of 20mm, topped with a sphere of the same 50mm diameter centere...
$fn=50; oh29=40; od29=50; ih29=15; id29=42.5; oh14=40; od14=30; ih14=10; id14=22.5; oh24=40; od24=41; ih24=13; id24=33.5; module ergo1() { hull() { translate([0,0,2]) scale([0.9,0.9,1]) cylinder(h=2,d=30); translate([0,0,0]) cylinder(h=2,d=30); translate([0,0,-2]) scale([0.9,0.9,1]) cylinder(h=2...
glb/cad_6982fff63311.glb
Create an Omnicharger organizer box with an overall outer footprint defined by the hull of a 204mm x 115mm x 34mm block and a 170mm x 149mm x 34mm block, with four 3mm diameter cylinders positioned at the corners (±95.5mm x ±66.5mm) to round the base. Hollow out the interior to create a main compartment for the Omnic...
module box() { hull() { translate([00,00,00]) cube([204,115,34],center=true); translate([00,00,00]) cube([170,149,34],center=true); translate([-95.5,-66.5,-17]) cylinder (h=34,d=3,$fn=200); translate([95.5,-66.5,-17]) cylinder (h=34,d=3,$fn=200); translate([-95.5,66.5,-17]) cylinder (h=34,d=3,$fn=200); translate([95.5,...
glb/cad_96fcf4837ff0.glb
Create a universal pen holder for a robot end-effector. Start by constructing a main rectangular block with a width of 20mm, a length of 35mm, and a height of 14mm, applying a corner radius of 1mm to all vertical edges. Attached to the bottom of this block, center a smaller rectangular protrusion that is 12mm wide, 18m...
$fn=100; InsertThick = 6; InsertWitdh = 12; InsertLength = 18; HolderWidth = 20; HolderLength = 35; HolderHeight = 14; HolderCornerRadius = 1; difference(){ SolidInsert(); translate([0,1.6,-InsertLength/2]) rotate([270,90,0]) SolidM4nut(0); translate([0,0,HolderLength/2]) rotate([0,45,0]) cube([1...
glb/cad_b51ec913507d.glb
Create a Simple Hook in the shape of a stylized, angular S. The entire object should have a uniform thickness of 8mm. Start by creating a central vertical rectangular bar that is 4mm wide and 80mm long. At the bottom of this bar, add a horizontal base piece 12mm wide and 4mm high, extending 4mm to each side of the cent...
thickness = 8; length = 80; gapwidth = 4; module garden_hook() { cube([gapwidth,length,thickness]); cube([gapwidth*3, gapwidth, thickness]); translate([gapwidth * 2, 0, 0]) cube([gapwidth, length / 3, thickness]); translate([-gapwidth * 2, length - gapwidth, 0]) cube([gapwidth*3, gapwidth, thickness]); translate(...
glb/cad_2f56bcc4bf87.glb
Create a Huxley Adjustable Z-endstop consisting of two primary components: a movable slider and an unmovable clamp, both designed to fit a 6mm smooth rod. First, construct the movable slider. Create a main body with a height of 9mm. The body features a central cylindrical section with an outer diameter of 14mm and a h...
use <opto_endstop.scad> CreateUnmovableClampPart = true; CreateMovableSliderPart = true; CreateMembranes = true; UnmovableShift = 30; OES_direction_inside = false; OES_MountHolesDistance = 16; LiftScrewToRodDistance = 10; LiftSpringSlotDiameter = 8; ClampScrewOffset = 10; ClampOpening = 5.8; OES_MountHeight = 7; OES...
glb/cad_82a6963b6597.glb
Create a Y-axis spacer and clamp set consisting of two primary components: a base plate and a shim. Use a 24-facet resolution for all cylindrical elements. First, construct the base plate. Create a central body by forming a hull between a 20x20mm rectangle and a cylinder with a 10mm radius, resulting in a thickness of...
bolt_radius = 5; bolt_threaded_radius = 4.4; bolt_offset = 38.76 / 2; hub_radius = 11; hub_offset = 1.78; spacer_base_thickness = 1; base_thickness = 4; shim_thickness = 2; $fn = 24; module plate(c_width, c_heigth, isThreaded=true) { difference() { hull() { minkowski() { cube(size=[c_width-10, c_...
glb/cad_758a4a6dc7ba.glb
Create a Y-axis spacer and clamp with an overall thickness of 6mm. Start with a base shape formed by the Minkowski sum of a 13.5mm by 4mm by 3mm centered box and a cylinder with a 5mm radius and 3mm height. From this main body, remove a series of rectangular slots measuring 8mm by 2.15mm by 3mm, centered vertically, an...
thickness = 6; $fn = 24; module clamp() { difference() { minkowski() { cube([13.5, 4, thickness/2], center=true); cylinder(r=5, h=thickness/2, center=true); } for (i=[-thickness:3:thickness]) { translate([0, i, -thickness/2]) { #cube(size=[8, 2.15, 3], center=true); } ...
glb/cad_5a38201de954.glb
Create a Garden Spacer tool designed to mark planting holes in a hexagonal pattern. Start by creating a hollow spherical shell with an outer radius of approximately 11.55mm and an inner radius of 5mm. Flatten the top of this shell by removing the upper section with a centered cube. Add three cylindrical spikes, each w...
spacing = 3 * 25.4; radius = 5; depth = 20; thickness = 4; $fn = 30; module garden_spacer(s, r, l, t) { dist = sqrt(3)/3*s; for(i = [0, 1, 2]) rotate([0, 0, i * 120]) translate([dist, 0, 0]) cylinder(r=r, l+t); difference() { sphere(r=dist+r+1); sphere(r=dist-r); translate([0,0,dist]) cube([dist *3, dist*3...
glb/cad_f742eafaf50d.glb
Create a lid for a slug trap. Construct a conical shape with a height of 25mm, starting with a base radius of 52mm and tapering to a top radius of 3mm. From the bottom of this cone, remove a central conical section with a base radius of 20mm and a height of 22mm. Additionally, remove three identical vertical cylinders,...
outer_radius = 52; inner_radius = 40; height = 25; post_height = 20; wall_thickness = 3; module slug_trap() { difference() { cylinder(r1=outer_radius, r2=inner_radius, h=height); translate([0, 0, wall_thickness]) cylinder(r=inner_radius - wall_thickness, height - wall_thickness + 1); } for(x = [0, 360/3, 360/3...
glb/cad_82f43d9fa939.glb
Create a parametric baby bottle holder. Start with a main body that is a cube 100mm wide, 100mm deep, and 70mm high. The overall structure is a hollowed-out frame designed to hold a bottle and be secured by threaded rods. At the center of the base, create a large circular cutout with a diameter of 80mm to accommodate ...
diametre_bib = 80; diametre_bib_sec = 40; largeur_porte = 100; hauteur_porte = 70; epaisseur_porte = 3; largeur_support = 20; hauteur_support = 25; arr = 0.10; inf = 1000; rayon_tige = 4.1; ecrou_l = 16; ecrou_h = 7; crochet_width=20; crochet_height=25; rayou_trou = 1.5; union(){ difference(){ union(){ tra...
glb/cad_0337413593fc.glb
Create a ball joint connector consisting of a socket and a matching ball-and-stem stud. First, construct the socket. Start with a base shape formed by the intersection of an ellipsoid (scaled 1.3x on the X-axis, with a radius of 7.25mm) and a bounding box of 20mm x 14.5mm x 9mm. Hollow out this shape by removing a ce...
rad_ext = 14.5/2; enforce_cube_xy=6; enforce_cube_z=6; enforce_cube_embedd_coef = 2; enforce_cube2_xy=5; enforce_cube2_z=2*rad_ext; enforce_cylinder_d= 5; enforce_cylinder_h=2*rad_ext; enforce_cylinder_embedd_coef = 3; module joint_raw() { scale([1.3,1,1]) sphere(rad_ext,center=true,$fn=100); translate ([-ra...
glb/cad_1d054ed5f8c8.glb
Create a filament spool axle adapter consisting of two circular plates and four spars. First, create two identical plates. Each plate is a cylinder with a diameter of 80mm and a thickness of 3mm. Remove a central cylindrical core with a diameter of 22mm and a height of 15mm. Around this center, create four rectangula...
inner_d = 22 ; outer_d = 80 ; spool_t = 70 ; plate_t = 3 ; module spindle_plate() { difference() { union() { cylinder( plate_t, d=outer_d, $fn=100 ) ; cylinder( 15, d=inner_d+2*plate_t, $fn=100 ) ; } union() { translate( [ 0, 0, -1 ] ) cylinder( 18, d=inner_d, $fn=100 ) ; n = floor( (outer_d-in...
glb/cad_e7dc37550e48.glb
Create a customizable table plaque by constructing a tilted rectangular base and embossed text. Start by creating a rectangular plate with a length based on the text "Pedro" (calculated as the number of characters multiplied by 8mm, plus 6mm), a height of 16mm, and a thickness of 1.2mm. Center this plate and rotate it ...
$fn = 50; text = "Pedro"; long = len (text)*8+6; scale (2) { rotate ([55, 0, 0]) { linear_extrude(3) text(text, halign = "center", valign ="center", font = "Liberation Mono"); linear_extrude (1.2) offset (r=2) square ([long, 16], center = true ); linear_extrude (2.0) offset (r=1.6) square ([long-2, 14], center = true ...
glb/cad_78d22b6a8eae.glb
Create a rain protection cap consisting of a wide base and a narrower vertical tower. Start by creating a solid cylinder for the base with a diameter of 58mm and a height of 10mm. Centered on top of this base, add a second, taller cylinder with a diameter of 47mm and a height of 30mm. This upper cylinder must be hollow...
cap_diameter = 58; cap_height = 10; dog_diameter = 47; dog_height = 30; dog_wall = 5; peg_width = 7; peg_height = 17; clearance = 0.4; hanger_width = 15; hanger_length = 5; hanger_height = 5; hanger_hole = 5; difference() { union() { cylinder (d=cap_diameter, h=cap_height, $fn=128); translate([0,0,...
glb/cad_55d426e9ba4a.glb
Create a Power Supply Line-in Cover designed as a protective housing. Start with a main rectangular body measuring 14mm wide, 20mm deep, and 1.68mm thick. On one side of this body, add a vertical wall that is 18mm wide and 1.68mm thick, extending upwards. Integrate a fillet with a 4mm radius along the inner edge wher...
pi = 3.141592653589793116; in = 25.4; pitch = 3/8 * in; offset = 8; od = 6; jog = 4; la = 0.15; th = 0.42 * 4 - 3 * (1-pi/4)*la; fil = jog; $fn = 96; overhang = 30; module cord() { cylinder (d=od, h=40, center=true); rotate([0,0,90-overhang]) translate([0,0,-20]) cube([od/2,od/2,40]); rotate([0,0,ove...
glb/cad_734d09eaa9e2.glb
Create a center console latch consisting of a main rectangular body 32.44mm wide, 42.54mm high, and 7.4mm deep. From this base, remove a rectangular section 20.4mm wide, 42.54mm high, and 5.95mm deep from the front. Remove a second rectangular section 12.2mm wide, 42.54mm high, and 5mm deep, positioned 22.24mm from t...
body_width = 32.44; body_height = 42.54; body_depth = 7.4; screw_hole_size = 4.5; support_length = 6; support_height = 6.4; union() { difference() { union() { cube([body_width, body_height, body_depth], false); translate([0, 0, body_depth+(body_depth-5.95)*0.5]) { ...
glb/cad_5ae79d8fa93c.glb
Create five small spacer beads for jewelry. Each bead is a hollowed-out prism with a height of 13mm. The outer shape is a right prism with a radius of 5mm and a 3-sided cross-section (an equilateral triangle). Centered along the longitudinal axis of each prism, create a triangular hole with a radius of 2.5mm that passe...
A_cylinder_radius = 6; A_hole_radius = 3; A_cylinder_length = 15; A_no_sides = 6; B_cylinder_radius = 4.5; B_hole_radius = 2.5; B_cylinder_length = 12; B_no_sides = 16; C_cylinder_radius = 5; C_hole_radius = 2.5; C_cylinder_length = 13; C_no_sides = 3; D_cylinder_radius = 0; D_hole_radius =...
glb/cad_b046784d46f9.glb
Create a 3D model of a Pythagoras Theorem demonstration tool with a uniform thickness of 2mm. The design is based on a right-angled triangle with legs of 80mm and 30mm. First, construct the central right-angled triangle by placing vertices at (0,0), (80,0), and (0,-30). At the vertex (0,0), place a small circular hol...
leg_a=80; leg_b=30; heigth = 2; fn = 120; a = leg_a; b = leg_b; c = sqrt(pow(a,2)+pow(b,2)); h = heigth; ro = (a+b)/8; e = (a+b)/75; echo("c =", c, "ro =", ro, "e =", e); linear_extrude(height=h , center = false, convexity = 10, twist = 0) { semi_circles_a(); semi_circles_b(); semi_circles_c(); } triangle(); ...
glb/cad_56a519a54eb3.glb
Create a PCB box generator by constructing a hollow rectangular sleeve designed to hold a circuit board. Start with a main outer block measuring 33.4mm in length, 45.8mm in width, and 6.4mm in height. From this block, remove a central rectangular volume to create a slot for the PCB, measuring 31mm by 41mm with a thickn...
pcb_height=31; pcb_width=41; pcb_thick=2; grove=1; walls=2.4; bottom_offset=2; chamfer_top=7; chamfer_bottom=3; chamfer_top_=chamfer_top/10; chamfer_bottom_=chamfer_bottom/10; difference(){ translate([walls/2+0.1,0,pcb_thick/2+bottom_offset/2]){ cube([pcb_height+walls,pcb_width+walls*2,pcb_thick+walls*2+bottom_offse...
glb/cad_0cd0d3e3cf93.glb
Create an XT60 LiPo Connector Holder. Start by constructing a main rectangular block that is 16mm wide, 8.7mm deep, and 8mm high. Inside this block, carve out a central cavity to hold the connector. This cavity is defined by a rectangular space 14.2mm wide, 6.8mm deep, and 8mm high, but with the corners modified: remov...
$fn=60; XT60_holder_mount(); module XT60() { width=14; height=8; depth=6.5; chamfer=3.5; cut=[2,1]; width=14.2; height=8; depth=6.8; chamfer=3.3; cut=[1.8,1]; difference() { cube([width,depth,height]); translate([width+depth/2-chamfer/sqrt(2),0]) for (i = [-1:2:1]) { translate([0,i*depth/2,0]) r...
glb/cad_33e454ddecff.glb
Create an M5 T-nut for a Prusa i3 MK2 by starting with a base cylinder 25mm in diameter and 3mm high. Centered on this base, add a second cylinder 12.7mm in diameter and 9mm high. From this combined volume, remove a central vertical hole 5.5mm in diameter that passes through the entire height of the object. To create t...
module tnut(){ translate([0,0,-3]) cylinder(h=3,d=25, $fn=160); translate([0,0,-10]) cylinder(h=9,d=12.7, $fn=120); } module M5nut(){ translate([0,-4,-7]) cube([18,8,4]); translate([-0.5,0,-7])rotate([0,0,60]) cylinder(h=4,d=9.3,$fn=6); } module M3screw(){ translate([9.5,0,0]) cylinder(h=10,d=3.2,center=true,$fn=20...
glb/cad_a7feab741343.glb
Create a protective phone case for a OnePlus 3/3T with overall dimensions of 153mm in length, 75.3mm in width, and 7.8mm in thickness. The main body should have rounded corners and edges with a radius of 1.7mm. On the back, create a camera cutout centered at [13, 37.65] with a size of 20mm by 15mm and a depth of 1.5mm...
$fn=40; phone=[153, 75.3, 7.8]; phone_edge=12; phone_edge_r=37; rounding=1.7; s_scale=[3.5,3.5,1]; camera=[20, 15, 1.5]; camera_rounding=3; camera_loc=[13+camera[0]/2, phone[1]/2]; volumeslider_loc=[20, 60, 4, 1]; volumeslider=[10, 10]; powerbutton_loc=[47, 59, 4, 1]; powerbutton=[10, 10]; usbport_loc=[phone[1]/...
glb/cad_1a5d92bd9452.glb
Create a protective phone case for a OnePlus 3/3T. Start with a main body that is 157mm long, 79.3mm wide, and 8.5mm thick. Apply a 6mm rounding radius to all exterior corners and edges to create a smooth, organic shape. Hollow out the center of the case to accommodate the phone, leaving a wall thickness of 0.2mm. Th...
use<op3_v2.scad>; phone=[153, 75.3, 7.8]; op_camera=[28, 22, 5]; case=[2, 2, 0]; case_rounding=6; case_rounding_sphere=1; phone_height=0.7; case_thickness=0.2; case_hole_bot_loc=[case[0]+phone[1]/10, 9*phone[1]/10-2*case[0], 7]; case_hole_bot=[1,10]; clearance_phone=phone; clearance_height=3; clearance_rounding=0;...
glb/cad_2092db2866af.glb
Create a Distractify Button Enclosure by constructing a shallow cylindrical lid. Start with a solid cylinder that has a diameter of 48mm, a height of 3mm, and a facet resolution of 120. From the top surface of this cylinder, remove a smaller concentric cylindrical volume to create a hollow ring. This inner cutout shoul...
height=3; diameter=48; thickness=1.5; resolution=120; difference() { lid(); translate([0,0,thickness]) cylinder(h=7, r=diameter/2-thickness*2, $fn=resolution); } module lid() { cylinder(h=height, r=diameter/2, $fn=resolution); translate([0,0,thickness]) cylinder(h=5, r=diameter/2-thickness-.4, $fn=resolution)...
glb/cad_d801610ae0d7.glb
Create a Distractify Button Enclosure by constructing a hollow cylinder with an outer diameter of 48mm and a total height of 27mm. The walls and the base should have a uniform thickness of 1.5mm. To create the interior cavity, remove a concentric cylinder from the center, leaving only the 1.5mm thick floor and walls. ...
height=27; diameter=48; thickness=1.5; resolution=120; difference() { cylinder(h=height, r=diameter/2, $fn=resolution); translate([0,0,thickness]) cylinder(h=100, r=diameter/2-thickness, $fn=resolution); translate([0,0,-5]) cylinder(h=100, r=16, $fn=resolution); rotate ([90,0,0]) translate([0,20,0]) cy...
glb/cad_81ea06d5b40e.glb
Create a Puller tool by starting with a solid rectangular block that is 100mm long, 30mm high, and 48mm wide. Centered along the length of this block, carve out a rectangular slot that is 18mm wide and 80mm long, extending through the entire 30mm height of the object. This resulting shape should be a U-shaped wedge wit...
slitWidth = 18; slitLength = 80; taperWidth = 15; length = 100; height = 30; puller(); module puller() { difference() { base(); translate([-slitWidth / 2, -0.1, -0.1]) { linear_extrude(height = height + 0.2) { square([slitWidth, slitLength + 0.1]...
glb/cad_0c4023776ac1.glb
Create a Nema17 stepper motor model starting with a main body that is a square prism 42mm wide and 39mm tall, with the corners chamfered by 55mm. On the top face, center a circular protrusion with a diameter of 22mm and a height of 1.75mm. From the center of this circular base, extend a vertical cylindrical shaft with ...
difference() { body(); screw_holes(); } shaft(); module body() { difference() { union() { color("slategray") linear_extrude(39) base_sketch(); color("silver") translate([0,0,39]) linear_extrude(0.2) base_sketch(); circular_base(); } middle...
glb/cad_f61055bbd6c9.glb
Create a toothbrush cover by constructing a flat base with a thickness of 3.5mm. The base is composed of several joined sections: a central rectangular block measuring 156mm in length and 40mm in width, a second narrower rectangular block measuring 151mm by 9mm positioned atop the first, and a third rectangular block m...
module brossedents() { e=3.5; $fn = 150; p=40; translate([-41,0,0]){ cube([156,p,e]); }; p2=9; t1=-38.5; translate([t1,p,0]){ cube([151,p2,e]); }; p3=20; translate([-35,-p3,0]){ cube([70,p3,e]); }; d = 80; translate([0,-34,0]){ cylinder(e,d/2,d/2); }; translate([t1,p+10,0]){ intersection (...
glb/cad_b90555148906.glb
Create a circular pill dispenser base with a total height of 3mm. The main body is a cylinder with a radius of 9.8mm. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a radius of 8mm, leaving a wall thickness of 1.8mm, but start the hollow at a height of 0.8mm from the bottom to cre...
$fn=320; module frame() { difference () { union() { difference() { cylinder(3, r=9.8); translate([0, 0, 0.8]) cylinder(3, r=8); } cylinder(3.5, r=2); rotate([0, 0, 0]) cube([0.4, 8.2, 3]); rotate([0, 0, 45]) cu...
glb/cad_fb6c03337f44.glb
Create a 3D printer end stop consisting of a switch body, a base, a plunger, and mounting holders. First, create the switch body as a 14x14x20mm cube. Hollow out the center to leave a 2mm wall thickness. Cut two 6x4mm rectangular openings on opposite sides near the top for clips, and create a 3x10mm vertical slot cen...
x_dim = 14 ; y_dim = 14 ; height = 20 ; build_body = 1 ; build_base = 1 ; build_plunger = 1 ; build_clip = 1 ; build_washer_bottom = 1 ; build_washer_top = 1 ; build_holder_clip = 0 ; build_h_holder = 0 ; build_v_holder = 0 ; module nut_m3( thickness = 2.8 ) { linear_extrude( thickness ) circle( 3.6, $fn=6 ) ; } mo...
glb/cad_dd20cdaf48ac.glb
Create a Replicator 2 camera mount adapter starting with a solid rectangular block measuring 56.5mm in width, 25mm in depth, and 24mm in height. Hollow out the center of this block by removing a rectangular section that is 53mm wide, 11mm deep, and 25mm high, positioned 2.5mm from the left edge, -1mm from the front, an...
difference ( ){ cube ([56.5, 25, 24]); union (){ translate ([2.5,-1,-.5]) cube ([53, 11, 25]); translate ([1,2,-.5]) cube ([3, 8, 25]); rotate ([0,90,0]) translate ([-5,16,44]) cylinder (r=1.25, h=14); rotate ([0,90,0]) translate ([-19,16,44]) cylinder (r=1.25, h=14); } }
glb/cad_559e94b14af9.glb
Create a Replicator 2 camera mount adapter by starting with a solid rectangular block measuring 56.5mm in width, 23mm in depth, and 24mm in height. Carve out three rectangular voids to create a C-shaped channel: first, remove a central block of 53mm by 11mm by 25mm positioned 2.5mm from the left edge and 1mm from the f...
union () { difference ( ){ cube ([56.5, 23, 24]); union (){ translate ([2.5,-1,-.5]) cube ([53, 11, 25]); translate ([1,2,-.5]) cube ([3, 8, 25]); translate ([-.5,11,-.5]) cube ([56, 25, 25]); } } translate ([59.5,24,24]) rotate ([0,90,-90]) import_stl("~/Downloads/Raspberry_Pi_Came...
glb/cad_5cc0ec4b9c68.glb
Create a blade disposal bank in the shape of a rounded cylinder with an external diameter of 40mm and a total height of 62mm. The cylinder should have a uniform wall thickness of 2mm, creating a hollow internal cavity. All edges and faces of the cylinder should be rounded with a 3mm fillet. At the center of one flat e...
eps1 = 0+0.01; eps2 = 2*eps1; $fn=60; d = 40; h = 62; filet = 3; wall = 2; slot_length = 15; slot_width = 3; guard_height = 5; debugging = 0; module elongated_cylinder(d, h, l) { hull() { dy = max(0, (l-d)/2); translate([0, dy, 0]) cylinder(d=d, h=h); translate([0, -dy, 0]) cylinder(d=d, h=h); ...
glb/cad_6339a8379cd1.glb
Create a Parametric Wheel designed for a hex shaft. Start by creating a main cylindrical body with a diameter of 34.375mm (calculated from a 33.6875mm internal tire diameter plus a 2mm cross-sectional tire thickness) and a total width of 24.5mm. At the center of the wheel, create a hexagonal bore to accommodate a h...
wheelWidth = 24.5; tireCSDiameter = 2; tireID = 33.6875; tireStretch = 1.01; rimHeight = 5; timingHoles = 0; timingHolePad = [1,0.5,3]; directional = true; vaneCount = 0; vaneHeight = 7; vaneWidth = 1; vaneLength = 4; vaneOffset = 1; treadStyle = "slots"; knobSize = [...
glb/cad_9ee85730b431.glb
Create a Parametric Wheel with a central hub and a hexagonal bore. Start by creating a main cylindrical body with a diameter of 24.5mm and a height of 24.5mm. At the center of this cylinder, carve out a hexagonal hole (the hexbore) with a diameter of 14mm that extends through the entire height of the hub. To create...
wheelWidth = 12.5; tireCSDiameter = 0; tireID = 24.5; tireStretch = 1.00 ; rimHeight = 0; timingHoles = 0; timingHolePad = [1,0.5,3]; directional = true; vaneCount = 0; vaneHeight = 7; vaneWidth = 1; vaneLength = 4; vaneOffset = 1; treadStyle = "none"; knobSize = [16....
glb/cad_791aa4643f68.glb
Create a Prusa i3 Remix Multi-Hotend Mount consisting of two symmetrical clamping parts and a base. First, create a rectangular base 32mm wide, 32mm high, and 3mm thick. Subtract four 4.5mm diameter holes from the corners, each offset 2.25mm from the edges. Construct two identical clamping blocks. Each block starts ...
base_width = 32; base_height = 32; base_thickness = 3; base_separation = 8; hole_size = 4.5; hole_offset = 2.25; hole_quality = 100; hotend_count = 2; hotend_separation = 17.5; hotend_thickness = 14; hotend_id = 12.2; hotend_od = 16.2; hotend_quality = 100; hotend_offset_bottom = 3.1; hotend_offset_top = 3.8; hotend_...
glb/cad_a397b5a09cb9.glb
Create a Personalizable Ball Fidget Spinner consisting of a central body and three arms. Start with a central hub designed to hold a standard 608 skate bearing; create a cylindrical cavity with a radius of 3.9mm and a height of 8.5mm, topped with a slightly wider tapered ring from 3.9mm to 4.8mm over a height of 0.4mm,...
doimage=false; image="myimage.png"; difference() { cylinder(r1=11,r2=12.5,h=1.5,$fn=90); if (doimage) { translate([-9,-9,.3]) scale([.18,.18,.01]) surface(file="eagle_head_s.png",invert=true); } } difference() { union() { translate([0,0,1.4]) cylinder(r=5.6,h=0.5,$fn=90); tra...
glb/cad_a0826a822e26.glb
Create a Personalizable Ball Fidget Spinner with a central hub and three equidistant arms. Start with a central cylinder 30mm in diameter and 6mm high. Remove a central hole to fit a standard 608 skate bearing, consisting of a bottom cylinder with a radius of 11.15mm and height of 3mm, and a top cylinder with a radius ...
doimages=false; image1="tiger_1s.png"; image2="eagle_head_s.png"; bearing_adj=0.05; sphere_adj=0.05; module arm() { difference() { union() { translate([0,-8,0]) cube([30,16,6]); translate([30,0,0])cylinder(r=12,h=6,$fn=120); } translate([30,0,3]) sphere(r=8.1+sphere_ad...
glb/cad_43197d2c9629.glb
Create a Whiteboard Connector consisting of a central core and two symmetrical wings. Start with the central core, a rectangular block measuring 30mm in length, 29.4mm in width, and 12.1mm in height. At the top surface, centered at (15, 7.2), create a vertical mounting hole with a diameter of 4.5mm that extends throu...
core(); translate([-21.4,1.3,5.9]) wing(); translate([51.4,1.3,5.9]) mirror([1,0,0]) wing(); module wing() { difference() { cube([22.9,12.8,6.2]); translate([0,-0.1,4.5]) rotate([0,-20,0]) cube([5,13,5]); translate([-1.71,-0.1,-3]) rotate([0,20,0]) cube([5,13,5]); translate([0,11.1,-0.1]) rotate([0,0,20]) c...
glb/cad_7455ceee124c.glb
Create a QAV HS1177 Mount for a camera. Start with a base plate measuring 28mm by 36mm with a thickness of 1mm, centered on the origin. From this base, extend two vertical walls upward to a total height of 20mm. These walls should be 3mm wide and positioned symmetrically, spaced 31mm apart. Incorporate a fillet on the ...
$fa=2; $fs=.05; height = 20; module dupmirror() { children(); mirror([0, 1, 0]) children(); } module mainbody() { difference() { union() { translate([0, 0, 0.5]) cube([28, 36, 1], center=true); intersection() { union() { dupmirror() tr...
glb/cad_56f8f0f05328.glb
Create ten 685 bearing flat caps. Each cap is designed for a bearing with an outer diameter of 11mm and a width of 5mm. For each cap, start with a central cylindrical body that has a diameter of 10.9mm and a height of 2.2mm. Add a wider, thin circular rim at the base with a diameter of 11.1mm and a thickness of 0.5mm...
dMin = 10; tCap = 0.925; model = 685; qty = 10; o = -0.1; o2 = -0.3; slot = true; dIn = bearingDimensions(model)[0]+o; dOut = bearingDimensions(model)[1]+o2; h = bearingDimensions(model)[2]; $fn = 100; zero = 0.001; wRim = 0.1*(dOut-dIn); tRim = 0.5; m = ceil(sqrt(qty)); n = ce...
glb/cad_0d0f84eb8e82.glb
Create a 3D model of a Nobbly-Wobbly consisting of six interlocked rings. Each ring is formed by a closed tube with a square cross-section (4 sides) and a radius of 1mm. The path of each tube follows a undulating circular loop where the distance from the center varies according to a sine wave with a frequency of 5 cycl...
Sides=4; Step=2; R=0.05; Scale=20; B=0.1; p= 0.25; colours=["red","green","pink","orange","purple","yellow"]; scale(Scale) { rotate([0,0,-p*72]) fun_knot(Step,R,Sides); for (k =[0:4]) color(colours[k]) rotate([0,0,k * 72]) rotate([60,0,0]) ...
glb/cad_e090a0202ad4.glb
Create a stepped pen holder consisting of a 5x5 grid of square columns. Each column has an outer dimension of 10mm by 10mm and a wall thickness of 1mm, creating a 8mm by 8mm hollow center. The columns are positioned immediately adjacent to one another. The height of each column varies based on its position in the grid ...
hole_size = 10; start_height = 50; step_height = 10; size = 5; for (y=[0:size-1]){ for (x=[0:size-1]){ translate([(hole_size-1)*x,(hole_size-1)*y,0]){ if (x==0 && y==0){ column(0); } for (p=[1:size]){ if (x==p || y==p){ ...
glb/cad_c22ae5f2c04f.glb
Create a stepped pen holder consisting of a 5x5 grid of square columns. Each column has an outer dimension of 10mm by 10mm and a wall thickness of 1mm. The columns are arranged such that their centers are spaced 9mm apart in both the X and Y directions. The height of these columns increases in a stepped fashion: the c...
hole_size = 10; start_height = 50; step_height = 10; size = 5; difference(){ for (y=[0:size-1]){ for (x=[0:size-1]){ translate([(hole_size-1)*x,(hole_size-1)*y,0]){ if (x==0 && y==0){ column(0); } for (p=[1:size]){ ...
glb/cad_72b90b4c318d.glb
Create a stepped pen holder consisting of a 4x4 grid of square columns. Each column has an outer dimension of 15mm by 15mm and a wall thickness of 3mm, creating an internal hollow square of 9mm by 9mm. The columns are arranged such that the center-to-center distance between them is 12mm. The height of the columns vari...
hole_size = 15; start_height = 75; step_height = 15; size = 4; wall_width = 3; difference(){ for (y=[0:size-1]){ for (x=[0:size-1]){ translate([(hole_size-(wall_width/2))*x,(hole_size-(wall_width/2))*y,0]){ if (x==0 && y==0){ column(0); } ...
glb/cad_f5bb0ff7eb28.glb
Create a ferrite bead anti-pull out cone consisting of two mirrored symmetrical halves. Each half is derived from a hollow truncated cone with a height of 25mm, an outer base radius of 9mm, and an inner bore radius of 2.5mm. Slice this cone vertically down the center to create two semi-conical shells. For the first ha...
ru = 18/2; ro = 5/2; h = 25; ccr = 1.5; ccr_o = 0.6; cch = 6; ccf = 0.4; ccof = 0.35; wf = 1.1; ms = 0.01; translate([-2.5, 0, 0]) { hcl(); } translate([2.5, 0, 0]) { rotate(180) { hcr(); } } module hcl() { hc(); translate([ccr*ccf, ro+ccof*(ru-ro), 0]) { rotate(180) { ...
glb/cad_b934420e9a96.glb
Create a Box with Holder by constructing two nested open-top rectangular containers. First, create a large outer box with exterior dimensions of 56mm width, 44mm depth, and 89mm height. Hollow out this box by removing a central rectangular volume starting 4mm from the bottom and sides, leaving a wall thickness of 4mm, ...
wallThickness = 4; insideX = 48; insideY = 36; insideZ = 85; inside = [insideX, insideY, insideZ]; outsideX = insideX + (wallThickness * 2); outsideY = insideY + (wallThickness * 2); outsideZ = insideZ + wallThickness; outside = [outsideX, outsideY, outsideZ]; smallInsideX = 10; smallInsideY = 5; smallInsideZ = 31; ...
glb/cad_9e239f04e957.glb