face_normals — 3D mesh_process op

• 資料種類:mesh → normals

• 呼叫: import fullseye as fs; fs.ledger.face_normals(mesh) -> 'np.ndarray'(要直接呼叫實作,import mesh_props; mesh_props.face_normals(mesh) -> 'np.ndarray';從台帳取用則 ops3d.get("face_normals"))

用法

三角網格的面法線(每個三角形的單位法向量)。→ (M,3)。

法線 = 正規化後的 cross(v1−v0, v2−v0)。方向由 faces 的環繞順序(winding) 一致地決定(不存在 PCA 那樣的符號不定)。若以向外的環繞順序建構封閉網格,則所有法線朝外。

Args:

mesh: (vertices (N,3), faces (M,3)) 的元組。

Returns:

(M,3) 的單位面法線。

Raises:

ValueError: 形狀不正確、index 越界,或退化(零面積)三角形無法定義法線時。

背景知識指南(該運算子背後的物理與規範)

• blender_interop — 與 Blender 搭配使用 —— 在 Blender 中建形、用 fullseye 量測(座標軸、單位、真值資料的陷阱)

參考(範例資料、文獻)

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

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

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

• mesh_props — py -3.11 examples_3d/mesh_props.py

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

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

同類別(mesh_process)

laplacian_smooth · taubin_smooth · decimate_qem · vertex_normals · mesh_area · vertex_curvature · face_areas · mesh_volume


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

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