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

Method testCutToFaceOffsetNOTIMPLEMENTEDYET

tests/test_cadquery.py:1879–1906  ·  view source on GitHub ↗

Tests cutting up to a given face, or an offset from a face

(self)

Source from the content-addressed store, hash-verified

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"

Callers

nothing calls this directly

Calls 12

rectMethod · 0.95
WorkplaneClass · 0.85
XYMethod · 0.80
extrudeMethod · 0.80
workplaneMethod · 0.80
exportStepMethod · 0.80
circleMethod · 0.45
verticesMethod · 0.45
facesMethod · 0.45
sizeMethod · 0.45
valMethod · 0.45
firstMethod · 0.45

Tested by

no test coverage detected