Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a replacement auto siphon end by constructing a main body that transitions from a cylinder to a rounded top. Start with a cylinder 14mm high with a radius of 14mm. On top of this cylinder, add a shape created by the convex hull of a cylinder with a 14mm radius and 16mm height, and a sphere with a radius of 6.25m...
difference () { union () { for ( i = [0 : 3] ) { rotate( i * 360 / 4, [0, 0, 1]) translate([-1, 0, 0]) cube(size=[2,26/2,14]); } difference () { hull () { cylinder(r=28/2,h=16); translate ([0,0,16]) sphere(r=6.25); } translate([0,0,-0.1]) hull () { cylinder(r=24/2,h=14); translate ([0,0,16]) sphere(r=5.25...
glb/cad_fec806c407be.glb
Create a filament guide consisting of a rectangular base with two upright cylindrical protrusions. First, construct a base block measuring 10.175mm by 10.175mm with a height of 4.45mm. At the center of this base, place a vertical cylinder with a diameter of 7.85mm and a height of 17mm. Drill a 4mm diameter hole vertica...
d1=35.27 - 28.7 + 3.19; d2=6.35 / 2; d3=4.55 + 1.5 + 4.45; d4=12.75 / 2; difference(){ union() { cylinder(d=7.85, h=17); translate([-d4, -d4, 0]) cube([d4 + d2 + 7, d4 + d1 + 3.5, 4.45]); } translate([0, 0, -0.5]) cylinder(d=4, h=18); } translate([d2, d1, d3]) rotate([0, 90, 0]) difference() { union...
glb/cad_42dc77e53049.glb
Create a parametric wrench for an M3 nut. Start with a central rectangular handle measuring 5.6mm wide, 2.77mm thick, and 29.4mm long. At one end of the handle, create a closed wrench head by adding a cylinder with a radius of 3.08mm and a height of 2.77mm. Center a hexagonal hole with a diameter of 5.6mm and a heigh...
use <MCAD/shapes.scad> $fn = 50; nut_diameter = 5.6; nut_thickness = 2.31; wrench_thickness = 1.2 * nut_thickness; wrench_length = 5.25 * nut_diameter; wrench_head_extra_d = 1.1 * nut_diameter; module wrench_head(thickness, nut_d, head_extra, open_ended) { difference() { translate([0, 0, -thickness / 2]) { cy...
glb/cad_f0e9ee82fe4f.glb
Create a rectangular fine mesh screen with a total length of 230mm, a width of 110mm, and a thickness of 1.2mm. The object consists of a solid outer border 10mm wide surrounding a central grid. Construct the internal grid using a series of intersecting perpendicular threads. Each thread must be 0.8mm wide with a spac...
generateShape = "rectangle"; meshscreen_d = 110; meshscreen_l = 230; meshscreen_borderwidth = 10; meshscreen_h = 1.2; layer_h = 0.2; meshthread_w = 0.8; mesh_space = 2; module GoAwayCustomizer() { } generateSquare = "square"; generateCircle = "circle"; generateRectangle = "rectangle"; module mesh_raw(h=2,mes...
glb/cad_fb6195f59db4.glb
Create a Customizable Double Helix model. Start by designing a 2D base profile consisting of two circles with a radius of 2mm, positioned 10mm apart from each other along the X-axis, connected by a central rectangular bridge that is 20mm long and 0.6mm wide. Extrude this profile vertically to a height of 72mm, applyi...
fn = 20; post_radius = 2; post_distance_apart = 10; center_bridge_length = 20; center_bridge_width = .6; helix_height = 72; helix_twists = 360; twist_direction = -1; helix_slices = 500; helix_scale = 1; spacer_radius = 8.15; spacer_height = 4; spacer_start = 0; spacer_increment_distance = 6; spacer_increm...
glb/cad_3f5b0e0b35c4.glb
Create a decorative octahedron for a folding box puzzle. The octahedron's vertices are positioned at coordinates (±10, ±10, 0), (0, 0, ±14.14), and (0, 0, ±14.14) relative to the center. From this solid shape, remove four identical cylindrical holes, each with a radius of 4mm and a height of 17mm. These holes must be b...
pts = [ [-10,-10,0], [10,-10,0], [10,10,0], [-10,10,0], [0,0,sqrt(2)*10], [0,0,-sqrt(2)*10] ]; f = [ [1,0,4], [2,1,4], [3,2,4], [0,3,4], [5,0,1], [5,1,2], [5,2,3], [5,3,0] ]; FN=32; RAD=4; rotate([180-54.731,0,0]) difference() { polyhedron(points=pts, faces=f, convexity=1); rotate([54,0,0]) { cylinder(h=17,r=RA...
glb/cad_bff32d984c79.glb
Create a standard key for a piece of furniture. Start by constructing a main vertical shaft using a cylinder with a diameter of 10mm and a height of 40mm. At the base of this shaft, center a larger, thin circular disc with a diameter of 20mm and a thickness of 3.5mm. On top of this disc, attach a small rectangular bloc...
difference() { union() { cylinder (0.2,10,10); cylinder (40,3.5,3.5); translate ([-14,-3.5,43]) rotate ([0,45,0]) cube ([20,7,20]); translate ([0,-1.5,0]) cube ([10,3,6]); } cylinder (7,2.5,2.5); translate ([-7,-3.5,43]) rotate ([0,45,0]) cube ([10,8,10]); }
glb/cad_464a3a872fb9.glb
Create a bicycle crank dust cover. Start by forming the main body as a circular disc with a diameter of 25.5mm and a total height of 49mm. The top surface should be slightly domed, created by the intersection of a cylinder and a sphere with a radius of 90mm, with the outer edges rounded by a 1mm radius. At the base, c...
use <threadlib/threadlib.scad> use <text_on/text_on.scad> gesamtlaenge = 49; schluesselweite = 13; turns = 5; sphere_radius = 90; offset = 1.4; diameter_cover = 25.5; radius_on_edge = 1; wrench_size = 10.10; text_to_be_printed = "Joe"; text_depth = 2.3; how_often = 3; $fn=90; type = "M22x1"; Print_setting...
glb/cad_5689de970edc.glb
Create a parametric abstraction chess piece by stacking three geometric sections. Start with a square-based pyramid for the bottom section, with a base width of 14mm and a height of 9mm, tapering to a point. Directly on top of this, place a second square-based pyramid that is inverted, with a base width of 8mm and a he...
cylinder(r1=7,r2=0,h=9,$fn=4); cylinder(r1=0,r2=4,h=9,$fn=4); translate([0,0,9]) cylinder(r1=4,r2=1,h=4,$fn=4);
glb/cad_8845a48989b6.glb
Create a parametric abstraction chess piece by stacking three geometric primitives. Start with a hexagonal base created as a cone with a bottom radius of 9mm, a top radius of 0mm, and a height of 27mm, using a 6-sided facet resolution. Centered on top of this base, add a second section consisting of an 8-sided prism th...
cylinder(r1=9,r2=0,h=27,$fn=6); cylinder(r1=3,r2=5,h=20,$fn=8); cylinder(r1=10,r2=0,h=10,$fn=6);
glb/cad_86f1ee9afbc4.glb
Create an abstract chess piece by combining two primary geometric components. First, construct a square-based pyramid with a height of 6mm, where the base is a four-sided prism with a radius of 7mm. On top of this base, place a composite structure formed by the convex hull of two four-sided prisms. The first prism must...
cylinder(r1=7,r2=0,h=6,$fn=4); hull(){ cylinder(r=3.5,h=10,$fn=4); translate([0,0,7]) rotate([60,0]) cylinder(r=3,h=6,$fn=4); }
glb/cad_eba4f00fbd93.glb
Create a parametric abstraction chess piece by stacking two triangular prisms. First, construct a base in the shape of a three-sided pyramid (a triangular cone) with a bottom radius of 5mm and a height of 6mm, tapering to a point. Directly on top of this point, add a second, smaller three-sided pyramid with a base radi...
cylinder(r1=5,r2=0,h=6,$fn=3); cylinder(r1=0,r2=3,h=7,$fn=3);
glb/cad_b86bed650207.glb
Create a parametric abstraction chess piece by stacking two pentagonal prisms. Start with a base pentagonal frustum that has a bottom radius of 9mm, a top radius of 0mm, and a height of 10mm. Directly on top of this base, add a second pentagonal frustum with a bottom radius of 5mm, a top radius of 6mm, and a height of ...
cylinder(r1=9,r2=0,h=10,$fn=5); cylinder(r1=5,r2=6,h=15,$fn=5);
glb/cad_996fde90e674.glb
Create a parametric abstraction chess piece by stacking four distinct geometric volumes vertically. Start with a hexagonal base created as a cone with a bottom radius of 10mm, a top radius of 0mm, and a height of 7mm, using a 6-sided facet resolution. Directly on top of this, place a second 6-sided cone with a bottom r...
cylinder(r1=10,r2=0,h=7,$fn=6); cylinder(r1=9,r2=0,h=13,$fn=6); cylinder(r1=8,r2=0,h=18,$fn=6); hull(){ cylinder(r1=4,r2=7,h=20,$fn=6); cylinder(r=4,h=24,$fn=8); }
glb/cad_c1a7de510e39.glb
Create a bed support for a 3DR delta printer. Start with a main cylindrical foot that has a radius of 16mm and a total height of 6mm. From this foot, remove a large central cylinder with a diameter of 166mm and a height of 3.3mm, positioned such that its base is 2.7mm above the bottom of the foot. To facilitate glass i...
D_glass = 166.0; X_glass = D_glass/2; h_glass = 3.0; H_foot = 6.0; d_screw_hole = 3.5; X_screw_hole = 90.0; D_FSR = 14; D_FSR_out = 19.0; h_FSR = 0.3; Screw_slot_size=2; chamfer=0.5; scale = 1; FSR_pos = -(D_FSR_out-D_FSR)/2; OutOfCenter = (D_FSR_out-D_FSR)/2; r_foot = 16; difference(){ union(){ difference(){ di...
glb/cad_e9638f6a7d49.glb
Create a wire holder by constructing a low-resolution cylinder with a diameter of 5mm and a height of 2.5mm. The cylinder should be rendered with a low facet count, specifically using 5 fragments to give it a polygonal, near-hexagonal appearance. Centered through the entire height of this cylinder, create a hole with a...
module example001() { function r_from_dia(d) = d / 2; module rotcy(rot, r, h) { rotate(90, rot) cylinder(r = r, h = h, center = true); } difference() { rotcy([0, 0, 0], cy_r, cy_h, $fa=5, $fs=0.6); rotcy([0, 0, 0], 0.6, cy_h+1, $fa=5, $fs=0.6); } size = 1; hole = 5; cy_r = r_from_dia(hole); cy_h =...
glb/cad_0b9f1e339944.glb
Create a holder for an electric motor by constructing a hollow cylinder with an outer diameter of 38mm, an inner diameter of 28mm, and a height of 25mm. Center the cylinder on the origin. To create the mounting supports, add two rectangular prisms, each measuring 5mm by 5mm by 60mm. Position the first prism so it is ce...
module example001() { function r_from_dia(d) = d / 2; module rotcy(rot, r, h) { rotate(90, rot) cylinder(r = r, h = h, center = true); } difference() { rotcy([0, 0, 0], cy_r+5, cy_h); rotcy([0, 0, 0], cy_r, cy_h+1); } size = 25; hole = 28; sizeG = 5; union(){ translate([0, 0, -size/2+sizeG/2]) ...
glb/cad_542ce31975d8.glb
Create a Dexter Lite face shield frame. Start with a central horizontal bar 150mm wide, 12mm deep, and 4mm thick. At each end of this bar, place a cylinder with a 10mm radius and a height of 4mm. Extend two vertical arms from the ends of the horizontal bar. Each arm should be 150mm long, 4mm wide, and 4mm thick. At t...
difference(){ resize([0,0,3]) union(){ minkowski(){ cylinder (r = 1, h = 6, center = true, $fn=10); translate([68,0,2]){ union(){ difference (){ union(){ cube ([150,4,4], center = true); rotate ([0,0,0]) translate ([73.5,71.3,0]) cube ([4,150,4], center = true); rotate ([0,0,0]) translate ([-73.5,71.3,0]) cube ([4,...
glb/cad_6a8c8f207d60.glb
Create a Customizable Hinge/Snap Tetrahedron Net consisting of four equilateral triangles with a side length of 30mm and a thickness of 3mm. The triangles are arranged in a flat net where one central triangle is connected to three others. Each triangle is a hollow frame with a border width of 3mm. To connect the trian...
length = 30; border = 3; height = 3; clearance = .55; gap = .55; space = .55; $fn=24; hinge_radius = height/2; cone_height = 1.5*hinge_radius; corner = 0*1; fudge = .01*1; jump = 2*hinge_radius+2*gap; union(){ poly_maker(sides=3); attach(type=2,side=1,sides=3); attach(type=2,side=2,sides=3); attach(type=1,si...
glb/cad_7a523888fda8.glb
Create an Emergency Stop Button housing. Start with a square base plate measuring 51.5mm by 51.5mm with a thickness of 5mm. At each of the four corners of this base, center a circular hole with a radius of 2.5mm that passes completely through the plate. On top of the base, construct a central octagonal tower. The main...
difference(){ union(){ difference(){ union(){ difference(){ cube([51.5,51.5,2],center=true); translate([21,21,-2])cylinder(r=2.5,h=4,$fn=50); translate([-21,21,-2])cylinder(r=2.5,h=4,$fn=50); translate([21,-21,-2])cylinder(r=2.5,h=4,$fn=50); translate([-21,-21,-2])cylinder(r=2.5,h=4,$fn=50); } difference(){ } trans...
glb/cad_e946edf1e0ba.glb
Create an Emergency Stop Button housing. Start with a main cylindrical body with a radius of 9mm and a height of 20mm. Hollow out the center by removing a cylinder with a radius of 6.45mm and a height of 16mm, starting from 1mm below the base. Create a secondary internal void by removing a cylinder with a radius of 5.5...
difference(){ union(){ difference(){ translate([0,0,0])cylinder(r=9,h=20); translate([0,0,-1])cylinder(r=6.45,h=16); translate([0,0,10])cylinder(r=5.5,h=16); translate([0,8.5,5.75])cube([4.5,1,8],center=true); translate([0,-8.5,5.75])cube([4.5,1,8],center=true); translate([-8.5,0,5.75])rotate([0,0,90])cube([4.5,1,8]...
glb/cad_cfb7f72aa4e4.glb
Create an Emergency Stop Button housing. The main body is an octagonal prism with a height of 33mm and a radius of 26mm. Hollow out the center to create a shell with a wall thickness of 2mm, resulting in an internal octagonal cavity with a radius of 24mm and a height of 35mm. Cut a wide rectangular slot through the b...
difference(){ union(){ difference(){ union(){ difference(){ rotate([0,0,22.5])cylinder(r=26,h=33,$fn=8); color("blue")translate([0,0,2])rotate([0,0,22.5])cylinder(r=24,h=35,$fn=8); } } translate([0,0,-3])cube([4,21,50],center=true); translate([0,0,-3])rotate([0,0,90])cube([4,21,50],center=true); translate([0,0,-5])rot...
glb/cad_9a4f2dd5c048.glb
Create an Emergency Stop Button housing by starting with an octagonal base. Construct this base as a cylinder with a radius of 25mm and a height of 4mm, using 8 facets to define the octagonal shape, and rotate it 22.5 degrees around the Z-axis. In the center of this base, create a circular hole with a radius of 9.5mm a...
difference(){ rotate([0,0,22.5])cylinder(r=25,h=4,$fn=8); translate([0,0,-3])cylinder(r=9.5,h=3.5); translate([0,10,-.5])cube([4.5,3,2],center=true); translate([10,0,-.5])rotate([0,0,90])cube([4.5,3,2],center=true); translate([0,-10,-.5])cube([4.5,3,2],center=true); translate([-10,0,-.5])rotate([0,0,90])cube([4.5,3,2]...
glb/cad_edbfdbeedfdb.glb
Create a z-axis shim for a glass bed printer. The object consists of two identical retaining brackets connected by a central crossbar, all with a uniform height of 5.5mm. Each retaining bracket is formed by taking a cylinder with a radius of 12.45mm and subtracting a concentric inner cylinder with a radius of 10.45mm ...
height = 5.5; thickness = 2; postdiameter = 20.9; squaredimension = 15; cutback = thickness * 2; cubesize = postdiameter + thickness + 5; distance2back = 18; center2centerwidth = 100; translate([-50,0,0]) { difference() { union() { cylinder(h=height, r=postdiameter/2 + thickness, center=true); trans...
glb/cad_0f217cc536ce.glb
Create a fume control adapter flange starting with a flat, circular base disk 130mm in diameter and 3mm thick. Center a large circular hole through this base with a diameter of 85mm. On top of this base, construct a hollow cylindrical collar. The collar should have an outer diameter of 100mm and an inner diameter of ...
$fn=60; difference () { cylinder (r=130/2,h=3); union(){ cylinder (r=85/2,h=4); translate ([105/2,0,0]) cylinder (r=11/2,h=5); translate ([-105/2,0,0]) cylinder (r=11/2,h=5); translate ([0,105/2,0]) cylinder (r=11/2,h=5); translate ([0,-105/2,0]) cylinder (r=11/2,h=5); }} translate ([0,0,25]) difference () { cylinde...
glb/cad_dbc9e181915e.glb
Create a wide mount for a DM4 microscope consisting of one central holder and two side holders. The central holder is a flat plate with a thickness of 15mm. Its overall width is 170mm and its height is 175mm. Centered on this plate, create two vertical holes spaced 48mm apart. Each hole must be a cylinder with a diam...
zf = 0.01; zf2 = zf*2; rod = 8.5; rodsp = 48; dep = 15; roddep = 30; alt = 155; width = 170; module roundcyl(d, h, rn) { hrn = abs(rn); translate([0,0,-zf]) cylinder(d1=d-rn*2, d2=d, h=hrn+zf2); translate([0,0,hrn]) cylinder(d=d, h=(h-hrn*2)+zf); translate([0,0,h-hrn]) cy...
glb/cad_2fd1613daf92.glb
Create a wide mount for a DM4 microscope by designing a square block with a thickness of 12.8mm. The block should have a total width and length of 41.5mm, with all four corners rounded by a radius of 0.75mm. In the center of the block, create a circular hole with a diameter of 33.5mm that passes completely through th...
scrw = 3.5; rod = 8.5; rw = 3.0; dhole = 33.5; fsize = dhole + (rod+rw*2)*2; dep = 12.8; rn = 0.75; zf = 0.01; zf2 = zf*2; $fn = 90; function rsqpts(fsize, rn) = [ [ -fsize/2 + rn, -fsize/2 ], [ -fsize/2, -fsize/2 +rn ], [ -fsize/2, fsize/2 - rn ], [ -fsize/2 +...
glb/cad_9df1d3e88fef.glb
Create a Y-piece fume control connector consisting of three intersecting hollow cylinders, each with an outer diameter of 100mm and a wall thickness of 3mm. Start by creating a vertical base cylinder with a height of 66.67mm. From the top center of this base, add two additional cylinders, each with a height of 133.33mm...
Outer_Diameter= 100; Wall_thickness = 3; Overall_height = 200; Flange_Length = 30; TopAngle = 60; $fn=360; module BottomYOuter () { cylinder ( r = Outer_Diameter/2 , h = Overall_height/3); } module BottomYInner () { cylinder ( r = (Outer_Diameter -Wall_thickness) /2 , h = Overall_height/3); } module TopYOuter ()...
glb/cad_ad05a7664cee.glb
Create a flat net for a snap-together octahedron consisting of eight equilateral triangles. Each triangle has a side length of 30mm, a thickness of 3mm, and a border width of 3mm. The triangles are arranged in a layout where they can be folded to form an octahedron. For each triangle, the edges are equipped with eithe...
length = 30; border = 3; height = 3; clearance = .55; gap = .55; space = .55; $fn=24; hinge_radius = height/2; cone_height = 1.5*hinge_radius; corner = 0*1; fudge = .01*1; jump = 2*hinge_radius+2*gap; union(){ poly_maker(sides=3); attach(type=2,side=1,sides=3); attach(type=2,side=2,sides=3); attach(type=1,si...
glb/cad_f788346ce8e0.glb
Create a Closet Rod Hanger by starting with a solid cube measuring 60mm x 60mm x 14mm. From the top face, remove a central cylindrical hole with a diameter of 40mm and a depth of 12mm, leaving a 2mm thick base. Additionally, remove a rectangular slot measuring 30mm wide and 40mm long, centered along one axis and extend...
$fn=50; outside = 60; inside = 40; base = 2; shelf = 12; screw_inset = 5; screw_shaft = 1.8; screw_head_r = 4.1; screw_head_h = 4; module outer_block() { cube([outside,outside,base+shelf]); } module slot() { translate([outside/2,outside/2,base]) cylinder(r=inside/2,h=shelf+1); translate([0,(o...
glb/cad_f09568b262fe.glb
Create a battery holder for the Black and Decker Matrix system. Start with a main rectangular block measuring 48.26mm wide, 78.74mm deep, and 12.7mm high. Hollow out the center of the block to create a cavity, leaving walls that are approximately 2.54mm thick. From the front face, remove a central section measuring 3...
difference(){ union(){ difference(){ cube([1.9*25.4,3.1*25.4,.5*25.4]); translate([25.4*(1.9-1.18)/2,0,0])cube([1.18*25.4,25.4*.48,.55*25.4]); translate([.5*25.4,25.4*.48,0])cube([0.08*25.4, 0.48*25.4, 0.48*25.4]); translate([.75*25.4,25.4*.48,0])cube([0.08*25.4, 0.48*25.4, 0.48*25.4]); translate([1.0*25.4,25.4*.48,0...
glb/cad_9809510c13f5.glb
Create an Air Escape Funnel consisting of a hollow inner funnel and a concentric outer air escape shell. First, construct the inner funnel. Start with a cylindrical mouth 20mm in diameter and 2mm high. Attached to the mouth, create a tapered section 10mm long that narrows from 20mm down to 7mm in diameter. Below the ...
MouthD = 20; MouthL = 2; FunnelD = 7; FunnelL = 10; NoseD= 4; NoseL = 20; WallT = 400; AirEscapeT=1000; tiny=0.05; $fn=50; module funnel(MouthL,MouthD,FunnelL,FunnelD,NoseL,NoseD,WallT) { translate([0,0,0]) difference(){ if (WallT) { union(){ translate([0,0,(MouthL)/2]) cylinder(d=MouthD,...
glb/cad_a131132b8405.glb
Create a Tri Glide fastener with a total height of 2.4mm. Start by forming a solid rectangular base with rounded corners; the overall width is 30.8mm (calculated as the 26mm webbing width plus two 2.4mm edges) and the overall depth is 12.8mm (calculated as the 4mm center beam thickness plus two 2.4mm edges and two 4mm ...
_1_webbingWidth = 26; _2_webbingGap = 4; _3_edgeThickness = 2.4; _4_centerThickness = 4; _5_height = 2.4; _6_cornerRounding = 75; module makeBody(xsize, ysize, height, radius) { translate([0,0,height/2]) { minkowski() { cube(size=[xsize-2*radius,ysize-2*radius, height/2], center = true); cylinder(r=radiu...
glb/cad_2aaebb017a49.glb
Create an espresso measuring spoon consisting of a tapered cup and an attached handle. Construct the cup as a hollowed-out truncated cone with a height of 17.53mm. The outer diameter tapers from 85.74mm at the top to 75mm at the base. The walls and base should be 1.7mm thick, creating an internal cavity that tapers f...
use <MCAD/shapes.scad>; top_radius = 42.87 / 2; bot_radius = 37.5 / 2; cup_h = 15.83; thickness = 1.7 ; handle_c_w = 15; handle_m_w = 11.4; end_r = 9; handle_h = 6; handle_end_l = 40; handle_cup_l = 97; sm_hex_offset = 122; lg_hex_offset = 137; lg_hex = 10.25; sm_hex = 9.25; padding = 0.05; module cup () { $f...
glb/cad_a693f13e7dd4.glb
Create a top cover case for a Raspberry Pi. Start with a rectangular base measuring 88mm in length, 56.5mm in width, and 2.85mm in height. Round the four corners of this base with a radius of 1mm. Add four small rectangular tabs to the sides. Two tabs are positioned on the left and two on the right; each tab should be...
use <utils/build_plate.scad> use <write/Write.scad> logo_width = 100; logo_height = 100; logo_horizontal_align = 0; logo_vertical_align = 0; logo_image = "image-surface.dat"; logo_image_depth = 100; logo_image_intensity = 20; status_led_hole = 0; camera_ribbon_hole = 0; header = -1; footer = -1; header_...
glb/cad_3b74427f82c0.glb
Create a linear bearing for a spool mount by starting with a main cylinder that has an outer diameter of 37.7mm and a height of 79.8mm. Remove a central vertical hole with a diameter of 4mm that runs through the entire length of the object. Within the main body, carve out a series of five square-profiled channels that ...
$fn=32; lm8uu_length = 80; lm8uu_id=8; lm8uu_od=37.7; id_clearance = 1; n = 5; layer_height = 0.2; module bearing() { difference() { cylinder(r=lm8uu_od / 2, h=lm8uu_length - layer_height); difference() { cylinder(r=lm8uu_id / 2 + id_clearance, h=lm8uu_length - layer_height); linear_extrude(...
glb/cad_d22194ed6fb7.glb
Create a hairbrush consisting of a rectangular handle bar and a series of protruding pins. Start by creating a handle bar that is 15mm wide and 6mm thick. Attached to this bar, create 24 pins arranged in a row. Each pin is a tapered prism with a length of 27mm and a width of 3mm. The base of each pin, where it meets th...
pinLength = 27; pinWidth = 3; pinInterval = 2; pinMinThickness = 2; pinMaxThickness = 6; handleWidth = 15; pinCount = 24; areOuterPinsWider = true; module pinBasePoly () { polygon( points = [ [0,0], [pinMaxThickness,0], [(pinMaxThickness + pinMinThickness) /2, pin...
glb/cad_001f41bbb807.glb
Create a Pyramid Ice Cube Tray consisting of a flat rectangular base with a grid of eight pyramid-shaped indentations. Start by creating a solid rectangular slab measuring 100mm by 180mm with a thickness of 6mm. Within this slab, arrange two rows of four pyramid cavities. Each cavity should be centered within a 40mm by...
icecubes = [2, 4]; icecube_spacing = [40, 40]; icecube_depth = 40; thickness = 3; module icecube() pyramid(slope = 1.2, base_length = 30); complete_tray(); module tray() { difference(){ translate([0,0,-thickness]) cube(size = [(icecubes[0] + .25)*icecube_spacing[0], (icecubes[1] + .25)*icecube_sp...
glb/cad_cc90d2517981.glb
Create a J-head mount for a RepRapPro Ormerod. Start with a rectangular block 40mm wide, 16mm high, and 9.1mm thick. Carve a cylindrical groove through the center of the block with a diameter of 12mm. To accommodate the nozzle holder, remove two larger cylindrical sections with a diameter of 16mm: one from the top of...
$fn=36; diameter = 16; groove_diameter=12; groove_width=4.6; groove_offset=4.8; block_width=40; block_height=16; block_thickness=9.1; hole_distance=15; hole_offset=groove_offset+groove_width/2; hole_diameter=3.5; rotate([-90,0,0]) difference() { translate([-block_width/2,0,0]) cube([block_width, block_thickness, ...
glb/cad_864b079ee84d.glb
Create a low-resolution model of a Raspberry Pi circuit board. Start with a main rectangular base measuring 56mm by 85mm with a thickness of 2mm. On top of this base, add several rectangular components. Position a 15mm by 19mm by 16mm block at coordinates (24, -8, 2) for the USB port, and a 16mm by 22mm by 14mm block a...
$fn=50; module board() { union() { color("green") cube([56,85,2]); translate([24,-8,2]) color("silver") cube([15,19,16]); translate([3,-2,2]) color("silver") cube([16,22,14]); translate([-2,33,2]) color("silver") cube([12,15,6]); translate([44,1...
glb/cad_fd5f2cb349e0.glb
Create a Y stepper antitwist dowel by starting with a solid cube that measures 7mm in width, 7mm in depth, and 2mm in height. Center a vertical cylindrical hole through the cube with a radius of 1.5mm. The hole should be positioned exactly at the center of the cube's X and Y axes, starting from a height of 0.5mm and ex...
$fn=100; difference() { cube([7,7,2]); translate([3.5,3.5,0.5]) cylinder(r=1.5, h=2); }
glb/cad_64f5b667e86c.glb
Create a Shoelaces Attachment holder designed to house a small electronic device. Start by creating a main body that is a rounded rectangular prism with a total length of 53.38mm, a width of 37.44mm, and a height of 15mm. Hollow out the center of this body to create a cavity for the device, measuring 40.88mm in lengt...
a_bit=0.1; force_fit=0.2; hold_fit=0.3; slide_fit=0.4; free_fit=0.5; use <mouse_ears_test.scad>; z_resolution=0.3; mouse_ear_diameter=20; int_tol_holder=0.45; int_r_tol_holder=0.1; held_item_l=39.38+1.5; held_item_b=33.44+1.5; held_item_h=30.6; held_item_r=3; arm_length=10; cutout_width=3; cutout_length=7; cutout_...
glb/cad_bd91510159f0.glb
Create a P3Steel Z coupler cover by starting with a solid rectangular block measuring 66mm in length, 50mm in width, and 30mm in height. Attach a smaller rectangular extension to the side, measuring 5mm by 9mm by 8mm, positioned at the coordinates (61, 50, 0). Hollow out the main body by removing a central rectangular...
*translate([0,0,-3]) cube([60,50,3]); translate([-2,-2,-5]) protector(); *translate([-2,-2,-5]) mirror([1,0,0]) protector(); module protector() { difference() { union() { cube([66,50,30]); translate([61,50,0]) cube([5,9,8]); } union() { translate([4,3,5]) cube([58,51,32]); translate([4,3,-1]) cube([...
glb/cad_b2c45bb72e55.glb
Create a WIMU holder consisting of a rounded base plate and a central containment structure. Start with a base plate that is 90mm long, 80mm wide, and 3mm thick. Round the corners of this base with a radius of 41mm. On top of this base, construct a central rectangular housing with an external length of 48mm, width of ...
use <mouse_ears_test.scad>; z_resolution=0.22; a_bit=4; mouse_ear_diameter=20; base_l=90; base_b=80; base_h=3; external_radius=base_l/2-4; inside_cube_l=46+2; inside_cube_b=39+2; inside_cube_h=14; int_l_holder=39.38+3; int_b_holder=33.44+3; int_h_holder=inside_cube_h+base_h+a_bit; orientation_holder=45; frange...
glb/cad_c9114aa33ab2.glb
Create a customizable letter board system consisting of a board, a frame, and individual letters. First, construct the board as a rectangular slab 200mm wide and 6mm deep. The length of the board is determined by 38 lines, where each line is 3mm wide and the spacing between lines is also 3mm. Carve 38 parallel groove...
board_line_count = 38; board_line_depth = 4; board_line_width = 3; board_width = 200; board_depth = 6; frame_lip_width = 10; frame_lip_height = 1; frame_height = 15; frame_thickness = 1.2; frame_tolerance = 0.15; letter_tolerance = 0.3; textWidth = 30; letterUnderhangCompensation = 8.6; letter_extrusion_he...
glb/cad_32cf7833f912.glb
Create a nozzle-screw adapter consisting of a circular base, a conical transition, and a threaded neck. Start with a flat circular base with a diameter of 39.4mm and a thickness of 4mm. Center a hole of 13.2mm diameter through the base. Position three circular mounting holes with a diameter of 3mm each, spaced evenly...
width_slider = 13.2; A=width_slider + 7.6; nozzle_tip = 4; B=nozzle_tip+4; P=2; number_of_holles = 3; function norm(vector) = sqrt(vector[0]*vector[0]+vector[1]*vector[1]+vector[2]*vector[2]); function unitVector(vector) = vector / norm ( vector ); function barycenter(vector1, vector2, ratio) = (vector1*ratio + ...
glb/cad_4d9abb4a8aef.glb
Create a fix ring for a rope or chain consisting of a rectangular base plate and a toroidal loop. Start by creating a rectangular base plate that is 15mm wide, 52mm long, and 2mm thick. Centered on this base, position a vertical torus. The torus should have a major radius of 17mm (making the overall outer diameter of t...
fn = 180; $fa = 1; $fs = 0.4; wheel_radius = 17; tyre_diameter = 7; difference(){ group(){ translate([0,0,10]) rotate([0,90,0]) rotate_extrude(angle=360) { translate([wheel_radius - tyre_diameter/2, 0])circle(d=tyre_diameter); } } translate([-30,-30,-20]) cube([60,60,20]); } translate([-4,-17.5,-5]) rotate([0,0,0]) ...
glb/cad_1c3b1a88a136.glb
Create a fix ring for a rope or chain consisting of a base plate and a circular loop. Start by creating the base: a disc formed by the intersection of a sphere with an 80mm diameter and a cylinder with a 60mm diameter and a height of 5mm. From this base, remove a central rectangular slot measuring 8.8mm by 35.8mm with ...
fn = 180; difference(){ group(){ intersection(){ translate([0,0,-5]) cylinder( h = 5, d = 60, $fn = fn); translate([0,0,-28]) sphere(d = 80, $fn = fn); } } group(){ $fa = 1; $fs = 0.4; wheel_radius = 17; tyre_diameter = 7; group(){ translate([0,0,10]) rotate([0,90,0]) rotate_extrude(angle=360) { translate([wheel_r...
glb/cad_9b56fedb1985.glb
Create a fix ring for a rope or chain consisting of a base plate and a circular loop. Start by creating a base plate that is a circular disc 60mm in diameter and 5mm thick. This disc is modified by a spherical cutout with a diameter of 80mm centered on the disc, effectively creating a domed profile. Within this base, c...
fn = 180; difference(){ group(){ intersection(){ translate([0,0,-5]) cylinder( h = 5, d = 60, $fn = fn); translate([0,0,-28]) sphere(d = 80, $fn = fn); } } group(){ $fa = 1; $fs = 0.4; wheel_radius = 17; tyre_diameter = 7; group(){ translate([0,0,10]) rotate([0,90,0]) rotate_extrude(angle=360) { translate([wheel_r...
glb/cad_c8789e05637c.glb
Create a Minecraft Creeper keychain model. Start with a head that is a cube measuring 16mm on all sides. Attach a body to the bottom of the head; the body should be a rectangular prism 8mm wide, 16mm deep, and 24mm tall, centered relative to the head's width. For the legs, add four rectangular prisms, each 8mm wide, 8m...
face_depth = 1; which_face="scary"; hole_size = 0; creeper(which_face); module creeper(f){ rotate([0,0,90]) scale(2) difference(){ union() { difference(){ cube([8,8,8 ]); if(face_depth>0){ if(f=="scary"){ translate([0,0,-0.33]) union(){ for(i=[2,5]) { #translate([-face_depth,i,1]) cube([face_depth*...
glb/cad_51aba465fa84.glb
Create a parametric flexible coupling with a total height of 50mm and an outer diameter of 25mm. The model consists of two identical solid end caps and a central flexible spring section. Construct the bottom end cap as a cylinder with a height of 10mm. Remove a central vertical hole with a diameter of 6mm. To create a...
D1 = 25; D2a = 6; D2b = 10; H1 = 50; H2 = 10; N = 12; D3 = 3.5; Dnut=6.5; Hnut=2.5; Ba=5; Bb=8.5; H3=4; SLICES=16; Re = D1/2; Ria = D2a/2; Rib = D2b/2; fn = 2*N; R3 = D3/2; Rnut=Dnut/2; B2a = Ba-Ria; B2b = Bb-Rib; Hspring=H1-2*H2; module sq_spring(in_R,out_R,height,rot) { width=out_R-in_R; linear_extru...
glb/cad_766dccf06ecc.glb
Create a flat net for a snap-together dodecahedron. The model consists of 12 regular pentagonal faces, each with a side length of 30mm and a thickness of 3mm. Each pentagon is a hollow ring with a border width of 3mm. The pentagons are arranged in a flat layout and connected by either hinges or snap-fit joints. Create...
length = 30; border = 3; height = 3; clearance = .55; gap = .55; space = .55; $fn=24*1; hinge_radius = height/2; cone_height = 1.5*hinge_radius; corner = 0*1; fudge = .01*1; jump = 2*hinge_radius+2*gap; union(){ poly_maker(sides=5); attach(type=1,side=1,sides=5); attach(type=1,side=2,sides=5); attach(type=1,...
glb/cad_62aeed86ba9d.glb
Create a parametric fan guard. Start with a square base plate measuring 40mm by 40mm with a thickness of 4mm. Center a circular cutout through the plate with a diameter of 38mm. Inside this circular opening, add 9 radial grill bars. Each bar should be 2mm wide and 1mm deep, extending from the center of the circle to ...
height = 4; width = 40; edgeW = 1; bladesN = 9; bladeW = 2; bladeH = 1; screwInset = 4; screwHeadW = 5.75; screwShaftW = 3; $fn=128; screwTol = 0.4; fScrewHeadW = (screwHeadW + screwTol); fScrewShaftW = (screwShaftW + screwTol); screwDepth = (height - fScrewHeadW + fScrewShaftW)/2 - 0.2; difference () { ...
glb/cad_b25c6e0bdd30.glb
Create a flat net for a snap-together icosahedron. The model consists of 20 equilateral triangles, each with a side length of 30mm and a thickness of 3mm. Each triangle is a hollow frame with a border width of 3mm. The triangles are arranged in a flat layout and connected by either hinges or snap-joints at their edges...
length = 30; border = 3; height = 3; clearance = .50; gap = .45; space = .25; $fn=24; hinge_radius = height/2; cone_height = 1.5*hinge_radius; corner = 0*1; fudge = .01*1; jump = 2*hinge_radius+2*gap; union(){ poly_maker(sides=3); attach(type=2,side=1,sides=3); attach(type=2,side=2,sides=3); attach(type=1,si...
glb/cad_baeb334cae31.glb
Create a model of the plastic parts for an Estes GeoSat LV rocket, consisting of a nose cone and two booster tail components. First, construct the booster nose cone. Create a stacked series of cylinders: a base cylinder with a height of 0.5mm and diameter of 0.5" (BT50 ID), followed by a 0.05mm thick cylinder of the s...
$fn = 60; include <Estes.scad> include <rocketry.scad> module jog (h = -0.001) { translate ([0, 0, h]) children (); }; module stack (a, s) { if (s == 0) { children (); } else { if (a[0] > 0) { stack (a, s - 1) translate ([0, 0, a[s - 1]]) children (); } else { translate ([0, 0, a[s]]) ...
glb/cad_fe7caf9bb1fe.glb
Create a hinged octahedron net consisting of eight equilateral triangles with a side length of 26mm and a thickness of 3mm. Each triangle is a hollow frame with a border width of 3mm. Arrange the triangles in a flat net layout. Connect the faces using integrated hinges and snap-fit joints. The hinges should be constru...
polyhedron = 3; length = 26; border = 3; height = 3; clearance = .55; gap = .55; space = .55; $fn=24; hinge_radius = height/2; cone_height = 1.5*hinge_radius; corner = 0*1; fudge = .01*1; jump = 2*hinge_radius+2*gap; if (polyhedron==1) tetrahedron_net(); if (polyhedron==2) cube_net(); if (polyhedron==3) octahed...
glb/cad_d2ad32934d42.glb
Create a closed stitch marker by designing a thin, flat ring. Start with a solid cylinder that has a height of 0.5mm and an outer radius of 3.75mm. From the center of this cylinder, remove an elliptical hole to create the opening. This inner cutout should be an ellipse with a height of 0.5mm, a vertical radius of appro...
$fn = 50 + 0; needle_size = 3.5; width = 2; thickness = 0.5; clearance = 0.5 + 0; radius = (needle_size / 2 + width + clearance) / 0.9; slot_width = 1 + 0; linear_extrude(height = thickness) { difference() { circle(r=needle_size / 2 + width + clearance ); scale([0.9, 1, 1]) circle(r=(needle_size / 2 + clea...
glb/cad_c02f36fbe952.glb
Create a Weep Hole Cap by constructing a tapered hollow cylinder with a height of 15mm. The base of the cylinder should have an outer diameter of 13.5mm, tapering upward to a top outer diameter of 11mm. The walls of this cylinder must be 1.5mm thick. To create the ventilation grid at the base, integrate a series of int...
diameter = 11; end_diameter = 13.5; thickness = 1.5; length = 15; grid_thickness = 1.1425; grid_spacing = 2; grid_offset = (end_diameter - thickness * 2) - (grid_spacing + grid_thickness); union() { difference() { cylinder(r1 = end_diameter / 2, r2 = diameter / 2, h = length, $fn = 32); cylinder(r1 = end_diamet...
glb/cad_00aed6210702.glb
Create two separate components for an Apache Camper Sidewall Turn Button. The first component is a cylinder 16mm in diameter and 7mm high. Remove a central vertical hole with a diameter of 3.5mm. Additionally, carve out a rectangular slot from the top face that is 7mm wide and 27mm long, centered on the cylinder's axis...
height=7; od=16; id=3.5; length=27; iw=7; ow=12.6; stuff(); module stuff(){ thing1(); translate([od+3,0,0])thing2(); } module thing1(){ difference () { body1(); cuts1(); } } module thing2(){ difference () { body2(); cuts2(); } } module body1() { cylinder (h=height,r=od/2,$fn=100); t...
glb/cad_1d7394a2500e.glb
Create a fidget spinner called "colormix" with a total height of 7mm. Start with a central cylindrical base with a radius of 12mm and a height of 7mm, and remove a concentric cylindrical hole from the center with a diameter of 22mm to accommodate a 608 bearing. Extend five identical arms from this central base, space...
$fa = 0.5; $fs = 0.5; o = 0.1; o2 = o + o; z = 7; zo2 = z + o2; dk = 22; dk2 = dk/2; mkr = 1; module whole() { translate([0,0,-o]) cylinder(zo2, dk2, dk2); } module centerZ(h, total) { translate( [0, 0, (total-h)/2 ] ) children([0]); } module blobb() {cylinder(0.2, r=6);} module mk(r=mkr) { minkowski()...
glb/cad_65afda053967.glb
Create an extruder silencer consisting of a base plate with integrated mounting tabs. Start by creating a rounded rectangular base with overall dimensions of 35.6mm in width, 65.3mm in length, and 5mm in height, using a corner radius of 8mm. On top of this base, add four identical mounting attachments. Each attachmen...
wf=7; hf=19.3; ixf=9.6; iyf=26.6; ix=12; iy=12; W=ixf+wf+2*ix; L=hf+iyf+2*iy; e=5; $fn=100; H=12+e; module roundedCube(L,w,h,d) { union() { translate([0,d/2,0]) cube([L,w-d,h]); translate([d/2,0,0]) cube([L-d,w,h]); translate([d/2,d/2,0]) cylinder(h=h,d=d); translate([L-d/2,d/2...
glb/cad_5ba8c095ecf3.glb
Create an angle bracket for a hanging rail consisting of a flat base plate and a supporting cradle. Start with a rectangular base plate measuring 60mm by 60mm with a thickness of 3mm. Round the four corners of the plate with a radius of 7.5mm. Drill four circular bolt holes with a diameter of 3.7mm, positioned symmetri...
gap=0.4; boltOD=3.7; boltOffsetX=7.5; boltOffsetY=7.5; baseX=60; baseY=60; baseZ=3.0; pipeOD=22.2; supportLength=40; hangerThick=2.8; leftAngle=40.5; rightAngle=45; hangerView=3; ep=0.2; Langle=90-leftAngle; Rangle=rightAngle-90; pipeDia=pipeOD+gap*2; hangerMidRad=pipeDia/2+hangerThick/2; plateFilletRad=(boltOf...
glb/cad_ebc58f262c66.glb
Create an electronics enclosure for Duet and DueX4 boards. The main body is a rounded box with an inner length of 125mm, an inner width of 110mm (102mm nominal plus 8mm extra width), and an inner height of 27.5mm (21mm basic height plus a 6.5mm separation for stacked boards). The walls and base are 3mm thick. The encl...
Enc_X4_stacked=true; Enc_hollowbase=false; Enc_wall_cutout=false; Enc_extra_width=8.0; Enc_ventillation=3; Enc_ventillation_spacing=8.0; Enc_basic_inner_height=21.0; Enc_X4_separation=6.5; Enc_5V_cutout=false; Enc_X4_standoff=16; Enc_duet_standoff=(Enc_X4_stacked) ? Enc_X4_standoff+Enc_X4_separation : 2.5; Enc_standof...
glb/cad_f332ccc310a7.glb
Create an electronics enclosure for a Duet board with an inner length of 125mm, an inner width of 102mm, and an inner height of 18.5mm. The walls should be 3mm thick with a base thickness of 2mm. Construct the main body as a rounded box. On the top edges of the side walls, create a groove 1mm deep and 3.7mm high to ac...
Enc_X4_stacked=false; Enc_hollowbase=false; Enc_wall_cutout=false; Enc_extra_width=0; Enc_ventillation=0; Enc_ventillation_spacing=8.0; Enc_X4_separation=6.5; Enc_5V_cutout=false; Enc_X4_standoff=16; Enc_duet_standoff=(Enc_X4_stacked) ? Enc_X4_standoff+Enc_X4_separation : 3.0; Enc_standoff_radius=4; Enc_standoff_radiu...
glb/cad_9cae4bd5da0c.glb
Create a power supply enclosure starting with a rectangular box measuring 117mm x 55.5mm x 66mm. Hollow out the center by removing a smaller block of 111mm x 49.5mm x 63mm, leaving a wall thickness of 3mm on the sides and bottom. On the bottom face, create a rectangular cutout measuring 47mm x 28.5mm x 3mm, centered ...
difference() { cube([117,55.5,66]); translate([3,3,3]) { cube([111,49.5,63]); }; translate([23,13,0]) { cube([47,28.5,3]); }; translate([23,10,2]) { cube([5,34,1]); }; translate([23+42,10,2]) { cube([5,34,1]); }; translate([113,26,60]) { rotate([0,90,0]) { cylinder(h=5,r=1.5,$fs=0.1); }; }; tr...
glb/cad_f574b485f373.glb
Create an Ormerod nozzle mount. Start with a main body that is 50mm wide, 20mm deep, and 16mm high. The front section is a block 16mm high, while the rear section is a block 7.5mm high and 27mm deep. Tilt the entire assembly by 2 degrees off the vertical axis to compensate for sag. At the base, create two countersunk ...
long = true; nozzleAngle = 2; numNozzles = 3; nozzleSeparation = 11; width2n = 50; nozzleScrewHoleSeparation2n = 40; width1n = 38; overheight=3; nozzleScrewHoleSeparation1n = 15; nozzleScrewHoleOffset = 9+overheight; bowdenCutoutOffset = 8.5+overheight; mainDepth = (long) ? 20 : 9; fullDepth = mainDepth + 7; height = 1...
glb/cad_3b3e466ba124.glb
Create an Ormerod X-carriage. Start with a main block measuring 45mm x 31mm x 57mm. From this block, remove a cylinder with a radius of 10.65mm centered at X=15.05, Y=20.65 to accommodate a linear bearing. Carve out several rectangular sections to create clearance: a block from X=-1 to Y=26.2 to Z=37, another from X=...
useFSR = 0; overlap=1; lots=60; radius=10.65; mxlPitch=2.032; toothSize=1.2; toothOffset=4.1; nutTrapWidth=5.8; nutTrapDepth=3.0; slotXstart=29; slotZ=4.3; slotWidth=3; difference () { union() { difference() { cube([45,31,57]); translate([4.4+radius,9.3+radius,-overlap]) cylinder(r=radius,h=60,$fn=100); ...
glb/cad_3927197dfb15.glb
Create two identical button pushes for a Duet enclosure. Each button push consists of a hexagonal shaft joined to a rectangular handle. Create a hexagonal prism with a diameter of 2.5mm and a total length of 21mm to serve as the shaft. Attached to the end of this shaft, center a rectangular handle measuring 3mm wide, 2...
use <mcad/shapes.scad>; HandleLength = 20; PushLength = 20; overlap=1; module ButtonPush() { translate([0,-PushLength/2,0]) rotate([90,0,0]) hexagon(size=2.5, height=PushLength+overlap); translate([0,HandleLength/2,0]) cube(size=[3,HandleLength,2.5],center=true); } translate([-10,0,0]) ButtonPush(); translate([10,...
glb/cad_858b230813b5.glb
Create a fan backwash eliminator and finger guard. Start with a rectangular base plate measuring 43mm by 43mm with a thickness of 8mm (6mm main body plus a 2mm skirt). Center a large circular cutout with a radius of 19mm through the plate. Within this circular area, construct a series of 9 curved aerodynamic blades. E...
cube_length = 40; cube_width = 40; cube_height = 6; wall = 1.5; skirt = 2; overlap = 1; blade_angle = 35; module aerofoil() { radius = 1.3; thickness = .15; angle = asin(0.5/radius); translate([sin(angle) * radius,-cos(angle)*radius,0]){ union(){ intersection(){ difference(){ circle(r = radiu...
glb/cad_a98c6c1e6a47.glb
Create three rectangular spacers for a Y-axis belt clamp, each measuring 21mm by 24mm. The first spacer should have a thickness of 1.5mm, the second 1.0mm, and the third 0.5mm. For each spacer, remove a rectangular slot measuring 4mm by 20mm, positioned 3mm from the shorter edge and 5mm from the longer edge. Additional...
module spacer(thickness) { difference() { cube([21,24,thickness]); translate([3,5,-1]) cube([4,20,thickness+2]); translate([5,5,-1]) cylinder(h=thickness+2,r=2, $fn=20); } } translate([-22,2,0]) spacer(1.5); translate([2,2,0]) spacer(1.0); translate([-22,-26,0]) spacer(0.5);
glb/cad_823fca1569cb.glb
Create a dual motor syringe holder. Start by constructing a central syringe body support. This consists of a rectangular block with a width of 44mm and a height of 44mm, from which a horizontal cylinder with a radius of 9mm is removed to create the space for the syringe. At each end of this central support, add a moto...
include <./MCAD/triangles.scad> printerError = 1.007194244604317; motorplatethickness=6; motorplatesize=44; m3holerad=1.5*printerError; bar = 8*printerError; thickness=3*printerError; holderdistance=28*printerError; edge =8*printerError; holderlength=holderdistance + edge; separation = 7.2*printerError; barseparatio...
glb/cad_12fb0ff8860e.glb
Create a 36V power supply housing box with outer dimensions of 50mm width, 118.5mm length, and 45mm height. The box should have a wall thickness of 2mm. On the front face, create a rectangular opening 3mm deep that spans the width of the box minus the walls. At the bottom of the box, create a rectangular cutout for t...
boxwidth = 50; boxlength = 118.5; boxheight = 45; boxwall = 2; facewall = 3; plugwidth= 28.5; pluglength = 47; plugheight = 6; plugbevel = 6; offsetx = boxwall+3; offsety = 12; offsetz = 1.2; clearance = 1.5; clipdiameter = 3; clipspacing = 4; clipfirst = 3; cliptop = 12.5; clipbottom = 36.5; cutoutoffsetx = 18; cu...
glb/cad_63d63a181de5.glb
Create a Nut Calumet tool consisting of a long handle and a hexagonal nut-holding head. Start by creating a rectangular handle 70mm long, 5mm wide, and 1.8mm thick. At one end of the handle, attach a head that is tilted upwards at a 10-degree angle. The head is formed by a hull between a cylinder with a radius of 4.9...
nut_d_base= 6; nut_tolerance= 0.2; nut_th= 2.3; handle_len= 70; handle_width= 5; handle_th= 1.8; wall_th= 1.8; see_through_hole_d= 3.1; open_side= 0; split_head_th= 0.6; head_angle= 10; head_offset_x=0; head_offset_y=0; head_offset_z=1; $fn=20+0; head_offset=[head_offset_x,-head_offset_y,head_offset_z+ha...
glb/cad_e6854a9f8f3d.glb
Create a parametric pipe hanger with a total height of 10mm. Start with a primary cylindrical ring that has an inner diameter of 16mm and a wall thickness of 3mm. Extend a rectangular mounting base from one side of the ring toward a wall, such that the distance from the center of the ring to the wall is 50.8mm. This ba...
inner_dia=16; wall=3; tab_length=20; tab_thickness=5; clip_width=10; mount_hole_dia=4.5; opening=1; opening_width=14; center_to_wall_dist = 50.8; fillet_radius = 8; lightening_length = center_to_wall_dist - inner_dia/2-2*wall-tab_thickness; lightening_width = inner_dia; lightening_angle = atan(lightening_width/lighten...
glb/cad_24dafc1b8172.glb
Create a Nintendo Switch Vertical Portrait Grip consisting of three separate components: a central screen mount and two side joycon receptacles. The central screen mount is a hollowed-out rectangular shell with a wall thickness of 2.5mm. The outer dimensions are 100.8mm in height and 14mm in thickness. Create a centra...
$fa = 1; $fs = 0.4; joycon_length = 100.8; joycon_thickness = 14; joycon_mount_width = 10; front_curve_radius = 3.3; back_curve_radius = 6.3; switch_mount_height = joycon_length; joint_thickness = joycon_thickness-5; joint_length = joycon_length-2*back_curve_radius; joint_width = 5; wall_thickness = 2.5; translate([...
glb/cad_279714255a1f.glb
Create a LED lamp base consisting of two stacked cylindrical sections. First, construct a main cylindrical body with a diameter of 5mm and a height of 8mm, centered on the origin. From this body, remove a small rectangular block measuring 2.5mm by 3.5mm with a height of 3.1mm, centered at a vertical position of -2.5mm....
$fn =80; difference(){ translate([0,0,-0])rotate([0,0,0])cylinder(h=8, d=5,center=true); translate([0,-0,-2.5])rotate([0,0,0])cube([2.5,3.5,3.1],center=true); } translate([0,0,3])rotate([0,0,0])cylinder(h=2, d=7,center=true);
glb/cad_b2a5c2c32efb.glb
Create a rectangular LED lamp base. Start by forming a solid body that is the result of a Minkowski sum between two rectangular prisms: one measuring 80mm by 2mm by 20mm and another measuring 150mm by 6mm by 40mm, both centered at the origin. To refine the shape, remove a central rectangular section measuring 10mm by 2...
$fn =80; difference(){ minkowski(){ hull(){ translate([-0,-0,-0])rotate([0,0,0])cube([80,2,20],center=true); translate([-0,-21,-0])rotate([0,0,0])cube([150,6,40],center=true); } translate([0,-0,-0])rotate([90,0,0])sphere( d=6,center=true); } translate([15,-0,-0])rotate([0,0,0])cube([10,20,15],center=true); ...
glb/cad_11b79d282fe2.glb
Create a button holder for an LED lamp. Start by forming a rounded, pill-shaped base using a hull operation between two spheres with diameters of 25mm, positioned 20mm apart along the x-axis. From this base, remove a central cylindrical volume with a diameter of 150mm and a height of 10mm, and another cylinder with a d...
$fn =80; module oval(){ difference(){ hull(){ translate([10,-70,-0])rotate([0,0,0])sphere(d=25,center=true); translate([-10,-70,-0])rotate([0,0,0])sphere(d=25,center=true); } difference(){ union(){ minkowski(){ translate([0,5,-0])rotate([0,0,0])cylinder(h=9.5, d=162,center=true); translate([0,-0,-0])r...
glb/cad_a9597aa9ee39.glb
Create a LED lamp base by constructing a large hollow cylinder with an outer diameter of 160mm and a height of 15mm, centered on the origin. From this main body, remove a concentric inner cylinder with a diameter of 150mm and a height of 11mm to create a ring-shaped wall. Additionally, remove a central cylindrical core...
$fn =80; difference(){ translate([0,-0,-0])rotate([0,0,0])cylinder(h=15, d=160,center=true); translate([0,-0,-0])rotate([0,0,0])cylinder(h=11, d=150,center=true); translate([0,-0,-0])rotate([0,0,0])cylinder(h=16, d=140,center=true); }
glb/cad_08fc2b0675ba.glb
Create a colormix fidget spinner with a central hub and three radiating arms. Start with a central cylindrical base 7mm thick and 24mm in diameter. Bore a hole through the center of this base with a diameter of 22mm to accommodate a bearing. From the outer edge of the central hub, extend three identical arms spaced 1...
$fa = 0.5; $fs = 0.5; o = 0.1; o2 = o + o; z = 7; zo2 = z + o2; dk = 22; dk2 = dk/2; mkr = 1; module hole() { translate([0,0,-o]) cylinder(zo2, dk2, dk2); } module centerZ(h, total) { translate( [0, 0, (total-h)/2 ] ) children([0]); } module blobb() {cylinder(0.2, r=6);} module mk(r=mkr) { minkowski() ...
glb/cad_06e326481898.glb
Create a stackable container with a rounded rectangular footprint. The outer dimensions of the container are 42mm in width and 83mm in length, with corners rounded to a radius of 5mm. The total height of the object is 56mm. The walls and the base floor have a uniform thickness of 1.2mm. The interior is hollowed out, b...
H = 56; N = 2; W = 42; L = 83; T = 1.2; R = 5; S = 1; C = 1; l = 0.5; D = 1; $fn=100; module round_rect_shape(w=W,l=L,radius=R) { w = w - 2*R; l = l - 2*R; points = [ [0,0,0], [w,0,0], [0,l,0], [w,l,0] ]; translate([R, R, 0]) projection(cut = false) hull(){ for (p = points){...
glb/cad_3a6582820628.glb
Create a fidget spinner called "colormix 3" with a central hub and six radiating arms. Start with a central cylindrical base 7mm high and 25mm in diameter. Bore a hole through the center of this base with a diameter of 22mm to accommodate a bearing. From this center, extend six arms. Three primary arms are positioned ...
$fa = 0.5; $fs = 0.5; o = 0.1; o2 = o + o; z = 7; zo2 = z + o2; dk = 22; dk2 = dk/2; mkr = 1.5; module hole() { translate([0,0,-o]) cylinder(zo2, dk2, dk2); } module centerZ(h, total) { translate( [0, 0, (total-h)/2 ] ) children([0]); } module blobb() {cylinder(0.2, r=6);} module mk(r=mkr) { minkowski(...
glb/cad_ffdf5e402fe0.glb
Create a Concept Ring with a compartment for electronics. Start by constructing a ring loop with an outer radius of 20mm and an inner radius of 18mm, and a thickness of 18mm. Attached to the bottom of the loop, create a ring body. This body is a rounded cube formed by the Minkowski sum of a cube with side lengths of ...
include <Thread_Library.scad> d=28; length=6; pitch=2.7; pitchRadius=d/2; tooth_height=1.6; cubesize=30; difference(){ translate([-15,-20,-12.5 ]) 2Lcap(); # translate([-15,-20,-12.5 ]) cylinder(h = 10, r=1, center = false); # translate([-cubesize/2,-cubesize/2-5,-cubesize/2 ]) cylinder(h=7, r=12, center = fals...
glb/cad_4004a0ee2026.glb
Create a Flower Petal Vase by extruding a floral profile vertically. Start with a 2D base shape consisting of a central circle with a radius of 9mm, surrounded by 8 identical petals. Each petal is formed by a circle with a 5mm radius, scaled by a factor of 1.667 (100mm length divided by 60mm width) to create an oval, a...
petal_length = 100; petal_width = 60; no_of_petals = 7; petal_spacing = 0; center = 9; twist = 90; height = 80; scale = 2; anti = "no"; layerheight = .24; $fs=0.8; $fa=4; slices = height/layerheight; module petal() { translate([-((petal_length/10)+petal_spacing),0,0]) scale([(petal_length/petal_width),1,1]...
glb/cad_e7cad5e187ab.glb
Create a set of 10 nested Russian doll containers in the shape of open-topped cubes. The largest container starts with outer dimensions of 20mm length, 20mm width, and 20mm height (half of the 40mm total height variable). Each subsequent container in the series must be smaller than the previous one, reducing all outer ...
length=20; width=20; height=40; thickness=2; Number_of_dolls=10; shape="cube"; $fn=50; if(shape=="cube"){ for(i=[0:Number_of_dolls-1]) if(length-i*thickness>0&&width-i*thickness>0&&height/2-i*thickness/2>1){ translate([0,width*i+5,-i*thickness/4]){ ...
glb/cad_aadc324638d1.glb
Create a hose connector nut by starting with a main cylinder that has an outer diameter of 31mm and a total height of 15mm. Hollow out the center of this cylinder to create a wall, then carve a metric thread into the inner wall with a diameter of 28mm and a pitch of 1.5mm, extending this threaded section to a height of...
$fn=50; use <../Libs/threads.scad>; OuterDiam = 31; InnderDiam = 25.2; TotalHeight = 15; BaseHeight = 10; TopDiam = 20; NodgeSize = 1.7; ThreadSize = 28; ThreadPitch = 1.5; ExtraDepth = ThreadPitch * 0.614; difference(){ cylinder(d=OuterDiam,h=TotalHeight); translate([0,0,TotalHeight - BaseHeight]){ ...
glb/cad_f4027e9fa9c5.glb
Create a circular small parts tray with a height of 24mm. The main body is a hollow ring with an outer radius of 59mm and a wall thickness of 2mm. The center of the tray is open, defined by a cylindrical hole with a radius of 10mm. Divide the interior of the ring into six equal wedge-shaped compartments using six radia...
inner_radius = 10; outer_radius = 59; wall_width = 2; height = 24; dividers = 6; $fn = 120; module box(inner_radius, outer_radius, height, wall_width, dividers){ difference(){ intersection(){ union(){ difference() { cylinder(h=height, r=outer...
glb/cad_cf92ec50c63f.glb
Create a universal phone case by constructing a hollowed-out shell based on a phone with dimensions 148.9mm x 75.1mm x 10.4mm. First, create a solid rounded rectangular form with a thickness of 2mm. This outer form is composed of a central box with dimensions 138.5mm x 65.1mm x 10.4mm, four corner spheres with a radius...
$fn = 36; case_thickness = 2; swell = 0.35; My_Phone_X = 148.2; My_Phone_Y = 74.4; My_Phone_Z = 9.7; cut_through_offset = 0.1; phone_x_dim = My_Phone_X + (swell * 2); phone_y_dim = My_Phone_Y + (swell * 2); phone_z_dim = My_Phone_Z + (swell * 2); module phone(phone_x_dim, phone_y_dim, phone_z_dim) { cube(size = [...
glb/cad_3678a32cd5fa.glb
Create a parametric kitchen knife sheath. The main body is a hollowed-out blade shape with a total length of 115mm, a maximum width of 18mm, and a thickness of 1.5mm. The walls of the sheath should be 0.5mm thick. The sheath is formed by creating an outer blade volume and subtracting an inner blade volume to create th...
knife_length = 115; knife_width = 18; knife_thickness = 1.5; wall_thickness = 0.5; has_windows = 1; number_of_windows = 10; has_ridges = 0; grip_cutoff_angle = -20; $fn = 80*1; wall = 2*wall_thickness; pad = 2*1; translate ([0, 0, knife_width + 2 * wall + pad]) rotate ([0, 180, 180]) parasheath (l...
glb/cad_4978b6429e57.glb
Create a NEMA 17 Gear Joint consisting of two interlocking gears housed within a mounting frame. First, construct the outer housing. Create a base structure that incorporates a NEMA 17 stepper motor mount, which is a 31.04mm square with a central circular cutout of radius 5.2mm and four M3 bolt holes of radius 1.7mm ...
use <MCAD/involute_gears.scad> include <MCAD/stepper.scad> $fn = 64; tol_x = .2; tol_z = .4; module my_motor() { motor(Nema17, NemaShort); } module small_gear(teeth, thickness) { gear( number_of_teeth=teeth, circular_pitch=256, twist=1024/teeth/thickness, rim_width=2, ...
glb/cad_14e4d962fad7.glb
Create a YATH tool holder by starting with a solid rectangular main body that is 23mm wide (x-axis), 9.5mm deep (y-axis), and 10mm high (z-axis). Hollow out the center of this body to create an internal rectangular chamber with dimensions of 17mm wide, 3.5mm deep, and 12mm high. To make the holder "open," remove a se...
use <utils/build_plate.scad> ilength = 17; iwidth = 3.5; height = 10; thickness = 3; base_thickness = 7; open = "yes"; translate([0,0,height/2]) tool_holder(ilength, iwidth, height, thickness, base_thickness, open); build_plate_selector = 3; build_plate_manual_x = 200; build_plate_manual_y = 200; translate([...
glb/cad_42c0d9003aa1.glb
Create a Spiral Poem Bracelet by constructing a hollow cylinder with an outer diameter of 68.4mm (66mm inner diameter plus 1.2mm wall thickness on each side) and a height sufficient to accommodate the length of the provided text. Cut a helical path through the cylinder wall to transform the tube into a single continu...
text="This placeholder text just goes on and on and on and on and on and on and on and on and on and on and on and on and on and on..."; wristDiameter = 66; fontSize = 6.0; bandHeight = 12; braceletThickness = 1.2; font = 1; letterDepth = 2; cutDepth = 0.4; font_array = ["BlackRose.dxf", "Letters.dxf", "orbitro...
glb/cad_7f3a04114095.glb
Create a Flexible Tube consisting of a central cylinder and three repeating bellows sections stacked vertically. The overall outer diameter of the tube is 47mm. The central inner core is a cylinder with a radius of 22mm (calculated as the outer radius minus the 3mm profile width). Each of the three bellows sections is...
Bellows_No = 3; Tube_Diameter = 47; Profile_Width = 3; Profile_Edge_Radius = 0.5; Slope_Degrees = 40; Tube_Circle_Resolution = 0.75; Edges_Layer_Height = 0.15; function bt4h(h,r) = asin(h/r); function fn4r(r,s) = fn4d(2*r,s); function fn4d(d,s) = 4*round(d*PI/4/s); flexible_tube(); module flexible_tube() { ft...
glb/cad_adc3c526d9f1.glb
Create an extruder filament guider and gap filler by starting with a central rectangular block measuring 16mm wide, 12mm deep, and 12mm high, centered on the X and Z axes. From this block, remove several geometric volumes to create the necessary clearances. First, carve out a vertical cylinder with a diameter of 11.8mm...
$fn=120; rotate([180,0,0]) difference(){ translate([ -11/2, -6, -1]) cube([16 ,12 ,12 ], center=true); translate([ 0, 0, 0]) cylinder(d=11+0.8, h=16, center=true); translate([(11+13)/-2, 0, 0]) cylinder(d=13+0.6, h=16, center=true); translate([ -11/2, -7.5, -1.7]) rotate([ 90 , 0 , 0]) cylinder(d1=...
glb/cad_a5143292e916.glb
Create a Bolt Hole Template consisting of a flat rectangular frame with a thickness of 2mm. The outer dimensions of the frame should be 84.5mm in length and 53.5mm in width. The frame is defined by a border 3mm wide. At the four corners of the rectangle, create four circular holes, each with a diameter of 9.5mm. These...
one_inch=25.4; diameter=9.5; width=44.5; length=74.6; border=3; thick=2; tabs=0; guide=0; guide_side=0; guide_dist=10; guide_height=10; t_length=length+diameter+border*2; t_width=width+diameter+border*2; radius=diameter/2; make_plate(thick, border, t_width, t_length); translate([length/2,width/2,0]) ma...
glb/cad_22961631c6a1.glb
Create a clip-on basket bracket for a bed rail. The object is a 2D profile extruded to a depth of 25mm. The profile is a specialized C-clamp shape designed to fit a rail with a width of 42mm and a height of 42mm. The walls of the clip have a thickness of 5mm. The top and bottom edges of the clip feature rounded corne...
railHeight = 42; lipHeight = 15; thickness = 5; railWidth = 42; depth = 25; RailClip(railWidth,railHeight,lipHeight,thickness,depth); translate([10,-5,0]) cube([20,3,depth]); translate([30,-5,0]) cube([3,5,depth]); module RailClip(railWidth,railHeight,lipHeight,thickness,depth) { r = thickness/2; t1 = 10; t2 = 20; ...
glb/cad_9e92c0687cd8.glb
Create a multi-color single layer engrave testpiece in the shape of a flat ring. Construct a solid cylinder with a radius of 29mm and a height of 0.25mm. From the center of this cylinder, remove a smaller concentric cylindrical volume with a radius of 23mm and the same height of 0.25mm to create a hollow circular band ...
use <write.scad>; union () { difference () { color ("red") cylinder (h=0.25, r1=29, r2=29); color ("white") cylinder (h=0.25, r1=23, r2=23); } }
glb/cad_b56988621e92.glb
Create a speed limit sign testpiece by starting with a main white cylindrical base that has a radius of 29mm and a height of 2mm. Around the outer edge of this base, add a red ring with an outer radius of 29mm and an inner radius of 23mm, with a height of 0.25mm. Finally, engrave the number "50" into the center of the ...
use <write.scad>; difference () { color ( "white") cylinder (h=2, r1=29, r2=29); union () { difference () { color ("red") cylinder (h=0.25, r1=29, r2=29); color ("white") cylinder (h=0.25, r1=23, r2=23); } } color ("black") translate (v=[-17,13,0.25]) rotate (a=[0,180,180]) write("50",h=25,t=1,font="orbitron.dxf"...
glb/cad_a45303879ee7.glb
Create a fidget spinner ring with a central bearing housing and three radiating arms. Start with a central base cylinder that has a diameter of 25mm and a height of 7mm, featuring a concentric hole through the center with a diameter of 22mm to accommodate a bearing. Extend three identical arms from the central base, ...
$fa = 0.5; $fs = 0.5; o = 0.1; o2 = o + o; z = 7; zo2 = z + o2; dk = 22; dk2 = dk/2; mkr = 1.5; module hole() { translate([0,0,-o]) cylinder(zo2, dk2, dk2); } module centerZ(h, total) { translate( [0, 0, (total-h)/2 ] ) children([0]); } module blobb() {cylinder(0.2, r=6);} module mk(r=mkr) { minkowski(...
glb/cad_e1cfe2569842.glb
Create a colormix 4 ring by constructing a series of concentric cylindrical layers and a surrounding torus. Start with a base cylinder that has a radius of 4.1mm and a height of 6.6mm. On top of this base, add a second, thinner cylinder with a radius of 5.1mm and a height of 0.5mm. Above that, place a third cylinder wi...
$fa = 0.3; $fs = 0.3; h = 3; hadd = 2.4 * 1.5; r = 4.1; s = 1.5; rd = 5; c = 5; w = 360 / c; union() { translate([0,0,0]) cylinder(h + hadd,r,r); translate([0,0,hadd]) cylinder(0.5,r+1,r+1); translate([0,0,h + hadd]) cylinder(0.4,r,r-0.3); translate([0,0,hadd/2]) hull() { scale([1,1,1.5]...
glb/cad_19d31863f1dd.glb