Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Wire Wrap Spool Adapter consisting of a hollowed cylindrical body with a total height of 34.75mm and an outer diameter of 25mm. The main body is a thick-walled tube with a central vertical hole 6.25mm in diameter running through its center. The interior of the cylinder is hollowed out, leaving a wall thickness...
shaftDiameter = 6.25/2; spoolShaftDiameter = 25/2; spoolWidth = 34.75; wallWidth = 1; module spoolHolder() { union() { difference() { cylinder(h=spoolWidth, r=spoolShaftDiameter, center=false, $fn=40); union() { cylinder(h=spoolWidth, r=shaftDiameter, center=false, $fn=80); transla...
glb/cad_8f98290db341.glb
Create a desiccant box consisting of three separate parts: a pan, a lid, and a main box. All parts share a base footprint of 100mm width by 150mm depth with a wall thickness of 3.5mm. First, create the pan as a shallow open rectangular tray with a height of 10mm. Hollow out the center, leaving the 3.5mm walls. On the ...
width = 100; depth = 150; boxHeight = 30; panHeight = 10; lidHeight = 8; wall = 3.5; scivSize = 3; pan(width,depth,panHeight,wall); translate([width+1,0,0]) lid(width,depth,lidHeight,wall); translate([2*width+5,0,0]) Box(width,depth,boxHeight,wall); module pan(width, depth, height, wall){ difference(){ ...
glb/cad_e15859650347.glb
Create a FrSky D4R-II Generic Mount for a receiver. Start with a square base plate measuring 36mm by 36mm with a thickness of 1.5mm. At the four corners of this base, create four mounting holes with a radius of 1.5mm. On top of the base, construct a central rectangular housing to hold the receiver. This housing should...
base_size = 36; hole_spacing = 30.5; mounting_hole_radius = 1.5; base_thickness = 1.5; receiver_width = 23; receiver_length = 23; receiver_height = 7.5; wall_thickness = 1; zip_tie_center = 18; zip_tie_length = 4; zip_tie_width = 2; bevel_radius = 1; $fs = 0.05; module bevel(r, l) { translate([-r, -r, 0]) { ...
glb/cad_f91b47304cbb.glb
Create a Marble Decisionmaker consisting of a main outer box and internal guiding ramps. The outer box is a cube measuring 90mm in width, 90mm in depth, and 93mm in height. Hollow out the center of this box to accommodate the internal mechanisms, leaving a wall thickness of 2mm. Inside the box, construct a series of r...
marble_diameter = 16; clearance = 1; box_width = 90; box_depth = 90; box_height= 93; ramp_angle = 2; ramp_sin = sin(ramp_angle); tray_width = 40; tray_height = marble_diameter+clearance; tray_depth = 30; thickness = 2; text_size = 10; text_x_offset = 5; text_height = 1; cyl_res = 40; Delta = 0.1; module internals()...
glb/cad_03f7b170a7d1.glb
Create a magazine stand by starting with a solid rectangular block. The block should have a total width of 69mm (magsize_length + 2mm gap on each side) and a height determined by the tilt of the slots. Subtract six identical rectangular slots from the top of the block to create holders for magazines. Each slot must b...
mags = 6; magsize_length = 66; magsize_width = 25; magsize_height = 18; mag_gap = 2; mag_inclination_deg = 15; holder_base_height = 1.5; complete_height = holder_base_height + magsize_height; hole_maker = 0.01; maghole_points = [[0,0],[magsize_width,0],[magsize_width,magsize_length],[0,magsize_length]]; maghole_po...
glb/cad_98c8f5015cb3.glb
Create a hollow Christmas ornament by constructing a large sphere with a radius of 25mm and a facet resolution of 48, then removing a smaller concentric sphere with a radius of 23mm to create a wall thickness of 2mm. To add a hanging loop, place a small ring at the top of the ornament, centered at coordinates [0, 0, 26...
difference () { union() { sphere (r=25,$fn=48); translate ([0,0,26]) rotate ([90,0,0]) difference () { cylinder (r=6,center=true,h=2); cylinder (r= 4,center =true,h=2); } } sphere (r=23,$fn=48); }
glb/cad_ad278c356a0e.glb
Create a hollow Christmas ornament by constructing a sphere with an outer radius of 25mm and an inner radius of 24mm, resulting in a wall thickness of 1mm. Use a facet resolution of 48 for the spheres. To decorate the surface, create 20 star-shaped holes. Each star is defined by a 10-point polygon with vertices based ...
l1 = 4; l2 = 2; xf1 = 0; yf1 = l1 ; xf2 = l2 * cos(54); yf2 = l2 * sin(54); xf3 = l1 * cos(18); yf3 = l1 * sin(18); xf4 = l2 * cos(18); yf4 = - l2 * sin(18); xf5 = l1 * cos(54); yf5 = - l1 * sin(54); xf6 = 0; yf6 =- l2; xf7 = -l1 * sin(36); yf7 = -l1 * cos(36); xf8 = -l2 * cos(18); yf8 = -l2 * sin(18); xf9 = -l1 * c...
glb/cad_f964cd5b294d.glb
Create a hollow Christmas ornament by constructing a sphere with an outer radius of 25mm and an inner radius of 24mm, resulting in a wall thickness of 1mm. Use a facet resolution of 48 for the spheres. At the top of the ornament, add a hanging connector. This connector is formed by creating a cylinder with a radius of...
module hanger(th,rrs) { difference() { translate ([0,0,th]) rotate ([90,0,0]) difference () { cylinder (r=6,center=true,h=2); cylinder (r= 4,center =true,h=3); } sphere (r=rrs,center=true,$fn=48); } } l1 = 4; l2 = 2; xf1 = 0; yf1 = l1 ; xf2 = l2 * cos(54); yf2 = l2 * sin(54); xf3 = l1 * cos(18); yf3 = l1 * sin(18);...
glb/cad_37efd219235a.glb
Create an EMAX Nighthawk 250 arm protector. Start by creating a main cylindrical guard with a diameter of 33.2mm and a height of 24.35mm. Hollow out the center of this cylinder by removing a combined shape consisting of a cylinder with a diameter of 28.2mm and a height of 20mm, and a rectangular block measuring 24.35mm...
$fn = 48; arm_diameter = 28.20; arm_width = 24.35; arm_thickness = 4.35; guard_thickness = 2.5; guard_bottom_thickness = guard_thickness; guard_height = arm_thickness + guard_bottom_thickness + 2; guard_clearance_coeff = 1.01; module arm(thickness=arm_thickness) { cylinder(d=arm_diameter, h=thickness, center=t...
glb/cad_610688a7720d.glb
Create a Stitch Bow Floss Holder with a uniform thickness of 1.8mm. Start with a central rectangular bar 5mm wide and 141mm long. At both ends of this bar, add a transition section 5mm deep that flares out from the 5mm bar width to a block width of 13.9mm. At the furthest extremity of each end, place a rounded rectangu...
thickness = 1.8; bar_width = 5.0; bar_len = 141.0; twain_len = 5.0; block_width = 13.9; block_len = 9.5; opening_len = 5.0; total_len = bar_len + twain_len * 2 + block_len * 2; label_len = 55.0; label_width = 10.5; label_offset = 5.0; label_conn = 15.0; label_gap = 1.5; label_hole_...
glb/cad_ea99f8693de7.glb
Create a screwdriver stand by starting with a solid rectangular block 50mm high. The block's width is determined by 8 columns of holes with a 20mm center-to-center spacing, and its depth is determined by 1 row of holes with a 20mm center-to-center spacing, leaving a 2mm gap between the outer holes and the block edges. ...
rows=1; cols=8; height=50; diameter=16; separator = 2; banner_text = "Phillips Slotted"; font = "Courier New:style=Bold"; font_size = 10; base_height = 1; bevel_height = 2; bevel_width = 2; text_depth = 1; epsilon = 0.01; cylinder_fragments = 50; bevel_diameter = diameter+2*bevel_width; total_width=cols*beve...
glb/cad_9645ef77dc25.glb
Create a diamond-shaped object by joining two heptagonal pyramids base-to-base. First, construct a heptagonal pyramid with a height of 10mm and a base radius of 10mm. Then, create a second heptagonal pyramid with a height of 5mm and a base radius of 10mm. Position the second pyramid so that its base is perfectly aligne...
h=15; f=7; color([0.9,0,0]) union() { cylinder(r1=(2/3)*h,r2=0,h=(2/3)*h,$fn=f); rotate([180,0,0]) cylinder(r1=(2/3)*h,r2=(1/3)*h,h=(1/3)*h,$fn=f); }
glb/cad_2ed6dcad3fb1.glb
Create a button assembly consisting of a main housing and a cylindrical plunger. For the housing, start with a base cylinder 12mm high with a radius of 7.5mm. On top of this, add a truncated cone (frustum) 4mm high that tapers from the 7.5mm radius base to a top radius of 9.5mm. Integrate a rectangular holder into the ...
$fn = 70; difference(){ union(){ cylinder(h=4,r=19/2,r2=15/2); translate(v=[0,0,-12]){ cylinder(h=12,r=15/2,r2=15/2);} translate(v=[-2.5,5,-18.9]){ cube([5,2.5,7], center=false);} translate(v=[-2.5,-4.5,-21]){ cube([5,12,3], center=false);} difference(){ translate(v=[18,0,-21]){ cylinder(h=21,r=9.9/2,r2=9.9/2);} rot...
glb/cad_669212e4cf6b.glb
Create a Large Wheel for a Truckbot. Start by constructing a tiered centerpiece consisting of three stacked cylinders: a bottom cylinder with a radius of 30mm and height of 10mm, a middle cylinder with a radius of 22mm and height of 16mm, and a top cylinder with a radius of 16mm and height of 20mm. Cut a square hole wi...
centerpiece(); WHEELRADIUS = 66; WHEELWIDTH = 20; NUMNUBSPERLAYER = 40; NUMNUBLAYERS = 5; NUMSPOKES = 5; NUBHEIGHT = 4; TREADSIZE = 20; M_PI = 3.14159265; WHEELCIRCUMFERENCE = WHEELRADIUS * 2 * M_PI; NUBLENGTH = WHEELWIDTH / NUMNUBLAYERS; NUBWIDTH = WHEELCIRCUMFERENCE / (2 * NUMNUBSPERLAYER); ONEROTATE = 360 / NUMNUB...
glb/cad_3212ec1fb0f5.glb
Create a star tree topper consisting of a central star and two securing rings. Construct the star by layering two 10-pointed stars centered on the same axis, each with a thickness of 1mm; the first star should have a ray length of 10mm and the second a ray length of 15mm, both with a ray width of 3mm. Position two ring...
FRAGMENTS=40; module drawStar(points, length, width, height) { linear_extrude(height=height, center = true, convexity = 10, twist = 0) for ( i = [0 : points] ) { rotate( [0,0,i*(360/points)]) polygon(points=[[-1*width/2,0],[0,length],[width/2,0]], paths=[[0,1,2,0]]); } } module drawStarWithTwoRayLengths(point...
glb/cad_f19f0a3dd731.glb
Create a flexible helical coupling with a total outer diameter of 20mm. Start by constructing a top cylindrical connector 10mm in length with a centered longitudinal hole 10mm in diameter. Pierce this top cylinder with two perpendicular cross-holes, each 3mm in diameter, passing through the center to accommodate fasten...
coupling_outer_dia = 20; hole_dia_top = 10; length_top = 10; hole_dia_bottom = 6; length_bottom = 10; helix_length = 10; screw_diameter = 3; $fn = 100; translate([0,0,helix_length+length_top/2]) rod_connector(length_top, coupling_outer_dia, hole_dia_top, screw_diameter); translate([0,0,-length_bottom/2]) rod_c...
glb/cad_ce6bc80d48dd.glb
Create a proximity sensor bracket. Start with a rectangular base plate measuring 40mm by 11mm with a thickness of 6mm. Center two 3.5mm diameter screw holes through this plate, spaced 32mm apart. Extend a vertical wall from one end of the base plate, 20mm in height and 6mm thick. At the top of this vertical section, c...
screw3 = 3.5; fan_space = 32; mount_width = fan_space + 8; sensord = 18.5; sensornut = 28; sensormnt = 5 + sensord + sensornut/2; sensort = 6; offset = 20; shiftit = 5; offset_adj = mount_width/shiftit; offset_width = 10; thickness = 6; s_offset = 8; bracket(); module bracket(flat=0) { mount(flat); vertical(); ...
glb/cad_41904e7e0d4d.glb
Create a bar clamp replacement part with overall dimensions of 30mm x 26mm x 26mm and rounded corners with a 5mm radius. Through the center of the block, create two intersecting cylindrical holes with a diameter of 8.2mm: one running along the X-axis and one along the Y-axis. At each of the four corners, create a h...
include <rozmery.scad>; include <funkce.scad>; $fn = 80; rozmery = [30,26,26]; posun_tycy = m8/2+0.15; mezera = 0.5; motor_vyrez = [7,13,13]; motor = false; spojka(generuj = 0,rotace = [180,0,0], motor = motor, pozice = [0,rozmery[1],0+(rozmery[2]/2)-(mezera/2+posun_tycy)]); spojka(generuj = 1, pozice = [rozmer...
glb/cad_b35f86f8bd40.glb
Create a battery cap and memory card holder. The main body is a rectangular sleeve with outer dimensions of 47.36mm in length, 34.76mm in width, and a total height of approximately 20.1mm. Inside the sleeve, create a central battery cavity measuring 45.1mm by 32.5mm with a height of 14.75mm, positioned 1mm from the b...
Batt_H = 14.75; Batt_W = 32.5; Batt_L = 45.1; SDl = 32.5; SDw = 23.8; SDh = 2.25; uSDl = 15; uSDw = 11.5; uSDh = 1.25; wx = 1.13; wy = 1.13; wz = 1; offset = 17; eps = 0.3; module nb10l(Batt_H = 14.75){ difference(){ union(){ hull(){ translate([0.5,0.5,0])cube([Batt_L+2*wx-1,Batt...
glb/cad_dbecd499e5f3.glb
Create a Spiked Ball by arranging multiple geometric primitives around a central point. Start by placing a series of small spheres, each with a radius of 1.5mm, positioned at offsets of 3.5mm from the center along the X, Y, and Z axes in both positive and negative directions. To create the spikes, add cylinders with ...
{rotate(-45,0,0) for(i = [ [45, 0, 0], [-45, 0, 0], [225, 0, 0], [-225, 0, 0], [-90, 0, 0], [90, 0, 0], [0, 0, 0], [180,0,0]]) rotate(i){ rotate([180,0,0]){ translate([0,0,2.25]){ cylinder(5,5,0); } ...
glb/cad_2485cc773d0d.glb
Create a camera bracket for an FPV camera. Start with a thin base plate that is 32mm wide, 32mm deep, and 1mm thick, with rounded corners of 2mm radius. Cut a rectangular slot out of the center of the base plate measuring 9.5mm wide by 9.6mm deep. Add four holder pads and four camera pads to the corners of the plate. ...
$fn= 50; camera_width=32; camera_width_fixing_hole=27; holder_width_fixing_hole=18; hole_dia=1.8; holder_pad_offset=7; holder_pad_heigth=6; camera_pad_heigth=holder_pad_heigth+1.5; module roundedBox(size, radius, sidesonly) { rot = [ [0,0,0], [90,0,90], [90,90,0] ]; if (sidesonly) { cube(size - [2*radius,0,0], tr...
glb/cad_1064b76f76a5.glb
Create a Quick Backlash Calibration Method tool consisting of a grid of small, thin-walled geometric patterns. The overall structure is composed of 10 horizontal rows, with each row containing 10 individual sample units spaced 10mm apart. Each sample unit is a composite of several thin rectangular segments and polygon...
Rows = 10; Backlashstartvalue = 0.00; wallheight = 0.35; wallthickness = 0.85; module unit(sx, sy, bl) { translate([(sx+0), (sy+0), 0]) cube([3, wallthickness, wallheight], center=false); translate([(sx+0), (sy+0), 0]) cube([wallthickness, 1, wallheight], center=false); linear_extrude(...
glb/cad_6eeed101c14c.glb
Create a magnetic screwdriver holder consisting of a rectangular base block with five integrated slots for tools. The main block has a width of 20mm and a depth of 5mm. For each of the five tool positions, create a cutout to accommodate a screwdriver. Each cutout consists of two parts: a cylindrical shaft with a diam...
Part = 0; ToolNumber = 5; ToolBodyLength = 130; ToolBodyDiameter = 3; ToolHandleLength = 100; ToolHandleBaseDiameter = 15; ToolHandleHeadDiameter = 20; MagnetDiameter = 7; MagnetThickness = 3; HolderWidth = 20; HolderDepth = 5; ScrewDiameter = 4; HolderOffset = 10+ToolHandleHeadDiameter; MinThickness = (ToolHandleB...
glb/cad_7d0688ccbf69.glb
Create a Trivial Pursuit Token by constructing a hollow cylinder with an outer radius of 15mm and a height of 12mm. Remove the center of this cylinder using a smaller concentric cylinder with a radius of 14mm and a height of 12mm, positioned 2mm from the base to leave a solid bottom floor. Divide the interior of the cy...
union () { difference () { cylinder (h=12, r=15, $fn=100); translate([0,0,2]) color([1,0,0]) cylinder (h=12, r=14, $fn=100); } translate ([0,0,6]) cube ([1,29,11], center = true); translate ([0,0,6]) rotate(60,0,0) cube ([1,29,11], center = true); translate ([0,0,6]) rotate(-60,0,0) cube ([1,29,11], center = true); }
glb/cad_f22bfb5c7dbe.glb
Create a cabinet box with an outer shell and a hollow interior. The outer shell is a rectangular block measuring 53.8mm in length, 180.8mm in width, and 71.35mm in height. The walls of this shell are 1.5mm thick. Hollow out the center of the block to create a storage cavity measuring 49.8mm by 177.8mm by 69.85mm. The ...
FN = 200; THK = 1.5; L = 50.8-2*THK; W = 177.8; H = 69.85; H_os = 44.45; R = 2; R_O = R+THK; hole_os_h = H-9.525; hole_os_v = 69.85; hole_d = 3.175; cover(); module cover() { difference() { cover_body(); translate([THK,THK,THK+.1]) S5_body(); translate([0,0,H_os]) rota...
glb/cad_78722a4b8cfc.glb
Create a filament spool holder consisting of a central cylindrical hub and a wider outer flange. Start by creating a main cylinder with a radius of 25.5mm and a height of 10mm, centered on the Z-axis. Add a thinner, wider flange at the base with a radius of 30mm and a height of 3.5mm, centered at Z=1.75mm. Pierce the...
difference(){ union(){ translate([0,0,5]) cylinder(h = 10, r=25.5,center=true); translate([0,0,1.75]) cylinder(h = 3.5, r=30,center=true); } union(){ cylinder(h = 40, r=6,center=true); translate([0,0,3.4]) cylinder(h = 7, r=11,center=true); translate([0,30,0]) cylinder(h = 30, r=17,center=true); rotate(a=[0,0,12...
glb/cad_41455492e289.glb
Create a Bicycle Helmet Mirror Mount consisting of several interlocking geometric components. First, create the Azimuth Mount as a cylinder with a diameter of 12mm and a length of 14mm. Bore a central hole through its length with a diameter of 2.01mm (Clear3_48). Add a mirror shaft hole with a diameter of 3.6mm and a...
include </home/ed/Thing-O-Matic/lib/MCAD/units.scad> include </home/ed/Thing-O-Matic/lib/MCAD/boxes.scad> include </home/ed/Thing-O-Matic/lib/visibone_colors.scad> Layout = "Build"; Examine = "None"; ThreadThick = 0.33; ThreadWT = 2.0; ThreadWidth = ThreadThick * ThreadWT; HoleWindage = 0; BearingWidth = 4*ThreadW...
glb/cad_ce099e765f78.glb
Create a musical adapter part consisting of three stacked concentric sections. Start with a base cylinder that is 5mm high with an outer diameter of 32.4mm and a centered vertical hole 28.57mm in diameter. Above this base, add a conical transition section 8mm high that tapers from the base's 32.4mm outer diameter down ...
part="holder"; clearance=0.4; bottleID=25.07; bottleOD=27.4; bottlePitch=2.7; bottleHeight=9; bottleAngle=2; threadLen=15; holderOD=bottleOD+5; holderOR=holderOD/2; funnelOD=100; funnelWall=2; threadHeight = bottlePitch/3; echo("thread height ",threadHeight); echo("thread depth ",(bottleOD-bottleID)/2); module bot...
glb/cad_94bde5316b57.glb
Create a symmetric taijitu symbol with a total height of 1mm. Start by creating a large central disk with a radius of 10mm and a height of 1mm. Cut this disk in half along the Y-axis to leave a semi-circle on one side. Within this remaining semi-circle, remove a smaller semi-circular area with a radius of 5mm centered ...
$fn=75; module circels(){ union(){ translate([-5, 0, 0]){ color("white"){ cylinder(h=1, r=5); } } translate([5, 0, 0]){ color("white"){ cylinder(h=1, r=5); } } } } module quarter(){ difference(){ color("black"){ cylinder(h=1, r=10); } translate([-10,-10,-2]){ cube([20,10,4]); } } } module half(){ difference(){ quarter(...
glb/cad_3f0b357ac5d7.glb
Create a printable cleat for rope. Start with a base consisting of a flat, elliptical disc 20mm wide and 4mm thick, centered at the bottom. Above this base, place a central cylindrical pillar with a radius of 8mm and a height of 12mm. On top of the pillar, construct the main body of the cleat. This part is a symmetric...
module hole( l ) { difference() { rotate( [ 90, 0, 0 ] ) cylinder( r = 6, h = l*1.5, center = true ); for ( a = [ -1, +1 ] ) translate( [ 0, a*l/2, 0 ] ) rotate( [ 90, 0, 0 ] ) rotate_extrude() translate( [ 6, 0 ] ) circle( r = 3 ); rotate( [ 90, 0, 0 ] ) difference() { cylinder( r = 8, h = l, center = tru...
glb/cad_aeff073e79de.glb
Create a parametric battery holder for two batteries. Each battery cell is a cylinder with a diameter of 14mm and a height of 50mm. The cells are arranged in a row with a gap of 1.8mm between them. The overall structure is enclosed by walls with a thickness of 1.6mm. For each battery slot, create a cylindrical cavity ...
BatteryDiameter = 14; BatteryHeight = 50; BatteryNumber = 2; BatteryGap = 1.8; WallThickness = 1.6; SpringThickness = 1.2; WireHoleWidth = 2.5; WireHoleHeight = 2; ScrewDiameter = 2.6; ClampingCollarWidth = 3.2; ClampingCollarHeight = 1.5; module batteryCase(batteryDiameter, batteryHeight, number=4) { translate([...
glb/cad_6aec3083beb2.glb
Create a Parametric Micro Tools Holder consisting of a series of tool rows and a supporting base. For each row, create a sequence of 6 octagonal prisms (8-facet cylinders) with a diameter of 8.92mm (4.52mm tool diameter plus 2.4mm wall thickness on each side) and a height of 12mm. Rotate each prism by 22.5 degrees. P...
Part = 0; WarpingPrevention = 1; ToolsDiameter = 4.52; ToolsByRow = 6; RowNumber = 8; RowOffset = 13; HolderHeight = 12; HolderBottomThickness = 0.6; WallThickness = 2.4; ToolsExtraOffset = 3; AxisDiameter = 3; Spacing = 0.1; DippingAngle = acos((ToolsDiameter/2+WallThickness)/(RowOffset/2)); BoxWidth = Tool...
glb/cad_a2ba6139e17c.glb
Create a Prusa i3 spool mount frame designed for a 4mm thick frame. Start by constructing a main body consisting of a 14mm by 20mm by 30mm rectangular block. Attach a second rectangular block to this body, measuring 30mm by 20mm by 10mm, positioned at a 45-degree angle relative to the first block's X-axis, starting 40m...
translate([10,47,0]) rotate(a=90, v=[1,0,0]) difference() { union() { cube([14,20,30]); translate([-10,0,40]) rotate([0,45,0]) cube([30,20,10]); } union() { translate([4.5,0,0]) cube([5,30,24]); translate([14,0,20]) cube([20,20,10]); translate([-10,10,30]) rotate(a=45, v=[0,1,0]) cylinder(r=3.5, h=20); } }
glb/cad_c541f7c262bd.glb
Create a corner shower soap holder clip with a total footprint of 30mm wide, 4mm deep, and 15mm high. Start by forming a solid rectangular base 30mm by 2mm by 15mm. Add two outer vertical ribs, each 2mm wide and 15mm high, positioned at the left and right edges. These ribs should be shaped as semi-cylindrical channels ...
$fn=180; difference() { union() { translate([4,0,0]) cube([21,3,15]); translate([0.7,0,0]) cube([28.9,2,15]); translate([3.6,1.9,0]) cylinder(d=5.8, h=15); translate([26.7,1.9,0]) cylinder(d=5.8, h=15); } translate([3.7,1.9,-0.1]) cylinder(d=3.8, h=16); translate([26.7,1....
glb/cad_d410ff6790c5.glb
Create a 3D text model that reads "Text rocks" using a sans-serif font like Liberation Sans. Set the font size to 10mm and extrude the characters to a thickness of 3mm. Position the starting point of the text at coordinates -30, 0, 0.
content = "Text rocks"; font = "Liberation Sans"; translate ([-30,0,0]) { linear_extrude(height = 3) { text(content, font = font, size = 10); } }
glb/cad_734b22ccbf0f.glb
Create a Minty Printy Boost V3 Box, a rectangular enclosure designed to hold three AA batteries and a circuit board. The main body is a box with a length of 60.5mm (battery length 50.5mm plus 4mm walls on each end), a width of 37mm, and a height of 16.5mm. Inside the main cavity, create three cylindrical voids for AA...
include <OpenScadFont.scad> $fn = 40; compressedSpringDepth = 10; batteryAALength = 50.5 + compressedSpringDepth; batteryAADiameter = 14.5; outerWallThickness = 4; circuitBoardWallOffset = 3; circuitBoardDepth = 20 + circuitBoardWallOffset; circuitBoardWidth = 34; circuitBoardThickness = 4; circuitBoardRaiseFromBo...
glb/cad_e8ea48729fc3.glb
Create a rodent cage tube blocker. Start by constructing a central vertical cylinder with a radius of 26mm and a height of 12mm. Attached to the bottom of this cylinder, add a handle consisting of a cylinder with a radius of 12mm and a height of 12mm, positioned to extend 10mm below the main body, topped with a thin di...
difference() { union(){ translate([0, 0,0])cylinder(h=12,r=26); translate([0, 0,-10])cylinder(h=12,r=12); translate([0, 0,-10])cylinder(h= 2,r=14); } translate([0,0,6.01])fillet2(53,5,6,50); rotate([0,0,90])translate([0,0,6.01])fillet2(53,5,6,50); rotate([0,0,180])translate([0,0,6.01])fillet2(53,5,6,50); rotate([0,0,2...
glb/cad_de41df196405.glb
Create a parameterized table consisting of a flat rectangular top and four rounded legs. Start by creating the tabletop as a rectangular slab measuring 80mm by 65mm with a thickness of 1mm. The corners of this slab should be rounded with a radius of 2mm. Construct four identical legs, each with a square cross-section...
table_x = 80; table_y = 65; table_z = 1; leg_xy = 4; leg_height = 36; rounding_cylinder_r = 2; $fn=50; module leg() { translate([0,0,leg_height/2]) minkowski() { cube([leg_xy,leg_xy,leg_height],center=true); cylinder(r=rounding_cylinder_r,h=table_z); } } translate([-table_x/2,-table_y/2,leg_height]) mi...
glb/cad_8bf19ef1f1ce.glb
Create a slider generator consisting of a rail and a sliding block. First, construct the rail as a rectangular base 160mm long, 25mm wide, and 6mm high. Carve a V-shaped groove along the entire center length of the rail with a width of 12.5mm and a depth of 2mm. Along the center of the rail, place four vertical holes s...
$fn=72; yellow=[1,1,0]; red=[1,0,0]; blue=[0,0,1]; green=[0,1,0]; groovewidth=12.5; groovedepth=2; railwidth=25; railheight=6; raillength=160; sliderwidth=25; sliderlength=30; sliderheight=4; clearance=0.06; fixing=1; fixingstep1=40; fixingstep2=15; color(yellow) render() difference(){ rail(); if (fixing==1)...
glb/cad_a7190a32778d.glb
Create a Bi-fold Door Top Rail Guide consisting of a central block with a vertical hole and tapered ends. Start with a rectangular base block measuring 12.8mm in length, 9.6mm in width, and 13mm in height. Add a 4mm extension to the top of this block, increasing the total height to 17mm. Through the center of this ...
Len=30; Wid = 17.7; Ht = 18.5; Gap = 9.85; Thickness = 1.5; Add_Thk = 1; G_Len = 12.8; G_Wid = 9.6; G_OD = 7; G_Res = 32; G_Wid_Tol = .2; G_Ht = 13; G_Extend_Ht = 4; G_Base_Ht = 1.5; G_Base_Top = 1; G_Qty = 1; Print_Rail = 0; Add_Thk2x = Add_Thk * 2; echo(Add_Thk2x = Add_Thk2x); Out_Wid = Wid + Add_Thk2x; echo(Out_Wi...
glb/cad_58eebff129ed.glb
Create a 3D model representing gravitational wave source localization. Begin by placing a central sphere with a radius of 10mm at the origin. Position three small spheres, each with a radius of 2mm, on the surface of this central sphere at the following coordinates: one at latitude 46.46° N, longitude 119.41° W; one at...
radC = 20; radS = 10; radO = 2; thick = 0.05; $fs=0.5; lat1 = 46.4553995; lon1 = -119.4092754; lat2 = 30.5629972; lon2 = -90.7764002; lat3 = 43.6313812; lon3 = 10.5023022; sclat = 95; slon = -10; clat1 = 90-lat1; clat2 = 90-lat2; clat3 = 90-lat3; module cone(alp) { difference(){ cylinder(radC*cos(a...
glb/cad_a8a4cf4f32aa.glb
Create a Scooter Attachment consisting of two matching bracket sets. Each set is composed of a front and back piece that clamp around a cylindrical tube. For the top set, design the pieces to fit a tube with a diameter of 25.2mm. For the bottom set, design them for a tube with a diameter of 32mm. Each piece must have ...
part = 0; PieceThickness = 4; PieceHeight = 10; ScrewDiameter = 3; TyingGap = 2; AttachmentHoleDiameter = 7; AttachmentHeight = 6; TopCoreDiameter = 25.2; BottomCoreDiameter = 32; HandleDiameter = 23; WingsLength = 3.5*ScrewDiameter; module drawPiece(front=true, top=true) { diameter = (top ? TopCoreDiameter : Bot...
glb/cad_c5dd9559a20b.glb
Create a 40mm fan mount funnel for an E3D Chimera or Cyclops extruder. The main body is a tapered transition between a 40mm square base and a 30mm square top. The base is a hollowed-out square frame with an outer width of approximately 40mm and a height of 10mm. The interior is a hollow cone-like void that transitions ...
fan1=40; fan2=30; r1=37.7/2; r2=27.5/2; h=10; h1=5; h2=2; he=5; red=7/2; d1=3; d2=17; d3=d1; M3=3/2+0.1; des=1; l1=fan1/2-red-0.3; l2=fan2/2-red; l3=l2-1; h3=h-h1/2-1; F1=[[l1,l1-des,0],[-l1,l1-des,0],[l1,-l1-des,0],[-l1,-l1-des,0]]; F2=[[l2,l1,0],[-l2,l1,0],[l2,-l2,0],[-l2,-l2,0]]; module embudo() { union(){ ...
glb/cad_4ef7625071b2.glb
Create a Zen Cube, which is a 25.4mm cube with chamfered edges and internal cavities for magnets. First, create the main 25.4mm cube and apply a 45-degree chamfer to all eight corners. Inside the cube, create six square cavities to hold magnets, one centered in each of the six faces. Each cavity should be a 6mm cube ...
cubeSize = 25.4; cavity = 6; wall = 0.5; diff = cubeSize - cavity; center = diff/2; holeRadius = 0.01; color("DarkGoldenRod",0.5) translate([60,0,0]) zenCube(); color("DarkGoldenRod",0.5) translate([60,30,0]) zenCube(); color("DarkGoldenRod",0.5) translate([60,-30,0]) zenCube(); color("DarkGoldenRod",0.5) translate([...
glb/cad_0588d4564aea.glb
Create a square button housing and plunger assembly. Start by constructing a main body that is a combination of a 19mm cube and a 15mm cube, blended via a hull operation to create a slightly tapered square profile. The central core of the body is a 15mm by 15mm by 12mm cube. Add a button holder consisting of a 5mm by...
$fn = 70; difference(){ union(){ hull() { translate([0, 0, 4]) cube([15, 15, 0.11], center = true); cube([19, 19, 0.11], center = true); } translate(v=[0,0,-6]){ cube([15,15,12], center = true);} translate(v=[-2.5,5,-18.9]){ cube([5,2.5,7], center=false);} translate(v=[-2.5,-4.5,-21]){ cube([5,12,3], center=false);} ...
glb/cad_03ae9a0d7091.glb
Create a Test Box 1 consisting of a main enclosure and a separate cover. The main enclosure is a rectangular box with outer dimensions of 200mm width, 300mm length, and 100mm height, with a wall thickness of 10mm. Hollow out the center, leaving a 20mm gap at the top inner border. On the enclosure, create a cylindrica...
wBox = 200; lBox = 300; hBox = 100; boxBorder = 10; hBoxInnerBorderSpace = 20; paintLasterHole = true; laserHoleInnerRadius = 22; laserHoleOuterRadius = 25; LaserHoleLength = 100; laserHoleBorder = 2; laserHolderWidth = 30; laserHolderMargin = 10; laserHoleMarginLeft = -40; laserHoleTop = -5; paintCover = true; pai...
glb/cad_da4f2849a20d.glb
Create a 3D star shape consisting of 15 identical pointed rays radiating from a central axis. Each ray is a polyhedron defined by five vertices: three points forming a triangular base on the horizontal plane and two points extending vertically. The outer tip of each ray reaches a radius of 100mm from the center, while ...
module Star(R,R1,h,K) { Alfa=360/K; L=R1*sin(Alfa); for (i=[0:Alfa:360]) { rotate([0,0,i]) polyhedron( points=[ [0,R,0],[R1*sin(Alfa/2),R1*cos(Alfa/2),0],[0,0,0],[-R1*sin(Alfa/2),R1*cos(Alfa/2),0], [0,0,h] ], faces=[ [0,1,4],[1,2,4],[2,3,4],[3,0,4], [1,0,3],[2,1,3] ] ); } } Star(R=100,R1=50,h=20,K=15);
glb/cad_f5f76aaa8e84.glb
Create a lamp part consisting of a central shaft with a cylindrical head and a flared base. Start by creating a main cylinder with a diameter of 6.35mm and a height of 6.7mm. Attach a longer, narrower cylinder to the bottom of this piece with a diameter of 4.5mm and a length of 10mm. At the opposite end, create a cylin...
a= 20; b=34; union() { intersection() { translate([a,0,0]) rotate([0,90,0]) cylinder(b,4.9,4.9,true); translate([a,0,0]) cube([b,10,6.7],true); } difference() { cylinder(6.7,6.35,6.35,true); cylinder(10,2.25,2.25,true); } translate([a+b-8,0,0]) rotate([0,90,0]) cylinder(18,3.35,3.35,true); intersection() { translate(...
glb/cad_90936003158e.glb
Create a Cooling Fan consisting of two separate parts: a fan blade assembly and a motor mount. For the fan, create a central cylinder with a diameter of 25mm and a height of 7mm. Remove a smaller concentric hole from the center with a diameter of 2.5mm. Arrange 8 identical blades around the perimeter. Each blade is a ...
fanHeight=7; fanDiam=25; shaftDiam=2.5; bladeNum=8; bladeWidth=1; bladeHeight=6; angle=-35; orientation=-1; motorDiam=20; mountDepth=15; mountThick=2; standHeight=15; baseLength=29; fanAttach=2; boltDiam=4; batteryLength=46; batteryHeight=19; batteryWidth=27; shrinkFactor=0; piece=1; if (piece==1){ fan(); } if (...
glb/cad_21febc1b99f9.glb
Create a set of geometric dissections of a cube with a side length of 30mm (scaled from a 2mm unit). Construct the following distinct sets of polyhedra: First, create a two-piece dissection by splitting the cube with a single plane passing through two opposite face diagonals. Second, create a three-piece dissection ...
font = "Liberation Sans"; a = 1; b = 1; c = 1; mark = 4; if (mark==1) scale(15) polyhedron(cube_xyz,cube_faces); else if (mark==2) for ( i = [ -30,30]) { translate([i,0,0]) scale(15) rotate([180,0,0]) polyhedron(cube_xyz,half_cube); } else if (mark==3) for (i = [-50,0,50]) { translate([i,0,0]) scale(1...
glb/cad_226a84c47640.glb
Create a customizable basket for a science project with overall dimensions of 30mm width, 30mm depth, and 30mm height. Start by placing four vertical corner pillars, each with a 3mm by 3mm square cross-section, extending from the base to the full height of 30mm. Connect these pillars at the top with a square rim that i...
totalWidth = 30; totalDepth = 30; totalHeight = 30; pillarThickness = 3; bottomHeight = 10; numberOfXBars = 3; numberOfYBars = 2; barWidth = 2; rimHeight = 4; initials = "Mr. Johnson"; barXSpacing = totalWidth/(numberOfXBars+1); barYSpacing = totalDepth/(numberOfYBars+1); difference() { union() { ...
glb/cad_dde37489a446.glb
Create a Soil Block Maker consisting of two separate parts: a compression chamber and a tamper. To construct the compression chamber, create a cylinder with a diameter of 50mm and a height of 60mm. Remove a central cylindrical core with a diameter of 44mm and a height of 100mm, starting from 10mm above the base, and al...
difference() { cylinder(d=50, h=60, center=false); translate([0,0,10]) cylinder(d=44, h=100, center=false); cylinder(d=10.5, h=100, center=false); } translate([60,0,00]){ cylinder(d=43.5, h=10, center=false); cylinder(d=10,h=60,center=false); }
glb/cad_08a73481bb42.glb
Create a Worlds Best Spool Hub Slim, a cylindrical cap designed to fit a spool shaft. Start with a circular base that has a diameter of 57.5mm and a thickness of 0.75mm. In the center of this base, create a circular hole with a diameter of 7.5mm. On top of the base, add a cylindrical wall that extends 12mm in height....
shaftDiameter = 7.5; spoolShaftDiameter = 51.5; resolution = 180; slimmed = 1; showTieholes = 1; capThickness = 3; tieholeRotation = 45; tieslotDepth = .75; tieholeFromCenter = 11.1; shaftWallHeight = 12; shaftWallWidth = 3; linear_extrude( height = tieslotDepth ) spoolHubCapSlice(); translate([0,0,tieslotDepth - 0...
glb/cad_e6e8ea229882.glb
Create a parametric lampshade consisting of a base plate and a decorative wall of randomized cubes. Start by creating a square base plate 60mm wide, 60mm deep, and 3mm thick. Center a cylindrical hole with a diameter of 40mm through the thickness of this base. Build the walls upward from the base using 10mm cubes. The...
trou =40; base_ep = 3; bloc = 10; etage = 10; degrad =false; evasement=bloc*0.5; enfoncementZ = 0.8; densite= 1; base = trou+20; totalbloc = (base/bloc); echo ("hauteur = ", (etage-1)*bloc+base_ep,"mm"); echo ("largeur = ", base + (etage*bloc),"mm"); echo("---"); echo(totalbloc); difference() { cube([base,base,b...
glb/cad_b1338880bf53.glb
Create a ZMR250 Slim GoPro Mount by starting with a rectangular base plate measuring 46mm by 49mm with a thickness of 4mm. Round the four corners of this base using a fillet radius of 5mm. Drill two vertical holes completely through the plate, each with a diameter of 3.5mm; position the first hole center at 7mm from th...
difference(){ translate([0,0,])cube([46,49,4]); fillet(5, 30); translate([46,0,0])rotate([0,0,90])fillet(5, 30); translate([0,49,0])rotate([0,0,-90])fillet(5, 30); translate([46,49,0])rotate([0,0,180])fillet(5, 30); union(){ translate([7,4,-1])cylinder(h=20,r=3.5/2, $fn=100); translate([39,4,...
glb/cad_3211d22b994d.glb
Create a ZMR250 Slim GoPro Mount starting with a rectangular base measuring 46mm by 49mm with a height of 4mm. Add two side wings extending from the base, each measuring 66mm in length, 15mm in width, and 6mm in height, positioned at the sides. Round the corners of the base and the wings using a 5mm and 3mm fillet radi...
difference(){ union(){ translate([0,0,0])cube([46,49,4]); translate([-10,23,0])cube([66,15,6]); } fillet(5, 30); translate([46,0,0])rotate([0,0,90])fillet(5, 30); translate([0,49,0])rotate([0,0,-90])fillet(5, 30); translate([46,49,0])rotate([0,0,180])fillet(5, 30); trans...
glb/cad_ee6e49e5ad1d.glb
Create a ZMR250 antenna mount by starting with a rectangular base measuring 45mm in length, 15mm in width, and 2mm in height. Centered on the top surface of this base, add an octagonal prism with a radius of 22.5mm and a height of 8mm, rotated 22.5 degrees around the X-axis. Remove a rectangular section from the bottom...
difference(){ union(){ cube([45,15,2]); rotate([90,22.5,0])translate([13,28,-15])cylinder(h=8, r=45/2, $fn=8); } translate([6.5,3.5,-5])cylinder(h=10, r=3.5/2, $fn=100); translate([38.5,3.5,-5])cylinder(h=10, r=3.5/2, $fn=100); translate([13,-1,-1])cube([19,8,4]); rotate([90,...
glb/cad_099fee922caa.glb
Create a 4AA battery holder with a total length of 71mm, a total height of 20mm, and a base height of 13mm. The main body is a rectangular enclosure with outer walls 2mm thick. Inside the enclosure, create four separate compartments for AA batteries. Each battery slot should be approximately 14.5mm wide and 50.5mm lo...
use <Write.scad/Write.scad> $slotsize=1.1; $outsidewall=2; $wall=2; $height=13; $length=71; $totalheight=20; center=false; $l = 50.5; $w = 14.5;$gap=.5; t=3; difference(){ cube ([$length, $l+$wall*2+$slotsize*2+$outsidewall*2, $totalheight]); translate([$outsidewall,$outsidewall,$height+$wall]) cube ([$length-$outs...
glb/cad_a6e7d0047b19.glb
Create a Crazy Planetary Gear system consisting of a central gear, several planetary gears, and a surrounding hollow ring gear. All gears have a thickness of 8mm and a module of 2.5mm. First, create the central gear (gear0) with 32 teeth. Create four planetary gears (gear1 through gear4), each with 8 teeth. Position t...
use <gears.scad> use <pin0d.scad> pinr=3.5; pinl=06; pin_nub=.8; abc=.75; howi=6; m=2.5; h=8; hhold=4; teeth=32; tweak=.0; teeth0=8; angle0=0; tweak0=0; teeth1=8; angle1=0; tweak1=.5; teeth2=8; angle2=90; tweak2=.5; teeth3=8; angle3=180; tweak3=.5; teeth4=8; angle4=270; tweak4=.5; teeth5=8; angle5=090; tweak5=....
glb/cad_8d082ee6b2cd.glb
Create a hollow cube with an outer dimension of 20mm x 20mm and a height of 10mm. To form the interior cavity, remove a centered rectangular block measuring 10mm x 10mm with a height of 100mm, ensuring the cutout extends completely through the top and bottom of the 10mm tall outer shell.
difference() { translate([-10,-10,0])cube([20,20,10]); cube([10,10,100],center=true); }
glb/cad_cdc978f4dc9c.glb
Create a Pegboard Tool Holder Base. Start by creating a central rectangular block with a width of 96.6mm (calculated as 4 inches converted to 101.6mm minus 5mm), a depth of 35mm, and a height of 15mm. Center this block along the X and Y axes, but offset it so the bottom sits 7.5mm above the origin. On each end of the ...
base(4); module baseDeep(inches) { width = inches*25.4 - 5; translate([0,-2.5,-2.5]) cube([width, 35, 35], center=true); translate([1+width/2,0,5]) clamp(); mirror([1,0,0]) translate([1+width/2,0,5]) clamp(); } module base(inches) { width = inches*25.4 - 5; translate([0,-2.5,7.5]) cube([wid...
glb/cad_fc4504e2d708.glb
Create a Pegboard Tool Holder Base consisting of four identical brackets. Each bracket is built around a central rectangular block measuring 30mm wide, 4.064mm thick, and 40mm high. From this central block, remove a rectangular inner cutout measuring 16.5mm wide, 9.064mm high, and 10.5mm deep to create a hollow chann...
DIAMETER = 0.16*25.4; OFFSET = 0.325*25.4; VHEIGHT = 0.575*25.4; translate([-30,-25,0]) bracket(); translate([-30,25,0]) bracket(); translate([30,-25,0]) bracket(); translate([30,25,0]) bracket(); module bracket() { translate([0,0,DIAMETER/2]) rotate([90,0,0]) union() { difference() { base(); ...
glb/cad_0c4f04613ef8.glb
Create a Pegboard Tool Holder Base by starting with a solid rectangular block that is 4 inches wide. Within this block, carve out a grid of hexagonal holes to create a holder for hex bits. The holes should be arranged in four parallel rows. The first and second rows should be positioned at y-coordinates -10mm and 6mm r...
use <base.scad> width=4; difference() { base(width); toolarray(); } module toolhole() { translate([0,-5,18]) cylinder(d=0.33*25.4, h=30, center=true, $fn=6); } module toolarray() { for (i = [-40:10:40]) { translate([i,-10,0]) toolhole(); translate([i,6,0]) toolhole(); } for (i = [-35:10:35])...
glb/cad_22dcda563581.glb
Create a safety socket adapter consisting of a vertical rectangular block and a thin base plate. Start by creating a vertical rectangular prism with a width of 4mm, a depth of 3mm, and a height of 26mm. At the bottom of this prism, attach a thin rectangular base plate that is 1mm thick. This base plate should extend ou...
delta = 0.3/2; rCercle = 35/2 -delta; rognement = (35-31.8) /2; lCercle = rCercle - 2*rognement -2*delta; epCercle = 1.5 ; epRabot=1; rTrous = 6/2 +delta; xTrouA = rognement + 3.5 + rTrous; yTrouA = rCercle; xTrouC = rCercle*2 - rognement - 3.5 - rTrous; yTrouC = rCercle; xTrouB = rCercle; yTrouB = 4.7 + rTrous; rPi...
glb/cad_7fc2ada3db53.glb
Create a Zeroing Tool for CNC by constructing a vertical assembly. Start with a rectangular base block that is 20mm wide, 20mm deep, and 30mm tall. From this block, remove a rectangular section from one corner to create a notched profile; this cutout should be 3mm wide and 2mm deep, extending the full 30mm height of th...
chuckDiameter = 6; chuckHeight = 15; cornerThickness = 5; cornerExtension = 15; cornerHeight = 30; removeCornerDepth = 2; removeCornerWidth = 3; $fn = 60; MakeTool(); module MakeTool() { difference() { linear_extrude(cornerHeight) MakeCorner(); cube([1000,1000,1000]); rotate([0,0,45]) t...
glb/cad_9abef2a2f3a5.glb
Create a hinge for roof blocks consisting of a base and two upright supports. Start by creating a rectangular base block with dimensions 31.66mm in width, 31.66mm in length, and 9.6mm in height. The base should be a hollow shell with a wall thickness of 1.55mm. On the top surface of this base, position two square upri...
duplowidth = 31.66; duplolength=31.66; duploheight=9.6; duplowall = 1.55; supportwith=3; lenth=1; width=1; top_tall=2.0; tall=1; wall=3; x_arch_scale=1.31; z_arch_scale=1.8; ns = 8.4; no = 6.53; nbo = 16; n_nible=16.8; nibble_high=4.9; knob_th=1.35; knob_stickout=4.2; knob_o...
glb/cad_d9409596cea9.glb
Create a hinge for roof blocks consisting of a circular base and a central pivot mechanism. Start by creating a cylindrical base with a radius of 13.3mm and a height of 4.9mm. At the bottom of this base, add two smaller cylindrical supports with a radius of 4.6mm and a height of 4.9mm, positioned symmetrically to pro...
duplowidth = 31.66; duplolength=31.66; duploheight=9.6; duplowall = 1.55; supportwith=3; lenth=1; width=1; top_tall=2.0; tall=1; wall=3; x_arch_scale=1.31; z_arch_scale=1.8; ns = 8.4; no = 6.53; nbo = 16; n_nible=16.8; nibble_high=4.9; knob_th=1.35; knob_stickout=4.2; knob_o...
glb/cad_865ab719ddc4.glb
Create a hedgehog sculpture by assembling a series of rectangular prisms. Start by creating a single rectangular arm with dimensions of 50mm in length, 5mm in depth, and 5mm in height, centered on its origin. Arrange four of these arms into a star-like unit by rotating them around the Z-axis in 45-degree increments. ...
coreArmLength = 50; coreArmDepth = 5; coreArmHeight = 5; armsPerUnit = 4; unitCount = 12; module base(rotate=0) { rotate([0,0,rotate]){ cube(size=[coreArmLength,coreArmDepth,coreArmHeight], center=true); } } module createSpike(step = 10) { for (a = [0 : step]) base((180 / step) * a); } union() {...
glb/cad_8a3262478585.glb
Create a Royal Mail Letter Size Gauge by starting with a solid rectangular base measuring 190mm in length, 60mm in width, and 4mm in height. Carve out a large rectangular slot from the center of this base, measuring 180mm long, 25mm wide, and 4mm deep. Position this slot so that it is centered along the width of the ba...
group() { group(){ difference() { difference() { cube (size = [190.0, 60.0, 4.0], center = false); multmatrix([[1.0, 0.0, 0.0, 5.0], [0.0, 1.0, 0.0, 10.0], [0.0, 0.0, 1.0, 0.0], [ 0, 0, 0, 1]]){ cube (size = [180.0, 25.0, 4.0], center = false); } } multmatrix([[1.0, 0.0, 0.0, 5.0], [0...
glb/cad_7dbec9132fac.glb
Create a Fabrikator Mini V1.5 Full Graphic Display Holder with a uniform height of 10mm. Construct the main body by combining several rectangular sections: a central base block of 10mm by 5mm, a lower extension of 4mm by 24mm, and an upper border of 7mm by 5mm. Add a front panel measuring 13mm by 6mm, rotated 80 degree...
$fn = 25; height = 10; display_angle = 80; hole_position = "both"; hole_diameter = 2.9; module holder() { translate([10, 0, 0]) difference() { translate([-13 + (5 * sin(display_angle - 45)), -6 - (3 * sin(display_angle - 45)), 0]) rotate([0, 0, display_angle]) ...
glb/cad_6e58a1734ab1.glb
Create a flower vase by stacking 50 thin, concentric hexagonal slices vertically. Start with a base hexagonal ring that has an outer radius of 15mm and a wall thickness of 2mm. Each subsequent slice should be 1mm thick and positioned 1mm above the previous one. As the slices ascend, increase the outer radius of each he...
vaseRadius = 15; vaseWallThickness = 2; vaseSides = 6; slices = 50; angleShiftPerSlide = 5; radiusIncrease = 10; heightPerSlice = 1; heightOffset = 0.1; sliceIncrease = radiusIncrease / slices; echo(sliceIncrease); linear_extrude(height = heightPerSlice, center = true, convexity = 10, twist = 0) circle(vaseRadius, $fn...
glb/cad_d7bf7c991a44.glb
Create a logo plate by starting with a rectangular base measuring 175mm by 165mm with a thickness of 1mm. On top of this base, add two distinct extruded layers based on the Mini Cooper logo geometry. The first layer should be extruded to a height of 4mm and positioned at an offset of 4mm in the X direction and 2mm in t...
module wreath() { rotate([0,0,90]) { color([0,0,0]) translate([0,0,0]) cube([175,165,1]); color([255,0,0]) translate([4,2,1]) linear_extrude(file = "minicooper1.dxf", height=4, convexity = 10, scale=1); color([255,255,0]) translate([4,2,1]) linear_extrude(file = "minicooper2.dxf", height=2, convexity = 10, scal...
glb/cad_ef8a97359929.glb
Create a logo plate by starting with a rectangular base measuring 185mm by 77mm with a thickness of 2mm. On top of this base, add extruded graphic elements with a height of 2mm. Position a lion logo shape starting at coordinates -60, 10, 2. Additionally, create a rectangular section measuring 120mm by 29mm by 2mm, posi...
module aprilia() { rotate([0,0,90]) { color([0,0,0]) translate([-65,0,0]) cube([185,77,2]); color([255,0,0]) translate([8,30,2]) linear_extrude(file = "aprilia2.dxf", height=2, convexity = 10, scale=1); color([255,0,0]) translate([-60,10,2]) linear_extrude(file = "lion.dxf", height=2, convexity = 10, scale=1); colo...
glb/cad_7b5f762d6fcb.glb
Create a logo plate by starting with a rectangular base measuring 150mm by 125mm with a thickness of 1mm. On top of this base, add a raised emblem based on the Honda wing logo geometry. This emblem should be scaled by a factor of 2 and extruded to a height of 2mm, positioned so that it starts 5mm from the left edge and...
module hondawing() { rotate([0,0,90]) { color([0,0,0]) translate([0,0,0]) cube([150,125,1]); color([255,0,0]) translate([5,3,1]) linear_extrude(file = "honda.dxf", height=2, convexity = 10, scale=2); } } hondawing();
glb/cad_3db4e1a62a0d.glb
Create a WillyWodka sign by constructing a base plate and engraving a logo into it. Start by creating a rectangular slab that is 180mm long, 40mm wide, and 1mm thick. Soften the corners of this slab by applying a 10mm radius fillet to all four vertical edges. From this base, remove a rectangular section measuring 240mm...
module willy() { rotate([0,0,90]) { color([0,0,0]) difference() { minkowski() { translate([10,10,0]) cube([160,20,1]); cylinder(h=1, r=10, $fn=50); } translate([0,0,1]) cube([240,60,4]); } color([255,255,255]) translate([2,2,1]) linear_extrude(file = "willywodka.dxf", height=2, convexity ...
glb/cad_0b35be93e91b.glb
Create a Precision Tool Holder for a pegboard. Start with a central rectangular block measuring 97.16mm wide, 35mm deep, and 15mm high. On the left and right ends of the block, add mounting clamps consisting of a 2mm wide by 15mm deep by 10mm high central section, flanked by two 7mm wide by 2mm deep by 10mm high tabs e...
use <../write/Write.scad> WIDTH = 4*25.4 - 5; difference() { back(); toolarray(); } textArray(); module back() { translate([0,-2.5,7.5]) cube([WIDTH, 35, 15], center=true); translate([1+WIDTH/2,0,5]) clamp(); mirror([1,0,0]) translate([1+WIDTH/2,0,5]) clamp(); } module clamp() { cube([2,15,10]...
glb/cad_0bf404e8031a.glb
Create a hair clipper guard consisting of a base attachment and a raised comb section. First, construct the base attachment. Create a central rectangular plate 38.32mm wide, 36.88mm long, and 1.77mm thick. Remove two chamfered corners from the sides and a central rectangular notch 11mm wide and 5.76mm long from the f...
guard_height = 18; base_width = 38.32; base_length = 27.70+9.18; base_thickness = 1.77; base_notch_width= 11; base_notch_length = 2.88; root_width = 26.95; root_height = 7.95-1.77+base_thickness; module base_chamfer(dir) { translate([dir * (base_width/2), base_length/2, 0]) rotate(a=dir*40, v=[0,0,1]) cub...
glb/cad_777bfa59c672.glb
Create a pin connector for GPIO boards by starting with a rectangular block measuring 53.32mm in length, 12.7mm in width, and 6mm in height. Within this block, create a grid of circular holes that pass completely through the height of the object. The grid consists of two parallel rows, each containing 20 holes. Each ho...
pins = 20; rows = 2; hight = 6; hole = 75; wall = 3; difference() { translate([-wall/10,-wall/10,0]) cube([2.54*pins+2*wall/10,2.54*rows+2*wall/10,hight]); union() { for (iR = [1:rows]) { for (iP = [1:pins]) { color("red") translate([-2.54/2+2.54*iP,-2.54/2-hole/100/3+2.54*iR,0]) ...
glb/cad_92594ec0a91f.glb
Create a two-part bath bomb mold consisting of a top and bottom half. For each half, start with a shape formed by the intersection of a sphere with a radius of 37.4mm, centered at (0, 0, 36), and a cube with dimensions 25mm x 25mm x 25mm, centered at (0, 0, 12.5). From this volume, remove a central sphere with a radius...
$hole=1; $fn=70; module BallMoldTop () { difference () { intersection() { translate([0, 0, 18]) sphere(r = 18.7); translate([-12.5, -12.5, 0]) cube(size=[25,25,12.5]); } translate([0, 0, 12.5]) sphere(r = 12); if ($hole == 1) { ...
glb/cad_6a678a6d7ad5.glb
Create an Apple Key holder by starting with a flat Apple logo silhouette that is 6mm thick. Within this logo, carve out a rectangular slot centered horizontally and positioned 14mm from the bottom edge; this slot must be 15.9mm wide, 19.5mm high, and 3mm deep to accommodate a key. Additionally, create a circular hole t...
$fn=100; include <apple.scad> $thickness=6; $keyStickR = 3.2; $keyWidth = 15.9; $keyHeight = 19.5; $keyThickness=3; difference(){ apple($thickness); translate([-8,-14, ($thickness/2) - ($keyThickness/2)]) cube([$keyWidth, $keyHeight, ($keyThickness)]); translate([0,-12.5, $keyStickR + ($thick...
glb/cad_19a4129c11cd.glb
Create a Travel Trouble game piece with a total height of 14.78mm. Start by constructing a base cylinder with a diameter of 6.58mm and a height of 6.68mm. Atop this base, add a second cylinder with a diameter of 7.9mm and a height of 8.1mm, ensuring the top edge is rounded with a 0.5mm radius. To create the internal ca...
$fn = 100; topHeight = 8.10; topDiameter = 7.90; bottomDiameter = 6.58; totalHeight = 14.78; bottomHeight = totalHeight - topHeight; difference() { union() { cylinder(h=bottomHeight, d=bottomDiameter, center= false); translate([0,0,bottomHeight]) difference() { ...
glb/cad_28311a25f21b.glb
Create a mini Zen-garden rake consisting of a main body, several tines, and a handle. Construct the main body as a rectangular block 100mm wide, 100mm deep, and 100mm high. Along the length of this body, create a series of seven alternating sections. The first section is a 100mm cube with a vertical cylindrical hole ...
$fn=50; cubeSize = 100; halfCube = cubeSize/2; holeRadius = 25; numberOfAdditionalHoles = 6; spacingBetweenRakeHoles = 20; angleOfRakeHandle=50; rakeSpokeLength = 400; rakeHandleLength = 800; rakeWidth = (numberOfAdditionalHoles *(cubeSize+spacingBetweenRakeHoles) - spacingBetweenRakeHoles); module rake_with_hole(){...
glb/cad_22340e0be186.glb
Create a set of "Spikes of Villainy" consisting of 15 conical spikes arranged in three rows of five. The spikes are organized into three distinct size groups. The first row consists of five small spikes, each 13mm tall with a base diameter of 5mm. The second row consists of five medium spikes, each 28mm tall with a bas...
for( x = [ -12 : 12 : 0 ]) { for ( y = [ 12 : 12 : 60 ]){ translate([x,y,0]) { difference(){ cylinder(13,5,0.75); translate([0,0,-1]) cylinder(7,2,2); } } } } for( x = [ 12 : 12 : 24 ]) { for ( y = [ 12 : 12 : 60 ]){ translate([x,y,0]) { difference(){ cylinder(28,5,0.75); translate([0...
glb/cad_472d647a9497.glb
Create a Jet Filament Endcap designed to fit an 8mm shaft. Start with a central vertical hole with a radius of 4.6mm that passes through the entire object. Build a circular base flange with a radius of 20mm and a thickness of 3mm. Above this flange, add a cylindrical bushing with a radius of 6.1mm and a height of 10mm,...
use <partial_rotate_extrude.scad> bore = 9.2/2; flange_thickness = 3; hook_height = 8; flange_radius = 20; difference() { difference() { union() { cylinder(h=flange_thickness, r = flange_radius, $fn=100); translate([0,0,flange_thickness]) cylinder(h=10, r = bore+1.5, $fn=50); translate([0,0,flange_thickn...
glb/cad_c7ab7e4fa299.glb
Create a parametric spoked wheel. Start by constructing a circular rim with an outer radius of 20mm and an inner radius of 18mm, giving the rim a total thickness of 5mm. At the center of the wheel, create a cylindrical hub with a radius of 4mm and a thickness of 5mm. Bore a hole through the center of this hub to accomm...
$fn = 100; OuterRadius = 20; InnerRadius = 18; RimThickness = 5; HubRadius = 4; HubThickness = 5; AxleRadius = 2.5; SpokeRadius = 1.49; Axle = 1; SpokeNumber = 10; module Rim(Edge,Outer,Inner){ difference(){ translate([0,0,-Edge/2]) cylinder(Edge,Outer,Outer); translate([0,0,-Edge/2]) cylinder(Edge,Inner,I...
glb/cad_de8e00351a75.glb
Create a parametric spoked wheel. Start by constructing a circular rim with an outer radius of 20mm and an inner radius of 18mm, giving the rim a total thickness of 5mm. At the center of the wheel, create a cylindrical hub with a radius of 4mm and a thickness of 5mm. Bore a hole through the center of this hub to accomm...
OuterRadius = 20; InnerRadius = 18; RimThickness = 5; HubRadius = 4; HubThickness = 5; AxleRadius = 2.5; SpokeRadius = 1.49; Axle = 1; SpokeNumber = 10; module Rim(Edge,Outer,Inner){ difference(){ translate([0,0,-Edge/2]) cylinder(Edge,Outer,Outer); translate([0,0,-Edge/2]) cylinder(Edge,Inner,Inner); } }...
glb/cad_1864d0ed2e2d.glb
Create a Wallhanger consisting of a main body and a decorative cap. For the body, construct a 20mm tall geometry by joining two truncated cones: the first 10mm section transitions from a 10mm radius at the base to a 7mm radius at the top, and the second 10mm section transitions from a 7mm radius at the bottom to a 10mm...
nozzleDiameter=0.4; tolerance=0.1; totalHeight= 20; thickRad=10; thinRad=7; capTipRad = 2; screwDiameter = 4; screwHeadDiameter = 8; screwHeadDistanceFromWall = 5; fontFace = "Keep Calm:style=Regular"; shipName = "Hyperion"; shipNameSize = 2.6; shipSeries = "MK1"; shipSeriesSize = 5.5; segments=90; compScrewRadius =...
glb/cad_15b0b2bd1c04.glb
Create a mini drill press consisting of a base, a vertical sliding mechanism, and an adjustable arm. Start with a stable base and a vertical support shaft with a 4mm radius and 100mm height. Construct a fixed slide positioned above the base and a sliding wedge that fits within it to allow vertical movement. Above the...
include <drill_base.scad> include <fixed_slide.scad> include <sliding_wedge_rack.scad> include <rotacraft_rc18_drill_collar_mount.scad> include <rotacraft_rc18_drill_body_mount.scad> include <rack_gear.scad> include <arm_mount.scad> include <arm_knob.scad> include <thumb_wheel.scad> base(); color("lightblue") transl...
glb/cad_d1c167c386e1.glb
Create a lens cap by constructing a hollow cylinder with an outer diameter of 19.8mm and a total height of 6mm. The walls of the cylinder should be 1mm thick. To create the interior cavity, remove a central cylinder with a diameter of 17.8mm and a height of 5mm, starting from a height of 1mm above the base. This result...
$fn = 50; diameter = 17.8; width = 1; bottom_width = 1; height = 6; difference() { cylinder(h = height, d = (diameter + (2 * width))); translate([0, 0, bottom_width]) cylinder(h = height - bottom_width, d = diameter); }
glb/cad_8c9de023b6b7.glb
Create a picture frame consisting of a base plate and a surrounding border. Start by creating a rectangular base plate with dimensions 92.58mm by 67.42mm and a thickness of 0.81mm. In this plate, create a grid of circular holes, each 19.05mm in diameter. The holes should be spaced such that there are 3 columns and 2 ro...
pictxe = 3.5 ; pictye = 2.5 ; framee = 0.125; rime = 0.125; radiuse = 0.2; clipe = 0.125; thicke = 0.0315; thickfrme = 0.0315; gape = 0.015; circlee = 0.75; cspacee = 0.25; pictx = pictxe*25.4; picty = pictye*25.4; frame = framee*25.4; rim = rime*25.4; radius = radiuse*25.4; clip = clipe*25.4; thick = thicke*25.4; thi...
glb/cad_f8f1bde3c93d.glb
Create a rectangular picture frame with an outer boundary of 88.9mm by 63.5mm and a uniform thickness of 0.806mm. The frame consists of a border with a width of 3.175mm. To form the inner opening, remove a central rectangle such that the remaining border is 3.175mm wide on all sides. Refine the interior corners of th...
pictxe = 3.5 ; pictye = 2.5 ; framee = 0.125; rime = 0.125; radiuse = 0.2; clipe = 0.125; thicke = 0.0315; thickfrme = 0.0315; gape = 0.015; circlee = 0.75; cspacee = 0.25; pictx = pictxe*25.4; picty = pictye*25.4; frame = framee*25.4; rim = rime*25.4; radius = radiuse*25.4; clip = clipe*25.4; thick = thicke*25.4; thi...
glb/cad_9c7b17e40066.glb
Create a retainer clip for a printer bed by extruding a specific 2D polygon to a height of 15mm. The profile begins at the origin (0,0) and extends to 16.51mm along the x-axis, then moves to 3.048mm on the y-axis. From there, it moves back to 6.35mm on the x-axis and extends to 16.398mm on the y-axis. The shape then ex...
linear_extrude(height=15) polygon(points=[ [0,0], [16.51,0], [16.51,3.048], [6.35,3.048], [6.35,16.398], [11.73,16.398], [11.73,17.722], [6.35,19.446], [0,19.446]], paths=[[0,1,2,3,4,5,6,7,8]]);
glb/cad_1d3759595c1a.glb
Create a pair of shutter glasses. Start with the main front face, which is a flat plate 3mm thick, 145mm wide, and 55mm high, based on a shutter shades profile. At each side of the face, add a mounting block for the temples. Each block is a rectangular prism 4mm wide, 15mm deep, and 7mm high. Within each block, creat...
glass_x = 145; glass_y = 55; glass_nose_x = 18.5; glass_nose_y = glass_y / 2; nose_h = 2; nose_r = 7; nose_angle = 20; shutter_h = 3; shutter_c = 40; fn = 40; mount_x = 4; mount_y = 15; mount_z = 7; mount_hole_r = 1.75; mount_hole_ext_r = mount_hole_r + 3; mount_hole_h = mount_y / 3; target_dxf = "shutter_plain.dx...
glb/cad_07f10c751056.glb
Create a pair of mounting hinges for parametric shutter glasses. For each hinge, start with a rectangular block measuring 4mm by 15mm by 7mm. On the face of this block, center a mounting ring that consists of a cylinder with a radius of 4.75mm and a height of 5mm. Inside this ring, create a concentric circular hole w...
band_x = 130; band_y = 40; target_dxf = "band_blank.dxf"; fn = 40; mount_x = 4; mount_y = 15; mount_z = 7; mount_hole_r = 1.75; mount_hole_ext_r = mount_hole_r + 3; mount_hole_h = mount_y / 3; band_h = mount_x; band_c = 40; hinge_gap = 0.5; hinge_h = (mount_y - mount_hole_h)/2 - hinge_gap; module band_single() { ...
glb/cad_807d2639b146.glb
Create a rectangular electronics enclosure for the boloblinky project with overall dimensions of 71mm in length, 20mm in total height, and approximately 18mm in width. The main body is a hollowed-out box with a base height of 13mm and outer walls 2mm thick. Inside the main cavity, create a series of four internal par...
use <Write.scad/Write.scad> $slotsize=1.1; $outsidewall=2; $wall=2; $height=13; $length=71; $totalheight=20; center=false; $l = 50.5; $w = 14.5;$gap=.5; t=3; difference(){ cube ([$length, $l+$wall*2+$slotsize*2+$outsidewall*2, $totalheight]); translate([$outsidewall,$outsidewall,$height+$wall]) cube ([$length-$outs...
glb/cad_a6e7d0047b19.glb
Create a rectangular electronics case for the boloblinky device with overall dimensions of 71mm in length, 60mm in width, and a base height of 15mm. The walls should be 1mm thick. Carve out a main interior cavity starting 1.5mm from the walls and 1mm from the floor, extending to a total height of 20mm. On the top sur...
$wall=1; $height=15; $length=71; $width=60; $totalheight=20; $screen=32; difference (){ translate([0,0,0]) cube ([$length, $width, $height]); translate([$wall*1.5,$wall*1.5,$wall]) cube ([$length-$wall*3, $width-$wall*3, $totalheight]); translate([5+$wall*2,($width-$screen)/2,0]) cube ([$screen, $screen, $wall...
glb/cad_ee047e6bddb4.glb
Create a rectangular electronics case for the boloblinky device with overall dimensions of 71mm in length, 60mm in width, and a base height of 15mm. The main body is a hollowed-out box with walls 1mm thick. Inside the base, create a large central cutout starting 1.5mm from the walls, extending to a total height of 20...
$wall=1; $height=15; $length=71; $width=60; $totalheight=20; $screen=32; difference (){ translate([0,0,0]) cube ([$length, $width, $height]); translate([$wall*1.5,$wall*1.5,$wall]) cube ([$length-$wall*3, $width-$wall*3, $totalheight]); translate([5+$wall*2,($width-$screen)/2,0]) cube ([$screen, $screen, $wall...
glb/cad_0f748fc1b141.glb
Create a simple flower keychain by constructing a central core and nine surrounding petals. Start with a base thickness of 4mm. Create nine identical petals, each formed by a cylinder with a 10mm diameter that has been scaled by a factor of 2 along one axis to create an oval shape. Arrange these nine ovals in a radial ...
quality=120; petal=9; petalsize=10; difference() { for ( i = [0 : petal-1] ){ rotate( i * 360 / petal, [0, 0, 1]) translate([0, petalsize+3, 0]) scale ([1.0,2.0,1.0]) cylinder (d=petalsize, h=4, $fn=quality); } translate([0, petalsize*2, 0]) cylinder (d=3, h=4, $fn=quality...
glb/cad_29561c269ba9.glb
Create a foldable solar panel holder consisting of multiple identical pages. Each page is a rectangular frame with outer dimensions of 79mm by 115mm and a total thickness of 5mm. The frame features a central rectangular cavity measuring 69mm by 100mm with a depth of 2.9mm to house a solar panel. To prevent the panel fr...
Width = 69; Length= 100; Depth = 2.9; D = 5; Radius = D; Frame_X = D; Frame_Y = D; Frame_Z = D; Hole = 3.2; Corner = 25; $fn=20; W = Width+2*Frame_X+2*Radius+1; L = Length+2*Frame_Y+5; module SolaPan(d1,d2,n1,n2){ h1 = (n1+1)*Frame_Z/2; h2 = (n2+1)*Frame_Z/2; y1 = [4*d1*D,2*Frame_Y+Length-D-4*d1*D]; y = [4*d2*D+D+0...
glb/cad_5b1793bc1b36.glb
Create a V groove bearing pulley consisting of a wheel and a support. For the wheel, create a central cylindrical hole with a radius of 4.8mm and a height of 6mm to accommodate a bearing. Surround this hole with a tiered outer body: the bottom section is a cylinder with a radius of 11mm and a height of 2mm, and the top...
$fn = 100; module v_grove_bearing() { difference() { union() { cylinder(h=2, r1=5+4+2, r2=5+4); translate([0, 0, 2]) cylinder(h=2, r1=5+4, r2=5+4+2); } translate([0, 0, -1]) bearing_623Z(); translate([0, -4, 2]) rotate([90, 0, 0]) cylinder(r=2.8/2...
glb/cad_a3530b78b38f.glb