Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a spool bushing with gear for a filament winder. Start with a central rectangular base plate measuring 80mm by 60mm with a thickness of 5mm. Centered on this plate, extend a vertical rectangular beam upwards with a width of 12mm and a height of 140mm, making the total height of the assembly 145mm. At the top of...
use <parametric_involute_gear_v5.0.scad> use <spur_generator.scad> include <gearbushing.scad> $fn = 360; module side() { translate([0,0,-1])difference() { rotate([45,0,0])cube([80, 20, 10], center=true); translate([0,0,-100/2])cube([100, 100, 100], center=true); } } sideadjust = 18; hullint = 4; module who...
glb/cad_eef94f450eb5.glb
Create a spool bushing with gear for a filament winder. Start with a rectangular base plate measuring 150mm in length and 60mm in width, with a thickness of 2.4mm. From this base, extend vertical walls to a total height of 48mm. Construct a long outer wall along one length of the base and a shorter wall along the oppos...
$fn = 60; nozzle_size = 0.8; length_whole = 150; width_whole = 60; height = 48; inner_height = 48; inner_width = 35; sidemargin_nozzle = 15; sidemarin_far = 15; inner_length = length_whole - sidemargin_nozzle - sidemarin_far - nozzle_size*2; slotwidth = 4; slotheight = 10; difference() { union() { cube([leng...
glb/cad_6966ee12528d.glb
Create a 2.5" Drive PCI Mount by starting with a main rectangular base plate measuring 224mm in length, 110mm in height, and 1.75mm in thickness. From this base, remove several geometric sections to create the mounting structure. First, create a slot cutout at the bottom edge starting 15mm from the left, with a width...
cl=224; ch=110; cw=1.75; sw=1.70; screwr=1.75; bml1=8; bmh1=4.5; bml2=bml1; bmh2=bml1+51; cut1l=25.5; cut1h=8; cut1lo=15; cut2lo=cut1lo+cut1l+62.8; cut2l=1.7; cut3l=cl-(cut2lo+cut2l); cut3lo=cut2lo+cut2l+14.6; mount25h=76.6; mount25l=61.72; drive1ho=cut1h+15; drive1lo=11+4; drivelspace=10; drive2ho=drive1ho; drive2lo=d...
glb/cad_5e274365eb1b.glb
Create a 1836 Drive Rail by starting with a rectangular hollow tube. The outer dimensions of the tube should be 25.4mm by 50.8mm (2 inches by 2 inches scaled by 25.4) with a length of 812.8mm (32 inches scaled by 25.4). The wall thickness is defined by an inner hollow rectangular cutout that is 0.125 inches (3.175mm) s...
Wheels = 10; WheelSize = 6; Robotlength = 32; Bearingsize = 1.5; wheeldrop = .375; TopHolePattern = 1; SideHolePattern = 2; tubex = 1; tubey = Robotlength; tubez = 2; wps = Wheels/2; wdps = wheeldrop/2; holes = 0; if (Robotlength <= wps*WheelSize + wps) { echo ("This drivetrain is impossible"); } module tu...
glb/cad_7182219951b6.glb
Create a 1836 Drive Rail by starting with a hollow rectangular tube that is 36mm long, 1 inch wide, and 2 inches high, with a wall thickness of 0.125 inches. Along the length of the rail, create a series of holes to accommodate wheels and mounting hardware. Position four wheel shaft holes with a diameter of 1.25 inch...
Wheels = 4; WheelSize = 4; Robotlength = 36; Centertocenter = 14; Bearingsize = 1.25; wheeldrop = .375; TopHolePattern = 1; SideHolePattern = 1.5; TubeThickness = .125; Pitch = .25; Teeth = 16; BBmounthole = 1.25; BBmountholesize = .201; tubex = 1; tubey = Robotlength; tubez = 2; wps = Wheels/2; wdps = whe...
glb/cad_31fafb9363db.glb
Create a Nerf 4x Rocket Holder Tactical Rail. Start with a main rectangular block measuring 18mm wide, 11mm high, and 93mm long. Carve a central longitudinal channel through the bottom of the block that is 8mm wide and 3mm high, running the full length of the object. Remove two additional rectangular sections from the ...
module Rail(Height=11,Length=93){ difference(){ #color("blue")translate([-9,5.5-Height,-10])cube([18,Height,Length]); translate([-4,3.5,-20])color("green")cube([8,3,Length+20]); translate([6,-1.5,0])cube([3,4,Length+10]); translate([-9,-1.5,0])cube([3,4,Length+10]); translate...
glb/cad_afdeec7684b5.glb
Create a Nerf 4x Rocket Holder Tactical Rail by starting with a main rectangular block that is 24mm wide, 9mm deep, and 60mm high. Carve out a central vertical channel to create a U-shaped profile, removing a rectangular section 19mm wide, 4mm deep, and 80mm high from the center, and further refine the interior by remo...
difference(){ translate([-12,0,0])cube([24,9,60]); translate([-9.5,2,-2])cube([19,4,80]); translate([-7,-1,-5])cube([14,5,70]); translate([-13,-0.2,34])cube([26,6,60]); }; translate([-2,6,48])rotate([0,90,0])color("red")cylinder(r=3,h=4,$fn=4);
glb/cad_33ec7620a6c0.glb
Create a Honeycomb Library consisting of a tessellated grid of hexagonal cells. The overall structure is composed of a central hexagon surrounded by two concentric rings of hexagons, for a total of 3 cells stacked along the vertical line of symmetry. Each hexagonal cell has a distance of 10mm between its opposite flat...
number = 3; flats = 10; walls = 3; height = 10; invert = false; hexTessalation(number = number, h = height, flat = flats, wall = walls, invert = invert); function flatToRadius(flats) = flats/2/sin(60); module hexRow(number = 2, r1 = 10, r2 = 0, h = 2, invert = false) { range = number < 1 ? 0 : number/2-0.5; ...
glb/cad_d56cd0fecc7c.glb
The provided OpenSCAD code describes a complex 3D geometric structure, likely a decorative panel or a tile with an intricate, interlaced pattern. ### Analysis of the Code Structure: 1. **`difference()` and `union()` blocks**: The code heavily utilizes Boolean operations. `union()` combines multiple shapes into one, ...
fudge = 0.1; module poly_path2995(h) { scale([25.4/90, -25.4/90, 1]) union() { linear_extrude(height=h) polygon([[-86.671758,-205.437500],[-89.603550,-205.306950],[-92.501030,-204.876120],[-95.304187,-204.140042],[-97.953008,-203.093750],[-100.704265,-201.492064],[-103.776128,-199.201201],[-110.125904,-1...
glb/cad_cd32ee09cb22.glb
Create a customizable glasses temple replacement. Start with a main arm that is 4.5mm wide and 14.2mm high. The arm extends straight for 77mm before transitioning into an ear bend. At the front end of the arm, create a hinge assembly. The hinge body is a block 5mm long and 5.6mm high, with a width of 4.5mm. The front ...
Temple_Height = 14.2; Temple_Width = 4.5; Temple_Taper = 1.4; Curved_Temple = "No"; Temple_Curve = 35; Hinge_Height = 5.6; Screw_Radius = 1.0; Hinge_Spacer = 5; Tolerance = 0.5; Temple_Length1 = 77; Ear_Radius = 22; Ear_Radius2 = 14; Temple_Length2 = 29; Temple_Angle = 30; $fn = 100; temple_h1 = Temple_H...
glb/cad_3b6b64b2748a.glb
Create an oval template for needle felting consisting of a flat base and a vertical wall. Start by creating a flat, oval-shaped ring with a thickness of 2mm. This ring should be formed by the area between an outer oval boundary and an inner oval boundary, with the outer boundary being an offset of 40mm and the inner bo...
depth = 50; width = 60; height = 75.5 - 4.2; baseThickness = 2; $fa=1; $fs=0.2; delta=1; mainColor = [0.117, 0.565, 1]; highlightColor = [0.384, 0.726, 1]; points = [ [35, 75.5], [30, 75], [25, 74], [22.5, 73], [20, 71], [17.5, 67.5], [14.5, 63], [13, 60], [10, 54], [8.5, 50], [7.5, 45], [6.5, 40], [5.5, 35]...
glb/cad_ce1180e4673c.glb
Create a customizable toy envelope with a stamp. Start by creating a rectangular base 89mm wide, 76mm high, and 2.3mm thick. Round the four exterior corners of this base with a 5mm radius. On the top surface, create a recessed face by removing a thinner rectangular section, leaving a raised border around the edges. T...
string = "GRANDPA"; width = 89; height = 76; thickness = 2.3; faceOffs = 15; inset = 1.15; stampOffs = 0.4; $fn = 50; module FilletProfile(th=5,r=5) { $fn = 20; translate([-r,-r,-0.1]) cylinder(r=r,h=th+0.2); } module Fillet(th=5,r=5,fudge=0) { difference() { translate([-r,-r,0]) ...
glb/cad_07d0a82b0e95.glb
Create a Fridge Magnet On/Off Switch. Start with a base block 30mm wide, 48.54mm deep, and 5mm high. Round the four vertical corners of this base with a 5mm radius. The top surface of the block should be modified into a rocker shape by adding a cylindrical section with a radius of 3mm that spans the full 30mm width, ce...
epsilon = 0.1; golden_ratio = 1.618; corner_radius = 5; bottom_radius = 10; width = 30; depth = width * golden_ratio; height = 5; height_difference = 3; magnet_cube = 5.1; text_top = "OFF"; text_bottom = "ON"; font = "Liberation Sans:style=Bold"; word_size = 6; word_height = 0.5; module rounded_rectangle(s, r) { ...
glb/cad_3b51f9f3802a.glb
Create a bag strap joiner consisting of a long cylindrical peg and a small base. Start by creating a cylinder with a radius of 2.8mm and a height of 48mm to serve as the main peg. At the bottom of this peg, center and attach a larger, shorter cylindrical base with a radius of 3mm and a height of 3mm. Ensure the final m...
translate([0,0,0]) cylinder(h = 3, r = 3, center = false); translate([0,0,0]) cylinder(h = 46, r = 2.4, center = false);
glb/cad_4be0665c4c49.glb
Create a tube endcap consisting of a ribbed base and a rounded top. Start by constructing a stack of six rings, each 3mm high. The rings should taper slightly, with the bottom-most ring having an inner diameter of 18mm and the top-most ring having an inner diameter of 20mm. On top of these rings, place a cylindrical ...
InnerMAXDiameter = 20; InnerMINDiameter = 18; Rings=6; RingHeight=3; RingsRatio=1; CAPOuterDiameter=24; CAPHeight=10; Facets=100; Fillet=6; InnerHoleDiameter=14; InnerHoleHeight=18; module MakeCap() { difference() { union() { for(i=[0:Rings-1]) { ...
glb/cad_08d17bb8406f.glb
Create a stylized humanoid figure based on a 1.5mm scale. Start with a head that is a cube measuring 12mm on all sides. Below the head, create a rectangular body that is 12mm wide, 6mm deep, and 18mm tall. Attach two arms to the sides of the body. Each arm should be a rectangular prism measuring 5.25mm wide, 5.25mm de...
use <utils/build_plate.scad> scale=1.5; hturn=0; part="work"; langle=-15; rangle=45; legAngle=15; build_plate_selector = 0; build_plate_manual_x = 100; build_plate_manual_y = 100; module head() { difference() { cube(size = scale * 8, center=true); } } module leg_connector() { } module body() { difference() { ...
glb/cad_7eb1f00676b5.glb
Create a rectangular tube endcap consisting of a base cap and a tiered insertion plug. Start by creating a rectangular cap base that is 24mm wide, 14mm deep, and 3mm high. Centered on top of this base, build an insertion section with a total height of 15mm. This insertion section is composed of four stacked rectangular...
InnerLength = 15; InnerX = 20; InnerY = 10; RatioRingsInner=0.95; Rings=4; RingsRatio=1; CAPOuterX=24; CAPOuterY=14; CAPHeight=3; InnerHoleX=10; InnerHoleY=5; InnerHoleHeight=15; module MakeRCap() { translate([0,0,InnerLength+CAPHeight]) rotate([180,0,0]) difference() { union() ...
glb/cad_208d3b2b4549.glb
Create a parameterized electric outrunner engine mount. Start by constructing a central hub with a vertical height of 10mm and a central cylindrical hole 10mm in diameter. From this center, extend four rectangular arms of 24mm length and 13mm width, each 3mm thick, arranged in a cross pattern every 90 degrees. At the e...
Mmount(); module Mmount($fn=32) { b=48; d=25; stdoff=10; bt=3; bw=13; ch = 10 ; difference(){ union(){ for(i=[0,90,180,270]){ rotate([0,0,i]) translate([b/4,0,stdoff/2-bt/2]) cube([b/2,bw,bt],center=true); rotate([0,0,i]) translate([b/2,0,0]) cylinder(h=...
glb/cad_a3e7e9833a1f.glb
Create a Y-Belt Spacer by constructing a short, wide cylinder with a height of 3.85mm and an outer diameter of 15.2mm. Centered through the middle of this cylinder, add a vertical hole with a diameter of 3.7mm that passes completely through the top and bottom faces. Ensure the final geometry is a precise hollow ring wi...
$fn=96; clearance = 0.35; breakout = 0.2; shim = 0.01; thick = 3.2 - clearance + 0.5; diao = 12 - clearance * 2 + 1.4*2; diai = 3 + clearance * 2; difference () { cylinder(r = diao/2, h = thick); translate([0,0,-shim]) cylinder(r = diai/2, h = thick+shim*2); }
glb/cad_06c0c9574db8.glb
Create a spacer for a table leg by constructing a solid cylinder with a height of 15mm and an outer diameter of 9.5mm. Bore a concentric hole through the center of this cylinder with a diameter of 8mm. The hole should not penetrate the entire height of the object; instead, position the opening so that it begins 5mm fro...
exterior_height=15; interior_hole_diameter=8; wall_thickness=1.5; interior_height_offset=5; $fn=300; difference(){ cylinder (exterior_height, d=interior_hole_diameter+wall_thickness ); translate([0,0,interior_height_offset])cylinder (exterior_height+1, d=interior_hole_diameter ); }
glb/cad_c99e0dc821df.glb
Create a Bottle Cap for a 2-liter bottle system. Start by creating a solid cylinder with a radius of 16.2 mm and a height of 1 mm. On top of this base, add a hollow cylindrical holder with an outer radius of 16.2 mm and a height of 9 mm. From the center of this holder, remove a cylindrical core with a radius of 12.53...
part="cap"; clearance=0.4; $fn=64; bottleID=25.07; bottleIR=bottleID/2; bottleOD=27.4; bottlePitch=2.7; bottleHeight=9; bottleAngle=2; threadLen=15; bottleNeckID = 21.74; holderOD=bottleOD+5; holderOR=holderOD/2; capHeight = 1; funnelOD=100; funnelOR=funnelOD/2; funnelWall=2; funnelIR=bottleNeckID/2; funnelRim = 5...
glb/cad_af2e4741f1fb.glb
Create a heart-shaped box with a total height of 10mm and a wall thickness of 3mm. To construct the heart geometry, start with a central square of 20mm by 20mm and place two circles with a radius of 10mm centered on the top and right edges of that square. Extrude this combined heart shape to a height of 10mm. To create...
module heart_shape(size) { union() { square(size,size); translate([size/2,size,0]) circle(size/2); translate([size,size/2,0]) circle(size/2); } } module heart(size,thickness,height) { linear_extrude(height=height) minkowski() { heart_shape(size); ...
glb/cad_ec2abb625deb.glb
Create a NEMA 17 motor mount for a 3D printer. Start by constructing a base plate with a footprint that extends to 60mm in length and 66mm in width. Integrate a central mounting area for a stepper motor with a cutout for a 5mm motor shaft. Position two primary mounting holes 31mm apart (centered at +/- 15.5mm from th...
use<write.scad> $fn=30; N17 = 42.67; N17_Holes = 31.0/2; N17_Holes_Diag = 43.8/2; M_Diag = -8; Bob_off = 5; drill_Visable = 0; bobbins_Visable = 0; Show_Belts = 0; difference(){ union(){ color ("FireBrick") hull() { translate ([56, +31.5, 25]) rotate ([0,90,0]) cylinder (d=3,h=8); translate (...
glb/cad_386d2d1a50fb.glb
Create a 3D model of a worm gear assembly. Start by constructing a worm gear with 10 teeth, a pitch of 0.9mm, a pressure angle of 18 degrees, and a thickness of 3mm. The gear should have a root diameter based on these specifications, with a central hole 3mm in diameter passing through its axis. Next, create a worm scr...
use <InvGears.scad> $fn = 50; Teeth = 10; Pitch = 0.9; Pressure = 18; Thk = 3; Edge = 1; Rim = 2; Dia = 6; Base = 0.5; Adj = 0; GAngle = 3; Print(); od = outDO(Teeth,Pitch); pd = pitchD(Teeth,Pitch); Len = od-4; cap = ((od-L...
glb/cad_1fba48680665.glb
Create a spool retainer clip by starting with a main disc that is 67mm in diameter and 5mm thick. From the center of this disc, remove a smaller concentric cylinder with a diameter of 27mm and a height of 6mm to create a ring. Cut a rectangular slot through the ring that is 24.85mm wide, 65mm long, and 6mm deep, center...
union() { difference() { cylinder($fn = 180, h=5, r=33.5, center=true); cylinder($fn = 90, h=6, r=13.5, center=true); translate([20,11,-3]) cylinder(10,7,8,$fn=3); translate([-20,11,-3]) rotate([180, 180, 0]) cylinder(10,7,8,$fn=3); translate([20,-10,-3]) cylinder(12,10,8,$fn=3); transl...
glb/cad_d4d581920145.glb
Create a proximity sensor mount consisting of a cylindrical housing and an attached rectangular bracket. The main housing is composed of three stacked sections: a central cylinder 20mm high with a 25mm diameter, a 20mm high cylinder with a 34mm diameter, and a 30mm high conical transition section that tapers from a 25m...
difference() { body(); holes(); } module holes() { translate([0,0,30]) cylinder(h=80, d=18.6, center = true); rotate([0,0,30])translate([0,0,35]) hexagon(29,0.5,21); rotate([0,90,0])translate([-49,-25,20])cylinder(h=20,d=6, center = true); rotate([0,90,0])translate([-49,25,20])cylinder(h=20,d=6...
glb/cad_0172d989953b.glb
Create an E3D Heater Block Probe Adaptor designed to hold a microswitch. The main body is composed of three rectangular blocks. The central vertical block is 4.5mm wide, 35mm tall, and 11.5mm deep. Two flanking blocks, each 4.8mm wide and 11.5mm deep, extend horizontally from the top of the central block to form a U-sh...
include <microswitch.scad>; translate([0,-2.5,-12]) rotate([0,180,0]) rotate(90) %microswitch(); translate([-20+4.5,-8,9]) %cube([20,16,11.5]); difference() { union() { translate([2.7,-11,-16.5]) cube([4.8,23,37-11.5]); translate([4.5,-23,9]) cube([4.8,35,11.5]); translate([-15.5,8,9]) cube([20,4,11.5]); tra...
glb/cad_40ca94c79693.glb
Create a power supply wire cover designed to fit a rectangular power supply. Start by constructing a hollowed-out shell with a wall thickness of 5mm. The main body should have an interior cavity measuring 112mm in width, 50mm in height, and 42mm in depth to accommodate the power supply. Extend the cover 30mm upward fr...
wallThickness = 5; PSwidth = 112; PSHeight = 50; DistToWall = 42; coverHeight=30; $fn=60; cornerCutoutSize = 20; roundCutoutSize=15; difference() { union() { color([0,0.75,0]) translate([-wallThickness,-coverHeight,0]) cube([PSwidth+wallThickness,coverHeight,wallThickness]); color([0.5,0,0]) t...
glb/cad_af2691933dc6.glb
Create a clock mount consisting of a rectangular back plate and a central mounting pin. Start with a back plate that is 16mm wide, 50mm long, and 4.5mm thick. From this plate, remove two large diagonal slots to create a recessed channel; these slots are formed by removing two rotated rectangular volumes, each 5mm wide,...
$fn = 60; cylinder(d=8,h=3.5,center=true); translate([0,0,-3]) cylinder(d=4.22,h=6,center=true); difference(){ translate([0,-10,-6.5]) cube([16,50,4.5],center=true); translate([9,-10,-4]) rotate([0,60,0]) cube([5,55,5],center=true); mirror([180,0,0]) translate([9,-10,-4]) rotate([0,60,0]) cube([...
glb/cad_7f5fbdad7a69.glb
Create a pair of meshing bevel gears with a 37:15 tooth ratio and an outside circular pitch of 300mm. Both gears must share the same cone distance to ensure they mesh at a 90-degree axis angle. For the larger gear (37 teeth), create a conical gear body with a central bore. The gear should feature a back cone finish. ...
bevel_gear_pair(gear1_teeth = 37,gear2_teeth = 15,outside_circular_pitch=300); pi=3.1415926535897932384626433832795; module bevel_gear_pair ( gear1_teeth = 37, gear2_teeth = 15, axis_angle = 90, outside_circular_pitch=300) { outside_pitch_radius1 = gear1_teeth * outside_circular_pitch / 360; outside_pitch_radiu...
glb/cad_33813b8406f5.glb
Create a bar clamp with a total height of 7.2mm. The main body is formed by two cylinders with a radius of 4.15mm, positioned 26mm apart center-to-center. Connecting these two cylinders is a central cylindrical section with a radius of 6.225mm, centered between the two outer cylinders. Remove a vertical hole with a ra...
SCREW_HOLE_DIA = 4; BAR_HOLE_DIA = 8; CLAMP_BOLT_DIA = 3; SCREW_HOLE_SEPERATION = 26; SCREW_HOLE_CENTRE_OFFSET = 0; CLEARANCE_SCREWS = 0.3; CLEARANCE_BAR = 0.1; LAYER_HEIGHT = 0.3; LAYER_RATIO = 1.5; THICKNESS = round((SCREW_HOLE_DIA*0.66)/(LAYER_RATIO*LAYER_HEIGHT))*(LAYER_RATIO*LAYER_HEIGHT); HEIGHT = round((0....
glb/cad_96d72f64ded2.glb
Create a Benchtop Power Case by starting with a rounded rectangular block measuring 132mm in length, 48mm in width, and 14mm in height, with corner radii of 3mm. Hollow out the center of this block to create a basin, leaving a wall thickness of 3.5mm on all sides and setting the interior floor 1mm above the base. At ...
l=132; w=48; h=14; wall=7; radius=1.2; difference() { outside(1); inside(1); } mount1hole(1); mount2hole(1); mount3hole(1); mount4hole(1); module outside() color("green") roundedcube(l,w,h,3); module inside() translate([wall/2,wall/2,1]){ color("red") cube([l-wall,w-wall,h]); } module mount1() translate([wall/2,...
glb/cad_eaa3f8662085.glb
Create a Moebius Generator sculpture by constructing a continuous, twisting loop. The form is generated by 46 sequential segments arranged in a full circle. For each segment, define two low-resolution tetrahedral points (spheres with 4 facets and a 1mm diameter) positioned 5mm away from the center of the segment's cros...
nombresections = 45; rayon = 10; nbrcotes = 2; tours = 1; nbrtour = tours/nbrcotes; moebius(); module moebius() { union() { for (i=[0:nombresections]) { union() { hull() { rotate ([0,0,i*360/nombre...
glb/cad_b575e5b79044.glb
Create a Parametric Angle reinforcement bracket. Start by creating a main angle bar with a length of 110mm, a width of 15mm, and a thickness of 7.6mm. This bar should be modified to form a V-shape based on a 90-degree angle, removing material to create the appropriate angular cutoff. Next, create two identical clamps ...
include <configuration.scad> use <teardrop.scad> rodtype = "cylinder"; rod_diameter = 8; angle_degrees = 90; angle_length = 110; angle_width = 15; angle_thickness = 7.6; clamp_length = 38; clamp_thickness = 7; clamp_additional_height = -2.5; clamp_position = 1/4.3; screw_spacing = 4; nuttrap_depth = 7; angle...
glb/cad_6f012e62f872.glb
Create a replacement cover for a stern navigation light. The main body is a hollowed conical frustum with a height of 63mm, tapering from a base diameter of 47.5mm to a top diameter of 34mm. The top is capped with a hemisphere of 34mm diameter. The interior is hollowed out by removing a conical section that starts 16mm...
sf=.045; tid=36.5+(36.5*sf); tod=38+(38*sf); for(i=[0:360/8:4*360]){ h=(i*.01)/(tod-tid)*1.875+1.5; rotate([0,0,i]) translate([tid/2+((tod-tid)/2),0,h]) sphere(r=1.12,$fn=20); } difference([]){ union(){ cylinder(d1=47.5,d2=34,h=63); translate([0,0,63])color("red") sphere(d=3...
glb/cad_93b4b6b8b4ef.glb
Create a series of rectangular railroad station signs with raised borders and text. Each sign consists of a base board 1.4mm thick. On top of this base, add a raised border 0.8mm high with a width specified per sign, and raised text of the same height. The four corners of each sign must be concave; create these by remo...
$fn = 72; module ASign(wid, ht, bw, txt, siz, tx, ty) { w = wid * 25.4; h = ht * 25.4; tb = 1.4; tl = 0.8; t = tb + tl; h4 = h / 4; hi = h4 + bw; union() { difference() { intersection() { union() { cube([w, h, tb]); ...
glb/cad_9850a28e1357.glb
Create a Customizable Universal Charging Dock consisting of two main components: a top holder and a connector adapter. For the top holder, create a rounded box with a width of 63mm and a height of 30mm. Hollow out the center to create a slot for a phone, with the slot width adjusted to the phone's width (63mm) and the...
include <MCAD/boxes.scad> part = "second"; phone_name = "phone"; font_size = 11; TextLabel = "Name"; font = "REGISTRATION PLATE UK:style=Bold"; phone_width = 63; phone_depth = 4; support = 0; phone_thickness = 12; connector_width = 11.1; connector_depth = 6.2; connector_height = 17; offset = 0; extraD = 0;...
glb/cad_4065ef63cd56.glb
Create a Prusa i3 Direct Drive Bowden Extruder designed for a NEMA17 stepper motor and a mini hyena drive gear. Start with a main extruder body that is a rectangular block measuring 18mm x 24mm x 24mm. Create a large central cutout for the drive gear and a cylindrical void with a 7mm radius and 15mm height for the id...
clearance = 0.2; layer_height = 0.25; filament_dia = 3; thread_dia = 10; thread_length = 5; printable(); module printable(){ translate([6,-12,10]) rotate([-90,0,0]) extruder(); translate([0,0,8.25]) cube(([18,2,16.5]),center=true); translate([0,0,(layer_height/2)+2.2]) cube(([18,25,layer_height]),center=true); ...
glb/cad_9779f90336c8.glb
Create a hammer-style T-nut for a 2020 profile. Start with a central cylindrical body that has a total height of 3.75mm and a base radius of 2.75mm. Add a wider cylindrical shoulder at the top with a height of 0.5mm and a radius of 5.75mm. Integrate a rectangular section that is 5.5mm wide and 5.5mm long, centered on...
$fn=180; slot_depth = 4; slot_width = 6; slot_total_width = 12; slot_bottom_width = 6; slot_lip = 2; slot_shoulder = 0.5; tol = 0.25; module rect_nut(length) { translate([0, length/2, 0]) rotate([90, 0, 0]) linear_extrude(height=length) polygon([[-slot_width/2 + tol, slot_depth - tol], ...
glb/cad_c9c4d38727a2.glb
Create a Corote de Cachaça bottle by constructing a central body and a neck. For the main body, combine a cylinder with a diameter of 80mm and a height of 60mm, centered at the origin, with two spheres of 42mm radius: one positioned at the bottom of the cylinder and one at the top, creating a rounded, capsule-like form...
$fn = 50; module base(){ translate([0,0,42]) cylinder(60, 40, 40); translate([0,0,42]) sphere(42); translate([0,0,98]) sphere(42); } module base2(){ difference(){ base(); translate([0,0,-40]) cube(100, true); } } module neck(){ difference(){ cylinder(18, 18, 18); translate([...
glb/cad_ce526dfd3a23.glb
Create a Finger Potentiometer consisting of two interlocking spiral conductive traces connected by a central bridge. First, construct a spiral trace with a thickness of 2mm. The spiral should be composed of three concentric loops with a trace width of 4.16mm (calculated as the total radius of 25mm divided by 3 loops,...
selection = 2; tray = [1, 1]; num = 3; radius = 25; thickness = 2; $fn = 64; holeDiameter = 4; width = radius / num / 2; echo("width =", width); thing(selection); module thing(s) { if (s == 0) { assembly(); } else if (s == 1) { spiral(); } else if (s == 2) { for (x=[0:tray[0]-1], ...
glb/cad_e29ed4e327ac.glb
Create a Rubik's Cube puzzle stand by constructing a hollowed-out truncated triangular pyramid. The main body should have a bottom base side length of 80mm, a top side length of 45mm, and a height of 14.8mm. The walls of this body must be 2.3mm thick. To finish the structure, add a bottom base plate that is 1mm thick ...
TL = 45; BL = 80; H = 14.8; TH = 2.3; LH = 1; BH = 1; BTH = 2.3; F = 0.01; module pyramid(l, l2, h) { c = l / (2 * cos(30)); b = l / 2; a = (l * sin(60)) - c; c2 = l2 / (2 * cos(30)); b2 = l2 / 2; a2 = (l2 * sin(60)) - c2; polyhedron( points=[ [0,c,0],[-b,-a,0],[b,-a,0],[0,c2,h],[-b2,-a2,h],[b2,-a2,h] ], tr...
glb/cad_b2fddbbd4691.glb
Create a Hyundai i30 car key wall holder starting with a rectangular base measuring 13mm wide, 20mm deep, and 2mm thick. On top of this base, add a vertical rectangular block that is 7mm wide, 17mm tall, and 3.7mm thick, centered horizontally. This vertical block should be flanked by two cylinders, each with a radius o...
$fn=32; difference(){ union(){ translate([0,0,0]) cube([13,15,2]); translate([0,-15.6,3]) rotate([-5,0,0]){ translate([1+2,20-2,0]) cylinder(h=17,r=1.85); translate([13-2-1,20-2,0]) cylinder(h=17,r=1.85); translate(...
glb/cad_00ff4b4d1a47.glb
Create a rectangular plate for a robotics chassis with overall dimensions of 110mm in width, 70mm in height, and a thickness of 2.8mm. From this solid base, remove a central rectangular section measuring 80mm by 40mm, positioned 15mm from the left edge and 15mm from the bottom edge, to create a large central opening. A...
include <modules.scad>; width = 110; height = 70; thickness = 2.8; plate_fill_width = 22.5; raspberry_hole_radius = 1.3; difference() { cube(size = [width, height, thickness],center=false); squareExtract(0,0, thickness, plate_fill_width); squareExtract(0,height-plate_fill_width,thickness, plate_fill_width); squa...
glb/cad_e1c3b50fca27.glb
Create a flat robotic mounting plate called the RS4 with a thickness of 3mm, a total width of 70mm, and a total height of 160mm. The overall footprint is a rectangle with a semi-circular top edge with a radius of 35mm. From this base, remove several holes to accommodate components. First, create a large central circul...
include <modules.scad>; thickness = 3; height = 160; width = 70; radius = width/2; motor_side = 44; M3_radius = 1.7; cache_hole_distance = 48; pos_y_motor_extract = height-30; pos_x_motor_extract = (width-motor_side)/2; plate_hole_width = 25; plate_hole_height = 3.5; plate_hole_distance_from_border = 22; plate_hole_di...
glb/cad_56e807255ca1.glb
Create a rectangular plate for the RS4 robotics component with a width of 110mm, a length of 70mm, and a thickness of 2.8mm. From this base, remove square sections from each of the four corners, each measuring 22.5mm by 22.5mm. Create two rectangular cable extract cutouts through the thickness of the plate: one startin...
include <modules.scad>; width = 110; length = 70; thickness = 2.8; plate_fill_width = 22.5; cable_extract_width = 12; IMU_width = 16; IMU_length = 28; IMU_width_offset = 2; union() { difference(){ cube(size = [width, length, thickness]); squareExtract(0,0, thickness, plate_fill_width); squareExtract(0,length-...
glb/cad_0031b2bdff09.glb
Create a modular gear reducer mount. Start with a main vertical plate that is 30mm wide, 3mm thick, and 55mm tall. At the base of this plate, add a rectangular extension that is 30mm wide, 15mm deep, and 3mm tall, creating an L-shaped profile. Remove several cylindrical holes from the structure: center a hole with a 1...
$fn=360; gear_mount(); module gear_mount() { difference() { union() { cube([30,3,55]); hull() { cube([30,3,45]); cube([30,15,3]); } } union() { translate([15,-1,50]) rotate([-90,0,0]) cylinder(r=1.75, h=5); ...
glb/cad_8ecfbc28bbb4.glb
Create a monogram cube by combining three extruded letters, "R", "X", and "2", each 30mm in size. Each letter should be extruded to a height of 30mm and scaled by a factor of 1.4 along the X-axis to create a rectangular profile. Position the first letter, "R", centered on the front face. Rotate the second letter, "X", ...
monogram = "RX2"; size = 30; Union("Calibri"); module Word(font) { LetterBlock(monogram[0], font); translate([size,0,0]) LetterBlock(monogram[1], font); translate([size*2,0,0]) LetterBlock(monogram[2], font); } module Union(font) { union() { LetterBlock(monogram[0], font); rotate([90,0,0]) LetterBloc...
glb/cad_c3e28f3b1b46.glb
Create a post bracket for a 25mm solar panel post. Start by creating a main cylinder with an outer diameter of 30.6mm and a height of 20mm. Hollow out the center with a concentric cylinder 25mm in diameter and 21mm high to create a wall thickness of 2.8mm. Cut a vertical slot 5mm wide through the center of the cylinder...
t = 2.8; d = 25; h = 20; bd=5; $fn=72; module f(d,h) { hull() { cylinder(d=d,h=h); translate([-d/2,d/2,0]) cube([d,0.1,h]); } } difference() { union() { f(d+t*2,h); translate([-t-0.5,-d,0]) cube([t*2+1,bd*2,h]); } union() { f(d,h+1); translate([0,d/2+t*2,h/2]) rotate...
glb/cad_2c14c6b4669e.glb
Create a hexagonal shaft with a total length of 254mm and a flat-to-flat diameter of 12.7mm. At both ends of the shaft, create snap ring grooves by removing a thin concentric ring of material. Each groove should have a width of 1.0665mm and a depth of 0.4064mm, positioned so that the distance between the inside edges o...
ShaftType = "Hex"; TotalLength = 10; ShaftSize = 0.5; Snapring = "On"; InsideLength = 9.875; EncoderHoles = "On"; BothSides = "On"; EncoderHoleDepth = .375; EncoderShaftDiameter = .25; GrooveDepth = ShaftSize/31.25; GrooveWidth = ShaftSize/12.075; SnapRingOffset = (TotalLength - InsideLength); module Shaft() ...
glb/cad_ba672b5bd63b.glb
Create a circular disk with a radius of 100mm and a height of 2mm, centered on the origin. From this disk, subtract a hexagonal grid of cylindrical holes, each with a height of 3mm to ensure they pass completely through the disk. Each cylindrical hole must have a radius of approximately 12.12mm (calculated as $\frac{...
function hex_to_pixel(hex,radius) = let(x=radius*sqrt(3)*(hex[0]+hex[1]/2),y=radius*3/2*hex[1]) [x,y]; module generate_hex_grid(external_radius=100,radius=10,gap=.5,height=1){ N = floor((external_radius/2)/radius); grid_points = [ for(a=[-N:N]) for(b=[-N:N]) for(c=[-N:N]) if(a+b+c==0) [a,b,c] ]; for(i=g...
glb/cad_7d13939c28b0.glb
Create a Supportless Hollow Cube Test by starting with a central cube measuring 25mm on all sides. From this main volume, remove a smaller interior cube of 16mm per side, centered within the first. To create the hollowed-out structural effect, remove three intersecting rectangular prisms, each measuring 16mm by 16mm by...
s=25; i=8; z=s-2*7; w=s-9; v=s+5; j=-5; r=s*sqrt(3)-8; k=s-8; p=s-4; c=k*sqrt(3)-4.5; translate([0,0,r/2]) rotate(atan(1/sqrt(2)),[0,1,0]) rotate(45,[1,0,0]) { intersection(){ difference(){ cube([s,s,s],center=true); difference(){ intersection(){ union(){ rotate(45,[0,0,1]) cube([v,v,s-j],center=true); rotate(45,[0,...
glb/cad_7eae264cf11f.glb
Create an e3dv6 Bracket starting with a base rounded rectangular plate measuring 45mm wide, 35mm deep, and 6mm thick, with corner radii of 4mm. Centered atop this base, add a second rounded rectangular block measuring 38mm wide, 12mm deep, and 42mm high, also with 4mm corner radii. Between these two blocks, integrate a...
use <MCAD/boxes.scad> difference() { union() { translate([0, 10, 3]) roundedBox([45, 35, 6], 4, true); translate([0, 15, 27]) roundedBox([38, 12, 42], 4, true); difference() { translate([0, 15, 14]) cube([12, 40, 16], true); translate([-20, 1, 14]) rotate([0, ...
glb/cad_60f3ed463f83.glb
Create an Aus3D IR Proximity Sensor Mount consisting of two separate parts: a main shell and a retaining bar. First, construct the shell. Create a hull based on four cylinders (two at x=±12mm, y=0, r=4.5mm and two at x=±10mm, y=-1.175mm, r=4.5mm) with a total height of 9.6mm. Attach a rectangular block to the back mea...
use <MCAD/nuts_and_bolts.scad>; $fn = 80; shell(); _lid = 1; _gap = 7.9; translate( [0,20,_board+_base+_bheight]) rotate([180,0,0]) bar(); _tol = 0.1; _top = (_lid>0)?1.0:0.0; _wall = _gap+_top; _base = 1.6; _board = _base +_tol; _bheight=_wall - _board; _sheight=_base + _wall; _l1=20.9;...
glb/cad_270975b478d0.glb
Create an FRC Plate consisting of two rectangular plates joined at a 90-degree angle. Each rectangular section must have a thickness of 3.175mm (0.125 inches), a width of 25.4mm (1 inch), and a length of 76.2mm (3 inches). On each plate, create a linear pattern of circular holes with a diameter of 5.105mm (0.201 inch...
Angle = 90; PlateThickness = .125; PlateWidth = 1; PlateLengthY = 3; PlateLengthX = 3; HolePatternY = .5; HolePatternX = .5; HoleSize = .201; Crossmember = "On"; Radius = 0.125; holes = 0; module Plate() { union() { scale(25.4, 25.4, 25.4) translate([-PlateWidth/2, -PlateWidth/2, 0]) ...
glb/cad_26bbde9d8917.glb
Create a holder consisting of two mirrored, vertically stacked components. The first component is a hollowed-out elliptical ring centered at x=11, y=0, z=0. Start with an outer elliptical cylinder with a diameter of 82mm and a height of 60mm, scaled by a factor of 2 along the X-axis. Remove a smaller inner elliptical c...
A=6; B1=75; B2=20; C=7; D=60; A2=5; B21=40; B22=20; C2=7; D2=40; color( [1, 1, 1], a=1.0 ) { union() { union() { union() { difference() { difference() { difference() { translate([ (B1+C)/2*B2*2/B1+ A, 0]) scale([B2*2/B1,1,]) cylinder(d=B1+C, h=D,center=true); ...
glb/cad_2a10364e6820.glb
Create a Mage Knight Map Tile Tray by starting with a solid cylinder 120mm in diameter and 40mm tall. From this main body, remove a central cylindrical core with a radius of 43mm and a height of 4mm, starting from the bottom face. To create the three storage compartments, remove three identical rectangular prisms, each...
$fn = 128; bottom = 2; height = 38; difference () { cylinder ( r = 120/2, h = bottom + height ); for ( i = [ -150, -30, 90 ] ) rotate ([0, 0, i]) { translate ([-1, -40, bottom]) cube ([62, 80, height + 1]); translate ([60, 0, -1]) cylinder ( r = ...
glb/cad_fe95d9d94960.glb
Create a parametric riser for wooden train tracks. The model consists of a vertical support column and a top track-mounting section. First, create a vertical rectangular riser column with a height of 127mm, a width of 10mm, and a length of 51mm. The base of this column should be a flat rectangular plate 5mm thick with...
left = "female"; right = "male"; length = 51; height = 127; base_height = 5; $o = .01; $fn=120; render_part(left, right, length, height); use <tracklib.scad>; module render_part(left, right, length, height) { column_w = 10; difference() { union() { translate([0,0,height]) ...
glb/cad_4e641f2bd470.glb
Create a rectangular enclosure for a temperature monitor called a Themperaturwaechter. The outer dimensions of the main body are 96mm in length, 43mm in width, and 51mm in height. The walls and the base are 3mm thick. Hollow out the center to create an interior cavity measuring 90mm by 37mm by 48mm. From this interio...
dick = 3; breit=37; lang=90; hoch=48; x1=11; y1=-1; x2=62; y2=18; difference() { translate([0,0,0]) cube([lang+dick*2,breit+dick*2,hoch+dick]); translate([dick,dick,dick]) cube([lang,breit,hoch+dick]); translate([dick+x1,dick,y1]) cube([x2,y2,hoch+dick]); translate([-1,y2+(breit-y2)/2+dick,hoch+dick-15]) rotate([0,...
glb/cad_4b76cf8ff589.glb
Create a temperature monitor base. Start with a rectangular base plate measuring 96mm in length, 43mm in width, and 3mm in thickness. At each end of the base plate, centered along the width, create a vertical rectangular support block that is 3mm thick, 43mm wide, and 48mm high. On the base plate, place two circula...
dick = 3; breit=37; lang=90; hoch=48; x1=11; y1=-1; x2=62; y2=18; difference() { translate([0,0,0]) cube([lang+dick*2,breit+dick*2,dick]); translate([20,30,-1]) cylinder (r=2, $fn=50,h=dick*2, center = false); translate([lang-20,30,-1]) cylinder (r=2, $fn=50,h=dick*2, center = false); } difference() { translate([...
glb/cad_b82b8e195278.glb
Create a wasp and fruit fly trap designed to sit atop a glass. Start by constructing a wide, shallow cylindrical base with a radius of 45.5mm and a height of 10mm. This base should be a hollow ring with an inner radius of 40mm and a wall thickness of 5.5mm. Within this base, create a series of concentric circular rid...
mitte=14; aussen=45; difference() { translate([0,0,0]) cylinder (r=45.5, $fn=30,h=10, center = false); translate([0,0,1]) cylinder (r=44, $fn=30,h=10, center = false); translate([0,0,0]) cylinder (r=40, $fn=30,h=10, center = false); } for (i = [mitte/3:14]) { difference() { translate([0,0,0]) cylinder (r=i*3+1...
glb/cad_b80c33c22059.glb
Create a wasp and fruit fly trap consisting of a shallow outer basin and a central conical insert. Start by creating a wide, flat cylinder with a radius of 45mm and a height of 10mm. Hollow out this cylinder by removing a concentric inner cylinder with a radius of 44.3mm and a height of 10mm, leaving a thin outer rim. ...
difference() { translate([0,0,0]) cylinder (r=45, $fn=30,h=10, center = false); translate([0,0,0.5]) cylinder (r=44.3, $fn=30,h=10, center = false); translate([0,0,0]) cylinder (r=14, $fn=30,h=10, center = false); } difference() { translate([0,0,0]) cylinder(h=30, $fn=30, r1=15, r2=2, center=false); translate([...
glb/cad_25c72c591f3c.glb
Create a Phoneside Cover designed to hold a smartphone. Start by creating a solid base block with a height of 125mm, a width of 59mm, and a thickness of 9mm. The four corners of this block must be rounded with a radius of 15mm. Hollow out the center of this block to create a shell with a wall thickness of 2mm. To allo...
showPhoneHolder = true; showSupportLaptop = false; showScrew = false; position = "left"; buttonsHoleLeft = true; height = 125; width = 59; thickness = 9; arrondi= 15; include <module_thread.scad> module myPhone(height,width,thickness,arrondi){ hull(){ cylinder(d=arrondi ,h=thickness, $fn=100); tr...
glb/cad_5034e5fcf2e2.glb
Create a Gear for Craftsman 572.530320. Start by constructing a spur gear with 15 teeth, a pitch circle radius of 16mm, a face width of 5mm, and a center hole with a radius of 10mm. The gear should have a disk width of 16mm and a ring radius of 15mm. To support the gear, add three identical support structures. Each su...
module leverTooth() { points = [ [-1,1,0], [0,1,1], [1,1,0], [-1,-1,0], [0,-1,1], [1,-1,0] ]; faces = [ [1,0,2], [2,5,4,1], [5,3,4], [4,3,0,1], [0,3,5,2] ]; scale(5) polyhedron(points,faces); } module leverTeeth() { for (a = [0 : 2]) { ...
glb/cad_5a9908cc153b.glb
Create a Gear for Craftsman 572.530320. Start by constructing a spur gear with 15 teeth, a pitch circle radius of 16mm, a face width of 8mm, and a disk width of 16mm. The gear should have a ring radius of 15mm and a center hole with a radius of 9.5mm. Below the gear, add a cylindrical sprue support with a radius of 5m...
module leverTooth() { points = [ [-1,1,0], [0,1,1], [1,1,0], [-1,-1,0], [0,-1,1], [1,-1,0] ]; faces = [ [1,0,2], [2,5,4,1], [5,3,4], [4,3,0,1], [0,3,5,2] ]; scale(5.001) polyhedron(points,faces); } module leverTeeth() { for (a = [0 : 2]) { ...
glb/cad_2dbe5cd79d36.glb
Create a Customizable Egg Base for an LED light. Start by constructing a wide cylindrical base with a diameter of 34.1mm and a height of 5mm. Hollow out the center of this base by removing a cylinder with a diameter of 30.1mm and a height of 4.05mm, leaving a wall thickness of 2mm. On top of this base, center a second,...
egg_holder_outer_diameter=13.92; egg_holder_wall_thickness=1.2; egg_holder_height=3; base_inner_diameter=30.1; base_wall_thickness=2; base_height=5; difference() { union() { difference() { cylinder(h=base_height, d=(base_inner_diameter+base_wall_thickness), $fn=60); translate(...
glb/cad_06cdd0dc83ac.glb
Create a Fireworks Punk Stick Holder by constructing a hexagonal prism with a flat base and a total height of 60mm. The outer shell should have a radius of 8mm. Bore a circular hole through the center of the prism starting from a height of 6mm from the base, extending to the top. This internal hole must have a radius o...
difference() { translate ([0, 0, 0]); cylinder ($fn=6, h=8, r=60); translate ([0, 0, 4]) cylinder ($fn=6, h=4, r=50); translate ([0, 27.25, 0]) rotate ([0, 0, 30]) cylinder($fn=3, h=8, r=17); translate ([0, -27.25, 0]) rotate ([0, 0, 210]) cylinder($fn=3, h=8, r=17); translate ([23.5, 1...
glb/cad_8e4faa1c0ade.glb
Create a vacuum cleaner slide-valve consisting of a main widget body and a sliding component. First, construct the widget body by extruding a 2D profile to a height of 4.3mm. This profile is formed by the union of two circles with radii of 9.65mm centered at x = 5.35mm and x = -5.35mm, connected by a central rectangle ...
wh=4.3; ww=19.3; wl=30; slh=1.3; sll=13.5; rh=3.0; rw=5+rh; rotate(a=180,v=[0,1,0]) { linear_extrude( height=wh, center=true) { union() { translate( [+(wl-ww)/2,0,0] ) circle(r=ww/2, center=true); translate( [-(wl-ww)/2,0,0] ) circle(r=ww/2, center=true); translate( [0, 0, 0] ) square(size=[wl/3,ww], center=tru...
glb/cad_47de64a52224.glb
Create a filament spool consisting of a central hub and two side flanges. Start by creating a central cylindrical ring with an outer radius of 45mm, an inner radius of 35mm, and a height of 70mm. To make this ring lightweight, remove material to create a pattern of oval-shaped holes. Specifically, create three sets of ...
translate([0,-50,35]) fertigfelge(); translate ([-40,0,7.36]) rotate ([0,90,0]) scale ([0.98,0.98,0.98]) halter (); translate ([0,80,7.36]) rotate ([0,90,180]) scale ([0.98,0.98,0.98]) halter (); translate ([40,0,7.36]) rotate ([0,90,0]) scale ([0.98,0.98,0.98]) halter (); module halter () { difference () { fluegel...
glb/cad_f9b0444b5704.glb
Create a simple birdhouse consisting of a base, a main body, and a front face. Start with a back panel that is 2mm thick, defined by a polygon with vertices at [0,0], [60,0], [75,90], [90,90], [30,165], [-30,90], and [-15,90], with an additional rectangular section from x=-9 to 9 and y=90 to 150. Build the main body ...
linear_extrude(height = 2, center = false, convexity = 10, twist = 0) difference() { union() { polygon(points=[[0,0],[60,0],[75,90],[90,90],[30,165],[-30,90],[-15,90]]); polygon(points=[[-9,90],[-9,150],[9,150],[9,90]]); } translate([30,120]) circle(d=8, $fn=50); translate([27.5,120]) squa...
glb/cad_b5cacb64c7cd.glb
Create a Three Candle Big Bottle Adapter designed to hold three candles in a triangular arrangement. Start by creating three hollow vertical cylinders, each with an outer diameter of 23.8mm and an inner diameter of 22mm, and a height of 55mm. Position these three cylinders so their centers form an equilateral triangle,...
candleDiaOut = 23/2; candleDiaInn = 22/2; bottleDia = 41.5/2; nuzzle=.4; x = candleDiaOut+nuzzle; h = sqrt(3*pow(x,2)); module point(x,y) { translate([x,y])sphere(r=4,$fn=10); translate([x,y])cylinder(r=1,h=30,$fn=10); } holderHeight = 25; $fn = 100; translate([0,-h/3,holderHeight]) rotate([0,180,0]) difference() {...
glb/cad_e97b6cd62bbe.glb
Create a Roof Vent Cap designed to fit over a 3-inch schedule 40 PVC pipe. Start by constructing a hollow cylindrical sleeve with an inner diameter of 91.4mm (3.5 inches plus a 2mm tolerance) and an outer diameter of 97.4mm, with a total height of 50.8mm (2 inches). Along the walls of this sleeve, create six equally ...
function inch(mm) = mm * 25.4; BUMP = 1; PIPE_OD = inch(3.5); DEPTH = inch(2); PITCH = 10.5 / 12; MAX_OD = 280; BAFFLE_COUNT = 6; SLEEVE_WALL = 3; CAP_WALL = 3; BAFFLE_WALL = 3; PINHOLE = inch(0.25); ID = PIPE_OD + BUMP*2; OD = ID + 2*SLEEVE_WALL; x = ((OD/2)/2 * (OD/2) * PITCH) / (2 * (OD/2) + PITCH); y = x ...
glb/cad_99d4e173ffe1.glb
Create a Rubber Band Clip by starting with a solid base formed from the convex hull of two cylinders, each 8mm in diameter and 4mm high, positioned 8mm apart center-to-center along the x-axis. From this base, remove a central rectangular slot 2mm wide and 8mm deep that passes through the center of the object. To protec...
D=8; T=4; I=4; W=4; O=2; $fn=48; module torus(id,od) { intersection() { translate([(W+D)/2,0,0]) cube([W+D,W+D,W+D], center=true); rotate_extrude() { hull() { translate([id/2+od/2,0]) circle(d=od); translate([W+2,0]) circle(d=od); } } } } difference() { translate([0,0,-T/...
glb/cad_513407617956.glb
Create a filament out detection sensor holder by constructing a rectangular base 32mm wide, 15mm deep, and 3mm high. Add two vertical walls to this base: one wall 2mm wide and 10mm high running along the left edge from front to back, and another 2mm wide and 10mm high wall along the right edge from front to back. Addit...
difference(){ union(){ cube([32, 15, 3]); translate([0, 13, 3]){ cube([32, 2, 10]); } translate([0, 0, 3]){ cube([2, 13, 10]); } translate([30, 0, 3]){ cube([2, 13, 10]); } } translate([0, 9.5, 7.5]){ rotate([0, 90, 0]) ...
glb/cad_2967f3a0b261.glb
Create a Cyclonic Water Filter consisting of three concentric, stacked rings with a decagonal cross-section. Each ring is formed by extruding a 10-sided polygon along a circular path. The first ring is centered at the origin on the XY plane with a path radius of 5mm. The second ring is identical in shape and radius bu...
function rot2Mat(rotVec, axis) = (len(rotVec) == 2) ? rot2Mat([rotVec[0], rotVec[1], 0], axis) : (axis == "x") ? [[1, 0, 0], [0, cos(rotVec[0]), sin(rotVec[0])], [0, sin(rotVec[0]), -cos(rotVec[0])]] : (axis == "y") ? [[ cos(rotVec[1]), 0...
glb/cad_008245ac76cb.glb
Create a hose adapter for a cyclonic water filter. The object is centered around a vertical axis with a total internal bore diameter of 6mm. At the top, create a cylindrical tube with an outer diameter of 10mm and a height of 20mm. This tube should have a hollow center of 6mm. Below this tube, attach a hexagonal nut ...
use <../pathextrude/path_extrude.scad>; length=15; D=10; ND=17; P=1.5; H=sqrt(3)/2 * P; R=H/(P/2); ppr=31; loops=length/P; xw=0.2; hid=12; hcl=20; cgo=1; cgw=4; myPoints = [ [H/4-0.1*R,-P/2+0.1], [-1/2*H,-P/8], [-1/2*H,P/8], [H/4-0.1*R,P/2-0.1] ]; myPath = [ for(t = [-90:(360/ppr):360]) [(D/2)*cos(t),(D/2)*sin(...
glb/cad_725fbb009d8b.glb
Create an M10 threaded adapter for a hose fitting. Start by creating a hexagonal nut shape with a total height of 12mm and a flat-to-flat diameter of 27mm, using a 16-sided prism for the outer boundary. Bore a central vertical hole through the entire height with a diameter of 15mm. Inside this central hole, carve a met...
use <path_extrude.scad>; length=12; D=20; P=3; ND=27; H=sqrt(3)/2 * P; R=H/(P/2); ppr=31; loops=length/P; xw=0.2; tid=15; myPoints = [ [-H/2+xw+0.1*R,-P/2+0.1], [1/4*H+xw,-P/8], [1/4*H+xw,P/8], [-H/2+xw+0.1*R,P/2-0.1] ]; myPath = [ for(t = [-90:(360/ppr):(360+90)]) [(D/2)*cos(t),(D/2)*sin(t), P*(t)/360] ]; dif...
glb/cad_2d6360b7c4e0.glb
Create a cyclonic water filter adapter consisting of a hollow cylindrical body with integrated M10 threading. Start by creating a main cylinder with an outer diameter of 32mm and a total height of 15mm. The interior of this cylinder should be hollowed out to a diameter of 26mm to accommodate a tube. Incorporate a metr...
use <path_extrude.scad>; length=15; D=32; P=6; ND=32; H=sqrt(3)/8 * P; R=H/(P/2); ppr=53; loops=length/P; xw=0.2; tid=26; myPoints2 = [ [H/2,-P/4], [-1/4*H,-P/16], [-1/4*H,P/16], [H/2,P/4] ]; myPath = [ for(t = [-90:(360/ppr):(360+90)]) [(D/2)*cos(t),(D/2)*sin(t), P*(t)/360] ]; difference() { intersection(...
glb/cad_48f1edfbdbf3.glb
Create a Boom for Stand Lamp consisting of a hollowed truncated square pyramid with a cylindrical collar at the top. The main body is a pyramid with a base width of 150mm (radius 75mm from center) and a height of 70mm, tapering to a top width of 10mm (radius 5mm from center). The walls of this pyramid are 0.5mm thick. ...
$fn=60; thick=.5; difference() { union() { cylinder(r1=75,r2=5,h=70,$fn=4); translate([0,0,47]) cylinder(r=18,h=20); } cylinder(r1=75-thick,r2=5-thick,h=70,$fn=4); translate([0,0,40]) cylinder(r=16.5,h=35); translate([0,0,65]) { cube([2,50,10],center=t...
glb/cad_bc8c9978bff9.glb
Create a Boom for Stand Lamp consisting of a central block with a rounded bottom. Start with a main body formed by the hull of a 30mm x 22mm x 22mm cube centered at the origin and a cylinder with a 9mm radius and 22mm height lying on the X-axis. Subtract a horizontal cylindrical hole with a radius of 6.45mm and a lengt...
$fn=36; thick=22; difference() { hull() { translate([0,0,25]) cube([30,thick,thick],center=true); translate([0,0,7]) rotate([90,0,0]) cylinder(r=9,h=thick,center=true); } translate([0,0,26.5]) rotate([0,90,0]) cylinder(r=6.45,h=50,center=true); translate([0,0,17]) rotate([90,0,0]) { cylinder(r=1.735,h=30,center=t...
glb/cad_05b0e83bb220.glb
Create a boom for a stand lamp by constructing a composite vertical geometry. Start with a main cylinder that has a radius of 8.5mm and a height of 25mm. On top of this cylinder, add a conical transition section that starts at a radius of 8.5mm and tapers down to a radius of 4mm over a height of 4mm. Above this taper, ...
$fn=36; difference() { union() { translate([0,0,38]) sphere(r=7); cylinder(r=8.5,h=25); translate([0,0,25]) { cylinder(r1=8.5,r2=4,h=4); cylinder(r=4,h=10); } } cylinder(r=6.4,h=23); }
glb/cad_ca193fd1542c.glb
Create a boom for a stand lamp by constructing a composite geometric shape. Start with a base cylinder that has a radius of 17.5mm and a height of 14mm. Directly on top of this base, add a conical section that transitions from a bottom radius of 17.5mm to a top radius of 8.5mm over a height of 30mm. To create the hollo...
$fn=36; difference() { union() { cylinder(r=17.5,h=14); translate([0,0,14]) cylinder(r1=17.5,r2=8.5,h=30); } translate([0,0,17]) cylinder(r=6.4,h=50); cylinder(r=15.4,h=12.5); cylinder(r=1.735,h=20); }
glb/cad_0d5ad9e63a31.glb
Create a tent rope tensioner by constructing a flat, elongated plate with a thickness of 4.5mm. The main body is formed by taking two decagonal prisms (10-sided cylinders) with a radius of 18mm and a height of 4.5mm, and connecting them with a convex hull to create a rounded rectangular shape. The two decagonal prisms ...
radio=(9/2)+2; translate([radio*2,radio*1.9,0]){ difference(){ hull(){ cylinder (r=radio*2, $fn=10, h=radio/2); translate ([radio*7.2,0,0]) cylinder (r=radio*2, $fn=10, h=radio/2); } translate ([0,0,-2]) scale([1.3,1,1]){ cylinder (r=radio, $fn=20, h=radio); } translate ([radio*3.8,0,-2]) ...
glb/cad_9bf4b14057b1.glb
Create a BLTouch mounting adapter consisting of two connected cylindrical pillars. Start by creating a solid cylinder with a radius of 3.5mm and a height of 1mm. Create a second identical cylinder and position its center 6mm away along the X-axis and 10mm above the first cylinder along the Z-axis. Form a convex hull th...
horizontalOffset = 6; verticalOffset = 10; baseHeight = 1; holeDiameter = 2.5; difference() { hull() { cylinder(baseHeight, 3.5, 3.5, $fn=100); translate([horizontalOffset, 0, verticalOffset]) cylinder(baseHeight, 3.5, 3.5, $fn=100); } translate([0, 0, -1]) cylinder(55, holeDiameter/2, h...
glb/cad_49c16b099bc0.glb
Create a cable clip designed to slide onto a table surface. Start with a base rectangular plate that is 15mm wide, 30mm long, and 3mm thick. From this base, extend two vertical walls of the same 3mm thickness and 15mm width. The first wall is positioned at the start of the base, and the second wall is positioned 32mm a...
Table_Thickness=28; Length=30; Clip_Thickness=3; Clip_Width=15; Cable_Diameter=10; $fs=0.2; cube ([Clip_Thickness,Length,Clip_Width]); translate ([Table_Thickness+Clip_Thickness+1,0,0]) cube ([Clip_Thickness,Length,Clip_Width]); cube ([Table_Thickness+Clip_Thickness*3+Cable_Diameter,Clip_Thickness,Clip_Width]); tr...
glb/cad_d3262d2d3da1.glb
Create an Ambiguous Cylinder illusion object. Start by creating a hollow vertical shell with a height of 30mm and an outer diameter of 18mm. The wall thickness should be 1.5mm. The cross-section of this shell is a superellipse with a power of 1.5, making it a shape between a circle and a square. To create the illusion...
Preset=0; mHeight=30; mDiameter=18; WallThickness=1.5; mRotation=45; SuperEllipsePower=1.5; SineCutoutHeight=1.5; FlatBottom="no"; GenerateBaseSupport="yes"; SupportDistance=0.3; SupportHeight=5; mXCount=1; mXDistance=15; mYCount=1; mYDistance=15; Height = Preset==1 ? 30: Preset==2 ? 30 : mHeight; Diame...
glb/cad_c040d089a4e1.glb
Create a Dishwasher Rack Protector consisting of two intersecting half-cylindrical sleeves. First, create a horizontal half-cylinder with an outer diameter of 5.6mm and an inner diameter of 4.9mm, extending 30mm in length. Second, create a vertical half-cylinder sleeve with an outer diameter of 5.5mm and an inner diame...
Layout = "Build"; Support = true; include </home/ed/Thing-O-Matic/lib/visibone_colors.scad> ThreadThick = 0.25; ThreadWidth = 2.0 * ThreadThick; HoleFinagle = 0.4; HoleFudge = 1.00; function HoleAdjust(Diameter) = HoleFudge*Diameter + HoleFinagle; Protrusion = 0.1; function IntegerMultiple(Size,Unit) = Unit * ce...
glb/cad_0946503b8b6b.glb
Create a Kinematic Mount platform by starting with a rectangular base measuring 15mm in width, 52mm in length, and 10mm in height. At the coordinates (37.68, 0, 0) and (0, 37.68, 0), create two vertical holes designed to house M4 nuts. Each of these locations should feature a hexagonal nut cavity with a tolerance of ...
include <nuts_and_bolts.scad>; $fn = 30; width = 15; height = 10; length = 52; height_screw = 5; M3_radius = 4/2; constraint_radius = 10.8/2; rad_M4 = 5/2; spring_hole_radius = 3; distance_screw = 37.68; difference(){ union(){ translate([-width/2,-width/2,0])cube([width,length,height]); rotate([0,0,270])translat...
glb/cad_a20e2a2e6d33.glb
Create a Kinematic Mount for Optics Experiments consisting of a rectangular base plate with a width of 15mm, a length of 52mm, and a height of 8mm. At the center of the plate, create a large circular cutout with an inner radius of 12.95mm and an outer radius of 16mm. Within this central area, integrate a conical prim...
include <nuts_and_bolts.scad>; $fn = 30; width = 15; height = 10/2; length = 52; height_screw = 5; M3_radius = 4/2; spring_hole_radius = 3; distance_screw = 37.68; rad_out = 16; rad_in = 25.4/2+0.3; height = 8; rad_M4 = 5/2; rad_M3 = 3/2-0.2; constraint_radius = 10.8/2; d_screw = sqrt(2)*15/2; difference(){ unio...
glb/cad_2d9b2d8a36ca.glb
Create a Kinematic Mount platform by constructing a cylinder with an external diameter of 13mm and a height of 10mm, using a 30-facet resolution. Center a hexagonal nut-shaped hole with a 4mm width and 0.1mm tolerance through the middle of the cylinder. Remove a smaller central cylindrical core with a radius of 1.75mm ...
include <nuts_and_bolts.scad>; $fn = 30; externalDiameter = 13; height =10; difference(){ translate([0,0,height/2])cylinder(r=externalDiameter/2, h=height,center=true); #translate([0,0,height/2-2])nutHole(4,units=MM,tolerance = 0.1); #translate([0,0,1])cylinder(r=3.5/2, h=height); #translate([0,0,height-1])cylinde...
glb/cad_a1f5216ea4eb.glb
Create a Cube Puzzle Generator consisting of a large cuboid composed of smaller, skewed sub-cubes. The overall structure is a 2x2x2 grid of sub-cubes. Each sub-cube has an average dimension of 30mm, but their individual vertices are randomized by a value between 0.2mm and 0.4mm to create an uneven, puzzle-like fit. Th...
MaxIntensity = .4; MinIntensity = .2; Xcubes = 2; Ycubes = 2; Zcubes = 2; xsides = Xcubes+1; ysides = Ycubes+1; zsides = Zcubes+1; scale = 30; seperation = 5; generateHolder = 0; borderTolerance = 2; baseThickness = 4; wallWidth = 3; wallHeight = 10; if(generateHolder == 1){ translate([0,-(Ycubes*scale+border...
glb/cad_cc77b3104f69.glb
Create a Translation Stage for optics experiments consisting of a base platform and a sliding mount. First, construct the base as a rectangular block measuring 40mm wide, 22mm long, and 10mm high. Centered within this block, carve out two parallel cylindrical holes along the width, each with a radius of 3.3mm, position...
include <nuts_and_bolts.scad>; $fn = 50; width = 40; length = 22; height = 10; M6_radius = 3; rod_radius = 6/2; tol = 0.3; difference(){ translate([0,0,0])cube([width,length,height],center=true); translate([+11,0,0])rotate([90,0,0])cylinder(r=rod_radius+tol,h=width,center=true); translate([-11,0,0])rotate([90,0,0...
glb/cad_15f8c69ebcf8.glb
Create a Translation Stage for optics experiments consisting of a main platform with a central cutout. Start with a base rectangular block 40mm wide, 45mm long, and 9mm high, centered on the origin. Add two smaller rectangular blocks, each 40mm wide, 10mm long, and 25mm high, positioned symmetrically at the front and b...
include <nuts_and_bolts.scad>; $fn = 50; length = 45; width = 40; height = 9; M4_rad = 4/2; M6_rad = 6/2; screw_length = 20; rod_radius = 6/2; tol = 0.3; difference(){ union(){ translate([0,0,height/2])cube([width,length,height],center=true); translate([0,length/2+5,25/2])cube([width,10,25],center=true); transla...
glb/cad_20e732353679.glb
Create an integrating sphere for optics experiments by starting with a solid vertical cylinder that has a radius of 15.5mm and a height of 39mm, centered on the origin. From this main body, remove a central sphere with a radius of 12.5mm. Create two perpendicular access ports through the remaining shell: first, remov...
$fn = 30; M3radius = 2.9; M3height = 5; M4radius = 3.9; M4height = 5; M3distance = 4; inputRadius = 2; detectorRadius = 2.5; areaFactor = 0.05; internalRadius = sqrt(pow(detectorRadius,2)/areaFactor); externalRadius = 31/2; height = 39; difference(){ cylinder(r=externalRadius, h=height,center=true); transl...
glb/cad_7cefe8cad89e.glb
Create a kinematic mount platform for an integrating sphere. Start by creating a central cylinder with a radius of 13mm and a height of 5mm, centered on the Z-axis. Add two smaller supporting cylinders to this main body, each with a radius of 2.25mm and a height of 7mm, positioned symmetrically along the X-axis at x = ...
$fn = 30; externalRadius = 31/2-2.5; height = 5; detectorSize = 8.8; M3radius = 2.5; difference(){ union(){ cylinder(r=externalRadius, h=height,center=true); translate([21/2,0,1])cylinder(r=(M3radius+2)/2, h=height+2,center=true); translate([-21/2,0,1])cylinder(r=(M3radius+2)/2, h=height+2,center=true); } ...
glb/cad_caca076fcc8f.glb
Create a kinematic mount platform for an integrating sphere by constructing a thick, flat ring. Start with a solid cylinder that has a radius of 13mm and a height of 5mm, centered on the origin. From the center of this cylinder, remove a smaller concentric cylindrical volume with a radius of 8.1mm and the same height o...
$fn = 50; tol = 0.1; externalRadius = 31/2-2.5; internalRadius = 16/2+tol; height = 5; detectorSize = 8.8; M3radius = 2.5; difference(){ cylinder(r=externalRadius, h=height,center=true); translate([0,0,0])cylinder(r=internalRadius, h=height,center=true); }
glb/cad_4725b675beca.glb
Create a dishwasher cup shelf clip starting with a main rectangular body measuring 13mm wide, 8.3mm deep, and 11mm high. Carve out a central slot starting 2.7mm from the left edge and 3mm from the front edge, with dimensions of 30mm wide, 2.9mm deep, and 30mm high, effectively creating a C-shaped channel. On the right ...
difference () { cube(size = [13, 8.3, 11], center = false); translate ([2.7, 3, 0]) cube (size = [30, 2.9, 30], center = false); } translate ([13.5, 1.7, 0]) cylinder (h = 11, r = 1.7, center = false, $fn = 20) ; translate ([13.5, 6.8, 0]) cylinder (h = 11, r = 1.7, center = false, $fn = 20) ...
glb/cad_71dce3c5b9b2.glb
Create a Post Mounted Belt Tensioner consisting of three parts: a mount, a tensioner body, and a belt grip wedge. First, create the mount as a block 16mm wide, 12mm high, and 16mm long. Center a 5mm diameter vertical hole through the block for the mounting post. At two points separated by 10mm along the length, create...
part = "All"; Belt_Type="GT2"; Mount_Height=12; Mount_Width=16; Post_Hole=5; Adjusting_Separation=10; Adjusting_Hole_Diameter=3.2; Nut_Width=5.5; Nut_Height=2.4; Clearance=0.2; $fs = 0.3; $fn = 0; $fa = 0.01; Padding = 0.01; Belt0_Min_Thickness=1.2; Belt0_Max_Thickness=2.4; Belt0_Teeth_Spacing=5; Belt0_To...
glb/cad_fefbc33deccb.glb
Create a replacement air vent phone cradle clip. The main body is a tapered, wedge-like clip with a height of 10.25mm. The top section is a rectangular block that transitions from a base of 9.3mm by 10mm to a top of 8mm by 6.75mm over a vertical distance of 30.27mm. This block features a central vertical slot 2.54mm wi...
FUZZ = 0.01; module endCyl() { cylinder(d=7.9, h=2.71, center=true, $fn=60); } module peg() { cylinder(d=3.8, h=1.8, center=true, $fn=60); } module clip(low_z_x, low_z_y, high_z_x, high_z_y, full_z, z, inner_y, inner_d) { intersection() { difference() { shape(low_z_x, low_z_y, high_z_x, high_z_y, z...
glb/cad_aeecca12ca75.glb
Create a parallel mechanism consisting of two identical hinge boxes and two identical axles. Each hinge box is a rectangular block measuring 10mm by 25mm by 6mm. On the 10mm by 25mm faces, add two cylindrical protrusions with a radius of 5mm and a height of 10mm, positioned at the top and bottom edges. Hollow out the c...
module axle() { difference() { union() { cylinder(r=3,h=5.5, $fn=32); translate([50,0,0]) cylinder(r=3,h=5.5, $fn=32); translate([0,-3,0]) cube([50,6,5.5]); } cylinder(r=1.65,h=6, $fn=32); translate([50,0,0]) cylinder(r=1.65,h=6, $fn=32); } } module hinge_box() { rotate([0,-90,0]) diffe...
glb/cad_97ccba599d1f.glb