Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a 3D model of a children's book titled "Harrold and the Magic Crayon." The base of the model is a rectangular block measuring 4mm by 10mm with a height of 4mm. Along the length of this base, create a series of 10 repeating wave-like page elements. These elements are positioned every 3mm along the Y-axis, startin...
use <write.scad> use <person.scad> module moon() { color ("yellow") { polygon(points = [ [10.00,8.00] ,[8.00,7.00] ,[7.00,5.00] ,[7.00,3.00] ,[8.00,1.00] ,[10.00,0.00] ,[9.00,4.00] ] ,paths = [ [0,1,2,3,4,5,6]] ); } } module wave() { scale([.5,.74,1]) color ([0,0,0.4]) { polygon...
glb/cad_2564784968ca.glb
Create a Tolerance Calibration model. Start by creating a central base block that is 20mm wide, 20mm deep, and 10mm high, centered on the origin. Remove a 15mm wide, 15mm deep, and 10mm high cube from the center of this base to create a hollow square frame. Position four smaller cubes, each measuring 10mm on all sides,...
union(){ difference(){ cube(size=[20,20,10],center=true); cube(size=[15,15,10],center=true); } color("red")translate([7.5,7.5,0])cube(size=[10,10,10],center=true); translate([-7.5,7.5,0])cube(size=[10,10,10],center=true); translate([7.5,-7.5,0])cube(size=[10,10,10],center=true); translate([-7.5,-7.5,0])cube(size=[10,10...
glb/cad_c2b5e6fdc81c.glb
Create a 3D fractal tree composed of five recursive levels of branching segments. Start with a primary trunk segment that is 40mm long and 4mm thick. At the end of each segment, create two smaller child branches that split at random angles between 20 and 50 degrees. Each subsequent level of branching should have a leng...
levels = 5; segment_length = 40; thickness = 4; height = 4; min_angle = 20; max_angle = 50; random_trees = true; random_number = 7; identity = [ [ 1, 0, 0, 0 ], [ 0, 1, 0, 0 ], [ 0, 0, 1, 0 ], [ 0, 0, 0, 1 ] ]; rcnt = 1000; random = (random_trees==true) ? rands(0, 1, rcnt) : rands(0, 1, rcnt, random_number); f...
glb/cad_0d2af04a8635.glb
Create a parametric tree base by constructing a composite 2D profile and extruding it to a height of 2mm. The profile consists of a central circular ring with an outer diameter of approximately 43.5mm and an inner diameter of 37mm. Inside this ring, place two intersecting rectangular bars, each 4mm wide and 40mm long, ...
segment_length = 40; thickness = 4; height = 4; tolerance = 0.4; max = (thickness < height) ? height : thickness ; module base(length, thickness) { difference(){ union(){ translate ([-thickness/2,-length/2,0]) square([thickness, length]); rotate([0,0,90]) translate (...
glb/cad_80c204d64b8c.glb
Create a wire clip for a desk by designing a base block 18mm tall. The main body is formed by a shape that is 30mm wide and 26mm deep, with rounded ends. Specifically, create a hull encompassing two circles of radius 7.75mm centered at [7.75, 7.75] and [7.75, -7.75], combined with a 26mm by 26mm square centered at [-13...
$fn=100; union() { difference() { union() { linear_extrude(18) { difference() { hull() { translate([7.75,7.75,0])circle(7.75); translate([7.75,-7.75,0])circle(7.75); translate([-13,0,0])square(26,true); } hull() { translate([5.75,5.75,0])circle(5.75); ...
glb/cad_20bfc107f107.glb
Create a parametric bar clip with a total width of 25mm, a height of 50mm, and a depth of 25mm. Start by forming a main rectangular plate that is 50mm long, 4mm thick, and 25mm wide. Attached to this plate, create a C-shaped channel to hold a bar. This channel is formed by adding a second parallel plate 4mm thick and 2...
clipWidth = 25; clipHeight = 50; plateThickness = 4; barSize = 12.5; nubSize = 2; difference() { union() { cube([clipHeight, plateThickness, clipWidth]); cube([(plateThickness + (barSize/2)), (plateThickness * 2 + barSize), clipWidth]); translate([0, barSize + plateThickness, 0]) ...
glb/cad_eb15c5d9981c.glb
Create a motor adapter for a Mini Flame Wheel by starting with a cylindrical base plate that has a radius of 11.9mm and a height of 3.8mm. Remove a central vertical hole with a radius of 3.2mm. Create four arm holes by removing cylinders with a radius of 1.85mm, positioned at coordinates (±5.66, ±5.66). Within these ...
base=11.9; baseh=3.8; centralhole=3.2; res=40; armhole=1.85; rnuts=3.3; hnuts=2.4; motorhole=1.2; mholehead=2.1; headh=1.8; layerheight=0.2; difference(){ translate ([0,0,0]) cylinder(h=baseh,r=base); translate ([0,0,-1]) cylinder(h=baseh+2,r=centralhole,$fn=res); translate ([5.66,5.66,-1]) cylinder(h=baseh+2,...
glb/cad_fe9785b81122.glb
Create a protective remote control case by constructing a hollow rectangular box with rounded edges. Start with a solid outer block measuring 52mm in length, 39mm in width, and 11mm in height. The corners and edges of this block should be rounded with a radius of 0.6mm. Create the interior cavity by removing a smaller ...
largo = 50; ancho = 37; alto = 10; difference(){ $fn=50; minkowski() { cube([largo+2,ancho+2,alto+1],center=false); cylinder(r=0.6,h=0.1); } minkowski() {translate([1,1,1]) cube([largo,ancho,alto],center=false); cylinder(r=0.6,h=1); } translate([10,ancho/2,alto/2+1]) rotate([0,90,0]) cylinder(r=3,h=largo); }
glb/cad_9ada5c3c6ede.glb
Create a bottle cap consisting of two stacked cylindrical sections. First, create a wide base cylinder with a radius of 12mm and a height of 6mm. Directly on top of this base, starting at a height of 6mm, place a tapered cylinder (a frustum) with a total height of 18mm. This upper section should transition from a botto...
$fn=100; union(){ cylinder(r=12,h=6); translate([0,0,6]) cylinder(r1=9.5, r2=8.5, h=18); }
glb/cad_d205e5766d70.glb
Create a Garden Tap Water Reminder badge. Start by creating a rectangular base measuring 85mm in length, 14mm in width, and 3mm in height. Centered on top of this base, add a thin circular ring with an outer diameter of 90mm and an inner diameter of 80mm, with a thickness of 3mm. Finally, place the text "Water ON" acro...
translate([-8,0,0]){ cube([85,14,3]);} translate([35,10,0]){ rotate([0,0,0]){ difference(){ cylinder(d=90, h=3, $fn=70); cylinder(d=80, h=3, $fn=70);} }} linear_extrude(height = 7) { text("Water ON", font = "Liberation Sans", size = 12, direction = "ltr", spacing = 1, $fn=70 );}
glb/cad_54e0287de1e2.glb
Create a set of cable zip tie stickers in three sizes. Each sticker consists of a thin base plate with a chamfered square profile and a central mounting structure. For the small size, create a base plate 10mm wide and 10mm long with a height of 1.2mm and a 2mm chamfer. In the center, remove a rectangular slot 2.8mm by...
module champferedcube(l, w, h, c) { if( c>l/2 ) { c= l/2; corrected_hull(l, w, h, c); echo(" - Warning, champfer > cube length"); } else if (c > w/2) { c= w/2; corrected_hull(l, w, h, c); echo(" - Warning, champfer > cube width"); } else if (c==0) { cube([l,w,h], center=true); echo(" - Warning, n...
glb/cad_f83073d110f5.glb
Create a hinged Pi Zero Case with a total height of 10.1mm (8.6mm side height plus 1.5mm bottom rounding). The case consists of a top and bottom shell that fit together with a 0.4mm clearance. For the bottom shell, create a rectangular base with rounded exterior corners (radius 3.5mm) and rounded interior corners (rad...
Type = 1; Clearance = 4; Ht = 8.6; B_Ht = 2; Brd_OD = 2.2; Brd_Mnt_OD = 4.0; Brd_B_Ht = B_Ht + 1.0; Brd_Ht = Brd_B_Ht + 5.0; Tot_Ht = Ht + 1.5; echo(Tot_Ht = Tot_Ht); Sect_X = -3; idx = Clearance - 3; A_D1 = [3.24, 3.34, 3.542]; A_D2 = [2.0, 2.316, 2.519]; D1 = A_D1[idx]; D2 = A_D2[idx]; echo(D1 = D1); echo(D2 = D2...
glb/cad_b2c8b54866a5.glb
Create a customizable couch cup holder consisting of a main cylindrical vessel and an attached gripping handle. Start by creating a hollow cylinder for the cup holder with an outer radius of 50mm, an inner radius of 45mm, and a total height of 60mm, leaving a 5mm wall thickness at the bottom. Attached to the side of t...
cupRadius=45; cupDepth=55; handleDepth=60; wallThickness=5; handleThickness=5; clipLength=35; clipAngle=5; textSize = 10; message = "HIS"; $fn=100; support_radius = handleThickness/4; textThickness=5; module inner_cup() { translate([0, 0, wallThickness]) { cylinder(cupDepth + 1, cupRadius, cupRadius...
glb/cad_dfbf72162f4e.glb
Create a perforated prototyping board as a rectangular slab measuring 101.6mm by 101.6mm in width and length, with a uniform thickness of 1.5875mm. Populate the surface of the slab with a grid of circular holes, each with a diameter of 1.0668mm. The holes should be arranged in a repeating pattern with a center-to-cen...
board_width = 1; board_length = 1; hole_spacing = 0.10; hole_diameter = 0.042; metric_or_imperial = 25.4; $FN=8; spacing=hole_spacing * metric_or_imperial ; holes=(hole_diameter * metric_or_imperial) ; board_w = board_width * metric_or_imperial ; board_l = board_length * metric_or_imperial ; board_h = 0.062 * 25....
glb/cad_a41dd0a69496.glb
Create a refrigerator egg holder with a rectangular footprint of 182mm by 122mm and a total height of 30mm. The main body is a hollowed-out shell with a wall thickness of 2.5mm. The four vertical corners of the base are rounded with a radius of 20mm at the bottom and 18.5mm at the top. Within the main body, create a g...
wall = 2.5; wallTop = 5; xSize = 182; ySize = 122; zSize = 30; eggHole = 38; cornerH = 20; cornerL = 18.5; holeXcnt = 4; holeYcnt = 3; rasterX = 46.2; rasterY = 45.8 * (sqrt(3)/2); zigZag = 1; fingerHole = 18; fingerHole2edge = wall+1; $fn=64; module base(x, y, r1, r2, h) { x2 = x/2 - r1; y2 = y/2 - r1; hull() ...
glb/cad_aec459ff1303.glb
Create a protection ring for a bottle opener consisting of two concentric cylindrical sections. First, create a base ring with an outer diameter of 35.25mm and a height of 4mm. Remove a central cylindrical hole from this base with a diameter of 27.5mm to accommodate the bottle mouth. On top of this base, center a tal...
$fn = 128; d_bottle = 27; d_opener_inner = 28.25; h_opener_inner = 10; thickness_wall_opener = 3; thickness_wall_ring = 2; tolerance_bottle = 0.5; tolerance_ring = 0.5; d_opener_outer = d_opener_inner + 2 * (thickness_wall_opener + tolerance_ring); d_ring_outer = d_opener_outer + 2 * thickness_wall_ring; diff...
glb/cad_b339b709bdc7.glb
Create a parameterized grid for a small cage. Start with a solid rectangular base measuring 100mm by 100mm with a thickness of 1.5mm. Centered within this base, create a rectangular cutout area measuring 80mm by 80mm. Fill this cutout area with a lattice of intersecting ribs to form a mesh. The ribs should be 0.5mm wid...
gridX=100; gridY=100; borderX=10; borderY=10; meshSolid=0.5; meshSpace=2; thickness=1.5; meshX=gridX-(borderX*2); meshY=gridY-(borderY*2); nX=meshX/(meshSolid+meshSpace); nY=meshY/(meshSolid+meshSpace); difference() { cube (size=[gridX,gridY,thickness],center=true); cube (size=[meshX,meshY,thickness],center=tru...
glb/cad_a2cae89592cc.glb
Create a Corner Clamp Brace by starting with a cube that is 50mm in length, width, and height. Remove a smaller 50mm cube from the center of the top, front, and right faces to create a three-sided shell with a wall thickness of 5mm. To create the interior groove, remove three rectangular prisms from the inner corner ...
$fs=1; inch = 25.4; size_x = 50; size_y = 50; size_z = 50; wall_thickness = 5; bevel_radius = inch/5; hole_radius = 3; difference() { translate( v=[size_x/2,size_y/2,size_z/2] ) { cube( size=[size_x,size_y,size_z], center=true ); } translate( v=[size_x/2+wall_thickness,size_y/2+wall_thickness,size_z/2+wall_thic...
glb/cad_86fc2d5a6325.glb
Create a shorts button by starting with a main cylinder that has a radius of 10mm and a height of 2mm. Remove four small cylindrical holes, each with a radius of 1mm and a height of 2mm, positioned symmetrically around the center. Place these holes at coordinates (1.8, 1.8), (1.8, -1.8), (-1.8, -1.8), and (-1.8, 1.8). ...
height = 2; radius = 10; depth = 0.5; hole_radius = 1; hole_offset = 1.8; difference() { cylinder(h=height, r=radius, $fn=50); translate([hole_offset, hole_offset]) cylinder(h=height, r=hole_radius, $fn=30); translate([hole_offset, -hole_offset]) cylinder(h=height, r=hole_radius, $fn=30); translate([-hole_offset, -ho...
glb/cad_d34d22831c0a.glb
Create a set of magnetic handles and matching bases for a printer enclosure. For the handle, create a mirrored pair of blocks. Each block has a main body 30mm wide, 27mm deep, and 17.2mm high. Carve a 3mm wide slot through the center of the block to hold a plexiglass panel. The front face of the handle is angled at -...
$fs = 1; $fa = 1; module mirror_duplicate(vector) { children(); mirror(vector) children(); } module disc_magnet() { radius = 6.35 + .25; depth = 1.5875 + .25; magnet_inset = 11; translate([magnet_inset, depth, radius+2]) rotate([90, 0, 0]) cylinder(100, radius, radius); } module handles(ma...
glb/cad_c9acd40c9116.glb
Create a perforated board for circuit prototyping. Start with a solid rectangular base measuring 101.6mm by 101.6mm with a thickness of 1.5748mm. Across the top surface, create a grid of square holes. Each square hole must measure 1.0668mm by 1.0668mm and penetrate completely through the thickness of the board. The h...
board_width = 1; board_length = 1; hole_spacing = 0.10; hole_diameter = 0.042; metric_or_imperial = 25.4; $FN=8; spacing=hole_spacing * metric_or_imperial ; holes=(hole_diameter * metric_or_imperial) ; board_w = board_width * metric_or_imperial ; board_l = board_length * metric_or_imperial ; board_h = 0.062 * 25....
glb/cad_3a76be5dde17.glb
Create four identical cylindrical shims. Each shim should be a hollow cylinder with an outer diameter of 7.6mm and a total height of 1mm. Bore a central hole through the entire height of each cylinder with a diameter of 3.6mm to accommodate an M3 bolt. Ensure the outer walls of the cylinders are rendered with a facet r...
SP_OD = 7.6; SP_Ht = 1; SP_OD_Res = 36; M3 = 3.6; M3_Res = 16; A_n = [0,19.2,38.4]; module M3_Spacer(S_Ht = SP_Ht) { difference() { cylinder(d=SP_OD,h=S_Ht,$fn=M3_Res); translate([0,0,-1]) cylinder(d=M3,h=S_Ht+2,$fn=SP_OD_Res); } } for (x = [0,SP_OD+2]) { for (y = [0,SP_OD+2])...
glb/cad_020ed0606164.glb
Create a base plate and fuse holder assembly for mounting a heatbed MOSFET and ATC fuses. First, construct the fuse holder components. Create a profile that is 20.5mm long and 26.1mm wide. For the main body, create a block 6.35mm thick. On each side of the center, place a cylindrical hole with a diameter of 3.6mm, of...
Hole_OD = 3.6; Hole_X_Offset = 14.71; Hole_Y_Offset = 11.75; echo(Hole_OD = Hole_OD); echo(Hole_X_Offset = Hole_X_Offset); echo(Hole_Y_Offset = Hole_Y_Offset); FH_Len = 20.5; FH_Wid = 26.1; FH_Len2 = FH_Len / 2; $fn = 24; size=[23,9,20]; module cubecxy(size){ translate([0,0,size[2]/2])cube(size,true); } module c...
glb/cad_17946cda1450.glb
Create a specialized nut-holding tool designed as a modified Allen wrench. Start by creating a hexagonal handle with a flat-to-flat width of 5mm and a total length of 75mm. This handle should be a 6-sided prism. At one end of the handle, construct a hexagonal socket to hold an M3 nut. The socket's internal flat-to-fla...
Allen_Handle_Flat = 5; Allen_Handle_Len = 50+25; Allen_Curve_Rad = 6; NutFlat = 5.55; Tolerance = .25; Socket_Ht = 5; Sockt_T_Ht = 4; Nut_Depth = 4; Add_Ht = 7; Rot_Head = 90; Thk = 2; Slice_ON = 1; Socket_ON = 1; Allen_Handle_Flat_Rad = Allen_Handle_Flat / 2; Allen_Handle_OD = ((Allen_Handle_Flat / 2) /co...
glb/cad_111b7f501e3c.glb
Create a specialized nut-holding tool designed as a modified Allen wrench. Start with a hexagonal handle that is 5mm across the flats and 50mm in length. At one end of this handle, create a 90-degree curved transition with a radius of 6mm that leads into a hexagonal socket head. The socket head should be a hexagonal p...
Allen_Handle_Flat = 5; Allen_Handle_Len = 50; Allen_Curve_Rad = 6; NutFlat = 5.55; Tolerance = .25; Socket_Ht = 5; Sockt_T_Ht = 4; Nut_Depth = 4; Add_Ht = 7; Rot_Head = 0; Thk = 2; Slice_ON = 1; Socket_ON = 1; Allen_Handle_Flat_Rad = Allen_Handle_Flat / 2; Allen_Handle_OD = ((Allen_Handle_Flat / 2) /cos(30...
glb/cad_f326ccd918fa.glb
Create a Makerbot end stop mount for an M8 rod. Start with a base composed of two rectangular blocks: one measuring 15mm by 11.2mm by 7mm, and a second measuring 24mm by 2.5mm by 7mm positioned at coordinates (-12, 17, 0). Add a small cylinder with a radius of 0.7mm and a height of 7mm at (-11.5, 19.2, 0), and a sphere...
$fn=24; module tear(r, h) { union() { cylinder(r=r, h=h); rotate([0, 0, 135]) cube([r, r, h]); } } difference() { union() { translate([1,.5,0]) cube([15, 11.2, 7]); translate([-12, 17, 0]) cube([24, 2.5, 7]); translate([-11.5, 19.2, 0]) cylinder(r=.7, h=7); translate([10,19.6, 4.5]) s...
glb/cad_b08613a6b755.glb
Create a 1/10th scale touring car wheel with a total diameter of 48mm and a width of 26mm. The main body is a hollow cylinder with a wall thickness of 2mm. At both the top and bottom faces, create a tire bead groove consisting of a 2mm high outer lip with a radius of 26mm and a 1mm high inner lip with a radius of 25mm,...
module Hex_Prism(d,h) { difference() { cylinder (r=1*d,h=h,center=true); union() { for (i=[0:1:5]) { rotate([0,0,i*60]) translate([d,0,0]) cube([d,1.1*d,1.01*h], center=true); } } } } module TC_Wheel(wd,ww,hd,off) { module TC_Wheel_Tire_Groove() { olt = 2; ilt = 1; gap=4; translate([0,0,-w...
glb/cad_04e060e5f30d.glb
Create a parametric pipe saddle clamp designed to hold a pipe with an outer diameter of 22.3mm. Start by forming the main body as a semi-cylindrical strap with a thickness of 1.5mm and a total width of 20mm. The inner radius of this strap must be 11.15mm to match the pipe's radius. Extend the strap outwards from the en...
pipe_od = 22.3; strap_width = 20; strap_tab = 20; strap_thick = 1.5; screw_hole = 4; pipe_rad = pipe_od/2; screw_rad = screw_hole/2; union() { difference() { cylinder(r=pipe_rad+strap_thick, h=strap_width, center=true); cylinder(r=pipe_rad, h=strap_width+1, center=true); translate([0,-pipe_rad/2-strap_thick/2...
glb/cad_3251011a4ca0.glb
Create a Speaker Spacer Ring with an overall height of 19.05mm. The main body is a cylinder with an outer diameter of 190.5mm (7.5 inches) and a height of 19.05mm. At the base, add a wider interface cylinder with a diameter of 196.85mm (outer diameter plus 0.25 inches) and a height of 6.35mm (0.25 inches). Remove a ce...
units_entered = 25.4; resolution = 128; d_inner= 5.85; d_outer= 7.5; ring_thickness = 0.75; spacertrimthickness = 0.25; spacerTrimHeight = 0.25; speakerHoleDiameter = d_inner; speakerScrewHoleSpacing = 6.5; numberOfSpeakerScrewHoles = 4; speakerScrewHoleDiameter = 0.128; speakerScrewHoleAngle = 45; mountScr...
glb/cad_ae3e8d55b2cc.glb
Create a Squirt Nozzle Hose Adapter consisting of a tiered cylindrical body with a central hollow bore. Start with a base cylinder 10.85mm in radius and 11mm high. At the top of this base, add a narrower cylinder with a radius of 4.6mm and a height of 3.4mm. Above that, place an alignment ring with a radius of 6.25mm a...
generate_supports = false; slop = 0.01; base_r = 10.85/2 + 0.4 - 0.2; base_h = 11; base_inner_r = 6.25/2 + .2; gasket_d = 1.4; gasket_inset = 1.25 + 0.2; gasket_h = 2.15 - 0.2; lock_inset_h = 3.4; lock_inset_r = 9.2/2 + 0.35; ring2_r = 12.5/2 + 0.15; ring2_h = 1.8; ring3_h = 4.1; ring3_r = 15.8/2 + 0.5; nozzle_n...
glb/cad_ba11a90592c7.glb
Create a Soma Cube puzzle set consisting of seven distinct polycubes, where each individual cube unit measures 7mm on all sides. Construct the seven pieces as follows: one piece made of 3 cubes in an L-shape; one piece made of 3 cubes in a straight line; one piece made of 4 cubes in a T-shape; one piece made of 4 cubes...
size = 7; cubes = [ [[0,0,0],[0,1,0],[1,0,0]], [[0,0,0],[0,1,0],[0,2,0],[1,0,0]], [[0,0,0],[1,0,0],[2,0,0],[1,1,0]], [[0,0,0],[1,0,0],[1,1,0],[0,-1,0]], [[0,0,0],[1,0,0],[1,1,0], [1,1,1]], [[0,0,0],[-1,-1,0],[0,0,1],[-1,0,0]], [[0,0,0],[0,0,1],[1,0,0],[0,1,0]] ]; function slice() = -360/len(cubes); function spa...
glb/cad_019d58d68cfd.glb
Create a shaving storage shelf by starting with a rectangular block measuring 170mm in width, 130mm in depth, and 60mm in height. Hollow out the center of this block to create a thin-walled container, leaving a wall thickness of 5mm on the sides and bottom. To form the interior storage area, remove a large rectangular ...
$fn=192; $x=170; $y=130; $z=60; module outer() { translate([0-$x/2,0-$y/2,0]) cube([$x,$y,$z]); } module basic() { translate([0-$x/4,1-$y/2,0]) cube([5,$y-2,$z]); difference() { outer(); translate([0,0,-10])scale([0.9,0.9,2]) outer(); } } module thebox1() { difference(){ basic(); translate([-100,-100,35...
glb/cad_32d78ea228a3.glb
Create a parametric spheroid pot by starting with a sphere that has a diameter of 80mm and a facet resolution of 23. Hollow out the sphere by removing a smaller concentric sphere with a radius 1mm smaller than the outer shell to create walls that are 1mm thick. To open the top and flatten the base, remove the upper and...
DIAMETER = 80; WALL_THICKNESS = 1; HEIGHT_RATIO = 1; POT_FLAT_RATIO = 0.66; $fn=23; r = DIAMETER / 2; scale([1, 1, HEIGHT_RATIO]) difference() { sphere(r=DIAMETER / 2); difference() { sphere(r=DIAMETER / 2 - WALL_THICKNESS); translate([-r - 1, -r - 1, r * (-1 - POT_FLAT_RATIO) + WALL_THICKNESS]) ...
glb/cad_bc00a310bad2.glb
Create a Rostock E3D Bowden tubed Fan Mounting bracket. Start with a primary circular disk 50mm in diameter and 2mm thick. Centered on this disk, place a rectangular plate measuring 57mm by 9mm by 2mm, oriented at a 45-degree angle. At each end of this rectangular plate, add a cylinder with a radius of 4.5mm and a heig...
base_mount_thickness = 2; base_mount_x_length = 30; base_mount_z_length = 10; base_height_off_mount = 10; base_mount_hole_radius = 1.5; $fn = 50; difference() { union() { rotate([0,0,45]) squirrelmount(); translate([-base_mount_x_length/2, fan_diameter/2-base_mount_z_length/2, 0]) cube([base_mount_x_length, base...
glb/cad_6b5c8bc3c046.glb
Create a fan mounting duct for a blower fan. Start with a rectangular base measuring 16.5mm wide by 12.5mm high with a thickness of 3mm. Add a thin rectangular shelf on top of this base that extends the dimensions to 17.5mm by 13.5mm with a height of 1mm. From the center of this assembly, extend a vertical nozzle stru...
use <MCAD/regular_shapes.scad> fan_outlet_width = 16.5; fan_outlet_height = 12.5; fan_outlet_depth = 3; fan_wall_width = 1; nozzle_wall_width = 0.8; fan_outlet_shelf_depth = 1; fan_outlet_shelf_buffer = 1; fan_outlet_nozzle_length = 6; tube_inlet_radius = 6.5; tube_inlet_rib_radius = 5; tube_inlet_rib_height = 2; ...
glb/cad_08d43e7ef887.glb
Create a Rostock E3D Bowden tubed Fan Mounting consisting of a central ring and three radial tube guides. Start with a base ring centered on the Z-axis with an inner radius of 15mm, an outer radius of 24mm, and a height of 3mm, positioned 11mm above the origin. Around this ring, create three identical tube guide asse...
ring_inner_radius = 15; ring_outer_radius = 24; ring_height = 3; ring_height_above = 11; tubing_diameter = 12.6; tubing_wall_width = 3; tubing_guide_height = 10; tubing_attack_angle = 35; snap_lock_height = 10; snap_lock_width = 10; snap_lock_thickness = 4.5; snap_lock_height_above = snap_lock_height + ring_height...
glb/cad_f87bc2a70aaa.glb
Create a wall socket child safety cover with a main rectangular body measuring 91mm wide, 106mm high, and 53mm deep. The walls of this body are 3mm thick. Hollow out the center of the body to create a cavity of 85mm by 100mm by 50mm. Cut two square cable routing holes through the body, each 15mm by 15mm. Position thes...
height = 100; width = 85; depth = 50; thickness = 3; diam_plugs = 40; size_cable_ns = 18; offset_cable_ns = 30; size_cable_top = 15; screw_diam = 5; latch = 15; latch_off = 15; latch_depth = 8; four_latches = 1; support = 1; split_design = 1; do_cover(); module do_cover() { difference () { union() ...
glb/cad_37c86a1899de.glb
Create a Fly Trap by revolving a specific 2D profile around the Z-axis with a 12-sided polygonal resolution. The profile for this revolution starts with a base section from 0 to 15mm on the X-axis and 0 to 4mm on the Z-axis. From there, it rises to a wall that is 40mm wide and 80mm tall, then steps up to a top rim that...
difference() { rotate_extrude($fn=12) rotate(a=[0,180,0]) translate(v=[-48,0,0]) polygon ( points = [ [0,20], [0,40], [40,80], [40,90], [38,90], [38,80], [-2,40], [-2,20], [10,4], [10,0], [15,0], [15,4], [30,4], [40,20], ...
glb/cad_9fcbc29b5224.glb
Create a Cable Label consisting of a small rectangular block with a semi-circular channel carved through its center to accommodate a cable. The main body is 20mm long, 10mm wide, and approximately 8mm high. The central cutout is a semi-cylinder that runs the full length of the block, creating two raised side walls. O...
hatchTextIn = "McK ICT"; bottomTextIn = "1"; font = "Ubuntu"; hatchTextSize = 2; bottomTextSize = 8; hatchTextSpacing = 1; hatchTextNudgeX = -14.7; hatchTextNudgeY = -0.1; bottomTextNudgeX = -2.5; bottomTextNudgeY = -0.3; textIndent = -0.8; bottomTextRotate = 0; length = 1; width = 1; bottomText = str(bottomTextI...
glb/cad_536f1ef98aaa.glb
Create a Bowden Extruder mount by starting with a main body composed of three joined rectangular blocks. The first block is a cube measuring 47mm x 13mm x 16mm, positioned from x=-45 to x=2. Attached to this is a second, thinner block measuring 48mm x 3mm x 16mm, centered along the y-axis from -1.5 to 1.5. A third, lar...
$fn=8; difference() { union () { translate ([-45,0,0]) cube ([47,13,16]); color ([0.3,1,0.3]) translate ([-45,-1.5,0]) cube ([48,3,16]); color("Blue")translate ([1,-46,0]) cube ([5,75,16]); } union() { color("Red")translate ([-32.5,6.5,-1]) cube ([20,30,20]); color("Red")translate ([-7,6.5,-3])cylinder (r=1.5, h = ...
glb/cad_5ccafd9fcfcb.glb
Create a game case holder by constructing a series of twelve identical slots. Each individual slot is formed by taking a solid rectangular block measuring 53.125mm in length, 14.3mm in width, and 58.1mm in height, and removing a smaller interior rectangular block measuring 51.625mm by 11.3mm by 56.6mm. This interior cu...
thick = 1.5; height = 56.6; length = 51.625; width = 11.3; module Game_Slot () { difference() { cube([length+thick,width+thick*2,height+thick]); translate ([thick,thick,thick]) cube ([length,width,height]); #translate([0,0,height+thick])rotate ([0,45,0])cube([76.607+thick,width+thick*2,76.60...
glb/cad_b232ffc08cf8.glb
Create a TomTom One GPS Universal Automotive Vent Mount. Start by constructing a main back plate as a rectangular block measuring 58.2mm wide, 2mm thick, and 15mm high, tilted at a 15-degree inclination. On each side of this back plate, add side supports that are 2.1mm wide, 2.5mm thick, and 15mm high. At the outer edg...
Inclination=-15; VentBarThickness=2.4; difference(){ translate([24.1,2,0]){ cube([10,20,4]);} rotate([-10,0,0]) translate([24.1,15.5,9]) cube([15,5.66,5.66]); } difference(){ translate([24.1,3,4+VentBarThickness]){ cube([10,19,4]);} rotate([10,0,0]) translate([24.1,10.5,-4]) cube([15,5.66,...
glb/cad_cf73f009c767.glb
Create a pot for a parametric artificial tree. Start by creating a solid cylinder with a base radius of 12.5mm and a height of 20mm. On top of this cylinder, add a torus with a major radius of 15mm (1.2 times the base radius) and a cross-sectional tube radius of 3mm. To create the mounting slot for the tree, remove a...
Item = "Pot"; levels = 5; len = 50; thickness = 5; height = 5; random_number = 6; shaft_deepness = 10; y_side_length_of_your_tree = 3.5; x_side_length_of_your_tree = 3.5; Base_radius = 12.5; top_torus_radius = 3; height_pot = 20; identity = [ [ 1, 0, 0, 0 ], [ 0, 1, 0, 0 ], [ 0, 0, 1, 0 ], [ 0, 0, 0, 1 ] ]; ...
glb/cad_d0756c5e644a.glb
Create a self-draining soap dish with a footprint of 80mm depth by 120mm width and a total height of 20mm. The main body consists of a series of parallel ribs running along the depth, each 1.5mm thick and spaced evenly across the 120mm width. These ribs are integrated into a base that slopes downward from the back towa...
W=120; D=80; H=20; T=1.5; R=1.5; $fn=100; difference() { union () { ribs(); plano_inclinado(); frontal(); } desague(); muesca_superior(); } module ribs () { for(y=[0:(W-T)/12:W]) { translate([0,y,0]) minkowski(){ if ((y >...
glb/cad_ce0cade8813f.glb
Create an inflatable pool cap consisting of a cylindrical outer shell and an internal threaded cavity. The main body is a cylinder with an outer diameter of 33.6mm (1.2 times the cap diameter of 28mm) and a height of 12.5mm, rendered with high resolution (120 facets) for smooth curves. Inside this body, carve out a cen...
include <Thread_Library.scad> cap_OD=28; cap_height=12.5; thread_depth=11.25; thread_pitch=3; major_diam=24; minor_diam=22.4; thread_resolution=120; difference() { cylinder(r=cap_OD/2*1.2, h=cap_height, $fn=120); translate([0,0,thread_pitch+cap_height-thread_depth]) trapezoidThreadNegativeSpace(length=cap_height,...
glb/cad_62c65df4b936.glb
Create a Hard Drive Adaptor consisting of two stacked hollow rectangular frames. First, create a base rectangular frame with outer dimensions of 101.6mm width by 146mm length and a height of 3mm. This base frame should have a wall thickness of 2.5mm on all four sides, leaving a hollow center. Directly on top of this ba...
hddWidth = 101.6; hddLength = 146; hdd3QuarterHeight = 20; hddFullHeight = 25.2; outerLoopThickness = 3; outerLoopDimensions = [hddWidth, hddLength, outerLoopThickness]; topLoopDimensions = [hddWidth, hddLength, hddFullHeight - hdd3QuarterHeight]; innerBorderThickness = 2.5; outerBorderThickness = 14; manifold...
glb/cad_9d8080371acd.glb
Create a Bowler Coaster by starting with a solid cylinder that has a radius of 45mm and a height of 9.6mm. From this base, remove two geometric volumes to create a hollowed-out center. First, remove a smaller cylinder with a radius of 31mm and a height of 15mm, positioned starting 2.4mm from the bottom of the base. Sec...
co_radius = 45; co_height = 9.6; module complexObject() { difference() { union() { cylinder(r=co_radius, h=co_height, center=false, $fn=100); } union() { translate(v = [0,0,110]) sphere (r=109, $fn=100); translate(v = [0,0,2.4]) cylinder (r=31, h=15, center=false, $fn=100); } } } complexObje...
glb/cad_48fff47fbd78.glb
Create a Kids Lock door frame section. Start by constructing a main rectangular frame with a length of 200mm, a width of 20mm, and a total height of 240mm. Within this structure, add two flat rectangular plates, each measuring 200mm by 50mm with a thickness of 20mm; position one at the very top and one at the very bott...
w1 = 200; w2 = 20; d1 = 50; l1 = 200; r1 = 50; r2 = 60; bh1 = 40; bh2 = 5; rotate(90,[1,0,0]) union() { cube([l1, w2, w1+2*w2], center = true); translate([0, -w2, -w1/2-w2/2]) cube([l1, d1, w2], center = true); translate([0, -w2, w1/2+w2/2]) cube([l1, d1, w2], center = true); translate([0,bh1/...
glb/cad_463b4486a131.glb
Create a casing for the Elektor v1.1 Linux board consisting of a main box and a lid. Construct the main box as a hollow rectangular shell with outer dimensions of 74.5mm x 91.5mm x 20.5mm and a wall thickness of 0.5mm. The interior cavity should be 70.5mm x 87.5mm x 16.5mm. On the side walls, create the following rec...
dik=0.5; module schroef() { translate([0,0,-4]) difference() { cylinder(r=5/2,h=2.5); cylinder(r=3/2,h=2.5); } } module klik() { translate([-5,20,5]) cube(size=[10,10,5]); translate([-5,60,5]) cube(size=[10,10,5]); translate([65,20,5]) cube(size=[10,10,5]); translate([65,60,5]) cube(size=[10,10,5]); } m...
glb/cad_85d714f8fd30.glb
Create an articulated watch band consisting of two parallel rows of links. Each standard link is a rectangular block 19mm wide, 12mm long, and 5mm high, with semi-cylindrical caps (radius 2.5mm) on the ends. For the standard links, create a hollowed-out internal structure to allow movement. On one side, remove two cy...
num_links = 8; print_tolerance = 0.3; link_width = 19; link_height = 5; link_length = 12; bar_offset = 1; lug_pin_radius = (1.8 + print_tolerance) / 2; $fn = 64; module link_base() { union() { cube([link_width, link_length, link_height]); translate([0, 0, link_height/2]) rotate([0, 90, 0]) ...
glb/cad_89bc0f948161.glb
Create a hexagonal ring with an outer width of 22.5mm and a height of 1.8mm. The shape is formed by a large hexagon with a smaller hexagonal hole removed from the center, where the inner hole has a width of 8.5mm. To create the structural ribs, add three rectangular prisms, each 1.5mm wide and 50mm long, centered on th...
ow = 22.5; h = 1.8; iw = 8.5; frame = 1.5; module hex(width, height) { union() { cube([width, width * tan(30), height], center=true); rotate(60, [0,0,1]) cube([width, width * tan(30), height], center=true); rotate(120, [0,0,1]) cube([width, width * tan(30), height], center=true); } } diffe...
glb/cad_00b96f4fbe0e.glb
Create a Rod Clasp with a total height of 16mm. Start by creating a central vertical pin that is a hull of two cylinders: one with a radius of 1.2mm and another with a radius of 2.7mm and a height of 11.2mm, both centered. Around this pin, construct a C-shaped clasp body. This body is formed by a hollow cylinder with...
clasp_height = 16; rod_diameter = 12; thickness = 2.4; straight_edges = 1; epsilon = 0.001; pin_dia = 3 + thickness; binding_tolerance = 0.45; module clasp(width, rod_dia=8, rod_offset) { $fn=20; height = width; capture_dia = rod_offset + rod_dia/2 - thickness*.25; over_angle = -12; hull() {...
glb/cad_1601addac8ed.glb
Create an AC 230V Outlet Cover consisting of a flat circular base and a protruding cylindrical grip. Start by creating a thin disk with a diameter of 38mm and a height of 0.8mm. On this disk, position a hole with a diameter of 5.5mm, centered 10.5mm away from the disk's center. From the top surface of the disk, centere...
base_height = 2*0.4; diam = 38; ground_distance = 10.5; ground_diameter = 5.5; ground_width=1.5; ground_height=16; module cover() { difference () { cylinder(h=base_height, r=diam/2); translate([ground_distance, 0, 0]) cylinder(r=ground_diameter/2, h=base_height); } translate([ground_distance, 0, base_heig...
glb/cad_660e49d181d0.glb
Create a Hotend Fan Mount by starting with a base composed of two centered rectangular blocks: a larger bottom block measuring 65mm x 28mm x 6mm and a smaller top block measuring 65mm x 10mm x 6mm, stacked to create a T-shaped profile. At a 45-degree angle relative to the base, add a rectangular block measuring 50mm x ...
mount_height = 6; insulator_diameter = 34; bolt_diameter = 3.7; fan_screw_spacing = 40; fan_screw_indent = 5; fan_hole_diameter = 47.5; fan_hole_indent = 1.2; fan_width = 50; module fan_negative() { union() { translate([0, fan_hole_indent+(fan_hole_diameter/2), 0]) { cylinder(mount_height+2, fan_hole_diameter/2...
glb/cad_4dea0ca6dfe9.glb
Create a wall mount for 2.5 inch USB drives by constructing a grid of mounting cells. For a single cell, create a U-shaped bracket with a base and two side walls. The base should be 84mm wide, 2mm thick, and 40mm deep. The two side walls should be 24mm high, 2mm thick, and 40mm deep, positioned at the edges of the base...
general_thickness = 2; drive_height = 20; drive_width = 80; drive_count_x = 2; drive_count_y = 2; mount_depth = 40; cable_hole_size_x = 14; cable_hole_size_y = 12; cable_hole_offset_x = 12; cable_hole_offset_y = 5; screw_hole_inset = 10; screw_hole_diameter = 5; screw_head_diameter = 10; module generateSingleMount(...
glb/cad_e743d390b4ad.glb
Create a parameterized vape case with a total height of 110mm, consisting of three stacked sections based on an octagonal profile. The bottom section is 15mm high, the middle section is 80mm high, and the top section is 15mm high. The bottom section starts as a scaled octagon and linearly extrudes upward with a 30-de...
bottomtwist = 30; middletwist = 90; toptwist = 30; totalslices = 20; bottomheight = 15; middleheight = 80; topheight = 15; totalheight = bottomheight + middleheight + topheight; taper = .75; outerradius = 26; outerdist = 3.37849279448; scaleval = outerradius/outerdist; vapeheight = 110; vaperadius = 12.75; buttonhe...
glb/cad_0d53d5bc6750.glb
Create an air fitting male connector consisting of a series of stacked coaxial cylinders and a hexagonal base, with a central hole of 4.99mm diameter running through the entire length. Starting from the bottom, create a cylinder with a radius of 3.775mm and a height of 0.5mm. Above this, add a cylinder with a radius ...
resfactor=2; function myfn(r)=max(3*r,12)*resfactor; module cyl(r=undef,h=undef,r1=undef,r2=undef){cylinder(r=r,h=h,r1=r1,r2=r2,$fn=myfn(r!=undef?r:max(r1,r2)));} module circ(r=undef){circle(r=r,$fn=myfn(r));} module ball(r=undef){sphere(r=r,$fn=myfn(r));} airfitting_size=[11.82,11.82,0.5+5.01+1.61+1.11+1.74+2.66+2.1...
glb/cad_7f20bec98f5b.glb
Create a flanged connector consisting of a central hub with three radiating arms. The central hub is a cylinder with a height of 14mm and a radius of 5.5mm. From this hub, extend three arms spaced equally at 120-degree intervals. Each arm begins with a smooth cylindrical standoff 15mm in length with a radius of 5.5mm...
overlap = 0.001; phi = 1.9; numConnectors = 3; ODs = [11,10,7]; centerH = 14; centerR = 11/2; length = 15; sections = 4; section_length = length/(sections); standoff=15; standoffOR = OR; translate([0,0,centerH/2]) rotate([0,90,0]) print_connectors(numConnectors, $fn=24); module print_cone_section(IR,OR) { cone...
glb/cad_6fe0e5fd2f47.glb
Create a parametric closet rod bracket. Start with a base mounting flange that is a rounded box with a width of 65.5mm, a height of 22mm, and a thickness of 5mm, featuring corner radii of 3mm. Centered on this base, add a pole support extension that is 35.5mm wide, 22mm high, and 15mm thick. Rotate this support extensi...
use <MCAD/boxes.scad> ears=20; basethickness=5; supportthickness=10; diameter=25.5; edgewall=5; bottomwall=5; angle=-8.5; fudgefactor=10; screwdiameter=4.5; height = diameter * (2/3) + bottomwall; width = diameter + (edgewall *2) + (ears *2); cuttoutheight = basethickness + supportthickness; intersection() { diffe...
glb/cad_81fffd4fc5f1.glb
Create a Customizable Circular Band Bracelet by constructing a ring with a circular cross-section. The main body is a torus with a wrist diameter of 51mm and a band diameter of 8mm. To ensure the model is flat on the sides, trim the torus to a total width of 7mm. To add flexibility, cut 36 equally spaced notches aroun...
wrist_diameter = 51; band_diameter = 8; band_width = 7; notch_count = 36; notch_gap = 1.5; $fn=60; pi = 3.1415926535; inner_radius = wrist_diameter / 2; band_radius = band_diameter / 2; torus_radius = inner_radius + band_radius; outer_radius = torus_radius + band_radius; notch_angle = 360/notch_count; half_gap = ...
glb/cad_90ecf6251964.glb
Create a 5-lug RC wheel hub by starting with a main cylindrical base that has a radius of 11.5mm and a total height of 8mm. Bore a central vertical hole with a radius of 2.1mm through the entire height of the cylinder. On the top face of the cylinder, center a rectangular slot that measures 10.4mm in length, 2.1mm in w...
width = 6; style = "pin"; hex_radius = 6 / sin(60) + 0.13; hex_depth = 4; height = style == "hex" ? width + hex_depth : width + 2; base_radius = 23 / 2; mounting_hole_radius = 16.3 / 2; difference() { cylinder(r = base_radius, h = height, $fs = 0.1); translate([0, 0, -1]) cylinder(r = 2.1, h = he...
glb/cad_43d4b9c06a9c.glb
Create a 3D coordinate system indicator consisting of three colored axes meeting at a central origin. At the origin, place a small sphere with a radius of 0.2 units. Construct the X-axis as a red line extending along the X-axis. This axis consists of a cylinder with a base radius of 0.1 units and a height of 10 units,...
module T(x=0, y=0, z=0){translate([x, y, z])children(); } module Tx(x) { translate([x, 0, 0])children(); } module Ty(y) { translate([0, y, 0])children(); } module Tz(z) { translate([0, 0, z])children(); } module Rx(x=90){rotate([x, 0, 0]) children();} module Ry(y=90){rotate([0, y, 0]) children();} module Rz(z=90){rota...
glb/cad_598cb5e8b48b.glb
Create a customizable pulley consisting of a wheel and a supporting U-shaped frame. Start by creating a pulley wheel as a cylinder with a diameter of 30mm and a height of 6mm. Remove a central vertical hole with a diameter of 3mm that passes completely through the wheel. Carve a groove into the outer circumference of t...
arm_width = 6; pully_diameter = 30; pully_width = 6; space = 1.5; hole_diameter = 3; rope = 7; $fs = 0.5; $fn = 0; ropeu = rope < pully_width ? pully_width : rope; echo(ropeu); rope_xtra = sqrt(pow(ropeu/2,2)-pow(pully_width/2,2)); echo(rope_xtra); rope_dist = pully_diameter/2 + rope_xtra; echo("Rope Dist "...
glb/cad_942acdd9f220.glb
Create a bowden swap kit adapter plate with a total height of 8mm. Start by forming a base shape using a convex hull that connects a central cylinder with a radius of 12mm to two smaller cylinders with radii of 7mm, positioned 50mm apart (25mm from the center in opposite directions along the Y-axis). From this solid,...
$fn=64; difference() { hull(){ cylinder(r=12, h=8); translate([0,-25,0]) cylinder(h=8,r=7); translate([0,25,0]) cylinder(h=8,r=7); } translate([0,-25,-0.1]) cylinder(h=8.2,r=2.6); translate([0,25,-0.1]) cylinder(h=8.2,r=2.6); translate([0,-25,5]) nut(3.2,8); translate([0,25,5]) nut(3.2,8); rotate(...
glb/cad_b4c4f76a6da8.glb
Create a bowden swap kit adapter. Start by forming a main body using a convex hull that connects a central cylinder with a radius of 12mm and a height of 12mm to two smaller cylinders, each with a radius of 7mm and a height of 8mm, positioned 25mm away from the center along the Y-axis in both positive and negative dire...
$fn=64; difference() { hull(){ cylinder(r=12, h=12); translate([0,-25,0]) cylinder(h=8,r=7); translate([0,25,0]) cylinder(h=8,r=7); } translate([0,-25,-0.1]) cylinder(h=8.2,r=2.6); translate([0,25,-0.1]) cylinder(h=8.2,r=2.6); translate([0,-25,5]) nut(12,8); translate([0,25,5]) nut(12,8); rotate(...
glb/cad_03a3c99c7f9c.glb
Create a bowden swap kit adapter by starting with a base shape formed from the convex hull of a 70mm x 4mm x 20mm rectangular block and a cylinder with a 23mm radius and 20mm height centered at coordinates (35, 24, 0). From this combined volume, remove a central vertical hole with a 21mm radius and 20.2mm height center...
difference() { hull() { cube([70, 4, 20]); translate([35, 24, 0]) cylinder(h = 20, r = 23); } translate([35, 24, -0.1]) cylinder(h = 20.2, r = 21); translate([0, 12, -0.1]) cube([70, 36, 20.2]); translate([35, 22, 7]) difference() { cylinder(h = 6, r = 23); translate([0, 0, -0.1]) cylinder(h = ...
glb/cad_df2ac9322097.glb
Create a Bowden swap kit adapter plate. Start with a base rectangular block 28mm wide, 100mm long, and 5mm thick. Add two rectangular slabs to the top of this base, each 28mm wide and 6mm thick, positioned at the very front and very back of the plate, but each only 2mm in length. Construct a central raised section by...
$fn=64; function nut_radius(radius) = radius / cos(180 / 6); function mm(inches) = 25.4 * inches; module plate() { union() { cube([28,100,5]); intersection() { translate([0,2,0]) rotate([0,90,0]) cylinder(r=5.5, h=28); cube([28,100,6]); } intersection() { translate([0,100-2,0]) rota...
glb/cad_e44022fa077b.glb
Create a Spool Drawer Storage Box rack. The rack is a curved segment of a circular ring with an outer radius of 97mm (spool radius 95mm plus 2mm margin) and an inner radius of 51mm, resulting in a rack width of 44mm. The height of the rack is 64mm. The rack's cross-section is defined by a wall thickness of 1.5mm. The ...
spool_diameter=190; spool_height=65; rack_width=44; rack_count=4; spacer_count=1; spacer_height=0.8; floor_count=1; single_print = 1; mirror_rack = 0; handle_hole_size=20; handle_grip_size=0; handle_grip_height=0.5; handle_grip_width=0.8; hinge_width=20; drill_width=5; wall_thickness=1.5; explode_margin=...
glb/cad_9e0da55e2f33.glb
Create a rocket model centered on a vertical axis. Start with a base cylinder 20mm high with a radius of 10mm. At the bottom of this cylinder, add four fins spaced 90 degrees apart; each fin is a wedge shape created by extruding a rectangle of 20mm by 5mm that tapers to a point over a length of 30mm. Above the base, ...
module fin(Height, Width, Length){ translate([.5,0,0]) rotate([0,-90,0]){ linear_extrude(height = Length, scale=0) square([Height,Width]); } } module fins(Height,Radius){ bHeight = Height/4; bLenght = Radius*3; bWidth = bLenght/6; fin(bHeight,wt,bLenght); rotate([0,0,90]) fin(bHeight,bWidth,bLenght); r...
glb/cad_d3b1f847586b.glb
Create a Golf Ball Coin by starting with a hemispherical shell. First, generate a solid hemisphere with a radius of 21.5mm. From this shape, remove a smaller concentric sphere with a radius of 19.5mm to create a hollow interior with a wall thickness of 2mm. Finally, slice the entire object horizontally at its equator t...
owall = 2; size = 43; slice = 67; difference() { translate([0,0,-size*slice/100+size/2]){ import_stl("golf-ss.stl", convexity = 5); sphere(r=size/2-owall); } translate([-size,-size,-size*2]){ cube([size*2,size*2,size*2]); } }
glb/cad_5ddcb75ea1e5.glb
Create a Pet Food Slicer consisting of a slicing head and a separate handle. For the slicing head, start with a central cylinder that has a height of 10mm and a radius of 5mm. Around this center, arrange six rectangular blades radiating outward. Each blade must be 38mm long, 1.5mm thick, and 10mm high, positioned so th...
sliceDiameter = 76; sliceRadius = sliceDiameter/2; sliceCount = 6; sliceHeight = 10; thickness = 1.5; stemRadius = 5; stemHeight = 40; handleRadius = 10; handleHeight = 4; $fn = 36; union() { for (r=[1:sliceCount]) { rotate(360*r/sliceCount,[0,0,1]) translate([0,-thickness/2,0]) cube([sliceRadius,thickne...
glb/cad_ca76da2910ba.glb
Create a Parametric Hypercube Evolution Levelling Knob. Start by constructing a central knob body formed by the union of two rounded boxes, each measuring 50mm by 10mm by 10mm with a corner radius of 5mm, where one box is rotated 90 degrees relative to the other. Remove a central 60mm by 60mm by 4mm cube and a hexagona...
use <MCAD/Boxes.scad> $fn=60; height = 27; shaft_dia = 13; screw_hole = 4; cap_height = 3; knob_height = 8; nut = 9.7; union() { knob(); translate ([0,0,height - 4]) cap (shaft_dia, screw_hole); shaft(height, shaft_dia, nut); } module shaft (height, shaft_dia, nut) { translate ([0,0,-.001]) difference() { cy...
glb/cad_34af833f6ae7.glb
Create a 3D model of a building facade that resembles a grid of windows. Start by creating a solid rectangular base with a thickness of 5mm. From this base, remove a series of rectangular holes to create a window grid. The grid consists of three rows of openings. The top row contains four rectangular holes. The middle...
module module1() { color ([1,0.6,0.4]) { polygon(points = [ [-26.00,-19.00] ,[-26.00,29.00] ,[3.00,30.00] ,[3.00,24.00] ,[21.00,23.00] ,[21.00,-19.00] ,[-26.00,-19.00] ] ,paths = [ [0,1,2,3,4,5,6]] ); } } module module2() { color ([0,0.6,0.4]) { polygon(points = [ [-21.00,27.00]...
glb/cad_df5a080ee7c3.glb
Create a 3D model consisting of several overlapping and adjacent rectangular prisms of varying heights and dimensions. First, create a rectangular block with a width of 3mm, a height of 42mm, and a depth of 6mm, positioned from x=-20 to -17 and y=-29 to 13. Next, add a smaller rectangular block with a width of 4mm,...
module module1() { color ([0.8,0.8,0.4]) { polygon(points = [ [-20.00,13.00] ,[-18.00,13.00] ,[-18.00,-29.00] ,[-21.00,-29.00] ] ,paths = [ [0,1,2,3]] ); } } module module2() { color ([0.2,1,0.2]) { polygon(points = [ [-14.00,13.00] ,[-14.00,8.00] ,[-18.00,8.00] ,[-18.00,13.00] ...
glb/cad_8fafc8ed5081.glb
Create a Modular Grid Token Holder consisting of two separate grid trays. Each tray is built upon a base plate 0.8mm thick with rounded corners of radius 4mm. The walls are 0.8mm thick and 15.8mm high. For the first tray, create a grid based on a cell size of 18mm by 18.5mm. The horizontal layout follows a pattern of ...
$fn=128; n=0.4; bT=0.4*2; gT=n*3; sH=15+bT; sLenX=18; sLenY=18.5; sThick=n*2; fsLenX=13; fsLenY=13; tlR=5; cr=4; fr=sH/2; testH=[ [1,2,1], [1.1,3.3,1], [1.2,0,1] ]; testV=[ [2,1.1,1.2,1], [1.1,0,3.2,1] ]; cellsH_XiaA = [ [1,2,1,1,2,1,2,1], [1,1,3,1,0,1,0,0], [1,1,1,1,1,3,1,0], ...
glb/cad_b921134e088c.glb
Create a Modular Grid Token Holder with a base plate thickness of 0.8mm and an overall side wall height of 15.8mm. The outer perimeter should have rounded corners with a radius of 4mm and a wall thickness of 0.8mm. The interior is divided into a grid of cells. The horizontal cell length is 43.8mm and the vertical cell...
$fn=128; n=0.4; bT=0.4*2; gT=n*3; sH=15+bT; sThick=n*2; sLenX=(135-sThick*4)/3; sLenY=(50-sThick*2); fsLenX=13; fsLenY=13; tlR=5; cr=4; fr=sH/2; cellsH_XiaCubes = [ [1.1,1.1,1.1], [1.2,1.2,1.2] ]; cellsV_XiaCubes = [ [1.1,3.3,3.3,1.2] ]; ModularGridRC(cellsH_XiaCubes,cellsV_XiaCubes,grid=false); mo...
glb/cad_51af68189a8d.glb
Create a Modular Grid Token Holder with a base thickness of 0.8mm and a total side height of 15.8mm. The overall footprint is defined by a grid of cells where each cell has an internal length of 18mm in X and 18.5mm in Y, separated by walls with a thickness of 0.8mm. The outer corners of the entire base must be rounded...
$fn=128; n=0.4; bT=0.4*2; gT=n*3; sH=15+bT; sLenX=18; sLenY=18.5; sThick=n*2; fsLenX=13; fsLenY=13; tlR=5; cr=4; fr=sH/2; testH=[ [1,2,1], [1.1,3.3,1], [1.2,0,1] ]; testV=[ [2,1.1,1.2,1], [1.1,0,3.2,1] ]; cellsH_XiaE = [ [1,2,2,2,2,2,1,2], [0,1,0,1,0,3,0,1], [0,1,0,1,0,1,0,1.4], ...
glb/cad_b08257aef5b7.glb
Create a customizable in-drawer knife block split into two interlocking pieces. The overall dimensions are 63.5mm wide, 25.4mm high, and 25.4mm deep. The main body is a rectangular slab with rounded top edges (radius 5.08mm). To create the blade slots, carve out two longitudinal channels. Each channel must be 3.175mm ...
round_edges = 1; split_block = 1; millimeters_or_inches = 25.4; blade_count = 2; blade_length = 9; blade_width = 0.125; handle_length = 5.5; width = 2.5; height = 1; tab_scale = 0.95; scaled_length = (blade_length + handle_length) * millimeters_or_inches; scaled_width = width * millimeters_or_inches; scaled_h...
glb/cad_a48d5c347f53.glb
Create a Hypercube Evolution Y End Stop Marker consisting of a main rectangular block and an attached vertical flag. The main block is 12mm deep, 17mm wide, and 14mm high. Centered on this block, add a vertical flag that is 2mm thick, 17mm wide, and 31mm high, extending upwards from the top of the block. Extend the ove...
$fn = 30; blockWidth = 17; blockHeight = 14; blockDepth = 12; flagDepth = 2; flagHeight = 31; flagYExtension = 10; cutOutHeight = 2.5; cutOutWidth = 4.5; cutOutYtrans = (cutOutWidth/2)-(blockWidth/2); cutOutZtrans = (cutOutHeight/2)-(blockHeight/2); flagXtrans = (flagDepth/2)-(blockDepth/2); flagZtrans = (flagHeight...
glb/cad_0d79d1fd794b.glb
Create a 3D ambigram consisting of two words, "HELLO" and "WORLD", intersecting at right angles. Use a bold sans-serif font with a size of 20mm for all letters. First, create the word "HELLO" by extruding each letter vertically to a height of 144mm (calculated as the sum of the font size and 8mm spacing multiplied by...
text_1 = "HELLO"; text_2 = "WORLD"; font_size = 20; font_spacing = 8; font = "Source Code Pro:style=Bold"; build_base = "yes"; base_type = "circle"; union() { length = max(len(text_1), len(text_2)); base_offset = build_base == "yes" ? font_size / 5 : 0; translate([0, 0, base_offset]) intersection() ...
glb/cad_df22053577d3.glb
Create a camera cover consisting of a wide base and a central mounting assembly. Start by creating a main cylindrical body with a diameter of 60mm and a height of 5mm. Centered on this body, add a mounting ring with an outer diameter of 43mm and an inner diameter of 40mm, extending to a height of 4mm. On top of this ri...
$fn = 100; coverBodyOuterHeight = 5; coverBodyOuterDiameter=60; mountHeight = 4; mountInnerDiameter=40; mountOuterDiameter=43; threadHeight = 2; mountThreadOuterDiameter=45; threadLength=14.72; mountSpacerHeight=1.25; mountSpacerOuterDiameter=46.67; module cameraCoverEOSm() { rotate([0, 180, 0]) { mountRing();...
glb/cad_d52367a7293e.glb
Create a socket clip wall mount by constructing a base plate and two upright walls. The main body is a flat plate 55mm wide, 42mm deep, and 15mm thick. Extend the outer edges of the plate by 3mm to create a border. On the sides, add two vertical walls that are 3mm thick and 15mm high, extending from the depth of the ba...
width = 55; depth = 42; inset = 4; extrude = 15; thickness = 3; screw = 5; head = 10; offset = 2 * width / 6; basic = 0; difference() { linear_extrude(height = extrude) polygon( points = [[0,0], [width, 0], [width, depth], [width-inset, dep...
glb/cad_81ed540ecff4.glb
Create a coordinate system solid by starting with a sphere that has a radius of $\sqrt{2}$ mm (approximately 1.414 mm). Slice this sphere horizontally to remove the bottom half and a portion of the top. Specifically, remove everything below the center plane ($z=0$) and everything above a height of 1 mm from the center....
sphereRadius=sqrt(2); cutHeight=1; rez=100; difference(){ sphere(r=sphereRadius, $fn=rez); translate([0,0,-sphereRadius]) cube(2*sphereRadius,center = true); translate([0,0,sphereRadius+cutHeight]) cube(2*sphereRadius,center = true); }
glb/cad_a23b37a46701.glb
Create a coordinate system solid by starting with a solid sphere with a radius of 2mm. Remove the bottom half of the sphere by centering a cube of 4mm per side on the origin and subtracting it from the sphere. From the remaining upper hemisphere, remove a conical volume centered on the z-axis. This cone should start fr...
sphereRadius=2; coneSlope=1; rez=100; fudge=0.005; difference(){ sphere(r=sphereRadius, $fn=rez); translate([0,0,-sphereRadius]) cube(2*sphereRadius,center = true); cylinder(h=sphereRadius, r1=fudge, r2=sphereRadius/coneSlope, $fn=rez); }
glb/cad_2b00cfcdcdab.glb
Create a coordinate system solid by starting with a solid sphere that has a radius of $\sqrt{2}$ mm (approximately 1.414 mm). From this sphere, remove a central vertical cylinder with a radius of 1 mm that passes completely through the center along the z-axis. Additionally, remove the entire bottom half of the sphere b...
sphereRadius=sqrt(2); cylinderRadius=1; rez=100; difference(){ sphere(r=sphereRadius, $fn=rez); translate([0,0,-sphereRadius]) cube(2*sphereRadius,center = true); cylinder(h=2*sphereRadius, r=cylinderRadius, center=true, $fn=rez); }
glb/cad_306fb5aa1160.glb
Create a cursor stick for an Enterprise 128 computer. Start by constructing a base conical section with a height of 9mm, tapering from a bottom radius of 9mm to a top radius of 10mm. Directly on top of this base, add a second conical section with a height of 14mm, tapering from a bottom radius of 10mm to a top radius o...
difference(){ union(){ cylinder(r1=9,r2=10, h=9); translate([0,0,8]) cylinder(r1=10,r2=14,h=14); translate([0,0,22]) cylinder(r=14,h=35); } translate([0,0,-1]) cylinder(r=6,h=10); }
glb/cad_eac124fb7653.glb
Create a vibration absorber consisting of a series of stacked rings connected by thin vertical walls. The structure is based on a total outer diameter of 46mm. Start by creating 14 concentric rings, each with a height of 0.4mm and a wall thickness of 3.2mm, resulting in an inner diameter of 39.6mm. Space these rings ...
diameter=46; nlayers=13; heightlayer = 2.2; nvertwall=12; thickwall = 0.8; thickring =0.4; widthring = 3.2; module ring(hr) { translate([0,0,hr]) difference() { cylinder(r=diameter/2,h=thickring); translate([0,0,-1]) cylinder(r=diameter/2-widthring,h=thickring+2); } } module vertwalls(rm...
glb/cad_cfad5f0a5be8.glb
Create a vibration absorber consisting of a series of stacked square rings connected by thin vertical walls. Start by creating 11 square rings, each with an outer width of 30mm, a thickness of 0.4mm, and a wall thickness of 4mm. Space these rings vertically with a gap of 3mm between each one. Between each pair of ri...
width=30; nlayers=10; heightlayer = 3; nvertwall=8; thickwall = 0.8; thickring =0.4; widthring = 4; module borderring(ww, hh, rr) { difference() { cube([ww,ww,hh], center = true); cube([ww-2*rr,ww-2*rr,hh*2], center = true); } } module vertwalls(rmin, hr) { translate([0,0,hr+(heightlayer/2+thickri...
glb/cad_913de5be4661.glb
Create a Capsela Connector by constructing a hollow octagonal prism with a total height of 19mm. The main body is an eight-sided prism with an outer diameter of 15mm and rounded edges created by a 1.5mm radius. At the vertical midpoint, add a decorative thin ring with a diameter of 18.5mm and a height of 0.1mm. The i...
$fn = 90; nozzle_diameter = 0.4; connector(); module connector() { difference() { union() { translate([0, 0, 1.5]) minkowski() { cylinder(d = 18 - 3, h = 19 - 3, $fn = 8); sphere(r = 1.5, $fn = 16); } translate([0, 0, (19 / 2)]) minkows...
glb/cad_d49cd37d17b0.glb
Create a customizable electronics enclosure consisting of a bottom shell, a top shell, a front panel, and a back panel. The bottom shell is a hollow rectangular box with a wall thickness of 2mm and rounded corners with a 2mm radius. The interior is designed to house a PCB of 80mm x 144mm x 1.6mm. To support the PCB, ...
Thick = 2; PanelThick = 2; FontThick = 0.5; Filet = 2; Round = 1; CutoutMargin = 0.3; PartMargin = 0.1; PCBFeet = 1; Decorations = 1; Vent = 1; Vent_width = 1.5; PanelThickGap = CutoutMargin + PartMargin; PanelVerticalGap = PartMargin; PanelHorizontalGap = CutoutMargin + PartMargin; ScrewHole = 2.2606; Box...
glb/cad_4fb66556d091.glb
Create a Sainsmart 12864 LCD case consisting of a top cover, a back panel, and components for buttons and a knob. For the top cover, create a rectangular shell with an outer footprint of approximately 96mm by 102mm. The top surface should be hollowed out by a central rectangular cutout of 94mm by 100mm and 25mm deep. ...
include <MCAD/nuts_and_bolts.scad> translate([0,0,-15]) top(); translate([0,0,15]) back(holes=1); translate([37.5,-3,-24.5]) button(); translate([37.5,-35.5,-24.5]) button(); translate([33.7,-17.9,-27.5]) rotate([0,180,0]) knob(); module button(short=false) { translate([0,0,2]) cylinder(r=4.5,h=2,$fn=32,center=true...
glb/cad_baba75275e24.glb
Create a Bicycle Accessory Bar consisting of two symmetrical clamping arms. For each arm, start with a main cylindrical barrel 22mm in diameter and 18mm in height. Create a 6mm diameter through-hole along the center axis of the barrel. At the barrel's end, add a counter-bore with a 10mm diameter and 5.5mm depth. Exten...
DiaBarrel = 22; LenBarrel = 18; DiaBarrelHole = 6; CrankLength = 70; CrankWidth = 15; CrankThickness = 12; DiaConHole = 3.3; xHole = 35; deltaHole = 12; NconHoles = 2; crankWidth = 15; rScallop = 15.0; DiaClampHole = 27.4; clampThickness = 10; slitWidth...
glb/cad_a600ce327b48.glb
Create a Nub Hook consisting of a square base and a vertical protrusion topped with a sphere. Start with a square base plate measuring 6mm by 6mm with a thickness of 1mm. Center four small circular holes with a radius of 0.2mm on the base, positioned symmetrically at coordinates (2.3, 2.3), (-2.3, 2.3), (2.3, -2.3), an...
$fn = 40*1; FUESSE = 3; HOEHE = 6; difference() { cube([6,6,1], true); for(j = [1:4]) { rotate(j*360/4, [0, 0, 1]) { translate([2.3, 2.3, -1]) cylinder(h=2, r=0.2); } } } translate([0,0,HOEHE/2]) { cylinder(h=HOEHE, r=0.8, center = true); translate([0,0,HOEHE/2]) { sphere(1.5); ...
glb/cad_8e0e536f6d81.glb
Create a Parametric D Cell Battery Holder consisting of a main case and a removable cover. For the case, create a rectangular box with a height of 33.2mm. Hollow out the center to create a shell with a wall thickness of 5.25mm. Inside this cavity, create cylindrical cutouts for the batteries with a diameter of 33.2mm...
batter_holder(2, 6, false, true); module batter_holder( number_of_rows = 2, number_of_columns = 3, enable_case = true, enable_cover = true) { cell_diameter = 33.2; cell_cylinder_height = 58; cell_total_height = 61.5; lead_wire_diameter = 4; contact_width = 1.5 + .25; contact_dep...
glb/cad_242900408e54.glb
Create a car tablet support consisting of a vertical main body and two horizontal arms. Start with a vertical rectangular prism measuring 15mm wide, 5mm deep, and 140mm high. At the top of this vertical body, add a horizontal rectangular arm measuring 15mm wide, 32mm deep, and 5mm high, positioned so it extends from ...
module bend(d1=10,d2=10,r=10,w=5,a=0,h=10) { huge = r*w; difference() { cylinder(r=r+w, h=h); translate([0,0,-0.5]) { cylinder(r=r, h=h+1); translate([0,r-huge,0]) cube([huge, huge, h+1]); rotate([0,0,-a]) translate([0,-r,0]) cube([huge, huge, h+1]); } } translate([0,r,0]) ...
glb/cad_08f77ba05447.glb
Create a car tablet support consisting of a vertical main body and several horizontal attachments. Start with a vertical rectangular prism measuring 15mm wide, 5mm deep, and 140mm tall. At the top, add a horizontal rectangular arm extending 32mm in one direction and 15mm wide, with a thickness of 5mm. At the bottom, ad...
module bend(d1=10,d2=10,r=10,w=5,a=0,h=10) { huge = r*w; difference() { cylinder(r=r+w, h=h); translate([0,0,-0.5]) { cylinder(r=r, h=h+1); translate([0,r-huge,0]) cube([huge, huge, h+1]); rotate([0,0,-a]) translate([0,-r,0]) cube([huge, huge, h+1]); } } translate([0,r,0]) ...
glb/cad_095c9a48077e.glb
Create a car tablet support consisting of a vertical main pillar and several attached brackets. Start with a vertical rectangular pillar measuring 7mm wide, 5mm deep, and 132mm tall. At the top of this pillar, add a horizontal rectangular block measuring 15mm wide, 16mm deep, and 5mm tall, positioned so its top surface...
module bend(d1=10,d2=10,r=10,w=5,a=0,h=10) { huge = r*w; difference() { cylinder(r=r+w, h=h); translate([0,0,-0.5]) { cylinder(r=r, h=h+1); translate([0,r-huge,0]) cube([huge, huge, h+1]); rotate([0,0,-a]) translate([0,-r,0]) cube([huge, huge, h+1]); } } translate([0,r,0]) ...
glb/cad_bc8503c20bf9.glb
Create a car tablet support consisting of a vertical main body and a horizontal arm. Start with a vertical rectangular pillar 7mm wide, 5mm deep, and 132mm tall. At the top of this pillar, attach a horizontal rectangular block 15mm wide, 16mm deep, and 5mm tall, positioned from 127mm to 132mm height. Integrate a suppo...
module bend(d1=10,d2=10,r=10,w=5,a=0,h=10) { huge = r*w; difference() { cylinder(r=r+w, h=h); translate([0,0,-0.5]) { cylinder(r=r, h=h+1); translate([0,r-huge,0]) cube([huge, huge, h+1]); rotate([0,0,-a]) translate([0,-r,0]) cube([huge, huge, h+1]); } } translate([0,r,0]) ...
glb/cad_dc9b844d3ca0.glb
Create a car tablet support consisting of a main vertical pillar and two horizontal mounting arms. Start with a vertical rectangular pillar measuring 7mm wide, 5mm deep, and 132mm tall. At the top of the pillar, centered at a height of 127mm, attach a horizontal rectangular block measuring 15mm wide, 16mm deep, and 5...
include </usr/share/openscad/chamfers.scad> module bend(d1=10,d2=10,r=10,w=5,a=0,h=10) { huge = r*w; difference() { cylinder(r=r+w, h=h); translate([0,0,-0.5]) { cylinder(r=r, h=h+1); translate([0,r-huge,0]) cube([huge, huge, h+1]); rotate([0,0,-a]) translate([0,-r,0]) cube([huge, ...
glb/cad_ff08f4ab2ae9.glb
Create a Contour camera mount adapter by starting with a solid rectangular block measuring 26.5mm in width, 52mm in length, and 17.5mm in height. Remove two rectangular channels from the top surface, each 5mm wide and 5mm deep; position the first channel to run the full length of the block from x=22.5mm to x=27.5mm, an...
rotate(a=[90,0,0]){ difference(){ cube([26.5,52,17.5]); translate(v=[22.5,-1,13]){ cube([5,55,5]); } translate(v=[-1,-1,13]){ cube([5,55,5]); } translate(v=[26.5/2,52/2,-1]){ cylinder(h=30, r=3.5); cylinder(h=7, r=9); } } }
glb/cad_8d4e27575ace.glb