Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Wheel 3 Shaft by constructing a central cylinder with a radius of 2.1mm and a height of 2mm, centered on the Z-axis. Add a thin disc profile to this center with a radius of 2.1mm and a height of 1mm. Remove a central vertical shaft hole with a diameter of 2.8mm that passes completely through the object. Additi...
include <bitbeam-lib/bitbeam-lib.scad> use <lib/wheel.scad> use <lib/holes.scad> module wheel(size, h=1){ translate([0, 0, unit*0.5]) difference(){ union(){ translate([0, 0, unit*-0.5]) profile(size, h); cylinder(r=unit+0.1, h=unit, center=true, $fn=40); ...
glb/cad_cb1096045fc0.glb
Create a Terrain Wheel by constructing a large wheel with a diameter of 7 units and a width of 3 units. From the center of this wheel, remove a cylindrical hole with a diameter of 6.1 units and a height of 2 units, positioned 1 unit from the base to create a hollowed-out center. Ensure the cylindrical cutout uses a fac...
include <bitbeam-lib/bitbeam-lib.scad> use <lib/wheel.scad> color("gray"){ difference(){ large_wheel(7, 3); translate([0, 0, unit]) cylinder(d=6*unit+0.1, h=2*unit, $fn=90); } }
glb/cad_e29e10e98ed9.glb
Create a Mecanum wheel roll by constructing two mirrored halves of a complex curved profile rotated 360 degrees around the Z-axis. Each half is formed by the intersection of a cylinder with a 14mm diameter and 5mm height, a larger cylinder with a 7mm diameter and 2mm height centered at X=3.5mm, and a rectangular block ...
include <bitbeam-lib/bitbeam-lib.scad> use <lib/wheel.scad> module half_roll(){ rotate_extrude($fn=60) projection() rotate([-45-19+90, 0,0]) intersection(){ rotate([45, 0, 0]) cylinder(h=unit*5, d=14, center=true); translate([unit*7/2-7, 0, 0]) ...
glb/cad_e49d4f3af4f2.glb
Create a Mecanum Wheel roll by constructing two identical mirrored halves along the Z-axis. For each half, create a shape by rotating a specific 2D profile around the Z-axis with 60 facets. This profile is the intersection of a cylinder with a 14mm diameter and 5mm height, a second cylinder with a 7mm diameter and 2mm ...
include <bitbeam-lib/bitbeam-lib.scad> use <lib/wheel.scad> module half_roll(){ rotate_extrude($fn=60) projection() rotate([-45-19+90, 0,0]) intersection(){ rotate([45, 0, 0]) cylinder(h=unit*5, d=14, center=true); translate([unit*7/2-7, 0, 0]) ...
glb/cad_8d9f8dd2e69c.glb
Create a Mecanum wheel roll by constructing two identical mirrored halves along the Z-axis. For each half, create a shape by rotating a specific 2D profile around the Z-axis. This profile is the intersection of a cylinder with a 14mm diameter and 5mm height, a second cylinder with a 9mm diameter and 2mm height centered...
include <bitbeam-lib/bitbeam-lib.scad> use <lib/wheel.scad> module half_roll(){ rotate_extrude($fn=60) projection() rotate([-45-19+90, 0,0]) intersection(){ rotate([45, 0, 0]) cylinder(h=unit*5, d=14, center=true); translate([unit*9/2-7, 0, 0]) ...
glb/cad_35f3cbfe5780.glb
Create an O-Ring Wheel 2 Shaft Plus by constructing a central cylindrical body with a radius of 3.75mm and a total height of 5mm, using a 40-facet resolution for the cylinder. Integrate a profile section into this body that is 2mm thick. Carve a central plus-shaped hole through the assembly with a diameter of 4.5mm. Ad...
include <bitbeam-lib/bitbeam-lib.scad> use <lib/wheel.scad> use <o-ring-15x2_5.scad> use <lib/holes.scad> module wheel(size, h=1){ translate([0, 0, unit*0.5]) difference(){ union(){ translate([0, 0, unit*-0.5]) profile(size, h); translate([0, 0, -0.25]) ...
glb/cad_5f0d9301f9ac.glb
Create a bitbeam O-Ring Wheel by constructing a central cylinder with a radius of 3.75mm and a height of 4mm, centered on the Z-axis. Integrate a profile with a height of 1mm into this cylinder. Bore a central shaft hole through the entire assembly with a diameter of 4.5mm. Additionally, create a transverse cylindrical...
include <bitbeam-lib/bitbeam-lib.scad> use <lib/wheel.scad> use <o-ring-15x2_5.scad> use <lib/holes.scad> module wheel(size, h=1){ translate([0, 0, unit*0.5]) difference(){ union(){ translate([0, 0, unit*-0.5]) profile(size, h); translate([0, 0, -0.25]) ...
glb/cad_802a7e22afdf.glb
Create a wheel for a construction set by starting with a central cylinder that has a radius of 0.75 units and a height of 0.3 units. Add a profile to this cylinder with a size of 2 units and a height of 0.3 units, centered on the same axis. To complete the wheel, remove a plus-shaped hole from the center with a width o...
include <bitbeam-lib/bitbeam-lib.scad> use <lib/wheel.scad> use <o-ring-15x2_5.scad> use <lib/holes.scad> module wheel(size, h=0.5-0.2/unit){ translate([0, 0, unit*0.5]) difference(){ union(){ translate([0, 0, unit*-0.5]) profile(size, h); translate([0, 0, -unit*...
glb/cad_12bf6a36c479.glb
Create a bitbeam O-Ring Wheel by constructing a composite cylindrical body. Start with a central cylinder that has a radius of 1.5mm and a height of 1mm, centered on the Z-axis. Add a slightly wider, shorter cylinder to the base with a radius of 1.5mm and a height of 0.3mm. From the center of this assembly, remove a ve...
include <bitbeam-lib/bitbeam-lib.scad> use <lib/wheel.scad> use <o-ring-15x2_5.scad> use <lib/holes.scad> module wheel(size, h=0.5-0.2/unit){ translate([0, 0, unit*0.5]) difference(){ union(){ translate([0, 0, unit*-0.5]) profile(size, h); translate([0, 0, -unit*...
glb/cad_68359ce66692.glb
Create a Rail Wheel 2 Shaft by constructing a central cylinder with a radius of 7.5mm and a height of 10mm, centered on the origin. To this, add a wheel profile that extends the outer diameter to 15mm but is sliced by a horizontal plane to create a flanged shape. Bore a 2.8mm diameter hole through the center of the ent...
include <bitbeam-lib/bitbeam-lib.scad> use <lib/holes.scad> use <lib/rail.scad> module rwheel(size, h=1){ translate([0, 0, unit*0.5]) difference(){ union(){ translate([0, 0, unit*-0.5]) wheel_profile(size, h); cylinder(r=unit*.75, h=unit, center=true, $fn=40); ...
glb/cad_928482c20e09.glb
Create a rail wheel for a construction set. Start by forming a central cylinder with a radius of 4.1mm and a height of 4mm, centered on the origin. To this, add a wheel profile that is 3mm wide and 4mm high, centered on the Z-axis. Remove a central shaft hole with a diameter of 2mm passing through the center. Cut a slo...
include <bitbeam-lib/bitbeam-lib.scad> use <lib/holes.scad> use <lib/rail.scad> module rwheel(size, h=1){ translate([0, 0, unit*0.5]) difference(){ union(){ translate([0, 0, unit*-0.5]) wheel_profile(size, h); cylinder(r=unit+0.1, h=unit, center=true, $fn=40); ...
glb/cad_98ea139ca225.glb
Create a rail wheel for a construction set. Start by forming a central cylinder with a radius of 4.1mm and a height of 4mm, centered on the origin. Integrate this with a wheel profile that has a height of 1mm. From this combined volume, remove a central square prism with a width and depth of 4.1mm and a height that spa...
include <bitbeam-lib/bitbeam-lib.scad> use <lib/rail.scad> module rwheel(size, h=1){ translate([0, 0, unit*0.5]) difference(){ union(){ translate([0, 0, unit*-0.5]) wheel_profile(size, h); cylinder(r=unit+0.1, h=unit, center=true, $fn=40); } cube...
glb/cad_f5daf826c4d7.glb
Create a Terrain Wheel 7x3 by constructing a thick, solid cylinder with a diameter of 7 units and a height of 3 units. Centered vertically and horizontally through the object, remove a smaller cylindrical hole with a diameter of 6.1 units and a height of 2 units, leaving the top and bottom faces intact. Ensure the oute...
include <bitbeam-lib/bitbeam-lib.scad> use <bb-wh-terrain-7x3.scad> color("gray"){ difference(){ wh_terain_7x3(); translate([0, 0, unit]) cylinder(d=6*unit+0.1, h=2*unit, $fn=90); } }
glb/cad_35cf8e229d18.glb
Create a 608-sized ball bearing. Construct the outer race as a cylinder with an outer diameter of 22mm and a height of 7mm. Inside this outer race, create a concentric circular channel to house the balls. Form the inner race as a smaller cylinder with an outer diameter of 15mm and a central bore with a diameter of 8mm....
include <MCAD/bearing.scad> color("Silver") bearing(pos=[0,0,0], model=608);
glb/cad_b2f8f7a82cbd.glb
Create a Kitronic Motor Driver board model starting with a rectangular base measuring 67.4mm wide, 62mm deep, and 1.6mm thick. At the four corners of this base, create four circular holes with a diameter of 4mm, each positioned 4mm from the adjacent edges. Along one of the 67.4mm edges, create a row of 22 small circula...
include <bitbeam-lib/bitbeam-lib.scad> mdbw = 67.4; mdbh = 62; module drv_mbkitronic(){ difference(){ color("green") cube([mdbw, mdbh, 1.6]); for (y=[0, 1]){ for (x=[0, 1]){ translate([4+x*(mdbw-8), 4+y*(41-8), -0.05]) cylinder(d=4, h=1....
glb/cad_5f8905236dbc.glb
Create a gearbox motor model starting with a central rectangular block measuring 64mm in length, 18.5mm in width, and 22.5mm in height. Remove two cylindrical holes, each 3.4mm in diameter and 19.1mm deep, positioned symmetrically at the ends of the block along the length, centered at x = 32mm and x = -32mm, and offset...
$fn=25; module gearbox_motor(){ color("Yellow") difference(){ cube([64, 18.5, 22.5], center=true); for (i=[-1, 1]) translate([64/2-31.8, 0, 17.5*i/2]) rotate([90, 0, 0]) cylinder(d=3.4, h=19.1, center=true); for (z=[-1, 1]) for (...
glb/cad_74f6be72420e.glb
Create a bitbeam motor mount by combining several geometric primitives. Start with a central rectangular base measuring 3mm by 3.5mm by 2mm. Attached to the left side of this base, add a rectangular arm that is 5mm long, 2mm high, and 2mm wide, positioned so it extends from the center. On the right side of the base, pl...
include <bitbeam-lib/bitbeam-lib.scad> module plus_shaft(h){ cube([4.9, 2, unit*h], center=true); cube([2, 4.9, unit*h], center=true); } color("red"){ translate([unit*-2, 0, 0]) cube_arm(5, h=2, skip=[1, 2, 3], side_holes=false); translate([0, -unit*0.25, 0]) ecube([unit*3, unit*3.5, ...
glb/cad_e16d6f9644da.glb
Create a bevel gear with 12 teeth, a gear thickness of 15mm, and a face width of 4.96mm. The gear should have a cone distance of 11.15mm, an outside circular pitch of 215mm, a pressure angle of 30 degrees, and a clearance of 0.2mm. The central bore diameter is 2mm. To finish the part, remove a shaft hole measuring 3mm ...
include <bitbeam-lib/bitbeam-lib.scad> use <MCAD/involute_gears.scad> use <lib/holes.scad> module gear_12() { *#cylinder(d=hole, h=unit*0.5-0.2); *rotate([0, 45, 0]) #cube(12.25, true); difference(){ render(convexity=3) bevel_gear ( number_of_teeth=12, cone_...
glb/cad_7650e18fdc88.glb
Create a bevel gear with 12 teeth, designed for a construction set. The gear should have a cone distance of 11.15mm, a face width of 4.96mm, and a total gear thickness of 15mm. Use an outside circular pitch of 215, a pressure angle of 30 degrees, and a backlash of 0.2mm. At the center of the gear, create a bore with ...
include <bitbeam-lib/bitbeam-lib.scad> use <MCAD/involute_gears.scad> use <lib/holes.scad> module gear_12() { *#cylinder(d=unit, h=unit*0.5-0.2); *rotate([0, 45, 0]) #cube(12.25, true); difference(){ render(convexity = 3) bevel_gear ( number_of_teeth=12, con...
glb/cad_be3501ef65c1.glb
Create a bevel gear with 12 teeth, designed for a construction set. The gear should have a cone distance of 11.15mm, a face width of 4.96mm, and a total gear thickness of 15mm. Use an outside circular pitch of 215 and a pressure angle of 30 degrees, incorporating a backlash of 0.2mm and a clearance of 0.2mm. The center...
include <bitbeam-lib/bitbeam-lib.scad> use <MCAD/involute_gears.scad> use <lib/holes.scad> module gear_12() { *#cylinder(d=unit, h=unit*0.5-0.2); *rotate([0, 45, 0]) #cube(12.25, true); difference(){ render(convexity = 3) bevel_gear ( number_of_teeth=12, con...
glb/cad_b82f87ba6b39.glb
Create a bevel gear with 31 teeth, a cone distance of 22.7mm, and a face width of 5.2mm. The gear should have an outside circular pitch of 180 degrees and a pressure angle of 30 degrees. Set the gear thickness to 15mm with a backlash of 0.2mm and a clearance of 0.2mm. The gear must feature a central bore with a diamete...
include <bitbeam-lib/bitbeam-lib.scad> use <MCAD/involute_gears.scad> use <lib/holes.scad> module gear_31() { *#cylinder(d=unit, h=unit*0.5-0.2); difference(){ render(convexity=10) bevel_gear ( number_of_teeth=31, cone_distance=22.7, face_width=5.2, ...
glb/cad_3e255e4f422a.glb
Create a bevel gear with 31 teeth. The gear should have a cone distance of 22.7mm, a face width of 5.20mm, and a gear thickness of 15mm. Use a pressure angle of 30 degrees and an outside circular pitch of 180mm. The gear must feature a central bore with a diameter of 5mm. Incorporate a backlash of 0.2mm and a clearance...
include <bitbeam-lib/bitbeam-lib.scad> use <MCAD/involute_gears.scad> use <lib/holes.scad> module gear_31() { *#cylinder(d=unit, h=unit*0.5-0.2); difference(){ render(convexity=10) bevel_gear ( number_of_teeth=31, cone_distance=22.7, face_width=5.20, ...
glb/cad_f47a2e5f5e10.glb
Create a worm gear with a total length of 8.8mm. The main body is a cylinder with a diameter of 10mm, flanked by two conical sections at the ends; each end is 1mm thick, tapering from a 10mm diameter at the center to a 6mm diameter at the outer faces. Wrap a helical thread around this body with a lead of 2.88mm and an ...
include <bitbeam-lib/bitbeam-lib.scad> use <lib/holes.scad> use <gr-24.scad> use <gr-8.scad> module thread(od, tl, p) { linear_extrude(height = tl, convexity = 10, twist = -360.0*tl/p, center = false) translate([od/2-1.8, 0, 0]) circle(d=od+1.3); } module worm(length){...
glb/cad_acf183bcbd99.glb
Create a worm gear by first constructing a central body that transitions in diameter. Start with a cylinder of 10mm diameter and a height of 8.8mm. Cap both the top and bottom of this cylinder with 1mm tall frustums that taper from a 10mm diameter down to a 6mm diameter. To create the gear teeth, wrap a helical thread ...
include <bitbeam-lib/bitbeam-lib.scad> use <lib/holes.scad> use <gr-24.scad> use <gr-8.scad> module thread(od, tl, p) { linear_extrude(height = tl, convexity = 10, twist = -360.0*tl/p, center = false) translate([od/2-1.8, 0, 0]) circle(d=od+1.6); } module worm(length){...
glb/cad_616b3ac35d93.glb
Create a model of an HC-S04 ultrasound sensor. Start with a central rectangular base measuring 45mm in length, 20mm in width, and 1.5mm in height. Place two identical cylinders on top of this base, each with a diameter of 16mm and a height of 12mm. Position these cylinders so their centers are located 26mm apart, with ...
$fn=40; module hc_s04(){ color("green") cube([45, 20, 1.5], center=true); for(i=[-1, 1]) translate([i*-13, 0, 0]) color("silver") cylinder(d=16, h=12); color("silver") translate([0, 8, 0]) hull(){ for (i=[-1, 1]) translate([i...
glb/cad_ce23066a4595.glb
Create a bitbeam track wheel by starting with a main cylinder that has a diameter of 5mm and a height of 5mm, centered on the origin. Hollow out the center of this cylinder with a smaller concentric cylinder that has a diameter of 3mm and a height of 5.5mm. Remove material from the main body by creating four vertical...
include <../bitbeam-lib/bitbeam-lib.scad> module track_wheel(size){ render(convexity=7) difference(){ ecylinder(d=unit*size, h=unit, center=true, $fn=size*15); cylinder(d=unit*(size-2), h=unit*1.1, center=true, $fn=size*10); for (i = [0:360/(size/3*6):360]){ rotate([0, 0, ...
glb/cad_68b6afa3b151.glb
Create a Nema 14 stepper motor. Start with a main cubic body measuring 35mm in width and depth and 35mm in height. On the top face, center a circular raised boss with a diameter of 22mm and a height of 2mm. Protruding from the center of this boss, add a cylindrical drive shaft with a diameter of 5mm and a height of 10m...
include <MCAD/stepper.scad> motor(Nema14, pos=[0, 0, 0.9], orientation=[180, 0, 0]);
glb/cad_abc99bf76a0f.glb
Create a Nema 17 stepper motor. The main body is a cube with dimensions 42.3mm x 42.3mm x 40mm, featuring slightly rounded vertical edges. On the top face, center a circular protrusion with a diameter of 22mm and a height of 2mm. At the center of this protrusion, add a cylindrical shaft with a diameter of 5mm and a hei...
include <MCAD/stepper.scad> motor(Nema17, pos=[0, 0, 0.9], orientation=[180, 0, 0]);
glb/cad_9958f197d733.glb
Create an O-ring by generating a torus with a circular cross-section. The ring should have a major diameter of 15mm and a cross-sectional diameter of 2.5mm. Ensure the geometry is constructed using a 25-sided polygon for the main rotation and a 20-sided polygon for the circular profile.
module o_ring_15(){ rotate_extrude(convexity = 2, $fn=25) translate([(15+2.5)/2, 0, 0]) circle(d = 2.5, $fn=20); } translate([0, 0, 2.5/2]) color("black") o_ring_15();
glb/cad_d9133176cfb9.glb
Create an O-ring by revolving a small circle around a central axis. The cross-section of the ring should be a circle with a diameter of 2.5mm. Position this cross-sectional circle so that the resulting torus has a mean diameter of 35mm. Ensure the final shape is a smooth, continuous ring with a resolution of 40 facets ...
module o_ring_35(){ render(convexity = 2) rotate_extrude(convexity =1, $fn=40) translate([(35+2.5)/2, 0, 0]) circle(d = 2.5, $fn=20); } translate([0, 0, 2.5/2]) color("black") o_ring_35();
glb/cad_b8f259170682.glb
Create an O-ring wheel by revolving a circle with a diameter of 5mm around a central axis. The center of this circle should be positioned 52.5mm away from the axis of rotation. The resulting torus should have a cross-section defined by a 20-facet polygon to maintain a slightly faceted circular profile. Position the com...
module o_ring_50(){ rotate_extrude(convexity = 2) translate([(50+5)/2, 0, 0]) circle(d = 5, $fn=20); } translate([0, 0, 2.5]) color("black") o_ring_50();
glb/cad_5e82dd26bcb9.glb
Create a bitbeam pin by constructing a central vertical cylinder with a diameter of 4.6mm and a height of 1mm, centered on the origin. Add two conical sections to this cylinder: one extending from z = 0.17mm to 0.83mm with a base diameter of 4.6mm and a top diameter of 5mm, and another from z = -0.5mm to -0.17mm with a...
include <bitbeam-lib/bitbeam-lib.scad> use <lib/holes.scad> module pin1() difference(){ union(){ cylinder(d=4.6, h=unit, center=true); translate([0, 0, unit*0.17]) cylinder(d1=4.6, d2=5, h=unit*0.33); translate([0, 0, -unit*0.5]) cylinder(d1=5, d2=4.6, h=unit*0.33);...
glb/cad_db50812a5951.glb
Create a ping-pong ball by constructing a single sphere with a diameter of 40mm. Ensure the sphere is rendered with a facet resolution of 60 to maintain a smooth, round surface.
color("white") sphere(d=40, $fn=60);
glb/cad_c054baf6a99b.glb
Create a bitbeam ultrasound sensor model. Start with a central rectangular base plate measuring 31mm by 17mm with a thickness of 1.5mm. At the four corners of this plate, centered 13.5mm apart along the width and 27mm apart along the length, create four circular holes with a diameter of 2mm that pass completely through...
$fn=25; module rwc_0001(){ color("green") difference(){ cube([31, 17, 1.5], center=true); for(x=[-1, 1]){ for(y=[-1, 1]) translate([x*27/2, y*13.5/2, 0]) cylinder(d=2, h=1.6, center=true); } } for(i=[-1, 1]) translate([i*-18....
glb/cad_006c91ce844c.glb
Create a grub screw by constructing a main cylinder with a diameter of 3mm and a height of 4.5mm, centered on the Z-axis. Remove a hexagonal hole from the bottom of this cylinder, with a flat-to-flat width of 1.8mm and a depth of 1.8mm, positioned 2.6mm below the center. Finally, add a conical cap to the top of the scr...
color("silver") translate([0, 0, 2.25]) cylinder(d1=3, d2=2, h=0.5, center=true, $fn=25); color("silver") difference(){ translate([0, 0, -0.25]) cylinder(d=3, h=4.5, center=true, $fn=25); translate([0, 0, -2.6]) cylinder(d=1.8, h=1.8, $fn=6); }
glb/cad_30f3b8397d7a.glb
Create a bitbeam shaft 3 with plus reduction. Start by forming a central body that combines a shaft of 4 units in length with a cylinder of 1 unit diameter and 1 unit height, centered vertically. From this combined volume, remove a central rectangular slot measuring 1 unit wide, 3 units deep, and 4.01 units long, cente...
include <bitbeam-lib/bitbeam-lib.scad> include <lib/shafts.scad> module plus_shaft(h){ cube([4.9, 2, unit*h], center=true); cube([2, 4.9, unit*h], center=true); } color("SlateGray") difference(){ union(){ translate([0, 0, -unit*0.5]) shaft(4); translate([0, 0, -unit*2.5]) ...
glb/cad_005d2d03b310.glb
Create a bitbeam adapter shaft by starting with a main cylinder 7.9mm in diameter and 100mm in height. At the top of this cylinder, from a height of 80mm to 100mm, remove a central horizontal cylindrical hole 4.2mm in diameter and 8mm long. Additionally, create a series of notches along the top section by removing eigh...
include <bitbeam-lib/bitbeam-lib.scad> color("LightSlateGray") translate([0,0,unit/4]) difference(){ union(){ ecylinder(d=16, h=unit*0.5, center=true, $fn=40); rotate([0, 0, 90]) intersection(){ translate([-unit, 0, 0]) cub...
glb/cad_3b5000a8681e.glb
Create a 12V Power Switch model by combining four rectangular prisms. Start with a central main body that is 13mm wide, 20mm deep, and 15mm high, centered on the origin. Position a second flat rectangular plate measuring 15mm wide, 21.5mm deep, and 2mm high, centered horizontally and depth-wise, but shifted 8.5mm upwar...
module switch(){ color([0.2, 0.2, 0.2]) cube([13, 20, 15], center=true); translate([0, 0, 8.5]) color([0.2, 0.2, 0.2]) cube([15, 21.5, 2], center=true); translate([0, 0, -11]) color([0.2, 0.2, 0.2, 0.5]) cube([13, 19, 7], center=true); translate([0, 0, 9]) ...
glb/cad_7b87f343855d.glb
Create a 12V Power Switch by assembling four rectangular prisms. Start with a central main body that is 9mm wide, 15mm deep, and 11mm high, centered on the origin. Position a second flat rectangular plate measuring 11mm wide, 15mm deep, and 2mm high, centered horizontally and depth-wise but shifted 6mm upward along the...
module switch(){ color([0.2, 0.2, 0.2]) cube([9, 15, 11], center=true); translate([0, 0, 6]) color([0.2, 0.2, 0.2]) cube([11, 15, 2], center=true); translate([0, 0, -8.5]) color([0.2, 0.2, 0.2, 0.5]) cube([5, 12, 7], center=true); translate([0, 0, 7]) rota...
glb/cad_91ff26a7310d.glb
Create a T-Shaft Pin 1 by constructing a central cylindrical shaft and modifying it with specific cutouts. Start with a main shaft body that has a base diameter of 4.3mm at the bottom and tapers slightly to 4.6mm at the top over a height of 0.5mm. Within this main body, remove a central rectangular volume measuring 4.8...
include <bitbeam-lib/bitbeam-lib.scad> use <lib/shafts.scad> use <pin-1.scad> color("SlateGray") { t_shaft(1); difference(){ pin1(); translate([0, 0, -unit*0.5+0.5]) cube(unit, true); translate([0, 4.8/2+0.95, unit*0.25]) cube([unit, 3.1, unit], center=true); ...
glb/cad_e2f604abaef7.glb
Create a T-Shaft Pin 1.5 by constructing a central cylindrical shaft with a diameter of 4.8mm and a height of 1.5mm. Carve a square hole through the center of this shaft with a side length of 4.8mm and a height of 1.5mm, but offset the hole vertically so it leaves a thin base. On the bottom face, add a shallow cylindri...
include <bitbeam-lib/bitbeam-lib.scad> use <lib/shafts.scad> use <lib/pins.scad> color("SlateGray") { t_shaft(1.5); difference(){ pin(1.5); translate([0, 0, -unit*0.75+0.5]) cube(unit, true); translate([0, 4.8/2+0.95, unit*0.25]) cube([unit, 3.1, unit], center=...
glb/cad_6f84a99e38b7.glb
Create a T-Shaft Pin 1x1 by constructing a central cylindrical body with a diameter of 4.8mm and a height of 2mm. From this main body, remove a central rectangular slot that is 4.8mm wide, 3.1mm high, and 2mm deep, centered on the Y-axis to create a channel. Additionally, remove two smaller rectangular notches from the...
include <bitbeam-lib/bitbeam-lib.scad> use <lib/shafts.scad> use <lib/pins.scad> color("#404040") { t_shaft((2*8+0.2)/8); translate([0, 0, 0.1]) difference(){ pin(2); translate([0, 0, -unit*0.5]) cube(unit+1, true); translate([0, 4.8/2+0.95, unit*0.5]) cube...
glb/cad_71194ff7dfb9.glb
Create a bitbeam tool consisting of a main body and a handle. The main body is a hull formed between a central block measuring 30mm in length, 20mm in width, and 20mm in height, and a thin rectangular slab measuring 0.1mm in thickness, 15mm in width, and 120mm in length, centered along the same axis. At the rear of t...
module ecube(size){ size = (is_num(size)) ? [size, size, size] : size; difference(){ cube(size, true); for (x = [-1, 1]) for (z = [-1, 1]) translate([size.x/2*x, 0, size.z/2*z]) rotate([0, 45, 0]) cube([3,size.y+.1,3], true); for (y = [-...
glb/cad_620e0e9b9efe.glb
Create a linear rack gear beam by starting with a rectangular base measuring 36mm in length, 2mm in width, and 2mm in height. Along the top surface of this beam, create a continuous rack of 32 gear teeth. Each tooth unit should be 3mm wide, with the teeth repeating every 3mm along the length of the beam. The teeth prof...
include <bitbeam-lib/bitbeam-lib.scad> use <MCAD/involute_gears.scad> color("SkyBlue") translate([-unit*5.5, 0, unit*0.5]) rotate([-90, 0, 0]) difference(){ union(){ cube_arm(12); translate([unit*5.5, 0, unit/2-edge/2]) cube([unit*12, unit, edge], true); translate([-unit, 0, un...
glb/cad_852b3fffbf91.glb
Create a linear rack gear beam by starting with a rectangular base measuring 45mm in length, 2mm in width, and 2mm in height. Along the top surface of this beam, centered lengthwise, add a series of 40 small gear teeth. Each tooth unit should be 3mm wide, with the teeth repeating every 3mm along the 45mm span. The prof...
include <bitbeam-lib/bitbeam-lib.scad> use <MCAD/involute_gears.scad> color("SkyBlue") translate([-unit*7, 0, unit*0.5]) rotate([-90, 0, 0]) difference(){ union(){ cube_arm(15); translate([unit*7, 0, unit/2-edge/2]) cube([unit*15, unit, edge], true); translate([-unit, 0, unit])...
glb/cad_7cbcc60a4bda.glb
Create a linear rack gear beam by starting with a rectangular base arm measuring 18 units long, 1 unit wide, and 0.5 units thick. Along the top length of this beam, add a series of 48 gear teeth. Each tooth is formed by a repeating geometric profile: a rectangular base 3 units wide and 1.5 units high, with a trapezoida...
include <bitbeam-lib/bitbeam-lib.scad> use <MCAD/involute_gears.scad> color("SkyBlue") translate([-unit*8.5, 0, unit*0.5]) rotate([-90, 0, 0]) difference(){ union(){ cube_arm(18); translate([unit*8.5, 0, unit/2-edge/2]) cube([unit*18, unit, edge], true); translate([-unit, 0, un...
glb/cad_378a3ac74a5b.glb
Create a linear rack gear beam. Start with a central rectangular beam that is 3 units long, 1 unit wide, and 1 unit thick. Along one of the long 3-unit edges, add a series of eight gear teeth. Each tooth is formed by a specific profile: a base width of 3mm, rising to a height of 1.5mm, then narrowing to a 1mm section, ...
include <bitbeam-lib/bitbeam-lib.scad> use <MCAD/involute_gears.scad> color("SkyBlue") translate([-unit*1, 0, unit*0.5]) rotate([-90, 0, 0]) difference(){ union(){ cube_arm(3); translate([unit, 0, unit/2-edge/2]) cube([unit*3, unit, edge], true); translate([-unit, 0, unit]) ...
glb/cad_217a9a8bd552.glb
Create a linear rack gear beam by starting with a rectangular base. Construct a main beam that is 6 units long, 1 unit wide, and 1 unit thick, where 1 unit equals the base grid size. Along one side of the beam, add a series of 16 gear teeth. Each tooth is formed by a profile that extends from the beam's edge, creating ...
include <bitbeam-lib/bitbeam-lib.scad> use <MCAD/involute_gears.scad> color("SkyBlue") translate([-unit*2.5, 0, unit*0.5]) rotate([-90, 0, 0]) difference(){ union(){ cube_arm(6); translate([unit*2.5, 0, unit/2-edge/2]) cube([unit*6, unit, edge], true); translate([-unit, 0, unit...
glb/cad_89dd8610f9fe.glb
Create a linear rack gear beam by starting with a rectangular base measuring 9 units long, 1 unit wide, and 0.5 units thick. Along the top surface of this beam, create a continuous rack of 24 gear teeth. Each tooth pattern repeats every 3 units, consisting of a rectangular base 3 units wide and 1.5 units high, with a n...
include <bitbeam-lib/bitbeam-lib.scad> use <MCAD/involute_gears.scad> color("SkyBlue") translate([-unit*4, 0, unit*0.5]) rotate([-90, 0, 0]) difference(){ union(){ cube_arm(9); translate([unit*4, 0, unit/2-edge/2]) cube([unit*9, unit, edge], true); translate([-unit, 0, unit]) ...
glb/cad_a65e7453b3d6.glb
Create a 3D model of Rubik's cube parts consisting of several small geometric components spaced 0.5mm apart. First, create eight corner pieces. Each corner is a combination of a cube with a side length of 1/3mm and a sphere with a radius of 4/9mm, intersected with a smaller cube of 4/9mm to create a rounded corner bl...
precision=30; apart=0.5; mrc3d(); module mrc3d(){ color([1,0,0])corner(); color([0,1,0])edge(); color([0,0,1])center(); color([1,0,1])volt(); } module volt(){ v([ 0,90,0]); v([90,90,0]); v([ 0, 0,0]); } module v(r){ rotate(r)cylinder(h = 1/3, r=1/36, $fn=fn,center=true); } module center(){ c(-1,0,0,[ 0,90...
glb/cad_dc4db3b2cba0.glb
Create a bulbed bowl by starting with a sphere that has a diameter of 100mm. Scale this sphere along the Z-axis to reach a total height of 200mm, transforming it into a prolate spheroid. To shape the bowl, remove the top and bottom sections of this spheroid using two rectangular prisms. Position the first prism to cut ...
diameter_of_vase = 100; height_of_vase = 200; bowl_top_cut_off = 3; bowl_bottom_cut_off = 3; bowl_scale_x = 0; bowl_scale_y = 0; $fn = 120; module bulbed_bowl(diameter, height) { scale([bowl_scale_x / 100 + 1, bowl_scale_y / 100 + 1, 1]) translate([0, 0, height / 2 - height / bowl_bottom_cut_off]) di...
glb/cad_46d1e6ce3fc7.glb
Create a knife holder consisting of a rectangular base and a series of vertical dividers. Start by constructing a base that is 100mm long, 15mm wide, and 5mm high, with rounded corners having a radius of 2mm. On top of this base, place 7 identical dividers. Each divider should be a thin, vertical wall with a thicknes...
width_of_base = 15; length_of_base = 100; height_of_base = 5; radius_of_base_corners = 2; height_of_divider = 25; thickness_of_divider = 10; number_of_dividers = 7; radius_of_divider_tip = 5; $fn = 100; module rectangle_rounded(width, height, radius=1) { minkowski() { circle(r = radius); square([width - 2...
glb/cad_86376e659733.glb
Create an LED strip extrusion mount consisting of a flat base bracket and an attached wedge. Start with a rectangular base bracket measuring 30mm wide by 350mm long with a thickness of 4mm. Round the four corners of this bracket with a radius of 3mm. On the underside of the bracket, center a rectangular ridge that is...
extrusion_width = 30; extrusion_slot_mount = 1; bracket_width = 30; bracket_length = 350; bracket_thickness = 4; bracket_corner_diameter = 3; led_wedge_width = 15; led_wedge_height = 15; led_wedge_corner_diameter = 2; mount_hole_diameter = 4; mount_hole_distance = 10; $fn=120; extrusion_slot_width = (extrus...
glb/cad_87d97bd70970.glb
Create a Raspberry Pi Case Extrusion Bracket. Start by creating a main outer holder block with overall dimensions of 68.3mm width, 38mm height, and 10mm depth (calculated from a 60.3mm internal width plus 4mm walls on each side). This block should have rounded corners with a 1mm radius. Hollow out the center of this bl...
bracket_thickness = 4; bracket_corner_radius = 1; mount_hole_diameter = 4; extrusion_slot_ridge = 1; plate_thickness = 4; case_depth = 6; fan_hole_diameter = 30; air_gap_width = 5; pi_width = 60.3; pi_height = 30; plate_height = 60; $fn=120; slot_width = 10.2; slot_thickness = 1; module cylinder_outer(diam...
glb/cad_717774858d45.glb
Create a probe mount consisting of a backplate and a cylindrical holder. Start with a T-shaped backplate that has a central vertical section 18mm wide and 22mm high, and a horizontal bracket section 28mm wide and 10mm high, both with a thickness of 3mm. The bracket section should have rounded corners with a 2mm radius....
backplate_height = 22; backplate_thickness = 3; backplate_bracket_width = 28; backplate_bracket_height = 10; backplate_corner_radius = 2; backplate_holder_width = 18; backplate_shape = "T shape"; probe_hole_diameter = 12; probe_mount_thickness = 5; probe_mount_diameter = 22; type_of_mount_hole = "Teardrop"; ...
glb/cad_4568e6e488b9.glb
Create a stepdown converter case consisting of a main hollow enclosure and a separate flat lid. The main enclosure should have outer dimensions of 31mm width, 61mm length, and a total height of 25.5mm, with walls 3mm thick and corners rounded to a 1mm radius. The interior cavity is 25mm wide, 55mm long, and 18mm high. ...
height_of_case = 18; width_of_case = 25; length_of_case = 55; wall_thickness = 3; corner_radius_of_case = 1; mount_hole_diameter = 2.5; $fn=20; fudge = 0.1; right_hole_ypos = 17.2; left_hole_ypos = -17.7; module cylinder_outer(diameter, height, fn) { fudge = 1 / cos(180 / fn); cylinder(h=height, r=diameter...
glb/cad_3fc2fa35a731.glb
Create a bulbed vase by revolving a specific 2D profile around a central vertical axis. The overall dimensions of the resulting 3D form should be 100mm in diameter and 200mm in height. To define the profile, start with a central rectangle 50mm wide and 200mm tall. Add a circular bulb to the lower section of this rect...
diameter_of_vase = 100; height_of_vase = 200; opening_brim_width = 15; bulbed_neck_scale = 75; bulbed_bulb_scale = 75; $fn = 120; module bulbed_vase_form(diameter, height) { difference() { union() { square(size = [diameter / 2, height], center = true); translate([diameter / 4,...
glb/cad_b7aabe4be2a8.glb
Create a Tool Changer Purge Bucket with a total height of 35mm, a width of 66.8mm, and a depth of 60mm. The walls should have a uniform thickness of 2mm. Construct the main body as a solid block with these outer dimensions, then hollow out the center to create a basin. The interior cavity must maintain the 2mm wall t...
height_of_bucket = 35; width_of_bucket = 66.8; depth_of_bucket = 60; wiper_cutout_width = 37.5; wiper_cutout_height = 30; wall_thickness = 2; diameter_of_purge_hole = 25; $fn=120; fudge = 0.1; module cylinder_outer(diameter, height, fn) { fudge = 1 / cos(180 / fn); cylinder(h=height, r=diameter / 2 * fudg...
glb/cad_66d0c1e76713.glb
Create a twisted vase by extruding a base profile vertically to a height of 200mm. The base profile is a circle with a diameter of 100mm, modified by adding 20 rounded bumps evenly spaced around the perimeter. Each bump is a circle with a diameter of 20mm, positioned so that it overlaps the edge of the main circle. E...
diameter_of_vase = 100; height_of_vase = 200; type_of_bump = "Rounded"; width_of_bump = 20; number_of_bumps = 20; number_of_slices = 50; degrees_of_twist = 20; top_scale_x = 150; top_scale_y = 250; $fn = 120; module circled_pattern(number) { rotation_angle = 360 / number; last_angle = 360 - rotation_a...
glb/cad_00fefd4843c0.glb
Create a customizable wall clock face. Start by creating a cylindrical base with a diameter of 150mm and a height of 5mm. From the center of this base, remove a cylindrical hole with a diameter of 4mm that passes through the entire height. Additionally, remove a larger cylindrical section from the bottom of the base wi...
part = "Complete"; height_of_clock = 5; diameter_of_clock = 150; diameter_of_hole = 4.0; thickness_of_wall = 5; width_of_chamfer = 0; type_of_hours = "Numbers"; raise_hours = "Raise"; rotation_of_hours = "None"; height_of_hours = 2; distance_of_hours = 12; size_of_hours = 12; font_of_hours = "Gotham"; type...
glb/cad_db006cc7dffe.glb
Create a Y Motor Mount for an Anet A6 printer. Start with a bottom plate that is 51mm wide, 47mm deep, and 13mm high. Remove a central rectangular block from the bottom measuring 51mm by 31mm by 8.5mm, but leave a 10.5mm wide opening at the back for a frame brace. Add a backplate that is 6mm thick, 47mm deep, and 43mm...
backplate_thickness = 6; bottom_cutout_height = 8.5; motor_lowered_by = 2; width_of_opening_for_back_frame_brace = 10.5; type_of_mount_hole = "Teardrop"; mount_hole_diameter = 3; mount_hole_length = 12; depth_of_trapped_nut_hole = 2.6; width_of_trapped_nut_hole = 7.5; height_of_trapped_nut_hole = 5.6; height_...
glb/cad_87d1eb97fe18.glb
Create a dish rack end stop by constructing a composite cylindrical object. Start with a main central cylinder that is 10mm high with a diameter of 7.5mm. Attach a wider, flat cylindrical shoulder to the base of this central cylinder; the shoulder must have a diameter of 12mm and a thickness of 2mm. Finally, create a v...
height = 10; depth_of_hole = 10; diameter_of_hole = 4.0; diameter_of_cylinder = 7.5; diameter_of_shoulder = 12; thickness_of_shoulder = 2; $fn=120; module cylinder_outer(height, diameter, fn) { fudge = 1 / cos(180 / fn); cylinder(h=height, r=diameter / 2 * fudge, $fn=fn); } module plopp(height, diameter, ...
glb/cad_a6f83b1f1396.glb
Create a Filament Pickup tool with a total height of 60mm, a base width of 15mm, and a base depth of 9mm. The main body is a tapered vertical structure that transitions from the rectangular base to a top section that is 15mm wide and 9mm deep. At the top of the structure, integrate a 20mm diameter filament filter. Thi...
height_of_pickup = 60; width_of_pickup = 15; depth_of_pickup = 9; filament_filter = 20; teardrop_holes = 90; filament_filter_length = 15; filament_filter_thickness = 2; filament_filter_lip = 1; width_top = 15; depth_top = 9; filament_hole_diameter = 2.4; bowden_hole_diameter = 4.2; mount_hole_diameter = 2.5...
glb/cad_507cafbdad73.glb
Create a customizable flag banner consisting of a hollow pole and an attached triangular flag. First, construct the pole as a thin-walled cylinder with a total height of 100mm and an outer diameter of 11.5mm. Create a central hole through the length of this cylinder with a diameter of 7.5mm, resulting in a wall thickne...
height_of_flag = 100; length_of_flag = 150; diameter_of_hole = 7.5; thickness = 2; $fn = 100; module pole() { difference() { cylinder(h = height_of_flag, d = diameter_of_hole + thickness * 2, center = true); translate([0, 0, -thickness]) cylinder(h = height_of_flag - thickness, d = diam...
glb/cad_d9970cf923b1.glb
Create a Flow Meter Box consisting of a main enclosure and a top plate. The overall footprint is 220mm wide by 82mm long. Construct the main body as a hollow shell with walls 4mm thick and corners rounded to a 3mm radius. The side walls should be extruded to a height of 0mm (effectively creating a flat base in this c...
width_of_box = 220; length_of_box = 82; height_of_box = 0; thickness = 4; corner_radius = 3; length_scale = 80; angle_of_box_top = 60; y_offset_displayotron = 0; diameter_of_vote_buttons = 24; x_offset_vote_buttons = 69; y_offset_vote_buttons = 0; left_distance_of_usb = 20; bottom_distance_of_usb = 5; $fn=...
glb/cad_ef52e13e6ffc.glb
Create a GoPro angled extension consisting of a main rectangular body and two mounting interfaces. The main body is a rounded rectangular prism with a width of 12mm, a thickness of 15mm, and a length of 50mm, featuring a corner radius of 2mm. At one end of the body, integrate a mounting interface that consists of two ...
extension_width = 12; extension_thickness = 15; extension_length = 50; corner_radius = 2; mount_height = 4; rotate_gopro_nut = 90; $fn=120; gopro_size = 15; gopro_height = gopro_size + mount_height; module nut_hole(nut_angle = 90) { rotate([90, nut_angle, 0]) for(i = [0:(360 / 3):359]) { rotate([0, 0, ...
glb/cad_a3b394e02340.glb
Create a GoPro mount for an Anet A6 Z motor. Start by creating a rectangular bracket with a width of 45mm, a depth of 14mm, and a thickness of 4mm, ensuring the corners are rounded with a 3mm radius. Cut a circular hole through the thickness of the bracket to accommodate the Z axis, with a diameter of 23mm. Position ...
gopro_angle = 0; gopro_distance = 0; bracket_width = 45; bracket_depth = 14; bracket_thickness = 4; bracket_corner_radius = 3; mount_hole_diameter = 3; mount_hole_distance = 31; trapped_nut_position = 0; mount_hole_distance_from_edge = 7; z_axis_distance = 23; z_axis_diameter = 23; $fn=120; gopro_size = 15...
glb/cad_ff397c4e3652.glb
Create a spacer-model nut. Start by creating a hexagonal prism with a distance between flats of 12mm and a total height of 6mm. Center a vertical hole through the prism to create internal threading. The thread should have an outer diameter of 9mm, a pitch of 2mm, and a thread step shape of 45 degrees. To finish the...
type = "nut"; head_type = "countersunk"; drive_type = "socket"; head_diameter = 12; head_height = 5; drive_diameter = 5; slot_width = 1; slot_depth = 2; texture = "exclude"; thread_outer_diameter = 8; t...
glb/cad_a0c32a012156.glb
Create a spacer-model screw consisting of a hexagonal head and a threaded shaft. Start by creating a hexagonal head with a distance of 12mm between opposite flats and a height of 5mm. Attached to the head, create a threaded shaft with an outer diameter of 8mm and a total length of 50mm. The threads should have a pitc...
use <Nut_Job.scad>; part="screw"; screw_length=50; if (part=="base") { base(); } else if (part=="screw") { screw(screw_length); } type = "bolt"; head_type = "hex"; drive_type = "socket"; head_diameter = 12; head_height = 5; drive_diameter = 5; slot_...
glb/cad_9a1e792f0e6e.glb
Create a calibration block by starting with a rectangular prism that is 13mm wide, 13mm deep, and 20mm high. Round all four vertical edges with a radius of 6mm. On the top face of the block, center three lines of extruded text, each with a thickness of 0.6mm. The first line should read "SD=0.8", the second line "SG=0.5...
$fn=6*24; LABEL1=0.8; LABEL2=0.5; LABEL3="Seam"; corner_rad=6; cube_side=13; cube_height=20; box=cube_side-corner_rad; text_ht=4; text_base=0.2; text_top=1.0; text_fraction=4/6; text_thk=0.6; font = "Liberation Sans:style=Bold"; module BoxWithRoundedCorners() hull() { translate([ box, box, 0]) cylinder(...
glb/cad_a013608dd094.glb
Create a laser mount featuring a Picatinny rail. The main body is a rail consisting of 6 repeating sections. Each section has a center-to-center distance of 10.0076mm. The profile of the rail is a polygon with vertices at [-10.6, 0], [-8.4, 2.2], [8.4, 2.2], [10.6, 0], [7.8, -2.8], [7.8, -5.2], [-7.8, -5.2], and [-7.8,...
difference(){ union(){ rail(6); translate([-8,-14,-32.5]){ difference(){ cube([16,11,70]); translate([8,-2,0]){ cylinder(d=22, h=80); } } } difference(){ translate([-17,-5,33]){ cube([34,7,19]); } translate([-14.5,-9,40]){ cube([29,17,19]); }}} translate([0,-2.3,0]){...
glb/cad_70e1671ebf5f.glb
Create a doorknob lock retaining clip designed to fit a sphere with a radius of 25.5mm. Start by creating a spherical shell with an outer radius of 27.5mm and a wall thickness of 2mm. Slice this shell so that only the portion within a height of 38mm is retained. From the center of this shell, remove a spherical volume ...
$fn = 120.0; HANDLE_RADIUS = 25.5; HANDLE_DEPTH = 38.0; THICKNESS = 2.0; difference() { clasp(); handle(); bore(); gaps(); grasp_champher(); } module grasp_champher() { translate([0,0,HANDLE_RADIUS*.87]) cylinder(HANDLE_RADIUS/4,HANDLE_RADIUS/1.50,0,true); } module gaps() { for (i ...
glb/cad_497037b9d26d.glb
Create a 3D nameplate for "Izabelle" by combining extruded text with a rectangular base. First, generate the text "Izabelle" using a cursive-style font and extrude it to a height of 10mm. Position this text atop a rectangular block that measures 152mm in length, 4mm in width, and 20mm in height. Align the block so that...
union() { linear_extrude(10) text("Izabelle",40,"Curlz MT"); translate([0,-4,-5]) cube([152,4,20]); }
glb/cad_a3dc2bfc5ebf.glb
Create a vacuum mount consisting of a hollow cylindrical base and a curved upper hook. Start with a base cylinder that has an outer diameter of 44.5mm and an inner diameter of 35.5mm, with a total height of 27.25mm. Cut a rectangular slot 2.5mm wide through the center of the base walls. Remove a vertical cylindrical ho...
module cylinder_outer(height,radius,fn) { fudge = 1/cos(180/fn); cylinder(h=height,r=radius*fudge,$fn=fn); } VACUUM_DIAM_WITH_SLOTS = 40.5; VACUUM_DIAM=35.5; LIP_DEPTH=3; VACUUM_DEPTH=24.25 + LIP_DEPTH; SLOT_WIDTH=2.5; BUTTON_DIAM=14; SLOT_RECESS=3; SCALE_ELLIPSE = VACUUM_DIAM / (VACUUM_DEPTH - (LIP_DEPTH * 4))...
glb/cad_2f01d00a2992.glb
Create a small mounting plate by forming a convex hull around three cylinders, each with a diameter of 12mm and a height of 12.7mm. Position the first cylinder at the origin, the second at coordinates (0, 27.5, 0), and the third at (13.75, 15.125, 0). Once this solid volume is created, remove two vertical holes with a ...
INCH_TO_MM = 25.4; SCREW_HOLE_DIAM = 4; HOLE_OFFSET = 27.5; difference() { hull() { cylinder(d=12, h=0.5 * INCH_TO_MM, $fn=64); translate([0, HOLE_OFFSET, 0]) cylinder(d=12, h=0.5 * INCH_TO_MM, $fn=64); translate([0.5 * HOLE_OFFSET, 0.55 * HOLE_OFFSET, 0]) cylinder(d=12, h=0.1 * INCH_TO_MM,...
glb/cad_4c39d9d1c5eb.glb
Create a cylindrical assembly consisting of three stacked sections. The bottom section is a cylinder with a height of 15mm and an outer diameter of 37mm. This base features a concentric hollow center with a diameter of 26.3mm, but it is capped by a solid disc of the same 37mm diameter and a thickness of 1.5mm positione...
OUTER_DIAM=34; PVC_THICKNESS=3.85; THICKNESS=1.5; HEIGHT=15; ROD_THICKNESS=4; OFFSET_FROM_CENTER=12.5; HOLE_DIAM=4; DISC_HEIGHT=75; ROD_ANGLE=10; GUSSET_HEIGHT=5; MIDDLE_HEIGHT=10; D1 = OUTER_DIAM; module bottom() { union() { difference() { difference(){ cylinder(d=D1 + (2*THICK...
glb/cad_b4c75a2a706e.glb
Create a geometric model consisting of a cylinder topped with a hemisphere, with a central hole running through the vertical axis. Start by creating a solid cylinder with a diameter of 8.5mm and a height of 3.75mm. Place a sphere with a diameter of 8.5mm directly on top of this cylinder so that its center point sits at...
PROTRUSION_LENGTH=8; DIAM=4.2 * 1.0; NUT_DIAM=8.5; difference() { CYLINDER_LENGTH = PROTRUSION_LENGTH - (0.5 * NUT_DIAM) + (0.5 * (NUT_DIAM - DIAM)); union() { cylinder(d=NUT_DIAM, h=CYLINDER_LENGTH, $fn=64); translate([0, 0, CYLINDER_LENGTH]) sphere(d=NUT_DIAM, $fn=64); } cylinder(d=DI...
glb/cad_d921190e6a3d.glb
Create a 3D footprint consisting of three stacked layers of varying heights. The base is a flat plate 3mm thick. The primary shape is a rounded square with a width of 38.2mm and corner radii of 2mm. This square has a central rectangular cutout of the same dimensions, creating a frame with a wall thickness of 3mm. Atta...
$fa=0.5; $fp=1; ROUND_POST_RADIUS = 6.5; SQUARE_POST_WIDTH = 38.2; CORNER_RADIUS = 2; THICKNESS = 3; POST_OFFSET = 3; module rounded_square(post_width, corner_radius, inner=true) { union() { translate([0, corner_radius]) square([post_width, post_width - (corner_radius * 2)]); translate([corner_rad...
glb/cad_8a634efbf031.glb
Create a vacuum transformer holder consisting of a flat rectangular tray with rounded ends. The main body is a rectangular slab with a total width of 60mm (CUBE_X), a thickness of 10mm (CUBE_Y), and a depth of 50mm (CUBE_Z). The tray features a central channel for an LED strip. This channel is 12mm wide (LED_STRIP_CH...
SOCKET_THICKNESS = 2; SOCKET_FUDGE = 1; SOCKET_X = 85 + SOCKET_FUDGE; SOCKET_Y = 31 + SOCKET_FUDGE; SOCKET_Z = 50; M3_HEAD_Z = 3; M3_HEAD_DIAM = 5.5; M3_SHAFT_DIAM = 3; TRAPEZOID_X = SOCKET_X - SOCKET_Y - 2; TRAPEZOID_Y = 5; TRAPEZOID_FUDGE = 1; KNOB_ROD_DIAM = 6; KNOB_ROD_FUDGE = 0.2; KNOB_ROD_FLAT_DIAM = 4.5; KNOB...
glb/cad_1e2cf250b703.glb
Create a rectangular mounting bracket with a total width of 103mm, a height of 8.5mm, and a depth of 20mm. From this main body, remove several geometric voids to create mounting points. First, create three angled cylindrical channels for rods, each with a diameter of 10.5mm and a length of 200mm; these should be positi...
module rods() { rotate([0, 15, 0]) translate([0, 0, -60]) union() { rotate([0, -32.5, 0]) cylinder(d=10.5, h=200, center=false, $fn=32); rotate([0, -7.5, 0]) cylinder(d=10.5, h=200, center=false, $fn=32); translate([-2, 0, 0]) rotate([0, 17.5, 0]) cylinder(d=10.5, h=200, center=false, $fn=3...
glb/cad_83089dc921b2.glb
Create a semi-circular cable guide. Start by constructing a 180-degree arc with a cross-sectional diameter of 9mm. The centerline of this arc should be positioned such that the distance from the center of the arc's curvature to the outer edge of the ring is 21mm. The overall structure should be a smooth, half-ring shap...
INNER_DIAMETER = 20; OUTER_DIAMETER = 38; KNOB_DISTANCE_FROM_CENTER = 42; CABLE_DIAMETER = 4; CABLE_SEPARATION = 15; RING_DIAMETER = 9; module cylinder_outer(height,radius,fn){ fudge = 1/cos(180/fn); cylinder(h=height,r=radius*fudge,$fn=fn);} module knob_model() { circle(d=INNER_DIAMETER, $rn=36); trans...
glb/cad_10767f879f5a.glb
Create a rectangular block with dimensions of 37mm in length, 30mm in width, and 11mm in height. Drill two vertical holes completely through the block, each with a diameter of 3mm. Position the first hole at coordinates x=24mm and y=8mm. Position the second hole at coordinates x=24mm and y=22mm. Ensure the holes are pe...
difference() { cube([37, 30, 11]); translate([24, 8, 0]) cylinder(d=3, h=11, $fn=64); translate([24, 8 + 14, 0]) cylinder(d=3, h=11, $fn=64); }
glb/cad_1c7deb7b4fff.glb
Create a cable bracket by starting with a base block that is 10mm long, 20mm wide, and 10mm thick. In the center of the block, carve out a cylindrical channel with a diameter of 10mm that runs through the entire 10mm length of the part to hold a cord. To secure the bracket to a wall, create two vertical holes centered ...
BRACKET_LENGTH = 10; CORD_DIAM = 10; MARGIN = 5; SCREW_DIAM = 3.5; DRYWALL_ANCHOR_DIAM = 4; DRYWALL_ANCHOR_HEAD_DIAM = CORD_DIAM; ANCHOR_DIAM = 4; module woodscrew_hole() { translate([0, 0, -1]) cylinder(d=SCREW_DIAM, h=16, $fn=64); #translate([0, 0, -5]) cylinder(d1=8, d2=SCREW_DIAM, h=4, $fn=64); transla...
glb/cad_129aa5fc9df3.glb
Create a circular disc with a diameter of 40mm and a height of 10mm. Remove a concentric cylindrical core with a diameter of 7mm from the center of the disc. On one side of the disc, create a recessed channel that is 5mm deep. This channel is a ring that follows the outer perimeter of the disc, leaving a 5mm wide wal...
FUDGE = 1.05; DISC_WIDTH = 10; DISC_DIAMETER = 40; ROD_DIAMETER = 7; FIN_THICKNESS = 5; module m3_nut() { cylinder(d=FUDGE * 6, h=FUDGE * 2.4, $fn=6); } module diff_donut() { difference() { cylinder(r=(0.5 * DISC_DIAMETER) - FIN_THICKNESS, h=0.5 * (DISC_WIDTH-FIN_THICKNESS), $fn=128); cylinde...
glb/cad_73351c1f0035.glb
Create a wedge-shaped mounting bracket. Start with a main base block that is 63mm long, 19.05mm wide, and 20mm thick. This base is not a simple cube but is angled; the top surface should be sloped at an angle of approximately 14.3 degrees (atan(7.5/29.75)). Add a flat mounting plate extending from the base. This plate...
WEDGE_ANGLE = atan(7.5/29.75); BOARD_X = 63; BOARD_Y = 19.05; BANNISTER_X = 92; DEFAULT_THICKNESS = 5; BRACKET_Z = 34; WEDGE_Z = 20; ZIPTIE_Z = 4.5; ZIPTIE_Y = 1.25; module wedge() { S = sin(WEDGE_ANGLE) * BOARD_X; T = sqrt(pow(S, 2) + pow(BOARD_X, 2)); Q = sin(WEDGE_ANGLE) * T; R = sin(WEDGE_ANGLE) ...
glb/cad_c15f4b3bedfe.glb
Create a cylindrical base with a diameter of 19.5mm and a total height of 26.5mm. Bore a central vertical hole through the bottom of this cylinder with a diameter of 14mm and a depth of 23.5mm. At a height of 1.5mm from the bottom, carve out a square-shaped void from the center of the cylinder. This square cutout sho...
use <threadlib/threadlib.scad> SQUARE_WIDTH=16; DIAM=19.5; INNER_DIAM=14; DEPTH=22; BUFFER_BOTTOM=1.5; BUFFER_TOP=3; RING_DIAM=25; RING_WIDTH=5; module cylinder_outer(height,radius,fn){ fudge = 1/cos(180/fn); cylinder(h=height,r=radius*fudge,$fn=fn); } module handle() { rotate([0, 0, 90]) translate([0, 10...
glb/cad_cf79e8057894.glb
Create a pentagram emblem with a total diameter of 32mm and a thickness of 1.5mm. Start by constructing a circular ring with an outer radius of 16mm and an inner radius of 15mm. Inside this ring, place a five-pointed star formed by five intersecting linear bars, each 1mm wide. Each bar should span the interior of the c...
module pentagram(r, w=1, d=1) { linear_extrude(height=d) { for(a=[0:+(360/5):360]) { rotate([0, 0, a]) translate([-r, 0, 0]) rotate([0, 0, 18]) translate([w * 0.95, -0.5 * w]) square(size=[r, w]); rotate([0, 0, a]) translate([-r, 0, 0]) rotate([0, 0, -...
glb/cad_4363f4e590ad.glb
Create two identical mounting clips. Each clip starts as a rectangular base measuring 38.1mm by 12.7mm with a thickness of 2mm. Centered on this base, create a raised cylindrical boss with a total height of 3mm and an outer diameter of 7.5mm. Inside this boss, bore a vertical hole that transitions in diameter: the bott...
MM_PER_INCH = 25.4; CLEARANCE_Z = 3; SCREW_DIAM = 3; SCREW_HEAD_DIAM = 7; SCREW_HEAD_Z = 2; THICKNESS = 2; BRACKET_X = 1.5 * MM_PER_INCH; BRACKET_Y = 0.5 * MM_PER_INCH; FUDGE = 0.5; BIG_CYL_DIAM = 550; module clip() { intersection() { difference() { union() { cylinder(d=SCREW_D...
glb/cad_f492b31671e3.glb
Create a vacuum transformer holder. Start by constructing a rounded rectangular socket with an outer length of 89mm (85mm plus 2mm thickness on each side), a width of 35mm (31mm plus 2mm thickness on each side), and a height of 50mm. The walls of this socket should be 2mm thick. Inside this socket, create two vertical...
SOCKET_THICKNESS = 2; SOCKET_FUDGE = 1; SOCKET_X = 85 + SOCKET_FUDGE; SOCKET_Y = 31 + SOCKET_FUDGE; SOCKET_Z = 50; M3_HEAD_Z = 3; M3_HEAD_DIAM = 5.5; M3_SHAFT_DIAM = 3; TRAPEZOID_X = SOCKET_X - SOCKET_Y - 2; TRAPEZOID_Y = 5; TRAPEZOID_FUDGE = 1; module _rounded_trapezoid(x, y, z, thickness) { hull() { di...
glb/cad_ccc2a6d0fd2b.glb
Create a set of three separate components. First, design a tripod consisting of three legs radiating from a center point. Each leg is a tapered cylinder 30mm long, starting with a 5mm diameter at the base and narrowing to 3mm at the tip, topped with a 3mm sphere. The legs are angled 20 degrees from the vertical axis an...
$fa=0.5; $fp=1; rotate([90,0,0]) translate([50, 0, 0]) union() { for(i=[1:3]) rotate([20,120*i,0]) union() { cylinder(h=30, d1=5, d2=3); translate([0,0,30]) sphere(3); }; translate([0, 20]) rotate([90, 0, 0]) difference() { cylinder(h=20, d=6.5, $fn=64);...
glb/cad_a6dfbae3e04a.glb
Create a thin circular disc with an outer diameter of 16mm and a height of 0.75mm. Hollow out the center to create a ring with a wall thickness of 1mm by removing a concentric cylinder with a diameter of 14mm. Within the remaining ring, carve out a central square-shaped void that is 9.75mm wide and 9.75mm long, centere...
TOOTH_WIDTH = 4; TOOTH_HEIGHT = 1; PRIMARY_DIAMETER = 9.75; DISC_HEIGHT = 0.75; INSET = 1.0; DISC_OUTER_DIAMETER = 16; module cylinder_outer(height,radius,fn){ fudge = 1/cos(180/fn); cylinder(h=height,r=radius*fudge,$fn=fn); } difference() { union() { difference() { cylin...
glb/cad_ad410b84a5fb.glb
Create a 3D model of a small quadruped robot named xlquad. The model consists of a central rectangular body with a small, cone-shaped protrusion extending from one side. Positioned on top of the body are two distinct arrow-like vectors: one pointing vertically upward and another pointing diagonally outward. Each vector...
function mod(v) = (sqrt(v[0]*v[0]+v[1]*v[1]+v[2]*v[2])); function cross(u,v) = [ u[1]*v[2] - v[1]*u[2], -(u[0]*v[2] - v[0]*u[2]) , u[0]*v[1] - v[0]*u[1]]; function dot(u,v) = u[0]*v[0]+u[1]*v[1]+u[2]*v[2]; function unitv(v) = v/mod(v); function anglev(u,v) = acos( dot(u,v) / (mod(u)*mod(v)) ); module point(p...
glb/cad_3e47e889d62a.glb
Create a celestial clock gear system consisting of two circular rings. First, construct a large ring with an outer radius of 50mm and a wall thickness of 2mm. Along the outer perimeter of this large ring, embed 28 small cylindrical holes to hold magnets. Each hole should have a radius of approximately 1.5875mm (1/16th ...
$fn=100; mm = 1; inch = 25.4 * mm; MOON_R = 50 * mm; THICKNESS = 2 * mm; TOL = .1 * mm; MAGNET_R = 1./8 * inch / 2 + TOL; MAGNET_H = 1./8 * inch; N_MAGNET = 28; module magnet(){ rotate(v=[0, 1, 0], a=90)cylinder(r=MAGNET_R, h=MAGNET_H + THICKNESS); } module magnet_ring(r, n_magnet){ dtheta = 360. / n_magnet; ...
glb/cad_e46bd602e2a3.glb
Create a Tapster PBR push button robot part. Start by constructing a base that combines a cylinder with a diameter of 12mm and a height of 3.75mm, and a larger cylinder with a diameter of 8mm and a height of 10mm centered at coordinates (17.5, 0, 0). Enclose these two shapes within a convex hull to create a smooth tran...
$fn = 30; union() { difference() { union() { translate([12.5+5,0,0]) cylinder(d=8, h=10); hull() { translate([12.5+5,0,0]) cylinder(d=8, h=3.75); cylinder(d=12, h=3.75); } } translate([0,0,1]) hull() { translate([14,0,0]) cylinder(d=4.5, h=4); cyl...
glb/cad_b338992b0a22.glb
Create a Tapster PBR push button robot part. Start by constructing the main body as a union of two shapes: a cylinder with a diameter of 12mm and a height of 6mm, and a hull formed between a cylinder of 8.1mm diameter and 6mm height centered at x=17.5, y=0, z=0, and a cylinder of 6mm diameter and 1mm height rotated 90 ...
$fn = 30; length = 11; height = 6; union() { difference() { union() { hull() { translate([length+6,0,0]) cylinder(d=8.1, h=height); translate([length+6,26,height/2]) rotate([90,0,0]) cylinder(d=height, h=1); } hull() { translate([12.5+5,0,0]) cylinder(d=8, h=height); ...
glb/cad_0dd035d239ea.glb
Create a flat, rectangular piece of tape by constructing a thin rectangular prism. The prism should have a width of 19.05 mm, a length of 76.2 mm, and a thickness of 0.2 mm.
tape_length = 25.4 * 3; tape_width = 19.05; tape_thickness = 0.2; module tape(length=tape_length, width=tape_width, height=tape_thickness) { cube([width, length, height]); } tape();
glb/cad_050e408dafc6.glb
Create a set of six open-topped rectangular divider bins with a wall thickness of 1mm and internal corner radii of 5mm. Each bin is 75mm tall. Construct the following six bins: 1. A double-width bin: 200mm x 100mm. 2. A single bin: 100mm x 100mm. 3. A quad-width bin: 200mm x 200mm. 4. A halved bin: two 50mm x 100mm bi...
use <../common/copies.scad>; module divider(x, y, tall, thick=1, r=5, $fn=100) { minkx = x - (2 * thick) - (2 * r); minky = y - (2 * thick) - (2 * r); minko = r + thick; difference() { cube([x, y, tall]); translate([minko, minko, minko]) { minkowski() { sphere(r); cube(...
glb/cad_e499d347b395.glb
Create a set of five open-topped rectangular divider boxes, each with a height of 75mm and a wall thickness of 1mm. All boxes should feature interior rounded corners with a fillet radius of 5mm. The first box is a simple open cube measuring 100mm by 100mm. The second box is a double-length rectangle measuring 200mm by...
BOX_XY = 100; BOX_Z = 75; WALL_THICK = 1; FILLET_RADIUS = 5; module copy_translate(x=0, y=0, z=0, copies=1) { if(copies) { for(i = [0:copies]) { translate([x * i, y * i, z * i]) { children(); }; }; } else { children(); } ...
glb/cad_d5cd48c9be97.glb
Create a toe clip by starting with a solid cylinder 12mm high with a radius of 28mm. Remove a concentric inner cylinder with a radius of 24mm and a height of 14mm to create a ring. Attach a rounded rectangular plate to the side of the ring; this plate should be 5mm thick, 56mm wide, and 76mm long, centered such that it...
use <../common/copies.scad>; use <../common/shapes.scad>; module screw_hole(hole_r, thick) { union() { translate([0, 0, -1]) { cylinder(thick, r=hole_r); }; translate([0, 0, thick - 1.9]) { cylinder(3, hole_r, hole_r + 2.5); }; }; } modul...
glb/cad_b80b47c14863.glb
Create a hinge assembly consisting of four repeating barrel units. Each unit is based on a cylinder with a radius of 1.75mm and a width of 3.9mm. The barrels are arranged in a linear sequence with a 0.1mm gap between them. For each unit, create a central pin with a radius of 0.5mm and a total length of 6mm, oriented ...
module hinge_join(width, height, standoff, count, pin=0.5, gap=0.1, pin_gap=0.25, $fn=50) { bore_r = pin + pin_gap; overall = (width + gap) * count * 2; intersection() { translate([overall / -2, -standoff, 0]) { cube([overall, standoff * 2, height * 2]); } union() { chil...
glb/cad_2194676d7c8a.glb