fix: 贴合地面 yaw 搜索移除路径类型 gate
贴合地面后绕宿主Up搜索最小截面对齐路径方向,与路径类型无关。 移除 Ground/Hoisting/Free 条件,只要路径有方向(≥2点)就执行。 257 单测全过
This commit is contained in:
parent
a4b7b679f0
commit
775c7b6fad
@ -2391,10 +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 ||
|
||||
CurrentPathRoute?.PathType == PathType.Free)
|
||||
&& routePoints != null && routePoints.Count >= 2)
|
||||
// 贴合地面后绕宿主 Up 搜索 yaw 对齐路径方向:与路径类型无关,
|
||||
// 只要路径有方向(≥2 个点)就执行(纯垂直路径无水平方向时搜索自然跳过)
|
||||
if (routePoints != null && routePoints.Count >= 2)
|
||||
{
|
||||
var start = routePoints[0];
|
||||
var startVector = new Vector3((float)start.X, (float)start.Y, (float)start.Z);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user