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

Method testExplicitClean

tests/test_cadquery.py:3062–3077  ·  view source on GitHub ↗

Test running of `clean()` method explicitly.

(self)

Source from the content-addressed store, hash-verified

3060 assert len(s.edges().vals()) == 16
3061
3062 def testExplicitClean(self):
3063 """
3064 Test running of `clean()` method explicitly.
3065 """
3066 s = (
3067 Workplane("XY")
3068 .moveTo(0, 0)
3069 .line(5, 0)
3070 .line(5, 0)
3071 .line(0, 10)
3072 .line(-10, 0)
3073 .close()
3074 .extrude(10, clean=False)
3075 .clean()
3076 )
3077 self.assertEqual(6, s.faces().size())
3078
3079 def testPlanes(self):
3080 """

Callers

nothing calls this directly

Calls 8

WorkplaneClass · 0.85
extrudeMethod · 0.80
lineMethod · 0.80
moveToMethod · 0.80
cleanMethod · 0.45
closeMethod · 0.45
sizeMethod · 0.45
facesMethod · 0.45

Tested by

no test coverage detected