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)

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.23-cp311-cp311-win_amd64.whl (482.9 kB view details)

Uploaded CPython 3.11Windows x86-64

File details

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

File metadata

  • Download URL: al3dtiles-0.1.23-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 482.9 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.23-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5309c50a981f43cd14d8223797ea6ad66749f9341e37db41400b3e4f6d3d1b8f
MD5 8a0718299aebfc6f111c2cba46822d92
BLAKE2b-256 1557e53579eea6f44d8bfa982eaeb6fc1544e0ec3c7a3c63bc115a47c1264d79

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.23 This release

1 file

0.1.22

1 file

0.1.21

8 files

0.1.20

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