geometrykit
OCC-free NURBS geometry for the ifckit family: value types (Vec,
Plane, Line, Arc, Polyline, Path, Curve, Surface), NURBS
evaluation / tangents / normals / projection, energy-minimising patch
fills with G1/G2 continuity options, plane × surface sections with
pcurve tracks, and STEP/OBJ/STL writers. No OCCT, no compiled
toolchain required to install.
Install
pip install geometrykit # Python >= 3.9, incl. Rhino 8's CPython 3.9
Binary wheels (cp39-abi3) carry the compiled Rust core
(geometrykit._rust) where a platform build exists, and the public
API routes to it automatically. Platforms without a matching wheel get
the pure-Python/numpy mirror instead: same API, same results, slower.
GEOMETRYKIT_ENGINE=npu forces the mirror; the default prefers the
accelerator when importable.
Quickstart
from geometrykit import engine
from geometrykit.geometry import Curve, Surface
from geometrykit.geometry.primitives import Vec
curves = [
Curve.from_tangents(start=Vec(0, 0, 2.4), tan_start=Vec(1, 0, 0),
end=Vec(8, 0, 2.8), tan_end=Vec(1, 0, 0), scale=3.0),
Curve.from_tangents(start=Vec(8, 0, 2.8), tan_start=Vec(0, 1, 0),
end=Vec(8, 6, 2.9), tan_end=Vec(0, 1, 0), scale=3.0),
Curve.from_tangents(start=Vec(0, 6, 3.2), tan_start=Vec(1, 0, 0),
end=Vec(8, 6, 2.9), tan_end=Vec(1, 0, 0), scale=3.0),
Curve.from_tangents(start=Vec(0, 6, 3.2), tan_start=Vec(0, -1, 0),
end=Vec(0, 0, 2.4), tan_end=Vec(0, -1, 0), scale=3.0),
]
surface = Surface.patch(curves, fill="energy", nu=16, nv=16, tangency=0.75)
proj, (u, v) = surface.project(Vec(-1.0, -1.0, 3.0))
print(engine.engine(), proj, (u, v))
What is in here
- NURBS evaluation, analytic tangents and normals, closest-point projection (kernel Newton, no OCC).
- Energy-minimising patch fill over a boundary ring
(
Surface.patch(..., fill="energy")), with tangency strength and optional G2 and adaptive re-fit. - Plane × surface sections with parameter tracks, batch level sets, and node-exact diagrid weaving.
- Writers: STEP (AP214 B-rep), OBJ, STL.
geometrykit-coreon crates.io: the same kernels as a pure-Rust dependency (no bindings, no unsafe code).
Out of scope by design: B-rep booleans and tolerant topology (volumes are OCCT's domain); IFC serialisation lives in ifckit.
Development
python3 -m venv .venv && .venv/bin/pip install -e ".[dev]"
.venv/bin/python -m pytest tests/ -q
GEOMETRYKIT_ENGINE=npu .venv/bin/python -m pytest tests/ -q
GEOMETRYKIT_ENGINE=rust .venv/bin/python -m pytest tests/ -q
The oracle tier checks the kernel against OCCT and stays local
(pythonocc-core is conda-only; see AGENTS.md). Every suite train
runs in both engine configurations before a commit lands.
Licensing
LGPL-3.0-or-later (COPYING.LESSER, COPYING). Kernel code promoted
from ifckit's geometry package carries a provenance header recording
its origin.
Metadata
Release files for geometrykit 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| geometrykit-0.6.0.tar.gz | 189.6 kB | Without provenance | Details for geometrykit-0.6.0.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| geometrykit-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for geometrykit-0.6.0-py3-none-any.whl |
| geometrykit-0.6.0-cp39-abi3-win_amd64.whl | CPython 3.9 | abi3 | Windows x86-64 | Details for geometrykit-0.6.0-cp39-abi3-win_amd64.whl |
| geometrykit-0.6.0-cp39-abi3-manylinux_2_28_x86_64.whl | CPython 3.9 | abi3 | Linux glibc 2.28+ x86-64 | Details for geometrykit-0.6.0-cp39-abi3-manylinux_2_28_x86_64.whl |
| geometrykit-0.6.0-cp39-abi3-manylinux_2_28_aarch64.whl | CPython 3.9 | abi3 | Linux glibc 2.28+ ARM64 | Details for geometrykit-0.6.0-cp39-abi3-manylinux_2_28_aarch64.whl |
| geometrykit-0.6.0-cp39-abi3-macosx_11_0_x86_64.whl | CPython 3.9 | abi3 | macOS 11.0+ x86-64 | Details for geometrykit-0.6.0-cp39-abi3-macosx_11_0_x86_64.whl |
| geometrykit-0.6.0-cp39-abi3-macosx_11_0_arm64.whl | CPython 3.9 | abi3 | macOS 11.0+ ARM64 | Details for geometrykit-0.6.0-cp39-abi3-macosx_11_0_arm64.whl |
Total release size: 2.8 MB
Release files / geometrykit-0.6.0.tar.gz
| Download URL | geometrykit-0.6.0.tar.gz |
|---|---|
| Size | 189.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7d880239a320ed3b5876d38093da45a303d3ec71d36098aabc7951ea4b441b81
|
|
BLAKE2b-256 checksum How to use checksums |
ba1138def3213ee4c945d3bfa5d235248d33da94c6fa7f6b2a7cdbc5ff99daad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Release files / geometrykit-0.6.0-py3-none-any.whl
| Download URL | geometrykit-0.6.0-py3-none-any.whl |
|---|---|
| Size | 196.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f643ccdd6bf328dd07945269c0186774bd01031639e836ab2204da84b89b16fb
|
|
BLAKE2b-256 checksum How to use checksums |
5742052c1ab4c55c992b5f4c460d67bfbb3eed703417c478760afe5282df97a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Release files / geometrykit-0.6.0-cp39-abi3-win_amd64.whl
| Download URL | geometrykit-0.6.0-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 391.8 kB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
be7cf781a1848a39ef58e0af9b7b643b18a9af60c1ca832ce2c2582d3b2cdf38
|
|
BLAKE2b-256 checksum How to use checksums |
4619b2f6509817d291d4e111758597b394799ef376b7f79990d3d91a5528eca7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Release files / geometrykit-0.6.0-cp39-abi3-manylinux_2_28_x86_64.whl
| Download URL | geometrykit-0.6.0-cp39-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 515.3 kB |
| Tags | CPython 3.9 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
9c717653edf77d4b4ec3a85c075e2d1f637e43f36848b9ec643e4c1095f092dd
|
|
BLAKE2b-256 checksum How to use checksums |
cf5369b6b3b40a830fb2fa146d317d75ea5cab000c67faa6e95507ce7be85303
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Release files / geometrykit-0.6.0-cp39-abi3-manylinux_2_28_aarch64.whl
| Download URL | geometrykit-0.6.0-cp39-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 508.5 kB |
| Tags | CPython 3.9 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
e50122d251bd04059e8827a023d5ab99108e51d5cb02a907ebad2ebf9608f3e7
|
|
BLAKE2b-256 checksum How to use checksums |
af3151b67b7463c8bb331016d07461084cd3f6cb5af1d4f8f24d743cfbf73fb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Release files / geometrykit-0.6.0-cp39-abi3-macosx_11_0_x86_64.whl
| Download URL | geometrykit-0.6.0-cp39-abi3-macosx_11_0_x86_64.whl |
|---|---|
| Size | 490.1 kB |
| Tags | CPython 3.9 abi3 macOS 11.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
86497a8cdb45b1c9e22082c25b7bbedd18f1e90d0ddf4e4af609eda57b8a049b
|
|
BLAKE2b-256 checksum How to use checksums |
aa8dddc06671c830e5178157fc2801a7cca9ab9d60c54171d845830e86f83c31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Release files / geometrykit-0.6.0-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | geometrykit-0.6.0-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 481.9 kB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
72ceca20aaa1c9b42ab45b61bcb8b957bb60fd6c3fe917ce0c06bb2154fcbf11
|
|
BLAKE2b-256 checksum How to use checksums |
a9e3d358d43dcce308ff676bb9d89581d27f735c4cd70848cdc21016dd37b087
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Security for geometrykit 0.6.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.