cityImage.intervisibility#
- cityImage.intervisibility(line2d, buildingID, start, stop, buildings_gdf, buildings_sindex)[source]#
Check if a 3d line of sight between two points is obstructed by any buildings.
- Parameters:
line2d (Shapely LineString) – The 2D line of sight to check for obstruction.
buildingID (int) – The buildingID of the building that the line of sight points at.
start (tuple) – The starting point of the line of sight in the form of (x, y, z).
stop (tuple) – The ending point of the line of sight in the form of (x, y, z).
Returns –
---------- –
bool (True) – When the line of sight is not obstructed, False otherwise.