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 はこの差分から取る。
• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。
• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。
• 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 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.