MCPcopy Create free account
hub / github.com/BerkeleyAutomation/meshrender / __init__

Method __init__

meshrender/scene.py:16–33  ·  view source on GitHub ↗

Initialize a Scene object. Parameters ---------- background_color : (3,) float The background color for the scene. camera : :obj:`VirtualCamera` Camera to use for rendering

(self, background_color=np.array([1.0, 1.0, 1.0]),
                 camera=None)

Source from the content-addressed store, hash-verified

14 """
15
16 def __init__(self, background_color=np.array([1.0, 1.0, 1.0]),
17 camera=None):
18 """Initialize a Scene object.
19
20 Parameters
21 ----------
22 background_color : (3,) float
23 The background color for the scene.
24 camera : :obj:`VirtualCamera`
25 Camera to use for rendering
26 """
27 self._objects = {}
28 self._lights = {}
29 self._ambient_light = AmbientLight(np.array([0.,0.,0.]), 0.0)
30 self._background_color = background_color
31
32 self._renderer = None
33 self.camera = camera
34
35 @property
36 def background_color(self):

Callers

nothing calls this directly

Calls 1

AmbientLightClass · 0.85

Tested by

no test coverage detected