- 创建 SpatialHashGrid.cs: 基于 Vector3i 的3D空间哈希表 - 支持对象插入、范围查询、格子查询 - O(1) 平均查询复杂度 - 带精确距离检查的范围查询 - 创建 SpatialIndexManager.cs: 全局空间索引管理器 - 单例模式,所有动画共享 - 构建全局索引(索引所有几何对象) - FindNearbyObjects: 高效范围查询 - 对象位置缓存(避免重复计算包围盒) 技术细节: - 使用 geometry4Sharp (g4) 的 Vector3d, Vector3i - 基于 Dictionary<Vector3i, List<ModelItem>> 实现 - 格子大小可配置(建议设为车辆半径 × 2) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| Commands | ||
| Core | ||
| PathPlanning | ||
| Resources | ||
| UI/WPF | ||
| Utils | ||