--- source: kcl-lib/src/simulation_tests.rs description: Artifact commands teapot.kcl --- { "public/kcl-samples/teapot/main.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": 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": -64.0, "y": 26.0, "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": -15.05, "y": 0.0, "z": 0.0 }, "relative": true } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "tangential_arc", "radius": 30.0, "offset": { "unit": "degrees", "value": -110.0 } } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "line", "end": { "x": 5.759619213604249, "y": 15.824423734034701, "z": 0.0 }, "relative": true } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "tangential_arc", "radius": 30.0, "offset": { "unit": "degrees", "value": 100.0 } } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "make_plane", "origin": { "x": -64.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": 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": 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": 6.0, "y": 26.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": 26.0 }, "radius": 6.0, "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": "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": 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": 4.800000000000001, "y": 26.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": 26.0 }, "radius": 4.800000000000001, "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": "solid2d_add_hole", "object_id": "[uuid]", "hole_id": "[uuid]" } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "object_visible", "object_id": "[uuid]", "hidden": true } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "sweep", "target": "[uuid]", "trajectory": "[uuid]", "sectional": false, "tolerance": 0.0000001, "relative_to": "trajectory_curve" } }, { "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_visible", "object_id": "[uuid]", "hidden": true } }, { "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": 0.0, "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": 32.0, "y": 0.0, "z": 0.0 }, "relative": true } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "tangential_arc_to", "to": { "x": 44.19047619047619, "y": 52.0, "z": 0.0 }, "angle_snap_increment": null } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "tangential_arc_to", "to": { "x": -22.857142857142854, "y": 66.18181818181817, "z": 0.0 }, "angle_snap_increment": null } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "tangential_arc_to", "to": { "x": -13.333333333333336, "y": 11.818181818181827, "z": 0.0 }, "angle_snap_increment": null } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "line", "end": { "x": 0.0, "y": 130.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": "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": 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": 26.0, "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": 76.0, "y": 26.0, "z": 0.0 }, "relative": false } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "tangential_arc_to", "to": { "x": 12.98, "y": 6.64, "z": 0.0 }, "angle_snap_increment": null } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "tangential_arc_to", "to": { "x": 28.39, "y": 63.11, "z": 0.0 }, "angle_snap_increment": null } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "tangential_arc_to", "to": { "x": -10.27, "y": 14.8, "z": 0.0 }, "angle_snap_increment": null } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "tangential_arc_to", "to": { "x": -48.01, "y": 1.81, "z": 0.0 }, "angle_snap_increment": null } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "line", "end": { "x": 0.0, "y": 108.70333020657074, "z": 0.0 }, "relative": false } } }, { "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": -10.0, "y": 29.5, "z": 0.0 } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "sketch_mode_disable" } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "arc_to", "interior": { "x": 0.0, "y": 31.0, "z": 0.0 }, "end": { "x": 10.0, "y": 29.5, "z": 0.0 }, "relative": false } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "tangential_arc_to", "to": { "x": 0.0, "y": -7.0, "z": 0.0 }, "angle_snap_increment": null } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "tangential_arc_to", "to": { "x": -20.0, "y": 0.0, "z": 0.0 }, "angle_snap_increment": null } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "tangential_arc_to", "to": { "x": 0.0, "y": 7.0, "z": 0.0 }, "angle_snap_increment": null } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "close_path", "path_id": "[uuid]" } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "sweep", "target": "[uuid]", "trajectory": "[uuid]", "sectional": false, "tolerance": 0.0000001, "relative_to": "trajectory_curve" } }, { "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_visible", "object_id": "[uuid]", "hidden": true } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "boolean_subtract", "target_ids": [ "[uuid]" ], "tool_ids": [ "[uuid]" ], "tolerance": 0.0000001 } }, { "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": 6.0, "y": 26.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": 26.0 }, "radius": 6.0, "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": 1.0, "y": 0.0, "z": 0.0 } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extrude", "target": "[uuid]", "distance": -80.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": "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": 0.0, "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": 32.0, "y": 0.0, "z": 0.0 }, "relative": true } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "tangential_arc_to", "to": { "x": 44.19047619047619, "y": 52.0, "z": 0.0 }, "angle_snap_increment": null } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "tangential_arc_to", "to": { "x": -22.857142857142854, "y": 66.18181818181817, "z": 0.0 }, "angle_snap_increment": null } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "tangential_arc_to", "to": { "x": -13.333333333333336, "y": 11.818181818181827, "z": 0.0 }, "angle_snap_increment": null } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "tangential_arc", "radius": 3.0, "offset": { "unit": "degrees", "value": 190.0 } } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "tangential_arc_to", "to": { "x": 9.07377939205238, "y": -6.100018907691336, "z": 0.0 }, "angle_snap_increment": null } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "tangential_arc_to", "to": { "x": 22.857142857142854, "y": -66.18181818181817, "z": 0.0 }, "angle_snap_increment": null } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "tangential_arc_to", "to": { "x": -38.19047619047619, "y": -46.0, "z": 0.0 }, "angle_snap_increment": null } } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "extend_path", "path": "[uuid]", "segment": { "type": "line", "end": { "x": 0.0, "y": 6.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": "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": "boolean_subtract", "target_ids": [ "[uuid]" ], "tool_ids": [ "[uuid]" ], "tolerance": 0.0000001 } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "object_set_material_params_pbr", "object_id": "[uuid]", "color": { "r": 0.12156863, "g": 0.59607846, "b": 0.5882353, "a": 100.0 }, "metalness": 0.4, "roughness": 0.3, "ambient_occlusion": 0.0 } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "object_set_material_params_pbr", "object_id": "[uuid]", "color": { "r": 0.12156863, "g": 0.59607846, "b": 0.5882353, "a": 100.0 }, "metalness": 0.4, "roughness": 0.3, "ambient_occlusion": 0.0 } }, { "cmdId": "[uuid]", "range": [], "command": { "type": "object_set_material_params_pbr", "object_id": "[uuid]", "color": { "r": 0.12156863, "g": 0.59607846, "b": 0.5882353, "a": 100.0 }, "metalness": 0.4, "roughness": 0.3, "ambient_occlusion": 0.0 } } ], "std::appearance": [], "std::array": [], "std::math": [], "std::prelude": [], "std::sketch": [], "std::solid": [], "std::sweep": [], "std::transform": [], "std::turns": [], "std::types": [], "std::units": [] }