Skip to main content

al3dtiles

High-performance 3D Tiles v1.0/v1.1 reader, parser and converter (Cython + C++).

Features (v0.1)

  • Zero-copy GLB/B3DM container parsing (C++ mmap)
  • One-line GLB chunk0 JSON extraction
  • Meshopt + KTX2 decompression to Blender-readable GLB (via almeshopt + alktx2)
  • 3D Tiles tileset traversal (v1.0/v1.1, 3DTILES_content_gltf)
  • C++ multi-threaded tileset JSON prefetch (std::thread pool + simdjson) with thin Python wrappers
  • Multi-threaded batch helpers

Quick start

import al3dtiles as t

t.extract_glb_json("content/1.glb", "out/1.json")
t.decompress_glb("content/1.glb", "out/1_blender.glb")
import al3dtiles as t

ds = t.TilesetDataset.open(r"Z:\...\tileset.json")

# 惰性解析:构造时不扫树,首次访问时才加载(C++ 线程池并行预取 JSON)
root = ds.tree(show_progress=True)          # 需要 transform / 树结构时
items = ds.contents()     # 扁平 content 列表(同一 C++ 并行引擎)

# 导出(默认:套用级联 transform,ECEF 真实位置,接近 Cesium)
ds.export_common_glb("4293.glb", r"E:\out\4293_world.glb")

# keep_enu=True:仅 decompress,保持 tile 局部坐标(原逻辑)
ds.export_common_glb("4293.glb", r"E:\out\4293_local.glb", keep_enu=True)
import al3dtiles as t

# 质检单体元数据(QC3DMETA v1):遍历叶子节点 → 每单体 bbox + footprint + 网格桶
# 输出与 tileset.json 同级的 tileset.quality-meta.bin.zst(zstd level 3)
result = t.create_alcheck_metadata(r"D:\Data\...\tileset.json")
print(result.feature_count, result.elapsed_ms)

Build (Windows + Python 3.11)

# Vendor simdjson + meshoptimizer (first time only)
powershell -ExecutionPolicy Bypass -File scripts/vendor_simdjson.ps1
powershell -ExecutionPolicy Bypass -File scripts/vendor_meshoptimizer.ps1

chcp 65001
uv sync --extra dev
uv build --wheel --out-dir dist

Build options (pyproject.toml)

[tool.scikit-build.cmake.define]
USE_AVX2 = "ON"    # default
USE_AVX512 = "OFF" # reserved

Test

uv run pytest tests/ -v

Set AL3DTILES_TEST_DATA to override the default test tileset path.

Dependencies

  • Runtime: alktx2, almeshopt, numpy, orjson, zstandard
  • Build: scikit-build-core, Cython, CMake ≥ 3.20, Visual Studio 2022+ (Windows) or cmake + ninja (Linux manylinux via cibuildwheel)

Metadata

Release files for al3dtiles 0.1.23

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for al3dtiles 0.1.23
File Interpreter ABI Platform Actions
al3dtiles-0.1.23-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for al3dtiles-0.1.23-cp311-cp311-win_amd64.whl

Release files / al3dtiles-0.1.23-cp311-cp311-win_amd64.whl

Download URL al3dtiles-0.1.23-cp311-cp311-win_amd64.whl
Size 482.9 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
5309c50a981f43cd14d8223797ea6ad66749f9341e37db41400b3e4f6d3d1b8f
BLAKE2b-256 checksum
How to use checksums
1557e53579eea6f44d8bfa982eaeb6fc1544e0ec3c7a3c63bc115a47c1264d79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for al3dtiles 0.1.23

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page