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

Function test_imprinting

tests/test_assembly.py:2336–2354  ·  view source on GitHub ↗
(touching_assy, disjoint_assy)

Source from the content-addressed store, hash-verified

2334
2335
2336def test_imprinting(touching_assy, disjoint_assy):
2337
2338 # normal usecase
2339 r, o = cq.occ_impl.assembly.imprint(touching_assy)
2340
2341 assert len(r.Solids()) == 2
2342 assert len(r.Faces()) == 11
2343
2344 for s in r.Solids():
2345 assert s in o
2346
2347 # edge usecase
2348 r, o = cq.occ_impl.assembly.imprint(disjoint_assy)
2349
2350 assert len(r.Solids()) == 2
2351 assert len(r.Faces()) == 12
2352
2353 for s in r.Solids():
2354 assert s in o
2355
2356
2357def test_order_of_transform():

Callers

nothing calls this directly

Calls 2

SolidsMethod · 0.80
FacesMethod · 0.45

Tested by

no test coverage detected