Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a 3D keychain model of a stylized human figure with a ball. All components should have a uniform thickness of 3mm. Start with a central torso consisting of a 33mm by 47mm rectangle. Attach a head as a cylinder with a 15mm radius at the top. For the arms, add a 50mm by 12mm rectangle extending from the shoulders;...
translate([0,0,0]) cylinder(h=3,r=15,$fn=70); translate([-18,-25,0]) cube([50,12,3]); translate([37,-20,0]) rotate([0,0,70]) cube([30,12,3]); translate([31.1,-19,0]) cylinder(h=3, r=6,$fn=70); translate([41.5,10,0]) cylinder(h=3, r=6, $fn=70); translate([-18,-70,0]) cube([33,47,3]); translate([34,-120,0]) rotate(...
glb/cad_04dba844fec7.glb
Create a PSU mount by starting with a rectangular block measuring 38mm in width, 23.5mm in depth, and 12mm in height. Remove two rectangular sections from the top edges, each 5.6mm wide and 20mm deep, positioned 0.5mm from the left and right outer edges respectively, and extending 15mm deep to clear the top. Drill a ve...
$fn=222; difference() { cube([38,23.5,12]); translate([-0.5,4,-1])cube([5.6,20,15]); translate([32.9,4,-1])cube([5.6,20,15]); translate([19,-1,6])rotate([-90,0,0])cylinder(r=2.4,h=50); translate([19,8,6])rotate([90,0,0])cylinder(r=4.5,h=50); translate([19,-17,-1])cylinder(r=20,h=20); }
glb/cad_fbc783543256.glb
Create a PSU mount by starting with a rectangular base measuring 40mm in length, 20mm in width, and 4.5mm in height. From this base, remove a large rectangular section measuring 40mm by 10mm by 20mm from the side, and another identical section from the opposite side, leaving a central strip. Additionally, remove a cent...
$fn=50; rotate([90,0,0]) difference() { union(){ cube([40,20,4.5]); translate([25,10,6.7])rotate([0,0,30])cube([10,30,7],center=true);} translate([9,9,-1])cylinder(r=1.9,h=20); translate([41.6,20,6.7/2-0.01])rotate([0,0,30])cube([40,40,6.7],center=true); translate([0,-9.99,-1])cube([40,10,20]); translate([0,19.99,-1])...
glb/cad_d78a043aeb68.glb
Create a 3D puzzle consisting of five distinct hexacubes, where each hexacube is an assembly of six cubes with a side length of 10mm. The overall structure is formed by joining these five pieces together. To construct the pieces, follow these coordinate-based layouts for the cubes: Piece 1: (2,1,0), (1,2,0), (2,2,0), ...
view_answer5(ans_p_corner); module view_answer5(file) { color("red") join_cubes(file,1,6); color("yellow") join_cubes(file,7,6); color("lightblue") join_cubes(file,13,6); color("blue") join_cubes(file,19,6); color("lightgreen") join_cubes(file,25,6); } module view_answer6(file) { color("red") join_cubes(file...
glb/cad_97523824e8c2.glb
Create a parametric boat hull with a total length of 500mm, a maximum width of 130mm, and a maximum height of 70mm. The hull is generated by lofting a series of 23 cross-sectional profiles (bulkheads) distributed along the length from step 1 to 100. Each profile is defined by a height factor, width factor, and a shape ...
processing = 0; phi_steps = 1.00; filled = 1; rounded = 0; length = 500 -rounded; width = 130 -rounded; height = 70 -rounded; hull_thickness = 3; bulkhead_thickness = 2.5; mesh_thickness = 2; spacer = 0.3; $fn = 100; shape = [ [1, [ 0.02, 0.02, 1.00 ]], [3, [ 0.17, 0.10, 1.00 ]], [6, [ 0.34,...
glb/cad_1a4d1fbd97d0.glb
Create an SD card grip consisting of a rectangular base and a circular finger loop. Start by creating a rectangular block 28.5mm wide, 6.65mm thick, and 5.4mm deep. Centered within this block, carve out a rectangular slot 24.5mm wide, 2.65mm thick, and 3.4mm deep, leaving a 2mm wall on the top and bottom and a 2mm ceil...
sdWide = 24.5; sdThick = 2.65; sdInsertion = 3.4; bodyWall = 2; bodyCeiling = 2; gripOuterDiameter = 24; gripInnerDiameter = 19; gripThickness = 4; gripIntrusion = 5; module body() { difference () { cube ([sdWide, sdThick + (bodyWall * 2), sdInsertion + bodyCeiling]); translate ([0,bodyWall,0]) #cube ([sdWi...
glb/cad_945bfaf0ef6b.glb
Create an SD Card Grip consisting of a rectangular base and an attached circular finger loop. Start by creating a solid rectangular block 28.5mm wide, 6.65mm thick, and 6.4mm high. Carve a rectangular slot out of the bottom of this block, centered with 2mm margins from the edges, measuring 24.5mm wide, 2.65mm thick, an...
sdWide = 24.5; sdThick = 2.65; sdInsertion = 3.4; bodyWall = 2; bodyCeiling = 3; gripOuterDiameter = 24; gripInnerDiameter = 19; gripThickness = 4; gripIntrusion = 5; module body() { difference () { cube ([sdWide + (bodyWall * 2), sdThick + (bodyWall * 2), sdInsertion + bodyCeiling]); translate ([bodyWall,bod...
glb/cad_9c1301a95769.glb
Create a refrigerator door handle replacement. The handle consists of a main grip bar and two mounting bases. The main grip bar is a rounded rectangular prism with a width of 18mm, a height of 22mm, and a total length of 232mm (calculated from a 156mm hole separation plus 40mm base lengths and 20mm overhangs on each e...
Hole_Separation = 156; Handle_Width = 18; Handle_Height = 22; Handle_Overhang = 20; Bar_Height = 6; Base_Width = 12; Base_Length = 40; Column_Length = 12; Base_Screw_Radius = 2; Base_Screw_Head_Radius = 4; Num_Top_Holes = 7; Top_Hole_Radius = 4; refrigerator_handle(); module refrigerator_handle() { Ro...
glb/cad_8889b20cf789.glb
Create a Fibonacci Sphere with a radius of 50mm. The sphere should be constructed by generating 10,000 roughly equidistant vertices distributed across its surface. To determine the position of each vertex, space them at regular intervals along the z-axis from the bottom to the top of the sphere, and rotate each success...
fibonacci_sphere(50,n=10000); module fibonacci_sphere(r, n, $fn){ $n = n==undef? ceil((0.5*$fn*$fn)/2) : n; hull() polyhedron(points = [ for(i=[-$n:($n-2)]) r * _pos(i,$n) ], faces=[ for(i=[0:3:2*$n]) [i,i+1,i+2] ]); } function _pos(i, n) = [cos(_lon(i)) * ...
glb/cad_45909d00d525.glb
Create a Cane Top eye protector consisting of a circular base and a hollow cylindrical barrel. Start by creating a solid flat disk for the base with a radius of 20mm and a thickness of 4mm. Centered on top of this base, add a hollow cylinder with an outer radius of 12mm and an inner bore radius of 8mm, extending upward...
pad_thickness=4; pad_radius=20; barrel_length=50; barrel_bore=8; barrel_wall_thickness=4; wedge_height=4; wedge_width=3; $fn=50; for ( i = [0 : 2] ) { rotate( i * 360 / 3, [0, 0, 1]) rotate(270,[0,1,0]) translate([pad_thickness,-barrel_bore,-wedge_width/2]) linear_extrude(height=wedge_width) ...
glb/cad_c4347dad97fe.glb
Create a 3D commemorative gift model featuring a large number "50" with names and a date integrated into a heart shape. Start by creating a large, stylized number "50" centered at the base. The number should be extruded to a height of 15mm. Above the number, construct a heart-shaped frame. Within this heart, place ...
include <bezier.scad> HeartSteps = 100; HeartHeight = 40; NameLeft="Gerda"; NameRight="Uwe"; Number="50"; Date="30.05.1969"; translate([0, -35, 0])DDD2(); module DDD() { color("red") difference() { intersection() { translate([0, 25, 0]) rotate([0,0,180]) scale([1.3,1.3,1]) DrawHeart(); translate([0, 85, -300+12])s...
glb/cad_446e67b3b2bb.glb
Create a cookie cutter consisting of two concentric, dome-like shells and a central pillar. First, construct an outer shell by creating a series of stacked cylinders with increasing radii that curve upward to a height of 15mm, with an outer radius reaching 11mm and a wall thickness of 0.9mm. Second, create a wider, sho...
union() { outer_cup(); inner_cup(); translate([0, 0, 15]) { cylinder(r = 4, h = 2, $fn = 50); } } module outer_cup() { difference() { dome(11, 15); dome(9, 15, .9); } } module inner_cup() { difference() { dome(20, 5); dome(15, 5, .5); } } module dome(iterations, multiplier, precision = 1) { hull(...
glb/cad_bf571aa61e3a.glb
Create a sink close link by starting with a solid cube measuring 25mm on all sides. Remove a large rectangular section from the center of the cube, leaving two outer walls; specifically, carve out a volume that starts 13mm from the left and 15mm from the front, extending 30mm in depth and height to create a wide U-shap...
difference(){ cube(25); translate([13,15,-2]) cube(30); translate([13,-20,-2]) cube(30); rotate([90,0,0])translate([18,12.5,-17])cylinder(h= 10,r=2.5); translate([6,12.5,-3])cylinder(h= 30,r=2.5); }
glb/cad_11627cc26846.glb
Create a parametric tool holder shelf designed to slide into a 20x20 V-slot extrusion. The main body is a vertical plate with a thickness of 3mm and a total width of 20mm. The section that inserts into the extrusion profile has a base width of 5.68mm, widening to 11mm at the T-nut area, with a total insertion depth of ...
holes=[ [2,6], [2.5,6], [3,6], [5,15] ]; t_outer = 0.5; t_inner = 0.5; bottom_chamfer = 0.5; chamfer_increment=bottom_chamfer/10; top_chamfer = 1; inner_chamfer = 0.5; use_raindrop = 1; top_width=15; top_thickness = 3; side_thickness = 3; profile_inner=6.1; profile_tnut = 11; profil...
glb/cad_b534065139d4.glb
Create a collapsible sword consisting of a handle and a blade. Start by constructing the handle as a cylinder with a radius of 5mm and a height of 39mm, using a 20-facet resolution. Position a crossguard across the top of the handle by placing a cylinder with a radius of 2mm and a height of 44mm, centered and rotated 9...
translate([0,0,13]) { hull() { polyhedron( points=[ [5,5,0],[1,-1,0],[-5,-5,0],[-1,1,0], [0,0,7] ], faces=[ [0,1,4],[1,2,4],[2,3,4],[3,0,4], [1,0,3],[2,1,3] ] ); polyhedron( points=[ [5,5,-13],[1,-1,-13],[-5,-5,-13],[-1,1,-13], [0,0,-13] ], faces=[ [0,1,4],[1,2,4],[2,3,4]...
glb/cad_c92fb439a02a.glb
Create a collapsible sword consisting of a handle and multiple identical blade segments. For the handle, create a base geometric form with a height of 13mm. For the blade segments, create a series of identical diamond-shaped prisms. Each segment should have a total height of 30mm, with a width and depth of 20mm at its ...
module pat() { difference() { hull() { polyhedron( points=[ [10,10,0],[2,-2,0],[-10,-10,0],[-2,2,0], [0,0,-1] ], faces=[ [0,1,4],[1,2,4],[2,3,4],[3,0,4], [1,0,3],[2,1,3] ] ); polyhedron( points=[ [10,10,-30],[2,-2,-30],[-10,-10,-30],[-2,2,-30], [0,0,-17] ], faces=[ [0,1,4...
glb/cad_f836aec582c3.glb
Create a collapsible sword consisting of a blade and a handle. Construct the blade as a composite shape formed by the convex hull of two pyramids. The first pyramid has a square base with vertices at [2, 2, 0], [0.5, -0.5, 0], [-2, -2, 0], and [5.5, 5.5, -5], with an apex at [0, 0, -1]. The second pyramid has a square ...
difference() { hull() { polyhedron( points=[ [2,2,0],[.5,-.5,0],[-2,-2,0],[5.5,5.5,-5],[-5.5,-5.5,-5], [0,0,-1] ], faces=[ [0,1,4],[1,2,4],[2,3,4],[3,0,4], [1,0,3],[2,1,3] ] ); polyhedron( points=[ [10,10,-30],[2,-2,-30],[-10,-10,-30],[-2,2,-30], [0,0,-17] ], faces=[ [0,1...
glb/cad_fc7635915f97.glb
Create a Dice Masters box consisting of a main container and a hinged cover. The main container is a rectangular block with a length of 107mm, a width of 73mm, and a height of 25mm. The walls are 5mm thick. Inside this container, create a grid of six dice pockets, each measuring 29mm by 29mm, separated by internal wall...
pocket_size = 29; internal_wall_width = 5; internal_wall_height = 10; box_border = 5; box_height = 25; axis = 3.25; tolerance = 1.00; small_fn = 12; big_fn = 36; box_length = pocket_size*3 + internal_wall_width*2 + box_border*2; box_width = pocket_size*2 + internal_wall_width*2 + box_border*1; translate([0,tol...
glb/cad_3e83919f976e.glb
Create a dial gauge holder with a main body measuring 27.5mm by 45mm by 40mm. On the left side, create a clip-on structure by removing a central block of 23.5mm by 41mm by 40mm, leaving walls that allow it to spring over a carriage. To increase flexibility, remove two small 5mm by 5mm blocks from the bottom corners of ...
a = 45; b = 40; c =23.5; d=4; e=16; f=6; g=3; h=4.5-2; i=16.5; j=h+i; k=8.1; l=19; m=4; n=5; o=2.5; q=12-5; r=4.75; s=sqrt(2*pow(r,2)); t=15; u=sqrt(2*pow(t+d,2)); v=20; w=6; SmallNum=0.01; BigNum=999; SlotWidth=cos(45)*k/2; difference(){ translate([-m,0,0]) cube([c+l+m,a,b]); translate([-SmallNum,-SmallNum,-SmallNu...
glb/cad_4f66a822fca7.glb
Create a dial gauge holder designed to clip onto a carriage. Start with a main rectangular block measuring 27.5mm in width, 56mm in length, and 40mm in height. To create the clip mechanism, remove a large central rectangular section from the front and middle, leaving a wall thickness of 4mm on the sides and a 4mm gap...
a = 56; b = 40; c =23.5; d=4; e=16; f=6; g=3; h=4.5-2; i=16.5; j=h+i; k=8.1; l=19; m=4; n=5; o=2.5; q=12-5+8; r=4.75; s=sqrt(2*pow(r,2)); t=15; u=sqrt(2*pow(t+d,2)); v=20; w=6; x=6; SmallNum=0.01; BigNum=999; SlotWidth=cos(45)*k/2; difference(){ translate([-m,0,0]) cube([c+l+m,a,b]); translate([-SmallNum,-SmallNum,-...
glb/cad_fa4101fa2958.glb
Create a PS50 power adapter battery dummy. The main body is a composite shape with a height of 60mm. It is formed by combining two cylinders with radii of 9mm, positioned with their centers 15mm apart, and two rectangular blocks. One block measures 33mm by 7.5mm by 60mm, and the other measures 16mm by 16mm by 60mm. Add...
$fn=100; module outer(){ cylinder(h=60, r=9); translate([15,0,0])cylinder(h=60, r=9); translate([-9,-8,0])cube([33,7.5,60]); translate([-1,-7,0])cube([16,16,60]); translate([-9,-7.5,0])cube([33,1.5,60]); } module cap(){ translate([0,0,60])cylinder(h=1.5, r=9); translate([15,0,60])cylinder(h=1.5, r=9); translat...
glb/cad_8b09bd80bd3a.glb
Create a parametric hose coupler consisting of two identical, mirrored connecting ends joined at a central hub. Each end is a revolved profile with a 120-facet resolution. For each end, create a central hollow tube with an inner diameter of 8.5mm. Around this tube, build a series of concentric ridges and rings. First,...
A_TubeOuterDiameter = 8.5; A_RingInnerDiameter = 11.5; A_DentHeight = 0.6; B_TubeOuterDiameter = 8.5; B_RingInnerDiameter = 11.5; B_DentHeight = 0.6; Thickness = 1.2; Cutaway = "No"; A_DentLength = 100; A_IncludeRing = "Yes"; B_DentLength = 100; B_IncludeRing = "Yes"; Angle ...
glb/cad_27e39f3191d6.glb
Create a Mendelmax power socket mount by starting with a main rectangular block measuring 14mm wide, 60mm long, and 20mm high. Attach two smaller rectangular blocks, each 5mm wide, 10mm long, and 13mm high, to the side of the main block: position the first at x -4.5mm, y 5mm, z 0mm, and the second at x -4.5mm, y 45mm, ...
difference() { union() { cube([14,60,20]); translate([-4.5,5,0])cube([5,10,13]); translate([-4.5,45,0])cube([5,10,13]); } translate([4.5,16,-1])cube([19,28,30]); translate([14,10,-1])cylinder(r=1.7,h=25); translate([14,50,-1])cylinder(r=1.7,h=25); translate([-4,5.5,-1])cube([4,9,8]); translate([-4,45.5,-1])cube([4,...
glb/cad_b6bb8fc2f9c7.glb
Create a Mendelmax power socket mount by starting with a solid rounded box measuring 25mm wide, 32mm deep, and 6mm high, with a corner radius of 4mm. Hollow out the center of this shape by removing a smaller rounded box with the same 4mm corner radius, measuring 21mm wide, 28mm deep, and 6mm high, positioned 2mm above ...
use <MCAD/boxes.scad> $fn=100; difference() { roundedBox([25,32,6],4,true); translate([0,0,2])roundedBox([21,28,6],4,true); translate([4,-6,-1])cube([12,12,12]); }
glb/cad_69c2063eac54.glb
Create a rectangular block measuring 60mm by 80mm with a total height of 18mm. Within this block, carve out a grid of holes to create a support for magnetic ball joints. First, create a grid of 12 vertical holes centered at x-coordinates 10, 30, and 50mm, and y-coordinates 10, 30, 50, and 70mm. Each of these holes cons...
$fa = 2; $fs = 0.5; smidge = 0.05; m3Diameter = 3.0; m3LooseRadius = m3Diameter/2+smidge; m3Height = 10.0; magnetDiameter = 6.0; magnetLooseRadius = magnetDiameter/2+smidge; magnetHeight = 8.0; difference(){ cube([60,80,m3Height+magnetHeight]); for (xpos=[10,30,50], ypo...
glb/cad_7af0d1f75f2d.glb
Create a Puddle Jumper toy consisting of two main components: a central shaft and two symmetrical blades. First, construct the shaft as a horizontal rectangular beam 184mm long, 7mm wide, and 7mm high. Refine this shape by intersecting it with a cylinder of radius 4mm running along its length, centered 3.5mm above th...
translate([0,10,0]) rotate([0,0,0]) difference() { union() { color("green") translate([-80,-8.1,.33]) rotate([-20,0,0]) union() { translate([0,0,-0.5]) cube([80,1.5,17]); translate([0,1.5,8.15]) rotate([90,0,0]) cylinder(1.5,8.1,8.1); } color("red") translate([0,0,.05]) rotate([20,0,0]) union() { ...
glb/cad_9e1e0a14f619.glb
Create a Screw Thread model consisting of an external thread on a cylindrical core. The nominal major diameter is 0.625mm with a pitch of 1/11mm and a total thread length of 1mm. Construct the main body as a cylinder with a diameter equal to the external root diameter, which is calculated by subtracting approximately...
include <helix_extrude.scad> include <chamferRing.scad> MajorDia = .625; Pitch = 1/11; Starts=1; Length=1; AcrossFlats=1.5; Resolution=3; $fn=360/Resolution; Clearance=-0.01; Allowance=0; externalThread(M_Profile); convexity=10; P=Pitch; H = sqrt(3) * 0.5 * P; A=Allowance; OD=MajorDia; IntMajorDia=OD+Clearance; Int...
glb/cad_c9451efb2f12.glb
Create a hollow square box with outer dimensions of 60mm by 60mm and a height of 30mm. The walls should be 0.4mm thick. At the center of the floor, construct a cylindrical protrusion consisting of two stacked sections: a base cylinder with a radius of 3.6mm and a height of 4mm, topped by a second cylinder with a radius...
nz = 0.4; lh = 0.25; dx = 60; dxh = dx / 2; module dot() { translate([-dxh,-dxh,0]) difference() { cube([dx,dx,30]); translate([2*nz,2*nz,3*lh]) cube([dx-(4*nz),dx-(4*nz),30]); } difference() { union() { translate([0,0,2]) cylinder(r=(3+(2*nz)),h=12,$fn=50); ...
glb/cad_e0866e694228.glb
Create a parametric wire hanger by starting with a base plate formed from the convex hull of two cylinders, each 6mm in diameter and 3mm high, positioned such that the centers are 6mm apart along the x-axis. Remove a tapered central hole from this base, starting with a 6mm diameter at the bottom and widening to 7mm at ...
thickness=3; screw=6; taper=1; wire=5; difference() { hull() { cylinder(h=thickness,d1=2*screw,d2=2*screw,$fs=1,center=true); translate([screw,0,0]) cube([1,2*screw,thickness],center=true); } cylinder(h=thickness+0.1,d1=screw,d2=screw+taper,$fs=1,center=true); } difference() { transl...
glb/cad_056aa22c129e.glb
Create a Scalable RGB LED Matrix electronics cube. Start by creating a main outer cube with dimensions 60mm x 60mm x 30mm. Hollow out the center of this cube by removing a smaller interior cube measuring 59.2mm x 59.2mm x 30mm, positioned so that the walls are 0.4mm thick and the bottom is open, leaving a base thicknes...
nz = 0.4; lh = 0.25; dx = 60; dxh = dx / 2; module dot() { translate([-dxh,-dxh,0]) difference() { cube([dx,dx,30]); translate([2*nz,2*nz,3*lh]) cube([dx-(4*nz),dx-(4*nz),30]); } } module dot2() { difference() { dot(); rotate([0,0,40-2]) translate([-50,-2.5,20]...
glb/cad_6e1209555e06.glb
Create a wiring guide bracket with a main body and a mounting flange. The main body is a rectangular block 42mm wide and 70mm high. At the base of this body, attach a mounting flange that is 42mm wide and 30mm deep with a thickness of 5mm. In the mounting flange, create two countersunk screw holes. Position the first ...
b_width = 42; b_height = 70; slot_w = 3; slot_l = 12; offset1 = 20; offset2 = 50; hole_diam = 4; flange_d = 30; wire_sep = 20; module main(){ difference(){ linear_extrude(height = b_height){ square([b_width,5],center=false); } translate([0,0,offset1]){ slots...
glb/cad_e9094f04d0b3.glb
Create a Generic NEMA 23 printed axis slider. Start with a central rectangular block measuring 60mm x 55mm x 19mm. On the two shorter ends, add two cylindrical protrusions centered on the 55mm sides, each with a radius of 11.25mm and a height of 55mm, oriented horizontally. Create two primary holes through these protr...
rodsize = 8; bushingOD = 15; ThreadedRodOD = 8; boltsize = 6; module smallnut() { cylinder(h=3,r=8/2,$fn=6); } module LM8UU() { cylinder(h=23.9,r=15/2,$fn=55); } module BaseCommon() { basewidth = 70; baseheight = 80; difference() { union() { translate(v=[0,0,10]) cube(size=[basewidth,10,70],center = t...
glb/cad_597369c9b0af.glb
Create a mounting carriage for an E3D v6 hotend. Start with a rectangular base plate measuring 39mm wide, 9mm deep, and 3mm thick. At each end of this base, 3mm from the side edges and 3mm from the front edge, create a vertical cylindrical hole with a diameter of 2mm and a depth of 2mm. From the top surface of the bas...
module aa() { difference() { translate([0,-1,0]) cube([39,9,3]); { translate([3,3,0]) cylinder(3,2,2); translate([36,3,0]) cylinder(3,2,2); } } } translate([0,6,0]) cube([34,2,44]); translate([0,6,0]) cube([2,20,44]); translate([32,6,0]) cube([2,20,44]); translate([32,6,0]) cube([7,20,3]); aa();
glb/cad_d153109334e2.glb
Create a mounting carriage for an E3D v6 hotend. Start with a base plate that is 80mm long, 80mm wide, and 4mm thick. Within this base, create a central rectangular cutout measuring 40mm by 10mm by 20mm. Add two vertical walls extending upwards from the base: one wall should be 35mm high and 43mm long, and the other ...
difference() { union() { cube([60,20,4]); translate([-10,0,0]) cube([43,35,4]); translate([-10,31,0]) cube([43,4,20]); translate([-10,-60,0]) cube([10,60,4]); translate([-10,-60,0]) cube([80,10,4]); translate([60,-60,0]) cube([10,80,4]); translate([50,-60,0]) cube([10,20,4]); translate([0,-60,0]) cube([10,20,4])...
glb/cad_1899492c7db3.glb
Create a mounting clamp for an E3D v6 hotend. Start with a base rectangular block measuring 36mm in length, 12mm in width, and 6mm in height. Centered on the top surface of this block, add a second rectangular section that is 16mm long, 12mm wide, and 18mm high, positioned 10mm from the left edge. Remove two vertical...
module adds2() { translate([0,0,0]) cube([36,12,6]); translate([10,0,0]) cube([16,12,18]); } difference() { adds2(); translate([5,5,-1]) cylinder(11,2,2); translate([30.5,5,-1]) cylinder(11,2,2); translate([18,5,20]) rotate([-90,0,0]) cylinder(20,8,8); translate([18,-1,20]) rotate([-90,0,0]) cylinder(20,6,6); } for (i...
glb/cad_e8b1b85b13a5.glb
Create a mounting carriage for an E3D v6 hotend and a 40mm cooling fan. The main body is a rectangular plate with rounded ends, measuring 60mm in width and 125mm in length, with a thickness of 13mm. At the front end, create a large circular cutout with a diameter of 40mm to accommodate the fan. In the center of the p...
module hexnut(side,hgt) { linear_extrude(height = hgt, center = false, convexity = 0, twist = 0) translate([-side, -.866*side, 0]) polygon([ [0,.866*side], [side* 0.5,0], [side*1.5,0], [side*2,side*.866], [side*1.5,side * .866 * 2], [side * 0.5 ,side * 0.866 * 2], ]); } module pillar() { difference() { cylinder(13,5,...
glb/cad_8675a2f06861.glb
Create a mounting block for an E3D v6 hotend on a Mendel90 carriage. Start with a main rectangular body measuring 25mm by 52mm by 26mm. Attach a mounting block of 48mm by 52mm by 6mm and a motor mount of 48mm by 52mm by 6mm to the side. Carve out several geometric voids for hardware and alignment. Create two vertical ...
for (i = [-3:9]) { translate([-71,i*10,0]) cube([131,.5,.5]); } for (i = [0:12]) { translate([-61+i*10,-40,0]) cube([.5,131,.5]); } module hexnut(side,hgt) { linear_extrude(height = hgt, center = false, convexity = 0, twist = 0) translate([-side, -.866*side, 0]) polygon([ [0,.866*side], [side* 0.5,0], [side*1.5,0], [...
glb/cad_9245e578d466.glb
Create a Mendelmax power switch mount by starting with a solid rectangular block measuring 14mm wide, 28mm deep, and 20mm high. From this main body, remove a large central rectangular section measuring 19mm wide, 20.2mm deep, and 30mm high, centered along the depth axis at 3.9mm from the edge, to create a deep open slo...
difference() { union() { cube([14,28,20]); translate([-4.5,0,0])cube([5,10,13]); translate([-4.5,18,0])cube([5,10,13]); } translate([6.4,7.8/2,-1])cube([19,20.2,30]); translate([-4,0.5,-1])cube([4,9,8]); translate([-4,18.5,-1])cube([4,9,8]); }
glb/cad_2ee9f5ffb494.glb
Create a handlebar cover for a Honda ST1300 with a total thickness of 6mm. The main body is a flat plate with a complex organic perimeter. Start by creating a shape that is roughly 80mm wide and 60mm tall. The top edge should be defined by a convex curve, while the bottom is a semi-circle with a radius of 17mm centered...
use <write/Write.scad> $fn=125; adjust=0.3; text_tag="HONDA"; text_size=9.75; h0=6; w1=38; d0=4.5; d1=21-1; d2=50-1; h=60; t=4; h2=37; w2=34; h3=h2-10; h4=h-d1/2-17; d3=5; A0=[-w1/2,h+2]; A1=[0,h-d1/2+2]; A2=[w1/2,h+2]; difference() { linear_extrude(height=h0) { difference () { hull() { translate ...
glb/cad_7d5c780af297.glb
Create a motorcycle side stand support consisting of a circular base with a total height of 8.4mm. Start with a main central cylinder that has a radius of 42.5mm and a height of 6mm. Around the perimeter of this base, add seven smaller cylinders, each with a radius of 4.25mm and a height of 8.4mm, spaced evenly every 5...
$fn=150; use <write/Write.scad> t=20*0.3; d=85; t10=8*0.3; d10=85; d11=1.66*d10; t20=6*0.3; d20=2; d30=4; d31=3; fontsize=9; name=["S","T","1","3","O","O"," "]; name_len=7; difference() { intersection() { union() { color("BLUE") cylinder(r=d/2,t); for (seg = [0:1:name_len-1]) { rotate ([0,0,-seg*3...
glb/cad_3166256e5253.glb
Create a Serva Clipper lawn mower drive gear. Start with a central cylinder that has a total height of 31mm and an outer diameter of 34.5mm. Bore a center hole through the entire height with a diameter of 14.7mm. At the base, construct a gear section with 12 teeth. This gear should have a thickness of 13.5mm and a pit...
use <MCAD/involute_gears.scad> diameter = 34.5; kugg_diameter = 36; height = 31; gears_height = 13.5; transition_height = 3.5; center_hole = 14.7; ngears=12; cyl_height = height - transition_height - gears_height; notch_angle = 120; notch_inset = 0.7; notch_outer_thickness = 3.1; notch_inner_thickness = 7.1; hole_...
glb/cad_0a79387f033d.glb
Create a Serva Clipper lawn mower drive gear with a total height of 31mm and an outer diameter of 36mm. Start by constructing a gear with 12 teeth and a thickness of 13.5mm. Above this gear, add a transition cone 3.5mm high that flares from a radius of 13mm to the full 18mm outer radius. Top this with a cylinder of 18m...
use <MCAD/involute_gears.scad> diameter = 36; height = 31; gears_height = 13.5; transition_height = 3.5; center_hole = 14.7; ngears=12; cyl_height = height - transition_height - gears_height; hole_diameter=diameter-3.3*2; hole_depth = 14; notch_diameter=diameter-7.3*2; notch_width = 25; notch_thickness = 4.5; $fn=...
glb/cad_a4f50683ecff.glb
Create an Adjustable LCD Graphic Display Mount consisting of two identical mounting brackets. For each bracket, start by creating a base shape using a hull of two cylinders with a diameter of 10mm and a height of 3.5mm, positioned 71.5mm apart center-to-center. Through the center of each cylinder, create a vertical h...
BracketHeight=3.5; tol=0.2; M3HoleDiameter = 3.5; M3NutDiameter = 6.7; Diameter = 10; Extend = 2; MountHoleDistance=92.96; module LCDMount() { MountHoleDistance=71.5; $fn=32; difference() { hull() { translate([-MountHoleDistance/2,0,0]) cylinder(h=BracketHeight, d=Diameter); translate([ MountHoleDistance/2...
glb/cad_0b181fab7816.glb
Create a Honda GL1500 Antenna Chrome Accent mount by constructing a tiered cylindrical spacer with a central hole. Start with a wide base cylinder that has a radius of 7.5mm and a height of 1mm. Centered on top of this base, add a second, narrower cylinder with a radius of 5.9mm and a height of 3mm. Finally, remove a c...
$fn=175; adjust=0.1; difference() { union() { cylinder(r=15/2,1); cylinder(r=12/2-adjust,3); } cylinder (r=11/2+adjust,3); }
glb/cad_dfb13ee81562.glb
Create a controller board mount consisting of a base plate and a vertical pillar. Start by creating a base plate that is 2mm thick, formed by the convex hull of two 8mm diameter cylinders positioned 10mm apart center-to-center. At one end of this base, add a vertical cylinder with a diameter of 8mm and a height of 10mm...
$fn=24; render()difference() { union() { hull() { cylinder(h=2, d=8); translate([10,0])cylinder(h=2, d=8); } translate([10,0])cylinder(h=10, d=8); } cylinder(h=2, d=3.7); translate([10,0]) { hull() { cylinder(h=5, d=3.7); cylinder(h=8, d=3.7, $fn=5); } translate([0,0,8])cylinder(h=2.1, d1=...
glb/cad_f7af7c85d9c4.glb
Create a set of toy train track rails with a consistent height of 12mm and a base width of 39mm. For the straight rails, create a rectangular block 214mm long. Carve a longitudinal channel through the center to create two parallel rails. The channel profile should be a complex negative shape that allows rails to inte...
gheight=12; gwidth=39; module bank_profile(height=gheight, width=gwidth) { polygon( points=[[-width/2,0], [width/2,0], [width/2,height], [-width/2,height]] ); } module rail_profile_negative(height=gheight, width=gwidth) { polygon( points= [ [-16,-1], [-16,0], [-15.5,0.5], [-15.5,2.5], [-...
glb/cad_f446ca8dab17.glb
Create a Spinning Target consisting of a circular base and a rotating target piece. First, construct the base as a cylinder with a radius of 25mm and a height of 4mm. On this base, place two rectangular pillars, each 5mm wide, 10mm deep, and 20mm high, positioned symmetrically at x = -20mm and x = 15mm, both starting a...
module Target(){ difference(){ union(){ cylinder(r=12,h=3); rotate([0,90,0]) translate([-1.5,0,-25]) cylinder(r=1.5,h=50); } translate([0,0,2]) difference(){ cylinder(r=7,h=3); cylinder(r=5,h=3); } } } module Base(){ cylinder(r=25,h=4); difference(){ union(){ translate([-20,-5,4...
glb/cad_d5063c385271.glb
Create a Mario Questionbox Lamp as a hollow cube with external dimensions of 100x100x100mm. The structure consists of a base plate 1.2mm thick, four vertical walls 2mm thick, and 4mm square support columns at each of the four corners that extend the full height of the box. On each of the four side walls, create a grid...
pixels = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
glb/cad_b951d0028fa0.glb
Create a game cartridge organizer consisting of a 7 by 4 grid of rectangular adapters. Each individual adapter is a block measuring 24mm wide, 20mm deep, and 9mm high. Centered within each adapter block, carve out a slot that is 21.8mm wide, 3.6mm deep, and 10mm high. This slot must be tilted at a 10-degree angle along...
grid = [4, 7]; module cartridge_slot(h = 10.00, center = true) { cube([21.80, 3.60, h], center); } module cartridge_adapter(additional_h = 0.00, center = true) { adapter_size = [24.00, 20.00, 9.00 + additional_h]; slot_angle = 10.00; slot_height = 5.00; slot_offset = 4.40; difference() { ...
glb/cad_45528432da7e.glb
Create a Spiral on Torus Bracelet by generating a continuous, winding geometric knot. The overall structure is based on a torus with a major radius of 480mm and a minor radius of 40mm. Construct the form by placing 360 individual segments along the path of the torus. Each segment is a small rectangular prism with dim...
axisRotation = 2 ; radialRotation = 7 ; baseHeight = 15 ; numberOfSpheres = 360 ; sphereQuality = 9 ; majorRadius = 480 ; minorRadius = 40 ; sphereSize = 20 ; cupHeight = 1 ; vStretchFor3dPrint = 2.5 ; finishedWidth = ((majorRadius+minorRadius+sphereSize)/vStretchFor3dPrint)*2; printWidthInMM = 80; ...
glb/cad_9c207b481660.glb
Create a pair of mirrored twisted underslung spool brackets. Each bracket is a flat strip with a constant thickness of 2.5mm and a total length of 120mm. One end of the strip is designed to fit a rectangular bar; create a rectangular section 15mm wide and 15mm high. Within this section, center a rectangular slot 5mm ...
Thickness = 2.5; Width = 15; Length = 120; TwistAngle = 60; PartToMake = "both"; BarWidth = 15; BarHeight = 15; SlotWidth = 5; SlotThickness = 2; RodDiameter = 20; TwistWidth = 1000 * 2; EndLength = max(BarHeight * 1.5, RodDiameter * 1.5); TwistLength = Length - 2 * EndLength; module BarEnd() { rotate([0, -...
glb/cad_0e95c99e532e.glb
Create a Bolt filament feeder consisting of two mirrored halves. For each half, start with a rectangular enclosure measuring 48mm by 16mm by 60mm. From this block, remove a central cylindrical void with a radius of 4.4mm and a height of 60mm to accommodate a bolt. Additionally, remove a smaller cylindrical void with a ...
xw = 0.4; bd = 8; bh = 60; fd = 3; cd = 0.3; et = bd * 2; ji = bd-(fd/2); mbt = 4; for(i=[-1,1]){ translate([i*bh/2+3+5*i,0,et/2]) rotate([i*90,0,i*90]) difference(){ difference(){ translate([0,0,-3]) cube([bd * 6,et,bh], center = true); translate([-bd/2-fd/2-cd,0,0]) cylinder(r=bd/2+xw, h = bh, center...
glb/cad_670b49e355f0.glb
Create a parametric flexible cable tie consisting of three main sections aligned along a central axis. First, create a rectangular base measuring 25mm wide by 90mm long with a thickness of 2.5mm. Cut five rectangular slots through this base, each 15mm wide and 3mm high, evenly spaced along the length. Second, attach...
thickness = 2.5; basewidth = 25; tabwidth = 14; baselength=90; tablength=75; slotheight = thickness + 0.5; numslots=5; slotwidth=tabwidth+1; platelength=30; platethickness=thickness*2; hooklength=7; hookwidth=3; hookangle=20; numhooks=5; translate([-basewidth/2,-baselength,0]) base(basewidth, baselength,thickness); ...
glb/cad_b3d9d5c3035c.glb
Create a square mesh plate with a side length of 120mm and a thickness of 3mm. The plate should have a solid border of 3.5mm around all four outer edges. Within the interior area, create a grid of circular holes, each with a diameter of 8mm. The holes should be arranged in a uniform pattern where each hole occupies a...
side_length = 120; height = 3; hole_diameter = 8; border = 3.5; grid_spacing = 3; $fn=10; module mesh(side_length, height, hole_diameter, border, grid_spacing) { border = min(border, side_length / 2.5); size = side_length; hole_footprint = hole_diameter * (1 + grid_spacing); s_avail = size - border*2; ...
glb/cad_b5a99d9b35ef.glb
Create a Groove Mount adapter by starting with a rectangular block 40mm long, 25mm wide, and 10mm high. Round the two outer ends of the block into semi-circles with a radius of 20mm. Carve a central vertical channel through the block to accommodate a barrel. This channel consists of two stepped cylindrical cutouts: a...
barrel_diameter = 16.6; barrel_inset_diameter = 13.2; plate_length = 40; plate_width = 25; plate_height = 10; mounting_bolt_diameter = 3; clamp_bolt_diameter = 4; $fn = 32; module teardrop(radius,height,truncated) { truncateMM = 1; union() { if (truncated == true) { intersection() { translate([0,0,heig...
glb/cad_df63009d6337.glb
Create a small cylindrical component. Start by forming a union of two cylinders: one with a radius of 2.1mm and a height of 2.45mm, and a second cylinder with a radius of 2mm and a height of 4.45mm positioned at coordinates (0, 0, 2.1). From this combined shape, remove a central vertical cylinder with a radius of 1.5mm...
$fn=100; module outerstuff() { union() { cylinder(2.1,2.45,2.45); translate([0,0,2.1]) cylinder(2,2.45,4.45); } } difference() { outerstuff(); translate([0,0,-1]) cylinder(20,1.5,1.5); translate([0,0,5.0]) cylinder(2.5,3,3); }
glb/cad_423f5fa6adcd.glb
Create a conical reducer for a tower mount. Start by creating a solid cone with a base diameter of 20mm, a top diameter of 5mm, and a total height of 12mm. From the center of this shape, remove a vertical cylindrical hole with a diameter of 5mm that extends through the entire height, starting from 1mm below the base. A...
$fn=100; difference() { cylinder(12,9.9,2.45); translate([0,0,-1]) cylinder(20,1.5,1.5); translate([0,0,-1]) cylinder(2.5,3,3); }
glb/cad_1ea13261b450.glb
Create a Parametric Gauntlet Wrap designed as a flat, flexible plate. The main body is a tapered shape that is narrower at the wrist end and wider at the elbow end. The wrist end has a width based on a 35.97mm wrist measurement plus 5mm padding on each side, while the elbow end is based on a 46.35mm width plus 5mm padd...
wrist = 35.97; len = 100; width = 46.35; rail = 10; thick=5; thin=2; padding = 5; spacing = 10; bar=5; bolt = 5; slotLen = 25; slotH = 2; pi=3.1415926; wristX = (wrist+2*padding)*pi/2-rail/2; wideX = (width+2*padding)*pi/2-rail/2; diff = wideX-wristX; angle = atan(diff/len); echo(diff,angle); echo(len, w...
glb/cad_abfa861d3cbb.glb
Create a vertical jig for an 8x8x8 LED cube. Start with a rectangular base plate measuring 60mm wide by 163mm long with a thickness of 1mm. On this base, place four parallel rectangular walls, each 60mm wide, 10mm high, and 3mm thick. Position the first wall at the edge and space the subsequent walls 40mm apart from ea...
wallCount = 4; wallWidth = 60; wallHeight = 10; wallDepth = 3; wallSeparation = 40; floorHeight = 1; holeR = (4.92 / 2.0) + 0.05; holeL = (wallSeparation+wallDepth+wallDepth)*wallCount + 2; holeXOffset = (wallWidth - wallSeparation) / 2; holeZoffset = 8; holeRightFudge = 0.10; mountWing = wallSeparation/3; mountingSc...
glb/cad_fd5c2cc68e52.glb
Create a parametric oval box with a separate cap. Start by creating a sphere with a radius of 30mm, then scale it by 1.3 in the X direction, 1.0 in the Y direction, and 0.8 in the Z direction to form an ellipsoid. Hollow out this shape by removing a smaller concentric ellipsoid with a wall thickness of 3mm. Truncate th...
module truncated_sphere(radius, bottom, top) { difference() { sphere(r = radius); translate([-radius, -radius, radius - top]) cube([radius * 2, radius * 2, radius * 2]); translate([-radius, -radius, -radius * 3 + bottom]) cube([radius * 2, radius * 2, radius * 2]); ...
glb/cad_966d1fcfc1e8.glb
Create a Tippe Top toy by constructing an oblate sphere with a radius of 15mm, scaled by 1.1 along the X and Y axes to flatten it slightly. From the center of this sphere, remove a vertical cylindrical core to create a hollow interior. This cutout begins at the bottom center with a radius of 3mm, expanding linearly ove...
radius = 15; cutout_r1 = 11.5; cutout_r2 = 11.; handle_h = 20; pegradius = 3; cutoffdepth =10.5 ; depthhole = 2.5; twohalves = false; usepeg = true; module handle() { translate([0, 0, -cutoffdepth-1]) cylinder(r=pegradius, h=handle_h+cutoffdepth+1); } module head() { difference() { interse...
glb/cad_3e5bf0a2479c.glb
Create a Tippe Top toy by constructing an oblate sphere with a radius of 30mm, scaled by 1.1 along the X and Y axes to flatten it slightly. From the center of this sphere, remove a vertical cylindrical core. This cutout begins at the bottom with a radius of 6mm for a depth of 5mm, then widens to a constant radius of 22...
radius = 2*15; cutout_r1 = 2*11.5; cutout_r2 = 2*11.; handle_h = radius + 1; pegradius = 2*3; cutoffdepth =2*10.5 ; depthhole = 2*2.5; twohalves = false; usepeg = true; module handle() { translate([0, 0, -cutoffdepth-1]) cylinder(r=pegradius, h=handle_h+cutoffdepth+1); } module head() { difference...
glb/cad_cfafab576978.glb
Create a geared extruder block for a Mini Mendel Huxley. Start with a base block that incorporates a rectangular section measuring 70mm by 25mm by 5mm, centered at X=62, Y=12.5, Z=50. Remove several cylindrical holes and cutouts from this volume. First, create a vertical hole with a 5mm radius and 60mm height centere...
fn = 30; difference() { union() { import_stl("MakerBot_M8_Extruder_Block_V2.stl", convexity = 5); rotate([90, 0, 0]) translate([62, 12.5, 50]) cube([70, 25, 5], center = true); } translate([57.5, -20, 0]) cylinder(r = 5, h = 60, center = true, $fn = fn); translate([40.25, -50, 9]) rotate([90, 0, 0]) cyli...
glb/cad_88859b9db92a.glb
Create a Bengal disc brakes pulley sealing plug by constructing a composite geometric shape. Start with a central cylinder that has a radius of 3.2mm and a height of 3mm. Attach a conical base to the bottom of this cylinder, creating a frustum that extends 3mm downwards, tapering from a bottom radius of 5mm up to the 3...
$fn=64; difference() { union() { cylinder(r=3.2,h=3); translate([0,0,-3]) cylinder(r1=3,r2=5,h=3); } cylinder(r=1.2,h=40,center=true); }
glb/cad_f85f779b22ef.glb
Create a KMX trike brake pulley sealing plug by starting with a main cylinder 6mm in diameter and 15mm tall. Attach a small rectangular block measuring 1.5mm by 2mm by 8mm to the side of this cylinder, positioned 12mm up from the base. At the bottom of the main cylinder, add a conical base that transitions from a 4mm d...
$fn=64; difference() { union() { cylinder(r=3,h=15); translate([2.5,-1,12]) cube([1.5,2,8]); $translate([0,0,-2]) cylinder(r1=2,r2=3,h=2); } cylinder(r=1.1,h=40,center=true); }
glb/cad_17064d6a9355.glb
Create a Customizable Flex Joint Mold by starting with a solid rectangular block. The block's overall dimensions are determined by the number of joints, with a padding of 3mm between elements. Subtract a series of joint-shaped voids from the block. Each joint void consists of two cylinders connected by a rectangular ...
negative = 1; depth = 1; padding = 3; flexy_large_num = 4; flexy_small_num = 11; custom_num = 0; label = "Flexy Joints"; custom_dia = 2; custom_thick = 1; custom_width = 1; custom_length = 10; flexy_large_dia = 6.97; flexy_large_thick = 4; flexy_large_width = 16; flexy_large_length = 18; flexy_small_dia = 4...
glb/cad_4358b67e856a.glb
Create a KMX trike phone holder adapter. Start by constructing a main block that is 11mm wide, 26mm deep, and 30mm high. Attached to the side of this block, add a second rectangular section measuring 2mm wide, 30mm deep, and 30mm high. Position a cylindrical plug at the base, tilted at a 15-degree angle; this plug must...
use<kmx_light_front.scad>; id=18.3; od=22; offset=30; h=40; angle=15; module bracket() { difference() { cube([14,14,12], center=true); cube([10,10,15], center=true); } } module block() { union() { hull() { rotate([angle,0,0]) cylinder(r1=od/2,r2=od/4,h=10); translate([od/2-5,offset,h]) cube([5,26,30]);...
glb/cad_81e0d2f7a95a.glb
Create a KMX rear light mount for a mudguard. Start with a base plate that is 35mm long, 24mm wide, and 3mm thick. At one end of this plate, attach a vertical holding plate that is 2.8mm thick, 24mm wide, and 40mm high. Extend this vertical plate with two 20mm by 20mm square wings at the top, one on each side, to incre...
module hexagon(size, height) { boxWidth = size/1.75; rotate([0,0,90]) for (r = [-60, 0, 60]) rotate([0,0,r]) cube([boxWidth, size, height], true); } module triangle(a,b,d) { translate([0,0,a]) mirror([0,0,1]) polyhedron ( points = [[0, 0, a], [0, d, a], [0, d, 0], [0, 0, 0], [b, 0, a], [b...
glb/cad_88c734bf7f7b.glb
Create a coin sorter block by starting with a rectangular base measuring 350mm in width, 70mm in height, and 70mm in depth. Center this block on the X-axis. From this main volume, remove a rectangular section measuring 400mm by 9mm by 70mm, positioned at X-200, Y-4, and Z-10. Carve six vertical cylindrical holes throu...
use<Writescad/write.scad> $fn=30; width=350; height=70; depth=70; height2=70; diameter1=19.05; diameter2=22; diameter3=18.05; diameter4=24; diameter5=27; diameter6=28.5; width3=400; depth3=9; height3=70; difference () { translate([-175,0,0])cube([width,height,depth]); translate([150,52,5])cylinder(h=height2,r=...
glb/cad_b8b90a40929a.glb
Create a Calliope Mini Case consisting of a top cover and a bottom cover. The top cover is a hexagonal prism with a diameter of 89.5mm and a height of 11.5mm. Hollow out the center with a hexagonal void of diameter 84.5mm and a depth of 9.5mm. In the top face, create a square opening of 23mm by 23mm centered at the o...
part = "both"; connectorTop = "yes"; connectorBottom = "yes"; batteryPack = "yes"; module ledarray() { for(r =[0:4]) { for(c =[0:4]) { translate([r*4,c*4,0]) cube([3,3,6]); } } } module pins() { for(i =[0:6]) { rotate([0,0,i*360/6])translate([0,41,0]) cylinder(d=12, ...
glb/cad_65652cbf08db.glb
Create a Coin and Money Holder starting with a main rectangular block measuring 350mm in width, 70mm in height, and 70mm in depth. From this block, remove six vertical cylindrical holes, each 70mm deep and starting 5mm from the bottom face, with radii of 19.05mm, 22mm, 18.05mm, 24mm, 27mm, and 28.5mm respectively. Posi...
use<Writescad/write.scad> $fn=30; width=350; height=70; depth=70; height2=70; diameter1=19.05; diameter2=22; diameter3=18.05; diameter4=24; diameter5=27; diameter6=28.5; width3=400; depth3=9; height3=70; difference () { translate([-175,0,0])cube([width,height,depth]); translate([150,52,5])cylinder(h=height2,r=...
glb/cad_4b36317b08de.glb
Create a parametric hook with a backing plate. Start by designing the hook itself as a semi-circular arc with a thickness of 6mm and a width of 16mm. The inner radius of the bend should be 16mm. The cross-section of the hook is not a simple rectangle but an octagon with clipped corners, where the flat sides are 6mm. E...
bend_radius = 16; width = 16; thickness = 6; plate_width = 75; plate_height = 75; plate_thickness = 1.2; vwidth = max([width,thickness]); $fn = 100; module rotate_extrude2(angle=360, convexity=2, size=1000) { module angle_cut(angle=90,size=1000) { x = size*cos(angle/2); y = size*sin(angle/2); tran...
glb/cad_516a7e7e0930.glb
Create a Polargraph gondola stabilizer. Start with a base consisting of a flat ring with an outer radius of 60mm and a height of 3mm. The ring has an inner cutout radius of 45mm. Add two perpendicular cross beams to the base: one measuring 92mm by 10mm by 3mm and another measuring 10mm by 41mm by 3mm, both centered on ...
$fs=0.01; module hole(size, depth, x, y, z) { translate([x, y, z]) { cylinder(r = size, h = depth, center = false); } } module mini_servo_plate() { union() { translate([8.5, 1.5, 8.5]) { rotate(a=90, v=[1,0,0]) { difference() { cube(size = [51, 17, 3], center = true); union() { cube(size...
glb/cad_348fcd5e897f.glb
Create a Polargraph gondola stabilizer. Start with a main cylindrical body that has a total height of 49mm. The top section is a cylinder with a radius of 18mm and a height of 7mm. Directly below this, create a second cylindrical section with a radius of 12mm and a height of 41mm. Remove a central vertical hole with ...
$fs=0.01; translate([0,0,49]) rotate(a=[0,180,0]) difference() { union() { translate([0,0,42]) cylinder(h=7, r=18); translate([0,0,41]) cylinder(h=1, r=12); } cylinder(h=75, r=8.6); rotate(a=[0,0,60]) translate([0,-10,45.5]) rotate(a=[90,0,0]) cylinder(h=20, r=1.25, center = true); rotate(a=[...
glb/cad_379222f27663.glb
Create a Polargraph gondola stabilizer consisting of two identical mirrored connector pieces positioned symmetrically. For each piece, start with a main rectangular beam measuring 40mm in length, 3.5mm in width, and 3mm in height. Attach a small rectangular lip measuring 16mm by 3.5mm by 3mm to the side of the beam, an...
translate([-20,0,0]) cube(size=[40,3.5,3]); translate([14,-6.5,0]) cube(size=[6,10,3]); translate([4,-7,0]) cube(size=[16,3.5,3]); translate([-20,0,0]) difference() { translate([0,-7,0]) cube(size=[8,10,3]); union() { translate([4,-3,1.5]) cylinder(h=3,r1=1.5,r2=0.5,center=true,$fs=0.01); tran...
glb/cad_5a66bd8502fa.glb
Create a Polargraph gondola stabilizer by starting with a central disc that is 3mm thick and 46mm in diameter. Remove a concentric cylindrical hole from the center with a diameter of 35.2mm to create a ring. On the outer edge of this ring, add a rectangular protrusion measuring 15mm by 10mm by 3mm, centered vertically ...
$fs=0.01; difference() { union() { cylinder(h=3,r=23,center=true); translate([10,-5,-1.5]) cube(size=[15,10,3]); translate([28,0,0]) cylinder(h=3,r=5,center=true); translate([19,7.9,0]) rotate(a=[0,0,59]) cube(size=[5,20,3],center=true); translate([19,-7.9,0]) rotate(a=[0,0,-59]) cube(si...
glb/cad_3b911870acf3.glb
Create a Parametric Syringe consisting of three main components: a body, a plunger, and a piston. First, construct the body as a hollow cylinder with an outer diameter of 15.9mm and a height of 85.5mm. The walls should be 0.8mm thick. At the top of the body, create a nozzle that extends 16.5mm upward, centered with a ...
$fn=128; part = 0; mode = 0; diameter = 15.9; height = 85.5; wall = .8; altcanula=16.5; boca = 2.4; nozzleoffset = 2.5; tolerance = 0.2; nansa = 2.4; epsilon = 0.01; spacing = 15; opaque = 1.0; demitransparent = 0.5; transparent =0.2; plungerheight = diameter/2; syringe( diameter, height, wall, boca, nansa...
glb/cad_3faaae845cd3.glb
Create a Trellis Color Picker consisting of a thin square base with a grid of small square tiles on top. Start by creating a flat square base measuring 170mm by 170mm with a thickness of 1mm, positioned at Z = -2. On top of this base, place a 4x4 grid of smaller square tiles. Each tile must be 20mm by 20mm with a thick...
color1 = "yellow"; color2 = "yellow"; color3 = "yellow"; color4 = "yellow"; color5 = "yellow"; color6 = "yellow"; color7 = "yellow"; color8 = "yellow"; color9 = "yellow"; color10 = "yellow"; color11 = "yellow"; color12 = "yellow"; color13 = "yellow"; color14 = "yellow"; color15 = "yellow"; color16 = "yel...
glb/cad_a0a4511005de.glb
Create a Revox A77 Tach Spool Base. Start with a base plate that is 26mm wide, 3.05mm thick, and 17mm long. On this plate, center an oval hole with a diameter of 3.1mm. Construct a vertical cylindrical spool body. The main spool section should have a diameter of 16mm and a height of 5.1mm. Above this, add a spool hat ...
echo(version=version()); FILAMENT_X=0.4; FILAMENT_Y=0.15; GREATFET_X_INNER=68.1; GREATFET_X_OUTER=70.2; GREATFET_Y=53.37; GREATFET_Y_OFFS=0.0; GREATFET_X_OFFS=42.6; revoxRes=50; fudgeFactor=0.2; standoffHeight=12; mountingHoleOD=7; mountingHoleID=2.8; module mountingStandoff(h=12){ dif...
glb/cad_e8873ed0e4eb.glb
Create a Flat Object Stand by constructing a solid block with a total width of 40mm, a length of 20mm, and a total height of 25mm. The base of the stand is a solid rectangular slab 5mm thick. From this base, extend two vertical walls upwards to the full height of 25mm. These walls should be separated by a central gap 2...
include <MCAD/units.scad> standLength = 20; standWidth = 40; standTotalHeight = 25; standGapWidth = 2.1; standBaseThickness = 5; standWallThickness = 3; module Stand() { translate([0, standLength / 2, 0]) difference() { rotate([90, 0, 0]) linear_extrude(standLength, convexity = 2) ...
glb/cad_f892aededa7b.glb
Create a Motorcycle Helmet Cam mount consisting of five distinct components: a pen-shaped camera body, a lens, a lens cap, a sheath, and a retainer. The camera body is a cylinder with a radius of 6.675mm and a height of 59.1mm. It features a silver top cap and a bottom section with a radius of 6.215mm and a height of ...
include <ISOThread.scad> $fn=70; hr=43/2; hth=6; htl=15.5; hz1=2.5; hz2=1.5; pr=14/2; pth=3; pcw=5.5; ang=78; bor=18/2; bir=14.5/2; bl=58; bbh=3; por=pr+pth; pco=pcw+(pth*2); print(); module print() { translate([28.5/2,-2,0]) lensCap(); translate([-hr+8,0,0]) sheath(); translate([hr-10,-hr,0]) holder(); tr...
glb/cad_0b5fe07c76ff.glb
Create a sealing ring for an Ikea Korken lid by constructing a flat, hollow cylinder. Start with a solid cylinder that has an outer diameter of 95mm and a height of 3mm. From the center of this shape, remove a smaller concentric cylinder with a diameter of 74mm and a height that exceeds the original thickness to create...
outer_diameter=95; inner_diameter=74; thickness=3; $fa=.5; difference() { cylinder(d=outer_diameter,h=thickness); translate([0,0,-1]) cylinder(d=inner_diameter,h=thickness+2); }
glb/cad_d173c448494e.glb
Create a travel case for a razor and blades consisting of two connected compartments. First, construct a main rectangular blade box with outer dimensions of 45mm by 11mm and a height of 66mm. This box should have a wall thickness of 1mm and rounded vertical edges with a radius of 3.5mm. The interior of this box must be...
wt=1; zs=65; xs=43; ys=9; xh=17.5; yh=15.5; re=3.5; $fs=.5; module rcube(xs,ys,zs,re) { hull() for(x=[re,xs-re]) for(y=[re,ys-re]) translate([x,y,0]) cylinder(r=re,h=zs); } difference() { union() { rcube(xs+2*wt,ys+2*wt,zs+wt,wt); translate([(xs-xh)/2,-yh-wt,0]) rcube(xh+2*wt,yh+2*wt,zs+...
glb/cad_7d7bf0667d1a.glb
Create a Lego Compatible Mech Platform consisting of a rectangular base and four vertical pillars. Start by creating a rectangular base plate with dimensions 48mm by 72mm and a thickness of 5mm. At each of the four corners of the base, place a vertical pillar. Each pillar should be a cylinder with a diameter of 5mm a...
echo("==== rodsandholes.scad ==== version 1.1"); include <metric_sizes.scad> function calc_sides(d,min_sides,fixed_sides) = fixed_sides==0 ? max(round(2 * d),min_sides ): fixed_sides; show_y_tests=true; module x_polyrod(d,h,min_sides=8,fixed_sides=0) { n = calc_sides(d,min_sides,fixed_sides); rotate([0,90,0]) ...
glb/cad_c9150eed9a31.glb
Create a bike phone mount consisting of two mirrored symmetrical halves. For each half, start with a flat base plate 10mm wide. On this plate, construct a phone cradle with a total width of 66mm, a length of 136mm, and a height of 8mm. The cradle walls should be 4mm thick, with a 2.5mm wide clip lip extending from the ...
width = 66; length = 136; height = 8; base_th = 4; base_w = 10; clip_w = 2.5; diameter = 23; angle = 30; bottom = 1; both = 1; slack = 0.1; if (!bottom || both) { top_half(); mirror([1,0,0]) top_half(); } if (bottom) { difference() { rotate([0,90,0]) { bottom_half(); mirror([1,0,0]...
glb/cad_84433b73bb65.glb
Create a customizable PCB angle holder consisting of two rectangular plates joined at a 35-degree angle. First, create the PCB mounting plate as a rectangular slab 105mm long, 12mm wide, and 4mm thick. Center two holes with a diameter of 3.2mm through this plate, spaced 76.2mm apart. To support the board, add two cyl...
$fn=25; pcbLength = 85; pcbHolesPitch = 76.2; pcbHolesDia = 3.2; pcbOffset = 20; pcbDistance = 3.5; pcbDistanceDia = 8; pcbAngle = 35; bottomLength = 60; bottomHolesPitch = 50; bottomHolesDia = 5; bottomHolesOffset = 10; width = 12; thickness = 4; module pcbPart() { union() { difference() { un...
glb/cad_7c5128aa4069.glb
Create a 3x2x1 Rubik's Cube puzzle consisting of six cube-shaped pieces, each with a side length of 20mm. The assembly includes two center cubes, four edge cubes, and one center pin. For the center cubes, start with a 20mm cube and remove a central cylindrical hole with a radius of 4mm and a height of 10mm to accommod...
use <../pin_joints.scad> cubeside = 20; nozzleD = 0.4; wovert = nozzleD*1.5; th = wovert*4; cl = 0.3; facets = 32; plate_spacing = cubeside*1.5; pin_h = 10; pin_r = 4; pin_lh = 3; pin_lt = 1; pin_t = 0.3; pin_tight = true; * edge_cube(); * center_cube(); * center_pin(); cube_plate(); modu...
glb/cad_777a417dfccd.glb
Create a Prusa i3 frame connector by constructing a composite geometric shape. Start with a base square plate measuring 25mm by 25mm with a thickness of 2.4mm. Position a second identical 25mm by 25mm by 2.4mm square plate exactly 6.1mm above the first one. Between these two plates, add a central rectangular block meas...
rotate([90,0,0]) difference() { union() { cube([25,25,2.4]); translate([0,0,6.1+2.4])cube([25,25,2.4]); translate([25/2-7.6/2,0,0]) cube([7.6,6,9]); } translate([25/2,14,0]) cylinder(r=4.4,h=12,$fn=32); }
glb/cad_a555103a8a2f.glb
Create a Test Box by constructing a large cube with dimensions of 25mm x 25mm x 25mm. From this solid, remove a smaller rectangular volume to create a hollow interior. This interior cutout should measure 21mm x 21mm x 23mm and be positioned 2mm from the bottom and 2mm from each of the four side walls, leaving a consist...
difference() { cube([25,25,25]); translate([2,2,2])cube([21,21,23]); }
glb/cad_62f17d3480f4.glb
Create a customizable phone stand. Start with a base block that is 85.7mm wide, 19.7mm deep, and 81.75mm tall. From this main body, remove a central rectangular slot to create a cradle for a device that is 77.7mm wide and 9.7mm thick, with the slot walls positioned 4mm from the outer edges. The cradle should be tilted ...
part = "Stand"; width = 77.7; thick = 9.7; usbc = 38.85; usboff = 0; usbx = 12.7; usby = 6.35; usbz = 31.75; usbd = 4.75; height = 50; theight = 20; print_part(); module print_part() { if (part == "Stand"){ stand(); }else if (part == "Test"){ test(); }else if (part == "Both"){ ...
glb/cad_79e15f09c296.glb
Create an Arduino DUE mount consisting of a hollowed-out rectangular base. Start with a solid block 105mm wide, 56.5mm deep, and 10mm high, with rounded edges created by a 2mm radius. Hollow out the center of the block by removing a volume 99mm wide, 50.5mm deep, and 4mm high, leaving a wall thickness of 3mm on the sid...
$fs=.25; union() { difference() { minkowski() { cube([101,52.5,6]); cylinder(2,2,2); } translate([1,1,3]) minkowski() { cube([99,50.5,4]); cylinder(2,2,2); } translate([80,27,-1]) cylinder(5,8,8); translate([-3,2.5,5]) cube([3,9.5,4]); translate([-3,17,5]) cube([3,9.5,4]); transl...
glb/cad_68a7aa0f1d22.glb
Create a dummy model of a hotend radiator assembly. Start with a base consisting of two stacked cylindrical sections: a bottom cylinder 4mm high with a 16mm diameter, and a second cylinder 6mm high with a 12mm diameter sitting directly on top. Above this, add a third cylinder 3mm high with a 16mm diameter and a 12mm wi...
holder_d = 16; holder1_h = 4; holder_inner_h = 6; holder2_h = 3; holder_inner_d = 12; holder3_h = 1; radiator_s = 1.5; radiator_d = 19; radiator_h = 1; radiator_fin_count=11; cone_d1=9; cone_d2=holder_inner_d; barrier_h = 2; barrier_d = 4; block_w = 20; block_d = 16; block_h = 12; nozzle_d = 8; nozzle_h = 5; sens...
glb/cad_65be96da2f7b.glb
Create a GPS antenna wall mount consisting of a vertical cylindrical socket attached to a flat rectangular mounting plate. Start by creating a cylinder with an outer diameter of 25mm and a height of 30mm. Bore a hole through the center of this cylinder with a diameter of 21mm and a height of 55mm. At the top of the cyl...
include <threads.scad> $fn=30; difference() { union() { translate([0,0,30]) english_thread(diameter=1, threads_per_inch=15, length=7/8); cylinder(d=25,h=30); } cylinder(d=21,h=55); } difference() { translate([8.4,-2,0]) cube([4,110,20]); translate([8,100,10]) rotate([0,90,0]) cylin...
glb/cad_e5fc2f1f3213.glb
Create an Ammo Can Tag consisting of a flat rectangular base and two protruding side arms. The main base is a rectangle measuring 63.5mm in width, 13mm in height, and 3mm in thickness. Centered on the top face of this base, add the text "22 LR" with a font size of 10mm and a thickness of 1mm. On both the left and righ...
cantag(); TAG_TEXT="22 LR"; TEXT_HEIGHT=1; TEXT_FONT_SIZE=10; TEXT_FONT="Liberation Sans"; TAG_OUTSIDE_THICKNESS=3; TAG_OUTSIDE_WIDTH=63.5; TAG_OUTSIDE_HEIGHT=13; INWARD_ARM_THICKNESS=1; INWARD_ARM_DEPTH=3.5; BACKSIDE_TAB_THINCKNESS=1.5; BACKSIDE_TAB_DEPTH=2; BACKSIDE_TAB_GRIP_DEPTH=1; module cantag(){ rotate([90,0,1...
glb/cad_03edccdd7219.glb
Create a TV Cable Tightener for an F-type connector by constructing a hollow hexagonal prism. The outer shell should be a regular hexagon with a flat-to-flat width of 11.8mm and a total height of 30mm. Centered within this volume, remove a smaller hexagonal prism with a flat-to-flat width of 7.8mm and the same height o...
$fn = 150 ; difference () { Hexagone(cle=11.8,h=30); Hexagone(cle=7.8,h=30); } module Hexagone(cle,h) { angle = 360/6; cote = cle * cot(angle); echo(angle, cot(angle), cote); echo(acos(.6)); union() { rotate([0,0,0]) cube([cle,cote,h],center=true); rotate([0,0,angle]) cube([cle,cote,h],center=true); ...
glb/cad_6cdfc7a2278c.glb
Create a Customizable Round Box consisting of a main body and a separate cover. For the body, create a cylinder with an outer diameter of 55mm and a total height of 20mm. Hollow out the center by removing a cylinder with a diameter of 45mm and a height of 21mm, starting from 3mm above the base, leaving a solid bottom f...
ins_dia = 45; wall_th = 5; tb_th = 3; out_dia = ins_dia + 2*wall_th; h = 20; insc = 10; clr = 0.2; difference(){ cylinder(h, out_dia /2 , out_dia /2, $fn=200); cylinder(h+1, ins_dia /2 , ins_dia /2, $fn=200 ); } difference(){ cylinder(h+insc, (ins_dia+wall_th-clr)/2, (ins_dia+wall_th-clr)/2, $fn=200)...
glb/cad_685e97ac9bfc.glb
Create a drawer divider extender consisting of a central hook and a perpendicular dividing wall. First, create a rectangular hook with a width of 25mm, a height of 32mm, and a thickness of 4.9mm. Hollow out the center of this hook by removing a rectangular section 25mm wide, 2.1mm thick, and 32mm high, leaving two oute...
divider_type = "1x1"; mold_mark = true; sml_width = 50; sml_height = 32; sml_length = 66.5; div_thickness = 1.4; rib_height = 17; mold_h = 1; mold_w = 9; h_width = sml_width/2; if (divider_type != "simple") { difference() { cube([h_width, div_thickness*3.5, sml_height], center = false); translate([-0.1,...
glb/cad_4e2d246f26c5.glb
Create a drawer divider base panel for a large drawer. The main body is a rectangular plate with a thickness of 1.4mm, a length of 74.6mm, and a height of 46mm. Attached to one end of this plate, create a vertical fixture consisting of a rectangular block 3.5mm wide and 46mm high, with a centered cylinder of 3.5mm di...
$fn = 32; divider_type = "lbase"; mold_mark = true; mold_h = 1; mold_w = 9; sml_width = 50; sml_height = 32; sml_length = 66.5; lg_length = 129; lg_width = 104; lg_height = 46; div_thickness = 1.4; sm_rib_height = 17; h_width = sml_width/2; fit = 0.8; tee_width = 2.5*div_thickness; hook_width = tee_width...
glb/cad_f27513c3b5f6.glb
Create a Hanukkah Menorah candle holder. Start by constructing a central base consisting of a cylinder with a radius of 22mm and a height of 5mm. From the top of this base, create a central vertical holder for the shamash candle: this is a hollow cylinder with an outer radius of 22mm and a height of 17mm, featuring a c...
candle_r = 20; candle_h = 15; holder_rim = 2; holder_bottom = 2; holder_space = (candle_h+holder_bottom)/2; arm_length = 1.5*candle_r; center_height = holder_space*10; echo("center height: ", center_height); shamash_holder(); module demo() { center(); translate([0, 0, holder_space*9]) shamash_holder(); for...
glb/cad_0106b4d895d5.glb
Create a parametric hexa container consisting of a main body and a matching cap. For the main body, create a hollow cylinder with an internal diameter of 50mm and a height of 60mm. The outer wall should have a thickness of 0.4mm. The exterior of the cylinder is modified into a hexagonal prism with 4 sides. On 6 of th...
CONTENT_WIDTH = 50; CONTENT_HEIGHT = 60; CONTENT_SHAPE = 1; CONTAINER_THICKNESS = 0; CONTAINER_GRIP = 4; KNOB_WIDTH = 15; KNOB_HEIGHT = 10; PART_TO_RENDER = 0; NB_SIDES = 4; NB_SIDES_WITH_GRIP = 6; CONTAINER_BOTTOMLESS = 0; PRINT_NOZZLE = 0.4; CONTAINER_GAP = 0.2; PRECISION = 100; $fn=PRECISION; NB_GRIP =...
glb/cad_4a4f7092ee9e.glb