Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a terminal block cover for a power supply with an overall width of 115mm, height of 50mm, and a depth of approximately 62mm. The main body is a hollow rectangular shell with a wall thickness of 3mm and rounded corners with a 2mm radius. On the back wall, create two circular cable pass-through holes with a diame...
resolution=120; wall_thk=0; corner_rad=2; overlap=10; wth=115; hgt=50; term_len=25; block_hgt=3; m3_dia=3.4; m3_back_offset=27.5 + term_len; m3_side_offset=10; m4_dia=4.5; m4_back_offset=32.5 + term_len; m4_side_offset=32.5; m4side_back_offset=32.5 + term_len; m4side_center_offset=25; cord_dia=7.5; cord_center_offse...
glb/cad_6bb091040c07.glb
Create an LCD-Frame by starting with a solid rectangular block measuring 55mm wide, 67mm long, and 4mm thick, centered on the origin. From this main body, remove a central rectangular volume of 40mm by 52mm that spans the full thickness to create a hollow window. To further refine the opening, remove a rectangular sect...
module dummy() { translate([0,-3,0]) union() { color("silver") cube([43,62,6], true); translate([0,3,0.1]) color("black") cube([40,52,6], true); translate([0,30,0]) cube([10,2,10], true); translate([20.75,0,0]) cube([1.5,10,10], true); translate([0,-25.5,0]) cube([10,5,10], ...
glb/cad_a3214f961b99.glb
Create a stand consisting of a large circular ring with two rectangular tabs extending from it. First, construct a torus-like ring by rotating a circle with a radius of 10mm around a central axis at a distance of 100mm. To this ring, attach two rectangular tabs, each measuring 20mm wide, 10mm deep, and 40mm high. Posit...
module tab(x, y, z, r) { translate([x,y,z]) rotate(r,0,0) difference() { cube([20,10,40]); translate([10,-20,30]) rotate([0,90,90]) cylinder(h=40,r=2); } } module stand() union(){ rotate_extrude($fn=500) translate([100, 0, 0]) circle(r=10, $fn...
glb/cad_cff08642134e.glb
Create a circular base with an outer radius of 41mm and a height of 5mm, featuring a concentric inner hole with a radius of 21mm. On top of this base, construct two identical support structures. Each structure consists of two parallel arms, each formed by the convex hull of two cylinders with a radius of 5mm and a heig...
module edge(l) { hull() { cylinder(r=5,h=10); translate([l,0,0]) cylinder(r=5,h=10); } } module side(l) { union() { edge(l); rotate(240) mirror() edge(l); } } module base(r, d){ difference(){ cylinder(r=r, h=d); translate([0,0...
glb/cad_a23ce87a2669.glb
Create a hollow oval-shaped sleeve with a height of 12mm. To form the outer wall, create a hull encompassing two 30-sided prisms with a radius of 6mm, positioned 11mm apart along the x-axis. To create the interior cavity, remove a hull formed by two 30-sided prisms with a radius of 5.14mm, also positioned 11mm apart, b...
$fn=30; $fn=30; outside_rad = 6; height=12; difference() { hull() { cylinder(h=height, r=outside_rad); translate([11,0,0])cylinder(h=height, r=outside_rad); } translate([0,0,.86]) hull() { cylinder(h=height, r=outside_rad - .86); translate([11,0,0])cylinder(h=height, r=outside_rad -.86); } }
glb/cad_539aa233e140.glb
Create a dual-extruder test object based on a 50mm square footprint. Construct the base by stacking four thin layers, each 0.3mm thick. The first and third layers should be solid 50mm by 50mm squares. The second and fourth layers should also be 50mm by 50mm squares, but with specific modifications: add a 10mm by 10mm s...
yellow = 0; blue = 1; u = 50; h = .3; layers=4; difference() { main(); cube([u/2+1,u/2+1,30]); cylinder(r1=u/8, r2=u/2, h=2, $fn=40); } module main() { color("yellow") if (yellow == 1) { layer(1); layer(3); translate([u/2,-u/2,0]) cube([u/5,u/5,layers*h]); ...
glb/cad_ba774b8533b3.glb
Create a 3D model consisting of four distinct geometric components. First, place a flat rectangular base measuring 30mm by 30mm with a height of 2mm. Second, create a hollow rectangular beam measuring 30mm in length, 10mm in width, and 10mm in height; this beam is formed by removing a central rectangular block of 26mm ...
cube([30,30,2]); difference() { cube([30,10,10]); translate([2,-1,2])cube([26,12,6]); } translate([0,20,0]) difference() { cube([30,10,10]); translate([2,-1,2])cube([26,12,6]); } translate([20,0,10]) rotate([0,0,90]) difference() { cube([30,10,10]); translate([2,-1,2])cube([26,12,6]); }
glb/cad_a98b935de06e.glb
Create a rectangular plate with a total width of 50mm, a length of 90mm, and a height of 13mm. The main body is a central rectangular block measuring 43mm wide, 90mm long, and 13mm high. To the left and right sides of this central block, add two right-triangular prisms that are each 3.5mm wide, 90mm long, and 7mm high,...
use <../../../elmom/MCAD/libtriangles.scad> width_bottom = 50; width_top = 43; width_triangle = (width_bottom - width_top) /2; length = 90; height = 13.00; triangle_height = 7; module plate() { translate([width_triangle,0,0]) cube([width_top, length, height]); color("green") translate([width_triangle,0,0]) mirr...
glb/cad_5ec455eb8f07.glb
Create a hollow cylindrical container with an outer diameter of 18mm and a total height of 26mm. The container should have a solid base with a thickness of 5.42mm. From the top of this base, remove a central cylindrical volume to create the interior cavity. This cavity must start at a height of 5.42mm from the bottom a...
difference() { cylinder(h=26,r=9); translate([0,0,4]) { translate([0,0,5.42])cylinder(h=30,r2=16.4/2,r=15.03/2); cylinder(h=5.42 ,r=12.05/2); } }
glb/cad_e4bbd74a4da1.glb
Create a hollow cylindrical container with a total height of 25mm and an outer diameter of 43.25mm. The container should have a flat base with a thickness of 1.5mm. The interior should be a concentric cylindrical void with a diameter of 40.25mm and a depth of 23.5mm, leaving a wall thickness of 1.5mm around the perimet...
$fn=60; wall = 1.5; diameter = 40.25; height = 25; radius = diameter / 2; difference() { cylinder(r=radius + wall, h=height); translate([0,0,wall])cylinder(r=radius, h=height+.1); }
glb/cad_e7fbc99a50a8.glb
Create a 3D model of a cross shape with a thickness of 3mm. The model consists of two intersecting rectangular prisms and one cylinder. First, create a rectangular prism measuring 25mm wide, 10mm deep, and 3mm thick, centered on the X and Y axes. Second, create a second rectangular prism measuring 10mm wide, 25mm deep,...
inmm = 25.4; a = 9*inmm; a2 = (a-(.25*inmm)); b = 1.5*inmm; $fn=150; ratio = .778; module assem1() { difference() { union() { band(); side(); rotate([0,0,180]) side(); } translate([-6*inmm, -6*inmm, -12*inmm]) { cube([12*inmm,12*inmm,12*inmm]); } ...
glb/cad_adfe7eb2135d.glb
Create a 3D model of the text "CLE" using a bold, stylized font. Extrude the letters to a uniform height of 10mm. Ensure the characters are centered both horizontally and vertically, with a font size of 60 units. The final shape should be a solid, three-dimensional extrusion of these three letters.
linear_extrude(height=10) text(text="CLE", font="Katy Berry", size=60, halign="center", valign="center");
glb/cad_259855c35ea0.glb
Create a recursive, fractal-like geometric lattice based on a central point. Start by creating three rectangular bars, each 40mm long, 8mm wide, and 5mm thick. Position these bars so they radiate from the center, each rotated 120 degrees from the last. At the outer end of each of these initial bars, repeat the process ...
count = 3; s(count = 6, length = 40, iterations = 4); width = 8; module s(count = 4, length = 40, iterations = 3) { if (iterations > 0 ) { for (i=[1:count]) { rotate([0,0,360/count * i]) { line(length = length, width = iterations); translate([length,0,0]) s(count = 6, length = length/2,...
glb/cad_db061c229da7.glb
Create a nameplate for the word "Kate" using a base plate and raised lettering. Start by creating a rounded rectangular base measuring 60mm by 30mm with a thickness of 2mm and corner radii of 3mm. On the top surface of this base, center the text "Kate" using a font size of 15mm. The letters should be extruded to a he...
include<../../../elmom/MCAD/boxes.scad>; word = "Kate"; red = 1; silver = 0; size_x = 60; size_y = 30; size_z = 2; radius = 3; inside_offset = 3; inside_width = 2; text_height = .6; text_size = 15; ring_radius = 8/2; ring_width = 3; r2_radius = 3; r2_width = 2; if (silver) { color("Grey") difference() { ...
glb/cad_abcabda01275.glb
Create a rectangular box with a total length of 60mm, a height of 33mm, and a total width of 88.5mm. The walls should be 5mm thick, with a bottom base thickness of 8mm. Carve out two symmetrical rectangular channels from the top, each 38mm wide, separated by a center wall 3.5mm thick. At the two ends of the box, crea...
$fn=60; height = 33; length = 60; doorwidth= 38; wall_thickness = 5; middlewall_thickness = 3.5; bottom_thickness = 8; screw_bottom_thickness = 4; totalwidth = doorwidth * 2 + wall_thickness * 2 + middlewall_thickness; difference() { translate([-length/2, -totalwidth/2,0])cube([length, totalwidth, height]); transla...
glb/cad_05b9613ca2b7.glb
Create a rectangular keychain body with rounded edges. The main body should be 48.6mm wide, 20mm high, and 3mm thick. Soften all edges and corners using a 0.8mm radius fillet. Engrave the text "PHS" into the top surface of the body using a bold, sans-serif font. The letters should be 12mm in size and recessed to a de...
word="PHS"; letterCount=len(word); namedepth = 2; lw = 12.2; margin = 6; width= letterCount * lw + margin + margin; height=20; depth = 3; difference() { body(); translate([margin+2,height/2,depth - namedepth + .2]) linear_extrude(height=namedepth+.6) text(text=word, size=12, font="Aria...
glb/cad_765f2d7f3060.glb
Create a rectangular keychain tag with rounded corners. The main body should be 42.6mm wide, 20mm high, and 1.5mm thick. Use a Minkowski sum with a 0.8mm sphere to ensure all edges and corners are rounded. On the left side of the tag, create a circular hole with a radius of 2mm that passes completely through the body...
word="PHS"; letterCount=len(word); namedepth = 1; lw = 12.2; margin = 6; width= letterCount * lw + margin + margin; height=20; depth = 1.5; union() { difference() { body(); translate([3,height/2,-.8]) cylinder(r=2, h=depth + 2, $fn=20); } #translate([margin+2,height/2,...
glb/cad_b0b2d25c4fc3.glb
Create a rectangular base plate measuring 52mm by 42mm with a thickness of 3mm and rounded corners with a 2mm radius. Centered on the top surface of this plate, add two lines of extruded text, each 3mm high. Position the first line of text, reading "PHS", so that it is centered horizontally and placed near the top edge...
translate([2,2,0]) minkowski() { cube([48,38,2]); cylinder(r=2,h=1); } translate([26,22,2])linear_extrude(3)text("PHS", size=15, font="britannic bold", halign="center"); translate([26,5,2])linear_extrude(3)text("STEM", font="britannic bold", size=15, halign="center");
glb/cad_54f87aa15eb6.glb
Create a hinge consisting of two mirrored rectangular plates, each 20mm wide, 34mm long, and 4mm thick. On the inner edge of each plate, create two cylindrical barrels. Each barrel is a hollow cylinder with an outer radius of 3.2mm and an inner radius of 1.2mm, and a length of 7.6mm. Position these barrels such that th...
$fn = 50; width = 20; length = 34; thickness = 4; pinradius = 1.2; barrelthickness = 2; barrelsections = 4; barrelspacing = .3; barrellength = (length / barrelsections) - barrelspacing; barrelradius = pinradius+barrelthickness; barreldiameter = barrelradius * 2; screwradius = 2.6; printedpin = 0; pinhead = 2; hinge_s...
glb/cad_2dd09ec14630.glb
Create a hose adapter consisting of a central cylindrical tube and a square base flange. Start by creating a hollow cylinder with an outer radius of 42mm, an inner radius of 40mm, and a height of 35mm. Attached to the bottom of this cylinder, center a square plate that is 100mm wide, 100mm long, and 3mm thick. On t...
$fn=60; hose_radius = 84/2; hose_depth = 35; thickness = 2; flange_width = 100; flange_length = 100; flange_depth = 3; flange_offset_x = 0; flange_offset_y = 0; fan_holes = 0; fan_mount_hole_distance=71.2 / 2; fan_mount_hole_diameter = 4.5; flange_hole_diameter = 4.5; flange_hole_distance = (flange_width - 20) /2;...
glb/cad_09f4284b574b.glb
Create a hollowed-out sleeve designed to fit a hose. Start by creating a solid base shape that is the convex hull of a cylinder with a radius of 41mm and a height of 25mm, and a rectangular block measuring 30mm wide, 150mm long, and 25mm deep, positioned such that the block is centered and extends 60mm above the cylind...
hosedia = 82/2; hose_depth = 25; window_width = 30; window_length = 150; window_depth = 25; difference() { hull() { cylinder(r=hosedia, h=hose_depth); translate([-window_width/2, -window_length/2,60]) cube([window_width, window_length, window_depth]); } hull() { cylinder(r=hosedia - 3, h=hose_depth + 1); tra...
glb/cad_8ce6920e487c.glb
Create a hollow cylindrical capsule with a total length of 120mm and an outer diameter of 30mm. The top of the cylinder should be capped with a hemisphere of the same 30mm diameter. The interior must be hollowed out by removing a central cylinder with a diameter of 22mm, leaving a wall thickness of 4mm, though this int...
$fn=60; length = 120; outside_diameter = 30; wall_thickness = 4; rope_diameter = 6; difference() { { difference() { union() { cylinder(r=outside_diameter/2, h=length); translate([0,0,length])sphere(r=outside_diameter/2); } translate([0,0,-1])cylinder(r=outside_diameter/2-wall_thickness, h=leng...
glb/cad_94b7fce32327.glb
Create a cube with side lengths of 30mm. From this main volume, remove three smaller rectangular prisms to create a hollowed-out center. First, remove a 10mm by 10mm square prism that runs vertically through the center, starting from the top face and extending 30mm down to the bottom. Second, remove a 10mm by 10mm squa...
difference() { cube([30,30,30]); translate([10,10,10]) cube([10,10,30]); translate([10,10,10]) cube([10,30,10]); translate([10,10,10]) cube([30,10,10]); }
glb/cad_c8849d4237c2.glb
Create a hollow cylindrical ring with an outer radius of 24mm, a total height of 22mm, and a wall thickness of 3mm. Centered vertically at a height of 11mm, engrave the word "Lynn" into the outer surface of the cylinder. This text should be recessed to a depth of 2mm and have a character height of 13.2mm. Repeat this e...
use<write.scad>; name="Lynn"; nameCount=2; namedepth = 2; height=22; radius=24; wall=3; $fn=100; difference() { difference() { cylinder(h=height,r=radius); translate([0,0,height/2]) for (z = [0 : nameCount]) { rotate([0,0,z * 360 / nameCount]) writecylinder(name,[0,0,0],radius,t=namede...
glb/cad_ace0dd4dae8b.glb
Create a mounting frame consisting of two rectangular borders with a height of 2mm. The first border is a rectangle measuring 102.9mm by 103.36mm with a frame thickness of 14mm. The second border is a rectangle measuring 75.55mm by 135.4mm, also with a frame thickness of 14mm, positioned such that it overlaps and exten...
ramps_screw_width = 94.9; ramps_screw_depth = 95.36; mount_height = 2; frame_width = 14; rumba_hole_width_1=67.55; rumba_hole_width_2=35.65; rumba_hole_depth=127.4; screw_dia = 3.3; module screwhole() { translate([0,0,-2])cylinder(r=screw_dia /2, h=20, $fn=30); } module nutHole(h1) { cylinder(r=6.80/2, h=h1, $fn=...
glb/cad_4a2c5f32f341.glb
Create a rectangular spacer block with dimensions 16.73mm in width (X), 32mm in length (Y), and 4.7mm in height (Z). Centered along the length of the block, carve a female dovetail slot that is 5mm deep and 4.7mm high, with a maximum width of 11mm and a minimum width of 5mm, incorporating a clearance of 0.45mm. On the ...
include <../../../../lib/dovetail.scad> $fn=60; count = 2; end_x = 4.9; end_z = 4.9; end_y = 30; front_z = 9.9; front_y = 5.1; front_z_offset=4.7; spacer_distance = 50.2; spacer_x = spacer_distance/3 ; spacer_y = 32; spacer_z = front_z_offset; spacer_radius = 1.6; spacer_multiple = 1; tongue_x = 10; tongue_z = 2; ...
glb/cad_d4f78154241b.glb
Create two identical brackets. For each bracket, start with a solid rectangular block measuring 108mm in length, 42mm in width, and 15mm in height. Hollow out the center of this block by removing a rectangular section measuring 100mm by 42mm with a depth of 15mm, leaving a wall thickness of 4mm on the ends and a base t...
use <../../../elmom/MCAD/boxes.scad> bracket_thickness = 4; bracket_width = 15; ps_width = 100; ps_height = 38; bracket1(); translate([0,ps_height + 15,0]) bracket2(); module bracket1() { difference() { cube([ps_width + bracket_thickness * 2 , ps_height + bracket_thickness , bracket_width]); translate([brack...
glb/cad_8f2e6ffd7e10.glb
Create a wheel with a total diameter of 50mm and a width of 5mm. Start by forming a main cylindrical ring with an outer radius of 25mm and an inner radius of 23.5mm, creating a rim thickness of 1.5mm. At the center of this ring, create a circular hub with a radius of 8.2mm (4.2mm axle radius plus 4mm hub thickness) tha...
$fn=60; abs = 1; nf = 0; diameter = 50; width = 5; tire_thickness = 5; axel_radius = 4.2; rim_thickness = 1.5; hub_thickness = 4; spokes = 6; spokewidth = 2; radius = diameter/2; if (abs == 1 ) { color("black") { difference() { union() { difference() ...
glb/cad_b04bfd6a2a10.glb
Create a short, wide cylinder with a radius of 11mm and a height of 7mm. Centered vertically through the middle of this cylinder, remove a smaller cylindrical hole with a radius of 4mm that extends completely through the top and bottom faces.
difference() { union() { color("red") cylinder(r=11, h=7); } color("grey")cylinder(r=4, h=100); }
glb/cad_4218352842b9.glb
Create a shallow cylindrical container with an outer diameter of 98mm and a total height of 15mm. The container should have a flat base with a thickness of 3mm and a wall thickness of 2mm. Bore a central vertical hole through the base with a diameter of 10.1mm. To create the interior cavity, remove a cylinder from the ...
$fn=100; outside_dia = 98; cylinder_thickness = 2; bottom_thickness = 3; height = 15; bolt_dia = 10.1; screw_dia = 3.6; difference() { cylinder(r=outside_dia/2, h=height); translate([0,0,bottom_thickness]) cylinder(r=outside_dia/2 - cylinder_thickness, h=height-bottom_thickness + 1); translate([0,0,-1]) cylind...
glb/cad_b18ecf8d58dc.glb
Create a thin cylindrical disc with a diameter of 50.8mm and a height of 3mm. Centered on the top face of the disc, carve out the text "2\"" with a font size of 15mm, ensuring the text is recessed into the body. Additionally, create a vertical circular hole with a diameter of 3mm that passes completely through the disc...
diameter_inches = 2; diameter = diameter_inches * 25.4; radius = diameter/2; height = 3; holediameter = 3; text = "2\""; difference() { cylinder(d=diameter, h = height, $fn=60); label(); hole(); }; module label() { translate([0,0,height - 1]) { linear_extrude(height = 5) { ...
glb/cad_55fdfc6b7a00.glb
Create a peace symbol disc with a total height of 5mm and an outer radius of 25mm. Start by forming a hollow cylinder with a wall thickness of 3mm. Divide the interior of this ring into three equal sections by adding three rectangular dividers, each 3mm wide and 5mm high. Position these dividers so they radiate from th...
$fn=60; rad1 = 25; height = 5; wall = 3; difference() { cylinder(r=rad1, h=5); translate([0,0,-.5])cylinder(r=rad1-wall, h=6); } for(i = [0,120,180,240]) { rotate([0,0,i])translate([-wall/2,0,0])cube([wall,rad1,height]); }
glb/cad_83ec3201ce8a.glb
Create a wrench tool with a total length of 72mm and a thickness of 4mm. The main body is a rectangular bar 8.4mm wide and 4mm thick. At each end of the bar, center a cylinder with a radius of 8.2mm and a height of 4mm. Cut a hexagonal hole with a diameter of 8.4mm and a height of 6mm through the center of one of the...
include <inc/shapes.scad> kerf = 0.4; WrenchSize = 8; D = WrenchSize + kerf; M = D/2; H = 4; Ltot = D * 9; L = Ltot-2*(D/2+M); rotate([0, 0, 0]) difference() { union() { translate([0,L/2,H/2]) { cylinder(r = (D/2+M), h = H,center = true); } translate([0,-L/2,H/2]) { cylinder(r = (D/2+M), h = H,center = ...
glb/cad_bb38d57078ba.glb
Create a 3D model consisting of six rectangular plates, each measuring 20mm by 10mm with a thickness of 2mm. Arrange these plates in a stacked formation, alternating their orientation by 90 degrees for each layer. The first plate lies flat, the second is rotated 90 degrees on the Z-axis, the third is flat, the fourth i...
$fn=20; size = 20; yellow = 1; blue = 0; difference() { union() { layer(0); rotate([0,0,90]) layer(2); rotate([0,0,0]) layer(4); rotate([0,0,90]) layer(6); rotate([0,0,0]) layer(8); rotate([0,0,90]) layer(10); } t...
glb/cad_eda4e9ab7728.glb
Create a hollow cylinder with a height of 40mm and an outer radius of 8mm. The cylinder should have a wall thickness of 0.8mm, created by removing a concentric inner cylinder with a radius of 7.2mm. Ensure the geometry uses a 30-facet resolution to give the walls a faceted, polygonal appearance rather than a perfectly ...
$fn=30; inside_rad = 8; thickness = .8; length = 40; difference() { cylinder(r=inside_rad, h=length); translate([0,0,-1])cylinder(r=inside_rad-thickness, h=length+2); }
glb/cad_75590189f6a7.glb
Create a hollow rectangular box with an open top. The outer dimensions of the box should be 17mm in width, 7mm in depth, and 16mm in height. The walls and the base should each have a uniform thickness of 1mm. To achieve this, start with a solid rectangular prism of the outer dimensions and remove a smaller rectangular ...
width = 15; depth = 5; height = 15; thickness = 1; difference() { cube([ width+thickness*2, depth+thickness*2, height+thickness ]); translate([thickness,thickness,thickness]) cube([ width, depth, height+.1 ]); }
glb/cad_86c8b6b385af.glb
Create a geometric object composed of several stacked layers, each 0.6mm thick. For each layer, construct a central rectangular bar 30mm long and 1mm wide. At each end of this central bar, attach two smaller 7.5mm by 1mm bars extending outwards at 135-degree angles from the center line, creating a pointed tip on one si...
red = 1; green = 0; length = 30; width = 1; layer_height = .3; layers_per_color = 2; height_per_color = layer_height * layers_per_color; module l() { translate([-length/2,-width/2,0]) { cube([length, width, height_per_color]); translate([length,sqrt(.5),0]) { rotate([0,0,13...
glb/cad_0a7595aad4e5.glb
Create a thin, square slab with a width and length of 10mm and a height of 3mm. Position the object so that it sits on the XY plane.
size = 10; height = 3; color("blue")translate([0,0,height])cube([size,size,height]);
glb/cad_ab8dad906d54.glb
Create a 3D model consisting of three stacked rectangular layers, each 2mm thick. The first layer is a rectangular slab measuring 30mm in width and 10mm in depth. Position a second identical 30mm by 10mm by 2mm slab directly above the first, but offset it by 20mm along the depth axis. Finally, place a third identical 3...
yellow = 1; blue = 0; layer(0); rotate([0,0,90]) layer(2); rotate([0,0,0]) layer(4); module layer(z = 0) { translate([-15,-15,z]) { if (yellow==1) { color ("yellow") { cube([30,10,2]); translate([0,20,0]) cube([30,10,2...
glb/cad_4b1a69b80023.glb
Create a 3D model consisting of three rectangular layers stacked vertically. First, create two rectangular prisms, each measuring 30mm in length, 10mm in width, and 2mm in height. Position the first prism at coordinates (-15, -15, 0) and the second prism at (-15, 5, 0). Then, create a third rectangular prism of the sam...
yellow = 1; blue = 1; difference() { sum() { layer(0); rotate([0,0,90]) layer(2); rotate([0,0,0]) layer(4); } cube([3,3,20]); } module layer(z = 0) { translate([-15,-15,z]) { if (yellow==1) { color ("yellow") { ...
glb/cad_41947b8604fc.glb
Create three distinct groups of geometric shapes and text labels arranged in a row along the X-axis. For the first group at the origin, create a 3x3x3 grid of cells spaced 2mm apart in all three dimensions. In each cell, place a sphere with a radius of 0.5mm, a cube with 1mm sides, and a cylinder with a radius of 0.5...
use <../cloners.scad> use <../random.scad> grid_array_cloner(size = [2, 2, 2], count = [3, 3, 3], clones = "random") { color("Red") sphere(r = .5, center = true); color("Yellow") cube([1, 1, 1], center = true); color("Blue") cylinder(r = .5, h = 1, center = true); } translate([0, -2, 0]) linear_extrude(hei...
glb/cad_f29075b02956.glb
Create three distinct geometric groups arranged linearly along the X-axis. For the first group, centered at the origin, arrange six identical clusters in a circle with a radius of 3mm. Each cluster must contain a sphere with a 0.5mm radius, a 1mm cube, and a cylinder with a 0.5mm radius and 1mm height, all centered on ...
use <../cloners.scad> use <../random.scad> radial_cloner(count = 6, r = 3, clones = "random") { color("Red") sphere(r = .5, center = true); color("Yellow") cube([1, 1, 1], center = true); color("Blue") cylinder(r = .5, h = 1, center = true); } translate([0, -2, 0]) linear_extrude(height = .1) text("example...
glb/cad_e143077d81fe.glb
Create a SurfaceConstellations bracket system consisting of two mirrored L-shaped brackets. Each bracket is formed by two intersecting slide-in elements. Each element is a rectangular block with a length of 60mm and a total height of 11.3mm (comprising a 7.3mm device thickness and two 2mm layers). Within each element, ...
brackets=2; mirror_X=0; mirror_Y=0; border_width_X=7; border_width_Y=8; cover_width = 11; layer_thickness=2.0; device_thickness=7.3; angle=55; length_X=60; length_Y=60; full_height = layer_thickness * 2 + device_thickness; extension=150; extension_support=25; extension_thickness=10; extension_support_w...
glb/cad_32601f7bace5.glb
Create a spur gear with 15 teeth, a circular pitch of 400mm, and a gear thickness of 10mm. The gear should have a rim thickness of 10mm and a hub thickness of 10mm. Add a central bore with a diameter of 5mm that passes through the entire thickness of the gear. The teeth should be constructed using an involute profile t...
gear (circular_pitch=400,gear_thickness = 10,rim_thickness = 10,hub_thickness = 10, circles=0, bore_diameter=5); pi=3.1415926535897932384626433832795; module build_shaft(bore_diameter , rim_thickness ,hub_thickness ,gear_thickness ) { intersection(){ cylinder ( r=bore_diameter/2,h=2+max(rim_thickness,hub_thick...
glb/cad_4efe08c9b1ef.glb
Create a pair of mirrored LCD supports for a Prusa i3 printer. For each support, start with a base block measuring 69mm by 81mm by 10mm. Modify this base by removing several geometric volumes to create a housing for a PCB: remove a central section and various angled blocks, including a 60mm by 53mm by 15mm volume and a...
pot_cutout = 1; module body() { difference() { translate([-55,-2,0]) cube([69,81,10]); union () { translate([-69.6,32,-1]) rotate([0,0,45]) cube([60,53,15]); translate([13.7,89.7,-1]) rotate([0,0,135]) cube([60,42,15]); tra...
glb/cad_0c127b5c9897.glb
Create two mirrored Z-axis bottom holders for a Prusa i3 printer. For each holder, start with a base composed of three rectangular plates: one measuring 8x49x36mm centered at [0, -1.5, 0], one measuring 30x4x22mm at [0, -5, 0], and one measuring 50x52.5x5mm at [0, -5, 0]. From this base, remove several geometric volu...
module z_bottom_base() { translate([0,-1.5,0]) cube([8,49,16+20]); translate([0,-5,0]) cube([30,4.01,22]); translate([0,41.5,0]) cube([30,6.01,22]); translate([0,-5,0]) cube([50,52.5,5]); } module z_bottom_fancy() { translate([0.5,-2.5,0]) rotate([0,0,-45-180]) translate([-15,0,-1]) cube([30,3...
glb/cad_685e72e4049b.glb
Create a heatbed cover for a Prusa i3 printer. Start with a base rectangular block measuring 36mm wide, 46mm long (36mm plus a 10mm extra length), and 9mm high. Hollow out the center of this block by removing a rectangular volume of 30mm by 16mm with a height of 9mm, positioned at x=-15, y=-0.5, and z=-3. Create a ca...
extra_length = 10; cable_resize = [9.75, 8]; module cover() { difference() { translate([-18,0,0]) cube([36,36 + extra_length,9]); translate([-15,-0.5,-3]) cube([30,16,9]); translate([-0,37 + extra_length,3]) rotate([90,0,0]) { if (cable_resize) { resize([cable...
glb/cad_ca360d053eed.glb
Create a PSU shroud for a Prusa i3 printer. Start with a main outer shell measuring 115.67mm wide, 53.34mm deep, and 70mm high. The shell has a wall thickness of 1.67mm. Hollow out the center to create a cavity for a power supply unit (PSU) measuring 114mm wide, 50mm deep, and 215mm high, starting from a bottom thickne...
cover_height = 70; bottom_thickness = 2; wall_thickness = 1.67; vent_tab_bottom = 13.5; vent_tab_height = 2; vent_tab_width = 15; vent_cutout = 1; lack_table = 1; lack_table_cable_clearance = 4.75; psu_width = 114; psu_depth = 50; psu_height = 215; psu_steel_thickness = 1.5; psu_vent_from_edge = 16.5; psu_vent_fro...
glb/cad_b38acf7a3bed.glb
Create an Arduino and RAMPS enclosure for a Prusa i3 style printer. Start with a rectangular outer box measuring 90mm wide, 150mm deep, and 50mm high. Hollow out the center of this box to create a shell with wall thicknesses of 1.26mm, and a top and bottom thickness of 1mm each. The interior hollow should be resized to...
printer_nozzle_od = 0.4; hotend_cable_cross_section = [10.5, 10.5]; heatbed_cable_cross_section = [9.75, 8]; top = 1; bottom = 1; wall = 1.26; frame_mount_origin = [4.89, 67.8]; box_origin = [0, frame_mount_origin[1] - 20, 0]; box_dimensions = [90, 150, 50]; difference() { translate(box_origin) { ...
glb/cad_c4f9ad58adee.glb
Create a Y belt holder for a Prusa i3 printer. Start with a base block 14mm wide, 56.5mm long, and 8mm high, positioned from x=-7, y=-24-18.5, z=44.5. Add a smaller rectangular block on top of this base, measuring 12mm wide, 30mm long, and 17mm high, centered at x=-5, y=-15, z=29. If an endstop compensation of 18.5mm i...
y_endstop_compensation = 18.5; module y_belt_holder() { difference() { union() { translate([-7,-24 - y_endstop_compensation,44.5]) cube([14,48 + y_endstop_compensation,8]); translate([-5,-15,29]) cube([12,30,17]); if (y_endstop_compensation > 0) { ...
glb/cad_4fad8b7fd356.glb
Create a varnerized prusa i3 part by constructing a hollow cylinder with an outer diameter of 4.89mm and a height of 4mm. Remove a concentric cylindrical core from the center with a diameter of 3.15mm and a height of 4mm to create a tube with a consistent wall thickness.
$fn = 360; difference() { cylinder(d = 4.89, h = 4); cylinder(d = 3.15, h = 4); }
glb/cad_c48ae19de919.glb
Create a Varnerized Prusa i3 LCD cover. Start with a main body consisting of a base plate 155mm wide, 59.8mm deep, and 2mm thick. Add two angled side walls rising from the base at 35 degrees, each 155mm long and 20.08mm high. Incorporate a central rectangular window for the LCD, measuring 98.5mm by 42mm and 10mm deep. ...
module main_body() { difference() { union() { translate( [ -77 , -4.5 , 0 ] ) cube( [ 155 , 59.8 , 2 ] ); translate( [ -77 , -4.5 , 0 ] ) rotate([35,0,0]) cube( [ 155 , 2 , 20.08 ] ); translate( [ -77 , -3.5 , -1 ] ) rotate([35,0,0]) cube( [ 7 , 5 , 15 ] ); ...
glb/cad_570f815eccbb.glb
Create a motor mount for a Prusa i3 X-axis end, consisting of a main body and an endstop bracket. Start with a central base block measuring 17mm by 44mm by 53mm. Attached to this, create an endstop base block measuring 17mm by 18.2mm by 4mm, positioned at the top. Cut a 20mm x 20mm x 20mm cube out of the endstop base...
use <x-end.scad> module x_end_motor_base(){ x_end_base(); translate(v=[-15,31,26.5]) cube(size = [17,44,53], center = true); } module x_end_motor_endstop_base(){ translate([-23.5,-28.5,58]){ difference(){ cube([17,18.2,4]); translate([-1,10,10])rotate([-45,0,0])cube([20,20,20])...
glb/cad_5c8f4029f1a2.glb
Create a varnerized_prusa_i3 electronics case for a RAMBo board. Start by constructing the main body as a rectangular enclosure with a side panel measuring 118.5mm by 92mm by 2mm, an upper panel 1.5mm by 92mm by 35mm, and a rear panel 105.5mm by 2mm by 35mm. Add structural reinforcements to the side and upper panels us...
ramps_offset_y=15; ramps_offset_x=19.7; extruder_cable_offset=50; heatbed_cable_offset=-30; module main_body(){ cube( [ 118.5 , 92 , 2 ] ); cube( [ 1.5 , 92 , 35 ] ); translate( [ 0 , 90 , 0 ] ) cube( [ 105.5 , 2 , 35 ] ); translate( [ 63+heatbed_cable_offset , 88.5 , 0.5 ] ) cube( [ 6.5 , 2 , 34....
glb/cad_d56a90ab126c.glb
Create a lead-screw coupling for a NEMA 17 motor. Start with a main cylindrical body with a diameter of 12.4mm and a total height of 38mm. At the base of this cylinder, add a conical skirt that transitions from a bottom diameter of 23mm up to the 12.4mm diameter of the main body over a height of 17.5mm. Remove a centr...
nozzle_diameter = 0.4; set_screw_length = 4; outer_hex = false; lead_screw_diameter = 8 + nozzle_diameter; lead_screw_thread_size = 2; lead_screw_thread_rect = 1; lead_screw_threads = 4; lead_screw_end_length = 14; coupling_diameter = lead_screw_diameter - nozzle_diameter + (set_screw_length * 2); echo("Coupling Dia...
glb/cad_6fb5edd9d715.glb
Create a cable port and clamp consisting of two intersecting cylinders. First, create a vertical cylinder with a diameter of 11mm and a total height of 25mm, centered on the origin. Second, create a second cylinder with a diameter of 11mm and a height of 63mm. Position this second cylinder so that it intersects the fir...
cable_cross_section = [11, 9]; entry_angle = 30; champfer = 2; clip_height = 15; wall_thickness = 2; inset = 2; cylinder(d = max(cable_cross_section), h = 2 * (champfer + inset + wall_thickness + clip_height + champfer), center = true); cable(cable_cross_section, entry_angle); module cabl...
glb/cad_a87a30216d55.glb
Create a Y-carriage bearing holder. Start by forming a main body using a hull operation between a central cylinder and a rectangular block. The cylinder should have a diameter of 17mm (bearing outer diameter plus 2mm) and a height of 10mm, while the block is 10mm wide and 23mm deep (mount width), with a height correspo...
nozzle_diameter = 0.4; bearing_ID = 8; bearing_OD = 15; bearing_length = 24; bearing_radius = bearing_OD / 2; mount_opening_width = 10; mount_hole_centers = 20; mount_hole_od = 3; upper_opening_increase = 0; strap_width = 10; strap_hole_diameter = 2.5; strap_wiggle = 5; strap_wiggle_flat = 1.5; bearing_inset = bear...
glb/cad_41f81ba2feeb.glb
Create a Y motor holder for a Prusa i3 clone. Start with a main body block measuring 19mm by 42mm by 47mm, centered at x=-6, y=-1.5, z=0. Carve a large horizontal cylindrical void with a 12mm radius through the center of the block, spanning from x=-20 to x=15 at a height of z=26. Remove a rectangular section from the c...
module endstop_mount() { difference() { union() { translate([-21+6,8,0]) cube([12-2, 5, 28]); translate([-21,8-5,0]) cube([9, 10, 28]); } translate([-16,16,11]) rotate([90,0,0]) cylinder(h = 10, r=0.8, $fn=20); translate([-16,13.2,11]) rotate([90,0,0]) cylinde...
glb/cad_2dccb428063b.glb
Create a Prusa i3 X-end prototype. Start with a main rectangular block measuring 17mm wide, 39mm deep, and 58mm high, centered on the X and Y axes. Subtract a central vertical channel for a lead screw nut. This involves a 25-sided poly-cylinder with a radius of 5mm and a height of 11.51mm, centered at [0, -17, -1]. Su...
use <bearing.scad> use <polyholes.scad> rod_distance = 45; module x_end_base(){ height = 58; translate(v=[-15,-9,height/2]) cube(size = [17,39,height], center = true); vertical_bearing_base(); translate(v=[0,-17,0]) poly_cylinder(h = 10.5, r=12.5, $fn=25); translate(v=[-6,-10.6,10]) rotate([0,0,48.2]) cube...
glb/cad_231ae897ccb6.glb
Create a bearing holder for a Prusa i3 clone. Start with a central cylindrical hole with a radius of 7.675mm (diameter of 15.35mm) and a length of 33mm, oriented along the Y-axis. This cylinder is carved out of a rectangular block that measures 24mm in width, 33mm in length, and 24mm in height, centered at the origin. ...
use <polyholes.scad> bearing_diameter = 14.95; module horizontal_bearing_base(bearings=1){ translate(v=[0,0,6]) cube(size = [24,8+bearings*25,12], center = true); } module horizontal_bearing_holes(bearings=1){ cutter_lenght = 10+bearings*25; one_holder_lenght = 8+25; holder_lenght = 8+bearings*25; difference()...
glb/cad_abaa10a5c72f.glb
Create a Prusa i3 style LCD knob. Start by constructing a truncated cone with a height of 7.5mm, a bottom radius of 10mm, and a top radius of 6.5mm. Attach a rectangular block to the side of this cone, measuring 17mm in length, 4.5mm in width, and 7.5mm in height, positioned so it extends from the center of the cone's ...
$fn = 128; difference() { union () { cylinder(r1=10, r2= 6.5, h = 7.5); translate([0, -2.25, 0]) cube([17, 4.5, 7.5]); } translate([0, 0, 20 - (7.5 - 3)]) sphere(r = 10); translate([17, -2.5, 0]) rotate([0, -25, 0]) cube([5, 5, 20]); intersection() { translate([-5.5, 0, 0]) ...
glb/cad_d25fa6771237.glb
Create a Y holder front for a Prusa i3 printer. Start with a main rectangular body block measuring 26mm in width, 10mm in depth, and 12mm in height. Centered on the bottom face, add a smaller rectangular protrusion measuring 8mm wide, 10mm deep, and 2mm high. Carve a large horizontal cylindrical hole through the cente...
module ziptie_round_edge() { difference() { translate([0,0,0]) rotate([90,0,0]) cylinder( h=3, r=4, $fn=30 ); translate([0,1,0]) rotate([90,0,0]) cylinder( h=5, r=2, $fn=30 ); translate([-10,-4,0]) cube([20,5,5]); translate([-20,-4,-13]) cube([20,5,20]); } } module part() { ...
glb/cad_7bac483e84d8.glb
Create a Z axis top holder for a Prusa i3 printer. The model consists of two mirrored symmetrical parts. For each part, start with a base composed of three overlapping rectangular blocks: one measuring 8x45x16mm, one 33x3.9x12mm, and one 38x45x5mm. Refine the overall shape by removing material to create angled corner...
module z_top_base() { translate([0,-5,0]) cube([8,45,16]); translate([0,-5,0]) cube([33,3.9,12]); translate([0,-5,0]) cube([38,45,5]); translate([25+4.3,3.2,5]) rotate([0,0,0]) cylinder(h = 2.5, r=7, $fn=60); } module z_top_fancy() { translate([0.5,0.5,0]) rotate([0,0,-45-180]) translate([-15,0,-1...
glb/cad_8261b09dd416.glb
Create a Prusa i3 X-end idler. Start with a base block and remove material to create a waste pocket consisting of two cylinders with a radius of 5.5mm and a height of 5mm, positioned at [ -15, -1, 6 ] and [ -15, -1, 51 ]. Add two tapered cylinders with a starting radius of 5.5mm and an ending radius of 4.3mm and a heig...
use <x-end.scad> module x_end_idler_holes(){ x_end_holes(); translate([0,3.5,0]){ translate(v=[0,-22,30.25]) rotate(a=[0,-90,0]) cylinder(h = 80, r=1.8, $fn=30); translate(v=[1.5,-22,30.25]) rotate(a=[0,-90,0]) cylinder(h = 10, r=3.1, $fn=30); translate(v=[-21.5,-22,30.25]) rotate(a=[0,-90,0]) rota...
glb/cad_b0c1df22a31a.glb
Create a screwless mount for a breadboard PCB. Start by creating a rectangular base measuring 15mm wide, 45mm long, and 5mm high. At two positions along the center line of the length—specifically at 15mm and 30mm from the end—create vertical holes that pass completely through the base. Each hole should have a diamete...
$fn=30; bh=5; d=35.8; module spacer(x=0, y=0, z=0){ translate([x,y,z]){ cylinder(d=5, h=10); cylinder(d=3.2, h=12); } } spacer(0, 5, bh); spacer(0, 5+d, bh); bx = 15; by = 45; module base() { translate([-bx/2,0,0]){ cube([bx, by, bh]); } } difference(){ base(); tran...
glb/cad_94f114444c49.glb
Create a mounting base for a quarter-sized breadboard PCB. Start with a rectangular base measuring 15mm wide, 45mm long, and 5mm high. Center this base on the X-axis. Remove two vertical holes from the base, each with a diameter of 3.3mm and a depth of 5mm. Position the first hole at X=0, Y=15mm, and the second hole ...
$fn=30; mouting_hole = 2.9; bh=5; d=35.8; module spacer(x=0, y=0, z=0){ difference(){ translate([x,y,z]){ cylinder(d=8, h=10); } translate([x,y,z]){ cylinder(d=mouting_hole, h=12); } } } spacer(0, 5, bh); spacer(0, 5+d, bh); bx = 15; by = 45; module b...
glb/cad_f8d5ed525556.glb
Create a screwless relay mount starting with a rectangular base measuring 26mm in width, 34mm in length, and 5mm in height. At the four corners of the base, place four cylindrical spacers. Each spacer consists of a 5mm diameter cylinder 10mm tall, topped with a narrower 2.9mm diameter cylinder that extends an additiona...
$fn=30; bh=5; bx=26; by=34; dx=20.3; dy=28.15; module spacer(x=0, y=0, z=0){ translate([x,y,z]){ cylinder(d=5, h=10); cylinder(d=2.9, h=12); } } sx0 = dx/2; y0 = (by-dy)/2; y1 = (by-dy)/2+dy; spacer(dx/2, y0, bh); spacer(-dx/2, y0, bh); spacer(dx/2, y1, bh); spacer(-dx/2, y1, bh); module ...
glb/cad_ade0cd4fd34b.glb
Create a wheel chock by first constructing a main body from two joined rectangular blocks: a base measuring 40mm wide, 110mm long, and 34mm high, with a second block measuring 40mm wide, 40mm long, and 100mm high positioned at the rear, starting 70mm from the front. Carve a cylindrical cutout from this body to accommod...
back_offset_y=70; module body () { union(){ cube([40, 110, 34]); translate ([0, back_offset_y, 0]){ cube([40, 40, 100]); } } } wheeld = 95; difference(){ body(); translate([7, wheeld/2, wheeld/2+10]){ rotate(a=90, v=[0,1,0]){ cylinder(h=26, d1=...
glb/cad_b96039424e6a.glb
Create a GalagoPro-Feet support by combining a modified sphere with a small protruding cylinder. Start with a sphere of radius 7.5mm. Flatten the bottom of this sphere by removing the section within a centered cube measuring 15mm x 15mm x 7.5mm, positioned 5mm below the center along the Z-axis. On the top of this base,...
union() { base(); top(); } module base() { difference() { sphere(r=7.5); translate([0, 0, -5]) cube([15,15,7.5], center=true); } } module top() { translate([0,0,7]) cube([5, 5, 1], center=true); translate([0,0,8]) cylinder(r1=2, r2=2, h=2, center=true); }
glb/cad_3eae00937f45.glb
Create a drive bracket for a laptop by constructing a flat, rectangular frame with a thickness of 1.2mm and a width of 7mm for its structural members. The frame consists of two horizontal rails and two vertical rails that form a rectangular perimeter. The outer boundary is defined by four corner standoffs, each being a...
$fn = 16; thick = 0.2*6; width = 7; half_width = width / 2; height = 1.5; ll = 0; lr = 1; ul = 2; ur = 3; x = 0; y = 1; case = [ [3.07, -3.93], [74.29, 6.5], [-4.43, 99.1], [74.79, 97.6] ]; drive = [ [4.07, 14], [65.79, 14], [4.07, 90.6], [65.79, 90.6] ]; module hole() { cylinder(d=3.6, h=thick+3); } modu...
glb/cad_c2d3b8e8e614.glb
Create a pompom maker consisting of two symmetrical semi-circular frames joined by poles. Start by creating a semi-circular ring with an outer diameter of 100mm, an inner hole diameter of 41.67mm, and a thickness of 5mm. This ring should be a half-donut shape, mirrored across the X-axis to form two identical halves. A...
dia = 100; hole = dia * 5 / 12; thickness = 5; gap = 0.25; module shape(r=2, x=30, y=5) { $fn=30; hull() { translate([r, r]) circle(r); translate([x-y+r, r]) circle(r); translate([x-r, y-r]) circle(r); translate([r, y-r]) circle(r); } } module donut(dia, hole, thickness) { ...
glb/cad_f8acfaa62e4f.glb
Create a Group Collar Insert consisting of a tapered hollow cylinder with a total height of 17mm. The outer diameter tapers from 84mm at the bottom to 86.4mm at the top. The wall thickness of the main body is 2.6mm, resulting in an inner diameter that tapers from 78.8mm at the bottom to 81.2mm at the top. Add two iden...
frag_a = 1; frag_s = 1; bbox_w = 100; cone_h = 17; cone_b = 3.3; cone_od_max = 86.4; cone_od_min = 84.0; cone_wall = 2.6; cone_id_max = cone_od_max - (2 * cone_wall); cone_id_min = cone_od_min - (2 * cone_wall); ramp_w = 6.3; ramp_id = cone_od_min - (2 * ramp_w); ramp_grade = 4; ramp_arc = 109; ramp_wall = 3.0; ramp...
glb/cad_7b9bfa85fd29.glb
Create a Screw Drive Gripper consisting of two symmetrical claw assemblies. For each claw assembly, construct a "HalfFinger" component. This part is a composite shape: start with a hull formed by a cube of 8mm x 5mm x 6mm (positioned at y=40), a cylinder of 10mm diameter and 6mm height, and another cylinder of 10mm d...
include <SG90ServoLib.scad> include <TubeConnectorLib.scad> include <involute_gears.scad> include <ring_gear.scad> $fn=90; IDXtra=0.2; Overlap=0.05; module ShowGripper(){ translate([0,IP_len,Grip_width/2]) HalfFinger(); translate([0,IP_len,Grip_width/2]) mirror([0,0,1]) HalfFinger(); translate([Claw_Space,IP_len...
glb/cad_7a3dacf71d59.glb
Create a Slide Rail Mount with a total height of 31mm, a width of 20mm, and a length of 35mm. Start with a base rectangular block measuring 35mm by 20mm by 12mm. On top of this base, add a second rectangular section that is 35mm long, 12mm wide, and 2mm thick, positioned such that it is centered width-wise and sits at ...
include <CommonStuffSAEmm.scad> $fn=90; IDXtra=0.2; Overlap=0.05; module SlideRailMount(H=31,W=20,L=35){ BoltCL=25; RailSup_W=12; difference(){ union(){ translate([-L/2,-W/2,0]) cube([L,W,12]); translate([-L/2,-RailSup_W/2,H-2]) cube([L,RailSup_W,2]); hull(){ translate([-L/2,-W/2,11]) cube([L,W,1])...
glb/cad_75574e1604df.glb
Create a RoverWheel planetary drive unit. Start by creating a central drive pinion gear with 12 teeth, a thickness of 8mm, and a circular pitch of 280mm. Around this central pinion, position three compound planet gears equally spaced at 120-degree intervals. Each compound planet gear must consist of two gear stages: a ...
PlanetaryPitchA=280; PlanetaryPitchB=308; BackLash=0.3; Pinion_t=12; Pinion_a=0; PlanetA_t=21; PlanetB_t=21; nPlanets=3; InputRing_t=PlanetA_t*2 + Pinion_t; OutputRing_t=(PlanetA_t*PlanetaryPitchA/180 + PlanetB_t*PlanetaryPitchB/180 + Pinion_t*PlanetaryPitchA/180)*180/PlanetaryPitchB; Shaft_d=5; PlanetB_a=0; echo(I...
glb/cad_e008ed68acee.glb
Create a motor cover for a rover wheel. Start by creating a hollow cylinder with an outer diameter of 42mm and an inner diameter of 40mm, with a total height of 77mm. At the top of this cylinder, add a structural cap. This cap is formed by the convex hull of a 42mm diameter cylinder and two rectangular blocks. These ...
include<CommonStuffSAEmm.scad> $fn=90; IDXtra=0.2; Overlap=0.05; module MotorCover(){ Motor_d=40; Motor_h=76; Wall_t=1.0; difference(){ union(){ cylinder(d=Motor_d+Wall_t*2, h=Motor_h+1); hull(){ translate([ChannelLength/2,-(Motor_d+Wall_t*2)/2,Motor_h+1-Overlap])cube([2,Motor_d+Wall_t*2,0.01]); ...
glb/cad_cdeec4cf61a0.glb
Create a RoverWheel cross bar assembly. Start by creating a central chassis post consisting of a cylinder with a diameter of 50mm and a height of 14mm, featuring a central hole with a diameter of 20mm. Around this, integrate an inner race with a ball circle diameter of 50mm and a race width of 12mm. Construct the main...
include<ActoboticsLib.scad> include<CommonStuffSAEmm.scad> include<BearingLib.scad> $fn=24; IDXtra=0.2; Overlap=0.05; RaceBoltInset=4.5; BearingPreload=-0.2; Ball_d=9.525; ChassisPostBearing_BC=50; ChassisPostCL_h=14; Race_w=12; CrossBar_L=233+36*2; CrossBar_a=25; module ShowCrossBar(myFn=36){ color("Green") Chas...
glb/cad_7aad83fd93dc.glb
Create a 3D model of an E3D V6 Lite hot end assembly with a volcano-style heater block. The main body is a cylindrical heat sink with a total height of approximately 45mm. The exterior of the sink is composed of a series of stacked, concentric cylindrical sections of varying diameters and heights, creating a ribbed pro...
include <utility.scad> use <v6_block.scad> use <v6_nozzle.scad> module e3d_v6_lite_sink() { translate([0, 0, -35]) difference() { union() { translate([0, 0, -5.1]) { cylinder(d=5.8, h=0.1, $fn=24); translate([0, 0, 0.1]); cylinder(d=6, h=5, $fn=...
glb/cad_b254e75f1270.glb
Create a Wilbur Core-XY Arm height sensor mount consisting of two identical conical supports. For each support, create a truncated cone with a height of 4mm, a base diameter of 10mm, and a top diameter of 4mm. Within each cone, create a vertical cylindrical hole with a diameter of 2.5mm that passes through the center...
module mini_height_sensor(width=1) { scale([1, width, 1]) difference() { cube([24.0, 1, 17.62]); translate([0, -0.1, 0]) { translate([2.7, 0, 14.92]) rotate([-90, 0, 0]) cylinder(d=2.8, h=1.2, $fn=24); translate([21.11, 0, 14.92]) rotate([-90, ...
glb/cad_a5834a65a6f0.glb
Create three cubes of varying sizes aligned along the x-axis. Position the first cube with a side length of 1mm, centered at the origin. Place the second cube with a side length of 1mm at the coordinates (2, 0, 0). Place the third cube at the coordinates (4, 0, 0) with a side length of approximately 0.408mm, which is t...
color("red") cube([1, 1, 1], true); color("green") translate([2, 0, 0]) cube([1, 1, 1]); color("blue") translate([4, 0, 0]) cube([sqrt(1/6), sqrt(1/6), sqrt(1/6)]);
glb/cad_ab30501eb6b9.glb
Create two identical octahedrons, each with a total bounding size of 1mm in all three dimensions. The first octahedron should be centered at the origin (0, 0, 0). The second octahedron should be positioned such that its center is offset by 0.5mm along the X, Y, and Z axes, placing its center at (0.5, 0.5, 0.5). Each oc...
module octahedron(size = 1, center = false) { size = len(size) == 3 ? size : [size, size, size]; move = center ? [0, 0, 0] : [ size[0] / 2, size[1] / 2, size[2] / 2 ]; translate(move) polyhedron( points = [ [1, 0, 0], [0, 1, 0], [-1, 0, 0], [0, -1, 0], [0, 0, 1], [0, 0, -1] ], ...
glb/cad_d9be4beae7f5.glb
Create a kossel-leaf carriage for a delta 3D printer. Start with a central rectangular main body measuring 27mm wide, 38mm deep, and 6mm thick. On the rear side, add two symmetrical ball joint mount horns. Each horn is formed by the intersection of a block 41mm wide, 18mm deep, and 6mm thick with a cone that has a ba...
separation = 41; if (separation == 40) { echo(str("<b>NOTE: Building for Kossel MINI. Not for Kossel Pro!</b>")); } else if (separation == 41) { echo(str("<b>NOTE: Building for Kossel PRO. Not for Kossel Mini!</b>")); } else { echo(str("<b>NOTE: Building for custom delta. Not for Kossel Mini or Kossel Pro....
glb/cad_691ab45f3ef3.glb
Create a pen holder consisting of a flat rectangular base and a cylindrical sleeve. Start with a base plate measuring 88mm wide, 20mm high, and 3mm thick. Round all four corners of the base with a 4mm radius. Center two 5.5mm diameter holes through the base plate, spaced 73mm apart along the width. On top of the base,...
resolution = 60; mh_x_offset = 73/2; height = 20; m5_hole = 5.5; pen_hole = 12.5; pen_wall = 5; thickness = 3; width = mh_x_offset*2 + 14; roundover = 4; m4_thickness = 2.9; m4_width = 6.9; m4_hole = 4.5; module corner_radius( radius, thickness, corner="all", resolution=30 ) { difference() { cube([ radius...
glb/cad_6ae4874782dd.glb
Create a jog knob consisting of two stacked cylindrical sections. The bottom base is a cylinder with a diameter of 17mm and a height of 10mm. Centered on top of this base is a second cylinder with a diameter of 50.8mm and a height of 10mm, featuring rounded edges with a 4mm radius. Run a central vertical hole through ...
resolution = 60; knob_top_height = 10; knob_base_height = 10; knob_top_diameter = 2 * 25.4; knob_base_diameter = 17; knurl_radius = 3; knurls = 20; hole = 6.4; cut = 6.1; m4_thickness = 2.9; m4_width = 6.9; m4_hole = 4.5; roundover = 4; angle = 360/knurls; radius = knob_base_diameter/2; wall = (knob_base_diameter - h...
glb/cad_49def816080e.glb
Create a table and cable duct assembly. Start by building a rectangular table with a top surface measuring 1600mm by 850mm and a thickness of 20mm. Support this top with four square legs, each 50mm by 50mm and 800mm tall, positioned at the corners. On top of the table, construct a cable duct. The duct consists of a ba...
module Trasse(){ translate ([0,0,0]) cube([1600, 120, 16]); translate ([0,0,66]) cube([1600, 120, 16]); translate ([0,-16,0]) cube([1600, 16, 150]); translate ([0,120,0]) cube([1600, 16, 150]); translate ([200,20,86]) rotate([-90,0,0]) Steckdose(8,space=80); translate ([100,0,-50]) cube([50, ...
glb/cad_76e785755e56.glb
Create a "Beamerturm" (projector tower) consisting of a hollow rectangular structure with the following geometric specifications: Construct two vertical side walls, each 16mm thick, 600mm wide, and 1100mm high. Position one wall at the origin and the second wall parallel to it, offset by 516mm along the x-axis. Conne...
hauswand = "Snow"; kuechenboden = "Gray"; fussboden = "#443333"; holzbalken = "PaleGreen"; holzlatten = "ForestGreen"; OSB3BodenPlatten = "SpringGreen"; Beamerturm(); module Steckdose(xfach=1, horz=true, space=0){ le = 80; h=le*xfach; b=le; for( i=[1:1:xfach] ){ if(horz) translate([le*(i-1)+space*(i-1),0...
glb/cad_a31952c91cfd.glb
Create a wall-mounted LCD bezel with an overall outer dimension of 199mm by 117mm and a depth of 29mm. The main body is a rounded rectangular block with a corner radius of 6.5mm. Carve out a central rectangular cavity to hold the display, leaving a front rim with a thickness of 1.6mm and a depth of 1.6mm. The interna...
$fn = 200; module rounded_cube(x,y,z,r) { linear_extrude(height=z) translate([r,r,0]) offset(r=r) square([x-2*r,y-2*r]); } module bezel( x,y,z, overhang=[3,3,3,3], rim_depth=2, rim_inset=0, yframe=10, xframe=5, xshift=0, yshift=0, internal_radius=2, rim_radius=2, ...
glb/cad_025c3a41f790.glb
Create a creeper-model figure using a base unit size of 5mm. Construct the head as a cube measuring 20mm wide, 20mm high, and 20mm deep, centered on the X and Y axes. Below the head, create a rectangular body that is 20mm wide, 10mm high, and 30mm deep, positioned so it connects to the bottom of the head. Finally, add ...
module creeper(size=1) { head_height = 4; body_height = 6; feet_height = 3; epsilon = 2; union() { head(size, head_height, body_height, feet_height, epsilon); body(size, head_height, body_height, feet_height, epsilon); feet(size, head_height, body_height, feet_height, epsilo...
glb/cad_dc9ccb963e95.glb
Create a series of interlocking connector pairs. Each pair consists of a female socket and a male plug. For the female socket, create a cube with a base size of 10mm and a total height of 10mm. The walls should be 1mm thick. Hollow out the center of the cube from the top down to a bottom floor height of 5mm, leaving a...
module connectors(tolerance= 0.1, base_size=10, wall_thickness=1, plate_height=1, slit_depth=1, stem_height=5, stem_radius=2, knob_height=3, knob_radius=2.5) { height = plate_height + stem_height + knob_height + 2*wall_thickness; translate([0, 0, 0]) female_connector(base_size, height, wall_thickness, stem_radi...
glb/cad_a9ff7ab6a0f5.glb
Create a bearing carrier consisting of a main cube and a separate rectangular arm. Construct the main body as a cube with dimensions of 20mm x 20mm x 20mm. Separately, create an arm that is 10mm wide, 40mm long, and 3mm thick. From this arm, remove a rectangular section measuring 5mm wide, 13.33mm long, and 4mm high, c...
use <obiscad/vector.scad> use <obiscad/attach.scad> module arm(debug=false) { if (debug) { frame(l=10); connector(a); } color("Brown") difference() { cube(asize,center=true); translate([0, -asize[1]/2,0]) cube([asize[0]/2, asize[1]/3, asize[2]+1],center=true); } } debug=false; size...
glb/cad_3e5273a50b80.glb
Create a bearing carrier consisting of a main circular plate and a perpendicular rectangular pedestal. Start with a circular plate 5mm thick with a radius of 26mm. In this plate, create a central hole with a radius of 6.5mm. Additionally, create three unthreaded M5 bolt holes, each 5mm deep, positioned 18mm from the ...
$fn=100; material_thickness=5; use <obiscad/attach.scad>; use <obiscad/bevel.scad>; module m5_bolt_hole_unthreaded(distance_from_center=10, position_angle=90, depth=5, hole=true){ m5=5; r=distance_from_center; x=r * cos(position_angle); y=r * sin(position_angle); translate([x,y,0]){ if(!h...
glb/cad_ef221a0cf9dd.glb
Create a bearing carrier by starting with a centered rectangular prism measuring 40mm in width, 40mm in depth, and 15mm in height. Modify the top edges of this block by applying four different bevels. On the top-right edge, apply a rounded bevel with a radius of 8mm. On the top-left edge, apply a straight bevel with a ...
use <obiscad/bevel.scad> use <obiscad/attach.scad> size=[40,40,15]; ec1 = [ [size[0]/2, 0, size[2]/2], [0,1,0], 0]; en1 = [ ec1[0], [1,0,1], 0]; ec2 = [ [-size[0]/2, 0, size[2]/2], [0,1,0], 0]; en2 = [ ec2[0], [-1,0,1], 0]; ec3 = [ [0, -size[1]/2, size[2]/2], [1,0,0], 0]; en3 =...
glb/cad_7bde7fbfcf99.glb
Create a bearing carrier consisting of two intersecting rectangular plates. First, create a central square plate measuring 30mm by 30mm with a thickness of 3mm. Position a second rectangular plate measuring 30mm wide, 3mm thick, and 20mm high, centered on the first plate but oriented vertically so that it is perpendicu...
use <obiscad/bevel.scad> use <obiscad/attach.scad> th = 3; bsize = [30,30,th]; size = [bsize[0],th,20]; translate([0,0,size[2]/2]) cube(size,center=true); cube(bsize,center=true); ec1 = [ [bsize[0]/4, -th/2, th/2], [1,0,0], 0]; en1 = [ ec1[0], [0,-1,1], 0]; ec2 = [ [-bsize[0]/4, -th/2, th/2],...
glb/cad_8bfe0bc84fce.glb
Create a bearing carrier consisting of a cube with a side length of 20mm. Center this cube at the origin so that it extends from -10mm to 10mm along the X, Y, and Z axes. Inside this cube, place a rectangular prism that measures 2mm by 2mm by 20mm. This prism should be centered at the origin and oriented so that its lo...
use <obiscad/vector.scad> frame(l=10); a = 20; v = [a,a,a]; vh = [a,a,0]; vv = [0,0,a]; vector(v); color("Gray") vector(vh); color("Gray") translate(vh) vector(vv); color("orange") orientate(v=v,roll=0) cube([2,2,20],center=true); color("Gray",0.2) cube(a);
glb/cad_8b6e895ac9ac.glb
Create a 3D model of the PowerUpCAD robot chassis and superstructure. Start with a rectangular box chassis 28mm wide by 28mm long with a height of 2mm. Incorporate a central cutout 16mm wide and 9mm deep. Add bumpers with a thickness of 3.25mm and a height of 5mm around the perimeter. Position six wheels, each 6mm ...
include <field.scad>; include <parts.scad>; CHASSIS_WIDTH = 28; CHASSIS_LENGTH = 28; CHASSIS_CUTOUT_WIDTH = 16; CHASSIS_FRONT_BUMPER_WIDTH = (CHASSIS_WIDTH-CHASSIS_CUTOUT_WIDTH) / 2; CHASSIS_CUTOUT_DEPTH = 9; BOX_TUBE_WIDTH = 1; BOX_TUBE_HEIGHT = 2; SUPER_TUBE_WIDTH = 1; SUPER_TUBE_HEIGHT = 1; SUPER_HEIGHT = 3; BUM...
glb/cad_de8ef1981a32.glb
Create a clamp consisting of a flat strap and a semi-cylindrical mounting bracket. Start with a flat rectangular strap that is 55mm wide, 6mm thick, and has a total length extending from the bracket. At one end, form a semi-cylindrical shell with an outer radius of 6mm and an inner radius of 3mm, creating a wall thickn...
$fs = 0.1; $fa = 5; demo_clamp1 = true; include <../../../primitives/screws.scad> if (demo_clamp1) { clamp1(3, 10, 55, 3); } module clamp1(r, h, w, wt) { wtx2 = wt*2; difference() { union() { translate([-h/2, r, -(wtx2+2)/2]) difference() { cube([h, w, wt...
glb/cad_6377b4784fb5.glb
Create a field detector housing consisting of a main box and a separate lid. The main body is a rounded rectangular box with overall dimensions of 95mm width, 70mm depth, and 30mm height, featuring a wall thickness of 2mm and corner radii of 6mm. On the top surface, create a series of seven small circular LED holes, ...
demo_field_detector = true; include <../../../Primitives/box_main.scad> include <../../../radio/antenna/connectors/connector_bnc_punch_mask.scad> $fs = 0.1; $fa = 5; h = 30; w = 95; d = 70; ww = 2; stand = true; screw_diameter = 3; skirt = 3; radius = 6; difference() { box_rounded_x(w,d,h,ww,stand,screw_diamet...
glb/cad_2522370b8ad3.glb
Create a mounting plate for a MikroTik device. Start with a base rectangular plate measuring 117.5mm by 94mm with a total height of 8mm. The base should have rounded corners with a radius of 3mm. Within this base, create a central recessed area measuring 113.5mm by 90mm and 6mm deep, leaving a 2mm high border around ...
include <common.scad>; mikrotik_y = 90; mikrotik_x = 113.5; mikrotik_full_x = mikrotik_x+2*delta; mikrotik_full_y = mikrotik_y+2*delta; mikrotik_h = 2; mikrotik_vent_h = 2; round_border_r = 3; plate_x = mikrotik_full_x + 2*h; plate_y = mikrotik_full_y + 2*h; border_z = 6; total_z = h + border_z; charger_x=26; charg...
glb/cad_e9da80b8f1dc.glb
Create a 3D model of a support mount for a Raspberry Pi. Start by constructing a base that consists of four mirrored quadrants. In each quadrant, create a rectangular block with a height of 6mm and a width of 29mm (half of the 58mm total x-axis span). Within these blocks, integrate a horizontal support section that is ...
include <common.scad>; raspbi_pins_y = 49; raspbi_pins_x = 58; raspbi_support_h = 4; raspbi_support_d = 6; raspbi_support_hole_d = 2.15; horizontal_support_height = 6; horizontal_support_y = (between_pins_y-raspbi_pins_y-horizontal_support_height)/2; horizontal_height = 6; module quarter() { union() { p...
glb/cad_c2135fe2c91b.glb
Create a 3D-printable charger holder by constructing a base plate with a central recessed bay. Start with a solid rectangular block that is 100mm wide, 100mm deep, and 6mm high. In the center of this block, carve out a rectangular void measuring 90mm by 57.5mm with a depth of 4mm to accommodate the charger. At each o...
include <common.scad>; charger_x=90; charger_y=57.5; charger_z = 4; center_x = between_pins_x/2; center_y = between_pins_y/2; horizontal_height = 6; module quarter() { union() { pin(); difference() { union() { rotate(90) translate([0, -d_large/2]) cube([between_pins_y...
glb/cad_5b969467dd40.glb