curve op• データ種: points → measurement
• 呼び出し: import fullseye as fs; fs.ledger.arc_length(curve) (実装を直接呼ぶなら import curve3d; curve3d.arc_length(curve)、台帳から引くなら ops3d.get("arc_length"))
• 台帳経由の戻り値: fullseye.ledger.arc_length(...) は宣言 out 型 measurement の値だけを返す(本体は補助情報も返す)。捨てられた側が要るときは fullseye.ledger.arc_length.raw(...)、または curve3d.arc_length を直接呼ぶ。
• 本体の返り: (cumulative, total) → 全長 float
曲線の累積弧長と全長。→ (cumulative (N,), total float)。
順序付き点列 curve (N,3) を index 順に折れ線とみなし、隣接点間のユークリッド距離を累積する。cumulative[0]=0、cumulative[i] = 先頭から i 番目までの折れ線長、total = cumulative[-1]。単位は座標と同じ。
• 入力は float に変換されるだけで形状検証は無い(列数が 3 以外でも計算は通る)。
• N=1 では cumulative=[0.0]・total=0.0。閉曲線でも終点→始点の区間は数えない(閉じたい場合は先頭点を末尾に複製してから渡す)。
• 重複点(距離 0 の区間)はそのまま 0 として累積されるので cumulative は単調非減少だが狭義増加ではない。
resample_uniform はこの累積弧長をパラメータに線形補間する。曲率の弧長積分など curvature_torsion と組み合わせるときの ds はこの差分から取る。
• サンプルデータ カタログ(DL URL / ライセンス) — 2-D は skimage.data(BSD/public)+ 合成、3-D は実データ源(Stanford/PDS 等)の DL URL。
• 演算子の来歴・参考文献 — この op 族の元になった研究/手法の出典。
• space_curve — py -3.11 examples_3d/space_curve.py
• torus_knot_curve — py -3.11 examples_3d/torus_knot_curve.py
measurement を入力に取れる)vol_gaussian_psf · fuse_to_voxel · fresnel_reflectance · snell_angle
curve)curvature_torsion · frenet_frame · resample_uniform · fit_spline_curve
*Provenance: curve3d.py — 3D operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.