Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a headlight knob consisting of a cylindrical base and a rectangular grip. Start with a cylinder that has a radius of 18mm and a height of 15mm, centered on the Z-axis. Integrate a rectangular block into the top half of this cylinder, measuring 37mm in width, 12mm in depth, and 12mm in height, centered horizontal...
minny=3; fullr = 36/2; module roundknob(m) { intersection() { minkowski() { knob(m); sphere(m); } translate([0, 0, 8]) cylinder(r=fullr, h=30, center=true); } module knob(minny2) { r = fullr - minny2; h = 12 - minny2; union() { cylinder(...
glb/cad_48abf8de8f77.glb
Create a PSU Cover consisting of a front cover, back cover, and fan deflector. For the front cover, start with a base block 104mm wide, 56mm high, and 65mm deep with 3mm walls. Hollow out the center to fit a PSU of 98mm by 50mm. On the front face, create a rectangular cutout for an LED mount measuring 22.6mm wide, 14...
$fn=100; i=3; psu_width=98; psu_height=50; wall=3; back_cover_length=30; front_cover_length=65; feet_width=10; feet_height=5; ac_tot_width = 48; ac_width = 43; ac_height = 27.1; ac_corner = 5; ac_screw_distance = 40; led_width=22.6; led_height=14; led_dept=7.25; molex_width=10.3; molex_height=10.3; molex_dept = 18...
glb/cad_78d7f0f5682b.glb
Create a 1:18 scale book model with a total width of 8mm, height of 14mm, and thickness of 4mm. Start by creating the inner pages as a central block. This block is formed by a cylinder with a radius of 2mm and a height of 14mm, scaled along the X-axis to 70% of its original width, and then subtracting a central recta...
width = 8; height = 14; thickness = 4; $fn = 32; cover_thick = 0.8; cover_height = 0.8; ring_thick = 0.4; module ring(w,h,t) { scale([0.8,1,1]) difference() { rotate_extrude(convexity = 10) translate([(t/2-ring_thick), 0, 0]) circle(r = ring_thick, $fn = 100); translate([w/2,...
glb/cad_5f6dcbc7ede1.glb
Create a low-profile filament spool holder designed to hold a 200mm spool using four 608zz bearings. The assembly consists of two mirrored side structures. Each side structure begins with a vertical mounting plate 2mm thick. Create two bearing housings positioned 100mm apart. Each housing is a cylinder with an outer ...
ShowStyle=1; top_d=50; front_h=50; mount_w=15; thickness=2; Bearing_separation=100; mount_h=15; offset=(Bearing_separation - top_d) / 2; clearance=5; spool_d=200; b608zz_od=22.05; b608zz_id=8; b608zz_h=7; b608zz_washer_od=11.6; side_c=Bearing_separation/2; side_a=(spool_d + b608zz_od) / 2; angle_A=90; angle_C = as...
glb/cad_9720da34f18b.glb
Create a triclinic cell representing the C1 point group. The shape is a parallelepiped defined by three edge lengths and three angles. Set the edge lengths to a=40mm, b=50mm, and c=30mm, with the corresponding angles alpha=60°, beta=70°, and gamma=80°. Construct the geometry by defining eight vertices based on these ...
echo(version=version()); a=40; b=50; c=30; alpha=60; beta=70; gamma=80; i=2; bx=b*cos(gamma); by=b*sin(gamma); cx=c*cos(beta); cy=c*(cos(alpha)-cos(beta)*cos(gamma))/sin(gamma); cz=sqrt((c*c)-(cx*cx)-(cy*cy)); color("white") polyhedron( points = [ [ 0, 0, 0 ], [ a-i, 0, 0 ]...
glb/cad_ae31bdef5b60.glb
Create a triclinic cell representing the C1 point group. The shape is a skewed parallelepiped with a thickness of 2mm. The overall dimensions are defined by an edge length $a$ of 40mm, a width $b$ of 50mm, and a height $c$ of 30mm, with cell angles $\alpha=60^\circ$, $\beta=70^\circ$, and $\gamma=80^\circ$. Construct...
echo(version=version()); a=40; b=50; c=30; alpha=60; beta=70; gamma=80; i=2; bx=b*cos(gamma); by=b*sin(gamma); cx=c*cos(beta); cy=c*(cos(alpha)-cos(beta)*cos(gamma))/sin(gamma); cz=sqrt((c*c)-(cx*cx)-(cy*cy)); color("green") polyhedron( points = [ [ a-i, 0, 0 ], [ a, 0, 0 ...
glb/cad_5c18cbc286c3.glb
Create a Point Group C2 crystallographic model consisting of two identical parallelepiped volumes stacked vertically. Each volume is defined by an edge length of 50mm, a width of 40mm, and a height of 30mm, with a gamma angle of 60 degrees. Construct the first volume as a skewed prism where the base is a parallelogra...
echo(version=version()); a=50; b=40; c=30; gamma=60; i=2; alpha=90; beta=90; bx=b*cos(gamma); by=b*sin(gamma); union(){ { color("white") translate([0, 0, 0]) polyhedron( points = [ [ 0, 0, 0 ], [ a, 0, 0 ], [ a+bx, by, 0 ], [ bx, by, 0 ...
glb/cad_26e8fc3f8f3c.glb
Create a Point Group C2 crystallographic model consisting of two identical parallelepiped slabs. Each slab has a length of 50mm, a width of 40mm, and a height of 30mm. The slabs are oriented such that they are mirrored across a central axis. To construct the first slab, create a solid with a base defined by a 60-degre...
echo(version=version()); a=50; b=40; c=30; gamma=60; i=2; alpha=90; beta=90; bx=b*cos(gamma); by=b*sin(gamma); union(){ color("green") polyhedron( points = [ [ a-i, 0, c/2 ], [ a, 0, c/2 ], [ a+bx, by, c/2 ], [ a+bx-i, by, c/2 ], [ a-i, 0, c ], [ a, 0...
glb/cad_7d702b73b1f1.glb
Create a Point Group C4 symmetry model based on a tetragonal cell. Start by constructing a primary white geometric component consisting of four identical polyhedrons rotated every 90 degrees around the Z-axis. Each polyhedron is defined by points that create a wedge shape with a total height of 40mm and a base width of...
echo(version=version()); a=32; c=40; n=4; i=2; di=0.01; theta=(180/n); tt=tan(theta); ax=(a/2)/tt; by=a/2; difference() { union(){ for(x=[0:n-1]) { color("white") translate([0, 0, 0]) rotate([0,0,(x*360/n)]) polyhedron( points = [ ...
glb/cad_4eb144445154.glb
Create a Point Group C4 symmetry model consisting of four identical rectangular plates arranged in a rotational pattern around a central vertical axis. Each plate must have a width of 32mm, a height of 40mm, and a thickness of 2mm. Position the four plates such that they are spaced equally around the center, with eac...
echo(version=version()); a=32; c=40; n=4; i=2; di=0.01; theta=(180/n); tt=tan(theta); ax=(a/2)/tt; by=a/2; intersection(){ union(){ for(x=[0:n-1]) { color("green") translate([0, 0, 0]) rotate([0,0,(x*360/n)]) polyhedron( points = [ ...
glb/cad_dba94158ba9b.glb
Create a Point Group C6 symmetry model consisting of a primary hexagonal structure with six identical segments arranged around a central vertical axis. Each of the six segments is a polyhedron defined by a base width of 20mm and a total height of 40mm. The outer boundary of each segment is defined by points extending f...
echo(version=version()); a=20; c=40; n=6; i=2; di=0.01; theta=(180/n); tt=tan(theta); ax=(a/2)/tt; by=a/2; difference() { union(){ for(x=[0:n-1]) { color("white") translate([0, 0, 0]) rotate([0,0,(x*360/n)]) polyhedron( points = [ ...
glb/cad_c79bb3ebba0b.glb
Create a Point Group C6 symmetry model consisting of six identical rectangular prisms arranged in a hexagonal ring. Each prism has a width of 2mm, a height of 40mm, and a depth of 20mm. Position the prisms such that they are rotated around a central vertical axis in 60-degree increments. Each prism should be oriented...
echo(version=version()); a=20; c=40; n=6; i=2; di=0.01; theta=(180/n); tt=tan(theta); ax=(a/2)/tt; by=a/2; intersection(){ union(){ for(x=[0:n-1]) { color("green") translate([0, 0, 0]) rotate([0,0,(x*360/n)]) polyhedron( points = [ ...
glb/cad_d862ad4b3952.glb
Create a Point Group C2v crystallographic model consisting of two rectangular prisms stacked vertically. The bottom prism is a solid block with a length of 50mm, a width of 40mm, and a height of 15mm. Position this first block so its base sits on the XY plane with one corner at the origin (0,0,0). Directly on top of th...
echo(version=version()); a=50; b=40; c=30; i=2; union(){ color("white") translate([0, 0, 0]) polyhedron( points = [ [ 0, 0, 0 ], [ a, 0, 0 ], [ a, b, 0 ], [ 0, b, 0 ], [ 0, 0, c/2 ], [ a, 0, c/2 ], [ a, b, c/2 ], [ 0, b, c/2 ]], faces = [ [0,1,2,3], [4,5,1,0...
glb/cad_52640ce22158.glb
Create a 3D model of a Point Group C2v crystallographic cell. Start by constructing a solid rectangular prism with a length of 50mm, a width of 40mm, and a height of 30mm. From this main volume, remove a smaller concentric rectangular prism to create a hollow shell. The interior void should be centered and leave a wall...
echo(version=version()); a=50; b=40; c=30; i=2; di=0.01; difference(){ color("green") translate([0, 0, 0]) polyhedron( points = [ [ 0, 0, 0 ], [ a, 0, 0 ], [ a, b, 0 ], [ 0, b, 0 ], [ 0, 0, c ], [ a, 0, c ], [ a, b, c ], [ 0, b, c ]], faces = [ [0,1,2,3], [4...
glb/cad_1b3a909f9b70.glb
Create a 3D model of a Point Group C3v trigonal cell. The overall structure is composed of three identical primary segments arranged with 120-degree rotational symmetry around the Z-axis. First, construct a primary segment as a polyhedron with a height of 40mm. The base of this segment is a triangle with a vertex at ...
echo(version=version()); a=49; c=40; n=3; i=2; di=0.01; theta=(180/n); tt=tan(theta); ax=(a/2)/tt; by=a/2; difference(){ union(){ for(x=[0:n-1]){ color("white") translate([0, 0, 0]) rotate([0,0,(x*360/n)]) polyhedron( points = [ [ -a/...
glb/cad_584abfedc94d.glb
Create a 3D model of a trigonal cell representing the C3v point group. The overall shape is a right triangular prism with a height of 40mm and an equilateral triangular base with an edge length of 49mm. Construct the main body by creating three identical wedge-shaped sections, each rotated 120 degrees around the cent...
echo(version=version()); a=49; c=40; n=3; i=2; di=0.01; theta=(180/n); tt=tan(theta); ax=(a/2)/tt; by=a/2; intersection(){ union(){ for(x=[0:n-1]){ color("green") translate([0, 0, 0]) rotate([0,0,(x*360/n)]) polyhedron( points = [ [ -...
glb/cad_41deacd2f06f.glb
Create a 3D model of a Point Group C4v crystallographic cell. Start by constructing a central tetragonal volume composed of four identical mirrored sections rotated every 90 degrees around the Z-axis. Each section is a polyhedron defined by a base width of 32mm and a total height of 40mm. The outer boundary of each sec...
echo(version=version()); a=32; c=40; n=4; i=2; di=0.01; theta=(180/n); tt=tan(theta); ax=(a/2)/tt; by=a/2; difference(){ union(){ for(x=[0:n-1]){ color("white") translate([0, 0, 0]) rotate([0,0,(x*360/n)]) polyhedron( points = [ [ -a/...
glb/cad_548be28757df.glb
Create a Point Group C4v crystallographic cell. Start by constructing a central vertical column with a square base of 32mm and a total height of 40mm. This core is formed by the union of four identical polyhedral segments rotated every 90 degrees around the Z-axis. Each segment is defined by a wedge shape that extends ...
echo(version=version()); a=32; c=40; n=4; i=2; di=0.01; theta=(180/n); tt=tan(theta); ax=(a/2)/tt; by=a/2; intersection(){ union(){ for(x=[0:n-1]){ color("green") translate([0, 0, 0]) rotate([0,0,(x*360/n)]) polyhedron( points = [ [ -...
glb/cad_7cf47e699494.glb
Create a Point Group C6v crystallographic model based on a hexagonal prism. Start by constructing a primary hexagonal volume with a height of 40mm and a base edge length of 20mm. This main body is composed of six identical wedge-shaped segments rotated every 60 degrees around the central Z-axis. From this primary volu...
echo(version=version()); a=20; c=40; n=6; i=2; di=0.01; theta=(180/n); tt=tan(theta); ax=(a/2)/tt; by=a/2; difference(){ union(){ for(x=[0:n-1]){ color("white") translate([0, 0, 0]) rotate([0,0,(x*360/n)]) polyhedron( points = [ [ -a/...
glb/cad_9cf9ba55ff53.glb
Create a Point Group C6v hexagonal cell. Start by constructing a hexagonal prism with a total height of 40mm and a side length of 20mm. The overall shape is formed by the intersection of two primary geometric sets. First, create six identical wedge-shaped polyhedrons, each rotated by 60 degrees around the Z-axis. Each ...
echo(version=version()); a=20; c=40; n=6; i=2; di=0.01; theta=(180/n); tt=tan(theta); ax=(a/2)/tt; by=a/2; intersection(){ union(){ for(x=[0:n-1]){ color("green") translate([0, 0, 0]) rotate([0,0,(x*360/n)]) polyhedron( points = [ [ -...
glb/cad_a0e0251b01cd.glb
Create a 3D model of a Point Group C3h crystallographic cell. Start by constructing a primary volume consisting of three identical polyhedra joined at a central axis. Each polyhedron is defined by a base with vertices at [-4.9, 0, 0], [28.27, 24.5, 0], and [28.27, -24.5, 0], extending vertically to a height of 40mm. Th...
echo(version=version()); a=49; c=40; n=3; i=2; di=0.01; theta=(180/n); tt=tan(theta); ax=(a/2)/tt; by=a/2; difference(){ union(){ for(x=[0:n-1]) { color("white") translate([0, 0, 0]) rotate([0,0,(x*360/n)]) polyhedron( points = [ ...
glb/cad_bff7b8314999.glb
Create a 3D model of a Point Group C3h crystallographic cell. The structure consists of three identical rectangular plates arranged with 3-fold rotational symmetry around a central vertical axis. Each plate is 40mm high and has a width based on an edge length of 49mm. Position the three plates such that they are rota...
echo(version=version()); a=49; c=40; n=3; i=2; di=0.01; theta=(180/n); tt=tan(theta); ax=(a/2)/tt; by=a/2; intersection(){ union(){ for(x=[0:n-1]) { color("green") translate([0, 0, 0]) rotate([0,0,(x*360/n)]) polyhedron( points = [ ...
glb/cad_1278167772f6.glb
Create a 3D model of a Point Group C4h crystallographic cell. Start by constructing a central core consisting of four identical polyhedrons arranged with 4-fold rotational symmetry around the Z-axis. Each of these four polyhedrons is defined by vertices at [ -3.2, 0, 0 ], [ 7.45, 16, 0 ], [ 7.45, -16, 0 ], [ -3.2, 0, 4...
echo(version=version()); a=32; c=40; n=4; i=2; di=0.01; theta=(180/n); tt=tan(theta); ax=(a/2)/tt; by=a/2; difference(){ union(){ for(x=[0:n-1]) { color("white") translate([0, 0, 0]) rotate([0,0,(x*360/n)]) polyhedron( points = [ ...
glb/cad_d2141fcd4a32.glb
Create a 3D model of a Point Group C4h crystallographic cell. The structure consists of four identical vertical rectangular slabs arranged symmetrically around a central vertical axis. Each slab has a width of 16mm, a height of 40mm, and a thickness of 3.2mm. Position the four slabs such that they are rotated 90 degr...
echo(version=version()); a=32; c=40; n=4; i=2; di=0.01; theta=(180/n); tt=tan(theta); ax=(a/2)/tt; by=a/2; intersection(){ union(){ for(x=[0:n-1]) { color("green") translate([0, 0, 0]) rotate([0,0,(x*360/n)]) polyhedron( points = [ ...
glb/cad_dcb3b33b6e73.glb
Create a 3D model of a Point Group C6h hexagonal cell. Start by constructing a primary hexagonal prism with a height of 40mm and a base edge length of 20mm. This main body is formed by the union of six identical wedge-shaped segments, each rotated by 60 degrees around the central Z-axis. Each segment is a polyhedron de...
echo(version=version()); a=20; c=40; n=6; i=2; di=0.01; theta=(180/n); tt=tan(theta); ax=(a/2)/tt; by=a/2; difference(){ union(){ for(x=[0:n-1]) { color("white") translate([0, 0, 0]) rotate([0,0,(x*360/n)]) polyhedron( points = [ ...
glb/cad_74d4e719deb2.glb
Create a 3D model of a Point Group C6h crystallographic cell. The structure is based on a hexagonal symmetry with six identical vertical segments arranged in a circle around a central axis. Each of the six segments is a polyhedron with a height of 40mm. The cross-section of each segment is defined by a width of 20mm a...
echo(version=version()); a=20; c=40; n=6; i=2; di=0.01; theta=(180/n); tt=tan(theta); ax=(a/2)/tt; by=a/2; intersection(){ union(){ for(x=[0:n-1]) { color("green") translate([0, 0, 0]) rotate([0,0,(x*360/n)]) polyhedron( points = [ ...
glb/cad_2264761a7513.glb
Create a 3D model of a triclinic cell representing the Ci point group. The shape is a parallelepiped defined by edge lengths a=40mm, b=50mm, and c=30mm, with interior angles alpha=60°, beta=70°, and gamma=80°. Construct the geometry by defining eight vertices based on these dimensions and angles. The base is a parall...
echo(version=version()); a=40; b=50; c=30; alpha=60; beta=70; gamma=80; bx=b*cos(gamma); by=b*sin(gamma); cx=c*cos(beta); cy=c*(cos(alpha)-cos(beta)*cos(gamma))/sin(gamma); cz=sqrt((c*c)-(cx*cx)-(cy*cy)); color("white") polyhedron( points = [ [ 0, 0, 0 ], [ a, 0, 0 ], [ ...
glb/cad_aaaa0eb012d7.glb
Create a 3D model of a Point Group S6 crystallographic cell. Start by constructing a central core consisting of six identical polyhedra arranged with 6-fold rotational symmetry around the Z-axis. Each of these six polyhedra is defined by vertices at [ -2, 0, 0 ], [ 17.32, 10, 0 ], [ 17.32, -10, 0 ], [ -2, 0, 40 ], [ 17...
echo(version=version()); a=20; c=40; n=6; i=2; di=0.01; theta=(180/n); tt=tan(theta); ax=(a/2)/tt; by=a/2; difference(){ union(){ for(x=[0:n-1]){ color("white") translate([0, 0, 0]) rotate([0,0,(x*360/n)]) polyhedron( points = [ [ -a/...
glb/cad_fc44b598465c.glb
Create a 3D model of a Point Group S6 crystallographic cell. The structure is based on a central axis with a total height of 40mm and a base edge length of 20mm. Construct the model by creating six identical vertical rectangular prisms. Each prism should be positioned around the center, rotated in 60-degree increment...
echo(version=version()); a=20; c=40; n=6; i=2; di=0.01; theta=(180/n); tt=tan(theta); ax=(a/2)/tt; by=a/2; intersection(){ union(){ for(x=[0:n-1]){ color("green") translate([0, 0, 0]) rotate([0,0,(x*360/n)]) polyhedron( points = [ [ -...
glb/cad_e41128e6f13f.glb
Create a 3D model of a Point Group D2 crystallographic cell. Start with a primary rectangular block measuring 40mm in length (x), 20mm in width (y), and 20mm in height (z). From this main volume, remove several smaller rectangular sections to create symmetrical indentations of 2mm depth. These cutouts should be posit...
echo(version=version()); a=40; b=20; c=20; i=2; di=0.01; difference(){ color("white") translate([0, 0, 0]) polyhedron( points = [ [ 0, 0, 0 ], [ a, 0, 0 ], [ a, b, 0 ], [ 0, b, 0 ], [ 0, 0, c ], [ a, 0, c ], [ a, b, c ], [ 0, b, c ]], faces = [ [0,1,2,3], [4...
glb/cad_7ba24ffb10dc.glb
Create a 3D model of a Point Group D2 crystallographic cell. The structure is composed of several rectangular prisms arranged symmetrically around a central point. Start by creating a primary rectangular block with dimensions 40mm in length (x), 20mm in width (y), and 20mm in height (z). To achieve the D2 symmetry, ge...
echo(version=version()); a=40; b=20; c=20; i=2; di=0.01; intersection(){ color("green") translate([0, 0, 0]) polyhedron( points = [ [ 0, 0, 0 ], [ a, 0, 0 ], [ a, b, 0 ], [ 0, b, 0 ], [ 0, 0, c ], [ a, 0, c ], [ a, b, c ], [ 0, b, c ]], faces = [ [0,1,2,3], ...
glb/cad_16144a28630d.glb
Create a 3D model of a Point Group D3 crystallographic cell. The overall structure is based on a trigonal cell with a height of 40mm and an edge length of 49mm. First, construct the primary body by creating three identical polyhedrons. Each polyhedron is defined by six vertices: (-4.9, 0, 0), (14.15, 24.5, 0), (14.15...
echo(version=version()); a=49; c=40; n=3; i=2; di=0.01; theta=(180/n); tt=tan(theta); ax=(a/2)/tt; by=a/2; difference(){ union(){ for(x=[0:n-1]){ color("white") translate([0, 0, 0]) rotate([0,0,(x*360/n)]) polyhedron( points = [ [ -a/...
glb/cad_eedb01157ed3.glb
Create a 3D model of a Point Group D3 crystallographic cell. The structure is based on a trigonal symmetry with a 3-fold rotational axis. Start by creating a primary wedge-shaped volume. This volume is defined by a height of 40mm and an edge length of 49mm. The shape is a polyhedron with vertices positioned to create...
echo(version=version()); a=49; c=40; n=3; i=2; di=0.01; theta=(180/n); tt=tan(theta); ax=(a/2)/tt; by=a/2; intersection(){ union(){ for(x=[0:n-1]){ color("green") translate([0, 0, 0]) rotate([0,0,(x*360/n)]) polyhedron( points = [ [ -...
glb/cad_ec0ce24f7b5a.glb
Create a 3D model of a Point Group D4 crystallographic cell. Start by constructing a central core consisting of four identical wedge-shaped polyhedrons arranged around the Z-axis. Each wedge is defined by a base width of 32mm and a total height of 40mm. The wedges are rotated in 90-degree increments around the center t...
echo(version=version()); a=32; c=40; n=4; i=2; di=0.01; theta=(180/n); tt=tan(theta); ax=(a/2)/tt; by=a/2; difference(){ union(){ for(x=[0:n-1]){ color("white") translate([0, 0, 0]) rotate([0,0,(x*360/n)]) polyhedron( points = [ [ -a/...
glb/cad_64544d9897f1.glb
Create a 3D model of a Point Group D4 crystallographic cell. The structure is based on a tetragonal cell with an edge length of 32mm and a total height of 40mm. Construct the model by creating four identical vertical blade-like components. Each component is a polyhedron defined by a width of 16mm (half the edge lengt...
echo(version=version()); a=32; c=40; n=4; i=2; di=0.01; theta=(180/n); tt=tan(theta); ax=(a/2)/tt; by=a/2; intersection(){ union(){ for(x=[0:n-1]){ color("green") translate([0, 0, 0]) rotate([0,0,(x*360/n)]) polyhedron( points = [ [ -...
glb/cad_aafd1764b412.glb
Create a 3D model of a Point Group D6 crystallographic cell. The overall structure is a hexagonal prism with a total height of 40mm and a base edge length of 20mm. Construct the primary body by creating six identical wedge-shaped segments arranged around a central axis. Each segment is a polyhedron defined by vertice...
echo(version=version()); a=20; c=40; n=6; i=2; di=0.01; theta=(180/n); tt=tan(theta); ax=(a/2)/tt; by=a/2; difference(){ union(){ for(x=[0:n-1]){ color("white") translate([0, 0, 0]) rotate([0,0,(x*360/n)]) polyhedron( points = [ [ -a/...
glb/cad_6986de3335ed.glb
Create a 3D model of a Point Group D6 crystallographic cell. The structure is based on a hexagonal symmetry with six-fold rotation. Start by creating a primary wedge-shaped volume. This volume is defined by a height of 40mm and an edge length of 20mm. The shape is a polyhedron that, when rotated six times around the ...
echo(version=version()); a=20; c=40; n=6; i=2; di=0.01; theta=(180/n); tt=tan(theta); ax=(a/2)/tt; by=a/2; intersection(){ union(){ for(x=[0:n-1]){ color("green") translate([0, 0, 0]) rotate([0,0,(x*360/n)]) polyhedron( points = [ [ -...
glb/cad_f52020840bbf.glb
Create a 3D model of a Point Group D2d crystallographic cell. Start by constructing a primary solid composed of four identical polyhedra joined at the center. Each polyhedron is defined by a base with vertices at [ -3.2, 0, 0 ], [ 14.4, 16, 0 ], [ 14.4, -16, 0 ], and a top edge extending to a height of 40mm with vertic...
echo(version=version()); a=32; c=40; n=2; i=2; m=n*2; theta=(180/m); ax=(a/2)/tan(theta); by=a/2; di=0.01; difference(){ union(){ for(x=[0:m-1]){ color("white") translate([0, 0, 0]) rotate([0,0,(x*360/m)]) polyhedron( points = [ [ -a/...
glb/cad_e9523b7f9f55.glb
Create a 3D model of a Point Group D2d crystallographic cell. The structure is based on a tetragonal cell with an edge length of 32mm and a total height of 40mm. Construct the primary shape by creating four identical polyhedrons. Each polyhedron should have a base defined by a narrow edge of 3.2mm at the center, exte...
echo(version=version()); a=32; c=40; n=2; i=2; m=n*2; theta=(180/m); ax=(a/2)/tan(theta); by=a/2; di=0.01; intersection(){ union(){ for(x=[0:m-1]){ color("green") translate([0, 0, 0]) rotate([0,0,(x*360/m)]) polyhedron( points = [ [ -...
glb/cad_eb396df1698a.glb
Create a 3D model of a Point Group D3d crystallographic cell. The primary shape is a trigonal prism formed by the union of six identical polyhedra, each rotated by 60 degrees around the Z-axis. Each of these six components has a base edge length of 20mm and a total height of 40mm, tapering from a central point at the o...
echo(version=version()); a=20; c=40; n=3; i=2; m=n*2; theta=(180/m); ax=(a/2)/tan(theta); by=a/2; di=0.01; difference(){ union(){ for(x=[0:m-1]){ color("white") translate([0, 0, 0]) rotate([0,0,(x*360/m)]) polyhedron( points = [ [ -a/...
glb/cad_47ea38a57fdf.glb
Create a 3D model of a Point Group D3d crystallographic cell. The structure is based on a trigonal cell with an edge length of 20mm and a total height of 40mm. Construct the primary shape by creating six identical wedge-like polyhedrons. Each polyhedron has a base that is a narrow triangle meeting at the center, exte...
echo(version=version()); a=20; c=40; n=3; i=2; m=n*2; theta=(180/m); ax=(a/2)/tan(theta); by=a/2; di=0.01; intersection(){ union(){ for(x=[0:m-1]){ color("green") translate([0, 0, 0]) rotate([0,0,(x*360/m)]) polyhedron( points = [ [ -...
glb/cad_7370a26ad3d7.glb
Create four Helios Heatbed clips. For the first clip, create a rectangular block 20mm wide, 15mm deep, and 5mm high. For the remaining three clips, create rectangular blocks 15mm wide, 15mm deep, and 5mm high. For each of the four blocks, remove a rectangular section from the bottom measuring 18mm by 13mm with a height...
$fn=30; translate([0,15.5,5]) rotate([180,0,0]) { for(x = [0,25,45,65]) { translate([x,0,0]) difference() { union() { if (x==0) { difference() { translate([0.5,0.5,0]) cube([20,15,5]); translate([0,0,0]) cube([18,13,2]); translate([4.5,4.5,3]) cylinder(r=3.2,h=2,$fn=6); } } els...
glb/cad_75ba8b080b84.glb
Create a 3D CommonsFest logo consisting of a base and two circular ring structures containing stylized letters. Start by creating a base composed of two cylinders with a radius of 45mm and a height of 10mm, positioned side-by-side with their centers 70mm apart along the x-axis. On top of this base, place two concentri...
rescale = 1.0; base_height = 10; base_padding = 5; rings_height = 12; rings_boldness = 10; rings_dimeter = 80; letters_height = 10; letters_boldness = 10; letters_dimeter = 40; $fa = 1; scale(rescale) color([1.5,1.5,1.5]) { translate([-(rings_dimeter/2 - rings_boldness/2), 0, ...
glb/cad_71f0c5271939.glb
Create a 3D model of a Point group D2h crystallographic cell. Construct a rectangular cuboid centered on the origin with a total length of 50mm along the x-axis, a width of 40mm along the y-axis, and a height of 30mm along the z-axis. Ensure the geometry is a solid block with flat faces and sharp edges.
echo(version=version()); a=50; b=40; c=30; color("white") translate([0,0,c/2]) cube(size = [a,b,c], center=true);
glb/cad_9fac378df49d.glb
Create a 3D model of a Point Group D3h crystallographic cell. The shape is formed by the union of three identical polyhedra, each rotated 120 degrees around the Z-axis. Each individual polyhedron is defined by six vertices: three on the XY plane at Z=0 and three on a parallel plane at Z=40mm. On the base plane, the v...
echo(version=version()); a=49; c=40; n=3; theta=(180/n); ax=(a/2)/tan(theta); by=a/2; union(){ for(i=[0:n-1]) { color("white") translate([0, 0, 0]) rotate([0,0,(i*360/n)]){ polyhedron( points = [ [ -a/10, 0, 0 ], [ ax, by, 0 ], ...
glb/cad_b9a3b9f38040.glb
Create a 3D model of a Point Group D4h crystallographic cell. The shape is a tetragonal prism with a square base and a total height of 40mm. To construct this, create a central geometric volume based on a square with an edge length of 32mm. The structure is formed by the union of four identical polyhedral segments rota...
echo(version=version()); a=32; c=40; n=4; theta=(180/n); ax=(a/2)/tan(theta); by=a/2; union(){ for(i=[0:n-1]) { color("white") translate([0, 0, 0]) rotate([0,0,(i*360/n)]){ polyhedron( points = [ [ -a/10, 0, 0 ], [ ax, by, 0 ], ...
glb/cad_154ebd618ddd.glb
Create a 3D model of a crystallographic point group D6h hexagonal cell. The shape is a hexagonal prism with a total height of 40mm and a base edge length of 20mm. To construct this, create a single wedge-shaped volume defined by six vertices: the first three points form a triangle on the bottom face with coordinates (-...
echo(version=version()); a=20; c=40; n=6; theta=(180/n); ax=(a/2)/tan(theta); by=a/2; union(){ for(i=[0:n-1]) { color("white") translate([0, 0, 0]) rotate([0,0,(i*360/n)]){ polyhedron( points = [ [ -a/10, 0, 0 ], [ ax, by, 0 ], ...
glb/cad_4bd83d9e4640.glb
Create a Barbed Hose Wye consisting of three identical barbed arms that meet at a central junction. Each arm is a hollow cylinder with an inner diameter of 13.68mm (15mm minus a 1.31mm wall thickness) and an overall length of 30mm. For each arm, create a series of repeating barbs along the exterior. Each barb is a sh...
$fn = 90; hose_id = 15; wall_thickness = 1.31; barb_wall_thickness = 1; barb_spacing = 6; barb_section_length = 30; union() { translate([0, 0, -barb_section_length * 1.25]) barb(); rotate([40, 0, 0]) mirror([0, 0, 1]) translate([0, 0, -barb_section_length * 1.5]) barb(); rotate([-40, 0, 0]) mirror([0, ...
glb/cad_3624c6cf2035.glb
Create a Point Group T crystallographic model starting with a central cube that has an edge length of 30mm, centered at the origin. From this cube, remove six identical complex prism-shaped voids, one from each face, to create a symmetrical open structure. Each void is based on a specific prism geometry: a shape with...
echo(version=version()); a=30; i=2; di=0.01; module T_prism () { polyhedron( points = [ [ a/2+i, 0, 0 ], [ a/2+i, a/2+di, 0 ], [ a/2+i, a/2+di, -a/2-di ], [ a/2-i, 0, 0 ], [ a/2-i, a/2+di, 0 ], [ a/2-i, a/2+di, -a/2-di ...
glb/cad_d65ecb2215d7.glb
Create a 3D model of a Point Group T crystallographic cell. Start with a central cube with a side length of 30mm, centered at the origin. Construct a specific prism geometry to be used for the face features. This prism is defined by six vertices: (15, 0, 0), (15, 15, 0), (15, 15, -15), (13, 0, 0), (13, 15, 0), and (1...
echo(version=version()); a=30; i=2; di=0.01; module T_prism () { color("green") polyhedron( points = [ [ a/2, 0, 0 ], [ a/2, a/2+di, 0 ], [ a/2, a/2+di, -a/2-di ], [ a/2-i, 0, 0 ], [ a/2-i, a/2+di, 0 ], [ a/2-i, a/2+di, -a/2-di ]], faces = [ [0,1,2...
glb/cad_5ca5abc4c3e6.glb
Create a Point Group Td crystallographic cell by starting with a central cube that has a side length of 30mm, centered at the origin. From this cube, remove six identical rectangular prism indentations, one from the center of each face. Each indentation is a thin rectangular slab with a width of 14mm, a height of 14mm,...
echo(version=version()); a=30; i=2; di=0.01; module T_prism () { polyhedron( points = [ [ a/2-i, 0, 0 ], [ a/2+i, 0, 0 ], [ a/2+i, a/2+i, 0 ], [ a/2-i, a/2+i, 0 ], [ a/2-i, 0, a/2+di ], [ a/2+i, 0, a/2+di ], [ a/2+i, a/2+i, a/2+di...
glb/cad_295441f48852.glb
Create a 3D model of a crystallographic point group Td cell. Start with a central cube with an edge length of 30mm, centered at the origin. Construct a rectangular prism with dimensions 4mm by 34mm by 0.01mm. This prism is defined by a width of 4mm (from 13mm to 17mm on the x-axis), a length of 34mm (from -17mm to 17...
echo(version=version()); a=30; i=2; di=0.01; module T_prism () { color("green") polyhedron( points = [ [ a/2-i, 0, 0 ], [ a/2+i, 0, 0 ], [ a/2+i, a/2+i, 0 ], [ a/2-i, a/2+i, 0 ], [ a/2-i, 0, a/2+di ], [ a/2+i, 0, a/2+di ], [ a/2+i...
glb/cad_2b46c74a714d.glb
Create a Point Group O crystallographic model starting with a central cube that has an edge length of 30mm, centered at the origin. From this cube, remove material to create symmetrical indentations on all six faces. The indentations are formed by a specific prism shape. This prism is defined by a set of vertices: on...
echo(version=version()); a=30; i=2; di=0.01; module O_prism () { color("green") polyhedron( points = [ [ a/2+i, 0, 0 ], [ a/2+i, a/2+di, 0 ], [ a/2+i, a/2+di, -a/2-di ], [ a/2-i, 0, 0 ], [ a/2-i, a/2+di, 0 ], [ a/...
glb/cad_1b16c21b10d8.glb
Create a 3D model of a Point Group O crystallographic cell. Start with a central cube with a side length of 30mm, centered at the origin. Construct a specific prism element defined by six vertices: (17, 0, 0), (17, 15.01, 0), (17, 15.01, -15.01), (13, 0, 0), (13, 15.01, 0), and (13, 15.01, -15.01). This prism is used...
echo(version=version()); a=30; i=2; di=0.01; module O_prism () { color("green") polyhedron( points = [ [ a/2+i, 0, 0 ], [ a/2+i, a/2+di, 0 ], [ a/2+i, a/2+di, -a/2-di ], [ a/2-i, 0, 0 ], [ a/2-i, a/2+di, 0 ], [ a/2-i, a/2+di, -a/2-di ]], faces ...
glb/cad_049905131258.glb
Create a 3D model of a Point Group C2h crystallographic cell. The shape consists of two identical parallelepiped volumes joined together. First, construct a parallelepiped with a length of 50mm, a width of 40mm, and a height of 30mm. This volume should be skewed such that the top and bottom faces are parallelograms w...
echo(version=version()); a=50; b=40; c=30; gamma=110; i=2; alpha=90; beta=90; bx=b*cos(gamma); by=b*sin(gamma); union(){ color("white") translate([0, 0, 0]) polyhedron( points = [ [ i, 0, 0 ], [ a, 0, 0 ], [ a+bx/2, by/2, 0 ], [ bx/2+i, by/2, 0 ], [ i, 0, ...
glb/cad_86a225820d52.glb
Create a 3D model of a Point Group C2h crystallographic cell consisting of two identical mirrored polyhedrons. Each polyhedron is a skewed prism with a height of 30mm. The base of each prism is a parallelogram with a width of 50mm and a depth of 40mm, skewed at an angle of 110 degrees. To construct the first part, cr...
echo(version=version()); a=50; b=40; c=30; gamma=110; i=2; alpha=90; beta=90; bx=b*cos(gamma); by=b*sin(gamma); union(){ color("green") polyhedron( points = [ [ a+bx/2-i, by/2, 0 ], [ a+bx/2, by/2, 0 ], [ a+bx, by, 0 ], [ a+bx-i, by, 0 ], [ a+bx/2-i, by/2, c ], [ a+...
glb/cad_1bae3745c568.glb
Create a parametric funnel with a wall thickness of 1.1mm. Start with a base rim that is a cylinder 120mm in diameter and 5mm high. On top of this rim, add a conical section that transitions from a 120mm diameter down to a 20mm diameter over a height of 60mm. Above that, add a second conical section that transitions fr...
$fa = 2; $fs = 0.5; wall_thickness = 1.1; large_outer_dia = 120; neck_outer_dia = 20; tip_outer_dia = 14; rim_height = 5; upper_height = 60; spout_height = 60; difference(){ union(){ cylinder(d=large_outer_dia, h=rim_height); translate([0,0,rim_height]) cylinder(d1=large_outer_dia, d2...
glb/cad_ece4380cb730.glb
Create a Parametric Flexible Z Coupler with a total length of 32mm and a diameter of 30mm. The overall body is a 5-sided polygonal prism. Construct the coupler in five sequential segments along its central axis. Start with a solid 10mm long 5-sided polygonal end section. Follow this with a 10mm long spring section th...
include <configuration.scad> module spring(rad,h,s,tw,d){ shiftR = 8*rad*d/3; intersection(){ linear_extrude(height=h+10) circle(r=rad,$fn=s); linear_extrude(height=h, twist=360*tw) difference(){ translate([rad,0,0]) circle(r=shiftR); translate([-1.2*(shiftR-rad),0,0]) square([1.333*(shiftR-rad),100]); } } } spring...
glb/cad_839b6c497b1b.glb
Create a 14500 Li-Ion charger enclosure. Start with a rectangular base block with a total height of 12.1mm (calculated from battery diameter 14.2mm * 0.85). Carve out a main rectangular cavity for the TP4056 charger module measuring 25.4mm in length and 19.6mm in width, starting 1mm from the front wall. At the front ...
BATTERYCONTACTS = true; BCWT = 0.8; BCWO = 1.4; BCPW = 10.2; BCPH = 9.2; BCPT = 0.6; BCPPW = 3.0; BCPST = 1.0; BCNW = 10.2; BCNH = 9.2; BCNT = 0.6; BCNPW = 3.0; BCNST = 3.0; CBLB = 50.0; CBD = 14.2; CTH = 6.0; CTD = 0.4; CTFYC = 0.0; CTYO = 2.8; CTF = "Arial:style=Black"; CBTH = 5.0; CBTD = 0.4; CBTF = "Arial:style=...
glb/cad_3cebf7ffe973.glb
Create a Venetian blinds repair hook consisting of a cylindrical base and an attached hook. First, construct the base as a hollow cylinder with an outer diameter of 10.8mm and a height of 4.8mm. The interior cavity should be 2.8mm high with a tapered bottom, narrowing from a diameter of 8.4mm at the top to 8.0mm at t...
INCLUDE_SUPPORTS = true; BID = 8.0; BIDB = BID + 0.4; BIH = 2.8; BVWW = 1.4; BHWW = 2.0; SW = 0.4; HTH = 10.0; HW = 6.8; HCW = 3.0; $fn = 36*1; HSH = (HTH-HCW)/2; module Base() { translate([0, 0, -(BIH+BHWW)/2]) { difference() { cylinder(d=BID+2*BVWW, h=BIH+BHWW, center=true); t...
glb/cad_4f18746994fb.glb
Create a Venetian blinds repair clip consisting of a base plate and a vertical cylindrical tube. Start with a rectangular base that is 15mm long, 8.6mm wide (4.6mm pad thickness plus two 2mm vertical walls), and 1mm thick. Centered on this base, create a vertical tube with an outer diameter of 3mm and a total height ...
TERMINATOR = true; PW = 4.6; VWW = 2.0; HWW = 1.0; TD = 3.0; TBRR = 1.0; TTH = 7.2; TTWX = 4.0; TTSX = 6.0; PX = 3.0; PZ = 2.0; PVSW = 0.4; VWH = 10.0; BL = 15.0; TED = 5.0; TEH = 1.8; $fn = 36*1; module torus_cu(r=10, fr=2) { translate([0, 0, fr]) rotate_extrude(angle = 360, convexity = 2) difference() ...
glb/cad_6d2c15978998.glb
Create a Terraforming Mars Player Mat Overlay consisting of two grid trays. First, create a large rectangular grid tray. The tray should have a total height of 2.4mm. The outer walls should be 0.9mm thick. The base of the tray should feature a 1.2mm chamfer on the bottom edges. The tray contains a 6 by 3 array of squ...
allowance_x = 0.0; allowance_y = 0.0; chamfer_x = 0.2; chamfer_y = 0.2; chamfer_z = 1.2; module grid(x, y) { square = 8.4; height = 2.4; strut = 0.9; xextra = 1.1; width = x * (square + strut) + strut + xextra; depth = y * (square + strut) + strut; points = [ [ 0 + allowa...
glb/cad_30f0485561cf.glb
Create an SD card holder designed to mount to a 2020 extrusion. Start with a main rectangular body measuring 36mm wide, 30mm deep, and 25mm high. Carve out five vertical slots for SD cards, each 4mm wide and 20mm deep, spaced 7mm apart. The slots should be centered along the width, with the outermost slots being 5mm de...
sdh = 20; sdw = 25; sdt = 4; screw5 = 5.6; head5 = 10.5; rotate ([-90,0,0]) sd(); module sd() { difference() { cube([4*(sdt+5),sdw+5,sdh+5],true); translate([-14,0,5]) cube([sdt,sdw,sdh+5],true); translate([-7,0,7]) cube([sdt,sdw,sdh+5],true); translate([0,0,9]) cube([sdt,sdw,sdh+5],true); translate([7,0...
glb/cad_dfa93b8d2732.glb
Create a C240 Buckyball support structure. Start by constructing a grid of six rectangular prisms. Position three prisms of size 0.5mm x 20mm x 8mm centered at coordinates [-4, 0, 0], [0, 0, 0], and [4, 0, 0] along the X-axis. Add three more prisms of the same dimensions, but oriented along the Y-axis, centered at [0, ...
mark = 1; if (mark==1) support_01(); else if (mark==2) support_02(); else if (mark==3) support_03(); module support_01() { difference() { union() { for ( i = [ [-4,0,0], [0,0,0], [4,0,0], ]) { translate(i) stripe(.5,...
glb/cad_e6460e96557e.glb
Create a Bed Level Tester flying ring. The object is a flat, closed-loop ring with a total outer diameter of 200mm. The ring is composed of three identical arms joined at the corners. Each arm consists of a straight section 140mm long and 30mm wide, connected by a rounded corner with a radius of 80mm. The cross-secti...
size = 100; corner_size = 80; ring_width = 30; $fn=100; for (i = [0:3]){ rotate([0,0,90*i]) arm(); } module arm() { translate([size,size-corner_size,0]) rotate([90,0,0]) linear_extrude((size - corner_size)*2) profile(); translate([size-corner_size,size-corner_size,0]) intersection(){ ...
glb/cad_2165be094631.glb
Create a Pass the SALT 2018 token. Start by creating a base cylinder with a diameter of 20mm and a height of 1mm. On top of this base, add a second, thinner cylindrical ring with a height of 0.4mm and an outer diameter of 20mm, but with a hollow center of 18.4mm to create a raised rim. Centered within this rim, plac...
fudge = 0.1; module poly_path4579(h) { scale([25.4/90, -25.4/90, 1]) union() { linear_extrude(height=h) polygon([[20.057410,-118.222006],[17.419943,-117.906765],[14.997361,-116.929883],[12.910084,-115.359381],[11.278533,-113.263277],[10.255872,-110.811793],[9.914985,-108.222006],[10.255872,-105.632218],[...
glb/cad_1b6a77f510b8.glb
Create a curtain piece consisting of a rectangular base with a cylindrical cutout and a mounting hole. Start by forming a main body from two joined rectangular prisms: one centered block measuring 46mm x 18mm x 46mm and an adjacent block measuring 50mm x 18mm x 46mm, resulting in a total combined footprint of 96mm in l...
difference(){ union(){ cube([36+10,36/2,36+10],center=true); translate([(36/2)+(50/2),0,0]) cube([50,36/2,36+10],center=true); } rotate([90,0,0]) cylinder(r=36/2,h=20,$fn=100,center=true); translate([20,0,20]) cube([36+50,36/2,36+10],center=true); translate([80,0,10]) rotate([0,90,0]) cylinder(r=6/2,h=...
glb/cad_2882459c9f2f.glb
Create a curtain piece consisting of a rounded block with a central hole and a separate rectangular spacer. First, construct the main block by taking a cube with dimensions 56mm x 30mm x 56mm and applying a 4mm fillet to all edges. Bore a cylindrical hole through the center of the block along the Y-axis with a diamet...
diametroEjeCortinero=36; gruesoExternoGancho=10; gruesoPieza=30; redondeoPieza=4; distanciaCentroEjeApared=70; difference(){ minkowski(){ cube([diametroEjeCortinero+(2*gruesoExternoGancho),gruesoPieza,diametroEjeCortinero+(2*gruesoExternoGancho)],center=true); sphere(r=redondeoPieza,$fn=100); ...
glb/cad_8aadb1c36a4e.glb
Create a parametric drain plug with a base radius of 15.5mm and a total depth of 7mm. The main body is a tapered cylinder that starts with a bottom radius of 14.5mm and widens to a top radius of 16.5mm over its 7mm height. At the top of this tapered body, add a flat circular cap with a radius of 18.87mm and a thickness...
od = 31; module drainplug(radius, depth, variance, perforations, handle, fineness) { difference() { union() { translate([0,0,depth - 0.5]) cylinder(r=1.22 * radius, h=3,$fn=fineness); cylinder(r1=radius - variance, r2=radius + variance, h=depth,$fn=fineness); } difference() { union() { if (perfo...
glb/cad_93606ebc8841.glb
Create an adjustable flow drip irrigation nozzle fitting consisting of three cylindrical arms meeting at a central junction. Each arm is a barbed connector designed for a hose with an inner diameter of 6.5mm and an outer diameter of 9.5mm. Construct each arm by creating a series of stacked conical sections to form th...
$fn = 90; hose_id = 6.5; hose_od = 9.5; swell = 2.5; id = 3; drip_id = 1.75; ezprint = true; difference() { union() { barb(swell = 0, shell = true, bore = false); rotate([0, 180 + 60, 180]) barb(shell = true, bore = false); rotate([0, 180 + 60, 0]) barb(shell = true, bore = false); ...
glb/cad_c086bbf6cb08.glb
Create an adjustable flow drip irrigation nozzle fitting. Start by constructing a Y-shaped junction consisting of two identical barbed cylinders meeting at a 120-degree angle. Each barb should have an outer diameter of 9.5mm and an inner bore of 3mm. The junction is formed by the union of these two barbs and a connecti...
use <Drip_Wye.scad>; $fn = 90; hose_id = 6.5; hose_od = 9.5; swell = 2.5; id = 3; drip_id = 1.75; ezprint = true; difference() { union() { barb(swell = 0, shell = true, bore = false); rotate([0, 180 + 60, 0]) barb(shell = true, bore = false); hull() { intersection() { ...
glb/cad_893782328ad3.glb
Create a wall-hook designed for helmets. Start with a main body that is 8mm wide and 8mm thick. The primary shape is a curved hook with an outer radius of 28mm and an inner radius of 24mm. This curved section transitions into a flat rectangular base that extends back toward the wall. The total height of the mounting se...
width=8; thick=8; rad=26; roundrad=3.5; height=40; theight=15; roundsegs=12; sthick=thick-roundrad*2; wall_hook(); module wall_hook() { difference(){ translate([0,0,0.5]) minkowski(){ union() { difference() { cylinder(h=width-1, r=rad+sthick/2); translate(v=[0,0,-1]) cylinder(h=width+1, r=rad-sthic...
glb/cad_a01bea988cc7.glb
Create a Mighty Empire Parametric Blank Tile. Start with a regular hexagonal prism that has a flat-to-flat width of 60mm and a total height of 5.5mm. Hollow out the center of the hexagon by removing a smaller hexagonal prism from the top, leaving a base and an outer wall that is 2mm thick and 2mm high. On three altern...
$fn=24; tile_width = 60; tile_height = 5.5; tile_wall_thickness = 2; tile_wall_height = 2; tab_angle = 20; tab_width = 4.5; banner_dia = 2; opt_banner_hole = true; comp_tab_width = 0.5; comp_tab_length = 0.2; comp_hole = 0.5; me_blank(); module me_blank() { union() { difference() { hex(tile...
glb/cad_6d18eb4e959f.glb
Create a metric thread template consisting of a hexagonal base and a threaded bolt. First, construct a hexagonal prism with a height of 4mm and a diameter of approximately 11.55mm (calculated as 20 divided by the square root of 3, then multiplied by 2). Position this hexagon centered at the origin. Second, create a thr...
module bolt(msize, pitch, length) { H = pitch*sqrt(0.75); union () { intersection () { linear_extrude(height=length, twist = -360*length/pitch) translate([H/2,0,0]) circle(d = msize - H*3/4); cylinder(h=length, d=msize); } cylin...
glb/cad_4c19bc271444.glb
Create a bike helmet mirror holder by constructing a hull between two cylinders. The first cylinder has a radius of 15.5mm and a height of 4mm. The second cylinder, positioned 28mm away from the center of the first along the x-axis, has a radius of 7mm and a height of 8mm. From this combined solid, remove two cylindric...
rotate([180, 0, 0]) difference(){ hull(){ linear_extrude(height=4){ circle(r=15.5, $fn=50); }; translate([28, 0, 0]){ linear_extrude(height=8){ circle(r=7.0, $fn=50); } } } linear_extrude(height=10){ translate([28, 0...
glb/cad_968be5e7fc95.glb
Create a specialized chainguide roller and two accompanying bearing drifts. For the roller, construct a tiered cylindrical body. Start with a base cylinder 38mm in diameter and 2.25mm high. On top of this, add a second cylinder 35mm in diameter and 8mm high. Add a third cylinder 31mm in diameter and 8mm high. Transit...
; edge_diam = 38; edge_width = 2.25; outer_roller_diam = 31; outer_roller_width = 8; inner_roller_diam = 35; inner_roller_width = 8; inner_bearing_depth = 7.5; outer_bearing_depth = 10; bearing_diam = 22.5; bearing_step_diam = 19.5; bearing_drift_length = 10; bearing_drift_thickness = 5; bearing_drift_lip = 2; be...
glb/cad_090e0a552bd3.glb
Create a specialized chainguide roller consisting of a central pulley and two bearing drifts. For the pulley, start with a base cylinder 38mm in diameter and 2.25mm high. On top of this, add a second cylinder 35mm in diameter and 7mm high. Create a transition ramp that connects the top of the second cylinder to a thi...
; edge_diam = 38; edge_width = 2.25; outer_roller_diam = 31; outer_roller_width = 7; inner_roller_diam = 35; inner_roller_width = 7; roller_ramp_width = 1.5; inner_bearing_depth = 7.5; outer_bearing_depth = 10; bearing_diam = 22.5; bearing_step_diam = 19.5; bearing_drift_length = 10; bearing_drift_thickness = 5; ...
glb/cad_f6630222fc0a.glb
Create a 3D rock by generating a convex hull around 20 randomly positioned points. Each point should be defined as a sphere with a radius of 1.5mm. Position these spheres at random distances from the center, ranging between 10mm and 25mm. To determine the location of each sphere, apply random rotations across the X, Y,...
$fn=10; count=20; mn=10; mx=25; r=1.5; x=1; y=1; z=1; a1=0; a2=360; b1=0; b2=360; c1=0; c2=360; lol=Hello_World; rand=rands(mn,mx,count); echo(rand); rand2=rands(a1,a2,count); echo(rand2); rand3=rands(b1,b2,count); echo(rand3); rand4=rands(c1,c2,count); echo(rand4); sc...
glb/cad_3d9499a1a8ef.glb
Create a hose barb connector with a central bore. The object is built around a central axis with a total height of 14.5mm. Start by creating a hollow cylinder with an inner diameter of 5.38mm and an outer diameter of 8mm. The structure begins with a base cylinder 2mm high and 8mm in diameter. Above this base, add thr...
$fn = 90; hose_od = 9.5; hose_id = 8; swell = 2; wall_thickness = 1.31; barbs = 3; barb_length = 2; shell = true; bore = true; ezprint = false; barb(hose_od = hose_od, hose_id = hose_id, swell = swell, wall_thickness = wall_thickness, barbs = barbs, barb_length = barb_length, shell = shell, bore = bore, ezpri...
glb/cad_8241ddd75302.glb
Create a Geoclimbing Coin Stand starting with a rectangular base measuring 120mm wide, 15mm deep, and 9mm high. On top of this base, add three identical coin slots. Each slot consists of a 15mm wide by 2mm deep by 14mm high vertical block centered on a 40mm wide by 2mm deep by 1mm high horizontal ledge. Position these ...
$fn=50; translate([-60,-7.5,0])podium(1); translate([-60,-7.5,0])podium(0); module podium(UseSockel) { difference() { union() { cube([120,15,9]); translate([40,0,9])cube([40,15,20]); translate([80,0,9])cube([40,15,10]); translate([0, 0,9])CoinStand(); translate([40,0,9+20])C...
glb/cad_e5dc9a7e5d66.glb
Create an Xperia Z1 mount baseplate by starting with a solid rectangular block measuring 79mm wide, 149mm high, and 14mm deep. Hollow out the center of this block to create a phone cavity that is 75mm wide, 145mm high, and 8mm deep, leaving a wall thickness of 2mm on all sides. The floor of this cavity should be recess...
phone_width = 75; phone_height = 145 + 1; phone_depth = 10; headphone_gap = 15; charger_gap = 55; right_side_mount_pos_start = 30; right_side_mount_pos_end = 55; right_side_cutout_width = 20; top_right_corner_height = 6; overlap_size = 5; thickness = 2; module generate_phone_box() { cube (size = [phone_width+th...
glb/cad_00ebd02214f7.glb
Create a PIR Sensor Box consisting of a main enclosure, a cover, and a separate sensor tube. For the main box, create a hollow rectangular shell with inner dimensions of 32.5mm x 26mm x 14.5mm and a wall thickness of 2mm. Round the exterior corners. On the back wall, add a rectangular cable hole measuring 1mm by 2mm. ...
$fn = 30; UseFresnelLens = 0; SensorHoleDiameter = UseFresnelLens ? 23.0 : 8.5; WallThickness = 2; InnerSizeX = 32.5; InnerSizeY = 26.0; InnerSizeZ = UseFresnelLens ? 17.00 : 14.5; ClipLength = 10; ClipHeightZ = 6; PotentiometerHoleTimeX = -6.25; PotentiometerHoleSensitivityX = 1.75; PotentiometerHoleZ = 3.5; Pote...
glb/cad_8887bb6732f1.glb
Create an iSight Tripod mount by constructing a main body that is a hull formed between two rounded rectangular profiles. The first profile is a 20mm by 8mm rectangle with 2mm radius rounded corners. The second profile is an identical 20mm by 8mm rectangle with 2mm radius rounded corners, positioned 25mm away along the...
use <threads.scad> mc_x=20; mc_y=8; $fn=50; module structure() { hull() { minkowski() { cube([mc_x,mc_y,1]); cylinder(r=2,h=1); } translate(v= [25, 0, -30]) { minkowski() { cube([mc_x,mc_y,1]); cylinder(r=2,h=1); } } } } module fw_ends() { translate(v =[4, -.70, -28.5]) { color(...
glb/cad_13decf36ede6.glb
Create a stylized volcano model composed of 90 thin, vertical rectangular strips arranged in a circular pattern. Each strip should be 2mm wide and have a height and length that varies slightly due to a random resize factor between 60% and 100% of the base radius, which is 20mm. Position these strips such that they ar...
volcano_base_radius=20; volcano_strip_width_percent=.1; volcano_strips_angle=4; volcano_inner_percentage=.35; random_resize_percentage=.6; volcano_strip_width=volcano_base_radius*volcano_strip_width_percent; hexmapradius=82/2; module octogon(type) { if (type=="map") { cylinder(r=hexmapradius,h=1,$fn=6); } ...
glb/cad_ed972b163b4d.glb
Create a customizable text die by starting with a sphere with a diameter of 41.2mm. Hollow out the center of this sphere by removing a 30mm cube centered within it, but leave the outer shell intact where it intersects with the sphere's surface. On each of the six faces of the internal cubic void, embed text that is rec...
side1 = "side1"; side1_scale = [0.75, 1, 1]; side2 = "side2"; side2_scale = [0.75, 1, 1]; side3 = "side3"; side3_scale = [0.75, 1, 1]; side4 = "side4"; side4_scale = [0.75, 1, 1]; side5 = "side5"; side5_scale = [0.75, 1, 1]; side6 = "side6"; side6_scale = [0.75, 1, 1]; depth = 2; dicefont = "Franklin Gothic Medi...
glb/cad_b48edfeac916.glb
Create a parametric card box consisting of a main body and a lid. The interior dimensions are designed to fit a card deck of 91mm height, 59mm width, and 33mm depth, with 1mm of wiggle room added to the interior hollow. For the main body, create a rounded rectangular shell with an outer dimension of 93mm x 35mm x 61mm...
part = "both"; card_height = 91; card_width = 59; deck_depth = 33; outside_corner_radius = 2.0; inside_corner_radius = 1.0; wall_thickness = 2.0; inset_depth = 1.0; inset_bevel_width = 4.0; card_edge_reveal = 20.0; lid_lip_depth = 6; lid_snap_depth = 3; snap_box_tab_width = 20; snap_box_tab_height = 1; sn...
glb/cad_50b2655c7966.glb
Create two identical accessory brackets for a transceiver back panel. For each bracket, start with a rectangular base plate measuring 24.6mm by 20.9mm with a thickness of 1mm. Centered on top of this base plate, add a smaller rectangular block measuring 19.6mm by 15.9mm with a height of 1.7mm. Finally, bore a circular ...
holed = 10.05 ; difference () { union () { cube ([24.6, 20.9, 1], center=true) ; translate ([0, 0, 1]) cube ([19.6, 15.9, 1.7], center=true) ; } translate ([0, 0, -1]) cylinder (h = 6, r = holed * 0.5) ; } difference () { translate ([0, -24, 0]) cube ([24.6, 20.9...
glb/cad_9152931aa1dc.glb
Create a TinkeySpoolHolder by constructing two identical rounded rectangular blocks and joining them at a central point. Each block must be 20mm long, 15mm wide, and 15mm high, with the ends rounded to a radius of 7.5mm. Through the center of each block, create a cylindrical hole with a diameter of 8.5mm that passes ...
holeDiameter = 8; tolerance = 0.5; vertexHeight = 15; vertexWidth = 15; vertexLength = 20; vertexAngle = 150; useMaterialSubtraction = false; difference() { union() { difference() { roundedRect(vertexLength, vertexWidth, vertexHeight); translate(v = [vertexLength/2+4, 0, 0]) rotate(a = 90, v = [1, 0, 0]...
glb/cad_537c3db27274.glb
Create a TinkeySpoolFoot by combining a sphere and a cylinder to form a capped peg, then removing a central hole. Start by centering a sphere with a radius of 9mm. Attach a cylinder to the bottom of the sphere with a radius of 9mm and a height of 15mm, ensuring the cylinder's top face is flush with the sphere's center....
mDiameter = 8; mTolerance = 0.0; mHeight = 15; rotate(a = 180, v = [0,1,0]) TinkeySpoolFoot(mDiameter, mHeight, mTolerance); module TinkeySpoolFoot(holeDiameter, height, tolerance) { difference() { union() { translate(v = [0,0,0]) sphere(r = holeDiameter/2 + 5, $fn=40); translate(v = [0,0,0]) cyl...
glb/cad_398d303d06ec.glb
Create a customizable internal size box and lid. For the box, create a rounded rectangular shell with an outer width of 16.9mm and length of 26.9mm. The main body should have a wall thickness of 1.6mm and a bottom thickness of 1.2mm. The total height of the box is 48.5mm, but the top 6mm consists of a thinner inner lip...
show_box=1; show_lid=1; size_tol=0.5; fit_tol=0.6; int_width=16.4; int_length=26.4; int_height=48.5; top_bottom_thickness=1.2; wall_thickness=1.6; lid_height=4; lip_height=6; lip_thickness=0.5; ep=0.002; int_wid=int_width+size_tol; int_len=int_length+size_tol; int_hi=int_height+size_tol; corner_rad=wall_thic...
glb/cad_b20fe86b21b9.glb
Create a dial indicator holder starting with a main rectangular platform measuring 56mm wide, 85mm long, and 10mm thick. On the top surface, center a vertical hole with a diameter of 9.6mm that passes completely through the platform and extends 11.25mm below the bottom face to create a reinforcement collar. On the und...
numberOfMagnets = 4; holderWidth = 56; dialGaugeCollarDiameter = 9.6; magnetDiameter = 12; magnetThickness = 1; magnetXInset = 5; holderLengthOverhang = 3.5; holderPlatformThickness = 10; xRodDiameter = 8 + 0.3; xRodsDistance = 78.5; dialGaugeCollarReinforcementDiameter ...
glb/cad_351633e424f4.glb
Create a rounded icosahedron by generating the convex hull of twelve spheres, each with a radius of 5mm. Position these spheres at the vertices of a regular icosahedron where the distance from the center to each vertex is determined by an edge length of 40mm. Specifically, place the spheres at the following coordinates...
Edge_length=40; Resolution=45; Corner_radius=5; phi=(1 + sqrt(5)) / 2; $fn=Resolution; s=Edge_length/2-Corner_radius/1.5; r=Corner_radius; s2=s*phi; hull(){ translate([s,0,s2]) sphere(r); translate([s,0,-s2]) sphere(r); translate([-s,0,s2]) sphere(r); translate([-s,0,-s2]) sphe...
glb/cad_7622825b13fc.glb
Create a Bed Leveling Calibration Test Object consisting of a grid of small, thin square frames. The overall printable area is 230mm by 230mm. Each individual element in the grid is a square frame with an outer dimension of 22mm and a thickness of 0.2mm. These frames are created by taking a solid cube of 22mm x 22mm x...
X_MAX_LENGTH = 230; Y_MAX_LENGTH = 230; THICKNESS = 0.2; PRESET = "all"; GRID_1_1 = 1; GRID_2_1 = 1; GRID_3_1 = 1; GRID_4_1 = 1; GRID_5_1 = 1; GRID_1_2 = 1; GRID_2_2 = 1; GRID_3_2 = 1; GRID_4_2 = 1; GRID_5_2 = 1; GRID_1_3 = 1; GRID_2_3 = 1; GRID_3_3 = 1; GRID_4_3 = 1; GRID_5_3 = 1; GRID_1_4 = 1; GRI...
glb/cad_a7f204d7ecfd.glb
Create a panel-mount connector for an N64 controller adapter. Start by constructing a central cylindrical body with a radius of 11mm and a total height of 18mm. The base of this body is a cylinder with a radius of 11mm and a height of 16mm, topped with a 2mm tall frustum that tapers from a radius of 11mm at the bottom ...
use <MCAD/boxes.scad> union() { difference() { union() { translate([0,0,1])roundedBox([38,14,2],3,true,$fn=30); translate([0,0,0])cylinder(r=22/2,h=16,$fn=70); translate([0,0,16])cylinder(r1=22/2,r2=10,h=2,$fn=70); } difference() { translate([0,0,-1])cylinder(r=18/2,h=12); translate([-15,18/2-4,0])cube([30,10,30])...
glb/cad_43528a6c9b98.glb
Create an OpenRC Truggy Hex Hub by combining a hexagonal prism and a cylinder. Start with a hexagonal prism that has a diameter of 13.4mm and a height of 8.5mm. Centered on top of this prism, add a smooth cylinder with a diameter of 7.5mm and a height of 9.5mm, which will extend slightly above the hexagonal base. Final...
difference() { union() { cylinder(d=13.4,h=8.5,$fn=6); cylinder(d=7.5,h=9.5,$fn=100); } difference() { cylinder(d=5.4,h=9.5,$fn=100); translate([2.0,-3,0]) cube([2,6,9.5]); } }
glb/cad_29f97c5b704c.glb
Create an OpenRC Truggy Hex Hub by combining a hexagonal prism and a cylinder. Start with a hexagonal prism that has a diameter of 13.4mm and a height of 8.5mm. Attach a cylinder to this prism with a diameter of 7.5mm and a height of 9.5mm, centered on the same axis. From this combined solid, remove a central vertica...
difference() { union() { rotate([0,0,90]) { cylinder(d=13.4,h=8.5,$fn=6); cylinder(d=7.5,h=9.5,$fn=100); } } difference() { cylinder(d=5.4,h=9.5,$fn=100); translate([2.0,-3,0]) cube([2,6,9.5]); } translate([0,0,4.25]) rot...
glb/cad_2d9cbb05c6d5.glb
Create a 4-channel MOSFET standoff plate. Start with a central rectangular base plate measuring 70mm by 70mm with a thickness of 1mm. At each of the four corners of the plate, positioned 30mm from the center along both the X and Y axes, place a cylindrical standoff. Each standoff should have an outer diameter of 6mm ...
use <MCAD/shapes.scad> $fn = 50; w = 30; difference(){ union(){ translate([0,0,0.5]) cube([2*w+10,2*w+10,1], center=true); translate([w,w,0]) standoff(); translate([w,-w,0]) standoff(); translate([-w,w,0]) standoff(); translate([-w,-w,0]) standoff(); } union(){ ...
glb/cad_bdfcb6e46afd.glb
Create a ShelterLogic 802916 Pole Base Plate. Start with a circular base plate with a radius of 46mm and a thickness of 7mm. Centered on this base, add a vertical cylinder with a radius of 23mm and a height of 47mm. To reinforce the joint between the base and the cylinder, add a tapered transition cylinder with a botto...
isHeavyDuty = true; plate_r = 92/2; plate_t = 7; tube_r = isHeavyDuty ? 23 : (41/2); hook_w = 13; hook_h = 27; hook_l = 11; module hook() { bs = 6; rotate(45 + 90 + 180) union() { translate([-hook_w/2, tube_r-2, 0]) cube([hook_w, hook_l, hook_h]); color("green") ...
glb/cad_48e8b7085286.glb
Create a soap dish with a base measuring 120mm by 70mm and a thickness of 4mm. The base should have rounded corners with a radius of 25mm. The main floor of the dish is a recessed tray with a 4mm wall and a 3mm lip, leaving an internal cavity of 112mm by 62mm. Fill this cavity with a hexagonal honeycomb pattern where e...
wall = 4; mount_above_shelf = true; b_length = 120; b_width = 70; b_radius = 25; b_lip = 3; h_honeycomb_width = 2; ba_height = 45; s_key_l = 15; s_key_s = 10; s_radius = 25; s_shaft_length = 3; s_height = 3; s_third_point = false; c_length = b_length - 2*wall; c_width = b_width - 2*wall; c_radius = b_radius - wall;...
glb/cad_36758a655d1d.glb
Create a two-part replacement rivet consisting of a base cap and a mating peg. First, create the base cap as a flattened sphere with a diameter of 14mm and a height of 1.5mm. In the center of this cap, remove a vertical hole. This hole begins with a cylindrical section 3.75mm in diameter for a height of 2.5mm, follow...
$fn = 90; nozzle_diameter = 0.4; translate([15, 0, 2.75 / 2]) rotate([-90, 0, 0]) intersection() { rivet(); difference() { union() { translate([0, 0, -1.5]) cylinder(d1 = 5.5, d2 = 3.75, h = 1.5); cylinder(d = 3.75, h = 10); } translate([-5.5 / 2, 2.75 / 2, -1.5...
glb/cad_20e72948ee5b.glb