orient_normals — 3D normals_orient op

Data kinds: points × normalsnormals

Call: import fullseye as fs; fs.ledger.orient_normals(points, normals, k: 'int' = 20, seed_dir=None) -> 'np.ndarray' (to call the implementation directly, import normals_orient; normals_orient.orient_normals(points, normals, k: 'int' = 20, seed_dir=None) -> 'np.ndarray'; from the registry, ops3d.get("orient_normals"))

Usage

Orient the normals globally consistently by Hoppe's method (MST propagation). → (N,3).

> The detailed description below is the original text — the summary and the headings are translated.

kNN グラフ上に重み `1 - |n_i·n_j|`(接平面が揃うほど安い)の最小全域木を張り、

種から木を BFS しながら親と符号が逆の子を反転させて成分を内部一貫にする。種は

`seed_dir` 指定時はその向きに最も突き出た点、未指定時は最外点(重心から最遠)。

グラフが分断されていれば連結成分ごとに独立に種を取り伝播する(成分間の相対向きは未保証)。

`seed_dir` を渡した場合、伝播で内部一貫化した後に成分全点の射影を集約して大域符号を

`seed_dir に整合する(単一 seed の |cos|` に依存しないので、seed 点の法線が

`seed_dir と近直交でも符号は確実に決まる — finding [5])。seed_dir` が成分の

全法線と(ほぼ)直交して符号を決められない真の退化は fail-closed(`ValueError`)。

閉曲面(球など)で `seed_dir` が平均的に法線と直交する場合は大域符号が一意でないため、

最突出点(=外向き)基準の向き付けを保持する。`seed_dir` 未指定時は重心から外向き。

Args:

points: (N,3) の点群。

normals: (N,3) の向き未定法線(内部で単位化)。

k: kNN グラフの近傍数。

seed_dir: 大域基準向き (3,)。None なら重心から外向きを基準にする。

Returns:

符号を大域一貫にそろえた (N,3) 単位法線。

Raises:

ValueError: `seed_dir` がゼロ、または(ある連結成分で)全法線と直交して

大域符号を制御できないとき(fail-closed)。

Background guides (the physics and conventions behind this op)

blender_interop — Blender との併用 — 形を作って fullseye で測る(軸・単位・正解データの罠)

References (sample data, literature)

• 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.

Runnable examples (verified samples that actually call this op)

oriented_normalspy -3.11 examples_3d/oriented_normals.py

Ops the type connects to (they accept normals as input)

icp_point2plane · compute_fpfh · shot_descriptor · fuse_to_voxel · reflect · refract · normal_consistency · ransac_cylinder

Same category (normals_orient)

estimate_oriented_normals


*Provenance: normals_orient.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.