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

Method test_getitem

tests/test_cadquery.py:5794–5800  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5792 assert w.map(lambda s: s.faces(">Z")).faces().size() == 2
5793
5794 def test_getitem(self):
5795
5796 w = Workplane().rarray(2, 0, 5, 1).box(1, 1, 1, combine=False)
5797
5798 assert w[0].solids().size() == 1
5799 assert w[-2:].solids().size() == 2
5800 assert w[[0, 1]].solids().size() == 2
5801
5802 def test_invoke(self):
5803

Callers

nothing calls this directly

Calls 5

WorkplaneClass · 0.85
boxMethod · 0.80
rarrayMethod · 0.45
sizeMethod · 0.45
solidsMethod · 0.45

Tested by

no test coverage detected