Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Nespresso screw removal tool consisting of a faceted handle and a specialized socket. Start by creating a 16-sided polygonal prism for the handle with a total height of 30mm and a radius of 4mm. If a shaped grip is desired, modify the handle's profile between the 15mm and 25mm height marks by creating a tapere...
margin=0.1; shapedHandle=1; sides=16; module screw_head() { scale([1.15, 1, 1]) cylinder(1, (3.3+margin)/2, (3.3+margin)/2, $fn=100); } difference() { if (shapedHandle) { union() { cylinder(15, 4, 4, $fn=sides); translate([0, 0, 15]) hull() { cylinder(1, 4, 4,...
glb/cad_fa578970e4c1.glb
Create a rotating logo stake by constructing three intersecting geometric components. First, create a vertical square pillar with dimensions 5mm by 5mm and a height of 30mm. At the top of this pillar, attach a horizontal rectangular plate measuring 44mm in width, 5mm in depth, and 5mm in thickness, centered so that it ...
HEIGHT=30; TEXT="A"; TEXTSIZE=35; XTEXTOFFSET=3; YTEXTOFFSET=-1; STAKE=5; union() { translate([-STAKE/2,0,0]) cube([STAKE,HEIGHT,STAKE]); translate([-22,HEIGHT,0]) cube([44,STAKE,STAKE]); translate([XTEXTOFFSET-22,HEIGHT+STAKE+YTEXTOFFSET,0]) linear_extrude(height = STAKE, convexity = 10) ...
glb/cad_361a717919af.glb
Create a hexagonal base and frame for a construction kit. The overall shape is a regular hexagon with a side length of 41mm (40mm plus a 1mm groove). First, construct the frame as a hexagonal ring with a wall thickness of 2mm and a height of 10mm. Within this ring, create a 1mm wide groove centered 1mm from the inner...
part = "Base"; sides = 6; sidelength = 40; groove = 1; basefill = "Subdivided"; seed=1234567890; lados = sides; long_lado=sidelength; ranura = groove; borde = 1; ext = 4; random = rands(0,1,3000,seed); $fn = 80; gr = 2; stop=8; translate([0,0,0.01]){ if(part=="Base"){ filledBase(lados,long_lado+ra...
glb/cad_f2b756e3a027.glb
Create a 3D plate called Subdivided Surfaces with a thickness of 1mm. The base shape is a rectangle measuring 80mm in width and 40mm in height. The design is a recursive 2D subdivision pattern. Start by creating a hollow rectangular frame with a wall thickness of 2mm. Within this frame, divide the interior space into...
seed=1234567890; shape = "Rectangle"; extrusion=1; width = 80; height = 40; radius = 50; sides = 6; sidelength = 40; gr = 2; stop = 8; random = rands(0,1,5000,seed); $fn = 100; linear_extrude(height=extrusion){ union(){ if(shape=="Polygon"){ rad = radioOut(sides,sidelength); ...
glb/cad_d3ce276e912e.glb
Create a replacement knob by starting with a base shaped as a 12-sided polygonal frustum with a height of 5mm, a bottom diameter of 60mm, and a top diameter of 30mm. Center a vertical hole with a diameter of 7mm through the middle of this base. On top of the base, add a handle that is 30mm high and 4mm wide. This handl...
W=30; BW=60; H=5; FN = 12; ID=7; EDGE=1.5; HH = 30; HW = 4; HXAS = 1.5; union(){ difference(){ cylinder(d1=BW,d2=W,h=H,$fn=FN); translate([0,0,-1])cylinder(d=ID,h=H+2,$fn=60); } x = 1; translate([ID-EDGE,0,H/2])cube([ID,ID,H],true); difference(){ scale([HXAS,1,1])tra...
glb/cad_3aa49fe849d9.glb
Create a stand for tiny figures consisting of a tapered circular base and a small cylindrical peg. Start by creating a frustum with a height of 5mm; the bottom face should be a circle with a diameter of 50mm, tapering upward to a top face with a diameter of 40mm. Centered on the top surface, but offset 5mm from the cen...
base_height = 0.50; base_diameter = 4.0; base_difference = 1.0; peg_height = 0.4; peg_diameter = 0.45; peg_offset = 0.5; scale([10,10,10]) union(){ cylinder(h = base_height, r2 = base_diameter / 2.0, r1 = (base_diameter + base_difference) / 2, $fn = 100); translate([ peg_offset, 0, 0]) cylinder(h = base_heigh...
glb/cad_576e94c263b5.glb
Create a pool inlet cap by starting with a solid cylinder that has a radius of 43.25mm and a height of 15mm. Inside this cylinder, create a concentric hole to form an internal metric thread. This threaded void should have a diameter of 82.5mm, a pitch of 3mm, and a depth of 11mm, starting from the bottom face and exten...
$fn=200; use <threads.scad>; difference(){ union() { difference() { intersection() { cylinder(r=86.5/2, h=15); } intersection() { union(){ translate([0,0,-0.05]) metric_thread(diameter=86.5-4, pitch=3, length=11,internal=true); } } } } };
glb/cad_96189c82ee0b.glb
Create a Wrench for Sink Drain Nut by combining a cylindrical head with an L-shaped handle. Start with a cylinder that has a radius of 31.76mm and a height of 12.3mm, using 100 facets for a smooth circular profile. Carve a notch into this cylinder to create a hexagonal opening for the nut; this cutout should be a recta...
wrenchSize = 42.35; howCircular = 100; outerCircleRad= (wrenchSize*3/2)/2; height = 12.3; handlePart1 = [45.5,80,height]; handlePart2 = [45.5,130,height]; triangleCutOutPoints = [[0,0,0],[0,0,height+2],[wrenchSize,0,0],[wrenchSize,0,height+2],[wrenchSize/2,15,0],[wrenchSize/2,15,height+2]]; trangleCutOutFaces = [[1...
glb/cad_33c20427ccef.glb
Create a Color Light base by constructing a thin rectangular plate and a recessed inner tray. Start with a solid rectangular base measuring 77mm by 77mm with a height of 2mm. Centered on top of this base, add a second rectangular ring that is 71mm wide, 71mm long, and 4mm high. Inside this second volume, carve out a ce...
$fn=64; w=72; l=56; d=53.50; rotate ([0,0,90]) translate ([0,0,-3.5]) cube ([w+5,w+5,2,], center=true); difference(){ color ([0,0,1]) cube([w-1,w-1,4,], center=true); translate([0,0,1]) cube([w-10,w-10,3,], center=true); }
glb/cad_d50e38109e1b.glb
Create a rectangular box for a color light container with overall dimensions of 77mm in width, 61mm in length, and 58.5mm in height, centered on the origin. On the top face of the box, centered at the origin, create a square hole measuring 7.56mm by 7.56mm with a depth of 20mm to accommodate a button. Additionally, cre...
$fn=64; w=72; l=56; d=53.50; led=5.5; led2=4; difference(){ cube ([w+5,l+5,d+5], center=true); translate ([-2*-w/4-10,l-35,d-30]) cylinder (r=led2/2, h=20,center=true); translate ([w/4,l-35,d-30]) cylinder (r=led/2, h=20,center=true); translate ([-2*-w/4-35,l-35,d-30]) cylinder (r=led2/2, h=20,center=true); trans...
glb/cad_b86acb5011d5.glb
Create a parametric payment keychain by starting with a rectangular base that is 33mm wide, 50.5mm high, and 2mm thick. Round all four outer corners of this base with a radius of 4mm. In one corner of the base, create a circular hole with a radius of 2.5mm, positioned such that its center is 4.5mm from both the side an...
k_thick = 2; p_depth = 1; k_radius = 4; p_radius = 2; h_radius = 2.5; k_width = 33; k_height = 50.5; p_width = 31; p_height = 41; module 2d_pocket(){ offset(r = p_radius) { square([p_width-2*p_radius,p_height-2*p_radius],center = true); } } module 2d_outer(){ offset(r = k_radius) { square...
glb/cad_82cb50fecbf7.glb
Create a CableClip by starting with a solid rectangular block that has a width of 13.4mm, a height of 5.5mm, and a depth of 2mm. Carve a rectangular hole through the center of this block along its depth to create a U-shaped channel. This inner cutout should be 10.8mm wide and 5.1mm high, positioned so that there is a w...
include <Values.scad> wallThickness = 1.3; clipHeight = 2; clipClipLength = 1.7; innerClipWidth = chainLinkWidth + 4*connectorThickness; outerClipWidth = innerClipWidth + 2*wallThickness; innerClipHeight = connectorRadius * 2 + 2.5*clearing; outerClipHeight = innerClipHeight + 2*wallThickness; module CableClip() ...
glb/cad_4ad617302d4a.glb
Create a ConfigChain cable drag chain link. The link is based on a central rectangular body with a width of 10mm, a height of 12mm, and a wall thickness of 2mm. The main structure consists of two vertical walls, each 10mm wide and 12mm high, separated by a central gap of 1mm. To form the connectors, add two semi-cyli...
use <Connector.scad> include <Values.scad> FemaleConnectorHeight = connectorRadius + filamentDiameter/2 + connectorThickness + filamentHoleWallThickness; module chainPiece() { Connectors(chainLinkWidth/2); if(gapSize != 0) { translate([-chainLinkWidth/2 - connectorThickness, 0, connectorRadius*2 - cablewa...
glb/cad_3a7bb5317a4c.glb
Create a Multiple Shape Bed Levelling Test consisting of several flat geometric elements, all with a uniform height of 0.1mm. Place four squares, each measuring 50mm by 50mm, at the corners of a 150mm by 150mm area. In the center of this area, place a smooth cylinder with a radius of 25mm and a height of 0.1mm. Surroun...
bed_max_x = 150; bed_max_y = 150; plate_size = 50; height = .1; triangle_factor = 1.25; module four_corners() { translate([bed_max_x-plate_size,0,0]){ cube([plate_size,plate_size,height]); } translate([bed_max_x-plate_size,bed_max_y-plate_size,0]){ cube([plate_size,plate_size,height]); ...
glb/cad_c0a3f6a6c974.glb
Create a poker chip stack container by starting with a main cylinder that has a diameter of 41.7mm and a total height of 50.35mm. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a diameter of 40.2mm, starting from a height of 10.75mm and extending to the top, leaving a base thickne...
chip_diameter = 40; chip_thickness = 3.3; stack_height = 12; wall_thickness = 0.75; slot_opening = 8; leg_length = 10; slop = 0.2; difference() { cylinder(h=((stack_height * chip_thickness) + wall_thickness + leg_length), d=(chip_diameter + (2 * wall_thickness) + slop)); translate([0,0,wall_thickness + ...
glb/cad_c2cc813b8513.glb
Create a Hydraulic Hose Cutter consisting of a cylindrical base and a slotted upper body. Start with a main cylinder that is 7.3mm in height and 5.1mm in diameter. At the bottom of this cylinder, center a wider circular base plate with a diameter of 5mm and a height of 3mm. On the top surface of the main cylinder, crea...
$fa=.1; $fs=.1; thickness=5.1; radius=10 ; difference () { union () { cylinder(7.3,2.4,2.4); translate([0,0,-1]) cylinder(1,3.5,3); translate([0,0,7.2]) cylinder(1,2.4,2.6); translate([0,0,8.2]) cylinder(1,2.6,2.4); } translate([0,0,8]) # cube ([1,8,10], center=true); }
glb/cad_c1780ec1c2d9.glb
Create a Hydraulic Hose Cutter consisting of two main interlocking parts: a base handle and a sliding blade carrier. The base handle is a rectangular block 62mm wide, 61mm long, and 11mm high. On the right side, remove a cylindrical cutout with a radius of 6mm centered at X-10, Y-25, and Z-2.5. The blade carrier is ...
$fa=.1; $fs=.1; thickness=5.5; radius=10 ; base_height=11; degrees=90; n=1; difference() { translate([52,-3.5,-4.5]) cube ([10,57.5,base_height], center=false); translate([77,27,-4.6]) cylinder(12,20,20); } difference() { union() { cube ([52,50,2], center=false); translate([0,-2,-...
glb/cad_8d7ab1d059ce.glb
Create a Hydraulic Hose Cutter designed for a 5mm hose. Start with a main rectangular base measuring 54mm in width, 57.5mm in depth, and 8mm in height. On the left side, attach a handle block measuring 8mm by 57.5mm with a height of 10mm. Carve a central cavity into the base to house a blade carrier. This cavity consi...
$fa=.1; $fs=.1; thickness=5.1; radius=10 ; base_height=8; degrees=90; n=1; scale=1.3; difference() { union() { translate([-2,-3.5,-(base_height/2)+1]) cube ([54,57.5,base_height], center=false); translate([-2,-3.5,-4]) cube ([8,57.5,10], center=false); } translate([-16,27,-4.5]) cylinder(12,...
glb/cad_40c5d6e6e2a6.glb
Create a Wheel Rim Mount Center Ring by constructing a hollow cylindrical body with an outer diameter of 67.1mm and a total height of 6.5mm. Remove a central cylindrical hole with a radius of 28.65mm (57.3mm diameter) that runs through the entire height of the object. At the bottom of the ring, create a conical bevel t...
$fn=256; inner = 56.6; outer = 67.1; clearance = 0.3; height = 6.5; cone = 2; inner_cone = 1; ridge_displacement = 3; ridge_thickness = 0.25; ridge_height = 2; hole = inner / 2 + clearance; difference() { union () { cylinder(r=outer/2, h=height); cylinder(r1=(outer + 2*cone)/2, r2=outer/2, h=cone); translate...
glb/cad_1cf32c3c39d7.glb
Create a Tube Plattform for mounting devices to a tube. Start by constructing a main body that is a convex hull connecting a cylinder with a diameter of 8mm and a height of 27mm to a rectangular block. This block should be 27mm wide, 27mm long, and 1mm thick, positioned 7mm away from the central axis of the cylinder. ...
tube_diameter=8; plattform_type=1; plattform_distance=7; plattform_size=27; $fn=50; module torus( ra, di ) { rotate_extrude(convexity = 10) translate([ra, 0, 0]) circle(d = di); } difference() { hull() { cylinder( d=tube_diameter, h=plattform_size ); if( plattform_ty...
glb/cad_a504459cefe7.glb
Create a Moto G4 Plus phone cover with an overall length of 150mm, width of 74.2mm, and height of 8.2mm. The main body should be a hollow shell with a wall thickness of 1.6mm and rounded corners with a diameter of 22mm. The cover should feature a large rectangular cutout on the back for a label. On the sides and top,...
l = 150; w = 74.2; h = 8.2; cnr = 22; bulge = 2; thick = 1.6; lip = 1.8; $fn=32; difference () { union() { difference () { union () { translate([10,10,-2]) minkowski () { cube([l-20,w-20,h]); cylinder(d=24,h=h/2); } translate([-1,26,0]) cylinder(...
glb/cad_8104efeeebe2.glb
Create a bottle stay consisting of a flat, elongated loop. Start by forming the main body as a solid shape 6mm thick, created by connecting a 54mm diameter cylinder at one end to a 20mm diameter cylinder 50mm away. Hollow out the center of this shape by removing a similar form that is 6.2mm thick, consisting of a 47mm ...
$fn=60; difference () { hull () { translate([0,0,0]) cylinder(d=54,h=6); translate([50,0,0]) cylinder(d=20,h=6); } hull () { translate([0,0,-0.1]) cylinder(d=47,h=6.2); translate([50,0,-0.1]) cylinder(d=13,h=6.2); } } hull () { translate([30,-14,0]) cylinder(d=2,h=4); translate([30,14,0]) ...
glb/cad_93aaed903037.glb
Create a 3D surface model based on a mathematical heightmap. The overall shape is a rectangular slab with a flat bottom and a complex, undulating top surface. The base of the model is a flat plane. The top surface is defined by the function $z = 2\cos(3x) - 3\cos(2y)$, creating a series of rhythmic peaks and valleys. ...
function append(vec, vals) = let( l1 = len(vec), n = l1 + len(vals)) [for (i=[0:n-1]) i < l1 ? vec[i] : vals[i - l1]]; function remove(vec, index) = [for(i=[0:len(vec) - 2]) vec[i < index ? i : i+1]]; function uniques(vec) = let( partial ...
glb/cad_be014bd2f1fe.glb
Create a Tube Stand consisting of a flat rectangular base and a raised holder section. Start by creating a rectangular base plate 3mm thick, with a width of 22.5mm and a total length of 90mm. On top of this base, build a holder that is 15mm high. This holder is formed by a continuous solid block with rounded ends, encl...
thickness=2; tubeDia=12.5; tubeRad=tubeDia/2; space=5; plateWidth=tubeDia+thickness+space*2; tubeNum=5; plateLength=tubeNum*tubeDia+(tubeNum+1)*space; fn=32; holderHeight=15; plateHeight=3; linear_extrude(holderHeight){ difference(){ hull(){ for(i=[0:tubeNum-1]){ translate([i*(spa...
glb/cad_b6fcb994c63b.glb
Create a replacement knob shaft by starting with a thin circular base 16mm in diameter and 1mm thick. Centered on this base, add a vertical cylinder with a radius of 5mm and a height of 14mm. Hollow out the center of this vertical cylinder by removing a smaller cylinder with a radius of 3mm and a height of 15mm. Finall...
roundness = 100; union(){ cylinder(r=8, h=1, $fn=roundness); translate([0,0,1]){ difference(){ cylinder(r=5, h=14, $fn=roundness); cylinder(r=3, h = 15, $fn=roundness); translate([0,0,12.5]) cube([2,11,5], center=true); } } }
glb/cad_e2b03d6ba6eb.glb
Create a Mokka Pot Funnel and Tamper set. For the funnel, create a hollow conical shape with a height of 40mm. The base should be a cylinder with an outer diameter of 66mm and an inner diameter of 65mm, creating a wall thickness of 0.5mm. This base extends upward into a wider funnel opening with a maximum diameter of 1...
da=65; di=53; w=0.8; bd=120; dd=bd/2; d1=di; d2=da+1; $fn=80/1; rotate(a=180,v=[0,1,0]) translate([0,0,-40]) difference(){ union(){ cylinder (40,d1/2,dd+2*w); translate([0,0,-5]) difference(){ cylinder (40,(d2+2*w)/2,(d2+2*w)/2); cylinder (40,d2/2,d2/2); } } cylinder (40.01,d1/2-2*w,dd); cylinder(5,(d1-w*2)/2,...
glb/cad_a890f2f4c635.glb
Create a Y axis clamp for a 3D printer carriage. Start with a base mounting plate 52mm long, 25mm deep, and 6mm thick. From this plate, extend two side walls upwards to a total height of 25mm. These walls should be 3mm thick and leave a central gap of 10mm. At the top of the structure, create two belt clamps, each 23m...
mount_hole_spacing = 10; mount_hole_dia = 3.5; mount_nut_dia = 6.4; mount_nut_depth = 2; carriage_y = 52; carriage_z = 25; carriage_plate_thickness = 6; carriage_side_thickness = 3; belt_clamp_height = 9.5; belt_clamp_width = 23; belt_clamp_chamfer = 2; belt_clamp_depth = 10; belt_tooth_diameter = 1.25; belt_pitch = ...
glb/cad_2db20ba96c1e.glb
Create a Customizable Hammond Style Box consisting of a body and a lid. For the 1550A configuration, create a body with outer dimensions of 89mm length, 35mm width, and 30.1mm height. The body should have rounded corners with a 3.5mm radius and a hollow interior measuring 86mm by 32mm with a depth of 27.1mm. At each of...
part = "both"; type = "hammond1550a"; diameterOffsetBodyHole = -0.25; additionalWallBody = 0.00; zOffsetBodyHole = 0.00; diameterOffsetLidHole = 0.10; additionalWallLid = 0.00; zOffsetLidHole = 0.00; snapWidth = 1.00; $fn = 36; print = true; enclosure(type, part); module enclosure(type, part, boxColor) { i...
glb/cad_d4b0b64c5c7b.glb
Create a customizable bearing consisting of an inner ring, an outer ring, and a series of spherical balls. The total height of the bearing is 12mm. Construct the inner and outer rings by rotating a specific 2D profile around a central axis. The profile is defined by a vertical line at the inner radius (5mm) and a vert...
height=12; outer_diameter=40; inner_diameter=10; ball_diameter=9.5; w=0.4; a=4.5; rr=1; ab=15; fn = 128; fnb = 64; fns = 32; view_sectioned = 1; view_info = 0; force_view = 0; tol=0.01; rw=ball_diameter/2+w; dd=(outer_diameter-inner_diameter)/2; t=dd-2*w-ball_diameter; o=asin(a/2/rw); V_bearing=concat( [...
glb/cad_81348b3bfa2d.glb
Create a protective square case for a card reader consisting of two symmetrical halves. Each half starts as a solid block measuring 31mm wide, 24mm deep, and 18mm high. From each block, carve out a central rectangular cavity measuring 26mm wide, 26mm deep, and 15mm high, leaving a wall thickness of 2.5mm on the sides a...
dongle = [25, 25, 12]; box = dongle + [6, 24, 6]; translate([2,0,0]) difference() { intersection() { case(); cube(box - [0, 0, 6]); } translate([0,13,12]) rotate([180,0,180]) nubs(); translate([0,36,12]) rotate([180,0,180]) nubs(); } translate([-2, 0, 18]) rotate([0, 180, 0]) intersection() { case(...
glb/cad_d45dad5fa3b2.glb
Create a protective square case for a card reader consisting of two mirrored halves. Each half starts as a rounded box with overall dimensions of 30mm x 28mm x 17mm and a corner radius of 2mm. Hollow out the center of each half to create a cavity that fits a 25mm x 25mm x 12mm device. In the main body, carve a 45-deg...
dongle = [25, 25, 12]; box = dongle + [5, 23, 5]; magnetSize = [2.4, 1.6]; round_r = 4; $fn = 20; translate([round_r/2, round_r/2, round_r/2]) { union() { difference() { case(); translate([-round_r/2-1, -round_r/2-1, -round_r/2-1 + 12]) cube(box + [2,2,2]); } translate([box[0]/4-magnetSize[0],box[1]*0....
glb/cad_df6fadc75f0f.glb
Create a cookie rack foot by starting with a solid rectangular block measuring 12.4mm wide, 14.2mm deep, and 20.6mm tall. From this block, remove material to create a specialized clip-on cavity designed to hold two intersecting rods, each with a diameter of 7.5mm. First, carve a horizontal cylindrical tunnel with a 7.5...
module rack_foot(rod_thickness, offset, width, depth) { difference() { translate([-width/2, -depth/2]) cube([width, depth, offset + 2*rod_thickness]); translate([-(1+width), 0, (offset + rod_thickness/2)]) rotate([0, 90, 0]) cylinder(h=2*width, d=rod_thickness, $fn=20); ...
glb/cad_955dc4051cc8.glb
Create a Parametric VR Goggles assembly consisting of four main components: a clip, a cradle, a spacer, and a back strap. First, create a clip to hold the phone. It is a rectangular frame with an outer width of 130mm (124mm phone height plus 3mm walls on each side) and a height of 12mm. The inner cavity is 124.3mm wid...
printer_tol = 0.15; phone_height = 124; phone_width = 58.76; phone_thickness = 7.7; screw_head_diam = 8; screw_shaft_diam = 3.9; hole_size = 4.5; socket_standoff = 4; focal_length = 45; lens_diam = 25; lens_thickness = 4.65; ipd = 60; min_wall_t = 3; pad_size = screw_head_diam + socket_standoff; module screw_pad...
glb/cad_2e4afc9ff461.glb
Create an LED light tube wire clamp with a total thickness of 11.5mm and a width of 25.25mm. The main body is formed by the intersection of a rectangle and a large oval, with a smaller oval cutout removed from the center. At the corners of the width, remove small 2mm by 4mm rectangular notches. Integrate a central bo...
b=25.25; h=18; t=11.5; $fn=360; BB1=[0,0]; BB2=[0,25]; BB3=[18,25]; BB4=[18,0]; CC1=[0,12.5]; CC2=[14,12.5,1]; module bounding_box() { polygon(points=[BB1, BB2, BB3, BB4, BB1]); } module big_circle() { translate(CC1) scale([1.0,0.5]) circle(r=25); } module inner_circle() { translate(CC2) scale([1.3, 1.0]) circl...
glb/cad_898881c0df1c.glb
Create a mechanical assembly called The Convenient Typer consisting of two spur gears positioned side-by-side. The first gear has 19 teeth with a circular pitch of 700mm. It features a gear thickness of 10mm, a rim thickness of 12mm, and a hub thickness of 22mm with a hub diameter of 23mm. The bore diameter is 16mm. ...
test_backlash (); pi=3.1415926535897932384626433832795; module bevel_gear_pair ( gear1_teeth = 41, gear2_teeth = 7, axis_angle = 90, outside_circular_pitch=1000) { outside_pitch_radius1 = gear1_teeth * outside_circular_pitch / 360; outside_pitch_radius2 = gear2_teeth * outside_circular_pitch / 360; pitch_apex1...
glb/cad_bd9d2836bfbd.glb
Create an Ergonomic Door Knob Lever adapter. Start by creating a hollow cylindrical ring with an inner diameter of 55.3mm (54.8mm plus a 0.5mm tolerance) and a height of 20mm. The wall thickness of this ring is 2mm. Integrated into the top of this ring, construct an ergonomic handle that extends outward. This handle i...
use <threads.scad> sfn = 4; nom_knob_diam = 54.8; knob_width = 20; knob_thick = 2; bolt_nomdiam = 5; bolt_nomlen = 12; bolt_compressby = 2; bolt_support_angle = 24; bolt_offset_out = 10; lever_intersect_angle1 = -25; lever_intersect_angle2 = 40; lever_end_angle = -50; lever_circ1_diam = 50; lever_circ2_diam = 100...
glb/cad_92f89ca1cb5c.glb
Create a Robot Mk8 figure 60mm tall. Construct the body as a rectangular block 22mm wide by 20mm high by 10mm thick with chamfered edges. On the chest, add a circular dial 18mm in diameter with a 10mm inner hole and a thin needle pointing at a 10-degree angle. Position a head on top of the body, 16mm wide by 14mm hig...
lFit=0.4; legHole=5.5; legWidth=6.1; shoulderBoneWidth=3.8; shoulderBoneDia=5.7; chestLogo=1; slice=0; dialAngle=10; keyRing=1; $fn=50; make(slice); module make(slice=0){ if(slice==1){ difference(){ union(){ body(); tx(-15) rightArm(); tx(15) leftArm(); tx(-5) rightLeg()...
glb/cad_a802cf7e130b.glb
Create a Robot Mk8 figure 60mm tall. Construct a rectangular body 22mm wide, 20mm high, and 10mm thick with chamfered edges. On the front chest, center a circular dial 18mm in diameter with a 10mm inner hole and a small needle indicator. For the head, place a chamfered block 16mm wide, 14mm high, and 10mm thick atop t...
lFit=0.4; legHole=5.5; legWidth=6.1; shoulderBoneWidth=3.8; shoulderBoneDia=5.7; chestLogo=0; $fn=50; body(); tx(-15) rightArm(); tx(15) leftArm(); tx(-5) rightLeg(); tx(+5) leftLeg(); module rightLeg(){ e=2.5; jh=10-1/2; jt=10; bt=10; ty(-6) tz(bt/2) difference(){ cube([legWidth,jh,jt],center=true); ...
glb/cad_b0e68c02347d.glb
Create a Robot Mk8 figure 60mm tall. Construct a rectangular body 22mm wide by 20mm high and 10mm thick with chamfered vertical edges. On the chest, add a circular dial 18mm in diameter and 2mm thick, featuring a central 10mm hole and a thin needle pointing at a specific angle. For the head, create a chamfered rectang...
chestLogo=0; slice=0; dialAngle=10; keyRing=1; scaleFactor=1; shaftD=5; shaftL=4; hingeD=7; hingeL=2; fit=0.9/scaleFactor; lFit=0.4; legHole=5.7; legWidth=6; $fn=60; scale([scaleFactor,scaleFactor,scaleFactor]) make(slice=0); module make(slice=0){ difference(){ union(){ head(); body(); r...
glb/cad_757dccb2e9c2.glb
Create a collet for a tap holder. Start with a base cylinder 31.25mm high with a radius of 6.875mm. From a height of 10mm, add a conical section that transitions from the base radius to a radius of 7.5mm over the remaining height. Above this, add a second conical section that further expands from a radius of 7.5mm to 1...
typ="H"; dbd=3.2; f2f=6.25; ffn=6; fop="V"; fvs=0.5; gap=0.25; ono=3; omn=0.5; collet(typ); module collet(typ) { difference() { body(); if( typ == "C" ) { drill_bit(); openings(); } else if( typ == "H" ) { union() { accessoire_bit(); if( fop == "V" ) { openings(); ...
glb/cad_2d1553af0702.glb
Create a V-mount for an F5J glider. The model consists of a central mounting body with two symmetrical arms. Start with a central cylindrical section with a diameter of 12.5mm and a wall thickness of 2mm. This central section is extruded to a height of 16mm. Extend two arms from the center, each 16mm wide. The arms...
eje=2.5; diametro=12.5; pared=2; ojuelo=8; altura=16; separacion=35-9; ancho_brazo=16; ancho_brazo_base=ancho_brazo; ancho_corte=ancho_brazo; ancho_base=separacion-pared; alto_base=(ojuelo-eje)/2; alivio=(separacion-pared*5)/2; corte=diametro; $fn=100; module brazos() { difference() { linear_extrude(heig...
glb/cad_3898ee38e69b.glb
Create a V-mount for an F5J glider. The model consists of a central mounting body with two symmetrical arms. Start by creating a central cylindrical section with an outer diameter of 16.5mm and an inner hole of 12.5mm, extending to a height of 16mm. This section serves as the main sleeve. From this central cylinder...
eje=2.5; diametro=12.5; pared=2; ojuelo=8; altura=20; separacion=35; ancho_brazo=16; ancho_brazo_base=ancho_brazo; ancho_corte=ancho_brazo; ancho_base=separacion-pared; alto_base=(ojuelo-eje)/2; alivio=(separacion-pared*5)/2; corte=diametro; $fn=100; module brazos() { difference() { linear_extrude(height...
glb/cad_fb9e0394c639.glb
Create a vacuum hose connector adapter consisting of two concentric threaded cylinders connected by a tapered transition. Start with a large internal metric threaded cylinder with a diameter of 82.5mm, a height of 17mm, and a thread pitch of 2.65mm. At the base of this cylinder, create a hollow center with a wall thi...
use <threads.scad>; wall_thickness = 3; nub_length = 12; nub_width = 6; nub_height = 11; groove_width = 2; groove_depth = .5; large_diameter = 82.5; large_height = 17; large_thread_pitch = 2.65; small_diameter = 47.25; small_height = 16; small_thread_pitch = 2; stop_diameter = 56; taper_height = 28; thread_wi...
glb/cad_9d491d58f720.glb
Create a vacuum hose connector adapter featuring a male metric thread. The main body is a cylinder with a diameter of 34mm and a total length of 10mm. Construct the external thread with a pitch of 1mm and a single start. The thread should be right-handed and wrap around the 34mm diameter cylinder for the full 10mm le...
metric_thread(8, 1, 8); pi = 3.14159265; function segments(diameter) = min(50, ceil(diameter*6)); module metric_thread(diameter=8, pitch=1, length=1, internal=false, n_starts=1) { n_turns = floor(length/pitch); n_segments = segments(diameter); h = pitch * cos(30); union() { intersection() { ...
glb/cad_bbd8c0254e58.glb
Create a Burgle Bros game box organiser consisting of a hollow rectangular base and a sliding lid. Construct the base as a rectangular shell with outer dimensions of 90mm in length, 28mm in width, and 18mm in height. The walls should be 4mm thick. On the top surface of the base, create a recessed channel that allows ...
module complete_box(){ Box_side=[[0,0],[4,28],[62,28],[66,0]]; rotate([90,0,0]) difference(){ linear_extrude(height=90) polygon(Box_side); translate([8,(18/2)+(28-18)/2,(90-(18*4))/5 + 18/2]) rotate([0,90,0]) cylinder(h=50,r=18/2); translate([8,(18/2)+(28-18)/2,(((90-(18*4))/5 )*2) ...
glb/cad_1a650240f8c6.glb
Create a Nema 17 stepper motor model. Start with a main body as a cube of 42mm x 42mm x 43.3mm. Bevel the four vertical edges by removing 5mm x 5mm square prisms rotated 45 degrees at each corner. Additionally, remove four 10mm x 10mm square prisms rotated 45 degrees from the corners, centered vertically, leaving a hei...
Nema17(); module Nema17(height = 43.3) { size = 42; bevel1 = 5; bevel2 = 10; RecessDepth = 0.65; CenterRaisedZ = 2.25; ShaftCutoutDepth = 5; ShaftDiameter = 5; ShaftDiamFlat = 4.55; ShaftDiamDiff = ShaftDiameter-ShaftDiamFlat; ShaftLen = 22; UnflattenedLen = 7; FlatLen = ShaftLen-UnflattenedLe...
glb/cad_78f984bc413a.glb
Create a set of eight identical nails. Each nail consists of a head, a shaft, and a pointed tip. Start with the head, which is a thin cylinder 8mm in diameter and 2mm thick. Attached to this head is a hexagonal shaft with a diameter of 4mm. The shaft extends straight for 37.32mm. At the end of the shaft, add a conica...
quantity = 8; nail_diam = 4; nail_len = 40; nail_sides = 6; nail_tip_angle = 30; head_diam = 8; head_thick = 2; nail_tiplen = (nail_diam/2) / tan(nail_tip_angle); nail_straightlen = nail_len - nail_tiplen; nail_zoff = (nail_diam/2) * cos(180/nail_sides); nail_width = (nail_diam > head_diam) ? nail_diam : head_diam; ...
glb/cad_d8e512875aa1.glb
Create a Flex Box consisting of a grid of interlocking plates connected by thin hinges. The overall layout is a 3x6 grid of square faces, each measuring 25.4mm by 25.4mm with a thickness of 3.175mm. Each square face is a truncated pyramid shape, created by taking a square base and tapering the sides inward toward the...
inch = 25.4; $fs=.5; x=0; y=1; z=2; hinge_thickness = .45; fit_clearance = .2; face_size = [1 * inch, 1 * inch, 1/8 * inch]; flex_box(); module flex_box() { intersection() { union() { faces(); hinge(); } translate([0, 0, face_size[z]/2]) l...
glb/cad_8d5b6d5553a4.glb
Create an iPhone 6 Plus Audio Console Holder designed to fit into an XLR connector. Start by creating a cylindrical foot with a radius of 9.7mm and a height of 100mm. Hollow out the center of this cylinder with a smaller 8mm radius hole to accommodate the connector. For the main body, construct a shell that acts as a ...
f=19.2; b=35; translate([0,-10,30]) rotate ([45,0,0]) translate ([-(27.5+(f/2)),5,0]) union () { translate ([0,35,0]) difference () { translate ([-2.5,-2.5,11.5]) cylinder (r=4, h=1, $fn=50); difference () { translate([-30,-30,0]) cube ([30,30,20]); cylinder (r=5, h=25, $fn =50); } translat...
glb/cad_0ac0a93300d4.glb
Create a Virb Action Cam Grip by starting with a central horizontal cylinder 100mm long with a radius of 11mm. At the right end of this cylinder, center a sphere with a radius of 11mm. Along the top surface of the cylinder, add a series of organic, rounded protrusions created by blending spheres and cylinders. Specific...
rd=11; hd=100; $fn=60; x=0; h=0.5; difference(){ union(){ rotate([0,90,0]) cylinder(r=rd, h=hd); #sphere(rd); translate([-18,0,h]) top(10); translate([2,0,h+0.5]) top(5); translate([25,0,h+1]) top(5); translate([48,0,h+1.5]) top(5); translate([68,0,h+2]) top(-7); translate([hd+2,-rd/2-1.5,-rd+5.5]) rotate([90,0,90]) c...
glb/cad_44bea650e977.glb
Create a remote control clip-on holder. Start with a base plate measuring 60mm in length, 25mm in width, and 6mm in height, with all corners rounded to a 2mm radius. At one end of the base, centered along the width, add a vertical backstop that is 4mm long, 9.25mm wide, and 4.65mm high, with a 0.5mm corner radius. Remo...
module rounded_cube(sizes, corner_radius) { length = sizes[0]; width = sizes[1]; height = sizes[2]; hull() { for (x = [-1, 1]) { x_offset = ( x > 0 ? length : 0); for (y = [-1, 1]) { y_offset = (y > 0 ? width : 0); for (z = [-1, 1]) { ...
glb/cad_bf35a9d5ffc4.glb
Create a fixing block for a Mendel90 frame. Start with a solid rectangular block with a width of 15mm, a depth of 15mm, and a height of 15mm. Round the vertical corners with a radius of 3mm. Slice the front of the block diagonally at a 45-degree angle to create a chamfered face. Subtract a vertical cylindrical hole...
include <conf/config.scad> slot = cnc_sheets ? 0 : 2; thickness = part_base_thickness; thin_wall = filament_width * 2 + eta; wall = 3; counter_bore_rad = washer_diameter(base_washer) / 2 + 0.2; width = 2 * wall + 2 * thin_wall + 6 * counter_bore_rad; shear = min(counter_bore_rad - screw_clearance_radius(frame_screw)...
glb/cad_5c64d8ac0696.glb
Create a mains inlet housing for a power supply unit. Start with a solid rectangular block 56mm wide, 55mm high, and 40mm deep. Hollow out the center of this block to create a shell with a wall thickness of 4mm, leaving the top and bottom faces open. On the front face, center a rectangular aperture 19mm wide and 27mm ...
include <conf/config.scad> thickness = 4; tab = 2 + washer_diameter(frame_washer); foot = part_base_thickness; holes = tab / 2 + 1; cut_out_width = 19; cut_out_length = 27; hole_pitch = 40; depth = 40; terminal_depth = 10; terminal_height = 30; function mains_inlet_height() = 55; function mains_inlet_width() = 52 ...
glb/cad_e5a03c76e55f.glb
Create a rail support clamp for a 3D printer frame. Start with a main body that features a semi-circular bore to clamp onto a cylindrical bar. The outer profile should be a combination of a rectangular base and a curved band that wraps around the bar. Incorporate a rectangular cavity in the center of the clamp to redu...
include <conf/config.scad> include <positions.scad> nut_trap_meat = 4; wall = 3; function bar_clamp_inner_rad(d) = d / 2; function bar_clamp_outer_rad(d) = bar_clamp_inner_rad(d) + bar_clamp_band; function bar_clamp_stem(d) = bar_clamp_inner_rad(d) + bar_clamp_outer_rad(d) + bar_clamp_tab - 2; function bar_clamp_leng...
glb/cad_7c9677e09514.glb
Create a ribbon cable clamp with a total thickness of 5.2mm. The main body is a rectangular block with a width determined by the screw boss diameter and a length based on the pitch of the cable ways. In the center of the block, create a rectangular slot 1.2mm deep and 1.5mm wide to accommodate the ribbon cable. Dep...
include <conf/config.scad> slot_depth = 1.2; thickness = 5.2; base_thickness = slot_depth + 2; min_gap = 1.5; nut_trap_meat = 4; rib = 3; function ribbon_clamp_slot(ways) = ways * 0.05 * 25.4 + 2; function ribbon_clamp_pitch(ways, screw_type) = ribbon_clamp_slot(ways) + 2 * (screw_clearance_radius(screw_type) + min_g...
glb/cad_7396ef7674ae.glb
Create a filament spool holder consisting of a central axle and supporting brackets. Start by creating a cylindrical axle with a radius of 4mm. To support the spool, create two identical brackets. Each bracket is a mirrored pair of male and female components. The bracket shape is a rounded triangle formed by the hull...
include <conf/config.scad> include <positions.scad> use <wade.scad> bearing = BB608; thickness = 6; wall = 2; angle = 45; hook = 8; hook_overlap = 3; tube_r = 4; hook_r = 3; left = left_stay_x + sheet_thickness(frame) / 2; right = right_stay_x - sheet_thickness(frame) / 2; spool_x = (left + right) / 2; spool_y = g...
glb/cad_2d4feaadd590.glb
Create an X carriage for a 3D printer. Start with a base plate that is 97mm long and has a width defined by a 36mm central hole plus two bearing holder widths. The base plate should have a thickness of 3mm and a rim thickness of 8mm. Incorporate a central rounded rectangular cutout for the hot end, measuring 36mm by a...
include <conf/config.scad> use <bearing-holder.scad> use <wade.scad> hole = 36; width = hole + 2 * bearing_holder_width(X_bearings); extruder_width = 26; function nozzle_x_offset() = 16; length = 97; top_thickness = 3; rim_thickness = 8; nut_trap_thickness = 8; corner_radius = 5; wall = 2; base_offset = nozzle_x_of...
glb/cad_5bc6213ea446.glb
Create a channel cap for an aluminum square tube. The object is a composite shape consisting of a rectangular base and a tapered upper section. First, create a rectangular base with a width of 44mm, a height of 42mm, and a thickness of 0.36mm. On top of this base, construct a hull that transitions between two recta...
include <conf/config.scad> include <positions.scad> wall = 3; clearance = 0.25; boss = washer_diameter(M3_washer) + 1; punch = 3; base_screw_offset = fixing_block_width() / 2 + base_clearance - AL_tube_inset; length = wall + base_screw_offset + 10; width = tube_width(AL_square_tube) + 2 * wall + clearance; function t...
glb/cad_2a44c37c8496.glb
Create a Y-belt anchor for a 3D printer carriage. The object consists of two primary components: a main anchor body and a clamping clip. First, construct the main anchor body. Create a base rounded rectangle with a width of 8mm (belt width + 3mm), a depth of 11mm, and a height of 5mm. Add a wider, flatter base section...
include <conf/config.scad> include <positions.scad> wall = 2; clearance = 2; thickness = M3_nut_trap_depth + bearing_clamp_tab_height; rad = 3; clamp_thickness = 2.8; width = belt_width(Y_belt) + 3 + washer_diameter(M3_washer) + clearance; inner_width = (M3_nut_radius + wall) * 2; depth = washer_diameter(M3_washer...
glb/cad_a4f67118ebc4.glb
Create a Y-axis bearing mount for a 3D printer carriage. Start by creating a central rectangular block that holds a linear bearing. To this central block, attach two symmetrical mounting tabs extending from the sides. Each tab consists of a rectangular base with a semi-circular outer edge. Within these tabs, incorpor...
include <conf/config.scad> include <positions.scad> use <bearing-holder.scad> use <bar-clamp.scad> nutty = cnc_sheets; slot = nutty ? 0 : 2; tab_length = bearing_clamp_tab + slot; function bearing_mount_width(bearing) = bearing_holder_width(bearing) + 2 * tab_length; function bearing_mount_length(bearing) = bearing...
glb/cad_c073beb7ba1c.glb
Create a Z screw pointer for a 3D printer. Start by creating a solid cylinder with a radius of 3.45mm and a height of 2.4mm. To this, add a rectangular protrusion extending from the center along the X-axis; this protrusion should have a width of 2.85mm and a length of 2.45mm. Combine these elements into a single base...
include <conf/config.scad> wall = 2.4; tap_rad = (Z_screw_dia == 6) ? M6_tap_radius : ((Z_screw_dia == 5) ? M5_tap_radius : M8_tap_radius); inner_rad = (tap_rad + Z_screw_dia / 2) / 2; outer_rad = inner_rad + wall; function z_screw_pointer_height() = 5; function z_screw_pointer_radius() = outer_rad; function z_screw_...
glb/cad_0fecd4889002.glb
Create a Z top limit switch bracket for a Mendel90 printer. Start with a main vertical support body that is 2mm thick. This body consists of a rectangular base that transitions into a taller vertical section. Incorporate a boss for the microswitch, which is 7mm in height and 8.8mm by 10mm in footprint. The vertical s...
include <conf/config.scad> wall = 2; thickness = 5; screw_slot_length = 10; screw_spacing = 20; new_bracket_adjustment =10; switch_boss=7; switch_mount_x=8.8; switch_mount_y=10; screw_mount_y=max(switch_mount_x,M3_nut_radius*2+wall); screw_mount_x=4+wall; screw_mount_z=switch_boss+screw_spacing+M3_nut_radius*2+wall+n...
glb/cad_f7a1c9af9a1f.glb
Create a Z-limit switch bracket for a 3D printer. Start with a main body that combines a rectangular boss for mounting a microswitch and a flat base. The base should feature a linear extrusion with a height of 5mm. Incorporate a hinge mechanism by adding a rectangular block of 2mm thickness and 2mm height, and a leve...
include <conf/config.scad> include <positions.scad> wall = 2; thickness = 5; adjustment = 20; down_adjustment = 10; hinge_length = 2; hinge_post = 4; switch_boss = 7; washers = 2; switch_y = max(14 - microswitch_thickness() / 2, gantry_setback - x_bar_spacing() / 2); switch_mount_height = switch_y - microswitch_thic...
glb/cad_b0d54490324a.glb
Create a bearing holder for an LM8UU linear bearing. Start with a rectangular block that has a width of 13mm (the bearing diameter of 8mm plus two 2.5mm walls) and a length of 22.4mm (the bearing length of 16mm plus two 2.8mm end walls and a 0.2mm clearance). The height of the block should be 13.33mm (calculated as the...
include <conf/config.scad> wall = 2.5; end_wall = 2.8; clearance = 0.2; relief = 0.5; ziptie_clearance = 1; ziptie = small_ziptie; zipslot_width = ziptie_width(ziptie) + ziptie_clearance; zipslot_tickness = ziptie_thickness(ziptie) + ziptie_clearance; function bearing_holder_length(bearing) = bearing[0] + 2 * (e...
glb/cad_289f28679ccf.glb
Create a cable clip for a 3D printer frame. The clip is a small, extruded geometric part designed to hold cables against a surface. Start with a base shape formed by the hull of a rectangle and a smaller square, creating a tab-like profile. The total width of the clip is the sum of the cable width, two wall thickness...
include <conf/config.scad> wall = 2; thickness = 5; function cable_clip_width(screw) = wall + 2 * screw_clearance_radius(screw) + wall; function cable_clip_height(cable) = max(cable_height(cable) + wall, thickness); function cable_clip_extent(screw, cable) = screw_clearance_radius(screw) + wall + cable_width(cable) +...
glb/cad_8b18edcc4a07.glb
Create a bed assembly for a 3D printer. Start by placing four M3 washers and four hexagonal pillars at the corners of a rectangular layout defined by the bed hole spacing. At each corner, position a washer at the base and another washer above the pillar, with an M3 cap screw of 10mm length passing through the center. ...
include <conf/config.scad> include <positions.scad> module bed_assembly(y = 0) { for(x = [-bed_holes[0] / 2, bed_holes[0] / 2]) { translate([x, bed_holes[1] / 2, 0]) washer(M3_washer); translate([x, -bed_holes[1] / 2 - washer_diameter(M3_washer) / 2 - 3 / 2, 0]) washer(M3_...
glb/cad_208ff295298b.glb
Create a fan guard for an 80x38mm fan. Start with a rounded square plate that is 2mm thick. The outer dimensions of this plate are determined by the fan's hole pitch plus a corner radius based on the screw washer diameter, and the total width is the fan bore plus a 4mm wall. Cut a central circular hole through the pl...
include <conf/config.scad> thickness = 2; wall = 2 * filament_width + eta; finger_width = 7; spokes = 4; function fan_guard_thickness() = thickness; module fan_guard(type) { stl("fan_guard"); hole_pitch = fan_hole_pitch(type); screw = fan_screw(type); corner_radius = washer_diameter(screw_washer(scre...
glb/cad_5a07b02773c4.glb
Create a calibration object by combining several geometric primitives and removing specific internal volumes. Start by joining three rectangular blocks: one measuring 10mm by 40mm by 5mm, one measuring 40mm by 10mm by 6mm, and one measuring 25mm by 25mm by 10mm. Add a cylinder with a radius of 10mm and a height of 15mm...
include <conf/config.scad> module cal_stl() { difference() { union() { cube([10,40,5]); cube([40,10,6]); cube([25,25,10]); translate([10, 10]) cylinder(r = 10, h = 15); } translate([10,10,15]) nut_trap(Z_screw_dia /...
glb/cad_49f8b37c330c.glb
Create a flat rectangular plate with dimensions 40mm by 60mm and a thickness of 3mm. On the face of this plate, create two rectangular slots for tabs, each measuring 6.2mm by 8.2mm, positioned 22mm apart. At the center of the plate, add a circular hole with a radius of 1.45mm. To create the fastening features, add ...
include <conf/config.scad> frame_slot_w = 6.2; frame_slot_d = 8.2; clearance=0; frame_slot_spacing = 22; frame_screw_r = 1.45; frame_screw_l = lc_fixing_screw_length+2; frame_nut = screw_nut(lc_fixing_screw_type); frame_nut_rad = nut_flat_radius(frame_nut)+clearance/2 -0.14; frame_nut_t =1.65; tab_top_r=2; $fn=20; m...
glb/cad_99d572611cf4.glb
Create a PCB spacer assembly. Start by creating a cylindrical spacer with a total height of 3mm and a diameter of 5.4mm. This spacer should have a central vertical hole with a radius of 1.6mm running through its entire length. Position an M3 cap screw with a length of 10mm so that it passes through the center of the ...
include <conf/config.scad> function pcb_spacer_height() = part_base_thickness - pcb_thickness; pcb_screw_length = frame_screw_length; module pcb_spacer_stl(screw = M3_cap_screw, h = pcb_spacer_height()) { stl("pcb_spacer"); r = screw_clearance_radius(screw); difference() { cylinder(r = correcte...
glb/cad_172394483cfc.glb
Create a Nema 17 stepper motor holder consisting of a vertical face and a horizontal base, both with a thickness of 5mm. The horizontal base is a rectangular plate measuring 52mm by 49mm. The vertical face is a rectangular plate measuring 52mm by 47mm, joined perpendicularly to the base. In the center of the vertical ...
use <./libraries/Nema17.scad> Nema_size=42; Nema_height = 44; Nema_top_circle_diameter = 23; wall_thickness = 5; base_y = Nema_height+wall_thickness + 5; base_x = Nema_size + 10; slot_y = base_y - 17; face_x = base_x; face_z = Nema_size + wall_thickness + 5; screw_offset = 5; Nema_screw_offset = 5; ShowStepper = 1; ...
glb/cad_0b3292830a27.glb
Create a custom business card with a base plate measuring 85.6mm by 54mm and a thickness of 1mm. The base plate must have rounded corners with a radius of 3mm. On the top surface, centered horizontally, add two lines of embossed text with a height of 0.8mm. Position the first line, "Your name here", 20mm above the cen...
title="Your name here"; description="thingiverse.com/user"; logo = "Yes"; seed= 123456789; random = rands(0,1,3000,seed); gr = 2; stop = 8; w = 85.60; h = 54; $fn = 50; difference(){ union(){ linear_extrude(height=1){ difference(){ squareRounded(w,h,3); square([78,38],center=true); ...
glb/cad_a3988073f7a3.glb
Create a Mini Quadruped breadboard platform. Start with a main rectangular base measuring 14mm wide, 160mm long, and 8mm high. Centrally along the length of the base, create four rectangular cutouts for servos, each measuring 23mm long and 12.5mm wide, centered vertically. Position these cutouts at the front and back...
backbone(160,14,8,23,12.5); module backbone(bl,bw,bh,sl,sw){ h_pos = ((bl-20) / 2); difference(){ union() { translate([-(bw/2),-(bl/2),-(bh/2)]) color("purple") cube([bw,bl,bh]); translate([-(bw*2-2),-(bl/4+11),-(bh/2)]) color("blue") cube([bw*4-4,bl/2+22,bh/2]); translate([-(bw*2+1),-(bl/4+14),-(bh/2)])...
glb/cad_4a44d0b07b6e.glb
Create an outdoor water tap key by starting with a central cylinder 13.5mm in diameter and 40mm tall. Cut a square hole 8.1mm wide and 8.1mm deep through the entire length of this cylinder. Attach two rectangular wings to opposite sides of the cylinder; each wing should be 15mm wide, 3mm thick, and 20mm tall, centered ...
difference() { union(){ difference(){ linear_extrude(height=40) circle(d=13.5, $fn=120); translate([-4,-4,-1]) cube([8.1,8.1,42]); } translate([6.5,-1.5,0]) cube([15,3,20]); translate([-15-6.5,-1.5,0]) cube([15,3,20]); } translate([-7.5-13/2,2.5,10]) ...
glb/cad_250a97206884.glb
Create a WIMUv3 hinged square bar holder consisting of a flat plate with a thickness of 5mm. The main body is formed by the union of a circle with a radius of 5mm centered at the origin and a square with a width of 5mm and a height of 10mm, centered on the X-axis and extending from the center of the circle. From this...
external_radius=5; internal_radius_small=1; internal_radius_large=2; part_thickness=5; cylindrical_cutout_depth=2; pivot_centre_to_flat_base=5; if (pivot_centre_to_flat_base<external_radius){ make_pivot(external_radius, internal_radius_small, internal_radius_large, part_thickness, cylindrical_cutout_depth, external_r...
glb/cad_0ae2a5fc9311.glb
Create a hollow rounded cuboid for a WIMUv3 hinged square bar holder. The overall external dimensions are 10mm in length, 10mm in width, and 10mm in height. The shape should have a uniform wall thickness of 1mm. To achieve the rounded corners, use a corner radius of 3mm. The interior should be a hollowed-out rounded ...
tot_h=10; tot_l=10; tot_b=10; tot_r=3; tot_s=4; tot_col=[0.5,0.5,0.5,0.5]; wall_t=1; $fn=tot_s*4; hollow_rounded_cuboid_2_4(tot_l, tot_b, tot_h, tot_r, tot_s, wall_t); module hollow_rounded_cuboid_2_4(n_tot_l, n_tot_b, n_tot_h, n_tot_r, n_tot_s, n_wall_t){ difference(){ rounded_cuboid_2_4(n_tot_l, n_tot_b, n_tot_...
glb/cad_1e0242c28406.glb
Create a Desk Clip for cable management. Start with a base rectangular plate 45mm long, 3mm thick, and 20mm wide. From one end of this plate, extend a second rectangular arm 3mm thick and 20mm wide, projecting vertically at a 90-degree angle to a total height of 45mm (the sum of a 20mm radius and a 25mm desk thickness)...
desk_thickness = 25; clip_plate_width = 20; clip_thickness = 3; clip_ring_radius = 20; clip_vertical_length = clip_ring_radius + desk_thickness; clip_cutout_radius = clip_ring_radius / 2; clip_plate_length = 45; module ring() { translate([clip_ring_radius - clip_thickness,clip_vertical_length,0]) { ...
glb/cad_f6c2d55633e5.glb
Create a Stacked Droolops flower model. Start with a central core consisting of a sphere with a radius of 5mm, centered at the origin. Trim the bottom of the sphere to create a flat base for stability and cut the top of the sphere to leave a flat surface. On top of this sphere, place a cylinder with a bottom radius of ...
p_number=5; twist=42; plower_radius=5; ptop_radius=5; rc=1; total_height=15; p_start_height=10; p_lenght_lower=30; p_lenght_top=40; stigma=0; stig_number=3; stig_radius=10; stig_width=1; stig_height=15; p_width=.8; p_height=.2; p_angle=90; direction=-1; p_vnum=(total_height-p_start_height)/p_height; p...
glb/cad_29300918d550.glb
Create a Stacked Droolops flower model. Begin with a central core consisting of a sphere with a radius of 3.5mm. Flatten the bottom of the sphere to create a stable base with a radius of 3mm. On top of this sphere, add a cylinder with a bottom radius of 3.5mm and a top radius of 3.5mm, extending from a height of 10mm t...
p_number=6; twist=33; plower_radius=3.5; ptop_radius=3.5; rc=3; total_height=15; p_start_height=10; p_lenght_lower=50; p_lenght_top=60; stigma=0; stig_number=5; stig_radius=5; stig_width=2; stig_height=8; p_width=.8; p_height=.2; p_angle=90; direction=-1; p_vnum=(total_height-p_start_height)/p_height;...
glb/cad_fc6258aabbf3.glb
Create a Scalable Battery Terminal Guard Cover consisting of a rectangular base with two raised terminal bumps. Start with a rectangular base plate measuring 60mm in length, 98mm in width, and 2mm in thickness. Add two side walls, each 2mm thick and 20mm high, positioned at the edges of the width to create a U-shaped...
COVERSTYLE = 1; OUTPUT = 0; termwid = 8; termlen = 10; termh = 10; conntoedge = 5; coverlen = 30; termcoverwid = 12.75; wallthick = 2; plateheight = 20; testspacer = 0; if (OUTPUT == 0 ) { if ( COVERSTYLE == 2) { translate([0, 0, 0]) guard(98, 0); } else { translate([0, 0, plateheight -2]) g...
glb/cad_86998a9e504c.glb
Create an SD-Card Rack by starting with a solid rectangular block measuring 93mm in length, 31mm in width, and 27mm in height. Hollow out the center of this block by removing a rectangular section that is 95mm long, 21mm wide, and 21mm high, positioned 5mm from the front and back edges and 6mm from the bottom. To cre...
Amount = 15; Sides = "Closed" ; StackableOnSide = "None" ; Device_Lenght = Amount*6+3; difference () { translate ([0,0,0]) cube ([Device_Lenght,31,27]); translate ([-1,5,6]) cube ([Device_Lenght+1,21,27]); for (a =[3:6:Device_Lenght]){translate ([a,3,3]) cube ([3,25,32]);} } if (Sides == "Closed") { ...
glb/cad_ca94e5aaade6.glb
Create a water bottle cap consisting of a main plug and a pivoting hinge mechanism. Start with a central plug body formed by a cylinder with a diameter of 29mm and a height of 7mm. The bottom of this plug should be hollowed out by a concentric cylinder of 19.5mm diameter. To create the outer housing, wrap the plug in...
plugd = 19.5; plugh = 7; plugcid = 29; pivotsp = 33.5; pivotd = 3.5; pivotl = 2; pivotlsp = 16.5; $fn=72; difference() { hull() { translate([0,0,-plugh-2]) cylinder(d2=plugcid+3,d1=plugcid+6,h=plugh*2); translate([-plugcid/2+1.5,pivotsp-pivotd,-plugh+pivotd*3/2-2]) rotate([0,90,0]) c...
glb/cad_716bb605e9ba.glb
Create a ventilation flake consisting of a hexagonal honeycomb grid. Start by creating a large hexagonal prism with a height of 5mm and a flat-to-flat diameter of 22mm. Within this main body, carve out a pattern of smaller hexagonal cells. Each cell should have a wall thickness of 1mm and an inner diameter of 10mm. A...
function mod(v) = (sqrt(v[0]*v[0]+v[1]*v[1]+v[2]*v[2])); function cross(u,v) = [ u[1]*v[2] - v[1]*u[2], -(u[0]*v[2] - v[0]*u[2]) , u[0]*v[1] - v[0]*u[1]]; function dot(u,v) = u[0]*v[0]+u[1]*v[1]+u[2]*v[2]; function unitv(v) = v/mod(v); function anglev(u, v) = acos( dot(u,v) / (mod(u)*mod(v)) ); function dist...
glb/cad_04b941f1c41d.glb
Create a speedloader for a Ruger MK series magazine. Start by constructing a rectangular port with an outer dimension of 19.7mm by 35.2mm and a height of 10mm. The walls of this port should be 5mm thick with rounded corners of a 4mm radius. Hollow out the center of the port to create a rectangular opening measuring 9.7...
module Ruger_MK_1_2_3_2245_speedloader() { port_w = 9.7; port_l = 25.2; port_h = 10; port_wall_w = 5; port_wall_r = 4; tension_arm_h = 20; tension_arm_nub_r = 1.75; tension_arm_nub_support_a = 15; union() { difference() { $fn=50; translate([port_wal...
glb/cad_7137c052d641.glb
Create a Rice Cooker Handle that is 60mm wide and 10mm thick. The handle is symmetrical along its length. Start with a main body consisting of a rectangular arm 5mm wide and 14mm long. At the end of this arm, add a cylindrical axle with a 3mm radius and a length of 2.5mm. The end of the handle should be rounded with a...
$fa = 1; $fs = 0.5; thickness = 10; width = 60; outer_fillet_radius = 16; inner_fillet_radius = 8; inner_cut_radius = 55; arm_width = 5; arm_length = 14; axle_radius = 3; axle_length = 2.5; ledge_thickness = 2.4; manifold = 0.1; translate([0, 60-manifold*2, 0]) mirror([0, 1, 0]) part1(); part1(); module part1() ...
glb/cad_5a1e8f946ca2.glb
Create a replacement part for a Glatz Sombrano parasol consisting of a central support block and two symmetrical outer wings. Start by creating a central rectangular block with a width of 15mm, a depth of 11mm, and a height of 39.5mm. Drill a horizontal hole completely through the center of this block with a diameter o...
hp = 39.5; ls = 15; ps = 11; dp = 5.5; l1 = 9; l2 = 13; l3 = 5; l4 = 7; ep = 4; enc = 2.8; ouv = 17; module forme_2d(){ square([ep,l1+l2+l3+l4]); translate([ep,l1]) square([enc, l2]); translate([ep,l1+l2]) square([(ouv-ls)/2, l3+l4/2]); translate([ep,l1+l2+l3]) polygon([[0,0], [enc,l4/2], [0,l4]], [[0,1...
glb/cad_c66bf573cfa0.glb
Create a plastic bottle jewelry holder consisting of a twisted central pillar and three circular ring supports. Start by creating a central vertical column 50mm high. This column is formed by extruding a triangle with a 30mm radius from the center, twisting it 45 degrees as it rises to a height of 50mm, and scaling the...
bottle_bottom_radius = 30; thickness = 1.5; height = 50; module frame(thickness) { difference() { children(); offset(r = -thickness) children(); } } module plastic_bottle_jewelry_holder(bottle_bottom_radius, height, thickness) { $fn = 64; ring_outer_r = bottle_bottom_radius + 2 * thickne...
glb/cad_19aff4a4b4ba.glb
Create a circular knitting loom consisting of a hollow ring and several vertical pegs. Start by constructing a hollow cylinder with an outer diameter of 75mm and a height of 10mm; the inner wall should be removed by creating a concentric hole with a diameter of 65mm. Around the top rim of this ring, place 8 identical p...
loom_diameter = 75; loom_height = 10; number_of_pegs = 8; peg_diameter = 5; peg_height = 15; knob_diameter = 8; union() { difference() { cylinder(h = loom_height, d = loom_diameter, $fa=1, $fs=0.5); cylinder(h = loom_height, d = loom_diameter - peg_diameter * 2, $fa=1, $fs=0.5); } for (i = [0 : numbe...
glb/cad_1e53b1751706.glb
Create a Dremel Circle Cutter center guide. Start by creating a wide, flat cylinder with a diameter of 140mm and a height of 5mm. In the center of this disk, add a smaller concentric cylinder with a diameter of 20.5mm and a height of 10mm. Pierce a vertical hole with a diameter of 2mm straight through the center of b...
holeDiameter = 2; innerDiameter = 20.5; innerHeight = 5; topDiameter = 140; topHeight = 5; $fn = 360; holeRadius = holeDiameter / 2; innerRadius = innerDiameter / 2; topRadius = topDiameter / 2; difference() { group() { cylinder(r=topRadius, h=topHeight); cylinder(r=innerRadius, h=topHeight + innerHeight)...
glb/cad_8ef706eea37f.glb
Create a GCodePrintr Tablet Stand by constructing a hollowed-out support structure. Start by creating a solid base shape using a hull operation that connects three cylinders, each with a radius of 10mm and a height of 70mm. Position the first cylinder at the origin, the second at x=105mm, y=0, and the third at x=52.5mm...
hx=70; wx=105; rx=10; diff=2.5; ry=rx-diff; $fn=90; difference(){ hull(){ cylinder(r=rx,hx); translate([wx,0,0]) cylinder(r=rx,hx); translate([wx/2,wx-20,0]) cylinder(r=rx,hx); } hull(){ cylinder(r=ry,hx+1); translate([wx,0,0]) cylinder(r=ry,hx+1); translate([wx/2,wx-20,0]) cylinder(r=ry,hx+1); } translate([-39,-10,0...
glb/cad_fd4e73ada722.glb
Create a Tube Stage for holding a test tube by starting with a solid rectangular block that is 150mm long, 36mm wide, and 45mm high. Carve a cylindrical hole through the length of the block to accommodate a tube with a 30mm diameter. This hole should be centered along the width of the block, but tilted at an angle of 9...
tubeDia=30; thick=3; stageHeight=45; stageLength=150; rotateAngle=93; stageWidth=tubeDia+thick*2; tubeLength=(stageLength-thick)*cos(rotateAngle-90); gapHeight=(stageHeight-thick)/cos(rotateAngle-90)-tubeDia/2; gapXmove=(gapHeight+tubeDia/2)*sin(rotateAngle-90); x=(tubeDia/2)/tan(rotateAngle-90); gapZmove=(x+tubeLeng...
glb/cad_cbe4cc2296f2.glb
Create a body for a small USB Li-Ion headlamp charger consisting of a main enclosure and a matching lid. Construct the main body as a rectangular block 17.5mm wide, 26.5mm deep, and 12mm high. Hollow out the center to create a cavity for a PCB, leaving a wall thickness of 1.36mm. Within this cavity, create a rectangu...
$fn=100; sqrt32=1.732050808/2; sqrt2=1.41; d=0.01; d2=d+d; d3=d2+d; layer=.15; ddt=.1; outd=20; th=12; stenka=0.8+0.56; module up(h) { translate([0,0,h]) children(); } module dh() { up(-d) children(); } module pcb() { ph=4.7; bl = 2; cube([17.5,26.5,ph]); for (xx = [0 : bl : (26.4-bl)/2]) ...
glb/cad_689cac84d889.glb
Create a pogo holder consisting of a main body and a cover. For the main body, create a rectangular block 15.8mm wide (X), 25mm high (Y), and 17.54mm deep (Z). On the top and bottom faces, center two horizontal cylindrical handles with a radius of 5mm and a length of 17.8mm. These handles should be perforated by 30 s...
$fn=60; height=25; width=10.8; depth=4; pitch=2.54; vert_contacts=3; horz_contacts=2; pogo_rad=0.5; pogo_lenght=8; con_rad=1; con_lenght=11; knob_height=6; knob_depth=2.5; knob_rad=5; notch_elements=30; notch_rad=0.75; rail_width=2.5; rail_depth=1.5; wire_space=2; holder(); cover(); module holder() { differe...
glb/cad_629f82cecbee.glb
Create a drink coaster by starting with a solid cylinder 100mm in diameter and 6mm high. Hollow out the center by removing a cylinder with a 92mm diameter and a height of 6mm, positioned 4mm from the base. Carve 12 identical radial channels into the remaining floor and walls. Each channel is formed by the convex hull o...
$fn=180; module Coaster(Diameter=100, ID=0){ Spokes=12; difference(){ translate([0,0,-2]) cylinder(r=Diameter/2, h=8); translate([0,0,4]) cylinder(r=Diameter/2-4, h=10); for(j=[0:Spokes-1]) rotate([0,0,360/Spokes*j]) hull(){ translate([12,4,0]) cylinder(r=2,h=10); translate([Diameter/2-6,0,0]) cylinder...
glb/cad_1b4a8bfde792.glb
Create a Hotend Bowden Adapter with Z sensor support. Start with a main rectangular block that is 32mm wide, 10mm thick, and 45mm deep. At the top of this block, create a fixation section that is 32mm wide and 18mm high. Within this fixation section, bore two parallel horizontal holes with a diameter of 3.5mm that pass...
fn = 250; holder_w = 32; holder_h = 8; screw_w = 3.5; screw_h =100; tool_h = 10; tool_w = 5; sensor_d=8; sensor_depth = 45; sensor_h=30; sensor_margin = 3; sensor_distance=10; difference(){ group(){ translate([-holder_w/2,0,0]){ translate([0,0,sensor_depth]) toolfix(); cube([holder_w,tool_w,sensor_dept...
glb/cad_5fe62b6693c1.glb
Create a Torx Plus Driver Holder consisting of a rectangular base plate with several vertical cylindrical posts to hold tools. The base plate is 175mm wide, 100mm deep, and 6mm thick. On the top surface of the plate, create two rows of vertical holders. The back row contains four holders, and the front row contains f...
include <CommonStuff.scad> $fn=90; Overlap=0.05; module HandleHole(D=14){ mirror([0,0,1]){ translate([0,0,-Overlap]) cylinder(r1=D/2+2,r2=D/2,h=3); cylinder(r=D/2,h=30); } } HP_x=175; HP_y=80; BoltInset=4; module HolderPlate(){ HP_t=6; BackRow=HP_y-18; FrontRow=HP_y-18-32; BackText_y=12; FrontText_y=5;...
glb/cad_dbd238ddb075.glb
Create a Mixing Cup Holder by constructing a solid base and a tapered outer wall with a hollow center. Start with a solid cylinder 60mm in diameter and 3mm in height. On top of this base, add a truncated cone that is 30mm tall, starting with a bottom diameter of 60mm and tapering to a top diameter of 50mm. To create th...
$fn=180; module MixingCupHolder(){ base_d=60; top_d=50; holder_h=30; cup_base_d=30; cup_top_d=46; cup_h=36; difference(){ union(){ cylinder(r=base_d/2, h=3); translate([0,0,2.95]) cylinder(r1=base_d/2, r2=top_d/2, h=holder_h-3); } translate([0,0,1]) cylinder(r1=cup_base_d/2, r2=cup_top_d/2, h=cup_h...
glb/cad_036674bd27cd.glb
Create a motorized cam for an automaton dragon by constructing a solid base with a height of 9mm. The base shape is formed by the convex hull of two cylinders: one with a radius of 5mm centered at coordinates (7, 0, 0) and another with a radius of 8.5mm centered at (-3.5, 0, 0). From this solid, remove three specific...
$fn=360; alt=9; difference() { hull() { translate([7,0,0]) cylinder(r=5, h=alt); translate([-3.5,0,0]) cylinder(r=8.5, h=alt); } union() { translate([9.5,0,-1]) cylinder(r=1, h=alt+2); translate([-5,0,-1]) difference() { cylinder(r=1.75, h=alt+2); tr...
glb/cad_9dbd7481ea41.glb
Create a GoPro knob consisting of a central cylindrical shaft and a gripping head. The main shaft is a cylinder with a diameter of 12.4mm and a total height of 35mm. At the top of this shaft, create a gripping head by adding four symmetrical lobes spaced 90 degrees apart. Each lobe is formed by the convex hull of a 12....
knobh = 35; nknob = 4; gripd = 20; griph = 10; npknob = 0; pknob = 1.5; lobed = 7; m5len = 25; m5d = 6; m5head = 10; $fn = 36; md = m5head+(1.2*2); mirror([0,0,1]) difference() { union() { cylinder(d=md,h=knobh); for(n=[0:nknob]) { a = n * (360/nknob); rotate([0,0,a]) ...
glb/cad_a1677f0d6a4d.glb
Create a printer scraper by starting with a solid rectangular base measuring 80mm in length, 40mm in width, and 10mm in height. From this main body, remove a central rectangular channel that is 80mm long and 20mm wide, running through the middle of the width and extending 20mm deep to create a recessed slot. Finally, c...
module printer_scraper() { difference() { cube([80, 40, 10]); translate([-20, -10, -5]) cube([80, 20, 20]); translate([-20, 30, -5]) cube([80, 20, 20]); translate([60, -5, 10]) rotate([0, 27, 0]) cube([30, 50, 10]); } } printer_scraper();
glb/cad_9a74bdb917a9.glb