Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Morgenstern weapon head consisting of a central sphere and radiating spikes. Start with a sphere with a radius of 70mm. Around this sphere, place several spikes, each created as a 16-sided cone with a base radius of 20mm and a height of 70mm. Position these cones so they radiate outward from the center, spaced...
size=70; spike_length=size; spike_r=20; angle=60; module Spike() { offset=4; translate([0,0,size-offset]) cylinder(r1=spike_r,r2=0,h=spike_length, $fn=16); } module MorgenStern() { for(i=[angle:angle:360-angle]) { rotate([0,i,0]) Spike(); rotate([i,0,0]) Spike(); ...
glb/cad_01211a55a55b.glb
Create a thumbwheel for M3 nyloc nuts. Start with a main cylinder that has a diameter of 8mm and a height of 5.2mm. To create the grip, add four smaller cylinders around the perimeter of the main cylinder; each of these smaller cylinders should have a diameter of approximately 2.8mm and the same height of 5.2mm, positi...
pi = 3.1427*1; knob_height = 5.2; knob_diameter = 8.0; knurl_count = 4; knurl_diameter = 0.7 * knob_diameter * pi / knurl_count; nut_width_flats = 5.50; make_quad_array = 1; nut_height = 2.00; hole_diameter = 4.0; diff_fudge = 0.1*1; $fn = 16*1; translate([0,0,0]) thumbwheel(); if (make_quad_array == 1) { tr...
glb/cad_9bc56ba27835.glb
To create a 3D model of your name tag in OpenSCAD, you can use the following code. I have structured it to include a base plate, your name, your title, and the decorative icons (Sun and Moon) as requested. ```openscad // --- Parameters --- name_text = "Firstnesto Lastquez"; title_text = "Fun Enthusiast"; base_width = ...
baseColor = "black"; baseThickness = 2; baseWidth = 228; baseHeight = 15; borderColor = "yellow"; showBorder = "No"; bottomText = "Fun Enthusiast"; bottomTextFont = "Arial"; bottomTextOffsetX = 0; bottomTextOffsetY = -15; bottomTextSize = 12; chainLoop = true; chainLoopLengthZ = 6; chainLoopType = "square"; chain...
glb/cad_c8162dfb9706.glb
Create a cable and wire denuder stripper consisting of a base and an upper chassis. Start with a base formed by a centered block 185mm wide, 50mm deep, and 5mm thick, with an additional block 120mm wide, 50mm deep, and 40mm high centered on top of it. In the base, create a series of nine wire conduit holes and corres...
slot = 1.5; piv = 3; difference(){ union(){ cube([185,50,5],true); translate([0,0,20]) cube([120,50,40],true); } for(i = [2 : 10]) { rotate([90,0,0]) translate([55-i*i,30-i*.3,0]) cylinder(h = 55, d1 = i, d2 = i, center = true,$fn=50); rotate([90,0,0]) translate([...
glb/cad_6c8e067f8eee.glb
Create a Modular Hanging Lamp mount by constructing a flat, elongated geometric piece with a height of 13.3mm. Start with two cylinders aligned on the same horizontal axis. The first cylinder is positioned at the origin with an outer diameter of 38.5mm and an inner hole diameter of 35.5mm. The second cylinder is positi...
$fn=120; socket_od=38.5; socket_or=socket_od/2; socket_id=35.5; socket_ir=socket_id/2; socket_h=13.3; pad=0.1; 2pad=pad*2;2pad=pad*2; arm_x=150; arm_y=16; arm_z=socket_h; center_od=60; center_or=center_od/2; center_id=35; center_ir=center_id/2; center_h=socket_h; difference() { union() { cylinder(h=socket_h,r=soc...
glb/cad_6ae7eb65fb42.glb
Create a Parisian Goblet consisting of a bowl and a base connected by a threaded stem. For the bowl, create a hollowed-out hemispherical shape with an outer diameter of 63mm and a wall thickness of approximately 1mm. The top rim should be flat and circular. The interior of the bowl must be hollowed out to accommodate...
include <Threads/polyScrewThread.scad> PI=3.141592; loadthread=false; module threadedRod() { if (loadthread) { import_stl("StemThreadedRod.stl",convexity=15); } else { screw_thread(15,4,55,30,PI/2,2); } } module torus(major,minor,q) { rotate_extrude(convexity = 10, $fn = q) translate([major, 0, 0]) circle(r...
glb/cad_8a1c17591e36.glb
Create a Phone Wall Mount consisting of a hollow rectangular sleeve with an open top. Start with a back plate that is 148.5mm wide, 76mm high, and 2.5mm thick. Place two cylindrical screw holes with a radius of 2.4mm through this back plate, positioned 25mm from the side edges and 25mm from the top edge. Construct the...
phone_height=76; phone_width=146; port_distance=25; phone_depth=11.5; plate_thickness=2.5; screw_rad=2.4; rise=1.5; run=1.5; $fn=100; module screw_holes() { translate([port_distance, plate_thickness*2, phone_height-port_distance]){ rotate([90,0,0]){ cylinder(h=plate_thickness*3, r=screw_rad); ...
glb/cad_f195906efa0d.glb
Create an M5 Slot Nut for a 30x30 extrusion profile. Start by creating the main body as a linear extrusion 15mm high. The cross-section of this body is a symmetrical profile formed by two mirrored polygons; each polygon has vertices at [0,0], [3.4, 0], [3.4, 2.4], [7.9, 2.4], [7.9, 4.8], [3.4, 4.8], and [0, 4.8]. From...
$fa=0.8; $fs=0.8; extrude_z=15; clearance=0.2; base_x=7.0-clearance; step_y=2.5-clearance/2; outside_x=16.0-clearance; outside_y=9.0-clearance; top_x=7.0-clearance; nut_z=5.0; nut_side=5.0; nut_x=8.5; nut_y=9.0; bolt_od=5.0+clearance*2; bolt_z=11; module sub_extrusion_profile() { polygon([[0,0],[...
glb/cad_9e049d810863.glb
Create a Phone Tripod Mount designed to hold a phone and a standard 1/4-20 nut. Start by creating a main rectangular block with a total width of 63.6mm, a depth of 63.6mm, and a height of 11.5mm. From this block, remove a central rectangular volume of 58.6mm by 58.6mm and 11.5mm high to create a hollow sleeve for the p...
camerawidth=58.6; cameraheight=9.3; nutwidth = 11.5; nutthickness=5.5; holeR=3.2; nutbottomwall=1; nutsidewall=2; gripperthickness=2.5; gripperoverhang=5; gripperheight=nutwidth+2*nutsidewall; nutsection = nutwidth/1.732; difference() { union(){ cube([cameraheight+2*gripperthickness,camerawidth+2*gripperthickness,...
glb/cad_d584ecd8ce02.glb
Create a parametric measuring spoon consisting of a hemispherical bowl and a cylindrical grip. For a 5ml volume, create a hollow bowl by subtracting a sphere with a radius of 13.36mm from a larger sphere with a radius of 14.76mm (representing a 1.4mm wall thickness). Slice off the top half of this bowl with a cube to c...
MINITESTGRIP = 0; volume = 5.0; thickness = 1.4; gripDia = 7.0; gripLen = 80.0; gripAngle = 30.0; sink = 0.4; CP = 75; rad = pow( (6000.0*volume/(4.0*3.14159)), (1.0/3.0) ); rado = rad + thickness; cuts = 2 * (rad + thickness + 1); Spoon(); module Spoon()...
glb/cad_d582e31f803e.glb
Create a parametric pill box consisting of three connected rectangular trays. Each tray cavity should have internal dimensions of 37mm length by 37mm width and 17mm height. The walls and base of the trays should be 1.2mm thick, with the base of each cavity featuring rounded corners with a 0.7mm radius to facilitate eas...
layerHeight = 0.28; layerThickness = 0.60; wallThickness = 2 * layerThickness; baseThickness = 4 * layerHeight; numberOfTray = 3 ; trayLength = 37.0; trayWidith = 37.0; trayHeight = 17.0; trayRounding = 0.7; coverThickness = 1.5; sideThickness = 4 * layerThickness; overlapThickness = ...
glb/cad_33a54c9d4812.glb
Create a Herringbone Wades Gear Set consisting of two interlocking gears with a center-to-center axle distance of 37mm. First, construct the small gear. Create a herringbone gear with 11 teeth and a total height of 12mm. The teeth should have a twist of one tooth. At the base, add a cylindrical base 8mm high. Bore a c...
include <MCAD/involute_gears.scad> include <MCAD/teardrop.scad> debug = 0; printing = 1; distance_between_axles = 37; gear_height = 12; teeth_twist = 1; chamfer_gradient = tan(45); gear1_teeth = 11; gear1_base_height = 8; gear1_shaft_diameter = 5 + 0.2; gear1_setscrew_diameter = 3 + 0.2; gear1_setnut_width =...
glb/cad_684a1b041b78.glb
Create a headphone hook for a desk by extruding a specific 2D profile to a total height of 20mm, centered vertically. The profile is defined by a polygon with vertices at [0,0], [27,0], [27,-3], [32,-8], [32,0], [45,0], [45,-8], [50,-3], [50,15], [45,20], [45,5], [5,5], [5,15], and [0,10]. To ensure structural integrit...
difference() { linear_extrude(height = 20, center = true, convexity = 10, twist = 0) { polygon(points=[[0,0],[27,0],[27,-3],[32,-8],[32,0],[45,0],[45,-8],[50,-3],[50,15],[45,20],[45,5],[5,5],[5,15],[0,10]]); } color("red") translate([45,5,-15]) cylinder(h=30,d=1, center="true"); color("red") translate([45,0,-15]) cylin...
glb/cad_11130a9cf616.glb
Create an Espresso Tamper Retainer Ring by constructing a thick, circular disc with a total height of 9mm. The main body is formed by two stacked cylinders: a base cylinder with a diameter of 75mm and a height of 5mm, and a second cylinder centered on top of it with a height of 4mm that tapers from a bottom diameter of...
difference() { union() { color("red") translate([0,0,2]) cylinder(h=4, d1=75, d2=65, center="true"); color("red") translate([0,0,-3]) cylinder(h=5, d=75, center="true"); } color("yellow") translate([0,0,-6]) cylinder(h=20, d=61, center="true"); color("blue") translate([33,0,-6]) cylinder(h=7, d=2.2, center="true"); c...
glb/cad_b4b014aa6e96.glb
Create a vacuum cleaner adaptor consisting of three stacked coaxial sections. Start with a bottom cylindrical shell 36mm high, with an outer radius of 17.15mm and an inner bore of 14mm. At a height of 10mm from the base, carve out a ring-shaped groove into the outer wall that is 4.8mm deep and 4.8mm high, with an inner...
dysonH = 36.0; dysonOuterR = 34.3/2; dysonInnerR = 28.0/2; dysonRingInnerR = 30.5/2; dysonRingH = 4.8; dysonRingPos = [0,0,10.0]; dysonRingDepth = dysonOuterR-dysonRingInnerR; hooverH = 30.0; hooverOuterR = 32.0/2; hooverInnerR = hooverOuterR - 2.0; $fn = 180; module dysonRing() { difference() { cylinder(h=d...
glb/cad_32adc5aa1538.glb
Create a customizable Arduino tray with a base and side walls. For an Uno version, create a rectangular outer shell measuring 71.78mm in length, 56.54mm in width, and 16.6mm in height. The walls and floor should be 1.6mm thick. Hollow out the center to create a main compartment measuring 68.58mm by 53.34mm with a depth...
arduino_type = "Uno"; thick = 1.6; wall_height = 15; standoff_height = 7; standoff_hole_diameter = 2.9; standoff_thick = 1.6; clearance = 1.5; $fa=1; $fs=0.5; module Arduino_standoffs() { translate([13.97, 2.54, standoff_height/2]) { difference() { cylinder(r=standoff_hole_diameter/2+standoff_thick, h=st...
glb/cad_9c3ac44eee7d.glb
Create a toilet seat hinge base. Start by creating a main body that is a cylinder with a height of 7mm and a radius of 18.5mm. Modify this body by creating a hull between two cylinders, both with a height of 13mm and a radius of 7mm, positioned at coordinates (10, 27, 0) and (10, 7, 0) respectively, and rotated 90 degr...
$fn=100; base(); module base(){ difference(){ baseoutside(); baseinside(); } } module baseoutside(){ cylinder(7,20,18.5); hull(){ rotate([90,0,0]){ translate([10,27,0]){ cylinder(h=13, r=7, center=true); } } rotate([90...
glb/cad_957fd236f8b6.glb
Create a Stack and Sort Toy consisting of a base and five sets of shaped pegs and matching rings. Construct a rectangular base 330mm wide, 55mm deep, and 17mm thick. At five equidistant points along the center length (at x = -140, -70, 0, 70, and 140mm), create vertical poles with a radius of 7.5mm and a height of 10...
module lineup(num, xspace, yspace, zspace) { for (i = [0 : num-1]) translate([ xspace*i, yspace*i, zspace*i ]) child(0); } module rounded(radius) { difference() { cube([radius*2,radius*2,500], center=true); translate([radius,radius,0]) cylinder(r=radius,h=501,center=true, $fn=25); } } module pole_shap...
glb/cad_70f296da9406.glb
Create a finger tightening ring for hex nuts. The main body is a cylinder with a total height of 6mm and an outer diameter of 15mm. The outer wall features 12 evenly spaced, rounded vertical tags (ribs) created by alternating cylindrical protrusions and recessed gaps. The profile of the main body is slightly tapered, n...
nut_size = 8; tolerance = 0.1; height = 6; outer_diameter = 15; number_of_tags = 12; difference() { body(); nut(); } module body(){ intersection(){ difference(){ union(){ cylinder(height, d=outer_diameter-outer_diameter*PI/number_of_tags/4, $fn=number_of_tags*4); tags(); } gaps(); } unio...
glb/cad_964ce51bee24.glb
Create a 3D emblem called "ss circle arrow E" based on a complex swirling geometry. Start by defining a base 2D profile consisting of a circle with a radius of 25mm and a stretched circle (scaled 2.5:1 on the X-axis) with a radius of 20mm, both centered 40mm from the origin. Generate a primary swirling volume by line...
slice_num=49; res=.15; scale_factor=.933; rot=210; rot2=120; rot3=0; border_num=24; border_wd=3; sf=scale_factor; module up() { translate ([40,0,0]) union () { circle (25); translate ([15,0,0]) scale ([2.5,1,1]) circle (20, $fn=3); }} module down() { rotate ([0,0,180]) up(); } module star() { up(); down(...
glb/cad_09ba1f933309.glb
Create a 3D emblem consisting of three interlocking, twisted, swirling arms that radiate from a central point. Each arm is based on a composite 2D profile: a union of a circle with a radius of 25mm and a stretched ellipse (scaled 2.5:1) with a radius of 20mm, centered 40mm away from the origin. Generate the 3D form by...
slice_num=49; res=.15; scale_factor=.933; rot=210; rot2=120; rot3=0; sf=scale_factor; module up() { translate ([40,0,0]) union () { circle (25); translate ([15,0,0]) scale ([2.5,1,1]) circle (20, $fn=3); }} module down() { rotate ([0,0,180]) up(); } module star() { up(); down(); } module stack() { line...
glb/cad_5c63bc11b423.glb
Create a 3D sculpture titled "ss arrow circle E" based on a complex, twisting geometric pattern. Start by defining a base 2D profile consisting of a circle with a radius of 25mm and a triangle with a radius of 20mm, where the triangle is scaled by 2.5 along the X-axis and positioned 40mm from the center. Generate a "...
slice_num=49; res=.15; scale_factor=.933; rot=210; rot2=120; rot3=0; sf=scale_factor; module up() { translate ([40,0,0]) union () { circle (25); translate ([15,0,0]) scale ([2.5,1,1]) circle (20, $fn=3); }} module down() { rotate ([0,0,180]) up(); } module star() { up(); down(); } module stack() { line...
glb/cad_e9ade57bdf1b.glb
Create an iPhone 4 adapter mount by starting with a solid rectangular block 65mm wide, 60mm high, and 16mm deep, centered on the origin. From this block, remove a central cavity to house the phone. This cavity consists of two overlapping rectangular volumes: a larger one measuring 60.7mm by 115.17mm by 7.2mm and a sl...
module mount() { rotate([90,0,0]) { translate(v=[0,30,0]) { difference() { cube(size = [65,60,16],center = true); translate(v = [0,-22,0]) { rotate([0,180,0]) { car_mount(); } } ...
glb/cad_117a4fb72d90.glb
Create a 3D sculpture based on a complex, twisting geometric form. Start by defining a base 2D profile consisting of a union of a circle with a radius of 25mm and a stretched circle (scaled by 2.5 on the X-axis) with a radius of 20mm, both shifted 40mm along the X-axis. Generate a primary volume by linearly extruding...
slice_num=49; res=.15; scale_factor=.933; rot=210; rot2=120; rot3=0; trans1=40; trans2=10; border_num=24; sf=scale_factor; module up() { translate ([trans1,0,0]) union () { circle (25); translate ([15,0,0]) scale ([2.5,1,1]) circle (20, $fn=3); }} module down() { rotate ([0,0,180]) up(); } module star() ...
glb/cad_cef4d596dbbb.glb
Create a lens adapter bushing by constructing a hollow cylinder. Start with an outer cylinder that has a height of 2.3mm and a diameter of 17.7mm. Center this shape on the origin. From the center of this volume, remove a smaller concentric cylinder to create a hole with a diameter of 12.3mm and the same height of 2.3mm...
Lens_Height = 2.3; Lens_Diameter = 12; Holder_Diameter = 18; Holder_Coefficient = 0.3; Lens_Coefficient = 0.3; difference() { cylinder (h = Lens_Height, r=(Holder_Diameter-Holder_Coefficient)/2, center = true, $fn=100); cylinder (h = Lens_Height, r=(Lens_Diameter+Lens_Coefficient)/2, center = true, $f...
glb/cad_7243275f3cf5.glb
Create a self-watering pot consisting of a reservoir and an upper planting chamber. Start with a base cylinder 50mm in diameter and 2mm thick. Above this base, build a reservoir that is 25mm tall, tapering outwards from the 50mm base to a diameter of approximately 65mm at its top edge. The reservoir walls should be 2mm...
make = "pot"; base = 50; top = 80; ht = 25; res = 25; wall = 2; floors = 2; tube = 20; tol = 1; spout = 30; gdia = 3; gpitch = 6; $fn = 60; function radius_at(z) = (top*z/(ht+res) + base*(1-z/(ht+res)))/2; module pot_solid(offset) { translate([0,0,res]) cylinder(r1=radius_at(res)-offset, r2=top/2-off...
glb/cad_3262aff1f5db.glb
Create a ZTE Speed USB Strain Relief consisting of a central nub and two symmetrical outer clips. Start with the central nub: create a rectangular block 14mm wide, 8mm deep, and 6mm high. Center a 10mm wide, 8mm deep, 6mm high rectangular section within it. Drill two vertical holes through the nub, each with a radius...
tetrixScrewRad=2.3; usbOffset=0; hUsbNub=6; yUsbNubOffset=3; module usbNub() { translate([0,5+yUsbNubOffset,0]) { difference() { union() { translate([0,-(5+yUsbNubOffset)/2,hUsbNub/2]) cube([2*3+8, 5+yUsbNubOffset, hUsbNub], center=true); translate([0,0,hUsbNub/2]) cube([8, 2*5, hUsbNub], center=true); translate([...
glb/cad_710cef23779d.glb
Create a ZTE Speed USB Strain Relief consisting of a central USB nub and two symmetrical outer clips. Start with the central nub: create a rectangular block 14mm wide, 8mm deep, and 5.5mm high. Center a hole 10mm in diameter through the center of this block. Within this block, create two vertical cylindrical holes wi...
tetrixScrewRad=2.3; usbOffset=0; hUsbNub=5.5; yUsbNubOffset=3; module usbNub() { translate([0,5+yUsbNubOffset,0]) { difference() { union() { translate([0,-(5+yUsbNubOffset)/2,hUsbNub/2]) cube([2*3+8, 5+yUsbNubOffset, hUsbNub], center=true); translate([0,0,hUsbNub/2]) cube([8, 2*5, hUsbNub], center=true); translate...
glb/cad_4078d28ccafb.glb
Create a dial indicator mount consisting of a circular base plate and a central conical riser. The base plate should be a cylinder with a radius of 33mm and a thickness of 3mm. Centered on this plate, add a conical section that transitions from a base radius of 6.25mm (calculated as half the stem diameter plus wall thi...
$fs=0.2; $fa=2; dial_stem_dia=9.5; plate_thickness=3; wall_thickness=1.5; difference() { union() { translate([0.15,0,2.3]) cylinder(h=plate_thickness,r=33,center=true); translate([0.15,0,2.3]) cylinder(h=plate_thickness+5, r1=10,r2=dial_stem_dia/2+wall_thickness) ; } translate([0.15,0,-2.3]) cylinder(h=...
glb/cad_2e8c9774cf04.glb
Create a Double Angle Bracket Mount by constructing a central vertical cylinder with a radius of 1mm and a height of 20mm. To this central axis, attach two identical flat plates, each 20mm high, 12mm wide, and 2mm thick. Position these plates so they extend from the central axis at a horizontal angle of 90 degrees from...
angle_1 = 90; angle_2 = 25; height = 20; width = 12; thickness = 2; mount_d = 4; module plane() { rotate([-angle_2,0,0]) rotate([0,0,angle_1/2]) translate([-thickness/2,0,0]) difference() { cube([thickness,width,height]); rotate([angle_2/3,0,0]) translate([-thickness*2...
glb/cad_be8203e07e95.glb
Create a spare part for a Lukey 301 PCB holder. Start with a base rectangular block measuring 36mm in length, 6.6mm in width, and 5.5mm in height. On top of this base, add a smaller rectangular section measuring 16mm in length, 3.8mm in width, and 2.2mm in height, positioned at the start of the block and offset 1.4mm f...
module corner(){ union(){ difference() { topOff=1.4; mainW=6.6; topL=16; fullL=36; union(){ cube([fullL,mainW,5.5]); translate([-0,topOff,5.5]) cube([topL,3.8,2.2]); } r1=1.35; holeL=fullL-topL-3; translate([2.45+r1,mainW/2,0]) cylinder(h=8,r=r1,$fn=50);; ...
glb/cad_4c72d7939930.glb
Create an XLR / DMX Plug friction fit adapter. Start by creating a main outer cylinder with a diameter of 19mm and a height of 30mm. Remove a smaller concentric cylinder from the center with a diameter of 14mm and a height of 30mm, leaving a wall thickness of 2.5mm. At the base of this hollow tube, create a solid circu...
difference(){ translate([0,0,18]) rotate([0,180,0]) difference(){ translate([0,0,2]) cylinder(16,9.5,9.5,$fn=200); difference(){ difference(){ cylinder(16,19/2,19/2,$fn=200); translate([0,0,2]) cylinder(30,16/2,16.25/2,$fn=200); } translate([0,7.75,2]) rotate([0,0,45]) cylinder(30,1.15,1.15,$fn=4); } } transl...
glb/cad_a1358b7b329a.glb
Create a customizable pillbox consisting of a main tray and seven matching lids. Construct the tray as a rectangular base with a thickness of 1.3mm. Build outer walls 10mm high and 2mm thick. Divide the interior into seven equal compartments using inner walls that are 1.5mm thick. Each compartment should be 15mm wide...
days = 7; day_parts = 2; bottom_thickness = 1.3; wall_thickness = 2.0; inner_wall_thickness = 1.5; strengthener_size = 1; locker_dim = 2; cube_width = 15; cube_length = 15; cube_height = 10; day1="Mo"; day2="Tu"; day3="We"; day4="Th"; day5="Fr"; day6="Sa"; day7="Su"; day_part1 = "R"; day_part2 = "2"; day_part3 = "3"...
glb/cad_dc6ddf37d565.glb
Create a mini iambic paddle base. Start with a flat bottom slab that has a rounded rectangular contour. The outer boundary is defined by a width of 20mm and a length of 30mm, with corners rounded by a radius of 2mm. The walls of the enclosure rise vertically from this base to a total height of 12mm. In the center of t...
include <util.scad>; include <params.scad>; module base2d(filled) { module base_contour_outer() hull() { r=w1/2-pins_w/2; translate([ w1/2-r,-lb+r]) circle(r=r); translate([-w1/2+r,-lb+r]) circle(r=r); translate([-w1/2,-lb+r]) square([w1,lt+lb+r]); }; int...
glb/cad_b3ef3d6354ee.glb
Create an FPV camera mount for a Diatone Blade frame. The main body is a wedge-shaped block with a width of 35mm and a height of 28mm. At the four corners of the base, centered around a 24mm square pattern, place four cylindrical spacers. Each spacer has an outer diameter of 5mm and a height of 2.5mm, with a concentr...
$fn=100; zoff = 1; module mholes(c=24,d=3,m=2) { translate([-c/2,-c/2,0]) cylinder(2*d,m/2,m/2,center=true); translate([c/2,-c/2,0]) cylinder(2*d,m/2,m/2,center=true); translate([c/2,c/2,0]) cylinder(2*d,m/2,m/2,center=true); translate([-c/2,c/2,0]) cylinder(2*d,m/2,m/2,center=true); } module hexagon(...
glb/cad_bd9dcd2eb358.glb
Create a cargo strap clip consisting of two identical units aligned side-by-side. Each unit is a U-shaped holder designed to secure a rolled strap. For a single unit, create a base rectangular block with a width of 44mm, a height of 28mm, and a depth of 30mm. The walls of this holder are 2.5mm thick. The main body is...
clips=2; mirror="no"; strap_width=28; roll_width=44; clip_overhang=2.5; clip_thickness=2.5; clip_width=30; $fs=0.1; clipHangRadius=clip_thickness/2+clip_overhang/2; module clip() { *translate([roll_width,clip_thickness,0]) cube([clip_thickness,strap_width,clip_width]); cube([roll_width+2*clip_thickness,clip...
glb/cad_743e56f844e9.glb
Create a 3D model of the Crimea peninsula. Construct the shape by extruding a flat 2D polygon based on the geographic outline of Crimea to a height of 5mm. The base polygon is defined by a series of vertices that trace the coastline and land border, starting from the eastern tip and moving counter-clockwise around the ...
fudge = 0.1; module poly_path3099(h) { scale([25.4/90, -25.4/90, 1]) union() { linear_extrude(height=h) polygon([[32.137172,-4.006373],[25.304552,-6.230950],[23.397772,-6.548746],[22.074236,-7.294880],[21.093742,-8.455526],[20.652780,-9.568219],[20.537602,-10.759551],[21.649892,-11.951288],[23.477222,-14...
glb/cad_7e7203441fc0.glb
Create a Rostock MAX top mount spool holder by constructing a low-profile cylindrical ring. Start with a main cylinder that has a radius of 3.25mm and a height of 2mm. From the center of this cylinder, remove a smaller concentric cylinder with a bottom radius of 1.575mm and a top radius of 1.775mm, extending the height...
$fn=150; difference() { cylinder(r=6.5/2, h=2); translate([0,0,-.01]) cylinder(r1=3.15/2, r2=3.55/2, h=2.1); translate([1.5,1.5,1.01]) rotate([0,0,45]) #cube([4, 4.2/2, 2.1], true); }
glb/cad_ec09d60fe202.glb
Create a Rostock MAX top mount spool holder consisting of a primary circular base with a radius of 58mm and a thickness of 3mm. At three equidistant points around the center, spaced 120 degrees apart, integrate roller assemblies. Each assembly features a cylinder with a radius of 15mm and a height of 10mm. Within eac...
$fn=200; cylinderR=58; rollerPos=cylinderR/2*.9; rollerY=40; rollerX=34; module roller () { translate([0,rollerY,-3]) rotate([0,90,90]) difference() { cylinder(r=15,h=10, center=true); translate([-15.6,0,0]) cylinder(r=10,h=4.3, center=true); rotate([0,0,90]) translate([0,11.5,0]) #cylinder(r=4.85/2,h...
glb/cad_54a529e154df.glb
Create a Rostock MAX top mount spool holder consisting of a central vertical shaft. Start by creating a main cylinder with a radius of 1.9mm and a height of 18mm. At the base of this cylinder, add a conical frustum that flares outward from a radius of 1.9mm at the top to a radius of 2.5mm at the bottom, with a height o...
$fn=150; cylinder(r1=5/2, r2=6/2, h=2); difference() { cylinder(r=3.8/2, h=18); translate([0,0,15]) difference() { cylinder(r=5/2, h=2); cylinder(r1=3/2, r2=3.4/2, h=2); } }
glb/cad_3bb470daa9c0.glb
Create a spool holder hub by starting with a solid cylinder 5mm high with a radius of 25.75mm. On top of this base, add a truncated cone that starts at a radius of 25.75mm at the bottom and tapers upward to a radius of 17.17mm over a height of 12mm. At the very top center of this assembly, place a small flat-topped cyl...
$fn=100; include <threads.scad>; spoolInnerDiameter=51.5; difference() { union() { translate([0,0,5]) cylinder(r1=spoolInnerDiameter/2, r2=spoolInnerDiameter/3, h=12); cylinder(r=spoolInnerDiameter/2, h=5); } translate([0,0,-.1]) cylinder(r=10.8, h=15); } difference() { metric_thread(17-1.5,2.5,16, intern...
glb/cad_c3f2e765f04f.glb
Create a Rostock MAX top mount spool holder base by starting with a solid cylinder 20mm in diameter and 12mm high. Bore a hole through the center of the cylinder from the bottom to a height of 1mm from the base, with a radius of 7.5mm and a depth of 5mm. Into the remaining center of the cylinder, carve an internal metr...
$fn=100; include <threads.scad>; difference() { cylinder(r=10, h=12); translate([0,0,1]) #metric_thread(17,2.5,12.5,internal=true); translate([0,0,-.1]) cylinder(r=7.5, h=5); } for(clip=[1:3]) { rotate(clip*360/3,[0,0,1]) translate([0,8.5,-1.9]) cube([4.5,1.25,3+2], true); rotate(clip*360/3,[0,0,1]) trans...
glb/cad_8cd07a9d9d30.glb
Create a parametric construction toy part consisting of two intersecting rounded rectangular plates. Each plate should be 2mm thick with a corner radius of 3mm. The first plate is a rounded rectangle with dimensions 16mm by 8mm. The second plate is identical in dimensions and thickness but is positioned perpendicular...
use <complex.scad> $fn=20; screwsize = 3; holesize = screwsize+1; distance = holesize *2; module hole_mask(ix=0,iy=0,h=5) { translate([ix*distance,iy*distance,0]) cylinder(d=holesize, h=h, center=true); } module holematrix_mask (x=1,y=5, h=5) { dx = -0.5 + x/2; dy = -0.5 + y/2; for( ix = [-dx : dx ]) { for( ...
glb/cad_b3bf507a3b26.glb
Create a shift cover indicator plate by starting with a rectangular base measuring 188.9125mm in length, 29.5mm in width, and 0.5mm in thickness. Centered along the length of the top edge, add a smaller rectangular tab that extends upward by 16.5mm with a width of 11mm and the same 0.5mm thickness. Finally, bore a circ...
x = 188.9125; y = 29.5; z = 0.5; iX = 11; iY = 16.5; holeD = 18; difference() { union() { cube([x, y, z]); #translate([(x - iX)/2, y, 0]) cube([iX, iY, z]); } union() { translate([x/2, y/2, -1]) cylinder(z + 2, d = holeD); } }
glb/cad_58db85f08b7b.glb
Create a pencil holder by constructing a cylindrical lattice structure. Start by creating a vertical column with a square cross-section of 3mm by 3mm, centered at a radius of 27mm from the central axis. Extrude this column to a height of 100mm while applying a total twist of 105 degrees along its vertical path. Duplica...
$fn = 60; module sides(){ difference() { cylinder(3, 30.1, 30.1, 0); translate([0, 0, -1]) cylinder(3+1+1, 25, 25, 0); } } module columns(){ linear_extrude(height = 100, convexity = 0, twist = 105) translate([-1.5, 27]) square([3,3]); } module columnsShifted(){ translate([0,0,0]) columns(); ro...
glb/cad_595c43219bcb.glb
Create a parametric encoder wheel with a total height of 2mm. Start by forming a main disc with an external radius of 10mm and an internal radius of 5mm. Around the perimeter, create 5 rectangular teeth by removing 10 equally spaced radial segments, each spanning a 36-degree arc, extending from the internal radius of 5...
ExternalRadius = 10; WallTickness = 1; InnerRadius = 5; TeethCount = 5; WheelHeight = 2; CenterHoleRadius = 1.75; CenterHoleExagonal = "No"; CenterSupportRadius = 4; CenterSupportHeight = 2; CenterSupportHoleRadius = 3; CenterSupportHoleExagonal = "Yes"; $fn=50; difference(){ union(){ Wheel(ExternalRadius...
glb/cad_002924dee67c.glb
Create two toilet shims, positioned side-by-side with a 2mm gap between them along their length. Each shim is a stepped wedge composed of ten stacked rectangular layers of varying lengths, all sharing a constant width of 30mm and a constant layer height of 1mm. For each shim, start with a base layer 40mm long. Each s...
shimsPerRow = 1; rowsPerPrint = 2; shimLength = 40; shimWidth = 30; stepDepth = 4; stepHeight = 1; stepWidth = shimWidth; module draw_one_layer(length) { translate([0, 0, (shimLength - length) / stepDepth * stepHeight]) cube([length, stepWidth, stepHeight]); } module draw_one_shim(xOff...
glb/cad_d5d30931f198.glb
Create an adapter for a thermostatic radiator valve. Start with a main cylinder that has a radius of 19mm and a height of 12.5mm. Remove a central cylindrical core with a radius of 14.2mm for the first 4.1mm of height, and increase the radius of this central void to 14.25mm for the next 3mm to create a recessed groove ...
ra = 19; r1 = 19.5; r2 = 2; step = 10; fni=60; fn=80; ft=60; ro = 14+0.2; rt = 1.5; rc = ro+rt; rg = 12.75; sg =1.4; support = false; adapter(); if(support) #translate([0,0,6]) cylinder(0.3,17,17,$fn=fn); module adapter() { difference(){ difference() { cylinder(12.5,ra,ra,$fn=fn); ...
glb/cad_e0866391f540.glb
Create a Sharpie Marker Holder consisting of a rectangular base and a row of tilted cylindrical tubes. Start by creating a rectangular base plate with a thickness of 2mm. The base should be long enough to accommodate the tubes and provide a stabilizing foot, with a total length calculated as the sum of the hole diame...
holeCount = 8; holeDiameter=12; holeWallThickness = 1.5; holeHeight = 20; holeGap = 1; angle=5; baseHeight = 2; difference() { holes(); translate([0,0,-holeHeight]) { base(holeHeight,18); } } translate([2,0,0]) base(baseHeight,18); module base(height, addedDepth) { length = (holeDiameter ...
glb/cad_ada8308bfc46.glb
Create a mirrored pair of hard hat flashlight mounts. Each mount consists of a C-shaped clip designed to hold a flashlight with a 25mm diameter. The clip walls should be 2mm thick. The main body of the clip is a circular ring with an inner diameter of 25mm and an outer diameter of 29mm. On the outer edge of the ring,...
$fa=1; $fs=1; clip_width=30; diam=25; thickness=2; release_tab_length=5; locking_clip_angle=15; locking_clip_reach=13; locking_clip_barb_size=2; module insertion_tabs() { polygon(points=[[0,0],[50,50*sqrt(3)],[50,-50*sqrt(3)]],path=[[0,1,2]]); } module insertion_tabs_trim() { translate([(thickness/2)*sqrt(3),0...
glb/cad_d49b77d1e15c.glb
Create a petBOT robot by assembling a cubic base and a spherical head. Start with a cube measuring 20mm on all sides, centered at the origin. On the front face of this cube, create a centered square cutout measuring 15mm by 15mm with a depth of 1.5mm. Position a sphere with a radius of 7.5mm so that its center sits 25m...
color ("lightblue")translate([0,0,25]) sphere(7.5); color ("lightblue")translate([-10,-10,0]) cube (20); color ("black") translate([-7.5, -11, 2.5]) cube ([15,1.5,15]); color ("black")translate([-9,-9,-0.5]) sphere(1); color ("black")translate([9,-9,-0.5]) sphere(1); color ("black")translate([-9,9,-0.5]) sphere(1); ...
glb/cad_cb2a3ea8b056.glb
Create an Ohio State Figure desk figurine. Start by creating a rectangular base that is 140mm long, 20mm wide, and 20mm high. From this base, remove a cylinder with a diameter of 18mm and a height of 132mm. Position this cylinder so it is centered along the length of the base, but shifted 3mm in one direction and 45m...
OSU(5); base(); module base(){ difference(){ rotate([0,90,0]) translate([-3,-45,-67]) cylinder(d=18, h=132, $fn=80); translate([-70,-64,-7]) cube([140,20,20]); } } fudge = 0.1; module OSU(h) { scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[-235....
glb/cad_2270d755a5b6.glb
Create a customizable phone stand with a total width of 71.12mm (2.8 inches), height of 88.9mm (3.5 inches), and depth of 71.12mm (2.8 inches). The main body is a solid block with a wall thickness of 3.81mm (0.15 inches). Cut a phone slot into the top of the stand, angled at 27 degrees. This slot should have a depth o...
stand_height = 3.5 ; stand_width = 2.8 ; stand_depth = 2.8 ; phone_depth = 0.5 ; phone_lip = 0.2 ; phone_angle = 27 ; phone_adjust_depth_pct = 10 ; phone_adjust_height_pct = -10 ; charger_width = 0.5 ; cord_width = 0.15 ; slot_taper_pct = 30 ; wall_thickness = 0.15 ; mm_in = 25.4 ; thick = mm(wall_thickness...
glb/cad_f00956d99129.glb
Create a Customizable Shaft Buddy coupler. Construct a hollow cylinder with an outer diameter of 16mm and a total height of 24mm. The cylinder must have a central longitudinal hole that is hexagonal, with a flat-to-flat diameter of 10mm. The model is a single-form adapter where a smaller shaft is adapted to a larger ...
inch = 25.4*1; $fn=32*1; TEST_MODE = 0*1; s1_type = "HEX"; s1_gender = "FEMALE"; s1_dia = 10; s1_cutout = 2; s1_length = 12; s1_tol_pct = 5; s1_force_setscrews = 1; s2_type = "ROUND"; s2_gender = "FEMALE"; s2_dia = 10; s2_cutout = 2; s2_length = 12; s2_tol_pct = 5; s2_force_setscrews = 1; middle_lengt...
glb/cad_425ead825363.glb
Create a napkin ring by first constructing a flat, hollow cylinder with a height of 5mm, an outer radius of 25mm, and an inner radius of 20mm. Around the outer perimeter of this ring, add the text "GOBBLE GOBBLE" using a rounded, bold font like Chewy. Each letter should be 8mm in size and 5mm thick, positioned so that ...
Text = "GOBBLE GOBBLE"; union() { difference() { cylinder(h = 5, r = 25, $fn = 64); cylinder(h = 5, r = 20, $fn = 64); } for (i = [0 : len(Text) -1]) { rotate([0,0,-11*i]) translate([0,24,0]) linear_extrude(height = 5) text(size = 8, text = Text[i], font = "...
glb/cad_2f43fa1a35dc.glb
Create a desktop bin with a height of 90mm. Start by creating a solid circular base with a bottom diameter of 70mm and a height of 4mm, tapering slightly outward. At the top of the bin, add a circular rim with a thickness of 4mm, an outer diameter of 90mm, and an inner hole to make it a ring. Connect the base and the ...
baseDiameter = 70; baseThickness = 4; topDiameter = 90; topThickness = 4; height = 90; pillars = 12; pillarDiameter = 3; pillarTwist = 180; pillarSets = "both"; overhang = (topDiameter - baseDiameter)/2; angle = atan(height/overhang); baseDiameterTop = (baseThickness / tan(angle)) * 2 + baseDiameter; topDiamet...
glb/cad_5ad465874275.glb
Create a Parametric Ammo Box by constructing a rectangular block with a total height of 78mm. The base dimensions of this block should be 145mm in width and 145mm in depth. Hollow out the interior of the block to create a storage cavity, leaving a 4mm thick floor at the bottom and walls around the perimeter. Within thi...
rows = 5; columns = 8; height = 78; space= 12.8; wall = 2.5; oWall = 1; both = false; box = true; if(both){ box(); lid(); } if(!both){ if(box){ box(); } if(!box){ lid(); } } module box(){ difference(){ union(){ cube([(wall + space) * columns + wall + 2 * oWall+10,(wall + space) *rows + wall + 2 * ...
glb/cad_966a77f1baa0.glb
Create a retractable handle release for a trolley. Start with a central button shaped as the intersection of a 13.6mm diameter circle and a sphere with a 200mm diameter, extruded to a height of 14mm. On the top surface of this button, emboss the text "Delsey" with a height of 4mm and a thickness of 3mm. From the cent...
$fn=90; use <writescad\Write.scad> touche(); appui(); module base() { difference(){ linear_extrude(height=4.5) polygon(points=[[-61,4.1],[-51,4.1], [-41,6.8],[41,6.8], [51,4.1],[61,4.1], [61,-4.1],[51,-4.1], [41,-6.8],[-41,-6.8], [-51,-4.1],[-61,-4.1], ]); translate([-32.325,0,-0.5]) linear_ex...
glb/cad_8f31e0046999.glb
Create a tripod for an iPhone 6 consisting of three legs and a central clamping body. First, construct the legs. Each leg is based on a rectangular prism 80mm long, 8mm wide, and 8mm high. Round one end of each leg by creating a hull between the prism and a sphere with an 8mm diameter. At the outer end of each leg, c...
footLength=80; iClampDia = 8.5; iClampLen = 15; module banner() { } bottomPlateSize=10; bottomPlateWidth=8; bottomPlateHeight=3; holeDiameter=4.5; iClampWidth = 3; iClampHeight = 24.5; plateSpace=4.2; iRbHookWidth = 5; footDiameter=8; module bottomPlate(x=bottomPlateHeight, y=bottomPlateSize) { difference() { ...
glb/cad_c21c3f84bc1d.glb
Create a Baby Cabinet Lock Safe consisting of a flat base and a vertical clamping arm. Start with a circular ring base that has an outer radius of 22.5mm and a central hole with a radius of 7.5mm, maintaining a consistent thickness of 1.5mm. Attached to this ring, extend a rectangular arm 90mm in length and 18mm in wid...
door_width = 15; door_length = 90; door_height = 30; material = 1.5; hole = 15; leftright = -1; r_hole = hole / 2; r_ring = door_width + ( hole / 2 ) + ( material * 2 ); scale( 1 * leftright, 1, 1 ) union() { translate( [ 0, -( r_hole ), 0 ] ) difference() { cylinder( r = ...
glb/cad_cff3ea52cfb2.glb
Create a personalized name keyring by constructing a series of 3D extruded letters and a connecting loop. For the text, use the name "Jennifer" in a font like Chewy. Each letter should be 25mm in size and extruded to a specific height: the first letter at 6mm, second at 5mm, third at 4mm, fourth at 6mm, fifth at 4mm, s...
Font_name = "Chewy"; Text = "Jennifer"; Rotation = 50; letter_1_height = 6; letter_1_space = 10; letter_2_height = 5; letter_2_space = 10; letter_3_height = 4; letter_3_space = 10; letter_4_height = 6; letter_4_space = 9.6; letter_5_height = 4; letter_5_space = 9; letter_6_height = 5; letter_6_space = 9; lette...
glb/cad_27c995b3e1c6.glb
Create a personalized name keyring by combining a circular loop with extruded text. Start by creating a circular ring with a diameter of 20mm and a thickness of 3mm, positioned to the left of the text. Next, generate the text "Burny" using a bold, rounded font with a base size of 25mm. Each letter must be extruded ve...
Font_name = "Chewy"; Text = "Burny"; Rotation = 50; letter_1_height = 6; letter_1_space = 10; letter_2_height = 5; letter_2_space = 10; letter_3_height = 4; letter_3_space = 10; letter_4_height = 6; letter_4_space = 10; letter_5_height = 4; letter_5_space = 10; letter_6_height = 5; letter_6_space = 10; twist =...
glb/cad_c58729a8353c.glb
Create a Boomer the Zoomer Dino LEGO compatible seat. Start by creating a hollow cylinder with an outer diameter of 35mm and an inner diameter of 30mm, and extrude it to a height of 11.8mm. Cut a circular hole with a diameter of 25mm through the bottom of the cylinder, positioned 15mm away from the center along one axi...
knob_diameter=4.8; knob_height=2; knob_spacing=8.0; wall_thickness=1.45; roof_thickness=1.05; block_height=9.5; pin_diameter=3; post_diameter=6.5; reinforcing_width=1.5; axle_spline_width=2.0; axle_diameter=5; cylinder_precision=0.1; translate([0,15,0]) rotate(a=[0,90,90]) block(2,3,1,axle_hole=false,reinforcement...
glb/cad_5ce4ddb67a63.glb
Create a V-Wheel carriage plate for use with 1/2" conduit pipes. Start with a base plate 6mm thick. The outer perimeter of the plate is a rounded rectangle, approximately 76mm by 52mm, with the corners smoothed. Cut a rectangular opening through the center of the plate measuring 27.28mm by 32mm. On the top and bottom...
Ht = 6; X_Offset = 27.5; Y_Offset = 16.0; BumpX_Offset=16.6427; BumpY_Offset=23.25; Bump_Ht=27.2855; module Plate() { union() { linear_extrude(height = Ht, center = false, convexity = 10)polygon(points = [[-27.89,-26.25],[27.89,-26.25],[28.79,-26.21],[29.67,-26.09],[30.55,-25.9], [31.4,-...
glb/cad_cf076441f026.glb
Create a V-Wheel carriage plate for use with 1/2" pipes. Start with a base plate 6mm thick. The outer perimeter of the plate is a rounded rectangle, approximately 80mm by 52mm, with the corners tapered. Cut a rectangular opening in the center of the plate measuring 30.44mm by 32mm. On the top surface of the plate, cen...
Ht = 6; X_Offset = 29.8823; Y_Offset = 16.0; BumpX_Offset=18.6323; BumpY_Offset=23.25; Bump_Ht=31.2646; module Plate() { union() { linear_extrude(height = Ht, center = false, convexity = 10)polygon(points = [[-29.88,-26.25],[29.88,-26.25],[30.78,-26.21],[31.66,-26.09],[32.54,-25.9], [33....
glb/cad_033da584e48c.glb
Create a V-Wheel carriage clamp with a total height of 12mm. Start by constructing a base plate that is a hybrid shape: a central square of 28.4mm (18.4mm pipe diameter plus 10mm wall thickness) with rounded corners, blended into a larger rectangular footprint. Cut four vertical cylindrical holes through the plate, e...
Ht = 12; WingHt = 6; WingOD = 19.5; WingHole_X = 32.8; M3=3.5; M5 = 5.5; Gap = 2; $fn=72; EMT_OD=18.4; Thk = 5; Thk_x2 = Thk * 2; EMT_Rad = EMT_OD / 2; echo("EMT_Rad = ", EMT_Rad); EMT_OD_34x = EMT_OD * 0.75+1; NutLockWid=6; module Wings() { } module Plate() { hull() { union() { translate([-(...
glb/cad_b789c41eede0.glb
Create a V-Wheel carriage plate for a CNC machine. Start with a flat plate that is 6mm thick. The outer boundary of the plate is a rounded square shape, approximately 53.6mm wide and 53.6mm long. Cut a complex void through the center of the plate to accommodate pipes and movement. This central cutout consists of four ...
Ht = 6; $fn=72; X_Offset = 10.9; Y_Offset = 10.9; OD4x=21.8; OD_Mid=21.8; module Plate() { linear_extrude(height = Ht, center = false, convexity = 10)polygon(points = [[11.86,-26.77],[12.82,-26.68],[13.77,-26.54],[14.71,-26.34],[15.63,-26.08], [16.54,-25.77],[17.43,-25.4],[18.29,-24.98],[19.13,-24.51],[19....
glb/cad_a4effe20d2f7.glb
Create a V-Wheel carriage for 1/2" EMT or PVC pipe. Start by creating a base plate with a height of 12mm. The overall footprint is roughly circular but modified by a central cutout and specific mounting features. In the center of the plate, create a rectangular cutout measuring 30.4mm by 30.4mm. Additionally, remove f...
Ht = 12; M3=3.5; $fn=72; X_Offset = 9.2; Y_Offset = 9.2; OD4x=18.4; NutLockWid=6; module Plate() { linear_extrude(height = Ht, center = false, convexity = 10)polygon(points = [[-23.4,-9.2],[-23.38,-9.9],[-23.33,-10.59],[-23.25,-11.28],[-23.13,-11.97], [-22.97,-12.65],[-22.79,-13.32],[-22.57,-13.98],[-22.32...
glb/cad_8d9212885d5c.glb
Create a tapered shim for a V-wheel carriage. The object is a rotationally symmetrical part with a total height of 8.7mm and a central vertical hole with a diameter of 5.5mm running through the entire length. The geometry consists of two stacked sections. The base is a cylinder with a diameter of 16mm and a height of ...
ShimMaxOD = 16; ShimMinOD = 8.8; ShimTotHt = 9 - .3; SimBaseHt = 2.5; M5 = 5.5; TaperHt = ShimTotHt - SimBaseHt; ShimRad = ShimMaxOD / 2; $fn= 72; echo(32* 3.14); module TaperShim(S_ODBig = ShimMaxOD, S_ODSmall = ShimMinOD, S_THT = ShimTotHt, S_BHT = SimBaseHt) { color("cyan") { difference() {...
glb/cad_8b251b8f0a3d.glb
Create a stackable skill-ring set consisting of a base and a ring. First, construct the base. Create a cylinder with a diameter of 25.3mm and a height of 2.5mm. Hollow out the center by removing a cylinder with a diameter of 25mm, starting from a height of 0.5mm above the bottom, leaving a 0.5mm thick floor. Around t...
what_to_show = 3; base_diameter = 25; base_height = 2.5; base_flat_thickness = 0.5; ring_width = 2; ring_height = 2; number_of_spikes = 3; clearance = 0.15; spikes_radial_offset = 0.1; polygons_precision = 96; baseDiam = base_diameter + clearance*2; diamondsSize = 2*ring_height/sqrt(2); partAngle = 360/number_of...
glb/cad_884206eebc86.glb
Create a Monitor Headset Support by extruding a specific 2D profile to a depth of 15mm. The profile is defined by a continuous boundary starting at the origin (0,0) and moving to (27,0), then up to (27, 63.5), right to (55.5, 63.5), and up to (55.5, 70). From there, move left to (23.5, 70), down to (23.5, 3.5), left to...
d = 15; th = 3.5; w1 = 28; h1 = 60; w2 = 20; h2 = 8; linear_extrude(height = d) polygon( points = [ [0,0], [2*th+w2,0], [2*th+w2,th+h1], [2*th+w2+w1,th+h1], [2*th+w2+w1,2*th+h1], [th+w2,2*th+h1], [th+w2,th], [th,th], [th,th+h2], [0,th+h2] ]);
glb/cad_a9d956444c4d.glb
Create a Raspberry Pi Hat Standoff consisting of a hexagonal base and a snap-fit post. Start by creating a hexagonal prism with a flat-to-flat diameter of 6mm and a height of 11mm. Drill a cylindrical hole through the center of this hexagonal base, starting from the bottom, with a diameter of 3mm and a depth of 5mm. ...
standoff_base_diameter=6; standoff_base_height=11; standoff_post_diameter=3; standoff_post_height=2.25; standoff_lip_diameter=3.5; standoff_lip_height=1.5; post_split_width=0.8; bottom_hole_height=5; bottom_hole_diameter=3; union() { translate([0,0,standoff_base_height]) post(); difference() { ...
glb/cad_40aa8696ebd6.glb
Create a Lock Holder consisting of a thick, semi-circular ring base with integrated mounting points. Start by creating a hollow cylinder with an outer radius of 55mm and an inner radius of 38.5mm, with a total height of 12.5mm. Cut this cylinder in half to create a C-shaped channel. Along the flat interior walls of th...
$fn =100; scale([0.5, 0.5, 0.5 ]) union() { group() { group(){ union() { difference() { difference() { difference() { cylinder($fs = 2.000000, h = 25.0, r1 = 110.0, r2 = 110.0, center = false); multmatrix([[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, -250.0], [0.0, 0.0, 1.0, -10.0], [ 0, 0, 0, 1]]){ c...
glb/cad_4553f434de0e.glb
Create a toy cannon consisting of a barrel and a carriage. For the barrel, create a main cylinder with a radius of 20mm and a height of 4mm, centered on the Z-axis. Hollow out the center of this cylinder with a smaller hole of radius 17.5mm and height 10mm. Add a smaller central cylinder with a radius of 4mm and height...
$fn=64; radius = 20; module rad() { difference() { union() { difference() { translate(v = [0,0,2]) cylinder(h=4,r=radius,center=true); translate(v = [0,0,0]) cylinder(h=10,r=radius-2.5,center=true); } translate(v = [0,0,3]) cylinder(h=6,r=4,center=true); for (i=[0:3]) translate(v=[0,0,...
glb/cad_9c3129f92e63.glb
Create a motor mount tilt for a quadcopter. The part is based on a cylinder with a diameter of 27.8mm and a height of approximately 7.7mm. Start by creating a central cylinder of this diameter and height. Subtract a smaller concentric cylinder from the center with a diameter of 10mm to create a shaft clearance hole. ...
tabThickness = 1.5; $fn=100; tolerance=.1; motorTilt=15; minThickness=1.5; motorMountHole1Centers = 19; motorMountHole2Centers = 16; motorMountHoleDiameter=3.5; motorDiameter=27.8; shaftClearanceDiameter = 10; armAngle = 110; heightOfCylinder=tan(motorTilt)*motorDiameter+2*minThickness; echo(heightOfCylinder)...
glb/cad_2fbb2efeec5c.glb
Create a Dresser Drawer face by starting with a central rectangular block measuring 60mm wide, 20mm high, and 3mm deep. From this main block, remove four identical trim sections to create recessed channels. Two of these channels should be 10mm wide, 100mm long, and 3mm deep, positioned symmetrically along the left and ...
module trim() { translate([-5,0,0]) difference() { cube([10,100,3],center=true); translate([5-6,0,0+2]) rotate([90,0,0]) cylinder(r=6,h=110,center=true,$fn=30); } } module face(w,h,d) { smudge=0.0001; difference() { cube([w,h,d],center=true); translate([w/2,0,0]) trim(); translate([-(w/2+s...
glb/cad_a820d92fb803.glb
Create a self-watering pot consisting of two main components: a outer pot and a removable internal partition. First, construct the outer pot. The base is a reservoir with a bottom radius of 30mm and a height of 35mm. The walls of this reservoir are 2mm thick. The top section of the pot is a cylinder with a radius of ...
p = "pot"; f = 0.15; rb = 30; rh = 35; pt = 30; ph = 30; sr = 10; sh = 15; tb = 20; tol = 0.3; t1 = 2; t2 = 1; fh = 2; gdia = 3; gpitch = 6; $fn = 60; function r_at(z) = ((pt*z + rb*(rh+ph-z))/(rh+ph)); rt = r_at(rh); pb = rt; module back_cut (offset) { translate([(1-f)*(rt+pb)/2-offset, -rb, 0]) ...
glb/cad_2fa5437aeb52.glb
Create a Parametrized Tube Clamp with a total height of 11.7mm. Start with a base frame extruded to this height, featuring a central horizontal cylindrical cutout with a radius of 3.25mm to accommodate a tube. At the x-coordinate of 29mm, integrate a vertical squeezing mechanism. This consists of a cylinder with a ra...
Closing_Gap = "smooth"; squeeze_diameter = 3; squeeze_position = 29; tube_diameter = 6.5; clamp_height = tube_diameter * 1.8; difference(){ color("deeppink") translate([-0, -0, 0]) linear_extrude(center = false, height = clamp_height, convexity = 10) import (file = "tube_clamp_frame.dxf"); translate([-2,8,c...
glb/cad_04cbbf857788.glb
Create a tapered spacer with a total height of 8.8mm and a central vertical hole 5.5mm in diameter running through the entire length. The base of the spacer is a cylinder with a diameter of 14mm and a height of 2.5mm. On top of this base, add a truncated cone that starts at a diameter of 14mm and tapers up to a top dia...
SpacerMaxOD = 14; SpacerMinOD = 8.8; SpacerTotHt = 8.8; SpacerBaseHt = 2.5; M5 = 5.5; Qty = 4; iRes = 72; TaperHt = SpacerTotHt - SpacerBaseHt; $fn= iRes; module TaperSpacer(S_ODBig = SpacerMaxOD, S_ODSmall = SpacerMinOD, S_THT = SpacerTotHt, S_BHT = SpacerBaseHt) { color("cyan") { difference() ...
glb/cad_c8210f847eec.glb
Create a Hotend schema model consisting of several intersecting geometric volumes. Start by placing a rectangular block measuring 80mm by 60mm by 30mm. Position a second, larger rectangular block measuring 280mm by 30mm by 15mm nearby. Construct a structural frame using two intersecting rectangular slabs: one measuri...
translate([0,15,0]){ color("gray") cube([80,60,30]); } translate([-90,30,0]){ color("silver") cube([280,30,15]); } translate([-100,0,0]){ cube([300,80,4]); cube([300,4,80]); } translate([-5,20,30]){ cube([90,80,4]); cube([90,4,80]); } color("red") translate([-10,50,35]){ cube([100,60,2]); ...
glb/cad_b5f28afa8081.glb
Create a fast-clamp mounting case for a DB9 connector. Start with a rectangular base measuring 38mm in width and 16.6mm in depth, with a height of 1mm. On top of this base, center a rectangular cutout measuring 20mm by 11mm. Add two vertical side walls, each 2mm thick and 22mm high, positioned at the left and right e...
db9_x = 31; db9_y = 12.6; db9_holes =25; db9_vx = 20 ; db9_vy = 11; db9_x2 = 7; db9_y2 = 2; db9_totx = db9_x +2*db9_x2; db9_toty = db9_y +2*db9_y2; db9_Cx = db9_totx/2; db9_Cy = db9_toty/2; module base () { difference() { union() { rotate([90,0,0]){ %translate([db9_Cx-db9_x/2 ,...
glb/cad_849b0b5fea3b.glb
Create a fast-clamp mounting system for an MK8 extruder consisting of two primary ring-shaped clamps. First, create a fan clamp ring with an inner square dimension of 41mm by 41mm and a height of 12mm. The walls should have a thickness of 5mm. Incorporate a fastening mechanism on one side featuring a slot for an M4 n...
use <MCAD/polyholes.scad>; use <fast-clamp05.scad>; use <db9-case.scad>; l_fan = 41; l_nema = 42.5; h_fan = 12; h_nema = 12; bs = 5; ext_fan = (l_nema-l_fan)/2; module round_internal(radius,length, clearance = .1) { translate([-clearance,-length/2,-clearance]) difference(){ cube(size=[radius+clearan...
glb/cad_b69e8678ce3b.glb
Create a bell-shaped object with an overall height of 20mm and an outer radius of 10mm. The object is a hollow shell with a uniform wall thickness of 2mm. The geometry consists of a curved, dome-like top that transitions into a flared, circular base. The top section is formed by the intersection of two spheres: an out...
bellHeight=20; bellRadius=10; bellThickness=2; bellRatio=1; bellCenterSectionLength=0; module belltop(size=10,thickness=1,ratio=1,scalez=1) { thicknessRatio=1+((((thickness*scalez)/(size*ratio))-(thickness/(size*ratio)))/2); union() { intersection() { difference() { sphere((size*ratio)/2,$fn=quality); s...
glb/cad_3c9ca2f9b387.glb
Create a Cat Feeder Frame consisting of a main housing and a detachable bowl. Construct the main housing as a rectangular box with an overall footprint of 84mm x 130mm and a base thickness of 5mm. The front wall is 5mm thick and 120mm wide, featuring a large circular cutout with a 29mm radius centered at the top to a...
$fn=50; difference(){ union(){ cube([84,130,5], center = true); translate([0,-15,20])cube([60,10,40],center=true); } translate([-39.5,45,-2.5])cylinder (h=16, r=.75); translate([39.5,45,-2.5])cylinder (h=16, r=.75); translate([-39.5,-45,-2.5])cylinder (h=16, r=.75); translate([39.5,-45,-2.5])cylinder (h=16, r=.75); t...
glb/cad_8687b06531ad.glb
Create a ball bearing mounted Y belt pulley and tensioner. Start with a central body consisting of a main block 17mm wide, 15mm deep, and 43mm high, with two additional blocks 12mm wide, 6mm deep, and 43mm high attached to the sides, centered at a depth of 9mm. Carve a rectangular void 15mm wide, 20mm deep, and 28mm ...
union() { difference() { translate([0,0,-6])body(); translate([1,27.9,5])rotate([90,0,0])pullySpace(); translate([22, 9, 6])rotate([90, 0, 180])tensionScrew(); translate([22, 9, 26])rotate([90, 0, 180])tensionScrew(); translate([-5, 9, 6])rotate([90, 0, 180])tensionScrew(); translate([-5, 9, 2...
glb/cad_729711f2e255.glb
Create a music toy battery cover by starting with a primary oval base. This base is a cylinder with a radius of 61mm and a height of 4mm, resized to 114mm in width and 61mm in depth. At the coordinates -47.5mm on the X-axis and 0mm on the Y-axis, remove a vertical hole with a diameter of 4mm that spans the full height ...
translate ([51.5,-9,0])cube([10,18,2]); difference() { resize([114,61])cylinder(r=61,h=4,$fn=500); translate ([-47.5,0,0])cylinder(h=4,d=4,d=4,$fn=500); translate ([-47.5,0,1]) cylinder(h=3,d=6,d=6,$fn=500); }
glb/cad_53b805d0356f.glb
Create a Xiaomi Yi camera mount for a ZMR 250 quadcopter. Start with a solid base block that is 73.5mm wide (65.5mm camera width plus 4mm walls), 26.4mm deep, and 8mm high. Carve a camera-shaped void into the top of this block, tilted at a 15-degree angle. The void should accommodate a camera body 65.5mm wide, 26.4mm...
$fn=100; cam_w=65.5; cam_d=26.4; cam_h=46; by=1.7; bz=6.5; lens_x = 45; lens_r = 13; lens_h = 9; hm = 10; wall=4; theta=15; pw = 38; pd = 62; thick=2.5; sw = 20; sh = 2.5; sd = 3.4; off = -1.5; zoff = 5; base_height=8; module camera(by,bz) { difference() { union() { cube([cam_w,c...
glb/cad_e7856d9d5fa7.glb
Create a linear bearing holder for a Y stage. Start with a central base body measuring 59.6mm wide, 69.2mm deep, and 27.7mm high. Hollow out the center of this base by removing a block 33.6mm wide, 40mm deep, and 27.7mm high, and remove a section 59.6mm wide, 22mm deep, and 20.5mm high from the bottom. Add two bearing...
mountLength=29; mountWidth=22; mountHeight=15.5; mountSpan=65; mountSpacing=65-mountLength; bearingLength=23; bearingDiameter=16; rodClearance=12; rodSpacing=49.5; holeSpan=58.6; holeSpacing=37.5; holeDiameter=4; baseplateWidth=59.6; baseplateLength=40; baseBodyX=59.6; baseBodyY=69.2; baseBodyZ=27.7; rodCenterFromTop...
glb/cad_489ebde4d0d9.glb
To complete the OpenSCAD code for your project, you need to define the global variables used in the modules (like `size`, `word_height`, `base_height`, and `add_loop`) and call the modules within a main execution block. Below is the final section of the code. Add this to the bottom of your file: ```openscad // ======...
word_height = 2; base_height = 1; size = 1; add_loop = "true"; part = "merged"; print_part(); module print_part() { if (part == "base") { base(); } else if (part == "words") { words(); } else if (part == "merged") { base(); words(); } else { base(); words(); } } module poly_path3401(...
glb/cad_1afcca52db6c.glb
Create a Playing Card Holder designed to look like a book. The main body is a tray with a total width of 11.2mm, a height of 75.5mm, and a depth of 97mm. This tray contains two internal slots for cards, each measuring 97mm by 71mm by 0.75mm. These slots are separated by a 6.5mm divider and are enclosed by 3mm thick wal...
card = [94, 68, 0.25]; module book(num_slots, num_cards, for_print=false, divider=6.5, wall=3, tol=1) { s_slot = [card[0] + 2*tol, card[1] + 2*tol, card[2]*num_cards + 2*tol]; s_tray = [s_slot[0] + 2*wall, s_slot[1]*num_slots + (num_slots - 1)*divider + 2*wall, ...
glb/cad_f75d357c7a3c.glb
Create a Makerbot Y-Axis Motor Holder by starting with a central rectangular block measuring 50.2 mm in length, 42.2 mm in width, and 10.0 mm in height. Remove a large central cylinder with a diameter of 22.5 mm that passes completely through the thickness of the block. At the two far ends of the block's length, crea...
inch=25.4; $fn=50; l=1.976; w=1.661; h=0.395; r=0.5; module SideHole(){ cube ([0.277, 0.3, 0.135], center=true); for (i=[-1,1]) translate ([0, i*0.15, 0]) rotate ([0, 90, 0]) cylinder (h=0.277, r1=0.0675, r2=0.0675, center=true); } module SmallCylinders(){ cylinder (h...
glb/cad_2dc7df8fcf1f.glb
Create a Merkabah by constructing two identical regular tetrahedra that are interpenetrating and inverted relative to one another. Each tetrahedron should be scaled so that its vertices are 80mm from the center. The vertices of the first tetrahedron are positioned at (±80, 0, -56.57) and (0, ±80, 56.57). The second tet...
module node(){ sphere(d=0.2,$fn=20); } module tetrahedron(){ hull(){ translate([-1,0,-1/sqrt(2.)]) node(); translate([0,1,1/sqrt(2.)]) node(); } hull(){ translate([1,0,-1/sqrt(2.)]) node(); translate([0,1,1/sqrt(2.)]) node(); } h...
glb/cad_e7951f13685c.glb
Create a Merkabah by constructing two identical regular tetrahedra that interpenetrate each other. For the first tetrahedron, place four spheres with a diameter of 2mm at the vertices. Position two vertices at (-10, 0, -7.07) and (10, 0, -7.07), and the other two at (0, 10, 7.07) and (0, -10, 7.07). Create a solid conv...
module node(){ sphere(d=2,$fn=20); } module tetrahedron(){ translate([-10,0,-10/sqrt(2.)]) node(); translate([10,0,-10/sqrt(2.)]) node(); translate([0,10,10/sqrt(2.)]) node(); translate([0,-10,10/sqrt(2.)]) node(); } hull(){ tetrahedron(); } rotate([0,180,0]) hull(){ te...
glb/cad_84cb16c26f72.glb
Create an X-Bar End Cap by constructing a hollow rectangular box with outer dimensions of 28mm by 28mm and a height of 12.5mm. The walls of this box should be 3mm thick. Inside the box, create a central support structure consisting of a 10mm by 10mm by 30mm cube centered within the volume. To this central core, attach ...
scale([1,1,.5]) union() { difference() { union() { translate([0,0,12.5]) cube([28,28,25],center=true); }; union() { cylinder(10,3,3,center=true,$fn=50); translate([0,0,15.5]) cube([26,26,25],center=true,$fn=50); }; }; difference() { union() { translate([...
glb/cad_2aedc9c9a6c7.glb
Create a power supply mount for an HEC-250SR-T unit. Start with a rectangular base measuring 90mm by 50mm with a thickness of 3mm. Add vertical support walls that are 10mm high: one wall 5mm wide running the full 50mm depth along the left edge, another 5mm wide wall along the right edge, and a central support block 5mm...
difference() { union() { cube([90,50,3]); translate([42.5,0,0]) cube([5,15,10]); translate([0,0,0]) cube([90,5,20]); translate([0,0,0]) cube([5,50,10]); translate([85,0,0]) cube([5,50,10]); }; translate([8,7,0]) union() { translate([0,0,0]) cube([26,3...
glb/cad_0c7187fc3624.glb
Create a power supply mount consisting of a base and two symmetrical hooks. Start with a base block measuring 100mm in length, 10mm in width, and 10mm in height. From this base, remove a central rectangular section measuring 85mm by 10mm by 40mm, starting 7.5mm from the left edge and 2mm from the bottom. At each end of...
cube([10,0.25,15]); translate([0,0,25]) cube([10,0.25,15]); translate([90,0,0]) cube([10,0.25,15]); translate([90,0,25]) cube([10,0.25,15]); difference() { union() { translate([5.5,0,0]) cube([89,10,40]); translate([0,0,38]) cube([10,10,4]); translate([90,0,38]) cube([10,10,4]); ...
glb/cad_11964b4f6d51.glb
Create an IKEA Drawer Support by starting with a cube that is 12mm on all sides, rotated 45 degrees on the Y-axis and 90 degrees on the Z-axis. From this primary volume, remove a large rectangular section measuring 20mm by 20mm by 20mm, positioned at x -15, y 0, and z -20. Additionally, carve out two cylindrical holes ...
difference() { rotate([0,45,90]) cube([12,12,12]); union() { translate([-15,0,-20]) cube([20,20,20]); translate([-6,8.5,4]) cylinder(10,2,2,true,$fn=25); translate([-6,8.5,1]) #cylinder(2,4,2,true,$fn=25); }; };
glb/cad_248017df6a2d.glb
Create a Love Letters ornament hook by constructing a semicircular ring. Start with a solid cylinder that has a radius of 5mm, a height of 3mm, and a high facet resolution for smoothness, centered on the origin. Remove a smaller concentric cylinder from the center with a radius of 3mm and the same 3mm height to create ...
quality = 100; cir_r = 5; cir_h=3; cir_t = 2; difference() { cylinder(cir_h,cir_r,cir_r,center=true,$fn=quality); union() { cylinder(cir_h,cir_r - cir_t,cir_r - cir_t,center=true,$fn=quality); translate([cir_r,0,0]) cube([cir_r*2,cir_r*2,cir_h*2],center=true); }; };
glb/cad_245d458436cd.glb
Create a holder for a 13-pin trailer plug. Start by constructing a main body that is a union of a cylinder with a radius of 25mm and a rectangular block measuring 32mm wide, 20mm deep, and 35mm high, both sharing the same base. From this combined volume, remove a central cylindrical hole with a radius of 22mm and a hei...
mounting = 2; height = 35; deck = [32, 20, height]; union() { difference() { difference () { union() { translate([-deck[0]/2, deck[1]-10, 0]) cube(deck); cylinder(h=height, r=25); } cylinder(h=height, r=22); } if(mounting == 0) { translate ([0,25,20]) { rotate([-90,0,0]) { hull...
glb/cad_1ee38afbf175.glb
Create a brushless motor mount consisting of a main vertical plate and a supporting base. The main body is a rectangular block 38mm wide, 50mm tall, and 2mm thick. The top edge of this plate is rounded with a radius of 19mm, creating a semi-circular profile. Remove several holes and slots from this geometry: create tw...
$fn=50; difference() { union() { hull() {translate([0,0,23])rotate([90,0,0])cylinder(h=2,r=19); translate([-19,-2,0])cube([38,2,3]); } translate([-19,-2,0])cube([38,50,2]); } hull() { translate([6,0,10])rotate([90,0,0])cylinder(h=2,r=3); ...
glb/cad_ea4e4283e52f.glb