Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Customizable Hard Hat Insert consisting of a rectangular base tab and extruded 3D text. First, construct the base tab. Create a rectangular plate with a width of 28mm, a length of 16mm, and a thickness of 2.75mm. Round the two corners at the front of the tab using a radius of 1mm. Remove a rectangular sectio...
line4 = ""; line3 = ""; line2 = "Custom"; line1 = "Thing"; FontName="Orbitron"; FontSize = 12; FontSpace = 1.0; FontExtrude = 3; LineSpace = 1.1; OrphanSize = 0.95; stlortext = "text"; stlfile = "koss_insert.stl"; stlshift = [0,9,0]; stlscale = [1,1,1]; stlrotate = [0,0,0]; tabX = 28; tabY = 16; tabZ = 2...
glb/cad_cc39227877f4.glb
Create a Hard Hat Insert consisting of a rectangular base tab with embossed text. Start by creating the base tab: a rectangular plate measuring 28mm wide, 16mm long, and 2.75mm thick. Round the two corners at the end of the tab with a radius of 1mm. Remove a rectangular section from the bottom of the tab, leaving a s...
line4 = ""; line3 = "again"; line2 = "Test"; line1 = "Koss"; FontName="Electrolize"; FontSize = 12; FontSpace = 1.0; FontExtrude = 3; LineSpace = 1.1; stlortext = "text"; stlfile = "koss_insert.stl"; stlshift = [0,9,0]; stlscale = [1,1,1]; stlrotate = [0,0,0]; tabX = 28; tabY = 16; tabZ = 2.75; tabHead = ...
glb/cad_fe10f6d192da.glb
Create a Hard Hat Insert tab consisting of a rectangular base with embossed text. First, construct the base tab. Create a rectangular plate 28mm wide, 16mm long, and 2.75mm thick. Round the two corners at the top of the plate using a radius of 1mm. Remove a rectangular section from the center of the plate, leaving a ...
line1 = ""; line2 = ""; line3 = ""; line4 = "Koss"; FontName="Electrolize"; FontSize = 12; FontSpace = 1.0; FontExtrude = 3; LineSpace = 1.1; stlortext = "text"; stlfile = "koss_insert.stl"; stlshift = [0,9,0]; stlscale = [1,1,1]; stlrotate = [0,0,0]; tabX = 28; tabY = 16; tabZ = 2.75; tabHead = 1; tabCli...
glb/cad_93f697b59b24.glb
Create a model rocket nose cone with a quadratic profile. The base of the nose cone is a hollow cylinder with an outer radius of 13.71mm and a height of 9mm. The walls of this base cylinder are 2.29mm thick, created by removing an inner cylinder with a radius of 11.43mm. Above this base, construct the nose cone's bod...
R_MOTOR=12; R_MOTOR_IN=9; H_MOTOR=70; R_IN=R_MOTOR*8/7; R_OUT=R_IN*8/7; H_BODY=R_IN*15; R_MT=R_MOTOR_IN; H_MT=R_MT; H_CR=R_MT/4; H_IN_MOT=H_MOTOR*5/6; T_FIN=R_MT/4.5; H_NOSE=pow(R_OUT,2)/4; union(){ rotate_extrude($fn=200) polygon(points= [[0,H_NOSE/4], [R_MT/1.5,0], [R_OUT,0], [pow(4*(H_NOS...
glb/cad_e4ee8bfe4dbf.glb
Create a Track Cleaning Car for N scale. Start with a central rectangular frame measuring 103mm long, 20mm wide, and 1mm thick. Centered on this frame, create a rectangular cutout 30mm long and 18.5mm wide, with a depth of 14mm, to accommodate the cleaning drum. At each end of the frame, positioned 10.4mm inward from ...
include <../ngauge.scad>; include <../../includes/jshapes.scad>; include <../../includes/OpenSCAD_Triangles/Triangles.scad>; penny_d=19.2; module cleaningdrum(drumd, h) { $fn = 150; difference() { union() { rotate([90,0,0]){tube(drumd,penny_d,h);} rotate([90,0,0]){...
glb/cad_b14362e27784.glb
Create a model rocket nose cone with a quadratic profile. The shape is generated by rotating a specific 2D polygon around a central vertical axis. The profile starts at the peak with a height of 20mm, curving downward. The base of the nose cone is a circle with a radius of approximately 11.43mm. The overall structure ...
R_MOTOR=10; R_MOTOR_IN=6; H_MOTOR=70; R_IN=R_MOTOR*8/7; R_OUT=R_IN*8/7; H_BODY=R_IN*15; R_MT=R_MOTOR_IN; H_MT=R_MT; H_CR=R_MT/4; H_IN_MOT=H_MOTOR*5/6; T_FIN=R_MT/4.5; H_NOSE=pow(R_OUT,2)/4; union(){ rotate_extrude($fn=200) polygon(points= [[0,H_NOSE/4], [R_MT/1.5,0], [R_OUT,0], [pow(4*(H_NOS...
glb/cad_e6e101db344f.glb
Create a mold for a bending actuator by starting with a solid rectangular block that is 24mm wide, 11mm long, and 43mm high. Inside this block, carve out a rectangular cavity that is 20mm wide, 7mm long, and 40mm high, positioned 2mm from the side walls and 3mm from the bottom base. Finally, add a solid rectangular cor...
length = 40; width = 20; moldHeight = length + 3; moldWidth = width + 4; moldLength = 7 + 4; coreHeight = length - 3; coreWidth = width - 5; coreLength = 1 + 1; union() { translate([(moldWidth/2)-(coreWidth)/2,moldLength-5.5,3]) { cube([coreWidth,coreLength,coreHeight]); } difference() { cube([moldWidth,moldLength...
glb/cad_617cd068b1ab.glb
Create a customizable door stopper with a total length of 120mm, a width of 60mm, and a height of 25mm. Start by constructing a solid wedge shape that slopes from the full height of 25mm at one end down to 0mm at the opposite end across the 120mm length. From this main body, remove a large rectangular central volume to...
height = 25 ; length = 120 ; width= 60 ; module toto() { } $fn = 24; half_width = width / 2; ep_bor = 10; bottom_cube_length = length - 4 * ep_bor; bottom_cube_width = width - 2 * ep_bor; bottom_cube_height = 6; bottom_z = 0; top_cube_length = length - 4 * ep_bor; top_cube_width = width - 2 * ep_bor; top_cube_...
glb/cad_38487d54fa56.glb
Create a Z-motor-mount and Z-idler assembly designed to hold LM8UU linear bearings. Start by creating a main body consisting of two rectangular blocks, each 20mm wide, 40mm deep, and 19.8mm high, positioned symmetrically. Within these blocks, incorporate hexagonal nut traps for M3 nuts. Specifically, create four hexa...
include <configuration.scad> corection = 1.17; nut_correction_v = 0.5; hole_correction_x = 2; hole_correction_y = 3.5; hole_correction_xy = 0; logo_h=0.3; blockheight=19.8; lm8uu_dia=15.75; module xendmotor(){ translate(v = [0,17,24.5]) union(){ difference(){ union(){ translate(v = [-25, -40, -16.6+1])cube(size = [2...
glb/cad_076cd66bc0ec.glb
Create a Z-motor-mount and Z-idler assembly designed to hold LM8UU linear bearings. Start with a rectangular base plate. On top of this plate, construct a main housing block. This block should feature a central rectangular cutout to accommodate the linear bearings and a semi-circular notch on the top edge. Integrat...
include <configuration.scad> corection = 1.17; nut_correction_v = 0.5; hole_correction_x = 2; hole_correction_y = 3.5; hole_correction_xy = 0; blockheight=19.8; lm8uu_dia = 15.75; module xendmotor(){ translate(v = [0,17,24.5]) union(){ difference(){ union(){ translate(v = [-25, -40, -16.6+1])cube(size = [20,40,bloc...
glb/cad_607ac4c23f0c.glb
Create a MiniRAMBo Micro Mount consisting of a flat base plate and four cylindrical standoffs. Start with a flat plate that is 4mm thick, extending from 0 to 80mm in width and 0 to 120mm in length. At the four corners of this plate, place four cylindrical standoffs, each 10mm tall with an outer radius of 3.5mm and a co...
$fa = 1; $fs = 1; module mounting_standoffs() { height = 10; translate([7, 7, 0]) { for(x=[5, 66], y=[5, 100]) { difference() { translate([x, y, 0]) cylinder(r=3.5, h=height); translate([x, y, 0]) cylinder(r=1.5, h=height); } } } } module flat_bracket...
glb/cad_b8d7b119837f.glb
Create a k8200 fast clamp for a 3Drag Choko extruder modification consisting of three distinct parts: a clip, a link, and a noose. First, create the clip. Start with a base block 36.8mm wide and 10mm high. The interior should be hollowed out to accommodate an aluminum profile, with a central rectangular cutout 15.5mm ...
clmp_internal = 27.8; clmp_width = 4.5; clmp_extra = 11.5; clmp_noose = 4; clmp_external = clmp_internal + 2*clmp_width; clmp_clipaxes = clmp_external -1 + clmp_noose; module clip (height = 10, holes = 0, h_pos = 0 ){ adjust_01 = .8; adjust_02 = .4; translate([0, - clmp_internal-clmp_extra-.1,...
glb/cad_9baa59eeef07.glb
Create a Reuleaux Solid of Revolution with a constant width of 40mm. To construct this, first generate a 2D Reuleaux triangle with a width of 40mm by finding the intersection of three circles, each with a radius of 40mm, centered at the vertices of an equilateral triangle with side lengths of 40mm. Position this 2D s...
object = 3; width = 40; resolution = 200; triangle_height = 2; triangle_side_thickness = 4; $fn = resolution; radius = width; if (object == 1){ difference(){ Reuleaux_triangle(radius); Reuleaux_triangle(radius - (triangle_side_thickness*2)); } } else if (object == 2) { Reuleaux_tetrahedron...
glb/cad_3afdfcd3e47f.glb
Create a mirrored extruder body for a Prusa i3 Plus 1.75mm direct drive. The main body is a block with a height of 15mm. Construct the primary volume using two joined rectangular sections: one measuring 42mm by 85.5mm by 15mm and another measuring 45mm by 42mm by 15mm. Apply 45-degree chamfers to the top and upper-ri...
module fan() { difference(){ cube([30,30,10]); translate([3,3,0])cylinder(r=1.5,h=20,$fn=12); translate([30-3,30-3,0])cylinder(r=1.5,h=20,$fn=12); translate([30-3,3,0])cylinder(r=1.5,h=20,$fn=12); translate([3,30-3,0])cylinder(r=1.5,h=20,$fn=12); translate([15,15,0])cylinder(r=12.5,h=20,$fn=32); }...
glb/cad_da2b572ff537.glb
Create a toy propeller consisting of a central mount and three radiating blades. Start by creating a central cylindrical mount with a total height of 3mm and a diameter of 12.5mm. Bore a concentric hole through the center of this mount with a diameter of 5mm. From this central hub, add three identical blades spaced equ...
propeller(6.25, 2.5, 3, 3, 22, 2.5); module propeller(mount, hole, h1, c, l, h2) { mount(r1 = mount, r2 = hole, h = h1); blades(c = c, l = l, allowance = hole, h = h2); } module mount(r1, r2, h) { difference() { cylinder(d = r1 * 2, h = h, centre = true, $fn = r1 * 8); cylinder(d = r2 ...
glb/cad_54705a4040a9.glb
Create a Kinect Holder for a Samsung TV by constructing a clip with a total length of 70mm and a thickness of 4mm. Start with a rectangular base plate that is 70mm long and 51.9mm wide. From this base, extend a front lip 13.5mm deep and a back lip 31.5mm deep to create a C-shaped channel. The interior of this channel m...
length=70; tv_thickness_top=19.4; tv_thickness_bot=20.2; depth_backpart=31.5; depth_frontpart=13.5; clip_length=70; clip_width=51.9; rad1=6.45; rad2=12; $fn=60; thickness=4; translate ([0,tv_thickness_top,-depth_frontpart]) cube ([length,thickness,depth_frontpart]); difference(){ translate ([0,-thickness...
glb/cad_305a3945f32c.glb
Create a Water Tap Faucet Nozzle consisting of a threaded cylindrical body. The main body is a cylinder with a diameter of 8mm and a total length of 4mm. Construct a right-hand external screw thread around this cylinder with a pitch of 2mm. The thread should wrap around the cylinder for the full 4mm length. To ensure...
metric_thread(8, 2, 4); pi = 3.14159265; function segments(diameter) = min(50, ceil(diameter*6)); module metric_thread(diameter=8, pitch=1, length=1, internal=false, n_starts=1) { n_turns = floor(length/pitch); n_segments = segments(diameter); h = pitch * cos(30); union() { intersection() { ...
glb/cad_35f8de9b7332.glb
Create a Jacob Jensen weather station mounting plate. Start with a rectangular base measuring 70mm in width, 42mm in depth, and 2mm in height. At each of the four corners, add a small cylindrical peg with a radius of 2mm and a height of 2mm extending upwards from the base. On the top surface of the plate, create two ...
$fn = 100; module plate () { translate([-35,-3,-2]) cube([70,6,2]); translate([-28,0,0]) cylinder(2,1.5,1.5); translate([28,0,0]) cylinder(2,1.5,1.5); translate([-28,0,2]) cylinder(1,1.5,2.5); translate([28,0,2]) cylinder(1,1.5,2.5); translate([-28,0,3]) cylinder(1,2.5,2.5); translate([28,0,3]) cylinder(1,2....
glb/cad_836031570fdc.glb
Create a VW Golf MK4 Switch Dummy Panel. Start with a main rectangular body measuring 29mm wide, 45mm long, and 3mm thick. From this base, build a hollow rectangular enclosure centered on the base. The outer walls of this enclosure should be 22mm wide and 40mm long, with a height of 18mm. The walls of this enclosure ...
x = 29; y = 45; z = 3; a = 7; left = true; right_r = 1; left_r = 4; difference() { union() { difference() { translate([-x/2,-y/2,-z]) cube([x,y,z*3]); translate([-(x+10)/2,-(y+10)/2,5]) rotate([0,a,0]) cube([x+10,y+10,z+10]); } difference() { translate([-11,-20,-1]) cube([22,40,18]); translate([-...
glb/cad_6002d8196ceb.glb
Create a Viking themed door knob bolt by starting with a main vertical shaft that is a cylinder 78mm tall with a diameter of 21mm. From this cylinder, remove a rectangular section using a cube 16mm wide, 28mm deep, and 80mm tall, centered such that it creates a wide vertical slot through the middle of the shaft. To f...
$fs=0.5; $fa=0.5; module Shaft(){ difference(){ difference(){ cylinder(h = 78 , d = 21); } translate([6.5,-14,-1]){ cube([16,28,80]); } translate([-22.5,-14,-1]){ cube([16,28,80]); } } translate([0,0,-7]){ cube([13,17.5,14],center = true); } } module Bolt(){ difference(){ Shaft(); translate([0,0,-39]){ ro...
glb/cad_6289f75de481.glb
Create a Viking themed door knob backing plate. Start by creating a base conical frustum with a height of 8mm, a bottom diameter of 65mm, and a top diameter of 63mm. Centered on top of this base, add a second conical frustum with a height of 9mm, a bottom diameter of 23mm, and a top diameter of 21mm. From this combin...
use <celtic-knots.scad> $fs=0.5; $fa=0.5; Shaft_Clearance = 16.5; Plate_Diameter = 65; Shaft_Support_Diameter = 23; module Back_Plate_Guide(){ cylinder(h = 8 , d1 = Plate_Diameter , d2 = Plate_Diameter-2); translate([0,0,8]){ cylinder(h = 9 , d1 = Shaft_Support_Diameter , d2 = Shaft_Support_Diameter-2); } } module...
glb/cad_ad8ff8f5cfaa.glb
Create a Viking themed door knob backing plate. Start with a base conical frustum that is 8mm high, with a bottom diameter of 65mm and a top diameter of 63mm. Centered on top of this base, add a second conical frustum that is 9mm high, with a bottom diameter of 23mm and a top diameter of 21mm. Cut a central cylindric...
use <celtic-knots.scad> $fs=0.5; $fa=0.5; Shaft_Clearance = 16.5; Plate_Diameter = 65; Shaft_Support_Diameter = 23; module Back_Plate_Guide(){ cylinder(h = 8 , d1 = Plate_Diameter , d2 = Plate_Diameter-2); translate([0,0,8]){ cylinder(h = 9 , d1 = Shaft_Support_Diameter , d2 = Shaft_Support_Diameter-2); } } module...
glb/cad_e9614a413646.glb
Create a Viking themed door knob assembly consisting of a vertical shaft mounted to a rectangular base plate. Start by creating a vertical cylindrical shaft with a height of 78mm and a diameter of 25mm. Carve a vertical slot through the center of this cylinder by removing two rectangular blocks, each 16mm wide and 28mm...
$fs=0.5; $fa=0.5; module Shaft(){ difference(){ difference(){ difference(){ cylinder(h = 78 , d = 25); } translate([8,-14,-1]){ cube([16,28,80]); } translate([-24,-14,-1]){ cube([16,28,80]); } } difference(){ difference(){ translate([0,0,-1]){ cylinder(h = 80 , d = 23); } translate([7,-14,-1]){ cube([16,28,81...
glb/cad_401e3da68297.glb
Create two identical connecting rods for a Viking themed door knob assembly. For each rod, construct a main hollow cylinder with an outer diameter of 8mm and a total height of 35mm. Create a central hole through the bottom of this cylinder with a diameter of 3.75mm and a depth of 26mm. At the top of the rod, add a soli...
$fs=0.5; $fa=0.5; module Connecting_Rod(){ difference(){ cylinder(h = 35 , d = 8); translate([0,0,-1]){ cylinder(h = 26 , d = 3.75); } } translate([0,0,35]){ cylinder(h = 4.5 , d = 3.75); } } module Dual_Connecting_Rods(){ translate([35/2,0,0]){ Connecting_Rod(); } translate([...
glb/cad_508aa5cf289e.glb
Create a Viking themed door knob shaft by constructing a rectangular prism with a square base measuring 6.75mm by 6.75mm and a total height of 65mm.
cube([6.75,6.75,65]);
glb/cad_3cb4210c8933.glb
Create a Viking themed door knob assembly by starting with a solid cylinder that has a diameter of 18mm and a height of 7mm, centered on the origin. From this cylinder, remove a central cubic volume measuring 7mm in width, 7mm in depth, and 9mm in height, also centered on the origin, to create a square hole passing thr...
$fs=0.5; $fa=0.5; difference(){ translate([4,0,0]){ cylinder(h = 7 , d = 18 , center = true); } cube([7,7,9],center = true); }
glb/cad_4ae6145ac0fe.glb
Create a mounting adapter for a PIR sensor with a total height of 25mm. Start with a rectangular base measuring 73mm wide by 68mm deep and 25mm high. From the center of this base, remove a square block measuring 45mm by 45mm that extends through the full height of the object. Within this central void, create four rou...
outerheight = 25; resolution = 50; module LK_BOX () { difference() { translate([-45/2,-45/2,-1]) cube([45,45,outerheight+2]); rotate([0,0,0]) translate([-45/2+10,-45/2+10,0]) difference() { translate([-20,-20,-2]) cube([20,20,outerheight+4]); translate([-0,-0,-2]) cylinder(outerheight+4, 10, 10, $fn=resolu...
glb/cad_5e20f0298605.glb
Create a Peugeot 206 ashtray light window plug starting with a rectangular base plate measuring 22mm by 9.7mm with a thickness of 1mm. Centered on this base, add two vertical clipping arms. The first arm is a rectangular prism 17.5mm long, 1mm wide, and 6mm high, positioned 2.5mm from the left edge and 2mm from the fro...
holeX = 18; holeY = 7.2; union() { cube([holeX+2*2,holeY+2+0.5,1]); translate([2+0.5,2,0.5]) cube([holeX-0.5,1,6]); translate([2+0.5,1.5,6]) rotate([-45,0,0]) cube([holeX-0.5,0.7,0.7]); translate([2+0.5,2+holeY-1.5,0.5]) cube([holeX-0.5,1,5]); translate([2+0.5,2...
glb/cad_bc0252fb8e37.glb
Create a housing for a GP2Y1010AU0F smoke detector by starting with a solid rectangular block measuring 44mm wide, 48mm deep, and 37mm high. Hollow out the center of this block by removing a smaller rectangular volume of 41mm by 41mm and 10.1mm height, positioned 20mm from the bottom. From the top of the block, carve...
difference () { union() { translate([-22,-24,-16]) cube ([44,48,37]); } translate([-20.5,-20.5,20]) cube ([41,41,10.1]); translate([0,0,-40]) cylinder(80,4.5,4.5,10, $fn=50); translate([0,0,0]) cylinder(20.01,0,20,0, $fn=50); translate([0.7,-22.8,-5]) difference() { union() { translate([-15.5,0,-9]) cube...
glb/cad_7e46a99e3932.glb
Create a scale model of the HK MultiWii Pro Board. Start with a main rectangular PCB base measuring 50mm by 50mm with a thickness of 1.54mm and corner radii of 2.5mm. Remove four mounting holes with a radius of 1.525mm, positioned 2.5mm from each edge. On the top surface, add the following components: - A 14x1 pin arr...
HK_MultiWii_Pro_Board(); module HK_MultiWii_Pro_Board () { MWPB_Corner_Radius=2.5; MWPB_X_Size=50; MWPB_Y_Size=50; MWPB_Z_Size=1.54; $fn=150; fudge=.01; color("MediumBlue") difference() { translate([MWPB_Corner_Radius,MWPB_Corner_Radius,0]) minkowski() { cube([MWPB_X...
glb/cad_28ef135370d7.glb
Create a Roomba horn by constructing a 16-sided prism-like shape. Start with a truncated cone that has a base radius of 7mm, a top radius of 4mm, and a height of 12mm. Centered on top of this cone, add a sphere with a radius of 4mm, positioned so its center is exactly 12mm above the base. To finish the part, create a v...
$fn=16; difference() { union() { cylinder(h=12,r1=7,r2=4); translate([0,0,12]) sphere(r=4); } translate([0,0,-1]) cylinder(h=10,r=2); }
glb/cad_69ee89b4ec41.glb
Create a Raspberry Pi and camera mount. Start with a central base consisting of a rectangular block 60mm wide, 20mm deep, and 3mm thick. Attached to the bottom of this base, center a second rectangular block that is 60mm wide, 5mm deep, and 10mm thick. Cut a large central rectangular void through the assembly, measuri...
$fn=80; difference() { basis(); hull(){ translate([0,-5.5,3]) cube (size=[57,1.5,1], center=true); translate([0,-5.5,-1]) cube (size=[57,2,1], center=true); } translate([0,-5.5,10]) cube (size=[57,1.5,20], center=true); translate([0,-3,0]) cube (size=[53.6,20,50], center=true); } difference() { hull() { trans...
glb/cad_a209bf78b305.glb
Create a caddy for a needle file set by starting with a sphere with a radius of 40mm. Cut away the top half of the sphere using a large cube to leave a hemispherical bowl. Remove a central vertical cylinder with a diameter of 40mm from the center of the bowl to create a hollow core. Around the remaining shell, create 1...
difference(){ sphere(r = 40, $fn = 12*2); translate([-100, -100, -200]) cube([200, 200, 200]); for(t = [0: 360/12 : 360*(11/12)]){ rotate([0, 0, t]){ translate([16, 0, 2]){ rotate([30, 30, 6]){ #cylinder(d = 4, h = 142, $fn = 32); }}}} ...
glb/cad_99fd3fd596ab.glb
Create a customizable lightsaber clip consisting of a circular grip and a tension clip. First, construct the grip as a semi-circular ring with an inner diameter of 42mm and a wall thickness of 6mm. The ring should be 20mm tall, but include a rectangular gap 38mm wide centered on the diameter to allow the object to slid...
item_diameter=42; grip_thickness = 6; grip_height=20; grip_gap=38; clip_height=60; clip_gap=8; clip_thickness=4; fudge = 0.01; color([1,0,0]) clip(); color([0,1,0]) grip(); module clip(){ width=20; top_thickness = clip_thickness + 4; translate([-clip_thickness, width/2, 0]) rotate(a=90, v=[1, 0, 0]) ...
glb/cad_c3ed1849351a.glb
Create a customizable phone stand by starting with a solid rectangular block 140mm wide, 27.8mm deep, and 17.8mm high. From this block, carve out a central slot to hold a phone that is 132mm wide and 13.8mm thick. This slot should be angled at 60 degrees relative to the base and should be positioned so the phone sinks ...
phone_width = 130; phone_thickness = 11.8; phone_angle = 60; phone_insert_depth = 18; slide_gap = 2; support_extends = 30; support_thickness = 20; phone_insert_height = phone_insert_depth * sin(phone_angle); stand_base_height = 7.5; stand_height = stand_base_height + phone_insert_height; side_wall_thickness = 5...
glb/cad_741aa1f8c9b5.glb
Create a nose clip for steampunk goggles. Start by constructing a central circular plate with an outer radius of 20mm, an inner radius of 15mm, and a height of 3mm, positioned at the center. Add two identical curved arcs to either side of the plate. Each arc is a partial hollow cylinder with an inner radius of 28mm, ...
arcA0 = 3; arcA1 = arcA0 + 23; arcIR = 56.0 / 2; arcOR = arcIR + 1.2; arcH = 8.0; diverge = [20,0,0]; divergeAdjust = arcIR * -sin(diverge[0]); arcPos = [0,-arcOR-2,divergeAdjust]; $fn = 120; small = 0.1; module arc() { translate(arcPos) { rotate(diverge) difference() { cylinder(r=arcOR, h=arcH...
glb/cad_07be27d8d638.glb
Create a single lens mount for steampunk goggles. Start by creating a flat, ring-shaped disc with a height of 3mm, an outer radius of 13.79mm, and a centered circular hole with a radius of 10.79mm. Extend the outer edge of this ring on one side to form a mounting tab. This tab should be created by forming a hull betwee...
monacleIR = 21.58/2; monacleOR = monacleIR + 3; monacleH = 3.0; monacleFn = 120; mountOR = 5.0; mountIR = 2.0; monacleMountPos = [monacleOR+mountOR-mountIR,0,0]; module monacleMount() { translate(monacleMountPos) { cylinder(r=mountOR, h=monacleH, $fn=monacleFn); } } module monacleMountNegative() { translat...
glb/cad_dd296da873fd.glb
Create a pair of steampunk goggles designed to hold 52mm diameter photographic filters. For each lens housing, create a main cylinder with an outer radius of 28mm and a height of 40mm. Hollow out the center with a cylinder of 26mm radius to accommodate the filter. Flatten the bottom of the housing to create a flat fro...
small = 0.1; innerR = 52.0 / 2; outerR = 56.0 / 2; lowH = 12.0; highH = 40.0; trimH = 3.0; trimR = 57.0 / 2; trimPos = [0,0,0]; trimSteps = 12; trimWidth = 8; $fn = 16; highQ = 128; truncateR = 80; outerD = outerR * 2.0; dv = highH - lowH; distHL = sqrt(outerD*outerD + dv*dv); angleL = atan(dv/outerD); halfHL = ...
glb/cad_47d7cacb44f5.glb
Create a rectangular buckle for steampunk goggles. Start by constructing a solid rectangular base with a width of 31mm, a height of 17mm, and a thickness of 2mm. From this base, remove two identical rectangular slots to create openings for a strap. Each slot must be 25mm wide and 4mm high. Position the first slot so th...
strapWidth = 25.0; wallWidth = 3.0; thickness = 2.0; holeWidth = strapWidth; holeHeight = 4.0; holeSize = [holeWidth, holeHeight, thickness]; buckleSize = [holeWidth+2*wallWidth, holeHeight*2+3*wallWidth, thickness]; holePos1 = [wallWidth,wallWidth,0]; holePos2 = [wallWidth,wallWidth*2+holeHeight,0]; module buckle(...
glb/cad_fa9f81ef1e54.glb
Create an X-wing game dials box consisting of a rectangular container and a sliding lid. The main box has outer dimensions of 50.5mm in width, 484.5mm in length, and 50mm in height. The walls are 1.5mm thick with corners rounded to a 1.5mm radius. The interior is divided into 10 equal compartments along the length. C...
assambled = false; displayLid = true; sectioned = false; dialDiameter = 47; dialThickness = 10.5; nbDials = 10; dividerHeightFraction = 0.4; dividerHeight = dialDiameter*dividerHeightFraction; secondRowFraction = 0; dividerThick = 0.8; cornerRad = 1.5; wallThick = 1.5; sideOpeningRadius = 10; lidTolerance = ...
glb/cad_9533c70d74e7.glb
Create a Functional Differential Gear System by importing the Input_Pinion.stl file and adding a low-resolution cylinder to it. Position the cylinder so its center is at coordinates 0, 0, 5.25. The cylinder should have a height of 0.5mm and a radius of 3mm.
import_stl ("Input_Pinion.stl", convexity=6); translate(v=[0,0,5.25]) cylinder (h=0.5, r=3, center=true);
glb/cad_a6932a07c8c3.glb
Create a side gear for a functional differential gear system. Start by importing the side_gear.stl base geometry. Centered on the X and Y axes, add a cylinder with a radius of 3mm and a height of 0.5mm. Position this cylinder at a Z-height of 5.25mm to fill the bottom of the central hole, leaving a small opening to ser...
import_stl ("side_gear.stl", convexity=2); translate(v=[0,0,5.25]) cylinder (h=0.5, r=3, center=true);
glb/cad_c57b90b4c198.glb
Create a thin, flat disc with a radius of 3mm and a height of 0.5mm. The disc should be centered on the X and Y axes and positioned at a height of 3.25mm along the Z axis. The geometry must be rendered as a low-resolution cylinder, specifically a regular polygon with 8 sides, to form an octagonal prism.
import_stl ("spider.stl", convexity=2); translate(v=[0,0,3.25]) cylinder (h=0.5, r=3, center=true);
glb/cad_5f74c89b707c.glb
Create a bell with an integral clapper and handle. The main bell body is a hollowed-out shell with a wall thickness of 4mm. The outer shape is a combination of a cylindrical center section and a curved bottom that flares out into a wide, flat circular rim with a radius of 30mm. The total height of the bell body is 60...
module belltop(size=10,thickness=1,ratio=1,scalez=1) { thicknessRatio=1+((((thickness*scalez)/(size*ratio))-(thickness/(size*ratio)))/2); union() { intersection() { difference() { sphere((size*ratio)/2,$fn=quality); scale([1,1,thicknessRatio])sphere(((size*ratio)-thickness)/2,$fn=quality); } transl...
glb/cad_a02af798c1d8.glb
Create a sauce bowl with a total outer diameter of 50mm and a wall thickness of 2mm. The main body is a hollow hemisphere with an outer radius of 25mm and an inner radius of 23mm. To form the rim, extend the walls of the hemisphere vertically to create a flat, circular lip that is 2mm thick, resulting in a total height...
bowlDiameter = 50; wall=2; bowl(bowlDiameter, wall); module rim(bowlDiameter, wall) { difference() { oval(bowlDiameter*4/3, bowlDiameter*4/3, wall); translate([0,wall*2,wall]) { sphere(bowlDiameter/2 - wall); } } } module cup(bowlDiameter, wall) { module solidCup(bowlDiameter, wall){ difference() { ...
glb/cad_463319bbc1ac.glb
Create a Gear Tetrahedron consisting of a central hub and four identical bevel gears. First, construct the central hub by creating a cube with a side length of 60mm and a height of 40mm, then intersecting it with four identical rotated versions of itself to form a tetrahedral volume. The hub should have a radius of 1...
use <MCAD/involute_gears.scad> use <pin2.scad> Backlash=0.5; theta=acos(-1/3); center_radius=10; clearance=.2; numberofteeth=12;tweak=.25; intersection() { intersection() { rotate([180,0,0])center(22,false); center(45,false); } render(convexity=2) union() { center(cen...
glb/cad_0f71f7af9f84.glb
Create a Gear Tetrahedron consisting of four identical gears and four connecting pins. For the gears, create a circular gear shape with a central hole of 7mm diameter. The gear should have a thickness of 11mm. For the connecting pins, create four identical pinpegs. Each pinpeg consists of two mirrored pin elements. Ea...
object=0; length=11; diameter=7; hole_twist=0; preload=0.1; clearance=0.3; thickness=1.8; snap=0.4; fins=1; $fn=20; if(object==0)pinpeg(r=diameter/2,l=length,d=2.5-preload,nub=snap,t=thickness,space=clearance); if(object==1)pinhole(r=diameter/2,l=length,nub=snap,fixed=hole_twist,fins=fins); module pin(r=3.5,...
glb/cad_e4acd149e19d.glb
Create a pinpeg connector for a gear tetrahedron. The object is a cylindrical peg with a total length of 11mm and a radius of 3.5mm. The main body is a cylinder with a radius of 3.2mm (incorporating a 0.3mm clearance) and a height of 11mm. To create the spring-locking mechanism, add two snap nubs on opposite sides of...
object=1; length=11; diameter=8; hole_twist=0; preload=0.1; clearance=0.3; thickness=1.8; snap=0.4; $fn=20; if(object==0)pinpeg(r=diameter/2,l=length,d=2.5-preload,nub=snap,t=thickness,space=clearance); if(object==1)pinhole(r=diameter/2,l=length,nub=snap); module pin(r=3.5,l=13,d=2.4,slot=10,nub=0.4,t=1.8,spa...
glb/cad_452e38debdcf.glb
Create a Gear Tetrahedron consisting of a central core and four interlocking bevel gears. First, construct the central core by intersecting four identical cubes, each with a side length of 36mm and a thickness of 24mm, rotated to align with the faces of a regular tetrahedron. The center of this core should have a rad...
use <MCAD/involute_gears.scad> use <pin3.scad> Backlash=0.5; theta=acos(-1/3); center_radius=06; clearance=.2; numberofteeth=12;tweak=.25; intersection() { intersection() { rotate([180,0,0])center(15,false); center(24,false); } render(convexity=2) union() { center(cent...
glb/cad_9b5d9282bb1c.glb
Create a Customizable Watch Holder consisting of a central support column and two symmetrical side feet. For the central support, create a 24-sided prism cylinder with a radius of 30mm and a height of 50mm. Remove a central vertical hole with a radius of 4mm and a height of 15mm from the bottom, and a second identical ...
ray_cyl = 30; haut_cyl = 50; module toto() { } $fn = 24; tol_trou = 1.5; ray_trou = 2.5; haut_trou = 15; ep_pied = 3; haut_pied = ray_cyl*3; support(); pied_gauche(); pied_droit(); module support() { difference() { cylinder(r=ray_cyl,h=haut_cyl); cylinder(r=ray_trou+tol_trou/2,h=haut_trou); translate([0,...
glb/cad_bd1f95c84d99.glb
Create a pants button by starting with a main cylindrical base that has a radius of 8mm and a height of 3mm. Inside this base, carve out a central recessed area by removing a shape formed from the intersection of a cylinder with a 7mm radius and 5mm height, and a sphere with a 9mm radius that has been scaled to half it...
$fs=0.1; difference() { cylinder(r=8,h=3); union() { translate([0,0,2.25]) intersection() { cylinder(r=7,h=5); scale([1,1,0.5]) translate([0,0,7]) sphere(r=9); } for (i = [-2,2]) for (j = [-2,2]) translate([i,j,-1]) cylinder(r=1,h=5); } }
glb/cad_5bd4ac9125bc.glb
Create a minimalist keychain LED flashlight consisting of a main body and a lid. For the body, create a base shape that is a combination of a cylinder with a radius of 11.4mm and a height of 8mm, merged with a rectangular protrusion extending from the side. This protrusion should be 12mm wide and 8mm high, centered on ...
LED_d = 5; Bat_r = 10.4; Bat_d = 6; edge_r = 1; difference() { difference() { linear_extrude(height=Bat_d+2*edge_r) { hull() { translate([Bat_r+5, 0]) square([LED_d+edge_r*1.5, 6], center=true); circle(r=Bat_r+edge_r); } } translate([0, 0, edge_r]) cylinder(r=Bat_r, h=Bat_d+edge_r); } translat...
glb/cad_1f466e7bbd24.glb
Create a pulley for a CoreXY printer idler. Start with a central cylinder that has an outer diameter of 12.2mm and a height of 10.1mm (calculated as 0.6mm * 2 + 6.5mm + 1.8mm * cos(50°)). This central cylinder should have a concentric hole bored through its entire length with a diameter of 10.2mm. Add a bottom flange ...
idlerID = 10.2; idlerOD = 12.2; beltwidth= 6.5; $fn=80; lipheight = 1.8; lipthickness = .6; topangle = 50; difference(){ union(){ cylinder(r=lipheight+idlerOD/2, h=lipthickness); cylinder(r=idlerOD/2, h = lipthickness*2+beltwidth+lipheight*cos(topangle)); translate([...
glb/cad_f09e1c8783ac.glb
Create a parametric case consisting of a hollow rectangular box with an outer dimension of 60x50x30mm and a wall thickness of 2mm. The exterior corners of the box should be rounded with a radius of 3mm. The box is open on one of its large faces to create a container. At each of the four interior corners, integrate a c...
module ring(r=1,w=1,h=1) { difference() { cylinder(r=r+w,h=h,center=true); cylinder(r=r,h=h+1,center=true); } } module case_base(dim=[30,100,10],r=2) { dr=r*2; minkowski() { sphere(r=r); cube([dim[0]-dr,dim[1]-dr,dim[2]-dr],center=true); } } module parametric_case(dim=[100,90,50],case_thickness=2, ...
glb/cad_3b4192f62a5e.glb
Create a Tsumiki-like construction block consisting of two identical rectangular planks joined at a 60-degree angle to form a V-shape. Each plank must be 4mm thick, 120mm long, and 40mm wide. On the underside of each plank, carve a matching 60-degree V-shaped notch. This notch is centered along the length of the plan...
SCALE = 1.0; NUMBER = 21; if (NUMBER == 1) { finishedWhole(); } else if (NUMBER == 7) { for(a = [-45 : 15 : 45]) translate([0,a,0]) finishedWhole(); } else if (NUMBER == 21) { for(a = [-45 : 15 : 45]) for(b = [-61: 61: 61]) translate([b,a,0]) finishedWhole(); } else if (NUMBER == 30) { for(a = [-45 : ...
glb/cad_2018b43b18ac.glb
Create a Tea Tag by constructing a flat, circular ring with a rectangular base. Start with a solid cylinder 30mm in diameter and 2mm high. Remove a smaller concentric cylinder 24mm in diameter and 2mm high from the center to create a ring wall 3mm thick. Cut a 10mm wide by 2mm high rectangular notch through the ring wa...
difference(){ union(){ cylinder(r=30/2,h=2,$fn=60); } cylinder(r=24/2,h=2,$fn=60); translate([0,13,1]) cube([10,10,2],center=true); } translate([-4,13,0]) cylinder(r=4/2,h=2,$fn=60); translate([4,13,0]) cylinder(r=4/2,h=2,$fn=60); translate([0,-17,1]) cube([30,12,2],center=true);
glb/cad_1ae7a3d6328b.glb
Create a Nespresso Capsule Holder consisting of four identical vertical columns aligned side-by-side. For each column, construct a profile that is 42mm wide, 172mm tall, and 6mm deep. The profile is defined by a polygon with vertices at [0,0], [0,4], [2.5,6.5], [4.5,6.5], [2,4], [2,2.5], [4.5,2.5], [4.5,1], [37.5,1], [...
module f() { color("Azure") difference() { union() { difference() { translate([0,172,0]) rotate([90,0,0]) linear_extrude(height= 172, center =false, convexity= 10) { polygon(points=[[0,0], [0,4], [2.5,6.5], [4.5,6.5], [2,4], [2,2.5], [4.5,2.5], [4.5,1], ...
glb/cad_8738b751c267.glb
Create a Pepper Grinder Holder by starting with a square base block measuring 66mm by 66mm with a height of 13mm. Center a cylindrical hole with a diameter of 60mm and a depth of 10mm into the top of the block, leaving a solid floor 3mm thick at the bottom. To ensure stability, add four small circular discs, each with ...
$fn = 360; cylinderDiameter = 60; cylinderHeight = 10; extraWidth = 3; cubeFloorHeight = 3; cubeWidth = cylinderDiameter + extraWidth + extraWidth; cubeHeight = cylinderHeight + cubeFloorHeight; module cut_out_cylinder() { color("yellow") translate([cubeWidth / 2, cubeWidth / 2, cubeFloorHeight]) ...
glb/cad_399cf74c7fa3.glb
Create a NuPastel holder, a cylindrical casing designed to hold a 7.4mm square pastel stick. The main body is a cylinder 92mm long with a bottom radius of 5.7mm and a top radius of 6.2mm. Centered through the length of this body, remove a square channel measuring 8.2mm by 8.2mm. To allow for flexibility, create four ...
NupastelWidth = 7.4; casingWall=2; tolerance=.8; NupastelLength=92; casingLength=NupastelLength; channelWidth=NupastelWidth + tolerance; casingWidth=NupastelWidth + tolerance + 2 * casingWall; casing = [casingWidth, casingWidth, casingLength]; channel= [channelWidth, channelWidth, casingLength]; gripLength=50; gripWid...
glb/cad_563be7870a02.glb
Create a Hair Barrette consisting of two clip arms connected by a central hinge. First, create the male clip part. This is composed of a main rectangular block 3mm wide, 22mm long, and 6mm high. At one end, add a rectangular extension 13mm wide and 2mm thick. At the opposite end of the main block, add a tooth: a rect...
union(){ translate([-4.3,0,0]) male_clip_part(); rotate([0,0,-30]) translate([2.2,0,0]) female_clip_part(); translate([0,0,vn_hinge_height/2]) vertical_n_hinge(vn_hinge_depth, vn_hinge_height, vn_hinge_length, vn_pin_diameter, vn_hinge_flange_height, vn_hinge_horiz_clearance, vn_hinge_vert_clearance, vn_hing...
glb/cad_3142ba54b9db.glb
Create a replacement front rod cover with basket hooks. Start by constructing a square faceplate base 20mm wide and 20mm deep with a height of 4.5mm. The edges of this base should be rounded with a radius of 6mm. Drill four vertical holes with a radius of 2.2mm through the base, positioned at the four corners. Attache...
$fn=50; module faceplate(d, h) { difference() { translate([0.0,0.5,0]) minkowski() { cube([20,20,h]); cylinder(r=6,h=1); } translate([0,0,-0.1]) cylinder(r=d, h=10); translate([20,0,-0.1]) cylinder(r=d, h=10); translate([0,20,-0.1]) cylinder(r=d, h=10); translate([20,20,-0.1]) cylinder(r=d, h=...
glb/cad_f2718b39c6e0.glb
Create a Delta Calibration Spiral consisting of a series of concentric, expanding rectangular segments. The structure begins at an inner radius of 40mm and extends to an outer radius of 80mm. The spiral is composed of small rectangular bars, each with a width and height of 0.5mm. To construct the spiral, generate a s...
nozzle = 0.5; start_radius = 40; bed_radius = 80; segments = 30; module calibration_spiral(nozzle = 0.5, start_radius = 40, bed_radius = 80, segments = 30) { for (r = [start_radius:nozzle*4:bed_radius]) { diameter = bed_radius * PI * 2; for (a = [0:360/segments:360-360/segments]) { r...
glb/cad_a5ec6bca367e.glb
Create a Josef Hartwig chess set where each piece is based on a primary cube with an edge length of 29mm. For the King, place a sphere with a radius of 13.05mm on top of a 29mm cube. For the Queen, place a smaller cube with an edge length of 20.5mm, rotated 45 degrees around the Z-axis, on top of a 29mm cube. For the...
c=29; clr=2; s_clr=0.3; grid_pos=(c+clr)/2; grid_pos_pawn=(3*c/4+clr)/2; translate([grid_pos_pawn,-grid_pos_pawn,0]){ translate([0,0,3*c/8])cube([3*c/4,3*c/4,3*c/4],center=true); } translate([3*grid_pos_pawn,-grid_pos_pawn,0]){ translate([0,0,3*c/8])cube([3*c/4,3*c/4,3*c/4],center=true); } translate([5*grid_pos_paw...
glb/cad_782420344a46.glb
Create a Customizable Wheel with a central hub and a treaded outer rim. Start by creating a main wheel body with a diameter of 93mm and a width of 15mm. Construct a rim with a height of 5mm around the outer edge. Carve 0 timing holes into this rim. For the spokes, create a "circle" style pattern with 5 spokes. Each ...
wheelWidth = 15; tireCSDiameter = 4; tireID = 93; tireStretch = 1.01; rimHeight = 5; timingHoles = 0; timingHolePad = [1,0.5,3]; directional = true; vaneCount = 30; vaneHeight = 7; vaneWidth = 1; vaneLength = 4; vaneOffset = 1; treadStyle = "v-grooves"; knobSize = [90...
glb/cad_6ed9feb7d6f7.glb
Create a Spacer Bracket for a 1U Power Supply consisting of a main rectangular frame and two symmetrical SSD mounts. Start by creating a hollow rectangular base with an outer dimension of 104mm by 49mm and a height of 12mm. The interior cutout of this base should be 101mm by 41.5mm, leaving a wall thickness of 1.5mm on...
topSpace=1.5; bottomSpace=7.5; PSUWidth=101; PSUHeight=41.5; height=12; ssdHeight=6.85; ssdWidth=40; ssdWall=3; module ssdBracket() { translate([-ssdWidth,0,0]) difference() { cube([ssdWidth, ssdHeight+ssdWall*2, ssdWidth]); translate([-ssdWall,ssdWall,ssdWall]) cube([ssdWidth, ssdHeight, ssdWidth...
glb/cad_7c4d2db934cc.glb
Create a phone case for a Nexus 6 by starting with a rounded rectangular slab measuring 72mm by 70mm with a thickness of 5mm and corner radii of 3mm. Carve out a central rectangular cavity from the top face that is 85mm long, 54.5mm wide, and 5mm deep, leaving a protective outer rim. Ensure the final geometry is a holl...
$fn=32; difference(){ rCube(72, 70, 5, 3); translate([10,0,-1.5]) cube([85, 54.5, 5], true); } module rCube(x, y, z, r){ translate([-x/2,-y/2,-z/2]) hull(){ translate([r,r,0])cylinder(r=r, h=z); translate([x-r,r,0])cylinder(r=r, h=z); translate([r,y-r,0])cylinder(r=r, h=z); translate([x-r,y-r,0])cylinde...
glb/cad_ae61d75ac76c.glb
Create a Customisable Shower Basket with a height of 85mm, a length of 65mm, and a width of 65mm. The main body is a hollow rectangular container with rounded corners of 14mm radius and a wall thickness of 1.7mm. On one of the shorter exterior walls, integrate a snap-fit mounting system. This consists of a primary cy...
D=24.8; H=85; W=65; L=65; t=1.7; r=14; q=20; d=(D*(1-sqrt(2)/2)+2*t)/(1+sqrt(2)/2); echo(d); end_of_loop=sqrt((L-D/2)*(L-D/2)+(W/2)*(W/2)); echo(end_of_loop); union(){ union(){ difference(){ union(){ difference(){ linear_extrude(height=H) hull() { translate([(-L/2)+(r), (-W/2...
glb/cad_5071fb3222e5.glb
Create a broom hook consisting of a circular base and an L-shaped arm. Start by creating a flat cylindrical plate with a diameter of 40mm and a height of 5mm. Centered on this plate, place a vertical square prism with a cross-section of 8mm by 8mm and a height of 30mm. At the top of this vertical prism, add a horizonta...
$fa=3.6; $fs=0.2; cylinder(h=5, r1=20, r2=20, center=false); translate(v = [-4, -4, 5]) cube([8,8,30]); translate(v = [-4, -4, 30]) cube([16,8,8]);
glb/cad_455412f496f0.glb
Create a metric screw and matching nut based on M8 standards. For the screw, create a hexagonal head with a flat-to-flat width of 13mm and a height of 4.33mm. Centered on top of this head, add a cylindrical threaded shaft with an outer diameter of 8mm and a length of 10mm. The threads should have a pitch of 1.25mm. T...
M_std = [ ["M2", 0.40, 2, 1.6, 5, "T8"], ["M3", 0.50, 3, 2.5, 6, "T15"], ["M4", 0.70, 4, 3.3, 7, "T25"], ["M5", 0.80, 5, 4.2, 8, "T30"], ["M6", 1.00, 6, 5.0, 10, "T40"], ["M7", 1.00, 7, 6.0, 12, "T45"], ["M8", 1.25, 8, 6.8, 13, "T50"], ["M10",1.50, 10, 8.5, 17, "T55"], ["M12",1.75, 12, 10.2,...
glb/cad_1386ad04282c.glb
Create an adapter for a micro-servo by constructing a vertical support structure. Start with a central rectangular block that is 17mm wide, 60mm tall, and 20mm deep. Within this block, create a vertical cylindrical cutout with a radius of 16mm and a height of 102.5mm, centered at the base and extending downwards to 2...
difference() { block(); } module fill_gaps() { difference() { translate([0,0, -7.5]) cylinder(h = 14, r1=36, r2=36); translate([0,11,1]) cube([160,60,22], true); translate([29,0,1]) cube([20,100,20], true); translate([-29,0,1]) cube([20,100,20]...
glb/cad_ab45ca3b811b.glb
Create a snowman by stacking three spheres of decreasing size along a vertical axis. Start with a large base sphere with a radius of 43mm, but flatten the bottom by removing a cube 80mm wide and 80mm deep centered at the base to create a flat underside. Position a medium sphere with a radius of 35mm directly on top of ...
module body()color([3,18,2]){difference(){ sphere(r=43, $fn=100); translate([0,0,-59]) cube(80, center=true); } translate([0,0,45]) sphere(r=35, $fn=100); translate([0,0,80]) sphere(r=27, $fn=100); } body(); translate([0,-25,85]) nose(); module nose(){color([1,.65,0]) rotate([90,0,0]) cylinder(h = 25, r1 = 10, r2 = 1,...
glb/cad_fd532248e793.glb
Create a Honeycomb Tea Lamp Shade by constructing a hollow cylinder with an inner diameter of 53mm (52mm plus a 0.5mm wall on each side) and a total height of 107mm. The outer boundary of the cylinder should have a diameter of 63mm (the inner diameter plus two 5mm comb widths). The walls of this cylinder are formed by...
inner_diameter = 52; height = 107; inner_width = 0.5; comb_width = 10; wall_width = 1; comb_cells = 17; PI = 3.14159*1; module honeycomb_row(diameter, wall_width, comb_cells) { od_unit = diameter*PI / comb_cells; for (u = [0:1]) { translate([0, 0, sqrt(3)/2*od_unit*u]) for (i = [0:comb_c...
glb/cad_d5179763fe00.glb
Create a ring for a combination safe by constructing a decagonal prism with a diameter of 46.5mm and a height of 10mm. Remove a smaller decagonal prism from the center with a diameter of 44mm and a height of 12mm to create a hollow wall. On one of the outer flat faces, embed the character "1" centered at a height of 2....
difference() {cylinder(d = 46.5, h = 10, $fn = 10);cylinder(d = 44, h=12, $fn = 10);} First_Char = "1"; Second_Char = "2"; Third_Char = "3"; Fourth_Char = "4"; Fifth_Char = "5"; Sixth_Char = "6"; Seventh_Char = "7"; Eighth_Char = "8"; Ninth_Char = "9"; Tenth_Char = "10"; translate([2,22.5,2.5]){ rotate([90,0,180]){...
glb/cad_2a78362ff4d8.glb
Create three square-based pyramids of increasing size, aligned in a row. The first and smallest pyramid, the pawn, should have a base width of 15.1mm and a height of 25.4mm. The second, mid-sized pyramid, the drone, should have a base width of 26.4mm and a height of 34.925mm. The third and largest pyramid, the queen, s...
module queen() { rotate(a=[0,0,45]) difference() { cylinder(44.45,12.7,1,$fn=4); translate([0,0,-.25]) cylinder(35.925,10,1,$fn=4); } } module drone() { rotate(a=[0,0,45]) difference() { cylinder(34.925,9.921875,1,$fn=4); translate([0,0,-.25]) cylinder(26.4,7.7,1,$fn=4); } } module pawn() { rotate(a=[0,...
glb/cad_fd6adc49e676.glb
Create a lens deflector by constructing a thin, hollow ring. Start with a solid cylinder that has an outer radius of 4.5mm and a height of 1.2mm. From the center of this cylinder, remove a smaller concentric cylinder with a radius of 3.75mm and the same height of 1.2mm to create a circular wall with a thickness of 0.75...
$fn = 100; difference() { cylinder(r = 9/2, h = 1.2); cylinder(r = 7.5/2, h = 1.2); }
glb/cad_3161a8fbf61e.glb
Create a small planter by extruding a 16-sided polygon. Start with a solid 16-sided polygonal base with a radius of 16mm and a height of 2mm. From the top of this base, extrude a hollow wall with a thickness of 1.5mm up to a height of 30mm. This main body should twist -45 degrees and flare outwards by a factor of 2 as ...
$fn=60; radius = 16; drainRadius = 3.5; sides = 16; thickness = 1.5; bodyHeight = 30; baseHeight = 2; drainHeight = baseHeight; rimHeight = 3; bodyTwist = -45; bodyFlare = 2; translate([0,0,baseHeight]) linear_extrude(height = bodyHeight, twist = bodyTwist, scale = bodyFlare, slices = 2*bodyHeight) ...
glb/cad_35038f4caf2a.glb
Create a knob for an M3 brass standoff. Start by creating a main cylindrical body with a radius of 6.24mm and a height of 14mm. Around the base of this cylinder, add a wider, shorter cylindrical flange with a radius of 12.3mm and a height of 5mm. To create the grip, place twelve small cylinders, each with a radius of 2...
actual=4.7; width=actual+0.1; module hexagon(size, height) { boxWidth = size/1.75; for (r = [-60, 0, 60]) rotate([0,0,r]) cube([boxWidth, size, height], true); } module knob() { for (r = [0:30:360]) rotate([0, 0, r]) translate([12,0,0]) cylinder(h=5, r=2); cylinder(h=5, r=12.3); cylinder(h=14, r=width*1.3);...
glb/cad_729edf2e7166.glb
Create a TerrainTile by generating a 3D isosurface based on a combination of three octaves of noise and a vertical gradient. The overall shape is a square tile with a base size of 16mm. The top surface should be a complex, organic terrain formed using a marching cubes algorithm. The height of the terrain is determined...
randseed=3798753; Resolution =1; tileX=0; tileY=0; MinSubdivisions=3; Threshold = 0.40; tilesize=16; octavebalance=[40,150,280]; Zcutoff=5; Zfalloff=0.1909; Zoffset=3; Diagnostic=false; colorseed=rands(0, 49709639, 1)[0]; DrawMetaballs( Threshold,tileX*f2(tilesize),tileY*f2(tilesize),-1,tilesize); module DrawMetabal...
glb/cad_0387f9d0857a.glb
Create a guitar humidifier consisting of a rectangular base and a matching lid. The base is a hollow box with external dimensions of 128mm in length, 83mm in width, and 25mm in height. The walls and floor of the base have a thickness of 3mm. The four vertical corners of the base are rounded with a radius of 1.5mm. At e...
$fn = 25; myrad = 1.5; mythickness = 2*myrad; mylength = 125 + 2*mythickness; mywidth = 80 + 2*mythickness; myheight = 25; pinheight = mythickness; pinrad = myrad; pinholerad = 1.2 * pinrad; lidholesize = 5; translate([myrad,myrad,myrad]) rotate([0,90,0]) cylinder(r=myrad,h=mylength-2*myrad); translate([myrad,mywidth...
glb/cad_b56785ef66d2.glb
Create a Phone Reading Prop designed to hold a device at a 40-degree angle. Start with a rectangular base 15mm wide, 4mm high, and approximately 8.8mm deep. From the back of this base, extend two symmetrical ramp-like supports upward to a height of 30mm. The first ramp should rise from the front edge of the base at a 4...
phone_thickness = 11.8; stand_width = 15; phone_angle = 40; stand_height = 30; wiggle = 1.3; hat_overhang = 2; hollow_offset = 32; base_height = 4; front_lip_height = (phone_thickness + wiggle) * sin(90-phone_angle); front_lip_thickness = 3; base_length = phone_thickness * sin(phone_angle); extra = 1; phone_w...
glb/cad_c40e08fa7db1.glb
Create a locking arm for an extruder by constructing a composite geometric shape. Start with a central vertical cylinder that has a radius of 6mm and a height of 10mm. To this, add a rectangular block measuring 7.6mm in width, 12mm in depth, and 4.3mm in height, centered on the cylinder's axis but offset 1.7mm upward. ...
x=20.6; difference(){ union(){ translate([0,0,-2]) color("green") cylinder(h=10,r=6, $fn=100); chop(); rotate([0,0,x]) { translate([0,-12.5,1.7]) { difference(){ { union(){ rotate([0,0,-x]) translate([-3.8,0,0]) color("blue") cube([7.6,12,4.3]); color("blue") cylinder(h=4.3,r=3.8, $fn=100)...
glb/cad_6c61f7dec3d9.glb
Create a cot bottle holder consisting of a hollow cylindrical sleeve and a flat rectangular base. First, construct the sleeve by creating a cylinder with an outer radius of 41mm, an inner radius of 37mm, and a height of 50mm, resulting in a wall thickness of 4mm. Attached to this cylinder, create a flat rectangular sup...
height = 50; inner_r = 37; material = 4; width = 150; $fn = 60; union() { difference() { translate( [ 0.00, inner_r, 0.00 ] ) { cylinder( h = height, r = inner_r + material ); } translate( [ 0.00, inner_r, material ] ) { cylinder( h = height, r = inner_r ); ...
glb/cad_dd047c358fcd.glb
Create a pinhole mount for a camera body cap by starting with a main cylinder that has a diameter of 48mm and a height of 1.8mm, centered on the origin. From this main disk, remove a smaller concentric cylinder to create a recessed seat for the pinhole disk. This inner cutout should have a diameter of 20mm and be posit...
cap_ID = 48; pinhole_disk_diam = 19; pinhole_disk_th = 0.6; mount_th = 3*pinhole_disk_th; disk_inset = pinhole_disk_th+0.4; difference() { cylinder(r=cap_ID/2, h=mount_th, $fn=200, center=true); translate([0,0,mount_th-disk_inset]) cylinder(r=(pinhole_disk_diam+1)/2, h=2, $fn=200, center=true); cy...
glb/cad_9c2a3c9525fd.glb
Create a protective case for a SparkFun FTDI basic breakout. The model consists of a main body and a removable door. For the main body, create a rounded rectangular block with a total length of 23mm and a width of 20.2mm (18.2mm PCB width plus 1.6mm walls on each side). The walls should be 1.6mm thick. Hollow out the ...
$fa=0.5;$fs=0.5; print="door"; tol=0.1; total_length=23; pcb_width_total=18+0.2; pcb_width_populated=16; pcb_thickness=1.7; izbelow=1; izabove=2.1; iztop=1; wall=1.6; r=1; ledx1=-total_length/2+13.2; ledx2=-total_length/2+15.7; ledy=-pcb_width_total/2 + 2; swx=total_length/2-7.8; door_sh=0.8; door_len=12; door_tol=...
glb/cad_804fbb4a4a55.glb
Create a Prusa Mendel Arduino Mount consisting of a flat rectangular base with integrated mounting pins and retaining clips. The base plate is 101.6mm by 53.3mm with a thickness of 3mm and rounded corners with a 4mm radius. At four specific coordinates, create mounting pins. Each pin is a composite cylindrical stack:...
$fn=50; pinheight=1.5; pin(15.24,50.8); pin(13.97,2.54); pin(90.17,50.8); pin(96.52,2.54); difference(){ translate([0,0,-pinheight*2]){ minkowski(){ cube([101.6,53.3,pinheight],false); cylinder(r=4,h=pinheight); } } union(){ minkowski(){ translate([8,2.54+2.75+6,-pinheight*3])cube([101.6-14,42.9-12,...
glb/cad_0e154061c640.glb
Create a Chimera carriage for a 3D printer. Start with a main rectangular block that is 30mm wide, 12mm deep, and has a height equal to the x-rod spacing (45mm) plus the diameter of an LM8UU bearing (15mm) and 0.2mm padding. Subtract two horizontal cylindrical holes for LM8UU bearings, each 15mm in diameter and 25mm l...
servomountholesapart = 40.5; servomountholesd = 3; servomountholess = 5; servomountholesaway = 20; part="carridge"; LM8UU_length = 25; LM8UU_diameter = 15; x_rod_spacing = 45; x_rod_radius = 4; belt_thickness_no_tooth = 0.75; belt_thickness_tooth = 1.45; belt_double = belt_thickness_no_tooth+belt_thickness_tooth+0....
glb/cad_bc67bf9f5b90.glb
Create a 3DR quad leg by extruding a 2D polygon to a height of 6mm. The polygon's vertices are defined by the coordinates [0,0], [28,0], [95,-110], [95,-120], [85,-120], and [17,-20], returning to [0,-20] and closing at [0,0]. From this solid base, remove two vertical cylindrical holes, each with a radius of 2mm and a ...
difference() { linear_extrude(height=6) polygon( points=[[0,0],[28,0],[95,-110],[95,-120],[85,-120], [17,-20],[0,-20]], paths=[ [0,1,2,3,4,5,6] ]); translate([6,-10,-5]) cylinder(r=2,h=20); translate([20,-10,-5]) cylinder(r=2,h=20); }
glb/cad_95dbbcaeeba1.glb
Create a yoga ball replacement air plug by stacking three concentric cylindrical sections. Start with a flat circular base that has a radius of 7.5mm and a height of 1mm. Directly on top of this base, add a frustum that transitions from a bottom radius of 5mm to a top radius of 3mm over a height of 4.3mm. Finally, plac...
$fn=100; union() { cylinder(r = 7.5, h = 1); translate( [0, 0, 1] ) cylinder(r1 = 5, r2 = 3, h = 4.3); translate( [0, 0, 5.3] ) cylinder(r1 = 3, r2 = 2.5, h = 15); }
glb/cad_0f22d9723426.glb
Create a Screwless Cube Gears model consisting of a central hub, gears, and connecting clips. First, construct the centerpiece by creating a sphere with a radius of 18.7mm (17mm * 1.1). From this sphere, remove eight cubic volumes of 100mm per side, each rotated and positioned to carve out the sphere into a complex p...
display = 1; print_plate = 0; round_corners = 1; display_twist = $t * 720; clip_radius = 3.5; clip_head_radius = 4.5; clip_size = 5; center_clip_depth = 8; big_gear_clip_depth = 18; small_gear_clip_depth = 15; big_clip_length = big_gear_clip_depth + center_clip_depth; big_clip_slot_width = 2; big_clip_bridge_size...
glb/cad_13cef4c059f4.glb
Create a Bridge Torture Test consisting of two support struts connected by a horizontal span. Start by creating two identical hollow square-based pillars. Each pillar is a four-sided prism with a height of 10mm; the outer boundary is a square rotated 45 degrees with a side length of approximately 3.33mm at the base and...
bridge_length = 50; bridge_angle = 0; bridge_width = 5; bridge_recovery_layers = 10; layer_height = 0.1; extrusion_width = 0.5; module foot() { rotate([0, 0, 180/4]) cylinder(r=bridge_width * 2, h=layer_height, $fn=4); } module strut() { rotate([0, 0, 180/4]) difference() { cylinder(r1=bridge_width / 1.5 / cos...
glb/cad_b30b2725c790.glb
Create a Thumbscrew Clamp consisting of a frame, a slider, and a thumbwheel. Start by constructing the frame as an octagonal ring with an outer diameter of 60mm, a height of 8mm, and a wall thickness of 5mm. The inner void of this ring is an octagon with a diameter of 50mm. Within this frame, create a rectangular slid...
frame_diameter = 50; frame_radius = frame_diameter / 2; frame_thickness = 5; frame_height = 8; slider_width = frame_diameter -frame_thickness*2; slide_length = frame_radius; clearance = 0.25; screw_diameter = 5; screw_radius = screw_diameter / 2; nut_radius = 9/2 + clearance; nut_radius2 = 8/2 + clearance; nut_heigh...
glb/cad_f197150d7681.glb
Create a NUC Wall Mount consisting of a main hollow enclosure and a baseplate. Start by constructing a rectangular outer shell with overall dimensions of 119mm width, 123mm height, and 60mm depth, with a wall thickness of 2.5mm. Hollow out the center of this shell by removing a block of 114mm by 118mm by 55mm, leaving ...
basep_w=113; basep_flange=25; basep_h=117; basep_t=5; holer=2.5; x=114; y=118; z=55; wt=2.5; module baseplate() { difference() { cube([basep_w+(2*wt),basep_h+(2*basep_flange),basep_t]); #translate([25,y+(1.5*basep_flange)+wt,0]) cylinder (r=holer,h=basep_t); #translate([x+wt+wt-25,y+(1.5*basep_flange)+wt,0]) cylin...
glb/cad_a2ebff2c53cf.glb
Create a small rectangular box for a 20x80mm PCB, consisting of a bottom and top half. The overall outer dimensions are 26.4mm wide by 86.4mm long. For the bottom half, create a solid base with a height of 8.5mm. The four vertical corners should be rounded with a 2mm radius. Hollow out the center to create a cavity f...
$fn = 30; pcb_width = 20; pcb_height = 80; pcb_thickness = 1.5; pcb_up = 13; pcb_screw_w = 20-4; pcb_screw_h = 80-4; wall_thickness = 3; wall_gap = 0.2; solder_gap = 2; comps_gap = 8; box_width = pcb_width + (wall_thickness + wall_gap) * 2; box_height = pcb_height + (wall_thic...
glb/cad_93feed7c2e19.glb
Create a Smart Hose Splitter consisting of a central hollow body with one inlet and three symmetrically spaced outlets. The main body is a hollowed-out vertical structure. The bottom section is a cylinder with a radius of 11.6mm and a height of 9.6mm. Above this sits a conical transition section with a height of 9.6m...
valve_number = 3; inlet_outer_radius = 6; inlet_height = 0; outlet_height = 0; outlet_outer_radius = 4; wall_thickness = 3; max_thickness = wall_thickness+.5; min_thickness = wall_thickness-1.3; smooth = 32; valve_body_height = 0; valve_barb_height = 0; valve_inner_radius = 0; valve_barb_radius = 0; base_bottom_height...
glb/cad_03b345295b2f.glb
Create a regular octahedron with a total span of 20mm from vertex to opposite vertex along each primary axis. The shape should be constructed as two square-based pyramids joined base-to-base, where each pyramid has a height of 10mm and a square base with a diagonal length of 20mm. Ensure all eight faces are equilateral...
rotate ([45,35.264,0]) polyhedron( points=[ [10,0,0],[0,10,0],[-10,0,0],[0,-10,0], [0,0,10 ],[0,0,-10] ], faces=[ [0,1,4],[1,2,4],[2,3,4],[3,0,4], [0,1,5],[1,2,5],[2,3,5], [0,3,5]] );
glb/cad_9f63c21795ea.glb
Create a power cord support consisting of a rectangular base and a series of dividing winglets. The base is a rectangular block measuring 160mm in length, 40mm in width, and 5mm in height. Along the length of the base, create four identical cord slots. Each slot is formed by a central rounded cutout and two flanking ...
support(4); module support(numHoles = 5) { difference() { base (numHoles); for (a =[0:numHoles]) { hole(a); } rotate([90,0,0]) translate([20, 16, -50]) cylinder(h=100, r1=2.3, r2=2.3); rotate([90,0,0]) translate([numHoles * 40 - 20, 16, -...
glb/cad_2894a3cd2b90.glb
Create a face-like composition starting with a base cylinder that is 30mm in diameter and 5mm high, centered at the origin. Position two identical oval eyes by creating spheres with a radius of 5mm, scaling them to be 0.5 in the x-axis, 1.5 in the y-axis, and 2 in the z-axis, then rotating them 90 degrees around the y-...
translate([-5,0,5]) rotate([0,90,0]) scale([0.5,1.5,2]) sphere(5); translate([-5,20,5]) rotate([0,90,0]) scale([0.5,1.5,2]) sphere(5); translate([0,10,0]) cylinder(5,30,30); translate([15,10,5]) rotate([0,0,0]) scale([0.5,4,.7]) sphere(5);
glb/cad_8454ec747d29.glb
Create a symmetric drawer rail by extruding a profile to a height of 12.5mm. The profile is based on a hull connecting a series of circles centered along a horizontal axis at positions 0, 31.75, 127.5, 159.25, 255, and 286.75mm. Each of these circles has a diameter of 15mm (calculated as 9mm plus a 6mm clearance). From...
rl = 286.75; rh = 12.5; hsp = 0; hp = [0,31.75,127.5,159.25,255,286.75]; hd1 = 4; hd2 = 9; hdc = 3; hh = 10; xw = 0.4; $fn=31; rotate(-45) difference(){ linear_extrude(height=rh) difference(){ hull(){ for(pos = hp){ translate([hsp+pos,0]) circle(d=hd2+(hdc*2)-xw); ...
glb/cad_82dab7d57816.glb
Create a symmetric drawer rail by starting with a rectangular bar that is 286.75mm long, 12.5mm high, and 4mm wide. Along the center length of the bar, create six evenly spaced holes. Each hole consists of a cylindrical shaft with a diameter of 4mm that passes completely through the height of the rail. At the surface o...
rl = 286.75; rh = 12.5; hsp = 0; hp = [0,31.75,127.5,159.25,255,286.75]; hd1 = 4; hd2 = 9; hdc = 3; hh = 10; xw = 0.4; cr = 4; $fn=31; rotate(-45) difference(){ difference(){ hull(){ for(pos = [hp[0],hp[(len(hp)-1)]]){ translate([hsp+pos,0, rh-cr/2]) rotate_extrude(){ ...
glb/cad_b03921b0b16f.glb
Create a wine bottle spacer set consisting of a cradle and a connector. First, construct the cradle. Start with a rectangular base plate 100mm long, 2mm thick. On top of this base, add two opposing wedges. Each wedge should be 11mm wide and 5.8mm high, separated by a central gap of 18mm. The wedges should slope upwar...
bottle_spacing = 100; connector_cradle_tolerance = 0.5; connector_cradle_spacing = 30; $fs=.1; $fa=1; base_height = 2; cradle_length = 100; wedge_height = 5.8; wedge_width = 11; wedge_separation = 18; connector_peg_width = 12; connector_peg_depth = 3; connector_peg_xs = [20, cradle_length-20]; connector_bridge_heig...
glb/cad_32be8e584119.glb