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.
• 연산자의 내력·참고문헌 —— 이 연산자 족의 바탕이 된 연구/기법의 출처.
• 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 연산자 레지스트리. 이 op 노트는 tools/opdocs.py md 가 자동 생성합니다(직접 편집하지 마세요).*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.