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

Method testToOCC

tests/test_cadquery.py:111–121  ·  view source on GitHub ↗

Tests to make sure that a CadQuery object is converted correctly to a OCC object.

(self)

Source from the content-addressed store, hash-verified

109 )
110
111 def testToOCC(self):
112 """
113 Tests to make sure that a CadQuery object is converted correctly to a OCC object.
114 """
115 r = Workplane("XY").rect(5, 5).extrude(5)
116
117 r = r.toOCC()
118
119 import OCP
120
121 self.assertEqual(type(r), OCP.TopoDS.TopoDS_Solid)
122
123 def testToSVG(self):
124 """

Callers

nothing calls this directly

Calls 4

WorkplaneClass · 0.85
extrudeMethod · 0.80
toOCCMethod · 0.80
rectMethod · 0.45

Tested by

no test coverage detected