Prompt stringlengths 38 2.2k | Code stringlengths 7 5.77M | 3d_glb stringlengths 24 24 |
|---|---|---|
Create a curved mounting arm for a camera holder. Start with a base plate that is 5mm thick. The overall footprint of the arm is defined by the intersection of two concentric ellipses and a rectangle. The outer boundary is an ellipse 120mm wide and 200mm tall, while the inner cutout is an ellipse 70mm wide and 170mm ta... | module x(dim, N) {
for(i=[0:N-1])
let(w = 186+i*50/N + .75*i*i)
translate([dim[0]*cos(w), dim[1]*sin(w)]) children();
}
outer=[120,200];
inner=[70,170];
quarter=[70,110];
mid=[47.5,92.5];
hole=[15,10];
num_holes=7;
translate([-outer[0]/2,0,0]) difference() {
translate([0.01,-2.5,0.01]) cube(... | glb/cad_fc9343948fdb.glb |
Create a RAMPS Enclosure v2 lid by starting with a rectangular base measuring 69.2mm in length, 128.2mm in width, and 11.4mm in height. Hollow out the center of this block to create a shell with a wall thickness of 2mm.
On the top surface, center a large circular opening with a diameter of 38mm. Around this central h... | cone_A = 32;
T1 = 0.3;
D1 = 40;
D2 = 13.4;
H1 = (D1 - D2) / 2 / tan(cone_A);
D3 = D2 + 1.1;
H3 = 3;
TH = box_H + H1 + H2;
echo("Cone height @ ", cone_A, " is ", H1);
echo("Total height: ", TH);
dick = 1+1;
breit=126.20+2;
hoch=11.4;
lang=67.20+2;
difference() {
translate([0,0,0])
cube([lang,breit,hoch]);
transl... | glb/cad_ec7c86828b83.glb |
Create a BSP to J Head adapter. Start with a rectangular base 70mm long, 10mm thick, and approximately 16.5mm wide, with rounded corners of 10mm radius. Center a vertical cylindrical mount on the base.
The mount consists of a main shaft with a total height of 12mm. The top section of this mount is a cylinder with a di... | include <MCAD/boxes.scad>
$manifoldOverlap = .0001;
$scalor = .618;
bspDia = 10.5;
bspShaftWall = bspDia*$scalor;
bspThreadLength = 6;
bspScrewBlock = 4;
baseThickness = 10;
baseLength = 70;
mountHoleOffset = 50;
jheadHotEndDiameter=16;
jheadHotEndHeight=4.8;
jHeadFuzz=.25;
filamentFeedHoleDia=3;
filamentFeedTaper... | glb/cad_31382650d5db.glb |
Create an Orca 0.4x Toolholder consisting of a base plate and several integrated tool slots. Start with a base plate 125mm wide, 50mm high, and 3mm thick, with rounded corners (4mm radius). On the underside of the base, add two mounting holes with a radius of 2.125mm, positioned 85mm from the center.
On the top surfac... | holder_w = 125;
holder_h = 50;
holder_d = 3;
shaft_r = 4.25;
micrometer_w = 17.6;
micrometer_h = 8;
micrometer_d = 17;
micrometer_s_w = 16;
micrometer_s_h = 13;
micrometer_s_d = 12;
micrometer_w_o = 45;
micrometer_h_o = 30;
tweezers_w = 10;
tweezers_h = 3;
tweezers_d = 10;
spanner_w = 20;
spanner_h = 23;
spanner... | glb/cad_5055f7e588cc.glb |
Create two Polargraph motor mounts. Each mount is a bracket designed to hold a stepper motor with a width and height of 43mm and a depth of 33.5mm.
The main body is a U-shaped bracket with a wall thickness of 4mm. The base is a flat plate 43mm wide and 43mm deep, with a central circular cutout of 16.5mm radius to acc... | sp = 0.5;
cl = 0.25;
fn = 32;
th = 4;
mh = 3;
* % cube([100,100,1],center=true);
module 3mnut(xsp=sp)
{ cylinder(r=2.7+xsp/2,h=2.4+xsp*2,$fn=6,center=true); }
module 3mbolt(xsp=sp,xh=16)
{
cylinder(r=5.47/2,h=2.94,$fn=fn);
cylinder(r=2.98/2,h=2.94+xh,$fn=fn);
}
smw = 42.5+sp;
smh = 42.5+sp;
smd = 33+sp;
smhd = ... | glb/cad_e752f7ff3088.glb |
Create a parametric filament spool bushing. Start by constructing a main hollow cylinder with an outer diameter of 31mm and an inner diameter of approximately 27.22mm, extending to a height of 13mm. Attach a wider, shorter flange to the base of this cylinder; this flange should have an outer diameter of 38.4mm and a he... | spool_hole=32;
rod_hole=8;
retainer_height=13;
resolution=50;
lip_height=3;
bushings=1;
module bushing(){
difference(){
union(){
difference(){
cylinder(r1=spool_hole/2-0.5,r2=spool_hole/2-1,h=retainer_height,$fn=resolution);
cylinder(r=spool_hole/2-spool_hole/18-0.5,h=retainer_height,$fn=resolution);}
... | glb/cad_f2aa785a95f5.glb |
Create a rocket model based on a scale of 20mm. Start with a central body composed of three stacked cylindrical sections: a base cylinder 20mm high with a bottom radius of 5mm and a top radius of 6.67mm; a middle cylinder 10mm high with a bottom radius of 6.67mm and a top radius of 5.71mm; and a long upper cylinder 27.... | module wing(scale=10) {
rotate([90,0,0])
linear_extrude(height = scale*0.02, center = true)
polygon(points=[[0,0],[0,scale],[scale*0.7,scale*0.7],[scale,0]]);
}
module rocket(scale=10) {
rotate([0,0,0])
wing(scale);
rotate([0,0,90])
wing(scale);
rotate([0,0,180])
wing(scale);
rotate([0,0,270])
wing(scale... | glb/cad_0a3b425c9c63.glb |
Create a 3D fractal object based on a recursive geometric replacement of faces. Start with a base square of 100mm centered on the XY plane, rotated 45 degrees around the Z-axis, and elevated 10mm along the Z-axis.
For the fractal generation, use a recursion level of 3. In each iteration, replace the existing faces wit... | include <utils/build_plate.scad>
selected_shape = 0;
recursion=3;
custom_shape = [[[2,0.75],[2,-0.75],[5,-0.75],[5,0],[9,0]],[[0,1,2,3,4]]];
shapes=[[[[0.8,1],[0.8,0],[3.6,0]],[[0,1,2]]],
[[[1,1.2],[2,0],[4.4,0]],[[0,1,2]]],
[[[5,5.5],[5,3],[2,3],[2,2],[25,0]],[[0,1,2,3,4]]]];
base_size=100;
appendage = 10;
build... | glb/cad_4f13d232c684.glb |
Create a plant sign consisting of a rectangular label and a supporting stake.
Start by creating a rectangular plate 45mm wide, 25mm high, and 3mm thick. To create an indented effect for the text, remove a smaller central rectangular volume from the plate, leaving a 1.05mm border around the edges; this inner cutout sh... | lettering1 = "Tomato";
lettering2 = "'Tigerella'";
style = "Pacifico";
labelStyle = "Indent";
oneOrTwoSticks = "One";
textSpacing = 1;
textSpacing2 = 1;
textSize = 10;
textSize2 = 6;
textNudgeX = 0;
textNudgeX2 = 0;
textNudgeY = 10;
textNudgeY2 = -10;
textHeight = 1.5;
textHeight2 = 1.5;
labelWidth = 45.0;
labelHeig... | glb/cad_93234ba2940c.glb |
Create a toy feeder trough by constructing a main body and hollowing out the center. Start with a solid rectangular block 60mm long, 62mm wide, and 10mm high. Add two thin walls at each end, each 20mm long, 2mm thick, and 10mm high, positioned at the far edges of the length. Integrate a cylinder with a radius of 10mm a... | difference()
{
union ()
{
translate([-10, 0, -12])
cube(size = [20,2,10]);
translate([-10, 58, -12])
cube(size = [20,2,10]);
rotate([ -90, 0, 0])
cylinder(h = 60, r=10);
}
rotate([ -90, 0, 0])
translate ( [0, 0, 2])
cylinder(h = 56, r=8);
translate([-30, -1, 0])
cube(size = [60,62,10]);
} | glb/cad_a1e965bec660.glb |
Create a 1 kg spool holder consisting of a circular base and a vertical shaft. Start with a cylindrical base 50mm in diameter and 8mm high. Centered on this base, add a hollow vertical tube with an outer diameter of 31.5mm and a height of 94mm. The tube wall thickness should be 4mm. At the top of the tube, add a lip th... | base_diameter = 50;
base_height = 8;
tube_diameter = 47.2;
tube_height = 25;
tube_thickness = 4;
bolt_diameter = 3.7;
nut_diameter = 6.5;
base_diameter_a = 50;
base_height_a = 8;
tube_diameter_a = 31.5;
tube_thickness_a = 4;
tube_height_a = 94;
tube_lip_a = 7;
bolt_head_diameter = 7.6;
type = "stacker";
doShaft... | glb/cad_14ce41dd3cda.glb |
Create a horse hay rack for a toy stable. Start by forming a semi-cylindrical base with a radius of 20mm and a height of 5mm. From this base, extend three vertical cylindrical posts upward to a height of 35mm, each with a radius of 2mm. Position one post centrally at the back and the other two symmetrically spaced 13mm... | difference ( ) {
cylinder(h = 5, r = 20);
translate ( [ -25,0,-10 ] )
cube(size = 50,center = false);}
translate ( [ -23,0,0 ] ) cube(size = [46,5,35]);
translate ( [ -0,-17,0 ] )cylinder(h = 35, r = 2);
translate ( [ -13 ,-12,0] )cylinder(h = 35, r = 2);
translate ( [ 13 ,-12,0 ] )cylinder(h = 35, r = 2);
translate ( ... | glb/cad_444ae0cd3427.glb |
Create a parametric twisted star box consisting of a main container and a matching lid.
For the main container, create a base shape by combining two squares of 46mm by 46mm, with one square rotated 45 degrees relative to the other, to form an 8-pointed star profile. Extrude this profile to a height of 93mm, applying ... | part = "both";
$fn = 100;
iRadius = 20;
wThickness = 3;
sbHeight = 93;
sbLip = 10;
tFactor = -100;
tGap = 0.3;
tTwist = (sbHeight * tFactor)/100;
oRadius = iRadius + wThickness;
lSide = 2 * oRadius;
module lip() {
rotate_extrude($fn=200)
polygon(points=[[oRadius,0],[oRadius,wThic... | glb/cad_20319f80f3f6.glb |
Create an LED resonator consisting of a central coiled body and two flat end caps. The overall structure is centered on the origin.
First, create two identical cylindrical end caps with a radius of 5mm and a height of 0.5mm. Position one cap at the top and one at the bottom, such that the total height of the object fr... | buildVolume = 4;
crossSection = 0;
part = 7;
wallThickness = 6;
detail = 5;
n = 16;
outerDiameter = 10000;
elementLength = 10000;
endCapThickness = 500;
wireDiameter = 1000;
socketPinDiameter = 20;
outerDiametermm = outerDiameter / 1000;
elementLengthmm = elementLength / 1000;
endCapThicknessmm = endCapThick... | glb/cad_4156d90f91ec.glb |
Create two identical handles for a home plant watering system, positioned 30mm apart along the y-axis. Each handle is 4mm thick and centered vertically. To construct a handle, start with a base shape formed by the union of a cylinder with a radius of 9mm and a rectangular block measuring 30mm by 5mm by 4mm, joined by a... | module handle(r) {
h=4;
$fn=128;
difference() {
union() {
hull() {
translate([-r*0.5,0,0])
cylinder(h=h,r1=r+4,r2=r+4,center=true);
translate([-r*3,0,0]) {
cylinder(h,2,2,center = true);
}
... | glb/cad_f9c3493fd96e.glb |
Create a home plant watering system sprayer. Start with a hexagonal prism base that has a height of 8mm and a flat-to-flat width of 12mm (radius of 6mm). At the bottom center of this prism, integrate a small cylinder with a radius of 2mm and a height of 3mm, topped with a sphere of radius 2.2mm centered at a height of ... | use <threads.scad>;
$fn=32;
module sprayer() {
difference() {
union() {
difference()
{
union()
{
$fn=6;
translate([0,0,-3])
cylinder(h=8,r1=6,r2=6);
}
metric_thread (diameter=8.35, pitch=1, length... | glb/cad_f23f6a5142bd.glb |
Create a set of four pipe connectors for a home plant watering system. Each connector is based on a central 8mm cube. For each connector, create a hole with a radius of 2mm and a height of 19mm that passes through the center of the cube.
The first connector is an L-shape: position one hole vertically. The second is a... | use <threads.scad>;
use <water_pipe_connector.scad>
$fn=32;
module connector(step,a) {
difference() {
union() {
cube(8,center=true);
for(i=a) {
rotate([0,step*i,0])
translate([0,0,2.5]) {
water_pipe_connector();
... | glb/cad_36e9b40ab167.glb |
Create a water pipe connector consisting of a central vertical cylinder with a hollow core. Start with a base cylinder 12mm high with a radius of 3mm. On top of this base, add a smaller cylinder 2mm high with a bottom radius of 3mm and a top radius of 2.5mm. To create the grip ribs, add three distinct rings along the h... | $fn=128;
module water_pipe_connector() {
difference() {
union(){
cylinder(h=12,r1=3,r2=3);
translate([0,0,12])
cylinder(h=2,r1=3,r2=2.5);
for(z=[4,7,10]) {
translate([0,0,z]) {
cylinder(h=1,r1=3,r2=3.3);
... | glb/cad_c58a39715983.glb |
Create a home plant watering system dripper connector. Start by creating a metric thread with a diameter of 8mm, a pitch of 1mm, and a length of 8mm. On top of this threaded base, add a hexagonal prism with a flat-to-flat width of 10mm and a height of 5mm, positioned 10mm above the origin. Integrate a water pipe connec... | use <threads.scad>;
use <water_pipe_connector.scad>
$fn=32;
module dripper() {
difference()
{
union() {
metric_thread (diameter=8, pitch=1, length=8);
translate([0,0,10]) {
water_pipe_connector();
}
translate([0,0,10]) {
... | glb/cad_6eed391813e9.glb |
Create a Printrbot Simple Roller by constructing a hollow cylinder with a total height of 72mm. The outer diameter of the cylinder should be 17mm, with a radius of 8.5mm. Remove a smaller concentric cylinder from the center to create a hole with a diameter of 5mm, or a radius of 2.5mm, running through the entire length... | difference(){
cylinder(h=72,r=8.5,center=y);
cylinder(h=72,r=2.5,center=y);
} | glb/cad_f4ae8f321bf7.glb |
Create three square lens shims of varying thicknesses. Each shim is based on a 15mm by 15mm square footprint with a central square cutout. The outer boundary of each shim has corners that are slightly flattened by 2.5mm. The central cutout is a 1mm diameter circle centered within a 2mm wide wall section, though the ove... | h=15/2;
w=15/2;
e=2;
corners_flat=2.5;
c=sqrt(0.5*(pow(corners_flat,2)));
$fs=0.001;
module shim(height) {
linear_extrude(height=height)
for(m = [ [-1,1], [1,0], [0,1], [1,1] ]) {
mirror(m) {
difference() {
polygon([
[0,-h],
[w-c,-h],
[w,c-h],
[w,0]... | glb/cad_74367447b4ef.glb |
Create a pipe adapter with a total height of 65mm and a uniform wall thickness of 3mm. The object is a hollow transition piece consisting of three stacked sections.
Start with a bottom cylindrical spout that has an outer diameter of 84mm and a height of 25mm. From the top of this spout, create a conical funnel sectio... | Large_End_Diameter = 107;
Small_End_Diameter = 84;
Wall_Thickness = 3;
Funnel_Height = 65;
Top_Band = 25;
Bottom_Spout_Length = 25;
spout_or = Small_End_Diameter/2;
wall = Wall_Thickness;
flare_percentage = Large_End_Diameter / Small_End_Diameter * 100;
height = Funnel_Height;
bottom_band=Bottom_Spout_Length;
re... | glb/cad_62e94a07ea68.glb |
Create a PET bottle cap and siphon lid. Start with a main cylindrical body that has an outer diameter of 32mm and a height of 15mm. The bottom of this cylinder should be hollowed out to accommodate a bottle neck with an inner diameter of 25.07mm.
On the top surface of the cap, add two vertical cylindrical tubes positi... | include <bottle-cap-lib.scad>
rotate([0,180,0]) bottleCap();
outletIR = 2;
outletOR = 3;
inletIR = 2;
inletOR = 3;
outletTH = 26;
inletTH = 26;
capID=25.07;
capOD=32;
module bottleCap() {
difference() {
difference() {
difference() {
color("gray") cylinder( r1=capOD/2, r2=capOD/2, h=15, $fn=400);
}
... | glb/cad_0b410b67d2a2.glb |
Create a PET bottle cap and siphon lid. Start with a main cylindrical body that has an outer diameter of 32mm and a height of 15mm. The bottom of this cylinder must be hollowed out to accommodate a bottle neck with an inner diameter of 25.07mm and a thread length of 20mm.
On the top surface of the cap, create two vert... | include <bottle-cap-lib.scad>
rotate([0,180,0]) bottleCap();
outletIR = 2;
outletOR = 3;
inletIR = 2;
inletOR = 3;
outletTH = 26;
inletTH = 26;
capID=25.07;
capOD=32;
threadLen = 20;
module bottleCap() {
difference() {
difference() {
difference() {
color("gray") cylinder( r1=capOD/2, r2=capOD/2, h=15, $f... | glb/cad_91bb0d61fe94.glb |
Create a UHF Tx holder with an integrated JR style plug-in module. Start with a base plate measuring 122.7mm by 48.5mm with a thickness of 4mm. At one end of the base, construct a rectangular module frame by creating a solid block 59.5mm wide, 44.5mm deep, and 16mm high, then hollow out a central cavity 55.5mm wide, 40... | include<./MCAD/libtriangles.scad>;
type = 1;
custd=30;
custw=70;
custh=60;
if (type==1)
{
uhfholder(24.5,67,80);
}
else if (type==2)
{
uhfholder(29,74.5,86);
}
else if (type==3)
{
uhfholder(23,74,85);
}
else if (type==4)
{
uhfholder(custd,custh,custw);
}
module uhfholder(d, w, h) {
widthoffset=48.5/2;
l... | glb/cad_6211b0f59512.glb |
Create an EG Cube by combining three geometric components. First, create a rectangular base measuring 90mm in length, 30mm in width, and 30mm in height. To this base, add a second rectangular block measuring 30mm by 30mm by 60mm, positioned vertically at the far left end of the base so that it extends 60mm upward from ... | module cube1(){
$fn=100;
a=30;
union() {
translate([0, 0, 0])
cube([3*a,a,a]);
translate([0, 0, 0])
polyhedron(points = [[2*a,0,a],[3*a,0,a],[3*a,a,a],[2*a,a,a],[2*a,a,2*a],[3*a,a,2*a]], triangles = [[0,1,2,3],[2,1,5],[3,2,5,4],[3,4,0],[4,5,1,0]]);
translate([0, 0, 0])
polyhedron(points = [[0,0,a],[a,a,a... | glb/cad_f62858e10b0b.glb |
Create an EG Cube by constructing a complex geometric solid based on a base unit of 30mm. Start by joining three rectangular blocks: one measuring 60mm by 30mm by 30mm positioned at the origin, a second measuring 30mm by 15mm by 30mm positioned at x=0, y=30, z=0, and a third custom polyhedron. This polyhedron is define... | module cube6(){
$fn=100;
a=30;
difference(){
union() {
translate([0, 0, 0])
cube([2*a,a,a]);
translate([0, a, 0])
cube([a,a/2,a]);
translate([0, 0, 0])
polyhedron(points = [[a,0,a],[a,a,a],[3*a/2,a,a],[3*a/2,0,a],[2*a,a,2*a],[a,a,2*a]], triangles = [[3,2,1,0],[0,1,5],[2,3,4],[0,5,4,3],[1,2,4,5]])... | glb/cad_2c144a1f4b80.glb |
Create an EG Cube by combining several geometric primitives. Start with a rectangular block measuring 30mm wide, 60mm deep, and 30mm high, positioned at the origin. Attach a second rectangular block measuring 15mm wide, 30mm deep, and 30mm high, aligned to the side of the first block starting at x=30mm and y=0mm. Add a... | module cube3(){
$fn=100;
a=30;
union() {
translate([0, 0, 0])
cube([a,2*a,a]);
translate([a,0, 0])
cube([a/2,a,a]);
translate([3*a/2,a/2, a/2])
cylinder(h = a, r1 = a/2, r2 = a/2, center = true);
translate([0, 2*a, a])
polyhedron(points = [[0,0,0],[a,0,0],[a,-a,0],[0,-a,0],[0,0,a],[a,0,a]], triangles... | glb/cad_a81183a77daa.glb |
Create an EG Cube by starting with a base rectangular prism measuring 60mm wide, 30mm deep, and 90mm high. From this base, remove a cylindrical hole with a radius of 15mm, centered at x=30mm, y=15mm, and z=30mm, with the cylinder's axis oriented along the y-axis and extending 45mm in total length. To the main body, add... | module cube7(){
$fn=100;
a=30;
union() {
difference(){
difference(){
translate([0, 0, 0])
cube([2*a,a,3*a]);
translate([a, a/2, a])
rotate([90,0,0])
cylinder(h = 1.5*a, r1 = a/2, r2 = a/2, center = true);
}
translate([0, 0, 2*a])
cube([a,a,a]);
translate([2*a, 0, 2*a])
polyhedron(p... | glb/cad_5908fbd9de66.glb |
Create an EG Cube by starting with a solid rectangular prism that measures 60mm in length, 30mm in width, and 60mm in height. From this block, remove a cylindrical volume to create a hole. This cylinder must have a radius of approximately 21.21mm (calculated as $\frac{30\sqrt{2}}{2}$) and a height of 45mm. Position the... | module cube4(){
$fn=100;
a=30;
difference() {
translate([0, 0, 0])
cube([2*a,a,2*a]);
translate([a/2,a/2, 3*a/2])
rotate(a=[90,0,0])
cylinder(h = 1.5*a, r1 = sqrt(2)*a/2, r2 = sqrt(2)*a/2, center = true);
}
}
cube4(); | glb/cad_26c0bbf57477.glb |
Create an EG Cube by combining three geometric volumes. First, construct a vertical rectangular prism with a square base of 30mm by 30mm and a height of 90mm, positioned with its base at the origin. Second, add a cube with side lengths of 30mm, positioned so it is adjacent to the first prism, extending from x=30mm to x... | module cube2(){
$fn=100;
a=30;
union() {
translate([0, 0, 0])
cube([a,a,3*a]);
translate([a, -a, 0])
cube([a,a,a]);
translate([0, 0, 0])
polyhedron(points = [[0,0,0],[a,0,0],[a,-a,0],[0,-a,0],[0,0,a],[a,0,a]], triangles = [[0,1,2,3],[2,1,5],[3,2,5,4],[3,4,0],[4,5,1,0]]);
}
}
cube2(); | glb/cad_44ef41f72dc7.glb |
Create an EG Cube by combining several geometric primitives based on a base unit of 30mm. Start by placing a 30x30x60mm rectangular block standing vertically at the origin. Add a 60x30x30mm rectangular block extending along the x-axis from the same origin. Position a 30x30x30mm cube such that its inner corner is at coo... | module cube5(){
$fn=100;
a=30;
union () {
translate([0, 0, 0])
cube([a,a,2*a]);
translate([0, 0, 0])
cube([2*a,a,a]);
translate([a, a, 0])
cube([a,a,a]);
intersection() {
translate([a, 0, 0])
cube([2*a,a,2*a]);
translate([3*a/2,a/2,a/2,])
rotate([90,0,0])
cylinder(h = 1.5*a, r1 = sqrt(2)... | glb/cad_34bb6b6490c8.glb |
Create an EG Cube by constructing a single smooth cylinder with a total height of 30mm and a radius of 15mm. The cylinder should be centered so that its axis is vertical and its top and bottom faces are flat. | module cube0(){
$fn=100;
a=30;
translate([a/2, a/2, a/2])
cylinder(h = a, r1 = a/2, r2 = a/2, center = true);
}
cube0(); | glb/cad_301b3d3cd99c.glb |
Create a pegboard clip with a total width of 4mm. The clip consists of a central curved section and two symmetrical legs extending outwards.
The central section is a curved band created by the space between two concentric circles: an outer circle with a radius of 6.225mm and an inner circle with a radius of 3.175mm. ... | hole_spacing = 24.4;
L = hole_spacing;
hole_diameter = 6.35;
D = hole_diameter;
hook_diameter = 6.35;
d = hook_diameter;
clip_width = 4;
W = clip_width;
spring_angle = 10;
a = spring_angle;
spring_space = 1;
x = spring_space;
bend_thickness = 2;
w = bend_thickness;
leg_thickness = 2;
v = leg_thickness;
hook_thi... | glb/cad_c301e36f9243.glb |
Create a Water Tap Fountain consisting of a main vertical cylinder and a smaller angled spout. Start by creating a main hollow cylinder with a height of 23mm, an outer diameter of 28mm, and an inner bore diameter of 24mm.
Attached to the side of this main body, create a second hollow cylinder to serve as the spout. T... | $fn=64;
EPS=0.01;
MountingDia=24;
WallThickness=2;
Height=23;
FountainDia=10;
FountainWall=2;
FountainHeight=15;
HullCylinderDisplacement=5;
difference() {
union() {
cylinder(h=Height, r=WallThickness+MountingDia/2, center=true);
hull() {
translate([0,-HullCylinderDisplacement,-Heig... | glb/cad_b1d44ec0c9e8.glb |
Create a protective case for a MeanWell SP320 power supply. The main body is a hollow rectangular shell with a wall thickness of 3mm. The interior cavity should measure 115mm wide, 50mm high, and 100mm deep.
The case features a lip that extends 40mm from the back edge. On the top surface, create a central air duct cu... | thk = 3;
w = 115;
h = 50;
l = 100;
d = 40;
pw = 49;
ph = 29.5;
$fa = 0.01;
$fs = 0.5;
$fn = 0;
translate ([0, -35, 0])
main_edge();
translate ([0, 35, 0])
other_edge();
module other_edge () {
difference () {
union () {
translate ([0, 0, d - l])
mirror ([1,0,0])
main_edge ();
translate ([0, 0, t... | glb/cad_2a77e0c3897d.glb |
Create a model of a skew polyhedron consisting of a repeating array of squares. Each square should have a side length of 11mm (10mm plus a 1mm overlap) and a thickness of 1mm.
The structure is built from three sets of checkerboard-like grids of squares. First, create a grid in the XY plane centered at the origin, with... | mu_10_small();
csize = 10;
cinc = 1;
cthick = 1.;
module mu_10()
{
union()
{
for (z = [-2*csize:csize:2*csize])
{
checker(0,0,0,0,0,z);
}
for ( x = [-3.5*csize:csize:1.5*csize])
{
color("red")
checker(0,90,0,x,0,-csize/2);
}
for ( y = [-3.5*csize:csize:2*csize])
{
color("blue")
checker_2(90,0,0,0,y,csize/2);
}
}
}
m... | glb/cad_cba2da518645.glb |
Create a model of a skew polyhedron consisting of a repeating array of thick square rings. The basic building block is a cubic unit cell with a side length of 10mm. Within this cell, construct three open-ended square tubes, each with a wall thickness of 1mm and an outer dimension of 11mm (to ensure overlap at the joint... | make_cells();
csize = 10;
cinc = 1;
cthick = 1;
sum = csize + cinc;
units_along_x = 1;
units_along_y = 1;
units_along_z = 1;
module make_cells()
{
step = 2*csize;
endx = (units_along_x-1)*step;
endy = (units_along_y-1)*step;
endz = (units_along_z-1)*step;
translate([-endx/2,-endy/2,step/2])
union()
{
for (x = [0:ste... | glb/cad_56f028f44913.glb |
Create a pencil clip and protector consisting of two similar components: a top clip and a bottom clip.
For each clip, start with a cylindrical base with a radius of 4.65mm and a height of 8mm. Integrate a rectangular block into this base, measuring 5.15mm wide, 6mm deep, and 8mm high, centered on the cylinder's axis.... | elastic_band_width = 6;
elastic_band_height = 1;
pencil_diameter = 7.3;
pencil_tip_height = 16;
top_clip = "yes";
second_clip = "yes";
second_clip_pull = "no";
$fn = 60;
pencil_inner_radius = pencil_diameter/2;
pencil_outer_radius = pencil_inner_radius + 1;
pencil_clip_tip_height = pencil_tip_height + 1;
clip_conne... | glb/cad_0ce7095bc001.glb |
Create a circular under-carrier for a volume control assembly with a total height of 3.9mm. Start with a base consisting of a thin outer ring with an outer diameter of 66mm and an inner diameter of 63mm.
Add a central solid cylinder with a radius of 24.7mm and a height of 3.3mm. Around this center, place five gear mo... | under_carrier();
module under_carrier(){
full_height = 3.9;
difference() {
union() {
difference() {
cylinder (d=66, h=full_height);
translate([0,0,-1]) cylinder (d=63, h=full_height+2);
}
intersection() {
translate([0... | glb/cad_a4a70e562925.glb |
Create a light ring for a volume control. Start with a main cylindrical body 66mm in diameter and 5mm high. Remove a central cylindrical hole 42mm in diameter and 7mm high, centered on the base.
Add a decorative outer rim by creating a cylinder 68mm in diameter and 4mm high, positioned 3mm above the base, and remove ... | light_ring();
module light_ring(){
difference() {
union () {
difference() {
cylinder(d=66, h=5);
for (i=[0:4]) {
rotate([0,0,i*72]) translate([21,0,-1]) cylinder(h=7, d=20);
}
translate([0,0,-1]) cylinder(d=42,... | glb/cad_ff683d88ba81.glb |
Create a Stubby Volume Control planetary gearbox assembly consisting of a ring gear, a sun gear, and four planet gears.
First, create a ring gear with an outer radius of 21.5mm and a height of 10mm. The interior must feature 31 internal teeth with a root radius of 15.5mm and an outer radius of 16.5mm. Add a knurled o... | pi=3.1415926535897932384626433832795;
union() {
translate ([-(15),0,0]) volume_planet_gear();
translate ([-45,-25,0]) volume_planet_gear();
translate ([-70,-25,0]) volume_planet_gear();
translate ([-45,25,0]) volume_planet_gear();
translate ([-70,25,0]) volume_planet_gear();
translate ([12.5,... | glb/cad_29e4d44f80e2.glb |
Create a Stubby Volume Control housing. Start with a main cylindrical shell with an outer diameter of 66mm and a height of 10mm. Hollow out the center with a 62mm diameter hole through the full height.
Add a secondary cylindrical section with a 64mm diameter and a height of 12mm. To create the knurled grip, subtract ... | outer_shell_height=12;
bottom_inset=2;
electro_housing();
module electro_housing(){
difference() {
union () {
difference() {
cylinder(d=66, h=outer_shell_height-bottom_inset);
for (i=[0:4]) {
rotate([0,0,i*72]) translate([24,0,-1]) cylinder(... | glb/cad_17a3655fd7a0.glb |
Create a Stubby Volume Control stator base. Start with a central vertical stack consisting of a cylinder 20mm in diameter and 9mm high, topped by a wider cylinder 22mm in diameter and 6mm high. Add a broad base disk 34mm in diameter and 2.75mm high.
Construct an outer ring 66mm in diameter and 5.5mm high, with a conce... | under_stator();
module under_stator() {
difference() {
union () {
cylinder(d=20, h=9);
cylinder(d=22, h=6);
cylinder(d=34, h=2.75);
difference() {
cylinder(d=66, h=1.5);
for (i=[0:4]) {
rotate([0,0,i*72]) t... | glb/cad_d3042283f063.glb |
Create a Stubby Volume Control base by starting with a central cylindrical mount 14mm in diameter and 3.2mm high, sitting atop a wider 34mm diameter cylindrical base that is 2mm thick. Bore a 7.2mm diameter hole through the center of the entire assembly to a depth of 8mm.
Create a wider 9mm diameter counterbore cente... | $fa = 6;
$fs = 0.4;
difference() {
union () {
cylinder(d=34, h=2);
cylinder(d=14, h=3.2);
}
cylinder(d=7.2, h=8);
translate([0,0,1.4]) cylinder(d=9, h=8);
for (i=[0:9]) {
rotate([0,0,(i*36) - 18]) translate([8,0,0]) cylinder(h=8, d=3.4);
}
for (i=[0,1,5,6]) {
... | glb/cad_5135feeb8a51.glb |
Create a planetary gear carrier for a volume control knob. Start with a base consisting of a thin outer ring with an outer diameter of 66mm and a height of 3mm, featuring a concentric inner cutout of 60mm diameter and 5mm height.
In the center, construct a cylindrical hub with a diameter of 28mm and a height of 5mm, ... | upper_carrier();
module upper_carrier(){
difference (){
union () {
difference() {
cylinder (d=66, h=3);
translate([0,0,-1]) cylinder (d=60, h=5);
}
difference() {
cylinder (d=28, h=5);
translate([0,0,-1]) ... | glb/cad_77663f020dc8.glb |
Create a light ring spacer for a volume control. Start by creating a main cylindrical shell with an outer diameter of 66mm and a height of 3mm, with a concentric hole removed from the center that is 62mm in diameter and 5mm deep.
Add five cylindrical lugs to the top surface of the shell. Each lug should have a diamet... | light_ring_spacer();
module light_ring_spacer(){
difference() {
union () {
difference() {
cylinder(d=66, h=1);
for (i=[0:4]) {
rotate([0,0,i*72]) translate([24,0,-1]) cylinder(h=4, d=22);
}
translate([0,0,-1]) ... | glb/cad_3e9674dc74de.glb |
Create a base plate for a volume control device. Start with a central cylindrical core 61mm in diameter and 3mm high, topped with a second cylinder 58mm in diameter and 4mm high.
From this solid, remove a central vertical hole 32mm in diameter and 4mm deep. Create five identical sets of cutouts arranged every 72 degr... | base_plate();
module base_plate(){
difference() {
union () {
cylinder(d=61, h=3);
cylinder(d=58, h=4);
}
for (i=[0:4]) {
rotate([0,0,i*72]) translate([-27.5,0,-1]) cylinder(h=10, d=3.4);
rotate([0,0,i*72]) translate([-27.5,0,1]) cylinder(h=... | glb/cad_14165751117d.glb |
Create a Stubby Volume Control center button. Start by constructing a main cylindrical body with a diameter of 24.6mm and a height of 5mm. From this body, remove a central cylindrical hole with a diameter of 23mm and a height of 5mm, positioned 1.5mm from the base, and a second smaller hole with a diameter of 22mm and ... | centre_button();
module centre_button(){
union() {
difference(){
union () {
cylinder (d=24.6, h=5);
}
translate([0,0,1.5]) cylinder (d=23, h=5);
translate([0,0,-1]) cylinder (d=22, h=3);
}
difference(){
cylinder (... | glb/cad_f558df87f459.glb |
Create an encoder grip consisting of a main cylindrical body with a diameter of 10mm and a height of 11.5mm. Bore a central hole through the bottom 8mm of the cylinder with a diameter of 6.4mm, transitioning from a 8mm diameter base to the 6.4mm diameter via a 2mm high chamfer.
Extend a central screw hole with a diam... | encoder_grip();
module encoder_grip(){
union(){
difference(){
union() {
cylinder(d=10, h=11.5);
}
cylinder(d=6.4, h=8);
cylinder(d1=8, d2=6.45, h=2);
cylinder(d=3.3, h=14);
translate([2.5,-6,11]) cube([12,12,12]);
... | glb/cad_b144793a39b9.glb |
Create a corner bracket for a printer enclosure. Start with a solid cube measuring 50mm in height, width, and depth. Hollow out this cube by removing a smaller interior cube that starts 2.5mm from the outer walls, leaving a wall thickness of 2.5mm.
To create the slots for the boards, remove a rectangular section from... | board_thickness = 17.5;
cube_size = 50;
wall_thickness = 2.5;
translate([0,0,cube_size]) rotate([180,0,0]) difference(){
union(){
difference() {
cube(size=cube_size);
translate([wall_thickness, wall_thickness, wall_thickness]) cube(size=cube_size);
}
translate([0,0,wall_thickness+board_thickness]) cube([cube... | glb/cad_f2406a8bb0ea.glb |
Create a compact mechanical endstop holder consisting of a switch housing and an attached rod clamp.
First, construct the switch holder as a rectangular block 24.1mm long, 10.6mm wide, and 10mm high. Hollow out the center to create a cavity for a switch measuring 20.1mm by 6.6mm by 8mm. To allow for wire leads and ea... | switch_width = 6.6;
switch_length = 20.1;
switch_height = 8;
holder_wall = 2;
rod_diameter = 8.35;
rod_snap = 0.5;
screw_thread_diameter = 4;
nut_wrench_size = 8.3;
rod_clamp_wall = 2;
nut_diameter = nut_wrench_size / cos(30);
nut_height = 4;
clamp_height = switch_height + holder_wall;
clamp_width = rod_diameter*2 +... | glb/cad_194f84cfa566.glb |
Create a parametric power and switch panel for a Mendelmax printer. Start with a base rectangular plate measuring 140mm wide, 70mm high, and 3.8mm deep, featuring rounded corners with a 10mm radius.
Remove four mounting holes for M5 screws, each 5.2mm in diameter, positioned 10mm inset from each corner of the plate.
... | use <..\include\boxes.scad>
with_dynastar_switch = true;
with_power_inlet = true;
with_usb_mount = true;
panel_width = 140;
panel_height = 70;
panel_depth = 3.8;
panel_vert_holes_distance = 50;
panel_hole_inset = 10;
power_plug_holes_distance = 40;
power_plug_holes_diameter = 3;
power_plug_height = 26.7;
power_plug_... | glb/cad_3c6548aca924.glb |
Create a parameterized phone stand designed to hold a device with a width of 70mm, height of 141mm, and thickness of 9mm. The stand consists of a central socket and two supporting feet.
First, construct the phone socket. The socket is a curved cradle with a wall thickness of 5mm. The back of the socket is a semi-cylin... | use <MyRotateExtrude.scad>
$fn=50;
PhoneWidth=70;
PhoneHeight=141;
PhoneThickness=9;
CornerRadius=12;
BottomGap=25;
WallThickness=5;
Clearance=1;
HeightOfFront=14;
HeightOfBack=60;
Angle=15;
HeightOfBase=45;
WidthOfStance=20;
LegRadius=(PhoneWidth/2-BottomGap/2)/2;
BackBlockSize=sqrt(2)*(BottomGap/2+WallThickness/... | glb/cad_0021007521d3.glb |
Create a Spool Extender Clip by starting with a solid rectangular block that is 12.6mm thick, 193.6mm wide, and approximately 26.5mm deep. From the center of this block, remove a cylindrical section with a radius of 193.6mm and a height of 6.3mm to create a curved slot that matches the spool's edge. To form the clip's ... | spool_radius = 193.6;
spool_thickness = 6.3;
clip_depth = 5;
clip_extend = 10;
clip_thickness = 3;
clip_cut = true;
print_part();
module print_part() {
rotate(a=[-90,0,0])
translate([0,-spool_radius,0])
difference(){
translate([0,0,-(spool_thickness+(2*clip_thickness))/2])
cube([sqrt(2*spool_radius*cli... | glb/cad_9aff0c5ae2fb.glb |
Create a rounded rectangular block with overall dimensions of 80mm in length, 80mm in width, and 50mm in height.
The geometry should feature a mixed fillet design. Apply a large radius of 20mm to the vertical edges along the height of the block. For the horizontal edges on the top and bottom faces, apply a smaller ra... | $fn=80;
module filletcube(l, w, h, c) {
if (c > l/2 || c > w/2 ){
echo("Warnung: Radius überschreibt Dimension",c);
}
hull(){
translate([c, c, 0])cylinder(h, r=c+0.000001);
translate([l-c, c, 0])cylinder(h, r=c+0.000001);
translate([c, w-c, 0])cylinder(h, r=c+0.000001);
translate([l-c, w-c, 0])cylinder... | glb/cad_c53ca048fcf8.glb |
Create a customizable under-tabletop shelf and drawer system. The main shelf body is a rectangular block with a width of 190mm and a height of 2mm for the top plate. The total length of the shelf is determined by the number of drawer units, where each unit has a height of 22mm. For a configuration of two units, the tot... | $fn=30;
he=22 ;
shelf([2,2,0,0,0,0,0,0]);
width = 190 ;
module shelf(diff){
gesamt = diff[0]+diff[1]+diff[2]+diff[3]+diff[4]+diff[5]+diff[6]+diff[7];
difference()
{
translate([-122.5,0,0])
rotate([0,-90,0])
difference()
{
union(){
linear_extrude(2)square([2.0+gesamt*he,width]);
mirror([0,0,1]... | glb/cad_fcc6cb1bc868.glb |
Create a depth control slider for a PCB router. Start with a main cylindrical body that has an outer diameter of 30mm and a height of 26mm. Bore a concentric hole through the center with a diameter of 20.5mm.
Attach a rectangular clamp block to the side of the cylinder. This block should be 15mm long (extending from ... | motor_mount_diam = 20.5;
motor_mount_depth = 26;
motor_mount_outer_diam = 30;
motor_mount_slit_width = 3;
motor_clamp_length = 15;
motor_clamp_width = 10;
motor_clamp_depth = 8;
motor_clamp_bolt_diam = 3.6;
motor_clamp_bolt_xpos = 20;
slider_depth = motor_mount_depth;
cut_depth = 3;
cut_height = motor_clamp_depth;
... | glb/cad_f34c0b1c7ef9.glb |
Create a Pi cookie cutter by extruding the mathematical symbol for Pi into a 3D shape. The model consists of a thin vertical wall and a flat circular base. The vertical cutting wall should be 15mm high with a thickness of 2mm, following the precise contours of the Pi symbol. At the bottom of the wall, create a flat, ci... | wallThick = 2;
cutterMinimum = 0.4;
baseHeight = 2;
height = 15;
flangeWidth = 6;
minkowski(){
outline();
cylinder(r1 = wallThick/3, r2 = cutterMinimum/3, h = height);
};
flange();
module flange(){
difference(){
minkowski(){
baseShape(baseHeight/3);
cylinder(r = flangeWidth, h = baseHeight/3);
}
translate([0,0... | glb/cad_1dc3228b255e.glb |
Create a rocket model by stacking three concentric sections vertically. Start with a base cylinder 15mm high with a radius of 5mm. Above this, add a second cylinder 5mm high that tapers from a 5mm radius at the bottom to a 4mm radius at the top. Place a third cylinder on top of that, 10mm high with a constant 4mm radiu... | module wing()
{
linear_extrude(height=15, scale=0)
translate([-0.5,0,0])
square([1,15]);
}
module rocket()
{
rotate([90,0,0])
wing();
rotate([90,0,90])
wing();
rotate([90,0,180])
wing();
rotate([90,0,270])
wing();
color("green", 0.5)
linear_extrude(height=15)
circle(5);
color("red", 0.5)
translate([0,0,15])
line... | glb/cad_9db06a41c9e3.glb |
Create a belt holder for a portable DVD player consisting of a flat rectangular base and a raised slotted loop. First, construct the base as a rectangular slab measuring 20mm in width, 31mm in length, and 2mm in height. Centered atop this base, create a raised rectangular block that is 10mm wide, 25mm long, and 4mm hig... | lx1 = 10;
ly1 = 25;
w1=3;
w2=5;
w3=20;
h1=2;
h2=2;
h3=2;
extra=2;
difference() {
cube([lx1, ly1+2*w1,h1+h2],center=true);
translate([0,0,-h1])
color("green") cube([lx1+extra, ly1, h1+extra],center=true);
}
translate([(lx1+w3)/2 - lx1/2, 0, -(h1+h2+h3)/2 ])
cube([lx1+w3, ly1+2*w1+w2, h3],center=true); | glb/cad_fca8ad8aec94.glb |
Create a Filawinder laser sensor holder consisting of a base plate and two vertical side walls.
Start with a rectangular base plate 65mm wide, 60mm long, and 4.4mm thick, with corners rounded to a 3mm radius. Drill five pairs of 4mm diameter holes through the base; each pair is aligned along the length, with one hole... | base_width = 65;
base_length = 60;
base_thickness = 4.4;
wall_height = 70;
wall_thickness = 7;
sensor_width_1 = 27;
sensor_width_2 = 8;
sensor_height_1 = 20;
sensor_height_2 = 30;
sensor_offset = 12;
laser_diameter = 12;
laser_offset = 47;
hole_diameter = 4;
hole_count = 5;
rounding = 3;
$fn=40;
module ... | glb/cad_8dc00703bbc4.glb |
Create a Watering Pipe Base consisting of a vertical cylinder with an outside diameter of 30mm and a total height of 78mm. The object is built upon a solid circular base 3mm thick. Above this base, create a hollow lower section with a height of 30mm and an internal diameter of 20.5mm. Within this lower section, leave a... | outside_Diameter = 30;
upperSection_Height = 45;
upperSection_InsideDiameter = 23;
lowerSection_Height = 30;
lowerSection_InsideDiameter = 20.5;
innerLip_Height = 5;
numSlots = 6;
slot_Width = 7;
base_Height = 3;
total_Height = base_Height + lowerSection_Height + upperSection_Height;
slot_Height = lowe... | glb/cad_b13a39ba1954.glb |
Create a rocket model by assembling a central body and fins. Start with a main fuselage consisting of a cylinder with a radius of 4mm and a height of 10mm, centered at the base. Top this cylinder with a conical nose cone that has a base radius of 4mm and a height of 6mm, tapering to a point. At the base of the fuselage... | linear_extrude(height=10,scale =.01)
square ([2,10]);
rotate( a= 90)
linear_extrude(height=10,scale =.01)
square ([2,10]);
rotate( a= 270)
linear_extrude(height=10,scale =.01)
square ([2,10]);
rotate( a= 180)
linear_extrude(height=10,scale =.01)
square ([2,10]);
translate([0,0,5])
cylinder (h = 10, r=4, center =... | glb/cad_0f8020675faf.glb |
Create a rocket model composed of a tiered central body and four stabilizing fins. Start by constructing the main fuselage as a stack of three cylinders: a bottom cylinder with a radius of 4mm and height of 10mm, a middle cylinder with a radius of 4mm that tapers to a radius of 2.8mm over a height of 5mm, and a top cyl... | color("white")
translate([-1,0,0])
rotate(a=[90,0,0])
linear_extrude(height=15,scale=[-2,-1])
square ([1,10], center = false);
color("white")
translate([-0.5,-0.5,0])
rotate(a=[90,0,90])
linear_extrude(height=15,scale=[-2,-1])
square ([1,10], center = false);
color("white")
translate([0,0,0])
rotate(a=[90,0,180])
lin... | glb/cad_1c0810a3f6e4.glb |
Create a thread spool by constructing a central cylinder with a radius of 8.8mm and a total height of 21.3mm. Add a circular lip to both the top and bottom ends of this central cylinder; each lip should have a radius of 10.8mm and a height of 2.5mm. To transition between the wider lips and the narrower central body, ad... | spool_radius = 8.8;
spool_height = 21.3;
lip_radius = 10.8;
lip_height = 2.5;
spindle_radius = 3.7;
difference()
{
union()
{
cylinder(r=spool_radius, h=spool_height);
cylinder(r=lip_radius, h=lip_height);
translate([0,0,lip_height]) cylinder(r1=lip_radius, r2 = spool_radius, h=lip_height);
translate([0,0... | glb/cad_8022607eb08f.glb |
Create a model rocket by stacking a series of concentric cylinders and adding four stabilizing fins. Start with a base cylinder 4mm in diameter and 5mm high. On top of this, add a second cylinder 3.2mm in diameter and 3mm high. Above that, place a third cylinder 3.2mm in diameter and 3mm high. Finally, top the structur... | module wing() {
rotate([0,-90,0]) translate([0,-.5,2.5]) linear_extrude (height =5, center = true, convexity = 10, twist = 0, scale=-1) square([5,1]);
}
module rocket() {
rotate([0,0,0]) wing();
rotate([0,0,90]) wing();
rotate([0,0,180]) wing();
rotate([0,0,270]) wing();
color("red", .5) linear_extrude(height = 5) ci... | glb/cad_83a72b35997d.glb |
Create a parametric 608 spool bushing consisting of a base flange and an attached tube. Start by creating a cylindrical base with a radius of 22mm and a height of 7mm. Centered within this base, remove a cylindrical core with a radius of 11.3mm to accommodate a bearing.
Depending on whether you are building the male o... | wall_inner_radius = 11.3;
wall_length = 7;
wall_outer_radius = 22;
male_or_female = 0;
female_tube_length = 20;
male_tube_length = female_tube_length - 1;
tube_outer_radius_female = 18;
tube_inner_radius_male = 8;
tube_outer_radius_male = 13;
tube_inner_radius_female = tube_outer_radius_male + 0.4;
$fs = 0.2;
$f... | glb/cad_93588ed8a13d.glb |
Create a lead screw nut model consisting of a tiered cylindrical body with a central threaded hole. Start by creating a primary cylinder with a diameter of 22mm and a height of 3.8mm. On top of this base, add a second cylinder with a diameter of 12mm and a height of 1.2mm, and below the base, add a third cylinder with ... | use <threads.scad>
$fn=40;
height = 30 ;
threads = 2 ;
module screw() {
thrs = 2 ;
translate([0,0,-height/2])
metric_thread(diameter=8.2, thread_size=thrs, rectangle=2/thrs, pitch=2,
n_starts=threads, length=height+4, internal=true) ;
}
module leadscrew(){
h0= 3.8 ;
difference(){
union(){
cylinder(h0, d=... | glb/cad_bed81bf09872.glb |
Create a PSU cover for a Prusa i3 MK3 printer. Start with a main base block measuring 95mm x 65mm x 54.25mm. Add two vertical back pillars, each 13.5mm x 65mm x 5mm, positioned at the rear corners. Include a bracket base for mounting, measuring 6mm x 65mm x 54.25mm, located at the right side.
Carve out a large central... | module CubeAdjust(Xdim, Zdim){
for (x =[6:11.2:Xdim-12]){
for (z =[6:11.2:Zdim-12]){
translate([x,-0.2,z])cube([10,0.4,10]);
}
}
}
module nuttrap(){
rotate([0, 180, 0]) difference(){
union(){
translate([-4.25,-7.5,0]) difference(){
translate([0,... | glb/cad_df84675ac072.glb |
Create a 3D model of an E3D-v6 All Metal HotEnd. Start by building a central vertical stack of cylinders and a block. At the base, create a cylinder with a radius of 8mm and a height of 7mm. Above this, add a cylinder with a radius of 6mm and a height of 8mm, followed by another cylinder with a radius of 8mm and a heig... | fnresolution = 0.4;
detaillevel = 1;
print_part_mod_mmu();
module print_part_mod_mmu(){
union(){
difference(){
print_part();
cylinder( 6.5, 16, 16, true);
}
translate([0,0,1.5])
difference() {
$fn=30;
cylinder( 2, 3, 3, false);
cylinder( 6, 2, 2, true);
};
};... | glb/cad_ef4b9e454c9f.glb |
Create a NEMA 17 stepper motor model. Start with a main motor body that is a 42mm cube with a height of 40mm. The corners of this body should be rounded using a 5mm radius.
On the top face of the motor, center a circular flange with a radius of 11.3mm and a thickness of 2mm. Within this flange, create a circular cuto... | $fn=25;
module nema_17(motor_height = 40, shaft_diameter = 5.2, shaft_flat = 0.2)
{
rotate(a=90, v=[-1,0,0])
nema(motor_size = 42, motor_height = 40, shaft_diameter = 5.2, shaft_flat = 0.2);
}
nema_17();
module nema(motor_size=42, motor_height = 38, shaft_diameter = 5.2, shaft_flat = 0.2) {
realDelta = 6;
... | glb/cad_dfe5353995cf.glb |
Create a printable LM8UU linear bearing bushing. Start with a main cylinder that has an outer diameter of 15mm and a height of 24mm.
Inside this cylinder, create a central vertical hole with a diameter of 7.8mm. To allow for the bearing's internal structure, remove material from the top face to create a square-shaped... | module LM8UU(){
lm8uu_od = 15;
lm8uu_l = 24;
lm8uu_id = 7.8;
clearance_ratio = 1.05;
contact_length = 4;
cutout_width = lm8uu_id / sqrt(2);
%translate([0, 0, -lm8uu_l]) cylinder(r = lm8uu_id / 2, h=lm8uu_l * 3, $fn=256);
difference() {
cylinder(r=lm8uu_od / 2, h=lm8uu_l, $fn=128);
translate([-cutout_width / 2, -... | glb/cad_261e1af4032a.glb |
Create a 2.5" HDD holder for a T610 thin client. Start by constructing a U-shaped base consisting of two parallel arms and a connecting cross-piece. The two main arms are each 20mm long, 7mm high, and 2mm thick, separated by a width of 70mm. Connect these arms with a perpendicular cross-piece that is 2mm thick and 74mm... | $hdd_width=70;
$hdd_height=7;
$hdd_arm_length=20;
$hdd_arm_height=$hdd_height;
$hdd_arm_thickness=2;
$hdd_screw_hole_diameter=3.5;
$hdd_screw_hole_offset=10;
$board_mounting_offset=20;
$board_mounting_diameter=3.5;
$bed_mounting_diameter=10;
$board_mounting_arm_length=$board_mounting_offset-$bed_mounting_diameter/2-... | glb/cad_d6cc55de13cf.glb |
Create a print cooling nozzle and duct for a radial fan. The main body is a hollow tube with an outer radius of 9mm and an inner bore of 7.5mm. This tube consists of a long vertical section and two 90-degree curved elbows at the ends. The top elbow curves inward and terminates in a rectangular opening designed to press... | $bracket_height = 0;
module FanPipe () {
$fn = 100;
translate ([3.2,0,13]) rotate ([0,-15,0]) translate ([0,0,-10]) rotate ([90,0,-90]) rotate_extrude(angle = 90, convexity = 10, $fn = 100)
translate([15, 0, 0])
difference () {
circle(r = 9, $fn = 100);
circle(r = ... | glb/cad_b31ed72c2b7e.glb |
Create a rocket model by assembling a central fuselage with stabilizing fins and a nose cone. Start with a central body consisting of three stacked cylindrical sections: a base cylinder 10mm high with a radius of 3mm, a middle section 5mm high with a radius of 2.5mm, and a top section 5mm high that tapers from a radius... | color("blue")
linear_extrude(height=3, scale=.5)
square([4,.5], center = true);
color("green")
rotate([0,0,90])
linear_extrude(height=3, scale=.5)
square([4,.5], center = true);
color("red")
scale([.25,.25,.5])
cylinder(h = 10, r=3);
color("red")
translate([0,0,5])
scale([.25,.25,.5])
cylinder(h = 3, r=3, r2=2.5);
... | glb/cad_a64daf7ce032.glb |
Create a Leader 120 Runcam Nano/Caddix EOS2 camera mount starting with a central block measuring 18mm x 14mm x 18mm.
Carve a large cylindrical hole through the center along the Y-axis with a diameter of 10.4mm. Create a central rectangular cutout for the sensor frame measuring 15mm x 14mm x 13mm. Remove the top and b... | $fn = 50;
difference() {
cube ([18,14,18],center=true);
translate ([0,8,0]) rotate ([90,0,0]) cylinder (16,5.2,5.2);
translate ([0,3.2,0]) cube ([15,14,13],center=true);
translate ([0,6,8]) cube ([20,14,8],center=true);
translate ([0,6,-8]) cube ([15,14,8],center=true);
translate ([0,5,-7.01]... | glb/cad_7670b65b0a08.glb |
Create a curved pipe with a flange by constructing a hollow tube with a bend radius of 30mm. The outer wall of the pipe should have a radius of 9.5mm, while the inner bore has a radius of 7mm. The pipe follows a curved path from an initial angle of 10 degrees to a final angle of 100 degrees. At the end of the pipe, cre... | $fn=128;
radius = 9.5;
opening=13;
inner_radius = 7;
bend_radius = 30;
angle_1 = 10;
angle_2 = 100;
union() {
rotate([0, 0, angle_1])
translate([bend_radius + radius, 0.02, 0])
rotate([90, 0, 0])
difference() {
cylinder(r=radius, h=0);... | glb/cad_32f05c919a54.glb |
Create a parametric hot-bed mount for a 3D printer. Start with a solid cubic base measuring 24mm in width and depth, and 13.15mm in height. From the bottom of this cube, remove a square-shaped section to create a slot for the heated bed and glass. This cutout should be 14.8mm wide and deep, extending from the bottom up... | hotBedHeight = 5.3;
glassThickness = 3.85;
hotBedSide = 213;
glassSide = 202;
boltSize = 3.2;
boreDiameter = 6.2;
insetPlatform = 8;
boreAllowance = 2;
baseExtend = 24;
topThickness = 4;
squareOffset = (hotBedSide-glassSide)/2;
baseThickness = boreDiameter+boreAllowance;
bracketHeight = hotBedHeight+glassThickness+t... | glb/cad_eaa871bc4cdd.glb |
Create a bed leveling mount starting with a rectangular base measuring 20mm wide, 40mm long, and 2mm thick. Centered on this base, add a vertical cylinder with a radius of 8mm and a height of 7mm. To the sides of this cylinder, add two rectangular blocks, each 3mm wide, 40mm long, and 6mm high, positioned such that the... | difference()
{
union()
{
translate ([-10,-20,0]) cube ([20,40,2]);
translate ([-1.50,-20,0]) cube ([3,40,6]);
cylinder (r=8, h=7);
}
union()
{
translate ([0,0,-2]) cylinder (r=2, h=20, $fn=6);
translate ([0,0,2])rotate ([0,0,90]) cylinder (r=4, h=10, $fn=6);
}
} | glb/cad_a7c200bcb0c4.glb |
Create a holder for tweezers and small items by constructing a base rectangular block measuring 70mm in length, 30mm in width, and 3mm in height. Add two thin vertical walls, each 3mm wide and 20mm high, running the full 70mm length of the base. Position the first wall along the left edge of the base and the second wal... | difference(){
union()
{
cube([70,30,3]);
cube([70,3,20]);
translate([0,9,0])
cube([70,3,20]);
}
hull()
{
translate([10,22,-1])
cylinder(5,4,4,center,$fn=70);
translate([60,22,-1])
cylinder(5,4,4,center,$fn=70);
}} | glb/cad_f7f68f20eb55.glb |
Create a 3D marble maze puzzle consisting of a large cube composed of 27 smaller cubes, each with a side length of 19mm. The overall structure is a 3x3x3 grid of these cubes.
To form the internal labyrinth, carve out a winding path through the cubes. This path is defined by a series of connected segments, where each s... | $fn=35;
balldiameter= 11;
grid=19;
phase=1;
nozzlediameter=0.4;
puzzle(0);
ballsize=balldiameter+nozzlediameter;
module puzzle(variant)
{
difference()
{
corpus();
labyrinth(variant);
}
}
module only_inner_grid(variant)
{
intersection()
{
translate([-grid/2,-grid/2,-grid/2])cube([3*grid,3*g... | glb/cad_85184edeab76.glb |
Create a parametric kitchen knife sheath. The main body is a hollowed-out blade shape with a total length of 115mm, a maximum width of 18mm, and a maximum thickness of 1.5mm. The walls of the sheath should be 0.5mm thick.
The sheath is formed by creating an outer blade volume and subtracting a smaller inner blade volu... | knife_length = 115;
knife_width = 18;
knife_thickness = 1.5;
wall_thickness = 0.5;
has_windows = 1;
number_of_windows = 10;
has_ridges = 0;
grip_cutoff_angle = 20;
$fn = 80*1;
wall = 2*wall_thickness;
pad = 2*1;
translate ([0, 0, knife_width + 2 * wall + pad])
rotate ([0, 180, 0])
parasheath (leng... | glb/cad_0dd76aeafe24.glb |
Create a parametric kitchen knife sheath. The main body is a hollowed-out blade shape with a total length of 115mm, a maximum width of 18mm, and a thickness of 1.5mm. The walls of the sheath should be 0.5mm thick.
The sheath is formed by creating an outer blade volume and subtracting a smaller inner blade volume to cr... | knife_length = 115;
knife_width = 18;
knife_thickness = 1.5;
wall_thickness = 0.5;
has_windows = 1;
number_of_windows = 10;
has_ridges = 0;
grip_cutoff_angle = 20;
$fn = 80*1;
wall = 2*wall_thickness;
pad = 2*1;
translate ([0, 0, knife_width + 2 * wall + pad])
rotate ([0, 180, 0])
parasheath (leng... | glb/cad_061b55123bd3.glb |
Create a Foot Powder Nozzle consisting of a hollowed conical cap with a flat base. Start by creating a solid cylinder for the base with a radius of 16.5mm and a height of 2mm. On top of this base, add a cone that transitions from the base radius of 16.5mm down to a top radius of 4mm. The total height of the cone sectio... | $fn=80;
lowerBottleDiameter = 28.8;
bulgeDiameter = 31;
belowBulgeToTop = 7.94;
topBottleDiameter = 27.6;
thickness = 1;
topDiameter = 8;
numberOfHoles = 6;
holesSpacing = 2.2;
holesDiameter = 1.5;
bottomLipThick = 2;
bottomLipR = lowerBottleDiameter/2;
galleryR = bulgeDiameter/2;
galleryH = belowBulgeToTop - ... | glb/cad_76bf41c4b297.glb |
Create a bDaisy filament feeding accessory consisting of a central vertical axle and a rotating circular platform.
Start by creating a central bolt with a diameter of 8mm and a length of 45mm. At the bottom of this bolt, add a hexagonal nut with a diameter of 15mm, an inner hole of 8mm, and a thickness of 3.5mm. Abov... | bearing_thickness = 7;
bearing_od = 22;
bearing_id = 8;
bolt_head = 8;
bolt_extra = 3;
bolt_length = 45;
bolt_diameter = 8;
bolt_nonlength = 20;
nut_diameter = 15;
nut_id = 8;
nut_thickness = 3.5;
washer_diameter = 17;
washer_id = 9;
washer_thickness = 1.6;
base_od = 80;
base_thickness = 3;
base_wall = 3;
base_foot... | glb/cad_0f5529d8c2f8.glb |
Create a pre-filter catch for a vacuum cleaner consisting of a curved clip and an attached anchor block.
Start by creating a curved clip with a thickness of 2.6mm and a width of 13.3mm. The clip should follow an arc with a radius of 70mm and an arc length of 32.6mm.
Attached to the side of this clip, create a recta... | $fn = 50;
clip_thickness = 2.6;
clip_width = 13.3;
arc_radius = 70;
arc_length = 32.6;
anchor_width = 19.4;
anchor_length = 13.8;
key_roundover_diameter = 3.8;
key_bar_thickness = 1.8;
key_height = 3.2;
translate([-arc_radius+1.85, arc_length/2-0.5, 0]) {
rotate(-arc_length*360/(4*PI*arc_radius), [0, 0, 1]) {
... | glb/cad_dc0001ae938c.glb |
Create a Battery Cap by constructing a hollow cylinder with an outer diameter of 18.9mm and a total height of 14.7mm. The main body should be a cylinder with a wall thickness of 2mm. Along the outer vertical wall, create 24 evenly spaced vertical ribs, each 1mm in radius and 14.7mm high, distributed every 15 degrees ar... | $fn=64;
tol=0.2;
id=14.5+tol+.7;
w=2;
od=id+w*2;
sw=1.91-tol;
st=3;
sd=0.7+tol/2;
sh=3;
h=7.8;
hh=12.7+w;
n=24;
mirror([0,0,1])
part();
module part() {
tab();
mirror([1,0,0])
tab();
cap();
}
module tab() {
difference() {
translate([id/2,0,sh])
cube([st,3,sw], center=true);
cylinder(r=id/2-sd+tol, h=hh... | glb/cad_48daa116debf.glb |
Create a Conical Spool Holder by constructing a truncated cone with a height of 25.4mm. The cone should taper from a narrow top diameter of 44.45mm to a wide bottom diameter of 69.85mm. Centered vertically through the middle of this conical shape, create a cylindrical hole with a diameter of 22.1mm to accommodate a bea... | Spool_Height = 25.4;
Spool_Thickness_Narrow = 44.45;
Smoothness = 300;
Bearing_Diameter = 22.1;
Spool_Thickness_Wide = 69.85;
translate([0, 0, Spool_Height])
rotate([180, 0, 0])
difference()
{
cylinder
(
d1 = Spool_Thickness_Narrow,
d2 = Spool_Thickness_Wide,
h = Spool_Height,
$fn = Smoothness
);
tra... | glb/cad_acc957a662b1.glb |
Create a Coaster Holder in the shape of an 8-pointed star prism. Start by constructing a central hexagonal prism with a radius of 5mm and a height of 5mm, oriented so the height extends along the Y-axis. Surround this central core by adding eight smaller triangular prisms, each with a radius of 5mm and a height of 5mm.... | Star(NumPoints=8);
module Star(radius = 10, height=5, NumPoints=5) {
rotate([0,90,0]) {
for (face = [0 : 1 : NumPoints-1]) {
rotate([0,0, (360/NumPoints)*face])
translate([5, 0, 0])
cylinder(r=radius*0.5, h=height, $fn=3);
}
cylinder(r=radius/2, h=height, $fn=6);
}
} | glb/cad_541026da5650.glb |
Create a screwthread cap consisting of a central hollow tube with an external helical thread.
First, create a hollow cylinder centered on the Z-axis with a height of 30mm. The inner diameter of this tube is 25mm and the outer diameter is 27mm (calculated as the average of the thread diameter and coil diameter).
Wrap... | fn_value = 50;
t_d1 = 4;
t_d2 = 25;
t_h1 = 3;
t_h2 = 30;
module half_torus( d1, w )
{
rotate_extrude(convexity = 10)
translate([w/2,0,0])
circle(r=d1/2,$fn=fn_value);
}
module basic_helix( d1, w, h1 )
{
rotate( a = -asin((d1+h1)/(2*w)), v=[0,1,0] )
{
union()
{
translate([w/2,0,0])
difference()
{... | glb/cad_12d660d08a20.glb |
Create a finger pad for a knob by starting with a solid cylinder that has a diameter of 12.93mm and a height of 3.5mm. Center a spherical void within the top surface of this cylinder to create a concave dimple. The sphere used to create this void should have a diameter of approximately 14.5mm and be positioned so that ... | pad_d=12.93;
h_tmp=20;
h_final=3.5;
mink_r=1;
divot_depth=h_final*0.75;
divot_d=2*((pad_d*pad_d/4) + divot_depth*divot_depth) / (2 * divot_depth);
difference() {
difference() {
translate([0,0,h_final-h_tmp])
cylinder(h=h_tmp,d=pad_d,$fn=200);
translate([0,0,divot_d/2 + h_final-divot_depth... | glb/cad_e128715a58f8.glb |
Create a microscope darkfield stop filter with a total thickness of 1mm. Start by creating a hollow ring with an outer diameter of 30mm and an inner diameter of 24mm. In the center of this ring, place a solid disk with a diameter of 15mm and the same 1mm thickness. To connect the central disk to the outer ring, add two... | d1 = 15;
d2 = 30;
outercirclewidth = 3;
thickness = 1;
difference(){
cylinder(d=d2, h=thickness, $fn=50);
cylinder(d=(d2-outercirclewidth), h=thickness, $fn=50);}
cylinder(d=d1, h=thickness, $fn=50);
translate([-(d2/2),-1,0]){
cube([d2,2,thickness]);}
translate([-1,-(d2/2),0]){
cube([2,d2,thickness]);} | glb/cad_71b85487d78d.glb |
Create a microscope darkfield stop filter with a total thickness of 0.8mm. Start by creating a hollow disc with an outer diameter of 32mm and an inner diameter of 24mm, resulting in a ring wall width of 4mm. In the center of this ring, place a solid cylinder with a diameter of 10mm and the same 0.8mm thickness. To conn... | d1 = 10;
d2 = 32;
outercirclewidth = 4;
thickness = .8;
difference(){
cylinder(d=d2, h=thickness, $fn=50);
cylinder(d=(d2-outercirclewidth), h=thickness, $fn=50);}
cylinder(d=d1, h=thickness, $fn=50);
translate([-10,0,0]){
intersection(){
rotate_extrude($fn=200)
translate([10, 0, 10])
square([1,thickness])... | glb/cad_57a521ecdf10.glb |
Create a microscope darkfield stop filter with a uniform thickness of 0.8mm. Start by creating a hollow ring with an outer diameter of 32mm and an inner diameter of 28mm. At the center of this ring, place a solid disk with a diameter of 10mm and the same 0.8mm thickness. To connect the central disk to the outer ring, a... | d1 = 10;
d2 = 32;
outercirclewidth = 4;
thickness = .8;
difference(){
cylinder(d=d2, h=thickness, $fn=50);
cylinder(d=(d2-outercirclewidth), h=thickness, $fn=50);}
cylinder(d=d1, h=thickness, $fn=50);
rotate([0,0,270]){
translate([0,-.25,0]){
cube([d2/2,.5,thickness]);}}
rotate([0,0,120]){
translate([-.25,-(d... | glb/cad_c1ab559546b6.glb |
Create a shelf peg by constructing a hexagonal prism with a length of 25mm and a diameter of 4.95mm. Ensure the prism is oriented horizontally along its longitudinal axis. | translate([0,0,2.475]) {
rotate([90,0,0]) {
cylinder(d=4.95,h=25,$fn=6);
}
} | glb/cad_ba62a92ebd76.glb |
Create a Prusa i3 Lead Screw Upgrade Z-axis top holder. Start with a base composed of three rectangular blocks: one measuring 8x45x16mm, one 30x5.01x12mm, and one 38x12x5mm, with an additional 15x12x5mm block positioned at [20, -8, 0].
From this base, remove several geometric volumes to shape the part. Carve out four... | module z_top_base(){
translate([0,-5,0]) cube([8,45,16]);
translate([0,-5,0]) cube([30,5.01,12]);
translate([0,-5,0]) cube([38,12,5]);
translate([20,-8,0]) cube([15,12,5]);
}
module z_top_fancy(){
translate([0.5,0.5,0]) rotate([0,0,-45-180]) translate([-15,0,-1]) cube([30,30,51]);
translate([0.5,40-0.5,0]) rota... | glb/cad_1948e3136162.glb |
Create a Prusa i3 Lead Screw Upgrade Z-axis bottom holder. Start by constructing the base body from three combined rectangular blocks: one measuring 8x40x41mm, one measuring 30x5x22mm, and one measuring 50x15x7mm, with an additional block of 15x10x30mm positioned at [21.5, -10, 0].
From this mass, remove several geome... | module z_bottom_base(){
translate([0,0,0]) cube([8,40,16+25]);
translate([0,-5,0]) cube([30,5.01,22]);
translate([0,-5,0]) cube([50,15,7]);
translate([21.5,-10,0]) cube([15,10,30]);
translate([0,-5,0]) cube([18,50,7]);
}
module z_bottom_fancy(){
translate([0.5,-2.5,0]) rotate([0,0,-45-180]) translate([-20,0,-1]... | glb/cad_512c5dd2c182.glb |
Create a Prusa i3 Lead Screw Upgrade X-end idler. Start by constructing a base using the x_end_base geometry. Within this base, create a central cylindrical cutout for a bearing with a radius of 11mm and a height of 8mm, centered at a height of 17mm.
Add two conical protrusions around the center of the bearing, each ... | include <../configuration.scad>
use <inc/x-end.scad>
bearing_center = 5+(x_rod_distance/2);
module x_end_idler_base(){
x_end_base();
%translate(v=[-5.5-(17/2)+(8/2),-25-2,bearing_center]) rotate(a=[0,-90,0]) cylinder(h = 8, r=(22/2)+2*0.66);
translate([0,0,9+6]) rotate([0,180,0]) cylinder(r1=15/2, r2=12/2,h=... | glb/cad_4f0a143ff075.glb |
Create a Prusa i3 Lead Screw Upgrade motor mount. Start with a base composed of two intersecting rectangular prisms: one measuring 17mm x 51mm x 30mm and another measuring 17mm x 47mm x 47mm, both centered on the X-axis.
From this base, remove a large rectangular block measuring 40mm x 15mm x 60mm from the side, and ... | include <../configuration.scad>
use <inc/x-end.scad>
motor_separation = 10;
module x_end_motor_base(){
x_end_base();
translate(v=[-14,31+motor_separation/2,26.5-23/2]) cube(size = [17,44+motor_separation,30], center = true);
translate(v=[-14,31-24/2+motor_separation/2,47/2]) cube(size = [17,20+motor_separation,47]... | glb/cad_2e30b07fc3d3.glb |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.