fullseye

fit_bspline_curve — 3D freeform op

使い方

順序付き点列(M,D)に B スプライン曲線をフィット(splprep, パラメトリック)。

シーム/エッジ/計測プローブ軌跡など「並び順が意味を持つ」点列を滑らかな パラメトリック曲線 r(u), u∈[0,1] として復元する。z=f(x,y) と違い多価 (折り返し・ループ)な形も表せる。

Parameters

points : array_like, shape (M, D) 順序付き頂点。D=3 が典型(3D 曲線)だが 2D 以上を許容。 smooth : float 平滑化係数 s。0.0 で全点通過(補間)、大きいほど滑らか。 k : int 次数(既定 3=三次)。点数が k+1 未満なら自動で下げる。 nest : int or None 節点数の上限(splprep へそのまま渡す)。None で自動。

Returns

tck : tuple (t, c, k)。eval_bspline_curve に渡す。

Raises

ValueError 点数が 2 未満、次元不整合、非有限値、または重複/縮退で splprep が 曲線を返せない場合。

補足:

参考(サンプルデータ・文献)

実行できる例(この op を実際に呼ぶ検証済みサンプル)

型が繋がる次の op(bspline_curve を入力に取れる)

fuse_to_voxel · eval_bspline_curve

同カテゴリ(freeform)

fit_bspline_surface · eval_bspline_surface · surface_residual · eval_bspline_curve


Provenance: bspline_surf.py — 3D operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.