Tests to make sure that a CadQuery object is converted correctly to a OCC object.
(self)
| 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 | """ |