Skip to main content

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.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for forgekernel 0.9.4
File Size Uploaded
forgekernel-0.9.4.tar.gz 115.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for forgekernel 0.9.4
File Interpreter ABI Platform
forgekernel-0.9.4-py3-none-any.whl Python 3 none any Details

Total release size: 210.0 kB

Release files / forgekernel-0.9.4.tar.gz

Download URL forgekernel-0.9.4.tar.gz
Size 115.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a1fd33950e95817a76e2dff22a2b929d74b2f090204645a5e883815042afaa0e
BLAKE2b-256 checksum
How to use checksums
b112d5363910be6878b8ea6adb83b89eedf37a1f42a16b93a50d7f42aac2a13b
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 24, 2026.

Transparency log

Release files / forgekernel-0.9.4-py3-none-any.whl

Download URL forgekernel-0.9.4-py3-none-any.whl
Size 94.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c691c0f95ca7c46d88c2b9072fbd329a340b84c3f60ced3f904cc84a7b2d30f5
BLAKE2b-256 checksum
How to use checksums
2933d9c4115fa633c15d3e4832401e1947651aab5a2d8bf357ac652672005a81
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 24, 2026.

Transparency log

Release history Release notifications | RSS feed

0.9.13

2 release files

0.9.12

2 release files

0.9.10

2 release files

0.9.9

2 release files

0.9.8

2 release files

0.9.7

2 release files

0.9.6

2 release files

0.9.5

2 release files

This release

0.9.4 This release

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page