diff --git a/src/Core/PathPointRenderPlugin.cs b/src/Core/PathPointRenderPlugin.cs index f87aa89..4076174 100644 --- a/src/Core/PathPointRenderPlugin.cs +++ b/src/Core/PathPointRenderPlugin.cs @@ -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)