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

Method testChamfer

tests/test_cadquery.py:2261–2272  ·  view source on GitHub ↗

Test chamfer API with a box shape

(self)

Source from the content-addressed store, hash-verified

2259 c1.fillet(0.1)
2260
2261 def testChamfer(self):
2262 """
2263 Test chamfer API with a box shape
2264 """
2265 cube = CQ(makeUnitCube()).faces(">Z").chamfer(0.1)
2266 self.saveModel(cube)
2267 self.assertEqual(10, cube.faces().size())
2268
2269 # should raise an error if no solid
2270 c1 = Workplane().hLine(1).vLine(1).close()
2271 with raises(ValueError):
2272 c1.chamfer(0.1)
2273
2274 def testChamferAsymmetrical(self):
2275 """

Callers

nothing calls this directly

Calls 9

saveModelMethod · 0.95
makeUnitCubeFunction · 0.90
WorkplaneClass · 0.85
vLineMethod · 0.80
hLineMethod · 0.80
chamferMethod · 0.45
facesMethod · 0.45
sizeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected