robust_fit op• Data kinds: points → primitive
• Call: import fullseye as fs; fs.ledger.fit_torus(points) -> 'dict' (to call the implementation directly, import fit_primitives_ext; fit_primitives_ext.fit_torus(points) -> 'dict'; from the registry, ops3d.get("fit_torus"))
Fit a torus to a point set and return `{center, axis, R, r, residual}`.
> The detailed description below is the original text — the summary and the headings are translated.
点-トーラス距離 `sqrt((ρ−R)² + a²) − r(a=軸成分, ρ`=軸からの半径,
`R=主半径, r=管半径)を scipy.optimize.least_squares` で最小化する。
初期値は PCA 軸(仲間外れ固有ベクトル)+ `R0=mean(ρ)・r0=mean(管中心円までの距離)`。
Args:
points: (N,3) 点群(最低 7 点)。
Returns:
dict: ``{"center": (3,), "axis": (3,) 単位軸, "R": float 主半径,
"r": float 管半径, "residual": float 点-面距離の RMS}``。
Raises:
ValueError: 形状不正/点数不足 fail-closed。
• blas_threads_and_memory — 行列分解が遅い理由の知識 — BLAS スレッド・キャッシュ・メモリ配置
• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).
• Operator provenance and references — the sources of the research/methods this op family came from.
• fit_primitives_ext — py -3.11 examples_3d/fit_primitives_ext.py
primitive as input)fuse_to_voxel · angle_between_lines · angle_between_planes · angle_line_plane · distance_point_plane · distance_point_line · distance_line_line · distance_segment_segment
robust_fit)ransac_plane · ransac_sphere · ransac_line · ransac_cylinder · fit_cone · fit_ellipsoid
*Provenance: fit_primitives_ext.py — 3D operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.