fix: 修复 Vector3d.Distance 调用并将 Spatial 文件添加到项目
- 修复 Distance 方法调用(使用实例方法而非静态方法) - 将 SpatialHashGrid.cs 和 SpatialIndexManager.cs 添加到 csproj - 在 PathAnimationManager.cs 中添加命名空间引用
This commit is contained in:
parent
8cec18a141
commit
360d55ffa8
@ -170,6 +170,10 @@
|
||||
|
||||
<!-- Core - Collision Detection -->
|
||||
<Compile Include="src\Core\Collision\ClashDetectiveIntegration.cs" />
|
||||
|
||||
<!-- Core - Spatial Indexing -->
|
||||
<Compile Include="src\Core\Spatial\SpatialHashGrid.cs" />
|
||||
<Compile Include="src\Core\Spatial\SpatialIndexManager.cs" />
|
||||
|
||||
<!-- Core - Properties Management -->
|
||||
<Compile Include="src\Core\Properties\AttributeGrouper.cs" />
|
||||
|
||||
@ -6,6 +6,7 @@ using System.Windows.Forms;
|
||||
using System.Windows.Threading;
|
||||
using Autodesk.Navisworks.Api;
|
||||
using Autodesk.Navisworks.Api.Clash;
|
||||
using NavisworksTransport.Core.Spatial;
|
||||
using NavisworksTransport.Utils;
|
||||
using NavisApplication = Autodesk.Navisworks.Api.Application;
|
||||
|
||||
|
||||
@ -183,7 +183,7 @@ namespace NavisworksTransport.Core.Spatial
|
||||
return FindInRadius(center, radius, obj =>
|
||||
{
|
||||
var objPos = getPositionFunc(obj);
|
||||
return Vector3d.Distance(center, objPos);
|
||||
return center.Distance(objPos);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user