* Change tangentialArc, tangentialArcTo, and tangentialArcToRelative to keyword args * Change tangentialArc offset to angle and convert to kw arg calls * Fix lints * Fix sketch errors and all unit tests passing * Fix tangentialArcTo calls in KCL samples * Update tangentialArc in samples * Update sim test output * Fix formatting * Fix mistake in merge * Fix gear rack sample * Update output after more samples fixes * Update gear rack output * Add end label to docs snippet * Fix to not add endAbsolute for an arc with radius or angle arguments * Update docs outputs * Fix formatting * Fix executor tests * Fix formatting * Fix bench input files * Fix spelling * Improve error messages --------- Co-authored-by: Adam Chalmers <adam.chalmers@zoo.dev>
		
			
				
	
	
		
			26 lines
		
	
	
		
			795 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			795 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
// I-beam
 | 
						|
// A structural metal beam with an I shaped cross section. Often used in construction and architecture
 | 
						|
 | 
						|
// Set units
 | 
						|
@settings(defaultLengthUnit = in)
 | 
						|
 | 
						|
// Define parameters
 | 
						|
beamLength = fromFt(6)
 | 
						|
beamHeight = 4
 | 
						|
flangeWidth = 2.663
 | 
						|
flangeThickness = 0.293
 | 
						|
webThickness = 0.193
 | 
						|
rootRadius = 0.457
 | 
						|
 | 
						|
// Sketch a quadrant of the beam cross section, then mirror for symmetry across each axis. Extrude to the appropriate length
 | 
						|
iBeam = startSketchOn(-XZ)
 | 
						|
  |> startProfileAt([0, beamHeight / 2], %)
 | 
						|
  |> xLine(length = flangeWidth / 2)
 | 
						|
  |> yLine(length = -flangeThickness)
 | 
						|
  |> xLine(endAbsolute = webThickness / 2 + rootRadius)
 | 
						|
  |> tangentialArc(radius = rootRadius, angle = 90)
 | 
						|
  |> yLine(endAbsolute = 0)
 | 
						|
  |> mirror2d(axis = X)
 | 
						|
  |> mirror2d(axis = Y)
 | 
						|
  |> extrude(length = beamLength)
 |