修改数据构建bug

This commit is contained in:
joylink_zhangsai 2023-08-23 17:28:37 +08:00
parent dd81eedecd
commit 6bd4013bfc
1 changed files with 3 additions and 3 deletions

View File

@ -362,10 +362,10 @@ func initGraphicStructure(graphicData *graphicData.RtssGraphicStorage, verifyStr
initGraphicLogicSections(graphicData.LogicSections, verifyStructure, graphicDataMap)
// 初始化信号机信息
initGraphicSignal(graphicData.Signals, verifyStructure, graphicDataMap)
// 初始化Link信息
initLinks(graphicData.CalculateLink, verifyStructure, graphicDataMap)
// 初始化坡度和曲线端点
initPoints(graphicData, verifyStructure, graphicDataMap)
// 初始化Link信息
initLinks(graphicData.CalculateLink, verifyStructure, graphicDataMap)
// 初始化坡度
initSlopes(graphicData.Slopes, verifyStructure, graphicDataMap)
// 初始化曲线
@ -477,7 +477,7 @@ func initLinks(links []*graphicData.CalculateLink, vs *VerifyStructure, dataMap
}
vs.LinkModelMap[link.Index] = linkModel
dataMap.CalcLinkMap[link.Index] = link
//构建DevicePositionDP切片(暂时仅计轴和道岔)
//构建DevicePositionDP切片
var dps []*ref.DevicePosition
for _, dp := range link.DevicePositions {
modeller := deviceIdMap[dp.DeviceId]