geomcore (Python bindings)
Python bindings for geomcore, a geometric kernel for CAD-grade curves and surfaces, written in Rust: intersection, projection and extrema, B-spline fitting, evaluation, transformations and curve-on-surface parametrization. Every result says how it was found and whether it is complete.
from geomcore import BSplineCurve, Circle, Line, Plane, Point, Vector
circle = Circle(Point(0, 0, 0), Vector(0, 0, 1), 2.0)
plane = Plane(Point(1, 0, 0), Vector(1, 0, 0))
hits = circle.intersect(plane) # closed form: EXACT, COMPLETE
print([hit.point for hit in hits]) # (1, ±1.732, 0)
projection = circle.project_point(Point(3, 1, 0))
print(projection.point, projection.distance)
line = Line(Point(0, 0, 3), Vector(1, 1, 0))
print(circle.extrema(line).closest().distance) # 3.0
curve = BSplineCurve.interpolate(
[Point(0, 0, 0), Point(1, 2, 0), Point(3, 2, 1), Point(4, 0, 0)], 3
)
print(curve.point_at(0.5))
Documentation: https://geomcore.github.io/geomcore/, and the Python guide.
Install
pip install geomcore # or geomcore[numpy] for the array calls
Pre-built wheels are published for Linux (x86_64, aarch64), macOS, and Windows, for Python 3.11+ (abi3: one wheel covers every version).
What's inside
- Shapes. Lines, circles, ellipses, parabolas, hyperbolas, B-spline
curves (rational and periodic), Bézier curves and their 2D twins;
planes, cylinders, cones, spheres, tori, B-spline and Bézier surfaces,
and surfaces extruded or revolved from a curve.
TrimmedCurveandTrimmedSurfacerestrict any of them to a range;QuarticBranchis a piece of the closed-form quartic two quadrics meet in. - Intersections with
a.intersect(b)between any two curves or surfaces, in either order. The result holds the hits with their parameters, point and multiplicity, the overlaps, the surface–surface curves and contact points, themethodthat ran (EXACTclosed form orNUMERICsearch) and itscompleteness. A result is a sequence of its primary items:len, iteration and indexing run over them. - Projection and extrema.
shape.project_point(p)gives the closest point, its parameters and the distance (signed_distanceon a surface);a.extrema(b).closest()the closest approach of two curves. - Evaluation and local properties.
point_at,points_atandderivative; curvetangent,curvatureandcurvature_center; surfacenormalandcurvatures;length,discretize, bounding boxes, closedness and continuity;span_indexandbasis_functionson B-splines. - Fitting.
BSplineCurve.interpolate, least-squaresapproximate, andapproximate_withina deviation, curves and surfaces. - Curve-on-surface parametrization.
surface.curve_3d_to_uv(curve)andsurface.uv_curve_to_3d(uv_curve)in closed form, andsurface.curve_3d_to_uv_within(curve, max_deviation)andsurface.uv_curve_to_3d_within(uv_curve, max_deviation)as one B-spline within a deviation, such as a helix on a cylinder. - Transformations with one
Transformtype, applied withtransformed. - numpy (the
[numpy]extra):points_at_arrayand the other array calls take and return arrays, andnumpy.array(discretization)is the(N, 3)array of its points. - Pickling and copying of every value, curve and surface.
- Type stubs (PEP 561) for editors and type checkers.
Evaluation, transformations and curve-on-surface parametrization are validated against golden fixtures at CAD-kernel-grade tolerances (1e-7). See the repository for the Rust crate, the changelog and the roadmap.
License
Dual-licensed under MIT or Apache-2.0, at your option.
Metadata
Release files for geomcore 0.48.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 |
|---|---|---|---|---|
| geomcore-0.48.0.tar.gz | 1.8 MB | With provenance | Details for geomcore-0.48.0.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| geomcore-0.48.0-cp311-abi3-win_amd64.whl | CPython 3.11 | abi3 | Windows x86-64 | Details for geomcore-0.48.0-cp311-abi3-win_amd64.whl |
| geomcore-0.48.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl | CPython 3.11 | abi3 | Linux glibc 2.17+ x86-64 | Details for geomcore-0.48.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
| geomcore-0.48.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl | CPython 3.11 | abi3 | Linux glibc 2.17+ ARM64 | Details for geomcore-0.48.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
| geomcore-0.48.0-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl | CPython 3.11 | abi3 | macOS 10.12+ x86-64, macOS 11.0+ ARM64, macOS 10.12+ universal2 (ARM64, x86-64) | Details for geomcore-0.48.0-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl |
Total release size: 20.2 MB
Release files / geomcore-0.48.0.tar.gz
| Download URL | geomcore-0.48.0.tar.gz |
|---|---|
| Size | 1.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ffe84848032a7596c3e2b67d25b9fb06c6ae8057a2c38d49920da1e4a11bc5f
|
|
BLAKE2b-256 checksum How to use checksums |
7aaf9d1a09799cd9d8aca754d2740a5ab41e6063817450b980808968707a730f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 16, 2026.
Transparency logRelease files / geomcore-0.48.0-cp311-abi3-win_amd64.whl
| Download URL | geomcore-0.48.0-cp311-abi3-win_amd64.whl |
|---|---|
| Size | 3.7 MB |
| Tags | CPython 3.11 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
027de2f26b7c99864391e20d92e7e001bfc86c08c9c498c9d63252594292eb98
|
|
BLAKE2b-256 checksum How to use checksums |
06de21a49f836e453919cfc51d3846e1998e8d048c5f1699f57f415e6ca6ba75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 16, 2026.
Transparency logRelease files / geomcore-0.48.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | geomcore-0.48.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 3.9 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
58f10a84412c9c03e991803f9c855189b19c4c21cc3d265a752404dd0fdbca3f
|
|
BLAKE2b-256 checksum How to use checksums |
25486df93d43a78489fab9771844b369f88c4a81f123ace56270396c118859d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 16, 2026.
Transparency logRelease files / geomcore-0.48.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | geomcore-0.48.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 3.7 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
df19020d237b2abf8657a400b490c96946245b35d2e26c8ed47676aef17f18f3
|
|
BLAKE2b-256 checksum How to use checksums |
fe3f262c74b023930accf87b27a3bc4a6670c7ed97ea59deca8f26a82d862437
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 16, 2026.
Transparency logRelease files / geomcore-0.48.0-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl
| Download URL | geomcore-0.48.0-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl |
|---|---|
| Size | 7.1 MB |
| Tags | CPython 3.11 abi3 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
7a089efbfbde5855d20a1409d354c621dcacdccd908d4b8096a10be0ed322432
|
|
BLAKE2b-256 checksum How to use checksums |
9bca187421a63ce7ef90b6ebb4a4505e06d44cbb52ce78e545fa8eb401969990
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 16, 2026.
Transparency logSecurity for geomcore 0.48.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.
Full provenance
All 5 files in this release have been uploaded with provenance metadata.
Attestation for geomcore-0.48.0.tar.gz
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 Nov 16, 2026.
Transparency logA 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.