Repository navigation
Blend and match surfaces with G0/G1/G2 continuity, and fitting of surfaces to scattered points
(#17). The API is not yet stable (0.x).
Added
- Blend and match surfaces (#17):
blend_surfaces(s0, side0, s1, side1, continuity, tension)
builds a G0 (ruled), G1 (cubic) or G2 (quintic) transition surface between two surface sides;
match_surface(surface, side, target, target_side, continuity)modifies a surface near one
side so that it joins the target with G0/G1/G2 and keeps the opposite side and its cross
derivatives. Both continue the surfaces as exact reparametrisations across the edges; exact
NURBS when the weights do not vary across the sides (non-rational surfaces, extrusions,
revolutions at profile ends), otherwise the boundary data are interpolated to a tolerance.
LLM toolsblend_surfacesandmatch_surface. - Fitting to scattered points (#17):
fit_surface(points, ...)fits a B-spline surface to
unordered points by least squares with a thin-plate smoothing term (relative weight), solved
as a banded system, with parameter correction. Parameters from the best-fit plane (height
fields), a base surface, or four boundary curves, which are then interpolated exactly.
ReturnsFittedSurface(surface, max / rms error, parameters). LLM toolfit_surface.
Install
pip install nurbforge # from PyPI; nurbforge[mesh] adds gmshBinary wheels for Linux (manylinux_2_28 x86_64), Windows (win_amd64) and macOS 14+ (arm64, x86_64), CPython 3.10-3.14, and the sdist are also attached below.
Documentation
nurbforge-manual.pdf: the user manual with the complete command reference of this version.
nurbforge-reference.md: the compact API reference for language models and coding agents (also python -m nurbforge).