(nested_assy, tmpdir)
| 703 | |
| 704 | |
| 705 | def test_step_export(nested_assy, tmpdir): |
| 706 | |
| 707 | with chdir(tmpdir): |
| 708 | exportAssembly(nested_assy, "nested.step") |
| 709 | exportAssembly( |
| 710 | nested_assy, "nested_options.step", write_pcurves=False, precision_mode=0 |
| 711 | ) |
| 712 | w = cq.importers.importStep("nested.step") |
| 713 | o = cq.importers.importStep("nested_options.step") |
| 714 | |
| 715 | assert w.solids().size() == 4 |
| 716 | assert o.solids().size() == 4 |
| 717 | |
| 718 | # check that locations were applied correctly |
| 719 | c = cq.Compound.makeCompound(w.solids().vals()).Center() |
| 720 | assert pytest.approx(c.toTuple()) == (0, 4, 0) |
| 721 | c2 = cq.Compound.makeCompound(o.solids().vals()).Center() |
| 722 | assert pytest.approx(c2.toTuple()) == (0, 4, 0) |
| 723 | |
| 724 | |
| 725 | def test_meta_step_export(tmpdir): |
nothing calls this directly
no test coverage detected