Baltor Get started

Gallery / Mesh algorithms

NURBS curves with exact circles and conics

In your harnessMesh algorithmMIT

Evaluate rational B-spline (NURBS) curves in homogeneous coordinates, with the exact nine-point circle and single-span conic arcs. Use it where circles and arcs must be exact, as in CAD data.

Render of NURBS curves with exact circles and conics
The render its check recorded in Godot 4.7.2, 256 by 256 pixels.

What it takes and gives

Entry points
nurbs_point, circle, conic_arc, sample_nurbs, build, main
Parameters
radius, samples
Complexity
O(degree^2) per point
Axes
+Y up, metres

Limits. The parameter is not proportional to arc length (points crowd toward the square's edge midpoints). Weights must be positive. Only curves; see nurbs_surface for surfaces.

Details

Kind
Mesh algorithm
Engine
Python 3.10 or later
Files
10 files, 249.7 KB
Licence
MIT
Declared effects
reads files, runs commands, writes files
Checked with
Godot 4.7.2, gl_compatibility, OpenGL 3 driver, Mesa llvmpipe under Xvfb
Checks
generator runs system python, generator runs verifier python, gltf strict structure, interpreters agree, example matches generator, godot headless gltf load, godot compatibility render
Techniques
Rational de Boor evaluation in homogeneous coordinates, Nine-point quadratic NURBS circle with corner weights sqrt(2) / 2, Rational quadratic conic arcs (weight below, at and above 1)
Tags
nurbs, rational, circle, conic, curve, cad
Identity
library.supply.creative_originals.8e3f2f7165334aa9e99a8371.48f6324d1ca0a5e9
Version
48f6324d1ca0a5e9269bb30002989f2e673ecb38a6d92d94a7510a5d98a2ba01

The version is the SHA-256 of the item your harness downloads; every file in it names its own checksum.

Something wrong with this item, its rights or its safety? Report it on the support page, or from your harness after a download.