ekumenlabs / terminus

Library to create cities and terrains
Apache License 2.0
56 stars 29 forks source link

Extend geometry support #221

Closed basicNew closed 7 years ago

basicNew commented 7 years ago

This PR includes a major refactoring to support road / lane geometry as a first class citizen and deriving waypoints from that geometry. This PR also includes a mechanism to generate connection between lanes that adhere to some assertion; in particular, if the connection is done by an arc, that arc should have a radius greater than 4, which is achieved by moving the exit and entry waypoint location along the lanes to reach the desired length. By doing this we can now e.g. generate the connection between the diagonals and corners in the simple city example:

sharparc

simplecity

Below are shown the RNDF waypoints (exaggerated, so the connections can be understood):

city_old