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

Method testCounterSinks

tests/test_cadquery.py:2311–2325  ·  view source on GitHub ↗

Tests countersinks

(self)

Source from the content-addressed store, hash-verified

2309 self.assertEqual(15, c2.faces().size())
2310
2311 def testCounterSinks(self):
2312 """
2313 Tests countersinks
2314 """
2315 s = Workplane(Plane.XY())
2316 result = (
2317 s.rect(2.0, 4.0)
2318 .extrude(0.5)
2319 .faces(">Z")
2320 .workplane()
2321 .rect(1.5, 3.5, forConstruction=True)
2322 .vertices()
2323 .cskHole(0.125, 0.25, 82, depth=None)
2324 )
2325 self.saveModel(result)
2326
2327 def testSplitKeepingHalf(self):
2328 """

Callers

nothing calls this directly

Calls 9

rectMethod · 0.95
saveModelMethod · 0.95
WorkplaneClass · 0.85
XYMethod · 0.80
cskHoleMethod · 0.80
workplaneMethod · 0.80
extrudeMethod · 0.80
verticesMethod · 0.45
facesMethod · 0.45

Tested by

no test coverage detected