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

Function simple_assy

tests/test_assembly.py:48–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46
47@pytest.fixture
48def simple_assy():
49
50 b1 = cq.Solid.makeBox(1, 1, 1)
51 b2 = cq.Workplane().box(1, 1, 2)
52 b3 = cq.Workplane().pushPoints([(0, 0), (-2, -5)]).box(1, 1, 3)
53
54 assy = cq.Assembly(b1, loc=cq.Location(cq.Vector(2, -5, 0)))
55 assy.add(b2, loc=cq.Location(cq.Vector(1, 1, 0)))
56 assy.add(b3, loc=cq.Location(cq.Vector(2, 3, 0)))
57
58 return assy
59
60
61@pytest.fixture

Callers

nothing calls this directly

Calls 4

addMethod · 0.95
makeBoxMethod · 0.80
boxMethod · 0.80
pushPointsMethod · 0.80

Tested by

no test coverage detected