Skip to main content

Deterministic, embeddable, true-shape 2D nesting engine for irregular parts

Project description

ironnest

Deterministic, embeddable, true-shape 2D nesting engine for irregular parts — a Rust core (a jagua-rs fork at f64) exposed to Python via PyO3.

The differentiator is determinism: the same inputs produce byte-identical placements on every platform (macOS-arm64 / Windows-x64 / linux-x64), proven by a cross-platform CI golden — so a re-nest reproduces a byte-identical downstream cut program for a machine audit trail.

import ironnest

# one outline per part type, item-local coords
items = [[(0.0, 0.0), (10.0, 0.0), (10.0, 10.0), (0.0, 10.0)]]
container = [(0.0, 0.0), (100.0, 0.0), (100.0, 100.0), (0.0, 100.0)]

placements, unplaced = ironnest.nest(
    items,
    qty=[4],
    container=container,
    min_sep=0.0,                     # 0.0 keeps output byte-identical across platforms
    rotations=[0.0, 90.0, 180.0, 270.0],
    seed=1,                          # explicit — no entropy fallback, ever
    budget=1000,                     # a fixed sample budget, never a wall clock
)
# placements: list[(item, x, y, rotation_deg)] with placed = Rot(rotation_deg)·original + (x, y)
# unplaced:   list[int] (item-type index per instance that did not fit)

The engine is a pure placement oracle: it knows nothing about kerf, lead-ins, pierces, cut sequencing, or G-code — those belong to the consuming CAD/CAM application, which re-validates every layout. See the project repository for the full design.

Licensed under MPL-2.0.

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

ironnest-0.1.0.tar.gz (125.5 kB view details)

Uploaded Source

Built Distributions

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

ironnest-0.1.0-cp313-abi3-win_amd64.whl (313.6 kB view details)

Uploaded CPython 3.13+Windows x86-64

ironnest-0.1.0-cp313-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (448.3 kB view details)

Uploaded CPython 3.13+manylinux: glibc 2.17+ x86-64

ironnest-0.1.0-cp313-abi3-macosx_11_0_arm64.whl (402.6 kB view details)

Uploaded CPython 3.13+macOS 11.0+ ARM64

File details

Details for the file ironnest-0.1.0.tar.gz.

File metadata

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

File hashes

Hashes for ironnest-0.1.0.tar.gz
Algorithm Hash digest
SHA256 96cd862f34f43d31c80a498909be023ee29d99c6a4650d64b44a1c5ed2a13516
MD5 662740b79a0ab72fcaf25aa674442ce8
BLAKE2b-256 983750c4c486385cb462e2d30ccbde402aece1f9e990053eb77b91ebf044e576

See more details on using hashes here.

Provenance

The following attestation bundles were made for ironnest-0.1.0.tar.gz:

Publisher: wheels.yml on TexasCoding/ironnest

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

File details

Details for the file ironnest-0.1.0-cp313-abi3-win_amd64.whl.

File metadata

  • Download URL: ironnest-0.1.0-cp313-abi3-win_amd64.whl
  • Upload date:
  • Size: 313.6 kB
  • Tags: CPython 3.13+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ironnest-0.1.0-cp313-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 702d8508a9fd4619848e5dc39c21215b9ae07e95143b797419fddd8d72b1e613
MD5 790def196cd1b006512cd327fbec77b4
BLAKE2b-256 2adfa97706a99d617d17d3efd4fdfab2d5d585e25639dfd1b1fa06f7903543e0

See more details on using hashes here.

Provenance

The following attestation bundles were made for ironnest-0.1.0-cp313-abi3-win_amd64.whl:

Publisher: wheels.yml on TexasCoding/ironnest

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

File details

Details for the file ironnest-0.1.0-cp313-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ironnest-0.1.0-cp313-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b5789fa7996153f9aed28b93bed87403713b654059c6c253532c5597cbc8505d
MD5 364bb0be2e5c69d97068ed86c037d2c1
BLAKE2b-256 66af9b3c6dd64540db5eb6764d057ecab2741698f9fbdf27cc4dfb5f15936373

See more details on using hashes here.

Provenance

The following attestation bundles were made for ironnest-0.1.0-cp313-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: wheels.yml on TexasCoding/ironnest

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

File details

Details for the file ironnest-0.1.0-cp313-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ironnest-0.1.0-cp313-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 11aafd1fe04a61c7a85b7700375c0beb1b5ee147f81fea4a0bcdc78cec2a392c
MD5 f35934f727a384ef0471973b1d66b003
BLAKE2b-256 14f9ae0023e8cd3a1bc2c2165b423e6a0138d0e3352e171c6ee68a36b9bf46b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for ironnest-0.1.0-cp313-abi3-macosx_11_0_arm64.whl:

Publisher: wheels.yml on TexasCoding/ironnest

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