Metadata-Version: 2.2
Name: alosg
Version: 0.2.1
Summary: OpeneSceneGraph wrapper with cython
Requires-Python: >=3.11
Requires-Dist: numpy>=2.0.0
Description-Content-Type: text/markdown

需要 CMake 版本满足 **3.21 ≤ cmake < 3.25**（OpenSceneGraph 3.6.x 在 cmake ≥ 3.25
下构建失败，实测踩坑）。`pyproject.toml` 的 build-system 已固定 `cmake==3.24.3`
（构建隔离环境自动安装，无需改动机器上的系统 cmake）。

构建脚本
```bash
chcp 65001 && uv build --wheel --out-dir dist
```

cython 测试
```bash
python -m cython --cplus -3 --fast-fail -I "src/alosg" -o "test_manual.cxx" "src/alosg/alosg.pyx"
```


创建入口代理节点
```python
import alosg

# # 仅分析，返回根瓦片绝对路径列表
# roots = alosg.find_osgb_roots(r"D:\数据\倾斜模型")

# 全量扫描（原行为）
roots = alosg.find_osgb_roots(r"D:\模型")

# Bentley / iTwin 类数据
roots = alosg.find_osgb_roots(r"D:\模型", mode="bentley", sub_path="Data")

# 大疆智图
roots = alosg.find_osgb_roots(r"D:\模型", mode="dji")

# 生成入口
ok, roots = alosg.create_preview_entry(
    r"D:\模型",
    r"D:\模型\preview_entry.osgb",
    mode="dji",
)
```