Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a stadium foot bracket for a Pez dispenser shelf. Start by creating a central rectangular block that is 20mm wide, 40mm deep, and 3.5mm thick. Position a second identical rectangular block of 20mm by 40mm by 3.5mm directly below the first one, leaving a small gap between them. In the center of these two bloc...
holder_count = 7; shelf_plate_thickness = 3.5; shelf_width = 40*holder_count - shelf_plate_thickness; shelf_depth = 40; shelf_holder_offset = 0; pez_hole_spacing = 40; pez_hole_start_offset = 10; stem_hole_width = 12.8; stem_hole_depth = 21.3; stem_hole_height = 8; stem_hole_wall_thickness = 2.25; stem_ridge_depth = ...
glb/cad_8993a5f11f1c.glb
Create a customizable squeeze bottle lid by constructing a hollow, tapered cylindrical shell. The main body should have a total height of 21.6mm. The outer shape is a truncated cone that tapers from a base diameter of 11.35mm up to a top diameter of 8.7mm. The interior is hollowed out by a concentric truncated cone wit...
top_od = 4.5; one_cm_od = 7.15 ; top_id = 2.3; wall_thickness = 1.6; height = 20; compensation_factor = 0.2; cf = compensation_factor*1; slope = (one_cm_od-top_od)/10; translate([0,0,height+wall_thickness]) rotate([0, 180, 0]) union() { difference() { cylinder(h=height+wall_thickness,d1=top_od+cf+slope*height...
glb/cad_da184037fea2.glb
Create an antenna mounting part consisting of a flat rectangular base with a central cylindrical support. The base is a rectangular slab measuring 25.4mm in width, 25.4mm in length, and 4mm in height. Center a vertical cylinder on this base with a radius of 7.9375mm and a total height of 25.4mm, such that the cylinder ...
blocky = 1 * 25.4; support = 25.4* 5/16/2; baseh = 4; blockh=baseh; wall = 3; screwoff = 0.5 * 25.4; tol=0.05; screw = 6.3; supp=support+wall; supzoff = blockh/2; blockx = screwoff*4 + supp*2; rotate([90,0,0]) difference() { union(){ translate([-blockx/2,0,0]) cube([blockx,blocky,baseh]); translate([0,0,...
glb/cad_e48369f0d721.glb
Create an antenna mounting part starting with a base plate that is 12.7mm wide and 3.175mm thick. The base plate should have an overall length of approximately 73.02mm, consisting of a central rectangular section with semi-circular ends. At one end, create a circular hole with a radius of 2.54mm centered within the wid...
function inch(f) = f*25.4; width = inch(0.50); slotlen = inch(2.5); slotw = inch(0.2); holer = inch(0.2)/2; thick = inch(0.125); ridgew = inch(0.1); ridgeh = inch(0.07); wall = (width - slotw) / 2; length = slotlen + wall*3 + holer*2; tol = 0.05; echo ("length=",length); module oval(x,y,z) { translate([y/2, -y/2,0]...
glb/cad_4fbb8931a1fc.glb
Create an antenna spreader part with a total height of 5mm. The main body is a rectangular block 40.92mm long, 2mm thick, and 5mm high, centered along the X-axis. At each end of this central block, create a symmetrical holder assembly. Each holder consists of a rectangular outer section 7.39mm long and 5.4mm wide. Wit...
$fa = 5; $fs = 0.35; tol=0.05; wired = 3.58 + 0.5; wall = 2; spread = 2 * 25.4; height = 5; gapratio = 0.5; tip = wired*1.5; zipd = 1; zipw = 2.5; zipoff = tip-zipw-wired/2; gap=gapratio * wired; len = spread + tip*2 + wired; tiplen = tip*2+wired/2; tipinside = tiplen-wall-wired/4; tipoutside = gap/2+wall; h2 = he...
glb/cad_2ae797054e6d.glb
Create a mounting spacer for a stereo by starting with a rectangular block 90mm long, 13mm wide, and 45mm high. Carve a horizontal slot through the entire 90mm length of the block to allow for wires; this slot should be 10mm wide and 2mm high, positioned 3mm from the bottom. Additionally, remove a section from the bo...
spacer_height = 45; screw_head_radius = 4; screw_radius = 2; screw_length = 10; head_hole_height = spacer_height - screw_length; difference() { difference() { difference() { difference() { difference() { cube(size = [90, 13, spacer_height]); translate(v = [0, 0, 3]) { cube(size = [90, 10, ...
glb/cad_d3dbddbb13c9.glb
Create a Printi3 Hotend Mount consisting of a flat rectangular base plate and a central cylindrical mounting bracket. The base plate is 61mm wide, 2mm thick, and 14mm deep. Position four 3mm diameter holes through the plate: two on the left side and two on the right side, each spaced 5mm apart and centered 4mm from t...
plastic_thickness = 2; screw_diameter = 3; screw_cap_diameter = 6; mounting_hole_d = 3; head_r = 8.5; difference() { cube([55 + plastic_thickness*3 + mounting_hole_d * 2, plastic_thickness, plastic_thickness*4 + mounting_hole_d*2]); translate([plastic_thickness*1.5 + mounting_hole_d / 2, plastic_thicknes...
glb/cad_5c39aba856a2.glb
Create a Topre keycap model. Start with a bottom base that is a rectangular block 18mm wide by 18mm long with a height of 0.01mm and rounded corners with a 1.5mm radius. Build a top base by creating a hull between the bottom base and a second rectangular base. This second base has a width of 11.8mm and a rotated length...
$fn = 100; base_radius = 1.5; key_thickness = 1.2; top_base_extrusion_height = 0.01; bottom_base_extrusion_height = 0.01; connector_radius = 2.94; connector_height = -0.57; connector_thickness = 1.2; connector_support_height = 4; connector_middle_space = 1.5; row_dimensions = [ [10.4, 10, 13.7, 11.5], [8, 8.7, 13...
glb/cad_01800edbe0d8.glb
Create a flexible wristband for a watch with a 17mm strap width, consisting of three main parts: a tongue band, a buckle band, and a hold sleeve. First, create the tongue band as a rectangular strap 16mm wide and 1.6mm thick, with a length of 90mm. At one end, integrate a cylinder with a radius of 1.6mm and a height o...
$fn=32; tongue_length=90; buckle_length=75; strap_width=16; strap_thickness=1.6; module trapezoid(width_base, width_top,height,thickness) { linear_extrude(height = thickness) polygon(points=[[0,0],[width_base,0],[width_base-(width_base-width_top)/2,height],[(width_base-width_top)/2,height]], paths=[[0,1,2,3]]); ...
glb/cad_e81913835928.glb
Create a spacer for a filament spool holder by constructing a hollow cylinder. The outer shell should be a cylinder with a radius of 6mm and a total height of 33mm. Remove a concentric inner cylindrical hole with a radius of 4.25mm and a height of 35mm, positioned so that it extends 1mm beyond the bottom and top faces ...
Spool_width=51; Bearing_width=5; Number_of_bearings=4; A=10*1; B=3*1; Spacer_width=(Spool_width+2)-(Number_of_bearings*Bearing_width)-(2*B); Rod_length=(Spacer_width); difference() { cylinder(r=12/2, h=Spacer_width); translate([0,0,-1]) cylinder(r=8.5/2, h=Spacer_width+2); }
glb/cad_7f12d3b578fd.glb
Create a rectangular building shell with walls featuring horizontal siding. The structure consists of four walls: a front and back wall each 80mm long, and two side walls each 50mm long. All walls are 40mm high and 2mm thick. Construct each wall by stacking 10 horizontal siding planks, each 4mm high. Each plank shoul...
module sidingwall(wallheight,sidingheight,length,thickness, miter) { a=ceil(wallheight/sidingheight); difference() { for (i = [1:1:a]) { translate([0,0,i*sidingheight]) rotate([180,0,0]) union() { cube([length,thickness,sidingheight]); rotate([350,0,0]) cube([length,thickness,sidin...
glb/cad_b2e641dfdd4a.glb
Create a low-resolution cylinder with a height of 10mm and a diameter of 30mm, using only 30 facets for its circumference. Centered vertically and horizontally through this shape, remove a smaller concentric cylinder with a diameter of 5mm and a height of 10mm to create a hollow circular hole passing completely through...
difference (){ cylinder (10,30,30); cylinder(10,5,5);}
glb/cad_aa54a87aa621.glb
Create a Shaft Encoder Wheel by starting with a thin cylinder that has a radius of 11.5mm, a height of 2mm, and a 45-facet resolution. Remove a central cross-shaped void by centering and subtracting two intersecting rectangular prisms: one measuring 5.2mm by 1.9mm by 10mm, and another measuring 1.9mm by 5.2mm by 10mm, ...
difference() { cylinder(h = 2, r=11.5, $fn=45); for ( angle = [0:60:360] ) { rotate([0,0,angle]) translate([0,8.19,-2]) cylinder(h = 8, r=2.25, $fn=45); } cube([5.2,1.9,10],center=true); cube([1.9,5.2,10],center=true); }
glb/cad_a1762c3b1668.glb
Create a pyramid puzzle consisting of a grid of spheres connected by cylinders. Arrange 20 spheres with a radius of 5mm in a 5x4 rectangular grid, spaced 10mm apart from center to center. Connect these spheres using two different sizes of cylinders. First, create strong connections using cylinders with a radius of 1....
s=1.5; w=0.1; union(){ for(x=[0:4]){ for(y=[0:3]){ translate([10*x,10*y,0]) sphere(r=5); } } for(x=[0,4]){ translate([x*10,0,0]) rotate([-90,0,0]) cylinder(h=10*3,r=s); } for(y=[0:3]){ translate([10,y*10,0]) rotate([-90,0,-90]) cylinder(h=5*4,r=s); } for(x=[1:3]){ for(y=[0,2]){ translate(...
glb/cad_6589ffa3505c.glb
Create a Cube Gear assembly consisting of a central cube and two bevel gears. First, create the center block by starting with a cube of 30mm edges. Modify this cube by intersecting it with two rotated versions of itself (one rotated 120 degrees and another rotated 90 degrees on the X-axis) to create a faceted core. R...
use <MCAD/involute_gears.scad> use <write/Write.scad> choose(i=object); object=1; type=1; size=30; tol=0.5; gap=2; Backlash=0.5; word1=""; word2=""; word3=""; fontsize=6; Font = "write/Letters.dxf"; use <utils/build_plate.scad> build_plate_selector = 0; build_plate_manual_x = 100; build_plate_manual_y =...
glb/cad_39b6444824e2.glb
Create an Office Breaktime Kit consisting of the following six geometric elements: First, create a half-sphere with a radius of 30mm. Remove a central vertical cylindrical hole with a radius of 5mm and flatten the top surface slightly by removing a small cylindrical slice from the peak so it can sit stably. Second, c...
STICK_RADIUS = 5; HOLE_RADIUS = 5; SPHERE_RADIUS = 30; WHEEL_RADIUS = 30; WHEEL_HEIGHT = 15; STICK_SLIM_RADIUS = 4.5; STICK_SHORT_HEIGHT = 30; STICK_LONG_HEIGHT = 60 ; BEAM_LENGTH = 150; BEAM_WIDTH = 15; echo ("STICK_RADIUS=", STICK_RADIUS); echo ("HOLE_RADIUS=", HOLE_RADIUS); echo ("SPHERE_RADIUS=", SPHERE_R...
glb/cad_0e8a87889651.glb
Create a door number sign featuring the digits " 308 " in a sans-serif font. The text should be 40mm in size and extruded to a height of 4mm. This text is mounted upon a rectangular base measuring 53mm in length, 3.5mm in width, and 2mm in height, which is positioned to start 36mm from the left edge of the overall asse...
difference(){ union(){ translate([36,0,0]) cube(size=[53, 3.5, 2], center=false); content = " 308 "; font = "Liberation Sans"; translate ([2,0,0]) { linear_extrude(height = 4) { text(content, font = font, size = 40); } } } union(){ translate([36,1.65,0]) cylind...
glb/cad_a9010eab4d88.glb
Create a soap bubble box consisting of a hollowed cylindrical container with a small rectangular cutout. Start by creating a solid cylinder with a radius of 1.9mm and a height of 3mm. From this main body, remove a smaller concentric cylinder with a radius of 1.5mm and a height of 4mm, starting from a height of 1mm, to ...
$fn=100; union() { difference() { cylinder(3,1.9,1.9); translate([0,0,1]) cylinder(4,1.5,1.5); translate([-0.275,-0.225,0.5]) cube([0.55,0.45,1]); translate([0,0,2]) cylinder(4,1.7,1.7); } }
glb/cad_3b9a2f68ec78.glb
Create a soap bubble box by constructing two concentric cylinders. First, create a main outer cylinder with a height of 7.5mm and a radius of 1.9mm. Directly on top of this, add a second, shorter cylinder with a height of 1mm and a radius of 1.7mm, centered on the same axis. Finally, carve out a central hole through th...
$fn=100; difference() { union() { cylinder(7.5,1.9,1.9); cylinder(8.5,1.7,1.7); } translate([0,0,0.5]) cylinder(9,1.5,1.5); }
glb/cad_b3acd60d5805.glb
Create a soap bubble box wand consisting of a circular ring attached to a rectangular handle. Start by creating a ring with an outer diameter of 1.2mm and a height of 1.2mm, then remove a concentric inner cylinder with a diameter of 0.8mm and a height of 2.2mm to create the hole. Scale the entire resulting ring shape b...
$fn=100; scale([1.5,1,1]) difference() { cylinder(0.4,1.2,1.2); translate([0,0,-1]) cylinder(6,0.8,0.8); } translate([1.7,-0.25,0]) cube([5,0.5,0.4]);
glb/cad_241e9df3ff27.glb
Create a GoPro Hero Macro Lens Mount by constructing a thick circular ring with a total height of 7mm. Start with a main outer cylinder that has a radius of 27.5mm and a height of 7mm. From the top surface, remove a central cylindrical core with a radius of 25.75mm and a height that extends through the top of the model...
lensDepth = 2; goProDepth = 5; lensWidth = 51.5; goProWidth = 23; margin = 2; difference(){ cylinder(lensDepth+goProDepth, r=lensWidth/2+margin, $fn=100); translate([0,0,goProDepth]) cylinder(h=200, r=lensWidth/2, $fn=100); translate([0,0,-1]) cylinder(h=200, r=goProWidth/2, $fn=100); }
glb/cad_1062661fde69.glb
Create a Tiny Toy Dump Truck. Start with a rectangular chassis body measuring 36mm in width and 46mm in length, elevated 2mm above the axles. At the front and rear of the chassis, position two axle assemblies. The front axle is a simple rod of 6mm diameter and 12mm length. The rear axle is a cam assembly: it includes...
wheel_dia=15; wheel_flat_thickness=3; wheel_conic_dist=0; wheel_base_dist=20; wheel_cutout_extra=1.5; axle_cutout=0.75; axle_dia=6; axle_len=12; body_lift=2; bed_axle_dia=3; bed_axle_cutout=1; bed_axle_bearing_extra=1; bed_height=10; bed_len=20; bed_wall=2.5; bed_axle_bearing_wall=1; bed_bearing_cutout=1; cab_sep=1; ca...
glb/cad_7744ee81a5a8.glb
Create a shingled roof model consisting of two identical rectangular panels joined at a 45-degree angle. Each panel is 80mm long, 40mm high, and 1mm thick. The surface of each panel is composed of overlapping shingle rows, where each shingle is 10mm long and 4mm high. The shingles are arranged in alternating offset row...
module shingleroof(length, height,thickness, shinglelength, shingleheight) { a=ceil(height/shingleheight); b=ceil(length/shinglelength); gap = shinglelength / 10; angle = 350; rotate([270,0,0]) union() { for (i = [0:1:a-1]) { rem = i % 2; soff = rem ? 0 : shinglelength /2; difference() { translat...
glb/cad_e3fefca82410.glb
Create a thumb wheel for an M3 nut. Start by creating a base consisting of 16 overlapping hexagonal prisms, each with a radius of 13mm and a height of 3mm, rotated every 22.5 degrees around the center to form a gear-like outer edge. In the center of this base, add a truncated cone that is 6mm tall, tapering from a bott...
difference() { difference() { union() { for (i = [0 : 22.5 : 360]) { rotate([0, 0, i]) cylinder($fn=6, r=13, h=3); } difference() { cylinder(r1=10, r2=6, $fn=50, h=6); translate([0,0,-10]) cylinder(h=10, r=10, $f...
glb/cad_2b2d84be4fbe.glb
Create a finger splint consisting of a hollow cylindrical ring with a specific open-profile geometry. The ring should have an inner diameter of 18mm and a wall thickness of 2mm, resulting in an outer diameter of 22mm. The total height of the cylinder is 49mm. To create the open-profile shape, intersect the cylinder wi...
InnerDiameterOfSplint = 18; ThicknessOfASplint=2; module param(){} ExternalDiameterOfSplint=InnerDiameterOfSplint+ThicknessOfASplint; LengthOfASplint=2*ExternalDiameterOfSplint+5; y=LengthOfASplint; x=2*ExternalDiameterOfSplint/3; UpperCubeLength = ExternalDiameterOfSplint/3; $fa=0.5; $fn=200; r=(exp(ln(y)*2)) / (8*...
glb/cad_360e1a742d95.glb
Create a Kossel Carriage for a Switchfector V3. Start with a base rectangular plate measuring 49mm by 60mm with a height of 8mm and rounded corners with a 5mm radius. Subtract three vertical cylindrical holes to accommodate rods: two positioned at the corners of one side and one centered on the opposite edge, each wi...
use <CarriageSupport.scad>; use <MCAD/nuts_and_bolts.scad>; hori = 39; verti = 50; fn_cercles=50; armspace = 50; extra_radius = 0.4; m3_nut_od = 6.1; m3_nut_radius = m3_nut_od/2 + 0.2 + extra_radius; m3_washer_radius = 3.5 + extra_radius; m3_major = 2.85; m3_radius = m3_major/2 + extra_radius; m3_wide_radius = m3_m...
glb/cad_7c3443bee392.glb
Create a Kossel carriage for a Switchfector V3. Start with a main rectangular body measuring 18mm wide, 38mm long, and 4mm thick. On the top surface, create two parallel belt channels. Each channel is 5mm wide and 7mm deep, positioned symmetrically at x = -5.6mm and x = 5.6mm. Within these channels, incorporate a ser...
extra_radius = 0.4; m3_nut_od = 6.1; m3_nut_radius = m3_nut_od/2 + 0.2 + extra_radius; m3_washer_radius = 3.5 + extra_radius; m3_major = 2.85; m3_radius = m3_major/2 + extra_radius; m3_wide_radius = m3_major/2 + extra_radius + 0.2; separation = 50; thickness = 4; horn_thickness = 13; horn_x = 8; belt_width = 5; be...
glb/cad_0931ac37933f.glb
Create a small gear for a 3D laser scanner turntable. Start by creating a gear with 10 teeth, a circular pitch of 268mm, and a gear thickness of 10mm. The gear should have a bore diameter of 5mm and a hub diameter of 20mm with a hub thickness of 17mm. Position the gear so that its center is at [0, 0, 17]. To finalize ...
include <spinscan_turntable.inc> include <../MCAD/teardrop.scad> include <../MCAD/involute_gears.scad> echo("Top Spoke Length (4): ", spoke_length_top); echo("Bottom Spoke Length (4): ", spoke_length_bottom); echo("Hub Diameter: ", hub_diameter); echo("Hub Height: ", hub_height+hub_thickness); echo("Gear Height: ", ge...
glb/cad_f949cba878be.glb
Create a Backpack Strap Clip with a total length of 10mm, a total width of 29mm, and a base thickness of 1.5mm. The clip is a hollowed rectangular sleeve designed to hold a strap. Construct the outer walls by placing two parallel vertical walls, each 1.5mm thick, running the full 10mm length. These walls should be sepa...
length=10; width=29; wall_thickness=1.5; gap_height=2.75; clip_entrance_width=width/2-5; cube([length,width,wall_thickness]); translate([0,0,wall_thickness]) cube([length,wall_thickness,gap_height+wall_thickness]); translate([0,width-wall_thickness,wall_thickness]) cube([length,wall_thickness,gap_height+wall_...
glb/cad_59333736b8ad.glb
Create a Modified PrusaCarriageBeltClamp by starting with a solid rectangular block measuring 22mm in length, 10mm in width, and 4mm in height. Remove two vertical holes from this block to create mounting points. Each hole must be a 9-sided polygonal prism with a diameter of 3mm. Position the first hole centered 4mm fr...
include <configuration.scad> module beltclamp(){ difference(){ cube([22,10,4]); translate(v = [4, 5, 0]){ cylinder(h=10, r=m3_diameter/2, $fn=9, center=true); translate(v = [14, 0, 0]) cylinder(h=10, r=m3_diameter/2, $fn=9, center=true); }} } beltclamp();
glb/cad_b5f3fa436484.glb
Create a dragonfly sculpture by constructing a long, slender body with a decorative head. Start by forming the main shaft as a tapered cylinder 125mm in length, with a radius of 3.5mm at the base increasing to 6mm at the top. Add a second, shorter cylinder 10mm long with a constant 6mm radius centered at the top of the...
$fn=60; module dragonfly(){ translate([0,0,0])intersection(){ linear_extrude(height=6)import(file="Downloads/dragonfly.dxf",layer="noname5"); translate([0,200,0])rotate([90,0,0])linear_extrude(height=200)import(file="Downloads/dragonfly.dxf",layer="noname6"); } translate([0,135,0])rotate([-90,0,0])cylinder(h=20,r1=6,r2...
glb/cad_ec9279fda3f5.glb
Create a filament spool holder consisting of three distinct flat components, each 6.5mm thick. First, create a spindle profile. This shape starts with a central rectangle 34mm wide and 80mm tall. Add a semi-circle with a 34mm diameter to the top. At the bottom, add a horizontal lip 44mm wide and 5mm thick. Below this...
part = "all"; spool_hole_diameter_mm = 38; spool_height_mm = 80; spool_clearance_mm = 2; fit_tolerance_mm = 0.1; mount_inner_diameter_mm = 14; mount_outer_diameter_mm = 24; wood_thickness_mm = 6.5; base_overhang_mm = 30; lower_notch_depth_mm = 55; lip_mm ...
glb/cad_2be7b797b440.glb
Create a KP001 bearing holder. Start with a rectangular base plate measuring 67mm in length, 16mm in width, and 6mm in height. Centered along the length and width of this base, construct a cylindrical housing to hold a bearing. This housing consists of a larger outer cylinder with a diameter of 42mm and a height of 18m...
A=16; H=18; L=67; J=53; H1=6; bdia=32; hdia=6; wth=5; rotate([90,0,0]) { translate([(L-bdia)/2-wth,0,0]) cube([wth,A,H]); translate([(L+bdia)/2,0,0]) cube([wth,A,H]); difference() { cube([L,A,H1]); translate([(L-J)/2,A/2,0]) cylinder(h=H1,d=hdia,$fn=50); translate([(L+J)/2,A/2,0]) cylinder(h=H1,d=hdia,$fn=50); tran...
glb/cad_e3aa30634929.glb
Create a bed nut holder by starting with a solid rectangular block measuring 17mm in length, 10mm in width, and 14.5mm in height. Orient the block so the 10mm x 14.5mm face is the front. Carve out a large rectangular section from the top front to create a stepped profile. First, remove a block 13.5mm deep, 10mm wide,...
x_origin = 0; y_origin = 0; z_origin = 0; x_long_inset = 13.5; x_riser = 3.5; x_length = x_long_inset + x_riser; x_overhang = 3; z_base = 5; z_riser = 7; z_top = 2.5; z_height = z_base + z_riser + z_top; y_constant = 10; x_hole_offset = 5.0; y_hole_offset = y_constant / 2; M3_adjustment = 0.75; M4_adjustment = 0.75; ...
glb/cad_7d75a424d7f1.glb
Create an LED light bar by starting with a cylinder 180mm long with a diameter of 20mm. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a radius of 6mm. To create a flat mounting surface, remove a rectangular section from the side of the main cylinder that is 10mm wide and runs the...
diameter = 20; length = 180; LED_Count = 6; ledRotation = 45; ledDiam = 5; ledDiam2 = 6; ledLen = 8.76; module led() { color("red") { sphere(r=ledDiam/2, $fn=25); cylinder(h=ledLen-(ledDiam/2), r=ledDiam/2, $fn=25); translate([0, 0, ledLen-(ledDiam/2)-1]) cylinder(h=1, r=ledDiam2/2, $fn=25); } translate([0, 1...
glb/cad_c0707382542a.glb
Create a windshield gear for a Honda ST1300 Pan European. Start with a base cylinder 25.8mm in diameter and 8.5mm high. On top of this base, center a second cylinder with a diameter of 17mm and a height of 3.8mm. Above that, add a third cylinder acting as an axis, 6mm in diameter and 5mm high. At the center of the bas...
include <MCAD/involute_gears.scad> $fn=90; d1=25.8; d2=17; d3=6; d4=6; dz=13; h1=8.5; h2=3.8; h3=5; h4=12.7; hz=19.89; ha = 6.55; module Zahnrad_aussen () { linear_extrude (height = hz, twist = 48, slices = 10) { gear(number_of_teeth=15, circular_pitch=145, gear_thickness=0.1, hub_thickness=0, bore_diameter...
glb/cad_2ea4f01efa5b.glb
Create a Shadow Box by constructing a large cube with a side length of 20mm, centered at the origin. From this solid cube, remove a smaller concentric cube with a side length of 10mm to create a hollow interior. To open the box, remove a rectangular slab from the top face that is 20mm wide and 20mm deep, but only 4mm t...
Top = [[[-5.2,5.2],[5.2,5.2],[5.2,-5.2],[-5.2,-5.2],[-2,2],[2,2],[2,-2],[-2,-2]],[[0,1,2,3],[4,5,6,7]]]; Front = [[[-5.1,5.1],[5.1,5.1],[5.1,-5.1],[-5.1,-5.1],[-1,1],[2,2],[1,-1],[-2,-2]],[[0,1,2,3],[4,5,6,7]]]; Right = [[[-5,5],[5,5],[5,-5],[-5,-5],[-2,2],[0,1],[2,2],[1,0],[2,-2],[0,-1],[-2,-2],[-1,0]],[[0,1,2,3],[4...
glb/cad_16ceee20204e.glb
Create a socket adaptor pen consisting of a main shaft and a nib section. Construct the shaft as a cylinder 70mm long with an outer diameter of 6mm and a concentric inner hole 3.5mm in diameter running the full length. At the top of this shaft, remove a small rectangular notch measuring 8.5mm by 1.5mm by 10mm. Attach a...
$fn=100; module shaft() { difference() { cylinder(70,6,6); cylinder(70,3.5,3.5); translate([-4.25,-0.5,60]) cube([8.5,1.5,10]); } } module nib() { difference() { cylinder(22,2.5,6); cylinder(22,2,2); } } module penCase() { union() { shaft(); translate([0,0,-21.9]) nib(); } } modul...
glb/cad_ff9b1153ed95.glb
Create a Perf Board Hook for Magnetic Strip consisting of two identical mirrored components. For one component, start with a solid base block measuring 13mm by 13mm by 6mm. On top of this base, center a vertical rectangular pillar measuring 9.2mm by 9.2mm with a height of 25mm. Carve a square hole measuring 4mm by 4mm ...
end(); translate([0,27,0])mirror([0,1,0])end(); module end(){ difference(){ translate([1.85,1.85,6]) cube([9.2,9.2,25]); translate([1.75+2.5,1.75+2.5,6]) cube([4,4,26]); translate([1.75+1.5-2,1.75+1.5+2,22]) cube([10,2,26]); } cube([13,13,6]); translate([-(26-13)/2,0,0]) cube([41,6,6]); translate...
glb/cad_e577f0d785da.glb
Create a BladeKey key organizer. The main body is a hollowed-out sleeve designed to hold a bundle of keys. Start with a base plate that is 3mm thick, 20mm wide, and has a length based on the longest key (68mm). The base should have small circular cut-outs at the front and back. Construct two side walls, each 6.5mm ...
include <roundCornersCube.scad> include <__Keys/kw1.scad> WIDTH = 20; LENGTH = 68; THICK = 3; body_height = 13; body_keyhead_length = 27; body_keyblade_length = LENGTH - body_keyhead_length; body_rounding_radius = body_height / 3; logo_dxf_width = 20; logo_dxf_height = 5; logo_dxf_thick = 0.75; ziptie_head_x = 4.7...
glb/cad_c38b7d46cc80.glb
Create a filament box fitting consisting of a circular base and a central hollow cylinder. Start by creating a flat circular disc with a diameter of 31mm and a height of 2mm. Centered on this disc, add a hollow vertical cylinder with an outer diameter of 15.5mm and a height of 15mm. This cylinder must have a concentric...
$fn = 100; filament = 1.25; sponge = 7; disc = 15.5; screw = 1.75; difference() { union() { cylinder(15, sponge+1, sponge+1); cylinder(2, disc, disc); } translate([0,0,5]) cylinder(20, sponge, sponge); cylinder(25, filament, filament); translate([0,11.5,0]) cylinder(20, screw, screw); translate([8.7...
glb/cad_eca6e9a7b49d.glb
Create a filament center adaptor consisting of a tiered cylindrical shape with a central hole. Start by creating a wide base cylinder with a diameter of 34.2mm and a height of 2mm. On top of this base, add a second cylinder with a height of 10mm and a diameter of 29.2mm. Finally, remove a central cylindrical hole with ...
$fn=100; pole = 15; filament = 29.2; difference() { union() { cylinder(2,filament+5,filament+5); cylinder(10, filament, filament - 5); } cylinder(10,pole,pole); }
glb/cad_bfc519e1a22b.glb
Create a filament pole holder consisting of a circular base and a vertical cylindrical sleeve. Start by creating a flat circular disc with a diameter of 26mm and a height of 2mm. Centered on this disc, add a vertical cylinder with an outer diameter of 16.5mm and a height of 20mm. This vertical cylinder must be hollowed...
$fn = 100; pole = 14; disc = 26; screw = 1.75; difference() { union() { cylinder(20, pole+2.5, pole+2.5); cylinder(2, disc, disc); } translate([0,0,3])cylinder(20, pole, pole); translate([0,21,0]) cylinder(20, screw, screw); translate([15.5,-15.5,0]) cylinder(20, screw, screw); translate([-15.5,-15.5...
glb/cad_a1bb74c80c41.glb
Create a Metcal MX Series Soldering Tip Holder by starting with a rectangular block measuring 80mm in length, 40mm in width, and 24mm in height. Within this block, create a grid of 30 vertical holes arranged in 3 rows of 10. Position the center of these holes at 10mm intervals, with the first hole centered 5mm from the...
difference() { translate ([0,0,12]) cube([80,40,24], center=true); for (j=[-1:2]) {for (i=[-4:5]) { translate([10*i-5,10*j-5,2])cylinder(h = 13, d=4.4, center = false, $fn=20); translate([10*i-5,10*j-5,14])cylinder(h = 1.1, d2=5.6, d1=4.4, center = false, $fn=20); translate([10*i-5,10*j-5,15])cylinder(h = 9, d=5.6, cen...
glb/cad_21cbeef38dda.glb
Create a Watering Can Conversion lid by starting with a main cylinder that is 10mm high with a diameter of 23mm. Hollow out the center of this cylinder by removing a smaller cylinder with a diameter of 21mm and a height of 14mm, starting from 2mm above the base, to create a shallow cup. Within the remaining 2mm thick b...
difference () { cylinder(10,23,23); translate( [0, 0, 2] )cylinder(14,21,21); cylinder(15,2,2); translate( [0, 11, 0] )cylinder(2,2,2); translate( [0, -11, 0] )cylinder(2,2,2); translate( [16, 0, 0] )cylinder(2,2,2); translate( [-16, 0, 0] )cylinder(2,2,2); translate( [8, 16, 0] )cylinder(2,2,2); translate( [8, -16, 0]...
glb/cad_4cd6f975a13a.glb
Create a GT2 Belt Pulley Axle and washer assembly consisting of a central post and two washers. First, construct the main axle post by creating a cylinder with a radius of 3.75mm and a total height of 15.75mm. At the base of this post, add a wider cylindrical section with a radius of 6mm and a height of 2mm. Remove a c...
$fn=64; tol=0.25; wh=2; post(2); module post(sh=4) { sh=sh+2; translate([0,0,sh+7]) mirror([0,0,1]) difference(){ intersection() { union() { cylinder(r=8/2-tol/4,h=sh+wh+5+tol); translate([0,0,sh+7+tol-(sh-wh)]) cylinder(r=12/2,h=sh-wh); } translate([0,0,-wh-tol]) cylinder(r1=1,r2=sh+7+t...
glb/cad_0f1f8b82ab0f.glb
Create a Parametric OpenSCAD Base for Intel 5th Generation NUC. Start by constructing a lipped box with a width of 115mm, depth of 111mm, and height of 30mm. The walls should be 4mm thick with a corner radius of 6mm. The floor thickness is 4mm, and the lip is 2mm high and 1.5mm thick. Add four cylindrical screw posts ...
module lipped_box(height, depth, width, thickness, corner_radius, lip_height, lip_thickness, floor_thickness) { $fn=100; difference() { union() { translate([corner_radius,corner_radius,0]) { minkowski() { cube([width-(corner_radius*2),depth-(corner_radius...
glb/cad_c9550529fbf7.glb
Create a Parametric OpenSCAD Base for Intel 5th Generation NUC. Start by constructing a lipped box with a width of 115mm, depth of 111mm, and height of 30mm. The walls should be 4mm thick with a corner radius of 8mm. The floor thickness is 4mm, and the interior lip is 1.5mm thick and 2mm high. Add four cylindrical scr...
module lipped_box(height, depth, width, thickness, corner_radius, lip_height, lip_thickness, floor_thickness) { $fn=100; difference() { union() { translate([corner_radius,corner_radius,0]) { minkowski() { cube([width-(corner_radius*2),depth-(corner_radius...
glb/cad_a1d7b4842151.glb
Create a Parametric OpenSCAD Base for Intel 5th Generation NUC. Start by constructing a lipped box with a width of 115mm, depth of 111mm, and height of 40mm. The walls should be 4mm thick with a corner radius of 8mm. The floor thickness is 4mm, and the lip is 2mm high and 1.5mm thick. Add four cylindrical screw posts ...
module lipped_box(height, depth, width, thickness, corner_radius, lip_height, lip_thickness, floor_thickness) { $fn=100; difference() { union() { translate([corner_radius,corner_radius,0]) { minkowski() { cube([width-(corner_radius*2),depth-(corner_radius...
glb/cad_0ac9dd8df35f.glb
Create a ktBOX16 electronic enclosure. Start with a main rectangular base measuring 90mm in width, 54mm in depth, and 36.5mm in height. From this base, remove a central rectangular volume of 87mm by 51mm by 30mm to create a hollow interior. To form the outer walls and structural supports, add four vertical corner pil...
gap1 = 0.001; gap2 = 0.002; th = 2; base(); module base() { Wth = 1.5; difference() { union() { translate([-1/2-th, -1/2-th, -5]) cube([86+1+th*2, 50+1+th*2, 1.5+4+Wth+5]); translate([-1/2-th, -1/2-th, -5-30]) cube([86+1+th*2, 50+1+th*2, 30]); translate([ -0.25-4, -0.25-4, -5...
glb/cad_14b94f337f12.glb
Create a steering servo panel for a vehicle. Start by creating a main mounting panel that is a rounded rectangle with a length of 60mm, a width of 30mm, and a thickness of 3mm. Center this panel and remove four circular holes for M2 screws at the corners. On the bottom edge of this panel, add a vertical servo plate. T...
include <../parameters.scad> use <../util.scad> include <../placeholders/servo.scad> use <bracket.scad> use <knuckle.scad> use <rack_connector.scad> use <rack.scad> use <bearing_shaft.scad> module knuckle_lower_connector() { bearing_shaft_connector(lower_d=knuckle_dia, lower_h=knuckle_pin_l...
glb/cad_6ac3bbc72792.glb
Create a rear panel for a vehicle by starting with a cube of the dimensions specified in the rear panel size. Center the cube on the origin. Remove two cylindrical holes from the center of the block, each with a diameter of 12mm and a height of 10mm. Position these holes along the x-axis, with one centered at -16mm and...
include <parameters.scad> module rear_panel(size=rear_panel_size, tumbler_switch_dia = rear_panel_switch_slot_dia, x_offsets = [-16, 16]) { difference() { cube(size = size, center = true); for (x = x_offsets) { translate([x, 0, 0]) { cylinder(10, r=tumbler_switch_dia / 2, center=true); } ...
glb/cad_ef3932198edc.glb
Create a steering knuckle mount consisting of three primary connected components. First, create a main cylindrical connector with a height of `knuckle_height` and an outer diameter of `knuckle_bearing_outer_dia`. This cylinder must have a concentric hole running through its center with a diameter of `knuckle_bearing_in...
include <../parameters.scad> include <../colors.scad> use <../placeholders/bearing.scad> use <../util.scad> use <knuckle_shaft.scad> use <bearing_connector.scad> module knuckle_mount(show_wheel=false, show_bearing=false, show_shaft=false, knuckle_color=blu...
glb/cad_7c62b20eb5bc.glb
Create a series of bearing shaft probes for a vehicle, consisting of five distinct cylindrical shafts arranged in a row on a rectangular base. Each shaft has a total height of 8mm. The shafts vary in diameter from 4.0mm to 4.4mm, increasing in increments of 0.1mm. Each individual shaft is constructed with a thin circul...
use <../util.scad> module bearing_shaft(d, h, stopper_h = 1, stopper_extra_r = 0.8, chamfer_h) { chamfer_height = is_undef(chamfer_h) ? h * 0.2 : chamfer_h; h1 = h - chamfer_height - (is_undef(stopper_h) ? 0 : stopper_h); scale...
glb/cad_b0af1346f33f.glb
Create a front panel for a vehicle chassis designed to mount an HC-SR04 ultrasonic sensor. Start with a main rectangular plate that is 2mm thick, featuring rounded corners with a radius equal to 18% of the panel's height. In the center of this panel, create two circular openings to accommodate the ultrasonic sensor's...
include <parameters.scad> use <util.scad> module ultrasonic_sensor_mounts(d=front_panel_ultrasonic_sensor_dia, distance=front_panel_ultrasonic_sensors_offset, center=true, h=10) { rad = d / 2; x_offset = rad + distance...
glb/cad_fcb720d0c8fd.glb
Create a rear wheel hub for a vehicle. Start by constructing a main wheel body with a diameter of 60mm and a width of 12mm and a thickness of 3mm. This body should feature a rim with a height of 5mm and a width of 2mm, including a slight bend. At the center of the wheel, integrate a spoke system. The spokes should rad...
include <../parameters.scad> use <../util.scad> use <wheel.scad> use <tire.scad> rear_wheel_hub_rad = truncate(wheel_shaft_d * 0.78); rear_wheel_hub_solid_d = truncate(rear_wheel_hub_rad * 0.9); module rear_wheel(w=wheel_w, d=wheel_dia, thickness=wheel_thickness, ...
glb/cad_be6712eff5da.glb
Create a protective case for the r00tz asylum badge. Start with a main rectangular block for the board measuring 51.4mm wide, 53.9mm long, and 10.8mm high. Hollow out the center of this block to create a cavity 48.3mm wide, 50.8mm long, and 7.6mm deep, leaving a wall thickness of 3.2mm. At one corner, remove a 5.1mm cu...
mmperinch = 25.4; wall = (1/8)*mmperinch; $fn=50; USBwidth = 0.75*mmperinch; USBlength = 2*mmperinch; USBheight = 0.6*mmperinch; BadgeWidth = 1.9*mmperinch; BadgeLength = 2*mmperinch; BadgeHeight = 0.3*mmperinch; BatteryWidth = 1.4*mmperinch; BatteryLength = 2.7*mmperinch; BatteryHeight = 0.8*mmperinch; JoystickWidt...
glb/cad_c196899a9070.glb
Create a hardware protection case consisting of a main body and a motor mount. Start with a central rectangular plate measuring 102mm by 26mm with a thickness of 2mm. On the underside of this plate, centered along the length, attach a motor mount block that is 10mm wide, 26mm tall, and 62mm long. This block should have...
include <config.scad> module top() { difference() { union() { translate([0, 0, -1]) cube([102, 26, 2], center=true); translate([0, 0, -12-22]) rotate([0, 90, 0]) motor_mount(); hull() { translate([0, -11.75, -25]) ...
glb/cad_891fa94595f6.glb
Create a hardware protection case base by combining several geometric volumes. Start with two rectangular plates centered on the XY plane: one measuring 60mm by 30mm by 3mm, and a second perpendicular plate measuring 20mm by 60mm by 3mm. To create the side supports, construct two identical components. Each component ...
module base() { difference() { union() { translate([-49/2, 0, 0]) p1(); translate([49/2, 0, 0]) p1(); translate([-30, -15, 0]) cube([60, 30, 3]); translate([-10, -30, 0]) cube([20, 60, 3]); } } ...
glb/cad_10742c51b52e.glb
Create a servo rotate rod by constructing a composite vertical geometry. Start with a base cylinder 10mm in diameter and 5mm high. Atop this base, center a second cylinder with a diameter of 9.8mm and a height of 13mm, using a 70-facet resolution to maintain a faceted, polygonal appearance. To finish the part, bore two...
module servo_rotate_rod() { difference() { union() { cylinder(d=10, h=5); cylinder(d=9.8, h=13, $fa=70); } translate([0, 0, -1]) cylinder(d=3, h=30); translate([0, 0, -1]) cylinder(d=5.7, h=4); translate([0, 0, 7]) cylinder(d=6,...
glb/cad_ca0b6fb38651.glb
Create a free rotate rod by combining two cylinders. First, create a cylinder with a diameter of 9.8mm and a height of 25mm, using a facet resolution of 70. Then, place a second cylinder with a diameter of 10mm and a height of 15mm on top of the first one, ensuring they are aligned along their central axes.
include <config.scad> module free_rotate_rod() { union() { cylinder(d=10, h=15); cylinder(d=9.8, h=25, $fa=70); } } free_rotate_rod();
glb/cad_87992a3b7848.glb
Create a protective case for a thermal imaging camera. The main body is a hollow rectangular shell with outer dimensions of 30mm width, 42mm height, and 12.5mm depth. The walls are 2mm thick. Create a central rectangular cutout measuring 26mm by 38mm by 12.5mm to house the hardware. On the top face, center a circular ...
include <config.scad> module thermal_case() { w = 26; h = 38; t = 2; r = 5; l = 12.5; difference() { union() { linear_extrude(l) polygon( [[0, 0], [w+2*t, 0], [w+2*t, h+2*t], [w+t, h+2*t], ...
glb/cad_ad9b313c8c4b.glb
Create a protective cap for an IR camera. Start by creating a solid rectangular base measuring 34mm in width, 35mm in length, and 5mm in height. Hollow out the center of this base by removing a smaller rectangular block measuring 30mm in width, 29mm in length, and 3mm in height, leaving a wall thickness of 2mm on all s...
include <config.scad> $fs=0.1; w = 26; t = 2; l = 27; h = 28; stand = 3; p = 2.5; cable_width = 18; module IR_camera_case() { union() { difference() { translate([0, 0, (h+t+p+stand)/2]) cube([26+2*t, 27+2*t, h+t+p+stand], center=true); translate([0, 0, (h+t+p+stand)...
glb/cad_de7042fc2acc.glb
Create a hardware protection case consisting of a main body and a motor mount. The main body is formed by a hull encompassing three cylinders: a central cylinder with a diameter of 16.2mm and height of 10mm, and two flanking cylinders with diameters of 11.5mm and heights of 10mm, positioned 22mm apart from each other a...
include <config.scad> module main() { d1=12.2; d2=7.5; l=55.5; difference() { union() { translate([0, 0, -5]) hull() { cylinder(d = d1+4, h = 10, $fs=0.5); translate([-(l-d2)/2, 0, 0]) cylinder(d = d2+4, h = 10, $fs=0.5); ...
glb/cad_549b09ca03a4.glb
Create a pivot rod cap by constructing a solid hull that encompasses three cylinders, each with a height of 2mm. The first cylinder has a diameter of 15mm and is centered at the origin. The second and third cylinders both have a diameter of 10mm and are positioned 10mm away from the center along the X-axis, one at posi...
include <config.scad> module pivit_rod_cap() { difference() { hull() { cylinder(d=15, h=2); translate([10, 0, 0]) cylinder(d=10, h=2); translate([-10, 0, 0]) cylinder(d=10, h=2); } translate([10, 0, -1]) cylinder(d=5, h=4); translate([-10, 0, -1]) ...
glb/cad_0642e0385d43.glb
Create a protective hardware case by starting with a rectangular outer shell measuring 67mm in width, 26mm in length, and 21.5mm in height. Hollow out the center to create a walls-and-floor enclosure with a wall thickness of 2mm, leaving an internal cavity of 63mm by 22mm by 16mm. On the bottom face, center two circu...
$fa = 5; $fs = 0.2; include <config.scad> w = 63; l = 22; h = 16; t = 2; led_stand = 1; p = 2.5; module ir_lights_case() { difference() { union() { difference() { cube([w+2*t, l+2*t, h+t+led_stand+p]); translate([t, t, t]) cube([w, l, h+t+led_stand+p]); ...
glb/cad_0249c620ec2f.glb
Create a hollow cylindrical container for a physible. Start by creating a solid outer cylinder with a diameter of 77mm and a total height of 62mm. From the top of this cylinder, remove a smaller concentric cylinder with a diameter of 77mm and a height of 52mm to create a wall thickness of 5mm and a base thickness of 10...
$fa = 1; $fs = 0.4; puck_diameter = 77; puck_height = 26*2; _puck_radius = puck_diameter / 2; leg_diameter = 61; _leg_radius = leg_diameter / 2; thickness = 5; leg_height = thickness*2; _height = puck_height+leg_height; _epsilon = 0.001; translate([0, 0, _height]) rotate([180, 0, 0]) difference() { cylinder(...
glb/cad_db6148ae5a7e.glb
Create a pinoc solar filter adapter. The object is a hollow cylindrical assembly consisting of a base flange and a mounting cuff. First, create a wide, thin base disk with a diameter of 80mm (63.75mm inner diameter plus a 16mm flare) and a height of 2mm. On top of this base, add a cylindrical cuff with an outer diame...
$fn=100; sm_filter_id=30; sm_filter_h=10; sm_filter_flare=7.6; sm_cuff_id=33; sm_cuff_h=9.75; sm_cuff_wall=0.8; lg_cuff_id=44; lg_cuff_h=18; lg_filter_id=63.75; lg_filter_h=12; lg_filter_flare=16; lg_cuff_wall=1.2; side=25.5; cuff_wall=4.25; post_r=0.75; post_shoulder_r=1.5; post_shoulder_h=2.5; posts_x=[2+post_r,...
glb/cad_a50c7cc21efb.glb
Create a pinoc video capture mount for binoculars. The main body is a cuff with a height of 20mm. The cuff is formed by a hollowed-out shell where the outer boundary is a hull encompassing a cylinder with a radius of 21.9mm, a cylinder with a radius of 12.4mm, and a smaller cylinder with a radius of 16.9mm. The inner v...
$fn=60; major_r1=19.5; major_r2=21.5; minor_r=12; center_dist=major_r1+minor_r-6; wall=2.4; h=20; theta=atan((major_r1-minor_r)/center_dist); module cuff(){ difference(){ hull(){ translate([-center_dist/2,0,0]) cylinder(r2=major_r1+wall, r1=major_r2+wall,h=h); tr...
glb/cad_0f095d40f017.glb
Create a pinoc video capture frame for binoculars. The main body is a symmetrical mask with an overall width of 150mm and a height of 50mm. The frame thickness is 2mm. Construct two symmetrical lens openings. Each opening is formed by a hull of a 1mm cube and two cylinders with a radius of 16mm, creating a rounded re...
$fn=100; h=50; w=150; nose_h=24; nose_w1=12; nose_w2=20; fillet=16; t=2; frame=3; module half_lens_blank(tol=0, ztol=0){ z=t+ztol; zoff=-ztol/2; translate([-nose_w1/2,0,0]) hull(){ translate([-tol,h/2-1-tol, zoff]) cube([1,1,z]); translate([-w/2+fillet+tol,h/2-fill...
glb/cad_91cc8e17c162.glb
Create a wave roller gear consisting of a main ring and a series of cylindrical rollers. Start by constructing a thick outer ring with a height of 6mm and an outer diameter of 37.5mm. The inner profile of this ring is not a perfect circle but a cycloidal cavity. This cavity is formed by subtracting a cycloidal shape wi...
$fn = 50; function cycloid_points(ecc, roll_radius, wave_gen_r, cav_num, res) = [ for (i = 0; i < res; i = i + 1) let ( theta = i / res * 360, s_rol = sqrt((roll_radius + wave_gen_r) ^ 2 - (ecc * sin(cav_num * theta)) ^ 2), l_rol = ecc * cos(cav_num * theta) + s_rol, ...
glb/cad_dcd0897080ef.glb
Create a protective case for an HC-SR04 sensor. The main body is a rectangular enclosure with an outer length of 45.5mm and a width of 34.5mm. The walls have a thickness of 2mm and a total height of 17mm. Inside the case, place two vertical cylindrical tubes to hold the sensor. These tubes have an outer radius of 10m...
include <parts.scad>; mink_r_ = 2; length = 45; width = 20; plate_height = 1.5; whole_sensor_height = 15; wall_thikness = mink_r_; el_parts_height = 2; tube_radius = 8; tube_height = whole_sensor_height - plate_height; tubes_between = 27; tube_x_position = (length - tubes_between) / 2; tube_y_position = width / 2; l...
glb/cad_c40646960d9c.glb
Create a shear pin by combining a rectangular prism and a cylinder. Start with a rectangular base that is 3.5mm wide, 3.5mm high, and 18.25mm long. On top of this base, centered along the width, add a cylinder with a diameter of 3.5mm and a height of 3.5mm. Position the cylinder so its base sits at the end of the recta...
base_width = 3.5; base_height = 3.5; base_length = 20.0; $fn = 256; module shear_pin() { half_base_width = base_width * 0.5; cylinder_diameter = base_width; cylinder_height = base_height; cylinder_x = base_height * 0.5; cylinder_y = base_length - half_base_width; cylinder_z = 0; diff...
glb/cad_47cd8a9983d2.glb
Create a TPU grommet for cable pass-through. Start by constructing a central cylindrical base with a diameter of 49.9mm and a height of 11mm. Add a top circular lip and a bottom circular lip, both with a diameter of 60mm and a thickness of 1.8mm, positioned at the opposite ends of the base to create a total object heig...
base_diameter = 50.0; base_height = 11; top_lip_width = 5.0; top_lip_thickness = 1.8; bottom_lip_width = 5.0; bottom_lip_thickness = 1.8; hole_position_radius_ratio = 0.4; hole_diameter_1 = 5.0; hole_enable_slit_1 = true; hole_diameter_2 = 4.0; hole_enable_slit_2 = false; hole_diameter_3 = 0.0; hole_enable_...
glb/cad_40d1a3b911e1.glb
Create a UFO Landing Pad model starting with a main rectangular base measuring 725mm wide, 1466mm deep, and 154mm high. Carve out a rectangular recess from both the top and bottom faces of the base; this recess should be 603mm wide and 1339mm deep, with a depth of 36mm. Within these top and bottom recessed areas, add ...
box_width = 725; box_depth = 1466; box_height = 154; recess_depth = 36; bezel_width_x = 61; bezel_width_y = 127; recess_width = box_width - (2 * bezel_width_x); recess_depth_y = box_depth - (2 * bezel_width_y); protrude_width = 66; protrude_depth = 274; protrude_height = 36; protrude_x_offset = (recess_width/2) - 86...
glb/cad_c9fe042f2164.glb
Create a landing pad model by starting with a solid rectangular box that is 725mm wide, 1466mm deep, and 154mm high. Center this box on all axes. On the top surface, carve out a centered rectangular recess to create a bezel. This cutout should be 36mm deep, with a width of 603mm and a depth of 1212mm, leaving a border ...
box_width = 725; box_depth = 1466; box_height = 154; recess_depth = 36; bezel_width_x = 61; bezel_width_y = 127; recess_width = box_width - (2 * bezel_width_x); recess_depth_y = box_depth - (2 * bezel_width_y); difference() { cube([box_width, box_depth, box_height], center=true); translate([0, 0, (box_heig...
glb/cad_d09736468ab4.glb
Create a landing pad model based on a central rectangular block measuring 725mm wide, 1466mm deep, and 154mm high. Carve a rectangular recess into both the top and bottom faces of this block; the recess should be 603mm wide and 1339mm deep, with a depth of 36mm. Within the remaining flat surface of these top and bott...
box_width = 725; box_depth = 1466; box_height = 154; recess_depth = 36; bezel_width_x = 61; bezel_width_y = 127; recess_width = box_width - (2 * bezel_width_x); recess_depth_y = box_depth - (2 * bezel_width_y); protrude_width = 66; protrude_depth = 274; protrude_height = 36; protrude_x_offset = (recess_width/2) - 86...
glb/cad_86f5c29708ac.glb
Create a landing pad model starting with a main rectangular base measuring 725mm wide, 1466mm deep, and 154mm high. Carve a centered rectangular recess into both the top and bottom faces of this base; the recess should be 36mm deep, with a width of 603mm and a depth of 1212mm. Within these recessed areas on both the to...
box_width = 725; box_depth = 1466; box_height = 154; recess_depth = 36; bezel_width_x = 61; bezel_width_y = 127; recess_width = box_width - (2 * bezel_width_x); recess_depth_y = box_depth - (2 * bezel_width_y); protrude_width = 66; protrude_depth = 274; protrude_height = 36; protrude_x_offset = (recess_width/2) - 86...
glb/cad_3c108422506f.glb
Create a landing pad model starting with a main rectangular base measuring 725mm wide, 1466mm deep, and 154mm high. Carve a rectangular recess into both the top and bottom faces of this base; the recess should be 603mm wide and 1312mm deep, with a depth of 36mm. Within these top and bottom recessed areas, add four pr...
box_width = 725; box_depth = 1466; box_height = 154; recess_depth = 36; bezel_width_x = 61; bezel_width_y = 127; recess_width = box_width - (2 * bezel_width_x); recess_depth_y = box_depth - (2 * bezel_width_y); protrude_width = 66; protrude_depth = 274; protrude_height = 36; protrude_x_offset = (recess_width/2) - 86...
glb/cad_471e184ce5fb.glb
Create a landing pad model by starting with a solid rectangular box that is 725mm wide, 1466mm deep, and 154mm high. Center the box on all axes. Carve out a rectangular recess from both the top and bottom faces to create a hollowed-out effect. Each recess should be 36mm deep, leaving a bezel width of 61mm on the left a...
box_width = 725; box_depth = 1466; box_height = 154; recess_depth = 36; bezel_width_x = 61; bezel_width_y = 127; recess_width = box_width - (2 * bezel_width_x); recess_depth_y = box_depth - (2 * bezel_width_y); difference() { cube([box_width, box_depth, box_height], center=true); for (z_pos = [-(box_height...
glb/cad_e7090ae543ef.glb
Create a 3D model of the UFO Landing Pad. Start by creating a main rectangular base measuring 725mm wide, 1466mm deep, and 154mm high. Carve out a centered rectangular recess from both the top and bottom faces of this base; the recess should be 603mm wide and 1212mm deep, with a depth of 36mm. On the top surface, withi...
box_width = 725; box_depth = 1466; box_height = 154; recess_depth = 36; bezel_width_x = 61; bezel_width_y = 127; recess_width = box_width - (2 * bezel_width_x); recess_depth_y = box_depth - (2 * bezel_width_y); protrude_width = 66; protrude_depth = 274; protrude_height = 36; protrude_x_offset = (recess_width/2) - 86...
glb/cad_3f670f50698c.glb
Create a landing pad model starting with a main rectangular base measuring 725mm wide, 1466mm deep, and 154mm high. Carve out a centered rectangular recess from both the top and bottom faces of this base; the recess should be 36mm deep, with a width of 603mm and a depth of 1212mm, leaving a bezel of 61mm on the sides a...
box_width = 725; box_depth = 1466; box_height = 154; recess_depth = 36; bezel_width_x = 61; bezel_width_y = 127; recess_width = box_width - (2 * bezel_width_x); recess_depth_y = box_depth - (2 * bezel_width_y); protrude_width = 66; protrude_depth = 274; protrude_height = 36; protrude_x_offset = (recess_width/2) - 86...
glb/cad_1ce772f11333.glb
Create a hensonShavingRazorHolderGridfinity holder by starting with a Gridfinity-style base bin. The main body is a rounded rectangular block with a total footprint of 41.5mm by 125.5mm and a height of 28mm, featuring rounded corners with a 5mm radius on the Z-axis. Inside this block, carve out a central recessed cavi...
include <gridfinity-rebuilt-openscad/gridfinity-rebuilt-bins.scad>; module roundedcube(size = [1, 1, 1], center = false, radius = 0.5, apply_to = "all") { size = (size[0] == undef) ? [size, size, size] : size; translate_min = radius; translate_xmax = size[0] - radius; translate_ymax = size[1] - radius; translate...
glb/cad_e524e9496560.glb
Create a Henson Shaving Razor Holder designed for a Gridfinity system. Start by creating a base block that is 41.5mm wide, 167.5mm long, and 22mm high. Apply a fillet radius of 3.75mm to the top Z-axis edges. Integrate a standard Gridfinity 1x4 bin base into the bottom of the block, ensuring it includes the characteri...
include <gridfinity-rebuilt-openscad/gridfinity-rebuilt-bins.scad>; module roundedcube(size = [1, 1, 1], center = false, radius = 0.5, apply_to = "all") { size = (size[0] == undef) ? [size, size, size] : size; translate_min = radius; translate_xmax = size[0] - radius; translate_ymax = size[1] - radius; translate...
glb/cad_62cce140cf93.glb
Create a laptop chassis called "openbook" starting with a base rectangular plate 5mm thick. The overall outer dimensions are defined by a length (l) and width (w), with the edges rounded using a 4mm radius. Carve a large central rectangular cutout from the top face, offset from the edges by 6.5mm and 11.5mm respectiv...
$fn = 90; include<consts.scad>; include<modules.scad>; h=5; difference() { minkowski() { cube([l, w, h], center=true); cylinder(4, 0.00001, 3); }; translate([0, 0, 8]) cube([l+17, w+17, 9], center=true); translate([LAPTOP_WEETBIX+6.5,LAPTOP_SOUTH+11.5,-0.75]) cube([l-17.5, w-16.5, 4.5]); ...
glb/cad_dc85dd07c9f7.glb
Create a laptop mounting bracket called an openbook. Start with a main rectangular body measuring 134mm in length, 53.5mm in width, and 11.45mm in height, ensuring all edges are rounded with a 1.75mm radius. Hollow out the center of this body by removing a smaller centered rectangular volume of 114mm by 53.5mm by 11.45...
l = 134; w = 53.5; h = 11.45; bracketW = 10; bracketL = 45; $fn = 90; difference() { minkowski(){ translate([0, 110-38, 10]) cube([l-3, w-3, h], center=true); cylinder(1.75, 4, 1); } translate([0, 110-38, 9.5]) cube([l-20, w, h], center=true); translate([-62, 89, 0]) cylinder(90, 1....
glb/cad_aa419c780890.glb
Create a bulb holder by starting with a solid rectangular block that is 32mm wide, 3mm deep, and 10mm high. From this main body, remove a central rectangular section measuring 20mm wide, 5mm deep, and 20mm high to create a cutout. Additionally, create two small circular holes for M2 screws; position the first hole at a...
$fn = 90; include<consts.scad>; include<modules.scad>; bulbHolder(); BULB_HOLDER_W = 32; BULB_HOLDER_H = 10; BULB_HOLES_DIST = 25; module bulbHolder() { difference() { cube([BULB_HOLDER_W, 3, BULB_HOLDER_H]); rotate([90, 0, 0]) { translate([4, BULB_HOLDER_H/2, -4]) { m2Hole(); translate([BULB_...
glb/cad_166a41cf2977.glb
Create a Garden133 soil moisture sensor housing. Start by creating a solid rectangular block with overall dimensions of 40mm in length, 25mm in width, and 12mm in height. Hollow out the center of this block to create an open container, leaving a wall thickness of 1mm on the left and right sides and a base thickness of ...
epsilon = 0.001; module soilpot() { dims = [40, 25, 12]; wall = 1; sensor_z = 1.5; inner_dims = dims - wall*[1, 2, 1]; difference() { cube(dims); translate([-epsilon, wall, wall+epsilon]) cube(inner_dims); angle = atan((dims[2]-sensor_z)/dims[0]); translate([-epsilon, -epsilon, sensor_z]) r...
glb/cad_1e856c6e8d94.glb
Create a waterproof electronics case called Garden133 with a rectangular footprint of 60mm in length, 100mm in width, and 40mm in height. The case consists of a bottom base and a top lid, both with a wall thickness of 3mm and rounded corners with a radius of 12mm. Construct the bottom base as an open-topped box. Along...
$fn = 80; ShowBottom = true; ShowTop = true; DistanceBetweenObjects = 10; ShowCaseAssembled = false; ShowGasket = true; GasketHeight = 1.5; SeeNutCut = false; SeeGrooveRidgeScrew = false; Casele...
glb/cad_fbb47e22d436.glb
Create a Garden133 solar-powered monitoring board enclosure. Start by constructing a main rectangular tray with a wall thickness of 1mm. Within this tray, create a primary battery compartment with outer dimensions of 46mm by 27mm by 12mm. Hollow out the interior of this compartment to a size of 44.4mm by 25.4mm by 10.4...
include <box.scad> include <gui.scad> include <board.scad> wall = 1; space = 0.2; battery_dims = [44, 25, 10]; battery_space_inner = battery_dims + space*[2, 2, 2]; battery_space_outer = battery_space_inner + [2*wall, 2*wall, 2]; battery_offset = [4, outer_dims[1], 0]; desiccant_bin_offset = battery_offset+[battery_...
glb/cad_7f44d22e7d80.glb
Create a solar panel mount consisting of a hollow cylindrical base and a rectangular support platform. Start by creating a tube with an outer diameter of 28mm, an inner diameter of 24mm, and a height of 30mm. On top of this tube, center a rectangular platform that is 104mm wide, 56mm deep, and 2mm thick. The platform s...
include <MCAD/units.scad> panel_mount_tube_diam = 24; panel_mount_tube_gap = 0.5; panel_mount_tube_wall = 2; panel_holder_wall = 2; panel_mount_tube_depth = 30; panel_width = 100; panel_thickness = 2; panel_holder_gap = 1.5; panel_holder_tooth_len = 5; module SolarPanelMount() { $fn = 80; twall = panel_mount_tub...
glb/cad_90248335bdf3.glb
Create a 3DPrinting model consisting of three main components: a handle, a trunk, and a cap. First, create the handle as a cylinder with a diameter of 25mm and a height of 80mm. At the top of this cylinder, add a screw thread with an external diameter of 10mm, a depth of 2mm, and a length of 10mm, and a small 10-sided...
use <lib/scad-lib-FDMscrews/lib-FDMscrews.scad> NB_BRANCHES = 4; NB_ARMS = 3; ARM_LENGTH_INCREASE = 2; TRUNK_DIAMETER = 15; HANDLE_HEIGHT = 80; CAP_HEIGHT = 15; RING_WIDTH = 5; BRANCH_HEIGHT = 5; PLATE_DIAMETER = 20; ARM_WIDTH = 10; PIN_HEIGHT = 2; PIN_DIAMETER = 2; SCREW_EXT_DIAMETER = 10; SCREW_DEPTH = 2; SCREW_P...
glb/cad_f4a2c2dd26c3.glb
Create a donut by generating a torus with a circular cross-section. The cross-section should be a circle with a radius of 2mm, positioned with its center 4mm away from the central axis of rotation. Rotate this circle 360 degrees around that axis to form a smooth, continuous ring.
rotate_extrude(convexity = 10, $fn = 200) translate([4, 0, 0]) circle(r = 2, $fn = 200);
glb/cad_d3a0b82a494b.glb
Create a CAD model of a small mechanical part consisting of a vertical cylinder and a rectangular base. Start by creating a cylinder with a height of 12mm and a diameter of 4mm. Position a rectangular block measuring 8mm in length, 4mm in width, and 2mm in height so that it is centered on the cylinder's axis and inters...
cylinder(h=12,d=4); cube([8, 4, 2], center = true);
glb/cad_9b4dfd1d4c20.glb
Create a mitre for CAD files by starting with a solid rectangular block 30mm wide, 70mm long, and 53mm high. Hollow out the center of this block by removing a rectangular section 24mm wide, 76mm long, and 53mm high, positioned 3mm from the front and side walls to leave a base and side walls each 3mm thick. Within this ...
module mitre(inner_width, inner_length, inner_height, wall_thickness, gap_width, angles) { difference() { cube([inner_width+(2*wall_thickness), inner_length, inner_height+wall_thickness]); translate([wall_thickness, -wall_thickness, wall_thickness]) cube([inner_width, inner_length+(2*wa...
glb/cad_c49b862280ca.glb
Create a hollow rectangular brace with an outer dimension of 26.5mm in length, 36.5mm in width, and 23mm in height. The walls and the base should have a uniform thickness of 3mm, creating an internal cavity that is 20.5mm long, 30.5mm wide, and 20mm deep. To complete the design, add two conical holes that pass through ...
module brace(inner_length, inner_width, inner_height, wall_thickness) { difference() { cube([inner_length + wall_thickness*2, inner_width + wall_thickness*2, inner_height + wall_thickness]); translate([wall_thickness, wall_thickness, wall_thickness]) cube([inner_length, inner_width, inn...
glb/cad_b92412eb4602.glb
Create a linear bracket as a rectangular solid measuring 96mm in length, 30mm in width, and 4mm in thickness. Within this solid, create four evenly spaced countersunk holes arranged in a single row along the center of the width. Each hole should have a base diameter of 3.5mm and widen to a head diameter of 7mm at the s...
module linear_bracket(length, width, thickness, hole_diameter, countersink_head_diameter, hole_count_lengthwise, hole_count_widthwise, stagger_rows_horizontally_by) { difference() { cube([length, width, thickness]); epsilon = 0.1; for (row = [0 : hole_count_lengthwise - 1]) { ...
glb/cad_a5dd114e9448.glb
Create a 3D model of a French FDDD lock key. Start with a circular head with a diameter of 30mm and a thickness of 8mm. From the head, extend a stem that is 7.25mm wide and 5.25mm thick. The bitting section of the key is 31mm long. The tip of the key is a triangle with a length of 2.5mm and a flat edge of 2mm. Along t...
$fn = 30; segment_spacing = 4.5; segment_offset = 15; segment_flat_width = 0.5; segment_translation = 1.1; segment_rotation = 20; key_code = [[0, -1], [1, -2], [0, -2], [-1, 0], [-1, -1], [0, -1]]; module key_profile(){ hull(){ translate([0.577, -1, 0]) circle(d=5, $fn = 3); translat...
glb/cad_2510ef670a31.glb
Create a Euro cylinder holder by starting with a solid base consisting of a cylinder 20mm in diameter and 3mm high, topped with a second cylinder 20mm in diameter and 10mm high centered on the first. From this combined volume, remove a specific profile shape that begins 3mm above the bottom surface. This profile is cre...
$fn = 100; module euro_profile_3030(){ rotate([0,-90,0]) translate([0, 0, -30]){ hull(){ translate([5, 0, 0]) cylinder(60, 10/2, 10/2); translate([25, 0, 0]) cylinder(60, 10/2, 10/2); } translate([25, 0, 0]) cylinder(60, 17/2, 17/2); } } difference(){ u...
glb/cad_06d346697e27.glb
Create a Spiral Z-axis model by starting with a central cylinder 30mm high and 10mm in diameter, centered on the origin. Surround this with a larger outer cylinder 20mm high and 120mm in diameter, also centered on the origin. Build a main body consisting of a cylinder 5mm high and 100mm in diameter, positioned 5mm belo...
$fn = 125; difference(){ union(){ translate([0, 0, -5]) cylinder(5, d= 100); for (j = [0:120:360]){ rotate([0,0,j]){ difference(){ translate([0,0,5]) for (i = [0:10]){ translate([0, ...
glb/cad_f015fdbd8821.glb