Fix construction wall color.

This commit is contained in:
Sergey Vartanov 2022-01-24 00:55:23 +03:00
parent 7fbc7cb96f
commit ed86aef731
2 changed files with 3 additions and 1 deletions

View file

@ -17,7 +17,7 @@ from map_machine.osm.osm_reader import OSMNode
from map_machine.scheme import Scheme
BUILDING_MINIMAL_HEIGHT: float = 8.0
BUILDING_SCALE: float = 1.0
BUILDING_SCALE: float = 0.33
LEVEL_HEIGHT: float = 2.5
SHADE_SCALE: float = 0.4

View file

@ -126,6 +126,8 @@ class Segment:
difference: np.ndarray = point_2 - point_1
vector: np.ndarray = difference / np.linalg.norm(difference)
if vector[0] > 0:
vector = -vector
self.angle: float = (
np.arccos(np.dot(vector, np.array((0.0, 1.0)))) / np.pi
)