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.