* More units of measure work Signed-off-by: Nick Cameron <nrc@ncameron.org> * Update CSG output since engine change --------- Signed-off-by: Nick Cameron <nrc@ncameron.org> Co-authored-by: Nick Cameron <nrc@ncameron.org>
		
			
				
	
	
		
			21 lines
		
	
	
		
			446 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			446 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
fn cube(pos, scale) {
 | 
						|
  sg = startSketchOn('XY')
 | 
						|
    |> startProfileAt(pos, %)
 | 
						|
    |> line(end = [0, scale])
 | 
						|
    |> line(end = [scale, 0])
 | 
						|
    |> line(end = [0, -scale])
 | 
						|
 | 
						|
  return sg
 | 
						|
}
 | 
						|
part001 = cube([0, 0], 20)
 | 
						|
  |> close(%)
 | 
						|
  |> extrude(length = 20)
 | 
						|
 | 
						|
part002 = startSketchOn(part001, face = "END")
 | 
						|
  |> startProfileAt([0, 0], %)
 | 
						|
  |> line(end = [0, 10])
 | 
						|
  |> line(end = [10, 0])
 | 
						|
  |> line(end = [0, -10])
 | 
						|
  |> close(%)
 | 
						|
  |> extrude(length = 5)
 |