shape must be a CQ object Save models in SVG and STEP format
(self, shape)
| 99 | writeStringToFile(existingSummary, self.summary_file) |
| 100 | |
| 101 | def saveModel(self, shape): |
| 102 | """ |
| 103 | shape must be a CQ object |
| 104 | Save models in SVG and STEP format |
| 105 | """ |
| 106 | shape.exportSvg(str((self.tmpdir / self._testMethodName).with_suffix(".svg"))) |
| 107 | shape.val().exportStep( |
| 108 | str((self.tmpdir / self._testMethodName).with_suffix(".step")) |
| 109 | ) |
| 110 | |
| 111 | def testToOCC(self): |
| 112 | """ |
no test coverage detected