Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a set of Star Wars insignia coins. For each insignia, start by creating a base cylinder with a diameter of 33mm and a height of 2.5mm, using a 60-facet resolution. Centered on top of this base, add the specific faction logo as a raised relief with a height of 2.5mm. The logos should be centered within the 33mm d...
insignias = ["Rebellion","Empire","Mandalorian","Mandalorian_Crest","CIS","Galactic_Republic","Sith","Jedi_Order","Black_Sun","Galactic_Senate","First_Order","Republic_Credits"]; insignia_diameter = 30; coin_height = 5; spacing_between_coins = 1; module insignia(faction_logo, coin_height = 0.1, emboss = true) { fileN...
glb/cad_268fa9ae39e1.glb
Create an organizer box with outer dimensions of 90mm width, 100mm height, and 270mm depth. The box should have a wall thickness of 3mm. The main body is a hollowed-out rectangular prism with rounded corners, where the rounding radius is 2mm. The top of the box is open. On the two shorter side walls, create a grid of ...
width = 90; height = 100; depth = 270; wall = 3; handle_height = 25; handle_margin = 8; handle_width = width - handle_margin*2 - handle_height; corner_width = 2; module handle(width, depth, height) { offset_x = handle_height/2 + handle_margin; offset_y = height - handle_margin - handle_height/2; offset...
glb/cad_2a02001b6f76.glb
Create a Mini Hotend Fan Duct designed to mount a 25mm fan and direct air toward a hotend. Start by creating a fan mount base that is a 25mm square with 2mm rounded corners and a thickness of 3mm. From this base, extend a body upward and forward to create a duct. The duct should transition from the 25mm square fan pr...
$fn = 20; fan_size = 25; fan_distance_from_hotend = fan_size/2 + 6; fan_screw_spacing = fan_size*0.8; screw_diameter = 3; top_screw_depth = 9; bottom_screw_depth = 20; hotend_diameter = 16.1; hotend_duct_size = hotend_diameter; fan_duct_size = fan_size - 2; corner_radius = 2; hotend_grip_extra_width = 3; fan_mount_...
glb/cad_ac5de688e3c1.glb
Create a Bridge Pin Puller tool by constructing a flat, elongated handle with a specialized notched head. Start with a base shape that is 2mm thick. The main body is formed by blending a cylinder with a radius of 8mm at the far end, a central rectangular block measuring 2mm wide by 6mm high, and another cylinder with a...
$fn = $preview ? 24 : 220; module sequentialHull(){ for (i = [0: $children-2]) hull(){ children(i); children(i+1); } } module bridgePinPuller(){ pinD=5.8; th=2; humpH=6; difference(){ union(){ sequentialHull(){ translate([-5,0,0])cylinder(r=8,h=th); ...
glb/cad_db15b20b2a9c.glb
Create a parameterized star knob for a tool. Start with a main cylinder 50mm in diameter and 20mm in height. To create the finger grips, remove five identical cylindrical notches from the outer edge, each with a 25mm diameter, spaced evenly around the center. Taper the edges of these points and the outer rim of the kno...
FingerPoints = 5; TaperFingerPoints = true; KnobDiameter = 50; KnobTotalHeight = 20; StemHeightPercent =30.0/100.0; FingerHoleDiameter =KnobDiameter/2.; ShaftDiameter = 25.4/4; ShaftEasingPercentage = 5/100.0; BaseNutCapture = 0; TopNutCapture = 1/1; NutFlatWidth = 1.75 * ShaftDiameter; NutHeight = 0.8...
glb/cad_4dbc276e79a9.glb
Create a 12864 LCD Smart Display Controller Case consisting of a top cover and a back plate. For the top cover, create a main body by forming a hull between four points: spheres of radius 7mm and cylinders of radius 7mm and height 2mm located at coordinates (±42, ±45, ±11). Hollow out the center with a cube of 110mm ...
translate([33.7,-17.9,-32.5]) rotate([0,180,0]) knob(); module top() { difference() { union() { difference() { hull() { translate([42,45,-11]) sphere(r=7,$fn=75); translate([42,45,11]) cylinder(r=7,h=2,$fn=75,center=true); translate([-42,45,-11]) sphere(r=7,$fn=75); translate([-42,45,11]...
glb/cad_96dd627a2ce3.glb
Create a round push button with a total height of 15mm and an outer diameter of 10.65mm. The top edge of the button must be beveled by 1.2mm. In the center of the button, create a vertical square shaft hole with a side width of 3.3mm and a depth of 10mm. To ensure the internal corners of the square hole remain sharp, ...
Show="CrossSection"; ButtonShape="Round"; L=15; ButtonOD=10.65; ButtonX=15; ButtonY=10; TopBevel=1.2; EdgeStyle="Round"; EdgeBevel=1.2; EdgeR=1.2; ShaftShape="Square"; ShaftL=10; ShaftW=3.3; holeos=0; ShaftKeyholeD=1.2; KeyholeR=ShaftKeyholeD/2; OR=ButtonOD/2; ShaftI=ShaftW+holeos; ShaftR=(ShaftW+holeos...
glb/cad_dfe0c18e453c.glb
Create a Raspberry Pi B+/Pi 2 rack by stacking four identical open-faced units vertically. Start with a base floor plate measuring 61.5mm wide, 89mm deep, and 2mm thick. Above this base, create four levels, each 23mm high. Each level consists of a 61.5mm by 89mm by 23mm block with a central cavity removed to leave 2mm ...
rack_height=4; rpi_width=57.5; rpi_length=87; u_height=23; wall=2; ledge=2; port_height=11; port_len=61; module rack_floor(){ cube([rpi_width+2*wall,rpi_length+wall,wall]); } module one_u(){ difference(){ cube([rpi_width+2*wall,rpi_length+wall,u_height]); translate([wall,-wall,wall])cube([rpi_width,rpi_length,u_...
glb/cad_90ba26b665bb.glb
Create a hollow throwaway pillar by first constructing a thin, solid circular base with a diameter of 20mm and a height of 0.3mm. Centered on this base, build a hollow vertical cylinder with an outer diameter of 10mm and a total height of 70mm. The walls of this cylinder should have a uniform thickness of 2mm, created ...
$fs = 0.5; $fa = 1; pillar_h = 70; cylinder (d=20, h=0.3); linear_extrude (height = pillar_h) difference () { circle (d=10); circle (d=10 - 0.4 * 2); }
glb/cad_4ec559f95e54.glb
Create a parametric ultrasound test bench consisting of two vertical towers connected by a horizontal bar. Each tower is an L-shaped pillar with a height of 200mm and a base width of 10mm. The walls are 2mm thick. At the top of each tower, create a ring with an outer diameter of 20.2mm (16.2mm inner diameter plus 2mm...
variant = "tower"; wall = 2.0; sdia = 16.2; theight = 200.0; bwidth = 10.0; fwidth = 70.0; dlen = 200.0; tol = 0.25; protractor = 40.0; platform = 1*200.0; d = 1*0.03; module tower() { translate([theight/2, 0, bwidth/2]) cube([theight-sdia-wall, wall, bwidth], center=true); translate([theight/2, 0, wall/2]...
glb/cad_ab9f0ee78546.glb
Create a reset key for a manual call point by extruding a specific 2D polygon to a height of 2.6mm. The base shape is a rectangle measuring 50mm wide by 50mm tall. From this square, remove a rectangular section from the top edge to create a U-shaped notch. This notch should be 34mm wide and 21mm deep, centered such tha...
linear_extrude(2.6) polygon (points=[ [0,0],[50,0],[50,50],[42,50],[42,29],[8,29],[8,50],[0,50] ]);
glb/cad_5d7e152fd236.glb
Create two identical sun blind clips. For each clip, start with a central cylinder 42mm long with a radius of 3.6mm. Attach a smaller cylinder with a 2mm radius and 5.5mm length to the center, extending from the 8mm mark to the 13.5mm mark along the main axis. Add another cylinder with a 5.5mm radius and 22mm length, p...
module blind_part() { rotate([0, 90, 0]) { difference() { union() { cylinder(42, 3.6, 3.6); translate([0,0,8]) { cylinder(2, 3.6, 5.5); } translate([0,0,10]) { cylinder(22, 5.5, 5.5); ...
glb/cad_5bd2bd093f2a.glb
Create a mounting plate for a keystone jack. Start with a solid rectangular base measuring 28.5mm in length, 23mm in width, and 10mm in height. From this base, remove a central rectangular volume to create a cavity that is 16.5mm long and 15mm wide, starting 4mm from the front edge and centered along the width. The flo...
jack_length =16.5; jack_width = 15; wall_height = 10; wall_thickness = 4; catch_overhang = 2; small_clip_depth = catch_overhang; big_clip_depth = catch_overhang + 2; big_clip_clearance = 4; small_clip_clearance = 6.5; outer_length = jack_length + small_clip_depth + big_clip_depth + (wall...
glb/cad_1d14d1643b69.glb
Create a door stopper with a total length of 125mm, a width of 40mm, and a height of 30mm. The main body is a wedge shape, starting at a height of 30mm at one end and sloping down to 0mm at the other. Carve a rectangular inset into the top surface of the wedge. This cutout should be 85mm long and 20mm wide, centered ...
door_stopper_simple (); module door_stopper_simple () { l="BIMA door stopper"; textt=50; height = 30 ; length = 125 ; width= 40 ; half_width = width / 2; borders = 10; top_cube_length = length - 4 * borders; top_cube_width = width - 2 * borders; top_cube_height = height ...
glb/cad_9fe18b04a68b.glb
Create a Customizable Switch Spacer by constructing a main outer cylinder with a radius of 20mm and a total height of 40mm. From the center of this cylinder, remove a rectangular prism volume to create a square hole that is 50mm long, 30mm wide, and extends through the entire height of the object. To finish the piece, ...
hole_shape = "Square"; inner_d = 10; outer_d = 40; s_len = 50; s_wid = 30; height = 40; thickness = 2; hole = 8; half_outer = outer_d / 2; module inner_spacer() { if(hole_shape == "Square") { translate([-s_len / 2,-s_wid / 2,-1]) cube([s_len, s_wid, height+5]); } else { translate([0,0,-1]) cylind...
glb/cad_9333cc31c140.glb
Create a customizable container with outside dimensions of 32mm length, 54mm width, and 70mm height. The walls and the base should have a uniform thickness of 1.55mm. The exterior of the container must have heavily rounded corners with a radius of 6mm. The interior should be hollowed out to create a storage compartme...
Length = 32; Width = 54; Height = 70; Type = "single"; Thickness = 1.55; module container(length, width, height, wall_thickness) { difference() { union() { minkowski() { translate([0, 0, height/2+10/2]) cube([width-2*6, length-2*6, height+10-2*6], center = true); sphere(r = 6, $fn = 80); ...
glb/cad_2d97583d88fc.glb
Create a US coin tray designed to hold 25 pennies. The main body is a vertical cylinder with a diameter of 20.65mm (the 19.05mm penny diameter plus a 0.6mm gap and 2.4mm walls) and a total height of approximately 41.7mm. Hollow out the center of the cylinder to create a sleeve with a wall thickness of 2.4mm. On one s...
penny=[19.05,1.52]; nickel=[21.21,1.95]; dime=[17.91,1.35]; quarter=[24.26,1.75]; halfdollar=[30.61,2.15]; dollar=[26.49,2]; $fn=64; coingap=0.6; wall_depth=2.4; coin=penny; hookheight=20; hookid=3; module circle_ring(radius, thickness) { difference() { union(){ circle(radius); } union(){ offset(r = ...
glb/cad_81788dcaa64f.glb
Create a set of four coin trays for US coins, each designed to hold 25 coins. Each tray consists of a hollow cylindrical shell with a wall thickness of 2.4mm and a base of 2.4mm. The overall height of each tray is 30mm. The inner diameter of each tray is the diameter of the respective coin plus a 0.6mm tolerance gap:...
penny=[19.05,1.52]; nickel=[21.21,1.95]; dime=[17.91,1.35]; quarter=[24.26,1.75]; halfdollar=[30.61,2.15]; dollar=[26.49,2]; $fn=64; coingap=0.6; walldepth=2.4; overallheight=30; knobheight=15; module circle_ring(radius, thickness) { difference() { circle(radius); offset(r = -thickness) circle(radius); } } m...
glb/cad_5d058f69903b.glb
Create a set of coin trays designed to hold 25 coins each. For each tray, create a hollow cylinder with a height of 10mm and a wall thickness of 1.2mm. The inner diameter of each cylinder should be the diameter of the respective coin plus a 0.6mm tolerance gap: 19.65mm for pennies, 21.81mm for nickels, 18.51mm for dime...
penny=[19.05,1.52]; nickel=[21.21,1.95]; dime=[17.91,1.35]; quarter=[24.26,1.75]; halfdollar=[30.61,2.15]; dollar=[26.49,2]; $fn=64; coingap=0.6; truewalldepth=2.4; walldepth=truewalldepth/2; overallheight=10; knobheight=10; module circle_ring(radius, thickness) { difference() { circle(radius); offset(r = -...
glb/cad_0a096a29fae8.glb
Create a circular chain consisting of 20 interlocking links. Each individual link is a flattened torus created by rotating a circle with a 2mm radius around an axis to form a ring. The resulting ring should have an outer diameter of approximately 24mm and a width of approximately 17mm, creating an oval shape that is sc...
Number_of_Links=20; Shape_of_Chain="circular"; Chain_Stretch=5; Quality=0; stretch = (Chain_Stretch * 4 / 10) + 12; num = Number_of_Links; shape = Shape_of_Chain; Odd_Number_Fix = (num % 2 == 1)? "Enable" : "Disable"; for (i=[0:num-1]){ if (shape == "circular"){ rotate([0,0,i*360/num]) translate([stret...
glb/cad_ec59158a0064.glb
Create a Blind Strip Support by starting with a rectangular base measuring 14mm wide, 110mm long, and 1.2mm thick. Carve out four rectangular holes from this base, each measuring 6mm wide and 18mm long, with a height of 3.4mm to ensure they pass completely through the material. Position the first hole centered width-wi...
difference () difference () { difference () { difference () { difference () { {cube ([14,110,1.2]); translate ([2.5,50,-1]) cube ([4,10,3.4]); } translate ([4,5,-1]) cube ([6,18,3.4]); } translate ([4,26,-1]) cube ([6,18,3.4]); } translate ([4,67,-1]) cube ([6,18,3.4]); } translate ([4,88,-1]) cube ([6,18,3.4]); } tran...
glb/cad_fe268022869f.glb
Create a Blind Strip Support by starting with a cylinder that is 17.5mm tall with a diameter of 5.3mm. Remove a smaller concentric cylinder from the center that is 17.5mm tall with a diameter of 4mm. From this hollow tube, remove a rectangular block measuring 12mm wide, 4.5mm deep, and 5mm tall, positioned at the base ...
difference () { difference () { difference (){ cylinder (17,5.3,5.3); translate ([0,0,0]) cylinder (10,4.0,4.0);} translate ([-6,-2.25,10]) cube ([12,4.5,5]);} translate ([-6,-0.1,13]) cube ([12,0.2,5]);}
glb/cad_d33f3bd64aa1.glb
Create a Parametric Device Stand designed to hold multiple devices. Start by creating a rounded rectangular base with a width of 70.01mm, a height of 7.01mm, and a length determined by the sum of the device thicknesses, divider thicknesses, and two end feet of 9.01mm each. Apply a fillet radius of 8.01mm to the base co...
Stand_width = 70.01; Stand_feet_length = 9.01; Stand_base_height = 7.01; Divider_thickness = 7.01; Divider_height = 35.01; Device_tolerance = 0.2; Device_1_thickness = 15.01; Device_2 = true; Device_2_thickness = 15.01; Device_3 = true; Device_3_thickness = 15.01; Device_4 = false; Device_4_thickness = 15.01; Device_5...
glb/cad_102cbf0ef3a6.glb
Create a tower of four stacked cubes of decreasing size. Start with a base cube measuring 30mm on all sides, centered at the origin. Place a second cube with a side length of 25mm on top of the first, offset by 2.5mm along the X and Y axes and positioned 30mm high. Place a third cube with a side length of 20mm on top o...
difference () { cube (30, centro = true); } translate ([2.5, 2.5, 30]) { cube (25, centro = true);} translate ([5, 5, 55]) { cube (20, centro = true);} translate ([7.5, 7.5, 75]) { cube (15, centro = true);}
glb/cad_776d2ec85a18.glb
Create a Geeetech full graphics ramps display frame. Start with a base rectangular plate measuring 93mm by 60mm with a thickness of 1.6mm. In this base plate, create four circular holes with a diameter of 3.5mm, positioned at the corners: two at the front (x = ±44mm, y = -27.5mm) and two at the back (x = ±44mm, y = -7....
module 12864_screen() { $fn=30; gt_width = 93; gt_height = 70; gt_thick = 1.55; gg_width = 78.3; gg_height = 51.15; gg_thick = 8; translate([0, gt_height/2, gt_thick/2]) difference(){ color("LimeGreen") cube([gt_width, gt_height, gt_thick], center=true); for (xx=[-88/2,+88/2],yy=[-...
glb/cad_56d7c93dd094.glb
Create a Decora Standard Cover Plate for a single GFCI socket. Start with a rectangular base plate measuring 69.85mm wide by 114.3mm high with a thickness of 6.35mm. Round all four corners of the plate with a radius of 6.35mm. In the center of the plate, create a rectangular cutout for the GFCI socket measuring 33.34m...
joinfactor = 0.125; goldenratio = 1.61803399; gThickness = 1/4 * 25.4; gRoundingRadius = 1/2/2*25.4; gStandardWidth = 2.75*25.4; g1GangWidth = 2.75*25.4; g2GangWidth = 4.5*25.4; gStandardHeight = 4.5 * 25.4; gFixtureHoleDistance = 2.375*25.4; gFixtureHoleIR =5/32/2*25.4; gFixtureHoleOR = 6.75/2; gLightSwitchHeight ...
glb/cad_4ad41c20af41.glb
Create a 3D model of an Aldo Leopold Chair. The structure is symmetrical, consisting of a seat supported by two angled leg assemblies and a backrest. First, construct the seat using a rectangular slab 900mm wide, 300mm deep, and 50mm thick. For the legs, create two identical side assemblies. Each assembly consists o...
sitWoodX = 300; sitWoodY = 50; frontLegWoodX = 200; frontLegWoodY = 50; backLegWoodX = 200; backLegWoodY = 50; backWoodX = 150; backWoodY = 25; angle = 66; seatWide = 1000; seatHigh = 460; heightRatio = .65; frontLegHigh = seatHigh + seatHigh*(1-heightRatio)*2 ; seatDeep = frontLegHigh / tan(angle); frontLegCut = fro...
glb/cad_72b1a77d20cf.glb
Create a Keytar Copier consisting of a circular head and a notched shaft. Start by creating the head as a cylinder with a radius of 15mm and a thickness of 2mm. Center a small circular hole with a 2mm radius through the head. Attach the head to a rectangular shaft that is 29mm long, 8.3mm high, and 2.1mm wide. Alon...
use <write/Write.scad> key_type=1; head_grip_type=0; grip_text="DO NOT COPY :) "; notch_height1= 2; notch_height2= 7; notch_height3= 3; notch_height4= 6; notch_height5= 2; rotate_flat=1; if (rotate_flat==1){ chooseKey(key_type); } else { rotate([-90,0,-180]) chooseKey(key_type); } module chooseKey(keyType)...
glb/cad_1ca9782b0247.glb
Create a motorbike helmet stand consisting of a solid base with a carved-out bowl to hold a helmet upside-down. First, construct the main body as a three-legged support. Each leg should extend from the center, with the two side legs angled outward at 50 degrees relative to the central axis. The legs should have a thi...
dome_width = 210; minthick = 12; module dummy(){} cephalic_index = 0.83; legangle = 50; lsteps = 48; bevel = 3; leglen = dome_width/3; legdia = dome_width/9; bottomoffset = dome_width/25; rwid = dome_width/2; dhlen = rwid / cephalic_index; rdep = rwid; scl = [dhlen/rwid, 1, rdep/rwid]; bzcirc = 0.55228475; r...
glb/cad_13c8667bd58c.glb
Create a parametric computer fan velocity stack. Start with a square mounting plate 120mm wide with 5mm rounded corners and a thickness of 2mm. At each of the four corners of the plate, center a circular mounting hole with a diameter of 4.1mm, spaced 105mm apart from each other. Construct the main intake shroud by rot...
plate_size = 120; inlet_diameter = 150; outlet_diameter = 118; stack_height = 60; cone_d = 40; num_fins = 3; fin_thickness = 0.38; $fn = 180; wall_thickness = 2; bezel = 5; mounting_hole_d = 4.1; inlet_radius = outlet_diameter / 2; outlet_radius = inlet_diameter / 2; ellipse_height = stack_height * 2; ellips...
glb/cad_53ccc33d0492.glb
Create a Raspberry Pi mount with a base plate measuring 85.5mm by 55.5mm and a thickness of 2mm. At the four corners of the base, add PCB edge clips. Each clip consists of a 4mm wide vertical support with a height of 8mm, featuring a 30-degree angled lip that extends 1mm over the board edge to secure the PCB. Additio...
version = 1; nozzle_id = 0.5; pi_width = 55.5+nozzle_id; pi_length = 85+nozzle_id; pi_thick = 2; pi_clearance_below = 4; pi_eth_clip_offset = 19; pi_pwr_clip_offset = 13; pi_r2_mnt_screw_hole_od = 1+nozzle_id; pi_r2_mnt_post_od = 7+nozzle_id; pi_r2_eth_mnt_x_offset = 5; pi_r2_eth_mnt_y_offset = 12; pi_r2_pwr_mnt_x_o...
glb/cad_cfc6588351bb.glb
Create a customizable box with a separate lid. For the main body, create a rectangular outer shell measuring 60mm in width, 60mm in length, and 20mm in height. Hollow out the center by removing a cube from the top, leaving a base and walls that are 4mm thick, with the floor of the box being 2mm thick. Construct a lid ...
width=60; length=60; height=20; panel_thickness=2; wall=4; lid_height=6; tolerance=.6; text_box1 = "Line 1"; text_box2 = "Line 2"; text_box3= "Line 3"; text_size= 10; text_font="Orbitron"; lid_thickness_unetched=1; difference(){ difference(){ cube([width,length,height]); translate([wall,wall,panel_thic...
glb/cad_fb3173db4e93.glb
Create an OpenStructures mold consisting of a base plate and vertical side shells. First, construct a base plate 5mm thick. The plate features a grid of tapered holes spaced 20mm apart center-to-center. Each hole is a frustum with a bottom radius of 4.2mm and a top radius of 0.9mm. These holes are arranged in a 2x2 g...
$fn = 120; holesX = 2; holesY = 2; shellWidth = 5; shellHeight = 18.8; plateDepth = 5; lineWidth = 5; lineHeight = plateDepth; holeTipRadius = .9; holeBottomRadius = holeTipRadius + plateDepth * .7; holeOuterTipRadius = (lineWidth / 2) + 1; holeOuterRadiusBottom = (lineWidth / 2) + 3; removeForFriction = .3; conn...
glb/cad_4f3d5a21eae3.glb
Create an OpenStructures joint consisting of a central disk with a radius of 20mm. The disk has a total thickness of 15.4mm. Carve a cylindrical hole with a radius of 6.95mm through the center of the disk along the Y-axis. Additionally, carve a cylindrical channel with a radius of 6.95mm that enters from the side and...
rodARadius = 13.9 / 2; rodBRadius = 13.9 / 2; outerDiskAddedFlesh = 1.5; diskRadius = 40 / 2; screwHoleRadius = 5.8 / 2; missingForFriction = 1; rotate (a = [-90, 0, 0]) { difference () { union () { translate (v = [0, + rodBRadius + missingForFriction + rodBRadius + missingForFriction + o...
glb/cad_c8d7f5efd729.glb
Create an OpenStructures joint consisting of a circular disk with a radius of 20mm and a thickness of 16.4mm. First, remove a central cylindrical core with a radius of 6.95mm that runs vertically through the center of the disk. Second, remove a second cylindrical core with a radius of 6.95mm that runs horizontally th...
$fn = 120; rodARadius = 13.9 / 2; rodBRadius = 13.9 / 2; outerDiskAddedFleshA = 2.5; outerDiskAddedFleshB = 1.5; diskRadius = 40 / 2; screwHoleRadius = 5.8 / 2; missingForFriction = 1.5; diskA = true; diskM = false; diskB = false; nutWidth = 8.6; nutSideLength = nutWidth / sqrt(3); nutDepth = outerDiskAddedFlesh...
glb/cad_92480608fea9.glb
Create an OpenStructures joint consisting of three stacked disks. Each disk has a radius of 20mm. First, create a central vertical cylindrical hole with a radius of 6.95mm that passes through all three disks. Second, create a horizontal cylindrical hole with a radius of 6.95mm that passes perpendicularly through the c...
$fn = 120; rodARadius = 13.9 / 2; rodBRadius = 13.9 / 2; outerDiskAddedFleshA = 2.5; outerDiskAddedFleshB = 1.5; diskRadius = 40 / 2; screwHoleRadius = 5.8 / 2; missingForFriction = 1.5; diskA = true; diskM = true; diskB = true; nutWidth = 8.6; nutSideLength = nutWidth / sqrt(3); nutDepth = outerDiskAddedFleshA ...
glb/cad_93496de0fc20.glb
Create an 18650 battery pack holder consisting of a 4x4 grid of cells. For each cell, start with a cube measuring 22mm x 22mm x 8mm, centered on its axes. From each cube, remove a central vertical cylinder with a radius of 9.5mm and a height of 8mm, positioned at the bottom to create a circular hole. Additionally, remo...
numerical_slider = 4; numerical_slider2 = 4; $fn=48; for ( i = [1 : numerical_slider2] ) { translate([0,i*(22),0]) for ( i = [1 : numerical_slider] ) { translate([i*(22),0,0]) difference() { cube(size = [22,22,8], center = true); union() { translate([0,0,4]) cube(size = [10,23,4], center = true); transla...
glb/cad_41e636fb7b41.glb
Create a parametric d6 tray consisting of four identical storage units stacked along the Y-axis. Each individual unit is a rectangular box with overall dimensions of 42.5mm in width, 15.25mm in depth, and 15mm in height. For each unit, create a solid outer shell with a wall thickness of 1mm and a bottom thickness of ...
dice_size = 13.5; dice_per_row = 3; rows_per_tray = 4; wall_thickness = 1; bottom_thickness = 1; additional_width = 2; additional_depth = 0.75; additional_height = 1.5; cutout_width_border = 5; cutout_depth_border = 5; circle_cutout_radius = 5; circle_cutout_offset = 6; box_width = dice_size*dice_per_row + additional...
glb/cad_2b39fe90d9be.glb
Create a 16-tooth bevel gear with a central hole 8.5mm in diameter. To secure the gear to a shaft, carve a rectangular cavity into the gear's body to accommodate an M5 nut; this cavity should be 8mm wide, 12mm long, and 8.5mm deep, centered on the gear. Additionally, create a transverse hole 5.75mm in diameter that pas...
include("Gear_Bevel.scad"); setscrew=5; shaft=8; difference() { gear_bevel_ext(num_teeth=16, hole_diameter=8+0.5); rotate([0,0,360/32]) { translate([0,-4.25,-6]) cube([8, (setscrew*1.6)+0.5, 12]); translate([0,0,3-3]) rotate([0,90,0]) cylinder(d=5+0.75, h=20); } }
glb/cad_6611c715cb89.glb
Create a 608 Ball Chain Idler and Pulley. Start by creating a main cylinder with a total height of 17.6mm and a diameter of 31.5mm. At the center of this cylinder, create a boss with a diameter of 16.4mm and a height of 17.1mm. Within this boss, create a central vertical shaft hole with a diameter of 5.2mm. Around th...
fastening_method = 0; boss_extension = 10.5; captive_nut_place = 3.5; shaft_diameter = 5.2; ball_diameter = 5.0; ball_count = 18; ball_spacing = 5.5; link_diameter = 2.5; screw_diameter = 3; screw_count = 3; nut_diameter = 7.1; nut_height = 2.8; clamp_inner_diameter = 13; clamp_width = 8; flat_spot_diamete...
glb/cad_2412d55c1947.glb
Create a cat paving tile with a thickness of 1mm. The tile is a 3D extrusion of a 2D cat silhouette defined by a specific polygon. The silhouette's vertices are located at the following coordinates: [0, -2], [1, -1], [3, -1], [4, -2] for the back; [4, 2], [3, 3], [4, 4], [5, 3], [5, -3], [6, -4], [3, -7] for the tail...
part = "tile"; height = 1; rounding = 0.3; tolerence = 0.05; animation_rotation = false; $fn = 100; is_animated = animation_rotation; $vpt = is_animated?[0, 0, 0]:[]; $vpr = is_animated?[60, 0, animation_rotation?(365 * $t):45]:[]; $vpd = is_animated?120:[]; if (part == "paving") { paving(height, rounding, t...
glb/cad_8fd2c541bbca.glb
Create a customizable label for Knipextend pliers by constructing a thin rectangular baseplate with rounded corners. The baseplate should be 44mm long, 9mm wide, and 0.3mm thick, with a corner radius of 1mm. Centered on top of this base, add the text "KNPX" using a font size of 8px. The text should be extruded to a h...
$fn=120; baseplate_length = 44; baseplate_witdh = 9; baseplate_thickness = 0.3; baseplate_corner_radius = 1; baseplate_color = "red"; text_height = 0.3; text_string = "KNPX"; text_color = "black"; font_size = 8; Font = "Nasa"; Font_Style = "Regular"; font_variable = str(Font , ":style=", Font_Style); modul...
glb/cad_b6c5f5003218.glb
Create a bottle support designed to hold an 80mm diameter cylinder. The main body is a hollow semi-cylindrical shell with an outer radius of 44.5mm and a height of 100mm. The interior is hollowed out by a cylinder with a radius of 41.5mm, leaving a wall thickness of 3mm. On the exterior of the shell, integrate two ver...
difference() { union() { minkowski() { cylinder(r=44.5,h=100,$fn=300); sphere(r=2,$fn=20); } translate([38,-20,0]) cube([14,41,120]); translate([-13,32,78]) rotate([60,0,0]) union() { cube([5,30,5]); translate([0,30,0]) cube([20,5,5]); translate([20,0,0]) cube([5,3...
glb/cad_d3470d629dd3.glb
Create a Yazzo Servo Side Shelf Mount designed to hold a servo and clip onto a shelf. Start by constructing a hollow rectangular sleeve with an inner width of 20.25mm, an inner depth of 40mm, and a total height of 20mm. The walls of this sleeve should be 2.5mm thick. On one side of the sleeve, add a vertical support w...
joinfactor=0.125; gDefaultMountHoleRadius = 3/2*1.1; gDefaultMountSlotLength = 10; gWallThickness = 2.5; gShelfThickness = 6.25; servoMountShelfClip(20.25, 40, 20, 38, gShelfThickness, 7); module squaretube(innerWidth, innerDepth, width, depth, thickness) { wallthickness = (width - innerWidth)/2; difference() { ...
glb/cad_6b1be37ce4ea.glb
Create a blender clutch by starting with a main cylinder that has a diameter of 13.1mm and a height of 27.2mm. From the bottom of this cylinder, remove a central cylindrical core with a diameter of 6mm and a depth of 12.9mm. Around this central core, remove two intersecting rectangular prisms to create a cross-shaped c...
module cross_cut(depth, width, radius, circle_radius, cylinder_depth) { length = radius * 2; union() { translate([-width/2, -length/2, 0]) cube([width, length, depth]); translate([-length/2, -width/2, 0]) cube([length, width, depth]); translate([0, 0, 0]) ...
glb/cad_4055ff58e668.glb
Create a parametric H-clip panel joiner with a total length of 100mm, a total width of 100mm, and a center thickness of 16mm. The main body is formed by a hull connecting two cylinders of 15mm diameter (0.75 times the center thickness) positioned at each end of the 100mm length, with a central cylinder of 16mm diameter...
panelThickness=12.1; clipThick=16; clipWidth=100; clipLength=100; panelGap=10; $fn=64; difference() { hull() { cylinder(clipWidth,0.75*clipThick,0.75*clipThick); translate([clipLength,0,0])cylinder(clipWidth,0.75*clipThick,0.75*clipThick); translate([clipLength/2,0,0])cylinder(clipWidth,clipThick,clipThick); }; t...
glb/cad_856c861ad26d.glb
Create a Snap-in Marker Holder by constructing a row of nine identical marker slots and a single cap holder. For each of the nine marker slots, create a cube measuring 14.3mm wide, 14.3mm high, and 30mm deep. Center a cylinder with a diameter of 10.3mm and a length of 30mm within each cube, then remove the top half of ...
number = 9; marker_diameter = 10.3; cap_diameter = 9.9; length = 30; thickness = 2; grip = 0.2; l = max(length, (cap_diameter + thickness)*2); $fn = 32; eps = $preview ? 0.02 : 0.001; ep2 = eps*2; n = number; md = marker_diameter; cd = cap_diameter; t = thickness; side = md + t*2; h = side/2 + (side/2)*grip; for (...
glb/cad_2db292626efe.glb
Create an Azteeg X5 Mount for a Mini Kossel. Start with a main rectangular base measuring 130mm in length, 61mm in width, and 44mm in height, with a wall thickness of 3mm. On the rear face, center a large circular cutout with a 19mm radius to accommodate a cooling fan. Around this main opening, place four M3 screw ho...
include <functions.scad>; use_fillets = 1; extra_radius = 0.0; m3_major = 2.85; m3_radius = m3_major / 2 + extra_radius; m3_wide_radius = m3_major / 2 + extra_radius + 0.2; length = 130; width = 61; height =44; thickness = 3; blength = 96.1; bwidth = 50.8; stand_blenght = 88.70; stand_bwidth = 43.58; stand_height...
glb/cad_d1c2945f22d4.glb
Create a Multiplex Servo Cover by designing a hollow shell based on a composite geometric form. Start with a primary solid composed of a sphere scaled to 20mm in width, 14mm in depth, and 24mm in height, merged with a hull that connects a scaled cylinder at the origin to another scaled cylinder positioned 30mm away alo...
$fn=100; module cover() { difference() { union() { scale([20/12,7/12,1]) sphere( r= 12); hull(){ translate([0,0,0])scale([1,7/12,1]) rotate([0,90,0])cylinder( r = 12, h = 0.1, center = true); translate([30,0,0])scale([1,7/12,9/12]) rotate([0,90,0])cyli...
glb/cad_73f4263a7345.glb
Create a spool consisting of two identical circular side plates connected by a central core. Each side plate is a cylinder with a diameter of 25mm and a thickness of 2mm. The central core is a hollow cylinder with an outer diameter of 13mm and an inner diameter of 7mm. The core's walls are 3mm thick. Position the two ...
$fn=60; $EC =.3; Cord_D_Sets_PlateD = false; Cord_D = 1; Cord_Len = 1; Plate_Diam = 25; Plate_Thk = 2; Plate_Sep_I = 10; Face_2_Face = false; Core_IDia = 7; Core_Wall_Thk = 3; Core_Hoke_Sides = 50; Plate_H0_R = .10; Plate_H1_R = .9; Plate_Hole_D = 3; Phase_Sep = 45; MinSide_dr= 5; Core_ID = (Face_2_Fac...
glb/cad_0f6ecc872f4e.glb
Create a button shield for a Sangean RCR-3 clock radio. The main body is a hollow vertical cylinder with an outer radius of 11.15mm and an inner radius of 9.15mm, extending to a total height of 77mm. The cylinder is not complete; it is sliced vertically to create a wedge-shaped opening, leaving a gap of 196.7 degrees. ...
ang=360.0-196.7; dia=18.3; ang2=32.81; module wedge() { difference() { rotate([0,0,180-ang]) difference() { cylinder(r=3+(dia/2), h=77, $fn=64); translate([-250,0,-1]) cube([500,500,500]); } translate([-250,0,-1]) cube([500,500,500]); } } union() { ...
glb/cad_2bc13f537e92.glb
Create a Yazzo Servo Front Shelf Mount. Start by constructing a main rectangular hollow body with an outer width of 25.25mm, an outer depth of 45mm, and a height of 7mm. The walls of this body should be 2.5mm thick. Inside this body, add a vertical support wall that is 3mm thick, running along the depth of the object....
joinfactor=0.125; gDefaultMountHoleRadius = 3/2*1.1; gDefaultMountSlotLength = 10; gWallThickness = 2.5; gShelfThickness = 6.25; servoMountShelfClipFront(20.25, 40, 20, 38, gShelfThickness, 7); module squaretube(innerWidth, innerDepth, width, depth, thickness) { wallthickness = (width - innerWidth)/2; difference(...
glb/cad_4cc1c543375c.glb
Create a Coke Bottle Lid with two integrated siphon tubes. Start by creating a main cylindrical body with a radius of 15mm and a height of 15mm. Hollow out the center of this cylinder with a concentric hole of 13.6mm radius and 16mm height. On the interior bottom surface of the main body, add a right-handed trapezoid...
include <Thread_Library.scad> mirror([0,0,180]) makeIt(); module makeIt() { difference() { difference() { difference() { color("gray") cylinder( r1=15, r2=15, h=15, $fn=400); translate([0,0,1.5]) cylinder( r1=13.6, r2=13.6, h=16); } translate([6,0,-10]) cylinder(r1=2, r2=2, h=26); transla...
glb/cad_86bc594dfc6a.glb
The provided code defines a series of modules (`nine`, `ten`, etc.) that use a `union()` function to group multiple `translate()` and `rotate()` operations. These operations act upon a base object called `line(l, w)`. Based on the coordinates and the repetitive, self-similar nature of the translations and rotations, t...
l = 5; w = 2; h = 4; mark = 9; if (mark==1) linear_extrude(height=h) one(); else if (mark==2) linear_extrude(height=h) two(); else if (mark==3) linear_extrude(height=h) three(); else if (mark==4) linear_extrude(height=h) four(); else if (mark==5) linear_extrude(height=h) five(); else if (mark==6) linear_extrude(h...
glb/cad_8696cb211b67.glb
Create a model rocket nose cone consisting of a conical tip and a cylindrical adapter base. First, construct the adapter base. Create a cylinder with an outer diameter of 28.72mm and a height of 20mm. Inside this cylinder, remove a concentric core to create a wall, leaving an inner diameter of 25.65mm. At the bottom ...
Diameter_In=25.65; Diameter_Out=28.72; radius_in=Diameter_In/2; radius_out=Diameter_Out/2; Length=150; Cone_Render_Resolution=60; Cone_Shape=""; Adaptor_Length=20; variable_adapter_Length=Adaptor_Length-2-2-2; Recovery_Hole_Size_Y=6; Recovery_Hole_Size_X=10; Recovery_Rod_Girth=3; union(){ difference(){ ...
glb/cad_be4926c48875.glb
Create a customizable socket wrench. Start by building the base socket as a 20-sided prism cylinder with a radius of 5mm and a height of 18mm. Above this, add a tapered 20-sided transition section that narrows from a radius of 5mm to 3mm over a height of 6mm. Extend the main shaft upwards from this transition as a 20-s...
nut = 6; height = 150; handleHeight = 60; handleDiameter = 12; shaftDiameter = 6; wrench(nut,height,handleHeight,handleDiameter,shaftDiameter); module wrench(nut,height,handleHeight,handleDiameter,shaftDiameter) { difference(){ union(){ cylinder(h=nut*3,r=nut/2+2,$fn=20); translate([0,0,nut*3])cylinder(h=nut,r...
glb/cad_373bbeaddd62.glb
Create a Minimal Non-geared Mendel Extruder block. Start with a main rectangular body measuring 60mm in length, 18.1mm in height, and 41mm in width. Carve a central rectangular slot through the body to accommodate a motor, with dimensions of 28mm by 2.1mm by 23mm. At the center of the block, create a vertical cylindr...
m4_clearance_rad=2.5; m4_cap_clearance_thickness = 4.1; bearing_clearance_rad=8; bearing_clearance_thickness=6.7; motor_clearance_thickness=2.1; filament_rad=1.6; ptfe_rad = 8; filament_z= 7.35; m4_length = 15; thickness = filament_z + bearing_clearance_thickness/2 + m4_cap_clearance_thickness + motor_clearance_thickne...
glb/cad_816c558766d9.glb
Create a Bike Pannier Rack Hub Mount by constructing a main outer casing and removing several internal geometric volumes. Start with a central cylinder that has a diameter of 25mm and a height of 24mm. Attach a rectangular block to the side of this cylinder, measuring 20mm in width, 13mm in depth, and 21.5mm in height....
$fn=100; nutLength = 22; nutDia = 21; nutMinDia = 13; nutMidDia = 14; thickness = 4; module nutcoverCutout() { union() { translate([0,0,5+thickness]) cylinder(h=10, d1=13, d2=14, center=true); translate([0,0,15+thickness]) cylinder(h=10+1, d=21, center=true); } } module ushape() { transl...
glb/cad_4b353dab3bce.glb
Create a NEMA17 Y-axis motor mount. Start with a central rectangular block measuring 50mm wide, 6mm thick, and 70mm long. At the center of the block, create a circular cutout with a radius of 13mm that passes through the thickness of the plate. Position four motor mounting holes with a radius of 2mm each; two holes s...
xscrew_space=31; xthick = 8; ythick = 6; module fillet_xyz(x,y,z) { hyp=sqrt((y+2)*(y+2) + (z+2)*(z+2)); ang = atan2(z,y); angshift = atan2(z+2,y+2); clip = 1; intersection () { translate ([0,-clip,0]) { cube(size=[x,y-2*clip,z], center=true); } translate ([0,0,0]) ...
glb/cad_74ea3b15a588.glb
Create a Snail Fence segment consisting of a hollow vertical cylinder with an outer radius of 40mm, an inner radius of 34mm, and a total height of 80mm. On opposite sides of the cylinder wall, create three sets of matching holes and sockets spaced vertically. On one side, create three circular magnet holes with a dia...
eps = 0.001; include <..\lib\camphers.inc> r = 80.0/2; h = 80.0; t = 6.0; campher = 1.0; rMagnetHole = 8.2/2; dMagnetHole = 3.2; tWallMagnetHole = 2.0; rScrewHeadHole = 8.0/2; rScrewHole = 3.8/2; dScrewHeadHole = 2.6; tWallScrewHole = 2.0; lengthScrewHole = 9.0; lengthScrewHolder = 15.0; offsetHoleZ1 = 15.0; offset...
glb/cad_76ac3f33cc72.glb
Create a Small Parametric Dice Tray consisting of a flat rectangular base and a surrounding perimeter wall. The base has a width of 130mm and a total depth of 158mm, with a thickness of 2mm. The tray is divided into two main sections: a rolling area and a dice shelf area. The rolling area is 100mm deep, while the dice...
Roll_Area_Depth = 100; Dice_Shelf_Depth = 18; Width = 130; Dice_Shelf_Count = 3; Wall_Height_Max = 30; Wall_Height_Min = 4; Wall_Interior_Slope = 66; Floor_Thickness = 2; Divider_Thickness = 2; module endParams(){} endParams(); $fn=64; wallThicknessMin = 2; wallBezel = 1; wallBaseWidth = wallThicknessMin +...
glb/cad_6ef4b8fbdb2e.glb
Create ten identical parametric sleeves designed to fit one tube into another. Each sleeve is a hollow cylinder with an outer diameter of 14.9mm, an inner diameter of 10.1mm, and a height of 6.0mm. To construct a single sleeve, start with a solid cylinder of the outer diameter and height, then remove a concentric inn...
use <utils/build_plate.scad> cutout_width = 4.0; sleeve_height = 6.0; outer_diameter = 14.9; inner_diameter = 10.1; spacing = 2.0; pcs = 10; $fn = 100; build_plate_selector = 3; build_plate_manual_x = 150; build_plate_manual_y = 150; build_plate(build_plate_selector,build_plate_manual_x,build_plate_manual_y);...
glb/cad_0ff70099a467.glb
Create a parametric battery holder for three AA batteries. Start with a rectangular base that is 50.5mm long (the length of an AA cell) and has a thickness based on the battery radius (7.25mm). The base should be flanked by two end plates, each 2mm thick, to enclose the cells. Carve out three cylindrical voids for the...
flanges=1; flangeLocation=15; flangeMbolt=3; batteryDia=14.5; batteryLen=50.5; AA=[ [batteryLen, 50.5], [batteryDia, 14.5] ]; AAA=[ [batteryLen, 44.5], [batteryDia, 10.5] ]; C=[ [batteryLen, 50], [batteryDia, 26.2] ]; 168A=[ [batteryLen, 65.2], [batteryDia, 18.6] ]; D=[ [ba...
glb/cad_33bbdd84078d.glb
Create a tool holder consisting of a horizontal shelf and a vertical backplate. The shelf is a rectangular plate 120mm wide, 20mm deep, and 1.2mm thick. Attached to the rear edge of the shelf is a vertical backplate 30mm high and 1.2mm thick. On the shelf surface, place 8 cylindrical tool guides. Each guide is a hollo...
globalThickness=1.2; shelfLength=120; shelfWidth=20; shelfThickness=globalThickness; backingheight=30; backingThickness=globalThickness; backHoleSize=4; numberOfHoles=8; holeDiameter=8; holeLargestDia=5; holeSmallestDia=2.5; gussetThickness=globalThickness; triangleGussetWidth=20; progressiveHoleSize=0; triangular...
glb/cad_75a917bda808.glb
Create a customizable measuring spoon consisting of a bowl and a handle. The bowl is formed by rotating a profile around a central axis to create a hollowed-out elliptical shell. The outer dimensions of this bowl are 34mm in diameter and 48mm in depth, with a wall thickness of 2mm. The interior cavity is 30mm in diamet...
$fa = 1; $fs = 0.4; walls = 2; spoonDiameter = 30; spoonDepth = 46; handleWidth = 12; handleLength = 50; textOnHandle = "Coffee"; fontSize = 11; fontSpacing = 1; module spoon(){ rotate_extrude(angle = 360){ difference(){ difference(){ resize([outerDiameter,outerDepth]) ...
glb/cad_acd8201ab16e.glb
Create a Rounded Feeding Dish with outer dimensions of 209mm in length (X), 149mm in width (Y), and 19mm in height (Z). The main body is a hollowed-out rectangular shell with rounded corners and edges. To form the exterior, create a hull encompassing eight spheres with a radius of 12mm, positioned at the eight corner...
dimensionX = 209; dimensionY = 149; dimensionZ = 19; dimension = min(dimensionX,dimensionY,dimensionZ); factorradius2dim = 12 / 80; wall = 2.0; userColorRGB = [0/255, 48/255, 112/255]; userColorAlpha = 255/255; radius = dimension * factorradius2dim; $fn = 50; offset4sphereX = dimensionX - (2 * radius); offset4s...
glb/cad_691fdf074af1.glb
Create an electret microphone shotgun mount consisting of a main cylindrical body and two attachment bases. The main body is a cylinder with a diameter of 20mm and a length of 55mm. Drill a central hole through this cylinder to accommodate a microphone, starting with a diameter of 10.45mm for the first 15mm of the leng...
$fn=200; micDiameter=10.45; micLenght=15; canyonLenght=55; canyonDiameter=20; canyon(canyonDiameter,canyonLenght,micDiameter,micLenght); translate([0,0,-canyonLenght/2+9.65]) difference(){ rotate([90,0,90]) tripodBase(3); translate([0,0,-7]) rotate([90,0,0]) cylinder(d=2.5,h=20,center=true); } transla...
glb/cad_fac902d752c9.glb
Create a Decoy Butterfly consisting of four overlapping wing-like ovals and a central mounting hole. Each wing is a cylinder with a height of 2mm. Create two primary wings by scaling a 15mm radius cylinder by 1.42 along one axis to form an oval; position one at a -10 degree rotation and the other at a 100 degree rotati...
fly_thick=2; module wing(wing_rad) { translate ([wing_rad,wing_rad,0]) rotate ([0,0,45]) scale ([1.42,1,1]) cylinder(h=fly_thick, r=wing_rad, center=true); } rotate ([0,0,-10]) wing(15); rotate ([0,0,100]) wing(15); rotate ([0,0,-80]) wing(18); rotate ([0,0,170]) wing(18); difference () { cylinder(h=fly_th...
glb/cad_7d56b38c6211.glb
Create a Sota Whip Plug, a tapered cylindrical adapter with a total height of 40mm. The main body is a truncated cone that tapers from a base diameter of 16.6mm to a top diameter of 16.3mm over a height of 37mm. The bottom 2mm of the plug features a bevel that transitions from 16.4mm to 16.6mm. The top 1mm of the plug ...
include <BOSL2/std.scad> include <BOSL2/screws.scad> ShowCrossSection=true; TaperTap=true; dBot=16.8; dTop=16.5; dTopOfPole=15.8; dLengthOfPole=590; Depth=100; H=40; HT=12; Dhole=8; dTrim=0.1; $slop=0.1; dWhip=16; DSlope=(dBot-dTopOfPole)/dLengthOfPole; dd=dTrim+ (DSlope*Depth); D2=dTop +dd; D1=dBot +dd; ...
glb/cad_d0cffe76ac0f.glb
Create a Sota Whip Plug consisting of a tapered cylindrical body. The main structure is a hull formed between a base disk with a diameter of 25mm and a height of 2mm, and a smaller upper cylinder with a diameter of 19mm and a height of 5mm. Centrally carve a vertical hole through the entire object with a diameter of ...
include <BOSL2/std.scad> include <BOSL2/screws.scad> ShowCrossSection=true; ShowWhip=true; ID=15; OD=25; T=2; H=5; idHole=2.5; N=3; $fn=50; odHole=(1.5+idHole); rH=(ID/2)+idHole/2+0; module RR(d,h=H) { for (i=[0:N-1], j=[-1,1]) { rotate([0,0,i*360/N + j*30]) translate([rH,0,0]) rotate([j...
glb/cad_acd14a5e7d00.glb
Create a Mains Switch Cover consisting of a protective guard and a mounting holder. First, construct the holder as a flat plate with a thickness of 2mm. The main body is a rectangular frame with rounded corners (radius 3.5mm). Cut a central rectangular opening from this plate, measuring 39.4mm by 28.1mm, positioned t...
$fn=20; p1 =[32.7,37.9,0]; p2 =[47.8,37.9,0]; p3 =[47.8,45.8,0]; p4 =[32.7,45.8,0]; p5 =[20.3,62.0,0]; p6 =[59.7,62.0,0]; p7 =[59.7,66.0,0]; p8 =[20.3,66.0,0]; p9 =[65.4,10.0,0]; p10=[76.0,10.0,0]; p11=[76.0,67.0,0]; p12=[65.0,67.0,0]; p13=[64.0,65.0,0]; p14=[62.7,49.4,0]; p15=[61.0,44.0,0]; p16=[60.7,42.0,0]; p17=[6...
glb/cad_6c9934e4e9ef.glb
Create a soap dish consisting of a shallow oval basin with a drainage grid. The main body is an elliptical cylinder with a length of 93mm and a width of 70mm, and a total height of 20mm. The bottom of the basin is rounded, transitioning from the flat base into the walls. The floor of the basin features a hexagonal dra...
hr = 3.5; wt = 1; dl = 93; dh = 70; hs = hr+wt/2; module soapDish() { ss=1.1; sl=0.8; difference() { scale([dl/2,dh/2,1]) cylinder(r1=1,r2=0.97,h=20,$fn=120); hull() { translate([0,0,16]) scale([ss*dl/2,ss*dh/2,1]) cylinder(r=1,h=11,$fn=80); translate([0,0,8]) scale([sl*dl/2,sl*dh/2,4]) spher...
glb/cad_f2f4558257c8.glb
Create a dummy potentiometer model starting with a low-resolution cylindrical base 18mm in diameter and 8mm high, centered on the origin. On top of this base, place a smaller cylinder 7mm in diameter and 6mm high, centered vertically. Above this, create a main vertical body 10mm high and 6.5mm in diameter, but carve a ...
module pot() { cylinder(d=18, h=8, $fs=0.01, center = true); translate([0,8,3.5]) cube([15,7,1], center = true); lug([0,12,3.75]); lug([6,12,3.75]); lug([-6,12,3.75]); difference() { translate([0,0,4.5]) cylinder(d=10, h=1, center = true, $fs=0.01); translate([0,6.25,4.701]) cu...
glb/cad_285a2c2e1468.glb
Create a parametric angle bracket with a wall thickness of 4mm and an interior angle of 108 degrees. The bracket consists of two arms meeting at a vertex. The first arm is 40mm long and the second arm is 40mm long. The overall depth of the bracket is 80mm. The bracket features three internal webs of 4mm thickness each...
bracket_angle = 108; bracket_length = 80; wall_thickness = 4; arm1_length = 40; arm1_holes = 2; arm1_hole_style = "plain"; arm1_hole_diameter = 6.4; arm1_hole_spacing = 0.5; arm1_hole_position = 0.7; arm1_hole_offset = 0.0; arm1_hole_elongation = 4.0; arm2_length = 40; arm2_holes = 4; arm2_hole_style = "countersunk";...
glb/cad_84bbdfd124d8.glb
Create a replacement cap for a shower cabin with an outer diameter of 33.6mm and a total height of 5.4mm. The top surface should be flat and the upper outer edge should be rounded with a radius of 1.3mm. The bottom of the cap is hollowed out to create a cavity with a total depth of 4.15mm. This cavity begins with a con...
aussendurchmesser = 33.6; radius = 1.3; hoehe = 5.4; tiefe = 4.15; hoehe_fase = 1.5; $fn=100; innenohneradius = aussendurchmesser-2*radius; difference() { round_edge(radius) cylinder(d=innenohneradius, h=hoehe-radius); translate([0,0,-radius*2]) cylinder(d=aussendurchmesser*2,radius*2); cylinder(d1=30.0, ...
glb/cad_3965acdd56e3.glb
Create a Spoke Box consisting of a main cylindrical base and a matching threaded lid. For the base, create a hollow cylinder with an inner diameter of 30mm and a total height of 233mm (230mm inner height plus a 3mm floor). The walls should be 2mm thick. At the top of the base, add an external screw thread with a heig...
Inner_Width_Base = 30; Inner_Height_Base = 230; wall_thickness = 2; wall_thickness_lid = 2; Inner_Height_Lid = 70; bottom_thickness = 3; thread_height = 12; thread_turns = 5; cut_thread_percent = 6; smooth_sides = 1; view_sectioned = 0; part_to_print = 0; print_distance = 5; fn = 128; partsgap = 0.5; Hei...
glb/cad_7a7a85dea6a6.glb
Create a Customizable Anything Hook by constructing a base plate and adding a clamping structure. Start with a base rectangular plate 80mm wide, 130mm long, and 20mm high, with all four corners rounded to a 5mm radius. From this base, remove a rectangular section to create a clamp opening that is 70mm wide and 30mm d...
width = 80; length = 130; clamp_width = 30; hook_width = 50; thickness = 5; height = 20; catch = 5; rounding_radius = 5; clamp_offset = 0; hook_offset = 0; add_catch = "true"; module roundedRect(size, radius) { x = size[0]; y = size[1]; z = size[2]; linear_extrude(height=z) hull() { translate([(-x/...
glb/cad_6ecf8ae67466.glb
Create an outdoor mount for a thermometer consisting of a main body and a lid. The main body is a rectangular box with exterior dimensions of 42mm width, 30mm depth, and 60mm height. The vertical edges of the box should be chamfered by 1mm. Hollow out the interior of the body, leaving a wall thickness of 2mm. On the f...
wall = 2; extX = 42; extY = 30; extZ = 60; postX = 14; postY = 14; postClearance = 0.1; lidXMargin=8; lidYMargin=6; lidRot = -15; lidX=extX+lidXMargin; lidY=extY+lidYMargin; lidX2=lidX+wall; function chamferSquareVec2Points1(vec2, chamfer) = [ [chamfer, 0], [vec2[0]-chamfer, 0], [vec2[0], chamfer], [vec2[...
glb/cad_1b3283c66fb8.glb
Create a parametric railway turnout consisting of a turnout body and switch arms. The rail profile is a complex polygon with a height of 6mm. For the turnout body, create a track gauge of 36mm. The structure includes a straight section and a curved section with a centerline radius of 350mm covering an angle of 35 degr...
RailHt = 6; NoSlprs = 12; TrakGage = 36; SlprLn = 55; SlprWd = 10; SlprHt = 3; CurveRad = 350; TrakLength1 = 30; TrakLength2 = 200; CurveSegAng = 35; SwitchPLength = 80; FrogCurveAng = 12; FrogStrtLen = 65; FrogFactor = 0.8; SleepersYN = 1; TrkTyp = 1; SwitchBodyYN = 1; SpacingD = (FrogFactor+0.3)*Rail...
glb/cad_a43c0ada8e04.glb
Create a Z-Rider bushing mod consisting of two primary geometric components joined together. First, create a hollow cylindrical bushing with an outer diameter of 15.54mm, an inner bore diameter of 9.94mm, and a total height of 25.4mm. This cylinder should be three-quarters closed; remove a square section from the wal...
zrider_bushing(9.54, 25.4, 4); epsilon = 0.01; BushingThickness = 6; function inches(n) = 25.4 * n; module tab_head(height, ext=0) { union() { translate([2.5, 0, 0]) cylinder(r=2.5, h=height, $fn=32); translate([-2.5, 0, 0]) cylinder(r=2.5, h=height, $fn=32); translate([0, 5 + ext/2, height/2]) cube...
glb/cad_229166c5c889.glb
Create a raindrop shape by combining a sphere and a tapered spire. Start with a sphere with a radius of 50mm, using a facet resolution of 30 for its curvature. From the top of this sphere, extend a vertical tapered point reaching a total height of 140mm (2.8 times the radius) above the center of the sphere. Construct t...
radius = 50; height = 2.8; steps = 20; facets = 30; loops = 1; raindrop3D( radius, height, steps, loops, facets ); module raindrop3D(radius, height, steps, loops, facets){ sphere(radius, $fn = facets ); for( i = [ 0 : steps * loops - 1 ] ){ translate([0, 0, radius * height / steps * i]) cylinder(h = 1 / ...
glb/cad_5faec7a2735c.glb
Create an Umbilical Torus by sweeping a triangle around a circular path. The triangle should have a distance of 1mm from its center to each vertex. The center of this triangle should be positioned at a radius of 2mm from the central axis of the overall shape. As the triangle rotates around the central axis to complete ...
inc=5; function tri(r,t,a,b) = [(r + t*sin(a))*cos(b), (r+ t*sin(a))*sin(b), t*cos(a)]; module wedge(r,t,i,inc) { a1 = tri(r,t,i/3,i); b1 = tri(r,t,120+i/3,i); c1 = tri(r,t,240+i/3,i); j=i+inc; a2 = tri(r,t,j/3,j); b2 = tri(r,t,120+j/3,j); c2 = tri(r,t,240+j/3,j); polyhedron( points=[a1,b1,c1,a2,b2,c2], ...
glb/cad_fdc7559acbce.glb
Create an epoxy mixer tray and spatula set. For the tray, construct a square block measuring 30mm wide, 30mm deep, and 4mm high. Carve out a central rectangular cavity 27mm wide and 30mm deep, leaving a 1.5mm wall on the left and right sides and a 1mm floor, with the top of the cavity open. For the spatula, create a r...
tray_height=4; tray_depth=30; module box(box_width,box_depth,box_height) { translate ([0,0,box_height/2]) cube ([box_width,box_depth,box_height],center=true); } difference () { box(30,30,tray_height); translate ([0,2,tray_height-1]) rotate ([5,0,0]) box(tray_depth-3,tray_depth,tray_height); } spatula_length=65; s...
glb/cad_165bc5e34282.glb
Create a V-block fixture with an overall width of 60mm and a length of 40mm. The main body features a V-shaped groove centered on the top, with a depth of 28mm and a top opening width of 60mm. The walls of the V-groove are 2mm thick. The bottom of the fixture is a flat rectangular base 6mm high and 25mm wide. In the c...
w = 60 ; len = 40; w1 = 2; w2 = 2; w3 = 5*w1; h1 = ((w/2)-w1); h2 = 6; h3 = 4; brad = 2; swidth = 4; mhd = 3.2; fn=50; eps=0.03; AX=0; AY=0; BX=(w/2)-w1; BY=h1; CX=w/2; CY=h1; DX=w/2; DY=h1-w2; EX=w3; EY=0; FX=w3; FY=-(h2-h3); GX=w/2; GY=-(h2-h3); HX=w/2; HY=-(h2); IX=-HX; IY=HY; JX=-GX; JY=GY; KX=-FX; KY=FY; LX=-EX...
glb/cad_06182f330be0.glb
Create a Peugeot heating control knob. Start with a cylindrical grip that has a radius of 24.9mm and a height of 13.9mm. Centered within this grip, create a vertical cylindrical shaft that extends upwards. This shaft should have a base radius of 5.25mm and a total height of 16.1mm. The shaft is composed of three secti...
$fn = 360; pivotRadius = 6.9 / 2; pivotDiameterToFlatSide = 5.6; pivotAngle = 180 + 15; cylinderHeight = 16.1; cylinderRadius = 10.5 / 2; cylinderGrooveHeight = 2.6; cylinderGrooveDepth = .6; cylinderConeHeight = 3.0; cylinderConeTopRadius = 8.9 / 2; cylinderTipRadius = cylinderRadius * 1.03 ; easyAccess = 1; ...
glb/cad_906c273aad31.glb
Create a modular spice rack consisting of shelves, uprights, and a foot connector. For the shelf, create a rectangular plank 46mm wide and 90mm long with a thickness of 10mm. Cut a cylindrical hole with a 46mm diameter through the center of the plank. Add a 2mm thick backstop plate across the rear width of the shelf,...
Part = "All"; Container_Diameter = 46; Container_Height = 90; Dovetail_Tolerance = 0.025; Shelf_Angle = 10; module endParam(){} endParam(); eps = 0.01; $fn = 64; shelfWidth = Container_Diameter; shelfLength = Container_Height; shelfThickness = 10; backstopThickness = 2; DovetailSpacing = 4; dovetailMaxWidth ...
glb/cad_481cf5f02a98.glb
Create an extruder-to-bowden bracket consisting of a vertical riser and a flat base. Start with a rectangular base measuring 54mm by 44mm with a thickness of 7.5mm. Attached to this base is a vertical riser that is 7.5mm wide, 44mm deep, and 70mm tall. The intersection between the base and the riser should be filleted ...
dia = 49; extrawidth = 5; ext_x = 45; ext_y = 44; ext_z = 70; fitting_thread_length= 7; fitting_thread_base_width = 9.45; fitting_thread_tip_width = 9.15; height = 7.5; extraheight = 9-height; width = 16; m8hole = 10; m4hole = 4.2; $fn=100; rotate([0,90,0]) union(){ difference(){ union(){ translate([-4,0,0]...
glb/cad_1f33395c24ef.glb
Create a sealant cartridge nozzle consisting of a hexagonal base, a tapered conical body, and a cylindrical tip. Start with a hexagonal base 10mm high and 24mm in diameter. Inside this base, create a metric internal thread with a diameter of 15mm, a pitch of 1.5mm, and a length of 8mm. To leave the base open, remove ...
use <threads.scad> function inHole(d) = d; ComplexTip(opened=true); module BigCap(opened=true) { difference() { cylinder(h=10, d=24, $fn=6); metric_thread(diameter=inHole(15), pitch=1.5, length=8, internal=true); if(opened) translate([0, 0, 8]) cylinder(h=2, d=inHole(12)); } } module SimpleTip() { u...
glb/cad_7641c395b60d.glb
Create a bow handle with a total thickness of 38mm and a central width of 120mm. The main body is composed of a central grip section and two symmetrical limb attachment sections. For the limb attachments, create two rectangular blocks, each 45mm wide and 70mm high, positioned at the top and bottom ends of the grip. In...
ep=38; larg=45; ep_branche=11.5; r_vis=5; r_ecrou_vis=10.5; h_fix=70; h_milieu=120; d_pass_fleche=25; h_ouv=ep/2+5; angle_branche=10; module disque_support(){ cylinder(r=15, h=2, $fn=100); } module fix_branche(){ difference(){ cube([larg,h_fix,ep]); translate([larg,0,-5]){rotate([0,0,45])cube([10,10,ep+1...
glb/cad_2a48679b7bae.glb
Create a bow handle with a total thickness of 38mm and a width of 45mm. The central grip section is 105mm high. At the top and bottom of the handle, create two limb attachment blocks, each 50mm high. For each limb attachment, remove a section from the outer edge to allow for limb insertion, angling the cut at 10 degr...
ep=38; larg=45; ep_branche=11.5; r_vis=5; r_ecrou_vis=10.5; h_fix=50; h_milieu=105; d_pass_fleche=15; h_ouv=ep/2+5; angle_branche=10; module disque_support(){ cylinder(r=15, h=2, $fn=100); } module fix_branche(){ difference(){ cube([larg,h_fix,ep]); translate([larg,0,-5]){rotate([0,0,45])cube([10,10,ep+1...
glb/cad_1da163fc95c8.glb
Create a Laptop Arc Stand by starting with a solid cylinder 76mm in diameter and 40mm high. Hollow out the center by removing a smaller concentric cylinder with a 58mm diameter and a height of 50mm, shifted 5mm downwards. To create the support slot, remove a central rectangular block 64mm wide, 70mm deep, and 25mm high...
difference() { cylinder(r=38, h=40, $fn=100); union() { translate(v=[0,0,-5]) { cylinder(r=29, h=50, $fn=100); } translate(v=[0,40,25]) { cube(size=[80,80,80], center=true); } translate(v=[0,-10,20]) { cube(size=[64,70,25], center=true); } translate(v=[0,-15,20]) { cube(size=[80,20,25], ce...
glb/cad_98ba5cadc67e.glb
Create a drum rack insert for a microphone stand. Start with a base disk with a radius of 19.25mm and a height of 11mm. The bottom 2mm of this disk should be a slightly smaller cylinder with a radius of 18.5mm. On top of the base, add a cylinder with a radius of 16mm and a height of 40mm. Around this inner cylinder, c...
precision = 90; $fn = precision; outerDiskRadius = 38.5 / 2; outerDiskHeight = 11; outerDiskEdgeHeight = 2; innerCylinderRadius = 32 / 2; innerCylinderHeight = 40; nrOfSlits = 11; slitWidth = 3; slitHeight = 20; conicalHoleHeight = slitHeight; conicalHoleTopRadius = innerCylinderRadius - 1; conicalHoleBottomRadius...
glb/cad_a4d310bfe6a2.glb
Create a Geneva Mechanism consisting of a crank, a follower, a mount, and a drive handle. First, create the crank as a cylinder with a radius of 27.5mm (crank radius 25mm plus half the roller diameter) and a thickness of 3mm. Subtract a central vertical hole with a diameter of 5mm. Additionally, add a smaller cylinder...
part = "CrankFollowerMount"; play = 0.1; sides = 50; crank_radius = 25; crank_thickness = 3; roller_diameter = 5; crank_axis_diameter = 5; follower_thickness = 3; follower_axis_diameter = 5; number_of_slots = 5; mount_thickness = 4; include_drive_handle = "Yes"; handle_shaft_diameter = 5; beta = 180/number...
glb/cad_2abc662e7c05.glb
Create a Toyota 4Runner Deck Light Lens. Start with a rounded rectangular base measuring 70mm in length and 39mm in width, with a corner radius of 10mm and a total thickness of 4mm. The lens should have a thinned middle section to create a recessed face. To achieve this, create a smaller rounded rectangular cutout fr...
length=70; end=10; width=39; side=4; radius=10; thickness=4; bevel=1.1; spacing=58; hole=3; recess="Yes"; $fn=100; difference() { union() { linear_extrude( height=thickness, center=false, twist=0, scale = [bevel,bevel] ) { difference() { rounded_rect( [length/bevel, width/bevel], radius); roun...
glb/cad_de9231facb50.glb
Create a Fingerpult, a small catapult device. Start by constructing a flat, spiral-shaped spring with a height of 12mm and a thickness of 2mm. The spiral should wind outwards from an inner radius of 3mm to an outer radius of 18mm. At the outer end of the spiral, integrate a finger grip consisting of a series of conce...
$fn=64; H=12; T=2; fingerD=21; spiralSteps=200; spiralRad=18; spiralRot=3; startRad=3; angStep=spiralRot*360/spiralSteps; radStep=(spiralRad-startRad)/spiralSteps; space=0.3; armT=T*2; armH=3; bucketD=13; bucketAng=120; bucketPos=spiralRad+space+bucketD/2; fullH=H+space+armH; rnd=0.6; overlap=0.1; spiral2D=[ ...
glb/cad_dd9aad94e624.glb
Create a Four-Point Probe Head holder consisting of a ring-like structure. Start by creating a main cylinder with a height of 10mm and a radius of 16mm, centered on the origin. Subtract a smaller concentric cylinder from the center with a height of 10.1mm and a radius of 13mm, shifted 3mm upward along the Z-axis. Addit...
include <cogsndogs.scad>; Probe_Body_Diameter = 26; Probe_Body_Length = 35; Probe_Flange_Diameter = 23; Probe_Flange_Height = 2.5; Bearing_Diameter = 15; Bearing_Length = 24; Rod_Diameter = 8.5; Screw_Diameter = 3.5; Distance_Between_Rods = 50; Layer_Height = .25; $fn = 55; Holder(); module Holder(){ differenc...
glb/cad_0ad1735d83de.glb
Create an ice cream scoop by combining a spherical bowl with a cylindrical handle. Start with a sphere of 30mm radius. To hollow out the bowl, remove a second sphere of 30mm radius shifted 15mm upward along the Z-axis. Attach a handle by creating a cylinder with a 10mm radius and a length of 50mm, positioned so it star...
$fn=30; difference() { union(){ sphere(30); translate([0,0,-5])rotate([0,90,0])cylinder(50,r=10); } translate([0,0,15])sphere(30); } difference(){ hull(){ translate([0,0,-5])rotate([0,90,0])cylinder(50,r=10); translate([100,0,-5])cube([100,30,15],center=true); } translate([0,0,15])sphere(30); }
glb/cad_a41b9925785a.glb
Create a Bag Clip consisting of an inner curved piece. The piece is 120mm long, 9mm wide, and 1.6mm thick. The shape is a curved arc with a constant thickness. The arc's curvature is defined by a radius that results in a length of 120mm along the chord. The ends of the arc are rounded. The overall geometry is a flat, e...
use <write/Write.scad> part = "inside"; _length = 120.0; _width = 9.0; _outsideThickness = 2.0; _insideThickness = 1.6; _hingeGap = 0.05; _labelText = "Hello"; _labelFont = "write/orbitron.dxf"; _labelThickness = -0.2; _labelHeightPercent = 60; _labelDirection = 1; _labelSpace = 1.1; _curvature = 80; _hin...
glb/cad_436dc284061b.glb
Create a Lead Bender tool with a base height of 5mm. The main body is a trapezoidal prism with a length of 56mm, centered on the X-axis. The width of the body tapers from 8mm at the bottom to 20mm at the top. Carve a central longitudinal channel 6mm wide and 3mm deep into the top surface, extending the full length of ...
minDistance = 8; maxDistance = 20; spacing = 4; baseHeight = 5; channelWidth = 6; channelDepth = 3; smallChannelWidth = 1; smallChannelDepth = 1.5; holeSize = 5; holeIndent = 3; spacer = 4; length = (maxDistance-minDistance)*spacing+spacer*2; module MainBody(){ x1 = minDistance/2; x2 = maxDistance/2; y1 = 0; y2 = ...
glb/cad_543520719173.glb
Create a Platform Collision Saver and E-STOP case consisting of two identical hemispherical shells. For each shell, start with a sphere of radius 16.25mm. Hollow out the center by removing a smaller concentric sphere with a radius of 12.75mm. To create the opening for the internal components, remove a central cube wi...
switch_d = 12; switch_r = switch_d/2; switch_shaft_d = 7.25; switch_shaft_r = switch_shaft_d/2; switch_len = 25; pins_len = 11; pins_w = 5.5; wood_w = 7.5; clip_w = 15; total_d = switch_len + clip_w; total_r = total_d / 2; clip_offset = total_r; echo(str("TOTAL DIAMETER: " , total_d)); sphere_w = 3.5; bridge_hel...
glb/cad_afe09ea86b5c.glb