Commit Graph

638 Commits

Author SHA1 Message Date
bbb58c9634 调整物体窗口: 提升高度→上下偏移, 允许负值, 窗口加宽, 清理提示文字
- 字段名: 提升高度 → 上下偏移 (UI标签/日志/注释/状态栏)
- 移除负值校验,允许向下偏移 (EditRotationWindow.xaml.cs)
- 修复两处 <=0 拦截 (ApplyGroundPathObjectLiftOffset, ResolveGroundPathObjectLiftOffsetVector)
- 窗口宽度 400→440, 调低标题栏/去除副标题/去除提示文字行
2026-05-27 14:38:27 +08:00
3e43b20102 自动调整: 回调内扣除路径 yaw,使 correction 成为绝对角度
优化器通过 OptimizeWithEvaluator 传回调函数,回调接收 correction 后
经真实动画链路评估。动画链路 targetYaw = pathYaw + correctionY,
导致 correction.Y 被错误地当成额外增量而非绝对角度。

修复: 回调内从 correction 的 up 轴角度扣除路径 yaw,
使 targetYaw = pathYaw + (correctionY - pathYaw) = correctionY。
优化器现在正确地将 correction 作为从 CAD 出发的总 yaw 角度搜索。
2026-05-27 13:10:15 +08:00
7187bcf622 自动最优朝向: 黑盒实测模式
- 新增 ObjectPassageProjectionOptimizer(SO(3)粗搜索+Nelder-Mead)
- EditRotationWindow 加入"自动调整"按钮
- AnimationControlViewModel 实现黑盒实测评估(临时摆位→读BoundingBox→恢复)
- 设计文档和实现计划
2026-05-27 12:24:01 +08:00
19a38e5446 0.15.1: 修复角度输入崩溃、Y轴修正动画丢失、数据库连接缺失三个bug
- 修复编辑角度窗口空输入反复确认崩溃 (UpdateSourceTrigger LostFocus→Explicit)
- 修复Y轴角度修正在动画播放时双重叠加导致丢失 (删除 ApplyPlanarTrackedPose 中重复的 ResolvePlanarHostUpCorrectionRadians)
- 修复先开文档后加载插件时路径数据库未连接 (InitializePathPlanningManager 中加入数据库连接)
- 重构: TryConnectPathDatabase 辅助方法; TryUpdateNumberTextBox 拆分验证逻辑
- 更新 AGENTS.md 精简版; 更新 CHANGELOG.md 0.15.1; 更新 todo_features.md 5/18 条目
2026-05-26 21:02:48 +08:00
be06878346 剖面盒导出添加 debug 日志:遍历耗时/对象数/隐藏数/导出耗时/文件大小
- ValidateAndTraverse: Models数量、遍历耗时、盒内对象数、隐藏节点数
- ExportTraversalToNwd: 导出开始参数、导出耗时、文件大小
2026-05-18 19:45:10 +08:00
595f5225b5 拆分导出为两步:遍历(后台线程)+导出(UI线程)
- SectionBoxExporter 新增 ValidateAndTraverse / ExportTraversalToNwd
- ViewModel 拆为两个 await 间有喘息,避免第二次导出时 UI 线程拥塞
2026-05-18 19:37:58 +08:00
b34d17f2d1 恢复 Task.Run 包装 ExportSectionBoxFromActiveView,修复大模型导出性能回归
- 树遍历(GetObjectsAndHiddenItems)在后台线程执行,恢复 4月15日版本的性能
- 导出阶段 NwdExportHelper 内部 Dispatcher.Invoke 回 UI 线程
2026-05-18 19:26:52 +08:00
36a5944548 删除JSON导出功能;去掉ExportSelectedItemsAsync中残留的Task.Run
- SectionBoxExporter: 删除 ExportToJson/BuildExportData/GetFullPathName
- LayerManagementViewModel: 保存对话框去掉JSON格式选项,去掉JSON/NWD分支的Task.Run
2026-05-16 15:36:23 +08:00
1e8916b828 补充剖面盒恢复修复报告 2026-05-16 15:22:17 +08:00
e5f710407c 导出后自动恢复剖面盒(Navisworks ExportToNwd 内部关闭剖分)
- SectionClipHelper 新增 RestoreClipBox 公开方法
- VisibilityHelper.ExecuteWithPrecomputedHiddenItems 导出前保存剖面盒状态,导出后恢复
2026-05-16 15:21:37 +08:00
47af2443cd 数据库schema兼容+剖面盒导出修复+代码重构
- 数据库:SafeCreateIndex/EnsureColumnExists 防御旧schema;去掉无用PRAGMA user_version;去掉重复throw;清理注释编号
- 剖面盒导出:修复NWF多Model无统一根节点时空白子树泄露(RootItem级隐藏)
- 崩溃修复:去掉LayerManagementViewModel中两处Task.Run,消除COM跨线程STA违规
- 重构:SectionBoxExporter新增ExportSectionBoxFromActiveView统一业务入口;LayerManagementViewModel删ExportSectionBoxToNwdAsync;删死代码ExportToJson(Document)/ShowSaveFileDialog
- deploy-plugin.bat: powershell→pwsh;AGENTS.md补充编译部署调用说明
2026-05-16 14:59:56 +08:00
928edb8328 Merge codex/rail-mount-modes into stable 2026-05-13 09:45:31 +08:00
413c0ea869 Add project-tools skill frontmatter metadata 2026-05-13 09:44:49 +08:00
0a318f4dca Update completed todo items 2026-04-26 19:13:40 +08:00
454f1e6584 Fix auto path grid restore and validation 2026-04-26 19:11:03 +08:00
28d0708858 Lock selection clip box after activation 2026-04-15 16:02:12 +08:00
1a9d0972f0 Fix auto path obstacle geometry collection 2026-04-14 09:22:01 +08:00
fdb857af17 Refactor auto path planning coordinate semantics 2026-04-13 10:31:14 +08:00
6f037a4571 Reduce pose diagnostics log noise 2026-04-13 02:51:24 +08:00
b849bd9aed Add Navisworks automation integration tests 2026-04-13 02:33:29 +08:00
61e6b79299 Remove legacy yaw recovery fallbacks 2026-04-12 15:29:08 +08:00
315fa46043 Unify planar collision pose replay 2026-04-12 15:01:33 +08:00
970d3465f4 Add a custom ribbon tab for logistics tools 2026-04-11 23:17:21 +08:00
7e1931fd37 Delay database creation until plugin data is needed 2026-04-11 22:29:40 +08:00
bbd72345c9 Add selection-based clip box controls 2026-04-11 22:10:21 +08:00
18b530ef5f Unify WPF numeric textbox editing behavior 2026-04-11 09:04:03 +08:00
a252dad46a remove pose fallbacks and fix script compatibility 2026-04-10 22:23:46 +08:00
5a03c3aa6c preserve planar collision pose rotations 2026-04-10 22:02:43 +08:00
1a9c9ecd21 fix collision report save timing 2026-04-10 00:16:55 +08:00
da5f8a1ae1 add ground object lift adjustment 2026-04-09 23:53:40 +08:00
6020bfa979 fix hoisting descend point reuse 2026-04-09 23:28:12 +08:00
144ee4e6b2 refine hoisting path fixes 2026-04-09 23:09:56 +08:00
4fbab52880 clean legacy planar pose branches 2026-04-09 23:08:59 +08:00
3892ddabab Stabilize ground incremental rotation and extent tests 2026-04-09 21:09:43 +08:00
405f721811 Ground real-object incremental path updates 2026-04-08 23:06:42 +08:00
042f30bf87 地面路径重构失败,留下一些教训 2026-04-06 22:39:02 +08:00
8a7563a4fe Clarify ground tracked-point semantics 2026-04-06 08:55:53 +08:00
348b3a75bf 修复地面倾斜路径偏移的问题 2026-04-05 14:03:41 +08:00
fb9dac9953 恢复地面路径为3月25号版本 2026-04-05 01:36:24 +08:00
e21e934705 Add rail preferred normal repair script 2026-04-04 10:58:29 +08:00
7058e5fd23 Add hoisting layer height editing 2026-04-02 22:37:16 +08:00
9be5d250e8 Restore tool focus by picking context 2026-04-02 22:35:58 +08:00
4ec4cf77ee Refine path viewpoint behavior and config editing 2026-04-02 22:14:26 +08:00
24951d4205 Stabilize hoisting start-pose logging and caching 2026-04-02 01:32:31 +08:00
9e8fea3241 Unify real-object override rotation application 2026-04-02 00:19:36 +08:00
7ff510daf0 Use actual hoisting pose without fragment fallback 2026-04-02 00:15:58 +08:00
953306fdb1 Stabilize hoisting pose flow and bounds inspection 2026-04-01 23:53:11 +08:00
e71ea81cdf Fix rail assembly normals and tighten rail camera 2026-04-01 20:12:57 +08:00
2e0b26e032 Refine rail assembly workflow and viewpoint strategies 2026-04-01 10:47:34 +08:00
c3b103c159 Add explicit exit for rail assembly workflow 2026-03-31 23:38:47 +08:00