fix: 贴合地面 Free 路径补上路径方向 yaw 对齐

ApplyAlignToGround 的路径 yaw 搜索条件只含 Ground/Hoisting,
Free 被排除导致贴合地面后物体面朝下但未对齐路径方向。
加入 Free,贴合地面后同样搜索最小截面对齐路径。
257 单测全过
This commit is contained in:
tian 2026-08-01 13:09:45 +08:00
parent 53ae232ebc
commit a4b7b679f0

View File

@ -2391,7 +2391,9 @@ namespace NavisworksTransport.UI.WPF.ViewModels
double searchedWidthAcrossPath = 0.0;
double searchedHeightAlongUp = 0.0;
bool hasSearchedExtents = false;
if ((CurrentPathRoute?.PathType == PathType.Ground || CurrentPathRoute?.PathType == PathType.Hoisting)
if ((CurrentPathRoute?.PathType == PathType.Ground ||
CurrentPathRoute?.PathType == PathType.Hoisting ||
CurrentPathRoute?.PathType == PathType.Free)
&& routePoints != null && routePoints.Count >= 2)
{
var start = routePoints[0];