Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Customizable Bokeh Insert. Start by creating a thin circular disc with a diameter of 49mm and a thickness of 1mm. At the bottom of the disc, centered along the edge, add a small rectangular grip tab that is 5mm wide and 5mm high. To create the mounting slots, remove two small semi-circular notches from the o...
Thickness=1.0; Diameter=49; GripHeight=5; GripWidth=5; BokehScale=40; Bokeh=1; CustomBokeh=[[[-1,1],[1,1],[1,-1],[-1,-1]],[[0,1,2,3]] ]; bScale=Diameter/100*BokehScale/100; module baseInsert(radius=Diameter/2, thickness=Thickness){ cutoutWidth=1.5; tabShift=0.2; difference(){ union(){ cylinder(r=radius,h=thi...
glb/cad_dc79710cf407.glb
Create a pair of mirrored drone battery tray hooks, each with a total thickness of 12mm. The main body of each hook is defined by a 2D profile extruded to the specified thickness. This profile consists of a parabolic upper section and a flat base. On the inner side of the hook, incorporate a circular cutout with a di...
thickness=12; hole_distance=24; rod_distance=59; { $fn=50; union() { hook_with_features(); mirror([1,0,0]) hook_with_features(); } *translate([-hole_distance/2, -20, 0]) rotate([-90,0,0]) drillhole(3,10); *rotate([-90,90,0]) { cylinder(d=6.43, h=10, $fn=6); cylinder...
glb/cad_d585091b86d2.glb
Create a sun shield for a tablet and remote controller. Start with a base rectangular plate measuring 245mm by 120mm with a thickness of 1mm. Construct the side walls by adding vertical panels 120mm high and 3mm thick at both the left and right edges of the base. On the right side, integrate a support panel that angl...
$fn = 100; union(){ difference() { cube([245, 120, 1]); translate([94, -2, -2]) cube([56, 22, 25]); translate([89, -2, -2]) cube([66, 17, 25]); translate([94, 15, -2]) cylinder(h = 5, r = 5); translate([150, 15, -2]) cylinder(h = 5, r = 5); } rotate( [0, 0, 24.5] ) translate([5, 8, 0]) cube([265, 3, 3]); rotate...
glb/cad_e26f5cb9c71e.glb
Create a Dove Foam Dart Blaster connector by constructing a hollowed-out composite shape. Start with a base formed by the union of a cylinder with a radius of 19.8mm and a height of 10mm, and a cylinder with a radius of 9.48mm and a height of 30mm, joined by a convex hull. Add a third cylinder with a radius of 9.48mm a...
connector(); $fn = 128; module connector(fill=false) { difference() { union() { hull() { cylinder(r=16.8+3, h=10); cylinder(r=6.48+3, h=30); } cylinder(r=6.48+3, h=45); } if (!fill) { translate([0,0,-.5]) ...
glb/cad_eed439c17247.glb
Create a Dove Foam Dart Blaster plunger assembly consisting of a shaft and a head. For the shaft, construct an octagonal prism with a radius of 6mm and a height of 135mm. At the top of this shaft, center a cylinder with a radius of 16mm and a height of approximately 11.3mm. Along the length of the shaft, create a longi...
use <MCAD/nuts_and_bolts.scad> explode = 0; print = 0; shaft = true; head = true; if (shaft) plunger_shaft(); if (head) plunger_head(); module plunger() { plunger_shaft(); plunger_head(); } module plunger_shaft() { difference() { union() { rotate([-90,0,0]) rotate([0,0,6...
glb/cad_7118ec9c5132.glb
Create a Dove Foam Dart Blaster barrel by constructing a hollow cylinder. Start with an outer cylinder that has a radius of 16.8mm and a height of 80mm. Remove a smaller concentric cylinder from the center with a radius of 12.8mm and a height of 81mm to create a tube with a wall thickness of 4mm. Ensure the final shape...
use<Plunger R1.0.scad> use<Trigger Catch R1.0.scad> use<Trigger R1.0.scad> use<Connector R1.0.scad> assembled(); module assembled() { translate([0,78,0]) plunger(); translate([-10,120,10]) rotate([180,90,90]) trigger_catch(); translate([-2.5,31,-18]) rotate([0,90,0]) trigger(); ...
glb/cad_4c1141256236.glb
Create a trigger catch for a foam dart blaster. Start by creating a solid rectangular base measuring 24mm in length, 20mm in width, and 4mm in height. Centered on the top face of this base, add an 8-sided polygonal prism with a radius of approximately 2.16mm and a height of 3mm, rotated 67.5 degrees around the Z-axis. ...
trigger_catch(); module trigger_catch() { difference() { union() { cube([24,20,4]); translate([0,10,2]) rotate([0,-90,0]) rotate([0,0,67.5]) cylinder(r=2/sin(67.5), h=3, $fn = 8); } translate([4,4,-.5]) cube([16,12,5]); ...
glb/cad_5db1ea4c92fa.glb
Create a trigger for a foam dart blaster. Start by forming a base composed of two joined rectangular blocks: one measuring 30mm x 30mm x 5mm and another measuring 25mm x 90mm x 5mm, aligned to create an L-shaped footprint. At the top end of the longer section, centered at x=0, y=83, z=0, add a feature created by the co...
trigger(); module trigger() { difference() { union() { cube([30,30,5]); cube([25,90,5]); translate([-7,83,0]) hull() { cylinder(r=1, h=5, $fn = 36); translate([7,-1,0]) cube([1,8,5]); } tr...
glb/cad_87df844a476e.glb
Create a Dove Foam Dart Blaster consisting of two symmetrical side shells. For each shell, construct a main body by combining three rectangular blocks: a base block of 20x125x40mm, a middle block of 20x80x45mm, and a rear block of 20x55x80mm, all joined along their length. Hollow out these blocks with a 3mm wall thickn...
use<MCAD/nuts_and_bolts.scad> use<Assembled.scad> use<Connector R1.0.scad> wall = 3; rotate([0,0,180]) mirror([1,0,0]) translate([0,15,0]) side_front(); side_back(); module side_front() { difference() { union() { shell(); translate([-20,120.3,-20]) cube([15,3,40]); translate([-2...
glb/cad_a4ddc539b8a5.glb
Create a handle for a Hawk Foam Dart Blaster. Start with a primary vertical body formed by a cylinder with a radius of 15mm and a height of 80mm, which is then scaled by a factor of 5/3 along the Y-axis to create an elliptical profile. Integrate three rectangular slots into the top of this body. Each slot should be 5...
use <Hawk_Shell.scad> use <Trigger.scad> use <MCAD/nuts_and_bolts.scad> use <Hawk Assmebly.scad> plunger_move = 80; trigger_move = 0; %inner_air_assembly(false,plunger_move); translate([0,95,-25]) rotate([0,90,0]) translate([0,trigger_move,-3/2]) %trigger(); %backend(); handle(); $fn = 64; module handle() { trans...
glb/cad_92dc65d30ce6.glb
Create a Hawk Foam Dart Blaster mount by constructing a central vertical assembly and a supporting base. Start with a central cylinder of radius 9.48mm and height 45mm. Around the base of this cylinder, create a transition using a hull operation that connects a cylinder of radius 12.8mm and height 10mm to a cylinder of...
pvcToBrass(); $fn = 128; pvc_r = 16.8; pvc_t = 4; brass_r = 6.48; thick = 3; pvc_lip = 10; bracket_t = 15; bracket_y = 36; bracket_x = 36; screw_r = 1.45; module pvcToBrass(fill=false) { difference() { union() { translate([-bracket_x/2,-bracket_y/2,pvc_lip]) cube([bracket_x,brac...
glb/cad_8e76cb9bfaa5.glb
Create a threaded rod for a Hawk Foam Dart Blaster. Start by constructing a central solid cylinder with a radius of 9.15mm and a total height of 73mm. Around this central core, wrap a helical spring made of a coil with a diameter of 1.8mm. The coils should be spaced such that there is a 5mm vertical distance between ea...
fn_value = 6; t_d1 = 1.8; t_d2 = 18.3; t_h1 = 5; t_h2 = 73; module half_torus( d1, w ) { rotate_extrude(convexity = 10) translate([w/2,0,0]) circle(r=d1/2,$fn=fn_value); } module basic_helix( d1, w, h1 ) { rotate( a = -asin((d1+h1)/(2*w)), v=[0,1,0] ) { union() { translate([w/2,0,0]) difference() ...
glb/cad_6e0652c7eb10.glb
Create a trigger for a foam dart blaster. Start with a base rectangular block 25mm wide, 90mm long, and 3mm thick. Round the edges and corners of this block using a radius of 2.7mm. On the underside of the block, create a cutout that is a scaled-down semi-cylinder with a radius of 30mm and a height of 6mm, positioned 1...
trigger(); thick = 3; triggerX = 25; triggerY = 90; fnRender = 12; rad = 2.7; mod = rad*2+thick-.2; module trigger() { difference() { union() { minkowski() { difference() { cube([triggerX,triggerY,thick]); translate([15 ,0,-.5]) scale([1,.5,1]) cylinder(r=30, h=6); ...
glb/cad_9583026b67ed.glb
Create a trigger catch for a foam dart blaster. Start by forming a rectangular base block that is 25mm wide, 19.1mm deep, and 5mm thick. In the center of this block, remove a rectangular section measuring 20mm by 14.1mm and 10mm deep to create a central hole. Add a horizontal cylinder with a radius of 2.5mm and a len...
trigger_catch(); wall_t = 5; z_thick = 5; inner_r = z_thick/2; hole_x = 20+2+inner_r; hole_y = 14.1; slope_l = 2; r = .5; body_x = hole_x+wall_t; echo(body_x); body_y = hole_y+wall_t*2; $fn = 64; module trigger_catch() { translate([wall_t,wall_t,inner_r]) rotate([-90,0,0]) scale([1,1,1]) cylin...
glb/cad_152f459e2a32.glb
Create a Hawk Foam Dart Blaster cross brace. Start with a central rectangular plate measuring 2mm by 35.33mm in width and 22mm in height. To this central plate, attach two identical arms extending from the top and bottom edges. Each arm is formed by a hull connecting two cylinders with a radius of 5.2mm and a height of...
pvcL = 80+22+5-11; slideW = 15; $fn = 64; sliderR = 5.2; screwHoleZ = 36; slotHoleY = slideW+pvcL+sliderR-5.2; echo(slotHoleY); slotHoleZ = screwHoleZ/2*11/16; screw_r = 1.5; crossBracePVC(); module crossBracePVC() { difference() { union() { translate([1,slotHoleY/2,0]) cube([2, slotHoleY*1/3+8,(slotHol...
glb/cad_0ffdc107b88f.glb
Create a Hawk Foam Dart Blaster assembly consisting of two concentric cylindrical tubes. First, create a larger outer PVC tube with an outer radius of 16.8mm and an inner radius of 12.8mm, extending to a total height of 105mm. Inside this, position a smaller brass tube with an outer radius of 6.4mm and an inner radius ...
use <Plunger.scad> use <Trigger Catch.scad> use <PVC_to_Brass.scad> use <PVC_End_Cap.scad> use <PVC_Mid_Brace.scad> use <CrossBracePVC.scad> use <screw_thread.scad> t_d1 = 1.8; t_d2 = 18.3; t_h1 = 5; t_h2 = 73*2; inner_air_assembly(false,0); pvc = 80+22+5; smallBrass = 15+73; module inner_air_assembly(extended = fa...
glb/cad_dd9c7f43bf88.glb
Create a Hawk Foam Dart Blaster assembly. Start by constructing a main rectangular body that serves as the backend. Within this body, integrate a trigger guard consisting of four horizontal slide rails: two positioned at x = -12.5mm and x = 7.5mm, and two at y = 193mm and y = 203mm, each with a height of 44mm. Add two ...
use <Hawk Assmebly.scad> use <HandPump_V2.scad> plung = 80; trans = 0; pumpMoveY = 85; %inner_air_assembly(false,plung, trans); pvc_r = 16.8; pvc_t = 4; cross_d = 22; trigger_g_y = 198; trigger_g_t = 5; trigger_g_z = 44; endCapPlace = trigger_g_y+24; echo(endCapPlace); pvcL = 80+22+5-11; slideW = 15; rightSide...
glb/cad_c3e546a9616d.glb
Create a Hawk Foam Dart Blaster plunger assembly consisting of a shaft, a head, and an end piece. Start with the plunger shaft: create an octagonal prism with a radius of 7mm and a length of 198mm. Along this shaft, remove a central longitudinal bolt hole with a 3mm diameter and a length of 12mm. At the front and bac...
use <MCAD/nuts_and_bolts.scad> use <Pull_Tab.scad> explode = 0; print = 0; shaft = true; head = true; end = true; render_n = 32; plunger_l = 208-10; plunger_r = 14/2; trigger_catch_pos = 91; catch_size = 5; plunger_back_r = 12; head_y = 16;...
glb/cad_1bdc166c8463.glb
Create a Hawk Foam Dart Blaster component consisting of two interlocking toroidal rings. First, generate a torus by rotating a circle with a radius of 5mm around an axis located 15mm from the circle's center. Position this first ring so its center is offset 9mm along the X-axis. To create the open-loop effect, remove t...
ringR = 5; holeR = 15; distX = 9; loops(); module loops() { difference() { translate([distX,0,0]) rotate_extrude() translate([holeR, 0, 0]) circle(r = ringR); translate([-50,0,0]) cube([100,100,100],center=true); } difference() { translate([-distX,0,0]) rotate_extrude() translate([holeR, 0, 0]) ...
glb/cad_5b383983f957.glb
Create a Hawk Foam Dart Blaster end cap by starting with a rectangular block measuring 36mm wide, 36mm deep, and 15mm thick. Center a large vertical hole through the block with a radius of 16.8mm. Inside this main hole, create a second concentric cylindrical void with a radius of 12.8mm that extends 50mm deep. To allow...
pvcEndCap(); $fn = 128; pvc_r = 16.8; pvc_t = 4; brass_r = 6.48; thick = 3; pvc_lip = 4; bracket_t = 15; bracket_y = 36; bracket_x = 36; screw_r = 1.45; module pvcEndCap(fill=false) { difference() { union() { translate([-bracket_x/2,-bracket_y/2,0]) cube([bracket_x,bracket_y,bra...
glb/cad_c23fd495d6f0.glb
Create a Hawk Foam Dart Blaster mid-brace by starting with a solid rectangular block measuring 36mm in width, 36mm in depth, and 3mm in height. Center a large vertical cylindrical hole with a radius of 16.9mm through the block to create a slot for a PVC pipe. To allow for screw mounting, remove four small cylindrical h...
pvcMidBrace(); $fn = 128; pvc_r = 16.9; pvc_t = 4; brass_r = 6.48; thick = 3; pvc_lip = 4; bracket_t = 34; bracket_y = 36; bracket_x = 36; holeZ = 20; screw_r = 1.45; module pvcMidBrace(fill=false) { difference() { union() { translate([-bracket_x/2,-bracket_y/2,0]) cube([bracke...
glb/cad_e80e08e165d0.glb
Create a Kitchen Paper Roll Extender consisting of a tiered cylindrical base and a tapered hollow upper section. Start by creating a solid cylinder with a radius of 24mm and a height of 7mm. On top of this base, add an octagonal prism with a height of 18mm and a radius of 21.7mm. Combine these to form a solid body with...
$fn=200; module rollenhalter() { difference() { difference() { union() { cylinder(h=25, r=21.7,$fn=8); cylinder(h=7, r=24); } union() { cylinder(h=7, r=19); translate([0,0,7])cylinder(h=18, r1=19, r2=16); } } difference() { translate([0,0,10])cylinder(h=15, r=21.75); translate([...
glb/cad_df5a82024bb1.glb
Create a heart-shaped haberdashery button with a total diameter and width of 10mm and a thickness of 1mm. The main body is formed by a cube of 10mm x 10mm x 1mm, rotated 45 degrees on the Z-axis and shifted 1.25mm down the Y-axis. To complete the heart shape, add two cylinders with a diameter of 10mm and a height of 1m...
type="love"; bd=10; bep=1; border="yes"; borderep=1; borderd=1; hn=2; hd=1; hr=4; $fn=100/2; bouton(); module bouton(){ difference(){ corps(); for (i=[1:hn]){ rotate([0,0,(i*360)/hn])translate([(hr+hd)/2,0,0]) cylinder(d=hd,h=bep+1,center=true); } } } module corps(...
glb/cad_475a7161491a.glb
Create a 3D pixel art model of an alien head. The model is composed of a grid of identical cubes, each measuring 10mm x 10mm x 10mm. Arrange the cubes to form a shape 13 columns wide and 8 rows high based on the following layout, where a cube is placed at every position except for the empty spaces: Row 1: Cubes at c...
$fn = 150 ; Epsilon = 1/10000 ; Thikness = 4 ; debug=false; X = 10; Y = X; Z = X; Pix00 = [ " 1 1 1 1 1 1 1 1", "1 1 1 1 1 1 1 1 ", " 1 1 1 1 1 1 1 1", "1 1 1 1 1 1 1 1 ", " 1 1 1 1 1 1 1 1", "1 1 1 1 1 1 1 1 ", " 1 1 1 1 1 1 1 1", "1 1 1 1 1 1 1 1 ", " 1 1 1 1 1 1 1 1", "1 1 1...
glb/cad_2335a9cc1037.glb
Create a Microsoft Surface byte tag by starting with a square base plate measuring 19.05mm by 19.05mm (3/4 inch) with a thickness of 0.9525mm (1/16 inch). On top of this base, add a border frame that is 19.05mm square with an outer wall thickness of 1.5875mm (1/16 inch) and a total height of 6.35mm (1/4 inch). Inside...
mm = 25.4; tolerance = 1/128; byte_tag(byte=69, corners=true, border=1/16, height=1/4, bottom=1/16); module test(){ for(p=[0:3]){ for(q=[0:3]){ translate([p*25,-q*25,0]) byte_tag(byte=p+q*4, corners=true, border=1/16, height=1/4, bottom=1/16); } } } module byte_tag(byte=0, corners = false, border=0, he...
glb/cad_4503a58e67da.glb
Create a cube with side lengths of 10mm. Position the cube so that its center is offset from the origin, specifically placing the cube's minimum X coordinate at 15mm.
x=10; _notvisible = 15; translate([_notvisible,0,0]) cube(x);
glb/cad_3b01ce0c09bd.glb
Create a parasol holder with a total height of 8mm. Start by creating a hollow cylindrical ring with an outer diameter of 34mm and an inner hole diameter of 24mm, both 8mm thick. Attach this ring to a central rectangular connecting bridge that is 55mm long, 10mm wide, and 8mm high. On the opposite end of the bridge, co...
height = 8; pipe = 24; union(){ translate ([-(30+((pipe/2)-2.5)),0,0]) difference(){ cylinder (h=height, r=(pipe+10)/2, center=true); cylinder (h=height+2, r=(pipe/2), center=true); } cube ([55,10,height], center=true); translate ([50,0,0]) difference(){ cube([52,40,height], center=true); t...
glb/cad_b6c58df2106a.glb
Create a DC motor wheel consisting of a central hub and an outer rim connected by spokes. Start by creating a central cylinder with a radius of 5mm and a height of 7mm. Remove a central vertical hole with a radius of 1.62mm and a height of 10mm, and also remove a rectangular slot measuring 4mm by 2mm with a height of 1...
difference(){ cylinder(r=5,h=7,$fn=40); difference(){ translate([0,0,-1]) cylinder(r=1.5*1.08,h=10,$fn=40); translate([-2,(2.5-1.5)*1.08,-2]) cube([4,2,12]); } } difference(){ cylinder(r=40,h=7,$fn=80); translate([0,0,-1]) cylinder(r=35,h=9,$fn=80); } nspokes=7; for(i=[1:nspokes]){...
glb/cad_3ff73681e637.glb
Create a DC motor wheel with a central hub and seven radiating robotic legs. Start with a central cylinder 10mm in diameter and 6mm high. Remove a central vertical hole with a radius of 1.62mm and a rectangular slot 4mm wide and 2mm high passing through the center to accommodate the motor shaft. From this hub, extend ...
difference(){ cylinder(r=5,h=6,$fn=40); difference(){ translate([0,0,-1]) cylinder(r=1.5*1.08,h=10,$fn=40); translate([-2,(2.5-1.5)*1.08,-2]) cube([4,2,12]); } } nspokes=7; for(i=[1:nspokes]){ rotate([0,0,i*360/nspokes]) { translate([3,0,1]) cube([16,2.5,4]); translate([...
glb/cad_61b1ef437ed2.glb
This OpenSCAD code defines two modules, `luigi` and `luigi` (though the second one is actually a duplicate of the first, likely intended to be `mario` or a similar character), which create a highly detailed, stylized 3D plate. ### Technical Breakdown **1. Coordinate Transformation:** Both modules use a `scale([25.4/9...
textColor = "white"; letterThickness = 3; iconType = "Trooper"; iconXyScale = 1.0; iconHeight = 3.0; xOffset = 87; iconColor = "white"; topText = "Roberto M."; topTextYOffset = 7; topLetterSize = 19; topLetterSpacing = 1; subText = "Storm Trooper"; bottomLetterSize = 8.8; bottomLetterSpacing = 1.2; bottomTextYOffse...
glb/cad_5a8118351da9.glb
Create a Pin and Bracket Holder. Start by forming a main body that combines a rectangular block and a cylindrical extension. Create a rectangular base measuring 20mm wide, 40mm deep, and 8mm high, with rounded corners. Attached to the side of this base, center a cylinder with a diameter of 10mm and a length of 20mm, or...
$fn = 30; difference(){ difference(){ base1(); translate([19,10,12]) screwSpace(); translate([19,-10,12]) screwSpace(); } translate([0,0,-10]) cube([70,70,10],center=true); } module screw(){ cylinder(15.66, d=1, center=true); translate([0,0,8.3]) rotate([0,90,0]) cylinder(11.15, d=1, center=tr...
glb/cad_ed21d432a854.glb
Create a customizable air compressor tool caddy. The main body is a rectangular block with rounded ends, measuring 25.4mm in width and 25.4mm in height. The length of the body varies based on the number of tools it needs to hold, using a spacing of 38.1mm (1.5 times 25.4mm) per tool. Along the length of the body, crea...
tools=2; spacing=25.2*1.5; center_hanger=1; pressure_guage=1; difference(){ union(){ if(center_hanger==1 || tools==1){ translate([-25.4/4,pressure_guage*spacing/2,25.4*1.4])rotate([0,90,0])cylinder(25.4/2,25.4/4,25.4/4); } for(i=[0:tools-1]){ translate([0,((-25.4*2-(tools-1)*spacing)/2)+25.4+(i*spacing),-25.4/8])cylin...
glb/cad_b56dbf2410e5.glb
Create a custom Cherry MX keycap. Start by constructing the main body as a hull between two rounded rectangles. The bottom rectangle should be 18.16mm by 18.16mm. The top rectangle is smaller, with 6mm subtracted from the width and 4mm from the height, resulting in a top surface of 12.16mm by 14.16mm. Extrude this shap...
$fn = 64; key_wall_thickness_width = .8; key_wall_thickness_height = .8; key_wall_thickness_depth = .8; key_length = 1; has_brim = 0; brim_radius = 11; brim_depth = .3; stabilizers = 0; stabilizer_distance = 50; inverted_dish = 0; key_profile = 1; key_profiles = [ [ 18.16, 18.16, 6, 4, 11.5, -...
glb/cad_b74aab5301e6.glb
Create a customized Cherry MX vertical keycap. Start by constructing the main body as a hull between two rounded rectangles. The bottom rectangle should be 36.32mm wide by 18.16mm deep. The top rectangle, positioned 11.5mm above the base, should be 30.32mm wide by 14.16mm deep and rotated -6 degrees along the X-axis, w...
$fn = 64; key_wall_thickness_width = .8; key_wall_thickness_height = .8; key_wall_thickness_depth = .8; key_length = 2; has_brim = 0; brim_radius = 11; brim_depth = .3; stabilizers = 0; stabilizer_distance = 50; inverted_dish = 0; key_profile = 12; key_profiles = [ [ 18.16, 18.16, 6, 4, 11.5, ...
glb/cad_ae14540b08e3.glb
Create a Dipole Antenna base by starting with a sphere that has a radius of 5mm. Remove a cylindrical core from this sphere using a cylinder with a diameter of 3.8mm and a height of 65mm, centered vertically. To complete the geometry, position a second sphere with a radius of 5mm at the coordinates (60, 0, 5) and remov...
$fn=64; difference(){ union(){ rotate_extrude() import(file="socket.dxf", layer="0"); } rotate([90,0,0]) cylinder(r=5,h=100); cylinder(d=3.8,h=65); sphere(r=5); } translate([60,0,5]) difference(){ sphere(r=5); rotate([0,0,0])cylinder(d=3.8,h=10); }
glb/cad_24a4957826d3.glb
Create a globe by starting with a sphere that has a radius of 19mm. From this sphere, remove a cylindrical section to create a hole. The cylinder should have a radius of 4mm and a height of 10mm. Position this cylinder so that its center is offset by 25mm along both the x and y axes and 3mm along the z axis. Ensure the...
difference() sphere(19,2,3); translate([0,25,25,3]) cylinder(25,4,10);
glb/cad_92ae61ba1c51.glb
Create a pen holder by constructing a hollow vertical cylinder. Start with an outer cylinder that has a diameter of 90mm and a height of 180mm. From the bottom of this shape, remove a smaller concentric cylinder with a diameter of 75mm and a height of 180mm, but offset the inner cylinder upward by 5mm. This results in ...
difference() { cylinder(d=90, h=180); translate([0,0,5]) cylinder(d=75, h=180); }
glb/cad_360eaed46878.glb
Create a Pi-lon pylon leg by stacking three coaxial cylindrical shapes vertically. Start with a base cone that is 15mm tall, with a bottom radius of 10mm and a top radius of 3.1mm. Directly on top of this base, place a cylinder with a radius of 3.1mm and a height of 5mm. Finally, top the structure with a small cylindri...
pegDia = 2.75; pegHeight = 3; stopDia = 6.2; stopHeight = 5; baseDia = 20; baseHeight = 15; $fn = 100; module pin() { cylinder(h=baseHeight, r1=(baseDia/2), r2=(stopDia/2)); translate([0,0,baseHeight]) { cylinder(h=stopHeight, r=(stopDia/2)); } translate([0,0,baseHeight+stopHeight]) { ...
glb/cad_a12a1d932770.glb
Create a Delta Rod Miter consisting of two identical brackets. Each bracket is based on a rounded rectangular block with a width of 20mm, a height of 40mm, and a thickness of 3mm, with corners rounded to a 3mm radius. For each bracket, carve a central slot through the thickness of the block to accommodate a saw blade,...
holeCreationOffset=0.05; printerTipWidth=0.48; desiredRodLength=269; rodDiameter=4.65; rodEndsLength=24.5; bladeWidth=0.75; mountingholeDiameter=3.5 + (printerTipWidth/2); mountingBracketWidth=20; mountingBracketHeight=40; mountingBracketThickness=3; cuttingBracketWidth=20; cuttingBracketHeight=40; cuttingB...
glb/cad_d557a3beef92.glb
Create a battery holder spacer consisting of two identical circular bases joined together. For each base, start with a cube measuring 21mm x 21mm x 4mm. Center a cylindrical hole with a diameter of 19mm through the cube, extending from the bottom to a height of 6mm. To create the locking mechanism, add two small tria...
$fn=50; D=21; module base() { translate([-D/2,0,0]) batbase(); translate([ D/2,0,0]) batbase(); } module batbase(D=21) { color("Green",.95) { difference() { union() { translate([-D/2,-D/2,0]) cube(size=[D,D,4]); snap(); rotate([0,0,90]) snap(); } translate([0,0...
glb/cad_180926bbb887.glb
Create a motor spool consisting of a central cylinder and two wider circular flanges. Start by creating a central cylinder with a diameter of 10.2mm and a total height of 36mm. Attach a circular flange to both the top and bottom of this cylinder; each flange must have a diameter of 30mm and a thickness of 3.18mm. Conne...
$fn=100; difference() { union() { cylinder(d=30, h=3.18); cylinder(d=10.2, h=36); translate([0, 0, 33.6]) cylinder(d=30, h=3.18); translate([0, 0, 3.18]) cylinder(r1=15, r2=5.1, h=3.18); translate([0, 0, 30.42]) cylinder(r1=5.1, r2=15, h=3.18); } union() { difference() { translate([...
glb/cad_3fd537895ad0.glb
Create an FPV drone battery tray with a base plate measuring 160mm in length and 55mm in width. The base plate should have a thickness of 3mm and rounded corners with a 5mm radius. Around the perimeter of the top surface, add a reinforcing rim that is 2.5mm wide and 2mm high. On the base plate, create six mounting hol...
length=160; width=55; height=35; thickness=3; velcroWidth=20; slit_width=2.5; hole_distance=24; radius=5; rimThick=2.5; rimHeight=2; countersink=1; tabs=1; { $fn=100; union() { translate([0,0,thickness]) rotate([180,0,0]) { difference() { mai...
glb/cad_ae4a2a99b0a1.glb
Create a Focus Lock and micro adjuster consisting of two concentric rings and a clamping mechanism. First, create a "turn ring" with an outer diameter of 84mm and a height of 22mm. This ring should have a central bore and a series of small, evenly spaced grip relief indentations around its outer circumference. Secon...
module lensblank(){ rotate_extrude($fn=120) polygon([[0,0],[36.9,0],[36.9,15.1],[38.3,15.1],[38.3,26.1],[38.05,26.1],[39.05,50],[0,50]]); intersection(){ translate([20,-23.5,0]) cube([21,47,27]); cylinder(27,38,38, $fn=360); }} module fixed_ring(){ difference(){ union(){ translate([0,0,0.1])cylinder(15,42,42, $fn=1...
glb/cad_0662e132d60f.glb
Create a Huxley Y-Bar Clamp by starting with a central block that is 12mm wide, 12mm deep, and 12mm high. At the center of the top face, carve out a semi-cylindrical channel with a radius of 6mm that runs through the width of the block. To create the clamping mechanism, remove a 6mm wide strip from the center of the bl...
rodsize = 6; tolerance = 0.3; partthick = rodsize*2; B = 0.01; $fa = 6; $fs = 0.5; translate([0, 0, partthick / 2]) rotate([90, 0, 0]) ybar_clamp(); module rod(length, dia) #cylinder(h = length, r = dia / 2, center = true); module ybar_clamp() difference() { union() { translate([0, 0, -rodsize / 2]) cube([partth...
glb/cad_5f8df3f3941f.glb
Create a slotted silverware holder consisting of a flat base plate and two curved side walls. The base plate is a rectangular slab 2mm thick. Within this plate, create a grid of 18 rectangular slots arranged in 3 columns and 6 rows. Each slot is 25mm long and 6mm wide, with 10mm of padding between them and 15mm of padd...
module silverwareHolder(numL, numW, topThick, baseHeight , outerPadL, outerPadW , cutoutlength, cutoutwidth , lPad, wPad) { module top(numL, numW, topThick, baseHeight , outerPadL, outerPadW , cutoutlength, cutoutwidth , lPad, wPad) { union() { difference() { cube(size=[outerPadL*2 + numL*(cutout...
glb/cad_03cc23ad0377.glb
Create a star-like geometric shape consisting of nine identical rectangular prisms radiating from a single central point. Each prism must have a width of 1mm, a height of 1mm, and a length of 10mm. Position the prisms so that they all originate from the same center point and extend outwards. Arrange the nine arms with ...
i=0; arms=9; arm_length=10; arm_width=1; for (i = [0:arms]) { translate([0,0,0]) rotate([i*(360/arms),0,0]) cube([arm_width,arm_length,arm_width]); }
glb/cad_4973105909f8.glb
Create a 3D model of a 7.62x39mm ammunition round. Start with a base cylinder 11.27mm in diameter and 1.36mm high. On top of this, add a cylinder 9.54mm in diameter and 1.12mm high. Above that, add a tapered section 0.84mm high that transitions from a 9.54mm diameter to 11.12mm. Continuing upward, add a main sleeve cy...
$fn=100; bullet = 10.16; sleeve=10.7; primer_diameter = 6.2; extractor_height = 1.36; extractor_diameter = 11.27; extractor_groove_diameter = 9.54; extractor_groove_height = 1.12; extractor_groove_taper_height = .84; extractor_groove_taper_upper_diameter = 11.12; sleeve_height = 26.93; sleeve_upper_diameter = 10.12; s...
glb/cad_cae947026877.glb
Create a 3D model of a 9mm round of ammunition. Start by creating a base cylinder with a diameter of 9.7mm and a height of 1.1mm. On top of this base, add a second cylinder with a diameter of 8.6mm and a height of 1.5mm, positioned 1.1mm above the origin. Above that, create a conical transition section 0.4mm high that ...
$fn=100; bullet = 9; sleeve=bullet+.7; difference(){ union(){ cylinder(d=sleeve,h=1.1); translate([0,0,1.1])cylinder(d=bullet-.4,h=1.5); translate([0,0,2.6])cylinder(d1=bullet-.4,d2=sleeve,h=.4); translate([0,0,3])cylinder(d=sleeve,h=16); translate([0,0,19])scale([1,1,2])sp...
glb/cad_68d3860d8ce8.glb
Create a 3D model of a 7.62 x 54 R cartridge. Start with a base cylinder for the extractor rim that is 14.35mm in diameter and 1.71mm high. Directly on top of this, add a cylinder with a diameter of 9.54mm and a height of 0mm (acting as a transition point). From there, create a tapered section that transitions from a d...
$fn=100; bullet = 10.16; sleeve=10.7; primer_diameter = 6.26; extractor_height = 1.71; extractor_diameter = 14.35; extractor_groove_diameter = 9.54; extractor_groove_height = 0; extractor_groove_taper_height = 0; extractor_groove_taper_upper_diameter = 12.42; sleeve_height = 37.55; sleeve_upper_diameter = 11.6; sleeve...
glb/cad_e61ad3b55905.glb
Create a model of a .40 Smith and Wesson round. Start by creating a base cylinder with a diameter of 10.7mm and a height of 1.28mm. On top of this base, center a second cylinder with a diameter of 8.56mm and a height of 1.2mm. Above that, create a conical section that transitions from a diameter of 8.56mm at the bottom...
$fn=100; bullet = 10.16; sleeve=10.7; difference(){ union(){ cylinder(d=sleeve,h=1.28); translate([0,0,1.28])cylinder(d=8.56,h=1.2); translate([0,0,2.48])cylinder(d1=8.56,d2=sleeve,h=1.2); translate([0,0,3.68])cylinder(d=sleeve,h=17.82); translate([0,0,21.5])scale([1,1,1.5]...
glb/cad_da341cdef0b2.glb
Create a window screen clip consisting of a vertical hollow tube and a horizontal base. Start by creating a vertical cylinder with an outer radius of 3.81mm and a height of 14.55mm, using a 12-sided polygonal facet resolution. Bore a hole through the center of this cylinder with a radius of 2.55mm to create a tube. Att...
r1=2.55; w=0.42; $fn=12; r2=r1+3*w; echo(r2); difference(){ union(){ cylinder(r=r2,h=10.8+3.75); translate([15,0,0])cylinder(r=r2,h=3.75); translate([0,-r2,0])cube(size=[15,2*r2,3.75]); } translate([0,0,-1])cylinder(r=r1,h=20); }
glb/cad_43e2deb6ee52.glb
Create an 8-bit skull-shaped box and lid by extruding a specific pixelated polygon. The base polygon is defined by the coordinates: [-5, -7], [5, -7], [5, -5], [7, -5], [7, 3], [5, 3], [5, 7], [3, 7], [3, 5], [1, 5], [1, 7], [-1, 7], [-1, 5], [-3, 5], [-3, 7], [-5, 7], [-5, 3], [-7, 3], [-7, -5], [-5, -5]. First, crea...
scale(4)skullBox(); module skullBox(){ difference(){ union(){ skull(0,4.4); skull(0.48,5); } translate([0,0,0.6]) skull(0.9,4.41); } translate([11,11,0]) rotate([0,0,180]) difference(){ skull(0,1.2); translate([3,-2,0]) cube([4,2,3], center=true); translate([-3,-2,0]) cub...
glb/cad_8d834a8bd02f.glb
Create a Customizable Cable Guide by constructing a hollowed-out semi-cylindrical tray. Start with a main body that is 50mm long with an outer radius of 11.4mm and a wall thickness of 2.4mm. The cross-section of the guide should be a curved channel, open on one side to allow cables to be inserted. To form the interior...
trayWid = 18; thickness = 2.4; len = 50; t2 = sqrt(2*thickness*thickness)/2; translate([0,0,len/2]) rotate([90,0,0]) difference() { rotate([90,0,0]) tray(); rotate([0,0,22.5]) { cylinder(r=2.25, h=50, center=true, $fn=8); translate([0,0,-45]) cylinder(r=6, h=50, center=false, $fn=8); translate([0,0,trayWid/2])...
glb/cad_0469e437cb86.glb
Create a shim to prevent a J-head from rocking by constructing a thick, hollowed-out cylinder. Start with a main outer cylinder that has a diameter of 22mm and a height of 7mm. From the center of this volume, remove a smaller concentric cylinder with a diameter of 12mm and a height of 4.1mm. Additionally, remove a midd...
difference() { translate([0,0,7]) { cylinder(d=22,h=7,center=true); } translate([0,0,3]) { cylinder(d=12,h=4.1,center=true); } translate([0,0,8]) { cylinder(d=16,h=6,center=true); } translate([6,0,0]) rotate(a=90,v=[0,0,1]) cube([12,12,12]); translate([8,0,5]) rotate(a=90...
glb/cad_d0946c7fd4a4.glb
Create a Tripod Quick Release mechanism consisting of a main body and a detachable knob. For the body, create a rounded cube with dimensions 50mm x 50mm x 17mm. Centered on the top face, carve out a rectangular headspace 43.5mm wide, 87mm deep, and 9mm high. Within this headspace, create a tapered internal cavity tha...
BASE=43.5; TOP=35.5; HEIGHT=9; $fn = 100; module quick_release_body(base=BASE, top=TOP, height=HEIGHT) { width = base + 6.5; depth = base + 6.5; body_height = height + 8; knob_offset = base - 8.5; color("orange") difference() { union() { translate([width/-2, depth/-2, 0]) rounded_cube(size=[width,...
glb/cad_cabb0fe91443.glb
Create two identical borosilicate plate clamps. For each clamp, start with a solid rectangular block measuring 26.5mm in width, 25mm in depth, and 12.25mm in height. From this main volume, remove a rectangular section measuring 28.5mm by 20mm by 2mm, positioned 13mm from the front and 11mm from the base. Remove a secon...
$fn=32; translate([25,0,26.5]) rotate([0,90,90]){ right(); translate([0,-10,0]) mirror([0,1,0]) right(); } module right(){ difference(){ cube([26.5, 25, 12.25]); translate([-1, 13, 11]) cube([28.5, 20, 2]); translate([-1, -3, 3]) cube([26.5, 25, 4]); translate([-6, -10, -9]) difference() { cube([26....
glb/cad_5c74d7dd335e.glb
Create two battery terminal pole shoes. Each pole shoe is based on a truncated cone with a height of 19.5mm and a wall thickness of 3mm. For the first pole shoe, the cone tapers from a top diameter of 17.5mm to a bottom diameter of 19.5mm. For the second pole shoe, the cone tapers from a top diameter of 16.7mm to a bo...
module poleshoe(d1=16.7,d2=18.2){ h = 17.5; w = 3; wz = 2; gap = 1.2; f = 10; m3r = 3/2; m3n = 5.5/cos(30)/2; wire = 3/2; difference(){ union(){ cylinder(r1=d1/2+w,r2=d2/2+w,h=h+wz); translate([-d1/2-2*w-1,-w-gap-1,0])cube([d1+3*w+f+1,2*w+2*gap+1.3,h+wz]); ...
glb/cad_bd23395e9991.glb
Create a Pen Box Compartment by constructing a hollow cube. Start with a solid outer cube measuring 48.5mm on all sides and 50mm in height. To create the interior cavity, remove a smaller centered cube from the inside that measures 47mm by 47mm with a height of 49mm. Position this inner cutout so that it is shifted 0.5...
difference() { cube( size=[48.5,48.5,50], center=true); translate( v=[0,0,0.5] ) { cube( size=[47,47, 49], center=true); } }
glb/cad_8f33aec572f3.glb
Create a ukulele bridge with a base measuring 32mm wide and 80mm long. The main body has a tiered thickness: the central section is 6.3mm thick, while the outer edges taper down to 5.3mm. On the top surface, carve a central longitudinal slot that is 7mm wide and 20mm long. Along the center line, create four circular ...
difference(){ hull(){ translate([-12.5,-40,0])cube([32,80,5.3]); translate([-8.5,-37,5.3])cube([22,74,1]); } hull(){ translate([-9.5+6.7,-38+8.6,1])cylinder(r1=1.5,r2=1.5,h=20,center=false, $fn=50); translate([-9.5+6,38-8.9,1])cylinder(r1=1.5,r2=1.5,h=20,center=false, $fn=50); } translate([-9.5+6,38-8.9,0])cylinder(...
glb/cad_92354809de54.glb
Create a ukulele bridge with a base measuring 32mm wide by 80mm long and 5.3mm thick. The base is a rectangular slab with a tapered top section that is 22mm wide and 74mm long, rising an additional 1mm in height. On the top surface, create two parallel longitudinal slots. Each slot is 20mm long and 3mm wide, centered...
difference(){ hull(){ translate([-12.5,-40,0])cube([32,80,5.3]); translate([-8.5,-37,5.3])cube([22,74,1]); } hull(){ translate([-9.5+6.7,-38+8.6,1])cylinder(r1=1.5,r2=1.5,h=20,center=false, $fn=50); translate([-9.5+6,38-8.9,1])cylinder(r1=1.5,r2=1.5,h=20,center=false, $fn=50); } translate([-9.5+6,38-8.9,0])cylinder(...
glb/cad_612b4c20c3b2.glb
Create a ukulele bridge as a rectangular block with a total width of 19mm, a length of 76mm, and a height of 5.3mm. The top surface should be slightly recessed by 1mm across most of its area, except for the outer edges. On the top face, center a long, rounded slot that is 3.5mm wide and 30.8mm long, with semi-circula...
difference(){ hull(){ translate([-9.5,-38,0])cube([19,76,5.3]); translate([-8.5,-37,5.3])cube([17,74,1]); } hull(){ translate([-9.5+6.7,-38+8.6,3.3])cylinder(r1=1.625,r2=1.625,h=20,center=false, $fn=50); translate([-9.5+6,38-8.9,3.3])cylinder(r1=1.625,r2=1.625,h=20,center=false, $fn=50); } translate([9.5-7.2,-38+7.2...
glb/cad_a1d9553537f0.glb
Create a thin circular encoder disk with a total thickness of 0.5mm and an outer radius of 15mm. At the center, include a cylindrical mounting boss with a radius of 3mm and a total thickness of 2mm, through which a central mounting hole with a radius of 0.75mm is drilled. The disk features a pattern of 64 radial slots...
NUM_SECTIONS = 64; R_OUTER = 15; R_INNER = 6; R_INNER2 = 9.5; R_HOLE = 0.75; R_MOUNT = 3; R_CROSS = 1.9; BORDER = 2; THICKNESS = 0.5; THICKNESS_MOUNT = 2; INT_MODIFIER = -0.2; $fs = 0.01; module encoder_contour(n,rin,rout,mod){ for (i = [1:2:n]) { assign (a1 = i*360/n, a2 = (i+1+mod)*360/n ) { ...
glb/cad_d868d0f5764c.glb
Create a sanding pad designed for 1/3 sheet sandpaper. Start with a rectangular base that is 93mm wide and 15mm thick. The length of the base is approximately 185mm. On the top surface of the base, create two angled slots at each end to hold the sandpaper; these slots should be 1.2mm thick, 10mm deep, and angled at 30 ...
sandpaperWidth = 93; sandpaperLength = 230; baseThickness = 15; holdSlotAngle = 30; holdSlotDepth = min(10,baseThickness/2); holdSlotThickness = 1.2; baseLength = sandpaperLength - baseThickness*3.1415 - (holdSlotDepth*tan(holdSlotAngle) + holdSlotDepth/cos(holdSlotAngle) + 2)*2; gripHeight = 30; gripWidth = 60; gr...
glb/cad_28b56298c2a2.glb
Create a through hole tactile switch model. Start with a rectangular base measuring 6.2mm by 6.2mm with a height of 3.3mm. Centered on top of this base, place a cylindrical button with a diameter of 3.5mm and a height of 4.3mm. To support the button, add a wider cylindrical standoff centered on the base; this standoff ...
switchBase = [6.2, 6.2, 3.3]; switchButtonDia = 3.5; switchButtonZ = 4.3; buttonStandoffZ = 0.5; buttonStandoffX = 4.6; center = false; locate = false; module tactileSwitch(locate = false, center = false) { $fn = 36; trans = center == false ? [0, 0, switchBase[2]/2] : [0, 0, 0]; translate(trans) union() { ...
glb/cad_85441581b740.glb
Create a micro switch consisting of a central rectangular body, three terminals, an actuator arm, and a roller. Start with a rectangular body measuring 20mm in length, 6.1mm in width, and 10mm in height. Center the body and remove two cylindrical holes, each 2.5mm in diameter, passing through the width of the body. P...
$fn=36; bX=20; bY=6.1; bZ=10; hD=2.5; holeFromBottom=1.8; holeFromEdge=4.3; tX=.6; tY=3.3; tZ=4; termFromEdge=1.5; aX=18.5; aY=4; aZ=.3; armFromEdge=3; rollerOverArm=1; armOverBody=4; addRoller=1; rollerD=4; hR=hD/2; echo(hR); hZ=bZ/2-hR-holeFromBottom; hX=bX/2-hR-holeFromEdge; rollerR=rollerD/2; armA...
glb/cad_a529125706d5.glb
Create a bearing bushing by constructing a composite cylindrical body with a central hole. Start with a main cylinder that has a radius of 10mm and a height of 6mm, centered on the origin. Add a wider, shorter flange at the center by creating a cylinder with a radius of 12mm and a height of 2mm. Finally, remove a centr...
module bushing(){ difference(){ union(){translate ([0,0,2])cylinder(h=6, r=10, center=true); cylinder(h=2, r=12, center=true); } translate ([0,0,1])cylinder(h=10, r=9, center=true); } } bushing();
glb/cad_5e424fb44f7f.glb
Create a flat teardrop shape by intersecting a cylinder and a cube. Start with a cylinder that has a radius of 5mm and a total length of 10mm. Position a cube with side lengths of 10mm by 10mm and a length of 10mm so that it is centered on the cylinder's axis. Rotate this cube 90 degrees along its longitudinal axis to ...
use <MCAD/teardrop.scad>; module flat_teardrop(radius, length, angle) { intersection() { rotate([0, angle, 0]) { cube(size=[radius * 2, radius * 2, length], center=true); } teardrop(radius, length, angle); } } flat_teardrop_example(); module flat_teardrop_example($fn=50) { ...
glb/cad_09e8e05c077e.glb
Create a set of metric fasteners based on the M3 standard. First, construct a socket head bolt. Create a cylindrical shaft with a diameter of 3mm and a length of 10mm. At one end, add a socket head consisting of a cylinder with a diameter of 5.5mm and a height of 3mm. Inside this head, create a hexagonal hole with a ...
boltDia = 3; headHexThick = 2; boltNut = 5.5; boltNutMax = 6.4; nutThick = 2.4; washerDia = 7; washerThick = 0.5; socketHeadThick = 3; socketDia = 5.5; socketSize = 2.5; m2 = [ [boltDia, 2], [headHexThick, 2], [boltNut, 4], [boltNutMax, 4.6], [nutThick, 1.2], [washerDia, 5.5], [washerThick, 0.3], [soc...
glb/cad_7a617012caa2.glb
Create a rectangular bale of straw for a 1:50 scale model. The overall dimensions of the bale are 17mm in length, 14mm in width, and 7mm in height. The shape is constructed by stacking several rounded layers. Specifically, create a series of horizontal slabs, each with a thickness of 1mm, stacked vertically to reach th...
rotate([90,0,0]) eckig(); module eckig() { b=14; l=17; h=7; r=1; $fn=15; f=1.5; for(s=[0:r*f:b-r*f]) { hull() { translate([0+r,0+r+s,0+r]) sphere(r=r); translate([l-r,0+r+s,0+r]) sphere(r=r); translate([l-r,0+r+s,h-r]) sphere(r=r); translate([0+r,0+r+s,h-r]) sphere(r=r); } } } module rund() { d=20; h=12.5; r=1; ...
glb/cad_ef3b78075143.glb
Create a Christmas Stocking Hanger by constructing a composite bracket. Start with a central rectangular block 20mm wide, 2mm thick, and 10mm high, centered at the origin. Attach a vertical rectangular plate to the back, measuring 2mm wide, 10mm deep, and 10mm high, positioned at x = -10mm and y = 4mm. On the opposite ...
x=[1,0,0]; y=[0,1,0]; z=[0,0,1]; $fa=5; $fn=30; module bracket(){ difference(){ union(){ cube([20,2,10],center=true); translate([10,-9,0]) cube([1,20,10],center=true); translate([-10,4,0])cube([2,10,10],center=true); translate([-7,7,-3])rotate(y*90)cylinder(r=2,h=5,center=true); ...
glb/cad_4542feadb727.glb
Create a Parametized Endstop Mount consisting of a main body and an offset shelf. Start with a base rectangular block 20mm wide, 25mm tall, and 3mm thick, with all four corners rounded to a 2mm radius. Attached to the side of this base, add a second rectangular shelf that is 25mm wide, 10mm tall, and 3mm thick, also wi...
holeCreationOffset=0.05; endstopThickness=3; endstopRecessDepth=1; endstopRecessHeight=10; endstopRecessWidth=15.5; endstopHeight=25; endstopNarrowWidth=20; enstopShelfWidth=25; endstopShelfHeight=10; endstopShelfOffset=enstopShelfWidth-endstopNarrowWidth; endstopBoltHoleWidth=19.5; endstopBoltHoleDiameter=2....
glb/cad_4be258c102bf.glb
Create a 3D model of a 28BYJ-48 stepper motor. Start with a main cylindrical body that has a radius of 14mm and a height of 19mm. On the top face of this cylinder, center a smaller circular base with a radius of 4.5mm and a height of 1.5mm. Protruding from the center of this base, add a motor shaft that is 9mm tall wit...
module stepper28BYJ() { difference() { union() { color("SILVER") cylinder(r=28/2, h=19, $fn=60); color("SILVER") translate([0,8,19]) cylinder(r=9/2, h=1.5, $fn=40); color("SILVER") translate([0,8,20.5]) intersection() { cylinder(r=5/2, h=9, $fn=40); cube([3,6,9],center=true); } color("SILVER")...
glb/cad_a93df78425b1.glb
Create a set of parametric breakaway header pins arranged in a grid of 3 columns and 2 rows. The pins are spaced with a pitch of 2.54mm between centers. Each individual pin unit consists of a central square nylon block and a long thin metal pin. The nylon block is a cube measuring 2.36mm x 2.36mm x 3.3mm. Passing thro...
columns = 3; rows = 2; pitch = 2.54; module singlePin(center = false) { pinDimensions = [.67, .67, 14.22]; nylonDimensions = [2.36, 2.36, 3.3]; pinAboveNylon = 7.49; trans = center == false ? [0, 0, nylonDimensions[2]/2] : [0, 0, 0]; translate(trans) union() { translate([0, 0, (-pinDimensions[2]/2+...
glb/cad_8031047cf228.glb
Create a Screwless Heart Gears assembly with a total assembled width of 100mm. The model consists of a central block and eight heart-shaped gear segments that rotate around it. First, construct the central block as a cube with a side length of approximately 60mm. This block must feature cylindrical holes with a diamet...
use <../MCAD/involute_gears.scad> include <../pins.scad> pin1();translate([12,0,0])pin2(); hs=100; hz=-10; rf1=0.6*hs; cp=0.2; ph=8; ph1=rf1*0.3; ph2=rf1*0.2; pd=7; b=0.5; n1=18; n2=9; r1=0.7493; r2=0.3746; dc=rf1/sqrt(1-pow(r1,2)); theta=asin(1/sqrt(3)); pitch=360*r1*dc/n1; rf2=sqrt(pow(dc,2)-pow(r2*dc,2)); L1=ph...
glb/cad_066056c28613.glb
Create a personalized keychain with a base plate measuring 65mm in length, 20mm in width, and 5mm in thickness. The base should have rounded corners and a rounded hole on the left side. The hole is centered along the width, has a diameter of 20mm, and features a rounded interior wall. Centered on the top surface of th...
name = "2017"; font = 1; google_font = "Arial Unicode MS"; style = 4; width = 20; length = 65; thickness = 5; roundness = 2; font_list = [undef, "Helvetica", "Times", "Arial Unicode MS", "Courier", "Symbola", "Apple Color Emoji", ...
glb/cad_085b01583174.glb
Create a Customizable Flat Duct Tape Reel consisting of two symmetrical halves that fit together around a central core. Each half is based on a rounded rectangular profile. Start by creating a base shape that is 75mm long and 15mm thick. The outer ends of the reel are semi-circles with a diameter of 15mm, connected b...
DUCT_TAPE_WIDTH = 50; REEL_LENGTH = 75; REEL_THICKNESS = 15; END_THICKNESS = 3; PART = "both"; CONNECTOR_GAP_ADJUSTMENT = 0.25; use <utils/build_plate.scad> build_plate_selector = 0; build_plate_manual_x = 100; build_plate_manual_y = 100; build_plate(build_plate_selector,build_plate_manual_x,build_plate_manua...
glb/cad_dd9aba1dc6f9.glb
Create a Prusa steel cable clamp by starting with a solid rectangular block measuring 14mm in length, 9mm in width, and 7mm in height. Carve out a central rectangular channel running through the length of the block, starting 6mm from the front edge; this channel must be 3.2mm wide, 9mm long, and 9mm high to create a ga...
difference() { difference() { cube([14,9,7]); translate([6,2.9,-1]) cube([9,3.2,9]); } translate([2,-1,2]) cube([2,11,3]); }
glb/cad_3adbbf122c98.glb
Create an HC-SR04 ultrasonic sensor model starting with a rectangular base plate measuring 45mm by 20mm with a thickness of 1.2mm. Place two identical cylindrical sensor transducers on the top surface. Each transducer consists of an outer cylinder with a radius of 8mm and a height of 13.8mm, containing a concentric i...
difference() { union() { color("DARKBLUE")cube([45,20,1.2]); translate([16/2+1,18/2+1,1.3]) ultrasonicSensor(); translate([16/2+27+1,18/2+1,1.3]) ultrasonicSensor(); color("SILVER")translate([45/2-3.25,20-4,1.3]) xtal(); translate([(45/2)-((2.45*4)/2)+0.6,2,-0.2]) rotate([180,0,0]) headerPin(4); } union(...
glb/cad_4639515b9823.glb
Create a Coins, Pendants, & Ornaments model with a total height of 3mm. First, construct a gimbal assembly consisting of three concentric rings. The outermost ring has an outer radius of 19.35mm and an inner radius of 17.35mm. The middle ring has an outer radius of 15.95mm and an inner radius of 13.95mm. The innermos...
height = 3; includeGimbal = "yes"; innerIcon = "Tree"; innerIconXyScale = 1.15; innerIconOffsetY = -13; outerIcon = "Tree"; outerIconXyScale = 0.4; outerIconCount = 8; $fn=100; ornament(height = height, includeGimbal = includeGimbal, innerIcon = innerIcon, innerIconXyScale = innerIconXySc...
glb/cad_3976dc1f56d3.glb
Create a ball bearing rotator base for a 28byj-48 stepper motor. Start by creating a main outer ring with an outer diameter of 94mm and a height of 8.5mm. Hollow out the center of this ring by removing a cylinder with a diameter of 84mm, leaving a wall thickness of 5mm. Within the base, create a central support struct...
module StepMotor28BYJ() { difference(){ union(){ color("gray") cylinder(h = 19, r = 14, center = true, $fn = 32); color("gray") translate([8,0,-1.5]) cylinder(h = 19, r = 4.5, center = true, $fn = 32); color("gold") translate([8,0,-10]) cylinder(h = 19, r = 2.55, center = true, $fn = 32); color("S...
glb/cad_31275495e429.glb
Create a Modular Square Tubing Tower consisting of a square grid of vertical legs connected by horizontal bridges. First, define a joint profile: a square with a side length of 13mm (10mm internal width plus two 1.5mm walls) and rounded corners with a 3mm radius. Create a joint socket by subtracting a 10.5mm square (...
CornerRadius = 3.0; JointSideLength = 10.0; JointWallThickness = 1.5; JointDepth = 6.0; JointTolerance = 0.5; ScaffoldBottomLength = 110.0; ScaffoldTopLength = 90.0; ScaffoldHeight = 40.0; ScaffoldBraceThickness = 3.0; ScaffoldCenterLeg = true; ScaffoldSideLeg = true; cr = CornerRadius; jsl = JointSideLength; jwt = ...
glb/cad_2ac6bc3e1e6b.glb
Create a pen sleeve for an Esterbrook fountain pen consisting of three stacked cylindrical sections with a continuous central hole. Start with a base cylinder 6mm high with a radius of 7mm. Directly on top of this, place a second cylinder 7.8mm high with a radius of 8.5mm. Above that, add a third tapered section 12.5mm...
small=0.01; difference() { union() { cylinder(h = 6, r1 = 7, r2 = 7); translate([0, 0, 6-small]) cylinder(h = 7.8+small, r = 8.5); translate([0, 0, 13.8-small]) cylinder(h = 12.5, r1 = 9.7, r2 = 9.1); } translate([0,0,-small]) cylinder(27.3, r = 5...
glb/cad_ad41275d8c02.glb
Create a planetary gear pulley with an outer diameter of 45mm and a total thickness of 10mm. The main body is a cylinder with a central hole in the shape of a 6.7mm wide hexagon. The interior of the cylinder features a herringbone gear system. Create a central sun gear with 9 teeth and five planetary gears, each havi...
D=45; T=10; tol=0.22; number_of_planets=5; number_of_teeth_on_planets=7; approximate_number_of_teeth_on_sun=9; P=45; nTwist=1; w=6.7; Hf=2.5; DR=0.5*1; m=round(number_of_planets); np=round(number_of_teeth_on_planets); ns1=approximate_number_of_teeth_on_sun; k1=round(2/m*(ns1+np)); k= k1*m%2!=0 ? k1+1 : k1; ns=k...
glb/cad_bd1062984547.glb
Create a Clevis Pin by stacking four coaxial geometric sections along a vertical axis, using a 17-facet resolution for all circular profiles. Start with a base chamfer that is a cylinder 1mm high, tapering from a radius of 5.05mm to 5.95mm. Atop this, add a cylindrical head with a radius of 5.95mm and a height of 2.5mm...
height = 0.35; head_dia = 1.19; pin_len = 2.41; point_len = 0.110; shank_dia = 0.996; point_dia = 0.930; head_to_hole = 2.293; hole_dia = 0.182; chamfer = 0.1; $fn = 17; chamfer_height = chamfer * 10; head_offset = chamfer_height; head_height = height * 10 - chamfer_height; pin_height_offset = head_offset + head_heig...
glb/cad_8bfe8af1d0c6.glb
Create a clamp connector by starting with a solid rectangular block measuring 80mm in length, 27.1mm in width, and 12mm in height. Carve a longitudinal rectangular channel through the center of the block along its entire length; this channel should be 21.1mm wide and 8mm high, leaving a 4mm thick top shell and 3mm thic...
length=80; bar_height=8.; bar_width=21.1; holeoffset = 20; shelltop=4; shell=3; rotate([90,0,0]) { difference() { cube([length,(bar_width+(2*shell)),bar_height+(shell+shelltop)]); translate([0,shell,shelltop]) { cube([length,bar_width,bar_height]); } translate([holeoffset,(bar_width/2)+shell,0]) { cylinder(h=(bar...
glb/cad_7e46ae230fa3.glb
Create a DNA-like double helix model resting on a hexagonal base. Start by designing a 2D profile consisting of two circles with a radius of 2mm, positioned 10mm apart from each other (5mm from the center on each side), connected by a central rectangular bridge that is 20mm long and 1mm wide. Extrude this profile verti...
post_radius = 2; post_distance_apart = 10; center_bridge_length = 20; center_bridge_width = 1; helix_height = 72; helix_twists = 360; helix_slices = 250; helix_scale = 1; spacer_radius = 8.15; spacer_height = 4; spacer_start = 0; spacer_increment_distance = 6; spacer_increment_height = 100; base_platform_r...
glb/cad_aeef29d7452d.glb
Create a bearing retainer plate by starting with a central rectangular block measuring 29.1mm by 20mm with a thickness of 3mm. Center this block on the origin. At each of the four corners, add a cylindrical standoff with a radius of 3mm and a total height of 5.6mm, centered vertically on the plate. Drill four vertica...
x=14.55; y=10; b=5; thickness=3; standoff_height=2.8; $fs=0.5; difference(){ union(){ cube(size=[2*(x+b),2*(y+b),thickness],center=true); translate([x,y,-thickness/2])cylinder(r=3,h=standoff_height*2,center=true); translate([-x,y,-thickness/2])cylinder(r=3,h=standoff_height*2,center=true); translate([x,-y,...
glb/cad_1f8b1f7dab62.glb
Create a Trammel of Archimedes base consisting of a solid cube measuring 100mm x 100mm x 40mm. Carve two identical intersecting rectangular channels through the center of the top face to create a cross-shaped track. Each channel must be 16mm wide and 12mm deep. Within each of these channels, center a narrower secondary...
$fn = 128; difference() { cube([100,100,40]); translate([-10,42,25]) { color("blue"){ cube([120,16,12]); translate([0,3,10]) { cube([120,10,8]); } } } translate([42,-10,25]) { color("red") { cube([16,120,12]); ...
glb/cad_b9b2f193c044.glb
Create a Trammel of Archimedes consisting of a main beam and a handle. Start by creating the beam as a rectangular slab 141.42mm long, 16mm wide, and 5mm thick. Modify the beam by rounding the ends to create a semi-circular profile on each side, effectively forming a shape that is the intersection of a 141.42mm cube an...
$fn = 128; difference() { union () { intersection() { cube([sqrt(pow(100,2) + pow(100,2)),16,5],center = true); scale([0.95,0.3,1]) { cylinder(h=10, d=sqrt(pow(100,2) + pow(100,2)),center = true); } } translate([-55,0,10]) { l...
glb/cad_7d3ef57ff6db.glb
Create a Trammel of Archimedes slider block. Start with a rectangular base measuring 13mm wide, 55mm long, and 11mm high. Centered on the top face of this base, add a second rectangular protrusion that is 8mm wide and 55mm long, extending the total height to 19mm. This creates a T-shaped cross-section where the top sec...
$fn = 128; blockLength = 55; blockWidth = 13; blockHeight = 11; pinDiameter = 5; difference() { union() { cube([blockWidth,blockLength,blockHeight]); translate([2.5,0,10]) { cube([8,blockLength,8]); } } translate([blockWidth / 2, blockLength / 2,0]) { blockPinH...
glb/cad_9adac4b8ca99.glb
Create a pin for a Trammel of Archimedes. The main body is a cylinder with a diameter of 4.5mm and a total height of 19mm. This cylinder is modified by removing material to create specific slots and holes. First, remove a central cylindrical section with a diameter of 5mm and a height of 4mm, positioned 5mm from the bo...
$fn = 128; pinDiameter = 4.5; difference() { color("green") { translate([0,0,8]) { cylinder(d= pinDiameter, h = 12 + 7); } translate([0,0,5]) { cylinder(d= 5, h = 4); } translate([0,0,26]) { cylinder(d= 5, h = 2); } } ...
glb/cad_61694a52e2f3.glb
Create a RecycleBot Chain Guard by constructing a thick, semi-cylindrical shell. Start with a large cylinder with an outer radius of 127.9mm and a height of 88.9mm. Hollow out the center by removing a smaller concentric cylinder with a radius of 124.9mm (leaving a wall thickness of 3mm) and another with a radius of 107...
r1=127.9; scale([.78,.78,.78]){ translate ([0,3,0]){ cube ([115.25,88.9,3]); difference() { translate ([115.25,0,r1]) rotate(a=[x_0,90,z_0]) { difference () { cylinder ( h=88.9, r=r1, $fn=100); translate ([0,0,-7]){ cylinder (h=93, r= (r1 - 3), $fn=100);} cylinder (h=93, r= (r1 - 20), $fn=100);}} t...
glb/cad_004ba013a5bf.glb
Create a RecycleBot Chain Guard by starting with a solid rectangular block measuring 95.25mm in width, 88.9mm in depth, and 3mm in height. From this base, remove a large cylindrical section to create a hollowed-out semi-circular shell. This shell is defined by an outer radius of 76.2mm and an inner wall thickness of 3m...
r1=76.2; translate ([0,3,0]){ cube ([95.25,88.9,3]); difference() { translate ([95.25,0,r1]) rotate(a=[x_0,90,z_0]) { difference () { cylinder ( h=88.9, r=r1, $fn=100); translate ([0,0,3]){ cylinder (h=93, r= (r1 - 3), $fn=100);} cylinder (h=93, r= (r1 - 20), $fn=100);}} translate ([-50,-1,r1]) c...
glb/cad_7a5803c7370a.glb
Create a railway bridge/slope element compatible with Duplo bricks. The model consists of a rectangular block with a hollowed-out center and a series of cylindrical studs on top. The main body is a rectangular prism with dimensions 31.75mm in width and 31.75mm in depth. The height is 19.25mm. Create a central rectangu...
numbers=[ [[0,0,0,0,0,0], [0,0,1,1,1,0], [0,1,0,0,0,1], [0,1,0,0,0,1], [0,1,0,0,0,1], [0,1,0,0,0,1], [0,1,0,0,0,1], [0,0,1,1,1,0]], [[0,0,0,0,0,0], [0,0,0,1,0,0], [0,0,1,1,0,0], [0,0,0,1,0,0], [0,0,0,1,0,0], [0,0,0,1,0,0], [0,0,0,1,0,0], [0,0,1,1,1,0]], [[0,0,0,0,0,0], [0,0,1,1,1,0],...
glb/cad_c9e88746d1e5.glb
Create a maze mouse wheel for a 28BYJ-48 stepper motor. Start with a main outer rim that is a cylinder 60mm in diameter and 4mm high. Add a central boss cylinder with a diameter of 12mm and a height of 7mm, centered on the rim. Cut a central shaft hole through the boss and rim starting 1mm from the bottom. This hole ...
difference() { union() { cylinder(r=60/2,h=4,$fn=100); cylinder(r=12/2,h=7,$fn=100); } union() { translate([0,0,1]) intersection() { cylinder(r=5/2,h=8,$fn=40); translate([0,0,4]) cube([3,8,10], center=true); } translate([0,0,2]) rotate_extrude(convexity=10, $fn=100) translate([30,0,10...
glb/cad_9405e70b336c.glb
Create a book binding clip by constructing a U-shaped channel. Start with a central rectangular base that is 19.4mm wide, 3mm thick, and 10mm high. Attach two identical vertical walls to the left and right ends of this base. Each wall must be 3mm wide, 15mm high, and 10mm deep. Position the walls so they are flush with...
thickness = 19.4; cube(size=[thickness,3,10]); translate([-3,0,0]) cube(size=[3,15,10]); translate([thickness,0,0]) cube(size=[3,15,10]);
glb/cad_ebc0c059cb72.glb
Create a Dishwasher Baseplate Holder starting with a rectangular base plate measuring 40mm by 30mm with a thickness of 1.5mm, centered on the origin. Centered atop this base, add a rectangular block measuring 8mm wide, 30mm deep, and 10mm high. From this combined structure, remove two vertical hexagonal holes with a ra...
t = 1.5; fn = 6; difference() { union() { cube([40,30,t], center=true); translate([0,0,5]) cube([8,30,10], center=true); } translate([12.5,10,0]) cylinder(h=30,r=1.6,center=true,$fn=fn); translate([12.5,-10,0]) cylinder(h=30,r=1.6,center=true,$fn=fn); translate([0,0,5+t]) cube([8-t*2,30-t*2,10], center=tr...
glb/cad_691519c8a98c.glb
Create a mounting board for an LM2596 step-down regulator. Start with a rectangular base measuring 68mm by 37mm with a thickness of 5mm. On the top surface, add four cylindrical standoffs at the corners, each with a diameter of 5mm and a height of 2mm above the base. Center a thin rectangular ridge measuring 1.5mm wide...
BaseThickness=5; StandoffHeight=2; StandoffDiameter=5; Border=4; HoleLength=60; HoleWidth=29; SlotHeight=3; SlotWidth=6; ScrewShaft=2.5; difference() { union() { cube([HoleLength+(2*Border),HoleWidth+(2*Border),BaseThickness]); translate([Border,Border,0]) { cylinder(r=StandoffDiameter/2,h=BaseThickness+St...
glb/cad_a1fd4b96337b.glb
Create a round electrical box cover by starting with a flat cylinder 120mm in diameter and 2mm thick. Create a central recessed cavity within this disc by removing a smaller concentric cylinder that is 114mm in diameter and 4mm deep, leaving a 3mm wide rim around the outer edge. Finally, pierce two circular holes compl...
rotate([0, 180, 0]) { difference() { difference() { $fn=100; minkowski() { cylinder(r=60, h=2, center=true); translate([0, 0, 1]) cylinder(r1=6, r2=1, h=2, center=true); } $fn=100; color("green") minkowski() { cylinder(r=60, h=4, center=true); translate([0, 0, -2]) cylinder(r1=6, r2=1, h=2, center=true); ...
glb/cad_715808256198.glb
Create a training wheel bracket by starting with a solid rectangular block measuring 27.25mm wide, 43mm long, and 7.2mm deep. Hollow out the center of this block to create a shell with a wall thickness of 1.7mm on all sides, except for the bottom face which remains solid. Within this hollowed interior, remove a specifi...
innerOffset = 7.8; radius = 13; depth = 7.2; wallThickness = 1.7; width = 27.25; length = 43; module cutoutpiece(adjust) { union(){ translate([0,innerOffset,0]) cube([radius, (radius*2)-adjust,depth]); translate([radius,radius + innerOffset-(adjust/2),0]) cylinder(depth,r=(radius - (adjust/2))); ...
glb/cad_c6c72f749bda.glb