Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a wall box for a battery-operated sensor consisting of a wall plate and a cover. First, construct the wall plate. Create a base rectangular platform measuring 77mm by 57mm by 1mm. On top of this, add a smaller rectangular block measuring 72.5mm by 52.5mm by 2mm, positioned at (2.25, 2.25, 0). Remove two vertica...
$fn = 50; cover(); module wall_plate() { difference() { union() { translate([0, 0, -1]) cube([77, 57, 1]); translate([2.25, 2.25, 0]) cube([72.5, 52.5, 2]); } translate([15, 28.5, -2]) cylinder(d=4, h=5); translate([62, 28.5, -2]) cylinder(d=4, h=5); ...
glb/cad_65c957d92af7.glb
Create a wall box for a battery-operated sensor consisting of a detachable cover and a wall-mounting plate. First, construct the wall plate. Create a base plate 73.5mm x 53mm x 2mm with rounded corners. Add a central upright support 16mm wide and 10mm high, topped with two 45-degree angled snap latches 2mm thick. Dril...
$fn = 36; fudge = 0.01; render_parts = "all"; vent_top_h = 20; inner_vent_lip = 5; vent_edge_start = 1; vent_holes_x = 14; vent_holes_y = 10; main_box_x = 77; main_box_y = 57; main_box_h = 35; box_wall_t = 2; box_top_t = 4; vented_top_x = main_box_x-(box_wall_t*2); vented_top_y = main_box_y-(box_wall_t*2); radi...
glb/cad_a9db1e3e919b.glb
Create a midway breaker for a vehicle tailgate hinge consisting of three distinct parts. First, create a primary stopper piece. Start with a cylinder of radius 28.5mm and height 30mm. Remove a large section to leave a blocky, asymmetric profile that includes a rectangular section of 17mm by 40mm by 30mm and a smaller...
$fn=100+0; Mode = "Part1"; MidAngle = 7; BoltRadius = 2; BoltCapRadius = 3.5; NutMaxRadius = 3.95; if (Mode == "Part1") { part1(); } else { if (Mode == "Part2") { part2(); } else { part3(); } } module part2() { difference(){ translate([-8,-20,0])cube([15+7,40,2...
glb/cad_c49d03fca146.glb
Create a motion sensor angle support by constructing a main body based on a 16mm diameter circle. Start with a cylinder that has a radius of 16.8mm, a height of 4mm, and a flat base. On top of this base, build a vertical wall that is 20mm high. This wall should follow the curvature of the 16mm radius on one side but re...
$fn=200; DObj=32/2; HObj=4; HRebord=5; Wall=0.8; difference() { difference() { difference() { union() { minkowski() { cube([DObj-2,DObj-2,20]); translate([2,2,0]) cylinder(r=2,h=...
glb/cad_d6bf89d11521.glb
Create a Simply Construction Set node designed to connect straws. Start by forming a central cross-shaped body using two intersecting rectangular prisms. The first prism should measure 25mm in length, 7.5mm in width, and 7.5mm in height. The second prism should be identical in dimensions but rotated 90 degrees on the Z...
usingStraws=1; strawRadio=2.5; width=5; thickness=2; module simplyNode() { if(usingStraws==0) { if(width>=thickness) { difference() { union() { cube (size=[width+thickness*1.5,width*4,thickness*3],center=true); cube(size=[width*4,width+thickness*1.5,thickness*3],center=true); } ...
glb/cad_d3c05933c20b.glb
Create a Simply Construction Set joint by starting with a rectangular prism that measures 7.5mm in width, 25mm in length, and 7.5mm in height, centered on the origin. Remove a cylindrical hole from the center of this prism that runs along its entire 25mm length. The hole must have a radius of 2.5mm and be oriented such...
usingStraws=1; strawRadio=2.5; width=8; thickness=2; module simplyJoint() { if(usingStraws==0) { if(width>=thickness) { difference() { cube (size=[width+thickness,3*width,thickness*3],center=true); cube (size = [width,width*10,thickness],center=true); } } } else { difference() { uni...
glb/cad_10400a8b7443.glb
Create a Raspberry Pi Zero back cover consisting of a thin rectangular base plate with four cylindrical mounting posts. The base plate should be 65mm long and 30mm wide with a thickness of 1.5mm and have rounded corners with a 3mm radius. Position four cylindrical mounts with a radius of 3mm and a total height of 5.5m...
zero_length = 65.0; zero_width = 30.0; zero_hole_dist = 3.5; zero_corner_radius = 3.0; plate_thickness = 1.5; add_length_left = 0.0; add_length_right = 0.0; add_width_above = 0.0; add_width_below = 0.0; corner_radius = 3.0; mount_height = 4.0; mount_radius = 3.0; screw_hole_radius = 1.5; screw_hole_drill_dep...
glb/cad_24ef710498ed.glb
Create a Raspberry Pi Zero back cover consisting of a thin rectangular base plate with four cylindrical mounting posts. The base plate should be 65mm long and 30mm wide, with a thickness of 1.5mm and rounded corners with a 3mm radius. Position four cylindrical mounts with a radius of 3mm and a total height of 5.5mm a...
zero_length = 65.0; zero_width = 30.0; zero_hole_dist = 3.5; zero_corner_radius = 3.0; plate_thickness = 1.5; add_length_left = 0.0; add_length_right = 0.0; add_width_above = 0.0; add_width_below = 0.0; corner_radius = zero_corner_radius; mount_height = 4.0; mount_radius = 3.0; screw_hole_radius = 1.5; screw_hole_d...
glb/cad_e8f6bf7c8e3c.glb
Create a 3D model of a deltoid-shaped mobile. Start by generating a deltoid plane curve, which is a hypocycloid with three cusps. Extend this 2D shape along the Z-axis to give it thickness. Scale the overall geometry by a factor of 3 in the X and Y dimensions while maintaining the Z-axis scale. To finish the piece, a...
mark = 6; if (mark==1) difference() { scale ([3,3,1]) epi_hypo_cycloid(1,8,4,15,100,0.1,1); translate([22,0,0]) cylinder(r=1.5,h=20,center=true,$fn=24); } else if (mark==2) difference() { scale ([3,3,1]) epi_hypo_cycloid(1,9,3,15,100,0.1,1); translate([24,0,0]) cylinder(r=1.5,h=20,center=true,$fn=24); } else ...
glb/cad_e6191c8b89a8.glb
Create a LEGO axle joystick knob by constructing a hollowed-out vertical tower. Start with the exterior: create a base cylinder 3.5mm high with a radius of 2.65mm, followed by a tapered section 4.3mm high that expands from a radius of 2.65mm to 3.15mm, and top it with a final cylinder 9.5mm high with a constant radius ...
include <MCAD/regular_shapes.scad>; include <MCAD/lego_compatibility.scad>; knob_height = 9.5; knob_diameter = 6.3; knob_radius = max(6.3, knob_diameter) / 2; knob_z = max(3.167, knob_height); module exterior() { union() { cylinder(h=3.5, r=2.65, $fs=0.5); translate([0, 0, 3.5]) cylinder(h=4.3, r1=2.65, r2=kno...
glb/cad_f339f697759f.glb
Create a front bitting key consisting of a handle and a shaft. Start with a handle formed by a cube 10mm wide, 12.5mm deep, and 3mm high, with rounded corners created by a 5mm radius. Bore a cylindrical hole through the center of this handle with a radius of 2.4mm and a height of 4mm. Extend a shaft from the handle c...
key([7,7,7,7,7,7,7]); module key(bits){ union(){ cube([bits[0],2,2]); translate([0,-2,0])cube([bits[1],2,5.3]); translate([0,-4.45,0])cube([bits[2],2.5,2]); difference(){ translate([0,-9.45,0])cube([bits[3],5,3.3]); translate([bits[3]-1,-7.3,0])cube([1,0.8,3.3]); } translate([0,-12.05,0])cube([bits[...
glb/cad_2f67d5e5cb2d.glb
Create a PrintinZ support for a delta printer bed. Start with a central rectangular base measuring 50mm in length, 20mm in width, and 15mm in height. At the top of this base, remove a cylindrical section with a radius of 110mm and a height of 10mm, centered 15mm away from the base's center along the width axis and offs...
hotbed_diam = 220; hotbed_thickness = 3.1; s_thickness = 15; s_lenght = 50; s_widht = 20; zplate_diam = 220; zplate_thickness = 4.24; back_support = 30; support_widht = 10; support_length = 15; $fn = 80; union(){ difference(){ union(){ difference(){ translate([-s_lenght/2,0,0]) cube([s_lenght,s_widht,s_thickness])...
glb/cad_f1ef330e3fd9.glb
Create a PrintinZ Support for a Delta printer by starting with a solid cylinder that has a radius of 10mm and a height of 6mm. From this base cylinder, remove a smaller cylindrical hole with a radius of 2.1mm that passes vertically through the top surface, positioned with its center at coordinates (x= -9, y= -9) relati...
$fn=100; radius = 10; height = 6; difference(){ cylinder(r=radius,h=height); for (a =[0:1:90]){ rotate(a) translate([0,0,0]) cube([radius,radius,a/20]); } translate([((-radius/2)+1),((-radius/2)+1),0]) cylinder(r=2.1,h=9); translate([-radius,0,0]) cube([radius,radius,radius]); }
glb/cad_6040f0f479cc.glb
Create a BevelBox container consisting of a main body and a sliding lid. The overall shape is a lozenge, formed by the hull of two cylinders. For the main body, create a base lozenge with a radius of 12mm, a total length of 28mm, and a height of 6mm. The bottom 1.6mm of the exterior is a beveled edge with a radius of ...
$fn = 96; debug = false; cylinder_radius = 12; box_length = 28; box_height = 6; margin = 0.1; wall = 1.6; inset = 1.2; bevel_height = 1.6; bevel_radius = 1.6; shelf_height = 1.2; shelf_radius = 1.2; fudge = 0.01; wall_thickness = wall + fudge; lid_inset = inset + fudge; difference() { union() { ...
glb/cad_cb182b0cdaf1.glb
Create a Parametric Doric Temple cornice beam. Start with a base rectangular block with a length of 54.1mm, a width of 18.7mm, and a height of 2.5mm. From this base, remove a central rectangular inset to create a hollow channel. This inset should be 27.05mm long, 14.05mm wide, and 1.67mm high, positioned at x=3.5mm, ...
coldiameter = 17; mod = coldiameter; cpo = mod/10; ch = mod*5* 1.24; colid = 10.25; colih = mod/3; n_o_c = 6; length = ((ch*1.618)*1.618)/(n_o_c-1); echo ("Length",length); height = ch/15; width = (mod + (cpo*2))* 1.0; angle = 1; echo("Width=",width); f_overhang = 2; f_height = height*2; f_d = .03; c_overhang = mod...
glb/cad_03a658bbaee9.glb
Create a Parametric Doric Temple Building Set consisting of a stepped base platform. First, define the base dimensions using a column diameter (modulus) of 17mm. The base height is 1/7th of the column base diameter (which is the modulus plus two offsets of 2.125mm each). The total length of the base is approximately ...
coldiameter = 17; mod = coldiameter; ch = mod*5* 1.24; echo("ch=",ch); bo = mod/8; btr = bo*.625; cbdiameter = mod+(bo*2); n_o_c = 6; b_length = ((ch*1.618)*1.618)/(n_o_c-1); echo ("Length",b_length); b_width = 2.5*((mod/2)+bo+btr); echo("Width",b_width); b_diff = b_length-b_width; echo("Diff",b_length-b_width); b_hei...
glb/cad_18a1254b845b.glb
Create a Doric temple capitol with a total height of 17mm. Start with a central cylindrical core that has an outer radius of 9.5mm and an inner hole radius of 6.375mm, extending for a height of 8.5mm. Around this core, add a series of concentric rings at the base to create a stepped mating surface for a column. These...
coldiameter = 17; mod = coldiameter; ch = mod*5; cr = mod/2; nf = 20; fr = 1.5; fvo = 2; fho = .65; bh = mod/2; bo = mod/8; btr = bo*.625; base_plate = 1; cph = mod/2; cpo = mod/10; ctr = cpo*.8; has_abacus = 1; $fs = 1; aa = 6; capitol(); echo(ch); module column() { translate([0,0,bh]) difference(){ ring(ch,cr,...
glb/cad_7a3dc75473e3.glb
Create a pediment end for a Doric temple building set. The part is based on a column diameter (modulus) of 17mm. The overall depth of the piece is 20.4mm (the modulus plus two offsets of 1.7mm). Start with a rectangular base measuring 10.54mm in length, 20.4mm in depth, and 0.21mm in height. Centered on this base, ad...
coldiameter = 17; mod = coldiameter; cpo = mod/10; depth = (mod + (cpo*2))* 1.0; ch = mod*5* 1.24; n_o_c = 6; length = ((ch*1.618)*1.618)/(n_o_c-1); echo ("Length",length); p_overhang = mod; p_width = (length * (n_o_c-1)) + + mod + p_overhang; echo("p_width=", p_width); p_length = p_width/4; echo("p_length=", p_lengt...
glb/cad_296eb4dab306.glb
Create a Contour camera mount plate for a 3DR quadcopter. Start with a square base plate measuring 75.5mm by 75.5mm with a thickness of 6.5mm. At the four corners of the plate, create four circular mounting holes, each with a radius of 1.625mm. On the top surface of the plate, create several cutouts. First, create ...
hspread = 68.5; hdia = 3.25; thick = 2*hdia; z = 2; fn = 4; module lower_holes(){ cylinder(r=hdia/2, h=z, $fn=20); translate([hspread,0,0]) cylinder(r=hdia/2, h=z, $fn=20); translate([hspread,hspread,0]) cylinder(r=hdia/2, h=z, $fn=20); translate([0,hspread,0]) cylinder(r=hdia/2, h=z, $fn=20); } module lower_...
glb/cad_b5f7a68d1e7d.glb
Create a TX03 camera mount consisting of an angled bracket and a supporting base. Start by constructing a main rectangular housing with outer dimensions of 21.6mm in length, 9.6mm in width, and 8.8mm in height, using a wall thickness of 0.8mm. Inside this housing, create a central hollow cavity of 20mm by 8mm by 8mm. ...
angle = 10; walls = 0.8; width = 8; length = 20; height = 8; hookSpacing = 1.5; hookHeight = 2; displayCutoutLength = 8.5; camDiameter = 11; camZOffset = 2.5; outerLength = length + walls * 2; outerWidth = width + walls * 2; outerHeight = height + walls; hookLength = outerLength + walls * 2 + hookSpacing * 2; di...
glb/cad_2145e99add0c.glb
Create a Parametric Butt Hinge consisting of two leaves joined by a central knuckle joint. Each leaf should be a rectangular plate with a width of 32.5mm (half of the 65mm total hinge width), a height of 60mm, and a thickness (gauge) of 5mm. Fillet the outer corners of the leaves. Construct the knuckle joint using 7 i...
C_CONSTANT = 0 + 0; C_NONE = C_CONSTANT + 0; C_FEMALE = C_CONSTANT + 0; C_MALE = C_CONSTANT + 1; SCG_OVERLAP = C_CONSTANT + 0.01; C_NEGATIVE = C_CONSTANT + 0; C_POSITIVE = C_CONSTANT + 1; C_CIRCULAR = C_CONSTANT + 0; C_SQUARE = C_CONSTANT + 1; C_HEXAGONAL = C_CONSTANT + 2; C_FUNCTION_LINEAR = C_C...
glb/cad_e9d950cf7845.glb
Create a decorated saucer by starting with a sphere of radius 50mm, centered at the origin, and scaled along the Z-axis by a factor of 0.3 to create a flattened oblate spheroid. From this shape, remove a volume created by the intersection of a Thomson polyhedron with a radius of 50mm—also scaled by 0.3 along the Z-axis...
use <propello_template.scad> use <thomson_template.scad> union() { difference() { scale([1,1,.3]) sphere(r=50,center=true,$fn=96); translate([0,0,3]) scale([1,1,.3]) difference() { thomson(50); translate([0,0,-90]) cube([100,100,100],center=true); } translate([0,0,50]) cube([100,100,100],center=true)...
glb/cad_2a2a9d25d474.glb
Create a Battery Holder consisting of three parallel battery compartments. Each compartment is designed for a cylindrical cell with a diameter of 18.4mm and a length of 65.2mm. For each compartment, construct a main body using a chamfered cube with a wall thickness of approximately 1.12mm. The interior cavity should ...
cell = 1; ParallelCells = 3; SeriesCells = 1; AlternateSymbols = 1; ew=0.56; eh=0.25; Li18650 = [ ["len", 65.2], ["dia", 18.4], ["cellHeight", 0.75], ["screwHole", 3], ["eps", 0.28], ["overHang", 0], ["lenCorrect", 0.3], ["cutDepth", 0], ["df", 1] ]; Li18650P = [ ["len", 70], ["dia", 18.4], [...
glb/cad_d5bd3ac94391.glb
Create a compartmentalized container for essential oils consisting of a main box and a sliding lid. The main box should have an outer dimension of 247mm in width, 247mm in length, and 69mm in height. The walls of the box are 3mm thick. Inside the box, create a grid of 64 square compartments arranged in an 8 by 8 array....
compartment_height = 69; compartment_length = 30; compartment_width = 30; compartment_count_length = 8; compartment_count_width = 8; interior_wall_height = compartment_height * 0.7; wall_thickness = 1; outter_wall_thickness = 3; box_width = compartment_width * compartment_count_width + (wall_thickness * (compartmen...
glb/cad_f8ec3c46b2e8.glb
Create an alligator clip wire rack consisting of a rectangular base plate measuring 150mm wide, 30mm deep, and 2mm thick. Along the length of the base, create a series of wire slots spaced every 4mm. Each slot is formed by removing a 2mm wide rectangular channel from the front edge, extending 25mm deep into the base. T...
wire =2; clip = 4; twx=150; tdy=30; tk =2; sh=6; st=4; mounts=3; difference(){ base_bracket(); slotter(clip/2-2,0,0); mounting_holes(0,tdy,0); } module base_bracket(){ cube([twx,tdy,tk]); translate([0,tdy,0]){cube([twx,tk,tdy/2]);} } module slotter(x=0,y=0,z=0){ translate([x,y,z]){ for(i=[0:clip:twx-clip...
glb/cad_c8207c3bd4a2.glb
Create a Samsung Lower Rack Dishwasher Wheel consisting of a tiered cylindrical body with a central axle hole. Start by creating a wide base cylinder with a radius of 18.5mm and a height of 5mm. On top of this base, center a second cylinder with a radius of 14mm and a height of 14mm. To create the central bore, remov...
difference(){ union(){ cylinder(r=18.5, h=5, $fn=256); cylinder(r=14, h=14, $fn=256); } union(){ translate([0,0,-1]) cylinder(r=8, h=17, $fn=256); translate([0,0,11]) cylinder(r=10, h=5, $fn=256); translate([0,0,-1]) cylinder(r=16, ...
glb/cad_a72144a3efb9.glb
Create a stirrer magnet holder designed to fit a PC fan. Start by creating a main cylindrical body with a diameter of 40.42mm and a height of 8.5mm. At the base, add two smaller cylinders to hold magnets; these should have a diameter of 17.12mm and a height of 2mm, positioned symmetrically on opposite sides of the cent...
Magnet_Diameter = 15.5; Magnet_Height = 2; Magnet_Wall = 0.81; Washer_Diameter = 32; Washer_Height = 1.6; Fan_Diameter = 38; Fan_Height = 8.5; Fan_Wall = 1.21; Fan_Blades = 7; Fan_Slot = 8; Fan_Fiddle_Factor = 0.75; $fn = 60; Tad = 0.1; Tad2 = Tad*2; difference () { union () { cylinder (d=Fan_Diameter+Fa...
glb/cad_4c5fd37167e3.glb
Create a Universal Tool Mount consisting of a base plate with three tool-holding clips. The base is a flat plate 2.68mm thick with rounded ends. At each end of the base, create a screw hole with a 2.5mm diameter shaft and a 4.3mm diameter head; the head should be countersunk to a depth of 1mm. Position three clips alo...
Clip_Quantity=3; Tool_Width1=6; Tool_Thickness1=4; Angle1=45; Clip_Thickness1=1.34; Clip_Height1=6; Clip_Clearance1=2; Clip_Elev1=0; Tool_Width2=11.7; Tool_Thickness2=11.7; Angle2=45; Clip_Thickness2=4; Clip_Height2=8; Clip_Clearance2=2; Clip_Elev2=6; Tool_Width3=12.4; Tool_Thickness3=12.4; Angle3=45; ...
glb/cad_7e902b928d7c.glb
Create a salt shaker consisting of a main body and a screw-on cap. For the body, create a revolved solid with a total height of 105mm and a maximum radius of 23mm. The outer profile should be organic and slightly tapered, while the interior is hollowed out by a revolved void with a base radius of 11.5mm that extends ...
include <bezier.scad> include <helix_extrude.scad> precision = 40; shakerRadius = 23; shakerHeight = 105; holesDiameter = 3; holeRadius = shakerRadius*0.5; capRadius = shakerRadius*0.75; capHeight = shakerHeight*0.1; capGapRadius = 0.2; capRecess = 2; threadInnerHeight = 3; threadOuterHeight = 1; threadWidth = 2;...
glb/cad_94e5f0f84cb9.glb
Create a 1:10 scale beer crate and bottles. Start by constructing a rectangular crate with outer dimensions of 43mm in length, 22mm in height, and a width derived from the length and wall thickness. The walls and bottom should be 1.5mm and 0.9mm thick, respectively. The four outer corners of the crate must be rounded w...
length = 43; height = 22; wall_thickness = 1.5; bottom_thickness = 0.9; divider_thickness = 0.3; divider_height = 11; space = (length - 2*wall_thickness - 5*divider_thickness)/6; width = 2*wall_thickness + 3*divider_thickness + 4*space; $fs = 0.1; union(){ difference() { union() { for (i =...
glb/cad_0e09b1e871b1.glb
Create a 1:10 scale beer bottle by stacking several geometric primitives along a central vertical axis. Start with a base cylinder 6mm in diameter and 10mm tall. Place a sphere with a 3mm radius directly on top of this base. Above the sphere, add a tapered cylinder (frustum) that starts with a 3.8mm diameter at the bot...
$fs=0.01; module bottle() { union() { cylinder(r=3, h=10); translate([0,0,10]) sphere(r=3); translate([0,0,12]) cylinder(r1=1.9, r2=1.25, h=6); translate([0,0,18]) cylinder(r1=1.25, r2=1.5, h=0.5); translate([0,0,18.5]) cylinder(r=1.5, h=0.3); } } bottle();
glb/cad_b47bfd3fc8cc.glb
Create a Prusa i3 proximity sensor holder by constructing a hollow cylinder with a height of 5mm. The outer diameter of the cylinder should be 6.5mm, and it should feature a concentric circular hole running through its entire center with a diameter of 4.5mm.
$fn=100; difference(){ cylinder(h = 5, d=6.5); cylinder(h = 5, d=4.5); }
glb/cad_4e70979acdc7.glb
Create a replacement headband attachment for AKG K272HD headphones. Start with a main cylindrical base that has a diameter of 28.1mm and a height of 8mm. From the center of this base, remove a conical hub that tapers from a diameter of 10.5mm at the bottom to 9mm at a height of 2.9mm. Create a central vertical hole t...
difference() { cylinder(d=28.1, h=6.7+1.3); translate([0,0,0]) cylinder(d1=10.5, d2=9, h=2.9, $fn = 16); intersection() { cube([8.5,20,2.9*2], true); cylinder(d=13.5, h=2.9); } translate([0,0,6.7-2]) cylinder(d1=8, d2=10, h=4,$fn=16); translate([-1,0,0]) for(a=[-45,45]) rotate...
glb/cad_88f621c22af2.glb
Create a pattern holder for a scanner by constructing a central cylindrical base with a radius of 10mm and a height of 4.3mm. From the center of the bottom face, extend a smaller cylindrical peg downwards with a radius of 3.8mm and a length of 6mm. On the top surface of the base, create a central slot 1.8mm wide. To ...
rpeg = 3.8; lpeg= 6.0; rbulk=10.0; lbulk=13; hslotbottom=4.3; slotthick=1.8; wtab=6.4; $fn=40; module highspring() { *multmatrix(m=[[1,0,0],[0,1,-0.4,3],[0,0,1,4],[0,0,0,1]]) cube([3,3,lbulk-4]); intersection() { union() { translate([0,0,lbulk - 2*6]) scale([1,1,2]) rotate([0,90,0]) ...
glb/cad_b012c5d5175a.glb
Create an Anet A8 X-axis belt mount consisting of a main rectangular base and two upright belt-holding blocks. The main base is a rectangular prism measuring 96mm in length, 20mm in width, and 5mm in height. Centered along the length of this base, create four vertical holes: two larger holes with a 5mm diameter and two...
x=96; y=40/2; s=6.5; h=3.5; module body(){ difference(){ cube([x,18,5]); translate([x/2-31,10,-1]) cube([62,11,8]); translate([x/2-y,h,-1]) cylinder(d=5,h=7,$fn=360); translate([x/2+y,h,-1]) cylinder(d=5,h=7,$fn=360); translate([x/2-y-s,h,-1]) cylinder(d=4,h=7,$fn=360); translate([x/2+y+s,h,-1]) cylinder(d=4,h=7,...
glb/cad_84ca8ff8796a.glb
Create a fidget spinner body with a total height of 7mm. The model is composed of a central core and two outer side plates. The central core is a slab with a thickness of 2.6mm, centered vertically within the overall height. The two side plates are each 2.2mm thick and are positioned at the top and bottom of the centra...
use <spinner.scad>; h = 7.0; hSide = 2.2; e = 0.0; big = 100; module sidepart() { intersection() { spinner(); cube([big,big,2*hSide],center=true); } } module centerpart() { intersection() { spinner(); translate([-big/2,-big/2,hSide+e])cube([big,big,h-2*(hSide+e)]); } } module test() { ...
glb/cad_b25854b1d1ee.glb
Create a customizable dice by starting with a cube that has a total side length of 20mm. Apply a fillet or curvature of 1.5mm to all edges and corners to soften the shape. On each of the six faces, engrave a word to a depth of 1.25mm, centering the text both horizontally and vertically. The words to be engraved are "pl...
size = 20; curvature = 1.5; depth = 1.25; font = "Roboto Black"; face_1 = "play"; face_2 = "read"; face_3 = "walk"; face_4 = "swim"; face_5 = "make"; face_6 = "learn"; artefact = 0.05; res = 100; module dice() { minkowski() { size_int = (8 - curvature) * size / 8; size_ext = curvature * size / 8; ...
glb/cad_da8b139a7f3e.glb
Create a simple HDD holder with a thickness of 5mm. The main structure consists of two rectangular frames designed to hold 2.5-inch hard drive cases. Each frame should have outer dimensions of 86mm by 25mm and inner cutout dimensions of 78mm by 17mm, creating a wall thickness of 4mm around the perimeter of each slot. P...
$fn = 50; hddWidth = 78; hddHeight = 17; thickness = 5; wall = 4; count = 2; spacing = 10; baseWidth = 30; elevation = 10; module holdersTopBase() { for (i = [0:count-1]) { translate([0, i * (spacing + hddHeight + 2*wall), 0]) linear_extrude (height=thickness) difference() { offset (r=wall)...
glb/cad_4daa2dd34cca.glb
Create a mounting plate for an MKS SBASE V1.3 controller board. The main body is a rectangular plate measuring 94mm wide, 145.5mm high, and 2mm thick. The face of the plate features a honeycomb pattern of hexagonal holes, each 11.3mm in diameter. Add four cylindrical standoffs at the corners of the plate. Two standoff...
$fn=72; width = 95; height = 146.5; mountHeight = 95; thickness = 2; difference() { union() { difference() { translate([0.5,0.5,0]) cube([width-1,height-1,thickness]); b = 3.25; c=b*3; d=b*sqrt(b)*2; e=11.3; mx = width/2; my = height/2; xcount=floor((width/c-1)/2); ycount=floor((height/d-...
glb/cad_969676c7c287.glb
Create a FabScan CUBE turntable holder by starting with a composite base consisting of two stacked cylinders: a bottom cylinder 9mm high with a base radius of 30mm tapering to a top radius of 10mm, and a second cylinder 17mm high with a constant 10mm radius centered on top. Remove a central vertical hole with a radius ...
$fn=80; difference(){ union(){ cylinder (h=9, r1=30, r2=10); cylinder (h=17, r=10); } cylinder (h=17, r=2.6); translate([0,0,13]) rotate([0,90,0]) cylinder (h=20, r=1.6,center=true); translate([6,0,14]) cube ([2.5,6.2,7],center=true); translate([-6,0,14]) cube ([2.5,6.2,7],center=true); for(i=[...
glb/cad_92f1a98c8314.glb
Create a mudguard fitting part by starting with a main body formed from the convex hull of two intersecting cylinders. The first cylinder is vertical with a height of 8.2mm and a radius of 5mm, centered at the origin. The second cylinder is horizontal, centered at x=5.72mm, with a height of 10mm and a radius of 5.6mm. ...
boltDmtr = 5.2; rodDmtr = 4; wallThickness = 3; height = boltDmtr+wallThickness; width = rodDmtr+wallThickness; wallThikness =2; $fn=100; module body() { hull () { cylinder (h = boltDmtr+wallThickness, r = rodDmtr/2+wallThickness, center = true); transl...
glb/cad_7dd957f0111b.glb
Create a parametric bracelet by extruding a 2D ring shape into a 3D volume. Start with a base profile consisting of two concentric regular polygons, both with 9 sides. The outer polygon must have a radius of 37.5mm and the inner polygon must have a radius of 35.9mm, creating a wall thickness of 1.6mm. Extrude this prof...
fill = "no"; outerRadius = 37.5; height = 20; sides = 9; wallThickness = 1.6; degree2twist = 30; numberSlices = 2; innerRadius = outerRadius - wallThickness; extrudeHeight = height; module rim(filled){ difference(){ circle(r=outerRadius, $fn=sides); if(filled=="no"){ circle(r=innerRadius, $fn = ...
glb/cad_f7ee49a8d1af.glb
Create a 28BYJ-48 stepper motor to LEGO axle adapter. The object consists of a main cylindrical body with a total height of 8mm and a radius of 9mm. From the center of this cylinder, remove a cross-shaped hole that extends through the full 8mm height. This cross is formed by two intersecting rectangular prisms: one w...
module tube (length, diameter, x, y, z){ translate([x,y,z]){ cylinder(length, r=diameter/2); } } module box (xlength, ylength, zlength, x, y, z){ dx = xlength/2; dy = ylength/2; dz = zlength/2; translate([x-dx,y-dy,z]){ cube ([xlength,ylength,zlength]); } } $fn=50; final = true; cro...
glb/cad_ab16413f3096.glb
Create a T4 quadcopter arm with a total length of 215mm and a square-like profile of 25mm by 25mm. The main body is a hollow shell with a wall thickness of 2.2mm. At one end, construct a cylindrical motor mount with an outer diameter of 34mm (based on a 28mm motor diameter plus 3mm clearance on each side) and a heigh...
modul_a = 25; modul_b = 25; koef_a = 0.44; koef_b = 0.2; thick = 2.2; len = 215; mot_d = 28; mot_a = 16; mot_b = 19; sd = 3; sl = 13; hole_merge = 1; mot_dist = 2; ha = -45; venta = 11; ventl = 1.7; venth = 2.5; bott = 3.8; module arm_base(a, b, ka, kb, t, l) { ...
glb/cad_a55ef9759bc4.glb
Create a V-slot mini gantry adapter as a rectangular plate with rounded corners, measuring 25mm wide, 48mm long, and 3mm thick. The corners should have a radius of 2mm. On the top surface, center two large countersunk holes along the vertical midline, positioned 10mm above and below the center point. Each countersunk ...
difference() { union () { translate([0,0,0]) { roundedRect([27-2,50-2,3],2); } translate([0,24,0]) { endstop(); } } translate([0,10,0]) coutersunk(); translate([0,-10,0]) coutersunk(); translate([0,(50/2)-(34/2),0]) { trans...
glb/cad_0711e4b05518.glb
Create a bookcase mod for a pinball machine. Start with a main rectangular block measuring 65mm wide, 17.5mm deep, and 100mm high. At the base, add a mounting plate that is 65mm wide, 17.5mm deep, and 2mm thick, positioned 48mm up from the bottom. Construct two horizontal shelves within the main block. The lower shelf...
$fa=1; $fs=1; $wall=1.5; $wood=2; $shelf=23; $cover=4.1; %bookcase_part(); bookcase_mod(); module bookcase_mod(){ difference() { union() { difference() { translate([-$wall,0,0]) cube([62+2*$wall,16+$wall,100]); translate([-$wall+$wood,-1,48+$wood]) cube([62+2*$...
glb/cad_aafa56d02172.glb
Create a Parallax QuickStart Board Spacer by constructing a rectangular frame with a height of 2mm. The outer dimensions of the frame should be 77mm in width and 51.5mm in depth. The center of the frame is hollowed out by removing a rectangular section that is 71mm wide and 45.5mm deep, leaving a border wall thickness ...
$fn = 30; boardWidth = 77; boardDepth = 51.5; holeSpaceWidth = 70; holeSpaceDepth = 44.5; borderWidth = 3; spacerHeigth = 2; screwHoleSize = 4; difference(){ plate4Point(boardWidth, boardDepth, spacerHeigth, screwHoleSize+borderWidth); plate4Point(boardWidth - borderWidth, boardDepth-borderWidth, spacerHeigth+1,...
glb/cad_cdb33c4d35fb.glb
Create a Sethi3D AiP fan support consisting of a fan mounting bracket integrated with a wind tunnel. Start by creating a main support body that includes a vertical rectangular section for the fan, featuring four screw holes with a radius of 1.2mm. From this base, extend a wind tunnel that transitions into a conical s...
for (i=[45:90:315]) { rotate([0,0,i]) translate([13.8,0,0]) cube([3.4,1.5,1]); } for (i=[0:90:279]) { rotate([0,0,i]) translate([10.5,0,0]) cube([3.4,1.5,1]); } difference() { union() { translate([21.0,32,55]) rotate([-90,0,-90]) difference() { linear_extrude(height=5.6) difference() { union() { ...
glb/cad_5913ca8d1e8b.glb
Create a fan support for the Sethi3D AiP printer. Start by creating a flat support triangle with a thickness of 5.6mm. The main body of this triangle is defined by a polygon with vertices at [0,0], [50.8,0], [50.8,5], [5,35], and [0,35], with additional small rectangular extensions at the edges. Remove a central irregu...
detail=200; opening=8; angle=40; fanangle=30; nozzlelength=30; $fn=detail; rotate([180,0,0]) union() { difference() { linear_extrude(height=5.6) difference() { union() { polygon(points=[[0,0],[50.8,0],[50.8,5],[5,35],[0,35]]); polygon(points=[[50.8,0],[48.3,-2.5],[48.3,0]]); polygon(points=[[0,2.6],[-...
glb/cad_8c6f440cfdcc.glb
Create a support triangle for a 3D printer extruder with a total height of 5.6mm. The main body is a flat plate defined by a complex 2D profile extruded vertically. Start with a primary rectangular area from [0,0] to [50.8, 35] and add small rectangular tabs extending to x=-6 between y=2.6 to 7.1 and y=18.7 to 23.2. Re...
$fn=50; difference() { linear_extrude(height=5.6) difference() { union() { polygon(points=[[0,0],[50.8,0],[50.8,5],[5,35],[0,35]]); polygon(points=[[50.8,0],[48.3,-2.5],[48.3,0]]); polygon(points=[[0,2.6],[-6,2.6],[-6,7.1],[0,7.1]]); polygon(points=[[0,18.7],[-6,18.7],[-6,23.2],[0,23.2]]); } polygon(...
glb/cad_3d89fdb0247d.glb
Create a Zerotech Dobby motor support consisting of a thin-walled shell with a base thickness of 0.8mm and a total height of 9.8mm. The main body is based on a cylinder with a radius of 8.4mm and a wall thickness of 0.8mm. From this cylindrical form, extend a rectangular section 20mm in length to create an arm extens...
$fa=1;$fs=0.1; base_thickness = 0.8; caste_height = 9+base_thickness; caste_length = 20; lowest_height = 7+base_thickness; wall_width = 0.8; module shaper() { hull() { polyhedron (points=[[2.5+caste_length,5.5,lowest_height-0.5],[2.5+caste_length,-12,lowest_height+1.4],[-11.5,-12,lowest_height+1.8],[-11.5...
glb/cad_227ba3532220.glb
Create a Whirlpool Refrigerator Shelf Support clip. Start with a base rectangular plate measuring 22.35mm wide by 22.5mm deep and 2.5mm thick, with the corners rounded by a 2mm radius. Centered on this base, build a cylindrical riser with a diameter of 15.4mm and a height of 4.8mm. Above this riser, add a taller cylind...
sqrt2 = sqrt(2); clip_circle = 15.4; clip_width = 22.35; clip_height = 22.5; clip_thickness = 2.5; back_groove_narrow = 9.3 + 0.25; back_groove_wide = 11.34 + 0.25; back_groove_depth = 2.8; front_groove = 8.4; total_height = 15.8; total_groove = clip_height-6.65; sq_height = 4.8; u_height = 11.15; narrow_height = 2.3...
glb/cad_3eb5c9c152bf.glb
Create a K8200 frame lock by starting with a rectangular base plate measuring 8mm wide, 30mm long, and 4mm thick. From this base, remove two identical holes to accommodate screws. Each hole consists of a cylindrical shaft with a radius of 1.7mm and a depth of 10mm, topped with a hexagonal head that has a radius of 3.3m...
x = 8; y = 30; z = 4; module basePlate() { union(){ cube([x,y,z]); } } module schraube(){ color("red") cylinder(r=1.7,h=10, $fn=60); color("blue") schraubenKopf(); } module schraubenKopf() { cylinder(r=3.3, h=2.6, $fn=6); } space=20; xHole=5; module frameLock() { rotate([180,0,0]) difference(){ colo...
glb/cad_35a42adcb026.glb
Create a K8200 frame lock adapter by building a tiered rectangular base and removing two cylindrical holes. Start with a bottom rectangular slab measuring 16.2mm wide, 35mm deep, and 1.5mm high, centered on the origin. Stack two additional centered rectangular layers on top: a middle layer measuring 12.1mm wide, 35mm d...
default_abstand = 20; default_schrauben_radius=1.8; default_schrauben_hoehe=16; default_schrauben_elemente=66; module schraube(){ color("lightgreen") cylinder(r=default_schrauben_radius, h=default_schrauben_hoehe, $fn=default_schrauben_elemente); } function schrauben_abstand(position) = position + default_abstand; ...
glb/cad_e651ad60a7cc.glb
Create a tripod adapter for a camera by combining a GoPro extension mount with a rectangular block. Start with the extension mount geometry and attach a rectangular prism measuring 95mm in length, 15mm in width, and 15mm in height. Position this block so its center is offset 20mm along the x-axis and 7.5mm along the z-...
union() { import_stl("GoProExtensionRA_DFM.stl", convexity = 5); translate([-20,0,7.50]) cube(size=[95,15,15],center=true); }
glb/cad_f2d8ef2a0c88.glb
Create a Raspberry Pi Cam Arm holder consisting of a camera case and a supporting base. First, construct the camera case. Create a main rectangular body 32mm wide, 33mm deep, and 11mm high. Subtract a central rectangular cavity 30.1mm wide, 29.5mm deep, and 10mm high, leaving thin walls. Add two small vertical pillar...
default_schrauben_abstand = 20; default_schrauben_radius=1.77; default_schrauben_hoehe=16; default_schrauben_z = -1; default_schrauben_elemente=66; module schraube(x, y, z, radius, hoehe){ color("lightgreen") translate([x, y, z]) cylinder(r=radius, h=hoehe, $fn=default_schrauben_elemente); } function schrauben_...
glb/cad_1274ebf2ce9a.glb
Create a business card holder designed to clip onto a 6mm thick wall. Start by constructing a main rectangular body with an overall width of 57.4mm, a depth of 12.4mm, and a height of 30mm. The walls of this body should be 1.2mm thick. Hollow out the center of the body to create a slot for cards that is 55mm wide and ...
tol=0.05; th=1.2; ply_th= 6; hook_th= 3; hook_sz= 4; hook_top_len= ply_th + hook_th; vc_w= 55+1; vc_th_int= 10; vc_th_ext= th + vc_th_int + th; hook_width_ext=th+vc_w+th; total_h= 30; module ccube(size) { translate([-size[0]/2, -size[1]/2, 0]) cube(size); } difference() { translate([-hook_width_ext/2,0,0]) uni...
glb/cad_b3afc16fd086.glb
Create a snap fit joint connector. Start by creating a main central shaft as a cylinder with a radius of 15mm and a total height of 150mm. At the bottom of this shaft, add a base cylinder with a radius of 15mm and a height of 5mm. At the top of the shaft, construct a tapered pin section. This section begins with a lo...
shaft_rad = 15; shaft_length = 150; base_rad = 15; base_length = 5; pin_lower_rad = 16; retainer_rad = pin_lower_rad; retainer_gap = 5.25; retainer_length = 3; pin_upper_rad = shaft_rad; pin_length = 15; pin_z_trans = shaft_length - pin_length; retainer_z_trans = shaft_length - pin_length - retainer_gap - retainer_le...
glb/cad_fe93faacaa58.glb
Create a snap fit joint connector starting with a central cube that is 50mm wide, 50mm deep, and 5mm thick. Remove a cylindrical hole from the center of this cube with a radius of 15.25mm and a height of 5mm. Position a second cube directly above the first, centered on the same axis, with dimensions of 50mm wide, 50mm ...
pin_lower_rad = 18; pin_upper_rad = 15; pin_length = 15; union() { difference() { translate([0,0,-2.5]) cube([50,50,5],center = true); translate([0,0,-5]) cylinder(h = 5,r = 15.25, $fs=0.01); } difference() { translate([0,0,7.5]) cube([50,50,15],center = true); cylinder(h = 15,r = 18.25, $fs=0...
glb/cad_4c4c213b9742.glb
Create a Bowden extruder capacitive sensor mount consisting of three joined sections: a clamp, a sensor housing, and a connector. First, create the extruder clamp section as a block 12mm wide, 38mm long, and 12mm high. Center a 12mm diameter hole through the width of the block. Create two 4mm diameter screw holes runn...
$fn = 50; sensorMountOffsetY = 0; sensorDiameter = 18; extrudeCutFactor = 0.1; smallThroatDiameter = 12; largeThroatDiameter = 16; clampScrewDiameter = 4; clampScrewCenterOffset = 13; topThroatCutDepth = 3.7; bottomThroatCutDepth = 3.0; clampSectionWidth = 12; clampSectionLength = 38; clampSectionHeight = 12; c...
glb/cad_78a7d93fd181.glb
Create a Bowden extruder capacitive sensor mount consisting of three joined sections: a clamp, a sensor mount, and a connector. First, create the extruder clamp section as a block 12mm wide, 38mm long, and 12mm high with 2mm rounded corners. Center a 12mm diameter hole through the width of the block. Subtract two 4mm ...
$fn = 50; sensorMountOffsetY = 3.5; sensorDiameter = 12; extrudeCutFactor = 0.1; smallThroatDiameter = 12; largeThroatDiameter = 16; clampScrewDiameter = 4; clampScrewCenterOffset = 13; topThroatCutDepth = 3.7; bottomThroatCutDepth = 3.0; clampSectionWidth = 12; clampSectionLength = 38; clampSectionHeight = 12; ...
glb/cad_68ea614ec659.glb
Create two identical halves of an interlocking wire spool. Each half is based on a circular disk with an outer diameter of 60mm and a total thickness of 34mm (composed of a 30mm inner width plus two 2mm walls). At the center of each half, create a vertical cylindrical hole with a diameter of 20mm. Around this central...
wall_thickness = 2; outer_diameter = 60; inner_width = 30; hole_diameter = 20; tab_width = 10; tab_height = 7; wire_hole_diameter = 2.5; facets = 50; show_two_halves = "yes"; holes_on_sides = "no"; number_of_side_holes = 6; side_hole_diameter = 10; eps = 0.01; outer_width = inner_width + 2 * wall_thickness...
glb/cad_452cf342ca15.glb
Create a Canon DSLR IR Remote case by designing a main body based on a rounded, teardrop-like profile. The base shape is formed by the hull of a circle with a 10mm radius (scaled 1:0.5 on the Y-axis) and a larger circle with a 20mm radius (scaled 1:0.8 on the Y-axis), extruded to a total height of 6.7mm with rounded ed...
CASE_H = 6.7; ATT_H = 1.35; BTN_H = 3.5; RES = 150; part_top(); part_bottom(); part_button(); module part_top() { difference() { casing(); cutouts(); halving(-1); } translate([0,0,0.5]) intersection() { translate([0,20,2.8]) cube([100,100,1], center=true); difference() { scale([0.98,0.98,1]) c...
glb/cad_6536c2ec4411.glb
Create a Hive Pencil Box consisting of 37 hexagonal cells arranged in a staggered honeycomb pattern. Each cell is a hollow hexagonal prism with an outer diameter (flat-to-flat) of 20mm and a wall thickness of 1mm. The cells vary in height to create a tiered, organic top surface. Arrange the cells in seven rows with th...
module Hexagone(cle,h) { angle = 360/6; cote = cle * cot(angle); echo(angle, cot(angle), cote); echo(acos(.6)); union() { rotate([0,0,0]) cube([cle,cote,h],center=true); rotate([0,0,angle]) cube([cle,cote,h],center=true); rotate([0,0,2*angle]) cube([cle,cote,h],center=true); } } function cot(x)...
glb/cad_5e8a3079974c.glb
Create a Lord Krishna's Stencil by starting with a flat rectangular plate measuring 100mm in width and 2.5mm in thickness. The height of the plate should be scaled proportionally to fit the artwork with a 10mm margin around the edges. Cut out a detailed 2D silhouette of Lord Krishna from the center of the plate. The d...
input =[[267,243],[[203.99,27],[203.27,27.71],[202.61,29.42],[202.36,31.59],[202.61,33.42],[203.26,34.54],[203.99,35],[204.69,34.41],[205.29,33],[205.81,31],[205.29,29],[204.69,27.59],[203.99,27]],[[195.93,28],[195.27,28.55],[195,29.87],[195.61,31.96],[197.07,34.37],[198.81,36.23],[200.07,37],[200.73,36.53],[201,35.4],...
glb/cad_a71f7cd46dcb.glb
Create a Stick Joints connector consisting of a central hub with three radiating arms. Start by creating a central cylinder with a radius of 2mm and a height of 4mm. Around this hub, position three identical rectangular blocks spaced equally at 120-degree intervals. Each block should have dimensions of 14mm in length...
stickSize = [114, 10, 2.25]; thickness = 2; depth = 12; jointSize = [4,4]; blockSize = [14, 14, 6.25]; $fn=20; translate([0,0,blockSize[0]/2]) star(3,12,90,0); module star( endPoints, diameter, rotation, angle ) { dist = diameter-thickness - (stickSize[1]/2); union() { difference() { for ( i=[0:endPoints-1]...
glb/cad_28b841371cf0.glb
Create a Stick Joint connector consisting of two identical mirrored end-point components joined together. Each end-point component is based on a rectangular profile with a width of 14mm, a height of 14mm, and a thickness of 6mm. For each end-point, create a solid block that is 14mm wide, 14mm high, and 6mm thick. Wit...
stickSize = [114, 10, 2]; rotate([90, 0, 0]) { intersection() { translate([2, -10, -10]) cube([22, 20, 20 ]); translate ([7, 0, 0]) union () { rotate( [0,0,180] ) endPoint( 2, 12 ); translate([12,0,0]) endPoint( 2, 12 ); } } } module endPoint( thickness, insertionDepth ) { newLength = insertion...
glb/cad_888fbe63655e.glb
Create a Fancy Vase by constructing three stacked sections based on a hexagonal profile. Start with a solid hexagonal base that has a radius of 10mm and a height of 3mm. Above this, create the main body with a height of 30mm; this section should be a hollow shell with a wall thickness of 2mm, starting from the base's h...
radius=10; sides=6; thickness=2; bodyHeight=30; bodyTwist=180; bodyFlare=1.2; baseHeight=3; rimHeight=3; extrudeResolution=5*bodyHeight; translate([0,0,baseHeight + bodyHeight]) rotate(-bodyTwist) scale(bodyFlare) linear_extrude(height=rimHeight) polyShape(radius, sides, thickne...
glb/cad_dd8649d1b075.glb
Create a custom tool holder for a pegboard. Start with a base rectangular block 180mm wide, 30mm deep, and 10mm thick, with rounded edges. Along the center of the length, create five circular tool holes. Each hole consists of a lower cylinder with a 13mm radius and a height of 20mm, topped by a 10mm tall conical flare ...
pegholeraio=1.5; furos=5; toolraio=13; hole_size = 4.8; tolerance = 5; backing_board = 5; peg_offset = 25; sphere_size=hole_size*(1+(tolerance*.006)); cylinder_radius=(hole_size-.5)/2; module placona() { intervalo=180/furos; inicio=intervalo/2; difference() { union() { minkowski() { cube...
glb/cad_54fcdd25bb49.glb
Create a Whiteboard Marker Holder consisting of two parallel rows of marker hooks connected by a base frame. Each row contains five hooks. A single hook is formed by a cylinder with a radius of 16mm and a height of 10mm, with a smaller concentric cylindrical hole of radius 12mm removed from its center to create a C-sha...
r = 12; b = 4; c = 7; B = 4; off = 0; gap = 60; frame(); module frame() { difference(){ union(){ translate([0, 0,0]) row(); translate([0,gap+10,0]) row(); translate([10,0,0]) cube([10,80,B]); translate([130.5,0,0]) cube([10,80,B]); translate([ 7.5, 10,0]) cube...
glb/cad_3ab3329fc973.glb
Create two identical cable management holders. For each holder, start with a rectangular block measuring 30mm wide, 40mm deep, and 40mm tall. Remove a central horizontal cylinder with a 9mm diameter that runs through the width of the block to create a cable channel. At the bottom and top faces of the block, create tw...
hole =30; box_thickness = 30; center_hole = 9; screw_hole = 3; mount_thickness = 5; base_width = 70; difference () { cube ([box_thickness, hole + 10, hole + 10]); translate ([0, (hole + 10)/2, (hole + 10)/2]) rotate ([0,90,0]) cylinder (box_thickness +55,center_hole, center_hole,center=true); translate ([box_thick...
glb/cad_eea5c97511c4.glb
Create a Reverse Bowden for a Prusa i3 MK2. Start by constructing a main vertical body that is 10mm wide, 20mm deep, and 53mm tall. From this body, remove two rectangular sections: one measuring 10.5mm by 6.5mm by 40mm positioned at X-0.1, Y5, and Z6.5, and another measuring 10.5mm by 6.5mm by 53mm positioned at X-0.1,...
$fn=100; $od=5.4; difference(){ cube([10,20,53]); translate([-0.1,5,6.5]) cube([10.5,6.5,40]); translate([-0.1,-0.1,-10.5]) cube([10.5,6.5,53]); } translate([0,10,53]) rotate([-45,0,0]) difference(){ cube([10,10,75]); #translate([5,14,70]) rotate([90,0,0]) cylinder(r=3/2, h=15); #translate([5,1...
glb/cad_826bd106646d.glb
Create an omnidirectional wheel chassis. Start with a flat rectangular base plate measuring 150mm by 150mm with a thickness of 2mm. Cut a square opening of 100mm by 100mm from the center of this plate. At each of the four corners of the base plate, install a wheel assembly. Each assembly consists of a vertical wheel w...
$fn=128; module gm (){union(){translate([0,0,7.99])difference(){translate([-6,-6,0])cube([12,12,2.1]);cylinder(r=4,h=2.1);}translate([0,0,16])difference(){cylinder(r=5,h=1.5,$fn=12);cylinder(r=1.5,h=1.5,$fn=12);}translate([0,0,7.98])cylinder(r=1.5,h=9.1);translate([-4,-4,0])cube([8,8,8]);}} module mm (){difference(){un...
glb/cad_b75169480dcb.glb
Create a Primer Tray Funnel designed to transition a square opening into a circular base. Start by creating a bottom ring with an outer diameter of 82.9mm, a height of 5mm, and a concentric inner hole with a diameter of 77.9mm to create a wall thickness of 2.5mm. From the top of this ring, build a hollow conical tran...
$fn=100; ring_height=5.0; outside_diameter=82.9; inside_width=89.0; wall_thickness=2.5; cone_height=20.0; module big_cone() { intersection() { translate([0,0,0]) cylinder(h=cone_height,r1=outside_diameter/2,r2=inside_width*1.7/2,center=true); translate([0,0,0]) cube([inside_width+wall_thickness,inside_width...
glb/cad_fa6dd85a1d24.glb
Create a Primer Tray Spacer by constructing a hollow square frame. Start with a solid outer cube measuring 89mm in width, 89mm in depth, and 12mm in height, centered on the origin. From this volume, remove a central square section to create the interior void. This void should be 76mm wide and 76mm deep, extending throu...
$fn=100; inside_width=89.0; spacer_width=76.0; lip_width=1.0; spacer_height=12.0; module spacer_box() { difference() { translate([0,0,0]) cube([inside_width,inside_width,spacer_height],center=true); union() { #translate([0,0,spacer_height/4]) cube([spacer_width+lip_width,spacer_width+lip...
glb/cad_1e432dea2ce8.glb
Create a Primer Tray Spacer by constructing a hollow cylindrical ring. Start with a solid cylinder that has an outside diameter of 95 mm and a height of 6 mm, centered on the origin. Remove a concentric cylindrical core from the center with a diameter of 82.9 mm and a height slightly greater than 6 mm to ensure a clean...
$fn=100; outside_diameter=95.0; inside_diameter=82.9; spacer_height=6.0; module spacer_ring() { difference() { cylinder(h=spacer_height,r=outside_diameter/2,center=true); cylinder(h=spacer_height+1,r=inside_diameter/2,center=true); } } spacer_ring();
glb/cad_d7fcd911cead.glb
Create a height-adjustable monitor stand leg by constructing a composite cylindrical shape. Start with a base cylinder that is 30mm tall with a diameter of 40mm. On top of this base, add a second cylinder that is 5mm tall with a diameter of 37mm, positioned so its bottom sits at a height of 30mm. To hollow out the cent...
difference(){ union(){ translate([0,0,30]) cylinder(h=5, d=37, center=false); translate([0,0,0]) cylinder(h=30, d=40, center=false); } translate([0,0,-0.1]) cylinder(h=37, d=34, center=false); translate([0,0,-0.1]) cylinder(h=6.1, d=37.2, center=false); }
glb/cad_b751e818669b.glb
Create a Height Adjustable Monitor Stand component by constructing a hollow cylindrical assembly. Start with a base cylinder that has a diameter of 45mm and a height of 2mm. Centered on top of this base, add a second cylinder with a diameter of 37mm and a height of 6mm, positioned so that its bottom starts 2mm above th...
difference(){ union(){ translate([0,0,2]) cylinder(h=6, d=37, center=false); translate([0,0,0]) cylinder(h=2, d=45, center=false); } translate([0,0,-0.1]) cylinder(h=37, d=34, center=false); }
glb/cad_53b377456883.glb
Create a height-adjustable monitor stand foot by starting with a truncated cone that has a base diameter of 45mm, a top diameter of 40mm, and a height of 10mm. Bore a central vertical hole through the center of this cone with a diameter of 37.2mm, starting from a height of 2mm and extending through the top. To secure t...
difference(){ union(){ translate([0,0,0]) cylinder(h=10, d1=45, d2=40, center=false); } translate([0,0,2]) cylinder(h=13, d=37.2, center=false); pathRadius=28/2; num=3; for (i=[1:num]) { translate([pathRadius*cos(i*(360/num)),pathRadius*sin(i*(360/num)),-0.1]) cylinder(h=13, d=4...
glb/cad_c765d2253e38.glb
Create a 608 Bearing Washer by constructing a primary cylinder with a radius of 9.25mm and a height of 4mm. Remove a central cylindrical hole with a radius of 4mm that runs through the entire height of the object. To create the recessed outer portion, remove a ring of material from the top half of the object. This ring...
id = 8; od1 = 18.5; od2 = 12; thick = 4; difference() { cylinder(r= od1/2, h= thick); cylinder(r= id/2, h= thick); translate([0,0,thick/2]) { difference() { cylinder(r= od1/2, h= thick/2); cylinder(r= od2/2, h= thick/2); } } }
glb/cad_78dc535184ce.glb
Create a magnifier replacement holder consisting of a main ring and a side mounting block. Start by creating a hollow cylinder with an outer radius of 29mm and an inner radius of 24mm, and a total height of 6mm, centered on the origin. Attached to the side of this ring, create a rectangular mounting block measuring 1...
$fn=60; module magnifier() { hull() { cylinder(r=26, h=2.6, center=true); sphere(3); } } module mag_hull() { difference() { cylinder(r=29, h=6, center=true); cylinder(r=24, h=10, center=true); magnifier(); } } module hull_mount() { translate([34,0,1]) difference() { cube([18,15,8], center=true); ...
glb/cad_72d071e8a7d0.glb
Create a Kossel Mini carriage. Start with a main rectangular body 27mm wide, 40mm long, and 6mm thick, centered on the origin. Add two symmetrical ball joint mount horns on the left and right sides. Each horn is formed by the intersection of a 40mm wide by 18mm long by 13mm thick block and a truncated cone with a bas...
include <configuration.scad>; belt_width_clamp = 6; belt_thickness = 1.0 - 0.05; belt_pitch = 2.0; tooth_radius = 0.8; separation = 40; thickness = 6; horn_thickness = 13; horn_x = 8; belt_width = 5; belt_x = 5.6; belt_z = 7; corner_radius = 3.5; m3_nut_radius = 3.0; m3_wide_radius = 1.5; module carriage() { t...
glb/cad_633e00df651b.glb
Create a GoPro auto-panning rig mount. Start with a main circular disc that is 60mm in diameter and 4mm thick. Centered on the bottom of this disc, add a square block that measures 8.5mm by 8.5mm and extends 14mm downwards from the base of the disc. On the top surface of the disc, create a series of 11 circular holes...
difference() { union() { cylinder(h=4,r=30, $fn=100); translate([0,0,-14]) cube(size=[8.5,8.5,30],center=true); } union() { translate([0,0,-1]) for (z = [0:10]) { rotate([0,0,30*z]) translate([15+z,0,0]) cylinder(h=6,r=2, $fn=10); } } }
glb/cad_fa8f0f6f5fa3.glb
Create a GoPro auto-panning rig bracket. Start with a central rectangular block measuring 95mm in length, 15mm in width, and 15mm in height. Centered on this block, remove a rectangular section measuring 60mm in length, 9mm in width, and 70mm in height. To create mounting points for the motor and camera, add three ve...
rotate([0,45,0]) difference() { union() { rotate([90,0,0]) translate([0,7.5,-7.5]) import_stl("GoProExtensionRA_DFM.stl", convexity = 5); translate([-20,0,7.50]) cube(size=[95,15,15],center=true); } translate([-32,0,0]) cube(size=[60,9,70],center=true); translate([20,0,-1]) cylinder(h=20, r=2.2, $fn=10); translate(...
glb/cad_61b0656db0be.glb
Create a GoPro auto-panning rig mount consisting of a circular base and a central vertical column. Start by creating a wide, flat cylinder for the base with a radius of 15mm and a height of 3mm. Centered on this base, add a taller vertical cylinder with a radius of 4.4mm and a height of 17mm. Finally, bore a narrow ver...
union() { difference() { cylinder(h=17, r=4.4, $fn=100); translate([0,0,-2]) cylinder(h=25, r=1.6, $fn=100); } translate([0,0,-2]) difference() { cylinder(h=3, r=15, $fn=100); translate([0,0,-2]) cylinder(h=25, r=1.6, $fn=100); } }
glb/cad_f116407987c2.glb
Create a cylindrical mount for a GoPro auto-panning rig. Construct a solid cylinder with a radius of 10mm and a height of 13mm, centered on the origin. Bore a concentric circular hole through the center of the cylinder with a radius of 3mm and a total height of 16mm, ensuring the hole extends slightly beyond the top an...
difference() { cylinder(r=10, h=13, $fn=100, center=true); cylinder(h=16,r=3, $fn=100, center=true); }
glb/cad_15164f70751a.glb
Create a GoPro auto-panning rig bracket consisting of a flat top plate and a vertical front face. The top plate is a rectangular slab measuring 87mm wide, 35mm deep, and 5mm thick. Centered on this plate, create a 40mm diameter circular cutout that extends through the thickness. On the top surface, place two 6mm diamet...
use <Libs.scad>; manifold = 0.1; difference() { union() { top_bracket_face(); front_bracket_face(); intersection() { translate([0,11,-36.5]) cube(size=[87,30,6],center=true); } } translate([0,12,-37.3]) rotate([0,900,180]) hexBolt("1/4 Hex"); } module phantom_motor() { translate([0,55,0]) rotate([0,90,90]) cub...
glb/cad_832f3c4a2bd6.glb
Create a square fan to pipe adapter. Start with a square base plate measuring 120mm by 120mm with a thickness of 3mm. Center a circular hole through this plate with a diameter of 115mm. At each of the four corners of the square, centered 52.5mm from the middle of the plate in both X and Y directions, add a cylindrical ...
pipe_od = 98; pipe_id = 93; pipe_length = 10; fan_od = 120; fan_id = 115; fan_length = 0; transfer_length = 10; fan_size = 120; hole_spacing = 105; hole_diameter = 6.3; plate_thickness = 3.0; $fa = 1.5; $fs = 1.5; corner_chamfer_radius = (fan_size - hole_spacing)/2; translate(v=[0,0,plate_thickness]) rotate_e...
glb/cad_b729e7bbd24d.glb
Create a fume extractor housing with a tapered, open-frame structure. The main body is a truncated pyramid with a height of 18mm, transitioning from a bottom width of 76mm (60mm base plus 8mm edges on each side) to a top width of 51.6mm (48mm top plus 1.2mm thickness on each side). The walls of this pyramid are 1.2mm t...
height = 18; edge = 8; top_width = 48; bottom_width = 60; thickness = 1.2; screw_dist = 42; screw_dia = 3.1; bolt_dia = 4.1; module rcube( dims, r) { d2 = dims/2; x = d2[0] -r; y = d2[1] -r; z = dims[2]; hull() { translate([x, y, 0]) cylinder( r=r, h=z, center=true, $fn = 20); t...
glb/cad_2737c2176317.glb
Create a stop sign model by starting with an octagonal prism that is 50mm wide and 2mm thick. To create the raised border, construct a hollowed-out octagonal shell by subtracting a smaller octagon from the center of the main shape, leaving a border width of 1.35mm. Center the word "STOP" on the face of the sign using a...
sides=8; height=2; width=50; edge_width=width*2.7/100; rot=(sides>5&&(sides-3)%5==0)?45/2:((sides-3)%4==1)?45:((sides-3)%2==0)?90:0; txt="STOP"; txt_font="Lohit Telugu"; txt_size=floor(width/1.7); union() { rotate(rot) { color("gray") difference() { sphere(r=width, $fn=sides); sph...
glb/cad_a992ae7145ec.glb
Create a Mega Mount for a bicycle computer. Start with a rectangular base board measuring 110mm by 65mm with a thickness of 4mm. On top of this base, add a strengthening ridge that is 70mm long, 5mm wide, and 9.5mm high, positioned at coordinates (20, 47, 0). Integrate two identical brackets designed to rest on handle...
$nf=12; difference(){ union(){ cube([110,65,4]); translate([20,47,0]) cube([70,5,9.5]); bracket(); translate([95,0,0]) bracket(); translate([65,55,0]) yoke(); } translate([3,0,0]) megamounts(); translate([40,40,-10]) cylinder(r=2,200); translate([63,40,-10]) cylinder(r=2,200); translate([51.5,5,2]) cube(...
glb/cad_e936ef39f8af.glb
Create a reed switch mount for a bicycle. Start with a base block that is 20mm wide, 40mm long, and 15mm high. On top of this block, centered at the 30mm mark along the length, add a cylinder with a radius of 10mm and a height of 10mm. From this combined volume, remove several cylindrical holes to create mounting poi...
$fn=20; difference(){ union(){ cube([20,40,15]); translate([0,30,0]) cylinder(15,10,10); } translate([10,0,-1]) cylinder(17,9,9); translate([-10,18,7.5]) rotate([0,90,0]) cylinder(50,2,2); translate([-10,13,7.5]) rotate([0,90,0]) cylinder(50,2,2); translate([-5,30,0]) cylinder(50,2,2); }
glb/cad_415d52610db7.glb
Create a Parametric Elbow joint starting with a central sphere of radius 19.5mm. Attach a cylinder to the side of this sphere with a radius of 19.5mm and a length of 65mm, extending outward to form an arm. Hollow out the interior of this combined shape by removing a concentric sphere of radius 16.5mm and a concentric c...
module Elbow(pipe_diameter = 35, arm_length = 60) { difference(){ union(){ translate([0,0,0]) union(){ difference(){ union(){ sphere(r=pipe_diameter); translate([0,0,(pipe_diameter/2)]) rotate([0,90,90]) cylinder(h=arm_length,r=(pipe_diameter/2)); } sphere(r=pipe...
glb/cad_8b321b7df973.glb
Create a small rectangular box and lid. For the box, start with a solid rectangular block measuring 30mm wide, 20mm long, and 7mm high. Hollow out the center by removing a rectangular section starting 2mm from the bottom and 2mm from the side walls, extending to the top. To create the rim, remove a smaller rectangular ...
CxLargura=30; CxComprimento=20; CxAltura=7; caixa(); translate([0,CxComprimento+4,0]){ tampa(); } module caixa(){ difference(){ cube([CxLargura,CxComprimento,CxAltura]); translate([2, 2, 2]) { cube([CxLargura-4,CxComprimento-4,CxAltura]); } translate([...
glb/cad_b4133535d78a.glb
Create a 2D Level Fixture for a drill collar. Start with a central cylinder that has an outer radius of 20.6mm and an inner radius of 17.6mm, both with a height of 8mm. Cut a gap into this cylinder to create a C-clamp shape. On the outer wall of the cylinder, centered at a height of 4mm, create two small circular hol...
collarr = 35.2/2; union(){ difference(){ union(){ cylinder(h=8, r=collarr+3,$fn=100); translate([collarr,0,4]) cube([12,21,8], center=true); translate([-collarr*2,-collarr/2,0])cube([20,collarr,5]); } translate([collarr+1.8,0,4]) rotate([90,0,0]) cylinder(h=25, r=1.5,$fn=100, center=true); cylinder(h=8, r=collarr,$fn...
glb/cad_8dd15cab6716.glb
Create a Z Endstop Mount Adapter consisting of two main perpendicular sections. First, create a rectangular base plate measuring 16mm wide, 1mm thick, and 30mm tall. In this base plate, place two holes with a diameter of 2mm; the first hole is centered at X=5mm, Y=26mm, and the second is located 6mm away from the first...
$fn = 20; m3_hole_size = 1.5; m2_hole_size = 1; difference() { cube ([16,1,30]); translate([5, 2, 26]) { rotate([90,0,0]) { cylinder(10, m2_hole_size, m2_hole_size); translate([6, 0, 0]) { cylinder(10, m2_hole_size, m2_hole_size); } } } } ...
glb/cad_031ae13d9120.glb
Create an E-liquid mixer consisting of a base, a swinging arm, and bottle clips. First, construct the base as a rounded rectangular box with a height of 77mm. On one side, integrate a vertical housing to hold a micro-USB PCB and an Arduino Pro Mini. Include a circular cutout for a 5mm RGB LED and a hole for a push but...
use <MCAD/boxes.scad>; use <Servo_9g.scad>; DEBUG = 0; SHOWARD = 0; SHOWUSB = 0; SHOWSERVO = 0; SHOWBASE = 1; SHOWCOVER = 1; SHOWSWING = 1; SHOWCLIP30 = 1; SHOWCLIP50 = 0; SHOWASSEMBLED = 1; SWIVELAXISHOLE = 1; BHCCD = 37; BHH = 4; BHCCYD = 60; BHCCXD = 113; BHCRY = 50; BHCRX = 150; BTEXT = "The Harduisteeper"; B...
glb/cad_bf0123a3f7e8.glb
Create a 3D model of a 9G servo motor housing. Start with a central rectangular block measuring 23mm x 12.5mm x 22mm. On top of this block, center a flat rectangular plate measuring 32mm x 12mm x 2mm. Add a cylindrical section to the side of the main body with a radius of 6mm and a height of 25.75mm, centered at X=5....
module Servo_9g(){ $fn = 36; difference(){ union(){ cube([23,12.5,22], center=true); translate([0,0,5]) cube([32,12,2], center=true); translate([5.5,0,2.75]) cylinder(r=6, h=25.75, center=true); translate([-.5,0,2.75]) cylinder(r=1, h=25.75, center=true); translate([-1,0,2.75]) cube([5,5.6,24.5], ...
glb/cad_02fac0cc11cd.glb
Create an Allen Wrench Holder by starting with a base block that is 62.5mm long, 7mm wide, and 40mm high, featuring rounded corners with a 4mm radius on the Z-axis. From this block, carve out eight hexagonal holes to hold wrenches of the following sizes: 2.0mm, 2.5mm, 3.0mm, 3.5mm, 4.5mm, 5.5mm, 6.0mm, and 6.5mm. The...
$fs = 0.01; $fn = 200; hex_sizes = [2.0, 2.5, 3.0, 3.5, 4.5, 5.5, 6.0, 6.5]; font_positions = [0, 4, 2, 5.5, 5.3, 6, 5, 1.7]; gl = 46; gw = 12; gwp = -9; difference(){ intersection(){ difference(){ translate([-4.5,gwp+5.5,0]) roundedCube([gl+16.5,gw-5,40], false, 4, "z"); for(i=[0:7]){ translate(...
glb/cad_540d19ca6b55.glb
Create a Square Fan to Pipe Adapter consisting of a mounting plate, a transition section, and a cylindrical pipe. First, create a square mounting plate 92mm wide and 3mm thick. Center a hole in the plate formed by the intersection of a circle with a diameter of 88.2mm and a square with a side length of 88.2mm, both ro...
flange_gasket_only = 0; flange_gasket_thickness = 1; pipe_wall_thickness = 1.68; pipe_od = 78.6; pipe_id = pipe_od - pipe_wall_thickness * 2; pipe_length = 15; transition_length = 15; fan_wall_thickness = 1.9; fan_round_od = 103.7; fan_round_id = fan_round_od - fan_wall_thickness * 2; fan_square_od = 92; fan_squ...
glb/cad_3f3ec8ad30a5.glb