Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Picatinny Rail Name-tag Maker by constructing a main body based on a specific 2D profile extruded to a length of 150mm. The profile is defined by the vertices [0,1], [0,12], [27,12], [27,1], [22.5,1], [22.5,2], [25,5], [22.5,8.3], [5,8.3], [2.5,5], [5,2], and [5,1]. From this extruded body, remove a cylindrica...
length = 150; text_H = 18; name = "Your_Name"; style = "recessed"; profile=[[0,1],[0,12],[27,12],[27,1],[22.5,1],[22.5,2],[25,5],[22.5,8.3],[5,8.3],[2.5,5],[5,2],[5,1]]; make_it(); module make_it() { if (style == "recessed") { recessed(); }else if (style == "not") { not(); }else ...
glb/cad_a7e9de8b9d24.glb
Create a Torsional Anti-Backlash Nut consisting of two main components: a base assembly and an upper clamping piece. For the base, start with a rectangular plate 28.3mm wide by 18.375mm deep and 2.5mm thick. Round the four corners with a radius of 4.25mm. At each corner, create a hole with a diameter of 2.5mm. Centere...
base_plate_screw_diameter = 2.5; base_plate_screw_head_thickness = 1.0; base_plate_thickness = 2.5; x_axis_seperation = 25.4; y_axis_seperation = 15.875; nut_width = 12.7; nut_height = 6.8; lead_screw_hole_diameter = 8.0; extra_height = 1; spring_wire_diameter = 1.0; tolerance = 0.4; include <MCAD/regular_sh...
glb/cad_01c61796246b.glb
Create a Mason jar fan mount for a desiccant jar. Start by creating a circular base disk with a diameter of 68mm and a thickness of 2mm. On the top surface of this disk, center a grid of square mesh openings. The grid is formed by two sets of perpendicular slats, each 1.5mm wide and 2mm thick, extending across the di...
ID = 64; OD = 64; tube_h =0; Mesh = 4; Bar = 1.5; height = 2; lid_diam = 68; enable_fan = 1; fan_size = 40; screw_spacing = 32; fan_screw = 1.7; fanscrewmargin=fan_size/2-screw_spacing/2; $fn=60; if(enable_fan) { difference() { union() { masonjar(); translate([-ID/PI,-ID/PI,0]) fanplate(); } t...
glb/cad_29ac0015528a.glb
Create a 3D model of a Raspberry Pi Zero PCB. Start with a base rectangular plate measuring 65mm by 30mm with a thickness of 1.5mm. Round the four corners of the plate with a radius of 3mm. On the top surface, add several rectangular components to represent the ports: - Position a processor block measuring 12mm by 12m...
PiSizeX = 65; PiSizeY = 30; PiSizeZ = 1.5; PiCornerRad = 3.0; PiHoleEdge = 3.5; PiHoleDia = 2.75; PiHoleRad = PiHoleDia / 2; PiHoleClearRad = 3.0; PiSDX = -24.5; PiSDY = 1.9; PiUSBX = 8.9; PiUSBY = -13; PiOTGX = 21.5; PiOTGY = -13; PiHDMIX = -20.1; PiHDMIY = -11.4; PiSDsizeX = 11.5; PiSDsizeY = 12.0; PiSDsizeZ = 1.3;...
glb/cad_f01aa0617b62.glb
Create a Raspberry Pi Zero Smart Speaker enclosure. Start with a main body created by combining a 93x52x40mm centered cube with a cylinder of radius 20mm using a Minkowski sum to round the edges. Hollow out the center by removing a slightly smaller version of this shape, scaled to 95.5% width, 92.5% depth, and 92.5% he...
use <PiZero_1.2.scad> $fn=120; radius=20; size=40; drill=30; pi_hole_distance_x =58; pi_hole_distance_y =23; module base() { minkowski() { cube(size=[93,52,40],center=true); cylinder(r=radius,center=true); } } module zero_standoff(){ difference(){ union(){ translate([-pi_hole_distance_y/2,-pi_hole_di...
glb/cad_43f1605316fe.glb
Create a 20mm T-slot extrusion with a total length of 100mm. The profile is based on a 20mm by 20mm square with rounded corners of radius 1mm. The cross-section features a central square void of 7.32mm, with a circular hole of radius 2.095mm removed from the very center. From the center, four diagonal beams of 1.5mm ...
length=100; tslot20(length); module tslot20(length) { $fn=50; height=20; inner_size=7.32; diag_width=1.5; gap=5.26; inner_depth=6.8; full_depth=9.18; through_rad=4.19/2; inside_gap=11.99; edge_thickness=1.5; module outer_edge() { intersection() { differ...
glb/cad_ef1f3fce8535.glb
Create a parametric guitar pick with a thickness of 1mm. The overall footprint is defined by a hull encompassing three rounded corners. The base of the pick is 25mm wide and the total height is 30mm. The two bottom corners should have a radius of 4mm, while the top peak has a smaller radius of 2.5mm. To create the char...
base = 25; height = 30; thickness = 1; radii = [4, 4, 2.5]; curve = 25; curve_offset = 1.4; smooth = 100; module pick(base, height, t, r, curve, co) { r0 = max(radii[0], 0.01); r1 = max(radii[1], 0.01); r2 = max(radii[2], 0.01); lw = r0 + r1; lh = r2 + max(r0, r1); hull() { translate([r0, r0,...
glb/cad_53c39157e750.glb
Create a Customizable Skateboard Hook designed to hold a board vertically. Start with a base plate that is 10mm thick, 50mm high, and 150mm wide. From this base, extend two symmetrical prongs outward. Each prong should have a reach of 65mm and a thickness of 10mm, with the outer edge raised by 16.25mm to create a lip. ...
wheel_gap_mm=90; prong_width_mm=30; prong_thickness=10; prong_reach=65; prong_raise=prong_reach/4; base_thickness=10; base_height=50; difference() { rotate([90,0,0]) { linear_extrude(height=wheel_gap_mm+prong_width_mm+prong_width_mm,center=true, convexity=10, twist=0) { polygon(points=[[0,0], [base_th...
glb/cad_8023dccf9c40.glb
Create a T-slot connector with a total length of 40mm. The main body is a rectangular block with a base width and height of 30mm. The bottom half of the block is a solid rectangle 30mm wide and 12.79mm high. The top half is modified: remove two square sections from the upper outer corners, each with a side length of 6....
tol=.5; length=40; size="30"; screw_hole_diameter=3; nut_diameter=6.3; nut_depth=2.3; num_screws=2; screw_spacing=20; initial_screw_offset=10; connector((size=="30")?30:20); module connector(size) { base_size=size; edge_width=(size==30)?2.21:1.5; top_width=(size==30)?16.51:11.99; cross_width=(size==30)?2.54...
glb/cad_338125c699b7.glb
Create a Hictop Endoscope Holder by starting with a central rectangular base measuring 40mm by 8mm with a height of 5.5mm, centered on the origin. At the center of this base, add a cylindrical holder tube with a diameter of 7.5mm, tilted at a 45-degree angle. Support the connection between the base and the tube with a ...
difference(){ union(){ cube([40,8,5.5],true); translate([0,7,0]) rotate([45,0,0]) cylinder(30,d=7.5,true,$fn=200); translate([0,0,2.5]) cylinder(5,d1=11,d2=6,true,$fn=200); difference(){ union(){ translate([.5,-5...
glb/cad_9c774bdb5f4c.glb
Create a Braille fridge magnet by starting with a base plate shaped as a flattened sphere, resized to 20mm wide, 16mm deep, and 2mm thick. Center a vertical cylindrical hole through the base with a radius of 2mm and a depth of 1mm to accommodate a magnet. On the top surface of the base, add a raised character "C" and ...
use <Write.scad> font_charKeys = ["a", "A", "b", "B", "c", "C", "d", "D", "e", "E", "f", "F", "g", "G", "h", "H", "i", "I", "j", "J", "k", "K", "l", "L", "m", "M", "n", "N", "o", "O", "p", "P", "q", "Q", "r", "R", "s", "S", "t", "T", "u", "U", "v", "V", "w", "W", "x", "X", "y", "Y", "z", "Z", ",", ";", ":", ".", "!", ...
glb/cad_775ec84a066e.glb
Create a parametric geometric container based on a fractal Sierpinski tetrahedron. Start with a base tetrahedron with a side length of 30mm. Recursively divide this shape into smaller tetrahedra across three levels of detail. At the final level, each small tetrahedron should be hollowed out by removing four internal cy...
maxlevel = 3; size = 30; thickness = 10; difference() { color("MediumOrchid") sierpinski(side=size,maxlevel=maxlevel); middle(size - thickness); cylinder(r = 3/maxlevel, h = 50, center=true); rotate([90]) cylinder(r = 3/maxlevel, h = 50, center=true); rotate([0, 90]) cylinder(r = 3/maxlevel, h = 50, center=true)...
glb/cad_efb1cb4e1b7c.glb
Create an X-Carve Loc-Line Holder designed to clamp a coolant hose and connect to a 1/4" NPT pushfit connector. Start with a main body consisting of a rectangular block 16mm wide, 17mm deep, and 100mm tall, merged with a cylinder of 22mm diameter and 100mm height centered on the back. Create a large central recess 8m...
include </libs/polyScrewThread.scad> $fn=30; PI=3.141592; TriPoints = [ [ -0.1, 0, 0 ], [ -0.1, 2, 0 ], [ -0.1, 0, 20 ], [ 20, 0, 20 ], [ 20, 2, 20 ], [ -0.1, 2, 20 ]]; TriFaces = [ [1,4,3,0], [0,3,2], [2,3,4,5], [1,5,4], [0,2,5,1]]; module gantry() { color("red") { differe...
glb/cad_e37f8858bedd.glb
Create a Personalized Body Vase by stacking a series of cylinders and hulls along a central vertical axis. Start with a base formed by the hull of two small cylinders: one with a radius of 7mm and a height of 2mm, and another with a radius of 5mm and a height of 5mm positioned 2mm above the first. Above this base, plac...
chest=36; waist=26; hips=36; height=65; torso_height=height/2.2; chest_height=torso_height/3; union() { hull() { cylinder(2,7,7); translate([0,0,2])cylinder(5,5,5); } translate([0,0,7])cylinder(10,5,chest/2); translate([0,0,17]) cylinder(chest_height,chest/2,chest/2-3); translate([0,0,chest_height+17]) cylinder(chest_...
glb/cad_e143b3fe2935.glb
Create a Meissner tetrahedron with a scale factor of 8mm. Begin by constructing a Reuleaux tetrahedron, which is the intersection of four spheres of radius 8mm centered at the vertices of a regular tetrahedron with side length 8mm. Trim this shape by intersecting it with the union of a cylinder of radius 8/√3 mm and he...
$fn = 96; tetrahedron(8); translate([10,0,0]) reuleaux(8); translate([20,0,0]) trimmed_reuleaux(8); translate([30,0,0]) base_edges(8); translate([40,0,0]) meissner(8); module meissner(s=1) { base_edges(s); trimmed_reuleaux(s); } tetrahedron_vert = [ [0, 0, sqrt(2/3)], [1/(2*sqrt(3)), 1/2, 0], [1/...
glb/cad_5ce946bce172.glb
Create a Warhammer 40k Gen6/7 Template tool. Start by constructing two concentric, thin-walled rings with a height of 0.3 inches. The inner ring should have a diameter of 3 inches and the outer ring a diameter of 5 inches. Both rings must be hollowed out to create a thin rim with a wall thickness of 0.4 inches. Add a ...
Diameter=3; Diameter2=5; Height=0.3; Thickness=0.4; Unit=1; Flamethrower=0; FlameSmallDiameter=0.4; FlameLargeDiameter=2.4; FlamethrowerWidth=8; rod=1; rodHeight=2; d2=Unit==0?Diameter2:(Diameter2*25.4); d1=Unit==0?Diameter:(Diameter*25.4); t=Unit==0?Diameter:(Thickness*25.4); h=Unit==0?Height:(Height*25.4); sd=Unit...
glb/cad_2aa752a58c28.glb
Create a parametric pawn by stacking several geometric primitives along a central vertical axis. Start by placing a sphere with a diameter of 50mm at the top. Directly beneath the sphere, add a cone-shaped collar with a height of 30mm, tapering from a bottom radius of 15mm to a top radius of 40mm. Below this, add a sec...
headWidth = 50; collarHeight = 30; collar1Width = 80; collar2Width = 30; bodyHeight = 40; bodyWidth = 40; legHeight = 30; baseWidth = 70; baseHeight = 50; sphere(headWidth/2); translate([0, 0, -1*headWidth/2]) cylinder(h=collarHeight, r1 = collar1Width/2, r2 = 0); translate([0, 0, -1*headWidth/2-collarHeight]) cylin...
glb/cad_ac15d2ab67da.glb
Create an Archery Target Scope Pin consisting of a flat circular ring and an angled pin assembly. Start by creating a hollow washer with an outer diameter of 1.65 inches, an inner diameter of 1.45 inches, and a height of 0.1 inches. At the edge of the inner diameter, add a small square guide block measuring 0.25 inch...
$fn = 50; kRingSizeInnerDiameter = 1.45; kRingSizeInnerRadius = kRingSizeInnerDiameter / 2; kRingSizeOuterDiameter = 1.65; kRingSizeOuterRadius = kRingSizeOuterDiameter / 2; kRingSizeThickness = kRingSizeOuterRadius - kRingSizeInnerRadius; kRingHeight = .1; kFiberSize = .02; kFudge = .01; kPinGuideSize= .25; kPinOffse...
glb/cad_94022ed45534.glb
Create a dial-a-wedge by constructing a 3D prism with a width of 20mm and a length of 50mm. The profile of the shape is a trapezoid extruded along the width. One side of the trapezoid, forming the base of the wedge, is 50mm long. The opposite side, forming the top edge, has a length of 0mm, creating a sharp edge. The h...
length = 50; width = 20; height = 20; height_2 = 0; module wedge() { translate([0,width/2,0]) rotate([90,0,0]) { linear_extrude(width) { polygon([[-length/2,0], [length/2,0], [length/2,height], [-length/2,height_2]]); } } } wedge();
glb/cad_85c096243cc1.glb
Create a parametric pancake platter. Start by constructing a white circular plate consisting of a thin base cylinder with a radius of 1.8mm and a height of 0.2mm, topped with a slightly larger outer rim cylinder of radius 2mm and height 0.1mm. Stack six pancake discs on the plate. Each pancake is created by taking a ...
difference(){ union() { color("GhostWhite") cylinder (h = .2, r= 1.8, center = true, $fn=100); color("GhostWhite") translate (0, 1.2, 0) cylinder (h = .1, r = 2, $fn=100); } color("LightGrey") translate (0, 1.5, 0) cylinder (h = .3, r = 1.7,$fn=100); } pancake(height= .1, width =.2); butter(); translate ([.2,...
glb/cad_9fe6ddeb8c23.glb
Create a BuildingBuilder model by starting with a solid rectangular prism that is 1000mm wide, 1000mm deep, and 900mm tall. Carve out a grid of square window holes from the front and side faces to create a multi-story structure. On the front face, arrange the windows in 10 columns and 9 rows. Each window opening should...
height = 900; width = 10000*sin($t)+1000; depth = 10000*sin($t)+1000; gutter = .2; floorHeight = 10; windowColumns = 10; windowSize = width*(1-gutter)/windowColumns; tHeight = height*($t+1); floors = floor(tHeight / ((windowSize)+(gutter*width/(windowColumns+1)))); translate([-width/2,-depth/2,0]){ difference(){ c...
glb/cad_9e0914afd93e.glb
Create an Aerosol Holder consisting of a hollow cylindrical sleeve and a circular base. Start by creating a main cylindrical sleeve with an outer diameter of 80mm, a height of 70mm, and a wall thickness of 7mm. Hollow out the center of this sleeve with a concentric cylinder of 75mm diameter. Cut a wide rectangular sl...
diametro=80; diametroBase=100; spessore=7; spessoreBase=10; altezza=80; altezzaPresa=70; $fn=150; module aereosol(){ color(c="red"){ cylinder(h=spessore,d=13,center=true); translate([0,0,-spessore]) cylinder(h=spessore,d=47,center=true); } } module presa(){ difference(){ translate([0,0,-altezzaPresa/2]) c...
glb/cad_e98cdead76cd.glb
Create a toy truck mockup consisting of a front cabin, a rear cargo bed, and four wheels. Start by constructing the front cabin as a solid block 25mm wide, 50mm high, and 50mm deep. Attached to the back of the cabin, create a rectangular cargo bed that is 80mm long, 50mm wide, and 25mm high. This bed should be hollowed...
$fn = 128; fwidth = 50; fheight = 50; fz = 25; roundness = 4; color("red") union(){ rotate([90,0,0]) cube([fz, fwidth, fheight]); translate([20,0,0]) rotate([90,0,0]) cube([fz,fz,fwidth]); } bwidth = fwidth; bheight = fheight/2; blength = 80; xd = 5; depth = 10; color("red") rotate([0,0,180]) difference(){ cu...
glb/cad_079a1ff39ace.glb
Create a T-Corner bracket designed to stabilize a printer frame. Start with a solid rectangular block with a total width of 32mm (calculated as 2 * 16mm size + 8mm side thickness), a height of 24mm (16mm size + 8mm top cavity depth), and a depth of 14mm (8mm top thickness + 2 * 3mm wall thickness). From this main body...
t_corner_type = 1; printer_top_thickness = 8; t_corner_top_cavity_depth = 8; printer_side_thickness = 8; t_corner_side_cavity_depth = 8; wall_thickness = 3; t_corner_size = 16; tolerance = 0.3; function right_tri_base(side1, side2) = sqrt(side1 * side1 + side2 * side2); function right_tri_side(other_side, ...
glb/cad_38331bb83235.glb
Create a yubiWrap protective sleeve for a security key. Start by constructing a main body with an overall width of 19.65mm, a length of 10.9mm, and a height of 5.1mm. The body should have rounded corners with a radius of 1.5mm. Carve out a central rectangular recess from the bottom to create a hollow interior that is...
$fs = 0.5; $fa = 0.5; upper_cutout_d = 4.5; upper_cutout_offset = 5; ff = 0.1; ffh = 0.15; ffw = 0.45; body_i_l = 10; body_i_w = 17.8 + ffw; body_i_h = 3.3 + ffh; wall_t = 0.9; body_o_l = body_i_l + wall_t; body_o_w = body_i_w + wall_t*2; body_o_h = body_i_h + wall_t*2; corner_r = 1.5; rotate([90, 0, 0]) yubi_wrap...
glb/cad_3877094b0ac9.glb
Create an egg-shaped vase by forming the intersection of six spheres, each with a radius of 12mm, where each sphere is offset 5mm from the center and rotated in 60-degree increments around the Z-axis. Hollow out the center of this shape by removing a smaller version of the same intersection using spheres with a radius ...
module Egg() { intersection_for(n = [1 : 6]) { rotate([0, 0, n * 60]) { translate([5,0,0]) sphere(r=12); } } } module Plinth() { translate([0,0,-8]) cylinder(h=1, r1=4.15, r2=4.5); } module Holes() { for(q = [1 : 6]) { for(n = [1 : 6]) { translate ([0,0,9.25-2.5*n]) rotate(a=90, v=[1,0,0]) rotate(...
glb/cad_3732c8b92220.glb
Create a Love Lock consisting of a rectangular body and a curved shackle. First, construct the body as a hollowed-out rectangular block with overall dimensions of 125mm x 50mm x 100mm. The interior cavity should be 115mm x 40mm x 90mm, leaving a wall thickness of 5mm on all sides. On the front face of the body, cente...
use <write/Write.scad> string1 = "MacKenzie"; string2 = "and"; string3 = "Abby"; string4 = "11/26/11"; cableLength = 20; module body() { scale = 5; fontSize = scale * 3; fontWidth = scale; levelScale = .35; width = .7; union() { difference() { difference() { cube([scale*25,scale*10,scale*20], true); ...
glb/cad_38e046e0ac0d.glb
Create a rectangular plate for a 4 relay module box with overall dimensions of 85mm in length, 60mm in width, and 2mm in thickness. At each of the four corners, create a conical hole 5mm deep that tapers from a 3mm diameter at the bottom to a 6mm diameter at the top surface. The holes should be positioned at coordinate...
difference(){ cube(size = [85,60, 2], center = false); translate ([4,4,0]) cylinder(h = 5, d1 = 3,d2=6 ); translate ([81,4,0]) cylinder(h = 5, d1 = 3,d2=6 ); translate ([4,56,0]) cylinder(h = 5, d1 = 3,d2=6 ); translate ([81,54,0]) cylinder(h = 5, d1 = 3,d2=6 ); for (a =[6:5:54]) translate ([10,a,0]) cube(size = ...
glb/cad_e3ee0da4299e.glb
Create a 4 relay module box consisting of a main enclosure and a matching cover. For the base, start with a rectangular slab 85mm long, 60mm wide, and 2mm thick. Build vertical walls 30mm high around the perimeter, with the left and right side walls being 2mm thick. On the bottom floor of the box, place four cylindri...
cube(size = [85,60, 2], center = false); difference() { translate ([0,30,0]) cylinder(h = 4, d = 30 ); translate ([-6,30,0]) cylinder(h = 4, d1 = 3,d2=6 ); cube(size = [85,60, 5], center = false); } difference() { translate ([85,30,0]) cylinder(h = 4, d = 30 ); translate ([91,30,0]) cylinder(h = 4, d1 = 3,d2=6 ); cube...
glb/cad_52e0d8be7ea9.glb
Create a set of seven Soma cube puzzle pieces. Each piece is constructed from unit cubes with a side length of 12mm. The unit cubes should have slightly chamfered edges (0.05mm) to avoid sharp corners. Construct the seven pieces as follows: 1. A tricube consisting of three cubes in an L-shape: positions (0,0,0), (1,0,...
$fn = 48; module chamferedCube(_chamfer=0.1) { outerCut = 1 - _chamfer; intersection () { cube (1, center=true); rotate([45,0,0]) cube (size=sqrt(2) * outerCut, center=true); rotate([0,45,0]) cube (size=sqrt(2) * outerCut, center=true); rotate([0,0,45]) cube (size=sqrt(2) * oute...
glb/cad_804ed545e3f5.glb
Create a parametric robot head starting with a main rectangular block measuring 100mm in length, 50mm in width, and 50mm in height, positioned at x=10. Carve out a mouth from the front face consisting of six vertical rectangular slots, each 8mm wide and 10mm deep, spaced 10mm apart starting at x=21 and ending at x=71, ...
AntennaHeight = 50; AntennaBallRadius = 5; EyeDiameter = 10; EyeSpacingOffset = 0; MouthHeight = 20; translate([10, 0, 0]){ difference() { cube([100, 50, 50]); translate([21, 0, 0]){ cube([8, 10, MouthHeight]); } translate([31, 0, 0]){ cube([8, 10, MouthHeight]); } translate([41, 0, 0]){ cube([8, 10, Mou...
glb/cad_bb7ad97298b2.glb
Create a 3D perspective illusion of a cube by constructing a series of intersecting rectangular prisms, each with a consistent thickness of 2mm. Build the structure using twelve prisms of varying lengths. Position one vertical prism at the origin with dimensions 2x2x10mm. Add a second vertical prism at x=16, y=14, z=0 ...
cube([2,2,10]); translate([0,0,10]); cube([2,12,2]); translate([0,10,0]) cube([2,2,14]); translate([0,4,12]) cube([2,8,2]); translate([0,2,12]) cube([14,2,2]); translate([14,2,12]) cube([2,14,2]); translate([4,14,12]) cube([12,2,2]); translate([4,14,0]) cube([2,2,14]); translate([4,14,0]) cube([12,2,2]); translate([16,...
glb/cad_cf46346686fb.glb
Create a pair of parametric glasses. Construct two symmetrical frame rims, each based on a squared geometry with a width of 10mm and a height of 5mm. The outer boundary of each rim should be a rounded rectangle created by the hull of a 10x1x1mm cube and a 7.5x3.75x1mm cube, smoothed with a cylinder of radius 6mm. Hollo...
frame = "squared"; roundedness = 6; style = 2; width = 10; height = 5; length = 14; radius = 7; frame_color = "Crimson"; lens_color = "Aqua"; eyegap = 5; if(frame == "squared") { rotate([90,0,0]) { translate([sqrt(roundedness), -sqrt(roundedness), 0]){ scale([1/sqrt(roundedness), 1/sqrt(roundedness), 0.5])...
glb/cad_292cb75da1a7.glb
Create a JYCRS390H Autotoolhome DC12V Gimlet holder. Start by constructing the main body: a cylinder for the motor with a diameter of 27.6mm and a height of 49.8mm, positioned atop a smaller cylindrical shaft with a diameter of 8.3mm and a height of 24.7mm. At the bottom of the shaft, add a thin drill bit represented b...
JYCRS390H(); module JYCRS390H() { md=27.6; mh=49.8; sd=8.3; sh=24.7; bd=1.1; bh=24.7; hb=26.6; hh=33.3; hd=3.3; ha=33.9; ld=3.4; ls=3.5; lo=6.1; lu=20.0; cd=9.7; co=9.9; difference() { union(){ translate([0,0,sh+bh]) cylinder(mh,md/2,md/2); translate([0,0,bh]) ...
glb/cad_124271b16f6b.glb
Create four identical heated bed clips, spaced 20mm apart along a linear axis. Each clip is composed of two parallel vertical walls and a connecting base, all featuring rounded corners with a 1mm radius. Each vertical wall is a rounded rectangular prism measuring 20mm in width, 14mm in depth, and 3mm in height. These t...
$fn = 32 * 1; gap = 3.7; width = 20; wall_height = 3 * 1; module rounded_rect(x, y, z, r = 1) { hull() { translate([r, r, r]) sphere(r); translate([x-r, r, r]) sphere(r); translate([x-r, y-r, r]) sphere(r); translate([r, y-r, r]) sphere(r); translate([r, r, z-r]) sphere(r...
glb/cad_341a8b459274.glb
Create a Rocket Rail Guide designed for a 3030 extrusion with an 8mm slot. The main body is a symmetrical profile extruded to a length of 50mm. The cross-section is defined by a polygon with the following vertices: (0,0), (7.5,0), (7.5,2.5), (3.5,2.5), (3.5,5.5), (4.5,7.5), (3.5,8.5), and (0,8.5). Mirror this profile a...
$fn=50; SW=7; SD=3; INSIDE=2; OUTSIDE=4; BH=2.5; CHAMFER=1; LEN=50; SS=20; SHD=4.3; AERO=15; module 8mmguide() { pts=[ [0,0], [SW/2+OUTSIDE,0], [SW/2+OUTSIDE,BH], [SW/2,BH], [SW/2,BH+SD], [SW/2+INSIDE,BH+SD], [SW/2+INSIDE,2*BH+S...
glb/cad_f677580f8d85.glb
Create a 3D solid of constant width based on a Reuleaux triangle revolved around its central axis. Start by constructing a 2D cross-section consisting of a central circle with a radius of 10mm. To this circle, add three circular arcs centered at the vertices of an equilateral triangle inscribed within the circle. Each ...
sides = 3; poly_r = 10; 2D_or_3D = "3D"; 2D_Thickness = 4; $fn = 100; show(); side_length = 2*poly_r*sin(180/sides); apothem = poly_r*cos(180/sides); r = sqrt(pow(poly_r + apothem, 2) + pow(side_length/2, 2)); width = r - (poly_r + apothem); module show(){ if(2D_or_3D == "2D") linear_extrude(height = 2D_...
glb/cad_f5cae65dd5d0.glb
Create a Banana Hippy Hat fidget spinner. Start by constructing the main body as a 5mm thick plate. The central core is a circle with a radius of 9mm, which extends outward into three symmetrical arms. Each arm is formed by creating a convex hull between the central 9mm circle and a 15mm radius circle positioned 22.5mm...
$fn=120; scale([1,1,1]){ difference (){ union(){ hull(){ cylinder(r=9, h=5); translate([22.5,0,0]){cylinder(r=15, h=5);} } hull(){ cylinder(r=9, h=5); rotate([0,0,120]){translate([22.5,0,0]){cylinder(r=15, h=5);}} } hull(){ cylinder(r=9, h=5); ro...
glb/cad_4e42da01c9fc.glb
Create two identical circular components for a Banana Hippy Hat fidget spinner. For each component, start with a base cylinder 25mm in diameter and 3mm high. Centered on top of this base, add a second cylinder with a 8mm diameter and 10mm height, starting from the 3mm mark. Within this upper cylinder, create a vertical...
$fn=120; difference(){ union(){ cylinder (r=12.5,h=3); translate([0,0,3]){cylinder (r=4,h=10);} translate([0,0,3]){cylinder (r=5,h=1);} } translate([0,0,5]){cylinder (r=3,h=10);} translate([-.50,-5,5]){cube([1,10,10]);} } translate([30,0,0]){ difference(){ union(){ cyl...
glb/cad_8bb304f80d1e.glb
Create a Banana Happy Hat fidget spinner. Start by constructing the main body as a 7mm thick plate. This body is formed by the union of three hulls; each hull connects a central cylinder with a radius of 15mm to another cylinder of the same radius and thickness positioned 25mm away from the center, spaced at 120-degree...
$fn=120; scale([1,1,1]){ difference (){ union(){ hull(){ cylinder(r=15, h=7); translate([25,0,0]){cylinder(r=15, h=7);} } hull(){ cylinder(r=15, h=7); rotate([0,0,120]){translate([25,0,0]){cylinder(r=15, h=7);}} } hull(){ cylinder(r=15, h=7); rot...
glb/cad_20e5e2ce9b92.glb
Create a Z-frame alignment jig for a printer assembly. Start with a base plate 3mm thick. The main body is a polygon with a total length of 127mm. The footprint starts with a 20mm wide by 5mm deep rectangular hook at one end. From this hook, the body extends forward, narrowing to a central ridge that is 5.8mm wide and ...
magic_distance = 127; thickness = 3; ridge_height = 2; hook_height = 5; hook_width = 5; ridge_shrink = 0.2; corner_radius = 0.5; end_chamfer = 0.5; hole_dia = 5.5; hole_chamfer = 0.5; $fn=16; nudge = 0.01; difference() { union() { linear_extrude(height=thickness) offset(r=corner_radius) offset(r=...
glb/cad_2313f021f38f.glb
Create a Z-frame alignment jig for a printer assembly. Start with a base plate 3mm thick. The main body of the base is a polygon defined by the points (-10, 0), (-10, 97), (-30, 117), (-30, 127), (30, 127), (30, 117), (10, 97), and (10, 0). On top of this base, add a central ridge that is 5.8mm wide and 5mm high (tot...
tolerance = 0.2; magic_distance = 127; thickness = 3; ridge_height = 2; hook_height = 5; difference() { union() { linear_extrude(height=thickness) polygon([[-10,0],[-10,(magic_distance-30)],[-30,(magic_distance-10)],[-30,magic_distance],[30,magic_distance],[30,(magic_distance-10)],[10,(mag...
glb/cad_62987fe20150.glb
Create a line of hooks for hanging things. Start with a rectangular base plate that is 15mm high and 240mm long, with a uniform thickness of 2mm. The base plate should have a rounded profile with a radius of 4.5mm. Along the length of the base, create 6 identical hooks. Each hook is 9mm wide and 22mm long, extending o...
numberOfHooks = 6; height = 15; hookWidth = 9; thickness = 2; hookLength = 22; hookAngle = 75; supportRatio = 0.6; nailHoleDiameter = 2.2; nailHoleAngle = 70; spacing = 44; endSpacing = 10; centralHoles = 1; module dummy() {} $fn = 12; nudge = 0.01; width = spacing*(numberOfHooks-1) + 2*endSpacing; points = [for (...
glb/cad_2a834bc9be76.glb
Create a 3D function plotter that represents a mathematical surface as a solid volume. The object is defined over a square domain where $x$ and $y$ both range from $-\pi$ to $\pi$. The top surface of the volume is defined by the function $z = 5\cos(x) + 10\sin(2x) - 5\cos(3(x+y)) + 7\sin(y) - 3\cos(x-y)$. Construct...
resolution=50; style=0; thickness=0; module end_of_parameters_dummy() {} function _isString(v) = v >= ""; function _isVector(v) = !(v>="") && len(v) != undef; function _isFloat(v) = v+0 != undef; function _substr(s, start=0, stop=undef, soFar = "") = start >= (stop==undef ? len(s) : stop) ? soFar : _sub...
glb/cad_dc628a119289.glb
Create a 3D function plotter representing the mathematical surface $z = 20 \cdot \cos(\sqrt{x^2 + y^2}) / (1 + \sqrt{x^2 + y^2})$. The model should be bounded within a square domain where $x$ ranges from -10mm to 10mm and $y$ ranges from -10mm to 10mm. Generate the surface using a resolution of 50 samples along each ...
formula = function(x,y) 20*COS(norm([x,y]))/(1+norm([x,y])); minX=-10; maxX=10; minY=-10; maxY=10; resolution=50; style=0; thickness=0; e = exp(1); function COS(x) = cos(x*180/PI); function SIN(x) = sin(x*180/PI); function TAN(x) = tan(x*180/PI); function ATAN(x) = atan(x) * PI/180; function ACOS(x) = acos(x) * PI/18...
glb/cad_4ba91bd8f3ae.glb
Create a fidget spinner and two matching caps. For the spinner body, create a central cylinder with a diameter of 22mm and a height of 5mm. Position three satellite cylinders, each with a diameter of 25.06mm and a height of 5mm, arranged equidistantly around the center at a distance of 21mm from the center point to the...
middle_hole_diameter=16; satellite_hole_diameter=19.06; satellite_distance_from_center=21; height=5; wall_thickness=3; tolerance=.1; cap_post_diameter=8; cap_post_height=2; cap_rest_thickness=0.5; cap_rest_height=1; cap_height=1; satellite_count=3; detail=50; module spinner() { h=satellite_distance_from_cen...
glb/cad_7fa0904da594.glb
Create a Z endstop mount and arm for a Prusa i3 rework. Start with a base rectangular plate 25.5mm wide, 15.5mm deep, and 6mm thick. On the underside of this plate, add a central rectangular support block that is 25.5mm wide, 6mm deep, and 18mm tall. On the top surface of the base plate, center a cylinder with a 7mm d...
hole_from_edge = 11.5; thick = 6; endstop_screw_spacing = 19.5; screw_support_width = 6; ledge = 3; screw_len = 20; motor_mount_thickness = 8.26; screw_bite_depth = 3.5; screw_overage = motor_mount_thickness + screw_bite_depth; washerish = screw_len - screw_overage; full_width = endstop_screw_spacing + screw_support_...
glb/cad_4730bbb72485.glb
Create a Z endstop mount and adjustment arm. Start with a main vertical body that is 11mm thick, 11.05mm wide (calculated as XOffset/3), and 77mm tall. At the top and bottom of this body, add two rectangular standoffs that extend 9mm outward from the back face, each 11.05mm wide and 8mm high. Centered within these st...
XOffset = 33.15; YOffset = -2; ZOffset = 50; motor_mount_thickness = 11; screw_length = 25; screw_bite_depth = 3.5; screw_overage = motor_mount_thickness + screw_bite_depth; NEMA17ScrewSpacing = 31; pulley_clearance = 20; fullheight = ZOffset + NEMA17ScrewSpacing - 4; thick = XOffset/3; thik2 = thick/2; stand...
glb/cad_ff635b3da1b5.glb
Create a Hex Spanner Wrench Fidget Spinner with a total thickness of 7mm. The body consists of three identical arms extending radially from a central point, spaced 120 degrees apart. Each arm is 23mm wide and 35mm long, featuring rounded outer corners with a 4mm radius. The top and bottom faces of the arms are chamfere...
arm_width = 23; arm_length = 35; thickness = 7; bearing_OD = 22; bearing_tolerance = 0.1; sizes = [ 8, 10, 12 ]; size_tolerance = 0.4; first_hole_distance = 30; arm_fillet_radius = 10; side_thickness = 3; chamfer_angle = 45; corner_radius = 4; layer_height = 0.2; $fn = 64; chamfer_offset = (thickness - side_thickn...
glb/cad_a04b8fcbf46b.glb
Create a gear for a child electric car reductor consisting of two stacked gear components. First, construct a large gear with 46 teeth, a circular pitch of 222mm, a pressure angle of 24 degrees, and a clearance of 0.7mm. This gear should have a thickness of 4mm, a rim thickness of 9mm, a rim width of 2.3mm, and a hub d...
use <MCAD/involute_gears.scad> $fn = 180; difference(){ gear ( number_of_teeth=46, circular_pitch=222, pressure_angle=24, clearance = 0.7, gear_thinckness = 4, rim_thickness = 9, rim_width = 2.3, hub_thickness = 6.15, hub_diameter=29, bore_diameter=6, circless=6); holes(); }...
glb/cad_bd8c9fa5ee56.glb
Create a blade replacement disk for a TC-158N mower. Start with a main cylindrical base 102mm in diameter and 15mm high. Remove a concentric cylindrical core from the center with a diameter of 78mm and a height of 10mm, positioned 5mm from the bottom. Cut a rectangular slot through the center of the disk, 27.5mm wide,...
Basis(); module Basis(){ difference(){ cylinder(d=102, h=15, $fn=200); translate([0,0,5]) cylinder(d=78, h=10, $fn=200); Befestigung(); rampa_muffe(); rotate([0,0,120]) rampa_muffe(); rotate([0,0,-120]) rampa_muffe(); translate([0,0,11]){ Abrundung_small(); Abrundung_small_innen(); } } } module messer() { c...
glb/cad_144da6aa6944.glb
Create a blade replacement disk for a TC-158N mower. Start with a main cylinder 102mm in diameter and 25mm high. Remove a concentric inner cylinder with a diameter of 78mm and a height of 20mm, positioned 5mm from the base, to create a ring. At the center of the base, create a vertical hole 4.2mm in diameter that pass...
Basis(); module Basis(){ difference(){ cylinder(d=102, h=25, $fn=200); translate([0,0,5]) cylinder(d=78, h=20, $fn=200); Befestigung(); rampa_muffe(); rotate([0,0,120]) rampa_muffe(); rotate([0,0,-120]) rampa_muffe(); translate([0,0,21]){ Abrundung_small(); Abrundung_small_innen(); } } } module messer() { c...
glb/cad_32bb156025a8.glb
Create a corner drilling jig by starting with a base plate that is 45mm wide, 45mm deep, and 1mm thick. Add two thin rectangular walls, each 3mm high and 30mm long, positioned along the inner edges of the plate to form an L-shape; one wall should be placed 14mm from the left edge and the other 14mm from the bottom edge...
dist = 10; mark = 4; rup = 1; rlo = 3; $fn=30; difference() { union() { translate([-1,-1,0]) cube([dist*mark+5,dist*mark+5,1]); translate([14,-1,0]) cube([dist*mark-10,1,3]); translate([-1,14,0]) cube([1,dist*mark-10,3]); } translate([-1,-1,0]) rotate([0,0,45]) cube([14,14,3],center=true); ...
glb/cad_bfcccd0d1444.glb
Create a handheld balloon tying tool. Start by constructing a central vertical body that is 45mm long, 30mm wide, and 45mm tall. This main body should have a hollowed-out center, creating a wall thickness of 2.5mm. The top and bottom of this central section are rounded, forming a smooth, pill-shaped vertical sleeve. A...
$fn=250; 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)-(radi...
glb/cad_42493d557711.glb
Create a Y-axis shaft pillow block and a matching washer plate. For the pillow block, create a base shape by forming a hull between a rectangular block measuring 34mm wide, 13mm high (extending from -13mm to 0mm on the Y-axis), and 8mm thick, and a cylinder with a 9mm radius, 8mm height, centered at (0, 13, 0). Wit...
ShaftDist = 15.5; CenterDist = ShaftDist - 2.5; BearingOD = 11.35; echo (); echo ("Measured Rod Distance - measured from"); echo ("inside wall to exterior of shaft away from wall"); echo ("...that is, the distance from wall to shaft,"); echo ("plus the shaft diameter, 5mm = ", ShaftDist); echo ("Resulting distance, w...
glb/cad_416ad9b33a7c.glb
Create a Y-Shaft Pillow Block drill guide. Start with a main rectangular block that is 2mm thick, 90mm wide, and 45mm tall. Add a thin upper lip to this block that is 9mm thick, 90mm wide, and 2mm tall. From this main body, remove a series of cylindrical holes aligned along the center axis. Position the center of thes...
shaftcenter = 27; translate ([0, -26.5, 0]) { difference() { translate ([-2, 0, -45]) cube (size = [2, 90, 45]); translate ([-10, 45, -shaftcenter]) rotate (a = [0, 90, 0]) cylinder (h = 100, d = 7, $fn = 30); translate ([-10, 45, -shaftcenter+14]) rotate (a = [0, 90, 0]) cylinder (h = 100, d = 3.5, $fn = 30); tr...
glb/cad_e5b07285f5e4.glb
Create a top cover for an F550 hex-copter frame by constructing a hollowed hemispherical dome with integrated side tabs. Start by creating a solid sphere with a radius of 79mm. To this sphere, add a rectangular base block measuring 228mm in length, 35mm in width, and 3mm in height, centered horizontally and positioned ...
module Triangle( a, b, angle, height=1, heights=undef, center=undef, centerXYZ=[false,false,false]) { heightAB = ((heights==undef) ? height : heights[0])/2; heightBC = ((heights==undef) ? height : heights[1])/2; heightCA = ((heights==undef) ? height : heights[2])/2; centerZ = (center || (center==undef && cen...
glb/cad_2f31f7dc2666.glb
Create a battery holder for an F550 Flame Wheel consisting of a rectangular box with one closed end. The outer dimensions of the box are 56mm wide, 183mm long, and 36mm high. The walls and the closed end face are each 3mm thick. The interior cavity measures 50mm wide, 180mm long, and 30mm high. To create the mounting...
module MakeABox() { boxClosedEnd = true; boxLength = 180; boxWidth = 50; boxHeight = 30; boxWallThickness = 3; boxOutsideWidth = boxWidth + (boxWallThickness *2); boxOutsideLength = boxLength + boxWallThickness; boxOutsideHeight = boxHeight + (boxWallThickness *2); boxInsideWidth = boxOutsideWidth - (boxWal...
glb/cad_548789d69d6c.glb
Create a Wiced Sense mount consisting of a flat baseplate with integrated snap-fit clips. Start with a baseplate that is 1.4mm thick. The baseplate should have a rounded rectangular profile with two 3mm diameter screw holes positioned symmetrically along the center axis to allow for mounting. In the center of the ba...
use <ribbon.scad>; baseHeight = 1.4; screwHoleDiameter = 3; module dummy() {} snapThickness = 2; snapStart = 7.5; snapInset = 2; snapRatio = 1.3; edgeWidth = 1; edgeHeight = 1; function sum(points,n=0) = len(points) <= n ? [for(i=[0:len(points[0])-1]) 0] : points[n]+sum(points,n=n+1); function center(points) = ...
glb/cad_42383018389e.glb
Create a phone hook mount consisting of a base and two upright supports. Start with a rectangular base that is 3mm thick, 70mm wide, and 13mm deep. From the two outer edges of the base, extend two vertical rectangular walls, each 40mm wide, 2mm thick, and 40mm high. Angle these walls inward toward the center of the bas...
rotate([-90,-90,0]) { difference() { union() { translate([0,0,32]) cube([3,70,8]); cube([3,13,33]); translate([0.5,10.5,0]) rotate([15,0,3]) cube([40,2,40]); translate([0,70-13,0]) cube([3,13,33]); translate([0,57.5,0.6])rotate([0,0,-3]) rotate([-15,0,0]) cube([40,2,40]); translate([0,57,0]) rotate([55,0,0]) cu...
glb/cad_18ee65656315.glb
Create a lamp shade extension by revolving a specific profile around a central vertical axis to form a thin-walled, conical frustum. The profile begins at the base with a flat horizontal section 1mm thick, extending from a radius of 57mm to 58mm. From the outer edge of this base, the wall rises vertically for 2mm befor...
small_diameter=116; large_diameter=140; thickness=1; inset=2; height=55; rotate_extrude($fn=200) sketch(); module sketch() { small_half=small_diameter/2; large_half=large_diameter/2; polygon([ [-(small_half-thickness),0], [-small_half,0], [-small_half,inset], [-large_half,height+inset], [-...
glb/cad_60ca20909a10.glb
Create a hinge clamp case with a rectangular base measuring 60mm in length, 20mm in width, and 0.9mm in thickness. Add walls to three sides with a height of 7mm and a thickness of 1.2mm. On the open side, create two short wall segments that leave a central gap of 6mm in width and 3.3mm in height to allow a cable to pas...
$fn = 96; printLayerHeight = 0.15; wallThickness = 1.2; bottomPlate = 0.9; height = 7; crossHeight = height*1.2; width = 20; length = 60; cableHeight = 3.3; cableWidth = 6; screwHeadRad = 4; screwHeadHeight = 4; guideHeight = height *1.2; guideWidth = 1.2; moveDistance = 0.2; hingePinRadius = 0.8; hingePinLengt...
glb/cad_fd6be2276d72.glb
Create an UpLula Magazine Loader Insert by starting with a solid rectangular block measuring 55mm in length, 37.25mm in width, and 26.5mm in height. Carve a central rectangular magazine well through the length of the block; this cutout should be 65mm long, 33mm wide, and 13.3mm high, centered along the width and positi...
magwidth=12.3; magdepth=32; MW= magwidth + 1; MD = magdepth + 1; module outer_shell(){ difference(){ translate([0,0,0]) rotate([0,0,0]) cube([55, 37.25,26.5]); translate([-5,39.25,20]) rotate([45,0,0]) cube([65,10,10]); translate([-5,39.25,-8]) rotate([45,0,0]) cube([65,10,10]); } ...
glb/cad_b691cd18bc2b.glb
Create a cable holder by starting with a rectangular block measuring 85mm in length, 16mm in width, and 25mm in height. Soften all edges of this block with a 1mm radius fillet. Carve out a central rectangular channel from the top, measuring 75mm long, 12mm wide, and 30mm deep, to create a U-shaped trough. On one of the...
module holder() { minkowski() { difference() { cube([85, 16, 25], center=true); cube([75, 12, 30], center=true); translate([15, -5, 0]) rotate([0, 20, 0]) cube([3.5, 10, 60], center=true); } sphere(1, $fn=20); } } modul...
glb/cad_2627bf6e5efb.glb
Create a camping chair foot replacement starting with a solid rectangular block measuring 40mm wide, 28mm deep, and 55mm high. Hollow out the center of this block by removing a smaller rectangular section measuring 32mm wide, 20mm deep, and 40mm high, positioned 4mm from the front and 4mm from the side. To further shap...
module outer(){ difference(){ cube([40,28,55]); translate([-1,-1,45])cube([9,30,30]); translate([8,29,53])rotate([90,0,0])cylinder(r=8,$fn=26,h=30); translate([3,-1,50])cube([20,30,20]); translate([-2,-1,0])rotate([0,20,0])cube([20,30,4]); translate([50,-1,25])rotate(...
glb/cad_bd4c6cbb4b7e.glb
Create a Y-shaped dual extrusion adapter for bowden tubes. The part consists of two curved inlet arms that merge into a single straight outlet. The main body is formed by two mirrored arcs with an outer radius of 4.5mm. These arcs curve from the inlets toward the center, meeting at a central cylinder with a radius of ...
fine = 40; debug = false; horizontalCut = false; radIn = 1.3; radPtfe = 2.5; radThread = 5.4/2; radOut = 4.5; radBig = 110; angle = acos(1 - 5/radBig); module arcTube(radius, angle) { translate([0, -radBig, 0]) difference() { rotate_extrude(angle = 360, $fn = fine*6, convexity = 10) { translate([radBig, ...
glb/cad_51c1cf8968f3.glb
Create a Universal Rack-Clamp designed to secure a pipe with a radius of 48.26mm (1.9 inches). The clamp consists of two identical mirrored halves. For each half, construct a main body using a combination of a cube and a cylinder to create a rounded, filleted block. The body dimensions are based on the pipe radius (R...
R=1.9; T=3; M=5; R_mm=R*25.4; S=1.2; module hexagon(size, height) { boxWidth = size/1.75; for (r = [-60, 0, 60]) rotate([0,0,r]) cube([boxWidth, size, height], true); } union() { difference() { union() { minkowski() { union() { cube([R_mm*S,R_mm/2*S, R_mm*S]); translate([R_mm*S/2,R_mm*S/2,0]) cylinder(...
glb/cad_9cf90289deb1.glb
Create a pipe plug consisting of a rounded cap and a wedge base. The main body is a hemisphere with an outer diameter of 24.4mm and a flat bottom. From the center of the flat base, remove a cylindrical core with a diameter of 23.4mm and a height of 11.7mm. Through the vertical center of the entire assembly, create a ...
$fa=0.5*1; $fs=0.5*1; tolx=0.25; OD=25.4*1-1; ID=25.4*1.00-2; wall=9; module end(){ difference(){ union(){ minkowski(){ difference(){ sphere(d=OD); translate([0,0,-OD/2])cube([OD,OD,OD],center=true); } sphere(r=2); ...
glb/cad_c7f5d4a357a9.glb
Create a textbox by starting with a rectangular base block that measures 50mm in length, 30mm in width, and 5mm in height. On the top surface of this base, add two lines of raised text. Position the first word, "Grace", so that the letters are 6mm high with a thickness of 3mm. Position the second word, "Darling", direc...
use<Write.scad>; translate([0,-7,-5]) cube([50,30,5]); color([0,256,0]) write("Grace",h=6,t=3); translate([0,-6,0]) write("Darling",h=6,t=3);
glb/cad_c93f94bbb15a.glb
Create a Prusa i3 Dial Gauge mount designed to clip onto a printer's X-axis. The main body is a block approximately 50mm long, 43mm wide, and 20mm high. At the center of the mount, create a horizontal cylindrical hole with a diameter of 9.8mm to hold the dial gauge tool. The mount features a C-shaped clip geometry to...
module dial_gauge_clamp_i3(tool_diameter=9.80,lower=0) { difference() { union() { translate([5,0,0]) cube([45,14,20]); translate([50,7,0]) cylinder(20,7,7); translate([7,7,0]) cylinder(20,7,7); translate([0-lower,7,0]) cube([10,37,20]); translate([10-lower,14,0]) cube([7,7,20]); ...
glb/cad_3db0ee4f294f.glb
Create two separate components for an adjustable foot: a base and a foot. For the base, create a 20mm cube. Center a vertical hole with a diameter of 8.6mm through the cube. Create a hexagonal cavity for a nut starting 2mm from the bottom, with a height of 7.1mm and a diameter of 15.2mm. Cut a flat notch 13.2mm wide a...
module foot(shaft=8.6, nut_dia=15.2, nut_h=7.1) { difference() { union() { cylinder(6,25,25); cylinder(10,13,13); cylinder(12,(nut_dia/2)+1,(nut_dia/2)+1); } translate([0,0,3]) cylinder(nut_h+3,nut_dia/2,nut_dia/2,$fn=6); } } module base(shaft=8.6, nut_dia=15.2, nut_h=7.1, nut_flat=13...
glb/cad_83a40acfc74d.glb
Create a ball guide for a pinball machine swamp. Start with a main rectangular base that is 80mm long, 3mm wide, and 30mm high. At each end of this base, add a vertical rectangular support block that is 8mm wide, 5mm deep, and 30mm high. On the top edge of these two vertical supports, add a smaller rectangular cap that...
pinball = (1 + 1/16)* 25.4; difference() { cube([80,29,30]); hull() { translate([75,5,31]) cube([1,1,1]); translate([79,42,-1]) cube([1,1,1]); translate([60,10,10]) cube([1,1,1]); translate([0,42,-1]) cube([1,1,1]); translate([0,3,0]) cube([1,1,1]); translate([-1,3,31]) cube([1,1,1]); t...
glb/cad_5a65d837c3ae.glb
Create a vacuum cleaner tube clip by starting with a rounded rectangular block 20mm wide, 30mm deep, and 25mm high, with all corners rounded by a 2.5mm radius. From this main body, remove several geometric sections to create a hollow interior and specific mounting slots. First, remove a central cylinder with a 42mm dia...
$fn=20; rotate([-90,0,0]) difference(){ translate([-12.5+2.5,3,2.5])minkowski(){cube([25-5,30,30-5]);sphere(d=5);} union(){ cylinder(d=42,h=35); translate([-17/2,5+1.3+42/2+-10,3])cube([17,15,25]); translate([-17/2,5+1.3+42/2+-10,])cube([17,12,28]); translate([-19.4/2,21,0])cube([19.4,4,28]); translate([-19.4/2,5.3+42/...
glb/cad_4e392dc7b030.glb
Create a vacuum cleaner tube clip by constructing a composite geometric shape. Start with a central base consisting of two stacked rectangular prisms: a lower cube measuring 9.5mm x 9.5mm x 5.45mm centered at the origin, and a second cube measuring 11mm x 11mm x 2.55mm positioned directly above it. Extend the structure...
tiefe1=5.45; tiefe2=8; rotate([180,0,0]) difference(){ union(){ translate([0,0,-tiefe1/2])cube([9.5,9.5,tiefe1], center=true); translate([0,0,(tiefe2-tiefe1)/2])cube([11,11,tiefe2-tiefe1], center=true); translate([(35/2)-(12/2),0,(tiefe2-tiefe1) + (3)/2])cube([35,12,4], center=true); translate([12/2+2/2+3,0,(tiefe2-tie...
glb/cad_bed2f6fc737e.glb
Create a vacuum cleaner tube clip by starting with a rounded block. Construct a base volume using a cube of 25mm by 30mm by 30mm, applying a 5mm spherical fillet to all edges to soften the corners. From this main body, remove several geometric sections to create a hollow interior and specific mounting slots. First, rem...
$fn=80; rotate([-90,0,0]) difference(){ translate([-12.5,3,2.5])minkowski(){cube([25,30,30]);sphere(d=5);} union(){ cylinder(d=42,h=35); translate([-17/2,5+1.3+42/2+-10,3])cube([17,15,25]); translate([-17/2,5+1.3+42/2+-10,])cube([17,12,28]); translate([-19.4/2,21,0])cube([19.4,4,28]); translate([-19.4/2,5.3+42/2+-11,18...
glb/cad_93a3df04b11a.glb
Create two dice trays for Pocket Tactics: one shaped like a sword for offensive dice and one like a shield for defensive dice. Both trays should have a base height of 0.9mm and walls that are 2mm thick and 5mm high. For the sword tray, create a central blade that is 14.48mm wide and 52.8mm long, a crossguard that is 2...
die_size = 16.3; die_wall_thickness = 2; base_height = 0.9; clearance = 0.5; quality = "high"; MAX_EDGES = "high"==quality ? 180 : 90; $fs = "high"==quality ? 0.3 : 5; $fa = 360 / MAX_EDGES; module die_cage() { die_wall_height = 5; inner = die_size + clearance * 2; outer = inner + die_wall_thickness * 2; li...
glb/cad_e2421c4e4618.glb
Create a sensor mount consisting of a rectangular base with integrated cylindrical posts. Start with a base block measuring 61mm in length, 16mm in width, and 4mm in height. From this base, remove two rectangular sections to create a central channel: one measuring 38mm by 5mm by 4mm starting at the origin, and another ...
$fn=80; difference(){ cylinder(d=6,h=9); cylinder(d=3.2,h=9); } translate([32,0,0])difference(){ cylinder(d=6,h=9); cylinder(d=3.2,h=9); } translate([-3,-3,0])difference(){ cube([61,16,4]); translate([0,0,0])cube([38,5,4]); translate([6,3,0])cube([26,5,4]); translate([38,0,0])cube([5,5,4...
glb/cad_7dbdf3ff8a9b.glb
Create a gear-themed model by constructing a single rectangular prism. Position this cube so that its center is offset from the origin, specifically starting at 6mm along the X-axis. The prism must have a width of 2mm, a depth of 3mm, and a height of 4mm.
teeth = 30; radius = 193.86; pressureAngle = 20; pitchRadius = teeth * R/(teeth+2); flankRadius = teeth * radius * Cos(14.5)/(teeth+2); faceRadius = teeth * radius * Cos(20)/(teeth+2); translate([6,0,0]) { color([0,0,1]) cube([2,3,4]); }
glb/cad_8778e61a14a2.glb
Create a marimba key by starting with a central rectangular bar that is 9.4375mm long, 1.646mm wide, and 0.745mm thick. Carve a shallow, centered arch out of the underside of the bar; this arch should be 2.63mm long, 3.292mm wide, and 0.455mm thick. To finish the geometry, place two small cylindrical holes with a radiu...
note = "C"; octave = 3; lengths = [23.0937,17.34375,14.4375,12.15625,9.4375,7.6875]; function getKeyLength(oct) = lengths[oct - 2]; l = getKeyLength(octave); echo(l); function getKeyWidth(length) = (0.1373*length) + 0.349; w = getKeyWidth(l); function getKeyThickness(length) = (0.0532*length) + 0.2417; barT = getK...
glb/cad_f75c6b4ed58c.glb
Create a Customizable Box Net by constructing a series of thin rectangular plates, each 0.25mm thick, arranged in a cross-like layout to be folded into a box. Start with a central base rectangle measuring 40mm by 30mm. Attach two side panels to the 30mm edges of the base; each side panel must be 20mm wide and 30mm deep...
X = 40; Y = 30; Z = 20; E = 2; T = 0.25; module side(a,b,e,t) { hull () { linear_extrude(height=t) square([a,b], center=true); translate([0,0,e]) linear_extrude(height=t) square([a- 2 *e , b - 2 *e], center=true); } }; side (X,Y,E,T); translate([(X+Z)/2,0,0]) side(Z,Y,E,T); translate([-(X+...
glb/cad_feeef1bbde78.glb
Create a Mendel X-bracket extruder mount consisting of a central base and two symmetrical arms. Start with a central rectangular base measuring 54mm wide, 30mm deep, and 5mm thick. Remove two cylindrical holes with a radius of 2.8mm, centered at x = 12.5mm and x = -12.5mm, both positioned 22mm from the back edge and pa...
module arm() { difference() { cube([9, 50, 15]); translate([-2, 23, -2]) cube([15, 30, 12]); translate([-2, 0, -5]) rotate([11.5, 0, 0]) cube([15,26, 10]); translate([-2, -2, -2]) cube([4.5, 30, 12]); translate([6.5, -2, -2]) cube([4.5, 30, 12]); translate([4.5, 27.8, -2]) cylinder(h=20, r=2...
glb/cad_b8d2a5d17bff.glb
Create a parametric simple bracket by designing a rectangular plate with a width of 15.45mm, a height of 40mm, and a thickness of 3mm. Centered along the width of the plate, place two circular screw holes, each with a diameter of 3.5mm. Position the first hole 10mm from the bottom edge and the second hole 20mm above th...
width=15.45; height=40; thick=3; first_screw_offset=10; screw_spacing=20; num_screw_holes=2; screw_hole_diameter=3.5; linear_extrude(thick) sketch(); module sketch() { $fn=60; difference() { square([width,height], false); for(i=[0:num_screw_holes-1]) { translate([width/2, first_screw_offset+ (i*s...
glb/cad_2d4064525e4e.glb
Create a Raspberry Pi camera mount for a servo arm. Start by forming the main body from three joined rectangular blocks: one measuring 12mm x 26mm x 5mm, and two flanking blocks measuring 12mm x 3mm x 20mm, positioned such that one is at the base and the other is at the top of the assembly. From this combined volume,...
module picam() { translate([-6,-5-0.5,2]) cube([1.5,25+1,23], center=false); } module servoarm() { hull() { translate([16,0,0]) cylinder( r=2, h=2,$fn=64 ); cylinder( r=4, h=2,$fn=64 ); } } module camholder() { color("green") difference() { union() ...
glb/cad_b4555b9d31e1.glb
Create a Nerf Quickloader by constructing a hollow rectangular sleeve with an overall outer dimension of 76mm wide by 15mm deep and 86mm high. Create the main body as a solid block of these dimensions, then carve out a central rectangular cavity 74mm wide by 12.7mm deep and 86mm high, leaving a wall thickness of 1mm on...
echo(version=version()); difference() { color("red") translate([0, 7.5, 0]) linear_extrude(height = 86) square([76, 15], center = true); translate([0, 7.5, 2]) linear_extrude(height = 86) square([74, 12.7], center = true); translate([0, 0, 2]) linear_extrude...
glb/cad_939a6ea5b464.glb
Create a Music Box consisting of a case, a music cylinder, a transmission gear, a crank gear, and a crank handle. Construct the case as a supportive frame with a rectangular base and walls. Incorporate a series of 13 vibrating teeth (metal tines) held in a holder. Each tooth's length is determined by its intended note...
use <MCAD/involute_gears.scad> use <write/Write.scad> FOR_PRINT=1; GENERATE_MUSIC_CYLINDER=1; GENERATE_MID_GEAR=1; GENERATE_CRANK_GEAR=1; GENERATE_CASE=1; GENERATE_CRANK=1; GENERATE_PULLEY=1; MusicCylinderName="test song"; MusicCylinderNameFont="write/Letters.dxf"; MusicCylinderNameFontSize = 8; MusicCylinde...
glb/cad_0d86d364e6c5.glb
Create a heatbed protector by starting with a solid cylinder 18mm in diameter and 56mm in height. Remove a smaller concentric cylinder from the center with a diameter of 8.2mm and a height of 56mm to create a hollow tube. Finally, cut a rectangular notch out of the side of the cylinder that is 7.5mm wide and 10mm deep,...
$fn=80; difference(){ cylinder(d=18,h=56); cylinder(d=8.2,h=56); translate([-3.75,0,0])cube([7.5,10,56]); }
glb/cad_9805fb701de5.glb
Create a triangular prism with a height of 40mm and a base width of 25mm. The base should be an equilateral triangle centered such that one vertex is at the origin (0,0,0), with the other two vertices positioned at [12.5, 21.65, 0] and [-12.5, 21.65, 0]. Extrude this triangular profile vertically along the Z-axis to a ...
$fn=200; w=25; h=40; prism3(w,h); module prism3(w,h){ polyhedron( points=[ [0,0,0],[w/2,w*cos(30),0],[-w/2,w*cos(30),0], [0,0,h],[w/2,w*cos(30),h],[-w/2,w*cos(30),h]], triangles=[ [0,2,1], [0,1,4], [2,4,1], [0,4,3], [2,5,4], [2,0,3], [2,3,5], [3,4,5]] ); }
glb/cad_f45443955b0c.glb
Create a cylinder with a height of 40mm and a radius of 15mm. Ensure the circular faces are smooth with a high facet resolution.
$fn=250; h=40; r=15; cylinder(h,r,r);
glb/cad_6efc0bac2b01.glb
Create a geometrical form by starting with a sphere that has a radius of 20mm. From this sphere, remove a central cubic section to create a cutout. This cube should have side lengths of 40mm by 40mm by 20mm. Position the cube so that it is centered on the X and Y axes, but shifted along the Z axis by -10mm, effectively...
$fn=150; r=20; difference(){ sphere(r); translate([0,0,-r/2]) cube([2*r,2*r,r],center=true); }
glb/cad_9e888e4362ba.glb
Create a torus with a major radius of 15mm and a minor radius of 5mm. To achieve this specific geometry, generate a ring by rotating a circle with a 5mm radius around a central axis, where the center of that circle is positioned 15mm away from the axis of rotation. From this resulting ring, remove the material using a ...
$fn=90; ri=10; ro=20; difference(){ rotate_extrude() translate([(ro+ri)/2, 0, 0]) circle((ro-ri)/2); translate([0,0,-ro/2]) cube([2*ro+1,2*ro+1,ro],center=true); }
glb/cad_2d0f98866ec0.glb
Create a torus centered at the origin. The torus should be defined by a circular cross-section with a radius of 5mm, and the center of this cross-section should be positioned 15mm away from the central axis of the torus. Ensure the final geometry is smooth with a high facet resolution.
$fn=90; ri=10; ro=20; rotate_extrude() translate([(ro+ri)/2, 0, 0]) circle((ro-ri)/2);
glb/cad_113166f854cf.glb
Create a hexagonal prism with a width of 15mm and a height of 40mm. The base should be a regular hexagon centered on the origin, with the prism extending vertically along the Z-axis. Ensure the geometry is a solid closed volume with flat top and bottom faces.
$fn=200; w=15; h=40; rotate([0,0,0]) prism3(w,h); rotate([0,0,60]) prism3(w,h); rotate([0,0,120]) prism3(w,h); rotate([0,0,180]) prism3(w,h); rotate([0,0,240]) prism3(w,h); rotate([0,0,300]) prism3(w,h); module prism3(w,h){ polyhedron( points=[ [0,0,0],[w/2,w*cos(30),0],[-w/2,w*cos(30),0], [0,0,h...
glb/cad_8b8106d9d493.glb
Create a 3D model of a cone with a height of 40mm and a base diameter of 20mm. The shape should be a smooth, solid cone that tapers from a circular base to a single point at the top.
$fn=200; cylinder(40,20,0);
glb/cad_b9cd346a3cd4.glb
Create a cube with side lengths of 30mm. Center the cube on the X and Y axes, and position it so that its base sits exactly on the Z=0 plane.
$fn=200; w=30; translate([0,0,w/2]) cube(w,center=true);
glb/cad_2ba085adb069.glb
Create a rectangular cuboid with a square base measuring 20mm by 20mm and a total height of 40mm. Center the geometry so that the base and top are equidistant from the origin along the vertical axis.
$fn=200; w=20; h=40; translate([0,0,h/2]) cube([w,w,h],center=true);
glb/cad_4e106bf6e817.glb
Create a square-based pyramid for a geometrical 3D forms set. The base should be a square measuring 40mm by 40mm, centered on the origin. From the four corners of this base, extend four triangular faces that meet at a single apex point centered directly above the base at a height of 30mm.
$fn=250; w=40; h=30; pyramid(w/2,h); module pyramid(w,h){ polyhedron( points=[ [w,w,0],[w,-w,0],[-w,-w,0],[-w,w,0], [0,0,h] ], triangles=[ [0,1,4],[1,2,4],[2,3,4],[3,0,4], [1,0,3],[2,1,3] ] ); }
glb/cad_9cc9171cf913.glb
Create a triangular pyramid with a height of 40mm and a base width of 25mm. The base is an equilateral triangle centered on the origin, with its three vertices positioned at [0, 0, 0], [12.5, 21.65, 0], and [-12.5, 21.65, 0]. The apex of the pyramid is located directly above the center of the base at the coordinates [0...
$fn=200; w=25; h=40; pyramid3(w,h); module pyramid3(w,h){ polyhedron( points=[ [0,0,0],[w/2,w*cos(30),0],[-w/2,w*cos(30),0], [0,w/2,h]], triangles=[ [0,1,2], [3,2,1], [2,3,0], [3,1,0]] ); }
glb/cad_475f7051441e.glb
Create two separate geometric solids. First, construct a cone frustum with a height of 20mm, a base radius of 20mm, and a top radius of 10mm. Second, create a full cone with a base radius of 10mm and a height of 20mm. Position the cone so that its base is on the same plane as the frustum, placed 41mm away from the frus...
$fn=150; r1=20; h=40; h1=20; h2=h-h1; r2=r1*h2/h; cylinder(h1,r1,r2); translate([2*r1+1,0,0]) cylinder(h2,r2,0);
glb/cad_a9fd746e15fb.glb
Create two separate geometric pyramid models. For the first model, construct a square-based pyramid with a base width of 80mm and a height of 35mm. From this pyramid, remove a central cubic section by centering a cube with a side length of 80mm at a height of 30mm from the base, effectively creating a hollowed-out top ...
$fn=250; w=40; h=20; h2=35; difference(){ pyramid(w/2,h2); translate([0,0,w/2+h]) cube([w,w,w],center=true); } translate([w+1,0,-h]) difference(){ pyramid(w/2,h2); translate([0,0,-w/2+h]) cube([w,w,w],center=true); } module pyramid(w,h){ polyhedron( points=[ [w,w,0],[w,-w,0],[-w,-w,0],[-w,w,0], ...
glb/cad_988f7713d390.glb
Create a 608ZZ roller bearing with a total height of 8mm. Start by constructing the outer ring as a cylinder with an outer diameter of 22mm and a height of 8mm. Remove a central cylindrical volume from this ring to create a hollow channel that will house the internal components. Next, create the inner sun gear. This i...
OuterDiameter=22; InnerDiameter=8; InnerCorners=60; NumberOfPlanets=11; Thickness=8; Tolerance=.15; difference(){ MakeWheel((OuterDiameter-InnerDiameter)*0.2+InnerDiameter-Tolerance*2,-Thickness,Thickness); cylinder(r=InnerDiameter/2+Tolerance,h=Thickness,$fn=InnerCorners); } difference(){ cylinder(r=OuterDiameter/2-...
glb/cad_87623f3851d4.glb