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, ninja, CMake ≥ 3.20

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

al3dtiles-0.1.20-cp311-cp311-win_amd64.whl (472.0 kB view details)

Uploaded CPython 3.11Windows x86-64

File details

Details for the file al3dtiles-0.1.20-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: al3dtiles-0.1.20-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 472.0 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.4

File hashes

Hashes for al3dtiles-0.1.20-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d784a2c2a14d44f76f0301d2ca8787e7548c0e1a81ae51f514d6b1742d1ce10e
MD5 2e119338d26f3a05e2fbc1817be1567f
BLAKE2b-256 c72dec1de19ce609d1f7418c0deae523f7bce255692208f77289f090bccdb6bd

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.23

1 file

0.1.22

1 file

0.1.21

8 files

This release

0.1.20 This release

1 file

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