Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Towards lane support #154

Merged
merged 5 commits into from Jan 20, 2017
Merged

Towards lane support #154

merged 5 commits into from Jan 20, 2017

Conversation

basicNew
Copy link
Contributor

In this PR:

  • Added basic lane support while keeping old functionality. You can now add lates to a road at a given offset and later ask to the lane for its geometry. All the waypoint calculation is still done in the roads and all the exporters that rely on that still see roads as single lane. However, the street plot generator only uses the road / lane geometry, so new features are visualized when using the --debug flag. The final next step (in a future PR) will be to move all the intersection computation so it ca be lane-based.
  • Separated classes into their own files.
  • Changed simple example so the ringroad is a single, two-lane trunk.

Examples:

Simple city builder with two-lane trunk ringroad. Only the road geometry was defined and the two lanes were derived.
city_streets_simple

As an example, here is the same city with a 4-lane ringroad

city_streets

Finally, the PCG city:

city_streets_pcg

Copy link
Contributor

@garyservin garyservin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@garyservin garyservin merged commit a2fcaf5 into master Jan 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants