Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Reuleaux Triangle and its matching holder. The Reuleaux Triangle is a constant-width shape formed by the intersection of three circles centered at the vertices of an equilateral triangle. Scale the triangle so its width is 40mm and its thickness is 5mm. Center a circular hole with a diameter of 20mm through th...
function sum(a, z=0, i=0) = i < len(a) ? sum(a, z + a[i], i+1) : z; function mean(a) = sum(a, a[0], 1) / len(a); function tetrahedron(d = 1) = let( p = norm([d, d]) / 2, ps = [ [p, 0, 0], [0, p, 0], [0, 0, p], [p, p, p], ], c = mean(ps), verts = [ for (p = ps) ...
glb/cad_cabf5ddfda4a.glb
Create a Printable X/Y Linear Rail assembly consisting of a rack and a shuttle mechanism. First, construct the rack. Create a support base with a total height of 6.2mm and a width of 6.2mm. Along the top edge, generate 19 gear teeth. Each tooth should have a height of 20mm, a base segment length of 1.55mm, and a top s...
bspace = 31/2; ybase = 42.5; xbase = 42.5; holerad = 1.75; shuttlelength = 50; shuttlewidth = 80 ; tubelength = 100; v608innerdiam = 6; pi=3.1415926535897932384626433832795; innerRadius=3.1; borders=2.5; diametralPitch=12; numberOfTeeth=19; pressureAngle=20*pi/180; centerAngle=25; divs = 30; div = divs; module r...
glb/cad_ae0e735ccf6c.glb
Create a Pillow Block Linear Guide Block. Start with a rectangular base measuring 60mm in width, 20mm in length, and 10mm in height. Centered on this base, remove two vertical cylindrical holes with a radius of 2.25mm, positioned 45mm apart from each other along the width. On top of the base, center a vertical block t...
d = 20; h = 31; E = 30; W = 60; L = 20; F = 51; G = 10; P = 30; B = 45; S = 6.6; MfiveR = 2.25; MfourR = 1.75; translate([0,0,G/2]){ difference(){ cube([W,L,G],center=true); translate([B/2,0,0]){ cylinder(r=MfiveR,h=G,center=true,$fn=200); } translate([-B/2,0,0]){ cylinder(r=MfiveR,h=G,center=true,$fn=2...
glb/cad_08e7e95b6927.glb
Create a garden stake consisting of a flat sign head and a supporting post, both with a thickness of 3mm. First, construct the sign head as a capsule shape by creating a hull between two cylinders, each with a radius of 17.5mm and a height of 3mm. Position this head so its center is at the top of the assembly. Next, cr...
Size = 10; Text = "LETTUCE"; Letters = 7; Thickness = 3; Centerx = -5; Centery = 3; Width = 5; Length = 100; translate([0,Length,0]){ difference(){ translate([(Letters*Size)/4+Centerx,(Letters*Size)/4+Centery,0]){ hull(){ cylinder(Thickness,(Letters*Size)/4,(Letters*Size)...
glb/cad_a89f5de237e4.glb
Create a baseball bat by joining four coaxial geometric sections along a single center axis. Start with a handle end consisting of a cylinder with a radius of 1mm and a height of 0.4mm, topped with a sphere of the same 1mm radius that is scaled to a height of 0.4mm. Attached to this is the handle, a cylinder with a rad...
Handle_End_Length = 0.4; Radius_of_Handle_End = 1; Amount_of_Handle_End_Taper=0.25; Handle_Radius=0.5; Handle_Length= 11; Taper_Length= 13; Barrel_Length= 9; Barrel_Radius= 1; $fn=150; l_handleod = Handle_End_Length ; r_handleod = Radius_of_Handle_End; l_handletaper=Amount_of_Handle_End_Taper; r_handle=Handle_Ra...
glb/cad_a81da0d556f1.glb
Create a filament guide consisting of two intertwined, spiral-shaped wyrms. Each wyrm is composed of 67 individual spheres, each with a 12-facet resolution. The spheres in each wyrm should gradually decrease in diameter from a maximum of 7.5mm down to a smaller size as they progress. Position these spheres along a hel...
$fn = 12; nozzle = 0.4; postDiameter = 12; numWyrms = 2; wyrmSegments = 67; wyrmLength = 67; wyrmDiameter = 15; wyrmRotations = 2; wyrmPhase = 90; wyrmRatio = 1.5; thing(); module thing() { difference() { wyrms(numWyrms, wyrmSegments, wyrmLength, wyrmDiameter, wyrmRotations, wyrmPhase, ...
glb/cad_cf3c536265ed.glb
Create a Cafe Table Balance Foot consisting of two separate components: an inner leg adjuster and an outer foot. For the inner leg adjuster, create a cylinder with an outer diameter of 25.7mm and a height of 35mm. Subtract a central cylindrical hole with a diameter of 22.2mm that starts 2mm from the bottom. To create ...
InnerDia=22.2; OuterDia=InnerDia+3.5 ; ExtDia=OuterDia+5+0.7 ; module LegPart(Hgt=35) { union() { difference() { union() { cylinder(d=OuterDia,h=Hgt) ; sphere(d=OuterDia); } union() { translate([0,0,2]) cylinder(d=InnerDia,h=Hgt) ; translate([0,0,3]) sphere(d=In...
glb/cad_7ae8b19de296.glb
Create a Z-axis fine adjustment tool starting with a central rectangular block measuring 150mm in length, 30mm in width, and 20mm in height. Carve a longitudinal slot 1.5mm wide and 20mm deep through the center of the block along its length. Along the center line of the block, create four circular holes with a diamet...
difference() { cube([150,30,20],center=true); translate([0,-5,0])cylinder(20,7.5,7.5,center=true); translate([40,-5,0])cylinder(20,6.5,6.5,center=true); translate([-40,-5,0])cylinder(20,6.5,6.5,center=true); translate([0,-5,0])cube([150,1.5,20],center=true); translate([20,0,0])bullone(); translate([-20,0,0])bullone(); ...
glb/cad_130b42c499c5.glb
Create a Filament Spool Stacker consisting of a circular base and a hollow cylindrical tube. Start with a solid cylinder for the base that is 50mm in diameter and 8mm high. On top of this base, center a hollow tube with an outer diameter of 47.2mm and a height of 25mm, maintaining a wall thickness of 4mm. Add two small...
base_diameter = 50; base_height = 8; tube_diameter = 47.2; tube_height = 25; tube_thickness = 4; bolt_diameter = 3.7; nut_diameter = 6.5; type = "stacker"; difference() { union() { cylinder(base_height, base_diameter/2, base_diameter/2); translate([0, 0, base_height]) { cylinder(tube_height, tube_diameter...
glb/cad_699acb2108e8.glb
Create a spindle mount for a Prusa X-carriage designed to hold a tool with a 43mm diameter neck. Start by creating a main cylindrical tool grip with an inner diameter of 43mm and an outer diameter of 51mm, extending to a height of 34mm. Add a wider cylindrical flange at the base with an outer diameter of 61mm and a thi...
$fn=60; BID = 43; BOD = 66; BH = 34; Wall = 2.5; Flange = 7.5; m4hole = 4.2; m4nutd = 8.25; m4nuth = 3.25; cutoff = 28mm; module SpindleMount() { difference(){ union(){ cylinder(r1=BID/2+Wall,r2=BID/2+1.5*Wall,h=BH); cylinder(r2=BOD/2-Wall,r1=BOD/2,h=3*Wall); rotate(a=90)hull(){ ...
glb/cad_01ecae9783e1.glb
Create a printable protractor by starting with a semi-circular base that is 80mm in diameter and 1.5mm thick. Center a small square hole with a width of 2mm and a height of 1mm at the origin of the flat edge. Carve two concentric arcs of measurement marks into the face of the semi-circle. The outer ring of marks shou...
t = 1.5; a = 5; fn = 100; w = t/1.2; module prot() { difference() { cylinder(1.5,40,40,true,$fn=fn); translate([0,-80/2 - 5,0]) cube(80,true); for (i = [0:90/a]) { if (i/2 == round(i/2)) { rotate([0,0,i*a]) translate([0,30,-1]) arrow(1); rotate([0,0,-i*a]) translate([0,30,-1]) arrow(1); ...
glb/cad_7d52aeee82b9.glb
Create a Fan Blower mount consisting of a main fan block and an attached battery holder. Start by creating a central rectangular block 45mm wide, 45mm deep, and 19.5mm high. On top of this block, center a cylinder with a radius of 22.5mm and a height of 25mm. Bore a hole through the center of this cylinder and the bloc...
add_battery_holder=true; pipe_diameter=33; fan_size=40; battery_depth=16.5; battery_width=25.3; battery_height=52; block_height=battery_depth + 3; module fan_blower(){ difference(){ union(){ translate([0,0,block_height/2]) cube([fan_size+5,fan_size+5,block_height], center=true); translate([0,0,block_height]) cylinde...
glb/cad_1f33038d8ff1.glb
Create a Flickering LED Tealight Candle consisting of four main components: a base, a cap, a battery pack, and a diffuser. Construct the base as a hollow cylinder with an outer diameter of 39.5mm and a total height of 19mm. The walls should be 2mm thick, leaving an inner cavity. Create a cap that fits atop the base. ...
$fn = 50; tealight_diameter = 39.5; tealight_height = 19; tealight_cap_height = 5; tealight_lip = 5.5; tealight_wall_thickness = 2; tealight_tolerance=0.1; led_width = 4.3; led_length = 9.8; led_height = 2.1; led_hole_position = 3.5; led_hole_diameter = 1.5; pc_diameter = 5; pc_height = 2.3; pc_hole_position = 1.75; pc...
glb/cad_628d93fb42ba.glb
Create a Hard Disk Adapter for mounting a 3.5-inch drive into a 5.25-inch bay. Start with a flat rectangular base plate measuring 146.35mm by 146.35mm with a thickness of 1.27mm. From this base, extend two parallel side walls upward to a height of 15.24mm. These walls should be 5.08mm wide and positioned 17.78mm from...
$fn=50; module hd() { difference() { cube([40,57.5,9.5]); rotate(a=90,v=[0,1,0]) { translate([-2.5,11,-1]) cylinder(r=0.6,h=42); translate([-2.5,27.7,-1]) cylinder(r=0.6,h=42); translate([-2.5,51.3,-1]) cylinder(r=0.6,h=42); } } } module hd_adapter_bolz() { rotate(a=90,v=[0,1,0]) { ...
glb/cad_729d7eb70202.glb
Create a Curtain Clip Mark XI by designing a flat 2D profile and extruding it to a height of 3mm. The main body is based on a circle with a radius of 5mm, from which a smaller concentric circle with a radius of 2.5mm is removed to create a ring. To this ring, attach a rectangular arm extending outward. This arm begins ...
$fa=0.1; $fs=0.01; linear_extrude(height = 3) clip2d(); module clip2d(){ difference(){ circle(r=5 ); circle(r=2.5); translate ([-5,-2.5 ]) polygon(points = [ [5, 0], [20, 0], [20, 5] , [5, 5] ] ); } translate ([-5,-5 ])polygon(points = [ [5, 0], [20, 0], [20, 2.5] , [5, 2.5] ]); translate ([ -5, 2.5 ])...
glb/cad_8b64c9960d10.glb
Create a vertex connector for a cube-shaped platonic solid. The part is a central hub with three radiating arms, each designed to hold a rod with a 3mm radius. Start by creating a central vertical cylinder with a 3mm radius and a height of 50mm. Around this center, place three outer cylinders, also with a 3mm radius,...
radius = 3.0; thickness = 2.6; length = 10; phi = (1 + sqrt(5)) / 2; m = 0.1; $fn = 18; angle = acos((1 * 1 + 1 * 0 + 1 * 0) / (sqrt(3)*sqrt(1))); edges = 3; translate([0,0,cos(angle)*(length + 0*thickness) + 2 * radius * sin(angle)]) mirror([0,0,1]) intersection(){ difference(){ for (i = [0:edges-1]) { rotate ...
glb/cad_0c9192e8b5db.glb
Create a parametric divider for an aluminum tool case consisting of four identical repeating segments aligned side-by-side. Each segment is composed of two rectangular prisms. First, create a base rectangular plate measuring 19mm in length, 72mm in height, and 2.6mm in thickness. Second, centered on top of this plate, ...
length=19; height=72; width=2.6; fullWidth=6.5; gap=3.1; module spacer(count) { for (i=[0:count-1]) { translate([(length-gap)*i, 0, 0]) union() { translate([0, 0, (fullWidth/2-width/2)]) cube([length, height, width]); translate([gap, 0, 0]) cube([length-(gap*2), height, fullWi...
glb/cad_bbf6d263aced.glb
Create an OSHW logo wheel for a parametric robot. Start by constructing a main cylindrical body with a radius of 26.5mm and a height of 6mm, centered on the Z-axis. Carve a circular groove into the center of the cylinder to create a channel for an O-ring; this channel is formed by removing a torus-like volume created b...
rh_diam1 = 8; rh_diam2 = 21; rh_height = 6; rh_plate_height = 2; module raw_wheel(or_idiam=50, or_diam=3, h=6) { r = or_idiam/2 + or_diam; l = or_diam*sqrt(2)/2; difference() { cylinder (r=r, h=h, $fn=100,center=true); rotate_extrude($fn=100) translate([r-or_diam/2,0,0]) polygon( [ [0,0...
glb/cad_5450ebb44ef3.glb
Create a fuel canister support leg with a total height of 4mm. The structure consists of a clip designed to grip the rolled metal edge of a canister and a leg that extends to the ground. The clip portion is based on a rectangular profile 2.7mm wide and 4.5mm high, with 0.5mm beveled corners. Within this clip, create a...
edge_height = 4.5; edge_width = 2.7; edge_bevel_radius = 0.5; metal_thickness = .8; include_support_peg = "Include_Support_Peg"; foot_width = 4; foot_thickness = 2.25; foot_inner_length = 10; foot_lower_height = 5; foot_base_length = 15; cannister_contact_segment_height = 7; inner_flange_height = 3.1; outer...
glb/cad_e272b6e5ac86.glb
Create a Filament Spool Screwless Stacker by constructing a hollow vertical tube. Start with a cylinder that has an outer diameter of 46mm and a height of 45mm, with a wall thickness of 2mm. To create the opening for the spool, remove a central cylindrical core with a diameter of 45mm, starting from a height of 5mm fro...
base_diameter = 55; base_height = 0; tube_diameter = 46; tube_height = 45; tube_thickness = 2; bolt_diameter = 3.7; union() { rotate([0,0,90]) difference() { union() { cylinder(base_height, base_diameter/2, base_diameter/2); translate([0, 0, base_height]) { cylinder(tube_height, tube_diameter/2, t...
glb/cad_fc9715a3ab62.glb
Create a Magnetized Soft Jaw by starting with a solid rectangular block measuring 137mm in width, 28mm in height, and 11mm in depth. Hollow out the center of this block to create a U-shaped pocket that is 131mm wide and 22mm high, leaving a wall thickness of 3mm on the sides and bottom, and a surrounding lip depth of 5...
vise_jaw_width = 125; vise_jaw_height = 21; surround_depth = 5; overlap = 1.26; soft_jaw_face_thickness = 6; soft_jaw_wall_thickness = 3; cutout_guide_radius = 3; cutout_angles = [45,90]; fudge_factor = 0.5; magnet_diameter = 10; magnet_depth = 4; magnet_count = 3; guide_radius = 3; guide_angles = [45, 90]; ...
glb/cad_5a35d6654e3d.glb
Create a 12mm Prop Wrench by starting with a main cylindrical disk that is 6mm thick and has a radius of 35mm. In the center of this disk, remove a hexagonal hole with a flat-to-flat width of 12mm (a radius of 7.16mm for the circular approximation) and a height of 6mm. To create the handle grip and weight reduction, ...
difference() { cylinder(h=6,r=35,$fn=100); cylinder(h=6,r=7.16,$fn=6); $fn=50; translate([0,35,0]) cylinder(h=6,r=10); translate([35,0,0]) cylinder(h=6,r=10); translate([0,-35,0]) cylinder(h=6,r=10); translate([-35,0,0]) cylinder(h=6,r=10); translate([25,25,0]) cylinder(h=6,r=10); tr...
glb/cad_65f9ceff27a8.glb
Create a guitar string winder consisting of three main components: a winder head, a crank arm, and a handle pin. First, construct the winder head as a rectangular block measuring 24mm by 11mm by 18mm, with a central rectangular cavity removed from the top that measures 21mm by 8mm by 15mm. Second, create the crank ...
print_pin = 1; print_handle = 1; print_crank = 1; winder_width=21; winder_height=8; winder_depth=15; handle_radius=5; handle_radius2=9; handle_length=75; crank_length=(150 / 3); crank_height=4; crank_width=(winder_height + 3); module winder_head() { difference() { cube(size = [winder_width + 3, winder_height + 3,...
glb/cad_bee188147361.glb
Create a Filament Spool Tool Holder Cap consisting of a circular base and a hollow cylindrical tube. Start with a solid cylinder for the base that is 55mm in diameter and 8mm high. On top of this base, center a second cylinder with an outer diameter of 47.2mm and a height of 25mm. This upper cylinder must be hollowed o...
base_diameter = 55; base_height = 8; tube_diameter = 47.2; tube_height = 25; tube_thickness = 4; bolt_diameter = 3.7; nut_diameter = 6.5; type = "utility"; difference() { union() { cylinder(base_height, base_diameter/2, base_diameter/2); translate([0, 0, base_height]) { cylinder(tube_height, tube_diameter/...
glb/cad_4d7e9995a1dd.glb
Create a Pixhawk button and USB/LED module mount. Start by creating a base plate that is a hull of two cylinders, each with a radius of 6.5mm and a height of 12mm, positioned 74mm apart from outer edge to outer edge. Subtract two cylindrical holes with a radius of 4.5mm from the center of each end to create mounting po...
rod_d = 9; rod_spacing = 74; thickness = 12; thickness_edge = 2; rod_r = rod_d / 2; offset = (rod_spacing - rod_r * 2)/2; e = 0.1; generic_offset = 3; button_r = 9/2; button_offset = button_r + generic_offset; led_w = 19.1; led_h = 5; led_offset = generic_offset; led_side = 3.5; led_from_usb = 7; module main...
glb/cad_6572ef72ad17.glb
Create a Customizable Ramp with Stones. Start by constructing a wedge-shaped base that rises from a height of 0mm to 25.4mm over a horizontal run of 100mm. The base should have a width of 46mm at the top, with the bottom width being twice that of the top (92mm), creating a tapered profile. On the inclined top surface ...
U=7; V=6; W=5; master_seed=5; maximum_rotation_angle=30; n=8; power=0.4; inch=25.4+0; inches=inch; num_stones=16; path_width=46; path_rise=25.4; path_run=100; base_base_ratio=2; dimensions=[U,V,W]; half_dimensions=[U/2,V,W]; incline=atan(path_rise/path_run); echo(str("incline angle = ",incline," degrees."...
glb/cad_1c3fd04b1aff.glb
Create a Customizeable Wheel And Track Set starting with a rectangular base measuring 75mm wide, 140mm long, and 3mm thick. On the left side of the base, construct a square wheel track by placing a series of cylindrical humps, each 10mm high and 30mm wide, spaced every 20mm along the length. These humps should be hollo...
Width = 75; Length = 140; Thickness = 3; WThickness = 5; STWidth = 30; HeightHumps = 10; Extra = 5; HPHeight = 30; HPWidth = 30; ScaleZ = 0.35; Depth = 10; SWHeight = 10; ARadius = 3; Radius = 10; color("GreenYellow"){ cube([Width,Length,Thickness]); } translate([WThickness,0,0]){ for(c=[0:Height...
glb/cad_fafd76a8207b.glb
Create a flashlight cone consisting of a cylindrical base and a conical top. Start by creating a hollow cylindrical base with an outer radius of 17.8mm and an inner radius of 17.2mm, reaching a height of 16mm. At the top of this base, add a thin ridge 1.2mm high that extends to the inner radius. Around the outer wall o...
test = false; head_diameter = 34.5; base_height = 16; base_wall = 1.6; cone_height = 90; cone_wall = 0.8; cone_tip_diameter = 14; closed_tip = false; gaps = false; xy_space = 0.6; num_grips = 5; grip_height = 0.3; grip_width = 2; grip_slope = 0.15 * base_height; grip_runup = 0.05 * base_height; num_gaps = 5; gap...
glb/cad_12858f13ab9f.glb
Create a Raspberry Pi Camera Holder starting with a rectangular base plate measuring 25mm by 40mm with a thickness of 1mm, centered at X-10 and Y-5. From this base, extend a vertical rectangular wall 3mm wide, 30mm deep, and 50mm high. Within this vertical wall, carve out a rectangular window measuring 9mm wide and 19m...
TOTAL_WIDTH=30; BORDER_WIDTH=3; BORDER_HEIGHT=50; translate([-10,-5,0]){ cube([25,40,1]); } difference(){ translate([-BORDER_WIDTH,0,0]){ cube([BORDER_WIDTH,TOTAL_WIDTH,BORDER_HEIGHT]); } translate([-BORDER_WIDTH-1,10,28]){ cube([9,9,19]); } translate([-BORDER_WIDTH-1,2,22]){ cube([BORDER_WIDTH/2,25,...
glb/cad_884161a96afc.glb
Create an Arduino Nano Wirewrap panel by starting with a rectangular base measuring 43mm in length, 31mm in width, and 3mm in thickness. At each of the four corners of the base, add a low-profile cylindrical pad with a diameter of 10mm and a height of 0.4mm. Pierce the base with a series of vertical holes, each 1.4mm ...
Length=43; Width=31; Thickness=3; PinHole=1.4; PinSpacing=2.5; RowApart=15; NumPins=16; fn=10; difference () { union () { translate([0,0,0]) cube([Length,Width,Thickness]); translate([0,0,0]) cylinder(h=0.4,d=10); translate([Length,0,0]) cylinder(h=0.4,d=10); translate([0,Width,0]...
glb/cad_09856c8143e8.glb
Create a conductive wedge for a breadboard by starting with a solid rectangular block that is 12.3 mm wide, 6.5 mm high, and 2.15 mm deep, centered on the origin. To create the wedge profile, remove a section from the top of the block using a cutting volume that is also 12.3 mm wide and 2.15 mm deep, but extends to 13 ...
nozzle = 0.4; width = 12.70; depth = 2.15; height = 6.50; offset = (depth - 1.00) / 2; thing(); module thing() { rotate(180-atan2(depth-offset, height), [1, 0, 0]) difference() { cube([width-nozzle, height, depth], center=true); translate([0, 0, depth/2]) rotate(atan2(depth-offse...
glb/cad_307ad62abdbc.glb
Create a Customizable Small Parts Box consisting of a bottom tray and a lid. For the bottom tray, create a solid rectangular block with a total height of 15mm. The outer walls should be 4mm thick, and the floor should be 3mm thick. The interior is divided into a grid of bins by inner walls that are 2mm thick. The lay...
part = "bottom"; INNER_WALL_THICKNESS=2; OUTER_WALL_THICKNESS=4; BOX_FLOOR_THICKNESS=3; HEIGHT=15; MINIMUM_BOX_LENGTH=100; MINIMUM_BOX_WIDTH=100; EDGE_STYLE="column"; ROW_WIDTHS=[40,35,30]; BIN_LENGTHS=[[ 40 , 35 ],[ 30 , 20 ],[ 24 , 24 , 18 , 16 ]]; BIN_TEXTS = "30,25|20,16|12,10,8,6"; LID_TEXT = "M3 Hex...
glb/cad_2844038abf8b.glb
Create a bike light mount adapter plate by starting with a base rectangular block 17mm wide, 22mm long, and 1.6mm thick. Centered on this base, add a second rectangular block that is 12mm wide, 33mm long, and 6mm high, positioned so it extends 11mm beyond the base's length. From the center of the assembly, remove a cyl...
$fn=40; difference () { union () { cube(size=[17,22,1.6]); translate([2.5,0,0]) cube(size=[12,33,6]); } translate([17/2,22/2,0]) cylinder(r=9.5/2,h=2.6); translate([17/2,22/2,0]) cylinder(r=3.8/2,h=7); translate([5.5,33-5.75,0]) cube(size=[6,4,1.25]); } difference() { translate([17/2,22/2,0]) cylinder(r=4.2/2,h=2.6);...
glb/cad_3979fda8c77a.glb
Create a drag chain mount consisting of a base plate and a vertical support structure. Start with a rectangular base plate measuring 55mm by 10mm with a thickness of 3mm, centered at the origin. At one end of the base, construct a vertical housing to hold the drag chain. This housing is a block 38mm long, 23mm wide, ...
include <MCAD/triangles.scad> include <MCAD/shapes.scad> assembled = 0; module dragHolders () { difference () { union () { cube ([38,23,25]); } translate ([3,23+1-12,-1]) cube ([22,12, 25+2]); translate ([3,3,3]) cube ([35+1,17, 22+1]); translate ([-2,23/2,17+3]) rotate ([0,90,0]) cyl...
glb/cad_3b2b53b6d822.glb
Create a Prusa i3 rework bowden mount for a generic J-head. Start by creating a rectangular block that is 12.7mm wide, 40mm deep, and 10.5mm high. Position this block so its base is 23mm above the origin. Within this block, create a central vertical opening for the hotend. Then, add two vertical bolt holes, each with...
use <mount remix.scad> module fanslot() { cube([3, 7, 28.5]); } translate([0, 0, 33.5]) rotate([0, -180, 0]) difference() { union() { translate([0, 4, 23]) cube([12.7, 40, 10.5]); } translate([0, 24.15, 23]) hotend_opening(); translate([6.35, 10.15, 17]) cylinde...
glb/cad_16943683d697.glb
Create a Prusa i3 rework bowden mount for a generic J-head. Start with a base rectangular block measuring 40mm x 40mm x 8mm. At the four corners of this base, create four vertical holes with a diameter of 4.3mm and a depth of 10mm. To accommodate nuts, carve out rectangular slots measuring 7.3mm x 20mm x 4mm centered...
module hotend_opening() { translate([-0.1, 0, 0]) rotate([0, 90, 0]) cylinder(d = 16.1, h = 3.9); translate([3.6, 0, 0]) rotate([0, 90, 0]) cylinder(d = 12.1, h = 5.7); translate([9.3, 0, 0]) rotate([0, 90, 0]) cylinder(d = 16.1, h = 3.9); } union() { difference() { cube([40, 40, 8]); ...
glb/cad_3074ddfd6b0f.glb
Create a sleeve shaft for a sunshade by constructing a tiered cylindrical object with a hollow center. Start by creating a wide base cylinder with a diameter of 60mm and a height of 6mm. Centered on top of this base, add a second cylinder with a diameter of 50mm and a height of 25mm. Finally, remove a coaxial cylindric...
$fn= 150; difference() { union() { cylinder(6, d=60); cylinder(25, d=50); } translate([0,0,-0.1]) cylinder(26, d=36); }
glb/cad_f59c5c4da2e1.glb
Create a quarter-round shelf called an Etagere quart de rond. Start by creating a flat, quarter-circle plate with a radius of 150mm and a thickness of 10mm. This plate should be positioned such that its two straight edges align with the X and Y axes. From this plate, remove a rectangular section measuring 150mm by 300m...
$fn=200; difference(){ cylinder(r=150,h=10); translate([-150,-150,-1]) cube([150,300,20]); translate([0,-150,-1]) cube([150,150,20]); } difference() { translate([0,0,-20]) cube([10,2,20]); rotate([90,0,0]) translate([5,-15,-5]) cylinder(r=2,h=10); } rotate([0,0,90]) difference() { #translate([0,-2,-20]) cube...
glb/cad_23d60a007fab.glb
Create a rectangular storage box for a Minecraft chess set. The main floor of the box should be a flat rectangular plate measuring 207.5mm in length, 94.5mm in width, and 1mm in height. Surround this floor with four vertical walls that are each 1mm thick and 6mm high. Two walls should run the full length of the floor, ...
use <write/Write.scad> dx=205+2+.5; dy=92+2+.5; t=1; dz=5; cube([dx,dy,t]); translate([-t,0,0]) cube([t,dy,dz+t]); translate([dx,0,0]) cube([t,dy,dz+t]); translate([-t,-t,0]) cube([dx+2*t,t,dz+t]); translate([-t,dy,0]) cube([dx+2*t,t,dz+t]); translate([1.5,1.5,0]) cube([t,dy-3,dz+t]); translate([dx-t-1.5,1.5,0]) cu...
glb/cad_e3f3fa1293b0.glb
Create a rectangular storage box for a Minecraft chess set with internal dimensions of 205mm in length, 92mm in width, and 30mm in height. The box should be constructed using walls and a base that are each 1mm thick. Start by creating a flat rectangular floor measuring 205mm by 92mm with a thickness of 1mm. Add four ve...
use <write/Write.scad> dx=205; dy=92; t=1; dz=30; cube([dx,dy,t]); translate([-t,0,0]) cube([t,dy,dz+t]); translate([dx,0,0]) cube([t,dy,dz+t]); translate([-t,-t,0]) cube([dx+2*t,t,dz+t]); translate([-t,dy,0]) cube([dx+2*t,t,dz+t]); translate([dx/2,-t,dz/2-5]) rotate([90,0,0]) write("J. Schleter 2014",t=1.5...
glb/cad_4906a52ffae4.glb
Create a storage box for a Minecraft chess set. The main body is a rectangular floor measuring 200mm by 87mm with a thickness of 2mm. Surround this floor with outer walls that are 10mm high and 2mm thick on the left, right, top, and bottom edges. Add internal divider walls, also 10mm high and 2mm thick, to create compa...
dx=200; dy=87; t=2; h=10; ph=17; cube([dx,dy,t]); translate([-t,0,0]) cube([t,dy,h]); translate([dx,0,0]) cube([t,dy,h]); translate([-t,-t,0]) cube([dx+2*t,t,h]); translate([-t,dy,0]) cube([dx+2*t,t,h]); translate([0,dy-5,0]) cube([76,5,h]); translate([75+20,dy-5,0]) cube([dx-76-20,5,h]); rook(0); rook(dx-16); bishop(...
glb/cad_07e2c4f02555.glb
Create a Polygon Construction Toy triangle. Start by constructing an equilateral triangle with a side length of 50mm and a thickness of 6mm. At each of the three vertices, create a connection joint. Each joint consists of a central rectangular pad and two flanking outer pads. The central pad is a block 6mm wide, 3mm ...
sides = 3; sidelen = 50; pad_offset = sidelen * 0.22; tall = 6; thick = 3; nub_rad = (tall-1.5)/2; nub_min_rad = nub_rad * 0.4; nub_protrusion_male = 0.37; nub_protrusion_female = 0.45; nub_clearance = 0.25; is_rounded = 1; show_axis_line = 0; stick_in_dist_center_pad = 4.5; stick_in_dist_outer_pad = 4.07; stick_...
glb/cad_d8220a0d9499.glb
Create a pentagonal construction toy piece. The main body is a regular pentagon with a side length of 50mm and a thickness of 6mm. At the center of the pentagon, create a circular hole with a radius of approximately 21.25mm (85% of the minimum radius from the center to the side) and a wall thickness of 3mm. At each of...
sides = 5; is_rounded = 1; show_axis_line = 0; sidelen = 50; pad_offset = sidelen * 0.22; tall = 6; thick = 3; PI = 3.14159265359; inner_angle = 360 / (sides * 2); outer_angle = 90 - inner_angle; echo("sides = ",sides); echo("inner_angle = ",inner_angle); echo("outer_angle = ",outer_angle); minrad = sidelen * ta...
glb/cad_baeac25b7b4b.glb
Create a Sewer Straight Sluice tile by constructing a base square block measuring 50mm x 50mm with a height of 7.5mm. On the top surface of this block, center a large cylindrical cutout to create a curved trough. This cylinder should have a radius of 25mm and be positioned such that its center is at the edge of the b...
include <../../lib/forge_lib.scad> module smooth_tile() { cube([25,25,7.5]); translate([.325,.325,7.5]) cube([24.35,24.35,2]); } module negative() { intersection() { union() { rotate([0,30,0]) translate([0,-.5,0]) cube([.75,51,10]); rotate([0,18,0]) translate([8,-.5,0]) cube([.75,51,10]); ro...
glb/cad_844879c267e9.glb
Create a wheel by starting with a main cylinder that is 15mm thick and has a radius of 100mm, using a 50-facet resolution for its circular profile. Center the cylinder on the origin. Remove four octagonal holes, each with a radius of 25mm and a height of 60mm, positioned at 90-degree intervals around a circle with a ra...
RADIUS_HOLE = 60; RADIUS_CUTS = 99.5; difference() { difference() { difference() { cylinder(h = 15, r1 = 100, r2 = 100,$fn=50, center = true); for (i = [0,90,180,270]) { translate([RADIUS_HOLE * cos(i),RADIUS_HOLE * sin(i),0]) rotate([0,0,20]) cylinder(h = 60, r1 = 25, r2 = 25,$fn=8, center = true); } } for (i = ...
glb/cad_e63569ed8fa7.glb
Create a flashlight stand consisting of a rectangular base and two semi-cylindrical cradles. Start with a central rectangular block that is 25mm wide, 173mm long, and 36.5mm high. At each end of this block, create a cylindrical bracket with an outer diameter of 23.5mm and a height of 13mm. Center these brackets so th...
TRJ18_Stand(); module TRJ18_Stand() { D1 = 33.5; D2 = 33.5; D3 = 63; L1 = 160; L2 = 5; L3 = 13; L4 = 25; T1 = 5; E1 = 1.01; FN = 120; BH = ((D3/2)+L2) - (D1/2 + T1/2); union() { translate([0,-(L1+L3)/2,BH/2-((D3/2)+L2)]) cube([L4, L1+L3, BH], center = true); translate([0,-L3/2,0]) rotate([...
glb/cad_d212a6a3f024.glb
Create a flywheel rotor by starting with a hexagonal prism that is 12mm high and 40mm in diameter. Remove a smaller concentric hexagonal prism from the center that is 10mm high and 34mm in diameter to create a thick-walled hexagonal ring. Bore a central cylindrical hole through the entire height with a diameter of 4mm ...
RADIUS_HOLE = 15; scale([2,2,3]) translate([0,0,3]) { difference() { union() { translate([0,0,-2.75]) difference() { cylinder(h = .5, r1 = 3.5, r2 = 3.5,$fn=6, center = true); cylinder(h = .5, r1 = 2, r2 = 2,$fn=6, center = true); } difference() { cylinder(h = 6, r1 = 20, r2 = 20,$fn=6, center = true); translate([0...
glb/cad_86f417bfe7a9.glb
Create a 3D model of a curved Platonic solid by finding the common intersection of six identical spheres. Each sphere must have a radius of approximately 282.84mm. Position the centers of these six spheres at the following coordinates in millimeters: (0, 0, 0), (0, 100, 100), (0, -100, 100), (0, 0, 200), (100, 0, 100),...
module mysphere(){color("Blue") sphere(200*sqrt(2),$fn=100);} intersection(){ translate([0,0,0]) { mysphere(10); } ; translate([0,100,100]) { mysphere(10); } ; translate([0,-100,100]) { mysphere(10); } ; translate([0,0,200]) { mysphere(10); } ; translate...
glb/cad_74ef24d966ae.glb
Create a 3D model of a Platonic solid variant by finding the intersection of twelve identical spheres. Each sphere must have a radius of approximately 550.25mm. Position the centers of these twelve spheres at the following coordinates: (0, 100, 100 * 1.618), (0, 100, -100 * 1.618), (0, -100, 100 * 1.618), (0, -100, -10...
p=(1+sqrt(5))/2; module mysphere(){color("Blue") sphere(200*sqrt(1+p*p),$fn=100);} sf=100; ip=1/p; intersection(){ translate([0,sf,sf*p]) {mysphere();} translate([0,sf,-sf*p]) {mysphere();} translate([0,-sf,sf*p]) {mysphere();} translate([0,-sf,-sf*p]) {mysphere();} translate([sf,sf*p,0]) {mysphere();} translate([-s...
glb/cad_8f78072ba3bf.glb
Create a 3D model of a curved Platonic solid by finding the common intersection of eight identical spheres. Each sphere must have a radius of approximately 346.41mm. Position the centers of these eight spheres at the vertices of a cube centered at the origin, with each center located at a coordinate combination of posi...
module mysphere(){color("Blue") sphere(200*sqrt(3),$fn=100);} intersection(){ translate([100,100,100]) {mysphere(10);}; translate([-100,100,-100]) {mysphere(10);}; translate([100,-100,-100]) {mysphere(10);}; translate ([-100,-100,100]) {mysphere(10);} translate([-100,-100,-100]) {mysphere(10);}; translate([100,-100,10...
glb/cad_cf6894ae9137.glb
Create a 3D model of a Reuleaux tetrahedron by finding the intersection of four identical spheres. Each sphere must have a radius of approximately 282.84mm. Position the centers of the first three spheres at the coordinates (100, 100, 100), (-100, 100, -100), and (100, -100, -100). Position the center of the fourth sph...
module mysphere(){color("Blue") sphere(200*sqrt(2),$fn=100);} intersection(){ translate([100,100,100]) { mysphere(10); } ; translate([-100,100,-100]) { mysphere(10); } ; translate([100,-100,-100]) { mysphere(10); } ; translate ([-100,-100,100]) { mysphere(10); } ...
glb/cad_4b23150cea88.glb
Create a 3D model of a curved Platonic solid by finding the common intersection of eight identical spheres. Each sphere must have a radius of approximately 282.84 mm. Position the centers of these eight spheres at the vertices of a cube centered at the origin, with each vertex located at coordinates (±100, ±100, ±100)....
module mysphere(){color("Blue") sphere(200*sqrt(2),$fn=100);} intersection(){ translate([100,100,100]) { mysphere(10); } ; translate([-100,100,-100]) { mysphere(10); } ; translate([100,-100,-100]) { mysphere(10); } ; translate ([-100,-100,100]) { mysphere(10); } ...
glb/cad_83a1bb90eec2.glb
Create an enLighten Illuminator consisting of three main components: a magnet holder, a flexible arm with an LED holder, and a coil bobbin. First, create the magnet holder as a cylinder with a diameter of 14.22mm and a height of 3.72mm. Subtract a concentric inner cylinder starting 0.8mm from the base with a diameter ...
MagnetDiameter = 9.52; MagnetHeight = 1.56; LEDDiameter = 5; LEDLeadSeparation = 2; LEDLeadSize = [0.43, 0.63, 0]; CoilInsideDiameter = 7; CoilOutsideDiameter = 11; CoilHeight = 10; ArmLength = 20; partSpacing = 3; play = 0.5; $fn = 64; nozzle = 0.4; thing(); module thing() { magnet_holder(); translate([Magn...
glb/cad_5b85ed1314ff.glb
Create a blender coupler by starting with a main cylinder that has a radius of 17.22mm and a height of 17.34mm. Remove a central vertical hole with a radius of 2.775mm and an 18-sided polygonal cross-section. Inside the main body, carve out a central void consisting of three overlapping cubes, each measuring 22.15mm on...
sqrt2 = sqrt(2); coupler_inner = 22.15; coupler_wall = 2.85/2; coupler_outer = coupler_inner + coupler_wall * 2; coupler_height = 17.34; coupler_ceil = 2.0; base_height = 2.7; base_radius = 37/2; hole_size = 5.55; trap_width = 8.1; trap_wall = 1.7; trap_depth = 4.0; module coupler() { difference() { union() { c...
glb/cad_33f4b4281948.glb
Create a Customizable Profiled Handle by generating a revolved solid of 80mm in total height. The main body is formed by rotating a "Grip" profile around the central vertical axis. Scale this profile so the maximum diameter of the handle is 24mm. At the base (the neck), create a vertical tool recess hole with a diame...
Handle_height = 80; Profile_shape = 2; Handle_max_diameter = 24; Scale_or_shift = "scale"; Faceted = 200; Add_Ferrule = "no"; Ferrule_diameter = 15; Ferrule_length = 10; Add_grips = "no"; Number_of_grips = 8; Grip_shape = 64; Grip_Radius = 3.0; Percent_Grip_Depth = 50; Grip_start_height = 20.0; Grip_top_h...
glb/cad_3cb15ca59ec7.glb
Create a toothbrush holder consisting of a mounting clip and a holder board. First, construct the clip. It is a C-shaped bracket with a thickness of 3mm. The top section is a rectangular slab 100mm wide and 50mm long. The bottom section is a similar slab, but narrower at 80mm wide. These two slabs are connected by a ...
part="all"; thickness=3; clip_length=50; clip_gap=12; tbh_width=100; tbh_height=100; width_upper_clip_width=tbh_width; width_lower_clip_width=tbh_width-20; tb_cutouts_num = 4; tb_cutouts_diameter=20; board_cutouts_num = 5; board_cutouts_width=10; board_upper_holder_thickness=thickness; board_lower_holder_thick...
glb/cad_6829795df9b2.glb
Create a Bez-curve generator model consisting of a thick, undulating organic strand that curves through 3D space. The main body is formed by a series of connected spheres with a diameter that varies along the length of the curve, ranging up to 15mm. These spheres are joined using hull operations to create a smooth, con...
seed = 1789; part = 0; controlpoints=5; thickest=15; detail = 0.02; fn = 10; rad=5; tang=2; v = [ for(i = [0: controlpoints])[rands(0, 100*sign(i), 1)[0], rands(0, 100*sign(i), 1)[0], rands(0, 100*sign(i), 1)[0], rands(1, thickest, 1)[0]] ]; module yourmodule(i){ for (j=[0:360/rad:360]){ rotate([j,0,0])tran...
glb/cad_e10bf568df23.glb
Create a wire organizer consisting of a rectangular base and a series of repeating cable slots. Start by creating a solid rectangular base measuring 40mm in width, 170mm in length, and 10mm in height. Along the length of this base, add nine identical cable-holding units spaced every 20mm, starting from the edge. Each u...
module example() { cube ([40,170,10]); for (i = [0 : 20 : 160]){ translate([0, i, 10]){ cube([40, 10, 20]); } translate([0, (i+5), 34]){ rotate([0, 90, 0]){ cylinder(h=40, r=8); } } } } example();
glb/cad_2c5ea64a11ad.glb
Create a connector for 5mm x 5mm wooden struts. Start with a central cube measuring 7mm on all sides. From each of the six faces of this central cube, extend a hollow square prism to create six possible connection points along the X, Y, and Z axes. Each prism must have outer dimensions of 7mm x 7mm and a length of 15mm...
directions = "nsewud"; cube([7,7,7],center=true); if (search("u",directions)) stick(); if (search("d",directions)) rotate ([180,0,0]) stick("yellow",false); if (search("n",directions)) rotate ([-90,0,0]) stick("green",false); if (search("s",directions)) rotate ([90,0,0]) stick("blue",false); if (search("e",directions...
glb/cad_313643235d55.glb
Create a WaterMelon Drain platform consisting of a flat rectangular plate and five hollow support posts. The plate should be 165mm long, 84mm wide, and 2mm thick, centered on the origin. Add a grid of circular holes through the plate, each with a radius of 5mm. The holes are spaced 3mm apart. Arrange them in a pattern...
tableLength = 165; tableWidth = 84; tableHeight = 2; holeRadius = 5; holeOffset = 3; supportPostHeight = 17.5; supportPostRadius = holeRadius; module hole(x, y) { if (x != 0 || y != 0) { translate([x * (holeRadius * holeOffset), y * (holeRadius * holeOffset), - tableHeight]) cylinder(...
glb/cad_0069beb1c792.glb
Create a Mini Grease Gun Adaptor consisting of a shallow circular base and a threaded central collar. Start by creating a solid cylinder with a diameter of 56.3mm and a height of 2mm. Centered on this base, add a vertical cylindrical collar with an outer diameter of 14.5mm and a height of 12mm. This collar must feature...
include<..\thread\Thread.scad> diam = 56.3; difference(){ union(){ thread_in_ring(14.1,10,2); thread_in_pitch(14.5,12,2.1); cylinder(h = 2,r = diam/2); } cylinder(h = 2.6,r = 10/2); translate([-20,-20,9]) cube([40,40,10]); } difference(){ cylinder(h = 8,r = diam/2); cylinder(h = 8+1,r = diam/2 - 1); }
glb/cad_30b2c2519796.glb
Create a Mini Grease Gun Adaptor consisting of a threaded base and a hexagonal nut. Start by creating a bottom ring with an outer diameter of 14.1mm and a height of 10mm, featuring an internal M8 x 10 ISO thread with a 1mm pitch and a wall thickness of 2mm. Above this, construct a main body that begins with a flat cyli...
include<..\thread\Thread.scad> module bottom(){ thread_in_ring(14.1,10,2); difference(){ translate([0,0,-1.5]) thread_in_pitch(14.5,12,2.1); translate([-20,-20,-10]) cube([40,40,10]); } } module topbody(){ cylinder(h = 2, r =17/2); thread_out_centre(14.4,16); thread_out_pitch(14,16,1.5); } module top(){...
glb/cad_179d18dcb36d.glb
Create a Shimano crank bolt driver by starting with a solid cylinder 8mm tall with a radius of 7.74mm. Remove a hexagonal hole from the center of the cylinder, starting 2mm from the bottom and extending through the top, with a flat-to-flat width of 8mm. To create the outer grip, remove eight smaller vertical cylinders,...
r1 = (15.68-.2)/2; r2 = (13.13-.4)/2; r3 = 17.0/2; r4 = r3 - r2; big = 100; $fn=40; difference() { cylinder(h=8, r=r1); for (i = [0 : 7]) { rotate([0, 0, 360/8*i]) translate([r3, 0, 0]) cylinder(h=big, r=r4, center=true); } translate([0, 0, 2]) cylinder(h=big, r=4, $fn=6);...
glb/cad_74dcf5c33821.glb
Create a 3-wheeled robotic platform consisting of three identical servo supports arranged symmetrically. For each support, construct a base plate 2.6mm thick and a vertical support wall 19.8mm high. The support wall should be shaped to accommodate a servo motor. Within this structure, incorporate three hexagonal holes ...
base_e=2.6; support_e=19.8; nut_d = 6.5; nut_h=13; $fn=100; module servo_support(tr,rot) { color([0.5,0.5,1]) translate(tr) rotate(rot) translate([20,-0.45,6+26.6]) translate([0,0,0]) rotate([0,-90,0]) rotate([0,0,90]) difference() { union() { linear_extrude(height = support_...
glb/cad_ea975e76b99d.glb
Create a Pipe Gromit by starting with a cylinder that has a radius of 20mm and a height of 24mm, centered on the Z-axis. From the center of this cylinder, remove a smaller concentric cylinder with a radius of 14mm and a height of 300mm to create a hollow tube. Additionally, remove a sphere with a radius of 100mm, posit...
sphereSize = 100; difference(){ translate([0,0,-90]) sphere(sphereSize,10); translate([0,0,sphereSize -(sphereSize/.50)] ) cylinder(h = sphereSize*2, r=sphereSize,center=true); translate([0,0,sphereSize -(sphereSize/.50)]) cylinder(h=sphereSize*3, r=14, center=true); translate([0,0,sphereSize-75]) cylinder(h=sp...
glb/cad_881de7255df8.glb
Create a set of Tricopter component holders consisting of landing legs and a battery/alarm base. First, create two landing leg components. Each leg is a flat plate 110mm wide and 40mm deep with a thickness of 20mm. In the center of each leg, create a rectangular cutout 35mm wide and 23.5mm deep with rounded corners o...
parts= "all"; $fa = 0.01; $fs = 2; $fs = 1; legwidth=110; legdepth=40; batterywidth=35; batteryround=2; batterydepth=23.5; topround=3; bottomround=5; sidethickness=2.5; topthickness=3; footthickness=5; slotdepth=batterydepth/2; module roundedsquare(size, r = 1, center = false) { minkowski() { if (cente...
glb/cad_1968f76a7cfc.glb
Create a Solar Charge Box consisting of a main rectangular enclosure and a specialized USB component holder. Construct the main case body as a hollow rectangular box with overall exterior dimensions of 127mm width by 127mm length. The walls should be 2.5mm thick. On the top face, create several precise cutouts to acc...
case_wid = 127; case_len = 127; 12vXoffset = 32.5; pcbwid = 37; pcblen = 45.15; pcbthick = 1.4; pcbspacing = 12; screw_hole = 1.8 /2; 12vscrew_rad = 5 / 2; OUTPUT = 0; if (OUTPUT == 0) { translate([0, 0, 88]) rotate([0, 180, 0]) partlayout(0); } if (OUTPUT == 1) { case_top(3, 1); } if (OUTPUT == 2) { tran...
glb/cad_b325030e3ebd.glb
Create a Mouse Eared Rocket Fincan by starting with the base geometry of a printed rocket fincan. To this base, add four identical thin cylinders, each with a radius of 1mm and a height of 10mm, positioned flat against the build plane to act as mouse ears. Place the first cylinder at coordinates (36, 44, 0), the second...
union() { import_stl("printed_rocket-fincan.STL"); translate([36, 44, 0]) cylinder(1, 10, 10); translate([-36, -44, 0]) cylinder(1, 10, 10); translate([44, -36, 0]) cylinder(1, 10, 10); translate([-44, 36, 0]) cylinder(1, 10, 10); }
glb/cad_20a101c77280.glb
Create a Sauce Packet Organizer consisting of a main holder and a removable lid. For the main holder, create an open-top rectangular box with an outer width of 40.4mm, a depth of 77.4mm, and a height of 81.2mm. Use a wall thickness of 1.2mm throughout. The front face should feature a semi-circular cutout with a 10mm ...
$fn=100; PieceToRender=0; Font=""; FontSize=8; FontDepth=.6; WidthOfPacket=38; LengthOfPacket=75; HeightOfHolder=80; WallThickness=1.2; Connectable=3; FrontLabel_Top="Ketchup"; FrontLabel_Mid=""; IncludeRamp=1; RampPercent=.4; RampHeight=10; LidDepth=3; LidCoversConnector=1; LidLabel="Ketchup"; LidLabel_Po...
glb/cad_c326833dd1d9.glb
Create a Temp Calibration Stairs model consisting of seven sequential steps. Each step is a block with a width of 10mm and a depth of 10mm. The steps increase in height incrementally, with the first step being 10mm tall and each subsequent step increasing by 10mm, reaching a maximum height of 70mm for the final step. ...
DoYouUnderstandYouMustModifyTheGCodeThisMakes=1; NumberOfSteps = 7; Labels=["206","208","210","212","214","216","218"]; ReverseLabelOrder=0; Reverse=ReverseLabelOrder == 1; NotesLine1="0.1 layer"; NotesLine2="inland purple"; StepSize=[10,10,2]; StepHeight=10; Edge1Thickness=0.8; Edge2Thickness=4; FontFace=0; FontFa...
glb/cad_4e7840013dcd.glb
Create a Pythagoras Cup by constructing a tapered hollow vessel. Start with an outer conical frustum that has a bottom radius of 10mm, a top radius of 20mm, and a height of 50mm. Create the interior cavity by removing a smaller concentric conical frustum with a bottom radius of 8mm, a top radius of 18mm, and a height o...
difference(){ cylinder(r1=10, r2=20, h=50); cylinder(r1=8, r2=18, h=50);} translate([-50,0,0]) union(){ difference(){ difference(){ translate([50,0,0]) cylinder(r=5, h =48); translate([50,0,0]) union(){ translate([0,0,0]) cylinder(r=1, h=45); translate([3,0,0]) cylinder(r=1, h=45); translate([1.5,0,44]) cylinder(r=3, ...
glb/cad_e15030268035.glb
Create a Honda Pedal Stop Pad by stacking three coaxial geometric primitives vertically. Start with a cylindrical base that has a radius of 7.5mm and a height of 4.2mm. Directly on top of this base, center a second, smaller cylinder with a radius of 4.2mm and a height of 3mm. Finally, place a cone on top of the second ...
$fn=50; face_d = 7.5; face_h = 4.2; shaft_d = 4.2; shaft_h = 3; cone_b = 4.2; cone_h = 7.2; cone_end = 0; cylinder(h=face_h,r=face_d); translate([0,0,face_h]) cylinder(h=shaft_h,r=shaft_d); translate([0,0,(face_h+shaft_h)]) cylinder(h=cone_h,r1=cone_b,r2=0);
glb/cad_0b83f3b1dab6.glb
Create a Customizable Windmill consisting of four main components. First, construct a fan barrel as a cylinder with a diameter of 50mm and a height of 15mm. Remove a central vertical hole with a diameter of 8mm. Additionally, carve out six identical slots around the perimeter; each slot is formed by a 5mm wide by 5mm h...
part = "first"; $fn = 30; numberOfBlades = 6; lengthOfBlades = 125; widthOfBlades = 30; thicknessOfBlades = 2; angleOfBlades = 25; heightOfBarrel = 15; diameterOfBarrel = 50; print_part(); module print_part() { if (part == "first") { fanBarrel(); } else if (part == "second") { fanBlades(); } else if (par...
glb/cad_316595bc94fd.glb
Create a Customizable Windmill consisting of a central barrel, six blades, and a supporting base. Start by creating a central cylinder with a diameter of 50mm and a height of 15mm. Remove a smaller 8mm diameter hole through the center of this cylinder. Additionally, remove six identical slots from the barrel, each spac...
$fn = 30; numberOfBlades = 6; lengthOfBlades = 125; widthOfBlades = 30; thicknessOfBlades = 2; angleOfBlades = 25; heightOfBarrel = 15; diameterOfBarrel = 50; translate([ diameterOfBarrel / 2 , diameterOfBarrel / 2 ,0]){ difference(){ cylinder( d = diameterOfBarrel, h = heightOfBarrel ); unio...
glb/cad_a684a0c73300.glb
Create a Sherman tank in N scale (1:160). The overall length is 5.84mm and the width across the tracks is 2.62mm. Construct the lower body by combining three centered rectangular prisms: a base measuring 5.51mm by 1.97mm by 0.59mm, a middle section of 3.64mm by 1.74mm by 0.89mm, and a top section of 2.62mm by 1.43mm b...
include<henriks_generic_modules.scad> m=1000/(160); length_with_gun=5.84*m; length=5.84*m; width_with_tracks=2.62*m; height_to_cupola=2.65*m; wheel_diam=0.7*m; turret_pos=0.5*m; length_of_cannon=1.4*m; height_to_hull=height_to_cupola*0.72; turret_height=height_to_cupola-height_to_hull; cannon_outer_diam=0.2*m; lowe...
glb/cad_1055c8c3030c.glb
Create a Tiger I tank model in N scale (1:160). The model consists of a main body, two track assemblies, and a detachable turret. For the body, create a lower hull using a hull operation between a cube of 4.54mm x 2.25mm x 0.9mm and a larger cube of 6.316mm x 2.25mm x 0.54mm. Add an upper body section as a cube of 5.3...
include<henriks_generic_modules.scad> m=1000/(160); axle_margin=0.2; axle_radius=2; axle_length=6; length_with_gun=8.45*m; length=6.316*m; width_with_tracks=3.72*m; height_to_hull=1.78*m; height_to_cupola=3.00*m; turret_pos=length*0; height_of_turret=1.1*m; cannon_outer_diam=3*0.088*m; wheel_diam=height_to_hull*0....
glb/cad_b6d0eaf9c67f.glb
Create a Parametric Card Box consisting of a bottom container and a matching lid. For the bottom container, create a rectangular base plate measuring 95mm by 70mm with a thickness of 2mm. Build walls rising from the edges of this base to a total height of 22mm. The walls should be 2mm thick. On the two shorter sides,...
CARD_SIZE_LONG_EDGE =91; CARD_SIZE_SHORT_EDGE = 66; CARD_STACK_HEIGHT = 20; WALL_THICKNESS = 2; TAB_THICKNESS = 10; EXTRA_SPACE = .25; CARD_LONG_EDGE = CARD_SIZE_LONG_EDGE + (WALL_THICKNESS*2); CARD_SHORT_EDGE = CARD_SIZE_SHORT_EDGE + (WALL_THICKNESS*2); ALL_EXTRA_SPACE = (EXTRA_SPACE *2); LID_OUTSIDE_LONG_THICKNESS ...
glb/cad_9097e902f2d6.glb
Create a climbing hold by starting with a central sphere with a radius of 50mm, centered at coordinates (50, 50, 50). Remove a vertical cylindrical hole from the center of this sphere with a diameter of 11mm that passes completely through the shape. Additionally, remove a wider cylindrical section with a diameter of 25...
difference() { { translate([50,50,50]){ sphere(50); } } { translate([50,50,0]){ cylinder(100,d=11,d=11); } translate([0,0,0]){ cube([100,100,50]); } translate([50,50,80]){ cylinder(100,d=25,d=25,$fn=100); ...
glb/cad_116929eb918f.glb
Create a Reprap frame cross-brace consisting of a rectangular block measuring 20mm wide, 50mm long, and 6.6mm thick. Carve a cylindrical channel through the center of the block along its entire 50mm length; this channel must have a radius of 4.2mm and be centered 10mm from the sides. Within the remaining solid materi...
dick = 3; breit=21; gross=4.2; klein=2.1; difference() { translate([0,0, 0]) cube([20,50,dick+gross-0.6]); translate([10,-10, dick+gross]) rotate(90, [-1, 0,0]) cylinder (r=gross, $fn=50,h=60, center = false); translate([10,-10, dick+gross]) rotate(90, [-1, 0,0]) cylinder (r=gross, $fn=50,h=60, center = false); tra...
glb/cad_dbcd47ae360d.glb
Create a solder spool holder consisting of a base and a supporting wall. Start with a rectangular base plate measuring 69mm by 37.5mm with a thickness of 3mm. Attached to this base, create a vertical wall 3mm thick that stands 37.5mm high and runs along the length of the base, extending 39mm from the back edge. At th...
include <fillet.scad> $fn=100; ID=21; OD=63; spool_width=36; wall_thickness=3; clearance=5; hole_size=1; r=OD/2+clearance+wall_thickness; difference(){ union(){ cube([2*r,r,wall_thickness]); cube([2*r,wall_thickness,spool_width+wall_thickness]); cube([wall_thickness,r+wall_thickness,spool_width+wall_thi...
glb/cad_0ec7b20881ad.glb
Create a Dual Bit Driver tool with a total length of 100mm. The main body is a tapered handle with an 18-sided polygonal cross-section. The handle is formed by lofting between two hexagonal ends and a central 18-sided prism that is slightly thicker than the ends. At the first end, create a hexagonal socket for a bit w...
length = 100; side_thickness = 1; handle_sides = 18; handle_thickness = 1.25; tolerance = 0.3; bit1_socket_diameter = 6.35; bit1_socket_depth = 9; bit1_magnet_diameter = 4.7625; bit1_magnet_depth = 3.175; bit2_socket_diameter = 3.96875; bit2_socket_depth = 18; bit2_magnet_diameter = 3.175; bit2_magnet_depth...
glb/cad_31b1177ca374.glb
Create a 9v battery holder with an outer shell measuring 51.3mm in length, 30.7mm in width, and 20.5mm in height. The walls and base should have a thickness of 2mm. Hollow out the center to create a cavity for the battery measuring 47.3mm by 26.7mm by 16.5mm, starting from a 2mm offset from the bottom and sides. Cut t...
9v_dimensions = [ 47.3, 26.7, 16.5 ]; 9v_shell_thickness = 2; module battery_clip(type){ if ( type == "9v" ) { _9v_battery_clip(); } } module _9v_battery_clip(){ shell = [ 9v_dimensions[0] + 9v_shell_thickness * 2, 9v_dimensions[1] + 9v_shell_thickness * 2, 9v_dimensions[2]...
glb/cad_83fd8583a3dc.glb
Create a brio mini track connector. The object consists of two identical female connector ends joined by a central bridge. Each connector end is a vertical cylinder with a height of 3mm and a radius of 4mm. From each cylinder, subtract a smaller concentric cylinder with a radius of 1mm to create a hollow ring. Within ...
$fn=200; HEXAGON = 45; LENGTH = sin(60)*HEXAGON * 2; echo(LENGTH); WIDTH=25; HEIGHT=8; BEVEL=1; TRACK_WIDTH=5; TRACK_HEIGHT=2; TRACK_DIST=10; CONN_WIDTH=4; CONN_R=4.5; CONN_BEVEL=1; CONN_DEPTH=12; ROUND_R=HEXAGON*1.5 - WIDTH/2; SUPPORT_SIDE=7.2; SUPPORT_THICK=33; SUPPORT_WIDTH=WIDTH+1+2*SUPPORT_SIDE; TUNNEL_R=28...
glb/cad_0926cbf5c2a0.glb
Create a belt clamp for a CNC router consisting of a base plate and two symmetrical clamping arms. Start by creating a base plate with a thickness of 2mm. The base is a flat, rounded rectangular shape with a maximum length of 15mm (from -7.5mm to 7.5mm on the X-axis) and a width of approximately 12.64mm (from -6.32mm t...
Ht6=6.51; Thk=2.0; module DrawBase() { color("red") translate([0,0,0]) linear_extrude(height = Thk, center = false, convexity = 10)polygon(points = [[7.5,-3.32],[7.45,-3.84],[7.32,-4.35], [7.1,-4.82],[6.8,-5.25],[6.43,-5.62], [6,-5.92],[5.53,-6.14],[5.02,-6.27], [4.5,-6.32],[-4.5,-6.32],[-5...
glb/cad_74dade525619.glb
Create a belt clamp for a Mostly Printed CNC router. The object consists of a base plate and a clamping structure. First, create a base plate with a thickness of 2mm. The base is a flat, irregular polygon with vertices extending approximately 9.38mm from the center along the X-axis and 5.25mm along the Y-axis. On to...
Ht6=6.51; Thk=2.0; module DrawBase() { color("red") translate([0,0,0]) linear_extrude(height = Thk, center = false, convexity = 10)polygon(points = [[8.13,3.75],[8.6,3.65],[9.01,3.38], [9.28,2.98],[9.38,2.5],[9.38,-3.25], [9.28,-3.87],[8.99,-4.43],[8.55,-4.87], [7.99,-5.15],[7.38,-5.25],[-2...
glb/cad_47d25f08b017.glb
Create a belt clamp for a Mostly Printed CNC router. Start by creating a base plate with a thickness of 2mm and a footprint approximately 42.8mm long and 12.6mm wide, featuring rounded corners. On top of this base, construct two symmetrical clamping walls that rise 6.51mm. These walls should run along the outer edges...
Ht6=6.51; Thk=2.0; module DrawBase() { color("red") translate([0,0,0]) linear_extrude(height = Thk, center = false, convexity = 10)polygon(points = [[21.4,-0.43],[21.31,-0.91],[21.04,-1.31],[20.63,-1.59], [20.15,-1.68],[19.5,-1.7],[18.87,-1.73],[18.25,-1.81], [17.64,-1.92],[17.03,-2.07],[16.43,...
glb/cad_8393e00e8141.glb
Create a belt clamp for a CNC router consisting of a base plate and a gripping upper section. Start with a base plate 2mm thick, shaped as a rounded rectangle approximately 20mm long and 15mm wide. At one end of the base, center a vertical cylindrical hole with a 4mm diameter that passes completely through the plate. ...
Ht6=7.51; Thk=2.0; $fn=16; module DrawBase() { difference() { color("red") translate([0,0,0]) linear_extrude(height = Thk, center = false, convexity = 10)polygon(points = [[-4.54,7.32],[-5.2,7.26],[-5.87,7.08],[-6.5,6.79], [-7.07,6.39],[-7.57,5.89],[-7.97,5.32],[-8.26,4....
glb/cad_1ce51ffd32e0.glb
Create a garden hose valve tap handle with a total height of 12.41mm. Start with a central cylinder that has a diameter of 27.2mm. Around this center, add three equidistant rectangular grip wings extending outwards. Each wing is formed by the hull of a 16mm diameter cylinder at the center and another 16mm diameter cyli...
Shape="Hex"; ShaftWidthMin=11.66; ShaftWidthMax=13.12; Size=1; Height=12.41; handle(Size, Shape, ShaftWidthMin, ShaftWidthMax, Height); module handle(Size, Shape, ShaftWidthMin, ShaftWidthMax, Height){ $fn=90; rt=0.01; hd=16; kd=[hd+3, hd*1.7]; kod=50.61; kl=[kod/2-kd[Size]/2, 24]; ...
glb/cad_882c63b59c03.glb
Create a business card holder consisting of a hollow box resting on a rounded plinth. Start by creating a solid rectangular plinth base with a thickness of 3mm, overall dimensions of 70mm by 30mm, and rounded corners with a 5mm radius. On top of this base, center a hollow rectangular box with outer dimensions of 60mm...
echo(version=version()); Line1 = "My"; Line2 = "Business"; Line3 = "Card"; font = "Arial Rounded MT Bold"; typeSize = 10; typeDepth = 1; boxWidth = 60; boxHeight = 40; boxDepth = 20; plinthapron = 5; plinththickness = 3; plinthcornerradius = 5; wallThickness = 2; module extrudedstring(l) { linear_extrude(height ...
glb/cad_76bd981a0072.glb
Create a rectangular electronics enclosure consisting of a base and a lid. For the base, create a hollow rectangular box with inner dimensions of 60mm length, 40mm width, and 15mm depth. The walls and floor should be 2mm thick. The four vertical corners of the base should be rounded with a radius of 4mm. At each of t...
enclosure_inner_length = 60; enclosure_inner_width = 40; enclosure_inner_depth = 15; enclosure_thickness = 2; cover_thickness = 3; part = "both"; print_part(); module print_part() { if (part == "enclosure") { box2(enclosure_inner_length,enclosure_inner_width,enclosure_inner_depth,enclosure_thickness,enclosure_t...
glb/cad_c1910c35910e.glb
Create a desk cable clamp with a total width of 11.3mm and a depth of 5mm. Start with a rectangular base that is 11.3mm wide, 5mm deep, and 2mm thick. Centered on this base, create a vertical cable holder consisting of a rectangular block 11.3mm wide and 5mm deep, with a height of 33.325mm. At the top of this block, in...
include <MCAD/teardrop.scad> wt=2; wd=5; dt=26; ssd=4.25; shd=7.90; gt=1.5; ct=4.65; lf=1; width=ct+2*lf+2*wt; $fn=60; difference(){ union(){ cube([ct+2*lf+2*wt, dt+ct/2+wt, wd]); translate([width/2, dt+ct+wt, 0]) cylinder(r=ct+wt,h=wd); } translate([width/2, dt+ct+wt, 0]) cylinder(r=ct, h=wd);...
glb/cad_772135f8af46.glb
Create a toilet paper holder wall mount. Start with a rectangular base block measuring 50mm in width, 25mm in height, and 35mm in depth. Round the two long edges of the base with a radius of 12.5mm, creating a semi-cylindrical profile along the top and bottom. Drill two holes through the base for mounting, each with a ...
$fn = 50; bx1 = 50; bx2 = 20; by1 = 25; bz1 = 10; bz2 = bz1 + 25; br1 = 0.5 * (bx1 - bx2); px1 = bx2; py1 = by1; pz1 = 10 + 80 - bz2; rd1 = 8; rr1 = 0.5 * 15.8; rz1 = bz2 + pz1 - 1.75 * rd1; mx1 = 8; mx2 = bx1 - mx1; my1 = 0.5 * by1; mr1 = 2.5; mr2 = mr1 + 2; rotate([90,0,0]) { difference() { cube([bx1,by1,bz...
glb/cad_3d9ec19787cf.glb
Create a longboard riser with a total height of 8mm. Start with a rectangular base that is 95mm long and 8mm wide. Centered along the length of this base, create four circular holes, each with a radius of 3mm. Position the first pair of holes at 10mm from the front edge, spaced 41mm apart from each other across the wid...
riser_H = 8; riser1 = riser_H/2; translate([40,0,riser1]) rotate([0,0,60]) cube([55,5,riser_H], center=true); translate([40,0,riser1]) rotate([0,0,-60]) cube([55,5,riser_H], center=true); difference() { rotate([-90,270,0]) { linear_extrude(height = 56, center = true, convexity = 10, twist = 0) polygon(points=[[0...
glb/cad_c68c6110af5a.glb
Create a Spiral Torsion Spring consisting of a flat, spiraling arm and two mounting blocks. Start by generating an Archimedean spiral that winds outward for 4.5 full rotations. The spiral should have a consistent thickness and a total height of 8mm. At the center of this spiral, create a hexagonal hole with a radius of...
include <2dgraphing.scad> $fn=6; function r(theta) = theta/3*pi; module archimedean_spiral() { thickness=320; smoothness=150; scale([0.02,0.02,0.02]) linear_extrude(height=400) 2dgraph([0,360*4.5], thickness, steps=smoothness, polar=true); } module archimedean_plus_mount(){ archimedean_spiral(); translate([.8,...
glb/cad_b5d52bc6c3a4.glb
Create an angled riser for a longboard. Start with a wedge-shaped block that is 95mm long and 56mm wide. The wedge should be designed such that it creates a 5-degree angle across its length. From this main body, remove several geometric sections to create holes and slots. First, drill eight circular holes, each with ...
angle = 5; a = 95*(sin(90-angle)); b = sin(90 +(90-angle)); echo(a); echo(b); c = a*b; echo(c); difference() { rotate([-90,270,0]) { linear_extrude(height = 56, center = true, convexity = 10, twist = 0) polygon(points=[[0,0],[c,0],[0,95]]); } translate([10,20.5,-2]) cylinder(h = 40, r=3); translate([10,-20.5...
glb/cad_79ff345db8d4.glb
Create a powder measure lid consisting of two stacked concentric cylinders. First, create a base cylinder with a radius of 29.5mm and a height of 8mm. Then, place a second, wider cylinder directly on top of the first, centered on the same axis. This upper cylinder must have a radius of 31mm and a height of 6mm, startin...
union() { cylinder (h= 8, r= 59/2,$fn= 100); translate([0,0,6]) cylinder (h= 6, r= 62/2,$fn= 100); }
glb/cad_94501cfd90bb.glb
Create a powder measure lid consisting of two stacked cylinders aligned on a central vertical axis. First, create a base cylinder with a radius of 29.5mm and a height of 8mm. Then, position a second, wider cylinder directly on top of the first, starting at a height of 6mm from the base. This upper cylinder must have a ...
union() { cylinder (h= 8, r= 59/2,$fn= 100); translate([0,0,6]) cylinder (h= 6, r= 68/2,$fn= 100); }
glb/cad_f2eef7c3c6ef.glb
Create a dowel center tool designed to fit a 7.9375mm diameter hole (calculated from a 0.3125-inch dowel plus a 0.43mm oversize allowance). The main body is a cylinder with a radius of 4.18mm and a height of 5.57mm. Around the perimeter of this main cylinder, add six anti-friction ribs. Each rib is 0.6mm thick and ex...
dowel_units=0; dowel_dia=0.3125; dowel_depth=0; hole_dia_oversize=0.43; rib_min_thickness=0.3; rib_thickness=0.6; num_ribs=6; rib_angle=1; point_sides=4; point_radius=1.5; point_height=0; rim_overhang=1.5; rim_thickness=0.6; fn=48; r=((dowel_units==0?dowel_dia*25.4:dowel_dia)+hole_dia_oversize)/2; ir=r-ri...
glb/cad_dd22af32b942.glb
Create a rear light holder for a bike aero seat post. Start by constructing a main body consisting of two mirrored clips. Each clip is formed by the hull of a cylinder with a radius of 15.5mm and a height of 35mm, and a smaller cylinder with a radius of 1mm positioned 17mm away and 10.9mm up from the base, tilted at a ...
bikeAngle = 5; cubeWidth = 15; module seatPost(postDia, tail, length){ hull(){ cylinder(h=length,r=postDia/2); translate([tail,0,0]){ cylinder(h=length, r=2); } } } module clip(high, width, length){ x = 1; module main(){ hull(){ cylinder(h=high,r=width/2, $fn = 50); translate([length,(width/2)...
glb/cad_821be1d06d26.glb
Create a spindle for a filament spool by constructing a main cylinder with a radius of 8mm and a height of 50mm. Remove a smaller concentric cylinder from the center of this main body to create a hollow shaft; this inner hole should have a radius of 7mm and a height of 49.5mm, starting from 0.5mm below the base. Finall...
spindle_radius = 8; spindle_height = 50; module spindle() { difference() { cylinder(r=spindle_radius, h=spindle_height); translate([0,0,-0.5]) cylinder(r=spindle_radius-1, spindle_height-2); } translate([0,0,spindle_height]) cylinder(r=5, h=2); } spindle();
glb/cad_386268b723ac.glb