MCPcopy Index your code
hub / github.com/CadQuery/cadquery / testWorkplaneOnExistingSolid

Method testWorkplaneOnExistingSolid

tests/test_cadquery.py:1908–1919  ·  view source on GitHub ↗

Tests extruding on an existing solid

(self)

Source from the content-addressed store, hash-verified

1906 # Not Implemented Yet
1907
1908 def testWorkplaneOnExistingSolid(self):
1909 "Tests extruding on an existing solid"
1910 c = (
1911 CQ(makeUnitCube())
1912 .faces(">Z")
1913 .workplane()
1914 .circle(0.25)
1915 .circle(0.125)
1916 .extrude(0.25)
1917 )
1918 self.saveModel(c)
1919 self.assertEqual(10, c.faces().size())
1920
1921 def testWorkplaneCenterMove(self):
1922 # this workplane is centered at x=0.5,y=0.5, the center of the upper face

Callers

nothing calls this directly

Calls 7

saveModelMethod · 0.95
makeUnitCubeFunction · 0.90
extrudeMethod · 0.80
workplaneMethod · 0.80
circleMethod · 0.45
facesMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected