Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create an SD Card Clip consisting of a main rectangular plate and supporting side structures. Start with a primary base plate measuring 34mm in length, 35mm in width, and 2mm in height. At one end of this plate, add a securing lip that is 2mm wide, 15mm long, and 2mm high, positioned to overlap the base. On the unders...
translate([-5,-2,2]) cube([34,35,2]); translate([28,10,1]) cube([2,15,2]); translate([-2,-0.5,0]) cube([10,2,3]); translate([-2,27,0]) cube([10,4,3]); translate([-2,31.2,-8]) sideClamp(); translate([-2,-2.2,-8]) sideClamp(); translate([-5,4,1.7]) cube([27,23,0.3]); module sideClamp(){ difference(){ cube([24,...
glb/cad_caaee28747d4.glb
Create a telescoping flashlight handle by constructing a hollow tapered cylinder with a height of 150mm. The outer wall should taper from a base diameter of 48mm down to 42mm at the top. The interior must be hollowed out with a concentric taper, maintaining a consistent wall thickness of 1.8mm throughout the height. ...
use <screwThreads.scad> $fn=180; thickness = 1.8; heightAllSections = 150; topBottomDifference = 6; Size0 = 12; Size1 = 18; Size2 = 24; Size3 = 30; Size4 = 36; Size5 = 42; Size6 = 48; Size7 = 54; difference(){ difference(){ union(){ cylinder(d1=Size6, d2=(Size6-topBottomDifference), h=heightAllSe...
glb/cad_0b9c2b24f09d.glb
Create a square box with an open top, measuring 4000mm by 4000mm in footprint and 2900mm in height. The walls are 400mm thick. To construct the corners, place a cylinder with a radius of 400mm and a height of 2900mm at each of the four corners. Connect these corner cylinders with straight walls that are 400mm thick and...
cube([4000,4000,10]); turm(); translate([4000,0,0])turm(); translate([0,4000,0])turm(); translate([4000,4000,0])turm(); translate([-400,0,0])mauer(); rotate([0,0,-90])mauer(); translate([0,4400,0])rotate([0,0,270])mauer(); translate([4000,0,0])mauer(); module mauer(){cube([400,4000,2900]);} module turm(){ cylin...
glb/cad_6880bd23e6c6.glb
Create a toy tractor by combining a rectangular chassis with a cabin and four low-resolution cylindrical wheels. Start with a main rectangular body measuring 60mm in length, 30mm in width, and 20mm in height, positioned with its base 10mm above the ground plane. Atop this base, place a cabin consisting of a 30mm wide, ...
translate([5,0,10])cube([60,30,20]); translate([10,0,10])rotate([90,0,0])cylinder(r=10,5); translate([60,0,10])rotate([90,0,0])cylinder(r=10,5); translate([60,35,10])rotate([90,0,0])cylinder(r=10,5); translate([10,35,10])rotate([90,0,0])cylinder(r=10,5); rotate([0,7,0])translate([25,0,30])cube(30,20,30);
glb/cad_73c9bcd50092.glb
Create a lowrider-style truck model. The chassis is a central rectangular block with a length of 26mm, a width of 15mm, and a height of 12.5mm. Position two axle assemblies at the front and rear, each centered 9mm from the chassis midpoint. Each axle consists of a central cylinder with a diameter of 6mm and a length ...
$fs=0.6;$fa=5; wheel_dia=12.5; wheel_flat_thickness=3; wheel_conic_dist=6; wheel_base_dist=18; wheel_cutout_extra=1; axle_cutout=0.75; axle_dia=6; axle_len=4; body_lift=2; bed_axle_dia=3; bed_axle_cutout=1; bed_axle_bearing_extra=1; bed_height=10; bed_len=20; bed_wall=2.5; bed_axle_bearing_wall=1; bed_bearing_cutout=1...
glb/cad_e883cf79bada.glb
Create a squash player figure by assembling several geometric primitives. Start with a head consisting of a sphere with a radius of 2mm, centered at [2.5, 0, 12.8]. For the torso and limbs, use a series of rectangular prisms. Position a 7x4x2mm block for the upper body, rotated 65 degrees on the Y-axis and centered at ...
translate([2.5,0,12.8]) sphere(r=2,$fn=70); translate([2.2,-2,10.8]) rotate([0,65,0]) cube([7,4,2]); translate([0,2,7.5]) rotate([0,-20,0]) cube([5,1.5,2]); translate([-1.2,2.1,8.06]) rotate([0,25,0]) cube([1.3,1.3,1.5]); translate([-2.8,2.35,10]) rotate([0,45,0]) cube([2.5,0.7,0.7]); translate([5.19,-2,4.47]) rotate([...
glb/cad_d049136638f9.glb
Create a Christmas tree model by stacking a series of cylinders and a cone along a central vertical axis. Start with a base cylinder that is 60mm tall with a constant radius of 2mm. Above this base, place a sequence of twelve flat discs, each 2mm thick. These discs should be spaced every 5mm along the vertical axis, st...
cylinder (r1=2,r2=2,h=60,$fn=50); translate([0,0,5]) cylinder(r1=25,r2=25,h=2,$fn=50); translate([0,0,10]) cylinder(r1=23,r2=23,h=2,$fn=50); translate([0,0,15]) cylinder(r1=21,r2=21,h=2,$fn=50); translate([0,0,20]) cylinder(r1=19,r2=19,h=2,$fn=50); translate([0,0,25]) cylinder(r1=17,r2=17,h=2,$fn=50); translate([0,0,30...
glb/cad_15b16bf738c8.glb
Create a factory model starting with a rectangular base plate measuring 400mm by 400mm with a thickness of 2mm. On this base, construct a central rectangular building block that is 200mm wide, 200mm deep, and 50mm high, positioned 80mm from the left edge and 30mm from the front edge. Surround the base plate with a peri...
rotate([45,0,0])translate([500,0,0])cube([0,100,40]); translate([250,397,0])cube([150,3,40]); translate([0,397,0])cube([150,3,40]); cube([400,400,2]); translate([80,30,1])cube([200,200,50]); translate([0,0,0])cube([397,3,40]); rotate([0,0,90])cube([400,3,40]); translate([400,3,0])rotate([0,0,90])cube([397,3,40]); tra...
glb/cad_1a2a3ddf1fa8.glb
Create a stylized Empire State Building model using a series of stacked rectangular prisms. Start with a large base block measuring 30mm by 30mm with a height of 180mm. Centered atop this base, add a second tier measuring 20mm by 20mm with a height of 200mm, starting from the ground level. Above this, add a third, narr...
cube([30,30,180]); translate ([-7,-7,0]) cube([15,15,60]); translate ([-7,22,0]) cube([15,15,60]); translate ([22,-7,0]) cube([15,15,60]); translate ([22,22,0]) cube([15,15,60]); translate ([-3,-3,65]) cube([12,12,80]); translate ([-3,21,65]) cube([12,12,80]); translate ([21,-3,65]) cube([12,12,80]); translate...
glb/cad_e66b005964c2.glb
Create a Hagia Sophia Mosque Church model starting with a flat square base 60mm wide, 60mm deep, and 2mm thick. In the center, place a main building block 20mm in each dimension. Atop this central block, center a sphere with a radius of 9mm. Position four minarets at the corners of the base, each 25mm from the center...
translate([-30,-30,-2]) cube([60,60,2]); translate([-25,-25,0]) minarett(); translate([-25,25,0]) minarett(); translate([25,25,0]) minarett(); translate([25,-25,0]) minarett(); translate([-10,-10,0]) cube(20); translate([0,0,20]) sphere(9); translate([-10,0,0]) rotate([0,0,270]) seitenschiff(); translate([0,-10,0])...
glb/cad_691932be96da.glb
Create a stylized Golden Gate Bridge model. Start by constructing a long rectangular road deck 600mm long, 60mm wide, and 20mm thick, positioned with its base at a height of 55mm. Place two vertical support towers, each 20mm wide, 60mm deep, and 250mm tall, at opposite ends of the deck: one starting 60mm from the left ...
translate([5,0,55])cube([600,60,20]); translate([60,0,0])cube([20,60,250]); translate([540,0,0])cube([20,60,250]); translate([100,6,70])cube([20,10,10]); translate([263,6,70])cube([20,10,10]); translate([174,44,70])cube([20,10,10]); translate([374,44,70])cube([20,10,10]); translate([499,44,70])cube([20,10,10]); transla...
glb/cad_006caae98d22.glb
Create a Deadpool logo emblem by starting with a base cylinder 100mm in diameter and 10mm high. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a 80mm diameter and 8mm height, leaving a 10mm thick outer ring and a 2mm thick base. Cut a rectangular slot 10mm wide and 10mm deep throu...
difference(){ cylinder(h=10,r=50,$fn=500); translate([0,0,4])cylinder(h=8,r=40); } translate([0,-5,0])cube([45,10,10,]); translate([-45,-5,0])cube([45,10,10]); rotate([180,180,178])translate([0,24,4])difference(){ cylinder(h=5,r=20,$fn=120); translate([12,4,-2]) cylinder(h=8,r=27, $fn=120); } translate([4,4,0]) rota...
glb/cad_9f442268b1a8.glb
Create a snowman decoration designed to house a tealight. Start with a large sphere 45mm in diameter for the base, but flatten the bottom by intersecting it with a cube to create a stable flat surface. Position a medium sphere 40mm in diameter directly on top of the base. Add three small 5mm spheres as buttons: one cen...
ball = [45,40,30]; button = 5; button_angle = 25; hat_height = [2,15]; hat_dia = [20,15]; hat_tilt = [8,15]; difference() { union() { difference() { translate([0,0,ball[0]/3]) sphere(d=ball[0]); translate([0,0,-ball[0]/2]) cube(ball[0],center=true); } translate([0,0,ball[0]]) union() { sp...
glb/cad_794ffcbed02d.glb
Create a stylized Christmas Tree decoration with a total height of 100mm. The tree is composed of five stacked sections, each 20mm tall. Each section consists of six convex, petal-like lobes radiating from the center, creating a scalloped profile. The tree tapers as it rises; the radius of the lobes in each section d...
height = 100; sections = 5; branches = 6; diff = 0; curve=10; r=[23,19,14,10,6,0]*1.2; echo(r); section_height = height/sections; difference() { union() { for(i=[0:len(r)-2]) { echo(r[i],r[i+1]); rotate(0.5*i*180/branches) translate([0,0,section_height*i]) tree_section(r1=r[i]+diff,r2=r[i+1],curve...
glb/cad_a2491edb9180.glb
Create a MakerBot Coin consisting of two separate circular components, each with a total diameter of 36mm and a thickness of 4mm. The first component is a ring with an outer radius of 18mm and an inner radius of 16mm. Centered within this ring is a stylized letter "M" constructed from geometric primitives. The "M" is...
height = 36; thickness = 4; letters = "MI"; color_a = [0/255, 0/255, 0/255]; color_b = [255/255, 255/255, 255/255]; split(); module combined() { color(color_a) part_a(); color(color_b) part_b(); } module split() { translate([-height/2, 0, 0]) part_a(); translate([+height/2, 0, 0]) part_b(); } module part_a(...
glb/cad_6db341b4345f.glb
Create an Evergreen Tree Christmas Ornament puzzle consisting of several flat interlocking pieces with a uniform thickness of 1.5mm. First, create a bottom trunk and a top trunk. Both are narrow, elongated triangular shapes with a height of 70mm. Each trunk must feature a central rectangular slot of 1.5mm width and a...
height=70; thickness=1.5; slop=0.2; tab_radius=1; decoration = "Hanger"; print_card="No"; starpoints = 4; verticespoints = 6; randomize="No"; if(decoration == "Star") { star(points=starpoints,outer=5*height*.02,inner=2*height*.02,thickness=thickness); } else { if (decoration == "Hanger") { hanger(thicknes...
glb/cad_1b2fa1fbbe88.glb
Create a printable D20 gaming die by constructing a regular icosahedron. The overall shape should be scaled so that the distance from the center to the vertices is 20mm. On each of the twenty equilateral triangular faces, engrave the numbers 1 through 20. The numerals should be centered on their respective faces and re...
include <bitmap.scad>; phi = (1+ sqrt(5))/2; scale(20) translate([0, 0, cos(atan((phi - 1) / phi)) * phi]) rotate([0, atan((phi - 1) / phi * 2), 0]) difference() { intersection_for(a = [0:4]) rotate([0, 31.75, 72 * a]) intersection_for(r = [[0,0,0],[90,90,0],[90,0,90]]) rotate(r) linear_extrude(height = 10, center =...
glb/cad_c312eefea2d4.glb
Create a Solder Assistant gravity clamp. Start by constructing a base that consists of a central rectangular arm 120mm long, 6mm wide, and 7mm high, flanked by two symmetrical hull-shaped extensions that taper from the arm's width to a 30mm diameter circular base. At the front of the tool, create a head section. This ...
eps = 0.1; phi = (1 + sqrt(5)) / 2; screw_len = 45; screw_diam = 5 + 0.2; screw_head_h = 5; screw_head_d = 8.5 + 0.2; base_ballast_screw_diam = 5; top_ballast_screw_diam = 5 + 0.5; top_ballast_screw_head_diam = 8.5 + 1; arm_len = 120; base_w = arm_len / phi; top_ballast_y = 15; base_diam = 30; base_h = base_dia...
glb/cad_f37a24e699b6.glb
Create a door knob by combining a sphere and a cylinder. Start by centering a sphere with a radius of 13mm. Position a cylinder with a radius of 6mm and a height of 20mm so that it extends vertically from the top of the sphere, with its base centered at the sphere's origin.
cylinder(20,6,6); sphere(13);
glb/cad_51850561ef45.glb
Create a frictionless filament spooler base. Start with a rectangular bottom plate measuring 160mm in length, 115mm in width, and 3mm in height. At the center of the plate's length, add a rectangular protrusion that is 3mm wide, 115mm deep, and 8mm high. On each of the two shorter ends of the base, construct a symmetr...
module bottom(){ difference(){ union(){ cube([160,115,3]); translate([80,0,0]) cube([3,115,8]); } translate([12.5,17.5,0]) cube([57,75,3]); translate([92.5,17.5,0]) cube([57,75,3]); } } module side(){ union(){ linear_extrude( height = 4, center=false, convexity = 10, twist = 0, $fn = 10) polygon(points = [[0,0],[-10,4...
glb/cad_b8e760f6961d.glb
Create a 3D model of a gun by combining several rectangular prisms. Start with a base cube measuring 11mm wide, 14mm deep, and 10mm high. Add a second cube of 10mm by 15mm positioned at the origin. Place a third cube of 10mm by 15mm shifted 10mm along the x-axis and -1mm along the y-axis. Finally, add a fourth cube of ...
cube(11,14,10,1); cube(10,15); translate([10,1,-1])cube(10,15); translate([0,0,10]) cube(10,15);
glb/cad_1a2e3bd37940.glb
Create a bracket for an 80mm Fresnel lens. Start with a central square base measuring 100mm by 100mm with a total height of 2.3mm. In the center of this base, create a circular cutout with a diameter of 80.19mm to accommodate the lens. Add two mounting feet extending from opposite sides of the base. Each foot should b...
ids = 0.25; mt = 0.4; fn=80; eps=0.03; FOD = 79.94 + ids; FTH = 1.9; Fs = 0.4; Fsd = 0.4; HX = FOD + 20; HY = FOD + 20; HZ = FTH + Fs; HZ2 = 4; FTX = 20; FTY = 4; FTZ = 25; HOD = 4.2; AX=0; AY=0; BX=FTX*2; BY=0; CX=0; CY=FTX; module tri1() { polygon( points=[ [AX,AY], [BX,BY], [CX,CY] ] ); } module ...
glb/cad_b0e2358f7f9c.glb
Create a snowman figure by stacking three spheres of decreasing size vertically. Start with a large base sphere with a radius of 26mm centered at [0, 0, -32]. Place a medium sphere with a radius of 20mm directly above it at [0, 0, 0], and top the figure with a small sphere with a radius of 18mm centered at [0, 0, 27]. ...
$fn=100; $fs=1; sphere(20); translate([0,0,27]) sphere(18); difference() { translate([0,0,-32]) sphere(26); translate([-20,-30,-70]) cube([40,60,20]); }; translate([0,-35,25]) rotate([-90,0,0]) linear_extrude(height=20, scale=4) circle(1); translate([0,0,39]) cylinder(r=18 ,h=2); translate([0,0,40])cylinder...
glb/cad_428a36a0f9cb.glb
Create a compartmented pill box container and matching sliding lids. The container is a solid block with a total width of 163mm (7 cells across), a total depth of 110mm (4 cells deep), and a total height of 24mm. The walls and floor are 2mm thick. Inside, create a grid of 28 rectangular pockets, each measuring 22mm by ...
$fn=32; object = 1; slop = 0.25; cellx = 22; celly = 22; height = 22; xcells = 7; ycells = 4; filletr = 6; wall = 2; lidthick = 2; module EndOfPublicParams() {} totalx = wall + xcells*(cellx+wall); totaly = wall + ycells*(celly+wall); module RoundBox(x,y,z,r) { hull() { translate([r,r,r]) spher...
glb/cad_066f1977f889.glb
Create a Printrbot Y Belt Tensioner V2 consisting of two separate components: a main housing block and a sliding tensioner plate. First, construct the main housing as a block measuring 33mm wide, 33mm deep, and 18.5mm high. Hollow out the center of this block by removing a 30mm wide by 27mm deep by 16mm high rectangu...
$fn=150; difference(){ cube([33,33,18.5]); translate([3.5,3,3.5])cube([30,27,16]); translate([0,-1,22])rotate(30,[0,1,0])cube([60,35,16]); translate([8,6.75,-1])cylinder(5,2,2); translate([8,26.25,-1])cylinder(5,2,2); translate([8,6.75,2.5])cylinder(5,4.6,4.6,$fn=6); translate([8,26.25,2.5])cylinder(5,4.6,4.6,...
glb/cad_6f6e19263f85.glb
Create a Parametric Multileg Walker base. Start by constructing a hexagonal plate with a height of 2mm. The plate is formed by the convex hull of six cylinders, each with a radius of 3mm, positioned at the vertices of a hexagon with a radius of 60mm. Around the perimeter, create six servo mounting slots. Each slot is ...
use<ARDUINO/arduino.scad> include<servo_9g.scad> tol = .2; sides = 6; angle = 180-(sides-2)*180/sides; theta = angle/2; echo(angle); radius = 60; corner_r = 3; length = (radius-corner_r)/cos(theta); echo("lenght", length); height = 2; wall_t = 2; up = 1; cube_x = wall_t*2 + servo_l+tol*2; cube_y = wall_t*2 + serv...
glb/cad_074ecfd36930.glb
Create a servo mount for a multileg walker robot. Start by constructing a base plate 4mm thick. The main body is a hull formed by a cylinder with a 6mm radius and a rectangular block measuring 26mm by 12mm, centered on the Y-axis. Remove a central hole from the cylindrical end with a radius of 3mm and a depth of 5mm....
use<horn1.scad> mount_y = 12; mount_x = 32-mount_y/2; thick = 4; difference() { union() { hull() { cylinder(r=mount_y/2, h=thick); translate([0,-mount_y/2,0]) cube([mount_x,mount_y,thick]); } } translate([0,0,1.2]) horn1(); translate([0,0,-.1...
glb/cad_5a7b2d019396.glb
Create a Parametric Multileg Walker servo mount by starting with a base plate formed from the convex hull of two cylinders, each with a radius of 6mm and a height of 4mm, positioned 39mm apart center-to-center along the x-axis. From this solid base, remove two horn-shaped voids: one centered at the first cylinder and a...
use<horn1.scad> mount_y = 12; mount_x = 51-mount_y; thick = 4; difference() { union() { hull() { cylinder(r=mount_y/2, h=thick,$fn = 64); translate([mount_x,0,0]) cylinder(r=mount_y/2, h=thick,$fn = 64); } } translate([0,0,1.2]) horn1(); trans...
glb/cad_3163edbff84c.glb
Create a Multileg Walker mount by starting with a base plate that is a union of a cylinder with a radius of 6mm and a rectangle measuring 26mm by 12mm and 2.4mm thick, centered such that the cylinder is at one end. On top of this base, add a second cylinder with a radius of 5.5mm and a height of 2.4mm, centered on the ...
mount_y = 12; mount_x = 32-mount_y/2; bearing_r = 3.7; bearing_h = 1.2; thick = 2.4; difference() { union() { hull() { cylinder(r=mount_y/2, h=thick); translate([0,-mount_y/2,0]) cube([mount_x,mount_y,thick]); } translate([0,0,bearing_h]) cyli...
glb/cad_605f07154469.glb
Create a Parametric Multileg Walker mount by starting with a base shape formed by the convex hull of two cylinders, each with a radius of 6mm and a height of 2.4mm, positioned 39mm apart along the x-axis. On top of this base, centered over each of the two cylinders, add a second cylinder with a radius of 5.5mm and a he...
mount_y = 12; mount_x = 51-mount_y; bearing_r = 3.7; bearing_h = 1.2; thick = 2.4; difference() { union() { hull() { cylinder(r=mount_y/2, h=thick,$fn = 64); translate([mount_x,0,0]) cylinder(r=mount_y/2, h=thick,$fn = 64); } translate([0,0,bear...
glb/cad_2464c7797f4f.glb
Create a rectangular block for a Parametric Multileg Walker with dimensions of 38mm in length, 12mm in width, and 5.6mm in height. Remove several cylindrical holes, each with a radius of 0.9mm, from this block. Place two holes running lengthwise through the center of the block's height; position the first at a width of...
include<servo_9g.scad> $fn = 12; l = 38; w = 12; t = 5.6; rad = 0.9; difference() { cube([l,w,t]); translate([-.1,2,t/2]) rotate([0,90,0]) cylinder(r=rad, h=8); translate([-.1,10,t/2]) rotate([0,90,0]) cylinder(r=rad, h=8); translate([.1+l,2,t/2]) rotate([0,-90,0]) cylinder(...
glb/cad_6725059de41d.glb
Create a Parametric Multileg Walker mount by starting with a solid rectangular base measuring 36mm in width, 12mm in depth, and 21mm in height. From this base, remove a central rectangular vertical slot that is 23mm wide and 12mm deep, extending 40mm upwards through the top. Carve out a servo-shaped cavity for a 9g ser...
include<servo_9g.scad> mount_x = 36; mount_y = servo_l+2; servo_tol = 0.3; servo_x = servo_l + servo_tol*2; servo_y = servo_w + servo_tol*8; difference() { union() { cube([mount_x,mount_y,wing_place+2]); } translate([mount_x/2,mount_y/2,19]) cube([servo_y, servo_x, 40], center = true...
glb/cad_bc0f8cba122e.glb
Create a parametric multileg walker component starting with a rectangular base measuring 34mm in length, 14mm in width, and 1mm in height. At one end of the base, centered along the width, add a cylindrical protrusion with a height of 2.9mm and a radius of 3.4mm. Pierce the entire assembly with two vertical holes of ...
include<servo_9g.scad> bearing = false; radius = bearing ? 1.84 : 3.4; difference() { union() { cube([34,14,1]); translate([servo_l/2+hole_offset*2,7,1]) cylinder(r1=radius-.2, r2=radius,h=2.9, $fn = 64); } translate([hole_offset,7,-10]) cylinder(r=m...
glb/cad_c51923510252.glb
Create a Parametric Multileg Walker base. Start by constructing a main body that combines a thin vertical slab measuring 1mm by 22mm by 22mm with a centered rectangular block measuring 30mm in length, 4mm in width, and 4mm in height, blending these two shapes together using a convex hull. From this combined volume, rem...
include<servo_9g.scad> mount_y = servo_l+2; foot_x = 30; foot_y = 4; foot_z = 4; difference() { union() { cube([1,mount_y,mount_y]); hull() { cube([1,mount_y,mount_y*2/3]); translate([foot_x/2,mount_y/2, foot_z/2]) cube([foot_x, foot_y, foot_z], center = true); } } translate([-1,3,3]) rot...
glb/cad_e811873d1f3a.glb
Create a Vivitar 283 battery door by starting with a base rectangular plate measuring 32.5mm wide, 42mm long, and 2mm thick. Modify the top surface of this plate by adding a raised section that is 5mm high, but constrain its shape so it is formed by the intersection of a 29.5mm by 42mm rectangle (offset 1.5mm from the ...
cube([32.5,42,2]); intersection(){ union(){ translate([1.5,0,0]) cube([29.5,42,5]); cube([32.5,4,5]); } translate([0,21,-119.5]) rotate([0,90,0]) cylinder(h=40,r=125,$fn=60); } translate([0,0,0]) cube([32.5,2.5,2]); translate([5,8,4]) cube([22.5,1,1.5]); translate([5,8,4]) cube([22.5,1,1.5]); translat...
glb/cad_3c1a97a6c81c.glb
Create a water level sensor mount consisting of two perpendicular rectangular plates joined at a 90-degree angle. The base plate is 40mm wide, 25mm deep, and 4mm thick. The vertical plate is 40mm wide, 4mm thick, and 30mm tall, extending upwards from the back edge of the base. In the center of the vertical plate, crea...
module flange(){ difference(){ cube([40,4,25]); holes(); } } module hole(){ rotate([90,0,0]) { cylinder(r = 1.55, h = 10, $fn=50, center = true); translate([0,0,-1.6]) cylinder(d = 5.6, h = 2, $fn=50, center = true); translate([-1.55,-15,-5]) cube([3.1, 15, 10]); translate([...
glb/cad_bad324b7301a.glb
Create a Water Level Sensor Mount consisting of two perpendicular rectangular plates joined at a 90-degree angle. The base plate is 40mm wide, 40mm deep, and 4mm thick. The vertical flange is 40mm wide, 30mm tall, and 4mm thick, extending upwards from the back edge of the base. In the center of the vertical flange, cr...
module flange(){ difference(){ cube([40,4,25]); holes(); } } module hole(){ rotate([90,0,0]) { cylinder(r = 1.55, h = 10, $fn=50, center = true); translate([0,0,-1.6]) cylinder(d = 5.6, h = 2, $fn=50, center = true); translate([-1.55,-15,-5]) cube([3.1, 15, 10]); translate([-...
glb/cad_905f4d95d3da.glb
Create a washer by constructing a thin, flat cylinder and removing a smaller concentric cylinder from its center to create a circular hole. For an M5 size washer, the outer cylinder should have a radius of 4.85mm and a height of 0.9mm. The inner hole should have a radius of 2.65mm and be centered vertically and horizon...
washer_sides = 100; washer_M3 = [((3.4-3.2)/2)+3.2,((7-6.7)/2)+6.7,((0.6-0.4)/2)+0.4]; washer_M4 = [((4.5-4.3)/2)+4.3,((9-8.7)/2)+8.7,((0.9-0.7)/2)+0.4]; washer_M5 = [((5.3-5.5)/2)+5.3,((10-9.7)/2)+9.7,((1.1-0.9)/2)+0.9]; washer_gen(washer_M5); build_size_width = 100; build_size_depth = 100; build_space_between_wash...
glb/cad_fb20c505ca06.glb
Create an Acoustic Phone Holder by starting with a solid rectangular block measuring 180mm in length, 20mm in width, and 76mm in height, positioned so the base is at -20mm on the Z-axis. From this main body, remove a central rectangular volume of 100mm by 10mm by 140mm. To create the acoustic chamber, remove three conc...
difference(){ difference(){ difference(){ difference(){ translate([0,0,-20]) cube([180,20,76],false); cube([100,10,140],false); } union(){ rotate([90,0,0]) translate([145,21,-5]) cylinder(10,30,30,center=false); rotate([90,0,0]) translate([145,21,-10]) cylinder(15,25,25,center=false); rotate([90,0,0]) translate([145,21...
glb/cad_fd6d7d7ce5ed.glb
Create a Flash Stand by starting with a base plate that is a 95mm by 95mm square with a thickness of 15mm. Shape the outer corners of this plate by removing four large cylindrical sections with a 30mm radius, centered at the four corners of the square, and further refine the overall outer boundary by intersecting the p...
difference(){ intersection(){ cube([95,95,15]); translate([95/2,-1,-81]) rotate([-90,0,0]) difference(){ cylinder(h=100,r=96,$fn=100); translate([0,-40,0]) cylinder(h=100,r=55,$fn=6); } } translate([95/2,-10,0]) cylinder(h=100,r=30); translate([95/2,95+10,0]) cylinder(h=100,r=30);...
glb/cad_cf7e20f08335.glb
Create a Pentacle consisting of a circular ring and an embedded five-pointed star. Start by creating a hollow cylinder with an outer radius of 29mm, an inner radius of 26mm, and a height of 4mm, centered on the origin. Inside this ring, place five identical rectangular bars, each measuring 3mm wide, 50mm long, and 4mm ...
difference() { cylinder(r=29,h=4, center=true, $fn=80); cylinder(r=26,h=5, center=true, $fn=80); } union() { rotate([0,0,0])translate([-8,0,0])cube([3,50,4],center=true); rotate([0,0,72])translate([-8,0,0])cube([3,50,4],center=true); rotate([0,0,144])translate([-8,0,0])cube([3,50,4],center=true); rotate([0,0,216])trans...
glb/cad_c9615514201b.glb
Create a Taj Mahal model by starting with a square base measuring 10mm by 10mm with a height of 1mm. Center a sphere with a radius of 4mm on top of this base, positioned 3.7mm above the base's surface. Place a second sphere of the same 4mm radius directly above the first, with its center positioned 11.5mm above the bas...
cube([10,10,1],true); translate([0,0,3.7]) sphere(4, $fa=5, $fs=0.1); translate([0,0,11.5]) sphere(4, $fa=5, $fs=0.1); translate([0,0,18]) cylinder(h=10, r1=2, r2=0, center=true, $fs=0.1);
glb/cad_c05b0e330161.glb
Create a headset hook for a monitor corner. Start by constructing a vertical front board that is 50mm long, 1mm thick, and 16mm high. At the bottom of this board, create a curved hook section by forming a cylinder with a radius of 25.92mm and a width of 20mm. This cylinder should be partially hollowed out by removing a...
length=50; width_top=20; height_front=16; text_line1="Work hard!"; text_line2="Dream big!"; font_size=5; difference() { translate ([0,0,-24.081]){ rotate([0,90,0]){ difference() { difference() { difference(){ cylinder(h=width_top, r=25.92, center=false); tran...
glb/cad_1e7f0fe57a31.glb
Create a modular ashtray piece that represents one quarter of a circular assembly. Start by constructing a solid shape that is the intersection of a 60mm by 60mm by 80mm cube and a 30mm by 30mm by 80mm cube, further constrained by a larger cylindrical form. Within this volume, carve out a central cylindrical void with ...
$fn = 50; difference() { ashtray(); decoration(); } module ashtray() { scale([4, 4, 4]) intersection() { cube([60, 60, 20]); cube([30, 30, 20]); difference(){ piece(); # translate([6.2, 6.2]) cylinder(4.5, 5, 5); } } } module decoration() { difference() { cylinder(4.5, 97, ...
glb/cad_1a00f66a1d16.glb
Create a sculpture called the Unvase. Start by centering a vertical cylinder with a diameter of 10mm and a total height of 130mm. At the bottom of this central cylinder, add a wider base cylinder with a diameter of 28.8mm and a height of 13mm. Directly above this base, add a conical section that transitions from the 28...
$fn=100; base = 10; tall = 130; thick = 1.20; fin = 20; angle = 9; ratio = 10; num = 360/angle; dia = base + fin - thick; cylinder(tall/ratio,dia,dia); translate([0,0,tall/ratio]) cylinder(tall/(ratio/2),dia,0); cylinder(tall,base,base); for(i=[0:num]){ rotate(angle*i) translate([base - thick,-thick/2,0]) cub...
glb/cad_750a2bd591ed.glb
Create a mounting plate for an E3D hotend by starting with a rectangular block 64mm long, 24mm wide, and 5.6mm thick. Center a circular cutout with a radius of 6.1mm through the thickness of the plate at the midpoint of the long edge, and extend this cutout into a rectangular notch that removes material from the top ed...
hole_d = 50; hole_r = 2.4; th = 5.6; r = 6.1; len = hole_d + 14; wid = 24; difference() { cube(size=[len, wid, th], center=true); cylinder(r=r, h=th+0.1, center=true, $fn=100); translate([0, wid/4 +0.1, 0]) cube(size=[r*2, wid/2 + 0.2, th+0.1], center=true); for(x=[-1,1]) rotate([0,0,x*90]) translate([0, hole...
glb/cad_e9ecb98d7b53.glb
Create a 3D model of a Minecraft bow and arrow. The model is composed of small cubes, each with a base dimension of 3mm. First, construct the bow body by placing cubes in a curved, mirrored arc. Position cubes to form a wide, segmented bow shape: place a 4x1x1mm block at [10,14,0], an 8x1x1mm block at [7,13,0], a 9x1...
tool = 8; cube_size = 30; hanghole = 1; scale([cube_size/10,cube_size/10,cube_size/10]) { if (tool==1) spade(); if (tool==2) pick(); if (tool==3) axe(); if (tool==4) hoe(); if (tool==5) sword(); if (tool==6) egg(); if (tool==7) bow(); if (tool==8) bow_and_arrow(); if (hanghole ==...
glb/cad_a8ba69d69091.glb
Create a snowman figure by stacking three spheres of decreasing size along a central vertical axis. Place the largest sphere, with a radius of 15mm, at the base. Position a second sphere with a radius of 10mm centered 20mm above the first, and a third sphere with a radius of 7mm centered 35mm above the base. Flatten th...
make_hollow = 0; difference(){ union(){ translate([0,0,40]) hat(); body(); translate([0,5,35]) rotate([-90,0,0]) nose(); translate([-3,6,37]) coal(); translate([3,6,37]) coal(); translate([0,8.5,25]) coal(); translate([0,10,20]) coal(); translate([0,8.5,15]) coal(); } if (make_hollow == 1){ h...
glb/cad_bb0222eb5746.glb
Create two connector sockets, one male and one female, for LED strips. For the female socket, create a rectangular outer block measuring 10mm wide, 20mm long, and 8.3mm high. Subtract a central rectangular hole measuring 7.2mm wide, 20mm long, and 4.5mm high, positioned 1.5mm from the side walls and the base. Within ...
male_x=7; male_y=10; male_z=4.3; wall_thickness=1.5; female_y=20; female_z_extra=2; male_z_extra=1; diff_offset=.01; contact_channel_x=1.5; contact_channel_y=40; contact_channel_z=1.5; contact_channel_recess_male=1; contact_channel_recess_female=0; contact_channel_separation=3; extrusion_offset=0.1; male_cont...
glb/cad_239e58308d74.glb
Create a fabric spiral composed of a series of recursively scaled cones. Start by placing a cone with a base radius of 10mm and a height of 30mm. Generate subsequent cones in a spiral pattern, where each new cone is rotated 30 degrees around the Z-axis relative to the previous one and shifted outward from the center. E...
startBase = 10; startHeight = 30; module spike(base, height){ if(height>2 && base > 1){ cylinder(r1 = base, r2 = 0,h = height); rotate([0,0,30])translate([2*base+1,0,0])spike(base*.9, height*.9); } } spike(startBase ,startHeight);
glb/cad_269d6db3ebf0.glb
Create a solder tip holder by starting with a rectangular block that has rounded vertical corners with a radius of 5mm. The block should have a total height of 18mm, a base thickness of 3mm, and overall dimensions of 39mm by 39mm. Within this block, create a 3x3 grid of cylindrical holes to hold the tips. Each hole mus...
tipGap = 3; tipSize = 9; tipsPerRow = 3; tipsPerColumn = 3; height = 18; baseHeight = 3; $fn=40*1; tipDim = tipSize/2; width = tipsPerRow * (tipGap + tipSize) + tipGap; length = tipsPerColumn * (tipGap + tipSize) + tipGap; tipHeight = height - baseHeight; difference() { translate([length/2-(tipGap+tipDim), ...
glb/cad_9dae9a6b033f.glb
Create a Quadrysteria QR200 Antenna holder. Start with a rectangular base measuring 17mm by 10mm with a thickness of 1.2mm and rounded corners of 0.1mm. Center a vertical hole through this base with a diameter of 3.2mm, and create a smaller concentric inner hole with a diameter of 1.75mm. Construct two symmetrical ant...
antennaLength = 20; antennaOuter = 3; antennaInner = 1.85; thickness=1.2; gapThickness=1.2; screwWidth=1.75; holeWidth=3.2; $fn = 40*1; drawBase(); drawHolders(); module drawBase() { translate([0,0,-(thickness+gapThickness)]){ difference() { translate([4,0,gapThickness]) { ...
glb/cad_643bf0cd3890.glb
Create a landing foot for a Quadrysteria QR200. Start by forming the main body as a union of a cylinder with a radius of 5mm and a height of 10mm, and a sphere with a radius of 5mm centered at the base of the cylinder. From this solid, remove a central vertical hole for a screw with a radius of 1.5mm that extends thr...
useM3nut=0; $fn=40*1; m25nut=5*1; m25nuth=2*1; m25screw=2.5*1; m3nut=5.5*1; m3nuth=2.4*1; m3screw=3*1; gap=0.5*1; if (useM3nut==1) { echo("M3"); screw=m3screw+gap; nut=m3nut+gap*3; nutHeight=m3nuth+gap*1.5; drawFoot(screw, nut, nutHeight); } else { screw=m25screw+gap; nut=m25nut+gap*3; ...
glb/cad_44557f8b1fb1.glb
Create a toilet paper roll holder consisting of a main vertical shaft and a separate wall mounting plate. For the holder, create a central cylinder with a radius of 10mm and a height of 105mm. At the top of this cylinder, add a decorative cap formed by the convex hull of a 10mm radius cylinder with a height of 2mm and ...
$fn=128; translate([0,0,5]) cylinder(r=10, h=105 ); hull(){ translate([0,0,105]) cylinder(r=10, h=2); translate([8,0,112]) #cylinder(r=10, h=2); translate([0,0,110]) cylinder(r=15, h=4); }; difference(){ hull(){ translate([0,0,-5]) cylinder(r=20, h=5); translate([0,0,5]) cylinder(r=10, h=4); }; translate([12,0,-3]...
glb/cad_b97373f3f87e.glb
Create a wall mount for a cordless drill. Start with a square base plate measuring 80mm by 80mm with a thickness of 5mm. At each of the four corners of this base, create a cylindrical hole with a diameter of 6mm and a depth of 20mm to accommodate screws. Attached to this base is a vertical support structure. This stru...
$fn=50; module base() { cube([80,80,5],center=false); } module holder() { difference() { cylinder(d=45+8,h=52+10,center=false); translate([0,0,-1]) cylinder(d=45,h=52+4+10,center=false); translate([0,35,0]) rotate([45,0,0]) cube([80,80,80],center=true); } } module holder_hul() { translate([0,0,-1]) cylinder(d=45,h...
glb/cad_742917c89795.glb
Create a Drip Nozzle Eco-cap designed for water bottles. Start with a base cylinder that has an outer radius of 14.25mm and a height of 8mm. This base must be hollowed out by a central hole with a radius of 12.5mm. Within this base, incorporate four right-handed trapezoidal threads with a pitch of 8mm and a thread angl...
include <Thread_Library.scad> insideRadius = 12.5; insideTubeRadius = 3.5; d=1.5; pitchHeight=0.75; height = 8; outsideRadius = insideRadius + d + pitchHeight; outsideTubeRadius = insideTubeRadius + d; difference(){ union(){ difference(){ cylinder(r1=outsideRadius, r2=outsideRadius, h=height...
glb/cad_e64c0d8a11f6.glb
Create a Dog Door Holder Bracket by constructing a base block 15mm wide, 26mm long, and 2.5mm thick. Attach a side wall to one edge of the base that is 2mm wide, 26mm long, and 6.1mm high. On top of this side wall, add a horizontal ledge that is 6mm wide, 26mm long, and 2mm thick, positioned at the top of the wall. To ...
margin = 0.2; width = 15; length = 26; door_gap = 3.5; screw_head_depth = 2.4; thickness = 2; thickness_bot = screw_head_depth + 0.1; side_h = thickness_bot + door_gap + 0.2; holder_w = thickness + 4; screw_diam_top = 5.6+0.1; screw_diam = 2.9; module screw_hole(d1,d2,th) { cylinder ($fn=30,d1=d1, d2 = d2, h=t...
glb/cad_62a23d9581f1.glb
Create a Dog Door Holder Bracket by starting with a rectangular base measuring 10mm wide, 26mm long, and 2.5mm thick. On the side of this base, carve out a semi-circular channel with a radius of 13mm and a wall thickness of 2mm, creating a curved cradle that spans the 26mm length. To complete the cradle's structure, ad...
margin = 0.2; width = 10; length = 26; door_gap = 3; screw_head_depth = 2.4; thickness = 2; thickness_bot = screw_head_depth + 0.1; side_h = thickness + door_gap; holder_w = thickness + 4; screw_diam_top = 5.6+0.1; screw_diam = 2.9; arc_radius = 13; module screw_hole(d1,d2,th) { cylinder ($fn=30,d1=d1, d2 = d...
glb/cad_69f7224c9448.glb
Create a Slotted Block for a mirror grinding machine. Start with a rectangular base measuring 63.5mm in length, 50.8mm in width, and 17.46mm in height. Carve a large cylindrical cutout from the center of the block's front face with a radius of 149.225mm, centered on the width, to create a concave profile. In the cent...
mirror_D_inch = 11.75; block_h_inch = 11/16; slot_l_inch = 1.5; slot_w_inch = 3/8; slot_h2_inch = 3/8; slot_w2_inch = 0.88; wash_out_w_inch = 1/4; wash_out_h_inch = 5/32; adj = 0.5; i2mm = 25.4; mirror_D = mirror_D_inch * i2mm; block_h = block_h_inch * i2mm; slot_l = slot_...
glb/cad_745f5529468c.glb
Create a Covalent Bonding Customizer model starting with a central cylindrical base that is 40mm in diameter and 6mm thick, centered at the origin and shifted 3mm down on the Z-axis. On the top surface of this base, center the capital letter "H" as a 3D extruded text element with a height of 0.6mm, scaled by a factor o...
element = "H"; bonds = 1; module main(){ union(){ translate([0,0,-3]) cylinder(3,40,40); translate([-10,-10,0]) scale([2,2,5]) linear_extrude(0.6) text(element); if(bonds>=1){ translate ([30,0,0]) cylinder(10,6,6); } if(bonds>=2){ translate ([-30,0,0]) cylinder(10,6,6); } ...
glb/cad_0584f167bbeb.glb
Create a Covalent Bonding Customizer model consisting of two identical circular end-caps connected by a rectangular bridge. Start by creating a cylinder with a radius of 5mm and a height of 8mm, centered at the origin. Remove a smaller concentric cylinder from this shape with a radius of 6mm and a height of 6mm, shifte...
length = 50; union(){ difference(){ cylinder(5,8,8); translate([0,0,-1]) cylinder(7,6,6); } translate([6,-5,0]) cube([length,10,5]); difference(){ translate([length+12,0,0]) cylinder(5,8,8); translate([length+12,0,-1]) cylinder(7,6,6); } }
glb/cad_7e2782a514c4.glb
Create a Symmetrical Triangle Generator by constructing a repeating pattern of interlocking geometric polylines. First, define a base polyline using the coordinates [0, 0], [1.5, 2.5], [1.5, -6], [-4, -6], and [-6.5, 0]. Create a "virtual triangle" unit by duplicating this polyline and rotating the copies 120 and 240...
xs = "0 1.5 1.5 -4 -6.5"; ys = "0 2.5 -6 -6 0"; triangle_side_length = 20; x_triangles = 10; y_triangles = 6; line_width = 0.5; height = 2; module line(point1, point2, width = 1, cap_round = true) { angle = 90 - atan((point2[1] - point1[1]) / (point2[0] - point1[0])); offset_x = 0.5 * width * cos(angle); o...
glb/cad_489dec37f09b.glb
Create a bq Hephestos encoder knob. Start with a main outer cylinder 30mm in diameter and 20mm high. Hollow out the center by removing a cylinder 26mm in diameter and 25mm high, starting from 8mm below the base, to create a thin-walled shell. Inside the knob, add a central mounting cylinder 13mm in diameter and 18mm hi...
difference(){ union(){ difference(){ cylinder(h=20, d=30, $fn=100); translate([0,0,-8]) cylinder(h=25, d=26, $fn=100); } difference(){ cylinder(h=18,d=13, $fn=100); difference(){ cylinder(h=10, d=8.5); translate([0.75,-4.25,-2.5]) cube([8.5,8.5,15]); } } contador=0; for(contador=[1:4]){ rotate([0,0,90*conta...
glb/cad_308d50d3e561.glb
Create a door holder consisting of two separate components: a hook and a retaining plate. For the hook, start with a rectangular base measuring 26mm by 20mm with a thickness of 5mm. Drill two 5mm diameter holes through this base, positioned at a distance of 8.67mm from the side edge. Attached to the side of this base, ...
$fn=30; length=40; a1=20; a2=26; thick=5; hole=5; rotate([90,0,0]) { difference() { cube([a2,a1,thick]); translate([a2/3,hole,-thick/4]) cylinder(thick*2,hole/2,hole/2); translate([a2/3,a1-hole,-thick/4]) cylinder(thick*2,hole/2,hole/2); } translate([a2-thick,0,0])...
glb/cad_9c312c01d115.glb
Create a Parametric Round Box consisting of a main container and a matching lid. For the container, create a cylinder with a diameter of 80mm and a height of 20mm. Hollow out the center by removing a smaller concentric cylinder starting 1.8mm from the base, leaving a floor thickness of 1.8mm and a wall thickness of 1.8...
include <pins.scad>; round_box(80, 20, 6, 1.8); module round_box(diameter, height, sections, wall_thickness) { difference() { cylinder(h=height, r=diameter/2); translate([0, 0, wall_thickness]) cylinder(h=height, r=diameter/2-wall_thickness); } cylinder(h=height, r=4); for(i=[1:sections]) { rotate([0, 0, i ...
glb/cad_e9161076f498.glb
Create a sliding lid box with external dimensions of 172mm width, 41mm length, and 25mm height. The main body is an open-topped container with walls 2mm thick and a floor 1mm thick. The interior is divided into four equal compartments by three vertical dividers, each 1mm thick, spanning the length of the box. The top ...
Box_x = 172; Box_y = 41; Box_z = 25; Wall_thickness = 2; Floor_thickness = 1; Lid_thickness = 3; Lid_inset = "yes"; Grip_recess = "yes"; Looseness = 0.8; Show_assembled = "no"; X_Dividers = 3; Y_Dividers = 0; lid_scale = 0.985; fingernail_width = 0.5; Delta = 0.1; roundness = 32; epsilon = 0.001; module lid(...
glb/cad_155b8689c153.glb
Create an auto bed leveling sensor holder. Start with a base plate that is 32mm wide and 32mm deep. On one side, construct a vertical semi-circular housing with a flat bottom and a total height of 12mm. This housing must feature a central cylindrical hole with a diameter of 12.2mm passing through it to accommodate the ...
sensorHoleDiameter = 12.2; $fn=100; module vetrak() { difference() { linear_extrude (height=3) difference() { union() { difference() { square (32, center=true); circle (d=27); } } translate ([-12,-12]) circle (d=3.2); translate ([12,-12]) circle (...
glb/cad_a0695068ab48.glb
Create a dog door holder bracket by starting with a solid rectangular base measuring 15mm wide, 26mm long, and 2.5mm thick. Add two vertical sidewalls to this base, each 2mm thick and 6.2mm high, positioned at opposite edges of the width to create a central gap of 3.5mm for a door slider. The total height of the bracke...
width = 15; length = 26; door_gap = 3.5; thickness = 2; screw_diam_top = 5.7; screw_diam_bot = 2.9; screw_head_depth = 2.5; thickness_bot = screw_head_depth; side_h = thickness_bot + door_gap + 0.2; module screw_hole(d1,d2,th) { cylinder ($fn=30,d1=d1, d2 = d2, h=th+1); } rotate(a = [0, -90, 0]) { differ...
glb/cad_16f3792a146c.glb
Create a Sword Pen Holder Bookmark by combining a flat sword shape with a cylindrical pen grip. First, construct the sword. Create a rectangular blade 100mm long, 20mm wide, and 1.3mm thick. At the end of the blade, add a pointed tip by attaching a cube with side lengths of approximately 14.14mm, rotated 45 degrees t...
penDiameter = 11.5; swordBladeLength = 100.0; swordBladeWidth = 20.0; swordBladeThickness = 1.3; module blade() { color("cyan") cube([swordBladeLength, swordBladeWidth, swordBladeThickness]); } module point() { triangleLegs = sqrt(swordBladeWidth * swordBladeWidth / 2); color...
glb/cad_8e102b6ce848.glb
Create a customizable key cap by starting with a main cylinder that has a diameter of 25.6mm and a height of 4.5mm, centered on the origin. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a diameter of 24mm and a height of 2.5mm. On one of the flat circular faces, create a small ...
keydiam = 24; keythickness = 2.5; wall=0.8; holesize=6; holeoutoffset = 3.2; $fn=60; text="Home"; textsize=5; textdepth=-0.1; textoffset=1.5; rotate([-90,0,180]) { difference() { difference() { difference() { if (textdepth>=0) { union() { cylinder(r1=keydiam/2+w...
glb/cad_2adb3db9bf64.glb
Create a Parametric Folding Loupe consisting of a lens fitting, a lens clamp, and a protective slide cover. First, construct the lens fitting. Create a main body by forming a hull between a cylinder of 27.4mm diameter and a smaller pivot cylinder of 8mm diameter positioned 22.2mm from the center. Center a hole of 3mm ...
lhLensType = 1; lhLensDia = 25.2; lhLensThickMax = 5.2; lhFrameThickness = 0.8; lhFrameLensSlotType = 1; lhFrameLensSlotDepth = 0.8; lhFrameLensSlotThick = 2.0; lhFrameLensOffsetZ= 0.0; lhFrameHeightExtra = 0.6; lhFramePivotDia = 8.0; lhFramePivotDistE...
glb/cad_6076c0c15d1f.glb
Create a fipple block for a low whistle by starting with a cylinder 23.15mm in diameter and 42.75mm in height, centered on the origin. From this cylinder, remove a rectangular block measuring 12.7mm by 20mm with a height of 5.715mm, positioned at x -6.5, y -7, and z -21.5. Additionally, remove a large rectangular volum...
$fn=49; module fippleblock() { difference() { cylinder(d=23.15,h=42.75,center=true); translate([-6.5, -7, -21.5]) cube([12.7,20,5.715]); translate([-30, -25, -17]) rotate(a=41,v=[1,0,0], center=true) cube([80,70,30]); translate([-20,0, 14]) cube([52.7,20,5.715]); } } ...
glb/cad_9260387b4870.glb
Create a low whistle fipple block by starting with a cylinder 33mm in diameter and 42.95mm in height, centered on the origin. Remove a smaller concentric cylinder from the center with a diameter of 28mm and a height of 43mm. To create the airway and mouth opening, remove a rectangular block measuring 12.7mm by 20mm by ...
$fn=49; module fippleblock() { difference() { cylinder(d=33,h=42.95,center=true); cylinder(d=28.00,h=43,center=true); translate([-6.5, 0, -21.5]) cube([12.7,20,5.715]); translate([-30, -25, -17]) rotate(a=41,v=[1,0,0], center=true) cube([80,70,30]); translate([-20,0, 16]) ...
glb/cad_4cfe040fb32f.glb
Create a Prusa i3 Simple Filament Mount by starting with a rectangular base block measuring 56mm in width, 50mm in depth, and 30mm in height. Carve a rectangular hole through the center of the base that is 6mm wide, 50mm deep, and 25mm high, positioned 25mm from the side edge. Centered on top of this base, add a vertic...
difference(){ cube([56, 50, 30]); translate([25, 0, 0]){ cube([6, 50, 25]); } } translate([27.5, 25, 30]){ cylinder(h=80, r=15); }
glb/cad_ab3811860d46.glb
Create a fridge egg rack with a total height of 20mm. The main body is a flat tray with a rounded rectangular perimeter. Within this tray, create six circular openings for eggs. Position these holes in two rows of three; the centers of the holes are located at coordinates (±45, ±22.5) and (0, ±22.5). Each egg hole is a...
$fn=100; module blank(T,R) { translate([ 45, 22.5,0])cylinder(h=20,r=25-T); translate([ 0, 22.5,0])cylinder(h=20,r=25-T); translate([-45, 22.5,0])cylinder(h=20,r=25-T); translate([-45,-22.5,0])cylinder(h=20,r=25-T); translate([ 0,-22.5,0])cylinder(h=20,r=25-T); translate([ 45,-22.5,0])cylinder(h=20,r=25-T); tra...
glb/cad_b8a8155ef2c1.glb
Create an M6 T Slot Nut by combining two rectangular blocks. First, create a base rectangular block measuring 20mm in length, 8mm in width, and 2mm in height. On top of this, centered along the length but offset to start at a width of -5mm, place a second rectangular block measuring 20mm in length, 16mm in width, and 3...
difference(){ union() { translate([0, -1, 0]) cube([20, 8, 2]); translate([0, -5, 2]) cube([20, 16, 2+3.5]); } translate([10, 3, 3]) cylinder(d=12,h=7,$fn=6); translate([10,3,0]) cylinder(d=6.2,h=15,$fn=100); translate([-1,-12.5,10]) rotate([-45,0,0]) ...
glb/cad_f48fdf8f3dbe.glb
Create a flat Christmas tree ornament with a thickness of 2mm. The main body is a symmetrical tree shape formed by mirroring a profile across the Y-axis. This profile starts at the base with a rectangle from x=0 to 5 and y=0 to 10, then steps upward through a series of connected trapezoids: from y=10 to 20 with x=5 to ...
module Star(points, outer, inner) { function x(r, a) = r * cos(a); function y(r, a) = r * sin(a); increment = 360/points; union() { for (p = [0 : points-1]) { assign( x_outer = x(outer, increment * p), y_outer = y(outer, increment * p), x_inner = x(inner, (increment * p) + (increment/2)), y_...
glb/cad_b7d0799d27b6.glb
Create a small display stand for a flat ornament. Start by constructing a base using a 2D polygon with vertices at [0,0], [20,0], [20,4], [12,10], [8,10], and [0,4]. Extrude this polygon linearly to a height of 15mm. To soften the edges, apply a Minkowski sum with a cylinder of 1mm radius and 1mm height. Finally, carve...
$fn=30; module stand() { color("green") minkowski(){ linear_extrude(height=15) polygon([[0,0],[20,0],[20,4],[12,10],[8,10],[0,4]]); cylinder(r=1,h=1); } } rotate([90,0,0]) difference(){ stand(); translate([10-(2.5/2),3,1.5]) cube([2.5,8,12]); }
glb/cad_bfed4c5c7c93.glb
Create a filament reel hub by starting with a central cylinder 52mm in diameter and 5mm high. Add a second, wider cylinder on top of the first, 62mm in diameter and 5mm high, centered so that the two overlap. Remove a central vertical hole 10mm in diameter through the entire assembly to accommodate a rod. Above this ...
$fn=200; bearing_height=7; bearing_diameter=23; bearing_bevel_diameter_inc=2; bearing_bevel_height=1; bearing_inner_diameter=10; reel_diameter=52; reel_depth=5; reel_flare=5; reel_flare_depth=5; slot_width=5; slot_fraction=0.2; difference() { union() { color("red") cylinder(h=reel_depth, r=reel...
glb/cad_78ee416e19dd.glb
Create a solar charge controller holder and LED voltmeter housing consisting of two separate parts. First, construct the main holder box as a rectangular shell with outer dimensions of 90mm width, 125mm length, and 60mm height. The walls should be 4mm thick. On the top face, create a central rectangular cutout measuri...
use <write.scad> drok_len = 46; drok_wid = 28; wall_thick = 4; box_wid = 90; box_len = 125; box_h = 60; led_h = 41; controller_wid = 72; controller_h = 22; OUTPUT = 1; if (OUTPUT == 1) { translate([0, 0, box_h]) rotate([0, 180, 0]) difference() { union() { mount_box(box_wid, box_len, box_h); } union() { transl...
glb/cad_6dba1873c30b.glb
Create a customizable box and lid assembly. The main box has an interior content area of 66mm x 52mm x 19.4mm. The walls and base are 3.2mm thick. The box features a rim of 3mm height and 3.2mm thickness extending around the top opening. At the four corners of the box, create square pillars to house screws; these pilla...
part = "both"; contentXSize = 66.0; contentYSize = 52.0; contentZSize = 19.4; useScrew = "first"; screwSize = 1.5; lidScrewHoleSize = 2; screwHeadWidth = 3; screwHeadHeight = 2.6; wallThickness = 3.2; rimHeight = 3.0; rimThickness = wallThickness; useThinLid = "first"; tolerance = 0.5; showContentPlacehol...
glb/cad_3c7df87bdedb.glb
Create a lens cap for a Nikon 14-24mm lens. Start by constructing a main outer cylinder with a diameter of 101mm and a height of 30mm. Hollow out the center of this cylinder to create a wall thickness of 1.5mm, leaving a flat circular base at the bottom. On the exterior vertical wall, place the text "NIKON" centered o...
font = "Bank Gothic"; dinterno=98; spessore=1.5; spessoreint=1.5; altezza=30; numerosupporti=12; dint=94; riduzione=91/dint; sint=1.5; aint=10.5; aincavo=1; sincavo=1; lvuoto=60; module nikon() offset(0.3) text("NIKON", size=18, halign="center", valign="center", font = font); module loris() offset(0.3) text("Loris S...
glb/cad_738a178840a5.glb
Create a flower-shaped birthday candle holder with an overall outer diameter of 15mm. Start by forming a cylindrical base with a radius of 5.22mm and a height of 5.8mm. To create the flower petals, add three cylinders with a radius of 3.07mm and a length of 15mm; position these horizontally so they intersect the base, ...
CANDLE_DIAMETER = 5.8; OUTER_DIAMETER = 15; CANDLE_RADIUS = CANDLE_DIAMETER / 2; OUTER_RADIUS = OUTER_DIAMETER / 2; HOLE_HEIGHT = CANDLE_RADIUS * 5; CANDLE_HEIGHT = CANDLE_RADIUS; CANDLE_DEPTH = CANDLE_RADIUS * 1; BASE_HEIGHT = CANDLE_HEIGHT + CANDLE_DEPTH; BASE_RADIUS = CANDLE_RADIUS * 1.8; PETAL_RADIUS = BASE_RA...
glb/cad_e4ff1fc9d52d.glb
Create a set of eight socket holders arranged in a 4x2 array. Each individual holder consists of a central cubic base measuring 21mm x 21mm x 10mm. On the top face of each base, center a tapered cylindrical post with a height of 9.5mm, a bottom diameter of 6.8mm, and a top diameter of 6.6mm, using a 20-facet resoluti...
use <write/Write.scad>; SOCKET01 = 20; SOCKET02 = 21; SOCKET03 = 22; SOCKET04 = 23; SOCKET05 = 24; SOCKET06 = 25; SOCKET07 = 26; SOCKET08 = 27; THICKNESS = 10; BASE = 21; XX = 0; M40 = 1; M45 = 2; M50 = 3; M55 = 4; M60 = 5; M65 = 6; M70 = 7; M80 = 8; M90 = 9; M10 = 10; M11 = 11; M12 = 12; M13 = 13; U05 = 20; U06 =...
glb/cad_5b8803b175bd.glb
Create a base for a 1/4 socket organizer. Start with a main rectangular block measuring 41mm wide, 184mm long, and 10mm high, centered on the origin. Add a second, thinner rectangular slab centered on the same axis, measuring 41mm wide, 196mm long, and 3mm high, positioned 4.5mm below the top surface of the first block...
NUMBERSOCKETS = 8; BASE=21; case(); module case() { obWidth = BASE+20; obLength = (BASE+1)*NUMBERSOCKETS+15; difference() { difference() { outerBlock(obWidth, obLength); union() { translate([0,BASE/2-5,-1]) cube([BASE+10, (BASE)*NUMBERSOCKETS+15, 4], center=true); ...
glb/cad_34528e7057f4.glb
Create an integrated Z motor mount and rod clamp. Start with a main body consisting of two rectangular blocks: one measuring 54.5mm x 60mm x 16mm and a second, slightly smaller block measuring 54.5mm x 74.5mm x 8mm positioned above it. Integrate two cylinders with a radius of 8mm and a height of 54.5mm, oriented horizo...
smooth_rod_distance = 30; frame_distance = 43; smooth_bar_diameter = 8.4; threaded_rod_diameter = 8.6; washer_diameter = 19; clamp_size = 6; wedge_width = 2.5; end_size = 7.5; module zmotormount(){ difference(){ union(){ translate(v=[-washer_diameter / 2 - frame_distance - 1,-30,-8]) cube(size = [washer_diameter ...
glb/cad_ade2ee52f07c.glb
Create a Raspberry Pi Model B SD Card Repair Clip consisting of three distinct parts. First, construct a brace by creating a rectangular block 40mm wide, 5mm deep, and 4mm high, centered on the origin. From this block, remove a central rectangular volume measuring 31mm wide, 16mm deep, and 3mm high, and then remove a s...
th=4; module brace() { difference(){ cube([40,5,th],center=true); difference() { translate([0,0,-1]) cube([31,16,3],center=true); cube([18,5,1.5],center=true); } } } module clip() { difference() { cube([20,13.5,2.5],center=true); translate([-2,0,0]) cube([17,6,th],center=true); translate([-4.5,3.5,0])...
glb/cad_0e76571a537f.glb
Create a Lulzbot Taz LCD and Raspberry Pi case consisting of a hollow base and a flat lid. For the base, create a rounded rectangular box with outer dimensions of 100.1mm x 190mm x 18mm and a corner radius of 4mm. Hollow out the interior to leave a wall thickness of 2mm. In the base, place four Raspberry Pi mounting ...
M25ThreadHole = 2.70; M3ThruHole = 3.5; M3ThreadHole = 3.25; M5ThruHole = 5.5; wallThick = 2; wall2Thick = wallThick*2; lidThick = 1.5; baseLWH = [100.1, 190, 18]; baseCutLWH = [baseLWH[0]-wall2Thick, baseLWH[1]-wall2Thick, baseLWH[2]-wallThick]; lidLWH = [100.1, 190, lidThick]; baseR = 4; base2R = baseR*2; baseLW...
glb/cad_eaaf21fffc31.glb
Create a Lulzbot Taz LCD and Raspberry Pi enclosure consisting of a base and a lid. Construct the base as a rounded rectangular box with outer dimensions of 100.1mm x 190mm x 18mm and a corner radius of 4mm. Hollow out the interior to a wall thickness of 2mm. In the base, create five 5.5mm diameter through-holes for ...
M25ThreadHole = 2.70; M3ThruHole = 3.5; M3ThreadHole = 3.25; M5ThruHole = 5.5; wallThick = 2; wall2Thick = wallThick*2; lidThick = 1.5; baseLWH = [100.1, 190, 18]; baseCutLWH = [baseLWH[0]-wall2Thick, baseLWH[1]-wall2Thick, baseLWH[2]-wallThick]; lidLWH = [100.1, 190, lidThick]; baseR = 4; base2R = baseR*2; baseLW...
glb/cad_08444c1442e6.glb
Create a MOST Athena Smoke Alarm Delta Mod Frame by starting with a central disk that has a radius of 6mm and a height of 0.75mm. Remove a smaller concentric cylinder from the center with a radius of 4mm and a height of 0.76mm to create a ring. Within this ring, create three small circular holes with a radius of 0.22mm...
$fn = 100; union(){ difference(){ cylinder(center = true, r = 6, h = .75); cylinder(center = true, r = 4, h = .76); for( i = [0:120:360])rotate([0,0,i])translate([5,0,0])cylinder(center = true, r = .22, h = .76); rotate([0,0,90])translate([5,0,0])cylinder(center = true, r = .22, h = .76); rotate([0,0,-90])transla...
glb/cad_3469ac8be625.glb
Create a Lower Guide Plate for a bicycle chain guide. Start by constructing the main shield base with a height of 4.5mm. This base is formed by the convex hull of several shapes: a cylinder with a 15mm radius, a cylinder with a 12mm radius positioned at [0, -10, 0], and four smaller cylinders with 4mm radii located at ...
SHIELD_HEIGHT = 4.5; HOLE_RADIUS = 2.75; POST_HEIGHT = 25; POST_WIDTH_TOP = 4; POST_WIDTH_BOTTOM = 6; POST_POSITION = [12.6, 17.5, 0]; POST_ROUNDING_RADIUS = 1; module shield() { hull() { cylinder(r=15, h=SHIELD_HEIGHT, center=false); translate([7.5, 0, 0]) difference() { ...
glb/cad_694b2035a985.glb
Create a universal bike phone mount consisting of a main phone holder and a handlebar attachment. First, construct the phone holder as a rectangular block with a total width of 80.5mm, height of 145mm, and depth of 19mm. Hollow out the center to create a pocket for a phone measuring 73.5mm by 138mm by 12.5mm, leaving...
phone_width = 73.5; phone_height = 138; phone_depth = 12.5; wall = 3.5; wall_top_depth = phone_depth*3/4; snap_length = 5; snap_depth = 2.5; mount_depth = 4; handlebar_diameter = 35.8; handlebar_distance = 26.3; fast_fix_width = 5; fast_fix_height = 1.5; print_folder_seperate = 1; total_depth = phone_depth+mo...
glb/cad_f1d3a51a6911.glb
Create an LCD box enclosure consisting of a main body and a separate lid. For the main body, create a rectangular shell with outer dimensions of 83.2mm in length, 39.25mm in width, and 20mm in height. The walls should be 1.5mm thick. Hollow out the center to create a cavity that is 81.2mm long, 37.25mm wide, and 19.5mm...
$fn=80; imprimir=true; extra=1.0; tolerancia=1.0; espesor_paredes=1.5; placa_largo=80.2+tolerancia; placa_ancho=36.25+tolerancia; placa_grueso=1.7; placa_alto=18.5; alto_guias=1.5; diferencia_altura_guias=0.5; largo_caja=placa_largo+2*espesor_paredes; ancho_caja=placa_ancho+2*espesor_paredes; alto_caja=placa_alto+espe...
glb/cad_3b878d536d0d.glb
Create a CNC motor holder consisting of a cylindrical collar attached to a rectangular mounting base. Start by creating a hollow cylinder with an outer radius of 40mm, an inner radius of 35mm, and a height of 40mm. Cut a vertical slot through the cylinder to create an opening. Attach a rectangular base to the side of t...
high = 40; radio= 35.01; difference(){ difference(){ union(){ difference(){ cylinder(h=high, r=radio+4.99,center=true,$fn=100); cylinder(h=high+3.63, r=radio,center=true,$fn=100); } difference(){ translate([0,42,0]){ cube([16,20,high],center=true); } cylinder(h=high+3.63, r=radio,center=true,$fn=100); } } translate([0,...
glb/cad_9b5312e8e8fd.glb
Create a Pop Can Opener tool by combining a spade-shaped head and a rectangular handle. Start with a rectangular base for the spade measuring 20mm long, 15mm wide, and 3mm high. Remove a semi-cylindrical channel from the top of this spade, centered along its width, with a radius of 5.5mm and a depth that clears the top...
handleL=50; handleW=20; handleH=4; spadeL=20; spadeW=15; spadeH=3; tineW=2; tineAngle=25; keyringT=2; difference(){ union(){ difference(){ cube([spadeL,spadeW,spadeH]); rotate([0,-tineAngle,0]) translate([0,-1,0]) cube([spadeL,spadeW+2,spadeH*2]); rotate([0,90-tineAngle,0]) translate([-spadeW/4,spadeW/2,-1]...
glb/cad_1fcff4cb0504.glb
Create a dryer pulley consisting of a central cylindrical body and two wider circular flanges. Start with a main central cylinder 51.03mm in diameter and 18.8mm in height. Add two identical circular flanges, each 60.82mm in diameter and 3mm thick, positioned at the top and bottom faces of the central cylinder. From t...
module threads() { for(r=[0:(360/50):360]) { rotate([0,0,r]) translate([25.2,0,0]) cylinder(d=1,h=18.8, center=true); } } module hollowout() { for(r=[0:(360/7):360]) { rotate([0,0,r]) translate([17.5,0,0]) cylinder(d=12,h=30, center=true); } } module dryer_pulley() { ...
glb/cad_6e0f78615ddb.glb
Create a sliding carriage for rectangular sections. Start by constructing a central rectangular body 30mm long, 22mm wide, and 1mm thick. On top of this base, add a second rectangular volume that is 16mm long, 22mm wide, and 6mm high, aligned to start 7mm from the front edge. At each end of the carriage, integrate a v...
L=30; Sp=22; $fn=60; module angolare() difference() { union() { cube([15,Sp,10]); translate([6,Sp/2,-1])cylinder(2,6,6); translate([6,Sp/2,-5])cylinder(4,4.2,4.6); } translate([6,Sp/2,-6])cylinder(17,3.1,3.1); translate([6,Sp/2,8])rotate([0,0,30])cylinder(4,6,6,$fn=6); } module angolare1() difference() { union() { ...
glb/cad_bfa13946f879.glb
Create a universal phone and webcam holder consisting of four main components: a mount, a leg, and two hooks. First, create the mount as a block with a width of 30mm and a thickness of 4mm. Cut a hexagonal hole through it with a diameter of 11.8mm to accommodate a nut head, and a circular hole with a diameter of 6.5m...
leg_height=150; leg_width=30; thickness=4; nut_diameter=6.5; nut_head_diameter=11.8; ph_width=50; part_type="Hooks"; if (part_type == "Extruder mount") { rotate([-90,0,0]) holder_stand(nut_head_diameter,nut_diameter); } else if (part_type == "Leg") { rotate([90,0,0])...
glb/cad_d7ff37ddb0c0.glb
Create a Thread Tap Handle by starting with a rectangular block measuring 25mm x 25mm x 90mm, with all edges rounded to a radius of 3mm. From this main body, remove a central longitudinal hole with a diameter of 18mm that runs the full 90mm length of the block. Additionally, create a secondary cutout to accommodate t...
$fn=60; rotate([90,180,0]) { difference() { translate([0,0,0]) { rounded_cube(25,25,90,3); }; translate([2.6,5,45]) { rotate([0,45,0]) { union() { rounded_cube(14,40,14,1.5); translate([7.0,3,7.0]) { rotate([90,0,0]) { cylinder(d=18, h=12.5); } ...
glb/cad_6bb1ac4cf80a.glb
Create a printable trumpet model consisting of a hollow, curving conical pipe that flares outward. The pipe is constructed by sweeping a ring with a wall thickness of 2mm along a curved path. The path starts at a point 5mm from the theoretical end and extends to 100mm. The radius of the pipe increases according to the ...
Start=5; Stop=100; Step=5; Thickness=2; Angle=45; SleeveLength=5; SleeveMargin=0.5; Factor_B=240; Coefficient_a=0.42; function BuigRadius(Stop,Start)=(Stop-Start)/Angle*360/2/3.14; MakePipe(Start,Stop); module MakePipe(Start,Stop){ difference(){ union(){ for (i=[Start:Step:Stop-Step]){ hull(){ translate(Mov...
glb/cad_b800c9a18192.glb