Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a twisted band, specifically a Mobius strip, by extruding a rectangular profile along a circular path. The rectangular profile should have a width of 20mm and a thickness of 2mm. The path of extrusion is a circle with a radius of 50mm. As the profile is extruded along this circular path, rotate the rectangle 1...
band_width = 20; band_thickness = 2; circle_radius = 50; circle_frags = 48; half_circles_twisted = 1; function _rotx(pt, a) = let(cosa = cos(a), sina = sin(a)) [ pt[0], pt[1] * cosa - pt[2] * sina, pt[1] * sina + pt[2] * cosa ]; function _roty(pt, a) = let(cosa = cos(a), sina =...
glb/cad_84610497b4d0.glb
Create a dummy plate for a mini quadcopter stack by starting with a square slab measuring 36mm by 36mm with a thickness of 1mm. At each of the four corners, create a circular hole with a diameter of 3.5mm that passes completely through the slab. Position these holes so that the distance between the centers of any two a...
OUTER_SIZE=[36,36,1]; HOLES=3.5; SPACE_BETWEEN_HOLES=30.5; OFFSET = (OUTER_SIZE[0] - SPACE_BETWEEN_HOLES) / 2; $fn=127; difference() { cube(OUTER_SIZE); translate([OFFSET,OFFSET,-5]) { cylinder(r=HOLES/2, h=10); } translate([OFFSET+SPACE_BETWEEN_HOLES,OFFSET,-5]) { cylinder(r=HOLES/2, h=10); } tr...
glb/cad_cdacab02e313.glb
Create a parametric shaft coupler with a total outer diameter of 40mm and a 36-sided polygonal cross-section. The main body is a cylinder with a total length composed of two end sections of 25.4mm each and a middle section of 2mm. Through the center of the entire length, create a hexagonal hole with a flat-to-flat dia...
include <configuration.scad> module spring(rad,h,s,tw,d){ shiftR = 8*rad*d/3; intersection(){ linear_extrude(height=h+10) circle(r=rad,$fn=s); if (tw > 0) { linear_extrude(height=h, twist=360*tw) difference(){ translate([rad,0,0]) circle(r=shiftR); translate([-1.2*(shiftR-rad),0,0]) square([1.333*(...
glb/cad_fe611fb5244b.glb
This JSON object represents a 3D mesh of a heart-shaped container. ### Mesh Components: - **Vertices**: The `vertices` array contains the 3D coordinates $(x, y, z)$ for each point in the mesh. The structure includes a base, walls, and a decorative "scalloped" or "curled" edge on the left side. - **Triangles**: The `tr...
mark = 2; if (mark==2) difference() { union() { difference() { rounded_heart_box(); translate([0,0,71.24]) cube([100,100,100],center=true); scale(0.91) rounded_heart_box(); } translate([-30,-18,20]) rotate([90,90,42]) difference() { cylinder(r=4,h=40,$fn=24,center=true); translate([0,0,8.5]) cylinder(r=5,h=8,$f...
glb/cad_fb309262dccd.glb
Create an Ultimaker Endstop Elongator consisting of a sliding carriage and a base block. First, construct the actuator carriage as a rectangular block with a total height of 10mm, a width of 10mm, and a length of 22mm. Hollow out the center of this block, leaving a wall thickness of 1.5mm. Drill a vertical hole with ...
debug = false; vert2 = 16; vert1 = 32; overultimaker = 4.4 - 0.3; ltotal = 80; hrim = 35; tultimaker = 5.8 + 0.2; twall = 2.5; clr = 0.3; tges = twall+clr+tultimaker+clr+twall; tcut = clr+tultimaker+clr; dscrew = 3; dlonghole = 4.5; aroundlh = 4; bottomadd = 2.5; besidelh = 7; llonghole = ltotal - 2*besidelh - d...
glb/cad_2fc498c68c8a.glb
Create a Minutebot-like rectangular plate with a thickness of 7.8mm. The main body is a rounded rectangle with a corner radius of 1.5mm. The overall dimensions of the plate are determined by a grid of holes: the width is based on 8 columns and the height on 5 rows. Each hole in the grid has a diameter of 5.4mm. The s...
columns = 8; rows = 5; _staggered = 0; staggered = _staggered == 1; $fn = 100; hole_diameter = 5.4 ; thickness = 7.8; spacing = 8 - hole_diameter; y_spacing = staggered ? sqrt(spacing * spacing / 2) : spacing; corner_radius = 1.5; corner_crosses = false; module rounded_rectangle(size, radius) { hull() { trans...
glb/cad_0269ac0d2601.glb
Create a neti pot consisting of a hollowed body, a spout, and a handle. For the main body, create a shape by taking the convex hull of a cylinder with a radius of 25mm and a height of 35.35mm, and a cube of 37.5mm per side centered at [0, -6.25, 17.675]. Hollow this body out by removing a scaled-down version of the sam...
extrusionWidth = 0.49; epsilon = 0.01; bodyRadius = 25; bodyHeight = sqrt(2)*bodyRadius; partThickness = 2*(extrusionWidth + epsilon); spoutRadius = 5; spoutLength = bodyRadius*2.5; spoutHoleScale = (spoutRadius - partThickness)/spoutRadius; module bodyShape(){ hull(){ cylinder(r=bodyRadius, h=bodyHeight); tr...
glb/cad_5a1ef2b624b0.glb
Create a Customizable IR Remote Stand. Start by constructing a rectangular base with a width of 50mm, a thickness of 20mm, and a length of 90mm. Round the four vertical corners of this base with a radius of 8mm. Into this base, carve five identical slots to hold remotes. Each slot should be shaped as a rounded rectang...
h_remote = 86 * 1; w_remote = (40 + 1) * 1; t_remote = (7 + 0.5) * 1; r_remote = 5 * 1; n_remotes = 5; sep_remotes = 15 * 1; z_pos_remotes = 5 * 1; angle_remotes = 10 * 1; w_base = 50 * 1; t_base = 20 * 1; h_base = (30 + sep_remotes * (n_remotes - 1)) * 1; r_base = 8 * 1; pos_rounded_edges = [[h_base / 2 - r_base,- w...
glb/cad_152898311f95.glb
Create a plectrum by forming a hull around three circular profiles, all with a height of 0.5mm. Position two cylinders with a radius of 6mm at x=3 and x=-3, and a third cylinder with a radius of 7mm centered at x=0 and y=-6.3. To complete the base shape, include a point at x=0, y=12. Scale the entire resulting object b...
use <Write.scad> text = "Text"; $fn = 256; module plectrum(){ hull(){ translate([3, 0, 0]) cylinder(r=6, h=0.5); scale([1, 0.5, 1]) translate([0, -6.3, 0]) cylinder(r=7, h=0.5); translate([-3, 0, 0]) cylinder(r=6, h=0.5); translate([0, 12, 0]) cylinder(r=2, h=0.5); } scale([0.9, 1, 1]) { translate([-...
glb/cad_9dfef934d4c8.glb
Create a handheld percussion set consisting of three bell-shaped resonators connected to a central hub. First, construct a single resonator by creating a hollowed-out, scaled cylinder with a radius of 100mm and a height of 80mm, then scaling it by 0.4 in the X-axis, 0.6 in the Y-axis, and 0.6 in the Z-axis. Remove a la...
$fn = 128; module cowbell() { scale([0.4, 0.6, 0.6]) rotate(a=90, v=[-1, 0, 0]){ difference() { difference() { cylinder(r=100, h=80, center=true); cylinder(r=87.5, h=55, center=true); } translate([-100, 0, -45]) cube(200); } } } module bracket(arm_r, arm_s) { cylinder(r=arm_r, h=70); translat...
glb/cad_04fefbeb4b46.glb
Create a Dreamer-SpoolSpacer by constructing a main cylinder with an outer radius of 26.5mm and a total height of 75mm. At the base, add a thin circular flange with a radius of 28.5mm and a height of 2mm. Remove a central vertical hole with a radius of 10mm that runs through the entire height of the object. To create...
module spacer(r=53/2,h=75, borderHeight=2, borderGap=2, spoolRodInset=0) { innerRad = 10; innerWall = 3; outerWall = 3; numSegments = 12; spokeInner = 3; spokeOuter = 4; uOut = 2*(r-outerWall)*PI; uIn = 2*(innerRad)*PI; innerLen = (uIn - numSegments * spokeInner) / numSegments; outerLen = (uOut - numSeg...
glb/cad_994e7c5805ac.glb
Create a Z axis adjustment screw holder by starting with a central rectangular block measuring 10mm by 15mm by 25mm. From this main body, remove a cylindrical hole with a radius of 2mm and a length of 100mm, centered along the 10mm axis and offset 3.75mm from the center. Additionally, remove a rectangular section measu...
c = 0.2; rotate( [ 0, 90, 0 ] ) difference() { cube( [ 10, 15, 25 ], center = true ); translate( [ 0, 15 / 4, 25 / 3 ] ) rotate( [ 0, 90, 0 ] ) cylinder( r = 4/2 + c, h = 100, center = true, $fn = 12 ); translate( [ 0, 15 / 2, -25 / 2 ] ) cube( [ 20, 15, 25 ], center = true ); translate( [ -1, 0, 0 ] ) union(){ tra...
glb/cad_afff55953154.glb
Create a series of six rectangular prisms, each with overall dimensions of 100mm x 50mm x 20mm, stacked vertically. Starting from the bottom, create a prism with rounded vertical corners using a 5mm radius. Above it, place a standard rectangular prism with sharp edges. The third prism should have rounded vertical cor...
module roundedRect(size, radius) { x = size[0]; y = size[1]; z = size[2]; linear_extrude(height=z) hull() { translate([(-x/2)+(radius/2), (-y/2)+(radius/2), 0]) circle(r=radius); translate([(x/2)-(radius/2), (-y/2)+(radius/2), 0]) circle(r=radius); translate([(-x/2)+(radius/2), (y/2)-(radius/2), 0])...
glb/cad_25d5313a9df5.glb
Create a wrench tool by combining a thick circular base with a rectangular handle. Start with a cylinder that has a radius of 500mm and a height of 250mm, centered on the origin. From the center of this cylinder, remove a hexagonal prism with a height of 400mm and a width of 120mm to create a hexagonal hole. Attach a r...
union (){ difference() { cylinder(h = 250, r1 = 500, r2 = 500, center = true); cylinder(400,120,120,center=true,$fn=6); } translate([-250,250,-125]) { cube([500,1500,250]);} }
glb/cad_12b755023023.glb
Create a Z-axis mount for NEMA 17 vibration dampers consisting of two mirrored parts. For each part, start with a base composed of three rectangular blocks: one 8x49x31mm block centered at [0, -1.5, 5], one 30x4x22mm block at [0, -5, 5], and one 30x6x22mm block at [0, 41.5, 5], all joined to a larger 50x52.5x5mm base p...
module z_bottom_base(){ translate([0,-1.5, 5]) cube([8,49,16+25]); translate([0,-5, 5]) cube([30,4.01,22]); translate([0,41.5, 5]) cube([30,6.01,22]); translate([0,-5, 0]) cube([50,52.5,5]); } module z_bottom_fancy(){ translate([0.5,-2.5,0]) rotate([0,0,-45-180]) translate([-15,0,-1]) cube([30,30,51]); translat...
glb/cad_9a9cd958e11b.glb
Create a 3D text banner that reads "Test & Learn". Use a serif font like Cooper Std for the lettering. Extrude the text to a height of 6mm, applying a non-uniform scale that stretches the characters vertically by a factor of 1.4 while maintaining their original width. Center the text horizontally. To provide a base for...
$fn = 50; text = "Test & Learn"; underline_percent = 94; font = "Cooper Std"; resize([100,0,0], auto=true) linear_extrude(height = 6, scale=[1, 1.4], slices=20) text(text = text, halign = "center", font = font); translate([-45, 0, 0]) cube([underline_percent, 1, 1]);
glb/cad_3423f4dfbb31.glb
Create a hollow capsule-shaped fidget toy. Start by constructing a solid capsule with an outer diameter of 13.6mm, consisting of a central cylinder with a height of 12mm capped at both ends by hemispheres of the same diameter. From the center of this shape, remove a smaller concentric solid capsule to create a hollow i...
debug = 0; inner_diameter = 12; wall_thickness = 0.8; outer_diameter = inner_diameter + 2 * wall_thickness; length_ratio = 1.0; c2c = inner_diameter * length_ratio; $fn=120; large = 2*(outer_diameter + c2c); module solid_capsule(d) { translate([0, 0, -c2c/2]) cylinder(d=d, h=c2c); translate([0, 0, -c2c/...
glb/cad_53b19dbfae7c.glb
Create a Simple Filament Spool Holder foot by constructing a base block and a vertical riser. Start with a rectangular base measuring 20mm wide, 15mm deep, and 5mm high. Centered on this base, add a vertical rectangular riser that is 15mm wide, 15mm deep, and 28mm high, positioned 2.5mm from the left and right edges of...
rotate([90,0,0]) mosaic_feet(); !rotate([90,0,0]) spool_feet(); module mosaic_feet() { difference() { union() { cube([20,15,5]); translate([2.5,0,5]) cube([15,15,8]); } translate([7.5,0,5]) cube([5,15,6]); translate([8,0,10]) cube([4,15,6]); } } module spool_feet() { difference() { union() { cub...
glb/cad_ded53e84aa4b.glb
Create a drain grate for a corrugated pipe fitting. Start by constructing a top circular ring with an outer diameter of 134mm and an inner diameter of 119mm, and a thickness of 5mm. Below this ring, add a cylindrical insert that extends 20mm deep. This insert should have an outer diameter of 119mm and an inner wall t...
cap_thick=5; cap_diameter=119; cap_insert_depth=20; difference() { cylinder($fn = 100, cap_thick,d1=cap_diameter+15,d2=cap_diameter+15,false); cylinder($fn = 100, cap_thick,d1=cap_diameter,d2=cap_diameter,false); } translate([0,0,cap_thick/2]) cube([10,cap_diameter,cap_thick],true); translate([0,45,cap_...
glb/cad_27c4dcbe47f1.glb
Create a set of four interlocking rings for a necklace or bracelet. Each ring is formed by rotating a square with a side length of 6mm around a central axis to create a torus with a square cross-section. The center of the square cross-section is positioned 30mm from the axis of rotation. To create the interlocking as...
four(); mark = 0; use <epicycloid.scad> x = 85; module make_all() { for (i = [-55,15]) for (j = [-55,15]) {{ translate([i,j,0]) rotate([0,0,7.5]) four(); }}} module four() { scale(0.5) for (i = [0:60:60]) { translate([cos(i)*x,sin(i)*x,0]) rotate([0,0,i+30]) if (mark==1) two(); else if (...
glb/cad_45a0e45b52e8.glb
Create a series of interlocking circular jewelry links. Each individual link is formed by rotating a specific 2D profile around a central axis to create a torus-like ring. The profile for these links is an epicycloid with 6 cusps, scaled by a factor of 1.6 along the Y-axis to create an oval cross-section. The resulting...
five(); use <epicycloid.scad> module five() { x = 75; scale(0.5) for (i = [0:72:288]) { translate([cos(i)*x,sin(i)*x,0]) rotate([0,0,i+36]) two(); } } module six() { x = 85; scale(0.5) for (i = [0:60:300]) { translate([cos(i)*x,sin(i)*x,0]) rotate([0,0,i+30]) twoa(); } } module two() { rotate_extru...
glb/cad_5f4ab8f25081.glb
Create a series of identical connector pieces for necklaces and bracelets. Each piece is a half-ring with a 36-facet resolution. The main body of the connector is formed by a semi-circular tube with an outer radius of 5mm and a central hole with a radius of 3mm. To facilitate snapping the pieces together, add a small p...
outer_radius = 5; hole_radius = 3; prong_radius = 2.5; scale(0.5) for (i = [-80:80:80]) for (j = [-80:80:80]) { { translate([i,j,0]) rotate([0,0,45]) make(); }} module make() { difference() { union() { one(); oneb(); } onea(); }} m...
glb/cad_e0aba8993efb.glb
Create a Tiller Tine Engage Bar Holder consisting of a rectangular base and a vertical support holder. Start with a base block 20mm wide, 23.6mm long, and 18mm high. Round the two vertical side edges of this base with a 7mm radius. Drill a vertical hole through the center of the base with a diameter of 8.2mm, positio...
$fn = 64; offsetMargin = 0.1; baseWidth = 20.0; baseLength = 23.6; baseHeight = 18.0; baseBoltHoleDiameter = 8.2; baseBoltHoleDistanceFromEdge = 8.4; holderBaseWidth = baseWidth; holderTopWidth = 10.0; holderLength = 25; holderHeight = 57; holderHoleSmallDiameter = 12.5; holderHoleLargeDiameter = 14.0; holderHoleDistan...
glb/cad_d703f945eafa.glb
Create a toy boat hull by constructing a hollowed-out geometric vessel. Start by defining a base shape as a 2D polygon with five points: starting at [16, 0], moving to [20, 70], then to [0, 100], then to [-20, 70], and closing at [-16, 0]. Extrude this polygon vertically to a height of 1mm. To create the three-dimensio...
len=100; w=40; d=10; boat(); module boat() { difference() { gunwale(); translate([0,1,2]) scale([.97,.98,.9]) gunwale(); } } module gunwale() { hull() { rotate([2,0,0]) linear_extrude(height=1) form(); translate([0,0,-d]) scale ([.7,.9,1]) linear_extrude(height=1) form(); } } mod...
glb/cad_883f6b7f0a5f.glb
Create a custom bend angle pipe union consisting of two connected hollow cylindrical tubes with a wall thickness of 1.2mm. The first tube section has an outer diameter of 11mm and a length of 10mm. This section transitions via a curved bend of 60 degrees into a second tube section. The second tube section has a slightl...
W=1.2; D1=11; L1=10; L_1=1; F_L=2; D2=10; L2=12; A=60; $fn=45; module pipe1(){ difference(){ circle(d=D1); circle(d=D1-W*2); } } module pipe2(){ difference(){ circle(d=D2); circle(d=D2-W*2); } } translate([D1/2,0,-L_1])rotate([90,180,0]){ rotate_extrude(angle=A, conve...
glb/cad_3ea952bf2057.glb
Create a bracket for an Apple TV by starting with a solid rectangular base measuring 106mm by 106mm with a height of 31mm. Hollow out the center of this base by removing a cube of 98mm by 98mm with a height of 23mm, leaving a wall thickness of 4mm on all sides. To allow the device to slide in, remove a section from the...
apple_side = 98; apple_h = 23; bar_w = 25; thickness = 4; holder_side = apple_side+thickness*2; holder_h = apple_h+thickness*2; attach_diam = 65; attach_r = attach_diam/2; rear_corner=10; rear_cut=apple_side-2*rear_corner; module appletv() { translate([-apple_side/2,-apple_side/2,0]) cube([apple...
glb/cad_0edaefe7b51a.glb
Create a 3D parametric curve grapher consisting of a continuous, tubular loop. The shape is generated by placing 40 spheres, each with a diameter of 10mm, along a 3D path and connecting them using convex hulls to form a smooth, thick filament. The path of the centers is defined by the following parametric equations, s...
function _isRange(v) = !is_list(v) && !is_string(v) && v[0] != undef; $careful = false; function _substr(s, start=0, stop=undef, soFar = "") = start >= (stop==undef ? len(s) : stop) ? soFar : _substr(s, start=start+1, stop=stop, soFar=str(soFar, s[start])); function _parseInt(s, start=0, stop=undef, accu...
glb/cad_79cfb4057a7d.glb
Create a barber pole model using inches as the unit of measurement. Start with a central cylinder 24 inches high with a radius of 4 inches. This main cylinder should be extruded with a 315-degree twist, and it must have 8 equidistant triangular grooves carved lengthwise along its surface, each with a radius of 0.125 in...
pole_rad = 4; pole_height = 24; pole_twist = 315; num_lines = 8; line_depth = 0.125; ring_rad = 5.25; ring_height = 2; holder_length = 2; holder_width = 2; plate_width = 4; plate_thickness = 0.25; plate_hole_rad = 0.125; plate_hole_offset = 0.25; cap_height = 6; cap_rad = 4.5; cap_end_rad = 3; bulb_rad = 5; bulb_...
glb/cad_2a5526f16076.glb
Create a TIG electrode grinder attachment designed for a 40.5mm diameter diamond disc with a thickness of 1.25mm. The main body is a cylindrical housing with a wall thickness of 5mm. At the top, integrate a trapezoidal nut with a radius of approximately 19.05mm and a depth of 8.5mm to secure the assembly. The interior...
include</Users/jag/Dropbox/scad/Thread_Library.scad> disc_diam=40.5; disc_thickness=1.25; arbor_diam=6.5; arbor_length=35.5; arbor_stickout=2.5; disc_space=1; threadRad=9.0; wrench_size=25.4*1.5; nutRad=(wrench_size/2)/cos(30); nutDepth=8.5; nut_ID=14.5; wall_thickness=5; extra=0.1; spindle_length=22; spindle_diam=11...
glb/cad_5e34e12802b8.glb
Create a tiny box tim by centering a cube with side lengths of 100mm. Pass a vertical cylinder through the center of the cube along the z-axis; the cylinder must have a radius of 15mm and a total height of 200mm, positioned so that it extends 50mm above the top face and 50mm below the bottom face of the cube. Ensure th...
cube(100); translate ([50, 50, -50])cylinder(200, 15, 15);
glb/cad_2a513bb93ba7.glb
Create a sculpture base for a parametric mobile. Start with a central rectangular block measuring 41.4mm in length, 4mm in width, and 4mm in height, centered on the origin. Add a smaller rectangular block on top of this central piece, centered at x = 11.4mm, with dimensions of 4mm in length, 12mm in width, and 4mm in h...
length = 37.4; hole = 1; m1 =9.2; m2 = 16; sy=4; sz=4; alt = 4*hole; ro=1.320/1000 ; detail=22; q=sy*sz; s= length*(0.5-1/(1+m1/m2)); s2= 0.5*length-(length*m2+0.5*length*length*q*ro)/(m1+m2+length*q*ro); difference (){ union(){ cube ([hole*4+length,sy,sz],center=true); translate([s2,alt/2,0]) cube ([hole*4,a...
glb/cad_714eaf49ad32.glb
Create a parametric filament clip with a uniform height of 10mm and a wall thickness of 3mm. Start with a straight section 14mm long, featuring a centered circular hole with a diameter of 3.2mm passing through the height of the part. From this section, create a 225-degree curved arc with an outer radius of 6.5mm and an...
clipgap=2; filamenthole_dia=3.2; height=10; wallth=3.0; length0=14.0; length4=3.0; $fn=90; epsilon=0.05; length2=(7.364-wallth-clipgap)*sqrt(2); if(length2<=0) { echo("<b>Error</b> Gap is too large"); } module flc0() { difference() { union() { translate([-wallth/2, -length0+epsilon, 0]) cube([ wallth, length0+...
glb/cad_5823e33b4763.glb
Create an X-axis mount for a Prusa i3 MK2S extruder and PINDA probe. Start with a base rectangular block measuring 56mm by 45mm with a height of 4mm and 5mm rounded corners. Add a second, thicker rectangular block centered on the base, measuring 30mm by 25mm with a height of 8mm and 5mm rounded corners. On the right s...
m4_hole_radius=0.1+(3.80/2); m4_hole_cutout_radius=0.05+(6.9/2); m3_hole_radius=1.55; m3_hole_cutout_radius=2.55; module roundedRect(size, radius) { x = size[0]; y = size[1]; z = size[2]; linear_extrude(height=z) hull() { translate([(-x/2)+(radius/2), (-y/2)+(radius/2), 0]) circle(r=radius,$fs=0.25); tr...
glb/cad_67289ee8149a.glb
Create a spool mount for a 3D printer. Start with a rectangular base measuring 57.8mm in length, 10mm in thickness, and 20mm in height. At both ends of this base, integrate cylinders with a radius of 15mm. Attached to the base, add a support arm that is 110mm long, 10mm thick, and 20mm high, angled upwards at 30 degr...
rayon=15; epaisseur=10; hauteur=20; ecartement=57.8; tige=8; montant=110; inclinaison=30; decalagex=95; decalagez=45.5; module arc( height, depth, radius, degrees ) { render() { difference() { rotate_extrude($fn = 100) translate([radius - height, 0, 0]) s...
glb/cad_00ffac270c70.glb
Create a spool mount for a 3D printer. Start with a main rectangular base measuring 57.8mm in length, 10mm in thickness, and 20mm in height. At each end of this base, integrate a cylinder with a radius of 15mm and a height of 10mm, centered on the thickness. Extend a support arm from the base, 110mm long and 10mm thic...
rayon=15; epaisseur=10; hauteur=20; ecartement=57.8; tige=8; montant=110; inclinaison=30; decalagex=95; decalagez=45.5; module arc( height, depth, radius, degrees ) { render() { difference() { rotate_extrude($fn = 100) translate([radius - height, 0, 0]) s...
glb/cad_6923bbb76fce.glb
Create an LED holder for an extruder by starting with a rectangular base measuring 70mm wide, 45mm deep, and 5mm thick, centered on the origin. Remove two 5mm diameter vertical holes for M4 screws, positioned 50mm apart at x = -25mm and x = 25mm, both located 12.5mm from the rear edge. In the center of the rear edge, c...
module led_holder() { module hole_m4(x,y,z) { translate ( [x,y,z] ) cylinder( h = 10, r = 2.5 ); } module hole_nozzle(x,y,z) { translate( [x,y,z] ) union() { cylinder( h=10,r= 10); translate ([ 0, -10, 5 ]) cube( [20,20,10] , true ); } } module hole_led(x,y,a) { translate( [ x,y,5] ) { rotate(...
glb/cad_83665cf4f6bb.glb
Create a circular bowl by revolving a super-ellipse profile around a central vertical axis. The bowl should have a maximum radius of 20mm and a total height of 10mm. The profile of the bowl's wall is defined by a super-ellipse with an exponent of 2.5, creating a shape between a circle and a squircle. The wall thickness...
radius = 20 ; height= 10; thickness = 2; p = 2.5; e = radius/height; function length(p) = sqrt(pow(p[0],2) + pow(p[1],2) ); function unit(p) = p / length(p); function superellipse (R, p, e, theta) = R * [ e* pow(abs(sin(theta)),2/p) * sign(sin(theta)), pow(abs(cos(theta)),2/p) * sig...
glb/cad_44a3f5f964ed.glb
Create a 4x4x4 LED Cube Template base plate by starting with a centered cube that measures 10mm in width, 10mm in depth, and 10mm in height. In the center of the top face, create a vertical cylindrical hole with a diameter of 3.5mm. This hole should be drilled downward into the block to a depth of 4.5mm.
$fn=200; led_diam = 3.5; led_dep = led_diam + 1; base_z = 10; clear(); difference() { cube([10,10,base_z], center=true); translate(0,0,base_z-led_dep); cylinder(h=led_dep+2,r=led_diam/2,center=false); }
glb/cad_128ec6599767.glb
Create a 4x4x4 LED Cube Template base plate. Start by creating a square block with a thickness of 10mm. The total width and length of the base are 44mm by 44mm. Round the vertical edges of this block using a 5mm radius. On the top surface of the base, create a grid of 16 holes to act as guides for the LEDs. These hole...
$fn=200; module createBasePlate() { cathode_len = 26; leds = 4; led_diam = 3.5; led_dep = led_diam + 1; led_rad = led_diam/2; base_rim = 5; led_sp = cathode_len - led_diam; base_xy = (base_rim*2)+((cathode_len-(led_rad*2))*(leds-1))+(leds*led_diam); base_z = 10; difference() { minkowski() { cube([bas...
glb/cad_cf7b3d716c28.glb
Create a shim for a pram by constructing a thin cylindrical disc with a diameter of 30mm and a total height of 4mm. Center a vertical hole with a diameter of 4mm through the entire thickness of the disc. On the top surface, emboss the text "Ди ма" using a font size of approximately 6.5mm. Ensure the text is centered bo...
$fn = 100; diameter_outer = 30; diameter_inner = 4.0; h = 1.69; thickness = 4; h_res = max(h, thickness); letter="Ди ма"; size=15; difference(){ union(){ translate([0,0,+h_res*1/3]) cylinder(d1=diameter_outer, d2=diameter_outer*0.9, h=h_res/4, center = true); cylinder(d=diameter_outer, h=h_res/2...
glb/cad_0f43535a2bdf.glb
Create an electronic mount bracket consisting of a cylindrical clamp attached to a flat mounting bar. Start by creating a cylinder with an outer diameter of 13.8mm and a height of 12mm. Cut a semi-circular notch out of the side to create a C-shaped clamp, and bore a central hole through the cylinder with a diameter of ...
wedge_width = 7.6; m8_diam_tight = 8.2; m8_diameter = 8.6; wall_thickness = 3.3; wedge_outer_angle = 2; height=12; bolt_space = 10; bar_len = 120; bar_height = 7; bar_offset = 0; bar_thickness = wall_thickness+2; bh_hoff = bar_offset+(bar_height/2); m3_dia = 3.2; omcholeoff=bolt_space+m3_dia+2; $fn=64; pcb_centres...
glb/cad_9bfe476b9c41.glb
Create an electronic mount bracket consisting of a cylindrical clamp and an attached rectangular mounting bar. Start by creating a cylinder with an outer diameter of 13.8mm and a height of 12mm. Cut a 8.2mm diameter hole through the center of this cylinder along its height. To create the clamp opening, remove a rectang...
wedge_width = 7.6; m8_diam_tight = 8.2; m8_diameter = 8.6; wall_thickness = 3.3; wedge_outer_angle = 2; height=12; bolt_space = 10; bar_len = 120; bar_height = 7; bar_offset = 0; bar_thickness = wall_thickness+2; bh_hoff = bar_offset+(bar_height/2); m3_dia = 3.2; omcholeoff=bolt_space+m3_dia+2; $fn=64; pcb_centres...
glb/cad_5710583facb6.glb
Create an electronic mount bracket consisting of a semi-cylindrical clamp attached to a flat mounting bar. Start with a cylinder of 12mm height and 11.2mm diameter. Cut this cylinder in half along its length to create a C-clamp shape, and remove a central core of 8.2mm diameter to accommodate a frame bar. Bridge the op...
wedge_width = 7.6; m8_diam_tight = 8.2; m8_diameter = 8.6; wall_thickness = 3.3; wedge_outer_angle = 2; height=12; bolt_space = 10; bar_len = 85; bar_height = 7; bar_offset = 0; bar_thickness = wall_thickness+2; bh_hoff = bar_offset+(bar_height/2); m3_dia = 3.2; omcholeoff=bolt_space+m3_dia+2; $fn=64; pcb_centres ...
glb/cad_a99a6c1735c6.glb
Create an electronic mount bracket consisting of a cylindrical clamp attached to a flat mounting bar. Start by creating a cylinder with an outer diameter of 13.8mm and a height of 12mm. Cut a 90-degree wedge out of this cylinder to create a C-clamp shape, leaving two parallel walls of 3.3mm thickness separated by a 10m...
wedge_width = 7.6; m8_diam_tight = 8.2; m8_diameter = 8.6; wall_thickness = 3.3; wedge_outer_angle = 2; height=12; bolt_space = 10; bar_len = 85; bar_height = 7; bar_offset = 0; bar_thickness = wall_thickness+2; bh_hoff = bar_offset+(bar_height/2); m3_dia = 3.2; omcholeoff=bolt_space+m3_dia+2; $fn=64; pcb_centres ...
glb/cad_879d026e62e6.glb
Create a candelabra by starting with a base formed by the intersection of a sphere with a diameter of 15mm and a cylinder with a diameter of 9mm. From the center of this base, extend a vertical central pillar that is a hollow cylinder with an outer diameter of 40mm and a wall thickness of 1.7mm, reaching a total height...
union () { intersection () { sphere(d=15,false, $fn=100); cylinder(9,9,0, false, $fn=100); } difference () { translate ([0,0,7.1]) { cylinder(40,1.7,1.7, false, $fn=100); } translate([0,0,45]) { cylinder(15,1.3,1.3, false, $fn=100); } } rotate([90,...
glb/cad_f7d1aabc8d96.glb
Create a Customizable Edgy Fidget Star. Start with a central cylinder that has a diameter of 22mm and a height of 7mm. This central body should have a hole through the middle with a diameter of 14.45mm (the width of a 5/16 hex nut). Around this center, place 5 equidistant points. Each point is based on a triangle with...
points = 5; whichWeight = "5/16 hex nut"; yAspect = 1.2; edge = "beveled"; edgeWidth = 3; cutouts = "yes"; $fn = 60; x = 0; y = 1; z = 2; inch = 25.4; bearing = [22, 22, 7]; sae = [.577*inch, .5 * inch, 7]; sae38 = [.650*inch,.562*inch, 7]; sae12 = [.866*inch, .75*inch, 7]; metric8 = [15, 13, 7]; metric10_16 = [1...
glb/cad_605170a76591.glb
Create a clapperboard brooch by starting with a rectangular base measuring 50mm wide by 35mm tall with a thickness of 1mm. Directly on top of this base, add a second rectangular strip measuring 50mm wide by 8mm tall with a thickness of 2mm, positioned at the top edge. Above this, create a hinged clapper arm by placing ...
linear_extrude(1) square(size=[50, 35]); linear_extrude(2) translate([0, 35, 0]) square(size=[50, 8]); rotate(15) translate([11.5, 41.5, 0]) { linear_extrude(2) square(size=[50, 8]); linear_extrude(3) translate([51, 0, 0]) mirror() parts(...
glb/cad_2089ba240c5e.glb
Create a Blow Out Bulb by constructing a hollow, vertically elongated sphere. Start with an outer sphere with a radius of 40mm, scaled by 1.2 along the Z-axis to create a prolate spheroid. Create a matching inner void by subtracting a second sphere with a radius of 39mm, also scaled by 1.2 along the Z-axis, shifted sli...
translate([0,0,40*1.2]) Balloon(); module Balloon(){ difference(){ scale([1,1,1.2]) sphere(r=40,$fn=100); scale([0.98,0.98,1.2]) sphere(r=39,$fn=100); cylinder(r=4,h=100,$fn=22); } translate([-5,-5,-40*1.2]) cube([10,10,3]); difference(){ translate([0,0,40*1.2-2]) cylinder(r=6,h=12,$fn=22);...
glb/cad_a895a75d2110.glb
Create a replacement knob for an UltiController. Start by creating a central cylinder with a radius of 6mm and a height of 5mm. Around this center, build a larger outer ring with an outer radius of 25mm and an inner radius of 20mm, both 5mm high. Connect the central cylinder to the outer ring using seven equally spaced...
$fs = 0.4; $fa = 5; R=13; T=3; C=7; difference() { union() { for(i=[0:C-1]) { rotate(i*(360/C)) translate([R-T/2,0,0]) difference() { rotate_extrude() { intersection() { translate([R-T/2,1]) circle(r=T/2); translate([R-T,0]) square([T,T]); } } translate([-50,0,-20]) cube([100,1...
glb/cad_94de2533ff2e.glb
Create a pop filter holder for a microphone shockmount. Start by constructing a flat, ring-shaped base with an outer diameter of 118mm and an inner diameter of 92mm, and a thickness of 5mm. Around the perimeter of this ring, add four identical vertical posts spaced evenly at 90-degree intervals. Each post should be a c...
union() { difference() { cylinder(d=118, h=5, $fn=100); translate([0,0,-1]) cylinder(d=92, h=10, $fn=100); } for(i = [1:4]) { rotate([0,0,i*90]) { translate([-2.5,130/2-5,75]) %cube([5,5,5]); difference() { translate([0,53,0]) rotate([-14,0,0]) ...
glb/cad_337ea48e084a.glb
Create a holder for a hydroponics water spray plug. The main body is a cylinder with an outer diameter of 42mm and a total height of 38mm. At the base, create a cylindrical section with a diameter of 33.5mm and a height of 7mm. This base section features 32 evenly spaced vertical slots cut into the outer perimeter; e...
include <polyScrewThread.scad>; dotv=6+0.3; dotv1=19; do=42; dcut=25; dr1=36; drs1=2; zr=0.4; di=34+0.3; dk=33.5; hk=7; wk=4; nk=4; hcut=15; h1=38; hr1=11; hk1=22; hotv1=3; hotv2=1; h2=10; hr2=10; dr2=20.955; drs2=1.814; n=32; nd=1.5; nh=13; nh2=(h2-2)-4; $fn=64; module cutcor1(){ difference() { cylinder...
glb/cad_8da2662b1fb2.glb
Create a 3D printer axis guide assembly consisting of two vertical rails and two horizontal cross-members. First, create two identical L-shaped angle guides. Each guide is formed by two intersecting rectangular prisms, each measuring 4mm by 300mm by 4mm, joined at a 90-degree angle to form a right-angle profile. Posi...
include<miei_esempi.scad>; use <Thread_Library.scad> module angolare() { cube([4,40,300]); cube([40,4,300]); } translate([-200,-28,0])rotate([0,0,45])angolare(); translate([200,-28,0])rotate([0,0,45])angolare(); module traversa() { difference() { translate([-240,-28,-10])cube([480,40,10]); translate([-200,-8,-10])cy...
glb/cad_1a1728a5f9a9.glb
Create a toothbrush holder designed to grip a sink edge. Start by constructing a main vertical body that is 80mm wide, 144mm long, and 5mm thick. At the base of this body, create a flat rectangular platform 80mm wide and 25mm deep, with a thickness of 5mm. On the main vertical body, create three circular holes, each ...
module rounded_ngon(num, r, rounding = 0) { function v(a) = let (d = 360/num, v = floor((a+d/2)/d)*d) (r-rounding) * [cos(v), sin(v)]; polygon([for (a=[0:360-1]) v(a) + rounding*[cos(a),sin(a)]]); } translate([0,0,-1]) linear_extrude(5) difference() { union() { translate([0,0,-10]) rounded_ngon(2, 80, ...
glb/cad_96926b8d3d8c.glb
Create a Double Simple Fidget Spinner consisting of two identical spinner bodies, one short and one long, positioned parallel to each other. For the short body, create a center hub as a cylinder with a height of 9mm, tapering from a diameter of 27mm at the base to 25mm at the top. Add two side mounting posts as cylind...
difference(){ union(){ translate([0,0,0]) cylinder($fn=50, h=9, d1=27,d2=25); translate([23.5,0,0]) cylinder($fn=50, h=2.5, d=10); translate([-23.5,0,0]) cylinder($fn=50, h=2.5, d=10); translate([23.5,0,0]) cylinder($fn=50, $fs=.5, h=10.5, d=8); translate([-23.5,0,0]) cylinder($fn=50, $fs=.5, h=10.5, d=8); translat...
glb/cad_0377c6bd4c40.glb
Create a Double Simple Fidget Spinner consisting of two identical spinner bodies, one short and one long, aligned along a central axis. For the short body, create a center hub as a cylinder with a height of 9mm, a bottom diameter of 26mm, and a top diameter of 24mm. Add two side posts at x = ±23.5mm, each being a cyli...
difference(){ union(){ translate([0,0,0]) cylinder($fn=50, h=9, d1=26,d2=24); translate([23.5,0,0]) cylinder($fn=50, h=2.5, d=10); translate([-23.5,0,0]) cylinder($fn=50, h=2.5, d=10); translate([23.5,0,0]) cylinder($fn=50, $fs=.5, h=10.5, d=8); translate([-23.5,0,0]) cylinder($fn=50, $fs=.5, h=10.5, d=8); translat...
glb/cad_2eea680b4f5e.glb
Create a Double Simple Fidget Spinner consisting of two separate spinner bodies and a set of central caps. First, construct a short spinner body. Create a central cylinder with a diameter of 24mm and a height of 5.5mm. Place a rectangular block measuring 46mm by 8mm by 2mm centered on top of this cylinder. At each end...
difference(){ union(){ translate([0,0,1]) cube([46,8,2], center =true); translate([0,0,0]) cylinder($fn=50, h=5.5, d=24); translate([23.5,0,0]) cylinder($fn=50, h=2.5, d=10); translate([-23.5,0,0]) cylinder($fn=50, h=2.5, d=10); translate([23.5,0,0]) cylinder($fn=50, $fs=.5, h=10.5, d=8); translate([-23.5,0,0]) cylin...
glb/cad_33ac065b6f7b.glb
Create a Yogurt Cup Self Irrigating Planter insert. The object is a hollowed-out vessel with a total height of approximately 55.5mm. Start by creating the outer shell. The main body is a tapered cylinder that transitions from a bottom radius of 33.5mm to a top radius of 36mm over a height of 54.5mm. At the top, add a...
yc_bottom_e_radius = 55/2; yc_top_e_radius = 80/2; yc_wall_thickness = 0.75; yc_bottom_i_radius = yc_bottom_e_radius-yc_wall_thickness; yc_top_i_radius = 72/2; yc_height = 83.5; sip_wick_radius = 3.5; sip_wall_thickness = 1; sip_floor_thickness = sip_wall_thickness; sip_lip_thickness = 1; sip_height_as_percentage = ...
glb/cad_404179f82f1c.glb
Create a LEGO Grove Module Enclosure consisting of two symmetrical halves. Start by constructing a rectangular block with a footprint of 4 by 2 LEGO units (32mm x 16mm) and a height of 3 LEGO units (28.8mm). For the exterior, add a grid of 2x4 studs on the top surface, each with a radius of 2.4mm and a height of 1.8m...
top_tweak = 0; bottom_tweak = 0; $fn=32; skin = 0.1; knob_radius=2.4; knob_height=1.8; socket_height=3; ring_radius=3.25; ring_thickness=0.8; block_width=8; block_height=9.6; block_shell=1.3; module knob(top_size_tweak=0) { cylinder(r=knob_radius+top_size_tweak,h=knob_height); } module block(z=1,top_si...
glb/cad_68e2ae64ff9d.glb
Create a small gear flat shaft for a Wade extruder. Start with the base gear geometry and remove a central vertical hole with a radius of 2.8mm and a height of 22mm, using a 10-sided polygonal cross-section for the hole. Attach a rectangular block to the side of the gear, measuring 0.8mm by 7mm by 21.246mm, centered at...
difference() { union() { difference() { import(file = "smallgearmod_fixed_1.stl"); cylinder(h=22, r=5.6/2, $fn=10); } rotate([0,0,90]) translate([-2.3, 0, 10.623]) cube([0.8, 7, 21.246], center=true); } rotate([90,0,0]) translate([0, 4, 1]) rotate([0,0,90]) cylinder(h=10, r=3.7/2, $...
glb/cad_a5b9b12991ba.glb
Create a Rocket Fin Alignment Jig consisting of a circular base and a central cylindrical support. Start with a circular base plate 100mm in diameter and 2mm thick. On top of this base, center a vertical cylinder with an inner diameter of 23.8mm. This central support consists of a lower section 25mm high with an outer ...
nfins = 3; base_diam = 100; wall_th = 2.0; tube_id = 23.8; insert_len = 25; stop_th = 1.0; stop_len = 25; slot_width = 2.6; boss_clear = 4.0; slot_extend = 0; fbht = 50; glue_clear = 1.2; hook_width = 4.0; hook_depth = 5.0; $fn = 48; delta = 0.1; fbth = 2*wall_th + slot_width; fin_ang = 360 / nfins; s...
glb/cad_bfdf193f9b0c.glb
Create a Nespresso Krups Essenza Capsule Basket with overall dimensions of 90mm width, 105mm length, and 50mm height. Start with a solid block of these dimensions and hollow out the center to create a container with 2mm thick walls. Remove a rectangular section from the top front edge measuring 20mm wide by 30mm long a...
width=90; length=105; height=50; wall=2; cwidth=20; clength=30; r=12; m=4; cw = (width-2*5)/8-m; cl = (length-2*5)/9-m; ch = (height-2*5)/4-m; echo(cw,cl,ch); hspace=35; vspace=20; difference(){ translate([0,0,0]) cube([width,length,height]); translate([0,length-clength,0]) cube([cwidth,clength,height]); ...
glb/cad_68f38c7b7310.glb
Create a parametric finger splint consisting of two main sections: a base support and an angled tip support, both featuring a wall thickness of 1mm. For the base section, create a hollowed-out shell by forming a hull between two circles of 19mm diameter at the bottom and two circles of 17mm diameter positioned 20mm a...
$fn = 100; shell = 1; base_dia = 17; base_spacing = 3; joint_dia = 15; joint_spacing = 4; knuckle_length = 20; angle = 15; tip_dia = 15; tip_spacing = 3.5; tip_length = 26; x_width = 8; y_width = 6; difference(){ tip(joint_dia, joint_spacing, tip_dia, tip_spacing, tip_length, knuckle_length, angle); tipmas...
glb/cad_48c658efbafd.glb
Create a fan shield for a control board by starting with a rectangular base plate measuring 110mm by 95mm with a thickness of 2mm. From this base, remove several geometric sections to create the following openings: a large central circular hole with a diameter of 43mm centered at coordinates (35mm, 20mm), and four smal...
module 3d_printer_case() { $fn=100; x=11; y=9.5; h1=0.2; size = [x,y,h1]; h=1; d=.3; deltax = 0.5; deltay = 0.75; fan_offset_x = 3 ; fan_offset_y = 2 ; fan_diam = 4.5; fan_offset_screw = 0.4; difference () { ...
glb/cad_546849ef07a3.glb
Create a herringbone gear blank with a total thickness of 10mm. The gear should have 42 teeth based on a metric module of 1.5, a pressure angle of 20 degrees, and a helix angle of -30 degrees. Start by defining the gear's profile using a true involute tooth form. The outside diameter is 66mm (calculated as pitch diame...
MetricModule=1.5; NumberOfTeeth=42; PressureAngle=20; HelixAngle=-30; AngularResolution=1; Width=10; LayerThickness=1; BackLash=0.01; m=MetricModule; mstr=str("\nMODULE:\t\t",m); n=NumberOfTeeth; nstr=str("\t\tNUMBER OF TEETH:\t",n); pa=PressureAngle; pastr=str("\nPRESSURE ANGLE:\t",pa); h...
glb/cad_1c7de3863ff0.glb
Create a drum head tuning key consisting of a vertical shaft and a horizontal handle. Start by creating a main shaft as a cylinder with a radius of 5mm and a height of 33mm. Carve a square hole through the center of this shaft, starting 8.7mm from the base, with a cross-section of 5.3mm by 5.3mm and a depth of 17.5mm. ...
use <Write.scad> $fn = 128; text="Makerbot"; handle_th = 0.5; handle_lg = 50; handle_wd = 50; module shaft() { difference(){ cylinder(r = 5, h=33); translate([0, 0, 8.7]) cube(size=[5.3, 5.3, 17.5], center=true); } } module handle() { minkowski() { hull() { scale([0.5, 1, 1]) cylinder(r=handle_wd, h=ha...
glb/cad_bf7a29372b10.glb
Create a 3D model of a curved plate with extruded text. Start by creating a rectangular base with dimensions 20mm in width (X), 188.5mm in length (Y), and 30mm in height (Z). Bend this rectangular slab into a circular arc with a radius of 30mm around the X-axis, such that the slab forms a semi-circle. On the outer sur...
$fn = 100; letter="Чеш"; size=35; radius = 30; length_to_360 = radius*3.14; heigth = radius; cylindric_bend([20, radius*2*3.14, heigth],radius, 0) cube([20,radius*2*3.14,heigth]); cylindric_bend([size, radius*2*3.14, heigth],radius, 0) translate([size/2,size,0]) rotate([0,0,90]) linear_extrude(height=2, convexity=5...
glb/cad_47122ad015cb.glb
Create a hollowed-out cylindrical segment. Start by creating a solid cylinder with a radius of 30mm and a height of 35mm, centered such that its axis is parallel to the Y-axis. From this cylinder, remove a smaller concentric inner cylinder with a radius of 29.975mm to create a thin-walled tube. Next, integrate two in...
$fn = 100; letter="Чеш"; size=35; use <bend.scad> radius = 30; length_to_360 = radius*2*3.14; heigth = radius; difference(){ translate([size/2+0.01,0,radius]) rotate([0,90,0]) cylinder(h = size, d = radius*2-0.05, center = true); cylindric_bend([size, radius*2*3.14, heigth],radius, 0) translate([size/2,size,0]) ro...
glb/cad_7f60a7fd399a.glb
Create an endcap for a filament spool by starting with a main circular flange 55.5mm in diameter and 3mm thick. Centered through the entire height of the flange, create a vertical bore with a radius of 4.84mm (3/8 inch multiplied by 1.065 divided by 2). At the bottom face of the flange, create a conical chamfer that tr...
use <partial_rotate_extrude.scad> include <MCAD/units.scad> bore = 3/8*inch*1.065/2; flange_thickness = 3; hook_height = 10; flange_radius = 55.5/2; hook_od = 54/2; lighten_hole_radius = 7; lighten_translate_radius = flange_radius - lighten_hole_radius - 2; big_number = 10000; difference() { difference() { differenc...
glb/cad_1d0c47758bef.glb
Create an endcap for a filament spool by starting with a central cylindrical flange 27.5mm in radius and 3mm thick. Bore a central hole through the entire part with a radius of 4.8mm (3/8 inch). At the bottom face of the flange, create a conical chamfer that transitions from a radius of 5.28mm at the base to the 4.8mm ...
use <partial_rotate_extrude.scad> include <MCAD/units.scad> bore = 3/8*inch*1.065/2; flange_thickness = 3; hook_height = 10; flange_radius = 55/2; hook_od = 53.75/2; lighten_hole_radius = 7; lighten_translate_radius = flange_radius - lighten_hole_radius - 2; big_number = 10000; difference() { difference() { differen...
glb/cad_abf26b72a927.glb
Create a Marble Trap puzzle container and a marble. First, construct the hollow container by creating two rectangular prisms. The base prism is centered on the XY plane with dimensions 38.74mm by 23.94mm and a height of 60mm. The second prism is rotated 90 degrees on the Z-axis with dimensions 23.94mm by 38.74mm and th...
height=60; diameter = 24; ratio = 1.618033; thickness=3; marble= 1; module marble_trap (height, size, ratio, thickness) { assign(x = size * ratio) assign(y = size / ratio) union () { difference () { hull() { cube([x + thickness,y + thickness, 0.1], center=true); translate (...
glb/cad_84c3679bf8a1.glb
Create a Customizable Heat Tower consisting of six stacked cylindrical steps. Each step has a radius of 10mm and a height of 5mm. For each step, modify the basic cylinder by removing two 45-degree wedge-shaped sections to create a flat vertical face and a distinct angular profile. On the outer curved surface of each ...
label_list = "180,185,190,195,200,205"; text_depth = 0.4; text_size = 3; text_font = "Helvetica:black"; $fn=32; rotation = -90; r=10; h=5; d = 2*r; eps1 = 0.01; eps2 = 2 * eps1; function strcat(v, sep="", str="", i=0, j=0) = i == len(v) ? str : j == len(v[i])-1 ? strcat(v, sep, str(str, v[i][j], i == len(...
glb/cad_8ce13cc94549.glb
Create a Bushing Mount SC8UU, a mounting block designed to hold a linear bushing. Start with a rectangular base platform 34mm wide by 30mm long with a height of 4mm. Centered on this platform, create a cylindrical housing to hold a bushing with an outer diameter of 11.5mm and a length of 9.98mm. The housing should in...
part = "left"; demo = "no"; clamp = "rubber"; hole_tolerance = .2; bushing = "140947"; rubber_ring_diameter=1.75; oiling_block="yes"; custom_bushing_inner_diameter=8.02; custom_bushing_outer_diameter=11.5; custom_bushing_length=9.98; custom_bushing_collar_outer_diameter=14.5; custom_bushing_collar_height=1.5...
glb/cad_bf78054c7811.glb
Create a customizable lithophane consisting of a square base and a raised image surface. Start by creating a solid square base with a total width and length of 81mm and a thickness of 2mm. From this base, create a hollowed-out center by removing a square area of 77mm by 77mm, leaving a 2mm wide border around all four e...
image_file = "image5.dat"; height = 2; size = 81; layer_height = 0.01; bottom_padding = 0.4; lithophane_border = 2; resolution=150; s=0.01; difference(){ union() { difference() { translate([0, 0, bottom_padding]) scale([(size-lithophane_border+1)/resolution,(size-lithophane_border+1)/resolution,height-bot...
glb/cad_7f11efd84e18.glb
Create a magnetic razor scraper holder. Start with a base block 40mm wide, 41mm long, and 10.5mm high, with rounded corners of radius 5mm. On the top face, carve out a central rectangular slot 40mm wide and 10mm long with a depth of 1.1mm to hold a razor blade. Behind this slot, create a larger handle cavity 47mm wid...
magnet_diam = 4.76; magnet_len = 4.76; holder(magnet_diam, magnet_len); module holder(magnet_diam, magnet_len) { $fn = 25; extra = .2; screw_lip = 2; height = screw_lip + 7.5 + 1; width = 50; length = 41; handle_depth = 3; triange_width = sqrt(2) * 47 / 2; screw_shaft_r = (5 + extra + .1) / 2; screw_head...
glb/cad_5526966676e5.glb
Create a Sharpie Fine Point Plotter Adapter by constructing a hollow cylindrical body with an internal bore of 10.8mm diameter running through its entire length. The main body consists of a cylinder with an outer diameter of 11.6mm and a height of 20.7mm. Centered atop this base is a decorative flared band created by r...
band_full_thickness = 2; band_edge_thickness = 0.6; band_full_diameter = 16.5; band_edge_diameter = 15; body_outer_diameter = 11.6; body_inner_diameter = 10.8; profile = [ [0,0], [band_edge_diameter / 2, 0], [band_full_diameter / 2, (band_full_thickness - band_edge_thickness) / 2], [band_full_diameter...
glb/cad_9dd69950e066.glb
Create a subwoofer amplifier enclosure consisting of a main box and two panels. The main box is a rounded rectangular shell with outer dimensions of 61.5mm width, 95.5mm depth, and 41mm height, with a wall thickness of 3mm. Inside the box, position four cylindrical standoffs of 6mm diameter and 3mm height to support a...
use <MCAD/array/along_curve.scad> use <MCAD/shapes/2Dshapes.scad> use <MCAD/shapes/boxes.scad> include <MCAD/units/metric.scad> use <utils.scad> front_panel_thickness = 2; back_panel_thickness = 4; wall_thickness = 3; clearance = 8; back_extra_clearance = 10; pcb_size = [55.5, 83.5, 31]; box_size = ( pcb_size + ...
glb/cad_0b6997b4ee57.glb
Create a rectangular block measuring 50mm in length, 6mm in width, and 5mm in height. Along the center of the top face, create a series of 12 circular holes, each with a diameter of 2.55mm. These holes should be drilled completely through the block's 5mm height. Position the first hole at the starting edge and space th...
xpos=0; hole_pitch=3.81; hole_dia = 2.55; hole_count=12; $fn=80; difference () { cube([50,6,5]); translate ([xpos,3,2.5]) union() { for (i=[1:hole_count]) { translate([(i*hole_pitch)+xpos,0,0]) cylinder(5.1,(hole_dia/2),(hole_dia/2),center=true); } } }
glb/cad_61d21399c06e.glb
Create a wall mount bag holder consisting of a circular ring and a mounting base. Start by creating a hollow ring with an outer diameter of 140mm and a wall thickness of 8mm. Cut a rectangular slot through the center of the ring that is 60mm wide, effectively splitting the ring into two C-shaped arcs. At the back of t...
$fn = 100; outer_diameter = 140; thickness = 8; clearence = 1; hole_width = 60; screw_diameter = 4; screw_diameter_head = 8; screw_width_head = 3; board_width = 40; board_heigth = 10; board_length = 30; difference(){ cylinder(h = thickness, d = outer_diameter, center = true); cylinder(h = thickness+1, d = outer_di...
glb/cad_437f0871f410.glb
Create a two-stage parametric gearbox module. The assembly consists of two mirrored levels, each containing a housing and a pair of gears. For the gears, create a small gear with 13 teeth and a large gear with 51 teeth, both with a thickness of 3mm. The small gear must have a 2mm center bore for a motor axis, and the ...
$fn=60; use <involute_gears.scad>; cp=2.5; H=3; dh=2; daxis=5.5; clearance=.4; hclearance=.2; function outer_radius(n) = pitch_radius(cp,n)+gear_addendum(cp,n); module mygear(n,room=false,support=false,holefn=100,d2axis=2) { if( !room ) { difference() { union() { translate([0,0,-H/2...
glb/cad_2fc9b9cffff3.glb
Create a parametric gearbox module consisting of two interlocking gears and a supporting housing. First, create two involute gears with a thickness of 3mm. The first gear should have 13 teeth and the second gear should have 51 teeth, both using a circular pitch of 2.5mm and a pressure angle of 18 degrees. Each gear m...
$fn=60; use <involute_gears.scad>; cp=2.5; H=3; dh=1.6; daxis=5; clearance=.4; hclearance=.2; function outer_radius(n) = pitch_radius(cp,n)+gear_addendum(cp,n); module mygear(n,h,room=false,support=false) { if( !room ) { difference() { union() { translate([0,0,-h/2]) gear( ...
glb/cad_4e31b0c077f9.glb
Create a parametric gearbox module consisting of a housing and several gears. The housing is a rectangular block with a height of 3mm and a total thickness including offsets of 1.6mm. Construct four distinct gears: a small gear with 13 teeth and a large gear with 51 teeth, both using a circular pitch of 2.5mm and a p...
$fn=60; use <involute_gears.scad>; cp=2.5; H=3; dh=1.6; daxis=5.5; clearance=.4; hclearance=.2; function outer_radius(n) = pitch_radius(cp,n)+gear_addendum(cp,n); module mygear(n,room=false,support=false,holefn=100,d2axis=2) { if( !room ) { difference() { union() { translate([0,0,-H...
glb/cad_2d269a7e443f.glb
Create a Fidget Spinner by constructing a central body with a seven-fold rotational symmetry. Start with a base shape formed by the union of seven circles, each with a diameter of 25mm, whose centers are positioned 30mm from the origin and spaced every 51.43 degrees. Smooth the overall form by applying a 3mm spherical ...
echo ("Copyright 2017 Nevit Dilmen"); echo ("Creative Commons Attribution Share Alike"); sides = 7; step= 360/sides ; knotdiameter = 19.7; difference () { difference () { minkowski(){ for (angle=[0:step:360]) { linear_extrude (1){ hull() { rotate ([0,0,angle]) translate ([30,0,0]) circle (d=25); circle (d=27); }}} s...
glb/cad_2b0139593a26.glb
Create a Fidget Spinner center piece by constructing a tiered cylindrical structure. Start with a base cylinder 22mm in diameter and 2mm high. On top of this base, center a second cylinder with a diameter of 10mm and a height of 3mm. Above that, add a third cylinder with a diameter of 8.1mm and a height of 6.5mm, bring...
difference () { union() { linear_extrude (6.5) circle (d=8.1, $fn=36); union () { linear_extrude (3) circle (d=10, $fn=36); linear_extrude (2) circle (d=22, $fn=36); } } translate ([0,0,2]) linear_extrude (10) circle (d=6.5, $fn=36); }
glb/cad_2fa4951184bb.glb
Create a metric knob for a robot. Start with a main cylinder 24mm in diameter and 11mm in height. Bore a central hole through the entire height of the cylinder with a diameter of 6.5mm. Around the outer perimeter of the cylinder, add 16 equidistant ribs. Each rib is a cylinder with a 3mm diameter and a height of 11mm...
module bolt_cap() { translate([0, 0, 7 / 2]) union() { for(angle = [0:60:180]) { rotate([0, 0, angle]) cube(size = [10, 5.9, 7], center = true); } } } module knob(rib_num = 16, rib_diam = 3) { difference() { union() { ...
glb/cad_92c99837dfe4.glb
Create a wall mount for an Amazon Echo Dot power supply consisting of a rectangular base plate and a looped holder. Start by creating a flat rectangular base plate 53mm wide, 49mm deep, and 4mm thick. Center two small circular holes with a 1.5mm radius at each far end of the 53mm width, passing completely through the p...
$fn = 50; module PowerSupplyLoop() { h = 38; w = 27; t = 10; od = 24; id = 16; translate([-h/2+id/2,od/2,0]) { difference() { minkowski() { cube([h-id,w-id,t]); cylinder(r=od/2,h=t); } minkowski() ...
glb/cad_3fa7c41fe605.glb
Create a Pot-Rack Hook Stabilizer consisting of a central block with a vertical channel and a cylindrical cutout. Start with a central rectangular body that is 7mm wide, 30mm high, and 2.2mm thick. At the center of this body, create a vertical cylindrical hole with a diameter of 8.8mm and a height of 7mm, centered alon...
rack_wall_thickness = 2.5; rack_height = 30; hook_diameter = 4.5; hook_spacing = 11; module rack() { translate([rackR+rack_wall_thickness/2,0,-rack_height]) difference() { cylinder(r=rackR+rack_wall_thickness, h=rack_height*2, center=false, $fn=120); cylinder(r=rackR, h=rack_height*2+1, center=false, $fn=120);...
glb/cad_3d54150c1c72.glb
Create a record for a toy record player. Start with a main disc that is 121.16mm in diameter (60.58mm radius) and 5mm thick. From this disc, remove a central cylinder with a radius of 25.6mm and a height of 6mm (extending slightly above and below the disc) to create a recessed center. In the very center of the disc, ...
$fn = 100; hStock = 5; rStock = 60.58; oDrive = 21.8; rDrive = 1.55; hInset = 1; rInset = 25.6; hGroove = 1.2; overlap = 0.2; hasSecondSide = 0; module createDisc() { union() { createBlank(); pin(29.15,30.35,8.76677088577771,0); pin(29.15,30.35,15.0825603594619,0); pin(29.15,30.35,210.872034043672,0); pi...
glb/cad_e12bc5a9af40.glb
Create a D&D Pillar by constructing a complex twisted vertical column. Start by creating a central core consisting of three intertwined helical strands, each based on a circle with a 3mm radius. These three circles should be positioned at the origin, at (4, 0, 0), and at (-4, 0, 0) on the XY plane. Extrude this three-c...
$fs=0.4;$fa=5; module support1() { union() { translate([0,0, 2]) rotate([0,-90,45]) linear_extrude(height=3,center=true){ polygon(points=[[0,-12.5],[15,0],[0,12.5]], paths=[[0,1,2]]); } difference() { cube([20,20,5], center=true); } } } module support2() { translate([0,0, 2]) rotate([-90,-90,45]) l...
glb/cad_f78ce5ab564e.glb
Create a basketball by starting with a sphere with a radius of 10mm. Carve out a thin, flat disc with a radius of 11mm and a height of 0.5mm through the center of the sphere on both the XY and XZ planes to create two perpendicular equatorial grooves. To add the remaining ribs, create two thin rings, each with an outer ...
module ring(){ difference(){ cylinder(r=7,h=20,center=true); cylinder(r=6.5,h=22,center=true); } } color([250/255,131/255,32/255]) difference(){ sphere(r=10, center=true); cylinder(r=11, h=0.5, center=true); rotate([90,0,0]) cylinder(r=11, h=0.5,center=true); translate([0,10,0]) rotate([0,90,0]) ring(); translate([0...
glb/cad_46db4f31f335.glb
Create a Rocket Tube Marking Guide by constructing a tapered ring. Start with a base cylinder that has an outer diameter of 27.5mm and a height of 6.15mm. On top of this base, add a second cylinder that tapers from an initial diameter of 27.5mm down to a top diameter of 19.3mm over a height of 3.85mm. Finally, remove a...
diam = 19.3; wall_th = 4.0; height = 10.0; slope = 45.0; $fn = 48; delta = 0.1; od = diam + 2*wall_th; tht = tan(slope) * wall_th; difference() { union() { cylinder(h=height - tht, d=od); translate(v = [0, 0, height - tht]) { cylinder(h=tht, d1=od, d2=diam); } } ...
glb/cad_0dde347d5ff5.glb
Create a Kite GoPro Strut Mount designed to secure a camera to a cylindrical strut. Start by creating a semi-circular mounting body with an outer radius of 70mm and a wall thickness of 5mm. This body should be carved out to form a curved cradle that wraps around the strut, with a total width of 50mm. At the base of th...
use <../gopro/gopro.scad> $fn=20; strut_radius=70; height=50; thick=5; slice=60; strap_height=4+thick; strap_slot=3; strap_block=30; strap_w = 30; strap_offset=0; module body() { difference() { translate([0,-strut_radius,0]) rotate_extrude() translate([strut_radius, 0, 0]) hull() { translate([0,heig...
glb/cad_ec33ca015c06.glb
Create a PokeBall by constructing two identical hemispherical shells, each with a radius of 10mm, positioned to form a complete sphere. For each hemisphere, start with a solid sphere of 10mm radius and remove a central vertical cylinder with a radius of 2.5mm and a height of 20mm. Additionally, remove a horizontal cyli...
module half() { difference() { sphere(r=R,center=true); cylinder(r=R/4,h=R*2,$fn=15,center=true); translate([R*.95,0,0]) rotate( [0,90,0]) cylinder(r=R*2,h=R*2,center=true); } } translate([0,0,-.1]) color([1,0,0]) half(R=10); rotate([0,0,180]) color([1,1,1]) half(R=10); color([0,0,0]) sphere(r=9.9,center=true); c...
glb/cad_7ec39a3682dd.glb
Create a filament spool holder consisting of a central cylindrical hub with five radiating arms. Start by creating a main cylinder with a diameter of 25.5mm and a height of 20mm. Remove a smaller concentric cylinder from the center with a diameter of 20mm and a height of 20mm to create a ring. At the very center, add a...
module cutout(){ union(){ cylinder( 20,5,5,true,$fn=100); intersection(){ rotate([0,0,36]) translate([-5,0,-10]) cube([100,100,20],false); rotate([0,0,-36]) translate([-95,0,-10]) cube([100,100,20],false); } rotate([0,0,36]) translate(...
glb/cad_0d08faa7ee13.glb
Create a customizer box with a matching lid. For the box, start with a solid rectangular prism measuring 200mm in width, 100mm in length, and 100mm in height. Hollow out the center by removing a rectangular block from the top, leaving walls that are 10mm thick on all sides. The interior cavity should start 10mm from th...
part = "both"; height = 100; width = 200; length = 100; wall = 10; tolerance = .5; make_part(); module make_part() { if (part == "box") { box(); }else if (part == "lid") { lid(); }else { box(); lid(); } } module box() { difference() { lid =[[...
glb/cad_10b5e722f0d6.glb
Create a Dremel Router attachment consisting of a central mounting body and a baseplate. First, construct the mounting body. Create a top nut with a radius of 14mm and a depth of 9.5mm, featuring internal trapezoidal threads with a pitch of 2.0mm and a thread radius of 9mm. Below this nut, build a conical main body t...
use<Thread_Library.scad> handleOnly=false; nutOnly=false; threadRad=9.0; nutRad=14; nutDepth=9.5; baseRad=35; baseDepth=35; baseLift=5; wallThickness=4; holeRad=15; $fn=0; $fa=0.6; $fs=4; module dremelMountingNut() { render() trapezoidNut( length=nutDepth, radius=nutRad, pitch=2.0, pitchRadius=t...
glb/cad_4e5ed4d69ce0.glb
Create a Print-In-Place Fidget Cube consisting of eight interconnected rounded cubes, each with a side length of 20mm. The cubes are arranged in two parallel rows of four, linked by integrated hinges that allow the structure to fold and turn inside out. Each individual cube unit is a rounded cube with a corner radius ...
snub = "yes"; cube_height = 20; stacking_clearance = .3; hinge_radius = 1.5; hinge_clearance = .45; $fn=24*1; fudge = .01*1; corner_radius = .1*cube_height; outside_height = .4*(cube_height-2*stacking_clearance); inside_height = (cube_height-2*stacking_clearance)-2*outside_height; cone_height = 1.4*hinge_radius; ...
glb/cad_0690d73b4a1f.glb
Create a lid lift for a delta printer by constructing a base block and adding specific cutouts and features. Start with a main rectangular block measuring 11mm wide, 5mm deep, and 24mm high. Attach a second rectangular block measuring 15mm wide, 5mm deep, and 21.5mm high, positioned at coordinates (-4, -5, 15). Add a s...
$fn = 64; module fillet(r, h) { translate([r / 2, r / 2, 0]) difference() { cube([r + 0.01, r + 0.01, h], center = true); translate([r / 2, r / 2, 0]) cylinder(r = r, h = h + 1, center = true); } } difference() { union() { cube(size = [11, 5, ...
glb/cad_4a52206d4c1e.glb
Create a lid lift for a delta printer by constructing a primary block and removing specific geometric sections. Start with a solid rectangular base measuring 11mm wide, 30mm deep, and 29mm high. From the center of this block, remove a rectangular volume measuring 9.5mm wide, 20mm deep, and 5.5mm high to create a centra...
$fn = 64; module fillet(r, h) { translate([r / 2, r / 2, 0]) difference() { cube([r + 0.01, r + 0.01, h], center = true); translate([r / 2, r / 2, 0]) cylinder(r = r, h = h + 1, center = true); } } difference() { union() { translate([11 / 2, 0...
glb/cad_df6814609506.glb
Create two spinner caps designed for a 608 bearing. Each cap is a circular disc with a total thickness of 1.6mm. The main body is a cylinder with a diameter of 22.03mm (the outer diameter of a 608 bearing plus a 0.03mm tolerance). The cap features a tiered profile: a thin base rim of 0.5mm thickness with a diameter o...
dMin = 19; tCap = 1.6; model = 608; qty = 2; o = 0.03; slot = true; dIn = bearingDimensions(model)[0]+o; dOut = bearingDimensions(model)[1]; h = bearingDimensions(model)[2]; $fn = 100; zero = 0.001; wRim = 0.1*(dOut-dIn); tRim = 0.5; m = ceil(sqrt(qty)); n = ceil(qty/m); d = m...
glb/cad_c75888a7bb00.glb
Create a camera cover cap consisting of a main circular body and five equidistant retaining clips. Start by creating a thin circular base ring with an outer diameter of 93.2mm and a height of 2.8mm. This ring should have a hollow center with a diameter of 89.2mm and a wall thickness of 2mm. On top of this base, add a c...
wall = 2; cap_border_heigth = 1.4*wall; lightstop_diam=60; lightstop_heigth=2*wall; diam = 89.2; clip_diam = 87.1; clip_total_heigth = 10+wall; clip_heigth = 5.8; clip_number = 5; clip_angle = 6; clip_percent = 0.85; module clip(clip_total_heigth,clip_heigth,r,r_clip,clip_percent,clip_angle){ rotate_extrude(angle=...
glb/cad_0f7f7afc90a0.glb