frame_axis — REPRCONV structure op

• 資料種類:frame → normals

• 呼叫: import fullseye as fs; fs.ledger.frame_axis(frame, axis='tangent')(要直接呼叫實作,import reprconv; reprconv.frame_axis(frame, axis='tangent');從台帳取用則 opsreprconv.get("frame_axis"))

• GPU:無(僅 CPU 參考實作)

用法

Frenet 標架 frame → 一根軸的單位向量列 normals (N,3)。frame 型別的出口。

> 以下的詳細說明為原文 —— 摘要與標題已翻譯。

frenet_frame の返り (T, N, B)(各 (N,3))から axis の 1 本を取り出す:

"tangent" = 接線 T、"normal" = 主法線 N、"binormal" = 陪法線 B。取り出した列は点ごとの単位ベクトルなので normals 型に載る(normals_to_angles / normals_to_egi などがそのまま掛かる)。

frenet_frame は直線区間で N・B がほぼゼロベクトルになる(向き不定)。ここでは 長さ 0.5 未満の行を拒否する(黙って単位ベクトルのふりをさせない)。直線を含む曲線で N/B を使うなら、先に fit_spline_curve で滑らかにするか接線だけを使う。

Args:

frame: (T, N, B) の 3-tuple、各 (N,3)。

axis: "tangent" / "normal" / "binormal"。

Returns:

(N, 3) float64、各行は単位長(frenet_frame が正規化した値そのまま)。

Raises:

ValueError: 3-tuple でない / 形がそろわない / axis が不正 / 長さ 0.5 未満の行がある。

參考(範例資料、文獻)

• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。

• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。

• 演算法的正典(作者、年份)與用途見上面的族使用指南。

可執行的範例(實際呼叫該運算子並已驗證的樣例)

• type_connectivity_tour — py -3.11 examples/type_connectivity_tour.py

型別可銜接的下一個運算子(可接受 normals 作為輸入)

normals_to_angles · normals_to_egi

同類別(structure)

knn_graph_to_conn_graph · pointmap_to_points · match_component


*Provenance: reprconv.py — REPRCONV 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.