514 lines
		
	
	
		
			9.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			514 lines
		
	
	
		
			9.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
---
 | 
						|
source: kcl-lib/src/simulation_tests.rs
 | 
						|
description: Artifact commands sketch_on_face.kcl
 | 
						|
---
 | 
						|
[
 | 
						|
  {
 | 
						|
    "cmdId": "[uuid]",
 | 
						|
    "range": [],
 | 
						|
    "command": {
 | 
						|
      "type": "edge_lines_visible",
 | 
						|
      "hidden": false
 | 
						|
    }
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "cmdId": "[uuid]",
 | 
						|
    "range": [],
 | 
						|
    "command": {
 | 
						|
      "type": "object_visible",
 | 
						|
      "object_id": "[uuid]",
 | 
						|
      "hidden": true
 | 
						|
    }
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "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": 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": 11.19,
 | 
						|
        "y": 28.35,
 | 
						|
        "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": 28.67,
 | 
						|
          "y": -13.25,
 | 
						|
          "z": 0.0
 | 
						|
        },
 | 
						|
        "relative": true
 | 
						|
      }
 | 
						|
    }
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "cmdId": "[uuid]",
 | 
						|
    "range": [],
 | 
						|
    "command": {
 | 
						|
      "type": "extend_path",
 | 
						|
      "path": "[uuid]",
 | 
						|
      "segment": {
 | 
						|
        "type": "line",
 | 
						|
        "end": {
 | 
						|
          "x": -4.12,
 | 
						|
          "y": -22.81,
 | 
						|
          "z": 0.0
 | 
						|
        },
 | 
						|
        "relative": true
 | 
						|
      }
 | 
						|
    }
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "cmdId": "[uuid]",
 | 
						|
    "range": [],
 | 
						|
    "command": {
 | 
						|
      "type": "extend_path",
 | 
						|
      "path": "[uuid]",
 | 
						|
      "segment": {
 | 
						|
        "type": "line",
 | 
						|
        "end": {
 | 
						|
          "x": -33.24,
 | 
						|
          "y": 14.55,
 | 
						|
          "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": 5.0,
 | 
						|
      "faces": null
 | 
						|
    }
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "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_opposite_edge",
 | 
						|
      "object_id": "[uuid]",
 | 
						|
      "edge_id": "[uuid]",
 | 
						|
      "face_id": "[uuid]"
 | 
						|
    }
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "cmdId": "[uuid]",
 | 
						|
    "range": [],
 | 
						|
    "command": {
 | 
						|
      "type": "solid3d_get_next_adjacent_edge",
 | 
						|
      "object_id": "[uuid]",
 | 
						|
      "edge_id": "[uuid]",
 | 
						|
      "face_id": "[uuid]"
 | 
						|
    }
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "cmdId": "[uuid]",
 | 
						|
    "range": [],
 | 
						|
    "command": {
 | 
						|
      "type": "solid3d_get_opposite_edge",
 | 
						|
      "object_id": "[uuid]",
 | 
						|
      "edge_id": "[uuid]",
 | 
						|
      "face_id": "[uuid]"
 | 
						|
    }
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "cmdId": "[uuid]",
 | 
						|
    "range": [],
 | 
						|
    "command": {
 | 
						|
      "type": "solid3d_get_next_adjacent_edge",
 | 
						|
      "object_id": "[uuid]",
 | 
						|
      "edge_id": "[uuid]",
 | 
						|
      "face_id": "[uuid]"
 | 
						|
    }
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "cmdId": "[uuid]",
 | 
						|
    "range": [],
 | 
						|
    "command": {
 | 
						|
      "type": "solid3d_get_opposite_edge",
 | 
						|
      "object_id": "[uuid]",
 | 
						|
      "edge_id": "[uuid]",
 | 
						|
      "face_id": "[uuid]"
 | 
						|
    }
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "cmdId": "[uuid]",
 | 
						|
    "range": [],
 | 
						|
    "command": {
 | 
						|
      "type": "solid3d_get_next_adjacent_edge",
 | 
						|
      "object_id": "[uuid]",
 | 
						|
      "edge_id": "[uuid]",
 | 
						|
      "face_id": "[uuid]"
 | 
						|
    }
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "cmdId": "[uuid]",
 | 
						|
    "range": [],
 | 
						|
    "command": {
 | 
						|
      "type": "solid3d_get_opposite_edge",
 | 
						|
      "object_id": "[uuid]",
 | 
						|
      "edge_id": "[uuid]",
 | 
						|
      "face_id": "[uuid]"
 | 
						|
    }
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "cmdId": "[uuid]",
 | 
						|
    "range": [],
 | 
						|
    "command": {
 | 
						|
      "type": "solid3d_get_next_adjacent_edge",
 | 
						|
      "object_id": "[uuid]",
 | 
						|
      "edge_id": "[uuid]",
 | 
						|
      "face_id": "[uuid]"
 | 
						|
    }
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "cmdId": "[uuid]",
 | 
						|
    "range": [],
 | 
						|
    "command": {
 | 
						|
      "type": "enable_sketch_mode",
 | 
						|
      "entity_id": "[uuid]",
 | 
						|
      "ortho": false,
 | 
						|
      "animated": false,
 | 
						|
      "adjust_camera": false,
 | 
						|
      "planar_normal": null
 | 
						|
    }
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "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": 0.0,
 | 
						|
          "y": 10.0,
 | 
						|
          "z": 0.0
 | 
						|
        },
 | 
						|
        "relative": true
 | 
						|
      }
 | 
						|
    }
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "cmdId": "[uuid]",
 | 
						|
    "range": [],
 | 
						|
    "command": {
 | 
						|
      "type": "extend_path",
 | 
						|
      "path": "[uuid]",
 | 
						|
      "segment": {
 | 
						|
        "type": "line",
 | 
						|
        "end": {
 | 
						|
          "x": 10.0,
 | 
						|
          "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": -10.0,
 | 
						|
          "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": null
 | 
						|
    }
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "cmdId": "[uuid]",
 | 
						|
    "range": [],
 | 
						|
    "command": {
 | 
						|
      "type": "extrude",
 | 
						|
      "target": "[uuid]",
 | 
						|
      "distance": 5.0,
 | 
						|
      "faces": null
 | 
						|
    }
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "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_opposite_edge",
 | 
						|
      "object_id": "[uuid]",
 | 
						|
      "edge_id": "[uuid]",
 | 
						|
      "face_id": "[uuid]"
 | 
						|
    }
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "cmdId": "[uuid]",
 | 
						|
    "range": [],
 | 
						|
    "command": {
 | 
						|
      "type": "solid3d_get_next_adjacent_edge",
 | 
						|
      "object_id": "[uuid]",
 | 
						|
      "edge_id": "[uuid]",
 | 
						|
      "face_id": "[uuid]"
 | 
						|
    }
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "cmdId": "[uuid]",
 | 
						|
    "range": [],
 | 
						|
    "command": {
 | 
						|
      "type": "solid3d_get_opposite_edge",
 | 
						|
      "object_id": "[uuid]",
 | 
						|
      "edge_id": "[uuid]",
 | 
						|
      "face_id": "[uuid]"
 | 
						|
    }
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "cmdId": "[uuid]",
 | 
						|
    "range": [],
 | 
						|
    "command": {
 | 
						|
      "type": "solid3d_get_next_adjacent_edge",
 | 
						|
      "object_id": "[uuid]",
 | 
						|
      "edge_id": "[uuid]",
 | 
						|
      "face_id": "[uuid]"
 | 
						|
    }
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "cmdId": "[uuid]",
 | 
						|
    "range": [],
 | 
						|
    "command": {
 | 
						|
      "type": "solid3d_get_opposite_edge",
 | 
						|
      "object_id": "[uuid]",
 | 
						|
      "edge_id": "[uuid]",
 | 
						|
      "face_id": "[uuid]"
 | 
						|
    }
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "cmdId": "[uuid]",
 | 
						|
    "range": [],
 | 
						|
    "command": {
 | 
						|
      "type": "solid3d_get_next_adjacent_edge",
 | 
						|
      "object_id": "[uuid]",
 | 
						|
      "edge_id": "[uuid]",
 | 
						|
      "face_id": "[uuid]"
 | 
						|
    }
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "cmdId": "[uuid]",
 | 
						|
    "range": [],
 | 
						|
    "command": {
 | 
						|
      "type": "solid3d_get_opposite_edge",
 | 
						|
      "object_id": "[uuid]",
 | 
						|
      "edge_id": "[uuid]",
 | 
						|
      "face_id": "[uuid]"
 | 
						|
    }
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "cmdId": "[uuid]",
 | 
						|
    "range": [],
 | 
						|
    "command": {
 | 
						|
      "type": "solid3d_get_next_adjacent_edge",
 | 
						|
      "object_id": "[uuid]",
 | 
						|
      "edge_id": "[uuid]",
 | 
						|
      "face_id": "[uuid]"
 | 
						|
    }
 | 
						|
  }
 | 
						|
]
 |