Skip to content

geomcore

A pure, standalone geometric kernel for CAD-grade curves and surfaces: parametric evaluation, rigid transformations, projection, intersection, fitting, and exact curve-on-surface parametrization. It is built as small, independently useful Rust libraries with idiomatic Python bindings.

geomcore is not a modeling or CAD system. There is no topology, no B-rep and no boolean operation. It is the geometry layer underneath one: useful on its own to anyone who needs robust computational geometry, and a foundation for a future kernel.

A circle and an ellipse, with the four points where they meetOpen in a new tab ↗

Find what you need

The documentation follows the Diátaxis modes: learn by doing, solve a task, look something up, or understand a choice.

I want to… Start here
Install and run my first example Getting started
Draw geometry in the browser Visualize with the viewer
Project a point or test containment Projection & containment
Intersect curves or surfaces Intersection
Turn a curve into points and chords Discretize a curve
Map a curve onto a surface Map a curve onto a surface
Look up a shape, formula or domain Elementary curves & surfaces
Work with B-spline curves and surfaces NURBS curves, surfaces, editing & fitting
Use the Python package Python API notes
Understand why the design is what it is Design decisions, Why ten special cases
See where the kernel is going Roadmap

What is in the box

  • Evaluation of lines, circles, ellipses, parabolas, hyperbolas, B-spline and Bézier curves, in 3D and in 2D; and of planes, cylinders, cones, spheres, tori, B-spline and Bézier surfaces, and surfaces extruded or revolved from any curve.
  • Transformations — translation, rotation, mirroring and uniform scaling through one Transform type, applied to any curve or surface.
  • Queries — containment, projection and extrema with a tolerance; one intersect call that routes each pair to its exact closed form or to a numeric search and says which ran, and whether every hit was found.
  • Curves on surfaces — the exact UV curve where one exists, and one B-spline within a deviation everywhere else, in both directions.
  • B-spline fitting and editing — interpolation, least-squares approximation, knot insertion and removal, degree elevation, splitting and exact conversions from the elementary shapes.

The Rust API reference is on docs.rs. Python does not have a generated API reference yet; its type stubs and docstrings describe the full surface, and the Python API notes explain the conventions that differ from Rust.

Status

Pre-1.0: the API can still change between minor versions, with breaking changes flagged in the changelog. Evaluation, transformations and curve-on-surface parametrization are validated against golden fixtures at CAD-kernel tolerances (1e-7). See the roadmap for what comes next.