InteriorRegion

March 1, 2022 ยท View on GitHub

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)

ParameterTypeDefaultDescription
region_idintThe ID of the region.
centerTuple[float, float, float]The center of the region.
boundsTuple[float, float, float]The bounds of the region.
non_continuous_wallsUnion[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_windowsUnion[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.