SceneBounds
May 13, 2022 ยท View on GitHub
from scene_data.scene_bounds import SceneBounds
Data for the scene bounds and its regions. In an interior scene, regions are equivalent to rooms.
In order to initialize this object, the controller must have sent send_scene_regions to the build on the previous frame:
from tdw.controller import Controller
from tdw.tdw_utils import TDWUtils
from tdw.scene_data.scene_bounds import SceneBounds
c = Controller()
resp = c.communicate([TDWUtils.create_empty_room(12, 12),
{"$type": "send_scene_regions"}])
scene_bounds = SceneBounds(resp=resp)
Fields
-
x_minMinimum x positional coordinate of the scene. -
x_maxMaximum x positional coordinate of the scene. -
y_minMinimum y positional coordinate of the scene. -
y_maxMaximum y positional coordinate of the scene. -
z_minMinimum z positional coordinate of the scene. -
z_maxMaximum z positional coordinate of the scene. -
regionsAll of the regions in the scene.
Functions
__init__
SceneBounds(resp)
| Parameter | Type | Default | Description |
|---|---|---|---|
| resp | List[bytes] | The response from the build. |