Skip to content

Commit e69412e

Browse files
EMS90EMS90
EMS90
authored and
EMS90
committed
Bugfix to prevent heading errors on closing element
Set Heading tolerance to one arcsecond
1 parent 5e868d3 commit e69412e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

TRA.Lib/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"StationMismatchTolerance": 1E-06,
33
"ConnectivityMismatchTolerance": 1E-04,
4-
"ContinuityOfHeadingTolerance": 2.7E-4,
4+
"ContinuityOfHeadingTolerance": 4.85E-6,
55
"ContinuityOfCurvatureTolerance": 1E-08
66
}

TRA.Tool/TransformPanelBase.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ private void TrassenTransform(TRATrasse trasse, TransformSetup transformSetup)
123123
{
124124
}
125125
}
126+
//Set Heading to End element as this is only an empty Geometry and we started to iterate reverse heading could not be calculated. Set heading from the second last element
127+
double heading = 0;
128+
(_,_,heading) = trasse.Elemente[^2].GetPointAtS(trasse.Elemente[^2].L, true);
129+
trasse.Elemente.Last().T = heading;
126130
//Try Removing unnecessary KSprung-Elements.This can happen if previous scale was saved to TRA using KSprung, and inverted Transform was applied. Else Update
127131
foreach (TrassenElementExt element in trasse.Elemente)
128132
{

0 commit comments

Comments
 (0)