Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Poster Holder consisting of two identical L-shaped brackets joined at a right angle. For each bracket, start with a rectangular block measuring 50mm in length, 3mm in width, and 15mm in height. Carve a symmetrical, tapered groove along the entire 50mm length of the block. This groove should be centered width-w...
lenght = 50; translate([0,0,lenght])rotate([0,90,0]) side(false); side(); module side(left_corner = true){ difference(){ cube([lenght,3,15]); # translate([-5,3/2,16]) rotate([-90,0,-90]) linear_extrude(lenght+10) polygon([[-0.3,0],[0.3,0],[0.08,12],[-0.08,12]]); ...
glb/cad_30b7efa148f5.glb
Create an Emergency Cat Wand toy consisting of a thin, circular disc with a central hole and radiating spikes. Start by creating a main cylinder with a diameter of 10mm and a height of 3mm. Bore a concentric hole through the center of this cylinder with a diameter of 3.15mm. To create the radiating spikes, add a series...
height = 3; layer_height = 0.3; size = 40; filament_size = 3.15; $fn=20; difference(){ cylinder(height, d=10); cylinder(height, d=filament_size); } for(h = [0:layer_height*2:height-layer_height]) for(r = [0:20:360]) rotate([0,0,r+h*8/layer_height]) translate([1.5,0,h]) cube([size,0...
glb/cad_73e9ba6d116d.glb
Create a bicycle smartphone mount by first constructing a flat, rectangular base plate with a total width of 87.7mm and a total depth of 30mm. This base is formed by a solid rectangle from which a central rectangular section of 77.7mm by 20mm is removed, leaving a border of 5mm around the edges. On the bottom side of t...
phone_width = 77.7; phone_thickness = 20; arm_width = 5; finger_length = 3; ziptie_width = 8; bike_tube_size = 11; difference(){ union() { translate([0, 0, ziptie_width+2]) cylinder(2, bike_tube_size+4, bike_tube_size+4); translate([0, 0, 2]) cylinder(ziptie_width, bike_tube_size+3, bike_tube_size+...
glb/cad_f9ca6a2b7bad.glb
Create a circular grille for an airRohr sensor with a total diameter of 70.5mm and a thickness of 3mm. The design consists of a solid outer ring with a wall thickness of 3mm, enclosing a honeycomb mesh pattern. The mesh is composed of regular hexagonal cells, where each cell has an inner corner-to-corner diameter of 10...
$fn=321; dia_cc = 10; dia_ee = dia_cc * cos(30); wall_cc = 2.5; wall_ee = wall_cc * cos(30); edge = dia_ee-dia_ee/sqrt(3); dx = dia_cc/2+wall_cc+edge+wall_cc+dia_cc/2; dy = dia_ee + wall_ee; module hexagon(cc) { circle(d=cc, $fn=6); } linear_extrude(height=3) difference() { circle(r=70.5/2); circle(r=70.5/2-3); }...
glb/cad_288b9684ff75.glb
Create a protective case for a Raspberry Pi Model A+ consisting of a bottom plate and a top cover. For the bottom plate, create a base measuring 65mm by 49mm with a height of 3.4mm. The corners should be rounded. At each of the four corners, create a cylindrical pillar 4mm high and 6mm in diameter. Each pillar must h...
$fn = $preview ? 40 : 100; Bodem=1; Bovenkant=1; if(Bovenkant) translate([0,70,0]) { difference() { Cube(65,49,3); translate([3.5,4,-1]) { cylinder(d=2.6,h=10); translate([X,0,0])cylinder(d=2.6,h=10); } } translate([40,40,-6]) Cube(6,6,6); } X=58; Y=49; if(Bodem) { difference() { union() { h...
glb/cad_3efa7d3c2671.glb
Create a Fire Exit Barrier Replacement Wedge by combining several geometric primitives. Start with a central rectangular block measuring 20mm wide, 10mm deep, and 50mm tall. Attached to the top of this block, starting at a height of 20mm, add a second rectangular section that is 20mm wide, 14mm deep, and 30mm tall. At ...
module side() { difference() { union() { cylinder(h=20,r=5); translate([0,0,20]) cylinder(h=30,r=7); } } } rotate([-90,0,0]) difference() { union() { side(); translate([0,-5,0]) union() { cube([20,10,50]); translate([0,-2,20]) cube([20,14,30]); } translate([20,0,0]) side(); } ...
glb/cad_30e2a35714dd.glb
Create a 3D star-shaped light shade with seven points. Each point should extend 25mm from the center, with the tip of each point ending in a rounded cap with a diameter of 1mm. The thickness of the star varies: the outer tips of the points should be 1mm thick, while the center of the star is raised to a thickness of 3m...
_points = 7; _point_len = 25; _adjust = 0; _pnt_h = 1; _cent_h = 3; _rnd=1; _fn = 25; module star_3d(points, point_len, adjust=0, pnt_h =1, cent_h=1, rnd=0.1, fn=25) { point_deg= 360/points; point_deg_adjusted = point_deg + (-point_deg/2) + adjust; if(points == 3 && adjust == 0) { hul...
glb/cad_8362d2ba61e2.glb
Create a light shade for an outdoor LED light chain consisting of a hollow cylindrical body and a threaded mounting clip. First, construct the shade as a hollow cylinder with an outer diameter of 80mm and a height of 77mm. The walls should have a thickness of 0.6mm. The bottom of the cylinder must be open, featuring ...
use <star_3d.scad>; include <MCAD/threads.scad> include <MCAD/regular_shapes.scad> include <Round-Anything/polyround.scad> wallT = 1; dShade = 80; shadeType = "star"; renderMode = "shade"; upsideDown = true; starPointLength = dShade / 2; beadPosition = 0.517; heightFactor = 0.666666666666666; frame = true; fr...
glb/cad_278a04c35101.glb
Create a round electrical junction box with a diameter of 104.65mm and a height of 41.66mm. The main body should be a hollow cylinder with a wall thickness of 4mm. On the bottom face, add four mounting tabs. Each tab consists of a square base with a circular top, featuring a centered hole with a diameter of 6.1mm for...
include <threads.scad> $fn = 64; hole_size = 0.840; diameter = 104.648; height = 41.656; wall_thickness = 4; inward_adjust = 3; SCREW_HOLE_SIZE = 4.826; OUTSIDE_SCREW_HOLE_SIZE = 6.096; SCREW_HOLE_SPACING1 = 89.662; SCREW_HOLE_SPACING2 = 69.85; MOUNTING_SCREW_SPACING = 127.254; module box_shell(d, h, wall_thickne...
glb/cad_2ff5094b3492.glb
Create a threaded electrical junction box plug. Start with a main cylindrical body with a diameter of 18.975mm (0.825 inches * 23) and a height of 6.5mm. Integrate a male National Pipe Taper (NPT) thread into the center of this cylinder with a nominal diameter of 0.825 inches, 14 threads per inch, a taper of 1/8, and a...
include <threads.scad> $fn = 64; diameter = 0.825; length = 2/10; driver_hole_width = 2.8; driver_hole_length = 15; thumb_screw_radius = 6; taper = 1/8; threads_per_inch = 14; module thumb_screw() { minkowski() { union() { for (i=[0:6]) { rotate([0, 0, i*180/3]) ...
glb/cad_230153204347.glb
Create a T-Cell Cleaning Stand by constructing a thin, flat circular disc. The disc should have a total diameter of 79.5mm and a uniform height of 2.8mm. Ensure the geometry is a solid cylinder with a high facet resolution to maintain a smooth, circular edge.
$fn = 64; difference() { cylinder(d=79.5, h=2.8); }
glb/cad_94a9f48209a7.glb
Create a T-Cell Cleaning Stand consisting of a tapered octagonal base with an internal threaded cavity. Start by creating a solid octagonal frustum with a height of 25mm, a bottom face diameter of 150mm, and a top face diameter of 92mm. Inside this base, carve out a central vertical hole to house the chlorinator cell...
include <threads.scad> $fn = 64; diameter = 3.156; length = 3/8; taper = 1/16; threads_per_inch = 8; angle = 45; translate([0, 0, 0]) { difference() { cylinder(d2=92, d1=150, h=25, $fn=8); translate([0, 0, 5]) union() { rotate([0, 180, 0]) translate([0, 0, -18]) english_thread(diam...
glb/cad_fec55c40041e.glb
Create a Parametric Paper Cup Dispenser consisting of a main cylindrical body, a mounting bracket, and a removable cap. For the main body, create a hollow cylinder with an outer diameter of 69mm, a height of 200mm, and a wall thickness of 2mm. At the base, include a retaining lip that extends 2mm into the interior dia...
$fn = 128; TOLERANCE = 2; CUP_DIAMETER = 65; HEIGHT = 200; SCREW_HOLE_SIZE = 4; LIP_IN = 2; THICKNESS = 2; CAP_TOLERANCE = 0.5; MOUNT_CENTER_LENGTH = 10; MOUNT_CENTER_WIDTH = 10; MOUNT_WING_WIDTH = 20; translate([0,0,HEIGHT]) rotate([0,180,0]) cup_holder(CUP_DIAMETER, HEIGHT, TOLERANCE, LIP_IN, THICKNESS, MOUNT_CENT...
glb/cad_b4f3129a771f.glb
Create an IoT Broadway Marquee Sign consisting of the letters "BROADWAY" using a bold, condensed sans-serif font. Each letter must be 185mm tall with a body depth of 60mm and a wall thickness of 1.2mm. For each letter, create a hollow main body and a matching front frame with a height of 20mm. The front frame should ...
$fn = 200; thickness = 1.2; boxed_height = 20; backing_height = 60; font_size = 185; mirror([1,0,0]) difference() { offset_broadway(); broadway_negative(); } translate([-15,185,backing_height]) hanging_spot(58); translate([-142,185,backing_height]) hanging_spot(55); translate([-317.5,187,backing_height]) hang...
glb/cad_98dd25120ad4.glb
Create a rectangular controller box for an ESP32 board. The main body is a hollow shell with an outer footprint of 84mm by 44mm (based on an 80mm by 40mm interior plus 2mm walls). The total height of the box is 40mm. The floor of the box is 2mm thick. Inside the box, place four cylindrical pegs with a diameter of 5mm ...
$fn = 200; font_height = 0.5; inside_width = 80; inside_depth = 40; inside_height = 40; thickness = 2; tolerance = 0.2; box(); module holes_and_channel() { translate([15,20,-10]) cylinder(d=10, h=30); translate([14,5,-2]) cube([2,10,2], center=false); translate([15,5,-5]) cylinder(d=5, h=5); } module l...
glb/cad_df6ce68df462.glb
Create a Screw-in PTFE Clip designed to hold a tube with a 4.5mm outer diameter. Start by creating a main cylindrical body with a diameter of 7.5mm and a height of 10mm. Remove a central cylindrical core with a diameter of 4.5mm and a height of 12mm, centered vertically, to create a sleeve. To allow the tube to be inse...
$fn = 32; PTFE_OD = 4.5; CLIP_WIDTH = 10; THICKNESS = 3; MOUNT_HEIGHT = 10; clip(); module clip() { difference() { cylinder(d=PTFE_OD+THICKNESS, h=CLIP_WIDTH); translate([0,0,-1]) cylinder(d=PTFE_OD, h=CLIP_WIDTH+2); translate([PTFE_OD*1.4,0,-1]) cylinder(d=PTFE_OD*2, h=CLIP_WIDTH+2); ...
glb/cad_fdeb8fa300ae.glb
Create a set of Dynamic Drawer Sorters consisting of walls and connector hubs. All components have a uniform height of 33.8mm and a base wall thickness of 4mm. Create two types of walls: vertical walls and horizontal walls. The vertical walls have a length of 105.1mm, and the horizontal walls have a length of 74.3mm. ...
drawer_height=33.8; drawer_width=565.15; drawer_depth=368.3; h_bins=6; v_bins=3; wall_width=4; function p_width() = wall_width * 5; function p_in_width() = sqrt(2*(p_width()^2))-(2*(wall_width+sqrt(2*((wall_width/2)^2)))); function sp_in_width() = sqrt(2*((p_width()/2)^2))-(wall_width+sqrt(2*((wall_width/2)^2))...
glb/cad_320d7a171201.glb
Create a glass shelf peg consisting of a cylindrical support and a wider base. Start by creating a main cylinder with a diameter of 6mm and a length of 10mm, oriented horizontally. At one end of this cylinder, attach a circular flange with a diameter of 10mm and a thickness of 2mm, centered on the cylinder's axis. On t...
police_x = 15; police_y = 10; police_z = 2; krouzek_d = 10; krouzek_l = 1; kolik_d = 6; kolik_l = 10; kolik_s = 1; $fn=95; module kolik(){ difference(){ union(){ hull(){ translate([0,0,0]) rotate([0,0,...
glb/cad_bb1a5443a0d7.glb
Create a Bench Dog Storage Tube consisting of a hollow cylindrical container and a matching hexagonal cap. First, construct the main tube as a cylinder with an outer diameter of 18.9mm and a total height of 80mm. Hollow out the center by removing a concentric cylinder with a wall thickness of 2mm. At the top of this ...
include <threads.scad> $fn = 200; bench_dog_d = 18.9; tube_length = 80; wall_thickness = 2; tolerance = 0.2; taper = 1/8; threads_per_inch = 8; angle = 45; tube(); translate([30,0,0]) cap(); module tube() { difference() { cylinder(d=bench_dog_d, h=tube_length); translate([0,0,wall_thickness]) cy...
glb/cad_c7e069ed1c3d.glb
Create a PB2SP1 PicoBoot Serial Port Attachment. Start with a base plate that is a rounded rectangle measuring 15.4mm by 51mm with a thickness of 1.6mm. At the four corners of this plate, create four circular mounting holes with a diameter of 2.1mm that penetrate through the thickness of the plate. The holes should be ...
printReady = true; $fn = 200; translate([0, 0, printReady ? 4.5 : 0]) union() { translate([2, 2, 0]) difference() { holes = [ [0, 0, 0], [11.4, 0, 0], [11.4, 47, 0], [0, 47, 0] ]; hull() { for (h = holes) { ...
glb/cad_d73508df2e40.glb
Create a Mesh Sieve consisting of a circular frame and a solid base. Start by constructing a circular frame with an outer diameter of 108 mm and a height of 16 mm. The frame's cross-section should be a specific profile: starting from the base, it has a thickness of 4 mm, which then steps inward to 2 mm for a height of ...
diameter = 100; line_width = 0.5; mesh_depth = 0.8; mesh_spacing = 0.25; frame_thickness = 4; frame_height = 16; module frame() { rotate_extrude($fn=180) translate([-diameter/2,0,0]) { polygon([[0,0], [-frame_thickness/2,0], [-frame_thickness/2,frame_thickness/2], [-frame_thickness,frame_thickness], [-f...
glb/cad_bded4f528015.glb
Create a Vertical PVC Pipe Wall Mount system for spool drawers. The system consists of several components designed to fit a 1-inch PVC pipe (outer diameter 33.40mm). First, create two wall brackets. The bottom bracket is a rounded, 8mm thick base with a central circular indentation for the PVC pipe and a diagonal supp...
use <threads.scad> $fn = 64; render_phantom_balls = 0; BRACKET_THICKNESS = 8; SPOOL_OD = 200; COLLET_TOLERANCE = 0.75; PVC_OD = 33.40; PVC_TOLERANCE = 0.2; PVC_SOCKET_THICKNESS = 2.4; PVC_SOCKET_DEPTH = 25; KNOB_DIAMETER = 12; KNOB_HEIGHT = 6; KNOB_THREAD_LENGTH = PVC_SOCKET_THICKNESS*2.25; SCREW_SHAFT = 4.3; SCRE...
glb/cad_ce3f2e3b6c01.glb
Create a Pool Eyeball Removal Tool consisting of a main rectangular body with rounded corners. The body should be 38mm wide, 47.75mm long, and 4.3mm thick, with a corner radius of 3mm. Centered on the top face of this body, create a larger rectangular plaque measuring 57.3mm by 57.3mm with a thickness of 4.3mm and a ...
use <roundedCube.scad> $fn = 64; TOLERANCE = 0.2; TOOL_WIDTH = 38.2; TOOL_THICKNESS = 4.5; roundedCube([TOOL_WIDTH-TOLERANCE, TOOL_WIDTH*1.25, TOOL_THICKNESS-TOLERANCE], r=3, center=true); translate([0,TOOL_WIDTH*1.25,0]) { difference() { roundedCube([TOOL_WIDTH*1.5, TOOL_WIDTH*1.5, TOOL_THICKNESS-TOLERAN...
glb/cad_9c45f72856c6.glb
Create a Calibration Weights Container consisting of a base and a lid connected by a hinge. The base is a rounded rectangular box with outer dimensions of 133.6mm width, 49.6mm depth, and 42.5mm height, featuring 4mm rounded corners and 1.8mm thick walls. Inside the base, carve out a series of cylindrical holes to ho...
use <roundedCube.scad> TOLERANCE = 0.75; SPACE_BETWEEN = 8; WALL_THICKNESS = 2; tweezers_l = 122; tweezers_opening_width = 15.3; tweezers_handle_thickness = 1.8; w100g_d = 23.2; w50g_d = 17.9; w20g_d = 13.4; w10g_d = 9.9; w5g_d = 7.9; w2g_d = 6; w1g_d = 6; MIN_WIDTH = w100g_d + w50g_d + w20g_d + w10g_d + w5g_d + w2g...
glb/cad_60ff4775f858.glb
Create a parametric hex grille with overall dimensions of 56mm in width, 40mm in depth, and 5mm in height. Start by forming a solid rectangular base with these dimensions, ensuring the corners are rounded with a radius of 6mm. Within this base, carve out a repeating pattern of hexagonal holes. Each hexagon should hav...
module hexgrid(dim, wt=1.275, hd=5, cd=6){ sm=0.0001; sq3=sqrt(3); hr=hd/2; dx=(hr*sq3)+wt; dy=3*hr+(wt*sq3); difference(){ minkowski(){ cube([dim[0]-cd, dim[1]-cd, dim[2]], center=true); cylinder(d=cd, h=sm, center=true, $fn=40); } intersection()...
glb/cad_ded7f5992496.glb
Create a combo lock style panel knob with a total height of 12mm. Start with a cylindrical base 34mm in diameter and 2mm thick. Above this, add a conical section 4mm high that tapers from the 34mm base diameter down to a top diameter of 15mm. On top of the taper, add a final cylindrical cap 8mm high with a 15mm diamete...
include <knurledFinishLib_v2.scad> include <Star.scad> overall_h=12; knurl_h=8; knurl_d=15; dial_h=4; bottom_h=2; bottom_d=34; z_bottom=0; z_dial=z_bottom + bottom_h; z_knurl= z_dial + dial_h; grip_d=6.66; grip_h=5.00; pole_d=grip_d + 1; $fn=60; font = "Liberation Sans"; n_slots=40; dia_h = bottom_d / ( ( botto...
glb/cad_4fe48ecbc110.glb
Create a Gwent deck card case consisting of a bottom holder and a matching top lid. For the bottom holder, create a hollow rectangular shell with outer dimensions of 71mm width, 99mm height, and 47mm depth. The walls and floor should be 2mm thick. For the top lid, create a matching hollow rectangular shell with out...
Thickness=2; Card_Width=67+2*Thickness; Card_Height=95+2*Thickness; Height=41; Logo_Placement=0.55; Logo_Scale=0.25; Slop=0; $fn=64; Divider_Thickness=0.5; cube([Card_Width-2*Thickness,Card_Height-2*Thickness,Divider_Thickness]); *difference() { translate([Thickness,Thickness,Thickness]) difference() { hull() {...
glb/cad_6a9353b58855.glb
Create a Gwent Deck Card Case consisting of a bottom holder and a top lid. For the bottom holder, create a rectangular base with a wall thickness of 2mm and outer dimensions of 71mm by 99mm. Round the four corners with a 2mm radius. The walls should be 42mm high. On each of the four sides, center a finger-grip cutout...
Card_Width=67; Card_Height=95; Thickness=2; Height=41; $fn=64; Horizontal_Segment = Card_Width/3; Vertical_Segment = 0.5*(Card_Height-Horizontal_Segment); Divider_Thickness=0.5; Divider_Z=0; *translate([Horizontal_Segment+2*Thickness,1.25*Thickness,Divider_Z]) cube([Horizontal_Segment,Card_Height+1.5*Thickness,Di...
glb/cad_04148b621f22.glb
Create a protective cover for a USB-C security key. Start by constructing a main rectangular body with rounded corners, measuring 14.6mm in width, 51mm in length, and 9mm in height. Hollow out the center of this body to create a cavity that is 14.6mm wide, 50mm long, and 7mm high, leaving a wall thickness of approximat...
kw = 18.6; kl = 50; kh = 7; $fn = 60; difference() { minkowski() { cube([kw-4, kl+1, kh+2]); sphere(1, $fn=15); } translate([((kw-4)/2),3.5,0]) cylinder(r1=2.75,r2=2.75,h=1); translate([kw/2-2,kl/2-1,kh/2+1]) cube([kw-4+6, kl+2, kh], center=true); } translate([((kw-4)/2),3.5,0.25]) cyl...
glb/cad_3c56e097e1c7.glb
Create an anti-reflection mod for a camera lens consisting of two concentric cylindrical rings of different heights. First, create a wide, flat base cylinder with a diameter of 82mm and a height of 2.5mm. From the center of this base, remove a cylindrical core with a diameter of 72mm and a height of 3.2mm to create a r...
Capsize = 72; OutBuffer = Capsize + 10; InBuffer = Capsize - 4; translate ([0,0,0]) { difference() { cylinder (h=2.5, d=OutBuffer, $fn=200); cylinder (h=3.2, d=Capsize, $fn=200); } difference() { cylinder (h=5, d=Capsize, $fn=200); cylinder (h=6.2, d=InBuffer, $fn=200); ...
glb/cad_4881ce7f519c.glb
Create a customizable comb by starting with a main rectangular body measuring 150mm in width, 30mm in height, and 3.4mm in thickness. Round the four outer corners of this body with a radius of 3mm. Carve out a central rectangular slot from the bottom of the body to create the comb's teeth, leaving a top border (staff...
tag = "Your name here"; bb_w = 150; bb_h = 30; bb_d = 3.4; spike_w=0.82; space_w=0.92; amount = 82; rounding_scale = 0.7; staff_h = 8; inner_w = amount*spike_w+(amount+1)*space_w; margin_w = 3; margin_h = 3; coutout_d = .7; difference() { union() { difference() { rounded_cube([bb_w,bb_h,bb_d],3); ...
glb/cad_559eb6f335b7.glb
Create a BLtouch friction sleeve probe protector by constructing a hollowed-out geometric shell. First, create the outer body: form a shape that is the intersection of a sphere with a 10mm radius centered at (0, 0, 3) and a combined volume consisting of a cylinder with a 7.5mm radius and a height of 13mm, and a rectang...
$fn=64; w=10.5; d=13.3; r=d/2; h=10; module inside() { intersection() { union() { translate([0,0,h-7.5]) sphere(r=7.5); translate([-r,-w/2,0]) cube([r*2,w,h-4.5]); } union() { cylinder(h=h, r=r); translate([-r,0,0]) cube([r*2,w/2,h]); ...
glb/cad_c278cd340d19.glb
Create a Kingsong S22 Calf Saver, which is a protective pad with a curved profile. Start by creating a primary semi-cylindrical body with a radius of 70mm, oriented so the curve faces outward. The total height of the part is 35mm. The shape is defined by three distinct depth sections along its length: a front section ...
$fn = 200; height = 35; mainWidth = 66; frontWidth = 38; rearWidth = 20; frontDepth = 12; mainDepth = 33; rearDepth = 20; curveRadius = 70; infinity = curveRadius * 10; test = 100; screwRadius = 5; bevel = 3; module bottom() { translate([0,0,-infinity / 2]) { cube([infinity, infinity, infinity], center...
glb/cad_c67ad76e1349.glb
Create a sprinkler cap consisting of three concentric cylindrical shells of varying heights and diameters. First, create a large outer cylinder with an outer diameter of 40.75mm and a height of 7mm. Hollow out the center of this cylinder to a diameter of 38.2mm, leaving a wall thickness of 1.275mm and a base thickness ...
$fn = 64; od = 40.75; or = od / 2; id = 38.2; ir = id / 2; oh = 7; ih = 6; difference() { cylinder(h = oh, r = or); translate([0,0,oh-ih]) cylinder(h = ih+1, r = ir); } od2 = 18.4; or2 = od2 / 2; ir2 = or2 - 1.3; difference() { cylinder(h = oh/2, r = or2); translate([0,0,oh-ih]) cylinder(h = oh/2+1, ...
glb/cad_217bd7d0ec89.glb
Create a set of buttons for an Arduino LCD keypad shield. The model consists of five cylindrical buttons connected by a thin flat bar. Each button is composed of a main cylinder with a diameter of 4.6mm and a height of approximately 11.5mm. The base of each cylinder features a slightly wider circular collar. The butto...
part = "buttons"; with_battery = 0; extra_room = 0; have_usb_plug = 1; have_power_plug = 1; have_power_switch = 0; have_up_key = 1; have_down_key = 1; have_left_key = 1; have_right_key = 1; have_select_key = 1; have_reset_key = 1; adjust_reset_key = -2; have_plugrow_upper = 1; have_plugrow_lower = 1; mil2mm = 0.0254;...
glb/cad_2a4a103b7989.glb
Create a parametric endmill index holder consisting of a series of adjacent slots. For each endmill defined by a tip diameter, shaft diameter, cutting length, and total length, construct a slot with exterior walls 1mm thick. The main body of each slot is a block with a width based on the shaft diameter plus clearance ...
endmills = [ [2,6,7,51], [3,6,8,52], [4,6,11,55], [5,6,13,57], [6,6,19,60], [7,8,19,63], [8,8,19,63], [9,10,22,72], [10,10,22,72], [12,12,26,83] ]; wall = 1; clearance = 0.4; interference = 0.2; insertion_angle=290; text_extrude=0.5; text_scale = 1; text_spacing = 0.75; ...
glb/cad_d97572e39f6d.glb
Create a hex mesh sponge holder with a curved base and three vertical slots. First, construct the base as a curved slab with a thickness of 4mm and a total width of 90mm. The base should follow a circular arc with a height of 8mm. Create four vertical panels, each 80mm high, 60mm deep, and 2mm thick. Position these...
slotCount=3; depth=60; width=90; height=80; arcHeight=8; thickness=2; baseThickness=4; latticeSpacing=12; supportRadius = (4*arcHeight*arcHeight+ width*width) / (8 * arcHeight); panelSpan=width-thickness; f1=1/10; f2=2*f1; module hex(xwidth,yheight,zthickness) { sidesInHexagon=6; difference(){ ...
glb/cad_c51f427b306e.glb
Create a Bed Level Correction tool consisting of a grid of thin square patches connected by narrow lines. The overall layout is designed for a 250mm by 210mm area. Place nine square patches, each 20mm by 20mm with a thickness of 0.2mm. Arrange them in a 3x3 grid. The x-coordinates for the columns are 20mm, 125mm, and ...
bedXMax = 250; bedYMax = 210; bedMargin = 10; patchSize = 20; patchThickness = 0.2; connectionWidth = 2; showLabels = true; module patch(centerX,centerY,patchSize){ translate([centerX,centerY,0]) square(patchSize,center=true); } linear_extrude(patchThickness,center=false) { firstX = bedMargin+patchSize/2...
glb/cad_f04c4d4aaad2.glb
Create a Customizable Ornament consisting of a main decorative body attached to a cylindrical cap. The main body is a revolved shape with a total height of 50.8mm (2 inches) and a maximum width of 38.1mm (1.5 inches). The profile follows a sine-like curve, where the curvature is controlled by a power of 1.0, creating...
0_Units=25.4; 1_Shape_Height=2; 2_Shape_Width=1.5; 3_Shape_Control=1; 1_Cap_Diameter=0.5; 2_Cap_Height=0.25; 3_Cap_Shape_Transition=.25; 1_Ripple_Count=14; 2_Ripple_Height=10; 3_Ripple_Twist=60; 1_Dimples=0; 2_Dimple_Size = 1; 3_Dimple_Distance=0.1; 4_Dimple_Shift=0; 5_preview_dimples=0; Cap_Shape_Easing...
glb/cad_1a0281679275.glb
Create a customizable stackable box with a removable drawer. The main outer shell is a rectangular box with an external width of 75mm, a total depth of 200mm, and a total height of 40mm. The walls of the outer shell and the drawer should have a thickness of 1.5mm. The outer shell features a hollow interior to house th...
Ancho = 75; Profundidad = 200; Alto = 40; N_Largo = 4; N_Ancho = 2; Grue = 1.5; GrueC = 1; Diferencia = 0; Holgura = 0; GuiIz = "SI"; GuiDe = "SI"; GuiSu = "SI"; GuiIn = "SI"; Caja = "SI"; Cajon = "SI"; Tirador = "SI"; color1 = "yellow"; color2 = "blue"; color3 = "red"; color4 = "orange"; module Caj...
glb/cad_e298b251a115.glb
Create a mounting clamp for a pipe with a 26mm diameter. The clamp should be 12mm high and have a total outer radius of 17mm. The main body is formed by a circular ring with a 13mm inner radius and a wall thickness of 4mm. To allow the clamp to be tightened, create a gap in the ring at a 110-degree opening angle. Inte...
use <./spresenseBox.scad>; $fn=20; pipe_diameter=26; pipe_radius=pipe_diameter/2; clamp_thickness=4; clamp_radius=pipe_radius+clamp_thickness; screw_diameter=4; screw_radius=screw_diameter/2; screw_head_diameter=7; screw_head_radius=screw_head_diameter/2; clamp_height=12; opening_angle=110; difference(){ linea...
glb/cad_def25a5f0bdd.glb
Create a PCB tray for the Mistral 260 consisting of two symmetrical side railings and an end stop. For each side railing, create a base rail 169mm long, 2mm thick, and 11.5mm wide. At one end, integrate a mounting section that is 169mm long and 2mm thick, featuring a 5mm diameter hole centered 145mm from the start an...
Wall = 2; Slope = 30; JointHeight = 30; JointWidth = 6; PlateThickness = 1.3; PlateWidth = 300; PlateLength = 200; BeltWidth = 319; epsilon = 0.05; module mistral_rail() { hole_offs_x = 145; hole_offs_y = 6; length = hole_offs_x + 24; belt_side = 3.6; tweak_x = 2; difference() { union() { trans...
glb/cad_1fbf7cf97b77.glb
Create a Direct Radius Gauge tool with a total height of 6mm. The main body is a V-shaped wedge formed by two arms meeting at a 60° angle. Each arm extends from the center to a length of 150mm. Cut a central longitudinal slot through the entire thickness of the device to accommodate a caliper; this slot must be 16mm ...
$fs=.5; $fa=1; caliper=[16,4]; r=50; h=6; through=false; rand=h-caliper.y ; RadiusGauge(); module RadiusGauge(a=60,r=r,h=h,rand=rand,caliper=caliper,txt){ ty=10; ofs=2; arm=10; difference(){ union(){ linear_extrude(h,convexity=5)offset(ofs){ rotate(-a/2)translate([ofs,-ty])square([arm,tan(90-a/2)*r+t...
glb/cad_223f82a8129e.glb
Create a credit-card-sized case for money or memory cards consisting of two matching halves: a top cover and a bottom base. For the top cover, create a rounded rectangular slab approximately 53.4mm wide and 85mm long. The corners should be rounded with a radius of 3.2mm. The top surface must feature a shallow rectang...
$fn = 60; translate([0,0,0]) vrch(); translate([80,0,0]) spodek(); module vrch() { difference() { union() { hull() { translate([((53.4/2)-3.2),((85/2)-3.2),3]) cylinder(d=6.4,h=4,center=true); translate([-((53.4/2)-3.2),((85/2)-3.2),3]) cylinder(d=6.4,h=4,center=true); ...
glb/cad_3851eccf47ec.glb
Create a Filament Swatch plaque with a rectangular base measuring 80mm in length, 30mm in width, and 2.2mm in height. Round all four corners of the base with a radius of 1.5mm. Centered on the top face, add raised text that reads "Filament Name Goes Here" in a bold sans-serif font, with a character size of 3mm and an e...
$fn=40; text="Filament Name Goes Here"; textSize=3; width=30; length=80; height=2.2; corner=1.5; union() { difference() { hull() { translate([corner,corner,0]) cylinder(r=corner,h=height); translate([length-corner,width-corner,0]) cylinder(r=corner,h=height); translate([corne...
glb/cad_fbdec314a6a5.glb
Create a rectangular organizing mesh box with an external width of 121mm, height of 93mm, and depth of 206mm, using a consistent wall thickness of 3mm. The box consists of a bottom, a back wall, two side walls, and a front wall. The bottom, back, and side walls are all perforated with a diamond-shaped mesh pattern. Th...
$fn=0; $fa=10; $fs=0.1; internalWidth = 115; internalHeight = 90; internalDepth = 200; wallThinkness = 3; innerSections = 4; innerSeparatorHeight = 30; brim = 7; outWidth = internalWidth + wallThinkness * 2; outHeight = internalHeight + wallThinkness; outDepth = internalDepth + wallThinkness * 2; outHalfDepth = (inte...
glb/cad_74d7209ccc41.glb
Create a Jumbo LCD Knob by constructing a tapered cylindrical base and a flat top cap. Start with a truncated cone that transitions from a bottom diameter of 20mm to a top diameter of 40mm over a height of 10mm. Place a cylindrical cap with a diameter of 40mm and a height of 5mm on top of this cone. Remove a central ve...
holeDiam = 6; innerDiam = 20; outerDiam = 40; holeDepth = 5; taperHeight = max(10,(outerDiam-innerDiam)/2); topHeight = taperHeight / 2; finWidth = 3; finLength = outerDiam - topHeight/2; finFraction = .65; eps = .001; difference() { union() { difference() { union() { translate([0,0,-t...
glb/cad_fd57bffe3f9c.glb
Create a knurled jog wheel knob. Start with a central cylinder 30mm in diameter and 5mm in height. Apply a knurled texture to the outer surface of this cylinder using a diamond pattern where each polyhedron is 2mm wide, 2.5mm high, and 0.5mm deep. On the top face of the cylinder, center a flattened dome created by inte...
$fn=100; use <../external/knurledFinishLib_v2.scad> difference() { union() { translate([0,0,5]) intersection() { translate([0,0,-1]) scale([1,1,.2]) sphere(15.58); cylinder(5,r=15); } knurl( knurled_cylinder_...
glb/cad_e74a2d0e290e.glb
Create a credit card wallet case consisting of a top cover and a bottom base. For the top cover, create a rounded rectangular slab by forming a hull around four cylinders of 6.4mm diameter positioned at the corners of a 55mm by 89.6mm area, with a total thickness of 6mm. Carve out a central cavity to hold cards. On t...
$fn = 60; { union() { translate([0,0,0]) vrch(); translate([0,0,0]) spodek(); } union() { } } module vrch() { difference() { union() { hull() { translate([((61.4/2)-3.2),((96/2)-3.2),3]) cylinder(d=6.4,h=4,center=true); translate([-((61.4/2)-3.2),((96/2)-3.2),3]) cyl...
glb/cad_362eda93ce7b.glb
Create a 2.5" hard drive mounting bracket bay. Start with a rectangular base plate measuring 75mm wide by 168mm long with a thickness of 1.2mm. Along the two long edges of the base, add vertical walls that are 1.2mm thick and 7mm to 9mm high, leaving a gap in the center of the front edge. On the top surface of the bas...
$fn=30; w = 62.55; h = 76.2; module tismanooq(c,r,i){ for(b = [0:i:r-1]){ translate([0,b,0]) for (k = [0:i:c-1]){ translate([k,0,0]) children(); } } } module plate(){ cube([75,168,1.2]); translate([75/2-13/2,168-1.2,0]) cube([13,1.2,4.2]); translate([5.65,-3,1.8])...
glb/cad_a6cb8299fd5f.glb
Create a destructible wall building block by constructing a rectangular base 20mm wide, 20mm deep, and 20mm high. Round the vertical edges with a 5mm radius. For a size 2 block, create two of these base units joined side-by-side along the width. The first unit should have a flat front face, and the second unit should...
$fs = 0.1; $fa = 0.1; size = 2; base_width = 20; base_height = 20; curve_size = 5; hole_height = 5; hole_r1 = 7.2; hole_r2 = 5.2; hole_r_offset = 1; hole_h_offset = 1; rotate ([-90,90,0]) if (size == 1) { block_2_to_1 (); } else { for (i = [0 : size - 1]) { translate ([0, i * base_width, 0]) ...
glb/cad_d221fc15f256.glb
Create a destructible wall building block consisting of two connected rectangular sections. Each section is based on a 20mm by 20mm square footprint with a height of 20mm. The outer corners of the overall structure must be rounded with a 5mm radius. For each section, create a central vertical hole that passes through ...
$fs = 0.1; $fa = 0.1; size = 2; base_width = 20; base_height = 20; curve_size = 5; hole_height = 5; hole_r1 = 7.2; hole_r2 = 5.2; hole_r_offset = 1; hole_h_offset = 1; rotate ([-90,0,0]) if (size == 1) { block_with_holes (); } else { for (i = [0 : size-1]) { translate ([i * base_width, 0, 0]) ...
glb/cad_6ba494ec1180.glb
Create a castle wall block with a tiered base and a crenelated top. Start with a rectangular base measuring 40mm by 40mm with a height of 3mm. Above this, add a transition section that flares outward to 48mm by 48mm over a height of 5mm, topped by a 5mm thick rectangular platform. On top of this platform, add a 8mm hig...
$fs = 0.1; $fa = 0.1; base_x = 40; base_y = 40; base_height = 3; top_x = 48; top_y = 48; top_below_height = 5; top_base_height = 5; top_cover_height = 8; top_inner_x = 42; top_inner_y = 42; parapet_x_iter = 4; parapet_y_iter = 4; parapet_size = 6; parapet_height = 6; hole_base_width = 20; hole_base_height = 20; ho...
glb/cad_8ff0ab79f7f3.glb
Create a destructible castle wall block. Start with a rectangular base measuring 40mm x 30mm x 60mm, centered on the origin. On top of this base, add a transition section created by linearly extruding a square from the base dimensions up to 50mm x 40mm over a height of 10mm. Above this transition, place a rectangular s...
base_x = 40; base_y = 30; base_height = 60; top_x = 50; top_y = 40; top_below_height = 10; top_base_height = 5; top_cover_height = 10; top_inner_x = 45; top_inner_y = 35; parapet_x_iter = 5; parapet_y_iter = 4; parapet_size = 5; parapet_height = 5; do_modifier = 0; if (!do_modifier) { translate ([0,0,base_heig...
glb/cad_bde07a2522aa.glb
Create a credit card wallet case consisting of two mirrored halves, a top cover and a bottom base, that fit together to form a hollow rectangular enclosure. The overall outer dimensions are approximately 62mm by 96mm with a thickness of around 5mm. For the main body of both halves, create a honeycomb pattern of hexago...
$fn = 60; difference() { union() { translate([0,0,0]) vrch(); translate([0,0,0]) spodek(); } union() { intersection() { union() { for(j=[-26:13:26]) { for(i=[-48:8:48]) { translate([j,i,0]) cylinder(d=7,h=20,center=true,$fn=6); translate([j+6.5,i+4,0]) cylinder(d=7,h=20...
glb/cad_622a349ceea7.glb
Create a slim wallet body as a rounded rectangular prism with a width of 85mm, a height of 54mm, and a depth of 4mm, using a corner radius of 3mm. To allow for card insertion, create two symmetrical bevels on the interior of the long sides. Each bevel is formed by removing a volume starting 2mm from the side edges, e...
module __Customizer_Limit__ () {} production = 1; pnghq = 0; $resolution = (production && !$preview) ? 150 : (pnghq ? 150 : 25); if (production && !$preview) { echo("Producing PRODUCTION quality"); echo("Resolution",$resolution); echo("Preview",$preview); } else { echo("Producing DRAFT quality"); echo("Resol...
glb/cad_199e5fc305cb.glb
Create a cylindrical knob with a total height of 11mm and a radius of 7.5mm. The center of the knob must be hollowed out by a hexagonal hole with a diameter of 13.2mm that extends from a height of 2mm up to the top. Additionally, remove a smaller central cylinder with a radius of 3.5mm from the bottom up to a height of...
$fn = 100; z = 0; $offset = 2; $dia = 13.2; $rad = 7; difference() { union() { for (z = [0 : 2 : 6]) for (i = [0 : 20 : 340]) { rotate([0, 0, i]) translate([$rad, 0, $offset + z]) rotate([0, 90, 0]) cylinder(1.5, 2, 0.5, $fn=4); rotate([0, 0, i + 10]) translate([$rad, 0, $offset + z + 1]) rotate([0, ...
glb/cad_4bff04eff965.glb
Create a T5 SSD Holder by constructing a main outer hull and subtracting internal volumes. The outer hull is formed by a union of a 30x20x3mm rectangular mounting plate and a hull created from two cylinders with a length of 65mm and a radius of 5.25mm, positioned 57.4mm apart. Add a backside latch consisting of a 15x15...
$fn = 100; $di = 10.55; $do = $di + 6; $w = 57.4; $l = 65; $pw = 12.2; $ph = 6.8; $bld = 15.2; $blw = 15; $blh = ($do - $di) / 2; $cd = 5; union() { difference() { union() { translate([$w -10, - $l, - ($do / 2)]) cube([30, 20, 3], false); hull() { rotate([90, 0, 0]) cylinder($l, $do / 2, $...
glb/cad_9c4f2cc49068.glb
Create a Crown Knob for a rotary encoder. The object consists of a central cylindrical core with a knurled outer grip. Start with a central cylinder 20mm high with a radius of 9.8mm. Add a small upper extension to this cylinder with a radius of 11.25mm and a height of approximately 2mm. Create the outer grip by addi...
*Knurl(h=50,r=20,size=[2.1,3,1],grad=360,info=true); *translate([50,0])Knurl(h=50,r=20,size=[2.1,3,1],grad=90,info=true); *intersection(){ color("slategrey")scale([1,1,0.45])Knurl(h=50,size=[2.6,5,[-2,-1,1,2,1,-1]],info=1,scale=3.5,scaleZ=3.5,twist=90*0.5); color("lightslategrey")cylinder(55,d1=175,d2=50,$fs=.5,$fa=1)...
glb/cad_6f36ae1c8980.glb
Create a Betamax Cassette Load Gear by constructing a spur gear with a module of 0.5, 10 teeth, a height of 5mm, and a central shaft width of 2.5mm. Attached to the side of this gear, add a rectangular block that serves as a flat extension. This block should have a width of 0.78125mm (calculated as 2.5 divided by 3.2),...
include <gears.scad> shaftwidth=2.5; teeth=10; gearmod=0.5; gearheight=5; flatheight=gearheight; union() { spur_gear(gearmod,teeth,gearheight,shaftwidth); translate([-(shaftwidth / 2),-(shaftwidth / 2),0]) { cube([shaftwidth/3.2,shaftwidth,flatheight]); } }
glb/cad_bd3e81957896.glb
Create a tiny 90 degree angle lock by starting with a solid cube measuring 15mm x 15mm x 7mm. Remove a smaller cube from the center to create an L-shaped bracket, leaving walls that are 2mm thick. Drill two cylindrical holes, each with a diameter of 2.5mm, through the center of each remaining wall. Position the first h...
$fn=123; difference() { cube([15,15,7]); translate([2,2,-.01]) cube([15,15,7.02]); translate([15-2.5/2-3, -.01, 7/2]) rotate([-90,0,0]) cylinder(r=2.5/2, h=2.02); translate([-.01, 15-2.5/2-3, 7/2]) rotate([0,90,0]) cylinder(r=2.5/2, h=2.02); }
glb/cad_b6256de3cdc3.glb
Create a mosquito net ring designed to fit a 75mm pipe. Start by constructing a central shaft with a radius of 32.5mm and a height of 20mm. On top of this shaft, add a funnel section that transitions from a radius of 32.5mm to 42.5mm over a height of 10mm, topped with a flat disc 2mm thick with a radius of 42.5mm. Inc...
$fn=321; difference() { union() { translate([0,0,0]) cylinder(r=75/2-5, h=20); translate([0,0,20]) cylinder(r1=75/2-5, r2=75/2+5, h=10); translate([0,0,20+10]) cylinder(r=75/2+5, h=2); translate([0,0,2]) cylinder(r1=75/2-5, r2=75/2-5+2, h=2); translate([0,0,2+2]) cylinder(r1=75/2-5+2, r2=75/2...
glb/cad_ef8bf8d5d28c.glb
Create a customizable week calendar consisting of seven weekday plates and a storage box. For each weekday plate, create a base rectangle 156mm wide and 26mm high with rounded corners (radius 9.63mm) and a thickness of 2mm. Centered on this base, add the name of the day in a script font with a height of 26mm and a th...
Model = "Day1" ; Day_1 = "Sunday" ; Day_2 = "Monday" ; Day_3 = "Tuesday" ; Day_4 = "Wednesday" ; Day_5 = "Thursday" ; Day_6 = "Friday" ; Day_7 = "Saturday" ; Font = "Script MT Bold" ; Height ...
glb/cad_42ea3f38b48f.glb
Create a customizable week calendar consisting of a holder box and sliding plates. For the plates, create a rectangular base 2mm thick with rounded corners using a radius of approximately 9.6mm. The base should have a total height of 26mm and a width of 156mm. On top of this base, add a centered text label 3mm thick ...
Model = "Box" ; Month_1 = "January" ; Month_2 = "February" ; Month_3 = "March" ; Month_4 = "April" ; Month_5 = "May" ; Month_6 = "June" ; Month_7 = "July" ; Month_8 = "August" ; Month_9...
glb/cad_0ac2c63df37d.glb
Create a Filament Swatch Rolodex system consisting of a main card and a spacer. For the main card, create a rectangular base 108.28mm wide by 57.15mm tall with a thickness of 1.2mm and rounded corners with a radius of 3.175mm. Subtract two vertical slot holes for a Rolodex track; each hole is 6.35mm wide and 9.9375mm...
$fn = 30 + 0; in_to_mm = 25.4 + 0; extrude_fn = 100; epsilon = 0.01; Parts = "All"; Units = 25.4; Card_Width = 4.25; converted_card_width = Card_Width * Units; Card_Height = 2.25; converted_card_height = Card_Height * Units; Card_Margin = 0.25; converted_card_margin = Card_Margin * Units; Spacer_Width = 2.25; con...
glb/cad_d75e5dc7e32e.glb
Create a Quad Riffel Vase by constructing a textured, tapered cylindrical vessel. The main body is a hollowed cylinder with a height of 55mm, a base diameter of 175mm, and a top diameter of 50mm. The exterior surface features a complex knurled pattern consisting of repeating geometric ridges. This pattern is created by...
*Knurl(h=50,r=20,size=[2.1,3,1],grad=360,info=true); *translate([50,0])Knurl(h=50,r=20,size=[2.1,3,1],grad=90,info=true); intersection(){ color("slategrey")scale([1,1,0.45])Knurl(h=50,size=[2.6,5,[-2,-1,1,2,1,-1]],info=1,scale=3.5,scaleZ=3.5,twist=90*0.5); color("lightslategrey")cylinder(55,d1=175,d2=50,$fs=.5,$fa=1);...
glb/cad_26c71536c66d.glb
Create a paper towel holder base consisting of two concentric cylindrical sections. First, construct a wide, flat circular base with a diameter of 50mm and a height of 1mm. Directly above this, create a main cylindrical body with an outer diameter of 50mm and a total height of 60mm. Inside this main body, carve out a c...
w1 = 50; w2 = 43.5; difference(){ union(){ hull(){ translate([0,0,-9.5]) cylinder(h = 1, d1 = w1-2, d2 = w1, center = true, $fn=120); translate([0,0,-0.5]) cylinder(h = 1, d1 = w1, d2 = w1-2, center = true, $fn=120); } hull(){ translate([0,0,29.5]) cylinder(h = 1, d1 = w2, d2 = w2-2, center = true, $f...
glb/cad_ad7785b84792.glb
Create a Drywall Cutting Tool bracket by starting with a thin disc that has an outer diameter of 95mm and a height of 2mm. Remove a concentric inner cylinder with a diameter of 80mm to create a ring. From this ring, remove four identical triangular notches equally spaced around the inner edge at 90-degree intervals. Ea...
size=80; high=2; difference(){ cylinder(d=size+15, h=high, $fn=size+20); cylinder(d=size, h=high+2, $fn=size); cutout(); rotate([0,0,180]) cutout(); rotate([0,0,90]) cutout(); rotate([0,0,-90]) cutout(); } module cutout(){ points = [[0,0,0], [0,10,0], [10,0,0], [0,0,10]]; translate([(size/2)-4,0,0]) p...
glb/cad_e1cce71821de.glb
Create a mini-Din 6 pin connector housing. Start with a base plate formed by the convex hull of two cylinders with a diameter of 6.8mm and a height of 3.5mm, positioned 22mm apart (centered at x=11 and x=-11), and a central cylinder with a diameter of 11.5mm and a height of 3.5mm. On top of this base, add a central ver...
difference(){ union(){ hull(){ translate([ 11,0,0]) cylinder(d=6.8,h=3.5,$fn=60); translate([-11,0,0]) cylinder(d=6.8,h=3.5,$fn=60); translate([ 0,0,0]) cylinder(d=11.5,h=3.5,$fn=80); } translate([ 0,0,0]) cylinder(d=11,h=12,$fn=80); } translate([ 11,0,0]) cylinder(d=3,h=15,$fn=30); translate([-11,0,0]) cylinder(...
glb/cad_39394587808b.glb
Create a Magnetic Paddle Shifter MOD for a racing wheel. Start with a central disc that is 8mm thick and 81mm in diameter, with a concentric circular hole removed from the center that is 71mm in diameter. Extend a rectangular block from the center of the disc, measuring 35mm wide, 130mm long, and 8mm thick. On one sid...
high=8; module center(){ difference(){ union(){ cylinder(h=high, d=81, center=true, $fn=90); cube([35,130,high],center=true); } cylinder(h=high, d=71, center=true, $fn=90); translate([45,0,0]) cube([20,2,high],center=true); } } module screw_lock(){ difference(){ hull(){ cube([10,12,high],cent...
glb/cad_1d20aebbfc41.glb
Create a blind plug for an Eachine E58 drone remote control consisting of three stacked, concentric cylinders aligned along a central vertical axis. Start with a wide base cylinder that is 13mm in diameter and 1.5mm in height. Centered on top of this base, place a second cylinder that is 6mm in diameter and 1.5mm in he...
translate([ 0,0,0.75]) cylinder(h=1.5,d=13, center=true, $fn=40); translate([ 0,0,2.1 ]) cylinder(h=4.2,d=4, center=true, $fn=20); translate([ 0,0,3.45]) cylinder(h=1.5,d=6, center=true, $fn=30);
glb/cad_b8b32bb5b0d8.glb
Create a Customizable Set Screw Ring by constructing a thick circular ring with a total height of 6mm and an inner diameter of 8mm. The ring's cross-section should have rounded corners with a radius of 1mm, resulting in an outer diameter of 16.6mm. First, create a cylindrical hole through the side of the ring to accom...
D_SCREW = 0; O_SCREW = 0; D_INNER = 8; W_RING = 4.3; T_RING = 6; D_NOZZLE = 0.4; R_CORNER = 1; T_XY = 0.1; T_WALL = D_NOZZLE * 1.05; T_MIN = 1; EPS = 0.01; $fn = 100; module rounded2d(r = 0) { offset(r = r) offset(r = -r) children(); } D_THREAD = [2.4, 2.9, 3.40, 4.5]; H_THREAD = [1.2, 1.6, 1.65, 2.7]; A_...
glb/cad_bb9f3a91e995.glb
Create a basic plant pot platter by constructing a wide, shallow cylinder with a radius of 68mm and a total height of 9mm. Inside this main body, carve out a smaller concentric cylindrical void to create a basin. This inner void should have a radius of 58.5mm and a height of 7mm, positioned so that its base starts 2mm ...
$fa = 1; $fs = 0.5; r = 40; platter_r = r * 1.7; inside_r = (r - 1) * 1.5; height = 9; difference() { cylinder(height,platter_r,platter_r); translate([0,0,2]) { cylinder(height,inside_r,inside_r); } }
glb/cad_55cbe4aac59a.glb
Create a basic plant pot by constructing a hollow tapered cylinder with a total height of 100mm. The outer wall should taper from a bottom diameter of 33.33mm to a top diameter of 66.67mm. The interior should be hollowed out to create a wall thickness of 2mm, leaving a solid base 1mm thick at the bottom. Within this ...
$fa = 1; $fs = 0.5; height = 100; top = height / 1.5; bottom = height / 3; tube = 7.94; difference() { cylinder(height,bottom,top); translate([0,0,1]) { cylinder(height,bottom - 2, top - 2); } translate([0,0,-1]) { cylinder(4,2,2); } translate([4,4,-1]) { cylind...
glb/cad_2ba5424874ce.glb
Create a tablet stand designed to hold a device measuring 185mm by 240mm by 9.4mm. The main structure is a supportive backrest and base. Construct the backrest as a plate with a slight 3-degree backward lean. Form the base using a leg that is 25mm wide and 3mm thick, extending 95mm forward from the backrest. Apply a ...
$fn = 100; ipad_dims = [185, 240, 9.4]; ipad_screen_offset = [18.5, 21, 0]; leg_extension = 95; leg_width = 25; bottom_thickness = 1; most_walls = bottom_thickness * 2; leg_thickness = bottom_thickness * 3; rounding = 5; difference() { union() { translate([rounding, 0, -leg_extension]) { color("red") ...
glb/cad_300c442651ce.glb
Create a cylindrical drainer with a total height of 80mm and an outer diameter of 50mm. The main body is a hollow tube with a wall thickness of 1mm, created by removing a central cylinder of 48mm in diameter. The exterior wall of the cylinder features a knurled texture consisting of a diamond-patterned grid of raised...
union(){ h=80; d=50; size=[2,3]; depth=1; e=[round(d*PI/size.x),round((h-10.5)/size.y)]; translate([0,0,0.5])intersection(){ Knurl(h=h-10.5,r=d/2+.3,size=[2,3,-depth-.5],e=e,grad=360,info=true,delta=[+0,size.y/2 -0.01],twist=0); cylinder(1000,r=d/2,center=true,$fn=e.x); } translate([0,0,h -10.001])cylind...
glb/cad_aecd0eef26c0.glb
Create a cylindrical drainer with a total height of 80mm and an outer diameter of 50mm. The main body is a hollow tube with a wall thickness of 1mm, featuring an inner cylindrical void with a diameter of 48mm. The exterior wall of the cylinder is textured with a knurled diamond pattern. This pattern consists of inter...
union(){ h=80; d=50; size=[2,3]; depth=1; e=[round(d*PI/size.x/2)*2,round((h-10.5)/size.y)]; translate([0,0,0.5])intersection(){ Knurl(h=h-10.5,r=d/2,size=[2,3,[-depth -1,depth+1]],e=e,grad=360,info=true,delta=[+0,((h-10.5)/e.y)/2-.00001],twist=0); cylinder(1000,r=d/2+depth,center=true,$fn=e.x); } transl...
glb/cad_cb02d4bbd4b4.glb
Create a Tripod Bubble Level holder by constructing a base shape that is the convex hull of two cylinders: a primary cylinder with a diameter of 52mm and a secondary cylinder with a diameter of 22mm, positioned so that the secondary cylinder's center is 36.5mm from the primary cylinder's center. Set the total height of...
head_diameter = 50; bubble_diameter = 18; height = 7; $fn=100; difference() { difference() { difference() { hull() { cylinder(height, d=head_diameter+2, true); translate([(head_diameter/2) + (bubble_diameter/2) + 2.5, 0, 0]) cylinder(height...
glb/cad_9c0b2710ecca.glb
Create a Castle Tower composed of several stacked cylindrical sections. Start with a base cylinder 15mm high with a radius of 44mm. Place a second cylinder of the same 44mm radius and 15mm height directly on top. Above this, add a main central cylinder with a reduced radius of 37.5mm and a height of 75mm. On top of the...
$fa = 0.5; $fs = 0.5; tower_s (1.0); module tower_s (scale = 1.0) { tower_v ( base_radius = 44 * scale, base_height = 15 * scale, lower_trans_height = 15 * scale, main_radius = 37.5 * scale, main_height = 75 * scale, upper_trans_height = 10 * scale, top_ra...
glb/cad_738556de9832.glb
Create a Castle Tower by stacking a series of concentric cylinders. Start with a base cylinder 60mm in diameter and 10mm high. Place a second cylinder on top of the base that transitions from a 60mm diameter down to a 50mm diameter over a height of 10mm. Above this, add a main central cylinder with a constant 50mm diam...
$fa = 0.5; $fs = 0.5; base_radius = 30; base_height = 10; lower_trans_height = 10; main_radius = 25; main_height = 50; upper_trans_height = 10; top_radius = 35; top_height = 5; slot_angle = 6; inner_radius = 31; slot_lower_height = 10; slot_upper_height = 15; translate ([0,0,0]) cylinder (base_height, base_rad...
glb/cad_ea60202237a3.glb
Create a Castle Tower by stacking a series of concentric cylinders and adding crenellations to the top. Start with a base cylinder 60mm in diameter and 10mm high. On top of this, add a 10mm high transition cylinder that tapers from a 60mm diameter at the bottom to a 50mm diameter at the top. Above that, place a main ce...
$fa = 0.5; $fs = 0.5; base_radius = 30; base_height = 10; lower_trans_height = 10; main_radius = 25; main_height = 50; upper_trans_height = 10; top_radius = 35; top_height = 5; slot_angle = 6; inner_radius = 31; slot_lower_height = 10; slot_upper_height = 15; modifier_height = 5; translate ([0,0,base_height + low...
glb/cad_595310ef39dc.glb
Create a Castle Tower by stacking a series of concentric cylinders and adding decorative crenellations to the top. Start with a base cylinder 88mm in diameter and 15mm high. On top of this, place a second cylinder 88mm in diameter and 15mm high. Above that, center a third cylinder with a diameter of 75mm and a height o...
$fa = 0.5; $fs = 0.5; base_radius = 44; base_height = 15; lower_trans_height = 15; main_radius = 37.5; main_height = 75; upper_trans_height = 10; top_radius = 50; top_height = 15; slot_angle = 6; inner_radius = 45; slot_lower_height = 10; slot_upper_height = 15; modifier_height_below = 5; modifier_height_above = 1...
glb/cad_1e9af90745a5.glb
Create a Customizable Growler Cap consisting of two separate parts: a rigid outer cap and a flexible seal insert. First, construct the outer cap as a hollow cylinder with an outer diameter of 40mm and a height of 12.1mm. Remove a smaller concentric cylinder from the center with a diameter of 37mm to create a wall thi...
$fn=200+0; type="solid"; slotL=25; slotW=3; holeDia=8; height=12.1; innerDia=37; outerDia=40; difference(){ translate([0,0,height/2]) cylinder(d=outerDia,h=height,center=true); translate([0,0,(height/2)+1]) cylinder(d=innerDia,h=height,center=true); if (type=="coin") cube([slotL,slotW,10],true); if (type=="hole")...
glb/cad_7850c68a70a7.glb
Create a power button for a laptop by constructing a tiered cylindrical assembly. Start with a base flange that is a flat cylinder 13mm in diameter and 0.45mm thick. Centered on this base, add a main cylindrical body 11mm in diameter and 2.5mm high. On top of this main body, create a hollow tube starting at a height of...
$fn=200; difference() { union() { cylinder(d=11, h=2.5); cylinder(d=13,h=0.45); rotate([0,0,75]) translate([-3.75/2,-15/2,0]) cube([3.75,15,0.45]); } translate([-0.3,-2.5,2]) cube([0.6,5,1]); difference() { translate([0,0,2]) cylinder(d=7,h=10); translate([0,0,2]) cylinder(d=6, h=10); } }
glb/cad_c195101053b9.glb
Create a charging dock for a device with an 80x10mm footprint. The main body should be a reclined cradle angled at 15 degrees. The device slot must feature a front bevel radius of 3mm and a back bevel radius of 5mm. At the front, create a lip 10mm high with a central speaker cleft 32mm wide and 6mm high. The screen o...
stripe_width = 14; device_width = 80; device_depth = 10; device_front_edge_bevel = 3; device_back_edge_bevel = 5; device_bottom_corner_radius = 8; screen_width = 72; screen_corner_radius = 5.5; port_x_offset = 0; port_y_offset = 0; port_z_offset = 1.5; plug_width = 10.7; plug_depth = 5; plug_radius = plug_...
glb/cad_1afd166f7502.glb
Create a Pinhole for Nikon Z-Mount consisting of two separate components: a bayonet ring and a pinhole disc holder. First, construct the bayonet ring. Create a hollow cylinder with an outer diameter of 51mm and an inner diameter of 47mm, and a height of 5.9mm. To form the bayonet lugs, add a larger cylinder with a dia...
$fn = 100; bigR = 100; innerD = 47; outerD = 51; bayonetD = 54; discD = 67; pinholeD = 19.2; holeD = 5; module sector(startangle, endangle) { x = cos(endangle-startangle)*bigR; y = sin(endangle-startangle)*bigR; rotate(startangle) polygon([[0,0], [-x, 0], [-x, -y]]); } module plate_couple() {...
glb/cad_5e280e7574a8.glb
Create a cross-shaped connector for 10mm square bars. Start by creating a central cube with a side length of 10.01mm. From each of the four side faces of this central cube, extend a square leg that is 30mm long. Each leg must have a square cross-section of 7.5mm by 7.5mm, centered on the face of the central cube. The r...
lengte = 30; binnenzijde = 7.5; buitenzijde = 10; wand = 1; hulplijn = 0.5; variant = 5; module poot(l, b, h) { cube([l,b,b]); color("blue")translate([0,-h,b/2-h/2]) cube([l,b+h*2,0.5]); } color("red")cube(buitenzijde+0.01); translate([buitenzijde,(buitenzijde-binnenzijde)/2,(buitenzijde-binnenzijde)/2])poot(...
glb/cad_0af7b01faabb.glb
Create a symmetrical, double-sided triangular gem. The object consists of two identical triangular pyramids joined at their base to form a diamond-like cross-section. Each side of the equilateral triangle base measures 88.9 mm. The total thickness of the gem at its center point is 88.9 mm, meaning each pyramid extends ...
side = 3.5; height = 0.7; flat_back = 0; s = side*25.4; h = height*25.4*5; module triangle() { scale([s,s,h]){ difference(){ translate([-0.5, -0.289, 0]) polyhedron( points=[[0,0,0],[1,0,0],[0.5,0.866,0],[0.5,0.289,0.25]], faces =[[0,1,2],[1,0,3],[2,1,3],[0,2,3]] ); translate([-1.5,-1.5,0.1])cube(3); } }} union(...
glb/cad_5c3dc21d9420.glb
Create a cosplay gem by constructing a scaled sphere. Resize the sphere so that its total width is 63.5 mm (2.5 inches), its total length is 76.2 mm (3 inches), and its total height is 38.1 mm (1.5 inches). Ensure the resulting shape is a smooth, symmetrical ellipsoid with these specific dimensions.
height = 1.5; width = 2.5; length = 3; flat_back = 0; cubehelp = (length + 10)*25.4; if (flat_back == 1) { difference(){ resize([width*25.4, length*25.4, height*25.4]) sphere(10); translate([-cubehelp/2, -cubehelp/2, -cubehelp]) cube(cubehelp); } } else { resize([width*25.4, length*25.4, height*25.4]) sphere(1...
glb/cad_581da6be6b96.glb
Create a rocket pod model with a total height of 62mm. The main body is a cylinder with a diameter of 5.25mm. The top of the pod is capped with a sphere that has a radius of 2.625mm, scaled vertically by a factor of 4 to create an elongated, dome-like tip. The rest of the body is a consistent cylinder extending from th...
height = 62; fins = 0; width = 27; w = (width-2)/4-1; h = height; f = fins; module fin() { difference() { cylinder(r=w/2, h = w); translate([0,0,-0.01])cylinder(r=w/2-1, h = w +0.02); translate([-w/2,0,-0.01]) cube(w + 0.02); } } translate([0,0,h-w/2*4])scale([1,1,4])sphere(w/2); difference() { cylinder(...
glb/cad_79029420194e.glb
Create a rocket pod platform consisting of two mirrored halves joined at a central axis. For each half, start with a rectangular block 27mm wide, 5mm deep, and 15mm high, positioned from x=0 to x=27, y=-4 to y=1, and z=-5 to z=10. From this block, remove a smaller rectangular section measuring 8.5mm wide, 7mm deep, and...
width = 27; module holder_half(w) { difference(){ union() { difference() { translate([0,-4,-5])cube([w,5,15]); translate([-1,-4.5,-6])cube([8.5,7,6]); } translate([w/2+12,4, 0])rotate([90,0,0])cylinder(r=w/2+2, h=8); } translate([w/2+12,5, 0])rotate([90,0,0])cylinder(r=w/2, h=10); translate([8,-5,-14])r...
glb/cad_0b6e450d972d.glb
Create a platform for a rocket pod by constructing a central base and modifying it with specific cutouts. Start by creating a solid rectangular block 9mm wide, 14mm deep, and 5mm tall, centered at coordinates (-4.5, -7, -5). Build upon this with a larger vertical structure 14mm wide, 17mm deep, and 40mm tall, positione...
module center() { translate([-4.5,-7,-5])cube ([9,14,5]); difference() { rotate([-20,0,0])difference() { translate([-7,-8.5,-3.5])cube ([14,17,40]); translate([-8, -2.5, 25])cube([16, 6, 16]); translate([-10,-27,30])rotate([-20,0,0])translate([0,0,-5])cube([20,20,30]); } translate([-10,-20,-20])cub...
glb/cad_38204a4181bd.glb
Create a Platform for Rocket Pod consisting of a central cylindrical body with a total height of 60mm and a diameter of 25mm. The main body is a cylinder with a radius of 12.5mm. At the top of the cylinder, create a circular face containing a grid of small circular holes. Along the vertical length of the cylinder, ...
height = 62; width = 27; n = height-2; w = width -2; module pod() { difference() { union() { color("dimgrey") { cylinder(r=w/2, h=n); translate([0,0,n]) difference() { cylinder(r=w/6, h=1); cylinder(r=w/6-1, h=2); } } color("RoyalBlue") { cylinder(r=w/2+1, h=n/8); translate([0,...
glb/cad_786c218672d1.glb
Create a platform for a rocket pod by constructing two stacked cylinders. First, create a base cylinder with a radius of 14mm and a height of 3mm. Directly on top of this base, center and place a second cylinder with a radius of 12mm and a height of 3mm. Finally, carve a square hole through the center of the entire ass...
difference() { union() { cylinder (h = 3, r = 14); translate ([0,0,3]) cylinder (h = 3, r = 12); } translate([-5,-7.5,-1])cube ([10,15,8]); }
glb/cad_721211c95cb6.glb
Create a tank door for wargaming by starting with a rectangular base plate measuring 30.5mm by 24mm with a thickness of 1.4mm. Scale the entire object by a factor of 0.98. To shape the door, remove four small cubes from the corners, each measuring 5mm and rotated 45 degrees, to create chamfered edges. Additionally, rem...
image_file = "icon.dat"; emblem_bevel_scale = 1; module door(scale) scale([scale, scale, scale]){ { rotate([0,0,90]) { difference() { cube([30.5,24,1.4]); translate([-4.5,0,-1])rotate([0,0,-45])cube(5); translate([-4.5,24,-1])rotate([0,0,-45])cube(5); translate([28,24,-1])rotate([0,0,-45])cube(5); translate([28,...
glb/cad_d4958d38d97e.glb
Create a Darth Nihilus lightsaber hilt composed of three main sections: a head, a central body, and a tail. Start with the head, a cylinder 43mm high and 40mm in diameter. Remove a central core 37mm in diameter from the bottom, leaving a 3mm base, and carve an internal metric thread 33mm in diameter with a 3.5mm pitc...
use <threads.scad>; fw = 30; fl = 120; ol = 20; union() { color("blue") difference() { cylinder(h=43,d=40); cylinder(h=3,d=37); translate([0,0, 3]) metric_thread(33,3.5,40, internal=1); } translate([0,0,fl+45]) difference() { union() { color("blue") cylinder(h=5,d=40); translate([0,0,5]) cyl...
glb/cad_d4cc1abb7bc1.glb
Create a Darth Nihilus Lightsaber hilt consisting of three main sections: a head, a body, and a tail. For the tail section, create a cylinder with a diameter of 35mm and a height of 50mm. Within this cylinder, remove a central core by subtracting a smaller cylinder with a diameter of 32mm and a height of 40mm. Addition...
use <threads.scad>; fs = 15; module tail(n) { difference() { union() { metric_thread(33,3.5,25); translate([0,0,25]) color("blue") cylinder(h=3,d=40); translate([0,0,28]) { color("blue") rotate ([0,0,180]) difference() { cylinder(h=50,d=32); translate([-25, 32/2, 3])rotate([40,0,0]...
glb/cad_25eaf5853761.glb
Create a Darth Nihilus lightsaber hilt head by constructing a series of stacked, concentric cylinders with a central hollow bore. Start with a base cylinder 49mm in diameter and 3mm high. On top of this, add a frustum 5mm high that tapers from a 50mm base diameter down to 40mm. Above that, place a 5mm high cylinder wit...
use <threads.scad>; $fn = 72; bd = 25.3; bi = 70; module head(bd, bi) difference() { union() { cylinder(h=3,d=49); translate([0,0, 3]) cylinder(h=5,d1=50,d2=40); translate([0,0, 8]) cylinder(h=5,d =40); translate([0,0,13]) cylinder(h=5,d =37); translate([0,0,18]) cylinder(h=bi - 61,d =34); translate(...
glb/cad_3327a07083dd.glb
Create a Meltagun model consisting of a main body and a barrel assembly. Start with the barrel: create a cylinder with a radius of 9.5mm and a height of 48mm. From this cylinder, remove four rectangular slots of 40mm by 10mm by 4mm. Position two of these slots parallel to each other and two others rotated 35 degrees ...
$fn = 70; bodywidth = 24; module barrelslot () { color("lightgray") translate([-20,2,0]) rotate([90,0,0]) cube([40,10,4]); } module heatslot () { color("gray") { cylinder(r=2, h=4); translate([-2,-16,0]) cube([4,16,4]); translate([-2,-16,-16]) cube([4,4,17]); } } module backslot () { color("lightgray") ...
glb/cad_fe1f9257916d.glb
Create a Rocket Pod launcher consisting of a main cylindrical body with a total height of 60mm and a diameter of 25mm. The primary structure is a cylinder of these dimensions, but it is modified by several concentric rings and cutouts. At the top of the pod, create a circular face containing a grid of small circular ...
height = 62; width = 27; n = height-2; w = width -2; difference() { union() { color("dimgrey") { cylinder(r=w/2, h=n); translate([0,0,n]) difference() { cylinder(r=w/6, h=1); cylinder(r=w/6-1, h=2); } } color("RoyalBlue") { cylinder(r=w/2+1, h=n/8); translate([0,0,n/4]) cylinde...
glb/cad_2808b7bfdda8.glb