Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 1.53 KB

interior_region.md

File metadata and controls

30 lines (18 loc) · 1.53 KB

InteriorRegion

from scene_data.interior_region import InteriorRegion

An interior region has bounds data and cached data regarding continuous walls and walls with windows.


Fields

  • non_continuous_walls The summed values of the non-continuous walls. For example, if this is 3, then the north and east walls are non-continuous.

  • walls_with_windows The summed values of the walls that have windows. For example, if this is 3, then the north and east walls have windows.


Functions

__init__

InteriorRegion(region_id, center, bounds, non_continuous_walls, walls_with_windows)

Parameter Type Default Description
region_id int The ID of the region.
center Tuple[float, float, float] The center of the region.
bounds Tuple[float, float, float] The bounds of the region.
non_continuous_walls Union[int, List[CardinalDirection] Non-continuous walls. This can be a list of CardinalDirection values, or an integer representing a summed list of CardinalDirection values; for example, 3 is equivalent to CardinalDirection.north.value + CardinalDirection.east.value.
walls_with_windows Union[int, List[CardinalDirection] Walls that have windows. This can be a list of CardinalDirection values, or an integer representing a summed list of CardinalDirection values; for example, 3 is equivalent to CardinalDirection.north.value + CardinalDirection.east.value.