Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a jig for a 2-in-1 puzzle by starting with a rectangular block that is 48mm wide, 42mm deep, and 6mm high. From this base, remove a rectangular section from the front left side that measures 12.1mm wide and 6mm high, centered vertically. Then, carve out four cylindrical holes, each with a radius of 6.05mm and a ...
myd = 12.0; myr = 0.5*myd; offset = 0.05; myh = 0.5*myd; difference() { translate(v=[0.5*10*myr,0.5*7*myr,0]) scale(v=[8.0,7.0,myh/myr]) cube(size=myr, center=true); translate(v=[2.*myr,2.*myr,0]) ahole(); translate(v=[5.*myr,2.*myr,0]) ahole(); translate(v=[4.*myr,5.*myr,0]) ahole(); translate(v=[...
glb/cad_19fe17ffbf02.glb
Create a Toilet Paper Roll Extender consisting of a hollow sleeve and an offset peg. Start by creating a large thin disc with a diameter of 60mm and a thickness of 5mm. Centered on this disc, add a hollow cylinder with an outer diameter of 28mm and a total height of 35mm. This cylinder must have a concentric hole runni...
endaperture = 15.2; enddiscdiam = 60; endthick = 5; rodend = 23.3; sleevelen = 30; sleevediam = 28; armlength = 22; pegdiam = 7.5; peglen = 8; pegdiscdiam = 20; $fn = 80; union () { difference () { union () { cylinder (endthick, d=enddiscdiam); cylinder (sleevelen+endthick, ...
glb/cad_c4837f1c5bb6.glb
Create an LED strip holder consisting of a rectangular base plate and two side walls. The base plate should be 35mm wide, 60mm long, and 3mm thick, with all four corners rounded to a 4mm radius. At each of the four corners of the base plate, center a mounting hole 4mm from the edges. Each hole must have a 3.2mm diame...
base_width = 35; base_length = 60; base_height = 3; wall_height = 2; wall_thickness = 3; hole_diameter = 3.2; hole_offset = 4; countersink_dia = 8; countersink_depth = 2.7; channel_width = 12; channel_depth = 2; wall_angle = 50; wall_angle_inside = -30; top_corner_radius = .4; corner_radius = 4; module rounded_rect...
glb/cad_156ad7c92932.glb
Create a Kumihimo braiding disk by starting with a regular octagonal prism that has a diameter of 80mm and a height of 5mm. In the center of this octagon, place a vertical cylindrical hole with a diameter of 8mm that passes completely through the shape. To create the slots for the threads, carve eight identical notches...
epsilon=0.1; height=5; diameter=80; hole_diameter=8; cut_inner_radius=20; cut_width=2; module cuts() { linear_extrude(height=height+2*epsilon) polygon([ [cut_inner_radius,0], [diameter/2,cut_width/2], [diameter/2,-cut_width/2] ]); translate([84,0,0]) ...
glb/cad_104d56342ef3.glb
Create a configurable battery holder as a rectangular block with rounded corners. The block should have a total height of 17mm (15mm depth plus 2mm bottom padding). For a 2x2 configuration of AA batteries, the overall dimensions are determined by a battery diameter of 14.5mm and a padding of 4mm between holes and borde...
type = 14.5; rows = 2; columns = 2; bottomPadding = 2; padding = 4; depth = 15; tolerance = 0.2; leftProtrudingPuzzle = false; rightProtrudingPuzzle = false; topProtrudingPuzzle = false; bottomProtrudingPuzzle = false; leftInsetPuzzle = false; rightInsetPuzzle = false; topInsetPuzzle = false; bottomInsetP...
glb/cad_c86eba887406.glb
Create a Horizontal Test Tube Holder Box consisting of a base and a lid. For the base, create a rectangular floor with a material thickness of 3mm. Build walls around the perimeter with a height of 16mm (calculated as 3mm thickness * 3 + 17mm tube diameter). The interior should accommodate 3 test tubes, each with a d...
Part = 0; Material_Thickness = 3; Test_Tube_Diameter = 17; Test_Tube_Length = 151; Test_Tubes = 3; Test_Tube_Gap = 5; Rests = 3; Lid_Gap = 1; Lid_Height_Percent = 25; Show_Test_Tubes = 1; Lift_Lid_Percent = 0; module testTubeHolderBox() { $fn = 60; module lid() { linear_extrude(height = Material_Thi...
glb/cad_da6bc0d7326b.glb
Create a Handle with Magnet by constructing a rotationally symmetrical object around a central Z-axis. Start by creating a profile that is revolved 360 degrees. This profile consists of a central stem and a wider top grip. The stem has a material thickness of 5.75mm and a height of 10mm. Above the stem, add a grip sect...
Magnet_Hole_Shape = 1; Magnet_Hole_Width = 10.1; Magnet_Hole_Length = 10.1; Magnet_Hole_Diameter = 10.1; Magnet_Hole_Height = 5.1; Stem_Material_Thickness = 5.75; Stem_Height = 10; Handle_Grip_Width = 8; Handle_Height = 10; Square_Handle = 0; Base_Enabled = 0; Base_Lip_Width = 8; Base_Lip_Height = 10; Beve...
glb/cad_7e0883f779a3.glb
Create a Bunny Easter Egg Holder with a material thickness of 15mm and rounded edges of 5mm. The main body is a hollowed-out egg shape with an internal hole 36mm wide and 51mm high. Position a circular head with a diameter of 60mm at the top of the body. Attached to the head, add two ears, each 25mm wide and 60mm hig...
Part = 1; Material_Thickness = 15; Rounding = 5; Egg_Hole_Height = 51; Egg_Hole_Width = 36; Ears_Width = 25; Ears_Height = 60; Ears_Placement_Percent = 30; Left_Ear_Head_Angle = 25; Left_Ear_Rotate_Angle = 0; Left_Ear_Bend_Angle = 0; Right_Ear_Head_Angle = 25; Right_Ear_Rotate_Angle = 0; Right_Ear_Bend_Ang...
glb/cad_dbcff6102087.glb
Create a Customizable Drawer System consisting of a drawer and a chest. For the drawer, create a rectangular box with a material thickness of 1.2mm, an outer width of 80mm, height of 30mm, and depth of 100mm. Divide the interior into a grid of sections (2 across and 3 deep) using walls of the same 1.2mm thickness. Th...
Part = 1; Material_Thickness = 1.2; Drawer_Width = 80; Drawer_Height = 30; Drawer_Depth = 100; Drawer_Sections_Across = 2; Drawer_Sections_Deep = 3; Drawer_Section_Wall_Height_Percent = 70; Handle_Width_Percent = 60; Handle_Height_Percent = 30; Section_Wall_Cutout = 1; Drawers_Across = 2; Drawers_High = 5; ...
glb/cad_5f7f661571e9.glb
Create a Corner Shelf consisting of a curved horizontal platform and a supporting wall bracket. First, create the shelf as a sector of a hollow cylinder with a radius of 150mm, an arc angle of 90 degrees, and a thickness of 10mm. Apply a bevel to the outer edge of the shelf with a radius equal to 50% of the shelf's t...
Shelf_Radius = 150; Shelf_Angle = 90; Shelf_Thickness = 10; Bevel_Percentage = 50; Bracket_Thickness = 5; Arms = 1; Arm_Length_Percentage = 80; Screw_Holes_Per_Bracket = 2; Screw_Hole_Shift_Percent = 20; Screw_Hole_Padding = 4; Screw_Hole_Diameter = 4; Screw_Head_Diameter = 8; Screw_Head_Countersink_Angle =...
glb/cad_48603ad8eaab.glb
Create a cartoon-style gemstone consisting of three stacked sections: a bottom cone, a middle prism, and a top cone. The overall widest point of the gem has a diameter of 30mm and the geometry is based on a 6-sided polygon. First, create the bottom section as a 6-sided cone with a base diameter of 30mm that tapers to ...
Diameter = 30; Sides = 6; Bottom_Height = 30; Bottom_Cutoff_Percent = 0; Middle_Height = 0; Top_Height = 15; Top_Cutoff_Percent = 50; Orientation = 1; Show_Uncut_Ends = 0; module GemGenerator() { radius = Diameter / 2; apothem = radius * cos(180 / Sides); if(Orientation == 0) { translate([0, 0, (Bot...
glb/cad_3bb1d0713a8e.glb
Create an Arduino Nano NeoPixel Ring Base consisting of three main components: a base, an insert, and an optional diffuser. For the base, create a cylinder with a diameter of 69.5mm (63.5mm opening plus 3mm material thickness on each side) and a height of 11mm. Subtract a rectangular central cavity measuring 46mm by 1...
Part = "base"; Material_Thickness = 3; Opening_Diameter = 63.5; Opening_Depth = 3; Arduino_Nano_Padding = 0.5; Hollow = 0; Insert_Padding = 0.5; NeoPixel = 12; NeoPixel_Wire_Hole_Diameter = 3; NeoPixel_Outer_Padding = 0.5; Diffuser_Padding = 0.5; Diffuser_Thickness = 1; module neoPixelRingBase() { $fn = 2...
glb/cad_f661213826fa.glb
Create a Crystal Generator model consisting of three hexagonal crystal shards emerging from a shared circular base. Each shard is a six-sided prism with a pointed conical top. The shards vary in length (between 50mm and 200mm), diameter (between 5mm and 50mm), and tilt (up to 45 degrees). Position the shards around t...
Randomness = 0; Seed = 0; Number_of_Shards = 3; Shard_Sides = 6; Shard_Length = 100; Shard_Diameter = 25; Shard_Tilt = 20; Shard_Offset = 10; Shard_Length_Variance_Percentage = 50; Shard_Diameter_Variance_Percentage = 20; Shard_Tilt_Variance_Percentage = 20; Shard_Offset_Variance_Percentage = 20; Shard_Spac...
glb/cad_f531f8f83854.glb
Create a pen holder fridge magnet by starting with a cylindrical base that has a diameter of 18mm and a total height of 72mm. From this base, remove a central cylindrical core with a diameter of 14mm and a length of 70mm to create the pen hole. To allow a pen to be inserted, create a front cutout by removing a section ...
Material_Thickness = 2; Pen_Hole_Diameter = 14; Pen_Hole_Depth = 70; Magnet_Hole_Diameter = 8.5; Magnet_Hole_Depth = 2.5; module penHolder() { $fn = 100; penHoleDiameter = max(Pen_Hole_Diameter, Magnet_Hole_Diameter); cutOutDepth = penHoleDiameter + Material_Thickness; penHoleDepth = max(Pen_Hole_Depth, (...
glb/cad_b8f2a2a27bb4.glb
Create a customizable wall hook with a material thickness of 3mm. The main feature is a semi-circular hook with an inside diameter of 20mm and a width of 15mm. The hook's profile is a half-ring that extends from a flat back panel. The back panel is a rectangular support structure that houses a screw hole. Create a cen...
Material_Thickness = 3; Corner_Radius_Percentage = 50; Hook_Inside_Diameter = 20; Hook_Width = 15; Hook_Lip_Shape = 0; Screw_Hole_Diameter = 4; Screw_Head_Diameter = 8; Screw_Head_Countersink_Angle = 90; module hook() { screwDiameter = max(Screw_Hole_Diameter, Screw_Head_Diameter); hookWidth = max(Hook_Wid...
glb/cad_a3355e4d648b.glb
Create a Shower Shaver Holder consisting of a central mounting ring and integrated hooks. Start by creating a circular ring with a material thickness of 3mm and a height of 10mm. The ring should have an inner diameter of 21mm, but it is not a full circle; leave a gap of 100 degrees to allow it to snap onto a pole. A...
Material_Thickness = 3; Material_Height = 10; Pole_Diameter = 21; Pole_Gap_Angle = 100; Hook_Gap = 13.5; Curved_Hook_Gap = 1; Hook_Straight_length = 0; Hook_End_Curve_Radius = 25; Hook_End_Curve_Angle = 25; Dual_Hooks = 0; Dual_Hooks_Offset_Angle = 160; module showerShaverHolder() { $fn = 60; hookEndCurv...
glb/cad_4d928bc3efa4.glb
Create a general purpose handle grip. Start with a central cylindrical core that is 100mm long with a diameter of 16mm (calculated from a 5mm material thickness and a 6.2mm internal hole). Around this core, add a symmetric bulge that extends 80% of the core's length, increasing the diameter by 3mm on each side at its...
Handle_Core_Length = 100; Handle_Core_Thickness = 5; Hole_Diameter = 6.2; Hole_Depth_Percent = 80; Bulge_Length_Percent = 80; Bulge_Width = 3; Cap_Bevel_Radius = 1; Cap_Middle_Extrusion = 5; module handle() { $fn = 80; handleCoreWidth = (Handle_Core_Thickness * 2) + max(Hole_Diameter, 0); bulgeLength = H...
glb/cad_08d3cc18d75f.glb
Create a Quick Draw Card Dispenser designed to hold playing cards of 58mm width and 88mm height. The main body is a tray with a base plate and walls of 3mm thickness. The base plate is a rectangle of 61mm by 91mm (including wall thickness) with a semi-circular thumb hole of 30mm radius removed from the front edge to al...
Playing_Card_Width = 58; Playing_Card_Height = 88; Deck_Height = 20; Number_of_Decks = 1; Tilt_X_Angle = 5; Tilt_Y_Angle = 5; Material_Thickness = 3; Thumb_Hole_Radius = 30; Top_Cover = false; Left_Handed = false; module cardHolder() { $fn = 100; playingCardWidth = min(Playing_Card_Width, Playing_Card_He...
glb/cad_c769d1daacff.glb
Create a Sidewinder X1 FFC Riser with a base material thickness of 3mm. The model consists of a screw plate and a PCB mount connected by solid arms. First, create a screw plate featuring two elongated slots for M3 screws. The slots are 3.5mm wide and 5mm long, spaced 31mm apart. Construct a PCB mount designed for a P...
Material_Thickness = 3; PCB_Mount_Horizonatal_Offset = 12; PCB_Mount_Vertical_Offset = 25; PCB_Facing_Screws = true; Flip_Screw_Plate_Side = false; Parallel_PCB_Mount = true; Solid_Arm = true; Rotate_For_Printing = false; Inner_Cable_Slot = true; Outer_Cable_Slot = true; Inner_Cable_Slot_Offset = 8; Outer_Ca...
glb/cad_70bc2f75ab31.glb
Create an Acrylic Window Grip with a total length of 200mm and a material thickness of 3mm. The main body is a base plate with a width of 15.05mm (calculated as a 12mm screw plate width plus a 3.05mm acrylic thickness). On top of this base, construct a C-shaped channel to hold the acrylic. This channel consists of tw...
length = 200; materialThickness = 3; acrylicThickness = 3.05; gripType = "double"; gripDepth = 5; leftEndTaperAngle = 0; rightEndTaperAngle = 0; numberOfScrewHoles = 3; screwHoleDiameter = 4; screwHeadDiameter = 8; countersinkScrews = 1; countersinkAngle = 90; counterboreDepth = 0; screwPlateWidth = 12; b...
glb/cad_2ad14cdcf3e1.glb
Create a hopper extender consisting of two concentric cylindrical sections. Start by creating a base ring with an outer diameter of 71.5mm and an inner diameter of 69.5mm, extruded to a height of 15mm. On top of this base, add a second, taller cylindrical shell with an outer diameter of 73.5mm and an inner diameter of ...
$extend_height = 100; $fn=200; linear_extrude(15) difference(){ circle(143/2); circle(139/2); } translate([0,0,15]) difference(){ cylinder(8,143/2,147/2); cylinder(8,138/2,143/2); } translate([0,0,23]) linear_extrude($extend_height) difference(){ circle(147/2); circle(143/2); }
glb/cad_a7fe23f52376.glb
Create a set of six unique 3-splatt puzzle models. Each 3-splatt is composed of three identical truncated octahedra, where each individual truncated octahedron is defined by the intersection of a regular octahedron and a cube such that all resulting edges are of equal length. For the overall scale of the models, set th...
size = 40; model = "All"; centres = [ [ [ 0, 0, 0], [ 4, 0, 0], [ 8, 0, 0] ], [ [ 0, 0, 0], [ 2, 2, 2], [-2, 2, 2] ], [ [ 0, 0, 0], [ 2, 2, 2], [ 4, 4, 4] ], [ [ 0, 0, 0], [ 4, 0, ...
glb/cad_7031cdcaece0.glb
Create a card tray insert with a total height of 43mm and a width of 61.2mm (based on a 58mm card width plus 1.6mm walls on each side). The main body is a rectangular container with rounded corners and a radius of 1mm. The interior is divided into three card slots with widths of 25mm, 25mm, and 25mm respectively. To ...
CardWidth = 58; CardHeight = 88; BoxHeight = 43; Slots = [25,25,25]; Rows = 1; SlantFront = true; Removal = 0.4; AccessDepth = 0.4; gWT = 1.6; $fn = 20; function SumList(list, start, end) = (start == end) ? list[start] : list[start] + SumList(list, start+1, end); module RCube(x,y,z,ipR=4) { translate([-x/...
glb/cad_4634a594cd9b.glb
Create a Track Wall Hook with a total width of 15mm. Start with a main vertical base body that is 4mm thick and 67.01mm high. At the top of this base, add a top attachment consisting of a rectangular block 10.5mm deep and 3mm thick. The front face of this attachment should be curved with a 90-degree arc, and the back...
hook_tickness = 4.0; hook_width = 15.0; base_height = 67.01; top_hook_depth = 10.5; top_hook_height = 17.5; top_hook_tickness = 3.0; top_hook_bottom_angle = 90; top_hook_back_angle = 90; bottom_hook = true; bottom_hook_tickness = 2.0; bottom_hook_depth = 9.0; bottom_hook_pull_tab = true; accessory_type = "None...
glb/cad_e00a2b6d7d3e.glb
Create a Fan Grinder tool consisting of two matching clamp halves and a separate assembly ring. For each clamp half, start with a semi-cylindrical base with an outer diameter of 26mm and a height of 5mm. Bore a central vertical hole with a diameter of 3.4mm through the center. Along the outer perimeter, create 6 equi...
Outer_Diameter = 26; Inner_Diameter = 3.4; Height = 5; Radius = 1; Count = 6; Paper_Space=0.5; Pitch=10; Offset=2; Display = "All"; Export="False"; $fn=90; D=Outer_Diameter; R=D/2; d=Inner_Diameter; r=d/2; h=Height; tr=Radius-0.01; vr = tr<(h/2) ? tr : h/2-0.01; AbsatzSchleifSpalt=Offset; p= 0.5 * (Paper_S...
glb/cad_807e8b55788d.glb
Create a pinhole lens for a Sony E-mount camera consisting of a main body, an inside cone, and an outside cone. For the main body, create a cylinder with a height of 50mm and a diameter of 43.6mm. Hollow out the center with a cylinder of 40.2mm diameter. At the base, add a flange with an outer diameter of 43.6mm and ...
show="main_body"; f=50; sun_protector_length=40; module empty(){} r_sh = 32; r_mh = 128; module sonyE(h_in) { h=h_in-17-5; rec = [[-23,-4.1], [-23,-3.7], [-17.5,-3.7], [-17.5,-4.8], [-22.4,-4.8]]; r_inside=20.3; r_outside=21.8; r_r=1.2; difference() { union() { ...
glb/cad_3dc2f581d4ba.glb
Create a Clip-on Towel Hanger consisting of two main components: a securing clip and a threaded nut. First, construct the clip as a ring with an inner diameter of 28mm, a height of 5mm, and a wall thickness of 2.5mm. On one side of the ring, integrate a square protruding tab measuring 7.5mm by 7.5mm. On the opposite ...
include <BOSL2/std.scad> include <BOSL2/threading.scad> ring_height = 5; ring_wall = 2.5; ring_inner_d = 28; clip_inner=5; clip_wall=2.5; split_gap=1; thread_d=8; thread_l=5; thread_pitch=1.5; $fa=1; $fs=1; translate([0, 0, ring_height/2]) difference() { union() { cylinder(h=ring_height, d=ring_inner_d...
glb/cad_3d53c7a490e0.glb
Create a Clip-on Towel Hanger consisting of a flat rectangular rack and two matching clips. For the rack, create a rectangular plate 200mm wide, 120mm high, and 5mm thick with slightly rounded corners. Cut a central rectangular hole through the plate that is 190mm wide and 110mm high. Within the remaining border of the...
include <BOSL2/std.scad> width=5-0.25; rack_width=200; rack_height=120; pin_length=5; $fa=1; $fs=1; linear_extrude(height=width) union() { difference() { rect([rack_width, rack_height], rounding=1) { position(LEFT) #rect([width, pin_length+rack_height/2], anchor=FRONT+LEFT, r...
glb/cad_cfac7435204f.glb
Create a battery tray for a radio go box. Start with a rectangular base plate measuring 170mm by 142mm with a height of 7mm. Round the four corners of this plate with a radius of 7mm. In the center of the plate, carve out a rectangular cavity measuring 134mm by 101mm with a depth of 40mm, leaving a wall around the pe...
battery_x=151; battery_y=64; battery_z=95; batbay_bottom(109); module batbay_bottom(x_offset=0, y_offset=0) { x=170; y=142; r=7; battery_x=134; battery_y=101; color("olive") translate([x_offset, y_offset, 0]) difference() { union() { hull() { translate([r,r,0]) cylinder(r=r, h=7); ...
glb/cad_c07d5517e11f.glb
Create a Customizable Coin Holder designed to secure a coin with a diameter of 50mm and a thickness of 5mm. The main body consists of a circular ring with an inner opening diameter of 25mm and a wall thickness of 1.6mm. From this central ring, extend three identical mounting arms spaced 120 degrees apart. Each arm be...
Coin_Diameter = 50.001; Coin_Thickness = 5.001; Generate_Coin = true; Wall_Thickness = 1.601; Arm_Width = 4.801; Finger_Length = 3.001; Finger_Angle = 30.001; Mount_Arm_Length = 5.001; Mount_Hole_Diameter = 2.001; Fit_Spacing = 0.201; module GenerateHolder() { difference() { union() { ...
glb/cad_fbfd0c441625.glb
Create a sink strainer with a conical body and an integrated handle. The main body is a hollow truncated cone with a height of 35mm, a top outer diameter of 80.5mm, and a bottom outer diameter of 75mm. The walls of this cone should have a uniform thickness of 1.6mm. Inside the hollow center, construct a drainage grid ...
Top_Outer_Diameter = 80.501; Bottom_Outer_Diameter = 75.001; Height = 35.001; Grid_Density = 50; Radial_Grid_Lines = 8; Generate_Handle = true; Wall_Thickness = 1.601; Preview_Quality_Value = 32; Render_Quality_Value = 128; Top_Inner_Diameter = max(0, Top_Outer_Diameter - Wall_Thickness*2); Bottom_Inner_Diamet...
glb/cad_e0b7d7a32430.glb
Create a small battery storage set consisting of a rack and a sheath. First, construct the rack. For a single column of 10 CR2032 batteries, create a rectangular block with a total height of 32mm (10 batteries at 3.2mm each), a width of 22mm, and a depth of 10mm. Hollow out the center by removing a cylinder with a di...
bump = 1.0; $fn=60; diam = 20; hite = 3.2; cols = 1; rows = 10; wall = 1; clir = 0.1; long = 2*wall+rows*(hite+wall+clir)-wall; wide = wall+cols*(wall+diam); tall = diam+2*clir; difference(){ cube([tall+2*(wall+clir),wide+2*(wall+clir),long+wall]); translate([wall,wall,wall])cube([tall,wide+2*clir,long]); tra...
glb/cad_ce07982b9446.glb
Create a parametric wrap plant label tag with a thickness of 1mm. The main body is a flat strip with a width of 12mm and rounded corners with a radius of 3mm. The length of the strip is determined by the text it contains, adding 1mm of padding on both the left and right sides of the text. At one end of the tag, create...
strings = [ ["SAMPLE TEXT"], ["SAMPLE", "TEXT"], ["TEXT", "SAMPLE"] ]; text_font = "helvetica:style=Bold"; font_size = 9; text_height = -0.4; text_x_padding = 1; text_y_offset = 0; loop_dia = 8; tag_width = 12; corner_rad = 3; tag_thick = 1; slot_clearance ...
glb/cad_6ed9a01d4e3a.glb
Create an Underwater Camera Mount consisting of a central cradle and two mounting tabs. First, construct the main cradle body. Create a hollowed-out rectangular extrusion with a height of 30mm. The outer profile is a block 30mm wide and 40mm deep, with the corners rounded. The interior is hollowed out by removing a s...
resolution = 100; $fn = resolution; module rounded_plate(w, h, t, dt, db) { translate([0, db/2, 0]) cube([w, h-((dt+db)/2), t]); translate([db/2, 0, 0]) cube([w-db, db/2, t]); intersection() { union() { translate([db/2, db/2, 0]) cylinder(h=t, d=db); t...
glb/cad_32a2fce56e3b.glb
Create a tube holder clip by extruding a specific profile to a total width of 20mm, centered on the origin. The profile begins with a semi-circular cutout for an 18mm diameter tube, with walls 2mm thick. Attached to this circular section is a rectangular clipping mechanism with a total height of 21.5mm and a depth of 3...
th = 2; tube = 18; width = 20; clipheight = 21.5; clipdep = 32; snap = (clipheight-th)/2; $fa=1; $fs=0.2; linear_extrude(width, center=true) { polygon([ [tube/2 , clipheight/2+th ], [tube/2 ,-clipheight/2-th ], [tube/2+clipdep+2*th,-clipheight/2-th ], [t...
glb/cad_d417e28cd516.glb
Create a Drill Bit Holder by starting with a rectangular base block measuring 15mm wide, 40mm long, and 2mm thick. From this base, remove a series of vertical cylindrical holes of varying diameters to create storage slots. Position three holes with a diameter of 1.3mm at coordinates (2.5, 3), (7.5, 3), and (12.5, 3)....
$fs = 0.25; $fa = 0.5; module loecher () { difference() { union() { cube([15,40,2]); } translate([2.5,3,0]) cylinder(h = 5, r = 1.3/2, center = true); translate([7.5,3,0]) cylinder(h = 5, r = 1.3/2, center = true); translate([12.5,3,0]) cylinder(h = 5, r = 1.3/2, center = tru...
glb/cad_6369ba5694e3.glb
Create a cable management clip consisting of a primary ring and several supporting rectangular bars. Start by constructing a hollow cylinder with an inner diameter of 44mm, an outer diameter of 50mm, and a height of 5mm. Remove a 90-degree segment from this ring to create a C-shaped opening. Within the center of this r...
$fa = 1; $fs = 0.1; module ring(d1, d2, h) { difference() { cylinder(h = h, r = d2/2, center = true); cylinder(h = h+1, r = d1/2, center = true); } } module segment(r, h, a) { translate([0,0,-h/2]) rotate_extrude(angle = a) square([r,h], center = false); } rotate([0,0,45]) union() { differenc...
glb/cad_13fcb25f0899.glb
Create a Cotton Reel Tank toy consisting of a main bobbin body and a separate washer. Construct the bobbin as a cylinder 45mm tall with a diameter of 30mm. Add a 5mm thick rim to the top and bottom faces, where the rim's outer diameter is 35mm. Bore a 10mm diameter hole through the center of the entire length. Around...
l = 45; d = 30; od = 35; rim = 5; bore = 10; eps = 1e-4; module bumper() { difference() { translate([0, 0, -1])rotate_extrude($fn=64)translate([0, 1])union() { square([(od - rim/2) / 2, rim]); translate([(od - rim/2) / 2, rim / 2])circle(d = rim,$fn=64); } for (i=[0:...
glb/cad_b69988a37e71.glb
Create a video call etiquette sign based on a speech bubble shape. Start by creating a base layer in the form of a right-pointing speech bubble with a size of 60mm, extruded to a height of 1.5mm. On top of this base, add a second layer with a height of 2.1mm that consists of two parts: a raised outline of the same spee...
$fn=64; module bubble(s) { translate([-1.433 * s / 30, -2.437 * s / 30])text("🗩" , size=s, font="Segoe UI Symbol:style=Regular", halign="center", valign="center"); } module base() { offset(delta=1)bubble(60); } module raised() { difference() { base(); offset(delta=-2)base(); } ...
glb/cad_ae80ce82425f.glb
Create a Bare 1602 LCD Stand designed to hold a circuit board. The overall outer dimensions of the stand are 80mm wide, 36mm deep, and 12mm high. The main body is a hollowed-out rectangular frame with a base and a rear support. The base is a flat plate with rounded corners of 1mm radius. The rear support frame has a ...
bbox = [ 80, 36, 12 ]; thick = 3; pcb_thick = 2; angle = 60; corner = 1; module rc(r) { offset(r = r)offset(delta = -r)children(); } module pcb() { translate([pcb_thick * cos(angle) - bbox.z, 3 * bbox.z / 4])rotate(90-angle)square([pcb_thick, bbox.z], center=true); } module xz_plane() { translate([bbox...
glb/cad_69da7b423c9c.glb
Create a set of labels and dividers for a small-parts drawer. First, create a front group label consisting of a rectangular plate 37mm wide, 31mm high, and 0.8mm thick. On this plate, extrude text 1.6mm high. The text should be arranged in four lines: "OP AMPs" on the 6th line from the bottom, " 74C925" on the 5th, " 4...
translate([0,80,0]){ color("black")cube([37,31,0.8]); label("OP AMPS",6); label(" 74C925",5); label(" 4K RAM",4); label(" 8.BUFF",3); } body_div(0,0,"LM324",7," 4xOpAmp"); body_div(55,0,"MC1458",7," 2xOpAmp"); body_div(110,0,"LM358",9,"2xOpAmp"); body_div(0,40,"74C925",7,"4DIG CNTR"); body_div(55,40,"MCM211...
glb/cad_2bc5743f8355.glb
Create a replacement small-parts drawer with an overall footprint of 137mm in length, 49.5mm in width, and 35mm in height. The main body is a hollow rectangular bin with walls and a floor that are 2mm thick, though the floor is elevated 1mm from the bottom of the walls. The four vertical corners are rounded with a 5mm ...
$fn=60; wide = 49.5; long = 137; tall = 35; difference(){ union(){ body(5,0); translate([long+8,wide/2,0]) scale([1,2,1])cylinder(d=22,h=2); } body(2,1); } slot(long/2,wide); slot(long/2,-1); slot(long/3,wide); slot(long/3,-1); slot(2*long/3,wide); slot(2*long/3,-1); slot(long/6,wide); slot(long...
glb/cad_8571a57d2f33.glb
Create a battery storage box and lid consisting of two main parts. First, construct the box as a rectangular block with rounded corners of 5mm radius, measuring 32mm in height. The outer dimensions are determined by a layout of battery slots: 3 rows of 8 AA batteries (each slot 15mm wide) and 2 rows of 10 AAA batteri...
AABattRows = 3; AABattsPerRow = 8; AAABattRows = 2; AAABattsPerRow = 10; BorderWidth = 4; Gap = 5; CornerRadius = 5; InsertHeight = 32; LidHeight = 28; LidThickness = 1; LidPlay = 0.3; PrintLid = true; PrintBox = true; $fn = 50; InsertWidth = max(AABattsPerRow*(Gap+15), AAABattsPerRow*(Gap+11)) + BorderWidth*2...
glb/cad_b411cbcc5c41.glb
Create a shim for a microscope lens by constructing two concentric cylindrical shells. First, create a tall inner ring with an outer diameter of 41.1mm and an inner diameter of 39.4mm, extending to a total height of 22.45mm. Around the base of this inner ring, add a shorter, wider outer collar with an outer diameter of...
$fn = 64; eps = 1e-4; slop= 0.4; collar_inner = 41.5; collar_outer = 50.0; collar_depth = 18.2; collar_screw = 6.0; lens_outer = 39.0; collar_thick = (collar_outer - collar_inner) / 2; extra_height = collar_thick; difference() { union() { linear_extrude(extra_height + collar_depth)difference() { ...
glb/cad_fa9b1948eaad.glb
Create an angled spacer for a micro:bit buggy. Start with a base rectangular block that is 51.6mm wide, 6mm deep, and 6.35mm thick. The block should be modified so that the top surface is not parallel to the bottom; instead, it should be angled upwards by approximately 3.58 degrees along its length to provide extra cle...
bit_width = 51.6; spacing = [0, 10.16, 21.59, 33.02, 43.18]; spacer_thick = 25.4 / 8; spacer_width = 6; hole_dia = 3.5; $fn = 64; extra = 2; bit_part_height = 32; angle = atan2(extra, bit_part_height); difference() { linear_extrude(2*spacer_thick)difference() { hull() { translate([-(bit_wid...
glb/cad_4d6e8d6ecdf3.glb
Create a Logi C270 Privacy Cover, which is a thin, slip-over cap designed to fit over a webcam. Start by creating a hollow, rounded rectangular shell with a wall thickness of 2mm. The outer dimensions of the profile are approximately 70.3mm in width and 31.25mm in height. The shell should have a slight internal taper...
bbox = [ 70.299988, 31.250000]; minima = [ 10.000000, 10.000000]; thick = 2; taper = [1.249, 7.0]; eps = 1e-4; $fn = 64; module profile() { translate(-bbox/2)translate(-minima)polygon([ [41.225,10.025], [40.475,10.050], [39.750,10.075], [39.025,10.100], [38.275,10.125], ...
glb/cad_08d1c701b7d2.glb
Create a stand for a 2004 LCD display. The main body is a rectangular frame with an overall bounding box of 100mm in length, 42mm in width, and 12mm in height. The frame features a central rectangular cutout that is 66.6mm long and 25.2mm wide, leaving a wall thickness of 3mm around the perimeter. The stand is designe...
bbox = [ 100, 42, 12 ]; thick = 3; pcb_thick = 2; angle = 60; corner = 1; eps = 1e-3; module rc(r) { offset(r = r)offset(delta = -r)children(); } module pcb() { translate([pcb_thick * cos(angle) - bbox.z, 3 * bbox.z / 4])rotate(90-angle)square([pcb_thick, bbox.z], center=true); } module xz_plane() { t...
glb/cad_d9338557de06.glb
Create a Bare 2004 LCD Stand by constructing a base frame with an overall bounding box of 100mm in length, 36mm in width, and 12mm in height. The main body is a hollowed rectangular shell with a wall thickness of 3mm. The stand features a central rectangular cutout designed to hold a PCB. This opening is centered wit...
bbox = [ 100, 36, 12 ]; thick = 3; pcb_thick = 2; angle = 60; corner = 1; module rc(r) { offset(r = r)offset(delta = -r)children(); } module pcb() { translate([pcb_thick * cos(angle) - bbox.z, 3 * bbox.z / 4])rotate(90-angle)square([pcb_thick, bbox.z], center=true); } module xz_plane() { translate([bbo...
glb/cad_89a7e017da71.glb
Create a Rusty Compass beam by starting with a base plate 5mm thick. The main body is a hull formed between a circle with a diameter of 8.5mm and another circle of the same diameter centered 50mm away along the x-axis. Subtract a vertical hole with a diameter of 1mm from the first circle's center. At the second circl...
$fn = 64; beam = 50; leaddia = 2; pinhead = 8.5; pindia = 1; depth = 5; m3head = 6; m3dia = 3.3; epsilon = 1e-3; extra = 0.4; difference() { linear_extrude(height=depth)difference() { union() { hull() { circle(d=pinhead); translate([...
glb/cad_147b9cffe303.glb
Create a PCB standoff consisting of a cylindrical base and a tapered upper peg. Start by creating a wide cylindrical base with a diameter of 12mm and a height of 5mm. Centered on top of this base, add a second cylinder with a diameter of 2.8mm that extends upward to a total height of 8mm from the bottom of the model. F...
$fn=64; difference() { union() { cylinder(d=12,h=5); cylinder(d=2.8,h=8); translate([0,0,7])intersection() { cylinder(d1=3.5,d2=2,h=6); cube([2.8,10,20], center=true); } } translate([0,0,6+20/2])cube([20,0.6,20], center=true); }
glb/cad_b0fbab710d79.glb
Create a giant paperclip model using a wire profile with a diameter of 0.889 mm (scaled up by 8x for the huge variant to approximately 7.112 mm). The structure is formed by a single continuous strand of this circular wire bent into a series of concentric U-shapes. Start with a straight section 12.7 mm long. Bend this ...
in = 25.4; lengths = in * [ 1/2, 3/4, 1]; wire = in * 0.035; eps=1e-3; $fn=32; wide = 5 * in / 16; widths = [ wide - 3 * wire - 2 * eps, wide - 2 * wire - eps, wide - wire]; echo(widths); module wire_profile() { circle(d=wire, $fn=12); } module clip() { union() { rotate([-90,0,0])translate([widths[0]...
glb/cad_4be88900671e.glb
Create a giant paperclip model using a wire profile with a diameter of 0.889 mm and a 12-sided polygonal cross-section. The shape is constructed from a single continuous strand of this wire. Start with a straight segment 12.7 mm long. From one end, create a 180-degree U-turn with an inner width of 7.1375 mm. Follow t...
in = 25.4; lengths = in * [ 1/2, 3/4, 1]; wire = in * 0.035; eps=1e-3; $fn=32; wide = 5 * in / 16; widths = [ wide - 3 * wire - 2 * eps, wide - 2 * wire - eps, wide - wire]; echo(widths); module wire_profile() { circle(d=wire, $fn=12); } module clip() { union() { rotate([-90,0,0])translate([widths[0]...
glb/cad_832ef223d271.glb
Create a micro:bit croc clip keeper. Start with a rectangular base plate measuring 52mm by 42mm with a thickness of 1.6mm. Round all four corners of this plate with a radius of 3mm. Along the length of the plate, create five vertical guard posts. Each post is a rounded protrusion that rises from the base. The posts a...
dimens = [52, 42, 1.6]; corner_r = 3; hole_dia = 4; holes =([ [ 4.5 , 7 ], [ 4.5 + 10 , 7 ], [ 4.5 + 10 + 11.5 , 7 ], [ 4.5 + 10 + 11.5 + 11.5 , 7 ], [ 4.5 + 10 + 11.5 + 11.5 + 10 , 7 ] ]); up=10; $fn=64; eps=1e-3; layer = 0.2; h_over = holes[0].y + (sqrt(3)/2) * hole_dia/2 + 2 * dimens.z + l...
glb/cad_dc6750979d9a.glb
Create a Barely-Good-Enough Feather Plate designed to support an Adafruit Feather board. Start by creating a rectangular base plate with rounded corners, measuring 45.72mm in length and 17.78mm in width, with a thickness of 1.5875mm. At each of the four corners, add a small cylindrical mounting pin with a diameter of...
in = 25.4; inset_board = in * [1.8, 0.7, 1/16 ]; hole_dia = 0.1 * in; usb_conn = [5.875, 8, 3]; dupont = in * [ 0.1, 0.1, 1/3 ]; corner_rad = 0.1 * in / 2; eps=1e-3; $fn=16; module feather_noholes() { translate([-(corner_rad + inset_board.x/2),0,0])union() { linear_extrude(height=inset_board.z)translate([c...
glb/cad_f5ca9718d981.glb
Create a tray for a Canaduino STM32 screw terminal board. The main body is a rectangular block measuring 50.5mm in width, 79mm in length, and 1.6mm in height. Carve a recessed channel into the top surface to hold the board, leaving a 4mm ledge around the perimeter. The walls of this channel should have a slight radius ...
ledge = 4; board = [ 50.5, 79, 1.6 ]; inset = [ board.x - ledge, board.y, 3 ]; eps = 1e-3; noz = 0.4; hole_dia = 4; hole_dist = 72; $fn = 32; module profile() { offset(r=noz)projection(cut=true)rotate([90,0,0])union() { cube(board); translate([ledge / ...
glb/cad_7f2d9cb8f902.glb
Create a tiny speaker horn designed for a 28 mm headphone driver. Start by creating a main cylindrical body with an outer diameter of 28.4 mm and a height of 4 mm. At the base of this cylinder, add a smaller concentric cylindrical section with a diameter of 23.4 mm and a height of 1.5 mm. To form the horn's internal ...
driver_dia=28; driver_thick=4; driver_back_dia=23; driver_back_thick=1.5; iso_thread_dia=36; iso_thread_pitch=4; big=100; eps=1e-2; xtra=0.4; use <threads.scad>; module driver() { translate([0,0,driver_back_thick-eps])union() { cylinder(d=driver_dia+xtra, h=driver_thick); translate([0,0,eps-driver_...
glb/cad_13233e9ffdf4.glb
Create a tiny speaker horn designed for a 28 mm diameter driver. The main body is a conical shell with a wall thickness of 2 mm. The base of the horn is a circle with a 28 mm diameter. From this base, the horn flares outward and upward to a larger opening. The interior of the horn is hollowed out to create a channel f...
driver_dia=28; driver_thick=4; driver_back_dia=23; driver_back_thick=1.5; iso_thread_dia=36; iso_thread_pitch=4; wall=2; big=100; eps=1e-2; xtra=0.4; use <threads.scad>; module driver() { translate([0,0,driver_back_thick-eps])union() { cylinder(d=driver_dia+xtra, h=driver_thick); translate([0,0,eps...
glb/cad_cbe80a65200e.glb
Create a Palm Pen Holder designed to secure a pen for users with limited dexterity. The main body is a strap-like structure with a width of 24mm and a thickness of 5mm. The device is shaped to fit the hand, with a thumb-side thickness of 35mm and a pinkie-side thickness of 26mm, spanning a total hand width of 110mm. T...
hand_width = 110; thumb_thick = 35; pinkie_thick = 26; strap_width = 24; pen_dia = 12.5; engr_text="SCRUSS/MMC-2021"; lefty=false; module naff() { } delta_thick = (thumb_thick - pinkie_thick)/2; axis_width = hand_width - (thumb_thick + pinkie_thick)/2; angle = atan2(delta_thick, axis_width); strap_thick = 5; p...
glb/cad_5842f7aa4707.glb
Create a protective electronics case for a BrainPad Classic board. The main body is a rectangular enclosure with rounded corners, measuring 118.125mm by 64.875mm with a total height of 23mm. The walls are 2mm thick. The interior is hollowed out to create a stash space for a USB cable, leaving a floor thickness of 2mm....
include <nutsnbolts/cyl_head_bolt.scad>; $fn = 64; eps = 1e-3; in = 25.4; board = [ (4 + (3/8)) * in, (2 + (9/32)) * in, in / 16]; holes = [ (4 + (1/16)) * in, (1 + (31/32)) * in]; hole_dia = in / 8; corner_rad = (board.x - holes.x) / 2; extra = in/32; usb = [8, 6, 3]; usb_hang = 1; wall_thick = 2; stash_d...
glb/cad_9716a0efa1d7.glb
Create a Signature Guide tool based on standard credit card dimensions (85.6mm x 53.98mm) with a thickness of 2mm. The main body is a rounded rectangle with corner radii of 3.175mm. Cut five tapered rectangular apertures through the body. Each hole should be straight for the first 1mm of depth and then flare outward t...
in = 25.4; dimen = [(3 + 3/8) * in, (2 + 1/8) * in]; corner_rad = in / 8; inner_rad = corner_rad / 2; thick = 2.0; holes = 5; $fn= 64; thin=1e-3; hole_ll = [ [ 5 , 8 ], [ 48 , 8 ], [ 5 , 24 ], [ 28 , 41 ], [ 60 , 41 ] ]; hole_dimen = [ [ 38 , 11 ], ...
glb/cad_2439b22adf3c.glb
Create a Phone Car Vent Holder to Tripod Mount consisting of two main components: a hollow threaded cap and a matching threaded plug with a ball joint. First, create the cap as a cylinder with a diameter of 30mm and a height of 19mm. Bore a hole through the center containing a female M24 thread with a 3mm pitch and a ...
include <threads.scad>; tdia = 24; tpit = 3; tlen = 3 * tpit; ttol = 1; ball_dia = 16.9; cap_height = 19; cap_dia = 30; shaft_dia = 8.2; shaft_len = 8; eps=1e-3; module tnut() { cylinder(h=1.5, d=19); cylinder(h=9.5, d=9); cylinder(h=15, d=6.5); for (i=[0:3]) { rotate([0, 0, 90*i])transl...
glb/cad_00f025df0a04.glb
Create a CBM Logo PC Case Badge. Start by creating a square base with a width and length of 25mm and a height of 0.9mm. The base should have rounded corners with a radius of 2mm and flare outward slightly. On top of this base, extrude a logo to a total height of 1.5mm. The logo consists of three distinct geometric par...
badge_width = 25; badge_radius = 2; logo_width = badge_width - 2 * badge_radius; layer_height = 0.3; badge_base = 3 * layer_height; badge_thick = 5 * layer_height; $fn = 16; a = logo_width; b = 0.034 * a; c = 0.166 * a; d = 0.300 * a; e = 0.364...
glb/cad_c40aa2ea5fb1.glb
Create a "Futility Biscuit" by starting with a main disc that is 58mm in diameter and 4.5mm thick. The outer edge of this disc should be rounded with a radius of 2.25mm. Engrave a Greek key motif into the top surface of the disc. This pattern consists of 26 repeating segments that oscillate between a radius of 19mm an...
diameter = 58; thickness = 4.5; outer_pattern_diameter = 52; inner_pattern_diameter = 38; outer_holes_diameter = 31; inner_holes_diameter = 17; hole_top_diameter = 1.6; hole_bottom_diameter = 1/4; big_text_height = 6; big_text = "FUTILITY!"; small_tex...
glb/cad_d9d0000f1c5e.glb
Create a Futility Biscuit, a circular disc with a diameter of 58mm and a thickness of 4.5mm. The main body is a rounded cylinder with a profile that mimics a biscuit. Engrave a Greek key motif into the top surface. This pattern consists of 26 repeating segments arranged radially. Each segment transitions between an in...
diameter = 58; thickness = 4.5; outer_pattern_diameter = 52; inner_pattern_diameter = 38; outer_holes_diameter = 31; inner_holes_diameter = 17; hole_top_diameter = 1.6; hole_bottom_diameter = 1/4; big_text_height = 6; big_text = "FUTILITY!"; small_tex...
glb/cad_05879fc62838.glb
Create a Mars Plastic Eraser Holder by constructing a hollow rectangular sleeve with rounded edges. The main body should be a shell designed to fit an eraser of 63mm length, 21mm width, and 11mm height. The walls of the sleeve should be 0.5mm thick. The overall outer dimensions of the wrapper are 22mm wide, 12mm high...
e_length = 63; e_width = 21; e_height = 11; w_thick = 0.5; w_length = 50; w_width = e_width + 2 * w_thick; w_height = e_height + 2 * w_thick; b_height = 10; p_diameter = 9; $fn=32; module eraser() { cube([e_width, e_height, e_length]); } module wrapper() { translate([-w_thick,...
glb/cad_92412d4ec559.glb
Create a kashaka half-shell by generating a hollow, hemispherical dome with a hole at the top. Start with a sphere that has an outer diameter of 48mm and a uniform wall thickness of 1.6mm. The shape is a revolved profile: create a cross-section consisting of two concentric circular arcs and rotate them 360 degrees arou...
diameter = 48; string = 4; wall = 1.6; module naff() { } $fn = 4 * (1 + floor(diameter / 4)); module one_side() { difference() { circle(d = diameter - 4 * wall); translate([2 * wall + (string - diameter) / 2, 0]) { square(diameter, center = true); }...
glb/cad_4d2e5f3a9c7c.glb
Create a 3D model of a through-hole LED. Start by creating a thin cylindrical base flange with a diameter of 5.8mm and a height of 1mm. Centered on top of this flange, place a main cylindrical body with a diameter of 5mm and a total height of 8.7mm. The body should extend from the base, but the top of the cylinder must...
module _thru_hole_led( diameter = 5, height = 8.7, base_diameter = 5.8, flange_height = 1 ) { union() { difference() { cylinder(d = base_diameter, h = flange_height, $fn = 32); translate([diameter, 0, 0])cube(diameter, center = tr...
glb/cad_0c05db17ff7b.glb
Create a Game Go Button by generating a rotationally symmetric object revolved around a central vertical axis. The cross-section of the main body is defined by a shape centered 10.5mm from the axis of rotation. This profile consists of a circle with a 9mm diameter centered at a height of 5mm, combined with a rectangle ...
$fn=64; epsilon=1e-3; module polyhole(h, d) { n = max(round(2 * d),3); rotate([0,0,180]) cylinder(h = h, r = (d / 2) / cos (180 / n), $fn = n); } rotate_extrude()translate([0, 10.5])mirror([0,1])intersection() { union() { translate([0, 5])circle(d=9); translate([0, 5])square([15,...
glb/cad_f956ea1e2b2e.glb
Create a Game Go Button insert by constructing a hollow cylindrical ring. Start with a solid cylinder that has an outer diameter of 32mm and a height of 2mm. Center a vertical hole through the middle of this cylinder with a diameter of 23.6mm. To ensure the inner opening is a precise polygon, define the hole using a 42...
use <threads.scad>; $fn=64; module polyhole(h, d) { n = max(round(2 * d),3); rotate([0,0,180]) cylinder(h = h, r = (d / 2) / cos (180 / n), $fn = n); } module sleeve(in, out) { difference() { cylinder(d=out, h=5); polyhole(5, in); } } module insert() { translate([0,0,10...
glb/cad_2abfd28cd24f.glb
Create a Game Go Button consisting of a thick, hollowed-out cylindrical ring. The main body is a cylinder with an outer diameter of 46mm and a total height of 15.5mm, featuring rounded corners with a 2mm radius. Remove a central core from this body to create a hole. This internal void begins as a cylinder with a diam...
use <threads.scad>; $fn=64; module polyhole(h, d) { n = max(round(2 * d),3); rotate([0,0,180]) cylinder(h = h, r = (d / 2) / cos (180 / n), $fn = n); } module sleeve(in, out) { difference() { cylinder(d=out, h=5); polyhole(5, in); } } module insert() { translate([0,0,10...
glb/cad_23f8df7c242d.glb
Create a solder jig for a 12mm tact button. Start with a solid base block that is 40mm wide, 25mm deep, and 10mm high, with rounded edges. In the center of the block, carve out a rectangular pocket to hold the button base; this pocket should be 12.6mm by 12.6mm with a depth of 3.5mm. Extend two narrow channels, 15mm ...
$fn=32; height=10; slop=0.4; module button_base() { translate([0,0,3.5/2])cube([12.2 + slop, 12.2 + slop, 3.5], center=true); } module leads() { union() { translate([0,2.5,0.5/2])cube([15, 1, 0.5], center=true); translate([0,-2.5,0.5/2])cube([15, 1, 0.5], center=true); } } module neg_but...
glb/cad_5f26d7d87bc6.glb
Create a small vial funnel. Start with a hollow conical body that has a base diameter of approximately 34.64mm and a height of 30mm, tapering upward to a top opening diameter of 9mm. The walls of this cone should be 2mm thick. Centered at the base, create a narrow cylindrical spout extending downwards with an outer dia...
$fn=24; scale([1,1,sqrt(2)/sqrt(3)])difference() { union() { translate([0,0,9.999])difference() { union() { difference() { cylinder(h=30, d1=(30+4)/sin(60), d2=5+4); cylinder(h=30+1, d1=30/sin(60), d2=5); } ...
glb/cad_5d1189d3df33.glb
Create an edge-lit acrylic frame and stand consisting of three interlocking sections. The frame is designed to hold a 3mm thick acrylic sheet. First, create two identical L-shaped frame rails for the top and sides. Each rail has a cross-section based on a 10mm square with 2mm rounded corners. The rails should be extru...
wd=100; ht=110; dp=3; in=5; edge=10; rad=2; module plate() { translate([0,dp/2,0])rotate([90,0,0])cube([wd, ht, dp]); } module frame_profile() { offset(r=rad)square(edge-2*rad,center=true); } translate([0,2.4*edge,0])difference() { difference() { translate([-edge/2,0,0])rotate([0,90,0])linear_ext...
glb/cad_2f9a4d2f890e.glb
Create a replacement latch for a tote box. The main body is a flat, symmetrical frame with a height of 9.5mm. The outer profile is formed by a series of connected hulls: start with a circle of 13.1mm diameter at the center, extending to two circles of 12.2mm diameter positioned 64.7mm above and below the center, and fi...
$fn=64; module profile() { difference () { union() { hull() { translate([20.9, 64.5])circle(d=9.8, center=true); translate([-1.3, 64.7])circle(d=12.2, center=true); } hull() { translate([-1.3, 64.7])circle(d=12.2, center=tr...
glb/cad_8622038ee6c3.glb
Create a hollow egg-shaped container measuring 44mm wide by 57mm tall. The container is split into two interlocking halves joined by a threaded connection. Construct a male metric thread with a diameter of 36mm, a pitch of 3mm, and a length of 12mm, featuring a 2mm lead-in. Integrate this threaded section into the cent...
use <threads.scad>; $fa=6; difference() { metric_thread(diameter = 36, pitch = 3, length = 12, leadin = 2, internal = false); cylinder(h = 25, d = 28, center = true); }
glb/cad_eb3cf27ac8bd.glb
Create a hollow egg-shaped container with a total size of 44mm by 57mm, split into two interlocking halves. The overall form is an ovoid created by rotating a specific profile around a central axis. Each half should have a wall thickness of approximately 4.8mm. The two halves are joined by a threaded connection. Creat...
use <threads.scad>; sc = 22; $fa = 6; module eg(s) { union() { difference() { intersection() { translate([-1 * s, 0])circle(r = 2 * s, center = true); translate([1 * s, 0])circle(r = 2 * s, center = true); } union() { tra...
glb/cad_0fd4f5157f2a.glb
Create a Short-Point Colouring Pencil Sharpener Adapter by revolving a specific profile around a central axis. The object is a hollow, tapered sleeve with a total height of 12mm. Start with a central bore of 4.25mm in radius (8.5mm diameter) that runs the full length of the part. The outer wall begins at the base wit...
pencil_diameter = 7.5; slop = 1.0; sharp_angle = 30; outer_diameter = pencil_diameter + 6; flat = 0.4; inner_radius = (pencil_diameter + slop) / 2; outer_radius = outer_diameter / 2; slope_thick = outer_radius - inner_radius - flat; slope_height ...
glb/cad_01293dfa1f5e.glb
Create a Short-Point Colouring Pencil Sharpener Adapter by revolving a specific profile around a central axis. The object is a hollow, tapered sleeve with a total height of approximately 22mm. Start with a central bore of 4.25mm in diameter. From the base, create a cylindrical wall with an outer diameter of 15.5mm th...
pencil_diameter = 7.5; slop = 1.0; sharp_angle = 26; outer_diameter = pencil_diameter + 8; flat = 0.4; inner_radius = (pencil_diameter + slop) / 2; outer_radius = outer_diameter / 2; slope_thick = outer_radius - inner_radius - flat; slope_height ...
glb/cad_cd71ab461651.glb
Create a Hard Disk Fridge Magnet Grip by starting with a solid base block. The main body is a rounded rectangular slab 25.4mm wide, 25.4mm high, and 2mm thick. The top and bottom edges of this slab are rounded with a radius of 4mm. Cut two vertical holes completely through the slab: one at the left edge and one at th...
centres = 1 * 25.4; small_holes = 0.138 * 25.4; width = 8; depth = 2; slop = 0.6; $fn=64; difference() { linear_extrude(height=centres)hull() { circle(d=width, center=true); translate([centres, 0])circle(d=width, center=true); } union() { translate([0,0,depth])union() { ...
glb/cad_774f1e2d541b.glb
Create a Pen Grip Ball consisting of two identical hemispherical shells. Each half is derived from a sphere with a 60mm diameter and a 2mm wall thickness. Remove a cylindrical core from the center of the sphere with a diameter of 10.5mm to accommodate a pen. Within the wall of each hemisphere, create three equidist...
ball_diam = 60.0; pen_diam = 10.5; wall_thick = 2.0; tol=0.8; nut_thick = 3.2; nut_flats = 7.0; nut_diam = nut_flats / (sqrt(3)/2); screw_length = 12.0; screw_nom_diam = 4.0; screw_head_diam = 8.0; screw_head_thick = nut_thick; pillar_height = screw_length - (1.25 * nut_thi...
glb/cad_d41a45a4f48f.glb
Create a birb_chirper, a hollow whistling toy. Start by constructing a thin-walled shell created by rotating a profile around a central vertical axis. The profile consists of a rectangle 18mm wide and 40mm high, with the top edge forming a symmetrical ogee curve. The walls of the shell should be 2mm thick. At the top...
use <ogive_and_ogee.scad>; $fn = 64; eps = 1e-5; width = 18; height = 40; wall = 1; top_hole = 3; module top_ogee() { ogee(width * cos(60), width * sin(60), steps = $fn); } module inner_profile() { offset(delta = -2 * wall)union() { translate([-width / 2, 0])squ...
glb/cad_d3f8b883fdd0.glb
Create a birb_chirper toy consisting of a hollow cylindrical body and a decorative cap. Start by creating a main barrel that is a hollow cylinder with an outer diameter of 18mm, an inner diameter of 16mm, and a height of 40mm, centered on the origin. Cut a vertical slot into this barrel by removing a rectangular sectio...
use <ogive_and_ogee.scad>; $fn=64; union() { difference() { difference() { cylinder(d=18, h=40, center=true); cylinder(d=18-2.0, h=40, center=true); } rotate([0,0,45])translate([15,6,0])cube([30, 2, 40], center=true); } translate([0,0,-20])cylinder(d=18, h...
glb/cad_1a38bbc242e3.glb
Create a Messenger Bag Replacement Webbing Clip designed for 25mm webbing. The object is a flat, specialized clip with a thickness of 6mm. Start by creating the main body, which is a rounded rectangular profile approximately 40mm in length and 32.28mm in width. The central feature is a rectangular cutout for the stra...
web_thick=1.6; clasp_thick= 6; strap_thick=5; strap_wide=26; outer_catch=32.284; inner_catch=27.368; big_edge=40; eps=1e-3; $fn=64; module half_clasp() { polygon(points=[[-24.517366, 20.006714], [-25.135416, 19.980875], [-25.579834, 19.893542], [-25.745198, 19.817578], [-25.878524, 19.715258], [-25.982393, 19.5824...
glb/cad_0f414a22a200.glb
Create a Big Boy Kryptex puzzle box consisting of a central core, ten rotating rings, and a locking top cap. Start by creating a central cylinder with a diameter of 111mm and a height of 100mm. Around this core, create ten stacked rings, each 10mm high. Each ring should have an outer diameter of 132mm and an inner di...
$fn=0; $fa=5; $fs=0.1; alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; runes = "ᚠᚢᚦᚩᚱᚷᚹᚻᚾᛡᛄᛇᛈᛉᚴᛏᛒᛗᛚᛝᛟᛞᚪᚫᛠᚣ"; module pointyCilinder(h, r = 1) { translate([0, 0, h - r])cylinder(r, r, 0); translate([0, 0, r]) cylinder(h - (2 * r), r, r); cylinder(r, 0, r); } module placedShape(radius, tanAngle) { halfSideH...
glb/cad_c2774ca56072.glb
Create a Commercial Electric Power Strip Switch Guard by constructing a rectangular frame. Start with a solid rectangular block measuring 22.5mm in width, 40mm in length, and 6mm in height. From the center of this block, remove a smaller rectangular section measuring 15.5mm in width, 33mm in length, and 12mm in height ...
difference() { color("gray") cube([22.5, 40, 6], center=true); color("gray") cube([15.5, 33, 12], center=true); }
glb/cad_21879be2a7d6.glb
Create an Autool X95 mount consisting of a circular base plate with a central cutout and four mounting posts. Start with a main disk that is 79mm in diameter and 2mm thick. In the center of this disk, create a circular hole with a diameter of 51.5mm. Add four cylindrical screw posts to the base. Each post should be po...
$fn=80; module base_minimal() { difference() { union() { translate([0,0,0]) cylinder(d=79,h=2); hull() { translate([24,24,1]) cylinder(d=4,h=10.5); translate([25,25,1]) cylinder(d=4,h=1); } hull() { translate([-24,24,1]) cylinder(d=4,h=10.5); translate([-25,25,1]) cylinde...
glb/cad_dba34cffaa78.glb
Create a Simple Cylindrical Sieve by constructing a hollow cylinder with an outer diameter of 100mm and a total height of 60mm. The object should have a uniform wall thickness of 2mm. To achieve this, start with a solid cylinder of the full dimensions and remove a smaller concentric cylinder from the center, starting f...
diameter=100; height=60 ; wall=2; $fn=200; difference() { cylinder(d=diameter, h=height); translate([0,0, wall]) cylinder(d=diameter-2*wall, h=height); }
glb/cad_e09c8ccba99a.glb
Create a centering piece for an umbrella pole. Start by creating a thin circular base disk with a diameter of 62.43mm and a height of 5.30mm. Bore a vertical hole through the center of this disk with a diameter of 37.80mm. On top of this base, add a larger vertical cylinder with an outer diameter of 52.43mm and a heigh...
UmbrellaPoleDiameter = 37.80; BaseHoleDiameter = 52.43; $fa=1; $fs=0.1; TopHeight = 5.30; TopDiameter = BaseHoleDiameter + 10; BaseInteriorHeight = 45.00; InteriorToothNumber = 12; InteriorToothLenght = (BaseHoleDiameter/2-UmbrellaPoleDiameter/2)/2; difference(){ ...
glb/cad_ad6a678968ae.glb
Create a plastic sleeve for a mini-cycle lock arm. Start by constructing a main body that is 34.5mm tall, transitioning from a circular base with a diameter of 10.4mm to a top section that is a scaled sphere with a radius of 7.15mm (scaled to 0.1 in X and 0.8 in Z). Through the center of this body, create a vertical ...
$fn = 100; tube_height = 34.5; top_radius = 7.15; lower_diameter= 10.4; inner_diameter = 6; inner_clearance = 0.2; inner_length = 37.5; module top() { difference() { scale([top_radius/10, 1, 0.8]) sphere(r=top_radius); translate([0, 0, -(top_radius)]) cube([(top_radius+2)*2, (top_radius+2)*2, top_...
glb/cad_f0666e763440.glb
Create a universal sensor cover consisting of a main body and a separate lid. The main body is a rectangular block with overall dimensions of 19mm in width, 9mm in depth, and 31mm in height. The walls are 2mm thick. On the front and back faces of the body, create a grid of square ventilation holes. These holes are 2m...
velikostc_x = 15; velikostc_y = 5; velikostc_z = 25; material = 2; drzak = true; sroub = 3.2; otvor = 2; mezera_otvor_x = 2; korekceo_x = 0.5; mezera_otvor_z = 4; korekceo_z = 2.5; otvor2 = 4; mezera_otvor2_z ...
glb/cad_3d206db940ec.glb
Create a Ballast Deck Girder Model Railroad Bridge consisting of two main longitudinal girders. Each girder is constructed as a composite of a main structural body and a ballast deck. For each girder, create a main beam of 12mm height and 6.1mm width. The ballast deck is a rectangular box that sits atop the girder, de...
function FFFprintable(value) = FFFprinting ? (value > FFFMinThickness ? value : FFFMinThickness) : value; RivetNumber = round((GirderHeight) / (StiffenerRivetSpacing)); RivetSpace = GirderHeight / RivetNumber; BDNumStiff = round((GirderLength - BDStiffenerWidth) / BDStiffenerSpacing); BDStiffenerSpace = (GirderLength...
glb/cad_fe7b37e78781.glb
Create a Ballast Deck Girder Model Railroad Bridge consisting of two parallel girders, a supporting pier, and an abutment. Construct two identical girders, each 190mm long and 21.6mm high. Each girder is a thin-walled shell with a thickness of 0.3mm and a top flange width of 6mm. Along the length of each girder, place...
$fn = $preview ? 6 : 12; FFFprinting = true; FFFMinThickness = 0.5; MakeSTLs = false; Make_pier_historic = false; Make_pier_modern = true; Make_abutment = true; BridgeLength = 190; BridgeWidth = 16.5; HOScale = 0.2916666; Scale = HOScale; GirderLength = BridgeLength; GirderHeight = 6 * 12 * Scale; GirderThickn...
glb/cad_d246615df876.glb
Create a universal circular sieve by constructing a hollow cylinder with an outer diameter of 150mm and a total height of 50mm. The cylinder should have a wall thickness of 3mm. At the base of this cylinder, create a solid circular floor with a thickness of 3mm. Within this floor, carve out a grid of square holes to cr...
velikost = 150; vyska = 50; material = 3; otvor = 6; mezera = 3; korekce_x = 1; korekce_y = 1; $fn=95; module sito() { difference(){ cylinder(h= vyska, d=velikost); translate([0,0,material])cylinder(h=vyska-material, d=veliko...
glb/cad_3e95b6d30872.glb
Create a universal sieve by constructing a rectangular box with outer dimensions of 150mm in width, 100mm in depth, and 50mm in height. The box should have walls and a base that are 3mm thick. The top of the box is completely open. To create the sieve floor, the base must be perforated with a grid of square holes. Each...
velikost_x = 150; velikost_y = 100; vyska = 50; material = 3; otvor = 6; mezera = 3; korekce_x = -3; korekce_y = -3; $fn=95; module sito() { difference(){ cube([velikost_x,velikost_y,vyska]); translate([material,material,ma...
glb/cad_d95f20555dad.glb
Create an inside door handle core for a 1994 Ford E350. The model consists of a main base and two bolt-holding blocks. Start with the main base: create a rectangular slab 7.25 inches long, 2 inches wide, and 0.1615 inches thick. Add a vertical fin to this base that is 6.375 inches long, 0.15 inches thick, and 0.5275 i...
include <BOSL2/std.scad> $fn= $preview ? 32 : 128; Thickness = 0.1615; Fin_Thickness = 0.15; Round_Edges = 0.05; Bolt_Holes_Diameter = 0.25; eps = 0.01; Main_Base_Length = 7.25; Main_Base_Width = 2; Main_Base_Top_Shrinkage = 0.98; Main_Base_X_Offset = 5 + 9/16; Main_Base_Hole_Diameter = 1; Main_Base_Hole_X_Offset = ...
glb/cad_a86281f1032f.glb
Create a bicycle spoke reflector consisting of a central body and two extending mounting arms. The main body is a cylinder with a diameter of 66mm and a thickness of 18mm. Modify this cylinder by removing four symmetrical wedge-shaped sections from the sides to create a flattened, elongated profile. Attached to the ce...
Reflector_diameter = 66.0; Reflector_thickness = 18.0; Mount_length = 120.0; Mount_width = 15.0; Mount_thickness = 3.0; Mount_hole_length = 15.0; Mount_hole_width = 4.5; $fn = 512; module rounded_cube(x, y, z, corner_radius) { translate([-x / 2 + corner_radius, -y / 2 + corner_radius, 0]) cylinder(r=corner_radius, ...
glb/cad_41a2a8c372d3.glb
Create a bicycle spoke reflector nut by starting with a composite main body. This body consists of a cylinder with a diameter of 8.75mm and a height of 5mm, merged with a rectangular block that is 10.7mm long, 8.75mm wide, and 5mm high, extending from the cylinder's center. From this combined volume, remove a central...
Nut_length = 10.7; Nut_width = 8.75; Nut_height = 5.0; Spoke_diameter = 2.0; Screw_diameter = 3.5; $fn = 64; module body() { cylinder(d=Nut_width, h=Nut_height); translate([0, -Nut_width / 2, 0]) cube([Nut_length - (Nut_width / 2), Nut_width, Nut_height]); } module spoke_groove() { hull() { translate([-1, ...
glb/cad_55622ce8a61a.glb
Create a NEMA 17 Planetary Peristaltic pump consisting of a planetary gear system enclosed in a hinged housing. The core is a planetary gear set with a height of 18mm. Create a sun gear with 12 teeth and three planet gears with 6 teeth each. The planet gears should be positioned to mesh with both the sun gear and an ...
tol = 0.1; allowed_overhang = 0.75; tubing_od = 6; tubing_wall_thickness = 1; tubing_squish_ratio = 0.3; D = 35; T = 18; number_of_planets = 3; number_of_teeth_on_planets = 6; approximate_number_of_teeth_on_sun = 12; P = 45; nTwist = 1; w = 6.7; DR = 0.5 * 1; m = round(number_of_planets); np = round(numbe...
glb/cad_5230f35ad485.glb
Create a Customizable Hot-key Keyboard housing consisting of a bottom base and a lid. For the bottom base, create a rounded cube with dimensions 80mm width, 80mm height, and 16mm depth. Hollow out the center to leave a wall thickness of 8mm. In the base, include a cutout for a USB port measuring 12mm by 20mm by 8mm. ...
include <roundedcube.scad> include <cherry_mx.scad> Keys_per_column = 2; Keys_per_row = 2; Tilt_lid = true; Lid_angle = 25; Housing_width = 80; Housing_height = 80; Housing_depth=16; Housing_floor_thickness = 2.5; Wall_thickness = 8; Lid_thickness=4; Key_layout_margin = 12; Screw_diameter = 3; Hexnut_width = 5.6;...
glb/cad_706055a5d6f4.glb
Create a cam component for a Hand Crank Marble Lifter. Start by creating a primary flat cylindrical disk with a diameter of 26mm and a height of 2.5mm. On top of this disk, add a smaller solid cylinder with a diameter of 6.5mm and a height of 6.75mm. Position this smaller cylinder so that its outer edge is flush with t...
smoothing=100; difference(){ union(){ cylinder(h=2.5, d=26, $fn=smoothing); translate([(26/2)-((9.25-2.5)/2), 0, 2.5]){ cylinder(h=(9.25-2.5), d=6.5, $fn=smoothing); }; }; translate([(26/2)-((9.25-2.5)/2), 0, 0]){ cylinder(h=(9.25), d=3.6, $fn=smoothing); }; }...
glb/cad_877da4496ac3.glb