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.2.tar.gz (111.0 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.2-py3-none-any.whl (91.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: forgekernel-0.9.2.tar.gz
  • Upload date:
  • Size: 111.0 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.2.tar.gz
Algorithm Hash digest
SHA256 2f69958918a7e1e351d59ae0b2ff967308961abe55fb49416c9022bb88dc98ac
MD5 ecf475868c7d810f9e96d0942eb7cab2
BLAKE2b-256 cd1c926d125e430e91285d10c80f9f67a309151945adaa1bfae5507800b5b285

See more details on using hashes here.

Provenance

The following attestation bundles were made for forgekernel-0.9.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: forgekernel-0.9.2-py3-none-any.whl
  • Upload date:
  • Size: 91.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 248056af65d3f8aa63beacb3ae2b82d470687ab18808f7d8ec9e8ae40fc9a2c3
MD5 702561f268d2018e1d3b170dc342bea0
BLAKE2b-256 8275f45607ce26aabc2a96c7176447118ce9c4445183b4971d85a3af244edb47

See more details on using hashes here.

Provenance

The following attestation bundles were made for forgekernel-0.9.2-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