Commit Graph

2 Commits

Author SHA1 Message Date
0bf81ee8d4 fix: improve shell analysis accuracy with depth window and voting mechanism
- Add depth window approach instead of single extreme value selection
- Implement voting mechanism: components need visibility in 8%+ directions
- Multi-level confidence based on visibility ratio (25%/8% thresholds)
- Calculate adaptive depth window: max(0.2% diagonal, 15% median thickness)
- Add top-K fallback to ensure minimum visible components
- Fix compilation errors: add unordered_map header, fix C++17 syntax

This reduces over-aggressive deletion from 90% to more reasonable levels by
properly identifying partially visible components in second/third layers.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-18 20:16:34 +08:00
623bfe6728 修复文件统计错误并优化薄壳化分析
主要修复:
- 修复CalculateAssemblyTotalSize中文件计数逻辑
- 解决"from X files"数量不正确的问题
- 无条件计数所有有效组件,不管文件大小是否为0

薄壳化分析优化:
- 使用命名常量替代硬编码置信度值
- 实现真实几何计算和缓存机制
- 添加大模型采样优化策略
- 改进体积影响计算算法

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-03 14:52:05 +08:00