Skip to content

Latest commit

 

History

History
49 lines (29 loc) · 1.17 KB

scene_bounds.md

File metadata and controls

49 lines (29 loc) · 1.17 KB

SceneBounds

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_min Minimum x positional coordinate of the scene.

  • x_max Maximum x positional coordinate of the scene.

  • y_min Minimum y positional coordinate of the scene.

  • y_max Maximum y positional coordinate of the scene.

  • z_min Minimum z positional coordinate of the scene.

  • z_max Maximum z positional coordinate of the scene.

  • regions All of the regions in the scene.


Functions

__init__

SceneBounds(resp)

Parameter Type Default Description
resp List[bytes] The response from the build.