Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a cable bracket for a camera lucida table. Start by forming a base block 30mm wide, 15mm deep, and 13.5mm high, centered on the origin. Remove a rectangular section from the top half of this block, specifically a volume 35mm wide, 20mm deep, and 7.5mm high, also centered on the origin. Attached to the top of t...
$fn = 100; difference(){ union(){ difference(){ cube([30,15,13.5], center = true); translate([0,5,0]) cube([35,20,7.5], center = true); } translate([0,10,11.6]) rotate([0,90,0]) difference(){ hull(){ cylinder(30,16/2,16/2...
glb/cad_ae049d4692ee.glb
Create a coaster by constructing a convex hull around four spheres, each with a radius of 5mm, positioned at the corners of a 100mm by 100mm square on the XY plane. From this resulting shape, remove a rectangular block measuring 110mm by 110mm with a height of 5mm, positioned from X and Y coordinates of -5mm and Z coor...
include <qr.scad> $fn = 50; difference(){ hull(){ for (i = [0:1]){ for (j = [0:1]){ translate([i*100,j*100,0]) sphere(5); } } } translate([-5,-5,-5]) cube([110,110,5]); } translate([0,0,5]) color( "Black", 1.0 ) qr("// Simple coaster with a QR code\n...
glb/cad_2c2a5617ffa2.glb
Create a QR coaster by starting with a square base that is 100mm wide, 100mm deep, and 10mm thick. The top surface of this base should be rounded, formed by the convex hull of four spheres with 5mm radii positioned at the corners of the 100mm square. Flatten the bottom of the coaster by removing a 110mm cube that start...
include <qr.scad> $fn = 25; difference(){hull(){for (i = [0:100:100]){for (j = [0:100:100]){translate([i,j,0]) sphere(5);}}}translate([-5,-5,-5]) cube([110,110,5]);} translate([0,0,5])color( "Black", 1.0 ) qr("// 3_QR_coaster.scad | 20240906 Jan-Willem Markus\n// QR generator by xypwn | https://github.com/xypwn/scadqr...
glb/cad_f87c640ce856.glb
Create a camera lucida box by constructing a hollowed-out enclosure with a 45-degree internal slant. Start with a main body composed of several joined rectangular sections: a vertical wall 5mm wide and 65mm tall, a base section 25mm wide and 7mm thick, and a side wall 27.5mm wide and 65mm tall. Carve out a central re...
$fn = 100; closed = true; difference(){ union(){ translate([-2.5,-4,-5]) cube([5, 56.5, 65]); translate([0,-2.5,-5]) cube([25, 55, 7]); translate([0,-4,-5]) cube([25, 4, 12]); if (closed){ translate([-2.5,47.5,0]) cube([27.5, 5, 65]); ...
glb/cad_d64013850a79.glb
Create a square plaque for a QR code. Start by constructing a base shape using a convex hull that connects four spheres, each with a 5mm radius, positioned at the corners of a 100mm by 100mm square on the XY plane. From this resulting rounded slab, remove a rectangular section from the bottom by carving out a cube meas...
include <qr.scad> $fn = 20; difference(){hull(){for(i=[0:1]){for(j=[0:1]){translate([i*100,j*100,0])sphere(5);}}}translate([-5,-5,-5])cube([110,110,5]);} translate([0,0,5])color("Black",1.0)qr("// 4_QR.scad | 20240906 Jan-Willem Markus\ninclude <qr.scad> // lib by xypwn | https://github.com/xypwn/scadqr\n$fn = 20;\ndif...
glb/cad_8ea0c436012c.glb
Create a post bracket for a camera lucida table. Start with a central hollow cylinder that has an outer diameter of 22mm, an inner diameter of 11mm, and a height of 30mm. Around this central ring, place four identical protruding arms spaced evenly every 60 degrees. Each arm consists of a cylinder with a diameter of 16m...
$fn = 100; difference(){ union(){ translate([0,0,-4]) cylinder(8,40/2,30/2, center=true); rotate([0,90,0]) translate([0,18.5,0]){ cylinder(5,16/2,16/2, center=true); translate([0,0,-2.5])cube([8,8,5]); } rotate([60,90,0]) translate([0,...
glb/cad_29c32297f723.glb
Create two separate screw replacement components. For the first component, create a wide cylindrical base with a diameter of 3.25mm and a height of 0.95mm. Centered on top of this base, add a smaller cylinder with a diameter of 2.05mm and a height of 2mm. Hollow out the center of this smaller cylinder by removing a ver...
$fn = 100; head_width = 6.5/2; head_height = 0.95; screw_height = 2; screw_width = 4.1/2; module top_cap(){ cylinder(head_height, head_width, head_width); difference(){ cylinder(head_height+screw_height, screw_width, screw_width); translate([0,0,0.5]) cylinder(head_height+screw_height, 1.3, 1....
glb/cad_03ec068b7fb7.glb
Create a pulley for locksport. Start by constructing a central cylinder with a radius of 9.5mm and a height of 0.5mm. On top of this base, add a second cylinder with a radius of 8.5mm and a height of 8mm, positioned from z=0.5mm to z=8.5mm. Add a third cylinder with a radius of 8.5mm and a height of 3mm, starting from ...
$fn = 50; module end_block(){ difference(){ cube([12, 6, 3]); translate([10, -1, 1.5]) rotate([-90, 0, 0]) cylinder(8, 1/2, 1/2, $fn = 30); translate([2, -1, 1.5]) rotate([-90, 0, 0]) cylinder(8, 1/2, 1/2, $fn = 30); } } module pulley(){ difference(){ union(){ ...
glb/cad_4d12fdcff301.glb
Create a camera lucida box by starting with a solid base and adding walls to form a housing. Construct a main body consisting of a rectangular block 37.5mm wide, 75mm deep, and 4mm high. Add a vertical support wall 5mm thick and 90mm high, positioned at the back edge of the base. Cut a rectangular slot through the ce...
$fn = 100; closed = open; edge_only = false; mirror = [75, 75, 4]; glass = [mirror[0], sqrt(2)*mirror[1], 1.9]; difference(){ union(){ translate([-2.5,-4,-5]) cube([5, mirror[1] + 6.5, mirror[1] + 15]); translate([0,-4,-5]) cube([mirror[0]/2, mirror[1] + 6.5, 7]); transla...
glb/cad_bdc612216b13.glb
Create a 3D model of a locksport design tool. Start by creating a central triangular prism with a base of 50mm by 50mm and a height of 10mm. From this primary shape, remove a smaller triangular section shifted by -12.72mm on the X-axis and 9mm on the Y-axis, positioned 5mm higher on the Z-axis. To further refine the ge...
module triangle (){ difference(){ cube([50,50,10], center = true); translate([70.72 /2,70.72 /2,0]) rotate([0,0,45]) cube([100,100,12], center = true); } } difference(){ translate([-25+9+1.5,25-4.5+1.5,0]) difference(){ triangle(); translate([-12.72 ...
glb/cad_a66cb3a73aee.glb
Create a block for holding a euro profile cylinder. Start with a solid rectangular base measuring 70mm in width, 25mm in depth, and 30mm in height, centered on the origin. Subtract a euro profile cylinder shape from this block. The profile to be removed consists of a hull formed by two cylinders, each with a radius o...
$fn = 100; tolerance = 0.1; module euro_cylinder(height = 30, rot = [0, 0, 0]){ rotate(rot) translate([-height/2, 0, -33 + 17/2]) rotate([90, 0, 90]) translate([0, 10/2, 0]){ hull(){ cylinder(height, 10/2 + tolerance, 10/2 + tolerance); translate([0, 20, 0]) cylinder(he...
glb/cad_c4973240bcfa.glb
Create a camera lucida box by starting with a main rectangular block measuring 30mm wide, 75mm deep, and 75mm high, centered such that its x-axis spans from -12.5mm to 17.5mm. From this main body, remove a large rectangular section measuring 30mm by 75mm by 75mm, offset to start at x = -7.5mm, y = 0, and z = 9mm. Carve...
$fn = 100; closed = true; difference(){ translate([-25/2-5,-5,-5]) cube([30, 75, 75]); translate([-25/2+5,0,9]) cube([30, 75, 75]); translate([0,-10,0]) cube([110, 100, 4]); translate([-25/2,0,4.2]) rotate([45,0,0]) cube([125, 125, 2]); translate([0,-5,50*sqrt(2)+4]) rot...
glb/cad_bd82d71c0ac4.glb
Create a geared lock concept consisting of several identical disc-shaped elements. Each element is a composite cylinder with a total height of 4mm. The base of each element is a cylinder 4mm thick with a 20mm diameter, and it is topped with a smaller cylinder 2mm thick with a 23mm diameter. Position these elements in...
$fn = 50; module body(){ difference(){ rotate([90,0,0]) cylinder(80, 60/2, 60/2, center = true); rotate([90,0,0]) cylinder(90, 40/2, 40/2, center = true); translate([0, -22.5, 0]) for (i = [0:135: 360*4]){ rotate([0, i, 0]) translate([15, i/30, 0]) union(){ cylinder(5, 24/...
glb/cad_282d0ad42fb4.glb
Create a linear jig consisting of three stacked rectangular components aligned along a central vertical axis. The bottom block is a rectangular prism 60mm wide, 45mm deep, and 25mm high. Remove a central cylinder with a 18mm diameter and a 3.7mm diameter hole through the center. Additionally, remove four 4.5mm diamet...
$fn = 100; block_width = 25; carrier_width = 20; back_width = 10; hole_offset = 12.5; hole_size = 4.5; bearing_size = 6; screw = 3.7; module lock_block(){ difference(){ translate([10, 0]) cube([60,45, block_width], center = true); hull(){ cylinder(block_width + 1, 10.5/2, 10.5/2, cent...
glb/cad_eeac1832e34e.glb
Create a vault dial spacer consisting of two concentric cylindrical sections with a central hole. First, construct a wide base cylinder with a diameter of 17.5mm and a height of 2.5mm. Centered on top of this base, add a narrower cylinder with a diameter of 15.1mm and a height of 6mm. Finally, bore a circular hole with...
$fn = 100; difference(){ union(){ cylinder(1.5 + 1, 17.5/2, 17.5/2); cylinder(5+1, 15.1/2, 15.1/2); } translate([0,0,-10]) cylinder(20, 12.8/2, 12.8/2); }
glb/cad_c464023e770f.glb
Create a small Core-XY motion system. Start by constructing a central chassis consisting of a main rectangular block measuring 85mm x 20mm x 65mm, with two outer support blocks measuring 12mm x 8mm x 24mm each, positioned symmetrically on either side. Integrate a series of pulleys and motor mounts. Create a motor asse...
$fn = 100; tolerance = 0.2; module pulley(){ rotate([90,0,0]) cylinder(6, d=3.5, center=true); } module bearing(){ difference(){ translate([0,4,0]) union(){ rotate([90,0,0]) cylinder(0.75, d=6.5, center=true); translate([0, 1, 0]) rotate([90,0,0]) cylinder(2.5, d=6, c...
glb/cad_9b7f149585e5.glb
Create a 1600s pendant lock model. Start with a main cylindrical body 11mm high with a radius of 6mm. Attach a smaller cylinder to the bottom with a radius of 6.5mm and a height of 2mm. Add a third cylinder on top with a radius of 6.5mm and a height of 2mm, positioned 9mm above the base. Place six spheres with a radi...
$fn = 50; difference(){ union(){ cylinder(11, 12/2, 12/2); cylinder(2, 13/2, 13/2); translate([0, 0, 9]) cylinder(2, 13/2, 13/2); rotate([0, 0, 0]) translate([0, 5, 10.5]) sphere(1); rotate([0, 0, 120]) translate([0, 5, 10.5]) sphere(1); rotate([0, 0, -120])translate([0, 5, 10.5]) sphere(1...
glb/cad_b4d548ff50d3.glb
Create a circular disc for locksport by combining two concentric cylinders. First, create a base cylinder with a diameter of 60mm and a height of 5mm, centered on the origin. On top of this, add a second cylinder with a diameter of 60mm and a height of 7.5mm, also centered on the origin, so that the two shapes overlap ...
$fn = 100; difference(){ union(){ translate([0,0,-5/2]) cylinder(5, 60, 60, center = true); translate([0,0,7.5/2]) cylinder(7.5, 60, 60/2, center = true); } cylinder(20, 46/2, 36/2, center = true); }
glb/cad_7da97faa1675.glb
Create an eyepiece cap for an Olympus BH microscope by constructing a hollowed cylindrical shell. Start with a solid outer cylinder that is 31mm in diameter and 17.5mm in height. From the bottom of this cylinder, remove a central cylindrical core with a diameter of 16.5mm and a height of 21mm, positioned so that it ext...
$fn = 100; difference(){ cylinder(28+3, 35/2, 35/2); translate([0,0,-5]) cylinder(28+3, 33/2, 33/2); translate([0,0,-3]) cylinder(28+3, 24/2, 24/2); }
glb/cad_413473b15c50.glb
Create a dial cap for an S&G 6730 lock by constructing a tiered cylindrical object. Start with a base cylinder that is 4mm high with a diameter of 98.5mm. On top of this base, center a second cylinder that is 34mm high with a diameter of 60.5mm. From this combined solid, remove a coaxial central hole to create a hollow...
$fn = 250; difference(){ union(){ cylinder(4, (95 + 3.5)/2, (95 + 3.5)/2); translate([0, 0, 4]) cylinder(34 +2, (95 + 3.5)/2, (57 + 3.5)/2); } cylinder(4, 95/2, 95/2); translate([0, 0, 4]) cylinder(34, 95/2, 57/2); } module slot(){ hull(){ translate([-10,0,0])cylinder(50,...
glb/cad_6483cf664df6.glb
Create a lock core and body assembly. First, construct the outer body as a cylinder with a radius of 45mm and a height of 22mm. Remove a concentric inner cylinder with a radius of 37.9mm (75/2 + 0.4 tolerance) and a height of 22mm. From this body, remove six vertical cylindrical holes, each with a radius of 3.75mm and ...
$fn = 25; tolerance = 0.4; var = [[-45, 0], [0, 4], [45, 8], [-45+180, 0], [180, 4], [45+180, 8]]; var2 = [[-15, 6], [-25, 10], [-35, 14]]; var2 = [[-14.5, 6], [-23.5, 10], [-32.5, 14]]; module core(){ difference(){ cylinder(18, 75/2, 75/2, $fn = 200); translate([0, 0, 2]) cylinder(18, 45/2, 45/2...
glb/cad_6cfe4c96174e.glb
Create a Camera Lucida box. Start with a main rectangular base that is 100mm wide, 100mm deep, and 4mm high. Build a vertical back wall that is 50mm wide and 115mm high, extending upwards from the back edge of the base. Integrate a slanted glass holder that extends from the top of the back wall down toward the base a...
$fn = 100; closed = false; edge_only = false; mirror = [100, 100, 4]; glass = [mirror[0], 125, 1.9]; difference(){ union(){ translate([-2.5,-4,-5]) cube([5, mirror[1] + 6.5, mirror[1] + 15]); translate([0,-4,-5]) cube([mirror[0]/2, mirror[1] + 6.5, 7]); translate([0,-4,-5...
glb/cad_571e58fd1fa5.glb
Create a ktBOX1s electronics enclosure. The main body is a rectangular box with an outer footprint of 105mm in width (x), 76mm in depth (y), and 27mm in height (z). The walls are 2mm thick. The floor of the box is a solid panel. The side walls extend upwards to the full height of 27mm, except for a rectangular cutout ...
gap1 = 0.001; gap2 = 0.002; panel_thick = 2; front_x = 95+5+panel_thick*2; front_y = 72+1+panel_thick*2; front_z = 25+panel_thick; rear_x = front_x; rear_y = front_y; rear_z = 13+panel_thick; hinge_x = 6.5; hinge_y = front_y/3-0.3; hinge_hole = 1.1+0.4; hook_x = 6.5; hook_y = front_y/3-0.3; hook_z = 3; board_thick =...
glb/cad_f9c53a89d408.glb
Create a PSX SIO connector consisting of a main connector body and a mounting plate. First, construct the connector body as a rectangular block 14mm wide, 20mm long, and 1.4mm thick. Carve a central channel out of this block that is 9.85mm wide and 2.62mm deep, leaving a wall thickness of 2.075mm on each side. Inside t...
width = 0.62; module ridge() { cube([width, 19, 2]); } union() { translate([14,20,0]) { rotate(180) { difference() { cube([14, 20, 1.4]); translate([1.7 + width, -0.1, -0.1]) { cube([15*width + .5 , width + 2, 2.5]); ...
glb/cad_5cf043aa74f2.glb
Create a gear by starting with a central cylinder that has a radius of 10mm, a height of 5mm, and a resolution of 40 facets. Around the perimeter of this central cylinder, add 20 smaller cylindrical teeth. Each tooth must have a radius of 2.5mm and a height of 5mm, with a resolution of 8 facets. Position these teeth so...
module gear(teeth = 20, radius = 10, thickness = 5) { cylinder(h = thickness, r = radius, $fn = teeth * 2); for (i = [0:teeth-1]) { rotate([0, 0, i * 360 / teeth]) translate([radius, 0, 0]) cylinder(h = thickness, r = radius / 4, $fn = 8); } } gear();
glb/cad_1cfd278afa7d.glb
Create a rectangular prism with a width of 20mm, a depth of 30mm, and a height of 40mm.
cube([20, 30, 40]);
glb/cad_0df2190c7640.glb
Create a 3D spiral swept path that ascends to a total height of 50mm. The path should complete two full rotations (720 degrees) around the Z-axis. Start the spiral at a base radius of 20mm, and gradually decrease this radius to 6mm (a 70% reduction) by the end of the path. The cross-section of the spiral consists of ...
module swept_spiral() { steps = 100; height = 50; base_radius = 20; for (i = [0:steps-1]) { t = i / steps; next_t = (i + 1) / steps; angle1 = t * 720; angle2 = next_t * 720; z1 = t * height; z2 = next_t * height; r1 = base_radius * (1 - t * 0.7)...
glb/cad_06779b75d4da.glb
Create an interlocking gear train system consisting of three gears, each with a thickness of 5mm. Each gear is constructed from a central cylinder with a radius 90% of the gear's total radius, surrounded by hexagonal teeth. The teeth are created by placing small 6-sided prisms with a radius equal to one-fifth of the ge...
module gear(teeth, radius, thickness, hole_radius = 0) { difference() { union() { cylinder(h = thickness, r = radius * 0.9, $fn = teeth); for (i = [0:teeth-1]) { rotate([0, 0, i * 360 / teeth]) translate([radius, 0, 0]) cylind...
glb/cad_04753cc68419.glb
Create a 3D cellular structure composed of eight intersecting geometric cells based on a Voronoi-inspired pattern. For each of the following seed points—[0, 0, 0], [10, 5, 8], [-8, 7, -5], [6, -9, 3], [-5, -6, 7], [8, 8, -8], [-7, 3, 9], and [4, -4, -6]—generate a cell. Each cell is formed by taking a cube with a side ...
seed_points = [ [0, 0, 0], [10, 5, 8], [-8, 7, -5], [6, -9, 3], [-5, -6, 7], [8, 8, -8], [-7, 3, 9], [4, -4, -6] ]; module voronoi_cell(point, size = 40) { intersection() { cube(size, center = true); for (other = seed_points) { if (other != point) { midpoint = ...
glb/cad_811c154907b2.glb
Create a rounded rectangular block with overall dimensions of 24mm in width, 34mm in depth, and 14mm in height. Start with a base cube measuring 20mm by 30mm by 10mm and apply a rounding radius of 2mm to all edges and corners. Ensure the curvature is consistent across all axes, resulting in a smooth, pill-like finish o...
minkowski() { cube([20, 30, 10]); sphere(r = 2, $fn = 20); }
glb/cad_8d15c6a7ab18.glb
Create a fractal tree structure starting with a base octagonal prism (an 8-facet cylinder) that is 20mm tall, with a bottom radius of 2mm and a top radius of 1.33mm. At the top center of this base prism, attach three smaller octagonal prisms, each 14mm tall with a bottom radius of 1.4mm and a top radius of 0.93mm. Rota...
module branch(length, level) { if (level > 0) { cylinder(h = length, r1 = length/10, r2 = length/15, $fn = 8); translate([0, 0, length]) rotate([30, 0, 0]) branch(length * 0.7, level - 1); translate([0, 0, length]) rotate([-30, 0, 120]) branch(length...
glb/cad_b3ffd87a4cee.glb
Create a 3D model by finding the intersection of a cube and a sphere. Center both shapes on the same origin point. The cube should have equal dimensions of 25mm for its length, width, and height. The sphere should have a radius of 17mm and a facet resolution of 40. The final geometry should only include the volume wher...
intersection() { cube([25, 25, 25], center = true); sphere(r = 17, $fn = 40); }
glb/cad_4d465ff4251c.glb
Create a twisted cube by generating a convex hull between two identical squares. Start by placing a 20mm by 20mm square with a thickness of 1mm centered at the origin. Position a second 20mm by 20mm square with a thickness of 1mm at a height of 30mm along the Z-axis, rotating it 90 degrees around the Z-axis relative to...
hull() { cube([20, 20, 1]); translate([0, 0, 30]) rotate([0, 0, 90]) cube([20, 20, 1]); }
glb/cad_68a49413290a.glb
Create a sphere with a radius of 20mm. To add surface detail, place five smaller spheres, each with a radius of 2mm, onto the surface of the main sphere. Position these smaller spheres so their centers are 20mm from the center of the main sphere, distributing them evenly around the equator by rotating each one in 60-de...
module adaptive_mesh_sphere() { intersection() { sphere(r = 20, $fn = 80); translate([10, 0, 0]) cube([40, 40, 40], center = true); } intersection() { sphere(r = 20, $fn = 40); difference() { cube([40, 40, 40], center = true); translate([...
glb/cad_b915fea71a17.glb
Create a gear with 24 teeth and a total height of 5mm. The gear should be designed with a module size of 2mm, resulting in a pitch radius of 24mm. Each of the 24 teeth must follow a mathematically accurate involute profile based on a 20-degree pressure angle. The base of the gear is a cylinder with a radius equal to th...
function involute(base_radius, t) = base_radius * [cos(t) + t * sin(t), sin(t) - t * cos(t)]; module involute_gear(teeth, module_size, pressure_angle = 20) { pitch_radius = teeth * module_size / 2; base_radius = pitch_radius * cos(pressure_angle); addendum = module_size; dedendum = 1.25 * module_si...
glb/cad_492189b875f6.glb
Create a 3x3x3 grid of identical lattice units, where each unit is spaced 10mm apart along the X, Y, and Z axes. Each individual lattice unit is based on a 10mm cube with a wall thickness of 0.8mm. To form the unit, start with a solid 10mm cube and remove a smaller 8.4mm centered cube from its interior. Additionally, c...
module lattice_unit(size, thickness) { difference() { cube(size, center = true); cube(size - thickness * 2, center = true); for (axis = [[1,0,0], [0,1,0], [0,0,1]]) { rotate(90 * axis) cube([size * 0.6, size * 0.6, size * 1.1], center = true); } } ...
glb/cad_395d43970df8.glb
Create a rectangular box with outer dimensions of 20mm in width, 15mm in depth, and 10mm in height. Hollow out the center to create an inner cavity, leaving a uniform wall thickness of 2mm on all sides and the bottom. The resulting interior opening should measure 16mm in width, 11mm in depth, and 8mm in height, positio...
width = 20; height = 10; depth = 15; wall_thickness = 2; has_lid = false; difference() { cube([width, depth, height]); translate([wall_thickness, wall_thickness, wall_thickness]) cube([width - 2*wall_thickness, depth - 2*wall_thickness, height - (has_lid ? wall_thickness :...
glb/cad_1e061685e49b.glb
Create a 3D star-shaped prism with a height of 10mm. The base of the prism is a five-pointed star defined by an outer radius of 20mm at the tips and an inner radius of 8mm at the valleys. Extrude this star geometry linearly to the specified height of 10mm to create a solid volume.
points = 5; outer_radius = 20; inner_radius = 8; module star(points, outer, inner) { angle = 360 / points; polygon(points = [ for (i = [0:points-1]) each [ [outer * cos(i * angle), outer * sin(i * angle)], [inner * cos((i + 0.5) * angle), inner * sin((i + 0.5) * angle)] ...
glb/cad_66521bfa19ac.glb
Create a 3D model of a small platform assembly. Start with a square base plate measuring 40mm by 40mm with a thickness of 5mm. At the four corners of this base, specifically at coordinates (5, 5), (5, 35), (35, 5), and (35, 35), place four vertical pillars. Each pillar should be a cylinder with a radius of 3mm, a heigh...
cube([40, 40, 5]); for (x = [5, 35], y = [5, 35]) { translate([x, y, 5]) cylinder(h = 20, r = 3, $fn = 20); } translate([0, 0, 25]) difference() { cube([40, 40, 3]); translate([20, 20, -1]) cylinder(h = 5, r = 8, $fn = 30); }
glb/cad_4bab21f53af0.glb
Create a 3D mesh deformation consisting of two parallel, undulating thin plates. Each plate is based on a 40mm by 40mm square grid with a resolution of 30 by 30 points. The surface height of the grid follows a wave pattern defined by a sine and cosine function with an amplitude of 3mm and a frequency of 2. Construct ...
size = 40; resolution = 30; wave_amplitude = 3; wave_frequency = 2; points = [ for (x = [0:resolution]) for (y = [0:resolution]) let (xp = (x / resolution - 0.5) * size) let (yp = (y / resolution - 0.5) * size) let (zp = wave_amplitude * sin(wave_frequency * 360 * x / re...
glb/cad_8c8ce0de7695.glb
Create a compression spring consisting of a continuous coiled wire. The spring should have a total of 8 full coils and a total height of 28mm. The wire itself is formed by a series of connected 10-sided prisms (low-resolution spheres) with a radius of 1.5mm. The center of the wire should follow a helical path with an o...
coils = 8; height = 40; outer_radius = 15; wire_radius = 1.5; compression = 0.3; module spring(coils, height, outer_r, wire_r, compression) { steps_per_coil = 20; total_steps = coils * steps_per_coil; for (i = [0:total_steps-1]) { hull() { z1 = (i / total_steps) * height * (1 - compre...
glb/cad_f8c61db97a37.glb
Create a Menger sponge fractal of the second iteration, starting with a base cube that is 30mm on each side. Divide this cube into a 3x3x3 grid of 20 smaller sub-cubes, each measuring 10mm per side. To achieve the fractal pattern, remove the central sub-cube of the entire structure and the central sub-cube of each of t...
module menger_iteration(size, level) { if (level <= 0) { cube(size, center = true); } else { new_size = size / 3; for (x = [-1, 0, 1]) { for (y = [-1, 0, 1]) { for (z = [-1, 0, 1]) { if ((abs(x) + abs(y) + abs(z)) > 1) { ...
glb/cad_900ab4b08d6d.glb
Create a 4x4 grid of rectangular prisms, where each prism has a square base of 8mm by 8mm. Space the prisms so that their starting positions are 10mm apart both horizontally and vertically. The height of each prism varies based on its distance from the center of the grid, specifically the point between the second and t...
rows = 4; cols = 4; base_size = 8; spacing = 10; max_height = 20; for (row = [0:rows-1]) { for (col = [0:cols-1]) { height = max_height * (1 - sqrt(pow(row - 1.5, 2) + pow(col - 1.5, 2)) / 3); translate([col * spacing, row * spacing, 0]) cube([base_size, base_size, max(height, 1)]); ...
glb/cad_55fe7c69e068.glb
Create an organic, spiraling shape by generating a sequence of 20 overlapping segments. For each segment, create a hull between two spheres. The first sphere is positioned 15mm from the center, rotated at a specific angle and placed at a certain height. The second sphere is positioned at the next 18-degree increment of...
module organic_shape() { steps = 20; for (i = [0:steps-1]) { hull() { rotate([0, 0, i * 360 / steps]) translate([15, 0, i * 2]) sphere(r = 5 - i/10, $fn = 20); rotate([0, 0, (i+1) * 360 / steps]) translate([15, 0, (i+1) * 2]) ...
glb/cad_5e06af2578eb.glb
Create a compound planetary gear system with a total thickness of 5mm. Start by constructing a central sun gear as a cylinder with a radius of 6mm, featuring 12 hexagonal teeth distributed evenly around its perimeter. Surround this with three planet gears, each with a radius of 4mm and 8 hexagonal teeth. Position these...
module ring_gear(teeth, module_size, thickness) { pitch_radius = teeth * module_size / 2; difference() { cylinder(h = thickness, r = pitch_radius + module_size * 2, $fn = 60); for (i = [0:teeth-1]) { rotate([0, 0, i * 360 / teeth]) translate([pitch_radius, 0, -1]) ...
glb/cad_00a321ec72f0.glb
Create a 30mm cube centered on the origin. Remove a cylindrical hole from the center of the cube that passes completely through it, with a radius of 10mm and a height of 40mm. Finally, place a sphere with a radius of 8mm on top of the cube, centered at the coordinates (0, 0, 25).
difference() { cube([30, 30, 30], center = true); cylinder(h = 40, r = 10, center = true, $fn = 50); } translate([0, 0, 25]) sphere(r = 8, $fn = 50);
glb/cad_e641e88e6862.glb
Create a truncated cone with a height of 25mm. The base should be a regular polygon with 30 sides and a radius of 15mm, tapering upward to a flat top surface with a radius of 2mm.
cylinder(h = 25, r1 = 15, r2 = 2, $fn = 30);
glb/cad_a80796bf97c6.glb
Create a 3D helix by extruding a circle with a radius of 2mm. Position the center of this circle 10mm away from the central axis of rotation. Extrude the shape vertically to a total height of 50mm, applying a total twist of 720 degrees around the central axis to form two complete revolutions. Ensure the circular profil...
linear_extrude(height = 50, twist = 720, $fn = 100) translate([10, 0, 0]) circle(r = 2);
glb/cad_1a4303ffaf5f.glb
Create a 3D model by combining a cube and a sphere. Start by creating a cube with dimensions of 20mm x 20mm x 20mm. Then, place a sphere with a radius of 15mm such that its center is positioned exactly at the coordinates (10, 10, 10), which corresponds to one of the cube's vertices. Ensure the sphere is rendered with a...
union() { cube([20, 20, 20]); translate([10, 10, 10]) sphere(r = 15, $fn = 40); }
glb/cad_dcd7e1ca2153.glb
Create a torus by revolving a circle with a radius of 5mm around a central axis. The center of this circle should be positioned 20mm away from the axis of revolution. Ensure the resulting ring has a faceted appearance, using a resolution of 30 sides for the circular cross-section and 50 segments for the overall rotatio...
rotate_extrude($fn = 50) translate([20, 0, 0]) circle(r = 5, $fn = 30);
glb/cad_0f5413038209.glb
Create a sphere with a radius of 15mm. Ensure the sphere is rendered with a resolution of 50 facets to maintain a smooth, rounded appearance.
sphere(r = 15, $fn = 50);
glb/cad_212b6f4e7ccc.glb
Create a cylinder with a height of 30mm and a radius of 10mm. The cylinder should be constructed with a facet resolution of 40 sides to define its circular cross-section.
cylinder(h = 30, r = 10, $fn = 40);
glb/cad_cdd932e43a7d.glb
Create a pi_pico_lamp base consisting of a central pillar and a circular foundation. Start with a bottom ring that has an outer diameter of 92mm and a thickness of 3mm, with a concentric inner hole of 86mm. On top of this ring, place two perpendicular rectangular strips, each 12mm wide and 3mm thick, crossing at the ce...
use <pico_lamp_top.scad>; $fn = 200; FUDGE = 0.001; center_h = 65.0; center_d = 30.0; bottom_thick = 3.0; pico_width = 21.5; pico_board_l = 50.1; pico_thick = 3.5; center_room = 10.0; wire_hole = 14.0; outer_d = 92.0; base_strip_w = 12.0; tab_rise = 3.8; union() { difference() { cylinder(h=center_h, d=center...
glb/cad_eb932e23eb67.glb
Create a cylindrical cover for a Pi Pico lamp. Start by creating a main cylinder with a height of 68mm and an outer diameter of 89.6mm. Hollow out the center by removing a concentric cylinder from the inside, starting 1.2mm from the bottom, with a height of 67mm and a diameter of 86.4mm. To create the USB port openin...
$fn = 200; FUDGE = 0.001; center_h = 67.0; center_d = 30.0; thick = 3.0; USB_thick = 6.5; USB_width = 10.5; wall = 1.2; outer_d = 92.0; base_strip_w = 12.0; tab_rise = 3.8; module Cover() { difference() { cylinder(h=center_h+1, d=(outer_d-(2*(thick-wall)))+0.2); translate([0, 0, wall]) cylinder(h=cen...
glb/cad_d2c92f78acfe.glb
Create a trenchy-classy-chassis-mods wheel assembly. Start with a base disk 20mm in diameter and 7mm in height. On the top surface of this disk, add a tapered Phillips head protrusion 4mm high, consisting of two intersecting rectangular arms. The base of these arms should be 3.8mm wide and 9.8mm long, tapering to a top...
disk_diameter = 20; disk_height = 7; handle_diameter = 8; handle_height = 12; resolution = 100; phillips_height = 4; phillips_width_base = 3.8; phillips_width_top = 3.0; phillips_diameter_base = 9.8; phillips_diameter_top = 8.0; rim_notch_depth = 1.5; rim_notch_height = 5.0; rim_bottom_lip_diameter = disk_diameter -1...
glb/cad_3ea6ade6a144.glb
Create a trenchy-classy-chassis-mods axle by constructing a central shaft 33mm long with a diameter of 8.2mm. At both the top and bottom ends of this shaft, add a cylindrical rim with a diameter of 16mm and a height of 6mm. Connect each rim to the central shaft using a conical transition section that is 3mm high, taper...
axle_length = 33; axle_diameter = 8.2; outer_rim_diameter = 16; rim_depth = 6; transition_height = 3; hole_diameter = 6; resolution = 100; phillips_depth = 2; phillips_width = 4; phillips_diameter = 10; total_height = axle_length; module phillips_head(diameter, width, depth, top_position) { if (top_position) { ...
glb/cad_59cf9d4a1f05.glb
Create a Fabrikator 2 mini E3D v6 mount consisting of two mirrored symmetrical halves. Each half is based on a composite block: a base rectangular volume of 30mm x 20mm x 10mm, with an additional 30mm x 10mm x 5mm block centered on top and a 30mm x 19mm x 9mm block offset by -9mm on the Y-axis and 15mm on the Z-axis. ...
module prism(l, w, h){ polyhedron( points=[[0,0,0], [l,0,0], [l,w,0], [0,w,0], [0,w,h], [l,w,h]], faces=[[0,1,2,3],[5,4,3,2],[0,4,5,1],[0,3,4],[5,2,1]] ); } module block() { union() { translate([0,-9,15]) cube([30,19, 9]); translate([0, 0,10]) cube([30,10...
glb/cad_8d585663d132.glb
Create a 3D model of the Echo CoreXY 3D printer frame. Construct the main outer chassis using 20mm x 40mm rectangular aluminum extrusions. The frame is a cubic structure where the base and sides are formed by extrusions of varying lengths: four sections are 496mm long, four are 560mm long, and two are 442mm long. Arran...
module alu_2020(length) { color("gray") { translate([0, 0, length/2]) { cube([20, 20, length],center=true); } } } module alu_2040(length) { color("gray") { translate([0, 0, length/2]) { cube([20, 40, length], center=true); } } } module echo_frame...
glb/cad_3938ec5b0616.glb
Create a CNC mount for the XPhotonics X1 Pro. Start with a central vertical block measuring 32mm wide, 9mm deep, and 70mm high, topped with a smaller centered rectangular extension measuring 36mm wide, 9mm deep, and 10mm high. Attach a base plate to the bottom that is 45mm wide, 22mm deep, and 5mm thick, featuring a ce...
T = 4; ST = 4; SW = T+18; H = 45; $fn=20; CUTLH=12+15; CUTRLH=9+15; TORCHW=36.5; difference() { union() { translate([0,-4.5,0]) { cube([32,9,70], center=true); translate([0,0,35+5])cube([36,9,10], center=true); } translate([0,T/2,H/2]) cube([TORCHW+ST*2,T,H], center=...
glb/cad_92eb73d22378.glb
Create a bottom shell for a parametric box with overall dimensions of 94mm length, 50mm width, and 30mm height. The shell should have a wall thickness of 2mm and rounded corners with a 1mm radius. The interior of the box is hollowed out, leaving a 2mm thick floor and walls. To create the side walls, subtract a smalle...
Length = 94; Width = 50; Height = 30; Thick = 2; Filet = 1; Resolution = 50; m = 0.9; PCBFeet = 1; Vent = 1; Vent_width = 2; PCBPosX = 7; PCBPosY = 0; PCBLength = 66; PCBWidth = 26; FootHe...
glb/cad_a8be201ec220.glb
Create a bottom shell for an electronic enclosure with overall dimensions of 125mm in length, 74mm in width, and 50mm in height. The shell should have a wall thickness of 2mm and rounded corners with a 2mm radius. The interior of the shell is hollowed out, leaving a 2mm thick perimeter. Along the side walls, incorpor...
Length = 125; Width = 74; Height = 50; Thick = 2; Filet = 2; Resolution = 50; m = 0.9; PCBFeet = 1; Vent = 1; Vent_width = 2; PCBPosX = 7; PCBPosY = 6; PCBLength = 96.52; PCBWidth = 33.02; ...
glb/cad_182f89de141c.glb
Create a PlaqueGenerator consisting of a base plate and an embossed rim with centered text. Start by creating a square base plate 125mm wide, 125mm high, and 2mm thick, with corner radii of 8mm. On top of the base, add an embossed rim with a height of 1.2mm. This rim is a rounded square band with an outer margin of 9m...
$fn = 64; size = 125; radius = 8; thickness = 2; rim_margin = 9; rim_width = 2; rim_height = 1.2; segment_ratio = 0.30; text_lines = [ "Let it be", "realmente um dos", "deuses mais lindos...
glb/cad_66f96cb9b135.glb
Create a PlaqueGenerator consisting of a rounded base with embossed text and a symbol. Start by creating a rounded square base 125mm wide, 125mm high, and 1.5mm thick, with a corner radius of 6mm. On top of this base, add embossed details with a thickness of 0.8mm. In the upper-left area, 15mm from the top and left e...
width = 125; height = 125; radius = 6; base_thickness = 1.5; details_thickness = 0.8; quote_font = "Montserrat:style=ExtraBold"; author_font = "Montserrat:style=ExtraBold Italic"; symbol_font = "Symbola"; symbol_char = "♪"; symbol_size = 30; symbol_margin = 15; quote_lines = [ "O acaso vai", "me p...
glb/cad_bfe3cf4b5028.glb
Create a PlaqueGenerator consisting of a thin base plate with embossed text and a symbol. Start by creating a rounded square base 125mm wide, 125mm high, and 1.5mm thick, with corner radii of 6mm. Within this base, create a recessed inner area by removing a centered rounded square that is 121mm wide and 121mm high with...
width = 125; height = 125; radius = 6; base_thickness = 1.5; wall_thickness = 2; details_thickness = 0.8; quote_font = "Montserrat:style=ExtraBold"; author_font = "Montserrat:style=ExtraBold Italic"; symbol_font = "Symbola"; symbol_char = "♫"; symbol_size = 25; symbol_margin = 15; quote_lines = [ "É preciso", ...
glb/cad_dd6391765c2f.glb
Create a magnetic label generator consisting of a rounded rectangular base with a thickness of 4mm and a corner radius of 3mm. The base dimensions should be calculated based on the text "placeholder" using a bold Arial font with a letter size of 13.333mm and a height of 1mm, adding 6mm of padding to the sides and 3mm t...
include <Round-Anything/polyround.scad> labeltext = "placeholder"; textcolor = "white"; bordercolor = "white"; label_text_length = len(labeltext); font = "Arial L:style=Bold"; letter_size = 13.333; letter_height = 1; text_metrics = textmetrics(text=labeltext, font=font, halign="center", valign="center", $fn=64); lab...
glb/cad_3c6505c931f9.glb
Create a shaper-domino-3d tile by starting with a solid rectangular block that is 160mm wide, 50mm deep, and 10mm thick. Along the two longest edges, incorporate a series of interlocking dovetail joints. These joints should be spaced and shaped to be compatible with the Shaper Origin CNC machine's domino system, consis...
include <tile-utils.scad> include <tile-bits-4x10.scad> TILE = [COLUMNS * DOMINO_X_SPACE, 1 * DOMINO_Y_SPACE, THICKNESS]; difference() { color(TILE_COLOR) translate([0, 0, 0]) cube(TILE); negative_x_dovetails(TILE.x, TILE.y); } union() { color(TILE_COLOR) rotate([180, 0, 0]) translate([0, 50, 0]) { ...
glb/cad_81a0a89c6117.glb
Create a 100hex plaque by starting with a flat hexagonal prism that is 2mm thick and has a radius of 60mm. Hollow out the center of this hexagon by removing a smaller concentric hexagon with a radius of 58mm, leaving a border wall 2mm wide. Within the remaining solid area of the large hexagon, carve out a series of v...
hex=60; h=2; ancho_lina=2; radio_circulo=ancho_lina/2; ancho_bordo=ancho_lina; mode=0; dobre=0; pi=3.1416; linear_extrude(h) union(){ difference(){ circle (r=hex, $fn=6); circle (r=hex-ancho_bordo, $fn=6); } if (mode==0){ difference() { circle (r=hex, $fn=6); ...
glb/cad_aabf595441fe.glb
Create a 100hex spirograph-style plate with a height of 2mm. The overall boundary is a regular hexagon with a side length of 60mm and a border wall thickness of 1.6mm. Inside this hexagonal frame, generate a complex geometric pattern based on a spirograph path. This pattern is formed by a series of overlapping paths ...
function Z(x, y) = sqrt(R_fora - (pow(x, 2) + pow(y, 2))); function F(a, b) = a % b == 0 ? b : F(b, a % b); dentro = true; R_fixo = 64; R_mobil = 30; R_debuxo = 40; pasos = 2; e = 1.6; h = 2; figura= true; lados=6; l=60; ancho=e; angulo=0; R_fm = R_fixo / R_mobil; R_fora = dentro ? pow(R_fixo + (R_debuxo - R_mobil)...
glb/cad_286d05b86bbb.glb
Create a 3D model of a hexagonal plaque with a height of 2mm. The outer boundary is a regular hexagon with a side length of 60mm. This boundary is a hollow frame with a wall thickness of 2mm. Inside this hexagonal frame, center a spiral pattern based on the Padovan sequence. The spiral is composed of a series of conne...
hexagono=true; hex=60; bordo=2; tipo=1; escala=1; espirais=1; dobre=false; xiro=0; n_inicio=1; n_final=15; w = bordo/escala; h = 2; res=36; function fibonacci(n) = n == 0 || n == 1 ? n : ( fibonacci(n-1)+fibonacci(n-2) ); function padovan(n) = n == 0 || n == 1 || n== 2 ? 1 : ( padovan(n-2)+padovan(n-3) ); m...
glb/cad_b71232f2134e.glb
Create a 100hex emblem by constructing a flat hexagonal plate with a height of 2mm. The outer boundary is a regular hexagon with a side length of 60mm. This plate features a hollowed-out hexagonal rim with a wall thickness of 2mm. Centered within this frame, carve out a heart-shaped hole. The heart's geometry is define...
hexagono=true; h=2; hex=60; burato=true; espesor=2; w= burato ? 0.4 : espesor; a=1; function x(t) = 47*pow(sin(t),3); function y(t) = 39*cos(t)-15*cos(2*t)-6*cos(3*t)-3*cos(4*t); module heart() { for(i=[-180:1:180]) { hull(){ translate([a*x(i),a*y(i),0]) circle(r=w/2, $fn=20); ...
glb/cad_9537c0954266.glb
Create a 3D model of a hexagonal grid tile called "100hex". Start by creating a large hexagonal outer boundary with a side length of 60mm and a height of 2mm. This boundary should be a hollow hexagonal ring with a wall thickness of 1.6mm. Inside this boundary, fill the area with a tessellation of smaller hexagons. E...
hexagono(forma); w = 1.6; h = 2 ; hex = 60 ; bordo = w ; n = 4 ; forma = 0 ; res = 60; echo ("forma=", forma); echo ("n=", n); f= (forma==5||forma==6||forma==8||forma==9||forma==11||forma==12||forma==13||forma==14||forma==15||forma==16||forma==17||forma==18||forma==19||forma==20||forma==21||forma==22||forma==23 |...
glb/cad_ef132e662c38.glb
Create a 100hex decorative plate by extruding a 2D geometric pattern to a height of 2mm. The overall boundary is a regular hexagon with a side length of 60mm. This boundary consists of a solid hexagonal rim with a thickness of 1.6mm. Inside this rim, create a complex interlaced pattern based on a Lissajous curve. The c...
hexagono=true; h=2; hex=60; ancho=1.6; bordo=1.6; res=60; pi = 3.14159265359; e=0.4; module lissajous() { for (i = [0: abs(e) : 360-e]) { hull() { translate([24*sin(7*pi*i),24*cos(5*pi*i),0]) circle(r=ancho/4, $fn=res); translate([24*sin(7*pi*(i+e)),24*cos(5*pi*(i+e)),0]) circle(r=ancho/4,...
glb/cad_0e8016c98a5a.glb
Create a 3D model of a Dragon Curve fractal with a height of 2mm. The structure is composed of repeated rectangular segments, each with a length of 20mm and a width of 4mm. The overall layout follows a recursive dragon curve pattern at level 8. Each segment of the curve is a rectangular prism. The segments are joined...
nivel = 8; l=20; w =l/5; h=2; forma=0; e=0.4; res=72; module dragon(nivel) { if (nivel <= 0) { translate([l/2,0]) linha(); } else { rotate(-45) scale(1/sqrt(2)) dragon(nivel-1); translate([l,0]) rotate(-135) scale(1/sqrt(2)) dragon(nivel-1); } } linear_extrude(h) sca...
glb/cad_52b0e0d1d6f1.glb
Create a 3D representation of a Dragon Curve fractal extruded to a height of 2mm. The base geometry is generated by recursively iterating a line segment pattern to level 10, where each segment has a length of 6mm and a width of 2mm. The fractal is constructed by starting with a base segment and repeatedly applying a pa...
nivel = 10; ancho = 2; l=6; h=2; module dragon(nivel) { if (nivel <= 0) { translate([l/2,0]) square([l+ancho, ancho], center=true); } else { rotate(45) scale(1/sqrt(2)) dragon(nivel-1); translate([l,0]) rotate(135) scale(1/sqrt(2)) dragon (nivel-1); } } linear_extrude(h) scale(20)...
glb/cad_81b0b56950c7.glb
Create a 3D pattern called 100hex based on a recursive hexagonal grid. Start by creating a single hexagonal ring with an outer radius of 31mm and an inner radius of 29mm, resulting in a wall thickness of 2mm. This hexagon should be a 10-sided polygon rather than a smooth circle. Extrude this shape to a height of 2mm. ...
radio=30; grosor=2; altura=2; xiro=0; item=3; fn=10; module hex(rad, g) { rotate([0,0,xiro]) difference() { circle(r=rad+g/2, $fn=fn); circle(r=rad-g/2, $fn=fn); } } module hexFlower (rad, g, item){ function x(n) = (rad) * sin(n*60); function y(n) = (rad) * cos(n*60);...
glb/cad_6984b4f9c756.glb
Create a 3D emblem called 100hex by extruding a complex 2D geometric pattern to a height of 2mm. The base of the design is a hollow regular hexagon with an outer radius of 60mm and a wall thickness of 2mm. Inside this hexagonal frame, integrate three overlapping hypotrochoid curves. Each curve is generated using parame...
module hypotrochoid(t0,tf,ti,rb,n,h,b,sc){ for ( t = [t0:ti:tf]){ x1 = (n * cos(t) + h * cos(n*t/b))*sc; y1 = (n * sin(t) - h * sin(n*t/b))*sc; x2 = (n * cos((t+ti)) + h * cos(n*(t+ti)/b))*sc; y2 = (n * sin((t+ti)) - h * sin(n*(t+ti)/b))*sc; tx = (x1+x2)/2; ty = (y1+y...
glb/cad_ee7b9bcfa329.glb
Create a 3D plaque with a height of 2mm based on a hexagonal outer frame. The outer boundary is a regular hexagon with a radius of 60mm. This frame has a consistent wall thickness of 1.6mm, created by subtracting a smaller concentric hexagon from the outer one. Inside this frame, place a geometric pattern consisting o...
altura=2; marco=1.6; hex=60 ; radio=30; grosor=1.6; matriz=[5,5]; escala=0.98; w=(grosor/cos(45))/escala; module oct1() { rotate (360/16) union() { square([2*radio/sqrt(2), 2*radio/sqrt(2)], center=true); rotate([0,0,45]) square([2*radio/sqrt(2), 2*radio/sqrt(2)], center=true); } } module oc...
glb/cad_5b0d74b53f6d.glb
Create a 3D model of a 100hex spiral pattern. Start by generating three identical Archimedean spirals that originate from the center and radiate outwards. Each spiral line should have a thickness of 2mm. The spirals are formed by a series of connected circles with a radius of 1mm, expanding at a rate of 0.06mm per degr...
n = 3; a = 0.06; pasos = 5; voltas= 8; ancho = 2; res=20; hexagono=true; h=2; hex=60; bordo=2; module espiral(){ for(i=[0:360/n:360]){ rotate([0,0,i]) for(p=[0:pasos:360*voltas]) { hull(){ translate([a*p*cos(p),a*p*sin(p),0]) circle(r=ancho/2, $fn=res); transla...
glb/cad_0df8c1345e38.glb
Create a torus by rotating a circle with a radius of 10mm around a central axis. The center of this circle should be positioned 20mm away from the axis of rotation to create a ring shape with a hole in the middle. Ensure the final geometry is smooth with high facet resolution.
rotate_extrude(convexity = 10, $fn = 200) translate([20, 0, 0]) circle(r = 10, $fn = 200);
glb/cad_86d35b982c17.glb
Create a hard-tube-bending-jig consisting of a base and a curved guide. The main body is a curved channel designed to hold a tube with a radius of 8mm. The inner radius of the bend is 20mm, and the bend angle is 90 degrees. The walls of the channel are 1.5mm thick. The jig features a flat skirt that extends from the b...
$fn = 200; top = false; tube_radius = 8; bend_radius = 20; bend_angle = 90; straight_l = 80; wall_width = 1.5; skirt_radius_multiplier = 2; bolt_diameter = 3; bolt_radius_multiplier = 1.1; bolt_head_diameter = 6; bolt_head_depth = 2; nut_width = 5.5; nut_hole_multiplier = 1.03; nut_depth = 4; text_pt = 7...
glb/cad_ec65377e2beb.glb
Create a cavycam assembly starting with a rectangular base plate measuring 297mm by 211mm with a thickness of 2mm. On this base, position a Raspberry Pi 3 Model B board at coordinates (1.5, 86.5, 0) and rotate it 90 degrees. Secure this board using four brass male-female spacers, each 20mm in height, placed at the boar...
include <libraries/raspberry_pi3_model_b.scad> include <libraries/hc-sr501.scad> include <libraries/brass_spacer.scad> include <libraries/breadboard_63.scad> include <libraries/elegoo_power_board.scad> perspex_only = 0; show_breadboard = 1; show_hc_sr501 = 1; show_rp3b = 1; module perspex() { color([0,1,1,1]) cub...
glb/cad_45bfa00fc1a9.glb
Create a domelight consisting of six identical long, thin cylinders arranged in a radial star pattern. Each cylinder must have a radius of 8mm and a total length of 400mm. Position the cylinders so that they all intersect at a single central point, with each one rotated 60 degrees around the central axis relative to th...
crossy(); module arms(){ for(i=[0:6]){ rotate([0,0,30 + i*60]) translate([70,0,5]) rotate([0,-11,0]) arm(); } } module center(){ translate([0,0,-10]) wemos_d1_mini(); union(){ translate([0,0,50*0.2+2]) scale([1,1,0.2]) sphere(r=50,$fn=6, center=true); cylinder(r=50,h=25,$fn=6, ...
glb/cad_b8ab7841a8d8.glb
Create a domelight consisting of a top and bottom shell that fit together. The overall shape is based on a triangular prism with rounded edges, created by the hull of a 3-sided cylinder (radius 30mm, height 20mm) and three outer cubes (40mm x 40mm x 20mm) rotated every 120 degrees. For the top shell, include a central...
include <wemos_d1_mini.scad> $fn=20; thing("top"); translate([0,0,-90]) thing("bottom"); translate([0,0,-200]) thing("lid"); windows(); translate([0,0,-80]) magnets(); translate([-5,0,-180]){ } module thing(type){ if(type=="lid"){ battery_lid(); }else{ color([1,1,0.4,0.2]) difference(){ shell(); for(...
glb/cad_c3c84fa41376.glb
Create a multi-directional Chinese character model that reveals different text depending on the viewing angle. The final shape is the intersection of two extruded text arrays. First, create the first text array using the characters "新年快乐恭喜发财". Arrange these characters vertically with a font size of 16mm and a spacing ...
$fn = 20; preview_quality = 0; show_reference_faces = true; face_identification = 1; face_id_size_ratio = 0.6; face_id_offset = 5; front_face_color = "#FFB6C1"; back_face_color = "#ADD8E6"; face_id_line_width = 1.2; face_opacity = 0.2; face_size_ratio = 0.9; face_thickness = 0.8; function get_quality_param(p...
glb/cad_3c3ba9bfb048.glb
Create a multi-directional character model consisting of two intersecting 3D characters. First, create a 3D character of the Chinese symbol "福" (Fu) by extruding it to a depth of 12mm. Create a second 3D character of the Chinese symbol "禄" (Lu), also extruded to a depth of 12mm. Position the first character at the or...
$fn = 20; preview_quality = 0; show_reference_faces = true; face_identification = 1; face_id_size_ratio = 0.6; face_id_offset = 5; front_face_color = "#FFB6C1"; back_face_color = "#ADD8E6"; face_id_line_width = 1.2; face_opacity = 0.2; face_size_ratio = 0.9; face_thickness = 0.8; function get_quality_param(p...
glb/cad_fde1e57a91b3.glb
Create a multi-directional Chinese character model consisting of four distinct text strings—"新年快乐", "恭喜发财", "万事如意", and "阖家幸福"—each extruded into 3D geometry with a depth of 12mm and a wall thickness of 1.8mm to create a hollow effect. Position each text string on a separate plane by rotating them around the Y-axis a...
$fn = 20; preview_quality = 0; show_reference_faces = true; face_identification = 1; face_id_size_ratio = 0.6; face_id_offset = 5; face1_color = "#FFB6C1"; face2_color = "#ADD8E6"; face3_color = "#98FB98"; face4_color = "#FFFACD"; face_id_line_width = 1.2; face_opacity = 0.2; face_size_ratio = 0.9; face_thick...
glb/cad_2f771dc57867.glb
Create a multi-directional Chinese character model that displays different characters when viewed from three orthogonal axes. First, generate three separate 3D text objects using a font like STKaiti. Each character should be extruded to a depth of 24mm (0.8 times the 30mm extrude depth) and scaled to 90% of the overa...
$fn = 30; char_front = "中"; char_side = "国"; char_top = "人"; font = "华文楷体"; char_size = 18; extrude_depth = 30; wall_thickness = 2.5; cube_size = 40; stroke_offset = 0.6; show_mode = 0; show_reference_faces = true; face_identification = 1; face_id_size_ratio = 0.4; face_id_offset = 2; front_face_color = ...
glb/cad_cc39cb9dc425.glb
Create a multi-directional character model consisting of two intersecting 3D Chinese characters, "中" and "国", both with a font size of 18mm and a wall thickness of 2.5mm. First, generate the character "中" by extruding it to a depth of 24mm (80% of the 30mm extrude depth). Create the character "国" with the same dimens...
$fn = 30; char_front = "中"; char_side = "国"; font = "华文楷体"; char_size = 18; front_x_angle = 0; front_y_angle = 0; front_z_angle = 0; side_x_angle = 0; side_y_angle = 90; side_z_angle = 0; extrude_depth = 30; wall_thickness = 2.5; cube_size = 40; stroke_offset = 0.6; show_mode = 0; show_reference_faces =...
glb/cad_e08ceb726f20.glb
Create a multi-directional Chinese character model consisting of two intersecting sets of 3D text. First, generate the first set of text "新年快乐恭喜发财万事如意" using a sans-serif font with a character size of 16mm. Arrange these characters in a vertical column, rotate each character 270 degrees on its local plane, and extrud...
$fn = 20; preview_quality = 0; show_reference_faces = true; face_identification = 1; face_id_size_ratio = 0.6; face_id_offset = 5; front_face_color = "#FFB6C1"; back_face_color = "#ADD8E6"; face_id_line_width = 1.2; face_opacity = 0.2; face_size_ratio = 0.9; face_thickness = 0.8; function get_quality_param(p...
glb/cad_818a2b1dde2e.glb
Create a multi-directional Chinese character model consisting of four distinct characters, each extruded to a depth of 12mm. The characters are "福", "禄", "寿", and "喜", each with a font size of 20mm. Construct the model by positioning each character on a plane corresponding to the faces of a regular octahedron. The fi...
$fn = 20; preview_quality = 0; show_reference_faces = true; face_identification = 1; face_id_size_ratio = 0.6; face_id_offset = 5; face1_color = "#FFB6C1"; face2_color = "#ADD8E6"; face3_color = "#98FB98"; face4_color = "#FFFACD"; face_id_line_width = 1.2; face_opacity = 0.2; face_size_ratio = 0.9; face_thick...
glb/cad_4fb88999a682.glb
Create a multi-directional Chinese character model consisting of three sets of extruded text that intersect to form a single cohesive object. Each set of text should be extruded to a depth of 12mm with a wall thickness of 1.8mm, creating a hollow shell effect. The three text strings are "新年快乐" (Happy New Year), "恭喜发财"...
$fn = 20; preview_quality = 0; show_reference_faces = true; face_identification = 1; face_id_size_ratio = 0.6; face_id_offset = 5; face1_color = "#FFB6C1"; face2_color = "#ADD8E6"; face3_color = "#98FB98"; face_id_line_width = 1.2; face_opacity = 0.2; face_size_ratio = 0.9; face_thickness = 0.8; function get...
glb/cad_fc3b79a7c31f.glb
Create a multi-directional Chinese character model based on the intersection of four 3D characters and a regular octahedron. First, define a regular octahedron with a radius of 20mm. The final geometry is the intersection of this octahedron and four extruded 3D characters, each with a font size of 12mm and an extrusi...
$fn = 30; char_face1 = "中"; char_face2 = "国"; char_face3 = "人"; char_face4 = "福"; font = "华文楷体"; char_size = 12; size = 20; extrude_depth = 16; wall_thickness = 2.5; stroke_offset = 0.6; show_mode = 0; show_axes = false; performance_mode = 0; face_identification = 1; face_selection_mode = 1; face1_x_ang...
glb/cad_aee6dd2566f9.glb
Create a multi-directional Chinese character model by calculating the intersection of two sets of 3D extruded text. First, generate the first set of characters using the text "新年快乐恭喜发财万事如意". Arrange these characters in a vertical column, rotate each character 270 degrees on its local plane, and extrude them to a dept...
$fn = 20; preview_quality = 0; show_reference_faces = true; face_identification = 1; face_id_size_ratio = 0.6; face_id_offset = 5; front_face_color = "#FFB6C1"; back_face_color = "#ADD8E6"; face_id_line_width = 1.2; face_opacity = 0.2; face_size_ratio = 0.9; face_thickness = 0.8; function get_quality_param(p...
glb/cad_d6a5bcfc153d.glb
Create a Tubing Cutter tool by combining several geometric blocks. Start with a base structure consisting of two mirrored, complex L-shaped brackets. Each bracket is formed by a block 36.5mm wide, 7.35mm high, and 6mm deep, with a rectangular section removed from the center to create a channel. In the center of the a...
tube_length = 11; module bot(h){ hA = 2; dh = 3; x = 35; dx = 1.5; y1 = 4.35; y2 = 3.3; y12 = 0.3; dy = 3; h1 = 6; l = 15; module bot1(h){ difference(){ translate([0,-dy/2,-dh]) cube([x+dx,y1+dy,h+dh]); translate([x,0,0]) ...
glb/cad_7fa54afbb06d.glb
Create a Quantum SkullCrusher Camera Mount by starting with a rectangular base plate measuring 24mm by 25mm with a thickness of 1mm. At the four corners of this base, place four octagonal holes with a diameter of 2mm and a depth of 3mm, positioned at coordinates (2, 2), (2, 23), (14.5, 2), and (14.5, 23). On top of t...
module rpi_camera() { color("darkblue") difference() { cube([24,25,1]); translate([2,2,-1]) cylinder(d=2,h=3,$fn=8); translate([2,23,-1]) cylinder(d=2,h=3,$fn=8); translate([14.5,2,-1]) cylinder(d=2,h=3,$fn=8); translate([14.5,23,-1]) cylinder(d=2,h=3,$fn=8); } color("DimGray") union() ...
glb/cad_d43bca0adb6b.glb
Create a QuantumSkullCrusherCameraMount by assembling several geometric components. Start with a main rectangular base measuring 24mm by 25mm with a height of 1mm. Place a smaller cube of 8mm by 8mm by 3.25mm centered at coordinates (10.25, 8.5, 1). On top of this cube, add a 16-sided cylinder with a diameter of 7.5mm ...
module rpi_camera() { color("darkblue") difference() { #cube([24,25,1]); translate([2,2,-1]) cylinder(d=2,h=3,$fn=8); translate([2,23,-1]) cylinder(d=2,h=3,$fn=8); translate([14.5,2,-1]) cylinder(d=2,h=3,$fn=8); translate([14.5,23,-1]) cylinder(d=2,h=3,$fn=8); } color("DimGray") union()...
glb/cad_2449676abba2.glb
Create a FanAdapter consisting of a square base, a conical transition, and a cylindrical insert. Start with a square base plate measuring 140mm by 140mm with a thickness of 1.5mm. At each of the four corners of this base, center a 4.9mm diameter screw hole exactly 7.5mm from the edges. From the center of the base, bui...
$fn = 100; buffer=0.02; screw_hole_size = 4.9; hole_distance = 7.5; thickness = 1.5; fan_size = 140; filter_hole_diameter = 140; insert_length = 70; sealing_circle_length = 4; cone_steepness = 0.65; cone = fan_size>filter_hole_diameter ? (fan_size-filter_hole_diameter)/cone_steepness : (filter_hole_diameter-fan_s...
glb/cad_f3ff3c3b53f2.glb
Create a FanAdapter by starting with a square block that has rounded corners with a 3mm radius. The overall outer dimensions of this block should be 144.1mm by 144.1mm, with a total height of 7mm. Carve a square hole through the center of the block to create a wall thickness of 2mm around the perimeter; this inner cu...
$fn = 100; module roundedCornersCube(x ,y ,z,r) { hull() { translate([r,r,0]) cylinder(h=z,r=r); translate([x-r,r,0]) cylinder(h=z,r=r); translate([r,y-r,0]) cylinder(h=z,r=r); translate([x-r,y-r,0]) cylinder(h=z,r=r); } } buffer=0.02; screw_hole_size = 4.9; hole_distance = 7.5; thickness =...
glb/cad_9571b31bf3fc.glb
Create a quntisRemoteHolder by starting with a main cylinder that has a radius of 44.1mm and a total height of 27.7mm. Hollow out the center of this cylinder by removing a smaller cylinder with a radius of 40.1mm and a height of 25.7mm, starting from a height of 2mm from the base, to create a walls-and-base structure. ...
include <BOSL2/std.scad> include <BOSL2/threading.scad> include <BOSL2/screws.scad> $fn = 50; radius = 40.1; height = 25.7; rimSize = 3; rimThickness = 2; thickness = 2; screwDiamter = 3.1; buffer = 0.01; difference() { union() { cylinder(r=radius+thickness*2, h=height+thickness, anchor=BOTTOM); ...
glb/cad_d967c6b9df90.glb
Create a ToysSpareParts actuator with a total length of 80mm. Construct the object by combining four coaxial cylindrical sections along a central axis. Start by placing a cylinder with a diameter of 9mm and a length of 6.78mm at one end. Adjacent to this, add a cylinder with a diameter of 5.5mm and a length of 22.4mm. ...
use <latch.scad> eps = 0.01; module actuator( l ) { d1 = 9; d2 = 4; r1 = d1 / 2; r2 = d2 / 2; la = l - 2 * r2; l1 = 0.35 * la; l2 = 0.65 * la; c1 = l1 / 2 + r2 + eps; c2 = l1 + l2 / 2 + r2 - eps; union() { latch_1( 6.78, d1, d2 ); translate( [ c1, 0, 0 ] ) ...
glb/cad_d8381d8ccc97.glb