MCPcopy Create free account
hub / github.com/ZhengdiYu/SignAvatars / initialize_viewer

Function initialize_viewer

visualizer/tests/utils.py:30–41  ·  view source on GitHub ↗

Resets the viewer to the state expected when running a test.

(viewer)

Source from the content-addressed store, hash-verified

28
29
30def initialize_viewer(viewer):
31 """Resets the viewer to the state expected when running a test."""
32 # Reset scene and settings.
33 viewer.reset()
34
35 # Remove the floor and the origin objects.
36 viewer.scene.remove(viewer.scene.floor)
37 viewer.scene.remove(viewer.scene.origin)
38
39 # Disable automatic setting of the camera target and floor.
40 viewer.auto_set_camera_target = False
41 viewer.auto_set_floor = False
42
43
44def generate_images(viewer, count):

Callers 1

viewerFunction · 0.85

Calls 2

resetMethod · 0.80
removeMethod · 0.80

Tested by

no test coverage detected