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

Method testFillet

tests/test_cadquery.py:2240–2259  ·  view source on GitHub ↗

Tests filleting edges on a solid

(self)

Source from the content-addressed store, hash-verified

2238 self.assertEqual(2, t.faces().size())
2239
2240 def testFillet(self):
2241 """
2242 Tests filleting edges on a solid
2243 """
2244 c = (
2245 CQ(makeUnitCube())
2246 .faces(">Z")
2247 .workplane()
2248 .circle(0.25)
2249 .extrude(0.25, True)
2250 .edges("|Z")
2251 .fillet(0.2)
2252 )
2253 self.saveModel(c)
2254 self.assertEqual(12, c.faces().size())
2255
2256 # should raise an error if no solid
2257 c1 = Workplane().hLine(1).vLine(1).close()
2258 with raises(ValueError):
2259 c1.fillet(0.1)
2260
2261 def testChamfer(self):
2262 """

Callers

nothing calls this directly

Calls 13

saveModelMethod · 0.95
makeUnitCubeFunction · 0.90
WorkplaneClass · 0.85
extrudeMethod · 0.80
workplaneMethod · 0.80
vLineMethod · 0.80
hLineMethod · 0.80
filletMethod · 0.45
edgesMethod · 0.45
circleMethod · 0.45
facesMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected