Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a LED strip clip by starting with a rectangular base measuring 16mm wide, 10mm long, and 3.5mm thick. Carve a rectangular channel through the center of the base along its entire length, leaving 2mm thick walls on each side; this channel should be 12mm wide, 20mm long, and 1.5mm deep. At one end of the clip, crea...
STRIP_WIDTH = 12.0; STRIP_THICKNESS = 1.5; CLIP_LENGTH = 10; THICKNESS = 2; HOLESIZE_UP = 6; HOLESIZE_DOWN = 3; difference() { translate([-THICKNESS, 0, 0]) cube(size=[STRIP_WIDTH+THICKNESS*2, CLIP_LENGTH, STRIP_THICKNESS+THICKNESS]); translate([0, -0.01, -0.1])cube(size=[STRIP_WIDTH, CLIP_LENGTH*2, STRIP_THICKNESS+...
glb/cad_57bef6e847bf.glb
Create a Vacuum Holder Switch by constructing a composite geometric form. Start with a primary vertical body consisting of a 9-sided polygonal prism (cylinder with 9 facets) that is 31mm tall, tapering from a 5mm radius at the base to a 3.5mm radius at the top. Attach a rectangular block to this prism measuring 12mm wi...
difference() { union () { cylinder(h=31,r1=5, r2=3.5, $fn=9); translate([-3,-2.25,0]) rotate([0,0,90]) cube(size=[4.5,6,27]); translate([-15,0,17.5]) cube(size=[12,18,35],center=true); } translate([-12,0,-3]) rotate([0,0,-90]) union () { translate([0,-1.25,14.5]) cube([13,2.5,29],center=true); translate([0,-1.25,29])...
glb/cad_c50898ba764b.glb
Create a Logitech Webcam Tripod Mount adapter. Start with a base rectangular block with rounded corners of 3mm, measuring 48mm wide by 33mm deep and 10mm high. Centered on top of this base, add a smaller rectangular riser that is 32mm wide and 22mm deep, with a height of 9mm and corner radii of 3mm. Cut a complex void...
use <threads.scad>; inchesPerMillimeter=0.03937008; cameraBracketCenterThickness=13; cameraBracketWidth=38; lowerThickness=5; sideThickness=6; bracketDepth=33; bracketSideRadius=6.4; bracketBumpRadius=2.25; bracketBumpCenterToCenter=28; cornerRoundnessRadius=3; screwMountBodyDepth=bracketDepth*2/3; screwMountDep...
glb/cad_036678aff53a.glb
Create a set of Pan Pipes consisting of several hollow tubes of varying lengths, arranged side-by-side in a row. Each tube is a 7-sided prism with an inner radius of 5mm and a wall thickness of 1.5mm. The length of each tube is determined by the formula: Length = (343,000 / Frequency / 4) - 8.2mm. Construct tubes for...
module pipe(rin,wall,band,length,num_sides,adhesion) { rout = rin+wall; rad_flat = rout*cos(360/(num_sides*2)); ang_max = (round(num_sides/4-0.51)+0.5)*360/num_sides; x_max = abs(rout*sin(ang_max)); z_band = rad_flat+rout*sin(ang_max-90); even = abs(num_sides%2 - 1); odd = abs(num_sides%2); ...
glb/cad_94cf4b144a89.glb
Create a Pan Whistle consisting of a series of resonant tubes and a shared mouthpiece. For each tube, create a hollow prism with 7 sides, an internal radius of 5mm, and a wall thickness of 1.5mm. The length of each tube is determined by the frequency of a B4 to B5 major diatonic scale, calculated as a quarter wavelengt...
module fillet(X, Y, Z, theta) { difference() { translate ([ 0, 0, (Z+X*tan(theta))/2]) cube(size=[ X, Y, Z+X*tan(theta)], center=true); translate ([ 0, 0, Z+(X*tan(theta))]) rotate([ 0, theta, 0]) cube(size=[ (2*X)/cos(theta), Y+2, (X+0.1)*sin(theta)], center=true)...
glb/cad_00b5e83c3430.glb
Create a "MMU2s Virtual Colours" test plate. Start with a rectangular base plate measuring 100mm by 115mm with a thickness of 0.3mm. On top of this base, arrange a grid of squares. Each square in the grid should be 15mm by 15mm. The grid is surrounded by a 5mm border. Within this grid, create a series of solid squa...
ExtruderStart = 1; ExtruderEnd = 5; LayerHeight1 = 0.3; LayerHeight = 0.4; Base = 1; TextLayer = 2; TextExtruder = 1; BaseExtruder = 2; SquareSize = 15; Border = 5; LineWidth = 0.6; GapWidth = 0.3; echo("Extruder Start End:",ExtruderStart,ExtruderEnd); module Solid(x,y,z,xs,ys,zs,c,a) { translate([x,y,z]) co...
glb/cad_90ed3551cbe7.glb
Create a Layer Translucency Color Mixing test model consisting of a rectangular base and a decorative extruded profile on top. Start by creating a rectangular base block that is 80mm wide, 20mm deep, and 0.56mm high (calculated from 7 layers at 0.08mm each). On top of this base, add a second geometric element that is...
epsilon=0.001; layer_height=0.08; base_layers=7; module the_shape(){ polygon([ [0,0],[0,5],[4,5],[4,4+epsilon],[4-epsilon,4],[3,4],[3,3],[2,3],[2,2],[1,2],[1,0] ]); polygon([ [4,0],[4,4-epsilon],[4+epsilon,4],[5,4],[5,3],[6,3],[6,2],[7,2],[7,0] ]); } module the_colors(){ color("blu...
glb/cad_6b10619466e2.glb
Create a Menger Sponge fractal on a cylindrical base. Start by creating a solid cylinder with a radius of 5mm and a height of 10mm to serve as the stand. Centered on top of this stand, place a Menger Sponge cube with a total side length of 30mm. The cube should be rotated 45 degrees around the Z-axis and tilted backwar...
union() { cylinder(5, 10, 10, $fn=360); translate([0,0,sqrt(3)*15]) rotate([0,atan(sqrt(2)),0]) rotate([0,0,45]) menger(30, 3); } module menger(size, depth) { difference() { cube(size=size, center=true); for (v=[[0,0,0], [90,0,0], [0,90,0]]) { rotate(v) holes(depth, size, size); ...
glb/cad_242ea847bb8a.glb
Create a Sierpinski Tetrahedron with a recursive depth of 4 and a base side length of 60mm. The fractal structure should be inverted so that it tapers downward to a single point. To ensure stability, place the entire fractal on a cylindrical base with a diameter of 5mm and a height of 5mm, centered under the lowest poi...
l = 60; overlap = 2; depth = 4; union() { h = l * sqrt(6) / 3; cylinder(5, 10, 10, $fn=360); rotate([180, 0, 0]) translate([0, 0, -h]) sierpinski(l, depth, overlap); }; module sierpinski(l, depth, overlap) { union() _sierpinski([ [-l/2, -l/4, 0], [l/2, -l/4, 0], [0, l*sin(60)-l/4, 0], [0, 0, l * s...
glb/cad_eafe274a89c8.glb
Create a cubic block for Lego Technic connections with overall dimensions of 8mm x 8mm x 8mm. From this solid cube, remove a series of intersecting cylindrical holes that pass through the center of each face along the X, Y, and Z axes. Each axis should feature a primary central hole with a diameter of 4.9mm. To creat...
$fn=64; rozestup= 8; prumer=4.9; z_prumer=6.3; z_hloubka=0.8; osaX = 1; osaY = 1; osaZ = 1; zaobleni = 1; zaoblit=false; module zaobleni () { hull () { translate ([zaobleni,zaobleni,zaobleni]) sphere(zaobleni); translate ([zaobleni,osaY*rozestup-zaobleni,zaobleni]) sphere(zaobleni); translate ([osaX*rozestup-zaobl...
glb/cad_af3072284ec1.glb
Create a parametric S-hook with a uniform thickness of 15mm and a width of 60mm. The object consists of a central vertical rectangular section with a length of 90mm. At the bottom of this section, create a 90-degree curved bend with a radius of 10mm that leads into a horizontal arm. This arm extends for 40mm and termin...
type = "fillet"; fillet = 1; chamfer = 5; is_S_hook = true; length1 = 90; width = 60; radius1 = width/2; thickness = 15; vertical_hook = 20; horizontal_length = 40; hookRadius = 10; is_rounded = true; vertical_hook2 = 20; horizontal_length2 = 40; hookRadius2 = 10; is_rounded2 = true; diameter = 6; coun...
glb/cad_a2451a91aef3.glb
Create a GoPro Battery Box consisting of two matching parts: a top cover and a bottom base. Both parts are based on a rectangular body with a wall thickness of 1mm. For the bottom base, create a rectangular shell with outer dimensions of 36mm width, 46mm length, and 32mm height. Inside this shell, create three separat...
BATDEPTH = 14; WIDTH = 34; THICK = 1; HEIGHT = 40; BATTERY_NO = 3; CREATE_TOP = true; CREATE_BOTTOM = true; module body(width, length, heigth, thickness){ difference() { cube([width,length,heigth]); translate([width/2,(length/2),heigth])scale([01,1.2])rotate([90,0,0])cylinder( length/1.5, d=width*0.8, center=t...
glb/cad_058e714c71ce.glb
Create a picture frame by starting with a solid rectangular block measuring 80mm wide, 120mm high, and 10mm thick, centered on the origin. Carve out a central rectangular opening measuring 50mm wide and 90mm high that passes completely through the block. To create a recessed area for the image, remove a centered rectan...
b=80; h=120; d=10; b1=50; h1=90; difference(){ difference(){ difference() { cube([b,h,d], center = true); cube([b1,h1,d], center = true); } translate([0,0,2.5]) cube([b1*1.13,h1*1.13,5], center = true); } translate([0,(h/2)-d,10]) cylinder(20, 5, center = true); translate([(b/2)-d,0,10]) cylinder(20, 5, center = ...
glb/cad_7adc605992f9.glb
Create a Geberit Valve Nut Driver consisting of a cylindrical base and a tapered hexagonal handle. Start by creating a main cylindrical body with a radius of 16.5mm and a height of 17mm. Inside this cylinder, remove material to create a socket by subtracting ten small cylinders, each with a radius of 5mm and a height o...
HandleLen=101; recess=22; fn=36*3; HeightKnob=17; module crown() { offcenter=16.9; radius=5; for(angle = [0 : 36 : 360-1]) { rotate(a=[0,0,angle]) translate(v=[offcenter, 0, 0]) cylinder(r=radius, h=HeightKnob*1.1, $fn=fn/2); } } module GeberitReplicaKnob() { od=26.55; ...
glb/cad_d87cf16bf2d5.glb
Create a Homefruit test fixture shim, which is a thin, flat rectangular plate with rounded corners. The main body is a square measuring 26mm by 26mm with a thickness of 1mm. The corners of this square should be rounded with a radius of 3mm. Centrally locate four circular holes within this plate. These holes are arrang...
do_shim = 1; shim_height = 1.0; toggle_offset = 25.4; toggle_height = 17; $fs = .02; function in(x) = x * 25.4; module featherholes() { for(x=[in(.1), in(1.9)]) for(y=[in(.1), in(0.8)]) translate([x,y]) children(); } module doublerholes() { for(y=[in(0), in(0.95)]) translate([0,y]) feath...
glb/cad_d1f5d464c91e.glb
Create a greenhouse shelf for an Irrigatia solar irrigation device. Start by constructing a solid rectangular base with overall dimensions of 146.4mm in length, 68.6mm in width, and 7.4mm in height. Hollow out the center of this base to create a tray with a wall thickness of 3.4mm on all sides, leaving an internal cavi...
ix = 139.6; iy = 58.6 + 10; iz = 4; th = 3.4; difference() { cube([ix+2 * th, iy + 2 * th, iz + th], center=true); translate([0,0,th/2]) cube([ix, iy, iz], center=true); translate([ix/2 - 35, iy/2 - 11]) cube([20, 12, 100], center=true); translate([-ix/2 + 25, iy/2 - 16]) cube([20, 13, 100], center=tr...
glb/cad_a0ec1bc192ca.glb
Create a lid for a 100 liter rainwater barrel. Start by creating a flat, circular base disk with a diameter of 120mm and a thickness of 3mm. On top of this base, add a concentric raised cylinder with a diameter of 96mm and a height of 10mm. This raised section should be hollowed out to create a ring with a wall thickne...
$fn = 96; thd = 96; tld = 120; gth = 3; fht = 10; difference() { linear_extrude(gth, center=false) circle(d=tld); translate([35, 0, 0]) cube([12, 7, 100], center=true); } difference() { linear_extrude(fht, center=false) circle(d=thd); linear_extrude(fht, center=false) circle(d=thd - 2 * gth); }
glb/cad_460170c3783e.glb
Create a superglue stand by extruding a flat base 10mm high. The footprint of this base is a rectangle 40mm long and 30mm wide, with all four corners rounded to a radius of 5mm. Cut a rectangular slot through the top of the base to hold the glue tube; this opening must be 25mm long and 5mm wide, centered within the bas...
include <Round-Anything-1.0.4/polyround.scad> radiiPoints=[ [0,0,5], [40,0,5], [40,30,5], [0,30,5] ]; difference(){ polyRoundExtrude(radiiPoints,10,2,0,fn=20); translate([7.5,12.5,2]) cube([25,5,8]); }
glb/cad_ee98f287494e.glb
Create a protective case for an Arducam OV5647 camera. Start with a main rectangular body measuring 29mm in width, 28mm in depth, and 9mm in height. Round the four vertical corners of this body with a radius of 0.5mm. Hollow out the center of the body to create a cavity for the PCB, leaving walls 1.5mm thick. On the t...
$fa = 1; $fs = 0.1; camx = 26; camy = 25; wall = 1.5; ribbonx = 18; ro=.5; hingex = 5; hingeslot = 0; difference(){ hull(){ cube([camx + (wall*2),camy + (wall * 2),9]); translate([ro-.1, ro-.1, 0]) cylinder(r=ro, h=9); translate([camx+(wall*2)-.1, ro-.1, 0]) ...
glb/cad_6dc7c62b4e21.glb
Create a protective case for an Arducam OV5647 camera. Start with a rectangular base plate measuring 29mm by 28mm with a thickness of 1mm. On top of this base, center a rectangular recessed area that is 26mm wide and 25mm deep, defined by walls that are 1.5mm thick. Along the two shorter 28mm sides of the case, add ver...
$fa = 1; $fs = 0.1; camx = 26; camy = 25; wall = 1.5; cube([wall*2+camx,wall*2+camy,wall]); translate([wall+4,wall+0.15,wall-.1]) cube([camx-8,2,1.9]); translate([wall,(camy-4.5)/2+wall,wall-0.1]) union() { cube([2,4.5,2]); translate([.1,0,1.5]) rotate([270,0,0]) cylinder(h=4.5, r=.5); } ...
glb/cad_8a1aa30351c0.glb
Create a honeycomb shelf stand with a total height of 100mm, a depth of 40mm, and a front edge thickness of 10mm. The main body is a solid block of these dimensions, from which a honeycomb pattern is carved out. The honeycomb cells should have a size of 10mm, with the remaining walls having a thickness of 1.6mm. At th...
runlevel = 1; $fn = 32; side = "left"; back = false; leg_z = 100; leg_x = 10; leg_y = 40; shelf_z = 10; honeysize = 10; nozzle_size = 0.4; walls = 4; wallsize = nozzle_size * walls; screw_support = "behind"; screw_support_offset = 10; screw_dia = 3.2; countersunk = true; cs_dia = 6.0; cs_depth = 1.0; mo...
glb/cad_f8cc0341cc11.glb
Create a Raspberry Pi mount consisting of a rectangular base plate with four integrated screw pillars. The base plate is a flat rectangular slab measuring 61mm by 98mm with a thickness of 1mm. At each of the four corners of the base, position a screw pillar. Each pillar is constructed by stacking two conical sections...
include <tedder_constants.scad>; $fn=30; height_offset=4; module pi_screw_head2() { difference() { union() { cylinder(d1=10,d2=8,h=7.4); cylinder(d1=11,d2=5,h=9); } translate([0,0,-0.01]) #cylinder(d1=6.8,d2=6.3,h=7, $fn=6); translate([0,0,7.1-0.2]) cylinder(d=3,h=...
glb/cad_98cc431621c5.glb
Create a wall mount bracket for a livesectional. Start by forming a base shape that is the convex hull of two rectangular prisms: one measuring 100mm wide, 20mm deep, and 40mm high, and a second prism measuring 110mm wide, 30mm deep, and 35mm high positioned at x-5, y-5, and z-5. From this combined volume, remove a hor...
basic_height = 40; difference() { hull() { cube([100,basic_height/2,basic_height]); translate([-5,-5,5]) cube([110,basic_height/2+10,basic_height-5]); } translate([-7,0,basic_height/2+6]) rotate([0,90,0]) cylinder(d=basic_height,h=120, $fn=60); translate([-6,14,27]) for(i=[0:50]) { translate([i*3,0,0]) cyli...
glb/cad_85fc38dad33d.glb
Create a Table/Seat Post Mount consisting of a flat base and three vertical cylindrical sleeves. Start with a central square base plate that is 3mm thick. The total width of the base is 233mm (calculated as the 183mm distance between post centers plus the 51mm diameter of the base walls). At three of the four corners ...
base_thickness = 3; post_slot_dia=17; post_slot_to_post_slot_from_edge_to_edge = 200; post_slot_height = 20; post_slot_wall_top_thickness = 2; post_slot_to_post_slot = post_slot_to_post_slot_from_edge_to_edge - post_slot_dia; post_slot_wall_base_thickness = post_slot_to_post_slot/2; module post_to_tabletop_slot(...
glb/cad_16774166c0db.glb
Create a rejected parts bin consisting of a main container and an elevated foot. First, construct the bin as a rounded rectangular box with outer dimensions of 100mm length, 100mm width, and 20mm height. Use a corner radius of 10mm. The walls and floor should be 2.5mm thick. Hollow out the top to create the bin openi...
Part = 0; BinLength = 100; BinWidth = 100; BinHeight = 20; BinRadius = 10; WallThickness=2.5; Chamfer = 2; FootMargin = 16; FootHeight = 7.6; FootJoint = 1; JointTolerance = 0.1; MagnetDiameter = 12.6; MagnetThickness = 2.3; MagnetCount = 2; epsilon = 0.05; $fn = 100; assert(FootJoint <= WallThickness - ...
glb/cad_5c436bbb5ccb.glb
Create a Stringing-Schnecke test model consisting of a thin base plate and eight vertical towers. Start by creating a base plate with a thickness of 0.5mm, shaped as a polygon that encompasses the footprint of the towers. Position eight identical vertical towers atop this base. Each tower is a cylinder with a radius ...
$fn=100; anzTowers=8; dist=60; hoehe=30; towerRadius=1.5; function ngon(num, r) = [for (i=[0:num-1], a=i*360/num) [ r*cos(a), r*sin(a) ]]; function ungon(num, r) = [for (i=[0:num-1], a=i*360/num) [ r*cos(a)*i/(anzTowers/2), r*sin(a)*i/(anzTowers/2) ]]; function ngonTrPt(num, r) = [for (i=[0:num-1], a=i*360/num) ...
glb/cad_0814dbf76ee3.glb
Create an LED Dual Photointerrupter Bracket. Construct two identical rectangular arms, each 30mm long, 12.5mm wide, and 7.7mm high. Position these arms parallel to each other with a 10mm gap between them. In the first arm, create two vertical cylindrical holes with a diameter of 5mm and a depth of 7.7mm; center these h...
led_dia = 5; led_height = 7.7; length = 40; slot = 10; $fn = 12; fudge = 0.001; rotate([90,0,0])assembly(slot=slot,l = length); module assembly(chw=led_dia,chh=led_height,slot = 10, l=40){ lower_arm(chW=led_dia,l=l); translate([0,0,slot+led_height])upper_arm(chw,l=l); translate([l-2*chw-led_dia,-chw*2.5/2...
glb/cad_4ee0f83a57d9.glb
Create five identical Downfall game tokens, spaced 20mm apart. Each token is a cylinder with a diameter of 15mm and a height of 5.4mm. For each token, remove a concentric inner cylindrical core with a diameter of 11mm, leaving a ring wall. Centered on the top and bottom faces of the token, extrude the numbers 1 through...
thick=5.4; dia=15; innerDia=11; $fs=.5; $fa=5; translate([ 0,0,0])Stein("1"); translate([20,0,0])Stein("2"); translate([40,0,0])Stein("3"); translate([60,0,0])Stein("4"); translate([80,0,0])Stein("5"); module Stein(number="1"){ difference(){ cylinder(d=dia,h=thick); for(i=[-1,1])translate([0,0,i...
glb/cad_66541ea59acb.glb
Create a camera mount enclosure consisting of two primary components: a back socket and a top cover. First, construct the back socket. Create a central rectangular block measuring 27mm by 26mm by 5.5mm. Hollow out the center of this block to leave a wall thickness of 1mm. On the bottom face of this block, place six s...
$fn=60; wall=1; cameraback(); camertop(); module socket() { translate([9,0,4]) rotate([-90,0,0]) { translate([1.75,0,-1]) cube([48.5,8,2], center=true); translate([22,0,-8]) cylinder(d=8, h=6); translate([0,0,-8]) cylinder(d=8, h=6); } } module camertop() { translate([-40,0,0]) { ...
glb/cad_c2ee5fa50a37.glb
Create a glider for a storage box by starting with a sphere that has a radius of 50mm. Cut this sphere using a cube with side lengths of 100mm to create a flat base and trim the overall shape into a square footprint. Specifically, remove all material below a height of 16mm from the center of the sphere to ensure the bo...
box_height=16; length=100; radius=50; $fn=120; difference(){ sphere(radius); translate([0,0,-box_height]){ cube([length,length,length],center=true); } translate([-radius,box_height,0]){ cube(length); } translate([-length/2,-box_height+-length,0]){ cube(length); } ...
glb/cad_2a0ef308288e.glb
Create a small phone shelf consisting of a flat base and a supporting back wall. Start by creating a rectangular base plate 150mm wide, 75mm deep, and 3mm thick. Apply a 2mm fillet or rounded edge to all exterior corners of this base. To form the back support, create a rectangular wall 150mm wide, 3mm thick, and 75mm d...
base_width=150; base_depth=75; base_height=3; $fn=50; module base_cube(){ minkowski(){ cylinder(r=2,h=1); cube([base_width,base_depth,base_height]); } } module back_cube(){ translate([base_width/2,0,0]){ cube([base_width,base_height-2,base_depth],center=true); } } module support(){...
glb/cad_dbb1cfb4a6bf.glb
Create a Z-axis brace for 40mm extrusions consisting of two mirrored L-shaped brackets. Each bracket is formed by two walls, each 50mm long and 4mm thick, joined at a 90-degree angle. On the outer face of each wall, create two circular screw holes with a diameter of 4mm. These holes should be spaced evenly along the ...
extrusion_width = 40; side_length = 50; side_thickness = 4; top_screw_count = 2; bottom_screw_count = 2; screw_hole_size = 4; screw_head_size = 7; recessed_screw_depth = 0; top_screw_elongation = 0; bottom_screw_elongation = 0; extrusion_insert_width = 5.8; extrusion_base = 20; wall_count = 2; max_wall_thi...
glb/cad_26f634f7f86d.glb
Create a coffee tamper for reusable pods. Start with a cylindrical base 50.5mm in diameter and 5.0mm thick. On the top surface of this base, center a vertical stem 10mm in diameter that extends 30mm upwards. At the top of this stem, place a sphere with a diameter of 20mm. To transition from the wide base to the narrow...
runlevel = 1; $fn = 100; outer_dia = 50.5; remove_edge_dia = 19.0; remove_edge_thickness = 15.0; remove_edge_offset = 4.5; tamper_thickness = 5.0; stem_dia = 10.0; stem_length = 30.0; ball_dia = 20.0; tamper_cone_length = 10.0; tamper_center_depression = false; tamper_center_depression_width = 19.0; tamper_cen...
glb/cad_6d62e76c63b4.glb
Create an Adjustable Holder consisting of a base and removable uprights. Construct the base as a rectangular block 120mm wide and 5mm high, with a total length of 195mm (calculated from 18 slots). Carve 18 evenly spaced slots into the top surface of the base; each slot must be 5mm wide and 10mm deep. Create the upri...
slotWidth = 5; slotHeight = 10; slotCount = 18; baseWidthY = 120; baseHeight = 5; baseLengthX = (slotCount*2+1)*slotWidth; echo(str("baseLengthX = ", baseLengthX)); clearance = .1; H_OutsideWidthY = baseWidthY; H_WidthX = slotWidth - clearance; H_SideWidthY = 20; H_BarHeightZ = 20; H_LongHeightZ = 60; H_ShortH...
glb/cad_ad42de1981e1.glb
Create a paper clamp for a labeling machine consisting of two parallel vertical columns connected at the base. The primary column is a cylinder with a diameter of 10.4mm and a height of 162mm. Atop this cylinder, add a conical section 18mm high that tapers from the 10.4mm diameter down to 6.8mm. Parallel to the first ...
$fn = 100; H_max = 180; H_spitze = 18; D_dick = 10.4; D_duenn = 7.8; Breite = 17.5; Verjuengung = 1.8; R_dick = D_dick/2; R_duenn = D_duenn/2; Versatz = Breite-R_dick-R_duenn; cylinder(H_max-H_spitze,R_dick,R_dick); translate([0,0,H_max-H_spitze]) cylinder(H_spitze,R_dick,R_dick-Verjuengung); translate([0,-R_dick-0...
glb/cad_adfdd35f7930.glb
Create a rear sensor column for an Automower 330X consisting of a main tapered body and a separate alignment pin. For the main column, start with a base cylinder 11mm in diameter and 2mm high. Above this, add a tapered section 44mm tall that expands from a 17mm diameter at the bottom to 18mm at the top. On top of thi...
$fn=80; rotate([0,180,0])translate([-50,0,-49])difference(){ union(){ cylinder(d=11,h=2); translate([0,0,2])cylinder(d1=17,d2=18,h=44); translate([0,0,24])cylinder(d1=17,d2=19,h=0.5); translate([0,0,24.5])cylinder(d1=19,d2=17,h=0.5); translate([0,0,46])cylinder(d1=23,d2=35,h=1.5); translate([0,0,47.5])cylinder...
glb/cad_a11a4438c117.glb
Create an ESP32 Breakout Enclosure starting with a rectangular base of 63mm by 60mm and a height of 40mm. The walls and base should have a thickness of 4mm, with all exterior corners rounded by a 6mm radius and interior corners rounded by a 3mm radius. Hollow out the main body, but leave the 4mm base intact. On the r...
include <./standoff.scad>; $fn=10; PIN_WIDTHS=63; PIN_DEPTH=60; BASE_THICKNESS = 4; CASE_HEIGHT = 40; POWER_OPENING = 10; module air_holes(pin_widths = PIN_WIDTHS, pin_depth = PIN_DEPTH) { cube_size=5; count = 5; width = pin_widths * (2/3); offset = (width - cube_size) / count; translate([pin_wi...
glb/cad_0a2e7bbbcb37.glb
Create a lid for an ESP32 Breakout Enclosure. Start by constructing a base rectangular plate with rounded corners, measuring 75mm in width and 72mm in depth, with a thickness of 2mm. Add a secondary rectangular layer on top of this base that is 3mm thick, also with rounded corners, creating a stepped profile. On the ...
include <./power.scad>; $fn=10; LID_THICKNESS = 2; NOTCH_THICKNESS = 3; module lid(lid_z = LID_THICKNESS, notch_z = NOTCH_THICKNESS) { pin_widths=63; pin_depth=60; module top() { union() { linear_extrude(height=lid_z) minkowski() { square([pin_widths, pin_...
glb/cad_11dcbd3427c8.glb
Create a Warpaint bottle holder consisting of six identical ring-shaped slots arranged in two offset rows of three. Each slot is a hollow cylinder with an outer radius of 14.1mm, a height of 10mm, and a central hole with a radius of 12.5mm. To create a lip at the bottom of each slot, remove a smaller cylinder with a ra...
nodb=6; h=10; $fn=180; for (i=[1:nodb]) { x=(i/2)==round(i/2) ? 1 : -1; translate([(i-1)*13.3,x*11.7,0]) ring(14.1, 12.5, h); } module ring(r1, r2, h) { difference() { cylinder(r = r1, h = h); translate([ 0, 0, 1.5 ]) cylinder(r = r2, h = h); cylinder(r = r2-5, h = 1.5)...
glb/cad_e30b3b8c8e7f.glb
Create a Bulgarian coin token by starting with a centered cylinder that has a diameter of 22.4mm and a height of 1.65mm. Emboss the text "50ст" onto the top face of the cylinder, centering the text both horizontally and vertically. To add a keyring loop, create a small ring attached to the outer edge of the coin. Thi...
coin = 5; keyring_loop = 1; loop_diameter = 5; coin_sizes = [ [16.00, 1.32, "1ст" ], [18.00, 1.40, "2ст" ], [20.00, 1.55, "5ст" ], [18.50, 1.60, "10ст"], [20.50, 1.70, "20ст"], [22.50, 1.75, "50ст"], [24.50, 2.00, "1лв" ], [26.50, 2.34, "2лв" ], ]; $fa = $preview ? 12 : 2; $fs = $prev...
glb/cad_4dba73f8c505.glb
Create a coin token for a 50 cent denomination. Start by creating a cylinder with a diameter of 24.15mm and a height of 2.28mm, centered on the Z-axis. Emboss the text "50ct" onto the flat face of the cylinder, centering the text both horizontally and vertically. The font size should be scaled proportionally to the dia...
coin = 5; keyring_loop = 1; loop_diameter = 5; coin_sizes = [ [16.25, 1.67, "1ct" ], [18.75, 1.67, "2ct" ], [21.25, 1.67, "5ct" ], [19.75, 1.93, "10ct"], [22.25, 2.14, "20ct"], [24.25, 2.38, "50ct"], [23.25, 2.33, "1€" ], [25.75, 2.20, "2€" ], ]; $fa = $preview ? 12 : 2; $fs = $prev...
glb/cad_ea626f1de672.glb
Create a coin token for a 1 dollar coin. Start by creating a main cylinder with a diameter of 26.39mm and a height of 1.9mm, centered on the Z-axis. Emboss the text "1$" onto the flat face of the cylinder, centering the text both horizontally and vertically. To add a keyring loop, create a small ring attached to the o...
coin = 5; keyring_loop = 1; loop_diameter = 5; coin_sizes = [ [19.05, 1.52, "1¢" ], [21.21, 1.95, "5¢" ], [17.91, 1.35, "10¢"], [24.26, 1.75, "25¢"], [30.61, 2.15, "50¢"], [26.49, 2.00, "1$" ], ]; $fa = $preview ? 12 : 2; $fs = $preview ? 1 : 0.2; module coin(diameter=10, height=1, text="Te...
glb/cad_7f8f2870ed56.glb
Create a Latching Broom Holder designed for a broom with a 22mm diameter. The device consists of two symmetrical hinge arms, each 22mm high, that wrap around the handle. The arms are shaped with a complex profile featuring a central cavity to accommodate the handle. Within this structure, create two vertical cylindric...
include<../hex plug library.scad>; broom_diameter=22; hinge_height=22; vertical_clearance=0.31; extruded_width=0.5; num_filament_passes=4; hinge_pin_hole_diameter=3; hinge_clearance=1; mount_screw_diameter=4.5; mount_screw_countersunk_depth=3; mount_screw_counterbore_diameter=0; hsw_mounts=0; hsw_connection...
glb/cad_7b9f9577003b.glb
Create a Flsun SR reverse bowden mount. The object is a structural bracket featuring three mounting points, each designed for a heat-set insert with a minor diameter of 3.92mm and a length of 5.7mm. The base is a triangular arrangement. Position the first mounting point at the top at [-10.75, -22.8, 36.5], the second...
use <MCAD/teardrop.scad> use <threads.scad> $fs = 0.4; $fa = 3; top_hole_pos = [-10.75,-22.8,36.5]; center_hole_pos = [-10.75,-22.8,5.5]; side_hole_pos = [20.25,-22.8,5.5]; holes_polar_angle = 90; holes_azimuthal_angle = -90; pc4_feature_pos = [0,0,0]; pc4_thread_height = 6.8; pc4_thread_major_diam = 9.75; pc4_threa...
glb/cad_b9c146266c99.glb
Create a Window Security Dowel Tab. Start by creating a main vertical cylinder with a height of 15mm and a diameter of 14.3mm. Remove a concentric cylindrical core from this main body with a diameter of 12.3mm and a height of 15mm, but leave a 1mm thick floor at the bottom so the hole does not go all the way through. ...
HOLE_DIA_MM = 12.3; HEIGHT_MM = 15; TAB_THICKNESS_MM = 1.5; WALL_THICKNESS_MM = 1; LENGTH_MM = 20; $fn=50; module create_tab() { hull() { cylinder(h=HEIGHT_MM, d=TAB_THICKNESS_MM); translate([LENGTH_MM,0,0]) { cylinder(h=HEIGHT_MM,d=TAB_THICKNESS_MM); ...
glb/cad_3e6819da064c.glb
Create a pressure plate for a dice spinner. Start by creating a main flat disc with a diameter of 73mm and a thickness of 1mm. At the center of this disc, add a vertical cylindrical shaft sleeve with a diameter of 4mm and a height of 5mm. Place a sphere with a diameter of 4mm centered at the top of this shaft, specific...
$fn =100; flexThick = 1.0; outerDiam = 73; innerDiam = 2.0; outerShaftDiam = 4.0; difference(){ union(){ cylinder(d=outerDiam,h=flexThick); cylinder(d=outerShaftDiam,h=5); translate([0,0,4])sphere(d = outerShaftDiam); rotate([90,0,0])translate([0,1.0,0])cylinder(d=2,h=outerDiam, center = true); } cylinder(d=innerDiam...
glb/cad_8074bcb97ec4.glb
Create a camera pole mount consisting of a base plate and a vertical support. Start with a rectangular base plate measuring 130mm by 130mm with a thickness of 5mm, featuring rounded corners. In the center of this plate, add a cylindrical ring with an outer diameter of 100mm and a height of 4mm. From the center of the ...
$fn = $preview ? 80 : 200; TopMount=1; BottomPlate=1; Base=0; if(BottomPlate) translate([0,0,-100]){ translate([-65,-65,-5])Cube(130,130,5,8); scale([1.2,1,1])cylinder(d=100,h=4); translate([0,0,3])SpoelInsert(); } if(TopMount) { cylinder(d=30,h=60); translate([0,-13.4,39.6])rotate([88,0,0])difference() { c...
glb/cad_701df26aa8e2.glb
Create a coin token for a 50-cent Australian coin. The main body should be a dodecagon (12-sided polygon) with a diameter of 31.55mm and a thickness of 1.9mm, centered on the origin. Emboss the text "50c" into the center of the face, scaling the font size to fit the diameter of the coin. Attached to the outer edge of...
coin = 5; keyring_loop = 1; loop_diameter = 5; coin_sizes = [ [17.65, 1.45, "1c" ], [21.59, 1.85, "2c" ], [19.41, 1.30, "5c" ], [23.60, 1.50, "10c"], [28.65, 2.00, "20c"], [31.65, 2.00, "50c"], [25.00, 2.80, "A$1" ], [20.50, 3.00, "A$2" ], ]; $fa = $preview ? 12 : 2; $fs = $preview ? ...
glb/cad_9943e64b6661.glb
Create a bar clamp for an internet-connected hamster wheel. Start with a central rectangular base plate measuring 40mm in length and 20mm in width (calculated as twice the bar space of 8.9mm plus two wall thicknesses of 1.2mm), with a total thickness of 2.4mm. At the center of this base, create a vertical support str...
inner_radius = 80; depth = 75; wall_thickness = 2.4; bearing_inner_r = 4; bearing_outer_r = 11; bearing_thickness = 7; pin_wall = 1.5; pin_length = bearing_thickness; pin_hook_length = 3; pin_r = bearing_inner_r + .05; pin_hook_r = pin_r + .1; pin_base_r = pin_r + 1; clamp_length = 40; bar_space = 8.9; bar_thickness ...
glb/cad_a4f149739e6d.glb
Create a coin token for a 50 cent New Zealand coin. Start by creating a main cylinder with a diameter of 24.65mm and a height of 1.7mm, centered on the Z-axis. Emboss the text "50c" onto the flat face of the cylinder, centering the text both horizontally and vertically. To add a keyring loop, create a small ring atta...
coin = 2; keyring_loop = 1; loop_diameter = 5; coin_sizes = [ [20.50, 1.58, "10c" ], [21.75, 1.56, "20c" ], [24.75, 1.70, "50c" ], [23.00, 2.74, "NZ$1" ], [26.50, 2.70, "NZ$2" ], [17.53, 1.50, "1c" ], [21.08, 1.50, "2c" ], [19.43, 1.24, "5c" ], ]; $fa = $preview ? 12 : 2; $fs = ...
glb/cad_213fc6a3faec.glb
Create a Polar Scope Illuminator consisting of a main cap and an attached battery holder. First, construct the cap as a cylinder with a diameter of 48mm and a height of 6.8mm. Subtract a central cylindrical hole with a diameter of 34.2mm and a height of 14.8mm. At the base of this hole, create a recessed area for an ...
tube_d = 35; tube_h = 8; gap = 2; cap_d = 43 + 5; cap_insert = 6; vwall = 1.9; wall = 1.4; wall2= 1.4; led_d = 0.8; led_inset = 8; battery_d = 20 + .2; battery_h = 3.2 + 0.1; cap_h = 2 * vwall + battery_h + 3; cap_insert_d = tube_d + 0.4; protector_w = gap; D = 0.01 + 0; $fn=200 + 0; module cap() { dif...
glb/cad_c5e4cc6eb6a4.glb
Create a Nikon F mount to telescope adapter. Start by creating a male Nikon F mount with an outer diameter of 60mm. Attached to the base of this mount, create a conical transition that tapers down from the 60mm mount diameter to a collar diameter of 34.5mm. Below this collar, extend a hollow cylindrical tube with an ...
use <NikonFMountMale.scad> tube_diameter=31.75; input_cone_height=0; input_overhang_angle = 50; tube_length=30; collar_length=1; wall=3; collar_diameter= tube_diameter + 2.75; d=.01 + 0; tube_inner_d = tube_diameter - 2*wall; fmount_diameter=60 + 0; fmount_d_in = 2 * 17.50; max_overhang_angle = min(max( 10, ...
glb/cad_27b528b573d3.glb
Create a battery holder and switch for a CR2032 battery. The main structure consists of two primary circular compartments (hoops) that allow the battery to slide between an "on" and "off" position. Each hoop is a cylinder with an outer diameter of 22.8mm and a height of 3.3mm, with a concentric inner hole of 20.2mm. T...
vwall = 1.9; wall = 1.4; wall2= 1.4; led_d = 0.8; led_inset = 8; battery_d = 20 + .2; battery_h = 3.2 + 0.1; shift = .2 * battery_d; D = 0.01 + 0; $fn=200 + 0; module hoop( h=battery_h, inset=0) { difference() { cylinder( d=battery_d+2*wall2, h = h); translate( [0,0,-D ]) cylinder( d=...
glb/cad_d0e8abd7cfb8.glb
Create a stand for a moon lamp consisting of a cylindrical base and a threaded top. Start with a solid cylinder 32.1mm in diameter and 4mm high. Centered on top of this cylinder, add a male screw thread with a diameter of 31.1mm, a pitch of 2mm, and a height of 8mm. Hollow out the center of the screw section with a cyl...
use <quickthread.scad> fudge = 0.1; screw_diameter = 31.1; bottom = 4; battery_h = 7.7; battery_barrier_w =25.8; battery_w = 23; play = .5; battery_depth = .5; battery_wall = 1.4; extent = 0; module screw( h) { gap = 3; difference() { translate ([0, 0, 0]) isoThread( d = screw_diameter, h = h, start...
glb/cad_b3a5fc7c6ed5.glb
Create an enclosure for a WiFi bridge consisting of a bottom base and a top lid. The main internal cavity dimensions are 60mm x 70mm x 23mm with wall thicknesses of 1.6mm. Both the top and bottom sections should have rounded corners with a 3mm radius. On one of the shorter sides, create a cable gland. This feature con...
d = .01; ds = [d,d,d]; loss = .35; connector_dims = [13.5, 14.7, 17.9] + [0, 2*loss, 0]; cutout_offset = 2.4 + loss/2; enclosure_dims = [60,70,23]; wall = 1.6; function uniform_product( a, b) = [ a[0] * b[0], a[1] * b[1], a[2] * b[2]]; function up(a,b) = uniform_product( a,b); module connector() { cutout_dims = [...
glb/cad_f1cf967efaf8.glb
Create an enclosure for a WiFi PIR motion sensor consisting of a bottom base and a top cover. The main body is a rounded rectangular box with outer dimensions of 43.2mm x 35.2mm x 38mm and a wall thickness of 1.6mm. The bottom section features a centered rectangular cutout measuring 9mm x 13mm to allow for a USB port...
pcb_width = 26; pcb_length = 35; pcb_thickness = 2; pcb_dims = [pcb_length, pcb_width, pcb_thickness]; thin_wall = 1.2; thin_walls = [thin_wall,thin_wall,thin_wall]; wall = 1.6; walls = [wall, wall, wall]; d = .01; d3 = [d,d,d]; enclosure( do_bottom = true, do_top = true); module edged_box() { rib = 4; sag = ...
glb/cad_f7124011ddd4.glb
Create a battery post consisting of a central vertical cylinder with a diameter of 7mm and a total height of 60mm. Cap the top of the cylinder with a hemisphere of the same 7mm diameter. At the base of the cylinder, add a conical reinforcement flare created by rotating a right triangle around the central axis; this tri...
FN=120; POST_DIAMETER=7; POST_HEIGHT=60; BASE_WIDTH=5; BASE_HEIGHT=20; SCREW_DIAMETER=3; SCREW_LENGTH=12; PIN_DIAMETER=1.5; PIN_STEPPING=10; module post_cylinder(h,d) { linear_extrude(height=h) circle(d=d, $fn=FN); } module post_talus(bw,bh) { polygon(points=[ [0,0], [bw,0], [0,bh] ]); } modul...
glb/cad_b9427c505158.glb
Create a customizable RC car battery post. Start with a central vertical cylinder 6mm in diameter and 50mm in height. Cap the top of this cylinder with a hemisphere of the same 6mm diameter. At the base of the cylinder, add a cross-shaped reinforcement consisting of two intersecting thin plates. Each plate should be 12...
FN=120; POST_DIAMETER=6; POST_HEIGHT=50; BASE_WIDTH=5; BASE_HEIGHT=20; SCREW_DIAMETER=3; SCREW_LENGTH=12; PIN_DIAMETER=1.5; PIN_STEPPING=5; CROSS_WIDTH=12; CROSS_THICKNESS=1.2; CROSS_HEIGHT=35; module post_cylinder(h,d) { linear_extrude(height=h) circle(d=d, $fn=FN); } module post_talus(bw,bh) { polygon(points...
glb/cad_28da82884fdc.glb
Create a Body Mount Post consisting of a tiered cylindrical column with a total height of 45mm. Start by creating a lower base cylinder with a diameter of 7.5mm and a height of 28mm. On top of this base, add a conical transition section (a frustum) that flares out to a width of 12.5mm and has a height of 3.5mm, transit...
FN=120; POST_DIAMETER_LOWER=7.5; POST_DIAMETER_UPPER=5.5; POST_HEIGHT_TOTAL=45; POST_HEIGHT_LOWER=28; BASE_WIDTH=12.5; BASE_HEIGHT=3.5; PIN_DIAMETER_UPPER=1.2; PIN_DIAMETER_LOWER=2; PIN_STEPPING_UPPER=4; PIN_STEPPING_LOWER=6; module post_cylinder(h,d) { linear_extrude(height=h) circle(d=d, $fn=FN); } module pos...
glb/cad_71c04b0a7474.glb
Create a First Layer Calibration Patterns model with a total footprint of 250mm by 210mm and a thickness of 0.2mm. The model consists of a checkerboard pattern composed of an 8x8 grid of rectangles. Divide the total width into 8 equal segments of 31.25mm and the total height into 8 equal segments of 26.25mm. Populate t...
BED_X=250; BED_Y=210; LAYER_HEIGHT=0.2; SQUARE_SIDE=25; module full_bed() { polygon(points=[ [0,0], [BED_X,0], [BED_X,BED_Y], [0,BED_Y] ]); } module corner_squares() { polygon(points=[ [0,0], [SQUARE_SIDE,0], [SQUARE_SIDE,SQUARE_SIDE], [0,SQUARE_SIDE] ]); polygon...
glb/cad_1b8f7357df4d.glb
Create a parametric coin organizer consisting of a rectangular base block measuring 40mm wide, 185mm long, and 15mm high. From this block, remove two sets of coin slots. The first set of slots is for coins with a diameter of 20.55mm and a thickness of 1.7mm. Create ten of these slots, each holding ten coins stacked. ...
C10_D=20.55; C10_H=1.7; C50_D=23.75; C50_H=1.8; PLAY = 1; NOZZLE = 0.4; NUM_WALLS = 2; FN=180; L=185; H=15; W=40; BORDER=8*NOZZLE; module fishic(nm, hm, dm, pm) { rotate([90,0,0]) cylinder(h=nm*hm+pm, d=dm+pm, $fn=FN); } difference() { translate([0,-BORDER,0]) cube (size=[W,L,H]); for (a =[1:10]) if (a%2 ...
glb/cad_8c660eec3fd7.glb
Create a set of four thin, concentric ring spacers for a vaping box mod. Each ring should have an outer diameter of 15mm and an inner diameter of 12mm. Produce the rings in four different thicknesses: 0.4mm, 0.5mm, 0.6mm, and 0.7mm. Ensure each ring is perfectly circular with a high facet resolution to maintain a smoot...
FN=120; S1=0.4; S2=0.7; C1=15; C2=12; for (x = [S1:0.1:S2]) translate([(x-S1)*10*20,0,0]) linear_extrude(height=x) difference() { circle(d=C1,$fn=FN); circle(d=C2,$fn=FN); }
glb/cad_b419633cb807.glb
Create a STEMFIE prototype board, which is a flat rectangular baseplate. The board is designed on a grid of basic units (BU). The main body is a thin plate with a thickness of 3mm. The layout is defined by a grid of tiles. For the specific configuration shown, create a board that is 15 units wide and 5 units deep. ...
include <PAOSTEmfie01.scad> listTilesSample = [ " ", " o1letm!=hM3 ", " ", " " ]; color("orange") prototypeBoard(listTilesSample, [0,1,2,3,4,5,6,7], [SOUTH, NORTH, EAST, WEST]); textK...
glb/cad_6c0b81e77344.glb
Create a customizable antenna wire clamp consisting of two identical mirrored parts. For each part, start with a rectangular base 36mm long, 20mm wide, and 4mm high. The base should taper slightly at the bottom edges to a width of 17mm (85% of the main width). On the top surface, create three vertical screw holes with...
LENGTH = 36; WIDTH = 20; HEIGHT = 4; SCREW_DIAMETER = 3.2; BASE_REDUCE = 0.85; CABLE_DIAMETER = 2.7; $fn = 30; LIN_EXTR = 1.2; module clamp() { difference() { color( "#f0f0f0" ) hull() { linear_extrude(LIN_EXTR) translate([WIDTH*(1-BASE_REDUCE)/2, LENGTH*(1-BASE_REDUCE)/2, ...
glb/cad_6429bee07ae9.glb
Create a coaxial air wound balun helper clip. Start with a rectangular base that is 6mm deep and 8mm wide. The main body is a long strip with a constant cross-section: a rectangle 5.2mm wide and 6mm deep. Along the length of this strip, create six repeating semi-circular cutouts to hold cables. Each cutout should have ...
CABLE_DIAMETER = 5; NUM_WRAPS = 6; WIDTH = 8; DEPTH = 6; CABLE_SPACING=0.4; FN = 60; COEF = 0.95; module clamp_head() { linear_extrude(DEPTH) polygon(points = [ [0,0], [CABLE_DIAMETER+CABLE_SPACING/2,0], [CABLE_DIAMETER+CABLE_SPACING/2,WIDTH], [0,WIDTH] ]); translate(...
glb/cad_6defda5d03ba.glb
Create a first layer calibration pattern in the form of a chessboard. The overall footprint of the model is 250mm by 210mm with a thickness of 0.2mm. Divide this area into an 8 by 8 grid of rectangles. Each rectangle should have a width of approximately 31.25mm and a height of 26.25mm. Fill every other rectangle in a c...
Part = 10; BED_X=250; BED_Y=210; LAYER_HEIGHT=0.2; SQUARE_SIDE=25; module full_bed() { polygon(points = [ [0, 0], [BED_X, 0], [BED_X, BED_Y], [0, BED_Y] ] ); } module corner_squares() { polygon(points = [ [0, 0], [SQUARE_SIDE, 0], [SQUARE_SIDE, SQUARE_SIDE], [0, SQUARE_SIDE] ] ...
glb/cad_cca9d5324b8d.glb
Create a desk leg cup holder consisting of a large main ring and a smaller attached mounting ring. First, construct the main ring as a hollow cylinder with an outer diameter of 119mm, an inner diameter of 105mm, and a height of 14mm, centered at the origin. Attached to the side of this main ring, create a second, small...
$fa = 1; $fs = 0.4; scale(0.7,0.7,0.7){difference(){cylinder(20,85,85,center=true); cylinder(50,75,75,center=true);} difference(){translate([110,0,0])cylinder(20,32,32,center=true); translate([110,0,0])cylinder(25,27,27,center=true); translate([130,-15,-13])cube(30,7,7);}}
glb/cad_6748c41cdb77.glb
Create an LCD Thermometer case consisting of a top shell, a bottom shell, a front panel, and a back panel. Construct the top and bottom shells as hollowed rectangular boxes with rounded corners (radius 2mm) and walls 2mm thick. The overall external dimensions are 30mm in length, 90mm in width, and 60mm in height. On ...
Length = 30; Width = 90; Height = 60; Thick = 2; PanelThick = 2; FontThick = 0.5; Filet = 2; Round = 1; CutoutMargin = 0.3; PartMargin = 0.2; PCBFeet = 0; Decorations = 1; Vent = 1; Vent_width = 1.5; PanelThickGap = CutoutMargin + PartMargin; PanelVerticalGap = PartMargin; PanelH...
glb/cad_55c430351cc8.glb
Create a parametric dog tag. Start by creating a rectangular base with a width of 26mm, a height of 12mm, and a thickness of 3mm. Apply a corner radius of 0.5mm to all edges of this base to round the corners. At the top center of the tag, add a cylindrical protrusion with a radius of 5mm (one-fourth of the 20mm body r...
body_thickness = 3; body_radius = 20; body_width = 26; body_height = 12; raisedText = true; squaretag = true; text = "Dexter"; phtext = "0412345678"; text_font = "Arial:Bold"; text_size = 3; text_spacing = 1.1; text_height = 1; line_spacing = 5; module create_body() { difference() { union() ...
glb/cad_b1aaa34f57de.glb
Create an LED ring holder for a microscope. Start with a main ring that has an inner diameter of 56mm and an outer diameter of 76mm, with a total thickness of 10mm. Around the ring, create 15 evenly spaced holes for LEDs, each with a diameter of 5.2mm. These holes should be centered within the ring's wall thickness. ...
LENS_DIAM = 54; RING_INNER_DIAM = LENS_DIAM + 2; RING_OUTER_DIAM = RING_INNER_DIAM + 20; RING_THICKNESS = 10; SCREW_HOLE_DIST = 84; SCREW_BRACKET_LENGTH = 45; SCREW_BRACKET_WIDTH = 10; SCREW_BRACKET_THICKNESS = 5; SCREW_HEIGHT = SCREW_BRACKET_LENGTH - 5; SCREW_DIAM = 4.5; SCREW_HEAD_DIAM = 6.5; LED_DIAM = 5.2; LED...
glb/cad_b2c379364aee.glb
Create a magnetless game card holder consisting of a central screw and two rectangular pads. First, construct the screw as a vertical cylinder with a total height of 70mm and a radius of 2.5mm. The cylinder should feature external threading: a right-handed thread for the bottom 30mm and a left-handed thread for the t...
include<thread.scad>; R=3; $fn=36; pad_w=54; pad_h=70; pad_ext=8; CR=2.5; pad_rw=pad_w-2*R; pad_rh=pad_h-2*R; module pads_2d() { difference(){ square([pad_w-R*2,pad_h-R*2]); translate([pad_rw/2,pad_rh/2,0]) rotate([0,0,30]) translate([-40,-5-R,0]) square([80,10+R*2]); } ...
glb/cad_c97687ae5fcf.glb
Create a laptop numpad separator by constructing a hollow rectangular shell with an open top. Start with a solid central block measuring 21.4mm wide, 120mm long, and 92mm high. To create the hollow interior, remove a smaller central block measuring 16.6mm wide, 123.4mm long, and 86.6mm high, leaving a wall thickness of...
wall=3.4; D=3.5; difference(){ union(){ translate([21/2,0,44.5]) rotate(90,[1,0,0])color([0,0,1,1])cylinder($fn=50,d=3,h=120,center=true); translate([21/2,-60+D/2.0,-D/4]) color([0,0,1,1])cylinder($fn=50,d=D,h=92-D/2,center=true); translate([21/2,60-D/2.0,-D/4]) ...
glb/cad_a73fce575648.glb
Create a case for two 32x32mm motor speed controllers. The main body is a rectangular housing with an outer dimension of 38.5mm by 38.5mm and a height of 38.5mm. The walls are 3mm thick. The interior of the case is hollowed out, but it features two internal horizontal platforms, each 1.75mm thick, positioned to suppor...
W=3; platine=1.75; dim=32.5; $fn=60; translate([0,0,dim+2*W])rotate(-90,[1,0,0] )union(){ difference(){ hull(){ translate([5/2,0,5/2])rotate(-90,[1,0,0])cylinder(d=5,h=dim+2*W); translate([-5/2+dim+W,0,5/2])rotate(-90,[1,0,0])cylinder(d=5,h=dim+2*W); translate([5/2,0,5/2+dim+3*W])rotate(-90,[1,0...
glb/cad_ca3e29305677.glb
Create a mounting bracket for a Dell WD19DCS docking station. Start with a solid rectangular block measuring 30mm in width, 96.5mm in length, and 35.5mm in height. From this block, remove a central rectangular section to create a U-shaped channel that is 30mm wide, 90.5mm long, and 29.5mm high, leaving walls of 3mm thi...
H=29.5; B=90.5; T=30; W=3; difference(){ cube([T,B+W,H+2*W]); translate([-W,W+0.01,W])cube([T,B,H]); color([0.3,0.9,0.5])translate([-0.1+T-2*W,10+W,3+W])cube([10,T,10]); color([0.3,0.9,0.5])translate([-0.1+T-2*W,50+W,3+W])cube([10,T,10]); translate([15,15,-2])cylinder($fn=36,d=2.6,h=H+3*W); translate([15,B-15,-2])cyl...
glb/cad_4779adc65a9b.glb
Create a mounting bracket for a Dell WD19DCS docking station. Start with a solid rectangular block measuring 30mm in width, 96.5mm in length, and 35.5mm in height. Hollow out the center of this block by removing a rectangular volume of 24mm by 90.5mm by 29.5mm, leaving a wall thickness of 3mm on the sides, top, and bot...
H=29.5; B=90.5; W=3; difference(){ cube([30,B+W,H+2*W]); translate([W,W+0.01,W])cube([90,B,H]); color([0.3,0.9,0.5])translate([-0.1,B/2-W,H-9.5+W]) hull(){ rotate(90,[0,1,0]) cylinder(d=8.5,h=10); translate([0,55,0])rotate(90,[0,1,0]) cylinder(d=8.5,h=10); } color([0.3,0.9,0.5])translate([-0.1,10+W,3+W])cube([1...
glb/cad_a218b7085a11.glb
Create a battery holder for CR2450 coin cells consisting of a row of 14 connected compartments. The overall structure is a rectangular block with a total height of 10.8mm. Each individual cell compartment is defined by an outer boundary of 5.8mm in width, 24.9mm in depth, and 10.8mm in height. To form the slots, remo...
count=14; rows=1; $fn=250; dt1=0.01; dt2=dt1*2; prt_delta=0.2; wall=0.8; w_cell=4.8+prt_delta; d_cell=24.0+prt_delta; rim=3.0; ci_x=w_cell; co_x=ci_x + 2*wall; ci_y= 24.1; co_y=ci_y + 2*wall; co_z=10+wall; for(j=[0:1:rows-1]){ translate([0, j*(co_y-wall), 0]) for(i=[0:1:count-1]){ transla...
glb/cad_3d478ea0bfbf.glb
Create a customizable storage box with a footprint of 50mm by 50mm, a total height of 25mm, and a wall thickness of 2mm. The main body is a solid rectangular block with a hollowed-out center, leaving a floor thickness of 2mm. To create the interior cavity and the exterior profile, use a rounded-corner approach with a ...
width = 50; height= 25; radius = 4; thickness = 2; XCount=1; YCount=1; $fn=90; module Box6(X, Y, swidth, height, sthickness){ difference(){ cube([(swidth * X)-sthickness ,(swidth * Y)-sthickness,height]); union () { translate([0,-thickness,0]) rotate([0,90,90]) scale([1,.5,1]) cyli...
glb/cad_24cc57444d08.glb
Create an AliveCube building block by starting with a central cube measuring 15mm on all sides. To make this block a connector, add cylindrical studs to the center of the top and bottom faces. Each stud must have a diameter of 4mm and a total height of 2.8mm, extending 1.4mm above and below the face. To create the ho...
$stud_scale=1.0; module stud() cylinder(height*2,d=(d+0.1)*$stud_scale,center=true,$fn=60); module acube(stud=2) { module dig() translate([pos,pos,-size/2]) cube([d,d,depth*2], center=true); difference() { union() { cube(size,center=true); vec=[-pos,pos]; for (i=vec,j=vec) if (i+j!=0||stud!=2) transla...
glb/cad_1d8d287cb1cd.glb
Create a coffee distributor tool consisting of a hollow base and a tapered upper ring with internal blades. Start by creating a short hollow cylinder for the base with an outer diameter of 53mm, a height of 6mm, and a wall thickness of 2mm. On top of this base, add a larger hollow tapered cylinder that extends upwards ...
baseDiameter = 53; baseHeight = 6; topDiameter = 65; topHeight = 20; wall = 2; bladeThickness = 1.1; bladeCount = 6; bladeAngle = 30; leveller(); module leveller() { difference() { cylinder(d = baseDiameter, h = baseHeight, $fn = 150); translate([0, 0, -1]) cylinder(d = baseDiameter - 2*wall, h = base...
glb/cad_1cded498d329.glb
Create a wrist band and snap button assembly. Start with a rectangular strap that is 220mm long, 10mm wide, and 0.3mm thick. At one end of the strap, center a circular hole with a diameter of 10mm that passes completely through the thickness. At the opposite end of the strap, center a female snap button component. Thi...
wristBand(10, 220); module wristBand(width, length) { difference() { cube([length, width, 0.3]); translate([width/2, width/2, 0]) cylinder(d=10, h=0.3, $fn=50); } translate([length-width/2, width/2, 0]) snapButtonMale(width, 1, 5, 3); translate([width/2, width/2, 0]) { snapButtonFemale(wi...
glb/cad_fff782b48320.glb
Create an aquarium light bracket by starting with a solid rectangular block measuring 80mm in width, 56.6mm in depth, and 43.5mm in height. From this block, remove a large rectangular section from the center-front, leaving a wall thickness of 3.5mm on the sides and back, and creating an interior channel that is 6.6mm d...
glass = 6; tolerance = 0.6; innerY = glass + tolerance; wall = 3.5; x = 80; pillarY = 11; innerZ = 20; pillarDiam = 8.8; pillarZ = 20; y = innerY + 2*wall + pillarY + pillarDiam; z = innerZ + pillarZ + wall; supportRampe(); module supportRampe() { difference() { cube([x, y, z]); translate([-1, y - innerY -...
glb/cad_9f94dc98fc0b.glb
Create a slim case for an SSD1306 OLED screen. Start with a main rectangular block measuring 33mm in width, 40mm in depth, and 6mm in height. Hollow out the center of this block by removing a rectangular section 31mm wide and 38mm deep, leaving a wall thickness of 1mm on the sides and a floor thickness of 0.1mm. At ea...
x = 33; y = 40; z = 6; topOffset = 0; screenCase(); module screenCase() { difference() { cube([x, y, z]); translate([1, 1, -0.1]) { cube([x-2, y-2, z+1]); } } windowPanel(x, y, 1.5, topOffset); side = 5; screwBase(0, 0, side); screwBase(x - side, 0, side); screwBase(0, y - side, side)...
glb/cad_e57f7d4ad12a.glb
Create an aquarium fish feeder quantity reducer consisting of a small rectangular block with a central hole. The main body is a rectangular prism measuring 11.7mm in width, 14.2mm in depth, and 1.5mm in height. Centered on this base, add a second rectangular prism measuring 10.2mm wide, 11.2mm deep, and 6.1mm high. Ca...
holeY = 4.5; holeX = 3.5; holeYStep = 0.5; count = 3; setCount = 5; x = 11.7/1; y = 14.2/1; z = 6.1/1; b = 1.5/1; xmin = x - b; ymin = y - 2.5 * b; for(j = [0: 1 : setCount - 1]) { for(i = [holeY : holeYStep : holeY + holeYStep*(count - 1)]) { translate([j*(x + 3), (i - holeY) * 2 * (y + 3), 0]) feede...
glb/cad_debffa3a9c71.glb
Create a segmented storage bin for a Honeycomb Storage Wall. Start by constructing a hollow rectangular container with outer dimensions of 115mm width, 38mm depth, and 70mm height. The walls should be approximately 2mm thick, and the four vertical corners must be rounded with a 2mm diameter. Divide the interior into t...
$fn=50; h_space=40.88; module roundedrect(x, y, z, dia) { corner_x = ((x / 2) - (dia / 2)); corner_y = ((y / 2) - (dia / 2)); hull() { translate([corner_x, corner_y, 0]) cylinder(h=z, d=dia, center=true); translate([corner_x, -corner_y, 0]) cylinder(h=z, d=di...
glb/cad_9776188bbac1.glb
Create a repair plug for a crossbar consisting of two stacked cylinders. First, create a wide, thin base cylinder with a diameter of 8mm and a height of 1mm, centered on the origin. Directly above this base, place a second, taller cylinder with a diameter of 6.7mm and a height of 17.1mm. Position the second cylinder so...
union() { translate(v=[0, 0, 0.5]) cylinder(h=1, d=8, $fn=62, center=true); translate(v=[0, 0, 9.55]) cylinder(h=17.1, d=6.7, $fn=52, center=true); }
glb/cad_af6b7e7b2032.glb
Create a repair bracket for a crossbar consisting of a U-shaped sleeve attached to a flat base. First, construct the base as a rectangular plate measuring 40mm wide, 50mm long, and 2mm thick. In this base, create four circular holes, each 7.2mm in diameter. Position these holes symmetrically: two near the front edge ...
difference() { union() { difference() { difference() { cube(size=[40, 50, 2], center=true); translate(v=[19.0, 24.0, -1.02]) linear_extrude(height=2.04, center=false, convexity=10, twist=0.0, scale=1.0) difference() { translate(v=[0.5, 0.5, 0.0]) square...
glb/cad_6ce905181426.glb
Create a wheel blocker by first constructing a solid of revolution. Start with a 2D profile consisting of a polygon with vertices at [0, 14], [0, 0], [40, 0], [40, 2], and [28, 14], then rotate this profile 360 degrees around the Z-axis to create a rounded, dome-like base. From this solid, remove two identical cylindri...
$fa=1; $fs=0.2; d=45; r=28; difference() { rotate_extrude() polygon([[0, 13+1], [0, 0], [r+(13-1), 0], [r+(13-1), 2], [r, 13+1]]); for(i=[0, 1]) mirror([0, i, 0]) translate([0, 33/2, d/2+1]) rotate([90, 0, 0]) cylinder((33-12)/2, d=d); }
glb/cad_c3f7f6195efa.glb
Create a parametric spool adapter and spacer. Start by creating a wide, flat circular base (brim) with a diameter of 98mm (Spool_Inner_Diameter + 5mm) and a thickness of 5.8mm. On top of this base, center a vertical cylinder with a diameter of 90.5mm (Spool_Inner_Diameter minus 2.5mm) and a height of 7.25mm. At the t...
Spool_Inner_Diameter = 93; Spacer_Thickness = 5.8; Text = "INLAND (ID=93mm)"; module __Customizer_Limit__ () {} segment_length = 1; bambulab_spool_OD = 81.97; brim_width = Spool_Inner_Diameter + 5; ring_height = 8; ring_edge = 2; TextSize = 3; spacing = 0.9; d = bambulab_spool_OD+5; r = d/2; x = (r-r)/4; TextPaddin...
glb/cad_afeedc492e78.glb
Create a simple hair clip by starting with a flat, elliptical base that is 40mm long, 10mm wide, and 20mm thick. From this main body, remove a smaller elliptical volume from the center to create a hollowed-out slot. This inner cutout should be 30mm long, 5mm wide, and 15mm thick, positioned such that it leaves a solid ...
$fa=1; $fs=0.4; difference(){scale([2,0.5,1])cylinder(1,20,20); scale([2,0.5,1])translate([0,0,-0.001])cylinder(2,15,15);} scale([3.5,0.5,1])translate([1,0,-0.001])cylinder(2,8,8);
glb/cad_27c9f39ad1dc.glb
Create a hair clip by starting with a flat, oval base that is 40mm long, 10mm wide, and 20mm thick. From this base, remove a smaller, concentric oval-shaped hole that is 30mm long, 7.5mm wide, and 15mm thick to create a thin outer rim. Additionally, carve out a smaller, elongated slot measuring 14mm long, 2.5mm wide, a...
$fa=1; $fs=0.4; difference(){scale([2,0.5,1])cylinder(1,20,20); scale([2,0.5,1])translate([0,0,-0.001])cylinder(2,15,15);} scale([3.5,0.5,1])translate([1,0,-0.001])cylinder(2,8,8); scale([1,1,3])color("blue")translate([-10,-1,0.6])text("CB designs",4,"Ink Free:style=Regular");
glb/cad_8e1892f8b55a.glb
Create a Vise Grip wire stripper hanger designed for a honeycomb storage wall. Start by creating a hexagonal peg with a height of 9.5mm and a diameter of 15.35mm, topped with a thin hexagonal cap 0.5mm thick and 14.5mm in diameter. Build a main body around this peg. The central section is a profile 15mm wide and 1.2m...
$fn=50; module hexpeg(peg_l) { hull() { cylinder(h=(peg_l - 1), d=15.35, $fn=6, center=true); translate([0, 0, -((peg_l / 2) - .25)]) cylinder(h=.5, d=14.5, $fn=6, center=true); } } module profile(length) { hull() { cube([7.5, length, .2], center=true); ...
glb/cad_3c2050fd81ce.glb
Create a HSW Small Ruler/Utility Hook by first constructing a hexagonal peg. This peg is formed by a hull of two 6-sided prisms: a main hexagonal cylinder with a diameter of 15.35mm and a height of 9mm, capped with a thinner hexagonal disc 0.5mm thick and 14.5mm in diameter. Attached to the flat face of this hexagona...
$fn=50; module hexpeg(peg_l) { hull() { cylinder(h=(peg_l - 1), d=15.35, $fn=6, center=true); translate([0, 0, -((peg_l / 2) - .25)]) cylinder(h=.5, d=14.5, $fn=6, center=true); } } module profile(length, dia, base, sep) { hull() { cylinder(h=length, d=dia, cen...
glb/cad_6420444ff520.glb
Create a Ring Sizing Mandrel and Gauge Rings tool. Start by constructing a tapered vertical cylinder that serves as the mandrel. The mandrel's diameter should increase linearly to correspond with US ring sizes 4 through 14. Around this mandrel, create a series of gauge rings. Each ring must have a height of 8.1mm and...
use <wrap.scad> ring_size = 12; band_width = 8.1; band_thickness = 2.3; font = "Nautilus Pompilius:style=Regular"; text_depth = band_thickness/3; $fn=64; size_zero = 11.53; size_scaler = 0.824; function inner_diameter_mm(x) = size_zero + size_scaler * x; module size_deboss(id, size) { wrap(r=id/2+text_depth, h=b...
glb/cad_dbf572d6eccb.glb
Create a ring gauge ring with an inner diameter of 21.38mm, based on a US ring size 12. The ring should have a band thickness of 2.3mm and a total width of 8.1mm. The cross-section of the band is a circle with a diameter of 2.3mm, which is then extruded along a circular path to form the ring. On the inside of the band,...
use <wrap.scad> band_thickness = 2.3; band_width = 8.1; ring_size = 12; font = "Nautilus Pompilius:style=Regular"; text_depth = band_thickness/8; $fn=64; size_zero = 11.53; size_scaler = 0.824; function inner_diameter_mm(x) = size_zero + size_scaler * x; id = inner_diameter_mm(ring_size); module size_deboss() { ...
glb/cad_45e03e6f9751.glb
Create a TP-Link Archer AX75E vertical wall mount. Start with a main rectangular body that is 180mm wide, 28mm high, and 3mm deep. Attach a support block to the side of this body; the support should be 50mm long, 20mm wide, and 3mm deep. Add two identical attachment fixtures to the main body, positioned 143.9mm apart....
$e = 1.025; $eScale = [$e, $e, $e]; $fn = 48; bodyHeight = 28; bodyWidth = 180; bodyDepth = 3; supportHeight = 50; supportWidth = 20; distanceBetweenAttachments = 143.9; attachmentHeadDiameter = 7.8; attachmentHeadDepth = 2.3; attachmentBodyWidth = 5; attachmentBodyHeight = 6; attachmentBodyDepth = 5.5; cube([body...
glb/cad_0fa42b77cadf.glb
Create a two-part enclosure for a high-frequency current probe. The enclosure consists of two symmetrical halves that form a cylindrical sleeve designed to house a ferrite ring with an outer diameter of 25mm, an inner diameter of 15mm, and a height of 11.5mm. Each half is a semi-cylinder with a total height of approxi...
FerriteOuter = 25.0; FerriteInner = 15.0; FerriteHeight = 11.5; ConnectorWidth = 12.7; ConnectorHeight = 13.5; ConnectorLength = 4.5; ConnectorHole = 4.5; ConnectorSlot = true; WireDiameter = 0.9; ThinWallThickness = 0.87; OuterWallThickness = 1.5; Tolerance = 0.2; ClampWidth = 3.0; ClipWidth = 3.0; ClipT...
glb/cad_4d1c4ba0f4ee.glb
Create an enclosure for an HF current probe consisting of two mirrored hinged halves. Each half is based on a series of cylindrical hinge elements. Construct a hinge assembly using 5 repeating elements for one side and 4 for the other. Each element consists of a cylinder with an outer radius of 5mm and a concentric in...
function hinge_height( r_outer, max_height ) = max_height > 0 && max_height < r_outer*sqrt(2) ? max_height : r_outer*sqrt(2) ; function hinge_length( len, gap, n_hinges ) = n_hinges*len+(n_hinges-1)*gap ; module hinge_element( len, r_outer=5, r_inner=2, offset=1, v_offset=1, height=0, fn=100 ) { sqr= r_oute...
glb/cad_20f51d3a2576.glb
Create an Anova Precision Cooker Mount consisting of a circular cap. Start by creating a base cylinder with a diameter of 90mm and a height of 3mm. On top of this base, add a second cylinder centered on the first, with a diameter of 60.8mm and a height of 12mm. Finally, add a third cylinder on top of the second one wit...
$fn=100; anova_diameter = 61.0; flange_diameter = 90.0; flange_height = 25.0; wall_strength = 3.0; cap_height = 15.0; nut_thread_scale = 1.02; use_knuckle_thread = false; module anovaNut(){ difference(){ rotate([0, 0, 30]) translate([0, 0, 0.01]) phex(flange_diameter-5, 10.0, 3*wall_strength); s...
glb/cad_c607b74e38b8.glb
Create a Table Plate Bracket C-Clamp consisting of a C-shaped body and a threaded screw. First, construct the clamp body by extruding a profile with a width of 30mm. The profile is a C-shape with a back thickness of 15mm and an arm length of 30mm. The interior gap of the C-clamp is defined by a height of 26mm, a top ...
include <itertools.scad>; include <math.scad>; include <2d.scad>; include <3d.scad>; include <debug.scad>; use <threads.scad>; clamp_width = 30; clamp_height = 26; clamp_top_thickness = 10; clamp_bottom_thickness = 10; clamp_back_thickness = 15; clamp_edge_radius = 2; clamp_edge_chamfer = true; clamp_arm_length = 30; ...
glb/cad_a6f029da1be9.glb
Create a T90 Torx Tool consisting of a Torx head and a gripping knob body. First, construct the Torx head with a height of 10.5mm. Start with a central cylinder of radius 9.0019mm. Add six small lobes around this center, each with a radius of 1.5297mm, positioned at a radius of 8.4843mm from the center every 60 degre...
lobes = 6; mbr = 9.0019; thh = 10.5; slco = 8.4843; slr = 1.5297; llco=11.5875; llr = 4.468; module TorxT90Head() { intersection() { difference() { union() { cylinder($fn=60, r=mbr, h=thh); for(i=[1:lobes]) { translate([slco*cos(i*(360/lob...
glb/cad_d1709dccd3ec.glb