<commit_before>module TravelBracket(){
difference(){
	union(){
		import("..//..//approved//TRV_BRKT.stl");
		
		// Fill in unneeded holes
		color([255,0,0])translate([16,17,3])rotate([90,0,0])cylinder(h=10,r=1.8,$fn=40);
		color([255,0,0])translate([16,17,11])rotate([90,0,0])cylinder(h=10,r=1.8,$fn=40);

		translate([22,9,0])cube([6,8,14]);
		translate([-22,9,0])mirror([1,0,0])cube([6,8,14]);
		translate([22,-9,0])mirror([0,1,0])cube([6,6,14]);
		translate([-22,-9,0])mirror([1,1,0])cube([6,6,14]);

		translate([13,11,0])cube([6,3,14]);

		// Linear bearing holes
		difference(){
			union(){
				translate([25,0,0])cylinder(h=16,r=10,$fn=40);
				translate([-25,0,0])cylinder(h=16,r=10,$fn=40);
			}

			union(){
				translate([25,0,-1])cylinder(h=18,r=8,$fn=40);
				translate([-25,0,-1])cylinder(h=18,r=8,$fn=40);
			}
		}
				
	}
		
		// Mount screw Linear bearing
		translate([-25,0,7])rotate([90,0,0])cylinder(h=40,r=1.8,$fn=40,center=true);
		translate([25,0,7])rotate([90,0,0])cylinder(h=40,r=1.8,$fn=40,center=true);		

}


}

module NutSocket(width,depth,height)
{
	side_length=sqrt(pow(width,2)/2);
	translate([0,0,height/2])cube([width,depth,height],center=true);
	rotate([0,45,0])cube([side_length,depth,side_length],center=true);
}

difference(){
	TravelBracket();

	union(){
		translate([-25,12.5,5.5])NutSocket(6,3,14);
		translate([25,12.5,5.5])NutSocket(6,3,14);
		mirror([0,1,0])translate([-25,11,5.5])NutSocket(6,3,14);
		mirror([0,1,0])translate([25,11,5.5])NutSocket(6,3,14);
	}
}<commit_msg>Add documentation<commit_after>// Module containing code for revised Travel Bracket for Wintermute Delta Printer
module TravelBracket()
{
	difference()
	{
		union()
		{
			// Import base HIMAWIRI STL from approved directory
			import("..//..//approved//TRV_BRKT.stl");
		
			// Fill in unneeded holes
			// These aspects of the original HIMAWRI base printer are not used on
			// the Wintermute fork
			translate([16,17,3])rotate([90,0,0])cylinder(h=10,r=1.8,$fn=40);
			translate([16,17,11])rotate([90,0,0])cylinder(h=10,r=1.8,$fn=40);
			translate([22,9,0])cube([6,8,14]);
			translate([-22,9,0])mirror([1,0,0])cube([6,8,14]);
			translate([22,-9,0])mirror([0,1,0])cube([6,6,14]);
			translate([-22,-9,0])mirror([1,1,0])cube([6,6,14]);
			translate([13,11,0])cube([6,3,14]);

			// Linear bearing holes
			difference()
			{
				// Cylinder defining the outer shell
				union()
				{
					translate([25,0,0])cylinder(h=16,r=10,$fn=40);	// Left
					translate([-25,0,0])cylinder(h=16,r=10,$fn=40);	// Right
				}

				// Cylider defining the inner section to be removed
				// (Where the linear bearings will fit)
				union()
				{
					translate([25,0,-1])cylinder(h=18,r=8,$fn=40);	// Left
					translate([-25,0,-1])cylinder(h=18,r=8,$fn=40);	// Right
				}
			}				
		}		
		// Holes for set screws to add further support for linear bearings
		translate([-25,0,7])rotate([90,0,0])cylinder(h=40,r=1.8,$fn=40,center=true);
		translate([25,0,7])rotate([90,0,0])cylinder(h=40,r=1.8,$fn=40,center=true);		
	}
}

// Module defining the shape of a M3 Nut for screw mounts
module NutSocket(width,depth,height)
{
	side_length=sqrt(pow(width,2)/2);
	translate([0,0,height/2])cube([width,depth,height],center=true);
	rotate([0,45,0])cube([side_length,depth,side_length],center=true);
}

difference()
{
	TravelBracket();

	union()
{
		translate([-25,12.5,5.5])NutSocket(6,3,14);
		translate([25,12.5,5.5])NutSocket(6,3,14);
		mirror([0,1,0])translate([-25,11,5.5])NutSocket(6,3,14);
		mirror([0,1,0])translate([25,11,5.5])NutSocket(6,3,14);
	}
}
{'fraction_non_alphanumeric': 0.24317478187447228, 'fraction_numerical': 0.1179285111173656, 'mean_word_length': 5.369175627240144, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2405155', 'n_tokens_mistral': 1840, 'n_tokens_neox': 1543, 'n_words': 164}