Skip to main content

SolidSKeleton reference library and ssk command line tool

Project description

SolidSKeleton Python Reference

Python 3.10+.

pip install ssk

For local development from this directory:

pip install -e .

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 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)

Lower-level functions:

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

Modules

Module Spec
parse_ssk.py format/ssk/SPEC.md
parse_sskb.py format/sskb/SPEC.md
write_sskb.py format/sskb/SPEC.md
resolve.py geometry/SPEC.md 3.1
validate.py geometry/SPEC.md 16
tessellate.py geometry/SPEC.md 6-11
boolean.py geometry/SPEC.md 12-14
vecmath.py geometry/SPEC.md 4, 7, 9, 10
gltf.py glTF 2.0
error.py -

Tests

From the repository root:

python -m unittest discover -s reference\tests
python -m unittest discover -s reference\tests -p test_examples.py

From this directory:

python -m unittest discover -s tests
python -m unittest discover -s tests -p test_examples.py

Notes

  • Mesh output defaults to resolution 32.
  • 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-0.8.1.tar.gz (22.6 kB view details)

Uploaded Source

Built Distribution

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

ssk-0.8.1-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ssk-0.8.1.tar.gz
Algorithm Hash digest
SHA256 f3b7a578c7d605a548c0cbde1d5c6d11837664d36c72801c02751f9de59a4017
MD5 4cd96ed684b1b8614ad4dac3f6dd18b3
BLAKE2b-256 320e56453c344e1007cf443f1f6a84aea39e51fc82720b79ad9d0fbb69ec243c

See more details on using hashes here.

Provenance

The following attestation bundles were made for ssk-0.8.1.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-0.8.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for ssk-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f1f02a53121542bd8e9e1a4be3395b40192a911dc36af5f5a5525980f4b369d9
MD5 1d19a20b556a76f160acd50f055a6ccd
BLAKE2b-256 6503c83c337714f6a30bf3070098ae8c53de727201217eb1cb013cf4783e2d91

See more details on using hashes here.

Provenance

The following attestation bundles were made for ssk-0.8.1-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