fhwedel-hoe / OpenRoadEd

OpenRoadEd is a simple application designed to create both logical (OpenDRIVE standard) and geometrical (OpenSceneGraph) descriptions of road networks.
Other
154 stars 64 forks source link

It seems something wrong with GeometrySpiral::ComputeVars when both curvEnd and curvStart are negative and curvEnd greater than curvStart #14

Open zqian4321 opened 3 years ago

zqian4321 commented 3 years ago

In this case, with given s, GetGeometryCoords(s, x, y, hdg) would get wrong (x, y, hdg).

fhwedel-hoe commented 3 years ago

Thank you for the report. Can you provide a sample including expected and actual values? Maybe a file which makes the issue obvious?

zqian4321 commented 3 years ago

There is a sample. geometry hdg="2.734621064075011" length="7.532431203846809" s="6.018873210374361" x="161.18988482560962" y="43.5498200468719", spiral curvEnd="0.017152606609492665" curvStart="0.16627793039047342". Something seems wrong with uploading.