ocp-gordon
A Python library for Gordon Surface interpolation using B-splines.
Decision gist · record as of 2026-08-14
Yes, if you are working with CadQuery or build123d and need to generate smooth surfaces from curve networks. The low install friction, permissive license, and active maintenance make it a straightforward addition. Be aware that it is early-stage (first release September 2025) with limited community presence, and boundary misalignment is a known issue for non-iso-parametric inputs—consult the wiki before relying on high-precision surface matching.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later (supports up to 3.14); profile_curves and guide_curves must be B-spline objects compatible with OCP.
- Low friction installation with a pure-Python wheel.
- Active maintenance with a recent release (29 days ago), though the project is early-stage with minimal GitHub presence (2 stars).
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.
last release 2026-07-16 (29 days) · last repo commit 2026-07-16 · 2 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 353,606 downloads/mo, #7,302 on PyPI
Alternatives
Verify before relying
pip install ocp-gordon
from ocp_gordon import interpolate_curve_network
gordon_surface = interpolate_curve_network(profile_curves, guide_curves, tolerance=3e-4)- Whether the library handles edge-case curve topologies beyond the documented misalignment scenarios.
- Performance characteristics when working with large numbers of curves or high-resolution surfaces.
- Availability of detailed API documentation beyond the basic example in the description.
What it is and what it does
ocp-gordon is a Python library for creating Gordon surfaces—smooth interpolated surfaces generated from a network of profile and guide curves. It wraps B-spline mathematics and integrates with CadQuery's OCP (OpenCASCADE Python bindings) to work with CAD geometry primitives. The implementation is adapted from C++ code and includes several refinements: a polyfilled optimization algorithm for curve intersection, regularization to prevent singular matrices, and support for iso-parametric inputs that skip unnecessary reparameterization.
The library is designed primarily for use within build123d but can be used independently. It depends on numpy and scipy for numerical computation, plus cadquery_ocp_proxy for geometric operations. The package is actively maintained and has no known security vulnerabilities. A documented caveat is that Gordon surfaces may show misalignment with input curves at boundaries, particularly for non-iso-parametric inputs, due to approximation in the reparameterization process.
Use it for
- Generate smooth CAD surfaces from a grid of profile and guide curves in parametric design workflows.
- Create complex 3D geometry for 3D printing or CAD models by interpolating curve networks.
- Integrate surface generation into build123d or CadQuery-based design scripts.
- Approximate conic curves and other complex geometries using B-spline representations.
- Prototype aircraft or aerodynamic surfaces using parametric curve networks.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are working with CadQuery or build123d and need to generate smooth surfaces from curve networks.
The low install friction, permissive license, and active maintenance make it a straightforward addition. Be aware that it is early-stage (first release September 2025) with limited community presence, and boundary misalignment is a known issue for non-iso-parametric inputs—consult the wiki before relying on high-precision surface matching.
Install
ocp-gordon on PyPI
Before you install
Low friction installation with a pure-Python wheel. Active maintenance with a recent release (29 days ago), though the project is early-stage with minimal GitHub presence (2 stars).
Requires Python 3.10 or later (supports up to 3.14); profile_curves and guide_curves must be B-spline objects compatible with OCP.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
pip install ocp-gordon
from ocp_gordon import interpolate_curve_network
gordon_surface = interpolate_curve_network(profile_curves, guide_curves, tolerance=3e-4)
Verify before relying
- Whether the library handles edge-case curve topologies beyond the documented misalignment scenarios.
- Performance characteristics when working with large numbers of curves or high-resolution surfaces.
- Availability of detailed API documentation beyond the basic example in the description.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release <3.15,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagescadquery_ocp_proxynumpyscipy |
| Maintenance | Actively maintained 29 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 353,606 / month, #7,302 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Operating System :: OS IndependentProgramming Language :: Python :: 3Topic :: Scientific/Engineering :: MathematicsTopic :: Software Development :: Libraries :: Python Modules |
Evidence: ocp_gordon-0.2.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “gordon surface interpolation”
- ocp-gordonInterpolates networks of curves into smooth Gordon surfaces using…
- piecewise-rationalPerforms shape-preserving piecewise rational cubic interpolation…
- xarray-spatialxarray-spatial provides 150+ functions for raster analysis—surface…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also ocp-tessellate · cadquery-ocp · cadquery-ocp-proxy · cadquery-ocp-novtk · cadquery · cascadio · ocpsvg · pyclothoids · Geode-Explicit · build123d