Skip to main content

Exact-arithmetic B-rep CAD kernel

Project description

forge

An exact-arithmetic boundary-representation (B-rep) CAD kernel. Geometric and topological decisions use exact rational arithmetic (ℚ, ℚ[π], ℚ[√d]) or certified intervals; no result depends on a floating-point tolerance.

It ships as two PyPI packages:

  • forgekernel — the kernel, pure Python.
  • forgekernel_rs — a native (Rust) build of the performance-critical routines, installed automatically when a wheel is available and returning the same results.

Capabilities

  • Planar solids: rational linear algebra, plane-based B-rep, booleans, divergence-theorem mass properties.
  • Quadrics (cylinder, cone, sphere, torus) with closed-form intersections.
  • NURBS curves and surfaces; surface–surface intersection with complete branch detection and certified points.
  • Procedural offsets and shells; edge blends (fillets); lofts.
  • Exact volume, centroid, and inertia via the divergence theorem.
  • STEP (AP203/AP214) import and export.

Design

A Python reference implementation defines the exact semantics. A Rust build provides the same operations for production use; each ported routine is cross-checked against the reference. Design notes and decisions are recorded in the gitcad repository (ADR-0018).

Layout

  • src/forgekernel/ — the Python kernel.
  • rust/forge-core/ — the native build (forgekernel_rs).

Install

pip install forgekernel          # pure Python
pip install forgekernel[rust]    # add the native build

License: Apache-2.0. Source: https://github.com/gitcad-xyz/forge

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

forgekernel-0.9.1.tar.gz (108.4 kB view details)

Uploaded Source

Built Distribution

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

forgekernel-0.9.1-py3-none-any.whl (89.8 kB view details)

Uploaded Python 3

File details

Details for the file forgekernel-0.9.1.tar.gz.

File metadata

  • Download URL: forgekernel-0.9.1.tar.gz
  • Upload date:
  • Size: 108.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for forgekernel-0.9.1.tar.gz
Algorithm Hash digest
SHA256 1de402cba1be588cd32b95561cd706ec4baf2ade6dd5f91bde0127901a7c28e0
MD5 70a8f4b2b7bd3bd68dd8db2ef25384ca
BLAKE2b-256 7da744f82fc12611c7de415ce7d2cc224bd7ca77776394390aac953a578229f5

See more details on using hashes here.

Provenance

The following attestation bundles were made for forgekernel-0.9.1.tar.gz:

Publisher: release.yml on gitcad-xyz/forge

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

File details

Details for the file forgekernel-0.9.1-py3-none-any.whl.

File metadata

  • Download URL: forgekernel-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 89.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for forgekernel-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f6dfc302281a2a2343465051476cee09fe61cecad437419f0c0da7714b798342
MD5 106cb3f4fdfec021f160219badfd61f1
BLAKE2b-256 29c42d48d25560deaded1a082c0b861038379d82340cab5fce650a9e51cf7d05

See more details on using hashes here.

Provenance

The following attestation bundles were made for forgekernel-0.9.1-py3-none-any.whl:

Publisher: release.yml on gitcad-xyz/forge

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