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

ykdraco-0.0.7-cp311-cp311-win_amd64.whl (4.8 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

Supported by

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