MCPcopy
hub / github.com/CadQuery/cadquery / test_faceOn

Function test_faceOn

tests/test_free_functions.py:346–362  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

344
345
346def 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

Callers

nothing calls this directly

Calls 7

sphereFunction · 0.85
faceOnFunction · 0.85
textFunction · 0.85
isValidMethod · 0.80
IsClosedMethod · 0.80
facesMethod · 0.45
FacesMethod · 0.45

Tested by

no test coverage detected