* Add Rust side artifacts for startSketchOn face or plane * Add Rust-generated artifacts to ExecOutcome * Add output of artifact commands * Add new output files * Wire the artifact commands to the artifact graph creation * Fix to use real PartialEq implemented in modeling commands * Fix modeling commands with zero fields to work * Fix missing artifactCommands field in errors * Change artifact graph to be built from artifact commands * Wire up ExecState artifacts, but not using them yet Co-authored-by: Kurt Hutten <k.hutten@protonmail.ch> * Remove unneeded local var * Fix test to fail with a helpful error message when command isn't found * Rename and deprecate orderedCommands * Update comment about borrowing * Move ArtifactCommand tracking to the EngineManager trait * Update artifact commands since tracking in the engine * Upgrade kittycad-modeling-cmds from 0.2.85 to 0.2.86 * Remove unneeded JsonSchema derive to speed up build * Fix to not fail on floating point differences in CI * Update artifact commands output since truncating floating point numbers * Fix to ensure artifact commands get cleared after a clear scene * Update artifact commands snapshot after clearing them on clear scene * Remove all remnants of OrderedCommands * Update output for new simulation tests --------- Co-authored-by: Kurt Hutten <k.hutten@protonmail.ch>
521 lines
7.7 KiB
Plaintext
521 lines
7.7 KiB
Plaintext
---
|
|
source: kcl/src/simulation_tests.rs
|
|
description: Artifact commands helix_ccw.kcl
|
|
snapshot_kind: text
|
|
---
|
|
[
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"command": {
|
|
"type": "make_plane",
|
|
"origin": {
|
|
"x": 0.0,
|
|
"y": 0.0,
|
|
"z": 0.0
|
|
},
|
|
"x_axis": {
|
|
"x": 1.0,
|
|
"y": 0.0,
|
|
"z": 0.0
|
|
},
|
|
"y_axis": {
|
|
"x": 0.0,
|
|
"y": 1.0,
|
|
"z": 0.0
|
|
},
|
|
"size": 100.0,
|
|
"clobber": false,
|
|
"hide": true
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"command": {
|
|
"type": "plane_set_color",
|
|
"plane_id": "[uuid]",
|
|
"color": {
|
|
"r": 0.7,
|
|
"g": 0.28,
|
|
"b": 0.28,
|
|
"a": 0.4
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"command": {
|
|
"type": "make_plane",
|
|
"origin": {
|
|
"x": 0.0,
|
|
"y": 0.0,
|
|
"z": 0.0
|
|
},
|
|
"x_axis": {
|
|
"x": 0.0,
|
|
"y": 1.0,
|
|
"z": 0.0
|
|
},
|
|
"y_axis": {
|
|
"x": 0.0,
|
|
"y": 0.0,
|
|
"z": 1.0
|
|
},
|
|
"size": 100.0,
|
|
"clobber": false,
|
|
"hide": true
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"command": {
|
|
"type": "plane_set_color",
|
|
"plane_id": "[uuid]",
|
|
"color": {
|
|
"r": 0.28,
|
|
"g": 0.7,
|
|
"b": 0.28,
|
|
"a": 0.4
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"command": {
|
|
"type": "make_plane",
|
|
"origin": {
|
|
"x": 0.0,
|
|
"y": 0.0,
|
|
"z": 0.0
|
|
},
|
|
"x_axis": {
|
|
"x": 1.0,
|
|
"y": 0.0,
|
|
"z": 0.0
|
|
},
|
|
"y_axis": {
|
|
"x": 0.0,
|
|
"y": 0.0,
|
|
"z": 1.0
|
|
},
|
|
"size": 100.0,
|
|
"clobber": false,
|
|
"hide": true
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"command": {
|
|
"type": "plane_set_color",
|
|
"plane_id": "[uuid]",
|
|
"color": {
|
|
"r": 0.28,
|
|
"g": 0.28,
|
|
"b": 0.7,
|
|
"a": 0.4
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"command": {
|
|
"type": "make_plane",
|
|
"origin": {
|
|
"x": 0.0,
|
|
"y": 0.0,
|
|
"z": 0.0
|
|
},
|
|
"x_axis": {
|
|
"x": -1.0,
|
|
"y": 0.0,
|
|
"z": 0.0
|
|
},
|
|
"y_axis": {
|
|
"x": 0.0,
|
|
"y": 1.0,
|
|
"z": 0.0
|
|
},
|
|
"size": 100.0,
|
|
"clobber": false,
|
|
"hide": true
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"command": {
|
|
"type": "make_plane",
|
|
"origin": {
|
|
"x": 0.0,
|
|
"y": 0.0,
|
|
"z": 0.0
|
|
},
|
|
"x_axis": {
|
|
"x": 0.0,
|
|
"y": -1.0,
|
|
"z": 0.0
|
|
},
|
|
"y_axis": {
|
|
"x": 0.0,
|
|
"y": 0.0,
|
|
"z": 1.0
|
|
},
|
|
"size": 100.0,
|
|
"clobber": false,
|
|
"hide": true
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"command": {
|
|
"type": "make_plane",
|
|
"origin": {
|
|
"x": 0.0,
|
|
"y": 0.0,
|
|
"z": 0.0
|
|
},
|
|
"x_axis": {
|
|
"x": -1.0,
|
|
"y": 0.0,
|
|
"z": 0.0
|
|
},
|
|
"y_axis": {
|
|
"x": 0.0,
|
|
"y": 0.0,
|
|
"z": 1.0
|
|
},
|
|
"size": 100.0,
|
|
"clobber": false,
|
|
"hide": true
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"command": {
|
|
"type": "edge_lines_visible",
|
|
"hidden": false
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"command": {
|
|
"type": "set_scene_units",
|
|
"unit": "mm"
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"command": {
|
|
"type": "object_visible",
|
|
"object_id": "[uuid]",
|
|
"hidden": true
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"command": {
|
|
"type": "object_visible",
|
|
"object_id": "[uuid]",
|
|
"hidden": true
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [
|
|
10,
|
|
29,
|
|
0
|
|
],
|
|
"command": {
|
|
"type": "make_plane",
|
|
"origin": {
|
|
"x": 0.0,
|
|
"y": 0.0,
|
|
"z": 0.0
|
|
},
|
|
"x_axis": {
|
|
"x": 1.0,
|
|
"y": 0.0,
|
|
"z": 0.0
|
|
},
|
|
"y_axis": {
|
|
"x": 0.0,
|
|
"y": 1.0,
|
|
"z": 0.0
|
|
},
|
|
"size": 60.0,
|
|
"clobber": false,
|
|
"hide": true
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [
|
|
35,
|
|
78,
|
|
0
|
|
],
|
|
"command": {
|
|
"type": "enable_sketch_mode",
|
|
"entity_id": "[uuid]",
|
|
"ortho": false,
|
|
"animated": false,
|
|
"adjust_camera": false,
|
|
"planar_normal": {
|
|
"x": 0.0,
|
|
"y": 0.0,
|
|
"z": 1.0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [
|
|
35,
|
|
78,
|
|
0
|
|
],
|
|
"command": {
|
|
"type": "start_path"
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [
|
|
35,
|
|
78,
|
|
0
|
|
],
|
|
"command": {
|
|
"type": "move_path_pen",
|
|
"path": "[uuid]",
|
|
"to": {
|
|
"x": 15.0,
|
|
"y": 5.0,
|
|
"z": 0.0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [
|
|
35,
|
|
78,
|
|
0
|
|
],
|
|
"command": {
|
|
"type": "extend_path",
|
|
"path": "[uuid]",
|
|
"segment": {
|
|
"type": "arc",
|
|
"center": {
|
|
"x": 5.0,
|
|
"y": 5.0
|
|
},
|
|
"radius": 10.0,
|
|
"start": {
|
|
"unit": "degrees",
|
|
"value": 0.0
|
|
},
|
|
"end": {
|
|
"unit": "degrees",
|
|
"value": 360.0
|
|
},
|
|
"relative": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [
|
|
35,
|
|
78,
|
|
0
|
|
],
|
|
"command": {
|
|
"type": "close_path",
|
|
"path_id": "[uuid]"
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [
|
|
84,
|
|
98,
|
|
0
|
|
],
|
|
"command": {
|
|
"type": "enable_sketch_mode",
|
|
"entity_id": "[uuid]",
|
|
"ortho": false,
|
|
"animated": false,
|
|
"adjust_camera": false,
|
|
"planar_normal": {
|
|
"x": 0.0,
|
|
"y": 0.0,
|
|
"z": 1.0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [
|
|
84,
|
|
98,
|
|
0
|
|
],
|
|
"command": {
|
|
"type": "extrude",
|
|
"target": "[uuid]",
|
|
"distance": 10.0,
|
|
"faces": null
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [
|
|
84,
|
|
98,
|
|
0
|
|
],
|
|
"command": {
|
|
"type": "sketch_mode_disable"
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [
|
|
84,
|
|
98,
|
|
0
|
|
],
|
|
"command": {
|
|
"type": "object_bring_to_front",
|
|
"object_id": "[uuid]"
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [
|
|
84,
|
|
98,
|
|
0
|
|
],
|
|
"command": {
|
|
"type": "solid3d_get_extrusion_face_info",
|
|
"object_id": "[uuid]",
|
|
"edge_id": "[uuid]"
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [
|
|
84,
|
|
98,
|
|
0
|
|
],
|
|
"command": {
|
|
"type": "solid3d_get_opposite_edge",
|
|
"object_id": "[uuid]",
|
|
"edge_id": "[uuid]",
|
|
"face_id": "[uuid]"
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [
|
|
84,
|
|
98,
|
|
0
|
|
],
|
|
"command": {
|
|
"type": "solid3d_get_next_adjacent_edge",
|
|
"object_id": "[uuid]",
|
|
"edge_id": "[uuid]",
|
|
"face_id": "[uuid]"
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [
|
|
104,
|
|
199,
|
|
0
|
|
],
|
|
"command": {
|
|
"type": "entity_make_helix",
|
|
"cylinder_id": "[uuid]",
|
|
"revolutions": 16.0,
|
|
"start_angle": {
|
|
"unit": "degrees",
|
|
"value": 0.0
|
|
},
|
|
"is_clockwise": false,
|
|
"length": 10.0
|
|
}
|
|
}
|
|
]
|