--- source: kcl-lib/src/simulation_tests.rs description: Artifact commands ball-joint-rod-end.kcl --- { "public/kcl-samples/ball-joint-rod-end/main.kcl": [ { "cmdId": "[uuid]", "range": [], "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": 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": 1.0, "y": 0.0, "z": 0.0 } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "start_path" } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "move_path_pen", "path": "[uuid]", "to": { "x": -152.39999999999998, "y": 134.4041666020812, "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": 203.2, "start": { "unit": "degrees", "value": 138.59037789072914 }, "end": { "unit": "degrees", "value": 41.409622109270856 }, "relative": false } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "line", "end": { "x": 152.39999999999998, "y": 101.6, "z": 0.0 }, "relative": false } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "line", "end": { "x": -152.39999999999998, "y": 101.6, "z": 0.0 }, "relative": false } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "line", "end": { "x": -152.39999999999998, "y": 134.4041666020812, "z": 0.0 }, "relative": false } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "close_path", "path_id": "[uuid]" } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "revolve", "target": "[uuid]", "origin": { "x": 0.0, "y": 0.0, "z": 0.0 }, "axis": { "x": 1.0, "y": 0.0, "z": 0.0 }, "axis_is_2d": true, "angle": { "unit": "degrees", "value": 360.0 }, "tolerance": 0.0000001, "opposite": "None" } }, { "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": "object_set_material_params_pbr", "object_id": "[uuid]", "color": { "r": 0.31764707, "g": 0.6039216, "b": 0.9843137, "a": 100.0 }, "metalness": 0.0, "roughness": 0.0, "ambient_occlusion": 0.0 } }, { "cmdId": "[uuid]", "range": [], "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": 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": 1.0, "y": 0.0, "z": 0.0 } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "start_path" } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "move_path_pen", "path": "[uuid]", "to": { "x": -114.3, "y": 254.95072072853608, "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": 279.4, "start": { "unit": "degrees", "value": 114.14773991702228 }, "end": { "unit": "degrees", "value": 65.85226008297771 }, "relative": false } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "line", "end": { "x": 114.30000000000004, "y": 170.105273355759, "z": 0.0 }, "relative": false } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "arc", "center": { "x": 0.00000000000004511946372076636, "y": 2.1000651031575264 }, "radius": 203.2, "start": { "unit": "degrees", "value": 55.771133672187425 }, "end": { "unit": "degrees", "value": 124.22886632781258 }, "relative": false } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "line", "end": { "x": -114.3, "y": 254.95072072853608, "z": 0.0 }, "relative": false } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "close_path", "path_id": "[uuid]" } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "revolve", "target": "[uuid]", "origin": { "x": 0.0, "y": 0.0, "z": 0.0 }, "axis": { "x": 1.0, "y": 0.0, "z": 0.0 }, "axis_is_2d": true, "angle": { "unit": "degrees", "value": 360.0 }, "tolerance": 0.0000001, "opposite": "None" } }, { "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": "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": 0.0, "y": -914.4, "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": 201.42199999999997, "y": 0.0, "z": 0.0 }, "relative": true } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "line", "end": { "x": 201.42199999999997, "y": -191.76579465587704, "z": 0.0 }, "relative": false } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "arc_to", "interior": { "x": 276.31253102031127, "y": -24.174214054432447, "z": 0.0 }, "end": { "x": 277.368, "y": 0.0, "z": 0.0 }, "relative": false } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "line", "end": { "x": 0.0, "y": 0.0, "z": 0.0 }, "relative": false } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "line", "end": { "x": 0.0, "y": -914.4, "z": 0.0 }, "relative": false } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "close_path", "path_id": "[uuid]" } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "revolve", "target": "[uuid]", "origin": { "x": 0.0, "y": 0.0, "z": 0.0 }, "axis": { "x": 0.0, "y": 1.0, "z": 0.0 }, "axis_is_2d": true, "angle": { "unit": "degrees", "value": 360.0 }, "tolerance": 0.0000001, "opposite": "None" } }, { "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": 0.0, "y": -1.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": "enable_sketch_mode", "entity_id": "[uuid]", "ortho": false, "animated": false, "adjust_camera": false, "planar_normal": { "x": -1.0, "y": 0.0, "z": 0.0 } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "start_path" } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "move_path_pen", "path": "[uuid]", "to": { "x": 0.0, "y": -939.8, "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": 177.79999999999998, "y": 0.0, "z": 0.0 }, "relative": true } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "line", "end": { "x": 177.79999999999998, "y": -258.059794655877, "z": 0.0 }, "relative": false } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "line", "end": { "x": 111.76, "y": -192.01979465587704, "z": 0.0 }, "relative": false } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "line", "end": { "x": 111.76, "y": 0.0, "z": 0.0 }, "relative": false } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "line", "end": { "x": -110.48999999999998, "y": 0.0, "z": 0.0 }, "relative": false } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "line", "end": { "x": 0.0, "y": -192.01979465587704, "z": 0.0 }, "relative": true } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "line", "end": { "x": -177.79999999999998, "y": -259.32979465587704, "z": 0.0 }, "relative": false } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "line", "end": { "x": 0.0, "y": -681.740205344123, "z": 0.0 }, "relative": true } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "line", "end": { "x": 0.0, "y": -939.8, "z": 0.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": -1.0, "y": 0.0, "z": 0.0 } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extrude", "target": "[uuid]", "distance": 1016.0, "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": "set_object_transform", "object_id": "[uuid]", "transforms": [ { "translate": { "property": { "x": 508.0, "y": 0.0, "z": 0.0 }, "set": false, "is_local": true, "origin": { "type": "local" } }, "rotate_rpy": null, "rotate_angle_axis": null, "scale": null } ] } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "solid3d_get_common_edge", "object_id": "[uuid]", "face_ids": [ "[uuid]", "[uuid]" ] } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "solid3d_fillet_edge", "object_id": "[uuid]", "edge_id": null, "edge_ids": [ "[uuid]" ], "radius": 48.26, "tolerance": 0.0000001, "cut_type": "fillet", "strategy": "automatic", "extra_face_ids": [] } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "solid3d_get_common_edge", "object_id": "[uuid]", "face_ids": [ "[uuid]", "[uuid]" ] } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "solid3d_fillet_edge", "object_id": "[uuid]", "edge_id": null, "edge_ids": [ "[uuid]" ], "radius": 38.099999999999994, "tolerance": 0.0000001, "cut_type": "fillet", "strategy": "automatic", "extra_face_ids": [] } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "boolean_intersection", "solid_ids": [ "[uuid]", "[uuid]" ], "tolerance": 0.0000001 } }, { "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": "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": 152.39999999999998, "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": 152.39999999999998, "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": 2540.0, "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": "set_object_transform", "object_id": "[uuid]", "transforms": [ { "translate": { "property": { "x": 0.0, "y": -1270.0, "z": 0.0 }, "set": false, "is_local": true, "origin": { "type": "local" } }, "rotate_rpy": null, "rotate_angle_axis": null, "scale": null } ] } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "boolean_subtract", "target_ids": [ "[uuid]" ], "tool_ids": [ "[uuid]" ], "tolerance": 0.0000001 } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "boolean_union", "solid_ids": [ "[uuid]", "[uuid]" ], "tolerance": 0.0000001 } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "make_plane", "origin": { "x": 0.0, "y": 0.0, "z": -939.8 }, "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": false } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "plane_set_color", "plane_id": "[uuid]", "color": { "r": 0.6, "g": 0.6, "b": 0.6, "a": 0.3 } } }, { "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": 0.0, "z": 1.0 } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "start_path" } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "move_path_pen", "path": "[uuid]", "to": { "x": 86.36, "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": 86.36, "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": 0.0, "z": 1.0 } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extrude", "target": "[uuid]", "distance": 482.59999999999997, "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": [] }