โ† All examples

mesh algorithms

NURBS curves with exact circles and conics

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.

Recorded render of NURBS curves with exact circles and conics

What this component contains

  • ATTRIBUTION.md
  • LICENSE
  • README.md
  • component.json
  • example.gltf
  • meshkit.py
  • nurbs_curve.py
  • preview.png
  • test_package.py
  • verification/native.json

How it works

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

Recorded checks

godot 4.7.2.stable.official.ed1daf0bf

  • generator_runs_system_python
  • generator_runs_verifier_python
  • gltf_strict_structure
  • interpreters_agree
  • example_matches_generator
  • godot_headless_gltf_load
  • godot_compatibility_render

Limits to consider

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.