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

Method testCopyWorkplane

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

Source from the content-addressed store, hash-verified

4299 result = result._getTagged("3 solids")
4300
4301 def testCopyWorkplane(self):
4302
4303 obj0 = Workplane("XY").box(1, 1, 10).faces(">Z").workplane()
4304 obj1 = Workplane("XY").copyWorkplane(obj0).box(1, 1, 1)
4305 self.assertTupleAlmostEquals((0, 0, 5), obj1.val().Center().toTuple(), 9)
4306
4307 def testWorkplaneFromTagged(self):
4308

Callers

nothing calls this directly

Calls 9

WorkplaneClass · 0.85
workplaneMethod · 0.80
boxMethod · 0.80
copyWorkplaneMethod · 0.80
facesMethod · 0.45
toTupleMethod · 0.45
CenterMethod · 0.45
valMethod · 0.45

Tested by

no test coverage detected