* Shuffle around function call code Signed-off-by: Nick Cameron <nrc@ncameron.org> * Refactor function calls to share more code Signed-off-by: Nick Cameron <nrc@ncameron.org> * Hack to leave the result of revolve as a singleton rather than array Signed-off-by: Nick Cameron <nrc@ncameron.org> --------- Signed-off-by: Nick Cameron <nrc@ncameron.org>
		
			
				
	
	
		
			125 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			125 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| ---
 | |
| source: kcl-lib/src/simulation_tests.rs
 | |
| description: Operations executed sketch_in_object.kcl
 | |
| ---
 | |
| [
 | |
|   {
 | |
|     "type": "StdLibCall",
 | |
|     "name": "startSketchOn",
 | |
|     "unlabeledArg": {
 | |
|       "value": {
 | |
|         "type": "Plane",
 | |
|         "artifact_id": "[uuid]"
 | |
|       },
 | |
|       "sourceRange": []
 | |
|     },
 | |
|     "labeledArgs": {},
 | |
|     "sourceRange": []
 | |
|   },
 | |
|   {
 | |
|     "type": "StdLibCall",
 | |
|     "name": "startSketchOn",
 | |
|     "unlabeledArg": {
 | |
|       "value": {
 | |
|         "type": "Plane",
 | |
|         "artifact_id": "[uuid]"
 | |
|       },
 | |
|       "sourceRange": []
 | |
|     },
 | |
|     "labeledArgs": {},
 | |
|     "sourceRange": []
 | |
|   },
 | |
|   {
 | |
|     "type": "GroupBegin",
 | |
|     "group": {
 | |
|       "type": "FunctionCall",
 | |
|       "name": "test",
 | |
|       "functionSourceRange": [],
 | |
|       "unlabeledArg": null,
 | |
|       "labeledArgs": {}
 | |
|     },
 | |
|     "sourceRange": []
 | |
|   },
 | |
|   {
 | |
|     "type": "StdLibCall",
 | |
|     "name": "extrude",
 | |
|     "unlabeledArg": {
 | |
|       "value": {
 | |
|         "type": "Sketch",
 | |
|         "value": {
 | |
|           "artifactId": "[uuid]"
 | |
|         }
 | |
|       },
 | |
|       "sourceRange": []
 | |
|     },
 | |
|     "labeledArgs": {
 | |
|       "length": {
 | |
|         "value": {
 | |
|           "type": "Number",
 | |
|           "value": -10.0,
 | |
|           "ty": {
 | |
|             "type": "Default",
 | |
|             "len": {
 | |
|               "type": "Mm"
 | |
|             },
 | |
|             "angle": {
 | |
|               "type": "Degrees"
 | |
|             }
 | |
|           }
 | |
|         },
 | |
|         "sourceRange": []
 | |
|       }
 | |
|     },
 | |
|     "sourceRange": []
 | |
|   },
 | |
|   {
 | |
|     "type": "GroupBegin",
 | |
|     "group": {
 | |
|       "type": "FunctionCall",
 | |
|       "name": "test2",
 | |
|       "functionSourceRange": [],
 | |
|       "unlabeledArg": null,
 | |
|       "labeledArgs": {}
 | |
|     },
 | |
|     "sourceRange": []
 | |
|   },
 | |
|   {
 | |
|     "type": "StdLibCall",
 | |
|     "name": "extrude",
 | |
|     "unlabeledArg": {
 | |
|       "value": {
 | |
|         "type": "Sketch",
 | |
|         "value": {
 | |
|           "artifactId": "[uuid]"
 | |
|         }
 | |
|       },
 | |
|       "sourceRange": []
 | |
|     },
 | |
|     "labeledArgs": {
 | |
|       "length": {
 | |
|         "value": {
 | |
|           "type": "Number",
 | |
|           "value": 10.0,
 | |
|           "ty": {
 | |
|             "type": "Default",
 | |
|             "len": {
 | |
|               "type": "Mm"
 | |
|             },
 | |
|             "angle": {
 | |
|               "type": "Degrees"
 | |
|             }
 | |
|           }
 | |
|         },
 | |
|         "sourceRange": []
 | |
|       }
 | |
|     },
 | |
|     "sourceRange": []
 | |
|   },
 | |
|   {
 | |
|     "type": "GroupEnd"
 | |
|   },
 | |
|   {
 | |
|     "type": "GroupEnd"
 | |
|   }
 | |
| ]
 |