Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a motor shaft coupling consisting of a collar, a keyed shaft, and a flange. Start with a cylindrical collar that has an outer diameter of 24mm and a height of 10mm. Bore a central hole through the collar with a diameter of 8.3mm and a depth of 26mm, but modify this hole to have a flat side rather than being perf...
include <MCAD/units/metric.scad> include <MCAD/fasteners/nuts_and_bolts.scad> use <MCAD/shapes/polyhole.scad> use <MCAD/fasteners/threads.scad> collar_thickness = 10 * length_mm; collar_wall_thickness = 8 * length_mm; motor_shaft_dia = M8; motor_shaft_flat_dia = 7 * length_mm; motor_shaft_clearance = 0.15 * length_mm...
glb/cad_b58812db1d94.glb
Create a snap-fit Mendel Bed support. Start with a central hub that is a cylinder with a radius of 30mm and a height of 6mm. Subtract a small central hole with a radius of 1.5mm and four smaller holes positioned at 45-degree intervals at a radius of 15mm. From the hub, extend four spokes. Each spoke consists of a cen...
include <MCAD/Shapes.scad> layerHeight=0.35; thickness=6; explode = 0; runnerSep=150; centreHole=8; bearingRadius=11.15; hubRadius=30; hubHeight=thickness; numSpokes=4; angle=360/numSpokes; slotSize=8; sqrt2=sqrt(2); sqrt22=sqrt2/2; lbLen=24; lbDia=15; lbInner=8; numChannels = 5; module screwHole(){ cylinder(r=1.5,...
glb/cad_580f8f8d2b8c.glb
Create a snap-fit Mendel Bed support. Start with a central hub that is a cylinder with a radius of 30mm and a height of 10mm. Subtract a central vertical hole with a radius of 1.5mm. Around the hub, add four rectangular blocks, each 20mm by 30mm by 10mm, positioned 20mm from the center and rotated every 90 degrees. Fr...
include <MCAD/Shapes.scad> layerHeight=0.35; thickness=10; explode = 0; beltPitch = 2.5; runnerSep=150; centreHole=8; bearingRadius=11.15; hubRadius=30; hubHeight=thickness; numSpokes=4; angle=360/numSpokes; slotSize=8; sqrt2=sqrt(2); sqrt22=sqrt2/2; lbLen=24; lbDia=15; lbInner=8; numChannels = 5; module screwHole()...
glb/cad_47dd44b8585f.glb
Create a snap-fit Mendel Bed support. Start by constructing a central hub with a height of 12mm and a radius of 30mm. The hub features four rectangular blocks extending outwards, spaced every 90 degrees, and is modified with four circular cutouts of radius 21.4mm (hub radius divided by 1.4) centered on the hub's height...
include <MCAD/Shapes.scad> layerHeight=0.35; thickness=12; explode = 1; beltPitch = 2.5; clr=0.5; clampThickness=8; clampWidth=4; mirror([0,0,1])complete(); runnerSep=150; centreHole=8; bearingRadius=11.15; hubRadius=30; hubHeight=thickness; numSpokes=4; angle=360/numSpokes; slotSize=8; sqrt2=sqrt(2); sqrt22=sqrt2/...
glb/cad_15bc2e19d685.glb
Create a split pin set fastener consisting of a half-section of a flanged bushing. Start by creating a circular flange with a diameter of 7.5mm and a height of 1.0mm. In the center of this flange, create a vertical hole with a diameter of 2.75mm. Attached to the top of the flange, add a cylindrical bus with a diameter ...
$fn = 32; diskDiam = 7.5; diskHeight = 1.0; pinDiam = 2.0; pinHeight = 15.0; holeDiam = pinDiam + 0.75; busDiam = 4.5; busHeight = 5.0; slitWith = 0.75; module flange() { difference() { cylinder(d = diskDiam, h = diskHeight); translate([0, 0, -0.01]) cylinder(d = holeDiam, h = diskHeight + 0.0...
glb/cad_712dd035d7b7.glb
Create a Customizable Barrel Hinge Drilling Guide. Start by constructing a central rectangular block with a width of 15mm, a total length of 45.35mm, and a total height of 35.35mm. Through the center of this block, create a cylindrical hole with a diameter of 10.7mm and a depth of 15mm, oriented horizontally. The cente...
hole_diameter = 10.7; hole_depth = 15; side_to_hole = 30; back_to_hole = 7; lip_size = 10; edge_thickness = 5; guide_distance_past_hole = 10; guide_length = side_to_hole + (hole_diameter/2) + guide_distance_past_hole; guide_width = back_to_hole + (hole_diameter/2) + guide_distance_past_hole; total_guide_thickn...
glb/cad_f7d158a5d46d.glb
Create a chess pawn model using a low-facet resolution of 16 sides for all circular elements. Start by placing a sphere with a radius of 5mm centered at a height of 12mm. Below this, create a tapered neck using a cylinder 20mm tall, centered vertically, that transitions from a 5mm radius at the bottom to a 2mm radius a...
resolution=16; size=5; pawn(size, resolution); module pawn(s, res){ $fn=res; translate([0, 0, 12/5*s]) sphere(r=s); cylinder(h = s*4, r1 = s, r2 = 2/5*s, center = true); translate([0, 0, 7/5*s]) cylinder(h = 1/5*s, r=s); translate([0, 0, -2*s]) cylinder(h = 6/5*s, r1 = 7/5*s, r2 = s); translate([0, 0, -11/5*s]) cylinde...
glb/cad_e1ef74fd6776.glb
Create a molecular model component by starting with an oval prism that is 10mm thick, with a radius of 45mm along the x-axis and 60mm along the y-axis. From this base, remove six cylindrical holes, each with a radius of 10mm and a height of 12mm, positioned at the following coordinates: (x: -25, y: 0), (x: -25, y: 25),...
$fn=100; module oval_prism(height, rx, ry, center = false) { scale([1, rx/ry, 1]) cylinder(h=height, r=ry, center=center); } difference() { oval_prism(10,60,45); translate([-25,0,-1]) cylinder(r=10,h=12); translate([-25,25,-1]) cylinder(r=10,h=12); translate([-25,-25,-1]) cylinder(r=10,h=12); translate([25,0,-1...
glb/cad_2d46aae207d9.glb
Create a cylinder with a radius of 9mm and a height of 10mm.
$fn=100; cylinder(r=9,h=10);
glb/cad_ca0480007880.glb
Create an atomic bond connector by combining three geometric primitives. Start with two identical cylinders, each with a radius of 9mm and a height of 10mm, positioned at opposite ends of the model. Connect these two cylinders with a rectangular prism measuring 40mm in length, 9mm in width, and 5mm in height. Center th...
$fn=100; cylinder(r=9,h=10); translate([5,-4.5,0]) cube([40,9,5]); translate([50,0,0]) cylinder(r=9,h=10);
glb/cad_2ec0febd18e8.glb
Create a thin oval disc with a height of 10mm, a long radius of 60mm along the x-axis, and a short radius of 45mm along the y-axis. From this base, remove several cylindrical holes and rectangular slots to create a patterned cutout. Position six cylindrical holes with a radius of 10mm and a height of 12mm at the foll...
$fn=100; module oval_prism(height, rx, ry, center = false) { scale([1, rx/ry, 1]) cylinder(h=height, r=ry, center=center); } difference() { oval_prism(10,60,45); translate([-25,0,-1]) cylinder(r=10,h=12); translate([-25,25,-1]) cylinder(r=10,h=12); translate([-25,-25,-1]) cylinder(r=10,h=12); translate([25,0,-1...
glb/cad_c88f09de71bf.glb
Create a cylindrical disc with a radius of 20mm and a height of 10mm. Remove a smaller concentric cylinder from the center with a radius of 10mm and a height of 12mm, positioned so it extends slightly beyond the top and bottom faces. Finally, cut a rectangular notch out of the side of the disc by removing a block 13mm ...
$fn=100; difference() { cylinder(r=20,h=10); translate([0,0,-1]) cylinder(r=10,h=12); translate([-20,-5,5]) cube([13,10,6]); }
glb/cad_ffacda7890b1.glb
Create a fan size converter consisting of two parallel plates connected by a hollow transition tube. First, create a large base plate measuring 120mm x 120mm x 5mm with rounded corners (5mm radius). In this plate, center a circular hole with a radius of 57.5mm. Place four screw holes with a radius of 2.2mm, each offs...
$fn=150; hugefan_thickness=5; hugefan_size=120; hugefan_inner_radius=57.5; hugefan_screwholes_offset=5; hugefan_screwholes_radius=2.2; hugefan_radius=5; smallfan_thickness=5; smallfan_size=92; smallfan_inner_radius=43.5; smallfan_screwholes_offset=3.5; smallfan_radius=2.5; smallfan_screwholes_radius=2.2; remov...
glb/cad_fdc5d01d8663.glb
Create a KitchenAid to Milescraft adapter consisting of a square base and a cylindrical bit holder. Start by creating a square prism with a side length of 0.47 inches and a height of 11/16 inches. Apply chamfers to the vertical edges and the top corners of this square base to ease insertion. On top of this base, cente...
MM = 0.0393700787; circlefn = 100; cubeside = 0.47; cubeheight = 11/16; hexradius = 0.40; hexheight = 11.5*MM; holeradius = 3/16; holeheight = 9.5*MM; tapradius = 0.136/2; module taphole() { translate([0.1, 0, holeheight / 2]) rotate([0, 90, 0]) cylinder(r = tapradius, h = 0.5, $fn = circlefn); } module dodecago...
glb/cad_beb34d6580de.glb
Create a Downward Pointing Chicken Feeder Port with Awning. Start by modeling a tapered cylindrical container (the pail) with a bottom diameter of 266.4mm, a top diameter of 304.8mm, and a height of 368.3mm. The walls and bottom should be 2mm and 5mm thick respectively. On the side of this container, create a feeder p...
$fa = 3; feed_hole_size = 60; wall_thickness = 4; flange_width = 10; hole_dia = 4; pail_bottom_diameter = (10.5*25.4); pail_top_diameter = (12*25.4); pail_height = (14.5*25.4); pail_wall_thickness = 2; pail_bottom_thickness = 5; blank_size = feed_hole_size + wall_thickness * 2; flange_size = blank_size + flange_widt...
glb/cad_c4f94e9aff96.glb
Create two identical mounting brackets for a USB hub. Each bracket consists of a flat base with a thickness of 2mm. The main body of the bracket is a profile created by the hull of a circle with a diameter of 11.15mm and a larger circle with a diameter of 18mm, positioned 37.25mm apart from center to center. This profi...
mode = "both"; innerClearance = 0.15; smallDia = 11.15; largeDia = 18; totalDist = 37.25; wallThick = 2; usbZ=5; screwDia=3.47; screwHead=6.6; screwThick=5; module usbProfile() { hull(){ circle(d=smallDia,$fn=60); translate([totalDist - (smallDia/2 + largeDia/2),0]){ circle(d=largeDia,$fn=60); } ...
glb/cad_fb4eaa18ba76.glb
Create a Jagged Square Puzzle box with external dimensions of 62mm width, 62mm length, and 13mm height. The box consists of a base and four side walls, all with a wall thickness of 2mm. The base and the interior faces of the walls are perforated with a grid of square holes. To achieve this, create a pattern of square...
bw = 62; bl = 62; bh = 13; th = 2; jagged_square_with_hole(); module jagged_square() { intersection() { box_x(); cube([62,62,30],center=true); } } module jagged_square_with_hole() { intersection() { box_y(); cube([62,62,30],center=true); } } module box_x() { outline = [ [-1,3,0],[0,2,0],[1,1,0],[2,0,0...
glb/cad_96d781196ed4.glb
Create a Jagged Square Puzzle composed of five interlocking polyomino pieces, each built from cubes with a side length of 10mm. The overall assembly forms a jagged, diamond-like square shape that is 7 cubes wide at its center and 7 cubes tall. Construct the five pieces using the following cube coordinates (x, y, z), w...
view_ans_5(apuz_2); module picture2() { picture(); translate([-90,40,0]) view_hexominos(); translate([130,-5,0]) view_pentominos(); translate([-15,100,0]) view_t(); } module picture() { translate([-55,30,0]) view_ans_4x6(dpuz_1); translate([22,30,0]) view_ans_5(apuz_2); translate([-150,-60,0]) vi...
glb/cad_b3da4b51d3e2.glb
Create a two-part protective case for a 60mm by 37mm PCB. For the main body, create a rounded rectangular shell with external dimensions of 64.2mm by 41.2mm and a height of 8.1mm. The shell should have a wall thickness of 2.1mm and corner radii of 6.1mm. The interior should be hollowed out to a depth of 7.1mm with co...
include <lib/util.scad> mil = 25.4/1000; w = 60; h = 37; corner_r = 4; hole_ofs = 4; hole_r = 3.2/2; pcb_thk = 1.6; nut_d = 6.1 + 0.5; nut_h = 2.25; screw_d = 5.55 + 0.15; screw_h = 2.9 + 0.2; thk = 2.1; standoff_h = 1.5; standoff_thk = thk; top_h = 6; slack = 0.5; hole_slack = 0.2; module usb_mini_inner_profile(...
glb/cad_1b085f479a78.glb
Create a PDP-11/03 to H960 rack angle rail drilling jig. The model is rotationally symmetrical; construct one half and mirror it across the X-axis. For each half, start with a main rectangular plate measuring 44.45mm in length, 14.29mm in width, and 3.175mm in height. Centered on the top surface of this plate, add a c...
FACETS=120; $fn = FACETS; INCH = 25.4; ONE_EIGHTH = INCH/8; ONE_QUARTER = INCH/4; TOLERANCE = 0.1; H960SupportRailDrillingJig(); module H960SupportRailDrillingJig() { HalfJig(); mirror([1,0,0]) HalfJig(); Label(); } module HalfJig() { HalfMainPlate(); HalfSideBracket(); } module HalfMai...
glb/cad_c915b0702967.glb
Create a Tetris Block by starting with a solid rectangular prism measuring 50mm in width, 25mm in depth, and 50mm in height. To allow for connecting pins, remove four cylindrical holes, each with a radius of 4.5mm and a depth of 6.5mm. Position two holes on the top face, centered at coordinates (12.5, 12.5) and (37.5, ...
$fn=128; rad=9/2; d=6.5; module block(){ cube([50,25,50]); } difference(){ block(); hole(); translate([0,0,43.8]) hole(); translate([0,0,50]) rotate([0,90,0]) hole(); translate([43.8,0,50]) rotate([0,90,0]) hole(); } module hole(){ translate([0,0,-.2]){ translate([12.5,12.5,0]) cylinder(r=rad, h=d); translate([37....
glb/cad_9032b9feb1de.glb
Create a Tetris block consisting of a rectangular base and a smaller central cube. Start with a base rectangular prism measuring 75mm in length, 25mm in width, and 25mm in height, centered on the origin. Add a second cube measuring 25mm on all sides, positioned centrally on top of the base so its bottom face is flush w...
$fn=128; rad=9.5/2; d=6.5; module block(){ cube([75,25,25], center=true); translate([0,0,25]) cube([25,25,25], center=true); } difference(){ block(); translate([0,0,31.1]) hole(); translate([-25,0,6.1]) hole(); translate([25,0,6.1]) hole(); translate([0,0,-12.6]) hole(); translate([25,0,-12.6]) hole(); translate(...
glb/cad_ba64d44da2fd.glb
Create a custom cufflink consisting of a decorative face and a connecting shank. First, create the decorative face by generating text (such as "BMS") using a futuristic font. The letters should be extruded to a height of 6mm. To ensure the model is self-supporting, the letters must be extruded at a 45-degree angle an...
include <write/Write.scad> cufflink_text="BMS"; letters_size_scale = 10; stock_length = 17; font = "write/orbitron.dxf"; end_connector = "rounded" ; letters_size = letters_size_scale/10; module supportedLetters(text="ABC", theight=6) { invCos45 = 0.7071068; $fn=60; translate([0,-2,-1]) rotate([-90,0,...
glb/cad_43063a002e45.glb
Create a Kossel Mini carriage for an MGN12 linear rail. Start with a main rectangular body 27mm wide, 38mm long, and 6mm thick. Centered on the top face, add a rectangular extension for an endstop trigger measuring 2mm wide, 8mm long, and 6mm thick. At the rear, create two symmetrical mounting horns for ball joints. E...
extra_radius = 0.1; m3_nut_od = 6.1; m3_nut_radius = m3_nut_od/2 + 0.2 + extra_radius; m3_washer_radius = 3.5 + extra_radius; m3_major = 2.85; m3_radius = m3_major/2 + extra_radius; m3_wide_radius = m3_major/2 + extra_radius + 0.2; m3_head = 6; m3_head_radius = m3_head/2 + 0.2 + extra_radius; separation = 40; thick...
glb/cad_faa461154b5c.glb
Create a mounting bracket for a Harmony Remote Hub. The bracket consists of a flat rectangular base with two symmetrical arms that curve upward and inward to cradle a device measuring 127mm in width, 105mm in depth, and 21mm in height. The base and walls are 3mm thick. The main base plate extends from the center to su...
harmonyX = 127; harmonyY = 105; harmonyZ = 21; screwDia=3.6; screwHead=7; counterSink = 1; epsilon = 0.01; holderY = harmonyY * 0.75; wallThick = 3; wallGirth=20; hookLength=wallGirth*0.5; module harmony(){ color([0.5, 0.2, 0.2]){ translate([-harmonyX/2, wallThick, wallThick]){ cube([harmonyX, harm...
glb/cad_0c48d68c7a09.glb
Create a Gear Bearing planetary gear toy. The assembly consists of a ring gear, a sun gear, and six planet gears. Create an outer ring with a diameter of 60mm and a thickness of 12mm. The interior of the ring must feature herringbone gear teeth. On the outer face of the ring, emboss the text "12 SIDED-DIE" centered an...
include<Write.scad> D=60; T=12; tol=0.15; monogram_text = "12 SIDED-DIE"; text_values=[ ["1",1.3], ["2",1.3], ["3",1.3], ["4",1.3], ["5",1.3], ["6",1.3], ["7",1.3], ["8",1.3], ["9",1.3], ["10",.8], ["11",.8], ["12",.9] ]; text_spacing=.8; text_size=4.8; words_per_gea...
glb/cad_3309a7e8fd2f.glb
Create a parametric holder for an electric shaver consisting of a rectangular base plate and an attached elliptical ring. Start with a rectangular base plate measuring 40mm wide, 50mm long, and 5mm thick. Drill two countersunk holes through the plate, each with a 4mm diameter, positioned 5mm from the front and back edg...
baseX = 40; baseY = 50; baseDepth = 5; holderHeight = 10; holderX = 45; holderZ = 40; holderMeat = 7; holderOuterR = holderX/2 + holderMeat; holderOuterRZ = holderZ/2 + holderMeat; connectorX = 30; connectorY = holderHeight ; connectorZ = 15; holderOpening = 42; holeD = 4; holeOfs = 5; faska = 2; $fs=2; $fa=20; modul...
glb/cad_d45c849ef2b6.glb
Create an origami press for 75mm rectangular paper consisting of two identical square plates, each 75mm by 75mm with a thickness of 2mm. On the first plate, create a series of raised ridges that are 1mm wide and 2.5mm high. These ridges form a geometric pattern: one ridge runs horizontally through the center, and two...
size = 75; d = 1; deep=0.5; gap = 0.1; module base(){ cube([size,size,2]); } module line(d,l,deep){ hull(){ translate([-l/2,0,deep-d/2]) sphere(d=d); translate([l/2,0,deep-d/2]) sphere(d=d); translate([-l/2,0,d/2]) sphere(d=d); translate([l/2,0,d/2]) ...
glb/cad_40e552ac68a9.glb
Create a connector for round pattress boxes. The main body is a hollowed-out trapezoidal prism with a total height of 22mm. The outer profile of the base is a trapezoid with a long side of 11mm and a short side of 8.2mm, and a total length of 14.5mm. All vertical corners of the trapezoid should have a 1mm radius. The ...
trapez_breite_lang = 11; trapez_breite_kurz = 8.2; trapez_laenge = 14.5; hoehe_ohne_bund = 22; rundung = 1; bund = 1; bund_hoehe = 1.5; fase = 0.8; wandstaerke = 1.4; $fn=90; trapez = [[0+rundung,trapez_breite_lang/2-rundung], [trapez_laenge-rundung,trapez_breite_kurz/2-rundung], [trapez_laenge-rundung,-trape...
glb/cad_f4a0d1752ff0.glb
Create a TV Remote Holder with five slanted compartments. The overall structure is a wedge-shaped block with a flat base and a front face that is 32mm high, sloping upward to a back face that is 50mm high. The entire unit is tilted at a 75-degree angle from the horizontal. The walls and base of the holder are 3mm thic...
height_1=32; height_2=50; num_remotes=5; depth_1 = 10; width_1 = 40; depth_2 = 20; width_2 = 40; depth_3 = 25; width_3 = 50; depth_4 = 25; width_4 = 50; depth_5 = 25; width_5 = 57; depth_6 = 0; width_6 = 0; t=3; slant_angle = 75; L = (1+num_remotes)*t + depth_1 + depth_2 + depth_3 + depth_4 + depth_5 + depth...
glb/cad_2aaf397e00d5.glb
Create a Nanotube Based Container by constructing a wireframe lattice of connected cylinders and spheres. The structure is based on a repeating hexagonal pattern. First, define the vertices (atoms) using the provided coordinates, scaled up by a factor of 16. For every pair of connected vertices defined in the bonds l...
scale(16) difference() { union() { wire_frame(bonds_2,atoms,.5,.15,6); difference() { polyhedron(atoms,faces); scale(0.95) polyhedron(atoms,faces); } } translate([0,0,4.68]) cube([40,40,2],center=true); } module wire_frame(edges,points,rs,rb,fc) { for (i = [0:len(edges)-1]) { edge_test(edges[i],points,rb,fc); } } ...
glb/cad_ed412e547773.glb
Create a YACHT temperature tower consisting of a vertical stack of six identical segments, each 5mm in height. For each segment, start with a base shape that is a combination of a cylinder with a 10mm radius and a 10mm x 20mm rectangular block centered at the back, creating a semi-circular profile with a flat rear. C...
label_list = "190,195,200,205,210,215,220"; f_shape = 1; d_shape = 1; text_depth = 0.4; text_size = 3; text_font = "Helvetica:black"; $fn=32; rotation = -90; r=10; h=5; bridge=0.4; d = 2*r; eps1 = 0.01; eps2 = 2 * eps1; function strcat(v, sep="", str="", i=0, j=0) = i == len(v) ? str : j == len(v[i])-1...
glb/cad_d21416dba939.glb
Create an origami press for 75mm square paper consisting of two separate 75mm square plates. The first plate is a base with a thickness of 2.5mm. On its top surface, create a series of recessed grooves 1mm wide and 2mm deep. These grooves form a geometric pattern: one central line running from edge to edge, two diago...
size = 75; d = 1; deep=0.5; gap = 0.1; module base(){ cube([size,size,2]); } module line(d,l,deep){ hull(){ translate([-l/2,0,deep-d/2]) sphere(d=d); translate([l/2,0,deep-d/2]) sphere(d=d); translate([-l/2,0,d/2]) sphere(d=d); translate([l/2,0,d/2]) ...
glb/cad_a05858414bbc.glb
Create a DupliHood slide copy attachment consisting of a threaded tube and a spring-loaded slide holder. First, construct a hollow tube with a length of 125mm. The top of the tube should feature a male filter screw thread with a major diameter of 55mm and a pitch of 0.75mm, rotated 45 degrees to align the thread. The...
thread_diameter = 550; thread_pitch = 75; thread_tolerance = 100; thread_rotate = 45; tube_length = 125; film = "film6x6"; part = "exploded"; use <write/Write.scad> filmx=((film == "film6x6") ? 60 : 36); filmy=((film == "film6x6") ? 60 : 24); framex=((film == "film6x6") ? 70 : 50); framey=((film == "film6x6") ?...
glb/cad_e95d346535a7.glb
Create a Physical Litecoin Paperwallet Holder. Start with a rectangular base measuring 50mm wide, 25mm deep, and 5mm high. On top of this base, center a cylinder with a radius of 25mm and a height of 5mm. Inside this cylinder, create a concentric hollow circular channel by removing a cylinder with a radius of 21mm and ...
module litecoinlogo() { linear_extrude(file = "litecoin-L.dxf", height = 25, center = true, convexity = 100); } module litecoinfill() { linear_extrude(file = "litecoin-fill.dxf", height = 25, center = true, convexity = 100); } scale([0.75,0.75,1.1]) difference() { union() { color("lightgrey") cylinder(h=5,r=25, $fn...
glb/cad_1962b4fa979f.glb
Create a paper towel holder consisting of three symmetrical mounting components designed to hold a 16mm rod. Each component is based on a solid block with a total thickness of 15mm and a base thickness of 5mm. The main body of each piece is formed by a cylinder with a diameter of 27mm and a height of 5mm, merged with...
tube_d = 17; extra=5; h = 90; mount=20; mount_thick=5; thick_slot=15; thick_base=5; slot_angle = 45; translate([0, (mount+tube_d/2+extra+1), 0]) holder_left(); translate([h+tube_d/2+extra+mount_thick+2,0, 0]) rotate([0,0,180]) holder_middle(); translate([0, -(mount+tube_d/2+extra+1), 0]) holder_right(); module hol...
glb/cad_6d54a0defc06.glb
Create a base plate for a waterproof shelf by starting with a rectangular solid block measuring 44mm in width, 39mm in height, and 3.2mm in thickness. Centered on the top face of this block, remove a rectangular section 10mm wide and 32mm high, extending through the thickness of the flap to create a central groove. On ...
$fn=100; bh = 39; bw = 44; bt = 2.7+0.5; ft = 1.15+0.35; fh = 6.5; fw = 2; gh = 32; gw = 10; gt = ft; difference() { base(); groove(); } module groove() { translate([-gw/2,-gh/2]) linear_extrude(gt) square([gw,gh]); } module base() { translate([-bw/2,-bh/2]) linear_extrude(bt) square([bw,bh]); ...
glb/cad_751c18c6386b.glb
Create a parametric spool hub for a filament rack. Start by creating a main cylindrical body with a diameter of 36mm and a height of 1mm to serve as the base brim. On top of this base, add a concentric cylindrical ring with an outer diameter of 32mm and a height of 4mm. This ring should have a wall thickness of 1mm, cr...
hub_diameter=32; hub_height=4; shaft_diameter=9; wall_thickness=1; brim_width=2; hole_diameter=9; run(); module run() { $fn=24; difference() { body(); shaft(); holes(); } module body() { cylinder(d=hub_diameter+brim_width*2,h=wall_thickness); difference() { cylinder(d=hub_diameter,h=hub_height+wall_th...
glb/cad_61a9e97d607e.glb
Create a multi-spool filament rack consisting of three identical clips arranged in an equilateral triangle. Each clip is a short cylinder with a height of 8mm and an outer diameter of 16mm. Remove a central vertical hole from each cylinder with a diameter of 8mm to accommodate a rod. To allow the rods to be inserted, c...
$fn=48; diam=8; wall=8; height=8; length=100; foo=63; clips(); module clips() { for(i=[1:360/3:360]) { rotate([0,0,i]) clip(); } } module clip() { translate([0,foo,0]) { difference() { cylinder(d=diam+wall,h=height); translate([0,0,-wall/2]) cylinder(d=diam,h=height+wall); translate([0,(diam+wal...
glb/cad_67bc56a62dac.glb
Create a USB charger cover consisting of two separate components: a tapered spacer and a retaining ring. First, construct the spacer as a truncated cone with a height of 11mm. The base should have a diameter of 52mm, tapering upward to a top diameter of 42mm. Bore a centered cylindrical hole through the entire height...
part = "both"; bottom_diameter=52; top_diameter=42; hole_diameter=30; height=11; cavity="yes"; cavity_diameter=37; cavity_height=7; ring_height=4; ring_hole=23.5; ring_cavity_diameter=25.5; ring_cavity_height=2; faces=64; print_part(); module print_part() { if (part == "distance") { distance_part(); }...
glb/cad_432dc2174d42.glb
Create a portable RGBW lamp base by starting with a solid cylinder 134mm in diameter and 4mm high. On top of this base, add a larger cylindrical wall with an outer radius of 67mm and a height of 15mm, but hollow out the center by removing a cylinder with a radius of 63mm and a height of 17mm, starting from 3mm above th...
$fn=100; cylinder(r=67,h=4); difference() { translate([0,0,4]) cylinder(r=67,h=15); translate([0,0,3]) cylinder(r=63,h=17); rotate([7.5,270,0]) translate([9.5,0,62]) cylinder(r=2,h=6); rotate([-7.5,270,0]) translate([9.5,0,62]) cylinder(r=2,h=6); rotate([-30,270,0]) translate([9.5,0,62]) cylinder(r=2,h=6); rotate...
glb/cad_a693da012096.glb
Create a portable RGBW lamp base starting with a main circular disk with a radius of 67mm and a height of 4mm. On the top surface of this disk, add two symmetrical attachment lugs. Each lug consists of a cylinder with a radius of 7.5mm and a height of 7.5mm, oriented horizontally, connected to the base by a rectangular...
$fn=100; difference() { union() { cylinder(r=67,h=4); translate([20,54,11.5]) rotate([0,90,0]) cylinder(r=7.5,h=7.5); translate([20,46.5,0]) cube([7.5,15,11.5]); translate([-27.5,54,11.5]) rotate([0,90,0]) cylinder(r=7.5,h=7.5); translate([-27.5,46.5,0]) cube([7.5,15,11.5]); } translate([25,54,11.5]) ...
glb/cad_5dd16663ff09.glb
Create a portable RGBW lamp housing consisting of a main circular ring with a circular cross-section. The ring is centered at [0,0,5] with a major radius of 45mm and a circular profile radius of 5mm. Cut two rectangular slots into the ring, each 22.5mm wide and 17.5mm deep, positioned symmetrically at the front and bac...
$fn=100; difference() { union() { difference() { translate([0,0,5]) rotate_extrude(convexity = 10) translate([45, 0, 0]) square ([12.5,15],center = true); translate([-11.25,35,-3.5]) cube([22.5,17.5,17]); translate([-11.25,-53,-3.5]) cube([22.5,17.5,17]); } translate([11.25,56.5,5]) rotate([0,90,0]) c...
glb/cad_3419e8b6f1cc.glb
Create a portable RGBW lamp housing. Start by constructing a main cylindrical body with an outer radius of 22mm and a height of 15mm. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a radius of 19mm and a height of 17mm, leaving a wall thickness of 3mm. On the exterior of the cyl...
$fn=100; difference() { cylinder(r=22,h=2); translate([5,5,-1]) cylinder(r=2,h=4); translate([-5,5,-1]) cylinder(r=2,h=4); translate([-5,-5,-1]) cylinder(r=2,h=4); translate([5,-5,-1]) cylinder(r=2,h=4); } difference() { union() { difference() { cylinder(r=22,h=15); translate([0,0,-1]) cylinder(r=19,h=17)...
glb/cad_50d3a9187d12.glb
Create a portable RGBW lamp housing. Start by constructing a main ring with a square cross-section of 12.5mm by 15mm, centered at a radius of 30mm from the origin and positioned 5mm above the base plane. Cut a rectangular section out of the front of this ring using a block measuring 7.5mm by 20mm by 17mm, centered on t...
$fn=100; difference() { union() { difference() { translate([0,0,5]) rotate_extrude(convexity = 10) translate([30, 0, 0]) square ([12.5,15],center = true); translate([-3.75,19.5,-3.5]) cube([7.5,20,17]); } translate([3.75,44,5]) rotate([0,90,0]) cylinder(r=7.5,h=7.5); translate([3.75,28,12.5]) rotate([0,...
glb/cad_76ce55cbdc37.glb
Create a Descent Card Box consisting of a base, a lid, and a divider. All walls and surfaces have a thickness of 1mm, and corners are rounded with a radius of 3mm. Construct the base as a rounded rectangular tray with outer dimensions of 66mm by 43mm and a height of 7mm. The interior is hollowed out, leaving a 1mm wal...
part = 0; CardType = "class"; CutWindow = 1; CutLabel = 1; CustomHeight = 64; CustomWidth = 41; CustomThickness = 5; CustomWindowX = 30; CustomWindowY = 30; CustomWindowOffset = 4; CustomLabelX = 5; CustomLabelY = 25; CustomLabelOffset = -18; t = 1; Margin = 2; Overhang = 5; Roundness = 3; gap = 0.5; ClassS...
glb/cad_aa824d2659e5.glb
Create a Ferrite transformer case designed to house a 70mm outer diameter by 40mm high core. Construct the main body as a cylinder with a radius of 42mm and a height of 26mm. Create a central hollow cavity by removing a cylinder with a radius of 37.5mm and a height of 40mm, starting from a height of 5mm. Add a smalle...
Deltax=9.150; Deltay=9.150; SOxcen=0; SOycen=13; union() { difference() { union() { rotate([0,0,0]) translate([0,0,0]) cylinder(r1=42, r2=42, h=26, $fn=40); rotate([0,0,0]) translate([0,0,26]) cylinder(r1=39,r2=38, h=3, $fn=48); } rotate([0,0,0]) translate([0,0,-1.0]) cylinder(r1=3...
glb/cad_943a74610f01.glb
Create a Sun Ray Chakra base by constructing a shallow cylinder with an outer radius of 63mm, a height of 6mm, and a high facet resolution for smoothness. Remove a concentric cylindrical core with a radius of 61mm and a height of 8mm, centered on the base, to create a thin ring. Add a solid circular cap to the bottom...
inner_radius=61; outter_radius=63; length=6; cap_length=2; circle=528; difference(){ cylinder(r=outter_radius,h=length,$fn=circle); translate([0,0,-1])cylinder(r=inner_radius,h=length+2,$fn=circle); } if (cap_length>0){ difference(){ translate([0,0,0])cylinder(r=outter_radius,h=cap_length,...
glb/cad_12508eb0de18.glb
Create a Sun Ray Chakra coil frame by constructing a hollow cylinder with an outer radius of 34mm, an inner radius of 32mm, and a total height of 44mm. Close the bottom of the cylinder with a 4mm thick solid base that has a central hole of 22mm radius. Along the outer wall of the cylinder, create a series of decorativ...
inner_radius=32; outter_radius=34; length=44; cap_length=4; circle=528; difference(){ cylinder(r=outter_radius,h=length,$fn=circle); translate([0,0,-1])cylinder(r=inner_radius,h=length+2,$fn=circle); r = outter_radius+4; step = 360/36; translate([0,0,8]){ for (i=[0:step:359]) {...
glb/cad_a2d30ad985ea.glb
Create a parameterizable soap dish consisting of a base and four supporting ridges. The base is a rounded, bowl-like shape formed by rotating a specific cross-section. This cross-section starts at a point, extends to 32.5mm horizontally, rises to 23mm, and then slopes back down to 9mm, creating a base with a maximum di...
bigDia = 65; bigLength = 120; topDia = 58; baseHeight = 18; module crosSectionBase(){ polygon([[0, 0],[32.5, 0],[29, 21],[27.5, 23],[24, 22],[20, 17],[11.85, 13],[6.6, 10],[0, 9]]); } module quarterBase(){ translate([0, (bigLength-bigDia)/2, 0]){ rotate_extrude(angle=90, convexity=2){ crosSectionBase...
glb/cad_bf396666f4ae.glb
Create a PSU bracket for a printer enclosure. The main body is a thick-walled L-shaped frame with a total height of 195mm. One side of the bracket is designed to fit around a square leg with a width of 51mm. The other side forms a cradle to hold a power supply unit with dimensions of 48.4mm by 106mm. The walls of the ...
$fn=18; extrusion_width = .5; clearance = 0.5; leg_s = 50.5 + clearance; psu_l = 236 + clearance; bracket_h = 195; psu_w = 47.9 + clearance; psu_d = 105.5 + clearance; wall = extrusion_width*8; tab_l = 25; tray_d = 25; screw_bore = 4; difference() { union() { frame(); intersection() { frame(honey=true); tra...
glb/cad_b08ef5d45bd8.glb
Create a Patty Sausage Cutting Template designed to hold a sausage package with a diameter of 65mm and a total length of 155mm. Start by creating a hexagonal prism with a diameter of 79mm (65mm plus 8mm wall thickness on each side) and a length of 171mm. Flatten one side of the prism to create a flat base. Hollow out...
sausagePackageLength=155; sausagePackageDia=65; numberOfPatties=8; cutAlignmentSlotWidth=3; curvedEndLength=18; module endCustomizerVars() { } cutAlignmentSlotHeight=10; sausagePackageRadius=sausagePackageDia/2; sausagePackageCrossArea=PI*sausagePackageRadius*sausagePackageRadius; curvedEndVolume=(2/3)*sausagePa...
glb/cad_107ea5e4751d.glb
Create a scope cover by starting with a main outer cylinder that has a radius of 21mm and a height of 8mm. Hollow out the center of this cylinder by removing a smaller cylinder with a radius of 20mm and a height of 8mm, starting from a height of 1mm from the base, to create a thin-walled ring. On opposite sides of the ...
$fn=100; difference(){ cylinder(r=21,h=8); translate([0,0,1])cylinder(r=20,h=8); } difference(){ translate([0,23,0])cylinder(r=2.5,h=8); translate([0,23,0])cylinder(r=1.5,h=8); } difference(){ translate([0,-23,0])cylinder(r=2.5,h=8); translate([0,-23,0])cylinder(r=1.5,h=8); } translate([2,-21,4])cube([2,2,8], cen...
glb/cad_516f7db4d47d.glb
Create a NanoBeam Gen2 Cover by starting with a primary dome shape. Form this by taking a sphere with a diameter of 190mm and resizing it to 190mm wide, 190mm deep, and 60mm high. Remove the bottom section of this dome using a cylinder with a diameter of 191mm and a height of 40mm, centered vertically. Further refine t...
difference(){ union() { difference(){ resize(newsize=[190,190,60]) sphere(d=190, $fn=100); translate([0,0,-1])cylinder(h=40, d=191, $fn=100); translate([119.5,0,0])color("red", 1.0)cube([190,190,62], true); translate([-119.5,0,0])color("blue", 1.0)cube([190,190,62...
glb/cad_52ef40b7c8c3.glb
Create a headset glasses adapter by constructing a hollow cylindrical sleeve with a flat side. Start with a cylinder that has an outer diameter of 8mm and an inner diameter of 5mm, extending it to a height of 20mm. To create the flat profile, remove a rectangular section from the side of the cylinder that is 2mm wide a...
inner_diameter = 5.0; outer_diameter = 8.0; thickness_facemount = 2.0; height_facemount = 20.0; len_facemount = 20.0; $fn=120 * 1; linear_extrude( len_facemount ) { difference() { translate([-inner_diameter/2, 0]) circle( d=outer_diameter, center=true ); translate([-inner_diameter/2, 0]) circle( d=inn...
glb/cad_10fbf1cbed71.glb
Create a 3D model of a wing section based on a NACA 0012 airfoil profile. The profile should have a chord length of 60mm. Extrude this airfoil shape linearly to a total thickness of 50mm, centering the extrusion so that the profile is centered on the origin. The resulting geometry should be a solid, aerodynamic slab wi...
GenNACA(name="NACA0012", cuerda=60, extrucion=50); module GenNACA(name="NACA0012", cuerda=10, extrucion=0.1){ assert((str(name[0],name[1],name[2],name[3])=="NACA" && len(name)==8), "Airfoil name must have NACA und 4 digits"); linear_extrude(height = extrucion, center = true, convexity = 20) polygon(points=cuerda...
glb/cad_91962b126253.glb
Create an Arduino Mega 2560 single frame mount clamp. Start with a rectangular base plate measuring 122.16mm by 61.2mm (calculated from $4 \times 25.4 + 20$ and $55.2 + 2 \times 2$) with a thickness of 10mm (4mm base + 6mm frame thickness). Cut a central rectangular opening of 122.16mm by 55.2mm, leaving a 4mm base f...
marco_ancho=55.2; marco_grosor=6.0; tie_width=3; tie_height=1.5; mega_xsize=4.0*25.4+20; espaciador_alto=4.0; clip_ancho=2.0; grosor_base=4.0; m3_alto=2.4; m3_diametro=6.01; m3_agujero=3.6; ancho_bandas=10.0; esquina=2; hole1=[0.550*25.4-mega_xsize*0.5, -0.100*25.4+marco_ancho*0.5,-1]; hole2=[0.600*25.4-mega_x...
glb/cad_20cd57eaba17.glb
Create a Gersung switch holder for MakeBlock by starting with a rectangular base plate measuring 40mm in width, 24mm in depth, and 4mm in height. Remove material from this plate to create several cylindrical holes. First, create four switch mounting holes with a radius of 1.55mm, positioned at the corners of a rectan...
holes_step_by_x = 8; holes_step_by_y = 8; plate_height = 4; holes_shift_x = 4; holes_shift_y = 4; holes_radius = 2.05; module holes(holes_by_x, holes_by_y, step_by_x, step_by_y) { for (j = [0 : holes_by_x]) { for ( i = [0 : holes_by_y] ) { translate([holes_shift_x + j*step_by_x, holes_shift_y + i*step_by_y, -1...
glb/cad_21e39effedad.glb
Create a Gersung switch holder for MakeBlock by starting with a rectangular base plate measuring 40mm in width, 24mm in depth, and 4mm in height. From this base, remove several cylindrical holes of varying sizes and positions to create mounting points. First, create four switch mount holes with a radius of 1.55mm. Pos...
holes_step_by_x = 8; holes_step_by_y = 8; plate_height = 4; holes_shift_x = 4; holes_shift_y = 4; holes_radius = 2.05; module holes(holes_by_x, holes_by_y, step_by_x, step_by_y) { for (j = [0 : holes_by_x]) { for ( i = [0 : holes_by_y] ) { translate([holes_shift_x + j*step_by_x, holes_shift_y + i*step_by_y, -1...
glb/cad_7b848429ddd4.glb
Create a GoPro mount for a 30mm wide extrusion profile. Start with a base bracket that is 45mm wide, 30mm deep, and 4mm thick, featuring rounded corners with a 3mm radius. On the underside of this bracket, center a rectangular ridge that is 45mm wide and 10.2mm deep with a thickness of 1mm to fit into the extrusion slo...
extrusion_width = 30; slot_mount = 1; mount_height = 4; bracket_width = 45; bracket_thickness = 4; bracket_corner_radius = 3; mount_hole_diameter = 4; mount_hole_distance = 32; rotate_gopro_nut = 90; $fn=120; gopro_size = 15; slot_width = (extrusion_width == 30) ? 10.2 : 7; slot_thickness = (extrusion_width ...
glb/cad_4aac9c2194df.glb
Create a NEMA 17 Stepper Motor placeholder. The main body is a rectangular prism with a width of 42.3mm, a depth of 34mm, and a height of 40mm. The vertical edges of the body should be slightly rounded. On the top face, center a circular raised collar with a diameter of 22mm and a height of 1mm. In the center of this ...
epsilon = 0.01; NEMA17_lengths = [ 34, 36, 40, 42, 47, 48, 60, ]; NEMA17_mat_metal = [.8, .8, .8]; NEMA17_mat_body = [.2, .2, .2]; NEMA17_mat_plastic = [.95, .95, .95]; NEMA17_mat_gold = [0.83, 0.67, 0.22]; NEMA17_testNema17(); module NEMA17_testNema17() { NEMA17_Steppe...
glb/cad_7a67da882619.glb
Create a garden plant label by starting with a rectangular base that is 120mm long, 20mm wide, and 2mm thick. At the end of this rectangle, add a triangular prism with a height of 2mm and a diameter of 23.5mm, using only three facets to create a pointed tip. On the flat top surface of the rectangular section, add the w...
length=120; width=20; translate([-1,-5,0]){ cube ([length ,width,2]); translate([5+length,10,0]){ cylinder (h=2, d=23.5, $fn=3); }} linear_extrude(height = 7) { text("Friendship", font = "Liberation Sans", size = 12, direction = "ltr", spacing = 1, $fn=50 );}
glb/cad_1cff12fa0763.glb
Create a pen holder plotter mount. Start with a main rectangular base plate measuring 43mm by 43mm with a thickness of 10mm. Hollow out the center of this plate to create a square frame with a wall thickness of 1mm. At one corner of this frame, remove a small 6mm square section from the outer edge. Attached to the sid...
rand = 1; blok = 41; hoogte = 10; geleuf = 6; geleuf_offs = 5; schroefgat = 2.5; schroefgatDikte = 2; schroefgatHoogte = 3; $fn = 180; pengat=10; diktePengat = 3; hoogtePenGat = 10; x_offs = 10; lengteschuin = 25; halfPengat = (pengat+2*diktePengat)/2; module schroefgat(positiveShape=true) { rotate ([0,-90,0]) { ...
glb/cad_853c86f3d53b.glb
Create a Folding Propeller Hub. Start with a central rectangular block that is 30mm wide (calculated as 2 * 12mm pin radius + 6mm hub diameter) and 14mm tall (2 * 7mm hinge width). Center a vertical cylindrical hole with a 5mm diameter through the entire height of the block to accommodate the motor shaft. From the sid...
SpinHPinRad = 12; SpinPinD = 2; SpinHubD = 6; SpinHL = 7; shaftDia = 5; cleanUp = 0.1; spinnerMount="yes"; easyPrintSupport = "yes"; spinMountScrewDia = 1; mountThickness = 3; spinBaseRad_vs_SpinHPinRad = 1; screwDist_vs_spinBaseRad = 0.8; spinLenRatio = 2; spinBaseRad = SpinHPinRad*spinBaseRad_vs_SpinHPinRad;...
glb/cad_c30b7ef72f51.glb
Create a keyboard replacement foot with a total height of 14.2mm. Start with a central cylinder of 8.9mm diameter and 14.2mm height. Subtract a concentric bore with a diameter of 4.8mm running through the full height. Attached to the side of this cylinder, create a main body with a height of 14.2mm. The profile of th...
width = 14.2; diameter_of_main_cylinder = 8.9; diameter_of_bore = 4.8; offset=1.4; $fn=90; difference() { union() { cylinder(r=diameter_of_main_cylinder/2,h=width); rotate([0,0,-90]) korpus(); } cylinder(r=diameter_of_bore/2,h=width); trapez(); translate([0,0,width-3.3]) trapez(); einkerbung(0); einker...
glb/cad_aaeef869e736.glb
Create a fan shroud for a 360mm radiator with a total height of 25mm and a wall thickness of 2.3mm. The overall footprint is a rectangular base measuring 360mm in length and 120mm in width. The main body consists of three adjacent circular chambers, each designed for a 120mm fan. Create these by subtracting three cyli...
width1 = 93.8; width2 = 119.0; l2 = 65.33; l3 = 30; l4 = 15; l5 = 90; l6 = (l5 - l2)/2; ytotal = 360; fand = 117; fansize = 120; h = 25; thick = 2.3; radw = 128; holepos = 105; holed = 4; platethick = 2; liph = 0.8; module hexa() { hull(){ translate([0, 0]) square([l6, width1]); translate([l6, -(wi...
glb/cad_a74e10e6b029.glb
Create a Kermi compatible distance piece with a total length of 49mm. The main body is a hexagonal prism with a flat-to-flat width of 13mm. At the base of this prism, add a circular flange with a diameter of 25mm and a thickness of 2.5mm. The center of the entire object is bored through with a vertical hole 10.1mm in...
use <threadlib/threadlib.scad> gesamtlaenge = 49; schluesselweite = 13; turns = 20; $fn=90; type = "M10"; Print_setting="full_part"; Douter = thread_specs(str(type, "-int"))[2] * 1.2; if (Print_setting == "full_part") { main_part(); } if (Print_setting == "look_inside") { intersection() { translate([0...
glb/cad_aec45d9c0933.glb
Create an oven shield for child safety consisting of a protective dial cover and an attached handle grip. Start by creating a hollow semi-cylindrical shield with an outer diameter of 40.7mm and a thickness of 3.7mm, extending to a length of 37mm. The interior of this shield should be a void with a radius of 21.1mm. At...
dial_diameter = 37; dial_thickness = 18; handle_diameter = 20.7; handle_distance_from_front = 27.9; handle_distance_from_dial = 47; handle_embedding_depth = 1.1; handle_embedding_sides = 1.1; rod_diameter = 10; $fs=.1; $fa=5; translate([0,0,0]) rotate([0,0,90]) oven_shield(); dial_rad = sqrt(pow(dial_diameter/2, 2...
glb/cad_afd082682185.glb
Create a custom plaque nameplate by starting with a rectangular base measuring 89mm wide, 32mm high, and 2mm deep. Hollow out the face of the rectangle by removing a smaller rectangular section 87mm wide and 30mm high, leaving a 1mm border around the top and sides. Drill two circular holes with a radius of 2mm through ...
use <write/Write.scad> build_plate_selector = 1; line_1 = "John Doe"; line_3 = "2005-2006"; plate_height = 32; plate_width = 89; plate_depth = 2; text_size1 = 8; text_size2 = 6; intend = plate_width/2; rad1 = plate_height-(plate_height/3.45) ; rad2 = plate_height/2; rad3 = plate_height-(plate_height/1.45) ; screw =...
glb/cad_7ac1b4d2e89e.glb
Create a sliding tool for measurement consisting of a base guide and a sliding bar. Start by creating a flat base plate with a total length of 25mm plus a small extension, a thickness of 3mm, and rounded corners with a radius of 3mm. The base features a central rectangular cutout that is 25mm long and 2mm high, leaving...
long=25; h1=1; margemax=1; h2=h1+margemax; ep=3; barlarg=long/9; linear_extrude(height=ep){ difference(){ union(){ minkowski(){ polygon(points=[[0,0],[long,0],[long+barlarg,0],[long+barlarg,h2],[long,h2],[0,h1]]); circle(r=ep,$fn=80); } for(i=[0:9]){ translate([-cranlarg/2+i*long/9,0,0])square(size=[cranlarg,margemax*i...
glb/cad_52c2d378ac4a.glb
Create a Tube Socket consisting of a cylindrical main body and a flat mounting base. The main body is a cylinder with a radius of 17mm and a total height of 15mm. The mounting base is 5mm thick and is formed by the convex hull of a central cylinder with a 17mm radius and two smaller cylinders with 5mm radii positioned ...
sh = 15; sr = 34/2; pr = 3/2; pn = 8; pd = 17/2; cr = 8/2; ns = 2; np = 90+22.5; nd = cr; fr = 10; fd = 77; fh = 5; fhr = 4/2; $fs = 0.5; difference() { union() { hull() { translate([fd/2,0,0]) cylinder(fh,fr/2,fr/2); translate([0,0,0]) cylinder(fh,sr,sr); translate([-fd/2,0,0]) cylinder(fh,...
glb/cad_1f968758a1d8.glb
Create a Eurorack modular synthesizer module panel. Start with a rectangular plate measuring 20.28mm wide (4 HP), 128.5mm high, and 2.5mm thick. On the front face of the plate, center a vertical row of six circular jack holes. Position three holes starting 23mm from the bottom, spaced 15mm apart, and three holes start...
use <plate.scad> use <../library/logo.scad> use <Write.scad> HP = 5.07; HEIGHT = 128.5; THICKNESS = 2.5; WIDTH_HP = 4; CENTER_HP = WIDTH_HP/2; PCB_MOUNTING_HOLES_DISTANCE = 76; PCB_MOUNTING_HOLES_R = 1; PCB_MOUNTING_HOLES_FROM_BOTTOM = 5; HOLDER_HEIGHT = 25; PCB_EXTRA_HEIGHT = 2; PCB_HOLE_DISTANCE = 16; JACK_DIST...
glb/cad_f17cc148aa2b.glb
Create a Eurorack modular synthesizer module panel. Start with a main rectangular plate that is 60.84mm wide (12 HP) and 128.5mm high, with a thickness of 2.5mm. On the front face, create a series of holes for components. Position eight jack holes with a radius of 3.25mm, starting at a height of 21mm and spaced 12.3m...
use <plate.scad> use <../library/logo.scad> use <Write.scad> HP = 5.07; HEIGHT = 128.5; THICKNESS = 2.5; WIDTH_HP = 12; CENTER_HP = WIDTH_HP/2; ROW_1_HP = 3; ROW_2_HP = 9; POT_ROW_HP = 6; PCB_MOUNTING_HOLES_R = 1.5; PCB_MOUNTING_R = 3; HOLDER_HEIGHT = 25; PCB_MOUNTING_HEIGHT = 8; ARDUINO_WIDTH = 52; ARDUINO_OFFSE...
glb/cad_da6b3a846e33.glb
Create a Eurorack modular synthesizer module panel. Start with a rectangular plate that is 20.28mm wide (4 HP), 128.5mm high, and 2.5mm thick. On the front face of the plate, create a series of eight circular jack holes. Each hole consists of a primary outer cylinder with a radius of 3.25mm and a smaller inner concen...
use <plate.scad> use <../library/logo.scad> use <Write.scad> HP = 5.07; HEIGHT = 128.5; THICKNESS = 2.5; WIDTH_HP = 4; CENTER_HP = WIDTH_HP/2; PCB_MOUNTING_HOLES_DISTANCE = 76; PCB_MOUNTING_HOLES_R = 1; PCB_MOUNTING_HOLES_FROM_BOTTOM = 5; HOLDER_HEIGHT = 25; PCB_EXTRA_HEIGHT = 2; PCB_HOLE_DISTANCE = 16; JACK_DIST...
glb/cad_6654c46300e6.glb
Create a Eurorack modular synthesizer panel with a total width of 30.42mm (6 HP) and a height of 128.5mm. The panel thickness is 2.5mm. Center a series of holes along the vertical axis of the panel. First, create two jack holes with a radius of 3.25mm, positioned 15mm apart, starting 23mm from the bottom. Above these,...
use <plate.scad> use <../library/logo.scad> use <Write.scad> HP = 5.07; HEIGHT = 128.5; THICKNESS = 2.5; WIDTH_HP = 6; CENTER_HP = WIDTH_HP/2; PCB_MOUNTING_HOLES_DISTANCE = 66; PCB_MOUNTING_HOLES_R = 1; PCB_MOUNTING_HOLES_FROM_BOTTOM = 5; HOLDER_HEIGHT = 25; PCB_EXTRA_HEIGHT = 2; PCB_HOLE_DISTANCE = 26; module po...
glb/cad_d26f489c39d6.glb
Create a rectangular plate for a Eurorack modular synthesizer module with a width of 40.56mm, a height of 128.5mm, and a thickness of 2mm. At the four corners of the plate, create circular holes with a radius of 1.7mm. Each hole should be positioned 7.605mm from the side edges and 2.5mm from the top and bottom edges. T...
HP = 5.07; HEIGHT = 128.5; THICKNESS = 2; HP_UNITS = 8; WIDTH = HP_UNITS * HP; HOLE_R = 1.7; HOLE_FROM_SIDE = 1.5 * HP; HOLE_FROM_TOP = 2.5; module plate(width=WIDTH, hole_from_side=HOLE_FROM_SIDE, thickness=THICKNESS) { difference() { cube([width, HEIGHT, thickness]); translate([hole_from_side, HOLE_FROM_TOP, -...
glb/cad_601208d3dc8d.glb
Create a 1U cable guide with a total footprint of 103mm x 88mm x 43mm. First, construct the rack mounting bracket. Create a rectangular block 15.875mm wide, 43mm high, and 5mm deep. In this block, create three oblong slots for screws, spaced 15.875mm apart center-to-center. Next, build the main cable guide body. The...
$fn = 100 ; Hauteur_1U = 43; Largeur_1U = 15.875; Entraxe = 15.875; Profondeur_1U = 5; InnerLengthX = 75; assert(30 <= InnerLengthX && InnerLengthX <= 150); SpacingTwistedHole = 7; assert(1 <= SpacingTwistedHole && SpacingTwistedHole <= 7); WallThickness = 7; assert(5 <= WallThickness && Wall...
glb/cad_7123494cd030.glb
Create a single segment of a flexible hose joint. Start by creating a hollow sphere with an outer radius of 8mm and a wall thickness of 1mm. To form the socket, truncate the top of this sphere by removing the portion above a height of 0.7mm from the center. Inside this hollow sphere, place a smaller concentric sphere w...
$fn=48; r=7; t=1; h = 0.7; d= 0.3; neck = 0.3; tube(r,t,h,neck,d); module tube(r,t,u,l1,l2) { trunc_r = r*sqrt(1-u*u); cone_h = (r+t)/l1 - (r+t)*l1; cone_r = (r+t)*sqrt(1-l1*l1); cone_factor = trunc_r/cone_r; zscale = r/(r+t); p = ((r+t)*l1+cone_h*(1-cone_factor))*zscale+r*u; union() { scale([...
glb/cad_5a6cae8f6fa5.glb
Create a food processor pusher consisting of two concentric cylindrical rings of different heights and widths. The overall outer diameter is 162mm. First, create a top ring with a height of 2mm and a wall thickness of 5mm. This ring is formed by taking a cylinder with a 162mm diameter and subtracting a concentric inn...
OD = 162.0; rise = 2; risewidth = 5; riseheight = 33; fall = 3; fallwidth = 3; fallheight = 25; medfn = 180; module roundendrise () { intersection () { union () { translate ([0,0,0]) cylinder (d=OD,h = rise, $fn = medfn); } translate ([OD/2,0,0]) { cylinder ( d=ris...
glb/cad_4ae1e7b9f292.glb
Create a train track splitter part. The main body is a curved base with a width of 40.7mm, a height of 12.4mm, and a length of 205mm. The base features a 1mm bevel on the edges. On the top surface, carve out two parallel track channels. Each channel is 6.2mm wide and 3mm deep. Position these channels so they are equid...
WIDTH=40.7; HEIGHT=12.4; LENGTH=205; BEVEL=1; TRACK_WIDTH=6.2; TRACK_HEIGHT=3; TRACK_DIST=20; BRIDGE_HEIGHT=64; BRIDGE_R1=214; BRIDGE_R2=220; CONN_WIDTH=7.3; CONN_R=6.5; CONN_BEVEL=1.7; CONN_DEPTH=16; ROUND_R=189; SUPPORT_SIDE=7.2; SUPPORT_THICK=33; SUPPORT_WIDTH=WIDTH+1+2*SUPPORT_SIDE; TUNNEL_R=28.5; TUNNEL_H=65;...
glb/cad_1fc8d5bf8272.glb
Create a mechanical Leonardo Clock using 10mm thick plywood for the panels and 8mm diameter wooden axes. Construct a base plate that supports several vertical plinths. These plinths feature holes with a 11mm diameter to accommodate 608 bearings. Position two identical "Leonardo wheels" (escape wheels) facing each oth...
spessore=5.0; raggioasse=2.0; raggioforo=5.5; include <BOSL/constants.scad> use <BOSL/involute_gears.scad> denti=15; piolo=7.0; raggiopiolo=1.8; distanza=3*spessore; raggio=75.0; color("red") translate([spessore/2 + distanza/2,0,75+2]) rotate([0,0,sin($t*360*4*15)*20-90]) union() { paletta($fn=64); translate([0,0...
glb/cad_249830343290.glb
Create a mechanical model of a Leonardo Clock using 10mm thick plywood components and 8mm diameter wooden axes. Construct the base and frame using a series of vertical plinths and horizontal beams. The frame must include precise circular cutouts with 22mm diameters to accommodate 608 bearings. Build the escapement m...
spessore=10.0; raggioasse=4.0; raggioforo=11.0; include <BOSL/constants.scad> use <BOSL/involute_gears.scad> denti=15; piolo=14.0; raggiopiolo=3.6; distanza=3*spessore; raggio=150.0; alpha= 0.8; color("red") translate([spessore/2 + distanza/2,0,150+raggioasse]) rotate([0,0,sin($t*360*4*15)*20-90]) union() { tr...
glb/cad_d35f48621824.glb
Create a mechanical Leonardo Clock using 15mm thick plywood for the panels and 20mm diameter wooden axes. Construct the base as a flat platform with a vertical support structure consisting of several plinths. The main frame includes two vertical plinths (Plinto 1 and 2) with holes for bearings to support the gear tra...
spessore=15.0; raggioasse=10.0; raggioforo=16.0; include <BOSL/constants.scad> use <BOSL/involute_gears.scad> denti=15; piolo=35.0; raggiopiolo=9.0; distanza=spessore*4; raggio=375.0; $t=0.0; alpha= 0.8; color("red", alpha=0.8) translate([spessore/2 + distanza/2,0,raggio+raggioasse]) rotate([0,0,sin($t*360*15)*20-...
glb/cad_1f010082f8bd.glb
Create an anti-flood dripper holder designed as a curved clip for a round container. Start by creating a curved wall section with an arc angle of 30 degrees. This wall is formed by two concentric cylinders: an outer cylinder with a diameter of 305mm and an inner cylinder with a diameter of 275mm, creating a wall thickn...
dripper_number = 2; angle = 30; inner_diameter = 275; outer_diameter = 305; outer_clamp_height = 25; thickness = 2; dripper_diameter = 13; dripper_box_heigth = 13; dripper_box_length = 45; hose_diameter = 8; resolution_big_features = 100; resolution_small_features = 30; inner_clamp_height = dripper_box_length + thi...
glb/cad_80f1545a64a2.glb
Create a Plug Panel consisting of a flat faceplate and a perpendicular mounting bracket. The faceplate is a rectangular slab with a thickness of 2mm. Its total width is 53mm and its height is 23.5mm. Round the two bottom corners of the faceplate with a radius of 10mm. In the faceplate, create a single row of three cir...
holeDiameter = 8.5; rows = 1; columns = 3; separation = 15; thickness = 2; xMargin = 4; yMargin = 0; roundRadius = 10; mountingDepth = 15; mountHoleDiameter = 3.5; $fn = 35; X = 0 + 0; Y = 1 + 0; Z = 2 + 0; margin = [xMargin,yMargin]; totalSize = [ (holeDiameter+separation)*columns+margin[X]*2, (holeDiame...
glb/cad_a6223500fefc.glb
Create a baby-proof cabinet latch with a thickness of 10mm. The main body is a horizontal bridge 90mm long, connecting two circular ends. Each end consists of a cylinder with a radius of 9mm and a height of 10mm. Centered within each of these end cylinders is a vertical hole with a diameter of 10mm that passes complete...
$fn=50*2; BAR_WIDTH = 10; SPACING = 90; DCT = sqrt((SPACING*SPACING)+(4*4)); R1 = BAR_WIDTH/2+4; R2 = (DCT*DCT)/(4*R1); R2_X_OFFSET = R2*sin(90-asin(SPACING/DCT)); union(){ difference(){ union(){ difference(){ union(){ cylinder (r=R1,h=10,center=true); ...
glb/cad_9124d5553abc.glb
Create a customizable pillar for a model train track. Start by constructing a central vertical support pillar with a height of 78mm. The pillar should have a tapered, organic profile: the base is a wide, flat oval plate, transitioning into a slender vertical column that widens again at the top. At the top of the pilla...
label_thickness = 0.6; label_height = 7; label_font="Liberation Sans"; TRACK_TABLE = [ ["Rohukan Z", [16.3, 3.9, 27, 75, 220]], ["RocoLine Bettung", [56.8, 7.5, 65, 45, 87]], ["Trix-C", [40, 8, 65, 60, 87]] ]; track="Rohukan Z"; echo(track_specs(track, table=TRACK_TABLE)); part = "top"; pillar_count=6; top_level_t...
glb/cad_979642d971d0.glb
Create a MaxSonar LV-EZ4 case consisting of a base and a cover. For the base, create a rectangular platform 22mm wide by 24.2mm deep by 1mm thick. Add four walls around the perimeter with a height of 10mm. The wall on the left side should have three small rectangular notches cut out of its inner face: two measuring 1...
part = "both"; build_plate_selector = 0; build_plate_manual_x = 180; build_plate_manual_y = 180; j = 0.1; $fn=100; x = 0; y = 1; z = 2; Thickness = 1; Aperture = 16; BoardSize = [20, 22.2, 2]; HoleSize = 3; HoleOffset = 1; PCBThickness = 1.6; Hole1Pos = [HoleSize/2 + 2.75, HoleSize/2 + 0.85, 0]; Hole2Pos = [Board...
glb/cad_7bb9082b44ad.glb
Create a Bottlecap Magnet Spacer by constructing a truncated cone and removing a cylindrical core from its center. Start with a solid truncated cone that is 5mm tall, with a bottom radius of 9.125mm and a top radius of 12.5mm. From this shape, remove a centered cylinder with a radius of 9mm and a height of 5mm. Positio...
magnetH=5; magnetD=18; magnetR=magnetD/2; capH=5; capID=18.25; capIR=capID/2; capOD=25; capOR=capOD/2; difference(){ cylinder(h=capH, r1=capIR, r2=capOR, center=false); translate([0,0,magnetH/2])cylinder(h=magnetH, r1=magnetR, r2=magnetR, center=false); }
glb/cad_61d9e8cf1d5d.glb
Create a furniture joint consisting of two identical rectangular blocks, each measuring 12mm x 30mm x 12mm. For the first block, remove a central vertical hole with a radius of 2.75mm that passes through the top and bottom faces. Within this same central axis, create a wider hexagonal cutout with a radius of 5.25mm a...
translate([-25,0,0])union(){ difference(){ cube([12,30,12]); translate([6,15,-1])cylinder(r=2.75,h=14,$fn=30); translate([6,15,8.5])rotate([0,0,30])cylinder(r=5.25,h=3.6,$fn=6); translate([6,6,-1])cylinder(r=2.25,h=14,$fn=30); translate([6,6,-1])cylinder(r=4.25,h=7,$fn=30); translate([6,6,6])cylinder(r=4.25,r2=2.25,h...
glb/cad_e15240a55c6b.glb
Create a flexible joint mechanism with a total height of 7mm. Start by creating a base rectangular environment measuring 30mm in length, 20mm in width, and 7mm in height. From this base, remove a rectangular gap measuring 1.5mm by 50mm by 7mm, positioned at x=15, y=0, z=0. Additionally, remove a rectangular recess me...
$fs = 0.3; $fa = 0.3; test = true; z = 7; o = 0.4; o2 = 2 * o; function flex_overlap() = o; rec_width = 5; rec_length = 5.0; ton_width = rec_width - o2; function flex_recess_width() = rec_width; function flex_recess_lenght() = rec_length; module r90(f=1) {rotate([90*f,0,0]) children(0);} module recess() { trans...
glb/cad_0e3a1fa30528.glb
Create a fish pond model consisting of a shallow, wide basin. Start by constructing a large, flat cylinder with a radius of 50mm and a height of 2mm to serve as the base. On top of this base, centered at the origin, add a second, slightly smaller cylinder with a radius of 48mm and a height of 4mm. Finally, place a very...
use <koi.scad> use <koi_pattern.scad> use <koi_joints.scad> module blobb() {cylinder(0.2, r=3.5);} module all() { koi(); translate([0,0,6.9]) koipattern(); } joints() all(); translate([0,30,0]) blobb();
glb/cad_2a37f404d6ea.glb
Create a flexible joint mechanism consisting of two rectangular blocks connected by a central hinge. Start by creating a base environment block that is 30mm long, 20mm wide, and 7mm high. From this base, remove a rectangular section to create a gap that is 1.5mm wide and 50mm long, and a recess that is 5.2mm long and...
$fs = 0.3; $fa = 0.3; test = true; z = 7; o = 0.8; o2 = 2 * o; function flex_overlap() = o; rec_width = 5; rec_length = 5.2; function flex_recess_width() = rec_width; function flex_recess_lenght() = rec_length; ton_width = rec_width - o2 ; module r90(f=1) {rotate([90*f,0,0]) children(0);} module recess() { trans...
glb/cad_7f446f290b03.glb
Create a stylized water lily flower by layering concentric cylindrical shapes and petal-like elements. Start with a central core consisting of a cylinder with a radius of 2mm and a height of 2mm. Surround this core with 12 petals created by the intersection of two cylinders, each with a radius of 5mm; one cylinder is c...
$fs = 0.3; $fa = 0.3; module bluetenblatt(sc, z) { r = 5; shift = 6; scale([sc,sc,1]) translate([-shift/2,r,0]) intersection() { translate([0,0,0]) cylinder(z, r=r); translate([shift,0,0]) cylinder(z, r=r); } } module rt(col, n = 6, wadd= 0) { w = 360/n; for (i = [0:...
glb/cad_727b95ba38bc.glb
Create a plant marker consisting of a flat rectangular bar and raised text. Start by creating a rectangular base that is 80mm long, 14mm wide, and 3mm thick. At the end of this bar, add a pointed tip by attaching a triangular prism that extends from the 14mm width of the bar, tapering to a point over a length of 20mm, ...
plantname = "Yolo Wonder"; fontname="Play"; thickness = 6; text_extrude = 3; length = 80; fontsize = 9; width = 14; translate([1,(width-fontsize)/2,0]){ linear_extrude(height = thickness) { text(text=plantname,font=fontname,size=fontsize); } } cube([length,width,thickness-text_extrude]); transl...
glb/cad_4e4b5d787635.glb
Create a Prusa X End for a 3D printer X-axis, designed to hold linear bearings and a lead-screw nut. Start by creating a main body block with a length of 40mm. Within this body, incorporate a rod mount featuring a hole for an 8mm rod, including a rod clamp and a trap for an M3 nut with a wrench size of 5.7mm and a he...
use <jonaskuehling-default.scad> include <lm8uu-holder-slim_double-vertical.scad> include <z_nut_holder.scad> rod_dia = 8; rod_dist = 50; zrod_leadscrew_dist = 29; clearance = 0.2; wall = 3; wall_thin = 3; xend_body_length = 40; m3_screw_dia = 3; m3_screw_head_dia = 5.5; m3_screw_head_height = 3; m3_nut_wrench_size =...
glb/cad_e111b4266893.glb
Create a Z Axis Lead Screw Nut with an overall length of 15mm. Start with a main cylindrical body that has an outer diameter of 18mm. The bottom section of this cylinder, up to a height of 7.5mm, should be modified by adding a flat face on one side, positioned 17mm from the center to the edge of the nut. Above this 7...
use <Thread_Library.scad> d_nut = 18; d_slot = 15; d_bore = 8; l_1 = 7.5; l_slot = 3.2; l_all = 15; os_flat = 17; thread_p = 2; thread_d = 9; r_nut = d_nut / 2; r_slot = d_slot / 2; r_bore = d_bore /2; r_thread = thread_d /2; o_flat = os_flat - r_nut; z_nut(); module z_nut() { difference() { union() { differe...
glb/cad_96a71ff86eff.glb
Create a tapered cylinder for a collapsible staff. The cylinder must have a height of 190mm and a high facet resolution of 256. The bottom diameter is 36.1mm, and the top diameter is 37mm, creating a slight conical taper. Additionally, create a separate press-fit end cap with a height of 10mm and a facet resolution o...
i = 7; item = 0; b = 20.00; m = 2.3; a = 0.9; h = 190; eh = 10; ext_width = 0.85; if (item == 0) cyl_piece (); else if (item == 1) end_cap (); module cyl_piece (iter=i, base=b, mult=m, adder=a, height=h) { cylinder (d1 = base+(iter*mult), d2 = base+(iter*mult)+adder, h=height, $fn=256); } module end_ca...
glb/cad_6beeb8affceb.glb
Create a tool post for a lathe consisting of a main cylindrical body and a base. The main body is a cylinder with a diameter of 24mm and a height of 40mm. This cylinder is not a full solid; it features a vertical cutout 15mm deep along its length. At a height of 6mm from the bottom, create a horizontal hole through the...
include <MCAD/nuts_and_bolts.scad> include <Util.scad> include <relativity.scad> tool_post_d = 24; tool_post_h = 40; tool_post_depth = 15; tool_h = 6; tool_post_clamp_depth = 7; clearance = 1; tool_post(); module tool_post(){ difference(){ rotate_extrude() difference(){ translate([0,-tool_post_depth]) sq...
glb/cad_0b29a8e9c7cf.glb
Create a Rostock Hot End Mount consisting of a central cylindrical body with two symmetrical mounting wings. The main body is a cylinder with a radius of 10.1mm and a total height of 26.5mm. At the top center of the cylinder, create a vertical hole with a radius of 2.065mm and a height of 10mm. The cylinder's sides a...
include <configuration.scad> ringToInlet=7.0; ringToPlatform=16.3; ringInnerRadius=14 / 2; upperHeight=20.5; upperRadius=16 / 2 + 0.2; lowerHeight=3.0; lowerRadius=20.2 / 2 + 0.2; module torus(inner, outer) { r = (outer - inner ) / 2; rotate_extrude(convexity = 10, $fn=100) translate([inner + r, 0, 0]) ...
glb/cad_a19852a5b4d8.glb