test: Vendor kcl-samples and add simulation tests for them (#5460)
* Change to unzip * Download kcl-samples as zip to public dir * Fix fetch:samples, e2e electron still not working * Change error message to be clearer * Refactor so that input and output directories of sim tests can be different * Add kcl samples test implementation * Update output since adding kcl_samples tests * Update kcl-samples branch * Fix git-ignore pattern to only apply to the root * Fix yarn install and yarn fetch:samples to work the first time * Remove unneeded exists check * Change to use kcl-samples in public directory * Add kcl-samples * Update output since updating kcl-samples * Update output files * Change to not fetch samples during yarn install * Update output after merge * Ignore kcl-samples in codespell * WIP: Don't run e2e if only kcl-samples changed * Conditionally run cargo tests * Fix to round floating point values in program memory arrays * Update output since merge and rounding numbers in memory * Fix memory redaction for floating point to find more values * Fix float redaction pattern * Update output since rounding floating point numbers * Add center to floating point pattern * Fix trigger to use picomatch syntax * Update output since rounding center * Remove kcl-samples github workflows * Enable Rust backtrace * Update output after re-running * Update output after changing order of post-extrude commands * Fix to have deterministic order of commands * Update output after reverting ordering changes * Update kcl-samples * Update output after updating samples * Fix error messages to show the names of all samples that failed * Change cargo test command to match current one * Update kcl-samples * Update output since updating kcl-samples * Add generate manifest workflow and yarn script * Fix error check to actually work * Change util function to be what we actually need * Move new files after merge * Fix paths since directory move * Add dependabot updates for kcl-samples * Add GitHub workflow to make PR to kcl-samples repo * Add GitHub workflow to check kcl-samples header comments * Fix worfklow to change to the right directory * Add auto-commit simulation test output changes * Add permissions to workflows * Fix to run git commit step * Install just if needed * Fix directory of justfile * Add installation of cargo-insta * Fix to use underscore * Fix to allow just command failure * Change to always install CLI tools and cache them * Trying to fix overwrite failing * Combine commands * Change reviewer * Change to PR targeting the next branch * Change git commands to not do unnecessary fetch * Comment out trigger for creating a PR * Update kcl-samples from next branch * Update outputs after kcl-samples change * Fix to use bash pipefail * Add rust backtrace * Print full env from sim tests * Change command to use long option name * Fix to use ci profile even when calling through just * Add INSTA_UPDATE=always * Fix git push by using an app token on checkout * Add comments * Fix to use bash options * Change to echo when no changes are found * Fix so that kcl-samples updates don't trigger full run * Fix paths to reflect new crate location * Fix path detection * Fix e2e job to ignore kcl_samples simulation test output * Fix the fetch logic for the KCL samples after vendoring (#5661) Fixes the last 2 E2E tests for #5460. --------- Co-authored-by: Pierre Jacquier <pierre@zoo.dev> Co-authored-by: Pierre Jacquier <pierrejacquier39@gmail.com> Co-authored-by: Frank Noirot <frank@zoo.dev>
							
								
								
									
										11482
									
								
								rust/kcl-lib/tests/kcl_samples/3d-boaty/artifact_commands.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @ -0,0 +1,6 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| description: Artifact graph flowchart 3d-boaty.kcl | ||||
| extension: md | ||||
| snapshot_kind: binary | ||||
| --- | ||||
							
								
								
									
										1025
									
								
								rust/kcl-lib/tests/kcl_samples/3d-boaty/ast.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										1933
									
								
								rust/kcl-lib/tests/kcl_samples/3d-boaty/ops.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										110
									
								
								rust/kcl-lib/tests/kcl_samples/3d-boaty/program_memory.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @ -0,0 +1,110 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| description: Variables in memory after executing 3d-boaty.kcl | ||||
| --- | ||||
| { | ||||
|   "armRest": { | ||||
|     "type": "Function", | ||||
|     "__meta": [ | ||||
|       { | ||||
|         "sourceRange": [ | ||||
|           3641, | ||||
|           3831, | ||||
|           3 | ||||
|         ] | ||||
|       } | ||||
|     ] | ||||
|   }, | ||||
|   "backSlats": { | ||||
|     "type": "Function", | ||||
|     "__meta": [ | ||||
|       { | ||||
|         "sourceRange": [ | ||||
|           2981, | ||||
|           3072, | ||||
|           3 | ||||
|         ] | ||||
|       } | ||||
|     ] | ||||
|   }, | ||||
|   "benchLength": { | ||||
|     "type": "Number", | ||||
|     "value": 56.0, | ||||
|     "ty": { | ||||
|       "type": "Default", | ||||
|       "len": { | ||||
|         "type": "Mm" | ||||
|       }, | ||||
|       "angle": { | ||||
|         "type": "Degrees" | ||||
|       } | ||||
|     }, | ||||
|     "__meta": [ | ||||
|       { | ||||
|         "sourceRange": [ | ||||
|           440, | ||||
|           442, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     ] | ||||
|   }, | ||||
|   "connector": { | ||||
|     "type": "Function", | ||||
|     "__meta": [ | ||||
|       { | ||||
|         "sourceRange": [ | ||||
|           1877, | ||||
|           2040, | ||||
|           3 | ||||
|         ] | ||||
|       } | ||||
|     ] | ||||
|   }, | ||||
|   "divider": { | ||||
|     "type": "Function", | ||||
|     "__meta": [ | ||||
|       { | ||||
|         "sourceRange": [ | ||||
|           1319, | ||||
|           1594, | ||||
|           3 | ||||
|         ] | ||||
|       } | ||||
|     ] | ||||
|   }, | ||||
|   "dividerThickness": { | ||||
|     "type": "Number", | ||||
|     "value": 4.0, | ||||
|     "ty": { | ||||
|       "type": "Default", | ||||
|       "len": { | ||||
|         "type": "Mm" | ||||
|       }, | ||||
|       "angle": { | ||||
|         "type": "Degrees" | ||||
|       } | ||||
|     }, | ||||
|     "__meta": [ | ||||
|       { | ||||
|         "sourceRange": [ | ||||
|           290, | ||||
|           291, | ||||
|           3 | ||||
|         ] | ||||
|       } | ||||
|     ] | ||||
|   }, | ||||
|   "seatSlats": { | ||||
|     "type": "Function", | ||||
|     "__meta": [ | ||||
|       { | ||||
|         "sourceRange": [ | ||||
|           2462, | ||||
|           2548, | ||||
|           3 | ||||
|         ] | ||||
|       } | ||||
|     ] | ||||
|   } | ||||
| } | ||||
							
								
								
									
										
											BIN
										
									
								
								rust/kcl-lib/tests/kcl_samples/3d-boaty/rendered_model.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 80 KiB | 
							
								
								
									
										4865
									
								
								rust/kcl-lib/tests/kcl_samples/80-20-rail/artifact_commands.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @ -0,0 +1,6 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| description: Artifact graph flowchart 80-20-rail.kcl | ||||
| extension: md | ||||
| snapshot_kind: binary | ||||
| --- | ||||
| @ -0,0 +1,794 @@ | ||||
| ```mermaid | ||||
| flowchart LR | ||||
|   subgraph path2 [Path] | ||||
|     2["Path<br>[326, 423, 0]"] | ||||
|     3["Segment<br>[431, 536, 0]"] | ||||
|     4["Segment<br>[544, 653, 0]"] | ||||
|     5["Segment<br>[661, 687, 0]"] | ||||
|     6["Segment<br>[695, 804, 0]"] | ||||
|     7["Segment<br>[812, 847, 0]"] | ||||
|     8["Segment<br>[855, 891, 0]"] | ||||
|     9["Segment<br>[899, 936, 0]"] | ||||
|     10["Segment<br>[944, 1061, 0]"] | ||||
|     11["Segment<br>[1069, 1105, 0]"] | ||||
|     12["Segment<br>[1113, 1221, 0]"] | ||||
|     13["Segment<br>[1229, 1266, 0]"] | ||||
|     14["Segment<br>[1274, 1311, 0]"] | ||||
|     15["Segment<br>[1319, 1346, 0]"] | ||||
|     16["Segment<br>[1354, 1463, 0]"] | ||||
|     17["Segment<br>[1471, 1497, 0]"] | ||||
|     18["Segment<br>[1505, 1614, 0]"] | ||||
|     19["Segment<br>[1622, 1725, 0]"] | ||||
|     20["Segment<br>[1766, 1876, 0]"] | ||||
|     21["Segment<br>[1884, 1910, 0]"] | ||||
|     22["Segment<br>[1918, 2028, 0]"] | ||||
|     23["Segment<br>[2036, 2071, 0]"] | ||||
|     24["Segment<br>[2079, 2117, 0]"] | ||||
|     25["Segment<br>[2125, 2163, 0]"] | ||||
|     26["Segment<br>[2181, 2310, 0]"] | ||||
|     27["Segment<br>[2328, 2365, 0]"] | ||||
|     28["Segment<br>[2379, 2493, 0]"] | ||||
|     29["Segment<br>[2507, 2545, 0]"] | ||||
|     30["Segment<br>[2559, 2596, 0]"] | ||||
|     31["Segment<br>[2604, 2631, 0]"] | ||||
|     32["Segment<br>[2639, 2749, 0]"] | ||||
|     33["Segment<br>[2757, 2783, 0]"] | ||||
|     34["Segment<br>[2791, 2901, 0]"] | ||||
|     35["Segment<br>[2942, 3044, 0]"] | ||||
|     36["Segment<br>[3052, 3162, 0]"] | ||||
|     37["Segment<br>[3170, 3197, 0]"] | ||||
|     38["Segment<br>[3205, 3315, 0]"] | ||||
|     39["Segment<br>[3323, 3360, 0]"] | ||||
|     40["Segment<br>[3368, 3406, 0]"] | ||||
|     41["Segment<br>[3414, 3451, 0]"] | ||||
|     42["Segment<br>[3459, 3587, 0]"] | ||||
|     43["Segment<br>[3595, 3633, 0]"] | ||||
|     44["Segment<br>[3641, 3756, 0]"] | ||||
|     45["Segment<br>[3764, 3801, 0]"] | ||||
|     46["Segment<br>[3809, 3846, 0]"] | ||||
|     47["Segment<br>[3854, 3882, 0]"] | ||||
|     48["Segment<br>[3890, 4000, 0]"] | ||||
|     49["Segment<br>[4008, 4035, 0]"] | ||||
|     50["Segment<br>[4043, 4153, 0]"] | ||||
|     51["Segment<br>[4161, 4265, 0]"] | ||||
|     52["Segment<br>[4306, 4416, 0]"] | ||||
|     53["Segment<br>[4424, 4451, 0]"] | ||||
|     54["Segment<br>[4459, 4569, 0]"] | ||||
|     55["Segment<br>[4577, 4614, 0]"] | ||||
|     56["Segment<br>[4622, 4659, 0]"] | ||||
|     57["Segment<br>[4667, 4704, 0]"] | ||||
|     58["Segment<br>[4712, 4831, 0]"] | ||||
|     59["Segment<br>[4839, 4877, 0]"] | ||||
|     60["Segment<br>[4885, 4993, 0]"] | ||||
|     61["Segment<br>[5001, 5038, 0]"] | ||||
|     62["Segment<br>[5046, 5084, 0]"] | ||||
|     63["Segment<br>[5092, 5120, 0]"] | ||||
|     64["Segment<br>[5128, 5238, 0]"] | ||||
|     65["Segment<br>[5246, 5273, 0]"] | ||||
|     66["Segment<br>[5281, 5391, 0]"] | ||||
|     67["Segment<br>[5399, 5406, 0]"] | ||||
|     68[Solid2d] | ||||
|   end | ||||
|   subgraph path69 [Path] | ||||
|     69["Path<br>[5457, 5634, 0]"] | ||||
|     70["Segment<br>[5457, 5634, 0]"] | ||||
|     71[Solid2d] | ||||
|   end | ||||
|   1["Plane<br>[298, 318, 0]"] | ||||
|   72["Sweep Extrusion<br>[5646, 5674, 0]"] | ||||
|   73[Wall] | ||||
|   74[Wall] | ||||
|   75[Wall] | ||||
|   76[Wall] | ||||
|   77[Wall] | ||||
|   78[Wall] | ||||
|   79[Wall] | ||||
|   80[Wall] | ||||
|   81[Wall] | ||||
|   82[Wall] | ||||
|   83[Wall] | ||||
|   84[Wall] | ||||
|   85[Wall] | ||||
|   86[Wall] | ||||
|   87[Wall] | ||||
|   88[Wall] | ||||
|   89[Wall] | ||||
|   90[Wall] | ||||
|   91[Wall] | ||||
|   92[Wall] | ||||
|   93[Wall] | ||||
|   94[Wall] | ||||
|   95[Wall] | ||||
|   96[Wall] | ||||
|   97[Wall] | ||||
|   98[Wall] | ||||
|   99[Wall] | ||||
|   100[Wall] | ||||
|   101[Wall] | ||||
|   102[Wall] | ||||
|   103[Wall] | ||||
|   104[Wall] | ||||
|   105[Wall] | ||||
|   106[Wall] | ||||
|   107[Wall] | ||||
|   108[Wall] | ||||
|   109[Wall] | ||||
|   110[Wall] | ||||
|   111[Wall] | ||||
|   112[Wall] | ||||
|   113[Wall] | ||||
|   114[Wall] | ||||
|   115[Wall] | ||||
|   116[Wall] | ||||
|   117[Wall] | ||||
|   118[Wall] | ||||
|   119[Wall] | ||||
|   120[Wall] | ||||
|   121[Wall] | ||||
|   122[Wall] | ||||
|   123[Wall] | ||||
|   124[Wall] | ||||
|   125[Wall] | ||||
|   126[Wall] | ||||
|   127[Wall] | ||||
|   128[Wall] | ||||
|   129[Wall] | ||||
|   130[Wall] | ||||
|   131[Wall] | ||||
|   132[Wall] | ||||
|   133[Wall] | ||||
|   134[Wall] | ||||
|   135[Wall] | ||||
|   136[Wall] | ||||
|   137["Cap Start"] | ||||
|   138["Cap End"] | ||||
|   139["SweepEdge Opposite"] | ||||
|   140["SweepEdge Adjacent"] | ||||
|   141["SweepEdge Opposite"] | ||||
|   142["SweepEdge Adjacent"] | ||||
|   143["SweepEdge Opposite"] | ||||
|   144["SweepEdge Adjacent"] | ||||
|   145["SweepEdge Opposite"] | ||||
|   146["SweepEdge Adjacent"] | ||||
|   147["SweepEdge Opposite"] | ||||
|   148["SweepEdge Adjacent"] | ||||
|   149["SweepEdge Opposite"] | ||||
|   150["SweepEdge Adjacent"] | ||||
|   151["SweepEdge Opposite"] | ||||
|   152["SweepEdge Adjacent"] | ||||
|   153["SweepEdge Opposite"] | ||||
|   154["SweepEdge Adjacent"] | ||||
|   155["SweepEdge Opposite"] | ||||
|   156["SweepEdge Adjacent"] | ||||
|   157["SweepEdge Opposite"] | ||||
|   158["SweepEdge Adjacent"] | ||||
|   159["SweepEdge Opposite"] | ||||
|   160["SweepEdge Adjacent"] | ||||
|   161["SweepEdge Opposite"] | ||||
|   162["SweepEdge Adjacent"] | ||||
|   163["SweepEdge Opposite"] | ||||
|   164["SweepEdge Adjacent"] | ||||
|   165["SweepEdge Opposite"] | ||||
|   166["SweepEdge Adjacent"] | ||||
|   167["SweepEdge Opposite"] | ||||
|   168["SweepEdge Adjacent"] | ||||
|   169["SweepEdge Opposite"] | ||||
|   170["SweepEdge Adjacent"] | ||||
|   171["SweepEdge Opposite"] | ||||
|   172["SweepEdge Adjacent"] | ||||
|   173["SweepEdge Opposite"] | ||||
|   174["SweepEdge Adjacent"] | ||||
|   175["SweepEdge Opposite"] | ||||
|   176["SweepEdge Adjacent"] | ||||
|   177["SweepEdge Opposite"] | ||||
|   178["SweepEdge Adjacent"] | ||||
|   179["SweepEdge Opposite"] | ||||
|   180["SweepEdge Adjacent"] | ||||
|   181["SweepEdge Opposite"] | ||||
|   182["SweepEdge Adjacent"] | ||||
|   183["SweepEdge Opposite"] | ||||
|   184["SweepEdge Adjacent"] | ||||
|   185["SweepEdge Opposite"] | ||||
|   186["SweepEdge Adjacent"] | ||||
|   187["SweepEdge Opposite"] | ||||
|   188["SweepEdge Adjacent"] | ||||
|   189["SweepEdge Opposite"] | ||||
|   190["SweepEdge Adjacent"] | ||||
|   191["SweepEdge Opposite"] | ||||
|   192["SweepEdge Adjacent"] | ||||
|   193["SweepEdge Opposite"] | ||||
|   194["SweepEdge Adjacent"] | ||||
|   195["SweepEdge Opposite"] | ||||
|   196["SweepEdge Adjacent"] | ||||
|   197["SweepEdge Opposite"] | ||||
|   198["SweepEdge Adjacent"] | ||||
|   199["SweepEdge Opposite"] | ||||
|   200["SweepEdge Adjacent"] | ||||
|   201["SweepEdge Opposite"] | ||||
|   202["SweepEdge Adjacent"] | ||||
|   203["SweepEdge Opposite"] | ||||
|   204["SweepEdge Adjacent"] | ||||
|   205["SweepEdge Opposite"] | ||||
|   206["SweepEdge Adjacent"] | ||||
|   207["SweepEdge Opposite"] | ||||
|   208["SweepEdge Adjacent"] | ||||
|   209["SweepEdge Opposite"] | ||||
|   210["SweepEdge Adjacent"] | ||||
|   211["SweepEdge Opposite"] | ||||
|   212["SweepEdge Adjacent"] | ||||
|   213["SweepEdge Opposite"] | ||||
|   214["SweepEdge Adjacent"] | ||||
|   215["SweepEdge Opposite"] | ||||
|   216["SweepEdge Adjacent"] | ||||
|   217["SweepEdge Opposite"] | ||||
|   218["SweepEdge Adjacent"] | ||||
|   219["SweepEdge Opposite"] | ||||
|   220["SweepEdge Adjacent"] | ||||
|   221["SweepEdge Opposite"] | ||||
|   222["SweepEdge Adjacent"] | ||||
|   223["SweepEdge Opposite"] | ||||
|   224["SweepEdge Adjacent"] | ||||
|   225["SweepEdge Opposite"] | ||||
|   226["SweepEdge Adjacent"] | ||||
|   227["SweepEdge Opposite"] | ||||
|   228["SweepEdge Adjacent"] | ||||
|   229["SweepEdge Opposite"] | ||||
|   230["SweepEdge Adjacent"] | ||||
|   231["SweepEdge Opposite"] | ||||
|   232["SweepEdge Adjacent"] | ||||
|   233["SweepEdge Opposite"] | ||||
|   234["SweepEdge Adjacent"] | ||||
|   235["SweepEdge Opposite"] | ||||
|   236["SweepEdge Adjacent"] | ||||
|   237["SweepEdge Opposite"] | ||||
|   238["SweepEdge Adjacent"] | ||||
|   239["SweepEdge Opposite"] | ||||
|   240["SweepEdge Adjacent"] | ||||
|   241["SweepEdge Opposite"] | ||||
|   242["SweepEdge Adjacent"] | ||||
|   243["SweepEdge Opposite"] | ||||
|   244["SweepEdge Adjacent"] | ||||
|   245["SweepEdge Opposite"] | ||||
|   246["SweepEdge Adjacent"] | ||||
|   247["SweepEdge Opposite"] | ||||
|   248["SweepEdge Adjacent"] | ||||
|   249["SweepEdge Opposite"] | ||||
|   250["SweepEdge Adjacent"] | ||||
|   251["SweepEdge Opposite"] | ||||
|   252["SweepEdge Adjacent"] | ||||
|   253["SweepEdge Opposite"] | ||||
|   254["SweepEdge Adjacent"] | ||||
|   255["SweepEdge Opposite"] | ||||
|   256["SweepEdge Adjacent"] | ||||
|   257["SweepEdge Opposite"] | ||||
|   258["SweepEdge Adjacent"] | ||||
|   259["SweepEdge Opposite"] | ||||
|   260["SweepEdge Adjacent"] | ||||
|   261["SweepEdge Opposite"] | ||||
|   262["SweepEdge Adjacent"] | ||||
|   263["SweepEdge Opposite"] | ||||
|   264["SweepEdge Adjacent"] | ||||
|   265["SweepEdge Opposite"] | ||||
|   266["SweepEdge Adjacent"] | ||||
|   267["EdgeCut Fillet<br>[5682, 6386, 0]"] | ||||
|   268["EdgeCut Fillet<br>[5682, 6386, 0]"] | ||||
|   269["EdgeCut Fillet<br>[5682, 6386, 0]"] | ||||
|   270["EdgeCut Fillet<br>[5682, 6386, 0]"] | ||||
|   271["EdgeCut Fillet<br>[5682, 6386, 0]"] | ||||
|   272["EdgeCut Fillet<br>[5682, 6386, 0]"] | ||||
|   273["EdgeCut Fillet<br>[5682, 6386, 0]"] | ||||
|   274["EdgeCut Fillet<br>[5682, 6386, 0]"] | ||||
|   275["EdgeCut Fillet<br>[5682, 6386, 0]"] | ||||
|   276["EdgeCut Fillet<br>[5682, 6386, 0]"] | ||||
|   277["EdgeCut Fillet<br>[5682, 6386, 0]"] | ||||
|   278["EdgeCut Fillet<br>[5682, 6386, 0]"] | ||||
|   279["EdgeCut Fillet<br>[5682, 6386, 0]"] | ||||
|   280["EdgeCut Fillet<br>[5682, 6386, 0]"] | ||||
|   281["EdgeCut Fillet<br>[5682, 6386, 0]"] | ||||
|   282["EdgeCut Fillet<br>[5682, 6386, 0]"] | ||||
|   283["EdgeCut Fillet<br>[6394, 7097, 0]"] | ||||
|   284["EdgeCut Fillet<br>[6394, 7097, 0]"] | ||||
|   285["EdgeCut Fillet<br>[6394, 7097, 0]"] | ||||
|   286["EdgeCut Fillet<br>[6394, 7097, 0]"] | ||||
|   287["EdgeCut Fillet<br>[6394, 7097, 0]"] | ||||
|   288["EdgeCut Fillet<br>[6394, 7097, 0]"] | ||||
|   289["EdgeCut Fillet<br>[6394, 7097, 0]"] | ||||
|   290["EdgeCut Fillet<br>[6394, 7097, 0]"] | ||||
|   291["EdgeCut Fillet<br>[6394, 7097, 0]"] | ||||
|   292["EdgeCut Fillet<br>[6394, 7097, 0]"] | ||||
|   293["EdgeCut Fillet<br>[6394, 7097, 0]"] | ||||
|   294["EdgeCut Fillet<br>[6394, 7097, 0]"] | ||||
|   295["EdgeCut Fillet<br>[6394, 7097, 0]"] | ||||
|   296["EdgeCut Fillet<br>[6394, 7097, 0]"] | ||||
|   297["EdgeCut Fillet<br>[6394, 7097, 0]"] | ||||
|   298["EdgeCut Fillet<br>[6394, 7097, 0]"] | ||||
|   1 --- 2 | ||||
|   1 --- 69 | ||||
|   2 --- 3 | ||||
|   2 --- 4 | ||||
|   2 --- 5 | ||||
|   2 --- 6 | ||||
|   2 --- 7 | ||||
|   2 --- 8 | ||||
|   2 --- 9 | ||||
|   2 --- 10 | ||||
|   2 --- 11 | ||||
|   2 --- 12 | ||||
|   2 --- 13 | ||||
|   2 --- 14 | ||||
|   2 --- 15 | ||||
|   2 --- 16 | ||||
|   2 --- 17 | ||||
|   2 --- 18 | ||||
|   2 --- 19 | ||||
|   2 --- 20 | ||||
|   2 --- 21 | ||||
|   2 --- 22 | ||||
|   2 --- 23 | ||||
|   2 --- 24 | ||||
|   2 --- 25 | ||||
|   2 --- 26 | ||||
|   2 --- 27 | ||||
|   2 --- 28 | ||||
|   2 --- 29 | ||||
|   2 --- 30 | ||||
|   2 --- 31 | ||||
|   2 --- 32 | ||||
|   2 --- 33 | ||||
|   2 --- 34 | ||||
|   2 --- 35 | ||||
|   2 --- 36 | ||||
|   2 --- 37 | ||||
|   2 --- 38 | ||||
|   2 --- 39 | ||||
|   2 --- 40 | ||||
|   2 --- 41 | ||||
|   2 --- 42 | ||||
|   2 --- 43 | ||||
|   2 --- 44 | ||||
|   2 --- 45 | ||||
|   2 --- 46 | ||||
|   2 --- 47 | ||||
|   2 --- 48 | ||||
|   2 --- 49 | ||||
|   2 --- 50 | ||||
|   2 --- 51 | ||||
|   2 --- 52 | ||||
|   2 --- 53 | ||||
|   2 --- 54 | ||||
|   2 --- 55 | ||||
|   2 --- 56 | ||||
|   2 --- 57 | ||||
|   2 --- 58 | ||||
|   2 --- 59 | ||||
|   2 --- 60 | ||||
|   2 --- 61 | ||||
|   2 --- 62 | ||||
|   2 --- 63 | ||||
|   2 --- 64 | ||||
|   2 --- 65 | ||||
|   2 --- 66 | ||||
|   2 --- 67 | ||||
|   2 ---- 72 | ||||
|   2 --- 68 | ||||
|   3 --- 73 | ||||
|   3 --- 139 | ||||
|   3 --- 140 | ||||
|   4 --- 74 | ||||
|   4 --- 141 | ||||
|   4 --- 142 | ||||
|   5 --- 75 | ||||
|   5 --- 143 | ||||
|   5 --- 144 | ||||
|   6 --- 76 | ||||
|   6 --- 145 | ||||
|   6 --- 146 | ||||
|   7 --- 77 | ||||
|   7 --- 147 | ||||
|   7 --- 148 | ||||
|   8 --- 78 | ||||
|   8 --- 149 | ||||
|   8 --- 150 | ||||
|   9 --- 79 | ||||
|   9 --- 151 | ||||
|   9 --- 152 | ||||
|   10 --- 80 | ||||
|   10 --- 153 | ||||
|   10 --- 154 | ||||
|   11 --- 81 | ||||
|   11 --- 155 | ||||
|   11 --- 156 | ||||
|   12 --- 82 | ||||
|   12 --- 157 | ||||
|   12 --- 158 | ||||
|   13 --- 83 | ||||
|   13 --- 159 | ||||
|   13 --- 160 | ||||
|   14 --- 84 | ||||
|   14 --- 161 | ||||
|   14 --- 162 | ||||
|   15 --- 85 | ||||
|   15 --- 163 | ||||
|   15 --- 164 | ||||
|   16 --- 86 | ||||
|   16 --- 165 | ||||
|   16 --- 166 | ||||
|   17 --- 87 | ||||
|   17 --- 167 | ||||
|   17 --- 168 | ||||
|   18 --- 88 | ||||
|   18 --- 169 | ||||
|   18 --- 170 | ||||
|   19 --- 89 | ||||
|   19 --- 171 | ||||
|   19 --- 172 | ||||
|   20 --- 90 | ||||
|   20 --- 173 | ||||
|   20 --- 174 | ||||
|   21 --- 91 | ||||
|   21 --- 175 | ||||
|   21 --- 176 | ||||
|   22 --- 92 | ||||
|   22 --- 177 | ||||
|   22 --- 178 | ||||
|   23 --- 93 | ||||
|   23 --- 179 | ||||
|   23 --- 180 | ||||
|   24 --- 94 | ||||
|   24 --- 181 | ||||
|   24 --- 182 | ||||
|   25 --- 95 | ||||
|   25 --- 183 | ||||
|   25 --- 184 | ||||
|   26 --- 96 | ||||
|   26 --- 185 | ||||
|   26 --- 186 | ||||
|   27 --- 97 | ||||
|   27 --- 187 | ||||
|   27 --- 188 | ||||
|   28 --- 98 | ||||
|   28 --- 189 | ||||
|   28 --- 190 | ||||
|   29 --- 99 | ||||
|   29 --- 191 | ||||
|   29 --- 192 | ||||
|   30 --- 100 | ||||
|   30 --- 193 | ||||
|   30 --- 194 | ||||
|   31 --- 101 | ||||
|   31 --- 195 | ||||
|   31 --- 196 | ||||
|   32 --- 102 | ||||
|   32 --- 197 | ||||
|   32 --- 198 | ||||
|   33 --- 103 | ||||
|   33 --- 199 | ||||
|   33 --- 200 | ||||
|   34 --- 104 | ||||
|   34 --- 201 | ||||
|   34 --- 202 | ||||
|   35 --- 105 | ||||
|   35 --- 203 | ||||
|   35 --- 204 | ||||
|   36 --- 106 | ||||
|   36 --- 205 | ||||
|   36 --- 206 | ||||
|   37 --- 107 | ||||
|   37 --- 207 | ||||
|   37 --- 208 | ||||
|   38 --- 108 | ||||
|   38 --- 209 | ||||
|   38 --- 210 | ||||
|   39 --- 109 | ||||
|   39 --- 211 | ||||
|   39 --- 212 | ||||
|   40 --- 110 | ||||
|   40 --- 213 | ||||
|   40 --- 214 | ||||
|   41 --- 111 | ||||
|   41 --- 215 | ||||
|   41 --- 216 | ||||
|   42 --- 112 | ||||
|   42 --- 217 | ||||
|   42 --- 218 | ||||
|   43 --- 113 | ||||
|   43 --- 219 | ||||
|   43 --- 220 | ||||
|   44 --- 114 | ||||
|   44 --- 221 | ||||
|   44 --- 222 | ||||
|   45 --- 115 | ||||
|   45 --- 223 | ||||
|   45 --- 224 | ||||
|   46 --- 116 | ||||
|   46 --- 225 | ||||
|   46 --- 226 | ||||
|   47 --- 117 | ||||
|   47 --- 227 | ||||
|   47 --- 228 | ||||
|   48 --- 118 | ||||
|   48 --- 229 | ||||
|   48 --- 230 | ||||
|   49 --- 119 | ||||
|   49 --- 231 | ||||
|   49 --- 232 | ||||
|   50 --- 120 | ||||
|   50 --- 233 | ||||
|   50 --- 234 | ||||
|   51 --- 121 | ||||
|   51 --- 235 | ||||
|   51 --- 236 | ||||
|   52 --- 122 | ||||
|   52 --- 237 | ||||
|   52 --- 238 | ||||
|   53 --- 123 | ||||
|   53 --- 239 | ||||
|   53 --- 240 | ||||
|   54 --- 124 | ||||
|   54 --- 241 | ||||
|   54 --- 242 | ||||
|   55 --- 125 | ||||
|   55 --- 243 | ||||
|   55 --- 244 | ||||
|   56 --- 126 | ||||
|   56 --- 245 | ||||
|   56 --- 246 | ||||
|   57 --- 127 | ||||
|   57 --- 247 | ||||
|   57 --- 248 | ||||
|   58 --- 128 | ||||
|   58 --- 249 | ||||
|   58 --- 250 | ||||
|   59 --- 129 | ||||
|   59 --- 251 | ||||
|   59 --- 252 | ||||
|   60 --- 130 | ||||
|   60 --- 253 | ||||
|   60 --- 254 | ||||
|   61 --- 131 | ||||
|   61 --- 255 | ||||
|   61 --- 256 | ||||
|   62 --- 132 | ||||
|   62 --- 257 | ||||
|   62 --- 258 | ||||
|   63 --- 133 | ||||
|   63 --- 259 | ||||
|   63 --- 260 | ||||
|   64 --- 134 | ||||
|   64 --- 261 | ||||
|   64 --- 262 | ||||
|   65 --- 135 | ||||
|   65 --- 263 | ||||
|   65 --- 264 | ||||
|   66 --- 136 | ||||
|   66 --- 265 | ||||
|   66 --- 266 | ||||
|   69 --- 70 | ||||
|   69 --- 71 | ||||
|   72 --- 73 | ||||
|   72 --- 74 | ||||
|   72 --- 75 | ||||
|   72 --- 76 | ||||
|   72 --- 77 | ||||
|   72 --- 78 | ||||
|   72 --- 79 | ||||
|   72 --- 80 | ||||
|   72 --- 81 | ||||
|   72 --- 82 | ||||
|   72 --- 83 | ||||
|   72 --- 84 | ||||
|   72 --- 85 | ||||
|   72 --- 86 | ||||
|   72 --- 87 | ||||
|   72 --- 88 | ||||
|   72 --- 89 | ||||
|   72 --- 90 | ||||
|   72 --- 91 | ||||
|   72 --- 92 | ||||
|   72 --- 93 | ||||
|   72 --- 94 | ||||
|   72 --- 95 | ||||
|   72 --- 96 | ||||
|   72 --- 97 | ||||
|   72 --- 98 | ||||
|   72 --- 99 | ||||
|   72 --- 100 | ||||
|   72 --- 101 | ||||
|   72 --- 102 | ||||
|   72 --- 103 | ||||
|   72 --- 104 | ||||
|   72 --- 105 | ||||
|   72 --- 106 | ||||
|   72 --- 107 | ||||
|   72 --- 108 | ||||
|   72 --- 109 | ||||
|   72 --- 110 | ||||
|   72 --- 111 | ||||
|   72 --- 112 | ||||
|   72 --- 113 | ||||
|   72 --- 114 | ||||
|   72 --- 115 | ||||
|   72 --- 116 | ||||
|   72 --- 117 | ||||
|   72 --- 118 | ||||
|   72 --- 119 | ||||
|   72 --- 120 | ||||
|   72 --- 121 | ||||
|   72 --- 122 | ||||
|   72 --- 123 | ||||
|   72 --- 124 | ||||
|   72 --- 125 | ||||
|   72 --- 126 | ||||
|   72 --- 127 | ||||
|   72 --- 128 | ||||
|   72 --- 129 | ||||
|   72 --- 130 | ||||
|   72 --- 131 | ||||
|   72 --- 132 | ||||
|   72 --- 133 | ||||
|   72 --- 134 | ||||
|   72 --- 135 | ||||
|   72 --- 136 | ||||
|   72 --- 137 | ||||
|   72 --- 138 | ||||
|   72 --- 139 | ||||
|   72 --- 140 | ||||
|   72 --- 141 | ||||
|   72 --- 142 | ||||
|   72 --- 143 | ||||
|   72 --- 144 | ||||
|   72 --- 145 | ||||
|   72 --- 146 | ||||
|   72 --- 147 | ||||
|   72 --- 148 | ||||
|   72 --- 149 | ||||
|   72 --- 150 | ||||
|   72 --- 151 | ||||
|   72 --- 152 | ||||
|   72 --- 153 | ||||
|   72 --- 154 | ||||
|   72 --- 155 | ||||
|   72 --- 156 | ||||
|   72 --- 157 | ||||
|   72 --- 158 | ||||
|   72 --- 159 | ||||
|   72 --- 160 | ||||
|   72 --- 161 | ||||
|   72 --- 162 | ||||
|   72 --- 163 | ||||
|   72 --- 164 | ||||
|   72 --- 165 | ||||
|   72 --- 166 | ||||
|   72 --- 167 | ||||
|   72 --- 168 | ||||
|   72 --- 169 | ||||
|   72 --- 170 | ||||
|   72 --- 171 | ||||
|   72 --- 172 | ||||
|   72 --- 173 | ||||
|   72 --- 174 | ||||
|   72 --- 175 | ||||
|   72 --- 176 | ||||
|   72 --- 177 | ||||
|   72 --- 178 | ||||
|   72 --- 179 | ||||
|   72 --- 180 | ||||
|   72 --- 181 | ||||
|   72 --- 182 | ||||
|   72 --- 183 | ||||
|   72 --- 184 | ||||
|   72 --- 185 | ||||
|   72 --- 186 | ||||
|   72 --- 187 | ||||
|   72 --- 188 | ||||
|   72 --- 189 | ||||
|   72 --- 190 | ||||
|   72 --- 191 | ||||
|   72 --- 192 | ||||
|   72 --- 193 | ||||
|   72 --- 194 | ||||
|   72 --- 195 | ||||
|   72 --- 196 | ||||
|   72 --- 197 | ||||
|   72 --- 198 | ||||
|   72 --- 199 | ||||
|   72 --- 200 | ||||
|   72 --- 201 | ||||
|   72 --- 202 | ||||
|   72 --- 203 | ||||
|   72 --- 204 | ||||
|   72 --- 205 | ||||
|   72 --- 206 | ||||
|   72 --- 207 | ||||
|   72 --- 208 | ||||
|   72 --- 209 | ||||
|   72 --- 210 | ||||
|   72 --- 211 | ||||
|   72 --- 212 | ||||
|   72 --- 213 | ||||
|   72 --- 214 | ||||
|   72 --- 215 | ||||
|   72 --- 216 | ||||
|   72 --- 217 | ||||
|   72 --- 218 | ||||
|   72 --- 219 | ||||
|   72 --- 220 | ||||
|   72 --- 221 | ||||
|   72 --- 222 | ||||
|   72 --- 223 | ||||
|   72 --- 224 | ||||
|   72 --- 225 | ||||
|   72 --- 226 | ||||
|   72 --- 227 | ||||
|   72 --- 228 | ||||
|   72 --- 229 | ||||
|   72 --- 230 | ||||
|   72 --- 231 | ||||
|   72 --- 232 | ||||
|   72 --- 233 | ||||
|   72 --- 234 | ||||
|   72 --- 235 | ||||
|   72 --- 236 | ||||
|   72 --- 237 | ||||
|   72 --- 238 | ||||
|   72 --- 239 | ||||
|   72 --- 240 | ||||
|   72 --- 241 | ||||
|   72 --- 242 | ||||
|   72 --- 243 | ||||
|   72 --- 244 | ||||
|   72 --- 245 | ||||
|   72 --- 246 | ||||
|   72 --- 247 | ||||
|   72 --- 248 | ||||
|   72 --- 249 | ||||
|   72 --- 250 | ||||
|   72 --- 251 | ||||
|   72 --- 252 | ||||
|   72 --- 253 | ||||
|   72 --- 254 | ||||
|   72 --- 255 | ||||
|   72 --- 256 | ||||
|   72 --- 257 | ||||
|   72 --- 258 | ||||
|   72 --- 259 | ||||
|   72 --- 260 | ||||
|   72 --- 261 | ||||
|   72 --- 262 | ||||
|   72 --- 263 | ||||
|   72 --- 264 | ||||
|   72 --- 265 | ||||
|   72 --- 266 | ||||
|   152 <--x 267 | ||||
|   154 <--x 268 | ||||
|   156 <--x 269 | ||||
|   158 <--x 270 | ||||
|   184 <--x 271 | ||||
|   186 <--x 272 | ||||
|   188 <--x 273 | ||||
|   190 <--x 274 | ||||
|   216 <--x 275 | ||||
|   218 <--x 276 | ||||
|   220 <--x 277 | ||||
|   222 <--x 278 | ||||
|   248 <--x 279 | ||||
|   250 <--x 280 | ||||
|   252 <--x 281 | ||||
|   254 <--x 282 | ||||
|   148 <--x 283 | ||||
|   150 <--x 284 | ||||
|   160 <--x 285 | ||||
|   162 <--x 286 | ||||
|   180 <--x 287 | ||||
|   182 <--x 288 | ||||
|   192 <--x 289 | ||||
|   194 <--x 290 | ||||
|   212 <--x 291 | ||||
|   214 <--x 292 | ||||
|   224 <--x 293 | ||||
|   226 <--x 294 | ||||
|   244 <--x 295 | ||||
|   246 <--x 296 | ||||
|   256 <--x 297 | ||||
|   258 <--x 298 | ||||
| ``` | ||||
							
								
								
									
										7235
									
								
								rust/kcl-lib/tests/kcl_samples/80-20-rail/ast.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										370
									
								
								rust/kcl-lib/tests/kcl_samples/80-20-rail/ops.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @ -0,0 +1,370 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| description: Operations executed 80-20-rail.kcl | ||||
| --- | ||||
| [ | ||||
|   { | ||||
|     "type": "UserDefinedFunctionCall", | ||||
|     "name": "rail8020", | ||||
|     "functionSourceRange": [ | ||||
|       214, | ||||
|       7118, | ||||
|       0 | ||||
|     ], | ||||
|     "unlabeledArg": null, | ||||
|     "labeledArgs": {}, | ||||
|     "sourceRange": [ | ||||
|       7161, | ||||
|       7186, | ||||
|       0 | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "data": { | ||||
|         "value": { | ||||
|           "type": "String", | ||||
|           "value": "-XZ" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           312, | ||||
|           317, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       298, | ||||
|       318, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "holeSketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           5457, | ||||
|           5634, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "sketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           5636, | ||||
|           5637, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "hole", | ||||
|     "sourceRange": [ | ||||
|       5452, | ||||
|       5638, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "length": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": 48.0, | ||||
|           "ty": { | ||||
|             "type": "Default", | ||||
|             "len": { | ||||
|               "type": "Inches" | ||||
|             }, | ||||
|             "angle": { | ||||
|               "type": "Degrees" | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           5663, | ||||
|           5673, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       5646, | ||||
|       5674, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "Sketch", | ||||
|         "value": { | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         0, | ||||
|         0, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "radius": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": 0.06, | ||||
|           "ty": { | ||||
|             "type": "Default", | ||||
|             "len": { | ||||
|               "type": "Inches" | ||||
|             }, | ||||
|             "angle": { | ||||
|               "type": "Degrees" | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           5708, | ||||
|           5712, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "tags": { | ||||
|         "value": { | ||||
|           "type": "Array", | ||||
|           "value": [ | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           5730, | ||||
|           6377, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "fillet", | ||||
|     "sourceRange": [ | ||||
|       5682, | ||||
|       6386, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "Solid", | ||||
|         "value": { | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         0, | ||||
|         0, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "radius": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": 0.03, | ||||
|           "ty": { | ||||
|             "type": "Default", | ||||
|             "len": { | ||||
|               "type": "Inches" | ||||
|             }, | ||||
|             "angle": { | ||||
|               "type": "Degrees" | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           6420, | ||||
|           6424, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "tags": { | ||||
|         "value": { | ||||
|           "type": "Array", | ||||
|           "value": [ | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           6442, | ||||
|           7088, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "fillet", | ||||
|     "sourceRange": [ | ||||
|       6394, | ||||
|       7097, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "Solid", | ||||
|         "value": { | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         0, | ||||
|         0, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionReturn" | ||||
|   } | ||||
| ] | ||||
| @ -0,0 +1,18 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| description: Variables in memory after executing 80-20-rail.kcl | ||||
| --- | ||||
| { | ||||
|   "rail8020": { | ||||
|     "type": "Function", | ||||
|     "__meta": [ | ||||
|       { | ||||
|         "sourceRange": [ | ||||
|           214, | ||||
|           7118, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     ] | ||||
|   } | ||||
| } | ||||
							
								
								
									
										
											BIN
										
									
								
								rust/kcl-lib/tests/kcl_samples/80-20-rail/rendered_model.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 25 KiB | 
| @ -0,0 +1,6 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| description: Artifact graph flowchart a-parametric-bearing-pillow-block.kcl | ||||
| extension: md | ||||
| snapshot_kind: binary | ||||
| --- | ||||
| @ -0,0 +1,197 @@ | ||||
| ```mermaid | ||||
| flowchart LR | ||||
|   subgraph path2 [Path] | ||||
|     2["Path<br>[966, 1010, 0]"] | ||||
|     3["Segment<br>[1016, 1060, 0]"] | ||||
|     4["Segment<br>[1066, 1109, 0]"] | ||||
|     5["Segment<br>[1115, 1159, 0]"] | ||||
|     6["Segment<br>[1165, 1172, 0]"] | ||||
|     7[Solid2d] | ||||
|   end | ||||
|   subgraph path8 [Path] | ||||
|     8["Path<br>[1183, 1331, 0]"] | ||||
|     9["Segment<br>[1183, 1331, 0]"] | ||||
|     10[Solid2d] | ||||
|   end | ||||
|   subgraph path11 [Path] | ||||
|     11["Path<br>[1346, 1491, 0]"] | ||||
|     12["Segment<br>[1346, 1491, 0]"] | ||||
|     13[Solid2d] | ||||
|   end | ||||
|   subgraph path14 [Path] | ||||
|     14["Path<br>[1506, 1648, 0]"] | ||||
|     15["Segment<br>[1506, 1648, 0]"] | ||||
|     16[Solid2d] | ||||
|   end | ||||
|   subgraph path17 [Path] | ||||
|     17["Path<br>[1663, 1808, 0]"] | ||||
|     18["Segment<br>[1663, 1808, 0]"] | ||||
|     19[Solid2d] | ||||
|   end | ||||
|   subgraph path20 [Path] | ||||
|     20["Path<br>[1823, 1892, 0]"] | ||||
|     21["Segment<br>[1823, 1892, 0]"] | ||||
|     22[Solid2d] | ||||
|   end | ||||
|   subgraph path39 [Path] | ||||
|     39["Path<br>[2455, 2499, 0]"] | ||||
|     40["Segment<br>[2505, 2549, 0]"] | ||||
|     41["Segment<br>[2555, 2598, 0]"] | ||||
|     42["Segment<br>[2604, 2648, 0]"] | ||||
|     43["Segment<br>[2654, 2661, 0]"] | ||||
|     44[Solid2d] | ||||
|   end | ||||
|   subgraph path45 [Path] | ||||
|     45["Path<br>[2672, 2818, 0]"] | ||||
|     46["Segment<br>[2672, 2818, 0]"] | ||||
|     47[Solid2d] | ||||
|   end | ||||
|   subgraph path48 [Path] | ||||
|     48["Path<br>[2833, 2976, 0]"] | ||||
|     49["Segment<br>[2833, 2976, 0]"] | ||||
|     50[Solid2d] | ||||
|   end | ||||
|   subgraph path51 [Path] | ||||
|     51["Path<br>[2991, 3131, 0]"] | ||||
|     52["Segment<br>[2991, 3131, 0]"] | ||||
|     53[Solid2d] | ||||
|   end | ||||
|   subgraph path54 [Path] | ||||
|     54["Path<br>[3146, 3289, 0]"] | ||||
|     55["Segment<br>[3146, 3289, 0]"] | ||||
|     56[Solid2d] | ||||
|   end | ||||
|   subgraph path57 [Path] | ||||
|     57["Path<br>[3304, 3373, 0]"] | ||||
|     58["Segment<br>[3304, 3373, 0]"] | ||||
|     59[Solid2d] | ||||
|   end | ||||
|   1["Plane<br>[941, 960, 0]"] | ||||
|   23["Sweep Extrusion<br>[1902, 1936, 0]"] | ||||
|   24[Wall] | ||||
|   25[Wall] | ||||
|   26[Wall] | ||||
|   27[Wall] | ||||
|   28["Cap Start"] | ||||
|   29["Cap End"] | ||||
|   30["SweepEdge Opposite"] | ||||
|   31["SweepEdge Adjacent"] | ||||
|   32["SweepEdge Opposite"] | ||||
|   33["SweepEdge Adjacent"] | ||||
|   34["SweepEdge Opposite"] | ||||
|   35["SweepEdge Adjacent"] | ||||
|   36["SweepEdge Opposite"] | ||||
|   37["SweepEdge Adjacent"] | ||||
|   38["Plane<br>[2217, 2449, 0]"] | ||||
|   60["Sweep Extrusion<br>[3383, 3408, 0]"] | ||||
|   61[Wall] | ||||
|   62[Wall] | ||||
|   63[Wall] | ||||
|   64[Wall] | ||||
|   65["Cap Start"] | ||||
|   66["Cap End"] | ||||
|   67["SweepEdge Opposite"] | ||||
|   68["SweepEdge Adjacent"] | ||||
|   69["SweepEdge Opposite"] | ||||
|   70["SweepEdge Adjacent"] | ||||
|   71["SweepEdge Opposite"] | ||||
|   72["SweepEdge Adjacent"] | ||||
|   73["SweepEdge Opposite"] | ||||
|   74["SweepEdge Adjacent"] | ||||
|   1 --- 2 | ||||
|   1 --- 8 | ||||
|   1 --- 11 | ||||
|   1 --- 14 | ||||
|   1 --- 17 | ||||
|   1 --- 20 | ||||
|   2 --- 3 | ||||
|   2 --- 4 | ||||
|   2 --- 5 | ||||
|   2 --- 6 | ||||
|   2 ---- 23 | ||||
|   2 --- 7 | ||||
|   3 --- 24 | ||||
|   3 --- 30 | ||||
|   3 --- 31 | ||||
|   4 --- 25 | ||||
|   4 --- 32 | ||||
|   4 --- 33 | ||||
|   5 --- 26 | ||||
|   5 --- 34 | ||||
|   5 --- 35 | ||||
|   6 --- 27 | ||||
|   6 --- 36 | ||||
|   6 --- 37 | ||||
|   8 --- 9 | ||||
|   8 --- 10 | ||||
|   11 --- 12 | ||||
|   11 --- 13 | ||||
|   14 --- 15 | ||||
|   14 --- 16 | ||||
|   17 --- 18 | ||||
|   17 --- 19 | ||||
|   20 --- 21 | ||||
|   20 --- 22 | ||||
|   23 --- 24 | ||||
|   23 --- 25 | ||||
|   23 --- 26 | ||||
|   23 --- 27 | ||||
|   23 --- 28 | ||||
|   23 --- 29 | ||||
|   23 --- 30 | ||||
|   23 --- 31 | ||||
|   23 --- 32 | ||||
|   23 --- 33 | ||||
|   23 --- 34 | ||||
|   23 --- 35 | ||||
|   23 --- 36 | ||||
|   23 --- 37 | ||||
|   38 --- 39 | ||||
|   38 --- 45 | ||||
|   38 --- 48 | ||||
|   38 --- 51 | ||||
|   38 --- 54 | ||||
|   38 --- 57 | ||||
|   39 --- 40 | ||||
|   39 --- 41 | ||||
|   39 --- 42 | ||||
|   39 --- 43 | ||||
|   39 ---- 60 | ||||
|   39 --- 44 | ||||
|   40 --- 61 | ||||
|   40 --- 67 | ||||
|   40 --- 68 | ||||
|   41 --- 62 | ||||
|   41 --- 69 | ||||
|   41 --- 70 | ||||
|   42 --- 63 | ||||
|   42 --- 71 | ||||
|   42 --- 72 | ||||
|   43 --- 64 | ||||
|   43 --- 73 | ||||
|   43 --- 74 | ||||
|   45 --- 46 | ||||
|   45 --- 47 | ||||
|   48 --- 49 | ||||
|   48 --- 50 | ||||
|   51 --- 52 | ||||
|   51 --- 53 | ||||
|   54 --- 55 | ||||
|   54 --- 56 | ||||
|   57 --- 58 | ||||
|   57 --- 59 | ||||
|   60 --- 61 | ||||
|   60 --- 62 | ||||
|   60 --- 63 | ||||
|   60 --- 64 | ||||
|   60 --- 65 | ||||
|   60 --- 66 | ||||
|   60 --- 67 | ||||
|   60 --- 68 | ||||
|   60 --- 69 | ||||
|   60 --- 70 | ||||
|   60 --- 71 | ||||
|   60 --- 72 | ||||
|   60 --- 73 | ||||
|   60 --- 74 | ||||
| ``` | ||||
| @ -0,0 +1,702 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| description: Operations executed a-parametric-bearing-pillow-block.kcl | ||||
| --- | ||||
| [ | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "data": { | ||||
|         "value": { | ||||
|           "type": "String", | ||||
|           "value": "XY" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           955, | ||||
|           959, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       941, | ||||
|       960, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "holeSketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1183, | ||||
|           1331, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "sketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1333, | ||||
|           1334, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "hole", | ||||
|     "sourceRange": [ | ||||
|       1178, | ||||
|       1335, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "holeSketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1346, | ||||
|           1491, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "sketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1493, | ||||
|           1494, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "hole", | ||||
|     "sourceRange": [ | ||||
|       1341, | ||||
|       1495, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "holeSketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1506, | ||||
|           1648, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "sketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1650, | ||||
|           1651, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "hole", | ||||
|     "sourceRange": [ | ||||
|       1501, | ||||
|       1652, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "holeSketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1663, | ||||
|           1808, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "sketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1810, | ||||
|           1811, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "hole", | ||||
|     "sourceRange": [ | ||||
|       1658, | ||||
|       1812, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "holeSketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1823, | ||||
|           1892, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "sketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1894, | ||||
|           1895, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "hole", | ||||
|     "sourceRange": [ | ||||
|       1818, | ||||
|       1896, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "length": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": 0.75, | ||||
|           "ty": { | ||||
|             "type": "Default", | ||||
|             "len": { | ||||
|               "type": "Inches" | ||||
|             }, | ||||
|             "angle": { | ||||
|               "type": "Degrees" | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1919, | ||||
|           1935, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       1902, | ||||
|       1936, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "Sketch", | ||||
|         "value": { | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         0, | ||||
|         0, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "data": { | ||||
|         "value": { | ||||
|           "type": "Object", | ||||
|           "value": { | ||||
|             "plane": { | ||||
|               "type": "Object", | ||||
|               "value": { | ||||
|                 "origin": { | ||||
|                   "type": "Object", | ||||
|                   "value": { | ||||
|                     "x": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "y": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "z": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.75, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     } | ||||
|                   } | ||||
|                 }, | ||||
|                 "xAxis": { | ||||
|                   "type": "Object", | ||||
|                   "value": { | ||||
|                     "x": { | ||||
|                       "type": "Number", | ||||
|                       "value": 1.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "y": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "z": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     } | ||||
|                   } | ||||
|                 }, | ||||
|                 "yAxis": { | ||||
|                   "type": "Object", | ||||
|                   "value": { | ||||
|                     "x": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "y": { | ||||
|                       "type": "Number", | ||||
|                       "value": 1.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "z": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     } | ||||
|                   } | ||||
|                 }, | ||||
|                 "zAxis": { | ||||
|                   "type": "Object", | ||||
|                   "value": { | ||||
|                     "x": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "y": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "z": { | ||||
|                       "type": "Number", | ||||
|                       "value": 1.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     } | ||||
|                   } | ||||
|                 } | ||||
|               } | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           2231, | ||||
|           2448, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       2217, | ||||
|       2449, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "holeSketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           2672, | ||||
|           2818, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "sketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           2820, | ||||
|           2821, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "hole", | ||||
|     "sourceRange": [ | ||||
|       2667, | ||||
|       2822, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "holeSketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           2833, | ||||
|           2976, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "sketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           2978, | ||||
|           2979, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "hole", | ||||
|     "sourceRange": [ | ||||
|       2828, | ||||
|       2980, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "holeSketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           2991, | ||||
|           3131, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "sketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           3133, | ||||
|           3134, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "hole", | ||||
|     "sourceRange": [ | ||||
|       2986, | ||||
|       3135, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "holeSketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           3146, | ||||
|           3289, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "sketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           3291, | ||||
|           3292, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "hole", | ||||
|     "sourceRange": [ | ||||
|       3141, | ||||
|       3293, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "holeSketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           3304, | ||||
|           3373, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "sketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           3375, | ||||
|           3376, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "hole", | ||||
|     "sourceRange": [ | ||||
|       3299, | ||||
|       3377, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "length": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": 0.25, | ||||
|           "ty": { | ||||
|             "type": "Default", | ||||
|             "len": { | ||||
|               "type": "Inches" | ||||
|             }, | ||||
|             "angle": { | ||||
|               "type": "Degrees" | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           3400, | ||||
|           3407, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       3383, | ||||
|       3408, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "Sketch", | ||||
|         "value": { | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         0, | ||||
|         0, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   } | ||||
| ] | ||||
| @ -0,0 +1,648 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| description: Variables in memory after executing a-parametric-bearing-pillow-block.kcl | ||||
| --- | ||||
| { | ||||
|   "bearingDia": { | ||||
|     "type": "Number", | ||||
|     "value": 3.0, | ||||
|     "ty": { | ||||
|       "type": "Default", | ||||
|       "len": { | ||||
|         "type": "Inches" | ||||
|       }, | ||||
|       "angle": { | ||||
|         "type": "Degrees" | ||||
|       } | ||||
|     }, | ||||
|     "__meta": [ | ||||
|       { | ||||
|         "sourceRange": [ | ||||
|           830, | ||||
|           831, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     ] | ||||
|   }, | ||||
|   "block": { | ||||
|     "type": "Solid", | ||||
|     "value": { | ||||
|       "type": "Solid", | ||||
|       "id": "[uuid]", | ||||
|       "artifactId": "[uuid]", | ||||
|       "value": [ | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             1016, | ||||
|             1060, | ||||
|             0 | ||||
|           ], | ||||
|           "tag": null, | ||||
|           "type": "extrudePlane" | ||||
|         }, | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             1066, | ||||
|             1109, | ||||
|             0 | ||||
|           ], | ||||
|           "tag": null, | ||||
|           "type": "extrudePlane" | ||||
|         }, | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             1115, | ||||
|             1159, | ||||
|             0 | ||||
|           ], | ||||
|           "tag": null, | ||||
|           "type": "extrudePlane" | ||||
|         }, | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             1165, | ||||
|             1172, | ||||
|             0 | ||||
|           ], | ||||
|           "tag": null, | ||||
|           "type": "extrudePlane" | ||||
|         } | ||||
|       ], | ||||
|       "sketch": { | ||||
|         "type": "Sketch", | ||||
|         "id": "[uuid]", | ||||
|         "paths": [ | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 1016, | ||||
|                 1060, | ||||
|                 0 | ||||
|               ] | ||||
|             }, | ||||
|             "from": [ | ||||
|               -2.0, | ||||
|               -3.0 | ||||
|             ], | ||||
|             "tag": null, | ||||
|             "to": [ | ||||
|               2.0, | ||||
|               -3.0 | ||||
|             ], | ||||
|             "type": "ToPoint", | ||||
|             "units": { | ||||
|               "type": "Inches" | ||||
|             } | ||||
|           }, | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 1066, | ||||
|                 1109, | ||||
|                 0 | ||||
|               ] | ||||
|             }, | ||||
|             "from": [ | ||||
|               2.0, | ||||
|               -3.0 | ||||
|             ], | ||||
|             "tag": null, | ||||
|             "to": [ | ||||
|               2.0, | ||||
|               3.0 | ||||
|             ], | ||||
|             "type": "ToPoint", | ||||
|             "units": { | ||||
|               "type": "Inches" | ||||
|             } | ||||
|           }, | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 1115, | ||||
|                 1159, | ||||
|                 0 | ||||
|               ] | ||||
|             }, | ||||
|             "from": [ | ||||
|               2.0, | ||||
|               3.0 | ||||
|             ], | ||||
|             "tag": null, | ||||
|             "to": [ | ||||
|               -2.0, | ||||
|               3.0 | ||||
|             ], | ||||
|             "type": "ToPoint", | ||||
|             "units": { | ||||
|               "type": "Inches" | ||||
|             } | ||||
|           }, | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 1165, | ||||
|                 1172, | ||||
|                 0 | ||||
|               ] | ||||
|             }, | ||||
|             "from": [ | ||||
|               -2.0, | ||||
|               3.0 | ||||
|             ], | ||||
|             "tag": null, | ||||
|             "to": [ | ||||
|               -2.0, | ||||
|               -3.0 | ||||
|             ], | ||||
|             "type": "ToPoint", | ||||
|             "units": { | ||||
|               "type": "Inches" | ||||
|             } | ||||
|           } | ||||
|         ], | ||||
|         "on": { | ||||
|           "type": "plane", | ||||
|           "id": "[uuid]", | ||||
|           "artifactId": "[uuid]", | ||||
|           "value": "XY", | ||||
|           "origin": { | ||||
|             "x": 0.0, | ||||
|             "y": 0.0, | ||||
|             "z": 0.0 | ||||
|           }, | ||||
|           "xAxis": { | ||||
|             "x": 1.0, | ||||
|             "y": 0.0, | ||||
|             "z": 0.0 | ||||
|           }, | ||||
|           "yAxis": { | ||||
|             "x": 0.0, | ||||
|             "y": 1.0, | ||||
|             "z": 0.0 | ||||
|           }, | ||||
|           "zAxis": { | ||||
|             "x": 0.0, | ||||
|             "y": 0.0, | ||||
|             "z": 1.0 | ||||
|           }, | ||||
|           "units": { | ||||
|             "type": "Inches" | ||||
|           }, | ||||
|           "__meta": [] | ||||
|         }, | ||||
|         "start": { | ||||
|           "from": [ | ||||
|             -2.0, | ||||
|             -3.0 | ||||
|           ], | ||||
|           "to": [ | ||||
|             -2.0, | ||||
|             -3.0 | ||||
|           ], | ||||
|           "units": { | ||||
|             "type": "Inches" | ||||
|           }, | ||||
|           "tag": null, | ||||
|           "__geoMeta": { | ||||
|             "id": "[uuid]", | ||||
|             "sourceRange": [ | ||||
|               966, | ||||
|               1010, | ||||
|               0 | ||||
|             ] | ||||
|           } | ||||
|         }, | ||||
|         "artifactId": "[uuid]", | ||||
|         "originalId": "[uuid]", | ||||
|         "units": { | ||||
|           "type": "Inches" | ||||
|         }, | ||||
|         "__meta": [ | ||||
|           { | ||||
|             "sourceRange": [ | ||||
|               966, | ||||
|               1010, | ||||
|               0 | ||||
|             ] | ||||
|           } | ||||
|         ] | ||||
|       }, | ||||
|       "height": 0.75, | ||||
|       "startCapId": "[uuid]", | ||||
|       "endCapId": "[uuid]", | ||||
|       "units": { | ||||
|         "type": "Inches" | ||||
|       }, | ||||
|       "__meta": [ | ||||
|         { | ||||
|           "sourceRange": [ | ||||
|             966, | ||||
|             1010, | ||||
|             0 | ||||
|           ] | ||||
|         } | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   "cbDepth": { | ||||
|     "type": "Number", | ||||
|     "value": 0.25, | ||||
|     "ty": { | ||||
|       "type": "Default", | ||||
|       "len": { | ||||
|         "type": "Inches" | ||||
|       }, | ||||
|       "angle": { | ||||
|         "type": "Degrees" | ||||
|       } | ||||
|     }, | ||||
|     "__meta": [ | ||||
|       { | ||||
|         "sourceRange": [ | ||||
|           773, | ||||
|           776, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     ] | ||||
|   }, | ||||
|   "cbDia": { | ||||
|     "type": "Number", | ||||
|     "value": 0.7, | ||||
|     "ty": { | ||||
|       "type": "Default", | ||||
|       "len": { | ||||
|         "type": "Inches" | ||||
|       }, | ||||
|       "angle": { | ||||
|         "type": "Degrees" | ||||
|       } | ||||
|     }, | ||||
|     "__meta": [ | ||||
|       { | ||||
|         "sourceRange": [ | ||||
|           785, | ||||
|           787, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     ] | ||||
|   }, | ||||
|   "height": { | ||||
|     "type": "Number", | ||||
|     "value": 1.0, | ||||
|     "ty": { | ||||
|       "type": "Default", | ||||
|       "len": { | ||||
|         "type": "Inches" | ||||
|       }, | ||||
|       "angle": { | ||||
|         "type": "Degrees" | ||||
|       } | ||||
|     }, | ||||
|     "__meta": [ | ||||
|       { | ||||
|         "sourceRange": [ | ||||
|           761, | ||||
|           762, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     ] | ||||
|   }, | ||||
|   "holeDia": { | ||||
|     "type": "Number", | ||||
|     "value": 0.375, | ||||
|     "ty": { | ||||
|       "type": "Default", | ||||
|       "len": { | ||||
|         "type": "Inches" | ||||
|       }, | ||||
|       "angle": { | ||||
|         "type": "Degrees" | ||||
|       } | ||||
|     }, | ||||
|     "__meta": [ | ||||
|       { | ||||
|         "sourceRange": [ | ||||
|           798, | ||||
|           802, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     ] | ||||
|   }, | ||||
|   "length": { | ||||
|     "type": "Number", | ||||
|     "value": 6.0, | ||||
|     "ty": { | ||||
|       "type": "Default", | ||||
|       "len": { | ||||
|         "type": "Inches" | ||||
|       }, | ||||
|       "angle": { | ||||
|         "type": "Degrees" | ||||
|       } | ||||
|     }, | ||||
|     "__meta": [ | ||||
|       { | ||||
|         "sourceRange": [ | ||||
|           740, | ||||
|           741, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     ] | ||||
|   }, | ||||
|   "padding": { | ||||
|     "type": "Number", | ||||
|     "value": 1.5, | ||||
|     "ty": { | ||||
|       "type": "Default", | ||||
|       "len": { | ||||
|         "type": "Inches" | ||||
|       }, | ||||
|       "angle": { | ||||
|         "type": "Degrees" | ||||
|       } | ||||
|     }, | ||||
|     "__meta": [ | ||||
|       { | ||||
|         "sourceRange": [ | ||||
|           813, | ||||
|           816, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     ] | ||||
|   }, | ||||
|   "secondHalf": { | ||||
|     "type": "Solid", | ||||
|     "value": { | ||||
|       "type": "Solid", | ||||
|       "id": "[uuid]", | ||||
|       "artifactId": "[uuid]", | ||||
|       "value": [ | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             2505, | ||||
|             2549, | ||||
|             0 | ||||
|           ], | ||||
|           "tag": null, | ||||
|           "type": "extrudePlane" | ||||
|         }, | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             2555, | ||||
|             2598, | ||||
|             0 | ||||
|           ], | ||||
|           "tag": null, | ||||
|           "type": "extrudePlane" | ||||
|         }, | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             2604, | ||||
|             2648, | ||||
|             0 | ||||
|           ], | ||||
|           "tag": null, | ||||
|           "type": "extrudePlane" | ||||
|         }, | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             2654, | ||||
|             2661, | ||||
|             0 | ||||
|           ], | ||||
|           "tag": null, | ||||
|           "type": "extrudePlane" | ||||
|         } | ||||
|       ], | ||||
|       "sketch": { | ||||
|         "type": "Sketch", | ||||
|         "id": "[uuid]", | ||||
|         "paths": [ | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 2505, | ||||
|                 2549, | ||||
|                 0 | ||||
|               ] | ||||
|             }, | ||||
|             "from": [ | ||||
|               -2.0, | ||||
|               -3.0 | ||||
|             ], | ||||
|             "tag": null, | ||||
|             "to": [ | ||||
|               2.0, | ||||
|               -3.0 | ||||
|             ], | ||||
|             "type": "ToPoint", | ||||
|             "units": { | ||||
|               "type": "Inches" | ||||
|             } | ||||
|           }, | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 2555, | ||||
|                 2598, | ||||
|                 0 | ||||
|               ] | ||||
|             }, | ||||
|             "from": [ | ||||
|               2.0, | ||||
|               -3.0 | ||||
|             ], | ||||
|             "tag": null, | ||||
|             "to": [ | ||||
|               2.0, | ||||
|               3.0 | ||||
|             ], | ||||
|             "type": "ToPoint", | ||||
|             "units": { | ||||
|               "type": "Inches" | ||||
|             } | ||||
|           }, | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 2604, | ||||
|                 2648, | ||||
|                 0 | ||||
|               ] | ||||
|             }, | ||||
|             "from": [ | ||||
|               2.0, | ||||
|               3.0 | ||||
|             ], | ||||
|             "tag": null, | ||||
|             "to": [ | ||||
|               -2.0, | ||||
|               3.0 | ||||
|             ], | ||||
|             "type": "ToPoint", | ||||
|             "units": { | ||||
|               "type": "Inches" | ||||
|             } | ||||
|           }, | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 2654, | ||||
|                 2661, | ||||
|                 0 | ||||
|               ] | ||||
|             }, | ||||
|             "from": [ | ||||
|               -2.0, | ||||
|               3.0 | ||||
|             ], | ||||
|             "tag": null, | ||||
|             "to": [ | ||||
|               -2.0, | ||||
|               -3.0 | ||||
|             ], | ||||
|             "type": "ToPoint", | ||||
|             "units": { | ||||
|               "type": "Inches" | ||||
|             } | ||||
|           } | ||||
|         ], | ||||
|         "on": { | ||||
|           "type": "plane", | ||||
|           "id": "[uuid]", | ||||
|           "artifactId": "[uuid]", | ||||
|           "value": "Custom", | ||||
|           "origin": { | ||||
|             "x": 0.0, | ||||
|             "y": 0.0, | ||||
|             "z": 0.75 | ||||
|           }, | ||||
|           "xAxis": { | ||||
|             "x": 1.0, | ||||
|             "y": 0.0, | ||||
|             "z": 0.0 | ||||
|           }, | ||||
|           "yAxis": { | ||||
|             "x": 0.0, | ||||
|             "y": 1.0, | ||||
|             "z": 0.0 | ||||
|           }, | ||||
|           "zAxis": { | ||||
|             "x": 0.0, | ||||
|             "y": 0.0, | ||||
|             "z": 1.0 | ||||
|           }, | ||||
|           "units": { | ||||
|             "type": "Inches" | ||||
|           }, | ||||
|           "__meta": [] | ||||
|         }, | ||||
|         "start": { | ||||
|           "from": [ | ||||
|             -2.0, | ||||
|             -3.0 | ||||
|           ], | ||||
|           "to": [ | ||||
|             -2.0, | ||||
|             -3.0 | ||||
|           ], | ||||
|           "units": { | ||||
|             "type": "Inches" | ||||
|           }, | ||||
|           "tag": null, | ||||
|           "__geoMeta": { | ||||
|             "id": "[uuid]", | ||||
|             "sourceRange": [ | ||||
|               2455, | ||||
|               2499, | ||||
|               0 | ||||
|             ] | ||||
|           } | ||||
|         }, | ||||
|         "artifactId": "[uuid]", | ||||
|         "originalId": "[uuid]", | ||||
|         "units": { | ||||
|           "type": "Inches" | ||||
|         }, | ||||
|         "__meta": [ | ||||
|           { | ||||
|             "sourceRange": [ | ||||
|               2455, | ||||
|               2499, | ||||
|               0 | ||||
|             ] | ||||
|           } | ||||
|         ] | ||||
|       }, | ||||
|       "height": 0.25, | ||||
|       "startCapId": "[uuid]", | ||||
|       "endCapId": "[uuid]", | ||||
|       "units": { | ||||
|         "type": "Inches" | ||||
|       }, | ||||
|       "__meta": [ | ||||
|         { | ||||
|           "sourceRange": [ | ||||
|             2455, | ||||
|             2499, | ||||
|             0 | ||||
|           ] | ||||
|         } | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   "width": { | ||||
|     "type": "Number", | ||||
|     "value": 4.0, | ||||
|     "ty": { | ||||
|       "type": "Default", | ||||
|       "len": { | ||||
|         "type": "Inches" | ||||
|       }, | ||||
|       "angle": { | ||||
|         "type": "Degrees" | ||||
|       } | ||||
|     }, | ||||
|     "__meta": [ | ||||
|       { | ||||
|         "sourceRange": [ | ||||
|           750, | ||||
|           751, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     ] | ||||
|   } | ||||
| } | ||||
| After Width: | Height: | Size: 73 KiB | 
							
								
								
									
										1914
									
								
								rust/kcl-lib/tests/kcl_samples/ball-bearing/artifact_commands.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @ -0,0 +1,6 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| description: Artifact graph flowchart ball-bearing.kcl | ||||
| extension: md | ||||
| snapshot_kind: binary | ||||
| --- | ||||
| @ -0,0 +1,161 @@ | ||||
| ```mermaid | ||||
| flowchart LR | ||||
|   subgraph path2 [Path] | ||||
|     2["Path<br>[920, 1003, 0]"] | ||||
|     3["Segment<br>[920, 1003, 0]"] | ||||
|     4[Solid2d] | ||||
|   end | ||||
|   subgraph path5 [Path] | ||||
|     5["Path<br>[1014, 1081, 0]"] | ||||
|     6["Segment<br>[1014, 1081, 0]"] | ||||
|     7[Solid2d] | ||||
|   end | ||||
|   subgraph path15 [Path] | ||||
|     15["Path<br>[1270, 1326, 0]"] | ||||
|     16["Segment<br>[1332, 1424, 0]"] | ||||
|     17["Segment<br>[1430, 1437, 0]"] | ||||
|     18[Solid2d] | ||||
|   end | ||||
|   subgraph path24 [Path] | ||||
|     24["Path<br>[1814, 1947, 0]"] | ||||
|     25["Segment<br>[1953, 2046, 0]"] | ||||
|     26["Segment<br>[2052, 2083, 0]"] | ||||
|     27["Segment<br>[2089, 2117, 0]"] | ||||
|     28["Segment<br>[2123, 2130, 0]"] | ||||
|     29[Solid2d] | ||||
|   end | ||||
|   subgraph path40 [Path] | ||||
|     40["Path<br>[2471, 2612, 0]"] | ||||
|     41["Segment<br>[2471, 2612, 0]"] | ||||
|     42[Solid2d] | ||||
|   end | ||||
|   subgraph path50 [Path] | ||||
|     50["Path<br>[2975, 3049, 0]"] | ||||
|     51["Segment<br>[2975, 3049, 0]"] | ||||
|     52[Solid2d] | ||||
|   end | ||||
|   subgraph path53 [Path] | ||||
|     53["Path<br>[3060, 3155, 0]"] | ||||
|     54["Segment<br>[3060, 3155, 0]"] | ||||
|     55[Solid2d] | ||||
|   end | ||||
|   1["Plane<br>[888, 914, 0]"] | ||||
|   8["Sweep Extrusion<br>[1136, 1188, 0]"] | ||||
|   9[Wall] | ||||
|   10["Cap Start"] | ||||
|   11["Cap End"] | ||||
|   12["SweepEdge Opposite"] | ||||
|   13["SweepEdge Adjacent"] | ||||
|   14["Plane<br>[1245, 1264, 0]"] | ||||
|   19["Sweep Revolve<br>[1519, 1555, 0]"] | ||||
|   20[Wall] | ||||
|   21[Wall] | ||||
|   22["SweepEdge Adjacent"] | ||||
|   23["Plane<br>[1789, 1808, 0]"] | ||||
|   30["Sweep Revolve<br>[2172, 2208, 0]"] | ||||
|   31[Wall] | ||||
|   32[Wall] | ||||
|   33[Wall] | ||||
|   34[Wall] | ||||
|   35["SweepEdge Adjacent"] | ||||
|   36["SweepEdge Adjacent"] | ||||
|   37["SweepEdge Adjacent"] | ||||
|   38["SweepEdge Adjacent"] | ||||
|   39["Plane<br>[2446, 2465, 0]"] | ||||
|   43["Sweep Revolve<br>[2655, 2712, 0]"] | ||||
|   44[Wall] | ||||
|   45["Cap Start"] | ||||
|   46["Cap End"] | ||||
|   47["SweepEdge Opposite"] | ||||
|   48["SweepEdge Adjacent"] | ||||
|   49["Plane<br>[2943, 2969, 0]"] | ||||
|   56["Sweep Extrusion<br>[3175, 3228, 0]"] | ||||
|   57[Wall] | ||||
|   58["Cap Start"] | ||||
|   59["Cap End"] | ||||
|   60["SweepEdge Opposite"] | ||||
|   61["SweepEdge Adjacent"] | ||||
|   1 --- 2 | ||||
|   1 --- 5 | ||||
|   2 --- 3 | ||||
|   2 ---- 8 | ||||
|   2 --- 4 | ||||
|   3 --- 9 | ||||
|   3 --- 12 | ||||
|   3 --- 13 | ||||
|   5 --- 6 | ||||
|   5 --- 7 | ||||
|   8 --- 9 | ||||
|   8 --- 10 | ||||
|   8 --- 11 | ||||
|   8 --- 12 | ||||
|   8 --- 13 | ||||
|   14 --- 15 | ||||
|   15 --- 16 | ||||
|   15 --- 17 | ||||
|   15 ---- 19 | ||||
|   15 --- 18 | ||||
|   16 --- 20 | ||||
|   16 x--> 22 | ||||
|   17 --- 21 | ||||
|   17 --- 22 | ||||
|   19 --- 20 | ||||
|   19 --- 21 | ||||
|   19 <--x 16 | ||||
|   19 --- 22 | ||||
|   19 <--x 17 | ||||
|   23 --- 24 | ||||
|   24 --- 25 | ||||
|   24 --- 26 | ||||
|   24 --- 27 | ||||
|   24 --- 28 | ||||
|   24 ---- 30 | ||||
|   24 --- 29 | ||||
|   25 --- 31 | ||||
|   25 --- 35 | ||||
|   26 --- 32 | ||||
|   26 --- 36 | ||||
|   27 --- 33 | ||||
|   27 --- 37 | ||||
|   28 --- 34 | ||||
|   28 --- 38 | ||||
|   30 --- 31 | ||||
|   30 --- 32 | ||||
|   30 --- 33 | ||||
|   30 --- 34 | ||||
|   30 <--x 25 | ||||
|   30 --- 35 | ||||
|   30 <--x 26 | ||||
|   30 --- 36 | ||||
|   30 <--x 27 | ||||
|   30 --- 37 | ||||
|   30 <--x 28 | ||||
|   30 --- 38 | ||||
|   39 --- 40 | ||||
|   40 --- 41 | ||||
|   40 ---- 43 | ||||
|   40 --- 42 | ||||
|   41 --- 44 | ||||
|   41 --- 47 | ||||
|   41 --- 48 | ||||
|   43 --- 44 | ||||
|   43 --- 45 | ||||
|   43 --- 46 | ||||
|   43 --- 47 | ||||
|   43 --- 48 | ||||
|   49 --- 50 | ||||
|   49 --- 53 | ||||
|   50 --- 51 | ||||
|   50 ---- 56 | ||||
|   50 --- 52 | ||||
|   51 --- 57 | ||||
|   51 --- 60 | ||||
|   51 --- 61 | ||||
|   53 --- 54 | ||||
|   53 --- 55 | ||||
|   56 --- 57 | ||||
|   56 --- 58 | ||||
|   56 --- 59 | ||||
|   56 --- 60 | ||||
|   56 --- 61 | ||||
| ``` | ||||
							
								
								
									
										3327
									
								
								rust/kcl-lib/tests/kcl_samples/ball-bearing/ast.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										1317
									
								
								rust/kcl-lib/tests/kcl_samples/ball-bearing/ops.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										6859
									
								
								rust/kcl-lib/tests/kcl_samples/ball-bearing/program_memory.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										
											BIN
										
									
								
								rust/kcl-lib/tests/kcl_samples/ball-bearing/rendered_model.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 98 KiB | 
							
								
								
									
										2362
									
								
								rust/kcl-lib/tests/kcl_samples/bracket/artifact_commands.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @ -0,0 +1,6 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| description: Artifact graph flowchart bracket.kcl | ||||
| extension: md | ||||
| snapshot_kind: binary | ||||
| --- | ||||
| @ -0,0 +1,228 @@ | ||||
| ```mermaid | ||||
| flowchart LR | ||||
|   subgraph path2 [Path] | ||||
|     2["Path<br>[1171, 1196, 0]"] | ||||
|     3["Segment<br>[1202, 1261, 0]"] | ||||
|     4["Segment<br>[1267, 1305, 0]"] | ||||
|     5["Segment<br>[1311, 1355, 0]"] | ||||
|     6["Segment<br>[1361, 1368, 0]"] | ||||
|     7[Solid2d] | ||||
|   end | ||||
|   subgraph path8 [Path] | ||||
|     8["Path<br>[1379, 1458, 0]"] | ||||
|     9["Segment<br>[1379, 1458, 0]"] | ||||
|     10[Solid2d] | ||||
|   end | ||||
|   subgraph path11 [Path] | ||||
|     11["Path<br>[1473, 1576, 0]"] | ||||
|     12["Segment<br>[1473, 1576, 0]"] | ||||
|     13[Solid2d] | ||||
|   end | ||||
|   subgraph path14 [Path] | ||||
|     14["Path<br>[1591, 1678, 0]"] | ||||
|     15["Segment<br>[1591, 1678, 0]"] | ||||
|     16[Solid2d] | ||||
|   end | ||||
|   subgraph path17 [Path] | ||||
|     17["Path<br>[1693, 1788, 0]"] | ||||
|     18["Segment<br>[1693, 1788, 0]"] | ||||
|     19[Solid2d] | ||||
|   end | ||||
|   subgraph path36 [Path] | ||||
|     36["Path<br>[2119, 2144, 0]"] | ||||
|     37["Segment<br>[2150, 2176, 0]"] | ||||
|     38["Segment<br>[2182, 2286, 0]"] | ||||
|     39["Segment<br>[2292, 2318, 0]"] | ||||
|     40["Segment<br>[2324, 2416, 0]"] | ||||
|   end | ||||
|   subgraph path57 [Path] | ||||
|     57["Path<br>[2837, 2874, 0]"] | ||||
|     58["Segment<br>[2880, 2902, 0]"] | ||||
|     59["Segment<br>[2908, 2952, 0]"] | ||||
|     60["Segment<br>[2958, 2997, 0]"] | ||||
|     61["Segment<br>[3003, 3010, 0]"] | ||||
|     62[Solid2d] | ||||
|   end | ||||
|   subgraph path63 [Path] | ||||
|     63["Path<br>[3021, 3103, 0]"] | ||||
|     64["Segment<br>[3021, 3103, 0]"] | ||||
|     65[Solid2d] | ||||
|   end | ||||
|   subgraph path66 [Path] | ||||
|     66["Path<br>[3118, 3200, 0]"] | ||||
|     67["Segment<br>[3118, 3200, 0]"] | ||||
|     68[Solid2d] | ||||
|   end | ||||
|   1["Plane<br>[1146, 1165, 0]"] | ||||
|   20["Sweep Extrusion<br>[1851, 1897, 0]"] | ||||
|   21[Wall] | ||||
|   22[Wall] | ||||
|   23[Wall] | ||||
|   24[Wall] | ||||
|   25["Cap Start"] | ||||
|   26["Cap End"] | ||||
|   27["SweepEdge Opposite"] | ||||
|   28["SweepEdge Adjacent"] | ||||
|   29["SweepEdge Opposite"] | ||||
|   30["SweepEdge Adjacent"] | ||||
|   31["SweepEdge Opposite"] | ||||
|   32["SweepEdge Adjacent"] | ||||
|   33["SweepEdge Opposite"] | ||||
|   34["SweepEdge Adjacent"] | ||||
|   35["Plane<br>[2094, 2113, 0]"] | ||||
|   41["Sweep Extrusion<br>[2453, 2491, 0]"] | ||||
|   42[Wall] | ||||
|   43[Wall] | ||||
|   44[Wall] | ||||
|   45[Wall] | ||||
|   46["Cap Start"] | ||||
|   47["Cap End"] | ||||
|   48["SweepEdge Opposite"] | ||||
|   49["SweepEdge Adjacent"] | ||||
|   50["SweepEdge Opposite"] | ||||
|   51["SweepEdge Adjacent"] | ||||
|   52["SweepEdge Opposite"] | ||||
|   53["SweepEdge Adjacent"] | ||||
|   54["SweepEdge Opposite"] | ||||
|   55["SweepEdge Adjacent"] | ||||
|   56["Plane<br>[2805, 2831, 0]"] | ||||
|   69["Sweep Extrusion<br>[3253, 3300, 0]"] | ||||
|   70[Wall] | ||||
|   71[Wall] | ||||
|   72[Wall] | ||||
|   73[Wall] | ||||
|   74["Cap Start"] | ||||
|   75["Cap End"] | ||||
|   76["SweepEdge Opposite"] | ||||
|   77["SweepEdge Adjacent"] | ||||
|   78["SweepEdge Opposite"] | ||||
|   79["SweepEdge Adjacent"] | ||||
|   80["SweepEdge Opposite"] | ||||
|   81["SweepEdge Adjacent"] | ||||
|   82["SweepEdge Opposite"] | ||||
|   83["SweepEdge Adjacent"] | ||||
|   84["EdgeCut Fillet<br>[1903, 2052, 0]"] | ||||
|   85["EdgeCut Fillet<br>[1903, 2052, 0]"] | ||||
|   86["EdgeCut Fillet<br>[3306, 3455, 0]"] | ||||
|   87["EdgeCut Fillet<br>[3306, 3455, 0]"] | ||||
|   1 --- 2 | ||||
|   1 --- 8 | ||||
|   1 --- 11 | ||||
|   1 --- 14 | ||||
|   1 --- 17 | ||||
|   2 --- 3 | ||||
|   2 --- 4 | ||||
|   2 --- 5 | ||||
|   2 --- 6 | ||||
|   2 ---- 20 | ||||
|   2 --- 7 | ||||
|   3 --- 21 | ||||
|   3 --- 27 | ||||
|   3 --- 28 | ||||
|   4 --- 22 | ||||
|   4 --- 29 | ||||
|   4 --- 30 | ||||
|   5 --- 23 | ||||
|   5 --- 31 | ||||
|   5 --- 32 | ||||
|   6 --- 24 | ||||
|   6 --- 33 | ||||
|   6 --- 34 | ||||
|   8 --- 9 | ||||
|   8 --- 10 | ||||
|   11 --- 12 | ||||
|   11 --- 13 | ||||
|   14 --- 15 | ||||
|   14 --- 16 | ||||
|   17 --- 18 | ||||
|   17 --- 19 | ||||
|   20 --- 21 | ||||
|   20 --- 22 | ||||
|   20 --- 23 | ||||
|   20 --- 24 | ||||
|   20 --- 25 | ||||
|   20 --- 26 | ||||
|   20 --- 27 | ||||
|   20 --- 28 | ||||
|   20 --- 29 | ||||
|   20 --- 30 | ||||
|   20 --- 31 | ||||
|   20 --- 32 | ||||
|   20 --- 33 | ||||
|   20 --- 34 | ||||
|   35 --- 36 | ||||
|   36 --- 37 | ||||
|   36 --- 38 | ||||
|   36 --- 39 | ||||
|   36 --- 40 | ||||
|   36 ---- 41 | ||||
|   37 --- 42 | ||||
|   37 --- 48 | ||||
|   37 --- 49 | ||||
|   38 --- 43 | ||||
|   38 --- 50 | ||||
|   38 --- 51 | ||||
|   39 --- 44 | ||||
|   39 --- 52 | ||||
|   39 --- 53 | ||||
|   40 --- 45 | ||||
|   40 --- 54 | ||||
|   40 --- 55 | ||||
|   41 --- 42 | ||||
|   41 --- 43 | ||||
|   41 --- 44 | ||||
|   41 --- 45 | ||||
|   41 --- 46 | ||||
|   41 --- 47 | ||||
|   41 --- 48 | ||||
|   41 --- 49 | ||||
|   41 --- 50 | ||||
|   41 --- 51 | ||||
|   41 --- 52 | ||||
|   41 --- 53 | ||||
|   41 --- 54 | ||||
|   41 --- 55 | ||||
|   56 --- 57 | ||||
|   56 --- 63 | ||||
|   56 --- 66 | ||||
|   57 --- 58 | ||||
|   57 --- 59 | ||||
|   57 --- 60 | ||||
|   57 --- 61 | ||||
|   57 ---- 69 | ||||
|   57 --- 62 | ||||
|   58 --- 73 | ||||
|   58 --- 82 | ||||
|   58 --- 83 | ||||
|   59 --- 72 | ||||
|   59 --- 80 | ||||
|   59 --- 81 | ||||
|   60 --- 71 | ||||
|   60 --- 78 | ||||
|   60 --- 79 | ||||
|   61 --- 70 | ||||
|   61 --- 76 | ||||
|   61 --- 77 | ||||
|   63 --- 64 | ||||
|   63 --- 65 | ||||
|   66 --- 67 | ||||
|   66 --- 68 | ||||
|   69 --- 70 | ||||
|   69 --- 71 | ||||
|   69 --- 72 | ||||
|   69 --- 73 | ||||
|   69 --- 74 | ||||
|   69 --- 75 | ||||
|   69 --- 76 | ||||
|   69 --- 77 | ||||
|   69 --- 78 | ||||
|   69 --- 79 | ||||
|   69 --- 80 | ||||
|   69 --- 81 | ||||
|   69 --- 82 | ||||
|   69 --- 83 | ||||
|   28 <--x 84 | ||||
|   30 <--x 85 | ||||
|   81 <--x 86 | ||||
|   79 <--x 87 | ||||
| ``` | ||||
							
								
								
									
										3247
									
								
								rust/kcl-lib/tests/kcl_samples/bracket/ast.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										733
									
								
								rust/kcl-lib/tests/kcl_samples/bracket/ops.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @ -0,0 +1,733 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| description: Operations executed bracket.kcl | ||||
| --- | ||||
| [ | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "data": { | ||||
|         "value": { | ||||
|           "type": "String", | ||||
|           "value": "XY" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1160, | ||||
|           1164, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       1146, | ||||
|       1165, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "holeSketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1379, | ||||
|           1458, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "sketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1460, | ||||
|           1461, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "hole", | ||||
|     "sourceRange": [ | ||||
|       1374, | ||||
|       1462, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "holeSketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1473, | ||||
|           1576, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "sketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1578, | ||||
|           1579, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "hole", | ||||
|     "sourceRange": [ | ||||
|       1468, | ||||
|       1580, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "holeSketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1591, | ||||
|           1678, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "sketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1680, | ||||
|           1681, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "hole", | ||||
|     "sourceRange": [ | ||||
|       1586, | ||||
|       1682, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "holeSketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1693, | ||||
|           1788, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "sketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1790, | ||||
|           1791, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "hole", | ||||
|     "sourceRange": [ | ||||
|       1688, | ||||
|       1792, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "length": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": 0.35132402626147197, | ||||
|           "ty": { | ||||
|             "type": "Unknown" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1887, | ||||
|           1896, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       1851, | ||||
|       1897, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "Sketch", | ||||
|         "value": { | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         1859, | ||||
|         1876, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "radius": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": 0.25, | ||||
|           "ty": { | ||||
|             "type": "Default", | ||||
|             "len": { | ||||
|               "type": "Inches" | ||||
|             }, | ||||
|             "angle": { | ||||
|               "type": "Degrees" | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1927, | ||||
|           1942, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "tags": { | ||||
|         "value": { | ||||
|           "type": "Array", | ||||
|           "value": [ | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1958, | ||||
|           2045, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "fillet", | ||||
|     "sourceRange": [ | ||||
|       1903, | ||||
|       2052, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "Solid", | ||||
|         "value": { | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         0, | ||||
|         0, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "data": { | ||||
|         "value": { | ||||
|           "type": "String", | ||||
|           "value": "XZ" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           2108, | ||||
|           2112, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       2094, | ||||
|       2113, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "length": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": -6.0, | ||||
|           "ty": { | ||||
|             "type": "Default", | ||||
|             "len": { | ||||
|               "type": "Inches" | ||||
|             }, | ||||
|             "angle": { | ||||
|               "type": "Degrees" | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           2484, | ||||
|           2490, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       2453, | ||||
|       2491, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "Sketch", | ||||
|         "value": { | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         2461, | ||||
|         2473, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "data": { | ||||
|         "value": { | ||||
|           "type": "Object", | ||||
|           "value": { | ||||
|             "plane": { | ||||
|               "type": "Object", | ||||
|               "value": { | ||||
|                 "origin": { | ||||
|                   "type": "Object", | ||||
|                   "value": { | ||||
|                     "x": { | ||||
|                       "type": "Number", | ||||
|                       "value": -0.375, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "y": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "z": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     } | ||||
|                   } | ||||
|                 }, | ||||
|                 "xAxis": { | ||||
|                   "type": "Object", | ||||
|                   "value": { | ||||
|                     "x": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "y": { | ||||
|                       "type": "Number", | ||||
|                       "value": 1.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "z": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     } | ||||
|                   } | ||||
|                 }, | ||||
|                 "yAxis": { | ||||
|                   "type": "Object", | ||||
|                   "value": { | ||||
|                     "x": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "y": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "z": { | ||||
|                       "type": "Number", | ||||
|                       "value": 1.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     } | ||||
|                   } | ||||
|                 }, | ||||
|                 "zAxis": { | ||||
|                   "type": "Object", | ||||
|                   "value": { | ||||
|                     "x": { | ||||
|                       "type": "Number", | ||||
|                       "value": 1.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "y": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "z": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     } | ||||
|                   } | ||||
|                 } | ||||
|               } | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           2819, | ||||
|           2830, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       2805, | ||||
|       2831, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "holeSketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           3021, | ||||
|           3103, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "sketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           3105, | ||||
|           3106, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "hole", | ||||
|     "sourceRange": [ | ||||
|       3016, | ||||
|       3107, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "holeSketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           3118, | ||||
|           3200, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "sketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           3202, | ||||
|           3203, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "hole", | ||||
|     "sourceRange": [ | ||||
|       3113, | ||||
|       3204, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "length": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": -0.35132402626147197, | ||||
|           "ty": { | ||||
|             "type": "Unknown" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           3289, | ||||
|           3299, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       3253, | ||||
|       3300, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "Sketch", | ||||
|         "value": { | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         3261, | ||||
|         3278, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "radius": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": 0.25, | ||||
|           "ty": { | ||||
|             "type": "Default", | ||||
|             "len": { | ||||
|               "type": "Inches" | ||||
|             }, | ||||
|             "angle": { | ||||
|               "type": "Degrees" | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           3330, | ||||
|           3345, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "tags": { | ||||
|         "value": { | ||||
|           "type": "Array", | ||||
|           "value": [ | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "type": "Uuid", | ||||
|               "value": "[uuid]" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           3361, | ||||
|           3448, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "fillet", | ||||
|     "sourceRange": [ | ||||
|       3306, | ||||
|       3455, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "Solid", | ||||
|         "value": { | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         0, | ||||
|         0, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   } | ||||
| ] | ||||
							
								
								
									
										2685
									
								
								rust/kcl-lib/tests/kcl_samples/bracket/program_memory.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										
											BIN
										
									
								
								rust/kcl-lib/tests/kcl_samples/bracket/rendered_model.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 65 KiB | 
							
								
								
									
										14141
									
								
								rust/kcl-lib/tests/kcl_samples/car-wheel-assembly/artifact_commands.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @ -0,0 +1,6 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| description: Artifact graph flowchart car-wheel-assembly.kcl | ||||
| extension: md | ||||
| snapshot_kind: binary | ||||
| --- | ||||
							
								
								
									
										470
									
								
								rust/kcl-lib/tests/kcl_samples/car-wheel-assembly/ast.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @ -0,0 +1,470 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of parsing car-wheel-assembly.kcl | ||||
| --- | ||||
| { | ||||
|   "Ok": { | ||||
|     "body": [ | ||||
|       { | ||||
|         "end": 163, | ||||
|         "path": { | ||||
|           "type": "Kcl", | ||||
|           "filename": "car-wheel.kcl" | ||||
|         }, | ||||
|         "selector": { | ||||
|           "type": "None", | ||||
|           "alias": { | ||||
|             "end": 163, | ||||
|             "name": "carWheel", | ||||
|             "start": 155, | ||||
|             "type": "Identifier" | ||||
|           } | ||||
|         }, | ||||
|         "start": 129, | ||||
|         "type": "ImportStatement", | ||||
|         "type": "ImportStatement" | ||||
|       }, | ||||
|       { | ||||
|         "end": 199, | ||||
|         "path": { | ||||
|           "type": "Kcl", | ||||
|           "filename": "car-rotor.kcl" | ||||
|         }, | ||||
|         "selector": { | ||||
|           "type": "None", | ||||
|           "alias": { | ||||
|             "end": 199, | ||||
|             "name": "carRotor", | ||||
|             "start": 191, | ||||
|             "type": "Identifier" | ||||
|           } | ||||
|         }, | ||||
|         "start": 165, | ||||
|         "type": "ImportStatement", | ||||
|         "type": "ImportStatement" | ||||
|       }, | ||||
|       { | ||||
|         "end": 242, | ||||
|         "path": { | ||||
|           "type": "Kcl", | ||||
|           "filename": "brake-caliper.kcl" | ||||
|         }, | ||||
|         "selector": { | ||||
|           "type": "None", | ||||
|           "alias": { | ||||
|             "end": 242, | ||||
|             "name": "brakeCaliper", | ||||
|             "start": 230, | ||||
|             "type": "Identifier" | ||||
|           } | ||||
|         }, | ||||
|         "start": 200, | ||||
|         "type": "ImportStatement", | ||||
|         "type": "ImportStatement" | ||||
|       }, | ||||
|       { | ||||
|         "end": 273, | ||||
|         "path": { | ||||
|           "type": "Kcl", | ||||
|           "filename": "lug-nut.kcl" | ||||
|         }, | ||||
|         "selector": { | ||||
|           "type": "None", | ||||
|           "alias": { | ||||
|             "end": 273, | ||||
|             "name": "lugNut", | ||||
|             "start": 267, | ||||
|             "type": "Identifier" | ||||
|           } | ||||
|         }, | ||||
|         "start": 243, | ||||
|         "type": "ImportStatement", | ||||
|         "type": "ImportStatement" | ||||
|       }, | ||||
|       { | ||||
|         "end": 306, | ||||
|         "path": { | ||||
|           "type": "Kcl", | ||||
|           "filename": "car-tire.kcl" | ||||
|         }, | ||||
|         "selector": { | ||||
|           "type": "None", | ||||
|           "alias": { | ||||
|             "end": 306, | ||||
|             "name": "carTire", | ||||
|             "start": 299, | ||||
|             "type": "Identifier" | ||||
|           } | ||||
|         }, | ||||
|         "start": 274, | ||||
|         "type": "ImportStatement", | ||||
|         "type": "ImportStatement" | ||||
|       }, | ||||
|       { | ||||
|         "end": 341, | ||||
|         "path": { | ||||
|           "type": "Kcl", | ||||
|           "filename": "globals.kcl" | ||||
|         }, | ||||
|         "selector": { | ||||
|           "type": "List", | ||||
|           "items": [ | ||||
|             { | ||||
|               "alias": null, | ||||
|               "end": 322, | ||||
|               "name": { | ||||
|                 "end": 322, | ||||
|                 "name": "lugCount", | ||||
|                 "start": 314, | ||||
|                 "type": "Identifier" | ||||
|               }, | ||||
|               "start": 314, | ||||
|               "type": "ImportItem" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "start": 307, | ||||
|         "type": "ImportStatement", | ||||
|         "type": "ImportStatement" | ||||
|       }, | ||||
|       { | ||||
|         "end": 351, | ||||
|         "expression": { | ||||
|           "end": 351, | ||||
|           "name": "carRotor", | ||||
|           "start": 343, | ||||
|           "type": "Identifier", | ||||
|           "type": "Identifier" | ||||
|         }, | ||||
|         "start": 343, | ||||
|         "type": "ExpressionStatement", | ||||
|         "type": "ExpressionStatement" | ||||
|       }, | ||||
|       { | ||||
|         "end": 360, | ||||
|         "expression": { | ||||
|           "end": 360, | ||||
|           "name": "carWheel", | ||||
|           "start": 352, | ||||
|           "type": "Identifier", | ||||
|           "type": "Identifier" | ||||
|         }, | ||||
|         "start": 352, | ||||
|         "type": "ExpressionStatement", | ||||
|         "type": "ExpressionStatement" | ||||
|       }, | ||||
|       { | ||||
|         "end": 524, | ||||
|         "expression": { | ||||
|           "body": [ | ||||
|             { | ||||
|               "end": 367, | ||||
|               "name": "lugNut", | ||||
|               "start": 361, | ||||
|               "type": "Identifier", | ||||
|               "type": "Identifier" | ||||
|             }, | ||||
|             { | ||||
|               "arguments": [ | ||||
|                 { | ||||
|                   "type": "LabeledArg", | ||||
|                   "label": { | ||||
|                     "end": 407, | ||||
|                     "name": "arcDegrees", | ||||
|                     "start": 397, | ||||
|                     "type": "Identifier" | ||||
|                   }, | ||||
|                   "arg": { | ||||
|                     "end": 413, | ||||
|                     "raw": "360", | ||||
|                     "start": 410, | ||||
|                     "type": "Literal", | ||||
|                     "type": "Literal", | ||||
|                     "value": { | ||||
|                       "value": 360.0, | ||||
|                       "suffix": "None" | ||||
|                     } | ||||
|                   } | ||||
|                 }, | ||||
|                 { | ||||
|                   "type": "LabeledArg", | ||||
|                   "label": { | ||||
|                     "end": 424, | ||||
|                     "name": "axis", | ||||
|                     "start": 420, | ||||
|                     "type": "Identifier" | ||||
|                   }, | ||||
|                   "arg": { | ||||
|                     "elements": [ | ||||
|                       { | ||||
|                         "end": 429, | ||||
|                         "raw": "0", | ||||
|                         "start": 428, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
|                           "value": 0.0, | ||||
|                           "suffix": "None" | ||||
|                         } | ||||
|                       }, | ||||
|                       { | ||||
|                         "end": 432, | ||||
|                         "raw": "1", | ||||
|                         "start": 431, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
|                           "value": 1.0, | ||||
|                           "suffix": "None" | ||||
|                         } | ||||
|                       }, | ||||
|                       { | ||||
|                         "end": 435, | ||||
|                         "raw": "0", | ||||
|                         "start": 434, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
|                           "value": 0.0, | ||||
|                           "suffix": "None" | ||||
|                         } | ||||
|                       } | ||||
|                     ], | ||||
|                     "end": 436, | ||||
|                     "start": 427, | ||||
|                     "type": "ArrayExpression", | ||||
|                     "type": "ArrayExpression" | ||||
|                   } | ||||
|                 }, | ||||
|                 { | ||||
|                   "type": "LabeledArg", | ||||
|                   "label": { | ||||
|                     "end": 449, | ||||
|                     "name": "center", | ||||
|                     "start": 443, | ||||
|                     "type": "Identifier" | ||||
|                   }, | ||||
|                   "arg": { | ||||
|                     "elements": [ | ||||
|                       { | ||||
|                         "end": 454, | ||||
|                         "raw": "0", | ||||
|                         "start": 453, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
|                           "value": 0.0, | ||||
|                           "suffix": "None" | ||||
|                         } | ||||
|                       }, | ||||
|                       { | ||||
|                         "end": 457, | ||||
|                         "raw": "0", | ||||
|                         "start": 456, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
|                           "value": 0.0, | ||||
|                           "suffix": "None" | ||||
|                         } | ||||
|                       }, | ||||
|                       { | ||||
|                         "end": 460, | ||||
|                         "raw": "0", | ||||
|                         "start": 459, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
|                           "value": 0.0, | ||||
|                           "suffix": "None" | ||||
|                         } | ||||
|                       } | ||||
|                     ], | ||||
|                     "end": 461, | ||||
|                     "start": 452, | ||||
|                     "type": "ArrayExpression", | ||||
|                     "type": "ArrayExpression" | ||||
|                   } | ||||
|                 }, | ||||
|                 { | ||||
|                   "type": "LabeledArg", | ||||
|                   "label": { | ||||
|                     "end": 477, | ||||
|                     "name": "instances", | ||||
|                     "start": 468, | ||||
|                     "type": "Identifier" | ||||
|                   }, | ||||
|                   "arg": { | ||||
|                     "end": 488, | ||||
|                     "name": "lugCount", | ||||
|                     "start": 480, | ||||
|                     "type": "Identifier", | ||||
|                     "type": "Identifier" | ||||
|                   } | ||||
|                 }, | ||||
|                 { | ||||
|                   "type": "LabeledArg", | ||||
|                   "label": { | ||||
|                     "end": 511, | ||||
|                     "name": "rotateDuplicates", | ||||
|                     "start": 495, | ||||
|                     "type": "Identifier" | ||||
|                   }, | ||||
|                   "arg": { | ||||
|                     "end": 519, | ||||
|                     "raw": "false", | ||||
|                     "start": 514, | ||||
|                     "type": "Literal", | ||||
|                     "type": "Literal", | ||||
|                     "value": false | ||||
|                   } | ||||
|                 } | ||||
|               ], | ||||
|               "callee": { | ||||
|                 "end": 390, | ||||
|                 "name": "patternCircular3d", | ||||
|                 "start": 373, | ||||
|                 "type": "Identifier" | ||||
|               }, | ||||
|               "end": 524, | ||||
|               "start": 373, | ||||
|               "type": "CallExpressionKw", | ||||
|               "type": "CallExpressionKw", | ||||
|               "unlabeled": null | ||||
|             } | ||||
|           ], | ||||
|           "end": 524, | ||||
|           "start": 361, | ||||
|           "type": "PipeExpression", | ||||
|           "type": "PipeExpression" | ||||
|         }, | ||||
|         "start": 361, | ||||
|         "type": "ExpressionStatement", | ||||
|         "type": "ExpressionStatement" | ||||
|       }, | ||||
|       { | ||||
|         "end": 537, | ||||
|         "expression": { | ||||
|           "end": 537, | ||||
|           "name": "brakeCaliper", | ||||
|           "start": 525, | ||||
|           "type": "Identifier", | ||||
|           "type": "Identifier" | ||||
|         }, | ||||
|         "start": 525, | ||||
|         "type": "ExpressionStatement", | ||||
|         "type": "ExpressionStatement" | ||||
|       }, | ||||
|       { | ||||
|         "end": 545, | ||||
|         "expression": { | ||||
|           "end": 545, | ||||
|           "name": "carTire", | ||||
|           "start": 538, | ||||
|           "type": "Identifier", | ||||
|           "type": "Identifier" | ||||
|         }, | ||||
|         "start": 538, | ||||
|         "type": "ExpressionStatement", | ||||
|         "type": "ExpressionStatement" | ||||
|       } | ||||
|     ], | ||||
|     "end": 546, | ||||
|     "innerAttrs": [ | ||||
|       { | ||||
|         "end": 127, | ||||
|         "name": { | ||||
|           "end": 103, | ||||
|           "name": "settings", | ||||
|           "start": 95, | ||||
|           "type": "Identifier" | ||||
|         }, | ||||
|         "properties": [ | ||||
|           { | ||||
|             "end": 126, | ||||
|             "key": { | ||||
|               "end": 121, | ||||
|               "name": "defaultLengthUnit", | ||||
|               "start": 104, | ||||
|               "type": "Identifier" | ||||
|             }, | ||||
|             "start": 104, | ||||
|             "type": "ObjectProperty", | ||||
|             "value": { | ||||
|               "end": 126, | ||||
|               "name": "in", | ||||
|               "start": 124, | ||||
|               "type": "Identifier", | ||||
|               "type": "Identifier" | ||||
|             } | ||||
|           } | ||||
|         ], | ||||
|         "start": 94, | ||||
|         "type": "Annotation" | ||||
|       } | ||||
|     ], | ||||
|     "nonCodeMeta": { | ||||
|       "nonCodeNodes": { | ||||
|         "5": [ | ||||
|           { | ||||
|             "end": 343, | ||||
|             "start": 341, | ||||
|             "type": "NonCodeNode", | ||||
|             "value": { | ||||
|               "type": "newLine" | ||||
|             } | ||||
|           } | ||||
|         ] | ||||
|       }, | ||||
|       "startNodes": [ | ||||
|         { | ||||
|           "end": 21, | ||||
|           "start": 0, | ||||
|           "type": "NonCodeNode", | ||||
|           "value": { | ||||
|             "type": "blockComment", | ||||
|             "value": "Car Wheel Assembly", | ||||
|             "style": "line" | ||||
|           } | ||||
|         }, | ||||
|         { | ||||
|           "end": 79, | ||||
|           "start": 22, | ||||
|           "type": "NonCodeNode", | ||||
|           "value": { | ||||
|             "type": "blockComment", | ||||
|             "value": "A car wheel assembly with a rotor, tire, and lug nuts.", | ||||
|             "style": "line" | ||||
|           } | ||||
|         }, | ||||
|         { | ||||
|           "end": 81, | ||||
|           "start": 79, | ||||
|           "type": "NonCodeNode", | ||||
|           "value": { | ||||
|             "type": "newLine" | ||||
|           } | ||||
|         }, | ||||
|         { | ||||
|           "end": 93, | ||||
|           "start": 81, | ||||
|           "type": "NonCodeNode", | ||||
|           "value": { | ||||
|             "type": "blockComment", | ||||
|             "value": "Set units", | ||||
|             "style": "line" | ||||
|           } | ||||
|         }, | ||||
|         { | ||||
|           "end": 129, | ||||
|           "start": 127, | ||||
|           "type": "NonCodeNode", | ||||
|           "value": { | ||||
|             "type": "newLine" | ||||
|           } | ||||
|         } | ||||
|       ] | ||||
|     }, | ||||
|     "start": 0 | ||||
|   } | ||||
| } | ||||
							
								
								
									
										3630
									
								
								rust/kcl-lib/tests/kcl_samples/car-wheel-assembly/ops.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @ -0,0 +1,93 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| description: Variables in memory after executing car-wheel-assembly.kcl | ||||
| --- | ||||
| { | ||||
|   "brakeCaliper": { | ||||
|     "type": "Module", | ||||
|     "value": 5, | ||||
|     "__meta": [ | ||||
|       { | ||||
|         "sourceRange": [ | ||||
|           200, | ||||
|           242, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     ] | ||||
|   }, | ||||
|   "carRotor": { | ||||
|     "type": "Module", | ||||
|     "value": 4, | ||||
|     "__meta": [ | ||||
|       { | ||||
|         "sourceRange": [ | ||||
|           165, | ||||
|           199, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     ] | ||||
|   }, | ||||
|   "carTire": { | ||||
|     "type": "Module", | ||||
|     "value": 7, | ||||
|     "__meta": [ | ||||
|       { | ||||
|         "sourceRange": [ | ||||
|           274, | ||||
|           306, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     ] | ||||
|   }, | ||||
|   "carWheel": { | ||||
|     "type": "Module", | ||||
|     "value": 3, | ||||
|     "__meta": [ | ||||
|       { | ||||
|         "sourceRange": [ | ||||
|           129, | ||||
|           163, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     ] | ||||
|   }, | ||||
|   "lugCount": { | ||||
|     "type": "Number", | ||||
|     "value": 5.0, | ||||
|     "ty": { | ||||
|       "type": "Default", | ||||
|       "len": { | ||||
|         "type": "Inches" | ||||
|       }, | ||||
|       "angle": { | ||||
|         "type": "Degrees" | ||||
|       } | ||||
|     }, | ||||
|     "__meta": [ | ||||
|       { | ||||
|         "sourceRange": [ | ||||
|           119, | ||||
|           120, | ||||
|           8 | ||||
|         ] | ||||
|       } | ||||
|     ] | ||||
|   }, | ||||
|   "lugNut": { | ||||
|     "type": "Module", | ||||
|     "value": 6, | ||||
|     "__meta": [ | ||||
|       { | ||||
|         "sourceRange": [ | ||||
|           243, | ||||
|           273, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     ] | ||||
|   } | ||||
| } | ||||
| After Width: | Height: | Size: 215 KiB | 
							
								
								
									
										2792
									
								
								rust/kcl-lib/tests/kcl_samples/color-cube/artifact_commands.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @ -0,0 +1,6 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Artifact graph flowchart color-cube.kcl | ||||
| extension: md | ||||
| snapshot_kind: binary | ||||
| --- | ||||
| @ -0,0 +1,357 @@ | ||||
| ```mermaid | ||||
| flowchart LR | ||||
|   subgraph path7 [Path] | ||||
|     7["Path<br>[778, 818, 0]"] | ||||
|     8["Segment<br>[824, 871, 0]"] | ||||
|     9["Segment<br>[877, 977, 0]"] | ||||
|     10["Segment<br>[983, 1103, 0]"] | ||||
|     11["Segment<br>[1109, 1165, 0]"] | ||||
|     12["Segment<br>[1171, 1178, 0]"] | ||||
|     13[Solid2d] | ||||
|   end | ||||
|   subgraph path29 [Path] | ||||
|     29["Path<br>[778, 818, 0]"] | ||||
|     30["Segment<br>[824, 871, 0]"] | ||||
|     31["Segment<br>[877, 977, 0]"] | ||||
|     32["Segment<br>[983, 1103, 0]"] | ||||
|     33["Segment<br>[1109, 1165, 0]"] | ||||
|     34["Segment<br>[1171, 1178, 0]"] | ||||
|     35[Solid2d] | ||||
|   end | ||||
|   subgraph path51 [Path] | ||||
|     51["Path<br>[778, 818, 0]"] | ||||
|     52["Segment<br>[824, 871, 0]"] | ||||
|     53["Segment<br>[877, 977, 0]"] | ||||
|     54["Segment<br>[983, 1103, 0]"] | ||||
|     55["Segment<br>[1109, 1165, 0]"] | ||||
|     56["Segment<br>[1171, 1178, 0]"] | ||||
|     57[Solid2d] | ||||
|   end | ||||
|   subgraph path73 [Path] | ||||
|     73["Path<br>[778, 818, 0]"] | ||||
|     74["Segment<br>[824, 871, 0]"] | ||||
|     75["Segment<br>[877, 977, 0]"] | ||||
|     76["Segment<br>[983, 1103, 0]"] | ||||
|     77["Segment<br>[1109, 1165, 0]"] | ||||
|     78["Segment<br>[1171, 1178, 0]"] | ||||
|     79[Solid2d] | ||||
|   end | ||||
|   subgraph path95 [Path] | ||||
|     95["Path<br>[778, 818, 0]"] | ||||
|     96["Segment<br>[824, 871, 0]"] | ||||
|     97["Segment<br>[877, 977, 0]"] | ||||
|     98["Segment<br>[983, 1103, 0]"] | ||||
|     99["Segment<br>[1109, 1165, 0]"] | ||||
|     100["Segment<br>[1171, 1178, 0]"] | ||||
|     101[Solid2d] | ||||
|   end | ||||
|   subgraph path117 [Path] | ||||
|     117["Path<br>[778, 818, 0]"] | ||||
|     118["Segment<br>[824, 871, 0]"] | ||||
|     119["Segment<br>[877, 977, 0]"] | ||||
|     120["Segment<br>[983, 1103, 0]"] | ||||
|     121["Segment<br>[1109, 1165, 0]"] | ||||
|     122["Segment<br>[1171, 1178, 0]"] | ||||
|     123[Solid2d] | ||||
|   end | ||||
|   1["Plane<br>[350, 386, 0]"] | ||||
|   2["Plane<br>[401, 438, 0]"] | ||||
|   3["Plane<br>[452, 489, 0]"] | ||||
|   4["Plane<br>[504, 542, 0]"] | ||||
|   5["Plane<br>[554, 606, 0]"] | ||||
|   6["Plane<br>[619, 656, 0]"] | ||||
|   14["Sweep Extrusion<br>[1184, 1218, 0]"] | ||||
|   15[Wall] | ||||
|   16[Wall] | ||||
|   17[Wall] | ||||
|   18[Wall] | ||||
|   19["Cap Start"] | ||||
|   20["Cap End"] | ||||
|   21["SweepEdge Opposite"] | ||||
|   22["SweepEdge Adjacent"] | ||||
|   23["SweepEdge Opposite"] | ||||
|   24["SweepEdge Adjacent"] | ||||
|   25["SweepEdge Opposite"] | ||||
|   26["SweepEdge Adjacent"] | ||||
|   27["SweepEdge Opposite"] | ||||
|   28["SweepEdge Adjacent"] | ||||
|   36["Sweep Extrusion<br>[1184, 1218, 0]"] | ||||
|   37[Wall] | ||||
|   38[Wall] | ||||
|   39[Wall] | ||||
|   40[Wall] | ||||
|   41["Cap Start"] | ||||
|   42["Cap End"] | ||||
|   43["SweepEdge Opposite"] | ||||
|   44["SweepEdge Adjacent"] | ||||
|   45["SweepEdge Opposite"] | ||||
|   46["SweepEdge Adjacent"] | ||||
|   47["SweepEdge Opposite"] | ||||
|   48["SweepEdge Adjacent"] | ||||
|   49["SweepEdge Opposite"] | ||||
|   50["SweepEdge Adjacent"] | ||||
|   58["Sweep Extrusion<br>[1184, 1218, 0]"] | ||||
|   59[Wall] | ||||
|   60[Wall] | ||||
|   61[Wall] | ||||
|   62[Wall] | ||||
|   63["Cap Start"] | ||||
|   64["Cap End"] | ||||
|   65["SweepEdge Opposite"] | ||||
|   66["SweepEdge Adjacent"] | ||||
|   67["SweepEdge Opposite"] | ||||
|   68["SweepEdge Adjacent"] | ||||
|   69["SweepEdge Opposite"] | ||||
|   70["SweepEdge Adjacent"] | ||||
|   71["SweepEdge Opposite"] | ||||
|   72["SweepEdge Adjacent"] | ||||
|   80["Sweep Extrusion<br>[1184, 1218, 0]"] | ||||
|   81[Wall] | ||||
|   82[Wall] | ||||
|   83[Wall] | ||||
|   84[Wall] | ||||
|   85["Cap Start"] | ||||
|   86["Cap End"] | ||||
|   87["SweepEdge Opposite"] | ||||
|   88["SweepEdge Adjacent"] | ||||
|   89["SweepEdge Opposite"] | ||||
|   90["SweepEdge Adjacent"] | ||||
|   91["SweepEdge Opposite"] | ||||
|   92["SweepEdge Adjacent"] | ||||
|   93["SweepEdge Opposite"] | ||||
|   94["SweepEdge Adjacent"] | ||||
|   102["Sweep Extrusion<br>[1184, 1218, 0]"] | ||||
|   103[Wall] | ||||
|   104[Wall] | ||||
|   105[Wall] | ||||
|   106[Wall] | ||||
|   107["Cap Start"] | ||||
|   108["Cap End"] | ||||
|   109["SweepEdge Opposite"] | ||||
|   110["SweepEdge Adjacent"] | ||||
|   111["SweepEdge Opposite"] | ||||
|   112["SweepEdge Adjacent"] | ||||
|   113["SweepEdge Opposite"] | ||||
|   114["SweepEdge Adjacent"] | ||||
|   115["SweepEdge Opposite"] | ||||
|   116["SweepEdge Adjacent"] | ||||
|   124["Sweep Extrusion<br>[1184, 1218, 0]"] | ||||
|   125[Wall] | ||||
|   126[Wall] | ||||
|   127[Wall] | ||||
|   128[Wall] | ||||
|   129["Cap Start"] | ||||
|   130["Cap End"] | ||||
|   131["SweepEdge Opposite"] | ||||
|   132["SweepEdge Adjacent"] | ||||
|   133["SweepEdge Opposite"] | ||||
|   134["SweepEdge Adjacent"] | ||||
|   135["SweepEdge Opposite"] | ||||
|   136["SweepEdge Adjacent"] | ||||
|   137["SweepEdge Opposite"] | ||||
|   138["SweepEdge Adjacent"] | ||||
|   1 --- 7 | ||||
|   2 --- 29 | ||||
|   3 --- 51 | ||||
|   4 --- 117 | ||||
|   5 --- 73 | ||||
|   6 --- 95 | ||||
|   7 --- 8 | ||||
|   7 --- 9 | ||||
|   7 --- 10 | ||||
|   7 --- 11 | ||||
|   7 --- 12 | ||||
|   7 ---- 14 | ||||
|   7 --- 13 | ||||
|   8 --- 18 | ||||
|   8 --- 27 | ||||
|   8 --- 28 | ||||
|   9 --- 17 | ||||
|   9 --- 25 | ||||
|   9 --- 26 | ||||
|   10 --- 16 | ||||
|   10 --- 23 | ||||
|   10 --- 24 | ||||
|   11 --- 15 | ||||
|   11 --- 21 | ||||
|   11 --- 22 | ||||
|   14 --- 15 | ||||
|   14 --- 16 | ||||
|   14 --- 17 | ||||
|   14 --- 18 | ||||
|   14 --- 19 | ||||
|   14 --- 20 | ||||
|   14 --- 21 | ||||
|   14 --- 22 | ||||
|   14 --- 23 | ||||
|   14 --- 24 | ||||
|   14 --- 25 | ||||
|   14 --- 26 | ||||
|   14 --- 27 | ||||
|   14 --- 28 | ||||
|   29 --- 30 | ||||
|   29 --- 31 | ||||
|   29 --- 32 | ||||
|   29 --- 33 | ||||
|   29 --- 34 | ||||
|   29 ---- 36 | ||||
|   29 --- 35 | ||||
|   30 --- 40 | ||||
|   30 --- 49 | ||||
|   30 --- 50 | ||||
|   31 --- 39 | ||||
|   31 --- 47 | ||||
|   31 --- 48 | ||||
|   32 --- 38 | ||||
|   32 --- 45 | ||||
|   32 --- 46 | ||||
|   33 --- 37 | ||||
|   33 --- 43 | ||||
|   33 --- 44 | ||||
|   36 --- 37 | ||||
|   36 --- 38 | ||||
|   36 --- 39 | ||||
|   36 --- 40 | ||||
|   36 --- 41 | ||||
|   36 --- 42 | ||||
|   36 --- 43 | ||||
|   36 --- 44 | ||||
|   36 --- 45 | ||||
|   36 --- 46 | ||||
|   36 --- 47 | ||||
|   36 --- 48 | ||||
|   36 --- 49 | ||||
|   36 --- 50 | ||||
|   51 --- 52 | ||||
|   51 --- 53 | ||||
|   51 --- 54 | ||||
|   51 --- 55 | ||||
|   51 --- 56 | ||||
|   51 ---- 58 | ||||
|   51 --- 57 | ||||
|   52 --- 62 | ||||
|   52 --- 71 | ||||
|   52 --- 72 | ||||
|   53 --- 61 | ||||
|   53 --- 69 | ||||
|   53 --- 70 | ||||
|   54 --- 60 | ||||
|   54 --- 67 | ||||
|   54 --- 68 | ||||
|   55 --- 59 | ||||
|   55 --- 65 | ||||
|   55 --- 66 | ||||
|   58 --- 59 | ||||
|   58 --- 60 | ||||
|   58 --- 61 | ||||
|   58 --- 62 | ||||
|   58 --- 63 | ||||
|   58 --- 64 | ||||
|   58 --- 65 | ||||
|   58 --- 66 | ||||
|   58 --- 67 | ||||
|   58 --- 68 | ||||
|   58 --- 69 | ||||
|   58 --- 70 | ||||
|   58 --- 71 | ||||
|   58 --- 72 | ||||
|   73 --- 74 | ||||
|   73 --- 75 | ||||
|   73 --- 76 | ||||
|   73 --- 77 | ||||
|   73 --- 78 | ||||
|   73 ---- 80 | ||||
|   73 --- 79 | ||||
|   74 --- 84 | ||||
|   74 --- 93 | ||||
|   74 --- 94 | ||||
|   75 --- 83 | ||||
|   75 --- 91 | ||||
|   75 --- 92 | ||||
|   76 --- 82 | ||||
|   76 --- 89 | ||||
|   76 --- 90 | ||||
|   77 --- 81 | ||||
|   77 --- 87 | ||||
|   77 --- 88 | ||||
|   80 --- 81 | ||||
|   80 --- 82 | ||||
|   80 --- 83 | ||||
|   80 --- 84 | ||||
|   80 --- 85 | ||||
|   80 --- 86 | ||||
|   80 --- 87 | ||||
|   80 --- 88 | ||||
|   80 --- 89 | ||||
|   80 --- 90 | ||||
|   80 --- 91 | ||||
|   80 --- 92 | ||||
|   80 --- 93 | ||||
|   80 --- 94 | ||||
|   95 --- 96 | ||||
|   95 --- 97 | ||||
|   95 --- 98 | ||||
|   95 --- 99 | ||||
|   95 --- 100 | ||||
|   95 ---- 102 | ||||
|   95 --- 101 | ||||
|   96 --- 106 | ||||
|   96 --- 115 | ||||
|   96 --- 116 | ||||
|   97 --- 105 | ||||
|   97 --- 113 | ||||
|   97 --- 114 | ||||
|   98 --- 104 | ||||
|   98 --- 111 | ||||
|   98 --- 112 | ||||
|   99 --- 103 | ||||
|   99 --- 109 | ||||
|   99 --- 110 | ||||
|   102 --- 103 | ||||
|   102 --- 104 | ||||
|   102 --- 105 | ||||
|   102 --- 106 | ||||
|   102 --- 107 | ||||
|   102 --- 108 | ||||
|   102 --- 109 | ||||
|   102 --- 110 | ||||
|   102 --- 111 | ||||
|   102 --- 112 | ||||
|   102 --- 113 | ||||
|   102 --- 114 | ||||
|   102 --- 115 | ||||
|   102 --- 116 | ||||
|   117 --- 118 | ||||
|   117 --- 119 | ||||
|   117 --- 120 | ||||
|   117 --- 121 | ||||
|   117 --- 122 | ||||
|   117 ---- 124 | ||||
|   117 --- 123 | ||||
|   118 --- 128 | ||||
|   118 --- 137 | ||||
|   118 --- 138 | ||||
|   119 --- 127 | ||||
|   119 --- 135 | ||||
|   119 --- 136 | ||||
|   120 --- 126 | ||||
|   120 --- 133 | ||||
|   120 --- 134 | ||||
|   121 --- 125 | ||||
|   121 --- 131 | ||||
|   121 --- 132 | ||||
|   124 --- 125 | ||||
|   124 --- 126 | ||||
|   124 --- 127 | ||||
|   124 --- 128 | ||||
|   124 --- 129 | ||||
|   124 --- 130 | ||||
|   124 --- 131 | ||||
|   124 --- 132 | ||||
|   124 --- 133 | ||||
|   124 --- 134 | ||||
|   124 --- 135 | ||||
|   124 --- 136 | ||||
|   124 --- 137 | ||||
|   124 --- 138 | ||||
| ``` | ||||
							
								
								
									
										1412
									
								
								rust/kcl-lib/tests/kcl_samples/color-cube/ast.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										600
									
								
								rust/kcl-lib/tests/kcl_samples/color-cube/ops.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @ -0,0 +1,600 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Operations executed color-cube.kcl | ||||
| --- | ||||
| [ | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "offset": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": 50.0, | ||||
|           "ty": { | ||||
|             "type": "Unknown" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           377, | ||||
|           385, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "offsetPlane", | ||||
|     "sourceRange": [ | ||||
|       350, | ||||
|       386, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "String", | ||||
|         "value": "XY" | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         362, | ||||
|         366, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "offset": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": -50.0, | ||||
|           "ty": { | ||||
|             "type": "Unknown" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           428, | ||||
|           437, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "offsetPlane", | ||||
|     "sourceRange": [ | ||||
|       401, | ||||
|       438, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "String", | ||||
|         "value": "XY" | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         413, | ||||
|         417, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "offset": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": -50.0, | ||||
|           "ty": { | ||||
|             "type": "Unknown" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           479, | ||||
|           488, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "offsetPlane", | ||||
|     "sourceRange": [ | ||||
|       452, | ||||
|       489, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "String", | ||||
|         "value": "XZ" | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         464, | ||||
|         468, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "offset": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": -50.0, | ||||
|           "ty": { | ||||
|             "type": "Unknown" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           532, | ||||
|           541, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "offsetPlane", | ||||
|     "sourceRange": [ | ||||
|       504, | ||||
|       542, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "String", | ||||
|         "value": "-XZ" | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         516, | ||||
|         521, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "offset": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": 49.0, | ||||
|           "ty": { | ||||
|             "type": "Unknown" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           581, | ||||
|           605, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "offsetPlane", | ||||
|     "sourceRange": [ | ||||
|       554, | ||||
|       606, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "String", | ||||
|         "value": "YZ" | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         566, | ||||
|         570, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "offset": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": -50.0, | ||||
|           "ty": { | ||||
|             "type": "Unknown" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           646, | ||||
|           655, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "offsetPlane", | ||||
|     "sourceRange": [ | ||||
|       619, | ||||
|       656, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "String", | ||||
|         "value": "YZ" | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         631, | ||||
|         635, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionCall", | ||||
|     "name": "sketchRectangle", | ||||
|     "functionSourceRange": [ | ||||
|       737, | ||||
|       1309, | ||||
|       0 | ||||
|     ], | ||||
|     "unlabeledArg": null, | ||||
|     "labeledArgs": {}, | ||||
|     "sourceRange": [ | ||||
|       1343, | ||||
|       1379, | ||||
|       0 | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "length": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": 1.0, | ||||
|           "ty": { | ||||
|             "type": "Default", | ||||
|             "len": { | ||||
|               "type": "Mm" | ||||
|             }, | ||||
|             "angle": { | ||||
|               "type": "Degrees" | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1204, | ||||
|           1217, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       1184, | ||||
|       1218, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "Sketch", | ||||
|         "value": { | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         1192, | ||||
|         1193, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionReturn" | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionCall", | ||||
|     "name": "sketchRectangle", | ||||
|     "functionSourceRange": [ | ||||
|       737, | ||||
|       1309, | ||||
|       0 | ||||
|     ], | ||||
|     "unlabeledArg": null, | ||||
|     "labeledArgs": {}, | ||||
|     "sourceRange": [ | ||||
|       1380, | ||||
|       1418, | ||||
|       0 | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "length": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": 1.0, | ||||
|           "ty": { | ||||
|             "type": "Default", | ||||
|             "len": { | ||||
|               "type": "Mm" | ||||
|             }, | ||||
|             "angle": { | ||||
|               "type": "Degrees" | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1204, | ||||
|           1217, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       1184, | ||||
|       1218, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "Sketch", | ||||
|         "value": { | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         1192, | ||||
|         1193, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionReturn" | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionCall", | ||||
|     "name": "sketchRectangle", | ||||
|     "functionSourceRange": [ | ||||
|       737, | ||||
|       1309, | ||||
|       0 | ||||
|     ], | ||||
|     "unlabeledArg": null, | ||||
|     "labeledArgs": {}, | ||||
|     "sourceRange": [ | ||||
|       1419, | ||||
|       1456, | ||||
|       0 | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "length": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": 1.0, | ||||
|           "ty": { | ||||
|             "type": "Default", | ||||
|             "len": { | ||||
|               "type": "Mm" | ||||
|             }, | ||||
|             "angle": { | ||||
|               "type": "Degrees" | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1204, | ||||
|           1217, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       1184, | ||||
|       1218, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "Sketch", | ||||
|         "value": { | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         1192, | ||||
|         1193, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionReturn" | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionCall", | ||||
|     "name": "sketchRectangle", | ||||
|     "functionSourceRange": [ | ||||
|       737, | ||||
|       1309, | ||||
|       0 | ||||
|     ], | ||||
|     "unlabeledArg": null, | ||||
|     "labeledArgs": {}, | ||||
|     "sourceRange": [ | ||||
|       1457, | ||||
|       1492, | ||||
|       0 | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "length": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": 1.0, | ||||
|           "ty": { | ||||
|             "type": "Default", | ||||
|             "len": { | ||||
|               "type": "Mm" | ||||
|             }, | ||||
|             "angle": { | ||||
|               "type": "Degrees" | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1204, | ||||
|           1217, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       1184, | ||||
|       1218, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "Sketch", | ||||
|         "value": { | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         1192, | ||||
|         1193, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionReturn" | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionCall", | ||||
|     "name": "sketchRectangle", | ||||
|     "functionSourceRange": [ | ||||
|       737, | ||||
|       1309, | ||||
|       0 | ||||
|     ], | ||||
|     "unlabeledArg": null, | ||||
|     "labeledArgs": {}, | ||||
|     "sourceRange": [ | ||||
|       1493, | ||||
|       1529, | ||||
|       0 | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "length": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": 1.0, | ||||
|           "ty": { | ||||
|             "type": "Default", | ||||
|             "len": { | ||||
|               "type": "Mm" | ||||
|             }, | ||||
|             "angle": { | ||||
|               "type": "Degrees" | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1204, | ||||
|           1217, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       1184, | ||||
|       1218, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "Sketch", | ||||
|         "value": { | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         1192, | ||||
|         1193, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionReturn" | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionCall", | ||||
|     "name": "sketchRectangle", | ||||
|     "functionSourceRange": [ | ||||
|       737, | ||||
|       1309, | ||||
|       0 | ||||
|     ], | ||||
|     "unlabeledArg": null, | ||||
|     "labeledArgs": {}, | ||||
|     "sourceRange": [ | ||||
|       1530, | ||||
|       1568, | ||||
|       0 | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "length": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": 1.0, | ||||
|           "ty": { | ||||
|             "type": "Default", | ||||
|             "len": { | ||||
|               "type": "Mm" | ||||
|             }, | ||||
|             "angle": { | ||||
|               "type": "Degrees" | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1204, | ||||
|           1217, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       1184, | ||||
|       1218, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "Sketch", | ||||
|         "value": { | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         1192, | ||||
|         1193, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionReturn" | ||||
|   } | ||||
| ] | ||||
							
								
								
									
										321
									
								
								rust/kcl-lib/tests/kcl_samples/color-cube/program_memory.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @ -0,0 +1,321 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Variables in memory after executing color-cube.kcl | ||||
| --- | ||||
| { | ||||
|   "bluePlane": { | ||||
|     "type": "Plane", | ||||
|     "value": { | ||||
|       "id": "[uuid]", | ||||
|       "artifactId": "[uuid]", | ||||
|       "value": "Custom", | ||||
|       "origin": { | ||||
|         "x": 0.0, | ||||
|         "y": 0.0, | ||||
|         "z": 50.0 | ||||
|       }, | ||||
|       "xAxis": { | ||||
|         "x": 1.0, | ||||
|         "y": 0.0, | ||||
|         "z": 0.0 | ||||
|       }, | ||||
|       "yAxis": { | ||||
|         "x": 0.0, | ||||
|         "y": 1.0, | ||||
|         "z": 0.0 | ||||
|       }, | ||||
|       "zAxis": { | ||||
|         "x": 0.0, | ||||
|         "y": 0.0, | ||||
|         "z": 1.0 | ||||
|       }, | ||||
|       "units": { | ||||
|         "type": "Mm" | ||||
|       }, | ||||
|       "__meta": [] | ||||
|     } | ||||
|   }, | ||||
|   "extrudeLength": { | ||||
|     "type": "Number", | ||||
|     "value": 1.0, | ||||
|     "ty": { | ||||
|       "type": "Default", | ||||
|       "len": { | ||||
|         "type": "Mm" | ||||
|       }, | ||||
|       "angle": { | ||||
|         "type": "Degrees" | ||||
|       } | ||||
|     }, | ||||
|     "__meta": [ | ||||
|       { | ||||
|         "sourceRange": [ | ||||
|           252, | ||||
|           255, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     ] | ||||
|   }, | ||||
|   "greenPlane": { | ||||
|     "type": "Plane", | ||||
|     "value": { | ||||
|       "id": "[uuid]", | ||||
|       "artifactId": "[uuid]", | ||||
|       "value": "Custom", | ||||
|       "origin": { | ||||
|         "x": 0.0, | ||||
|         "y": 50.0, | ||||
|         "z": 0.0 | ||||
|       }, | ||||
|       "xAxis": { | ||||
|         "x": 1.0, | ||||
|         "y": 0.0, | ||||
|         "z": 0.0 | ||||
|       }, | ||||
|       "yAxis": { | ||||
|         "x": 0.0, | ||||
|         "y": 0.0, | ||||
|         "z": 1.0 | ||||
|       }, | ||||
|       "zAxis": { | ||||
|         "x": 0.0, | ||||
|         "y": -1.0, | ||||
|         "z": 0.0 | ||||
|       }, | ||||
|       "units": { | ||||
|         "type": "Mm" | ||||
|       }, | ||||
|       "__meta": [] | ||||
|     } | ||||
|   }, | ||||
|   "halfSize": { | ||||
|     "type": "Number", | ||||
|     "value": 50.0, | ||||
|     "ty": { | ||||
|       "type": "Unknown" | ||||
|     }, | ||||
|     "__meta": [ | ||||
|       { | ||||
|         "sourceRange": [ | ||||
|           214, | ||||
|           217, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       { | ||||
|         "sourceRange": [ | ||||
|           234, | ||||
|           235, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     ] | ||||
|   }, | ||||
|   "metalConstant": { | ||||
|     "type": "Number", | ||||
|     "value": 50.0, | ||||
|     "ty": { | ||||
|       "type": "Default", | ||||
|       "len": { | ||||
|         "type": "Mm" | ||||
|       }, | ||||
|       "angle": { | ||||
|         "type": "Degrees" | ||||
|       } | ||||
|     }, | ||||
|     "__meta": [ | ||||
|       { | ||||
|         "sourceRange": [ | ||||
|           272, | ||||
|           274, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     ] | ||||
|   }, | ||||
|   "purplePlane": { | ||||
|     "type": "Plane", | ||||
|     "value": { | ||||
|       "id": "[uuid]", | ||||
|       "artifactId": "[uuid]", | ||||
|       "value": "Custom", | ||||
|       "origin": { | ||||
|         "x": 0.0, | ||||
|         "y": -50.0, | ||||
|         "z": 0.0 | ||||
|       }, | ||||
|       "xAxis": { | ||||
|         "x": -1.0, | ||||
|         "y": 0.0, | ||||
|         "z": 0.0 | ||||
|       }, | ||||
|       "yAxis": { | ||||
|         "x": 0.0, | ||||
|         "y": 0.0, | ||||
|         "z": 1.0 | ||||
|       }, | ||||
|       "zAxis": { | ||||
|         "x": 0.0, | ||||
|         "y": 1.0, | ||||
|         "z": 0.0 | ||||
|       }, | ||||
|       "units": { | ||||
|         "type": "Mm" | ||||
|       }, | ||||
|       "__meta": [] | ||||
|     } | ||||
|   }, | ||||
|   "redPlane": { | ||||
|     "type": "Plane", | ||||
|     "value": { | ||||
|       "id": "[uuid]", | ||||
|       "artifactId": "[uuid]", | ||||
|       "value": "Custom", | ||||
|       "origin": { | ||||
|         "x": 49.0, | ||||
|         "y": 0.0, | ||||
|         "z": 0.0 | ||||
|       }, | ||||
|       "xAxis": { | ||||
|         "x": 0.0, | ||||
|         "y": 1.0, | ||||
|         "z": 0.0 | ||||
|       }, | ||||
|       "yAxis": { | ||||
|         "x": 0.0, | ||||
|         "y": 0.0, | ||||
|         "z": 1.0 | ||||
|       }, | ||||
|       "zAxis": { | ||||
|         "x": 1.0, | ||||
|         "y": 0.0, | ||||
|         "z": 0.0 | ||||
|       }, | ||||
|       "units": { | ||||
|         "type": "Mm" | ||||
|       }, | ||||
|       "__meta": [] | ||||
|     } | ||||
|   }, | ||||
|   "roughnessConstant": { | ||||
|     "type": "Number", | ||||
|     "value": 50.0, | ||||
|     "ty": { | ||||
|       "type": "Default", | ||||
|       "len": { | ||||
|         "type": "Mm" | ||||
|       }, | ||||
|       "angle": { | ||||
|         "type": "Degrees" | ||||
|       } | ||||
|     }, | ||||
|     "__meta": [ | ||||
|       { | ||||
|         "sourceRange": [ | ||||
|           295, | ||||
|           297, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     ] | ||||
|   }, | ||||
|   "size": { | ||||
|     "type": "Number", | ||||
|     "value": 100.0, | ||||
|     "ty": { | ||||
|       "type": "Default", | ||||
|       "len": { | ||||
|         "type": "Mm" | ||||
|       }, | ||||
|       "angle": { | ||||
|         "type": "Degrees" | ||||
|       } | ||||
|     }, | ||||
|     "__meta": [ | ||||
|       { | ||||
|         "sourceRange": [ | ||||
|           214, | ||||
|           217, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     ] | ||||
|   }, | ||||
|   "sketchRectangle": { | ||||
|     "type": "Function", | ||||
|     "__meta": [ | ||||
|       { | ||||
|         "sourceRange": [ | ||||
|           737, | ||||
|           1309, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     ] | ||||
|   }, | ||||
|   "tealPlane": { | ||||
|     "type": "Plane", | ||||
|     "value": { | ||||
|       "id": "[uuid]", | ||||
|       "artifactId": "[uuid]", | ||||
|       "value": "Custom", | ||||
|       "origin": { | ||||
|         "x": -50.0, | ||||
|         "y": 0.0, | ||||
|         "z": 0.0 | ||||
|       }, | ||||
|       "xAxis": { | ||||
|         "x": 0.0, | ||||
|         "y": 1.0, | ||||
|         "z": 0.0 | ||||
|       }, | ||||
|       "yAxis": { | ||||
|         "x": 0.0, | ||||
|         "y": 0.0, | ||||
|         "z": 1.0 | ||||
|       }, | ||||
|       "zAxis": { | ||||
|         "x": 1.0, | ||||
|         "y": 0.0, | ||||
|         "z": 0.0 | ||||
|       }, | ||||
|       "units": { | ||||
|         "type": "Mm" | ||||
|       }, | ||||
|       "__meta": [] | ||||
|     } | ||||
|   }, | ||||
|   "yellowPlane": { | ||||
|     "type": "Plane", | ||||
|     "value": { | ||||
|       "id": "[uuid]", | ||||
|       "artifactId": "[uuid]", | ||||
|       "value": "Custom", | ||||
|       "origin": { | ||||
|         "x": 0.0, | ||||
|         "y": 0.0, | ||||
|         "z": -50.0 | ||||
|       }, | ||||
|       "xAxis": { | ||||
|         "x": 1.0, | ||||
|         "y": 0.0, | ||||
|         "z": 0.0 | ||||
|       }, | ||||
|       "yAxis": { | ||||
|         "x": 0.0, | ||||
|         "y": 1.0, | ||||
|         "z": 0.0 | ||||
|       }, | ||||
|       "zAxis": { | ||||
|         "x": 0.0, | ||||
|         "y": 0.0, | ||||
|         "z": 1.0 | ||||
|       }, | ||||
|       "units": { | ||||
|         "type": "Mm" | ||||
|       }, | ||||
|       "__meta": [] | ||||
|     } | ||||
|   } | ||||
| } | ||||
							
								
								
									
										
											BIN
										
									
								
								rust/kcl-lib/tests/kcl_samples/color-cube/rendered_model.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 90 KiB | 
							
								
								
									
										1676
									
								
								rust/kcl-lib/tests/kcl_samples/cycloidal-gear/artifact_commands.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @ -0,0 +1,6 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| description: Artifact graph flowchart cycloidal-gear.kcl | ||||
| extension: md | ||||
| snapshot_kind: binary | ||||
| --- | ||||
| @ -0,0 +1,152 @@ | ||||
| ```mermaid | ||||
| flowchart LR | ||||
|   subgraph path2 [Path] | ||||
|     2["Path<br>[590, 824, 0]"] | ||||
|     3["Segment<br>[834, 967, 0]"] | ||||
|     4["Segment<br>[977, 1068, 0]"] | ||||
|     5["Segment<br>[1078, 1133, 0]"] | ||||
|     6["Segment<br>[1143, 1234, 0]"] | ||||
|     7["Segment<br>[1244, 1299, 0]"] | ||||
|     8["Segment<br>[1309, 1365, 0]"] | ||||
|     9["Segment<br>[1375, 1383, 0]"] | ||||
|     10[Solid2d] | ||||
|   end | ||||
|   subgraph path11 [Path] | ||||
|     11["Path<br>[1398, 1481, 0]"] | ||||
|     12["Segment<br>[1398, 1481, 0]"] | ||||
|     13[Solid2d] | ||||
|   end | ||||
|   subgraph path15 [Path] | ||||
|     15["Path<br>[590, 824, 0]"] | ||||
|     16["Segment<br>[834, 967, 0]"] | ||||
|     17["Segment<br>[977, 1068, 0]"] | ||||
|     18["Segment<br>[1078, 1133, 0]"] | ||||
|     19["Segment<br>[1143, 1234, 0]"] | ||||
|     20["Segment<br>[1244, 1299, 0]"] | ||||
|     21["Segment<br>[1309, 1365, 0]"] | ||||
|     22["Segment<br>[1375, 1383, 0]"] | ||||
|     23[Solid2d] | ||||
|   end | ||||
|   subgraph path24 [Path] | ||||
|     24["Path<br>[1398, 1481, 0]"] | ||||
|     25["Segment<br>[1398, 1481, 0]"] | ||||
|     26[Solid2d] | ||||
|   end | ||||
|   subgraph path28 [Path] | ||||
|     28["Path<br>[590, 824, 0]"] | ||||
|     35["Segment<br>[1375, 1383, 0]"] | ||||
|     36[Solid2d] | ||||
|   end | ||||
|   subgraph path37 [Path] | ||||
|     37["Path<br>[1398, 1481, 0]"] | ||||
|     38["Segment<br>[1398, 1481, 0]"] | ||||
|     39[Solid2d] | ||||
|   end | ||||
|   1["Plane<br>[544, 579, 0]"] | ||||
|   14["Plane<br>[544, 579, 0]"] | ||||
|   27["Plane<br>[544, 579, 0]"] | ||||
|   29["SweepEdge Opposite"] | ||||
|   30["SweepEdge Opposite"] | ||||
|   31["SweepEdge Opposite"] | ||||
|   32["SweepEdge Opposite"] | ||||
|   33["SweepEdge Opposite"] | ||||
|   34["SweepEdge Opposite"] | ||||
|   40["Sweep Loft<br>[1611, 1700, 0]"] | ||||
|   41[Wall] | ||||
|   42[Wall] | ||||
|   43[Wall] | ||||
|   44[Wall] | ||||
|   45[Wall] | ||||
|   46[Wall] | ||||
|   47["Cap Start"] | ||||
|   48["Cap End"] | ||||
|   49["SweepEdge Adjacent"] | ||||
|   50["SweepEdge Adjacent"] | ||||
|   51["SweepEdge Adjacent"] | ||||
|   52["SweepEdge Adjacent"] | ||||
|   53["SweepEdge Adjacent"] | ||||
|   54["SweepEdge Adjacent"] | ||||
|   55["StartSketchOnPlane<br>[530, 580, 0]"] | ||||
|   56["StartSketchOnPlane<br>[530, 580, 0]"] | ||||
|   57["StartSketchOnPlane<br>[530, 580, 0]"] | ||||
|   1 --- 2 | ||||
|   1 --- 11 | ||||
|   2 --- 3 | ||||
|   2 --- 4 | ||||
|   2 --- 5 | ||||
|   2 --- 6 | ||||
|   2 --- 7 | ||||
|   2 --- 8 | ||||
|   2 --- 9 | ||||
|   2 ---- 40 | ||||
|   2 --- 10 | ||||
|   3 --- 41 | ||||
|   3 --- 29 | ||||
|   3 --- 49 | ||||
|   4 --- 42 | ||||
|   4 --- 30 | ||||
|   4 --- 50 | ||||
|   5 --- 43 | ||||
|   5 --- 31 | ||||
|   5 --- 51 | ||||
|   6 --- 44 | ||||
|   6 --- 32 | ||||
|   6 --- 52 | ||||
|   7 --- 45 | ||||
|   7 --- 33 | ||||
|   7 --- 53 | ||||
|   8 --- 46 | ||||
|   8 --- 34 | ||||
|   8 --- 54 | ||||
|   11 --- 12 | ||||
|   11 --- 13 | ||||
|   14 --- 15 | ||||
|   14 --- 24 | ||||
|   15 --- 16 | ||||
|   15 --- 17 | ||||
|   15 --- 18 | ||||
|   15 --- 19 | ||||
|   15 --- 20 | ||||
|   15 --- 21 | ||||
|   15 --- 22 | ||||
|   15 x---> 40 | ||||
|   15 --- 23 | ||||
|   24 --- 25 | ||||
|   24 --- 26 | ||||
|   27 --- 28 | ||||
|   27 --- 37 | ||||
|   28 x--> 29 | ||||
|   28 x--> 30 | ||||
|   28 x--> 31 | ||||
|   28 x--> 32 | ||||
|   28 x--> 33 | ||||
|   28 x--> 34 | ||||
|   28 --- 35 | ||||
|   28 x---> 40 | ||||
|   28 --- 36 | ||||
|   40 --- 29 | ||||
|   40 --- 30 | ||||
|   40 --- 31 | ||||
|   40 --- 32 | ||||
|   40 --- 33 | ||||
|   40 --- 34 | ||||
|   37 --- 38 | ||||
|   37 --- 39 | ||||
|   40 --- 41 | ||||
|   40 --- 42 | ||||
|   40 --- 43 | ||||
|   40 --- 44 | ||||
|   40 --- 45 | ||||
|   40 --- 46 | ||||
|   40 --- 47 | ||||
|   40 --- 48 | ||||
|   40 --- 49 | ||||
|   40 --- 50 | ||||
|   40 --- 51 | ||||
|   40 --- 52 | ||||
|   40 --- 53 | ||||
|   40 --- 54 | ||||
|   1 <--x 55 | ||||
|   14 <--x 56 | ||||
|   27 <--x 57 | ||||
| ``` | ||||
							
								
								
									
										1538
									
								
								rust/kcl-lib/tests/kcl_samples/cycloidal-gear/ast.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										655
									
								
								rust/kcl-lib/tests/kcl_samples/cycloidal-gear/ops.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @ -0,0 +1,655 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| description: Operations executed cycloidal-gear.kcl | ||||
| --- | ||||
| [ | ||||
|   { | ||||
|     "type": "UserDefinedFunctionCall", | ||||
|     "name": "cycloidalGear", | ||||
|     "functionSourceRange": [ | ||||
|       222, | ||||
|       1721, | ||||
|       0 | ||||
|     ], | ||||
|     "unlabeledArg": null, | ||||
|     "labeledArgs": {}, | ||||
|     "sourceRange": [ | ||||
|       1723, | ||||
|       1757, | ||||
|       0 | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionCall", | ||||
|     "name": "gearSketch", | ||||
|     "functionSourceRange": [ | ||||
|       448, | ||||
|       1512, | ||||
|       0 | ||||
|     ], | ||||
|     "unlabeledArg": null, | ||||
|     "labeledArgs": {}, | ||||
|     "sourceRange": [ | ||||
|       1622, | ||||
|       1635, | ||||
|       0 | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "offset": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": 0.0, | ||||
|           "ty": { | ||||
|             "type": "Default", | ||||
|             "len": { | ||||
|               "type": "Inches" | ||||
|             }, | ||||
|             "angle": { | ||||
|               "type": "Degrees" | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           571, | ||||
|           578, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "offsetPlane", | ||||
|     "sourceRange": [ | ||||
|       544, | ||||
|       579, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "String", | ||||
|         "value": "XY" | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         556, | ||||
|         560, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "data": { | ||||
|         "value": { | ||||
|           "type": "Plane", | ||||
|           "artifact_id": "[uuid]" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           544, | ||||
|           579, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       530, | ||||
|       580, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionCall", | ||||
|     "name": "cos", | ||||
|     "functionSourceRange": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "unlabeledArg": null, | ||||
|     "labeledArgs": {}, | ||||
|     "sourceRange": [ | ||||
|       637, | ||||
|       664, | ||||
|       0 | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionReturn" | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionCall", | ||||
|     "name": "sin", | ||||
|     "functionSourceRange": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "unlabeledArg": null, | ||||
|     "labeledArgs": {}, | ||||
|     "sourceRange": [ | ||||
|       679, | ||||
|       707, | ||||
|       0 | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionReturn" | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionCall", | ||||
|     "name": "sin", | ||||
|     "functionSourceRange": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "unlabeledArg": null, | ||||
|     "labeledArgs": {}, | ||||
|     "sourceRange": [ | ||||
|       739, | ||||
|       766, | ||||
|       0 | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionReturn" | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionCall", | ||||
|     "name": "cos", | ||||
|     "functionSourceRange": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "unlabeledArg": null, | ||||
|     "labeledArgs": {}, | ||||
|     "sourceRange": [ | ||||
|       781, | ||||
|       809, | ||||
|       0 | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionReturn" | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "holeSketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1398, | ||||
|           1481, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "sketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1483, | ||||
|           1484, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "hole", | ||||
|     "sourceRange": [ | ||||
|       1393, | ||||
|       1485, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionReturn" | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionCall", | ||||
|     "name": "gearSketch", | ||||
|     "functionSourceRange": [ | ||||
|       448, | ||||
|       1512, | ||||
|       0 | ||||
|     ], | ||||
|     "unlabeledArg": null, | ||||
|     "labeledArgs": {}, | ||||
|     "sourceRange": [ | ||||
|       1641, | ||||
|       1667, | ||||
|       0 | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "offset": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": 0.75, | ||||
|           "ty": { | ||||
|             "type": "Unknown" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           571, | ||||
|           578, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "offsetPlane", | ||||
|     "sourceRange": [ | ||||
|       544, | ||||
|       579, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "String", | ||||
|         "value": "XY" | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         556, | ||||
|         560, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "data": { | ||||
|         "value": { | ||||
|           "type": "Plane", | ||||
|           "artifact_id": "[uuid]" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           544, | ||||
|           579, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       530, | ||||
|       580, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionCall", | ||||
|     "name": "cos", | ||||
|     "functionSourceRange": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "unlabeledArg": null, | ||||
|     "labeledArgs": {}, | ||||
|     "sourceRange": [ | ||||
|       637, | ||||
|       664, | ||||
|       0 | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionReturn" | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionCall", | ||||
|     "name": "sin", | ||||
|     "functionSourceRange": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "unlabeledArg": null, | ||||
|     "labeledArgs": {}, | ||||
|     "sourceRange": [ | ||||
|       679, | ||||
|       707, | ||||
|       0 | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionReturn" | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionCall", | ||||
|     "name": "sin", | ||||
|     "functionSourceRange": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "unlabeledArg": null, | ||||
|     "labeledArgs": {}, | ||||
|     "sourceRange": [ | ||||
|       739, | ||||
|       766, | ||||
|       0 | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionReturn" | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionCall", | ||||
|     "name": "cos", | ||||
|     "functionSourceRange": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "unlabeledArg": null, | ||||
|     "labeledArgs": {}, | ||||
|     "sourceRange": [ | ||||
|       781, | ||||
|       809, | ||||
|       0 | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionReturn" | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "holeSketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1398, | ||||
|           1481, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "sketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1483, | ||||
|           1484, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "hole", | ||||
|     "sourceRange": [ | ||||
|       1393, | ||||
|       1485, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionReturn" | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionCall", | ||||
|     "name": "gearSketch", | ||||
|     "functionSourceRange": [ | ||||
|       448, | ||||
|       1512, | ||||
|       0 | ||||
|     ], | ||||
|     "unlabeledArg": null, | ||||
|     "labeledArgs": {}, | ||||
|     "sourceRange": [ | ||||
|       1673, | ||||
|       1695, | ||||
|       0 | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "offset": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": 1.5, | ||||
|           "ty": { | ||||
|             "type": "Default", | ||||
|             "len": { | ||||
|               "type": "Inches" | ||||
|             }, | ||||
|             "angle": { | ||||
|               "type": "Degrees" | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           571, | ||||
|           578, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "offsetPlane", | ||||
|     "sourceRange": [ | ||||
|       544, | ||||
|       579, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "String", | ||||
|         "value": "XY" | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         556, | ||||
|         560, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "data": { | ||||
|         "value": { | ||||
|           "type": "Plane", | ||||
|           "artifact_id": "[uuid]" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           544, | ||||
|           579, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       530, | ||||
|       580, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionCall", | ||||
|     "name": "cos", | ||||
|     "functionSourceRange": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "unlabeledArg": null, | ||||
|     "labeledArgs": {}, | ||||
|     "sourceRange": [ | ||||
|       637, | ||||
|       664, | ||||
|       0 | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionReturn" | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionCall", | ||||
|     "name": "sin", | ||||
|     "functionSourceRange": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "unlabeledArg": null, | ||||
|     "labeledArgs": {}, | ||||
|     "sourceRange": [ | ||||
|       679, | ||||
|       707, | ||||
|       0 | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionReturn" | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionCall", | ||||
|     "name": "sin", | ||||
|     "functionSourceRange": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "unlabeledArg": null, | ||||
|     "labeledArgs": {}, | ||||
|     "sourceRange": [ | ||||
|       739, | ||||
|       766, | ||||
|       0 | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionReturn" | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionCall", | ||||
|     "name": "cos", | ||||
|     "functionSourceRange": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "unlabeledArg": null, | ||||
|     "labeledArgs": {}, | ||||
|     "sourceRange": [ | ||||
|       781, | ||||
|       809, | ||||
|       0 | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionReturn" | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "holeSketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1398, | ||||
|           1481, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "sketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1483, | ||||
|           1484, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "hole", | ||||
|     "sourceRange": [ | ||||
|       1393, | ||||
|       1485, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionReturn" | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "sketches": { | ||||
|         "value": { | ||||
|           "type": "Array", | ||||
|           "value": [ | ||||
|             { | ||||
|               "type": "Sketch", | ||||
|               "value": { | ||||
|                 "artifactId": "[uuid]" | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "type": "Sketch", | ||||
|               "value": { | ||||
|                 "artifactId": "[uuid]" | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "type": "Sketch", | ||||
|               "value": { | ||||
|                 "artifactId": "[uuid]" | ||||
|               } | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1616, | ||||
|           1699, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "loft", | ||||
|     "sourceRange": [ | ||||
|       1611, | ||||
|       1700, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionReturn" | ||||
|   } | ||||
| ] | ||||
| @ -0,0 +1,18 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| description: Variables in memory after executing cycloidal-gear.kcl | ||||
| --- | ||||
| { | ||||
|   "cycloidalGear": { | ||||
|     "type": "Function", | ||||
|     "__meta": [ | ||||
|       { | ||||
|         "sourceRange": [ | ||||
|           222, | ||||
|           1721, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     ] | ||||
|   } | ||||
| } | ||||
							
								
								
									
										
											BIN
										
									
								
								rust/kcl-lib/tests/kcl_samples/cycloidal-gear/rendered_model.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 117 KiB | 
							
								
								
									
										1292
									
								
								rust/kcl-lib/tests/kcl_samples/dodecahedron/artifact_commands.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @ -0,0 +1,6 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| description: Artifact graph flowchart dodecahedron.kcl | ||||
| extension: md | ||||
| snapshot_kind: binary | ||||
| --- | ||||
| @ -0,0 +1,143 @@ | ||||
| ```mermaid | ||||
| flowchart LR | ||||
|   subgraph path2 [Path] | ||||
|     2["Path<br>[1164, 1276, 0]"] | ||||
|     3["Segment<br>[1164, 1276, 0]"] | ||||
|     4["Segment<br>[1164, 1276, 0]"] | ||||
|     5["Segment<br>[1164, 1276, 0]"] | ||||
|     6["Segment<br>[1164, 1276, 0]"] | ||||
|     7["Segment<br>[1164, 1276, 0]"] | ||||
|     8["Segment<br>[1164, 1276, 0]"] | ||||
|     9[Solid2d] | ||||
|   end | ||||
|   subgraph path11 [Path] | ||||
|     11["Path<br>[1321, 1433, 0]"] | ||||
|     12["Segment<br>[1321, 1433, 0]"] | ||||
|     13["Segment<br>[1321, 1433, 0]"] | ||||
|     14["Segment<br>[1321, 1433, 0]"] | ||||
|     15["Segment<br>[1321, 1433, 0]"] | ||||
|     16["Segment<br>[1321, 1433, 0]"] | ||||
|     17["Segment<br>[1321, 1433, 0]"] | ||||
|     18[Solid2d] | ||||
|   end | ||||
|   1["Plane<br>[1139, 1158, 0]"] | ||||
|   10["Plane<br>[1295, 1315, 0]"] | ||||
|   19["Sweep Extrusion<br>[1479, 1522, 0]"] | ||||
|   20[Wall] | ||||
|   21[Wall] | ||||
|   22[Wall] | ||||
|   23[Wall] | ||||
|   24[Wall] | ||||
|   25["Cap Start"] | ||||
|   26["Cap End"] | ||||
|   27["SweepEdge Opposite"] | ||||
|   28["SweepEdge Adjacent"] | ||||
|   29["SweepEdge Opposite"] | ||||
|   30["SweepEdge Adjacent"] | ||||
|   31["SweepEdge Opposite"] | ||||
|   32["SweepEdge Adjacent"] | ||||
|   33["SweepEdge Opposite"] | ||||
|   34["SweepEdge Adjacent"] | ||||
|   35["SweepEdge Opposite"] | ||||
|   36["SweepEdge Adjacent"] | ||||
|   37["Sweep Extrusion<br>[1536, 1583, 0]"] | ||||
|   38[Wall] | ||||
|   39[Wall] | ||||
|   40[Wall] | ||||
|   41[Wall] | ||||
|   42[Wall] | ||||
|   43["Cap Start"] | ||||
|   44["Cap End"] | ||||
|   45["SweepEdge Opposite"] | ||||
|   46["SweepEdge Adjacent"] | ||||
|   47["SweepEdge Opposite"] | ||||
|   48["SweepEdge Adjacent"] | ||||
|   49["SweepEdge Opposite"] | ||||
|   50["SweepEdge Adjacent"] | ||||
|   51["SweepEdge Opposite"] | ||||
|   52["SweepEdge Adjacent"] | ||||
|   53["SweepEdge Opposite"] | ||||
|   54["SweepEdge Adjacent"] | ||||
|   1 --- 2 | ||||
|   2 --- 3 | ||||
|   2 --- 4 | ||||
|   2 --- 5 | ||||
|   2 --- 6 | ||||
|   2 --- 7 | ||||
|   2 --- 8 | ||||
|   2 ---- 19 | ||||
|   2 --- 9 | ||||
|   3 --- 20 | ||||
|   3 --- 27 | ||||
|   3 --- 28 | ||||
|   4 --- 21 | ||||
|   4 --- 29 | ||||
|   4 --- 30 | ||||
|   5 --- 22 | ||||
|   5 --- 31 | ||||
|   5 --- 32 | ||||
|   6 --- 23 | ||||
|   6 --- 33 | ||||
|   6 --- 34 | ||||
|   7 --- 24 | ||||
|   7 --- 35 | ||||
|   7 --- 36 | ||||
|   10 --- 11 | ||||
|   11 --- 12 | ||||
|   11 --- 13 | ||||
|   11 --- 14 | ||||
|   11 --- 15 | ||||
|   11 --- 16 | ||||
|   11 --- 17 | ||||
|   11 ---- 37 | ||||
|   11 --- 18 | ||||
|   12 --- 42 | ||||
|   12 --- 53 | ||||
|   12 --- 54 | ||||
|   13 --- 41 | ||||
|   13 --- 51 | ||||
|   13 --- 52 | ||||
|   14 --- 40 | ||||
|   14 --- 49 | ||||
|   14 --- 50 | ||||
|   15 --- 39 | ||||
|   15 --- 47 | ||||
|   15 --- 48 | ||||
|   16 --- 38 | ||||
|   16 --- 45 | ||||
|   16 --- 46 | ||||
|   19 --- 20 | ||||
|   19 --- 21 | ||||
|   19 --- 22 | ||||
|   19 --- 23 | ||||
|   19 --- 24 | ||||
|   19 --- 25 | ||||
|   19 --- 26 | ||||
|   19 --- 27 | ||||
|   19 --- 28 | ||||
|   19 --- 29 | ||||
|   19 --- 30 | ||||
|   19 --- 31 | ||||
|   19 --- 32 | ||||
|   19 --- 33 | ||||
|   19 --- 34 | ||||
|   19 --- 35 | ||||
|   19 --- 36 | ||||
|   37 --- 38 | ||||
|   37 --- 39 | ||||
|   37 --- 40 | ||||
|   37 --- 41 | ||||
|   37 --- 42 | ||||
|   37 --- 43 | ||||
|   37 --- 44 | ||||
|   37 --- 45 | ||||
|   37 --- 46 | ||||
|   37 --- 47 | ||||
|   37 --- 48 | ||||
|   37 --- 49 | ||||
|   37 --- 50 | ||||
|   37 --- 51 | ||||
|   37 --- 52 | ||||
|   37 --- 53 | ||||
|   37 --- 54 | ||||
| ``` | ||||
							
								
								
									
										2245
									
								
								rust/kcl-lib/tests/kcl_samples/dodecahedron/ast.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										944
									
								
								rust/kcl-lib/tests/kcl_samples/dodecahedron/ops.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @ -0,0 +1,944 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| description: Operations executed dodecahedron.kcl | ||||
| --- | ||||
| [ | ||||
|   { | ||||
|     "type": "UserDefinedFunctionCall", | ||||
|     "name": "sin", | ||||
|     "functionSourceRange": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "unlabeledArg": null, | ||||
|     "labeledArgs": {}, | ||||
|     "sourceRange": [ | ||||
|       693, | ||||
|       711, | ||||
|       0 | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionReturn" | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionCall", | ||||
|     "name": "cos", | ||||
|     "functionSourceRange": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "unlabeledArg": null, | ||||
|     "labeledArgs": {}, | ||||
|     "sourceRange": [ | ||||
|       810, | ||||
|       850, | ||||
|       0 | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionReturn" | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionCall", | ||||
|     "name": "sin", | ||||
|     "functionSourceRange": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "unlabeledArg": null, | ||||
|     "labeledArgs": {}, | ||||
|     "sourceRange": [ | ||||
|       884, | ||||
|       924, | ||||
|       0 | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionReturn" | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionCall", | ||||
|     "name": "cos", | ||||
|     "functionSourceRange": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "unlabeledArg": null, | ||||
|     "labeledArgs": {}, | ||||
|     "sourceRange": [ | ||||
|       946, | ||||
|       959, | ||||
|       0 | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionReturn" | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionCall", | ||||
|     "name": "sin", | ||||
|     "functionSourceRange": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "unlabeledArg": null, | ||||
|     "labeledArgs": {}, | ||||
|     "sourceRange": [ | ||||
|       966, | ||||
|       979, | ||||
|       0 | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionReturn" | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionCall", | ||||
|     "name": "sin", | ||||
|     "functionSourceRange": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "unlabeledArg": null, | ||||
|     "labeledArgs": {}, | ||||
|     "sourceRange": [ | ||||
|       1018, | ||||
|       1031, | ||||
|       0 | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionReturn" | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionCall", | ||||
|     "name": "cos", | ||||
|     "functionSourceRange": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "unlabeledArg": null, | ||||
|     "labeledArgs": {}, | ||||
|     "sourceRange": [ | ||||
|       1037, | ||||
|       1050, | ||||
|       0 | ||||
|     ] | ||||
|   }, | ||||
|   { | ||||
|     "type": "UserDefinedFunctionReturn" | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "data": { | ||||
|         "value": { | ||||
|           "type": "String", | ||||
|           "value": "XY" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1153, | ||||
|           1157, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       1139, | ||||
|       1158, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "data": { | ||||
|         "value": { | ||||
|           "type": "Object", | ||||
|           "value": { | ||||
|             "plane": { | ||||
|               "type": "Object", | ||||
|               "value": { | ||||
|                 "origin": { | ||||
|                   "type": "Array", | ||||
|                   "value": [ | ||||
|                     { | ||||
|                       "type": "Number", | ||||
|                       "value": -17.76901418668612, | ||||
|                       "ty": { | ||||
|                         "type": "Unknown" | ||||
|                       } | ||||
|                     }, | ||||
|                     { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     { | ||||
|                       "type": "Number", | ||||
|                       "value": 10.981854713951094, | ||||
|                       "ty": { | ||||
|                         "type": "Unknown" | ||||
|                       } | ||||
|                     } | ||||
|                   ] | ||||
|                 }, | ||||
|                 "xAxis": { | ||||
|                   "type": "Array", | ||||
|                   "value": [ | ||||
|                     { | ||||
|                       "type": "Number", | ||||
|                       "value": -0.4472135954999579, | ||||
|                       "ty": { | ||||
|                         "type": "Known", | ||||
|                         "type": "Count" | ||||
|                       } | ||||
|                     }, | ||||
|                     { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.8944271909999159, | ||||
|                       "ty": { | ||||
|                         "type": "Known", | ||||
|                         "type": "Count" | ||||
|                       } | ||||
|                     } | ||||
|                   ] | ||||
|                 }, | ||||
|                 "yAxis": { | ||||
|                   "type": "Array", | ||||
|                   "value": [ | ||||
|                     { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     { | ||||
|                       "type": "Number", | ||||
|                       "value": 1.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     } | ||||
|                   ] | ||||
|                 }, | ||||
|                 "zAxis": { | ||||
|                   "type": "Array", | ||||
|                   "value": [ | ||||
|                     { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.8944271909999159, | ||||
|                       "ty": { | ||||
|                         "type": "Known", | ||||
|                         "type": "Count" | ||||
|                       } | ||||
|                     }, | ||||
|                     { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.4472135954999579, | ||||
|                       "ty": { | ||||
|                         "type": "Known", | ||||
|                         "type": "Count" | ||||
|                       } | ||||
|                     } | ||||
|                   ] | ||||
|                 } | ||||
|               } | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1309, | ||||
|           1314, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       1295, | ||||
|       1315, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "length": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": 5.0, | ||||
|           "ty": { | ||||
|             "type": "Unknown" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1508, | ||||
|           1521, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       1479, | ||||
|       1522, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "Sketch", | ||||
|         "value": { | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         1487, | ||||
|         1497, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "length": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": 5.0, | ||||
|           "ty": { | ||||
|             "type": "Unknown" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1569, | ||||
|           1582, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       1536, | ||||
|       1583, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "Sketch", | ||||
|         "value": { | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         1544, | ||||
|         1558, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "arcDegrees": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": 360.0, | ||||
|           "ty": { | ||||
|             "type": "Default", | ||||
|             "len": { | ||||
|               "type": "Inches" | ||||
|             }, | ||||
|             "angle": { | ||||
|               "type": "Degrees" | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1757, | ||||
|           1760, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "axis": { | ||||
|         "value": { | ||||
|           "type": "Array", | ||||
|           "value": [ | ||||
|             { | ||||
|               "type": "Number", | ||||
|               "value": 0.0, | ||||
|               "ty": { | ||||
|                 "type": "Default", | ||||
|                 "len": { | ||||
|                   "type": "Inches" | ||||
|                 }, | ||||
|                 "angle": { | ||||
|                   "type": "Degrees" | ||||
|                 } | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "type": "Number", | ||||
|               "value": 0.0, | ||||
|               "ty": { | ||||
|                 "type": "Default", | ||||
|                 "len": { | ||||
|                   "type": "Inches" | ||||
|                 }, | ||||
|                 "angle": { | ||||
|                   "type": "Degrees" | ||||
|                 } | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "type": "Number", | ||||
|               "value": 1.0, | ||||
|               "ty": { | ||||
|                 "type": "Default", | ||||
|                 "len": { | ||||
|                   "type": "Inches" | ||||
|                 }, | ||||
|                 "angle": { | ||||
|                   "type": "Degrees" | ||||
|                 } | ||||
|               } | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1709, | ||||
|           1718, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "center": { | ||||
|         "value": { | ||||
|           "type": "Array", | ||||
|           "value": [ | ||||
|             { | ||||
|               "type": "Number", | ||||
|               "value": 0.0, | ||||
|               "ty": { | ||||
|                 "type": "Default", | ||||
|                 "len": { | ||||
|                   "type": "Inches" | ||||
|                 }, | ||||
|                 "angle": { | ||||
|                   "type": "Degrees" | ||||
|                 } | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "type": "Number", | ||||
|               "value": 0.0, | ||||
|               "ty": { | ||||
|                 "type": "Default", | ||||
|                 "len": { | ||||
|                   "type": "Inches" | ||||
|                 }, | ||||
|                 "angle": { | ||||
|                   "type": "Degrees" | ||||
|                 } | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "type": "Number", | ||||
|               "value": 0.0, | ||||
|               "ty": { | ||||
|                 "type": "Default", | ||||
|                 "len": { | ||||
|                   "type": "Inches" | ||||
|                 }, | ||||
|                 "angle": { | ||||
|                   "type": "Degrees" | ||||
|                 } | ||||
|               } | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1731, | ||||
|           1740, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "instances": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": 5.0, | ||||
|           "ty": { | ||||
|             "type": "Default", | ||||
|             "len": { | ||||
|               "type": "Inches" | ||||
|             }, | ||||
|             "angle": { | ||||
|               "type": "Degrees" | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1697, | ||||
|           1698, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "rotateDuplicates": { | ||||
|         "value": { | ||||
|           "type": "Bool", | ||||
|           "value": true | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1783, | ||||
|           1787, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "patternCircular3d", | ||||
|     "sourceRange": [ | ||||
|       1650, | ||||
|       1789, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "Solid", | ||||
|         "value": { | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         1671, | ||||
|         1681, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "arcDegrees": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": 360.0, | ||||
|           "ty": { | ||||
|             "type": "Default", | ||||
|             "len": { | ||||
|               "type": "Inches" | ||||
|             }, | ||||
|             "angle": { | ||||
|               "type": "Degrees" | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1943, | ||||
|           1946, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "axis": { | ||||
|         "value": { | ||||
|           "type": "Array", | ||||
|           "value": [ | ||||
|             { | ||||
|               "type": "Number", | ||||
|               "value": 0.0, | ||||
|               "ty": { | ||||
|                 "type": "Default", | ||||
|                 "len": { | ||||
|                   "type": "Inches" | ||||
|                 }, | ||||
|                 "angle": { | ||||
|                   "type": "Degrees" | ||||
|                 } | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "type": "Number", | ||||
|               "value": 1.0, | ||||
|               "ty": { | ||||
|                 "type": "Default", | ||||
|                 "len": { | ||||
|                   "type": "Inches" | ||||
|                 }, | ||||
|                 "angle": { | ||||
|                   "type": "Degrees" | ||||
|                 } | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "type": "Number", | ||||
|               "value": 0.0, | ||||
|               "ty": { | ||||
|                 "type": "Default", | ||||
|                 "len": { | ||||
|                   "type": "Inches" | ||||
|                 }, | ||||
|                 "angle": { | ||||
|                   "type": "Degrees" | ||||
|                 } | ||||
|               } | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1891, | ||||
|           1900, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "center": { | ||||
|         "value": { | ||||
|           "type": "Array", | ||||
|           "value": [ | ||||
|             { | ||||
|               "type": "Number", | ||||
|               "value": 0.0, | ||||
|               "ty": { | ||||
|                 "type": "Default", | ||||
|                 "len": { | ||||
|                   "type": "Inches" | ||||
|                 }, | ||||
|                 "angle": { | ||||
|                   "type": "Degrees" | ||||
|                 } | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "type": "Number", | ||||
|               "value": 0.0, | ||||
|               "ty": { | ||||
|                 "type": "Default", | ||||
|                 "len": { | ||||
|                   "type": "Inches" | ||||
|                 }, | ||||
|                 "angle": { | ||||
|                   "type": "Degrees" | ||||
|                 } | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "type": "Number", | ||||
|               "value": 19.866361807294155, | ||||
|               "ty": { | ||||
|                 "type": "Unknown" | ||||
|               } | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1913, | ||||
|           1926, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "instances": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": 2.0, | ||||
|           "ty": { | ||||
|             "type": "Default", | ||||
|             "len": { | ||||
|               "type": "Inches" | ||||
|             }, | ||||
|             "angle": { | ||||
|               "type": "Degrees" | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1879, | ||||
|           1880, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "rotateDuplicates": { | ||||
|         "value": { | ||||
|           "type": "Bool", | ||||
|           "value": true | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1969, | ||||
|           1973, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "patternCircular3d", | ||||
|     "sourceRange": [ | ||||
|       1836, | ||||
|       1975, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "Solid", | ||||
|         "value": { | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         1857, | ||||
|         1863, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "arcDegrees": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": 360.0, | ||||
|           "ty": { | ||||
|             "type": "Default", | ||||
|             "len": { | ||||
|               "type": "Inches" | ||||
|             }, | ||||
|             "angle": { | ||||
|               "type": "Degrees" | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           2141, | ||||
|           2144, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "axis": { | ||||
|         "value": { | ||||
|           "type": "Array", | ||||
|           "value": [ | ||||
|             { | ||||
|               "type": "Number", | ||||
|               "value": 0.0, | ||||
|               "ty": { | ||||
|                 "type": "Default", | ||||
|                 "len": { | ||||
|                   "type": "Inches" | ||||
|                 }, | ||||
|                 "angle": { | ||||
|                   "type": "Degrees" | ||||
|                 } | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "type": "Number", | ||||
|               "value": 1.0, | ||||
|               "ty": { | ||||
|                 "type": "Default", | ||||
|                 "len": { | ||||
|                   "type": "Inches" | ||||
|                 }, | ||||
|                 "angle": { | ||||
|                   "type": "Degrees" | ||||
|                 } | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "type": "Number", | ||||
|               "value": 0.0, | ||||
|               "ty": { | ||||
|                 "type": "Default", | ||||
|                 "len": { | ||||
|                   "type": "Inches" | ||||
|                 }, | ||||
|                 "angle": { | ||||
|                   "type": "Degrees" | ||||
|                 } | ||||
|               } | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           2089, | ||||
|           2098, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "center": { | ||||
|         "value": { | ||||
|           "type": "Array", | ||||
|           "value": [ | ||||
|             { | ||||
|               "type": "Number", | ||||
|               "value": 0.0, | ||||
|               "ty": { | ||||
|                 "type": "Default", | ||||
|                 "len": { | ||||
|                   "type": "Inches" | ||||
|                 }, | ||||
|                 "angle": { | ||||
|                   "type": "Degrees" | ||||
|                 } | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "type": "Number", | ||||
|               "value": 0.0, | ||||
|               "ty": { | ||||
|                 "type": "Default", | ||||
|                 "len": { | ||||
|                   "type": "Inches" | ||||
|                 }, | ||||
|                 "angle": { | ||||
|                   "type": "Degrees" | ||||
|                 } | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "type": "Number", | ||||
|               "value": 19.866361807294155, | ||||
|               "ty": { | ||||
|                 "type": "Unknown" | ||||
|               } | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           2111, | ||||
|           2124, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "instances": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": 2.0, | ||||
|           "ty": { | ||||
|             "type": "Default", | ||||
|             "len": { | ||||
|               "type": "Inches" | ||||
|             }, | ||||
|             "angle": { | ||||
|               "type": "Degrees" | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           2077, | ||||
|           2078, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "rotateDuplicates": { | ||||
|         "value": { | ||||
|           "type": "Bool", | ||||
|           "value": true | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           2167, | ||||
|           2171, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "patternCircular3d", | ||||
|     "sourceRange": [ | ||||
|       2030, | ||||
|       2173, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "Solids", | ||||
|         "value": [ | ||||
|           { | ||||
|             "artifactId": "[uuid]" | ||||
|           }, | ||||
|           { | ||||
|             "artifactId": "[uuid]" | ||||
|           }, | ||||
|           { | ||||
|             "artifactId": "[uuid]" | ||||
|           }, | ||||
|           { | ||||
|             "artifactId": "[uuid]" | ||||
|           }, | ||||
|           { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         ] | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         2051, | ||||
|         2061, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   } | ||||
| ] | ||||
							
								
								
									
										2803
									
								
								rust/kcl-lib/tests/kcl_samples/dodecahedron/program_memory.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										
											BIN
										
									
								
								rust/kcl-lib/tests/kcl_samples/dodecahedron/rendered_model.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 55 KiB | 
							
								
								
									
										4379
									
								
								rust/kcl-lib/tests/kcl_samples/enclosure/artifact_commands.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @ -0,0 +1,6 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| description: Artifact graph flowchart enclosure.kcl | ||||
| extension: md | ||||
| snapshot_kind: binary | ||||
| --- | ||||
| @ -0,0 +1,397 @@ | ||||
| ```mermaid | ||||
| flowchart LR | ||||
|   subgraph path2 [Path] | ||||
|     2["Path<br>[268, 293, 0]"] | ||||
|     3["Segment<br>[299, 347, 0]"] | ||||
|     4["Segment<br>[353, 455, 0]"] | ||||
|     5["Segment<br>[461, 581, 0]"] | ||||
|     6["Segment<br>[587, 672, 0]"] | ||||
|     7["Segment<br>[678, 685, 0]"] | ||||
|     8[Solid2d] | ||||
|   end | ||||
|   subgraph path29 [Path] | ||||
|     29["Path<br>[1616, 1726, 0]"] | ||||
|     30["Segment<br>[1616, 1726, 0]"] | ||||
|     31[Solid2d] | ||||
|   end | ||||
|   subgraph path32 [Path] | ||||
|     32["Path<br>[1739, 1833, 0]"] | ||||
|     33["Segment<br>[1739, 1833, 0]"] | ||||
|     34[Solid2d] | ||||
|   end | ||||
|   subgraph path42 [Path] | ||||
|     42["Path<br>[1616, 1726, 0]"] | ||||
|     43["Segment<br>[1616, 1726, 0]"] | ||||
|     44[Solid2d] | ||||
|   end | ||||
|   subgraph path45 [Path] | ||||
|     45["Path<br>[1739, 1833, 0]"] | ||||
|     46["Segment<br>[1739, 1833, 0]"] | ||||
|     47[Solid2d] | ||||
|   end | ||||
|   subgraph path55 [Path] | ||||
|     55["Path<br>[1616, 1726, 0]"] | ||||
|     56["Segment<br>[1616, 1726, 0]"] | ||||
|     57[Solid2d] | ||||
|   end | ||||
|   subgraph path58 [Path] | ||||
|     58["Path<br>[1739, 1833, 0]"] | ||||
|     59["Segment<br>[1739, 1833, 0]"] | ||||
|     60[Solid2d] | ||||
|   end | ||||
|   subgraph path68 [Path] | ||||
|     68["Path<br>[1616, 1726, 0]"] | ||||
|     69["Segment<br>[1616, 1726, 0]"] | ||||
|     70[Solid2d] | ||||
|   end | ||||
|   subgraph path71 [Path] | ||||
|     71["Path<br>[1739, 1833, 0]"] | ||||
|     72["Segment<br>[1739, 1833, 0]"] | ||||
|     73[Solid2d] | ||||
|   end | ||||
|   subgraph path81 [Path] | ||||
|     81["Path<br>[2406, 2441, 0]"] | ||||
|     82["Segment<br>[2447, 2495, 0]"] | ||||
|     83["Segment<br>[2501, 2603, 0]"] | ||||
|     84["Segment<br>[2609, 2729, 0]"] | ||||
|     85["Segment<br>[2735, 2820, 0]"] | ||||
|     86["Segment<br>[2826, 2833, 0]"] | ||||
|     87[Solid2d] | ||||
|   end | ||||
|   subgraph path88 [Path] | ||||
|     88["Path<br>[2844, 2999, 0]"] | ||||
|     89["Segment<br>[2844, 2999, 0]"] | ||||
|     90[Solid2d] | ||||
|   end | ||||
|   subgraph path91 [Path] | ||||
|     91["Path<br>[3014, 3180, 0]"] | ||||
|     92["Segment<br>[3014, 3180, 0]"] | ||||
|     93[Solid2d] | ||||
|   end | ||||
|   subgraph path94 [Path] | ||||
|     94["Path<br>[3195, 3352, 0]"] | ||||
|     95["Segment<br>[3195, 3352, 0]"] | ||||
|     96[Solid2d] | ||||
|   end | ||||
|   subgraph path97 [Path] | ||||
|     97["Path<br>[3367, 3535, 0]"] | ||||
|     98["Segment<br>[3367, 3535, 0]"] | ||||
|     99[Solid2d] | ||||
|   end | ||||
|   subgraph path119 [Path] | ||||
|     119["Path<br>[3975, 4059, 0]"] | ||||
|     120["Segment<br>[4065, 4135, 0]"] | ||||
|     121["Segment<br>[4141, 4265, 0]"] | ||||
|     122["Segment<br>[4271, 4391, 0]"] | ||||
|     123["Segment<br>[4397, 4482, 0]"] | ||||
|     124["Segment<br>[4488, 4495, 0]"] | ||||
|     125[Solid2d] | ||||
|   end | ||||
|   subgraph path126 [Path] | ||||
|     126["Path<br>[4506, 4677, 0]"] | ||||
|     127["Segment<br>[4506, 4677, 0]"] | ||||
|     128[Solid2d] | ||||
|   end | ||||
|   subgraph path129 [Path] | ||||
|     129["Path<br>[4692, 4874, 0]"] | ||||
|     130["Segment<br>[4692, 4874, 0]"] | ||||
|     131[Solid2d] | ||||
|   end | ||||
|   subgraph path132 [Path] | ||||
|     132["Path<br>[4889, 5062, 0]"] | ||||
|     133["Segment<br>[4889, 5062, 0]"] | ||||
|     134[Solid2d] | ||||
|   end | ||||
|   subgraph path135 [Path] | ||||
|     135["Path<br>[5077, 5261, 0]"] | ||||
|     136["Segment<br>[5077, 5261, 0]"] | ||||
|     137[Solid2d] | ||||
|   end | ||||
|   1["Plane<br>[243, 262, 0]"] | ||||
|   9["Sweep Extrusion<br>[699, 734, 0]"] | ||||
|   10[Wall] | ||||
|   11[Wall] | ||||
|   12[Wall] | ||||
|   13[Wall] | ||||
|   14["Cap Start"] | ||||
|   15["Cap End"] | ||||
|   16["SweepEdge Opposite"] | ||||
|   17["SweepEdge Adjacent"] | ||||
|   18["SweepEdge Opposite"] | ||||
|   19["SweepEdge Adjacent"] | ||||
|   20["SweepEdge Opposite"] | ||||
|   21["SweepEdge Adjacent"] | ||||
|   22["SweepEdge Opposite"] | ||||
|   23["SweepEdge Adjacent"] | ||||
|   24["EdgeCut Fillet<br>[740, 1021, 0]"] | ||||
|   25["EdgeCut Fillet<br>[740, 1021, 0]"] | ||||
|   26["EdgeCut Fillet<br>[740, 1021, 0]"] | ||||
|   27["EdgeCut Fillet<br>[740, 1021, 0]"] | ||||
|   28["Plane<br>[1585, 1608, 0]"] | ||||
|   35["Sweep Extrusion<br>[1853, 1904, 0]"] | ||||
|   36[Wall] | ||||
|   37["Cap Start"] | ||||
|   38["Cap End"] | ||||
|   39["SweepEdge Opposite"] | ||||
|   40["SweepEdge Adjacent"] | ||||
|   41["Plane<br>[1585, 1608, 0]"] | ||||
|   48["Sweep Extrusion<br>[1853, 1904, 0]"] | ||||
|   49[Wall] | ||||
|   50["Cap Start"] | ||||
|   51["Cap End"] | ||||
|   52["SweepEdge Opposite"] | ||||
|   53["SweepEdge Adjacent"] | ||||
|   54["Plane<br>[1585, 1608, 0]"] | ||||
|   61["Sweep Extrusion<br>[1853, 1904, 0]"] | ||||
|   62[Wall] | ||||
|   63["Cap Start"] | ||||
|   64["Cap End"] | ||||
|   65["SweepEdge Opposite"] | ||||
|   66["SweepEdge Adjacent"] | ||||
|   67["Plane<br>[1585, 1608, 0]"] | ||||
|   74["Sweep Extrusion<br>[1853, 1904, 0]"] | ||||
|   75[Wall] | ||||
|   76["Cap Start"] | ||||
|   77["Cap End"] | ||||
|   78["SweepEdge Opposite"] | ||||
|   79["SweepEdge Adjacent"] | ||||
|   80["Plane<br>[2381, 2400, 0]"] | ||||
|   100["Sweep Extrusion<br>[3553, 3595, 0]"] | ||||
|   101[Wall] | ||||
|   102[Wall] | ||||
|   103[Wall] | ||||
|   104[Wall] | ||||
|   105["Cap Start"] | ||||
|   106["Cap End"] | ||||
|   107["SweepEdge Opposite"] | ||||
|   108["SweepEdge Adjacent"] | ||||
|   109["SweepEdge Opposite"] | ||||
|   110["SweepEdge Adjacent"] | ||||
|   111["SweepEdge Opposite"] | ||||
|   112["SweepEdge Adjacent"] | ||||
|   113["SweepEdge Opposite"] | ||||
|   114["SweepEdge Adjacent"] | ||||
|   115["EdgeCut Fillet<br>[3601, 3882, 0]"] | ||||
|   116["EdgeCut Fillet<br>[3601, 3882, 0]"] | ||||
|   117["EdgeCut Fillet<br>[3601, 3882, 0]"] | ||||
|   118["EdgeCut Fillet<br>[3601, 3882, 0]"] | ||||
|   138["Sweep Extrusion<br>[5279, 5321, 0]"] | ||||
|   139[Wall] | ||||
|   140[Wall] | ||||
|   141[Wall] | ||||
|   142[Wall] | ||||
|   143["Cap Start"] | ||||
|   144["Cap End"] | ||||
|   145["SweepEdge Opposite"] | ||||
|   146["SweepEdge Adjacent"] | ||||
|   147["SweepEdge Opposite"] | ||||
|   148["SweepEdge Adjacent"] | ||||
|   149["SweepEdge Opposite"] | ||||
|   150["SweepEdge Adjacent"] | ||||
|   151["SweepEdge Opposite"] | ||||
|   152["SweepEdge Adjacent"] | ||||
|   153["EdgeCut Fillet<br>[5327, 5608, 0]"] | ||||
|   154["EdgeCut Fillet<br>[5327, 5608, 0]"] | ||||
|   155["EdgeCut Fillet<br>[5327, 5608, 0]"] | ||||
|   156["EdgeCut Fillet<br>[5327, 5608, 0]"] | ||||
|   157["StartSketchOnFace<br>[3937, 3969, 0]"] | ||||
|   1 --- 2 | ||||
|   2 --- 3 | ||||
|   2 --- 4 | ||||
|   2 --- 5 | ||||
|   2 --- 6 | ||||
|   2 --- 7 | ||||
|   2 ---- 9 | ||||
|   2 --- 8 | ||||
|   3 --- 10 | ||||
|   3 --- 16 | ||||
|   3 --- 17 | ||||
|   4 --- 11 | ||||
|   4 --- 18 | ||||
|   4 --- 19 | ||||
|   5 --- 12 | ||||
|   5 --- 20 | ||||
|   5 --- 21 | ||||
|   6 --- 13 | ||||
|   6 --- 22 | ||||
|   6 --- 23 | ||||
|   9 --- 10 | ||||
|   9 --- 11 | ||||
|   9 --- 12 | ||||
|   9 --- 13 | ||||
|   9 --- 14 | ||||
|   9 --- 15 | ||||
|   9 --- 16 | ||||
|   9 --- 17 | ||||
|   9 --- 18 | ||||
|   9 --- 19 | ||||
|   9 --- 20 | ||||
|   9 --- 21 | ||||
|   9 --- 22 | ||||
|   9 --- 23 | ||||
|   17 <--x 24 | ||||
|   19 <--x 25 | ||||
|   21 <--x 26 | ||||
|   23 <--x 27 | ||||
|   28 --- 29 | ||||
|   28 --- 32 | ||||
|   29 --- 30 | ||||
|   29 ---- 35 | ||||
|   29 --- 31 | ||||
|   30 --- 36 | ||||
|   30 --- 39 | ||||
|   30 --- 40 | ||||
|   32 --- 33 | ||||
|   32 --- 34 | ||||
|   35 --- 36 | ||||
|   35 --- 37 | ||||
|   35 --- 38 | ||||
|   35 --- 39 | ||||
|   35 --- 40 | ||||
|   41 --- 42 | ||||
|   41 --- 45 | ||||
|   42 --- 43 | ||||
|   42 ---- 48 | ||||
|   42 --- 44 | ||||
|   43 --- 49 | ||||
|   43 --- 52 | ||||
|   43 --- 53 | ||||
|   45 --- 46 | ||||
|   45 --- 47 | ||||
|   48 --- 49 | ||||
|   48 --- 50 | ||||
|   48 --- 51 | ||||
|   48 --- 52 | ||||
|   48 --- 53 | ||||
|   54 --- 55 | ||||
|   54 --- 58 | ||||
|   55 --- 56 | ||||
|   55 ---- 61 | ||||
|   55 --- 57 | ||||
|   56 --- 62 | ||||
|   56 --- 65 | ||||
|   56 --- 66 | ||||
|   58 --- 59 | ||||
|   58 --- 60 | ||||
|   61 --- 62 | ||||
|   61 --- 63 | ||||
|   61 --- 64 | ||||
|   61 --- 65 | ||||
|   61 --- 66 | ||||
|   67 --- 68 | ||||
|   67 --- 71 | ||||
|   68 --- 69 | ||||
|   68 ---- 74 | ||||
|   68 --- 70 | ||||
|   69 --- 75 | ||||
|   69 --- 78 | ||||
|   69 --- 79 | ||||
|   71 --- 72 | ||||
|   71 --- 73 | ||||
|   74 --- 75 | ||||
|   74 --- 76 | ||||
|   74 --- 77 | ||||
|   74 --- 78 | ||||
|   74 --- 79 | ||||
|   80 --- 81 | ||||
|   80 --- 88 | ||||
|   80 --- 91 | ||||
|   80 --- 94 | ||||
|   80 --- 97 | ||||
|   81 --- 82 | ||||
|   81 --- 83 | ||||
|   81 --- 84 | ||||
|   81 --- 85 | ||||
|   81 --- 86 | ||||
|   81 ---- 100 | ||||
|   81 --- 87 | ||||
|   82 --- 101 | ||||
|   82 --- 107 | ||||
|   82 --- 108 | ||||
|   83 --- 102 | ||||
|   83 --- 109 | ||||
|   83 --- 110 | ||||
|   84 --- 103 | ||||
|   84 --- 111 | ||||
|   84 --- 112 | ||||
|   85 --- 104 | ||||
|   85 --- 113 | ||||
|   85 --- 114 | ||||
|   88 --- 89 | ||||
|   88 --- 90 | ||||
|   91 --- 92 | ||||
|   91 --- 93 | ||||
|   94 --- 95 | ||||
|   94 --- 96 | ||||
|   97 --- 98 | ||||
|   97 --- 99 | ||||
|   100 --- 101 | ||||
|   100 --- 102 | ||||
|   100 --- 103 | ||||
|   100 --- 104 | ||||
|   100 --- 105 | ||||
|   100 --- 106 | ||||
|   100 --- 107 | ||||
|   100 --- 108 | ||||
|   100 --- 109 | ||||
|   100 --- 110 | ||||
|   100 --- 111 | ||||
|   100 --- 112 | ||||
|   100 --- 113 | ||||
|   100 --- 114 | ||||
|   106 --- 119 | ||||
|   106 --- 126 | ||||
|   106 --- 129 | ||||
|   106 --- 132 | ||||
|   106 --- 135 | ||||
|   108 <--x 115 | ||||
|   110 <--x 116 | ||||
|   112 <--x 117 | ||||
|   114 <--x 118 | ||||
|   119 --- 120 | ||||
|   119 --- 121 | ||||
|   119 --- 122 | ||||
|   119 --- 123 | ||||
|   119 --- 124 | ||||
|   119 ---- 138 | ||||
|   119 --- 125 | ||||
|   120 --- 139 | ||||
|   120 --- 145 | ||||
|   120 --- 146 | ||||
|   121 --- 140 | ||||
|   121 --- 147 | ||||
|   121 --- 148 | ||||
|   122 --- 141 | ||||
|   122 --- 149 | ||||
|   122 --- 150 | ||||
|   123 --- 142 | ||||
|   123 --- 151 | ||||
|   123 --- 152 | ||||
|   126 --- 127 | ||||
|   126 --- 128 | ||||
|   129 --- 130 | ||||
|   129 --- 131 | ||||
|   132 --- 133 | ||||
|   132 --- 134 | ||||
|   135 --- 136 | ||||
|   135 --- 137 | ||||
|   138 --- 139 | ||||
|   138 --- 140 | ||||
|   138 --- 141 | ||||
|   138 --- 142 | ||||
|   138 --- 143 | ||||
|   138 --- 144 | ||||
|   138 --- 145 | ||||
|   138 --- 146 | ||||
|   138 --- 147 | ||||
|   138 --- 148 | ||||
|   138 --- 149 | ||||
|   138 --- 150 | ||||
|   138 --- 151 | ||||
|   138 --- 152 | ||||
|   146 <--x 153 | ||||
|   148 <--x 154 | ||||
|   150 <--x 155 | ||||
|   152 <--x 156 | ||||
|   106 <--x 157 | ||||
| ``` | ||||
							
								
								
									
										5082
									
								
								rust/kcl-lib/tests/kcl_samples/enclosure/ast.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										2006
									
								
								rust/kcl-lib/tests/kcl_samples/enclosure/ops.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										5144
									
								
								rust/kcl-lib/tests/kcl_samples/enclosure/program_memory.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										
											BIN
										
									
								
								rust/kcl-lib/tests/kcl_samples/enclosure/rendered_model.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 87 KiB | 
| @ -0,0 +1,6 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| description: Artifact graph flowchart exhaust-manifold.kcl | ||||
| extension: md | ||||
| snapshot_kind: binary | ||||
| --- | ||||
| @ -0,0 +1,454 @@ | ||||
| ```mermaid | ||||
| flowchart LR | ||||
|   subgraph path2 [Path] | ||||
|     2["Path<br>[816, 851, 0]"] | ||||
|     3["Segment<br>[859, 885, 0]"] | ||||
|     4["Segment<br>[893, 956, 0]"] | ||||
|     5["Segment<br>[964, 1055, 0]"] | ||||
|     6["Segment<br>[1063, 1125, 0]"] | ||||
|     7["Segment<br>[1133, 1224, 0]"] | ||||
|   end | ||||
|   subgraph path9 [Path] | ||||
|     9["Path<br>[1328, 1417, 0]"] | ||||
|     10["Segment<br>[1328, 1417, 0]"] | ||||
|     11[Solid2d] | ||||
|   end | ||||
|   subgraph path12 [Path] | ||||
|     12["Path<br>[1430, 1535, 0]"] | ||||
|     13["Segment<br>[1430, 1535, 0]"] | ||||
|     14[Solid2d] | ||||
|   end | ||||
|   subgraph path22 [Path] | ||||
|     22["Path<br>[816, 851, 0]"] | ||||
|     23["Segment<br>[859, 885, 0]"] | ||||
|     24["Segment<br>[893, 956, 0]"] | ||||
|     25["Segment<br>[964, 1055, 0]"] | ||||
|     26["Segment<br>[1063, 1125, 0]"] | ||||
|     27["Segment<br>[1133, 1224, 0]"] | ||||
|   end | ||||
|   subgraph path29 [Path] | ||||
|     29["Path<br>[1328, 1417, 0]"] | ||||
|     30["Segment<br>[1328, 1417, 0]"] | ||||
|     31[Solid2d] | ||||
|   end | ||||
|   subgraph path32 [Path] | ||||
|     32["Path<br>[1430, 1535, 0]"] | ||||
|     33["Segment<br>[1430, 1535, 0]"] | ||||
|     34[Solid2d] | ||||
|   end | ||||
|   subgraph path42 [Path] | ||||
|     42["Path<br>[816, 851, 0]"] | ||||
|     43["Segment<br>[859, 885, 0]"] | ||||
|     44["Segment<br>[893, 956, 0]"] | ||||
|     45["Segment<br>[964, 1055, 0]"] | ||||
|     46["Segment<br>[1063, 1125, 0]"] | ||||
|     47["Segment<br>[1133, 1224, 0]"] | ||||
|   end | ||||
|   subgraph path49 [Path] | ||||
|     49["Path<br>[1328, 1417, 0]"] | ||||
|     50["Segment<br>[1328, 1417, 0]"] | ||||
|     51[Solid2d] | ||||
|   end | ||||
|   subgraph path52 [Path] | ||||
|     52["Path<br>[1430, 1535, 0]"] | ||||
|     53["Segment<br>[1430, 1535, 0]"] | ||||
|     54[Solid2d] | ||||
|   end | ||||
|   subgraph path62 [Path] | ||||
|     62["Path<br>[816, 851, 0]"] | ||||
|     63["Segment<br>[859, 885, 0]"] | ||||
|     64["Segment<br>[893, 956, 0]"] | ||||
|     65["Segment<br>[964, 1055, 0]"] | ||||
|     66["Segment<br>[1063, 1125, 0]"] | ||||
|     67["Segment<br>[1133, 1224, 0]"] | ||||
|   end | ||||
|   subgraph path69 [Path] | ||||
|     69["Path<br>[1328, 1417, 0]"] | ||||
|     70["Segment<br>[1328, 1417, 0]"] | ||||
|     71[Solid2d] | ||||
|   end | ||||
|   subgraph path72 [Path] | ||||
|     72["Path<br>[1430, 1535, 0]"] | ||||
|     73["Segment<br>[1430, 1535, 0]"] | ||||
|     74[Solid2d] | ||||
|   end | ||||
|   subgraph path82 [Path] | ||||
|     82["Path<br>[1864, 1899, 0]"] | ||||
|     83["Segment<br>[1905, 1927, 0]"] | ||||
|     84["Segment<br>[1933, 1980, 0]"] | ||||
|     85["Segment<br>[1986, 2032, 0]"] | ||||
|     86["Segment<br>[2038, 2085, 0]"] | ||||
|     87["Segment<br>[2091, 2113, 0]"] | ||||
|     88["Segment<br>[2119, 2150, 0]"] | ||||
|     89["Segment<br>[2156, 2177, 0]"] | ||||
|     90["Segment<br>[2183, 2230, 0]"] | ||||
|     91["Segment<br>[2236, 2283, 0]"] | ||||
|     92["Segment<br>[2289, 2336, 0]"] | ||||
|     93["Segment<br>[2342, 2373, 0]"] | ||||
|     94["Segment<br>[2379, 2415, 0]"] | ||||
|     95["Segment<br>[2421, 2453, 0]"] | ||||
|     96["Segment<br>[2459, 2506, 0]"] | ||||
|     97["Segment<br>[2512, 2558, 0]"] | ||||
|     98["Segment<br>[2564, 2620, 0]"] | ||||
|     99["Segment<br>[2626, 2633, 0]"] | ||||
|     100[Solid2d] | ||||
|   end | ||||
|   subgraph path101 [Path] | ||||
|     101["Path<br>[2705, 2799, 0]"] | ||||
|     102["Segment<br>[2705, 2799, 0]"] | ||||
|     103[Solid2d] | ||||
|   end | ||||
|   subgraph path104 [Path] | ||||
|     104["Path<br>[2814, 2908, 0]"] | ||||
|     105["Segment<br>[2814, 2908, 0]"] | ||||
|     106[Solid2d] | ||||
|   end | ||||
|   subgraph path107 [Path] | ||||
|     107["Path<br>[2923, 3017, 0]"] | ||||
|     108["Segment<br>[2923, 3017, 0]"] | ||||
|     109[Solid2d] | ||||
|   end | ||||
|   subgraph path110 [Path] | ||||
|     110["Path<br>[3032, 3126, 0]"] | ||||
|     111["Segment<br>[3032, 3126, 0]"] | ||||
|     112[Solid2d] | ||||
|   end | ||||
|   subgraph path113 [Path] | ||||
|     113["Path<br>[3180, 3318, 0]"] | ||||
|     114["Segment<br>[3180, 3318, 0]"] | ||||
|     115[Solid2d] | ||||
|   end | ||||
|   subgraph path116 [Path] | ||||
|     116["Path<br>[3333, 3469, 0]"] | ||||
|     117["Segment<br>[3333, 3469, 0]"] | ||||
|     118[Solid2d] | ||||
|   end | ||||
|   subgraph path119 [Path] | ||||
|     119["Path<br>[3484, 3630, 0]"] | ||||
|     120["Segment<br>[3484, 3630, 0]"] | ||||
|     121[Solid2d] | ||||
|   end | ||||
|   subgraph path122 [Path] | ||||
|     122["Path<br>[3645, 3790, 0]"] | ||||
|     123["Segment<br>[3645, 3790, 0]"] | ||||
|     124[Solid2d] | ||||
|   end | ||||
|   1["Plane<br>[783, 808, 0]"] | ||||
|   8["Plane<br>[1301, 1320, 0]"] | ||||
|   15["Sweep Sweep<br>[1547, 1570, 0]"] | ||||
|   16[Wall] | ||||
|   17["Cap Start"] | ||||
|   18["Cap End"] | ||||
|   19["SweepEdge Opposite"] | ||||
|   20["SweepEdge Adjacent"] | ||||
|   21["Plane<br>[783, 808, 0]"] | ||||
|   28["Plane<br>[1301, 1320, 0]"] | ||||
|   35["Sweep Sweep<br>[1547, 1570, 0]"] | ||||
|   36[Wall] | ||||
|   37["Cap Start"] | ||||
|   38["Cap End"] | ||||
|   39["SweepEdge Opposite"] | ||||
|   40["SweepEdge Adjacent"] | ||||
|   41["Plane<br>[783, 808, 0]"] | ||||
|   48["Plane<br>[1301, 1320, 0]"] | ||||
|   55["Sweep Sweep<br>[1547, 1570, 0]"] | ||||
|   56[Wall] | ||||
|   57["Cap Start"] | ||||
|   58["Cap End"] | ||||
|   59["SweepEdge Opposite"] | ||||
|   60["SweepEdge Adjacent"] | ||||
|   61["Plane<br>[783, 808, 0]"] | ||||
|   68["Plane<br>[1301, 1320, 0]"] | ||||
|   75["Sweep Sweep<br>[1547, 1570, 0]"] | ||||
|   76[Wall] | ||||
|   77["Cap Start"] | ||||
|   78["Cap End"] | ||||
|   79["SweepEdge Opposite"] | ||||
|   80["SweepEdge Adjacent"] | ||||
|   81["Plane<br>[1839, 1858, 0]"] | ||||
|   125["Sweep Extrusion<br>[3846, 3875, 0]"] | ||||
|   126[Wall] | ||||
|   127[Wall] | ||||
|   128[Wall] | ||||
|   129[Wall] | ||||
|   130[Wall] | ||||
|   131[Wall] | ||||
|   132[Wall] | ||||
|   133[Wall] | ||||
|   134[Wall] | ||||
|   135[Wall] | ||||
|   136[Wall] | ||||
|   137[Wall] | ||||
|   138[Wall] | ||||
|   139[Wall] | ||||
|   140[Wall] | ||||
|   141[Wall] | ||||
|   142["Cap Start"] | ||||
|   143["Cap End"] | ||||
|   144["SweepEdge Opposite"] | ||||
|   145["SweepEdge Adjacent"] | ||||
|   146["SweepEdge Opposite"] | ||||
|   147["SweepEdge Adjacent"] | ||||
|   148["SweepEdge Opposite"] | ||||
|   149["SweepEdge Adjacent"] | ||||
|   150["SweepEdge Opposite"] | ||||
|   151["SweepEdge Adjacent"] | ||||
|   152["SweepEdge Opposite"] | ||||
|   153["SweepEdge Adjacent"] | ||||
|   154["SweepEdge Opposite"] | ||||
|   155["SweepEdge Adjacent"] | ||||
|   156["SweepEdge Opposite"] | ||||
|   157["SweepEdge Adjacent"] | ||||
|   158["SweepEdge Opposite"] | ||||
|   159["SweepEdge Adjacent"] | ||||
|   160["SweepEdge Opposite"] | ||||
|   161["SweepEdge Adjacent"] | ||||
|   162["SweepEdge Opposite"] | ||||
|   163["SweepEdge Adjacent"] | ||||
|   164["SweepEdge Opposite"] | ||||
|   165["SweepEdge Adjacent"] | ||||
|   166["SweepEdge Opposite"] | ||||
|   167["SweepEdge Adjacent"] | ||||
|   168["SweepEdge Opposite"] | ||||
|   169["SweepEdge Adjacent"] | ||||
|   170["SweepEdge Opposite"] | ||||
|   171["SweepEdge Adjacent"] | ||||
|   172["SweepEdge Opposite"] | ||||
|   173["SweepEdge Adjacent"] | ||||
|   174["SweepEdge Opposite"] | ||||
|   175["SweepEdge Adjacent"] | ||||
|   176["EdgeCut Fillet<br>[3881, 4014, 0]"] | ||||
|   177["EdgeCut Fillet<br>[3881, 4014, 0]"] | ||||
|   178["EdgeCut Fillet<br>[4020, 4153, 0]"] | ||||
|   179["EdgeCut Fillet<br>[4020, 4153, 0]"] | ||||
|   1 --- 2 | ||||
|   2 --- 3 | ||||
|   2 --- 4 | ||||
|   2 --- 5 | ||||
|   2 --- 6 | ||||
|   2 --- 7 | ||||
|   8 --- 9 | ||||
|   8 --- 12 | ||||
|   9 --- 10 | ||||
|   9 ---- 15 | ||||
|   9 --- 11 | ||||
|   10 --- 16 | ||||
|   10 --- 19 | ||||
|   10 --- 20 | ||||
|   12 --- 13 | ||||
|   12 --- 14 | ||||
|   15 --- 16 | ||||
|   15 --- 17 | ||||
|   15 --- 18 | ||||
|   15 --- 19 | ||||
|   15 --- 20 | ||||
|   21 --- 22 | ||||
|   22 --- 23 | ||||
|   22 --- 24 | ||||
|   22 --- 25 | ||||
|   22 --- 26 | ||||
|   22 --- 27 | ||||
|   28 --- 29 | ||||
|   28 --- 32 | ||||
|   29 --- 30 | ||||
|   29 ---- 35 | ||||
|   29 --- 31 | ||||
|   30 --- 36 | ||||
|   30 --- 39 | ||||
|   30 --- 40 | ||||
|   32 --- 33 | ||||
|   32 --- 34 | ||||
|   35 --- 36 | ||||
|   35 --- 37 | ||||
|   35 --- 38 | ||||
|   35 --- 39 | ||||
|   35 --- 40 | ||||
|   41 --- 42 | ||||
|   42 --- 43 | ||||
|   42 --- 44 | ||||
|   42 --- 45 | ||||
|   42 --- 46 | ||||
|   42 --- 47 | ||||
|   48 --- 49 | ||||
|   48 --- 52 | ||||
|   49 --- 50 | ||||
|   49 ---- 55 | ||||
|   49 --- 51 | ||||
|   50 --- 56 | ||||
|   50 --- 59 | ||||
|   50 --- 60 | ||||
|   52 --- 53 | ||||
|   52 --- 54 | ||||
|   55 --- 56 | ||||
|   55 --- 57 | ||||
|   55 --- 58 | ||||
|   55 --- 59 | ||||
|   55 --- 60 | ||||
|   61 --- 62 | ||||
|   62 --- 63 | ||||
|   62 --- 64 | ||||
|   62 --- 65 | ||||
|   62 --- 66 | ||||
|   62 --- 67 | ||||
|   68 --- 69 | ||||
|   68 --- 72 | ||||
|   69 --- 70 | ||||
|   69 ---- 75 | ||||
|   69 --- 71 | ||||
|   70 --- 76 | ||||
|   70 --- 79 | ||||
|   70 --- 80 | ||||
|   72 --- 73 | ||||
|   72 --- 74 | ||||
|   75 --- 76 | ||||
|   75 --- 77 | ||||
|   75 --- 78 | ||||
|   75 --- 79 | ||||
|   75 --- 80 | ||||
|   81 --- 82 | ||||
|   81 --- 101 | ||||
|   81 --- 104 | ||||
|   81 --- 107 | ||||
|   81 --- 110 | ||||
|   81 --- 113 | ||||
|   81 --- 116 | ||||
|   81 --- 119 | ||||
|   81 --- 122 | ||||
|   82 --- 83 | ||||
|   82 --- 84 | ||||
|   82 --- 85 | ||||
|   82 --- 86 | ||||
|   82 --- 87 | ||||
|   82 --- 88 | ||||
|   82 --- 89 | ||||
|   82 --- 90 | ||||
|   82 --- 91 | ||||
|   82 --- 92 | ||||
|   82 --- 93 | ||||
|   82 --- 94 | ||||
|   82 --- 95 | ||||
|   82 --- 96 | ||||
|   82 --- 97 | ||||
|   82 --- 98 | ||||
|   82 --- 99 | ||||
|   82 ---- 125 | ||||
|   82 --- 100 | ||||
|   83 --- 141 | ||||
|   83 --- 174 | ||||
|   83 --- 175 | ||||
|   84 --- 140 | ||||
|   84 --- 172 | ||||
|   84 --- 173 | ||||
|   85 --- 139 | ||||
|   85 --- 170 | ||||
|   85 --- 171 | ||||
|   86 --- 138 | ||||
|   86 --- 168 | ||||
|   86 --- 169 | ||||
|   87 --- 137 | ||||
|   87 --- 166 | ||||
|   87 --- 167 | ||||
|   88 --- 136 | ||||
|   88 --- 164 | ||||
|   88 --- 165 | ||||
|   89 --- 135 | ||||
|   89 --- 162 | ||||
|   89 --- 163 | ||||
|   90 --- 134 | ||||
|   90 --- 160 | ||||
|   90 --- 161 | ||||
|   91 --- 133 | ||||
|   91 --- 158 | ||||
|   91 --- 159 | ||||
|   92 --- 132 | ||||
|   92 --- 156 | ||||
|   92 --- 157 | ||||
|   93 --- 131 | ||||
|   93 --- 154 | ||||
|   93 --- 155 | ||||
|   94 --- 130 | ||||
|   94 --- 152 | ||||
|   94 --- 153 | ||||
|   95 --- 129 | ||||
|   95 --- 150 | ||||
|   95 --- 151 | ||||
|   96 --- 128 | ||||
|   96 --- 148 | ||||
|   96 --- 149 | ||||
|   97 --- 127 | ||||
|   97 --- 146 | ||||
|   97 --- 147 | ||||
|   98 --- 126 | ||||
|   98 --- 144 | ||||
|   98 --- 145 | ||||
|   101 --- 102 | ||||
|   101 --- 103 | ||||
|   104 --- 105 | ||||
|   104 --- 106 | ||||
|   107 --- 108 | ||||
|   107 --- 109 | ||||
|   110 --- 111 | ||||
|   110 --- 112 | ||||
|   113 --- 114 | ||||
|   113 --- 115 | ||||
|   116 --- 117 | ||||
|   116 --- 118 | ||||
|   119 --- 120 | ||||
|   119 --- 121 | ||||
|   122 --- 123 | ||||
|   122 --- 124 | ||||
|   125 --- 126 | ||||
|   125 --- 127 | ||||
|   125 --- 128 | ||||
|   125 --- 129 | ||||
|   125 --- 130 | ||||
|   125 --- 131 | ||||
|   125 --- 132 | ||||
|   125 --- 133 | ||||
|   125 --- 134 | ||||
|   125 --- 135 | ||||
|   125 --- 136 | ||||
|   125 --- 137 | ||||
|   125 --- 138 | ||||
|   125 --- 139 | ||||
|   125 --- 140 | ||||
|   125 --- 141 | ||||
|   125 --- 142 | ||||
|   125 --- 143 | ||||
|   125 --- 144 | ||||
|   125 --- 145 | ||||
|   125 --- 146 | ||||
|   125 --- 147 | ||||
|   125 --- 148 | ||||
|   125 --- 149 | ||||
|   125 --- 150 | ||||
|   125 --- 151 | ||||
|   125 --- 152 | ||||
|   125 --- 153 | ||||
|   125 --- 154 | ||||
|   125 --- 155 | ||||
|   125 --- 156 | ||||
|   125 --- 157 | ||||
|   125 --- 158 | ||||
|   125 --- 159 | ||||
|   125 --- 160 | ||||
|   125 --- 161 | ||||
|   125 --- 162 | ||||
|   125 --- 163 | ||||
|   125 --- 164 | ||||
|   125 --- 165 | ||||
|   125 --- 166 | ||||
|   125 --- 167 | ||||
|   125 --- 168 | ||||
|   125 --- 169 | ||||
|   125 --- 170 | ||||
|   125 --- 171 | ||||
|   125 --- 172 | ||||
|   125 --- 173 | ||||
|   125 --- 174 | ||||
|   125 --- 175 | ||||
|   165 <--x 176 | ||||
|   155 <--x 177 | ||||
|   167 <--x 178 | ||||
|   153 <--x 179 | ||||
| ``` | ||||
							
								
								
									
										4349
									
								
								rust/kcl-lib/tests/kcl_samples/exhaust-manifold/ast.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										1881
									
								
								rust/kcl-lib/tests/kcl_samples/exhaust-manifold/ops.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										1792
									
								
								rust/kcl-lib/tests/kcl_samples/exhaust-manifold/program_memory.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 118 KiB | 
| @ -0,0 +1,6 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| description: Artifact graph flowchart flange-with-patterns.kcl | ||||
| extension: md | ||||
| snapshot_kind: binary | ||||
| --- | ||||
| @ -0,0 +1,108 @@ | ||||
| ```mermaid | ||||
| flowchart LR | ||||
|   subgraph path2 [Path] | ||||
|     2["Path<br>[894, 1000, 0]"] | ||||
|     3["Segment<br>[894, 1000, 0]"] | ||||
|     4[Solid2d] | ||||
|   end | ||||
|   subgraph path6 [Path] | ||||
|     6["Path<br>[1238, 1304, 0]"] | ||||
|     7["Segment<br>[1238, 1304, 0]"] | ||||
|     8[Solid2d] | ||||
|   end | ||||
|   subgraph path9 [Path] | ||||
|     9["Path<br>[1337, 1403, 0]"] | ||||
|     10["Segment<br>[1337, 1403, 0]"] | ||||
|     11[Solid2d] | ||||
|   end | ||||
|   subgraph path19 [Path] | ||||
|     19["Path<br>[1766, 1841, 0]"] | ||||
|     20["Segment<br>[1766, 1841, 0]"] | ||||
|     21[Solid2d] | ||||
|   end | ||||
|   subgraph path22 [Path] | ||||
|     22["Path<br>[1852, 1918, 0]"] | ||||
|     23["Segment<br>[1852, 1918, 0]"] | ||||
|     24[Solid2d] | ||||
|   end | ||||
|   subgraph path32 [Path] | ||||
|     32["Path<br>[2065, 2143, 0]"] | ||||
|     33["Segment<br>[2065, 2143, 0]"] | ||||
|     34[Solid2d] | ||||
|   end | ||||
|   subgraph path35 [Path] | ||||
|     35["Path<br>[2154, 2220, 0]"] | ||||
|     36["Segment<br>[2154, 2220, 0]"] | ||||
|     37[Solid2d] | ||||
|   end | ||||
|   1["Plane<br>[869, 888, 0]"] | ||||
|   5["Plane<br>[1213, 1232, 0]"] | ||||
|   12["Sweep Extrusion<br>[1413, 1444, 0]"] | ||||
|   13[Wall] | ||||
|   14["Cap Start"] | ||||
|   15["Cap End"] | ||||
|   16["SweepEdge Opposite"] | ||||
|   17["SweepEdge Adjacent"] | ||||
|   18["Plane<br>[1733, 1760, 0]"] | ||||
|   25["Sweep Extrusion<br>[1928, 1963, 0]"] | ||||
|   26[Wall] | ||||
|   27["Cap Start"] | ||||
|   28["Cap End"] | ||||
|   29["SweepEdge Opposite"] | ||||
|   30["SweepEdge Adjacent"] | ||||
|   31["Plane<br>[2040, 2059, 0]"] | ||||
|   38["Sweep Extrusion<br>[2230, 2264, 0]"] | ||||
|   39[Wall] | ||||
|   40["Cap Start"] | ||||
|   41["Cap End"] | ||||
|   42["SweepEdge Opposite"] | ||||
|   43["SweepEdge Adjacent"] | ||||
|   1 --- 2 | ||||
|   2 --- 3 | ||||
|   2 --- 4 | ||||
|   5 --- 6 | ||||
|   5 --- 9 | ||||
|   6 --- 7 | ||||
|   6 ---- 12 | ||||
|   6 --- 8 | ||||
|   7 --- 13 | ||||
|   7 --- 16 | ||||
|   7 --- 17 | ||||
|   9 --- 10 | ||||
|   9 --- 11 | ||||
|   12 --- 13 | ||||
|   12 --- 14 | ||||
|   12 --- 15 | ||||
|   12 --- 16 | ||||
|   12 --- 17 | ||||
|   18 --- 19 | ||||
|   18 --- 22 | ||||
|   19 --- 20 | ||||
|   19 ---- 25 | ||||
|   19 --- 21 | ||||
|   20 --- 26 | ||||
|   20 --- 29 | ||||
|   20 --- 30 | ||||
|   22 --- 23 | ||||
|   22 --- 24 | ||||
|   25 --- 26 | ||||
|   25 --- 27 | ||||
|   25 --- 28 | ||||
|   25 --- 29 | ||||
|   25 --- 30 | ||||
|   31 --- 32 | ||||
|   31 --- 35 | ||||
|   32 --- 33 | ||||
|   32 ---- 38 | ||||
|   32 --- 34 | ||||
|   33 --- 39 | ||||
|   33 --- 42 | ||||
|   33 --- 43 | ||||
|   35 --- 36 | ||||
|   35 --- 37 | ||||
|   38 --- 39 | ||||
|   38 --- 40 | ||||
|   38 --- 41 | ||||
|   38 --- 42 | ||||
|   38 --- 43 | ||||
| ``` | ||||
							
								
								
									
										2151
									
								
								rust/kcl-lib/tests/kcl_samples/flange-with-patterns/ast.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										575
									
								
								rust/kcl-lib/tests/kcl_samples/flange-with-patterns/ops.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @ -0,0 +1,575 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| description: Operations executed flange-with-patterns.kcl | ||||
| --- | ||||
| [ | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "data": { | ||||
|         "value": { | ||||
|           "type": "String", | ||||
|           "value": "XY" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           883, | ||||
|           887, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       869, | ||||
|       888, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "data": { | ||||
|         "value": { | ||||
|           "type": "String", | ||||
|           "value": "XY" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1227, | ||||
|           1231, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       1213, | ||||
|       1232, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "holeSketch": { | ||||
|         "value": { | ||||
|           "type": "Sketches", | ||||
|           "value": [ | ||||
|             { | ||||
|               "artifactId": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "artifactId": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "artifactId": "[uuid]" | ||||
|             }, | ||||
|             { | ||||
|               "artifactId": "[uuid]" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1315, | ||||
|           1322, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "sketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1324, | ||||
|           1325, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "hole", | ||||
|     "sourceRange": [ | ||||
|       1310, | ||||
|       1326, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "holeSketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1337, | ||||
|           1403, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "sketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1405, | ||||
|           1406, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "hole", | ||||
|     "sourceRange": [ | ||||
|       1332, | ||||
|       1407, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "length": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": 0.625, | ||||
|           "ty": { | ||||
|             "type": "Default", | ||||
|             "len": { | ||||
|               "type": "Inches" | ||||
|             }, | ||||
|             "angle": { | ||||
|               "type": "Degrees" | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1430, | ||||
|           1443, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       1413, | ||||
|       1444, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "Sketch", | ||||
|         "value": { | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         0, | ||||
|         0, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "data": { | ||||
|         "value": { | ||||
|           "type": "Object", | ||||
|           "value": { | ||||
|             "plane": { | ||||
|               "type": "Object", | ||||
|               "value": { | ||||
|                 "origin": { | ||||
|                   "type": "Object", | ||||
|                   "value": { | ||||
|                     "x": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "y": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "z": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.625, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     } | ||||
|                   } | ||||
|                 }, | ||||
|                 "xAxis": { | ||||
|                   "type": "Object", | ||||
|                   "value": { | ||||
|                     "x": { | ||||
|                       "type": "Number", | ||||
|                       "value": 1.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "y": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "z": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     } | ||||
|                   } | ||||
|                 }, | ||||
|                 "yAxis": { | ||||
|                   "type": "Object", | ||||
|                   "value": { | ||||
|                     "x": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "y": { | ||||
|                       "type": "Number", | ||||
|                       "value": 1.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "z": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     } | ||||
|                   } | ||||
|                 }, | ||||
|                 "zAxis": { | ||||
|                   "type": "Object", | ||||
|                   "value": { | ||||
|                     "x": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "y": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "z": { | ||||
|                       "type": "Number", | ||||
|                       "value": 1.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     } | ||||
|                   } | ||||
|                 } | ||||
|               } | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1747, | ||||
|           1759, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       1733, | ||||
|       1760, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "holeSketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1852, | ||||
|           1918, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "sketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1920, | ||||
|           1921, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "hole", | ||||
|     "sourceRange": [ | ||||
|       1847, | ||||
|       1922, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "length": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": 0.1279999999999999, | ||||
|           "ty": { | ||||
|             "type": "Default", | ||||
|             "len": { | ||||
|               "type": "Inches" | ||||
|             }, | ||||
|             "angle": { | ||||
|               "type": "Degrees" | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1945, | ||||
|           1962, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       1928, | ||||
|       1963, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "Sketch", | ||||
|         "value": { | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         0, | ||||
|         0, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "data": { | ||||
|         "value": { | ||||
|           "type": "String", | ||||
|           "value": "XY" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           2054, | ||||
|           2058, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       2040, | ||||
|       2059, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "holeSketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           2154, | ||||
|           2220, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "sketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           2222, | ||||
|           2223, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "hole", | ||||
|     "sourceRange": [ | ||||
|       2149, | ||||
|       2224, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "length": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": -0.06, | ||||
|           "ty": { | ||||
|             "type": "Default", | ||||
|             "len": { | ||||
|               "type": "Inches" | ||||
|             }, | ||||
|             "angle": { | ||||
|               "type": "Degrees" | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           2247, | ||||
|           2263, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       2230, | ||||
|       2264, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "Sketch", | ||||
|         "value": { | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         0, | ||||
|         0, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   } | ||||
| ] | ||||
| After Width: | Height: | Size: 73 KiB | 
							
								
								
									
										1971
									
								
								rust/kcl-lib/tests/kcl_samples/flange-xy/artifact_commands.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @ -0,0 +1,6 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| description: Artifact graph flowchart flange-xy.kcl | ||||
| extension: md | ||||
| snapshot_kind: binary | ||||
| --- | ||||
| @ -0,0 +1,131 @@ | ||||
| ```mermaid | ||||
| flowchart LR | ||||
|   subgraph path2 [Path] | ||||
|     2["Path<br>[916, 982, 0]"] | ||||
|     3["Segment<br>[916, 982, 0]"] | ||||
|     4[Solid2d] | ||||
|   end | ||||
|   subgraph path5 [Path] | ||||
|     5["Path<br>[993, 1099, 0]"] | ||||
|     6["Segment<br>[993, 1099, 0]"] | ||||
|     7[Solid2d] | ||||
|   end | ||||
|   subgraph path8 [Path] | ||||
|     8["Path<br>[1114, 1220, 0]"] | ||||
|     9["Segment<br>[1114, 1220, 0]"] | ||||
|     10[Solid2d] | ||||
|   end | ||||
|   subgraph path11 [Path] | ||||
|     11["Path<br>[1235, 1342, 0]"] | ||||
|     12["Segment<br>[1235, 1342, 0]"] | ||||
|     13[Solid2d] | ||||
|   end | ||||
|   subgraph path14 [Path] | ||||
|     14["Path<br>[1357, 1464, 0]"] | ||||
|     15["Segment<br>[1357, 1464, 0]"] | ||||
|     16[Solid2d] | ||||
|   end | ||||
|   subgraph path17 [Path] | ||||
|     17["Path<br>[1479, 1545, 0]"] | ||||
|     18["Segment<br>[1479, 1545, 0]"] | ||||
|     19[Solid2d] | ||||
|   end | ||||
|   subgraph path27 [Path] | ||||
|     27["Path<br>[1915, 1990, 0]"] | ||||
|     28["Segment<br>[1915, 1990, 0]"] | ||||
|     29[Solid2d] | ||||
|   end | ||||
|   subgraph path30 [Path] | ||||
|     30["Path<br>[2001, 2067, 0]"] | ||||
|     31["Segment<br>[2001, 2067, 0]"] | ||||
|     32[Solid2d] | ||||
|   end | ||||
|   subgraph path40 [Path] | ||||
|     40["Path<br>[2214, 2292, 0]"] | ||||
|     41["Segment<br>[2214, 2292, 0]"] | ||||
|     42[Solid2d] | ||||
|   end | ||||
|   subgraph path43 [Path] | ||||
|     43["Path<br>[2303, 2369, 0]"] | ||||
|     44["Segment<br>[2303, 2369, 0]"] | ||||
|     45[Solid2d] | ||||
|   end | ||||
|   1["Plane<br>[891, 910, 0]"] | ||||
|   20["Sweep Extrusion<br>[1555, 1586, 0]"] | ||||
|   21[Wall] | ||||
|   22["Cap Start"] | ||||
|   23["Cap End"] | ||||
|   24["SweepEdge Opposite"] | ||||
|   25["SweepEdge Adjacent"] | ||||
|   26["Plane<br>[1875, 1909, 0]"] | ||||
|   33["Sweep Extrusion<br>[2077, 2112, 0]"] | ||||
|   34[Wall] | ||||
|   35["Cap Start"] | ||||
|   36["Cap End"] | ||||
|   37["SweepEdge Opposite"] | ||||
|   38["SweepEdge Adjacent"] | ||||
|   39["Plane<br>[2189, 2208, 0]"] | ||||
|   46["Sweep Extrusion<br>[2379, 2413, 0]"] | ||||
|   47[Wall] | ||||
|   48["Cap Start"] | ||||
|   49["Cap End"] | ||||
|   50["SweepEdge Opposite"] | ||||
|   51["SweepEdge Adjacent"] | ||||
|   1 --- 2 | ||||
|   1 --- 5 | ||||
|   1 --- 8 | ||||
|   1 --- 11 | ||||
|   1 --- 14 | ||||
|   1 --- 17 | ||||
|   2 --- 3 | ||||
|   2 ---- 20 | ||||
|   2 --- 4 | ||||
|   3 --- 21 | ||||
|   3 --- 24 | ||||
|   3 --- 25 | ||||
|   5 --- 6 | ||||
|   5 --- 7 | ||||
|   8 --- 9 | ||||
|   8 --- 10 | ||||
|   11 --- 12 | ||||
|   11 --- 13 | ||||
|   14 --- 15 | ||||
|   14 --- 16 | ||||
|   17 --- 18 | ||||
|   17 --- 19 | ||||
|   20 --- 21 | ||||
|   20 --- 22 | ||||
|   20 --- 23 | ||||
|   20 --- 24 | ||||
|   20 --- 25 | ||||
|   26 --- 27 | ||||
|   26 --- 30 | ||||
|   27 --- 28 | ||||
|   27 ---- 33 | ||||
|   27 --- 29 | ||||
|   28 --- 34 | ||||
|   28 --- 37 | ||||
|   28 --- 38 | ||||
|   30 --- 31 | ||||
|   30 --- 32 | ||||
|   33 --- 34 | ||||
|   33 --- 35 | ||||
|   33 --- 36 | ||||
|   33 --- 37 | ||||
|   33 --- 38 | ||||
|   39 --- 40 | ||||
|   39 --- 43 | ||||
|   40 --- 41 | ||||
|   40 ---- 46 | ||||
|   40 --- 42 | ||||
|   41 --- 47 | ||||
|   41 --- 50 | ||||
|   41 --- 51 | ||||
|   43 --- 44 | ||||
|   43 --- 45 | ||||
|   46 --- 47 | ||||
|   46 --- 48 | ||||
|   46 --- 49 | ||||
|   46 --- 50 | ||||
|   46 --- 51 | ||||
| ``` | ||||
							
								
								
									
										2377
									
								
								rust/kcl-lib/tests/kcl_samples/flange-xy/ast.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										666
									
								
								rust/kcl-lib/tests/kcl_samples/flange-xy/ops.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @ -0,0 +1,666 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| description: Operations executed flange-xy.kcl | ||||
| --- | ||||
| [ | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "data": { | ||||
|         "value": { | ||||
|           "type": "String", | ||||
|           "value": "XY" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           905, | ||||
|           909, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       891, | ||||
|       910, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "holeSketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           993, | ||||
|           1099, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "sketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1101, | ||||
|           1102, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "hole", | ||||
|     "sourceRange": [ | ||||
|       988, | ||||
|       1103, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "holeSketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1114, | ||||
|           1220, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "sketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1222, | ||||
|           1223, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "hole", | ||||
|     "sourceRange": [ | ||||
|       1109, | ||||
|       1224, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "holeSketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1235, | ||||
|           1342, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "sketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1344, | ||||
|           1345, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "hole", | ||||
|     "sourceRange": [ | ||||
|       1230, | ||||
|       1346, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "holeSketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1357, | ||||
|           1464, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "sketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1466, | ||||
|           1467, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "hole", | ||||
|     "sourceRange": [ | ||||
|       1352, | ||||
|       1468, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "holeSketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1479, | ||||
|           1545, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "sketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1547, | ||||
|           1548, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "hole", | ||||
|     "sourceRange": [ | ||||
|       1474, | ||||
|       1549, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "length": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": 0.625, | ||||
|           "ty": { | ||||
|             "type": "Default", | ||||
|             "len": { | ||||
|               "type": "Inches" | ||||
|             }, | ||||
|             "angle": { | ||||
|               "type": "Degrees" | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1572, | ||||
|           1585, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       1555, | ||||
|       1586, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "Sketch", | ||||
|         "value": { | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         0, | ||||
|         0, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "data": { | ||||
|         "value": { | ||||
|           "type": "Object", | ||||
|           "value": { | ||||
|             "plane": { | ||||
|               "type": "Object", | ||||
|               "value": { | ||||
|                 "origin": { | ||||
|                   "type": "Object", | ||||
|                   "value": { | ||||
|                     "x": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "y": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "z": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.625, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     } | ||||
|                   } | ||||
|                 }, | ||||
|                 "xAxis": { | ||||
|                   "type": "Object", | ||||
|                   "value": { | ||||
|                     "x": { | ||||
|                       "type": "Number", | ||||
|                       "value": 1.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "y": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "z": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     } | ||||
|                   } | ||||
|                 }, | ||||
|                 "yAxis": { | ||||
|                   "type": "Object", | ||||
|                   "value": { | ||||
|                     "x": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "y": { | ||||
|                       "type": "Number", | ||||
|                       "value": 1.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "z": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     } | ||||
|                   } | ||||
|                 }, | ||||
|                 "zAxis": { | ||||
|                   "type": "Object", | ||||
|                   "value": { | ||||
|                     "x": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "y": { | ||||
|                       "type": "Number", | ||||
|                       "value": 0.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     }, | ||||
|                     "z": { | ||||
|                       "type": "Number", | ||||
|                       "value": 1.0, | ||||
|                       "ty": { | ||||
|                         "type": "Default", | ||||
|                         "len": { | ||||
|                           "type": "Inches" | ||||
|                         }, | ||||
|                         "angle": { | ||||
|                           "type": "Degrees" | ||||
|                         } | ||||
|                       } | ||||
|                     } | ||||
|                   } | ||||
|                 } | ||||
|               } | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1889, | ||||
|           1901, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "tag": { | ||||
|         "value": { | ||||
|           "type": "String", | ||||
|           "value": "end" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1903, | ||||
|           1908, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       1875, | ||||
|       1909, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "holeSketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           2001, | ||||
|           2067, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "sketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           2069, | ||||
|           2070, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "hole", | ||||
|     "sourceRange": [ | ||||
|       1996, | ||||
|       2071, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "length": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": 0.1279999999999999, | ||||
|           "ty": { | ||||
|             "type": "Default", | ||||
|             "len": { | ||||
|               "type": "Inches" | ||||
|             }, | ||||
|             "angle": { | ||||
|               "type": "Degrees" | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           2094, | ||||
|           2111, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       2077, | ||||
|       2112, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "Sketch", | ||||
|         "value": { | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         0, | ||||
|         0, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "data": { | ||||
|         "value": { | ||||
|           "type": "String", | ||||
|           "value": "XY" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           2203, | ||||
|           2207, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       2189, | ||||
|       2208, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "holeSketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           2303, | ||||
|           2369, | ||||
|           0 | ||||
|         ] | ||||
|       }, | ||||
|       "sketch": { | ||||
|         "value": { | ||||
|           "type": "Sketch", | ||||
|           "value": { | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           2371, | ||||
|           2372, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "hole", | ||||
|     "sourceRange": [ | ||||
|       2298, | ||||
|       2373, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
|   { | ||||
|     "labeledArgs": { | ||||
|       "length": { | ||||
|         "value": { | ||||
|           "type": "Number", | ||||
|           "value": -0.06, | ||||
|           "ty": { | ||||
|             "type": "Default", | ||||
|             "len": { | ||||
|               "type": "Inches" | ||||
|             }, | ||||
|             "angle": { | ||||
|               "type": "Degrees" | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           2396, | ||||
|           2412, | ||||
|           0 | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       2379, | ||||
|       2413, | ||||
|       0 | ||||
|     ], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "Sketch", | ||||
|         "value": { | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         0, | ||||
|         0, | ||||
|         0 | ||||
|       ] | ||||
|     } | ||||
|   } | ||||
| ] | ||||
							
								
								
									
										1072
									
								
								rust/kcl-lib/tests/kcl_samples/flange-xy/program_memory.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										
											BIN
										
									
								
								rust/kcl-lib/tests/kcl_samples/flange-xy/rendered_model.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 73 KiB | 
| @ -0,0 +1,6 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| description: Artifact graph flowchart focusrite-scarlett-mounting-bracket.kcl | ||||
| extension: md | ||||
| snapshot_kind: binary | ||||
| --- | ||||
| @ -0,0 +1,353 @@ | ||||
| ```mermaid | ||||
| flowchart LR | ||||
|   subgraph path2 [Path] | ||||
|     2["Path<br>[1265, 1303, 0]"] | ||||
|     3["Segment<br>[1311, 1361, 0]"] | ||||
|     4["Segment<br>[1369, 1418, 0]"] | ||||
|     5["Segment<br>[1426, 1478, 0]"] | ||||
|     6["Segment<br>[1486, 1534, 0]"] | ||||
|     7["Segment<br>[1542, 1586, 0]"] | ||||
|     8["Segment<br>[1594, 1639, 0]"] | ||||
|     9["Segment<br>[1647, 1696, 0]"] | ||||
|     10["Segment<br>[1704, 1723, 0]"] | ||||
|     11[Solid2d] | ||||
|   end | ||||
|   subgraph path40 [Path] | ||||
|     40["Path<br>[2437, 2491, 0]"] | ||||
|     41["Segment<br>[2497, 2550, 0]"] | ||||
|     42["Segment<br>[2556, 2606, 0]"] | ||||
|     43["Segment<br>[2612, 2666, 0]"] | ||||
|     44["Segment<br>[2672, 2692, 0]"] | ||||
|     45[Solid2d] | ||||
|   end | ||||
|   subgraph path46 [Path] | ||||
|     46["Path<br>[2703, 2865, 0]"] | ||||
|     47["Segment<br>[2703, 2865, 0]"] | ||||
|     48[Solid2d] | ||||
|   end | ||||
|   subgraph path67 [Path] | ||||
|     67["Path<br>[3277, 3332, 0]"] | ||||
|     68["Segment<br>[3338, 3392, 0]"] | ||||
|     69["Segment<br>[3398, 3448, 0]"] | ||||
|     70["Segment<br>[3454, 3507, 0]"] | ||||
|     71["Segment<br>[3513, 3533, 0]"] | ||||
|     72[Solid2d] | ||||
|   end | ||||
|   subgraph path73 [Path] | ||||
|     73["Path<br>[3544, 3709, 0]"] | ||||
|     74["Segment<br>[3544, 3709, 0]"] | ||||
|     75[Solid2d] | ||||
|   end | ||||
|   subgraph path94 [Path] | ||||
|     94["Path<br>[4343, 4384, 0]"] | ||||
|     95["Segment<br>[4390, 4410, 0]"] | ||||
|     96["Segment<br>[4416, 4439, 0]"] | ||||
|     97["Segment<br>[4445, 4452, 0]"] | ||||
|     98[Solid2d] | ||||
|   end | ||||
|   subgraph path112 [Path] | ||||
|     112["Path<br>[4567, 4607, 0]"] | ||||
|     113["Segment<br>[4613, 4633, 0]"] | ||||
|     114["Segment<br>[4639, 4660, 0]"] | ||||
|     115["Segment<br>[4666, 4687, 0]"] | ||||
|     116["Segment<br>[4693, 4700, 0]"] | ||||
|     117[Solid2d] | ||||
|   end | ||||
|   1["Plane<br>[1230, 1257, 0]"] | ||||
|   12["Sweep Extrusion<br>[1831, 1865, 0]"] | ||||
|   13[Wall] | ||||
|   14[Wall] | ||||
|   15[Wall] | ||||
|   16[Wall] | ||||
|   17[Wall] | ||||
|   18[Wall] | ||||
|   19[Wall] | ||||
|   20[Wall] | ||||
|   21["Cap Start"] | ||||
|   22["Cap End"] | ||||
|   23["SweepEdge Opposite"] | ||||
|   24["SweepEdge Adjacent"] | ||||
|   25["SweepEdge Opposite"] | ||||
|   26["SweepEdge Adjacent"] | ||||
|   27["SweepEdge Opposite"] | ||||
|   28["SweepEdge Adjacent"] | ||||
|   29["SweepEdge Opposite"] | ||||
|   30["SweepEdge Adjacent"] | ||||
|   31["SweepEdge Opposite"] | ||||
|   32["SweepEdge Adjacent"] | ||||
|   33["SweepEdge Opposite"] | ||||
|   34["SweepEdge Adjacent"] | ||||
|   35["SweepEdge Opposite"] | ||||
|   36["SweepEdge Adjacent"] | ||||
|   37["SweepEdge Opposite"] | ||||
|   38["SweepEdge Adjacent"] | ||||
|   39["Plane<br>[2408, 2431, 0]"] | ||||
|   49["Sweep Extrusion<br>[2875, 2900, 0]"] | ||||
|   50[Wall] | ||||
|   51[Wall] | ||||
|   52[Wall] | ||||
|   53[Wall] | ||||
|   54["Cap Start"] | ||||
|   55["Cap End"] | ||||
|   56["SweepEdge Opposite"] | ||||
|   57["SweepEdge Adjacent"] | ||||
|   58["SweepEdge Opposite"] | ||||
|   59["SweepEdge Adjacent"] | ||||
|   60["SweepEdge Opposite"] | ||||
|   61["SweepEdge Adjacent"] | ||||
|   62["SweepEdge Opposite"] | ||||
|   63["SweepEdge Adjacent"] | ||||
|   64["EdgeCut Fillet<br>[2906, 3050, 0]"] | ||||
|   65["EdgeCut Fillet<br>[2906, 3050, 0]"] | ||||
|   66["Plane<br>[3248, 3271, 0]"] | ||||
|   76["Sweep Extrusion<br>[3719, 3744, 0]"] | ||||
|   77[Wall] | ||||
|   78[Wall] | ||||
|   79[Wall] | ||||
|   80[Wall] | ||||
|   81["Cap Start"] | ||||
|   82["Cap End"] | ||||
|   83["SweepEdge Opposite"] | ||||
|   84["SweepEdge Adjacent"] | ||||
|   85["SweepEdge Opposite"] | ||||
|   86["SweepEdge Adjacent"] | ||||
|   87["SweepEdge Opposite"] | ||||
|   88["SweepEdge Adjacent"] | ||||
|   89["SweepEdge Opposite"] | ||||
|   90["SweepEdge Adjacent"] | ||||
|   91["EdgeCut Fillet<br>[3750, 3894, 0]"] | ||||
|   92["EdgeCut Fillet<br>[3750, 3894, 0]"] | ||||
|   93["Plane<br>[4314, 4337, 0]"] | ||||
|   99["Sweep Extrusion<br>[4458, 4486, 0]"] | ||||
|   100[Wall] | ||||
|   101[Wall] | ||||
|   102[Wall] | ||||
|   103["Cap Start"] | ||||
|   104["Cap End"] | ||||
|   105["SweepEdge Opposite"] | ||||
|   106["SweepEdge Adjacent"] | ||||
|   107["SweepEdge Opposite"] | ||||
|   108["SweepEdge Adjacent"] | ||||
|   109["SweepEdge Opposite"] | ||||
|   110["SweepEdge Adjacent"] | ||||
|   111["Plane<br>[4538, 4561, 0]"] | ||||
|   118["Sweep Extrusion<br>[4706, 4734, 0]"] | ||||
|   119[Wall] | ||||
|   120[Wall] | ||||
|   121[Wall] | ||||
|   122[Wall] | ||||
|   123["Cap Start"] | ||||
|   124["Cap End"] | ||||
|   125["SweepEdge Opposite"] | ||||
|   126["SweepEdge Adjacent"] | ||||
|   127["SweepEdge Opposite"] | ||||
|   128["SweepEdge Adjacent"] | ||||
|   129["SweepEdge Opposite"] | ||||
|   130["SweepEdge Adjacent"] | ||||
|   131["SweepEdge Opposite"] | ||||
|   132["SweepEdge Adjacent"] | ||||
|   133["EdgeCut Fillet<br>[1871, 2129, 0]"] | ||||
|   134["EdgeCut Fillet<br>[1871, 2129, 0]"] | ||||
|   135["EdgeCut Fillet<br>[1871, 2129, 0]"] | ||||
|   136["EdgeCut Fillet<br>[1871, 2129, 0]"] | ||||
|   1 --- 2 | ||||
|   2 --- 3 | ||||
|   2 --- 4 | ||||
|   2 --- 5 | ||||
|   2 --- 6 | ||||
|   2 --- 7 | ||||
|   2 --- 8 | ||||
|   2 --- 9 | ||||
|   2 --- 10 | ||||
|   2 ---- 12 | ||||
|   2 --- 11 | ||||
|   3 --- 13 | ||||
|   3 --- 23 | ||||
|   3 --- 24 | ||||
|   4 --- 14 | ||||
|   4 --- 25 | ||||
|   4 --- 26 | ||||
|   5 --- 15 | ||||
|   5 --- 27 | ||||
|   5 --- 28 | ||||
|   6 --- 16 | ||||
|   6 --- 29 | ||||
|   6 --- 30 | ||||
|   7 --- 17 | ||||
|   7 --- 31 | ||||
|   7 --- 32 | ||||
|   8 --- 18 | ||||
|   8 --- 33 | ||||
|   8 --- 34 | ||||
|   9 --- 19 | ||||
|   9 --- 35 | ||||
|   9 --- 36 | ||||
|   10 --- 20 | ||||
|   10 --- 37 | ||||
|   10 --- 38 | ||||
|   12 --- 13 | ||||
|   12 --- 14 | ||||
|   12 --- 15 | ||||
|   12 --- 16 | ||||
|   12 --- 17 | ||||
|   12 --- 18 | ||||
|   12 --- 19 | ||||
|   12 --- 20 | ||||
|   12 --- 21 | ||||
|   12 --- 22 | ||||
|   12 --- 23 | ||||
|   12 --- 24 | ||||
|   12 --- 25 | ||||
|   12 --- 26 | ||||
|   12 --- 27 | ||||
|   12 --- 28 | ||||
|   12 --- 29 | ||||
|   12 --- 30 | ||||
|   12 --- 31 | ||||
|   12 --- 32 | ||||
|   12 --- 33 | ||||
|   12 --- 34 | ||||
|   12 --- 35 | ||||
|   12 --- 36 | ||||
|   12 --- 37 | ||||
|   12 --- 38 | ||||
|   39 --- 40 | ||||
|   39 --- 46 | ||||
|   40 --- 41 | ||||
|   40 --- 42 | ||||
|   40 --- 43 | ||||
|   40 --- 44 | ||||
|   40 ---- 49 | ||||
|   40 --- 45 | ||||
|   41 --- 53 | ||||
|   41 --- 62 | ||||
|   41 --- 63 | ||||
|   42 --- 52 | ||||
|   42 --- 60 | ||||
|   42 --- 61 | ||||
|   43 --- 51 | ||||
|   43 --- 58 | ||||
|   43 --- 59 | ||||
|   44 --- 50 | ||||
|   44 --- 56 | ||||
|   44 --- 57 | ||||
|   46 --- 47 | ||||
|   46 --- 48 | ||||
|   49 --- 50 | ||||
|   49 --- 51 | ||||
|   49 --- 52 | ||||
|   49 --- 53 | ||||
|   49 --- 54 | ||||
|   49 --- 55 | ||||
|   49 --- 56 | ||||
|   49 --- 57 | ||||
|   49 --- 58 | ||||
|   49 --- 59 | ||||
|   49 --- 60 | ||||
|   49 --- 61 | ||||
|   49 --- 62 | ||||
|   49 --- 63 | ||||
|   63 <--x 64 | ||||
|   61 <--x 65 | ||||
|   66 --- 67 | ||||
|   66 --- 73 | ||||
|   67 --- 68 | ||||
|   67 --- 69 | ||||
|   67 --- 70 | ||||
|   67 --- 71 | ||||
|   67 ---- 76 | ||||
|   67 --- 72 | ||||
|   68 --- 77 | ||||
|   68 --- 83 | ||||
|   68 --- 84 | ||||
|   69 --- 78 | ||||
|   69 --- 85 | ||||
|   69 --- 86 | ||||
|   70 --- 79 | ||||
|   70 --- 87 | ||||
|   70 --- 88 | ||||
|   71 --- 80 | ||||
|   71 --- 89 | ||||
|   71 --- 90 | ||||
|   73 --- 74 | ||||
|   73 --- 75 | ||||
|   76 --- 77 | ||||
|   76 --- 78 | ||||
|   76 --- 79 | ||||
|   76 --- 80 | ||||
|   76 --- 81 | ||||
|   76 --- 82 | ||||
|   76 --- 83 | ||||
|   76 --- 84 | ||||
|   76 --- 85 | ||||
|   76 --- 86 | ||||
|   76 --- 87 | ||||
|   76 --- 88 | ||||
|   76 --- 89 | ||||
|   76 --- 90 | ||||
|   84 <--x 91 | ||||
|   86 <--x 92 | ||||
|   93 --- 94 | ||||
|   94 --- 95 | ||||
|   94 --- 96 | ||||
|   94 --- 97 | ||||
|   94 ---- 99 | ||||
|   94 --- 98 | ||||
|   95 --- 102 | ||||
|   95 --- 109 | ||||
|   95 --- 110 | ||||
|   96 --- 101 | ||||
|   96 --- 107 | ||||
|   96 --- 108 | ||||
|   97 --- 100 | ||||
|   97 --- 105 | ||||
|   97 --- 106 | ||||
|   99 --- 100 | ||||
|   99 --- 101 | ||||
|   99 --- 102 | ||||
|   99 --- 103 | ||||
|   99 --- 104 | ||||
|   99 --- 105 | ||||
|   99 --- 106 | ||||
|   99 --- 107 | ||||
|   99 --- 108 | ||||
|   99 --- 109 | ||||
|   99 --- 110 | ||||
|   111 --- 112 | ||||
|   112 --- 113 | ||||
|   112 --- 114 | ||||
|   112 --- 115 | ||||
|   112 --- 116 | ||||
|   112 ---- 118 | ||||
|   112 --- 117 | ||||
|   113 --- 119 | ||||
|   113 --- 125 | ||||
|   113 --- 126 | ||||
|   114 --- 120 | ||||
|   114 --- 127 | ||||
|   114 --- 128 | ||||
|   115 --- 121 | ||||
|   115 --- 129 | ||||
|   115 --- 130 | ||||
|   116 --- 122 | ||||
|   116 --- 131 | ||||
|   116 --- 132 | ||||
|   118 --- 119 | ||||
|   118 --- 120 | ||||
|   118 --- 121 | ||||
|   118 --- 122 | ||||
|   118 --- 123 | ||||
|   118 --- 124 | ||||
|   118 --- 125 | ||||
|   118 --- 126 | ||||
|   118 --- 127 | ||||
|   118 --- 128 | ||||
|   118 --- 129 | ||||
|   118 --- 130 | ||||
|   118 --- 131 | ||||
|   118 --- 132 | ||||
|   34 <--x 133 | ||||
|   24 <--x 134 | ||||
|   26 <--x 135 | ||||
|   32 <--x 136 | ||||
| ``` | ||||
| After Width: | Height: | Size: 76 KiB | 
| @ -0,0 +1,6 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| description: Artifact graph flowchart food-service-spatula.kcl | ||||
| extension: md | ||||
| snapshot_kind: binary | ||||
| --- | ||||