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.0.tar.gz (101.3 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.0-py3-none-any.whl (83.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: forgekernel-0.9.0.tar.gz
  • Upload date:
  • Size: 101.3 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.0.tar.gz
Algorithm Hash digest
SHA256 875bdcd18e6df1f0b7e53b8a26be638072ae3a9aa108700a99866b0d0b47f116
MD5 451fa27831dd3a4c2553da289920361c
BLAKE2b-256 dd70240e4959d5b06d52ff1e6e65be6f9443e1ce201123da74ece06bec10c15a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: forgekernel-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 83.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 27e67cc3fce25ba29fc8e28da6306edab406c5537b5f83286b491f17fd7ae9ba
MD5 bb79dbacf7b0e9cb747ea38eabf815d0
BLAKE2b-256 0327579930a418bc393916b16e8e968ef2dd4c6691cb96904fe2fe79c864d72b

See more details on using hashes here.

Provenance

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