Skip to main content

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. TrimmedCurve and TrimmedSurface restrict any of them to a range; QuarticBranch is 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, the method that ran (EXACT closed form or NUMERIC search) and its completeness. 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_distance on a surface); a.extrema(b).closest() the closest approach of two curves.
  • Evaluation and local properties. point_at, points_at and derivative; curve tangent, curvature and curvature_center; surface normal and curvatures; length, discretize, bounding boxes, closedness and continuity; span_index and basis_functions on B-splines.
  • Fitting. BSplineCurve.interpolate, least-squares approximate, and approximate_within a deviation, curves and surfaces.
  • Curve-on-surface parametrization. surface.curve_3d_to_uv(curve) and surface.uv_curve_to_3d(uv_curve) in closed form, and surface.curve_3d_to_uv_within(curve, max_deviation) and surface.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 Transform type, applied with transformed.
  • numpy (the [numpy] extra): points_at_array and the other array calls take and return arrays, and numpy.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.49.0

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

Source distribution (sdist)

Source distribution for geomcore 0.49.0
File Size Uploaded Provenance Actions
geomcore-0.49.0.tar.gz 1.9 MB With provenance Details for geomcore-0.49.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for geomcore 0.49.0
File Actions
geomcore-0.49.0-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for geomcore-0.49.0-cp311-abi3-win_amd64.whl
geomcore-0.49.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.49.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
geomcore-0.49.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.11 abi3 Linux glibc 2.17+ ARM64 Details for geomcore-0.49.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
geomcore-0.49.0-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 10.12+ universal2 (ARM64, x86-64), macOS 10.12+ x86-64, macOS 11.0+ ARM64 Details for geomcore-0.49.0-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl

Total release size: 21.2 MB

Release files / geomcore-0.49.0.tar.gz

Download URL geomcore-0.49.0.tar.gz
Size 1.9 MB
Tags Source
SHA-256 checksum
How to use checksums
61e5577c83ace40e2c5ff11345076ad7214bcd276f25332385fd6c3777aebe0c
BLAKE2b-256 checksum
How to use checksums
8e0dddfbf86b4ef40688475f15ae595deba72a0918472bb2faa76d4a069be5db
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 17, 2026.

Transparency log

Release files / geomcore-0.49.0-cp311-abi3-win_amd64.whl

Download URL geomcore-0.49.0-cp311-abi3-win_amd64.whl
Size 3.9 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
b7c5902a648e3f81a917dea053361f3431ab6c0aec4fee20a5a6f1daa1edb41a
BLAKE2b-256 checksum
How to use checksums
50f7c7969573f7408c04d645217a758e5a29390ac44fce67801ba2173e3d4115
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 17, 2026.

Transparency log

Release files / geomcore-0.49.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL geomcore-0.49.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 4.1 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
7ebd01a80003288d291230655a983162e549781a67211f1f0caa4813e0eb5d58
BLAKE2b-256 checksum
How to use checksums
77ef84cc8ae36f2e4ad5e2d65bc480130283cd51fa3e1c1f0f0c548985631632
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 17, 2026.

Transparency log

Release files / geomcore-0.49.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL geomcore-0.49.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 3.8 MB
Tags CPython 3.11 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
eb203f3686a67199958a80642634e670ce7fddec1c3531c0bb885de03843c341
BLAKE2b-256 checksum
How to use checksums
9f6e99b7a1bd3beecd84e641d74572f90b989797b61959ae9b3eb27e6335208d
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 17, 2026.

Transparency log

Release files / geomcore-0.49.0-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl

Download URL geomcore-0.49.0-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl
Size 7.5 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
74eb67c6c1dfa18830b252c31383711470ac43754d393317706db051613cb4b0
BLAKE2b-256 checksum
How to use checksums
84197e8149afc6654964023e79948bfb371f5990c27389507304b6f279ebe064
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 17, 2026.

Transparency log

Security for geomcore 0.49.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.

Select from 5 files

Attestation for geomcore-0.49.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 17, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.49.0 This release

5 release files Full provenance

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