修正了空轨路径的垂直偏移逻辑,以确保通行空间顶面对齐轨道

This commit is contained in:
tian 2026-01-29 14:35:52 +08:00
parent 3a79f0e50e
commit 0ee85bba40

View File

@ -1402,6 +1402,11 @@ namespace NavisworksTransport
// 地面路径:路径点是地面位置,通行空间底面在地面,中心需要向下偏移半个高度
verticalOffset = -heightInModelUnits / 2.0;
}
else if (visualization.PathRoute.PathType == NavisworksTransport.PathType.Rail)
{
// 空轨路径:路径点是轨道中心线位置,通行空间顶面对齐轨道,中心需要向上偏移半个高度
verticalOffset = heightInModelUnits / 2.0;
}
else if (visualization.PathRoute.PathType == NavisworksTransport.PathType.Hoisting)
{
if (isVerticalSegment)