()
| 1204 | |
| 1205 | # %% diagnostics |
| 1206 | def test_check(): |
| 1207 | |
| 1208 | # correct shape |
| 1209 | s1 = box(1, 1, 1) |
| 1210 | |
| 1211 | assert check(s1) |
| 1212 | |
| 1213 | s2 = sweep(rect(1, 1), segment((0, 0), (1, 1))) |
| 1214 | |
| 1215 | assert not check(s2, tol=1e-5) |
| 1216 | |
| 1217 | res = [] |
| 1218 | |
| 1219 | assert not check(s2, res) |
| 1220 | assert res[0][1] == BOPAlgo_CheckStatus.BOPAlgo_SelfIntersect |
| 1221 | |
| 1222 | |
| 1223 | # %% properties |