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

Method saveModel

tests/test_cadquery.py:101–109  ·  view source on GitHub ↗

shape must be a CQ object Save models in SVG and STEP format

(self, shape)

Source from the content-addressed store, hash-verified

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 """

Callers 15

testCubePluginMethod · 0.95
testCylinderPluginMethod · 0.95
testPolygonPluginMethod · 0.95
testPointListMethod · 0.95
testWorkplaneFromFaceMethod · 0.95
testFrontReferenceMethod · 0.95
testLoftMethod · 0.95
testLoftCombineMethod · 0.95
testMultisectionSweepMethod · 0.95
testRectArrayMethod · 0.95
testNestedCircleMethod · 0.95
testLegoBrickMethod · 0.95

Calls 3

exportSvgMethod · 0.80
exportStepMethod · 0.80
valMethod · 0.45

Tested by

no test coverage detected