Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a resistor box consisting of a hollowed rounded enclosure and a matching lid. The main box has interior dimensions of 50mm width, 34mm height, and 30mm depth, with all exterior corners rounded to a 4mm radius. The walls are 0.1mm thick, except for the top edge which is open to receive the lid. On one of the ve...
$fn = 50; p_width = 50; p_height = 34; p_depth = 30; p_round = 4; p_wall_top = 4; p_hole_r_small = 3.2; p_hole_r_large = 4.25; p_num_holes_x = 4; p_num_holes_z = 2; p_wall = .1; null = 1; space_x = ((p_width - (2 * p_hole_r_large * p_num_holes_x)) / (p_num_holes_x + 1)) + 2 * p_hole_r_large; space_z = ((p_he...
glb/cad_592cf856b546.glb
Create a loaded die model by combining two spheres, each with a radius of 17mm. Position the first sphere at the origin (0, 0, 17) and the second sphere at (0, 40, -9). From this combined mass, remove a central vertical cylinder with a radius of 10mm and a height of 20mm. To flatten the base, remove all material below ...
use <OpenSCADFont.scad>; $fn=80; difference(){ union(){ translate([0,0,17])sphere(r=17); translate([0,40,-9])sphere(r=17); } translate([0,0,0])cube(size = [400,400,4], center = true); translate([0,0,31])cube(size = [100,100,6], center = true); translate([0,0,17])cylinder(r=10, h=20); translate([0,0,-50])...
glb/cad_d8f56c504f62.glb
Create a Polyhedron Generator consisting of snap-together hubs and rods. For a dodecahedron configuration with a circumscribed sphere radius of 97mm, create 20 hubs and 30 rods. Each rod is a rectangular prism with a length of approximately 74.4mm, a thickness of 2.8mm, and a width of 2.8mm. Each hub is based on a sp...
show_bed_size_guide = 0; polyhedron_type = "dodecahedron"; circumscribed_sphere_radius = 97; print_type = "fullplate"; hub_reduction = "cheese"; pipe_outside_diameter = 27; pipe_interconnect_style = "none"; pipe_blind_count = 0; rod_thickness = 2.8; receiver_thickness = 6.0; receiver_depth = 6; receiver_leg_...
glb/cad_304f06e87479.glb
Create a personalized registration plate with a thickness of 5mm. The main body is a rectangular slab with rounded corners of 2.5mm radius. The overall length of the plate is determined by the main text, calculated at 21mm per character. The width of the plate is 50mm. The plate features a recessed border created by r...
P_Text = "D4N R4D"; T_Text = "My Plate"; B_Text = "By dan3008"; R_Corner = 2.5; P_Thick = 5; M_Size = 1; P_Font = "Oswald"; module P_Base(size, radius) { x = size[0]; y = size[1]; z = size[2]; difference(){ linear_extrude(height=z) hull() { translate([(radius), (radius...
glb/cad_9d865047bccd.glb
Create a Shutter Cable Release Adapter featuring internal tapered threads. The overall height of the part is 2.5mm. Construct the internal negative space using a screw thread with a vertical pitch of 0.5mm. The thread should be tapered, starting from a minimum diameter of 2.5mm and expanding to a maximum diameter of ...
P_v= 0.5; P_r= 0.124664; thread(P_v,2.5,2.67,10); module screwthread_triangle(P) { translate([-sqrt(3)/3*P+sqrt(3)/2*P/8,0,0]) rotate([90,0,0]) cylinder(r=sqrt(3)/3*P,h=0.00001,$fn=3,center=true); } module screwthread_onerotation(P,D_maj,step,k) { H = sqrt(3)/2*P; D_min = D_maj - 5*sqrt(3)/8*P; for(i...
glb/cad_5548bb8ae9ec.glb
Create a Linear Slider Bearing by extruding a specific 2D profile to a total height of 24mm, centered vertically, with a 180-degree twist applied along the extrusion axis. The profile consists of an outer ring and an internal pattern of circular sliders. First, create the outer ring as a hollow cylinder with an outer...
height = 24; inner_Radius = 4; outer_Radius = 7.5; wall_Thickness = 2; slider_Radius = 4; number_Of_Sliders = 4; degrees_Rotate = 180; quality = 550; theta = 360/number_Of_Sliders; function mod(a,m) = a-m*floor(a/m); module starter() { translate([(slider_Radius*cos(theta))+(inner_Radius*cos(theta)),(slider_Radi...
glb/cad_bfe5035a79a1.glb
Create a bottle opener consisting of a flat head and a cylindrical handle. The head is a flat plate 40mm wide, 20mm high, and 2mm thick. The base of the head is a rectangular frame with rounded outer corners and a rounded inner cutout. Specifically, the outer corners are defined by circles with a 10mm radius, while the...
width = 40; openingHeight = 15; frameWidth = 5; thickness = 2; neckHeight = 20; neckWidth = 10; smallPinCircle = 2.5; smallPinLoc = 3; bigPinCircle = 5; bigPinLoc = 1.5; gripWidth = 7.5; gripLength = 70; $fn = 50; union() { linear_extrude(height = thickness) union() { intersection() { difference() { ...
glb/cad_33704ade81c0.glb
Create a parametric lamp bracket designed to clamp onto a board. Start by forming a central rectangular block that is 40mm wide, 50mm deep, and 30mm high, with a central rectangular cutout measuring 25mm wide, 60mm deep, and 40mm high to accommodate the board. On the outer sides of this structure, integrate two cylin...
board_thickness=25; trap_depth=5; frame_thickness=15; lamp_dia1=12.5; lamp_dia2=12.5; difference(){ union(){ hull(){ translate([board_thickness/2+10,0,0]) cylinder(3,15,15,center = true,$fn=24); translate([-(board_thickness/2+10),0,0]) cylinder(3,15,15,center = true,$fn=24); translate([board_thickness/2+...
glb/cad_151194dee94f.glb
Create a tank bear wheel by starting with a main cylinder 50mm in diameter and 32mm in height, centered on the origin. Remove a central vertical hole 6mm in diameter that runs through the entire height of the wheel. From this central axis, carve out a larger concentric cylindrical section that is 34mm in diameter and 2...
module 624zz() { cylinder(h=5.001, d=13, center=true); } module cylinder_diff(d1, d2, h) { difference() { cylinder(h=h, d=d1, center=true); cylinder(h=h, d=d2, center=true); } } module wheel(d=50, w=32, a=9, b=4, c=9) { difference() { cylinder(h=w, d=d, center=true); union() { cylinder(h=w+1, d=6, cent...
glb/cad_e63f885de78f.glb
Create a Tank Bear Wheel by starting with a main cylinder 50mm in diameter and 32mm in height. Remove a central vertical hole 5mm in diameter that runs through the entire height of the wheel. From the center of the wheel, carve out a larger concentric cylindrical section that is 34mm in diameter and 23mm high, leaving ...
module bearing() { cylinder(h=4.001, d=8, center=true); } module cylinder_diff(d1, d2, h) { difference() { cylinder(h=h, d=d1, center=true); cylinder(h=h, d=d2, center=true); } } module wheel(d=50, w=32, a=9, b=4, c=9) { difference() { cylinder(h=w, d=d, center=true); union() { cylinder(h=w+1, d=5, cen...
glb/cad_64b6aeeaa701.glb
Create a customizable bottle opener consisting of a flat head and a cylindrical grip. The head is a flat plate with a thickness of 2mm. Its overall width is 40mm and it features a central opening for bottle caps. This opening is defined by a frame width of 5mm. The bottom of the head is a rectangular section 5mm high, ...
width = 40; openingHeight = 15; frameWidth = 5; thickness = 2; neckHeight = 20; neckWidth = 10; smallPinCircle = 2.5; smallPinLoc = 3; bigPinCircle = 5; bigPinLoc = 1.5; gripWidth = 7.5; gripLength = 70; $fn = 50; union() { linear_extrude(height = thickness) union() { intersection() { difference(...
glb/cad_ba442e744fb3.glb
Create a FlyPiScope, a compact camera and electronics housing. Start with a rectangular base measuring 66mm x 56mm x 40mm. Hollow out the center to create a main cavity, leaving 5mm walls. In the base, create a rectangular cutout for a camera and a separate slot for a servo motor. Add a series of circular air holes w...
PartA = 1; PartB= 1; PartC= 1; PartD= 1; PartB3=1; PartF1=1; PartJ1=1; PartK=1; Orient_flat = 0; sep = 40; Walls = 5; Tol = 0.15; T_cableZ = 4; T_cableY = 12; T_cable_offset = 8; MarkerLED_R = 3+Tol; MarkerLED_Z = 2; MarkerLED_XY = 4; Sidestand = 70; Sidestand_thickness = Walls; Borders = 15; Walls_thinning = 4...
glb/cad_5556853d3e1e.glb
Create a Cuisenare Set math manipulative consisting of a grid of small cubes. Each individual small cube must have a side length of 2mm. Arrange these cubes into a larger rectangular block that is 3 cubes wide (X-axis), 3 cubes deep (Y-axis), and 3 cubes high (Z-axis), for a total of 27 cubes. To ensure the cubes remai...
cube_size = 2; x_var = 3; y_var= 3; z = 3; inset = .1; translate([inset,inset,inset]){ cube([x_var+(inset*(x_var-1))-(inset*2),y_var+(inset*(y_var-1))-(inset*2),z+(inset*(z-1))-(inset*2)]); } for ( z = [0:z-1]) { for ( x = [0:y_var-1]) { for ( i = [0:x_var-1]) { translate([i*(1+inset),x*(1+inset),z*(1+inset...
glb/cad_e9c7dba0265a.glb
Create a Rectangular Print Bed Flatness Tester consisting of several thin plates, each with a height of 0.2mm. The overall footprint is a rectangle 200mm wide by 150mm deep. First, create a rectangular frame by placing four thin strips: two strips 200mm long and 2mm wide along the top and bottom edges, and two strips...
use <utils/build_plate.scad> bed_size_x=200; bed_size_y=150; layer_size=0.2; orientation_box="yes"; half_x=bed_size_x/2; half_y=bed_size_y/2; build_plate_selector = -1; build_plate_manual_x = 300; build_plate_manual_y = 200; bps=build_plate_selector<100?build_plate_selector:3; bpmx=build_plate_selector==3?build...
glb/cad_16f70bf10b6b.glb
Create a Y-axis LM8UU holder by starting with a base elliptical cylinder that is 40mm high, with a radius of 20mm on the X and Z axes and a scaled radius of 15.5mm on the Y axis. Flatten the bottom of this shape to a height of 4mm. Carve out a central rectangular slot for a bearing holder that is 18mm wide, 6mm deep,...
include <gregs-lm8uu-holder.scad> y_axis_holder (); screw_hole_r=4/2; hole_offset = 15; module y_axis_holder() { difference() { union() { intersection() { translate([-11, -15.5, 0]) render() lm8uu_bearing_holder(); scale([1, 31 / 40, 1]) cylinder(r=20, h=40, $fn=64); } scale([1, 31 / 40, 1]) cy...
glb/cad_028c24fa8b46.glb
Create a Trofast Tag for container labeling. Start by constructing the main body as a rectangular plate 100mm long, 20mm wide, and 2mm thick. To create the mounting hinge, add a second rectangular strip on top of the main body that is 100mm long, 2mm thick, and 14mm wide, positioned so it is flush with the left edge an...
thickness = 2; length = 100; width = 20; subject = "ERFINDERGARDEN"; font_size = 8; font_family = "Open Sans"; hinge_space = 10; hinge_height = 10; module tag() { union() { cube([length, thickness, width]); translate([0, 0, width - thickness]) cube([length, hinge_space + 2*thickness, thickness]); transl...
glb/cad_8e52fc68a9e9.glb
Create a Reinforced Prusa X Carriage. Start with a central base plate 80mm long and 50mm wide with a thickness of 3.2mm. At the center, create a cylindrical cutout with a radius of 21mm to accommodate a hotend. Position two LM8UU bearing holders on opposite sides of the base plate, spaced 28mm apart. Each holder shoul...
include <configuration.scad> include <lm8uu-holder-slim.scad> belt_clamp_thickness=2; belt_clamp_width=m3_diameter+3*belt_clamp_thickness+2; for (i=[-1,1]) translate([0,i*(belt_clamp_width+1),0]) belt_clamp(); belt_clamp_channel(); simonkuehling_x_carriage(); base_length = 80; rod_dist = 50; module simonkuehling...
glb/cad_1953a2119620.glb
Create a motor mount for a PCB drill. The main body is a cylinder with a diameter of 26.8mm and a total height of 94.3mm. Hollow out the center of this cylinder with a smaller 22.8mm diameter hole that runs for 89.3mm, leaving a floor thickness of 2.5mm at the bottom. At the bottom, create a rectangular opening measuri...
include <fillet.scad> drillerLength = 89.3; drillerDiam = 22.8; drillerBitHoleDiam = 10.5; drillerTopFixWidth = 5; pinHoleDiam = 3.4; filletDiam = 5; tieWidth = 4.5; tieTickness = 2.5; wallTickness = 2; floorTickness = 2.5; mountWidth = 9.5; mountHeight = 40; mountCenterDistance = 40; mountNotchWidth = 4.8; mount...
glb/cad_9b8bfc78b17c.glb
Create a handle clutch for a PCB drill. Start with a main cylindrical body that has a base diameter of 20mm and a total height of approximately 25mm. The top section of this body is a narrower cylinder with a diameter of 12.4mm and a height of 18mm. Between the base and the top cylinder, create a conical transition. S...
rodDiam = 6.2; baseDiam = 20; topDiam = rodDiam*2; armHeight = 18; tickness = 2; nutHeight = 2.8; nutSize = 5.8; nutDiam = nutSize*2/sqrt(3); screwHoleDiam = 3.5; $fn = 120; ep = 0.001; module _cluchSolid() { coneWidth = baseDiam-topDiam; difference() { cylinder(d=baseDiam, h=rodDiam+nutHeight+t...
glb/cad_6b8a1e2776e2.glb
Create a squirrel cage fan and housing assembly. Start by constructing the impeller: create a hollow cylinder with an outer radius of 45mm and a height of 40mm, with a wall thickness of 5mm. At the base, add a conical reinforcement section that tapers from a radius of 45mm down to 2.5mm over a height of 5mm. Integrate ...
module scCup(){ difference(){ cylinder(h=40,r=45,center=true,$fa=0.01); translate([0,0,2]) cylinder(h=38,r=40,center=true,$fa=0.01); }} module singleBladeKO(){ union(){ translate([42.5,0,0]) rotate([0,0,-41]) cube([12.5,2.5,35],true); rotate([0,0,-36]) translate([46.5,0,0]) rotate([0,0,-55]) cube([06,2.5,35],true);...
glb/cad_f55b0467e328.glb
Create a servo support for a kinetic clock. Start with a solid rectangular base measuring 33.8mm in width, 24.5mm in depth, and 14mm in height, centered on the origin. Carve a rectangular cutout from the top center of this base, measuring 23.8mm wide, 14.5mm deep, and 8mm high, to house a servo. Add a horizontal cy...
servoW = 23.8; servoD = 14.5; wires = 5; servoT = 9; servoSup = 5; tubeD = 4; nut_diameter = 7.9; $fn=50; module nut(nut_diameter, height) { difference() { translate ([0,0,0]) cylinder(r=(nut_diameter+3)/2,h=height, center=true); rotate([0,0,0]) cylinder(r=nut_diameter/2, h=12, center=true, $fn=6); } } ...
glb/cad_6ab243cd83d0.glb
Create a kinetic servo clock arm. Start by creating a main body that is a hull connecting two cylinders: one cylinder at the origin with a radius of 3.95mm and a height of 2mm, and a second cylinder positioned 49.1mm along the x-axis with a radius of 5mm and a height of 5mm. From this combined shape, remove a cylindr...
jeu = 1; digitDiam0 = 2; digitDiam = digitDiam0 ; armL = 50; armW = 8; servoDiam = 6; servoW = 4; $fn = 50; nut_diameter = 7.9; module nut(nut_diameter, height) { difference() { translate ([0,0,0]) cylinder(r=(nut_diameter+3)/2,h=height, center=true); rotate([0,0,0]) cylinder(r=nut_diameter/2, h=12, center=tru...
glb/cad_1c79c0341b9a.glb
Create a kinetic servo clock needle. Start by constructing a main rectangular body that is 40mm long, 4mm wide, and 1.5mm thick, centered on the origin. At one end of this body, centered at x = -20mm, add a cylindrical axis with an outer diameter of 10mm and a height of 1.5mm. To create the pivot point, remove a smal...
needleL = 40; needleW = 4; tubeD = 3.5; needleD = 10; $fn=50; module needleMin() { difference() { union(){ cube([needleL, needleW, 1.5], center=true); translate([(5+needleL-10)/2,0,0])cube([15, needleW, 1.5], center=true); translate([(5+needleL-10)/2,-(ne...
glb/cad_84230325475f.glb
Create a kinetic servo clock face consisting of a thin circular disc with a radius of 50mm and a height of 1mm. At the exact center of the disc, add a cylindrical protrusion with a radius of 10mm and a height of 2.5mm. Pierce a vertical hole through the center of the disc and the central protrusion with a radius of 1...
servoW = 23.8; servoD = 14.5; wires = 5; servoT = 9; servoSup = 5; tubeD = 4; clockRadius = 40 +10; offset = 20; nut_diameter = 7.9; $fn=50; module nut(nut_diameter, height) { difference() { translate ([0,0,0]) cylinder(r=(nut_diameter+3)/2,h=height, center=true); rotate([0,0,0]) cylinder(r=nut_diameter/2, h=...
glb/cad_14d58dda3e63.glb
Create a kinetic servo clock support structure. Start with a main rectangular base measuring 33.8mm wide, 29.5mm deep, and 14mm high, centered on the origin. From this base, extend a rectangular arm upwards and outwards. This arm should be 23.8mm wide and 14.5mm deep. At the end of this arm, attach a circular mountin...
servoW = 23.8; servoD = 14.5; wires = 5; servoT = 9; servoSup = 5; tubeD = 4; clockRadius = 40; offset = 20; nut_diameter = 7.9; $fn=50; module nut(nut_diameter, height) { difference() { translate ([0,0,0]) cylinder(r=(nut_diameter+3)/2,h=height, center=true); rotate([0,0,0]) cylinder(r=nut_diameter/2, h=12, ...
glb/cad_a926ccd843bf.glb
Create a connecting rod for a kinetic servo clock. The part is 2.5mm thick and consists of a central rectangular bar with a rounded head at each end. The central bar is 81.5mm long and 5mm wide. At each end of the bar, create a rounded head. Each head is formed by the convex hull of a 5mm wide cube and a cylinder wit...
h =2.5; d_roulement = 3.5; entre_axe = 85; l_tete = 20; nut_diameter = 7.9; $fn=50; module nut(nut_diameter, height) { difference() { translate ([0,0,0]) cylinder(r=(nut_diameter+3)/2,h=height, center=true); rotate([0,0,0]) cylinder(r=nut_diameter/2, h=12, center=true, $fn=6); } } translate ([0,0,4/2])...
glb/cad_e6c920a11fd0.glb
Create a phone stand consisting of a wide, curved backplate and a supporting base. Start by creating a backplate that is 70mm wide, 125mm tall, and 3mm thick. The top half of this plate should be a semi-circle with a radius of 35mm, while the bottom half is a rectangle. Within this backplate, carve out a central vert...
$fn = 100; rotate ([60,0,0]) cube ([70,10.5,3]); cube ([70,20,3]); intersection () { translate ([0,20,0]) rotate ([45,0,0]) cube ([70,110,3]); translate ([35,20,0]) rotate ([45,0,0]) translate ([0,75,0]) linear_extrude (height = 3) circle (r=35); } translate ([0,20,0]) rotate ([45,0,0]) cube ([70,75,3]); translate ([...
glb/cad_2ebb499d5e56.glb
Create a phone stand consisting of a supportive back plate and a front base. Start by creating a flat, rectangular base plate that is 70mm wide, 20mm deep, and 3mm thick. Attached to this base, create a vertical back support that is 70mm wide and 3mm thick. This back support should rise to a total height of 90mm, but i...
$fn = 100; rotate ([60,0,0]) cube ([70,7.5,3]); cube ([70,20,3]); intersection () { translate ([0,20,0]) rotate ([45,0,0]) cube ([70,110,3]); translate ([35,20,0]) rotate ([45,0,0]) translate ([0,75,0]) linear_extrude (height = 3) circle (r=35); } translate ([0,20,0]) rotate ([45,0,0]) cube ([70,75,3]); translate ([3...
glb/cad_c7cdfd2f1b32.glb
Create a Dynamic Cable Holder by starting with a rounded rectangular block. The block should have a total width of 25mm, a depth of 8mm, and a height of 8.8mm, with all four vertical corners rounded to a radius of 4mm. Remove two vertical cylindrical screw holes, each 4mm in diameter, positioned symmetrically near th...
ScrewHole = 4; CableHole = 8.5; RotateModel = 0; RoofHeight = 2; ExtraFeetHeight = 0; AddDepth = 0; WallThickness = 2; CableHoleRatio = 1.25; CableHoleHeight = 0; tCableHoleHeight = CableHoleHeight > 0 ? CableHoleHeight : CableHole / CableHoleRatio; echo(tCableHoleHeight); tWidth ...
glb/cad_e4f449d038c5.glb
Create a vacuum hose adapter consisting of a tiered cylindrical shell with a hollow center. Start with a base cylinder 40mm in diameter and 30mm high. On top of this base, add a conical transition section 4mm high that tapers from a 40mm diameter down to 32.5mm. Above this transition, place a second cylinder 32.5mm in ...
$fn=60; tolerance=0.15; hauteur1=30; hauteur2=16; difference(){ peau(); vide(); } module peau(){ union(){ cylinder(d=40, h=hauteur1); translate([0,0,hauteur1]) cylinder(d1=40, d2=32.5, h=4); translate([0,0,34]) cylinder(d=32.5, h=hauteur2-4); translate([0,0,46]) cylinder(d...
glb/cad_c865a10127e2.glb
Create a Jeep Keychain consisting of a base plate with raised lettering. First, create a rectangular backing plate with rounded corners, approximately 130mm by 88mm, and a thickness of 4mm. Add a small circular hole for a keyring at the top left corner. On top of this base, create the word "Jeep" in a bold, sans-ser...
fudge = 0.1; module backing(h) { scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[-135.204781,-88.842033],[-138.258511,-88.534200],[-141.102766,-87.651301],[-143.676613,-86.254268],[-145.919121,-84.404031],[-147.769358,-82.161524],[-149.166392,-79.58...
glb/cad_9c3521849236.glb
Create a frame brace for a 3D printer. Start with a central main block that is 18mm wide, 100mm long, and 40mm high, centered on the X-axis. Attach two bar support blocks to the sides; each should be 10mm wide, 26mm long, and 20mm high, positioned 19.5mm from the center. Add four triangular reinforcement braces. Two s...
module frame_brace() { difference() { union() { translate([-9,-50,0]) cube([18,100,40]); translate([19.5,-8,0]) cube([10,26,20]); translate([-29.5,-8,0]) cube([10,26,20]); translate([7,-16.25,3.9]) rotate(a=[90,0,0]) linear_extrude(height = 5) polygon([[0,0],[9,0],[0,25]]...
glb/cad_e345cdd223a6.glb
Create a miniature Eiffel Tower by constructing a tapered tower structure. Start with a central vertical body that is 10mm wide and 20mm tall, centered on the origin. Carve out the interior and the base using a series of intersecting cylinders with a radius of 12mm, positioned at the center and offset by 10mm along the...
$fn = 100; module partA(){ difference(){ difference(){ difference(){ difference(){ cube([10,10,20],center=true); translate([51,0,10])rotate([90,0,0])cylinder(12,50,50,center=true); } translate([0,51,10])rotate([90,0,90])cylinder(12,50,50,center=true); } translate([-51,0,10])rotate([90,0,0])cyli...
glb/cad_25dec51c42fe.glb
Create a Deeper Top Holder for a Universal Dock. Start by constructing the main body as a union of two rounded boxes: one measuring 20mm x (phone_width + 8mm) x 30mm and another measuring 26mm x 50mm x 30mm, both with a corner radius of 4mm. From this combined volume, remove a central rectangular block of 27mm x phone_...
include <MCAD/boxes.scad> part = "first"; phone_name = ""; font_size = 11; TextLabel = ""; font = "REGISTRATION PLATE UK:style=Bold"; phone_width = 71; phone_depth = 8; connector_width = 11.1; connector_depth = 6.2; connector_height = 17; print_part(); module print_part() { if (part == "first") { topholde...
glb/cad_8c701c5ed53f.glb
Create a Bottle Carrier consisting of a rectangular base and a vertical handle. Start with a solid rectangular block measuring 300mm wide, 200mm deep, and 50mm thick. In this base, create fifteen circular holes, each with a diameter of 40mm and a depth of 40mm. Arrange these holes in a grid of three rows and five colum...
baseWidth = 300; baseHeight = 200; baseThickness = 50; circleDiameter = 40; handleWidth = 100; handleHeight = 50; module createBase() { linear_extrude(baseThickness) { square([baseWidth, baseHeight], center=true); } } module bottleHole() { translate([0, 0, 15]) { linear_extrude(baseThickness - 10) circle(c...
glb/cad_6d9447631cc2.glb
Create a 3D model consisting of a tapered cylinder and a small sphere. First, construct a cone-like cylinder with a height of 10mm, where the base has a diameter of 10mm and the top tapers to a diameter of 2mm. Ensure the cylinder is rendered with a facet resolution of 50. Then, place a sphere with a diameter of 2mm at...
use <path_extrude.scad>; myPoints = [ for(t = [0:18:359]) 2.5*[cos(t),sin(t)] ]; myPath = [ for(t = [0:3.6:359]) [ 4*(sin(t) + 2*sin(2*t)), 4*(cos(t) - 2*cos(2*t)), 5*(-sin(3*t))] ]; path_extrude(exPath=myPath, exShape=myPoints, merge=true); cylinder(d1=10, d2=2, h=10, $fn=50); translate([0,0,9.8]) sphere(...
glb/cad_468332390f45.glb
Create a hexagonal nut with a height of 8mm. The outer boundary is a regular hexagonal prism with a flat-to-flat width of approximately 24mm. Centered through the vertical axis of this prism, create a cylindrical hole with a diameter of 16mm. To create the internal threading effect, remove material from the inner cylin...
use <path_extrude.scad>; length=8; P=2; H=sqrt(3)/2 * P; R=H/(P/2); ppr=30; loops=length/P; D=16; xw=0.4; myPoints = [ [-H/2+xw+0.1*R,-P/2+0.1], [1/4*H+xw,-P/8], [1/4*H+xw,P/8], [-H/2+xw+0.1*R,P/2-0.1] ]; myPath = [ for(t = [-(180/loops):(360/(ppr*loops)):360+(180/loops)]) [(D/2)*cos(loops*t),(D/2)*sin(loops*...
glb/cad_03699cc41a87.glb
Create a 3D model of a bolt-like object. Start by constructing a hexagonal base with a flat top and bottom, where the distance between opposite flat sides is approximately 12mm. Centered on this base, add a vertical cylindrical column with a diameter of 8mm and a total height of 30mm. The column should be rendered as a...
use <path_extrude.scad>; length=30; P=2; H=sqrt(3)/2 * P; R=H/(P/2); ppr=20; loops=length/P; D=16; xw=0.4; myPoints = [ [-H/2-xw+0.1*R,-P/2+0.1], [1/4*H-xw,-P/8], [1/4*H-xw,P/8], [-H/2-xw+0.1*R,P/2-0.1] ]; myPath = [ for(t = [-(180/loops):(360/(ppr*loops)):360+(180/loops)]) [(D/2)*cos(loops*t),(D/2)*sin(loops...
glb/cad_67cebeaca6cf.glb
Create a 3D model of a trefoil knot by extruding an octagonal profile along a specific closed-loop path. First, define the path of the trefoil knot using the parametric equations: x = 5 * (0.41 * cos(t) - 0.18 * sin(t) - 0.83 * cos(2t) - 0.83 * sin(2t) - 0.11 * cos(3t) + 0.27 * sin(3t)) y = 5 * (0.36 * cos(t) + 0.27...
function project(p, c, n) = p - (n * (p - c)) * n / (n * n); function getPlanarAngle(p1, p2, c1, n1) = let(p1 = p1-c1, n1=n1 / norm(n1), p2=p2-c1) atan2((p1[0]*p2[1]*n1[2] + p2[0]*n1[1]*p1[2] + n1[0]*p1[1]*p2[2]) - (n1[0]*p2[1]*p1[2] + p1[0]*n1[1]*p2[2] + p2[0]*p1[1]*n1[2]), p1 * p2); function c...
glb/cad_db200481b232.glb
Create a bottle separator grid for a storage box with an overall width of 246mm, a depth of 150mm, and a height of 25.4mm. The grid is formed by a series of intersecting walls, each 1.5mm thick. Create five parallel longitudinal walls spaced every 30mm along the depth. Create eight parallel transverse walls spaced ev...
height=25.4; width=246; depth=150; hole_width=30; hole_depth=30; row_dividers=floor(depth/hole_depth); column_dividers=floor(width/hole_width); fillet_diam=8; wall_thickness=1.5; ff=0.001*1; union() { for(j = [0:row_dividers-1]) { translate([0,(hole_depth)+j*(hole_depth),0]) cube([width,wall_thickness,height]); ...
glb/cad_eaca7627024b.glb
Create a fan blade assembly consisting of a central hub and 20 radiating blades. Start by constructing a hollow cylindrical hub with an outer diameter of 36.6mm and a height of 7.15mm. The hub wall thickness is 0.8mm. On the top face of the hub, add five small rectangular tabs, each 0.2mm thick, spaced evenly around th...
include <MCAD/units/metric.scad> use <MCAD/array/along_curve.scad> use <MCAD/shapes/cylinder.scad> use <scad-utils/transformations.scad> use <scad-utils/shapes.scad> use <MCAD/general/sweep.scad> use <MCAD/shapes/2Dshapes.scad> number_of_blades =20; wall_thickness = 0.8; hub_d = 35; hub_od = hub_d + wall_thickness * 2...
glb/cad_99b3b78eba3c.glb
Create a gaming joystick accessory consisting of a base and a movable inner pad. Start by constructing the base shell: create a rectangular arm measuring 27mm in length, 10mm in width, and 3mm in height. At the end of this arm, attach a cylinder with a diameter of 35mm (30mm ring diameter plus 2.5mm wall thickness on e...
joystick(); phoneThickness = 10; attachWidth = 10; attachThickness = 3; clipThickness = 12; clipLength = 10; clipWall = 3; clipBackWall = 5; attachLength = 27; spiralHeight = 2.8; spiralWallThickness = 1.5; ringHeight = 3; ringWallThickness = 2.5; ringDiameter = 30; padHeight = 3; padDiameter = 12; padWallThickness =...
glb/cad_17c9fbd40d49.glb
Create a Lever Arm consisting of two intersecting rectangular beams. First, create a main handle arm as a rectangular prism measuring 10mm wide, 150mm long, and 10mm thick. Drill a 3mm diameter hole through the center of the 10mm x 10mm face at the start of the arm, extending 40mm deep to ensure it is fully pierced. At...
length_HandleArm=150; length_MountArm=100; position_Arm=50; angle_MountArm=20; maxarm=(length_HandleArm-20); HandleHole=3; MountHole=3; position_Arm1=(position_Arm/100); color("Blue") difference(){ cube([10,length_HandleArm,10],0,0,0); translate([5,0,0]) cylinder(h=40,r=HandleHole,center=true); } trans...
glb/cad_39fd22a23402.glb
Create a centrifugal fan blade assembly. Start with a cylindrical base 92mm in diameter and 3mm high. Centered on this base, add a conical center hub that rises 20mm, tapering from the base radius down to a top radius of 10mm. Bore a 10mm square hole vertically through the center of the entire assembly. Around the hub...
Definition = 75; Slice_Number = 15; Object = "blade"; Blade_Base_Radius = 46; Blade_Base_Height = 3; Blade_Cone_Radius = 10; Blade_Cone_Height = 20; Blade_Hole_Size = 10; Blade_Hole_Type = "square"; Blade_Type = "front"; Blade_Number = 10; Blade_Distance = 20; Blade_Angle = 10; Blade_Length = 25; Blade_Th...
glb/cad_1659453c57b5.glb
Create a pen holder for an extruder support. Start by constructing a base shape using a convex hull that connects a cylinder with a 5mm radius and 4mm height, centered at x=-32, y=0, z=-4, to a rectangular block measuring 9.5mm by 15.5mm by 8.5mm centered at x=6.25, y=0, z=0. From this main body, remove a central void ...
difference(){ hull(){ translate([-40+16/2,0,-4])cylinder(r=10/2,h=4, center=false); translate([10-7.5/2,0,0])cube([7.5+2,13.5+2,6.5+2],center=true); } translate([0,0,2]) hull(){ translate([-40+16/2,0,0])cylinder(r=6.5/2,h=5,center=true); translate([-0,0,0])cylinder(r=4.5/2,h=5,center=true); } translate([-40+16...
glb/cad_fcacfb42fe70.glb
Create a customizable bowl by starting with a sphere that is resized to 300mm in width, 600mm in height, and 100mm in thickness. Hollow out this shape by removing a second sphere from the center, which shares the same 300mm by 600mm by 100mm dimensions but is shifted upward by 5mm along the Z-axis to create a consisten...
bowlWidth = 300; bowlHeight= 600; bowlThickness = 100; footWidth = bowlWidth/2; footHeight = bowlHeight/2; footThickness = bowlThickness/2; difference() { resize(newsize=[bowlWidth, bowlHeight, bowlThickness]) sphere(r=10); translate([0,0,5]) resize(newsize=[bowlWidth, bowlHeight, bowlThickness]) sphere(r=10);...
glb/cad_0f52da495d12.glb
Create a Polyomino Puzzle consisting of six flat geometric pieces, each with a uniform thickness of 4mm. Every piece is constructed from square cells measuring 20mm by 20mm. The first piece is an L-shape formed by a 120mm by 20mm rectangle with a 20mm by 40mm rectangle attached to one end. The second piece is a 100mm...
cell_size=20; th=4; module figure1() { scale([cell_size*6, cell_size*1, th]) cube(1); translate([cell_size*5,0,0]) scale([cell_size*1, cell_size*2, th]) cube(1); } module figure2() { scale([cell_size*5, cell_size*1, th]) cube(1); scale([cell_size*1, cell_size*2, th]) cube(1); } ...
glb/cad_ef49957f771c.glb
Create a Pythagoras Square puzzle set consisting of five flat geometric tiles, each with a uniform thickness of 4mm. All tiles are based on a grid where one unit equals 16.67mm. First, create a right-angled triangle with a base of 3 units and a height of 3 units. Second, create a trapezoid with a height of 3 units, a...
a=150/9; points=[[0,0], [0,3], [3,3], [3,0], [0,9], [6,9], [9,9], [9,6], [9,0], [3,6], [6,3]]; h=4; module T1() scale([a,a,1]) linear_extrude(height = h, center = false, convexity = 10, slices = 1, scale = 1.0) polygon(points=points, paths=[[0,1,2,3]]); module T2() color("red") scale([a,a,1]) linear_extrude(height =...
glb/cad_c0dff8bbfc05.glb
Create a Sburb frame consisting of a flat base and a raised central emblem. First, construct a thin base plate 1.5mm thick. The outer perimeter of this base is defined by a closed polygon with vertices at [4,64], [45,43], [45,12], [82,12], [82,23], [106,12], [106,7], [208,59], [187,59], [187,137], [183,151], [183,223],...
substrate_height = 1.5; substrate_offset = 6; logo_height = 4; logo_hsize = 45; scaling = logo_hsize / 210; module logo() { polygon(points = [[4,64], [45,43], [45,12], [82,12], [82,23], [106,12], [106,7], [208,59], [108,59], [108,64]]); translate([29,69]) square([72,72]); polygon(poi...
glb/cad_0bae7f96591a.glb
Create a file grip handle consisting of a tapered main body with a central hollow cavity. The outer body is formed by two joined sections: a lower cylinder with a radius of 10mm and a height of 40mm, and an upper section that tapers upward to a radius of 7mm at a height of 82mm. The transition between these two section...
module square_slot(w, d, l=50) { translate([-w/2, -d/2, 0]) cube([w, d, l]); } module round_slot(d1, l=50) { cylinder(h=l, r=d1/2); } module square_cone_slot(tw, bw, l=50) { hull() { translate([-tw/2, -tw/2, l]) cube([tw, tw, 2]); translate([-bw/2, -bw/2, 0]) cube([bw, bw, 2]); } } mo...
glb/cad_d22581d7a971.glb
Create a Kossel Delta LED strip light holder consisting of four identical rail components. Each rail is a rectangular block 154mm long, 15mm wide, and 5mm high. On the top surface of each rail, center a longitudinal recessed channel 9mm wide and 1mm deep to house the LED strip. The outer edges of the rail should be r...
include <fillet.scad> tickness = 3.5; length = 205; width = 15; ledWidth = 9; windowWidth = 6; ledTickness = 1; ledRailTickness = 2; cableHookDiam = 2.5; cableHookTickness = 1.5; cableHookWidth = 5; profileSize = 20; profileHoleDiam = 3.4; profileHoleHeadDiam = 8.2; angle = 90; $fn = 120; ep = 0.001; ledRailHeigh...
glb/cad_c91f750e680d.glb
Create a LED connector box designed to fit a 20mm profile. The main body is a rectangular enclosure with an outer width of 20mm, a length of 68.8mm, and a height of 12.3mm. The walls are 3.5mm thick. Hollow out the center of the box to create a cavity that is 13mm wide and 62.2mm long. In the center of the box, create...
tickness = 3.5; screwHoleDiam = 3.4; screwHeadDiam = 6.5; pcbLength = 62.2; pcbWidth = 9.5; pcbTickness = 1.4; pcbScrewDistance = 53; pcbScrewHoleDiam = 2.6; pcbSpacing = 13; switchLength = 10.6; switchWidth = 5.6; switchSupportLength = 19.5; switchSupportWidth = switchWidth; switchSupportTickness = 0.3; switchScrewD...
glb/cad_375df7d6840d.glb
Create a support part for a Renren 3D Pro printer by constructing a geometric hull that connects a 20mm cube and a 20mm diameter cylinder. Position the cube at the base, centered on the XY plane, and place the cylinder directly above it at a height of 20mm. The resulting shape should be a solid transition from a square...
height = 20; holeDiam = 3.4; profileSize = 20; $fn = 120; ch = 0.01; difference() { hull() { cube([profileSize, profileSize, ch], center=true); translate([0, 0, height-ch]) cylinder(d=profileSize, h=ch); } translate([0, 0, -ch]) cylinder(d=holeDiam, h=height+ch*2); }
glb/cad_1cf1f5ca44f4.glb
Create a geometric support part with a total height of 16.5mm. Start by constructing a base shape that is the convex hull of a 20mm cube centered on the XY plane and a cylinder with a 20mm diameter positioned at the top of the object. The cube should be oriented such that its sides are parallel to the X and Y axes. Thr...
height = 16.5; holeDiam = 3.4; profileSize = 20; $fn = 120; ch = 0.01; difference() { hull() { cube([profileSize, profileSize, ch], center=true); translate([0, 0, height-ch]) cylinder(d=profileSize, h=ch); } translate([0, 0, -ch]) cylinder(d=holeDiam, h=height+ch*2); }
glb/cad_e56a193a0dda.glb
Create an Idler with level and spacer for a compact bowden extruder. Construct the main body as a rectangular block with a width of 42.3mm and a height of 17.25mm. At the center, create a cylindrical cutout with a radius of 11.25mm. On one side of the block, integrate a bearing housing by creating a cylindrical protr...
epsilon = 0.01; extra_radius = 0.1; m3_major = 2.85; m3_radius = m3_major / 2 + extra_radius; m3_wide_radius = m3_major / 2 + extra_radius + 0.2; m3_head_radius = 3 + extra_radius; drive_gear_outer_radius = 8.00 / 2; drive_gear_hobbed_radius = 6.35 / 2; drive_gear_hobbed_offset = 3.2; drive_gear_length = 13; drive_...
glb/cad_c76c3c48efc2.glb
Create an extruder opener holder by starting with a rectangular base measuring 40mm in length, 8mm in width, and 3mm in thickness. At one end of the rectangle, add a semi-circular handle with a diameter of 10mm and a thickness of 3mm, centered on the width of the base. Create a hole through the center of the model with...
screwHoleDiam = 3.4; tickness = 3; width = 8; length = 40; insertLength=4; handleDiam = 10; $fn = 120; ep = 0.001; module extruder_opener_holder() { difference() { union() { cube([length, width, tickness]); translate([length-handleDiam/2, 0, 0]) cylinder(d=handleDiam, h=tickness...
glb/cad_33480de62d7f.glb
Create a GPS pouch holder bracket consisting of two identical mirrored parts. Each part features a main mounting block and a cylindrical pipe collar. For the mounting block, create a rectangular base 40mm wide, 12mm long, and 16mm high. Centered on this base, integrate a cylindrical collar with an outer diameter of 24...
length = 12; width = 40; base = 5; wall = 4; inner = 14; angle = 230; hole = 4; distance = 28; flap = 12; rod = 16.5; collar = 12; rail = 4; spacing = 5; block = collar+wall; outer = inner + 2*wall; peri = (inner+wall)/2; a1 = angle/2; little = 0+0.01; $fn = 0+100; bracket(); translate([0, flap+outer, 0]) brac...
glb/cad_55451452c60e.glb
Create a Tile Tray for a board game by constructing a square base and four corner walls. Start with a square base plate measuring 120mm by 120mm with a thickness of 4mm. At each of the four corners of this base, build L-shaped vertical walls that are 91mm tall. Each corner wall is formed by two intersecting rectangular...
$fn = 200; connector_width = 7; stack_thickness = 84; tile_size = 102; base_thickness = 4; wall_thickness = 8; height = base_thickness + stack_thickness + 3; width = tile_size + wall_thickness*2 + 4; union () { cube([width, width, base_thickness]); cube([width/4, wall_thickness, height]); cube([wall_t...
glb/cad_5ece0258e529.glb
Create two identical rolling pin guides. Each guide is a hollow cylinder with a height of 5mm and an inner diameter of 40.5mm to fit around a rolling pin. The outer diameter of each guide is 54.5mm, which is derived from the inner diameter plus twice the desired dough thickness of 7mm. The walls of the cylinder are sol...
diameter = 40.5; width = 7; height = 5; number = 2; facet = 1; second_facet = 0; thickness = 1; d=diameter; w=width; h=height; th=thickness; r1=(d/2+w); r2=(d/2+(w-1)); if (th > (h/2)) { th = round(h/2); } if(number==4) { guide(d,d); guide(d,-d); guide(-d,d); guide(-d,-d); } else if(number==2) { guide(0...
glb/cad_7f324343bccd.glb
Create a parametric iCube by constructing a centered cube with side lengths of 300mm. Within this cube, integrate a detailed model of an iPhone 4. Position the phone so that it is centered on the X and Y axes, but shifted upward along the Z axis by 150mm, placing it exactly halfway up the height of the larger cube.
size=300; iCube(size); module iCube(size){ cube(size,center=true); } use<iphone4_model.scad>; iPhone(); module iPhone(){ translate([0,0,size/2])iphone4(true, true, true, true, true, [0,.7,0]); }
glb/cad_c2a2cc551095.glb
Create a 3D model of a parametric iCube phone case. Start with a base consisting of two stacked rounded rectangles: a bottom glass layer with dimensions 113.55mm height, 57.15mm width, and 9.34mm depth, and a slightly larger steel frame layer on top with dimensions 115.15mm height, 58.55mm width, and 6.35mm depth. Both...
safety = 2; quality = 30; extra_quality = 30; shadingFactor = 0.8; flushEmbed = 3; elementCornerRadius = 1; glassThick = 1.59; bevel = 0.6; glassDepth = 9.34; steelHeight =115.15; steelWidth=58.55; steelDepth=glassDepth - 2* glassThick; glassHeight = steelHeight - 2 * bevel; glassWidth = steelWidth-2 * bevel; ...
glb/cad_a0380e56fb66.glb
Create an SRI Abacus Transmission model consisting of three primary components: an inner race, an outer race, and a set of rollers. Construct the inner race as a ring with a radius of 30mm and a height of 20mm. Carve 6 equidistant vertical holes through the ring, each shifted by 0.75 of the interval between them. The ...
part=0; $fn=50; inrace= 30; outrace= 40; icyc=6; ocyc=8; rollers=7; roller=10; cone=0.1; step=360/($fn*3); if (part==1||part==0){ color("Red")for (i=[0:90/rollers*2:90]) {rotate([0,0,i+90]) translate([outrace+10+roller*1.5,0,00]){ rotate_extrude(angle = 360, convexity = 2) hull(){ offset(0.5,$fn=3)offset(-0...
glb/cad_2cb503a2a499.glb
Create a Customizable Lattice Cube consisting of two identical interlocking cubic frames. Each frame is composed of a network of round bars with a diameter of 4mm. The overall side length of each cube is 62mm. The structure is formed by a grid of bars where the distance between parallel bars is determined by a single d...
cs=62; dn=1; ws=4; bt="round"; dh=0.6; dbl=2; ds=1.25; $fn=16; dl=cs/(dn+1); a2=35.264; module node(){ if (bt=="round"){ sphere(ws/2); } else { cube(ws,true); } } difference(){ for(ndbl=[1:dbl])translate([0,0,-cs/(dn+1)*sin(a2)+dh])rotate([45,-a2,120/dbl*ndbl])rotate([0,0,0])for(n1=[0...
glb/cad_63cd9efff9da.glb
Create a height adjustment knob consisting of two separate parts: an inner core and an outer shell. For the inner core, create a rectangular block 17mm wide, 17mm deep, and 70mm tall. Remove a 10-sided prism with a diameter of 18mm running through the center along its height. Additionally, remove a hexagonal hole with ...
alt= 90; translate([50,-50/2,15/2]) rotate([90,0,180]) corpo(70); rotate([0,0,180]) esterno(); module esterno () { translate([0,0,alt]) rotate([180,0,0]) difference () { translate([0,0,1]) cylinder(h=alt, d1=33, d2=42, $fn=12); translate([0,0,70...
glb/cad_f8190d43ca66.glb
Create a customizable nose cone for a mini-rocket. Start by constructing a base cylinder with a height of 15mm, a bottom radius of 8.875mm, and a top radius of 9mm. From this base, remove a rectangular slot measuring 12mm by 4mm by 4mm centered at the bottom, and remove a horizontal cylinder with a radius of 6mm and a ...
radius_in=9; radius_out=10; length=50; taper=0.125; union(){ difference() { cylinder(h=15, r1=radius_in-taper, r2=radius_in,$fn=60); translate ([-6,-2,0]) cube(size = [12,4,4]); translate ([0,2,4]) rotate ([90,0,0]) cylinder(h=4,r=6,$fn=60); } translate([0,2,2]) rotate([90,0,0]) cylinder(h=4,r=2,$fn=60); t...
glb/cad_0931e279582a.glb
Create a brush holder by first constructing a solid base. This base is a hull formed between two cylinders, each with a radius of 7.5mm and a height of 15mm; one cylinder is centered at the origin and the other is positioned 45mm away along the x-axis. To create the brush slots, remove nine identical vertical cylinders...
height=15; depth=15; count=8; thickness=.2; $fn=100; module blocks(t=[], r=1, h=1) { for(x=[0:count]) { translate([(x*height/2)*1.5,0,0]) translate(t) cylinder(r=(height/2)*r, h=depth*h); } } module base(r=1, h=1) { hull() { cylinder(r=(height/2)*r, h=depth*h); translate([(count*heig...
glb/cad_e2e0d366ba8c.glb
Create a Parametric Coin Cell Holder by starting with a solid rectangular block. The block should have a total width of 21.6mm, a height of 10.8mm, and a length calculated as 10 times the sum of the battery width and divider thickness, plus one final divider thickness (totaling 34.8mm for CR2023 cells). Carve out 10 ...
nr = 10; battery = "CR2023"; custom_radius = 10; custom_width = 3.4; custom_text = "cells"; width_divider = 0.8; $fn=128; module holder(radius, width, text) { length = nr*(width_divider+width) + width_divider; difference(){ cube([2*radius + 2*width_divider, length, radius+width_divider]); for(i = [0...
glb/cad_55026be154ce.glb
Create a microswitch mount consisting of a flat rectangular base and a vertical housing. Start with a central base plate measuring 24mm wide, 13mm deep, and 2mm thick. On top of this base, add two small heptagonal prisms (7-sided cylinders) with a radius of 1.5mm and a height of 5.3mm, positioned symmetrically at x =...
rotate( a=-90, v=[1,0,0] ) { thing(); translate( [0, 0, -6] ) rotate( a=90, v=[1,0,0] ) mount(); translate( [11, 1, -11] ) rotate( a=180, v=[0,1,0]) rotate( a=90, v=[0,1,0]) support(); translate( [6.5, 1, -11] ) rotate( a=180, v=[0,1,0]) rotate( a=90, v=[0,1,0]) support(); translate( [2.5, 1, -11] ) rotate( a=1...
glb/cad_e08cedd3066e.glb
Create a customizable plant pot starting with a conical main body that is 25mm high, with a top diameter of 40mm and a bottom diameter of 32mm. Add a cylindrical rim at the top with a height of 1.2mm and a width of 1mm extending beyond the top diameter. The pot should have a wall thickness of 0.75mm. Hollow out the c...
top_diameter=40; height = 25; ratio = 0.8; bottom_diameter = top_diameter * ratio; wall = 0.75; top = top_diameter / 2; bottom = bottom_diameter / 2; rim_h = 1.2; rim_w = 1; slit_width = 1.4; slit_height = 8; slit_number = 16; slit_length = 6; hole_diameter = 3; hole_number = 6; hole_ring_diameter = 12; $fn=160; ...
glb/cad_f90b3b4bdba9.glb
Create a 3D model of an external key holder for a board game layout. Start by creating a main cubic base with dimensions of 24mm x 24mm x 19.2mm. At the center of the top face, add a square vertical protrusion (the key holder hole) that is 16mm x 16mm at the base and extends upward to a total height of 22.4mm. To r...
$l = 1.6; $t = $l*2; $b = $l*6; $g = $l*5; $f = 0.01; $fv = [$f,$f,$f]; rotateWalls = false; gridVector = [$g*3, $g*3, 0]; modelHeight = $b*5; cornerWallHeight = modelHeight; exteriorWallHeight = cornerWallHeight - $t; roomHeight = $t; interiorWallPlateHeight = $t; interiorWallHeight = roomHeight + $b; platformHei...
glb/cad_033437e1481a.glb
Create a Voltron iPad holder by starting with a main rectangular body that has rounded corners. This body should measure 241mm in height, 185mm in width, and 13mm in depth, with a corner radius of 10mm. From this main body, remove a grid of six smartphone-shaped cutouts. Arrange these cutouts in a grid of two rows an...
include <../iphone4.scad> ipadH = 241; ipadW = 185; ipadD = 13; difference() { color([0.6, 0.6, 0.6]) translate([59, 60, 9.2]) rotate([180, 0, 0]) roundedRect([ipadH, ipadW, ipadD], 10); iPhoneGrid(false); translate([170, 60, 4.5]) rotate([90, 90, 90]) roundedRect([5, 24, 10], 1); } iPhoneGrid(true); module iPho...
glb/cad_5b997721257e.glb
Create a Switchable Outlet Strip, which is a rectangular box with a wall thickness of 4mm. The box has a depth of 100mm and a height of 70mm. The front panel is a rectangle with a width based on four sockets, each 57mm wide. In this panel, create four rectangular cutouts for power switches, each measuring 12mm by 18mm...
include <write/Write.scad> sockets = "EOOO"; id00 = "POWER"; id01 = "MONITOR"; id02 = "COMPUTER"; id03 = "RECEIVER"; id04 = ""; id05 = ""; id06 = ""; id07 = ""; id08 = ""; id09 = ""; id10 = ""; id11 = ""; id12 = ""; id13 = ""; id14 = ""; id15 = ""; id16 = ""; id17 = ""; id18 = ""; id19 = ""; t = 0.4; d = 10; useFo...
glb/cad_0fb2ceceb076.glb
Create a fidget spinner toy with a four-arm plus-sign configuration. The body is 7mm thick. Start with a central cylinder of 22mm diameter and 7mm height. From the center, extend four arms spaced 90 degrees apart. Each arm consists of a rounded rectangular extension that terminates in a circular outer lobe with a radiu...
spinner_style = 4; bearing_diameter=22; bearing_thickness=7; wall_thickness=2.5; extra_arm_length=0; part_quality=0.25; minkowski=true; minkowski_ratio=.36; minkowski_roundness=15; $fa=1; $fs=part_quality; degree = 360 / spinner_style; number = spinner_style; outer=bearing_diameter / 2 + wall_thickness; inne...
glb/cad_ea13bfcc5cd2.glb
Create a tri-spinner fidget toy based on a cross shape with four arms. Start by creating a central cylinder with a radius of 11mm and a height of 7mm. Around this center, place four arms extending outwards at 90-degree intervals. Each arm is formed by a cylinder with a radius of 13.5mm and a height of 7mm, positioned s...
spinner_style = 4; bearing_diameter=22; bearing_thickness=7; wall_thickness=2.5; extra_arm_length=0; part_quality=0.25; minkowski=true; minkowski_ratio=.36; minkowski_roundness=15; $fa=1; $fs=part_quality; degree = 360 / spinner_style; number = spinner_style; outer=bearing_diameter / 2 + wall_thickness; inne...
glb/cad_3d91a9c83963.glb
Create a fidget spinner toy with a cross-shaped profile consisting of four arms. The overall thickness of the model is 7mm. Start by creating a central cylinder with a radius of 11mm and a height of 7mm. From the center of this cylinder, extend four arms spaced 90 degrees apart. Each arm is formed by a hull connectin...
spinner_style = 4; bearing_diameter=22; bearing_thickness=7; wall_thickness=2.5; extra_arm_length=0; part_quality=0.25; minkowski=true; minkowski_ratio=.36; minkowski_roundness=15; $fa=1; $fs=part_quality; degree = 360 / spinner_style; number = spinner_style; outer=bearing_diameter / 2 + wall_thickness; inne...
glb/cad_de428e8d0f79.glb
Create a hex bolt with a threaded shaft and a hexagonal head. The bolt head is a regular hexagon with a distance of 12mm between opposite flats and a height of 5mm. Attached to the head is a threaded shaft with an outer diameter of 8mm. The threading has a pitch of 2mm and a step shape of 45 degrees. The total leng...
type = "bolt"; head_type = "hex"; drive_type = "socket"; head_diameter = 12; head_height = 5; drive_diameter = 5; slot_width = 1; slot_depth = 2; texture = "exclude"; thread_outer_diameter ...
glb/cad_1286d0415786.glb
Create a rounded Meissner tetrahedron by first generating a 2D profile and then rotating it 360 degrees around the Z-axis. To create the profile, find the intersection of three circles, each with a radius of 20mm. Position the centers of these circles at (-5, 0), (5, 0), and (0, 10). From this intersection, remove the ...
module kaksree() { difference() { intersection() { translate([-5,0,0]) cylinder(r=20,h=1.4,$fn=100); translate([5,0,0]) cylinder(r=20,h=1.4,$fn=100); translate([0,10,0]) cylinder(r=20,h=1.4,$fn=100); } translate([0,-10,-10]) cube([100,100,100]); } } difference() { rotate_extrude(convexity=100,$fn...
glb/cad_20fe489588fb.glb
Create a Hanging Sink Brush Holder with overall dimensions of 165.1mm wide, 101.6mm tall, and 38.1mm deep. Construct the main body as a hollow rectangular shell with a wall thickness of approximately 1.6mm. The front, back, and bottom faces should be designed as open grids. Create this grid effect by removing a serie...
union() { difference() { minkowski() { difference() { cube(size = [165.1, 38.1, 101.6], center = true); translate(v = [0, 0, 0.79375]) { cube(size = [163.5125, 36.5125, 101.6], center = true); ...
glb/cad_9ef427de5b46.glb
Create a laser collimator tool with a base plate and two upright walls. Start with a rectangular base plate measuring 70mm in length, 32mm in width, and 2mm in thickness. In the center of this base, create a circular cutout with a diameter of 20.8mm. Construct two identical side walls, each 2mm thick and 29mm high. Th...
thickness = 2; length = 70; width = 32; bottomHolePercent = 65; height = width * 0.75 + 5; incut = width; circleDiameter = width * bottomHolePercent / 100; linear_extrude(height = thickness) difference() { square([length,width]); translate([length/2,width/2]) scale([length/width,1]) ci...
glb/cad_25f112106a4c.glb
Create a drill bit holder by starting with a rectangular base measuring 15mm wide, 60mm long, and 15mm high. Center this base on the X and Z axes. To create the main cavity, carve a cylindrical hole with a diameter of 5mm through the block. This hole must be angled at 45 degrees relative to the base's length, extending...
bit_angle = 45; bit_diameter = 5; module holder(diameter, angle){ $fn=64; module notch(){ rotate([0,0,45]) translate([-.5,-.5,-200]) cube([1,1,500]); } difference(){ difference(){ union(){ difference(){ translate([0,-30,0]) cube([15,60,15]); translate([7.5,-30,0]) notch(); tr...
glb/cad_f66b6fb50516.glb
Create a rounded cube with a total side length of 22mm and a corner radius of 2.5mm. Engrave the following words into five of the cube's faces using letters that are 5mm high and 1mm deep, ensuring each word is centered on its respective face: "Front" on the front face, "Right" on the right face, "Left" on the left fac...
use <WriteScad/write.scad> $fn=64; Size = 22; Rad = 2.5; Letters = 5; TN = 1; module dice(size, rad) { minkowski() { translate([rad,rad,rad]) cube([size-2*rad,size-2*rad,size-2*rad]); sphere(r=rad); } } difference() { dice(Size,Rad); translate([Size/2,0,Size/2]) rotate([90,0,0]...
glb/cad_4930fde9d6df.glb
Create a 3D model of a snowman. Start with a thin circular base 5mm thick with a radius of 25mm. Position a large sphere with a radius of 22mm centered 20mm above the base to form the lower body. Place three small spheres with a radius of 3mm randomly distributed across the surface of this lower body to serve as button...
linear_extrude(height = 5) circle(25); difference() { translate([0,0,20]) sphere(22); translate([0,0,-5])linear_extrude(height = 5) circle(25); } seed=42; buttonOffsets = rands(0,10,3); for(i = [0:2]) { translate([0,0,20]) rotate([0, 32 * (i+1) + 20 + buttonOffsets[i], buttonOffsets[i]]) translate([0,0,21]) sphere...
glb/cad_bacb68288efe.glb
Create a parametric drill bit stand with a total width of 140mm. The stand consists of four rows of holes, each row containing a series of vertical slots for drill bits of varying diameters. For each slot, create a rectangular block with a height of 8mm for the first row, increasing by approximately 4.95mm (7/sqrt(2))...
include <DroidSans.scad> sizes = [ [ 1.5, 1.7, 2, 2.2, 2.3, 2.5, 3, 3.2, 3.4, 3.5, 4, ], [ 4.2, 4.5, 4.6, 4.7, 4.8, 4.9, 5, 5.1, 5.2, 5.5, ], [ 5.7, 6, 6.1, 6.2, 6.5, 6.7, 6.8, 7, 7.5, 8, ], [ 8.5, 8.6, 9, 9.5, 9.8, 10, 10.1, 10.4 ], ]; sizes_max = 10.4; total_width = 140; row_y_offsets = [ 0, sizes[0][len(siz...
glb/cad_72bb696a18f7.glb
Create a joint for a geometric coffee table by starting with a sphere of radius 9mm. From this sphere, remove material to create three intersecting cylindrical holes, each with a length of 17mm and a radius of 4.4mm. The first hole is oriented vertically, tilted at an angle of 5.1 degrees. The other two holes are diago...
echo(str("Distancia de la pata = ", 2*(long/2 + skin_thickness*3.5) )); skin_thickness = 1.6; r_tubos = 4.4; long = 17; ang_vertical = 5.1; ang_diagonal_y = 45.5; ang_diagonal_z = 32.2; lado_cubo = 2* (r_tubos + skin_thickness ); union(){ translate([0, 0, -4.5]) sphere(r=9); difference(){ pie_mesa_girado(); tran...
glb/cad_5cfd2e409a5e.glb
Create a geometric joint for a coffee table by starting with a central sphere with a radius of 10.4mm. From this core, create three distinct sets of cylindrical channels to accommodate rods with a radius of 4.4mm. First, place a vertical cylinder with a radius of 5.6mm and a height of 17mm, centered on the sphere and t...
skin_thickness = 1.6; r_tubos = 4.4; long = 17; ang_vertical = 5.1; ang_diagonal_y = 45.5; ang_diagonal_z = 32.2; lado_cubo = 20; mesa(); module mesa(){ difference(){ union(){ translate([0, 0, 0]) sphere(r=10.4); vertical_skin(); diagonal_skin(); lateral_skin(); } union(){ vertical(); ...
glb/cad_f3d5bbede53d.glb
Create a geometric joint for a coffee table. The joint is based on a central core consisting of two intersecting cylinders, each with a radius of 4.25mm and a length of 15mm, oriented 180 degrees from each other. Encase these cylinders in a skin with a thickness of 1.6mm. This skin should form a larger cylinder with a ...
skin_thickness = 1.6; r_tubos = 4.25; long = 15; ang_cruce_vertical = 84.2; ang_cruce_horizontal = 98.5; lado_cubo = 20; difference(){ cruzado_1(ang_cruce_horizontal); translate([0, 0, -r_tubos]) { #cylinder(r=3, h=4, center=true); } } translate([long+2, 2*long, 0]) cruzado_1(ang_cruce_vertical); mirror([1, 0, 0]) ...
glb/cad_27efd0ab75f7.glb
Create a headlamp diffuser consisting of a cylindrical body and an attached clip. Start by creating a hollow cylinder with an inner diameter of 38mm, an outer diameter of 43.5mm, and a wall thickness of 1.5mm. The main body is composed of three stacked sections: a base 4mm high, a shader section 6mm high, and a holder ...
inner_d = 38; outer_d = 43.5; wall_thickness = 1.5; diaphragm_thickness = 0.8; cable_thickness = 4; base_h = 4; shader_h = 6; holder_h = 16; epsilon = 0.01; module diaphragm() { cylinder(h=diaphragm_thickness, r = outer_d/2 + wall_thickness-epsilon); }; module shader() { difference() { cylinder(r=outer_d/2 + wa...
glb/cad_1863e1465795.glb
Create a decorative arrow head ornament. Start by constructing a central cylinder with a height of 12mm, a radius of 5mm, and a high facet resolution for smoothness. Drill a hole through the center of this cylinder along its longitudinal axis with a radius of 1.5mm. To form the head of the arrow, attach two square-base...
hole_size = 1.5; difference() { translate([0,0,12]) cylinder(12,2.5,4, center = true, $fn=100); translate([0,0,15]) rotate([90,0,90]) cylinder (10, hole_size,hole_size, center = true, $fn=100); } apex_point_top_pyramid = 10; rotate(a=[0,0,45]) polyhedron( points=[ [5,5,0],[5,-5,0],[-5,-5,0],[-5,5,0], ...
glb/cad_95819703ae7f.glb
Create a match case by starting with a solid rectangular outer block measuring 38mm wide, 19mm thick, and 59.2mm high. Hollow out the center of this block to create an internal cavity measuring 36mm wide, 17mm thick, and 61.2mm high, leaving a wall thickness of 1mm on all sides and the bottom. On the right side wall,...
width=36; thickness=17; height=58.2; shell=1; slot=thickness/1.5; difference(){ translate([-(width+shell*2)/2,-(thickness+shell*2)/2,0]){ cube([width+shell*2, thickness+shell*2, height+shell]); } translate([-width/2,-thickness/2,shell]){ cube([width, thickness, height+shell*2]); } translate([wid...
glb/cad_d7375d1b2810.glb
Create a keyboard foot for a robotic keyboard hinge. The main body is a flat plate 14.2mm wide and 17mm long. At one end, create a rounded protrusion that transitions from a circle with a 6.6mm radius to a circle with a 2.2mm radius at the far end, connected by a hull. At the starting end of the foot, center a vertic...
bearing_diameter = 9 ; bearing_width = 4 ; m4_diamter = 4 ; main_hole_diameter = 5 ; servo_horn_diameter = 4.5 ; horn_height = 3.2 ; foot_length = 17 ; foot_width = 14.2 ; layer_height = 0.3 * 2 ; $fn = 100 ; rotate([0,0,180]){ color([0.5,0.5,0.5]) foot(); support(); } e_step_correct = 1.02...
glb/cad_2ad6b17e9b13.glb
Create an Extruder LED Strip Mount. Start with a main rectangular mounting plate 60mm wide, 10mm deep, and 12.5mm high. The plate features two vertical mounting lugs spaced 40mm apart, each containing a 2.7mm diameter hole for M3 screws. On the front face of the plate, center a text inscription with a font size of 8mm...
$fn = 25; TEXT="Your Text"; FONT="Arial:style=bold"; FONTSIZE=8; X = 60; XB = 40; Y = 10; YF = 14.5; Z = 12.5; SD = 2.7; OFF = 3; RND = 1.5; LW = 10; LD = 3; WX = 5; WY = 5; WZ = 12; WD = 2; module rounded(size, radius, center) { size = (size[0] == undef) ? [size, size, size] : size; resize(size) if (center)...
glb/cad_6d1c8bfbfcf1.glb
Create a Phone Charging Hangar consisting of a flat base and a vertical support hook. Start by creating a rectangular base platform 60mm wide, 30mm deep, and 5mm thick. Hollow out the center of this platform to create a recessed tray that is 58mm wide, 28mm deep, and 3mm thick, leaving a 1mm border around the edges. At...
translate([0,0,-5]) cube(size = [1,20,30], center = true); difference(){ translate([0,0,17]) rotate([90,0,90]) cylinder(h = 1, r = 15, center = true); translate([0,0,17]) rotate([90,0,90]) cylinder(h = 1, r = 10, center = true); } difference(){ translate([14,0,-20]) rotate([0,90,0]) cube(size = [5,60,30], center = t...
glb/cad_00bd236448d9.glb
Create a parametric sphere with a radius of 10mm. Ensure the geometry is rendered with high resolution, using at least 90 facets to ensure a smooth, circular surface. The sphere should be centered on the origin of the coordinate system.
render_quality = 90; sphereradius = 10; $fn = render_quality+0; shape = 1; if (shape == 1) { sphere(r=sphereradius, center=true); } else if (shape == 2) { cube([20,20,20],center=true); } else if (shape == 3) { scale([1,1,2]) sphere(r=sphereradius, center=true); }
glb/cad_31c45cbfaadc.glb
Create a Recursive Sierpinski Tetrahedron fractal at a recursion depth of two. Start with a base regular tetrahedron defined by vertices at [1/√3, 0, 0], [-1/(2√3), 1/2, 0], [-1/(2√3), -1/2, 0], and [0, 0, √(2/3)]. To achieve the second level of recursion, duplicate this tetrahedron four times. Position these four smal...
TETRA_POINTS = [ [1/sqrt(3), 0, 0], [-1/(2*sqrt(3)), 1/2, 0], [-1/(2*sqrt(3)), -1/2, 0], [0, 0, sqrt(2/3)] ]; module tetra() { polyhedron( points=TETRA_POINTS, triangles=[ [0, 1, 2], [2, 1, 3], [0, 2, 3], [0, 3, 1] ]); } module si...
glb/cad_c9d3c135e383.glb
Create a Parking Disc model by first constructing a rectangular base measuring 100mm in length, 2mm in width, and 1mm in height. On the top surface of this base, add the raised 3D text "Carbage Runner" with a character height of 10mm and a thickness of 3mm. Position the text so that it starts at the coordinates (74, 10...
use <Write.scad>; translate (v=[-2,0,0]) cube (size=[100, 2, 1]); color ("blue") write("Carbage Runner",h=10,t=3,[0,0,0],48.5);
glb/cad_b3afa5f9152c.glb
Create a Parking Disc consisting of a thin, curved circular band. Start by creating a hollow cylinder with an outer radius of 100mm and an inner radius of 98mm, giving the wall a thickness of 2mm. Set the height of this ring to 1mm. To form the final shape, center a cube with side lengths of 220mm and a height of 4mm o...
module pipe (length, width1, width2, thickness) { difference () { cylinder (h=length, r1=width1, r2=width2); translate([0,0,-0.05*length]) cylinder (h=1.1*length, r1=width1-thickness, r2=width2-thickness); } } module web () { for ( i = [0 : 8] ) { pipe (0.20, i*3, i*3, 0.75); } } $fa=1; use <Write.scad>; module ...
glb/cad_dea24a327e11.glb
Create an iron desk level leg fixator consisting of a rectangular base plate and a series of cylindrical cutouts. Start with a rectangular block that is 190mm long, 5mm thick, and 20mm wide. Along the length of this block, create five circular holes, each with a diameter of 20mm and a depth that penetrates the full 2...
$fn=64; L=190; H=5; td=20; xd=38; dd=25; N=5; w=20; difference(){ cube([H,L,w]); translate([-0.1,dd/2,w/2])rotate([0,90,0]){ cylinder(r=3,h=H+0.2); translate([0,0,H-2])cylinder(r1=0,r2=5,h=2.5); } translate([-0.1,L-dd/2,w/2])rotate([0,90,0]){ cylinder(r=3,h=H+0.2); ...
glb/cad_63c67550e5d5.glb
Create a 3D printer test model consisting of 20 randomly positioned rectangular prisms of varying sizes. For each of the 20 elements, randomly determine a center position within a 140mm square area (ranging from -70mm to 70mm on both the X and Y axes). Assign each prism a random width and depth between 0mm and 17mm, an...
seed=1233253; NUM = 20; c = rands (-70, 70, 3 * NUM); size = rands (0, 17, 2 * NUM); for (i=[0 : NUM-1]) { if (size[i] > 10 && size[i+1] > 10 && ((c[i+2]+70)/3) > 5) { translate ([c[i], c[i+1], 0]) cube ([size[i], size[i+1], 3]); } else { translate ([c[i], c[i+1], 0]) cube ([size[i], size[i+1], (c[i+2]+70)...
glb/cad_9029c8c5ea2d.glb
Create a DEC Alpha Multia Drive Cover. Start with a main rectangular base measuring 47mm wide, 123.5mm long, and 7mm thick. On the top face, centered along the length, add a semi-cylindrical protrusion with a radius of 45mm that extends across the width of the base. Hollow out the center of the base by removing a rec...
length = 123.5; bezel_radius = 45; bezel_radius2 = 32; $fn=200; difference() { union() { translate([0,0,0]) cube([47,length,7]); difference() { translate([23.5,length+6,-bezel_radius+11]) rotate([90,0,0]) cylinder(h=length+6, r=bezel_radius); translate([-25,-1,-80]) cube([1...
glb/cad_99e9dcd556e7.glb
Create a DEC Alpha Multia Drive Cover. Start with a base rectangular block measuring 47mm wide, 61mm long, and 7mm thick. On the top face, center a semi-cylindrical protrusion that spans the full 61mm length; this protrusion should have a radius of 45mm and be integrated into the block. Hollow out the center of the b...
length = 61; bezel_radius = 45; bezel_radius2 = 32; $fn=200; difference() { union() { translate([0,0,0]) cube([47,length,7]); difference() { translate([23.5,length+6,-bezel_radius+11]) rotate([90,0,0]) cylinder(h=length+6, r=bezel_radius); translate([-25,-1,-80]) cube([100,...
glb/cad_8f70663e084f.glb