Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a power supply case base with a total height of 5mm. Start by forming a primary disk with a radius of 47.5mm and a height of 2.5mm. On top of this base, add a second section that is 4mm high, consisting of the intersection of a cylinder with a radius of 45mm and a rectangular block measuring 46mm by 90mm, center...
difference(){ union(){ translate([0,0,2.5]){ intersection(){ cylinder (h=4,r=45,$fa=5, $fs=0.1); translate([-23,-45,0]) cube([46,90,5]); } } intersection(){ cylinder (h=2.5,r=47.5,$fa=5, $fs=0.1); translate([-25.5,-47.5,0]) cube([51,95,5]); } cylinder(h=2.5,r=35,$fa=5, ...
glb/cad_024d464d9149.glb
Create a power supply case by constructing a hollowed-out container with a flat base and rounded sides. Start with a primary solid formed by the intersection of a cylinder with a radius of 47.5mm and a height of 45mm, and a rectangular block measuring 51mm wide, 95mm deep, and 55mm high, centered so the block's width a...
difference(){ union(){ intersection(){ cylinder (h=45,r=47.5,$fa=5, $fs=0.1); translate([-25.5,-47.5,0]) cube([51,95,55]); } cylinder (h=45,r1=20,r2=35,$fa=5, $fs=0.1); } translate([0,0,2.5]) union(){ intersection(){ cylinder (h=47.5,r=45,$fa=5, $fs=0.1); translate([-23,-45,0]) cube...
glb/cad_ed8ff1f27f0a.glb
Create a Music Box exterior consisting of a bottom box and a top lid connected by a hinge. For the bottom box, create a rectangular shell with an outer width of 80mm, depth of 60mm, and height of 20mm. The walls should be 1.5mm thick. On the back side, integrate a hinge mechanism consisting of a series of interlockin...
$fn = 100; width = 80; depth = 60; height = 20; wallThickness = 1.5; hingeOuter = 7; hingeInner = 3; hingeInnerSlop = .5; hingeFingerSlop = .4; fingerLength = hingeOuter/1.65; fingerSize = 6.8; topFingerSize = fingerSize; latchWidth = 15; bottom(); top(); bottomLatch(); module bottom() { union() { difference() { ...
glb/cad_093bfd61462f.glb
Create a bicycle phone holder consisting of two mirrored symmetrical pieces that form a cradle for a phone measuring 143mm in length, 74mm in width, and 10mm in thickness. For each side, construct a vertical support piece 5mm thick. This piece features a central rectangular body with a height of 5mm and a width of 10...
Phone_Length=143; Phone_Width=74; Phone_Thickness = 10; Handle_Bar_Diameter = 36; Holder_Height = 17; Vertical_Offset = -15; $fs = 1; module copy_mirror(vec=[0,1,0]) { union() { children(); mirror(vec) children(); } }; module rounded_corner(vec=[0,0,0],rot=0) { translate(vec) rotate([0,0,rot]) difference...
glb/cad_f4c5896e4e11.glb
Create a water wheel turbine disc with a diameter of 100mm and a thickness of 2.4mm. Start by centering a circular bore with a diameter of 8mm through the middle of the disc. Remove a rectangular slot measuring 6mm wide by 43mm high from the center, extending outward along one radius. Near the center, remove a rectang...
disc_diameter = 100; disc_thickness = 2.4; blade_angle = 30; blade_n = 16; blade_w = 2.5; blade_h = 16; blade_t = 0.5; bore_diameter = 8; nut_w = 10; nut_h = 5; nut_y = 9; gs_slot_w = 6; margin = 3; plastic_saving = true; holes_number = 6; hole_ratio = 0.5; disc_r = disc_diameter/2; nut_angle = 2*atan(1.5*nut_w/(2*...
glb/cad_d5287c382e3d.glb
Create a shrouded propeller consisting of a central hub, radiating fins, and an outer cylindrical shroud. Start by creating a central sphere with a radius of 5mm. Extend a cylinder of the same 5mm radius downwards from the center of the sphere to a depth of 119mm to form the drive shaft housing. Construct three rectan...
fs=1; fa=4; trad=23.5; outw=1.5; nfins=3; rins= 5; tdepth = 3; fangle = 40; tfin = 1; module total(fs,fa,trad,outw,nfins,rins,tdepth,tfin) { $fs=fs; $fa=fa; module fin() {union(){rotate([-fangle,0,0]){union() { cube([119, 119, tfin]); translate( [119,0,.5*tfin]){ rotate([0,-90,0]) cylinder (h=119,r=.5*tfin);} ...
glb/cad_200788bcca6d.glb
Create a Duplo compatible brick with a base rectangular footprint of 31.75mm by 31.75mm and a height of 19.25mm. Hollow out the center by removing a smaller rectangular block of 28.75mm by 28.75mm, leaving a wall thickness of 1.5mm. On the top surface, place four cylindrical studs with an outer radius of 4.85mm and a...
posstud=8.00; rstud=4.85; d=2.5; rcyl=6.425; brick(0,0,1,posstud,rstud,d,rcyl,1); brick(40,0,1,posstud,rstud,d,rcyl,1); brick(80,0,1,posstud,rstud,d,rcyl,1); brick(120,0,1,posstud,rstud,d,rcyl,1); brick(0,40,2,posstud,rstud,d,rcyl,1); brick(70,40,2,posstud,rstud,d,rcyl,1); brick(0,80,2,posstud,rstud,d,rcyl,1); brick(...
glb/cad_f2c5aa88af1c.glb
Create a customizable filament holder consisting of two identical base plates and two pulley wheels. Each base plate is a flat slab 3.5mm thick. The main body is a rounded rectangle with a total length of 128.2mm (calculated from a 100mm distance between bearing centers plus the pulley diameter) and a width of 10mm. ...
bearingOuterDiameter = 22.2; bearingInnerDiameter = 8; bearingHeight = 7; bearingSpacerDiameter = 3; bearingSpacerDepth = 0.5; bearingsDistance = 100; plateDepth = 3.5; frameClampHeight = 30; frameClampWidth = 40; frameDepth = 6; cornerRadius = 5; pulleyDiameter = bearingOuterDiameter + bearingHeight + 1; pla...
glb/cad_76e918389eee.glb
Create a parametric mouthpiece for a musical instrument. The object consists of a cup, a throat, and a backpipe. Start by creating a cup with a diameter of 16mm and a depth of 10mm. The cup's interior profile should be a hybrid between a cone and a sphere, based on a sphere factor of 0.5. The rim of the cup should hav...
$fn=15; RimOuterRadius=[2,2]; RimPlateauWidth=[2,2]; RimInnerRadius=[2,2]; RimHeight=[0,2]; CupDiameter=[16,16]; CupDepth=[10,10]; CupSphereFactor=0.5; ThroatRadius=[2,2]; ThroatDiameter=[4,4]; BackPipeDiameter=9.8; FrontPipeDiameter=BackPipeDiameter+4; BoreDiameter=BackPipeDiameter-1.5; MouthPieceLength=87; PrintingF...
glb/cad_227cd6d4dc47.glb
Create a Soma Cube puzzle consisting of seven distinct polycubes, where each individual small cube has a side length of 16mm. Construct the seven pieces as follows: create one corner piece from three cubes meeting at a right angle; create one angle piece from three cubes in an L-shape; create one "T" piece from four cu...
translate([-50,-50,-1.01]) %cube([100,100,1]); module c() { cube(size=10, center=true); } $fn = 100; module c1() { union() { c(); translate([10,0,0]) c(); translate([10,10,0]) c(); translate([10,0,10]) c(); } } module c2() { union() { c(); translate([10,0,0]) c(); translate([...
glb/cad_86477352c22e.glb
Create a trim button block for a gimbal with a total length of 53mm and a base height of 5.5mm. The main body is a hull formed by two cylinders with 5.5mm radii at each end. Integrate two rectangular mounting blocks for microswitches, each 8mm wide, 6mm deep, and 8mm high, positioned at x=15mm and x=38mm. Connect the...
ghost = 0 ; cable_holder = 1 ; blx = 53 ; blh = 5.5; trimx = 6; knob_height = 1.2 ; travel = 5.5 ; trimy = 8.5; snap_height = 0.6 ; hinge_cutout = 2.3; stegx = 29 ; bspc = 6.6 ; module 9xr_trimmer() { difference() { union() { hull() { translate ([5.5,5.5,0]) cylinder (r=5.5, h=blh, $fn...
glb/cad_70bf53cd4b4a.glb
Create a guide for a 3D printer axis by constructing a main block that is 20mm wide, 29mm deep, and 20mm high. The block should have rounded vertical edges with a radius of 4mm. Remove a central rectangular section from the bottom and front to create a U-shaped channel that is 20mm wide, 20mm deep, and 22mm high, allow...
width = 20; module hexagon(size, height) { boxWidth = size/1.75; for (r = [-60, 0, 60]) rotate([0,0,r]) cube([boxWidth, size, height], true); } module holder() { difference() { union() { translate([0, -9, 0]) minkowski() { cube([20,29,width-1]); cylinder(r=4,h=1); } } translate([0, 0, -1]) cube([...
glb/cad_f74228eb564d.glb
Create a guide for a 3D printer axis by starting with a solid rectangular block measuring 31mm in width, 18.5mm in depth, and 14mm in height. Round the edges of this block with a 0.5mm radius. Remove a large rectangular section from one side of the block, measuring 32mm wide, 19.5mm deep, and 15mm high, but offset this...
rotate([180,0,0]) difference() { minkowski() { cube([32-1, 19.5-1, 15-1]); sphere(r=0.5); } translate([-22, 5, -5]) cube([32, 19.5, 15]); translate([5, -1, 5]) rotate([-90, 0, 0]) cylinder(r=1.5, h=10); translate([25, 12.5, -1]) cylinder(r=4, h=20); }
glb/cad_f0bf96d2afe1.glb
Create a parametric wrench with a total thickness of 5mm. The body consists of a central rectangular handle connecting two circular ends. The handle is a rectangular block 14.4mm wide and 5mm thick, extending between two cylinders. Each cylinder has a radius of 14.2mm and is centered at opposite ends of the handle. At...
include <shapes.scad> include <../openscad-bitmap/bitmap.scad> kerf = 0.4; D = 14 + kerf; M = D/2; H = 5; Ltot = D * 10; L = Ltot-2*(D/2+M); module num_to_str(number, block_size, height) { numbers_size = ceil(log(number + 1) / log(10)); for (loc = [0:numbers_size - 1]) { translate([0, (numbers_size - loc - 1) *...
glb/cad_776d2ffca3e6.glb
Create a Camera Gantry consisting of four distinct components. First, design a bracket by combining a cylinder with a 12mm diameter and 25mm height with a second cylinder of the same diameter and 15mm height stacked on top. Attach a rectangular base measuring 40mm by 50mm by 6mm to the side of these cylinders. Add two ...
include <CG_LocalLib.scad> ; bracket() ; module bracket() { difference() { union() { cylinder(6,25,25) ; translate([0,0,6]) cylinder(6,25,15) ; translate([-40,-25,0]) cube([40,50,6]) ; translate([-39.9,-25,0]) cube([5,50,31]) ; translate([-15,-23,5.9]) rotate([0,-90,0]) halfslab(20,4,20) ; transl...
glb/cad_f88dcca2f8a7.glb
Create a Camera Gantry knob and spacer set. First, construct a knob by creating a cylinder with a radius of 20mm and a height of 8mm. Centered within this cylinder, remove a hexagonal hole with a width of 11.9mm and a depth of 8mm, positioned 5mm from the base. Additionally, drill a vertical hole with a radius of 3.6mm...
include <CG_LocalLib.scad> ; Sthick = 7 ; Drad = 3.6 ; Nwidth = 11.9 ; Hthick = 5 ; Kdepth = 8 ; Hdepth = 8 ; triknob() ; translate([25,0,0]) spacer() ; module bite() { translate([32,0,-1]) cylinder(20,20,20) ; } module triknob() { difference() { union() { cylinder(Kdepth,20,20) ; } translate([0,0,(Hde...
glb/cad_553a9c55adc0.glb
Create a 3D round universal connector consisting of three intersecting cylinders. Each cylinder has an outer diameter of 15mm and a length of 45mm (calculated as 2 * 20mm connect length + 15mm diameter), with a resolution of 100 faces for all circular profiles. Position the first cylinder vertically along the Z-axis. ...
outer_diameter = 15; inner_diameter = 8; connect_length = 20; faces = 100; connector_type = "XX_conn"; if (connector_type == "L_conn") { L_conn(outer_diameter, inner_diameter, connect_length, faces); } else if (connector_type == "T_conn") { T_conn(outer_diameter, inner_diameter, connect_length, faces); } else ...
glb/cad_bf3d4e2a4d37.glb
Create a Microbit Diffuser by starting with a central rectangular base plate measuring 52mm wide, 44mm high, and 1.5mm thick. Add side walls and a bottom lip that are 1.5mm thick and 3.7mm high, running along the outer edges of the width and height. Carve out several rectangular recesses from this structure: a centra...
board_w = 52; board_h = 44; board_d = 1.7; standoff = 2; thickness = 1.5; fire_pane_w = 25; fire_pane_h = 22; fire_pane_off = 10; fire_pane_d = 0.5; button_off_w = 4; button_off_h = 17; button_w = 8; usb_w = 15; Delta = 0.1; module plate() { translate([0,board_h/2,thickness/2]) cube(size=[board_w,board_h, thick...
glb/cad_3f3287a8065b.glb
Create a fan gasket with a square footprint of 30mm by 30mm and a height of 2mm. The main body should have rounded corners with a radius of 3mm. Center a large circular hole for airflow with a diameter of 26mm. Additionally, create four smaller screw holes, each with a diameter of 3.5mm. These screw holes should be p...
part = 0; fan_size = 30; airflow_diameter = 26; screw_diameter = 3.5; screw_distance = 24; corner_radius = 3; gasket_height = 2; wall_thickness = 3; overlap = 0.04; $fn = 100; print_part(); module print_part() { if (part == 0) { fan_gasket(fan_size, screw_diameter, screw_distance, corner_radius, airflow_di...
glb/cad_dd0c032e9f5d.glb
Create a small cabinet for storage by constructing a hollow rectangular prism with an outer dimension of 80mm width, 70mm depth, and 35mm height. The walls of the cabinet should have a uniform thickness of 2.7mm (calculated as 9 times a 0.3mm nozzle diameter). The cabinet is an open-frame structure. Remove the front ...
target_nozzle_dia = 0.3; master_cx = 80; master_cy = 70; master_cz = 35; master_hole = 28; master_hole_offset = 17; master_edge = target_nozzle_dia * 9; master_case_shrink = 1; module box(cx, cy, cz, edge, xa = 0, ya = 0, za = 0) { wt = edge / 2; difference() { cube([cx, cy, cz]); transla...
glb/cad_241971d62bd2.glb
Create a small storage cabinet with an open-top rectangular box design. The main body has interior dimensions of 80mm in width, 50mm in height, and 40mm in depth. The walls have a thickness of 3.9mm (calculated as 13 times a 0.3mm nozzle diameter). The cabinet features a series of interlocking claws for stacking and s...
include <boxes.scad> target_nozzle_dia = 0.3; master_cx = 80; master_cy = 50; master_cz = 40; master_hole = 28; master_hole_offset = 17; master_edge = target_nozzle_dia * 13; master_case_shrink = 3.2; side_claws_dist_coef = 1.0; tb_claws_dist_coef = 3.18; preview_cases = true; use_box1 = true; module claw2d(st) { ...
glb/cad_501145275c69.glb
Create a printed holder for an optical endstop. Start by creating a rectangular base block with rounded corners, measuring 47mm in length, 27mm in width, and 10mm in height. In the center of this base, carve out a rectangular depression for a PCB that is 41mm long, 21mm wide, and 4mm deep. Add two identical fixing bra...
de = 0.1; fn_hole = 12; ex = 0; P1 = 41; P2 = 21; P3 = 3; P4 = 8; P5 = 20; P6 = 3.2; P7 = 14; P10 = 10; P11 = 4; P12 = 4; P20 = 1; HolderBase(); translate([(P1+2*P3-P5)/2, -P4+de, 0]) Bracket(); translate([P5+(P1+2*P3-P5)/2, P4+P2+2*P3-de, 0]) rotate([0, 0, 180]) Bracket(); module HolderBase() { diff...
glb/cad_c25e54293f07.glb
Create a Vertical Blind Hanger consisting of a main horizontal strut and a central vertical tab. The main strut is a rectangular slab 125mm long, 8.1mm high, and 1.4mm wide, with all edges rounded by a 0.5mm radius. Centered along the length of this strut, create a rectangular cutout 7.5mm long and 3.5mm high with 0.5m...
$fn=20; hanger_wdth=1.4; rounding=0.5; hght=13.5; strut_len=125; strut_hght=8.1; hole1_len = 7.5; hole1_hght=3.5; hole1_offset=3; tab_len=13.2; tab_hght=hght-strut_hght; hole2_len = 7.5; hole2_hght=3.9; hole2_offset=8; brace_len=52.6; brace_radius=0.65; brace_offset=strut_hght/2; e=0.1; module hanger() { tra...
glb/cad_95b3a41200e0.glb
Create a Picavet for an action camera by constructing a central mounting hub with two extending arms. Start with a central cylinder that has an outer radius of 22.5mm and an inner hole of 20mm, both with a height of 15mm. From this central ring, extend two flat legs outward along the Y-axis; each leg should be 2.5mm th...
$fn=100; fork_leg_thickness=2.5; leg_width=15; cam_rad=25/2; thickness=9; clearance_r = 16; leg_thickness = 4; leg_flat_length=45; cube_y = clearance_r + leg_thickness ; union() { wedge(); translate([0,-(thickness/2 + cube_y + 1),0]) rotate([90,0,0]) hook(); flex(); legs(); } module wedge() { } module hook() { ...
glb/cad_fab38d54342c.glb
Create a Picavet for an action camera by starting with a cylinder 10mm high with a radius of 10mm. Remove a central vertical hole with a radius of 1.5mm that extends from 1mm below the base up to 9mm in height. To shape the top, intersect the entire model with a sphere of radius 25mm centered at a height of 10mm minus ...
$fn=100; af=5.5; hole_r=3/2; intersection() { difference() { cyl(); hole(); translate([0,0,-0.1]) nut(); } top_surf(); } module cyl() { cylinder(h=10,r=10,center=false); } module hole() { translate([0,0,-1]) cylinder(h=9,r=hole_r, center=false); } module nut() { difference() { cylinder(h=2.5, r=5, cente...
glb/cad_ae1180753349.glb
Create a Picavet for an action camera by constructing a central mounting assembly. Start with a thick disc-like cross that is 8mm thick, featuring an outer radius of 18.5mm and a concentric inner hole with a radius of 12.5mm. Attached to this cross, create a vertical cylindrical leg with an outer radius of 20mm and a...
$fn=100; thickness=8; cam_rad=25/2; clearance_r = 16; leg_thickness = 4; bossToCofG = 37; flat_r=5; difference() { union() { cross(width); translate([0,0,1.99+(bossToCofG+2*flat_r)/2]) leg(); flat_boss(); } translate([0,0,clearance_r + thickness/2]) slot(); } module cross(len) { difference() { cylinder(h=thickness,...
glb/cad_4df64be11693.glb
Create a shower rail razor clip designed to hold a razor or toothbrush. Start by creating a main cylindrical ring with an outer diameter of 29.5mm and an inner diameter of 25.5mm, with a height of 19mm. This ring should be open on one side to allow it to snap onto a rail. To this ring, add a secondary cylindrical secti...
piped = 25.5; razord = 15; wall = 4; $fn=72; module clip(od,w,h) { union() { difference() { cylinder(d=od+w,h=h); union() { translate([0,0,-h/2]) cylinder(d=od,h=h*2); translate([-(od+w*2)/2,w,-h/2]) cube([od+w+10,od+w+10,h*2]); } } translate([od/2+w/...
glb/cad_0dc4c9c94f3d.glb
Create a Blind Hanger Mold consisting of two identical mirrored halves. Each half is a rectangular block measuring 145mm in length, 21mm in height, and 7mm in depth. Inside each block, carve out a negative cavity to form the hanger shape. The cavity consists of a main horizontal slot 125mm long and 1.4mm wide. In the...
$fn=20; hanger_wdth=1.4; rounding=0.5; edge=6; depth=7; wall=2; hght=13.5; strut_len=125; strut_hght=8.1; hole1_len = 7.5; hole1_hght=3.5; hole1_offset=3; tab_len=13.2; tab_hght=hght-strut_hght; hole2_len = 7.5; hole2_hght=3.9; hole2_offset=8; brace_len=52.6; brace_radius=0.65; brace_offset=strut_hght/2; slop=0.5;...
glb/cad_d7eb62d8a254.glb
Create a 3D rectangular full cross connector consisting of six intersecting legs. Start with a central cube that has an outer width of 12mm and a height of 12mm. Extend six legs from this center, each with an outer width of 12mm and a length of 20mm, extending along the X, Y, and Z axes in both positive and negative di...
outer_width = 12; hole_width = 8; connect_length = 20; connector_type = "XX_conn"; if (connector_type == "I_conn") { I_conn(outer_width, hole_width, connect_length); } else if (connector_type == "L_conn") { L_conn(outer_width, hole_width, connect_length); } else if (connector_type == "T_conn") { T_conn(out...
glb/cad_c31aeb8b4815.glb
Create a ballast filler for a PitBull F3F RC glider by constructing a solid rectangular prism. The prism must have a length of 50.5 mm, a width of 10 mm, and a height of 15.5 mm.
cube ([50.5,10,15.5]);
glb/cad_cbbda7e467b4.glb
Create a ballast filler for a PitBull F3F RC glider by constructing a rectangular prism. The shape should have a length of 83.5 mm, a width of 13.5 mm, and a height of 13.5 mm.
cube ([83.5,13.5,13.5]);
glb/cad_c25ca8e6c02f.glb
Create a camera wall mount consisting of two intersecting rectangular plates. First, create a base rectangular plate measuring 20mm wide, 30mm deep, and 3mm thick. In this base plate, create two vertical holes with a radius of 2mm; position the first hole centered at x=5mm, y=20mm and the second hole centered at x=15mm...
$fn = 60; difference() { cube([20, 30, 3]); union() { translate([5,30-10,0])cylinder(r=2, h=10, center=true); translate([20-5,30-10,0])cylinder(r=2, h=10, center=true); } } translate([0,2.1,2.1])rotate([180-45,0,0])difference() { cube([20, 40, 3]); translate([20/2,30,0])cylinder(r=1, h=10, center=true); }
glb/cad_e3b89af69ba7.glb
Create a USB B Panel Mount designed to hold a connector. Start with a main rectangular block measuring 17mm wide, 17mm deep, and 28mm high. On top of this block, center a tapered cylinder that transitions from a 5mm radius at the base to a 4mm radius at a height of 6mm. Extend the base of the model by adding two recta...
$fn=30; difference(){ union(){ translate([-0.5,0,0]) cube([17,17,28]); translate([8,8,28]) cylinder(h=6, r1=5, r2=4); translate([-8,0,0]) cube([32,17,5]); translate([-8,0,0]) cube([32,4,12]); minkowski(){ translate([-6,22,0]) cube([28,12,2]); cylind...
glb/cad_c3beacdd10dd.glb
Create a wardrobe foot consisting of a rectangular base with two vertical cylindrical pins. Start by creating a rectangular block measuring 49mm in length, 16mm in width, and 5mm in height. On the top surface of this block, place two cylinders, each with a diameter of 7.8mm and a height of 15mm. Position the first cyli...
dimX=49; dimY=16; height=5; offsetX=8; heightPin=15; dPin=7.8; cube([dimX, dimY,height]); translate([offsetX,dimY/2]) cylinder(d=dPin, h=heightPin); translate([dimX-offsetX,dimY/2]) cylinder(d=dPin, h=heightPin);
glb/cad_94373237698f.glb
Create a two-piece interlocking spool hub. For each half, start with a circular base plate 100mm in diameter and 2.5mm thick. At the center of the base, build a vertical cylinder with an outer diameter of 100mm and a height of 150mm, with a wall thickness of 2.5mm. The central hub is hollowed out. The interior cavity ...
include <write/write.scad> use <utils/build_plate.scad> hubMajorDiameter = 35; hubMajorDiameterCenter = 30; hubMinorDiameter = 25; hubMinorDiameterCenter = 25; reelWidth = 150; sideWallWidth = 2.5; sideWallHeight = 100; clipCount = 5; clipHeight = 3; clipWidth1 = 5; fineDetail = .5 ; filamentSize = 1.75; t...
glb/cad_6609885ea234.glb
Create a 35mm DIN rail fuse holder clip. Start by constructing a main body with a central rectangular opening measuring 44mm in width and 33mm in height. Within this body, incorporate a vertical channel 7.5mm wide and 100mm long to accommodate wiring, and remove two blocks measuring 14.5mm by 17mm by 20mm from the fron...
CLIP_H = 17.5; GRANULARITY = 50; MYWID = 33; module din_clip() { union() { difference() { linear_extrude(height=CLIP_H, center=true, convexity=5) { import(file="din_bracket_spring.dxf", layer="0", $fn=GRANULARITY); } union() { translate([22,-1,-5]) cube([7.5,100,10]); translate([15,-1,-10]) cube...
glb/cad_38e90acde562.glb
Create a camera aligner adapter for a CNC mill spindle. Start with a rectangular base plate measuring 30mm by 36mm with a wall thickness of 2mm and a total height of 8.6mm. Hollow out the center of the base, leaving a floor thickness of 2mm. In the center of the base, create a cylindrical lens shroud with an outer dia...
$fn=60; td=27.82; th=8.8; nd=24.59; nD=(2*nd)/sqrt(3); nh=8.6; lf=0.2; wt=2; bw=26; bl=32; ld=14.00; lh=4.5; camerabase(); module camerabase(){ bt=8.6; difference(){ union(){ difference(){ translate([0,0,(bt+1)/2]) cube([bl+wt*2,bw+wt*2,bt+1],center=true); translate...
glb/cad_74dddcb13534.glb
Create a series of eight Pulley Lockers arranged in two parallel rows of four. Each locker is a cylinder with a height of 10mm and an outer radius of 7mm. Every locker must have a concentric central hole running through its entire height. The radius of this central hole starts at 2.5mm for the first locker and increase...
module locker(outer_radius,radius,marks) { difference() { cylinder(h = 10,r1=outer_radius, r2=outer_radius,center=false,$fn=32); cylinder(h = 10,r1=radius, r2=radius,center=false,$fn=32); for (x = [0 : marks]) { translate([-10,2*x-5,9]) cube([15,1,1]); } } } module locker_holed(outer_radius,rad...
glb/cad_28b0614532a4.glb
Create a Flashforge Creator Pro Tube Guide consisting of two symmetrical arms connected by a central cross-bar. Start by creating two parallel base bars, each a cylinder with a diameter of 6mm and a length of 65mm, positioned 51mm apart from center to center. Connect these bars with a rectangular cross-bar measuring 20...
angle = 15; distance_from_case = 20; base_width = 51; half_base_width = base_width / 2; filament_slot_width = 2.5; hole_diameter = 6.2; holder_length = 20; hole_wall = 2.5; hole_chamfer = 1; $fn=90; eps1 = 0.001; eps2 = eps1 * 2; module base_bar(side) { translate([-32.5, side*half_base_width, 3]) rotate([0,...
glb/cad_4c52786e51d1.glb
Create an order tablet for tabletop gaming tokens. The base is a flat rectangular plate with a total thickness of 3.9mm. Construct three small rectangular trays and one larger rectangular tray. Each tray is a recessed pocket with a floor thickness of 1.8mm and a wall height of 2.1mm. The three small trays are identic...
tokenD = 15; tokenR = tokenD/2; tokenX = 5; tokenY = 2; spentBoxWidth = 3; spentBoxLeft = false; borderW = 3; borderStr = 2.1; bottomStr = 1.8; textStr = .3; oddPositioning = true; textUp = false; fontSize = 4/7; tokenTray(); module tokenTray(){ translate([0,2*(borderW+fieldY()),0]) singleTray("GROUP 1...
glb/cad_386229e2fdec.glb
Create a silhouette height ruler for tabletop gaming. Start by constructing a base rectangular plate that is 3.5mm wide, 67mm long, and 3mm thick. Attached to the side of this plate, create a series of six stepped rectangular blocks of varying heights, all 3mm thick. These steps should increase in height from the small...
measures = [25,32,40,45,55,67]; width = 2; strength = 3; s =5; left = 3.5; difference() { silRuler(); translate([0,left+0,0]) cylinder(d = 3.5, h = 10, $fn=60); } module silRuler() { difference(){ union() { for(j = [1 : 6]) { cube([width*j,measures[6-j],strength]); ...
glb/cad_525af1542c19.glb
Create an interlocking puzzle cube with a total outer dimension of 18mm, composed of three distinct interlocking pieces. The overall structure is a 3x3x3 grid of 6mm cells. Each piece is constructed from a collection of 6mm cubes with 0.9mm chamfered edges. Piece 1 consists of 11 cubes: a central column of three cubes...
part="assembled"; total_size=18; cube_size=total_size/3; gap=0.2; chamfer_size=20; corner=cube_size/chamfer_size; eps=0.01; print_part(); module print_part() { if (part == "first") { final_piece1(); } else if (part == "second") { final_piece2(); } else if (part == "third") { final_piece3(); } else { a...
glb/cad_4c363f5635c2.glb
Create a Prusa i3 Acrylic Rounded Clip consisting of a hollowed cylinder and a mounting tab. Start by creating a cylinder with a radius of 8.8mm and a height of 20mm. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a radius of 6mm (calculated as the outer radius minus a 1.4mm shell...
CYLINDER_HEIGHT = 20; CYLINDER_RADIUS = 8.80; TAB_LENGTH = 15; TAB_THICKNESS = 5; TAB_WIDTH = 10; SCREW_HOLE_RADIUS = 1.5; SCREW_HOLE_OFFSET = 5; SHELL_THICKNESS = 1.4; $fn = 100; EXTRUSION_THICKNESS = CYLINDER_RADIUS - SHELL_THICKNESS * 2; module cylindre() { difference() { cyl...
glb/cad_6abda0c74509.glb
Create a Prusa i3 Acrylic Rounded Clip consisting of a hollowed cylinder and an attached rectangular tab. Start by creating a cylinder with a radius of 8.8mm and a height of 20mm. Remove a smaller concentric cylinder from the center, starting 5mm from the base and extending to the top, with a radius of 6mm, leaving a 2...
$fn = 100; CYLINDER_HEIGHT = 20; CYLINDER_RADIUS = 8.80; TAB_LENGTH = 15; TAB_THICKNESS = 5; TAB_WIDTH = 10; SCREW_HOLE_RADIUS = 1.5; SCREW_HOLE_OFFSET = 5; EXTRUSION_THICKNESS = 6; module cylindre() { difference() { cylinder(r=CYLINDER_RADIUS, h=CYLINDER_HEIGHT); trans...
glb/cad_de0df5270db2.glb
Create a Prusa i3 Acrylic Rounded Clip consisting of a hollowed cylinder and two protruding tabs. Start by creating a main cylinder with a radius of 8.8mm and a height of 20mm. Remove a smaller concentric cylinder from the center with a radius of 6mm and a height of 10mm, starting from a height of 5mm from the base, to...
$fn = 100; CYLINDER_HEIGHT = 20; CYLINDER_RADIUS = 8.80; TAB_LENGTH = 15; TAB_THICKNESS = 3; TAB_WIDTH = 10; SCREW_HOLE_RADIUS = 1.5; SCREW_HOLE_OFFSET = 5; EXTRUSION_THICKNESS = 6; module Maincylinder() { difference(){ cylinder(r=CYLINDER_RADIUS, h=CYLINDER_HEIGHT); translate([0,0,5])...
glb/cad_12b726232ea2.glb
Create a Base for Customizable Atom. Start by creating a cylindrical base with a radius of 19.2mm (12mm center radius multiplied by 1.6) and a height of 2mm. Above this base, construct a series of concentric rings. The innermost ring has a radius of 12mm. Each subsequent ring increases in radius by 7mm (the sum of a ...
element = "Au"; ring_width=5; ring_spacing=2; ring_height=6; center_radius=12; clearance=.1; Build_Plate_Type = 0; Build_Plate_Manual_Width = 100; Build_Plate_Manual_Length = 100; mesh_resolution=70; ring_height_step=.5; pin_radius=0; pin_cap_width=0; pin_cap_gap=0; pin_hole_radius=0; use <utils/build_plat...
glb/cad_6de83532fc18.glb
Create a lantern ring consisting of a circular band and a decorative top emblem. Start by constructing the main ring band as a hollow cylinder with an inner diameter of 16mm and an outer diameter of 20mm, with a total depth of 4mm. On top of this band, add a conical base that transitions from a lower radius of 8mm to...
include<lantern.scad>; ringcolour= 0; ringsize= 16; ringtthickness= 2; ringdepth= 8; emblemradius= 10; emblemdepth= 3; emblembasesmallradius= 7; emblemrotation= 0; forprinting= false; $fn= 30; if(forprinting){ translate([0,0,(ringsize+(ringtthickness*2)+emblemdepth)])rotate([180,0,0])ring(ringcolour,ringsize,ringtth...
glb/cad_7dfe6d28a80b.glb
Create a double pipe clamp consisting of two concentric, C-shaped rings of equal thickness. First, construct a large outer ring with an inner diameter of 30mm and a wall thickness of 3mm. This ring should be a partial cylinder, leaving a gap to form a C-shape. Second, construct a smaller inner ring with an inner diamet...
dp1= 30; dp2= 10; ep=3; dh=1; $fn=50; orientation=0; translate([-(dp2+ep)/2,0,0])rotate([0,0,180])ring(dp2,0); translate([(dp1+ep)/2,0,0])ring(dp1,orientation); module ring(dp,or){; difference(){ hull(){ rotate([or,0,0])cylinder(d=dp+ep,h=ep, center=true); translate([-(dp+ep)/2...
glb/cad_4ed0529be76b.glb
Create a tool and pen desk organizer box with a total height of 130mm. The outer shell is a rectangular block with rounded vertical corners of 3mm radius. The overall footprint is determined by a grid of 3 columns and 2 rows of cells, where each cell has a width of 55mm and the dividing walls are 2.5mm thick. Carve ou...
cellWidth = 55; numRows = 2; numCols = 3; cellRadius = 3; width = 2.5; height = 130; cellsRotation = 1; $fn=15; Box(cellsRotation); module TriUnit(ra, cl, h) { linear_extrude(height = h, center = false, convexity = 10) hull() { polygon(points = [[ra, cl], [ra, ra], [cl, ra]]); translate([r...
glb/cad_9d26e7ec26c4.glb
Create a car stereo removal tool by constructing a flat, thin plate with a uniform thickness of 1.4mm. Start with a main rectangular base that is 6mm wide and 65.7mm long. Extend this base by adding a larger rectangular section measuring 15mm wide and 50mm long, attached flush to one side and extending backwards from t...
cube([6, 65.7, 1.4]); translate([1, 60, 0]) cube([4, 6.7, 1.4]); translate([1, 65.7, 0]) cylinder(h = 1.4, d = 2, $fn = 100); translate([5, 65.7, 0]) cylinder(h = 1.4, d = 2, $fn = 100); translate([0, -50, 0]) cube([15, 50, 1.4]);
glb/cad_0ee84ae66060.glb
Create a breadboard support plate with integrated connectors for LEGO Technic pins. The main body is a flat rectangular plate designed to hold a breadboard securely. On the two shorter opposite ends of the plate, add two parallel strips of seven vertical pin connectors each. Additionally, place four cubic blocks on t...
$fs=0.5; include <breadboardPlate.scad>; include <LegoPinConnectors.scad>; module breadboardPlateWith2x7PinConnectors() { breadboardPlate(); for(i = [-1,1]) { translate([0, i*6*liftarm_Pitch, liftarm_Height/2 + bas_plateau_bb]) rotate([0, -i*90, 90]) stripOfVerticalPinCon...
glb/cad_83814792dd96.glb
Create a hardcase wallet designed to hold cards and cash. The main body is a rectangular shell with an outer dimension of 60mm in width, 92mm in length, and 12mm in height. The walls and the top lid-stopper are 2.5mm thick, while the bottom base is 1.5mm thick. The interior is hollowed out to create a storage cavity,...
card_length = 87; card_width = 55; height = 12; head_thickness = 2.5; side_thickness = 2.5; base_thickness = 1.5; finger_hole_dia = 15; module base() { translate([2, head_thickness, height/2-1]) minkowski() { minkowski() { cube([card_width-4+side_thickness*2, card_length-4+head_thickness*2, 1]); cylinder(r...
glb/cad_980692a413a7.glb
Create a hardcase wallet with an overall footprint of 59mm by 92mm and a total height of 12mm. The main body is a rectangular shell with rounded corners of 5mm radius. The walls have a thickness of 2mm, and the base has a thickness of 1.5mm. The interior is hollowed out to create a compartment for cards and bills, le...
card_length = 87; card_width = 55; height = 12; head_thickness = 2.5; side_thickness = 2; base_thickness = 1.5; finger_hole_dia = 15; top_rounding_dia = 8; corner_rounding_r = 5; module base() { translate([corner_rounding_r, corner_rounding_r, height/2-1]) minkowski() { minkowski() { cube([card_width-2*corne...
glb/cad_4ca341073694.glb
Create a parametric laser-cut box with overall external dimensions of 80mm x 80mm x 80mm and a material thickness of 5mm. The box consists of six rectangular plates: a top, bottom, front, back, left, and right. Each plate is a square of 80mm by 80mm. To allow for assembly, create finger joints (slots) along every edge...
$fn = 150; inch = 25.4; width = 80; length = 80; height = 80; Thikness = 5 ; E = 20; ft = "Stencil"; x = width; cx = (E <= x/2 ? floor((x/2)/E) : ( E>=x-2*Thikness ? 0 : 1 ) ); nx = cx+1; Ex = ( cx!=0 ? (x-(cx*E))/nx : 0 ); echo(str("\n\tThe width is: ", x, "mm.", "\n\tThere is ", cx, " slots possible."...
glb/cad_f74082d4b94c.glb
Create a test tube rack by starting with a solid rectangular block measuring 134mm in length, 90.5mm in width, and 39.5mm in height. From the top face of this block, remove a grid of 20 cylindrical holes to create slots for tubes. The grid consists of 5 columns and 4 rows. Each cylindrical hole must have a diameter of ...
include <write/write.scad> use <utils/build_plate.scad> _shape = 1; _diameter = 10.78; cap_diameter = 18.91; _base = 2; _height = 37.5 + _base; _length = 134; _width = 90.5; _columns = 5; _rows = 4; module tube(shape, diameter, height) { if(shape == 1) { cylinder(height, diameter/2, diameter/2); } if(sh...
glb/cad_c83c8ddbf4c6.glb
Create a photographer-themed clock face as a flat disc with a diameter of 100mm and a thickness of 2mm. At the exact center, add a circular hole with a diameter of 8mm for the clock mechanism. The face is decorated with markings representing camera aperture settings (f-stops) and shutter speeds. Position ten aperture ...
$fn = 150; Dia = 100; Bord = 4; D = Dia - Bord; Trou = 8; txt = "Stencil"; T = Dia/20; Thikness = 2; d1h = 360/12; d1m = d1h/60; echo(str("\n\tnbr°/heure : ", d1h, "\n\tnbr°/minute : ", d1m, "\n")); if (Thikness==0) { HorlogeF(); } else { linear_extrude(height=Thikness) HorlogeF(); } module HorlogeF(...
glb/cad_05b2e9ee2b06.glb
Create a Spiral Cup consisting of a circular base and a decorative twisted wall. Start by creating a solid cylinder for the base with a radius of 40.8mm (68mm * 0.6) and a height of 3mm (5mm * 0.6). To build the walls, generate a vertical structural element by taking a 12-sided polygon (circle with $fn=12$) with a ra...
module link() { rotate([90,0,90]) scale([0.5,1.8,1]) linear_extrude(height = 160, center = false, convexity = 10, twist = 810, $fn = 20) translate([9, 0, 0]) circle(r = 5, $fn = 12); } module side(layer1) { for ( i = [0:11] ) { if (layer1) { rotate( [i*30, 0, 0]) translate( [0, 60, 0] ) link(); } else { ...
glb/cad_7548e3e29fb0.glb
Create a Hybrid Wade's-Bowden Dual Extruder Mount. Start with a main platform that is 70mm wide, 5.5mm thick, and 80mm tall (55mm plus an additional 25mm extension). Subtract a central extruder hole with a radius of 9.5mm and a depth of 7mm, and add two symmetric screw holes with a radius of 2mm and a depth of 7mm posi...
fudge = .05; head_w = 15.93; head_h = 40.26; head_inner_w = 11.68; head_top_h = 3.81; head_top_taper= 1.52; head_inner_h = 1.91; head_bottom_taper=0.76; head_bot_h = 32.26; heater_w = 12.75; heater_h = 22.86; nozzle_w = 12.75; nozzle_h = 10.92; entry_cone_h = 3.81; thru_hole = 3.47; width = 70; dia = 49; ext_x = 25...
glb/cad_66f970d642be.glb
Create a knife magnet holder mount by starting with a rectangular base block measuring 41.5mm wide, 25mm deep, and 5mm high. From this base, remove a central vertical section to create a gap. This gap is formed by a hull connecting two cylinders, each with a radius of 3.5mm and a height of 10mm, positioned at the cente...
width = 41.5; difference() { cube([width, 25, 5]); hull() { translate([width/2, 5.5, -1]) cylinder(r=3.5, h=10); translate([width/2, 30, -1]) cylinder(r=3.5, h=10); } translate([6.35, -1, 5-1.5]) cube([1.5, 50, 10]); translate([width-6.35-1.5, -1, 5-1.5]) cube([1.5, 50, 10]); translate([-1, -1, -1]) cube([1.7...
glb/cad_8e3f37d1d4e3.glb
Create a custom label by starting with a rectangular base plate that is 180mm wide, 45mm high, and 3mm thick. Centered on top of this base, add the word "label" as raised 3D text. The letters should have a height of 30mm and a thickness of 4mm, meaning they will protrude 4mm above the surface of the base plate. Ensure ...
use <write/Write.scad> part = "both"; width=180; height=45; baseThick=3; letterThick=4; letterHeight = 30; text="label"; fontName="write/Letters.dxf"; if (part == "top") { topcolor(); } else if (part == "both") { maincolor(); topcolor(); } else if (part == "bottom") { maincolor(); } else { maincolor(...
glb/cad_d14177274301.glb
Create an interlocking puzzle cube with a total size of 24mm, composed of six distinct pieces. The overall structure is a 4x4x4 grid of 6mm cells. Each piece is constructed from a collection of 6mm cubes, where every exterior edge of every piece is chamfered by 1.2mm. To ensure a proper fit, incorporate a 0.15mm gap be...
part="assembled"; total_size=24; cube_size=total_size/4; gap=0.15; chamfer_size=20; corner=cube_size/chamfer_size; eps=0.01; print_part(); module print_part() { if (part == "first") { final_piece1(); } else if (part == "second") { final_piece2(); } else if (part == "third") { final_piece3(); } else if (...
glb/cad_fa5bcdbcd138.glb
Create a parametric furniture foot pad by constructing a solid cube with a width and depth of 50mm and a total height of 23mm. From the top face of this cube, remove a smaller centered rectangular volume to create an open-top box. This interior cutout should have a width and depth of 36mm, leaving a wall thickness of 7...
height = 13; width=50; wall=7; wall_height=10; difference() { cube([width, width, height+wall_height]); translate([wall, wall, height]) cube([width-wall*2, width-wall*2, wall_height+1]); }
glb/cad_bca4b51d753a.glb
Create a parametric funnel consisting of a conical base and a cylindrical top. Start by constructing a hollow cone with a height of 20mm, a bottom outer diameter of 60mm, and a top outer diameter of 25mm. The walls of this cone must be a uniform 2.5mm thick, created by removing a smaller concentric cone from the center...
bottom_diameter = 60; cone_height = 20; top_diameter = 25; top_height = 8; width = 2.5; union() { difference() { cylinder(h=cone_height, r1=bottom_diameter/2, r2 = top_diameter/2); cylinder(h=cone_height, r1=bottom_diameter/2 - width, r2 = top_diameter/2 - width); } translate([0, 0, cone_height]) { difference() { cyl...
glb/cad_b49aa1020b7e.glb
Create a Range Rover Classic centre hub cap. Start with a main circular disc with a diameter of 77.5mm and a height of 2mm. Remove a concentric inner cylinder from this disc, leaving a rim 5mm wide around the edge. Build a central mounting structure on top of the disc. This structure begins with a cylinder of 69.4mm d...
major_dia = 77.5; minor_dia = 69.4; rim = 5.0; engrave = 0.75; thickness = 3.2; notch_h = 2.0; notch_t = 1.6; notch_s = 0.8; notch_w = 6.0; notches = 12; wall = 2.0; tsize = 12; tfont = "Helvetica style:bold"; d = 0.01; linear_extrude(engrave) { rotate([180, 0, 0]) { translate([0, tsize*0.15]) text("RANGE", halign="cen...
glb/cad_877997b5df03.glb
Create a Range Rover Classic centre hub cap. Start with a main circular body that has a base diameter of 74.5mm, tapering slightly outward to a top diameter of 77.5mm over a height of 1.5mm. On top of this base, add a cylindrical wall with a total height of 3mm and a diameter of 77.5mm. Inside the hub, create a centra...
major_dia = 77.5; minor_dia = 68.7; rim = 5.0; slant = 1.5; engrave = 0.75; thickness = 3.2; notch_h = 3.0; notch_t = 2.9; notch_s = 1.4; notch_w = 12.5; notch_base = thickness*0.5; notches = 6; wall = 3.0; tsize = 12; tfont = "Helvetica style:bold"; d = 0.01; linear_extrude(engrave) { rotate([180, 0, 0]) { translate([...
glb/cad_475f4f5e78e0.glb
Create a shrouded propeller consisting of a central hub, five twisted fins, and an outer ring. Start with a central spherical hub with a radius of 7mm. From the center of this hub, extend a vertical cylindrical hole with a radius of 0.4mm through the entire assembly. Construct five identical fins distributed evenly ...
fs=.2; fa=4; fn=40; nslices=15; trad=23.5; outw=1.5; nfins=5; rins= 7; tdepth = 5; fangle = 60; bevh = 2; tfin = 1; chrad = .4; module total(fs,fa,fn,nslices,trad,outw,nfins,rins,tdepth,fangle,bevh,tfin) { $fs=fs;$fa=fa;$fn=fn; module fin() {union(){rotate([-fangle,0,0]){union() { cube([119, 119, tfin]); transl...
glb/cad_d258863ca35b.glb
Create a Pegstr for Slatwall, which is a tool holder designed to mount onto a slatwall panel. Start by creating a main rectangular body with a height of 15mm. The body should have a width and depth of 8.5mm each, with rounded corners using a radius of 30mm. The walls of this holder should be 1.85mm thick. On the bac...
slatboard = 1; holder_x_size = 8.5; holder_y_size = 8.5; holder_height = 15; wall_thickness = 1.85; holder_x_count = 1; holder_y_count = 1; corner_radius = 30; taper_ratio = 1.0; holder_offset = 20; strength_factor = 0.66; closed_bottom = 0.0; holder_cutout_side = 0.0; holder_angle = 0.0; holder_sides = m...
glb/cad_d6c2d040173c.glb
Create a 3D adapter with a height of 8mm. The outer boundary is a regular pentagonal prism with a diameter of 8mm. Centered within this outer shape, create a hollow square hole that passes completely through the height of the object. This inner square cutout must have a diameter of 4mm. Ensure the final geometry is a s...
outside_shape = 3; inside_shape = 2; outside_polysides = 5; inside_polysides = 5; height=8; inside_diameter = 4; outside_diameter = 8; $fn=60; if (outside_shape == 1){ if (inside_shape == 1){ cyl_cyl(); } else if (inside_shape == 2){ cyl_squ(); } else if (inside_shape == 3){ cyl_poly(); } else...
glb/cad_ade73a4aeb4a.glb
Create a lid for a bioreactor with a total height of 7.5mm. Start with a solid base cylinder 95mm in diameter. On top of this base, add a second cylinder with a diameter of 78mm and a height of 6mm. Create a tapered rim connecting the outer edge of the base to the inner cylinder, transitioning from a diameter of 91mm d...
Height = 7.5; OuterDiameter = 95; InnerDiameter = 78; WallThickness = 3; PipeHoles = 5; HoleDiameter = 8.7; HolePosition = 90; CenterHole = 10; HexHole = 16; fn=30; module SolidLid(){ color("deeppink") translate([0,0,0]) cylinder(h=Height,d=OuterDiameter, $fn = fn); color("pink") translate([0,0,Height*1]) c...
glb/cad_ef9c35c2b722.glb
Create a bolt-on mount for a bike light consisting of two symmetrical bracket pieces. Each piece is built around a central cylindrical cutout with a radius of 15mm and a wall thickness of 5mm, creating a hollow tube with an outer radius of 20mm and a total length of 20mm. For the first bracket, add a rectangular block...
module oring_mount(length, height, width, radius, thickness){ translate([0,0,-height/2]){ difference(){ union(){ cube([length, width, height], center=true); for( i =[1,-1]){ translate([i*(length/2.0-thickness*2), 0,height/2]){ rotate([90,0,0]){ scale([1,0....
glb/cad_ff713d23130d.glb
Create a CR2032 coin battery holder by starting with a solid rectangular block measuring 25mm wide, 50mm long, and 15mm high. Carve out 10 identical rectangular slots for the batteries, each measuring 20mm wide, 3.5mm thick, and 15mm high. Position these slots starting 2.5mm from the side edge, with a 1.5mm spacer betw...
slots = 10; thickness = 3.5; width = 20.0; spacer = 1.5; length = ((thickness + spacer) * slots) + spacer; font = min(length/8, 10); difference() { cube([25,length,15]); for(i=[0:(slots-1)]) { translate([2.5,spacer+(i*(thickness + spacer)),1]) cube([width,thickness,15]); } translate([12....
glb/cad_d0b44ddc1b9a.glb
Create a Motorbike Bluetooth Antenna Guard by constructing a hollow, tapered sleeve with a total height of 50mm. The outer shell begins with a base cylinder 2mm high with a diameter of 5mm, transitioning into a conical section 40mm high that expands from 8mm to 13mm in diameter, and finishes with a top cylinder 25mm hi...
extraRadius = 0.3; epsilon = 0.01; $fn = 180; OuterH = 50; OuterD = 13; InnerAD = 5 + extraRadius; InnerAH = 25; InnerBD = 7 + extraRadius; InnerBH = 15; InnerCD = 11 + extraRadius; InnerCH = 8 + 17; cutoffH = 20; cutoffA = 45; cutoffB = 10.5; difference() { ...
glb/cad_a5b03adb76bd.glb
Create a Raspberry Pi case with a mini LCD designed as a two-part shell (top and bottom) with a wall thickness of 2mm. The internal cavity should be 86mm long by 57mm wide to accommodate the PCB. Construct the main body as a hollow rectangular box with rounded corners (radius 4mm). The height of the case is determined...
use<write.scad> DRAWfull = 0; DRAWtop = 1; DRAWbottom = 1; DRAWtopinlet = 0; DRAWbottominlet = 0; DRAWpcb = 0; GPIOHOLE = 0; GPIOsize = 12; topframe = false; topinlet = false; topholes = false; holeofs=5; holesiz=2.5; holestep=6; noholes=12; holelen=30; holeangl...
glb/cad_a580b8e0baab.glb
Create a router jig for concealed cabinet hinges. Start with a rectangular base block that is 6mm thick, with a total width of approximately 75mm and a depth of 33mm. In the center of this block, create a large vertical cylindrical hole with a diameter of 39.3mm (calculated as the 35mm hinge diameter plus the differe...
mill_dia = 9.5; guide_dia = 18.3; guide_height = 6.0; guide_bar = 5.0; guide_chamfer = 0.6; platform_dia = 60.0; hinge_dia = 35.0; hinge_offset = 23.0; screw_dist = 45.0; screw_offset = 9.5; screw_dia = 3.1; screw_head = 6.0; index_notch = 1.0; tool_offset = (guide_dia-mill_dia)/2; tool_dia = hinge_dia+too...
glb/cad_b3dc74b5d393.glb
Create a Long Panel 2 Hulled Circle Test consisting of a thin rectangular base plate and a central decorative raised element. First, construct a rectangular base plate measuring 130mm by 65mm with a thickness of 0.45mm, centered at the origin. On top of this plate, create a complex circular feature composed of 178 conc...
RANDOM_PARAM=5; module pad() { translate ([0,0,-.225]) cube ([130,65,.45],center=true); } module pads() { translate ([-130,0,0]) pad(); translate ([0,0,0]) pad(); translate ([130,0,0]) pad(); } module shape() { scale ([1,1,1]) difference () { square(10); rotate ([0,0,5]) square (15); } } module element(sz,a...
glb/cad_e85a1d28355f.glb
Create a baby monitor holder base. Start with a solid rectangular base plate measuring 85mm by 44mm with a thickness of 2mm. On top of this plate, build a hollow rectangular enclosure with outer dimensions of 69mm wide by 32mm deep and 32mm high. The walls and bottom of this enclosure must be 2.3mm thick. Cut a semi-...
$fn = 50; base = 2; thick = 2.3; wide = 65; high = 32; deep = 28; translate([-(wide/2)-thick,-(deep/2)-thick,0]) { difference() { union() { cube([wide+(thick*2),deep+(thick*2),high+base]); translate([-10,-10,0]) cube([wide+(thick*2)+20,deep+(thick*2)+20,base-0.1]); } translate([thick,thick,base]) cube...
glb/cad_d6fd606b294a.glb
Create a Nativity Ornament stable by constructing a main body and a base. Start with a rectangular block 20mm wide, 30mm deep, and 30mm high. Position this block so it is centered on the X-axis and offset 15mm back from the origin on the Y-axis. From this main block, remove two large intersecting volumes: first, a 60mm...
rotate([0,-90,0]){ difference(){ difference(){ translate([-10,-15,0]) cube([20,30,30]); translate([0,0,35]) rotate([30,-15,0]) cube([60,60,20],center=true); translate([0,0,35]) rotate([-30,-15,0]) cube([60,60,20],center=true); } translate([0,0,-3]) difference(){ translate([-10,-15,0]) cu...
glb/cad_2777686ce128.glb
Create a Nativity Ornament by forming the intersection of a cylinder and a combined organic shape. The cylinder must have a radius of 20mm and a height of 30mm. The organic shape is a union of two components: a sphere with a radius of 2mm centered at a height of 10mm, and a second sphere with a radius of 3mm that is sc...
intersection(){ union(){ translate([0,0,10]) sphere(2,$fn=20); scale([1,1,3]) sphere(3,$fn=20); } cylinder(r=20,h=30); }
glb/cad_452690063b09.glb
Create a Nativity Ornament by constructing a central base and adding two geometric figures. Start with a rectangular block measuring 4mm by 10mm by 4mm, centered at the origin. Carve out the interior of this block by removing four large 30mm cubes: one positioned 19mm above the center rotated 15 degrees, one 20mm below...
translate([0,0,0.5]) rotate([70,0,0]) union(){ translate([0,0,3]) sphere(1.1,$fn=20); scale([1,1,2]) sphere(1.3,$fn=20); } difference(){ cube([4,10,4],center=true); translate([0,19,0]) rotate([-15,0,0]) cube([30,30,30],center=true); translate([0,-20,0]) rotate([15,0,0]) cube([30,30,30],ce...
glb/cad_ccdd69ef352e.glb
Create a customizable paddle and oar hook. Start by forming a central base using a hull of two spheres, each with a radius of 17.5mm, positioned 26.25mm apart along the x-axis. From this base, extend two symmetrical arms upward and outward. Each arm is a cone that begins at the base with a radius of 8.75mm and tapers t...
r=2; w=35; a=15; i=5; h=35; z=60; translate([0,0,-w*1/6])difference(){ union(){ hull() { translate([-w*3/4,0,0]) sphere(r=w/2, $fn=z); translate([w*3/4,0,0])sphere(r=w/2, $fn=z); } rotate([-a,-i,0])union(){ translate([w*3/4,0,h/4])cylinder(h = h, r1 = w/4, r2 = w/8, center = false, $fn=z); translate([w*3...
glb/cad_d3917a802ca2.glb
Create a Tulsa Open Source Hardware Coaster by constructing a thick circular ring with a flat base. Start with a main cylinder 90mm in diameter and 20mm high. Carve out a central cylindrical hole 48mm in diameter that passes completely through the center. To create a recessed lip on the top surface, remove a secondary ...
include <OpenHardwareLogo.scad> module Tulsa() { import_stl("Tulsa.stl"); } module Open() { import_stl("Open.stl"); } module Source() { import_stl("Source.stl"); } module Hardware() { import_stl("Hardware.stl"); } offset_angle = -20; scale_val = 0.18; module Name() { translate([0,0,2.5]) scale([scale_val,scale_va...
glb/cad_84a2ad64f430.glb
Create a square platform for a Yoda figure by constructing a solid rectangular prism with a width of 60mm, a depth of 60mm, and a height of 4mm. Position this base so that its bottom surface lies on the ground plane.
base_x = 60; base_y = 60; base_z = 4; translate( [ 0, 0, base_z ] ) { scale( 0.75 ) { import_stl( "Yoda-SuperLite.stl" ); } } rotate( [ 0, 0, 35 ] ) { %translate( [ 0, 5, 0 ] ) import_stl( "darth6b_with_base.stl" ); translate( [ 0-base_x/2, 0-base_y/2.5, 0 ] ) cube( [ base_x, base_y, base_z ], center = f...
glb/cad_15645a6dfdbc.glb
Create a temple-shaped cookie cutter with a wall height of 12.7mm and a wall thickness of 2mm. The overall footprint is a base rectangle measuring 78mm wide by 60mm deep. Centered on this base, build a tiered structure consisting of four stacked rectangular blocks of decreasing width and increasing height: the first ti...
offset = 2; mm_inch = 25.4; height = 1*mm_inch/2; base_width = 78; base_length = 60; level2_width = base_width*0.57; level3_width = base_width*0.41; level4_width = base_width*0.28; level5_width = base_width*0.17; y_length = 6*mm_inch; module steeple(l) { difference() { translate([(base_width - level5_width)/2,...
glb/cad_b7636d5d7aca.glb
Create a long panel 2 hulled double3 consisting of a flat rectangular base and a central decorative spiral element. Start by creating a rectangular base plate measuring 130mm by 65mm with a thickness of 0.6mm, centered on the origin. On top of this base, construct a complex geometric form composed of 360 sequential l...
lays=360; rot=6; module pad() { translate ([0,0,-.3]) cube ([130,65,.6],center=true); } module pads() { translate ([-130,0,0]) pad(); translate ([0,0,0]) pad(); translate ([130,0,0]) pad(); } module shape() { scale ([.5,1,1]) difference () { square(10); rotate ([0,0,rot]) square (15); } } module element(sz,...
glb/cad_1dadd1cab463.glb
Create a long panel 2 hulled B by starting with a rectangular base plate measuring 130mm by 65mm with a thickness of 0.6mm, centered on the origin. On top of this base, construct a spiral geometric form composed of 360 overlapping layers. Each layer should be a scaled and rotated version of a thin rectangular profile, ...
lays=360; rot=6; module pad() { translate ([0,0,-.3]) cube ([130,65,.6],center=true); } module pads() { translate ([-130,0,0]) pad(); translate ([0,0,0]) pad(); translate ([130,0,0]) pad(); } module shape() { scale ([.5,1,1]) difference () { square(10); rotate ([0,0,rot]) square (15); } } module element(sz,...
glb/cad_cf13e3dd1d88.glb
Create a long panel 2 hulled C by starting with a rectangular base plate measuring 130mm by 65mm with a thickness of 0.6mm, centered at the origin. On top of this plate, construct a complex spiral geometry composed of 360 individual layers. Each layer should be a thin, extruded slice that rotates by 6 degrees relative ...
lays=360; rot=6; module pad() { translate ([0,0,-.3]) cube ([130,65,.6],center=true); } module pads() { translate ([-130,0,0]) pad(); translate ([0,0,0]) pad(); translate ([130,0,0]) pad(); } module shape() { scale ([.5,1,1]) difference () { square(10); rotate ([0,0,rot]) square (15); } } module element(sz,...
glb/cad_c560350e495f.glb
Create a Simple Christmas Ornament based on an octahemioctahedron. Construct the shape as a wireframe cage consisting of eight triangular pyramids (shells) that meet at a shared set of 12 vertices. The overall structure is scaled by a factor of 40. The geometry is defined by the vertices of a cube with side length $\s...
use <2D_forms.scad> mark = 4; if (mark==1) difference() { union() { translate([0,0,-40]) cube([10,10,4],center=true); rotate([45,0,0]) scale(40) union() { scale(0.5) polyhedron (tcube_vertices,tcube_faces); scale(1.001) polyhedron(vertices,Faces_1); scale(1.002) polyhedron(vertices,Faces_2); scale...
glb/cad_7c6401daec58.glb
Create a long panel consisting of a thin rectangular base plate measuring 130mm by 65mm with a thickness of 0.6mm, centered on the origin. On top of this base, construct a decorative spiral element. This element is formed by a series of 360 overlapping layers that gradually rotate and scale. Each layer is a modified sq...
lays=360; rot=6; module pad() { translate ([0,0,-.3]) cube ([130,65,.6],center=true); } module pads() { translate ([-130,0,0]) pad(); translate ([0,0,0]) pad(); translate ([130,0,0]) pad(); } module shape() { scale ([.5,1,1]) difference () { square(10); rotate ([0,0,rot]) square (15); } } module element(sz,...
glb/cad_cddc39fedd50.glb
Create a Customizable Swivel Buckle consisting of two matching parts: a male end and a female end. For the common body of both parts, create a base shape 6mm thick. The base is a hull formed by a central cylinder with a diameter of 112mm (calculated as the swivel diameter of 10mm plus a 2mm margin and a 12.5mm buckle...
part = "both"; strapw = 100; strapt = 6; slots = 2; buckleh = 6; teeth=2; bucklet = max(5,strapw/8); swiveld = max(8,strapw/10); swivelm = swiveld/3; swivelh = max(2,buckleh/2); swivelc = 0.4; ttaper = 1.25; swivelsc = 1.1; $fn=72; module body() { so = swiveld*2 + swivelm; difference() { hull() {...
glb/cad_fe602731c1a7.glb
Create a hollow cylindrical shell for an LED wand. The outer shell is a cylinder with a radius of 8.25mm and a total height of 97.75mm, starting from a base offset of -1.75mm. Inside this shell, remove a series of concentric cylindrical volumes to create a stepped internal cavity. Starting from the bottom, create a v...
widestPart = 14.5; batteryDiam = 13; boardWidth = 11.25; lengthTilLED = 94; switchTilLED = 34; switchTilBoardEnd = 19.25; switchLength = 5.75; pcbDiam = 10; pcbThickness = 2; ledThickness = 1; ledLength = 5.5; wireWidth = 6.5; wallThickness = 1.75; smidge = 0.001; circleRes = 72; boardEndTilLED = switchTilLED - swi...
glb/cad_81877b32bd59.glb
Create a rectangular lithopane plaque with a horizontal orientation. The main body should be 133mm wide by 100mm tall. The base of the plaque is a solid slab 0.4mm thick, with a total maximum height of 2.4mm. The surface of the plaque should be embossed based on an image, where the thickness varies to create a 3D rel...
use <utils/build_plate.scad> use <write/Write.scad> picture_shape = "standard"; picture_orientation = "horizontal"; pane_size = "large"; image_file = "image-surface.dat"; include_hole = "yes"; hole_diameter = 10; layer_height = 0.2; number_of_layers = 12; text_line_1 = ""; text_line_2 = ""; text_line_3 = ""; te...
glb/cad_105820bbbea6.glb
Create a long panel 2 hulled E fixed model. Start by creating a rectangular base plate measuring 130mm by 65mm with a thickness of 0.6mm, centered on the origin. On top of this base, construct a complex spiral form composed of 360 individual layers. Each layer should be a hull created between two scaled and rotated ver...
lays=360; rot=6; module pad() { translate ([0,0,-.3]) cube ([130,65,.6],center=true); } module pads() { translate ([-130,0,0]) pad(); translate ([0,0,0]) pad(); translate ([130,0,0]) pad(); } module shape() { scale ([.25,1,1]) difference () { square(10); rotate ([0,0,rot]) square (15); } } module element(sz...
glb/cad_b5f6febd2847.glb
Create an Axis Alignment Cube by starting with a solid cube that is 50mm on all sides. Carve recessed text into each of the six faces, with each letter having a depth of 1mm and a font size of 2mm. On the top face, center the words "Top" and "- X +" (with the latter positioned slightly below the former). On the botto...
fontSize=2; curveSmoothness=72; extrudeHeight=1; objectScale=5; scale([objectScale,objectScale,objectScale]) { color("Gray") difference() { cube(10,center=true); union() { translate([0,1.5,5]) rotate([0,0,0]) linear_extrude(height=extrudeHeight,center=true) text("Top",size=fontSiz...
glb/cad_d365128dad91.glb
Create a tire cap designed to cover an axle nut. Start by creating a main outer ring with an outer diameter of 80mm and a total height of 11mm. Hollow out the center of this ring by removing a cylinder with a diameter of 78mm, leaving a wall thickness of 1mm and a base thickness of 0.6mm. On top of this base, constru...
$fn = 120; OD = 80; OUTSIDE_HEIGHT = 8; OUTSIDE_HEIGHT_EXTRA = 3; NUT_SIZE = 33; NUT_HEIGHT = 16; module nut(size, height) { ri = size/2; a = ri*2/sqrt(3); for (i=[0:60:359]) { rotate([0,0,i]) translate([0,-a/2,0]) cube([ri,a,height]); } } union() { union() { difference() { ...
glb/cad_459ab06a6814.glb
Create a long panel 2 F fixed by starting with a flat rectangular base measuring 130mm by 65mm with a thickness of 0.6mm, centered on the origin. On top of this base, construct a decorative spiral pattern composed of 360 individual layers. Each layer should be a thin, extruded geometric element that rotates by 6 degree...
lays=360; rot=6; height_between=4; module pad() { translate ([0,0,-.3]) cube ([130,65,.6],center=true); } module pads() { translate ([-130,0,0]) pad(); translate ([0,0,0]) pad(); translate ([130,0,0]) pad(); } module shape() { scale ([.25,1,1]) difference () { square(10); rotate ([0,0,rot]) square (15); } } ...
glb/cad_1257d1dbae6a.glb
Create a flower for a gun barrel consisting of a tapered stem topped with a floral head. Construct the stem as a tapered cylinder with a height of 20mm, where the bottom radius is 2.54mm and the top radius is 3.035mm. Position the stem so that its center is at the origin, extending from z = -10mm to z = 10mm. At the to...
d_barrel = 5.56; l_stem=20; d_taper = 0.5; r_top = (d_barrel+(d_taper/2))/2; r_bot = (d_barrel-(d_taper/2))/2; union() { translate([0,0,l_stem]) import_stl("Flower-Petals.stl", convexity=5); translate([0,0,l_stem/2]) cylinder(r1=r_bot,r2=r_top,h=l_stem,center=true); }
glb/cad_ce88ac909b77.glb
Create a Customizable Action Figure Display Base consisting of a thin platform and a mounting peg. Start by creating a circular base with a diameter of 50.8mm and a height of 2mm. On the top surface of this base, add a cylindrical peg with a diameter of 3mm and a height of 4mm. Position the peg so that it is centered a...
base_shape = 90; base_height = 2; base_diameter = 50.8; peg_height = 4; peg_diameter = 3; peg_x_offset = 0; peg_y_offset = 15.875; tolerance = 0.001; if(base_shape == 3) { rotate([0,0,90]) cylinder(h=base_height+tolerance, d=base_diameter+tolerance, $fa=1, $fn=base_shape); } else { cylinder(h=base_heigh...
glb/cad_a0b09e9efca6.glb
Create a piezo disc beeper horn consisting of a base socket and a conical horn top. Start with a cylindrical base socket 10mm high with an outer diameter of 24mm. The socket has a central vertical hole 18mm in diameter, starting 2mm from the bottom. Inside the socket, center a 10mm cube to accommodate a small circuit...
dia_piezo=20; dia=dia_piezo+4; dia_i=dia_piezo-2; mount_dia=3; mount_grid=2.54*6; h_socket=10; dia_cable=3; xy_compensation=.2; socket(); translate([0,0,h_socket])horn(); module horn() { difference() { union() { intersection() { translate([0,0,h_socket-3])for(i=[0:15:89]) { ...
glb/cad_72055142da94.glb
Create a wall-mounted stable hook by extruding a specific 2D polygon to a height of 20mm. The polygon's vertices are defined by the points [0,-5], [5,-5], [10,0], [20,0], [40,20], [43,50], [40,50], [32,22], [20,10], [15,10], [10,15], [5,50], and [0,50]. From this solid base, remove two vertical holes to create mounting...
shifter_2(20,20,20,10); module shifter_2(length,width,height,shift) { difference() { linear_extrude(height = length,$fn=2) polygon( points=[ [0,-5], [5,-5], [10,0], [20,0], [40,20], [43,50], [40,50], [32,22], [20,10], [15,10], [10,15], [5,50], [00,50]] ); translate ([5,40,10]) rotate([0,90,180]) s...
glb/cad_9b71a4956281.glb
Create a magnet holder consisting of a rectangular base and two upright cylindrical housings. Start by constructing a hollow rectangular box with an outer footprint of 152mm in length, 44mm in width, and 10mm in height. The walls of this box should be 4mm thick, leaving an interior cavity of 144mm by 36mm. On the top...
assemble(); module assemble() { union() { box(); holder(); translate([-1,-16,0]) cube ([2,47,2]); translate([-27,-16,0]) cube ([2,47,2]); translate([-53,-16,0]) cube ([2,47,2]); translate([25,-16,0]) cube ([2,47,2]); translate([50,-16,0]) cube ([2,47,2]); } } module box () { union() { diffe...
glb/cad_95d1358756e8.glb