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
Metadata
Release files for forgekernel 0.9.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| forgekernel-0.9.9.tar.gz | 408.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| forgekernel-0.9.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 705.8 kB
Release files / forgekernel-0.9.9.tar.gz
| Download URL | forgekernel-0.9.9.tar.gz |
|---|---|
| Size | 408.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1fea32ffec75b5aeb2e78b7caa42d8d14589fa9b5c72766cda539b2fb3de9e3
|
|
BLAKE2b-256 checksum How to use checksums |
f53f4e5783f7ddc3d088d11af02fcb29b05f68292c2ea625c3e6f85eb3605791
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.
Transparency logRelease files / forgekernel-0.9.9-py3-none-any.whl
| Download URL | forgekernel-0.9.9-py3-none-any.whl |
|---|---|
| Size | 297.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dd8d4decb6e28c6761e8e5ebb423b6687d2b012a38751dd8ef71822969942277
|
|
BLAKE2b-256 checksum How to use checksums |
fba221e220eb3097e695d9f6d6effe11a8ed0febeb3fe7b886f14eb3b8ec53ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.
Transparency log