MCPcopy Index your code
hub / github.com/CadQuery/cadquery / test_export

Function test_export

tests/test_free_functions.py:1194–1202  ·  view source on GitHub ↗
(tmpdir)

Source from the content-addressed store, hash-verified

1192
1193# %% export
1194def test_export(tmpdir):
1195
1196 with chdir(tmpdir):
1197 b1 = box(1, 1, 1)
1198 b1.export("box.brep")
1199
1200 b2 = Shape.importBrep("box.brep")
1201
1202 assert (b1 - b2).Volume() == approx(0)
1203
1204
1205# %% diagnostics

Callers

nothing calls this directly

Calls 4

boxFunction · 0.85
importBrepMethod · 0.80
VolumeMethod · 0.80
exportMethod · 0.45

Tested by

no test coverage detected