2020-06-16 15:34:35 -04:00
|
|
|
"""
|
|
|
|
CityObject module
|
|
|
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
|
|
|
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
|
|
|
|
"""
|
2020-06-16 10:34:17 -04:00
|
|
|
from helpers.geometry_helper import GeometryHelper
|
2020-06-09 15:14:47 -04:00
|
|
|
|
2020-05-18 13:25:08 -04:00
|
|
|
|
|
|
|
class CityObject:
|
2020-06-16 15:34:35 -04:00
|
|
|
"""
|
|
|
|
class CityObject
|
|
|
|
"""
|
2020-06-16 15:12:18 -04:00
|
|
|
def __init__(self, lod):
|
2020-05-18 13:25:08 -04:00
|
|
|
self._lod = lod
|
|
|
|
self._polyhedron = None
|
2020-06-11 16:22:58 -04:00
|
|
|
self._geometry = GeometryHelper()
|
2020-06-16 15:34:35 -04:00
|
|
|
|
|
|
|
@property
|
|
|
|
def lod(self):
|
|
|
|
"""
|
|
|
|
City object level of detail 1, 2, 3 or 4
|
|
|
|
:return: int
|
|
|
|
"""
|
|
|
|
return self._lod
|