Peter-Knoppers / OTSim

Open Traffic Simulator
2 stars 2 forks source link

Some autogenerated Links have bad intermediateVertices #1

Closed Peter-Knoppers closed 11 years ago

Peter-Knoppers commented 11 years ago

The TestData\three_arm.otsn was created to demonstrate this problem. badly_rendered_autogenerated_link

Analysis of the problem:

The problematic Link is Link "_6665_6667_1". It contains the Lane labeled 11 (the number is partly obscured by the label of Lane 9). This link connects Node 6665 to Node 6667. The design line of this Link consists of the intermediateVertices of the Link with the fromNode prepended and the toNode appended. This design line contains two very sharp corners. This causes the generated the design line to be bogus as well. This results in a really weird polyline when the CrossSectionElement is painted.

Some autogenerated Links need intermediateVertices to create nice curves. Simply making the intermediateVertices empty is not the solution.