MCPcopy Create free account
hub / github.com/danieljfarrell/pvtrace / node_tree

Function node_tree

tests/test_node.py:10–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9
10def node_tree():
11 b_pos = (1.0, 0.0, 0.0)
12 b_axis = (0.0, 1.0, 0.0)
13 b_rads = 3.14159265 / 2
14 c_pos = (1.0, 0.0, 0.0)
15 a = Node(name="a", parent=None)
16 b = Node(name="b", parent=a)
17 b.location = b_pos
18 b.rotate(b_rads, b_axis)
19 c = b.add_child_node(name="c")
20 c.location = c_pos
21 return a, b, c
22
23class TestNode:
24

Callers

nothing calls this directly

Calls 2

NodeClass · 0.90
rotateMethod · 0.80

Tested by

no test coverage detected