【放开坡度曲度注释】

This commit is contained in:
weizhihong 2023-09-06 10:26:26 +08:00
parent cb87f0f4af
commit 3cbaf3b3b9
1 changed files with 22 additions and 0 deletions

View File

@ -236,6 +236,28 @@ func buildLineBaseInfo(vs *memory.VerifyStructure) *dynamics.LineBaseInfo {
BRelTurnoutPoint: bPort, BRelTurnoutPoint: bPort,
}) })
} }
for _, slope := range vs.SlopeModelMap {
id, _ := strconv.Atoi(slope.Index)
slopes = append(slopes, &dynamics.Slope{
ID: int32(id),
StartLinkId: slope.StartLinkIndex,
StartLinkOffset: slope.StartLinkOffset,
EndLinkId: slope.EndLinkIndex,
EndLinkOffset: slope.EndLinkOffset,
DegreeTrig: slope.DegreeTrig,
})
}
for _, curve := range vs.CurveModelMap {
id, _ := strconv.Atoi(curve.Index)
curves = append(curves, &dynamics.Curve{
ID: int32(id),
StartLinkId: curve.StartLinkIndex,
StartLinkOffset: curve.StartLinkOffset,
EndLinkId: curve.EndLinkIndex,
EndLinkOffset: curve.EndLinkOffset,
Curvature: curve.Curvature,
})
}
return &dynamics.LineBaseInfo{ return &dynamics.LineBaseInfo{
LinkList: links, LinkList: links,
SlopeList: slopes, SlopeList: slopes,