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.50.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.50.0
File Size Uploaded Provenance Actions
geomcore-0.50.0.tar.gz 2.0 MB With provenance Details for geomcore-0.50.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for geomcore 0.50.0
File Actions
geomcore-0.50.0-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for geomcore-0.50.0-cp311-abi3-win_amd64.whl
geomcore-0.50.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.50.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
geomcore-0.50.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.11 abi3 Linux glibc 2.17+ ARM64 Details for geomcore-0.50.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
geomcore-0.50.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.50.0-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl

Total release size: 22.7 MB

Release files / geomcore-0.50.0.tar.gz

Download URL geomcore-0.50.0.tar.gz
Size 2.0 MB
Tags Source
SHA-256 checksum
How to use checksums
7e1315d489f9a34150a5ceb380ebd0c23cf087d7a194960760beae229434e3f4
BLAKE2b-256 checksum
How to use checksums
bf5b5966845de728d670efbcb11757184980ea2f0dce9754610e61dda10232d6
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 23, 2026.

Transparency log

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

Download URL geomcore-0.50.0-cp311-abi3-win_amd64.whl
Size 4.1 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
4e32e147ec058724ca7f0638f85940e387a152e38cdcd6d5e059d66bcc263cd1
BLAKE2b-256 checksum
How to use checksums
44a4253ebab753b2a99d3c01613e4f0e4c21417180eb0d845ba6561e6af44f66
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 23, 2026.

Transparency log

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

Download URL geomcore-0.50.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 4.4 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
5a2d59b50b9df661e2258a2844c5fa58129fc20c252c5e45fa7e4d6704fc998c
BLAKE2b-256 checksum
How to use checksums
355b9cc60c04b45d7fa2466739695685afee31a0a9e1c6213823ec7eaf9cc645
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 23, 2026.

Transparency log

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

Download URL geomcore-0.50.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 4.2 MB
Tags CPython 3.11 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
b4ac2d4c1bb60cf0f9aea7bce8eada11303315af29c768e303fe7579cdc0700e
BLAKE2b-256 checksum
How to use checksums
c86c8924059d9e98d534b923a9d7ba9cc710fc11e56266ddffdbbbe767b9a923
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 23, 2026.

Transparency log

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

Download URL geomcore-0.50.0-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl
Size 8.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
aaeb275143ad95a165fa853c0b69b0224f1af0d64f5673621948f84f2f98a7ad
BLAKE2b-256 checksum
How to use checksums
ae7f10969e64a5f9191fe29b915c25ba87c08370341e656add92168174effb1f
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 23, 2026.

Transparency log

Security for geomcore 0.50.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.50.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 23, 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.50.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