Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a modular connector consisting of a main housing block and a central cutout. Start by creating a rectangular block measuring 45.51mm x 45.51mm x 12.25mm, centered on the origin. From this block, remove two identical ellipsoidal voids, each scaled to 0.16 in width, 0.45 in depth, and 0.55 in height with a radius ...
rectangle_or_circle = 1; circle_diameter=20; rectangle_width=20; rectangle_length=25; difference(){ union(){ scale([0.98,0.98,0.98]){ difference() { cube(size = [45.51,45.51,12.25], center = true);translate([22.755,0,-7.3]) scale([0.16,0.45,0.55]) sphere(r=23.86);translate([-22.755,0,-7.3]) scale([0.16,0.45,0.55]...
glb/cad_228233523a83.glb
Create a press-fit connector clip for a bowden tube with a total height of 1.6mm. Start by forming a flat, C-shaped ring with an outer radius of 4.4mm and a width of 2mm. The inner cutout of this ring is a composite shape: it consists of a central circular void with a radius of 2.4mm, but the sides of this void are fla...
rx=2; ry=2.4; h=1.6; w=2; $fn = 50; $o=.1; module cutout() { translate([0,0,-$o]) intersection() { cylinder(r=ry, h=h+2*$o); translate([-rx,-ry,0]) cube([rx*2,ry*2,h+2*$o]); } } module clip() { intersection() { cylinder(r=ry+w, h=h); translate([-rx-w,-ry-w,0]) cube([(rx+w)...
glb/cad_75e72a78cff7.glb
Create a Tesla Washer Hose Clip designed to secure a hose to a metal arm. The clip has a total width of 5mm and a wall thickness of 1.6mm. First, construct a C-shaped channel to fit over a metal arm that is 11.8mm wide and 4.6mm thick. This channel consists of two parallel straight walls, each 1.6mm thick and 5mm wide...
$fn=180; arm_width = 11.8; arm_thickness = 4.6; hose_OD = 5.4; clip_length = 5; clip_thickness = 1.6; height = (arm_thickness + 2*clip_thickness); difference() { cylinder(clip_length, d=height); translate([0,0,-0.01]) cylinder(clip_length+0.02, d=arm_thickness); translate([0, -4*clip_thickness,...
glb/cad_cb4818866a86.glb
Create a Customizable Tic Tac Box designed to fit a specific package lid. For an 18g package size, construct a hollow rectangular body with an outer dimension of 37.8mm by 14.8mm and a wall thickness of 0.8mm. The total height of the model is 40mm, with the main body extending to a height of 28mm (total height minus 12...
package_size = "18g"; total_height = 40; box(package_size, total_height); module box(small, totalHeight) { hb = totalHeight-12; if (package_size == "18g") { body(0.8, 36.2, 13.4, 1.8, 1, hb+0.01); translate([0,0,hb]) adapter_18g(); } else { body(0.8, 47.2, 20.2, 2, 1, hb+0.01);...
glb/cad_a7b3b8f00c33.glb
Create a spring seat consisting of two concentric cylindrical sections. First, create a wide, flat circular base with a radius of 5mm and a height of 1mm. Centered on top of this base, add a second cylinder with a radius of 3.75mm and a height of 3mm. Finally, bore a vertical hole through the center of both cylinders w...
resolution=50; bolt_hole_radius=2.5; seat_radius=5; support_height=3; seat_type="inside"; thickness=1; $fn=resolution; module base(){ cylinder(r=seat_radius,h=thickness); cylinder(r=seat_radius-thickness-0.25,h=support_height); } if (seat_type=="inside"){ difference(){ base(); cylinder(r=bolt_hole_radius,h=s...
glb/cad_d1c0def79cb2.glb
Create an SD key chain holder designed to hold two SD cards. Start by creating a main rectangular body with a total height of 27mm (25mm card width plus 1mm edges on each side) and a total width of 75mm. The thickness of the base is 5.5mm. Within this body, carve out two symmetrical rectangular compartments to fit the...
number_of_cards = 2; card_width = 25; card_height = 34; card_depth = 2.25; edge_thickness = 1; hinge_thickness = 0.5; hinge_bend_gap = 0.4; loop_hole_radius = 2.5; loop_outer_radius = 4.5; loop_hole_location = 4.5; fudge = 0.2; halffudge = fudge / 2; container_depth = card_depth * number_of_cards; ha...
glb/cad_7e097653d2e3.glb
Create a wall-mounted remote holder. The main body is a revolved shell based on a custom profile. Starting from a center axis, define a 2D polygon with the following vertices: [0,0], [30.5,0], [34.2,3.5], [37,7], [39.3,11], [41,15], [42.2,20], [42.5,25], [41,26], [39.5,26.5], [38,26.5], [36.5,26], [35,25], [35,23], [39...
gen=0; holes=1; cut_bottom=1; scaleall=40/39.5; rr=[43.5/scaleall,40]; zz=[28,23]; scale_r=rr[gen]/rr[1]*scaleall; scale_z=zz[gen]/zz[1]; rotate ([270,0,0]) { difference() { echo ("Outer radius of remote:", 39.5*scale_r); scale([scale_r,scale_r,scale_z]) rotate_extrude($fn=100) polygo...
glb/cad_a3e4772267c1.glb
Create a universal tube for a fan duct. The model consists of a curved, tapering hollow tube connected to a square mounting platform. The mounting platform is a 40mm by 40mm square plate with a thickness of 1.5mm. Position four circular screw holes with a diameter of 4.6mm at the corners of the plate. Construct the m...
h=0.01; tx1=0; ty1=0; tz1=0; tx2=30; ty2=0; tz2=30; rx1=0; ry1=60; rz1=0; rx2=0; ry2=45; rz2=0; sx1=0.25; sy1=0.5; sz1=1; sx2=1; sy2=1; sz2=1; rr1=15; rr2=19; an1=0; an2=90; fra=16; $fn=50; platform=1.5; pla_x=40; pla_y=40; thiness=1; th1=(thiness+sx1+sy1)/(sx1+sy1+0.1); th2=thiness; r_holder=1.5+0.2; x_hol...
glb/cad_1eea4f6bf199.glb
Create a Prusa i3 rework Y-endstop height extension by constructing a base shape and removing specific volumes. Start with a main body composed of two parallel walls, each 2.5mm thick, 18mm high, and 30mm deep. The first wall is positioned at the origin, and the second wall is placed 7.5mm away from the first, creating...
module raiser(){ cube([2.5,30,18]); translate([7.5,0,0]) cube([2.5,10,18]); difference() { translate([0,10,0]) cube([10,10,18]); scale ([1.25,1,1]) translate([7,20,-5]) cylinder(h=26,r=5,r1=5); } } difference(){ raiser(); translate([-1,5,4]) rotate([0,90,0]) cylinder(h=12,r=2,r1=2); translate([-1,5,14]) rotate([0,90,0]...
glb/cad_751e89c76e4a.glb
Create a parametric shaft collar by starting with a central cylinder 10mm high with a radius of 14mm, using 50 facets for round surfaces. Remove a concentric inner cylinder with a radius of 4.24mm and a height of 12mm to create the shaft bore. Cut a vertical slot through the collar wall to create a tightening gap; th...
shaft_d = 8; collar_w = 10; collar_h = 10; screw_d = 3; nut_w = 5.5; nut_t = 2.4; nut_p = 1.8; split_w = 2; tol = 0.24; facets = 50; shaft_r = shaft_d/2; screw_r = screw_d/2; $fn=facets; difference() { cylinder ( r=shaft_r+collar_w, h=collar_h, center = true); cylinder ( r=shaft_r+tol, h=collar_h+2, center = t...
glb/cad_40c9909de18b.glb
Create a one-piece catapult toy consisting of a base and a pivoting arm. Start by creating a rectangular base that is 45mm long, 2mm thick, and 40mm wide. At each end of this base, center a cylinder with a radius of 20mm and a thickness of 2mm, oriented vertically. Construct the catapult arm as a rectangular strip 100...
projectile_diameter = 30; catapult_thickness = 2; margin = 5; arm_angle = 45; arm_length = 100; base_length = 45; precision = 24; module dumb(){}; pA = arm_angle; pThick = catapult_thickness; pDia = projectile_diameter-1; pR = pDia/2; pL = arm_length; pH = pDia + 2*margin; translate([0, -pL*sin(pA)/2, 0]) catapu...
glb/cad_501fc7807d5e.glb
Create a Tube Notching Template by constructing a hollow cylinder with an outer diameter of 52mm (50mm main tube diameter plus 2mm wall thickness) and a total height of approximately 76.5mm. The cylinder wall should have an internal clearance diameter of 51mm. Cut a large, angled notch out of the top of this cylinder...
$fn = 60; main_tube_diameter = 50.0; notch_tube_diameter = 50.0; notch_angle = 90; extra_template_height = 25; wall_thickness = 2; clocking_notch_depth = 25; clearance_tolerance = 0.5; _main_tube_radius = main_tube_diameter/2; _notch_tube_radius = notch_tube_diameter/2 + wall_thickness; _notch_center_height = t...
glb/cad_4bc5b1366c93.glb
Create a Raspberry Pi 4B and 5 case consisting of a main body and a removable cover. The main body is a rectangular box with a footprint of 85mm by 56mm and a height of 28mm. The walls are 2mm thick with rounded corners of 3.5mm radius. The interior is hollowed out to fit the board, leaving four support posts at the co...
n = "scott.neumann@ieee.org"; n2="Raspberry Pi 4B|5"; fnt = "Arial:style=Bold"; th=0.8; s=2.0; s2=1.7; p=0.4; h2=22; h=28; w=56; l=85; b=4; t=2; r=3.5; module outer(){ translate([0,0,0]) hull(){ translate([r+t,r+t,0]) cylinder(h,r+t,r+t); ...
glb/cad_3aff875cdb3a.glb
Create a ball bearing model with a total height of 6mm. Start by constructing the main body as a hollow cylinder with an outer diameter of 30mm and an inner diameter of 5mm. The walls of this cylinder should be 6mm thick. Within the space between the inner and outer walls, place a series of spheres, each with a diamete...
module ballbearing(inner,outer,d,gap=0.2) { difference() { union() { difference() { cylinder(d=outer,h=d,$fn=30); translate([0,0,-0.5]) cylinder(d=(outer+inner+d)/2,h=d+1,$fn=30); } difference() { cylinde...
glb/cad_c7ad9023e284.glb
Create a card dispenser consisting of a hollow rectangular container sitting atop a supportive base. The main container has outer dimensions of 66mm in width and 73mm in depth, with a total height of 70mm. The walls are 1mm thick with corners rounded by a 1mm radius. The bottom of the container is not fully closed; ins...
wallT=1; W=64+wallT*2; D=71+wallT*2; standH=10; contH=70; baseH=12; baseShift=6; webT=3; rnd=1; overlap=0.1; module shape2D() { offset(r=rnd) offset(r=-rnd) square([W,D], center=true); } module cont() { translate([0,0,baseH]) difference() { linear_extrude(height=contH,center=false) shape2D(); ...
glb/cad_62c76335ef89.glb
Create a lithophane sphere with a base radius of 80mm. The object is a hollow spherical shell with a variable wall thickness that corresponds to a height map. The inner surface of the shell is a smooth sphere with a radius of 79.6mm (calculated as the base radius minus a minimum thickness of 0.4mm). The outer surface...
$fn=64; test=false; full=false; include <./mars1200.scad> nrX=len(map[0]); nrY=len(map); rad=80; side=rad*sqrt(3); subdiv=floor(nrX/4)-1; hemiY=floor(nrY/2)-1; baseT=2; ang=60; baseH=rad; intersectH=rad*sin(ang); baseR=rad*cos(ang)+baseH-intersectH; step=side/subdiv; stepR=step/sqrt(3); stepH=step*sqrt(3)/2; thic...
glb/cad_62c8ced587e3.glb
Create a lithophane sphere with a radius of 60mm. The object is a hollow spherical shell with a variable wall thickness that represents a height map. The minimum wall thickness is 0.6mm, and the maximum additional thickness added by the map is 2mm. The sphere is not complete; it is a partial shell. Construct the geome...
$fn=64; test=false; full=false; include <./lunar1200.scad> include <./santa300.scad> nrX=len(map[0]); nrY=len(map); rad=60; side=rad*sqrt(3); subdiv=floor(nrX/4)-1; hemiY=floor(nrY/2)-1; baseT=2; ang=60; baseH=rad; intersectH=rad*sin(ang); baseR=rad*cos(ang)+baseH-intersectH; step=side/subdiv; stepR=step/sqrt(3)...
glb/cad_61238e933619.glb
Create a stabilizer for M10 rods consisting of two mirrored parts. For the bottom part, create a rectangular block 16mm wide, 20mm long, and 42mm high. Add a secondary rectangular section on top of this block, 16mm wide and 20mm thick, rotated upwards at an angle of approximately 68 degrees. Bore two horizontal cylindr...
D1 = 10.1; angle = atan(40/16); H = 42; W = 16; L = 20; D2 = 10.1; L2 = 20; L3 = 16/sin(angle); k = 0.1; rotate ([0,-90,0]) translate ([0,0,0]) stabilizer_bottom(); rotate ([0,-90,0]) translate ([0,30,0]) stabilizer_top(); module stabilizer_bottom(){ difference() { union() { cube ([W,L,H]); translate ([...
glb/cad_03a99798aff0.glb
Create a Thing-O-Matic Intense Lighting System mount by starting with a triangular prism base. This base is formed by a cylinder with a radius of 25mm and a height of 3mm, rendered with only 3 facets to create an equilateral triangle centered on the origin. From this triangular base, remove several rectangular sections...
difference() { rotate([0,0,30]) { cylinder(r=25, h=3., $fn=3, center=true); } translate([50,5,0]) { # cube([100,5.75,5.75], true); } translate([2,-2.5,0]) { # cube([12,2,5.75], true); translate([20,0,0]) {# cube([40,1,5.75],true); } } translate([0,-16...
glb/cad_33c813382c8c.glb
Create a paintball drop mechanism consisting of a vertical storage tube and a servo-actuated dispensing arm. First, construct a vertical cylindrical tube with an inner diameter of 17.27mm (0.68 inches) to hold five paintballs. The tube should have a total length of approximately 36.5mm. Integrate a mounting plate at ...
servoHeight = 22; servoWidth = 0.8 * 25.4; servoThick = 0.34 * 25.4; servoMcenter = 0.94 * 25.4; servoTabW = 1.08 * 25.4; servoArmR = 0.6 * 25.4; plateW = 30; plateL = 40; plateT = 1; wallHeight = 10; module servo() { difference() { union() { translate([0, 0, -servoHeight/2]) cube([servoWidth...
glb/cad_3a6ddc8875ea.glb
Create an iPhone 5 Rock Climbing Case. Start by constructing a main body that fits an iPhone 5, with a total wall thickness of 3mm. The case should have a tapered profile for better grip. On the back of the case, create a decorative pattern consisting of a grid of square-shaped cells. Each cell should be a square with...
primary_color="white"; iphone_version = 2; case_thickness = 3; type_of_case = 3; include_hooks="no"; input = "no_input"; image_scale=100; offX =0; offY =0; image_rotation =30; pattern_shape =4; pattern_radius =17; pattern_overlap = 18; pattern_rotation = 13; pattern_thickness = 5; mashup_type=1; index_i=1; i...
glb/cad_a8e7a7be441f.glb
Create a personalized key fob by designing a base shape that combines raised text with a rounded attachment point. Use the "Orbitron" font to create the name "Your Name" with a height of 10mm and a thickness of 0.5mm. Enclose this text within a hull that incorporates a cylinder with a 5mm radius and a height of 0.5mm, ...
your_name = "Your Name"; use <write/Write.scad> difference() { minkowski() { hull() { union() { write(your_name,h=10,t=0.5, font="orbitron.dxf"); translate([0,5,0]) cylinder(r=5, h=0.5, $fn=50); } } cylinder(r=2,h=0.5); } union() { translate([-...
glb/cad_26ad1db7464a.glb
Create a sturdy phone stand by starting with a rectangular baseplate measuring 70mm by 40mm with a height of 4mm. Remove a rectangular section from the center of this baseplate, leaving a border, by creating a cutout that is 50mm long, 17mm wide, and 4mm deep, positioned 10mm from the front and back edges. At each end ...
module stand() { difference() { cube([10, 25, 15]); translate([0, 7, 1]) rotate(20, [1, 0, 0]) cube([10, 15, 30]); } } union() { difference() { cube([70, 40, 4]); translate([10, 5, 0]) cube([50, 17, 4]); } translate([0, 15, 4]) stand(); translate([60, 15, 4]) stand(); }
glb/cad_287bd98bd51f.glb
Create a sippy cup handle attachment consisting of a central ring and two vertical handles. Start with a circular base plate 46mm in diameter and 6mm thick. Within this base, create a centered circular hole 41mm in diameter that passes completely through the bottom. To reinforce the structure, extend the base plate wit...
$fs=.1; $fa=1; difference() { union() { hull() { cylinder(d=46, h=4); translate([-42,-5,0]) cube(size=[84,10,4]); translate([42,-3,0]) cylinder(d=4, h=4); translate([42,+3,0]) cylinder(d=4, h=4); translate([-42,-3,0]) cylinder(d=4, h=4); translate([-42,+3,0]) cylinder(d=4, h=4); } cylinde...
glb/cad_56d43b8f2a69.glb
Create a PLA cooler dummy object consisting of a thin circular base and a hollow tapered tower. Start by creating a solid cylinder for the base with a diameter of 15mm and a height of 1mm. Centered on top of this base, construct a conical shell with a total height of 40mm. The outer wall of this cone should taper from ...
total_height = 40; base_diameter = 15; base_height = 1; cone_bottom_diameter = 8; cone_top_diameter = 5; cone_wall_thickness = 1.2; cross_cut = 0; eps=0.001; eps2 = 2*eps; $fn=32; module base() { cylinder(d=base_diameter, h=base_height); } module cone_body() { translate([0, 0, base_height-eps]) cylinder( ...
glb/cad_ca3fd0cda5cb.glb
Create a 52mm Filter Adapter for a GoPro 3+ waterproof case. Start by constructing a base socket that fits the camera lens: create a rounded rectangular frame with an overall width of 36.9mm and height of 34.4mm, with corner radii of 5mm and a total thickness of 6mm. On top of this base, build a cylindrical filter mo...
gopro_lens_border_radius = 5; gopro_lens_width = 36.9; gopro_lens_height = 34.4; gopro_lens_thickness_scale = 1.2; filter_radius = 55.5/2; fix = 0.5; $fn = 90; module gopro_lens() { translate([-gopro_lens_width/2+gopro_lens_border_radius,-gopro_lens_height/2,0]) cube([gopro_lens_width-2*gopro_lens_border_radius,gop...
glb/cad_9e99977ba5df.glb
Create a Tailstock Die Holder for a 38mm die. Start with a main cylindrical body with a total length of 100mm and an outer radius of 22mm. At the center of the cylinder, create a coaxial hole with a radius of 19mm and a depth of 13.1mm to accommodate the die. At the opposite end of the cylinder, create a second coaxi...
eps = 0.001; include <MorseTaperA.inc> include <..\..\lib\threads.scad> include <..\..\lib\knurledFinishLib_v2.scad> dt25 = 0; dt38 = 1; is3DPrinted = false; addKnurl = true; dieType = dt38; PRINTABLE = is3DPrinted ? 1 : 0; correction_rDie = PRINTABLE ? 0.5 : 0.0; correction_tDie = PRINTABLE ? 0.5 : 0.0; correctio...
glb/cad_3bbb820229e3.glb
Create an adapter for attaching a camera to a 1-inch optics mount. Start with a rectangular base plate measuring 24mm by 25mm with a thickness of 2mm. At four specific coordinates on this plate—(2, 2), (14.5, 2), (14.5, 23), and (2, 23)—create vertical cylindrical posts that are 6mm tall and 4mm in diameter. Drill a ho...
fn = 50; half_inch = 12.7; hole_centers = [[ 2, 2, 3], [14.5, 2, 3], [14.5, 23, 3], [ 2, 23, 3] ]; module hollow_cylinder(outer_r, inner_r, height) { difference() { cylinder(r = outer_r, h=height, $fn=fn, center=true); cylinder(r = inner_r, h=height + 1,...
glb/cad_505a9da303b2.glb
Create a spool rod holder consisting of a main vertical cylinder and a flat base. Start by creating a vertical cylinder with a diameter of 18.9mm and a height of 82mm. At the top of this cylinder, add a smaller cylindrical stub with a diameter of 8.5mm and a height of 3.5mm. Directly beneath this stub, centered at the ...
bodyHeight=82; bodyDiameter=18.9; stubHeight=3.5; stubDiameter=8.5; flangeHeight=6.0; flangeDiameter=bodyDiameter-1; flangeWidth=stubDiameter; handleLength=80; handleWidth=bodyDiameter; handleHeight=6; union() { intersection() { cube(size=[handleLength, handleWidth, handleHeight], center=true); cylinder(h=han...
glb/cad_b5bbb857355e.glb
Create a tall spool rod holder in the shape of a hollow, tapered cylinder. The object should have a total height of 65mm and be centered vertically. The outer wall is a frustum that tapers from a diameter of 30mm at the bottom base to a diameter of 24mm at the top. The center of the object is hollowed out by a cylindri...
height = 65; outsideDiameter1=30; outsideDiameter2=24; insideDiameter=21; union() { difference() { cylinder(h=height, d1=outsideDiameter1, d2=outsideDiameter2,$fn=100, center=true); cylinder(h=height, d=insideDiameter, $fn=100, center=true); } }
glb/cad_1d051aa67f3d.glb
Create a tall spool rod holder by constructing a hollow, tapered cylinder with a total height of 65mm. The outer shape should be a frustum with a bottom diameter of 50mm and a top diameter of 43mm. Remove a concentric cylindrical hole from the center that runs the full height of the object with a constant diameter of 2...
height = 65; outsideDiameter1=50; outsideDiameter2=43; insideDiameter=21; union() { difference() { cylinder(h=height, d1=outsideDiameter1, d2=outsideDiameter2,$fn=100, center=true); cylinder(h=height, d=insideDiameter, $fn=100, center=true); } }
glb/cad_510a17dbb8ac.glb
Create a spool rod holder consisting of a rectangular base and a vertical support. The base is a rectangular block 44mm long, 20.5mm deep, and 7mm high. For a right-side version, extend the base length by an additional 25mm. In the base, create four holes for positioning nubs: two 8mm diameter holes centered at X=±12...
baseExten=25; totalHeight=107; baseLength=44; baseDepth=20.5; baseHeight=7; spoolDiameter=19.2; spoolWall=9; spoolDepth=baseDepth; verticalLength=28; verticalWidth=baseDepth/2; verticalHeight=totalHeight-baseHeight-spoolDiameter/2; verticalSupportLength=verticalLength/4; screwHoleDiameter=4; screwHoleX=17.3; screwH...
glb/cad_65ae01f1b9f7.glb
Create a parametric camera case and holder. Start with a main rectangular bracket that is 31mm wide, 35.5mm deep, and 3.5mm thick. At the center of the front face, create a circular cutout with a radius of 7.25mm to accommodate the lens. On the same face, position four mounting holes for M3 screws; each hole should b...
eps = 0.001; flesh = 3.0; rScrewHole = 2.5/2; distScrewHolesX = 24.5; distScrewHolesZ = 25.5; rLens = 14.5/2; tBracket = 3.5; rMountingHole = 6.0/2; wBracketX = distScrewHolesX+2*rScrewHole+2*flesh; wBracketY = 2*rMountingHole+2*flesh+tBracket+15; hBracket = distScrewHolesZ+2*rScrewHole+2*flesh+tBracket; lStandOff = ...
glb/cad_4dd326e8c442.glb
Create a Minecraft Creeper figure using 1mm cubes as the base unit. Construct the lower body with two parallel legs, each a rectangular prism measuring 8x4x7mm, positioned 8mm apart. Connect these legs with a central body block measuring 8x4x12mm, starting at a height of 4mm and extending 6mm across the width. Above th...
part = "first"; pixel_size = 1; scale(pixel_size) { translate([0,0,8]) rotate([0,90,0]) { if(part == "first") { union() { cube([8,4,6 + 1]); translate([0,8,0]) cube([8,4,6 + 1]); translate([0,4,6]) cube([8,4,12]); difference() { translate([0,2,16]) cube(8); union() { translate([2,2,16 - 0.1]) cube([1,0.5,3 + 0...
glb/cad_bedb06287790.glb
Create a Thing-O-Matic Electronics Side-Mount by starting with a solid rectangular block measuring 50mm wide, 10mm deep, and 80mm high. From this main volume, remove several geometric sections to create the mount's specific profile. First, carve out two vertical rectangular slots: one measuring 5.75mm by 15mm by 15mm l...
difference() { cube([50, 10, 80]); translate([0,-2.5,0]) { translate([5,0,0]) { cube([5.75,15,15]); } translate([50-5.75-5,0,15+10]) { cube([5.75,15,100]); } translate([0,0,20]) { rotate([0,-35,0]) { cube([100,15,50]); }} translate([20,0,0]) { rotate([0,55,0]) { cube([50,30,100]); }} translate([-26,2.5,0]...
glb/cad_9a83ab7251cd.glb
Create a Thing-O-Matic Electronics Side-Mount by starting with a main rectangular block measuring 50mm wide, 10mm deep, and 80mm high. From this block, remove a central rectangular section that is 50mm wide, 7.5mm deep, and 80mm high, starting at a height of 3mm from the base. Additionally, remove two vertical slots: o...
difference() { union() { translate([17,0,0]) { rotate([0,35,0]) { cube([3.2,7.5,100]); }} difference() { cube([50, 10, 80]); translate([0,-2.5,0]) { translate([0,0,3]) { cube([50,7.5,80]); } translate([5,0,8]) { cube([5.75,15,100]); } translate([50-5.75-5,0,45]) { cube([5.75,15,100]); } translate([0,0,20]) {...
glb/cad_e882555ef9ee.glb
Create a shower curtain clip designed as a shallow, curved bowl with a central mounting slot. Start by forming a spherical shell with an outer radius of 75mm and a wall thickness of 2.5mm. Flatten the bottom of this shell by slicing it horizontally so the maximum height of the outer curve is 13mm. At the center of th...
use <utils.scad>; CUP_STEM = 8; STEM_LENGTH = 2.5; CUP_FLANGE = 15; HEIGHT = 13; FLATTENED_DIAM = 50; FLATTENED_RAD = FLATTENED_DIAM / 2.0; FLATTENED_HEIGHT = 8; FLEX = 5; TOP_HEIGHT = FLATTENED_HEIGHT + FLEX; SLOT_H = 10; module slot() { translate([0, 0, -SLOT_H/2.0]) union() { cylinder(r=CUP_STEM/2.0...
glb/cad_de8a0d232260.glb
Create a Bose Speaker Clamp designed to clip onto a mantle. Start with a main rectangular base that is 95.45mm wide, 75mm high, and 40mm deep. From this base, remove a rectangular section to create a clip; this cutout should leave a wall thickness of 3mm and a lip that is 20mm wide and 1mm high to facilitate gripping t...
use <utils.scad>; thickness = 3; buffer = 2; mantleHeight = 75; mantleLip = 20; clipLength = 4; clipHeight = 1; speakerWidth = 55.45; speakerRadius = speakerWidth / 2.0; speakerBoltHeight = 32.5; speakerBoltRadius = 2.3; speakerBoltClearance = 3.0; shelfDepth = 40; shelfWidth = speakerWidth + thickness + 20; moun...
glb/cad_e9a94903aaab.glb
Create a Tigr Bike Lock Bracket designed to secure a lock cylinder to a bike frame. Start by creating two primary vertical cylinders with a wall thickness of 1.5mm. The first cylinder has a radius of 15.875mm (half of the 31.75mm tube diameter plus the wall), and the second, smaller cylinder has a radius of 14.85mm (ha...
use <utils.scad>; TUBE_DIAM = 28.75; TUBE_RAD = TUBE_DIAM/2.0; BUFFER = 3; DEPTH = 20; DEPTH_BUF = DEPTH + BUFFER*2; WALL = 1.5; SLOT = 5; SLOT_OFFSET = 9; SLOT_WALL = 2; LOCK_DIAM = 26.7; LOCK_RAD = LOCK_DIAM / 2.0; LOCK_LEN = 46.23 + 2; STRAP_SLOT = 23; STRAP_DEPTH = 2; LOCK_OFFSET = -(TUBE_RAD + WALL + STRAP_DE...
glb/cad_d607f04a47d5.glb
Create a 3D model that segments a larger object into a grid of smaller cubes. Start by importing a 3D file or extruding a 2D SVG file to a height of 2mm. Position, scale, and rotate this source geometry so it sits entirely within the positive quadrant. Divide the space into a grid of cubes, each measuring 200mm x 200m...
file_name="test.stl"; file_scale=1; rotate_x=0; rotate_y=0; rotate_z=0; translate_x=0; translate_y=0; translate_z=0; cube_x=200; cube_y=200; cube_z=200; number_of_X_cubes=2; number_of_Y_cubes=2; number_of_Z_cubes=2; border_inside_or_outside="none"; border_width=5.0; border_height=2.0; for_preview_or_export="prev...
glb/cad_95fd3c8ca5bd.glb
Create a parametric fan model centered on the origin. Start with a square body 50mm wide and 15mm deep. Round the four exterior corners with a 5mm radius. Remove a central cylindrical bore with a diameter of 47mm, but leave a solid central hub with a diameter of 40mm. Cut four circular mounting holes, each 3.4mm in d...
$fn=60; fan(50, 15, 40); module fan(width, depth, mount, mount_diameter=3.4, corner_radius=5, blade_angle=-45) { bore_diameter = width - 3; color ("dimgrey") { body(width, depth, bore_diameter, mount, mount_diameter, corner_radius); fan_blades(bore_diameter, depth, blade_angle); } } module body(widt...
glb/cad_5386bcc2ff3c.glb
Create a parametric funnel consisting of a conical base and a cylindrical neck. First, construct the conical section by creating a hollow cone with a height of 45mm. The outer wall of this cone should taper from a bottom diameter of 75mm to a top diameter of 10mm. The interior of the cone must be hollowed out by removi...
bottom_diameter = 70; cone_height = 45; top_diameter = 5; top_height = 20; width = 2.5; union() { difference() { cylinder(h=cone_height, r1=bottom_diameter/2 + width, r2 = top_diameter/2 + width); cylinder(h=cone_height, r1=bottom_diameter/2, r2 = top_diameter/2); } translate([0, 0, cone_height]) { difference() { cyli...
glb/cad_a6e69c82a983.glb
Create a camera lens cap for an Olympus SP-510uz. Start by creating a main outer cylinder with a radius of 29.5mm and a height of 8mm, centered on the Z-axis. Hollow out the center by removing a smaller cylinder with a radius of 28mm and a height of 8mm, but offset this inner cutout upward by 4.5mm so that a solid base...
cover_height = 8; cover_depth = 6.5; cover_radius = 29.5; cover_inner_radius = 28; cuts = true; union() { difference() { cylinder(r=cover_radius, h=cover_height, center=true); translate([0, 0, cover_height-cover_depth]) cylinder(r=cover_inner_radius, h=cover_height, center=true); if(cuts) { for(i=[90:120:...
glb/cad_7e6bf28ba27f.glb
Create a Well Size Tester by starting with a solid rectangular block measuring 38mm x 38mm x 17mm. From this block, remove a central cubic volume of 34mm x 34mm x 14mm, positioned 2mm from the top, left, and right edges, to create a well with a wall thickness of 2mm. On the bottom face of the block, carve out two symm...
myWallThickness = 2; myWellSize = 34; myHeight = 17; myFontSize = 10; myFont_ProportionFromEdge = 0.3; myCutoutWidth = 20; myCutoutDepth = 12; myCutoutCurve_LowerRadius = 4; myCutoutCurve_UpperRadius = 4; myCutoutCurve_Faces = 20; myOverlap = 1; difference() { cube([ myWellSize+2*myWallThickness ,myWellSize+2*...
glb/cad_dc93d084fac5.glb
Create an attachment base for a fish feeder consisting of a circular plate and a central mounting tower. Start with a solid cylinder 60mm in diameter and 3mm high. Centered on this plate, add a vertical cylinder with a radius of 11mm and a height of 15mm. Around this central tower, create two decorative toroidal rings ...
$fn=120; cylinder(r=60/2, h=3); translate([0,0,3]) difference() { union() { cylinder(r=22/2, h=15); for (y=[13.5,7.5]) { translate([0,0,y]) rotate_extrude() { translate([22/2,0]) circle(r=1.5); } } } union() { translate([0,0,2]) cylinder(r=19/2,...
glb/cad_9f10cb9f3cba.glb
Create a spool holder consisting of a cylindrical bar attached to a rectangular base plate. The bar has a diameter of 20mm and a length of 82mm extending from the base. At the end of the bar, add a stop with a thickness of 10mm and a length of 25mm; this stop should be tilted 5 degrees away from the spool. The base pl...
$fn=180; eps=0.001; eps2 = 2*eps; bar_diameter = 20; bar_length = 82; stop_thickness = 10; stop_length = 25; stop_tilt_angle = 5; base_width = 120; base_height = 80; base_thickness = 13; screw_hole_diameter = 3.5; screw_sink_diameter = 8; screw_sink_depth = 5; screw_hole_margin = 10; module bar() { total_lengt...
glb/cad_6d9d33a776a7.glb
Create a filament guide for a Prusa i3V spool holder. The object consists of a base and two side walls. Start with a rectangular base that is 34mm wide (along the X-axis), 11mm high, and 4mm thick. Cut a central slot through the base that is 26mm wide and 11mm deep, leaving 4mm thick walls on either side. In these si...
$fn = 180; eps = 0.001; eps2 = 2 * eps; eps4 = 2 * eps2; roler_space = 26; thickness = 4; axis_screw_hole_diameter = 2.75; axis_screw_vertical_offset = 8; axis_screw_to_front = 4; axis_screw_to_back = 7; base_width = roler_space + 2*thickness; wall_length = axis_screw_to_front + axis_screw_to_back; wall_height = 11;...
glb/cad_e77bac8d3498.glb
Create a Cullmann 2800 Universal Tripod Plate. Start by constructing a square base plate measuring 50mm by 50mm with a thickness of 4mm. Soften the corners and edges of this base by applying a fillet radius of 2mm. Centered on top of this base, add a tapered shoe component with a height of 8.2mm. This shoe should trans...
bottom = 42; top = 32; shoe_height = 8.2; plate_thickness = 4; plate_size = 50; module shoe(_bottom, _top, _height) { translate([0,0,_height]) rotate([0,180,0]) hull() { translate([0,0,0.05]) cube(size = [_bottom, _bottom, 0.1], center = true); translate([0,0,_height/2]) cube(size = [_top,_top,_height], cen...
glb/cad_f4dac7958c49.glb
Create a connector for a truncated octahedron space-filling structure. The core geometry is a polyhedron defined by eight vertices: (-2, -2, -2.828), (-2, -2, 2.828), (-4, 0, 0), (0, 4, 0), (2, -2, -2.828), (2, -2, 2.828), (2, 2, -2.828), and (2, 2, 2.828), where all values are in millimeters. From this solid, remove ...
ew=20; xw=0.35; ww=2; ce=40; hww=ww+xw; d=ew / sqrt(2); module leg(ew, ww, rot){ d=ew / sqrt(2); rotate([0,0,rot]) translate([d,0,0]) difference(){ union(){ difference(){ rotate([0,45,0]) translate([0,-ww,-ww/2]) cube([ew,ww*2,ww]); translate([d,-ww*2,-d-ww]) cube([ww,ww*4,ww*2]); } translat...
glb/cad_9ce7259a0b3e.glb
Create a connector for a truncated octahedron space-filling structure. The basic connector unit is a small square prism with a width and height of 1mm and a length of 19.3mm. Centered on each of the four side faces of this prism, add a square-profiled hole with a width of 1mm and a depth of 9.3mm that extends outward f...
ew=20; xw=0.35; ww=1; ce=4; hww=ww+xw; d=ew / sqrt(2); module connector(ew,ww){ p = ww*2; dp = sqrt(2)*p; polyhedron(points=[ [-p,-p,-dp],[-p,-p, dp],[-2*p, 0,0], [ 0, 2*p,0],[ p,-p,-dp],[ p,-p, dp], [ p, p,-dp],[ p, p, dp]], faces=[[0,1,5,4],[4,5,7,6],[0,4,6],[1,7,5], [1,0,2],[6,7,3],[1,2,3,7],[6,3,2,...
glb/cad_88ecd6b815b1.glb
Create a set of flexible tank tracks and two matching wheels. First, construct the track as a large hollow ring with a total width of 12mm. The outer wall of the ring should have a radius of approximately 33.6mm. The ring's cross-section is not smooth; it features a series of small, evenly spaced rectangular grips ar...
trackWidth = 12; trackOffset = 3; wheelRadius = 13.5; wheelWidth = 8; wheelOffset = trackOffset + (trackWidth-wheelWidth)/2; wheelSpacing = 70; wheelTeeth = 27; wheelSprockets = 17; trackLength = 2*wheelRadius*3.141592653589793238 + 2*wheelSpacing; trackRadius = trackLength/2/3.141592653589793238; trackSprockets = ...
glb/cad_d09b42b00e91.glb
Create a helical overhang test consisting of a square-profiled spiral. Start with a square cross-section measuring 3mm in width and 4mm in height, centered on a circular path with a radius of 7.5mm. Extrude this square profile upward to a total height of 100mm, winding it in a helix with a pitch of 6mm. The resulting s...
include <spiral_extrude/spiral_extrude.scad>; height=100; int_dia=12; sq_width=3; sq_height=4; rad=(int_dia+sq_width)/2; pit=3/2*sq_height; difference() { spiral_extrude(Radius=rad, EndRadius=rad, Pitch=pit, Height=height, StepsPerRev=50, Starts=1) square(size = [sq_width,sq_height], center = true); translate([0,0,-...
glb/cad_106cdfe1371e.glb
Create a Double Hinged 12864 Full Graphics LCD Frame. Start by constructing the main frame as a rectangular block with overall dimensions of 94mm in width, 88mm in height, and 17mm in depth, using a wall thickness of 4mm. Inside this block, create a central rectangular cutout for the LCD screen measuring 78.5mm by 51...
eh=0.25; ew=0.55; module chamfered_cube(size,d=1){ hull(){ translate([d,d,0])cube(size-2*[d,d,0]); translate([0,d,d])cube(size-2*[0,d,d]); translate([d,0,d])cube(size-2*[d,0,d]); } } module chamfered_cylinder(r=0,r1=0,r2=0,h=0,d=1){ hull(){ translate([0,0,d])cylinder(r1=(r?r:r1),r2=(r>0?...
glb/cad_e38513bb5c8b.glb
Create a mouse trap housing consisting of a main body and a sliding lid. For the housing, create a main chamber (the trap room) with internal dimensions of 67mm length, 56mm width, and 61mm height. The chamber should have a horseshoe-shaped profile with a fillet radius of 0mm. Extend a transition section from the cha...
entranceLength = 90; entranceHeight = 38; wallThickness = 3.0; clearance = 0.28; resolution = 50; trapMake = "Swiss Inno SuperCat"; displayPart = "Housing + Lid"; showLength = 100; showHeight = 100; showWidth = 100; showCutter = "False"; cutX = 0; cutY = 0; cutZ = 100; module customizer_Break(){}; entranceW...
glb/cad_9788f44c1bee.glb
Create a cg-cube, which is a 7x7x7 grid of 1mm cubes. The overall structure is a large cube measuring 7mm on each side, composed of smaller 1mm unit cubes. Construct the shape by placing unit cubes at the following coordinates (x, y, z), where x, y, and z range from 0 to 6: 1. For the Z-layers: - Layer 0: Place cu...
module outer() { a0 = [ 1, 1, 1, 1, 1, 1, 1 ]; a1 = [ 1, 1, 1, 1, 1, 0, 1 ]; a2 = [ 1, 1, 1, 1, 1, 0, 1 ]; a3 = [ 1, 0, 0, 0, 0, 0, 1 ]; a4 = [ 1, 1, 1, 1, 1, 0, 1 ]; a5 = [ 1, 1, 1, 1, 1, 0, 1 ]; a6 = [ 1, 1, 1, 1, 1, 1, 1 ]; b0 = [ 1, 0, 0, 0, 0, 0, 1 ]; b1 = [ 0, 0, 0, 0, 0, 0, 0 ]; b2 = [ 1, 1, 1, 1, 1, 0, 0 ]; b...
glb/cad_ebb34bddce2b.glb
Create a Token Tray by starting with a solid rectangular base measuring 74mm in width, 172mm in depth, and 17mm in height. Within this base, carve out a grid of 10 rectangular wells arranged in 2 columns and 5 rows. Each well should be 34mm wide and 34mm deep, separated by walls that are 2mm thick. The floor of each we...
myNumWells_x = 2; myNumWells_y = 5; myWallThickness = 2; myWellWidth_x = 34; myWellWidth_y = 34; myHeight = 17; myCutoutWidth_x = 20; myCutoutWidth_y = 20; myCutoutDepth_x = 12; myCutoutDepth_y = 15; myCutoutCurve_UpperRadius_x = 4; myCutoutCurve_UpperRadius_y = 4; myCutoutCurve_LowerRadius_x = 4; myCutoutCurve_Lower...
glb/cad_0984c429f7e7.glb
Create a SodaStream bottle holder for a bicycle ergometer. Start by creating a main cylindrical body with an outer diameter of 100mm, a height of 85mm, and a wall thickness of 5mm. Hollow out the center with a cylinder of 90mm diameter to accommodate the bottle. To allow for mounting on the ergometer, remove a cylindr...
$fn=100; lenkerstange_durchmesser = 77; wandstaerke = 5; flasche_durchmesser = 90; hoehe = 80; module Lenkerstange() { translate([0, flasche_durchmesser/2+wandstaerke+lenkerstange_durchmesser/2, 0]) cylinder(d=lenkerstange_durchmesser, h=2*hoehe); } module Kabelbinder() { cube([200, 5, 10]); } module FlaschenHalt...
glb/cad_44263859fda2.glb
Create a skull-shaped soap dispenser cover by starting with a human skull model scaled up by 1.1. Position the skull so it is shifted 3mm along the Y-axis. To accommodate the soap dispenser bottle, create a vertical cutout through the top of the skull. This cutout consists of a central cylindrical shaft with a diameter...
$fn=32; wiggle=.2; shifty=-3; scaleskull=1.1; wall=1.5; skullfile="skulltop4fix_MeshmixerMakeSolid.stl"; STL_soapbottle="soapbottle_balea.stl"; center_soapbottle=[5,-301.5,-73]; d_soapneck=33; depress=13; depressstart=-3; soap_shiftz=-2.5; module neck(delta,depress) { translate([0,0,0]) cylinder(d=d_...
glb/cad_2ff89e368fbf.glb
Create a Halloween name charm consisting of a decorative text plate and a mounting pin. First, create the text plate. Using the "Butcherman" font, extrude the word "Spooky" to a height of 4.1mm. The letters should be 13mm tall. At the base of the text, create a connecting bar with a thickness of 3.9mm (30% of the fon...
$fn=48; part="both"; textstring="Spooky"; fontname="Butcherman"; do_shift_font="automatic"; textsize=13; th_bottom=3; dia_bottom=20.5; len_throughhole=6; dia_pin=8.5; dia_lockpin=dia_pin*.5; out_lockpin=dia_pin*.05; th_topper=dia_lockpin; th_flange=th_bottom/2; dia_flange=dia_bottom-th_flange*2; wiggle=.2; topa...
glb/cad_e73ef0892a1e.glb
Create a Hexagonal Reversi game board. The board is a large hexagonal structure composed of a grid of smaller hexagonal cells. Each cell is designed to hold a game stone. The board's main body is a flat hexagonal plate with a thickness of 3.08mm (calculated as $18 \times \sqrt{3}/2 \times 1/3$ based on the provided so...
rr = 1; dx = 18; pp = 1; ce = 0; so = 0; jp = 2; cp = 1; ep = 1; pf = 0.1; ps = 0; hw = 1; wt = 0.5; cw = 1; ew = 1; cs = 0; ds = 20; ff = 0.05; pp_max = 6; dq = sqrt(3) / 2; dy = dx * dq; dz = dx * 2 / 3; oz = dx * 5 / 18; tri_dx = (rr + 1) * dx; tri_dy = rr * dy; tri_dz = dz / 2; $fn = ds; if (s...
glb/cad_3519f4065740.glb
Create a small customizable box consisting of a bottom base and a lid. The base is a rectangular shell with internal dimensions of 50mm length, 25mm width, and 20mm depth. The lid is a matching rectangular shell with internal dimensions of 50mm length, 25mm width, and 10mm depth. Both parts feature rounded exterior cor...
length=50; width=25; lid_depth=10; bottom_depth=20; translate([0,0,length/2+3]) rotate([0,90,0]) box(length,width,lid_depth*2); module box(ix,iy,iz){ $fn=50; union(){ difference(){ hull(){ for(x=[-ix/2,ix/2]) for(y=[-iy/2,iy/2]) translate([x,y,0]) difference(){ cylinder(r=3,h=iz/2+3); rotate_extrude() translate([9,0...
glb/cad_d79e14bbceef.glb
Create a universal key consisting of a cylindrical shaft and a handle. The shaft is a cylinder with a diameter of 9.5mm and a length of 12mm. At the top of this shaft, add a hemispherical cap with a radius of 4.75mm. Attached to the top of the shaft is a flat, wide handle. This handle is formed by a hull of several cy...
Test = 0; TYPE="square"; GRIP="classic"; DIAMETER_EXT=9.5; DIAMETER_INT=7.3; LENGTH=12; D=DIAMETER_EXT; D3=D/3; D4=D/4; D5=D/5; FN=15*D/ln(D); if ( D > DIAMETER_INT && LENGTH >= 0) { difference() { union() { cylinder(LENGTH, d=DIAMETER_EXT, $fn=FN); translate([0, 0, LENGTH]) sphere(DIAMETER_EXT/2...
glb/cad_e6eab0eea238.glb
Create a Customizable Lens Holder. Start by creating a main cylindrical body with an outer diameter of 35.4mm and a thickness of 10mm. Inside this body, center a cylindrical hole with a diameter of 25.4mm to accommodate the lens. To secure the lens, add a lip around the inner rim with a thickness of 3mm. On the side o...
Lens_Diameter=25.4; Lens_Holder_Thickness=10; Lens_Holder_Lip_Size=3; Base_Diameter=25; Base_Height=25; Guide_Rod_Length=20; Guide_Rod_Diameter=8; Set_Screw_Diameter=3; Set_Screw_Nut_Diameter=6; Set_Screw_Nut_Thickness=3; x=Lens_Diameter; y=Lens_Holder_Thickness; z=Lens_Holder_Lip_Size; X=Base_Diameter; Y...
glb/cad_067a29486bed.glb
Create a customizable painting frame consisting of four corner pieces and connecting rods. The total outer dimensions of the assembled frame are 300mm in width and 239mm in height. Each corner piece is an L-shaped block with a thickness of 12mm and a width of 24mm. The outer arms of the corner are 70mm long. Each corn...
totalWidth=300; totalHeigh=239; splitWidth=2; splitHeigh=1; width=24; length=70; thicknes=12; pinrad=6; pintolerance=0.15; overlap=1.5; cut=4; cutdepth=4; $fn=100; translate([0,0,0]) corner(); translate([length+width,0,0]) rod((totalWidth-2*(length-width)-cut/2)/splitWidth); translate([totalWidth/2+3*width...
glb/cad_df127d64c2ed.glb
Create two holiday ornaments based on beveled polyhedra. For the first ornament, create two identical rhombic dodecahedra with a diameter of 90mm. Truncate the six vertices where four planes meet on each. Position the two shapes so they overlap, with one rotated 45 degrees around the Z-axis relative to the other. Fo...
do_two(); module do_two() { union() { rotate([0,0,45]) poly(90,90,90,40,40,40,4,4,4); poly(90,90,90,40,40,40,4,4,4); translate([0,1,49]) make_hanger(); }} module py_three() { union() { rotate([0,0,60]) poly(90,90,90,40,40,40,8,8,8); rotate([0,0,30]) poly(90,90,90,40,40,40,8,8,8); poly(90,90,90,40,40...
glb/cad_f83629a97f6b.glb
Create a Resizable Loose Filament Spool consisting of three distinct parts: a Hub, Spokes, and Brackets. First, create the Hub as a hollow cylinder with a height of 10mm and an outer diameter of 27mm (calculated as half of the 52mm center hole diameter plus the 10mm plug height). The hub wall thickness is 1mm. To allo...
part = "Hub"; Hub_Type = "Replicator"; Centre_Hole_Diameter = 52; Hub_Thickness = 15; Spoke_Length = 20; Bracket_Diameter = 50; Bracket_Thickness = 10; Bracket_Depth = 8 ; Bracket_Prong_Length = 1.0; Angular_Resolution = 0.1; Octagon_Resolution = 45 ; Decagon_Resolution = 36 ; Plug_Height = 10; Plug_Hole_Wid...
glb/cad_99d39f3299e9.glb
Create a fake AAA battery cell for a power supply design. Start with a main cylindrical body 10mm in diameter and 43.5mm in height. At the bottom, create a coaxial hole system to accommodate an M3 screw: first, a 5.8mm diameter hole extending 2mm deep, followed by a 3.4mm diameter hole that extends from that point up...
$fn=100; M2screwHeadHeight=1.3; M2screwHeadDiameter=3.6+0.2; M2screwDiameter=2+0.4; M2nutHeight=1.7+2; M2=[M2screwHeadHeight,M2screwHeadDiameter,M2screwDiameter,M2nutHeight,12]; M3screwHeadHeight=2; M3screwHeadDiameter=5.5+0.3; M3screwDiameter=3+0.4; M3nutHeight=2.5+2; M3=[M3screwHeadHeight,M3screwHeadDiameter,M3scre...
glb/cad_e35170db15d5.glb
Create a cello endpin stopper with a base thickness of 6mm. The main body is a composite shape centered around a 40mm by 40mm area. Start with a central 40mm diameter cylinder of 6mm height. Overlay this with a 3-sided prism (equilateral triangle) that extends 5mm beyond the cylinder's radius. Add a 40mm by 40mm by 6mm...
ancho=40; longo=40; espesor=6; diametroPica=14; difference(){ union (){ translate ([ancho/2,ancho/2,0]) cylinder(r=ancho/2,h=espesor, $fn=50); translate ([ancho/2,ancho/2,0]) rotate([0,0,30]) cylinder(r=ancho/2+5,h=espesor, $fn=3); translate ([0,ancho/2,0]) cube ([ancho,longo,espesor]); hull(){ translate([(a...
glb/cad_f22f536fd308.glb
Create a cello endpin stopper consisting of a single torus. The shape is formed by rotating a circle with a diameter of 5mm around a central axis. The center of this circle should be positioned 30mm away from the axis of rotation, resulting in a ring with an overall outer diameter of 65mm and an inner diameter of 55mm....
seccion = 5; radio = 30; module anillaSilla (seccion, radio){ rotate_extrude(convenxity=10, $fn=100) translate ([radio,0,0]) circle (r=seccion/2); } anillaSilla (seccion,radio);
glb/cad_cff027098dc2.glb
Create a cello endpin stopper in the shape of a rounded rectangular ring. The ring should have an overall width of 15mm and a total length of 20mm. The structure is formed by a continuous rounded profile with a constant cross-sectional radius of 2mm. To construct this, create two parallel cylinders with a radius of 2mm...
ancho = 15; seccion = 4; longitud = 20; module anillaUnion(seccion, longitud, ancho){ translate ([0,0,seccion/2]) rotate ([90,0,0]){ cylinder (r = seccion/2, h=longitud, $fn=50); translate ([ancho, 0,0]) cylinder (r = seccion/2, h=longitud, $fn=50); translate ([ancho/2,0,0])rotate ([90,0,...
glb/cad_5abe8e085183.glb
Create a customizable oval keychain. Start by creating a base oval plate with a width of 25mm, a length of 50mm, and a total height of 1.6mm. The plate should have a raised lip around the entire outer edge with a thickness and height of 0.4mm. On one of the narrow ends of the oval, integrate a small circular tab for ...
include <write/Write.scad> include <utils/build_plate.scad> width=25; length=50; height=1.6; lip=0.4; text="Hello World"; text_size = 6; text_font = "write/Letters.dxf"; ring_radius=1.6; ring_thickness=0.8; build_plate_selector = 0; build_plate_manual_x = 100; build_plate_manual_y = 100; kf_fn=25; build_plat...
glb/cad_190cd89dabaf.glb
Create a Customizable Bracer Stencil by constructing a flat, curved plate. Start with a thick annular sector created by the difference between two concentric cylinders, both centered on the same axis with a height of 2mm. The outer cylinder must have a radius of approximately 214.5mm and the inner cylinder a radius of ...
WristArc=160; ElbowArc=260; Length=180; Wrist2orig=(WristArc*Length)/(ElbowArc-Length); Elbow2orig=Wrist2orig+Length; Angle=(WristArc/Wrist2orig)*(180/3.14159); difference(){ union(){ difference(){ cylinder(r=Elbow2orig,h=2,center=true, $fn=50); cylinder(r=Wrist2orig,h=3,center=true, $fn=50); } } union(){ translate...
glb/cad_347c6ec60f2f.glb
Create a Headphone Hook with Unicorn Power by combining a desk-mounted bracket with a decorative unicorn emblem. Start by constructing two identical mirrored hook components. Each hook is a modified C-shape designed to clamp onto a surface; create a void in the center of these components using a 60mm cube to ensure the...
module bottom() { translate([0,8,0]) difference(){ import_stl("HeadphoneHook_3-short (fixed).stl", convexity = 5); translate([0,23,10]) cube(60, center = true); } } module top() { translate([0,-42,0]) difference(){ import_stl("HeadphoneHook_3-short (fixed).stl", convexity = 5); translate([0,-13,10]) cube([60,110,60], ...
glb/cad_60500956afdc.glb
Create a customizable watch band consisting of two main straps and a buckle holder. For the first strap, create a rectangular base 120mm long, 22mm wide, and 2mm thick, with a semi-circular cap of the same radius and thickness at one end. Along the length of this strap, starting at 40mm and repeating every 10mm, create...
$fn=32; l=130; lr=70; w=22; w2=w/2; t=2*1; module left() { difference() { union() { cube([l-w2,w,t]); translate([0,0,t])rotate([-90,0,0]) cylinder(r=t,h=w); translate([l-w2,w2,0]) cylinder(r=w2,h=t); } translate([0,-1,t]) rotate([-90,0,0]) cylind...
glb/cad_7fdbadfdbe82.glb
Create a customizable watch band consisting of two main straps and a buckle holder. First, construct the long strap: create a rectangular base 120mm long, 22mm wide, and 2mm thick. Add a semi-circular cap with a radius of 11mm and a height of 2mm to one end. At the opposite end, integrate a cylindrical pin housing by...
$fn=32; l=130; lr=70; w=22*1; w2=w/2; t=2*1; module left() { difference() { union() { cube([l-w2,w,t]); translate([0,0,t])rotate([-90,0,0]) cylinder(r=t,h=22); translate([l-w2,w2,0]) cylinder(r=w2,h=t); } translate([0,-1,t]) rotate([-90,0,0]) cyl...
glb/cad_664f9e3af058.glb
Create a butterfly wall decoration consisting of two symmetrical wings connected by a central hinge. Each wing is a flat profile with a thickness of 1.5mm. The left and right wings are mirrored organic shapes defined by complex polygons, approximately 100mm in length and width. Construct the hinge mechanism to allow t...
fudge = 0.1; module left_wing(h) { scale([25.4/90, -25.4/90, 1]) union() { linear_extrude(height=h) polygon([[-75.924619,4.654640],[-74.281184,3.581609],[-72.633098,2.119772],[-70.795172,-0.066101],[-69.038213,-3.056376],[-67.633024,-6.931419],[-66.850411,-11.771595],[-66.961179,-17.657270],[-59.144997,...
glb/cad_aec7d2d2971c.glb
Create a Portafilter Filling Cone designed as a hollow, tapered vessel. Start by creating a base cylinder with an outer radius of 29.5mm and a height of 20mm. On top of this base, add a tapered conical section with a height of 10mm, starting from a radius of 29.5mm at the bottom and narrowing to a radius of 24.5mm at t...
$fn = 90; basket_id = 59; lip_r = basket_id/2 + 5; lip_h = 1; lip_z_offset = 4; lip_support_h = 5; base_cone_r = basket_id/2; base_cone_h = 20; top_cone_r1 = base_cone_r; top_cone_r2 = top_cone_r1 - 5; top_cone_h = 10; cone_wall_thickness = 1; rotate( [ 0, 180, 0 ] ) { translate( [ 0,...
glb/cad_8ada1fccd511.glb
Create a Speaker Spacer Mount Tab. Start by forming a base plate that is 4.5mm thick, 40mm wide, and 15mm high. The outer edge of the base plate should follow a concave curve with a radius of 120mm, offset by 2.5mm. Extend a tab from the base plate that is 40mm long and 40mm wide. The tab's profile should be a hull c...
bracket_height = 15; mount_width = 40; thickness = 4.5; bracket_radius = 120; radius_offset = 2.5; tab_length = 40; tab_width=40; slot_offset_tab_end=35; slot_offset_base = 15; difference () { hull() { translate([tab_length, 0, 0]) cylinder(h=thickness, r=thickness+1, $fn=100); translate([thick...
glb/cad_58e69f8e8e05.glb
Create an ultra-thin credit card sheath designed to hold a card with dimensions of 85.6mm by 53.98mm and a thickness of 0.8mm. Start by creating a solid base plate with a height of 0.4mm. The overall footprint should be a rounded rectangle based on the card dimensions plus a 0.8mm perimeter wall, with corners rounded...
$fn = $preview ? 16 : 32; z_fight = $preview ? 0.01 : 0; base_text = "Lights"; font_size = 14; font = "Allerta Stencil"; card_length = 85.6; card_width = 53.98; card_height = 0.8; card_edge = 3; base_height = 0.4; top_height = 0.2; perimeter = 0.8; guide_width = 0.4; difference() { union() { difference() { ...
glb/cad_6a36a7fc9f67.glb
Create a two-part credit card sheath consisting of a base and a top cover. The internal cavity for both parts must fit a standard card of 85.6mm length, 53.98mm width, and 0.8mm height, with rounded corners using a 3mm radius. For the base, create a flat plate 0.4mm thick. The outer boundary should extend 0.8mm beyond...
$fn = $preview ? 16 : 32; z_fight = $preview ? 0.01 : 0; base_text = "Lights"; top_text = "Lights"; font_size = 14; font = "Allerta Stencil"; card_length = 85.6; card_width = 53.98; card_height = 0.8; card_edge = 3; base_height = 0.4; top_height = 0.4; perimeter = 0.8; clip_height = 0.4; clip_width = 5; differenc...
glb/cad_cd1ac7f93c31.glb
Create a pen holder for a 3D printer. Start by constructing a rectangular base block measuring 48mm in width, 6mm in depth, and 15mm in height. At each end of the base, remove a 10mm cube centered on the edge and rotated 45 degrees on the Z-axis to create chamfered corners. Bore two smooth holes through the base, each ...
pen_dia = 9.5; difference(){ difference(){ rotate([0,0,-90]) translate([0,-1,0]) difference() { cube([48, 6, 15], center=true); translate([-24, -6, 0]) rotate([0, 0, 45]) cube([10, 10, 25], center=true); translate([24, -6, 0]) rotate([0, 0, 45]) cube([10, 10, 25], center=true); } translate([-5,15,0]) ...
glb/cad_76445542449c.glb
Create a K8200 anti-Z-wobble holder. Start with a main body formed by the union of two shapes: a cylinder with a radius of 12.5mm and a height of 25mm, and a rectangular block measuring 25mm by 0.1mm by 15mm, blended together using a convex hull. To this, add a second rectangular block measuring 0.1mm by 50mm by 27.5mm...
difference() { union() { translate([21,53.5+27.5,-1.25]) difference() { union() { hull() { cylinder(15,25/2,25/2); translate([-25/2,-20,0])cube([25,.1,15]); } hull() { translate([-25/2,-20,0])cube([25,.1,15]); translate([-18,-106,-12.5])cube([.1,50,27.5]); } } cylinder(100,15/2,15/2,cent...
glb/cad_79d538e5dd21.glb
Create a K8200 anti-Z-wobble holder by starting with a central block composed of three overlapping rectangular prisms. The largest prism is 27.5mm wide, 45mm deep, and 50mm high, centered on the X and Y axes. To this, add two smaller centered prisms: one measuring 16mm by 45mm by 50mm and another measuring 12mm by 45mm...
translate([0,27.5/2-1,355])difference() { union() { translate([0,22.5+1 , 0])cube([27.5,45,50],center=true); translate([0,22.5-0, 0])cube([16 ,45,50],center=true); translate([0,22.5-1, 0])cube([12 ,45,50],center=true); } translate([0,20-0,-25])cylinder(10,4,4,center=true); translate([0,0, 00])scr...
glb/cad_feb4964aab6c.glb
Create a K8200 anti-Z-wobble rod holder. Start with a central rectangular block measuring 27.5mm wide, 25mm deep, and 25mm high. To this central block, attach two smaller rectangular blocks centered on the same axis: one measuring 16mm by 25mm by 25mm and another measuring 12mm by 25mm by 25mm, creating a stepped profi...
translate([0,27.5/2-1,355])difference() { union() { translate([0,22.5+1-10 , 0])cube([27.5,25,25],center=true); translate([0,22.5-0-10, 0])cube([16 ,25,25],center=true); translate([0,22.5-1-10, 0])cube([12 ,25,25],center=true); } # translate([0,20-0,-12])cylinder(10,4,4,center=true); translate([0,...
glb/cad_e6b04d51f4b2.glb
Create a K8200 anti-Z-wobble holder by constructing a central block and removing specific geometric volumes. Start with a primary cube measuring 27.5mm in width, 30mm in depth, and 25mm in height, centered on the origin. Add a second, smaller cube centered on the same axis with dimensions of 27.5mm width, 5mm depth, an...
translate([0,27.5/2-1,355]) difference() { union() { translate([0,22.5+1-5, 0])cube([27.5,30,25],center=true); translate([0,22.5+1-20, 0])cube([27.5, 5,25],center=true); translate([0,22.5-0-20, 0])cube([16 , 5,25],center=true); translate([0,22.5-1-20, 0])cube([12 , 5,25],center=true); } tr...
glb/cad_e628249ff9e2.glb
Create a K8200 anti-Z-wobble holder. Start with a central block formed by the union of three rectangular prisms centered on the X-axis: the largest is 27.5mm x 45mm x 50mm, the middle is 16mm x 45mm x 50mm, and the smallest is 12mm x 45mm x 50mm. From this combined volume, remove a vertical cylindrical hole with a di...
translate([0,27.5/2-1,355])difference() { union() { translate([0,22.5+1 , 0])cube([27.5,45,50],center=true); translate([0,22.5-0, 0])cube([16 ,45,50],center=true); translate([0,22.5-1, 0])cube([12 ,45,50],center=true); } translate([0,23-0,-25])cylinder(10,5,5,center=true); translate([0,0, 00])sc...
glb/cad_0d16778b2d72.glb
Create a Yaesu FT-817 Power Pole adaptor with a total body thickness of 12mm. The main body is a complex hull starting from a cylinder with a radius of 5.75mm (half of the 8.5mm earth post diameter plus 1.5mm wall thickness) centered at the origin, extending to a cylinder of radius 6.5mm positioned at [0, 17, 0]. Inc...
$fn=100; showdecoration=true; thickness=12; outsidewallthickness=1; sidewall=1.5; connectorangle=-114; ppstep=2; ppgap=16.1; ppoffset=-11.5; ridge=1; earthdia=8.5; cablepocket=5; difference() { hull() { cylinder(12,earthdia/2+sidewall,earthdia/2+sidewall); translate([0,17,0]) cylinder(thickne...
glb/cad_9aa36efb0198.glb
Create a Kossel Mini Carriage. Start with a main rectangular body 27mm wide, 40mm long, and 6mm thick, centered on the Y-axis. On each side of the body, add a ball joint mount horn. Each horn is created by the intersection of a 40mm wide, 18mm long, 13mm thick block and a truncated cone with a base radius of 14mm and a...
include <configuration.scad>; belt_width = 6; belt_thickness = 1.0 - 0.01; belt_pitch = 2.0; tooth_radius = 0.8; belt_offset = 1; clamp_width = 11.5; clamp_length = 20.5; clamp_base = 1; path_height = belt_width + 1; clamp_thickness = path_height+clamp_base; $fn = 40; clamp_inside_radius = 10-belt_thickness; clamp...
glb/cad_a046cdd987ab.glb
Create a Victorian Vent consisting of a decorative grate centered within a rectangular frame. First, construct the decorative grate. The grate is composed of two identical, mirrored ornate panels. Each panel is a complex, organic silhouette with a thickness of 3mm. The overall grate assembly is scaled to fit within a ...
fudge = 0.1; module poly_path4041(h) { scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[89.417453,91.913635],[82.607937,90.034240],[81.118106,84.054248],[84.081373,78.858924],[90.631153,79.333535],[89.411964,85.162010],[87.181243,82.061435],[85.59816...
glb/cad_bcde3458485b.glb
Create a speaker spacer adapter with a total height of 5mm. Start by forming the main body as a cylinder with a diameter of 69mm. Extend this body by adding two smaller circular tabs, each 20mm in diameter and 5mm thick, positioned symmetrically on opposite sides along the Y-axis, each offset 45mm from the center. Use ...
resolution = 64; cutout_size = 40; spacer_OD = 69; spacer_height=5; left_tab = 20; left_distance = 45; right_tab = 20; right_distance = 45; tab_offset =6; screw_size = 8; screw_elongation = 3; difference (){ hull () { translate([0, 0, 0]) cylinder(h=spacer_height,d=spacer_OD,$fn=resoluti...
glb/cad_194ec6c7cdc5.glb
Create a parametric parts tray with an interior base area of 70mm by 40mm and a total height of 16mm. The tray features a flat bottom with a thickness of 2mm. The walls are 4mm thick. The four corners are rounded using a conical geometry. The outer corners are formed by four cones with a base diameter of 48mm, taperin...
$fn=24; Rad=24; Thk=2; Len=70; Wid=40; Ht=16; LipHt=2; Bot=2; Section=0; Style=0; Rot=0; Sang=45; TanAng=tan(90-Sang)* (Ht-LipHt); echo("TanAng = ",TanAng); Dia2=Rad*2; echo("Dia2 = ",Dia2); Dia1=Dia2-TanAng; echo("Dia1 = ",Dia1); Thk2=Thk*2; Len2=Len/2; Wid2=Wid/2; LenOut=Len+Thk2; LenOut2=LenOut/2; WidOut=Wid+Thk2; ...
glb/cad_e8de186fa60d.glb
Create a Remote-Control Holder consisting of a rounded rectangular sleeve designed to hold a remote. The overall outer dimensions of the sleeve are 48.5mm wide, 24mm thick, and 60mm high. The walls of the holder are 2mm thick. The interior is hollowed out to create a slot for the remote, but the bottom is closed. To ...
largeur_telecommande_tv = 48.5; epaisseur_telecommande_tv = 24; largeur_telecommande_freebox = 38.8; epaisseur_telecommande_freebox = 17.5; largeur_telecommande_ampli = 50; epaisseur_telecommande_ampli = 18.8; hauteur_support = 40; hauteur_totale_support = 60; epaisseur_support = 2; detail = 10; epaisseur_minkowski = 2...
glb/cad_7667ac44ff1e.glb
Create a Zeiss Axiovert 200 well plate insert. Start with a base rectangular plate measuring 149.5mm by 99.5mm with a thickness of 5mm. Add a top rectangular plate measuring 159.5mm by 109.5mm with a thickness of 3mm, positioned directly above the base. Both plates should have rounded corners with a radius of 6.5mm. I...
$fn=100; WELL_PLATE_L=128; WELL_PLATE_W=86; WELL_PLATE_H=14.5; LIP_W=3.5; LIP_T=1.0; INSERT_L=159.5; INSERT_W=109.5; TOP_T=3.0; BOTTOM_L=149.5; BOTTOM_W=99.5; BOTTOM_T=5.0; EDGE_RADIUS=6.5; HOLE_OFFSET=3.5; M3_TAP_SIZE=2.5; TOTAL_T=BOTTOM_T+TOP_T; DEPTH=TOTAL_T-LIP_T; SECOND_SUPPORT_OFFSET=2.0; SUPPORT_W=0.5; mo...
glb/cad_a53462d2ece0.glb
Create a wire bundle frame clip with a height of 20mm. The main body is a block containing a central cylindrical hole with a diameter of 16mm to accommodate a wire bundle. To allow wires to be inserted without disconnecting them, create a longitudinal slit or opening running along the top of the clip. The outer edg...
module DrawClip() { difference() { linear_extrude(height = 20, center = false, convexity = 10)polygon(points = [[23.77,-10.00], [22.33,-12.44], [19.00,-13.33], [15.67,-12.44], [13.74,-10.76], [11.76,-8.22], [10.09,-6.60], [7.49,-5.33], [4.61,-5.02], [2.33,-5.50], [-0.50,-6.53], [-1.21,-7.18], [-1.25,-8.14], [-0.60,-8.8...
glb/cad_ca5c573bb302.glb
Create a Parametric Hanging Clip with a total width of 20mm, height of 20mm, and a base thickness of 2mm. Start by forming a solid rectangular base of 20mm by 2mm by 20mm. Build upon this base by adding two vertical side walls, each 2mm thick, running the full height of 20mm at the left and right edges. Connect these w...
Clip_Width = 20; Clip_Height = 20; Clip_Base_Thickness = 2; Lip_Thickness = 2; Lip_Width = 5; Wall_Width = 2; Tolerance = 0.3; module __Customizer_Limit__ () {} union() { cube([Clip_Width, Clip_Base_Thickness, Clip_Height]); translate([Lip_Width + Wall_Width, Clip_Base_Thickness, Lip_Width]) { cube(...
glb/cad_9f44faae8b20.glb
Create a Pythagoras fractal tree composed of cubes, starting with a central base cube of 20mm per side centered at the origin. From the top edge of this cube, sprout two smaller cubes that form a right-angled triangle, with their sizes determined by the cosine and sine of a 35-degree angle relative to the parent cube's...
e=0.22; i=20; r=1; angle =35; nombreiteration =7; module iter(nbIter,i,r) { color( [(rands(0,10,1)[0])/10,(rands(0,10,1)[0])/10,0.5+0.5*r] )cube(i,center=true); if (nbIter<nombreiteration) { if( r < 0) { translate([0,i*(1/2-cos(angle)*(cos(angle+45))*sqrt(2)/2)-e/2,i*(1+cos(angle)*(sin(angle+45))*sqrt(2))/2-e]) rot...
glb/cad_34727b3819e2.glb
Create a vacuum viewport light holder by constructing a circular ring with an outer diameter of 94mm and a total height of 12mm. The main body is a cylinder with a wall thickness of 2mm. Hollow out the center to create a channel for an LED strip; this internal void should be 10mm wide and centered within the walls. T...
windowFrameDiameter = 97; windowFrameDepth = 11; screwCircleDiameter = 130; ledStipWidth = 10; ledStripThickness = 1; wallThickness = 2; gap = 1.5; e = 0.1; flangeDiameter = 151; flangeThickness = 20; screwHoleDiameter = 8; screwHoleNumber = 16; angleResolution = 128; %difference(){ translate([0,0,-flangeThi...
glb/cad_bf2dbfac6199.glb
Create a USB Card Reader holder by constructing a main rectangular body with rounded corners. The outer dimensions of this base should be 29mm wide, 20mm deep, and 24.5mm high, with a corner radius of 2mm. Inside this body, carve out a central slot that is 26mm wide and 17mm deep, starting 1.5mm from the bottom and ext...
use <MCAD/shapes.scad> $fn=90; wt=1.5; cd=17; cw=26; logoindent=2.05; logolw=24.5; height=logolw; difference(){ union(){ roundedBox(cw+2*wt,cd+2*wt,height, 2); translate([0,logoindent/2+cd/2+wt,0]) cube([logolw,logoindent,logolw],center=true); } translate([0,0,wt]) roundedBox(cw,cd,25,1); transla...
glb/cad_3876b544d463.glb
Create a parametric porch hook with a total thickness of 5.66mm. Start with a base plate that is 35mm long and 5.66mm wide, centered on the X-axis. At the front end of this plate, integrate a circular hook with an outer diameter of 15mm and a wall thickness of 4mm. The hook should curve back toward the base. Within t...
board_gap = 8; board_thickness = 25; wing_width = 20; hook_size = 15; shaft = board_gap/sqrt(2); echo(Shaft_thickness=shaft); $fn=50; roundover=2; fillet=roundover/2; wing_thickness=5; tensioner_angle=15; wallshift=(roundover-fillet)/2; module tensioner3d() { translate([board_thickness+sin(tensioner_angle)*(wi...
glb/cad_4517893ff669.glb
Create a Simple Screw Thread Library consisting of a bolt and a matching nut. For the bolt, create a central cylinder with a radius of approximately 2.38mm and a total height of 19.2mm. Wrap a helical thread around this cylinder with a pitch of 1.5875mm and a major diameter of 9.525mm. The thread profile is based on ...
root3 = sqrt(3); root3div3 = root3/3; thread(1.5875,9.5250,12,12); translate([15,0,0]){ difference(){ cylinder(r=8,h=8); translate([0,0,-1.5875/2]){thread(1.5875,9.5250,12,8, 0.2, true);} }} module screwthread_triangle(P, tol) { cylinderRadius=root3div3*(P+2*tol); translate([2*tol,0,0]){ differ...
glb/cad_624f9af673af.glb