Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a cardboard connector consisting of two identical vertical plates joined by a central spacer. Each vertical plate is a rectangular prism measuring 12mm wide, 50mm long, and 30mm high. Position these two plates so they are parallel to each other with a 2mm gap between them. Connect the plates with a horizontal re...
distance=0; translate([0,0,30]){ cube([2,50,30]); translate([7,0,0]) cube([2,50,30]); translate([-1,0,0]){ cube([12,50,2]);} translate([2,10,0]) cylinder(h=30, r=2); translate([7,25,0]) cylinder(h=30, r=2); translate([2,40,0]) cylinder(h=30, r=2);} translate([-1,0,0 ]){ cube([2,50,30]); translate([10,0,0]) cube([...
glb/cad_751228840a89.glb
Create a cardboard connector consisting of two identical L-shaped brackets joined at a right angle. Each bracket is formed by two parallel rectangular plates, each 50mm wide, 30mm high, and 2mm thick, separated by a 5mm gap. On the inner face of each plate, place three cylindrical holes with a radius of 2mm and a depth...
distance=0; translate([0,0,30]){ cube([2,50,30]); translate([7,0,0]) cube([2,50,30]); cube([9,50,2]); translate([2,10,0]) cylinder(h=30, r=2); translate([7,25,0]) cylinder(h=30, r=2); translate([2,40,0]) cylinder(h=30, r=2);} translate([30,20,0]){ rotate([0,0,90]){ cube([2,50,30]); translate([7,0,0]) cube([2,50,...
glb/cad_6aa79944994c.glb
Create a Squobe sculpture by starting with the intersection of a sphere with a 20mm radius and a centered cube with a side length of 30mm. From this resulting shape, remove three intersecting cylinders, each with a radius of 10mm and a length of 100mm. Position the first cylinder vertically along the Z-axis, the second...
difference() { intersection() { sphere(20); cube(30,true); } union() { cylinder(100,10,10,true); rotate([90,0,0]) cylinder(100,10,10,true); rotate([0,90,0]) cylinder(100,10,10,true); } }
glb/cad_49e38ff00459.glb
Create a desk mount for a Hubitat C8 home automation hub. Start with a base plate that is 4mm thick. The base should feature a central rectangular cutout to create a cradle, with the remaining side walls acting as retaining clips. The overall length of the mount is 79mm (75mm for the hub plus 2mm clips on each side) an...
MOUNT = "Desk"; TYPE = "C8"; MOUNTING_HOLES = true; ENDSTOPS = true; THICKNESS = 4; CLIP_THICKNESS = 2; HOLLOW_RETAINER = true; $fn = 100; M3_radius = 1.5; M3_head_radius = 3.5; M3_head_height = 2; Clip_retainer = 2; Clip_width = 15; C5_length = 75; C5_width = 75; C5_height = 16.25; C5_foot_height = 0.5; C5_foot_ra...
glb/cad_948358657bba.glb
Create a raised stand for a network switch by constructing a U-shaped bracket with a total depth of 10mm. Start with a central rectangular base that is 63mm wide, 13mm high, and 10mm deep. Remove a rectangular section from the center of this base, leaving a 3mm thick wall on the left, right, and bottom, which creates a...
tol=0.01; wall=3; jaws = 27; airgap = 10-wall; depth = 10; basewidth = jaws*2; basemore = basewidth - jaws; height = 10; legang = 180-atan2(basemore/2,airgap); leglen = sqrt(airgap*airgap+basemore*basemore); echo (legang,leglen); difference() { cube([jaws+wall*2, height+wall, depth]); translate([wall,wall,-tol]) ...
glb/cad_c9f6e0884416.glb
Create a barrel nut by starting with a cylinder 12.9mm long and 12mm in diameter. Cut a longitudinal slot 1mm wide and 1.8mm deep into one side of the cylinder, running the full length of the part. Bore a circular hole 5.8mm in diameter through the center of the cylinder, perpendicular to the length. Position the cente...
length=12.9; diameter=12; hole_position=7.5; hole_diameter=5.8; slot_width=1+0; slot_depth=1.8+0; radius=diameter/2; translate([0,-length/2,sqrt(1/2)*radius]) rotate([-90,0,0]) difference() { d=0.001; $fn=40; cylinder(h=length, d=diameter); translate([-slot_width/2-d,-radius-d,-d]) cube([s...
glb/cad_5eb9e0a9801f.glb
Create a Gravitrax Compatible Height Tile by stacking three hexagonal sections, each 10mm tall, for a total height of 30mm. The overall shape is a hexagonal prism with a width of 46.2mm across opposing edges. The main body consists of thick outer walls (1.25mm) and a top layer 1mm thick. The interior is hollowed out b...
TILES=3; SET=1; FLIP=1; CHAMFER=0.6; TILE_HEIGHT=10; BASE_HEIGHT=2; PLUG_HEIGHT=3; TILE_WIDTH=46.2; PLUG_WIDTH=29.7; TOP_THICK=1; RIB_THICK=0.8; SIDE_THICK=1.25; TOP_FILT=1; OUT_FILT=2; INS_FILT=1.2; PLUG_FILT=2; GAP=2; main(); $fn=64; module main(){ if (SET==1 || SET==7) stack(); if (...
glb/cad_1dc4de2da6b4.glb
Create a 3D model of a test cube with integrated side wheels. Start by centering a cube with side lengths of 20mm. Add a cylinder to the center of the cube, oriented along the Y-axis, with a radius of 10mm and a total height of 22mm, so that it extends 1mm beyond each opposite face of the cube. Finally, create a vertic...
cube_size = 20; hole_diameter = 2.5; hole_radius = hole_diameter/2; hole_depth = 1; show_wheels = "yes"; wheel_thickness = 1; function BEZ03(u) = pow((1-u), 3); bing = 3+4; baz = 3 / hole_depth; difference() { union() { translate([0, 0, cube_size/2]) cube([cube_size,cube_size,cube_size], center=true); ...
glb/cad_bca3204dab3f.glb
Create a furniture wedge consisting of a series of connected blocks. The overall dimensions of the wedge are 80mm in length, 20mm in width, with a height that slopes linearly from a minimum of 1mm at one end to a maximum of 8mm at the other. Divide the 80mm length into 8 equal segments of 10mm each. To create the bre...
Length = 80; Width = 20; StartHeight = 1; EndHeight = 8; NumberOfBlocks = 8; LinkageThickness = 0.4; if (LinkageThickness < 0.2) {LinkageThickness = 0.2;} xStart = Length / 2 * (-1); xSteps = Length / NumberOfBlocks; yStart = Width / 2 * (-1); union(){ difference(){ rotate([90, 0, 0]) linear_...
glb/cad_3d28317ef431.glb
Create a customizable poker chip and chip tray set. For the poker chips, create a cylinder with a diameter of 40mm and a height of 3mm. On the top face of the cylinder, remove a circular indentation with a diameter of 35mm and a depth of 1mm. Within this indentation, remove a series of small circular holes around the p...
module pie(radius, angle, height, spin=0) { clockwise = (angle < 0) ? true : false; normalized_angle = abs((angle % 360 != 0) ? angle % 360 : angle % 360 + 360); rotation = clockwise ? [0, 180 - normalized_angle] : [180, normalized_angle]; if (angle != 0) { rotate([0,0,spin]) linear_extrude(...
glb/cad_8a8e1e137bee.glb
Create a poker chip with a diameter of 39mm and a height of 2mm. The chip is a cylinder with several decorative recessed features on its top face. First, remove six identical wedge-shaped segments from the top surface; each segment should be a 30-degree arc slice extending from the center to the outer edge, positioned ...
use <pie.scad>; Size = 39; CR = Size / 2; CH = 2; CText="100"; $fn=360; module subpie(r1, r2, angle, height, spin=0) { difference() { pie(r1, angle, height, spin); rotate([0,0,-1])translate([0, 0, -1])pie(r2, angle+2, height+2, spin); }; } difference() { cylinder(CH, CR, CR); transla...
glb/cad_34270b715b89.glb
Create a poker chip by starting with a main cylinder that has a diameter of 39mm and a height of 2mm. Carve six identical radial notches into the top surface of the cylinder; each notch should be a 30-degree wedge (pie slice) with an outer radius of 18.5mm and an inner radius of 15mm, extending to a depth of 1.5mm. The...
use <pie.scad>; Size = 39; CR = Size / 2; CH = 2; CText="1000"; $fn=360; module subpie(r1, r2, angle, height, spin=0) { difference() { pie(r1, angle, height, spin); rotate([0,0,-1])translate([0, 0, -1])pie(r2, angle+2, height+2, spin); }; } difference() { cylinder(CH, CR, CR); transl...
glb/cad_619e90a705b4.glb
Create a poker chip tray consisting of four parallel, cylindrical troughs. Each trough is formed by a cylinder with an outer diameter of 41mm and an inner diameter of 39mm, creating a wall thickness of 1mm. The cylinders are oriented horizontally and extended to a total length of 124.8mm. To open the troughs, remove ...
$fn=360; ChipSize = 39; ChipHeight = 2; RowCount = 4; ChipInRow = 60; WallThickness = 2; SideThickness = 2.4; InnerSize = ChipSize * 3/4; RowHeight = ChipInRow * ChipHeight; union() { for (i=[0:RowCount-1]) { translate([(ChipSize+WallThickness)*i, 0, ChipSize/2+WallThickness])rotate([90,0,0]) dif...
glb/cad_3dd25cc630f5.glb
Create a microswitch housing starting with a rectangular base plate measuring 28mm in length, 16mm in width, and 10mm in height. The four vertical corners of this plate must be rounded with a radius of 2.5mm. Remove two holes from the base. The first is a full circular hole with a diameter of 3.2mm, centered 1.4mm fr...
customizer_x=28; customizer_y=16; customizer_z=10; customizer_facets=32; customizer_rounding_radius=2.5; module rounded_plate(size_x,size_y,size_z,facets,rounding_radius) { hull() { translate([rounding_radius,rounding_radius,0]) cylinder (h=size_z, r=rounding_radius,$fn=facets); translate([size_x-rounding_radiu...
glb/cad_0d07bbdcad70.glb
Create a customizable cat toy by constructing a spherical lattice composed of ten identical intersecting rings. Each ring must be a torus with a diameter of 50mm and a cross-sectional thickness of 3mm. To form the hollow, woven structure, arrange the rings so they are rotated around the center of the sphere. Each subse...
Ball_size=50; Wobble_factor=60; Thickness=3; Number_of_rings=10; reso=40; for(i=[0:360/Number_of_rings:360]) rotate([Wobble_factor,Wobble_factor,i]) One_ring(Ball_size); module One_ring(Rsize){ rotate_extrude(angle=360,$fn=reso) translate([Rsize/2-Thickness/2,0,0]) circle(d=Thickness,$fn=reso/...
glb/cad_c4e3990f3712.glb
Create a parametric sorting box with a lid and a wall-mounting bracket. The main box body is a rounded rectangular prism with outer dimensions of 62mm width, 56mm depth, and 54mm height. The corners should have a radius of 0.7mm. Create a hollow interior by removing a centered block with a wall thickness of 1.5mm and a...
bWall=1.5; bOuterW=62; bOuterD=56; bOuterH=54; bInnerR=4; bOuterR=0.7; lidType="snapfit"; generateHolderBracket="yes"; HolderBracketMountingHoleDiameter=4; generateKanbanCardHolder="yes"; overfill=0.15; notchW=bWall; notchD=bOuterD/8; notchH=2; cardThickness=0.3; difference() { cubeX([bOuterW,bOuterD,bOute...
glb/cad_a0587bad7c3a.glb
Create an arcade push button plunger. Start by constructing a main cylinder with a diameter of 22mm and a height of 5mm. The cylinder should have a wall thickness of 1mm, creating a hollow interior. The top edge of the cylinder should be rounded with a torus of radius 2.2mm centered on the 22mm diameter. To create the ...
$fn=60; wall_thickness = 1; plunger_diameter = 22; plunger_height = 5; plunger_concave =false; module torus(r, d){ rotate_extrude(convexity = 10) translate([d/2-r, 0, 0]) circle(r=r); } module plunger(d, h, concave){ translate([0,0,-wall_thickness]) difference(){ difference(){ union(){ difference...
glb/cad_a37b15bc69ab.glb
Create an iPad Mini Lightning Dock consisting of a cradle and a supporting brace. First, construct the cradle. Create a main body with an outer dimension of 146mm width, 209.1mm length, and 61mm height. Hollow out the center to create a slot for the device measuring 138mm by 203.1mm with a depth of 11mm. The walls sh...
do_dock=true; do_brace=true; device_size = [138.0, 203.1, 11.0, 1.5, 22.0, 40.0]; dockheight = 30.0; clipheight = 20.0; wall = 4.0; viewtilt = 6.0; lt_width = 8.0; lt_thick = 5.0; lt_length = 12.0; sup_width = 5.0; sup_length = 30.0; sup_gap = 7.0; sup_offset = 8.0; module chamfcube( size=[1,1,1], chamfer=...
glb/cad_911dd4804aae.glb
Create an arcade push button plunger designed as a Cherry MX keycap. Start by creating a cylinder with a diameter of 22mm and a height of 5mm. On the bottom face of this cylinder, center and integrate a standard Cherry MX keycap mount. To reinforce the structure, add two intersecting rectangular beams that form a cross...
$fn=60; use <../keyboards/cherry/keycap_mount.scad>; use <cap.scad>; wall_thickness = 1; plunger_diameter = 22; plunger_height = 5; plunger_concave = false; plunger_reinforcement = true; translate([0,0,plunger_height]){ plunger(d=plunger_diameter, h=plunger_height, concave=plunger_concave); mx_mount(); if( tr...
glb/cad_e736df1e3040.glb
Create a customizable ball bearing set consisting of two concentric races and a series of internal spheres. Start by creating an inner race and an outer race through a rotational extrusion. The inner diameter of the assembly is 22mm and the outer diameter is 75mm. The cross-section of these races should be defined by a...
ID = 22; OD = 75; ballClearance = 0.4; minWallThickness = 6; raceDia = 0.5*(ID + OD); ballDia = (OD - minWallThickness - raceDia); pi = 0+3.1415926; $fa = 0+6; $fs = 0+1; numBalls = floor(raceDia * pi / (ballClearance+ballDia)) ; for (k = [1:numBalls]) { th = 360 / numBalls * k; translate([0.5*raceDia*cos(t...
glb/cad_0c3da50f1378.glb
Create an adjustable parallel tool consisting of a wedge-shaped block. The main body is a rectangular prism with a width of 30mm, a length of 35mm (calculated as the screw length of 27mm plus two 4mm head heights), and a height that tapers from 20mm down to 0mm. The geometry is a polyhedron where the top face is a rec...
$fn = 50; screw_length = 27; screw_diameter = 4; screw_head_height = 3; screw_head_diameter = 7; parallel_width = 30; parallel_height = 20; parallel_length = screw_length + screw_head_height*2; counter_width = 10; nudge = 0.01; keil(); module holder(w=counter_width, h=6, l=parallel_height, includeHoles=true){ ...
glb/cad_902ca75b8a09.glb
Create a two-part catcher consisting of a removable box and a supporting holder. First, construct the box as a hollow rectangular container with inner dimensions of 15mm by 15mm and a height of 25mm. The walls of the box should be 1.2mm thick. At the top of the box, add two symmetrical outward-flaring lips that angle a...
W = 1.2; X = 15; Y = 15; Z = 25; PlatHeight = 7.8; M = 1; module holder(x,y) { handleXCenter = 5.2; handleYCenter = 5.2; height = 5 + 2*W; union (){ difference() { cube([X+2*W+2*M,Y+2*W+2*M,height]); translate([W,W,-1]) cube([X+2*M,Y+2*M,height+2]); } difference() { translate([0,-handleYCenter...
glb/cad_4d6cc654bf5a.glb
Create a Snowflake Picture Ornament frame by starting with a solid cylinder 64mm in diameter and 3mm high. Remove a smaller concentric cylinder from the center with a diameter of 50mm and a height of 5mm to create a ring. To create the mounting holes, remove four smaller cylinders, each 3.8mm in diameter and 5mm high, ...
intersection() { cylinder(3,32,32); difference() { cylinder(3,32,32); for ( i = [0 : 5] ) { rotate( i * 360 / 4, [0, 0,1]) translate([0, 28, 0]) cylinder(6,1.9,1.9,$fs=.25); } translate([0,0,-1]) cylinder(5,25,25); } }
glb/cad_3e5ab6be71bb.glb
Create a spool holder for a shelf by constructing a mounting bracket and a cylindrical axis. Start with a rectangular base plate measuring 44mm by 44mm with a thickness of 5mm. At the corners of this plate, create four vertical holes with a diameter of 6.3mm and a depth of 12mm to accommodate mounting pins. Attached t...
$fs = 0.3; $fa = 0.3; mink_r = 1; mink_c = 2* mink_r; module mk() { minkowski() { translate([0,0,mink_r]) children([0]); sphere(r=mink_r); } } lhold = 80; d_spool = 45; d_stift = 6.3; st_dist_x = 32; st_dist_y = 25; platte_h = 5; platte_x = st_dist_x + 12; platte_y = 44; holm_t = 3...
glb/cad_e6056cf77ba9.glb
Create a spool holder for a shelf by constructing a mounting bracket with a U-shaped profile. Start with a base plate that is 44mm wide, 5mm thick, and 44mm deep. From this base, extend two vertical walls upward to a total height of 37.3mm. These walls should be spaced 32mm apart. Within these walls, create four verti...
$fs = 0.3; $fa = 0.3; mink_r = 1; mink_c = 2* mink_r; module mk() { minkowski() { translate([0,0,mink_r]) children([0]); sphere(r=mink_r); } } lhold = 85; d_spool = 45; d_stift = 6.3; st_dist_x = 32; st_dist_y = 25; platte_h = 5; platte_x = st_dist_x + 12; platte_y = 44; holm_t = 3...
glb/cad_bd4bd5d52f79.glb
Create an arcade push button housing. Start with a main hollow cylindrical body with an outer diameter of 27mm, an inner diameter of 25mm (creating a 1mm wall thickness), and a total height of 30mm. At the top of this cylinder, add a bezel. The bezel consists of a quarter-torus ring with an outer diameter of 33mm and...
use <../torus.scad> use <../threads.scad> wall_thickness = 1; housing_plunger_diameter = 22; housing_diameter = 27; housing_height = 30; housing_bezel_diameter = 33; housing_bezel_height = 5; housing_bezel_bleed = 1; housing_metrich_thread_pitch = 2.5; housing_use_threading = false; housing_snapin_height = 15...
glb/cad_f72f00ff6a07.glb
Create a customizable measuring cup with a total volume of 745,068 cubic millimeters. The main body is a hollowed-out truncated cone with a wall thickness of 5mm. The exterior is a cone that tapers from a larger circular top to a smaller circular base, while the interior is a matching conical void that leaves a consist...
use <write/Write.scad> use <utils/build_plate.scad> cups = 3.1515926; tbsp = 0; tsp = 0; mL = 0; label = "3.1415926 Cups"; echo(str("Label is ",label)); Font = "write/Letters.dxf"; size = 0.3; build_plate_selector = 0; build_plate_manual_x = 100; build_plate_manual_y = 100; wall = 5; print = 0.4; sq = 1.2*...
glb/cad_1342db6d2958.glb
Create a customizable drawer box system consisting of a housing unit and matching drawers. For the housing, create a rectangular block with a total width of 83.2mm (80mm drawer width plus 1.6mm walls and 0.5mm clearance on each side), a depth of 61.1mm (59mm drawer depth plus 1.6mm walls and 0.5mm clearance), and a t...
use <write/Write.scad>; NUM_DRAWERS = 5; DRAWER_HEIGHT = 15; DRAWER_DEPTH = 59; DRAWER_WIDTH = 80; MESSAGE = " "; TEXT_HEIGHT = 6; part = "drawer1"; HANDLE_SIZE = 10; DRAWER_CORNER_RAD = 2; CLEARANCE = 0.5; WALL_THICK = 1.6; FLOOR_THICK = 1.2; FILLETS = true; $fn = 32; NOFILLETS = !FILLETS; WALL_WIDTH = W...
glb/cad_70fd72ec13c4.glb
Create a Multitone Whistle consisting of five identical whistle units aligned side-by-side along the X-axis, each separated by a 1mm sidewall. For each unit, construct a main body with a central windway channel measuring 12mm wide, 3mm high, and 16mm long. Surround this channel with 2mm thick walls. Attached to the b...
windway_width=12/1; windway_height=3/1; windway_length=16/1; sidewall=1/1; wall=2/1; extra=1/1; chamber_height=10/1; chamber_width=windway_width; ramp_angle=12/1; opening_width=6/1; ramp_length=(wall+extra)/tan(ramp_angle); length_for_a4=176.4/1; num_whistles=5; length1=88; length2=78; length3=74; length4=66; length...
glb/cad_40e56f1db5ba.glb
Create an Omnitrix Badge consisting of a central circular housing and a separate hexagonal base. First, construct the main badge body as a thick disc with a height of 40mm and a radius of 80mm. This disc should be hollowed out by removing a smaller concentric cylinder from the center with a radius of 52mm and a heigh...
sideLengthGlobal = 6; armlenGlobal = 9; armheightGlobal = 3.5; theScale = 8; module omnitrix(sideLength=sideLengthGlobal, armlen=armlenGlobal, armheight=armheightGlobal) { offset = 7.4; magnetheight = 12; color("Gray") difference(){ cylinder(h=5, r2=10, r=12, $fn=sideLength, center="true"); translate([0,0,...
glb/cad_116269a91f2b.glb
Create an Omnitrix Badge by starting with a central cube that is 20mm on all sides. Add a cylinder to the center of the cube, oriented horizontally along the Y-axis, with a radius of 10mm and a total height of 22mm, so that it extends 1mm beyond each opposite face of the cube. Finally, create a small vertical hole thro...
cube_size = 20; hole_diameter = 2.5; hole_radius = hole_diameter/2; hole_depth = 1; show_wheels = "yes"; wheel_thickness = 1; function BEZ03(u) = pow((1-u), 3); bing = 3+4; baz = 3 / hole_depth; difference() { union() { translate([0, 0, cube_size/2]) cube([cube_size,cube_size,cube_size], center=true); ...
glb/cad_bca3204dab3f.glb
Create a universal game cartridge holder. Start with a solid rectangular base block with a width of 69mm (cartridge width of 65mm plus two 2mm outer walls), a height of 10mm, and a depth of 81mm (calculated as 5 cartridges at 13.5mm depth each, plus four 2mm separators and two 2mm outer walls). Carve out five identica...
cartridge_angle = 10; number_of_cartridges = 5; outer_wall_width = 2; bottom_wall_height = 2; separator_width = 2; holder_height = 10; cutout_ratio = 0.75; crossbeam_width = 7; minimum_crossbeam_length = 30; cartridge_width = 65.0; cartridge_depth = 13.5; union() { difference() { bcube_x = cartr...
glb/cad_94547f3f685b.glb
Create a customized case by starting with a solid cube that measures 30mm on all sides. On one face of the cube, engrave the text "Det" using a digital, 8-bit style font. The letters should be recessed into the surface to a depth of 2mm. Ensure the text is positioned such that it is carved out of the main volume of the...
use <MCAD/fonts.scad> thisFont=8bit_polyfont(); x_shift=thisFont[0][0]; y_shift=thisFont[0][1]; Name="Det"; theseIndicies=search(Name,thisFont[2],1,1); module main(TEXT); { difference(){ cube (30,30,30); translate ( 0,0,0); for( j=[0:(len(theseIndicies)-1)] ) translate([j*x_shift,y_shift/2,-1]) { linear_extrude(he...
glb/cad_0bc2a24b4174.glb
Create an air pump adapter consisting of an input nozzle and an output nozzle connected by a handle. Start with the input nozzle: create a base cylinder with a height of 2mm that tapers from a diameter of 12.5mm up to 14.5mm. Above this, add a main cylinder 20mm high with a diameter of 14.5mm. Along this main cylinde...
$fn=100; input_nozzle_diameter = 14.5; input_nozzle_opening_diameter_reduction = 3; input_nozzle_opening_diameter = input_nozzle_diameter-input_nozzle_opening_diameter_reduction; input_nozzle_length = 20; input_nozzle_bevel_height =2; input_nozzle_bevel_width = 2; hose_restraint_width = 2; hose_restraint_height = 4;...
glb/cad_d93a1eaa93c3.glb
Create a Mini-Lamp consisting of two separate parts: a base and a lampshade. For the base, create a hollow cylinder with an outer radius of 20mm and an inner radius of 19mm, reaching a total height of 50mm. Remove a small cylinder with a radius of 1.5mm and a height of 5mm from the center of the bottom face. For the la...
scr(); translate([45,0,0]) #lamp(); module lamp(){ translate([0,0,22]) cylinder(h=20, r1=5.7,r2=3.5); difference(){ hull(){ translate([0,0,7]) sphere(h=2, r=12); translate([0,0,19]) sphere(h=2, r=6.5); } translate([-20,-20,-5]) cube([40,40,5]); translate([0,0,22]) cylinder(h=20, r1=1.5); } } module scr(){ differen...
glb/cad_7552c20d1aef.glb
Create a remote control mount starting with a main rectangular body measuring 150mm in width, 60mm in depth, and 35mm in height, with all edges rounded by a 4mm radius. Carve out a central void from the front of the body measuring 200mm by 60mm by 35mm to create the holder. To allow for dust drainage, remove three narr...
$fn = 100; union() { difference() { round_edge(4) cube([150,60,35],center=true); translate([28,0,0]) cube([200,60,35],center=true); for( i=[-20,0,20]) { translate([0,i,0]) cube([200,10,35],center=true); } } translate([37,44,18]) difference() { round_edge(1) cube([70,26,5],center = true); transla...
glb/cad_117fb36c177a.glb
Create a plastic box clip consisting of a main body and a locking nose. Start with a central cylinder of 58mm length and 6.2mm radius (the sum of a 4.5mm thickness and a 1.7mm radius). Bore a hole through the center of this cylinder with a diameter of 3.4mm. Attached to this cylinder, create a rectangular main arm wi...
connector_diameter = 3.4; width_of_clip=58; thickness_of_clip=4.5; height_of_clip=33.8; depth_of_clip = 7.2; rotation_of_nose_of_clip = 12; how_many_slices = 3; width_of_slices = 5; handle_offset = 0; $fn=80; rotate([90,0,0]) difference() { union() { translate([thickness_of_clip/2+connector_diameter/2,0,-(h...
glb/cad_bf6c09316597.glb
Create a set of cable runners based on a square profile with an internal space of 15mm and a wall thickness of 0.9mm. First, create a straight line tube 50mm long. This is a square tube with a 15mm internal void and a 0.9mm wall. To allow cable entry, remove a rectangular section from the bottom wall, centered along ...
internal_space = 15; thickness = 0.9; length = 50; rounded = false; line_tubes = 1; t_tubes = 1; curved_tubes = 1; curved_tubes_with_left_cut = 1; $fn = 120; cutw = internal_space/2; module makeTube(length = 50) { w = internal_space + 2*thickness; difference() { cube([w, length, w]); tra...
glb/cad_1dc8d921a60e.glb
Create a Paste Extruder consisting of a main body block, a plunger mechanism, and a NEMA 17 motor housing. Start with a main rectangular body block 28mm wide, 35mm deep, and 52mm high. Centered through the length of this block, create a cylindrical hole with a diameter of 16.5mm to accommodate a syringe. At the top of...
use <deps.link/BOSL/nema_steppers.scad> use <deps.link/BOSL/joiners.scad> use <deps.link/erhannisScad/misc.scad> use <deps.link/quickfitPlate/blank_plate.scad> use <deps.link/getriebe/Getriebe.scad> use <deps.link/gearbox/gearbox.scad> $fn=60; function sqr(x) = x * x; module nema17_housing(motor_height = 39.3, side_...
glb/cad_e7fbf48446ff.glb
Create a Slimline herringbone gear set consisting of two double helical gears. First, construct a large double helical gear with 17 teeth, a pressure angle of 30 degrees, and a total height of 5.8mm. The gear should feature a hub diameter of 20mm and a central bore of 8.1mm. The teeth must twist 200 degrees to form t...
include <MCAD/involute_gears.scad> include <MCAD/Shapes.scad> separation=40; module helicalGear(teeth=39, pressure_angle=30, height=12, circles=8){ twist=200; gear (number_of_teeth=teeth, circular_pitch=300, pressure_angle=pressure_angle, clearance = 0.2, gear_thickness = height/2*0.5, rim_thickness = height/...
glb/cad_01f570d2485f.glb
Create a Slimline herringbone gear set consisting of two double helical gears. First, construct a large double helical gear with 39 teeth, a pressure angle of 30 degrees, and a total height of 5.8mm. The gear should feature a hub diameter of 20mm and a central bore of 8.1mm. The teeth must twist 200 degrees to form t...
include <MCAD/involute_gears.scad> include <MCAD/Shapes.scad> separation=40; module helicalGear(teeth=39, pressure_angle=30, height=12, circles=8){ twist=200; gear (number_of_teeth=teeth, circular_pitch=300, pressure_angle=pressure_angle, clearance = 0.2, gear_thickness = height/2*0.5, rim_thickness = height/...
glb/cad_e84cc9f1740c.glb
Create a USBtinyISP-Clone Case consisting of a flat rectangular base with a wall. Start by creating a solid rectangular plate measuring 59mm by 31mm with a height of 2mm. Add a perimeter wall around the edge that is 2mm thick and extends the total height to 4.4mm. The corners of this wall should be rounded with a radiu...
include<common.scad> q=32; $fn=q; board = [57,29]; wall = 2; base_height = 2; linear_extrude(wall) difference(){ square(board+[2,2],true); translate([-.1,0]) for(n=quad){ translate([n[0]*(board[0]/2-2.65),n[1]*(board[1]/2-2.85)]) circle(d=m3); } } linear_extrude(wall+2.4) difference...
glb/cad_a19a5ec60f92.glb
Create a USBtinyISP-Clone Case consisting of a bottom shell and a top cover. For the bottom shell, create a rectangular base with rounded corners based on a board size of 57mm by 29mm. The walls should be 2mm thick and 13.4mm high. Within this shell, remove a central rectangular area of 57mm by 29mm to accommodate th...
include<common.scad> q=32; $fn=q; board = [57,29]; wall = 2; base_height = 11.30+wall; linear_extrude(11.4+wall-3.5) difference(){ hull() for(n=quad){ translate([n[0]*board[0]/2,n[1]*board[1]/2]) circle(d=wall*2); } difference(){ square(board,true); for(n=quad){ ...
glb/cad_d08ea2331ddb.glb
Create a plant pot label consisting of a flat rectangular head and a supporting stem. The head is a rounded rectangle 120mm wide by 40mm high with a total thickness of 3mm and corner radii of 10mm. This head features a recessed inner area 6mm from the outer edges, creating a raised lip around the perimeter; the recesse...
topLine = "Snake Plant"; secondLine = "Dracaena trifasciata"; font = ""; height = 40; width = 120; thickness = 3; inset = 2; radius = 10; $fn = 30; lip = 6; stemLength = 50; stemWidth = 10; stemThickness = 2; translate([radius,radius]){ union(){ translate([0,0,thickness-inset]){ line...
glb/cad_d6c2121df31e.glb
Create a plant pot label consisting of a main rectangular body and a supporting stem. The main body is a rounded rectangle 120mm wide, 40mm high, and 3mm thick, with corner radii of 10mm. This body features a recessed inner area created by a smaller concentric rounded rectangle with a 10mm lip from the outer edge, leav...
topLine = "Snake Plant"; secondLine = "Dracaena trifasciata"; font = ""; height = 40; width = 120; thickness = 3; inset = 2; radius = 10; $fn = 30; lip = 10; stemLength = 50; stemWidth = 10; stemThickness = 2; union(){ translate([radius,radius]){ union(){ translate([0,0,thickness-in...
glb/cad_d135bb36210b.glb
Create a plant pot label consisting of a rectangular head and a supporting stem. The head is a centered rectangle 95mm wide by 40mm high with a thickness of 3mm. Round all four corners of the head with a radius of 3mm. Create a recessed area in the center of the head by removing a smaller centered rectangle 89mm wide b...
topLine = "Snake Plant"; secondLine = "Dracaena trifasciata"; font = "Arroyo"; height = 40; width = 95; thickness = 3; inset = 2; radius = 3; $fn = 30; stemLength = 50; stemWidth = 10; stemThickness = 2; difference(){ translate([0,0,thickness/2]) union(){ cube([width,height-radius,thi...
glb/cad_f42a5b131503.glb
Create a behind-monitor storage box and matching hooks. The box is a hollow rectangular container with outer dimensions of 150mm width, 50mm depth, and 80mm height. The walls and base are 3mm thick. On the rear vertical wall, create rectangular cutout slots for the hooks; each slot is 20mm wide and 3mm high. Position t...
width=150; height=80; depth=50; hook_overhang=12; hook_lip=10; item="box"; thickness=3; hook_width=20; hook_margin=20; hooks_every=80; number_of_hooks=ceil((width-(hook_margin*2)-(hook_width+.5))/hooks_every); hook_offset=(width-(hook_margin*2)-(hook_width+.5))/(number_of_hooks-1); if(item == "box"){ differe...
glb/cad_c0f1bff775f9.glb
Create a holder for a 25mm knife-edge right-angle prism. Start by creating a top plate that is a cylinder with a radius of 22mm and a height of 10mm. From this cylinder, remove a large rectangular section to leave a curved rim and a flat back support. The back support should be a rectangular block 5mm thick, 25mm wide...
bMirror = false; bTop = true; bBottom = false; module edge_mirror(x=0,y=0,z=0){ translate([25/sqrt(2)+x,-25*sqrt(2)/2+y,z]){ difference(){ rotate([0,0,45]){color("blue",0.5)cube(25);} cube(50); } } } module platform(){ h = 2; translate([0,0,-h]){ difference(){ cylinder(h=h,r=44./2,$fn=100); ...
glb/cad_bc8b3ed713e1.glb
Create a pole holder designed to be secured to a wall with staples. The object consists of a flat rectangular base and a semi-cylindrical cradle. The base is a rectangular plate 24mm wide and 55mm to 75mm long with a thickness of 0.1mm. Within this base, create recessed stapler areas to allow the holder to sit flush a...
echo(version=version()); base_W = 24; base_H_short = 55; base_H_long = 75; base_H_margin = 4; base_T = 0.1; default_r_x = 180; default_r_y = 90; default_dif_h = 50; stapler_area_dep = -1.8; stapler_area_len = 12; stapler_area_W = 21; stapler_area_T = 0; pole_diameter = 16; pole_r = pole_diameter / 2; out_r = pole_r + ...
glb/cad_0ad769cc99b7.glb
Create a power cable bracket consisting of a semi-cylindrical clip and a mounting base. Start with a main cylinder that has a diameter of 30mm and a height of 15mm. Remove a smaller concentric cylinder from the center with a diameter of 30mm and a height of 60mm to create a hollow tube. Cut this tube in half along its ...
Clip_Diameter = 30; Clip_Thickness = 15; Screw_Gauge = 4; $fn=100; TZT_Rad=Clip_Diameter/2; TZT_Thk=Clip_Thickness; TZT_Scr=Screw_Gauge; difference () { TZT_CLIP(); if ((TZT_Thk/8)<TZT_Scr) { TZT_SCREW(); } else { translate ([0,0,TZT_Thk/4]) { TZT_SCREW(); } t...
glb/cad_0d2889f1da46.glb
Create a step-up filter adapter with a central clear aperture of 49mm. The main body is a cylinder with an outer diameter of 61.5mm (58mm plus a 1.75mm lip on each side) and a total height of 4mm. The object features two concentric threaded sections. First, create an internal metric thread with a diameter of 52mm and...
include <threads.scad> small_filter_thread=52; large_filter_thread=58; clear_lens=49; support_addon=0.8; small_filter_pitch=0.75; large_filter_pitch=0.75; filter_lip_width=1.75; filter_lip_height=1; filter_depth=3; small_filter_depth=3*filter_depth; large_filter_depth=filter_depth; $fn=360; union(){ difference(...
glb/cad_e86f7909ecd5.glb
Create a Filament Pulley consisting of a central bearing assembly held between two symmetrical mounting brackets. First, construct the pulley core using two identical washer-like discs. Each disc has an outer radius of 32mm, a thickness of 1.2mm, and a central hole with a radius of 17.9mm. To secure the bearing, add ...
use <ball_bearing.scad> module clips(ri, ra, height) { for (i = [0 : 5]) rotate([0, 0, 60*i]) rotate([0, 0, 30]) difference() { cylinder(r=ra,h=height,$fn=60); translate([0,0,-0.1]) cylinder(r=ri,h=height+0.2); translate([-ra-0.1,0,-0.1]) cube([2*ra+0.2,ra+0.2,height+0.2]); rotate([0,0,151]) translate([-ra-0....
glb/cad_72528879f88c.glb
Create a vacuum adapter for an orbital sander consisting of a tapered hollow tube. Start with a base cylinder that has an outer diameter of 45.5mm and a height of 37.5mm. Transition this base into a narrower upper cylinder with an outer diameter of 27.6mm and a height of 20mm, creating a smooth conical taper between th...
hose_end=44.5; module sequentialHull(){ for (i = [0: $children-2]) hull(){ children(i); children(i+1); } } module vacAdapt0(hoseEnd=44.5){ d0 = 26.5; s0d = 4.9; s0offset = 12; s0h = 2.5; s0end = s0offset+s0d+3; h0 = hoseEnd; h1 = hoseEnd+1; hd = 25*1.5; th = 1.6; th1 = 1.6; s1offset = 18; ...
glb/cad_4ddb64f4002b.glb
Create a six-sided die named "New Thing" as a cube with a total side length of 200mm. Round all edges and corners with a radius of 5mm. On each of the six faces, engrave text to a depth of 5mm. The text on the first, third, and fifth faces should read "Isabella", and the text on the second, fourth, and sixth faces shou...
diesize = 200; rounding = 5; textdepth = 5; textheight = 30; side1text = "Isabella"; side2text = "Gabrielle"; side3text = "Isabella"; side4text = "Gabrielle"; side5text = "Isabella"; side6text = "Gabrielle"; include <more_fontz/MavenPro_Black.scad> difference() { translate([rounding,rounding,rounding]) minkowski()...
glb/cad_ad01e627d5be.glb
Create a printable bearing with an inner diameter of 37.5mm, an outer diameter of 75mm, and a total thickness of 12mm. First, construct the inner and outer races as a single concentric unit. The races are defined by a profile that creates a circular track for the pins, maintaining a 0.5mm clearance between the races ...
ID = 37.5; OD = 75; thickness = 12; pinDiam = 6; clearance = 0.5; a = 1.125; $fa = 0 + 1; $fs = 0 + 1; pi = 0 + 3.1415826; raceRad = 0.25 * (ID + OD); ymax = 0.5*thickness; pinRad = 0.5*pinDiam; b = thickness / (4 * a); fatRad = pinRad + b; numPins = floor(pi * raceRad / (pinRad + b + clearance)); wallThick =...
glb/cad_3ac18e30b0c9.glb
Create a Triple Tripod stand by constructing three nested, concentric versions of the same geometric shell. The base shape is a three-sided pyramid created by a Minkowski sum of a cone—with a 30mm base diameter and 30mm height—and a 2mm sphere. From this pyramid, remove two spherical voids: one centered at the base wit...
stand(); translate([0,0,14])scale([.5,.5,.5])stand(); translate([0,0,21])scale([.25,.25,.25])stand(); module stand(){ difference(){ pyramid(); #scale([1.2,1.2,1.4])sphere(d=20,$fn=32); #translate([0,0,22])scale([1.3,1.3,1.3])sphere(d=15,$fn=32); } } module pyramid(){ minkowski(){ cylinder(d1=30,d2=0,h=30,$fn=3); spher...
glb/cad_90dc2803f03b.glb
Create a fused battery terminal pole shoe for a 12V lead-acid battery. The main body is a truncated cone with a height of 17.5mm, featuring a top diameter of 16.7mm and a bottom diameter of 18.2mm. The walls are 3mm thick, with a 2mm thick base. Carve a conical cavity out of the center to accommodate the battery pole....
module cubecxy(size){ translate([0,0,size[2]/2])cube(size,true); } module carfuse(eps=[0,0,0]){ cubecxy([18.2,5,2]+eps); cubecxy([18.2,1.1,10.5]+eps); difference(){ cubecxy([18.2,3.5,6]+eps); cubecxy([16,3.6,6.1]+eps); } cubecxy([16.5,2.8,12]+eps); cubecxy([6.5,3.6,12]+eps); diff...
glb/cad_62b65a1b4567.glb
Create a 3D model of a truncated octahedron. Scale the geometry so that the edge lengths are 2 units, resulting in a distance of approximately 5.66mm between opposite square faces and approximately 4.90mm between opposite hexagonal faces. The final shape should be a convex polyhedron with 14 faces: 6 square faces and 8...
basic_trunc_octahedra(); module quarter_to() { scale(6.25) quarter_octa(); } module two_quarter_to() { scale(6,25) union() { quarter_octa(); translate([4*sqrt(2),0,0]) rotate([0,0,180]) quarter_octa(); } } module four_quarter_to() { scale(6.35) union() { union() { quarter_octa(); translate([4*sqrt(2),0,0]) rotate([0...
glb/cad_b15464d2de04.glb
Create a Customizable Tslot profile and corner bracket. For the T-slot profile, create a linear extrusion with a height of 60mm. The cross-section is a square with rounded corners (radius 1.5mm) and a side length of 20mm. Subtract a central circle with a diameter of 5mm. Additionally, subtract four identical T-shaped...
part=0; t_select=1; tslot_len=60; t_set=1; cb_select=3; if (part==0){ color("Pink") translate([-35, 20, 0]) single_profile(3, 45); color("LightGreen") translate([0, 17.5, 0]) single_profile(2, 40); color("PaleTurquoise") translate([30, 15, 0]) single_profile(1, 38); color("HotPink") tra...
glb/cad_3d9321fcc535.glb
Create a customizable box with a lid featuring a latch mechanism. The main box body is a rectangular prism with overall outer dimensions of 150mm width, 100mm depth, and 42mm height. The walls are 4mm thick on the left and right, and the floor is 2mm thick. Create a hollow interior cutout starting 2mm from the bottom, ...
$fn=30; insideDimension=false; lid=true; box=true; width=150; depth=100; height=50; floorThickness = 2; wallThicknessLR=4; wallThicknessFront=10; wallThicknessBack=8; lidThickness=8; ODheight = (insideDimension==false) ? height - lidThickness : height + floorThickness; echo("ODheight=",ODheight); ODwidth = (insi...
glb/cad_deb52603a520.glb
Create a modular camera mount consisting of a rounded rectangular frame and a male connector. First, construct the main frame as a rounded rectangle with an outer width of 32mm and height of 32mm. The frame should have a wall thickness of 2mm and corner radii of 4mm. The center of the frame is hollowed out, leaving a...
width = 32; height = 32; radius = 4; connector_type = "male"; rotate_90_degrees = 0; $fn = 64; wall = 2; module _profile(l, r, b) { difference() { union() { circle(r); translate([0, -r]) square([l+r, 2*r]); } circle(b); } } module gopro_male(length=1) { ...
glb/cad_f9d744f4edda.glb
Create a sewing machine thread post by constructing three coaxial cylindrical sections. Start with a base cylinder that has a radius of 3.8mm and a height of 12mm, positioned at the bottom. Directly above this, place a second cylinder with a radius of 4.5mm and a height of 2mm. From the top of the base, create a tapere...
hull() { cylinder(r=3.2, h=10); translate([0, 0, 30]) cylinder(r=2.5, h=20); } translate([0, 0, -2]) cylinder(r=4.5, h=2); translate([0, 0, -14]) cylinder(r=3.8, h=12);
glb/cad_90e7d7d3f27b.glb
Create a serger cone reinforcement by constructing a tapered cylindrical body with a central hole. Start by forming a solid shape that transitions from a base cylinder with a radius of 17mm and a height of 10mm to a second cylinder positioned directly above it with a radius of 16mm and a height of 10mm, creating a tota...
difference() { hull() { cylinder(r=17, h=10); translate([0, 0, 10]) cylinder(r=16, h=10); } translate([0, 0, -1]) cylinder(r=5, h=22); }
glb/cad_e6d920730f96.glb
Create a Holder for pill boxes. Start by constructing a main rectangular block with rounded corners and edges. The overall dimensions are 113.4mm in width, 150mm in length, and 32.2mm in height, with a wall thickness of 1.8mm. On the top surface, create three identical rectangular compartments for pill boxes. Each com...
thickness=1.8; moduleW=35; moduleH=23; moduleL=150; nModules=3; pensilDexact=7.62; pensilD=8.2; nHoles=3; boxW=nModules*moduleW+2*(2+nModules-1)*thickness; boxH=4*thickness + pensilD + moduleH; boxL=moduleL; module outtor (r,angle=360) { $fn=32; rotate_extrude(angle=angle) difference() { square...
glb/cad_f83ff43fa671.glb
Create a movement tray for three miniatures. Start with a base plate that is 1mm thick. On this plate, create three circular recessed holes, each with a diameter of 33mm and a depth of 3mm. Position the centers of these holes in a straight line, spaced 50.5mm apart from edge to edge, resulting in a center-to-center dis...
model_diameter = 33.0; model_count = 3; model_distance = 50.5; border_width = 2.0; floor_thickness = 1.0; hole_depth = 3.0; link_width = 5.0; $fn = 64; total_height = floor_thickness + hole_depth; model_footprint = model_diameter + 2*border_width; center_distance = model_diameter + model_distance; a = center_di...
glb/cad_0a67fb6df94c.glb
Create an RC Servo Mount consisting of a base and three walls. Start with a rectangular base measuring 66mm wide, 28mm deep, and 2mm thick. Attach a back wall to the rear edge of the base, 2mm thick and 22mm high. Add two side walls, each 6mm wide, 28mm deep, and 22mm high; position the first at the left edge and the s...
$fn = 32; smwall = 2.0; screwclr = 3.1; screwthrd = 2.2; module svo_mnt() { difference() { union() { cube([6,28,20+smwall]); translate([48,0,0]) cube([6,28,20+smwall]); translate([-8,0,-smwall]) cube([48+6+16,28,smwall]); translate([-8,28,-smwall])cube([48+6+16,smwall,20+2*smwa...
glb/cad_b68721f56a05.glb
Create a Morse Code Key consisting of a base, a pivoting lever, and a retainer. Start with a rectangular base measuring 60mm by 24mm by 10mm, sitting on a wider platform of 65mm by 34mm by 3mm. In the base, create a central hollow area of 57mm by 21mm by 10mm. Incorporate a cylindrical cutout for a 3.5mm panel mount ...
key(); pad(); translate([0,0,-1])base(); retainer(); module retainer(){ difference(){ union(){ translate([19,-4,-6])cube([8,3.5,16]); translate([19,14.5,-6])cube([8,3.5,16]); translate([19,-4,10])cube([8,22,3.5]); } union(){ translate([23,7,9...
glb/cad_4e87c86fdf3f.glb
Create a parametric tube adapter with a constant wall thickness of 2mm. The object is a rotationally symmetrical hollow shell consisting of three vertical sections. Start with a bottom cylindrical section that has an inner diameter of 100mm and a height of 20mm. From the top of this base, create a conical transition se...
$fn=360; wall_th=2; ID_btm=100; ID_top=40; Vert_btm=20; Vert_mid=60; Vert_top=30; echo("total height=",Vert_btm+Vert_mid+Vert_top); rotate_extrude(){ translate([ID_btm/2,0]) square([wall_th,Vert_btm]); translate([ID_top/2,Vert_btm+Vert_mid]) square([wall_th,Vert_top]); hull(){ translate([ID_btm/2,Vert_btm]) sq...
glb/cad_c4576ba98660.glb
Create a Trackpad USB Power Bracket designed to hold a circuit board. Start with a main rectangular frame that is 101.5mm long, 14mm wide, and 4.5mm high. Carve a central longitudinal cutout from the top to accommodate a circuit board that is 63mm long, 11mm wide, and 10mm high. Within this frame, create a cylindrica...
terminal_h = 1.5; inner_slot_d = 14; inner_slot_l = 103-terminal_h; outer_slot_d = 17.75; outer_slot_l = 130; module inner_slot() { translate([-1,0,0]) rotate(a=90, v=[0,1,0]) cylinder(d=inner_slot_d, h=inner_slot_l); } module outer_slot() { rotate(a=90, v=[0,1,0]) cylinder(d=outer_slot_d, h=outer_sl...
glb/cad_19eebcd97e9f.glb
Create a parametric pegboard drill bit holder consisting of two parallel rows of vertical holes tilted forward at a 20-degree angle. The first row contains seven identical holes, each with a diameter of 7.75mm and a depth of 50mm. The second row contains eight holes of increasing size and depth: diameters of 2.75mm, ...
$fn = 20; include <peg_board_vars.scad> drill_list2 = [ [ 2, 20 ], [ 3, 25 ], [ 4, 30 ], [ 5, 35 ], [ 6, 35 ], [ 8, 40 ], [ 8, 40 ], [ 10, 45 ], ]; drill_list = [ [ 7, 50 ], [ 7, 50 ], [ 7, 50 ], [ 7, 50 ], [ 7, 50 ], [ 7, 50 ], [ 7, 50 ], ]; bit_hole_extra = 0.75; bit_separation = 2;...
glb/cad_98bbc2a9687c.glb
Create a magnetic bit holder designed for a tool mount. The main body is a rounded block with a total height of 23.9mm. Create two parallel rows of six circular holes for hex bits. Each bit hole has a diameter of 7.35mm and a depth of 10mm. Position these rows so there is a gap between them to accommodate magnets. In...
num_bits = 6; bit_depth = 10; bit_dia = 7.35; magnet_dia = 6.37; magnet_height = 6.45; magnet_shell = 0.5; square_magnet = 0; shell_thickness = 1.2; horizontal_bit = 1; bit_cutouts = 1; screw_offset = 0; makita_mount_depth = 3.2; makita_top_height = 8.3; makita_bottom_height = 10.3; makita_logo_height = 16; ...
glb/cad_4a86e3baf742.glb
Create a solder paste dispenser attachment by constructing a hollow cylindrical holder with a flat mounting tab. Start with a cylinder that has an outer diameter of 28mm and an inner diameter of 25.6mm, extruded to a height of 20mm. To create the mounting base, add a rectangular block to the side of the cylinder that i...
inner_diameter = 25.6; outer_diameter = 28; height = 20; wall_length = 8; tab_length = 22; tab_width = 20; tab_height = 5; $fn=60; translate([-tab_width/2, outer_diameter/2, 0]) cube([tab_width, tab_length+wall_length, tab_height]); linear_extrude(height) difference() { union() { translate([-outer_diamet...
glb/cad_608fdd449378.glb
Create an Experimental Whistle consisting of two symmetrical half-shells that fit together to form a main cylindrical chamber. The outer radius of the main chamber is 12.5mm with a total height of 15mm. Inside the chamber, carve out a central circular cavity with a radius of 3.5mm and a height of 15mm to accommodate ...
trail = 6; lrail = 50; wwindow = 11; lwindow = 5; wchannel = wwindow; tchannel = 1.33; lchannel = 50; lblade = 40; ledge = trail*0.75; railshift = 18; shift = 3; channelshift = lwindow/2+shift; bladeshift = lwindow/2-shift; eps=0.01; dplug = 0; t = 1.5; dt = 0.75; rmain = 25/2+0.75*0; rin = rmain-t; hin = 20-5; d...
glb/cad_bf54c8017213.glb
Create a rotary knob with a total height of 20mm and an outer diameter of 36mm. The main body is a 9-sided prism with a 1.5mm chamfer at the base. Hollow out the center to create a wall thickness of 3mm, leaving an inner diameter of 14mm. At the base, create a D-shaped shaft hole with a diameter of 6.1mm and a flat wi...
height = 20; shaft_diameter = 6.1; D_width = 4.7; outer_diameter = 36; wall_thickness = 3; inner_diameter = 14; shaft_length = 11; plunge_depth = 3; clearance_height = 8; no_sides =9; top_chamfer=1.5; with_pointer = "yes"; point_size = 5; point_angle = 90; extra_feature="scollops"; number_of_features=3; ...
glb/cad_960864542bea.glb
Create a customizable soap dish with a lozenge-shaped footprint, measuring 68mm in width and 100mm in length. The main body is a flat tray with a height of 3mm. This tray features a solid border 3mm wide around the perimeter, while the interior consists of a mesh grid made of parallel slats 2mm wide, spaced 5mm apart. ...
Width = 68; Length = 100; Height = 8; meshscreen_d=Width; meshscreen_l=Length-Width; meshscreen_borderwidth=3; meshscreen_h=3; layer_h=0.3; meshthread_w=2; mesh_space=5; default_height=10; default_border_w=1; default_width=60; default_length=160; meshscreen_lozenge( h=meshscreen_h, border_w=meshscreen_borderwid...
glb/cad_d8a1f8604a13.glb
Create a Toy Propeller Fin by constructing a main body that is an elliptical plate, scaled by 1.15 along its length. The main sheet has a thickness of 1.5mm and a radius of 50mm. At the root, create a thickened section 20mm wide and 24mm high. Shape the root by removing two concave cylindrical sections with a radius o...
$fa = 2; eps=0.05; tsupportmembrane = 0.4; rconc = 40; rconv = 50; elongate =1.15; h1 = 24; t1 = 20; t0 = 1.5; xshift = sqrt( pow(rconc+rconv,2)- pow(rconc+h1/2,2) ); ang = atan((rconc+h1/2)/(rconc+rconv)); hblock = 2* rconv*sin(ang)+5; f = 2.0; rbreak = t1*1.1; rscrew = 5/2; r1bearing = 16/2+0.2; r2bearing = 18...
glb/cad_f6e5f935eda8.glb
Create a 3D model of the SXM project parts consisting of several stacked and adjacent geometric components. Start with a base rectangular plate measuring 260mm x 150mm x 12mm. Subtract a cylinder with a 10mm diameter at x=30, y=75, and two more cylinders with 10mm diameters at x=230, y=100 and y=50. Additionally, rem...
$fa=5; $fs=0.05; eps=0.05; rm4 = 3.5/2; rm3 = 2.8/2; rm1 = 0.9/2; rwirehole = 0.6/2; rcorner=1.5; xbbox = 260; ybbox = 150; zmain = 12; assembly(); module assembly(yshift=0) { color("deepskyblue") part1(); translate([0,0,12+10]) color("dodgerblue") part2(); translate([0,yshift,0]) translate([202-5,ybbox/2+...
glb/cad_2b8984a4144a.glb
Create a replaceable high heel surface by combining a rectangular block and a tapered cylinder. Start by placing a rectangular prism measuring 20mm in length, 18mm in width, and 12mm in height. Attached to this block, center a tapered cylinder with a height of 12mm, a bottom radius of 10mm, and a top radius of 13mm, po...
difference () { union() { translate ([-0.5,0,0]) cube (size=[20,18,12]) ; translate ([9.5,0,0]) color ("red") cylinder (h=12, r1=10, r2=13); } color ("green") translate ([9.5,0,-1]) cylinder (h=5.1, r1=2, r2=2); color ("blue") translate ([9.5,0,4]) cylinder (h=10, r1=4, r2=4); }
glb/cad_ffcc0632eb68.glb
Create a filament coloring accessory consisting of a central base and two angled marker sleeves. Start with a conical base pilon that is 15mm high, tapering from a radius of 25mm at the bottom to 12mm at the top. Centered on this base, add a vertical filament guide consisting of two stacked cylinders: a lower section 1...
mw=16; ls=30; fmd=1.75; rmi = mw/2; rmo = mw/2 + 2; fmr = fmd+1 /2; difference (){ union () { color ( "green") cylinder (h=15, r1=25, r2= 12); union () { difference () { color ("green") translate (v=[0,0,25]) cylinder (h=15, r1=2.5, r2= 4); color ("red") translate (v=[0,0,35]) cylinder (h=15, r1=3, r2=3); } } rot...
glb/cad_3ad9fd3132de.glb
Create a Variable GraviTrax compatible spacer with a total collapsed height of 40mm. The object consists of a telescoping assembly of concentric threaded cylinders capped at both ends by hexagonal plates. The top and bottom caps are rounded hexagons with a width of 45.6mm and a height of 5mm. The bottom cap is a solid...
use <thread_profile.scad> desired_height = 40; outer_diameter = 45.6; diameters = [outer_diameter*0.6/4.5,outer_diameter*1.8/4.5, outer_diameter*3/4.5, outer_diameter]; top_or_down_clearance = 0.5; clearance_outer_thread = 0.4; mypitch=4; main_hexagon_width = 45.60; male_connector_width = 29.78; male_connector_c...
glb/cad_169d09fb2658.glb
Create a 3D model of a "solid F" pentomino shape. The model is composed of a series of 10mm cubes arranged in a specific grid. Construct the shape by placing cubes at the following coordinates (x, y, z): - (1,1,0), (1,1,1), (2,1,1), (3,1,1), (1,1,2) - (0,0,0), (0,1,0), (0,1,1), (0,0,2), (0,1,2) - (3,0,0), (3,0,1), (3,...
view_answers(happy_face_a); module view_answers(file) { color("black") join_cubes(file,1,5); color("orange") join_cubes(file,6,5); color("lightgreen") join_cubes(file,11,5); color("lightblue") join_cubes(file,16,5); color("gray") join_cubes(file,21,5); color("red") join_cubes(file,26,5); ...
glb/cad_435de1fb9160.glb
Create a Trapezoid Slide Lock by starting with a rectangular block measuring 60mm in length, 25mm in width, and 30mm in height. From this main body, remove a trapezoidal prism that extends through the entire 30mm height of the block. This trapezoidal cutout should start 5mm from the bottom face and be defined by a base...
h = 30; off = 15; folga = 1; trap_dif = 3; trap_h = 10; trap_l = 30; paraf_r= 2; paraf_h= 5; translate([off, off*.8, 0]){ difference(){ translate([-off, -off,0])cube([trap_l + 2*off,trap_h + off,h]); translate([0,0,5] )linear_extrude(height = h + 5, center = false, convexity = 10) polygon(points=[[0,0],[trap_dif,tr...
glb/cad_94de2626b305.glb
Create a Virus model consisting of two interlocking rectangular blocks with a height of 8mm. The first block is a solid rectangular prism. The second block is a rectangular prism of the same height, but it features a rectangular cutout (recess) measuring 5.5mm in length and 5mm in width. Within this recess, add a pro...
$fs = 0.3; $fa = 0.3; test = true; z = 8; o = 0.5; o2 = 2 * o; function flex_overlap() = o; rec_width = 5.0; rec_length = 5.5; function flex_recess_width() = rec_width; function flex_recess_lenght() = rec_length; ton_width = rec_width - o2; module r90(f=1) {rotate([90*f,0,0]) children(0);} module recess() { tran...
glb/cad_348862abfdb9.glb
Create a Razor Hanger designed to fit a square towel rack. Start with a main body that is a cube 45mm wide, 23.3mm high, and 23.3mm deep, rotated 45 degrees on the X-axis. From this body, remove a central square prism that is 60mm long, 21.3mm wide, and 21.3mm high, also rotated 45 degrees on the X-axis, to create a ho...
$fn=200; bracket_thickness = 2; bracket_width = 45; towel_rack_width = 21.3; towel_rack_length = 60; hanger_radius = 12.5; offset = sqrt(pow(towel_rack_width, 2)/2); bracket_offset = sqrt(pow(bracket_thickness, 2)/2); module towel_rack() { color("Brown") rotate(a=45, v=[1,0,0]) cube([towel_rack_length, towel_rack...
glb/cad_f2e2edd39c38.glb
Create a C9 LED bulb replacement consisting of a thin-walled hollow shell. Start with a base ring centered at the origin with an outer diameter of 14.5mm, a height of 0.3mm, and a wall thickness of 0.4mm. Above this base, build the bulb body using a series of stacked, hollow conical sections, each with a wall thickne...
bulb( 14.5, 0.4); module bulb(mountDiameter, wallThick) { baseHeight = 5; union() { ring(mountDiameter,wallThick,baseHeight); translate( [0,0,baseHeight] ) bulbPart(mountDiameter, 24,wallThick, 10); translate( [0,0,baseHeight+10] ) bulbPart(24, 27, wallThick, 7); translate( [0,0,baseHeight+17] ) bu...
glb/cad_d30e64c19f13.glb
Create a Sani-BROOSH Toothbrush Holder designed to hold a cylindrical jar and a toothbrush. Start by creating a circular base ring with an outer diameter of 48.65mm and a cross-sectional radius of 6mm. This ring should be a torus-like shape, but flattened on the inner bottom surface to sit flush. Inside the center of ...
part = "assembly"; jar_od = 31; jar_h = 50; toothbrush_length = 200; base_r = 6; $fa = 2; $fs = 2; holder_h=toothbrush_length * 2/3; base_od=jar_od+base_r+jar_od*0.55; arm_setback = 0; arm_t = base_r; arm_l = holder_h; module jar(tol=0) { translate([0,0,3]) cylinder(r=jar_od/2+tol/2, h=jar_h); } module...
glb/cad_95ac98bd9c4d.glb
Create a rubber band retainer for a trackball scroll ring with a total length of 41mm. Start with a main rectangular body 40mm long, 4mm wide, and 2mm thick. At one end, create a raised vertical tab that is 7mm wide, 4mm deep, and 2mm thick. This tab contains a centered vertical hole 7mm in diameter, which is bored t...
length = 41; translate ([0,4,0]) cube ([12,3,2]); translate ([15,4,0]) cube ([length-16,3,2]); translate ([0,.5,0]) cube ([length-1,3.5,2]); translate ([0,0,.5]) cube ([length-1,.5,1]); rotate([0,90,0]) translate ([-1.5,.5,0]) cylinder(h=length-1.5, r=.5, $fn=100); rotate([0,90,0]) tra...
glb/cad_b132208c1b80.glb
Create a Gap Test Print consisting of a rectangular base with rounded corners. The base should have a height of 1mm, a width of approximately 35mm, and a length of approximately 30mm, with a corner radius of 5mm. On the top surface of this base, create a series of 10 parallel rectangular slots. Each slot must be 16mm ...
use <write/Write.scad> _style = 2; _start = 0.2; _end = 2.0; _increment = 0.2; _gap = 3.6; _height = 3; _length = 16; _baseHeight = 1.0; _title = "GAP TEST PRINT"; _textEmboss = 0.25; _titleHeight = 4; _fontHeight = 3; _textGap = 3; _edgePadding = 5; eps = 0.1 * 1; $fn=48 * 1; module rrect(h, w, l, r) {...
glb/cad_b9272c5e47de.glb
Create a battery cover for a mini keyboard. Start with a central rectangular plate measuring 18mm wide, 76mm long, and 2mm thick. On the top surface of this plate, center a rectangular cutout measuring 22mm wide, 20mm long, and 2mm deep. Add two angled side walls to the main plate: one positioned at x=-10mm, rotated ...
translate([-6, 0, -4]) cube([1.6,72, 4], center = true); translate([6, 0, -4]) cube([1.6,72, 4], center = true); translate([0, 0, -1]) union(){ translate([0, 0, 0]) cube([18,76, 2], center = true); difference() { union(){ translate([-10, 0, -3.6]) rotate ([0,12,0]) cube([1.5,18,11], center = true...
glb/cad_d43b40784f37.glb
Create a laser cutter tube hanger by constructing a thick, C-shaped bracket with a height of 25mm. Start with a main cylindrical body that has an outer radius of 36.25mm and an inner bore radius of 26.25mm, both 25mm tall. Cut a wide rectangular notch out of one side of the cylinder to create the open C-shape, using ...
module hanger(){ difference(){ union(){ rotate([0,0,-45+180]){ difference(){ cylinder(r=26.25+10,h=25,$fn=100,center=true); translate([0,25,0]) cube([80,40,25],center=true); cylinder(r=26.25,h=25,$fn=100,center=true); } } translate([32.5,0,0]) cube([7.5,30,25],center=true); translate([0,32.5,0]) cube([30,7.5,25],...
glb/cad_ff1f79fa8706.glb
Create a Customizable Round Object Handle consisting of a mounting plate and a handle grip. First, create a mounting plate with a thickness of 8mm. The plate's inner edge must follow a circular arc with a radius of 75mm. The outer edge of the plate is defined by a larger concentric arc, with the plate's total width b...
$fn=60; displayObject=0; inputType=1; radSize=75; chordLength=90; arcHeight=15; holeNumber=3; holeDia=4.3; HoleCounterboreDia=8.5; HoleCounterboreDepth=3; holeMargin=5; holeHorC2C=34; holeVerC2C=12; handleBaseWidth=60; handleEndWidth=48; handleBaseThick=8; handleEndThick=5; handleLenght=25; handleHole...
glb/cad_cbc373fdaa21.glb
Create a chess board consisting of a main base and a grid of alternating squares. Start by creating a square base plate measuring 150mm by 150mm with a thickness of 5mm. Centered on this plate, place a playing grid of 120mm by 120mm. This grid is composed of an 8x8 array of smaller squares, each measuring 15mm by 15mm....
$fa=1; $fs=0.4; E = 0.001; side = 15*8; height = 5; border = 15; border_thick = 4; board_thick = 2; n_supports = 4; support_thick = 2; black_height = 2; white_height = 1; full_side = side + 2*border; font = "DejaVu Sans:style=Bold"; translate([-side/2, -side/2, 0]) { difference() { union() { ...
glb/cad_c5ba41cc0fd9.glb
Create a Snow Scooter Shoe bushing by constructing a composite cylindrical part. Start with a central cylinder that has a height of 17.75mm and a radius of 7.9mm. Around the lower section of this central cylinder, add a wider outer cylinder with a height of 5mm and a radius of 15mm, centered vertically so it aligns wit...
module bushing_r (height, out_height, out_radius, in_radius, hole_radius) { $fs = $fs * 0.01; difference () { union () { cylinder(h = height, r = in_radius, center = true); translate ([0, 0, -((height/2)-(out_height/2))]) cylinder(h = out_height, r = out_radius, center = true); } translate ([0, 0, -he...
glb/cad_6ef6dbffa3dc.glb
Create an Interlocking Staggered Loom Band Loom consisting of two distinct rectangular base components. Each base is 175mm long, 49.5mm wide, and 5mm thick. For the first base, create a grid of pegs arranged in 3 rows and 7 columns. The pegs are spaced 12.5mm apart lengthwise and 16.5mm apart widthwise. In the second ...
$fn=30; bll=175; blw=49.5; blt=5; pgh=15; pgw=10; pgn=8; pgc=4; pgb=4; pgt=3; lod=9; loo=2; spw=16.5; spl=12.5; sph=2; ofw=(blw-(2*spw))/2; ofl=(bll-(13*spl))/2; zz=(pgw-pgn)/2; print(); module print() { rotate([0,0,90]) { translate([-bll/2,-blw-lod,0]) loom(0); translate([-(bll/2)+lod-loo,lod-4,0]) ...
glb/cad_30d14056d15a.glb
Create a crystal cluster consisting of a circular base and several protruding spires. Start by creating a thin cylindrical base with a diameter of 20mm and a height of 5mm. From the center of this base, arrange seven surrounding spires and one central peak spire. Each spire should be constructed as a hexagonal prism wi...
$fn = 6; module crystalSpire(diameter, height, xr, yr, zr){ rotate([xr,yr,zr]){ cylinder(d=diameter, h=height); translate([0,0,height]){ cylinder(d1=diameter, d2=0, h=height/3); } } } module crystalBase(numBaseCrystals){ angles = rands(5, 50, numBaseCrystals*2); ...
glb/cad_30431feefc5a.glb
Create a DC Hobby Motor mount compatible with interlocking bricks. The base is a rectangular plate 48mm wide by 8mm deep with a height of 2.67mm. On the top surface of this base, add two mounting posts positioned 16mm apart (center-to-center). Each post is a block 8mm wide and 8mm deep with a height of 3mm. Centered o...
use <../LEGO.scad/LEGO.scad>; use <../hobby_dc_motor/hobby_dc_motor.scad> stud_type = "solid"; lego_block_height = 9.6; lego_stud_spacing = 8; lego_stud_height = 1.8; lego_tolerance = 0.2; brand = "lego"; lego_horizontal_hole_diameter = (brand == "lego" ? 4.8 : 4.8 * 2); lego_horizontal_hole_z_offset = (brand == "le...
glb/cad_56787da5f775.glb
Create a Z axis coupler with a total height of 30mm and an outer diameter of 20mm. The main body is a cylinder with a slight chamfer of 0.6mm at both the top and bottom edges. Bore two concentric holes along the central vertical axis: one with a diameter of 5mm for the top half and one with a diameter of 8mm for the to...
height = 30; od = 20; id1 = 5; id2 = 8; difference() { union() { translate([0, 0, height-0.6]) cylinder(d1=od, d2=od-0.6, h=0.6, $fn=64); translate([0, 0, 0.6]) cylinder(d=od, h=height-1.2, $fn=64); cylinder(d1=od-0.6, d2=od, h=0.6, $fn=64); translate([max(id1, id2)/2+2, -2.5, h...
glb/cad_ba8c6c777fc5.glb
Create a Magnetic Effector platform with a height of 8mm. The main body is a cylinder with a radius of 26mm and a central hole with a radius of 15mm. Around the perimeter, create three identical arm assemblies spaced 120 degrees apart. Each assembly consists of a cylindrical protrusion with a radius of 6mm centered 1...
M3HoleDiameter = 3.6; M3NutDiameter = 6.8; WithZSensor = false; With3DRSimpleMountCompatibility = false; HotEndCaptiveNut = true; module NewPlatform(flipped=false) { height = 8; MountDistance = 20.2; MagneticAngle = 30; MagneticHeight = -1.6; MagneticWidth = 30; MagnetOuterDiameter = 9.8; MagnetInnerDiameter =...
glb/cad_95823eb19177.glb
Create a LittleBits socket base consisting of a rectangular platform with two small cylindrical pegs on top. Start by creating a rectangular base measuring 25mm in length, 9mm in width, and 2.75mm in height. Position two cylinders on the top surface of this base. Each cylinder must have a radius of 3mm, a height of 2.2...
socket_radius = 3; socket_height = 2.25; socket_interval = 6.8; base_x = 25; base_y = 9; base_z = 2.75; union() { cylinder(h=socket_height,r=socket_radius,$fn=25); translate(v=[2*socket_interval,0,0]) cylinder(h=socket_height,r=socket_radius,$fn=25); translate(v=[-(base_x/2-socket_interval),-base_y/2,-base_z]) cu...
glb/cad_5725e326a97c.glb
Create a Money Sock coin holder. Start with a rectangular base measuring 76mm wide, 120mm long, and 5mm thick. At the rear of the base, add a vertical rectangular tab that is 76mm wide, 8mm thick, and 70mm high. Cut a circular hole through this vertical tab to create a slot for coins; the hole should be centered and ...
content1 = "Cristina's"; content2 = "Sparstrumpf"; font_style = "Comic Sans MS:style=Bold Italic"; font_size = 8; angle = 15; money_sock(); module money_sock() { rotate([0,0,90]) translate([-38,-60,0]) { difference() { cube([76,120,5]); translate([38,109,-0.1]) cylinder(h=5.2,r=3); tran...
glb/cad_8937a2942b1c.glb