Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a flexible bracelet base by constructing three stacked geometric primitives. Start with a low-resolution cylindrical base that has a radius of 5mm and a height of 2mm. Centered on top of this base, place a second, narrower cylinder with a radius of 1.5mm and a height of 11mm. Finally, position a sphere with a ra...
cylinder(h = 2, r=5); cylinder(h = 11, r=1.5); translate([0,0,11]) sphere(r = 3);
glb/cad_14e96dc2d692.glb
Create a Parametric Spinner Cap consisting of a wide circular base and a central cylindrical plug. Start with a main disk that has a diameter of 22mm and a thickness of 2.15mm. Apply a roundover to the top and bottom edges with a radius of 1.075mm. Centered on the bottom face of this disk, add a small cylindrical ste...
BCDiameter = 22; BCThickness = 2.15; BCStep = 10; BCStepHeight = 0.50; BCPlugDiameter = 8; BCPlugHeight = 3; BCHole = 4.6; BCHoleShape = 45; BCRoundover = true; BCRoundoverValue = BCThickness/2; BCdraft=false; $fn = BCdraft?12:45; BCSlot = true; BCSlotCross = true; BCSlotDepth = BCPlugHeight*(2/3); BCSlotWidth ...
glb/cad_75f906f4c2c9.glb
Create a Parametric Spinner Cap consisting of a tiered cylindrical base with a central hole. Start by creating a main disk with a diameter of 23mm and a height of 5mm, ensuring the top edges are rounded. Centered on this disk, add a cylindrical plug with a diameter of 8mm and a total height of 8.5mm (extending 3.5mm ab...
barType = false; centerCenter = 60; diskSize = 23; diskHeight = 5; supportDisk=11.5; supportDiskHeight = 0.9; bearingCenter = 8.00; bearingCenterHeight = 3.5; screwHole = 4.1; countersinkDiameter = 5.75; countersinkDepth = 4.25; countersinkFacets = 36; barType=true; countersinkDiameter = (barType)?7.1:5.75; coun...
glb/cad_b40e2775ebed.glb
Create a flat, thin plate with a thickness of 1.8mm. The main body consists of a cylinder with a radius of 30mm and a rectangular section measuring 30mm by 25mm that extends from the side, centered on the Z-axis. From this combined shape, remove two circular holes, each with a radius of 25mm and a height of 3mm; positi...
difference(){ difference(){ difference(){ union(){ cylinder(h=1.8, r1=30, r2=30, center=true,$fa=5, $fs=0.1); translate([40,0,0]) cube([30,25,1.8],true); } translate([45,30,0]) cylinder(h=3, r1=25, r2=25, center=true,$fa=5, $fs=0.1); } translate([45,-30,0]) cylinder(h=3, r1=25, r2=25, c...
glb/cad_f02588ef7ee7.glb
Create a barista-themed flat tool by starting with a central cylinder that has a radius of 30mm and a height of 1.8mm, centered on the origin. Attach a rectangular block measuring 30mm by 25mm with a height of 1.8mm, centered on the Z-axis, and positioned so its center is at X=40, Y=0. From this combined base, remove t...
difference(){ difference(){ difference(){ union(){ cylinder(h=1.8, r1=30, r2=30, center=true,$fa=5, $fs=0.1); translate([40,0,0]) cube([30,25,1.8],true); } translate([45,30,0]) cylinder(h=3, r1=25, r2=25, center=true,$fa=5, $fs=0.1); } translate([45,-30,0]) cylinder(h=3, r1=25, r2=25, c...
glb/cad_72bb4ff46d42.glb
Create a barista-themed token by starting with a base shape that combines a cylinder and a rectangular block. Create a cylinder with a radius of 30mm and a height of 1.8mm, centered on the origin. Attach a rectangular block measuring 30mm in length, 25mm in width, and 1.8mm in height, centered at the coordinates (40, 0...
difference(){ difference(){ difference(){ union(){ cylinder(h=1.8, r1=30, r2=30, center=true,$fa=5, $fs=0.1); translate([40,0,0]) cube([30,25,1.8],true); } translate([45,30,0]) cylinder(h=3, r1=25, r2=25, center=true,$fa=5, $fs=0.1); } translate([45,-30,0]) cylinder(h=3, r1=25, r2=25, c...
glb/cad_44020a3d6494.glb
Create a Gate Latch Clamp by starting with a solid block that is 50mm long, 25mm wide, and 10mm high. The two short ends of the block should be rounded with a radius of 42mm. Remove a horizontal cylindrical channel from the center of the block along its length to accommodate a rod; this channel should have a diameter o...
height = 10; width = 25; length = 50; radius = 42; rodDia = 15.5; offset = -2; gap = 1; boltDia = 5; $fn=360; module PostClamp(){ difference(){ Whole(); translate([0,(length/2)+1,offset]){ rotate([90,0,0]){ cylinder(h=length+2,d=rodDia+(2*gap)); } ...
glb/cad_fb8241c57d99.glb
Create a simple round box consisting of a base and a lid. For the base, create a cylinder with an outer diameter of 72mm and a total height of 49mm. Hollow out the center of this cylinder by removing a smaller cylinder from the top, leaving a bottom floor thickness of 4mm and a wall thickness of 6mm. For the lid, creat...
auswahl = 1; durchm = 60; hoehe = 45; wand_dicke = 3; boden_dicke = 4; text = "Box"; rund_stufe = 100; text_laenge=len(text); $fn = rund_stufe; if (auswahl==2) {unten();} if (auswahl==3) {deckel();} if (auswahl==1) {unten();deckel();} module deckel() { translate([-durchm/2-20, 0, 0]) { difference() { ...
glb/cad_11a9fbc884ae.glb
Create a robot hook consisting of a head and a hanger. For the head, start with a centered cube measuring 30mm x 30mm x 5mm. Remove four cylindrical holes with a radius of 3mm and a height of 3mm, positioned at coordinates [8, 5, 2], [-8, 5, 2], [8, -7, 2], and [-8, -7, 2]. Additionally, remove a centered rectangular s...
module robot() { difference() { cube([30,30,5], center=true); translate([8,5,2]) cylinder(h=3, r=3, center=true); translate([-8,5,2]) cylinder(h=3, r=3, center=true); union() { translate([8,-7,2]) cylinder(h=3, r=3, center=true); translate([-8,-7,2]) cylinder(h=3, r=3, center=true); t...
glb/cad_fcc7bded374f.glb
Create a robot hook consisting of a rectangular base and a curved hanger. Start with a central rectangular plate measuring 30mm by 30mm with a thickness of 5mm. From this plate, remove three cylindrical holes: two holes with a radius of 4mm positioned at x=7mm and x=-7mm (both at y=5mm, z=2mm), and one hole with a radi...
module robot() { difference() { cube([30,30,5], center=true); translate([7,5,2]) cylinder(h=3, r=4, center=true); translate([-7,5,2]) cylinder(h=3, r=4, center=true); union() { translate([0,-7,2]) cylinder(h=3, r=3, center=true); translate([-0,-7,2]) cylinder(h=3, r=3, center=true); }...
glb/cad_d839ebcf2900.glb
Create a robot hook consisting of two main components: a decorative head and a supporting hanger. For the head, start with a centered cube measuring 30mm x 30mm x 5mm. Remove a cylinder with a 6mm radius and 3mm height at position [5, 4, 2], a smaller cylinder with a 2.5mm radius and 3mm height at [-6, 3, 2], and two 3...
module robot() { difference() { cube([30,30,5], center=true); translate([5,4,2]) cylinder(h=3, r=6, center=true); translate([-6,3,2]) cylinder(h=3, r=5/2, center=true); union() { translate([5,-7,2]) cylinder(h=3, r=3, center=true); translate([-5,-7,2]) cylinder(h=3, r=3, center=true); ...
glb/cad_e456aff10032.glb
Create a hook bracket consisting of two separate parts: a main open block and a cover. First, create the open block as a cube with dimensions 30mm x 30mm x 18mm. Hollow out the center by removing a smaller cube starting 4mm from the edges, leaving a wall thickness of 4mm. From this block, remove a central vertical cy...
monobloc = false; openbloc = true; cover = true; hook_size_x = 30; hook_size_y = 30; hook_size_z = 18; border_size = 4; main_hole_r1 = 1.5; main_hole_h1 = 8; main_hole_r2 = 3.5; main_hole_h2 = 2.5; cover_size_z = 4; small_hole_r = 1; small_hole_h = 10; $fn = 128; if (monobloc && !openbloc && !cover) { monobloc...
glb/cad_f34420229955.glb
Create a Street Guardian GC Mount consisting of a rectangular base and a protruding hook mechanism. Start with a rectangular base measuring 45mm by 35mm. On top of this base, center a hook assembly. The hook consists of a flat top section measuring 12mm by 10mm with a thickness of 2mm and rounded corners (1mm radius)...
Angle_X = 0; Angle_X_Smoothing = 100; Angle_Y = 0; Angle_Y_Smoothing = 100; Camera_Standoff = 3; Angle_Standoff = 0; Windshield_Standoff = 0; Angle_X_Camera_Side = true; Base_X = 45; Base_Y = 35; Standoff_Tolerance = 0.1; Half_Base_X = Base_X / 2; Half_Base_Y = Base_Y / 2; Double_Base_X = Base_X * 2; Double_Bas...
glb/cad_3bb0c0eb23f5.glb
Create a battery cover for a UPS. Start by constructing a main rectangular block with dimensions 122mm in length, 85mm in width, and 20mm in height. Round the four vertical corners of this block using a radius of 2mm. Remove a large rectangular section from the center of the top face, measuring 108mm by 71mm and 17mm...
$fn=30; module screwhole(){ translate ([0,0,2]) cylinder(h = 4, r1=1, r2=2); translate ([0,0,0]) cylinder(h = 10, r=1); } rotate ([0,0,180]) difference () { union (){ hull (){ translate ([ 2, 2, 2]) sphere(2); translate ([ 2,83, 2]) sphere(2); ...
glb/cad_22ba032207a4.glb
Create a rectangular battery cover for a UPS. Start with a main outer frame that is 130mm wide, 93mm deep, and 10mm thick. The outer edges should be rounded with a radius of 2mm. Inside this frame, carve out a central rectangular opening that is 108mm wide and 71mm deep, leaving a wall thickness of 11mm on the sides ...
$fn=30; module screwhole(){ translate ([0,0,4]) cylinder(h = 6, r1=1, r2=2); translate ([0,0,0]) cylinder(h = 10, r=1); } difference () { difference () { translate ([-5,-5,0]) hull (){ translate ([ 2, 2, 2]) sphere(2); translate ([ 2,93, 2]) sphere(2); ...
glb/cad_5608ca23c58e.glb
Create a Toggle Switch Protector consisting of a rectangular base and two upright walls. The base is a centered rectangular slab measuring 27.2mm by 22mm with a thickness of 1.6mm. In the center of this base, create a circular recess 0.6mm deep with a radius of 6.3mm. Within this recess, place a smaller centered cylind...
hole_oversize=0.3; HexR=(12 + hole_oversize)/2; ToggleH=14; wallt=1.6; BaseY=22; BaseX=(HexR+0.5+wallt)*2; slope=2; ToggleR=(6.5+hole_oversize)/2; TogglePlateT=0.6; module tcube(D,taper,center=false) { tx=taper/2; linear_extrude(height = D[2], center = true, convexity = 4, twist = 0) polygon(points=[ [0,0], [...
glb/cad_896d897b98b0.glb
Create a cable management strip consisting of a flat base with eight repeating semi-circular arms. Start with a rectangular base that is 20mm wide, 1mm thick, and 86mm long. Along the center of this base, place eight identical curved arms spaced 10mm apart. Each arm should be a semi-circular ring with an outer radius o...
segments = 8; distance = 10; radius = 10; thickness = 2; rotate([-90,0,0]) drawCableManagementStrip(segments,distance,radius,thickness); module drawCableManagementStrip(segments=8,distance=10,radius=10,thickness=2) { difference() { union() { translate([-radius - 5 + thickness/2 ,-2,-3]) ...
glb/cad_13ef76973c06.glb
Create a printable pin for a CD/DVD disc. Start with a main cylinder that has a total height of 12mm and an outer radius of 8.1mm. Remove a central cylindrical core with a radius of 6.3mm to create a hollow tube with a wall thickness of 1.8mm. At the top of the pin, create a brim by adding a ring with an outer radius...
HOLE_RADIUS = 7.5; DISC_THICKNESS = 1.4; LOCK_HORIZONTAL_SECURITY = 0.6; LOCK_VERTICAL_SECURITY = 0.4; OUTER_RADIUS = HOLE_RADIUS + LOCK_HORIZONTAL_SECURITY; BRIM_HEIGHT = 0.6; TOTAL_HEIGHT = 12; WALL_THICKNESS = 1.2; SLIT_ANGLE = 15; SLIT_LENGTH = 8; NUM_SLITS = 6; cd_pin(); module cd_pin() { difference() {...
glb/cad_744a2e500230.glb
Create a Double CD Yo-Yo by constructing two identical CD pin components stacked vertically. Each pin is a hollow cylinder with an outer radius of 8.1mm and an inner hole radius of 7.5mm. The total height of one pin is 12mm. For each pin, create a central wall with a thickness of 1.2mm. Incorporate a brim at the top ...
HOLE_RADIUS = 7.5; DISC_THICKNESS = 1.4; LOCK_HORIZONTAL_SECURITY = 0.6; LOCK_VERTICAL_SECURITY = 0.4; OUTER_RADIUS = HOLE_RADIUS + LOCK_HORIZONTAL_SECURITY; BRIM_HEIGHT = 0.6; TOTAL_HEIGHT = 12; WALL_THICKNESS = 1.2; SLIT_ANGLE = 15; SLIT_LENGTH = 8; NUM_SLITS = 6; union() { cd_pin(); translate([0, 0, 4]...
glb/cad_6590ef41f1ee.glb
Create a Parametric USB Cable Hanger consisting of a rectangular platform and two mounting brackets. The platform is 4mm thick and 11.2mm wide, featuring a row of 10 circular cable rings. Each ring has an outer radius of 5.7mm and an inner radius of 4.2mm, creating a wall thickness of 1.5mm. To allow cables to enter an...
ringInnerRadius = 4.2; ringThickness = 1.5; ringPadding = 0.0; ringNotch = 4.4; ringOuterRadius = ringInnerRadius + ringThickness; bracketHeight = 10.0; bracketWidth = 14.0; bracketWall = 2.0; bracketBaseOffset = 7.0; bracketSlotWidth = 4.4; bracketSlotDepth = 5.0; platformDepth...
glb/cad_61e52693638c.glb
Create a cup named Becher. Start by constructing a solid tapered cylinder with a height of 90mm, a bottom diameter of 46mm, and a top diameter of 66mm, using a 15-facet resolution to give it a polygonal appearance. Hollow out the center by removing a smaller tapered cylinder from the top, starting 5mm from the base. Th...
durchm2 = 60; durchm1 = 40; hoehe = 85; text = "Henry"; boden_dicke = 5; rund_stufe = 15; wand_dicke = 3; text_laenge=len(text); $fn = rund_stufe; difference() { cylinder(hoehe+boden_dicke, r1 = durchm1/2+2*wand_dicke, r2 = durchm2/2+2*wand_dicke, center = false); translate([-text_laenge*4,-5,1])...
glb/cad_24a66782a228.glb
Create a cupboard locking bolt with a thickness of 12mm. The main body is composed of two mirrored halves. Each half starts with a rectangular base measuring 34.5mm by 39mm. At the outer edge of this rectangle, center a cylinder with a radius of 20.25mm and a height of 12mm. From this combined shape, remove a circula...
thk = 12; hdist = 69; hdia = 15; gap = 13; $fa = 0.01; $fs = 0.5; $fn = 0; hrad = hdia / 2; gap_angle = asin ((gap / 2) / hrad); gap_slice_base = (hrad + 1.5 * thk) * tan (gap_angle); bridge_cut_offset = (hrad + thk) * sin (90 - gap_angle); half_piece (); mirror ([1,0,0]) half_piece (); module half_piece () ...
glb/cad_c19c7167bace.glb
Create a 5mm T-Nut strip pack consisting of a grid of 5 columns and 2 rows of connected nut holders. Each individual nut holder is a composite shape: a rectangular base measuring 12.2mm by 12.4mm with a thickness of 0.3mm, topped with a profile that is 12mm wide and 1mm thick at the edges, tapering up to 3.7mm in heigh...
num_x=5; num_y=2; nutsPerStrip=2; holeDistance=20; chainNutPack(num_x,num_y,nutsPerStrip,holeDistance); module box(w,h,d) { scale ([w,h,d]) cube(1, true); } module hexagon(height, depth) { boxWidth=height/1.75; union(){ box(boxWidth, height, depth); rotate([0,0,60]) box(boxWidth, height, depth); rotate([...
glb/cad_bba1339fa168.glb
Create a peristaltic pump consisting of a sun gear, three planet gears, and an outer ring gear. The total height of the assembly is 20mm. First, create an outer ring with an approximate outer diameter of 51.7mm. The interior of this ring features internal herringbone gear teeth. Cut two transverse holes through the ri...
tol=0.2; allowed_overhang = 0.75; tubing_od = 4.7625; tubing_wall_thickness = 0.79375; tubing_squish_ratio = 0.8; D=51.7; T=20; number_of_planets=3; number_of_teeth_on_planets=8; approximate_number_of_teeth_on_sun=10; P=45; nTwist=1; w=6.7; DR=0.5*1; m=round(number_of_planets); np=round(number_of_teeth_on...
glb/cad_52b11bcc17f4.glb
Create a 10 cm ruler by starting with a base block 100 mm long, 12 mm wide, and 2 mm thick. The profile of this block is a trapezoid when viewed from the side, with the front edge sloped from a thickness of 2 mm down to 0.5 mm. On the top surface, create a series of markings every 10 mm along the length. Each marking c...
difference(){ rotate(a=90,v=[1,0,0]) linear_extrude(100) polygon(points=[[0.5,0],[0,2],[10,2],[12,0]]); for(r=[0:10]){ union(){ translate([1,-10*r,2]) rotate(a=90,v=[0,1,0])cylinder(r=0.5,h=11,$fn=3); translate([1,-10*r+1,1.5]) scale([.4,.3,1]) linear_extrude (.5) text(str(r)); } } }
glb/cad_09fcc7307a89.glb
Create a planetary peristaltic pump consisting of an outer ring, a sun gear, and three planet gears. Create an outer ring with an outer diameter of 51.7mm and a height of 20mm. The interior of the ring must feature internal herringbone gear teeth. Cut two transverse holes through the ring walls to allow tubing to ent...
tol=0.2; allowed_overhang = 0.75; tubing_od = 5.3; tubing_wall_thickness = 1.15; tubing_squish_ratio = 0.8; D=51.7; T=20; number_of_planets=3; number_of_teeth_on_planets=8; approximate_number_of_teeth_on_sun=10; P=45; nTwist=1; w=6.7; DR=0.5*1; m=round(number_of_planets); np=round(number_of_teeth_on_plane...
glb/cad_1686ed10f9aa.glb
Create a DSO 138 oscilloscope case and stand. The main body is a rectangular enclosure with a depth of 24.5mm and a wall thickness of 1.2mm. The interior is designed to house a PCB measuring 117mm by 76mm, with a 4mm border on the sides and a 4mm border at the bottom. The top face features a central rectangular window...
$fn = 32; switchwth = 6; switchlen = 15; switchspc = 1; rodlen = 10; roddia = 4; boardlen = 117; boardwth = 76; borderside = 4; bordertop = 1; borderbot = 4; casethk = 1.2; caselen = casethk * 2 + boardlen + borderside * 2; casewth = casethk * 2 + boardwth + bordertop + borderbot; casedep = 24.5; boardlft = border...
glb/cad_9da235784f15.glb
Create a slide switch spacer for a DSO 138 oscilloscope. Start with a main rectangular block that is 12mm long, 10.5mm wide, and 12mm high. From the bottom of this block, remove a central rectangular slot that is 12.2mm long, 7.5mm wide, and 3mm high to accommodate the switch. In the center of the block, create a verti...
slideslotwth = 7.5; slideskirthgt = 3; slideskirtwth = 1.5; slidewth = slideslotwth + (slideskirtwth*2); slidefill = 9; slidelen = 12; slideholelen = 2.5; slideholewth = 3.4; slideholehgt = 8; slidehandlelen = 4; slidehandlewth = 2.6; slidehandlehgt = 6; union() { difference() { cube([slidelen, slidewth, slidefill ...
glb/cad_f70b113031f4.glb
Create a DSO 138 oscilloscope case backplane. Start with a rectangular base measuring 125mm by 84mm with a thickness of 2mm. At each of the four corners, add a square standoff block measuring 12mm by 12mm and 6mm high. Additionally, add two smaller 12mm by 4mm by 6mm blocks centered along the front and back edges, and ...
$fn = 16; wall_thickness = 2; standoff = 12; scrdia = 2.5; scrhdia = 4.5; scrhdpt = 2; scroffset = 5; boardlen = 117; boardwth = 76; borderside = 4; bordertop = 1; borderbot = 4; max_x = boardlen + borderside * 2; max_y = boardwth + bordertop + borderbot; max_z = 6; vent_dia = 5; vent_spacing = 8; vent_count_x = f...
glb/cad_6779d63a02f3.glb
Create a DSO 138 oscilloscope case and stand by starting with a solid rectangular block measuring 90mm in width, 30mm in depth, and 40mm in height. Carve a large rectangular recess into the top face, centered along the width, measuring 67.5mm wide, 18mm deep, and 15mm high. To create the slanted stand, remove a large s...
$fn = 16; max_x = 90; max_y = 30; max_z = 40; alpha = 60; hole_dia = 2.2; hole_depth = 10; hole_y = 7; hole_xsp = 50; recess_x = max_x * .75; recess_y = max_y - 12; recess_z = hole_depth + 5; difference() { cube([max_x, max_y, max_z]); translate([(max_x - hole_xsp) / 2, hole_y, -1]) cylinder(h = hole_depth ...
glb/cad_17e6acaf56a4.glb
Create a set of baseboard connector elements for the IKEA TORV plinth system. First, design the base profile: a 2D shape with a total height of 60mm and a bottom width of 20mm. The profile should have a wall thickness of 1.6mm and a top width of 13mm. Incorporate a rounding radius of 4mm on the outer edges. Create a...
$fn=60; wall = 1.6; bottom = 20; top = 13; height = 60; rounding = 4; endplate = 2; overlap = 7; holderWidth = 10; test(); module test() { endStop(left = true); translate([0, 30, 0]) endStop(left = false); translate([0, 60, 0]) cornerPiece(80); translate([40, 60,...
glb/cad_f7c0451378e7.glb
Create a 3D model of a torus knot. The shape is defined by a tube with a radius of 0.04mm following a path determined by parameters P=5 and Q=13. The path is generated using the functions x = (1 + 0.2 * cos(13 * t)) * cos(5 * t), y = (1 + 0.2 * cos(13 * t)) * sin(5 * t), and z = sin(13 * t). Construct the tube as a po...
P = 5; Q =13; A=0.2; R=0.04; Scale=20; Sides=20; Phase = 45; Kscale=[1,1,0.2]; Step=0.5 ; function f(t) = [ (1 + A*cos(Q * t)) * cos(P * t), (1 + A*cos(Q * t)) * sin(P * t), sin(Q * t) ]; function poly(name,vertices,faces,debug=[],partial=false) = [name,vertices,faces,debug,partial...
glb/cad_2d47807baf2b.glb
Create a customizable pet bowl by constructing a series of concentric conical shapes. Start with a solid base cylinder that has a radius of 50mm and a height of 1.4mm. On top of this base, create a hollowed-out conical vessel with a total height of 25mm. The outer wall of this vessel should taper from a bottom radius o...
use<write/Write.scad> radio_mayor = 50; radio_menor = 40; radio_minimo = 35; altura = 25; segmentos = 100; texto = "Olivia"; difference(){ cylinder(r1=radio_mayor, r2=radio_menor, h=altura,$fn=100); cylinder(r1=radio_mayor-espesor, r2=radio_menor - 1.4, h=altura+1,$fn=segmentos); } difference(){ cylinder(r1=...
glb/cad_ef7d438fcc11.glb
Create a replacement battery cover for a remote with a total width of 41.66mm, a height of 16mm, and a length of 70mm. The main body is a shell with a wall thickness of 1.34mm. The long sides of the shell should feature a curved profile that transitions from a flat top to rounded edges. At the rear, create a rounded ...
$fn = 50; width = 41.66; height = 16; thickness = (width - 38.98) / 2; length = 70; slider_depth = 2; stop_distance = 33.5; stop_depth = 3; stop_length = 4; stop_height = 1.5; rear_stop_offset = 6; rear_flat = 10; rear_end_radius = (width - rear_flat) / 2; rear_end_depth = ...
glb/cad_bea066dbc63f.glb
Create a woodworking square consisting of two intersecting rectangular prisms. First, create a thin arm measuring 16mm wide, 60mm long, and 3mm thick. Second, create a thicker crosspiece measuring 40mm wide, 16mm long, and 9mm thick. Position the crosspiece so that it intersects the arm perpendicularly, with the arm re...
$arm=60; $crosspiece=40; $width=16; tinySquare($arm,$crosspiece,$width); module tinySquare(arm,crosspiece,width){ union(){ cube([width,arm,3]); translate([0,0,-3])cube([crosspiece,width,9]); } }
glb/cad_788a66059eed.glb
Create a bridge for a cigar box guitar. Start by forming a main body using a rounded rectangular block 30mm long, 33mm wide, and 4.8mm high, with the corners smoothed by a 2mm radius. To this base, add a wedge-shaped extension that is 55mm long, 8mm high, and tapers from a width of 7mm at the top to 2mm at the bottom. ...
$strings=4; $width=55; $height=8; CBG_bridge(strings=$strings,width=$width,height=$height); module CBG_bridge(strings,width,height){ difference(){ rotate(a=90,v=[1,0,0]) linear_extrude(width) polygon(points=[[0,0],[2,height],[5,height],[7,0]]); for(r=[0:6]){ translate([1,-width*r/(strings+1),height]) rotate(a=90,v=[0...
glb/cad_02e7a855a581.glb
Create a caterpillar model composed of five hexagonal nuts and two antennae. Each hexagonal nut is a prism with a side length of 10.1mm, a height of 8mm, and a central circular hole with a radius of 4mm. Arrange the five hexagons in a undulating sequence along the x-axis: the first at (0,0,0), the second at (15, 8.73, ...
d0 = 10; rbase = d0 + 0.1; d1 = 1.5 * d0; d2 = rbase*sin(60); rc = 4; h1 = 8; h2 = 13; r2 = 1.5; union() { for (x =[ [0,0,0], [d1,d2,0], [2*d1,0,0], [3*d1,d2,0], [4*d1,0,0 ], ]) { translate(x) linear_extrude(height = h1) difference() { hexagon(); ...
glb/cad_af7ebd5ba6d6.glb
Create an angled wing mount for an RC motor. Start with a cylindrical base 30mm in diameter (15mm radius) and 5mm thick. In the center of this base, create a vertical hole 6mm in diameter that passes through the entire thickness. Around this center hole, place four smaller screw holes, each 3mm in diameter and 15mm dee...
long=44; tall=24; wide=12; wingangle=25; module hole_mod (pRad,pHight=-1, circRad,cirHight,circQ=10,num){ for (i=[1:num]) { translate([pRad*cos(i*(360/num)),pRad*sin(i*(360/num)),pHight]) cylinder(r=circRad,circHight,$fn=circQ); } } module wingsub(){ translate([-20,0,.4])rotate(a=[0,90,0]) cylinde...
glb/cad_07bbd7403988.glb
Create an angled wing mount for an RC motor. Start with a primary cylindrical base that has a radius of 15mm, a height of 5mm, and a 20-facet resolution. Remove a central vertical hole with a radius of 3mm and a height of 12mm, centered on the base. Create a series of eight small screw holes that pass through the base...
long=88; tall=48; wide=24; wingangle=25; module hole_mod (pRad,pHight=-1, circRad,cirHight,circQ=10,num){ for (i=[1:num]) { translate([pRad*cos(i*(360/num)),pRad*sin(i*(360/num)),pHight]) cylinder(r=circRad,circHight,$fn=circQ); } } module wingsub(){ translate([-20,0,.4])rotate(a=[0,90,0]) cylinde...
glb/cad_e5a3fea0cf3d.glb
Create an angled wing mount for an RC motor. Start with a primary cylindrical base that has a height of 54mm, a bottom radius of 17mm, and a top radius of 19mm, using a 20-facet resolution. Remove a concentric center hole with a radius of 12mm at the bottom and 18.8mm at the top. Cut a wing-shaped profile through the ...
long=88; tall=48; wide=24; wingangle=30; module hole_mod (pRad,pHight=-1, circRad,cirHight,circQ=10,num){ for (i=[1:num]) { translate([pRad*cos(i*(360/num)),pRad*sin(i*(360/num)),pHight]) cylinder(r=circRad,circHight,$fn=circQ); } } module wingsub(){ translate([-20,0,.4])rotate(a=[0,90,0]) cylinde...
glb/cad_4d607ea83b1a.glb
Create a Z Stage Motor Flange Cap by starting with a main cylinder that has a radius of 18mm and a height of 9mm. Remove a smaller concentric cylinder from the bottom with a radius of 11mm and a height of 5mm. From the remaining base, remove a smaller central cylinder with a radius of 5.5mm and a height of 5mm, positio...
difference() { difference() { cylinder(r= 18, h=9); cylinder(r= 11, h=5); translate([0,0,4]) cylinder(r= 5.5, h=5); } translate([10,0,4.5]) cube([25,8,9], center=true); translate([0,14,0]) cylinder(r= 2, h=10); translate([0,-14,0]) cylinder(r= 2, h=10); translate([-14,0,0]) cylinder(r= 2, h=10); }
glb/cad_00023b605912.glb
Create a Gloomhaven hex standee base by starting with a hexagonal prism that has a diameter of 38.1mm and a height of 10mm. On the top surface, carve out a rectangular dice tray measuring 26mm in length, 14mm in width, and 8mm in depth, offset 2mm from the top edge. Add a small lip 4mm high at the front of this cutou...
echo(version=version()); module StandeeHolderSide() { linear_extrude(height = 12) polygon(points = [[3.25,0], [4.25,0], [1.75,5], [1.75,6], [2.25,7], [1.25,7], [0.75,6], [0.75,5]]); translate([0,0,5.5]) { linear_extrude(height = 1) polygon(points = [[1,0], [3.25,0], [1,5]]); } } He...
glb/cad_52f85bb89bda.glb
Create a Gloomhaven hex standee base. Start with a hexagonal prism base with a diameter of 38.1mm and a height of 10mm. On the top surface, carve out three rectangular slots to hold condition tokens, each 20mm long and 2.5mm wide, with a depth of 6mm. Create a larger rectangular cutout for dice with a length of 26mm,...
echo(version=version()); TriangleBase=13.5; TriangleHeight=16.35; TriangleThickness=1.42; IndicatorThickness=1.5; HeightOfCutTriangle=9.7; HeightOfNub=9; DiameterOfNub=1.8; DiameterOfSpinnerHolder=3.45; WidthOfUpperRectangle=6; HeightOfUpperRectangle=6; HeightOfUpperTriangle=13.5; UpperTriangleTop=18; DistanceBetweenT...
glb/cad_f8d729b081a7.glb
Create a Gloomhaven hex standee base. Start with a hexagonal prism base that has a diameter of 38.1mm and a height of 10mm. On the top surface, carve out three distinct storage areas. First, create a rectangular cutout for dice that is 26mm long, 13mm wide, and 8mm deep, offset 2mm from the top edge. Second, create a...
echo(version=version()); TriangleBase=13.5; TriangleHeight=16.35; TriangleThickness=1.42; IndicatorThickness=1.5; HeightOfCutTriangle=9.7; HeightOfNub=9; DiameterOfNub=1.8; DiameterOfSpinnerHolder=3.45; WidthOfUpperRectangle=6; HeightOfUpperRectangle=6; HeightOfUpperTriangle=13.5; UpperTriangleTop=18; DistanceBetweenT...
glb/cad_25bf38b3a34a.glb
Create a Gloomhaven hex standee base by starting with a hexagonal prism that has a diameter of 38.1mm and a height of 10mm, using a 6-facet resolution. On opposite sides of the hexagon, integrate two standee holder slots. Each slot is formed by a vertical profile 12mm high, defined by a polygon with vertices at [3.25...
echo(version=version()); module StandeeHolderSide() { linear_extrude(height = 12) polygon(points = [[3.25,0], [4.25,0], [1.75,5], [1.75,6], [2.25,7], [1.25,7], [0.75,6], [0.75,5]]); translate([0,0,5.5]) { linear_extrude(height = 1) polygon(points = [[1,0], [3.25,0], [1,5]]); } } He...
glb/cad_f6895aec173b.glb
Create a life counter spinner consisting of a main cylindrical body and a top peg. Start by creating a cylinder with a diameter of 14mm and a height of 3.75mm. On the top surface of this cylinder, center a decagonal peg with a diameter of 3.2mm and a height of 1.5mm, rotated 18 degrees. Above this peg, add a smaller cy...
SpinnerDiameter=14; SpinnerWidth=3.75; PegLength=1.5; PegDiameter=3.2; ButtonDiameter=4.5; ButtonWidth=1.5; DivotDiameter=2.25; TextExtrude=1.6; TextSize=4; difference() { union() { cylinder(h=SpinnerWidth,d=SpinnerDiameter,$fn=100); for (i=[1:1:10]) { rotate([36*(i-1),90,0]) {...
glb/cad_db975c270672.glb
Create a life counter spinner consisting of a main cylindrical body and a top peg. Start with a base cylinder 14mm in diameter and 3.75mm high. On the top surface of this cylinder, center a decagonal prism (10-sided polygon) with a diameter of 3.2mm and a height of 1.5mm to serve as the rotating peg. Above this peg, ad...
SpinnerDiameter=14; SpinnerWidth=3.75; PegLength=1.5; PegDiameter=3.2; ButtonDiameter=4.5; ButtonWidth=1.5; DivotDiameter=2.25; TextExtrude=1.6; TextSize=4; difference() { union() { cylinder(h=SpinnerWidth,d=SpinnerDiameter,$fn=100); for (i=[1:1:10]) { rotate([36*(i-1),270,0]) ...
glb/cad_785218a090df.glb
Create an rc-bungee launch mount. Start with a main truncated cone base that is 4mm high, with a bottom radius of 35mm and a top radius of 5mm, using a 20-facet resolution. Remove a central cylindrical hole with a radius of 3mm and a height of 12mm, centered on the base. Around this center, create a circular pattern of...
module hole_mod (pRad,pHight=-1, circRad,cirHight,circQ=10,num){ for (i=[1:num]) { translate([pRad*cos(i*(360/num)),pRad*sin(i*(360/num)),pHight]) cylinder(r=circRad,circHight,$fn=circQ); } } difference() { translate([6,0,0])rotate(a=[0,0,0])cylinder(h=4, r1=35,r2=5,$fn=20,center=false); hole_mod(pRad=...
glb/cad_bcdbdbceeb6a.glb
Create an rc-bungee launcher mount. Start with a wide, 12-sided polygonal base that is 30mm thick and 100mm in diameter (50mm radius). Centered on this base, build a tapered vertical tower composed of several stacked, low-facet cylinders. The tower begins with a 20-sided cylinder 4mm high with a 35mm base radius taperi...
module hole_mod (pRad,pHight=-1, circRad,cirHight,circQ=10,num){ for (i=[1:num]) { translate([pRad*cos(i*(360/num)),pRad*sin(i*(360/num)),pHight]) cylinder(r=circRad,circHight,$fn=circQ); } } difference() { union(){ translate([6,0,0])rotate(a=[0,0,0])cylinder(h=4, r1=35,r2=5,$fn=20,center=false); tr...
glb/cad_616112c9ea36.glb
Create an rc-bungee launcher consisting of a wide circular base and an extending arm. The base is formed by a series of stacked, concentric cylinders with decreasing heights and radii, creating a tapered, conical profile. The largest bottom section is a 12-sided prism with a radius of 350mm and a height of 30mm, center...
module hole_mod (pRad,pHight=-1, circRad,cirHight,circQ=10,num){ for (i=[1:num]) { translate([pRad*cos(i*(360/num)),pRad*sin(i*(360/num)),pHight]) cylinder(r=circRad,circHight,$fn=circQ); } } difference() { union(){ translate([60,0,0])rotate(a=[0,0,0])resize(newsize=[130,24,4])cylinder(h=3, r1=13,r...
glb/cad_cc4cc278edba.glb
Create a customizable badge holder with overall dimensions of 60mm width, 95mm height, and 4mm thickness. The main body is a rounded rectangle with corner radii of 7mm. Centered within this body, create a rectangular cutout 50mm wide and 75mm high that passes completely through the object. To accommodate the badge, c...
badge_width=54.5; badge_height=86; badge_thickness=2; whole_width=60; whole_height=95; whole_thickness=4; window_width=50; window_height=75; badge_holder(); module badge_holder() { $fn=60; wall_thickness=(whole_thickness-badge_thickness)/2; height_diff=whole_height-badge_height; tab_width=whole_width/2; t...
glb/cad_97ef9a9a60e3.glb
Create a generic door handle with a total width of 20mm, length of 80mm, and height of 30mm. Start by forming the main body as a rectangular block 20mm wide, 80mm long, and 17.5mm high. Add a semi-cylindrical top section with a radius of 10mm and a length of 80mm, centered along the length and positioned atop the block...
ww = 20; ll = 80; hh = 30; rrr = hh*1.25; $fn = 200; difference () { union () { translate ([-ww/2, -ll/2, 0]) cube ([ww,ll,hh-ww/2]); translate ([0,ll/2,hh-ww/2]) rotate ([90,0,0]) cylinder (h=ll, r=ww/2); } translate ([ww/2+sqrt(rrr*rrr-hh*hh/4), ll/2+0.1, hh/2]) rotate ([90, 0, 0,]) ...
glb/cad_d6b2cf17e6af.glb
Create a rectangular perforated plate, known as a Lochplatte, with overall dimensions of 40mm in depth, 80mm in width, and 2mm in height. Within the main body, create a grid of rectangular holes. These holes should be 4mm wide and 2mm high, spaced in a repeating pattern starting from 10mm from the depth edge and 4mm ...
breite = 80; tiefe = 40; hoehe = 2; durchm1 = 4; steghoehe = 5; bohrung = 0; rundung=durchm1; steg = steghoehe+hoehe; $fn=80; translate ([-tiefe/2,-breite/2,0]) { lochplatte (breite,tiefe,hoehe); if (bohrung==1) {ecksteg1(breite,tiefe,hoehe,durchm1);} else {ecksteg(breite,tiefe,steg,durchm1);} } module lochplat...
glb/cad_8d949ac6d024.glb
Create a customizable vaping drip tip set consisting of three separate components: a drip tip, a cap, and a 90-degree adapter. First, construct the drip tip. Create a base consisting of 5 stacked rings, each 1mm high with an outer diameter of 12.7mm. Above this base, add a cylinder 13mm tall with an outer diameter of ...
DripOuterDiameter=17; DripHeight=13; InnerHoleDripDiameter=12; Fillet=1; CapHeight=10; InnerHoleDiameter=8; Rings=5; RingHeight=1; InnerMAXDiameter = 12.7; InnerMINDiameter = 12.7; Facets=60; Tolerance = 0.2; MakeDrip=1; MakeCap=1; MakeAdapter90=1; CapRadius=DripOuterDiameter/2+(DripOuterDiameter-InnerHo...
glb/cad_c1105bc2d625.glb
Create a 90-degree bracket with a total width of 20mm, a height of 100mm, and a depth of 20mm. The bracket consists of a base plate and a vertical wall, both with a thickness of 3mm. Start with a solid block of 20mm by 100mm by 20mm. Hollow out the interior to leave the 3mm thick walls. Round off the outer corner whe...
$fn=72; e=0.01; module bracket(xmax,ymax,zmax,th1,th2,rr,hcx,hcy,hcz){ difference(){ cube([xmax,ymax,zmax]); translate([th1,th2,th1]) cube([xmax,ymax-(th2*2),zmax]); translate([xmax+th1,ymax+e,zmax+th1]) rotate([90,0,0]) scale([1,zmax/xmax,1]) cylinder(r=xmax,h=ymax+e*2); ystep=(ymax-(th2*2))/hcy...
glb/cad_8e923171fa88.glb
Create a Customizable Can Cover by constructing a concentric ring-shaped shell with a wall thickness of 1mm. The model is formed by rotating a specific profile around a central axis. Start with a base ring that has an inner diameter of 94mm and an outer diameter of 101mm. From the bottom plane, extend the outer wall ...
outer_diameter_in_millimeter = 101.0; inner_diameter_in_millimeter = 94.0; outer_cover_height_in_millimeter = 24.0; inner_cover_height_in_millimeter = 12.0; cover_thickness_in_millimeter = 1.0; outer_dia = outer_diameter_in_millimeter; inner_dia = inner_diameter_in_millimeter; outer_cover_h = outer_cover_height_in...
glb/cad_46f221fa3dd7.glb
Create an N-scale iron bridge that is 120mm long, 24mm wide, and consists of two identical parallel side walls connected by a floor. Each side wall is constructed from I-beams. An I-beam is defined as a central 120mm x 0.6mm x 2mm rectangular strip with two thinner 120mm x 2mm x 0.6mm plates attached to the top and b...
length=120; width=24; module ibeam(length){ cube([length,2,.6]); translate([0,0.65,0]) cube([length,.6,2]); translate([0,0,2]) cube([length,2,.6]); } module topplates(){ cube ([3,3,4]); translate([.4,-.2,2.5]) cube([.3,3.4,0.3]); translate([1.6,-.2,2.5]) cube([.3,3.4,.3]); translate([.2,-.2,.8]) cube([.3,3.4,.3]); tra...
glb/cad_4355b7570bf4.glb
Create a lamp socket spacer for a reverse gear light bulb. The main body is a tiered cylindrical tower with a central hole. Start with a base cylinder 17mm in diameter and 3.7mm high. Stack a second cylinder on top with a 14.2mm diameter and 3mm height, followed by a third cylinder 14.2mm in diameter and 2.4mm high, an...
$fn=50; module snap_clip() { translate([-6.5, -1.5, 7.7]) { cube([2,3,14.5]); difference() { cube([6.5,3,2]); translate([6.5,1.5,-.1]) cylinder(d=5,h=2.2); } translate([-1.5,0,11]) { difference() { ...
glb/cad_97626b8eb0f5.glb
Create a Magnetic whiteboard pen holder by extruding a specific 2D geometric logo to a height of 2mm. The base shape is centered around a circle with a radius of approximately 3.47mm (10/72 * 25) that is removed from the center to create a hole. Surrounding this hole is a larger solid circle with a radius of approximat...
module gear_tooth_2d(d) { polygon( points=[ [0.0,10.0*d/72.0], [0.5*d,d/15.0], [0.5*d,-d/15.0], [0.0,-10.0*d/72.0] ] ); } module oshw_logo_2d(d=10.0) { rotate(-135) { difference() { union() { circle(r=14.0*d/36.0,$fn=20); for(i=[1:7]) { rotAngle=45*i+45; ro...
glb/cad_0e08a6ab441d.glb
Create a modernist soap dish by constructing a base profile and extruding it. Start with a 2D polygon defined by the following vertices: (-6, -1.3), (0, -1.3), (0, -3.9), (2.6, -3.9), (2.6, -1.3), (2.6, 1.3), (2.6, 3.9), (0, 3.9), (0, 1.3), and (-6, 1.3). Extrude this polygon linearly to a height of 6mm. To complete th...
zmin = 6; h = 6; w=6; gr = 2.6; gh=gr/2; module p() { polygon( [ [-h,-gh], [0,-gh], [0,-gh-gr], [gr,-gh-gr], [gr,-gh], [gr,gh], [gr,gh+gr], [0,gh+gr], [0,gh], [-h,gh], ] ); } module pt() { linear_ext...
glb/cad_2d71a325fb18.glb
Create a modernist soap dish by extruding a specific 2D profile to a height of 6mm. The profile is a non-symmetrical polygon defined by the following vertices in sequence: starting at (-6, -1.2), moving to (0, -1.2), then to (0, -3.6), then to (2.4, -3.6), then to (2.4, -1.2), then to (2.4, 1.2), then to (2.4, 3.6), th...
zmin = 6; h = 6; w=6; gr = 2.4; gh=gr/2; module p() { polygon( [ [-h,-gh], [0,-gh], [0,-gh-gr], [gr,-gh-gr], [gr,-gh], [gr,gh], [gr,gh+gr], [0,gh+gr], [0,gh], [-h,gh], ] ); } module pt() { linear_ext...
glb/cad_0d09690b7849.glb
Create a modernist soap dish by constructing a series of concentric elliptical rings. Start with a set of concentric rings with a width of 3mm and a gap of 3mm between them, extending from the center out to a maximum radius of 60mm along the X-axis and 45mm along the Y-axis. These rings should have a maximum height of ...
rx = 60; ry = 45; zmin = 6; w = 3; g = 3; rs = 3; rk = 4 * rx; zmax=30; p = w+g; ms = 0.01; $fs = 0.5; $fa = 3; intersection() { union() { difference() { union() { for (roff =[0:p:rx]) { rotate_extrude() { ...
glb/cad_a2be4c5da5d2.glb
Create a Trumpet Mouthpiece Holder by constructing a hollowed-out vessel with a screw-top lid. The main body begins with a base section that is a truncated cone 43mm tall, tapering from a bottom radius of 7.5mm to a middle radius of 8.5mm. Directly above this, add a second truncated cone 35mm tall that continues to tap...
include <polyScrewThread.scad> E=0.01; PI=3.141592; thick=2; mtop=14.5; htop=11; mmid=6.5; hmid=35; mbot=5.5; hbot=43; difference() { union () { cylinder(h=hbot, r1=mbot + thick, r2=mmid + thick); translate([0,0,hbot]) cylinder(h=hmid, r1=mmid + thick, r2=mtop + thick); translate([0,0,hbot...
glb/cad_754fdba205a5.glb
Create a Trumpet Mouthpiece Holder consisting of a hexagonal cap with an internal threaded cavity. Start by constructing a hexagonal prism with a height of 13mm and a flat-to-flat width of 37mm. From the center of this prism, remove a cylindrical core to create a hole. This hole should begin with a diameter of 33mm at ...
include <polyScrewThread.scad> E=0.01; PI=3.141592; thick=2; mtop=14.5; htop=11; mmid=6.5; hmid=35; mbot=5.5; hbot=43; fudge=0.75; rotate([180,0,0]) hex_cap(2*(mtop+thick)+6,htop+thick,4,55,2*(mtop+thick)+4+fudge,0.5); module hex_cap(df,hg,sth,clf,cod,crs) { difference() { hex_head(hg+sth,df); ...
glb/cad_8dd9582e7e18.glb
Create a parametric soap box consisting of a bottom base and a matching cover. For the bottom base, create a rounded rectangular shell with outer dimensions of 57mm in length, 38mm in width, and 13mm in height. The walls should have a thickness of 2.5mm, and all exterior corners and edges must be rounded with a radius ...
l = 55;; c = 36; h = 11; ht = 3; thickness = 1.5; clearence = 0.3; radius = 1.; l1 = l - 2*radius; c1 = c - 2*radius; h1 = h - 2*radius; $fn=50; module bottom(){ difference(){ minkowski(){ cube([l1 ,c1 , h1 ]); sphere(r=radius+thickness); } translate([0,0,0]) minkowsk...
glb/cad_83922140b021.glb
Create a 3D heart shape with a thickness of 1mm. To construct the base profile, start with a square that is 10mm by 10mm. Place two circles, each with a radius of 5mm, such that their centers are positioned at (5, 10) and (0, 5) relative to the bottom-left corner of the square. The final 2D silhouette is formed by the ...
size = 5; zHeight = 1; twistAngle = 0; heart(size, zHeight, twistAngle); module heart(size, zHeight, twistAngle){ linear_extrude(height = zHeight, center = true, convexity = 1, twist = twistAngle, slices = 20, scale = 1) { translate ([size,size*2,0]) circle(size); translate ([0,size,0]) circle(size); squa...
glb/cad_54f8ab4e186e.glb
Create an X-carriage for an I3 rework printer consisting of two main plates joined by bracing. First, create a front plate by forming a rectangular block 60mm wide, 10mm high, and 4mm thick. Within this plate, place four cylinders with a radius of 5mm and a height of 4mm at the corners: two at x=5, y=5 and x=55, y=5, a...
translate ([-0.2, 0, -33]) rotate ([90, 0, 0]) { translate ([5, 5, 0]) cylinder (r=5, h=4); translate ([55, 5, 0]) cylinder (r=5, h=4); translate ([5, 45, 0]) cylinder (r=5, h=4); translate ([55, 45, 0]) cylinder (r=5, h=4); translate ([5, 0, 0]) cube ([50, 10, 4]); translate ([5, 40, 0]) cube ([50, 10, 4]); difference...
glb/cad_cbce8fbc2ccb.glb
Create an X-carriage for an I3 rework printer consisting of a main roller plate and a front plate. Start with a roller plate that is a rectangular block measuring 60mm wide, 57mm deep, and 4mm thick. In this plate, create four through-holes with a radius of 2.75mm: two positioned at x=10mm and two at x=50mm, with y-coo...
translate ([-0.2, 0, -23]) rotate ([90, 0, 0]) { translate ([5, 5, 0]) cylinder (r=5, h=4); translate ([55, 5, 0]) cylinder (r=5, h=4); translate ([5, 45, 0]) cylinder (r=5, h=4); translate ([55, 45, 0]) cylinder (r=5, h=4); translate ([5, 0, 0]) cube ([50, 10, 4]); translate ([5, 40, 0]) cube ([50, 10, 4]); difference...
glb/cad_b2b14fc426d7.glb
Create a scout width an eye mount by combining several geometric volumes. Start with a base rectangular block measuring 24mm wide, 10mm deep, and 25mm high, positioned at x=0, y=-10, and z=0. On top of this, add a flat rectangular plate measuring 24mm by 40mm with a thickness of 3mm. Integrate three additional rectangu...
union() { difference() { difference() { union() { color([0.000, 0.000, 1.000, 1.000]) { cube(size=[24.000, 40.000, 3.000], center=false); } translate(v=[8.500, 2.000, 3.000]) { cube(size=[7.000, 9.000, 4.000], center=false); } translate(v=[4.000, 6...
glb/cad_f46008cf16a6.glb
Create a Jobo CPA/CPP lift handle hub. Start with a main cylindrical base 36mm in diameter and 12mm high. Centered on this base, add a smaller cylinder 13.6mm in diameter that extends 7.2mm downwards from the bottom face. Further extending downwards from the center, add a third cylinder 9.7mm in diameter with a height ...
$fn=40; dlta = 0.1; module handle_body() { cylinder(h=12,d=36); translate([0,0,-7.2]) cylinder(h=7.2+dlta, d=13.6); translate([0,0,-22]) cylinder(h=22,d=9.7); translate([0,16.9,6]) rotate([90,0,0]) cylinder(h=42.9,d=12); translate([-0.5,-29,6]) rotate([90,0,-35]) cylinder(h=25,d=10.7); translat...
glb/cad_ae8c5e7f88e1.glb
Create a gender/slenthem pin with a total height of 89mm. Start with a central peg that is 19mm long, tapering from a bottom diameter of 5mm to a top diameter of 6mm. At the top of this peg, add a circular flange with a diameter of 16mm and a height of 3.8mm. Above the flange, create a main shaft that tapers upward f...
total_height = 89; peg_height = 19; head_height = 16; peg_top_d = 6; peg_bottom_d = 5; head_hole = 7.5; head_width = 11.5; head_opening = 4; flange_diameter = 16; min_diameter = 5.5; opening_angle = 35; flange_height = 3.8; max_diameter = head_width * 1.2; max_d_height = total_height/1.9; norm_diameter = max_diame...
glb/cad_e94d4a647355.glb
Create a Spool Hanger consisting of a flat base with a total height of 10mm. Construct the main body by combining three rectangular sections: first, a 10mm by 100mm by 10mm block; second, a 100mm by 10mm by 10mm block positioned to overlap the first at the origin; and third, two smaller blocks measuring 10mm by 30mm by...
part = "all"; difference(){ union() { if (part=="a" || part=="all") { cube([10,100,10]); cube([100,10,10]); } if (part=="b" || part=="all") { translate([12,12,0]) { cube([10,88,10]); cube([88,10,10]); } } if (part=="c" || part=="all") { translate([24,70,0]) { cube([10,30,10]); cube([20,10,10]); }...
glb/cad_46cf4916c002.glb
Create a Customizable Funnel Adapter consisting of three stacked concentric sections with a uniform wall thickness of 2mm. Start with a base hollow cylinder that has an outer diameter of 27.2mm and an inner diameter of 23.2mm, extending to a height of 15mm. On top of this base, add a thin flat ring with a height of 4mm...
$fn = 80; _openingDiameter = 27.2; _openingHeight = 15; _funnelHeight = 50; _funnelBottomDiameter = 28.5; _funnelTopDiameter = 34; _conjunctionHeight = 4; _wallThickness = 2; rotate([180,0, 0]) union() { difference() { cylinder(_openingHeight, d = _openingDiameter); translate([0, 0, -0.1]) ...
glb/cad_8ffffb335f7f.glb
Create a rear sensor mount for a 3D printer. Start with a rectangular back plate that is 30mm wide, 14mm high, and 5mm thick. On the back plate, create two mounting holes for M3 bolts. These holes should be 18mm apart horizontally and offset 3.7mm vertically from the top edge. The holes should have a diameter of 3.4m...
ver = 1.3; eps = 0.01*1; $fn = 50*1; extra_radius = 0.05*1; m3_major = 2.85*1; m3_radius = m3_major / 2 + extra_radius; m3_wide_radius = m3_major / 2 + extra_radius + 0.2; mount_type = 0; sensor_diameter = 18; sensor_thickness_wall = 3; sensor_gap = 4; sensor_thickness_wall_s = 7; threaded = 1; thread_pitch = ...
glb/cad_c367e490f7f6.glb
Create a rocket model consisting of a hollow body, a conical nose, and four fins. Start by creating a hollow cylindrical body with an inner diameter of 22.8mm and a wall thickness of 1.2mm, extending to a height of 180mm. Atop this cylinder, add a conical nose section that starts at the outer radius of the body and tap...
inner_diameter = 22.8; body_height = 180; nose_height = 50; number_of_fins = 4; fin_width = 30; fin_height = 55; perimeter_width = 1.2; eta = 0.001; perim = perimeter_width; 2perim = 2*perim; module donut(or,ir) { difference() { circle(or); circle(ir); } } module rocketBody() { $fn=32; id=inne...
glb/cad_36b1f91ec93b.glb
Create an Anet A8 top spool holder consisting of two symmetrical side supports. Each support is built from a base plate 8mm thick. For each support, create a vertical rectangular section 40mm wide and 75mm high (60mm height plus a 15mm offset) with a thickness of 8mm. At the top of this section, attach an arm assembl...
thickness=8; a8height=60; a8width=63; module arm(l){ $fn=50; dia=25; union(){ cylinder(h=thickness,d=15); translate([0,-7.5,0]) cube([l,15,thickness]); difference(){ translate([l+dia/4,0,0]) cylinder(h=thickness,d=dia); translate...
glb/cad_989b2f606459.glb
Create a Serfas Light Handlebar Clamp designed for a 32mm diameter handlebar. The device consists of two symmetrical halves that form a hinged circular clamp with a total height of 26mm and a wall thickness of 6mm. The main body is a hollow cylinder with an outer radius of 22mm and an inner radius of 16mm. Each half o...
handlebar_diameter = 32; WIDTH = handlebar_diameter; DEPTH = handlebar_diameter; DESIRED_HEIGHT = 26; CLEARANCE_LOOSE_FIT = 0.4; CLEARANCE_TIGHT_FIT = 0.2; HINGE_CLEARANCE = CLEARANCE_LOOSE_FIT; HINGE_CLEARANCE_PER_KNUCKLE_PER_SIDE = HINGE_CLEARANCE / 2; CLAMP_THICKNESS = 6; HINGE_SCREW_DIAMETER = 3; LOCKING_PIN_D...
glb/cad_106f775de130.glb
Create a triangular component for a geodesic dome. Start by creating a solid equilateral triangle with a side length of 92.7mm and a thickness of 0.9mm. Around the perimeter of this triangle, add a raised rim that is 8mm high and 4mm thick. This rim should follow the triangular boundary exactly. To create a recessed ...
layer_thickness=0.3; length_a=92.7; length_b=82.0; outer_lip_angle=108; inner_lip_angle=69; lip_height=8; lip_thickness=4; base_thickness=3*layer_thickness; difference(){ cylinder(r1=length_a/2, r2=length_a/2+lip_height, h=lip_height, $fn=3); translate(v=[0,0,base_thickness]) cylinder(r1=length_a/2-lip_thickness...
glb/cad_c4c45a90d5f8.glb
Create a 3D model of a five-sided pyramid maker consisting of five identical isosceles triangles arranged around a central point. Each isosceles triangle must have a base length of 40mm and matching side lengths of 40mm. Position the triangles so that their apexes meet at a single central origin point, with each tria...
pi=3.14159; triangle_length_a=40; triangle_length_b=40; wall_t=1; triangle_base_length=triangle_length_a; triangle_matched_sides_length=triangle_length_b; triangle_apex_angle=2*asin((triangle_base_length/2)/triangle_matched_sides_length); number_of_triangles=5; angle_tilt=53; angle_twist=360/number_of_triangles; s...
glb/cad_75af29a69b7c.glb
Create a thin, isosceles triangle part for a geodesic dome. The triangle should have a base length of 97mm and two equal sides of 84mm. The part is not a uniform flat sheet; it features a thick rim around the entire perimeter to provide structural strength and a thinner central region to allow for transparency. The r...
pi=3.14159; triangle_length_a=97; triangle_length_b=84; rim_t=3; rim_w=3; centre_t=1; triangle_base_length=triangle_length_a; triangle_matched_sides_length=triangle_length_b; triangle_apex_angle=2*asin((triangle_base_length/2)/triangle_matched_sides_length); number_of_triangles=5; angle_tilt=53; angle_twist=360/num...
glb/cad_ee1122983f21.glb
Create a Geodesic Dome and N-gon Pyramid Maker part by constructing an isosceles triangle with a base length of 92.7mm and matching side lengths of 92.7mm. The main body of the triangle should have a thickness of 3mm at the edges (the rim) and a thinner central region of 1mm. To create the central cutout, subtract a ...
triangle_length_a=92.7; triangle_length_b=92.7; rim_t=3; rim_w=3; centre_t=1; number_of_triangles=5; z_layer_thickness=0.32; mouse_ear_thickness=2*z_layer_thickness; mouse_ear_radius=5; pi=3.14159; triangle_base_length=triangle_length_a; triangle_matched_sides_length=triangle_length_b; triangle_apex_angle=2*asin(...
glb/cad_55cd9a79221b.glb
Create a thin, isosceles triangle part for a geodesic dome. The triangle has a base length of 92.7mm and two matched sides of 82.0mm. The part consists of a central thin region and a thicker outer rim. The main body is an isosceles triangle with a thickness of 3mm at the edges (the rim) and 1mm in the center. To crea...
triangle_length_a=92.7; triangle_length_b=82.0; rim_t=3; rim_w=3; centre_t=1; number_of_triangles=5; z_layer_thickness=0.32; mouse_ear_thickness=2*z_layer_thickness; mouse_ear_radius=5; pi=3.14159; triangle_base_length=triangle_length_a; triangle_matched_sides_length=triangle_length_b; triangle_apex_angle=2*asin(...
glb/cad_314d40cae61c.glb
Create a 9-sided pyramid model composed of nine identical isosceles triangles. Each triangle has a base length of 80mm and matching side lengths of 125mm. For each triangle, create a main body with a thickness of 1mm. To provide structural strength and transparency, incorporate a rim around the perimeter that is 3mm ...
pi=3.14159; triangle_length_a=80; triangle_length_b=125.0; rim_t=3; rim_w=3; centre_t=1; number_of_triangles=9; just_a_triangle=0; has_mouse_ears=1; is_folded=1; z_layer_thickness=0.32; mouse_ear_thickness=2*z_layer_thickness; mouse_ear_radius=5; triangle_base_length=triangle_length_a; triangle_matched_sides_len...
glb/cad_a82a8e1d057b.glb
Create a board game box template consisting of a main container and a sliding lid. The main container is a rectangular box with outer dimensions of 199mm in length, 140.4mm in width, and 50mm in height. The walls are 4mm thick. The interior is hollowed out to create a storage space, leaving a 4mm floor at the bottom. ...
_SQRT2= sqrt(2); _box_size_list = [200,200/_SQRT2,200/2,200/2/_SQRT2,200/4]; _box_deep_step=10; _box_gap = 1; _magnet=1; _magnet_D = 5; _magnet_H = 2; _wall = 4; _gap = 0.1; _gap_inset = 0.2; _snap_in = 0.2; _bevel = 1; _snap_in_R = (_wall*_wall/16 + _snap_in*_snap_in)/(2*_snap_in); _snap_in_R1 = _snap_in_R...
glb/cad_c3dbf4b2536a.glb
Create a pipe adapter consisting of two concentric collars connected by a conical transition section. Start by creating the first collar as a hollow cylinder with an inner diameter of 40mm, a wall thickness of 3mm, and a height of 20mm. Cut a rectangular slot out of this collar to create a tightening gap that is 2mm ...
innerDiameter1 = 40; innerDiameter2 = 57; collar1Length = 20; collar2Length = 20; collar1Thickness = 3; collar2Thickness = 3; distanceLength = 30; collar1TighteningGap = 1; collar1TighteningGapWidth = 2; collar1TighteningGapLength = 16; collar2TighteningGap = 1; collar2TighteningGapWidth = 2; collar2TighteningGapLengt...
glb/cad_d3aa15ee4348.glb
Create a Customizable X-End Upgrade Kit part by starting with a main rectangular block measuring 17mm by 39mm with a height of 58mm. At the bottom and top of the block, centered along the 39mm width, create two push-fit rod holes with a diameter of 7.8mm and a length of 55mm. These holes should feature a longitudinal...
use <bearing.scad> use <polyholes.scad> rod_distance = 45; TR_Int_Diameter = 10.2 ; TR_External_Diameter = 22 ; Screw_Pos_Diameter = 16 ; module x_end_base(){ height = 58; translate(v=[-15,-9,height/2]) cube(size = [17,39,height], center = true); vertical_bearing_base(); translate(v=[0,-17,0]) poly_cylinder(h = ...
glb/cad_25fb0170e844.glb
Create a Customizable X-End Upgrade Kit idler part. Start with a base block and subtract several cylindrical holes to create the internal geometry. Position a cylinder with a radius of 3.05mm and a height of 80mm, centered at [0, -22, 30.25] and rotated 90 degrees around the Y-axis. Add a second, smaller cylinder with ...
use <x-end.scad> module x_end_idler_holes(){ x_end_holes(); translate([0,3.5,0]){ translate(v=[0,-22,30.25]) rotate(a=[0,-90,0]) cylinder(h = 80, r=3.05, $fn=30); translate(v=[1.5,-22,30.25]) rotate(a=[0,-90,0]) cylinder(h = 10, r=5.5, $fn=30); translate(v=[-21.5,-22,30.25]) rotate(a=[0,-90,0]) rot...
glb/cad_c7fbe953119a.glb
Create a motor mount for a 3D printer X-axis end upgrade. Start with a base block measuring 17mm by 48mm by 53mm. Cut a central vertical shaft opening through the block. This opening is formed by a hexagonal prism with a radius of 17mm, from which three rectangular slots are removed: one measuring 60mm by 2mm by 10mm...
use <x-end.scad> module x_end_motor_base(){ x_end_base(); translate(v=[-15,31+2,26.5]) cube(size = [17,44+4,53], center = true); } module x_end_motor_holes(){ x_end_holes(); translate(v=[-1,32+4,30.25]){ translate(v=[-14,1-3,0]) cube(size = [10,46,22], center = true); hull(){ translate(v=[20,-15.5,-15...
glb/cad_21d2f7528be9.glb
Create a vertical bearing holder for an X-End upgrade kit. Start by creating a main body that is a combination of a cylinder and a rectangular block. The central core is a cylinder with a radius of 9.25mm and a height of 58mm. Surround this cylinder with a rectangular block centered on the cylinder, measuring 5.5mm in ...
use <polyholes.scad> bearing_diameter = 14.5; module horizontal_bearing_base(bearings=1){ translate(v=[0,0,6]) cube(size = [24,8+bearings*25,12], center = true); } module horizontal_bearing_holes(bearings=1){ cutter_lenght = 10+bearings*25; one_holder_lenght = 8+25; holder_lenght = 8+bearings*25; difference(){ ...
glb/cad_ca1b2d18fd7c.glb
Create a Y-Axis Table template for SC10UU pillow blocks. The model is a flat plate with a thickness of 2mm. Construct two identical rectangular pillow block mounts, each measuring 40mm wide by 35mm long. In each mount, create four circular holes with a diameter of 5.4mm. Position these holes symmetrically: two holes ...
RD = 98; RS = 10; NOF = 30; CH = 2; M5 = 5.4; PBW = 40; PBL = 35; PBC = PBW/2; PBHDW = 28; PBHDL = 21; PBSS = M5; MPBCD = 200; PBC(); module PBC() { translate([0,MPBCD/4,0]) PB(); translate([RD,0,0]) PB(); translate([RD,MPBCD/2,0]) PB(); translate([RD+PBC/2,PBL,0]) ...
glb/cad_9ddaa8785bec.glb
Create a customizable cylindrical container consisting of a base and a separate lid. For the base, create a solid cylinder with a radius of 10mm and a total height of 12.3mm. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a radius of 8mm and a height of 12.3mm, starting from a hei...
radius = 10; height = 10; wall = 2; tolerance = .3; module cylinder_box(r=radius, h=height, w=wall, tol=tolerance){ difference(){ cylinder(r=r,h=h+w+tol); translate([0,0,w])cylinder(r=r-w, h = h+w+2*tol); translate([0,0,h])cylinder_lid(r=r,w=w, tol = 0); translate([w,0,h])cylinder_lid(r=r,w=w, tol = 0); ...
glb/cad_c44fe08cdcd3.glb
Create a customizable fidget spinner with a height of 7mm. The body is formed by the union of three arms spaced equally at 120-degree intervals. Each arm is a hull created between a central circle and a satellite circle. The central circle has a diameter of 28.08mm, and each satellite circle has a diameter of 18.8mm, p...
outer_bearing_diameter_in_millimeter = 22.08; number_of_arms = 3; arm_length_in_millimeter = 35.0; spinner_height_in_millimeter = 7.0; satellite_option = "nut"; satellite_width_in_millimeter = 12.8; shell_thickness_in_millimeter = 3.0; spinner_h = spinner_height_in_millimeter; arms = number_of_arms; satellite_w ...
glb/cad_927ab4c88e81.glb
Create an Experimental Fretronics LeoStick Header/Bumper. Start by constructing a main rectangular base that is 12.7mm wide (5 units of 2.54mm), 33.02mm deep (13 units of 2.54mm), and 3mm high. Remove a central rectangular section from this base, measuring 7.62mm wide, 28.0mm deep, and 4mm high, to create a recessed ch...
$fn=50; headers(14); translate([2.54*6,0,0]) headers(14); difference() { translate([2.54/2,0,-2.5]) cube([2.54*5,2.54*13,3] ); translate([2.54*1.5,2.54,-3]) cube([2.54*3,2.54*11,4] ); } translate([-4.5,0,-2.5]) cube([2.54,2.54*13,2.54*5]); translate([-4,0,-2.5]) cube([2.54,2.54*13,4]); translate([-3,0,2.54*3...
glb/cad_9feeb3e9c70f.glb
Create an antenna coupler RF line spacer by constructing a hollow cylindrical disc with a height of 5mm. The outer boundary should be a circle with a diameter of 13.7mm, and the center should feature a concentric circular hole with a diameter of 4.12mm. Ensure the final geometry is a simple extruded ring with these pre...
inner_d=3.62; outer_d=13.2; object_h=5; inner_tol=+0.5; outer_tol=+0.5; linear_extrude(height=object_h)difference(){ circle(r=(outer_d+outer_tol)/2); circle(r=(inner_d+inner_tol)/2); }
glb/cad_3c8a6f84e108.glb
Create a Power Supply Cover with overall dimensions of 114mm width, 53mm height, and 50mm depth. The model is an open-top box consisting of a base and two side walls. The base is a flat plate 2mm thick. Create a grid of ventilation holes on this base: starting from x=12mm to x=104mm, and y=10mm to y=45mm, place circul...
module PerfX(x,yb,ye,zb,ze,gap){ for (yg=[yb:gap:ye]) for (zg=[zb:gap:ze]){ translate([x,yg,zg]) rotate(a=[0,90,0])cylinder(r=3,h=4,$fn=100); }} module PerfY(xb,xe,y,zb,ze,gap){ for (xg=[xb:gap:xe]) for (zg=[zb:gap:ze]){ translate([xg,y,zg]) rotate(a=[90,90,0])cylinder(r=3,h=4,$fn=100); }} module PerfZ(xb,xe,...
glb/cad_9d33bdd4e8bd.glb
Create a Hot Shoe Mount consisting of a base and a separate lockdown nut. For the mount, start with a central base formed by two intersecting rectangular prisms: one measuring 18.4mm x 18.5mm x 2.2mm and another measuring 18mm x 12.5mm x 2mm positioned 2mm above the center. Above this base, build a vertical stud compos...
include <Thread_Library.scad> include <shapes.scad> length=10; pitch=6; pitchRadius=8; module hotshoemount() { union() { cube([18.4,18.5,2.2],center=true); translate([0,0,2]){ cube([18,12.5,2],center=true); } translate([0,0,16]){ rotate(a=[00,0,0]){ cylinder(h=13,r=7.75); } } translate([0...
glb/cad_e3176f079293.glb
Create a camera case for an Eachine TX03 AIO camera. The main body is a rectangular sleeve with a base width of 23mm and a depth of 13mm, with walls 1.5mm thick. The sleeve is designed to hold a camera of 20mm width, 15mm height, and 8.25mm depth. The camera housing is tilted upwards at a 25-degree angle. The front o...
cam_width = 20; cam_height = 15; cam_depth = 8.25; lens_width = 13; lens_offset = 2; display_width = 8; display_offset = 2.5; powercable_width = 3.4; videocut_width = 4; videocut_depth = 1.5; videocable_width = 1.5; wall_size = 1.5; bottom_size = wall_size + videocut_depth; camera_angle = 25; full_width = cam_wi...
glb/cad_1c0d735288c4.glb
Create a skeet holder consisting of a long rectangular stem and a specialized mounting stub. Start by creating a main rectangular stem that is 55mm long, 6mm wide, and 6mm thick. At one end of this stem, add a small vertical rectangular lip that is 3mm wide, 6mm deep, and 8mm high. At the opposite end of the stem, cons...
$fn=50; stem (); stub (); module stem(){ cube ([55, 6, 6]); translate ([-4,-8,0]) cube ([4, 19, 6]); translate ([-10,-8,0]) cube ([10, 4, 6]); translate ([-12.75,-8,0]) cube ([4, 10, 6]); translate ([55,0,0]) cube ([3, 6,8]); } module stub (){ linear_extrude(height = 6, convexity = 10, twist = 0) hull (){ ...
glb/cad_cbd74e825262.glb
Create an inboard boat engine cover guide consisting of a flat base and a vertical riser. Start with a rectangular base measuring 83mm in length, 38mm in width, and 3.75mm in height. The base should have rounded corners with a 5mm diameter. Drill two 4mm diameter holes through the base: one positioned at (7, 21) and an...
baseLength=83; baseWidth=38; baseHeight=3.75; module coverBase() { baseRoundingDiameter = 5; l=baseLength - baseRoundingDiameter; w=baseWidth - baseRoundingDiameter; h=baseHeight; difference() { translate([baseRoundingDiameter/2,baseRoundingDiameter/2,-baseRoundingDiameter/2]) minkowski() { union() ...
glb/cad_9d40a90e050f.glb
Create an Arched Cube Top Hook designed as a wall-mounted holder. The main body is a thick, arched bracket with a uniform thickness of 8mm. Construct the base as a rectangular frame with rounded corners. The long horizontal section is 43mm long and 8mm thick. At one end, create a vertical wall that is 23mm wide and 8...
rotate ([90,0,33]) union () { thick = 8; translate([3.055,0,10.5]) rotate([0,-70,0]) cube([20,thick,3]); rotate([-90,180,0]) translate([-5,10,0])rotate_extrude(convexity=10,$fn=100,angle=20) translate([2,0,0]) square([3,thick],false); translate([3,0,0]) rotate([0,-90,0]) cube([10,thick,3]); rotate([-90,90,0]) transl...
glb/cad_2955d2515aec.glb