()
| 984 | |
| 985 | |
| 986 | def test_mixed_close(): |
| 987 | |
| 988 | # check that closing of mixed mode edges works correctly |
| 989 | s = ( |
| 990 | Sketch() |
| 991 | .arc((0, 0), 30, 0, 120, tag="e0", forConstruction=True) |
| 992 | .edges(tag="e0") |
| 993 | .distribute(1, rotate=False) |
| 994 | .segment((0, 0), (10, 2)) |
| 995 | .segment((10, -2)) |
| 996 | .close() |
| 997 | .assemble() |
| 998 | .reset() # reset the implicit selection coming from distribute |
| 999 | ) |
| 1000 | |
| 1001 | # the underlying face should be valid |
| 1002 | assert s.val().isValid() |