Skip to main content

Decode I3S geometry with draco compressed

Project description

YKDraco

import YKDraco

file = "1.bin"

# read I3S geometry file with draco compressed
with open(file, "rb") as f:
    content = f.read()

# parse draco content
draco = YKDraco.decode(content)
# points, numpy array, format as (x, y, z)
print(f"The count of vertex: {len(draco.points)}")
# normal, numpy array, format as (x, y, z)
print(f"The count of normal: {len(draco.normals)}")
# colors, numpy array, format as (r, g, b, a)
print(f"The count of colors: {len(draco.colors)}")
# uv, numpy array, format as (u, v)
print(f"The count of uv0: {len(draco.tex_coord)}")

I3S draco geometry file decoder

Installation

Binary wheels are available for users with Python >= 3.6 and pip >= 20.

Installation from source requires Python >= 3.6, pip >= 10, and a C++ compiler that is fully compatible with C++11.

It supports Linux, OS X, and Windows. Numpy is required.

pip install YKDraco

Project details


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.

ykdraco-0.0.5-cp311-cp311-win_amd64.whl (4.8 MB view details)

Uploaded CPython 3.11Windows x86-64

File details

Details for the file ykdraco-0.0.5-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: ykdraco-0.0.5-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 4.8 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for ykdraco-0.0.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e7475bd9c8f543f616996d5d2816e7fb196d0367462dc4c2a92f45048b8aa86d
MD5 d93207df51962576a539e6ec7e0d25a0
BLAKE2b-256 a3d189de3124c96abd73f320d87eaf581f0ceec263c7d09e8eafb5cd432790cb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page