Previous: ``` startProfileAt([x, y], %) startProfileAt([x, y], sketch001) ``` New: ``` startProfile(%, at = [x, y]) startProfile(sketch001, at = [x, y]) ```
		
			
				
	
	
		
			58 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			58 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
---
 | 
						|
source: kcl-lib/src/simulation_tests.rs
 | 
						|
description: Result of unparsing crazy_multi_profile.kcl
 | 
						|
---
 | 
						|
sketch001 = startSketchOn(XZ)
 | 
						|
profile001 = startProfile(sketch001, at = [6.71, -3.66])
 | 
						|
  |> line(end = [2.65, 9.02], tag = $seg02)
 | 
						|
  |> line(end = [3.73, -9.36], tag = $seg01)
 | 
						|
  |> line(endAbsolute = [profileStartX(%), profileStartY(%)])
 | 
						|
  |> close()
 | 
						|
extrude001 = extrude(profile001, length = 20)
 | 
						|
sketch002 = startSketchOn(extrude001, face = seg01)
 | 
						|
profile002 = startProfile(sketch002, at = [0.75, 13.46])
 | 
						|
  |> line(end = [4.52, 3.79])
 | 
						|
  |> line(end = [5.98, -2.81])
 | 
						|
profile003 = startProfile(sketch002, at = [3.19, 13.3])
 | 
						|
  |> angledLine(angle = 0, length = 6.64, tag = $rectangleSegmentA001)
 | 
						|
  |> angledLine(angle = segAng(rectangleSegmentA001) - 90, length = 2.81)
 | 
						|
  |> angledLine(angle = segAng(rectangleSegmentA001), length = -segLen(rectangleSegmentA001))
 | 
						|
  |> line(endAbsolute = [profileStartX(%), profileStartY(%)])
 | 
						|
  |> close()
 | 
						|
profile004 = startProfile(sketch002, at = [3.15, 9.39])
 | 
						|
  |> xLine(length = 6.92)
 | 
						|
  |> line(end = [-7.41, -2.85])
 | 
						|
  |> line(endAbsolute = [profileStartX(%), profileStartY(%)])
 | 
						|
  |> close()
 | 
						|
profile005 = circle(sketch002, center = [5.15, 4.34], radius = 1.66)
 | 
						|
profile006 = startProfile(sketch002, at = [9.65, 3.82])
 | 
						|
  |> line(end = [2.38, 5.62])
 | 
						|
  |> line(end = [2.13, -5.57])
 | 
						|
  |> line(endAbsolute = [profileStartX(%), profileStartY(%)])
 | 
						|
  |> close()
 | 
						|
revolve001 = revolve(profile004, angle = 45, axis = getNextAdjacentEdge(seg01))
 | 
						|
extrude002 = extrude(profile006, length = 4)
 | 
						|
sketch003 = startSketchOn(-XZ)
 | 
						|
profile007 = startProfile(sketch003, at = [4.8, 7.55])
 | 
						|
  |> line(end = [7.39, 2.58])
 | 
						|
  |> line(end = [7.02, -2.85])
 | 
						|
profile008 = startProfile(sketch003, at = [5.54, 5.49])
 | 
						|
  |> line(end = [6.34, 2.64])
 | 
						|
  |> line(end = [6.33, -2.96])
 | 
						|
  |> line(endAbsolute = [profileStartX(%), profileStartY(%)])
 | 
						|
  |> close()
 | 
						|
profile009 = startProfile(sketch003, at = [5.23, 1.95])
 | 
						|
  |> line(end = [6.8, 2.17])
 | 
						|
  |> line(end = [7.34, -2.75])
 | 
						|
  |> line(endAbsolute = [profileStartX(%), profileStartY(%)])
 | 
						|
  |> close()
 | 
						|
profile010 = circle(sketch003, center = [7.18, -2.11], radius = 2.67)
 | 
						|
profile011 = startProfile(sketch003, at = [5.07, -6.39])
 | 
						|
  |> angledLine(angle = 0, length = 4.54, tag = $rectangleSegmentA002)
 | 
						|
  |> angledLine(angle = segAng(rectangleSegmentA002) - 90, length = 4.17)
 | 
						|
  |> angledLine(angle = segAng(rectangleSegmentA002), length = -segLen(rectangleSegmentA002))
 | 
						|
  |> line(endAbsolute = [profileStartX(%), profileStartY(%)])
 | 
						|
  |> close()
 | 
						|
extrude003 = extrude(profile011, length = 2.5)
 | 
						|
revolve002 = revolve(profile008, angle = 45, axis = seg02)
 |