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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1de402cba1be588cd32b95561cd706ec4baf2ade6dd5f91bde0127901a7c28e0
|
|
| MD5 |
70a8f4b2b7bd3bd68dd8db2ef25384ca
|
|
| BLAKE2b-256 |
7da744f82fc12611c7de415ce7d2cc224bd7ca77776394390aac953a578229f5
|
Provenance
The following attestation bundles were made for forgekernel-0.9.1.tar.gz:
Publisher:
release.yml on gitcad-xyz/forge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
forgekernel-0.9.1.tar.gz -
Subject digest:
1de402cba1be588cd32b95561cd706ec4baf2ade6dd5f91bde0127901a7c28e0 - Sigstore transparency entry: 2236034888
- Sigstore integration time:
-
Permalink:
gitcad-xyz/forge@96e2a0f419d62cf482a01e0fff8af41884574ec4 -
Branch / Tag:
refs/tags/v0.9.1 - Owner: https://github.com/gitcad-xyz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@96e2a0f419d62cf482a01e0fff8af41884574ec4 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6dfc302281a2a2343465051476cee09fe61cecad437419f0c0da7714b798342
|
|
| MD5 |
106cb3f4fdfec021f160219badfd61f1
|
|
| BLAKE2b-256 |
29c42d48d25560deaded1a082c0b861038379d82340cab5fce650a9e51cf7d05
|
Provenance
The following attestation bundles were made for forgekernel-0.9.1-py3-none-any.whl:
Publisher:
release.yml on gitcad-xyz/forge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
forgekernel-0.9.1-py3-none-any.whl -
Subject digest:
f6dfc302281a2a2343465051476cee09fe61cecad437419f0c0da7714b798342 - Sigstore transparency entry: 2236035017
- Sigstore integration time:
-
Permalink:
gitcad-xyz/forge@96e2a0f419d62cf482a01e0fff8af41884574ec4 -
Branch / Tag:
refs/tags/v0.9.1 - Owner: https://github.com/gitcad-xyz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@96e2a0f419d62cf482a01e0fff8af41884574ec4 -
Trigger Event:
push
-
Statement type: