Tests cutting up to a given face, or an offset from a face
(self)
| 1877 | no_box.cutThruAll() |
| 1878 | |
| 1879 | def testCutToFaceOffsetNOTIMPLEMENTEDYET(self): |
| 1880 | """ |
| 1881 | Tests cutting up to a given face, or an offset from a face |
| 1882 | """ |
| 1883 | # base block |
| 1884 | s = Workplane(Plane.XY()) |
| 1885 | r = ( |
| 1886 | s.rect(2.0, 2.0) |
| 1887 | .rect(1.3, 1.3, forConstruction=True) |
| 1888 | .vertices() |
| 1889 | .circle(0.125) |
| 1890 | .extrude(0.5) |
| 1891 | ) |
| 1892 | |
| 1893 | # side hole, up to 0.1 from the last face |
| 1894 | try: |
| 1895 | t = ( |
| 1896 | r.faces(">Y") |
| 1897 | .workplane() |
| 1898 | .circle(0.125) |
| 1899 | .cutToOffsetFromFace(r.faces().mminDist(Dir.Y), 0.1) |
| 1900 | ) |
| 1901 | # should end up being a blind hole |
| 1902 | self.assertEqual(10, t.faces().size()) |
| 1903 | t.first().val().exportStep("c:/temp/testCutToFace.STEP") |
| 1904 | except: |
| 1905 | pass |
| 1906 | # Not Implemented Yet |
| 1907 | |
| 1908 | def testWorkplaneOnExistingSolid(self): |
| 1909 | "Tests extruding on an existing solid" |
nothing calls this directly
no test coverage detected