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.