Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Trash Can Deodorizer Box, which is a shallow rectangular container with rounded corners and a slotted base. The main body should have an outer footprint of 112mm by 82mm with a depth of 30mm. The walls should be approximately 6mm thick. Hollow out the center to create a basin, leaving a floor thickness of 3m...
difference() { minkowski() { linear_extrude(height = 30, center = false) { polygon(points=[[50,-35],[-50,-35],[-50,35],[50,35]]); } sphere(6, $fn=20); } minkowski() { translate([0,0,3]) linear_extrude(height = 40, center = false) { polygon(points=[[48,33],[48,-33],[-48,-33],[-48,33],[4...
glb/cad_dd98ae9d0e35.glb
Create a Trash Can Deodorizer Box. Start by constructing a rectangular shell with rounded corners. The outer dimensions are 112mm by 82mm, with a total height of 15mm. The walls should be 6mm thick. Hollow out the center of the box to create a cavity, leaving a base thickness of 2mm. In the floor of this cavity, creat...
difference() { minkowski() { linear_extrude(height = 30, center = false) { polygon(points=[[50,-35],[-50,-35],[-50,35],[50,35]]); } sphere(6, $fn=20); } minkowski() { translate([0,0,2]) linear_extrude(height = 40, center = false) { polygon(points=[[48,33],[48,-33],[-48,-33],[-48,33],[4...
glb/cad_bfe98b6ce7e1.glb
Create a toilet paper roll holder starting with a square base 80mm wide and 3mm thick. Centered on this base, build a vertical hollow tube with an outer radius of 20mm and a height of 160mm, starting from the top surface of the base. The tube wall should be 3mm thick, meaning the inner hollow radius is 17mm. At the ver...
base_thickness=3; base_width=80; tp_height=160; tp_radius=20; tp_thickness=3; cap_radius=22; cap_thickness=2; slit_thickness=8; translate([-base_width/2, -base_width/2,0]) cube(size=[base_width,base_width,base_thickness]); difference() { union() { translate([0,0,base_thickness]) cylinder(h=tp_height,r=tp_r...
glb/cad_dc8beb9edbfc.glb
Create a magnetic gear toy consisting of a gear and a circular base. Construct the gear with a thickness of 4mm. The gear should have 20 teeth, each 8mm wide and 12mm deep, distributed evenly around a central circular body with a diameter of approximately 50.9mm. At the center of the gear, create a vertical hole with...
$fn=40; n=20; h=4; t=8; s=1.5; hd=10; mh=3.3; md=10.1; module tooth() { translate([-t/2, 0, 0]) union() { difference() { translate([t/4+2, 0, 0]) square([t/2+4,2*t/s], true); translate([0, t/s, 0]) scale([1,1/s,1]) circle(d=t); translate([0, -t/s, 0]) ...
glb/cad_96bdcbed0bed.glb
Create a card holder with a flip lid designed to hold cards measuring 54mm by 80mm. Start with a rectangular base plate 3mm thick. Build a main compartment with a floor size of 60mm by 86mm (accounting for a 3mm gap around the cards and 3mm thick walls). The walls should be 12mm high. Construct four walls: two long w...
card_x = 54; card_y = 80; show_logo = "yes"; connectors = "yes"; lid = 1; card_space = 3; wall_thickness = 3; plate_height = 3; wall_height = 12; use_sticky_corners = "no"; shortwall_cut = card_x/(card_y/card_x); shortwall = (card_x-shortwall_cut)/2+wall_thickness+card_space/2; longwall=(card_y-card_x)/2+wall_t...
glb/cad_fb2ee515f1e1.glb
Create a Card Holder with Lid consisting of a main box and a hinged lid. For the main box, start with a rectangular base plate 3mm thick. Build four walls around the perimeter to create a storage area for cards measuring 54mm by 80mm. The walls should be 12mm high and 3mm thick, with a 3mm gap between the cards and t...
card_x = 54; card_y = 80; show_logo = "yes"; connectors = "yes"; lid = 1; card_space = 3; wall_thickness = 3; plate_height = 3; wall_height = 12; use_sticky_corners = "no"; shortwall_cut = card_x/(card_y/card_x); shortwall = (card_x-shortwall_cut)/2+wall_thickness+card_space/2; longwall=(card_y-card_x)/2+wall_t...
glb/cad_31be5206498f.glb
Create a Nema17 Differential Planetary Gear mount consisting of two primary components: a motor spacer and a motor mount. First, create the motor spacer as a plate with a thickness of 2mm. This plate should have a central circular cutout with a radius of 15mm. At the four corners, position four octagonal holes with a...
include <diffplanet1.scad> nema17_hole_spacing=1.2*25.4; nema17_width=1.7*25.4; thickness=10; nema17_support_d=nema17_width-nema17_hole_spacing; motor_mount_rotation=[0,0,0]; motor_mount_translation=[25]; spacerThick=2; difference(){ union(){ difference(){ motor_mount(); translate([0,0,-1]) cylinder(r=19.5, ...
glb/cad_9fdb9103b740.glb
Create a right angle bracket for 2020 extrusions by starting with a central cube measuring 45mm x 45mm x 20mm. Hollow out the center of this cube to create a shell with wall thicknesses of 3mm, but leave the bottom face solid. Remove a large square section from the top corner, rotated 45 degrees, to open the bracket. ...
$fn = 25; length = 45; width = 20; walls = 3; rHole = 2.8; rotate([90, 0, 0]) difference() { cube([length, length, width], center=true); translate([4, 4, 0]) cube([length, length, width-(walls * 2)], center=true); rotate([0,0,45]) translate([length/2 + 3, 0, 0]) cube([length, length + 20, wi...
glb/cad_0aec7cd44272.glb
Create a remote focus attachment for a Newtonian telescope consisting of two primary components: a knob connector and a servo mounting base. First, create the knob connector. Start with a cylinder 39mm in diameter and 15mm high. Around the outer circumference, add 80 small cylindrical knurls. Subtract a central cylind...
what = "a2"; wall = 2.0; knob_inner_dia = 39.0; knob_height = 15.0; knob_knurls = 80; tube_dia = 230; pi = 3.1415926; d = 0.02; module knob() { w = pi * knob_inner_dia / knob_knurls; cylinder(r=knob_inner_dia/2, h=knob_height, $fn=knob_knurls); for (a = [0:360/knob_knurls:360-d]) { rotate([0, 0, a]) transl...
glb/cad_62ff8d114422.glb
Create a Yazzo Nema 17 Motor Slide Mount consisting of two perpendicular plates, each 4mm thick. The first plate is a horizontal slide plate measuring 38mm wide by 43mm deep. Center a 2mm radius hole through the middle of this plate. Additionally, create four rounded slots for M3 screws; each slot is 10mm long and 3m...
goldenratio = 1.618003399; joinfactor=0.25; gDefaultThickness = 4; gDefaultWidth = 48; gDefaultDepth = 43; gDefaultHeight = 38; gDefaultMountHoleRadius = 3/2; gDefaultMountSlotLength = 10; gNema17MountDiagonal = 43; nema17sidemount(gDefaultThickness); module roundslot(length, width, thickness) { cube(size=[width,...
glb/cad_a86b44599c7c.glb
Create a Duck Clip filament holder with a total width of 3mm and a height of 3mm. The main body consists of two parallel arms, each 2mm thick and 10mm long, separated by a gap. These arms are connected at one end by a semi-circular bridge with a radius of 2.5mm and a 24-facet resolution, creating a U-shaped channel. ...
fc_filament=3; fc_spool=2; fc_rim=0; fc_length=10; fc_width=3; fc_thickness=2; difference() { union() { cube([fc_thickness, fc_length, fc_width]); translate([fc_thickness+fc_rim+fc_spool+1, 0, 0]) cube([fc_thickness, fc_length, fc_width]); translate([fc_thickness+(fc_rim+fc_spool+1)/2, fc_...
glb/cad_19185db5008e.glb
Create an LED strip holder by starting with a base rectangular block 135mm long, 8mm wide, and 5mm high. Add two smaller cubic blocks, each 10mm wide, 8mm deep, and 10mm high, at both the far left and far right ends of the base. Remove a thin rectangular slot 3mm wide and 2mm high from the bottom center of the main bas...
number_of_Leds = 8; module LED() { cylinder(r=2.95, h=1, $fn=24); hull() { translate([0,0,1])cylinder(r=2.5, h=5.1, $fn=24); translate([0,0,6.1])sphere(r=2.5, $fn=24); } } render(10) difference() { union(){ translate([0,-4,0])cube([15*number_of_Leds+15,8,5]); t...
glb/cad_d5aa61179d8b.glb
Create a Christmas Light Clip with a total height of 6mm. The design consists of two main connected components: a round clip and a long clip. First, construct the round clip by creating a ring with an outer radius of 6.6mm and an inner radius of 4mm. Cut a pie-slice opening out of this ring at a 66-degree angle to cr...
$fs = .5; $fa = 0.05; clip_z = 6; round_clip_radius_outer = 6.6; round_clip_radius_inner = 4; round_clip_opening_angle = 66; round_clip_pins_x = 10; round_clip_pins_y = 2; long_clip_offset_x = 3; long_clip_offset_y = 2.4 + round_clip_radius_outer; long_clip_radius_outer = 5.5; long_clip_radius_inner = 2.25; long_...
glb/cad_84c2e20302b5.glb
Create a Spool Roller holder consisting of a central base with four protruding arms. The base is a rectangular block 85mm wide (spool width 69mm plus two 8mm walls), 119.3mm long, and 5mm high. At each of the four corners of the base, construct a bearing capture assembly. Each assembly consists of a vertical rectangu...
spool_wall = 3; spool_width = 75 - spool_wall; spool_diameter = 200; hole_diameter = 32; bearing_diameter = 28; bearing_thickness = 10; bolt_diameter = 8; holder_wall = 5; holder_base_height = 5; holder_base_length = 119.3; holder_base_width = spool_width + holder_wall; holder_bearing_width = bearing_diameter; beari...
glb/cad_f4176a0e241f.glb
Create a Parametric Slitting Saw Arbor consisting of two main components: an arbor shaft and a fastening cap. First, create the arbor shaft. The main body is a cylinder with a diameter of 19mm and a total length of 71.5mm. At the top end, create a registration section by removing a central cylindrical core with a diam...
eps = 0.001; include <..\..\lib\threads.scad> SS_13 = 0; SS_16 = 1; TT_M6 = 0; TT_M8 = 1; TT_M10 = 2; TT_M12 = 3; sawType = SS_16; threadType = (sawType == SS_13) ? TT_M8 : TT_M10; rSlittingSawHole = [13.0/2,16.2/2]; rSlittingSaw = (sawType == SS_13) ? 40.0/2 : 80.0/2;; tSlittingSaw = (sawType == SS_13) ? 1.0 : 1....
glb/cad_aa67899fdeb6.glb
Create a dock for an HTC Incredible phone by starting with a solid rectangular block measuring 70mm in length, 40mm in width, and 19mm in height. Carve out a rectangular slot from the top face to create a recessed holding area. This interior cutout should be 65mm long and 17mm wide, centered along the width of the bloc...
incdock(); module incdock() { rotate ([180,0,0]) difference() { cube ([70,40,19]); translate([2.5,13.5,-10]) { rotate ([-5,0,0]) cube ([65,17,25]); } } }
glb/cad_eaea48b7b7a0.glb
Create a Food or Object Pusher consisting of a flat base and a vertical handle assembly. Start with a rectangular base plate measuring 156mm in length, 36mm in width, and 5mm in thickness. At the front end of this plate, add a rectangular block that is 12mm long, 36mm wide, and 41mm high. To create the rounded pushin...
Tray_Length=156; Tray_Side_Length=12; Tray_Thickness=5; Tray_Width=36; Tray_Side_Height=36+Tray_Thickness; Pusher_Radius=(Tray_Length-Tray_Side_Length)/2; Edge_Roundness=100; Handle_Radius=15; Pusher(); module Pusher() { union() { cube(size = [Tray_Length,Tray_Width,Tray_Thickness], center = false); translate([...
glb/cad_1ea225932bbf.glb
Create a customizable water turbine and axle assembly. First, construct the fan by creating a central hub with a hole of 6mm diameter (1.2 times the base hole size) and a height of 70mm. Around this hub, arrange 6 identical fan blades. Each blade is formed by the intersection of a rotated profile consisting of a circ...
part = "fan"; number_of_blades = 6; la=axel_length; use <MCAD/involute_gears.scad> print_part(); module print_part() { if (part == "fan") { form_fan(); } else if (part == "turbine") { form_turbine(); }else if (part == "axel") { form_axel(); }else if (part == "Print all") { form_all(); } } module form...
glb/cad_42e22647e837.glb
Create a Phone Wall Charger holder. Start with a main rectangular body that is 65.2mm wide (PhoneX + 2*WallThickness), 40mm high, and 13.2mm deep (PhoneZ + 2*WallThickness). Hollow out the center to create a pocket for the phone, leaving walls 2mm thick. The interior floor of this pocket should be angled upwards by 2...
PhoneX=61.2; PhoneZ=9.2; Slack=1.0; Height=40; BaseHeight=12; BackAngle=10; InnerAngle=2; WallThickness=2; OutsideBand=4; ChargerX=10.6; ChargerZ=5.8; CSlack=0.2; CScrewDiameter=3.85; CScrewCountersinkDiameter=8; CScrewCountersinkDepth=10; CScrewHoleLeft="Yes"; CScrewHoleRight="No"; holediameter=3; countersink=3; Ho...
glb/cad_ca16a1267988.glb
Create a bowl container cover by starting with a sphere 80mm in diameter. Hollow out the center of this sphere by removing a smaller concentric sphere with a diameter of 71mm. To shape the cover, intersect the remaining shell with a combination of a sphere and a cylinder, ensuring the final piece has a wall thickness o...
diameter = 80; wallThickness = 3; cutOffDiameter = diameter; cutOffDistance = cutOffDiameter * 0.6; angle = 25; cutOffVector = [sin(angle) * cutOffDistance, 0, cos(angle) * cutOffDistance]; zOffset = 0.5 * cos(30) * diameter; handleDiameter = 7; coverInset = 1.5; $fn=100; cover(); module container() { translate([...
glb/cad_2aa99181d445.glb
Create a food or water dish for a bird cage. Start by constructing a rectangular bowl base with outer dimensions of 79mm length, 57mm width, and 46mm height. Hollow out the center of this base to create a container, leaving a wall thickness of 4mm on all sides and the bottom. On the upper exterior of the bowl, add a m...
Base_Length=79; Base_Width=57; Base_Height=46; Wall_Thickness=4; Lip_Length=17; Lip_Width=95; Lip_Height=12; Lip_Flat_Length=8; Perch_Radius=5; Perch_Length=74; Perch_Mount_Length=15; Perch_Mount_Height=8; Perch_Mount_Width=10; Lip_Spacer=10; Perch_Offset=(Base_Width-Perch_Length)/2; Perch_Height_Offset=16; Edge_Roun...
glb/cad_031b83a72d82.glb
Create a soap shaver consisting of a dispenser box and a sliding sled. First, construct the dispenser box as a hollow rectangular shell with outer dimensions of 72mm width, 60mm height, and 37mm depth. The walls should be 6mm thick. The bottom of the box is open, and the front face features a grid of rectangular open...
module soapdispenser(soapw, soaph, soapd, wall, razorw, razorh, slideh, gripd, finger, sled, play, blade ) { difference(){ union() { cube([soapw+wall*2,soaph,soapd+wall*2], center=true); translate([0,-soaph/2 + 3,0]) cube([soapw+wall*2,sled/2,((soapd+wall*2)*2 + gripd)/3 - 2*play], center=true);...
glb/cad_ec7f63da3623.glb
Create a Dipole Antenna Mount consisting of a base plate and a central antenna holder. Start with a rectangular base plate measuring 40mm by 30mm with a thickness of 2mm. Round the two corners on one of the shorter sides with a radius of 10mm. In the center of this plate, create a circular hole with a diameter of 6.3...
use <hve/utils.scad>; dipole_calc([for(i=[300:50:1900]) i, ],1); layer_height = 0.2; $fa=1; $fs=layer_height; tol = layer_height; tripod_fastener = [ 6.35 ]; tripod_base = [ 40, 30 ]; conn_rf = [ 4, 2.7, 8.64 ]; antenna_t = [ 8.5, 3 ]; antenna_fastener = [ 3, 11, 3 ]; wall ...
glb/cad_651238620193.glb
Create a Railroad Happy New Year model. Start by creating a railway track consisting of two parallel rails, each a rectangular prism measuring 150mm in length, 3mm in width, and 7mm in height, positioned 35mm apart. Between these rails, place a series of ten wooden sleepers; each sleeper is a rectangular prism measurin...
translate([0,35,0]) linear_extrude(height=9) text("Happy", size=12, font="Verdana:style=bold"); translate([0,0,0]) linear_extrude(height=9) text("New Year", size=12, font="Verdana:style=bold"); translate([-30,35,0]) cube([150,3,7]); translate([-30,0,0]) cube([150,3,7]); difference() { translate([-30,-5,0]) cube([6,...
glb/cad_6f586095150c.glb
Create a coupling for a Printrbot Errybot. Start with a central rectangular block measuring 30mm x 25mm x 8mm. From this block, remove a central cylindrical channel running through the length of the part; this channel consists of a larger outer cylinder with a radius of 4mm and a smaller inner shaft hole with a radius ...
holeX = 7.5; holeY = 6.5; holeR = 3.4 / 2; nutR = 3.25; nutH = 3; corner_cut = 26; studding_dia = 8.0; shaft_dia = 7.0; module coupling(c){ union(){ difference(){ cube(size = [30,25,8], center = true); if(c==1){ *cube(size = [2,40,30], center = true); ...
glb/cad_a0a411269ef6.glb
Create a parametric cable tie with a total thickness of 3mm. The main body consists of a repeating sequence of 10 segments. Each segment is formed by a central rectangular stem 5mm wide and 12.5mm long, flanked by two semi-circular caps with a radius of 2.5mm centered at the top and bottom of the stem. Remove two circu...
$fn=32; tongueRadius = 2.5; numberOfSegments = 10; thickness = 3; tieWidth = tongueRadius * 4; stemWidth = tongueRadius * 2; stemSegment = tongueRadius * 5; linear_extrude(thickness) tie(); module tie() { for (i = [0:numberOfSegments - 1]) { translate([0, i * (tongueRadius * 4), 0]) tieS...
glb/cad_e12b03a6216f.glb
Create a screen protection plate for the Xiegu X6100 by starting with a solid rectangular base measuring 178mm wide, 96mm deep, and 7mm thick. From this base, remove several sections to create specific cutouts. Carve out a large central rectangular area for the screen measuring 98mm wide and 76mm deep, starting 32mm fr...
difference () { cube([178,96,7]); translate([32,11,-1]) cube([98,76,4]); translate([32,11,-1]) cube([98,12,6]); translate([-1,-1,-1]) cube([10,100,3]); translate([-1,30,-1]) cube([31,38,3.5]); translate([169,-1,-1]) cube([11,100,3]); translate([130,44,-1]) cube([6,8,3]); translate([20.5,21,-1]) cylinder (r = 7.5...
glb/cad_11f53e95eb0d.glb
Create a Bag Clip consisting of a curved, slender strip. The overall length of the clip is 120mm and the width is 9mm. Construct the body as a curved arc with a thickness of 1.6mm. The curvature is defined by a radius that creates a gentle arc across the 120mm length. At one end of the arc, integrate a cylindrical ...
use <write/Write.scad> part = "Inside"; _length = 120.0; _width = 9.0; _outsideThickness = 2.0; _insideThickness = 1.6; _hingeGap = 0.05; _labelText = ""; _labelFont = "write/orbitron.dxf"; _labelThickness = -0.2; _labelHeightPercent = 60; _labelDirection = 1; _labelSpace = 1.1; _curvature = 80; _hingeDia...
glb/cad_ce2e60eddc75.glb
Create a Parametric Ring Light consisting of a housing and a cover. For the housing, create a hollow cylinder with an outer radius of 90mm, an inner radius of 70mm, and a height of 12mm. The walls should be 1.6mm thick. Cut a horizontal hole through the wall to accommodate a bracket that is 10mm high and 5mm wide. Ar...
Which_Part = "housing"; Wall_thickness=1.6; Outer_radius=90; Inner_radius=70; Housing_Height=12; Bracket_height=10; Cover_height=8; Cover_lens_thickness=1.6; Bracket_Length=70; Remove_led_holder="No"; led_radius=5; Number_of_Leds=10; Led_Offset_Angle=0; Led_tilt_Angle=8; Num_clips=6; Clip_width=5.0; Clip_height=...
glb/cad_a39873f4ed10.glb
Create a parametric battery holder designed to house cylindrical cells. The main body is a rectangular enclosure with chamfered edges, featuring a hollow central cavity to hold the batteries. The dimensions of the cavity are based on the cell diameter (d) and length (l), with a wall thickness (w) and a bottom base thic...
create_this_preset="Custom"; n=1; m=1; l=65; d=18; hf=0.75; shd=3; eps=0.28; oh=0; el=0; xchan=[1/4,3/4]; deepen=0; df=1; lcorr=0; ew=0.56; eh=0.25; $fn=24; module END_OF_VARS(){}; presets=[ ["Custom",[1,1,65,18,0.75,3,0.28,0,0,[1/4,3/4],0,1,0]], ["18650Px1",[1,m,70,18.4,0.75,3,0.28,0,0,[1/4,3/4],0,1,0...
glb/cad_64d1a434691b.glb
Create a heat tower for testing filament temperatures. Start with a base plate that is 30mm wide, 57mm deep, and 0.5mm thick. On this base, emboss the text "PlA" and a custom filament name using a font size of 5mm and 3.5mm respectively, with a depth of 0.4mm. Above the base, construct a vertical stack of five cylindr...
temperatures = [195,200,205,210,215]; bridgeH=0.25; footZ=.5; footFilament = "PlA"; footAddText = "name of the filament"; $fn=60; roundR=10; stepH=5; text_depth = 0.4; text_size = 3; text_font = "Helvetica:black"; eps1 = 0.01; module uncut_step() { h1 = stepH + eps1; cylinder(r=roundR, h=h1); translat...
glb/cad_5200a1cb4a21.glb
Create a sheered and rounded cylinder. The object is defined by a height of 10mm and a radius of 10mm. The top and bottom faces are circular, but the entire volume is sheered in the x-y plane by -30 degrees and -45 degrees respectively. The edges and corners of the cylinder are rounded with a radius of 2mm. The final s...
module scube(size= [20,20,20], sheer = [0,0], b=2, center=false) { hull() { assign(sheer_offset = [size[2] * sin(sheer[0]), size[2] * sin(sheer[1]), 0 ]) assign(round_offset = [b,b,b]) assign(isize ...
glb/cad_4291eeeda8c8.glb
Create a 3D model of a Periodic Table plaque. Start with a base rectangular slab measuring 139.5mm in width, 82.5mm in depth, and 6mm in height. On the top surface of this base, construct a grid of raised ribs to form the cells of the periodic table. All ribs should have a thickness of 1.5mm and a height of 4.8mm abo...
scale([3,3,3]){ translate([-1.5,1,-15]){ translate([1.5,-1,15]) cube([46.5,27.5,2]); translate([0,0,-0.01]){ translate([0,2.5,0]){ translate([2.5,5,16]) rotate([0,0,90]) cube([18,.5,2]); translate([5,5,16]) rotate([0,0,90]) cube([18,.5,2]); translate([7.5,5,16]) rotate([0,0,90]) cube([15.5,.5,2]); translate([10...
glb/cad_3748d9aff5ad.glb
Create a Trowel Cap designed to cover a blade. Start by creating a solid rectangular block with a total width of 50mm, a depth of 12mm, and a height of 20mm. All exterior vertical edges and the top horizontal edges should be rounded with a radius of 5mm. Carve a rectangular slot through the top center of the block to ...
$fn=64; w = 40.0; d = 0.65; h = 20.0; e = 5.0; b = 2.0; i = 2.5; module local() { children(); } module profile() { color("blue", 0.1) { translate( [ e - b, (d+2*e)/2-b, 0 ] ) circle( b ); translate( [ e - b, -(d+2*e)/2+b, 0 ] ) circle( b ); translate( [ 0, -(d)/2, 0 ] ) square( [ e, ...
glb/cad_2fb1e0f23166.glb
Create a Kossel Spool Holder by starting with a base rectangular plate measuring 20mm wide, 40mm deep, and 4mm thick, centered on the origin. Atop this base, position a vertical rectangular block measuring 20mm wide, 20mm deep, and 50mm high, centered horizontally and shifted 10mm along the Y-axis so its bottom face si...
$fn=20; module kosselSpoolHolder() { difference() { union(){ cube([20, 40, 4], center = true); translate([0, 10, 24]) cube([20, 20, 50], center = true); } translate([0, -10, 0]) cylinder(r = 3, h = 4, center = true); translate([0, 10, 45]) rotate([0, 0, 60]) cube([8, 30, 8], center = true); } } kosse...
glb/cad_02517c20c613.glb
Create a Power Switch Mount by starting with a central rectangular plate measuring 42mm x 36mm x 4mm, centered on the origin. From this base, remove a central rectangular section of 22mm x 36mm x 4mm and two cylindrical holes with a radius of 2.5mm and a height of 6mm, positioned at x = 17mm and x = -17mm respectively....
$fn=20; module powerSwitch_Mount() { union() { difference() { cube([42, 36, 4], center=true); cube([22, 36, 4], center=true); translate([17, 0, 0]) cylinder(r = 2.5, h = 6, center = true); translate([-17, 0, 0]) cylinder(r = 2.5, h = 6, center = true); } translate([11.5, 0, 15]) cube([3, 36, 34], c...
glb/cad_0ac55d35a8c0.glb
Create a Glass Bed Holder by starting with a central cube measuring 23.3mm on each side and 10mm in height, centered on the origin. From this main block, remove a large cylindrical section with a radius of 130mm and a height of 5mm, positioned with its center at x=133mm, y=0, and z=2.5mm to create a wide curved cutout....
$fn=100; difference() { cube([23.3, 23.3, 10], center = true); translate([133, 0, 2.5]) cylinder(r = 130, h = 5, center = true); translate([-5, 0, 0]) cylinder(r = 3, h = 10, center = true); translate([-5, 0, 2]) cylinder(r = 5, h = 6, center = true); }
glb/cad_7a3adce43725.glb
Create a customizable table sign that reads "RESERVE". Start by constructing a rectangular base measuring 35mm in length, 10mm in width, and 1mm in height. On top of this base, add the text "RESERVE" using a bold sans-serif font with a character height of 40mm. The text must be extruded and tilted backward at a 45-degr...
input_text = "RESERVE"; font = "IrisUPC:style=Bold"; font_size = 10; text_cut_h = 40; base_h = 1; base_l = 35; base_w = 10; convexity = 30; union(){ intersection(){ translate(v=[0,0,-base_h]) cube(size=[base_l,base_w,text_cut_h]); rotate(a=[45,0,0]){ linear_extrude(height=...
glb/cad_de3340fa90b2.glb
Create a tool organizer consisting of eight hollow rectangular compartments with rounded corners, each with a wall thickness of 1.2mm and a base thickness of 1.5mm. Every compartment is defined by its center position (X, Y), overall dimensions (width, depth, height), and a specific outer corner radius. Construct the f...
nozzleSize = .6; wallLines = 2; layerHeight = .25; bottomLayers = 6; cornerRadiusDefault = 5; wallThickness = wallLines * nozzleSize; bottomThickness = bottomLayers * layerHeight; compartments = [ [[30, -30], [60, 60, 50]], [[105 - 2 * wallThickness, -7.5]...
glb/cad_bf806ce3a28c.glb
Create a motor mount consisting of a flat base plate and a vertical support wall. The base plate is a square with a side length of 38.4mm and a thickness of 3mm. In the center of this base, create a circular hole with a radius of 6mm. Position four screw holes with a radius of 1.7mm at the corners of the base, arrang...
screwSpacing = 30; screwHoleRadius = 1.7; nutRadius = 4; centerHoleRadius = 6; thickness = 3; size = screwSpacing + (2*screwHoleRadius+5); w = screwSpacing / 2; difference() { union() { translate([-size/2, -size/2, 1]) cube([size, size+thickness*2, thickness]); difference() { translate([-size/2, size/2-t...
glb/cad_a07510efe53a.glb
Create a ladder connector hook for a vehicle kitchen. Start with a base shape formed by the intersection of a cylinder with a radius of 40.5mm and height of 81mm, and a larger composite volume consisting of a cylinder with a radius of 22.5mm and height of 81mm, combined with a rectangular block measuring 81mm by 45mm b...
difference() { translate([-40.5, 0, 10]) intersection() { union() { difference() { rotate([0, 90, 0]) cylinder(r=22.5,h=81); translate([-1, -25, -50]) cube([100, 50, 50]); } translate([0, -22.5, -10]) cube([81, 45, 10]); } translate([40.5, -40.5, -10]) rotate([0, 9...
glb/cad_4024530d60d7.glb
Create a USB organizer base with a grid of rectangular slots for USB-A connectors. The base is a solid rectangular block with rounded corners, measuring 1.2mm in wall thickness. Arrange the slots in a grid 3 wide by 5 deep. Each individual slot is a hollow rectangular prism with interior dimensions of 12.3mm width, 4...
usb_c = 0; slots_w = 3; slots_d = 5; module usb_cap(w, h, d) { difference() { if (usb_c) { translate([wall + d / 2, 0, 0]) { cube([w - d, d + wall * 2, h + wall]); } translate([d / 2 + wall, wall + d / 2, 0]) { cylinder(h=h + wall, d=d +...
glb/cad_6cf5e6a5db84.glb
Create a Kossel LED headlamp mount. Start with a main outer ring that has an outer radius of 41.2mm and a height of 3.2mm. Hollow out the center of this ring with a concentric cylinder of radius 32mm and a height of 4.2mm, leaving a thin wall and a base. Along the middle of the ring's wall, create 24 evenly spaced rec...
mount_r = 12.5; led_ir = 64/2; led_or = 80/2; n_led = 24; k_res = 3; led_l = 4; led_w = 3.5; res_l = 5; res_w = 1.6; res_ofs = 1; res_thk = 0.4; slack = 0.2; led_thk = 1.6 + res_thk + slack; thk = .42*3; m3_r = 2.85/2 + 0.1; fan_offset = 15; hotend_radius = 8; module oval (r, l, h) { translate([l/2, 0, 0]) hu...
glb/cad_1b89fda67f3a.glb
Create a RAMPS electronic mount for a K250 delta printer. Start with a base plate 3mm thick, defined by a polygon with vertices at [-67.5, 0], [67.5, 0], [84.3, 55.2], [20, 81.5], and [-84.3, 81.5]. Add four conical mounting posts at the RAMPS board hole coordinates: [13.9, 11.9], [96.5, 11.9], [93.9, 51.9], and [15....
$fn=60; X=0.1; mils=0.0254; thick=3; ear_thick=4; openings_thick=3*0.25; board_extra=20; x1=135; y1=60+3.5+board_extra; x2=135+2*tan(30)*y1; l1=y1/cos(30); z=thick+43; r=2; ear_width_right=20; ear_width_left=20; ear_screw_d=5; ear_screw_z=34+ear_screw_d/2; mount_screw=3-0.5; mount_h=4; mount_top_d=mount_scre...
glb/cad_4dfa00831f37.glb
Create a Rostock endstop holder consisting of two symmetrical clips connected by a central mounting wall. Each clip is a hollow cylinder with an inner diameter of 8.5mm and an outer diameter of 12.5mm, standing 20mm tall. Each clip features a rectangular cutout 21.25mm wide and 6.8mm high running vertically through i...
rod_dia=8.5; rod_distance=59.7; material_t=2.0; wall_t=5; holder_h=20; hole_dia=3; cut_in=1; wall_w=rod_distance-material_t*2+rod_dia/2-1; $fn=30; module hex_standoff(){ rotate([90,0,0]){ translate([-rod_dia*0.66,holder_h/2,0]){ difference(){ cylinder(r=holder_h/1.75,h=rod_dia+material_t,center=...
glb/cad_d759bb50db04.glb
Create an SSD Holder designed to organize rectangular drives. The main body is a solid block with a total width of 82mm, a depth of 78mm, and a height of 43mm. The structure features 8 parallel slots. Each slot is 9.3mm wide and 74.3mm deep, separated by inner walls that are 2mm thick. These slots are carved into the...
Show_SSD = false; Double = false; Inner_Wall = 2; Outer_Wall = 3; Clearance = 0.3; Slot_Count = 8; SSD = 0; Slot_Depth = 20; Slot_Z_Step = 5; Custom_Height = 76; Custom_Width = 57; Custom_Thick = 10; echo(Custom_Thick); if (Double) { One(); translate([0,Outer_Wall]) mirror([0,1]) One(); } else { O...
glb/cad_394d2895a592.glb
Create a replacement controller button consisting of a base interface and a top knob. Start by creating a rectangular base interface measuring 2.7mm by 5.9mm with a height of 8mm, centered on the origin. Above this, add a square connector measuring 6mm by 6mm with a height of 7.5mm. On top of the connector, place a re...
height_interface = 8; knopf_breite = 15; knopf_laenge = 24; knopf_hoehe = 8; knopf_offset = 10; hoehen_offset = 5.5; radius_for_cutaway = 45; radius_finger_cutaway = 25; $fn=90; translate([0,0,-height_interface/2]) difference() { cube([2.7, 5.9, height_interface],center=true); cube([2.7, 2.0, height_interface]...
glb/cad_4e665d535ea1.glb
Create a Carrera Go track repair pin consisting of two main components: a connector pin and a glue-on base. First, construct the connector pin. Start with a rectangular base measuring 8.85mm wide by 3.85mm high. The pin has a total length of 21.6mm. The first 14.1mm of the pin is a consistent rectangular prism. The r...
wall_thickness = 2.0; length_of_pin = 19.6+wall_thickness; width_of_pin = 8.85; height_of_pin = 3.85; length_chamfer = 5.5; pin_height_offset = 0.25; width_addon_left = 2.2; width_addon_right = 4.0; glue_part_length=19.0; diameter_glue_gaps=0.8; $fn = 90; difference() { translate([0,0,height_of_pin/2+pin_hei...
glb/cad_be8c0ad88adc.glb
Create an Esteps calibration block by starting with a solid rectangular prism measuring 20mm wide, 20mm deep, and 30mm high. From this main body, remove a horizontal cylindrical hole with a radius of 6mm and a length of 30mm, centered at a depth of 10mm and positioned to pass completely through the block from one side ...
difference() { cube([20,20,30]); translate([-2,10,10]) rotate([0,90,0]) cylinder(r=6,h=30); translate([-1,-1,20]) cube([22,11,11]); }
glb/cad_311346d320ca.glb
Create a thumb z-crank handle with a total height of 10mm. Start with a central cylindrical base that has an outer diameter of 20mm and a central bore hole 7.5mm in diameter passing through the center. From this base, extend a shaft 40mm in length. The shaft should have a width of 10mm and a height of 10mm, featuring...
%translate([0, -2, 0]) rotate([0, 0, -90]) import_stl("thumbcrank.stl", convexity = 5); roundness = 2.5; width = 10; height = 10; length = 40; fingerlength = 8; bore = 7.5; module round(width = 50, height = 30, r = 10, center = false) translate([0, ((center == true) ? (-height / 2) : 0), 0]) union() { translate([-r,...
glb/cad_168ca8ea8720.glb
Create a Shop Vac Tube Wall Hook consisting of a mounting plate and a supporting hook. Start with a rectangular wall plate 8mm thick, 66.3mm wide, and 100mm high. Center a 5mm diameter hole through the plate at both the top and bottom, inset 8mm from the edges. To allow the plate to sit flush against a wall, create t...
handle_dia = 58.3; mount_height = 100; wall = 4; drop = 10; tab_thickness = 8; hole_dia = 5; hole_inset = 8; wedge_x_offset = 6; fancy_plate = 0; wedge_height = 60; wedge_width = handle_dia+2*wall; wedge_depth = handle_dia+2*wall; radius = wedge_width/15; fn=100; module wedge(){ polyhedron( points = [ [0,-wedge_wid...
glb/cad_8dd8b5af8ec4.glb
Create a Symmetric-hinge Polygon Element in the shape of a hexagonal prism with a height of 5.6mm. The main body is a regular hexagon with a circumradius of approximately 12mm. On each of the six flat side faces of the hexagon, add a symmetric hinge assembly. Each assembly consists of two mirrored sets of three inter...
module nub(h=2,k=5,r=10,r1=5,l=1.2) difference() { union() { cylinder(k,r1,0,$fn=30); translate([0,0,-h]) { cylinder(r=r,h=h,$fn=30); translate([0,-r,0]) cube([r+l,2*r,h]); translate([-r,0,0]) cube([r,r,h]); } } translate([0,0,-h]) cylinder(k,r1,0,$fn=30); } module rack(n=5,space=4,clear=0...
glb/cad_0e39fb8f6e8a.glb
Create a grid of small parts drawer contents tags. Each individual tag consists of a thin rectangular base and a slightly thicker central body. The base is a flat plate measuring 65.8mm wide, 12.7mm high, and 0.6mm thick. Centered on this base is a raised rectangular section that is 64.8mm wide, 12.7mm high, and 1.5mm ...
test = false ; width = 66; height = 12.8; slack = 0.2; depth = 1.5; depth_rail = 0.6; rail = 1; xsize = 245; ysize = 245; separation = 3; function capacity(bed, item, distance) = test?0:floor((bed+distance)/(item+distance)-1); lines = capacity(ysize, height, separation); rows = capacity(xsize, width, separation...
glb/cad_3a05eaa017d1.glb
Create a set of replacement midi keyboard keys for a Kawai mdk61. The model consists of a main arm holder and several individual key arms. First, create the arm holder as a rectangular block measuring 159.2mm in length, 14.2mm in width, and 5.7mm in height. Within this block, carve out a central rectangular channel 7....
$fn = 32; roundness = 0.5; arm_holder_length = 159.2; arm_holder_width = 14.2; arm_elevation = 8; arm_holder_inner_height = 4.55; arm_holder_outer_height = 5.7; arm_holder_small_hole_y_distance = 4.65; arm_holder_big_hole_y_distance_1 = 2.3; arm_holder_big_hole_y_distance_2 = 3.6; arm_holder_key_distance = 3.8; ar...
glb/cad_b2dffefee1f4.glb
Create a parametric miniature shovel for a formicarium. Start by constructing the main shovel head as a hollowed-out body with a width of 15mm, a length of 15mm, and a height of 8mm. The bottom and side edges of the head should be sharp to reach into corners, while the front face is rounded with a radius of 4mm. The wa...
w=15; l=15; h = 8; wall=0.5; cyl_height = 6; toothpick_d = 2.1; tp_tol = 0.2; cyl_wall = 1; tp_angle=15; $fn=48; sph_r = h / 2; cyl_h = cyl_height + sph_r; tp_d=toothpick_d + tp_tol; module cyl() { translate([-(sph_r-tp_d/2-cyl_wall),0,0]) rotate([0,-tp_angle]) difference() { cylinder(cy...
glb/cad_a1c0ced31784.glb
Create a Toothed Pulley module consisting of a cylindrical base, a toothed sprocket body, and internal mounting hardware. Start with a cylindrical base of 20mm diameter and 8mm height. Centered vertically through the entire model, create a drive shaft hole with a diameter of 5.2mm. Within the base, create a hexagonal ...
$fn = 30; Sprocket_H = 12; Upper_Detent_D = 6; Upper_Detent_H = .5; Base_Ena = true; Base_H = 8; Base_CrnrRnd = true; Base_D = 20; Base_R = Base_D/2; Retnr_T = false; Retnr_B = false; Retnr_T_H = 1.5; Retnr_B_H = 1.5; T_Ena = true; T_OD = 10; T_Prof_Idx = 5; T_Count = 8; DShaft_D = 5.2; DShaft_F = ...
glb/cad_d795cf6d4453.glb
Create a Hydroponics Plug consisting of two concentric cylindrical sections. First, create a wide, flat base cylinder with a radius of 35mm and a height of 4mm. Centered on top of this base, create a taller hollow cylinder with an outer radius of 21mm and a total height of 15mm. This upper cylinder must be hollowed out...
plug_height=15; plug_lid_height=4; plug_min_rad=21; plug_max_rad=35; difference() { translate([0,0,plug_height/2]) cylinder(h=plug_height,r=plug_min_rad,center=true); translate([0,0,plug_height/2+plug_lid_height]) cylinder(h=plug_height,r=plug_min_rad-5,center=true); } translate([0,0,plug_lid_height/2]) cylinder(h=p...
glb/cad_e602be8ca4bf.glb
Create a Mendel frame vertex foot with a total height of 12.9mm. The main body is based on a linear extrusion of a specific vertex profile. Integrate a rectangular foot extension measuring 15mm by 20mm centered at the base. Within the main body, create several vertical cylindrical cutouts to accommodate hardware: pla...
include <configuration.scad> m8_horizontal=8.4+0.5; vfvertex_height=m8_horizontal+4; basefoot=true; flip =1; module vertex(with_foot=basefoot){ translate ([0,0,vfvertex_height/2])difference() { union () { dxf_linear_extrude(file = "vertex-body-fixed-qcad.dxf",height=vfvertex_height,center=true); if (with_foot)...
glb/cad_d007267914a6.glb
Create a woven surface plate consisting of a grid of interlocking strips. The overall woven area should be 10 cells wide by 7 cells high. Each cell is based on a 4x4 unit grid. The surface is composed of two sets of perpendicular strips, each with a thickness of 1mm. The strips follow a repeating over-under weaving pa...
Center = true; WWid = 10; WHit = 7; Fr_Wid = 0; Fr_Thk = 1; Weave(WWid, WHit, Fr_Wid=Fr_Wid, Fr_Thk=Fr_Thk, Center=Center); module Weave(WWid=3,WHit=3,Fr_Thk=1,Fr_Wid=0,Center=false) { th=.51; p= [[0,0],[1,0],[2,.5],[3,.5],[4,0],[5,0], [5,th],[4,th],[3,.5+th],[2,.5+th],[1,th],[0,th]]; BT = [Fr_Wid...
glb/cad_b5b922bd87ee.glb
Create a sculpture consisting of two mirrored, complex geometric forms positioned at x=-30 and x=30. Each form is based on a central body created by the intersection of a 15mm thick extruded triangle (vertices at [-20,0], [20,0], and [0,90]) and a cone with a base radius of 30mm tapering to 0 over a height of 93mm, fur...
$fn = 30; translate([-30,0]) Cone1(); translate([30,0]) Cone2(); module MirrorCopy(M) { children(); mirror(M) children(); } module Cone2() { difference() { Body(); MirrorCopy([1,0]) translate([10,50,16]) sphere(d=20); translate([7,45,-5]) rotate([0,180]) linear_ext...
glb/cad_470584150974.glb
Create a sonic screwdriver tip by assembling a vertical stack of geometric primitives. Start with a base cylinder that has a radius of 6mm and a height of 20mm. Centered on top of this cylinder, place a sphere with a radius of 8.5mm. Above the sphere, add a smaller cylinder with a radius of 3.5mm and a height of 5mm. F...
$fn = 36; rh=20; translate([0,0,rh]) union() { translate([0,0,12]) sphere(r=4.8); translate([0,0,6]) cylinder(r=3.5,h=5); sphere(r=8.5); translate([0,0,-rh]) cylinder(r=6,h=rh); }
glb/cad_209139e72590.glb
Create a customizable round gasket ring by revolving a circle around a central axis. The cross-section of the ring should be a circle with a diameter of 3mm. Position this circular cross-section so that the outermost edge of the resulting torus reaches a total outer diameter of 10mm. The final shape should be a smooth,...
outer_diameter = 10.0; gasket_diameter = 3.0; gasket_radius = gasket_diameter/2; rotate_extrude(convexity = 10, $fn = 100) translate([outer_diameter-gasket_radius, 0, 0]) circle(r = gasket_radius, $fn = 100);
glb/cad_c67e7fb6aa00.glb
Create a spool holder designed to fit a spool with an inside diameter of 56.5mm and a thickness of 6mm, centered around a standard skateboard ball bearing with an outer diameter of 22mm and a thickness of 7mm. Start by creating a main cylindrical body with a radius of 30.25mm and a height of 8mm. Within this body, cr...
spool_inside_diameter = 56.5; spool_tickness = 6; save_pla = 1; locking_ring = 1; $fn = 100; ball_bearing_tickness = 7; ball_bearing_diameter = 22; spool_holder_tickness = 2; spool_inside_radius = spool_inside_diameter * 0.5; inside_diameter = ball_bearing_diameter + ball_bearing_diameter * 0.75; inside_radius = in...
glb/cad_e7ee2893811d.glb
Create a Yazzo UClip keyed connector. Start by forming a U-shaped channel consisting of two parallel outer walls and a connecting base. The two outer walls should each be 3mm thick and 25.4mm deep. These walls are connected by a base plate that is 25.4mm long and 6.5mm wide, creating a total width of 12.5mm across the ...
joinfactor = 0.25; goldenratio = 1.61803399; gDefaultKeyBase = 12; gDefaultKeyTop = 6; gDefaultKeyHeight = 6; keyedshelfclip(2*25.4, 1*25.4, 6.5, 3); module trapezoidkey(base, top, height, thickness) { linear_extrude(height=thickness, center=true, convexity=10, twist=0) polygon( points=[ [-base/2, -height/2], [base/...
glb/cad_af7d15238f89.glb
Create a stained glass circular jig by constructing a composite shape and rotating it 360 degrees around the Z-axis using a 6-sided polygonal resolution. The base profile to be rotated consists of two parts: first, a rectangle measuring 50mm in length and 2.5mm in height, positioned with its top edge aligned to the X-a...
radius = 50; angle = 10; module mal(rad=5,angle=10){ triangle_points =[[0,0],[radius,0],[radius,radius*sin(angle)]]; triangle_paths =[[0,1,2]]; union(){ polygon(triangle_points,triangle_paths,10); translate([0,-2.5,0]) square([radius,2.5],false); }} rotate_extrude(angl...
glb/cad_88c742cf0152.glb
Create a gMax 1.5 y-axis endstop bracket by starting with a rectangular base measuring 28mm wide, 36mm deep, and 3mm thick. Drill a circular hole with a radius of 3.175mm centered at x=14mm and y=9.5mm, passing completely through the base. Create two additional smaller holes, each with a radius of 2mm and a depth of 3m...
$fa = 5; $fs = 0.01; function inToMm(inches) = inches * 25.4; module yAxisEndstop() { difference() { cube([28, 36, 3]); translate([14, 9.5, 0]) { cylinder(r=inToMm(1/8), h=3); } translate([4.625, 32, 0]) { cylinder(h=3, r=2); translate([18.75, 0, 0]) { cylinder(h=3, r=2); } } } transla...
glb/cad_ec991a95e131.glb
Create a snap-in support for a rectangular LED. Start with a main cylinder that has a radius of 4.5mm and a height of 8mm, centered on the origin. Carve a rectangular slot through the center of this cylinder that measures 5mm wide, 2mm deep, and 9mm high to accommodate the LED. To create the snap-in mechanism, remove...
ledX=5; ledY=2; ledZ=7; drill=7; rand=1; fnf=100; module ledR( x=ledX, y=ledY, z=ledZ ) { cube( [x,y,z], center=true ); } module ledRMount( d=drill ) { difference() { cylinder( r=d/2+1, h=ledZ+1, $fn=fnf, center=true ); ledR( z=ledZ+2); for( i=[0,120,240] ) { rotate([0,0,i]) translate([0,-d/2,-rand]) cube...
glb/cad_8f597cbaef65.glb
Create a Z-axis endstop holder for a mechanical switch. Start with a central rectangular block 17mm wide, 22mm long, and 8mm high. Centered on this block, create a vertical cylindrical cutout with a radius of 4mm that passes through the entire height. On one side of the block, attach a mounting plate that extends 8.5m...
tol=0.1; $fn=40; width = 17; length=22; switch_plate_length=2; switch_plate_height=3; overhang=8.5; m3_diameter=3.4; holder_hole_spacing=18.8; module makerbot_plate(mp_height=12.5) { difference() { union() { cube([width+overhang,3,mp_height]); translate([3.3,3,mp_height-3]) rotate([90, 0, 0]) cylin...
glb/cad_1be28882ad2e.glb
Create a RUMBA electronic mount for a K250 printer. Start with a base plate 3mm thick, defined by a polygon with vertices at [-67.5, 0], [67.5, 0], [83.5, 43.3], [13.5, 90], and [-83.5, 90]. In this plate, create four mounting holes for the RUMBA board at coordinates [-57, 50], [78, 50], [78, 85], and [-57, 85], each w...
$fn=60; X=0.1; DEBUG=0; thick=3; ear_thick=4; openings_thick=3*0.25; x1=135; y1=75+15; x2=135+2*tan(30)*y1; l1=y1/cos(30); z=thick+43; r=2; ear_width_right=20; ear_width_left=20; ear_width_left_fan=30; ear_screw_d=5; ear_screw_z=34+ear_screw_d/2; mount_screw=3-0.5; mount_h=4; mount_top_d=mount_screw+2; mount_...
glb/cad_83f32d9638ab.glb
Create a RUMBA electronic mount for a K250 printer. Start with a base plate 3mm thick, defined by a polygon with a width of 135mm at its narrowest point and extending to approximately 155mm at the top. Cut several rectangular openings into this plate to reduce weight and material. Add four mounting pillars to the plat...
$fn=60; X=0.1; DEBUG=0; thick=3; ear_thick=4; openings_thick=3*0.25; x1=135; y1=75+15; x2=135+2*tan(30)*y1; l1=y1/cos(30); ear_z=thick+39; fan_z=thick+41; r=2; ear_width_right=20; ear_width_left=20; ear_width_right_fan=30; ear_screw_d=5; ear_screw_z=33; mount_screw=3-0.25; mount_h=4; mount_top_d=2*mount_screw...
glb/cad_fec139677e0d.glb
Create a Printer Calibration model consisting of four distinct geometric parts, all with a height of 2mm. First, create two identical comb-shaped structures. Each comb consists of a base rectangular bar measuring 2mm wide by 47mm long, with ten perpendicular teeth extending from it. Each tooth is 24mm long and 2mm wide...
line_w=2.0; line_l=12.0; line_h=2.0; space_scale=0.1; module test_spaces() { translate([line_l+line_w,0,0]) union() { translate([-line_w,0,0]) cube(size=[2*line_w,10*line_w+space_scale*9*10/2,line_h],center=false); for(i=[0:9]) { translate([-line_l,(line_w+space_scale)*i+space_scale*(i-1)*i/2,0]) cube(size=[2...
glb/cad_cbd4981d2012.glb
Create a Seaming Measuring Gauge for sewing, consisting of four rectangular plates of 2mm thickness, joined at a central hub. Each plate serves as a specific measurement guide. First, create a rectangle measuring 50.8mm by 31.75mm (2 by 1 1/4 inches). Second, create a rectangle measuring 45.72mm by 15.875mm (1 3/4 by ...
$EC = .3; SF = 2*25.4; SF1 = 25.4; Thk=2; FS = 4; difference() { Body(); translate([0,0,-.01]) cube([SF/4,1,10],center=true); cube([1,SF/4,10],center=true); } module Body() { Square([1,5/8],"2","1 1/4"); rotate(-90) Square([9/8,1/4],"2 1/4","1/2"); rotate(-180) difference() { Squar...
glb/cad_a27d7b168718.glb
Create a Seaming Measuring Gauge for sewing, consisting of four rectangular plates of 2mm thickness joined together. The first plate is a square measuring 16.13mm by 16.13mm (5/8 inch). The second plate is a rectangle measuring 28.575mm by 6.35mm (1 1/8 by 1/4 inch). The third plate is a rectangle measuring 35.225mm by...
$EC = .3; SF = 25.4; Thk=2; FS = 3; difference() { Body(); translate([0,0,-.01]) cube([SF/4,1,10],center=true); cube([1,SF/4,10],center=true); } module Body() { Square([1,5/8],"1","5/8"); rotate(-90) Square([9/8,1/4],"1 1/8","1/4"); rotate(-180) difference() { Square([11/8,3/4],"1 ...
glb/cad_28f23e4e3b59.glb
Create a Loop Support cable strap holder. Start by constructing the main body as a 20mm by 13mm rectangular block with a height of 10mm. The corners of this block should be rounded with a radius of 1.5mm. Cut a rectangular slot through the center of the body, measuring 13mm by 16mm, leaving a solid central bridge. In...
$fn=30; $EC = .3; Scale_X = 1; Scale_Y = 1; Scale_Z = 1; Scale_Loop = 1; Bevel = false; Screw_D = 6; Screw_HD = 10.5; Head_Z = 2.4; Scale = [Scale_X,Scale_Y,Scale_Z]; module MirrorCopy(M) { children(); mirror(M) children(); } module CornerCopy(x,y) { translate([x,y]) children(); translate([-x,y...
glb/cad_51e26ffadb34.glb
Create a simple rectangular parallelepiped with a width of 79mm, a depth of 32mm, and a height of 20mm. Ensure the shape is a solid block with flat faces and sharp right-angled edges.
height=20; width=79; depth=32; CenterOnPlate=false; cube([width,depth,height],CenterOnPlate);
glb/cad_875c3431f2a4.glb
Create a Yazzo Notched Motor Mount by constructing a hollow rectangular sleeve with a keyed attachment. Start with a solid outer block measuring 48mm in width, 48mm in depth, and 12mm in height. From the center of this block, remove a rectangular section measuring 42mm by 42mm and 12mm high to create a sleeve with a wa...
joinfactor=0.25; goldenratio = 1.61803399; gDefaultKeyBase = 12; gDefaultKeyTop = gDefaultKeyBase/goldenratio; gDefaultKeyHeight = gDefaultKeyBase/goldenratio; keyedRectangleHolder(42, 42, 12); module trapezoidkey(base, top, height, thickness) { linear_extrude(height=thickness, center=true, convexity=10, twist=0) po...
glb/cad_6e5b0d8ae5d8.glb
Create a Rover Wheel by starting with a central hub and outer rim connected by spokes. First, create the main body by taking a sphere with a diameter of 50mm and slicing it with two parallel planes to create a disc with a total thickness of 15mm. Hollow out this disc by removing a concentric cylinder with a diameter of...
hub_diameter = 15.0; shaft_diameter = 4.0; wheel_diameter = 50.0; wheel_thickness = 15.0; wheel_wall = 3.0; no_of_treads = 8; tread_x = 5.0; tread_y = 3.0; no_of_spokes = 5; spoke_width = 5.0; module spokes() { spoke_len = (wheel_diameter - wheel_wall) / 2; for (i = [0:no_of_spokes]) { rotate(a = i * 360 / no_of_s...
glb/cad_a3f827f725eb.glb
Create a tripod quick release plate. Start with a main rectangular body that is 41mm wide, 41mm long, and 7mm thick. Extend the length of this body to 50mm by adding a rectangular section that is 6mm thick, 50mm wide, and 41mm long, positioned so it is centered along the width of the base. To create the tapered profi...
size = 41; height = 7; plateLength = 50; angle = 30; opposite = tan(angle) * height; echo(opposite); difference() { union() { translate([height+2,-(plateLength - size)/2,0]) cube([6,50,41]); hull() { cube([2,size,size]); translate([height+2,opposite,0]) cube([1,size-2*opposite, size]); } } translate([-1,size/2...
glb/cad_c8ac71560e31.glb
Create a paddle consisting of a long handle and a wide blade. Start by creating a vertical cylinder for the handle with a radius of 1mm and a height of 40mm. Place a sphere with a radius of 1mm centered on the top end of this cylinder. For the lower blade section, construct a geometric hull that blends a small cylinder...
scale = 1.0; detail = 50 * scale; H = 40 * scale; R = 1 * scale; W = 5 * scale; translate([0, 0, 0]) color("limegreen") cylinder(h=H, r=R, $fn=detail); translate([0, 0, H]) color("lightgrey") sphere(r=R, $fn=detail); hull() { translate([0, 0, 0]) color("lightblue") cylinder(h=1, r=R, $fn=detail); tr...
glb/cad_745c31b6840f.glb
Create a Christmas tree pine tree ornament by constructing a spiraling, conical structure composed of thin rectangular plates. Start by placing a rectangular plate measuring 50mm by 2mm by 1mm centered at the origin. Generate a series of 96 additional plates, each 1mm thick and 2mm wide, stacked vertically with a 1mm i...
cube([50,2,1],center=true); rotate(90) cube([50,2,1],center=true); for (i = [1:96]) { rotate(i * 2) translate([0, 0, i * 1]) cube([50 - (1 * i),2,1],center=true); rotate(90 + i * 2) translate([0, 0, i * 1]) cube([50 - (1 * i),2,1],center=true); } translate([0,0,51]) sphere(r=3);
glb/cad_38dc9909f11d.glb
Create a Christmas tree pine tree ornament by stacking a series of thin rectangular plates. Start with a base plate measuring 50mm by 2mm by 1mm, centered on the origin. Create a stack of 95 additional plates, each 1mm thick, where each subsequent plate is slightly shorter than the one below it, decreasing in length by...
cube([50,2,1],center=true); for (i = [1:96]) { rotate(i * 2) translate([0, 0, i * 1]) cube([50 - (1 * i),2,1],center=true); } translate([0,0,51]) sphere(r=3);
glb/cad_2b51858f1ed2.glb
Create a bicycle lamp mount consisting of a main body and a clamping rail. Start with a central rectangular block measuring 15mm wide, 58mm long, and 20mm high. At the bottom of this block, carve out a semi-cylindrical channel with a radius of 10mm that runs the full length of the 58mm side. On top of this base, cente...
halterbreite = 18; basis = 15; halterlaenge = 58; halterhoehe = 20; schienendicke = 7; rillenbreite = 4.1; stangendicke = 22.2; bohrungklammer = 4; union() { color([0,0,1],0.7)translate([0,0,halterhoehe/2+schienendicke/2]) difference() { translate([0,0,0])cube([halterbreite,halterlaenge,7],center=true); translate([...
glb/cad_4dc97e63d899.glb
Create a customizable hook with a width of 15mm and rounded edges with a radius of 0.5mm. Start by creating a vertical rectangular base that is 4.7mm thick and 50mm tall. At the top of this base, attach a horizontal rectangular arm that is 8mm thick and 4.7mm tall, extending outward. From the bottom of the vertical bas...
$fn=50; wall_thickness = 8; hook_thickness = 4.7; hook_totalheight = 50; hook_height = 20; hook_width = 15; hook_depth = 10; hook_wall_cliplength = 30; edge_radius = 0.5; radcube(hook_thickness, hook_totalheight, hook_width, edge_radius); translate([hook_thickness-2*edge_radius, hook_totalheight-hook_thickness, 0]) ...
glb/cad_0bbda5f7d5bc.glb
Create a parametric filament ruler for a spool with an outer diameter of 195mm, inner diameter of 78mm, and width of 55mm. The main body consists of a base plate and a vertical rule. The base plate is a rectangular block with a width of 44mm (80% of the spool width), a height of 30mm, and a thickness of 3mm. Attached t...
Spool_id="Sunlu 1kg"; D_outer=195; D_inner=78; Width=55; Roll_len_m=330; dia=1.75; vof=0.75; rule_text_height_mm=4; calculate_in="m"; report_at=[0,20,50,150,333]; add_10m_notch="yes"; rule_w=25; rule_t=3; rule_h=30; base_width_ratio=0.8; module stop_customisation(){} function calc_offset(fl_0)= (D_...
glb/cad_39e1eb449d63.glb
Create a 2020 Wire Holder by constructing a thin, square plate. The plate should measure 10mm in width, 10mm in length, and 0.5mm in height.
module wireHolder2020() { cube([10,10,.5]); } wireHolder2020();
glb/cad_6082f4cfc86e.glb
Create an ergonomic support for an Apple Magic Trackpad designed for a right-handed user. The main body is a wedge-shaped platform with a base width and depth of 133mm. Tilt the platform at a 15-degree angle. Construct a recessed cup to hold the trackpad. The back wall of this cup should be 6.5mm high, featuring a rou...
angle = 15; handed = "right"; wrist_rest = "yes"; wrist_rest_length = 8; $fn=75; $o = .1; trackpad_platform(angle, handed); module round_corner() { difference() { translate([-5,-5,0]) cube([10,10,200]); translate([5,5,-1]) cylinder(r=5, h=202); } } module lower_wall2(d) { t = 1; ...
glb/cad_265020bfaef8.glb
Create a campus rung with a total length of 100mm, a height of 30mm, and a depth of 22mm. The main body is a block where the gripping surface is angled backwards by 5 degrees. All edges must be rounded with a fillet radius of 4mm. On the front face, engrave the text "Customcampusrungs by Jvte" and " d:22 a:-5 r:4" cen...
echo(version=version()); font = "Liberation Serif"; rung_depth = 22; rung_length = 100; rung_height = 30; letter_size = rung_height/5; letter_height = 5; resolution = 45; text_offset = rung_depth / 2 - letter_height / 2; mount_holes = 4; mount_radius_hole = mount_holes/2; mount_radius_chamfer = (mount_holes/2)*1...
glb/cad_c4b5e7fcba2d.glb
Create a Playmobil pin repair solution consisting of a central rectangular block with two cylindrical pins extending from its ends. Start by creating a main rectangular block with a width of 57.5mm, a depth of 7mm, and a height of 2.85mm, centered on the origin. At each end of the block, add a cylindrical pin with a ...
$fn=90; breite=57.5; tiefe=7; stift_durchmesser=2.85; stift_laenge=3.3; stift_offset=0.5; stift_hoehen_offset=0.4; diameter_glue_gaps=0.8; difference() { cube([breite, tiefe, stift_durchmesser],center=true); translate([0,(tiefe-stift_durchmesser)/2-stift_offset,0]) for (a = [-tiefe/(6*diameter_glue_gaps) : tie...
glb/cad_e9619c83fc5f.glb
Create a decorative band for a container by constructing a hollow square prism. Start with a solid cube measuring 90mm x 90mm x 75mm. Remove a central rectangular volume to create a frame with a wall thickness of 15mm on all sides. The resulting interior void should measure 60mm x 60mm and extend through the full 75mm ...
makex(15,0.25,band); module makex(cube_size,overlap,inverse_set) { difference() { cube([6*cube_size,6*cube_size,5*cube_size]); union() { for (i = [0:1:len(inverse_set)-1]) { x = cube_size*inverse_set[[i][0]]; { translate(v=x) cube(cube_size+overlap); } }}}} module make_piece(size_piece,size_center,o...
glb/cad_113726a00e13.glb
Create a Billy Bookcase Pole Clip designed to hold a curtain rod. Start by constructing a C-shaped hook that grips a shelf. The hook consists of two parallel plates, each 30mm long, 20mm wide, and 4mm thick, separated by a 20mm gap to accommodate the shelf thickness. These plates are connected by a 4mm thick vertical b...
thickness = 4; width = 20; length = 30; shelf = 20; Clip_Diameter = 13; Clip_Thickness = 20; $fn=100; TZT_Rad=Clip_Diameter/2; TZT_Thk=Clip_Thickness; repeats = 5; zigzag_thickness = 5; longEdgeLength = Clip_Thickness; shortEdgeLength = 20; thickness2 = zigzag_thickness / 10; shortEdgeLength2 = shortEdgeLengt...
glb/cad_2f7c9ddb26fd.glb
Create a PCB holder by starting with a main rectangular block measuring 54mm wide, 90mm long, and 7mm thick. From this base, remove a central rectangular section 51mm wide, 72mm long, and 1.8mm deep to create a recessed channel for the board. Additionally, remove two rectangular sections, each 55mm wide and 25mm long w...
module bla() { translate([0,-32.5,0]) difference() { translate([0,0,-1]) cube([54, 90,7], center=true); cube([51, 72, 1.8], center =true); cube([55, 65,7],center=true); translate([0,50,0]) cube([55,25,7],center=true); translate([0,-50,0]) cube([55,25,7],center=true); translate([20,41,0]) cyli...
glb/cad_891e366bde94.glb
Create a customizable cube with a width of 20mm, a length of 20mm, and a height of 10mm. Center the cube on the origin. From the top center of the cube, remove a cylindrical hole with a radius of 1mm and a depth of 5mm, extending downwards into the body of the cube.
cube_size_width = 20; cube_size_length = 20; cube_size_height = 10; function BEZ03(u) = pow((1-u), 3); difference() { union() { translate([0, 0, cube_size/2]) cube([cube_size_width,cube_size_length,cube_size_height], center=true); if (show_wheels == "yes") { translate([0, 0, cube_size/2]) rotate([0, 9...
glb/cad_39ec075e793a.glb
Create a Genome Preservation Capsule by constructing a spherical puzzle composed of multiple interlocking parts. Start with a sphere of radius 30mm. This sphere is divided into several identical segments by removing three mutually perpendicular rectangular slabs, each with a width of 30mm and a length and height of 60m...
module sphere_puzzle(R, tol) { x=R*cos(45); rotate([-90,0,]) difference(){ sphere(r=R); translate([0,0,-R]) cube(size=[R,2*R,2*R+tol],center=true); translate([0,-R,0]) cube(size=[R,2*R+tol,2*R],center=true); rotate([-45,0,0]) translate([0,0,-2*R]) cube(size=4*R,center=true); translate([0,0,R+x]) cube(...
glb/cad_45c4f84d5e23.glb
Create a customizable sphere with a radius of 20mm. The sphere should be constructed with a low facet resolution of 10, resulting in a faceted, polyhedral appearance rather than a smooth surface. Ensure the geometry is centered on the origin.
sphere_radius=20; sphere_resolution=10; sphere(r=sphere_radius,$fn=sphere_resolution, center=true);
glb/cad_9f694a6e52e6.glb
Create a PC support foot consisting of a hollow tapered sleeve and a top cap. Start by constructing a hollow four-sided shell with a height of 100mm. The base of this shell is a square measuring 40mm by 40mm, which tapers outward to a top square measuring 52mm by 52mm. The walls of this shell must be 2mm thick. On top ...
h = 100; b = 40; s = 1.3; thikness = 2; incastro = 20; union(){ linear_extrude(height = h, scale = s) difference(){ square([b, b], center = true); square([b-thikness, b-thikness], center = true); }; translate([0,0,h]){ linear_extrude(height = thikness, scale = ...
glb/cad_5401ef3f23b6.glb
Create a parametric electric board holder consisting of two identical symmetrical clips positioned 155mm apart. Each clip is designed to secure a PCB and attach to a cylindrical frame with a 3mm radius. For each clip, start with a base geometry that combines a cylinder of radius 6mm and height 12mm with a rectangular ...
$fn = 20; frame_distance = 155; frame_radius = 3; pcb_width = 93.5; pcb_height = 50; width = frame_radius * 4; screw = 3; height = 10; module pcb_clip_left (){ difference(){ union() { cylinder (r = frame_radius * 2, h = width); translate ([0, -width/2, 0]) cube ([...
glb/cad_b8cbe5268ea3.glb
Create a Hot End mounting for RepRapPro Huxley. Start with a base rectangular plate measuring 40mm wide, 30.8mm deep, and 3mm thick. Centered on this base, add a raised section that is 20mm wide and 16.3mm deep; this section starts at a height of 2.9mm and rises an additional 7.6mm. At the corners of the base, integra...
$fn = 20; module hotend_mounting_3mm(){ difference(){ union (){ cube([40, 30.8, 3]); translate([10, 6 + 8.5, 2.9]) hull() { cube([20, 16.3, 1]); translate ([5, 0, 0]) cube([10, 16.3, 7.6]); ...
glb/cad_53db39a05b36.glb
Create a PC support foot by constructing a hollow square column with an outer dimension of 10mm by 10mm and a wall thickness of 2mm. The main body of the column should have a height of 100mm. Close the top of this column with a solid square plate that is 10mm by 10mm and 2mm thick. Finally, add a square collar extendin...
h = 100; b = 10; s = 1; thikness = 2; incastro = 20; union(){ linear_extrude(height = h, scale = s) difference(){ square([b, b], center = true); translate([thikness, thikness, 0]) square([b-thikness, b-thikness], center = true); }; translate([0,0,h]){ ...
glb/cad_e545a74107e5.glb
Create a Festool MTF 3 dog by constructing a composite cylindrical object with a total height of 28mm and a central vertical hole with a radius of 6mm running through the entire length. Start with a base cylinder 8mm high with a radius of 13mm; remove a rectangular section from this base using a 13mm wide by 26mm deep ...
$fn=256; height = 20; collar_height = 8; cutted_collar = true; full_height = height + collar_height; difference(){ union(){ difference() { cylinder(h=collar_height,r=13); if (cutted_collar) translate([10,-13,0]) cube([13,26,collar_height]); } translate([0,0,collar...
glb/cad_1a9d722bd4d8.glb
Create a dogbone drive shaft with a total external length of 65mm. The shaft consists of a central cylindrical body with a diameter of 5mm. At each end of the shaft, create a spherical tip with a radius of 2.5mm. Between the central body and each spherical tip, incorporate a narrower neck section with a diameter of 4mm...
$fn = 20; l = 65; d1 = 5; d2 = 4; h1 = 2; h2 = 2; sr = 1; sl = 9; cutsize = 5-0.6; r1 = d1/2; r2 = d2/2; intersection () { rotate([90,0,0]) difference () { union() { cylinder(l-d1,r2,r2); translate([0,0,l-d1]) sphere(r1); sphere(r1); translate([0,0,r1+h1+h2]) cylinder(l-(d1+h1+h2)*2...
glb/cad_73d057dde6a8.glb