Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a vacuum former nozzle consisting of a rectangular base and a central cylindrical collar. Start by creating a rectangular block measuring 75mm in width, 56mm in depth, and 15mm in height. Centered on top of this block, add a hollow cylinder with an outer diameter of 37.5mm and a height of 25mm. The interior of t...
include <./MCAD/units.scad> include <./MCAD/boxes.scad> rotate(X * 180) { difference() { union() { translate(Z * 15/2) { cube([75, 56, 15], center=true); } translate(-Z * 25) { cylinder(r=31.5/2, h=25); } translate(-Z * 25) { cylinder(r=31.5/2 + 3, h=25, $fn=64); } } translate(-Z * (25 + epsi...
glb/cad_49fb91ee99f2.glb
Create a conduit end mount consisting of a circular base and a central cylindrical collar. Start with a solid cylinder for the base that has a diameter of 50.8mm and a height of 4mm. Centered on this base, create a taller cylindrical collar with an outer diameter of 50.8mm and a total height of 19.05mm. Remove a cent...
include <./MCAD/units.scad> include <./MCAD/boxes.scad> Conduit_0_5_OD = 18; M3_NutWrench = 5.5; M3_NutHeight = 2.4; M3_ScrewHole_Dia_Clear = 3.2; M3_ScrewHole_Dia_Tap = 2.5; Slot = false; SetScrews = true; SetScrewNuts = false; SetScrewDia = SetScrewNuts ? M3_ScrewHole_Dia_Clear : M3_ScrewHole_Dia_Tap; ConduitClea...
glb/cad_a77a7a15e9f4.glb
Create a conduit fitting consisting of a T-junction of three intersecting cylinders. The main body is a cylinder with an outer diameter of 25.4mm and a length of 50.8mm. This main cylinder has a concentric hollow center with a diameter of 18.5mm running its full length. Intersecting this main body at a 90-degree angle...
include <./MCAD/units.scad> include <./MCAD/boxes.scad> ConduitClearance = 0.5; ConduitOD = 18; ConnectorOD = 25.4; ConnectorHeight = 50.8; BaseHeight = 4; BaseDia = 50.8; MountHeight = 19.05; BottomHeight = 1; MountTaperRadius = 12.7; MountScrewDia = 5; MountScrewHeadDia = 10; SetScrews = true; SetScrewDia = 3.2; Nu...
glb/cad_7a6aeb0e78aa.glb
Create a conduit fitting consisting of two intersecting cylinders. First, create a main vertical cylinder with a diameter of 25.4mm and a height of 25.4mm. Intersect this with a second cylinder of the same diameter and height, rotated 90 degrees, to form a cross-shaped junction. Remove a central cylindrical hole from...
include <./MCAD/units.scad> include <./MCAD/boxes.scad> ConduitClearance = 0.5; ConduitOD = 18; ConnectorOD = 25.4; ConnectorHeight = 25.4; BaseHeight = 4; BaseDia = 50.8; MountHeight = 19.05; BottomHeight = 1; MountTaperRadius = 12.7; MountScrewDia = 5; MountScrewHeadDia = 10; SetScrews = true; SetScrewDia = 3.2; Nu...
glb/cad_5455d586f4d0.glb
Create a T-shaped conduit connector for 18mm outer diameter conduit. The main body is formed by the intersection of two cylinders, each with a 25.4mm outer diameter and a height of 25.4mm, positioned perpendicularly to one another. Remove a central cylindrical hole with a diameter of 18.5mm that runs through the length...
include <./MCAD/units.scad> include <./MCAD/boxes.scad> LayerHeight=0.3; Conduit_0_5_OD = 18; M3_NutWrench = 5.5; M3_NutHeight = 2.4; M3_ScrewHole_Dia_Clear = 3.2; M3_ScrewHole_Dia_Tap = 2.5; JunctionSphere=false; SetScrews = true; SetScrewNuts = true; SetScrewDia = SetScrewNuts ? M3_ScrewHole_Dia_Clear : M3_ScrewH...
glb/cad_66a0da93fcd3.glb
Create a conduit fitting centered on a sphere with a radius of 12.7mm. From the center of this sphere, extend three cylinders outward along the X, Y, and Z axes. Each cylinder must have an outer diameter of 25.4mm and a length of 12.7mm from the sphere's surface. Bore a hole through the center of each cylinder and thro...
include <./MCAD/units.scad> include <./MCAD/boxes.scad> Capped=true; SetScrews=true; ConduitOD=18; ConduitClearance=0.5; CornerOD=25.4; ConnectorOD=25.4; ConnectionLength=12.7; SetScrewDia = 3.2; SetScrewOffset=6.35; NutWrenchClearance = 0.3; NutHeightClearance = 0.1; NutWrench = 5.5 + NutWrenchClearance; NutHeigh...
glb/cad_459587a7996e.glb
Create a conduit elbow fitting by starting with a sphere of 31.65mm diameter. Attach a cylinder to the bottom of the sphere with an outer diameter of 25.4mm and a height of 30mm, centered so it extends from the sphere's core. Carve a continuous conduit hole with a radius of 9.5mm through the center of the assembly, r...
include <./MCAD/units.scad> include <./MCAD/boxes.scad> Capped=true; SetScrews=true; ConduitOD=18; ConduitClearance=0.5; CornerOD=25.4+6.25; SetScrewDia = 3.2; NutWrenchClearance = 0.3; NutHeightClearance = 0.1; NutWrench = 5.5 + NutWrenchClearance; NutHeight = 2.4 + NutHeightClearance; module screw(d, h, hd, hh) {...
glb/cad_763b71106159.glb
Create a coaster for an STM32 Nucleo development board. Start with a base rounded box measuring 76mm wide, 89mm high, and 4mm thick, with corner radii of 1mm. On the top surface, add three cylindrical mounting studs with an outer diameter of 5.5mm and a height of 7.4mm. Position these studs at coordinates [8.95, 0], ...
include <./MCAD/units.scad> include <./MCAD/boxes.scad> Nucleo_Base_Offset=4; Nucleo_Base_Width=76; Nucleo_Base_Height=81 + Nucleo_Base_Offset * 2; Nucleo_Base_Thick=4; Nucleo_Base_Radius=1; Nucleo_Mount_Pos=[ [ 8.95, 0 ], [ -24.15, 50.8 + 1.3 ], [ 24.15, 50.8 ] ]; Nucleo_Mount_OD=5.5; Nucleo_Mount_ID=3; Nucleo_Mount...
glb/cad_b5080343c802.glb
Create a mounting bracket for a power adapter by constructing a U-shaped holder. Start with a vertical back plate that is 30mm wide, 76.2mm high, and 4mm thick, with rounded corners of 4mm. Add two side walls extending forward from the back plate; these walls should be 33mm wide, 52mm high, and 30mm deep, also featurin...
include <./MCAD/units.scad> include <./MCAD/boxes.scad> UBNT_PowerSupply_Dim = [85, 44, 29]; MountScrewDia=5; MountScrewClearance=0.5; module ubnt_powersupply_cutout(r=1) { translate(Z * (UBNT_PowerSupply_Dim[2] / 2)) { union() { roundedBox(UBNT_PowerSupply_Dim, r, false, $fn=32); ...
glb/cad_b08a91a7f2fe.glb
Create a plate for a DE5000 handheld LCR meter opto interface. Start with a central rectangular block measuring 27.25mm wide, 26mm long, and 6mm thick. On one of the 26mm edges, add a semi-cylindrical mounting clip that is 10mm wide, 1mm long, and 2mm thick. On the opposite 26mm edge, add two smaller rectangular mounti...
include <./MCAD/units.scad> include <./MCAD/boxes.scad> LayerHeight=0.35; DE5000_CablePlate_Width=27.25; DE5000_CablePlate_Length=26; DE5000_CablePlate_Thick=6; DE5000_CablePlate_MountClip_A_Width=10; DE5000_CablePlate_MountClip_A_Length=1; DE5000_CablePlate_MountClip_A_Thick=2; DE5000_CablePlate_MountClips_B_Widt...
glb/cad_3674d6e79223.glb
Create a replacement keypad for a Racal Dana 2101 counter consisting of a thin backing plate and twelve individual keycaps. First, create a rectangular backing plate measuring 34mm wide, 48mm long, and 0.7mm thick. In this plate, arrange twelve rectangular cutouts in a 3x4 grid to house the keys. The cutouts should b...
include <./MCAD/units.scad> include <./MCAD/boxes.scad> RacalKey_Dim = [8, 4.7, 8.5]; RacalKey_Radius = 1; Racal_Keypad_Spacing = [15, 11.9]; Racal_Keypad_Backing_Dim = [34, 48, 0.7]; LED_Dia=7.5; LED_Pos = [[-22, -13], [-22, -1], [-22, 11], [-22, 27.5], [24, -13.25], [24, -1.5], [24, 10.25], [24, 22]]; ...
glb/cad_f24294a4363a.glb
Create a Minié Ball model by constructing a composite bullet shape. Start with a base consisting of a cylinder 17.385mm in diameter and 2.286mm high. Above this base, stack three additional cylindrical sections, each 1.778mm tall and 17.385mm in diameter, separated by thin gaps of 1.27mm. On top of these sections, plac...
$fn=50; scale_factor = 25.4; scale(scale_factor){ difference(){ union(){ cylinder(h=.09, d=.685); for (i=[0:1:2]) translate([0,0,i*(.07+.05)]){ translate([0,0,.09]) cylinder(h=.07, d1=.685-.03,d2=.685); } for (i=[0:1])...
glb/cad_06a1f6d9a970.glb
Create a Raspberry Pi 3 Mount by first constructing a rectangular base frame measuring 85mm by 56mm with a height of 3mm. Remove a central rectangular section measuring 75mm by 46mm, positioned 5mm from the left and bottom edges, to leave a hollow border. At each of the four corners of this frame, add a mounting post. ...
$fn=30; difference() { cube ([85,56,3]); translate([5,5,0]) cube ([75,46,3]); } translate([82.5,53.5,0])cylinder(d=5,h=9); translate([82.5,2.5,0])cylinder(d=5,h=9); translate([2.5,2.5,0])cylinder(d=5,h=10); translate([2.5,2.5,0])cylinder(d=2.5,h=13); translate([2.5,53.5,0])cylinder(d...
glb/cad_274c3815042b.glb
Create a Raspberry Pi 3 Mount by starting with a rectangular base plate measuring 85mm by 56mm with a thickness of 3mm. Hollow out the center of this plate by removing a rectangular section measuring 75mm by 46mm, leaving a 5mm wide border around the perimeter. At each of the four corners of the base, add a cylindrical...
$fn=30; difference() { cube ([85,56,3]); translate([5,5,0]) cube ([75,46,3]); } translate([82.5,53.5,0])cylinder(d=5,h=9); translate([82.5,2.5,0])cylinder(d=5,h=9); difference(){ translate([2.5,2.5,0])cylinder(d=5,h=10); translate([2.5,2.5,5])cylinder(d=3,h=5); } difference(){ ...
glb/cad_05c2e7bff94e.glb
Create a Name Badge Holder consisting of a flat, rectangular frame with a small attachment loop. Start by creating a rectangular plate 85.5mm high, 54mm wide, and 3mm thick. The outer corners of this plate should be rounded with a radius of 3.5mm. Cut a rectangular hole through the center of the plate to create a bor...
$fn=30; badgeWidth = 54; badgeHeight = 85.5; badgeThickness = 1; sideThickness = 3; roundedness = 1.5; borderThickness = 2; loopWidth = 10; loopHeight = 3; loopThickness = 1; hingeSpace = 8; module oneSide(){ linear_extrude(height = sideThickness, slices = 3) { difference() { offset(r = roundedne...
glb/cad_36e29eeb99b9.glb
Create a table leg bracket consisting of a hollow square socket and a flat top plate. Start by constructing the socket as a hull of four cylinders, each with a radius of 1.6mm, positioned 18.4mm from the center in a square pattern. The socket should have a total height of 30mm and a central square cutout of 34mm by 34m...
upright_width = 32; upright_clearance=1; wall_thickness = 3.2; wall_rad=1.6; wall_height=30; corner_rad=5; rib=3.2; top_plate = 4.8; screw_offset = 10; screw_edge=10; screw_dia = 4.5; corner_distance=(upright_width/2+upright_clearance+wall_thickness); socket_width=upright_width+2*upright_clearance; cap_edge=corner_...
glb/cad_d0e7c91dcde5.glb
Create two identical shower curtain pipe fasteners. Each fastener is a cylindrical plug with a height of 35mm and an outer diameter of 26.5mm. The main body is a cylinder with a vertical slot 2mm wide cut through its entire height, splitting the cylinder into two halves to allow for compression. The interior of the p...
use <../MCAD/metric_fastners.scad> apply_chamfer=false; outerDiameterPipe = 30; outerRadiusPipe = outerDiameterPipe/2; innerRadiusBend = 10; innerDiameterPipe = 26.5; innerRadiusPipe = innerDiameterPipe /2; insertHeight = 35; insertSlot = 2; insertWallTop = 2; insertWallBottom = 5; removeFastnerTop = 3; pullHeight...
glb/cad_c542043728ea.glb
Create a 3D model of a simple 10x10 maze. Start by creating a solid base block measuring 61.5mm x 61.5mm x 5.85mm. From this base, carve out a network of paths to create the labyrinth walls. The walls and paths are based on a grid where each cell is 6mm. The walls are formed by removing smaller cubic sections of 4.5m...
s=6; scale([s,s,s]) difference(){translate([0.25,0.25,-0.25]) cube([10.25,10.25,0.975]);union(){translate([0.5,0.5,0.0]) cube([0.75,0.75,0.75]); translate([1.0,0.5,0.0]) cube([0.75,0.75,0.75]); translate([1.5,0.5,0.0]) cube([0.75,0.75,0.75]); translate([2.0,0.5,0.0]) cube([0.75,0.75,0.75]); translate([2.5,0.5,0.0]) cub...
glb/cad_dcccf98297fe.glb
Create a circular window frame by starting with a hollow cylinder that has an outer radius of 8.5mm, an inner radius of 6mm, and a height of 7.4mm, centered on the origin. On the top face of this cylinder, centered at a height of 7mm, place a smaller concentric ring with an outer radius of 4mm and an inner radius of 2....
box=[1.5,1.5,6]; union(){ difference() { $fs = 0.01; cylinder(h = 7.4, r = 8.5, center = true); cylinder(h = 7.5, r = 6, center = true); } difference() { $fs = 0.01; translate([0,0,7]) cylinder(h = 2, r = 4, center = true); translate([0,0,7]) cylinder(h = 2.1, r = 2.5, center = true); } translate([5.5...
glb/cad_e4adddfcdeba.glb
Create a through-hole expansion-type fastener female part by constructing a thick circular ring. Start with a solid cylinder that has an outer radius of 5mm and a total height of 3.6mm. Remove a central cylindrical core with a radius of 3.5mm that extends from the bottom face upward. From the top face, remove a conical...
module fastener_female (outer_radius, inner_radius, thickness) { difference () { cylinder (r = outer_radius, h = thickness); union () { cylinder (r = inner_radius, h = thickness); translate (v = [0, 0, ...
glb/cad_316f6ede05af.glb
Create a male through-hole expansion-type fastener. Start with a circular flange base with a radius of 5mm and a thickness of 2mm. Centered on this base, extend a vertical shaft with an outer radius of 2.85mm for a length of 4mm. At the end of this shaft, add a proximal cone that expands from the shaft radius of 2.85mm...
module fastener_male (flange_radius, flange_thickness, shaft_length, shaft_radius, hole_radius, opening_width) { cone_base_radius = shaft_radius + opening_width / 2; proximal_cone_length = cone_base_radius ...
glb/cad_0ee3eb30402d.glb
Create a Customizable U-Hook with a total thickness of 25mm. The main body consists of a U-shaped hook with an internal diameter of 45mm. The bottom of the U is rounded, and the two arms extend upwards. On the back vertical plane, add two screw holes. Each hole consists of a 3mm diameter shaft and an 8mm diameter head...
style=0; second_hook=1; hook_size=45; second_hook_lenght=30; second_hook_angle=55; GoAwayCustomizer = 0; thickness=25; spacer_1=20; spacer_2=10; spacer_3=10; spacer_4=10; screw_diam=3; screw_head=8; screw_head_h=3; tolerance=0.5; bracket_size=40; stop_lenght=15; bracket_stiffness=2.5; safety_screw=0; ...
glb/cad_323f7fa63846.glb
Create a rectangular tray for a rock garden with outer dimensions of 150mm by 200mm and a total height of 20mm. The tray is constructed from a flat base and four surrounding walls, all with a uniform thickness of 5mm. The base is a centered rectangular slab measuring 140mm by 190mm with a thickness of 5mm. To form the ...
buildPlateLength = 150; buildPlateWidth = 200; height = 20; wallThickness = 5; flair = 20; buffer = flair + 5; union() { translate([0, 0, wallThickness/2]) cube([buildPlateLength - buffer, buildPlateWidth-buffer, wallThickness], center = true); translate([0, (buildPlateWidth-buffer)/2, height/2]) cube([buildPlateL...
glb/cad_d71ba0cd198f.glb
Create a NEMA17 Motor Bearing Offset mount. Start with a square base plate 43.18mm wide, 43.18mm deep, and 4mm thick, with rounded corners of 4mm radius. Drill four 3mm diameter holes through the plate, spaced 30.99mm apart in a square pattern centered on the plate. On top of this plate, center a vertical cup structur...
include <./MCAD/boxes.scad> include <./MCAD/units.scad> $fn = 128; LayerHeight = 0.3; NEMA17_HOLE_SPACING=30.99; NEMA17_BOLT_DIA=3; NEMA17_MOUNT_WIDTH=43.18; NEMA17_MOUNT_CORNER_RADIUS=4; Bearing_625_Dia=16; Bearing_625_Thick=5; Bearing_625_Clearance=0.5; Bearing_625_ID=5; Cup_Height=35; Cup_MaxWidth=30; Cup_MinWi...
glb/cad_cfbd333fc73f.glb
Create a solder spool spacer by starting with a tapered cylinder that has a height of 5.5mm, a bottom radius of 30mm, and a top radius of 26.75mm. Remove a central vertical hole with a radius of 8.25mm that passes completely through the object. Additionally, carve out three concentric circular recesses from the bottom ...
include <./MCAD/units.scad> SpacerWidth=5.5; SpacerOD1=60; SpacerOD2=53.5; SpacerID=16.5; CutoutDia=[50, 23]; CutoutWidth=[0.5, 1.0]; module solder_spool_spacer() { difference() { cylinder(r1=SpacerOD1/2, r2=SpacerOD2/2, h=SpacerWidth, $fn=128); translate(-Z * epsilon) { cylinder(r=SpacerID/2, h=SpacerWidth+2...
glb/cad_07bb67e9d221.glb
Create a Nema 17 stepper driver pulley. Start with a central threaded cylinder that has a major diameter of 25mm, a pitch of 0.8mm, and a total height of 12mm. This threaded section is flanked by two flat circular discs, each with a radius of 13.5mm; position one disc at the bottom starting at z = -0.4mm with a height ...
module screwthread_triangle(P) { difference() { translate([-sqrt(3)/3*P+sqrt(3)/2*P/8,0,0]) rotate([90,0,0]) cylinder(r=sqrt(3)/3*P,h=0.00001,$fn=3,center=true); translate([0,-P/2,-P/2]) cube([P,P,P]); } } module screwthread_onerotation(P,D_maj,step) { H = sqrt(3)/2*P; D_min = D_maj - 5*sqrt(3)/8*P; f...
glb/cad_cf750d783ed6.glb
Create a Nema 17 stepper driver pulley. Start by creating a central threaded cylinder with a major diameter of 25mm, a pitch of 0.8mm, and a total thread height of 12mm. Attach a solid cylindrical flange to both the top and bottom of this threaded section; each flange must have a radius of 13.5mm and a thickness of 1mm...
include <openscad-2013.06\libraries\MCAD\polyholes.scad> FlatShaft=false; module screwthread_triangle(P) { difference() { translate([-sqrt(3)/3*P+sqrt(3)/2*P/8,0,0]) rotate([90,0,0]) cylinder(r=sqrt(3)/3*P,h=0.00001,$fn=3,center=true); translate([0,-P/2,-P/2]) cube([P,P,P]); } } module screwthread_onero...
glb/cad_68c11f882fc2.glb
Create a reflective RPM sensor mount. Start with a main vertical slot that is 67mm high, 35mm wide, and 3mm thick. At the base of this slot, add a rectangular resting platform that is 39mm wide, 5mm thick, and 3mm high. Above the base, integrate a rounded rectangular housing that is 35mm wide, 15mm deep, and 4mm high, ...
include <./MCAD/units.scad> include <./MCAD/boxes.scad> SlotHeight=67; SlotWidth=35; SlotThick=3; SensorZOffset=20; RestHeight=3; M3_NutWrench = 5.5; M3_NutHeight = 2.4; M3_ScrewHole_Dia_Clear = 3.2; M3_ScrewHole_Dia_Tap = 2.5; NutWrenchClearance = 0.3; NutHeightClearance = 0.1; NutWrench = M3_NutWrench; NutHeight =...
glb/cad_c2ad11a87aff.glb
Create a NEMA17 adapter for a Canon CN38 servo motor. Start with a main body consisting of a rounded square base with a width and length of 31mm and a total thickness of 14mm. In the center of this base, add a cylindrical ring with a diameter of 22.5mm and a height of 2mm. Cut a large central hole through the entire b...
include <./MCAD/boxes.scad> include <./MCAD/units.scad> include <motors.scad> Canon_motor_screw_spacing=18; Canon_motor_dia=38; Canon_motor_ring_dia=12.7; M3_Nut_Height = 2.4; M3_Nut_Wrench = 5.5; M3_Nut_Clearance = 0.5; M3_ScrewHead_Dia = 6; M3_ScrewHead_High = 1.5; M3_Screw_Dia=3; PlateDepth=3; BodyDepth=14; Lay...
glb/cad_ed8583663290.glb
Create a basic electronics box with external dimensions of 75mm in length, 49mm in width, and 27mm in height. The box should have rounded corners with a radius of 4mm and a uniform wall thickness of 1.7mm. The main body is a hollow shell, open at the top. In each of the four interior corners, integrate a cylindrical m...
include <./MCAD/units.scad> include <./MCAD/boxes.scad> Box_Dim = [75, 49, 27]; Box_Radius = 4; Box_Wall_Thick=1.7; Box_Screw_Dia=2.5; Box_Screw_Head_Dia=6; Box_Screw_Edge_Clearance=1; Box_Screw_Head_Clearance=0.5; Box_Screw_Countersink=1; module box_uncut(v, r=0, wall_thickness=1.7) { wt = wall_thickness; ...
glb/cad_5be1aa8cef8e.glb
Create a Raspberry Pi 3 Mount consisting of a rectangular base frame and several cylindrical mounting posts. Start with a rectangular slab measuring 85mm by 56mm with a height of 3mm. Hollow out the center by removing a rectangular section of 75mm by 46mm, leaving a 5mm wide border around the perimeter. At the four co...
$fn=30; difference() { cube ([85,56,3]); translate([5,5,0]) cube ([75,46,3]); } translate([82.5,53.5,0])cylinder(d=5,h=9); translate([82.5,2.5,0])cylinder(d=5,h=9); translate([2.5,2.5,0])cylinder(d=5,h=10); translate([2.5,2.5,0])cylinder(d=2.7,h=13); translate([2.5,53.5,0])cylinder(d=5,h=10); ...
glb/cad_102cabdba163.glb
Create a Test Bowl by constructing a hollow, twisting vessel with a total height of 51.5mm. Start with a base plate 1.5mm thick. The cross-section of the bowl is defined by a 7-sided polygon with a radius of 10mm, which is then thickened by an additional 10mm offset to create the outer wall, leaving an internal void wi...
radius = 10; side = 7; hole = 5.5; thickness = side - hole; h = 50; BodyS = "no"; BaseS = "yes"; bodyTwist = 90; bodySlices = 3; bodyScale = 1.3; baseHeight = 1.5; linear_extrude(height = baseHeight) { Bowl(BaseS); } translate([0,0,baseHeight]) linear_extrude(height = h , twist = bodyTwist ,slices = bod...
glb/cad_014e69ba0b00.glb
Create a Not Gate mechanical logic element consisting of three identical process elements stacked vertically along the Z-axis at positions (0, 0, 0), (0, 0, 40), and (0, 0, -40). Each process element is composed of the following parts: 1. A central arm: Create a rectangular block 150mm x 54mm x 10mm. Remove two 60mm x...
module nand() { translate([0,0,0])process_element(); translate([0,0,40])process_element(); translate([0,0,-40])process_element(); translate([40,-72.50,20])cube([10,10,40],center=true); translate([-40,-72.50,20])cube([10,10,40],center=true); translate([40,72.50,-20])cube([10,10,40],center=true); translate([-40,72.50,-2...
glb/cad_0c91f09363f2.glb
Create a Raspberry Pi Camera Bracket designed for a 1/4-20 tripod mount. Start by constructing a base that combines a hexagonal head with a height of 4.4mm and a wider circular base with a diameter of 25mm and a height of 2.2mm. In the center of this base, create a vertical hole with a diameter of 6.18mm. From the cen...
use <Thread_Library.scad> use <RPiCam-v2.scad> pslop = 0.15; length=10; baseT1 = 8*0.55 + 2; baseT2 = baseT1/2; baseD2 = 25; baseD3 = baseD2/2; pitch=1.27; pitchRadius=(6.18/2)-.1; sideX = 25; sideT = 4; fn=30; eps = 0.05; module thread1() { translate([-pitchRadius,0,-length/2]) trapezoidThread( length=length, ...
glb/cad_e379c83f5344.glb
Create a Raspberry Pi Camera Bracket designed to mount a camera board to a tripod. Start by creating a flat rectangular base plate with dimensions of 25mm by 23.85mm and a thickness of 0.95mm. At each of the four corners of the plate, create a circular mounting hole with a diameter of 2.2mm. These holes should be pos...
xs = 25.0; ys = 23.85; zs = 0.95; smt = 0.05; ID1 = 2.20; OD1 = 4.7; mhxc = 21.0; mhyc = 12.5; mhox = 2.0; mhoy = 2.0; hh = zs*2; smx = 8.45; smy = 8.45; smz = 2.3; smbod = 7.25; smbz = 1.7; smcod = 5.6; smcz = 0.6; smcid = 1.55; smfx = 8.9; smfy = 4.5; smfz = 1.52; smfox = 9.45; smfoy = 2.6; smfcx = 7.2; fcy = 5....
glb/cad_1bd33507d42f.glb
Create a Pool Ladder Hole Cover consisting of a main cylindrical plug and an attached smaller cylindrical handle. Start by creating a main cylinder with a radius of 25mm and a height of 10mm to serve as the plug. Hollow out the center of this plug by removing a concentric cylinder with a radius of 22.22mm and a height ...
$fn = 60; hole_ID = 50; slot_ID = 12; slot_offset = 20; overlap_size = 15; plug_depth=10; rotate([0,180,0]) difference() { union() { hull() { translate([0,0,plug_depth]) cylinder(r1=hole_ID/2 + overlap_size/2, r2=hole_ID/2.5+overlap_size/2, h=plug_depth/2); translate([hole_ID/2 + slot_offset - slot_ID/2, 0,pl...
glb/cad_7bf2717c8e17.glb
Create a laptop stand adapter consisting of three separate components: one front brace and two back braces. Each component is a flat plate with a height of 8mm. For the front brace, create a rectangular block 19.05mm wide and 76.2mm long. For the two back braces, create rectangular blocks 12.7mm wide and 50mm long. O...
barRadius = 25.4 / 8 + 0.9; barInset = 1.5; cutLength = 50; plateHeight = 8; translate([0,0, plateHeight]) rotate([0,180,0]) { translate([-40,-30,0]) frontBrace(); translate([20,0,0]) backBrace(); translate([-20,0,0]) mirror([1,0,0]) { backBrace(); } } module frontBrace() { diagonal(width = 25...
glb/cad_c4a31c438e6a.glb
Create a parametric knob for a tube by constructing a hollow cylinder with an outer radius of 10mm and an inner radius of 9mm, reaching a height of 60mm. The wall thickness should be exactly 1mm. Centered on the top face of this cylinder, place a solid sphere with a radius of 10mm to create a rounded cap. Ensure the in...
$fn=100; knob_inner_hight = 60; inner_radius = 18/2; wall_thickness = 2; out_radius = inner_radius+wall_thickness; union() { difference() { cylinder(h=knob_inner_hight, r=out_radius); translate ([0,0,-1]) cylinder(h=knob_inner_hight, r=inner_radius); } translate ([0,0,knob_inner_hight]) sphere(out_radius);...
glb/cad_33321b2a8d9a.glb
Create a Double Dice Box enclosure with an overall height of 36mm. The main body is a rectangular shell with walls 3mm thick. The outer dimensions of the base are 91mm in width and 78mm in depth. The top surface is a flat plate 2mm thick. Cut two square holes measuring 12mm by 12mm into this top plate to accommodate p...
$fn =50; wall=3; top=2; gap=3; diex=40; diey=75; t=0.5; t2=0.7; button=12; buttonx=14; buttony=14; height=36; ledx1 = 13.5; ledx2 = 22; ledx3 = 31; ledy1 = (diey-21.5); ledy2 = (diey-13); ledy3 = (diey-4.6); ledd = 3; led2x1=ledx1+gap+diex; led2x2=ledx2+gap+diex; led2x3=ledx3+gap+diex; ssx=8.5; ssy=4; soz=9; soh...
glb/cad_21848f178b3e.glb
Create a tablet holder by starting with a hollow cylinder that has an outer diameter of 110.6mm, an inner diameter of 90mm, and a height of 20mm. Remove a large section of the cylinder's volume using two mirrored diagonal cuts, each created by a 100mm cube rotated 20 degrees on the X-axis and positioned to slice throug...
difference(){ base(); holderhols(); diagonalCut(); } module base(){ difference(){ cylinder(20, 55.3, 47, $fn=500); translate([0,0,-2])cylinder(25, 45, 38.5, $fn=500); } } module holderhols(){ color("blue"){ translate([17.7,-60,4]) rotate([0,-30,0]) cube([8,120,20]); ...
glb/cad_77af94d414ca.glb
Create an Intex Pool Stand Endcap with a total length of 48.8mm, a width of 28mm, and a height of 71mm. The main body is a rounded rectangular block where the top and bottom edges are semicircular with a radius of 14mm. The vertical sides are flat, and the top and bottom faces are rounded with a radius of 3.5mm. Holl...
length=48.8; width=28; height=71; breadth=1.5; rounding_top=3.5; hole1_position=2.3; hole_distance=10.5; hole_diameter=9.2; $fn=100; sheight=height-rounding_top; module outer() { translate([(length-width)/2,0,0]) cylinder(h=sheight, d=width); translate([-(length-width)/2,0,0]) cylinder(h=sheight, d=width); ...
glb/cad_1e1789a4f4b2.glb
Create an adjustable opto holder by starting with a rectangular base measuring 11mm by 13mm with a height of 3mm. Attached to the side of this base, add a rectangular block that is 9mm wide, 1.5mm thick, and 8mm tall, positioned so it extends from the base. From this combined structure, remove a rectangular central cut...
difference() { union() { cube([11,13,3]); translate([9,0,0])cube([9,1.5,8]); } union() { translate([3.25,3.25,0])cube([4,7,4]); } }
glb/cad_15184c4c3df1.glb
Create an adjustable opto holder consisting of a main body and a protruding flag. The main body is a rectangular block 13mm wide, 16mm long, and 5mm high. Centered within this body, create a vertical cylindrical cutout with a diameter of 8.8mm and a height of 7mm to accommodate a threaded rod. This cutout is intersecte...
screwhole = 3; nuttrap=7; body_height=5; body_width=13; screw_elevation = body_height/2; flag_width=1.5; flag_length=15; difference(){ union(){ translate([-body_width/2,0,0 ])cube([body_width,16,body_height]); cylinder(body_height,body_width/2,body_width/2,$fn=20); translate([-flag_width/2,-flag_length-4.5,0 ])cube...
glb/cad_9209d6ba2d5c.glb
Create an adjustable opto holder consisting of two main sections joined together. First, create a rectangular body 16mm wide, 16mm long, and 9mm high. At the center of this body, create a vertical cylindrical hole with a 8.5mm diameter that passes through the top. On one side of this body, attach a rectangular mounting...
screwhole = 4; nuttrap=7; gap_width = 10; body_width=16; body_height=9; screw_elevation = 4.5; opto_height=6; opto_width=12; difference(){ union(){ translate([-8,0,0 ])cube([body_width,16,body_height]); cylinder(body_height,8,8,$fn=20); translate([-10,-37,0 ])cube([opto_width,37,opto_height]); } union(){ cylinder((...
glb/cad_8584ab155c08.glb
Create an E3D V6 Geetech Prusa i3 Mount consisting of a mounting plate, a hotend clamp, and an extruder mount. Start with a central mounting plate 35mm wide and 3mm thick. Add four mounting holes with a diameter of 4.5mm, positioned at the corners with 23mm spacing between centers. Around these holes, create small cy...
$fn = 100; direct_mount = true; carriage_width = 56; mounting_plate_width = 35; mounting_plate_thickness = 3; bolt_hole_dia = 4.5; screw_head_dia = 5.5; bolt_y_centres = 23; bolt_x_centres = 23; e3d_head_large_dia = 16.5; e3d_small_dia = 12.5; e3d_top_ring_height = 4; e3d_small_ring_height = 5.5; e3d_bottom_ring_he...
glb/cad_3c9cd9219bef.glb
Create a gazebo foot leg base consisting of a flat rectangular base and a vertical square socket. Start with a base plate measuring 67.5mm by 67.5mm with a thickness of 11mm. The corners of this base should be chamfered. Positioned on top of the base, offset from the center, is a square pipe socket. This socket has...
foot_base_w=67.5; foot_base_l=67.5; foot_base_t=11.0 ; base_hole_d=9.5; base_hole_h=foot_base_t; base_hole_dis=7.13; base_small_hole_dis_x=16.24; base_small_hole_dis_y=21.32; base_small_hole_d=3; base_small_hole_h=foot_base_t; base_small_hole_dis=7; base_hole_angle=20; pipe_w=22.3; pipe_l=22.3; pipe_h=29.0; pipe_ind...
glb/cad_5344504aabe2.glb
Create a plant sign by starting with a base plate that is 84mm wide, 30mm deep, and 3mm thick. Modify the bottom of this plate into a pointed stake by creating a triangular profile that tapers from the full 84mm width at the top down to a single point 120mm below the main rectangular body. Centered on the top rectangul...
scale([0.6, 0.6, 1]) difference() { translate([0, -11.5, 0]) { cube([140.0,50.0,3.0], center = true); linear_extrude(height = 3.0, center = true, convexity = 0, twist = 0, slices = 0, scale = 1.0) { polygon(points = [[40.0, -22.0], [-40.0, -22.0], [0, -200.0]]); }; ...
glb/cad_9bc93dbc39f9.glb
Create a rod holder for a camera slider. Start by constructing a hollow cylinder with an outer radius of 6mm, an inner radius of 5mm, and a height of 10mm. Attach two identical flat mounting ears to opposite sides of the cylinder. Each ear should be a 1mm thick plate consisting of a semi-circle with a radius of 5mm mer...
$fn = 50; rod_radius = 5; wall_thikness = 1; lenght= 10; ear_hole_radius =1; linear_extrude(height=lenght){ difference(){ union(){ circle(r=(rod_radius+wall_thikness)); translate([-(rod_radius+wall_thikness),0,0]){ square(size=[(rod_radius+wall_thikness)*2,rod_ra...
glb/cad_674f6b19117c.glb
Create a Customizable Filament Guide Clamp designed to secure a filament guide to a surface. Start by creating a central U-shaped bracket. The main body consists of two parallel vertical walls, each 5mm thick, separated by a gap of 30mm. These walls are connected by a base plate that is also 5mm thick. The overall le...
quality=100*1; holder_length=20; hole_diameter=5; holder_thickness=5; backplate_thickness=holder_thickness; clamp_distance=30; inner_diameter=hole_diameter+holder_thickness; clamp_length=50; nut_size=8; nut_height=3; screw_size=4; rotate([0,90,0]) { rotate_extrude(convexity = 10,$fn = quality) translate([inner...
glb/cad_a4abed0dbd83.glb
Create a Rhombic Triacontahedron Magnetic Tile. Start by creating a rhombus-based prism with a side length of 40mm and a thickness of 10mm. The rhombus is defined by an acute angle of approximately 63.43 degrees (atan(2)). Modify the prism by adding chamfers to the edges to achieve a dihedral angle of 144 degrees, en...
$fn=50; side = 40; thickness = 10; magnetdepth = 2.5; magnetdiam = 6.5; dihedral = 144; alpha = atan(2); tile(); module tile() { difference(){ mainbody(); union(){ chamfers(); magnets(); } } } module mainbody(){ linear_extrude(height = thickness ) { polygo...
glb/cad_e5d920b2ca5c.glb
Create a two-part head mount for LM6UU linear bearings. The assembly consists of a top and bottom holder that clamp around two parallel 6mm rods spaced 18mm apart. For each holder, create a cylindrical clamp with an outer diameter of 17.8mm and a length of 20mm to house the 12.1mm diameter linear bearings. The clamp s...
$fs=1; $fa=1.5; tol= 0.02; show_um_footprint= true; show_rods= true; show_heater= true; show_mount= false; show_upper_holder= true; show_lower_holder= true; print_what="both"; m3_nut_th= 2.3; m3_nut_d= 6; m3_head_d= 5.5; m3_wash_d=6.8; m3_d= 3; m3_d_tight= 2.9; m3_d_wall= 2.2; m6_nut_d= 11.5 + 0.2; m6_nut_h= 4.7 + ...
glb/cad_8b691b49dfeb.glb
Create a case for a Bus Pirate V3.5 by starting with a rectangular base measuring 70.5mm by 45.5mm with a thickness of 2.5mm. The four corners of this base should be rounded with a radius of 5mm. Remove a central rectangular cavity from the base measuring 65.5mm by 40.5mm, leaving a wall thickness of 2.5mm on all sid...
height = 2.5; box_x = 70.5; box_y = 45.5; internal_x = 65.5; internal_y = 40.5; bolt_size = 3.1; lug_rad = 5; wall_x = (box_x - internal_x)/2; wall_y = (box_y - internal_y)/2; wall_z = 3; rotate (90) difference() { union() { translate([0,0,height/2]) cube([box_x,box_y,height], center=true); translate([ box_x/2-...
glb/cad_96d4c53fc9af.glb
Create a protective case for a Bus Pirate V3.5. Start by creating a solid rectangular base measuring 70.5mm in length, 45.5mm in width, and 9mm in height. Hollow out the center to create a rectangular cavity measuring 65.5mm by 40.5mm, leaving walls that are 2.5mm thick on the sides and 3mm thick on the top and bottom....
height = 9; box_x = 70.5; box_y = 45.5; internal_x = 65.5; internal_y = 40.5; bolt_size = 3.1; lug_rad = 5; wall_x = (box_x - internal_x)/2; wall_y = (box_y - internal_y)/2; wall_z = 3; rotate (90) difference() { union() { translate([0,0,height/2]) cube([box_x,box_y,height], center=true); translate([ box_x/2-lu...
glb/cad_0f7b254aecbc.glb
Create a set of nine symbolic interface buttons arranged in a 3x3 grid with 20mm spacing between centers. Each button starts as a cube measuring 12mm x 12mm x 6mm, with a central cylindrical hole 5.35mm in diameter and 9mm deep. On the top face of each cube, centered at a height of 6mm, add a raised symbol with a thic...
translate([0,0,height])rotate([0,180,0])buttons(); textThickness = 0.9; lineWidth = 1.5; L = 10; width = 12; length = width; height = 6; gripVoidDiameter = 5.35; gripVoidDepth = 4.5; $fn = 40; module buttons(){ cButton(); translate([0,20,0])vButton(); translate([0,-20,0])rotate([0,0,180])vButton()...
glb/cad_4e4536a3be0c.glb
Create a memory gate consisting of a central vertical stack of three process elements and a surrounding arrangement of rectangular blocks and links. First, construct a process element by combining a central arm—a rectangular block measuring 180mm by 54mm by 10mm with two 60mm by 60mm by 15mm cutouts at the top corner...
module memory() { translate([0,0,0])process_element(); translate([0,0,40])process_element(); translate([0,0,-40])process_element(); translate([40,-72.50,20])cube([10,10,40],center=true); translate([-40,-72.50,20])cube([10,10,40],center=true); translate([40,72.50,-20])cube([10,10,40],center=true...
glb/cad_2006b06c40cf.glb
Create a wall charger mount consisting of two main rectangular sections. First, construct a phone holder by creating a rectangular block 123.2mm wide, 16mm deep, and 20.3mm high. Hollow out the center of this block to leave a wall thickness of 4mm on all sides, but leave the front face open. Along the top edge of this ...
phone_width=115.2 + 4; phone_height=58.6 + 4; phone_depth=9.3 + 4; connector_height=26.1; wall_thikness=4; charger_width=35.5; charger_height=14; charger_depth=16; b_height=(phone_height - connector_height)/2; b_depth=max(phone_depth,charger_depth); b_width=phone_width; module phone_holder(){ union() { differen...
glb/cad_6cb0270bbeb2.glb
Create a parametric smoking bowl stand with a total height of 50mm. The main body is a hollow tapered cylinder (a frustum) with a bottom outer diameter of 39mm and a top outer diameter of 29mm. The interior is hollowed out by a concentric frustum with a bottom inner diameter of 35mm and a top inner diameter of 25mm. T...
height = 50; top_diameter = 25; base_diameter = 35; topring_offset = 2; botring_offset = 2.5; end_thickness = 8; cuts = 4; cut_width = 7; fillet = "true"; top_radius = top_diameter/2; base_radius = base_diameter/2; module bowlStand2() { difference() { difference() { cylinder(h = height...
glb/cad_4b2879eb5308.glb
Create a rectangular plate for an MXQ 105 Micro FPV Quad frame with overall dimensions of 60mm in width, 50mm in depth, and 0.5mm in thickness, centered on the origin. On the top surface of this plate, add 12 small cylinders, each with a radius of 3.4mm and a height of 1.5mm. Arrange these cylinders in a grid of 3 colu...
$fn=100; rows=5; cols=3; difference(){ union(){ translate([0,0,0.2]) cube([cols*20,rows*10,0.5], center=true); for(i=[1:cols*2]) for(j=[1:rows]) translate([-15-cols*10 + (i+1)*10,-15-rows*10/2 + (j+1)*10,0]) cylinder(h=1.5, r=6.8/2); } for(k=[1:cols-1]) translate([-cols*10+20*k,0,0.4]) #...
glb/cad_630d13263b50.glb
Create a rectangular panel for a parts box label with a length of 25mm, a width of 15mm, and a thickness of 1.5mm. On the top surface of this panel, center the embossed text "M3x30" so that the characters have a height of 6mm and protrude 2mm above the panel surface. To finish the model, add a small vertical tab at the...
use <Writescad/Write.scad> length = 25; width = 15; thickness = 1.5; textheight = 6; textdepth = 2; text = "M3x30"; tabheight = 6; translate([0,0,0]) emboss(thickness, length, width, text, textheight, textdepth, tabheight); module emboss(thickness, length, width, text, textheight, textdepth, tabheight) { cube(si...
glb/cad_c05ec3d5752c.glb
Create a funnel to hose connector by starting with a conical frustum that is 60mm tall, with a base radius of 22.5mm and a top radius of 15mm. Hollow out the center of this shape by removing a smaller conical frustum from the base up to a height of 37mm, which has a base radius of 17.5mm and a top radius of 15mm. Conti...
difference() { cylinder(r1=35/2+5,r2=30/2,h=60); hueco(); } module hueco() { cylinder(r1=35/2,r2=30/2,h=37); cylinder(r=12/2,h=60); translate([0,0,50])cylinder(r=16/2,h=10); translate([0,0,37]) cylinder(r1=15,r2=12/2,h=10); translate([0,0,3]) toro(35); translate([0,0,20]) toro(33); } module toro(diametro) { rotate...
glb/cad_a00ab8fea9d9.glb
Create a VESA 100 mount for a Raspberry Pi. Start by constructing a square outer frame with a total width and depth of 100mm. The frame consists of four rectangular bars, each 4mm wide and 4mm thick. Position four 4mm diameter holes at the corners of this square, centered at coordinates (±50, ±50, 0), to serve as the V...
VESAm = 4; $fn=30; difference(){ group(){ translate([-50,-50,0]) cylinder(center=true,d=VESAm+4,h=4); translate([+50,+50,0]) cylinder(center=true,d=VESAm+4,h=4); translate([-50,+50,0]) cylinder(center=true,d=VESAm+4,h=4); translate([+50,-50,0]) cylinder(center=true,d=VESAm+4,h=4); translate([-29-10,-24.5,0]) cylin...
glb/cad_0f7ed40c2127.glb
Create an airband receiver kit box starting with a rectangular base measuring 122mm by 82mm with a height of 20mm. Hollow out the center of this base by removing a 118mm by 78mm rectangle starting 2mm from the edges and 2mm from the bottom, leaving a 2mm thick floor and walls. Add a 1mm thick rim around the top edge of...
difference() { cube([122,82,20]); translate([2,2,2]) cube([118,78,20]); translate([-1,-1,19]) difference() { cube([126,86,1]); translate([2,2,-1]) cube([120,80,3]); } for (i=[0:1:7]) { translate([72+i*4,40,1]) cube([1.5,60-i*i,5], cente...
glb/cad_86cc525163bf.glb
Create an airband receiver kit box starting with a solid rectangular base measuring 122mm in length, 82mm in width, and 20mm in height. Hollow out the center of this base by removing a rectangular volume of 118mm by 78mm by 20mm, offset from the outer edges by 2mm, and leave a 1mm thick rim along the top edges. On th...
difference() { cube([122,82,20]); translate([2,2,2]) cube([118,78,20]); translate([1,1,19]) cube([120,80,1]); rotate([-90,0,0]) { translate([79,-13,75]) { cylinder(10, 6, 6); translate([-6,-12,0]) cube(12); } translate([...
glb/cad_328e6b566a78.glb
Create a Jumpin Game pawn by stacking several geometric primitives along a single vertical axis. Start with a base cylinder 6mm high with a radius of 2.8mm. Directly on top of this, place a truncated cone 18mm tall that flares outward from a bottom radius of 3.2mm to a top radius of 4.8mm. Above this cone, add a short ...
union() { cylinder(h = 6, r=2.8, center = false, $fn=25); translate([0,0,5.44]) cylinder(h = 18, r1=3.2, r2=4.8, center = false, $fn=25); translate([0,0,23.43]) cylinder(h = 2, r1=4.8, r2=2.9, center = false, $fn=25); translate([0,0,26.43]) sphere(r=4, center = false, $fn=25); translate([0,0,26.43]) cylinder(...
glb/cad_91a0801c4104.glb
Create a set of twelve identical game pawns. For each pawn, construct a base using a 25-sided prism cylinder with a radius of 2.6mm and a height of 6mm. Directly on top of this base, add a 25-sided truncated cone with a height of 18mm, starting from a bottom radius of 3.2mm and tapering to a top radius of 4.8mm. Above ...
union() { for (xpos=[-22.5,-7.5,7.5,22.5],ypos=[-15,0,15]) { translate([xpos,ypos,0]) cylinder(h = 6, r=2.6, center = false, $fn=25); translate([xpos,ypos,5.44]) cylinder(h = 18, r1=3.2, r2=4.8, center = false, $fn=25); translate([xpos,ypos,23.43]) cylinder(h = 2, r1=4.8, r2=2.9, center = false, $fn=25); ...
glb/cad_84c9775212e0.glb
Create a car phone cup holder insert. The main body is a hollowed-out truncated cone with a height of 60mm, a bottom diameter of 72mm, and a top diameter of 77mm. The walls should be thin, created by removing a smaller concentric truncated cone from the center, leaving a 2mm thick base. Cut a wide rectangular slot thr...
cupHeight = 60; cupLowerDiameter = 72; cupUpperDiameter = 77; usbSlot = 1; usbWidth = 12.25; usbDepth = 6.5; usbHeight = 25; module slot() { rotate([-10, 0, 0]) translate([-41, -7.5, 0]) cube([82, 15, 155]); } module cup() { cylinder(cupHeight, cupLowerDiameter/2, cupUpperDiameter/2, $fn=300); } module...
glb/cad_7b54f3af3ecd.glb
Create a Cat Dish Support by constructing a primary cylinder with a diameter of 156.5mm and a height of 10mm, centered on the origin. Remove a smaller concentric cylinder from the center with a diameter of 152.5mm and a height of 10mm, shifted 5mm upward along the Z-axis to create a thin-walled ring with a recessed inn...
$fn=100; color("orange") difference(){ cylinder(d=156.5,h=10,center=true); translate([0,0,5]) cylinder(d=152.5,h=10,center=true); cylinder(d=126.5,h=30,center=true); };
glb/cad_7e8f93a592b0.glb
Create a Ryobi 40V Battery Holder wall bracket. Start with a solid rectangular block measuring 66.5mm wide, 82.5mm long, and 18.5mm high. Hollow out the center of the block to create a flange and shell. The inner opening should be 54.25mm wide and 82.5mm long, leaving walls that are 2.5mm thick. The front face of the...
FN = 240; clearance = .75; PS = .001; Delta = .01; THK = 2.5; LH = 6.5; LT = 5; OH = 18.5; OL = 80; IW = 53.5 + clearance; OW = 61.5 + clearance; CS_D = 6.1; CS_R = CS_D/2; CS_HD = 11.5; CS_HR = CS_HD/2; CS_DEPTH = 4.25; holder(); module holder() { difference() { cube([OW+2*THK,OL+THK,OH]); ...
glb/cad_63b1c3aa889d.glb
Create a carry handle for a v-plotter by designing a flat plate 5mm thick. The main body is formed by the convex hull of four cylinders: two cylinders with a 35mm diameter positioned at (15, 0, 0) and (65, 0, 0), and two cylinders with a 10mm diameter positioned at (0, -30, 0) and (80, -30, 0). Within this solid body...
difference() { hull() { translate([15,0,0]) cylinder(d=35,h=5,$fn=50); translate([65,0,0]) cylinder(d=35,h=5,$fn=50); translate([0,-30,0]) cylinder(d=10,h=5,$fn=50); translate([80,-30,0]) cylinder(d=10,h=5,$fn=50); } translate([0,-3...
glb/cad_3d6fdea9bdc3.glb
Create a Raspberry Pi board mount with a base footprint of 85mm width, 56mm depth, and 10mm height. The main body is a rectangular frame with rounded corners of 3mm radius. Carve out a central rectangular cavity starting 8mm from the bottom to hold the board, leaving a 1mm inner lip around the perimeter. The outer wall...
width=85; depth=56; height=10; mountingHoleClearance = 6; mountingHoleLeftClearance = 3.5; mountingHoleWidth = 58; mountingHoleDepth = 49; cornerRadius=3; facets=50; mountWallThickness=5; mountLipThickness=1; difference() { translate([0,0,0]) hull() { translate([cornerRadius-mountWallThickness,cornerRadius-mountW...
glb/cad_8af13444e413.glb
Create a Test emo object by constructing a hollowed-out cylinder with an outer diameter of 15mm and a height of 15mm. The walls of this main cylinder should be 0.1mm thick, created by removing a concentric inner cylinder with a diameter of 14mm. At the base of the object, centered and extending 3mm below the main body,...
$fn = 30 ; difference () { cylinder (5,15,15,true) ; cylinder (5.1,14,14,true) ; } translate ([0,0,-3]) { difference () { cylinder (1,15,15,false) ; cylinder (10,3,3,false) ; }}
glb/cad_7645845865fe.glb
Create a BLE Gamepad housing consisting of a main body and two ergonomic handles. The main body is a hollowed shell with a total height of 21.5mm. The outer walls are 3mm thick. The top surface features two large circular cutouts with a radius of 12.5mm, positioned 35mm apart (center-to-center), to accommodate joystic...
walls=3; wall_wiggle=0.5; epsilon=0.01; big_epsilon=1; js_yoff=-30; js_to_wall_yoff=4; js_radius=25/2; js_board_side=39; dist_between_js=35; js_walls=3; box_zoff=0; heights=[3,21.5,3]; button_spacing=25; button_radius_1=6; button_radius_2=8; button_inset=heights[2]-1; button_z_subtraction=8; dist_between_dpad=90; dpad_...
glb/cad_6f2cf244cd63.glb
Create a battery box for a 3S LiPo battery with internal dimensions of 35.2mm width, 106mm length, and 28.7mm height. The walls of the box should be 1mm thick. The main body is a rectangular shell open at the top. At the base, create four mounting pillars located at the corners. Each pillar should be a cylinder with a...
bat_w = 35.2; bat_h = 28.7; bat_l = 106; wall_t = 1; sp_y = 80.5/2; sp_x = 33.5/2; add = 5.87; standoff_elev = 1.5; cap_sink = 1.5; $fn=32; difference() { union() { cube([bat_w+wall_t*2,bat_l+wall_t*2,bat_h+wall_t*2],true); translate([0,0,-(standoff_elev)-(bat_h/2+wall_t)]) for(a=[-1:2:1]) { ...
glb/cad_436eac2e5f6a.glb
Create a Parametric Cable Organizer Anchor by constructing two mirrored, interlocking clamping arms. Each arm starts as a rectangular block with a thickness of 5mm. For the first arm, create a cutout consisting of a cylinder with a radius of 3.15mm and a 20-facet resolution, combined with a rectangular slot of 6.3mm wi...
diameter1 = 6; diameter2 = 8; offsetVal = 7; thickness = 5; clampthickness = 3.2; fitVal = 3; OversizeTolerance = 0.3; tightness = 2-(fitVal/20); radius1 = (diameter1+OversizeTolerance)/2; radius2 = (diameter2+OversizeTolerance)/2; offset1 = offsetVal/2; module build1(radius,offset) { difference() { ...
glb/cad_4c8bea5d820c.glb
Create a finger guard for a grinder belt mod. Start with a solid rectangular block measuring 95mm in width, 100mm in depth, and 22mm in height. Carve out a large wedge-shaped section from the block by removing two rotated rectangular volumes: one rotated 68 degrees and another rotated 22 degrees, both 120mm by 40mm b...
$fn=100; translate([-47.5,-59,0])difference () { cube ([95,100,22]); translate([-1.5,0,-1]) rotate([0,0,68])cube(120,40,24.5); translate([97.5,0,-1])rotate([0,0,22]) cube(120,40,24.5); translate ([10,28,-1]) rotate([0,0,45]) cube([10,10,23]); translate ([75,32,-1]) rotate([0,0,-45]) cube([10,10,2...
glb/cad_888711c052a4.glb
Create a finger guard for a grinder belt mod. Start with a solid rectangular block measuring 95mm wide, 100mm deep, and 23mm high. Carve out a large wedge-shaped section from the front and sides using rotated rectangular cuts to create a recessed channel for the belt. Specifically, remove material using a block 120mm...
$fn=100; translate([-47.5,-59,0])difference () { cube ([95,100,23]); translate([-2.5,0,-1]) rotate([0,0,68])cube(120,40,24.5); translate([97.5,0,-1])rotate([0,0,22]) cube(120,40,24.5); translate([1,0,6]) rotate([0,0,68])cube([120,40,15]); translate([94,0,6])rotate([0,0,22]) cube([35,120,15]); ...
glb/cad_b7b264891cdb.glb
Create a Z-Axis anti wobble addon consisting of a base and a tensioner. Start with a base part that is a cylinder 30mm in diameter and 3mm high. On top of this base, add a trapezoidal extension with a length of 35mm, tapering from the 30mm diameter of the base down to a width of 16mm at the tip. Cut two vertical hole...
tolerance = 0.5; rodDiameter = 8.0; rodNutDiameter = 15.0; guideDiameter = 8.0; guideDistance = 27.0; baseOuterDiameter = 30.0; baseTipWidth = 16.0; baseTipLength = 35.0; baseHeight = 3.0; tensionerOuterDiameter = 20.0; tensionerHeight = 25.0; tensionerRoofHeight = 5.0; mainPart(); module mainPart() { ...
glb/cad_1570ad2e0051.glb
Create a Hoover WindTunnel Wheel Axle Repair support piece. Start by creating a rectangular block that is 14mm wide, 43.5mm long, and 6mm thick. From this block, remove a semi-cylindrical cutout from one of the shorter edges to create a cradle for the axle. This cutout should be a centered cylinder with a radius of 7.2...
thickness = 6; module skew(dims) { matrix = [ [ 1, dims[0]/45, dims[1]/45, 0 ], [ dims[2]/45, 1, dims[4]/45, 0 ], [ dims[5]/45, dims[3]/45, 1, 0 ], [ 0, 0, 0, 1 ] ]; multmatrix(matrix) children(); } intersection() { translate([9.45,-11.3,0]) cylinder(thickness,65,65,true,$fn=120); difference() { union() { ...
glb/cad_0b224e981983.glb
Create a three-piece puzzle derived from a large cube with a total side length of 40mm. The large cube is conceptually divided into a 3x3x3 grid of 27 smaller sub-cubes, each with a side length of approximately 13.33mm. To construct the three interlocking pieces, define which of the 27 sub-cubes belong to piece one, p...
puzzle_no = 6680; mark = 4; include <puzzle_table.scad>; cube_size = 40; cs = cube_size/3; clearance = 0.6; if (mark==0) union() { color("green") make_one(p_table,centers,puzzle_no); color("yellow") make_two(p_table,centers,puzzle_no); color("blue") make_three(p_table,centers,puzzle_no); } if (mark==1) tra...
glb/cad_e586769d3d83.glb
Create a series of puzzle pieces based on a 3x3x3 grid of sub-cubes. Each sub-cube has a side length of 13.33mm (derived from a total cube size of 40mm), with a slight overlap of 0.1mm to ensure the pieces are fused. To construct a single puzzle piece, select a set of 9 sub-cube positions from the 3x3x3 grid. For each...
num_to_make = 267; mark = 2; cube_size = 40; cs = cube_size/3; overlap = 0.1; if (mark==1) make(table,centers,num_to_make); else if (mark==2) for (j = [-3:3]) for (i = [-3:3]) {{ k=(j+3)*7; h=(i+4); translate([60*i,60*j,0]) make(table,centers,num_to_make+h+k-1); }} else {} centers = [ ...
glb/cad_6d52c21441a0.glb
Create a Threaded Tube by constructing a vertical cylinder with a total height of 150mm and a diameter of 22mm. The main body of the tube is a hollow cylinder with an inner diameter of 22.2mm. At the top of this body, create a male threaded section. This section consists of a solid cylinder with a diameter of 22mm an...
render() { tube(22,150,78); translate([0,10,0]) cylinder(r=12, h=.2, $fn=6); } module tube(dia,hieght,qual) { $fn = qual; hi_nut = hex_nut_hi(dia); hi_bolt = hex_bolt_hi(dia); union() { thread_in(dia, hi_nut, hieght-hi_bolt,qual); translate([0,0,hieght-hi_bolt]) thread_out(dia, hi_bolt, qual); }...
glb/cad_c65159c786a7.glb
Create a sew-on smile patch by starting with a flat, circular disc that is 2mm thick and 96mm in diameter. Centered within this disc, carve out a smiley face consisting of two small circular eyes and a wide, crescent-shaped smile. The eyes should be small circular holes, and the smile should be a curved, void-like cuto...
text="☻"; module solid() mirror([1,0,0]) linear_extrude(height = 5, convexity = 10) { projection(cut=false) letter(text); } font = "Times New Roman"; letter_size = 48; letter_height = 1; module letter(l) { linear_extrude(height = letter_height, convexity = 10) { text(l, size = letter_size, font = font,...
glb/cad_4f10c60d1059.glb
Create an Office Chair Brake designed to stop a dual-wheel caster. Start with a solid rectangular block 55mm wide, 55mm long, and 20mm high. The block has a thickness of 55mm across its width. Carve a wide, semi-cylindrical groove through the center of the block along its length to accommodate the wheels. This centra...
wheelDiameter = 55; wheelRadius = wheelDiameter/2; wheelThickness = 54; wheelSpace = 22; boxHeight = 20; boxThickness = wheelThickness+1; boxBottomThickness = 2; innerBraceGroove = 35; $fn=120; intersection() { translate([boxThickness/2,wheelDiameter,-((wheelThickness+1)*(17/32))]) rotate([90,0,0]) cylind...
glb/cad_42629c1658a1.glb
Create a Mini Micro SD Card Rounded Box consisting of a threaded base and a matching lid. For the base, create a cylinder with a radius of 13mm and a height of 5mm. Add a right-hand trapezoidal thread to the top of this cylinder with a pitch of 3mm and a pitch radius of 10mm. Inside the base, carve out four rectangul...
main(); translate ([25,0,14]) rotate ([180,0,0]) lid() ; module lid() { difference () { cylinder (r=13,h=14,$fn=100); translate ([0,0,1]) trapezoidThreadNegativeSpace( length=6, pitch=3, pitchRadius=10, threadHeightToPitch=0.5, profileRatio=0.5, threadAngle=30, RH=true, clearance=0.1, backlash=0....
glb/cad_2c911a80502b.glb
Create a rounded box with a central screw closure consisting of a container and a lid. For the container, create a cylindrical body with an inner diameter of 50mm and an inner height of 16mm. The walls should be rounded. In the center of the base, add a vertical cylindrical hole with a radius of 6.5mm and a height of...
use <write/Write.scad> part = "both"; inner_height=16; inner_diameter=50; text="Your text here!"; font="write/orbitron.dxf"; fontsize=8; radius=inner_diameter/2; print_part(); module print_part() { if (part == "container") { Container(); } else if (part == "lid") { Lid(); } else if (part == "both") { ...
glb/cad_c74244ca25ea.glb
Create a Loop model consisting of a central rod with a ring at one end and a semi-circular fork at the other. Start by creating a central cylinder with a diameter of 2mm and a total length of 140mm, centered along the Y-axis. At the top end of this rod, centered at Y=140mm, create a circular ring by revolving a 2mm squ...
difference(){ union () { rotate_extrude(angle = 180, convexity = 10, $fn = 360) translate([9, 0, 0]) square(2,true); translate([-9, 0, 0]) rotate([90,0,0]) cylinder(h = 5.0, d = 2.0, $fn = 360); translate([9, 0, 0]) rotate([90,0,0]) cylinder(h = 5.0, d = 2.0, $fn = 360); ...
glb/cad_58c97b88e2b0.glb
Create a ZenCube, which is a 25.4mm cube with chamfered corners. Each of the eight corners is clipped by a plane rotated at 45 degrees to the axes, creating a series of flat triangular faces. Inside the cube, create six internal cavities to hold magnets. Each cavity is a 6mm cube centered within the walls. These cavit...
$fn=100; cubeSize = 25.4; cavity = 6; wall = 0.5; diff = cubeSize - cavity; center = diff/2; color("DarkGoldenRod",0.5) translate([0,0,0]) cutCube(); module zenCube(){ difference() { holeCube(cubeSize); union() { translate([center,wall,center]) cube(cavity); translate([center,diff-wall,center]) cube(c...
glb/cad_45727841a809.glb
Create a ZenPin and a corresponding test block. First, construct the ZenPin. Create a cylinder with a radius of 4mm and a height of 4.7mm. On top of this, add a short conical section (height 0.5mm) that transitions from a radius of 4mm to 4.55mm, followed by a very thin cylinder (height 0.25mm) with a radius of 4.55m...
$fn=100; h=6.7; r=4; lh=2; lt=1.1; slotThickness = 1.8; magRadius = 2.5; cavityTolerance= 0.5; cavityRadius = magRadius+cavityTolerance; cavityHeight = 6.5; barrierThickness= .18; holeTolerance=0.3; main(); module main(){ pinAndTestBlock(); } module pinAndTestBlock(){ translate([15,0,0])rotate([0,0,-45]) zenPin...
glb/cad_c0229bf485d3.glb
Create a Byzantine Chain consisting of four repeating segments. Each segment is built using rings with a wire diameter of 2mm and an inner diameter of 8mm (an aspect ratio of 4). Each segment begins with an angled pair of two rings, each rotated 25 degrees away from the center plane in opposite directions along the Y...
numSegments = 4; numMiddleLinks = 2; wireDiameter = 2; ringAR = 4; smoothness = 20; for (i=[1:numSegments]) { rotate([(i%2)*90, 0, 0]) translate([i*(ringAR*wireDiameter*cos(25)-wireDiameter+wireDiameter*ringAR),0,0]) union() { translate([-wireDiameter/2,0,0]) angledPair(25); rotate([90,180,0]) angledPai...
glb/cad_6ad5cf60308a.glb
Create a Customizable Parametric Centrifuge Pump and Impeller consisting of four main components: an impeller, a housing, a cap, and an outlet adapter. First, construct the impeller. Create a circular base 2mm thick with a diameter of 45mm. From the center, extend a shaft boss 6mm high with a diameter of 5mm. Around t...
numBlades = 7; bladeGirth = 3; bladeHeight = 13; bladeType = "curved"; bladeCurvature = 0.6; bladeDirection = "CCW"; twistAngle = 15; sliceRes = 5; baseGirth = 2; fanDiameter = 45; shaftShape = "smooth"; shaftDiameter = 2; cutoutType = "cone"; coneAngle = 40; shaftBossOffset = 3; bossHeight = 6; DcutRat...
glb/cad_8c3cd107e536.glb
Create a Car Remote Transmitter Cover consisting of five distinct parts: a top cover, a bottom case, a button plate, and two internal button plugs. Construct the top cover as a rounded rectangular shell with outer dimensions of 36mm width, 50mm depth, and 6mm height. Hollow out the center to a wall thickness of 2mm an...
include <myLib_RoundedObjects.scad> myFN=200; coverOuterWidth=36; coverOuterDepth=50; coverOuterHeight=6; coverOuterBaseWidth=coverOuterWidth; coverOuterBaseDepth=coverOuterDepth; coverOuterBaseHeight=10; coverOuterWallThickness=2; coverInnerWallThickness=2; coverInnerWidth=(coverOuterWidth-(coverInnerWallThicknes...
glb/cad_b88c2aacf672.glb
Create a tie cravat consisting of multiple interlocking tiles. Each tile is a hexagonal prism with a thickness of 3mm and a diameter of 25mm. The tiles feature a chamfer of 0.5mm on the top and bottom edges. Construct the tiles such that they can be joined using connectors. The connectors are small rectangular blocks...
thick=3; chamfer=.5; diam=25; translate([ 0,-5,0])mid_a(); translate([0,-70,0])mid_b(); translate([00,30,0])hex(); translate([30,30,0])hex2(); translate([60,30,0])hex3(); translate([90,30,0])connector(); translate([ 0,60,0])sqare(); translate([30,60,0])angle_sqare(05); translate([60,60,0])angle_sqare(10); translate([9...
glb/cad_d663325ddaff.glb
Create a battery holder for four Nikon EN-EL19 batteries. For a single slot, start with a solid rectangular block measuring 35mm wide, 9.5mm deep, and 33.5mm high. Hollow out the center of this block by removing a rectangular volume of 29mm wide, 6.5mm deep, and 32mm high, positioned 1.5mm from the bottom. To create th...
batteryCount = 4; wallThickness = 1.5; height = 32.0; bW = 32; bD = 6.5; module batterySlot() { difference() { cube( [bW + (wallThickness * 2 ), bD + (wallThickness * 2 ), height + wallThickness], center=true); translate([0,0, wallThickness]) cube( [ bW - bD, bD, height], center=true); translate([...
glb/cad_cd8596d51fc6.glb
Create a 4 bit register consisting of four identical bit units aligned linearly along the Z-axis. To construct a single bit unit, first create a central storage element and a process element. The storage element is composed of two rectangular blocks measuring 153 by 15 by 25 mm, positioned symmetrically and subtracte...
module register4b() { translate([0,0,0])bit(); translate([0,0,120])bit(); translate([0,0,-120])bit(); translate([0,0,240])bit(); } module register1() { translate([0,0,0])process_element(); translate([0,0,40])process_element(); translate([0,0,80])process_element(); translate([40,-72.50,6...
glb/cad_771c72e8860e.glb
Create a wind turbine hub by starting with a central cylinder 16mm high with a radius of 10mm. Drill a 1mm radius hole vertically through the center of this cylinder. At the base of the hub, attach a truncated cone that extends 10mm downwards, tapering from the 10mm radius of the hub down to a 2mm radius at the bottom....
blade_angle =30; difference() { difference() { translate([0,0,-1]) {cylinder(h = 16, r = 10);} cylinder(h = 18, r = 1); } rotate([blade_angle,0,120]) { translate([3,0,0]) cube( [16,16,6]); } rotate([blade_angle,0,240]) { translate([3,0,0]) cube( [16,16,6]); } rotate([blade_angle,0,0]) { translate([3,0,...
glb/cad_ae463d1b737e.glb
Create a wind turbine blade model with a total length of 95mm. The blade is split into a top section and a bottom section, with the top section occupying 60% of the total length (57mm) and the bottom section occupying 40% (38mm). Construct the blade using a wing-shaped profile that is 6mm thick and 4mm wide at the ce...
total_length = 95; ratio_top_bottom = 0.6; thick = 6; wide = 4; twist = 20; taper_top = 0.6; taper_bottom = 0.4; top_height = ratio_top_bottom * total_length; bottom_height = (1 - ratio_top_bottom) * total_length; top_segments = top_height/1.5; bottom_total_segments = bottom_height/1.5; segment = top_height / top...
glb/cad_3870ea75d318.glb
Create a mounting bracket for a cabinet that consists of a rectangular base plate 114mm wide, 12mm high, and 4mm thick. At each end of the plate, centered vertically, create a hexagonal hole with a flat-to-flat width of 5.5mm and a circular bore of 3.2mm passing through the thickness. These holes should be positioned...
$fs = 0.1; module clip() { size = 6; scale([1, 2.2/3, 1]) intersection() { translate([0, -size, 0]) linear_extrude(size/2, center=true) polygon(points=[ [0, 0], [size, 0], [size, size/2], [size/2, size/2], [size/2, size], [0, size] ]); union() { intersection() { rotate(90, [1, 0, 0]) cylinder...
glb/cad_09c405acb732.glb
Create a mounting bracket for a Dynamix HWS-2804V2 cabinet. Start with a rectangular base plate that is 172mm long, 12mm wide, and 4mm thick. Along the center line of the base plate, create two hexagonal holes to accommodate nuts. Each hexagonal hole should have a flat-to-flat width of 5.5mm and a depth of 4.2mm, pos...
$fs = 0.1; module clip() { size = 6; scale([1, 2.2/3, 1]) intersection() { translate([0, -size, 0]) linear_extrude(size/2, center=true) polygon(points=[ [0, 0], [size, 0], [size, size/2], [size/2, size/2], [size/2, size], [0, size] ]); union() { intersection() { rotate(90, [1, 0, 0]) cylinder...
glb/cad_02e259d3ac8b.glb
Create a Zonestar P802Q bracing plate. Start with a central rectangular base measuring 54mm by 42mm with a thickness of 8mm. Remove a central rectangular section measuring 30mm by 20mm from this base. At the center of the plate, create a vertical cylindrical hole with a diameter of 22.5mm that passes completely throug...
$fs = 0.01; include <bolts.scad>; module support() { translate([3, 0, 1]) rotate(90, [0, -1, 0]) linear_extrude(height=8, scale=[1, 2.5]) square([6, 5], center=true); } base_thickness = 8; bar_tolerance = 0.6; bar_offset = 17; support_rotation = 60.0; support_rotations = [support_rotation, -support_rotation]; skew...
glb/cad_5145cb787bf6.glb
Create a Zonestar P802Q bracing part. Start with a base rectangular block 54mm wide, 8mm deep, and 6mm high, centered such that it spans from x = -5 to x = 49 and y = -4 to y = 4. At the position x = -54.8, y = -26, z = 0, add a cylinder with a diameter of 22mm and a height of 12mm. Merge these two shapes using a conve...
width = 22; bar_offset = [-54.8, -26, 0]; include <bolts.scad>; module ugrip(height=6) { cylinder(d=22, h=height); translate([-11, -12, 0]) cube([22, 12, height]); } difference() { union() { hull() { translate([-5, -4, 0]) cube([44 + 10, 8, 6]); translate(bar_offset) ugrip(6); } translate(bar_offset)...
glb/cad_2920a55d8d34.glb