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 Distributions

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

Uploaded CPython 3.11 Windows x86-64

ykdraco-1.0.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.24+ x86-64 manylinux: glibc 2.28+ x86-64

File details

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

File metadata

  • Download URL: ykdraco-1.0.0-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-1.0.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b51eafe6794b7bf796273255235612038bd94393421a94f9008d4bb3f73b5291
MD5 1fbbc2d2fd780bf1cf8078aa59d08b0f
BLAKE2b-256 b3a6fb89f2befac5899b59a76a1682a281b7e62dc97c6f8949bd20ec91fe9a2d

See more details on using hashes here.

File details

Details for the file ykdraco-1.0.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for ykdraco-1.0.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 433128fa95e9bf3cff51d940d1f33fbbefa508b423a6597b139247991d484b09
MD5 37f243c2b6aab2e6616f2abe28c1c738
BLAKE2b-256 2ed04042fbbef519946b30ae7beaa499459a84836516eb6f24f2259a335db96e

See more details on using hashes here.

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