()
| 344 | |
| 345 | |
| 346 | def test_faceOn(): |
| 347 | |
| 348 | # make a base face |
| 349 | f = sphere(4).faces() |
| 350 | |
| 351 | # single face |
| 352 | f1 = faceOn(f, text("d", 1)) |
| 353 | |
| 354 | assert f1.isValid() |
| 355 | assert isinstance(f1, Face) |
| 356 | assert all(w.IsClosed() for w in f1) |
| 357 | |
| 358 | # multiple faces |
| 359 | f2 = faceOn(f, text("CQ", 1)) |
| 360 | |
| 361 | assert f2.isValid() |
| 362 | assert len(f2.Faces()) == 2 |
| 363 | |
| 364 | |
| 365 | # %% primitives |