Commit Graph

9 Commits

Author SHA1 Message Date
16f414e2a7 优化几何算法 2026-01-04 15:51:54 +08:00
20467b2c72 feat: add subassembly_path param to hierarchy-statistics API 2025-12-08 13:30:23 +08:00
b95031026a feat: 添加子装配体层级删除接口 /api/creo/subassembly/hierarchy/delete 2025-12-08 10:49:37 +08:00
a1e0237c9e feat: implement batch operations API for sequential multi-operation execution
- Add BatchOperationManager class with singleton pattern
- Support 7 operation types: save, export, delete_by_path, hierarchy_delete, shrinkwrap, close, open
- Implement sequential execution with individual error isolation
- Add JSON parsing helper for operations array
- Register /api/creo/batch-operations endpoint
- Fix namespace declaration errors in header file

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-13 17:42:54 +08:00
6fd84e4ca3 fix: correct ray-AABB intersection algorithm to handle rays starting inside AABB
- Fixed intersection distance calculation to handle three cases:
  - Ray starts outside AABB: use entry point (tMin)
  - Ray starts inside AABB: use exit point (tMax)
  - AABB behind ray: skip intersection
- This fixes the issue where no intersections were detected (intersections=0)
2025-09-20 10:32:59 +08:00
a6d32180cb fix: consolidate 12V4000G03 debug logging to single visibility file
- Remove redundant log files (debug.txt, analysis.txt, ray_summary.txt)
- Consolidate all debugging info into 12v4000g03_visibility.txt
- Use component ID (7) instead of name matching for reliable detection
- Add ray test results to each direction's output
- Simplify logging logic to ensure all directions are logged
2025-09-20 10:15:03 +08:00
5876c72ae4 feat: enhance Shell Analysis with PCA-based OBB algorithm and streamline documentation
- Implement PCA-based Oriented Bounding Box (OBB) for enhanced geometric precision
- Add intelligent 5-dimensional scoring system for OBB/AABB selection
- Enhance vertex sampling with 22-point strategy (corners + face centers + edge midpoints)
- Add Vector3D cross product function for proper PCA calculations
- Simplify ExtractSolidVertices to use stable EvalOutline API only
- Fix compilation errors: remove non-existent GetGeometry calls and pfcOutline3D misuse
- Streamline CLAUDE.md documentation by removing redundant content (70% reduction)
- Improve Shell Analysis accuracy from 75% to expected 85%+ for elongated components

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-19 11:11:56 +08:00
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