Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Monster Hit Counter consisting of two concentric parts: a numbered tracking ring and a supporting holder base. First, construct the tracking ring. Create a hollow cylinder with an inner diameter of 30mm and a wall thickness of 1.6mm. The ring should have a total height of 1.6mm. On the outer vertical face of ...
use <rodsandholes.scad>; nozzle_diameter = 0.4; layer_height = 0.2; pi=3.1415926535897932384626433832795; function thread_width(Nd=nozzle_diameter,h=layer_height) = Nd + h; function build_width(w=thread_w,h=layer_height) = w - h*(1-pi/4); function threads(count,w=thread_w,wb=build_w) = w+wb*(count-1); function ceil...
glb/cad_ed2eccd25e20.glb
Create a Putzausgleichsring spacer for a pattress box. The main body is a hollow cylinder with a total height of 12mm, an inner diameter of 60mm, and a wall thickness of 1.8mm. At the base of the ring, integrate four small cylindrical connectors positioned every 90 degrees. Each connector has a diameter of 5mm and a ...
total_height = 12; inner_diameter = 60; wall_thickness = 1.8; height_small_connector = 3; bore_distance = 60; wall_thickness_connector = 2; bore_diameter_connector = 2.8; connector_diameter = 5; connector_extension_inner_distance=54; height_connector_extension = 5; border = 2; $fn=90; difference() { union()...
glb/cad_cb8a96995028.glb
Create a sliding cover assembly for USB and SD card connectors. First, create a cover holder as a rectangular base with a thickness of 2mm. The base must have two rectangular cutouts to accommodate the connectors: one for the USB connector measuring 8mm by 15mm, and one for the SD connector measuring 3mm by 17.5mm. T...
RENDERASSEMBLED = true; RENDERHOLDER = true; RENDERSDCOVER = true; RENDERUSBCOVER = true; SDY = 17.5; SDX = 3.0; SDXO= 0.0; USBY = 15.0; USBX = 8.0; SDUSBYO= 7.6; CHZ = 2.0; CHXLW = 3.0; CHXRW = 4.0; CHYW = 3.0; UCV = [ USBX, USBY, CHXRW, 1.0, CHZ, 0.2, "USB", "Arial:style=Black", ...
glb/cad_832071ebff16.glb
Create a Mini Spoolstand holder by starting with a rectangular base measuring 50mm wide, 100mm long, and 5mm thick. From this base, remove three cylindrical holes, all 5mm deep: one with a 40mm diameter centered at the front, one with a 25mm diameter centered 35mm behind the first, and one with a 15mm diameter centered...
part = "holder"; if(part=="ring"){ difference(){ cylinder(h = 5, d=9.5); cylinder(h = 5, d=7.5); } } if(part=="inner"){ difference(){ cylinder(h = 5, d=57); cylinder(h = 5, d=10); translate([15,-2.5,0]){ cube(5.5); } translate([-20,-2.5,0]){ cube(5.5); } } } if(part=="inner_axis"){ difference(){ cube(...
glb/cad_e2c7c8c7a487.glb
Create a shower door pivot hinge replacement. Start with a rectangular base measuring 37.5mm in length, 7.5mm in width, and 7.5mm in height. On top of this base, center a second rectangular block that is 37.5mm long, 5.9mm wide, and 8.8mm high. Integrate a cylinder with a diameter of 5.9mm and a height of 22mm into the...
difference(){ union () { translate ([-4-11/2,-7.5/2]) cube([37.5,7.5,7.5]); translate ([-4-11/2,-5.9/2]) cube([37.5,5.9,8.8]); cylinder(d=5.9,h=22,$fn=64); intersection(){ cylinder(d=11,h=10.4,$fn=64); cube([11,5.9,10.4*2],center=true); } } translate([-10,0,7.5/2]) rotate([0,90,0]) cylinder (d=4.3,h=40); }
glb/cad_3c5e0cbff996.glb
Create a screwdriver bit for 3296 potentiometers. Start by constructing a hexagonal base with a flat top and bottom, having a radius of 3.7mm and a height of 9mm. Centered on top of this base, add a cylinder with an outer radius of 2.3mm and a height of 4mm. Bore a vertical hole through the center of this upper cylinde...
$fn = 100; module regular_polygon(order = 4, r=1){ angles=[ for (i = [0:order-1]) i*(360/order) ]; coords=[ for (th=angles) [r*cos(th), r*sin(th)] ]; polygon(coords); } union(){ translate([0, 0,9]){ difference() { cylinder(r=2.3, h=4, center=false); translate([0, 0,2]){ cyl...
glb/cad_42efb40f8f28.glb
Create a set of tank treads and pulleys. First, construct the belt as a cylinder with a radius of 50mm and a height of 15mm. Around the outer perimeter of this cylinder, add 40 evenly spaced teeth. Each tooth is a cylinder with a radius of 20mm and a width of 5mm, oriented horizontally and positioned to protrude 2mm fr...
radius = 50; beltWidth = 15; treadWidth = 5; treadRad = 20; numTeeth = 40; protrusion = 2; resolution = 14; idlerRad = 10; idlerProt = 1.7; toothWidth = 2; toothRad = 20; shaftRad = 2; keyed = true; keyDiff = .75; cutDepth = 0.25; difference() { union() { cylinder(beltWidth,radius,radius,$fn = 60); for(i = [1...
glb/cad_d8833a5eb374.glb
Create a Phone Stand for Filming consisting of two main components: a phone holder and a phone incliner, both extruded to a height of 7mm. First, create the phone holder as a rectangular frame with a wall thickness of 2mm. The interior cutout should be 77.5mm long and 8.5mm wide to accommodate a phone. The frame is c...
$fn = 100; $extruderSize = 0.4; $layerHeight = 0.2; $wallLayers = 35; $wallThicknessInLayers = 5; $wallToWallSpacingInLayers = 1; $phoneThickness = 7.5; $phoneHeight = 76.5; $phoneExtraFreeSpaceForErrors = 1; $output = 0; $wallHeight = $layerHeight * $wallLayers; $wallSpacing = $wallToWallSpacingInLayers * $extru...
glb/cad_7bcb6cbad034.glb
Create a long neck funnel consisting of three stacked concentric sections with a wall thickness of 0.4mm. The top section is a cylinder with an outer diameter of 40mm and a height of 2mm. Attached to the bottom of this cylinder is a conical taper that transitions from a 40mm diameter at the top to a 10mm diameter at th...
funnelTopD = 40; funnelTopL = 2; funnelBottomD = 10; funnelL = 20; egressD= 5; egressL = 10; wallT = 400; tiny=0.05; $fn=50; module funnel() { translate([0,0,0]) difference(){ union(){ translate([0,0,(funnelTopL)/2]) cylinder(d=funnelTopD,h=funnelTopL+tiny,center=true); translate([0,0,tiny+funnelTo...
glb/cad_9e9d75eb1496.glb
Create a ResizerBot parametric axle setup consisting of three orthogonal stages (X, Y, and Z). For each stage, create a base plate with a thickness of 8mm and a length and width of 500mm. On each plate, position a central axle with a radius of 20mm and a length of 500mm. The axle must have cylindrical end caps with a...
space = 5; axleR = 40 /2; axleSides = 64; axleCapT = space; axleCapL = axleR*2; motorL = 43; motorH = 35; spindleR = 15 /2; spindleH = 20; beltW = 10; beltT = 1; sliderL = axleR*2; sliderT = space; sliderH2 = axleR + sliderT + space; girderH = axleCapT + axleR - space; girderT = 8; xL = 500; yL = xL; zL ...
glb/cad_cc32eb11548f.glb
Create a Bottle Dosifier consisting of a cylindrical body with a wide flange. Start by creating a main cylindrical base with a diameter of 21.56mm and a total height of 13.4mm. At a height of 12mm from the bottom, add a wider cylindrical disc with a diameter of 24.8mm and a thickness of 1.4mm to serve as the lid flange...
Int_Diam=21.56; Lid_Diam=24.8; Height=13.4; difference() { union() { difference() { union() { translate([0,0,7-(Height-6.4)]) cylinder(d=Int_Diam, h=(Height-6.4)+5, $fn=120); translate([0,0,12]) cylinder(d=Lid_Diam, h=1.4, $fn=120); } translate([0,0,8]) ...
glb/cad_145c0b9ceb9b.glb
Create a Hair Cutter with Vacuum Intake adapter. The object is a hollow, angled conduit designed to connect a hair clipper to a vacuum cleaner. Start by creating a main body consisting of three connected sections. The first section is a transition piece that begins as a rectangular opening and tapers into a funnel sha...
$fn=60; SpM=0.1; WS=1.2; Kanal = 10; Support = 1; Sd1=30.6+SpM*2; Sd2=31.7+SpM*2; Sh=44; MBr=46;MTf=41.75;MSt=3.7; Nut=2; Ml1=15; Mw1=-80; Mh1=0; Ml2=35; Mw2=-49; Mh2=15; Ml3=45; Mw3=-23; Mh3=26; module WinkelSt(W1,W2) { rotate([90,0,0]) translate([0,0,-(Sd2+2*WS)]) difference(){ union(){ difference(){ ...
glb/cad_a9a1fc41687b.glb
Create a set of hair clipper adapters for a vacuum intake system. Each adapter is a hollow rectangular sleeve designed to fit over a clipper head with a width of 46mm. The walls should have a thickness of 1.2mm. Construct several straight adapters with a consistent internal intake height of 15mm. For these, create a r...
$fn=60; SpM=0.1; xSpM=2; WS=1.2; Schnitt=8+WS; Aufnahme=15; MBr=46; module Feder(b){ difference(){ union(){ cube([b+2*WS,MBr+2*WS,1.5]); rotate([-90,0,0])cylinder(d=3,h=MBr+2*WS); translate([b+2*WS,0,0])rotate([-90,0,0])cylinder(d=3,h=MBr+2*WS);} translate([WS,WS,-.1])cube([b,MBr,1.5+.2]); transl...
glb/cad_15270949d4c4.glb
Create a polytunnel tube connector part by designing a vertical cylinder with an outer diameter of 21mm and a total height of 2mm. Bore a concentric hole through the center of this cylinder with a diameter of 17mm, extending the hole 20mm upwards and 20mm downwards to create a hollow sleeve. Finally, cut the entire obj...
$fn=100; x=20; difference(){ rotate ([0,0,0]){ cylinder(2,d=21); cylinder(20, d=17); translate([0,0,-x]) cylinder(x, d=17);} translate([0,-12,-20]){ cube([20,25,40]); }}
glb/cad_8728dbf2892c.glb
Create a 90-degree tube connector consisting of two intersecting cylindrical arms. Each arm is based on a main cylinder with an outer diameter of 21mm and a hollow inner bore of 17mm. The first arm is a vertical cylinder 40mm in height; however, the bottom section is truncated, leaving a flat base. The second arm is an...
$fn=100; d1=21; d2=17; difference(){ rotate ([0,0,0]){ translate([8,0,8.5]) cylinder(2,d=d1); translate([8,0,0]) cylinder(40, d=d2); } translate([-4,7,-8]) cube([20,25,50]); } rotate([0,90,0]){ difference(){ rotate ([0,0,0]){ translate([0,0,16.5]) cylinder(2,d=d1); translate([0,0,0]) cylinder(40, d=...
glb/cad_036d916f49a7.glb
Create a geometric sculpture by starting with the intersection of a sphere with a radius of 20mm and a cube with 30mm sides centered at the origin, where the cube's corners are positioned at -15mm on the X, Y, and Z axes. From this resulting shape, remove three intersecting cylinders, each with a radius of 10mm and a l...
difference() { intersection () { translate([-15, -15, -15]) cube(30); translate([0, 0, 0]) sphere(20); } union () { union () { translate([0,0,-25]) cylinder(50,10,10); translate([0,25,0]) rotate([90,0,0]) cylinder(50,10,10); } translate([-25,0,0]) rotate([90,90,90]) cylinder(50,1...
glb/cad_5038faba44e5.glb
Create a customizable angle block for construction toys. Start by creating a solid wedge-shaped volume 15mm thick. The main body is formed by the convex hull of two thin rectangles, each 15mm wide, rotated in opposite directions by 10 degrees (for a total interior angle of 20 degrees) and separated by a distance of 10m...
$fn = 30; angle = 20; height = 10; use <notch.scad>; linear_extrude(15) difference(){ hull(){ rotate(-angle/2)square([15,0.0001],center=true); translate([0,height])rotate(angle/2)square([15,0.0001],center=true); } rotate(-angle/2)notch(); translate([0,height])rotate(angle/2)rotate(180)notch(); }
glb/cad_f602eea31ba8.glb
Create a Fischertechnik-compatible angled block with a thickness of 5mm and a total height of 15mm. The main body is a wedge-like shape formed by the convex hull of two rectangles, each 15mm wide, rotated in opposite directions by 10 degrees (for a total angle of 20 degrees) around the center. From this main body, re...
$fn = 30; angle = 20; height = 5; use <notch.scad>; use <knob.scad>; linear_extrude(15) difference(){ hull(){ rotate(-angle/2)square([15,0.0001],center=true); translate([0,height])rotate(angle/2)square([15,0.0001],center=true); } rotate(-angle/2)notch(); } translate([0,height,7.5])rotate(angle/2)knob();
glb/cad_a8f5caf6ff8c.glb
Create a Fischertechnik-compatible angled block by extruding a specific 2D profile to a height of 15mm. The base profile is formed by the convex hull of two thin rectangles, each 15mm wide, rotated in opposite directions by 10 degrees (for a total angle of 20 degrees) and separated by a distance of 5mm. From this sol...
$fn = 50; angle = 20; height = 5; use <notch.scad>; use <rail.scad>; linear_extrude(15){ difference(){ hull(){ rotate(-angle/2)square([15,0.0001],center=true); translate([0,height])rotate(angle/2)square([15,0.0001],center=true); } rotate(-angle/2)notch(); } translate([0,height])rotate(angle/2)rail(); }
glb/cad_2556b89b2317.glb
Create a customizable angle block for construction toys. Start by forming the main body as a hull between two thin, square plates, each 15mm by 15mm. Position the first plate at the origin, rotated -20 degrees on the Z-axis and -20 degrees on the Y-axis. Position the second plate 15mm above the first along the Y-axis, ...
$fn = 30; angle = 20; angle2 = 40; height = 15; use <notch.scad>; use <rail.scad>; module body(a, a2, h){ hull(){ rotate([-a2/2,0,-a/2]) cube([15,0.0001,15],center=true); translate([0,h,0])rotate([a2/2,0,a/2]) cube([15,0.0001,15],center=true); } } difference(){ body(angle,angle2,height); rotate([-angle2/2,0,-ang...
glb/cad_2a2779cadb14.glb
Create a customizable angle block for a construction toy system. Start by forming the main body as a hull between two 15mm x 15mm squares; the first square is centered at the origin and rotated by -10 degrees on the Z-axis and -20 degrees on the X-axis, while the second square is translated 10mm upward along the Y-axis...
$fn = 30; angle = 20; angle2 = 40; height = 10; use <notch.scad>; use <rail.scad>; module body(a, a2, h){ hull(){ rotate([-a2/2,0,-a/2]) cube([15,0.0001,15],center=true); translate([0,h,0])rotate([a2/2,0,a/2]) cube([15,0.0001,15],center=true); } } difference(){ body(angle,angle2,height); rotate([-angle2/2,0,-angl...
glb/cad_3ec273b2c5a4.glb
Create a customizable angle block for a construction toy system. Start by creating a solid base with a height of 15mm. The footprint of this base is a quadrilateral defined by the coordinates [0,0], [0,15], [15, 15 + tan(15°) * 15], and [15,0]. From this solid, remove four identical notches to create connection point...
$fn = 30; angle = 15; use <notch.scad>; linear_extrude(15) difference(){ polygon([[0,0],[0,15],[15,15+tan(angle)*15],[15,0]]); translate([7.5,0])notch(); translate([0,7.5])rotate(-90)notch(); translate([15,7.5])rotate(90)notch(); translate([0,15])rotate(180)rotate(angle)translate([-7.5,0])notch(); }
glb/cad_4f80bfe66736.glb
Create a customizable angle block for construction toys with a height of 15mm. The main body is a wedge-like shape formed by the hull of two squares, each 15mm by 15mm; one square is positioned at the origin and rotated -10 degrees, while the other is translated 15mm along the x-axis and rotated 10 degrees. From this...
$fn = 30; angle = 10; use <notch.scad>; use <rail.scad>; linear_extrude(15){ difference(){ hull(){ translate([15,0])rotate(angle)square([0.0001,15]); rotate(-angle)square([0.0001,15]); } translate([15/2,0])notch(); rotate(90-angle){ translate([15/2,0])rotate(180)notch(); } } translate([15,0])rotate(90+angle)transl...
glb/cad_a6d804e82182.glb
Create a Monitor Stand Arm Extension in the shape of a rectangular block with rounded ends. The main body must be 60mm long, 20mm wide, and 33mm tall. The two shorter ends of the block should be fully rounded into semicircles with a diameter of 20mm, creating a capsule-like profile when viewed from the top. Centered al...
$fn=80; length=60; width=20; height=33; boltDiameter=9; module boltHoles() { module boltHole() { translate([0,0,-(height+10)/2]) { cylinder(d=boltDiameter,h=height+10); } } translate([(length/2),0,0]) { boltHole(); } translate([-(length/2),0,0]) { boltH...
glb/cad_b3d3de65d9bb.glb
Create a bottle opener tool with a thickness of 10mm. The main body is a flat, elongated organic shape that tapers from a rounded handle on one end to a functional head on the other. The handle end is a smooth, rounded semi-circle. As the body extends toward the head, it maintains a consistent width before curving sl...
fudge = 0.1; module poly_path2995(h) { scale([25.4/90, -25.4/90, 1]) union() { linear_extrude(height=h) polygon([[-181.354202,32.011405],[-179.869586,33.697246],[-177.307241,35.028668],[-173.735794,36.026605],[-169.223874,36.711994],[-163.840107,37.105773],[-157.653124,37.228878],[-143.144014,36.746811],...
glb/cad_8c284b3bdd0e.glb
Create a square tray organizer with a grid of 1 by 3 cells. The overall outer dimensions are determined by the cell sizes plus the wall thickness: the total width is 25.6mm and the total depth is 50mm, with a total height of 12mm. Start by creating a solid rounded rectangular block with these outer dimensions and a c...
_1_numCellsX = 1; _2_numCellsY = 3; _3_cellSizeX = 24; _4_cellSizeY = 16; _5_cellHeight = 12; _6_externalRounding = 3; _7_sidewall = 0.8; _8_bottomThickness = 1.2; _9_resolution = 30; module roundedCube(x, y, z, fillet) { if (fillet <= 0) { cube([x,y,z], center=true); } else { assign (x = x/2-fillet, y...
glb/cad_34525c074b79.glb
Create a Titan Compatible Extruder to Wades Adapter. Start with a main rectangular base 66mm wide, 28mm deep, and 9mm thick. Extend the front and back of the base with cross supports that are 20mm wide and 10mm long. In the center, create a vertical filament hole with a diameter of 1.75mm (or 3mm depending on the vers...
filament_diameter = 1.75; width = 66; depth = 28; thickness = 9; side = "both"; hotend_diameter = 16; hotend_lip_height = 4; hotend_groove_depth = 2; extruder_diameter = 16; extruder_lip_height = 3.5; hot_nut_diameter = 6.5; hot_nut_height = 2.4; hot_bolt_diameter = 3.2; washer_diameter = 9; extruder_stop...
glb/cad_86ca1907cc67.glb
Create a parametric pill container divider. Start with a cylinder 36.5mm in diameter and 58mm in length. Hollow out the center of this cylinder to create a tube with a wall thickness of 1.5mm, but leave a flat solid base at the bottom that is 2.92mm thick (8% of the diameter). Divide the interior of the tube into 7 e...
num_compartments = 7; diameter = 36.5; length = 58; width_spacer = 1.5; percent_open = 33; percent_flat = 8; width_wall = 1.5; include_holes = 1; width_hole = 2; height_hole = 1.5; spacing_hole = 6; width_open = diameter * percent_open / 100; width_flat = diameter * percent_flat / 100; radius = diameter / 2;...
glb/cad_ef73301741d4.glb
Create a Sanguinololu Enclosure consisting of two mirrored halves: a bottom base and a top cover. For the bottom base, create a rounded rectangular shell with a wall thickness of 4.2mm and a corner radius of 4mm. The outer dimensions are 59.9mm by 112.7mm. The interior should be hollowed out to fit a PCB of 51.5mm by ...
mirror(1,0,0)enclosure_top(); translate([80,0,0])enclosure_bottom(); walls_thickness=4.2; top_bottom_thickness =2.7; corner_radius =4; snap_fit_height=6; pcb_feet_height=3; max_elem_height=22; fan_mount_holes_distance = 32; fan_mount_holes_dia=4; fan_mount_nut_dia=7.85; fan_mount_nut_height=1.5; fan_hole_dia=40; fan...
glb/cad_47980ac585b4.glb
Create a SortingBox by constructing a solid rectangular block with a total width of 192mm, a total length of 154mm, and a height of 40mm. From this solid base, carve out a grid of 12 rectangular cells arranged in 4 columns and 3 rows. Each cell should be an open-topped void with a depth of 40mm, starting from the top s...
tw =192; tl = 154; owh = 40; nw=4; nl=3; oww = 1; iww = 0.6; boxes(nw,nl,oww,iww,owh,(tw-2*oww+iww)/nw,(tl-2*oww+iww)/nl); module boxes(nbw,nbl,ow,iw,oh,boxw,boxl) { difference() { cube([nbw*boxw+ow+ow-iw,nbl*boxl+ow+ow-iw,oh]); for (i=[0:nbw-1]) for (j=[0:nbl-1]) translate([i*boxw+ow,j*boxl+ow,ow])...
glb/cad_7b2b02310434.glb
Create a rounded cube with overall dimensions of 13mm in width, 10mm in length, and 25mm in height. Every edge and corner of the cube must be rounded with a consistent radius of 2mm. The final shape should be a smooth, continuous volume where all twelve edges and eight vertices are filleted to the specified 2mm radius.
module square_chamfer1edge (size = [10, 10], cut = [5, 5]) { difference () { square (size, center = true); translate ([(size[0]/2)-cut[0], 0]) polygon (points = [cut, [cut[0], 0], [0, cut[1]]]); } } module square_convex1edge (size = [10, 10], radius = 5) { union () { ...
glb/cad_031bef3fd099.glb
Create a SortingBox consisting of a rectangular grid of open-topped compartments. The overall outer dimensions of the box are 191.4mm in width, 153.4mm in length, and 40mm in height. The structure is defined by a solid outer wall 1mm thick and internal dividing walls 0.6mm thick. Arrange the interior into a 4 by 3 grid...
tw =192; tl = 154; owh = 40; nw=4; nl=3; oww = 1; iww = 0.6; boxes(nw,nl,oww,iww,owh,(tw-2*oww+iww)/nw,(tl-2*oww+iww)/nl); module boxes(nbw,nbl,ow,iw,oh,boxw,boxl) { difference() { cube([nbw*boxw+ow+ow-iw,nbl*boxl+ow+ow-iw,oh]); for (i=[0:nbw-1]) for (j=[0:nbl-1]) translate([i*boxw+ow,j*boxl+ow,ow])...
glb/cad_7b2b02310434.glb
Create a SortingBox consisting of a grid of nine open-top rectangular compartments. The overall outer dimensions of the box are 101.4mm in width, 103.4mm in length, and 40mm in height. The outer walls are 1mm thick, while the inner dividing walls are 0.6mm thick. The structure is formed by creating a solid block with...
tw =102; tl = 104; owh = 40; nw=3; nl=3; oww = 1; iww = 0.6; r = 0.9; $fn=12; if (r<=0) { boxes(nw,nl,oww,iww,owh,(tw-2*oww+iww)/nw,(tl-2*oww+iww)/nl); } else { rboxes(nw,nl,oww,iww,owh,(tw-2*oww+iww)/nw,(tl-2*oww+iww)/nl,r); } module boxes(nbw,nbl,ow,iw,oh,boxw,boxl) { difference() { cube([nbw*boxw+ow+o...
glb/cad_e5e9c0def16a.glb
Create a parametric storage box with a sliding lid and a locking latch system. The box has outer dimensions of 60mm length, 40mm width, and 15mm height, with all exterior corners rounded to a 3mm radius. The walls and floor have a thickness of 1.8mm. The bottom part is an open-topped rectangular shell. Along the inter...
part="both"; l=60; w=40; h=15; r=3; $fn=36; max_angle=60; bottom_t=1.8; top_t=1.8; side_t=1.8; rail_play=0.2; rail_vertical_play=0.1; front_play=0.3; hook_play=0.2; catch_play=-0.2; back_play=0.3; top_front_t=1.2; front_support_t=1; front_slope=0.5; box_cut=r*(1-sin(max_angle)); rail_min_t=1.2; rai...
glb/cad_4fd3d7c77dc3.glb
Create a gear cogwheel with a total height of 3mm. The main body is a cylinder with a diameter of 27mm (calculated from 20 teeth with a module of 1.5). Around the perimeter, create 20 evenly spaced, symmetrical teeth. Each tooth should be constructed as a trapezoidal prism that extends from the inner diameter of 24mm t...
height = 3; hole_diameter = 5; d_smaller_diameter = 4; z = 20; m = 1.5; d = z * m; da = d + 2 * m; c = 0.167 * m; df = d - 2*(m + c); internal_diameter = df; res = 100; cogs=z; cog_length= (da - df)/2; cog_base_width=((df * 3.14159 ) / z)/2; cog_base_height=height; cog_tip_width=cog_base_width*0.5; tip_hei...
glb/cad_a71aee6ec2dc.glb
Create a Cable Wall Screw Mount consisting of four identical units stacked vertically with a 0.2mm gap between them. Each unit is composed of a central cable arch and two flanking rectangular bases. For the bases, create two rectangular blocks, each 3mm thick (2mm base thickness plus 1mm extra) and 8.1mm wide. Center ...
CABLE_DIAMETER = 7; SCREW_HOLE_DIAMETER = 4.1; TWO_SCREWS = true; COUNTER_SINKING = true; MOUNT_QUANTITY = 4; MOUNT_THICKNESS = 2; CABLE_REDUCED_HEIGHT = 1; ARCH_PART_OF_BASE = false; SCREW_HOLE_MARGIN = SCREW_HOLE_DIAMETER+2; SCREW_HOLE_EXTRA_THICKNESS = 1; MOUNT_QUANTITY_SPACING = 0.2; $fn = $preview ? 24 ...
glb/cad_0896cab1050c.glb
Create a camper cabinet hinge by starting with a composite base that is 2.4mm thick. Form the main body by combining a cylinder with a diameter of 13mm and a rectangular extension. The rectangular section should extend from the edge of the cylinder, measuring 16.6mm in length and 10mm in width. To create the hinge mech...
height=2.4; od=13; id=0.125*25.4+0.5; doorw=3; doorh=16.6; w=10; thing(); module thing(){ difference () { body(); cuts(); } } module body() { hull () { cylinder (h=height,r=od/2,$fn=100); translate([od/2,doorw+w,0])cylinder (h=height,r=0.002); } translate([od/2,doorw,0])cube([doorh,w,height...
glb/cad_afb7c82f7471.glb
Create a parametric hinge consisting of two identical mirrored halves. For each half, start with a rectangular platen 3mm thick, with a length of 20mm (from the center of the joint to the end) and a width of 20mm. One end of the platen is rounded with a semicircular cap with a diameter of 20mm. At the joint end, creat...
hinge_width = 20; hinge_lenght = 30; hinge_diameter = 10; hinge_number = 4; hinge_tolerance = 0.6; hinge_barrette_diameter = 3; hinge_barrette_tolerance = 0.3; platen_thickness = 3; platen_bolt_metric = 3; platen_bolt_tolerance = 0.3; $fn=50; translate ([hinge_diameter,0,0]) difference () { union () {...
glb/cad_00ff5a3d9bc4.glb
Create a customizable pen holder by constructing a hollow cylinder with an outer diameter of 75mm and a total height of 100mm. The cylinder should have a uniform wall thickness of 3mm, leaving an internal void with a diameter of 69mm that begins 3mm from the base. On the exterior surface, integrate the word "PENS" as a...
use <write/Write.scad>; Diameter = 75; Height = 100; Wall = 3; Text1 = "PENS"; TextSize = 20; FontName = "Letters.dxf"; union(){ writecylinder(text = Text1, where = [1, 1, -(Height/2)+(TextSize/2)], radius = ((Diameter/2) + (Wall/2)), height = Height, west = 90, h = TextSize, t=Wall, bold=true, spac...
glb/cad_be49b64b9c89.glb
Create a parametric Stevenson screen for a temperature sensor. The main body is a hollow, truncated cone with a height of 25mm, a bottom diameter of 52mm, and a top diameter of 32mm. The wall thickness of this cone is 2mm. To create the ventilation and mounting structure, add three vertical cylindrical struts, each 20...
$fn = 100; shieldThickness = 2; topDiameter = 32; bottomDiameter = 52; isTop = true; if(isTop) { topLevel(); } else { singleLevel(); } module topLevel() { difference(){ union(){ singleLevel(); translate([0,0,23]) cylinder(2, topDiameter, topDiameter); ...
glb/cad_ff2bb1a624df.glb
Create a tabletop gaming base by starting with a square prism that is 40mm wide, 40mm long, and 3.4mm high. Center a cylindrical hole within this prism to create a recessed slot. This hole should have a diameter of 30mm and a depth of 3mm, leaving a 0.4mm thick floor at the bottom of the base.
width = 40; length = 40; hole_depth = 3; hole_diameter = 30; CubePoints_outer = [ [ 0, 0, 0 ], [ width, 0, 0 ], [ width, length, 0 ], [ 0, length, 0 ], [ 1, 1, 3.4 ], [ width-1, 1, 3.4 ], [ width-1, le...
glb/cad_651eea2e903b.glb
Create a sonar module holder by starting with a central rectangular base measuring 45mm by 22mm with a height of 10mm. Center this base on the origin. Remove two large vertical cylindrical holes, each with a radius of 8.5mm and a height of 20mm, positioned at x = 12.5mm and x = -12.5mm respectively. Additionally, remov...
module base () { translate ([0,0,2]) cube ([45,22,10],center=true); cube ([13.75,21.75,10],center=true); } module choles () { translate ([12.5,0,0]) cylinder (r=8.5,h=20,center=true,$fn=30); translate ([-12.5,0,0]) cylinder (r=8.5,h=20,center=true,$fn=30); } module bholes () { translate ([20.5,9.25,0]) cylin...
glb/cad_cbb0dfcc9dad.glb
Create a sonar module holder by starting with a central rectangular base measuring 45mm by 22mm with a height of 10mm. From this base, remove several geometric voids to create the housing. First, carve out two large vertical cylindrical holes centered at x=12.5mm and x=-12.5mm, with radii of 7.75mm and 8.5mm respective...
module base () { translate ([0,0,2]) cube ([45,22,10],center=true); cube ([13.75,21.75,10],center=true); } module opt_cube () { cube ([17,17,8],center=true); cube ([19,5,8],center=true); translate ([9.5,0,0]) cylinder (r=2.5,h=8,center=true,$fn=30); translate ([-9.5,0,0]) cylinder (r=2.5,h=8,cente...
glb/cad_6bab744018d5.glb
Create a tabletop gaming base with a square footprint of 20mm by 20mm and a total height of 3.4mm. The main body is a shallow tray with a wall thickness of 1mm, creating a recessed inner area that is 18mm by 18mm and 1.9mm deep. Centered within this recessed area, carve a rectangular slot that is 2mm wide and 3mm deep,...
width = 20; length = 20; offset = 1; rotation = 0; function get_length( a, b, rot ) = ( (rot < atan(b/a))? (a/(cos(rot))): (b/sin(rot)) ); CubePoints_outer = [ [ 0, 0, 0 ], [ width, 0, 0 ], [ width, length, 0 ], [ 0, length, 0 ], ...
glb/cad_5b59660a2e15.glb
Create a simple keyholder consisting of a flat, elongated oval base with three protruding hooks. The base is 120mm long, 20mm wide, and 4mm thick. Construct this base by combining a central rectangular block measuring 100mm by 20mm by 4mm with two semi-cylindrical ends of 20mm diameter, then carve out a 4mm wide recess...
$fn=200; L=120; H=20; module ovale(H,L,E) { translate([-(L-H)/2,-H/2,0]) cube([L-H,H,E]); translate([-(L-H)/2,0,0]) cylinder(d=H,h=E); translate([(L-H)/2,0,0]) cylinder(d=H,h=E); } module crochet(H,D) { rotate([-20,0,0]) cylinder(h=H,d=D); } difference() { union() { ovale(H,L,2); ...
glb/cad_c1ebb740e598.glb
Create a Face Mask Strap Clip by starting with a solid rectangular block measuring 12mm in length, 12mm in width, and 5mm in height. Carve a central channel through the block to hold a strap, starting the cutout 1.8mm from the front face. This channel should be 3.6mm wide and 5mm high, extending through the width of th...
$fa=1*1; $fs=0.25*1; w = 12; h = 5; l = 12; cutout_adj = 0.2; d_strap=3.4; d_strap_channel = d_strap + cutout_adj; dc = 1.75; in_offset = 1.8; difference() { cube([l, w, h]); translate([in_offset, 2, in_offset]) cube([d_strap_channel, w-4, h]); translate([d_strap_channel/2+in_offset, -0.01, h...
glb/cad_3ee3cbdf1845.glb
Create a Physical Fit Testing Block. The object is a rectangular slab with a thickness of 10mm. The slab contains a grid of hexagonal holes arranged in rows and columns. There are 4 rows in total. The first row starts with a base hole diameter of 2mm, and each subsequent row increases the base diameter by 1mm, ending...
start = 2; end = 5; step = 0.1; sides = 6; margin = 2.5; thickness = 10.0; scale = 1.0; boxWH = end + (margin*2); fontSize = thickness*0.75; rotation = 360.0/sides/2.0; rows = end - start; cols = 1.0 / step; rotate([0,0,90]) { for (row = [ 0 : 1 : rows ]) { xOffset = (boxWH/2.0)*-scale; ...
glb/cad_c23cb3e1102f.glb
Create a customizable herb support consisting of a circular base ring and several vertical legs. Start by creating a hollow ring with an outer diameter of 55mm and a wall thickness of 3mm, with a total height of 3mm. Position a set of 3 vertical legs equally spaced around the ring. Each leg should be a cylinder with a ...
width = 55; height = 80; numberOfLegs = 3; legThickness = 5; ringThickness = 3; radius = width/2; spearLength = 15; $fn=50; legHeight = height-spearLength; innerThickness = radius-ringThickness; difference(){ cylinder(ringThickness, radius, radius); cylinder(height*2, innerThickness, innerThickness,true); } ...
glb/cad_c28ac37629b8.glb
Create a Taranis QX7 Gimbal Rim by constructing a series of concentric cylindrical shapes. Start with a base cylinder 60mm in diameter (30mm radius) and 9mm high. Add a thin ring on top of this base with a radius of 31mm and a height of 1mm. Above this, add a third cylinder with a radius of 25.7mm (25.55mm plus a 0.2mm...
$fn=300; nozzlediam = 0.4 / 2; difference() { { difference() { union() { cylinder(r1=30,r2=30,h=9); translate([0,0,8])cylinder(r1=31,r2=31,h=1); translate([0,0,9])cylinder(r1=25.55+nozzlediam,r2=25.55+nozzlediam,h=3); } translate([0,0,-5])cylinder(r1=24.2+nozzlediam,r2=24.2+nozzlediam,h=20); translate([0,0,-1])cylin...
glb/cad_8692b965b95d.glb
Create a Gauge Holder for a Proxxon MF70 CNC. The main body is a vertical cylinder with a radius of 21mm and a total height of 35.1mm. At the top of the cylinder, create a flat circular face. Centered on this face, subtract a vertical cylindrical hole with a radius of 4.15mm and a depth of 16mm. On the side of the ...
bigSize = 500; eps = 0.01; rScrewHole = 3.5/2; rNut = 6.3/2; tNut = 2.5; nutOffsetY = -0.8; rNutM8 = 14.9/2; tNutM8 = 6.5; rNutM8Support = rNutM8+1.5; rClamp = 15.5/2; hClamp = 8.0; wClamp = 13.3; rThread = 8.3/2; hThread = 16.0; rHoleGauge = 8.1/2; rGaugeClamp = 18.0/2; tGaugeClamp = 6.5; lGaugeExtension = 19.5; rG...
glb/cad_c8af2235ff95.glb
Create a Face Mask Sewing Cut Template with an overall length of 280mm, a width of 190mm, and a thickness of 4mm. The main body is a hollow rectangular frame with walls 9mm wide. The frame is bisected by a central vertical bar that is 12mm wide and runs the full length of the model. To create the open sections, remov...
$fa=1*1; $fs=0.25*1; l = 280; w = 190; thn = 4; w_rand = 9; w_overlap = 12; offset_marker = 50; difference() { union() { difference() { cube([w, l, thn], center=true); cube([w-2*w_rand, l-2*w_rand, thn+0.02], center=true); } translate([0, 0, -thn/4]) ...
glb/cad_66e23a323f5e.glb
Create a traffic light model starting with a central rectangular block that is 20mm wide, 20mm deep, and 50mm high. Hollow out the center of this block by removing a vertical cylinder with a radius of 3.5mm and two larger intersecting cylinders, each with a radius of 6.5mm and a height of 30mm, where one is oriented al...
wallwidth=1; overlap=0.01; module shade() { translate([0, 0, 2]) difference() { cylinder(center=true,r=7.5,h=4); translate([0, 0, 2.05]) rotate([15, 0, 0]) cube(center=true, [20, 20, 4]); } } module chamber() { rotate(a=[90, 0, 0]) cylinder(center=true, r=6.5, h=30); rotate(a=[0, 90, 0]) cylinder(center=true,...
glb/cad_6a63d01a31bb.glb
Create a customizable storage box for a pegboard with internal dimensions of 75mm width, 50mm depth, and 50mm height. The box walls and bottom should have a thickness of 3mm. The main body is a rectangular prism with rounded corners, created by applying a 1.5mm radius to the edges. On the back face of the box, integr...
width = 75; depth = 50; height = 50; bottom = true; thickness = 3; tolerance = 0.1; spaceBetweenHooks = 40; hookWidth = 3; hooks = ceil(width / spaceBetweenHooks); hookoffSet = ((width -(spaceBetweenHooks*(hooks-1)))/2)-1.5; $fn=20; difference() { minkowski() { cylinder(r=0.5 - tolerance); union() { ...
glb/cad_8e58274499d6.glb
Create an adjustable endstop holder by starting with a rectangular block measuring 20mm in length, 13mm in width, and 4mm in height. Within this block, create a hexagonal nut-shaped cavity centered at x=9mm and y=2.2mm. This cavity must have a height of 1.5mm and a corner-to-opposite-corner diameter of 4.4mm. Pass a ...
hh = 4; hn = 1.5; dn = 4.4; ds = 3; dsh = 6; difference() { cube([20,13,hh]); translate([9,dn/2,hh/2]) { color("red") nut(); color("red") cylinder(h=10,r=.9, center = true, $fn=100); } translate([5,8,0]) rotate ([180,0,0]) color("red") screw(); translate([15,8,0]) rotate ([180,0,0]) color("red") screw(); } ...
glb/cad_ef88be118a87.glb
Create a parametric drinks coaster consisting of a base and an embedded logo. Start by creating a main cylindrical body with an outer diameter of 100mm and a total height of 4mm. From the top of this cylinder, remove a concentric cylindrical core with a diameter of 90mm and a depth of 2mm, leaving a 2mm thick flat base...
Outer_diameter = 100; Inner_diameter = 90; Rim_height = 4; Coaster_thickness = 2; Logo_stl_path = "Aperture_Science.stl"; Logo_portrait = 1; Logo_offset = 10; Layer_height = 0.2; Generate_part = 0; module Logo() { if (Logo_portrait == 0) { color("black") translate([0,0,Coaster_thickness-Layer_height]) resi...
glb/cad_ba35ff09149a.glb
Create an I-Beam Drone model by combining several geometric primitives. Start with a central body formed by a large rectangular block measuring 85mm by 50.75mm by 26.5mm, from which a smaller rectangular block of 92mm by 53mm by 20mm is removed from the top. Integrate a triangular prism with a height of 91mm and a base...
include <C:\Program Files (x86)\OpenSCAD\libraries\MCAD\shapes.scad> include <C:\Program Files (x86)\OpenSCAD\libraries\MCAD\units.scad> include <C:\Program Files (x86)\OpenSCAD\libraries\MCAD\materials.scad> hole = 1.5; comp = 20; module dome1 () difference () { union() { color ("red") rotate ([0,270,0]) translate ...
glb/cad_a329f0f3b373.glb
Create an I-Beam Drone model by constructing a central structural beam with a triangular cross-section. Start with a primary triangular prism that is 100mm long, with a side length of 12mm, centered on the origin. Add a second, smaller triangular prism of the same 12mm side length, 14mm in height, positioned 56mm below...
include <C:\Program Files (x86)\OpenSCAD\libraries\MCAD\shapes.scad> include <C:\Program Files (x86)\OpenSCAD\libraries\MCAD\units.scad> include <C:\Program Files (x86)\OpenSCAD\libraries\MCAD\materials.scad> comp = 50; hole=1.5; module ibeam () difference () { union() { color ("red") translate ([0,0,0]) rotate ([0,0...
glb/cad_787605fd3f56.glb
Create an I-Beam Drone model by constructing a central base and adding symmetrical structural elements. Start with a base part consisting of a box measuring 117.5mm by 157.5mm by 33mm, rotated 45 degrees on the Z-axis, with a smaller box of 112.5mm by 152.5mm by 30mm positioned inside it. Add a series of cylindrical h...
include <C:\Program Files (x86)\OpenSCAD\libraries\MCAD\shapes.scad> include <C:\Program Files (x86)\OpenSCAD\libraries\MCAD\units.scad> include <C:\Program Files (x86)\OpenSCAD\libraries\MCAD\materials.scad> hole = 1.5; comp = 50; module fullcorners () difference () { union() { color ("red") translate ([0,0,0]) rota...
glb/cad_872b0bc57ae3.glb
Create an I-Beam Drone model by assembling several geometric components. Start with a central rectangular block measuring 85mm by 55.5mm with a height of 22mm. Overlay this with a second rectangular block measuring 70mm by 70mm and a height of 22mm. Add several cylindrical elements to the structure. Place two cylinder...
include <C:\Program Files (x86)\OpenSCAD\libraries\MCAD\shapes.scad> include <C:\Program Files (x86)\OpenSCAD\libraries\MCAD\units.scad> include <C:\Program Files (x86)\OpenSCAD\libraries\MCAD\materials.scad> hole = 1.5; comp = 50; module toper() difference () { union() { color ("silver") rotate ([0,0,45]) translate...
glb/cad_a76840ba59d9.glb
Create an mStand inspired phone stand with a total width of 80mm and a material thickness of 3.5mm. The base is a flat rectangular plate 70mm long and 80mm wide. From the rear of the base, extend two symmetrical vertical supports that curve upward and forward to hold a device. The back support is a vertical wall 90mm ...
$fn= 360; width = 80; thick = 3.5; back = 90; module curve(height, width, length, a) { if( a > 0 ) { r = (360 * (length/a)) / (2 * PI); translate( [-r-height/2,0,0] ) rotate_extrude(angle = a) translate([r, 0, 0]) square(size = [height, width], center = false); ...
glb/cad_e48ab7c592b1.glb
Create a spacer for an OmniStand by constructing a hollow cylinder with an outer diameter of 80mm, an inner diameter of 50mm, and a height of 15mm. To this main body, remove four identical curved sections to create open slots. Each slot should be a 60-degree arc centered on the ring's wall. Position these four openings...
diameter=80; centerHole=20; wallWidth=(diameter-centerHole)/2; height=15; spokeWidth=15; spokeLength=((diameter-centerHole)/2)-5; difference(){ hollowCylinder(d=diameter, h=height, wallWidth=wallWidth); color("blue") translate([0,0,-0.1]) linear_extrude(height+0.2) arc(wallWidth/2, angles1, width=wallWidth/1.5); color(...
glb/cad_1eb5adfbac22.glb
Create a circular spacer for an OmniStand with an outer diameter of 80mm and a height of 10mm. Start by forming a hollow cylinder with a center hole diameter of 50mm. To create the structural support, add four equidistant rectangular spokes that bridge the inner hole to the outer rim. Each spoke should be 15mm wide. Th...
diameter=80; centerHole=20; wallWidth=(diameter-centerHole)/2; height=10; spokeWidth=15; spokeLength=((diameter-centerHole)/2)-5; difference(){ hollowCylinder(d=diameter, h=height, wallWidth=wallWidth); color("blue") translate([0,0,-0.1]) linear_extrude(height+0.2) arc(wallWidth/2, angles1, width=wallWidth/1.5); color(...
glb/cad_939d3158a364.glb
Create a circular spacer for an OmniStand. Start by creating a solid cylinder with a diameter of 80mm and a height of 5mm. From the center of this cylinder, remove a smaller concentric cylindrical hole with a diameter of 50mm and a height that fully penetrates the object. The resulting shape should be a flat, ring-like...
diameter=80; centerHole=20; wallWidth=(diameter-centerHole)/2; height=5; spokeWidth=15; spokeLength=((diameter-centerHole)/2)-5; hollowCylinder(d=diameter, h=height, wallWidth=wallWidth); module hollowCylinder(d=5, h=10, wallWidth=1, $fn=128) { difference() { cylinder(d=d, h=h); translate([0, 0, -0.1]) { cylind...
glb/cad_1d988e26c262.glb
Create a collection of four distinct geometric shapes. First, create a thin 3D star with a height of 1mm, featuring 36 points with an inner radius of 5mm and an outer radius of 6mm. Second, create a skewed cube with base dimensions of 10mm by 10mm and a height of 4mm, skewed by 45 degrees along the X-axis and centered....
linear_extrude(1) star(N=36,ri=5,re=6); translate([15,0,0]) skewedCube([10,10,4],[45,0],center=true); translate([30,0,0]) linear_extrude(1) arc(r=10, angle=50); translate([30,30,0]) rotate_extrude() rotate(30) arc(r=10, angle=60); module calcFacets(r=5){ echo(r=r,n=($fn>0?($fn>=3?$fn:3):ceil(max(min(360/$fa,r*2*PI/...
glb/cad_3e7d36f84c69.glb
Create a wheelbarrow handle grip by constructing a hollow cylindrical sleeve. Start with a main outer cylinder that has a diameter of 34.6mm and a height of 130mm. On top of this main body, add a second cylindrical section with a height of 10mm that tapers slightly from a base diameter of 34.6mm to a top diameter of 50...
dia = 30.6; len = 130; rim = 10; dik = 2; eind1 = 3; eind2 = 10; $fn=60; difference() { union() { cylinder(d=dia+2*dik,h=len); color("red")translate([0,0,len]) cylinder(d1=dia+2*dik,d2=dia+2*rim,h=eind2); color("blue")translate([0,0,len+eind2]) cylinder(d=dia+2*rim,...
glb/cad_e4aac9520f2e.glb
Create a customizable bench dog consisting of a cylindrical shaft and a flat head. Start by creating a vertical cylinder for the shaft with a diameter of 18.5mm and a height of 50mm. At the base of this shaft, attach a head that is 12mm thick. This head should have a total width of 25mm and a length of 25mm. One end of...
shaft_diameter = 18.5; shaft_length = 50; head_thickness = 12; head_width = 25; head_length = 25; rounded_head = 1; union() { if (rounded_head) { head_radius = head_width/2; difference() { translate([head_radius, head_radius, 0]) { union() { cyl...
glb/cad_bf844d5a5add.glb
Create a Reagent Robot reaction chamber consisting of a base plate, a central chamber, and a top cover. Start with a square base plate measuring 50mm x 50mm x 6.35mm. In the center of this plate, create a circular hole with a diameter of 12.7mm that is drilled partway through the thickness. Above the base, create a ...
inch = 25.4*1; plexidepth = 1/4 * inch; basedepth = plexidepth; chamberdepth = basedepth*2; coverdepth = basedepth; bodywidth = 50; bodylength = 50; chamberwall = 5; chamberdia = min(bodywidth,bodylength)-chamberwall; spindleseat = basedepth-3; spindledia = 12.7; injectdia = 1; boltdia = 4; boltoff = 12; stirt...
glb/cad_4eee14f9f9db.glb
Create a safety razor holder by starting with a cylinder that has a diameter of 36mm and a height of 42mm, using a 60-facet resolution. Trim the sides of this cylinder with a block that is 25mm wide and 42mm long to flatten the back. Center a horizontal hole with a diameter of 3mm through the middle of the shape. Add...
c=36; a=c/2; l=42; w= 25; z=5; r=3; p=4; h=10; j=4; k=36; bottom(); module bottom(){ difference(){ difference(){ difference(){ difference(){ difference(){ difference(){ cylinder(h=l, r=a, $fn=60); translate([-w,-c/3-1,0])cube([w*2,l,l]); translate([0,0,l/2])rotate ([90,0,0]) cylinder(h=c, r=r/2, $fn=20); translate([0,...
glb/cad_e1f64228153a.glb
Create a safety razor handle by constructing a long, narrow cylindrical body with a diameter of 9mm and a length of 100mm. Bore a central longitudinal hole through the entire length of the cylinder with a diameter of 4mm. At one end of the cylinder, create a hexagonal cutout to serve as a nut trap; this hexagon should ...
a=3; b=6; c=3; handle(); module handle(){ translate([((13)/2)+((d+6)),0,0])rotate([0,0,90])set_screw(5); } module set_screw(h){ difference(){ translate([0,5,h])rotate([90,0,0])cylinder(100,(b+3)/2, (b+3)/2); translate([0,10,h])rotate([90,0,0])cylinder(200,(a+1)/2, (a+1)/2); translate([0,0,h])nuttrap(); } difference(...
glb/cad_42ca9f0950d1.glb
Create a safety razor holder by starting with a rectangular block 20mm wide, 42mm long, and 2.5mm high. Carve a semi-cylindrical groove into the top face along its length with a radius of 18mm, centered so that the groove removes the top center portion of the block. Drill a small hole with a diameter of 1.5mm through t...
c=36; a=c/2; l=42; w= 20; z=2.5; r=3; p=3.8; h=7; top(); module top(){ difference(){ difference(){ difference(){ translate([-10,-18,0])cube([w,20,l]); translate ([0,z,0])cylinder(h=l, r=a, $fn=60); translate([-w*1.5,-c/3,0])cube([w*3,l,l]); translate([0,0,l/2])rotate ([90,0,0]) cylinder(h=c, r=r/2, $fn=20); } } } tran...
glb/cad_f5ffaaea7ca5.glb
Create a safety razor holder by starting with a primary body formed from the intersection of two overlapping cylinders, each with a radius of 18mm and a height of 42mm, positioned such that their centers are offset by 2.5mm along the Y-axis. Trim the ends of this shape with a block 24mm wide and 42mm long to create a c...
c=36; a=c/2; l=42; w= 16; z=2.5; r=3; p=3.8; h=7; top(); module top(){ difference(){ difference(){ difference(){ cylinder(h=l, r=a, $fn=60); translate ([0,z,0])cylinder(h=l, r=a, $fn=60); translate([-w*1.5,-c/3,0])cube([w*3,l,l]); translate([0,0,l/2])rotate ([90,0,0]) cylinder(h=c, r=r/2, $fn=20); } } } translate([0,-...
glb/cad_e1d7a1160e6f.glb
Create a paper-tray hook for an HP Officejet 4500 consisting of two distinct extruded polygonal sections, both with a height of 7.75mm. The first section is a polygon with vertices at [-2,0], [23,0], [25,4], [20,8], [19,5], and [17,4], [0,8], which should be rotated by approximately 14.48 degrees (asin(2/8)) around the...
rotate([0,0,asin(2/8)]) linear_extrude(height=7.75) polygon( points=[[-2,0],[23,0],[25,4],[20,8],[19,5],[17,4],[0,8]] ); translate([-30.9,-.5,0]){ linear_extrude(height=7.75) polygon(points=[ [27,0],[29,0],[29,2],[27,2],[15,14],[2,14],[0,0] ]); }
glb/cad_3db535dc7ac4.glb
Create a Keychron K6 Bezel, which is a rectangular protective frame consisting of two symmetrical mirrored halves. Each half-shell is designed around a central void and features a complex profile with a total outer length of 306.4mm and a width of 96.8mm. Construct the main body by extruding a profile that combines a...
$fn = 64; module x_profile(edge_thickness=2, top_thickness=1) { module a() translate([0, 15.3]) circle(.4); module b() translate([-.4, 16.6]) square([.8, top_thickness]); module c() translate([3.1, 16.6]) square([edge_thickness, top_thickness]); module d() translate([2.3, 0]) square([edge_thickness, .8...
glb/cad_9060c7466699.glb
Create a housing ring for a sensor by starting with a hollow cylinder that has an outer diameter of 80.2mm, an inner diameter of 74mm, and a height of 10mm. Bisecting this ring, add a rectangular support beam that is 3mm thick and spans the inner diameter of the ring. Within this support beam, create two vertical holes...
id=74; od=80.2; le=10.0; $fn=100; thick=3; bme_dia = 3.4; bme_dis = 10.5; difference() { cylinder(d=od,h=le,center=true); cylinder(d=id,h=le+1,center=true); } difference(){ cube([thick,id,le],center=true,$fn=40); color("red")rotate([0,90,0]) translate([-le/2+3,bme_dis/2,-thick/2-1]) cylinder(d=bme_dia, ...
glb/cad_68c9cf56c283.glb
Create a circular cap for a sensor housing. Start with a main outer cylinder that has a diameter of 83.1mm and a height of 15mm. Remove a concentric inner cylinder with a diameter of 78.1mm and a height of 17mm, centered vertically so it cuts through the bottom, leaving a wall thickness of 2.5mm. Inside this ring, con...
id=77.1+1; th=3; $fn=50; cx=5; cy=id; cz=4; dc1=15; dc2=8.5; use <write/Write.scad> Text_Size =10; Text_Font ="orbitron.dxf"; Text_Rotate =0; module writing() { color("red")rotate([0,180,0])translate([-20,7.5,-cz/2]) write("Luft",font=Text_Font,h=Text_Size,t=cz,space=1.1, center=true); color("red") rotate(...
glb/cad_526894a4ebba.glb
Create a housing cap for a BME280 sensor. Start by creating a hollow cylinder with an outer diameter of 85.4mm, an inner diameter of 78.4mm, and a height of 15mm, using a 50-facet resolution for the circular walls. Inside this ring, construct a central support structure consisting of a small cylinder with a diameter of...
id=77.4+1; th=3; $fn=50; cx=5; cy=id; cz=4; dc1=15; dc2=8.5; module cap() { difference() { cylinder(d=(id+2*th),h=15); translate([0,0,-1]) cylinder(d=id,h=15+2); } } module structure() { cap(); translate([0,0,cz/2])cube([cx,cy,cz], center=true); rotate([0,0,90]) translate([0,0,c...
glb/cad_1d3e2b5c2c9c.glb
Create a Luftdaten ESP8266 BME280 Hackair Pipe House clip. Start by creating a hollow ring with an inner diameter of 83mm, an outer diameter of 89mm, and a height of 15mm. Cut a small gap into the ring to make it an open band; this gap should be 3mm wide and centered on the ring's thickness. At the opening of the ban...
dia = 83; wijd = 15; $fn=50; xx = (dia/2)+15; yy = 3; hoek = 7; difference() { union() { cylinder(d=dia+6, h=wijd); bars(); } translate([xx/2,0,wijd/2]) cube([xx,yy,wijd], center=true); translate([0,0,-1]) cylinder(d=dia, h=wijd+2); } module bars() { difference() { union(){ rota...
glb/cad_60a4fd6419f8.glb
Create a housing cap for a BME280 sensor designed to fit an 80mm PVC pipe. Start by creating a hollow cylinder with an outer diameter of 91.3mm and an inner diameter of 86.3mm, with a height of 15mm and a wall thickness of 3mm. At the base of this cylinder, integrate a central structural support consisting of a solid...
id=85.3+1; th=3; $fn=50; cx=5; cy=id; cz=4; dc1=30; dx1=5; module cap() { difference() { cylinder(d=(id+2*th),h=15); translate([0,0,-1]) cylinder(d=id,h=15+2); } } module structure() { cap(); translate([0,0,cz/2])cube([cx,cy,cz], center=true); cylinder(d=dc1,h=cz); } differenc...
glb/cad_66fa7446afe6.glb
Create a circular cap for a sensor housing. Start by creating a solid cylinder with a diameter of 83.4mm and a height of 15mm. From the center of this cylinder, remove a smaller concentric cylinder with a diameter of 77.4mm and a height of 15mm, starting from 5mm above the base, to create a hollow ring with a 3mm wall ...
id=77.4; th=3; hole=8; $fn=50; module cap() { difference() { cylinder(d=(id+2*th),h=15); translate([0,0,5]) cylinder(d=id,h=15); } } difference() { cap(); translate([0,0,-1]) cylinder(d=hole,h=10); }
glb/cad_76e8719ac5e8.glb
Create a Luftdaten ESP8266 BME280 Hackair Pipe House by constructing a hollow cylindrical sleeve. Start with an outer cylinder that has a diameter of 80mm and a height of 40mm. Remove a concentric inner cylinder from the center with a diameter of 77.4mm and the same height of 40mm to create a wall thickness of 1.3mm. E...
id=77.4; od=80; le=40.0; $fn=50+0; difference() { cylinder(d=od,h=le); cylinder(d=id,h=le); }
glb/cad_58f78847c3bf.glb
Create a Cable Spool Organizer consisting of two mirrored circular components: a top and a bottom. For the top piece, create a base cylinder with a radius of 40mm and a height of 2mm. Centered on this base, add a second cylinder with a radius of 17mm and a total height of 22mm. Remove a central vertical hole with a r...
part = "both"; big_radius = 40; flange_thick = 2; cut_radius = 8; small_radius = 15; winding_thick = 20; $fn=100; output(); module output() { if (part == "top") { top(); } else if (part == "bottom") { bottom(); } else if (part == "both") { top(); translate([big_radius*2+5,0,0]) bottom(); } } mo...
glb/cad_8e5b134cd726.glb
Create a Raspberry Pi Case with mounting features. The main body is a hollow rectangular box with rounded corners, measuring 61mm in width, 90mm in length, and approximately 25mm in height, with a wall thickness of 2mm. The case is split into a top and bottom shell. The bottom shell is a shallow tray designed to hold ...
DRAWfull = 0; DRAWtop = 1; DRAWbottom = 1; DRAWtopinlet = 0; DRAWbottominlet = 0; DRAWpcb = 0; GPIOHOLE = 2; GPIOsize = 2; topframe = false; topinlet = false; topholes = false; holeofs=5; holesiz=2.5; holestep=6; noholes=12; holelen=30; holeangle1=[0,0, 0]; topmi...
glb/cad_a7432774bb23.glb
Create a Raspberry Pi Case with mounting features. The main body is a hollow rectangular box with rounded corners, measuring 61mm in width, 90mm in length, and approximately 25mm in height, with a wall thickness of 2mm. The case is split into a top and bottom section at the height of the HDMI connector. The bottom sec...
use<write.scad> DRAWfull = 0; DRAWtop = 0; DRAWbottom = 1; DRAWtopinlet = 0; DRAWbottominlet = 0; DRAWpcb = 0; GPIOHOLE = 2; GPIOsize = 2; topframe = false; topinlet = false; topholes = false; holeofs=5; holesiz=2.5; holestep=6; noholes=12; holelen=30; holeangle...
glb/cad_30cfbab33e40.glb
Create an Antenna Hanger for a mast by constructing a main cylinder with a diameter of 33.34mm and a height of 38.1mm, centered on the origin. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a diameter of 25.4mm and a height of 33.34mm, leaving a base wall thickness of 4.76mm at th...
include <MCAD/math.scad> PipeOD=((1+(3/16)) * mm_per_inch); PipeID=(1 * mm_per_inch); CylinderOD=PipeOD+((3/8) * mm_per_inch); CylinderLen=((1+(1/2)) * mm_per_inch); CapThick=((3/16) * mm_per_inch); TabHeight=(CylinderLen * 2); TabWidth=(1 * mm_per_inch); TabThick=((1/4)* mm_per_inch); BoltDia=((5/16) * mm_per_inch); B...
glb/cad_ac649bd0568a.glb
Create an Antenna Hanger for a mast by constructing a main cylinder with a diameter of 31.75mm and a height of 25.4mm, centered on the origin. Hollow out the center of this cylinder to accommodate a pipe, creating a hole with a diameter of 25.4mm that extends from the bottom up to a thickness of 4.76mm from the top fac...
include <MCAD/math.scad> PipeOD=((1+(3/8)) * mm_per_inch); PipeID=((1+(3/16)) * mm_per_inch); CylinderOD=PipeOD+((1/4) * mm_per_inch); CylinderLen=(1 * mm_per_inch); CapThick=((3/16) * mm_per_inch); TabHeight=((CylinderLen + (1 * mm_per_inch))); TabWidth=(1 * mm_per_inch); TabThick=((1/4)* mm_per_inch); BoltDia=((5/16)...
glb/cad_2e073b8f7f03.glb
Create a Digispark RGB case by starting with a solid rectangular block measuring 22.4mm in width, 20.4mm in depth, and 10mm in height. Hollow out the center to create a box with a wall thickness of 1.2mm. The interior cavity should measure 20mm by 17mm. To accommodate the hardware, remove a rectangular section from th...
rgbx = 19.5 + 0.5; rgby = 17.0 + 0.5; rgbz = 1.7; rgbz = 10; wall = 1.2; level = 2.6-wall; df = 0.1; tcz =12; tcz2 = 4; $fn=30; DigiSparkRGBCase(); module DigiSparkRGBCase() {difference() {cube([rgbx+2*wall,rgby+2*wall,rgbz]); translate([wall,wall,wall]) cube([rgbx,rgby,rgbz+1]); translate([wall,rg...
glb/cad_9b367cce8726.glb
Create a P3Steel Y belt tensioner consisting of two mirrored assemblies. Each assembly comprises a main arm and a sliding guide rail. For the arm, create a base block 10mm wide and 10mm high, extending into a larger body 25.4mm wide, 30mm long, and 8mm thick. Integrate a hull-like transition between a 5x10x1mm block a...
$fn=100; translate([0,0,0]) rotate([-30,0,0]) brazo_dch(); translate([0,0,0]) rotate([-30,0,0]) brazo_izq(); translate([33,10,-10.25]) rotate([-30,0,0]) patin_dch(); translate([-33,10,-10.25]) rotate([-30,0,0]) patin_izq(); translate([35,0,0]) carril_dch(); translate([-35,0,0]) carril_izq(); module correa() { transl...
glb/cad_31f159246a28.glb
Create a Pipe Plug designed to seal the end of a tube. The object is a rotationally symmetrical part with a total height of 13mm. Start by creating a cylindrical base with an outer diameter of 22mm and a height of 0.75mm. From the top of this base, create a tapered section that narrows to a diameter of 19mm over a he...
throughHoleDiameter = 4; knotHoleDiameter = 9; knotHoleDepth = 8; pipeID = 19; pipeOD = 22; chamferDistance = 0.75; taperDistance = 2; outset = 2; bridgeThickness = 0.4; totalHeight = 13; union() { rotate_extrude() polygon(points=[ [knotHoleDiameter/2,0], [knotHoleDiameter/2,knotHoleDepth], [throu...
glb/cad_9691c79a8dd0.glb
Create a 3-Digit Voltmeter Dongle case consisting of a main box and a sliding cover. Construct the main box as a rectangular enclosure with chamfered edges. The outer dimensions are approximately 67.2mm in length, 26.4mm in width, and 12mm in height, with wall thicknesses of 3.36mm. On the top face, create a central ...
ew = 0.56; module chamfered_cube(size,d=1){ hull(){ translate([d,d,0])cube(size-2*[d,d,0]); translate([0,d,d])cube(size-2*[0,d,d]); translate([d,0,d])cube(size-2*[d,0,d]); } } module myBox( isize, wall, d=1 ){ eps=[0.01,0.01,0.01]; difference(){ chamfered_cube(isize+2*wall,d); ...
glb/cad_313ce058ef6a.glb
Create a looseleaf ring consisting of a main circular band and a sliding fastener. The main band is a torus with a cross-sectional diameter of 3mm and a major radius of 20mm. Cut a gap into this torus to create a C-shape; the gap should be wide enough to accommodate a 10mm separation between the two open ends of the ri...
thickness=3; radius=20; brochure_separation=10; brochure_constant=brochure_separation/2; difference(){ rotate_extrude(convexity = 10, $fn = 100) translate([radius, 0, 0]) circle(d = thickness, $fn = 100); linear_extrude(height = thickness, center = true, convexity = 10, twist = 0) polygon(points=[[0,0],[radius...
glb/cad_f6958f659408.glb
Create a camera mount bracket by starting with a base shape formed from the convex hull of a 6x46x12mm cube and a 15x10x12mm cube positioned at x=-15, y=18, z=0. From this solid, remove a vertical cylinder with a radius of 10mm and a height of 14mm centered at x=7, y=23. Bore three horizontal holes completely through t...
difference () { hull () { cube([6,46,12]); translate ([-15,18,0]) cube([15,10,12]); } translate ([7,23,-1]) cylinder (h=14, r=10); translate ([-10, 6,6]) rotate ([0,90,0]) cylinder (h=20,r=2, $fn=50); translate ([1, 2,10]) rotate ([0,90,0]) cube([9,9,3]); translate ([-10, 40,6]) rotate ([0,90,0]...
glb/cad_c149cc7500ce.glb
Create a Kodak Play Sport Video Camera Ski Pole Mount by starting with a base rectangular block measuring 4mm wide, 46mm long, and 12mm thick. Add a semi-cylindrical protrusion to the top center of this block with a radius of 12mm and a height of 12mm. From this combined form, remove a central cylindrical core with a r...
difference () { union () { cube([4,46,12]); translate ([7,23,0]) cylinder (h=12,r=12); } translate ([7,23,-1]) cylinder (h=14, r=10); translate ([-10, 6,6]) rotate ([0,90,0]) cylinder (h=15,r=2, $fn=50); translate ([-10, 40,6]) rotate ([0,90,0]) cylinder (h=15,r=2, $fn=50); translate ([4,5,-1]) ...
glb/cad_2657dbef3ed9.glb
Create a camera mount bracket for a ski pole. Start with a rectangular base measuring 65mm in length, 20mm in width, and 4mm in height. At the right end of this base, create a cutout consisting of three overlapping rectangular sections: one 20mm by 65mm by 4mm block, and two 4mm high blocks rotated at 45 degrees and -4...
translate([0,-5.5,0]) cube([65,20,4]); difference () { union () { translate([55,-25, 0]) cube([20,65,4]); translate([45,-3,0]) rotate([0,0,45]) cube([38,10,4]); translate([45,-3,0]) rotate([0,0,-45]) cube([28,10,4]); } translate([64,-10,-1]) cylinder (h=10,r=2.1, $fn=30); translate([64...
glb/cad_b4e8d4348d13.glb
Create a speaker horn stand for an Amazon Fire TV Cube. Start with a solid cube measuring 86mm in width, 86mm in depth, and 60mm in height. Hollow out the center of the block to create a horn shape. First, remove a horizontal cylinder with a radius of 64mm (60mm height plus 2mm walls on each side) that runs through t...
$fn=360; feetEdge=5; feetDiam=8; feetHeight=2; speaker=32; walls=2; x=86; y=x; z=60; module sequentialHull(){ for (i = [0: $children-2]) hull(){ children(i); children(i+1); } } translate([x,0,z]) rotate([0,180,0]) difference(){ cube([x,y,z]); difference(){ t...
glb/cad_400b87a34975.glb
Create an Index Card Bleacher organizer. Start with a solid rectangular main body measuring 86.2mm wide (X), 60mm deep (Y), and 80mm high (Z). Carve out three tiered slots from the top and back. Each slot is 86.2mm wide and 20mm deep, separated by 5mm walls. The slots have a flat bottom 5mm from the base and rounded ...
CARD_WIDTH = 76.2; TOLERANCE = 5; SIDE_WALL_WIDTH = 4; HEIGHT = 80; SLOT_DEPTH = 20; SLOT_WALL = 5; SLOT_BOTTOM_HEIGHT = 5; SLOT_CORNER_RADIUS = 4; TRAY_DEPTH = 10; TRAY_LIP = 10; DETAIL = 100; BOX_WIDTH = CARD_WIDTH + TOLERANCE + SIDE_WALL_WIDTH * 2; BOX_DEPTH = SLOT_DEPTH * 2 + TRAY_DEPTH + SLOT_WALL * 4; CUTOUT_R...
glb/cad_9377994bd019.glb
Create a 90-degree bracket consisting of two perpendicular arms joined at a corner. Each arm is a rounded rectangular prism with a length of 40mm, a width of 20mm, and a thickness of 6mm, featuring a corner radius of 2.5mm. The two arms meet at a 90-degree angle, connected by a central cubic block that is 6mm in size a...
include <MCAD/boxes.scad> Sides_Length=40; Width=20; Thickness=6; Hole_Radius=3; Corner_Radius=2.5; difference() { union() { translate([(Sides_Length/2)-(Thickness/2),0,0]) { roundedBox([Sides_Length,Width,Thickness],Corner_Radius,true); } translate([0,0,(Sides_Length/2)-(Thickness/2)]) { rotat...
glb/cad_ee32f6cc13f0.glb
Create a Makerslide Dial Indicator Holder. Start by constructing a main body that combines a horizontal base and a vertical hanger. The horizontal base is a rectangular block 50mm wide, 40mm deep, and 5mm thick. Attached to this is a vertical hanger section that is 40mm tall and 5mm thick. Integrate a specific profile...
$fn=100; width=40; base=50; thickness=5; bprofile=3.75; hclearance=15; hoffset=bprofile+thickness; voffset=40+bprofile+thickness; dropdown=20; id1=15.9743; id2=13.89; od1=23.5; od2=18.75; module mkrslidedialind() { difference() { union() { difference() { translate([-base-hclearance,0,-voffset-dropdown...
glb/cad_17a609589c61.glb
Create a replacement part for a weed removal tool consisting of a tiered cylindrical body with a central vertical bore. Start with a base cylinder 95mm in diameter and 32mm high. On top of this, add a second cylinder 47.5mm high that tapers from a diameter of 83mm down to 51mm. Remove a central vertical hole with a ra...
bore_diameter = 5.8; inner_bore_distance_long_side = 39.2; bore_distance_long_side = inner_bore_distance_long_side+bore_diameter; inner_bore_distance_short_side = 37.8; bore_distance_short_side = inner_bore_distance_short_side+bore_diameter; diameter_bottom = 95; diameter_middle = 83; diameter_top = 51; radius_of_notc...
glb/cad_7deed11ecaf1.glb
Create a filament spool holder consisting of a base and a top guide. Start by creating a 3-sided polygonal prism (an equilateral triangular prism) with a height of 8mm and a radius of 40mm to serve as the base. In the center of this base, remove a cylindrical hole with a radius of 10mm and a height of 8mm, and a second...
function sat(x) = 12*exp(-x+3); module rodamiento() { cylinder(h=6, r=12); cylinder(h=8, r=10); } module guia(h=4, r=19, w=2) { difference() { cylinder(h=h, r=r); cylinder(h=h, r=r-w); } } module portacarrete_3DINK(h=8, r=40, caras=3) { difference() { cylinder(h=h, r=r, $fn=caras); rodamien...
glb/cad_c9f774c64455.glb
Create a filament spool holder consisting of a hexagonal base and a central cylindrical support. Start by constructing a regular hexagonal prism with a radius of 40mm and a height of 3mm. Centered on the top face of this hexagon, add a vertical cylindrical tower with a total height of 13mm. This tower is composed of tw...
module soporte_rodamiento() { cylinder(h=10, r=4); difference() { cylinder(h=2, r=5); cylinder(h=2, r=4); } } module portacarrete_base(h=3, r=40) { cylinder(h=h, r=r, $fn=6); translate([0, 0, h]) soporte_rodamiento(); } portacarrete_base(h=3, r=40);
glb/cad_1d409a03c0ad.glb