(self)
| 5896 | assert w2.solids().size() == 1 |
| 5897 | |
| 5898 | def test_compound_faces_center(self): |
| 5899 | sk = Sketch().rect(50, 50).faces() |
| 5900 | face1 = sk.val() |
| 5901 | face2 = face1.copy().translate(Vector(100, 0, 0)) |
| 5902 | compound = Compound.makeCompound([face1, face2]) |
| 5903 | expected_center = Shape.CombinedCenter([face1, face2]) |
| 5904 | |
| 5905 | assert ( |
| 5906 | compound.Center() == expected_center |
| 5907 | ), "Incorrect center of mass of the compound, expected {}, got {}".format( |
| 5908 | expected_center, compound.Center() |
| 5909 | ) |
| 5910 | |
| 5911 | def test_line_from_vertex(self): |
| 5912 |
nothing calls this directly
no test coverage detected