* Add libm dependency * Change to use libm for trig functions * Remove redactions for floating point * Update output * Use clippy to prevent stdlib math sneaking back in --------- Co-authored-by: Adam Chalmers <adam.chalmers@zoo.dev>
662 lines
13 KiB
Plaintext
662 lines
13 KiB
Plaintext
---
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
description: Artifact commands subtract_regression06.kcl
|
|
---
|
|
{
|
|
"rust/kcl-lib/tests/subtract_regression06/input.kcl": [
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"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": [],
|
|
"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": [],
|
|
"command": {
|
|
"type": "start_path"
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "move_path_pen",
|
|
"path": "[uuid]",
|
|
"to": {
|
|
"x": -12.223749999999999,
|
|
"y": 79.375,
|
|
"z": 0.0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "sketch_mode_disable"
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "extend_path",
|
|
"path": "[uuid]",
|
|
"segment": {
|
|
"type": "line",
|
|
"end": {
|
|
"x": 24.447499999999998,
|
|
"y": 0.0,
|
|
"z": 0.0
|
|
},
|
|
"relative": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "extend_path",
|
|
"path": "[uuid]",
|
|
"segment": {
|
|
"type": "arc",
|
|
"center": {
|
|
"x": 12.223749999999999,
|
|
"y": 73.02499999999999
|
|
},
|
|
"radius": 6.35,
|
|
"start": {
|
|
"unit": "degrees",
|
|
"value": 90.0
|
|
},
|
|
"end": {
|
|
"unit": "degrees",
|
|
"value": 11.87373
|
|
},
|
|
"relative": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "extend_path",
|
|
"path": "[uuid]",
|
|
"segment": {
|
|
"type": "line",
|
|
"end": {
|
|
"x": 14.1863064,
|
|
"y": -67.472179,
|
|
"z": 0.0
|
|
},
|
|
"relative": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "extend_path",
|
|
"path": "[uuid]",
|
|
"segment": {
|
|
"type": "arc",
|
|
"center": {
|
|
"x": -0.0000035713908647760915,
|
|
"y": -0.000006077943114091155
|
|
},
|
|
"radius": 33.3375,
|
|
"start": {
|
|
"unit": "degrees",
|
|
"value": 11.87373
|
|
},
|
|
"end": {
|
|
"unit": "degrees",
|
|
"value": -192.443844
|
|
},
|
|
"relative": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "extend_path",
|
|
"path": "[uuid]",
|
|
"segment": {
|
|
"type": "line",
|
|
"end": {
|
|
"x": 14.1297406,
|
|
"y": 64.03213,
|
|
"z": 0.0
|
|
},
|
|
"relative": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "extend_path",
|
|
"path": "[uuid]",
|
|
"segment": {
|
|
"type": "arc",
|
|
"center": {
|
|
"x": -12.223763774008575,
|
|
"y": 69.84746154737387
|
|
},
|
|
"radius": 6.35,
|
|
"start": {
|
|
"unit": "degrees",
|
|
"value": 167.556156
|
|
},
|
|
"end": {
|
|
"unit": "degrees",
|
|
"value": 90.0
|
|
},
|
|
"relative": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "extend_path",
|
|
"path": "[uuid]",
|
|
"segment": {
|
|
"type": "line",
|
|
"end": {
|
|
"x": 24.447499999999998,
|
|
"y": 0.0,
|
|
"z": 0.0
|
|
},
|
|
"relative": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "extend_path",
|
|
"path": "[uuid]",
|
|
"segment": {
|
|
"type": "line",
|
|
"end": {
|
|
"x": 0.0,
|
|
"y": -3.175,
|
|
"z": 0.0
|
|
},
|
|
"relative": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "extend_path",
|
|
"path": "[uuid]",
|
|
"segment": {
|
|
"type": "line",
|
|
"end": {
|
|
"x": -24.447499999999998,
|
|
"y": 0.0,
|
|
"z": 0.0
|
|
},
|
|
"relative": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "extend_path",
|
|
"path": "[uuid]",
|
|
"segment": {
|
|
"type": "arc",
|
|
"center": {
|
|
"x": -12.223763774008575,
|
|
"y": 69.84746154737387
|
|
},
|
|
"radius": 3.175,
|
|
"start": {
|
|
"unit": "degrees",
|
|
"value": 90.0
|
|
},
|
|
"end": {
|
|
"unit": "degrees",
|
|
"value": 167.556156
|
|
},
|
|
"relative": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "extend_path",
|
|
"path": "[uuid]",
|
|
"segment": {
|
|
"type": "line",
|
|
"end": {
|
|
"x": -14.1297406,
|
|
"y": -64.03213,
|
|
"z": 0.0
|
|
},
|
|
"relative": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "extend_path",
|
|
"path": "[uuid]",
|
|
"segment": {
|
|
"type": "arc",
|
|
"center": {
|
|
"x": -0.0000035713908591361586,
|
|
"y": -0.000006077943118321105
|
|
},
|
|
"radius": 30.162499999999998,
|
|
"start": {
|
|
"unit": "degrees",
|
|
"value": -192.443844
|
|
},
|
|
"end": {
|
|
"unit": "degrees",
|
|
"value": 11.87373
|
|
},
|
|
"relative": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "extend_path",
|
|
"path": "[uuid]",
|
|
"segment": {
|
|
"type": "line",
|
|
"end": {
|
|
"x": -14.1863064,
|
|
"y": 67.472179,
|
|
"z": 0.0
|
|
},
|
|
"relative": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "extend_path",
|
|
"path": "[uuid]",
|
|
"segment": {
|
|
"type": "arc",
|
|
"center": {
|
|
"x": 12.223749999999999,
|
|
"y": 73.02499999999999
|
|
},
|
|
"radius": 3.175,
|
|
"start": {
|
|
"unit": "degrees",
|
|
"value": 11.87373
|
|
},
|
|
"end": {
|
|
"unit": "degrees",
|
|
"value": 90.0
|
|
},
|
|
"relative": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "extend_path",
|
|
"path": "[uuid]",
|
|
"segment": {
|
|
"type": "line",
|
|
"end": {
|
|
"x": -24.447499999999998,
|
|
"y": 0.0,
|
|
"z": 0.0
|
|
},
|
|
"relative": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "extend_path",
|
|
"path": "[uuid]",
|
|
"segment": {
|
|
"type": "line",
|
|
"end": {
|
|
"x": 0.0,
|
|
"y": 3.175,
|
|
"z": 0.0
|
|
},
|
|
"relative": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "close_path",
|
|
"path_id": "[uuid]"
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"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": [],
|
|
"command": {
|
|
"type": "extrude",
|
|
"target": "[uuid]",
|
|
"distance": 12.7,
|
|
"faces": null,
|
|
"opposite": {
|
|
"Other": 12.7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "sketch_mode_disable"
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "object_bring_to_front",
|
|
"object_id": "[uuid]"
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "solid3d_get_extrusion_face_info",
|
|
"object_id": "[uuid]",
|
|
"edge_id": "[uuid]"
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "solid3d_get_adjacency_info",
|
|
"object_id": "[uuid]",
|
|
"edge_id": "[uuid]"
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"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": 60.0,
|
|
"clobber": false,
|
|
"hide": true
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "object_visible",
|
|
"object_id": "[uuid]",
|
|
"hidden": true
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "enable_sketch_mode",
|
|
"entity_id": "[uuid]",
|
|
"ortho": false,
|
|
"animated": false,
|
|
"adjust_camera": false,
|
|
"planar_normal": {
|
|
"x": -0.0,
|
|
"y": 1.0,
|
|
"z": 0.0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "start_path"
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "move_path_pen",
|
|
"path": "[uuid]",
|
|
"to": {
|
|
"x": 5.5562499999999995,
|
|
"y": 0.0,
|
|
"z": 0.0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "sketch_mode_disable"
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "extend_path",
|
|
"path": "[uuid]",
|
|
"segment": {
|
|
"type": "arc",
|
|
"center": {
|
|
"x": 0.0,
|
|
"y": 0.0
|
|
},
|
|
"radius": 5.5562499999999995,
|
|
"start": {
|
|
"unit": "degrees",
|
|
"value": 0.0
|
|
},
|
|
"end": {
|
|
"unit": "degrees",
|
|
"value": 360.0
|
|
},
|
|
"relative": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "close_path",
|
|
"path_id": "[uuid]"
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "enable_sketch_mode",
|
|
"entity_id": "[uuid]",
|
|
"ortho": false,
|
|
"animated": false,
|
|
"adjust_camera": false,
|
|
"planar_normal": {
|
|
"x": -0.0,
|
|
"y": 1.0,
|
|
"z": 0.0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "extrude",
|
|
"target": "[uuid]",
|
|
"distance": 101.6,
|
|
"faces": null,
|
|
"opposite": "None"
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "sketch_mode_disable"
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "object_bring_to_front",
|
|
"object_id": "[uuid]"
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "solid3d_get_extrusion_face_info",
|
|
"object_id": "[uuid]",
|
|
"edge_id": "[uuid]"
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "solid3d_get_adjacency_info",
|
|
"object_id": "[uuid]",
|
|
"edge_id": "[uuid]"
|
|
}
|
|
},
|
|
{
|
|
"cmdId": "[uuid]",
|
|
"range": [],
|
|
"command": {
|
|
"type": "boolean_subtract",
|
|
"target_ids": [
|
|
"[uuid]"
|
|
],
|
|
"tool_ids": [
|
|
"[uuid]"
|
|
],
|
|
"tolerance": 0.0000001
|
|
}
|
|
}
|
|
],
|
|
"std::appearance": [],
|
|
"std::array": [],
|
|
"std::math": [],
|
|
"std::prelude": [],
|
|
"std::sketch": [],
|
|
"std::solid": [],
|
|
"std::sweep": [],
|
|
"std::transform": [],
|
|
"std::turns": [],
|
|
"std::types": [],
|
|
"std::units": []
|
|
}
|