Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a rotary knob for a potentiometer with a total diameter of 20mm and a height of 15mm. The top face should have a 1.2mm 45-degree chamfer. The main body is a hollow cylinder with an outer wall thickness of 1.5mm; the inner cavity is a cylinder with a diameter of 17mm and a depth of 13mm. On the top surface, add ...
knob_diam = 20; knob_height = 15; chamfering_height = 1.2; fluting_depth = 0.25; fluting_count = 90; marking_depth = 0.2; marking_width = 0.7; marking_distance = 2; outer_wall = 1.5; axis_diam = 4.1; axis_holder_indent ...
glb/cad_77b20ca1397a.glb
Create a rotary knob for a potentiometer with a total diameter of 20mm and a height of 15mm. The main body is a cylinder with a 1.2mm 45-degree chamfer on the top edge. Hollow out the center of the knob to create a wall thickness of 1.5mm, leaving a solid central axis holder with a diameter of 17mm. Inside this holder...
knob_diam = 20; knob_height = 15; chamfering_height = 1.2; fluting_depth = 0.3; fluting_count = 15; marking_depth = 0.2; marking_width = 0.7; marking_distance = 2; outer_wall = 1.5; axis_diam = 4.1; axis_holder_indent ...
glb/cad_f1e43ce04d9f.glb
Create a rotary knob for a potentiometer with a total diameter of 25mm and a height of 18mm. The main body is a cylinder with a 1.2mm 45-degree chamfer on the top edge. Hollow out the center of the knob to create a wall thickness of 2mm, leaving a central axis holder with a diameter of 21mm. Inside this holder, create...
knob_diam = 25; knob_height = 18; chamfering_height = 1.2; fluting_depth = 0.25; fluting_count = 120; marking_depth = 0.2; marking_width = 0.7; marking_distance = 3; outer_wall = 2; axis_diam = 6.1; axis_holder_indent ...
glb/cad_e6fbe6b51f1e.glb
Create a rotary knob for a potentiometer with a total diameter of 25mm and a height of 18mm. The main body is a cylinder with a 1.2mm 45-degree chamfer on the top edge. Hollow out the center of the knob to create a wall thickness of 2mm, leaving a solid central axis holder with a diameter of 21mm. Inside this holder, ...
knob_diam = 25; knob_height = 18; chamfering_height = 1.2; fluting_depth = 0.4; fluting_count = 24; marking_depth = 0.2; marking_width = 0.7; marking_distance = 3; outer_wall = 2; axis_diam = 6.1; axis_holder_indent ...
glb/cad_e28522e20a08.glb
Create a headphone cable router designed to clip onto a chair armrest. Start by constructing a hollow sleeve with a wall thickness of 3mm. The inner cavity should match the cross-section of the armrest bar, which is 71mm wide and 30.5mm deep with rounded corners (radius of approximately 7.75mm). The outer shell should ...
ARMREST_WIDTH=71; ARMREST_DEPTH=30.5; ARMREST_INNER_WIDTH=59; TOP_ANGLE=15; MIN_HEIGHT=15; THICKNESS=3; WIRE_HOLE_R=4; WIRE_SLOT_WIDTH=5; WIRE_SLOT_TWIST=80; $fn=30; module armrest_cross_section() { CORNER_RADIUS=(ARMREST_WIDTH-56)/2+0.5; hull() { translate([CORNER_RADIUS,CORNER_RADIUS]) circl...
glb/cad_07875528959a.glb
Create a figure stand for a game card and miniature. Start with a circular base that has a radius of 12.5mm and a height of 1.6mm. On top of this base, place two parallel rectangular rails. Each rail should be 24.5mm long, 3.9mm wide, and 1.3mm thick. Position these rails so they are centered along the length of the ba...
$fn = 100; r = 12.5; h = 1.6; l = 24.5; y = 3.9; t = 1.3; dev = 1.1; r2 = 0.65; dist = 7.8; color("blue", 0.5) translate([0,0,-h/2]) cylinder(r=r, h=h, center=true); color("lime", 0.5) { translate([0, t/2+dev, y/2]) cube(size=[l, t, y], center=true); translate([0, -t/2-dev, y/2]) ...
glb/cad_7e0dfa73b6ae.glb
Create a figure stand for game cards and miniatures. Start with a hexagonal base that has a diameter of 74.4mm and a thickness of 2.5mm. Cut six slots into this base to hold cards. Each slot should be 2.35mm wide and 2.5mm deep. Position one slot 16mm from the center along the Y-axis with a length of 17.5mm. Position...
poly_n = 6; side = 74.4/2; height = 2.5; hole_w = 2.35; gen_l = 17.5; praetor_l = 10; holder_t = 1.6; hodler_gen_h = 2.5; hodler_praetor_h = 1.5; eps = 0.01; difference() { color("blue") rotate([0, 0, 30]) translate([0, 0, 0]) linear_extrude(height) circle(side, $fn=poly_n); translate([0,0,-1]) { t...
glb/cad_8bb0150b11f3.glb
Create a 4x4 customizable Carcassonne tile grid. Start by creating a base pad with a thickness of 1.4mm. The grid consists of 16 square cells, each designed to hold a tile of 45mm width, with an additional 0.7mm of extra space around each tile. Construct the grid using ribs that are 5mm wide. The outer boundary and th...
$fn = 50; baseH = 1.4; baseW = 5; base_r = 5; rimH = 2.24; rimL = 10; rimW = 1; squareW = 45; squareSpace = 0.7; lockMaxW = 15; lockL = 4; lockA = 55; lockR = 1; lockSpacer = rimW; unit = squareW + 2 * squareSpace + rimW; spacer = rimW / 2; for (a =[0, 90, 180, 270]) rotate([0,0,a]) { color ("#8080ff") d...
glb/cad_52a626a2e699.glb
Create a pair of octagonal glasses frames with a thickness of 5mm. The front of the glasses consists of two octagonal rims, each with an outer diameter of 90mm and a frame width of 5mm. Position the centers of these two octagons 110mm apart. Connect the two rims with a curved bridge. The bridge is formed by a ring wit...
LensDiameter=90; PupillaryDistance=110; FrameThickness=5; FrameWidth=5; HingeSpacing=5; HingeHeight=10; BridgeDiameter=110; BridgeHeight=12; BridgeWidth=10; BridgeCutOffHeight=-20; $fn=100; mirror([1,0,0]) translate([PupillaryDistance/2,0,0]) linear_extrude(height=FrameThickness) difference() { rotate([0,0,22.5]...
glb/cad_ce7b9847608e.glb
Create a pair of octagonal glasses frames with a thickness of 5mm. The front of the glasses consists of two octagonal rims, each with an outer diameter of 90mm and a frame width of 5mm. Position the centers of these two octagons 110mm apart. Connect the two rims with a central bridge that is 15mm wide and 5mm thick. O...
LensDiameter=90; PupillaryDistance=110; FrameThickness=5; FrameWidth=5; HingeSpacing=5; HingeHeight=10; BridgeHeight=10; BridgeWidth=15; $fn=100; mirror([1,0,0]) translate([PupillaryDistance/2,0,0]) linear_extrude(height=FrameThickness) difference() { rotate([0,0,22.5]) circle(r=LensDiameter/2, $fn=8); rot...
glb/cad_7d9ec8d4cec2.glb
Create a laptop stand stopper consisting of a rectangular base block with two protruding cylindrical pins. The base block must be 125mm long, 24mm wide, and 12mm thick. Center the block on the X and Y axes. Position two cylindrical pins on the top surface of the block, spaced exactly 75mm apart from center to center....
pin_distance = 75; pin_dia = 6.1; pin_len = 11.5; stopper_width = 24; stopper_len = 125; stopper_thickness = 12; stopper_shift = 0; stopper_width_ratio = 0.33; stopper_len_ratio = 0.9; adjusted_offset = max(0, stopper_len - pin_distance - pin_dia)*stopper_shift/2; $fn = 50; epsilon = 0.01; module pin() { ...
glb/cad_fb12f18ae9c4.glb
Create a Corner Connector U-Profile consisting of two intersecting U-shaped channels that form a right angle. Each channel has an outer width of 16.72mm (15mm plus two 0.86mm walls) and a height of 0.8mm. The length of each arm from the outer corner to the end is 50mm. The interior of each channel is hollowed out by r...
$fn = $preview ? 15 : 90; sizeA = 15; sizeB = 15; thickness = 0.86; height = 0.8; length = 50; holeDiameter = 2; holeSpace = 11; cutCorner = true; supportingCorner = false; cornerHoleDiameter = 3; if (cutCorner) { difference() { _profileWithHoles(); _cornerCube(); translate([0, 0, hei...
glb/cad_442aaaa22cd5.glb
Create a Kovona Drumy Shelf Support Peg consisting of a main bracket and a separate cylindrical plug. For the bracket, start with a cube measuring 36mm x 36mm x 28mm. Remove a large section from the top and two adjacent sides to leave an L-shaped profile. Cut a hole completely through the remaining vertical wall along ...
$fn = $preview ? 15 : 90; difference() { cube([36, 36, 28], center = true); translate([3, 3, 3]) { cube([36, 36, 28], center = true); } translate([0, -37/2, 0]) { rotate(a = [90, 0, 0]) { cylinder(h = 37, d1 = 6.8, d2 = 6.8, center = true); } } translate([...
glb/cad_39e8c391c3cc.glb
Create a Mixit Box Cap consisting of a shallow circular base and a raised inner rim. Start by creating a solid cylinder with a diameter of 102mm and a height of 0.8mm. On top of this base, add a second concentric cylinder with a diameter of 99mm and a height of 4mm. Hollow out the center of the model by removing a cy...
$fn = $preview ? 30 : 90; baseHeight = 0.8; wallThickness = 0.86; outerD = 102; innerD = 99; infill = "star"; wallThicknessD = wallThickness * 2; difference() { union() { cylinder(h = baseHeight, d1 = outerD, d2 = outerD); cylinder(h = baseHeight + 4, d1 = innerD, d2 = innerD); } transl...
glb/cad_033501d2a93f.glb
Create a Prusament Spool Holder rail by constructing a rectangular frame with a total length of 60mm and a width of 86mm. The frame is built around a central open rectangular void. Start by creating two parallel outer rails, each 8mm wide and 5mm high. Along the 8mm wide edges, add vertical support walls that are 5mm...
$fn = $preview ? 15 : 90; bottomThickness = 8; bottomHeight = 2; teethThickness = 2; teethHeight = bottomHeight + 3; width = 86; length = 52 + bottomThickness; holderWidth = 14.2; holderRailHoleSize = 4; holeD = 3.3; difference() { _rail(); translate([bottomThickness / 2, width / 2, 0]) { cylinder...
glb/cad_0dec44bb021f.glb
Create a Prusament Spool Holder rail by constructing a linear extruded profile with a total length of 100mm. The main body is formed by extruding a polygon with vertices at [-0.5, 0], [0.5, 0], [2, 2.5], and [-2, 2.5], applying a corner radius of 1mm. To this, add a second extrusion with a height of 2mm based on the sa...
$fn = $preview ? 15 : 90; length = 100; rotate([-90, 0, 0]) { difference() { union(){ linear_extrude(height = length) { offset(r = 1) { polygon([[-0.5, 0], [0.5, 0], [2, 2.5], [-2, 2.5]]); } } translate([0, -1, 0]) { ...
glb/cad_7220c28df00f.glb
Create a Prusament Spool Holder base with a total length of 100mm between bearing centers and a base height of 3mm. The main body is a flat plate with two circular ends, each having a radius of 15mm (calculated as the bearing outer diameter of 22mm plus a 2mm margin, divided by 2). Connect these ends with a central rec...
$fn = $preview ? 30 : 90; length = 100; height = 3; margin = 2; spool = 199; bearingOuter = 22; bearingInner = 8.1; bearingWidth = 7; bearingPad = 0.4; boltD = 3.2; boltHead = 3.5; boltHeadD = 5.7; nutHeight = 3; nutWidth = 6.5; enableFeet = true; translate([ length / 2, _pythagorasB(((bearingOuter / 2)...
glb/cad_90f4d03c8fb3.glb
Create a cable connection clip consisting of a rectangular outer shell with two internal compartments. The outer shell has a wall thickness of 1.2mm and overall dimensions based on the internal slots. The first compartment is a rounded rectangular slot 40.2mm long, 22.9mm wide, and 12.3mm deep, with corner radii of 4...
$fn=90; WT=1.2; AsideL=40.2; AsideW=22.9; AsideH=12.3; AsideR=4; AsideC=7.4; BsideL=20.5; BsideW=19.2; BsideH=9.2; BsideR=2; BsideC=7.8; translate([WT+AsideW/2,WT,WT+AsideH/2])rotate([270,0,0])difference(){ translate([0,WT/2+(AsideH-BsideH)/4,-WT])linear_extrude(2*WT+AsideL+BsideL)square([AsideW+2*WT,WT+(AsideH+...
glb/cad_2f0318aea188.glb
Create a protective cover for a Sonoff SNZB-03 motion sensor. Start by designing the main body as a rounded cube with a width of 40mm, a depth of 35mm, and a height of 17.5mm, using a corner radius of 1mm. Centered on top of this body, place a sphere with a radius of 11.5mm. Construct a surrounding screen or shell tha...
width = 40; depth = 35; height = 17.5; corner_radius = 1; sensor_radius = 13; buffer = 0.2; stiffness = 2.4; nub_radius = 1; include <../../modules/roundedcube.scad> module sonoff_sensor() { translate([0, 0, height/2]) roundedcube([width, depth, height], radius = corner_radius, center = true); translate([0,...
glb/cad_223b740d00e1.glb
Create a replacement vent cover with a fan mount. Start by creating a square outer frame with a width and height of 185mm and a depth of 18mm. The frame should have a wall thickness of 4mm, leaving a central open area of 177mm by 177mm. Within this central area, create a honeycomb mesh with a depth of 2mm and a wall t...
use <scad-utils/morphology.scad>; object_version = "v0.1.3"; $fn = 100; width = 185; height = 185; depth = 18; wall_thickness = 4; mount_hole_diameter = 4.9; mount_hole_clearance = 5; mount_distance_x = 105; mount_distance_y = 105; mesh_depth = 2; mesh_wall_thickness = 1.5; mesh_size = 6; mask_enabled = f...
glb/cad_58df97295d83.glb
Create a duct holder for a ventilation hose. Start with a base consisting of three rectangular blocks: one measuring 95mm by 120mm by 60mm centered at the origin, one measuring 170mm by 50mm by 5mm positioned at [0, -25, 0], and one measuring 50mm by 200mm by 5mm positioned at [25, -100, 0]. From this combined base, re...
include <libs/halfPipeEx.scad> outer_d = 120; inner_d = 115; union() { translate([0,0,60]) { curvedHalfPipeEx([ [0,0,0], [120,0,0], [120,0,180], ], 2, [45,45,45], outer_d, inner_d, 20); } difference() { union() ...
glb/cad_b2f5a75d11c0.glb
Create a magnet holder consisting of a cylindrical base and an integrated handle. Start by creating a main cylinder with a diameter of 13.2 mm and a total height of 3.5 mm. Inside this cylinder, center a vertical hole with a diameter of 10.5 mm and a depth of 2.5 mm, leaving a bottom floor thickness of 0.5 mm. To for...
include <Base.scad> layer_height=0.25; line_width=0.68; line=0.68; line2=1.3; line4=2.53; line6=3.76; line8=4.99; line10=6.22; $fn=36; h_magnet=1.9; d_magnet=10; d_innen=d_magnet+0.5; d_aussen=4*line_width+d_innen; h_innen=(ceil(h_magnet/layer_height)+1)*layer_height; boden=2*layer_height; h_rund=boden+h_innen+4*lay...
glb/cad_74c6c216fb5d.glb
Create a Catapult M&M dispenser. Start by constructing a triangular base with a width of 70mm and a thickness of 32mm. The base should have a central hollowed-out section and a small circular hole with a diameter of 4mm passing through the center to act as a pivot axis. Create a throwing arm that is 87.5mm long (1.25 ...
$fn=32; D=32; W=70; T=3; armD=6; armW=W*1.25; axisD=4; rnd=4; frontsize=5; spring=false; space=0.4; overlap=0.1; module shape_pos() { rotate([90,0,0]) linear_extrude(height=D,center=true) offset(r=rnd) rotate([0,0,90]) circle(d=W,$fn=3); } module base() { sideH=W/8; stopD=3; translate([0,0,W/2]) ...
glb/cad_6c082c92d728.glb
Create a magnetic mount for a Tapo C100/C110 camera. Start by constructing a main body that is a hull of four cylinders, each 40mm in diameter and 150mm tall, positioned at the corners of a 34mm square (at coordinates ±17, ±17). Hollow out the center of this body by removing a hull of four 30mm diameter cylinders pos...
tilt_angle_degrees = 5; $fn=50; difference() { union() { hull() { translate([-17,-17,0]) cylinder(d=40,h=150); translate([17,-17,0]) cylinder(d=40,h=150); translate([-17,17,0]) cylinder(d=40,h=150); translate([17,17,0]) cylinder(d=40,h=150); } } union() { translate([-40,-40,...
glb/cad_155712bb626b.glb
Create a Sphericon consisting of two identical symmetrical halves and a central connecting link. For each half, generate a 2D profile that is the intersection of a circle with a diameter of 70mm and a square with a width of 280mm, then modify this profile by removing a smaller central circular region and adding rounded...
$fn=64; type="curved"; overlap=0.1; nrsides=6; diam=70; edgeDiam=16; sideL=diam*sin(180/nrsides); sideDist=0.5*(diam-edgeDiam)*cos(180/nrsides); innersideL=(diam-edgeDiam)*sin(180/nrsides)-edgeDiam; echo(sideL); linkD=diam/4; linkH=diam/6; space=0.1; removeD=diam*4; removeHD=removeD/2; module poly(D=diam) { ...
glb/cad_2003fe9d57c0.glb
Create a letter catcher designed to hold a mail slot. Start by constructing a main U-shaped base with outer dimensions of 300mm width, 300mm depth, and 120mm height. The walls should be 10mm thick, creating an internal cavity of 280mm by 300mm. Apply a 1mm radius fillet or chamfer to all exterior edges of this base for...
insert = 5; groove = 7.0711; %translate([0,300,0])cube(10); %translate([10,300,-1])cube(3); %translate([290,300,0])cube(10); %translate([0,0,120])cube(10); union(){ ear(-8,308,-1,225); ear(308,308,-1,135); ear(-8,-8,-1,-45); ear(308,-8,-1,45); translate([0,160,7])rotate([-90,45,-90])linear_extrude(300)polygon([[0,0]...
glb/cad_69fc4b294eb6.glb
Create a Task Chair Headrest Cap consisting of three stacked rectangular plates with rounded corners. The base layer is a thin plate 0.5mm thick, measuring 9.5mm by 53.5mm, with corner radii of 2mm. Directly on top of this, add a second plate 0.5mm thick, measuring 8.5mm by 52.5mm, with corner radii of 2mm, centered re...
resolution = 100; $fn = resolution; translate ([-6.5, -6.5, 2.5]) color("purple") hull() { translate([4, 4, 0]) cylinder(h=1, r=4); translate([4, 63, 0]) cylinder(h=1, r=4); translate([19, 4, 0]) cylinder(h=1, r=4); translate([19, 63, 0]) cylinder(h=1, r=4); }; color("red") hull() {...
glb/cad_96d858853db9.glb
Create an under-desk cable holder consisting of a rectangular base with three integrated cable attachment points. The base is 20mm wide and 4mm thick. At each end of the base, center a 3.5mm diameter screw hole that penetrates the full thickness, featuring a 7mm diameter countersink with a depth of 1.6mm. The centers o...
$fn=90; number_of_cable_holders=3; gap_between_cable_holders=4.0; inner_diameter_of_cable_holder=7.0; minimum_wall_thickness_for_cable_holder=1.2; maximum_wall_thickness_for_cable_holder=2.7; strap_slot_width=5.2; strap_slot_height=2.4; base_thickness_below_strap_slot=0.2; base_thickness_total=4.0; base_extension_le...
glb/cad_65d30a9d2cae.glb
Create an under-desk cable holder consisting of a rectangular base with a central cable channel and two mounting holes. The base is 22mm wide and 4mm thick. At each end of the base, 5mm from the outer edges, create a vertical screw hole 3.5mm in diameter that passes through the base. Each hole must feature a counters...
$fn=90; number_of_cable_holders=1; gap_between_cable_holders=4.0; inner_diameter_of_cable_holder=7.0; extra_width_of_cable_holder=0.0; minimum_wall_thickness_for_cable_holder=1.2; maximum_wall_thickness_for_cable_holder=2.7; strap_slot_width=12.5; strap_slot_height=2.4; base_thickness_below_strap_slot=0.2; base_thic...
glb/cad_abf9134b69da.glb
Create a herringbone pattern jig for pen turning consisting of seven repeating levels of thin walls. Each wall is a rectangular plate with a thickness of 0.6mm, a width of 20mm, and a height of 20mm. For each of the seven levels, place two plates: one oriented vertically and one oriented horizontally. Position the firs...
th = 0.6; bw = 9.5; z_height = 20; num = 7; for ( i = [1 : num] ){ rotate([0,0,90]) translate([i*(bw+th),(1-i)*(bw+th),0]) cube([th,(bw*2)+(th),z_height], center=true); translate([i*(bw+th),i*(bw+th),0]) cube([th,(bw*2)+(th),z_height],center=true); }
glb/cad_a947228696a2.glb
Create a parametric hook consisting of a rectangular base plate and an attached curved arm. Start by creating a base plate 40mm high, 20mm wide, and 3mm thick, with all four corners rounded to a 3mm radius. From the top edge of this plate, extend a hook arm that is 3mm thick and 10mm long. The arm should emerge perpe...
resolution = 10; plate_height = 40; plate_width = 20; plate_thickness = 3; plate_corner_radius = 3; hook_thickness = 3; hook_length = 10; hook_tip_length = 10; plate_left_center = plate_corner_radius; plate_right_center = plate_width - plate_corner_radius; plate_bottom_center = plate_height - plate_corner_radi...
glb/cad_d117edc0155f.glb
Create a Gun Magazine Rack designed to hang from a shelf. The rack consists of a series of identical rectangular slots. For each slot, create a hollow rectangular sleeve with outer dimensions of 30mm depth, 19mm width, and 36mm height. The interior cutout of each sleeve should be 30mm deep, 15mm wide, and 35mm high, le...
ShelfThickness = 20; MagHeight = 35; MagThickness = 14; MagDepth = 30; MagPadding = .5; MagCount = 8; MagSpacing = 8; YPos = ((MagThickness + (MagPadding*2) + 4)/2); YSize =((MagThickness + (MagPadding*2) + 4))+MagSpacing; ZSize = (MagHeight + (MagPadding*2) + 2); MagRack(); module MagRack(){ for (i=[0:MagC...
glb/cad_f1110132ce87.glb
Create a Gun Magazine Rack by constructing a hollow rectangular sleeve. Start with a solid outer rectangular block that is 30mm deep, 15mm wide, and 36mm high. From this block, remove a centered inner rectangular volume to create a slot that is 30mm deep, 14mm wide, and 35mm high. The resulting shape should be an open-...
MagHeight = 35; MagThickness = 14; MagDepth = 30; MagPadding = .5; difference(){ cube([MagDepth, MagThickness + (MagPadding*2)+4, MagHeight + (MagPadding*2)+4],center = true); cube([MagDepth, MagThickness + (MagPadding*2), MagHeight + (MagPadding*2)],center = true); }
glb/cad_c0b1812550df.glb
Create a Stone Age Inset Box by starting with a solid rectangular block measuring 120mm wide, 95mm long, and 58mm high. Hollow out the center of this block to create an open container with walls 3mm thick and a base 3mm thick, leaving the top open. Divide the interior of the box into four equal compartments by adding t...
$fa = 1; $fs = 0.4; width_box=120; length_box=95; height_box=58; wall_thick_box=3; difference() { cube([width_box,length_box,height_box]); translate([wall_thick_box,wall_thick_box,wall_thick_box]) cube([width_box-2*wall_thick_box+0.01,length_box-2*wall_thick_box+0.01,height_box-wall_thick_box+0.01]); } translat...
glb/cad_e880ec184c69.glb
Create a rectangular storage box for game materials with outer dimensions of 120mm width, 95mm length, and 23mm height. The box should have a uniform wall thickness of 3mm. To create the interior compartments, remove a central rectangular volume starting 3mm from the bottom and 3mm from each outer edge, leaving a 3mm t...
$fa = 1; $fs = 0.4; width_box=120; length_box=95; height_box=23; wall_thick_box=3; difference() { cube([width_box,length_box,height_box]); translate([wall_thick_box,wall_thick_box,wall_thick_box]) cube([width_box-2*wall_thick_box+0.01,length_box-2*wall_thick_box+0.01,height_box-wall_thick_box+0.01]); } translat...
glb/cad_e09fbcb35e28.glb
Create a Stone Age Inset Box for people and cards by constructing a rectangular container with an outer width of 120mm, a length of 95mm, and a height of 58mm. Hollow out the center to create a basin with a floor thickness of 3mm and wall thicknesses of 3mm on all four sides. To divide the interior, add a longitudinal ...
$fa = 1; $fs = 0.4; width_box=120; length_box=95; length_box_cards=42; height_box=58; wall_thick_box=3; difference() { cube([width_box,length_box,height_box]); translate([wall_thick_box,wall_thick_box,wall_thick_box]) cube([width_box-2*wall_thick_box+0.01,length_box-2*wall_thick_box+0.01,height_box-wall_thick_box...
glb/cad_2eec97f51251.glb
Create a Stone Age Inset Box for dice and tools by starting with a solid rectangular block measuring 120mm in width, 95mm in length, and 58mm in height. Hollow out the interior to create an open-top container with walls 3mm thick and a base 3mm thick. To divide the interior space, add a vertical rectangular wall 3mm th...
$fa = 1; $fs = 0.4; width_box=120; width_box_tools=40; length_box=95; height_box=58; wall_thick_box=3; difference() { cube([width_box,length_box,height_box]); translate([wall_thick_box,wall_thick_box,wall_thick_box]) cube([width_box-2*wall_thick_box+0.01,length_box-2*wall_thick_box+0.01,height_box-wall_thick_box+...
glb/cad_3f08afd3e506.glb
Create a Stone Age Inset Box for food chips and cards. Start by creating a main rectangular outer shell with a width of 120mm, a length of 95mm, and a height of 58mm. Hollow out the center of this shell to create an open container with a wall thickness of 3mm on all sides and a floor thickness of 3mm. Inside this main ...
$fa = 1; $fs = 0.4; width_box=120; width_box_housecards=50; length_box=95; length_box_housecards=65; height_box=58; wall_thick_box=3; difference() { cube([width_box,length_box,height_box]); translate([wall_thick_box,wall_thick_box,wall_thick_box]) cube([width_box-2*wall_thick_box+0.01,length_box-2*wall_thick_box+...
glb/cad_42f6671d0112.glb
Create a parametric darts case consisting of a main body and a separate cover. For the main body, create three identical dart-shaped cavities. Each cavity begins with a flight section defined by a rectangular profile 38mm wide and 1mm thick, extending 45mm in length. From this, transition into a cylindrical barrel se...
$fn = 200; line_width = 0.42; barrel_diameter = 8; barrel_length = 88; tip_length = 30; tip_diameter = 3; flight_length1 = 28; flight_length2 = 45; flight_width = 38; flight_thickness = 1; base_height = 5; cover_thickness = 1; flight_diagonal_short = (flight_width-flight_thickness)/sqrt(2); flight_diagonal_long = (fl...
glb/cad_a976ef5e7313.glb
Create a soldering jig for an LED strip with a total length of 30mm and a width of 12mm. Start with a rectangular base plate 12mm wide by 12mm deep and 2mm thick. On top of this base, add two outer side walls that are 1mm thick and 1mm high, positioned to enclose the strip area. The jig features four parallel wire cha...
number = 4; wire_width = 1.5; width = 10; length = 30; length_straight = 5; mirrored = 0; straight_only = 0; module quarter_circle(radius, height) { intersection() { cylinder( height, radius, radius, false); cube([radius, radius, height]); } } function base_radius(i, radius_adder) = i * ...
glb/cad_dc4fd726be2d.glb
Create a Bundle Card Box consisting of three separate parts: a bottom box, a top cover, and a separator box. All walls should be 1.8mm thick. For the bottom box, create a rectangular shell with outer dimensions of 80mm width, 80mm height, and 182mm length. Hollow out the center starting 1.8mm from the bottom and sides...
clearance = 1.0; wall_thickness = 1.8; bottom_outer_width = 80; bottom_outer_height = 80; bottom_outer_length = 182; separator_box_outer_length = 81.5; stopper_height = 26.5; stopper_width = 1.0 + (clearance / 2.0); cutout_height = 18.0; module bottom_box() { difference() { cube([bottom_outer_width, bottom_...
glb/cad_eb3a7438c906.glb
Create a Tefifon Cassette Drive replacement part consisting of several concentric and stacked components. First, create a top part with a base diameter of 28.5mm and a height of 18.3mm. The top section is a conic beveled cylinder with a top diameter of 24mm. This part features a central cutout and three countersunk h...
include <lib_markus.scad> dz = 2.5; crosssection = true; color([0.9,0.8,0.7]) difference() { translate([0,0,dz+2.5+0.45]) top(); crosssectionCut(0.01); } color([0.6,0.6,0.6]) difference() { translate([0,0,dz-2.75]) topConnector(); crosssectionCut(0.02); } color([0.6,0.6,0.9]) difference() { translate([0,0,dz+2.5-1....
glb/cad_c955f8aa996b.glb
Create a friction-fit chassis for an LM2596-based buck converter consisting of a bottom and top shell. For the bottom shell, create a rectangular block 52.5mm wide, 28mm deep, and 12mm high. Hollow out the center to create a cavity 49.5mm wide and 23mm deep, with a base thickness of 3mm and walls 3mm thick. Cut four ...
debug = true; idiot = $preview ? .5 : 0; fn = $preview ? 12 : 31; board_x = 43.5; board_y = 21; ol_height = 3; b_height = 9; t_height = 16-b_height; walls = 3; gap = 1; bottom = 3; top = 2; hole_r = 1.5; lh_width = 4; lh_height = 5.5; tolerance_x = .05; tolerance_z = .4; pot_x = 9.5; pot_y = 4.5; pot_z = 1.5; b_wedge ...
glb/cad_ce2d7a49b98c.glb
Create a Big Rocker Switch consisting of a base and a pivoting rocker arm. First, construct the base. Create a rectangular base plate measuring 15mm by 54mm by 3mm. On top of this plate, add two mounting posts, each 10mm by 6mm by 12mm, positioned symmetrically. In the center, create a vertical pivot axle using a cyl...
difference(){ union(){ rotate([10,0,0])color("#ffffaa")rocker(); !color("#888888")base(); } translate([120,0,0])cube([40,100,100],center=true); } %translate([0,-6,-11.5])switch(); %translate([0,14.5,0])rotate([90,0,0])cylinder(2,d=5,$fn=100,center=true); %rotate([10,0,0])translate([0,17.5,0...
glb/cad_ca5685ff50e5.glb
Create a soldering support tool consisting of two concentric rings. The outer ring is a cylinder with a diameter of 50mm and a height of 10mm, and the inner ring is a cylinder with a diameter of 45mm and a height of 11mm, creating a wall thickness of 2.5mm. Positioned radially around the center, create five sets of a...
22g = 0.6; 20g = 0.91; 18g = 1.16; 16g = 1.46; 12g = 2.32; 10g = 2.93; $fn=100; wire_holes = 8; wire_holder(); module wire_holder() { difference() { union() { difference() { cylinder(h=10,d=50); translate([0,0,-0.01]) cylinder(h=11,d=45); } scale([0.75,0.75,1]) difference() { cyl...
glb/cad_22befb88a5b4.glb
Create a set of nine Word Dice game pieces. Each die is constructed by taking a cube with a side length of 16mm and intersecting it with a sphere of radius 11.1mm to create a rounded cubic shape. On each die, emboss a single character onto each of the six faces. The characters should be centered on the face and extru...
dice_letters_1 = ["E","A","O","I","U","Y"]; dice_letters_2 = ["E","A","O","I","U","E"]; dice_letters_3 = ["E","E","A","A","O","I"]; dice_letters_4 = ["E","E","T","O","I","N"]; dice_letters_5 = ["T","N","S","H","R","D"]; dice_letters_6 = ["T","N","S","H","R","D"]; dice_letters_7 = ["T","N","S","H","R","L"]; dice_letters...
glb/cad_13fc1bf43f9c.glb
Create a fuel tank cap for a Fiat Panda 30. Start by constructing a main body that is a combination of a cylinder with a radius of 15mm and a height of 15mm, merged with a larger cylinder of radius 22mm and height 4mm centered at the base. Constrain the overall width of the object to 20mm using a centered cube of 20mm ...
$fn=50; difference(){ union(){ intersection() { cylinder(4,22,22); cube([20,44,8],true); } cylinder(6,15,15); } translate([0,10,-1]){ cylinder(5,4.5,4.53,$fn=100); cylinder(30,2.75,2.83,$fn=100); } translate([0,-10,-1]){ ...
glb/cad_85c0a6c99c5e.glb
Create a fuel tank cap for a Fiat Panda 30. Start by constructing a main cylindrical base with a radius of 22mm and a height of 15mm. Centered on top of this base, add a smaller cylinder with a radius of 15mm and a height of 7mm. Cut two identical holes through the main body to accommodate fasteners; these holes shou...
$fn=50; difference(){ union(){ cylinder(7,15,15); translate([0,0,0])cylinder(4,22,22); } translate([0,10,-2]){ cylinder(30,2.75,2.83,$fn=100); translate([0,0,5])sede_dado(8,4.3,6); } translate([0,-10,-2]){ cylinder(30,2.75,2.83,$fn=100); tra...
glb/cad_f4400ad21cc3.glb
Create a fuel tank cap for a Fiat Panda 30 by constructing a torus-like ring. Start with a circle that has a radius of 1mm, positioned 20mm away from the central axis. Rotate this circle 360 degrees around that axis to create a circular ring with an outer diameter of 42mm and an inner diameter of 38mm. Finally, scale t...
$fn=150; scale([1,1,0.7]) rotate_extrude(convexity = 10) translate([20, 0, 0]) circle(r = 1);
glb/cad_e0ae39326b45.glb
Create a fuel tank cap for a Fiat Panda 30. Start by constructing a base consisting of two stacked cylinders centered on the same axis: a bottom cylinder with a diameter of 44mm and a height of 3mm, and a second cylinder on top of it with a diameter of 30mm and a height of 10mm. Add a third cylinder on top of the secon...
$fn=50; difference(){ union(){ cylinder(3,22,22); cylinder(10,15,15); translate([0,0,7])cylinder(3,22,22); } translate([18,0,0])cube([10,44,7],true); translate([-18,0,0])cube([10,44,7],true); } translate([0,0,7])rotate([90,0,0])rotate_extrude(angle=180, convexity = 10) translat...
glb/cad_afe1f90bc70d.glb
Create a CR2 battery case designed to hold four batteries in a 2x2 grid. Each battery cell is a cylinder with a diameter of 15.9mm and a height of 28mm. Construct the inner holder by creating a block that encompasses the four cells, with walls 0.8mm thick. The outer boundary of this block should be a hull encompassin...
aa_dimensions = [14.7, 51]; aaa_dimensions = [10.8, 44.5]; cr2_dim = [15.6+0.3,28]; inner_wall_thickness = 0.8; outer_wall_thickness = 0.8; inter_cell_wall = 0.8; wall_clearance_x = 0.2; wall_clearance_round = 0.25; end_thickness = 0.8; end_bevel = 0.6; epsilon = 0.01; battery_case(cr2_dim, [2, 2], false); function...
glb/cad_ea8e8d66297f.glb
Create a Rotating PCB Holder and Soldering Assistant. Start with a rectangular base measuring 150mm by 110mm with a height of 9mm. The base features a hollowed center, leaving a border of 11mm. Within this border, incorporate four circular feet at the corners, each with a radius of 8.95mm and a height of 6.55mm, contai...
borderX=150; borderY=110; screwRad=3.4/2; screwHeadRad=5.9/2; m3nutWidth=6.6; m8nutMinWidth=5.8; m3nutHeight=2.5; armWidth=14; borderWidth=11; m8nutRad=14.9/2; m8boltRad=8.2/2; m8nutHeight=6.55; footRad=m8nutRad+1.5; armHeight=5; borderHeight=9; bevel=2; knobHeight=10; knobRad=armWidth/2-1.5; notch=3; pillarBevel=1.5;...
glb/cad_448fac96e514.glb
Create a TO-92 Lead Bender tool. Start with a rectangular base block approximately 54mm long, 26mm wide, and 3.2mm thick. Carve a central cavity to accommodate a TO-92 transistor body. This cavity consists of a semi-cylindrical cutout with a radius of 2.4mm and a depth of 1.6mm, transitioning into a square section of...
lead_thickness=0.5; lead_width=0.60; lead_length=12; lead_offset=2.2; bend_start=1.75; min_line=0.40; body_width=4.8; body_height=4.8; bump_deptn=0.1; trim_excess=true; chamfer_width = max(((1.27-lead_width-min_line)/2), 0); chamfer_angle = atan2(chamfer_width, 1-lead_thickness); wedge_len = max(10, (lead_length-bend...
glb/cad_333a188b05e4.glb
Create a Window Rotary Handle Adapter consisting of a main adapter case and a separate pin ring. For the adapter case, create a rounded base with a total thickness of 8.9mm. The main body is a rounded rectangle 29mm wide and 64.5mm long with a corner radius of 14.5mm. Centered on the base, create a circular hole with ...
thickness = 1.0; slackness = 0.4; inplace = false; gap = 1.0; sensor_type=0; sensors = 1; handle_width = 29.0; handle_length = 64.5; handle_radius = handle_width/2; handle_square = 7.0; handle_hole_diameter = 10.0; handle_hole_distance = 43.0; magnet_diameter = 4.0; magnet_height = 2.0; magnet_flip = fals...
glb/cad_d3bd4eb4ef51.glb
Create a collar clamp designed to fit a 16.4mm inner diameter tube. The main body is a thick ring with a height of 12mm. The outer diameter of the ring is 26mm. Cut a wide slot through one side of the ring to create a C-shape, allowing the clamp to open. On the opposite side of the opening, integrate a hexagonal hous...
$fn = 100; $t = 0; d_inner = 16+2*0.2; H = 12; nuthole_h = 4.4; D = d_inner+2*5; D2 = 1.1*D; k = (d_inner)/16.4; d_off = 2*k; D_off = (D2-D)/2; tol = 0.01; show_bolts = false; if (show_bolts) { translate([d_inner/2+16-2,0,0]) rotate([0,-90,0]) DIN933("M5",16); } if (show_bolts) { translate([d_inner/2+d_off+tol,0,0]...
glb/cad_202e8848f2ee.glb
Create a door handle bumper with a height of 10mm. The base geometry is a flat plate containing two circular holes connected by a central bridge. First, create a solid shape by combining a circle with a diameter of 30mm, a circle with a diameter of 36mm, and a central rectangle measuring 15mm by 42mm, all extruded to t...
$fn=1000; small_diam=21; big_diam=24; wall_thickness=3; height=10; curve_adjust=1.5; linear_extrude(height) difference() { union() { translate([(small_diam+2*wall_thickness), 0, 0]) circle(d=small_diam+2*wall_thickness); circle(d=big_diam+2*wall_thickness); translate([(big_diam+2*wall_t...
glb/cad_0f2463619936.glb
Create a pump bracket by starting with a central rectangular block 70mm long, 15mm wide, and 17mm high. Attach two half-cylinders to the ends of this block, each with a radius of 7.5mm and a height of 17mm, to create a rounded oblong profile. Add two small cylindrical protrusions on top of these end-caps, each with a r...
$fn = 128; difference() { union() { translate([-35, -7.5, 0]) cube([70,15,17]); translate([-35, 0, 0]) cylinder(h = 17, r1 = 7.5, r2 = 7.5); translate([35, 0, 0]) cylinder(h = 17, r1 = 7.5, r2 = 7.5); translate([-20, 0, 17]) cylinder(h = 4, r1 =...
glb/cad_0f81b5f4cd18.glb
Create a rectangular seal for a card box with an outer length of 102.5mm, a width of 71.5mm, and a height of 1.4mm. The overall shape should be a flat, hollow frame with rounded corners. Set the outer corner radius to 8mm. To create the hollow center, remove a smaller rounded rectangle from the middle, leaving a consis...
length = 102.5; width = 71.5; height = 1.4; corner_radius = 8; wall_thickness = 1.4; module roundedBox(l, w, h, r, wt) { difference() { roundedShape(l, w, h, r); if (r > wt) { translate([wt, wt, -1]) roundedShape(l - 2*wt, w - 2*wt, h + 2, r - wt); } else { echo("...
glb/cad_cd75d4b0dc09.glb
Create a colored identifier band for Meta Quest 3 active straps by constructing a hollowed-out rectangular sleeve. Start with a solid rounded rectangular prism measuring 23.5mm in length, 5.5mm in width, and 5mm in height, applying a corner fillet radius of 1.5mm to all vertical edges. From the center of this solid, re...
difference() { rcube(x=21.5+2, y=3.5+2, z=5, fillet=1.5, center=false); rcube(x=21.5, y=3.5, z=5, fillet=1.5, center=false); } module rcube(x=10, y=10, z=10, fillet=4, center=false) { tz = center==true ? -z/2 : 0; tz(tz) linear_extrude(z) fillet(r=fillet) square([x, y], center=true); } ...
glb/cad_a180260905e6.glb
Create a "Beefier Clicker" fidget toy consisting of a main body, a lever, and an integrated spring, all scaled up by 1.5x. First, construct the body as a rounded, organic enclosure formed by the union of several overlapping cylinders and hulls. The body must feature a central vertical hole with a diameter of 4.4mm to...
$fn = 60; tolerance = 0.2; pin_size = 4; pinhole_size = pin_size + tolerance * 2; tip_size=2.4; spring_engagement = 0.2; w1 = 1.4; w = 1.2; { scale([1.5,1.5,1.5]) union() { translate([0,0,0]) color("orange") body(); translate([0,0,0]) rotate([0,0,-14.5]) color("lightblue") lever(); } } module spring...
glb/cad_960547d4a757.glb
Create a rangefinder protection ring by constructing a series of concentric cylindrical subtractions from a solid base. Start with a solid cylinder 20mm in diameter and 4mm high. From this base, remove a central cylinder with a diameter of 17mm and a height of 2.5mm, starting from the bottom face. Finally, remove a sma...
$fn = 360; difference() { cylinder(h = 4, r = 20 / 2.0, center = false); cylinder(h = 2.5, r = 17 / 2.0, center = false); cylinder(h = 4, r = 13 / 2.0, center = false); };
glb/cad_5d9e9aa740fc.glb
Create a rangefinder protection ring by starting with a main cylinder 20mm in diameter and 4mm high. Remove a concentric inner cylinder with a diameter of 17mm and a height of 2.5mm from the center of the base, and remove a second concentric inner cylinder with a diameter of 13mm and a height of 4mm to create a stepped...
$fn = 360; union() { difference() { cylinder(h = 4, r = 20 / 2.0, center = false); cylinder(h = 2.5, r = 17 / 2.0, center = false); cylinder(h = 4, r = 13 / 2.0, center = false); }; translate([-5,7.5,0]) { cube([10,1,0.6]); }; translate([-5,-8.5,0]) { cube([10,1,0.6]); }; }
glb/cad_20d34e4c8353.glb
Create a Trash Bag Roll Holder consisting of a thick, curved wall section. Start with a solid cylinder that has an outer diameter of 64mm and a height of 84mm, centered on the origin. From this cylinder, remove a smaller concentric cylinder with a diameter of 60mm and a height of 80mm to create a hollow ring with a wal...
D = 60; L = 40*2; W = 2; $fn = 100; module side() { difference() { hull() { translate([D/2+W/2,0,0]) { cylinder(d=W,h=L+2*W, center=true); } translate([-D/2-W/2,D/2+W/2]) { cylinder(d=W,h=L+2*W, center=true); } tra...
glb/cad_d786a4c802dc.glb
Create a Cotton Rounds and Nail Polish Dispenser Storage Container consisting of two open-topped cylindrical tubes joined at their bases. Both tubes should have a wall thickness of 1mm and a base thickness of 2mm. The first tube, designed for cotton rounds, must have an inner diameter of 60mm and a height of 160mm. T...
wall_thickness = 1; base_thickness = 2; finger_gap = 40; cotton_rounds_height = 160; cotton_rounds_diameter = 60; alcohol_dispenser_height = 50; alcohol_dispenser_diameter = 66; cylinder_sides = 64; module hollow_cylinder(height, cyl_diameter) { r_inner = cyl_diameter/2; r_outer = r_inner + sqrt(4/3)*wall_thickne...
glb/cad_607fcf239da7.glb
Create an air stone for a fish tank consisting of a main cylindrical body and a connecting hose fitting. The main body is a cylinder with a diameter of 15mm and a height of 10mm. This body features a wall thickness of 1.2mm. Inside this body, create a hollow cylindrical space with a diameter of 12.6mm and a height of 8...
$fn=30; tol=0.2; hose_id=6; hose_slop=0.5; fitting_l=15; wall_thick=1.2; stone_d=15; stone_h=10; hole_h=0.4; hole_w=0.4; hole_min_h_space=0.8; hole_v_space=0.4; fill_cylinder(); module fill_cylinder() { cylinder(d=stone_d-wall_thick*2-tol*2,h=stone_h-wall_thick); } module stone() { difference() { ...
glb/cad_b7c1121560b3.glb
Create a threaded screw with a head and a shaft. The head is a cylinder with a diameter of 5mm and a height of 3mm, centered on the Z-axis. Around the perimeter of this head, add 6 small cylindrical knobs, each with a diameter of 1mm and a height of 3mm, spaced evenly every 60 degrees. Attached to the head is a centra...
$fn=180; use <threads.scad>; include <TowerVars.scad>; BoltTol = .05; union() { translate([0,0,ShaftLength/2+HeadDepth-.5]) cylinder(h=ShaftLength+.5, d=ScrewHoleDia, center=true); translate([0,0,HeadDepth/2]) { cylinder(h=HeadDepth, d=HeadDia, center=true); for(r=[0:360/Knobs:359]) { rotate([0,0,r]) ...
glb/cad_6adb8339e110.glb
Create a Pachinko Tower component by starting with a solid cylindrical blank unit. The unit has a total depth of 12mm and a diameter of 40mm. Within this cylinder, create a series of vertical holes to accommodate pegs. Each hole is a cylinder with a diameter of 3mm and a height that exceeds the unit depth to ensure a...
$fn=180; include <TowerVars.scad>; use <TowerBlankUnit.scad>; module Holes() { translate([HoleXSep/2,UnitWidthCenter+HoleYSep,UnitDepth/2]) cylinder(h=UnitDepth+2,d=PegHoleDia,center=true); translate([HoleXSep/2,UnitWidthCenter-HoleYSep,UnitDepth/2]) cylinder(h=UnitDepth+2,d=PegHoleDia,center=true); translate(...
glb/cad_3b66866ecbc2.glb
Create a Pachinko Tower with poker chip-sized gear dice. First, construct the gear-shaped dice. Each die is a thin cylinder with a thickness of 3mm. The outer edge features a series of alternating convex and concave arcs to create a gear profile. On the top face, extrude a central number and a series of outer numbers...
$fn = 90; include <DiceVars.scad>; module Pips(AS) { SinAng=sin(AS/2); CosAng=cos(AS/2); CcCX = DieRadius-CvR-CcR; CcCY = 0; CvCX = DieRadius*CosAng; CvCY = DieRadius*SinAng; TPR = CvR/(CcR+CvR); TP = [(CvCX)-((CvCX-CcCX)*TPR),(CvCY)-((CvCY-CcCY)*TPR)]; CcDTPX = TP[0]-CcCX; ...
glb/cad_50ccbd1f30bd.glb
Create a cylindrical container consisting of a cup and a matching lid. First, construct the cup as a hollow cylinder with an outer radius of 22.75mm and a total height of 6.33mm. The walls and the base should have a thickness of 2mm. The interior cavity is a cylinder with a radius of 20.75mm and a height of 4.33mm, c...
$fn=90; include <TowerVars.scad>; include <DiceVars.scad>; CupRadius = DieRadius+CvR+.75; CupThkns = 2; CupHeight = UnitHeight/3-CupThkns*2; LipHeight = 2; module Cup() { difference() { union() { cylinder(h=CupHeight,r=CupRadius, center=true); } translate([0,0,(CupThkns+.1)/2]) cylinder(h=CupHeight-Cu...
glb/cad_ffa01ef5932a.glb
Create a Blank Unit for a Pachinko Tower. The main body is a rectangular block with dimensions of 20mm in height, 12mm in width, and 12mm in depth. Subtract from this main block three specific geometric sections. First, remove a central rectangular volume of 20mm by 4mm by 12mm. Second, remove two outer rectangular v...
$fn=90; use <threads.scad>; include <TowerVars.scad>; module EdgeGuide(Grove=true) { TBWidth = SlideDepth; TBHalfWidth = TBWidth/2; TBLength = SlideWidth; rotate([-90,0,0]) translate([0,0,TBLength/2,]) rotate([0,0,45]) if(Grove) {cube([TBHalfWidth,TBHalfWidth,TBLength],center=true);} else {cube([TBHalf...
glb/cad_a887a2f5d184.glb
Create a small cylindrical peg with a total length of 12mm and a diameter of 3mm. The main body of the peg is a cylinder, but the two flat ends are modified with a slight chamfer. Specifically, at each end of the 12mm length, create a conical transition with a height of 0.25mm that tapers the diameter from 3mm down to ...
$fn=90; PegLength = 12; PegDia = 3; PegChamferDia = PegDia-.5; PegChamferLength = .25; Sin30=.5; Cos30 = .866; Cos15 = .966; module PegRound() { cylinder(d=PegDia, h=PegLength-(2*PegChamferLength),center=true); translate([0,0,(PegLength-PegChamferLength)/2-.01]) cylinder(d1=PegDia, d2=PegChamferDia,h=PegChamferL...
glb/cad_dd9e93dfa2d8.glb
Create a Pachinko Tower Bottom designed to catch and guide poker-chip-sized dice. Start by constructing a main body that combines a rectangular base with a vertical support structure. The primary volume is defined by a union of two rectangular blocks: one measuring 10mm by 10.2mm by 20.2mm, and a second smaller block m...
$fn=180; include <TowerVars.scad>; use <TowerMid.scad>; module DieCatcher() { difference() { union(){ translate([UnitHeight-HoleXSep,SideWidth-.1,UnitDepth/2-.1]) cube([HoleXSep,SlideWidth+.2,SlideDepth+.1]); translate([UnitHeight-HoleXSep*1.5+.1,SideWidth-PegHoleDia/2+.1,UnitDepth/2-.1]) cube([HoleX...
glb/cad_90acc271330a.glb
Create a bottom pin for a pannier mount. Start by creating a central vertical shaft with a diameter of 10mm and a total height of 14.4mm. At the base of this shaft, add a wider cylindrical head with a diameter of 18.5mm and a height of 4.4mm. To refine the transition between the head and the shaft, apply a 0.8mm chamfe...
$fn=72; h1=10; h2=4.4; d1=10; d2=18.5; di=5; dI=10; ch=0.8; difference(){ union(){ cylinder(h=h1+h2,d=d1); hull(){ translate([0,0,ch]) cylinder(h=h2-2*ch,d=d2); cylinder(h=h2,d=d2-2*ch); } } translate([0,0,-1]) cylinder(h=h1+h2+2,d=di); translate([0,0,-1]) cylinder(d1=dI+2,d2=0,h=dI/2+1)...
glb/cad_b701226c1560.glb
Create a Configurable Router Template Set consisting of a rectangular main body with a central cutout. The main body is a rectangular prism measuring 150mm in length, 120mm in width, and 10mm in height, centered on the origin. In the center of this body, create a slot-shaped hole that passes completely through the he...
D_T = 10; D_CR = 22; Template_Length = 60.0; Template_Width = 10.0; T_Off = D_CR - D_T; Length = 150; Width = 120; Height = 10; Offset_X = 0; Offset_Y = 0; Clamp_Sides = true; $fn = 360; difference(){ translate([Offset_X,Offset_Y,0]){ cube([Length,Width,Height],center=true);} union(){ translate...
glb/cad_5ee80db6e1fa.glb
Create a Configurable Router Template consisting of a rectangular main body and a central circular cutout. The main body is a rectangular prism measuring 150mm in length, 120mm in width, and 10mm in height, centered on the origin. At the center of the top face, create a circular hole with a diameter of 62mm (calculat...
D_T = 10; D_CR = 22; D_Hole = 45; D_Temp = D_Hole+ D_CR - D_T; Length = 150; Width = 120; Height = 10; Offset_X = 0; Offset_Y = 0; Clamp_Sides = true; $fn = 360; difference(){ translate([Offset_X,Offset_Y,0]){ cube([Length,Width,Height],center=true);} union(){ translate([-Length,-0.5,Height/2-0....
glb/cad_da288ee212ef.glb
Create a Configurable Router Template consisting of a rectangular main body and a central rectangular cutout. The main body is a rectangular prism measuring 150mm in length, 120mm in width, and 10mm in height. In the center of this body, create a rectangular hole that passes completely through the height of the block...
D_T = 10; D_CR = 22; Template_Length = 80; Template_Width = 60; T_Off = D_CR - D_T; Length = 150; Width = 120; Height = 10; Offset_X = 0; Offset_Y = 0; Clamp_Sides = true; $fn = 360; difference(){ translate([Offset_X,Offset_Y,0]){ cube([Length,Width,Height],center=true);} union(){ translate([-L...
glb/cad_a85d07674767.glb
Create a breadboard potentiometer knob by constructing a truncated cone with a height of 10mm, a base diameter of 12mm, and a top diameter of 10mm, using a 40-facet resolution for the circular profiles. Bore a cylindrical hole through the center of the knob with a diameter of 6.4mm and a depth of 2mm. On the top surfac...
height = 10; diameter_1 = 12; diameter_2 = 10; knob_text = "10k"; font = "lexigulim:style=Bold"; font_size = 2.8; marking_height = 0.5; marker = "dot"; raised = false; fn = 40; module draw_marking(label_text, font, size, mark_height, marker){ translate([0, - size / 5, 0]) linear_extrude(height = mark_height) ...
glb/cad_5528addff27b.glb
Create a TeensyBat box back cover. Start with a rectangular base measuring 115.01mm in length, 66.5mm in width, and 5mm in height. The main body is a hollowed-out shell with walls 2mm thick. The outer edges of the base should have a slight taper of 1mm. At each of the four corners, create a cylindrical screw mount. Ea...
$fn = 32; caseWidth = 66.5; caseLength = 115.01; caseHeight = 5.0; caseWallThick = 2.0; caseTaperReduc = 1.0; sideHoleDiam = 3.2; sideCylinderDiam = 7.5; sideHoleOffsetX = 6.8; sideHoleOffsetY = 7.3; backHoleZOffset = 1.0; ridgeDiam1 = 4.8; ridgeDiam2 = 4.3; ridgeHeight = 1.5; module screwHead() { headHight = 2...
glb/cad_eaf20da9b2c8.glb
Create a rotary knob for a TeensyBat detector. Start with a main cylindrical body 8.5mm in diameter and 12mm in height. Add a thin circular rim at the base with a diameter of 10.5mm and a height of 1mm. Round the top edge of the main cylinder using a 2mm diameter spherical profile. To create the grip, add 24 evenly sp...
$fn = 32; axisDiam = 6.3; axisCutOutDiam = 4.75; axisCutoutZoffset = 2.0; axisHeight = 9.0; knobDiam = 8.5; knobHeight = 12.0; rimDiam = 10.5; rimHeight = 1.0; topRoundDiam = 2.0; knurlDiam = 1.0; knurlDepth = 0.25; module axis() { cutoutOffset = (axisDiam - axisCutOutDiam) ; difference() { cylinder(...
glb/cad_ef221edf02ea.glb
Create a TeensyBat push button cap. Start by constructing a main cylindrical body with an outer diameter of 6.1mm and a height of 6.75mm. At the base of this cylinder, add a wider circular rim with a diameter of 8.0mm and a height of 1.0mm. The top of the main cylinder should be rounded with a radius based on a 2.0mm d...
$fn = 32; outerDiam = 6.1; innerDiamTop = 3.4; innerDiamBottom = 3.6; height = 6.75; pinHeight = 7.25; rimDiam = 8.0; rimHeight = 1.0; topRoundDiam = 2.0; difference() { union() { cylinder(d = outerDiam, h = height); cylinder(d = rimDiam, h = rimHeight); translate([0, 0, height]) topRoundi...
glb/cad_7f5fc50a302d.glb
Create a hollow cylindrical standoff with an outer diameter of 6mm and a total height of 15mm. Bore a concentric hole through the center of the cylinder with a diameter of 2.6mm to create a tube. Ensure the circular faces have a resolution of 64 facets to maintain a smooth curved surface.
$fn = 64; outerDiam = 6.0; innerDiam = 2.6; length = 15.0; difference() { cylinder(d = outerDiam, h = length); cylinder(d = innerDiam, h = length); }
glb/cad_77d6316505ba.glb
Create a low-poly flowerpot by extruding a hexagonal ring. Start with a 6-sided polygon base with an outer diameter of 115mm and an inner diameter of 113mm, creating a wall thickness of 1mm. Extrude this shape vertically to a total height of 98mm. During the extrusion, apply a linear scale so the top outer diameter rea...
top_dimeter=120; bottom_diameter=100; h = 96; base_thickness = 2; wall_thinkness = 1; edges = 6; top_d = top_dimeter * 1.15; bottom_d = bottom_diameter * 1.15; $fn=edges; total_h = h + base_thickness; translate([0,0,total_h/2]) linear_extrude( height = total_h, twist = 110, scale = top_d...
glb/cad_d60b973183d2.glb
Create a low-poly pot by extruding a 25-sided regular polygon. The pot should have a base thickness of 2mm and an inner height of 96mm. The bottom of the pot is a 25-sided prism with a diameter of approximately 97.8mm (calculated as 100mm multiplied by the cosine of 180/25). Extrude this polygon upwards to a total he...
top_dimeter=120; bottom_diameter=100; height = 96; base_thickness = 2; wall_thinkness = 1; k = 25; levels = 32; l = k/levels; top_d = top_dimeter * cos(180/k); bottom_d = bottom_diameter * cos(180/k); color("gray") { translate([0,0,height/2 + base_thickness/2]){ linear_extrude( height = height + base_...
glb/cad_5a21badfd444.glb
Create a vial rack consisting of a solid block with a rounded rectangular footprint. The overall body is formed by the convex hull of four cylinders, each with a diameter of 14.6mm, positioned at the corners of a grid. These corners are located at (0,0), (25.2,0), (0,12.6), and (25.2,12.6) in mm, and the entire block h...
X = 3; Y = 2; PV = 11.6 + 1; WA = 2; VO = 1; SD = 0.8; HD = 15.6; RO = PV + WA; $fn = 120; translate([RO/2,RO/2,0]) difference(){ Base(); for (XX = [0:1:X-1]) for (YY = [0:1:Y-1]) translate([XX*RO,YY*RO,1]) cylinder(SD+HD, d = PV); } module Base(){ hull(){ translate([0,0,0]) ...
glb/cad_ad528e0e89ad.glb
Create a filament swatch for GST3D PLA+ colors. Start with a rounded rectangular base measuring 79.5mm in width, 30mm in height, and 2.2mm in thickness, with a corner radius of 5mm. On the top surface, add embossed text. In the upper right area, place the text "GST3D PLA+" with a font size of 5mm. In the lower left a...
textstring1="GST3D PLA+"; textsize_upper=5; textstring2="210C"; textstring3="Orange"; textsize_lower=5; texttop_predefined="P L A"; texttop_configurable=""; fontname="Pathway Gothic One"; text_type="embossed"; test_patterns="disabled"; test_circles=5; steps_thickness=[0.2, 0.4, 0.6, 0.8, 1.0, 1.2, 1.4, 1.6, ...
glb/cad_f75241a3307e.glb
Create a filament swatch for California Filaments PETG. Start with a base rectangular plate measuring 79.5mm in width, 30mm in height, and 2.2mm in thickness, with corners rounded to a 5mm radius. On the top surface, add embossed text. In the upper right area, place the text "CA Filament PETG" with a font size of 5mm....
textstring1="CA Filament PETG"; textsize_upper=5; textstring2="240C"; textstring3="Orange"; textsize_lower=5; texttop_predefined="P E T G"; texttop_configurable=""; fontname="Pathway Gothic One"; text_type="embossed"; test_patterns="disabled"; test_circles=5; steps_thickness=[0.2, 0.4, 0.6, 0.8, 1.0, 1.2, 1....
glb/cad_72d2fc5935a3.glb
Create an adjustable laptop stand consisting of a rectangular base and two vertical support dividers. Construct the base as a rounded rectangular slab with dimensions 140mm in length, 120mm in width, and 8mm in height, featuring a corner radius of 4mm. Within this base, create three equidistant slots to accommodate h...
include <MCAD/boxes.scad> Number_Of_Slots=3; Screw_Thread_Length=14; Screw_Thread_Diam=3.9; Screw_Head_Length=4; Screw_Head_Diam=7; Washer_Length=0.93; Washer_Diam=8.78; Nut_Length=6.91; Nut_Width=7.78; Nut_Height=2.95; Base_Length=140; Base_Width=120; Base_Height=8; Base_Corner_Radius=4; Support_Width=110; Suppor...
glb/cad_c39012e4e354.glb
Create an Amscope to camera module adapter consisting of two threaded sections connected by a central separator. First, create a male screw thread at the base with an outer diameter of 26.13mm, a pitch of 0.75mm, and a length of 4mm. Above this, add a separator section 3mm in height with an outer diameter of 26.79mm....
include <openscad_libs/polyScrewThread_r1.scad> $fn = 200; PI=3.141592; INCH=25.4; correction=1.005; scope_thread_length=4; scope_thread_od=26*correction; scope_thread_step=0.75; scope_thread_lf0=30; separator_length=3; separator_od=scope_thread_od*1.03; cam_thread_length=4; cam_thread_od=INCH*correction; cam_thre...
glb/cad_08e76bf15c73.glb
Create a printer bed model for the EasyThreed K7. Start by constructing a thin square plate with a thickness of 1mm and overall dimensions of 120mm by 120mm. Round each of the four corners with a radius of 5mm. At each of the four rounded corners, center a circular hole with a diameter of 6mm that passes completely thr...
$fn=100; w=120; r=5; rhole=3; h=1; e=0.1; ey=5; ex=40; d=(w-2*r)/2; difference(){ hull() { translate([-d,-d,-h])cylinder(r=r, h=h); translate([-d,d,-h])cylinder(r=r, h=h); translate([d,-d,-h])cylinder(r=r, h=h); translate([d,d,-h])cylinder(r=r, h=h); } translate([-d,-d,-h-e])...
glb/cad_d6995bcbb4f7.glb
Create a handle for a nut driver. Start with a central cylinder 60mm high with a radius of 10mm. Cap both flat ends of this cylinder with hemispheres of the same 10mm radius to create a capsule shape. At the top end of the handle, create a hexagonal socket hole. The hole begins 50mm from the bottom of the main cylind...
$fn = 100; module generate_handle(cylinder_height, cylinder_radius) { cylinder(h = cylinder_height, r = cylinder_radius, $fn = $fn); translate([0, 0, 0]) sphere(r = cylinder_radius, $fn = $fn); translate([0, 0, cylinder_height]) sphere(r = cylinder_radius, $...
glb/cad_6833353359ed.glb
Create a parametric battery tray by constructing a series of 16 identical rectangular cells joined side-by-side. Each cell is a solid block measuring 10.2mm wide, 46mm deep, and 3mm high. From each cell, remove a central vertical cylinder with a diameter of 44mm and a height of 46mm, centered at 5.1mm from the side and...
BattDiam = 10.2; BattLength = 44; HoleDiam = (BattLength/2)/5; HoleSpacing = (BattLength/2)/4; TrayDepth = BattLength + 2; NumBatt = 15; TrayHeight = 3; for(a = [0:NumBatt]) translate([BattDiam * a, 0, 0]) difference(){ cube([BattDiam, TrayDepth, TrayHeight], false); rotate([90, 0, 0]) ...
glb/cad_411f391816f1.glb
Create a bag tag by starting with a rounded rectangular base measuring 54mm wide and 85.6mm high, with a thickness of 1mm and corner radii of 5mm. Cut a horizontal slot through the center of the base near the bottom. This slot should be 8mm wide and 2.5mm high, positioned 5mm from the bottom edge. The slot consists o...
width = 54; height = 85.6; radius = 5; thickness = 1; slot_width = 8; slot_height = 2.5; slot_offset = 5; slot_radius = slot_height/2; text_size = 20; text_offset_between_lines = 8; text_thickness = 1.1; $fn = 100; module rounded_square(width, height, radius) { hull...
glb/cad_c7aa4d920c38.glb
Create a vacuum guard hose adapter consisting of three coaxial sections: a narrow end, a transition middle, and a wide end. The narrow end is a hollow cylinder with an outer diameter of 30.3mm, a wall thickness of 1.2mm, and a total height of 10mm. The bottom edge is rounded with a 1mm fillet. Inside this section, at...
Inner_wide_diameter = 31; Outer_narrow_diameter = 30.3; Length_wide_end = 25; Length_narrow_end = 10; Length_middle_section = 25.0; Wall_thickness = 1.2; Fillet_radius = 1.0; filletRadius = min(Fillet_radius,Wall_thickness); Wall_width = Wall_thickness - filletRadius*2; filletHeight = filletRadius+0.1; Make_ho...
glb/cad_3a7e2af91163.glb
Create a Gridfinity storage bin and lid system with a footprint of 2x2 grid units (42mm x 42mm). For the bin, construct a 2x2 grid-based container with a total height of 3 units (approximately 21mm of storage height plus the base). The bin should feature a standard Gridfinity base and a hollow interior. Divide the in...
include <gridfinity-rebuilt-openscad/gridfinity-rebuilt-utility.scad>; $fa = 8; $fs = 0.25; Part = "both_closed"; gridx = 2; gridy = 2; gridz = 3; Interior_Style = "minimal"; Lip_Grips = "xy"; Lid_Orientation = "left"; div_pattern = "default"; divx = 6; divy = 6; div_multiple = 2; gridz_define = 0; height_i...
glb/cad_25a5f08f09f5.glb
Create a rim for a washing and curing station turntable by constructing a thin, hollow cylinder. Start with a solid cylinder that has a diameter of 167mm and a height of 6mm. Remove a concentric inner cylinder with a diameter of 162mm and the same 6mm height to create a wall thickness of 2.5mm. Finally, carve out a cen...
difference() { cylinder($fn=360,h=6,d1=167, d2=167); cylinder($fn=360,h=6,d1=162, d2=162); translate([0,0,2]) { cylinder($fn=360,h=6,d1=165, d2=165); } }
glb/cad_72276d92ede8.glb
Create a bracket for an electronics box relocation. Start with a base rectangular block measuring 249mm in length, 16mm in width, and 6mm in height. Add a second rectangular section on top of this base, starting 2mm from the front edge, with dimensions of 247mm by 20mm and a height of 3mm, positioned 17mm up from the b...
module cutout(hole_location_x) { cutout_size = 17; translate([ hole_location_x - (cutout_size / 2), -1, -1 ]) cube([ cutout_size, 20, 4 ]); translate([ hole_location_x, 7.5, -1 ]) cylinder(r = 2.5, h = 10, $fn = 100); translate([ hole_location_x, 7.5, 15 ]) cylinder(r = 4, h = 10, $fn = 100); } module ...
glb/cad_3c9c11540a69.glb
Create an electronics box relocation clip by constructing a base plate and an attached vertical wall. Start with a main rectangular base measuring 60mm in length, 15mm in width, and 3mm in thickness. On one end of this base, add a vertical rectangular block that is 3mm wide, 15mm deep, and 18mm high. To create the mo...
module top(){ translate([0,0,-2]) cube([43,15,5]); translate([0,0,-3.5]) cube([60,15,3]); translate([42,0,-3.5]) cube([60-42,55,3]); translate([0,0,-3.5]) linear_extrude(height = 6.5) polygon(points = [[3,15], [42,55],[43,55], [43, 15]]); } module clip() { difference(){ top(); translate([53,7.5,-10]) cylinder(r=2.25...
glb/cad_206fd5766774.glb
Create a periodic table pencil holder by constructing a hollow cylinder with an outer diameter of 75mm and a wall thickness of 2.5mm. The cylinder should have a flat base with a thickness of 3mm. The main body of the cylinder is perforated with a spiral pattern of hexagonal holes. Each hexagon has a radius of approxim...
use <MCAD/regular_shapes.scad> $fn = 250; function exists(i) = !( (i < 0 || i > 161) || (i > 0 && i < 17) || (i > 19 && i < 30) || (i > 37 && i < 48) || (i > 125 && i < 128) || (i > 142 && i < 146) ); function shiftLaAc(i) = (i >= 128 && i <= 142) || (i >= 146)...
glb/cad_52d665b515ba.glb
Create a PCB and battery mount consisting of a rectangular base plate measuring 105mm by 100mm with a thickness of 2mm. In the center of this plate, carve out a rectangular cavity measuring 92mm by 61.5mm with a depth of 6.5mm to house a battery. On the top surface, add four cylindrical mounting posts for a PCB. Each...
$fn=50; base_height= 2; pcb_mount_h = 6; pcb_mount_hole_d=3; x_bat=92; y_bat=61.5; z_bat=6.5; x_total=105; y_total=100; mount_hole_offset=8; mount_hole_d=4.5; module high_cylinder() { r = pcb_mount_hole_d/2; difference(){ cylinder(base_height + pcb_mount_h, r+2,r+2); cylinder(base_height+1 +pcb_mo...
glb/cad_b4ab0e510c8d.glb
Create a parametric magnetic latch. Start with a main rectangular body with rounded corners, measuring 12mm in width (X), 20mm in height (Y), and 11mm in depth (Z). On the back side, add a footer that is 6mm wide and 2mm deep to allow the latch to lock into a profile. Create a vertical hole through the center of the ...
minSizeX = 0; minSizeY = 20; minSizeZ = 0; magnetRadius = 3; magnetHeight = 2; screwRadius = 2.5; screwMargin = 5; numberOfScrews = 1; footerY = 6; footerZ = 2; thickness = 1; frontThickness = 0.4; rounding = 1; extractionRadius = 0.5; partGap = 0.2; epsilon = 0.001; $fn = 15; screwHoleRadius = screwRadius+partGap/2; ...
glb/cad_ccd91380cebe.glb