对系统管理UI进行修改,更改体素路径测试参数

This commit is contained in:
tian 2025-10-14 17:19:17 +08:00
parent 3aaa176ce6
commit 5791e57192
2 changed files with 9 additions and 40 deletions

View File

@ -37,11 +37,6 @@ namespace NavisworksTransport.UI.WPF.ViewModels
private string _navisworksVersion = "2026";
private string _memoryUsage = "0 MB";
private string _runningTime = "00:00:00";
// 🔧 修复:添加定时器字段以便在清理时停止
// 性能监控相关字段 (已改为Idle事件管理)
private DateTime _lastPerformanceUpdate = DateTime.MinValue;
private DateTime _startTime;
// 🔧 修复:添加释放状态标志
private bool _disposed = false;
@ -195,9 +190,6 @@ namespace NavisworksTransport.UI.WPF.ViewModels
set => SetProperty(ref _navisworksVersion, value);
}
/// <summary>
/// 内存使用情况
/// </summary>
@ -892,7 +884,7 @@ namespace NavisworksTransport.UI.WPF.ViewModels
double halfVoxel = voxelSizeInModelUnits / 2.0;
// 起点模型中心、最高层Z=9
var startPoint = new Autodesk.Navisworks.Api.Point3D(-165.56 + halfVoxel, -44.27 + halfVoxel, 50.16 + halfVoxel);
var startPoint = new Autodesk.Navisworks.Api.Point3D(-200 + halfVoxel, -24.27 + halfVoxel, 42 + halfVoxel);
// 终点偏右下、低一层Z=8
var endPoint = new Autodesk.Navisworks.Api.Point3D(-116.35 + halfVoxel, 0 + halfVoxel, 45 + halfVoxel);

View File

@ -205,22 +205,18 @@ NavisworksTransport 系统管理页签视图 - 采用与其他页签一致的Nav
<StackPanel>
<Label Content="性能监控" Style="{StaticResource SectionHeaderStyle}"/>
<!-- 报告生成按钮 -->
<StackPanel Orientation="Horizontal">
<Button Content="生成性能报告"
Command="{Binding GeneratePerformanceReportCommand}"
Style="{StaticResource ActionButtonStyle}"/>
<!-- 环境检查按钮 -->
<StackPanel Orientation="Horizontal" Margin="0,5,0,5">
<Button Content="环境检查"
Style="{StaticResource SecondaryButtonStyle}"
Command="{Binding DiagnosticCommand}"
ToolTip="检查Navisworks API环境和线程状态"/>
ToolTip="检查运行环境和线程状态"/>
</StackPanel>
</StackPanel>
</Border>
<!-- 区域5: 功能测试 -->
<Border BorderBrush="#FFD4E7FF" BorderThickness="1" CornerRadius="0" Margin="0,0,0,0" Padding="12">
<Border BorderBrush="#FFD4E7FF" BorderThickness="1" CornerRadius="0" Margin="0,0,0,15" Padding="12">
<StackPanel>
<Label Content="功能测试" Style="{StaticResource SectionHeaderStyle}"/>
@ -230,34 +226,15 @@ NavisworksTransport 系统管理页签视图 - 采用与其他页签一致的Nav
Margin="0,5,0,10"
TextWrapping="Wrap"/>
<!-- 体素网格测试 - SDF 精确方法 -->
<StackPanel Margin="0,5,0,10">
<Label Content="体素网格 SDF 测试 (精确几何体)"
FontSize="11"
FontWeight="SemiBold"
Foreground="{StaticResource NavisworksTextBrush}"/>
<TextBlock Text="使用 geometry4Sharp 的 MeshSignedDistanceGrid 进行精确体素化,计算签名距离场提供准确的障碍物距离信息"
FontSize="10"
Foreground="{StaticResource NavisworksDarkBrush}"
Margin="0,2,0,8"
TextWrapping="Wrap"/>
<!-- 体素网格测试 -->
<StackPanel Orientation="Horizontal" Margin="0,5,0,5">
<!-- 测试体素网格按钮 -->
<Button Content="测试体素网格 (SDF方法)"
Command="{Binding TestVoxelGridSDFCommand}"
Style="{StaticResource ActionButtonStyle}"
ToolTip="使用 MeshSignedDistanceGrid 进行精确体素化,计算距离场"/>
</StackPanel>
<!-- 体素路径规划测试 - 3D A* -->
<StackPanel Margin="0,5,0,10">
<Label Content="体素路径规划测试 (3D A*)"
FontSize="11"
FontWeight="SemiBold"
Foreground="{StaticResource NavisworksTextBrush}"/>
<TextBlock Text="基于SDF体素网格的真3D路径规划使用A*算法在三维空间中寻找最优路径,支持多层垂直移动和障碍物避让"
FontSize="10"
Foreground="{StaticResource NavisworksDarkBrush}"
Margin="0,2,0,8"
TextWrapping="Wrap"/>
<!-- 测试体素路径规划按钮 -->
<Button Content="测试体素路径规划 (3D A*)"
Command="{Binding TestVoxelPathFindingCommand}"
Style="{StaticResource ActionButtonStyle}"