getCommonEdge as default way of filleting (#6043)
* Common edge faces into artifact graph * clean up * kingdom of tags * add tests * hook up tags with edge treatments * update unit tests * update e2e * clean up * more fix up after main merge * fmt * revolve fix * fix new circular dependency * fix revolve * remove numbers from circ deps, makes diffs bad * sim test updates * try and get tests working * update * Fix tsc error --------- Co-authored-by: max-mrgrsk <156543465+max-mrgrsk@users.noreply.github.com> Co-authored-by: max <margorskyi@gmail.com> Co-authored-by: Jonathan Tran <jonnytran@gmail.com>
This commit is contained in:
		@ -231,20 +231,27 @@ description: Artifact commands sketch_on_face_start.kcl
 | 
			
		||||
    "cmdId": "[uuid]",
 | 
			
		||||
    "range": [],
 | 
			
		||||
    "command": {
 | 
			
		||||
      "type": "solid3d_get_opposite_edge",
 | 
			
		||||
      "type": "solid3d_get_all_edge_faces",
 | 
			
		||||
      "object_id": "[uuid]",
 | 
			
		||||
      "edge_id": "[uuid]",
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
      "edge_id": "[uuid]"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    "cmdId": "[uuid]",
 | 
			
		||||
    "range": [],
 | 
			
		||||
    "command": {
 | 
			
		||||
      "type": "solid3d_get_next_adjacent_edge",
 | 
			
		||||
      "type": "solid3d_get_all_edge_faces",
 | 
			
		||||
      "object_id": "[uuid]",
 | 
			
		||||
      "edge_id": "[uuid]",
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
      "edge_id": "[uuid]"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    "cmdId": "[uuid]",
 | 
			
		||||
    "range": [],
 | 
			
		||||
    "command": {
 | 
			
		||||
      "type": "solid3d_get_all_edge_faces",
 | 
			
		||||
      "object_id": "[uuid]",
 | 
			
		||||
      "edge_id": "[uuid]"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
@ -267,6 +274,33 @@ description: Artifact commands sketch_on_face_start.kcl
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    "cmdId": "[uuid]",
 | 
			
		||||
    "range": [],
 | 
			
		||||
    "command": {
 | 
			
		||||
      "type": "solid3d_get_all_edge_faces",
 | 
			
		||||
      "object_id": "[uuid]",
 | 
			
		||||
      "edge_id": "[uuid]"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    "cmdId": "[uuid]",
 | 
			
		||||
    "range": [],
 | 
			
		||||
    "command": {
 | 
			
		||||
      "type": "solid3d_get_all_edge_faces",
 | 
			
		||||
      "object_id": "[uuid]",
 | 
			
		||||
      "edge_id": "[uuid]"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    "cmdId": "[uuid]",
 | 
			
		||||
    "range": [],
 | 
			
		||||
    "command": {
 | 
			
		||||
      "type": "solid3d_get_all_edge_faces",
 | 
			
		||||
      "object_id": "[uuid]",
 | 
			
		||||
      "edge_id": "[uuid]"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    "cmdId": "[uuid]",
 | 
			
		||||
    "range": [],
 | 
			
		||||
@ -287,6 +321,80 @@ description: Artifact commands sketch_on_face_start.kcl
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    "cmdId": "[uuid]",
 | 
			
		||||
    "range": [],
 | 
			
		||||
    "command": {
 | 
			
		||||
      "type": "solid3d_get_all_edge_faces",
 | 
			
		||||
      "object_id": "[uuid]",
 | 
			
		||||
      "edge_id": "[uuid]"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    "cmdId": "[uuid]",
 | 
			
		||||
    "range": [],
 | 
			
		||||
    "command": {
 | 
			
		||||
      "type": "solid3d_get_all_edge_faces",
 | 
			
		||||
      "object_id": "[uuid]",
 | 
			
		||||
      "edge_id": "[uuid]"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    "cmdId": "[uuid]",
 | 
			
		||||
    "range": [],
 | 
			
		||||
    "command": {
 | 
			
		||||
      "type": "solid3d_get_all_edge_faces",
 | 
			
		||||
      "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_all_edge_faces",
 | 
			
		||||
      "object_id": "[uuid]",
 | 
			
		||||
      "edge_id": "[uuid]"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    "cmdId": "[uuid]",
 | 
			
		||||
    "range": [],
 | 
			
		||||
    "command": {
 | 
			
		||||
      "type": "solid3d_get_all_edge_faces",
 | 
			
		||||
      "object_id": "[uuid]",
 | 
			
		||||
      "edge_id": "[uuid]"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    "cmdId": "[uuid]",
 | 
			
		||||
    "range": [],
 | 
			
		||||
    "command": {
 | 
			
		||||
      "type": "solid3d_get_all_edge_faces",
 | 
			
		||||
      "object_id": "[uuid]",
 | 
			
		||||
      "edge_id": "[uuid]"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    "cmdId": "[uuid]",
 | 
			
		||||
    "range": [],
 | 
			
		||||
@ -456,20 +564,27 @@ description: Artifact commands sketch_on_face_start.kcl
 | 
			
		||||
    "cmdId": "[uuid]",
 | 
			
		||||
    "range": [],
 | 
			
		||||
    "command": {
 | 
			
		||||
      "type": "solid3d_get_opposite_edge",
 | 
			
		||||
      "type": "solid3d_get_all_edge_faces",
 | 
			
		||||
      "object_id": "[uuid]",
 | 
			
		||||
      "edge_id": "[uuid]",
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
      "edge_id": "[uuid]"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    "cmdId": "[uuid]",
 | 
			
		||||
    "range": [],
 | 
			
		||||
    "command": {
 | 
			
		||||
      "type": "solid3d_get_next_adjacent_edge",
 | 
			
		||||
      "type": "solid3d_get_all_edge_faces",
 | 
			
		||||
      "object_id": "[uuid]",
 | 
			
		||||
      "edge_id": "[uuid]",
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
      "edge_id": "[uuid]"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    "cmdId": "[uuid]",
 | 
			
		||||
    "range": [],
 | 
			
		||||
    "command": {
 | 
			
		||||
      "type": "solid3d_get_all_edge_faces",
 | 
			
		||||
      "object_id": "[uuid]",
 | 
			
		||||
      "edge_id": "[uuid]"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
@ -492,6 +607,33 @@ description: Artifact commands sketch_on_face_start.kcl
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    "cmdId": "[uuid]",
 | 
			
		||||
    "range": [],
 | 
			
		||||
    "command": {
 | 
			
		||||
      "type": "solid3d_get_all_edge_faces",
 | 
			
		||||
      "object_id": "[uuid]",
 | 
			
		||||
      "edge_id": "[uuid]"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    "cmdId": "[uuid]",
 | 
			
		||||
    "range": [],
 | 
			
		||||
    "command": {
 | 
			
		||||
      "type": "solid3d_get_all_edge_faces",
 | 
			
		||||
      "object_id": "[uuid]",
 | 
			
		||||
      "edge_id": "[uuid]"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    "cmdId": "[uuid]",
 | 
			
		||||
    "range": [],
 | 
			
		||||
    "command": {
 | 
			
		||||
      "type": "solid3d_get_all_edge_faces",
 | 
			
		||||
      "object_id": "[uuid]",
 | 
			
		||||
      "edge_id": "[uuid]"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    "cmdId": "[uuid]",
 | 
			
		||||
    "range": [],
 | 
			
		||||
@ -511,5 +653,79 @@ description: Artifact commands sketch_on_face_start.kcl
 | 
			
		||||
      "edge_id": "[uuid]",
 | 
			
		||||
      "face_id": "[uuid]"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    "cmdId": "[uuid]",
 | 
			
		||||
    "range": [],
 | 
			
		||||
    "command": {
 | 
			
		||||
      "type": "solid3d_get_all_edge_faces",
 | 
			
		||||
      "object_id": "[uuid]",
 | 
			
		||||
      "edge_id": "[uuid]"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    "cmdId": "[uuid]",
 | 
			
		||||
    "range": [],
 | 
			
		||||
    "command": {
 | 
			
		||||
      "type": "solid3d_get_all_edge_faces",
 | 
			
		||||
      "object_id": "[uuid]",
 | 
			
		||||
      "edge_id": "[uuid]"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    "cmdId": "[uuid]",
 | 
			
		||||
    "range": [],
 | 
			
		||||
    "command": {
 | 
			
		||||
      "type": "solid3d_get_all_edge_faces",
 | 
			
		||||
      "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_all_edge_faces",
 | 
			
		||||
      "object_id": "[uuid]",
 | 
			
		||||
      "edge_id": "[uuid]"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    "cmdId": "[uuid]",
 | 
			
		||||
    "range": [],
 | 
			
		||||
    "command": {
 | 
			
		||||
      "type": "solid3d_get_all_edge_faces",
 | 
			
		||||
      "object_id": "[uuid]",
 | 
			
		||||
      "edge_id": "[uuid]"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    "cmdId": "[uuid]",
 | 
			
		||||
    "range": [],
 | 
			
		||||
    "command": {
 | 
			
		||||
      "type": "solid3d_get_all_edge_faces",
 | 
			
		||||
      "object_id": "[uuid]",
 | 
			
		||||
      "edge_id": "[uuid]"
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
@ -8,13 +8,13 @@ flowchart LR
 | 
			
		||||
    6["Segment<br>[215, 223, 0]"]
 | 
			
		||||
    7[Solid2d]
 | 
			
		||||
  end
 | 
			
		||||
  subgraph path23 [Path]
 | 
			
		||||
    23["Path<br>[308, 333, 0]"]
 | 
			
		||||
    24["Segment<br>[339, 358, 0]"]
 | 
			
		||||
    25["Segment<br>[364, 383, 0]"]
 | 
			
		||||
    26["Segment<br>[389, 409, 0]"]
 | 
			
		||||
    27["Segment<br>[415, 423, 0]"]
 | 
			
		||||
    28[Solid2d]
 | 
			
		||||
  subgraph path18 [Path]
 | 
			
		||||
    18["Path<br>[308, 333, 0]"]
 | 
			
		||||
    19["Segment<br>[339, 358, 0]"]
 | 
			
		||||
    20["Segment<br>[364, 383, 0]"]
 | 
			
		||||
    21["Segment<br>[389, 409, 0]"]
 | 
			
		||||
    22["Segment<br>[415, 423, 0]"]
 | 
			
		||||
    23[Solid2d]
 | 
			
		||||
  end
 | 
			
		||||
  1["Plane<br>[29, 46, 0]"]
 | 
			
		||||
  8["Sweep Extrusion<br>[229, 249, 0]"]
 | 
			
		||||
@ -25,29 +25,19 @@ flowchart LR
 | 
			
		||||
  13["Cap Start"]
 | 
			
		||||
  14["Cap End"]
 | 
			
		||||
  15["SweepEdge Opposite"]
 | 
			
		||||
  16["SweepEdge Adjacent"]
 | 
			
		||||
  16["SweepEdge Opposite"]
 | 
			
		||||
  17["SweepEdge Opposite"]
 | 
			
		||||
  18["SweepEdge Adjacent"]
 | 
			
		||||
  19["SweepEdge Opposite"]
 | 
			
		||||
  20["SweepEdge Adjacent"]
 | 
			
		||||
  21["SweepEdge Opposite"]
 | 
			
		||||
  22["SweepEdge Adjacent"]
 | 
			
		||||
  29["Sweep Extrusion<br>[429, 448, 0]"]
 | 
			
		||||
  30[Wall]
 | 
			
		||||
  31[Wall]
 | 
			
		||||
  32[Wall]
 | 
			
		||||
  33[Wall]
 | 
			
		||||
  34["Cap Start"]
 | 
			
		||||
  35["Cap End"]
 | 
			
		||||
  36["SweepEdge Opposite"]
 | 
			
		||||
  37["SweepEdge Adjacent"]
 | 
			
		||||
  38["SweepEdge Opposite"]
 | 
			
		||||
  39["SweepEdge Adjacent"]
 | 
			
		||||
  40["SweepEdge Opposite"]
 | 
			
		||||
  41["SweepEdge Adjacent"]
 | 
			
		||||
  42["SweepEdge Opposite"]
 | 
			
		||||
  43["SweepEdge Adjacent"]
 | 
			
		||||
  44["StartSketchOnFace<br>[268, 302, 0]"]
 | 
			
		||||
  24["Sweep Extrusion<br>[429, 448, 0]"]
 | 
			
		||||
  25[Wall]
 | 
			
		||||
  26[Wall]
 | 
			
		||||
  27[Wall]
 | 
			
		||||
  28[Wall]
 | 
			
		||||
  29["Cap Start"]
 | 
			
		||||
  30["Cap End"]
 | 
			
		||||
  31["SweepEdge Opposite"]
 | 
			
		||||
  32["SweepEdge Opposite"]
 | 
			
		||||
  33["SweepEdge Opposite"]
 | 
			
		||||
  34["StartSketchOnFace<br>[268, 302, 0]"]
 | 
			
		||||
  1 --- 2
 | 
			
		||||
  2 --- 3
 | 
			
		||||
  2 --- 4
 | 
			
		||||
@ -56,17 +46,16 @@ flowchart LR
 | 
			
		||||
  2 ---- 8
 | 
			
		||||
  2 --- 7
 | 
			
		||||
  3 --- 12
 | 
			
		||||
  3 --- 21
 | 
			
		||||
  3 --- 22
 | 
			
		||||
  3 --- 17
 | 
			
		||||
  3 x--> 13
 | 
			
		||||
  4 --- 11
 | 
			
		||||
  4 --- 19
 | 
			
		||||
  4 --- 20
 | 
			
		||||
  4 --- 16
 | 
			
		||||
  4 x--> 13
 | 
			
		||||
  5 --- 10
 | 
			
		||||
  5 --- 17
 | 
			
		||||
  5 --- 18
 | 
			
		||||
  5 --- 15
 | 
			
		||||
  5 x--> 13
 | 
			
		||||
  6 --- 9
 | 
			
		||||
  6 --- 15
 | 
			
		||||
  6 --- 16
 | 
			
		||||
  6 x--> 13
 | 
			
		||||
  8 --- 9
 | 
			
		||||
  8 --- 10
 | 
			
		||||
  8 --- 11
 | 
			
		||||
@ -76,43 +65,44 @@ flowchart LR
 | 
			
		||||
  8 --- 15
 | 
			
		||||
  8 --- 16
 | 
			
		||||
  8 --- 17
 | 
			
		||||
  8 --- 18
 | 
			
		||||
  8 --- 19
 | 
			
		||||
  8 --- 20
 | 
			
		||||
  8 --- 21
 | 
			
		||||
  8 --- 22
 | 
			
		||||
  13 --- 23
 | 
			
		||||
  23 --- 24
 | 
			
		||||
  23 --- 25
 | 
			
		||||
  23 --- 26
 | 
			
		||||
  23 --- 27
 | 
			
		||||
  23 ---- 29
 | 
			
		||||
  23 --- 28
 | 
			
		||||
  13 --- 18
 | 
			
		||||
  15 <--x 10
 | 
			
		||||
  15 <--x 14
 | 
			
		||||
  16 <--x 11
 | 
			
		||||
  16 <--x 14
 | 
			
		||||
  17 <--x 12
 | 
			
		||||
  17 <--x 14
 | 
			
		||||
  18 --- 19
 | 
			
		||||
  18 --- 20
 | 
			
		||||
  18 --- 21
 | 
			
		||||
  18 --- 22
 | 
			
		||||
  18 ---- 24
 | 
			
		||||
  18 --- 23
 | 
			
		||||
  19 --- 28
 | 
			
		||||
  19 --- 33
 | 
			
		||||
  19 x--> 29
 | 
			
		||||
  20 --- 27
 | 
			
		||||
  20 --- 32
 | 
			
		||||
  20 x--> 29
 | 
			
		||||
  21 --- 26
 | 
			
		||||
  21 --- 31
 | 
			
		||||
  21 x--> 29
 | 
			
		||||
  22 --- 25
 | 
			
		||||
  22 x--> 29
 | 
			
		||||
  24 --- 25
 | 
			
		||||
  24 --- 26
 | 
			
		||||
  24 --- 27
 | 
			
		||||
  24 --- 28
 | 
			
		||||
  24 --- 29
 | 
			
		||||
  24 --- 30
 | 
			
		||||
  24 --- 31
 | 
			
		||||
  24 --- 32
 | 
			
		||||
  24 --- 33
 | 
			
		||||
  24 --- 42
 | 
			
		||||
  24 --- 43
 | 
			
		||||
  25 --- 32
 | 
			
		||||
  25 --- 40
 | 
			
		||||
  25 --- 41
 | 
			
		||||
  26 --- 31
 | 
			
		||||
  26 --- 38
 | 
			
		||||
  26 --- 39
 | 
			
		||||
  27 --- 30
 | 
			
		||||
  27 --- 36
 | 
			
		||||
  27 --- 37
 | 
			
		||||
  29 --- 30
 | 
			
		||||
  29 --- 31
 | 
			
		||||
  29 --- 32
 | 
			
		||||
  29 --- 33
 | 
			
		||||
  29 --- 34
 | 
			
		||||
  29 --- 35
 | 
			
		||||
  29 --- 36
 | 
			
		||||
  29 --- 37
 | 
			
		||||
  29 --- 38
 | 
			
		||||
  29 --- 39
 | 
			
		||||
  29 --- 40
 | 
			
		||||
  29 --- 41
 | 
			
		||||
  29 --- 42
 | 
			
		||||
  29 --- 43
 | 
			
		||||
  13 <--x 44
 | 
			
		||||
  31 <--x 26
 | 
			
		||||
  31 <--x 30
 | 
			
		||||
  32 <--x 27
 | 
			
		||||
  32 <--x 30
 | 
			
		||||
  33 <--x 28
 | 
			
		||||
  33 <--x 30
 | 
			
		||||
  13 <--x 34
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user