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

Function test_addHole

tests/test_shapes.py:344–362  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

342
343
344def test_addHole():
345
346 f = plane(1, 1)
347 c = circle(0.1)
348
349 f1 = f.addHole(c)
350
351 assert len(f1.innerWires()) == 1
352 assert f1.isValid()
353
354 f2 = f.addHole(wire(c))
355
356 assert len(f2.innerWires()) == 1
357 assert f2.isValid()
358
359 f3 = f.addHole(*c.moved((-0.3, 0), (0.3, 0)))
360
361 assert len(f3.innerWires()) == 2
362 assert f3.isValid()
363
364
365def test_single_ent_selector():

Callers

nothing calls this directly

Calls 7

planeFunction · 0.90
circleFunction · 0.90
wireFunction · 0.90
addHoleMethod · 0.80
innerWiresMethod · 0.80
isValidMethod · 0.80
movedMethod · 0.45

Tested by

no test coverage detected