From c7fd5e999d2cdb22a2e8dfdea1d8ec642ce5b8ed Mon Sep 17 00:00:00 2001 From: Jonathan Tran Date: Thu, 30 Jan 2025 18:14:07 -0500 Subject: [PATCH 01/18] Add the runtime value of arguments to operations --- src/wasm-lib/kcl/src/execution/cad_op.rs | 12 ++++++++---- src/wasm-lib/kcl/src/execution/exec_ast.rs | 18 +++++++++++++----- src/wasm-lib/kcl/src/simulation_tests.rs | 7 ++++++- 3 files changed, 27 insertions(+), 10 deletions(-) diff --git a/src/wasm-lib/kcl/src/execution/cad_op.rs b/src/wasm-lib/kcl/src/execution/cad_op.rs index 88c3255e63..9ee9b2afaf 100644 --- a/src/wasm-lib/kcl/src/execution/cad_op.rs +++ b/src/wasm-lib/kcl/src/execution/cad_op.rs @@ -4,9 +4,11 @@ use serde::{Deserialize, Serialize}; use crate::{docs::StdLibFn, std::get_stdlib_fn, SourceRange}; +use super::KclValue; + /// A CAD modeling operation for display in the feature tree, AKA operations /// timeline. -#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq, ts_rs::TS, JsonSchema)] +#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, ts_rs::TS, JsonSchema)] #[ts(export)] #[serde(tag = "type")] pub enum Operation { @@ -54,18 +56,20 @@ impl Operation { } /// An argument to a CAD modeling operation. -#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq, ts_rs::TS, JsonSchema)] +#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, ts_rs::TS, JsonSchema)] #[ts(export)] #[serde(rename_all = "camelCase")] pub struct OpArg { + /// The runtime value of the argument. + value: KclValue, /// The KCL code expression for the argument. This is used in the UI so /// that the user can edit the expression. source_range: SourceRange, } impl OpArg { - pub(crate) fn new(source_range: SourceRange) -> Self { - Self { source_range } + pub(crate) fn new(value: KclValue, source_range: SourceRange) -> Self { + Self { value, source_range } } } diff --git a/src/wasm-lib/kcl/src/execution/exec_ast.rs b/src/wasm-lib/kcl/src/execution/exec_ast.rs index a6fe87f934..8244c5e671 100644 --- a/src/wasm-lib/kcl/src/execution/exec_ast.rs +++ b/src/wasm-lib/kcl/src/execution/exec_ast.rs @@ -925,11 +925,15 @@ impl Node { .kw_args .labeled .iter() - .map(|(k, v)| (k.clone(), OpArg::new(v.source_range))) + .map(|(k, arg)| (k.clone(), OpArg::new(arg.value.clone(), arg.source_range))) .collect(); Some(Operation::StdLibCall { std_lib_fn: (&func).into(), - unlabeled_arg: args.kw_args.unlabeled.as_ref().map(|arg| OpArg::new(arg.source_range)), + unlabeled_arg: args + .kw_args + .unlabeled + .as_ref() + .map(|arg| OpArg::new(arg.value.clone(), arg.source_range)), labeled_args: op_labeled_args, source_range: callsite, is_error: false, @@ -970,7 +974,7 @@ impl Node { .kw_args .labeled .iter() - .map(|(k, v)| (k.clone(), OpArg::new(v.source_range))) + .map(|(k, arg)| (k.clone(), OpArg::new(arg.value.clone(), arg.source_range))) .collect(); exec_state .mod_local @@ -978,7 +982,11 @@ impl Node { .push(Operation::UserDefinedFunctionCall { name: Some(fn_name.clone()), function_source_range: func.function_def_source_range().unwrap_or_default(), - unlabeled_arg: args.kw_args.unlabeled.as_ref().map(|arg| OpArg::new(arg.source_range)), + unlabeled_arg: args + .kw_args + .unlabeled + .as_ref() + .map(|arg| OpArg::new(arg.value.clone(), arg.source_range)), labeled_args: op_labeled_args, source_range: callsite, }); @@ -1043,7 +1051,7 @@ impl Node { .args(false) .iter() .zip(&fn_args) - .map(|(k, v)| (k.name.clone(), OpArg::new(v.source_range))) + .map(|(k, arg)| (k.name.clone(), OpArg::new(arg.value.clone(), arg.source_range))) .collect(); Some(Operation::StdLibCall { std_lib_fn: (&func).into(), diff --git a/src/wasm-lib/kcl/src/simulation_tests.rs b/src/wasm-lib/kcl/src/simulation_tests.rs index 06b5ad8186..e0710bac0f 100644 --- a/src/wasm-lib/kcl/src/simulation_tests.rs +++ b/src/wasm-lib/kcl/src/simulation_tests.rs @@ -171,7 +171,12 @@ fn assert_common_snapshots( artifact_graph: ArtifactGraph, ) { assert_snapshot(test_name, "Operations executed", || { - insta::assert_json_snapshot!("ops", operations); + insta::assert_json_snapshot!("ops", operations, { + "[].unlabeledArg.*.value.**[].from[]" => rounded_redaction(4), + "[].unlabeledArg.*.value.**[].to[]" => rounded_redaction(4), + "[].labeledArgs.*.value.**[].from[]" => rounded_redaction(4), + "[].labeledArgs.*.value.**[].to[]" => rounded_redaction(4), + }); }); assert_snapshot(test_name, "Artifact commands", || { insta::assert_json_snapshot!("artifact_commands", artifact_commands, { From 0c7f409e5dcc0ae70c067794d015cbde74287bcf Mon Sep 17 00:00:00 2001 From: Jonathan Tran Date: Thu, 30 Jan 2025 23:27:54 -0500 Subject: [PATCH 02/18] Update output ops --- src/wasm-lib/kcl/tests/angled_line/ops.snap | 27 +- .../artifact_graph_example_code1/ops.snap | 1772 ++++++- .../ops.snap | 27 +- .../ops.snap | 138 +- .../ops.snap | 3945 +++++++++++++++- .../basic_fillet_cube_close_opposite/ops.snap | 567 ++- .../kcl/tests/basic_fillet_cube_end/ops.snap | 498 +- .../basic_fillet_cube_next_adjacent/ops.snap | 576 ++- .../ops.snap | 576 ++- .../artifact_commands.snap | 1 - .../tests/basic_fillet_cube_start/ops.snap | 545 ++- .../ops.snap | 27 +- .../ops.snap | 27 +- .../artifact_commands.snap | 1 - .../kcl/tests/circle_three_point/ops.snap | 28 +- .../circular_pattern3d_a_pattern/ops.snap | 1979 +++++++- src/wasm-lib/kcl/tests/cube/ops.snap | 67 +- .../kcl/tests/cube_with_error/ops.snap | 14 +- .../kcl/tests/fillet-and-shell/ops.snap | 2070 +++++++- .../kcl/tests/function_sketch/ops.snap | 27 +- .../function_sketch_with_position/ops.snap | 27 +- src/wasm-lib/kcl/tests/helix_ccw/ops.snap | 210 +- src/wasm-lib/kcl/tests/i_shape/ops.snap | 916 +++- src/wasm-lib/kcl/tests/kittycad_svg/ops.snap | 27 +- src/wasm-lib/kcl/tests/kw_fn/ops.snap | 27 +- .../kcl/tests/kw_fn_too_few_args/ops.snap | 14 +- .../kw_fn_unlabeled_but_has_label/ops.snap | 14 +- .../kcl/tests/kw_fn_with_defaults/ops.snap | 27 +- .../artifact_commands.snap | 1 - .../tests/linear_pattern3d_a_pattern/ops.snap | 1913 +++++++- .../kcl/tests/mike_stress_test/ops.snap | 27 +- src/wasm-lib/kcl/tests/neg_xz_plane/ops.snap | 34 +- src/wasm-lib/kcl/tests/parametric/ops.snap | 27 +- .../tests/parametric_with_tan_arc/ops.snap | 14 +- .../kcl/tests/pentagon_fillet_sugar/ops.snap | 2447 +++++++++- src/wasm-lib/kcl/tests/pipe_as_arg/ops.snap | 21 +- src/wasm-lib/kcl/tests/poop_chute/ops.snap | 571 ++- src/wasm-lib/kcl/tests/riddle_small/ops.snap | 27 +- .../ops.snap | 4184 ++++++++++++++++- .../sketch-on-chamfer-two-times/ops.snap | 4184 ++++++++++++++++- .../kcl/tests/sketch_in_object/ops.snap | 53 +- .../kcl/tests/sketch_on_face/ops.snap | 388 +- .../ops.snap | 1704 ++++++- .../sketch_on_face_circle_tagged/ops.snap | 270 +- .../kcl/tests/sketch_on_face_end/ops.snap | 270 +- .../ops.snap | 270 +- .../kcl/tests/sketch_on_face_start/ops.snap | 270 +- .../kcl/tests/tan_arc_x_line/ops.snap | 14 +- .../kcl/tests/tangential_arc/ops.snap | 14 +- src/wasm-lib/kcl/tests/xz_plane/ops.snap | 34 +- 50 files changed, 30860 insertions(+), 51 deletions(-) diff --git a/src/wasm-lib/kcl/tests/angled_line/ops.snap b/src/wasm-lib/kcl/tests/angled_line/ops.snap index 34a4f551e6..fcf0ebe25e 100644 --- a/src/wasm-lib/kcl/tests/angled_line/ops.snap +++ b/src/wasm-lib/kcl/tests/angled_line/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed angled_line.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 24, + 28, + 0 + ] + } + ] + }, "sourceRange": [ 24, 28, @@ -26,6 +38,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 4.0, + "__meta": [ + { + "sourceRange": [ + 287, + 288, + 0 + ] + } + ] + }, "sourceRange": [ 287, 288, diff --git a/src/wasm-lib/kcl/tests/artifact_graph_example_code1/ops.snap b/src/wasm-lib/kcl/tests/artifact_graph_example_code1/ops.snap index 778654a3b5..4f127dc893 100644 --- a/src/wasm-lib/kcl/tests/artifact_graph_example_code1/ops.snap +++ b/src/wasm-lib/kcl/tests/artifact_graph_example_code1/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed artifact_graph_example_code1.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 26, + 30, + 0 + ] + } + ] + }, "sourceRange": [ 26, 30, @@ -26,6 +38,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": -10.0, + "__meta": [ + { + "sourceRange": [ + 288, + 291, + 0 + ] + } + ] + }, "sourceRange": [ 288, 291, @@ -41,6 +66,277 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 70, + 89, + 0 + ] + }, + "from": [ + -5.0, + -5.0 + ], + "tag": null, + "to": [ + -5.0, + 5.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 95, + 131, + 0 + ] + }, + "from": [ + -5.0, + 5.0 + ], + "tag": { + "end": 130, + "start": 124, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 5.55, + 5.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 137, + 171, + 0 + ] + }, + "from": [ + 5.55, + 5.0 + ], + "tag": { + "end": 170, + "start": 164, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 5.55, + -5.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 177, + 233, + 0 + ] + }, + "from": [ + 5.55, + -5.0 + ], + "tag": null, + "to": [ + -5.0, + -5.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 239, + 246, + 0 + ] + }, + "from": [ + -5.0, + -5.0 + ], + "tag": null, + "to": [ + -5.0, + -5.0 + ], + "type": "ToPoint" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + -5.0, + -5.0 + ], + "to": [ + -5.0, + -5.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 37, + 64, + 0 + ] + } + }, + "tags": { + "seg01": { + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 95, + 131, + 0 + ] + }, + "from": [ + -5.0, + 5.0 + ], + "tag": { + "end": 130, + "start": 124, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 5.550000000000001, + 5.0 + ], + "type": "ToPoint" + }, + "surface": null + }, + "__meta": [ + { + "sourceRange": [ + 124, + 130, + 0 + ] + } + ] + }, + "seg02": { + "type": "TagIdentifier", + "value": "seg02", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 137, + 171, + 0 + ] + }, + "from": [ + 5.550000000000001, + 5.0 + ], + "tag": { + "end": 170, + "start": 164, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 5.550000000000001, + -5.0 + ], + "type": "ToPoint" + }, + "surface": null + }, + "__meta": [ + { + "sourceRange": [ + 164, + 170, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 64, + 0 + ] + } + ] + } + }, "sourceRange": [ 268, 277, @@ -51,6 +347,107 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 5.0, + "__meta": [ + { + "sourceRange": [ + 316, + 317, + 0 + ] + } + ] + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 95, + 131, + 0 + ] + }, + "from": [ + -5.0, + 5.0 + ], + "tag": { + "end": 130, + "start": 124, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 5.550000000000001, + 5.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 95, + 131, + 0 + ], + "tag": { + "end": 130, + "start": 124, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 124, + 130, + 0 + ] + } + ] + } + ], + "__meta": [ + { + "sourceRange": [ + 326, + 333, + 0 + ] + } + ] + } + }, + "__meta": [ + { + "sourceRange": [ + 305, + 335, + 0 + ] + } + ] + }, "sourceRange": [ 305, 335, @@ -58,6 +455,383 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 70, + 89, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 95, + 131, + 0 + ], + "tag": { + "end": 130, + "start": 124, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 137, + 171, + 0 + ], + "tag": { + "end": 170, + "start": 164, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 177, + 233, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 70, + 89, + 0 + ] + }, + "from": [ + -5.0, + -5.0 + ], + "tag": null, + "to": [ + -5.0, + 5.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 95, + 131, + 0 + ] + }, + "from": [ + -5.0, + 5.0 + ], + "tag": { + "end": 130, + "start": 124, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 5.55, + 5.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 137, + 171, + 0 + ] + }, + "from": [ + 5.55, + 5.0 + ], + "tag": { + "end": 170, + "start": 164, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 5.55, + -5.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 177, + 233, + 0 + ] + }, + "from": [ + 5.55, + -5.0 + ], + "tag": null, + "to": [ + -5.0, + -5.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 239, + 246, + 0 + ] + }, + "from": [ + -5.0, + -5.0 + ], + "tag": null, + "to": [ + -5.0, + -5.0 + ], + "type": "ToPoint" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + -5.0, + -5.0 + ], + "to": [ + -5.0, + -5.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 37, + 64, + 0 + ] + } + }, + "tags": { + "seg01": { + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 95, + 131, + 0 + ] + }, + "from": [ + -5.0, + 5.0 + ], + "tag": { + "end": 130, + "start": 124, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 5.550000000000001, + 5.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 95, + 131, + 0 + ], + "tag": { + "end": 130, + "start": 124, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 124, + 130, + 0 + ] + } + ] + }, + "seg02": { + "type": "TagIdentifier", + "value": "seg02", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 137, + 171, + 0 + ] + }, + "from": [ + 5.550000000000001, + 5.0 + ], + "tag": { + "end": 170, + "start": 164, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 5.550000000000001, + -5.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 137, + 171, + 0 + ], + "tag": { + "end": 170, + "start": 164, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 164, + 170, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 64, + 0 + ] + } + ] + }, + "height": -10.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 64, + 0 + ] + } + ] + } + }, "sourceRange": [ 337, 338, @@ -77,6 +851,392 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 70, + 89, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 95, + 131, + 0 + ], + "tag": { + "end": 130, + "start": 124, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 137, + 171, + 0 + ], + "tag": { + "end": 170, + "start": 164, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 177, + 233, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 70, + 89, + 0 + ] + }, + "from": [ + -5.0, + -5.0 + ], + "tag": null, + "to": [ + -5.0, + 5.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 95, + 131, + 0 + ] + }, + "from": [ + -5.0, + 5.0 + ], + "tag": { + "end": 130, + "start": 124, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 5.55, + 5.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 137, + 171, + 0 + ] + }, + "from": [ + 5.55, + 5.0 + ], + "tag": { + "end": 170, + "start": 164, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 5.55, + -5.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 177, + 233, + 0 + ] + }, + "from": [ + 5.55, + -5.0 + ], + "tag": null, + "to": [ + -5.0, + -5.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 239, + 246, + 0 + ] + }, + "from": [ + -5.0, + -5.0 + ], + "tag": null, + "to": [ + -5.0, + -5.0 + ], + "type": "ToPoint" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + -5.0, + -5.0 + ], + "to": [ + -5.0, + -5.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 37, + 64, + 0 + ] + } + }, + "tags": { + "seg01": { + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 95, + 131, + 0 + ] + }, + "from": [ + -5.0, + 5.0 + ], + "tag": { + "end": 130, + "start": 124, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 5.550000000000001, + 5.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 95, + 131, + 0 + ], + "tag": { + "end": 130, + "start": 124, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 124, + 130, + 0 + ] + } + ] + }, + "seg02": { + "type": "TagIdentifier", + "value": "seg02", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 137, + 171, + 0 + ] + }, + "from": [ + 5.550000000000001, + 5.0 + ], + "tag": { + "end": 170, + "start": 164, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 5.550000000000001, + -5.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 137, + 171, + 0 + ], + "tag": { + "end": 170, + "start": 164, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 164, + 170, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 64, + 0 + ] + } + ] + }, + "height": -10.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "edgeCuts": [ + { + "type": "fillet", + "id": "[uuid]", + "radius": 5.0, + "edgeId": "[uuid]", + "tag": null + } + ], + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 64, + 0 + ] + } + ] + } + }, "sourceRange": [ 366, 376, @@ -84,6 +1244,66 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "TagIdentifier", + "type": "TagIdentifier", + "value": "seg02", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 137, + 171, + 0 + ] + }, + "from": [ + 5.550000000000001, + 5.0 + ], + "tag": { + "end": 170, + "start": 164, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 5.550000000000001, + -5.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 137, + 171, + 0 + ], + "tag": { + "end": 170, + "start": 164, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 164, + 170, + 0 + ] + } + ] + }, "sourceRange": [ 378, 383, @@ -103,6 +1323,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 5.0, + "__meta": [ + { + "sourceRange": [ + 583, + 584, + 0 + ] + } + ] + }, "sourceRange": [ 583, 584, @@ -118,6 +1351,543 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 423, + 441, + 0 + ] + }, + "from": [ + -2.0, + -6.0 + ], + "tag": null, + "to": [ + 0.0, + -3.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 447, + 466, + 0 + ] + }, + "from": [ + 0.0, + -3.0 + ], + "tag": null, + "to": [ + 2.0, + -6.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 472, + 528, + 0 + ] + }, + "from": [ + 2.0, + -6.0 + ], + "tag": null, + "to": [ + -2.0, + -6.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 534, + 541, + 0 + ] + }, + "from": [ + -2.0, + -6.0 + ], + "tag": null, + "to": [ + -2.0, + -6.0 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "face", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "seg02", + "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 + }, + "solid": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 70, + 89, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 95, + 131, + 0 + ], + "tag": { + "end": 130, + "start": 124, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 137, + 171, + 0 + ], + "tag": { + "end": 170, + "start": 164, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 177, + 233, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 70, + 89, + 0 + ] + }, + "from": [ + -5.0, + -5.0 + ], + "tag": null, + "to": [ + -5.0, + 5.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 95, + 131, + 0 + ] + }, + "from": [ + -5.0, + 5.0 + ], + "tag": { + "end": 130, + "start": 124, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 5.55, + 5.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 137, + 171, + 0 + ] + }, + "from": [ + 5.55, + 5.0 + ], + "tag": { + "end": 170, + "start": 164, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 5.55, + -5.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 177, + 233, + 0 + ] + }, + "from": [ + 5.55, + -5.0 + ], + "tag": null, + "to": [ + -5.0, + -5.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 239, + 246, + 0 + ] + }, + "from": [ + -5.0, + -5.0 + ], + "tag": null, + "to": [ + -5.0, + -5.0 + ], + "type": "ToPoint" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + -5.0, + -5.0 + ], + "to": [ + -5.0, + -5.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 37, + 64, + 0 + ] + } + }, + "tags": { + "seg01": { + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 95, + 131, + 0 + ] + }, + "from": [ + -5.0, + 5.0 + ], + "tag": { + "end": 130, + "start": 124, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 5.550000000000001, + 5.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 95, + 131, + 0 + ], + "tag": { + "end": 130, + "start": 124, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 124, + 130, + 0 + ] + } + ] + }, + "seg02": { + "type": "TagIdentifier", + "value": "seg02", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 137, + 171, + 0 + ] + }, + "from": [ + 5.550000000000001, + 5.0 + ], + "tag": { + "end": 170, + "start": 164, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 5.550000000000001, + -5.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 137, + 171, + 0 + ], + "tag": { + "end": 170, + "start": 164, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 164, + 170, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 64, + 0 + ] + } + ] + }, + "height": -10.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "edgeCuts": [ + { + "type": "fillet", + "id": "[uuid]", + "radius": 5.0, + "edgeId": "[uuid]", + "tag": null + } + ], + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 64, + 0 + ] + } + ] + }, + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 352, + 384, + 0 + ] + } + ] + }, + "start": { + "from": [ + -2.0, + -6.0 + ], + "to": [ + -2.0, + -6.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 390, + 417, + 0 + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 390, + 417, + 0 + ] + } + ] + } + }, "sourceRange": [ 563, 572, diff --git a/src/wasm-lib/kcl/tests/artifact_graph_example_code_no_3d/ops.snap b/src/wasm-lib/kcl/tests/artifact_graph_example_code_no_3d/ops.snap index e3a0c8fbd7..42316f58aa 100644 --- a/src/wasm-lib/kcl/tests/artifact_graph_example_code_no_3d/ops.snap +++ b/src/wasm-lib/kcl/tests/artifact_graph_example_code_no_3d/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed artifact_graph_example_code_no_3d.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "YZ", + "__meta": [ + { + "sourceRange": [ + 26, + 30, + 0 + ] + } + ] + }, "sourceRange": [ 26, 30, @@ -26,6 +38,19 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "-XZ", + "__meta": [ + { + "sourceRange": [ + 455, + 460, + 0 + ] + } + ] + }, "sourceRange": [ 455, 460, diff --git a/src/wasm-lib/kcl/tests/artifact_graph_example_code_offset_planes/ops.snap b/src/wasm-lib/kcl/tests/artifact_graph_example_code_offset_planes/ops.snap index 5a22561ecc..c048421c82 100644 --- a/src/wasm-lib/kcl/tests/artifact_graph_example_code_offset_planes/ops.snap +++ b/src/wasm-lib/kcl/tests/artifact_graph_example_code_offset_planes/ops.snap @@ -1,12 +1,33 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed artifact_graph_example_code_offset_planes.kcl -snapshot_kind: text --- [ { "labeledArgs": { "offset": { + "value": { + "type": "Number", + "value": 20.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + }, + "__meta": [ + { + "sourceRange": [ + 44, + 46, + 0 + ] + } + ] + }, "sourceRange": [ 44, 46, @@ -22,6 +43,19 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 29, + 33, + 0 + ] + } + ] + }, "sourceRange": [ 29, 33, @@ -32,6 +66,28 @@ snapshot_kind: text { "labeledArgs": { "offset": { + "value": { + "type": "Number", + "value": -50.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + }, + "__meta": [ + { + "sourceRange": [ + 92, + 95, + 0 + ] + } + ] + }, "sourceRange": [ 92, 95, @@ -47,6 +103,19 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "String", + "value": "XZ", + "__meta": [ + { + "sourceRange": [ + 77, + 81, + 0 + ] + } + ] + }, "sourceRange": [ 77, 81, @@ -57,6 +126,28 @@ snapshot_kind: text { "labeledArgs": { "offset": { + "value": { + "type": "Number", + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + }, + "__meta": [ + { + "sourceRange": [ + 141, + 143, + 0 + ] + } + ] + }, "sourceRange": [ 141, 143, @@ -72,6 +163,19 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "String", + "value": "YZ", + "__meta": [ + { + "sourceRange": [ + 126, + 130, + 0 + ] + } + ] + }, "sourceRange": [ 126, 130, @@ -82,6 +186,38 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Plane", + "value": { + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "Custom", + "origin": { + "x": 0.0, + "y": 0.0, + "z": 20.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": [] + } + }, "sourceRange": [ 172, 186, diff --git a/src/wasm-lib/kcl/tests/artifact_graph_sketch_on_face_etc/ops.snap b/src/wasm-lib/kcl/tests/artifact_graph_sketch_on_face_etc/ops.snap index 4e9751c0a0..b748b34c05 100644 --- a/src/wasm-lib/kcl/tests/artifact_graph_sketch_on_face_etc/ops.snap +++ b/src/wasm-lib/kcl/tests/artifact_graph_sketch_on_face_etc/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed artifact_graph_sketch_on_face_etc.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XZ", + "__meta": [ + { + "sourceRange": [ + 26, + 30, + 0 + ] + } + ] + }, "sourceRange": [ 26, 30, @@ -26,6 +38,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 6.0, + "__meta": [ + { + "sourceRange": [ + 242, + 243, + 0 + ] + } + ] + }, "sourceRange": [ 242, 243, @@ -41,6 +66,208 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 68, + 86, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 4.0, + 8.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 92, + 125, + 0 + ] + }, + "from": [ + 4.0, + 8.0 + ], + "tag": { + "end": 124, + "start": 118, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 9.0, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 131, + 187, + 0 + ] + }, + "from": [ + 9.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 193, + 200, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 37, + 62, + 0 + ] + } + }, + "tags": { + "seg01": { + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 92, + 125, + 0 + ] + }, + "from": [ + 4.0, + 8.0 + ], + "tag": { + "end": 124, + "start": 118, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 9.0, + 0.0 + ], + "type": "ToPoint" + }, + "surface": null + }, + "__meta": [ + { + "sourceRange": [ + 118, + 124, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 62, + 0 + ] + } + ] + } + }, "sourceRange": [ 222, 231, @@ -51,6 +278,283 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 68, + 86, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 92, + 125, + 0 + ], + "tag": { + "end": 124, + "start": 118, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 131, + 187, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 68, + 86, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 4.0, + 8.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 92, + 125, + 0 + ] + }, + "from": [ + 4.0, + 8.0 + ], + "tag": { + "end": 124, + "start": 118, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 9.0, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 131, + 187, + 0 + ] + }, + "from": [ + 9.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 193, + 200, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 37, + 62, + 0 + ] + } + }, + "tags": { + "seg01": { + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 92, + 125, + 0 + ] + }, + "from": [ + 4.0, + 8.0 + ], + "tag": { + "end": 124, + "start": 118, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 9.0, + 0.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 92, + 125, + 0 + ], + "tag": { + "end": 124, + "start": 118, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 118, + 124, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 62, + 0 + ] + } + ] + }, + "height": 6.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 62, + 0 + ] + } + ] + } + }, "sourceRange": [ 271, 281, @@ -58,6 +562,66 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "TagIdentifier", + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 92, + 125, + 0 + ] + }, + "from": [ + 4.0, + 8.0 + ], + "tag": { + "end": 124, + "start": 118, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 9.0, + 0.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 92, + 125, + 0 + ], + "tag": { + "end": 124, + "start": 118, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 118, + 124, + 0 + ] + } + ] + }, "sourceRange": [ 283, 288, @@ -77,6 +641,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 5.0, + "__meta": [ + { + "sourceRange": [ + 491, + 492, + 0 + ] + } + ] + }, "sourceRange": [ 491, 492, @@ -92,6 +669,434 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 331, + 349, + 0 + ] + }, + "from": [ + -0.5, + 0.5 + ], + "tag": null, + "to": [ + 1.5, + 5.5 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 355, + 374, + 0 + ] + }, + "from": [ + 1.5, + 5.5 + ], + "tag": null, + "to": [ + 3.5, + 0.5 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 380, + 436, + 0 + ] + }, + "from": [ + 3.5, + 0.5 + ], + "tag": null, + "to": [ + -0.5, + 0.5 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 442, + 449, + 0 + ] + }, + "from": [ + -0.5, + 0.5 + ], + "tag": null, + "to": [ + -0.5, + 0.5 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "face", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "seg01", + "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 + }, + "solid": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 68, + 86, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 92, + 125, + 0 + ], + "tag": { + "end": 124, + "start": 118, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 131, + 187, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 68, + 86, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 4.0, + 8.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 92, + 125, + 0 + ] + }, + "from": [ + 4.0, + 8.0 + ], + "tag": { + "end": 124, + "start": 118, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 9.0, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 131, + 187, + 0 + ] + }, + "from": [ + 9.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 193, + 200, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 37, + 62, + 0 + ] + } + }, + "tags": { + "seg01": { + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 92, + 125, + 0 + ] + }, + "from": [ + 4.0, + 8.0 + ], + "tag": { + "end": 124, + "start": 118, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 9.0, + 0.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 92, + 125, + 0 + ], + "tag": { + "end": 124, + "start": 118, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 118, + 124, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 62, + 0 + ] + } + ] + }, + "height": 6.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 62, + 0 + ] + } + ] + }, + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 257, + 289, + 0 + ] + } + ] + }, + "start": { + "from": [ + -0.5, + 0.5 + ], + "to": [ + -0.5, + 0.5 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 295, + 325, + 0 + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 295, + 325, + 0 + ] + } + ] + } + }, "sourceRange": [ 471, 480, @@ -102,6 +1107,489 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 331, + 349, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 355, + 374, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 380, + 436, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 331, + 349, + 0 + ] + }, + "from": [ + -0.5, + 0.5 + ], + "tag": null, + "to": [ + 1.5, + 5.5 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 355, + 374, + 0 + ] + }, + "from": [ + 1.5, + 5.5 + ], + "tag": null, + "to": [ + 3.5, + 0.5 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 380, + 436, + 0 + ] + }, + "from": [ + 3.5, + 0.5 + ], + "tag": null, + "to": [ + -0.5, + 0.5 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 442, + 449, + 0 + ] + }, + "from": [ + -0.5, + 0.5 + ], + "tag": null, + "to": [ + -0.5, + 0.5 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "face", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "seg01", + "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 + }, + "solid": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 68, + 86, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 92, + 125, + 0 + ], + "tag": { + "end": 124, + "start": 118, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 131, + 187, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 68, + 86, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 4.0, + 8.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 92, + 125, + 0 + ] + }, + "from": [ + 4.0, + 8.0 + ], + "tag": { + "end": 124, + "start": 118, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 9.0, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 131, + 187, + 0 + ] + }, + "from": [ + 9.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 193, + 200, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 37, + 62, + 0 + ] + } + }, + "tags": { + "seg01": { + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 92, + 125, + 0 + ] + }, + "from": [ + 4.0, + 8.0 + ], + "tag": { + "end": 124, + "start": 118, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 9.0, + 0.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 92, + 125, + 0 + ], + "tag": { + "end": 124, + "start": 118, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 118, + 124, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 62, + 0 + ] + } + ] + }, + "height": 6.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 62, + 0 + ] + } + ] + }, + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 257, + 289, + 0 + ] + } + ] + }, + "start": { + "from": [ + -0.5, + 0.5 + ], + "to": [ + -0.5, + 0.5 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 295, + 325, + 0 + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 295, + 325, + 0 + ] + } + ] + }, + "height": 5.0, + "startCapId": null, + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 295, + 325, + 0 + ] + } + ] + } + }, "sourceRange": [ 520, 530, @@ -109,6 +1597,19 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "String", + "value": "END", + "__meta": [ + { + "sourceRange": [ + 532, + 537, + 0 + ] + } + ] + }, "sourceRange": [ 532, 537, @@ -128,6 +1629,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 4.0, + "__meta": [ + { + "sourceRange": [ + 753, + 754, + 0 + ] + } + ] + }, "sourceRange": [ 753, 754, @@ -143,6 +1657,691 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 577, + 611, + 0 + ] + }, + "from": [ + 1.0, + 1.5 + ], + "tag": { + "end": 610, + "start": 604, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 1.5, + 3.5 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 617, + 636, + 0 + ] + }, + "from": [ + 1.5, + 3.5 + ], + "tag": null, + "to": [ + 2.5, + 1.5 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 642, + 698, + 0 + ] + }, + "from": [ + 2.5, + 1.5 + ], + "tag": null, + "to": [ + 1.0, + 1.5 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 704, + 711, + 0 + ] + }, + "from": [ + 1.0, + 1.5 + ], + "tag": null, + "to": [ + 1.0, + 1.5 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "face", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "end", + "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 + }, + "solid": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 331, + 349, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 355, + 374, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 380, + 436, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 331, + 349, + 0 + ] + }, + "from": [ + -0.5, + 0.5 + ], + "tag": null, + "to": [ + 1.5, + 5.5 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 355, + 374, + 0 + ] + }, + "from": [ + 1.5, + 5.5 + ], + "tag": null, + "to": [ + 3.5, + 0.5 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 380, + 436, + 0 + ] + }, + "from": [ + 3.5, + 0.5 + ], + "tag": null, + "to": [ + -0.5, + 0.5 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 442, + 449, + 0 + ] + }, + "from": [ + -0.5, + 0.5 + ], + "tag": null, + "to": [ + -0.5, + 0.5 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "face", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "seg01", + "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 + }, + "solid": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 68, + 86, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 92, + 125, + 0 + ], + "tag": { + "end": 124, + "start": 118, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 131, + 187, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 68, + 86, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 4.0, + 8.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 92, + 125, + 0 + ] + }, + "from": [ + 4.0, + 8.0 + ], + "tag": { + "end": 124, + "start": 118, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 9.0, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 131, + 187, + 0 + ] + }, + "from": [ + 9.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 193, + 200, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 37, + 62, + 0 + ] + } + }, + "tags": { + "seg01": { + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 92, + 125, + 0 + ] + }, + "from": [ + 4.0, + 8.0 + ], + "tag": { + "end": 124, + "start": 118, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 9.0, + 0.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 92, + 125, + 0 + ], + "tag": { + "end": 124, + "start": 118, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 118, + 124, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 62, + 0 + ] + } + ] + }, + "height": 6.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 62, + 0 + ] + } + ] + }, + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 257, + 289, + 0 + ] + } + ] + }, + "start": { + "from": [ + -0.5, + 0.5 + ], + "to": [ + -0.5, + 0.5 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 295, + 325, + 0 + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 295, + 325, + 0 + ] + } + ] + }, + "height": 5.0, + "startCapId": null, + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 295, + 325, + 0 + ] + } + ] + }, + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 506, + 538, + 0 + ] + } + ] + }, + "start": { + "from": [ + 1.0, + 1.5 + ], + "to": [ + 1.0, + 1.5 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 544, + 571, + 0 + ] + } + }, + "tags": { + "seg02": { + "type": "TagIdentifier", + "value": "seg02", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 577, + 611, + 0 + ] + }, + "from": [ + 1.0, + 1.5 + ], + "tag": { + "end": 610, + "start": 604, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 1.5, + 3.5 + ], + "type": "ToPoint" + }, + "surface": null + }, + "__meta": [ + { + "sourceRange": [ + 604, + 610, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 544, + 571, + 0 + ] + } + ] + } + }, "sourceRange": [ 733, 742, @@ -153,6 +2352,766 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 577, + 611, + 0 + ], + "tag": { + "end": 610, + "start": 604, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 617, + 636, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 642, + 698, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 577, + 611, + 0 + ] + }, + "from": [ + 1.0, + 1.5 + ], + "tag": { + "end": 610, + "start": 604, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 1.5, + 3.5 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 617, + 636, + 0 + ] + }, + "from": [ + 1.5, + 3.5 + ], + "tag": null, + "to": [ + 2.5, + 1.5 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 642, + 698, + 0 + ] + }, + "from": [ + 2.5, + 1.5 + ], + "tag": null, + "to": [ + 1.0, + 1.5 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 704, + 711, + 0 + ] + }, + "from": [ + 1.0, + 1.5 + ], + "tag": null, + "to": [ + 1.0, + 1.5 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "face", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "end", + "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 + }, + "solid": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 331, + 349, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 355, + 374, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 380, + 436, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 331, + 349, + 0 + ] + }, + "from": [ + -0.5, + 0.5 + ], + "tag": null, + "to": [ + 1.5, + 5.5 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 355, + 374, + 0 + ] + }, + "from": [ + 1.5, + 5.5 + ], + "tag": null, + "to": [ + 3.5, + 0.5 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 380, + 436, + 0 + ] + }, + "from": [ + 3.5, + 0.5 + ], + "tag": null, + "to": [ + -0.5, + 0.5 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 442, + 449, + 0 + ] + }, + "from": [ + -0.5, + 0.5 + ], + "tag": null, + "to": [ + -0.5, + 0.5 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "face", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "seg01", + "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 + }, + "solid": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 68, + 86, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 92, + 125, + 0 + ], + "tag": { + "end": 124, + "start": 118, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 131, + 187, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 68, + 86, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 4.0, + 8.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 92, + 125, + 0 + ] + }, + "from": [ + 4.0, + 8.0 + ], + "tag": { + "end": 124, + "start": 118, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 9.0, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 131, + 187, + 0 + ] + }, + "from": [ + 9.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 193, + 200, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 37, + 62, + 0 + ] + } + }, + "tags": { + "seg01": { + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 92, + 125, + 0 + ] + }, + "from": [ + 4.0, + 8.0 + ], + "tag": { + "end": 124, + "start": 118, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 9.0, + 0.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 92, + 125, + 0 + ], + "tag": { + "end": 124, + "start": 118, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 118, + 124, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 62, + 0 + ] + } + ] + }, + "height": 6.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 62, + 0 + ] + } + ] + }, + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 257, + 289, + 0 + ] + } + ] + }, + "start": { + "from": [ + -0.5, + 0.5 + ], + "to": [ + -0.5, + 0.5 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 295, + 325, + 0 + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 295, + 325, + 0 + ] + } + ] + }, + "height": 5.0, + "startCapId": null, + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 295, + 325, + 0 + ] + } + ] + }, + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 506, + 538, + 0 + ] + } + ] + }, + "start": { + "from": [ + 1.0, + 1.5 + ], + "to": [ + 1.0, + 1.5 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 544, + 571, + 0 + ] + } + }, + "tags": { + "seg02": { + "type": "TagIdentifier", + "value": "seg02", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 577, + 611, + 0 + ] + }, + "from": [ + 1.0, + 1.5 + ], + "tag": { + "end": 610, + "start": 604, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 1.5, + 3.5 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 577, + 611, + 0 + ], + "tag": { + "end": 610, + "start": 604, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 604, + 610, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 544, + 571, + 0 + ] + } + ] + }, + "height": 4.0, + "startCapId": null, + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 544, + 571, + 0 + ] + } + ] + } + }, "sourceRange": [ 782, 792, @@ -160,6 +3119,66 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "TagIdentifier", + "type": "TagIdentifier", + "value": "seg02", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 577, + 611, + 0 + ] + }, + "from": [ + 1.0, + 1.5 + ], + "tag": { + "end": 610, + "start": 604, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 1.5, + 3.5 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 577, + 611, + 0 + ], + "tag": { + "end": 610, + "start": 604, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 604, + 610, + 0 + ] + } + ] + }, "sourceRange": [ 794, 799, @@ -179,6 +3198,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 3.0, + "__meta": [ + { + "sourceRange": [ + 1003, + 1004, + 0 + ] + } + ] + }, "sourceRange": [ 1003, 1004, @@ -194,6 +3226,917 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 839, + 859, + 0 + ] + }, + "from": [ + -3.0, + 14.0 + ], + "tag": null, + "to": [ + -2.5, + 15.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 865, + 886, + 0 + ] + }, + "from": [ + -2.5, + 15.0 + ], + "tag": null, + "to": [ + -2.0, + 13.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 892, + 948, + 0 + ] + }, + "from": [ + -2.0, + 13.0 + ], + "tag": null, + "to": [ + -3.0, + 14.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 954, + 961, + 0 + ] + }, + "from": [ + -3.0, + 14.0 + ], + "tag": null, + "to": [ + -3.0, + 14.0 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "face", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "seg02", + "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 + }, + "solid": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 577, + 611, + 0 + ], + "tag": { + "end": 610, + "start": 604, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 617, + 636, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 642, + 698, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 577, + 611, + 0 + ] + }, + "from": [ + 1.0, + 1.5 + ], + "tag": { + "end": 610, + "start": 604, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 1.5, + 3.5 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 617, + 636, + 0 + ] + }, + "from": [ + 1.5, + 3.5 + ], + "tag": null, + "to": [ + 2.5, + 1.5 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 642, + 698, + 0 + ] + }, + "from": [ + 2.5, + 1.5 + ], + "tag": null, + "to": [ + 1.0, + 1.5 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 704, + 711, + 0 + ] + }, + "from": [ + 1.0, + 1.5 + ], + "tag": null, + "to": [ + 1.0, + 1.5 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "face", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "end", + "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 + }, + "solid": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 331, + 349, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 355, + 374, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 380, + 436, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 331, + 349, + 0 + ] + }, + "from": [ + -0.5, + 0.5 + ], + "tag": null, + "to": [ + 1.5, + 5.5 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 355, + 374, + 0 + ] + }, + "from": [ + 1.5, + 5.5 + ], + "tag": null, + "to": [ + 3.5, + 0.5 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 380, + 436, + 0 + ] + }, + "from": [ + 3.5, + 0.5 + ], + "tag": null, + "to": [ + -0.5, + 0.5 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 442, + 449, + 0 + ] + }, + "from": [ + -0.5, + 0.5 + ], + "tag": null, + "to": [ + -0.5, + 0.5 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "face", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "seg01", + "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 + }, + "solid": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 68, + 86, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 92, + 125, + 0 + ], + "tag": { + "end": 124, + "start": 118, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 131, + 187, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 68, + 86, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 4.0, + 8.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 92, + 125, + 0 + ] + }, + "from": [ + 4.0, + 8.0 + ], + "tag": { + "end": 124, + "start": 118, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 9.0, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 131, + 187, + 0 + ] + }, + "from": [ + 9.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 193, + 200, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 37, + 62, + 0 + ] + } + }, + "tags": { + "seg01": { + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 92, + 125, + 0 + ] + }, + "from": [ + 4.0, + 8.0 + ], + "tag": { + "end": 124, + "start": 118, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 9.0, + 0.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 92, + 125, + 0 + ], + "tag": { + "end": 124, + "start": 118, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 118, + 124, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 62, + 0 + ] + } + ] + }, + "height": 6.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 62, + 0 + ] + } + ] + }, + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 257, + 289, + 0 + ] + } + ] + }, + "start": { + "from": [ + -0.5, + 0.5 + ], + "to": [ + -0.5, + 0.5 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 295, + 325, + 0 + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 295, + 325, + 0 + ] + } + ] + }, + "height": 5.0, + "startCapId": null, + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 295, + 325, + 0 + ] + } + ] + }, + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 506, + 538, + 0 + ] + } + ] + }, + "start": { + "from": [ + 1.0, + 1.5 + ], + "to": [ + 1.0, + 1.5 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 544, + 571, + 0 + ] + } + }, + "tags": { + "seg02": { + "type": "TagIdentifier", + "value": "seg02", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 577, + 611, + 0 + ] + }, + "from": [ + 1.0, + 1.5 + ], + "tag": { + "end": 610, + "start": 604, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 1.5, + 3.5 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 577, + 611, + 0 + ], + "tag": { + "end": 610, + "start": 604, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 604, + 610, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 544, + 571, + 0 + ] + } + ] + }, + "height": 4.0, + "startCapId": null, + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 544, + 571, + 0 + ] + } + ] + }, + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 768, + 800, + 0 + ] + } + ] + }, + "start": { + "from": [ + -3.0, + 14.0 + ], + "to": [ + -3.0, + 14.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 806, + 833, + 0 + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 806, + 833, + 0 + ] + } + ] + } + }, "sourceRange": [ 983, 992, diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_close_opposite/ops.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_close_opposite/ops.snap index 9e40b62e64..aadb7bed43 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_close_opposite/ops.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_close_opposite/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed basic_fillet_cube_close_opposite.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 24, + 28, + 0 + ] + } + ] + }, "sourceRange": [ 24, 28, @@ -26,6 +38,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 10.0, + "__meta": [ + { + "sourceRange": [ + 214, + 216, + 0 + ] + } + ] + }, "sourceRange": [ 214, 216, @@ -45,6 +70,120 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 2.0, + "__meta": [ + { + "sourceRange": [ + 248, + 249, + 0 + ] + } + ] + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "type": "TagIdentifier", + "value": "thing3", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 171, + 191, + 0 + ] + }, + "from": [ + 10.0, + 0.0 + ], + "tag": { + "end": 190, + "start": 183, + "type": "TagDeclarator", + "value": "thing3" + }, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 171, + 191, + 0 + ], + "tag": { + "end": 190, + "start": 183, + "type": "TagDeclarator", + "value": "thing3" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 183, + 190, + 0 + ] + } + ] + }, + { + "type": "Uuid", + "value": "[uuid]", + "__meta": [ + { + "sourceRange": [ + 274, + 297, + 0 + ] + } + ] + } + ], + "__meta": [ + { + "sourceRange": [ + 265, + 298, + 0 + ] + } + ] + } + }, + "__meta": [ + { + "sourceRange": [ + 230, + 305, + 0 + ] + } + ] + }, "sourceRange": [ 230, 305, @@ -52,6 +191,432 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 66, + 99, + 0 + ], + "tag": { + "end": 98, + "start": 92, + "type": "TagDeclarator", + "value": "thing" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 105, + 124, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 130, + 165, + 0 + ], + "tag": { + "end": 164, + "start": 157, + "type": "TagDeclarator", + "value": "thing2" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 171, + 191, + 0 + ], + "tag": { + "end": 190, + "start": 183, + "type": "TagDeclarator", + "value": "thing3" + }, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 66, + 99, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": { + "end": 98, + "start": 92, + "type": "TagDeclarator", + "value": "thing" + }, + "to": [ + 0.0, + 10.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 124, + 0 + ] + }, + "from": [ + 0.0, + 10.0 + ], + "tag": null, + "to": [ + 10.0, + 10.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 130, + 165, + 0 + ] + }, + "from": [ + 10.0, + 10.0 + ], + "tag": { + "end": 164, + "start": 157, + "type": "TagDeclarator", + "value": "thing2" + }, + "to": [ + 10.0, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 171, + 191, + 0 + ] + }, + "from": [ + 10.0, + 0.0 + ], + "tag": { + "end": 190, + "start": 183, + "type": "TagDeclarator", + "value": "thing3" + }, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 35, + 60, + 0 + ] + } + }, + "tags": { + "thing": { + "type": "TagIdentifier", + "value": "thing", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 66, + 99, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": { + "end": 98, + "start": 92, + "type": "TagDeclarator", + "value": "thing" + }, + "to": [ + 0.0, + 10.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 66, + 99, + 0 + ], + "tag": { + "end": 98, + "start": 92, + "type": "TagDeclarator", + "value": "thing" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 92, + 98, + 0 + ] + } + ] + }, + "thing2": { + "type": "TagIdentifier", + "value": "thing2", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 130, + 165, + 0 + ] + }, + "from": [ + 10.0, + 10.0 + ], + "tag": { + "end": 164, + "start": 157, + "type": "TagDeclarator", + "value": "thing2" + }, + "to": [ + 10.0, + 0.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 130, + 165, + 0 + ], + "tag": { + "end": 164, + "start": 157, + "type": "TagDeclarator", + "value": "thing2" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 157, + 164, + 0 + ] + } + ] + }, + "thing3": { + "type": "TagIdentifier", + "value": "thing3", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 171, + 191, + 0 + ] + }, + "from": [ + 10.0, + 0.0 + ], + "tag": { + "end": 190, + "start": 183, + "type": "TagDeclarator", + "value": "thing3" + }, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 171, + 191, + 0 + ], + "tag": { + "end": 190, + "start": 183, + "type": "TagDeclarator", + "value": "thing3" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 183, + 190, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 35, + 60, + 0 + ] + } + ] + }, + "height": 10.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 35, + 60, + 0 + ] + } + ] + } + }, "sourceRange": [ 307, 308, diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_end/ops.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_end/ops.snap index 0530f40d5a..310c39f2a8 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_end/ops.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_end/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed basic_fillet_cube_end.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 24, + 28, + 0 + ] + } + ] + }, "sourceRange": [ 24, 28, @@ -26,6 +38,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 10.0, + "__meta": [ + { + "sourceRange": [ + 202, + 204, + 0 + ] + } + ] + }, "sourceRange": [ 202, 204, @@ -45,6 +70,120 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 2.0, + "__meta": [ + { + "sourceRange": [ + 236, + 237, + 0 + ] + } + ] + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "type": "TagIdentifier", + "value": "thing", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 66, + 99, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": { + "end": 98, + "start": 92, + "type": "TagDeclarator", + "value": "thing" + }, + "to": [ + 0.0, + 10.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 66, + 99, + 0 + ], + "tag": { + "end": 98, + "start": 92, + "type": "TagDeclarator", + "value": "thing" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 92, + 98, + 0 + ] + } + ] + }, + { + "type": "Uuid", + "value": "[uuid]", + "__meta": [ + { + "sourceRange": [ + 261, + 283, + 0 + ] + } + ] + } + ], + "__meta": [ + { + "sourceRange": [ + 253, + 284, + 0 + ] + } + ] + } + }, + "__meta": [ + { + "sourceRange": [ + 218, + 291, + 0 + ] + } + ] + }, "sourceRange": [ 218, 291, @@ -52,6 +191,363 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 66, + 99, + 0 + ], + "tag": { + "end": 98, + "start": 92, + "type": "TagDeclarator", + "value": "thing" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 105, + 124, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 130, + 165, + 0 + ], + "tag": { + "end": 164, + "start": 157, + "type": "TagDeclarator", + "value": "thing2" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 171, + 179, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 66, + 99, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": { + "end": 98, + "start": 92, + "type": "TagDeclarator", + "value": "thing" + }, + "to": [ + 0.0, + 10.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 124, + 0 + ] + }, + "from": [ + 0.0, + 10.0 + ], + "tag": null, + "to": [ + 10.0, + 10.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 130, + 165, + 0 + ] + }, + "from": [ + 10.0, + 10.0 + ], + "tag": { + "end": 164, + "start": 157, + "type": "TagDeclarator", + "value": "thing2" + }, + "to": [ + 10.0, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 171, + 179, + 0 + ] + }, + "from": [ + 10.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 35, + 60, + 0 + ] + } + }, + "tags": { + "thing": { + "type": "TagIdentifier", + "value": "thing", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 66, + 99, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": { + "end": 98, + "start": 92, + "type": "TagDeclarator", + "value": "thing" + }, + "to": [ + 0.0, + 10.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 66, + 99, + 0 + ], + "tag": { + "end": 98, + "start": 92, + "type": "TagDeclarator", + "value": "thing" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 92, + 98, + 0 + ] + } + ] + }, + "thing2": { + "type": "TagIdentifier", + "value": "thing2", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 130, + 165, + 0 + ] + }, + "from": [ + 10.0, + 10.0 + ], + "tag": { + "end": 164, + "start": 157, + "type": "TagDeclarator", + "value": "thing2" + }, + "to": [ + 10.0, + 0.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 130, + 165, + 0 + ], + "tag": { + "end": 164, + "start": 157, + "type": "TagDeclarator", + "value": "thing2" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 157, + 164, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 35, + 60, + 0 + ] + } + ] + }, + "height": 10.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 35, + 60, + 0 + ] + } + ] + } + }, "sourceRange": [ 293, 294, diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_next_adjacent/ops.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_next_adjacent/ops.snap index 9445cdfd15..9ac817670e 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_next_adjacent/ops.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_next_adjacent/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed basic_fillet_cube_next_adjacent.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 24, + 28, + 0 + ] + } + ] + }, "sourceRange": [ 24, 28, @@ -26,6 +38,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 10.0, + "__meta": [ + { + "sourceRange": [ + 229, + 231, + 0 + ] + } + ] + }, "sourceRange": [ 229, 231, @@ -45,6 +70,60 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 2.0, + "__meta": [ + { + "sourceRange": [ + 263, + 264, + 0 + ] + } + ] + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "Uuid", + "value": "[uuid]", + "__meta": [ + { + "sourceRange": [ + 281, + 308, + 0 + ] + } + ] + } + ], + "__meta": [ + { + "sourceRange": [ + 280, + 309, + 0 + ] + } + ] + } + }, + "__meta": [ + { + "sourceRange": [ + 245, + 316, + 0 + ] + } + ] + }, "sourceRange": [ 245, 316, @@ -52,6 +131,501 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 66, + 99, + 0 + ], + "tag": { + "end": 98, + "start": 92, + "type": "TagDeclarator", + "value": "thing" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 105, + 139, + 0 + ], + "tag": { + "end": 138, + "start": 131, + "type": "TagDeclarator", + "value": "thing1" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 145, + 180, + 0 + ], + "tag": { + "end": 179, + "start": 172, + "type": "TagDeclarator", + "value": "thing2" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 186, + 206, + 0 + ], + "tag": { + "end": 205, + "start": 198, + "type": "TagDeclarator", + "value": "thing3" + }, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 66, + 99, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": { + "end": 98, + "start": 92, + "type": "TagDeclarator", + "value": "thing" + }, + "to": [ + 0.0, + 10.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 139, + 0 + ] + }, + "from": [ + 0.0, + 10.0 + ], + "tag": { + "end": 138, + "start": 131, + "type": "TagDeclarator", + "value": "thing1" + }, + "to": [ + 10.0, + 10.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 145, + 180, + 0 + ] + }, + "from": [ + 10.0, + 10.0 + ], + "tag": { + "end": 179, + "start": 172, + "type": "TagDeclarator", + "value": "thing2" + }, + "to": [ + 10.0, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 186, + 206, + 0 + ] + }, + "from": [ + 10.0, + 0.0 + ], + "tag": { + "end": 205, + "start": 198, + "type": "TagDeclarator", + "value": "thing3" + }, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 35, + 60, + 0 + ] + } + }, + "tags": { + "thing": { + "type": "TagIdentifier", + "value": "thing", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 66, + 99, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": { + "end": 98, + "start": 92, + "type": "TagDeclarator", + "value": "thing" + }, + "to": [ + 0.0, + 10.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 66, + 99, + 0 + ], + "tag": { + "end": 98, + "start": 92, + "type": "TagDeclarator", + "value": "thing" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 92, + 98, + 0 + ] + } + ] + }, + "thing1": { + "type": "TagIdentifier", + "value": "thing1", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 139, + 0 + ] + }, + "from": [ + 0.0, + 10.0 + ], + "tag": { + "end": 138, + "start": 131, + "type": "TagDeclarator", + "value": "thing1" + }, + "to": [ + 10.0, + 10.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 105, + 139, + 0 + ], + "tag": { + "end": 138, + "start": 131, + "type": "TagDeclarator", + "value": "thing1" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 131, + 138, + 0 + ] + } + ] + }, + "thing2": { + "type": "TagIdentifier", + "value": "thing2", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 145, + 180, + 0 + ] + }, + "from": [ + 10.0, + 10.0 + ], + "tag": { + "end": 179, + "start": 172, + "type": "TagDeclarator", + "value": "thing2" + }, + "to": [ + 10.0, + 0.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 145, + 180, + 0 + ], + "tag": { + "end": 179, + "start": 172, + "type": "TagDeclarator", + "value": "thing2" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 172, + 179, + 0 + ] + } + ] + }, + "thing3": { + "type": "TagIdentifier", + "value": "thing3", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 186, + 206, + 0 + ] + }, + "from": [ + 10.0, + 0.0 + ], + "tag": { + "end": 205, + "start": 198, + "type": "TagDeclarator", + "value": "thing3" + }, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 186, + 206, + 0 + ], + "tag": { + "end": 205, + "start": 198, + "type": "TagDeclarator", + "value": "thing3" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 198, + 205, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 35, + 60, + 0 + ] + } + ] + }, + "height": 10.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 35, + 60, + 0 + ] + } + ] + } + }, "sourceRange": [ 318, 319, diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_previous_adjacent/ops.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_previous_adjacent/ops.snap index 79c5f76cb9..796c87713d 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_previous_adjacent/ops.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_previous_adjacent/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed basic_fillet_cube_previous_adjacent.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 24, + 28, + 0 + ] + } + ] + }, "sourceRange": [ 24, 28, @@ -26,6 +38,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 10.0, + "__meta": [ + { + "sourceRange": [ + 229, + 231, + 0 + ] + } + ] + }, "sourceRange": [ 229, 231, @@ -45,6 +70,60 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 2.0, + "__meta": [ + { + "sourceRange": [ + 263, + 264, + 0 + ] + } + ] + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "Uuid", + "value": "[uuid]", + "__meta": [ + { + "sourceRange": [ + 281, + 312, + 0 + ] + } + ] + } + ], + "__meta": [ + { + "sourceRange": [ + 280, + 313, + 0 + ] + } + ] + } + }, + "__meta": [ + { + "sourceRange": [ + 245, + 320, + 0 + ] + } + ] + }, "sourceRange": [ 245, 320, @@ -52,6 +131,501 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 66, + 99, + 0 + ], + "tag": { + "end": 98, + "start": 92, + "type": "TagDeclarator", + "value": "thing" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 105, + 139, + 0 + ], + "tag": { + "end": 138, + "start": 131, + "type": "TagDeclarator", + "value": "thing1" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 145, + 180, + 0 + ], + "tag": { + "end": 179, + "start": 172, + "type": "TagDeclarator", + "value": "thing2" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 186, + 206, + 0 + ], + "tag": { + "end": 205, + "start": 198, + "type": "TagDeclarator", + "value": "thing3" + }, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 66, + 99, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": { + "end": 98, + "start": 92, + "type": "TagDeclarator", + "value": "thing" + }, + "to": [ + 0.0, + 10.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 139, + 0 + ] + }, + "from": [ + 0.0, + 10.0 + ], + "tag": { + "end": 138, + "start": 131, + "type": "TagDeclarator", + "value": "thing1" + }, + "to": [ + 10.0, + 10.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 145, + 180, + 0 + ] + }, + "from": [ + 10.0, + 10.0 + ], + "tag": { + "end": 179, + "start": 172, + "type": "TagDeclarator", + "value": "thing2" + }, + "to": [ + 10.0, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 186, + 206, + 0 + ] + }, + "from": [ + 10.0, + 0.0 + ], + "tag": { + "end": 205, + "start": 198, + "type": "TagDeclarator", + "value": "thing3" + }, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 35, + 60, + 0 + ] + } + }, + "tags": { + "thing": { + "type": "TagIdentifier", + "value": "thing", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 66, + 99, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": { + "end": 98, + "start": 92, + "type": "TagDeclarator", + "value": "thing" + }, + "to": [ + 0.0, + 10.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 66, + 99, + 0 + ], + "tag": { + "end": 98, + "start": 92, + "type": "TagDeclarator", + "value": "thing" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 92, + 98, + 0 + ] + } + ] + }, + "thing1": { + "type": "TagIdentifier", + "value": "thing1", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 139, + 0 + ] + }, + "from": [ + 0.0, + 10.0 + ], + "tag": { + "end": 138, + "start": 131, + "type": "TagDeclarator", + "value": "thing1" + }, + "to": [ + 10.0, + 10.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 105, + 139, + 0 + ], + "tag": { + "end": 138, + "start": 131, + "type": "TagDeclarator", + "value": "thing1" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 131, + 138, + 0 + ] + } + ] + }, + "thing2": { + "type": "TagIdentifier", + "value": "thing2", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 145, + 180, + 0 + ] + }, + "from": [ + 10.0, + 10.0 + ], + "tag": { + "end": 179, + "start": 172, + "type": "TagDeclarator", + "value": "thing2" + }, + "to": [ + 10.0, + 0.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 145, + 180, + 0 + ], + "tag": { + "end": 179, + "start": 172, + "type": "TagDeclarator", + "value": "thing2" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 172, + 179, + 0 + ] + } + ] + }, + "thing3": { + "type": "TagIdentifier", + "value": "thing3", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 186, + 206, + 0 + ] + }, + "from": [ + 10.0, + 0.0 + ], + "tag": { + "end": 205, + "start": 198, + "type": "TagDeclarator", + "value": "thing3" + }, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 186, + 206, + 0 + ], + "tag": { + "end": 205, + "start": 198, + "type": "TagDeclarator", + "value": "thing3" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 198, + 205, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 35, + 60, + 0 + ] + } + ] + }, + "height": 10.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 35, + 60, + 0 + ] + } + ] + } + }, "sourceRange": [ 322, 323, diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_start/artifact_commands.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_start/artifact_commands.snap index 186c523afa..c802bfaa44 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_start/artifact_commands.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_start/artifact_commands.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Artifact commands basic_fillet_cube_start.kcl -snapshot_kind: text --- [ { diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_start/ops.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_start/ops.snap index 1c4f31b39d..9570874cbc 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_start/ops.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_start/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed basic_fillet_cube_start.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 24, + 28, + 0 + ] + } + ] + }, "sourceRange": [ 24, 28, @@ -26,6 +38,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 10.0, + "__meta": [ + { + "sourceRange": [ + 202, + 204, + 0 + ] + } + ] + }, "sourceRange": [ 202, 204, @@ -45,6 +70,167 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 2.0, + "__meta": [ + { + "sourceRange": [ + 229, + 230, + 0 + ] + } + ] + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "type": "TagIdentifier", + "value": "thing", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 66, + 99, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": { + "end": 98, + "start": 92, + "type": "TagDeclarator", + "value": "thing" + }, + "to": [ + 0.0, + 10.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 66, + 99, + 0 + ], + "tag": { + "end": 98, + "start": 92, + "type": "TagDeclarator", + "value": "thing" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 92, + 98, + 0 + ] + } + ] + }, + { + "type": "TagIdentifier", + "type": "TagIdentifier", + "value": "thing2", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 130, + 165, + 0 + ] + }, + "from": [ + 10.0, + 10.0 + ], + "tag": { + "end": 164, + "start": 157, + "type": "TagDeclarator", + "value": "thing2" + }, + "to": [ + 10.0, + 0.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 130, + 165, + 0 + ], + "tag": { + "end": 164, + "start": 157, + "type": "TagDeclarator", + "value": "thing2" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 157, + 164, + 0 + ] + } + ] + } + ], + "__meta": [ + { + "sourceRange": [ + 239, + 254, + 0 + ] + } + ] + } + }, + "__meta": [ + { + "sourceRange": [ + 218, + 256, + 0 + ] + } + ] + }, "sourceRange": [ 218, 256, @@ -52,6 +238,363 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 66, + 99, + 0 + ], + "tag": { + "end": 98, + "start": 92, + "type": "TagDeclarator", + "value": "thing" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 105, + 124, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 130, + 165, + 0 + ], + "tag": { + "end": 164, + "start": 157, + "type": "TagDeclarator", + "value": "thing2" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 171, + 179, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 66, + 99, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": { + "end": 98, + "start": 92, + "type": "TagDeclarator", + "value": "thing" + }, + "to": [ + 0.0, + 10.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 124, + 0 + ] + }, + "from": [ + 0.0, + 10.0 + ], + "tag": null, + "to": [ + 10.0, + 10.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 130, + 165, + 0 + ] + }, + "from": [ + 10.0, + 10.0 + ], + "tag": { + "end": 164, + "start": 157, + "type": "TagDeclarator", + "value": "thing2" + }, + "to": [ + 10.0, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 171, + 179, + 0 + ] + }, + "from": [ + 10.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 35, + 60, + 0 + ] + } + }, + "tags": { + "thing": { + "type": "TagIdentifier", + "value": "thing", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 66, + 99, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": { + "end": 98, + "start": 92, + "type": "TagDeclarator", + "value": "thing" + }, + "to": [ + 0.0, + 10.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 66, + 99, + 0 + ], + "tag": { + "end": 98, + "start": 92, + "type": "TagDeclarator", + "value": "thing" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 92, + 98, + 0 + ] + } + ] + }, + "thing2": { + "type": "TagIdentifier", + "value": "thing2", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 130, + 165, + 0 + ] + }, + "from": [ + 10.0, + 10.0 + ], + "tag": { + "end": 164, + "start": 157, + "type": "TagDeclarator", + "value": "thing2" + }, + "to": [ + 10.0, + 0.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 130, + 165, + 0 + ], + "tag": { + "end": 164, + "start": 157, + "type": "TagDeclarator", + "value": "thing2" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 157, + 164, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 35, + 60, + 0 + ] + } + ] + }, + "height": 10.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 35, + 60, + 0 + ] + } + ] + } + }, "sourceRange": [ 258, 259, diff --git a/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_x/ops.snap b/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_x/ops.snap index 7ab7d2da49..f4f304121a 100644 --- a/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_x/ops.snap +++ b/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_x/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed big_number_angle_to_match_length_x.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 24, + 28, + 0 + ] + } + ] + }, "sourceRange": [ 24, 28, @@ -26,6 +38,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 10.0, + "__meta": [ + { + "sourceRange": [ + 200, + 202, + 0 + ] + } + ] + }, "sourceRange": [ 200, 202, diff --git a/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_y/ops.snap b/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_y/ops.snap index 1ef755c785..72a79c137a 100644 --- a/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_y/ops.snap +++ b/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_y/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed big_number_angle_to_match_length_y.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 24, + 28, + 0 + ] + } + ] + }, "sourceRange": [ 24, 28, @@ -26,6 +38,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 10.0, + "__meta": [ + { + "sourceRange": [ + 200, + 202, + 0 + ] + } + ] + }, "sourceRange": [ 200, 202, diff --git a/src/wasm-lib/kcl/tests/boolean_logical_multiple/artifact_commands.snap b/src/wasm-lib/kcl/tests/boolean_logical_multiple/artifact_commands.snap index e82049a3fb..a2a8c6ae3b 100644 --- a/src/wasm-lib/kcl/tests/boolean_logical_multiple/artifact_commands.snap +++ b/src/wasm-lib/kcl/tests/boolean_logical_multiple/artifact_commands.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Artifact commands boolean_logical_multiple.kcl -snapshot_kind: text --- [ { diff --git a/src/wasm-lib/kcl/tests/circle_three_point/ops.snap b/src/wasm-lib/kcl/tests/circle_three_point/ops.snap index 1ce97a13f0..4bfe6ed70c 100644 --- a/src/wasm-lib/kcl/tests/circle_three_point/ops.snap +++ b/src/wasm-lib/kcl/tests/circle_three_point/ops.snap @@ -1,13 +1,24 @@ --- source: kcl/src/simulation_tests.rs -assertion_line: 108 description: Operations executed circle_three_point.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 26, + 30, + 0 + ] + } + ] + }, "sourceRange": [ 26, 30, @@ -27,6 +38,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 10.0, + "__meta": [ + { + "sourceRange": [ + 121, + 123, + 0 + ] + } + ] + }, "sourceRange": [ 121, 123, diff --git a/src/wasm-lib/kcl/tests/circular_pattern3d_a_pattern/ops.snap b/src/wasm-lib/kcl/tests/circular_pattern3d_a_pattern/ops.snap index bd4cf3be45..b27d563d3b 100644 --- a/src/wasm-lib/kcl/tests/circular_pattern3d_a_pattern/ops.snap +++ b/src/wasm-lib/kcl/tests/circular_pattern3d_a_pattern/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed circular_pattern3d_a_pattern.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XZ", + "__meta": [ + { + "sourceRange": [ + 30, + 34, + 0 + ] + } + ] + }, "sourceRange": [ 30, 34, @@ -26,6 +38,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 1.0, + "__meta": [ + { + "sourceRange": [ + 176, + 177, + 0 + ] + } + ] + }, "sourceRange": [ 176, 177, @@ -45,6 +70,59 @@ snapshot_kind: text { "labeledArgs": { "axis": { + "value": { + "type": "Array", + "value": [ + { + "type": "Number", + "value": 1.0, + "__meta": [ + { + "sourceRange": [ + 233, + 234, + 0 + ] + } + ] + }, + { + "type": "Number", + "value": 0.0, + "__meta": [ + { + "sourceRange": [ + 236, + 237, + 0 + ] + } + ] + }, + { + "type": "Number", + "value": 0.0, + "__meta": [ + { + "sourceRange": [ + 239, + 240, + 0 + ] + } + ] + } + ], + "__meta": [ + { + "sourceRange": [ + 232, + 241, + 0 + ] + } + ] + }, "sourceRange": [ 232, 241, @@ -52,6 +130,19 @@ snapshot_kind: text ] }, "distance": { + "value": { + "type": "Number", + "value": 6.0, + "__meta": [ + { + "sourceRange": [ + 273, + 274, + 0 + ] + } + ] + }, "sourceRange": [ 273, 274, @@ -59,6 +150,19 @@ snapshot_kind: text ] }, "instances": { + "value": { + "type": "Number", + "value": 7.0, + "__meta": [ + { + "sourceRange": [ + 257, + 258, + 0 + ] + } + ] + }, "sourceRange": [ 257, 258, @@ -74,6 +178,224 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 2.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ] + }, + "from": [ + 0.0, + 2.0 + ], + "tag": null, + "to": [ + 3.0, + 3.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ] + }, + "from": [ + 3.0, + 3.0 + ], + "tag": null, + "to": [ + 3.0, + -1.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ] + }, + "from": [ + 3.0, + -1.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 41, + 66, + 0 + ] + } + }, + "artifactId": "[uuid]", + "originalId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + }, + "height": 1.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + } + }, "sourceRange": [ 208, 221, @@ -84,6 +406,19 @@ snapshot_kind: text { "labeledArgs": { "arcDegrees": { + "value": { + "type": "Number", + "value": 360.0, + "__meta": [ + { + "sourceRange": [ + 398, + 401, + 0 + ] + } + ] + }, "sourceRange": [ 398, 401, @@ -91,6 +426,59 @@ snapshot_kind: text ] }, "axis": { + "value": { + "type": "Array", + "value": [ + { + "type": "Number", + "value": 0.0, + "__meta": [ + { + "sourceRange": [ + 327, + 328, + 0 + ] + } + ] + }, + { + "type": "Number", + "value": 0.0, + "__meta": [ + { + "sourceRange": [ + 330, + 331, + 0 + ] + } + ] + }, + { + "type": "Number", + "value": 1.0, + "__meta": [ + { + "sourceRange": [ + 333, + 334, + 0 + ] + } + ] + } + ], + "__meta": [ + { + "sourceRange": [ + 326, + 335, + 0 + ] + } + ] + }, "sourceRange": [ 326, 335, @@ -98,6 +486,59 @@ snapshot_kind: text ] }, "center": { + "value": { + "type": "Array", + "value": [ + { + "type": "Number", + "value": -20.0, + "__meta": [ + { + "sourceRange": [ + 349, + 352, + 0 + ] + } + ] + }, + { + "type": "Number", + "value": -20.0, + "__meta": [ + { + "sourceRange": [ + 354, + 357, + 0 + ] + } + ] + }, + { + "type": "Number", + "value": -20.0, + "__meta": [ + { + "sourceRange": [ + 359, + 362, + 0 + ] + } + ] + } + ], + "__meta": [ + { + "sourceRange": [ + 348, + 363, + 0 + ] + } + ] + }, "sourceRange": [ 348, 363, @@ -105,6 +546,19 @@ snapshot_kind: text ] }, "instances": { + "value": { + "type": "Number", + "value": 41.0, + "__meta": [ + { + "sourceRange": [ + 379, + 381, + 0 + ] + } + ] + }, "sourceRange": [ 379, 381, @@ -112,6 +566,19 @@ snapshot_kind: text ] }, "rotateDuplicates": { + "value": { + "type": "Bool", + "value": false, + "__meta": [ + { + "sourceRange": [ + 424, + 429, + 0 + ] + } + ] + }, "sourceRange": [ 424, 429, @@ -127,6 +594,1516 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Solids", + "value": [ + { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 2.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ] + }, + "from": [ + 0.0, + 2.0 + ], + "tag": null, + "to": [ + 3.0, + 3.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ] + }, + "from": [ + 3.0, + 3.0 + ], + "tag": null, + "to": [ + 3.0, + -1.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ] + }, + "from": [ + 3.0, + -1.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 41, + 66, + 0 + ] + } + }, + "artifactId": "[uuid]", + "originalId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + }, + "height": 1.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + }, + { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 2.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ] + }, + "from": [ + 0.0, + 2.0 + ], + "tag": null, + "to": [ + 3.0, + 3.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ] + }, + "from": [ + 3.0, + 3.0 + ], + "tag": null, + "to": [ + 3.0, + -1.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ] + }, + "from": [ + 3.0, + -1.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 41, + 66, + 0 + ] + } + }, + "artifactId": "[uuid]", + "originalId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + }, + "height": 1.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + }, + { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 2.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ] + }, + "from": [ + 0.0, + 2.0 + ], + "tag": null, + "to": [ + 3.0, + 3.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ] + }, + "from": [ + 3.0, + 3.0 + ], + "tag": null, + "to": [ + 3.0, + -1.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ] + }, + "from": [ + 3.0, + -1.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 41, + 66, + 0 + ] + } + }, + "artifactId": "[uuid]", + "originalId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + }, + "height": 1.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + }, + { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 2.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ] + }, + "from": [ + 0.0, + 2.0 + ], + "tag": null, + "to": [ + 3.0, + 3.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ] + }, + "from": [ + 3.0, + 3.0 + ], + "tag": null, + "to": [ + 3.0, + -1.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ] + }, + "from": [ + 3.0, + -1.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 41, + 66, + 0 + ] + } + }, + "artifactId": "[uuid]", + "originalId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + }, + "height": 1.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + }, + { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 2.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ] + }, + "from": [ + 0.0, + 2.0 + ], + "tag": null, + "to": [ + 3.0, + 3.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ] + }, + "from": [ + 3.0, + 3.0 + ], + "tag": null, + "to": [ + 3.0, + -1.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ] + }, + "from": [ + 3.0, + -1.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 41, + 66, + 0 + ] + } + }, + "artifactId": "[uuid]", + "originalId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + }, + "height": 1.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + }, + { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 2.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ] + }, + "from": [ + 0.0, + 2.0 + ], + "tag": null, + "to": [ + 3.0, + 3.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ] + }, + "from": [ + 3.0, + 3.0 + ], + "tag": null, + "to": [ + 3.0, + -1.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ] + }, + "from": [ + 3.0, + -1.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 41, + 66, + 0 + ] + } + }, + "artifactId": "[uuid]", + "originalId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + }, + "height": 1.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + }, + { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 2.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ] + }, + "from": [ + 0.0, + 2.0 + ], + "tag": null, + "to": [ + 3.0, + 3.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ] + }, + "from": [ + 3.0, + 3.0 + ], + "tag": null, + "to": [ + 3.0, + -1.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ] + }, + "from": [ + 3.0, + -1.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 41, + 66, + 0 + ] + } + }, + "artifactId": "[uuid]", + "originalId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + }, + "height": 1.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + } + ] + }, "sourceRange": [ 309, 315, diff --git a/src/wasm-lib/kcl/tests/cube/ops.snap b/src/wasm-lib/kcl/tests/cube/ops.snap index 39cb68e2b4..ec7ef59a02 100644 --- a/src/wasm-lib/kcl/tests/cube/ops.snap +++ b/src/wasm-lib/kcl/tests/cube/ops.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed cube.kcl -snapshot_kind: text --- [ { @@ -15,6 +14,46 @@ snapshot_kind: text "unlabeledArg": null, "labeledArgs": { "center": { + "value": { + "type": "Array", + "value": [ + { + "type": "Number", + "value": 0.0, + "__meta": [ + { + "sourceRange": [ + 418, + 419, + 0 + ] + } + ] + }, + { + "type": "Number", + "value": 0.0, + "__meta": [ + { + "sourceRange": [ + 421, + 422, + 0 + ] + } + ] + } + ], + "__meta": [ + { + "sourceRange": [ + 417, + 423, + 0 + ] + } + ] + }, "sourceRange": [ 417, 423, @@ -22,6 +61,19 @@ snapshot_kind: text ] }, "sideLength": { + "value": { + "type": "Number", + "value": 40.0, + "__meta": [ + { + "sourceRange": [ + 404, + 406, + 0 + ] + } + ] + }, "sourceRange": [ 404, 406, @@ -38,6 +90,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 40.0, + "__meta": [ + { + "sourceRange": [ + 404, + 406, + 0 + ] + } + ] + }, "sourceRange": [ 362, 372, diff --git a/src/wasm-lib/kcl/tests/cube_with_error/ops.snap b/src/wasm-lib/kcl/tests/cube_with_error/ops.snap index b6f4e6c13d..b25a9bfda7 100644 --- a/src/wasm-lib/kcl/tests/cube_with_error/ops.snap +++ b/src/wasm-lib/kcl/tests/cube_with_error/ops.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed cube_with_error.kcl -snapshot_kind: text --- [ { @@ -23,6 +22,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 40.0, + "__meta": [ + { + "sourceRange": [ + 379, + 381, + 0 + ] + } + ] + }, "sourceRange": [ 354, 360, diff --git a/src/wasm-lib/kcl/tests/fillet-and-shell/ops.snap b/src/wasm-lib/kcl/tests/fillet-and-shell/ops.snap index 735d2825eb..8f90732fde 100644 --- a/src/wasm-lib/kcl/tests/fillet-and-shell/ops.snap +++ b/src/wasm-lib/kcl/tests/fillet-and-shell/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed fillet-and-shell.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 791, + 795, + 0 + ] + } + ] + }, "sourceRange": [ 791, 795, @@ -26,6 +38,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 8.0, + "__meta": [ + { + "sourceRange": [ + 165, + 166, + 0 + ] + } + ] + }, "sourceRange": [ 1047, 1057, @@ -45,6 +70,99 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 1.0, + "__meta": [ + { + "sourceRange": [ + 1089, + 1090, + 0 + ] + } + ] + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "Uuid", + "value": "[uuid]", + "__meta": [ + { + "sourceRange": [ + 1117, + 1143, + 0 + ] + } + ] + }, + { + "type": "Uuid", + "value": "[uuid]", + "__meta": [ + { + "sourceRange": [ + 1154, + 1180, + 0 + ] + } + ] + }, + { + "type": "Uuid", + "value": "[uuid]", + "__meta": [ + { + "sourceRange": [ + 1191, + 1217, + 0 + ] + } + ] + }, + { + "type": "Uuid", + "value": "[uuid]", + "__meta": [ + { + "sourceRange": [ + 1228, + 1254, + 0 + ] + } + ] + } + ], + "__meta": [ + { + "sourceRange": [ + 1106, + 1263, + 0 + ] + } + ] + } + }, + "__meta": [ + { + "sourceRange": [ + 1071, + 1270, + 0 + ] + } + ] + }, "sourceRange": [ 1071, 1270, @@ -52,6 +170,502 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 833, + 881, + 0 + ], + "tag": { + "end": 880, + "start": 874, + "type": "TagDeclarator", + "value": "edge1" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 887, + 944, + 0 + ], + "tag": { + "end": 943, + "start": 937, + "type": "TagDeclarator", + "value": "edge2" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 950, + 999, + 0 + ], + "tag": { + "end": 998, + "start": 992, + "type": "TagDeclarator", + "value": "edge3" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1005, + 1024, + 0 + ], + "tag": { + "end": 1023, + "start": 1017, + "type": "TagDeclarator", + "value": "edge4" + }, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 833, + 881, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": { + "end": 880, + "start": 874, + "type": "TagDeclarator", + "value": "edge1" + }, + "to": [ + 38.0, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 887, + 944, + 0 + ] + }, + "from": [ + 38.0, + 0.0 + ], + "tag": { + "end": 943, + "start": 937, + "type": "TagDeclarator", + "value": "edge2" + }, + "to": [ + 38.0, + 73.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 950, + 999, + 0 + ] + }, + "from": [ + 38.0, + 73.0 + ], + "tag": { + "end": 998, + "start": 992, + "type": "TagDeclarator", + "value": "edge3" + }, + "to": [ + 0.0, + 73.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1005, + 1024, + 0 + ] + }, + "from": [ + 0.0, + 73.0 + ], + "tag": { + "end": 1023, + "start": 1017, + "type": "TagDeclarator", + "value": "edge4" + }, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 802, + 827, + 0 + ] + } + }, + "tags": { + "edge1": { + "type": "TagIdentifier", + "value": "edge1", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 833, + 881, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": { + "end": 880, + "start": 874, + "type": "TagDeclarator", + "value": "edge1" + }, + "to": [ + 38.0, + 0.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 833, + 881, + 0 + ], + "tag": { + "end": 880, + "start": 874, + "type": "TagDeclarator", + "value": "edge1" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 874, + 880, + 0 + ] + } + ] + }, + "edge2": { + "type": "TagIdentifier", + "value": "edge2", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 887, + 944, + 0 + ] + }, + "from": [ + 38.0, + 0.0 + ], + "tag": { + "end": 943, + "start": 937, + "type": "TagDeclarator", + "value": "edge2" + }, + "to": [ + 38.0, + 73.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 887, + 944, + 0 + ], + "tag": { + "end": 943, + "start": 937, + "type": "TagDeclarator", + "value": "edge2" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 937, + 943, + 0 + ] + } + ] + }, + "edge3": { + "type": "TagIdentifier", + "value": "edge3", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 950, + 999, + 0 + ] + }, + "from": [ + 38.0, + 73.0 + ], + "tag": { + "end": 998, + "start": 992, + "type": "TagDeclarator", + "value": "edge3" + }, + "to": [ + 0.0, + 73.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 950, + 999, + 0 + ], + "tag": { + "end": 998, + "start": 992, + "type": "TagDeclarator", + "value": "edge3" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 992, + 998, + 0 + ] + } + ] + }, + "edge4": { + "type": "TagIdentifier", + "value": "edge4", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1005, + 1024, + 0 + ] + }, + "from": [ + 0.0, + 73.0 + ], + "tag": { + "end": 1023, + "start": 1017, + "type": "TagDeclarator", + "value": "edge4" + }, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1005, + 1024, + 0 + ], + "tag": { + "end": 1023, + "start": 1017, + "type": "TagDeclarator", + "value": "edge4" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 1017, + 1023, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "originalId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 802, + 827, + 0 + ] + } + ] + }, + "height": 8.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 802, + 827, + 0 + ] + } + ] + } + }, "sourceRange": [ 1272, 1273, @@ -87,6 +701,19 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 1328, + 1332, + 0 + ] + } + ] + }, "sourceRange": [ 1328, 1332, @@ -106,6 +733,104 @@ snapshot_kind: text { "labeledArgs": { "hole_sketch": { + "value": { + "type": "Sketch", + "value": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1431, + 1476, + 0 + ] + }, + "ccw": true, + "center": [ + 7.5, + 7.5 + ], + "from": [ + 8.75, + 7.5 + ], + "radius": 1.25, + "tag": null, + "to": [ + 8.75, + 7.5 + ], + "type": "Circle" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 8.75, + 7.5 + ], + "to": [ + 8.75, + 7.5 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1431, + 1476, + 0 + ] + } + }, + "artifactId": "[uuid]", + "originalId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 1431, + 1476, + 0 + ] + } + ] + } + }, "sourceRange": [ 1431, 1476, @@ -113,6 +838,104 @@ snapshot_kind: text ] }, "sketch": { + "value": { + "type": "Sketch", + "value": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1374, + 1418, + 0 + ] + }, + "ccw": true, + "center": [ + 7.5, + 7.5 + ], + "from": [ + 10.0, + 7.5 + ], + "radius": 2.5, + "tag": null, + "to": [ + 10.0, + 7.5 + ], + "type": "Circle" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 10.0, + 7.5 + ], + "to": [ + 10.0, + 7.5 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1374, + 1418, + 0 + ] + } + }, + "artifactId": "[uuid]", + "originalId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 1374, + 1418, + 0 + ] + } + ] + } + }, "sourceRange": [ 1478, 1479, @@ -132,6 +955,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 4.0, + "__meta": [ + { + "sourceRange": [ + 77, + 78, + 0 + ] + } + ] + }, "sourceRange": [ 1505, 1511, @@ -170,6 +1006,19 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 1328, + 1332, + 0 + ] + } + ] + }, "sourceRange": [ 1328, 1332, @@ -189,6 +1038,104 @@ snapshot_kind: text { "labeledArgs": { "hole_sketch": { + "value": { + "type": "Sketch", + "value": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1431, + 1476, + 0 + ] + }, + "ccw": true, + "center": [ + 7.5, + 65.5 + ], + "from": [ + 8.75, + 65.5 + ], + "radius": 1.25, + "tag": null, + "to": [ + 8.75, + 65.5 + ], + "type": "Circle" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 8.75, + 65.5 + ], + "to": [ + 8.75, + 65.5 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1431, + 1476, + 0 + ] + } + }, + "artifactId": "[uuid]", + "originalId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 1431, + 1476, + 0 + ] + } + ] + } + }, "sourceRange": [ 1431, 1476, @@ -196,6 +1143,104 @@ snapshot_kind: text ] }, "sketch": { + "value": { + "type": "Sketch", + "value": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1374, + 1418, + 0 + ] + }, + "ccw": true, + "center": [ + 7.5, + 65.5 + ], + "from": [ + 10.0, + 65.5 + ], + "radius": 2.5, + "tag": null, + "to": [ + 10.0, + 65.5 + ], + "type": "Circle" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 10.0, + 65.5 + ], + "to": [ + 10.0, + 65.5 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1374, + 1418, + 0 + ] + } + }, + "artifactId": "[uuid]", + "originalId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 1374, + 1418, + 0 + ] + } + ] + } + }, "sourceRange": [ 1478, 1479, @@ -215,6 +1260,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 4.0, + "__meta": [ + { + "sourceRange": [ + 77, + 78, + 0 + ] + } + ] + }, "sourceRange": [ 1505, 1511, @@ -253,6 +1311,19 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 1328, + 1332, + 0 + ] + } + ] + }, "sourceRange": [ 1328, 1332, @@ -272,6 +1343,104 @@ snapshot_kind: text { "labeledArgs": { "hole_sketch": { + "value": { + "type": "Sketch", + "value": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1431, + 1476, + 0 + ] + }, + "ccw": true, + "center": [ + 30.5, + 65.5 + ], + "from": [ + 31.75, + 65.5 + ], + "radius": 1.25, + "tag": null, + "to": [ + 31.75, + 65.5 + ], + "type": "Circle" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 31.75, + 65.5 + ], + "to": [ + 31.75, + 65.5 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1431, + 1476, + 0 + ] + } + }, + "artifactId": "[uuid]", + "originalId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 1431, + 1476, + 0 + ] + } + ] + } + }, "sourceRange": [ 1431, 1476, @@ -279,6 +1448,104 @@ snapshot_kind: text ] }, "sketch": { + "value": { + "type": "Sketch", + "value": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1374, + 1418, + 0 + ] + }, + "ccw": true, + "center": [ + 30.5, + 65.5 + ], + "from": [ + 33.0, + 65.5 + ], + "radius": 2.5, + "tag": null, + "to": [ + 33.0, + 65.5 + ], + "type": "Circle" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 33.0, + 65.5 + ], + "to": [ + 33.0, + 65.5 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1374, + 1418, + 0 + ] + } + }, + "artifactId": "[uuid]", + "originalId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 1374, + 1418, + 0 + ] + } + ] + } + }, "sourceRange": [ 1478, 1479, @@ -298,6 +1565,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 4.0, + "__meta": [ + { + "sourceRange": [ + 77, + 78, + 0 + ] + } + ] + }, "sourceRange": [ 1505, 1511, @@ -336,6 +1616,19 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 1328, + 1332, + 0 + ] + } + ] + }, "sourceRange": [ 1328, 1332, @@ -355,6 +1648,104 @@ snapshot_kind: text { "labeledArgs": { "hole_sketch": { + "value": { + "type": "Sketch", + "value": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1431, + 1476, + 0 + ] + }, + "ccw": true, + "center": [ + 30.5, + 7.5 + ], + "from": [ + 31.75, + 7.5 + ], + "radius": 1.25, + "tag": null, + "to": [ + 31.75, + 7.5 + ], + "type": "Circle" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 31.75, + 7.5 + ], + "to": [ + 31.75, + 7.5 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1431, + 1476, + 0 + ] + } + }, + "artifactId": "[uuid]", + "originalId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 1431, + 1476, + 0 + ] + } + ] + } + }, "sourceRange": [ 1431, 1476, @@ -362,6 +1753,104 @@ snapshot_kind: text ] }, "sketch": { + "value": { + "type": "Sketch", + "value": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1374, + 1418, + 0 + ] + }, + "ccw": true, + "center": [ + 30.5, + 7.5 + ], + "from": [ + 33.0, + 7.5 + ], + "radius": 2.5, + "tag": null, + "to": [ + 33.0, + 7.5 + ], + "type": "Circle" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 33.0, + 7.5 + ], + "to": [ + 33.0, + 7.5 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1374, + 1418, + 0 + ] + } + }, + "artifactId": "[uuid]", + "originalId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 1374, + 1418, + 0 + ] + } + ] + } + }, "sourceRange": [ 1478, 1479, @@ -381,6 +1870,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 4.0, + "__meta": [ + { + "sourceRange": [ + 77, + 78, + 0 + ] + } + ] + }, "sourceRange": [ 1505, 1511, @@ -403,6 +1905,33 @@ snapshot_kind: text { "labeledArgs": { "faces": { + "value": { + "type": "Array", + "value": [ + { + "type": "String", + "value": "end", + "__meta": [ + { + "sourceRange": [ + 2068, + 2073, + 0 + ] + } + ] + } + ], + "__meta": [ + { + "sourceRange": [ + 2067, + 2074, + 0 + ] + } + ] + }, "sourceRange": [ 2067, 2074, @@ -410,6 +1939,19 @@ snapshot_kind: text ] }, "thickness": { + "value": { + "type": "Number", + "value": 1.0, + "__meta": [ + { + "sourceRange": [ + 48, + 49, + 0 + ] + } + ] + }, "sourceRange": [ 2088, 2101, @@ -425,6 +1967,532 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 833, + 881, + 0 + ], + "tag": { + "end": 880, + "start": 874, + "type": "TagDeclarator", + "value": "edge1" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 887, + 944, + 0 + ], + "tag": { + "end": 943, + "start": 937, + "type": "TagDeclarator", + "value": "edge2" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 950, + 999, + 0 + ], + "tag": { + "end": 998, + "start": 992, + "type": "TagDeclarator", + "value": "edge3" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1005, + 1024, + 0 + ], + "tag": { + "end": 1023, + "start": 1017, + "type": "TagDeclarator", + "value": "edge4" + }, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 833, + 881, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": { + "end": 880, + "start": 874, + "type": "TagDeclarator", + "value": "edge1" + }, + "to": [ + 38.0, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 887, + 944, + 0 + ] + }, + "from": [ + 38.0, + 0.0 + ], + "tag": { + "end": 943, + "start": 937, + "type": "TagDeclarator", + "value": "edge2" + }, + "to": [ + 38.0, + 73.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 950, + 999, + 0 + ] + }, + "from": [ + 38.0, + 73.0 + ], + "tag": { + "end": 998, + "start": 992, + "type": "TagDeclarator", + "value": "edge3" + }, + "to": [ + 0.0, + 73.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1005, + 1024, + 0 + ] + }, + "from": [ + 0.0, + 73.0 + ], + "tag": { + "end": 1023, + "start": 1017, + "type": "TagDeclarator", + "value": "edge4" + }, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 802, + 827, + 0 + ] + } + }, + "tags": { + "edge1": { + "type": "TagIdentifier", + "value": "edge1", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 833, + 881, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": { + "end": 880, + "start": 874, + "type": "TagDeclarator", + "value": "edge1" + }, + "to": [ + 38.0, + 0.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 833, + 881, + 0 + ], + "tag": { + "end": 880, + "start": 874, + "type": "TagDeclarator", + "value": "edge1" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 874, + 880, + 0 + ] + } + ] + }, + "edge2": { + "type": "TagIdentifier", + "value": "edge2", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 887, + 944, + 0 + ] + }, + "from": [ + 38.0, + 0.0 + ], + "tag": { + "end": 943, + "start": 937, + "type": "TagDeclarator", + "value": "edge2" + }, + "to": [ + 38.0, + 73.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 887, + 944, + 0 + ], + "tag": { + "end": 943, + "start": 937, + "type": "TagDeclarator", + "value": "edge2" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 937, + 943, + 0 + ] + } + ] + }, + "edge3": { + "type": "TagIdentifier", + "value": "edge3", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 950, + 999, + 0 + ] + }, + "from": [ + 38.0, + 73.0 + ], + "tag": { + "end": 998, + "start": 992, + "type": "TagDeclarator", + "value": "edge3" + }, + "to": [ + 0.0, + 73.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 950, + 999, + 0 + ], + "tag": { + "end": 998, + "start": 992, + "type": "TagDeclarator", + "value": "edge3" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 992, + 998, + 0 + ] + } + ] + }, + "edge4": { + "type": "TagIdentifier", + "value": "edge4", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1005, + 1024, + 0 + ] + }, + "from": [ + 0.0, + 73.0 + ], + "tag": { + "end": 1023, + "start": 1017, + "type": "TagDeclarator", + "value": "edge4" + }, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1005, + 1024, + 0 + ], + "tag": { + "end": 1023, + "start": 1017, + "type": "TagDeclarator", + "value": "edge4" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 1017, + 1023, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "originalId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 802, + 827, + 0 + ] + } + ] + }, + "height": 8.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "edgeCuts": [ + { + "type": "fillet", + "id": "[uuid]", + "radius": 1.0, + "edgeId": "[uuid]", + "tag": null + }, + { + "type": "fillet", + "id": "[uuid]", + "radius": 1.0, + "edgeId": "[uuid]", + "tag": null + }, + { + "type": "fillet", + "id": "[uuid]", + "radius": 1.0, + "edgeId": "[uuid]", + "tag": null + }, + { + "type": "fillet", + "id": "[uuid]", + "radius": 1.0, + "edgeId": "[uuid]", + "tag": null + } + ], + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 802, + 827, + 0 + ] + } + ] + } + }, "sourceRange": [ 2053, 2057, diff --git a/src/wasm-lib/kcl/tests/function_sketch/ops.snap b/src/wasm-lib/kcl/tests/function_sketch/ops.snap index 329aed84ab..f71e0cab10 100644 --- a/src/wasm-lib/kcl/tests/function_sketch/ops.snap +++ b/src/wasm-lib/kcl/tests/function_sketch/ops.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed function_sketch.kcl -snapshot_kind: text --- [ { @@ -23,6 +22,19 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 42, + 46, + 0 + ] + } + ] + }, "sourceRange": [ 42, 46, @@ -42,6 +54,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 3.0, + "__meta": [ + { + "sourceRange": [ + 234, + 235, + 0 + ] + } + ] + }, "sourceRange": [ 200, 201, diff --git a/src/wasm-lib/kcl/tests/function_sketch_with_position/ops.snap b/src/wasm-lib/kcl/tests/function_sketch_with_position/ops.snap index 1d702803e2..2a31abacbb 100644 --- a/src/wasm-lib/kcl/tests/function_sketch_with_position/ops.snap +++ b/src/wasm-lib/kcl/tests/function_sketch_with_position/ops.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed function_sketch_with_position.kcl -snapshot_kind: text --- [ { @@ -23,6 +22,19 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 45, + 49, + 0 + ] + } + ] + }, "sourceRange": [ 45, 49, @@ -42,6 +54,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 3.0, + "__meta": [ + { + "sourceRange": [ + 240, + 241, + 0 + ] + } + ] + }, "sourceRange": [ 198, 199, diff --git a/src/wasm-lib/kcl/tests/helix_ccw/ops.snap b/src/wasm-lib/kcl/tests/helix_ccw/ops.snap index 730acbab24..b78a5edc08 100644 --- a/src/wasm-lib/kcl/tests/helix_ccw/ops.snap +++ b/src/wasm-lib/kcl/tests/helix_ccw/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed helix_ccw.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 24, + 28, + 0 + ] + } + ] + }, "sourceRange": [ 24, 28, @@ -26,6 +38,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 10.0, + "__meta": [ + { + "sourceRange": [ + 101, + 103, + 0 + ] + } + ] + }, "sourceRange": [ 101, 103, @@ -45,6 +70,59 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "angleStart": { + "type": "Number", + "value": 0.0, + "__meta": [ + { + "sourceRange": [ + 174, + 175, + 0 + ] + } + ] + }, + "ccw": { + "type": "Bool", + "value": true, + "__meta": [ + { + "sourceRange": [ + 190, + 194, + 0 + ] + } + ] + }, + "revolutions": { + "type": "Number", + "value": 16.0, + "__meta": [ + { + "sourceRange": [ + 150, + 152, + 0 + ] + } + ] + } + }, + "__meta": [ + { + "sourceRange": [ + 127, + 201, + 0 + ] + } + ] + }, "sourceRange": [ 127, 201, @@ -52,6 +130,136 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 35, + 78, + 0 + ], + "tag": null, + "type": "extrudeArc" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 35, + 78, + 0 + ] + }, + "ccw": true, + "center": [ + 5.0, + 5.0 + ], + "from": [ + 15.0, + 5.0 + ], + "radius": 10.0, + "tag": null, + "to": [ + 15.0, + 5.0 + ], + "type": "Circle" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 15.0, + 5.0 + ], + "to": [ + 15.0, + 5.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 35, + 78, + 0 + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 35, + 78, + 0 + ] + } + ] + }, + "height": 10.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 35, + 78, + 0 + ] + } + ] + } + }, "sourceRange": [ 203, 204, diff --git a/src/wasm-lib/kcl/tests/i_shape/ops.snap b/src/wasm-lib/kcl/tests/i_shape/ops.snap index ec4231ba33..43f1ada1c8 100644 --- a/src/wasm-lib/kcl/tests/i_shape/ops.snap +++ b/src/wasm-lib/kcl/tests/i_shape/ops.snap @@ -1,12 +1,282 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed i_shape.kcl -snapshot_kind: text --- [ { "labeledArgs": { "hole_sketch": { + "value": { + "type": "Sketch", + "value": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1926, + 1939, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 1.0, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1945, + 2003, + 0 + ] + }, + "ccw": true, + "center": [ + 1.0, + 5.0 + ], + "from": [ + 1.0, + 0.0 + ], + "tag": null, + "to": [ + 6.0, + 5.0 + ], + "type": "TangentialArcTo" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 2009, + 2045, + 0 + ] + }, + "from": [ + 6.0, + 5.0 + ], + "tag": null, + "to": [ + 6.0, + 20.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 2051, + 2110, + 0 + ] + }, + "ccw": true, + "center": [ + 1.0, + 20.0 + ], + "from": [ + 6.0, + 20.0 + ], + "tag": null, + "to": [ + 1.0, + 25.0 + ], + "type": "TangentialArcTo" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 2116, + 2130, + 0 + ] + }, + "from": [ + 1.0, + 25.0 + ], + "tag": null, + "to": [ + 0.0, + 25.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 2136, + 2196, + 0 + ] + }, + "ccw": true, + "center": [ + 0.0, + 20.0 + ], + "from": [ + 0.0, + 25.0 + ], + "tag": null, + "to": [ + -5.0, + 20.0 + ], + "type": "TangentialArcTo" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 2202, + 2241, + 0 + ] + }, + "from": [ + -5.0, + 20.0 + ], + "tag": null, + "to": [ + -5.0, + 5.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 2247, + 2306, + 0 + ] + }, + "ccw": true, + "center": [ + 0.0, + 5.0 + ], + "from": [ + -5.0, + 5.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "TangentialArcTo" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 2312, + 2320, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1899, + 1920, + 0 + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 1899, + 1920, + 0 + ] + } + ] + } + }, "sourceRange": [ 2351, 2356, @@ -14,6 +284,637 @@ snapshot_kind: text ] }, "sketch": { + "value": { + "type": "Sketch", + "value": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 438, + 478, + 0 + ] + }, + "from": [ + 5.0, + 0.0 + ], + "tag": null, + "to": [ + 68.4, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 484, + 542, + 0 + ] + }, + "ccw": true, + "center": [ + 68.4, + 5.0 + ], + "from": [ + 68.4, + 0.0 + ], + "tag": null, + "to": [ + 73.4, + 5.0 + ], + "type": "TangentialArcTo" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 548, + 578, + 0 + ] + }, + "from": [ + 73.4, + 5.0 + ], + "tag": null, + "to": [ + 73.4, + 25.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 584, + 643, + 0 + ] + }, + "ccw": true, + "center": [ + 68.4, + 25.0 + ], + "from": [ + 73.4, + 25.0 + ], + "tag": null, + "to": [ + 68.4, + 30.0 + ], + "type": "TangentialArcTo" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 649, + 708, + 0 + ] + }, + "from": [ + 68.4, + 30.0 + ], + "tag": null, + "to": [ + 55.6, + 30.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 714, + 773, + 0 + ] + }, + "ccw": false, + "center": [ + 55.60000000000001, + 35.0 + ], + "from": [ + 55.6, + 30.0 + ], + "tag": null, + "to": [ + 50.6, + 35.0 + ], + "type": "TangentialArcTo" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 779, + 831, + 0 + ] + }, + "from": [ + 50.6, + 35.0 + ], + "tag": null, + "to": [ + 50.6, + 97.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 837, + 895, + 0 + ] + }, + "ccw": false, + "center": [ + 55.60000000000001, + 97.0 + ], + "from": [ + 50.6, + 97.0 + ], + "tag": null, + "to": [ + 55.6, + 102.0 + ], + "type": "TangentialArcTo" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 901, + 937, + 0 + ] + }, + "from": [ + 55.6, + 102.0 + ], + "tag": null, + "to": [ + 60.6, + 102.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 943, + 1001, + 0 + ] + }, + "ccw": true, + "center": [ + 60.60000000000001, + 107.0 + ], + "from": [ + 60.6, + 102.0 + ], + "tag": null, + "to": [ + 65.6, + 107.0 + ], + "type": "TangentialArcTo" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1007, + 1037, + 0 + ] + }, + "from": [ + 65.6, + 107.0 + ], + "tag": null, + "to": [ + 65.6, + 125.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1043, + 1102, + 0 + ] + }, + "ccw": true, + "center": [ + 60.60000000000001, + 125.0 + ], + "from": [ + 65.6, + 125.0 + ], + "tag": null, + "to": [ + 60.6, + 130.0 + ], + "type": "TangentialArcTo" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1108, + 1171, + 0 + ] + }, + "from": [ + 60.6, + 130.0 + ], + "tag": null, + "to": [ + 16.6, + 130.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1177, + 1237, + 0 + ] + }, + "ccw": true, + "center": [ + 16.60000000000001, + 125.0 + ], + "from": [ + 16.6, + 130.0 + ], + "tag": null, + "to": [ + 11.6, + 125.0 + ], + "type": "TangentialArcTo" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1243, + 1276, + 0 + ] + }, + "from": [ + 11.6, + 125.0 + ], + "tag": null, + "to": [ + 11.6, + 107.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1282, + 1341, + 0 + ] + }, + "ccw": true, + "center": [ + 16.60000000000001, + 107.0 + ], + "from": [ + 11.6, + 107.0 + ], + "tag": null, + "to": [ + 16.6, + 102.0 + ], + "type": "TangentialArcTo" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1347, + 1383, + 0 + ] + }, + "from": [ + 16.6, + 102.0 + ], + "tag": null, + "to": [ + 21.6, + 102.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1389, + 1448, + 0 + ] + }, + "ccw": false, + "center": [ + 21.60000000000001, + 97.0 + ], + "from": [ + 21.6, + 102.0 + ], + "tag": null, + "to": [ + 26.6, + 97.0 + ], + "type": "TangentialArcTo" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1454, + 1509, + 0 + ] + }, + "from": [ + 26.6, + 97.0 + ], + "tag": null, + "to": [ + 26.6, + 35.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1515, + 1575, + 0 + ] + }, + "ccw": false, + "center": [ + 21.60000000000001, + 35.0 + ], + "from": [ + 26.6, + 35.0 + ], + "tag": null, + "to": [ + 21.6, + 30.0 + ], + "type": "TangentialArcTo" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1581, + 1705, + 0 + ] + }, + "from": [ + 21.6, + 30.0 + ], + "tag": null, + "to": [ + 5.0, + 30.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1711, + 1771, + 0 + ] + }, + "ccw": true, + "center": [ + 5.000000000000014, + 25.0 + ], + "from": [ + 5.0, + 30.0 + ], + "tag": null, + "to": [ + 0.0, + 25.0 + ], + "type": "TangentialArcTo" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1777, + 1810, + 0 + ] + }, + "from": [ + 0.0, + 25.0 + ], + "tag": null, + "to": [ + 0.0, + 5.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1816, + 1875, + 0 + ] + }, + "ccw": true, + "center": [ + 5.000000000000014, + 5.0 + ], + "from": [ + 0.0, + 5.0 + ], + "tag": null, + "to": [ + 5.0, + 0.0 + ], + "type": "TangentialArcTo" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1881, + 1889, + 0 + ] + }, + "from": [ + 5.0, + 0.0 + ], + "tag": null, + "to": [ + 5.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 5.0, + 0.0 + ], + "to": [ + 5.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 399, + 432, + 0 + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 399, + 432, + 0 + ] + } + ] + } + }, "sourceRange": [ 2358, 2359, @@ -33,6 +934,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 3.0, + "__meta": [ + { + "sourceRange": [ + 2383, + 2386, + 0 + ] + } + ] + }, "sourceRange": [ 2383, 2386, diff --git a/src/wasm-lib/kcl/tests/kittycad_svg/ops.snap b/src/wasm-lib/kcl/tests/kittycad_svg/ops.snap index 2edd0ee0c1..e107f92957 100644 --- a/src/wasm-lib/kcl/tests/kittycad_svg/ops.snap +++ b/src/wasm-lib/kcl/tests/kittycad_svg/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed kittycad_svg.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 20, + 24, + 0 + ] + } + ] + }, "sourceRange": [ 20, 24, @@ -26,6 +38,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 1.0, + "__meta": [ + { + "sourceRange": [ + 18364, + 18365, + 0 + ] + } + ] + }, "sourceRange": [ 18364, 18365, diff --git a/src/wasm-lib/kcl/tests/kw_fn/ops.snap b/src/wasm-lib/kcl/tests/kw_fn/ops.snap index 1405b73725..d40374a33a 100644 --- a/src/wasm-lib/kcl/tests/kw_fn/ops.snap +++ b/src/wasm-lib/kcl/tests/kw_fn/ops.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed kw_fn.kcl -snapshot_kind: text --- [ { @@ -32,6 +31,19 @@ snapshot_kind: text 0 ], "unlabeledArg": { + "value": { + "type": "Number", + "value": 1.0, + "__meta": [ + { + "sourceRange": [ + 110, + 111, + 0 + ] + } + ] + }, "sourceRange": [ 110, 111, @@ -40,6 +52,19 @@ snapshot_kind: text }, "labeledArgs": { "delta": { + "value": { + "type": "Number", + "value": 2.0, + "__meta": [ + { + "sourceRange": [ + 121, + 122, + 0 + ] + } + ] + }, "sourceRange": [ 121, 122, diff --git a/src/wasm-lib/kcl/tests/kw_fn_too_few_args/ops.snap b/src/wasm-lib/kcl/tests/kw_fn_too_few_args/ops.snap index b7af427631..8c6bdb3796 100644 --- a/src/wasm-lib/kcl/tests/kw_fn_too_few_args/ops.snap +++ b/src/wasm-lib/kcl/tests/kw_fn_too_few_args/ops.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed kw_fn_too_few_args.kcl -snapshot_kind: text --- [ { @@ -15,6 +14,19 @@ snapshot_kind: text "unlabeledArg": null, "labeledArgs": { "x": { + "value": { + "type": "Number", + "value": 1.0, + "__meta": [ + { + "sourceRange": [ + 49, + 50, + 0 + ] + } + ] + }, "sourceRange": [ 49, 50, diff --git a/src/wasm-lib/kcl/tests/kw_fn_unlabeled_but_has_label/ops.snap b/src/wasm-lib/kcl/tests/kw_fn_unlabeled_but_has_label/ops.snap index 8606ca43f3..f58cd0648d 100644 --- a/src/wasm-lib/kcl/tests/kw_fn_unlabeled_but_has_label/ops.snap +++ b/src/wasm-lib/kcl/tests/kw_fn_unlabeled_but_has_label/ops.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed kw_fn_unlabeled_but_has_label.kcl -snapshot_kind: text --- [ { @@ -15,6 +14,19 @@ snapshot_kind: text "unlabeledArg": null, "labeledArgs": { "x": { + "value": { + "type": "Number", + "value": 1.0, + "__meta": [ + { + "sourceRange": [ + 45, + 46, + 0 + ] + } + ] + }, "sourceRange": [ 45, 46, diff --git a/src/wasm-lib/kcl/tests/kw_fn_with_defaults/ops.snap b/src/wasm-lib/kcl/tests/kw_fn_with_defaults/ops.snap index 91c1bda82c..e57e93b941 100644 --- a/src/wasm-lib/kcl/tests/kw_fn_with_defaults/ops.snap +++ b/src/wasm-lib/kcl/tests/kw_fn_with_defaults/ops.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed kw_fn_with_defaults.kcl -snapshot_kind: text --- [ { @@ -32,6 +31,19 @@ snapshot_kind: text 0 ], "unlabeledArg": { + "value": { + "type": "Number", + "value": 1.0, + "__meta": [ + { + "sourceRange": [ + 88, + 89, + 0 + ] + } + ] + }, "sourceRange": [ 88, 89, @@ -40,6 +52,19 @@ snapshot_kind: text }, "labeledArgs": { "by": { + "value": { + "type": "Number", + "value": 20.0, + "__meta": [ + { + "sourceRange": [ + 96, + 98, + 0 + ] + } + ] + }, "sourceRange": [ 96, 98, diff --git a/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/artifact_commands.snap b/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/artifact_commands.snap index a7e0460edb..95790b52de 100644 --- a/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/artifact_commands.snap +++ b/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/artifact_commands.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Artifact commands linear_pattern3d_a_pattern.kcl -snapshot_kind: text --- [ { diff --git a/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/ops.snap b/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/ops.snap index 5f7598f9bf..d28f48726c 100644 --- a/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/ops.snap +++ b/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed linear_pattern3d_a_pattern.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XZ", + "__meta": [ + { + "sourceRange": [ + 30, + 34, + 0 + ] + } + ] + }, "sourceRange": [ 30, 34, @@ -26,6 +38,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 1.0, + "__meta": [ + { + "sourceRange": [ + 176, + 177, + 0 + ] + } + ] + }, "sourceRange": [ 176, 177, @@ -45,6 +70,59 @@ snapshot_kind: text { "labeledArgs": { "axis": { + "value": { + "type": "Array", + "value": [ + { + "type": "Number", + "value": 1.0, + "__meta": [ + { + "sourceRange": [ + 233, + 234, + 0 + ] + } + ] + }, + { + "type": "Number", + "value": 0.0, + "__meta": [ + { + "sourceRange": [ + 236, + 237, + 0 + ] + } + ] + }, + { + "type": "Number", + "value": 0.0, + "__meta": [ + { + "sourceRange": [ + 239, + 240, + 0 + ] + } + ] + } + ], + "__meta": [ + { + "sourceRange": [ + 232, + 241, + 0 + ] + } + ] + }, "sourceRange": [ 232, 241, @@ -52,6 +130,19 @@ snapshot_kind: text ] }, "distance": { + "value": { + "type": "Number", + "value": 6.0, + "__meta": [ + { + "sourceRange": [ + 273, + 274, + 0 + ] + } + ] + }, "sourceRange": [ 273, 274, @@ -59,6 +150,19 @@ snapshot_kind: text ] }, "instances": { + "value": { + "type": "Number", + "value": 7.0, + "__meta": [ + { + "sourceRange": [ + 257, + 258, + 0 + ] + } + ] + }, "sourceRange": [ 257, 258, @@ -74,6 +178,224 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 2.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ] + }, + "from": [ + 0.0, + 2.0 + ], + "tag": null, + "to": [ + 3.0, + 3.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ] + }, + "from": [ + 3.0, + 3.0 + ], + "tag": null, + "to": [ + 3.0, + -1.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ] + }, + "from": [ + 3.0, + -1.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 41, + 66, + 0 + ] + } + }, + "artifactId": "[uuid]", + "originalId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + }, + "height": 1.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + } + }, "sourceRange": [ 208, 221, @@ -84,6 +406,59 @@ snapshot_kind: text { "labeledArgs": { "axis": { + "value": { + "type": "Array", + "value": [ + { + "type": "Number", + "value": 0.0, + "__meta": [ + { + "sourceRange": [ + 325, + 326, + 0 + ] + } + ] + }, + { + "type": "Number", + "value": 0.0, + "__meta": [ + { + "sourceRange": [ + 328, + 329, + 0 + ] + } + ] + }, + { + "type": "Number", + "value": 1.0, + "__meta": [ + { + "sourceRange": [ + 331, + 332, + 0 + ] + } + ] + } + ], + "__meta": [ + { + "sourceRange": [ + 324, + 333, + 0 + ] + } + ] + }, "sourceRange": [ 324, 333, @@ -91,6 +466,19 @@ snapshot_kind: text ] }, "distance": { + "value": { + "type": "Number", + "value": 1.0, + "__meta": [ + { + "sourceRange": [ + 348, + 349, + 0 + ] + } + ] + }, "sourceRange": [ 348, 349, @@ -98,6 +486,19 @@ snapshot_kind: text ] }, "instances": { + "value": { + "type": "Number", + "value": 7.0, + "__meta": [ + { + "sourceRange": [ + 365, + 366, + 0 + ] + } + ] + }, "sourceRange": [ 365, 366, @@ -113,6 +514,1516 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Solids", + "value": [ + { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 2.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ] + }, + "from": [ + 0.0, + 2.0 + ], + "tag": null, + "to": [ + 3.0, + 3.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ] + }, + "from": [ + 3.0, + 3.0 + ], + "tag": null, + "to": [ + 3.0, + -1.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ] + }, + "from": [ + 3.0, + -1.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 41, + 66, + 0 + ] + } + }, + "artifactId": "[uuid]", + "originalId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + }, + "height": 1.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + }, + { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 2.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ] + }, + "from": [ + 0.0, + 2.0 + ], + "tag": null, + "to": [ + 3.0, + 3.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ] + }, + "from": [ + 3.0, + 3.0 + ], + "tag": null, + "to": [ + 3.0, + -1.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ] + }, + "from": [ + 3.0, + -1.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 41, + 66, + 0 + ] + } + }, + "artifactId": "[uuid]", + "originalId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + }, + "height": 1.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + }, + { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 2.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ] + }, + "from": [ + 0.0, + 2.0 + ], + "tag": null, + "to": [ + 3.0, + 3.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ] + }, + "from": [ + 3.0, + 3.0 + ], + "tag": null, + "to": [ + 3.0, + -1.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ] + }, + "from": [ + 3.0, + -1.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 41, + 66, + 0 + ] + } + }, + "artifactId": "[uuid]", + "originalId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + }, + "height": 1.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + }, + { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 2.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ] + }, + "from": [ + 0.0, + 2.0 + ], + "tag": null, + "to": [ + 3.0, + 3.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ] + }, + "from": [ + 3.0, + 3.0 + ], + "tag": null, + "to": [ + 3.0, + -1.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ] + }, + "from": [ + 3.0, + -1.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 41, + 66, + 0 + ] + } + }, + "artifactId": "[uuid]", + "originalId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + }, + "height": 1.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + }, + { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 2.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ] + }, + "from": [ + 0.0, + 2.0 + ], + "tag": null, + "to": [ + 3.0, + 3.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ] + }, + "from": [ + 3.0, + 3.0 + ], + "tag": null, + "to": [ + 3.0, + -1.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ] + }, + "from": [ + 3.0, + -1.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 41, + 66, + 0 + ] + } + }, + "artifactId": "[uuid]", + "originalId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + }, + "height": 1.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + }, + { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 2.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ] + }, + "from": [ + 0.0, + 2.0 + ], + "tag": null, + "to": [ + 3.0, + 3.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ] + }, + "from": [ + 3.0, + 3.0 + ], + "tag": null, + "to": [ + 3.0, + -1.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ] + }, + "from": [ + 3.0, + -1.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 41, + 66, + 0 + ] + } + }, + "artifactId": "[uuid]", + "originalId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + }, + "height": 1.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + }, + { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 72, + 90, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 2.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 96, + 114, + 0 + ] + }, + "from": [ + 0.0, + 2.0 + ], + "tag": null, + "to": [ + 3.0, + 3.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 120, + 139, + 0 + ] + }, + "from": [ + 3.0, + 3.0 + ], + "tag": null, + "to": [ + 3.0, + -1.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 145, + 153, + 0 + ] + }, + "from": [ + 3.0, + -1.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 41, + 66, + 0 + ] + } + }, + "artifactId": "[uuid]", + "originalId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + }, + "height": 1.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 41, + 66, + 0 + ] + } + ] + } + ] + }, "sourceRange": [ 307, 313, diff --git a/src/wasm-lib/kcl/tests/mike_stress_test/ops.snap b/src/wasm-lib/kcl/tests/mike_stress_test/ops.snap index 7020221fd5..d4ba7069fe 100644 --- a/src/wasm-lib/kcl/tests/mike_stress_test/ops.snap +++ b/src/wasm-lib/kcl/tests/mike_stress_test/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed mike_stress_test.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 24, + 28, + 0 + ] + } + ] + }, "sourceRange": [ 24, 28, @@ -26,6 +38,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 5.0, + "__meta": [ + { + "sourceRange": [ + 77119, + 77120, + 0 + ] + } + ] + }, "sourceRange": [ 77119, 77120, diff --git a/src/wasm-lib/kcl/tests/neg_xz_plane/ops.snap b/src/wasm-lib/kcl/tests/neg_xz_plane/ops.snap index 8180b3e2ab..63c3ad4427 100644 --- a/src/wasm-lib/kcl/tests/neg_xz_plane/ops.snap +++ b/src/wasm-lib/kcl/tests/neg_xz_plane/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed neg_xz_plane.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "-XZ", + "__meta": [ + { + "sourceRange": [ + 24, + 29, + 0 + ] + } + ] + }, "sourceRange": [ 24, 29, @@ -26,6 +38,26 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 12.0, + "__meta": [ + { + "sourceRange": [ + 168, + 169, + 0 + ] + }, + { + "sourceRange": [ + 172, + 173, + 0 + ] + } + ] + }, "sourceRange": [ 168, 173, diff --git a/src/wasm-lib/kcl/tests/parametric/ops.snap b/src/wasm-lib/kcl/tests/parametric/ops.snap index 140d7232fd..20bff8b4ee 100644 --- a/src/wasm-lib/kcl/tests/parametric/ops.snap +++ b/src/wasm-lib/kcl/tests/parametric/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed parametric.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 242, + 246, + 0 + ] + } + ] + }, "sourceRange": [ 242, 246, @@ -26,6 +38,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 9.0, + "__meta": [ + { + "sourceRange": [ + 34, + 35, + 0 + ] + } + ] + }, "sourceRange": [ 482, 487, diff --git a/src/wasm-lib/kcl/tests/parametric_with_tan_arc/ops.snap b/src/wasm-lib/kcl/tests/parametric_with_tan_arc/ops.snap index 617de7b095..14e538c515 100644 --- a/src/wasm-lib/kcl/tests/parametric_with_tan_arc/ops.snap +++ b/src/wasm-lib/kcl/tests/parametric_with_tan_arc/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed parametric_with_tan_arc.kcl -snapshot_kind: text --- [ { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 11.0, + "__meta": [ + { + "sourceRange": [ + 34, + 36, + 0 + ] + } + ] + }, "sourceRange": [ 612, 617, diff --git a/src/wasm-lib/kcl/tests/pentagon_fillet_sugar/ops.snap b/src/wasm-lib/kcl/tests/pentagon_fillet_sugar/ops.snap index 0cfc3f0ab8..b8eb609e03 100644 --- a/src/wasm-lib/kcl/tests/pentagon_fillet_sugar/ops.snap +++ b/src/wasm-lib/kcl/tests/pentagon_fillet_sugar/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed pentagon_fillet_sugar.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 152, + 156, + 0 + ] + } + ] + }, "sourceRange": [ 152, 156, @@ -26,6 +38,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 200.0, + "__meta": [ + { + "sourceRange": [ + 17, + 20, + 0 + ] + } + ] + }, "sourceRange": [ 396, 410, @@ -61,6 +86,401 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 194, + 249, + 0 + ], + "tag": { + "end": 248, + "start": 246, + "type": "TagDeclarator", + "value": "a" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 255, + 311, + 0 + ], + "tag": { + "end": 310, + "start": 308, + "type": "TagDeclarator", + "value": "b" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 317, + 373, + 0 + ], + "tag": { + "end": 372, + "start": 370, + "type": "TagDeclarator", + "value": "c" + }, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 194, + 249, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": { + "end": 248, + "start": 246, + "type": "TagDeclarator", + "value": "a" + }, + "to": [ + 250.0, + 433.0127 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 255, + 311, + 0 + ] + }, + "from": [ + 250.0, + 433.0127 + ], + "tag": { + "end": 310, + "start": 308, + "type": "TagDeclarator", + "value": "b" + }, + "to": [ + -250.0, + 433.0127 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 317, + 373, + 0 + ] + }, + "from": [ + -250.0, + 433.0127 + ], + "tag": { + "end": 372, + "start": 370, + "type": "TagDeclarator", + "value": "c" + }, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 163, + 188, + 0 + ] + } + }, + "tags": { + "a": { + "type": "TagIdentifier", + "value": "a", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 194, + 249, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": { + "end": 248, + "start": 246, + "type": "TagDeclarator", + "value": "a" + }, + "to": [ + 250.00000000000006, + 433.0127018922193 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 194, + 249, + 0 + ], + "tag": { + "end": 248, + "start": 246, + "type": "TagDeclarator", + "value": "a" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 246, + 248, + 0 + ] + } + ] + }, + "b": { + "type": "TagIdentifier", + "value": "b", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 255, + 311, + 0 + ] + }, + "from": [ + 250.00000000000006, + 433.0127018922193 + ], + "tag": { + "end": 310, + "start": 308, + "type": "TagDeclarator", + "value": "b" + }, + "to": [ + -249.99999999999994, + 433.01270189221935 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 255, + 311, + 0 + ], + "tag": { + "end": 310, + "start": 308, + "type": "TagDeclarator", + "value": "b" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 308, + 310, + 0 + ] + } + ] + }, + "c": { + "type": "TagIdentifier", + "value": "c", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 317, + 373, + 0 + ] + }, + "from": [ + -249.99999999999994, + 433.01270189221935 + ], + "tag": { + "end": 372, + "start": 370, + "type": "TagDeclarator", + "value": "c" + }, + "to": [ + 0.00000000000011368683772161603, + 0.00000000000005684341886080802 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 317, + 373, + 0 + ], + "tag": { + "end": 372, + "start": 370, + "type": "TagDeclarator", + "value": "c" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 370, + 372, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 163, + 188, + 0 + ] + } + ] + }, + "height": 200.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 163, + 188, + 0 + ] + } + ] + } + }, "sourceRange": [ 456, 457, @@ -68,6 +488,66 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "TagIdentifier", + "type": "TagIdentifier", + "value": "c", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 317, + 373, + 0 + ] + }, + "from": [ + -249.99999999999994, + 433.01270189221935 + ], + "tag": { + "end": 372, + "start": 370, + "type": "TagDeclarator", + "value": "c" + }, + "to": [ + 0.00000000000011368683772161603, + 0.00000000000005684341886080802 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 317, + 373, + 0 + ], + "tag": { + "end": 372, + "start": 370, + "type": "TagDeclarator", + "value": "c" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 370, + 372, + 0 + ] + } + ] + }, "sourceRange": [ 459, 463, @@ -90,6 +570,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 100.0, + "__meta": [ + { + "sourceRange": [ + 34, + 37, + 0 + ] + } + ] + }, "sourceRange": [ 629, 639, @@ -109,6 +602,126 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 5.0, + "__meta": [ + { + "sourceRange": [ + 671, + 672, + 0 + ] + } + ] + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "type": "TagIdentifier", + "value": "arc_tag", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 531, + 553, + 0 + ] + }, + "ccw": true, + "center": [ + -200.0, + 100.0 + ], + "from": [ + -120.0, + 100.0 + ], + "radius": 80.0, + "tag": { + "end": 552, + "start": 544, + "type": "TagDeclarator", + "value": "arc_tag" + }, + "to": [ + -120.0, + 99.99999999999999 + ], + "type": "Arc" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 531, + 553, + 0 + ], + "tag": { + "end": 552, + "start": 544, + "type": "TagDeclarator", + "value": "arc_tag" + }, + "type": "extrudeArc" + } + }, + "__meta": [ + { + "sourceRange": [ + 544, + 552, + 0 + ] + } + ] + }, + { + "type": "Uuid", + "value": "[uuid]", + "__meta": [ + { + "sourceRange": [ + 725, + 757, + 0 + ] + } + ] + } + ], + "__meta": [ + { + "sourceRange": [ + 688, + 766, + 0 + ] + } + ] + } + }, + "__meta": [ + { + "sourceRange": [ + 653, + 773, + 0 + ] + } + ] + }, "sourceRange": [ 653, 773, @@ -116,6 +729,628 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 531, + 553, + 0 + ], + "tag": { + "end": 552, + "start": 544, + "type": "TagDeclarator", + "value": "arc_tag" + }, + "type": "extrudeArc" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 531, + 553, + 0 + ] + }, + "ccw": true, + "center": [ + -200.0, + 100.0 + ], + "from": [ + -120.0, + 100.0 + ], + "radius": 80.0, + "tag": { + "end": 552, + "start": 544, + "type": "TagDeclarator", + "value": "arc_tag" + }, + "to": [ + -120.0, + 100.0 + ], + "type": "Arc" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 561, + 569, + 0 + ] + }, + "from": [ + -120.0, + 100.0 + ], + "tag": null, + "to": [ + -120.0, + 100.0 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "face", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "c", + "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 + }, + "solid": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 194, + 249, + 0 + ], + "tag": { + "end": 248, + "start": 246, + "type": "TagDeclarator", + "value": "a" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 255, + 311, + 0 + ], + "tag": { + "end": 310, + "start": 308, + "type": "TagDeclarator", + "value": "b" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 317, + 373, + 0 + ], + "tag": { + "end": 372, + "start": 370, + "type": "TagDeclarator", + "value": "c" + }, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 194, + 249, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": { + "end": 248, + "start": 246, + "type": "TagDeclarator", + "value": "a" + }, + "to": [ + 250.0, + 433.0127 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 255, + 311, + 0 + ] + }, + "from": [ + 250.0, + 433.0127 + ], + "tag": { + "end": 310, + "start": 308, + "type": "TagDeclarator", + "value": "b" + }, + "to": [ + -250.0, + 433.0127 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 317, + 373, + 0 + ] + }, + "from": [ + -250.0, + 433.0127 + ], + "tag": { + "end": 372, + "start": 370, + "type": "TagDeclarator", + "value": "c" + }, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 163, + 188, + 0 + ] + } + }, + "tags": { + "a": { + "type": "TagIdentifier", + "value": "a", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 194, + 249, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": { + "end": 248, + "start": 246, + "type": "TagDeclarator", + "value": "a" + }, + "to": [ + 250.00000000000006, + 433.0127018922193 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 194, + 249, + 0 + ], + "tag": { + "end": 248, + "start": 246, + "type": "TagDeclarator", + "value": "a" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 246, + 248, + 0 + ] + } + ] + }, + "b": { + "type": "TagIdentifier", + "value": "b", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 255, + 311, + 0 + ] + }, + "from": [ + 250.00000000000006, + 433.0127018922193 + ], + "tag": { + "end": 310, + "start": 308, + "type": "TagDeclarator", + "value": "b" + }, + "to": [ + -249.99999999999994, + 433.01270189221935 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 255, + 311, + 0 + ], + "tag": { + "end": 310, + "start": 308, + "type": "TagDeclarator", + "value": "b" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 308, + 310, + 0 + ] + } + ] + }, + "c": { + "type": "TagIdentifier", + "value": "c", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 317, + 373, + 0 + ] + }, + "from": [ + -249.99999999999994, + 433.01270189221935 + ], + "tag": { + "end": 372, + "start": 370, + "type": "TagDeclarator", + "value": "c" + }, + "to": [ + 0.00000000000011368683772161603, + 0.00000000000005684341886080802 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 317, + 373, + 0 + ], + "tag": { + "end": 372, + "start": 370, + "type": "TagDeclarator", + "value": "c" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 370, + 372, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 163, + 188, + 0 + ] + } + ] + }, + "height": 200.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 163, + 188, + 0 + ] + } + ] + }, + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 442, + 464, + 0 + ] + } + ] + }, + "start": { + "from": [ + -120.0, + 100.0 + ], + "to": [ + -120.0, + 100.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 472, + 523, + 0 + ] + } + }, + "tags": { + "arc_tag": { + "type": "TagIdentifier", + "value": "arc_tag", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 531, + 553, + 0 + ] + }, + "ccw": true, + "center": [ + -200.0, + 100.0 + ], + "from": [ + -120.0, + 100.0 + ], + "radius": 80.0, + "tag": { + "end": 552, + "start": 544, + "type": "TagDeclarator", + "value": "arc_tag" + }, + "to": [ + -120.0, + 99.99999999999999 + ], + "type": "Arc" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 531, + 553, + 0 + ], + "tag": { + "end": 552, + "start": 544, + "type": "TagDeclarator", + "value": "arc_tag" + }, + "type": "extrudeArc" + } + }, + "__meta": [ + { + "sourceRange": [ + 544, + 552, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 472, + 523, + 0 + ] + } + ] + }, + "height": 100.0, + "startCapId": null, + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 472, + 523, + 0 + ] + } + ] + } + }, "sourceRange": [ 775, 776, @@ -151,6 +1386,401 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 194, + 249, + 0 + ], + "tag": { + "end": 248, + "start": 246, + "type": "TagDeclarator", + "value": "a" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 255, + 311, + 0 + ], + "tag": { + "end": 310, + "start": 308, + "type": "TagDeclarator", + "value": "b" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 317, + 373, + 0 + ], + "tag": { + "end": 372, + "start": 370, + "type": "TagDeclarator", + "value": "c" + }, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 194, + 249, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": { + "end": 248, + "start": 246, + "type": "TagDeclarator", + "value": "a" + }, + "to": [ + 250.0, + 433.0127 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 255, + 311, + 0 + ] + }, + "from": [ + 250.0, + 433.0127 + ], + "tag": { + "end": 310, + "start": 308, + "type": "TagDeclarator", + "value": "b" + }, + "to": [ + -250.0, + 433.0127 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 317, + 373, + 0 + ] + }, + "from": [ + -250.0, + 433.0127 + ], + "tag": { + "end": 372, + "start": 370, + "type": "TagDeclarator", + "value": "c" + }, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 163, + 188, + 0 + ] + } + }, + "tags": { + "a": { + "type": "TagIdentifier", + "value": "a", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 194, + 249, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": { + "end": 248, + "start": 246, + "type": "TagDeclarator", + "value": "a" + }, + "to": [ + 250.00000000000006, + 433.0127018922193 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 194, + 249, + 0 + ], + "tag": { + "end": 248, + "start": 246, + "type": "TagDeclarator", + "value": "a" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 246, + 248, + 0 + ] + } + ] + }, + "b": { + "type": "TagIdentifier", + "value": "b", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 255, + 311, + 0 + ] + }, + "from": [ + 250.00000000000006, + 433.0127018922193 + ], + "tag": { + "end": 310, + "start": 308, + "type": "TagDeclarator", + "value": "b" + }, + "to": [ + -249.99999999999994, + 433.01270189221935 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 255, + 311, + 0 + ], + "tag": { + "end": 310, + "start": 308, + "type": "TagDeclarator", + "value": "b" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 308, + 310, + 0 + ] + } + ] + }, + "c": { + "type": "TagIdentifier", + "value": "c", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 317, + 373, + 0 + ] + }, + "from": [ + -249.99999999999994, + 433.01270189221935 + ], + "tag": { + "end": 372, + "start": 370, + "type": "TagDeclarator", + "value": "c" + }, + "to": [ + 0.00000000000011368683772161603, + 0.00000000000005684341886080802 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 317, + 373, + 0 + ], + "tag": { + "end": 372, + "start": 370, + "type": "TagDeclarator", + "value": "c" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 370, + 372, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 163, + 188, + 0 + ] + } + ] + }, + "height": 200.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 163, + 188, + 0 + ] + } + ] + } + }, "sourceRange": [ 456, 457, @@ -158,6 +1788,66 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "TagIdentifier", + "type": "TagIdentifier", + "value": "a", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 194, + 249, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": { + "end": 248, + "start": 246, + "type": "TagDeclarator", + "value": "a" + }, + "to": [ + 250.00000000000006, + 433.0127018922193 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 194, + 249, + 0 + ], + "tag": { + "end": 248, + "start": 246, + "type": "TagDeclarator", + "value": "a" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 246, + 248, + 0 + ] + } + ] + }, "sourceRange": [ 459, 463, @@ -180,6 +1870,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 100.0, + "__meta": [ + { + "sourceRange": [ + 34, + 37, + 0 + ] + } + ] + }, "sourceRange": [ 833, 843, @@ -199,6 +1902,126 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 5.0, + "__meta": [ + { + "sourceRange": [ + 875, + 876, + 0 + ] + } + ] + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "type": "TagIdentifier", + "value": "arc_tag", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 531, + 553, + 0 + ] + }, + "ccw": true, + "center": [ + 200.0, + 100.0 + ], + "from": [ + 280.0, + 100.0 + ], + "radius": 80.0, + "tag": { + "end": 552, + "start": 544, + "type": "TagDeclarator", + "value": "arc_tag" + }, + "to": [ + 280.0, + 99.99999999999999 + ], + "type": "Arc" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 531, + 553, + 0 + ], + "tag": { + "end": 552, + "start": 544, + "type": "TagDeclarator", + "value": "arc_tag" + }, + "type": "extrudeArc" + } + }, + "__meta": [ + { + "sourceRange": [ + 544, + 552, + 0 + ] + } + ] + }, + { + "type": "Uuid", + "value": "[uuid]", + "__meta": [ + { + "sourceRange": [ + 929, + 961, + 0 + ] + } + ] + } + ], + "__meta": [ + { + "sourceRange": [ + 892, + 970, + 0 + ] + } + ] + } + }, + "__meta": [ + { + "sourceRange": [ + 857, + 977, + 0 + ] + } + ] + }, "sourceRange": [ 857, 977, @@ -206,6 +2029,628 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 531, + 553, + 0 + ], + "tag": { + "end": 552, + "start": 544, + "type": "TagDeclarator", + "value": "arc_tag" + }, + "type": "extrudeArc" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 531, + 553, + 0 + ] + }, + "ccw": true, + "center": [ + 200.0, + 100.0 + ], + "from": [ + 280.0, + 100.0 + ], + "radius": 80.0, + "tag": { + "end": 552, + "start": 544, + "type": "TagDeclarator", + "value": "arc_tag" + }, + "to": [ + 280.0, + 100.0 + ], + "type": "Arc" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 561, + 569, + 0 + ] + }, + "from": [ + 280.0, + 100.0 + ], + "tag": null, + "to": [ + 280.0, + 100.0 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "face", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "a", + "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 + }, + "solid": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 194, + 249, + 0 + ], + "tag": { + "end": 248, + "start": 246, + "type": "TagDeclarator", + "value": "a" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 255, + 311, + 0 + ], + "tag": { + "end": 310, + "start": 308, + "type": "TagDeclarator", + "value": "b" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 317, + 373, + 0 + ], + "tag": { + "end": 372, + "start": 370, + "type": "TagDeclarator", + "value": "c" + }, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 194, + 249, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": { + "end": 248, + "start": 246, + "type": "TagDeclarator", + "value": "a" + }, + "to": [ + 250.0, + 433.0127 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 255, + 311, + 0 + ] + }, + "from": [ + 250.0, + 433.0127 + ], + "tag": { + "end": 310, + "start": 308, + "type": "TagDeclarator", + "value": "b" + }, + "to": [ + -250.0, + 433.0127 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 317, + 373, + 0 + ] + }, + "from": [ + -250.0, + 433.0127 + ], + "tag": { + "end": 372, + "start": 370, + "type": "TagDeclarator", + "value": "c" + }, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 163, + 188, + 0 + ] + } + }, + "tags": { + "a": { + "type": "TagIdentifier", + "value": "a", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 194, + 249, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": { + "end": 248, + "start": 246, + "type": "TagDeclarator", + "value": "a" + }, + "to": [ + 250.00000000000006, + 433.0127018922193 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 194, + 249, + 0 + ], + "tag": { + "end": 248, + "start": 246, + "type": "TagDeclarator", + "value": "a" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 246, + 248, + 0 + ] + } + ] + }, + "b": { + "type": "TagIdentifier", + "value": "b", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 255, + 311, + 0 + ] + }, + "from": [ + 250.00000000000006, + 433.0127018922193 + ], + "tag": { + "end": 310, + "start": 308, + "type": "TagDeclarator", + "value": "b" + }, + "to": [ + -249.99999999999994, + 433.01270189221935 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 255, + 311, + 0 + ], + "tag": { + "end": 310, + "start": 308, + "type": "TagDeclarator", + "value": "b" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 308, + 310, + 0 + ] + } + ] + }, + "c": { + "type": "TagIdentifier", + "value": "c", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 317, + 373, + 0 + ] + }, + "from": [ + -249.99999999999994, + 433.01270189221935 + ], + "tag": { + "end": 372, + "start": 370, + "type": "TagDeclarator", + "value": "c" + }, + "to": [ + 0.00000000000011368683772161603, + 0.00000000000005684341886080802 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 317, + 373, + 0 + ], + "tag": { + "end": 372, + "start": 370, + "type": "TagDeclarator", + "value": "c" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 370, + 372, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 163, + 188, + 0 + ] + } + ] + }, + "height": 200.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 163, + 188, + 0 + ] + } + ] + }, + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 442, + 464, + 0 + ] + } + ] + }, + "start": { + "from": [ + 280.0, + 100.0 + ], + "to": [ + 280.0, + 100.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 472, + 523, + 0 + ] + } + }, + "tags": { + "arc_tag": { + "type": "TagIdentifier", + "value": "arc_tag", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 531, + 553, + 0 + ] + }, + "ccw": true, + "center": [ + 200.0, + 100.0 + ], + "from": [ + 280.0, + 100.0 + ], + "radius": 80.0, + "tag": { + "end": 552, + "start": 544, + "type": "TagDeclarator", + "value": "arc_tag" + }, + "to": [ + 280.0, + 99.99999999999999 + ], + "type": "Arc" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 531, + 553, + 0 + ], + "tag": { + "end": 552, + "start": 544, + "type": "TagDeclarator", + "value": "arc_tag" + }, + "type": "extrudeArc" + } + }, + "__meta": [ + { + "sourceRange": [ + 544, + 552, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 472, + 523, + 0 + ] + } + ] + }, + "height": 100.0, + "startCapId": null, + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 472, + 523, + 0 + ] + } + ] + } + }, "sourceRange": [ 979, 980, diff --git a/src/wasm-lib/kcl/tests/pipe_as_arg/ops.snap b/src/wasm-lib/kcl/tests/pipe_as_arg/ops.snap index 0d0accc15a..063122f2db 100644 --- a/src/wasm-lib/kcl/tests/pipe_as_arg/ops.snap +++ b/src/wasm-lib/kcl/tests/pipe_as_arg/ops.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed pipe_as_arg.kcl -snapshot_kind: text --- [ { @@ -42,6 +41,26 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 400.0, + "__meta": [ + { + "sourceRange": [ + 441, + 444, + 0 + ] + }, + { + "sourceRange": [ + 394, + 395, + 0 + ] + } + ] + }, "sourceRange": [ 355, 361, diff --git a/src/wasm-lib/kcl/tests/poop_chute/ops.snap b/src/wasm-lib/kcl/tests/poop_chute/ops.snap index 339d6f9960..558df6d26b 100644 --- a/src/wasm-lib/kcl/tests/poop_chute/ops.snap +++ b/src/wasm-lib/kcl/tests/poop_chute/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed poop_chute.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "-YZ", + "__meta": [ + { + "sourceRange": [ + 196, + 201, + 0 + ] + } + ] + }, "sourceRange": [ 196, 201, @@ -26,6 +38,148 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "angle": { + "type": "Number", + "value": 90.0, + "__meta": [ + { + "sourceRange": [ + 834, + 836, + 0 + ] + } + ] + }, + "axis": { + "type": "Object", + "value": { + "custom": { + "type": "Object", + "value": { + "axis": { + "type": "Array", + "value": [ + { + "type": "Number", + "value": 1.0, + "__meta": [ + { + "sourceRange": [ + 878, + 881, + 0 + ] + } + ] + }, + { + "type": "Number", + "value": 0.0, + "__meta": [ + { + "sourceRange": [ + 883, + 886, + 0 + ] + } + ] + } + ], + "__meta": [ + { + "sourceRange": [ + 877, + 887, + 0 + ] + } + ] + }, + "origin": { + "type": "Array", + "value": [ + { + "type": "Number", + "value": 0.0, + "__meta": [ + { + "sourceRange": [ + 905, + 908, + 0 + ] + } + ] + }, + { + "type": "Number", + "value": 5.5000001, + "__meta": [ + { + "sourceRange": [ + 77, + 80, + 0 + ] + }, + { + "sourceRange": [ + 919, + 927, + 0 + ] + } + ] + } + ], + "__meta": [ + { + "sourceRange": [ + 904, + 928, + 0 + ] + } + ] + } + }, + "__meta": [ + { + "sourceRange": [ + 862, + 934, + 0 + ] + } + ] + } + }, + "__meta": [ + { + "sourceRange": [ + 847, + 938, + 0 + ] + } + ] + } + }, + "__meta": [ + { + "sourceRange": [ + 822, + 940, + 0 + ] + } + ] + }, "sourceRange": [ 822, 940, @@ -33,6 +187,388 @@ snapshot_kind: text ] }, "sketch": { + "value": { + "type": "Sketch", + "value": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 258, + 286, + 0 + ] + }, + "from": [ + 1.0, + 0.0 + ], + "tag": null, + "to": [ + 1.0625, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 292, + 355, + 0 + ] + }, + "from": [ + 1.0625, + 0.0 + ], + "tag": { + "end": 354, + "start": 348, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 2.0, + 0.9375 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 361, + 379, + 0 + ] + }, + "from": [ + 2.0, + 0.9375 + ], + "tag": null, + "to": [ + 2.0, + 5.5 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 385, + 410, + 0 + ] + }, + "from": [ + 2.0, + 5.5 + ], + "tag": null, + "to": [ + 1.875, + 5.5 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 416, + 442, + 0 + ] + }, + "from": [ + 1.875, + 5.5 + ], + "tag": null, + "to": [ + 1.875, + 0.9375 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 448, + 547, + 0 + ] + }, + "from": [ + 1.875, + 0.9375 + ], + "tag": null, + "to": [ + 1.0625, + 0.125 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 553, + 578, + 0 + ] + }, + "from": [ + 1.0625, + 0.125 + ], + "tag": null, + "to": [ + 0.9375, + 0.125 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 584, + 662, + 0 + ] + }, + "from": [ + 0.9375, + 0.125 + ], + "tag": null, + "to": [ + 0.125, + 0.9375 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 668, + 686, + 0 + ] + }, + "from": [ + 0.125, + 0.9375 + ], + "tag": null, + "to": [ + 0.125, + 5.5 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 692, + 705, + 0 + ] + }, + "from": [ + 0.125, + 5.5 + ], + "tag": null, + "to": [ + 0.0, + 5.5 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 711, + 737, + 0 + ] + }, + "from": [ + 0.0, + 5.5 + ], + "tag": null, + "to": [ + 0.0, + 0.9375 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 743, + 789, + 0 + ] + }, + "from": [ + 0.0, + 0.9375 + ], + "tag": null, + "to": [ + 0.9375, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 795, + 803, + 0 + ] + }, + "from": [ + 0.9375, + 0.0 + ], + "tag": null, + "to": [ + 1.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "YZ", + "origin": { + "x": 0.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": [] + }, + "start": { + "from": [ + 1.0, + 0.0 + ], + "to": [ + 1.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 208, + 252, + 0 + ] + } + }, + "tags": { + "seg01": { + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 292, + 355, + 0 + ] + }, + "from": [ + 1.0625, + 0.0 + ], + "tag": { + "end": 354, + "start": 348, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 2.0, + 0.9374999999999999 + ], + "type": "ToPoint" + }, + "surface": null + }, + "__meta": [ + { + "sourceRange": [ + 348, + 354, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 208, + 252, + 0 + ] + } + ] + } + }, "sourceRange": [ 942, 951, @@ -52,6 +588,19 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "-YZ", + "__meta": [ + { + "sourceRange": [ + 980, + 985, + 0 + ] + } + ] + }, "sourceRange": [ 980, 985, @@ -71,6 +620,26 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 1.5, + "__meta": [ + { + "sourceRange": [ + 116, + 117, + 0 + ] + }, + { + "sourceRange": [ + 77, + 80, + 0 + ] + } + ] + }, "sourceRange": [ 1610, 1630, diff --git a/src/wasm-lib/kcl/tests/riddle_small/ops.snap b/src/wasm-lib/kcl/tests/riddle_small/ops.snap index 0fb7127c08..80589eb8a0 100644 --- a/src/wasm-lib/kcl/tests/riddle_small/ops.snap +++ b/src/wasm-lib/kcl/tests/riddle_small/ops.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed riddle_small.kcl -snapshot_kind: text --- [ { @@ -45,6 +44,19 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XZ", + "__meta": [ + { + "sourceRange": [ + 155, + 159, + 0 + ] + } + ] + }, "sourceRange": [ 155, 159, @@ -64,6 +76,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 1.0, + "__meta": [ + { + "sourceRange": [ + 304, + 305, + 0 + ] + } + ] + }, "sourceRange": [ 304, 305, diff --git a/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times-different-order/ops.snap b/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times-different-order/ops.snap index 522e7676df..5ec933d43d 100644 --- a/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times-different-order/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times-different-order/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed sketch-on-chamfer-two-times-different-order.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XZ", + "__meta": [ + { + "sourceRange": [ + 26, + 30, + 0 + ] + } + ] + }, "sourceRange": [ 26, 30, @@ -26,6 +38,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 100.0, + "__meta": [ + { + "sourceRange": [ + 482, + 485, + 0 + ] + } + ] + }, "sourceRange": [ 482, 485, @@ -41,6 +66,326 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "to": [ + 344.23, + 317.2 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ] + }, + "from": [ + 344.23, + 317.2 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 344.23, + 99.94 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 253, + 350, + 0 + ] + }, + "from": [ + 344.23, + 99.94 + ], + "tag": null, + "to": [ + 75.8, + 99.94 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ] + }, + "from": [ + 75.8, + 99.94 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 432, + 440, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": null, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 75.8, + 317.2 + ], + "to": [ + 75.8, + 317.2 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 37, + 69, + 0 + ] + } + }, + "tags": { + "rectangleSegmentA001": { + "type": "TagIdentifier", + "value": "rectangleSegmentA001", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "to": [ + 344.23, + 317.2 + ], + "type": "ToPoint" + }, + "surface": null + }, + "__meta": [ + { + "sourceRange": [ + 132, + 153, + 0 + ] + } + ] + }, + "seg01": { + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ] + }, + "from": [ + 344.23, + 317.2 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 344.23, + 99.94 + ], + "type": "ToPoint" + }, + "surface": null + }, + "__meta": [ + { + "sourceRange": [ + 240, + 246, + 0 + ] + } + ] + }, + "seg02": { + "type": "TagIdentifier", + "value": "seg02", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ] + }, + "from": [ + 75.80000000000001, + 99.94 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + }, + "surface": null + }, + "__meta": [ + { + "sourceRange": [ + 419, + 425, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 69, + 0 + ] + } + ] + } + }, "sourceRange": [ 462, 471, @@ -51,6 +396,107 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 20.0, + "__meta": [ + { + "sourceRange": [ + 510, + 512, + 0 + ] + } + ] + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ] + }, + "from": [ + 344.23, + 317.2 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 344.23, + 99.94 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 240, + 246, + 0 + ] + } + ] + } + ], + "__meta": [ + { + "sourceRange": [ + 521, + 528, + 0 + ] + } + ] + } + }, + "__meta": [ + { + "sourceRange": [ + 499, + 530, + 0 + ] + } + ] + }, "sourceRange": [ 499, 530, @@ -58,6 +504,452 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 253, + 350, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "to": [ + 344.23, + 317.2 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ] + }, + "from": [ + 344.23, + 317.2 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 344.23, + 99.94 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 253, + 350, + 0 + ] + }, + "from": [ + 344.23, + 99.94 + ], + "tag": null, + "to": [ + 75.8, + 99.94 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ] + }, + "from": [ + 75.8, + 99.94 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 432, + 440, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": null, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 75.8, + 317.2 + ], + "to": [ + 75.8, + 317.2 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 37, + 69, + 0 + ] + } + }, + "tags": { + "rectangleSegmentA001": { + "type": "TagIdentifier", + "value": "rectangleSegmentA001", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "to": [ + 344.23, + 317.2 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 132, + 153, + 0 + ] + } + ] + }, + "seg01": { + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ] + }, + "from": [ + 344.23, + 317.2 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 344.23, + 99.94 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 240, + 246, + 0 + ] + } + ] + }, + "seg02": { + "type": "TagIdentifier", + "value": "seg02", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ] + }, + "from": [ + 75.80000000000001, + 99.94 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 419, + 425, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 69, + 0 + ] + } + ] + }, + "height": 100.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 69, + 0 + ] + } + ] + } + }, "sourceRange": [ 532, 533, @@ -77,6 +969,60 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "length": { + "type": "Number", + "value": 50.0, + "__meta": [ + { + "sourceRange": [ + 566, + 568, + 0 + ] + } + ] + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "Uuid", + "value": "[uuid]", + "__meta": [ + { + "sourceRange": [ + 585, + 607, + 0 + ] + } + ] + } + ], + "__meta": [ + { + "sourceRange": [ + 584, + 608, + 0 + ] + } + ] + } + }, + "__meta": [ + { + "sourceRange": [ + 548, + 615, + 0 + ] + } + ] + }, "sourceRange": [ 548, 615, @@ -84,6 +1030,461 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 253, + 350, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "to": [ + 344.23, + 317.2 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ] + }, + "from": [ + 344.23, + 317.2 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 344.23, + 99.94 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 253, + 350, + 0 + ] + }, + "from": [ + 344.23, + 99.94 + ], + "tag": null, + "to": [ + 75.8, + 99.94 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ] + }, + "from": [ + 75.8, + 99.94 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 432, + 440, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": null, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 75.8, + 317.2 + ], + "to": [ + 75.8, + 317.2 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 37, + 69, + 0 + ] + } + }, + "tags": { + "rectangleSegmentA001": { + "type": "TagIdentifier", + "value": "rectangleSegmentA001", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "to": [ + 344.23, + 317.2 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 132, + 153, + 0 + ] + } + ] + }, + "seg01": { + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ] + }, + "from": [ + 344.23, + 317.2 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 344.23, + 99.94 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 240, + 246, + 0 + ] + } + ] + }, + "seg02": { + "type": "TagIdentifier", + "value": "seg02", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ] + }, + "from": [ + 75.80000000000001, + 99.94 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 419, + 425, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 69, + 0 + ] + } + ] + }, + "height": 100.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "edgeCuts": [ + { + "type": "fillet", + "id": "[uuid]", + "radius": 20.0, + "edgeId": "[uuid]", + "tag": null + } + ], + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 69, + 0 + ] + } + ] + } + }, "sourceRange": [ 617, 618, @@ -91,6 +1492,13 @@ snapshot_kind: text ] }, "tag": { + "value": { + "end": 626, + "start": 620, + "type": "TagDeclarator", + "type": "TagDeclarator", + "value": "seg03" + }, "sourceRange": [ 620, 626, @@ -110,6 +1518,107 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "length": { + "type": "Number", + "value": 50.0, + "__meta": [ + { + "sourceRange": [ + 652, + 654, + 0 + ] + } + ] + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "type": "TagIdentifier", + "value": "seg02", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ] + }, + "from": [ + 75.80000000000001, + 99.94 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 419, + 425, + 0 + ] + } + ] + } + ], + "__meta": [ + { + "sourceRange": [ + 663, + 670, + 0 + ] + } + ] + } + }, + "__meta": [ + { + "sourceRange": [ + 641, + 672, + 0 + ] + } + ] + }, "sourceRange": [ 641, 672, @@ -117,6 +1626,524 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 253, + 350, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 540, + 627, + 0 + ], + "tag": { + "end": 626, + "start": 620, + "type": "TagDeclarator", + "value": "seg03" + }, + "type": "chamfer" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "to": [ + 344.23, + 317.2 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ] + }, + "from": [ + 344.23, + 317.2 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 344.23, + 99.94 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 253, + 350, + 0 + ] + }, + "from": [ + 344.23, + 99.94 + ], + "tag": null, + "to": [ + 75.8, + 99.94 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ] + }, + "from": [ + 75.8, + 99.94 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 432, + 440, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": null, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 75.8, + 317.2 + ], + "to": [ + 75.8, + 317.2 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 37, + 69, + 0 + ] + } + }, + "tags": { + "rectangleSegmentA001": { + "type": "TagIdentifier", + "value": "rectangleSegmentA001", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "to": [ + 344.23, + 317.2 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 132, + 153, + 0 + ] + } + ] + }, + "seg01": { + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ] + }, + "from": [ + 344.23, + 317.2 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 344.23, + 99.94 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 240, + 246, + 0 + ] + } + ] + }, + "seg02": { + "type": "TagIdentifier", + "value": "seg02", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ] + }, + "from": [ + 75.80000000000001, + 99.94 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 419, + 425, + 0 + ] + } + ] + }, + "seg03": { + "type": "TagIdentifier", + "value": "seg03", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": null, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 540, + 627, + 0 + ], + "tag": { + "end": 626, + "start": 620, + "type": "TagDeclarator", + "value": "seg03" + }, + "type": "chamfer" + } + }, + "__meta": [ + { + "sourceRange": [ + 620, + 626, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 69, + 0 + ] + } + ] + }, + "height": 100.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "edgeCuts": [ + { + "type": "fillet", + "id": "[uuid]", + "radius": 20.0, + "edgeId": "[uuid]", + "tag": null + }, + { + "type": "chamfer", + "id": "[uuid]", + "length": 50.0, + "edgeId": "[uuid]", + "tag": { + "end": 626, + "start": 620, + "type": "TagDeclarator", + "value": "seg03" + } + } + ], + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 69, + 0 + ] + } + ] + } + }, "sourceRange": [ 674, 675, @@ -124,6 +2151,13 @@ snapshot_kind: text ] }, "tag": { + "value": { + "end": 683, + "start": 677, + "type": "TagDeclarator", + "type": "TagDeclarator", + "value": "seg04" + }, "sourceRange": [ 677, 683, @@ -143,6 +2177,587 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 253, + 350, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 540, + 627, + 0 + ], + "tag": { + "end": 626, + "start": 620, + "type": "TagDeclarator", + "value": "seg03" + }, + "type": "chamfer" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 633, + 684, + 0 + ], + "tag": { + "end": 683, + "start": 677, + "type": "TagDeclarator", + "value": "seg04" + }, + "type": "chamfer" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "to": [ + 344.23, + 317.2 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ] + }, + "from": [ + 344.23, + 317.2 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 344.23, + 99.94 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 253, + 350, + 0 + ] + }, + "from": [ + 344.23, + 99.94 + ], + "tag": null, + "to": [ + 75.8, + 99.94 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ] + }, + "from": [ + 75.8, + 99.94 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 432, + 440, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": null, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 75.8, + 317.2 + ], + "to": [ + 75.8, + 317.2 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 37, + 69, + 0 + ] + } + }, + "tags": { + "rectangleSegmentA001": { + "type": "TagIdentifier", + "value": "rectangleSegmentA001", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "to": [ + 344.23, + 317.2 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 132, + 153, + 0 + ] + } + ] + }, + "seg01": { + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ] + }, + "from": [ + 344.23, + 317.2 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 344.23, + 99.94 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 240, + 246, + 0 + ] + } + ] + }, + "seg02": { + "type": "TagIdentifier", + "value": "seg02", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ] + }, + "from": [ + 75.80000000000001, + 99.94 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 419, + 425, + 0 + ] + } + ] + }, + "seg03": { + "type": "TagIdentifier", + "value": "seg03", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": null, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 540, + 627, + 0 + ], + "tag": { + "end": 626, + "start": 620, + "type": "TagDeclarator", + "value": "seg03" + }, + "type": "chamfer" + } + }, + "__meta": [ + { + "sourceRange": [ + 620, + 626, + 0 + ] + } + ] + }, + "seg04": { + "type": "TagIdentifier", + "value": "seg04", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": null, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 633, + 684, + 0 + ], + "tag": { + "end": 683, + "start": 677, + "type": "TagDeclarator", + "value": "seg04" + }, + "type": "chamfer" + } + }, + "__meta": [ + { + "sourceRange": [ + 677, + 683, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 69, + 0 + ] + } + ] + }, + "height": 100.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "edgeCuts": [ + { + "type": "fillet", + "id": "[uuid]", + "radius": 20.0, + "edgeId": "[uuid]", + "tag": null + }, + { + "type": "chamfer", + "id": "[uuid]", + "length": 50.0, + "edgeId": "[uuid]", + "tag": { + "end": 626, + "start": 620, + "type": "TagDeclarator", + "value": "seg03" + } + }, + { + "type": "chamfer", + "id": "[uuid]", + "length": 50.0, + "edgeId": "[uuid]", + "tag": { + "end": 683, + "start": 677, + "type": "TagDeclarator", + "value": "seg04" + } + } + ], + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 69, + 0 + ] + } + ] + } + }, "sourceRange": [ 712, 722, @@ -150,6 +2765,42 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "TagIdentifier", + "type": "TagIdentifier", + "value": "seg04", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": null, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 633, + 684, + 0 + ], + "tag": { + "end": 683, + "start": 677, + "type": "TagDeclarator", + "value": "seg04" + }, + "type": "chamfer" + } + }, + "__meta": [ + { + "sourceRange": [ + 677, + 683, + 0 + ] + } + ] + }, "sourceRange": [ 724, 729, @@ -169,6 +2820,587 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 253, + 350, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 540, + 627, + 0 + ], + "tag": { + "end": 626, + "start": 620, + "type": "TagDeclarator", + "value": "seg03" + }, + "type": "chamfer" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 633, + 684, + 0 + ], + "tag": { + "end": 683, + "start": 677, + "type": "TagDeclarator", + "value": "seg04" + }, + "type": "chamfer" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "to": [ + 344.23, + 317.2 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ] + }, + "from": [ + 344.23, + 317.2 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 344.23, + 99.94 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 253, + 350, + 0 + ] + }, + "from": [ + 344.23, + 99.94 + ], + "tag": null, + "to": [ + 75.8, + 99.94 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ] + }, + "from": [ + 75.8, + 99.94 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 432, + 440, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": null, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 75.8, + 317.2 + ], + "to": [ + 75.8, + 317.2 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 37, + 69, + 0 + ] + } + }, + "tags": { + "rectangleSegmentA001": { + "type": "TagIdentifier", + "value": "rectangleSegmentA001", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "to": [ + 344.23, + 317.2 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 132, + 153, + 0 + ] + } + ] + }, + "seg01": { + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ] + }, + "from": [ + 344.23, + 317.2 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 344.23, + 99.94 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 240, + 246, + 0 + ] + } + ] + }, + "seg02": { + "type": "TagIdentifier", + "value": "seg02", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ] + }, + "from": [ + 75.80000000000001, + 99.94 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 419, + 425, + 0 + ] + } + ] + }, + "seg03": { + "type": "TagIdentifier", + "value": "seg03", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": null, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 540, + 627, + 0 + ], + "tag": { + "end": 626, + "start": 620, + "type": "TagDeclarator", + "value": "seg03" + }, + "type": "chamfer" + } + }, + "__meta": [ + { + "sourceRange": [ + 620, + 626, + 0 + ] + } + ] + }, + "seg04": { + "type": "TagIdentifier", + "value": "seg04", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": null, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 633, + 684, + 0 + ], + "tag": { + "end": 683, + "start": 677, + "type": "TagDeclarator", + "value": "seg04" + }, + "type": "chamfer" + } + }, + "__meta": [ + { + "sourceRange": [ + 677, + 683, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 69, + 0 + ] + } + ] + }, + "height": 100.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "edgeCuts": [ + { + "type": "fillet", + "id": "[uuid]", + "radius": 20.0, + "edgeId": "[uuid]", + "tag": null + }, + { + "type": "chamfer", + "id": "[uuid]", + "length": 50.0, + "edgeId": "[uuid]", + "tag": { + "end": 626, + "start": 620, + "type": "TagDeclarator", + "value": "seg03" + } + }, + { + "type": "chamfer", + "id": "[uuid]", + "length": 50.0, + "edgeId": "[uuid]", + "tag": { + "end": 683, + "start": 677, + "type": "TagDeclarator", + "value": "seg04" + } + } + ], + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 69, + 0 + ] + } + ] + } + }, "sourceRange": [ 1160, 1170, @@ -176,6 +3408,42 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "TagIdentifier", + "type": "TagIdentifier", + "value": "seg03", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": null, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 540, + 627, + 0 + ], + "tag": { + "end": 626, + "start": 620, + "type": "TagDeclarator", + "value": "seg03" + }, + "type": "chamfer" + } + }, + "__meta": [ + { + "sourceRange": [ + 620, + 626, + 0 + ] + } + ] + }, "sourceRange": [ 1172, 1177, @@ -195,6 +3463,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 50.0, + "__meta": [ + { + "sourceRange": [ + 1625, + 1627, + 0 + ] + } + ] + }, "sourceRange": [ 1625, 1627, @@ -210,6 +3491,907 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1225, + 1273, + 0 + ] + }, + "from": [ + 159.25, + 278.35 + ], + "tag": { + "end": 1272, + "start": 1251, + "type": "TagDeclarator", + "value": "rectangleSegmentA002" + }, + "to": [ + 200.07, + 278.35 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1279, + 1381, + 0 + ] + }, + "from": [ + 200.07, + 278.35 + ], + "tag": { + "end": 1380, + "start": 1359, + "type": "TagDeclarator", + "value": "rectangleSegmentB001" + }, + "to": [ + 200.07, + 146.08 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1387, + 1507, + 0 + ] + }, + "from": [ + 200.07, + 146.08 + ], + "tag": { + "end": 1506, + "start": 1485, + "type": "TagDeclarator", + "value": "rectangleSegmentC001" + }, + "to": [ + 159.25, + 146.08 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1513, + 1569, + 0 + ] + }, + "from": [ + 159.25, + 146.08 + ], + "tag": null, + "to": [ + 159.25, + 278.35 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1575, + 1583, + 0 + ] + }, + "from": [ + 159.25, + 278.35 + ], + "tag": null, + "to": [ + 159.25, + 278.35 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "face", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "seg03", + "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 + }, + "solid": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 253, + 350, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 540, + 627, + 0 + ], + "tag": { + "end": 626, + "start": 620, + "type": "TagDeclarator", + "value": "seg03" + }, + "type": "chamfer" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 633, + 684, + 0 + ], + "tag": { + "end": 683, + "start": 677, + "type": "TagDeclarator", + "value": "seg04" + }, + "type": "chamfer" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "to": [ + 344.23, + 317.2 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ] + }, + "from": [ + 344.23, + 317.2 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 344.23, + 99.94 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 253, + 350, + 0 + ] + }, + "from": [ + 344.23, + 99.94 + ], + "tag": null, + "to": [ + 75.8, + 99.94 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ] + }, + "from": [ + 75.8, + 99.94 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 432, + 440, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": null, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 75.8, + 317.2 + ], + "to": [ + 75.8, + 317.2 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 37, + 69, + 0 + ] + } + }, + "tags": { + "rectangleSegmentA001": { + "type": "TagIdentifier", + "value": "rectangleSegmentA001", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "to": [ + 344.23, + 317.2 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 132, + 153, + 0 + ] + } + ] + }, + "seg01": { + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ] + }, + "from": [ + 344.23, + 317.2 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 344.23, + 99.94 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 240, + 246, + 0 + ] + } + ] + }, + "seg02": { + "type": "TagIdentifier", + "value": "seg02", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ] + }, + "from": [ + 75.80000000000001, + 99.94 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 419, + 425, + 0 + ] + } + ] + }, + "seg03": { + "type": "TagIdentifier", + "value": "seg03", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": null, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 540, + 627, + 0 + ], + "tag": { + "end": 626, + "start": 620, + "type": "TagDeclarator", + "value": "seg03" + }, + "type": "chamfer" + } + }, + "__meta": [ + { + "sourceRange": [ + 620, + 626, + 0 + ] + } + ] + }, + "seg04": { + "type": "TagIdentifier", + "value": "seg04", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": null, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 633, + 684, + 0 + ], + "tag": { + "end": 683, + "start": 677, + "type": "TagDeclarator", + "value": "seg04" + }, + "type": "chamfer" + } + }, + "__meta": [ + { + "sourceRange": [ + 677, + 683, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 69, + 0 + ] + } + ] + }, + "height": 100.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "edgeCuts": [ + { + "type": "fillet", + "id": "[uuid]", + "radius": 20.0, + "edgeId": "[uuid]", + "tag": null + }, + { + "type": "chamfer", + "id": "[uuid]", + "length": 50.0, + "edgeId": "[uuid]", + "tag": { + "end": 626, + "start": 620, + "type": "TagDeclarator", + "value": "seg03" + } + }, + { + "type": "chamfer", + "id": "[uuid]", + "length": 50.0, + "edgeId": "[uuid]", + "tag": { + "end": 683, + "start": 677, + "type": "TagDeclarator", + "value": "seg04" + } + } + ], + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 69, + 0 + ] + } + ] + }, + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 1146, + 1178, + 0 + ] + } + ] + }, + "start": { + "from": [ + 159.25, + 278.35 + ], + "to": [ + 159.25, + 278.35 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1184, + 1219, + 0 + ] + } + }, + "tags": { + "rectangleSegmentA002": { + "type": "TagIdentifier", + "value": "rectangleSegmentA002", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1225, + 1273, + 0 + ] + }, + "from": [ + 159.25, + 278.35 + ], + "tag": { + "end": 1272, + "start": 1251, + "type": "TagDeclarator", + "value": "rectangleSegmentA002" + }, + "to": [ + 200.07, + 278.35 + ], + "type": "ToPoint" + }, + "surface": null + }, + "__meta": [ + { + "sourceRange": [ + 1251, + 1272, + 0 + ] + } + ] + }, + "rectangleSegmentB001": { + "type": "TagIdentifier", + "value": "rectangleSegmentB001", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1279, + 1381, + 0 + ] + }, + "from": [ + 200.07, + 278.35 + ], + "tag": { + "end": 1380, + "start": 1359, + "type": "TagDeclarator", + "value": "rectangleSegmentB001" + }, + "to": [ + 200.07, + 146.08 + ], + "type": "ToPoint" + }, + "surface": null + }, + "__meta": [ + { + "sourceRange": [ + 1359, + 1380, + 0 + ] + } + ] + }, + "rectangleSegmentC001": { + "type": "TagIdentifier", + "value": "rectangleSegmentC001", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1387, + 1507, + 0 + ] + }, + "from": [ + 200.07, + 146.08 + ], + "tag": { + "end": 1506, + "start": 1485, + "type": "TagDeclarator", + "value": "rectangleSegmentC001" + }, + "to": [ + 159.25, + 146.08 + ], + "type": "ToPoint" + }, + "surface": null + }, + "__meta": [ + { + "sourceRange": [ + 1485, + 1506, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 1184, + 1219, + 0 + ] + } + ] + } + }, "sourceRange": [ 1605, 1614, diff --git a/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times/ops.snap b/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times/ops.snap index dcde7493bc..e7997584f2 100644 --- a/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed sketch-on-chamfer-two-times.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XZ", + "__meta": [ + { + "sourceRange": [ + 26, + 30, + 0 + ] + } + ] + }, "sourceRange": [ 26, 30, @@ -26,6 +38,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 100.0, + "__meta": [ + { + "sourceRange": [ + 482, + 485, + 0 + ] + } + ] + }, "sourceRange": [ 482, 485, @@ -41,6 +66,326 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "to": [ + 344.23, + 317.2 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ] + }, + "from": [ + 344.23, + 317.2 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 344.23, + 99.94 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 253, + 350, + 0 + ] + }, + "from": [ + 344.23, + 99.94 + ], + "tag": null, + "to": [ + 75.8, + 99.94 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ] + }, + "from": [ + 75.8, + 99.94 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 432, + 440, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": null, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 75.8, + 317.2 + ], + "to": [ + 75.8, + 317.2 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 37, + 69, + 0 + ] + } + }, + "tags": { + "rectangleSegmentA001": { + "type": "TagIdentifier", + "value": "rectangleSegmentA001", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "to": [ + 344.23, + 317.2 + ], + "type": "ToPoint" + }, + "surface": null + }, + "__meta": [ + { + "sourceRange": [ + 132, + 153, + 0 + ] + } + ] + }, + "seg01": { + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ] + }, + "from": [ + 344.23, + 317.2 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 344.23, + 99.94 + ], + "type": "ToPoint" + }, + "surface": null + }, + "__meta": [ + { + "sourceRange": [ + 240, + 246, + 0 + ] + } + ] + }, + "seg02": { + "type": "TagIdentifier", + "value": "seg02", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ] + }, + "from": [ + 75.80000000000001, + 99.94 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + }, + "surface": null + }, + "__meta": [ + { + "sourceRange": [ + 419, + 425, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 69, + 0 + ] + } + ] + } + }, "sourceRange": [ 462, 471, @@ -51,6 +396,107 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 20.0, + "__meta": [ + { + "sourceRange": [ + 510, + 512, + 0 + ] + } + ] + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ] + }, + "from": [ + 344.23, + 317.2 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 344.23, + 99.94 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 240, + 246, + 0 + ] + } + ] + } + ], + "__meta": [ + { + "sourceRange": [ + 521, + 528, + 0 + ] + } + ] + } + }, + "__meta": [ + { + "sourceRange": [ + 499, + 530, + 0 + ] + } + ] + }, "sourceRange": [ 499, 530, @@ -58,6 +504,452 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 253, + 350, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "to": [ + 344.23, + 317.2 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ] + }, + "from": [ + 344.23, + 317.2 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 344.23, + 99.94 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 253, + 350, + 0 + ] + }, + "from": [ + 344.23, + 99.94 + ], + "tag": null, + "to": [ + 75.8, + 99.94 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ] + }, + "from": [ + 75.8, + 99.94 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 432, + 440, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": null, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 75.8, + 317.2 + ], + "to": [ + 75.8, + 317.2 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 37, + 69, + 0 + ] + } + }, + "tags": { + "rectangleSegmentA001": { + "type": "TagIdentifier", + "value": "rectangleSegmentA001", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "to": [ + 344.23, + 317.2 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 132, + 153, + 0 + ] + } + ] + }, + "seg01": { + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ] + }, + "from": [ + 344.23, + 317.2 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 344.23, + 99.94 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 240, + 246, + 0 + ] + } + ] + }, + "seg02": { + "type": "TagIdentifier", + "value": "seg02", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ] + }, + "from": [ + 75.80000000000001, + 99.94 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 419, + 425, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 69, + 0 + ] + } + ] + }, + "height": 100.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 69, + 0 + ] + } + ] + } + }, "sourceRange": [ 532, 533, @@ -77,6 +969,107 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "length": { + "type": "Number", + "value": 50.0, + "__meta": [ + { + "sourceRange": [ + 559, + 561, + 0 + ] + } + ] + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "type": "TagIdentifier", + "value": "seg02", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ] + }, + "from": [ + 75.80000000000001, + 99.94 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 419, + 425, + 0 + ] + } + ] + } + ], + "__meta": [ + { + "sourceRange": [ + 570, + 577, + 0 + ] + } + ] + } + }, + "__meta": [ + { + "sourceRange": [ + 548, + 579, + 0 + ] + } + ] + }, "sourceRange": [ 548, 579, @@ -84,6 +1077,461 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 253, + 350, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "to": [ + 344.23, + 317.2 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ] + }, + "from": [ + 344.23, + 317.2 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 344.23, + 99.94 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 253, + 350, + 0 + ] + }, + "from": [ + 344.23, + 99.94 + ], + "tag": null, + "to": [ + 75.8, + 99.94 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ] + }, + "from": [ + 75.8, + 99.94 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 432, + 440, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": null, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 75.8, + 317.2 + ], + "to": [ + 75.8, + 317.2 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 37, + 69, + 0 + ] + } + }, + "tags": { + "rectangleSegmentA001": { + "type": "TagIdentifier", + "value": "rectangleSegmentA001", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "to": [ + 344.23, + 317.2 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 132, + 153, + 0 + ] + } + ] + }, + "seg01": { + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ] + }, + "from": [ + 344.23, + 317.2 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 344.23, + 99.94 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 240, + 246, + 0 + ] + } + ] + }, + "seg02": { + "type": "TagIdentifier", + "value": "seg02", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ] + }, + "from": [ + 75.80000000000001, + 99.94 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 419, + 425, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 69, + 0 + ] + } + ] + }, + "height": 100.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "edgeCuts": [ + { + "type": "fillet", + "id": "[uuid]", + "radius": 20.0, + "edgeId": "[uuid]", + "tag": null + } + ], + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 69, + 0 + ] + } + ] + } + }, "sourceRange": [ 581, 582, @@ -91,6 +1539,13 @@ snapshot_kind: text ] }, "tag": { + "value": { + "end": 590, + "start": 584, + "type": "TagDeclarator", + "type": "TagDeclarator", + "value": "seg04" + }, "sourceRange": [ 584, 590, @@ -110,6 +1565,60 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "length": { + "type": "Number", + "value": 50.0, + "__meta": [ + { + "sourceRange": [ + 623, + 625, + 0 + ] + } + ] + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "Uuid", + "value": "[uuid]", + "__meta": [ + { + "sourceRange": [ + 642, + 664, + 0 + ] + } + ] + } + ], + "__meta": [ + { + "sourceRange": [ + 641, + 665, + 0 + ] + } + ] + } + }, + "__meta": [ + { + "sourceRange": [ + 605, + 672, + 0 + ] + } + ] + }, "sourceRange": [ 605, 672, @@ -117,6 +1626,524 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 253, + 350, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 540, + 591, + 0 + ], + "tag": { + "end": 590, + "start": 584, + "type": "TagDeclarator", + "value": "seg04" + }, + "type": "chamfer" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "to": [ + 344.23, + 317.2 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ] + }, + "from": [ + 344.23, + 317.2 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 344.23, + 99.94 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 253, + 350, + 0 + ] + }, + "from": [ + 344.23, + 99.94 + ], + "tag": null, + "to": [ + 75.8, + 99.94 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ] + }, + "from": [ + 75.8, + 99.94 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 432, + 440, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": null, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 75.8, + 317.2 + ], + "to": [ + 75.8, + 317.2 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 37, + 69, + 0 + ] + } + }, + "tags": { + "rectangleSegmentA001": { + "type": "TagIdentifier", + "value": "rectangleSegmentA001", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "to": [ + 344.23, + 317.2 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 132, + 153, + 0 + ] + } + ] + }, + "seg01": { + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ] + }, + "from": [ + 344.23, + 317.2 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 344.23, + 99.94 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 240, + 246, + 0 + ] + } + ] + }, + "seg02": { + "type": "TagIdentifier", + "value": "seg02", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ] + }, + "from": [ + 75.80000000000001, + 99.94 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 419, + 425, + 0 + ] + } + ] + }, + "seg04": { + "type": "TagIdentifier", + "value": "seg04", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": null, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 540, + 591, + 0 + ], + "tag": { + "end": 590, + "start": 584, + "type": "TagDeclarator", + "value": "seg04" + }, + "type": "chamfer" + } + }, + "__meta": [ + { + "sourceRange": [ + 584, + 590, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 69, + 0 + ] + } + ] + }, + "height": 100.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "edgeCuts": [ + { + "type": "fillet", + "id": "[uuid]", + "radius": 20.0, + "edgeId": "[uuid]", + "tag": null + }, + { + "type": "chamfer", + "id": "[uuid]", + "length": 50.0, + "edgeId": "[uuid]", + "tag": { + "end": 590, + "start": 584, + "type": "TagDeclarator", + "value": "seg04" + } + } + ], + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 69, + 0 + ] + } + ] + } + }, "sourceRange": [ 674, 675, @@ -124,6 +2151,13 @@ snapshot_kind: text ] }, "tag": { + "value": { + "end": 683, + "start": 677, + "type": "TagDeclarator", + "type": "TagDeclarator", + "value": "seg03" + }, "sourceRange": [ 677, 683, @@ -143,6 +2177,587 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 253, + 350, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 540, + 591, + 0 + ], + "tag": { + "end": 590, + "start": 584, + "type": "TagDeclarator", + "value": "seg04" + }, + "type": "chamfer" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 597, + 684, + 0 + ], + "tag": { + "end": 683, + "start": 677, + "type": "TagDeclarator", + "value": "seg03" + }, + "type": "chamfer" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "to": [ + 344.23, + 317.2 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ] + }, + "from": [ + 344.23, + 317.2 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 344.23, + 99.94 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 253, + 350, + 0 + ] + }, + "from": [ + 344.23, + 99.94 + ], + "tag": null, + "to": [ + 75.8, + 99.94 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ] + }, + "from": [ + 75.8, + 99.94 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 432, + 440, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": null, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 75.8, + 317.2 + ], + "to": [ + 75.8, + 317.2 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 37, + 69, + 0 + ] + } + }, + "tags": { + "rectangleSegmentA001": { + "type": "TagIdentifier", + "value": "rectangleSegmentA001", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "to": [ + 344.23, + 317.2 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 132, + 153, + 0 + ] + } + ] + }, + "seg01": { + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ] + }, + "from": [ + 344.23, + 317.2 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 344.23, + 99.94 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 240, + 246, + 0 + ] + } + ] + }, + "seg02": { + "type": "TagIdentifier", + "value": "seg02", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ] + }, + "from": [ + 75.80000000000001, + 99.94 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 419, + 425, + 0 + ] + } + ] + }, + "seg03": { + "type": "TagIdentifier", + "value": "seg03", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": null, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 597, + 684, + 0 + ], + "tag": { + "end": 683, + "start": 677, + "type": "TagDeclarator", + "value": "seg03" + }, + "type": "chamfer" + } + }, + "__meta": [ + { + "sourceRange": [ + 677, + 683, + 0 + ] + } + ] + }, + "seg04": { + "type": "TagIdentifier", + "value": "seg04", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": null, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 540, + 591, + 0 + ], + "tag": { + "end": 590, + "start": 584, + "type": "TagDeclarator", + "value": "seg04" + }, + "type": "chamfer" + } + }, + "__meta": [ + { + "sourceRange": [ + 584, + 590, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 69, + 0 + ] + } + ] + }, + "height": 100.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "edgeCuts": [ + { + "type": "fillet", + "id": "[uuid]", + "radius": 20.0, + "edgeId": "[uuid]", + "tag": null + }, + { + "type": "chamfer", + "id": "[uuid]", + "length": 50.0, + "edgeId": "[uuid]", + "tag": { + "end": 590, + "start": 584, + "type": "TagDeclarator", + "value": "seg04" + } + }, + { + "type": "chamfer", + "id": "[uuid]", + "length": 50.0, + "edgeId": "[uuid]", + "tag": { + "end": 683, + "start": 677, + "type": "TagDeclarator", + "value": "seg03" + } + } + ], + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 69, + 0 + ] + } + ] + } + }, "sourceRange": [ 712, 722, @@ -150,6 +2765,42 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "TagIdentifier", + "type": "TagIdentifier", + "value": "seg04", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": null, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 540, + 591, + 0 + ], + "tag": { + "end": 590, + "start": 584, + "type": "TagDeclarator", + "value": "seg04" + }, + "type": "chamfer" + } + }, + "__meta": [ + { + "sourceRange": [ + 584, + 590, + 0 + ] + } + ] + }, "sourceRange": [ 724, 729, @@ -169,6 +2820,587 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 253, + 350, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 540, + 591, + 0 + ], + "tag": { + "end": 590, + "start": 584, + "type": "TagDeclarator", + "value": "seg04" + }, + "type": "chamfer" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 597, + 684, + 0 + ], + "tag": { + "end": 683, + "start": 677, + "type": "TagDeclarator", + "value": "seg03" + }, + "type": "chamfer" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "to": [ + 344.23, + 317.2 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ] + }, + "from": [ + 344.23, + 317.2 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 344.23, + 99.94 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 253, + 350, + 0 + ] + }, + "from": [ + 344.23, + 99.94 + ], + "tag": null, + "to": [ + 75.8, + 99.94 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ] + }, + "from": [ + 75.8, + 99.94 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 432, + 440, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": null, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 75.8, + 317.2 + ], + "to": [ + 75.8, + 317.2 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 37, + 69, + 0 + ] + } + }, + "tags": { + "rectangleSegmentA001": { + "type": "TagIdentifier", + "value": "rectangleSegmentA001", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "to": [ + 344.23, + 317.2 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 132, + 153, + 0 + ] + } + ] + }, + "seg01": { + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ] + }, + "from": [ + 344.23, + 317.2 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 344.23, + 99.94 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 240, + 246, + 0 + ] + } + ] + }, + "seg02": { + "type": "TagIdentifier", + "value": "seg02", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ] + }, + "from": [ + 75.80000000000001, + 99.94 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 419, + 425, + 0 + ] + } + ] + }, + "seg03": { + "type": "TagIdentifier", + "value": "seg03", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": null, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 597, + 684, + 0 + ], + "tag": { + "end": 683, + "start": 677, + "type": "TagDeclarator", + "value": "seg03" + }, + "type": "chamfer" + } + }, + "__meta": [ + { + "sourceRange": [ + 677, + 683, + 0 + ] + } + ] + }, + "seg04": { + "type": "TagIdentifier", + "value": "seg04", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": null, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 540, + 591, + 0 + ], + "tag": { + "end": 590, + "start": 584, + "type": "TagDeclarator", + "value": "seg04" + }, + "type": "chamfer" + } + }, + "__meta": [ + { + "sourceRange": [ + 584, + 590, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 69, + 0 + ] + } + ] + }, + "height": 100.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "edgeCuts": [ + { + "type": "fillet", + "id": "[uuid]", + "radius": 20.0, + "edgeId": "[uuid]", + "tag": null + }, + { + "type": "chamfer", + "id": "[uuid]", + "length": 50.0, + "edgeId": "[uuid]", + "tag": { + "end": 590, + "start": 584, + "type": "TagDeclarator", + "value": "seg04" + } + }, + { + "type": "chamfer", + "id": "[uuid]", + "length": 50.0, + "edgeId": "[uuid]", + "tag": { + "end": 683, + "start": 677, + "type": "TagDeclarator", + "value": "seg03" + } + } + ], + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 69, + 0 + ] + } + ] + } + }, "sourceRange": [ 1160, 1170, @@ -176,6 +3408,42 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "TagIdentifier", + "type": "TagIdentifier", + "value": "seg03", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": null, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 597, + 684, + 0 + ], + "tag": { + "end": 683, + "start": 677, + "type": "TagDeclarator", + "value": "seg03" + }, + "type": "chamfer" + } + }, + "__meta": [ + { + "sourceRange": [ + 677, + 683, + 0 + ] + } + ] + }, "sourceRange": [ 1172, 1177, @@ -195,6 +3463,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 50.0, + "__meta": [ + { + "sourceRange": [ + 1625, + 1627, + 0 + ] + } + ] + }, "sourceRange": [ 1625, 1627, @@ -210,6 +3491,907 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1225, + 1273, + 0 + ] + }, + "from": [ + 159.25, + 278.35 + ], + "tag": { + "end": 1272, + "start": 1251, + "type": "TagDeclarator", + "value": "rectangleSegmentA002" + }, + "to": [ + 200.07, + 278.35 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1279, + 1381, + 0 + ] + }, + "from": [ + 200.07, + 278.35 + ], + "tag": { + "end": 1380, + "start": 1359, + "type": "TagDeclarator", + "value": "rectangleSegmentB001" + }, + "to": [ + 200.07, + 146.08 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1387, + 1507, + 0 + ] + }, + "from": [ + 200.07, + 146.08 + ], + "tag": { + "end": 1506, + "start": 1485, + "type": "TagDeclarator", + "value": "rectangleSegmentC001" + }, + "to": [ + 159.25, + 146.08 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1513, + 1569, + 0 + ] + }, + "from": [ + 159.25, + 146.08 + ], + "tag": null, + "to": [ + 159.25, + 278.35 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1575, + 1583, + 0 + ] + }, + "from": [ + 159.25, + 278.35 + ], + "tag": null, + "to": [ + 159.25, + 278.35 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "face", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "seg03", + "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 + }, + "solid": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 253, + 350, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 540, + 591, + 0 + ], + "tag": { + "end": 590, + "start": 584, + "type": "TagDeclarator", + "value": "seg04" + }, + "type": "chamfer" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 597, + 684, + 0 + ], + "tag": { + "end": 683, + "start": 677, + "type": "TagDeclarator", + "value": "seg03" + }, + "type": "chamfer" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "to": [ + 344.23, + 317.2 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ] + }, + "from": [ + 344.23, + 317.2 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 344.23, + 99.94 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 253, + 350, + 0 + ] + }, + "from": [ + 344.23, + 99.94 + ], + "tag": null, + "to": [ + 75.8, + 99.94 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ] + }, + "from": [ + 75.8, + 99.94 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 432, + 440, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": null, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + } + ], + "on": { + "type": "plane", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": "XZ", + "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": 0.0, + "z": 1.0 + }, + "zAxis": { + "x": 0.0, + "y": -1.0, + "z": 0.0 + }, + "units": { + "type": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 75.8, + 317.2 + ], + "to": [ + 75.8, + 317.2 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 37, + 69, + 0 + ] + } + }, + "tags": { + "rectangleSegmentA001": { + "type": "TagIdentifier", + "value": "rectangleSegmentA001", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ] + }, + "from": [ + 75.8, + 317.2 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "to": [ + 344.23, + 317.2 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 105, + 154, + 0 + ], + "tag": { + "end": 153, + "start": 132, + "type": "TagDeclarator", + "value": "rectangleSegmentA001" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 132, + 153, + 0 + ] + } + ] + }, + "seg01": { + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ] + }, + "from": [ + 344.23, + 317.2 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + 344.23, + 99.94 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 160, + 247, + 0 + ], + "tag": { + "end": 246, + "start": 240, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 240, + 246, + 0 + ] + } + ] + }, + "seg02": { + "type": "TagIdentifier", + "value": "seg02", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ] + }, + "from": [ + 75.80000000000001, + 99.94 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "to": [ + 75.8, + 317.2 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 356, + 426, + 0 + ], + "tag": { + "end": 425, + "start": 419, + "type": "TagDeclarator", + "value": "seg02" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 419, + 425, + 0 + ] + } + ] + }, + "seg03": { + "type": "TagIdentifier", + "value": "seg03", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": null, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 597, + 684, + 0 + ], + "tag": { + "end": 683, + "start": 677, + "type": "TagDeclarator", + "value": "seg03" + }, + "type": "chamfer" + } + }, + "__meta": [ + { + "sourceRange": [ + 677, + 683, + 0 + ] + } + ] + }, + "seg04": { + "type": "TagIdentifier", + "value": "seg04", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": null, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 540, + 591, + 0 + ], + "tag": { + "end": 590, + "start": 584, + "type": "TagDeclarator", + "value": "seg04" + }, + "type": "chamfer" + } + }, + "__meta": [ + { + "sourceRange": [ + 584, + 590, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 69, + 0 + ] + } + ] + }, + "height": 100.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "edgeCuts": [ + { + "type": "fillet", + "id": "[uuid]", + "radius": 20.0, + "edgeId": "[uuid]", + "tag": null + }, + { + "type": "chamfer", + "id": "[uuid]", + "length": 50.0, + "edgeId": "[uuid]", + "tag": { + "end": 590, + "start": 584, + "type": "TagDeclarator", + "value": "seg04" + } + }, + { + "type": "chamfer", + "id": "[uuid]", + "length": 50.0, + "edgeId": "[uuid]", + "tag": { + "end": 683, + "start": 677, + "type": "TagDeclarator", + "value": "seg03" + } + } + ], + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 37, + 69, + 0 + ] + } + ] + }, + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 1146, + 1178, + 0 + ] + } + ] + }, + "start": { + "from": [ + 159.25, + 278.35 + ], + "to": [ + 159.25, + 278.35 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1184, + 1219, + 0 + ] + } + }, + "tags": { + "rectangleSegmentA002": { + "type": "TagIdentifier", + "value": "rectangleSegmentA002", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1225, + 1273, + 0 + ] + }, + "from": [ + 159.25, + 278.35 + ], + "tag": { + "end": 1272, + "start": 1251, + "type": "TagDeclarator", + "value": "rectangleSegmentA002" + }, + "to": [ + 200.07, + 278.35 + ], + "type": "ToPoint" + }, + "surface": null + }, + "__meta": [ + { + "sourceRange": [ + 1251, + 1272, + 0 + ] + } + ] + }, + "rectangleSegmentB001": { + "type": "TagIdentifier", + "value": "rectangleSegmentB001", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1279, + 1381, + 0 + ] + }, + "from": [ + 200.07, + 278.35 + ], + "tag": { + "end": 1380, + "start": 1359, + "type": "TagDeclarator", + "value": "rectangleSegmentB001" + }, + "to": [ + 200.07, + 146.08 + ], + "type": "ToPoint" + }, + "surface": null + }, + "__meta": [ + { + "sourceRange": [ + 1359, + 1380, + 0 + ] + } + ] + }, + "rectangleSegmentC001": { + "type": "TagIdentifier", + "value": "rectangleSegmentC001", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1387, + 1507, + 0 + ] + }, + "from": [ + 200.07, + 146.08 + ], + "tag": { + "end": 1506, + "start": 1485, + "type": "TagDeclarator", + "value": "rectangleSegmentC001" + }, + "to": [ + 159.25, + 146.08 + ], + "type": "ToPoint" + }, + "surface": null + }, + "__meta": [ + { + "sourceRange": [ + 1485, + 1506, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 1184, + 1219, + 0 + ] + } + ] + } + }, "sourceRange": [ 1605, 1614, diff --git a/src/wasm-lib/kcl/tests/sketch_in_object/ops.snap b/src/wasm-lib/kcl/tests/sketch_in_object/ops.snap index 90127cf6b1..5775cc2338 100644 --- a/src/wasm-lib/kcl/tests/sketch_in_object/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_in_object/ops.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed sketch_in_object.kcl -snapshot_kind: text --- [ { @@ -23,6 +22,19 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 35, + 39, + 0 + ] + } + ] + }, "sourceRange": [ 35, 39, @@ -45,6 +57,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": -10.0, + "__meta": [ + { + "sourceRange": [ + 442, + 445, + 0 + ] + } + ] + }, "sourceRange": [ 442, 445, @@ -80,6 +105,19 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 240, + 244, + 0 + ] + } + ] + }, "sourceRange": [ 240, 244, @@ -102,6 +140,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 10.0, + "__meta": [ + { + "sourceRange": [ + 500, + 502, + 0 + ] + } + ] + }, "sourceRange": [ 500, 502, diff --git a/src/wasm-lib/kcl/tests/sketch_on_face/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face/ops.snap index 9e028415dd..46b072f732 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed sketch_on_face.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 24, + 28, + 0 + ] + } + ] + }, "sourceRange": [ 24, 28, @@ -26,6 +38,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 5.0, + "__meta": [ + { + "sourceRange": [ + 217, + 218, + 0 + ] + } + ] + }, "sourceRange": [ 217, 218, @@ -45,6 +70,294 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 74, + 114, + 0 + ], + "tag": { + "end": 113, + "start": 108, + "type": "TagDeclarator", + "value": "here" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 120, + 147, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 153, + 180, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 186, + 194, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 74, + 114, + 0 + ] + }, + "from": [ + 11.19, + 28.35 + ], + "tag": { + "end": 113, + "start": 108, + "type": "TagDeclarator", + "value": "here" + }, + "to": [ + 39.86, + 15.1 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 120, + 147, + 0 + ] + }, + "from": [ + 39.86, + 15.1 + ], + "tag": null, + "to": [ + 35.74, + -7.71 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 153, + 180, + 0 + ] + }, + "from": [ + 35.74, + -7.71 + ], + "tag": null, + "to": [ + 2.5, + 6.84 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 186, + 194, + 0 + ] + }, + "from": [ + 2.5, + 6.84 + ], + "tag": null, + "to": [ + 11.19, + 28.35 + ], + "type": "ToPoint" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 11.19, + 28.35 + ], + "to": [ + 11.19, + 28.35 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 35, + 68, + 0 + ] + } + }, + "tags": { + "here": { + "type": "TagIdentifier", + "value": "here", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 74, + 114, + 0 + ] + }, + "from": [ + 11.19, + 28.35 + ], + "tag": { + "end": 113, + "start": 108, + "type": "TagDeclarator", + "value": "here" + }, + "to": [ + 39.86, + 15.100000000000001 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 74, + 114, + 0 + ], + "tag": { + "end": 113, + "start": 108, + "type": "TagDeclarator", + "value": "here" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 108, + 113, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 35, + 68, + 0 + ] + } + ] + }, + "height": 5.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 35, + 68, + 0 + ] + } + ] + } + }, "sourceRange": [ 245, 252, @@ -52,6 +365,66 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "TagIdentifier", + "type": "TagIdentifier", + "value": "here", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 74, + 114, + 0 + ] + }, + "from": [ + 11.19, + 28.35 + ], + "tag": { + "end": 113, + "start": 108, + "type": "TagDeclarator", + "value": "here" + }, + "to": [ + 39.86, + 15.100000000000001 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 74, + 114, + 0 + ], + "tag": { + "end": 113, + "start": 108, + "type": "TagDeclarator", + "value": "here" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 108, + 113, + 0 + ] + } + ] + }, "sourceRange": [ 254, 258, @@ -71,6 +444,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 5.0, + "__meta": [ + { + "sourceRange": [ + 403, + 404, + 0 + ] + } + ] + }, "sourceRange": [ 403, 404, diff --git a/src/wasm-lib/kcl/tests/sketch_on_face_after_fillets_referencing_face/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face_after_fillets_referencing_face/ops.snap index 2c5ed32c32..77336a8925 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face_after_fillets_referencing_face/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face_after_fillets_referencing_face/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed sketch_on_face_after_fillets_referencing_face.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 1006, + 1010, + 0 + ] + } + ] + }, "sourceRange": [ 1006, 1010, @@ -26,6 +38,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 6.0, + "__meta": [ + { + "sourceRange": [ + 594, + 595, + 0 + ] + } + ] + }, "sourceRange": [ 1322, 1327, @@ -45,6 +70,60 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 0.25, + "__meta": [ + { + "sourceRange": [ + 929, + 933, + 0 + ] + } + ] + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "Uuid", + "value": "[uuid]", + "__meta": [ + { + "sourceRange": [ + 1383, + 1413, + 0 + ] + } + ] + } + ], + "__meta": [ + { + "sourceRange": [ + 1382, + 1414, + 0 + ] + } + ] + } + }, + "__meta": [ + { + "sourceRange": [ + 1341, + 1421, + 0 + ] + } + ] + }, "sourceRange": [ 1341, 1421, @@ -52,6 +131,494 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1048, + 1093, + 0 + ], + "tag": { + "end": 1092, + "start": 1082, + "type": "TagDeclarator", + "value": "outerEdge" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1099, + 1142, + 0 + ], + "tag": { + "end": 1141, + "start": 1135, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1148, + 1175, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1181, + 1239, + 0 + ], + "tag": { + "end": 1238, + "start": 1228, + "type": "TagDeclarator", + "value": "innerEdge" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1245, + 1285, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1291, + 1299, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1048, + 1093, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": { + "end": 1092, + "start": 1082, + "type": "TagDeclarator", + "value": "outerEdge" + }, + "to": [ + 0.0, + 6.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1099, + 1142, + 0 + ] + }, + "from": [ + 0.0, + 6.0 + ], + "tag": { + "end": 1141, + "start": 1135, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + -8.0, + 6.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1148, + 1175, + 0 + ] + }, + "from": [ + -8.0, + 6.0 + ], + "tag": null, + "to": [ + -8.0, + 5.6793 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1181, + 1239, + 0 + ] + }, + "from": [ + -8.0, + 5.6793 + ], + "tag": { + "end": 1238, + "start": 1228, + "type": "TagDeclarator", + "value": "innerEdge" + }, + "to": [ + -0.3207, + 5.6793 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1245, + 1285, + 0 + ] + }, + "from": [ + -0.3207, + 5.6793 + ], + "tag": null, + "to": [ + -0.3207, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1291, + 1299, + 0 + ] + }, + "from": [ + -0.3207, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1017, + 1042, + 0 + ] + } + }, + "tags": { + "innerEdge": { + "type": "TagIdentifier", + "value": "innerEdge", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1181, + 1239, + 0 + ] + }, + "from": [ + -8.0, + 5.679286509705091 + ], + "tag": { + "end": 1238, + "start": 1228, + "type": "TagDeclarator", + "value": "innerEdge" + }, + "to": [ + -0.32071349029490914, + 5.679286509705091 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1181, + 1239, + 0 + ], + "tag": { + "end": 1238, + "start": 1228, + "type": "TagDeclarator", + "value": "innerEdge" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 1228, + 1238, + 0 + ] + } + ] + }, + "outerEdge": { + "type": "TagIdentifier", + "value": "outerEdge", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1048, + 1093, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": { + "end": 1092, + "start": 1082, + "type": "TagDeclarator", + "value": "outerEdge" + }, + "to": [ + 0.0, + 6.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1048, + 1093, + 0 + ], + "tag": { + "end": 1092, + "start": 1082, + "type": "TagDeclarator", + "value": "outerEdge" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 1082, + 1092, + 0 + ] + } + ] + }, + "seg01": { + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1099, + 1142, + 0 + ] + }, + "from": [ + 0.0, + 6.0 + ], + "tag": { + "end": 1141, + "start": 1135, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + -8.0, + 6.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1099, + 1142, + 0 + ], + "tag": { + "end": 1141, + "start": 1135, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 1135, + 1141, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 1017, + 1042, + 0 + ] + } + ] + }, + "height": 6.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 1017, + 1042, + 0 + ] + } + ] + } + }, "sourceRange": [ 1423, 1424, @@ -71,6 +638,67 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 0.5707134902949093, + "__meta": [ + { + "sourceRange": [ + 929, + 933, + 0 + ] + }, + { + "sourceRange": [ + 850, + 890, + 0 + ] + } + ] + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "Uuid", + "value": "[uuid]", + "__meta": [ + { + "sourceRange": [ + 1492, + 1522, + 0 + ] + } + ] + } + ], + "__meta": [ + { + "sourceRange": [ + 1491, + 1523, + 0 + ] + } + ] + } + }, + "__meta": [ + { + "sourceRange": [ + 1438, + 1530, + 0 + ] + } + ] + }, "sourceRange": [ 1438, 1530, @@ -78,6 +706,503 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1048, + 1093, + 0 + ], + "tag": { + "end": 1092, + "start": 1082, + "type": "TagDeclarator", + "value": "outerEdge" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1099, + 1142, + 0 + ], + "tag": { + "end": 1141, + "start": 1135, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1148, + 1175, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1181, + 1239, + 0 + ], + "tag": { + "end": 1238, + "start": 1228, + "type": "TagDeclarator", + "value": "innerEdge" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1245, + 1285, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1291, + 1299, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1048, + 1093, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": { + "end": 1092, + "start": 1082, + "type": "TagDeclarator", + "value": "outerEdge" + }, + "to": [ + 0.0, + 6.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1099, + 1142, + 0 + ] + }, + "from": [ + 0.0, + 6.0 + ], + "tag": { + "end": 1141, + "start": 1135, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + -8.0, + 6.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1148, + 1175, + 0 + ] + }, + "from": [ + -8.0, + 6.0 + ], + "tag": null, + "to": [ + -8.0, + 5.6793 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1181, + 1239, + 0 + ] + }, + "from": [ + -8.0, + 5.6793 + ], + "tag": { + "end": 1238, + "start": 1228, + "type": "TagDeclarator", + "value": "innerEdge" + }, + "to": [ + -0.3207, + 5.6793 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1245, + 1285, + 0 + ] + }, + "from": [ + -0.3207, + 5.6793 + ], + "tag": null, + "to": [ + -0.3207, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1291, + 1299, + 0 + ] + }, + "from": [ + -0.3207, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1017, + 1042, + 0 + ] + } + }, + "tags": { + "innerEdge": { + "type": "TagIdentifier", + "value": "innerEdge", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1181, + 1239, + 0 + ] + }, + "from": [ + -8.0, + 5.679286509705091 + ], + "tag": { + "end": 1238, + "start": 1228, + "type": "TagDeclarator", + "value": "innerEdge" + }, + "to": [ + -0.32071349029490914, + 5.679286509705091 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1181, + 1239, + 0 + ], + "tag": { + "end": 1238, + "start": 1228, + "type": "TagDeclarator", + "value": "innerEdge" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 1228, + 1238, + 0 + ] + } + ] + }, + "outerEdge": { + "type": "TagIdentifier", + "value": "outerEdge", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1048, + 1093, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": { + "end": 1092, + "start": 1082, + "type": "TagDeclarator", + "value": "outerEdge" + }, + "to": [ + 0.0, + 6.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1048, + 1093, + 0 + ], + "tag": { + "end": 1092, + "start": 1082, + "type": "TagDeclarator", + "value": "outerEdge" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 1082, + 1092, + 0 + ] + } + ] + }, + "seg01": { + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1099, + 1142, + 0 + ] + }, + "from": [ + 0.0, + 6.0 + ], + "tag": { + "end": 1141, + "start": 1135, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + -8.0, + 6.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1099, + 1142, + 0 + ], + "tag": { + "end": 1141, + "start": 1135, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 1135, + 1141, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 1017, + 1042, + 0 + ] + } + ] + }, + "height": 6.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "edgeCuts": [ + { + "type": "fillet", + "id": "[uuid]", + "radius": 0.25, + "edgeId": "[uuid]", + "tag": null + } + ], + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 1017, + 1042, + 0 + ] + } + ] + } + }, "sourceRange": [ 1532, 1533, @@ -97,6 +1222,510 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1048, + 1093, + 0 + ], + "tag": { + "end": 1092, + "start": 1082, + "type": "TagDeclarator", + "value": "outerEdge" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1099, + 1142, + 0 + ], + "tag": { + "end": 1141, + "start": 1135, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1148, + 1175, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1181, + 1239, + 0 + ], + "tag": { + "end": 1238, + "start": 1228, + "type": "TagDeclarator", + "value": "innerEdge" + }, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1245, + 1285, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1291, + 1299, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1048, + 1093, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": { + "end": 1092, + "start": 1082, + "type": "TagDeclarator", + "value": "outerEdge" + }, + "to": [ + 0.0, + 6.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1099, + 1142, + 0 + ] + }, + "from": [ + 0.0, + 6.0 + ], + "tag": { + "end": 1141, + "start": 1135, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + -8.0, + 6.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1148, + 1175, + 0 + ] + }, + "from": [ + -8.0, + 6.0 + ], + "tag": null, + "to": [ + -8.0, + 5.6793 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1181, + 1239, + 0 + ] + }, + "from": [ + -8.0, + 5.6793 + ], + "tag": { + "end": 1238, + "start": 1228, + "type": "TagDeclarator", + "value": "innerEdge" + }, + "to": [ + -0.3207, + 5.6793 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1245, + 1285, + 0 + ] + }, + "from": [ + -0.3207, + 5.6793 + ], + "tag": null, + "to": [ + -0.3207, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1291, + 1299, + 0 + ] + }, + "from": [ + -0.3207, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1017, + 1042, + 0 + ] + } + }, + "tags": { + "innerEdge": { + "type": "TagIdentifier", + "value": "innerEdge", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1181, + 1239, + 0 + ] + }, + "from": [ + -8.0, + 5.679286509705091 + ], + "tag": { + "end": 1238, + "start": 1228, + "type": "TagDeclarator", + "value": "innerEdge" + }, + "to": [ + -0.32071349029490914, + 5.679286509705091 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1181, + 1239, + 0 + ], + "tag": { + "end": 1238, + "start": 1228, + "type": "TagDeclarator", + "value": "innerEdge" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 1228, + 1238, + 0 + ] + } + ] + }, + "outerEdge": { + "type": "TagIdentifier", + "value": "outerEdge", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1048, + 1093, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": { + "end": 1092, + "start": 1082, + "type": "TagDeclarator", + "value": "outerEdge" + }, + "to": [ + 0.0, + 6.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1048, + 1093, + 0 + ], + "tag": { + "end": 1092, + "start": 1082, + "type": "TagDeclarator", + "value": "outerEdge" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 1082, + 1092, + 0 + ] + } + ] + }, + "seg01": { + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1099, + 1142, + 0 + ] + }, + "from": [ + 0.0, + 6.0 + ], + "tag": { + "end": 1141, + "start": 1135, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + -8.0, + 6.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1099, + 1142, + 0 + ], + "tag": { + "end": 1141, + "start": 1135, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 1135, + 1141, + 0 + ] + } + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 1017, + 1042, + 0 + ] + } + ] + }, + "height": 6.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "edgeCuts": [ + { + "type": "fillet", + "id": "[uuid]", + "radius": 0.25, + "edgeId": "[uuid]", + "tag": null + }, + { + "type": "fillet", + "id": "[uuid]", + "radius": 0.5707134902949093, + "edgeId": "[uuid]", + "tag": null + } + ], + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 1017, + 1042, + 0 + ] + } + ] + } + }, "sourceRange": [ 1562, 1569, @@ -104,6 +1733,66 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "TagIdentifier", + "type": "TagIdentifier", + "value": "seg01", + "info": { + "type": "TagEngineInfo", + "id": "[uuid]", + "sketch": "[uuid]", + "path": { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 1099, + 1142, + 0 + ] + }, + "from": [ + 0.0, + 6.0 + ], + "tag": { + "end": 1141, + "start": 1135, + "type": "TagDeclarator", + "value": "seg01" + }, + "to": [ + -8.0, + 6.0 + ], + "type": "ToPoint" + }, + "surface": { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 1099, + 1142, + 0 + ], + "tag": { + "end": 1141, + "start": 1135, + "type": "TagDeclarator", + "value": "seg01" + }, + "type": "extrudePlane" + } + }, + "__meta": [ + { + "sourceRange": [ + 1135, + 1141, + 0 + ] + } + ] + }, "sourceRange": [ 1571, 1576, @@ -123,6 +1812,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 10.0, + "__meta": [ + { + "sourceRange": [ + 1806, + 1808, + 0 + ] + } + ] + }, "sourceRange": [ 1806, 1808, diff --git a/src/wasm-lib/kcl/tests/sketch_on_face_circle_tagged/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face_circle_tagged/ops.snap index 817ca9a956..c543b74e6a 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face_circle_tagged/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face_circle_tagged/ops.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed sketch_on_face_circle_tagged.kcl -snapshot_kind: text --- [ { @@ -23,6 +22,19 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 43, + 47, + 0 + ] + } + ] + }, "sourceRange": [ 43, 47, @@ -45,6 +57,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 20.0, + "__meta": [ + { + "sourceRange": [ + 248, + 250, + 0 + ] + } + ] + }, "sourceRange": [ 248, 250, @@ -64,6 +89,223 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 86, + 108, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 116, + 138, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 146, + 169, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 217, + 225, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 86, + 108, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 20.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 116, + 138, + 0 + ] + }, + "from": [ + 0.0, + 20.0 + ], + "tag": null, + "to": [ + 20.0, + 20.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 146, + 169, + 0 + ] + }, + "from": [ + 20.0, + 20.0 + ], + "tag": null, + "to": [ + 20.0, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 217, + 225, + 0 + ] + }, + "from": [ + 20.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 56, + 78, + 0 + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 56, + 78, + 0 + ] + } + ] + }, + "height": 20.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 56, + 78, + 0 + ] + } + ] + } + }, "sourceRange": [ 277, 284, @@ -71,6 +313,19 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "String", + "value": "end", + "__meta": [ + { + "sourceRange": [ + 286, + 291, + 0 + ] + } + ] + }, "sourceRange": [ 286, 291, @@ -90,6 +345,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 5.0, + "__meta": [ + { + "sourceRange": [ + 374, + 375, + 0 + ] + } + ] + }, "sourceRange": [ 374, 375, diff --git a/src/wasm-lib/kcl/tests/sketch_on_face_end/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face_end/ops.snap index c3dee6787d..5431f59bc8 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face_end/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face_end/ops.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed sketch_on_face_end.kcl -snapshot_kind: text --- [ { @@ -23,6 +22,19 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 43, + 47, + 0 + ] + } + ] + }, "sourceRange": [ 43, 47, @@ -45,6 +57,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 20.0, + "__meta": [ + { + "sourceRange": [ + 248, + 250, + 0 + ] + } + ] + }, "sourceRange": [ 248, 250, @@ -64,6 +89,223 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 86, + 108, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 116, + 138, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 146, + 169, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 217, + 225, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 86, + 108, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 20.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 116, + 138, + 0 + ] + }, + "from": [ + 0.0, + 20.0 + ], + "tag": null, + "to": [ + 20.0, + 20.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 146, + 169, + 0 + ] + }, + "from": [ + 20.0, + 20.0 + ], + "tag": null, + "to": [ + 20.0, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 217, + 225, + 0 + ] + }, + "from": [ + 20.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 56, + 78, + 0 + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 56, + 78, + 0 + ] + } + ] + }, + "height": 20.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 56, + 78, + 0 + ] + } + ] + } + }, "sourceRange": [ 277, 284, @@ -71,6 +313,19 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "String", + "value": "END", + "__meta": [ + { + "sourceRange": [ + 286, + 291, + 0 + ] + } + ] + }, "sourceRange": [ 286, 291, @@ -90,6 +345,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 5.0, + "__meta": [ + { + "sourceRange": [ + 436, + 437, + 0 + ] + } + ] + }, "sourceRange": [ 436, 437, diff --git a/src/wasm-lib/kcl/tests/sketch_on_face_end_negative_extrude/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face_end_negative_extrude/ops.snap index 5f4950cdb4..bc17af0efc 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face_end_negative_extrude/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face_end_negative_extrude/ops.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed sketch_on_face_end_negative_extrude.kcl -snapshot_kind: text --- [ { @@ -23,6 +22,19 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 43, + 47, + 0 + ] + } + ] + }, "sourceRange": [ 43, 47, @@ -45,6 +57,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 20.0, + "__meta": [ + { + "sourceRange": [ + 248, + 250, + 0 + ] + } + ] + }, "sourceRange": [ 248, 250, @@ -64,6 +89,223 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 86, + 108, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 116, + 138, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 146, + 169, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 217, + 225, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 86, + 108, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 20.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 116, + 138, + 0 + ] + }, + "from": [ + 0.0, + 20.0 + ], + "tag": null, + "to": [ + 20.0, + 20.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 146, + 169, + 0 + ] + }, + "from": [ + 20.0, + 20.0 + ], + "tag": null, + "to": [ + 20.0, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 217, + 225, + 0 + ] + }, + "from": [ + 20.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 56, + 78, + 0 + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 56, + 78, + 0 + ] + } + ] + }, + "height": 20.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 56, + 78, + 0 + ] + } + ] + } + }, "sourceRange": [ 277, 284, @@ -71,6 +313,19 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "String", + "value": "END", + "__meta": [ + { + "sourceRange": [ + 286, + 291, + 0 + ] + } + ] + }, "sourceRange": [ 286, 291, @@ -90,6 +345,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": -5.0, + "__meta": [ + { + "sourceRange": [ + 436, + 438, + 0 + ] + } + ] + }, "sourceRange": [ 436, 438, diff --git a/src/wasm-lib/kcl/tests/sketch_on_face_start/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face_start/ops.snap index 0a43210930..ae5f8b3e2c 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face_start/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face_start/ops.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed sketch_on_face_start.kcl -snapshot_kind: text --- [ { @@ -23,6 +22,19 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 43, + 47, + 0 + ] + } + ] + }, "sourceRange": [ 43, 47, @@ -45,6 +57,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 20.0, + "__meta": [ + { + "sourceRange": [ + 248, + 250, + 0 + ] + } + ] + }, "sourceRange": [ 248, 250, @@ -64,6 +89,223 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "type": "Solid", + "id": "[uuid]", + "artifactId": "[uuid]", + "value": [ + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 86, + 108, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 116, + 138, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 146, + 169, + 0 + ], + "tag": null, + "type": "extrudePlane" + }, + { + "faceId": "[uuid]", + "id": "[uuid]", + "sourceRange": [ + 217, + 225, + 0 + ], + "tag": null, + "type": "extrudePlane" + } + ], + "sketch": { + "type": "Sketch", + "id": "[uuid]", + "paths": [ + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 86, + 108, + 0 + ] + }, + "from": [ + 0.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 20.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 116, + 138, + 0 + ] + }, + "from": [ + 0.0, + 20.0 + ], + "tag": null, + "to": [ + 20.0, + 20.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 146, + 169, + 0 + ] + }, + "from": [ + 20.0, + 20.0 + ], + "tag": null, + "to": [ + 20.0, + 0.0 + ], + "type": "ToPoint" + }, + { + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 217, + 225, + 0 + ] + }, + "from": [ + 20.0, + 0.0 + ], + "tag": null, + "to": [ + 0.0, + 0.0 + ], + "type": "ToPoint" + } + ], + "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": "Mm" + }, + "__meta": [] + }, + "start": { + "from": [ + 0.0, + 0.0 + ], + "to": [ + 0.0, + 0.0 + ], + "tag": null, + "__geoMeta": { + "id": "[uuid]", + "sourceRange": [ + 56, + 78, + 0 + ] + } + }, + "artifactId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 56, + 78, + 0 + ] + } + ] + }, + "height": 20.0, + "startCapId": "[uuid]", + "endCapId": "[uuid]", + "units": { + "type": "Mm" + }, + "__meta": [ + { + "sourceRange": [ + 56, + 78, + 0 + ] + } + ] + } + }, "sourceRange": [ 284, 287, @@ -71,6 +313,19 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "String", + "value": "start", + "__meta": [ + { + "sourceRange": [ + 289, + 296, + 0 + ] + } + ] + }, "sourceRange": [ 289, 296, @@ -90,6 +345,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 5.0, + "__meta": [ + { + "sourceRange": [ + 441, + 442, + 0 + ] + } + ] + }, "sourceRange": [ 441, 442, diff --git a/src/wasm-lib/kcl/tests/tan_arc_x_line/ops.snap b/src/wasm-lib/kcl/tests/tan_arc_x_line/ops.snap index f2c805e84c..3b5c40e8d9 100644 --- a/src/wasm-lib/kcl/tests/tan_arc_x_line/ops.snap +++ b/src/wasm-lib/kcl/tests/tan_arc_x_line/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed tan_arc_x_line.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY", + "__meta": [ + { + "sourceRange": [ + 78, + 82, + 0 + ] + } + ] + }, "sourceRange": [ 78, 82, diff --git a/src/wasm-lib/kcl/tests/tangential_arc/ops.snap b/src/wasm-lib/kcl/tests/tangential_arc/ops.snap index edd3c2a97a..8f9e0ef837 100644 --- a/src/wasm-lib/kcl/tests/tangential_arc/ops.snap +++ b/src/wasm-lib/kcl/tests/tangential_arc/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed tangential_arc.kcl -snapshot_kind: text --- [ { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 10.0, + "__meta": [ + { + "sourceRange": [ + 158, + 160, + 0 + ] + } + ] + }, "sourceRange": [ 158, 160, diff --git a/src/wasm-lib/kcl/tests/xz_plane/ops.snap b/src/wasm-lib/kcl/tests/xz_plane/ops.snap index 8574adbc45..6f067e4462 100644 --- a/src/wasm-lib/kcl/tests/xz_plane/ops.snap +++ b/src/wasm-lib/kcl/tests/xz_plane/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed xz_plane.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XZ", + "__meta": [ + { + "sourceRange": [ + 24, + 28, + 0 + ] + } + ] + }, "sourceRange": [ 24, 28, @@ -26,6 +38,26 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 12.0, + "__meta": [ + { + "sourceRange": [ + 167, + 168, + 0 + ] + }, + { + "sourceRange": [ + 171, + 172, + 0 + ] + } + ] + }, "sourceRange": [ 167, 172, From 11f0468f9e44184cad18aced600a99471e63cd32 Mon Sep 17 00:00:00 2001 From: Jonathan Tran Date: Fri, 31 Jan 2025 17:32:01 -0500 Subject: [PATCH 03/18] Change to not include the full value when we don't need it --- src/wasm-lib/kcl/src/execution/cad_op.rs | 29 ++++++-- src/wasm-lib/kcl/src/execution/exec_ast.rs | 57 ++++++++++---- src/wasm-lib/kcl/src/execution/kcl_value.rs | 82 ++++++++++++++++++++- 3 files changed, 147 insertions(+), 21 deletions(-) diff --git a/src/wasm-lib/kcl/src/execution/cad_op.rs b/src/wasm-lib/kcl/src/execution/cad_op.rs index 9ee9b2afaf..9e97822416 100644 --- a/src/wasm-lib/kcl/src/execution/cad_op.rs +++ b/src/wasm-lib/kcl/src/execution/cad_op.rs @@ -2,10 +2,9 @@ use indexmap::IndexMap; use schemars::JsonSchema; use serde::{Deserialize, Serialize}; +use super::{ArtifactId, KclValue}; use crate::{docs::StdLibFn, std::get_stdlib_fn, SourceRange}; -use super::KclValue; - /// A CAD modeling operation for display in the feature tree, AKA operations /// timeline. #[derive(Debug, Clone, Deserialize, Serialize, PartialEq, ts_rs::TS, JsonSchema)] @@ -60,16 +59,34 @@ impl Operation { #[ts(export)] #[serde(rename_all = "camelCase")] pub struct OpArg { - /// The runtime value of the argument. - value: KclValue, + /// The runtime value of the argument, only if it's a non-composite + /// primitive value. We don't include all values since they can be quite + /// large, and we don't actually need them. + #[serde(skip_serializing_if = "Option::is_none")] + value: Option, + /// The artifact ID of the value. This will be `None` for primitive values, + /// and `Some` for values that have `ArtifactId`s. If the value is an + /// array, this will be the artifact IDs of the elements. Only one level of + /// nesting is supported. If the value is an array of arrays, for example, + /// this will be an empty array. + #[serde(skip_serializing_if = "Option::is_none")] + artifact_ids: Option>, /// The KCL code expression for the argument. This is used in the UI so /// that the user can edit the expression. source_range: SourceRange, } impl OpArg { - pub(crate) fn new(value: KclValue, source_range: SourceRange) -> Self { - Self { value, source_range } + pub(crate) fn new( + value: Option, + artifact_ids: Option>, + source_range: SourceRange, + ) -> Self { + Self { + value, + artifact_ids, + source_range, + } } } diff --git a/src/wasm-lib/kcl/src/execution/exec_ast.rs b/src/wasm-lib/kcl/src/execution/exec_ast.rs index 8244c5e671..2d5fbbf2f1 100644 --- a/src/wasm-lib/kcl/src/execution/exec_ast.rs +++ b/src/wasm-lib/kcl/src/execution/exec_ast.rs @@ -925,15 +925,26 @@ impl Node { .kw_args .labeled .iter() - .map(|(k, arg)| (k.clone(), OpArg::new(arg.value.clone(), arg.source_range))) + .map(|(k, arg)| { + ( + k.clone(), + OpArg::new( + arg.value.operation_value(), + arg.value.operation_artifact_ids(), + arg.source_range, + ), + ) + }) .collect(); Some(Operation::StdLibCall { std_lib_fn: (&func).into(), - unlabeled_arg: args - .kw_args - .unlabeled - .as_ref() - .map(|arg| OpArg::new(arg.value.clone(), arg.source_range)), + unlabeled_arg: args.kw_args.unlabeled.as_ref().map(|arg| { + OpArg::new( + arg.value.operation_value(), + arg.value.operation_artifact_ids(), + arg.source_range, + ) + }), labeled_args: op_labeled_args, source_range: callsite, is_error: false, @@ -974,7 +985,16 @@ impl Node { .kw_args .labeled .iter() - .map(|(k, arg)| (k.clone(), OpArg::new(arg.value.clone(), arg.source_range))) + .map(|(k, arg)| { + ( + k.clone(), + OpArg::new( + arg.value.operation_value(), + arg.value.operation_artifact_ids(), + arg.source_range, + ), + ) + }) .collect(); exec_state .mod_local @@ -982,11 +1002,13 @@ impl Node { .push(Operation::UserDefinedFunctionCall { name: Some(fn_name.clone()), function_source_range: func.function_def_source_range().unwrap_or_default(), - unlabeled_arg: args - .kw_args - .unlabeled - .as_ref() - .map(|arg| OpArg::new(arg.value.clone(), arg.source_range)), + unlabeled_arg: args.kw_args.unlabeled.as_ref().map(|arg| { + OpArg::new( + arg.value.operation_value(), + arg.value.operation_artifact_ids(), + arg.source_range, + ) + }), labeled_args: op_labeled_args, source_range: callsite, }); @@ -1051,7 +1073,16 @@ impl Node { .args(false) .iter() .zip(&fn_args) - .map(|(k, arg)| (k.name.clone(), OpArg::new(arg.value.clone(), arg.source_range))) + .map(|(k, arg)| { + ( + k.name.clone(), + OpArg::new( + arg.value.operation_value(), + arg.value.operation_artifact_ids(), + arg.source_range, + ), + ) + }) .collect(); Some(Operation::StdLibCall { std_lib_fn: (&func).into(), diff --git a/src/wasm-lib/kcl/src/execution/kcl_value.rs b/src/wasm-lib/kcl/src/execution/kcl_value.rs index f8c007dccd..b4105d4276 100644 --- a/src/wasm-lib/kcl/src/execution/kcl_value.rs +++ b/src/wasm-lib/kcl/src/execution/kcl_value.rs @@ -4,6 +4,7 @@ use anyhow::Result; use schemars::JsonSchema; use serde::{Deserialize, Serialize}; +use super::{memory::EnvironmentRef, ArtifactId, MetaSettings}; use crate::{ errors::KclErrorDetails, exec::Sketch, @@ -21,8 +22,6 @@ use crate::{ ExecutorContext, KclError, ModuleId, SourceRange, }; -use super::{memory::EnvironmentRef, MetaSettings}; - pub type KclObjectFields = HashMap; /// Any KCL value. @@ -234,6 +233,85 @@ impl KclValue { } } + /// The value included in [crate::execution::cad_op::Operation]s. Only + /// non-composite primitives should be included. + pub(crate) fn operation_value(&self) -> Option { + match self { + KclValue::Uuid { .. } + | KclValue::Bool { .. } + | KclValue::Number { .. } + | KclValue::String { .. } => Some(self.clone()), + KclValue::Array { .. } => None, + KclValue::Object { .. } => None, + KclValue::TagIdentifier(_) | KclValue::TagDeclarator(_) => Some(self.clone()), + KclValue::Plane { .. } => None, + KclValue::Face { .. } => None, + KclValue::Sketch { .. } => None, + KclValue::Sketches { .. } => None, + KclValue::Solid { .. } => None, + KclValue::Solids { .. } => None, + KclValue::Helix { .. } => None, + KclValue::ImportedGeometry(_) => None, + KclValue::Function { .. } => None, + KclValue::Module { .. } => None, + KclValue::KclNone { .. } => None, + KclValue::Tombstone { .. } => None, + } + } + + /// The artifact IDs included in [crate::execution::cad_op::Operation]s. + pub(crate) fn operation_artifact_ids(&self) -> Option> { + self.collect_artifact_ids(true) + } + + fn collect_artifact_ids(&self, recurse: bool) -> Option> { + match self { + KclValue::Uuid { .. } => None, + KclValue::Bool { .. } => None, + KclValue::Number { .. } => None, + KclValue::String { .. } => None, + KclValue::Array { value, .. } => { + if recurse { + Some( + value + .iter() + .flat_map(|sketch| sketch.collect_artifact_ids(false).unwrap_or_default()) + .collect(), + ) + } else { + None + } + } + KclValue::Object { .. } => None, + KclValue::TagIdentifier(_) => None, + KclValue::TagDeclarator(_) => None, + KclValue::Plane { value } => Some(vec![value.artifact_id]), + KclValue::Face { value } => Some(vec![value.artifact_id]), + KclValue::Sketch { value } => Some(vec![value.artifact_id]), + KclValue::Sketches { value } => { + if recurse { + Some(value.iter().map(|sketch| sketch.artifact_id).collect()) + } else { + None + } + } + KclValue::Solid { value } => Some(vec![value.artifact_id]), + KclValue::Solids { value } => { + if recurse { + Some(value.iter().map(|solid| solid.artifact_id).collect()) + } else { + None + } + } + KclValue::Helix { value } => Some(vec![value.artifact_id]), + KclValue::ImportedGeometry(_) => None, + KclValue::Function { .. } => None, + KclValue::Module { .. } => None, + KclValue::KclNone { .. } => None, + KclValue::Tombstone { .. } => None, + } + } + pub(crate) fn function_def_source_range(&self) -> Option { let KclValue::Function { expression, .. } = self else { return None; From df369023b52c94a1b12585b719c5f977923251e7 Mon Sep 17 00:00:00 2001 From: Jonathan Tran Date: Fri, 31 Jan 2025 17:38:44 -0500 Subject: [PATCH 04/18] Update output since removing large values --- .../artifact_graph_example_code1/ops.snap | 1684 +------ .../ops.snap | 35 +- .../ops.snap | 3767 +-------------- .../basic_fillet_cube_close_opposite/ops.snap | 543 +-- .../kcl/tests/basic_fillet_cube_end/ops.snap | 474 +- .../basic_fillet_cube_next_adjacent/ops.snap | 552 +-- .../ops.snap | 552 +-- .../tests/basic_fillet_cube_start/ops.snap | 521 +-- .../circular_pattern3d_a_pattern/ops.snap | 1902 +------- src/wasm-lib/kcl/tests/cube/ops.snap | 41 +- .../kcl/tests/fillet-and-shell/ops.snap | 1957 +------- src/wasm-lib/kcl/tests/helix_ccw/ops.snap | 186 +- src/wasm-lib/kcl/tests/i_shape/ops.snap | 908 +--- .../tests/linear_pattern3d_a_pattern/ops.snap | 1848 +------- .../kcl/tests/pentagon_fillet_sugar/ops.snap | 2286 +-------- src/wasm-lib/kcl/tests/poop_chute/ops.snap | 527 +-- .../ops.snap | 4079 +---------------- .../sketch-on-chamfer-two-times/ops.snap | 4079 +---------------- .../kcl/tests/sketch_on_face/ops.snap | 291 +- .../ops.snap | 1613 +------ .../sketch_on_face_circle_tagged/ops.snap | 220 +- .../kcl/tests/sketch_on_face_end/ops.snap | 220 +- .../ops.snap | 220 +- .../kcl/tests/sketch_on_face_start/ops.snap | 220 +- 24 files changed, 202 insertions(+), 28523 deletions(-) diff --git a/src/wasm-lib/kcl/tests/artifact_graph_example_code1/ops.snap b/src/wasm-lib/kcl/tests/artifact_graph_example_code1/ops.snap index 4f127dc893..0a39640cdc 100644 --- a/src/wasm-lib/kcl/tests/artifact_graph_example_code1/ops.snap +++ b/src/wasm-lib/kcl/tests/artifact_graph_example_code1/ops.snap @@ -66,277 +66,9 @@ description: Operations executed artifact_graph_example_code1.kcl ], "type": "StdLibCall", "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 70, - 89, - 0 - ] - }, - "from": [ - -5.0, - -5.0 - ], - "tag": null, - "to": [ - -5.0, - 5.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 95, - 131, - 0 - ] - }, - "from": [ - -5.0, - 5.0 - ], - "tag": { - "end": 130, - "start": 124, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 5.55, - 5.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 137, - 171, - 0 - ] - }, - "from": [ - 5.55, - 5.0 - ], - "tag": { - "end": 170, - "start": 164, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 5.55, - -5.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 177, - 233, - 0 - ] - }, - "from": [ - 5.55, - -5.0 - ], - "tag": null, - "to": [ - -5.0, - -5.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 239, - 246, - 0 - ] - }, - "from": [ - -5.0, - -5.0 - ], - "tag": null, - "to": [ - -5.0, - -5.0 - ], - "type": "ToPoint" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - -5.0, - -5.0 - ], - "to": [ - -5.0, - -5.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 37, - 64, - 0 - ] - } - }, - "tags": { - "seg01": { - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 95, - 131, - 0 - ] - }, - "from": [ - -5.0, - 5.0 - ], - "tag": { - "end": 130, - "start": 124, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 5.550000000000001, - 5.0 - ], - "type": "ToPoint" - }, - "surface": null - }, - "__meta": [ - { - "sourceRange": [ - 124, - 130, - 0 - ] - } - ] - }, - "seg02": { - "type": "TagIdentifier", - "value": "seg02", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 137, - 171, - 0 - ] - }, - "from": [ - 5.550000000000001, - 5.0 - ], - "tag": { - "end": 170, - "start": 164, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 5.550000000000001, - -5.0 - ], - "type": "ToPoint" - }, - "surface": null - }, - "__meta": [ - { - "sourceRange": [ - 164, - 170, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 64, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 268, 277, @@ -347,107 +79,6 @@ description: Operations executed artifact_graph_example_code1.kcl { "labeledArgs": { "data": { - "value": { - "type": "Object", - "value": { - "radius": { - "type": "Number", - "value": 5.0, - "__meta": [ - { - "sourceRange": [ - 316, - 317, - 0 - ] - } - ] - }, - "tags": { - "type": "Array", - "value": [ - { - "type": "TagIdentifier", - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 95, - 131, - 0 - ] - }, - "from": [ - -5.0, - 5.0 - ], - "tag": { - "end": 130, - "start": 124, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 5.550000000000001, - 5.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 95, - 131, - 0 - ], - "tag": { - "end": 130, - "start": 124, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 124, - 130, - 0 - ] - } - ] - } - ], - "__meta": [ - { - "sourceRange": [ - 326, - 333, - 0 - ] - } - ] - } - }, - "__meta": [ - { - "sourceRange": [ - 305, - 335, - 0 - ] - } - ] - }, "sourceRange": [ 305, 335, @@ -455,383 +86,9 @@ description: Operations executed artifact_graph_example_code1.kcl ] }, "solid": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 70, - 89, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 95, - 131, - 0 - ], - "tag": { - "end": 130, - "start": 124, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 137, - 171, - 0 - ], - "tag": { - "end": 170, - "start": 164, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 177, - 233, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 70, - 89, - 0 - ] - }, - "from": [ - -5.0, - -5.0 - ], - "tag": null, - "to": [ - -5.0, - 5.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 95, - 131, - 0 - ] - }, - "from": [ - -5.0, - 5.0 - ], - "tag": { - "end": 130, - "start": 124, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 5.55, - 5.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 137, - 171, - 0 - ] - }, - "from": [ - 5.55, - 5.0 - ], - "tag": { - "end": 170, - "start": 164, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 5.55, - -5.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 177, - 233, - 0 - ] - }, - "from": [ - 5.55, - -5.0 - ], - "tag": null, - "to": [ - -5.0, - -5.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 239, - 246, - 0 - ] - }, - "from": [ - -5.0, - -5.0 - ], - "tag": null, - "to": [ - -5.0, - -5.0 - ], - "type": "ToPoint" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - -5.0, - -5.0 - ], - "to": [ - -5.0, - -5.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 37, - 64, - 0 - ] - } - }, - "tags": { - "seg01": { - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 95, - 131, - 0 - ] - }, - "from": [ - -5.0, - 5.0 - ], - "tag": { - "end": 130, - "start": 124, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 5.550000000000001, - 5.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 95, - 131, - 0 - ], - "tag": { - "end": 130, - "start": 124, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 124, - 130, - 0 - ] - } - ] - }, - "seg02": { - "type": "TagIdentifier", - "value": "seg02", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 137, - 171, - 0 - ] - }, - "from": [ - 5.550000000000001, - 5.0 - ], - "tag": { - "end": 170, - "start": 164, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 5.550000000000001, - -5.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 137, - 171, - 0 - ], - "tag": { - "end": 170, - "start": 164, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 164, - 170, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 64, - 0 - ] - } - ] - }, - "height": -10.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 64, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 337, 338, @@ -851,392 +108,9 @@ description: Operations executed artifact_graph_example_code1.kcl { "labeledArgs": { "data": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 70, - 89, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 95, - 131, - 0 - ], - "tag": { - "end": 130, - "start": 124, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 137, - 171, - 0 - ], - "tag": { - "end": 170, - "start": 164, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 177, - 233, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 70, - 89, - 0 - ] - }, - "from": [ - -5.0, - -5.0 - ], - "tag": null, - "to": [ - -5.0, - 5.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 95, - 131, - 0 - ] - }, - "from": [ - -5.0, - 5.0 - ], - "tag": { - "end": 130, - "start": 124, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 5.55, - 5.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 137, - 171, - 0 - ] - }, - "from": [ - 5.55, - 5.0 - ], - "tag": { - "end": 170, - "start": 164, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 5.55, - -5.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 177, - 233, - 0 - ] - }, - "from": [ - 5.55, - -5.0 - ], - "tag": null, - "to": [ - -5.0, - -5.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 239, - 246, - 0 - ] - }, - "from": [ - -5.0, - -5.0 - ], - "tag": null, - "to": [ - -5.0, - -5.0 - ], - "type": "ToPoint" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - -5.0, - -5.0 - ], - "to": [ - -5.0, - -5.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 37, - 64, - 0 - ] - } - }, - "tags": { - "seg01": { - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 95, - 131, - 0 - ] - }, - "from": [ - -5.0, - 5.0 - ], - "tag": { - "end": 130, - "start": 124, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 5.550000000000001, - 5.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 95, - 131, - 0 - ], - "tag": { - "end": 130, - "start": 124, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 124, - 130, - 0 - ] - } - ] - }, - "seg02": { - "type": "TagIdentifier", - "value": "seg02", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 137, - 171, - 0 - ] - }, - "from": [ - 5.550000000000001, - 5.0 - ], - "tag": { - "end": 170, - "start": 164, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 5.550000000000001, - -5.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 137, - 171, - 0 - ], - "tag": { - "end": 170, - "start": 164, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 164, - 170, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 64, - 0 - ] - } - ] - }, - "height": -10.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "edgeCuts": [ - { - "type": "fillet", - "id": "[uuid]", - "radius": 5.0, - "edgeId": "[uuid]", - "tag": null - } - ], - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 64, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 366, 376, @@ -1351,543 +225,9 @@ description: Operations executed artifact_graph_example_code1.kcl ], "type": "StdLibCall", "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 423, - 441, - 0 - ] - }, - "from": [ - -2.0, - -6.0 - ], - "tag": null, - "to": [ - 0.0, - -3.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 447, - 466, - 0 - ] - }, - "from": [ - 0.0, - -3.0 - ], - "tag": null, - "to": [ - 2.0, - -6.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 472, - 528, - 0 - ] - }, - "from": [ - 2.0, - -6.0 - ], - "tag": null, - "to": [ - -2.0, - -6.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 534, - 541, - 0 - ] - }, - "from": [ - -2.0, - -6.0 - ], - "tag": null, - "to": [ - -2.0, - -6.0 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "face", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "seg02", - "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 - }, - "solid": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 70, - 89, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 95, - 131, - 0 - ], - "tag": { - "end": 130, - "start": 124, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 137, - 171, - 0 - ], - "tag": { - "end": 170, - "start": 164, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 177, - 233, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 70, - 89, - 0 - ] - }, - "from": [ - -5.0, - -5.0 - ], - "tag": null, - "to": [ - -5.0, - 5.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 95, - 131, - 0 - ] - }, - "from": [ - -5.0, - 5.0 - ], - "tag": { - "end": 130, - "start": 124, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 5.55, - 5.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 137, - 171, - 0 - ] - }, - "from": [ - 5.55, - 5.0 - ], - "tag": { - "end": 170, - "start": 164, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 5.55, - -5.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 177, - 233, - 0 - ] - }, - "from": [ - 5.55, - -5.0 - ], - "tag": null, - "to": [ - -5.0, - -5.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 239, - 246, - 0 - ] - }, - "from": [ - -5.0, - -5.0 - ], - "tag": null, - "to": [ - -5.0, - -5.0 - ], - "type": "ToPoint" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - -5.0, - -5.0 - ], - "to": [ - -5.0, - -5.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 37, - 64, - 0 - ] - } - }, - "tags": { - "seg01": { - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 95, - 131, - 0 - ] - }, - "from": [ - -5.0, - 5.0 - ], - "tag": { - "end": 130, - "start": 124, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 5.550000000000001, - 5.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 95, - 131, - 0 - ], - "tag": { - "end": 130, - "start": 124, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 124, - 130, - 0 - ] - } - ] - }, - "seg02": { - "type": "TagIdentifier", - "value": "seg02", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 137, - 171, - 0 - ] - }, - "from": [ - 5.550000000000001, - 5.0 - ], - "tag": { - "end": 170, - "start": 164, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 5.550000000000001, - -5.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 137, - 171, - 0 - ], - "tag": { - "end": 170, - "start": 164, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 164, - 170, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 64, - 0 - ] - } - ] - }, - "height": -10.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "edgeCuts": [ - { - "type": "fillet", - "id": "[uuid]", - "radius": 5.0, - "edgeId": "[uuid]", - "tag": null - } - ], - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 64, - 0 - ] - } - ] - }, - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 352, - 384, - 0 - ] - } - ] - }, - "start": { - "from": [ - -2.0, - -6.0 - ], - "to": [ - -2.0, - -6.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 390, - 417, - 0 - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 390, - 417, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 563, 572, diff --git a/src/wasm-lib/kcl/tests/artifact_graph_example_code_offset_planes/ops.snap b/src/wasm-lib/kcl/tests/artifact_graph_example_code_offset_planes/ops.snap index c048421c82..10d661d173 100644 --- a/src/wasm-lib/kcl/tests/artifact_graph_example_code_offset_planes/ops.snap +++ b/src/wasm-lib/kcl/tests/artifact_graph_example_code_offset_planes/ops.snap @@ -186,38 +186,9 @@ description: Operations executed artifact_graph_example_code_offset_planes.kcl { "labeledArgs": { "data": { - "value": { - "type": "Plane", - "value": { - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "Custom", - "origin": { - "x": 0.0, - "y": 0.0, - "z": 20.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": [] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 172, 186, diff --git a/src/wasm-lib/kcl/tests/artifact_graph_sketch_on_face_etc/ops.snap b/src/wasm-lib/kcl/tests/artifact_graph_sketch_on_face_etc/ops.snap index b748b34c05..3f68431f8d 100644 --- a/src/wasm-lib/kcl/tests/artifact_graph_sketch_on_face_etc/ops.snap +++ b/src/wasm-lib/kcl/tests/artifact_graph_sketch_on_face_etc/ops.snap @@ -66,208 +66,9 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl ], "type": "StdLibCall", "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 68, - 86, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 4.0, - 8.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 92, - 125, - 0 - ] - }, - "from": [ - 4.0, - 8.0 - ], - "tag": { - "end": 124, - "start": 118, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 9.0, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 131, - 187, - 0 - ] - }, - "from": [ - 9.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 193, - 200, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 37, - 62, - 0 - ] - } - }, - "tags": { - "seg01": { - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 92, - 125, - 0 - ] - }, - "from": [ - 4.0, - 8.0 - ], - "tag": { - "end": 124, - "start": 118, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 9.0, - 0.0 - ], - "type": "ToPoint" - }, - "surface": null - }, - "__meta": [ - { - "sourceRange": [ - 118, - 124, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 62, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 222, 231, @@ -278,283 +79,9 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl { "labeledArgs": { "data": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 68, - 86, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 92, - 125, - 0 - ], - "tag": { - "end": 124, - "start": 118, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 131, - 187, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 68, - 86, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 4.0, - 8.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 92, - 125, - 0 - ] - }, - "from": [ - 4.0, - 8.0 - ], - "tag": { - "end": 124, - "start": 118, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 9.0, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 131, - 187, - 0 - ] - }, - "from": [ - 9.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 193, - 200, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 37, - 62, - 0 - ] - } - }, - "tags": { - "seg01": { - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 92, - 125, - 0 - ] - }, - "from": [ - 4.0, - 8.0 - ], - "tag": { - "end": 124, - "start": 118, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 9.0, - 0.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 92, - 125, - 0 - ], - "tag": { - "end": 124, - "start": 118, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 118, - 124, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 62, - 0 - ] - } - ] - }, - "height": 6.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 62, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 271, 281, @@ -669,434 +196,9 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl ], "type": "StdLibCall", "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 331, - 349, - 0 - ] - }, - "from": [ - -0.5, - 0.5 - ], - "tag": null, - "to": [ - 1.5, - 5.5 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 355, - 374, - 0 - ] - }, - "from": [ - 1.5, - 5.5 - ], - "tag": null, - "to": [ - 3.5, - 0.5 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 380, - 436, - 0 - ] - }, - "from": [ - 3.5, - 0.5 - ], - "tag": null, - "to": [ - -0.5, - 0.5 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 442, - 449, - 0 - ] - }, - "from": [ - -0.5, - 0.5 - ], - "tag": null, - "to": [ - -0.5, - 0.5 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "face", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "seg01", - "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 - }, - "solid": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 68, - 86, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 92, - 125, - 0 - ], - "tag": { - "end": 124, - "start": 118, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 131, - 187, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 68, - 86, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 4.0, - 8.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 92, - 125, - 0 - ] - }, - "from": [ - 4.0, - 8.0 - ], - "tag": { - "end": 124, - "start": 118, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 9.0, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 131, - 187, - 0 - ] - }, - "from": [ - 9.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 193, - 200, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 37, - 62, - 0 - ] - } - }, - "tags": { - "seg01": { - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 92, - 125, - 0 - ] - }, - "from": [ - 4.0, - 8.0 - ], - "tag": { - "end": 124, - "start": 118, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 9.0, - 0.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 92, - 125, - 0 - ], - "tag": { - "end": 124, - "start": 118, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 118, - 124, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 62, - 0 - ] - } - ] - }, - "height": 6.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 62, - 0 - ] - } - ] - }, - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 257, - 289, - 0 - ] - } - ] - }, - "start": { - "from": [ - -0.5, - 0.5 - ], - "to": [ - -0.5, - 0.5 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 295, - 325, - 0 - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 295, - 325, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 471, 480, @@ -1107,489 +209,9 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl { "labeledArgs": { "data": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 331, - 349, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 355, - 374, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 380, - 436, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 331, - 349, - 0 - ] - }, - "from": [ - -0.5, - 0.5 - ], - "tag": null, - "to": [ - 1.5, - 5.5 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 355, - 374, - 0 - ] - }, - "from": [ - 1.5, - 5.5 - ], - "tag": null, - "to": [ - 3.5, - 0.5 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 380, - 436, - 0 - ] - }, - "from": [ - 3.5, - 0.5 - ], - "tag": null, - "to": [ - -0.5, - 0.5 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 442, - 449, - 0 - ] - }, - "from": [ - -0.5, - 0.5 - ], - "tag": null, - "to": [ - -0.5, - 0.5 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "face", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "seg01", - "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 - }, - "solid": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 68, - 86, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 92, - 125, - 0 - ], - "tag": { - "end": 124, - "start": 118, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 131, - 187, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 68, - 86, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 4.0, - 8.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 92, - 125, - 0 - ] - }, - "from": [ - 4.0, - 8.0 - ], - "tag": { - "end": 124, - "start": 118, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 9.0, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 131, - 187, - 0 - ] - }, - "from": [ - 9.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 193, - 200, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 37, - 62, - 0 - ] - } - }, - "tags": { - "seg01": { - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 92, - 125, - 0 - ] - }, - "from": [ - 4.0, - 8.0 - ], - "tag": { - "end": 124, - "start": 118, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 9.0, - 0.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 92, - 125, - 0 - ], - "tag": { - "end": 124, - "start": 118, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 118, - 124, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 62, - 0 - ] - } - ] - }, - "height": 6.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 62, - 0 - ] - } - ] - }, - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 257, - 289, - 0 - ] - } - ] - }, - "start": { - "from": [ - -0.5, - 0.5 - ], - "to": [ - -0.5, - 0.5 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 295, - 325, - 0 - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 295, - 325, - 0 - ] - } - ] - }, - "height": 5.0, - "startCapId": null, - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 295, - 325, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 520, 530, @@ -1657,691 +279,9 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl ], "type": "StdLibCall", "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 577, - 611, - 0 - ] - }, - "from": [ - 1.0, - 1.5 - ], - "tag": { - "end": 610, - "start": 604, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 1.5, - 3.5 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 617, - 636, - 0 - ] - }, - "from": [ - 1.5, - 3.5 - ], - "tag": null, - "to": [ - 2.5, - 1.5 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 642, - 698, - 0 - ] - }, - "from": [ - 2.5, - 1.5 - ], - "tag": null, - "to": [ - 1.0, - 1.5 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 704, - 711, - 0 - ] - }, - "from": [ - 1.0, - 1.5 - ], - "tag": null, - "to": [ - 1.0, - 1.5 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "face", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "end", - "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 - }, - "solid": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 331, - 349, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 355, - 374, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 380, - 436, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 331, - 349, - 0 - ] - }, - "from": [ - -0.5, - 0.5 - ], - "tag": null, - "to": [ - 1.5, - 5.5 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 355, - 374, - 0 - ] - }, - "from": [ - 1.5, - 5.5 - ], - "tag": null, - "to": [ - 3.5, - 0.5 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 380, - 436, - 0 - ] - }, - "from": [ - 3.5, - 0.5 - ], - "tag": null, - "to": [ - -0.5, - 0.5 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 442, - 449, - 0 - ] - }, - "from": [ - -0.5, - 0.5 - ], - "tag": null, - "to": [ - -0.5, - 0.5 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "face", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "seg01", - "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 - }, - "solid": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 68, - 86, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 92, - 125, - 0 - ], - "tag": { - "end": 124, - "start": 118, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 131, - 187, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 68, - 86, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 4.0, - 8.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 92, - 125, - 0 - ] - }, - "from": [ - 4.0, - 8.0 - ], - "tag": { - "end": 124, - "start": 118, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 9.0, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 131, - 187, - 0 - ] - }, - "from": [ - 9.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 193, - 200, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 37, - 62, - 0 - ] - } - }, - "tags": { - "seg01": { - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 92, - 125, - 0 - ] - }, - "from": [ - 4.0, - 8.0 - ], - "tag": { - "end": 124, - "start": 118, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 9.0, - 0.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 92, - 125, - 0 - ], - "tag": { - "end": 124, - "start": 118, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 118, - 124, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 62, - 0 - ] - } - ] - }, - "height": 6.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 62, - 0 - ] - } - ] - }, - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 257, - 289, - 0 - ] - } - ] - }, - "start": { - "from": [ - -0.5, - 0.5 - ], - "to": [ - -0.5, - 0.5 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 295, - 325, - 0 - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 295, - 325, - 0 - ] - } - ] - }, - "height": 5.0, - "startCapId": null, - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 295, - 325, - 0 - ] - } - ] - }, - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 506, - 538, - 0 - ] - } - ] - }, - "start": { - "from": [ - 1.0, - 1.5 - ], - "to": [ - 1.0, - 1.5 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 544, - 571, - 0 - ] - } - }, - "tags": { - "seg02": { - "type": "TagIdentifier", - "value": "seg02", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 577, - 611, - 0 - ] - }, - "from": [ - 1.0, - 1.5 - ], - "tag": { - "end": 610, - "start": 604, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 1.5, - 3.5 - ], - "type": "ToPoint" - }, - "surface": null - }, - "__meta": [ - { - "sourceRange": [ - 604, - 610, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 544, - 571, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 733, 742, @@ -2352,766 +292,9 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl { "labeledArgs": { "data": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 577, - 611, - 0 - ], - "tag": { - "end": 610, - "start": 604, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 617, - 636, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 642, - 698, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 577, - 611, - 0 - ] - }, - "from": [ - 1.0, - 1.5 - ], - "tag": { - "end": 610, - "start": 604, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 1.5, - 3.5 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 617, - 636, - 0 - ] - }, - "from": [ - 1.5, - 3.5 - ], - "tag": null, - "to": [ - 2.5, - 1.5 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 642, - 698, - 0 - ] - }, - "from": [ - 2.5, - 1.5 - ], - "tag": null, - "to": [ - 1.0, - 1.5 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 704, - 711, - 0 - ] - }, - "from": [ - 1.0, - 1.5 - ], - "tag": null, - "to": [ - 1.0, - 1.5 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "face", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "end", - "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 - }, - "solid": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 331, - 349, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 355, - 374, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 380, - 436, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 331, - 349, - 0 - ] - }, - "from": [ - -0.5, - 0.5 - ], - "tag": null, - "to": [ - 1.5, - 5.5 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 355, - 374, - 0 - ] - }, - "from": [ - 1.5, - 5.5 - ], - "tag": null, - "to": [ - 3.5, - 0.5 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 380, - 436, - 0 - ] - }, - "from": [ - 3.5, - 0.5 - ], - "tag": null, - "to": [ - -0.5, - 0.5 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 442, - 449, - 0 - ] - }, - "from": [ - -0.5, - 0.5 - ], - "tag": null, - "to": [ - -0.5, - 0.5 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "face", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "seg01", - "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 - }, - "solid": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 68, - 86, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 92, - 125, - 0 - ], - "tag": { - "end": 124, - "start": 118, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 131, - 187, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 68, - 86, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 4.0, - 8.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 92, - 125, - 0 - ] - }, - "from": [ - 4.0, - 8.0 - ], - "tag": { - "end": 124, - "start": 118, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 9.0, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 131, - 187, - 0 - ] - }, - "from": [ - 9.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 193, - 200, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 37, - 62, - 0 - ] - } - }, - "tags": { - "seg01": { - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 92, - 125, - 0 - ] - }, - "from": [ - 4.0, - 8.0 - ], - "tag": { - "end": 124, - "start": 118, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 9.0, - 0.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 92, - 125, - 0 - ], - "tag": { - "end": 124, - "start": 118, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 118, - 124, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 62, - 0 - ] - } - ] - }, - "height": 6.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 62, - 0 - ] - } - ] - }, - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 257, - 289, - 0 - ] - } - ] - }, - "start": { - "from": [ - -0.5, - 0.5 - ], - "to": [ - -0.5, - 0.5 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 295, - 325, - 0 - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 295, - 325, - 0 - ] - } - ] - }, - "height": 5.0, - "startCapId": null, - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 295, - 325, - 0 - ] - } - ] - }, - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 506, - 538, - 0 - ] - } - ] - }, - "start": { - "from": [ - 1.0, - 1.5 - ], - "to": [ - 1.0, - 1.5 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 544, - 571, - 0 - ] - } - }, - "tags": { - "seg02": { - "type": "TagIdentifier", - "value": "seg02", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 577, - 611, - 0 - ] - }, - "from": [ - 1.0, - 1.5 - ], - "tag": { - "end": 610, - "start": 604, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 1.5, - 3.5 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 577, - 611, - 0 - ], - "tag": { - "end": 610, - "start": 604, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 604, - 610, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 544, - 571, - 0 - ] - } - ] - }, - "height": 4.0, - "startCapId": null, - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 544, - 571, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 782, 792, @@ -3226,917 +409,9 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl ], "type": "StdLibCall", "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 839, - 859, - 0 - ] - }, - "from": [ - -3.0, - 14.0 - ], - "tag": null, - "to": [ - -2.5, - 15.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 865, - 886, - 0 - ] - }, - "from": [ - -2.5, - 15.0 - ], - "tag": null, - "to": [ - -2.0, - 13.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 892, - 948, - 0 - ] - }, - "from": [ - -2.0, - 13.0 - ], - "tag": null, - "to": [ - -3.0, - 14.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 954, - 961, - 0 - ] - }, - "from": [ - -3.0, - 14.0 - ], - "tag": null, - "to": [ - -3.0, - 14.0 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "face", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "seg02", - "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 - }, - "solid": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 577, - 611, - 0 - ], - "tag": { - "end": 610, - "start": 604, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 617, - 636, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 642, - 698, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 577, - 611, - 0 - ] - }, - "from": [ - 1.0, - 1.5 - ], - "tag": { - "end": 610, - "start": 604, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 1.5, - 3.5 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 617, - 636, - 0 - ] - }, - "from": [ - 1.5, - 3.5 - ], - "tag": null, - "to": [ - 2.5, - 1.5 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 642, - 698, - 0 - ] - }, - "from": [ - 2.5, - 1.5 - ], - "tag": null, - "to": [ - 1.0, - 1.5 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 704, - 711, - 0 - ] - }, - "from": [ - 1.0, - 1.5 - ], - "tag": null, - "to": [ - 1.0, - 1.5 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "face", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "end", - "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 - }, - "solid": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 331, - 349, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 355, - 374, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 380, - 436, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 331, - 349, - 0 - ] - }, - "from": [ - -0.5, - 0.5 - ], - "tag": null, - "to": [ - 1.5, - 5.5 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 355, - 374, - 0 - ] - }, - "from": [ - 1.5, - 5.5 - ], - "tag": null, - "to": [ - 3.5, - 0.5 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 380, - 436, - 0 - ] - }, - "from": [ - 3.5, - 0.5 - ], - "tag": null, - "to": [ - -0.5, - 0.5 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 442, - 449, - 0 - ] - }, - "from": [ - -0.5, - 0.5 - ], - "tag": null, - "to": [ - -0.5, - 0.5 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "face", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "seg01", - "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 - }, - "solid": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 68, - 86, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 92, - 125, - 0 - ], - "tag": { - "end": 124, - "start": 118, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 131, - 187, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 68, - 86, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 4.0, - 8.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 92, - 125, - 0 - ] - }, - "from": [ - 4.0, - 8.0 - ], - "tag": { - "end": 124, - "start": 118, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 9.0, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 131, - 187, - 0 - ] - }, - "from": [ - 9.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 193, - 200, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 37, - 62, - 0 - ] - } - }, - "tags": { - "seg01": { - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 92, - 125, - 0 - ] - }, - "from": [ - 4.0, - 8.0 - ], - "tag": { - "end": 124, - "start": 118, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 9.0, - 0.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 92, - 125, - 0 - ], - "tag": { - "end": 124, - "start": 118, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 118, - 124, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 62, - 0 - ] - } - ] - }, - "height": 6.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 62, - 0 - ] - } - ] - }, - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 257, - 289, - 0 - ] - } - ] - }, - "start": { - "from": [ - -0.5, - 0.5 - ], - "to": [ - -0.5, - 0.5 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 295, - 325, - 0 - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 295, - 325, - 0 - ] - } - ] - }, - "height": 5.0, - "startCapId": null, - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 295, - 325, - 0 - ] - } - ] - }, - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 506, - 538, - 0 - ] - } - ] - }, - "start": { - "from": [ - 1.0, - 1.5 - ], - "to": [ - 1.0, - 1.5 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 544, - 571, - 0 - ] - } - }, - "tags": { - "seg02": { - "type": "TagIdentifier", - "value": "seg02", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 577, - 611, - 0 - ] - }, - "from": [ - 1.0, - 1.5 - ], - "tag": { - "end": 610, - "start": 604, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 1.5, - 3.5 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 577, - 611, - 0 - ], - "tag": { - "end": 610, - "start": 604, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 604, - 610, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 544, - 571, - 0 - ] - } - ] - }, - "height": 4.0, - "startCapId": null, - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 544, - 571, - 0 - ] - } - ] - }, - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 768, - 800, - 0 - ] - } - ] - }, - "start": { - "from": [ - -3.0, - 14.0 - ], - "to": [ - -3.0, - 14.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 806, - 833, - 0 - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 806, - 833, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 983, 992, diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_close_opposite/ops.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_close_opposite/ops.snap index aadb7bed43..c09cc2ad37 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_close_opposite/ops.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_close_opposite/ops.snap @@ -70,120 +70,6 @@ description: Operations executed basic_fillet_cube_close_opposite.kcl { "labeledArgs": { "data": { - "value": { - "type": "Object", - "value": { - "radius": { - "type": "Number", - "value": 2.0, - "__meta": [ - { - "sourceRange": [ - 248, - 249, - 0 - ] - } - ] - }, - "tags": { - "type": "Array", - "value": [ - { - "type": "TagIdentifier", - "type": "TagIdentifier", - "value": "thing3", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 171, - 191, - 0 - ] - }, - "from": [ - 10.0, - 0.0 - ], - "tag": { - "end": 190, - "start": 183, - "type": "TagDeclarator", - "value": "thing3" - }, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 171, - 191, - 0 - ], - "tag": { - "end": 190, - "start": 183, - "type": "TagDeclarator", - "value": "thing3" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 183, - 190, - 0 - ] - } - ] - }, - { - "type": "Uuid", - "value": "[uuid]", - "__meta": [ - { - "sourceRange": [ - 274, - 297, - 0 - ] - } - ] - } - ], - "__meta": [ - { - "sourceRange": [ - 265, - 298, - 0 - ] - } - ] - } - }, - "__meta": [ - { - "sourceRange": [ - 230, - 305, - 0 - ] - } - ] - }, "sourceRange": [ 230, 305, @@ -191,432 +77,9 @@ description: Operations executed basic_fillet_cube_close_opposite.kcl ] }, "solid": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 66, - 99, - 0 - ], - "tag": { - "end": 98, - "start": 92, - "type": "TagDeclarator", - "value": "thing" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 105, - 124, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 130, - 165, - 0 - ], - "tag": { - "end": 164, - "start": 157, - "type": "TagDeclarator", - "value": "thing2" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 171, - 191, - 0 - ], - "tag": { - "end": 190, - "start": 183, - "type": "TagDeclarator", - "value": "thing3" - }, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 66, - 99, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": { - "end": 98, - "start": 92, - "type": "TagDeclarator", - "value": "thing" - }, - "to": [ - 0.0, - 10.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 124, - 0 - ] - }, - "from": [ - 0.0, - 10.0 - ], - "tag": null, - "to": [ - 10.0, - 10.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 130, - 165, - 0 - ] - }, - "from": [ - 10.0, - 10.0 - ], - "tag": { - "end": 164, - "start": 157, - "type": "TagDeclarator", - "value": "thing2" - }, - "to": [ - 10.0, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 171, - 191, - 0 - ] - }, - "from": [ - 10.0, - 0.0 - ], - "tag": { - "end": 190, - "start": 183, - "type": "TagDeclarator", - "value": "thing3" - }, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 35, - 60, - 0 - ] - } - }, - "tags": { - "thing": { - "type": "TagIdentifier", - "value": "thing", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 66, - 99, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": { - "end": 98, - "start": 92, - "type": "TagDeclarator", - "value": "thing" - }, - "to": [ - 0.0, - 10.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 66, - 99, - 0 - ], - "tag": { - "end": 98, - "start": 92, - "type": "TagDeclarator", - "value": "thing" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 92, - 98, - 0 - ] - } - ] - }, - "thing2": { - "type": "TagIdentifier", - "value": "thing2", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 130, - 165, - 0 - ] - }, - "from": [ - 10.0, - 10.0 - ], - "tag": { - "end": 164, - "start": 157, - "type": "TagDeclarator", - "value": "thing2" - }, - "to": [ - 10.0, - 0.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 130, - 165, - 0 - ], - "tag": { - "end": 164, - "start": 157, - "type": "TagDeclarator", - "value": "thing2" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 157, - 164, - 0 - ] - } - ] - }, - "thing3": { - "type": "TagIdentifier", - "value": "thing3", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 171, - 191, - 0 - ] - }, - "from": [ - 10.0, - 0.0 - ], - "tag": { - "end": 190, - "start": 183, - "type": "TagDeclarator", - "value": "thing3" - }, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 171, - 191, - 0 - ], - "tag": { - "end": 190, - "start": 183, - "type": "TagDeclarator", - "value": "thing3" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 183, - 190, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 35, - 60, - 0 - ] - } - ] - }, - "height": 10.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 35, - 60, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 307, 308, diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_end/ops.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_end/ops.snap index 310c39f2a8..0f6423b2fe 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_end/ops.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_end/ops.snap @@ -70,120 +70,6 @@ description: Operations executed basic_fillet_cube_end.kcl { "labeledArgs": { "data": { - "value": { - "type": "Object", - "value": { - "radius": { - "type": "Number", - "value": 2.0, - "__meta": [ - { - "sourceRange": [ - 236, - 237, - 0 - ] - } - ] - }, - "tags": { - "type": "Array", - "value": [ - { - "type": "TagIdentifier", - "type": "TagIdentifier", - "value": "thing", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 66, - 99, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": { - "end": 98, - "start": 92, - "type": "TagDeclarator", - "value": "thing" - }, - "to": [ - 0.0, - 10.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 66, - 99, - 0 - ], - "tag": { - "end": 98, - "start": 92, - "type": "TagDeclarator", - "value": "thing" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 92, - 98, - 0 - ] - } - ] - }, - { - "type": "Uuid", - "value": "[uuid]", - "__meta": [ - { - "sourceRange": [ - 261, - 283, - 0 - ] - } - ] - } - ], - "__meta": [ - { - "sourceRange": [ - 253, - 284, - 0 - ] - } - ] - } - }, - "__meta": [ - { - "sourceRange": [ - 218, - 291, - 0 - ] - } - ] - }, "sourceRange": [ 218, 291, @@ -191,363 +77,9 @@ description: Operations executed basic_fillet_cube_end.kcl ] }, "solid": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 66, - 99, - 0 - ], - "tag": { - "end": 98, - "start": 92, - "type": "TagDeclarator", - "value": "thing" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 105, - 124, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 130, - 165, - 0 - ], - "tag": { - "end": 164, - "start": 157, - "type": "TagDeclarator", - "value": "thing2" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 171, - 179, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 66, - 99, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": { - "end": 98, - "start": 92, - "type": "TagDeclarator", - "value": "thing" - }, - "to": [ - 0.0, - 10.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 124, - 0 - ] - }, - "from": [ - 0.0, - 10.0 - ], - "tag": null, - "to": [ - 10.0, - 10.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 130, - 165, - 0 - ] - }, - "from": [ - 10.0, - 10.0 - ], - "tag": { - "end": 164, - "start": 157, - "type": "TagDeclarator", - "value": "thing2" - }, - "to": [ - 10.0, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 171, - 179, - 0 - ] - }, - "from": [ - 10.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 35, - 60, - 0 - ] - } - }, - "tags": { - "thing": { - "type": "TagIdentifier", - "value": "thing", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 66, - 99, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": { - "end": 98, - "start": 92, - "type": "TagDeclarator", - "value": "thing" - }, - "to": [ - 0.0, - 10.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 66, - 99, - 0 - ], - "tag": { - "end": 98, - "start": 92, - "type": "TagDeclarator", - "value": "thing" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 92, - 98, - 0 - ] - } - ] - }, - "thing2": { - "type": "TagIdentifier", - "value": "thing2", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 130, - 165, - 0 - ] - }, - "from": [ - 10.0, - 10.0 - ], - "tag": { - "end": 164, - "start": 157, - "type": "TagDeclarator", - "value": "thing2" - }, - "to": [ - 10.0, - 0.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 130, - 165, - 0 - ], - "tag": { - "end": 164, - "start": 157, - "type": "TagDeclarator", - "value": "thing2" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 157, - 164, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 35, - 60, - 0 - ] - } - ] - }, - "height": 10.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 35, - 60, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 293, 294, diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_next_adjacent/ops.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_next_adjacent/ops.snap index 9ac817670e..275d55b561 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_next_adjacent/ops.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_next_adjacent/ops.snap @@ -70,60 +70,6 @@ description: Operations executed basic_fillet_cube_next_adjacent.kcl { "labeledArgs": { "data": { - "value": { - "type": "Object", - "value": { - "radius": { - "type": "Number", - "value": 2.0, - "__meta": [ - { - "sourceRange": [ - 263, - 264, - 0 - ] - } - ] - }, - "tags": { - "type": "Array", - "value": [ - { - "type": "Uuid", - "value": "[uuid]", - "__meta": [ - { - "sourceRange": [ - 281, - 308, - 0 - ] - } - ] - } - ], - "__meta": [ - { - "sourceRange": [ - 280, - 309, - 0 - ] - } - ] - } - }, - "__meta": [ - { - "sourceRange": [ - 245, - 316, - 0 - ] - } - ] - }, "sourceRange": [ 245, 316, @@ -131,501 +77,9 @@ description: Operations executed basic_fillet_cube_next_adjacent.kcl ] }, "solid": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 66, - 99, - 0 - ], - "tag": { - "end": 98, - "start": 92, - "type": "TagDeclarator", - "value": "thing" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 105, - 139, - 0 - ], - "tag": { - "end": 138, - "start": 131, - "type": "TagDeclarator", - "value": "thing1" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 145, - 180, - 0 - ], - "tag": { - "end": 179, - "start": 172, - "type": "TagDeclarator", - "value": "thing2" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 186, - 206, - 0 - ], - "tag": { - "end": 205, - "start": 198, - "type": "TagDeclarator", - "value": "thing3" - }, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 66, - 99, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": { - "end": 98, - "start": 92, - "type": "TagDeclarator", - "value": "thing" - }, - "to": [ - 0.0, - 10.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 139, - 0 - ] - }, - "from": [ - 0.0, - 10.0 - ], - "tag": { - "end": 138, - "start": 131, - "type": "TagDeclarator", - "value": "thing1" - }, - "to": [ - 10.0, - 10.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 145, - 180, - 0 - ] - }, - "from": [ - 10.0, - 10.0 - ], - "tag": { - "end": 179, - "start": 172, - "type": "TagDeclarator", - "value": "thing2" - }, - "to": [ - 10.0, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 186, - 206, - 0 - ] - }, - "from": [ - 10.0, - 0.0 - ], - "tag": { - "end": 205, - "start": 198, - "type": "TagDeclarator", - "value": "thing3" - }, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 35, - 60, - 0 - ] - } - }, - "tags": { - "thing": { - "type": "TagIdentifier", - "value": "thing", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 66, - 99, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": { - "end": 98, - "start": 92, - "type": "TagDeclarator", - "value": "thing" - }, - "to": [ - 0.0, - 10.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 66, - 99, - 0 - ], - "tag": { - "end": 98, - "start": 92, - "type": "TagDeclarator", - "value": "thing" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 92, - 98, - 0 - ] - } - ] - }, - "thing1": { - "type": "TagIdentifier", - "value": "thing1", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 139, - 0 - ] - }, - "from": [ - 0.0, - 10.0 - ], - "tag": { - "end": 138, - "start": 131, - "type": "TagDeclarator", - "value": "thing1" - }, - "to": [ - 10.0, - 10.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 105, - 139, - 0 - ], - "tag": { - "end": 138, - "start": 131, - "type": "TagDeclarator", - "value": "thing1" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 131, - 138, - 0 - ] - } - ] - }, - "thing2": { - "type": "TagIdentifier", - "value": "thing2", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 145, - 180, - 0 - ] - }, - "from": [ - 10.0, - 10.0 - ], - "tag": { - "end": 179, - "start": 172, - "type": "TagDeclarator", - "value": "thing2" - }, - "to": [ - 10.0, - 0.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 145, - 180, - 0 - ], - "tag": { - "end": 179, - "start": 172, - "type": "TagDeclarator", - "value": "thing2" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 172, - 179, - 0 - ] - } - ] - }, - "thing3": { - "type": "TagIdentifier", - "value": "thing3", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 186, - 206, - 0 - ] - }, - "from": [ - 10.0, - 0.0 - ], - "tag": { - "end": 205, - "start": 198, - "type": "TagDeclarator", - "value": "thing3" - }, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 186, - 206, - 0 - ], - "tag": { - "end": 205, - "start": 198, - "type": "TagDeclarator", - "value": "thing3" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 198, - 205, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 35, - 60, - 0 - ] - } - ] - }, - "height": 10.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 35, - 60, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 318, 319, diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_previous_adjacent/ops.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_previous_adjacent/ops.snap index 796c87713d..699b0b3270 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_previous_adjacent/ops.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_previous_adjacent/ops.snap @@ -70,60 +70,6 @@ description: Operations executed basic_fillet_cube_previous_adjacent.kcl { "labeledArgs": { "data": { - "value": { - "type": "Object", - "value": { - "radius": { - "type": "Number", - "value": 2.0, - "__meta": [ - { - "sourceRange": [ - 263, - 264, - 0 - ] - } - ] - }, - "tags": { - "type": "Array", - "value": [ - { - "type": "Uuid", - "value": "[uuid]", - "__meta": [ - { - "sourceRange": [ - 281, - 312, - 0 - ] - } - ] - } - ], - "__meta": [ - { - "sourceRange": [ - 280, - 313, - 0 - ] - } - ] - } - }, - "__meta": [ - { - "sourceRange": [ - 245, - 320, - 0 - ] - } - ] - }, "sourceRange": [ 245, 320, @@ -131,501 +77,9 @@ description: Operations executed basic_fillet_cube_previous_adjacent.kcl ] }, "solid": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 66, - 99, - 0 - ], - "tag": { - "end": 98, - "start": 92, - "type": "TagDeclarator", - "value": "thing" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 105, - 139, - 0 - ], - "tag": { - "end": 138, - "start": 131, - "type": "TagDeclarator", - "value": "thing1" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 145, - 180, - 0 - ], - "tag": { - "end": 179, - "start": 172, - "type": "TagDeclarator", - "value": "thing2" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 186, - 206, - 0 - ], - "tag": { - "end": 205, - "start": 198, - "type": "TagDeclarator", - "value": "thing3" - }, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 66, - 99, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": { - "end": 98, - "start": 92, - "type": "TagDeclarator", - "value": "thing" - }, - "to": [ - 0.0, - 10.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 139, - 0 - ] - }, - "from": [ - 0.0, - 10.0 - ], - "tag": { - "end": 138, - "start": 131, - "type": "TagDeclarator", - "value": "thing1" - }, - "to": [ - 10.0, - 10.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 145, - 180, - 0 - ] - }, - "from": [ - 10.0, - 10.0 - ], - "tag": { - "end": 179, - "start": 172, - "type": "TagDeclarator", - "value": "thing2" - }, - "to": [ - 10.0, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 186, - 206, - 0 - ] - }, - "from": [ - 10.0, - 0.0 - ], - "tag": { - "end": 205, - "start": 198, - "type": "TagDeclarator", - "value": "thing3" - }, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 35, - 60, - 0 - ] - } - }, - "tags": { - "thing": { - "type": "TagIdentifier", - "value": "thing", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 66, - 99, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": { - "end": 98, - "start": 92, - "type": "TagDeclarator", - "value": "thing" - }, - "to": [ - 0.0, - 10.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 66, - 99, - 0 - ], - "tag": { - "end": 98, - "start": 92, - "type": "TagDeclarator", - "value": "thing" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 92, - 98, - 0 - ] - } - ] - }, - "thing1": { - "type": "TagIdentifier", - "value": "thing1", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 139, - 0 - ] - }, - "from": [ - 0.0, - 10.0 - ], - "tag": { - "end": 138, - "start": 131, - "type": "TagDeclarator", - "value": "thing1" - }, - "to": [ - 10.0, - 10.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 105, - 139, - 0 - ], - "tag": { - "end": 138, - "start": 131, - "type": "TagDeclarator", - "value": "thing1" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 131, - 138, - 0 - ] - } - ] - }, - "thing2": { - "type": "TagIdentifier", - "value": "thing2", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 145, - 180, - 0 - ] - }, - "from": [ - 10.0, - 10.0 - ], - "tag": { - "end": 179, - "start": 172, - "type": "TagDeclarator", - "value": "thing2" - }, - "to": [ - 10.0, - 0.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 145, - 180, - 0 - ], - "tag": { - "end": 179, - "start": 172, - "type": "TagDeclarator", - "value": "thing2" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 172, - 179, - 0 - ] - } - ] - }, - "thing3": { - "type": "TagIdentifier", - "value": "thing3", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 186, - 206, - 0 - ] - }, - "from": [ - 10.0, - 0.0 - ], - "tag": { - "end": 205, - "start": 198, - "type": "TagDeclarator", - "value": "thing3" - }, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 186, - 206, - 0 - ], - "tag": { - "end": 205, - "start": 198, - "type": "TagDeclarator", - "value": "thing3" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 198, - 205, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 35, - 60, - 0 - ] - } - ] - }, - "height": 10.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 35, - 60, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 322, 323, diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_start/ops.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_start/ops.snap index 9570874cbc..26135ddf0a 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_start/ops.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_start/ops.snap @@ -70,167 +70,6 @@ description: Operations executed basic_fillet_cube_start.kcl { "labeledArgs": { "data": { - "value": { - "type": "Object", - "value": { - "radius": { - "type": "Number", - "value": 2.0, - "__meta": [ - { - "sourceRange": [ - 229, - 230, - 0 - ] - } - ] - }, - "tags": { - "type": "Array", - "value": [ - { - "type": "TagIdentifier", - "type": "TagIdentifier", - "value": "thing", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 66, - 99, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": { - "end": 98, - "start": 92, - "type": "TagDeclarator", - "value": "thing" - }, - "to": [ - 0.0, - 10.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 66, - 99, - 0 - ], - "tag": { - "end": 98, - "start": 92, - "type": "TagDeclarator", - "value": "thing" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 92, - 98, - 0 - ] - } - ] - }, - { - "type": "TagIdentifier", - "type": "TagIdentifier", - "value": "thing2", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 130, - 165, - 0 - ] - }, - "from": [ - 10.0, - 10.0 - ], - "tag": { - "end": 164, - "start": 157, - "type": "TagDeclarator", - "value": "thing2" - }, - "to": [ - 10.0, - 0.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 130, - 165, - 0 - ], - "tag": { - "end": 164, - "start": 157, - "type": "TagDeclarator", - "value": "thing2" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 157, - 164, - 0 - ] - } - ] - } - ], - "__meta": [ - { - "sourceRange": [ - 239, - 254, - 0 - ] - } - ] - } - }, - "__meta": [ - { - "sourceRange": [ - 218, - 256, - 0 - ] - } - ] - }, "sourceRange": [ 218, 256, @@ -238,363 +77,9 @@ description: Operations executed basic_fillet_cube_start.kcl ] }, "solid": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 66, - 99, - 0 - ], - "tag": { - "end": 98, - "start": 92, - "type": "TagDeclarator", - "value": "thing" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 105, - 124, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 130, - 165, - 0 - ], - "tag": { - "end": 164, - "start": 157, - "type": "TagDeclarator", - "value": "thing2" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 171, - 179, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 66, - 99, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": { - "end": 98, - "start": 92, - "type": "TagDeclarator", - "value": "thing" - }, - "to": [ - 0.0, - 10.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 124, - 0 - ] - }, - "from": [ - 0.0, - 10.0 - ], - "tag": null, - "to": [ - 10.0, - 10.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 130, - 165, - 0 - ] - }, - "from": [ - 10.0, - 10.0 - ], - "tag": { - "end": 164, - "start": 157, - "type": "TagDeclarator", - "value": "thing2" - }, - "to": [ - 10.0, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 171, - 179, - 0 - ] - }, - "from": [ - 10.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 35, - 60, - 0 - ] - } - }, - "tags": { - "thing": { - "type": "TagIdentifier", - "value": "thing", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 66, - 99, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": { - "end": 98, - "start": 92, - "type": "TagDeclarator", - "value": "thing" - }, - "to": [ - 0.0, - 10.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 66, - 99, - 0 - ], - "tag": { - "end": 98, - "start": 92, - "type": "TagDeclarator", - "value": "thing" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 92, - 98, - 0 - ] - } - ] - }, - "thing2": { - "type": "TagIdentifier", - "value": "thing2", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 130, - 165, - 0 - ] - }, - "from": [ - 10.0, - 10.0 - ], - "tag": { - "end": 164, - "start": 157, - "type": "TagDeclarator", - "value": "thing2" - }, - "to": [ - 10.0, - 0.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 130, - 165, - 0 - ], - "tag": { - "end": 164, - "start": 157, - "type": "TagDeclarator", - "value": "thing2" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 157, - 164, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 35, - 60, - 0 - ] - } - ] - }, - "height": 10.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 35, - 60, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 258, 259, diff --git a/src/wasm-lib/kcl/tests/circular_pattern3d_a_pattern/ops.snap b/src/wasm-lib/kcl/tests/circular_pattern3d_a_pattern/ops.snap index b27d563d3b..d9ce63cfbe 100644 --- a/src/wasm-lib/kcl/tests/circular_pattern3d_a_pattern/ops.snap +++ b/src/wasm-lib/kcl/tests/circular_pattern3d_a_pattern/ops.snap @@ -70,59 +70,7 @@ description: Operations executed circular_pattern3d_a_pattern.kcl { "labeledArgs": { "axis": { - "value": { - "type": "Array", - "value": [ - { - "type": "Number", - "value": 1.0, - "__meta": [ - { - "sourceRange": [ - 233, - 234, - 0 - ] - } - ] - }, - { - "type": "Number", - "value": 0.0, - "__meta": [ - { - "sourceRange": [ - 236, - 237, - 0 - ] - } - ] - }, - { - "type": "Number", - "value": 0.0, - "__meta": [ - { - "sourceRange": [ - 239, - 240, - 0 - ] - } - ] - } - ], - "__meta": [ - { - "sourceRange": [ - 232, - 241, - 0 - ] - } - ] - }, + "artifactIds": [], "sourceRange": [ 232, 241, @@ -178,224 +126,9 @@ description: Operations executed circular_pattern3d_a_pattern.kcl ], "type": "StdLibCall", "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 2.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ] - }, - "from": [ - 0.0, - 2.0 - ], - "tag": null, - "to": [ - 3.0, - 3.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ] - }, - "from": [ - 3.0, - 3.0 - ], - "tag": null, - "to": [ - 3.0, - -1.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ] - }, - "from": [ - 3.0, - -1.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 41, - 66, - 0 - ] - } - }, - "artifactId": "[uuid]", - "originalId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - }, - "height": 1.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 208, 221, @@ -426,59 +159,7 @@ description: Operations executed circular_pattern3d_a_pattern.kcl ] }, "axis": { - "value": { - "type": "Array", - "value": [ - { - "type": "Number", - "value": 0.0, - "__meta": [ - { - "sourceRange": [ - 327, - 328, - 0 - ] - } - ] - }, - { - "type": "Number", - "value": 0.0, - "__meta": [ - { - "sourceRange": [ - 330, - 331, - 0 - ] - } - ] - }, - { - "type": "Number", - "value": 1.0, - "__meta": [ - { - "sourceRange": [ - 333, - 334, - 0 - ] - } - ] - } - ], - "__meta": [ - { - "sourceRange": [ - 326, - 335, - 0 - ] - } - ] - }, + "artifactIds": [], "sourceRange": [ 326, 335, @@ -486,59 +167,7 @@ description: Operations executed circular_pattern3d_a_pattern.kcl ] }, "center": { - "value": { - "type": "Array", - "value": [ - { - "type": "Number", - "value": -20.0, - "__meta": [ - { - "sourceRange": [ - 349, - 352, - 0 - ] - } - ] - }, - { - "type": "Number", - "value": -20.0, - "__meta": [ - { - "sourceRange": [ - 354, - 357, - 0 - ] - } - ] - }, - { - "type": "Number", - "value": -20.0, - "__meta": [ - { - "sourceRange": [ - 359, - 362, - 0 - ] - } - ] - } - ], - "__meta": [ - { - "sourceRange": [ - 348, - 363, - 0 - ] - } - ] - }, + "artifactIds": [], "sourceRange": [ 348, 363, @@ -594,1516 +223,15 @@ description: Operations executed circular_pattern3d_a_pattern.kcl ], "type": "StdLibCall", "unlabeledArg": { - "value": { - "type": "Solids", - "value": [ - { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 2.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ] - }, - "from": [ - 0.0, - 2.0 - ], - "tag": null, - "to": [ - 3.0, - 3.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ] - }, - "from": [ - 3.0, - 3.0 - ], - "tag": null, - "to": [ - 3.0, - -1.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ] - }, - "from": [ - 3.0, - -1.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 41, - 66, - 0 - ] - } - }, - "artifactId": "[uuid]", - "originalId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - }, - "height": 1.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - }, - { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 2.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ] - }, - "from": [ - 0.0, - 2.0 - ], - "tag": null, - "to": [ - 3.0, - 3.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ] - }, - "from": [ - 3.0, - 3.0 - ], - "tag": null, - "to": [ - 3.0, - -1.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ] - }, - "from": [ - 3.0, - -1.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 41, - 66, - 0 - ] - } - }, - "artifactId": "[uuid]", - "originalId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - }, - "height": 1.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - }, - { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 2.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ] - }, - "from": [ - 0.0, - 2.0 - ], - "tag": null, - "to": [ - 3.0, - 3.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ] - }, - "from": [ - 3.0, - 3.0 - ], - "tag": null, - "to": [ - 3.0, - -1.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ] - }, - "from": [ - 3.0, - -1.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 41, - 66, - 0 - ] - } - }, - "artifactId": "[uuid]", - "originalId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - }, - "height": 1.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - }, - { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 2.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ] - }, - "from": [ - 0.0, - 2.0 - ], - "tag": null, - "to": [ - 3.0, - 3.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ] - }, - "from": [ - 3.0, - 3.0 - ], - "tag": null, - "to": [ - 3.0, - -1.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ] - }, - "from": [ - 3.0, - -1.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 41, - 66, - 0 - ] - } - }, - "artifactId": "[uuid]", - "originalId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - }, - "height": 1.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - }, - { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 2.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ] - }, - "from": [ - 0.0, - 2.0 - ], - "tag": null, - "to": [ - 3.0, - 3.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ] - }, - "from": [ - 3.0, - 3.0 - ], - "tag": null, - "to": [ - 3.0, - -1.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ] - }, - "from": [ - 3.0, - -1.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 41, - 66, - 0 - ] - } - }, - "artifactId": "[uuid]", - "originalId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - }, - "height": 1.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - }, - { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 2.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ] - }, - "from": [ - 0.0, - 2.0 - ], - "tag": null, - "to": [ - 3.0, - 3.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ] - }, - "from": [ - 3.0, - 3.0 - ], - "tag": null, - "to": [ - 3.0, - -1.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ] - }, - "from": [ - 3.0, - -1.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 41, - 66, - 0 - ] - } - }, - "artifactId": "[uuid]", - "originalId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - }, - "height": 1.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - }, - { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 2.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ] - }, - "from": [ - 0.0, - 2.0 - ], - "tag": null, - "to": [ - 3.0, - 3.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ] - }, - "from": [ - 3.0, - 3.0 - ], - "tag": null, - "to": [ - 3.0, - -1.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ] - }, - "from": [ - 3.0, - -1.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 41, - 66, - 0 - ] - } - }, - "artifactId": "[uuid]", - "originalId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - }, - "height": 1.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - } - ] - }, + "artifactIds": [ + "[uuid]", + "[uuid]", + "[uuid]", + "[uuid]", + "[uuid]", + "[uuid]", + "[uuid]" + ], "sourceRange": [ 309, 315, diff --git a/src/wasm-lib/kcl/tests/cube/ops.snap b/src/wasm-lib/kcl/tests/cube/ops.snap index ec7ef59a02..84da01de52 100644 --- a/src/wasm-lib/kcl/tests/cube/ops.snap +++ b/src/wasm-lib/kcl/tests/cube/ops.snap @@ -14,46 +14,7 @@ description: Operations executed cube.kcl "unlabeledArg": null, "labeledArgs": { "center": { - "value": { - "type": "Array", - "value": [ - { - "type": "Number", - "value": 0.0, - "__meta": [ - { - "sourceRange": [ - 418, - 419, - 0 - ] - } - ] - }, - { - "type": "Number", - "value": 0.0, - "__meta": [ - { - "sourceRange": [ - 421, - 422, - 0 - ] - } - ] - } - ], - "__meta": [ - { - "sourceRange": [ - 417, - 423, - 0 - ] - } - ] - }, + "artifactIds": [], "sourceRange": [ 417, 423, diff --git a/src/wasm-lib/kcl/tests/fillet-and-shell/ops.snap b/src/wasm-lib/kcl/tests/fillet-and-shell/ops.snap index 8f90732fde..ed1e578fa1 100644 --- a/src/wasm-lib/kcl/tests/fillet-and-shell/ops.snap +++ b/src/wasm-lib/kcl/tests/fillet-and-shell/ops.snap @@ -70,99 +70,6 @@ description: Operations executed fillet-and-shell.kcl { "labeledArgs": { "data": { - "value": { - "type": "Object", - "value": { - "radius": { - "type": "Number", - "value": 1.0, - "__meta": [ - { - "sourceRange": [ - 1089, - 1090, - 0 - ] - } - ] - }, - "tags": { - "type": "Array", - "value": [ - { - "type": "Uuid", - "value": "[uuid]", - "__meta": [ - { - "sourceRange": [ - 1117, - 1143, - 0 - ] - } - ] - }, - { - "type": "Uuid", - "value": "[uuid]", - "__meta": [ - { - "sourceRange": [ - 1154, - 1180, - 0 - ] - } - ] - }, - { - "type": "Uuid", - "value": "[uuid]", - "__meta": [ - { - "sourceRange": [ - 1191, - 1217, - 0 - ] - } - ] - }, - { - "type": "Uuid", - "value": "[uuid]", - "__meta": [ - { - "sourceRange": [ - 1228, - 1254, - 0 - ] - } - ] - } - ], - "__meta": [ - { - "sourceRange": [ - 1106, - 1263, - 0 - ] - } - ] - } - }, - "__meta": [ - { - "sourceRange": [ - 1071, - 1270, - 0 - ] - } - ] - }, "sourceRange": [ 1071, 1270, @@ -170,502 +77,9 @@ description: Operations executed fillet-and-shell.kcl ] }, "solid": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 833, - 881, - 0 - ], - "tag": { - "end": 880, - "start": 874, - "type": "TagDeclarator", - "value": "edge1" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 887, - 944, - 0 - ], - "tag": { - "end": 943, - "start": 937, - "type": "TagDeclarator", - "value": "edge2" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 950, - 999, - 0 - ], - "tag": { - "end": 998, - "start": 992, - "type": "TagDeclarator", - "value": "edge3" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1005, - 1024, - 0 - ], - "tag": { - "end": 1023, - "start": 1017, - "type": "TagDeclarator", - "value": "edge4" - }, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 833, - 881, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": { - "end": 880, - "start": 874, - "type": "TagDeclarator", - "value": "edge1" - }, - "to": [ - 38.0, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 887, - 944, - 0 - ] - }, - "from": [ - 38.0, - 0.0 - ], - "tag": { - "end": 943, - "start": 937, - "type": "TagDeclarator", - "value": "edge2" - }, - "to": [ - 38.0, - 73.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 950, - 999, - 0 - ] - }, - "from": [ - 38.0, - 73.0 - ], - "tag": { - "end": 998, - "start": 992, - "type": "TagDeclarator", - "value": "edge3" - }, - "to": [ - 0.0, - 73.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1005, - 1024, - 0 - ] - }, - "from": [ - 0.0, - 73.0 - ], - "tag": { - "end": 1023, - "start": 1017, - "type": "TagDeclarator", - "value": "edge4" - }, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 802, - 827, - 0 - ] - } - }, - "tags": { - "edge1": { - "type": "TagIdentifier", - "value": "edge1", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 833, - 881, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": { - "end": 880, - "start": 874, - "type": "TagDeclarator", - "value": "edge1" - }, - "to": [ - 38.0, - 0.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 833, - 881, - 0 - ], - "tag": { - "end": 880, - "start": 874, - "type": "TagDeclarator", - "value": "edge1" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 874, - 880, - 0 - ] - } - ] - }, - "edge2": { - "type": "TagIdentifier", - "value": "edge2", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 887, - 944, - 0 - ] - }, - "from": [ - 38.0, - 0.0 - ], - "tag": { - "end": 943, - "start": 937, - "type": "TagDeclarator", - "value": "edge2" - }, - "to": [ - 38.0, - 73.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 887, - 944, - 0 - ], - "tag": { - "end": 943, - "start": 937, - "type": "TagDeclarator", - "value": "edge2" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 937, - 943, - 0 - ] - } - ] - }, - "edge3": { - "type": "TagIdentifier", - "value": "edge3", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 950, - 999, - 0 - ] - }, - "from": [ - 38.0, - 73.0 - ], - "tag": { - "end": 998, - "start": 992, - "type": "TagDeclarator", - "value": "edge3" - }, - "to": [ - 0.0, - 73.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 950, - 999, - 0 - ], - "tag": { - "end": 998, - "start": 992, - "type": "TagDeclarator", - "value": "edge3" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 992, - 998, - 0 - ] - } - ] - }, - "edge4": { - "type": "TagIdentifier", - "value": "edge4", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1005, - 1024, - 0 - ] - }, - "from": [ - 0.0, - 73.0 - ], - "tag": { - "end": 1023, - "start": 1017, - "type": "TagDeclarator", - "value": "edge4" - }, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1005, - 1024, - 0 - ], - "tag": { - "end": 1023, - "start": 1017, - "type": "TagDeclarator", - "value": "edge4" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 1017, - 1023, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "originalId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 802, - 827, - 0 - ] - } - ] - }, - "height": 8.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 802, - 827, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 1272, 1273, @@ -733,104 +147,9 @@ description: Operations executed fillet-and-shell.kcl { "labeledArgs": { "hole_sketch": { - "value": { - "type": "Sketch", - "value": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1431, - 1476, - 0 - ] - }, - "ccw": true, - "center": [ - 7.5, - 7.5 - ], - "from": [ - 8.75, - 7.5 - ], - "radius": 1.25, - "tag": null, - "to": [ - 8.75, - 7.5 - ], - "type": "Circle" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 8.75, - 7.5 - ], - "to": [ - 8.75, - 7.5 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1431, - 1476, - 0 - ] - } - }, - "artifactId": "[uuid]", - "originalId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 1431, - 1476, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 1431, 1476, @@ -838,104 +157,9 @@ description: Operations executed fillet-and-shell.kcl ] }, "sketch": { - "value": { - "type": "Sketch", - "value": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1374, - 1418, - 0 - ] - }, - "ccw": true, - "center": [ - 7.5, - 7.5 - ], - "from": [ - 10.0, - 7.5 - ], - "radius": 2.5, - "tag": null, - "to": [ - 10.0, - 7.5 - ], - "type": "Circle" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 10.0, - 7.5 - ], - "to": [ - 10.0, - 7.5 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1374, - 1418, - 0 - ] - } - }, - "artifactId": "[uuid]", - "originalId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 1374, - 1418, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 1478, 1479, @@ -1038,104 +262,9 @@ description: Operations executed fillet-and-shell.kcl { "labeledArgs": { "hole_sketch": { - "value": { - "type": "Sketch", - "value": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1431, - 1476, - 0 - ] - }, - "ccw": true, - "center": [ - 7.5, - 65.5 - ], - "from": [ - 8.75, - 65.5 - ], - "radius": 1.25, - "tag": null, - "to": [ - 8.75, - 65.5 - ], - "type": "Circle" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 8.75, - 65.5 - ], - "to": [ - 8.75, - 65.5 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1431, - 1476, - 0 - ] - } - }, - "artifactId": "[uuid]", - "originalId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 1431, - 1476, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 1431, 1476, @@ -1143,104 +272,9 @@ description: Operations executed fillet-and-shell.kcl ] }, "sketch": { - "value": { - "type": "Sketch", - "value": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1374, - 1418, - 0 - ] - }, - "ccw": true, - "center": [ - 7.5, - 65.5 - ], - "from": [ - 10.0, - 65.5 - ], - "radius": 2.5, - "tag": null, - "to": [ - 10.0, - 65.5 - ], - "type": "Circle" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 10.0, - 65.5 - ], - "to": [ - 10.0, - 65.5 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1374, - 1418, - 0 - ] - } - }, - "artifactId": "[uuid]", - "originalId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 1374, - 1418, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 1478, 1479, @@ -1343,104 +377,9 @@ description: Operations executed fillet-and-shell.kcl { "labeledArgs": { "hole_sketch": { - "value": { - "type": "Sketch", - "value": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1431, - 1476, - 0 - ] - }, - "ccw": true, - "center": [ - 30.5, - 65.5 - ], - "from": [ - 31.75, - 65.5 - ], - "radius": 1.25, - "tag": null, - "to": [ - 31.75, - 65.5 - ], - "type": "Circle" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 31.75, - 65.5 - ], - "to": [ - 31.75, - 65.5 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1431, - 1476, - 0 - ] - } - }, - "artifactId": "[uuid]", - "originalId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 1431, - 1476, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 1431, 1476, @@ -1448,104 +387,9 @@ description: Operations executed fillet-and-shell.kcl ] }, "sketch": { - "value": { - "type": "Sketch", - "value": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1374, - 1418, - 0 - ] - }, - "ccw": true, - "center": [ - 30.5, - 65.5 - ], - "from": [ - 33.0, - 65.5 - ], - "radius": 2.5, - "tag": null, - "to": [ - 33.0, - 65.5 - ], - "type": "Circle" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 33.0, - 65.5 - ], - "to": [ - 33.0, - 65.5 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1374, - 1418, - 0 - ] - } - }, - "artifactId": "[uuid]", - "originalId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 1374, - 1418, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 1478, 1479, @@ -1648,104 +492,9 @@ description: Operations executed fillet-and-shell.kcl { "labeledArgs": { "hole_sketch": { - "value": { - "type": "Sketch", - "value": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1431, - 1476, - 0 - ] - }, - "ccw": true, - "center": [ - 30.5, - 7.5 - ], - "from": [ - 31.75, - 7.5 - ], - "radius": 1.25, - "tag": null, - "to": [ - 31.75, - 7.5 - ], - "type": "Circle" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 31.75, - 7.5 - ], - "to": [ - 31.75, - 7.5 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1431, - 1476, - 0 - ] - } - }, - "artifactId": "[uuid]", - "originalId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 1431, - 1476, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 1431, 1476, @@ -1753,104 +502,9 @@ description: Operations executed fillet-and-shell.kcl ] }, "sketch": { - "value": { - "type": "Sketch", - "value": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1374, - 1418, - 0 - ] - }, - "ccw": true, - "center": [ - 30.5, - 7.5 - ], - "from": [ - 33.0, - 7.5 - ], - "radius": 2.5, - "tag": null, - "to": [ - 33.0, - 7.5 - ], - "type": "Circle" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 33.0, - 7.5 - ], - "to": [ - 33.0, - 7.5 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1374, - 1418, - 0 - ] - } - }, - "artifactId": "[uuid]", - "originalId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 1374, - 1418, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 1478, 1479, @@ -1905,33 +559,7 @@ description: Operations executed fillet-and-shell.kcl { "labeledArgs": { "faces": { - "value": { - "type": "Array", - "value": [ - { - "type": "String", - "value": "end", - "__meta": [ - { - "sourceRange": [ - 2068, - 2073, - 0 - ] - } - ] - } - ], - "__meta": [ - { - "sourceRange": [ - 2067, - 2074, - 0 - ] - } - ] - }, + "artifactIds": [], "sourceRange": [ 2067, 2074, @@ -1967,532 +595,9 @@ description: Operations executed fillet-and-shell.kcl ], "type": "StdLibCall", "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 833, - 881, - 0 - ], - "tag": { - "end": 880, - "start": 874, - "type": "TagDeclarator", - "value": "edge1" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 887, - 944, - 0 - ], - "tag": { - "end": 943, - "start": 937, - "type": "TagDeclarator", - "value": "edge2" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 950, - 999, - 0 - ], - "tag": { - "end": 998, - "start": 992, - "type": "TagDeclarator", - "value": "edge3" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1005, - 1024, - 0 - ], - "tag": { - "end": 1023, - "start": 1017, - "type": "TagDeclarator", - "value": "edge4" - }, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 833, - 881, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": { - "end": 880, - "start": 874, - "type": "TagDeclarator", - "value": "edge1" - }, - "to": [ - 38.0, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 887, - 944, - 0 - ] - }, - "from": [ - 38.0, - 0.0 - ], - "tag": { - "end": 943, - "start": 937, - "type": "TagDeclarator", - "value": "edge2" - }, - "to": [ - 38.0, - 73.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 950, - 999, - 0 - ] - }, - "from": [ - 38.0, - 73.0 - ], - "tag": { - "end": 998, - "start": 992, - "type": "TagDeclarator", - "value": "edge3" - }, - "to": [ - 0.0, - 73.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1005, - 1024, - 0 - ] - }, - "from": [ - 0.0, - 73.0 - ], - "tag": { - "end": 1023, - "start": 1017, - "type": "TagDeclarator", - "value": "edge4" - }, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 802, - 827, - 0 - ] - } - }, - "tags": { - "edge1": { - "type": "TagIdentifier", - "value": "edge1", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 833, - 881, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": { - "end": 880, - "start": 874, - "type": "TagDeclarator", - "value": "edge1" - }, - "to": [ - 38.0, - 0.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 833, - 881, - 0 - ], - "tag": { - "end": 880, - "start": 874, - "type": "TagDeclarator", - "value": "edge1" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 874, - 880, - 0 - ] - } - ] - }, - "edge2": { - "type": "TagIdentifier", - "value": "edge2", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 887, - 944, - 0 - ] - }, - "from": [ - 38.0, - 0.0 - ], - "tag": { - "end": 943, - "start": 937, - "type": "TagDeclarator", - "value": "edge2" - }, - "to": [ - 38.0, - 73.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 887, - 944, - 0 - ], - "tag": { - "end": 943, - "start": 937, - "type": "TagDeclarator", - "value": "edge2" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 937, - 943, - 0 - ] - } - ] - }, - "edge3": { - "type": "TagIdentifier", - "value": "edge3", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 950, - 999, - 0 - ] - }, - "from": [ - 38.0, - 73.0 - ], - "tag": { - "end": 998, - "start": 992, - "type": "TagDeclarator", - "value": "edge3" - }, - "to": [ - 0.0, - 73.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 950, - 999, - 0 - ], - "tag": { - "end": 998, - "start": 992, - "type": "TagDeclarator", - "value": "edge3" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 992, - 998, - 0 - ] - } - ] - }, - "edge4": { - "type": "TagIdentifier", - "value": "edge4", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1005, - 1024, - 0 - ] - }, - "from": [ - 0.0, - 73.0 - ], - "tag": { - "end": 1023, - "start": 1017, - "type": "TagDeclarator", - "value": "edge4" - }, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1005, - 1024, - 0 - ], - "tag": { - "end": 1023, - "start": 1017, - "type": "TagDeclarator", - "value": "edge4" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 1017, - 1023, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "originalId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 802, - 827, - 0 - ] - } - ] - }, - "height": 8.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "edgeCuts": [ - { - "type": "fillet", - "id": "[uuid]", - "radius": 1.0, - "edgeId": "[uuid]", - "tag": null - }, - { - "type": "fillet", - "id": "[uuid]", - "radius": 1.0, - "edgeId": "[uuid]", - "tag": null - }, - { - "type": "fillet", - "id": "[uuid]", - "radius": 1.0, - "edgeId": "[uuid]", - "tag": null - }, - { - "type": "fillet", - "id": "[uuid]", - "radius": 1.0, - "edgeId": "[uuid]", - "tag": null - } - ], - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 802, - 827, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 2053, 2057, diff --git a/src/wasm-lib/kcl/tests/helix_ccw/ops.snap b/src/wasm-lib/kcl/tests/helix_ccw/ops.snap index b78a5edc08..7d31a5c92d 100644 --- a/src/wasm-lib/kcl/tests/helix_ccw/ops.snap +++ b/src/wasm-lib/kcl/tests/helix_ccw/ops.snap @@ -70,59 +70,6 @@ description: Operations executed helix_ccw.kcl { "labeledArgs": { "data": { - "value": { - "type": "Object", - "value": { - "angleStart": { - "type": "Number", - "value": 0.0, - "__meta": [ - { - "sourceRange": [ - 174, - 175, - 0 - ] - } - ] - }, - "ccw": { - "type": "Bool", - "value": true, - "__meta": [ - { - "sourceRange": [ - 190, - 194, - 0 - ] - } - ] - }, - "revolutions": { - "type": "Number", - "value": 16.0, - "__meta": [ - { - "sourceRange": [ - 150, - 152, - 0 - ] - } - ] - } - }, - "__meta": [ - { - "sourceRange": [ - 127, - 201, - 0 - ] - } - ] - }, "sourceRange": [ 127, 201, @@ -130,136 +77,9 @@ description: Operations executed helix_ccw.kcl ] }, "solid": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 35, - 78, - 0 - ], - "tag": null, - "type": "extrudeArc" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 35, - 78, - 0 - ] - }, - "ccw": true, - "center": [ - 5.0, - 5.0 - ], - "from": [ - 15.0, - 5.0 - ], - "radius": 10.0, - "tag": null, - "to": [ - 15.0, - 5.0 - ], - "type": "Circle" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 15.0, - 5.0 - ], - "to": [ - 15.0, - 5.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 35, - 78, - 0 - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 35, - 78, - 0 - ] - } - ] - }, - "height": 10.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 35, - 78, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 203, 204, diff --git a/src/wasm-lib/kcl/tests/i_shape/ops.snap b/src/wasm-lib/kcl/tests/i_shape/ops.snap index 43f1ada1c8..ab726a0ce6 100644 --- a/src/wasm-lib/kcl/tests/i_shape/ops.snap +++ b/src/wasm-lib/kcl/tests/i_shape/ops.snap @@ -6,277 +6,9 @@ description: Operations executed i_shape.kcl { "labeledArgs": { "hole_sketch": { - "value": { - "type": "Sketch", - "value": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1926, - 1939, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 1.0, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1945, - 2003, - 0 - ] - }, - "ccw": true, - "center": [ - 1.0, - 5.0 - ], - "from": [ - 1.0, - 0.0 - ], - "tag": null, - "to": [ - 6.0, - 5.0 - ], - "type": "TangentialArcTo" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 2009, - 2045, - 0 - ] - }, - "from": [ - 6.0, - 5.0 - ], - "tag": null, - "to": [ - 6.0, - 20.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 2051, - 2110, - 0 - ] - }, - "ccw": true, - "center": [ - 1.0, - 20.0 - ], - "from": [ - 6.0, - 20.0 - ], - "tag": null, - "to": [ - 1.0, - 25.0 - ], - "type": "TangentialArcTo" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 2116, - 2130, - 0 - ] - }, - "from": [ - 1.0, - 25.0 - ], - "tag": null, - "to": [ - 0.0, - 25.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 2136, - 2196, - 0 - ] - }, - "ccw": true, - "center": [ - 0.0, - 20.0 - ], - "from": [ - 0.0, - 25.0 - ], - "tag": null, - "to": [ - -5.0, - 20.0 - ], - "type": "TangentialArcTo" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 2202, - 2241, - 0 - ] - }, - "from": [ - -5.0, - 20.0 - ], - "tag": null, - "to": [ - -5.0, - 5.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 2247, - 2306, - 0 - ] - }, - "ccw": true, - "center": [ - 0.0, - 5.0 - ], - "from": [ - -5.0, - 5.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "TangentialArcTo" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 2312, - 2320, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1899, - 1920, - 0 - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 1899, - 1920, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 2351, 2356, @@ -284,637 +16,9 @@ description: Operations executed i_shape.kcl ] }, "sketch": { - "value": { - "type": "Sketch", - "value": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 438, - 478, - 0 - ] - }, - "from": [ - 5.0, - 0.0 - ], - "tag": null, - "to": [ - 68.4, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 484, - 542, - 0 - ] - }, - "ccw": true, - "center": [ - 68.4, - 5.0 - ], - "from": [ - 68.4, - 0.0 - ], - "tag": null, - "to": [ - 73.4, - 5.0 - ], - "type": "TangentialArcTo" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 548, - 578, - 0 - ] - }, - "from": [ - 73.4, - 5.0 - ], - "tag": null, - "to": [ - 73.4, - 25.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 584, - 643, - 0 - ] - }, - "ccw": true, - "center": [ - 68.4, - 25.0 - ], - "from": [ - 73.4, - 25.0 - ], - "tag": null, - "to": [ - 68.4, - 30.0 - ], - "type": "TangentialArcTo" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 649, - 708, - 0 - ] - }, - "from": [ - 68.4, - 30.0 - ], - "tag": null, - "to": [ - 55.6, - 30.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 714, - 773, - 0 - ] - }, - "ccw": false, - "center": [ - 55.60000000000001, - 35.0 - ], - "from": [ - 55.6, - 30.0 - ], - "tag": null, - "to": [ - 50.6, - 35.0 - ], - "type": "TangentialArcTo" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 779, - 831, - 0 - ] - }, - "from": [ - 50.6, - 35.0 - ], - "tag": null, - "to": [ - 50.6, - 97.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 837, - 895, - 0 - ] - }, - "ccw": false, - "center": [ - 55.60000000000001, - 97.0 - ], - "from": [ - 50.6, - 97.0 - ], - "tag": null, - "to": [ - 55.6, - 102.0 - ], - "type": "TangentialArcTo" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 901, - 937, - 0 - ] - }, - "from": [ - 55.6, - 102.0 - ], - "tag": null, - "to": [ - 60.6, - 102.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 943, - 1001, - 0 - ] - }, - "ccw": true, - "center": [ - 60.60000000000001, - 107.0 - ], - "from": [ - 60.6, - 102.0 - ], - "tag": null, - "to": [ - 65.6, - 107.0 - ], - "type": "TangentialArcTo" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1007, - 1037, - 0 - ] - }, - "from": [ - 65.6, - 107.0 - ], - "tag": null, - "to": [ - 65.6, - 125.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1043, - 1102, - 0 - ] - }, - "ccw": true, - "center": [ - 60.60000000000001, - 125.0 - ], - "from": [ - 65.6, - 125.0 - ], - "tag": null, - "to": [ - 60.6, - 130.0 - ], - "type": "TangentialArcTo" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1108, - 1171, - 0 - ] - }, - "from": [ - 60.6, - 130.0 - ], - "tag": null, - "to": [ - 16.6, - 130.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1177, - 1237, - 0 - ] - }, - "ccw": true, - "center": [ - 16.60000000000001, - 125.0 - ], - "from": [ - 16.6, - 130.0 - ], - "tag": null, - "to": [ - 11.6, - 125.0 - ], - "type": "TangentialArcTo" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1243, - 1276, - 0 - ] - }, - "from": [ - 11.6, - 125.0 - ], - "tag": null, - "to": [ - 11.6, - 107.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1282, - 1341, - 0 - ] - }, - "ccw": true, - "center": [ - 16.60000000000001, - 107.0 - ], - "from": [ - 11.6, - 107.0 - ], - "tag": null, - "to": [ - 16.6, - 102.0 - ], - "type": "TangentialArcTo" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1347, - 1383, - 0 - ] - }, - "from": [ - 16.6, - 102.0 - ], - "tag": null, - "to": [ - 21.6, - 102.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1389, - 1448, - 0 - ] - }, - "ccw": false, - "center": [ - 21.60000000000001, - 97.0 - ], - "from": [ - 21.6, - 102.0 - ], - "tag": null, - "to": [ - 26.6, - 97.0 - ], - "type": "TangentialArcTo" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1454, - 1509, - 0 - ] - }, - "from": [ - 26.6, - 97.0 - ], - "tag": null, - "to": [ - 26.6, - 35.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1515, - 1575, - 0 - ] - }, - "ccw": false, - "center": [ - 21.60000000000001, - 35.0 - ], - "from": [ - 26.6, - 35.0 - ], - "tag": null, - "to": [ - 21.6, - 30.0 - ], - "type": "TangentialArcTo" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1581, - 1705, - 0 - ] - }, - "from": [ - 21.6, - 30.0 - ], - "tag": null, - "to": [ - 5.0, - 30.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1711, - 1771, - 0 - ] - }, - "ccw": true, - "center": [ - 5.000000000000014, - 25.0 - ], - "from": [ - 5.0, - 30.0 - ], - "tag": null, - "to": [ - 0.0, - 25.0 - ], - "type": "TangentialArcTo" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1777, - 1810, - 0 - ] - }, - "from": [ - 0.0, - 25.0 - ], - "tag": null, - "to": [ - 0.0, - 5.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1816, - 1875, - 0 - ] - }, - "ccw": true, - "center": [ - 5.000000000000014, - 5.0 - ], - "from": [ - 0.0, - 5.0 - ], - "tag": null, - "to": [ - 5.0, - 0.0 - ], - "type": "TangentialArcTo" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1881, - 1889, - 0 - ] - }, - "from": [ - 5.0, - 0.0 - ], - "tag": null, - "to": [ - 5.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 5.0, - 0.0 - ], - "to": [ - 5.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 399, - 432, - 0 - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 399, - 432, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 2358, 2359, diff --git a/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/ops.snap b/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/ops.snap index d28f48726c..7a63f799c5 100644 --- a/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/ops.snap +++ b/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/ops.snap @@ -70,59 +70,7 @@ description: Operations executed linear_pattern3d_a_pattern.kcl { "labeledArgs": { "axis": { - "value": { - "type": "Array", - "value": [ - { - "type": "Number", - "value": 1.0, - "__meta": [ - { - "sourceRange": [ - 233, - 234, - 0 - ] - } - ] - }, - { - "type": "Number", - "value": 0.0, - "__meta": [ - { - "sourceRange": [ - 236, - 237, - 0 - ] - } - ] - }, - { - "type": "Number", - "value": 0.0, - "__meta": [ - { - "sourceRange": [ - 239, - 240, - 0 - ] - } - ] - } - ], - "__meta": [ - { - "sourceRange": [ - 232, - 241, - 0 - ] - } - ] - }, + "artifactIds": [], "sourceRange": [ 232, 241, @@ -178,224 +126,9 @@ description: Operations executed linear_pattern3d_a_pattern.kcl ], "type": "StdLibCall", "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 2.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ] - }, - "from": [ - 0.0, - 2.0 - ], - "tag": null, - "to": [ - 3.0, - 3.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ] - }, - "from": [ - 3.0, - 3.0 - ], - "tag": null, - "to": [ - 3.0, - -1.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ] - }, - "from": [ - 3.0, - -1.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 41, - 66, - 0 - ] - } - }, - "artifactId": "[uuid]", - "originalId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - }, - "height": 1.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 208, 221, @@ -406,59 +139,7 @@ description: Operations executed linear_pattern3d_a_pattern.kcl { "labeledArgs": { "axis": { - "value": { - "type": "Array", - "value": [ - { - "type": "Number", - "value": 0.0, - "__meta": [ - { - "sourceRange": [ - 325, - 326, - 0 - ] - } - ] - }, - { - "type": "Number", - "value": 0.0, - "__meta": [ - { - "sourceRange": [ - 328, - 329, - 0 - ] - } - ] - }, - { - "type": "Number", - "value": 1.0, - "__meta": [ - { - "sourceRange": [ - 331, - 332, - 0 - ] - } - ] - } - ], - "__meta": [ - { - "sourceRange": [ - 324, - 333, - 0 - ] - } - ] - }, + "artifactIds": [], "sourceRange": [ 324, 333, @@ -514,1516 +195,15 @@ description: Operations executed linear_pattern3d_a_pattern.kcl ], "type": "StdLibCall", "unlabeledArg": { - "value": { - "type": "Solids", - "value": [ - { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 2.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ] - }, - "from": [ - 0.0, - 2.0 - ], - "tag": null, - "to": [ - 3.0, - 3.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ] - }, - "from": [ - 3.0, - 3.0 - ], - "tag": null, - "to": [ - 3.0, - -1.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ] - }, - "from": [ - 3.0, - -1.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 41, - 66, - 0 - ] - } - }, - "artifactId": "[uuid]", - "originalId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - }, - "height": 1.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - }, - { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 2.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ] - }, - "from": [ - 0.0, - 2.0 - ], - "tag": null, - "to": [ - 3.0, - 3.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ] - }, - "from": [ - 3.0, - 3.0 - ], - "tag": null, - "to": [ - 3.0, - -1.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ] - }, - "from": [ - 3.0, - -1.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 41, - 66, - 0 - ] - } - }, - "artifactId": "[uuid]", - "originalId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - }, - "height": 1.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - }, - { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 2.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ] - }, - "from": [ - 0.0, - 2.0 - ], - "tag": null, - "to": [ - 3.0, - 3.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ] - }, - "from": [ - 3.0, - 3.0 - ], - "tag": null, - "to": [ - 3.0, - -1.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ] - }, - "from": [ - 3.0, - -1.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 41, - 66, - 0 - ] - } - }, - "artifactId": "[uuid]", - "originalId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - }, - "height": 1.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - }, - { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 2.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ] - }, - "from": [ - 0.0, - 2.0 - ], - "tag": null, - "to": [ - 3.0, - 3.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ] - }, - "from": [ - 3.0, - 3.0 - ], - "tag": null, - "to": [ - 3.0, - -1.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ] - }, - "from": [ - 3.0, - -1.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 41, - 66, - 0 - ] - } - }, - "artifactId": "[uuid]", - "originalId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - }, - "height": 1.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - }, - { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 2.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ] - }, - "from": [ - 0.0, - 2.0 - ], - "tag": null, - "to": [ - 3.0, - 3.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ] - }, - "from": [ - 3.0, - 3.0 - ], - "tag": null, - "to": [ - 3.0, - -1.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ] - }, - "from": [ - 3.0, - -1.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 41, - 66, - 0 - ] - } - }, - "artifactId": "[uuid]", - "originalId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - }, - "height": 1.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - }, - { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 2.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ] - }, - "from": [ - 0.0, - 2.0 - ], - "tag": null, - "to": [ - 3.0, - 3.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ] - }, - "from": [ - 3.0, - 3.0 - ], - "tag": null, - "to": [ - 3.0, - -1.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ] - }, - "from": [ - 3.0, - -1.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 41, - 66, - 0 - ] - } - }, - "artifactId": "[uuid]", - "originalId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - }, - "height": 1.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - }, - { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 72, - 90, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 2.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 96, - 114, - 0 - ] - }, - "from": [ - 0.0, - 2.0 - ], - "tag": null, - "to": [ - 3.0, - 3.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 120, - 139, - 0 - ] - }, - "from": [ - 3.0, - 3.0 - ], - "tag": null, - "to": [ - 3.0, - -1.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 145, - 153, - 0 - ] - }, - "from": [ - 3.0, - -1.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 41, - 66, - 0 - ] - } - }, - "artifactId": "[uuid]", - "originalId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - }, - "height": 1.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 41, - 66, - 0 - ] - } - ] - } - ] - }, + "artifactIds": [ + "[uuid]", + "[uuid]", + "[uuid]", + "[uuid]", + "[uuid]", + "[uuid]", + "[uuid]" + ], "sourceRange": [ 307, 313, diff --git a/src/wasm-lib/kcl/tests/pentagon_fillet_sugar/ops.snap b/src/wasm-lib/kcl/tests/pentagon_fillet_sugar/ops.snap index b8eb609e03..32005dd215 100644 --- a/src/wasm-lib/kcl/tests/pentagon_fillet_sugar/ops.snap +++ b/src/wasm-lib/kcl/tests/pentagon_fillet_sugar/ops.snap @@ -86,401 +86,9 @@ description: Operations executed pentagon_fillet_sugar.kcl { "labeledArgs": { "data": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 194, - 249, - 0 - ], - "tag": { - "end": 248, - "start": 246, - "type": "TagDeclarator", - "value": "a" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 255, - 311, - 0 - ], - "tag": { - "end": 310, - "start": 308, - "type": "TagDeclarator", - "value": "b" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 317, - 373, - 0 - ], - "tag": { - "end": 372, - "start": 370, - "type": "TagDeclarator", - "value": "c" - }, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 194, - 249, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": { - "end": 248, - "start": 246, - "type": "TagDeclarator", - "value": "a" - }, - "to": [ - 250.0, - 433.0127 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 255, - 311, - 0 - ] - }, - "from": [ - 250.0, - 433.0127 - ], - "tag": { - "end": 310, - "start": 308, - "type": "TagDeclarator", - "value": "b" - }, - "to": [ - -250.0, - 433.0127 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 317, - 373, - 0 - ] - }, - "from": [ - -250.0, - 433.0127 - ], - "tag": { - "end": 372, - "start": 370, - "type": "TagDeclarator", - "value": "c" - }, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 163, - 188, - 0 - ] - } - }, - "tags": { - "a": { - "type": "TagIdentifier", - "value": "a", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 194, - 249, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": { - "end": 248, - "start": 246, - "type": "TagDeclarator", - "value": "a" - }, - "to": [ - 250.00000000000006, - 433.0127018922193 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 194, - 249, - 0 - ], - "tag": { - "end": 248, - "start": 246, - "type": "TagDeclarator", - "value": "a" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 246, - 248, - 0 - ] - } - ] - }, - "b": { - "type": "TagIdentifier", - "value": "b", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 255, - 311, - 0 - ] - }, - "from": [ - 250.00000000000006, - 433.0127018922193 - ], - "tag": { - "end": 310, - "start": 308, - "type": "TagDeclarator", - "value": "b" - }, - "to": [ - -249.99999999999994, - 433.01270189221935 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 255, - 311, - 0 - ], - "tag": { - "end": 310, - "start": 308, - "type": "TagDeclarator", - "value": "b" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 308, - 310, - 0 - ] - } - ] - }, - "c": { - "type": "TagIdentifier", - "value": "c", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 317, - 373, - 0 - ] - }, - "from": [ - -249.99999999999994, - 433.01270189221935 - ], - "tag": { - "end": 372, - "start": 370, - "type": "TagDeclarator", - "value": "c" - }, - "to": [ - 0.00000000000011368683772161603, - 0.00000000000005684341886080802 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 317, - 373, - 0 - ], - "tag": { - "end": 372, - "start": 370, - "type": "TagDeclarator", - "value": "c" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 370, - 372, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 163, - 188, - 0 - ] - } - ] - }, - "height": 200.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 163, - 188, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 456, 457, @@ -602,126 +210,6 @@ description: Operations executed pentagon_fillet_sugar.kcl { "labeledArgs": { "data": { - "value": { - "type": "Object", - "value": { - "radius": { - "type": "Number", - "value": 5.0, - "__meta": [ - { - "sourceRange": [ - 671, - 672, - 0 - ] - } - ] - }, - "tags": { - "type": "Array", - "value": [ - { - "type": "TagIdentifier", - "type": "TagIdentifier", - "value": "arc_tag", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 531, - 553, - 0 - ] - }, - "ccw": true, - "center": [ - -200.0, - 100.0 - ], - "from": [ - -120.0, - 100.0 - ], - "radius": 80.0, - "tag": { - "end": 552, - "start": 544, - "type": "TagDeclarator", - "value": "arc_tag" - }, - "to": [ - -120.0, - 99.99999999999999 - ], - "type": "Arc" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 531, - 553, - 0 - ], - "tag": { - "end": 552, - "start": 544, - "type": "TagDeclarator", - "value": "arc_tag" - }, - "type": "extrudeArc" - } - }, - "__meta": [ - { - "sourceRange": [ - 544, - 552, - 0 - ] - } - ] - }, - { - "type": "Uuid", - "value": "[uuid]", - "__meta": [ - { - "sourceRange": [ - 725, - 757, - 0 - ] - } - ] - } - ], - "__meta": [ - { - "sourceRange": [ - 688, - 766, - 0 - ] - } - ] - } - }, - "__meta": [ - { - "sourceRange": [ - 653, - 773, - 0 - ] - } - ] - }, "sourceRange": [ 653, 773, @@ -729,628 +217,9 @@ description: Operations executed pentagon_fillet_sugar.kcl ] }, "solid": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 531, - 553, - 0 - ], - "tag": { - "end": 552, - "start": 544, - "type": "TagDeclarator", - "value": "arc_tag" - }, - "type": "extrudeArc" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 531, - 553, - 0 - ] - }, - "ccw": true, - "center": [ - -200.0, - 100.0 - ], - "from": [ - -120.0, - 100.0 - ], - "radius": 80.0, - "tag": { - "end": 552, - "start": 544, - "type": "TagDeclarator", - "value": "arc_tag" - }, - "to": [ - -120.0, - 100.0 - ], - "type": "Arc" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 561, - 569, - 0 - ] - }, - "from": [ - -120.0, - 100.0 - ], - "tag": null, - "to": [ - -120.0, - 100.0 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "face", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "c", - "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 - }, - "solid": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 194, - 249, - 0 - ], - "tag": { - "end": 248, - "start": 246, - "type": "TagDeclarator", - "value": "a" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 255, - 311, - 0 - ], - "tag": { - "end": 310, - "start": 308, - "type": "TagDeclarator", - "value": "b" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 317, - 373, - 0 - ], - "tag": { - "end": 372, - "start": 370, - "type": "TagDeclarator", - "value": "c" - }, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 194, - 249, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": { - "end": 248, - "start": 246, - "type": "TagDeclarator", - "value": "a" - }, - "to": [ - 250.0, - 433.0127 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 255, - 311, - 0 - ] - }, - "from": [ - 250.0, - 433.0127 - ], - "tag": { - "end": 310, - "start": 308, - "type": "TagDeclarator", - "value": "b" - }, - "to": [ - -250.0, - 433.0127 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 317, - 373, - 0 - ] - }, - "from": [ - -250.0, - 433.0127 - ], - "tag": { - "end": 372, - "start": 370, - "type": "TagDeclarator", - "value": "c" - }, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 163, - 188, - 0 - ] - } - }, - "tags": { - "a": { - "type": "TagIdentifier", - "value": "a", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 194, - 249, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": { - "end": 248, - "start": 246, - "type": "TagDeclarator", - "value": "a" - }, - "to": [ - 250.00000000000006, - 433.0127018922193 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 194, - 249, - 0 - ], - "tag": { - "end": 248, - "start": 246, - "type": "TagDeclarator", - "value": "a" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 246, - 248, - 0 - ] - } - ] - }, - "b": { - "type": "TagIdentifier", - "value": "b", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 255, - 311, - 0 - ] - }, - "from": [ - 250.00000000000006, - 433.0127018922193 - ], - "tag": { - "end": 310, - "start": 308, - "type": "TagDeclarator", - "value": "b" - }, - "to": [ - -249.99999999999994, - 433.01270189221935 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 255, - 311, - 0 - ], - "tag": { - "end": 310, - "start": 308, - "type": "TagDeclarator", - "value": "b" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 308, - 310, - 0 - ] - } - ] - }, - "c": { - "type": "TagIdentifier", - "value": "c", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 317, - 373, - 0 - ] - }, - "from": [ - -249.99999999999994, - 433.01270189221935 - ], - "tag": { - "end": 372, - "start": 370, - "type": "TagDeclarator", - "value": "c" - }, - "to": [ - 0.00000000000011368683772161603, - 0.00000000000005684341886080802 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 317, - 373, - 0 - ], - "tag": { - "end": 372, - "start": 370, - "type": "TagDeclarator", - "value": "c" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 370, - 372, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 163, - 188, - 0 - ] - } - ] - }, - "height": 200.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 163, - 188, - 0 - ] - } - ] - }, - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 442, - 464, - 0 - ] - } - ] - }, - "start": { - "from": [ - -120.0, - 100.0 - ], - "to": [ - -120.0, - 100.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 472, - 523, - 0 - ] - } - }, - "tags": { - "arc_tag": { - "type": "TagIdentifier", - "value": "arc_tag", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 531, - 553, - 0 - ] - }, - "ccw": true, - "center": [ - -200.0, - 100.0 - ], - "from": [ - -120.0, - 100.0 - ], - "radius": 80.0, - "tag": { - "end": 552, - "start": 544, - "type": "TagDeclarator", - "value": "arc_tag" - }, - "to": [ - -120.0, - 99.99999999999999 - ], - "type": "Arc" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 531, - 553, - 0 - ], - "tag": { - "end": 552, - "start": 544, - "type": "TagDeclarator", - "value": "arc_tag" - }, - "type": "extrudeArc" - } - }, - "__meta": [ - { - "sourceRange": [ - 544, - 552, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 472, - 523, - 0 - ] - } - ] - }, - "height": 100.0, - "startCapId": null, - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 472, - 523, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 775, 776, @@ -1386,401 +255,9 @@ description: Operations executed pentagon_fillet_sugar.kcl { "labeledArgs": { "data": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 194, - 249, - 0 - ], - "tag": { - "end": 248, - "start": 246, - "type": "TagDeclarator", - "value": "a" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 255, - 311, - 0 - ], - "tag": { - "end": 310, - "start": 308, - "type": "TagDeclarator", - "value": "b" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 317, - 373, - 0 - ], - "tag": { - "end": 372, - "start": 370, - "type": "TagDeclarator", - "value": "c" - }, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 194, - 249, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": { - "end": 248, - "start": 246, - "type": "TagDeclarator", - "value": "a" - }, - "to": [ - 250.0, - 433.0127 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 255, - 311, - 0 - ] - }, - "from": [ - 250.0, - 433.0127 - ], - "tag": { - "end": 310, - "start": 308, - "type": "TagDeclarator", - "value": "b" - }, - "to": [ - -250.0, - 433.0127 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 317, - 373, - 0 - ] - }, - "from": [ - -250.0, - 433.0127 - ], - "tag": { - "end": 372, - "start": 370, - "type": "TagDeclarator", - "value": "c" - }, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 163, - 188, - 0 - ] - } - }, - "tags": { - "a": { - "type": "TagIdentifier", - "value": "a", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 194, - 249, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": { - "end": 248, - "start": 246, - "type": "TagDeclarator", - "value": "a" - }, - "to": [ - 250.00000000000006, - 433.0127018922193 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 194, - 249, - 0 - ], - "tag": { - "end": 248, - "start": 246, - "type": "TagDeclarator", - "value": "a" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 246, - 248, - 0 - ] - } - ] - }, - "b": { - "type": "TagIdentifier", - "value": "b", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 255, - 311, - 0 - ] - }, - "from": [ - 250.00000000000006, - 433.0127018922193 - ], - "tag": { - "end": 310, - "start": 308, - "type": "TagDeclarator", - "value": "b" - }, - "to": [ - -249.99999999999994, - 433.01270189221935 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 255, - 311, - 0 - ], - "tag": { - "end": 310, - "start": 308, - "type": "TagDeclarator", - "value": "b" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 308, - 310, - 0 - ] - } - ] - }, - "c": { - "type": "TagIdentifier", - "value": "c", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 317, - 373, - 0 - ] - }, - "from": [ - -249.99999999999994, - 433.01270189221935 - ], - "tag": { - "end": 372, - "start": 370, - "type": "TagDeclarator", - "value": "c" - }, - "to": [ - 0.00000000000011368683772161603, - 0.00000000000005684341886080802 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 317, - 373, - 0 - ], - "tag": { - "end": 372, - "start": 370, - "type": "TagDeclarator", - "value": "c" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 370, - 372, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 163, - 188, - 0 - ] - } - ] - }, - "height": 200.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 163, - 188, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 456, 457, @@ -1902,126 +379,6 @@ description: Operations executed pentagon_fillet_sugar.kcl { "labeledArgs": { "data": { - "value": { - "type": "Object", - "value": { - "radius": { - "type": "Number", - "value": 5.0, - "__meta": [ - { - "sourceRange": [ - 875, - 876, - 0 - ] - } - ] - }, - "tags": { - "type": "Array", - "value": [ - { - "type": "TagIdentifier", - "type": "TagIdentifier", - "value": "arc_tag", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 531, - 553, - 0 - ] - }, - "ccw": true, - "center": [ - 200.0, - 100.0 - ], - "from": [ - 280.0, - 100.0 - ], - "radius": 80.0, - "tag": { - "end": 552, - "start": 544, - "type": "TagDeclarator", - "value": "arc_tag" - }, - "to": [ - 280.0, - 99.99999999999999 - ], - "type": "Arc" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 531, - 553, - 0 - ], - "tag": { - "end": 552, - "start": 544, - "type": "TagDeclarator", - "value": "arc_tag" - }, - "type": "extrudeArc" - } - }, - "__meta": [ - { - "sourceRange": [ - 544, - 552, - 0 - ] - } - ] - }, - { - "type": "Uuid", - "value": "[uuid]", - "__meta": [ - { - "sourceRange": [ - 929, - 961, - 0 - ] - } - ] - } - ], - "__meta": [ - { - "sourceRange": [ - 892, - 970, - 0 - ] - } - ] - } - }, - "__meta": [ - { - "sourceRange": [ - 857, - 977, - 0 - ] - } - ] - }, "sourceRange": [ 857, 977, @@ -2029,628 +386,9 @@ description: Operations executed pentagon_fillet_sugar.kcl ] }, "solid": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 531, - 553, - 0 - ], - "tag": { - "end": 552, - "start": 544, - "type": "TagDeclarator", - "value": "arc_tag" - }, - "type": "extrudeArc" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 531, - 553, - 0 - ] - }, - "ccw": true, - "center": [ - 200.0, - 100.0 - ], - "from": [ - 280.0, - 100.0 - ], - "radius": 80.0, - "tag": { - "end": 552, - "start": 544, - "type": "TagDeclarator", - "value": "arc_tag" - }, - "to": [ - 280.0, - 100.0 - ], - "type": "Arc" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 561, - 569, - 0 - ] - }, - "from": [ - 280.0, - 100.0 - ], - "tag": null, - "to": [ - 280.0, - 100.0 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "face", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "a", - "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 - }, - "solid": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 194, - 249, - 0 - ], - "tag": { - "end": 248, - "start": 246, - "type": "TagDeclarator", - "value": "a" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 255, - 311, - 0 - ], - "tag": { - "end": 310, - "start": 308, - "type": "TagDeclarator", - "value": "b" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 317, - 373, - 0 - ], - "tag": { - "end": 372, - "start": 370, - "type": "TagDeclarator", - "value": "c" - }, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 194, - 249, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": { - "end": 248, - "start": 246, - "type": "TagDeclarator", - "value": "a" - }, - "to": [ - 250.0, - 433.0127 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 255, - 311, - 0 - ] - }, - "from": [ - 250.0, - 433.0127 - ], - "tag": { - "end": 310, - "start": 308, - "type": "TagDeclarator", - "value": "b" - }, - "to": [ - -250.0, - 433.0127 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 317, - 373, - 0 - ] - }, - "from": [ - -250.0, - 433.0127 - ], - "tag": { - "end": 372, - "start": 370, - "type": "TagDeclarator", - "value": "c" - }, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 163, - 188, - 0 - ] - } - }, - "tags": { - "a": { - "type": "TagIdentifier", - "value": "a", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 194, - 249, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": { - "end": 248, - "start": 246, - "type": "TagDeclarator", - "value": "a" - }, - "to": [ - 250.00000000000006, - 433.0127018922193 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 194, - 249, - 0 - ], - "tag": { - "end": 248, - "start": 246, - "type": "TagDeclarator", - "value": "a" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 246, - 248, - 0 - ] - } - ] - }, - "b": { - "type": "TagIdentifier", - "value": "b", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 255, - 311, - 0 - ] - }, - "from": [ - 250.00000000000006, - 433.0127018922193 - ], - "tag": { - "end": 310, - "start": 308, - "type": "TagDeclarator", - "value": "b" - }, - "to": [ - -249.99999999999994, - 433.01270189221935 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 255, - 311, - 0 - ], - "tag": { - "end": 310, - "start": 308, - "type": "TagDeclarator", - "value": "b" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 308, - 310, - 0 - ] - } - ] - }, - "c": { - "type": "TagIdentifier", - "value": "c", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 317, - 373, - 0 - ] - }, - "from": [ - -249.99999999999994, - 433.01270189221935 - ], - "tag": { - "end": 372, - "start": 370, - "type": "TagDeclarator", - "value": "c" - }, - "to": [ - 0.00000000000011368683772161603, - 0.00000000000005684341886080802 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 317, - 373, - 0 - ], - "tag": { - "end": 372, - "start": 370, - "type": "TagDeclarator", - "value": "c" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 370, - 372, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 163, - 188, - 0 - ] - } - ] - }, - "height": 200.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 163, - 188, - 0 - ] - } - ] - }, - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 442, - 464, - 0 - ] - } - ] - }, - "start": { - "from": [ - 280.0, - 100.0 - ], - "to": [ - 280.0, - 100.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 472, - 523, - 0 - ] - } - }, - "tags": { - "arc_tag": { - "type": "TagIdentifier", - "value": "arc_tag", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 531, - 553, - 0 - ] - }, - "ccw": true, - "center": [ - 200.0, - 100.0 - ], - "from": [ - 280.0, - 100.0 - ], - "radius": 80.0, - "tag": { - "end": 552, - "start": 544, - "type": "TagDeclarator", - "value": "arc_tag" - }, - "to": [ - 280.0, - 99.99999999999999 - ], - "type": "Arc" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 531, - 553, - 0 - ], - "tag": { - "end": 552, - "start": 544, - "type": "TagDeclarator", - "value": "arc_tag" - }, - "type": "extrudeArc" - } - }, - "__meta": [ - { - "sourceRange": [ - 544, - 552, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 472, - 523, - 0 - ] - } - ] - }, - "height": 100.0, - "startCapId": null, - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 472, - 523, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 979, 980, diff --git a/src/wasm-lib/kcl/tests/poop_chute/ops.snap b/src/wasm-lib/kcl/tests/poop_chute/ops.snap index 558df6d26b..1c232b0d89 100644 --- a/src/wasm-lib/kcl/tests/poop_chute/ops.snap +++ b/src/wasm-lib/kcl/tests/poop_chute/ops.snap @@ -38,148 +38,6 @@ description: Operations executed poop_chute.kcl { "labeledArgs": { "data": { - "value": { - "type": "Object", - "value": { - "angle": { - "type": "Number", - "value": 90.0, - "__meta": [ - { - "sourceRange": [ - 834, - 836, - 0 - ] - } - ] - }, - "axis": { - "type": "Object", - "value": { - "custom": { - "type": "Object", - "value": { - "axis": { - "type": "Array", - "value": [ - { - "type": "Number", - "value": 1.0, - "__meta": [ - { - "sourceRange": [ - 878, - 881, - 0 - ] - } - ] - }, - { - "type": "Number", - "value": 0.0, - "__meta": [ - { - "sourceRange": [ - 883, - 886, - 0 - ] - } - ] - } - ], - "__meta": [ - { - "sourceRange": [ - 877, - 887, - 0 - ] - } - ] - }, - "origin": { - "type": "Array", - "value": [ - { - "type": "Number", - "value": 0.0, - "__meta": [ - { - "sourceRange": [ - 905, - 908, - 0 - ] - } - ] - }, - { - "type": "Number", - "value": 5.5000001, - "__meta": [ - { - "sourceRange": [ - 77, - 80, - 0 - ] - }, - { - "sourceRange": [ - 919, - 927, - 0 - ] - } - ] - } - ], - "__meta": [ - { - "sourceRange": [ - 904, - 928, - 0 - ] - } - ] - } - }, - "__meta": [ - { - "sourceRange": [ - 862, - 934, - 0 - ] - } - ] - } - }, - "__meta": [ - { - "sourceRange": [ - 847, - 938, - 0 - ] - } - ] - } - }, - "__meta": [ - { - "sourceRange": [ - 822, - 940, - 0 - ] - } - ] - }, "sourceRange": [ 822, 940, @@ -187,388 +45,9 @@ description: Operations executed poop_chute.kcl ] }, "sketch": { - "value": { - "type": "Sketch", - "value": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 258, - 286, - 0 - ] - }, - "from": [ - 1.0, - 0.0 - ], - "tag": null, - "to": [ - 1.0625, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 292, - 355, - 0 - ] - }, - "from": [ - 1.0625, - 0.0 - ], - "tag": { - "end": 354, - "start": 348, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 2.0, - 0.9375 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 361, - 379, - 0 - ] - }, - "from": [ - 2.0, - 0.9375 - ], - "tag": null, - "to": [ - 2.0, - 5.5 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 385, - 410, - 0 - ] - }, - "from": [ - 2.0, - 5.5 - ], - "tag": null, - "to": [ - 1.875, - 5.5 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 416, - 442, - 0 - ] - }, - "from": [ - 1.875, - 5.5 - ], - "tag": null, - "to": [ - 1.875, - 0.9375 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 448, - 547, - 0 - ] - }, - "from": [ - 1.875, - 0.9375 - ], - "tag": null, - "to": [ - 1.0625, - 0.125 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 553, - 578, - 0 - ] - }, - "from": [ - 1.0625, - 0.125 - ], - "tag": null, - "to": [ - 0.9375, - 0.125 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 584, - 662, - 0 - ] - }, - "from": [ - 0.9375, - 0.125 - ], - "tag": null, - "to": [ - 0.125, - 0.9375 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 668, - 686, - 0 - ] - }, - "from": [ - 0.125, - 0.9375 - ], - "tag": null, - "to": [ - 0.125, - 5.5 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 692, - 705, - 0 - ] - }, - "from": [ - 0.125, - 5.5 - ], - "tag": null, - "to": [ - 0.0, - 5.5 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 711, - 737, - 0 - ] - }, - "from": [ - 0.0, - 5.5 - ], - "tag": null, - "to": [ - 0.0, - 0.9375 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 743, - 789, - 0 - ] - }, - "from": [ - 0.0, - 0.9375 - ], - "tag": null, - "to": [ - 0.9375, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 795, - 803, - 0 - ] - }, - "from": [ - 0.9375, - 0.0 - ], - "tag": null, - "to": [ - 1.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "YZ", - "origin": { - "x": 0.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": [] - }, - "start": { - "from": [ - 1.0, - 0.0 - ], - "to": [ - 1.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 208, - 252, - 0 - ] - } - }, - "tags": { - "seg01": { - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 292, - 355, - 0 - ] - }, - "from": [ - 1.0625, - 0.0 - ], - "tag": { - "end": 354, - "start": 348, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 2.0, - 0.9374999999999999 - ], - "type": "ToPoint" - }, - "surface": null - }, - "__meta": [ - { - "sourceRange": [ - 348, - 354, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 208, - 252, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 942, 951, diff --git a/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times-different-order/ops.snap b/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times-different-order/ops.snap index 5ec933d43d..90df6d83af 100644 --- a/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times-different-order/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times-different-order/ops.snap @@ -66,326 +66,9 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl ], "type": "StdLibCall", "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "to": [ - 344.23, - 317.2 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ] - }, - "from": [ - 344.23, - 317.2 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 344.23, - 99.94 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 253, - 350, - 0 - ] - }, - "from": [ - 344.23, - 99.94 - ], - "tag": null, - "to": [ - 75.8, - 99.94 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ] - }, - "from": [ - 75.8, - 99.94 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 432, - 440, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": null, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 75.8, - 317.2 - ], - "to": [ - 75.8, - 317.2 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 37, - 69, - 0 - ] - } - }, - "tags": { - "rectangleSegmentA001": { - "type": "TagIdentifier", - "value": "rectangleSegmentA001", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "to": [ - 344.23, - 317.2 - ], - "type": "ToPoint" - }, - "surface": null - }, - "__meta": [ - { - "sourceRange": [ - 132, - 153, - 0 - ] - } - ] - }, - "seg01": { - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ] - }, - "from": [ - 344.23, - 317.2 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 344.23, - 99.94 - ], - "type": "ToPoint" - }, - "surface": null - }, - "__meta": [ - { - "sourceRange": [ - 240, - 246, - 0 - ] - } - ] - }, - "seg02": { - "type": "TagIdentifier", - "value": "seg02", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ] - }, - "from": [ - 75.80000000000001, - 99.94 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - }, - "surface": null - }, - "__meta": [ - { - "sourceRange": [ - 419, - 425, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 69, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 462, 471, @@ -396,107 +79,6 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl { "labeledArgs": { "data": { - "value": { - "type": "Object", - "value": { - "radius": { - "type": "Number", - "value": 20.0, - "__meta": [ - { - "sourceRange": [ - 510, - 512, - 0 - ] - } - ] - }, - "tags": { - "type": "Array", - "value": [ - { - "type": "TagIdentifier", - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ] - }, - "from": [ - 344.23, - 317.2 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 344.23, - 99.94 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 240, - 246, - 0 - ] - } - ] - } - ], - "__meta": [ - { - "sourceRange": [ - 521, - 528, - 0 - ] - } - ] - } - }, - "__meta": [ - { - "sourceRange": [ - 499, - 530, - 0 - ] - } - ] - }, "sourceRange": [ 499, 530, @@ -504,452 +86,9 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl ] }, "solid": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 253, - 350, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "to": [ - 344.23, - 317.2 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ] - }, - "from": [ - 344.23, - 317.2 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 344.23, - 99.94 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 253, - 350, - 0 - ] - }, - "from": [ - 344.23, - 99.94 - ], - "tag": null, - "to": [ - 75.8, - 99.94 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ] - }, - "from": [ - 75.8, - 99.94 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 432, - 440, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": null, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 75.8, - 317.2 - ], - "to": [ - 75.8, - 317.2 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 37, - 69, - 0 - ] - } - }, - "tags": { - "rectangleSegmentA001": { - "type": "TagIdentifier", - "value": "rectangleSegmentA001", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "to": [ - 344.23, - 317.2 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 132, - 153, - 0 - ] - } - ] - }, - "seg01": { - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ] - }, - "from": [ - 344.23, - 317.2 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 344.23, - 99.94 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 240, - 246, - 0 - ] - } - ] - }, - "seg02": { - "type": "TagIdentifier", - "value": "seg02", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ] - }, - "from": [ - 75.80000000000001, - 99.94 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 419, - 425, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 69, - 0 - ] - } - ] - }, - "height": 100.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 69, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 532, 533, @@ -969,60 +108,6 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl { "labeledArgs": { "data": { - "value": { - "type": "Object", - "value": { - "length": { - "type": "Number", - "value": 50.0, - "__meta": [ - { - "sourceRange": [ - 566, - 568, - 0 - ] - } - ] - }, - "tags": { - "type": "Array", - "value": [ - { - "type": "Uuid", - "value": "[uuid]", - "__meta": [ - { - "sourceRange": [ - 585, - 607, - 0 - ] - } - ] - } - ], - "__meta": [ - { - "sourceRange": [ - 584, - 608, - 0 - ] - } - ] - } - }, - "__meta": [ - { - "sourceRange": [ - 548, - 615, - 0 - ] - } - ] - }, "sourceRange": [ 548, 615, @@ -1030,461 +115,9 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl ] }, "solid": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 253, - 350, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "to": [ - 344.23, - 317.2 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ] - }, - "from": [ - 344.23, - 317.2 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 344.23, - 99.94 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 253, - 350, - 0 - ] - }, - "from": [ - 344.23, - 99.94 - ], - "tag": null, - "to": [ - 75.8, - 99.94 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ] - }, - "from": [ - 75.8, - 99.94 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 432, - 440, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": null, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 75.8, - 317.2 - ], - "to": [ - 75.8, - 317.2 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 37, - 69, - 0 - ] - } - }, - "tags": { - "rectangleSegmentA001": { - "type": "TagIdentifier", - "value": "rectangleSegmentA001", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "to": [ - 344.23, - 317.2 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 132, - 153, - 0 - ] - } - ] - }, - "seg01": { - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ] - }, - "from": [ - 344.23, - 317.2 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 344.23, - 99.94 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 240, - 246, - 0 - ] - } - ] - }, - "seg02": { - "type": "TagIdentifier", - "value": "seg02", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ] - }, - "from": [ - 75.80000000000001, - 99.94 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 419, - 425, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 69, - 0 - ] - } - ] - }, - "height": 100.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "edgeCuts": [ - { - "type": "fillet", - "id": "[uuid]", - "radius": 20.0, - "edgeId": "[uuid]", - "tag": null - } - ], - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 69, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 617, 618, @@ -1518,107 +151,6 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl { "labeledArgs": { "data": { - "value": { - "type": "Object", - "value": { - "length": { - "type": "Number", - "value": 50.0, - "__meta": [ - { - "sourceRange": [ - 652, - 654, - 0 - ] - } - ] - }, - "tags": { - "type": "Array", - "value": [ - { - "type": "TagIdentifier", - "type": "TagIdentifier", - "value": "seg02", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ] - }, - "from": [ - 75.80000000000001, - 99.94 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 419, - 425, - 0 - ] - } - ] - } - ], - "__meta": [ - { - "sourceRange": [ - 663, - 670, - 0 - ] - } - ] - } - }, - "__meta": [ - { - "sourceRange": [ - 641, - 672, - 0 - ] - } - ] - }, "sourceRange": [ 641, 672, @@ -1626,524 +158,9 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl ] }, "solid": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 253, - 350, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 540, - 627, - 0 - ], - "tag": { - "end": 626, - "start": 620, - "type": "TagDeclarator", - "value": "seg03" - }, - "type": "chamfer" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "to": [ - 344.23, - 317.2 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ] - }, - "from": [ - 344.23, - 317.2 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 344.23, - 99.94 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 253, - 350, - 0 - ] - }, - "from": [ - 344.23, - 99.94 - ], - "tag": null, - "to": [ - 75.8, - 99.94 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ] - }, - "from": [ - 75.8, - 99.94 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 432, - 440, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": null, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 75.8, - 317.2 - ], - "to": [ - 75.8, - 317.2 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 37, - 69, - 0 - ] - } - }, - "tags": { - "rectangleSegmentA001": { - "type": "TagIdentifier", - "value": "rectangleSegmentA001", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "to": [ - 344.23, - 317.2 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 132, - 153, - 0 - ] - } - ] - }, - "seg01": { - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ] - }, - "from": [ - 344.23, - 317.2 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 344.23, - 99.94 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 240, - 246, - 0 - ] - } - ] - }, - "seg02": { - "type": "TagIdentifier", - "value": "seg02", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ] - }, - "from": [ - 75.80000000000001, - 99.94 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 419, - 425, - 0 - ] - } - ] - }, - "seg03": { - "type": "TagIdentifier", - "value": "seg03", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": null, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 540, - 627, - 0 - ], - "tag": { - "end": 626, - "start": 620, - "type": "TagDeclarator", - "value": "seg03" - }, - "type": "chamfer" - } - }, - "__meta": [ - { - "sourceRange": [ - 620, - 626, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 69, - 0 - ] - } - ] - }, - "height": 100.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "edgeCuts": [ - { - "type": "fillet", - "id": "[uuid]", - "radius": 20.0, - "edgeId": "[uuid]", - "tag": null - }, - { - "type": "chamfer", - "id": "[uuid]", - "length": 50.0, - "edgeId": "[uuid]", - "tag": { - "end": 626, - "start": 620, - "type": "TagDeclarator", - "value": "seg03" - } - } - ], - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 69, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 674, 675, @@ -2177,587 +194,9 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl { "labeledArgs": { "data": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 253, - 350, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 540, - 627, - 0 - ], - "tag": { - "end": 626, - "start": 620, - "type": "TagDeclarator", - "value": "seg03" - }, - "type": "chamfer" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 633, - 684, - 0 - ], - "tag": { - "end": 683, - "start": 677, - "type": "TagDeclarator", - "value": "seg04" - }, - "type": "chamfer" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "to": [ - 344.23, - 317.2 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ] - }, - "from": [ - 344.23, - 317.2 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 344.23, - 99.94 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 253, - 350, - 0 - ] - }, - "from": [ - 344.23, - 99.94 - ], - "tag": null, - "to": [ - 75.8, - 99.94 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ] - }, - "from": [ - 75.8, - 99.94 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 432, - 440, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": null, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 75.8, - 317.2 - ], - "to": [ - 75.8, - 317.2 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 37, - 69, - 0 - ] - } - }, - "tags": { - "rectangleSegmentA001": { - "type": "TagIdentifier", - "value": "rectangleSegmentA001", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "to": [ - 344.23, - 317.2 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 132, - 153, - 0 - ] - } - ] - }, - "seg01": { - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ] - }, - "from": [ - 344.23, - 317.2 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 344.23, - 99.94 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 240, - 246, - 0 - ] - } - ] - }, - "seg02": { - "type": "TagIdentifier", - "value": "seg02", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ] - }, - "from": [ - 75.80000000000001, - 99.94 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 419, - 425, - 0 - ] - } - ] - }, - "seg03": { - "type": "TagIdentifier", - "value": "seg03", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": null, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 540, - 627, - 0 - ], - "tag": { - "end": 626, - "start": 620, - "type": "TagDeclarator", - "value": "seg03" - }, - "type": "chamfer" - } - }, - "__meta": [ - { - "sourceRange": [ - 620, - 626, - 0 - ] - } - ] - }, - "seg04": { - "type": "TagIdentifier", - "value": "seg04", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": null, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 633, - 684, - 0 - ], - "tag": { - "end": 683, - "start": 677, - "type": "TagDeclarator", - "value": "seg04" - }, - "type": "chamfer" - } - }, - "__meta": [ - { - "sourceRange": [ - 677, - 683, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 69, - 0 - ] - } - ] - }, - "height": 100.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "edgeCuts": [ - { - "type": "fillet", - "id": "[uuid]", - "radius": 20.0, - "edgeId": "[uuid]", - "tag": null - }, - { - "type": "chamfer", - "id": "[uuid]", - "length": 50.0, - "edgeId": "[uuid]", - "tag": { - "end": 626, - "start": 620, - "type": "TagDeclarator", - "value": "seg03" - } - }, - { - "type": "chamfer", - "id": "[uuid]", - "length": 50.0, - "edgeId": "[uuid]", - "tag": { - "end": 683, - "start": 677, - "type": "TagDeclarator", - "value": "seg04" - } - } - ], - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 69, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 712, 722, @@ -2820,587 +259,9 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl { "labeledArgs": { "data": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 253, - 350, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 540, - 627, - 0 - ], - "tag": { - "end": 626, - "start": 620, - "type": "TagDeclarator", - "value": "seg03" - }, - "type": "chamfer" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 633, - 684, - 0 - ], - "tag": { - "end": 683, - "start": 677, - "type": "TagDeclarator", - "value": "seg04" - }, - "type": "chamfer" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "to": [ - 344.23, - 317.2 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ] - }, - "from": [ - 344.23, - 317.2 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 344.23, - 99.94 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 253, - 350, - 0 - ] - }, - "from": [ - 344.23, - 99.94 - ], - "tag": null, - "to": [ - 75.8, - 99.94 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ] - }, - "from": [ - 75.8, - 99.94 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 432, - 440, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": null, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 75.8, - 317.2 - ], - "to": [ - 75.8, - 317.2 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 37, - 69, - 0 - ] - } - }, - "tags": { - "rectangleSegmentA001": { - "type": "TagIdentifier", - "value": "rectangleSegmentA001", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "to": [ - 344.23, - 317.2 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 132, - 153, - 0 - ] - } - ] - }, - "seg01": { - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ] - }, - "from": [ - 344.23, - 317.2 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 344.23, - 99.94 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 240, - 246, - 0 - ] - } - ] - }, - "seg02": { - "type": "TagIdentifier", - "value": "seg02", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ] - }, - "from": [ - 75.80000000000001, - 99.94 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 419, - 425, - 0 - ] - } - ] - }, - "seg03": { - "type": "TagIdentifier", - "value": "seg03", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": null, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 540, - 627, - 0 - ], - "tag": { - "end": 626, - "start": 620, - "type": "TagDeclarator", - "value": "seg03" - }, - "type": "chamfer" - } - }, - "__meta": [ - { - "sourceRange": [ - 620, - 626, - 0 - ] - } - ] - }, - "seg04": { - "type": "TagIdentifier", - "value": "seg04", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": null, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 633, - 684, - 0 - ], - "tag": { - "end": 683, - "start": 677, - "type": "TagDeclarator", - "value": "seg04" - }, - "type": "chamfer" - } - }, - "__meta": [ - { - "sourceRange": [ - 677, - 683, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 69, - 0 - ] - } - ] - }, - "height": 100.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "edgeCuts": [ - { - "type": "fillet", - "id": "[uuid]", - "radius": 20.0, - "edgeId": "[uuid]", - "tag": null - }, - { - "type": "chamfer", - "id": "[uuid]", - "length": 50.0, - "edgeId": "[uuid]", - "tag": { - "end": 626, - "start": 620, - "type": "TagDeclarator", - "value": "seg03" - } - }, - { - "type": "chamfer", - "id": "[uuid]", - "length": 50.0, - "edgeId": "[uuid]", - "tag": { - "end": 683, - "start": 677, - "type": "TagDeclarator", - "value": "seg04" - } - } - ], - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 69, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 1160, 1170, @@ -3491,907 +352,9 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl ], "type": "StdLibCall", "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1225, - 1273, - 0 - ] - }, - "from": [ - 159.25, - 278.35 - ], - "tag": { - "end": 1272, - "start": 1251, - "type": "TagDeclarator", - "value": "rectangleSegmentA002" - }, - "to": [ - 200.07, - 278.35 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1279, - 1381, - 0 - ] - }, - "from": [ - 200.07, - 278.35 - ], - "tag": { - "end": 1380, - "start": 1359, - "type": "TagDeclarator", - "value": "rectangleSegmentB001" - }, - "to": [ - 200.07, - 146.08 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1387, - 1507, - 0 - ] - }, - "from": [ - 200.07, - 146.08 - ], - "tag": { - "end": 1506, - "start": 1485, - "type": "TagDeclarator", - "value": "rectangleSegmentC001" - }, - "to": [ - 159.25, - 146.08 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1513, - 1569, - 0 - ] - }, - "from": [ - 159.25, - 146.08 - ], - "tag": null, - "to": [ - 159.25, - 278.35 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1575, - 1583, - 0 - ] - }, - "from": [ - 159.25, - 278.35 - ], - "tag": null, - "to": [ - 159.25, - 278.35 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "face", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "seg03", - "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 - }, - "solid": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 253, - 350, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 540, - 627, - 0 - ], - "tag": { - "end": 626, - "start": 620, - "type": "TagDeclarator", - "value": "seg03" - }, - "type": "chamfer" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 633, - 684, - 0 - ], - "tag": { - "end": 683, - "start": 677, - "type": "TagDeclarator", - "value": "seg04" - }, - "type": "chamfer" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "to": [ - 344.23, - 317.2 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ] - }, - "from": [ - 344.23, - 317.2 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 344.23, - 99.94 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 253, - 350, - 0 - ] - }, - "from": [ - 344.23, - 99.94 - ], - "tag": null, - "to": [ - 75.8, - 99.94 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ] - }, - "from": [ - 75.8, - 99.94 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 432, - 440, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": null, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 75.8, - 317.2 - ], - "to": [ - 75.8, - 317.2 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 37, - 69, - 0 - ] - } - }, - "tags": { - "rectangleSegmentA001": { - "type": "TagIdentifier", - "value": "rectangleSegmentA001", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "to": [ - 344.23, - 317.2 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 132, - 153, - 0 - ] - } - ] - }, - "seg01": { - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ] - }, - "from": [ - 344.23, - 317.2 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 344.23, - 99.94 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 240, - 246, - 0 - ] - } - ] - }, - "seg02": { - "type": "TagIdentifier", - "value": "seg02", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ] - }, - "from": [ - 75.80000000000001, - 99.94 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 419, - 425, - 0 - ] - } - ] - }, - "seg03": { - "type": "TagIdentifier", - "value": "seg03", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": null, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 540, - 627, - 0 - ], - "tag": { - "end": 626, - "start": 620, - "type": "TagDeclarator", - "value": "seg03" - }, - "type": "chamfer" - } - }, - "__meta": [ - { - "sourceRange": [ - 620, - 626, - 0 - ] - } - ] - }, - "seg04": { - "type": "TagIdentifier", - "value": "seg04", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": null, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 633, - 684, - 0 - ], - "tag": { - "end": 683, - "start": 677, - "type": "TagDeclarator", - "value": "seg04" - }, - "type": "chamfer" - } - }, - "__meta": [ - { - "sourceRange": [ - 677, - 683, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 69, - 0 - ] - } - ] - }, - "height": 100.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "edgeCuts": [ - { - "type": "fillet", - "id": "[uuid]", - "radius": 20.0, - "edgeId": "[uuid]", - "tag": null - }, - { - "type": "chamfer", - "id": "[uuid]", - "length": 50.0, - "edgeId": "[uuid]", - "tag": { - "end": 626, - "start": 620, - "type": "TagDeclarator", - "value": "seg03" - } - }, - { - "type": "chamfer", - "id": "[uuid]", - "length": 50.0, - "edgeId": "[uuid]", - "tag": { - "end": 683, - "start": 677, - "type": "TagDeclarator", - "value": "seg04" - } - } - ], - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 69, - 0 - ] - } - ] - }, - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 1146, - 1178, - 0 - ] - } - ] - }, - "start": { - "from": [ - 159.25, - 278.35 - ], - "to": [ - 159.25, - 278.35 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1184, - 1219, - 0 - ] - } - }, - "tags": { - "rectangleSegmentA002": { - "type": "TagIdentifier", - "value": "rectangleSegmentA002", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1225, - 1273, - 0 - ] - }, - "from": [ - 159.25, - 278.35 - ], - "tag": { - "end": 1272, - "start": 1251, - "type": "TagDeclarator", - "value": "rectangleSegmentA002" - }, - "to": [ - 200.07, - 278.35 - ], - "type": "ToPoint" - }, - "surface": null - }, - "__meta": [ - { - "sourceRange": [ - 1251, - 1272, - 0 - ] - } - ] - }, - "rectangleSegmentB001": { - "type": "TagIdentifier", - "value": "rectangleSegmentB001", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1279, - 1381, - 0 - ] - }, - "from": [ - 200.07, - 278.35 - ], - "tag": { - "end": 1380, - "start": 1359, - "type": "TagDeclarator", - "value": "rectangleSegmentB001" - }, - "to": [ - 200.07, - 146.08 - ], - "type": "ToPoint" - }, - "surface": null - }, - "__meta": [ - { - "sourceRange": [ - 1359, - 1380, - 0 - ] - } - ] - }, - "rectangleSegmentC001": { - "type": "TagIdentifier", - "value": "rectangleSegmentC001", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1387, - 1507, - 0 - ] - }, - "from": [ - 200.07, - 146.08 - ], - "tag": { - "end": 1506, - "start": 1485, - "type": "TagDeclarator", - "value": "rectangleSegmentC001" - }, - "to": [ - 159.25, - 146.08 - ], - "type": "ToPoint" - }, - "surface": null - }, - "__meta": [ - { - "sourceRange": [ - 1485, - 1506, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 1184, - 1219, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 1605, 1614, diff --git a/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times/ops.snap b/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times/ops.snap index e7997584f2..5c311e3375 100644 --- a/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times/ops.snap @@ -66,326 +66,9 @@ description: Operations executed sketch-on-chamfer-two-times.kcl ], "type": "StdLibCall", "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "to": [ - 344.23, - 317.2 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ] - }, - "from": [ - 344.23, - 317.2 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 344.23, - 99.94 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 253, - 350, - 0 - ] - }, - "from": [ - 344.23, - 99.94 - ], - "tag": null, - "to": [ - 75.8, - 99.94 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ] - }, - "from": [ - 75.8, - 99.94 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 432, - 440, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": null, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 75.8, - 317.2 - ], - "to": [ - 75.8, - 317.2 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 37, - 69, - 0 - ] - } - }, - "tags": { - "rectangleSegmentA001": { - "type": "TagIdentifier", - "value": "rectangleSegmentA001", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "to": [ - 344.23, - 317.2 - ], - "type": "ToPoint" - }, - "surface": null - }, - "__meta": [ - { - "sourceRange": [ - 132, - 153, - 0 - ] - } - ] - }, - "seg01": { - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ] - }, - "from": [ - 344.23, - 317.2 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 344.23, - 99.94 - ], - "type": "ToPoint" - }, - "surface": null - }, - "__meta": [ - { - "sourceRange": [ - 240, - 246, - 0 - ] - } - ] - }, - "seg02": { - "type": "TagIdentifier", - "value": "seg02", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ] - }, - "from": [ - 75.80000000000001, - 99.94 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - }, - "surface": null - }, - "__meta": [ - { - "sourceRange": [ - 419, - 425, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 69, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 462, 471, @@ -396,107 +79,6 @@ description: Operations executed sketch-on-chamfer-two-times.kcl { "labeledArgs": { "data": { - "value": { - "type": "Object", - "value": { - "radius": { - "type": "Number", - "value": 20.0, - "__meta": [ - { - "sourceRange": [ - 510, - 512, - 0 - ] - } - ] - }, - "tags": { - "type": "Array", - "value": [ - { - "type": "TagIdentifier", - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ] - }, - "from": [ - 344.23, - 317.2 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 344.23, - 99.94 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 240, - 246, - 0 - ] - } - ] - } - ], - "__meta": [ - { - "sourceRange": [ - 521, - 528, - 0 - ] - } - ] - } - }, - "__meta": [ - { - "sourceRange": [ - 499, - 530, - 0 - ] - } - ] - }, "sourceRange": [ 499, 530, @@ -504,452 +86,9 @@ description: Operations executed sketch-on-chamfer-two-times.kcl ] }, "solid": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 253, - 350, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "to": [ - 344.23, - 317.2 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ] - }, - "from": [ - 344.23, - 317.2 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 344.23, - 99.94 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 253, - 350, - 0 - ] - }, - "from": [ - 344.23, - 99.94 - ], - "tag": null, - "to": [ - 75.8, - 99.94 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ] - }, - "from": [ - 75.8, - 99.94 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 432, - 440, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": null, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 75.8, - 317.2 - ], - "to": [ - 75.8, - 317.2 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 37, - 69, - 0 - ] - } - }, - "tags": { - "rectangleSegmentA001": { - "type": "TagIdentifier", - "value": "rectangleSegmentA001", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "to": [ - 344.23, - 317.2 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 132, - 153, - 0 - ] - } - ] - }, - "seg01": { - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ] - }, - "from": [ - 344.23, - 317.2 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 344.23, - 99.94 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 240, - 246, - 0 - ] - } - ] - }, - "seg02": { - "type": "TagIdentifier", - "value": "seg02", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ] - }, - "from": [ - 75.80000000000001, - 99.94 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 419, - 425, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 69, - 0 - ] - } - ] - }, - "height": 100.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 69, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 532, 533, @@ -969,107 +108,6 @@ description: Operations executed sketch-on-chamfer-two-times.kcl { "labeledArgs": { "data": { - "value": { - "type": "Object", - "value": { - "length": { - "type": "Number", - "value": 50.0, - "__meta": [ - { - "sourceRange": [ - 559, - 561, - 0 - ] - } - ] - }, - "tags": { - "type": "Array", - "value": [ - { - "type": "TagIdentifier", - "type": "TagIdentifier", - "value": "seg02", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ] - }, - "from": [ - 75.80000000000001, - 99.94 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 419, - 425, - 0 - ] - } - ] - } - ], - "__meta": [ - { - "sourceRange": [ - 570, - 577, - 0 - ] - } - ] - } - }, - "__meta": [ - { - "sourceRange": [ - 548, - 579, - 0 - ] - } - ] - }, "sourceRange": [ 548, 579, @@ -1077,461 +115,9 @@ description: Operations executed sketch-on-chamfer-two-times.kcl ] }, "solid": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 253, - 350, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "to": [ - 344.23, - 317.2 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ] - }, - "from": [ - 344.23, - 317.2 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 344.23, - 99.94 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 253, - 350, - 0 - ] - }, - "from": [ - 344.23, - 99.94 - ], - "tag": null, - "to": [ - 75.8, - 99.94 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ] - }, - "from": [ - 75.8, - 99.94 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 432, - 440, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": null, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 75.8, - 317.2 - ], - "to": [ - 75.8, - 317.2 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 37, - 69, - 0 - ] - } - }, - "tags": { - "rectangleSegmentA001": { - "type": "TagIdentifier", - "value": "rectangleSegmentA001", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "to": [ - 344.23, - 317.2 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 132, - 153, - 0 - ] - } - ] - }, - "seg01": { - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ] - }, - "from": [ - 344.23, - 317.2 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 344.23, - 99.94 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 240, - 246, - 0 - ] - } - ] - }, - "seg02": { - "type": "TagIdentifier", - "value": "seg02", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ] - }, - "from": [ - 75.80000000000001, - 99.94 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 419, - 425, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 69, - 0 - ] - } - ] - }, - "height": 100.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "edgeCuts": [ - { - "type": "fillet", - "id": "[uuid]", - "radius": 20.0, - "edgeId": "[uuid]", - "tag": null - } - ], - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 69, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 581, 582, @@ -1565,60 +151,6 @@ description: Operations executed sketch-on-chamfer-two-times.kcl { "labeledArgs": { "data": { - "value": { - "type": "Object", - "value": { - "length": { - "type": "Number", - "value": 50.0, - "__meta": [ - { - "sourceRange": [ - 623, - 625, - 0 - ] - } - ] - }, - "tags": { - "type": "Array", - "value": [ - { - "type": "Uuid", - "value": "[uuid]", - "__meta": [ - { - "sourceRange": [ - 642, - 664, - 0 - ] - } - ] - } - ], - "__meta": [ - { - "sourceRange": [ - 641, - 665, - 0 - ] - } - ] - } - }, - "__meta": [ - { - "sourceRange": [ - 605, - 672, - 0 - ] - } - ] - }, "sourceRange": [ 605, 672, @@ -1626,524 +158,9 @@ description: Operations executed sketch-on-chamfer-two-times.kcl ] }, "solid": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 253, - 350, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 540, - 591, - 0 - ], - "tag": { - "end": 590, - "start": 584, - "type": "TagDeclarator", - "value": "seg04" - }, - "type": "chamfer" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "to": [ - 344.23, - 317.2 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ] - }, - "from": [ - 344.23, - 317.2 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 344.23, - 99.94 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 253, - 350, - 0 - ] - }, - "from": [ - 344.23, - 99.94 - ], - "tag": null, - "to": [ - 75.8, - 99.94 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ] - }, - "from": [ - 75.8, - 99.94 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 432, - 440, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": null, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 75.8, - 317.2 - ], - "to": [ - 75.8, - 317.2 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 37, - 69, - 0 - ] - } - }, - "tags": { - "rectangleSegmentA001": { - "type": "TagIdentifier", - "value": "rectangleSegmentA001", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "to": [ - 344.23, - 317.2 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 132, - 153, - 0 - ] - } - ] - }, - "seg01": { - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ] - }, - "from": [ - 344.23, - 317.2 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 344.23, - 99.94 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 240, - 246, - 0 - ] - } - ] - }, - "seg02": { - "type": "TagIdentifier", - "value": "seg02", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ] - }, - "from": [ - 75.80000000000001, - 99.94 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 419, - 425, - 0 - ] - } - ] - }, - "seg04": { - "type": "TagIdentifier", - "value": "seg04", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": null, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 540, - 591, - 0 - ], - "tag": { - "end": 590, - "start": 584, - "type": "TagDeclarator", - "value": "seg04" - }, - "type": "chamfer" - } - }, - "__meta": [ - { - "sourceRange": [ - 584, - 590, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 69, - 0 - ] - } - ] - }, - "height": 100.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "edgeCuts": [ - { - "type": "fillet", - "id": "[uuid]", - "radius": 20.0, - "edgeId": "[uuid]", - "tag": null - }, - { - "type": "chamfer", - "id": "[uuid]", - "length": 50.0, - "edgeId": "[uuid]", - "tag": { - "end": 590, - "start": 584, - "type": "TagDeclarator", - "value": "seg04" - } - } - ], - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 69, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 674, 675, @@ -2177,587 +194,9 @@ description: Operations executed sketch-on-chamfer-two-times.kcl { "labeledArgs": { "data": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 253, - 350, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 540, - 591, - 0 - ], - "tag": { - "end": 590, - "start": 584, - "type": "TagDeclarator", - "value": "seg04" - }, - "type": "chamfer" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 597, - 684, - 0 - ], - "tag": { - "end": 683, - "start": 677, - "type": "TagDeclarator", - "value": "seg03" - }, - "type": "chamfer" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "to": [ - 344.23, - 317.2 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ] - }, - "from": [ - 344.23, - 317.2 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 344.23, - 99.94 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 253, - 350, - 0 - ] - }, - "from": [ - 344.23, - 99.94 - ], - "tag": null, - "to": [ - 75.8, - 99.94 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ] - }, - "from": [ - 75.8, - 99.94 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 432, - 440, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": null, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 75.8, - 317.2 - ], - "to": [ - 75.8, - 317.2 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 37, - 69, - 0 - ] - } - }, - "tags": { - "rectangleSegmentA001": { - "type": "TagIdentifier", - "value": "rectangleSegmentA001", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "to": [ - 344.23, - 317.2 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 132, - 153, - 0 - ] - } - ] - }, - "seg01": { - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ] - }, - "from": [ - 344.23, - 317.2 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 344.23, - 99.94 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 240, - 246, - 0 - ] - } - ] - }, - "seg02": { - "type": "TagIdentifier", - "value": "seg02", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ] - }, - "from": [ - 75.80000000000001, - 99.94 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 419, - 425, - 0 - ] - } - ] - }, - "seg03": { - "type": "TagIdentifier", - "value": "seg03", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": null, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 597, - 684, - 0 - ], - "tag": { - "end": 683, - "start": 677, - "type": "TagDeclarator", - "value": "seg03" - }, - "type": "chamfer" - } - }, - "__meta": [ - { - "sourceRange": [ - 677, - 683, - 0 - ] - } - ] - }, - "seg04": { - "type": "TagIdentifier", - "value": "seg04", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": null, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 540, - 591, - 0 - ], - "tag": { - "end": 590, - "start": 584, - "type": "TagDeclarator", - "value": "seg04" - }, - "type": "chamfer" - } - }, - "__meta": [ - { - "sourceRange": [ - 584, - 590, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 69, - 0 - ] - } - ] - }, - "height": 100.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "edgeCuts": [ - { - "type": "fillet", - "id": "[uuid]", - "radius": 20.0, - "edgeId": "[uuid]", - "tag": null - }, - { - "type": "chamfer", - "id": "[uuid]", - "length": 50.0, - "edgeId": "[uuid]", - "tag": { - "end": 590, - "start": 584, - "type": "TagDeclarator", - "value": "seg04" - } - }, - { - "type": "chamfer", - "id": "[uuid]", - "length": 50.0, - "edgeId": "[uuid]", - "tag": { - "end": 683, - "start": 677, - "type": "TagDeclarator", - "value": "seg03" - } - } - ], - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 69, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 712, 722, @@ -2820,587 +259,9 @@ description: Operations executed sketch-on-chamfer-two-times.kcl { "labeledArgs": { "data": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 253, - 350, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 540, - 591, - 0 - ], - "tag": { - "end": 590, - "start": 584, - "type": "TagDeclarator", - "value": "seg04" - }, - "type": "chamfer" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 597, - 684, - 0 - ], - "tag": { - "end": 683, - "start": 677, - "type": "TagDeclarator", - "value": "seg03" - }, - "type": "chamfer" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "to": [ - 344.23, - 317.2 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ] - }, - "from": [ - 344.23, - 317.2 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 344.23, - 99.94 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 253, - 350, - 0 - ] - }, - "from": [ - 344.23, - 99.94 - ], - "tag": null, - "to": [ - 75.8, - 99.94 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ] - }, - "from": [ - 75.8, - 99.94 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 432, - 440, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": null, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 75.8, - 317.2 - ], - "to": [ - 75.8, - 317.2 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 37, - 69, - 0 - ] - } - }, - "tags": { - "rectangleSegmentA001": { - "type": "TagIdentifier", - "value": "rectangleSegmentA001", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "to": [ - 344.23, - 317.2 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 132, - 153, - 0 - ] - } - ] - }, - "seg01": { - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ] - }, - "from": [ - 344.23, - 317.2 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 344.23, - 99.94 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 240, - 246, - 0 - ] - } - ] - }, - "seg02": { - "type": "TagIdentifier", - "value": "seg02", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ] - }, - "from": [ - 75.80000000000001, - 99.94 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 419, - 425, - 0 - ] - } - ] - }, - "seg03": { - "type": "TagIdentifier", - "value": "seg03", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": null, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 597, - 684, - 0 - ], - "tag": { - "end": 683, - "start": 677, - "type": "TagDeclarator", - "value": "seg03" - }, - "type": "chamfer" - } - }, - "__meta": [ - { - "sourceRange": [ - 677, - 683, - 0 - ] - } - ] - }, - "seg04": { - "type": "TagIdentifier", - "value": "seg04", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": null, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 540, - 591, - 0 - ], - "tag": { - "end": 590, - "start": 584, - "type": "TagDeclarator", - "value": "seg04" - }, - "type": "chamfer" - } - }, - "__meta": [ - { - "sourceRange": [ - 584, - 590, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 69, - 0 - ] - } - ] - }, - "height": 100.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "edgeCuts": [ - { - "type": "fillet", - "id": "[uuid]", - "radius": 20.0, - "edgeId": "[uuid]", - "tag": null - }, - { - "type": "chamfer", - "id": "[uuid]", - "length": 50.0, - "edgeId": "[uuid]", - "tag": { - "end": 590, - "start": 584, - "type": "TagDeclarator", - "value": "seg04" - } - }, - { - "type": "chamfer", - "id": "[uuid]", - "length": 50.0, - "edgeId": "[uuid]", - "tag": { - "end": 683, - "start": 677, - "type": "TagDeclarator", - "value": "seg03" - } - } - ], - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 69, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 1160, 1170, @@ -3491,907 +352,9 @@ description: Operations executed sketch-on-chamfer-two-times.kcl ], "type": "StdLibCall", "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1225, - 1273, - 0 - ] - }, - "from": [ - 159.25, - 278.35 - ], - "tag": { - "end": 1272, - "start": 1251, - "type": "TagDeclarator", - "value": "rectangleSegmentA002" - }, - "to": [ - 200.07, - 278.35 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1279, - 1381, - 0 - ] - }, - "from": [ - 200.07, - 278.35 - ], - "tag": { - "end": 1380, - "start": 1359, - "type": "TagDeclarator", - "value": "rectangleSegmentB001" - }, - "to": [ - 200.07, - 146.08 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1387, - 1507, - 0 - ] - }, - "from": [ - 200.07, - 146.08 - ], - "tag": { - "end": 1506, - "start": 1485, - "type": "TagDeclarator", - "value": "rectangleSegmentC001" - }, - "to": [ - 159.25, - 146.08 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1513, - 1569, - 0 - ] - }, - "from": [ - 159.25, - 146.08 - ], - "tag": null, - "to": [ - 159.25, - 278.35 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1575, - 1583, - 0 - ] - }, - "from": [ - 159.25, - 278.35 - ], - "tag": null, - "to": [ - 159.25, - 278.35 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "face", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "seg03", - "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 - }, - "solid": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 253, - 350, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 540, - 591, - 0 - ], - "tag": { - "end": 590, - "start": 584, - "type": "TagDeclarator", - "value": "seg04" - }, - "type": "chamfer" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 597, - 684, - 0 - ], - "tag": { - "end": 683, - "start": 677, - "type": "TagDeclarator", - "value": "seg03" - }, - "type": "chamfer" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "to": [ - 344.23, - 317.2 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ] - }, - "from": [ - 344.23, - 317.2 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 344.23, - 99.94 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 253, - 350, - 0 - ] - }, - "from": [ - 344.23, - 99.94 - ], - "tag": null, - "to": [ - 75.8, - 99.94 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ] - }, - "from": [ - 75.8, - 99.94 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 432, - 440, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": null, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - } - ], - "on": { - "type": "plane", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": "XZ", - "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": 0.0, - "z": 1.0 - }, - "zAxis": { - "x": 0.0, - "y": -1.0, - "z": 0.0 - }, - "units": { - "type": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 75.8, - 317.2 - ], - "to": [ - 75.8, - 317.2 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 37, - 69, - 0 - ] - } - }, - "tags": { - "rectangleSegmentA001": { - "type": "TagIdentifier", - "value": "rectangleSegmentA001", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ] - }, - "from": [ - 75.8, - 317.2 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "to": [ - 344.23, - 317.2 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 105, - 154, - 0 - ], - "tag": { - "end": 153, - "start": 132, - "type": "TagDeclarator", - "value": "rectangleSegmentA001" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 132, - 153, - 0 - ] - } - ] - }, - "seg01": { - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ] - }, - "from": [ - 344.23, - 317.2 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 344.23, - 99.94 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 160, - 247, - 0 - ], - "tag": { - "end": 246, - "start": 240, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 240, - 246, - 0 - ] - } - ] - }, - "seg02": { - "type": "TagIdentifier", - "value": "seg02", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ] - }, - "from": [ - 75.80000000000001, - 99.94 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 75.8, - 317.2 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 356, - 426, - 0 - ], - "tag": { - "end": 425, - "start": 419, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 419, - 425, - 0 - ] - } - ] - }, - "seg03": { - "type": "TagIdentifier", - "value": "seg03", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": null, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 597, - 684, - 0 - ], - "tag": { - "end": 683, - "start": 677, - "type": "TagDeclarator", - "value": "seg03" - }, - "type": "chamfer" - } - }, - "__meta": [ - { - "sourceRange": [ - 677, - 683, - 0 - ] - } - ] - }, - "seg04": { - "type": "TagIdentifier", - "value": "seg04", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": null, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 540, - 591, - 0 - ], - "tag": { - "end": 590, - "start": 584, - "type": "TagDeclarator", - "value": "seg04" - }, - "type": "chamfer" - } - }, - "__meta": [ - { - "sourceRange": [ - 584, - 590, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 69, - 0 - ] - } - ] - }, - "height": 100.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "edgeCuts": [ - { - "type": "fillet", - "id": "[uuid]", - "radius": 20.0, - "edgeId": "[uuid]", - "tag": null - }, - { - "type": "chamfer", - "id": "[uuid]", - "length": 50.0, - "edgeId": "[uuid]", - "tag": { - "end": 590, - "start": 584, - "type": "TagDeclarator", - "value": "seg04" - } - }, - { - "type": "chamfer", - "id": "[uuid]", - "length": 50.0, - "edgeId": "[uuid]", - "tag": { - "end": 683, - "start": 677, - "type": "TagDeclarator", - "value": "seg03" - } - } - ], - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 37, - 69, - 0 - ] - } - ] - }, - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 1146, - 1178, - 0 - ] - } - ] - }, - "start": { - "from": [ - 159.25, - 278.35 - ], - "to": [ - 159.25, - 278.35 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1184, - 1219, - 0 - ] - } - }, - "tags": { - "rectangleSegmentA002": { - "type": "TagIdentifier", - "value": "rectangleSegmentA002", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1225, - 1273, - 0 - ] - }, - "from": [ - 159.25, - 278.35 - ], - "tag": { - "end": 1272, - "start": 1251, - "type": "TagDeclarator", - "value": "rectangleSegmentA002" - }, - "to": [ - 200.07, - 278.35 - ], - "type": "ToPoint" - }, - "surface": null - }, - "__meta": [ - { - "sourceRange": [ - 1251, - 1272, - 0 - ] - } - ] - }, - "rectangleSegmentB001": { - "type": "TagIdentifier", - "value": "rectangleSegmentB001", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1279, - 1381, - 0 - ] - }, - "from": [ - 200.07, - 278.35 - ], - "tag": { - "end": 1380, - "start": 1359, - "type": "TagDeclarator", - "value": "rectangleSegmentB001" - }, - "to": [ - 200.07, - 146.08 - ], - "type": "ToPoint" - }, - "surface": null - }, - "__meta": [ - { - "sourceRange": [ - 1359, - 1380, - 0 - ] - } - ] - }, - "rectangleSegmentC001": { - "type": "TagIdentifier", - "value": "rectangleSegmentC001", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1387, - 1507, - 0 - ] - }, - "from": [ - 200.07, - 146.08 - ], - "tag": { - "end": 1506, - "start": 1485, - "type": "TagDeclarator", - "value": "rectangleSegmentC001" - }, - "to": [ - 159.25, - 146.08 - ], - "type": "ToPoint" - }, - "surface": null - }, - "__meta": [ - { - "sourceRange": [ - 1485, - 1506, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 1184, - 1219, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 1605, 1614, diff --git a/src/wasm-lib/kcl/tests/sketch_on_face/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face/ops.snap index 46b072f732..9bb4098983 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face/ops.snap @@ -70,294 +70,9 @@ description: Operations executed sketch_on_face.kcl { "labeledArgs": { "data": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 74, - 114, - 0 - ], - "tag": { - "end": 113, - "start": 108, - "type": "TagDeclarator", - "value": "here" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 120, - 147, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 153, - 180, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 186, - 194, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 74, - 114, - 0 - ] - }, - "from": [ - 11.19, - 28.35 - ], - "tag": { - "end": 113, - "start": 108, - "type": "TagDeclarator", - "value": "here" - }, - "to": [ - 39.86, - 15.1 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 120, - 147, - 0 - ] - }, - "from": [ - 39.86, - 15.1 - ], - "tag": null, - "to": [ - 35.74, - -7.71 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 153, - 180, - 0 - ] - }, - "from": [ - 35.74, - -7.71 - ], - "tag": null, - "to": [ - 2.5, - 6.84 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 186, - 194, - 0 - ] - }, - "from": [ - 2.5, - 6.84 - ], - "tag": null, - "to": [ - 11.19, - 28.35 - ], - "type": "ToPoint" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 11.19, - 28.35 - ], - "to": [ - 11.19, - 28.35 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 35, - 68, - 0 - ] - } - }, - "tags": { - "here": { - "type": "TagIdentifier", - "value": "here", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 74, - 114, - 0 - ] - }, - "from": [ - 11.19, - 28.35 - ], - "tag": { - "end": 113, - "start": 108, - "type": "TagDeclarator", - "value": "here" - }, - "to": [ - 39.86, - 15.100000000000001 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 74, - 114, - 0 - ], - "tag": { - "end": 113, - "start": 108, - "type": "TagDeclarator", - "value": "here" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 108, - 113, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 35, - 68, - 0 - ] - } - ] - }, - "height": 5.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 35, - 68, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 245, 252, diff --git a/src/wasm-lib/kcl/tests/sketch_on_face_after_fillets_referencing_face/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face_after_fillets_referencing_face/ops.snap index 77336a8925..16601f2e30 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face_after_fillets_referencing_face/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face_after_fillets_referencing_face/ops.snap @@ -70,60 +70,6 @@ description: Operations executed sketch_on_face_after_fillets_referencing_face.k { "labeledArgs": { "data": { - "value": { - "type": "Object", - "value": { - "radius": { - "type": "Number", - "value": 0.25, - "__meta": [ - { - "sourceRange": [ - 929, - 933, - 0 - ] - } - ] - }, - "tags": { - "type": "Array", - "value": [ - { - "type": "Uuid", - "value": "[uuid]", - "__meta": [ - { - "sourceRange": [ - 1383, - 1413, - 0 - ] - } - ] - } - ], - "__meta": [ - { - "sourceRange": [ - 1382, - 1414, - 0 - ] - } - ] - } - }, - "__meta": [ - { - "sourceRange": [ - 1341, - 1421, - 0 - ] - } - ] - }, "sourceRange": [ 1341, 1421, @@ -131,494 +77,9 @@ description: Operations executed sketch_on_face_after_fillets_referencing_face.k ] }, "solid": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1048, - 1093, - 0 - ], - "tag": { - "end": 1092, - "start": 1082, - "type": "TagDeclarator", - "value": "outerEdge" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1099, - 1142, - 0 - ], - "tag": { - "end": 1141, - "start": 1135, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1148, - 1175, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1181, - 1239, - 0 - ], - "tag": { - "end": 1238, - "start": 1228, - "type": "TagDeclarator", - "value": "innerEdge" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1245, - 1285, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1291, - 1299, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1048, - 1093, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": { - "end": 1092, - "start": 1082, - "type": "TagDeclarator", - "value": "outerEdge" - }, - "to": [ - 0.0, - 6.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1099, - 1142, - 0 - ] - }, - "from": [ - 0.0, - 6.0 - ], - "tag": { - "end": 1141, - "start": 1135, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - -8.0, - 6.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1148, - 1175, - 0 - ] - }, - "from": [ - -8.0, - 6.0 - ], - "tag": null, - "to": [ - -8.0, - 5.6793 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1181, - 1239, - 0 - ] - }, - "from": [ - -8.0, - 5.6793 - ], - "tag": { - "end": 1238, - "start": 1228, - "type": "TagDeclarator", - "value": "innerEdge" - }, - "to": [ - -0.3207, - 5.6793 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1245, - 1285, - 0 - ] - }, - "from": [ - -0.3207, - 5.6793 - ], - "tag": null, - "to": [ - -0.3207, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1291, - 1299, - 0 - ] - }, - "from": [ - -0.3207, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1017, - 1042, - 0 - ] - } - }, - "tags": { - "innerEdge": { - "type": "TagIdentifier", - "value": "innerEdge", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1181, - 1239, - 0 - ] - }, - "from": [ - -8.0, - 5.679286509705091 - ], - "tag": { - "end": 1238, - "start": 1228, - "type": "TagDeclarator", - "value": "innerEdge" - }, - "to": [ - -0.32071349029490914, - 5.679286509705091 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1181, - 1239, - 0 - ], - "tag": { - "end": 1238, - "start": 1228, - "type": "TagDeclarator", - "value": "innerEdge" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 1228, - 1238, - 0 - ] - } - ] - }, - "outerEdge": { - "type": "TagIdentifier", - "value": "outerEdge", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1048, - 1093, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": { - "end": 1092, - "start": 1082, - "type": "TagDeclarator", - "value": "outerEdge" - }, - "to": [ - 0.0, - 6.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1048, - 1093, - 0 - ], - "tag": { - "end": 1092, - "start": 1082, - "type": "TagDeclarator", - "value": "outerEdge" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 1082, - 1092, - 0 - ] - } - ] - }, - "seg01": { - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1099, - 1142, - 0 - ] - }, - "from": [ - 0.0, - 6.0 - ], - "tag": { - "end": 1141, - "start": 1135, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - -8.0, - 6.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1099, - 1142, - 0 - ], - "tag": { - "end": 1141, - "start": 1135, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 1135, - 1141, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 1017, - 1042, - 0 - ] - } - ] - }, - "height": 6.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 1017, - 1042, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 1423, 1424, @@ -638,67 +99,6 @@ description: Operations executed sketch_on_face_after_fillets_referencing_face.k { "labeledArgs": { "data": { - "value": { - "type": "Object", - "value": { - "radius": { - "type": "Number", - "value": 0.5707134902949093, - "__meta": [ - { - "sourceRange": [ - 929, - 933, - 0 - ] - }, - { - "sourceRange": [ - 850, - 890, - 0 - ] - } - ] - }, - "tags": { - "type": "Array", - "value": [ - { - "type": "Uuid", - "value": "[uuid]", - "__meta": [ - { - "sourceRange": [ - 1492, - 1522, - 0 - ] - } - ] - } - ], - "__meta": [ - { - "sourceRange": [ - 1491, - 1523, - 0 - ] - } - ] - } - }, - "__meta": [ - { - "sourceRange": [ - 1438, - 1530, - 0 - ] - } - ] - }, "sourceRange": [ 1438, 1530, @@ -706,503 +106,9 @@ description: Operations executed sketch_on_face_after_fillets_referencing_face.k ] }, "solid": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1048, - 1093, - 0 - ], - "tag": { - "end": 1092, - "start": 1082, - "type": "TagDeclarator", - "value": "outerEdge" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1099, - 1142, - 0 - ], - "tag": { - "end": 1141, - "start": 1135, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1148, - 1175, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1181, - 1239, - 0 - ], - "tag": { - "end": 1238, - "start": 1228, - "type": "TagDeclarator", - "value": "innerEdge" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1245, - 1285, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1291, - 1299, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1048, - 1093, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": { - "end": 1092, - "start": 1082, - "type": "TagDeclarator", - "value": "outerEdge" - }, - "to": [ - 0.0, - 6.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1099, - 1142, - 0 - ] - }, - "from": [ - 0.0, - 6.0 - ], - "tag": { - "end": 1141, - "start": 1135, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - -8.0, - 6.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1148, - 1175, - 0 - ] - }, - "from": [ - -8.0, - 6.0 - ], - "tag": null, - "to": [ - -8.0, - 5.6793 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1181, - 1239, - 0 - ] - }, - "from": [ - -8.0, - 5.6793 - ], - "tag": { - "end": 1238, - "start": 1228, - "type": "TagDeclarator", - "value": "innerEdge" - }, - "to": [ - -0.3207, - 5.6793 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1245, - 1285, - 0 - ] - }, - "from": [ - -0.3207, - 5.6793 - ], - "tag": null, - "to": [ - -0.3207, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1291, - 1299, - 0 - ] - }, - "from": [ - -0.3207, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1017, - 1042, - 0 - ] - } - }, - "tags": { - "innerEdge": { - "type": "TagIdentifier", - "value": "innerEdge", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1181, - 1239, - 0 - ] - }, - "from": [ - -8.0, - 5.679286509705091 - ], - "tag": { - "end": 1238, - "start": 1228, - "type": "TagDeclarator", - "value": "innerEdge" - }, - "to": [ - -0.32071349029490914, - 5.679286509705091 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1181, - 1239, - 0 - ], - "tag": { - "end": 1238, - "start": 1228, - "type": "TagDeclarator", - "value": "innerEdge" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 1228, - 1238, - 0 - ] - } - ] - }, - "outerEdge": { - "type": "TagIdentifier", - "value": "outerEdge", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1048, - 1093, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": { - "end": 1092, - "start": 1082, - "type": "TagDeclarator", - "value": "outerEdge" - }, - "to": [ - 0.0, - 6.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1048, - 1093, - 0 - ], - "tag": { - "end": 1092, - "start": 1082, - "type": "TagDeclarator", - "value": "outerEdge" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 1082, - 1092, - 0 - ] - } - ] - }, - "seg01": { - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1099, - 1142, - 0 - ] - }, - "from": [ - 0.0, - 6.0 - ], - "tag": { - "end": 1141, - "start": 1135, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - -8.0, - 6.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1099, - 1142, - 0 - ], - "tag": { - "end": 1141, - "start": 1135, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 1135, - 1141, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 1017, - 1042, - 0 - ] - } - ] - }, - "height": 6.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "edgeCuts": [ - { - "type": "fillet", - "id": "[uuid]", - "radius": 0.25, - "edgeId": "[uuid]", - "tag": null - } - ], - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 1017, - 1042, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 1532, 1533, @@ -1222,510 +128,9 @@ description: Operations executed sketch_on_face_after_fillets_referencing_face.k { "labeledArgs": { "data": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1048, - 1093, - 0 - ], - "tag": { - "end": 1092, - "start": 1082, - "type": "TagDeclarator", - "value": "outerEdge" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1099, - 1142, - 0 - ], - "tag": { - "end": 1141, - "start": 1135, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1148, - 1175, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1181, - 1239, - 0 - ], - "tag": { - "end": 1238, - "start": 1228, - "type": "TagDeclarator", - "value": "innerEdge" - }, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1245, - 1285, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1291, - 1299, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1048, - 1093, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": { - "end": 1092, - "start": 1082, - "type": "TagDeclarator", - "value": "outerEdge" - }, - "to": [ - 0.0, - 6.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1099, - 1142, - 0 - ] - }, - "from": [ - 0.0, - 6.0 - ], - "tag": { - "end": 1141, - "start": 1135, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - -8.0, - 6.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1148, - 1175, - 0 - ] - }, - "from": [ - -8.0, - 6.0 - ], - "tag": null, - "to": [ - -8.0, - 5.6793 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1181, - 1239, - 0 - ] - }, - "from": [ - -8.0, - 5.6793 - ], - "tag": { - "end": 1238, - "start": 1228, - "type": "TagDeclarator", - "value": "innerEdge" - }, - "to": [ - -0.3207, - 5.6793 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1245, - 1285, - 0 - ] - }, - "from": [ - -0.3207, - 5.6793 - ], - "tag": null, - "to": [ - -0.3207, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1291, - 1299, - 0 - ] - }, - "from": [ - -0.3207, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1017, - 1042, - 0 - ] - } - }, - "tags": { - "innerEdge": { - "type": "TagIdentifier", - "value": "innerEdge", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1181, - 1239, - 0 - ] - }, - "from": [ - -8.0, - 5.679286509705091 - ], - "tag": { - "end": 1238, - "start": 1228, - "type": "TagDeclarator", - "value": "innerEdge" - }, - "to": [ - -0.32071349029490914, - 5.679286509705091 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1181, - 1239, - 0 - ], - "tag": { - "end": 1238, - "start": 1228, - "type": "TagDeclarator", - "value": "innerEdge" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 1228, - 1238, - 0 - ] - } - ] - }, - "outerEdge": { - "type": "TagIdentifier", - "value": "outerEdge", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1048, - 1093, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": { - "end": 1092, - "start": 1082, - "type": "TagDeclarator", - "value": "outerEdge" - }, - "to": [ - 0.0, - 6.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1048, - 1093, - 0 - ], - "tag": { - "end": 1092, - "start": 1082, - "type": "TagDeclarator", - "value": "outerEdge" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 1082, - 1092, - 0 - ] - } - ] - }, - "seg01": { - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1099, - 1142, - 0 - ] - }, - "from": [ - 0.0, - 6.0 - ], - "tag": { - "end": 1141, - "start": 1135, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - -8.0, - 6.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1099, - 1142, - 0 - ], - "tag": { - "end": 1141, - "start": 1135, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 1135, - 1141, - 0 - ] - } - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 1017, - 1042, - 0 - ] - } - ] - }, - "height": 6.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "edgeCuts": [ - { - "type": "fillet", - "id": "[uuid]", - "radius": 0.25, - "edgeId": "[uuid]", - "tag": null - }, - { - "type": "fillet", - "id": "[uuid]", - "radius": 0.5707134902949093, - "edgeId": "[uuid]", - "tag": null - } - ], - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 1017, - 1042, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 1562, 1569, diff --git a/src/wasm-lib/kcl/tests/sketch_on_face_circle_tagged/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face_circle_tagged/ops.snap index c543b74e6a..7ecf3ae006 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face_circle_tagged/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face_circle_tagged/ops.snap @@ -89,223 +89,9 @@ description: Operations executed sketch_on_face_circle_tagged.kcl { "labeledArgs": { "data": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 86, - 108, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 116, - 138, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 146, - 169, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 217, - 225, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 86, - 108, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 20.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 116, - 138, - 0 - ] - }, - "from": [ - 0.0, - 20.0 - ], - "tag": null, - "to": [ - 20.0, - 20.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 146, - 169, - 0 - ] - }, - "from": [ - 20.0, - 20.0 - ], - "tag": null, - "to": [ - 20.0, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 217, - 225, - 0 - ] - }, - "from": [ - 20.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 56, - 78, - 0 - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 56, - 78, - 0 - ] - } - ] - }, - "height": 20.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 56, - 78, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 277, 284, diff --git a/src/wasm-lib/kcl/tests/sketch_on_face_end/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face_end/ops.snap index 5431f59bc8..003e5ad62f 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face_end/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face_end/ops.snap @@ -89,223 +89,9 @@ description: Operations executed sketch_on_face_end.kcl { "labeledArgs": { "data": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 86, - 108, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 116, - 138, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 146, - 169, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 217, - 225, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 86, - 108, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 20.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 116, - 138, - 0 - ] - }, - "from": [ - 0.0, - 20.0 - ], - "tag": null, - "to": [ - 20.0, - 20.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 146, - 169, - 0 - ] - }, - "from": [ - 20.0, - 20.0 - ], - "tag": null, - "to": [ - 20.0, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 217, - 225, - 0 - ] - }, - "from": [ - 20.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 56, - 78, - 0 - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 56, - 78, - 0 - ] - } - ] - }, - "height": 20.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 56, - 78, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 277, 284, diff --git a/src/wasm-lib/kcl/tests/sketch_on_face_end_negative_extrude/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face_end_negative_extrude/ops.snap index bc17af0efc..0a0e994602 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face_end_negative_extrude/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face_end_negative_extrude/ops.snap @@ -89,223 +89,9 @@ description: Operations executed sketch_on_face_end_negative_extrude.kcl { "labeledArgs": { "data": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 86, - 108, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 116, - 138, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 146, - 169, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 217, - 225, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 86, - 108, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 20.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 116, - 138, - 0 - ] - }, - "from": [ - 0.0, - 20.0 - ], - "tag": null, - "to": [ - 20.0, - 20.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 146, - 169, - 0 - ] - }, - "from": [ - 20.0, - 20.0 - ], - "tag": null, - "to": [ - 20.0, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 217, - 225, - 0 - ] - }, - "from": [ - 20.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 56, - 78, - 0 - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 56, - 78, - 0 - ] - } - ] - }, - "height": 20.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 56, - 78, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 277, 284, diff --git a/src/wasm-lib/kcl/tests/sketch_on_face_start/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face_start/ops.snap index ae5f8b3e2c..ef469bba5e 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face_start/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face_start/ops.snap @@ -89,223 +89,9 @@ description: Operations executed sketch_on_face_start.kcl { "labeledArgs": { "data": { - "value": { - "type": "Solid", - "value": { - "type": "Solid", - "id": "[uuid]", - "artifactId": "[uuid]", - "value": [ - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 86, - 108, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 116, - 138, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 146, - 169, - 0 - ], - "tag": null, - "type": "extrudePlane" - }, - { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 217, - 225, - 0 - ], - "tag": null, - "type": "extrudePlane" - } - ], - "sketch": { - "type": "Sketch", - "id": "[uuid]", - "paths": [ - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 86, - 108, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 20.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 116, - 138, - 0 - ] - }, - "from": [ - 0.0, - 20.0 - ], - "tag": null, - "to": [ - 20.0, - 20.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 146, - 169, - 0 - ] - }, - "from": [ - 20.0, - 20.0 - ], - "tag": null, - "to": [ - 20.0, - 0.0 - ], - "type": "ToPoint" - }, - { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 217, - 225, - 0 - ] - }, - "from": [ - 20.0, - 0.0 - ], - "tag": null, - "to": [ - 0.0, - 0.0 - ], - "type": "ToPoint" - } - ], - "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": "Mm" - }, - "__meta": [] - }, - "start": { - "from": [ - 0.0, - 0.0 - ], - "to": [ - 0.0, - 0.0 - ], - "tag": null, - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 56, - 78, - 0 - ] - } - }, - "artifactId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 56, - 78, - 0 - ] - } - ] - }, - "height": 20.0, - "startCapId": "[uuid]", - "endCapId": "[uuid]", - "units": { - "type": "Mm" - }, - "__meta": [ - { - "sourceRange": [ - 56, - 78, - 0 - ] - } - ] - } - }, + "artifactIds": [ + "[uuid]" + ], "sourceRange": [ 284, 287, From 5bad843b36bfcfcec133a8288d28584b4257d64f Mon Sep 17 00:00:00 2001 From: Jonathan Tran Date: Sat, 1 Feb 2025 23:56:42 -0500 Subject: [PATCH 05/18] Remove tag declarators and tag identifiers --- src/wasm-lib/kcl/src/execution/kcl_value.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wasm-lib/kcl/src/execution/kcl_value.rs b/src/wasm-lib/kcl/src/execution/kcl_value.rs index b4105d4276..3aef558704 100644 --- a/src/wasm-lib/kcl/src/execution/kcl_value.rs +++ b/src/wasm-lib/kcl/src/execution/kcl_value.rs @@ -243,7 +243,8 @@ impl KclValue { | KclValue::String { .. } => Some(self.clone()), KclValue::Array { .. } => None, KclValue::Object { .. } => None, - KclValue::TagIdentifier(_) | KclValue::TagDeclarator(_) => Some(self.clone()), + KclValue::TagIdentifier(_) => None, + KclValue::TagDeclarator(_) => None, KclValue::Plane { .. } => None, KclValue::Face { .. } => None, KclValue::Sketch { .. } => None, From 1fa659dff38e517ff7628a1544a6ed2e26e606ce Mon Sep 17 00:00:00 2001 From: Jonathan Tran Date: Sun, 2 Feb 2025 00:00:37 -0500 Subject: [PATCH 06/18] Update output since removing tag delcarators and tag identifiers --- .../artifact_graph_example_code1/ops.snap | 60 --------- .../ops.snap | 120 ------------------ .../kcl/tests/pentagon_fillet_sugar/ops.snap | 120 ------------------ .../ops.snap | 86 ------------- .../sketch-on-chamfer-two-times/ops.snap | 86 ------------- .../kcl/tests/sketch_on_face/ops.snap | 60 --------- .../ops.snap | 60 --------- 7 files changed, 592 deletions(-) diff --git a/src/wasm-lib/kcl/tests/artifact_graph_example_code1/ops.snap b/src/wasm-lib/kcl/tests/artifact_graph_example_code1/ops.snap index 0a39640cdc..8a6bdae5ea 100644 --- a/src/wasm-lib/kcl/tests/artifact_graph_example_code1/ops.snap +++ b/src/wasm-lib/kcl/tests/artifact_graph_example_code1/ops.snap @@ -118,66 +118,6 @@ description: Operations executed artifact_graph_example_code1.kcl ] }, "tag": { - "value": { - "type": "TagIdentifier", - "type": "TagIdentifier", - "value": "seg02", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 137, - 171, - 0 - ] - }, - "from": [ - 5.550000000000001, - 5.0 - ], - "tag": { - "end": 170, - "start": 164, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 5.550000000000001, - -5.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 137, - 171, - 0 - ], - "tag": { - "end": 170, - "start": 164, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 164, - 170, - 0 - ] - } - ] - }, "sourceRange": [ 378, 383, diff --git a/src/wasm-lib/kcl/tests/artifact_graph_sketch_on_face_etc/ops.snap b/src/wasm-lib/kcl/tests/artifact_graph_sketch_on_face_etc/ops.snap index 3f68431f8d..6634a31643 100644 --- a/src/wasm-lib/kcl/tests/artifact_graph_sketch_on_face_etc/ops.snap +++ b/src/wasm-lib/kcl/tests/artifact_graph_sketch_on_face_etc/ops.snap @@ -89,66 +89,6 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl ] }, "tag": { - "value": { - "type": "TagIdentifier", - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 92, - 125, - 0 - ] - }, - "from": [ - 4.0, - 8.0 - ], - "tag": { - "end": 124, - "start": 118, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - 9.0, - 0.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 92, - 125, - 0 - ], - "tag": { - "end": 124, - "start": 118, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 118, - 124, - 0 - ] - } - ] - }, "sourceRange": [ 283, 288, @@ -302,66 +242,6 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl ] }, "tag": { - "value": { - "type": "TagIdentifier", - "type": "TagIdentifier", - "value": "seg02", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 577, - 611, - 0 - ] - }, - "from": [ - 1.0, - 1.5 - ], - "tag": { - "end": 610, - "start": 604, - "type": "TagDeclarator", - "value": "seg02" - }, - "to": [ - 1.5, - 3.5 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 577, - 611, - 0 - ], - "tag": { - "end": 610, - "start": 604, - "type": "TagDeclarator", - "value": "seg02" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 604, - 610, - 0 - ] - } - ] - }, "sourceRange": [ 794, 799, diff --git a/src/wasm-lib/kcl/tests/pentagon_fillet_sugar/ops.snap b/src/wasm-lib/kcl/tests/pentagon_fillet_sugar/ops.snap index 32005dd215..45ce8cd517 100644 --- a/src/wasm-lib/kcl/tests/pentagon_fillet_sugar/ops.snap +++ b/src/wasm-lib/kcl/tests/pentagon_fillet_sugar/ops.snap @@ -96,66 +96,6 @@ description: Operations executed pentagon_fillet_sugar.kcl ] }, "tag": { - "value": { - "type": "TagIdentifier", - "type": "TagIdentifier", - "value": "c", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 317, - 373, - 0 - ] - }, - "from": [ - -249.99999999999994, - 433.01270189221935 - ], - "tag": { - "end": 372, - "start": 370, - "type": "TagDeclarator", - "value": "c" - }, - "to": [ - 0.00000000000011368683772161603, - 0.00000000000005684341886080802 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 317, - 373, - 0 - ], - "tag": { - "end": 372, - "start": 370, - "type": "TagDeclarator", - "value": "c" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 370, - 372, - 0 - ] - } - ] - }, "sourceRange": [ 459, 463, @@ -265,66 +205,6 @@ description: Operations executed pentagon_fillet_sugar.kcl ] }, "tag": { - "value": { - "type": "TagIdentifier", - "type": "TagIdentifier", - "value": "a", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 194, - 249, - 0 - ] - }, - "from": [ - 0.0, - 0.0 - ], - "tag": { - "end": 248, - "start": 246, - "type": "TagDeclarator", - "value": "a" - }, - "to": [ - 250.00000000000006, - 433.0127018922193 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 194, - 249, - 0 - ], - "tag": { - "end": 248, - "start": 246, - "type": "TagDeclarator", - "value": "a" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 246, - 248, - 0 - ] - } - ] - }, "sourceRange": [ 459, 463, diff --git a/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times-different-order/ops.snap b/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times-different-order/ops.snap index 90df6d83af..dcc0318f13 100644 --- a/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times-different-order/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times-different-order/ops.snap @@ -125,13 +125,6 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl ] }, "tag": { - "value": { - "end": 626, - "start": 620, - "type": "TagDeclarator", - "type": "TagDeclarator", - "value": "seg03" - }, "sourceRange": [ 620, 626, @@ -168,13 +161,6 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl ] }, "tag": { - "value": { - "end": 683, - "start": 677, - "type": "TagDeclarator", - "type": "TagDeclarator", - "value": "seg04" - }, "sourceRange": [ 677, 683, @@ -204,42 +190,6 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl ] }, "tag": { - "value": { - "type": "TagIdentifier", - "type": "TagIdentifier", - "value": "seg04", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": null, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 633, - 684, - 0 - ], - "tag": { - "end": 683, - "start": 677, - "type": "TagDeclarator", - "value": "seg04" - }, - "type": "chamfer" - } - }, - "__meta": [ - { - "sourceRange": [ - 677, - 683, - 0 - ] - } - ] - }, "sourceRange": [ 724, 729, @@ -269,42 +219,6 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl ] }, "tag": { - "value": { - "type": "TagIdentifier", - "type": "TagIdentifier", - "value": "seg03", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": null, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 540, - 627, - 0 - ], - "tag": { - "end": 626, - "start": 620, - "type": "TagDeclarator", - "value": "seg03" - }, - "type": "chamfer" - } - }, - "__meta": [ - { - "sourceRange": [ - 620, - 626, - 0 - ] - } - ] - }, "sourceRange": [ 1172, 1177, diff --git a/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times/ops.snap b/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times/ops.snap index 5c311e3375..048abb3463 100644 --- a/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times/ops.snap @@ -125,13 +125,6 @@ description: Operations executed sketch-on-chamfer-two-times.kcl ] }, "tag": { - "value": { - "end": 590, - "start": 584, - "type": "TagDeclarator", - "type": "TagDeclarator", - "value": "seg04" - }, "sourceRange": [ 584, 590, @@ -168,13 +161,6 @@ description: Operations executed sketch-on-chamfer-two-times.kcl ] }, "tag": { - "value": { - "end": 683, - "start": 677, - "type": "TagDeclarator", - "type": "TagDeclarator", - "value": "seg03" - }, "sourceRange": [ 677, 683, @@ -204,42 +190,6 @@ description: Operations executed sketch-on-chamfer-two-times.kcl ] }, "tag": { - "value": { - "type": "TagIdentifier", - "type": "TagIdentifier", - "value": "seg04", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": null, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 540, - 591, - 0 - ], - "tag": { - "end": 590, - "start": 584, - "type": "TagDeclarator", - "value": "seg04" - }, - "type": "chamfer" - } - }, - "__meta": [ - { - "sourceRange": [ - 584, - 590, - 0 - ] - } - ] - }, "sourceRange": [ 724, 729, @@ -269,42 +219,6 @@ description: Operations executed sketch-on-chamfer-two-times.kcl ] }, "tag": { - "value": { - "type": "TagIdentifier", - "type": "TagIdentifier", - "value": "seg03", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": null, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 597, - 684, - 0 - ], - "tag": { - "end": 683, - "start": 677, - "type": "TagDeclarator", - "value": "seg03" - }, - "type": "chamfer" - } - }, - "__meta": [ - { - "sourceRange": [ - 677, - 683, - 0 - ] - } - ] - }, "sourceRange": [ 1172, 1177, diff --git a/src/wasm-lib/kcl/tests/sketch_on_face/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face/ops.snap index 9bb4098983..bd26973214 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face/ops.snap @@ -80,66 +80,6 @@ description: Operations executed sketch_on_face.kcl ] }, "tag": { - "value": { - "type": "TagIdentifier", - "type": "TagIdentifier", - "value": "here", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 74, - 114, - 0 - ] - }, - "from": [ - 11.19, - 28.35 - ], - "tag": { - "end": 113, - "start": 108, - "type": "TagDeclarator", - "value": "here" - }, - "to": [ - 39.86, - 15.100000000000001 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 74, - 114, - 0 - ], - "tag": { - "end": 113, - "start": 108, - "type": "TagDeclarator", - "value": "here" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 108, - 113, - 0 - ] - } - ] - }, "sourceRange": [ 254, 258, diff --git a/src/wasm-lib/kcl/tests/sketch_on_face_after_fillets_referencing_face/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face_after_fillets_referencing_face/ops.snap index 16601f2e30..646e7f6b4a 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face_after_fillets_referencing_face/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face_after_fillets_referencing_face/ops.snap @@ -138,66 +138,6 @@ description: Operations executed sketch_on_face_after_fillets_referencing_face.k ] }, "tag": { - "value": { - "type": "TagIdentifier", - "type": "TagIdentifier", - "value": "seg01", - "info": { - "type": "TagEngineInfo", - "id": "[uuid]", - "sketch": "[uuid]", - "path": { - "__geoMeta": { - "id": "[uuid]", - "sourceRange": [ - 1099, - 1142, - 0 - ] - }, - "from": [ - 0.0, - 6.0 - ], - "tag": { - "end": 1141, - "start": 1135, - "type": "TagDeclarator", - "value": "seg01" - }, - "to": [ - -8.0, - 6.0 - ], - "type": "ToPoint" - }, - "surface": { - "faceId": "[uuid]", - "id": "[uuid]", - "sourceRange": [ - 1099, - 1142, - 0 - ], - "tag": { - "end": 1141, - "start": 1135, - "type": "TagDeclarator", - "value": "seg01" - }, - "type": "extrudePlane" - } - }, - "__meta": [ - { - "sourceRange": [ - 1135, - 1141, - 0 - ] - } - ] - }, "sourceRange": [ 1571, 1576, From 6b739be8547bf15b3ce2feece31a777e05a17a67 Mon Sep 17 00:00:00 2001 From: Jonathan Tran Date: Sun, 2 Feb 2025 00:19:09 -0500 Subject: [PATCH 07/18] Fix to include implicit unlabeled keyword arg in operations --- src/wasm-lib/kcl/src/execution/exec_ast.rs | 2 +- src/wasm-lib/kcl/src/std/args.rs | 18 ++++++++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/src/wasm-lib/kcl/src/execution/exec_ast.rs b/src/wasm-lib/kcl/src/execution/exec_ast.rs index 2d5fbbf2f1..6ca2f23799 100644 --- a/src/wasm-lib/kcl/src/execution/exec_ast.rs +++ b/src/wasm-lib/kcl/src/execution/exec_ast.rs @@ -938,7 +938,7 @@ impl Node { .collect(); Some(Operation::StdLibCall { std_lib_fn: (&func).into(), - unlabeled_arg: args.kw_args.unlabeled.as_ref().map(|arg| { + unlabeled_arg: args.get_unlabeled_kw_arg_unconverted().map(|arg| { OpArg::new( arg.value.operation_value(), arg.value.operation_artifact_ids(), diff --git a/src/wasm-lib/kcl/src/std/args.rs b/src/wasm-lib/kcl/src/std/args.rs index d054d5ad97..2830a0836e 100644 --- a/src/wasm-lib/kcl/src/std/args.rs +++ b/src/wasm-lib/kcl/src/std/args.rs @@ -130,17 +130,23 @@ impl Args { }) } - /// Get the unlabeled keyword argument. If not set, returns Err. + /// Get the unlabeled keyword argument. If not set, returns None. + pub(crate) fn get_unlabeled_kw_arg_unconverted(&self) -> Option<&Arg> { + self.kw_args + .unlabeled + .as_ref() + .or(self.args.first()) + .or(self.pipe_value.as_ref()) + } + + /// Get the unlabeled keyword argument. If not set, returns Err. If it + /// can't be converted to the given type, returns Err. pub(crate) fn get_unlabeled_kw_arg<'a, T>(&'a self, label: &str) -> Result where T: FromKclValue<'a>, { let arg = self - .kw_args - .unlabeled - .as_ref() - .or(self.args.first()) - .or(self.pipe_value.as_ref()) + .get_unlabeled_kw_arg_unconverted() .ok_or(KclError::Semantic(KclErrorDetails { source_ranges: vec![self.source_range], message: format!("This function requires a value for the special unlabeled first parameter, '{label}'"), From a47418f02aadbe343b637909ca6ece06261f2f27 Mon Sep 17 00:00:00 2001 From: Jonathan Tran Date: Mon, 3 Feb 2025 21:51:12 -0500 Subject: [PATCH 08/18] Change to return values for objects also --- src/wasm-lib/kcl/src/execution/kcl_value.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/wasm-lib/kcl/src/execution/kcl_value.rs b/src/wasm-lib/kcl/src/execution/kcl_value.rs index 3aef558704..685f0cf98a 100644 --- a/src/wasm-lib/kcl/src/execution/kcl_value.rs +++ b/src/wasm-lib/kcl/src/execution/kcl_value.rs @@ -283,7 +283,18 @@ impl KclValue { None } } - KclValue::Object { .. } => None, + KclValue::Object { value, .. } => { + if recurse { + Some( + value + .values() + .flat_map(|value| value.collect_artifact_ids(false).unwrap_or_default()) + .collect(), + ) + } else { + None + } + } KclValue::TagIdentifier(_) => None, KclValue::TagDeclarator(_) => None, KclValue::Plane { value } => Some(vec![value.artifact_id]), From fa1c08f95fb2c6818ed13a3e4cd0467d2e9b42cb Mon Sep 17 00:00:00 2001 From: Jonathan Tran Date: Mon, 3 Feb 2025 22:04:49 -0500 Subject: [PATCH 09/18] Update output after adding objects --- .../artifact_graph_example_code1/ops.snap | 1 + .../basic_fillet_cube_close_opposite/ops.snap | 1 + .../kcl/tests/basic_fillet_cube_end/ops.snap | 1 + .../basic_fillet_cube_next_adjacent/ops.snap | 1 + .../ops.snap | 1 + .../tests/basic_fillet_cube_start/ops.snap | 1 + .../circular_pattern3d_a_pattern/ops.snap | 11 +++- .../kcl/tests/fillet-and-shell/ops.snap | 56 +++++++++++++++++-- src/wasm-lib/kcl/tests/helix_ccw/ops.snap | 1 + .../tests/linear_pattern3d_a_pattern/ops.snap | 11 +++- .../kcl/tests/pentagon_fillet_sugar/ops.snap | 2 + src/wasm-lib/kcl/tests/poop_chute/ops.snap | 1 + .../ops.snap | 3 + .../sketch-on-chamfer-two-times/ops.snap | 3 + .../ops.snap | 2 + 15 files changed, 89 insertions(+), 7 deletions(-) diff --git a/src/wasm-lib/kcl/tests/artifact_graph_example_code1/ops.snap b/src/wasm-lib/kcl/tests/artifact_graph_example_code1/ops.snap index 8a6bdae5ea..e4d9219fbc 100644 --- a/src/wasm-lib/kcl/tests/artifact_graph_example_code1/ops.snap +++ b/src/wasm-lib/kcl/tests/artifact_graph_example_code1/ops.snap @@ -79,6 +79,7 @@ description: Operations executed artifact_graph_example_code1.kcl { "labeledArgs": { "data": { + "artifactIds": [], "sourceRange": [ 305, 335, diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_close_opposite/ops.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_close_opposite/ops.snap index c09cc2ad37..c37af0cffa 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_close_opposite/ops.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_close_opposite/ops.snap @@ -70,6 +70,7 @@ description: Operations executed basic_fillet_cube_close_opposite.kcl { "labeledArgs": { "data": { + "artifactIds": [], "sourceRange": [ 230, 305, diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_end/ops.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_end/ops.snap index 0f6423b2fe..69e7b4982d 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_end/ops.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_end/ops.snap @@ -70,6 +70,7 @@ description: Operations executed basic_fillet_cube_end.kcl { "labeledArgs": { "data": { + "artifactIds": [], "sourceRange": [ 218, 291, diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_next_adjacent/ops.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_next_adjacent/ops.snap index 275d55b561..b3f83bfc54 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_next_adjacent/ops.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_next_adjacent/ops.snap @@ -70,6 +70,7 @@ description: Operations executed basic_fillet_cube_next_adjacent.kcl { "labeledArgs": { "data": { + "artifactIds": [], "sourceRange": [ 245, 316, diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_previous_adjacent/ops.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_previous_adjacent/ops.snap index 699b0b3270..c8fefb158a 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_previous_adjacent/ops.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_previous_adjacent/ops.snap @@ -70,6 +70,7 @@ description: Operations executed basic_fillet_cube_previous_adjacent.kcl { "labeledArgs": { "data": { + "artifactIds": [], "sourceRange": [ 245, 320, diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_start/ops.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_start/ops.snap index 26135ddf0a..19e8dca8b2 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_start/ops.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_start/ops.snap @@ -70,6 +70,7 @@ description: Operations executed basic_fillet_cube_start.kcl { "labeledArgs": { "data": { + "artifactIds": [], "sourceRange": [ 218, 256, diff --git a/src/wasm-lib/kcl/tests/circular_pattern3d_a_pattern/ops.snap b/src/wasm-lib/kcl/tests/circular_pattern3d_a_pattern/ops.snap index d9ce63cfbe..694b8bb8f0 100644 --- a/src/wasm-lib/kcl/tests/circular_pattern3d_a_pattern/ops.snap +++ b/src/wasm-lib/kcl/tests/circular_pattern3d_a_pattern/ops.snap @@ -65,7 +65,16 @@ description: Operations executed circular_pattern3d_a_pattern.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "artifactIds": [ + "[uuid]" + ], + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { diff --git a/src/wasm-lib/kcl/tests/fillet-and-shell/ops.snap b/src/wasm-lib/kcl/tests/fillet-and-shell/ops.snap index ed1e578fa1..9911cfaac0 100644 --- a/src/wasm-lib/kcl/tests/fillet-and-shell/ops.snap +++ b/src/wasm-lib/kcl/tests/fillet-and-shell/ops.snap @@ -65,11 +65,21 @@ description: Operations executed fillet-and-shell.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "artifactIds": [ + "[uuid]" + ], + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "data": { + "artifactIds": [], "sourceRange": [ 1071, 1270, @@ -206,7 +216,16 @@ description: Operations executed fillet-and-shell.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "artifactIds": [ + "[uuid]" + ], + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "type": "UserDefinedFunctionReturn" @@ -321,7 +340,16 @@ description: Operations executed fillet-and-shell.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "artifactIds": [ + "[uuid]" + ], + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "type": "UserDefinedFunctionReturn" @@ -436,7 +464,16 @@ description: Operations executed fillet-and-shell.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "artifactIds": [ + "[uuid]" + ], + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "type": "UserDefinedFunctionReturn" @@ -551,7 +588,16 @@ description: Operations executed fillet-and-shell.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "artifactIds": [ + "[uuid]" + ], + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "type": "UserDefinedFunctionReturn" diff --git a/src/wasm-lib/kcl/tests/helix_ccw/ops.snap b/src/wasm-lib/kcl/tests/helix_ccw/ops.snap index 7d31a5c92d..0deb8853df 100644 --- a/src/wasm-lib/kcl/tests/helix_ccw/ops.snap +++ b/src/wasm-lib/kcl/tests/helix_ccw/ops.snap @@ -70,6 +70,7 @@ description: Operations executed helix_ccw.kcl { "labeledArgs": { "data": { + "artifactIds": [], "sourceRange": [ 127, 201, diff --git a/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/ops.snap b/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/ops.snap index 7a63f799c5..5e243e193c 100644 --- a/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/ops.snap +++ b/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/ops.snap @@ -65,7 +65,16 @@ description: Operations executed linear_pattern3d_a_pattern.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "artifactIds": [ + "[uuid]" + ], + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { diff --git a/src/wasm-lib/kcl/tests/pentagon_fillet_sugar/ops.snap b/src/wasm-lib/kcl/tests/pentagon_fillet_sugar/ops.snap index 45ce8cd517..1c3b51de56 100644 --- a/src/wasm-lib/kcl/tests/pentagon_fillet_sugar/ops.snap +++ b/src/wasm-lib/kcl/tests/pentagon_fillet_sugar/ops.snap @@ -150,6 +150,7 @@ description: Operations executed pentagon_fillet_sugar.kcl { "labeledArgs": { "data": { + "artifactIds": [], "sourceRange": [ 653, 773, @@ -259,6 +260,7 @@ description: Operations executed pentagon_fillet_sugar.kcl { "labeledArgs": { "data": { + "artifactIds": [], "sourceRange": [ 857, 977, diff --git a/src/wasm-lib/kcl/tests/poop_chute/ops.snap b/src/wasm-lib/kcl/tests/poop_chute/ops.snap index 1c232b0d89..25bb805535 100644 --- a/src/wasm-lib/kcl/tests/poop_chute/ops.snap +++ b/src/wasm-lib/kcl/tests/poop_chute/ops.snap @@ -38,6 +38,7 @@ description: Operations executed poop_chute.kcl { "labeledArgs": { "data": { + "artifactIds": [], "sourceRange": [ 822, 940, diff --git a/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times-different-order/ops.snap b/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times-different-order/ops.snap index dcc0318f13..af61023fff 100644 --- a/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times-different-order/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times-different-order/ops.snap @@ -79,6 +79,7 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl { "labeledArgs": { "data": { + "artifactIds": [], "sourceRange": [ 499, 530, @@ -108,6 +109,7 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl { "labeledArgs": { "data": { + "artifactIds": [], "sourceRange": [ 548, 615, @@ -144,6 +146,7 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl { "labeledArgs": { "data": { + "artifactIds": [], "sourceRange": [ 641, 672, diff --git a/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times/ops.snap b/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times/ops.snap index 048abb3463..3868d1a763 100644 --- a/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times/ops.snap @@ -79,6 +79,7 @@ description: Operations executed sketch-on-chamfer-two-times.kcl { "labeledArgs": { "data": { + "artifactIds": [], "sourceRange": [ 499, 530, @@ -108,6 +109,7 @@ description: Operations executed sketch-on-chamfer-two-times.kcl { "labeledArgs": { "data": { + "artifactIds": [], "sourceRange": [ 548, 579, @@ -144,6 +146,7 @@ description: Operations executed sketch-on-chamfer-two-times.kcl { "labeledArgs": { "data": { + "artifactIds": [], "sourceRange": [ 605, 672, diff --git a/src/wasm-lib/kcl/tests/sketch_on_face_after_fillets_referencing_face/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face_after_fillets_referencing_face/ops.snap index 646e7f6b4a..5eef96e59e 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face_after_fillets_referencing_face/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face_after_fillets_referencing_face/ops.snap @@ -70,6 +70,7 @@ description: Operations executed sketch_on_face_after_fillets_referencing_face.k { "labeledArgs": { "data": { + "artifactIds": [], "sourceRange": [ 1341, 1421, @@ -99,6 +100,7 @@ description: Operations executed sketch_on_face_after_fillets_referencing_face.k { "labeledArgs": { "data": { + "artifactIds": [], "sourceRange": [ 1438, 1530, From c86e2cd814e6f610934924f6ccf88cb890ab386c Mon Sep 17 00:00:00 2001 From: Jonathan Tran Date: Wed, 5 Feb 2025 16:00:44 -0500 Subject: [PATCH 10/18] Change to use new OpKclValue type --- src/wasm-lib/kcl/src/execution/cad_op.rs | 187 +++++++++++++++++--- src/wasm-lib/kcl/src/execution/exec_ast.rs | 17 +- src/wasm-lib/kcl/src/execution/kcl_value.rs | 93 +--------- 3 files changed, 172 insertions(+), 125 deletions(-) diff --git a/src/wasm-lib/kcl/src/execution/cad_op.rs b/src/wasm-lib/kcl/src/execution/cad_op.rs index 9e97822416..4d1bd6e661 100644 --- a/src/wasm-lib/kcl/src/execution/cad_op.rs +++ b/src/wasm-lib/kcl/src/execution/cad_op.rs @@ -59,34 +59,17 @@ impl Operation { #[ts(export)] #[serde(rename_all = "camelCase")] pub struct OpArg { - /// The runtime value of the argument, only if it's a non-composite - /// primitive value. We don't include all values since they can be quite - /// large, and we don't actually need them. - #[serde(skip_serializing_if = "Option::is_none")] - value: Option, - /// The artifact ID of the value. This will be `None` for primitive values, - /// and `Some` for values that have `ArtifactId`s. If the value is an - /// array, this will be the artifact IDs of the elements. Only one level of - /// nesting is supported. If the value is an array of arrays, for example, - /// this will be an empty array. - #[serde(skip_serializing_if = "Option::is_none")] - artifact_ids: Option>, + /// The runtime value of the argument. Instead of using [`KclValue`], we + /// refer to scene objects using their [`ArtifactId`]s. + value: OpKclValue, /// The KCL code expression for the argument. This is used in the UI so /// that the user can edit the expression. source_range: SourceRange, } impl OpArg { - pub(crate) fn new( - value: Option, - artifact_ids: Option>, - source_range: SourceRange, - ) -> Self { - Self { - value, - artifact_ids, - source_range, - } + pub(crate) fn new(value: OpKclValue, source_range: SourceRange) -> Self { + Self { value, source_range } } } @@ -153,3 +136,163 @@ where fn is_false(b: &bool) -> bool { !*b } + +/// A KCL value used in Operations. `ArtifactId`s are used to refer to the +/// actual scene objects. Any data not needed in the UI may be omitted. +#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, ts_rs::TS, JsonSchema)] +#[ts(export)] +#[serde(tag = "type")] +pub enum OpKclValue { + Uuid { + value: ::uuid::Uuid, + }, + Bool { + value: bool, + }, + Number { + value: f64, + }, + Int { + value: i64, + }, + String { + value: String, + }, + Array { + value: Vec, + }, + Object { + value: OpKclObjectFields, + }, + TagIdentifier { + /// The name of the tag identifier. + value: String, + /// The artifact ID of the object it refers to. + artifact_id: Option, + }, + TagDeclarator { + name: String, + }, + Plane { + artifact_id: ArtifactId, + }, + Face { + artifact_id: ArtifactId, + }, + Sketch { + value: Box, + }, + Sketches { + value: Vec, + }, + Solid { + value: Box, + }, + Solids { + value: Vec, + }, + Helix { + value: Box, + }, + ImportedGeometry { + artifact_id: ArtifactId, + }, + Function {}, + Module {}, + KclNone {}, +} + +pub type OpKclObjectFields = IndexMap; + +#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, ts_rs::TS, JsonSchema)] +#[ts(export)] +#[serde(rename_all = "camelCase")] +pub struct OpSketch { + artifact_id: ArtifactId, +} + +#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, ts_rs::TS, JsonSchema)] +#[ts(export)] +#[serde(rename_all = "camelCase")] +pub struct OpSolid { + artifact_id: ArtifactId, +} + +#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, ts_rs::TS, JsonSchema)] +#[ts(export)] +#[serde(rename_all = "camelCase")] +pub struct OpHelix { + artifact_id: ArtifactId, +} + +impl From<&KclValue> for OpKclValue { + fn from(value: &KclValue) -> Self { + match value { + KclValue::Uuid { value, .. } => Self::Uuid { value: *value }, + KclValue::Bool { value, .. } => Self::Bool { value: *value }, + KclValue::Number { value, .. } => Self::Number { value: *value }, + KclValue::String { value, .. } => Self::String { value: value.clone() }, + KclValue::Array { value, .. } => { + let value = value.iter().map(Self::from).collect(); + Self::Array { value } + } + KclValue::Object { value, .. } => { + let value = value.iter().map(|(k, v)| (k.clone(), Self::from(v))).collect(); + Self::Object { value } + } + KclValue::TagIdentifier(tag_identifier) => Self::TagIdentifier { + value: tag_identifier.value.clone(), + artifact_id: tag_identifier.info.as_ref().map(|info| ArtifactId::new(info.id)), + }, + KclValue::TagDeclarator(node) => Self::TagDeclarator { + name: node.name.clone(), + }, + KclValue::Plane { value } => Self::Plane { + artifact_id: value.artifact_id, + }, + KclValue::Face { value } => Self::Face { + artifact_id: value.artifact_id, + }, + KclValue::Sketch { value } => Self::Sketch { + value: Box::new(OpSketch { + artifact_id: value.artifact_id, + }), + }, + KclValue::Sketches { value } => { + let value = value + .iter() + .map(|sketch| OpSketch { + artifact_id: sketch.artifact_id, + }) + .collect(); + Self::Sketches { value } + } + KclValue::Solid { value } => Self::Solid { + value: Box::new(OpSolid { + artifact_id: value.artifact_id, + }), + }, + KclValue::Solids { value } => { + let value = value + .iter() + .map(|solid| OpSolid { + artifact_id: solid.artifact_id, + }) + .collect(); + Self::Solids { value } + } + KclValue::Helix { value } => Self::Helix { + value: Box::new(OpHelix { + artifact_id: value.artifact_id, + }), + }, + KclValue::ImportedGeometry(imported_geometry) => Self::ImportedGeometry { + artifact_id: ArtifactId::new(imported_geometry.id), + }, + KclValue::Function { .. } => Self::Function {}, + KclValue::Module { .. } => Self::Module {}, + KclValue::KclNone { .. } => Self::KclNone {}, + KclValue::Tombstone { .. } => unreachable!("Tombstone OpKclValue"), + } + } +} diff --git a/src/wasm-lib/kcl/src/execution/exec_ast.rs b/src/wasm-lib/kcl/src/execution/exec_ast.rs index 6ca2f23799..6a5699b30c 100644 --- a/src/wasm-lib/kcl/src/execution/exec_ast.rs +++ b/src/wasm-lib/kcl/src/execution/exec_ast.rs @@ -8,7 +8,7 @@ use crate::{ errors::{KclError, KclErrorDetails}, execution::{ annotations, - cad_op::{OpArg, Operation}, + cad_op::{OpArg, OpKclValue, Operation}, kcl_value::NumericType, memory, state::ModuleState, @@ -929,8 +929,7 @@ impl Node { ( k.clone(), OpArg::new( - arg.value.operation_value(), - arg.value.operation_artifact_ids(), + OpKclValue::from(&arg.value), arg.source_range, ), ) @@ -940,8 +939,7 @@ impl Node { std_lib_fn: (&func).into(), unlabeled_arg: args.get_unlabeled_kw_arg_unconverted().map(|arg| { OpArg::new( - arg.value.operation_value(), - arg.value.operation_artifact_ids(), + OpKclValue::from(&arg.value), arg.source_range, ) }), @@ -989,8 +987,7 @@ impl Node { ( k.clone(), OpArg::new( - arg.value.operation_value(), - arg.value.operation_artifact_ids(), + OpKclValue::from(&arg.value), arg.source_range, ), ) @@ -1004,8 +1001,7 @@ impl Node { function_source_range: func.function_def_source_range().unwrap_or_default(), unlabeled_arg: args.kw_args.unlabeled.as_ref().map(|arg| { OpArg::new( - arg.value.operation_value(), - arg.value.operation_artifact_ids(), + OpKclValue::from(&arg.value), arg.source_range, ) }), @@ -1077,8 +1073,7 @@ impl Node { ( k.name.clone(), OpArg::new( - arg.value.operation_value(), - arg.value.operation_artifact_ids(), + OpKclValue::from(&arg.value), arg.source_range, ), ) diff --git a/src/wasm-lib/kcl/src/execution/kcl_value.rs b/src/wasm-lib/kcl/src/execution/kcl_value.rs index 685f0cf98a..9c51f9c5d8 100644 --- a/src/wasm-lib/kcl/src/execution/kcl_value.rs +++ b/src/wasm-lib/kcl/src/execution/kcl_value.rs @@ -4,7 +4,7 @@ use anyhow::Result; use schemars::JsonSchema; use serde::{Deserialize, Serialize}; -use super::{memory::EnvironmentRef, ArtifactId, MetaSettings}; +use super::{memory::EnvironmentRef, MetaSettings}; use crate::{ errors::KclErrorDetails, exec::Sketch, @@ -233,97 +233,6 @@ impl KclValue { } } - /// The value included in [crate::execution::cad_op::Operation]s. Only - /// non-composite primitives should be included. - pub(crate) fn operation_value(&self) -> Option { - match self { - KclValue::Uuid { .. } - | KclValue::Bool { .. } - | KclValue::Number { .. } - | KclValue::String { .. } => Some(self.clone()), - KclValue::Array { .. } => None, - KclValue::Object { .. } => None, - KclValue::TagIdentifier(_) => None, - KclValue::TagDeclarator(_) => None, - KclValue::Plane { .. } => None, - KclValue::Face { .. } => None, - KclValue::Sketch { .. } => None, - KclValue::Sketches { .. } => None, - KclValue::Solid { .. } => None, - KclValue::Solids { .. } => None, - KclValue::Helix { .. } => None, - KclValue::ImportedGeometry(_) => None, - KclValue::Function { .. } => None, - KclValue::Module { .. } => None, - KclValue::KclNone { .. } => None, - KclValue::Tombstone { .. } => None, - } - } - - /// The artifact IDs included in [crate::execution::cad_op::Operation]s. - pub(crate) fn operation_artifact_ids(&self) -> Option> { - self.collect_artifact_ids(true) - } - - fn collect_artifact_ids(&self, recurse: bool) -> Option> { - match self { - KclValue::Uuid { .. } => None, - KclValue::Bool { .. } => None, - KclValue::Number { .. } => None, - KclValue::String { .. } => None, - KclValue::Array { value, .. } => { - if recurse { - Some( - value - .iter() - .flat_map(|sketch| sketch.collect_artifact_ids(false).unwrap_or_default()) - .collect(), - ) - } else { - None - } - } - KclValue::Object { value, .. } => { - if recurse { - Some( - value - .values() - .flat_map(|value| value.collect_artifact_ids(false).unwrap_or_default()) - .collect(), - ) - } else { - None - } - } - KclValue::TagIdentifier(_) => None, - KclValue::TagDeclarator(_) => None, - KclValue::Plane { value } => Some(vec![value.artifact_id]), - KclValue::Face { value } => Some(vec![value.artifact_id]), - KclValue::Sketch { value } => Some(vec![value.artifact_id]), - KclValue::Sketches { value } => { - if recurse { - Some(value.iter().map(|sketch| sketch.artifact_id).collect()) - } else { - None - } - } - KclValue::Solid { value } => Some(vec![value.artifact_id]), - KclValue::Solids { value } => { - if recurse { - Some(value.iter().map(|solid| solid.artifact_id).collect()) - } else { - None - } - } - KclValue::Helix { value } => Some(vec![value.artifact_id]), - KclValue::ImportedGeometry(_) => None, - KclValue::Function { .. } => None, - KclValue::Module { .. } => None, - KclValue::KclNone { .. } => None, - KclValue::Tombstone { .. } => None, - } - } - pub(crate) fn function_def_source_range(&self) -> Option { let KclValue::Function { expression, .. } = self else { return None; From ba2735583a28469995b813124155e9e76c26a667 Mon Sep 17 00:00:00 2001 From: Jonathan Tran Date: Wed, 5 Feb 2025 16:04:54 -0500 Subject: [PATCH 11/18] Update output since switching to OpKclValue --- .../artifact_graph_example_code1/ops.snap | 94 +++--- .../ops.snap | 22 +- .../ops.snap | 100 +----- .../basic_fillet_cube_close_opposite/ops.snap | 69 ++-- .../kcl/tests/basic_fillet_cube_end/ops.snap | 69 ++-- .../basic_fillet_cube_next_adjacent/ops.snap | 64 ++-- .../ops.snap | 64 ++-- .../tests/basic_fillet_cube_start/ops.snap | 70 +++-- .../circular_pattern3d_a_pattern/ops.snap | 184 +++++------ src/wasm-lib/kcl/tests/cube/ops.snap | 50 +-- .../kcl/tests/cube_with_error/ops.snap | 25 +- .../kcl/tests/fillet-and-shell/ops.snap | 297 +++++++++--------- .../kcl/tests/function_sketch/ops.snap | 36 +-- .../function_sketch_with_position/ops.snap | 36 +-- src/wasm-lib/kcl/tests/kw_fn/ops.snap | 22 +- .../kcl/tests/kw_fn_too_few_args/ops.snap | 11 +- .../kw_fn_unlabeled_but_has_label/ops.snap | 11 +- .../kcl/tests/kw_fn_with_defaults/ops.snap | 22 +- src/wasm-lib/kcl/tests/parametric/ops.snap | 36 +-- src/wasm-lib/kcl/tests/pipe_as_arg/ops.snap | 32 +- src/wasm-lib/kcl/tests/riddle_small/ops.snap | 36 +-- .../ops.snap | 173 ++++++---- .../sketch-on-chamfer-two-times/ops.snap | 173 ++++++---- .../kcl/tests/sketch_in_object/ops.snap | 72 ++--- .../ops.snap | 131 +++++--- .../kcl/tests/sketch_on_face_end/ops.snap | 81 +++-- .../ops.snap | 81 +++-- .../kcl/tests/sketch_on_face_start/ops.snap | 81 +++-- .../kcl/tests/tan_arc_x_line/ops.snap | 11 +- 29 files changed, 1097 insertions(+), 1056 deletions(-) diff --git a/src/wasm-lib/kcl/tests/artifact_graph_example_code1/ops.snap b/src/wasm-lib/kcl/tests/artifact_graph_example_code1/ops.snap index e4d9219fbc..e3f3f88c9b 100644 --- a/src/wasm-lib/kcl/tests/artifact_graph_example_code1/ops.snap +++ b/src/wasm-lib/kcl/tests/artifact_graph_example_code1/ops.snap @@ -8,16 +8,7 @@ description: Operations executed artifact_graph_example_code1.kcl "data": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 26, - 30, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 26, @@ -40,16 +31,7 @@ description: Operations executed artifact_graph_example_code1.kcl "length": { "value": { "type": "Number", - "value": -10.0, - "__meta": [ - { - "sourceRange": [ - 288, - 291, - 0 - ] - } - ] + "value": -10.0 }, "sourceRange": [ 288, @@ -66,9 +48,12 @@ description: Operations executed artifact_graph_example_code1.kcl ], "type": "StdLibCall", "unlabeledArg": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 268, 277, @@ -79,7 +64,25 @@ description: Operations executed artifact_graph_example_code1.kcl { "labeledArgs": { "data": { - "artifactIds": [], + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 5.0 + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "value": "seg01", + "artifact_id": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 305, 335, @@ -87,9 +90,12 @@ description: Operations executed artifact_graph_example_code1.kcl ] }, "solid": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 337, 338, @@ -109,9 +115,12 @@ description: Operations executed artifact_graph_example_code1.kcl { "labeledArgs": { "data": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 366, 376, @@ -119,6 +128,11 @@ description: Operations executed artifact_graph_example_code1.kcl ] }, "tag": { + "value": { + "type": "TagIdentifier", + "value": "seg02", + "artifact_id": "[uuid]" + }, "sourceRange": [ 378, 383, @@ -140,16 +154,7 @@ description: Operations executed artifact_graph_example_code1.kcl "length": { "value": { "type": "Number", - "value": 5.0, - "__meta": [ - { - "sourceRange": [ - 583, - 584, - 0 - ] - } - ] + "value": 5.0 }, "sourceRange": [ 583, @@ -166,9 +171,12 @@ description: Operations executed artifact_graph_example_code1.kcl ], "type": "StdLibCall", "unlabeledArg": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 563, 572, diff --git a/src/wasm-lib/kcl/tests/artifact_graph_example_code_no_3d/ops.snap b/src/wasm-lib/kcl/tests/artifact_graph_example_code_no_3d/ops.snap index 42316f58aa..c7627c2340 100644 --- a/src/wasm-lib/kcl/tests/artifact_graph_example_code_no_3d/ops.snap +++ b/src/wasm-lib/kcl/tests/artifact_graph_example_code_no_3d/ops.snap @@ -8,16 +8,7 @@ description: Operations executed artifact_graph_example_code_no_3d.kcl "data": { "value": { "type": "String", - "value": "YZ", - "__meta": [ - { - "sourceRange": [ - 26, - 30, - 0 - ] - } - ] + "value": "YZ" }, "sourceRange": [ 26, @@ -40,16 +31,7 @@ description: Operations executed artifact_graph_example_code_no_3d.kcl "data": { "value": { "type": "String", - "value": "-XZ", - "__meta": [ - { - "sourceRange": [ - 455, - 460, - 0 - ] - } - ] + "value": "-XZ" }, "sourceRange": [ 455, diff --git a/src/wasm-lib/kcl/tests/artifact_graph_example_code_offset_planes/ops.snap b/src/wasm-lib/kcl/tests/artifact_graph_example_code_offset_planes/ops.snap index 10d661d173..a0a2b74d4a 100644 --- a/src/wasm-lib/kcl/tests/artifact_graph_example_code_offset_planes/ops.snap +++ b/src/wasm-lib/kcl/tests/artifact_graph_example_code_offset_planes/ops.snap @@ -8,25 +8,7 @@ description: Operations executed artifact_graph_example_code_offset_planes.kcl "offset": { "value": { "type": "Number", - "value": 20.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - }, - "__meta": [ - { - "sourceRange": [ - 44, - 46, - 0 - ] - } - ] + "value": 20.0 }, "sourceRange": [ 44, @@ -45,16 +27,7 @@ description: Operations executed artifact_graph_example_code_offset_planes.kcl "unlabeledArg": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 29, - 33, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 29, @@ -68,25 +41,7 @@ description: Operations executed artifact_graph_example_code_offset_planes.kcl "offset": { "value": { "type": "Number", - "value": -50.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - }, - "__meta": [ - { - "sourceRange": [ - 92, - 95, - 0 - ] - } - ] + "value": -50.0 }, "sourceRange": [ 92, @@ -105,16 +60,7 @@ description: Operations executed artifact_graph_example_code_offset_planes.kcl "unlabeledArg": { "value": { "type": "String", - "value": "XZ", - "__meta": [ - { - "sourceRange": [ - 77, - 81, - 0 - ] - } - ] + "value": "XZ" }, "sourceRange": [ 77, @@ -128,25 +74,7 @@ description: Operations executed artifact_graph_example_code_offset_planes.kcl "offset": { "value": { "type": "Number", - "value": 10.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - }, - "__meta": [ - { - "sourceRange": [ - 141, - 143, - 0 - ] - } - ] + "value": 10.0 }, "sourceRange": [ 141, @@ -165,16 +93,7 @@ description: Operations executed artifact_graph_example_code_offset_planes.kcl "unlabeledArg": { "value": { "type": "String", - "value": "YZ", - "__meta": [ - { - "sourceRange": [ - 126, - 130, - 0 - ] - } - ] + "value": "YZ" }, "sourceRange": [ 126, @@ -186,9 +105,10 @@ description: Operations executed artifact_graph_example_code_offset_planes.kcl { "labeledArgs": { "data": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, "sourceRange": [ 172, 186, diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_close_opposite/ops.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_close_opposite/ops.snap index c37af0cffa..303dae959b 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_close_opposite/ops.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_close_opposite/ops.snap @@ -8,16 +8,7 @@ description: Operations executed basic_fillet_cube_close_opposite.kcl "data": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 24, - 28, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 24, @@ -40,16 +31,7 @@ description: Operations executed basic_fillet_cube_close_opposite.kcl "length": { "value": { "type": "Number", - "value": 10.0, - "__meta": [ - { - "sourceRange": [ - 214, - 216, - 0 - ] - } - ] + "value": 10.0 }, "sourceRange": [ 214, @@ -65,12 +47,46 @@ description: Operations executed basic_fillet_cube_close_opposite.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "data": { - "artifactIds": [], + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 2.0 + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "value": "thing3", + "artifact_id": "[uuid]" + }, + { + "type": "Uuid", + "value": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 230, 305, @@ -78,9 +94,12 @@ description: Operations executed basic_fillet_cube_close_opposite.kcl ] }, "solid": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 307, 308, diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_end/ops.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_end/ops.snap index 69e7b4982d..fc54a8683e 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_end/ops.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_end/ops.snap @@ -8,16 +8,7 @@ description: Operations executed basic_fillet_cube_end.kcl "data": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 24, - 28, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 24, @@ -40,16 +31,7 @@ description: Operations executed basic_fillet_cube_end.kcl "length": { "value": { "type": "Number", - "value": 10.0, - "__meta": [ - { - "sourceRange": [ - 202, - 204, - 0 - ] - } - ] + "value": 10.0 }, "sourceRange": [ 202, @@ -65,12 +47,46 @@ description: Operations executed basic_fillet_cube_end.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "data": { - "artifactIds": [], + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 2.0 + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "value": "thing", + "artifact_id": "[uuid]" + }, + { + "type": "Uuid", + "value": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 218, 291, @@ -78,9 +94,12 @@ description: Operations executed basic_fillet_cube_end.kcl ] }, "solid": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 293, 294, diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_next_adjacent/ops.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_next_adjacent/ops.snap index b3f83bfc54..c0fbb68ca8 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_next_adjacent/ops.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_next_adjacent/ops.snap @@ -8,16 +8,7 @@ description: Operations executed basic_fillet_cube_next_adjacent.kcl "data": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 24, - 28, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 24, @@ -40,16 +31,7 @@ description: Operations executed basic_fillet_cube_next_adjacent.kcl "length": { "value": { "type": "Number", - "value": 10.0, - "__meta": [ - { - "sourceRange": [ - 229, - 231, - 0 - ] - } - ] + "value": 10.0 }, "sourceRange": [ 229, @@ -65,12 +47,41 @@ description: Operations executed basic_fillet_cube_next_adjacent.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "data": { - "artifactIds": [], + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 2.0 + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "Uuid", + "value": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 245, 316, @@ -78,9 +89,12 @@ description: Operations executed basic_fillet_cube_next_adjacent.kcl ] }, "solid": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 318, 319, diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_previous_adjacent/ops.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_previous_adjacent/ops.snap index c8fefb158a..939eda4cbf 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_previous_adjacent/ops.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_previous_adjacent/ops.snap @@ -8,16 +8,7 @@ description: Operations executed basic_fillet_cube_previous_adjacent.kcl "data": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 24, - 28, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 24, @@ -40,16 +31,7 @@ description: Operations executed basic_fillet_cube_previous_adjacent.kcl "length": { "value": { "type": "Number", - "value": 10.0, - "__meta": [ - { - "sourceRange": [ - 229, - 231, - 0 - ] - } - ] + "value": 10.0 }, "sourceRange": [ 229, @@ -65,12 +47,41 @@ description: Operations executed basic_fillet_cube_previous_adjacent.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "data": { - "artifactIds": [], + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 2.0 + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "Uuid", + "value": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 245, 320, @@ -78,9 +89,12 @@ description: Operations executed basic_fillet_cube_previous_adjacent.kcl ] }, "solid": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 322, 323, diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_start/ops.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_start/ops.snap index 19e8dca8b2..39bf1792de 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_start/ops.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_start/ops.snap @@ -8,16 +8,7 @@ description: Operations executed basic_fillet_cube_start.kcl "data": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 24, - 28, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 24, @@ -40,16 +31,7 @@ description: Operations executed basic_fillet_cube_start.kcl "length": { "value": { "type": "Number", - "value": 10.0, - "__meta": [ - { - "sourceRange": [ - 202, - 204, - 0 - ] - } - ] + "value": 10.0 }, "sourceRange": [ 202, @@ -65,12 +47,47 @@ description: Operations executed basic_fillet_cube_start.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "data": { - "artifactIds": [], + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 2.0 + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "value": "thing", + "artifact_id": "[uuid]" + }, + { + "type": "TagIdentifier", + "value": "thing2", + "artifact_id": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 218, 256, @@ -78,9 +95,12 @@ description: Operations executed basic_fillet_cube_start.kcl ] }, "solid": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 258, 259, diff --git a/src/wasm-lib/kcl/tests/circular_pattern3d_a_pattern/ops.snap b/src/wasm-lib/kcl/tests/circular_pattern3d_a_pattern/ops.snap index 694b8bb8f0..45935693c5 100644 --- a/src/wasm-lib/kcl/tests/circular_pattern3d_a_pattern/ops.snap +++ b/src/wasm-lib/kcl/tests/circular_pattern3d_a_pattern/ops.snap @@ -8,16 +8,7 @@ description: Operations executed circular_pattern3d_a_pattern.kcl "data": { "value": { "type": "String", - "value": "XZ", - "__meta": [ - { - "sourceRange": [ - 30, - 34, - 0 - ] - } - ] + "value": "XZ" }, "sourceRange": [ 30, @@ -40,16 +31,7 @@ description: Operations executed circular_pattern3d_a_pattern.kcl "length": { "value": { "type": "Number", - "value": 1.0, - "__meta": [ - { - "sourceRange": [ - 176, - 177, - 0 - ] - } - ] + "value": 1.0 }, "sourceRange": [ 176, @@ -66,9 +48,12 @@ description: Operations executed circular_pattern3d_a_pattern.kcl ], "type": "StdLibCall", "unlabeledArg": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 0, 0, @@ -79,7 +64,23 @@ description: Operations executed circular_pattern3d_a_pattern.kcl { "labeledArgs": { "axis": { - "artifactIds": [], + "value": { + "type": "Array", + "value": [ + { + "type": "Number", + "value": 1.0 + }, + { + "type": "Number", + "value": 0.0 + }, + { + "type": "Number", + "value": 0.0 + } + ] + }, "sourceRange": [ 232, 241, @@ -89,16 +90,7 @@ description: Operations executed circular_pattern3d_a_pattern.kcl "distance": { "value": { "type": "Number", - "value": 6.0, - "__meta": [ - { - "sourceRange": [ - 273, - 274, - 0 - ] - } - ] + "value": 6.0 }, "sourceRange": [ 273, @@ -109,16 +101,7 @@ description: Operations executed circular_pattern3d_a_pattern.kcl "instances": { "value": { "type": "Number", - "value": 7.0, - "__meta": [ - { - "sourceRange": [ - 257, - 258, - 0 - ] - } - ] + "value": 7.0 }, "sourceRange": [ 257, @@ -135,9 +118,12 @@ description: Operations executed circular_pattern3d_a_pattern.kcl ], "type": "StdLibCall", "unlabeledArg": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 208, 221, @@ -150,16 +136,7 @@ description: Operations executed circular_pattern3d_a_pattern.kcl "arcDegrees": { "value": { "type": "Number", - "value": 360.0, - "__meta": [ - { - "sourceRange": [ - 398, - 401, - 0 - ] - } - ] + "value": 360.0 }, "sourceRange": [ 398, @@ -168,7 +145,23 @@ description: Operations executed circular_pattern3d_a_pattern.kcl ] }, "axis": { - "artifactIds": [], + "value": { + "type": "Array", + "value": [ + { + "type": "Number", + "value": 0.0 + }, + { + "type": "Number", + "value": 0.0 + }, + { + "type": "Number", + "value": 1.0 + } + ] + }, "sourceRange": [ 326, 335, @@ -176,7 +169,23 @@ description: Operations executed circular_pattern3d_a_pattern.kcl ] }, "center": { - "artifactIds": [], + "value": { + "type": "Array", + "value": [ + { + "type": "Number", + "value": -20.0 + }, + { + "type": "Number", + "value": -20.0 + }, + { + "type": "Number", + "value": -20.0 + } + ] + }, "sourceRange": [ 348, 363, @@ -186,16 +195,7 @@ description: Operations executed circular_pattern3d_a_pattern.kcl "instances": { "value": { "type": "Number", - "value": 41.0, - "__meta": [ - { - "sourceRange": [ - 379, - 381, - 0 - ] - } - ] + "value": 41.0 }, "sourceRange": [ 379, @@ -206,16 +206,7 @@ description: Operations executed circular_pattern3d_a_pattern.kcl "rotateDuplicates": { "value": { "type": "Bool", - "value": false, - "__meta": [ - { - "sourceRange": [ - 424, - 429, - 0 - ] - } - ] + "value": false }, "sourceRange": [ 424, @@ -232,15 +223,32 @@ description: Operations executed circular_pattern3d_a_pattern.kcl ], "type": "StdLibCall", "unlabeledArg": { - "artifactIds": [ - "[uuid]", - "[uuid]", - "[uuid]", - "[uuid]", - "[uuid]", - "[uuid]", - "[uuid]" - ], + "value": { + "type": "Solids", + "value": [ + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + } + ] + }, "sourceRange": [ 309, 315, diff --git a/src/wasm-lib/kcl/tests/cube/ops.snap b/src/wasm-lib/kcl/tests/cube/ops.snap index 84da01de52..dee1ddf7c9 100644 --- a/src/wasm-lib/kcl/tests/cube/ops.snap +++ b/src/wasm-lib/kcl/tests/cube/ops.snap @@ -14,7 +14,19 @@ description: Operations executed cube.kcl "unlabeledArg": null, "labeledArgs": { "center": { - "artifactIds": [], + "value": { + "type": "Array", + "value": [ + { + "type": "Number", + "value": 0.0 + }, + { + "type": "Number", + "value": 0.0 + } + ] + }, "sourceRange": [ 417, 423, @@ -24,16 +36,7 @@ description: Operations executed cube.kcl "sideLength": { "value": { "type": "Number", - "value": 40.0, - "__meta": [ - { - "sourceRange": [ - 404, - 406, - 0 - ] - } - ] + "value": 40.0 }, "sourceRange": [ 404, @@ -53,16 +56,7 @@ description: Operations executed cube.kcl "length": { "value": { "type": "Number", - "value": 40.0, - "__meta": [ - { - "sourceRange": [ - 404, - 406, - 0 - ] - } - ] + "value": 40.0 }, "sourceRange": [ 362, @@ -78,7 +72,19 @@ description: Operations executed cube.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "type": "UserDefinedFunctionReturn" diff --git a/src/wasm-lib/kcl/tests/cube_with_error/ops.snap b/src/wasm-lib/kcl/tests/cube_with_error/ops.snap index b25a9bfda7..b24df4f8d4 100644 --- a/src/wasm-lib/kcl/tests/cube_with_error/ops.snap +++ b/src/wasm-lib/kcl/tests/cube_with_error/ops.snap @@ -24,16 +24,7 @@ description: Operations executed cube_with_error.kcl "length": { "value": { "type": "Number", - "value": 40.0, - "__meta": [ - { - "sourceRange": [ - 379, - 381, - 0 - ] - } - ] + "value": 40.0 }, "sourceRange": [ 354, @@ -49,7 +40,19 @@ description: Operations executed cube_with_error.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "type": "UserDefinedFunctionReturn" diff --git a/src/wasm-lib/kcl/tests/fillet-and-shell/ops.snap b/src/wasm-lib/kcl/tests/fillet-and-shell/ops.snap index 9911cfaac0..39dfb87a22 100644 --- a/src/wasm-lib/kcl/tests/fillet-and-shell/ops.snap +++ b/src/wasm-lib/kcl/tests/fillet-and-shell/ops.snap @@ -8,16 +8,7 @@ description: Operations executed fillet-and-shell.kcl "data": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 791, - 795, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 791, @@ -40,16 +31,7 @@ description: Operations executed fillet-and-shell.kcl "length": { "value": { "type": "Number", - "value": 8.0, - "__meta": [ - { - "sourceRange": [ - 165, - 166, - 0 - ] - } - ] + "value": 8.0 }, "sourceRange": [ 1047, @@ -66,9 +48,12 @@ description: Operations executed fillet-and-shell.kcl ], "type": "StdLibCall", "unlabeledArg": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 0, 0, @@ -79,7 +64,36 @@ description: Operations executed fillet-and-shell.kcl { "labeledArgs": { "data": { - "artifactIds": [], + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 1.0 + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "Uuid", + "value": "[uuid]" + }, + { + "type": "Uuid", + "value": "[uuid]" + }, + { + "type": "Uuid", + "value": "[uuid]" + }, + { + "type": "Uuid", + "value": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 1071, 1270, @@ -87,9 +101,12 @@ description: Operations executed fillet-and-shell.kcl ] }, "solid": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1272, 1273, @@ -127,16 +144,7 @@ description: Operations executed fillet-and-shell.kcl "data": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 1328, - 1332, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 1328, @@ -157,9 +165,12 @@ description: Operations executed fillet-and-shell.kcl { "labeledArgs": { "hole_sketch": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1431, 1476, @@ -167,9 +178,12 @@ description: Operations executed fillet-and-shell.kcl ] }, "sketch": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1478, 1479, @@ -191,16 +205,7 @@ description: Operations executed fillet-and-shell.kcl "length": { "value": { "type": "Number", - "value": 4.0, - "__meta": [ - { - "sourceRange": [ - 77, - 78, - 0 - ] - } - ] + "value": 4.0 }, "sourceRange": [ 1505, @@ -217,9 +222,12 @@ description: Operations executed fillet-and-shell.kcl ], "type": "StdLibCall", "unlabeledArg": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 0, 0, @@ -251,16 +259,7 @@ description: Operations executed fillet-and-shell.kcl "data": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 1328, - 1332, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 1328, @@ -281,9 +280,12 @@ description: Operations executed fillet-and-shell.kcl { "labeledArgs": { "hole_sketch": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1431, 1476, @@ -291,9 +293,12 @@ description: Operations executed fillet-and-shell.kcl ] }, "sketch": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1478, 1479, @@ -315,16 +320,7 @@ description: Operations executed fillet-and-shell.kcl "length": { "value": { "type": "Number", - "value": 4.0, - "__meta": [ - { - "sourceRange": [ - 77, - 78, - 0 - ] - } - ] + "value": 4.0 }, "sourceRange": [ 1505, @@ -341,9 +337,12 @@ description: Operations executed fillet-and-shell.kcl ], "type": "StdLibCall", "unlabeledArg": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 0, 0, @@ -375,16 +374,7 @@ description: Operations executed fillet-and-shell.kcl "data": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 1328, - 1332, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 1328, @@ -405,9 +395,12 @@ description: Operations executed fillet-and-shell.kcl { "labeledArgs": { "hole_sketch": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1431, 1476, @@ -415,9 +408,12 @@ description: Operations executed fillet-and-shell.kcl ] }, "sketch": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1478, 1479, @@ -439,16 +435,7 @@ description: Operations executed fillet-and-shell.kcl "length": { "value": { "type": "Number", - "value": 4.0, - "__meta": [ - { - "sourceRange": [ - 77, - 78, - 0 - ] - } - ] + "value": 4.0 }, "sourceRange": [ 1505, @@ -465,9 +452,12 @@ description: Operations executed fillet-and-shell.kcl ], "type": "StdLibCall", "unlabeledArg": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 0, 0, @@ -499,16 +489,7 @@ description: Operations executed fillet-and-shell.kcl "data": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 1328, - 1332, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 1328, @@ -529,9 +510,12 @@ description: Operations executed fillet-and-shell.kcl { "labeledArgs": { "hole_sketch": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1431, 1476, @@ -539,9 +523,12 @@ description: Operations executed fillet-and-shell.kcl ] }, "sketch": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1478, 1479, @@ -563,16 +550,7 @@ description: Operations executed fillet-and-shell.kcl "length": { "value": { "type": "Number", - "value": 4.0, - "__meta": [ - { - "sourceRange": [ - 77, - 78, - 0 - ] - } - ] + "value": 4.0 }, "sourceRange": [ 1505, @@ -589,9 +567,12 @@ description: Operations executed fillet-and-shell.kcl ], "type": "StdLibCall", "unlabeledArg": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 0, 0, @@ -605,7 +586,15 @@ description: Operations executed fillet-and-shell.kcl { "labeledArgs": { "faces": { - "artifactIds": [], + "value": { + "type": "Array", + "value": [ + { + "type": "String", + "value": "end" + } + ] + }, "sourceRange": [ 2067, 2074, @@ -615,16 +604,7 @@ description: Operations executed fillet-and-shell.kcl "thickness": { "value": { "type": "Number", - "value": 1.0, - "__meta": [ - { - "sourceRange": [ - 48, - 49, - 0 - ] - } - ] + "value": 1.0 }, "sourceRange": [ 2088, @@ -641,9 +621,12 @@ description: Operations executed fillet-and-shell.kcl ], "type": "StdLibCall", "unlabeledArg": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 2053, 2057, diff --git a/src/wasm-lib/kcl/tests/function_sketch/ops.snap b/src/wasm-lib/kcl/tests/function_sketch/ops.snap index f71e0cab10..0ac2d139c3 100644 --- a/src/wasm-lib/kcl/tests/function_sketch/ops.snap +++ b/src/wasm-lib/kcl/tests/function_sketch/ops.snap @@ -24,16 +24,7 @@ description: Operations executed function_sketch.kcl "data": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 42, - 46, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 42, @@ -56,16 +47,7 @@ description: Operations executed function_sketch.kcl "length": { "value": { "type": "Number", - "value": 3.0, - "__meta": [ - { - "sourceRange": [ - 234, - 235, - 0 - ] - } - ] + "value": 3.0 }, "sourceRange": [ 200, @@ -81,7 +63,19 @@ description: Operations executed function_sketch.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "type": "UserDefinedFunctionReturn" diff --git a/src/wasm-lib/kcl/tests/function_sketch_with_position/ops.snap b/src/wasm-lib/kcl/tests/function_sketch_with_position/ops.snap index 2a31abacbb..ce7fa2e42f 100644 --- a/src/wasm-lib/kcl/tests/function_sketch_with_position/ops.snap +++ b/src/wasm-lib/kcl/tests/function_sketch_with_position/ops.snap @@ -24,16 +24,7 @@ description: Operations executed function_sketch_with_position.kcl "data": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 45, - 49, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 45, @@ -56,16 +47,7 @@ description: Operations executed function_sketch_with_position.kcl "length": { "value": { "type": "Number", - "value": 3.0, - "__meta": [ - { - "sourceRange": [ - 240, - 241, - 0 - ] - } - ] + "value": 3.0 }, "sourceRange": [ 198, @@ -81,7 +63,19 @@ description: Operations executed function_sketch_with_position.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "type": "UserDefinedFunctionReturn" diff --git a/src/wasm-lib/kcl/tests/kw_fn/ops.snap b/src/wasm-lib/kcl/tests/kw_fn/ops.snap index d40374a33a..7992cbe416 100644 --- a/src/wasm-lib/kcl/tests/kw_fn/ops.snap +++ b/src/wasm-lib/kcl/tests/kw_fn/ops.snap @@ -33,16 +33,7 @@ description: Operations executed kw_fn.kcl "unlabeledArg": { "value": { "type": "Number", - "value": 1.0, - "__meta": [ - { - "sourceRange": [ - 110, - 111, - 0 - ] - } - ] + "value": 1.0 }, "sourceRange": [ 110, @@ -54,16 +45,7 @@ description: Operations executed kw_fn.kcl "delta": { "value": { "type": "Number", - "value": 2.0, - "__meta": [ - { - "sourceRange": [ - 121, - 122, - 0 - ] - } - ] + "value": 2.0 }, "sourceRange": [ 121, diff --git a/src/wasm-lib/kcl/tests/kw_fn_too_few_args/ops.snap b/src/wasm-lib/kcl/tests/kw_fn_too_few_args/ops.snap index 8c6bdb3796..ad9cf84323 100644 --- a/src/wasm-lib/kcl/tests/kw_fn_too_few_args/ops.snap +++ b/src/wasm-lib/kcl/tests/kw_fn_too_few_args/ops.snap @@ -16,16 +16,7 @@ description: Operations executed kw_fn_too_few_args.kcl "x": { "value": { "type": "Number", - "value": 1.0, - "__meta": [ - { - "sourceRange": [ - 49, - 50, - 0 - ] - } - ] + "value": 1.0 }, "sourceRange": [ 49, diff --git a/src/wasm-lib/kcl/tests/kw_fn_unlabeled_but_has_label/ops.snap b/src/wasm-lib/kcl/tests/kw_fn_unlabeled_but_has_label/ops.snap index f58cd0648d..fd71ff2ef9 100644 --- a/src/wasm-lib/kcl/tests/kw_fn_unlabeled_but_has_label/ops.snap +++ b/src/wasm-lib/kcl/tests/kw_fn_unlabeled_but_has_label/ops.snap @@ -16,16 +16,7 @@ description: Operations executed kw_fn_unlabeled_but_has_label.kcl "x": { "value": { "type": "Number", - "value": 1.0, - "__meta": [ - { - "sourceRange": [ - 45, - 46, - 0 - ] - } - ] + "value": 1.0 }, "sourceRange": [ 45, diff --git a/src/wasm-lib/kcl/tests/kw_fn_with_defaults/ops.snap b/src/wasm-lib/kcl/tests/kw_fn_with_defaults/ops.snap index e57e93b941..b2394c242d 100644 --- a/src/wasm-lib/kcl/tests/kw_fn_with_defaults/ops.snap +++ b/src/wasm-lib/kcl/tests/kw_fn_with_defaults/ops.snap @@ -33,16 +33,7 @@ description: Operations executed kw_fn_with_defaults.kcl "unlabeledArg": { "value": { "type": "Number", - "value": 1.0, - "__meta": [ - { - "sourceRange": [ - 88, - 89, - 0 - ] - } - ] + "value": 1.0 }, "sourceRange": [ 88, @@ -54,16 +45,7 @@ description: Operations executed kw_fn_with_defaults.kcl "by": { "value": { "type": "Number", - "value": 20.0, - "__meta": [ - { - "sourceRange": [ - 96, - 98, - 0 - ] - } - ] + "value": 20.0 }, "sourceRange": [ 96, diff --git a/src/wasm-lib/kcl/tests/parametric/ops.snap b/src/wasm-lib/kcl/tests/parametric/ops.snap index 20bff8b4ee..0d8240f123 100644 --- a/src/wasm-lib/kcl/tests/parametric/ops.snap +++ b/src/wasm-lib/kcl/tests/parametric/ops.snap @@ -8,16 +8,7 @@ description: Operations executed parametric.kcl "data": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 242, - 246, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 242, @@ -40,16 +31,7 @@ description: Operations executed parametric.kcl "length": { "value": { "type": "Number", - "value": 9.0, - "__meta": [ - { - "sourceRange": [ - 34, - 35, - 0 - ] - } - ] + "value": 9.0 }, "sourceRange": [ 482, @@ -65,6 +47,18 @@ description: Operations executed parametric.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/pipe_as_arg/ops.snap b/src/wasm-lib/kcl/tests/pipe_as_arg/ops.snap index 063122f2db..832e113686 100644 --- a/src/wasm-lib/kcl/tests/pipe_as_arg/ops.snap +++ b/src/wasm-lib/kcl/tests/pipe_as_arg/ops.snap @@ -43,23 +43,7 @@ description: Operations executed pipe_as_arg.kcl "length": { "value": { "type": "Number", - "value": 400.0, - "__meta": [ - { - "sourceRange": [ - 441, - 444, - 0 - ] - }, - { - "sourceRange": [ - 394, - 395, - 0 - ] - } - ] + "value": 400.0 }, "sourceRange": [ 355, @@ -75,7 +59,19 @@ description: Operations executed pipe_as_arg.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "type": "UserDefinedFunctionReturn" diff --git a/src/wasm-lib/kcl/tests/riddle_small/ops.snap b/src/wasm-lib/kcl/tests/riddle_small/ops.snap index 80589eb8a0..8969d63a3f 100644 --- a/src/wasm-lib/kcl/tests/riddle_small/ops.snap +++ b/src/wasm-lib/kcl/tests/riddle_small/ops.snap @@ -46,16 +46,7 @@ description: Operations executed riddle_small.kcl "data": { "value": { "type": "String", - "value": "XZ", - "__meta": [ - { - "sourceRange": [ - 155, - 159, - 0 - ] - } - ] + "value": "XZ" }, "sourceRange": [ 155, @@ -78,16 +69,7 @@ description: Operations executed riddle_small.kcl "length": { "value": { "type": "Number", - "value": 1.0, - "__meta": [ - { - "sourceRange": [ - 304, - 305, - 0 - ] - } - ] + "value": 1.0 }, "sourceRange": [ 304, @@ -103,6 +85,18 @@ description: Operations executed riddle_small.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times-different-order/ops.snap b/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times-different-order/ops.snap index af61023fff..f0ca2a9e78 100644 --- a/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times-different-order/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times-different-order/ops.snap @@ -8,16 +8,7 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl "data": { "value": { "type": "String", - "value": "XZ", - "__meta": [ - { - "sourceRange": [ - 26, - 30, - 0 - ] - } - ] + "value": "XZ" }, "sourceRange": [ 26, @@ -40,16 +31,7 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl "length": { "value": { "type": "Number", - "value": 100.0, - "__meta": [ - { - "sourceRange": [ - 482, - 485, - 0 - ] - } - ] + "value": 100.0 }, "sourceRange": [ 482, @@ -66,9 +48,12 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl ], "type": "StdLibCall", "unlabeledArg": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 462, 471, @@ -79,7 +64,25 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl { "labeledArgs": { "data": { - "artifactIds": [], + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 20.0 + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "value": "seg01", + "artifact_id": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 499, 530, @@ -87,9 +90,12 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl ] }, "solid": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 532, 533, @@ -109,7 +115,24 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl { "labeledArgs": { "data": { - "artifactIds": [], + "value": { + "type": "Object", + "value": { + "length": { + "type": "Number", + "value": 50.0 + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "Uuid", + "value": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 548, 615, @@ -117,9 +140,12 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl ] }, "solid": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 617, 618, @@ -127,6 +153,10 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl ] }, "tag": { + "value": { + "type": "TagDeclarator", + "name": "seg03" + }, "sourceRange": [ 620, 626, @@ -146,7 +176,25 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl { "labeledArgs": { "data": { - "artifactIds": [], + "value": { + "type": "Object", + "value": { + "length": { + "type": "Number", + "value": 50.0 + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "value": "seg02", + "artifact_id": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 641, 672, @@ -154,9 +202,12 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl ] }, "solid": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 674, 675, @@ -164,6 +215,10 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl ] }, "tag": { + "value": { + "type": "TagDeclarator", + "name": "seg04" + }, "sourceRange": [ 677, 683, @@ -183,9 +238,12 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl { "labeledArgs": { "data": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 712, 722, @@ -193,6 +251,11 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl ] }, "tag": { + "value": { + "type": "TagIdentifier", + "value": "seg04", + "artifact_id": "[uuid]" + }, "sourceRange": [ 724, 729, @@ -212,9 +275,12 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl { "labeledArgs": { "data": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1160, 1170, @@ -222,6 +288,11 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl ] }, "tag": { + "value": { + "type": "TagIdentifier", + "value": "seg03", + "artifact_id": "[uuid]" + }, "sourceRange": [ 1172, 1177, @@ -243,16 +314,7 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl "length": { "value": { "type": "Number", - "value": 50.0, - "__meta": [ - { - "sourceRange": [ - 1625, - 1627, - 0 - ] - } - ] + "value": 50.0 }, "sourceRange": [ 1625, @@ -269,9 +331,12 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl ], "type": "StdLibCall", "unlabeledArg": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1605, 1614, diff --git a/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times/ops.snap b/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times/ops.snap index 3868d1a763..10238d79dd 100644 --- a/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times/ops.snap @@ -8,16 +8,7 @@ description: Operations executed sketch-on-chamfer-two-times.kcl "data": { "value": { "type": "String", - "value": "XZ", - "__meta": [ - { - "sourceRange": [ - 26, - 30, - 0 - ] - } - ] + "value": "XZ" }, "sourceRange": [ 26, @@ -40,16 +31,7 @@ description: Operations executed sketch-on-chamfer-two-times.kcl "length": { "value": { "type": "Number", - "value": 100.0, - "__meta": [ - { - "sourceRange": [ - 482, - 485, - 0 - ] - } - ] + "value": 100.0 }, "sourceRange": [ 482, @@ -66,9 +48,12 @@ description: Operations executed sketch-on-chamfer-two-times.kcl ], "type": "StdLibCall", "unlabeledArg": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 462, 471, @@ -79,7 +64,25 @@ description: Operations executed sketch-on-chamfer-two-times.kcl { "labeledArgs": { "data": { - "artifactIds": [], + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 20.0 + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "value": "seg01", + "artifact_id": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 499, 530, @@ -87,9 +90,12 @@ description: Operations executed sketch-on-chamfer-two-times.kcl ] }, "solid": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 532, 533, @@ -109,7 +115,25 @@ description: Operations executed sketch-on-chamfer-two-times.kcl { "labeledArgs": { "data": { - "artifactIds": [], + "value": { + "type": "Object", + "value": { + "length": { + "type": "Number", + "value": 50.0 + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "value": "seg02", + "artifact_id": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 548, 579, @@ -117,9 +141,12 @@ description: Operations executed sketch-on-chamfer-two-times.kcl ] }, "solid": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 581, 582, @@ -127,6 +154,10 @@ description: Operations executed sketch-on-chamfer-two-times.kcl ] }, "tag": { + "value": { + "type": "TagDeclarator", + "name": "seg04" + }, "sourceRange": [ 584, 590, @@ -146,7 +177,24 @@ description: Operations executed sketch-on-chamfer-two-times.kcl { "labeledArgs": { "data": { - "artifactIds": [], + "value": { + "type": "Object", + "value": { + "length": { + "type": "Number", + "value": 50.0 + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "Uuid", + "value": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 605, 672, @@ -154,9 +202,12 @@ description: Operations executed sketch-on-chamfer-two-times.kcl ] }, "solid": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 674, 675, @@ -164,6 +215,10 @@ description: Operations executed sketch-on-chamfer-two-times.kcl ] }, "tag": { + "value": { + "type": "TagDeclarator", + "name": "seg03" + }, "sourceRange": [ 677, 683, @@ -183,9 +238,12 @@ description: Operations executed sketch-on-chamfer-two-times.kcl { "labeledArgs": { "data": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 712, 722, @@ -193,6 +251,11 @@ description: Operations executed sketch-on-chamfer-two-times.kcl ] }, "tag": { + "value": { + "type": "TagIdentifier", + "value": "seg04", + "artifact_id": "[uuid]" + }, "sourceRange": [ 724, 729, @@ -212,9 +275,12 @@ description: Operations executed sketch-on-chamfer-two-times.kcl { "labeledArgs": { "data": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1160, 1170, @@ -222,6 +288,11 @@ description: Operations executed sketch-on-chamfer-two-times.kcl ] }, "tag": { + "value": { + "type": "TagIdentifier", + "value": "seg03", + "artifact_id": "[uuid]" + }, "sourceRange": [ 1172, 1177, @@ -243,16 +314,7 @@ description: Operations executed sketch-on-chamfer-two-times.kcl "length": { "value": { "type": "Number", - "value": 50.0, - "__meta": [ - { - "sourceRange": [ - 1625, - 1627, - 0 - ] - } - ] + "value": 50.0 }, "sourceRange": [ 1625, @@ -269,9 +331,12 @@ description: Operations executed sketch-on-chamfer-two-times.kcl ], "type": "StdLibCall", "unlabeledArg": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1605, 1614, diff --git a/src/wasm-lib/kcl/tests/sketch_in_object/ops.snap b/src/wasm-lib/kcl/tests/sketch_in_object/ops.snap index 5775cc2338..06a4fd83a9 100644 --- a/src/wasm-lib/kcl/tests/sketch_in_object/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_in_object/ops.snap @@ -24,16 +24,7 @@ description: Operations executed sketch_in_object.kcl "data": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 35, - 39, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 35, @@ -59,16 +50,7 @@ description: Operations executed sketch_in_object.kcl "length": { "value": { "type": "Number", - "value": -10.0, - "__meta": [ - { - "sourceRange": [ - 442, - 445, - 0 - ] - } - ] + "value": -10.0 }, "sourceRange": [ 442, @@ -84,7 +66,19 @@ description: Operations executed sketch_in_object.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "type": "UserDefinedFunctionCall", @@ -107,16 +101,7 @@ description: Operations executed sketch_in_object.kcl "data": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 240, - 244, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 240, @@ -142,16 +127,7 @@ description: Operations executed sketch_in_object.kcl "length": { "value": { "type": "Number", - "value": 10.0, - "__meta": [ - { - "sourceRange": [ - 500, - 502, - 0 - ] - } - ] + "value": 10.0 }, "sourceRange": [ 500, @@ -167,6 +143,18 @@ description: Operations executed sketch_in_object.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/sketch_on_face_after_fillets_referencing_face/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face_after_fillets_referencing_face/ops.snap index 5eef96e59e..aa456d5f7c 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face_after_fillets_referencing_face/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face_after_fillets_referencing_face/ops.snap @@ -8,16 +8,7 @@ description: Operations executed sketch_on_face_after_fillets_referencing_face.k "data": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 1006, - 1010, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 1006, @@ -40,16 +31,7 @@ description: Operations executed sketch_on_face_after_fillets_referencing_face.k "length": { "value": { "type": "Number", - "value": 6.0, - "__meta": [ - { - "sourceRange": [ - 594, - 595, - 0 - ] - } - ] + "value": 6.0 }, "sourceRange": [ 1322, @@ -65,12 +47,41 @@ description: Operations executed sketch_on_face_after_fillets_referencing_face.k 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "data": { - "artifactIds": [], + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 0.25 + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "Uuid", + "value": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 1341, 1421, @@ -78,9 +89,12 @@ description: Operations executed sketch_on_face_after_fillets_referencing_face.k ] }, "solid": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1423, 1424, @@ -100,7 +114,24 @@ description: Operations executed sketch_on_face_after_fillets_referencing_face.k { "labeledArgs": { "data": { - "artifactIds": [], + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 0.5707134902949093 + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "Uuid", + "value": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 1438, 1530, @@ -108,9 +139,12 @@ description: Operations executed sketch_on_face_after_fillets_referencing_face.k ] }, "solid": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1532, 1533, @@ -130,9 +164,12 @@ description: Operations executed sketch_on_face_after_fillets_referencing_face.k { "labeledArgs": { "data": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1562, 1569, @@ -140,6 +177,11 @@ description: Operations executed sketch_on_face_after_fillets_referencing_face.k ] }, "tag": { + "value": { + "type": "TagIdentifier", + "value": "seg01", + "artifact_id": "[uuid]" + }, "sourceRange": [ 1571, 1576, @@ -161,16 +203,7 @@ description: Operations executed sketch_on_face_after_fillets_referencing_face.k "length": { "value": { "type": "Number", - "value": 10.0, - "__meta": [ - { - "sourceRange": [ - 1806, - 1808, - 0 - ] - } - ] + "value": 10.0 }, "sourceRange": [ 1806, @@ -186,6 +219,18 @@ description: Operations executed sketch_on_face_after_fillets_referencing_face.k 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/sketch_on_face_end/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face_end/ops.snap index 003e5ad62f..80f3bed179 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face_end/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face_end/ops.snap @@ -24,16 +24,7 @@ description: Operations executed sketch_on_face_end.kcl "data": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 43, - 47, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 43, @@ -59,16 +50,7 @@ description: Operations executed sketch_on_face_end.kcl "length": { "value": { "type": "Number", - "value": 20.0, - "__meta": [ - { - "sourceRange": [ - 248, - 250, - 0 - ] - } - ] + "value": 20.0 }, "sourceRange": [ 248, @@ -84,14 +66,29 @@ description: Operations executed sketch_on_face_end.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "data": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 277, 284, @@ -101,16 +98,7 @@ description: Operations executed sketch_on_face_end.kcl "tag": { "value": { "type": "String", - "value": "END", - "__meta": [ - { - "sourceRange": [ - 286, - 291, - 0 - ] - } - ] + "value": "END" }, "sourceRange": [ 286, @@ -133,16 +121,7 @@ description: Operations executed sketch_on_face_end.kcl "length": { "value": { "type": "Number", - "value": 5.0, - "__meta": [ - { - "sourceRange": [ - 436, - 437, - 0 - ] - } - ] + "value": 5.0 }, "sourceRange": [ 436, @@ -158,6 +137,18 @@ description: Operations executed sketch_on_face_end.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/sketch_on_face_end_negative_extrude/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face_end_negative_extrude/ops.snap index 0a0e994602..6902402114 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face_end_negative_extrude/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face_end_negative_extrude/ops.snap @@ -24,16 +24,7 @@ description: Operations executed sketch_on_face_end_negative_extrude.kcl "data": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 43, - 47, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 43, @@ -59,16 +50,7 @@ description: Operations executed sketch_on_face_end_negative_extrude.kcl "length": { "value": { "type": "Number", - "value": 20.0, - "__meta": [ - { - "sourceRange": [ - 248, - 250, - 0 - ] - } - ] + "value": 20.0 }, "sourceRange": [ 248, @@ -84,14 +66,29 @@ description: Operations executed sketch_on_face_end_negative_extrude.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "data": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 277, 284, @@ -101,16 +98,7 @@ description: Operations executed sketch_on_face_end_negative_extrude.kcl "tag": { "value": { "type": "String", - "value": "END", - "__meta": [ - { - "sourceRange": [ - 286, - 291, - 0 - ] - } - ] + "value": "END" }, "sourceRange": [ 286, @@ -133,16 +121,7 @@ description: Operations executed sketch_on_face_end_negative_extrude.kcl "length": { "value": { "type": "Number", - "value": -5.0, - "__meta": [ - { - "sourceRange": [ - 436, - 438, - 0 - ] - } - ] + "value": -5.0 }, "sourceRange": [ 436, @@ -158,6 +137,18 @@ description: Operations executed sketch_on_face_end_negative_extrude.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/sketch_on_face_start/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face_start/ops.snap index ef469bba5e..197f847dff 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face_start/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face_start/ops.snap @@ -24,16 +24,7 @@ description: Operations executed sketch_on_face_start.kcl "data": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 43, - 47, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 43, @@ -59,16 +50,7 @@ description: Operations executed sketch_on_face_start.kcl "length": { "value": { "type": "Number", - "value": 20.0, - "__meta": [ - { - "sourceRange": [ - 248, - 250, - 0 - ] - } - ] + "value": 20.0 }, "sourceRange": [ 248, @@ -84,14 +66,29 @@ description: Operations executed sketch_on_face_start.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "data": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 284, 287, @@ -101,16 +98,7 @@ description: Operations executed sketch_on_face_start.kcl "tag": { "value": { "type": "String", - "value": "start", - "__meta": [ - { - "sourceRange": [ - 289, - 296, - 0 - ] - } - ] + "value": "start" }, "sourceRange": [ 289, @@ -133,16 +121,7 @@ description: Operations executed sketch_on_face_start.kcl "length": { "value": { "type": "Number", - "value": 5.0, - "__meta": [ - { - "sourceRange": [ - 441, - 442, - 0 - ] - } - ] + "value": 5.0 }, "sourceRange": [ 441, @@ -158,6 +137,18 @@ description: Operations executed sketch_on_face_start.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/tan_arc_x_line/ops.snap b/src/wasm-lib/kcl/tests/tan_arc_x_line/ops.snap index 3b5c40e8d9..fb99cfd32e 100644 --- a/src/wasm-lib/kcl/tests/tan_arc_x_line/ops.snap +++ b/src/wasm-lib/kcl/tests/tan_arc_x_line/ops.snap @@ -8,16 +8,7 @@ description: Operations executed tan_arc_x_line.kcl "data": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 78, - 82, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 78, From fefd8d4e7e4eb9ec5b1b172afb8c79e70c0ec7ec Mon Sep 17 00:00:00 2001 From: Jonathan Tran Date: Wed, 5 Feb 2025 19:15:00 -0500 Subject: [PATCH 12/18] Format --- src/wasm-lib/kcl/src/execution/exec_ast.rs | 45 ++++++---------------- 1 file changed, 11 insertions(+), 34 deletions(-) diff --git a/src/wasm-lib/kcl/src/execution/exec_ast.rs b/src/wasm-lib/kcl/src/execution/exec_ast.rs index 6a5699b30c..cffee5f3a4 100644 --- a/src/wasm-lib/kcl/src/execution/exec_ast.rs +++ b/src/wasm-lib/kcl/src/execution/exec_ast.rs @@ -925,24 +925,13 @@ impl Node { .kw_args .labeled .iter() - .map(|(k, arg)| { - ( - k.clone(), - OpArg::new( - OpKclValue::from(&arg.value), - arg.source_range, - ), - ) - }) + .map(|(k, arg)| (k.clone(), OpArg::new(OpKclValue::from(&arg.value), arg.source_range))) .collect(); Some(Operation::StdLibCall { std_lib_fn: (&func).into(), - unlabeled_arg: args.get_unlabeled_kw_arg_unconverted().map(|arg| { - OpArg::new( - OpKclValue::from(&arg.value), - arg.source_range, - ) - }), + unlabeled_arg: args + .get_unlabeled_kw_arg_unconverted() + .map(|arg| OpArg::new(OpKclValue::from(&arg.value), arg.source_range)), labeled_args: op_labeled_args, source_range: callsite, is_error: false, @@ -983,15 +972,7 @@ impl Node { .kw_args .labeled .iter() - .map(|(k, arg)| { - ( - k.clone(), - OpArg::new( - OpKclValue::from(&arg.value), - arg.source_range, - ), - ) - }) + .map(|(k, arg)| (k.clone(), OpArg::new(OpKclValue::from(&arg.value), arg.source_range))) .collect(); exec_state .mod_local @@ -999,12 +980,11 @@ impl Node { .push(Operation::UserDefinedFunctionCall { name: Some(fn_name.clone()), function_source_range: func.function_def_source_range().unwrap_or_default(), - unlabeled_arg: args.kw_args.unlabeled.as_ref().map(|arg| { - OpArg::new( - OpKclValue::from(&arg.value), - arg.source_range, - ) - }), + unlabeled_arg: args + .kw_args + .unlabeled + .as_ref() + .map(|arg| OpArg::new(OpKclValue::from(&arg.value), arg.source_range)), labeled_args: op_labeled_args, source_range: callsite, }); @@ -1072,10 +1052,7 @@ impl Node { .map(|(k, arg)| { ( k.name.clone(), - OpArg::new( - OpKclValue::from(&arg.value), - arg.source_range, - ), + OpArg::new(OpKclValue::from(&arg.value), arg.source_range), ) }) .collect(); From c3877808604eece55018c7a55220aaa1787c84a6 Mon Sep 17 00:00:00 2001 From: Jonathan Tran Date: Wed, 5 Feb 2025 19:18:12 -0500 Subject: [PATCH 13/18] Update output since fixing CI --- src/wasm-lib/kcl/tests/angled_line/ops.snap | 36 ++-- .../ops.snap | 139 ++++++-------- .../ops.snap | 36 ++-- .../ops.snap | 36 ++-- .../kcl/tests/circle_three_point/ops.snap | 36 ++-- src/wasm-lib/kcl/tests/helix_ccw/ops.snap | 63 +++--- src/wasm-lib/kcl/tests/i_shape/ops.snap | 43 +++-- src/wasm-lib/kcl/tests/kittycad_svg/ops.snap | 36 ++-- .../tests/linear_pattern3d_a_pattern/ops.snap | 155 +++++++-------- .../kcl/tests/mike_stress_test/ops.snap | 36 ++-- src/wasm-lib/kcl/tests/neg_xz_plane/ops.snap | 43 ++--- .../tests/parametric_with_tan_arc/ops.snap | 25 +-- .../kcl/tests/pentagon_fillet_sugar/ops.snap | 180 ++++++++++++------ src/wasm-lib/kcl/tests/poop_chute/ops.snap | 109 +++++++---- .../kcl/tests/sketch_on_face/ops.snap | 75 ++++---- .../sketch_on_face_circle_tagged/ops.snap | 81 ++++---- .../kcl/tests/tangential_arc/ops.snap | 25 +-- src/wasm-lib/kcl/tests/xz_plane/ops.snap | 43 ++--- 18 files changed, 614 insertions(+), 583 deletions(-) diff --git a/src/wasm-lib/kcl/tests/angled_line/ops.snap b/src/wasm-lib/kcl/tests/angled_line/ops.snap index fcf0ebe25e..36798948dc 100644 --- a/src/wasm-lib/kcl/tests/angled_line/ops.snap +++ b/src/wasm-lib/kcl/tests/angled_line/ops.snap @@ -8,16 +8,7 @@ description: Operations executed angled_line.kcl "data": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 24, - 28, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 24, @@ -40,16 +31,7 @@ description: Operations executed angled_line.kcl "length": { "value": { "type": "Number", - "value": 4.0, - "__meta": [ - { - "sourceRange": [ - 287, - 288, - 0 - ] - } - ] + "value": 4.0 }, "sourceRange": [ 287, @@ -65,6 +47,18 @@ description: Operations executed angled_line.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/artifact_graph_sketch_on_face_etc/ops.snap b/src/wasm-lib/kcl/tests/artifact_graph_sketch_on_face_etc/ops.snap index 6634a31643..96cdb854ae 100644 --- a/src/wasm-lib/kcl/tests/artifact_graph_sketch_on_face_etc/ops.snap +++ b/src/wasm-lib/kcl/tests/artifact_graph_sketch_on_face_etc/ops.snap @@ -8,16 +8,7 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl "data": { "value": { "type": "String", - "value": "XZ", - "__meta": [ - { - "sourceRange": [ - 26, - 30, - 0 - ] - } - ] + "value": "XZ" }, "sourceRange": [ 26, @@ -40,16 +31,7 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl "length": { "value": { "type": "Number", - "value": 6.0, - "__meta": [ - { - "sourceRange": [ - 242, - 243, - 0 - ] - } - ] + "value": 6.0 }, "sourceRange": [ 242, @@ -66,9 +48,12 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl ], "type": "StdLibCall", "unlabeledArg": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 222, 231, @@ -79,9 +64,12 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl { "labeledArgs": { "data": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 271, 281, @@ -89,6 +77,11 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl ] }, "tag": { + "value": { + "type": "TagIdentifier", + "value": "seg01", + "artifact_id": "[uuid]" + }, "sourceRange": [ 283, 288, @@ -110,16 +103,7 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl "length": { "value": { "type": "Number", - "value": 5.0, - "__meta": [ - { - "sourceRange": [ - 491, - 492, - 0 - ] - } - ] + "value": 5.0 }, "sourceRange": [ 491, @@ -136,9 +120,12 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl ], "type": "StdLibCall", "unlabeledArg": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 471, 480, @@ -149,9 +136,12 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl { "labeledArgs": { "data": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 520, 530, @@ -161,16 +151,7 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl "tag": { "value": { "type": "String", - "value": "END", - "__meta": [ - { - "sourceRange": [ - 532, - 537, - 0 - ] - } - ] + "value": "END" }, "sourceRange": [ 532, @@ -193,16 +174,7 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl "length": { "value": { "type": "Number", - "value": 4.0, - "__meta": [ - { - "sourceRange": [ - 753, - 754, - 0 - ] - } - ] + "value": 4.0 }, "sourceRange": [ 753, @@ -219,9 +191,12 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl ], "type": "StdLibCall", "unlabeledArg": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 733, 742, @@ -232,9 +207,12 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl { "labeledArgs": { "data": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 782, 792, @@ -242,6 +220,11 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl ] }, "tag": { + "value": { + "type": "TagIdentifier", + "value": "seg02", + "artifact_id": "[uuid]" + }, "sourceRange": [ 794, 799, @@ -263,16 +246,7 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl "length": { "value": { "type": "Number", - "value": 3.0, - "__meta": [ - { - "sourceRange": [ - 1003, - 1004, - 0 - ] - } - ] + "value": 3.0 }, "sourceRange": [ 1003, @@ -289,9 +263,12 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl ], "type": "StdLibCall", "unlabeledArg": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 983, 992, diff --git a/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_x/ops.snap b/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_x/ops.snap index f4f304121a..46b8b1b64e 100644 --- a/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_x/ops.snap +++ b/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_x/ops.snap @@ -8,16 +8,7 @@ description: Operations executed big_number_angle_to_match_length_x.kcl "data": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 24, - 28, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 24, @@ -40,16 +31,7 @@ description: Operations executed big_number_angle_to_match_length_x.kcl "length": { "value": { "type": "Number", - "value": 10.0, - "__meta": [ - { - "sourceRange": [ - 200, - 202, - 0 - ] - } - ] + "value": 10.0 }, "sourceRange": [ 200, @@ -65,6 +47,18 @@ description: Operations executed big_number_angle_to_match_length_x.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_y/ops.snap b/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_y/ops.snap index 72a79c137a..1c67fa83d4 100644 --- a/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_y/ops.snap +++ b/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_y/ops.snap @@ -8,16 +8,7 @@ description: Operations executed big_number_angle_to_match_length_y.kcl "data": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 24, - 28, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 24, @@ -40,16 +31,7 @@ description: Operations executed big_number_angle_to_match_length_y.kcl "length": { "value": { "type": "Number", - "value": 10.0, - "__meta": [ - { - "sourceRange": [ - 200, - 202, - 0 - ] - } - ] + "value": 10.0 }, "sourceRange": [ 200, @@ -65,6 +47,18 @@ description: Operations executed big_number_angle_to_match_length_y.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/circle_three_point/ops.snap b/src/wasm-lib/kcl/tests/circle_three_point/ops.snap index 4bfe6ed70c..cfd3c1a4f0 100644 --- a/src/wasm-lib/kcl/tests/circle_three_point/ops.snap +++ b/src/wasm-lib/kcl/tests/circle_three_point/ops.snap @@ -8,16 +8,7 @@ description: Operations executed circle_three_point.kcl "data": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 26, - 30, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 26, @@ -40,16 +31,7 @@ description: Operations executed circle_three_point.kcl "length": { "value": { "type": "Number", - "value": 10.0, - "__meta": [ - { - "sourceRange": [ - 121, - 123, - 0 - ] - } - ] + "value": 10.0 }, "sourceRange": [ 121, @@ -65,6 +47,18 @@ description: Operations executed circle_three_point.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/helix_ccw/ops.snap b/src/wasm-lib/kcl/tests/helix_ccw/ops.snap index 0deb8853df..fcf9fa06a7 100644 --- a/src/wasm-lib/kcl/tests/helix_ccw/ops.snap +++ b/src/wasm-lib/kcl/tests/helix_ccw/ops.snap @@ -8,16 +8,7 @@ description: Operations executed helix_ccw.kcl "data": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 24, - 28, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 24, @@ -40,16 +31,7 @@ description: Operations executed helix_ccw.kcl "length": { "value": { "type": "Number", - "value": 10.0, - "__meta": [ - { - "sourceRange": [ - 101, - 103, - 0 - ] - } - ] + "value": 10.0 }, "sourceRange": [ 101, @@ -65,12 +47,40 @@ description: Operations executed helix_ccw.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "data": { - "artifactIds": [], + "value": { + "type": "Object", + "value": { + "angleStart": { + "type": "Number", + "value": 0.0 + }, + "ccw": { + "type": "Bool", + "value": true + }, + "revolutions": { + "type": "Number", + "value": 16.0 + } + } + }, "sourceRange": [ 127, 201, @@ -78,9 +88,12 @@ description: Operations executed helix_ccw.kcl ] }, "solid": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 203, 204, diff --git a/src/wasm-lib/kcl/tests/i_shape/ops.snap b/src/wasm-lib/kcl/tests/i_shape/ops.snap index ab726a0ce6..c4c86dad30 100644 --- a/src/wasm-lib/kcl/tests/i_shape/ops.snap +++ b/src/wasm-lib/kcl/tests/i_shape/ops.snap @@ -6,9 +6,12 @@ description: Operations executed i_shape.kcl { "labeledArgs": { "hole_sketch": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 2351, 2356, @@ -16,9 +19,12 @@ description: Operations executed i_shape.kcl ] }, "sketch": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 2358, 2359, @@ -40,16 +46,7 @@ description: Operations executed i_shape.kcl "length": { "value": { "type": "Number", - "value": 3.0, - "__meta": [ - { - "sourceRange": [ - 2383, - 2386, - 0 - ] - } - ] + "value": 3.0 }, "sourceRange": [ 2383, @@ -65,6 +62,18 @@ description: Operations executed i_shape.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/kittycad_svg/ops.snap b/src/wasm-lib/kcl/tests/kittycad_svg/ops.snap index e107f92957..dfe685de91 100644 --- a/src/wasm-lib/kcl/tests/kittycad_svg/ops.snap +++ b/src/wasm-lib/kcl/tests/kittycad_svg/ops.snap @@ -8,16 +8,7 @@ description: Operations executed kittycad_svg.kcl "data": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 20, - 24, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 20, @@ -40,16 +31,7 @@ description: Operations executed kittycad_svg.kcl "length": { "value": { "type": "Number", - "value": 1.0, - "__meta": [ - { - "sourceRange": [ - 18364, - 18365, - 0 - ] - } - ] + "value": 1.0 }, "sourceRange": [ 18364, @@ -65,6 +47,18 @@ description: Operations executed kittycad_svg.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/ops.snap b/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/ops.snap index 5e243e193c..b22bf2685c 100644 --- a/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/ops.snap +++ b/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/ops.snap @@ -8,16 +8,7 @@ description: Operations executed linear_pattern3d_a_pattern.kcl "data": { "value": { "type": "String", - "value": "XZ", - "__meta": [ - { - "sourceRange": [ - 30, - 34, - 0 - ] - } - ] + "value": "XZ" }, "sourceRange": [ 30, @@ -40,16 +31,7 @@ description: Operations executed linear_pattern3d_a_pattern.kcl "length": { "value": { "type": "Number", - "value": 1.0, - "__meta": [ - { - "sourceRange": [ - 176, - 177, - 0 - ] - } - ] + "value": 1.0 }, "sourceRange": [ 176, @@ -66,9 +48,12 @@ description: Operations executed linear_pattern3d_a_pattern.kcl ], "type": "StdLibCall", "unlabeledArg": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 0, 0, @@ -79,7 +64,23 @@ description: Operations executed linear_pattern3d_a_pattern.kcl { "labeledArgs": { "axis": { - "artifactIds": [], + "value": { + "type": "Array", + "value": [ + { + "type": "Number", + "value": 1.0 + }, + { + "type": "Number", + "value": 0.0 + }, + { + "type": "Number", + "value": 0.0 + } + ] + }, "sourceRange": [ 232, 241, @@ -89,16 +90,7 @@ description: Operations executed linear_pattern3d_a_pattern.kcl "distance": { "value": { "type": "Number", - "value": 6.0, - "__meta": [ - { - "sourceRange": [ - 273, - 274, - 0 - ] - } - ] + "value": 6.0 }, "sourceRange": [ 273, @@ -109,16 +101,7 @@ description: Operations executed linear_pattern3d_a_pattern.kcl "instances": { "value": { "type": "Number", - "value": 7.0, - "__meta": [ - { - "sourceRange": [ - 257, - 258, - 0 - ] - } - ] + "value": 7.0 }, "sourceRange": [ 257, @@ -135,9 +118,12 @@ description: Operations executed linear_pattern3d_a_pattern.kcl ], "type": "StdLibCall", "unlabeledArg": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 208, 221, @@ -148,7 +134,23 @@ description: Operations executed linear_pattern3d_a_pattern.kcl { "labeledArgs": { "axis": { - "artifactIds": [], + "value": { + "type": "Array", + "value": [ + { + "type": "Number", + "value": 0.0 + }, + { + "type": "Number", + "value": 0.0 + }, + { + "type": "Number", + "value": 1.0 + } + ] + }, "sourceRange": [ 324, 333, @@ -158,16 +160,7 @@ description: Operations executed linear_pattern3d_a_pattern.kcl "distance": { "value": { "type": "Number", - "value": 1.0, - "__meta": [ - { - "sourceRange": [ - 348, - 349, - 0 - ] - } - ] + "value": 1.0 }, "sourceRange": [ 348, @@ -178,16 +171,7 @@ description: Operations executed linear_pattern3d_a_pattern.kcl "instances": { "value": { "type": "Number", - "value": 7.0, - "__meta": [ - { - "sourceRange": [ - 365, - 366, - 0 - ] - } - ] + "value": 7.0 }, "sourceRange": [ 365, @@ -204,15 +188,32 @@ description: Operations executed linear_pattern3d_a_pattern.kcl ], "type": "StdLibCall", "unlabeledArg": { - "artifactIds": [ - "[uuid]", - "[uuid]", - "[uuid]", - "[uuid]", - "[uuid]", - "[uuid]", - "[uuid]" - ], + "value": { + "type": "Solids", + "value": [ + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + } + ] + }, "sourceRange": [ 307, 313, diff --git a/src/wasm-lib/kcl/tests/mike_stress_test/ops.snap b/src/wasm-lib/kcl/tests/mike_stress_test/ops.snap index d4ba7069fe..67b3e18b47 100644 --- a/src/wasm-lib/kcl/tests/mike_stress_test/ops.snap +++ b/src/wasm-lib/kcl/tests/mike_stress_test/ops.snap @@ -8,16 +8,7 @@ description: Operations executed mike_stress_test.kcl "data": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 24, - 28, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 24, @@ -40,16 +31,7 @@ description: Operations executed mike_stress_test.kcl "length": { "value": { "type": "Number", - "value": 5.0, - "__meta": [ - { - "sourceRange": [ - 77119, - 77120, - 0 - ] - } - ] + "value": 5.0 }, "sourceRange": [ 77119, @@ -65,6 +47,18 @@ description: Operations executed mike_stress_test.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/neg_xz_plane/ops.snap b/src/wasm-lib/kcl/tests/neg_xz_plane/ops.snap index 63c3ad4427..7b562e42f9 100644 --- a/src/wasm-lib/kcl/tests/neg_xz_plane/ops.snap +++ b/src/wasm-lib/kcl/tests/neg_xz_plane/ops.snap @@ -8,16 +8,7 @@ description: Operations executed neg_xz_plane.kcl "data": { "value": { "type": "String", - "value": "-XZ", - "__meta": [ - { - "sourceRange": [ - 24, - 29, - 0 - ] - } - ] + "value": "-XZ" }, "sourceRange": [ 24, @@ -40,23 +31,7 @@ description: Operations executed neg_xz_plane.kcl "length": { "value": { "type": "Number", - "value": 12.0, - "__meta": [ - { - "sourceRange": [ - 168, - 169, - 0 - ] - }, - { - "sourceRange": [ - 172, - 173, - 0 - ] - } - ] + "value": 12.0 }, "sourceRange": [ 168, @@ -72,6 +47,18 @@ description: Operations executed neg_xz_plane.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/parametric_with_tan_arc/ops.snap b/src/wasm-lib/kcl/tests/parametric_with_tan_arc/ops.snap index 14e538c515..fb85cc4ef0 100644 --- a/src/wasm-lib/kcl/tests/parametric_with_tan_arc/ops.snap +++ b/src/wasm-lib/kcl/tests/parametric_with_tan_arc/ops.snap @@ -8,16 +8,7 @@ description: Operations executed parametric_with_tan_arc.kcl "length": { "value": { "type": "Number", - "value": 11.0, - "__meta": [ - { - "sourceRange": [ - 34, - 36, - 0 - ] - } - ] + "value": 11.0 }, "sourceRange": [ 612, @@ -33,6 +24,18 @@ description: Operations executed parametric_with_tan_arc.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/pentagon_fillet_sugar/ops.snap b/src/wasm-lib/kcl/tests/pentagon_fillet_sugar/ops.snap index 1c3b51de56..a981411894 100644 --- a/src/wasm-lib/kcl/tests/pentagon_fillet_sugar/ops.snap +++ b/src/wasm-lib/kcl/tests/pentagon_fillet_sugar/ops.snap @@ -8,16 +8,7 @@ description: Operations executed pentagon_fillet_sugar.kcl "data": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 152, - 156, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 152, @@ -40,16 +31,7 @@ description: Operations executed pentagon_fillet_sugar.kcl "length": { "value": { "type": "Number", - "value": 200.0, - "__meta": [ - { - "sourceRange": [ - 17, - 20, - 0 - ] - } - ] + "value": 200.0 }, "sourceRange": [ 396, @@ -65,7 +47,19 @@ description: Operations executed pentagon_fillet_sugar.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "type": "UserDefinedFunctionCall", @@ -86,9 +80,12 @@ description: Operations executed pentagon_fillet_sugar.kcl { "labeledArgs": { "data": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 456, 457, @@ -96,6 +93,11 @@ description: Operations executed pentagon_fillet_sugar.kcl ] }, "tag": { + "value": { + "type": "TagIdentifier", + "value": "c", + "artifact_id": "[uuid]" + }, "sourceRange": [ 459, 463, @@ -120,16 +122,7 @@ description: Operations executed pentagon_fillet_sugar.kcl "length": { "value": { "type": "Number", - "value": 100.0, - "__meta": [ - { - "sourceRange": [ - 34, - 37, - 0 - ] - } - ] + "value": 100.0 }, "sourceRange": [ 629, @@ -145,12 +138,46 @@ description: Operations executed pentagon_fillet_sugar.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "data": { - "artifactIds": [], + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 5.0 + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "value": "arc_tag", + "artifact_id": "[uuid]" + }, + { + "type": "Uuid", + "value": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 653, 773, @@ -158,9 +185,12 @@ description: Operations executed pentagon_fillet_sugar.kcl ] }, "solid": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 775, 776, @@ -196,9 +226,12 @@ description: Operations executed pentagon_fillet_sugar.kcl { "labeledArgs": { "data": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 456, 457, @@ -206,6 +239,11 @@ description: Operations executed pentagon_fillet_sugar.kcl ] }, "tag": { + "value": { + "type": "TagIdentifier", + "value": "a", + "artifact_id": "[uuid]" + }, "sourceRange": [ 459, 463, @@ -230,16 +268,7 @@ description: Operations executed pentagon_fillet_sugar.kcl "length": { "value": { "type": "Number", - "value": 100.0, - "__meta": [ - { - "sourceRange": [ - 34, - 37, - 0 - ] - } - ] + "value": 100.0 }, "sourceRange": [ 833, @@ -255,12 +284,46 @@ description: Operations executed pentagon_fillet_sugar.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "data": { - "artifactIds": [], + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 5.0 + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "value": "arc_tag", + "artifact_id": "[uuid]" + }, + { + "type": "Uuid", + "value": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 857, 977, @@ -268,9 +331,12 @@ description: Operations executed pentagon_fillet_sugar.kcl ] }, "solid": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 979, 980, diff --git a/src/wasm-lib/kcl/tests/poop_chute/ops.snap b/src/wasm-lib/kcl/tests/poop_chute/ops.snap index 25bb805535..388f1ff26e 100644 --- a/src/wasm-lib/kcl/tests/poop_chute/ops.snap +++ b/src/wasm-lib/kcl/tests/poop_chute/ops.snap @@ -8,16 +8,7 @@ description: Operations executed poop_chute.kcl "data": { "value": { "type": "String", - "value": "-YZ", - "__meta": [ - { - "sourceRange": [ - 196, - 201, - 0 - ] - } - ] + "value": "-YZ" }, "sourceRange": [ 196, @@ -38,7 +29,51 @@ description: Operations executed poop_chute.kcl { "labeledArgs": { "data": { - "artifactIds": [], + "value": { + "type": "Object", + "value": { + "angle": { + "type": "Number", + "value": 90.0 + }, + "axis": { + "type": "Object", + "value": { + "custom": { + "type": "Object", + "value": { + "axis": { + "type": "Array", + "value": [ + { + "type": "Number", + "value": 1.0 + }, + { + "type": "Number", + "value": 0.0 + } + ] + }, + "origin": { + "type": "Array", + "value": [ + { + "type": "Number", + "value": 0.0 + }, + { + "type": "Number", + "value": 5.5000001 + } + ] + } + } + } + } + } + } + }, "sourceRange": [ 822, 940, @@ -46,9 +81,12 @@ description: Operations executed poop_chute.kcl ] }, "sketch": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 942, 951, @@ -70,16 +108,7 @@ description: Operations executed poop_chute.kcl "data": { "value": { "type": "String", - "value": "-YZ", - "__meta": [ - { - "sourceRange": [ - 980, - 985, - 0 - ] - } - ] + "value": "-YZ" }, "sourceRange": [ 980, @@ -102,23 +131,7 @@ description: Operations executed poop_chute.kcl "length": { "value": { "type": "Number", - "value": 1.5, - "__meta": [ - { - "sourceRange": [ - 116, - 117, - 0 - ] - }, - { - "sourceRange": [ - 77, - 80, - 0 - ] - } - ] + "value": 1.5 }, "sourceRange": [ 1610, @@ -134,6 +147,18 @@ description: Operations executed poop_chute.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/sketch_on_face/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face/ops.snap index bd26973214..a722c56cca 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face/ops.snap @@ -8,16 +8,7 @@ description: Operations executed sketch_on_face.kcl "data": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 24, - 28, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 24, @@ -40,16 +31,7 @@ description: Operations executed sketch_on_face.kcl "length": { "value": { "type": "Number", - "value": 5.0, - "__meta": [ - { - "sourceRange": [ - 217, - 218, - 0 - ] - } - ] + "value": 5.0 }, "sourceRange": [ 217, @@ -65,14 +47,29 @@ description: Operations executed sketch_on_face.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "data": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 245, 252, @@ -80,6 +77,11 @@ description: Operations executed sketch_on_face.kcl ] }, "tag": { + "value": { + "type": "TagIdentifier", + "value": "here", + "artifact_id": "[uuid]" + }, "sourceRange": [ 254, 258, @@ -101,16 +103,7 @@ description: Operations executed sketch_on_face.kcl "length": { "value": { "type": "Number", - "value": 5.0, - "__meta": [ - { - "sourceRange": [ - 403, - 404, - 0 - ] - } - ] + "value": 5.0 }, "sourceRange": [ 403, @@ -126,6 +119,18 @@ description: Operations executed sketch_on_face.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/sketch_on_face_circle_tagged/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face_circle_tagged/ops.snap index 7ecf3ae006..8d0c126e74 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face_circle_tagged/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face_circle_tagged/ops.snap @@ -24,16 +24,7 @@ description: Operations executed sketch_on_face_circle_tagged.kcl "data": { "value": { "type": "String", - "value": "XY", - "__meta": [ - { - "sourceRange": [ - 43, - 47, - 0 - ] - } - ] + "value": "XY" }, "sourceRange": [ 43, @@ -59,16 +50,7 @@ description: Operations executed sketch_on_face_circle_tagged.kcl "length": { "value": { "type": "Number", - "value": 20.0, - "__meta": [ - { - "sourceRange": [ - 248, - 250, - 0 - ] - } - ] + "value": 20.0 }, "sourceRange": [ 248, @@ -84,14 +66,29 @@ description: Operations executed sketch_on_face_circle_tagged.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "data": { - "artifactIds": [ - "[uuid]" - ], + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 277, 284, @@ -101,16 +98,7 @@ description: Operations executed sketch_on_face_circle_tagged.kcl "tag": { "value": { "type": "String", - "value": "end", - "__meta": [ - { - "sourceRange": [ - 286, - 291, - 0 - ] - } - ] + "value": "end" }, "sourceRange": [ 286, @@ -133,16 +121,7 @@ description: Operations executed sketch_on_face_circle_tagged.kcl "length": { "value": { "type": "Number", - "value": 5.0, - "__meta": [ - { - "sourceRange": [ - 374, - 375, - 0 - ] - } - ] + "value": 5.0 }, "sourceRange": [ 374, @@ -158,6 +137,18 @@ description: Operations executed sketch_on_face_circle_tagged.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/tangential_arc/ops.snap b/src/wasm-lib/kcl/tests/tangential_arc/ops.snap index 8f9e0ef837..333028ff93 100644 --- a/src/wasm-lib/kcl/tests/tangential_arc/ops.snap +++ b/src/wasm-lib/kcl/tests/tangential_arc/ops.snap @@ -8,16 +8,7 @@ description: Operations executed tangential_arc.kcl "length": { "value": { "type": "Number", - "value": 10.0, - "__meta": [ - { - "sourceRange": [ - 158, - 160, - 0 - ] - } - ] + "value": 10.0 }, "sourceRange": [ 158, @@ -33,6 +24,18 @@ description: Operations executed tangential_arc.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/xz_plane/ops.snap b/src/wasm-lib/kcl/tests/xz_plane/ops.snap index 6f067e4462..ca2aabe8e7 100644 --- a/src/wasm-lib/kcl/tests/xz_plane/ops.snap +++ b/src/wasm-lib/kcl/tests/xz_plane/ops.snap @@ -8,16 +8,7 @@ description: Operations executed xz_plane.kcl "data": { "value": { "type": "String", - "value": "XZ", - "__meta": [ - { - "sourceRange": [ - 24, - 28, - 0 - ] - } - ] + "value": "XZ" }, "sourceRange": [ 24, @@ -40,23 +31,7 @@ description: Operations executed xz_plane.kcl "length": { "value": { "type": "Number", - "value": 12.0, - "__meta": [ - { - "sourceRange": [ - 167, - 168, - 0 - ] - }, - { - "sourceRange": [ - 171, - 172, - 0 - ] - } - ] + "value": 12.0 }, "sourceRange": [ 167, @@ -72,6 +47,18 @@ description: Operations executed xz_plane.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] From 6ba216aaf465685721f81fa05cf1ffd6018a9fff Mon Sep 17 00:00:00 2001 From: Jonathan Tran Date: Thu, 6 Feb 2025 00:22:07 -0500 Subject: [PATCH 14/18] Rename function to remove useless get prefix --- src/wasm-lib/kcl/src/execution/exec_ast.rs | 2 +- src/wasm-lib/kcl/src/std/args.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wasm-lib/kcl/src/execution/exec_ast.rs b/src/wasm-lib/kcl/src/execution/exec_ast.rs index cffee5f3a4..d105f6c267 100644 --- a/src/wasm-lib/kcl/src/execution/exec_ast.rs +++ b/src/wasm-lib/kcl/src/execution/exec_ast.rs @@ -930,7 +930,7 @@ impl Node { Some(Operation::StdLibCall { std_lib_fn: (&func).into(), unlabeled_arg: args - .get_unlabeled_kw_arg_unconverted() + .unlabeled_kw_arg_unconverted() .map(|arg| OpArg::new(OpKclValue::from(&arg.value), arg.source_range)), labeled_args: op_labeled_args, source_range: callsite, diff --git a/src/wasm-lib/kcl/src/std/args.rs b/src/wasm-lib/kcl/src/std/args.rs index 2830a0836e..c90ae5b4ae 100644 --- a/src/wasm-lib/kcl/src/std/args.rs +++ b/src/wasm-lib/kcl/src/std/args.rs @@ -131,7 +131,7 @@ impl Args { } /// Get the unlabeled keyword argument. If not set, returns None. - pub(crate) fn get_unlabeled_kw_arg_unconverted(&self) -> Option<&Arg> { + pub(crate) fn unlabeled_kw_arg_unconverted(&self) -> Option<&Arg> { self.kw_args .unlabeled .as_ref() @@ -146,7 +146,7 @@ impl Args { T: FromKclValue<'a>, { let arg = self - .get_unlabeled_kw_arg_unconverted() + .unlabeled_kw_arg_unconverted() .ok_or(KclError::Semantic(KclErrorDetails { source_ranges: vec![self.source_range], message: format!("This function requires a value for the special unlabeled first parameter, '{label}'"), From a4b5af8f4ad2719199df838c243b1ce416b5851f Mon Sep 17 00:00:00 2001 From: Jonathan Tran Date: Fri, 7 Feb 2025 11:41:06 -0500 Subject: [PATCH 15/18] Update output after rebase --- src/wasm-lib/kcl/tests/import_whole/ops.snap | 28 ++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/src/wasm-lib/kcl/tests/import_whole/ops.snap b/src/wasm-lib/kcl/tests/import_whole/ops.snap index 9a894cc159..640b1a39b1 100644 --- a/src/wasm-lib/kcl/tests/import_whole/ops.snap +++ b/src/wasm-lib/kcl/tests/import_whole/ops.snap @@ -1,12 +1,20 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed import_whole.kcl -snapshot_kind: text --- [ { "labeledArgs": { "faces": { + "value": { + "type": "Array", + "value": [ + { + "type": "String", + "value": "end" + } + ] + }, "sourceRange": [ 97, 104, @@ -14,6 +22,10 @@ snapshot_kind: text ] }, "thickness": { + "value": { + "type": "Number", + "value": 0.25 + }, "sourceRange": [ 118, 122, @@ -28,6 +40,18 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] From e51635346beee23c073a952f15e4109b7153fe0b Mon Sep 17 00:00:00 2001 From: Jonathan Tran Date: Tue, 11 Feb 2025 01:21:34 -0500 Subject: [PATCH 16/18] Update output since rebasing and getting new helix test --- src/wasm-lib/kcl/tests/helix_simple/ops.snap | 29 ++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/src/wasm-lib/kcl/tests/helix_simple/ops.snap b/src/wasm-lib/kcl/tests/helix_simple/ops.snap index f39cb68a40..7e629fc78c 100644 --- a/src/wasm-lib/kcl/tests/helix_simple/ops.snap +++ b/src/wasm-lib/kcl/tests/helix_simple/ops.snap @@ -7,6 +7,10 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XZ" + }, "sourceRange": [ 60, 64, @@ -26,6 +30,10 @@ snapshot_kind: text { "labeledArgs": { "angleStart": { + "value": { + "type": "Number", + "value": 0.0 + }, "sourceRange": [ 173, 174, @@ -33,6 +41,11 @@ snapshot_kind: text ] }, "axis": { + "value": { + "type": "TagIdentifier", + "value": "edge001", + "artifact_id": "[uuid]" + }, "sourceRange": [ 247, 254, @@ -40,6 +53,10 @@ snapshot_kind: text ] }, "ccw": { + "value": { + "type": "Bool", + "value": true + }, "sourceRange": [ 184, 188, @@ -47,6 +64,10 @@ snapshot_kind: text ] }, "length": { + "value": { + "type": "Number", + "value": 10.0 + }, "sourceRange": [ 220, 222, @@ -54,6 +75,10 @@ snapshot_kind: text ] }, "radius": { + "value": { + "type": "Number", + "value": 5.0 + }, "sourceRange": [ 235, 236, @@ -61,6 +86,10 @@ snapshot_kind: text ] }, "revolutions": { + "value": { + "type": "Number", + "value": 5.0 + }, "sourceRange": [ 206, 207, From 115e0e1d8bbbf029d754a7e7c29613f8e2c62899 Mon Sep 17 00:00:00 2001 From: Jonathan Tran Date: Fri, 14 Feb 2025 12:36:24 -0500 Subject: [PATCH 17/18] Add number type and remove int since rebase --- src/wasm-lib/kcl/src/execution/cad_op.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/wasm-lib/kcl/src/execution/cad_op.rs b/src/wasm-lib/kcl/src/execution/cad_op.rs index 4d1bd6e661..8692ae7cf9 100644 --- a/src/wasm-lib/kcl/src/execution/cad_op.rs +++ b/src/wasm-lib/kcl/src/execution/cad_op.rs @@ -2,7 +2,7 @@ use indexmap::IndexMap; use schemars::JsonSchema; use serde::{Deserialize, Serialize}; -use super::{ArtifactId, KclValue}; +use super::{kcl_value::NumericType, ArtifactId, KclValue}; use crate::{docs::StdLibFn, std::get_stdlib_fn, SourceRange}; /// A CAD modeling operation for display in the feature tree, AKA operations @@ -151,9 +151,7 @@ pub enum OpKclValue { }, Number { value: f64, - }, - Int { - value: i64, + ty: NumericType, }, String { value: String, @@ -230,7 +228,10 @@ impl From<&KclValue> for OpKclValue { match value { KclValue::Uuid { value, .. } => Self::Uuid { value: *value }, KclValue::Bool { value, .. } => Self::Bool { value: *value }, - KclValue::Number { value, .. } => Self::Number { value: *value }, + KclValue::Number { value, ty, .. } => Self::Number { + value: *value, + ty: ty.clone(), + }, KclValue::String { value, .. } => Self::String { value: value.clone() }, KclValue::Array { value, .. } => { let value = value.iter().map(Self::from).collect(); From e10532e299ef5992f53f9a43c236fce9eef651c2 Mon Sep 17 00:00:00 2001 From: Jonathan Tran Date: Fri, 14 Feb 2025 12:39:57 -0500 Subject: [PATCH 18/18] Update output since adding numeric type --- src/wasm-lib/kcl/tests/angled_line/ops.snap | 11 +- .../artifact_graph_example_code1/ops.snap | 33 +++- .../ops.snap | 33 +++- .../ops.snap | 44 ++++- .../basic_fillet_cube_close_opposite/ops.snap | 22 ++- .../kcl/tests/basic_fillet_cube_end/ops.snap | 22 ++- .../basic_fillet_cube_next_adjacent/ops.snap | 22 ++- .../ops.snap | 22 ++- .../tests/basic_fillet_cube_start/ops.snap | 22 ++- .../ops.snap | 11 +- .../ops.snap | 11 +- .../kcl/tests/circle_three_point/ops.snap | 11 +- .../circular_pattern3d_a_pattern/ops.snap | 154 ++++++++++++++++-- src/wasm-lib/kcl/tests/cube/ops.snap | 44 ++++- .../kcl/tests/cube_with_error/ops.snap | 11 +- .../kcl/tests/fillet-and-shell/ops.snap | 77 ++++++++- .../kcl/tests/function_sketch/ops.snap | 11 +- .../function_sketch_with_position/ops.snap | 11 +- src/wasm-lib/kcl/tests/helix_ccw/ops.snap | 33 +++- src/wasm-lib/kcl/tests/helix_simple/ops.snap | 45 ++++- src/wasm-lib/kcl/tests/i_shape/ops.snap | 11 +- src/wasm-lib/kcl/tests/import_whole/ops.snap | 11 +- src/wasm-lib/kcl/tests/kittycad_svg/ops.snap | 11 +- src/wasm-lib/kcl/tests/kw_fn/ops.snap | 22 ++- .../kcl/tests/kw_fn_too_few_args/ops.snap | 11 +- .../kw_fn_unlabeled_but_has_label/ops.snap | 11 +- .../kcl/tests/kw_fn_with_defaults/ops.snap | 22 ++- .../tests/linear_pattern3d_a_pattern/ops.snap | 121 ++++++++++++-- .../kcl/tests/mike_stress_test/ops.snap | 11 +- src/wasm-lib/kcl/tests/neg_xz_plane/ops.snap | 5 +- src/wasm-lib/kcl/tests/parametric/ops.snap | 11 +- .../tests/parametric_with_tan_arc/ops.snap | 11 +- .../kcl/tests/pentagon_fillet_sugar/ops.snap | 55 ++++++- src/wasm-lib/kcl/tests/pipe_as_arg/ops.snap | 5 +- src/wasm-lib/kcl/tests/poop_chute/ops.snap | 54 +++++- src/wasm-lib/kcl/tests/riddle_small/ops.snap | 11 +- .../ops.snap | 55 ++++++- .../sketch-on-chamfer-two-times/ops.snap | 55 ++++++- .../kcl/tests/sketch_in_object/ops.snap | 22 ++- .../kcl/tests/sketch_on_face/ops.snap | 22 ++- .../ops.snap | 38 ++++- .../sketch_on_face_circle_tagged/ops.snap | 22 ++- .../kcl/tests/sketch_on_face_end/ops.snap | 22 ++- .../ops.snap | 22 ++- .../kcl/tests/sketch_on_face_start/ops.snap | 22 ++- src/wasm-lib/kcl/tests/ssi_pattern/ops.snap | 150 ++++++++++++++++- .../kcl/tests/tangential_arc/ops.snap | 11 +- src/wasm-lib/kcl/tests/xz_plane/ops.snap | 5 +- 48 files changed, 1353 insertions(+), 126 deletions(-) diff --git a/src/wasm-lib/kcl/tests/angled_line/ops.snap b/src/wasm-lib/kcl/tests/angled_line/ops.snap index 36798948dc..0f28c2d8b1 100644 --- a/src/wasm-lib/kcl/tests/angled_line/ops.snap +++ b/src/wasm-lib/kcl/tests/angled_line/ops.snap @@ -31,7 +31,16 @@ description: Operations executed angled_line.kcl "length": { "value": { "type": "Number", - "value": 4.0 + "value": 4.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 287, diff --git a/src/wasm-lib/kcl/tests/artifact_graph_example_code1/ops.snap b/src/wasm-lib/kcl/tests/artifact_graph_example_code1/ops.snap index e3f3f88c9b..0a4996246c 100644 --- a/src/wasm-lib/kcl/tests/artifact_graph_example_code1/ops.snap +++ b/src/wasm-lib/kcl/tests/artifact_graph_example_code1/ops.snap @@ -31,7 +31,16 @@ description: Operations executed artifact_graph_example_code1.kcl "length": { "value": { "type": "Number", - "value": -10.0 + "value": -10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 288, @@ -69,7 +78,16 @@ description: Operations executed artifact_graph_example_code1.kcl "value": { "radius": { "type": "Number", - "value": 5.0 + "value": 5.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "tags": { "type": "Array", @@ -154,7 +172,16 @@ description: Operations executed artifact_graph_example_code1.kcl "length": { "value": { "type": "Number", - "value": 5.0 + "value": 5.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 583, diff --git a/src/wasm-lib/kcl/tests/artifact_graph_example_code_offset_planes/ops.snap b/src/wasm-lib/kcl/tests/artifact_graph_example_code_offset_planes/ops.snap index a0a2b74d4a..363163d09d 100644 --- a/src/wasm-lib/kcl/tests/artifact_graph_example_code_offset_planes/ops.snap +++ b/src/wasm-lib/kcl/tests/artifact_graph_example_code_offset_planes/ops.snap @@ -8,7 +8,16 @@ description: Operations executed artifact_graph_example_code_offset_planes.kcl "offset": { "value": { "type": "Number", - "value": 20.0 + "value": 20.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 44, @@ -41,7 +50,16 @@ description: Operations executed artifact_graph_example_code_offset_planes.kcl "offset": { "value": { "type": "Number", - "value": -50.0 + "value": -50.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 92, @@ -74,7 +92,16 @@ description: Operations executed artifact_graph_example_code_offset_planes.kcl "offset": { "value": { "type": "Number", - "value": 10.0 + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 141, diff --git a/src/wasm-lib/kcl/tests/artifact_graph_sketch_on_face_etc/ops.snap b/src/wasm-lib/kcl/tests/artifact_graph_sketch_on_face_etc/ops.snap index 96cdb854ae..bbce443185 100644 --- a/src/wasm-lib/kcl/tests/artifact_graph_sketch_on_face_etc/ops.snap +++ b/src/wasm-lib/kcl/tests/artifact_graph_sketch_on_face_etc/ops.snap @@ -31,7 +31,16 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl "length": { "value": { "type": "Number", - "value": 6.0 + "value": 6.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 242, @@ -103,7 +112,16 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl "length": { "value": { "type": "Number", - "value": 5.0 + "value": 5.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 491, @@ -174,7 +192,16 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl "length": { "value": { "type": "Number", - "value": 4.0 + "value": 4.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 753, @@ -246,7 +273,16 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl "length": { "value": { "type": "Number", - "value": 3.0 + "value": 3.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 1003, diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_close_opposite/ops.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_close_opposite/ops.snap index 303dae959b..7666c6a857 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_close_opposite/ops.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_close_opposite/ops.snap @@ -31,7 +31,16 @@ description: Operations executed basic_fillet_cube_close_opposite.kcl "length": { "value": { "type": "Number", - "value": 10.0 + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 214, @@ -69,7 +78,16 @@ description: Operations executed basic_fillet_cube_close_opposite.kcl "value": { "radius": { "type": "Number", - "value": 2.0 + "value": 2.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "tags": { "type": "Array", diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_end/ops.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_end/ops.snap index fc54a8683e..7f4d2e46b6 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_end/ops.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_end/ops.snap @@ -31,7 +31,16 @@ description: Operations executed basic_fillet_cube_end.kcl "length": { "value": { "type": "Number", - "value": 10.0 + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 202, @@ -69,7 +78,16 @@ description: Operations executed basic_fillet_cube_end.kcl "value": { "radius": { "type": "Number", - "value": 2.0 + "value": 2.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "tags": { "type": "Array", diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_next_adjacent/ops.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_next_adjacent/ops.snap index c0fbb68ca8..5ebfa61483 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_next_adjacent/ops.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_next_adjacent/ops.snap @@ -31,7 +31,16 @@ description: Operations executed basic_fillet_cube_next_adjacent.kcl "length": { "value": { "type": "Number", - "value": 10.0 + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 229, @@ -69,7 +78,16 @@ description: Operations executed basic_fillet_cube_next_adjacent.kcl "value": { "radius": { "type": "Number", - "value": 2.0 + "value": 2.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "tags": { "type": "Array", diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_previous_adjacent/ops.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_previous_adjacent/ops.snap index 939eda4cbf..1f410c25a7 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_previous_adjacent/ops.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_previous_adjacent/ops.snap @@ -31,7 +31,16 @@ description: Operations executed basic_fillet_cube_previous_adjacent.kcl "length": { "value": { "type": "Number", - "value": 10.0 + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 229, @@ -69,7 +78,16 @@ description: Operations executed basic_fillet_cube_previous_adjacent.kcl "value": { "radius": { "type": "Number", - "value": 2.0 + "value": 2.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "tags": { "type": "Array", diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_start/ops.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_start/ops.snap index 39bf1792de..cd5ab53b40 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_start/ops.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_start/ops.snap @@ -31,7 +31,16 @@ description: Operations executed basic_fillet_cube_start.kcl "length": { "value": { "type": "Number", - "value": 10.0 + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 202, @@ -69,7 +78,16 @@ description: Operations executed basic_fillet_cube_start.kcl "value": { "radius": { "type": "Number", - "value": 2.0 + "value": 2.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "tags": { "type": "Array", diff --git a/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_x/ops.snap b/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_x/ops.snap index 46b8b1b64e..c575ad8d46 100644 --- a/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_x/ops.snap +++ b/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_x/ops.snap @@ -31,7 +31,16 @@ description: Operations executed big_number_angle_to_match_length_x.kcl "length": { "value": { "type": "Number", - "value": 10.0 + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 200, diff --git a/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_y/ops.snap b/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_y/ops.snap index 1c67fa83d4..5a490e8fc4 100644 --- a/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_y/ops.snap +++ b/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_y/ops.snap @@ -31,7 +31,16 @@ description: Operations executed big_number_angle_to_match_length_y.kcl "length": { "value": { "type": "Number", - "value": 10.0 + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 200, diff --git a/src/wasm-lib/kcl/tests/circle_three_point/ops.snap b/src/wasm-lib/kcl/tests/circle_three_point/ops.snap index cfd3c1a4f0..7be2e08672 100644 --- a/src/wasm-lib/kcl/tests/circle_three_point/ops.snap +++ b/src/wasm-lib/kcl/tests/circle_three_point/ops.snap @@ -31,7 +31,16 @@ description: Operations executed circle_three_point.kcl "length": { "value": { "type": "Number", - "value": 10.0 + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 121, diff --git a/src/wasm-lib/kcl/tests/circular_pattern3d_a_pattern/ops.snap b/src/wasm-lib/kcl/tests/circular_pattern3d_a_pattern/ops.snap index 45935693c5..92102854ad 100644 --- a/src/wasm-lib/kcl/tests/circular_pattern3d_a_pattern/ops.snap +++ b/src/wasm-lib/kcl/tests/circular_pattern3d_a_pattern/ops.snap @@ -31,7 +31,16 @@ description: Operations executed circular_pattern3d_a_pattern.kcl "length": { "value": { "type": "Number", - "value": 1.0 + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 176, @@ -69,15 +78,42 @@ description: Operations executed circular_pattern3d_a_pattern.kcl "value": [ { "type": "Number", - "value": 1.0 + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, { "type": "Number", - "value": 0.0 + "value": 0.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, { "type": "Number", - "value": 0.0 + "value": 0.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } } ] }, @@ -90,7 +126,16 @@ description: Operations executed circular_pattern3d_a_pattern.kcl "distance": { "value": { "type": "Number", - "value": 6.0 + "value": 6.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 273, @@ -101,7 +146,16 @@ description: Operations executed circular_pattern3d_a_pattern.kcl "instances": { "value": { "type": "Number", - "value": 7.0 + "value": 7.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 257, @@ -136,7 +190,16 @@ description: Operations executed circular_pattern3d_a_pattern.kcl "arcDegrees": { "value": { "type": "Number", - "value": 360.0 + "value": 360.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 398, @@ -150,15 +213,42 @@ description: Operations executed circular_pattern3d_a_pattern.kcl "value": [ { "type": "Number", - "value": 0.0 + "value": 0.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, { "type": "Number", - "value": 0.0 + "value": 0.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, { "type": "Number", - "value": 1.0 + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } } ] }, @@ -174,15 +264,42 @@ description: Operations executed circular_pattern3d_a_pattern.kcl "value": [ { "type": "Number", - "value": -20.0 + "value": -20.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, { "type": "Number", - "value": -20.0 + "value": -20.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, { "type": "Number", - "value": -20.0 + "value": -20.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } } ] }, @@ -195,7 +312,16 @@ description: Operations executed circular_pattern3d_a_pattern.kcl "instances": { "value": { "type": "Number", - "value": 41.0 + "value": 41.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 379, diff --git a/src/wasm-lib/kcl/tests/cube/ops.snap b/src/wasm-lib/kcl/tests/cube/ops.snap index dee1ddf7c9..0b745a84ad 100644 --- a/src/wasm-lib/kcl/tests/cube/ops.snap +++ b/src/wasm-lib/kcl/tests/cube/ops.snap @@ -19,11 +19,29 @@ description: Operations executed cube.kcl "value": [ { "type": "Number", - "value": 0.0 + "value": 0.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, { "type": "Number", - "value": 0.0 + "value": 0.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } } ] }, @@ -36,7 +54,16 @@ description: Operations executed cube.kcl "sideLength": { "value": { "type": "Number", - "value": 40.0 + "value": 40.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 404, @@ -56,7 +83,16 @@ description: Operations executed cube.kcl "length": { "value": { "type": "Number", - "value": 40.0 + "value": 40.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 362, diff --git a/src/wasm-lib/kcl/tests/cube_with_error/ops.snap b/src/wasm-lib/kcl/tests/cube_with_error/ops.snap index b24df4f8d4..69673da72a 100644 --- a/src/wasm-lib/kcl/tests/cube_with_error/ops.snap +++ b/src/wasm-lib/kcl/tests/cube_with_error/ops.snap @@ -24,7 +24,16 @@ description: Operations executed cube_with_error.kcl "length": { "value": { "type": "Number", - "value": 40.0 + "value": 40.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 354, diff --git a/src/wasm-lib/kcl/tests/fillet-and-shell/ops.snap b/src/wasm-lib/kcl/tests/fillet-and-shell/ops.snap index 39dfb87a22..37caad497a 100644 --- a/src/wasm-lib/kcl/tests/fillet-and-shell/ops.snap +++ b/src/wasm-lib/kcl/tests/fillet-and-shell/ops.snap @@ -31,7 +31,16 @@ description: Operations executed fillet-and-shell.kcl "length": { "value": { "type": "Number", - "value": 8.0 + "value": 8.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 1047, @@ -69,7 +78,16 @@ description: Operations executed fillet-and-shell.kcl "value": { "radius": { "type": "Number", - "value": 1.0 + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "tags": { "type": "Array", @@ -205,7 +223,16 @@ description: Operations executed fillet-and-shell.kcl "length": { "value": { "type": "Number", - "value": 4.0 + "value": 4.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 1505, @@ -320,7 +347,16 @@ description: Operations executed fillet-and-shell.kcl "length": { "value": { "type": "Number", - "value": 4.0 + "value": 4.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 1505, @@ -435,7 +471,16 @@ description: Operations executed fillet-and-shell.kcl "length": { "value": { "type": "Number", - "value": 4.0 + "value": 4.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 1505, @@ -550,7 +595,16 @@ description: Operations executed fillet-and-shell.kcl "length": { "value": { "type": "Number", - "value": 4.0 + "value": 4.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 1505, @@ -604,7 +658,16 @@ description: Operations executed fillet-and-shell.kcl "thickness": { "value": { "type": "Number", - "value": 1.0 + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 2088, diff --git a/src/wasm-lib/kcl/tests/function_sketch/ops.snap b/src/wasm-lib/kcl/tests/function_sketch/ops.snap index 0ac2d139c3..e5b054d048 100644 --- a/src/wasm-lib/kcl/tests/function_sketch/ops.snap +++ b/src/wasm-lib/kcl/tests/function_sketch/ops.snap @@ -47,7 +47,16 @@ description: Operations executed function_sketch.kcl "length": { "value": { "type": "Number", - "value": 3.0 + "value": 3.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 200, diff --git a/src/wasm-lib/kcl/tests/function_sketch_with_position/ops.snap b/src/wasm-lib/kcl/tests/function_sketch_with_position/ops.snap index ce7fa2e42f..5ce8975987 100644 --- a/src/wasm-lib/kcl/tests/function_sketch_with_position/ops.snap +++ b/src/wasm-lib/kcl/tests/function_sketch_with_position/ops.snap @@ -47,7 +47,16 @@ description: Operations executed function_sketch_with_position.kcl "length": { "value": { "type": "Number", - "value": 3.0 + "value": 3.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 198, diff --git a/src/wasm-lib/kcl/tests/helix_ccw/ops.snap b/src/wasm-lib/kcl/tests/helix_ccw/ops.snap index fcf9fa06a7..1b94eb615b 100644 --- a/src/wasm-lib/kcl/tests/helix_ccw/ops.snap +++ b/src/wasm-lib/kcl/tests/helix_ccw/ops.snap @@ -31,7 +31,16 @@ description: Operations executed helix_ccw.kcl "length": { "value": { "type": "Number", - "value": 10.0 + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 101, @@ -69,7 +78,16 @@ description: Operations executed helix_ccw.kcl "value": { "angleStart": { "type": "Number", - "value": 0.0 + "value": 0.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "ccw": { "type": "Bool", @@ -77,7 +95,16 @@ description: Operations executed helix_ccw.kcl }, "revolutions": { "type": "Number", - "value": 16.0 + "value": 16.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } } } }, diff --git a/src/wasm-lib/kcl/tests/helix_simple/ops.snap b/src/wasm-lib/kcl/tests/helix_simple/ops.snap index 7e629fc78c..f2f38c6f7f 100644 --- a/src/wasm-lib/kcl/tests/helix_simple/ops.snap +++ b/src/wasm-lib/kcl/tests/helix_simple/ops.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed helix_simple.kcl -snapshot_kind: text --- [ { @@ -32,7 +31,16 @@ snapshot_kind: text "angleStart": { "value": { "type": "Number", - "value": 0.0 + "value": 0.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 173, @@ -66,7 +74,16 @@ snapshot_kind: text "length": { "value": { "type": "Number", - "value": 10.0 + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 220, @@ -77,7 +94,16 @@ snapshot_kind: text "radius": { "value": { "type": "Number", - "value": 5.0 + "value": 5.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 235, @@ -88,7 +114,16 @@ snapshot_kind: text "revolutions": { "value": { "type": "Number", - "value": 5.0 + "value": 5.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 206, diff --git a/src/wasm-lib/kcl/tests/i_shape/ops.snap b/src/wasm-lib/kcl/tests/i_shape/ops.snap index c4c86dad30..8c9421c453 100644 --- a/src/wasm-lib/kcl/tests/i_shape/ops.snap +++ b/src/wasm-lib/kcl/tests/i_shape/ops.snap @@ -46,7 +46,16 @@ description: Operations executed i_shape.kcl "length": { "value": { "type": "Number", - "value": 3.0 + "value": 3.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 2383, diff --git a/src/wasm-lib/kcl/tests/import_whole/ops.snap b/src/wasm-lib/kcl/tests/import_whole/ops.snap index 640b1a39b1..edd1dce530 100644 --- a/src/wasm-lib/kcl/tests/import_whole/ops.snap +++ b/src/wasm-lib/kcl/tests/import_whole/ops.snap @@ -24,7 +24,16 @@ description: Operations executed import_whole.kcl "thickness": { "value": { "type": "Number", - "value": 0.25 + "value": 0.25, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 118, diff --git a/src/wasm-lib/kcl/tests/kittycad_svg/ops.snap b/src/wasm-lib/kcl/tests/kittycad_svg/ops.snap index dfe685de91..04cfc2861b 100644 --- a/src/wasm-lib/kcl/tests/kittycad_svg/ops.snap +++ b/src/wasm-lib/kcl/tests/kittycad_svg/ops.snap @@ -31,7 +31,16 @@ description: Operations executed kittycad_svg.kcl "length": { "value": { "type": "Number", - "value": 1.0 + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 18364, diff --git a/src/wasm-lib/kcl/tests/kw_fn/ops.snap b/src/wasm-lib/kcl/tests/kw_fn/ops.snap index 7992cbe416..97cd87290a 100644 --- a/src/wasm-lib/kcl/tests/kw_fn/ops.snap +++ b/src/wasm-lib/kcl/tests/kw_fn/ops.snap @@ -33,7 +33,16 @@ description: Operations executed kw_fn.kcl "unlabeledArg": { "value": { "type": "Number", - "value": 1.0 + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 110, @@ -45,7 +54,16 @@ description: Operations executed kw_fn.kcl "delta": { "value": { "type": "Number", - "value": 2.0 + "value": 2.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 121, diff --git a/src/wasm-lib/kcl/tests/kw_fn_too_few_args/ops.snap b/src/wasm-lib/kcl/tests/kw_fn_too_few_args/ops.snap index ad9cf84323..fcee8647b2 100644 --- a/src/wasm-lib/kcl/tests/kw_fn_too_few_args/ops.snap +++ b/src/wasm-lib/kcl/tests/kw_fn_too_few_args/ops.snap @@ -16,7 +16,16 @@ description: Operations executed kw_fn_too_few_args.kcl "x": { "value": { "type": "Number", - "value": 1.0 + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 49, diff --git a/src/wasm-lib/kcl/tests/kw_fn_unlabeled_but_has_label/ops.snap b/src/wasm-lib/kcl/tests/kw_fn_unlabeled_but_has_label/ops.snap index fd71ff2ef9..45ad963381 100644 --- a/src/wasm-lib/kcl/tests/kw_fn_unlabeled_but_has_label/ops.snap +++ b/src/wasm-lib/kcl/tests/kw_fn_unlabeled_but_has_label/ops.snap @@ -16,7 +16,16 @@ description: Operations executed kw_fn_unlabeled_but_has_label.kcl "x": { "value": { "type": "Number", - "value": 1.0 + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 45, diff --git a/src/wasm-lib/kcl/tests/kw_fn_with_defaults/ops.snap b/src/wasm-lib/kcl/tests/kw_fn_with_defaults/ops.snap index b2394c242d..6c2546a09c 100644 --- a/src/wasm-lib/kcl/tests/kw_fn_with_defaults/ops.snap +++ b/src/wasm-lib/kcl/tests/kw_fn_with_defaults/ops.snap @@ -33,7 +33,16 @@ description: Operations executed kw_fn_with_defaults.kcl "unlabeledArg": { "value": { "type": "Number", - "value": 1.0 + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 88, @@ -45,7 +54,16 @@ description: Operations executed kw_fn_with_defaults.kcl "by": { "value": { "type": "Number", - "value": 20.0 + "value": 20.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 96, diff --git a/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/ops.snap b/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/ops.snap index b22bf2685c..47c026d9ad 100644 --- a/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/ops.snap +++ b/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/ops.snap @@ -31,7 +31,16 @@ description: Operations executed linear_pattern3d_a_pattern.kcl "length": { "value": { "type": "Number", - "value": 1.0 + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 176, @@ -69,15 +78,42 @@ description: Operations executed linear_pattern3d_a_pattern.kcl "value": [ { "type": "Number", - "value": 1.0 + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, { "type": "Number", - "value": 0.0 + "value": 0.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, { "type": "Number", - "value": 0.0 + "value": 0.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } } ] }, @@ -90,7 +126,16 @@ description: Operations executed linear_pattern3d_a_pattern.kcl "distance": { "value": { "type": "Number", - "value": 6.0 + "value": 6.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 273, @@ -101,7 +146,16 @@ description: Operations executed linear_pattern3d_a_pattern.kcl "instances": { "value": { "type": "Number", - "value": 7.0 + "value": 7.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 257, @@ -139,15 +193,42 @@ description: Operations executed linear_pattern3d_a_pattern.kcl "value": [ { "type": "Number", - "value": 0.0 + "value": 0.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, { "type": "Number", - "value": 0.0 + "value": 0.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, { "type": "Number", - "value": 1.0 + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } } ] }, @@ -160,7 +241,16 @@ description: Operations executed linear_pattern3d_a_pattern.kcl "distance": { "value": { "type": "Number", - "value": 1.0 + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 348, @@ -171,7 +261,16 @@ description: Operations executed linear_pattern3d_a_pattern.kcl "instances": { "value": { "type": "Number", - "value": 7.0 + "value": 7.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 365, diff --git a/src/wasm-lib/kcl/tests/mike_stress_test/ops.snap b/src/wasm-lib/kcl/tests/mike_stress_test/ops.snap index 67b3e18b47..53cd909f9f 100644 --- a/src/wasm-lib/kcl/tests/mike_stress_test/ops.snap +++ b/src/wasm-lib/kcl/tests/mike_stress_test/ops.snap @@ -31,7 +31,16 @@ description: Operations executed mike_stress_test.kcl "length": { "value": { "type": "Number", - "value": 5.0 + "value": 5.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 77119, diff --git a/src/wasm-lib/kcl/tests/neg_xz_plane/ops.snap b/src/wasm-lib/kcl/tests/neg_xz_plane/ops.snap index 7b562e42f9..fff506e36e 100644 --- a/src/wasm-lib/kcl/tests/neg_xz_plane/ops.snap +++ b/src/wasm-lib/kcl/tests/neg_xz_plane/ops.snap @@ -31,7 +31,10 @@ description: Operations executed neg_xz_plane.kcl "length": { "value": { "type": "Number", - "value": 12.0 + "value": 12.0, + "ty": { + "type": "Unknown" + } }, "sourceRange": [ 168, diff --git a/src/wasm-lib/kcl/tests/parametric/ops.snap b/src/wasm-lib/kcl/tests/parametric/ops.snap index 0d8240f123..4db42c8190 100644 --- a/src/wasm-lib/kcl/tests/parametric/ops.snap +++ b/src/wasm-lib/kcl/tests/parametric/ops.snap @@ -31,7 +31,16 @@ description: Operations executed parametric.kcl "length": { "value": { "type": "Number", - "value": 9.0 + "value": 9.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 482, diff --git a/src/wasm-lib/kcl/tests/parametric_with_tan_arc/ops.snap b/src/wasm-lib/kcl/tests/parametric_with_tan_arc/ops.snap index fb85cc4ef0..573e58a38c 100644 --- a/src/wasm-lib/kcl/tests/parametric_with_tan_arc/ops.snap +++ b/src/wasm-lib/kcl/tests/parametric_with_tan_arc/ops.snap @@ -8,7 +8,16 @@ description: Operations executed parametric_with_tan_arc.kcl "length": { "value": { "type": "Number", - "value": 11.0 + "value": 11.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 612, diff --git a/src/wasm-lib/kcl/tests/pentagon_fillet_sugar/ops.snap b/src/wasm-lib/kcl/tests/pentagon_fillet_sugar/ops.snap index a981411894..f4aa41b725 100644 --- a/src/wasm-lib/kcl/tests/pentagon_fillet_sugar/ops.snap +++ b/src/wasm-lib/kcl/tests/pentagon_fillet_sugar/ops.snap @@ -31,7 +31,16 @@ description: Operations executed pentagon_fillet_sugar.kcl "length": { "value": { "type": "Number", - "value": 200.0 + "value": 200.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 396, @@ -122,7 +131,16 @@ description: Operations executed pentagon_fillet_sugar.kcl "length": { "value": { "type": "Number", - "value": 100.0 + "value": 100.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 629, @@ -160,7 +178,16 @@ description: Operations executed pentagon_fillet_sugar.kcl "value": { "radius": { "type": "Number", - "value": 5.0 + "value": 5.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "tags": { "type": "Array", @@ -268,7 +295,16 @@ description: Operations executed pentagon_fillet_sugar.kcl "length": { "value": { "type": "Number", - "value": 100.0 + "value": 100.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 833, @@ -306,7 +342,16 @@ description: Operations executed pentagon_fillet_sugar.kcl "value": { "radius": { "type": "Number", - "value": 5.0 + "value": 5.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "tags": { "type": "Array", diff --git a/src/wasm-lib/kcl/tests/pipe_as_arg/ops.snap b/src/wasm-lib/kcl/tests/pipe_as_arg/ops.snap index 832e113686..16fe670a39 100644 --- a/src/wasm-lib/kcl/tests/pipe_as_arg/ops.snap +++ b/src/wasm-lib/kcl/tests/pipe_as_arg/ops.snap @@ -43,7 +43,10 @@ description: Operations executed pipe_as_arg.kcl "length": { "value": { "type": "Number", - "value": 400.0 + "value": 400.0, + "ty": { + "type": "Unknown" + } }, "sourceRange": [ 355, diff --git a/src/wasm-lib/kcl/tests/poop_chute/ops.snap b/src/wasm-lib/kcl/tests/poop_chute/ops.snap index 388f1ff26e..5d38c34669 100644 --- a/src/wasm-lib/kcl/tests/poop_chute/ops.snap +++ b/src/wasm-lib/kcl/tests/poop_chute/ops.snap @@ -34,7 +34,16 @@ description: Operations executed poop_chute.kcl "value": { "angle": { "type": "Number", - "value": 90.0 + "value": 90.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "axis": { "type": "Object", @@ -47,11 +56,29 @@ description: Operations executed poop_chute.kcl "value": [ { "type": "Number", - "value": 1.0 + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, { "type": "Number", - "value": 0.0 + "value": 0.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } } ] }, @@ -60,11 +87,23 @@ description: Operations executed poop_chute.kcl "value": [ { "type": "Number", - "value": 0.0 + "value": 0.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, { "type": "Number", - "value": 5.5000001 + "value": 5.5000001, + "ty": { + "type": "Unknown" + } } ] } @@ -131,7 +170,10 @@ description: Operations executed poop_chute.kcl "length": { "value": { "type": "Number", - "value": 1.5 + "value": 1.5, + "ty": { + "type": "Unknown" + } }, "sourceRange": [ 1610, diff --git a/src/wasm-lib/kcl/tests/riddle_small/ops.snap b/src/wasm-lib/kcl/tests/riddle_small/ops.snap index 8969d63a3f..4b3ee5f066 100644 --- a/src/wasm-lib/kcl/tests/riddle_small/ops.snap +++ b/src/wasm-lib/kcl/tests/riddle_small/ops.snap @@ -69,7 +69,16 @@ description: Operations executed riddle_small.kcl "length": { "value": { "type": "Number", - "value": 1.0 + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 304, diff --git a/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times-different-order/ops.snap b/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times-different-order/ops.snap index f0ca2a9e78..f88f5c5122 100644 --- a/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times-different-order/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times-different-order/ops.snap @@ -31,7 +31,16 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl "length": { "value": { "type": "Number", - "value": 100.0 + "value": 100.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 482, @@ -69,7 +78,16 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl "value": { "radius": { "type": "Number", - "value": 20.0 + "value": 20.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "tags": { "type": "Array", @@ -120,7 +138,16 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl "value": { "length": { "type": "Number", - "value": 50.0 + "value": 50.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "tags": { "type": "Array", @@ -181,7 +208,16 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl "value": { "length": { "type": "Number", - "value": 50.0 + "value": 50.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "tags": { "type": "Array", @@ -314,7 +350,16 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl "length": { "value": { "type": "Number", - "value": 50.0 + "value": 50.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 1625, diff --git a/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times/ops.snap b/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times/ops.snap index 10238d79dd..1a2229da31 100644 --- a/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times/ops.snap @@ -31,7 +31,16 @@ description: Operations executed sketch-on-chamfer-two-times.kcl "length": { "value": { "type": "Number", - "value": 100.0 + "value": 100.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 482, @@ -69,7 +78,16 @@ description: Operations executed sketch-on-chamfer-two-times.kcl "value": { "radius": { "type": "Number", - "value": 20.0 + "value": 20.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "tags": { "type": "Array", @@ -120,7 +138,16 @@ description: Operations executed sketch-on-chamfer-two-times.kcl "value": { "length": { "type": "Number", - "value": 50.0 + "value": 50.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "tags": { "type": "Array", @@ -182,7 +209,16 @@ description: Operations executed sketch-on-chamfer-two-times.kcl "value": { "length": { "type": "Number", - "value": 50.0 + "value": 50.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "tags": { "type": "Array", @@ -314,7 +350,16 @@ description: Operations executed sketch-on-chamfer-two-times.kcl "length": { "value": { "type": "Number", - "value": 50.0 + "value": 50.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 1625, diff --git a/src/wasm-lib/kcl/tests/sketch_in_object/ops.snap b/src/wasm-lib/kcl/tests/sketch_in_object/ops.snap index 06a4fd83a9..c2c78cf597 100644 --- a/src/wasm-lib/kcl/tests/sketch_in_object/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_in_object/ops.snap @@ -50,7 +50,16 @@ description: Operations executed sketch_in_object.kcl "length": { "value": { "type": "Number", - "value": -10.0 + "value": -10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 442, @@ -127,7 +136,16 @@ description: Operations executed sketch_in_object.kcl "length": { "value": { "type": "Number", - "value": 10.0 + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 500, diff --git a/src/wasm-lib/kcl/tests/sketch_on_face/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face/ops.snap index a722c56cca..d00d3e95f9 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face/ops.snap @@ -31,7 +31,16 @@ description: Operations executed sketch_on_face.kcl "length": { "value": { "type": "Number", - "value": 5.0 + "value": 5.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 217, @@ -103,7 +112,16 @@ description: Operations executed sketch_on_face.kcl "length": { "value": { "type": "Number", - "value": 5.0 + "value": 5.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 403, diff --git a/src/wasm-lib/kcl/tests/sketch_on_face_after_fillets_referencing_face/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face_after_fillets_referencing_face/ops.snap index aa456d5f7c..a6da0f2adf 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face_after_fillets_referencing_face/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face_after_fillets_referencing_face/ops.snap @@ -31,7 +31,16 @@ description: Operations executed sketch_on_face_after_fillets_referencing_face.k "length": { "value": { "type": "Number", - "value": 6.0 + "value": 6.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 1322, @@ -69,7 +78,16 @@ description: Operations executed sketch_on_face_after_fillets_referencing_face.k "value": { "radius": { "type": "Number", - "value": 0.25 + "value": 0.25, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "tags": { "type": "Array", @@ -119,7 +137,10 @@ description: Operations executed sketch_on_face_after_fillets_referencing_face.k "value": { "radius": { "type": "Number", - "value": 0.5707134902949093 + "value": 0.5707134902949093, + "ty": { + "type": "Unknown" + } }, "tags": { "type": "Array", @@ -203,7 +224,16 @@ description: Operations executed sketch_on_face_after_fillets_referencing_face.k "length": { "value": { "type": "Number", - "value": 10.0 + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 1806, diff --git a/src/wasm-lib/kcl/tests/sketch_on_face_circle_tagged/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face_circle_tagged/ops.snap index 8d0c126e74..04ea741a05 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face_circle_tagged/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face_circle_tagged/ops.snap @@ -50,7 +50,16 @@ description: Operations executed sketch_on_face_circle_tagged.kcl "length": { "value": { "type": "Number", - "value": 20.0 + "value": 20.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 248, @@ -121,7 +130,16 @@ description: Operations executed sketch_on_face_circle_tagged.kcl "length": { "value": { "type": "Number", - "value": 5.0 + "value": 5.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 374, diff --git a/src/wasm-lib/kcl/tests/sketch_on_face_end/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face_end/ops.snap index 80f3bed179..efc1c65cff 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face_end/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face_end/ops.snap @@ -50,7 +50,16 @@ description: Operations executed sketch_on_face_end.kcl "length": { "value": { "type": "Number", - "value": 20.0 + "value": 20.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 248, @@ -121,7 +130,16 @@ description: Operations executed sketch_on_face_end.kcl "length": { "value": { "type": "Number", - "value": 5.0 + "value": 5.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 436, diff --git a/src/wasm-lib/kcl/tests/sketch_on_face_end_negative_extrude/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face_end_negative_extrude/ops.snap index 6902402114..1e4eb37ada 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face_end_negative_extrude/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face_end_negative_extrude/ops.snap @@ -50,7 +50,16 @@ description: Operations executed sketch_on_face_end_negative_extrude.kcl "length": { "value": { "type": "Number", - "value": 20.0 + "value": 20.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 248, @@ -121,7 +130,16 @@ description: Operations executed sketch_on_face_end_negative_extrude.kcl "length": { "value": { "type": "Number", - "value": -5.0 + "value": -5.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 436, diff --git a/src/wasm-lib/kcl/tests/sketch_on_face_start/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face_start/ops.snap index 197f847dff..d719989ce8 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face_start/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face_start/ops.snap @@ -50,7 +50,16 @@ description: Operations executed sketch_on_face_start.kcl "length": { "value": { "type": "Number", - "value": 20.0 + "value": 20.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 248, @@ -121,7 +130,16 @@ description: Operations executed sketch_on_face_start.kcl "length": { "value": { "type": "Number", - "value": 5.0 + "value": 5.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 441, diff --git a/src/wasm-lib/kcl/tests/ssi_pattern/ops.snap b/src/wasm-lib/kcl/tests/ssi_pattern/ops.snap index b7d8c76c8c..02c29fe2a0 100644 --- a/src/wasm-lib/kcl/tests/ssi_pattern/ops.snap +++ b/src/wasm-lib/kcl/tests/ssi_pattern/ops.snap @@ -6,6 +6,10 @@ description: Operations executed ssi_pattern.kcl { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XZ" + }, "sourceRange": [ 26, 30, @@ -25,6 +29,19 @@ description: Operations executed ssi_pattern.kcl { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 50.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 315, 317, @@ -40,6 +57,12 @@ description: Operations executed ssi_pattern.kcl ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 295, 304, @@ -50,6 +73,12 @@ description: Operations executed ssi_pattern.kcl { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 346, 356, @@ -57,6 +86,11 @@ description: Operations executed ssi_pattern.kcl ] }, "tag": { + "value": { + "type": "TagIdentifier", + "value": "seg01", + "artifact_id": "[uuid]" + }, "sourceRange": [ 358, 363, @@ -76,6 +110,19 @@ description: Operations executed ssi_pattern.kcl { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": -40.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 628, 631, @@ -90,6 +137,107 @@ description: Operations executed ssi_pattern.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketches", + "value": [ + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + } + ] + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/tangential_arc/ops.snap b/src/wasm-lib/kcl/tests/tangential_arc/ops.snap index 333028ff93..160358a37b 100644 --- a/src/wasm-lib/kcl/tests/tangential_arc/ops.snap +++ b/src/wasm-lib/kcl/tests/tangential_arc/ops.snap @@ -8,7 +8,16 @@ description: Operations executed tangential_arc.kcl "length": { "value": { "type": "Number", - "value": 10.0 + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [ 158, diff --git a/src/wasm-lib/kcl/tests/xz_plane/ops.snap b/src/wasm-lib/kcl/tests/xz_plane/ops.snap index ca2aabe8e7..04730fb93d 100644 --- a/src/wasm-lib/kcl/tests/xz_plane/ops.snap +++ b/src/wasm-lib/kcl/tests/xz_plane/ops.snap @@ -31,7 +31,10 @@ description: Operations executed xz_plane.kcl "length": { "value": { "type": "Number", - "value": 12.0 + "value": 12.0, + "ty": { + "type": "Unknown" + } }, "sourceRange": [ 167,