mirror of
https://github.com/enzet/map-machine.git
synced 2025-07-26 21:09:18 +02:00
Fix construction wall color.
This commit is contained in:
parent
7fbc7cb96f
commit
ed86aef731
2 changed files with 3 additions and 1 deletions
|
@ -17,7 +17,7 @@ from map_machine.osm.osm_reader import OSMNode
|
||||||
from map_machine.scheme import Scheme
|
from map_machine.scheme import Scheme
|
||||||
|
|
||||||
BUILDING_MINIMAL_HEIGHT: float = 8.0
|
BUILDING_MINIMAL_HEIGHT: float = 8.0
|
||||||
BUILDING_SCALE: float = 1.0
|
BUILDING_SCALE: float = 0.33
|
||||||
LEVEL_HEIGHT: float = 2.5
|
LEVEL_HEIGHT: float = 2.5
|
||||||
SHADE_SCALE: float = 0.4
|
SHADE_SCALE: float = 0.4
|
||||||
|
|
||||||
|
|
|
@ -126,6 +126,8 @@ class Segment:
|
||||||
|
|
||||||
difference: np.ndarray = point_2 - point_1
|
difference: np.ndarray = point_2 - point_1
|
||||||
vector: np.ndarray = difference / np.linalg.norm(difference)
|
vector: np.ndarray = difference / np.linalg.norm(difference)
|
||||||
|
if vector[0] > 0:
|
||||||
|
vector = -vector
|
||||||
self.angle: float = (
|
self.angle: float = (
|
||||||
np.arccos(np.dot(vector, np.array((0.0, 1.0)))) / np.pi
|
np.arccos(np.dot(vector, np.array((0.0, 1.0)))) / np.pi
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue