Skip to main content

SolidSKeleton tessellation and format tools

Project description

SolidSKeleton Python

Python 3.10+.

pip install ssk

Commands

ssk validate model.ssk
ssk convert model.ssk model.sskb
ssk convert model.ssk model.glb
ssk convert model.ssk model.glb --resolution 64
ssk convert model.sskb model.glb
ssk convert model.glb model.ssk
ssk convert model.glb model.sskb --expected-piece-count 42
ssk inspect model.sskb

From this directory without installing:

python -m ssk validate model.ssk

Library

from ssklib import convert, inspect_file, load, validate_file

convert("model.ssk", "model.glb", resolution=64)
result = convert("model.glb", "model.ssk", expected_piece_count=42)
print(result.coverage_percent, result.overfill_percent)

Lower-level functions:

from ssklib import parse_ssk, parse_sskb, resolve, validate, write_sskb

Notes

  • Mesh output defaults to resolution 32.
  • GLTF/GLB import reconstructs (estimated) SSK-native primitives where practical and reports sampled volume coverage and overfill percentages. expected_piece_count / --expected-piece-count is a soft guide, not an exact target. Expect different results from the Typescript package considering numpy and javascript math differences.
  • CSG uses trimesh with Manifold.
  • glTF output uses unindexed meshes with flat per-face normals.

Project details


Download files

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

Source Distribution

ssk-1.1.0.tar.gz (33.9 kB view details)

Uploaded Source

Built Distribution

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

ssk-1.1.0-py3-none-any.whl (32.6 kB view details)

Uploaded Python 3

File details

Details for the file ssk-1.1.0.tar.gz.

File metadata

  • Download URL: ssk-1.1.0.tar.gz
  • Upload date:
  • Size: 33.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ssk-1.1.0.tar.gz
Algorithm Hash digest
SHA256 0962bc9c3746fb29c680cc38ca8a49cf52a18c68d60cc0801fb6e423c987c4e5
MD5 818975922a87accba4452e1bcb33c7e5
BLAKE2b-256 880fcc97726e2e527251fbd329195d99ba5647eb4ec3ea01afa56db46b349308

See more details on using hashes here.

Provenance

The following attestation bundles were made for ssk-1.1.0.tar.gz:

Publisher: publish-pypi.yml on FerroIT/SolidSKeleton

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ssk-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: ssk-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 32.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ssk-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 692348abaab182af0892d1ebc3424d6ae4c3d17e8647576f2ad2c7d2d6f2861b
MD5 27679c8e57545dd1b215e8773bfdc1b1
BLAKE2b-256 987ac62da4b33ca45d2a200b6e32cc833471c79342f7e82e0b816b8debd4487f

See more details on using hashes here.

Provenance

The following attestation bundles were made for ssk-1.1.0-py3-none-any.whl:

Publisher: publish-pypi.yml on FerroIT/SolidSKeleton

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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